From 53ff09cd6c8e5b84ce05353b4e2ab561ba77d017 Mon Sep 17 00:00:00 2001 From: Jeff Lindsay Date: Fri, 8 Sep 2023 18:10:01 -0500 Subject: [PATCH] New symbols, plus fixes (#213) * generate: update symbol and symbol declaration parsing for new symbolsdb * generate: use "Apple Documentation" for modules instead of "Full Documentation" * * update symbolsdb * use conventional generated file banner * protocols live in files with _protocol in the filename * dropped convenience alloc functions * renamed type for protocol wrapper to end with Object instead of Wrapper * ensure protocol wrappers implement the protocol interface * constants with same name as their enum name get K prefix * globbergen finds files by filename now * macos: regenerated * Makefile: update symbolsdb --- Makefile | 2 +- generate/class.go | 2 +- generate/codegen/codegen.go | 2 +- generate/codegen/filewriter.go | 4 + generate/codegen/gen_class.go | 2 +- generate/codegen/gen_method.go | 7 +- generate/codegen/gen_protocol.go | 8 +- generate/codegen/modulewriter.go | 19 +- generate/enums.go | 4 +- generate/generator.go | 6 +- generate/members.go | 10 +- generate/modules/modules.go | 2 +- generate/protocol.go | 6 +- generate/symbols.go | 36 +- generate/types.go | 18 +- generate/typing/primitive_type.go | 2 + generate/typing/protocol_type.go | 4 +- generate/utils.go | 13 +- ...o => accessibility_button_protocol.gen.go} | 41 +- ...> accessibility_check_box_protocol.gen.go} | 15 +- ...ity_contains_transient_ui_protocol.gen.go} | 49 +- .../appkit/accessibility_custom_action.gen.go | 54 +- .../appkit/accessibility_custom_rotor.gen.go | 52 +- ...essibility_custom_rotor_item_result.gen.go | 71 +- ...y_custom_rotor_item_search_delegate.gen.go | 21 +- ...lity_custom_rotor_search_parameters.gen.go | 40 +- macos/appkit/accessibility_element.gen.go | 43 +- ...ssibility_element_loading_protocol.gen.go} | 41 +- .../accessibility_element_protocol.gen.go | 132 + ...go => accessibility_group_protocol.gen.go} | 9 +- ...go => accessibility_image_protocol.gen.go} | 13 +- ...accessibility_layout_area_protocol.gen.go} | 53 +- ...accessibility_layout_item_protocol.gen.go} | 13 +- ....go => accessibility_list_protocol.gen.go} | 9 +- ...ity_navigable_static_text_protocol.gen.go} | 53 +- ... => accessibility_outline_protocol.gen.go} | 9 +- ...bility_progress_indicator_protocol.gen.go} | 15 +- ...y.gen.go => accessibility_protocol.gen.go} | 4283 +++++++++-------- ...ccessibility_radio_button_protocol.gen.go} | 15 +- ...n.go => accessibility_row_protocol.gen.go} | 17 +- ...o => accessibility_slider_protocol.gen.go} | 73 +- ...accessibility_static_text_protocol.gen.go} | 23 +- ... => accessibility_stepper_protocol.gen.go} | 61 +- ...o => accessibility_switch_protocol.gen.go} | 45 +- ...go => accessibility_table_protocol.gen.go} | 193 +- macos/appkit/action_cell.gen.go | 6 +- macos/appkit/alert.gen.go | 202 +- macos/appkit/alert_delegate.gen.go | 13 +- macos/appkit/aliastypes.gen.go | 9 +- macos/appkit/alignment_feedback_filter.gen.go | 54 +- macos/appkit/alignment_feedback_token.gen.go | 18 - .../alignment_feedback_token_protocol.gen.go | 21 + ...atable_property_container_protocol.gen.go} | 51 +- macos/appkit/animation.gen.go | 164 +- macos/appkit/animation_context.gen.go | 120 +- macos/appkit/animation_delegate.gen.go | 145 +- macos/appkit/appearance.gen.go | 40 +- ... appearance_customization_protocol.gen.go} | 25 +- macos/appkit/appkit_custom.go | 52 - macos/appkit/application.gen.go | 1027 ++-- macos/appkit/application_delegate.gen.go | 1552 ++++-- macos/appkit/array_controller.gen.go | 370 +- macos/appkit/ats_typesetter.gen.go | 15 +- macos/appkit/bezier_path.gen.go | 715 +-- macos/appkit/binding_selection_marker.gen.go | 6 +- macos/appkit/bitmap_image_rep.gen.go | 381 +- macos/appkit/box.gen.go | 224 +- macos/appkit/browser.gen.go | 1092 +++-- macos/appkit/browser_cell.gen.go | 96 +- macos/appkit/browser_delegate.gen.go | 1085 ++++- macos/appkit/button.gen.go | 510 +- macos/appkit/button_cell.gen.go | 310 +- macos/appkit/button_touch_bar_item.gen.go | 122 +- macos/appkit/cached_image_rep.gen.go | 6 +- .../candidate_list_touch_bar_item.gen.go | 100 +- ...didate_list_touch_bar_item_delegate.gen.go | 114 +- macos/appkit/cell.gen.go | 1310 +++-- ...gen.go => change_spelling_protocol.gen.go} | 13 +- macos/appkit/ci_image_rep.gen.go | 30 +- macos/appkit/click_gesture_recognizer.gen.go | 46 +- macos/appkit/clip_view.gen.go | 120 +- .../cloud_sharing_service_delegate.gen.go | 133 +- ... cloud_sharing_validation_protocol.gen.go} | 15 +- macos/appkit/collection_layout_anchor.gen.go | 38 +- ..._layout_boundary_supplementary_item.gen.go | 88 +- ...llection_layout_container_protocol.gen.go} | 63 +- .../collection_layout_decoration_item.gen.go | 18 +- .../appkit/collection_layout_dimension.gen.go | 90 +- .../collection_layout_edge_spacing.gen.go | 34 +- ...ection_layout_environment_protocol.gen.go} | 17 +- macos/appkit/collection_layout_group.gen.go | 72 +- ...collection_layout_group_custom_item.gen.go | 30 +- macos/appkit/collection_layout_item.gen.go | 54 +- macos/appkit/collection_layout_section.gen.go | 114 +- macos/appkit/collection_layout_size.gen.go | 6 +- macos/appkit/collection_layout_spacing.gen.go | 48 +- ...ollection_layout_supplementary_item.gen.go | 48 +- ...ction_layout_visible_item_protocol.gen.go} | 208 +- macos/appkit/collection_view.gen.go | 617 +-- ...ollection_view_compositional_layout.gen.go | 34 +- ..._compositional_layout_configuration.gen.go | 40 +- .../appkit/collection_view_data_source.gen.go | 49 - ...ollection_view_data_source_protocol.gen.go | 85 + macos/appkit/collection_view_delegate.gen.go | 826 +++- ...ollection_view_delegate_flow_layout.gen.go | 185 +- ...ollection_view_diffable_data_source.gen.go | 6 +- ...> collection_view_element_protocol.gen.go} | 55 +- .../appkit/collection_view_flow_layout.gen.go | 178 +- ...ew_flow_layout_invalidation_context.gen.go | 40 +- .../appkit/collection_view_grid_layout.gen.go | 114 +- macos/appkit/collection_view_item.gen.go | 80 +- macos/appkit/collection_view_layout.gen.go | 319 +- .../collection_view_layout_attributes.gen.go | 150 +- ...on_view_layout_invalidation_context.gen.go | 106 +- .../appkit/collection_view_prefetching.gen.go | 33 - ...ollection_view_prefetching_protocol.gen.go | 51 + ..._view_section_header_view_protocol.gen.go} | 19 +- .../collection_view_transition_layout.gen.go | 42 +- .../appkit/collection_view_update_item.gen.go | 24 +- macos/appkit/color.gen.go | 1662 +++---- ....gen.go => color_changing_protocol.gen.go} | 13 +- macos/appkit/color_list.gen.go | 98 +- macos/appkit/color_panel.gen.go | 184 +- macos/appkit/color_picker.gen.go | 72 +- .../appkit/color_picker_touch_bar_item.gen.go | 140 +- ...o => color_picking_custom_protocol.gen.go} | 75 +- ... => color_picking_default_protocol.gen.go} | 153 +- macos/appkit/color_sampler.gen.go | 6 +- macos/appkit/color_space.gen.go | 212 +- macos/appkit/color_well.gen.go | 34 +- macos/appkit/combo_box.gen.go | 322 +- macos/appkit/combo_box_cell.gen.go | 284 +- .../appkit/combo_box_cell_data_source.gen.go | 49 - ...combo_box_cell_data_source_protocol.gen.go | 84 + macos/appkit/combo_box_data_source.gen.go | 49 - .../combo_box_data_source_protocol.gen.go | 84 + macos/appkit/combo_box_delegate.gen.go | 125 +- macos/appkit/control.gen.go | 546 ++- .../control_text_editing_delegate.gen.go | 268 +- macos/appkit/controller.gen.go | 28 +- macos/appkit/cursor.gen.go | 370 +- macos/appkit/custom_image_rep.gen.go | 24 +- macos/appkit/custom_touch_bar_item.gen.go | 6 +- macos/appkit/data_asset.gen.go | 21 +- macos/appkit/date_picker.gen.go | 290 +- macos/appkit/date_picker_cell.gen.go | 264 +- macos/appkit/date_picker_cell_delegate.gen.go | 13 +- macos/appkit/dictionary_controller.gen.go | 94 +- ...ictionary_controller_key_value_pair.gen.go | 48 +- .../diffable_data_source_snapshot.gen.go | 208 +- macos/appkit/doc.gen.go | 6 +- macos/appkit/dock_tile.gen.go | 76 +- ...n.go => dock_tile_plug_in_protocol.gen.go} | 43 +- macos/appkit/document.gen.go | 1395 +++--- macos/appkit/document_controller.gen.go | 371 +- ...o => dragging_destination_protocol.gen.go} | 135 +- macos/appkit/dragging_image_component.gen.go | 6 +- ...o.gen.go => dragging_info_protocol.gen.go} | 245 +- macos/appkit/dragging_item.gen.go | 24 +- macos/appkit/dragging_session.gen.go | 54 +- macos/appkit/dragging_source.gen.go | 49 - macos/appkit/dragging_source_protocol.gen.go | 98 + macos/appkit/drawer.gen.go | 6 +- macos/appkit/drawer_delegate.gen.go | 9 +- .../{editor.gen.go => editor_protocol.gen.go} | 45 +- ...go => editor_registration_protocol.gen.go} | 37 +- macos/appkit/enumtypes.gen.go | 142 +- macos/appkit/enumtypes_amd64.gen.go | 5 +- macos/appkit/enumtypes_arm64.gen.go | 5 +- macos/appkit/eps_image_rep.gen.go | 6 +- macos/appkit/event.gen.go | 856 ++-- macos/appkit/file_promise_provider.gen.go | 46 +- .../file_promise_provider_delegate.gen.go | 94 +- macos/appkit/file_promise_receiver.gen.go | 38 +- macos/appkit/font.gen.go | 665 +-- macos/appkit/font_asset_request.gen.go | 20 +- ...g.gen.go => font_changing_protocol.gen.go} | 39 +- macos/appkit/font_collection.gen.go | 138 +- macos/appkit/font_descriptor.gen.go | 161 +- macos/appkit/font_manager.gen.go | 345 +- macos/appkit/font_panel.gen.go | 92 +- macos/appkit/form.gen.go | 34 +- macos/appkit/form_cell.gen.go | 128 +- macos/appkit/gesture_recognizer.gen.go | 474 +- .../appkit/gesture_recognizer_delegate.gen.go | 187 +- macos/appkit/glyph_generator.gen.go | 6 +- macos/appkit/glyph_info.gen.go | 6 +- ...e.gen.go => glyph_storage_protocol.gen.go} | 63 +- macos/appkit/gradient.gen.go | 78 +- macos/appkit/graphics_context.gen.go | 264 +- macos/appkit/grid_cell.gen.go | 96 +- macos/appkit/grid_column.gen.go | 86 +- macos/appkit/grid_row.gen.go | 106 +- macos/appkit/grid_view.gen.go | 226 +- macos/appkit/group_touch_bar_item.gen.go | 114 +- macos/appkit/haptic_feedback_manager.gen.go | 12 +- ...haptic_feedback_performer_protocol.gen.go} | 13 +- macos/appkit/help_manager.gen.go | 72 +- ...> ignore_misspelled_words_protocol.gen.go} | 13 +- macos/appkit/image.gen.go | 618 +-- macos/appkit/image_cell.gen.go | 40 +- macos/appkit/image_delegate.gen.go | 21 +- macos/appkit/image_rep.gen.go | 353 +- .../appkit/image_symbol_configuration.gen.go | 78 +- macos/appkit/image_view.gen.go | 142 +- macos/appkit/input_manager.gen.go | 6 +- macos/appkit/input_server.gen.go | 6 +- .../appkit/input_server_mouse_tracker.gen.go | 18 - ...input_server_mouse_tracker_protocol.gen.go | 21 + macos/appkit/input_service_provider.gen.go | 18 - .../input_service_provider_protocol.gen.go | 21 + macos/appkit/layout_anchor.gen.go | 61 +- macos/appkit/layout_constraint.gen.go | 146 +- macos/appkit/layout_dimension.gen.go | 79 +- macos/appkit/layout_guide.gen.go | 144 +- macos/appkit/layout_manager.gen.go | 1154 +++-- macos/appkit/layout_manager_delegate.gen.go | 424 +- macos/appkit/layout_x_axis_anchor.gen.go | 34 +- macos/appkit/layout_y_axis_anchor.gen.go | 42 +- macos/appkit/level_indicator.gen.go | 274 +- macos/appkit/level_indicator_cell.gen.go | 134 +- .../magnification_gesture_recognizer.gen.go | 6 +- macos/appkit/matrix.gen.go | 863 ++-- macos/appkit/matrix_delegate.gen.go | 11 +- .../media_library_browser_controller.gen.go | 36 +- macos/appkit/menu.gen.go | 494 +- macos/appkit/menu_delegate.gen.go | 257 +- macos/appkit/menu_item.gen.go | 499 +- macos/appkit/menu_item_cell.gen.go | 106 +- ...o => menu_item_validation_protocol.gen.go} | 13 +- macos/appkit/menu_toolbar_item.gen.go | 40 +- macos/appkit/mutable_font_collection.gen.go | 22 +- macos/appkit/mutable_paragraph_style.gen.go | 206 +- macos/appkit/nib.gen.go | 30 +- macos/appkit/nib_connector.gen.go | 38 +- macos/appkit/nib_control_connector.gen.go | 6 +- macos/appkit/nib_outlet_connector.gen.go | 6 +- macos/appkit/object_controller.gen.go | 223 +- macos/appkit/open_gl_context.gen.go | 6 +- macos/appkit/open_gl_layer.gen.go | 58 +- macos/appkit/open_gl_pixel_buffer.gen.go | 6 +- macos/appkit/open_gl_pixel_format.gen.go | 6 +- macos/appkit/open_gl_view.gen.go | 6 +- macos/appkit/open_panel.gen.go | 146 +- macos/appkit/open_save_panel_delegate.gen.go | 155 +- macos/appkit/outline_view.gen.go | 236 +- macos/appkit/outline_view_data_source.gen.go | 33 - .../outline_view_data_source_protocol.gen.go | 243 + macos/appkit/outline_view_delegate.gen.go | 1253 ++++- macos/appkit/page_controller.gen.go | 112 +- macos/appkit/page_controller_delegate.gen.go | 195 +- macos/appkit/page_layout.gen.go | 50 +- macos/appkit/pan_gesture_recognizer.gen.go | 50 +- macos/appkit/panel.gen.go | 50 +- macos/appkit/paragraph_style.gen.go | 212 +- macos/appkit/pasteboard.gen.go | 268 +- macos/appkit/pasteboard_item.gen.go | 76 +- ...eboard_item_data_provider_protocol.gen.go} | 41 +- ....go => pasteboard_reading_protocol.gen.go} | 15 +- ... => pasteboard_type_owner_protocol.gen.go} | 41 +- ....go => pasteboard_writing_protocol.gen.go} | 23 +- macos/appkit/path_cell.gen.go | 222 +- macos/appkit/path_cell_delegate.gen.go | 50 +- macos/appkit/path_component_cell.gen.go | 6 +- macos/appkit/path_control.gen.go | 200 +- macos/appkit/path_control_delegate.gen.go | 185 +- macos/appkit/path_control_item.gen.go | 52 +- macos/appkit/pdf_image_rep.gen.go | 24 +- macos/appkit/pdf_info.gen.go | 84 +- macos/appkit/pdf_panel.gen.go | 40 +- macos/appkit/persistent_document.gen.go | 41 +- macos/appkit/picker_touch_bar_item.gen.go | 174 +- macos/appkit/pict_image_rep.gen.go | 30 +- macos/appkit/pop_up_button.gen.go | 322 +- macos/appkit/pop_up_button_cell.gen.go | 338 +- macos/appkit/popover.gen.go | 172 +- macos/appkit/popover_delegate.gen.go | 265 +- macos/appkit/popover_touch_bar_item.gen.go | 138 +- macos/appkit/predicate_editor.gen.go | 6 +- .../predicate_editor_row_template.gen.go | 150 +- macos/appkit/press_gesture_recognizer.gen.go | 46 +- macos/appkit/pressure_configuration.gen.go | 6 +- macos/appkit/print_info.gen.go | 386 +- macos/appkit/print_operation.gen.go | 303 +- macos/appkit/print_panel.gen.go | 124 +- ...print_panel_accessorizing_protocol.gen.go} | 41 +- macos/appkit/printer.gen.go | 65 +- macos/appkit/progress_indicator.gen.go | 156 +- macos/appkit/protocols.gen.m | 4 +- macos/appkit/responder.gen.go | 654 +-- .../appkit/rotation_gesture_recognizer.gen.go | 40 +- macos/appkit/rule_editor.gen.go | 360 +- macos/appkit/rule_editor_delegate.gen.go | 123 +- macos/appkit/ruler_marker.gen.go | 152 +- macos/appkit/ruler_view.gen.go | 264 +- macos/appkit/running_application.gen.go | 164 +- macos/appkit/save_panel.gen.go | 312 +- macos/appkit/screen.gen.go | 224 +- macos/appkit/scroll_view.gen.go | 741 +-- macos/appkit/scroller.gen.go | 137 +- macos/appkit/scrubber.gen.go | 394 +- macos/appkit/scrubber_arranged_view.gen.go | 40 +- ...o => scrubber_data_source_protocol.gen.go} | 41 +- macos/appkit/scrubber_delegate.gen.go | 176 +- macos/appkit/scrubber_flow_layout.gen.go | 6 +- .../scrubber_flow_layout_delegate.gen.go | 13 +- macos/appkit/scrubber_image_item_view.gen.go | 6 +- macos/appkit/scrubber_item_view.gen.go | 6 +- macos/appkit/scrubber_layout.gen.go | 100 +- .../appkit/scrubber_layout_attributes.gen.go | 40 +- .../scrubber_proportional_layout.gen.go | 6 +- macos/appkit/scrubber_selection_style.gen.go | 36 +- macos/appkit/scrubber_selection_view.gen.go | 6 +- macos/appkit/scrubber_text_item_view.gen.go | 6 +- macos/appkit/search_field.gen.go | 156 +- macos/appkit/search_field_cell.gen.go | 166 +- macos/appkit/search_field_delegate.gen.go | 19 +- macos/appkit/search_toolbar_item.gen.go | 6 +- macos/appkit/secure_text_field.gen.go | 30 +- macos/appkit/secure_text_field_cell.gen.go | 6 +- macos/appkit/segmented_cell.gen.go | 248 +- macos/appkit/segmented_control.gen.go | 342 +- ...en.go => segue_performing_protocol.gen.go} | 47 +- ...> services_menu_requestor_protocol.gen.go} | 17 +- macos/appkit/shadow.gen.go | 30 +- macos/appkit/sharing_service.gen.go | 166 +- macos/appkit/sharing_service_delegate.gen.go | 219 +- macos/appkit/sharing_service_picker.gen.go | 12 +- .../sharing_service_picker_delegate.gen.go | 83 +- ...sharing_service_picker_toolbar_item.gen.go | 12 +- ...ervice_picker_toolbar_item_delegate.gen.go | 21 +- ...aring_service_picker_touch_bar_item.gen.go | 12 +- ...vice_picker_touch_bar_item_delegate.gen.go | 21 +- macos/appkit/slider.gen.go | 176 +- macos/appkit/slider_accessory.gen.go | 34 +- macos/appkit/slider_accessory_behavior.gen.go | 42 +- macos/appkit/slider_cell.gen.go | 228 +- macos/appkit/slider_touch_bar_item.gen.go | 162 +- macos/appkit/sound.gen.go | 192 +- macos/appkit/sound_delegate.gen.go | 13 +- macos/appkit/speech_recognizer.gen.go | 90 +- .../appkit/speech_recognizer_delegate.gen.go | 13 +- macos/appkit/speech_synthesizer.gen.go | 6 +- .../appkit/speech_synthesizer_delegate.gen.go | 9 +- macos/appkit/spell_checker.gen.go | 505 +- macos/appkit/split_view.gen.go | 212 +- macos/appkit/split_view_controller.gen.go | 120 +- macos/appkit/split_view_delegate.gen.go | 330 +- macos/appkit/split_view_item.gen.go | 240 +- ...pring_loading_destination_protocol.gen.go} | 103 +- macos/appkit/stack_view.gen.go | 272 +- macos/appkit/stack_view_delegate.gen.go | 46 +- ...rd_key_binding_responding_protocol.gen.go} | 1461 +++--- macos/appkit/status_bar.gen.go | 46 +- macos/appkit/status_bar_button.gen.go | 30 +- macos/appkit/status_item.gen.go | 60 +- macos/appkit/stepper.gen.go | 40 +- macos/appkit/stepper_cell.gen.go | 80 +- macos/appkit/stepper_touch_bar_item.gen.go | 78 +- macos/appkit/storyboard.gen.go | 33 +- macos/appkit/storyboard_segue.gen.go | 48 +- macos/appkit/string_drawing_context.gen.go | 32 +- macos/appkit/switch.gen.go | 6 +- macos/appkit/tab_view.gen.go | 252 +- macos/appkit/tab_view_controller.gen.go | 189 +- macos/appkit/tab_view_delegate.gen.go | 84 +- macos/appkit/tab_view_item.gen.go | 176 +- macos/appkit/table_cell_view.gen.go | 92 +- macos/appkit/table_column.gen.go | 180 +- macos/appkit/table_header_cell.gen.go | 6 +- macos/appkit/table_header_view.gen.go | 50 +- macos/appkit/table_row_view.gen.go | 242 +- macos/appkit/table_view.gen.go | 1316 +++-- macos/appkit/table_view_data_source.gen.go | 49 - .../table_view_data_source_protocol.gen.go | 179 + macos/appkit/table_view_delegate.gen.go | 944 +++- .../table_view_diffable_data_source.gen.go | 62 +- macos/appkit/table_view_row_action.gen.go | 42 +- macos/appkit/text.gen.go | 622 +-- macos/appkit/text_alternatives.gen.go | 24 +- macos/appkit/text_attachment.gen.go | 221 +- macos/appkit/text_attachment_cell.gen.go | 52 +- .../text_attachment_cell_protocol.gen.go | 224 + ...text_attachment_container_protocol.gen.go} | 19 +- ...=> text_attachment_layout_protocol.gen.go} | 51 +- .../text_attachment_view_provider.gen.go | 52 +- macos/appkit/text_block.gen.go | 152 +- ...o => text_checking_client_protocol.gen.go} | 117 +- macos/appkit/text_checking_controller.gen.go | 120 +- macos/appkit/text_container.gen.go | 171 +- macos/appkit/text_content_manager.gen.go | 118 +- .../text_content_manager_delegate.gen.go | 55 +- ...nt.gen.go => text_content_protocol.gen.go} | 17 +- macos/appkit/text_content_storage.gen.go | 64 +- .../text_content_storage_delegate.gen.go | 21 +- macos/appkit/text_delegate.gen.go | 139 +- macos/appkit/text_element.gen.go | 40 +- ... => text_element_provider_protocol.gen.go} | 107 +- macos/appkit/text_field.gen.go | 420 +- macos/appkit/text_field_cell.gen.go | 94 +- macos/appkit/text_field_delegate.gen.go | 84 +- macos/appkit/text_finder.gen.go | 112 +- ...text_finder_bar_container_protocol.gen.go} | 99 +- ....go => text_finder_client_protocol.gen.go} | 219 +- ...n.go => text_input_client_protocol.gen.go} | 259 +- macos/appkit/text_input_context.gen.go | 108 +- ...nput.gen.go => text_input_protocol.gen.go} | 9 +- ...n.go => text_input_traits_protocol.gen.go} | 219 +- macos/appkit/text_layout_fragment.gen.go | 142 +- macos/appkit/text_layout_manager.gen.go | 350 +- .../text_layout_manager_delegate.gen.go | 92 +- ...yout_orientation_provider_protocol.gen.go} | 13 +- macos/appkit/text_line_fragment.gen.go | 50 +- macos/appkit/text_list.gen.go | 24 +- ...n.gen.go => text_location_protocol.gen.go} | 15 +- macos/appkit/text_paragraph.gen.go | 6 +- macos/appkit/text_range.gen.go | 96 +- macos/appkit/text_selection.gen.go | 108 +- ...ext_selection_data_source_protocol.gen.go} | 153 +- macos/appkit/text_selection_navigation.gen.go | 93 +- macos/appkit/text_storage.gen.go | 410 +- macos/appkit/text_storage_delegate.gen.go | 48 +- ...=> text_storage_observing_protocol.gen.go} | 27 +- macos/appkit/text_tab.gen.go | 24 +- macos/appkit/text_table.gen.go | 84 +- macos/appkit/text_table_block.gen.go | 34 +- macos/appkit/text_view.gen.go | 1864 +++---- macos/appkit/text_view_delegate.gen.go | 883 +++- .../text_viewport_layout_controller.gen.go | 60 +- ...viewport_layout_controller_delegate.gen.go | 117 +- macos/appkit/tint_configuration.gen.go | 78 +- .../titlebar_accessory_view_controller.gen.go | 34 +- macos/appkit/token_field.gen.go | 100 +- macos/appkit/token_field_cell.gen.go | 112 +- macos/appkit/token_field_cell_delegate.gen.go | 321 +- macos/appkit/token_field_delegate.gen.go | 323 +- macos/appkit/toolbar.gen.go | 218 +- macos/appkit/toolbar_delegate.gen.go | 165 +- macos/appkit/toolbar_item.gen.go | 270 +- macos/appkit/toolbar_item_group.gen.go | 68 +- ...> toolbar_item_validation_protocol.gen.go} | 13 +- macos/appkit/touch.gen.go | 70 +- macos/appkit/touch_bar.gen.go | 142 +- macos/appkit/touch_bar_delegate.gen.go | 21 +- macos/appkit/touch_bar_item.gen.go | 42 +- ....go => touch_bar_provider_protocol.gen.go} | 15 +- macos/appkit/tracking_area.gen.go | 24 +- .../tracking_separator_toolbar_item.gen.go | 6 +- macos/appkit/tree_controller.gen.go | 344 +- macos/appkit/tree_node.gen.go | 52 +- macos/appkit/typesetter.gen.go | 496 +- ...> user_activity_restoring_protocol.gen.go} | 13 +- macos/appkit/user_defaults_controller.gen.go | 88 +- .../user_interface_compression_options.gen.go | 128 +- ...ser_interface_compression_protocol.gen.go} | 49 +- ...rface_item_identification_protocol.gen.go} | 17 +- ..._interface_item_searching_protocol.gen.go} | 51 +- ...ser_interface_validations_protocol.gen.go} | 15 +- ...dated_user_interface_item_protocol.gen.go} | 17 +- macos/appkit/view.gen.go | 3049 ++++++------ macos/appkit/view_animation.gen.go | 6 +- macos/appkit/view_controller.gen.go | 412 +- ...ler_presentation_animator_protocol.gen.go} | 41 +- .../view_layer_content_scale_delegate.gen.go | 13 +- ...go => view_tool_tip_owner_protocol.gen.go} | 13 +- macos/appkit/visual_effect_view.gen.go | 98 +- macos/appkit/window.gen.go | 3045 ++++++------ macos/appkit/window_controller.gen.go | 244 +- macos/appkit/window_delegate.gen.go | 1813 ++++--- ....go => window_restoration_protocol.gen.go} | 9 +- macos/appkit/window_tab.gen.go | 46 +- macos/appkit/window_tab_group.gen.go | 72 +- macos/appkit/workspace.gen.go | 424 +- macos/appkit/workspace_authorization.gen.go | 6 +- .../workspace_open_configuration.gen.go | 174 +- .../aggregate_asset_download_task.gen.go | 6 +- macos/avfoundation/aliastypes.gen.go | 2 +- macos/avfoundation/asset.gen.go | 314 +- macos/avfoundation/asset_cache.gen.go | 6 +- .../asset_download_configuration.gen.go | 50 +- ...sset_download_content_configuration.gen.go | 6 +- .../asset_download_delegate.gen.go | 214 +- ..._download_storage_management_policy.gen.go | 6 +- .../asset_download_storage_manager.gen.go | 6 +- macos/avfoundation/asset_download_task.gen.go | 6 +- .../asset_download_url_session.gen.go | 49 +- .../avfoundation/asset_export_session.gen.go | 346 +- .../avfoundation/asset_image_generator.gen.go | 116 +- macos/avfoundation/asset_reader.gen.go | 68 +- .../asset_reader_audio_mix_output.gen.go | 24 +- ...ption_validation_handling_protocol.gen.go} | 13 +- macos/avfoundation/asset_reader_output.gen.go | 56 +- ...asset_reader_output_caption_adaptor.gen.go | 54 +- ...sset_reader_output_metadata_adaptor.gen.go | 6 +- ...sset_reader_sample_reference_output.gen.go | 30 +- .../asset_reader_track_output.gen.go | 24 +- ...set_reader_video_composition_output.gen.go | 48 +- .../avfoundation/asset_resource_loader.gen.go | 12 +- .../asset_resource_loader_delegate.gen.go | 150 +- ...loading_content_information_request.gen.go | 64 +- ...asset_resource_loading_data_request.gen.go | 44 +- .../asset_resource_loading_request.gen.go | 78 +- .../asset_resource_loading_requestor.gen.go | 6 +- .../asset_resource_renewal_request.gen.go | 6 +- .../avfoundation/asset_segment_report.gen.go | 24 +- ...t_segment_report_sample_information.gen.go | 24 +- .../asset_segment_track_report.gen.go | 34 +- macos/avfoundation/asset_track.gen.go | 290 +- macos/avfoundation/asset_track_group.gen.go | 6 +- macos/avfoundation/asset_track_segment.gen.go | 6 +- macos/avfoundation/asset_variant.gen.go | 24 +- .../asset_variant_audio_attributes.gen.go | 6 +- ...audio_rendition_specific_attributes.gen.go | 6 +- .../asset_variant_qualifier.gen.go | 60 +- .../asset_variant_video_attributes.gen.go | 42 +- macos/avfoundation/asset_writer.gen.go | 380 +- .../avfoundation/asset_writer_delegate.gen.go | 48 +- macos/avfoundation/asset_writer_input.gen.go | 356 +- .../asset_writer_input_caption_adaptor.gen.go | 30 +- .../asset_writer_input_group.gen.go | 24 +- ...asset_writer_input_metadata_adaptor.gen.go | 6 +- ...asset_writer_input_pass_description.gen.go | 6 +- ...t_writer_input_pixel_buffer_adaptor.gen.go | 26 +- ...chronous_ci_image_filtering_request.gen.go | 24 +- ...hronous_key_value_loading_protocol.gen.go} | 43 +- ...nchronous_video_composition_request.gen.go | 70 +- macos/avfoundation/audio_mix.gen.go | 6 +- .../audio_mix_input_parameters.gen.go | 26 +- .../camera_calibration_data.gen.go | 72 +- macos/avfoundation/caption.gen.go | 82 +- .../caption_conversion_adjustment.gen.go | 6 +- ...on_conversion_time_range_adjustment.gen.go | 6 +- .../caption_conversion_validator.gen.go | 26 +- .../caption_conversion_warning.gen.go | 26 +- .../caption_format_conformer.gen.go | 6 +- macos/avfoundation/caption_group.gen.go | 24 +- macos/avfoundation/caption_grouper.gen.go | 22 +- macos/avfoundation/caption_region.gen.go | 124 +- macos/avfoundation/caption_renderer.gen.go | 22 +- .../caption_renderer_scene.gen.go | 24 +- macos/avfoundation/caption_ruby.gen.go | 38 +- .../avfoundation/capture_audio_channel.gen.go | 40 +- .../capture_audio_data_output.gen.go | 40 +- ..._data_output_sample_buffer_delegate.gen.go | 13 +- .../capture_audio_file_output.gen.go | 52 +- .../capture_audio_preview_output.gen.go | 36 +- macos/avfoundation/capture_connection.gen.go | 220 +- macos/avfoundation/capture_device.gen.go | 870 ++-- .../capture_device_discovery_session.gen.go | 6 +- .../avfoundation/capture_device_format.gen.go | 100 +- .../avfoundation/capture_device_input.gen.go | 6 +- .../capture_device_input_source.gen.go | 6 +- macos/avfoundation/capture_file_output.gen.go | 138 +- .../capture_file_output_delegate.gen.go | 23 +- ...ture_file_output_recording_delegate.gen.go | 147 +- macos/avfoundation/capture_input.gen.go | 6 +- macos/avfoundation/capture_input_port.gen.go | 58 +- .../capture_movie_file_output.gen.go | 79 +- macos/avfoundation/capture_output.gen.go | 24 +- macos/avfoundation/capture_photo.gen.go | 34 +- .../capture_photo_capture_delegate.gen.go | 148 +- .../avfoundation/capture_photo_output.gen.go | 62 +- .../capture_photo_settings.gen.go | 48 +- .../capture_resolved_photo_settings.gen.go | 24 +- .../avfoundation/capture_screen_input.gen.go | 66 +- macos/avfoundation/capture_session.gen.go | 166 +- .../capture_still_image_output.gen.go | 6 +- .../capture_video_data_output.gen.go | 50 +- ..._data_output_sample_buffer_delegate.gen.go | 46 +- .../capture_video_preview_layer.gen.go | 148 +- macos/avfoundation/composition.gen.go | 44 +- macos/avfoundation/composition_track.gen.go | 6 +- ...rack_format_description_replacement.gen.go | 24 +- .../composition_track_segment.gen.go | 58 +- macos/avfoundation/content_key.gen.go | 6 +- ... => content_key_recipient_protocol.gen.go} | 17 +- macos/avfoundation/content_key_request.gen.go | 107 +- .../avfoundation/content_key_response.gen.go | 30 +- macos/avfoundation/content_key_session.gen.go | 198 +- .../content_key_session_delegate.gen.go | 257 +- .../avfoundation/content_key_specifier.gen.go | 48 +- .../coordinated_playback_participant.gen.go | 24 +- .../coordinated_playback_suspension.gen.go | 6 +- .../date_range_metadata_group.gen.go | 24 +- .../delegating_playback_coordinator.gen.go | 38 +- ...yback_coordinator_buffering_command.gen.go | 6 +- ..._playback_coordinator_pause_command.gen.go | 24 +- ...g_playback_coordinator_play_command.gen.go | 6 +- ...oordinator_playback_control_command.gen.go | 24 +- ...g_playback_coordinator_seek_command.gen.go | 42 +- macos/avfoundation/depth_data.gen.go | 110 +- macos/avfoundation/doc.gen.go | 6 +- macos/avfoundation/enumtypes.gen.go | 2 +- ...en.go => fragment_minding_protocol.gen.go} | 13 +- macos/avfoundation/fragmented_asset.gen.go | 6 +- .../fragmented_asset_minder.gen.go | 24 +- .../fragmented_asset_track.gen.go | 6 +- macos/avfoundation/fragmented_movie.gen.go | 54 +- .../fragmented_movie_minder.gen.go | 22 +- .../fragmented_movie_track.gen.go | 6 +- macos/avfoundation/frame_rate_range.gen.go | 26 +- macos/avfoundation/media_data_storage.gen.go | 6 +- macos/avfoundation/media_selection.gen.go | 24 +- .../avfoundation/media_selection_group.gen.go | 95 +- .../media_selection_option.gen.go | 90 +- .../avfoundation/metadata_body_object.gen.go | 6 +- .../metadata_cat_body_object.gen.go | 6 +- .../metadata_dog_body_object.gen.go | 6 +- .../avfoundation/metadata_face_object.gen.go | 24 +- macos/avfoundation/metadata_group.gen.go | 24 +- .../metadata_human_body_object.gen.go | 6 +- macos/avfoundation/metadata_item.gen.go | 248 +- .../avfoundation/metadata_item_filter.gen.go | 6 +- .../metadata_item_value_request.gen.go | 22 +- ...tadata_machine_readable_code_object.gen.go | 24 +- macos/avfoundation/metadata_object.gen.go | 24 +- .../metadata_salient_object.gen.go | 6 +- macos/avfoundation/movie.gen.go | 118 +- macos/avfoundation/movie_track.gen.go | 24 +- ..._download_storage_management_policy.gen.go | 22 +- macos/avfoundation/mutable_audio_mix.gen.go | 6 +- .../mutable_audio_mix_input_parameters.gen.go | 62 +- macos/avfoundation/mutable_caption.gen.go | 158 +- .../mutable_caption_region.gen.go | 48 +- macos/avfoundation/mutable_composition.gen.go | 32 +- .../mutable_composition_track.gen.go | 110 +- .../mutable_date_range_metadata_group.gen.go | 22 +- .../mutable_media_selection.gen.go | 6 +- .../avfoundation/mutable_metadata_item.gen.go | 84 +- macos/avfoundation/mutable_movie.gen.go | 234 +- macos/avfoundation/mutable_movie_track.gen.go | 322 +- .../mutable_timed_metadata_group.gen.go | 30 +- .../mutable_video_composition.gen.go | 78 +- ...table_video_composition_instruction.gen.go | 32 +- ...video_composition_layer_instruction.gen.go | 60 +- .../output_settings_assistant.gen.go | 80 +- .../persistable_content_key_request.gen.go | 6 +- .../avfoundation/playback_coordinator.gen.go | 50 +- ...ordinator_playback_control_delegate.gen.go | 114 +- macos/avfoundation/player.gen.go | 446 +- .../player_interstitial_event.gen.go | 74 +- ...layer_interstitial_event_controller.gen.go | 6 +- .../player_interstitial_event_monitor.gen.go | 34 +- macos/avfoundation/player_item.gen.go | 891 ++-- .../player_item_access_log.gen.go | 24 +- .../player_item_access_log_event.gen.go | 234 +- .../avfoundation/player_item_error_log.gen.go | 6 +- .../player_item_error_log_event.gen.go | 62 +- .../player_item_legible_output.gen.go | 58 +- ...r_item_legible_output_push_delegate.gen.go | 13 +- .../player_item_media_data_collector.gen.go | 6 +- .../player_item_metadata_collector.gen.go | 12 +- ...em_metadata_collector_push_delegate.gen.go | 13 +- .../player_item_metadata_output.gen.go | 24 +- ..._item_metadata_output_push_delegate.gen.go | 13 +- macos/avfoundation/player_item_output.gen.go | 26 +- .../player_item_output_pull_delegate.gen.go | 69 +- .../player_item_output_push_delegate.gen.go | 13 +- macos/avfoundation/player_item_track.gen.go | 44 +- .../player_item_video_output.gen.go | 88 +- macos/avfoundation/player_layer.gen.go | 106 +- macos/avfoundation/player_looper.gen.go | 54 +- .../player_media_selection_criteria.gen.go | 48 +- .../player_playback_coordinator.gen.go | 12 +- ...layer_playback_coordinator_delegate.gen.go | 50 +- .../portrait_effects_matte.gen.go | 30 +- macos/avfoundation/protocols.gen.m | 3 +- macos/avfoundation/queue_player.gen.go | 96 +- ...d_sample_buffer_rendering_protocol.gen.go} | 101 +- macos/avfoundation/route_detector.gen.go | 24 +- .../sample_buffer_audio_renderer.gen.go | 84 +- .../sample_buffer_display_layer.gen.go | 108 +- .../sample_buffer_generator.gen.go | 6 +- .../sample_buffer_render_synchronizer.gen.go | 106 +- .../avfoundation/sample_buffer_request.gen.go | 100 +- macos/avfoundation/sample_cursor.gen.go | 174 +- .../semantic_segmentation_matte.gen.go | 48 +- macos/avfoundation/synchronized_layer.gen.go | 58 +- macos/avfoundation/text_style_rule.gen.go | 65 +- .../avfoundation/timed_metadata_group.gen.go | 30 +- macos/avfoundation/url_asset.gen.go | 66 +- ...n.go => video_compositing_protocol.gen.go} | 127 +- macos/avfoundation/video_composition.gen.go | 106 +- ...deo_composition_core_animation_tool.gen.go | 30 +- .../video_composition_instruction.gen.go | 76 +- ...eo_composition_instruction_protocol.gen.go | 151 + ...video_composition_layer_instruction.gen.go | 24 +- .../video_composition_render_context.gen.go | 52 +- .../video_composition_render_hint.gen.go | 6 +- ...deo_composition_validation_handling.gen.go | 34 - ...sition_validation_handling_protocol.gen.go | 85 + macos/avkit/capture_view.gen.go | 74 +- macos/avkit/capture_view_delegate.gen.go | 13 +- macos/avkit/doc.gen.go | 6 +- macos/avkit/enumtypes.gen.go | 2 +- .../picture_in_picture_controller.gen.go | 164 +- ...n_picture_controller_content_source.gen.go | 30 +- ...ture_in_picture_controller_delegate.gen.go | 99 +- ...ure_sample_buffer_playback_delegate.gen.go | 161 +- macos/avkit/player_view.gen.go | 230 +- macos/avkit/player_view_delegate.gen.go | 141 +- ...er_view_picture_in_picture_delegate.gen.go | 223 +- macos/avkit/protocols.gen.m | 2 +- macos/avkit/route_picker_view.gen.go | 46 +- macos/avkit/route_picker_view_delegate.gen.go | 69 +- macos/cloudkit/accept_shares_operation.gen.go | 50 +- macos/cloudkit/aliastypes.gen.go | 2 +- macos/cloudkit/asset.gen.go | 6 +- macos/cloudkit/container.gen.go | 126 +- macos/cloudkit/database.gen.go | 110 +- macos/cloudkit/database_notification.gen.go | 6 +- macos/cloudkit/database_operation.gen.go | 6 +- macos/cloudkit/database_subscription.gen.go | 26 +- ...cover_all_user_identities_operation.gen.go | 6 +- .../discover_user_identities_operation.gen.go | 6 +- macos/cloudkit/doc.gen.go | 6 +- macos/cloudkit/enumtypes.gen.go | 2 +- .../fetch_database_changes_operation.gen.go | 128 +- ...etch_notification_changes_operation.gen.go | 6 +- .../fetch_record_changes_operation.gen.go | 6 +- ...h_record_zone_changes_configuration.gen.go | 46 +- ...fetch_record_zone_changes_operation.gen.go | 94 +- .../fetch_record_zone_changes_options.gen.go | 6 +- .../fetch_record_zones_operation.gen.go | 50 +- macos/cloudkit/fetch_records_operation.gen.go | 108 +- .../fetch_share_metadata_operation.gen.go | 74 +- .../fetch_share_participants_operation.gen.go | 50 +- .../fetch_subscriptions_operation.gen.go | 50 +- .../fetch_web_auth_token_operation.gen.go | 50 +- .../cloudkit/location_sort_descriptor.gen.go | 58 +- .../mark_notifications_read_operation.gen.go | 6 +- macos/cloudkit/modify_badge_operation.gen.go | 6 +- .../modify_record_zones_operation.gen.go | 60 +- .../cloudkit/modify_records_operation.gen.go | 162 +- .../modify_subscriptions_operation.gen.go | 92 +- macos/cloudkit/notification.gen.go | 54 +- macos/cloudkit/notification_id.gen.go | 6 +- macos/cloudkit/notification_info.gen.go | 316 +- macos/cloudkit/operation.gen.go | 50 +- macos/cloudkit/operation_configuration.gen.go | 80 +- macos/cloudkit/operation_group.gen.go | 74 +- macos/cloudkit/protocols.gen.m | 2 +- macos/cloudkit/query.gen.go | 40 +- macos/cloudkit/query_cursor.gen.go | 6 +- macos/cloudkit/query_notification.gen.go | 26 +- macos/cloudkit/query_operation.gen.go | 90 +- macos/cloudkit/query_subscription.gen.go | 38 +- macos/cloudkit/record.gen.go | 227 +- macos/cloudkit/record_id.gen.go | 38 +- ... record_key_value_setting_protocol.gen.go} | 89 +- ...ue.gen.go => record_value_protocol.gen.go} | 9 +- macos/cloudkit/record_zone.gen.go | 24 +- macos/cloudkit/record_zone_id.gen.go | 6 +- .../cloudkit/record_zone_notification.gen.go | 6 +- .../cloudkit/record_zone_subscription.gen.go | 38 +- macos/cloudkit/reference.gen.go | 6 +- macos/cloudkit/server_change_token.gen.go | 6 +- macos/cloudkit/share.gen.go | 84 +- macos/cloudkit/share_metadata.gen.go | 72 +- macos/cloudkit/share_participant.gen.go | 24 +- macos/cloudkit/subscription.gen.go | 24 +- macos/cloudkit/user_identity.gen.go | 42 +- .../cloudkit/user_identity_lookup_info.gen.go | 82 +- .../change_history_add_contact_event.gen.go | 20 +- .../change_history_add_group_event.gen.go | 20 +- ...e_history_add_member_to_group_event.gen.go | 20 +- ...history_add_subgroup_to_group_event.gen.go | 6 +- ...change_history_delete_contact_event.gen.go | 6 +- .../change_history_delete_group_event.gen.go | 6 +- ...hange_history_drop_everything_event.gen.go | 6 +- macos/contacts/change_history_event.gen.go | 6 +- ...nge_history_event_visitor_protocol.gen.go} | 153 +- .../change_history_fetch_request.gen.go | 72 +- ...tory_remove_member_from_group_event.gen.go | 20 +- ...ry_remove_subgroup_from_group_event.gen.go | 6 +- ...change_history_update_contact_event.gen.go | 6 +- .../change_history_update_group_event.gen.go | 6 +- macos/contacts/contact.gen.go | 410 +- macos/contacts/contact_fetch_request.gen.go | 80 +- macos/contacts/contact_formatter.gen.go | 114 +- macos/contacts/contact_property.gen.go | 26 +- macos/contacts/contact_relation.gen.go | 30 +- macos/contacts/contact_store.gen.go | 114 +- .../contact_v_card_serialization.gen.go | 36 +- macos/contacts/contacts_user_defaults.gen.go | 6 +- macos/contacts/container.gen.go | 46 +- macos/contacts/doc.gen.go | 6 +- macos/contacts/enumtypes.gen.go | 2 +- macos/contacts/fetch_request.gen.go | 6 +- macos/contacts/fetch_result.gen.go | 20 +- macos/contacts/group.gen.go | 56 +- macos/contacts/instant_message_address.gen.go | 6 +- macos/contacts/labeled_value.gen.go | 52 +- macos/contacts/mutable_contact.gen.go | 246 +- macos/contacts/mutable_group.gen.go | 6 +- macos/contacts/mutable_postal_address.gen.go | 52 +- macos/contacts/phone_number.gen.go | 6 +- macos/contacts/postal_address.gen.go | 72 +- .../contacts/postal_address_formatter.gen.go | 46 +- macos/contacts/protocols.gen.m | 2 +- macos/contacts/save_request.gen.go | 75 +- macos/contacts/social_profile.gen.go | 6 +- macos/contactsui/contact_picker.gen.go | 46 +- .../contactsui/contact_picker_delegate.gen.go | 118 +- .../contactsui/contact_view_controller.gen.go | 14 +- macos/contactsui/doc.gen.go | 6 +- macos/contactsui/protocols.gen.m | 2 +- macos/coreaudio/aliastypes.gen.go | 2 +- macos/coreaudio/doc.gen.go | 6 +- macos/coreaudio/enumtypes.gen.go | 2 +- macos/coreaudio/protocols.gen.m | 2 +- macos/coreaudiotypes/doc.gen.go | 6 +- macos/coreaudiotypes/enumtypes.gen.go | 26 +- macos/coreaudiotypes/protocols.gen.m | 2 +- macos/coredata/aliastypes.gen.go | 2 +- .../asynchronous_fetch_request.gen.go | 6 +- .../coredata/asynchronous_fetch_result.gen.go | 6 +- macos/coredata/atomic_store.gen.go | 106 +- macos/coredata/atomic_store_cache_node.gen.go | 24 +- macos/coredata/attribute_description.gen.go | 116 +- macos/coredata/batch_delete_request.gen.go | 6 +- macos/coredata/batch_delete_result.gen.go | 6 +- macos/coredata/batch_insert_request.gen.go | 146 +- macos/coredata/batch_insert_result.gen.go | 6 +- macos/coredata/batch_update_request.gen.go | 106 +- macos/coredata/batch_update_result.gen.go | 24 +- macos/coredata/constraint_conflict.gen.go | 62 +- .../core_data_core_spotlight_delegate.gen.go | 58 +- .../derived_attribute_description.gen.go | 6 +- macos/coredata/doc.gen.go | 6 +- macos/coredata/entity_description.gen.go | 276 +- macos/coredata/entity_mapping.gen.go | 214 +- macos/coredata/entity_migration_policy.gen.go | 64 +- macos/coredata/enumtypes.gen.go | 2 +- macos/coredata/expression_description.gen.go | 6 +- macos/coredata/fetch_index_description.gen.go | 40 +- .../fetch_index_element_description.gen.go | 42 +- macos/coredata/fetch_request.gen.go | 336 +- .../coredata/fetch_request_expression.gen.go | 24 +- ...o => fetch_request_result_protocol.gen.go} | 9 +- .../fetched_property_description.gen.go | 6 +- .../fetched_results_controller.gen.go | 106 +- ...fetched_results_controller_delegate.gen.go | 156 +- ...ched_results_section_info_protocol.gen.go} | 65 +- macos/coredata/incremental_store.gen.go | 95 +- macos/coredata/incremental_store_node.gen.go | 34 +- macos/coredata/managed_object.gen.go | 370 +- macos/coredata/managed_object_context.gen.go | 498 +- macos/coredata/managed_object_id.gen.go | 24 +- macos/coredata/managed_object_model.gen.go | 178 +- macos/coredata/mapping_model.gen.go | 24 +- macos/coredata/merge_conflict.gen.go | 34 +- macos/coredata/merge_policy.gen.go | 88 +- macos/coredata/migration_manager.gen.go | 152 +- .../persistent_cloud_kit_container.gen.go | 156 +- ...ersistent_cloud_kit_container_event.gen.go | 52 +- ...t_cloud_kit_container_event_request.gen.go | 30 +- ...nt_cloud_kit_container_event_result.gen.go | 24 +- ...sistent_cloud_kit_container_options.gen.go | 24 +- macos/coredata/persistent_container.gen.go | 115 +- .../coredata/persistent_history_change.gen.go | 82 +- .../persistent_history_change_request.gen.go | 100 +- .../coredata/persistent_history_result.gen.go | 6 +- .../coredata/persistent_history_token.gen.go | 6 +- .../persistent_history_transaction.gen.go | 122 +- macos/coredata/persistent_store.gen.go | 120 +- ...ersistent_store_asynchronous_result.gen.go | 24 +- .../persistent_store_coordinator.gen.go | 171 +- .../persistent_store_description.gen.go | 158 +- .../coredata/persistent_store_request.gen.go | 6 +- macos/coredata/persistent_store_result.gen.go | 6 +- macos/coredata/property_description.gen.go | 164 +- macos/coredata/property_mapping.gen.go | 40 +- macos/coredata/protocols.gen.m | 2 +- macos/coredata/query_generation_token.gen.go | 6 +- .../coredata/relationship_description.gen.go | 50 +- macos/coredata/save_changes_request.gen.go | 44 +- macos/corefoundation/aliastypes.gen.go | 2 +- macos/corefoundation/doc.gen.go | 6 +- macos/corefoundation/enumtypes.gen.go | 8 +- macos/corefoundation/protocols.gen.m | 2 +- macos/coregraphics/aliastypes.gen.go | 4 +- macos/coregraphics/doc.gen.go | 6 +- macos/coregraphics/enumtypes.gen.go | 4 +- macos/coregraphics/protocols.gen.m | 2 +- ...accordion_fold_transition_protocol.gen.go} | 81 +- ...mp.gen.go => affine_clamp_protocol.gen.go} | 73 +- ...ile.gen.go => affine_tile_protocol.gen.go} | 73 +- macos/coreimage/aliastypes.gen.go | 4 +- ...ge.gen.go => area_average_protocol.gen.go} | 9 +- ....gen.go => area_histogram_protocol.gen.go} | 25 +- macos/coreimage/area_maximum_alpha.gen.go | 18 - .../area_maximum_alpha_protocol.gen.go | 21 + ...um.gen.go => area_maximum_protocol.gen.go} | 9 +- ...ax.gen.go => area_min_max_protocol.gen.go} | 9 +- ...en.go => area_min_max_red_protocol.gen.go} | 9 +- macos/coreimage/area_minimum_alpha.gen.go | 18 - .../area_minimum_alpha_protocol.gen.go | 21 + ...um.gen.go => area_minimum_protocol.gen.go} | 9 +- ... => area_reduction_filter_protocol.gen.go} | 65 +- ...uted_text_image_generator_protocol.gen.go} | 27 +- macos/coreimage/aztec_code_descriptor.gen.go | 42 +- ...o => aztec_code_generator_protocol.gen.go} | 137 +- macos/coreimage/barcode_descriptor.gen.go | 6 +- ...n.go => barcode_generator_protocol.gen.go} | 19 +- ... => bars_swipe_transition_protocol.gen.go} | 81 +- ...> bicubic_scale_transform_protocol.gen.go} | 145 +- macos/coreimage/blend_kernel.gen.go | 663 +-- ...gen.go => blend_with_mask_protocol.gen.go} | 87 +- .../{bloom.gen.go => bloom_protocol.gen.go} | 81 +- ...blur.gen.go => bokeh_blur_protocol.gen.go} | 147 +- ...x_blur.gen.go => box_blur_protocol.gen.go} | 73 +- ...=> bump_distortion_linear_protocol.gen.go} | 129 +- ...gen.go => bump_distortion_protocol.gen.go} | 83 +- ...=> checkerboard_generator_protocol.gen.go} | 147 +- ... circle_splash_distortion_protocol.gen.go} | 87 +- ...gen.go => circular_screen_protocol.gen.go} | 97 +- ...p.gen.go => circular_wrap_protocol.gen.go} | 121 +- ...e.gen.go => cmyk_halftone_protocol.gen.go} | 233 +- ...code128_barcode_generator_protocol.gen.go} | 81 +- macos/coreimage/color.gen.go | 320 +- ...color_absolute_difference_protocol.gen.go} | 65 +- ...amp.gen.go => color_clamp_protocol.gen.go} | 83 +- ....gen.go => color_controls_protocol.gen.go} | 97 +- ...=> color_cross_polynomial_protocol.gen.go} | 115 +- ...cube.gen.go => color_cube_protocol.gen.go} | 81 +- ...lor_cube_with_color_space_protocol.gen.go} | 97 +- ...lor_cubes_mixed_with_mask_protocol.gen.go} | 163 +- ...es.gen.go => color_curves_protocol.gen.go} | 137 +- ...rt.gen.go => color_invert_protocol.gen.go} | 19 +- macos/coreimage/color_kernel.gen.go | 18 +- ...r_map.gen.go => color_map_protocol.gen.go} | 29 +- ...ix.gen.go => color_matrix_protocol.gen.go} | 121 +- ...en.go => color_monochrome_protocol.gen.go} | 83 +- ...en.go => color_polynomial_protocol.gen.go} | 153 +- ...gen.go => color_posterize_protocol.gen.go} | 73 +- ...o => color_threshold_otsu_protocol.gen.go} | 19 +- ...gen.go => color_threshold_protocol.gen.go} | 65 +- ....gen.go => column_average_protocol.gen.go} | 9 +- ...ct.gen.go => comic_effect_protocol.gen.go} | 19 +- ...go => composite_operation_protocol.gen.go} | 29 +- macos/coreimage/context.gen.go | 389 +- ...ion.gen.go => convolution_protocol.gen.go} | 85 +- ...> copy_machine_transition_protocol.gen.go} | 99 +- ...l.gen.go => core_ml_model_protocol.gen.go} | 137 +- ...ize.gen.go => crystallize_protocol.gen.go} | 87 +- .../data_matrix_code_descriptor.gen.go | 6 +- ....gen.go => depth_of_field_protocol.gen.go} | 233 +- ....go => depth_to_disparity_protocol.gen.go} | 19 +- macos/coreimage/detector.gen.go | 31 +- ..._blur.gen.go => disc_blur_protocol.gen.go} | 73 +- ...rate_with_mask_transition_protocol.gen.go} | 115 +- ....go => disparity_to_depth_protocol.gen.go} | 19 +- ...> displacement_distortion_protocol.gen.go} | 73 +- ...go => dissolve_transition_protocol.gen.go} | 9 +- .../{dither.gen.go => dither_protocol.gen.go} | 73 +- macos/coreimage/doc.gen.go | 6 +- ...n.go => document_enhancer_protocol.gen.go} | 73 +- ...reen.gen.go => dot_screen_protocol.gen.go} | 123 +- .../{droste.gen.go => droste_protocol.gen.go} | 177 +- ...=> edge_preserve_upsample_protocol.gen.go} | 97 +- ..._work.gen.go => edge_work_protocol.gen.go} | 73 +- .../{edges.gen.go => edges_protocol.gen.go} | 73 +- ... eightfold_reflected_tile_protocol.gen.go} | 43 +- macos/coreimage/enumtypes.gen.go | 2 +- ...gen.go => exposure_adjust_protocol.gen.go} | 73 +- macos/coreimage/face_feature.gen.go | 110 +- ...lor.gen.go => false_color_protocol.gen.go} | 89 +- macos/coreimage/feature.gen.go | 6 +- macos/coreimage/filter.gen.go | 3775 ++++++++------- ....go => filter_constructor_protocol.gen.go} | 15 +- macos/coreimage/filter_generator.gen.go | 128 +- macos/coreimage/filter_protocol.gen.go | 177 + macos/coreimage/filter_shape.gen.go | 68 +- ...en.go => flash_transition_protocol.gen.go} | 187 +- ...oordinate_geometry_filter_protocol.gen.go} | 111 +- ...> fourfold_reflected_tile_protocol.gen.go} | 147 +- ... => fourfold_rotated_tile_protocol.gen.go} | 137 +- ... fourfold_translated_tile_protocol.gen.go} | 149 +- ...gen.go => gabor_gradients_protocol.gen.go} | 19 +- ...st.gen.go => gamma_adjust_protocol.gen.go} | 27 +- ...r.gen.go => gaussian_blur_protocol.gen.go} | 27 +- ...n.go => gaussian_gradient_protocol.gen.go} | 115 +- ...en.go => glass_distortion_protocol.gen.go} | 113 +- ...e.gen.go => glass_lozenge_protocol.gen.go} | 129 +- ...o => glide_reflected_tile_protocol.gen.go} | 89 +- .../{gloom.gen.go => gloom_protocol.gen.go} | 81 +- ....gen.go => hatched_screen_protocol.gen.go} | 149 +- ...=> height_field_from_mask_protocol.gen.go} | 73 +- ...go => hexagonal_pixellate_protocol.gen.go} | 87 +- ...> highlight_shadow_adjust_protocol.gen.go} | 113 +- ...n.go => histogram_display_protocol.gen.go} | 121 +- ...gen.go => hole_distortion_protocol.gen.go} | 73 +- ...just.gen.go => hue_adjust_protocol.gen.go} | 27 +- ...saturation_value_gradient_protocol.gen.go} | 97 +- macos/coreimage/image.gen.go | 883 ++-- macos/coreimage/image_accumulator.gen.go | 80 +- ... => image_processor_input_protocol.gen.go} | 117 +- macos/coreimage/image_processor_kernel.gen.go | 66 +- ...=> image_processor_output_protocol.gen.go} | 125 +- ...k_means.gen.go => k_means_protocol.gen.go} | 83 +- ...pe.gen.go => kaleidoscope_protocol.gen.go} | 137 +- macos/coreimage/kernel.gen.go | 64 +- ...stone_correction_combined_protocol.gen.go} | 17 +- ...one_correction_horizontal_protocol.gen.go} | 17 +- ...stone_correction_vertical_protocol.gen.go} | 17 +- ...a_e.gen.go => lab_delta_e_protocol.gen.go} | 73 +- ...> lanczos_scale_transform_protocol.gen.go} | 81 +- ...lenticular_halo_generator_protocol.gen.go} | 169 +- ...el.gen.go => light_tunnel_protocol.gen.go} | 111 +- ...ay.gen.go => line_overlay_protocol.gen.go} | 155 +- ...een.gen.go => line_screen_protocol.gen.go} | 145 +- ...gen.go => linear_gradient_protocol.gen.go} | 113 +- ...linear_to_srgb_tone_curve_protocol.gen.go} | 19 +- ...a.gen.go => mask_to_alpha_protocol.gen.go} | 19 +- ...o => masked_variable_blur_protocol.gen.go} | 87 +- ...n.go => maximum_component_protocol.gen.go} | 19 +- .../{median.gen.go => median_protocol.gen.go} | 19 +- ....gen.go => mesh_generator_protocol.gen.go} | 83 +- ...n.go => minimum_component_protocol.gen.go} | 19 +- .../{mix.gen.go => mix_protocol.gen.go} | 85 +- ....gen.go => mod_transition_protocol.gen.go} | 113 +- ...go => morphology_gradient_protocol.gen.go} | 27 +- ....go => morphology_maximum_protocol.gen.go} | 27 +- ....go => morphology_minimum_protocol.gen.go} | 73 +- ...phology_rectangle_maximum_protocol.gen.go} | 85 +- ...phology_rectangle_minimum_protocol.gen.go} | 85 +- ...lur.gen.go => motion_blur_protocol.gen.go} | 35 +- ...go => nine_part_stretched_protocol.gen.go} | 101 +- ...gen.go => nine_part_tiled_protocol.gen.go} | 137 +- ...gen.go => noise_reduction_protocol.gen.go} | 83 +- ...op_tile.gen.go => op_tile_protocol.gen.go} | 99 +- ...o => page_curl_transition_protocol.gen.go} | 107 +- ...rl_with_shadow_transition_protocol.gen.go} | 209 +- ...en.go => palette_centroid_protocol.gen.go} | 83 +- ...ttize.gen.go => palettize_protocol.gen.go} | 85 +- ....go => parallelogram_tile_protocol.gen.go} | 121 +- ...pd_f417_barcode_generator_protocol.gen.go} | 369 +- .../coreimage/pd_f417_code_descriptor.gen.go | 42 +- ...go => person_segmentation_protocol.gen.go} | 65 +- ...=> perspective_correction_protocol.gen.go} | 17 +- ....go => perspective_rotate_protocol.gen.go} | 127 +- ...en.go => perspective_tile_protocol.gen.go} | 145 +- ... => perspective_transform_protocol.gen.go} | 9 +- ...ive_transform_with_extent_protocol.gen.go} | 17 +- ...ct.gen.go => photo_effect_protocol.gen.go} | 19 +- ...en.go => pinch_distortion_protocol.gen.go} | 121 +- ...llate.gen.go => pixellate_protocol.gen.go} | 81 +- macos/coreimage/plug_in.gen.go | 34 +- ...o => plug_in_registration_protocol.gen.go} | 13 +- ...ize.gen.go => pointillize_protocol.gen.go} | 87 +- macos/coreimage/qr_code_descriptor.gen.go | 50 +- macos/coreimage/qr_code_feature.gen.go | 62 +- ...n.go => qr_code_generator_protocol.gen.go} | 73 +- ...gen.go => radial_gradient_protocol.gen.go} | 147 +- ...en.go => random_generator_protocol.gen.go} | 9 +- macos/coreimage/raw_filter.gen.go | 642 ++- macos/coreimage/rectangle_feature.gen.go | 24 +- macos/coreimage/render_destination.gen.go | 174 +- macos/coreimage/render_info.gen.go | 24 +- macos/coreimage/render_task.gen.go | 6 +- ...n.go => ripple_transition_protocol.gen.go} | 169 +- ...unded_rectangle_generator_protocol.gen.go} | 81 +- ...age.gen.go => row_average_protocol.gen.go} | 9 +- ...ap.gen.go => saliency_map_protocol.gen.go} | 19 +- macos/coreimage/sampler.gen.go | 59 +- ...tone.gen.go => sepia_tone_protocol.gen.go} | 73 +- ...gen.go => shaded_material_protocol.gen.go} | 83 +- ...n.go => sharpen_luminance_protocol.gen.go} | 87 +- ...=> sixfold_reflected_tile_protocol.gen.go} | 95 +- ...o => sixfold_rotated_tile_protocol.gen.go} | 89 +- ...=> smooth_linear_gradient_protocol.gen.go} | 91 +- ...olor.gen.go => spot_color_protocol.gen.go} | 363 +- ...ight.gen.go => spot_light_protocol.gen.go} | 177 +- ...srgb_tone_curve_to_linear_protocol.gen.go} | 19 +- ...o => star_shine_generator_protocol.gen.go} | 217 +- ...hten.gen.go => straighten_protocol.gen.go} | 27 +- ...op.gen.go => stretch_crop_protocol.gen.go} | 101 +- ...n.go => stripes_generator_protocol.gen.go} | 151 +- ....go => sunbeams_generator_protocol.gen.go} | 209 +- ...en.go => swipe_transition_protocol.gen.go} | 147 +- ...o => temperature_and_tint_protocol.gen.go} | 83 +- macos/coreimage/text_feature.gen.go | 44 +- ...o => text_image_generator_protocol.gen.go} | 137 +- ...thermal.gen.go => thermal_protocol.gen.go} | 19 +- ...urve.gen.go => tone_curve_protocol.gen.go} | 177 +- ... => torus_lens_distortion_protocol.gen.go} | 129 +- ...n.go => transition_filter_protocol.gen.go} | 83 +- ... => triangle_kaleidoscope_protocol.gen.go} | 153 +- ...e.gen.go => triangle_tile_protocol.gen.go} | 97 +- ...twelvefold_reflected_tile_protocol.gen.go} | 137 +- ...en.go => twirl_distortion_protocol.gen.go} | 121 +- ...sk.gen.go => unsharp_mask_protocol.gen.go} | 83 +- macos/coreimage/vector.gen.go | 266 +- ...brance.gen.go => vibrance_protocol.gen.go} | 27 +- ...gen.go => vignette_effect_protocol.gen.go} | 121 +- ...gnette.gen.go => vignette_protocol.gen.go} | 81 +- ...n.go => vortex_distortion_protocol.gen.go} | 81 +- macos/coreimage/warp_kernel.gen.go | 18 +- ....go => white_point_adjust_protocol.gen.go} | 29 +- .../{x_ray.gen.go => x_ray_protocol.gen.go} | 19 +- ..._blur.gen.go => zoom_blur_protocol.gen.go} | 35 +- macos/corelocation/aliastypes.gen.go | 2 +- macos/corelocation/beacon.gen.go | 62 +- macos/corelocation/beacon_region.gen.go | 6 +- macos/corelocation/circular_region.gen.go | 6 +- macos/corelocation/doc.gen.go | 6 +- macos/corelocation/enumtypes.gen.go | 2 +- macos/corelocation/floor.gen.go | 6 +- macos/corelocation/geocoder.gen.go | 69 +- macos/corelocation/heading.gen.go | 50 +- macos/corelocation/location.gen.go | 146 +- macos/corelocation/location_manager.gen.go | 376 +- .../location_manager_delegate.gen.go | 399 +- .../location_source_information.gen.go | 24 +- macos/corelocation/placemark.gen.go | 150 +- macos/corelocation/protocols.gen.m | 2 +- macos/corelocation/region.gen.go | 42 +- macos/corelocation/visit.gen.go | 34 +- macos/coremedia/aliastypes.gen.go | 8 +- macos/coremedia/doc.gen.go | 6 +- macos/coremedia/enumtypes.gen.go | 6 +- macos/coremedia/protocols.gen.m | 2 +- macos/coremediaio/aliastypes.gen.go | 2 +- macos/coremediaio/doc.gen.go | 6 +- macos/coremediaio/enumtypes.gen.go | 2 +- macos/coremediaio/extension_client.gen.go | 6 +- macos/coremediaio/extension_device.gen.go | 94 +- .../extension_device_properties.gen.go | 98 +- ...> extension_device_source_protocol.gen.go} | 47 +- .../extension_property_attributes.gen.go | 66 +- .../extension_property_state.gen.go | 44 +- macos/coremediaio/extension_provider.gen.go | 48 +- .../extension_provider_properties.gen.go | 30 +- ...extension_provider_source_protocol.gen.go} | 59 +- .../extension_scheduled_output.gen.go | 6 +- macos/coremediaio/extension_stream.gen.go | 112 +- ...n_stream_custom_clock_configuration.gen.go | 66 +- .../extension_stream_format.gen.go | 48 +- .../extension_stream_properties.gen.go | 118 +- ...> extension_stream_source_protocol.gen.go} | 93 +- macos/coremidi/aliastypes.gen.go | 2 +- macos/coremidi/ci_device_info.gen.go | 42 +- macos/coremidi/ci_discovered_node.gen.go | 42 +- macos/coremidi/ci_discovery_manager.gen.go | 6 +- macos/coremidi/ci_profile.gen.go | 20 +- .../ci_profile_responder_delegate.gen.go | 139 +- macos/coremidi/ci_profile_state.gen.go | 24 +- macos/coremidi/ci_responder.gen.go | 42 +- macos/coremidi/ci_session.gen.go | 98 +- macos/coremidi/doc.gen.go | 6 +- macos/coremidi/enumtypes.gen.go | 11 +- macos/coremidi/network_connection.gen.go | 6 +- macos/coremidi/network_host.gen.go | 58 +- macos/coremidi/network_session.gen.go | 126 +- macos/coremidi/protocols.gen.m | 2 +- macos/coreml/array_batch_provider.gen.go | 12 +- ....gen.go => batch_provider_protocol.gen.go} | 21 +- ...er.gen.go => custom_layer_protocol.gen.go} | 91 +- ...el.gen.go => custom_model_protocol.gen.go} | 55 +- macos/coreml/dictionary_constraint.gen.go | 6 +- .../coreml/dictionary_feature_provider.gen.go | 6 +- macos/coreml/doc.gen.go | 6 +- macos/coreml/enumtypes.gen.go | 2 +- macos/coreml/feature_description.gen.go | 72 +- ...en.go => feature_provider_protocol.gen.go} | 21 +- macos/coreml/feature_value.gen.go | 248 +- macos/coreml/image_constraint.gen.go | 34 +- macos/coreml/image_size.gen.go | 6 +- macos/coreml/image_size_constraint.gen.go | 24 +- macos/coreml/key.gen.go | 6 +- macos/coreml/metric_key.gen.go | 36 +- macos/coreml/model.gen.go | 108 +- macos/coreml/model_collection.gen.go | 6 +- macos/coreml/model_collection_entry.gen.go | 6 +- macos/coreml/model_configuration.gen.go | 78 +- macos/coreml/model_description.gen.go | 80 +- macos/coreml/multi_array.gen.go | 84 +- macos/coreml/multi_array_constraint.gen.go | 26 +- .../multi_array_shape_constraint.gen.go | 24 +- macos/coreml/numeric_constraint.gen.go | 6 +- macos/coreml/parameter_description.gen.go | 26 +- macos/coreml/parameter_key.gen.go | 192 +- macos/coreml/prediction_options.gen.go | 6 +- macos/coreml/protocols.gen.m | 2 +- macos/coreml/sequence.gen.go | 24 +- macos/coreml/sequence_constraint.gen.go | 24 +- macos/coreml/task.gen.go | 22 +- macos/coreml/update_context.gen.go | 24 +- macos/coreml/update_progress_handlers.gen.go | 6 +- macos/coreml/update_task.gen.go | 45 +- ...itable.gen.go => writable_protocol.gen.go} | 13 +- .../corespotlight/custom_attribute_key.gen.go | 56 +- macos/corespotlight/doc.gen.go | 6 +- macos/corespotlight/enumtypes.gen.go | 2 +- macos/corespotlight/import_extension.gen.go | 6 +- .../index_extension_request_handler.gen.go | 6 +- macos/corespotlight/localized_string.gen.go | 286 +- macos/corespotlight/person.gen.go | 42 +- macos/corespotlight/protocols.gen.m | 2 +- macos/corespotlight/search_query.gen.go | 68 +- macos/corespotlight/searchable_index.gen.go | 98 +- .../searchable_index_delegate.gen.go | 192 +- macos/corespotlight/searchable_item.gen.go | 46 +- .../searchable_item_attribute_set.gen.go | 3622 +++++++------- macos/corevideo/aliastypes.gen.go | 4 +- macos/corevideo/doc.gen.go | 6 +- macos/corevideo/enumtypes.gen.go | 4 +- macos/corevideo/protocols.gen.m | 2 +- macos/fileprovider/doc.gen.go | 6 +- macos/fileprovider/enumtypes.gen.go | 2 +- ..._provider_change_observer_protocol.gen.go} | 53 +- ...le_provider_custom_action_protocol.gen.go} | 15 +- .../fileprovider/file_provider_domain.gen.go | 68 +- ...ile_provider_domain_state_protocol.gen.go} | 19 +- .../file_provider_domain_version.gen.go | 6 +- ...file_provider_enumerating_protocol.gen.go} | 17 +- ...ider_enumeration_observer_protocol.gen.go} | 51 +- ... file_provider_enumerator_protocol.gen.go} | 53 +- ...remental_content_fetching_protocol.gen.go} | 15 +- ..._provider_item_decorating_protocol.gen.go} | 13 +- .../file_provider_item_version.gen.go | 24 +- .../fileprovider/file_provider_manager.gen.go | 252 +- ..._partial_content_fetching_protocol.gen.go} | 15 +- ...er_pending_set_enumerator_protocol.gen.go} | 19 +- ...ider_replicated_extension_protocol.gen.go} | 161 +- .../fileprovider/file_provider_request.gen.go | 24 +- ...e_provider_service_source_protocol.gen.go} | 19 +- ...> file_provider_servicing_protocol.gen.go} | 15 +- ...ting_children_enumeration_protocol.gen.go} | 17 +- ...ting_collision_resolution_protocol.gen.go} | 41 +- ...der_testing_content_fetch_protocol.gen.go} | 17 +- ...provider_testing_creation_protocol.gen.go} | 25 +- ...provider_testing_deletion_protocol.gen.go} | 89 +- ...rovider_testing_ingestion_protocol.gen.go} | 47 +- ...e_provider_testing_lookup_protocol.gen.go} | 17 +- ...ider_testing_modification_protocol.gen.go} | 93 +- ...rovider_testing_operation_protocol.gen.go} | 133 +- ...ile_provider_thumbnailing_protocol.gen.go} | 15 +- ...r_interaction_suppressing_protocol.gen.go} | 17 +- macos/foundation/affine_transform.gen.go | 140 +- macos/foundation/aliastypes.gen.go | 10 +- .../foundation/apple_event_descriptor.gen.go | 304 +- macos/foundation/apple_event_manager.gen.go | 56 +- macos/foundation/apple_script.gen.go | 42 +- macos/foundation/archiver.gen.go | 6 +- macos/foundation/array.gen.go | 649 ++- macos/foundation/assertion_handler.gen.go | 6 +- macos/foundation/attributed_string.gen.go | 458 +- ...ted_string_markdown_parsing_options.gen.go | 40 +- macos/foundation/autorelease_pool.gen.go | 28 +- .../background_activity_scheduler.gen.go | 94 +- macos/foundation/block_operation.gen.go | 6 +- macos/foundation/bundle.gen.go | 576 ++- macos/foundation/byte_count_formatter.gen.go | 164 +- macos/foundation/cache.gen.go | 102 +- macos/foundation/cache_delegate.gen.go | 13 +- macos/foundation/cached_url_response.gen.go | 56 +- macos/foundation/calendar.gen.go | 609 +-- macos/foundation/calendar_date.gen.go | 102 +- macos/foundation/character_set.gen.go | 403 +- macos/foundation/class_description.gen.go | 54 +- macos/foundation/clone_command.gen.go | 6 +- macos/foundation/close_command.gen.go | 6 +- macos/foundation/coder.gen.go | 692 +-- .../{coding.gen.go => coding_protocol.gen.go} | 19 +- macos/foundation/comparison_predicate.gen.go | 55 +- macos/foundation/compound_predicate.gen.go | 46 +- macos/foundation/condition.gen.go | 22 +- macos/foundation/condition_lock.gen.go | 49 +- macos/foundation/connection.gen.go | 6 +- macos/foundation/connection_delegate.gen.go | 9 +- ...copying.gen.go => copying_protocol.gen.go} | 16 +- macos/foundation/count_command.gen.go | 6 +- macos/foundation/counted_set.gen.go | 138 +- macos/foundation/create_command.gen.go | 24 +- macos/foundation/data.gen.go | 324 +- macos/foundation/data_detector.gen.go | 6 +- macos/foundation/date.gen.go | 198 +- macos/foundation/date_components.gen.go | 332 +- .../date_components_formatter.gen.go | 198 +- macos/foundation/date_formatter.gen.go | 678 ++- macos/foundation/date_interval.gen.go | 68 +- .../foundation/date_interval_formatter.gen.go | 90 +- macos/foundation/decimal_number.gen.go | 287 +- ... decimal_number_behaviors_protocol.gen.go} | 45 +- .../foundation/decimal_number_handler.gen.go | 6 +- macos/foundation/delete_command.gen.go | 6 +- macos/foundation/dictionary.gen.go | 513 +- macos/foundation/dimension.gen.go | 30 +- macos/foundation/directory_enumerator.gen.go | 38 +- ...go => discardable_content_protocol.gen.go} | 51 +- .../foundation/distant_object_request.gen.go | 6 +- macos/foundation/distributed_lock.gen.go | 46 +- .../distributed_notification_center.gen.go | 32 +- macos/foundation/doc.gen.go | 6 +- macos/foundation/energy_formatter.gen.go | 24 +- macos/foundation/enumerator.gen.go | 6 +- macos/foundation/enumtypes.gen.go | 66 +- macos/foundation/error.gen.go | 102 +- macos/foundation/exception.gen.go | 70 +- macos/foundation/exists_command.gen.go | 6 +- macos/foundation/expression.gen.go | 354 +- macos/foundation/extension_context.gen.go | 66 +- macos/foundation/extension_item.gen.go | 74 +- ...xtension_request_handling_protocol.gen.go} | 13 +- ...en.go => fast_enumeration_protocol.gen.go} | 13 +- macos/foundation/file_access_intent.gen.go | 6 +- macos/foundation/file_coordinator.gen.go | 132 +- macos/foundation/file_handle.gen.go | 294 +- macos/foundation/file_manager.gen.go | 554 ++- macos/foundation/file_manager_delegate.gen.go | 525 +- ....gen.go => file_presenter_protocol.gen.go} | 296 +- macos/foundation/file_provider_service.gen.go | 6 +- macos/foundation/file_security.gen.go | 6 +- macos/foundation/file_version.gen.go | 166 +- macos/foundation/file_wrapper.gen.go | 194 +- macos/foundation/formatter.gen.go | 43 +- macos/foundation/garbage_collector.gen.go | 6 +- macos/foundation/get_command.gen.go | 6 +- macos/foundation/hash_table.gen.go | 259 + macos/foundation/host.gen.go | 6 +- macos/foundation/http_cookie.gen.go | 156 +- macos/foundation/http_cookie_storage.gen.go | 90 +- macos/foundation/httpurl_response.gen.go | 6 +- macos/foundation/index_path.gen.go | 129 +- macos/foundation/index_set.gen.go | 270 +- macos/foundation/index_specifier.gen.go | 6 +- macos/foundation/inflection_rule.gen.go | 36 +- .../inflection_rule_explicit.gen.go | 6 +- macos/foundation/input_stream.gen.go | 54 +- macos/foundation/invocation.gen.go | 86 +- macos/foundation/invocation_operation.gen.go | 30 +- .../foundation/is_o8601_date_formatter.gen.go | 21 +- macos/foundation/item_provider.gen.go | 239 +- ... => item_provider_writing_protocol.gen.go} | 47 +- macos/foundation/json_serialization.gen.go | 66 +- macos/foundation/keyed_archiver.gen.go | 52 +- .../foundation/keyed_archiver_delegate.gen.go | 156 +- macos/foundation/keyed_unarchiver.gen.go | 129 +- .../keyed_unarchiver_delegate.gen.go | 127 +- macos/foundation/length_formatter.gen.go | 76 +- macos/foundation/linguistic_tagger.gen.go | 6 +- macos/foundation/list_formatter.gen.go | 48 +- macos/foundation/locale.gen.go | 492 +- macos/foundation/lock.gen.go | 24 +- ...locking.gen.go => locking_protocol.gen.go} | 41 +- macos/foundation/logical_test.gen.go | 34 +- macos/foundation/mach_bootstrap_server.gen.go | 6 +- macos/foundation/mach_port.gen.go | 35 +- macos/foundation/mach_port_delegate.gen.go | 13 +- macos/foundation/map_table.gen.go | 244 + macos/foundation/mass_formatter.gen.go | 62 +- macos/foundation/measurement.gen.go | 24 +- macos/foundation/measurement_formatter.gen.go | 40 +- macos/foundation/message_port.gen.go | 6 +- .../message_port_name_server.gen.go | 6 +- macos/foundation/metadata_item.gen.go | 6 +- macos/foundation/metadata_query.gen.go | 304 +- ...etadata_query_attribute_value_tuple.gen.go | 6 +- .../foundation/metadata_query_delegate.gen.go | 55 +- .../metadata_query_result_group.gen.go | 34 +- macos/foundation/method_signature.gen.go | 54 +- macos/foundation/middle_specifier.gen.go | 6 +- macos/foundation/morphology.gen.go | 70 +- .../morphology_custom_pronoun.gen.go | 6 +- macos/foundation/move_command.gen.go | 6 +- macos/foundation/mutable_array.gen.go | 408 +- .../mutable_attributed_string.gen.go | 395 +- macos/foundation/mutable_character_set.gen.go | 54 +- ...gen.go => mutable_copying_protocol.gen.go} | 16 +- macos/foundation/mutable_data.gen.go | 388 +- macos/foundation/mutable_dictionary.gen.go | 469 +- macos/foundation/mutable_index_set.gen.go | 114 +- macos/foundation/mutable_ordered_set.gen.go | 472 +- macos/foundation/mutable_set.gen.go | 222 +- macos/foundation/mutable_string.gen.go | 364 +- macos/foundation/mutable_url_request.gen.go | 168 +- macos/foundation/name_specifier.gen.go | 8 +- macos/foundation/net_service.gen.go | 6 +- macos/foundation/net_service_browser.gen.go | 6 +- .../net_service_browser_delegate.gen.go | 191 +- macos/foundation/net_service_delegate.gen.go | 240 +- macos/foundation/notification.gen.go | 44 +- macos/foundation/notification_center.gen.go | 62 +- macos/foundation/notification_queue.gen.go | 24 +- macos/foundation/null.gen.go | 6 +- macos/foundation/number.gen.go | 532 +- macos/foundation/number_formatter.gen.go | 1240 +++-- macos/foundation/operation.gen.go | 146 +- macos/foundation/operation_queue.gen.go | 128 +- .../ordered_collection_change.gen.go | 55 +- .../ordered_collection_difference.gen.go | 38 +- macos/foundation/ordered_set.gen.go | 564 ++- macos/foundation/orthography.gen.go | 34 +- macos/foundation/output_stream.gen.go | 106 +- .../foundation/person_name_components.gen.go | 74 +- .../person_name_components_formatter.gen.go | 50 +- macos/foundation/pipe.gen.go | 6 +- macos/foundation/pointer_array.gen.go | 52 +- macos/foundation/pointer_functions.gen.go | 94 +- macos/foundation/port.gen.go | 51 +- macos/foundation/port_coder.gen.go | 6 +- macos/foundation/port_delegate.gen.go | 13 +- macos/foundation/port_message.gen.go | 34 +- macos/foundation/port_name_server.gen.go | 6 +- macos/foundation/positional_specifier.gen.go | 58 +- macos/foundation/predicate.gen.go | 79 +- macos/foundation/presentation_intent.gen.go | 210 +- macos/foundation/process_info.gen.go | 234 +- macos/foundation/progress.gen.go | 463 +- ....go => progress_reporting_protocol.gen.go} | 15 +- .../property_list_serialization.gen.go | 82 +- macos/foundation/property_specifier.gen.go | 6 +- macos/foundation/protocols.gen.m | 2 +- macos/foundation/purgeable_data.gen.go | 284 +- macos/foundation/quit_command.gen.go | 6 +- macos/foundation/random_specifier.gen.go | 6 +- macos/foundation/range_specifier.gen.go | 6 +- macos/foundation/recursive_lock.gen.go | 6 +- macos/foundation/regular_expression.gen.go | 114 +- .../relative_date_time_formatter.gen.go | 114 +- macos/foundation/relative_specifier.gen.go | 42 +- macos/foundation/run_loop.gen.go | 124 +- macos/foundation/scanner.gen.go | 238 +- .../script_class_description.gen.go | 148 +- .../foundation/script_coercion_handler.gen.go | 26 +- macos/foundation/script_command.gen.go | 204 +- .../script_command_description.gen.go | 90 +- .../script_execution_context.gen.go | 6 +- .../foundation/script_object_specifier.gen.go | 158 +- macos/foundation/script_suite_registry.gen.go | 130 +- macos/foundation/script_whose_test.gen.go | 6 +- ...ure_unarchive_from_data_transformer.gen.go | 6 +- macos/foundation/set.gen.go | 372 +- macos/foundation/set_command.gen.go | 6 +- macos/foundation/socket_port.gen.go | 110 +- .../foundation/socket_port_name_server.gen.go | 6 +- macos/foundation/sort_descriptor.gen.go | 86 +- macos/foundation/specifier_test.gen.go | 6 +- macos/foundation/spell_server.gen.go | 12 +- macos/foundation/spell_server_delegate.gen.go | 251 +- macos/foundation/stream.gen.go | 78 +- macos/foundation/stream_delegate.gen.go | 13 +- macos/foundation/string.gen.go | 1402 ++++-- macos/foundation/task.gen.go | 250 +- macos/foundation/text_checking_result.gen.go | 368 +- macos/foundation/thread.gen.go | 284 +- macos/foundation/time_zone.gen.go | 295 +- macos/foundation/timer.gen.go | 158 +- .../ubiquitous_key_value_store.gen.go | 172 +- macos/foundation/unarchiver.gen.go | 6 +- macos/foundation/undo_manager.gen.go | 284 +- macos/foundation/unique_id_specifier.gen.go | 6 +- macos/foundation/unit.gen.go | 6 +- macos/foundation/unit_acceleration.gen.go | 60 +- macos/foundation/unit_angle.gen.go | 90 +- macos/foundation/unit_area.gen.go | 234 +- .../foundation/unit_concentration_mass.gen.go | 60 +- macos/foundation/unit_converter.gen.go | 24 +- macos/foundation/unit_converter_linear.gen.go | 34 +- macos/foundation/unit_dispersion.gen.go | 30 +- macos/foundation/unit_duration.gen.go | 122 +- macos/foundation/unit_electric_charge.gen.go | 76 +- macos/foundation/unit_electric_current.gen.go | 60 +- .../unit_electric_potential_difference.gen.go | 60 +- .../unit_electric_resistance.gen.go | 90 +- macos/foundation/unit_energy.gen.go | 76 +- macos/foundation/unit_frequency.gen.go | 140 +- macos/foundation/unit_fuel_efficiency.gen.go | 60 +- macos/foundation/unit_illuminance.gen.go | 30 +- .../unit_information_storage.gen.go | 580 ++- macos/foundation/unit_length.gen.go | 364 +- macos/foundation/unit_mass.gen.go | 252 +- macos/foundation/unit_power.gen.go | 170 +- macos/foundation/unit_pressure.gen.go | 121 +- macos/foundation/unit_speed.gen.go | 60 +- macos/foundation/unit_temperature.gen.go | 60 +- macos/foundation/unit_volume.gen.go | 510 +- macos/foundation/url.gen.go | 732 +-- .../url_authentication_challenge.gen.go | 54 +- ...tication_challenge_sender_protocol.gen.go} | 55 +- macos/foundation/url_cache.gen.go | 112 +- macos/foundation/url_components.gen.go | 412 +- macos/foundation/url_connection.gen.go | 46 +- .../url_connection_data_delegate.gen.go | 219 +- .../foundation/url_connection_delegate.gen.go | 54 +- .../url_connection_download_delegate.gen.go | 89 +- macos/foundation/url_credential.gen.go | 42 +- .../foundation/url_credential_storage.gen.go | 92 +- macos/foundation/url_download.gen.go | 20 +- macos/foundation/url_download_delegate.gen.go | 429 +- macos/foundation/url_handle.gen.go | 6 +- ...n.go => url_handle_client_protocol.gen.go} | 9 +- macos/foundation/url_protection_space.gen.go | 96 +- macos/foundation/url_protocol.gen.go | 176 +- macos/foundation/url_protocol_client.gen.go | 47 - .../url_protocol_client_protocol.gen.go | 140 + macos/foundation/url_query_item.gen.go | 24 +- macos/foundation/url_request.gen.go | 188 +- macos/foundation/url_response.gen.go | 42 +- macos/foundation/url_session.gen.go | 294 +- .../url_session_configuration.gen.go | 452 +- .../url_session_data_delegate.gen.go | 147 +- macos/foundation/url_session_data_task.gen.go | 6 +- macos/foundation/url_session_delegate.gen.go | 98 +- .../url_session_download_delegate.gen.go | 81 +- .../url_session_download_task.gen.go | 6 +- .../url_session_stream_delegate.gen.go | 114 +- .../foundation/url_session_stream_task.gen.go | 58 +- macos/foundation/url_session_task.gen.go | 272 +- .../url_session_task_delegate.gen.go | 246 +- .../url_session_task_metrics.gen.go | 24 +- ...rl_session_task_transaction_metrics.gen.go | 330 +- .../foundation/url_session_upload_task.gen.go | 6 +- .../url_session_web_socket_delegate.gen.go | 48 +- .../url_session_web_socket_message.gen.go | 40 +- .../url_session_web_socket_task.gen.go | 50 +- macos/foundation/user_activity.gen.go | 406 +- .../foundation/user_activity_delegate.gen.go | 79 +- .../foundation/user_apple_script_task.gen.go | 6 +- macos/foundation/user_automator_task.gen.go | 6 +- macos/foundation/user_defaults.gen.go | 331 +- macos/foundation/user_notification.gen.go | 6 +- .../user_notification_action.gen.go | 6 +- .../user_notification_center.gen.go | 6 +- .../user_notification_center_delegate.gen.go | 9 +- macos/foundation/user_script_task.gen.go | 6 +- macos/foundation/user_unix_task.gen.go | 40 +- macos/foundation/uuid.gen.go | 34 +- macos/foundation/value.gen.go | 252 +- macos/foundation/value_transformer.gen.go | 76 +- macos/foundation/whose_specifier.gen.go | 66 +- macos/foundation/xml_document.gen.go | 288 +- macos/foundation/xml_element.gen.go | 252 +- macos/foundation/xml_node.gen.go | 527 +- macos/foundation/xml_parser.gen.go | 176 +- macos/foundation/xml_parser_delegate.gen.go | 651 ++- macos/foundation/xmldtd.gen.go | 144 +- macos/foundation/xmldtd_node.gen.go | 72 +- macos/foundation/xpc_coder.gen.go | 24 +- macos/foundation/xpc_connection.gen.go | 150 +- macos/foundation/xpc_interface.gen.go | 56 +- macos/foundation/xpc_listener.gen.go | 64 +- macos/foundation/xpc_listener_delegate.gen.go | 13 +- macos/foundation/xpc_listener_endpoint.gen.go | 6 +- ....go => xpc_proxy_creating_protocol.gen.go} | 51 +- macos/imageio/aliastypes.gen.go | 2 +- macos/imageio/doc.gen.go | 6 +- macos/imageio/enumtypes.gen.go | 2 +- macos/imageio/protocols.gen.m | 2 +- macos/iosurface/doc.gen.go | 6 +- macos/iosurface/enumtypes.gen.go | 2 +- macos/iosurface/io_surface.gen.go | 222 +- macos/iosurface/protocols.gen.m | 2 +- ...hange_language_option_command_event.gen.go | 6 +- .../change_playback_position_command.gen.go | 6 +- ...nge_playback_position_command_event.gen.go | 6 +- .../change_playback_rate_command.gen.go | 6 +- .../change_playback_rate_command_event.gen.go | 6 +- .../change_repeat_mode_command.gen.go | 6 +- .../change_repeat_mode_command_event.gen.go | 6 +- .../change_shuffle_mode_command.gen.go | 6 +- .../change_shuffle_mode_command_event.gen.go | 6 +- macos/mediaplayer/content_item.gen.go | 134 +- macos/mediaplayer/doc.gen.go | 6 +- macos/mediaplayer/enumtypes.gen.go | 2 +- macos/mediaplayer/feedback_command.gen.go | 40 +- .../mediaplayer/feedback_command_event.gen.go | 6 +- macos/mediaplayer/media_item_artwork.gen.go | 24 +- .../now_playing_info_center.gen.go | 6 +- .../now_playing_info_language_option.gen.go | 52 +- ..._playing_info_language_option_group.gen.go | 6 +- macos/mediaplayer/protocols.gen.m | 2 +- macos/mediaplayer/rating_command.gen.go | 40 +- macos/mediaplayer/rating_command_event.gen.go | 6 +- macos/mediaplayer/remote_command.gen.go | 30 +- .../mediaplayer/remote_command_center.gen.go | 158 +- macos/mediaplayer/remote_command_event.gen.go | 6 +- macos/mediaplayer/seek_command_event.gen.go | 6 +- .../mediaplayer/skip_interval_command.gen.go | 6 +- .../skip_interval_command_event.gen.go | 6 +- ...m_music_player_controller_protocol.gen.go} | 9 +- ...re_bounding_box_geometry_descriptor.gen.go | 46 +- ...structure_command_encoder_protocol.gen.go} | 224 +- .../acceleration_structure_descriptor.gen.go | 6 +- ...ation_structure_geometry_descriptor.gen.go | 74 +- ...on_bounding_box_geometry_descriptor.gen.go | 6 +- ...motion_triangle_geometry_descriptor.gen.go | 86 +- ...=> acceleration_structure_protocol.gen.go} | 13 +- ...ucture_triangle_geometry_descriptor.gen.go | 90 +- macos/metal/aliastypes.gen.go | 20 +- macos/metal/argument.gen.go | 6 +- macos/metal/argument_descriptor.gen.go | 100 +- ...en.go => argument_encoder_protocol.gen.go} | 440 +- macos/metal/array_type.gen.go | 62 +- macos/metal/attribute.gen.go | 52 +- macos/metal/attribute_descriptor.gen.go | 40 +- macos/metal/attribute_descriptor_array.gen.go | 22 +- macos/metal/binary_archive_descriptor.gen.go | 6 +- ....gen.go => binary_archive_protocol.gen.go} | 99 +- macos/metal/blit_command_encoder.gen.go | 295 -- .../blit_command_encoder_protocol.gen.go | 432 ++ macos/metal/blit_pass_descriptor.gen.go | 6 +- ...sample_buffer_attachment_descriptor.gen.go | 46 +- ..._buffer_attachment_descriptor_array.gen.go | 6 +- macos/metal/buffer_layout_descriptor.gen.go | 40 +- .../buffer_layout_descriptor_array.gen.go | 22 +- .../{buffer.gen.go => buffer_protocol.gen.go} | 111 +- macos/metal/capture_descriptor.gen.go | 6 +- macos/metal/capture_manager.gen.go | 86 +- ...e.gen.go => capture_scope_protocol.gen.go} | 77 +- macos/metal/command_buffer_descriptor.gen.go | 40 +- ...mmand_buffer_encoder_info_protocol.gen.go} | 21 +- ....gen.go => command_buffer_protocol.gen.go} | 537 ++- ...gen.go => command_encoder_protocol.gen.go} | 91 +- ...e.gen.go => command_queue_protocol.gen.go} | 81 +- macos/metal/compile_options.gen.go | 94 +- ...> compute_command_encoder_protocol.gen.go} | 546 ++- macos/metal/compute_pass_descriptor.gen.go | 6 +- ...sample_buffer_attachment_descriptor.gen.go | 46 +- ..._buffer_attachment_descriptor_array.gen.go | 6 +- .../metal/compute_pipeline_descriptor.gen.go | 212 +- .../metal/compute_pipeline_reflection.gen.go | 6 +- ...=> compute_pipeline_state_protocol.gen.go} | 174 +- ...counter.gen.go => counter_protocol.gen.go} | 13 +- .../counter_sample_buffer_descriptor.gen.go | 66 +- ... => counter_sample_buffer_protocol.gen.go} | 53 +- ...set.gen.go => counter_set_protocol.gen.go} | 21 +- macos/metal/depth_stencil_descriptor.gen.go | 74 +- ...go => depth_stencil_state_protocol.gen.go} | 41 +- .../{device.gen.go => device_protocol.gen.go} | 1587 +++--- macos/metal/doc.gen.go | 6 +- ...awable.gen.go => drawable_protocol.gen.go} | 57 +- ...gen.go => dynamic_library_protocol.gen.go} | 33 +- macos/metal/enumtypes.gen.go | 13 +- .../{event.gen.go => event_protocol.gen.go} | 47 +- .../{fence.gen.go => fence_protocol.gen.go} | 25 +- macos/metal/function_constant.gen.go | 42 +- macos/metal/function_constant_values.gen.go | 14 +- macos/metal/function_descriptor.gen.go | 80 +- ...gen.go => function_handle_protocol.gen.go} | 49 +- ...nction_log_debug_location_protocol.gen.go} | 65 +- ...og.gen.go => function_log_protocol.gen.go} | 53 +- ...nction.gen.go => function_protocol.gen.go} | 196 +- ...n_stitching_attribute_always_inline.gen.go | 6 +- ...ction_stitching_attribute_protocol.gen.go} | 9 +- .../function_stitching_function_node.gen.go | 46 +- macos/metal/function_stitching_graph.gen.go | 60 +- .../function_stitching_input_node.gen.go | 6 +- ...> function_stitching_node_protocol.gen.go} | 9 +- macos/metal/heap_descriptor.gen.go | 74 +- .../{heap.gen.go => heap_protocol.gen.go} | 241 +- .../indirect_command_buffer_descriptor.gen.go | 80 +- ...> indirect_command_buffer_protocol.gen.go} | 59 +- ... indirect_compute_command_protocol.gen.go} | 161 +- ...> indirect_render_command_protocol.gen.go} | 101 +- ...e_acceleration_structure_descriptor.gen.go | 180 +- .../intersection_function_descriptor.gen.go | 6 +- ...ersection_function_table_descriptor.gen.go | 6 +- ...tersection_function_table_protocol.gen.go} | 146 +- macos/metal/library.gen.go | 162 - macos/metal/library_protocol.gen.go | 225 + macos/metal/linked_functions.gen.go | 70 +- ...r.gen.go => log_container_protocol.gen.go} | 9 +- macos/metal/metal_structs.go | 5 + macos/metal/motion_keyframe_data.gen.go | 46 +- ...el_render_command_encoder_protocol.gen.go} | 113 +- macos/metal/pipeline_buffer_descriptor.gen.go | 6 +- .../pipeline_buffer_descriptor_array.gen.go | 22 +- macos/metal/pointer_type.gen.go | 44 +- ...e_acceleration_structure_descriptor.gen.go | 74 +- macos/metal/protocols.gen.m | 2 +- .../rasterization_rate_layer_array.gen.go | 6 +- ...rasterization_rate_layer_descriptor.gen.go | 48 +- .../rasterization_rate_map_descriptor.gen.go | 62 +- ...=> rasterization_rate_map_protocol.gen.go} | 115 +- .../rasterization_rate_sample_array.gen.go | 22 +- ...=> render_command_encoder_protocol.gen.go} | 1554 +++--- .../render_pass_attachment_descriptor.gen.go | 186 +- ...er_pass_color_attachment_descriptor.gen.go | 6 +- ...s_color_attachment_descriptor_array.gen.go | 6 +- ...er_pass_depth_attachment_descriptor.gen.go | 40 +- macos/metal/render_pass_descriptor.gen.go | 246 +- ...sample_buffer_attachment_descriptor.gen.go | 92 +- ..._buffer_attachment_descriptor_array.gen.go | 22 +- ..._pass_stencil_attachment_descriptor.gen.go | 40 +- ...ipeline_color_attachment_descriptor.gen.go | 154 +- ...e_color_attachment_descriptor_array.gen.go | 6 +- macos/metal/render_pipeline_descriptor.gen.go | 576 ++- ...ender_pipeline_functions_descriptor.gen.go | 24 +- macos/metal/render_pipeline_reflection.gen.go | 6 +- ... => render_pipeline_state_protocol.gen.go} | 166 +- ...source.gen.go => resource_protocol.gen.go} | 177 +- ...rce_state_command_encoder_protocol.gen.go} | 61 +- .../resource_state_pass_descriptor.gen.go | 6 +- ...sample_buffer_attachment_descriptor.gen.go | 64 +- ..._buffer_attachment_descriptor_array.gen.go | 22 +- macos/metal/sampler_descriptor.gen.go | 234 +- ...e.gen.go => sampler_state_protocol.gen.go} | 21 +- macos/metal/shared_event_handle.gen.go | 6 +- macos/metal/shared_event_listener.gen.go | 6 +- ...nt.gen.go => shared_event_protocol.gen.go} | 28 +- macos/metal/shared_texture_handle.gen.go | 12 +- .../stage_input_output_descriptor.gen.go | 48 +- macos/metal/stencil_descriptor.gen.go | 40 +- .../metal/stitched_library_descriptor.gen.go | 40 +- macos/metal/struct_member.gen.go | 42 +- macos/metal/struct_type.gen.go | 6 +- macos/metal/texture_descriptor.gen.go | 285 +- ...texture.gen.go => texture_protocol.gen.go} | 510 +- macos/metal/texture_reference_type.gen.go | 34 +- ...ipeline_color_attachment_descriptor.gen.go | 6 +- ...e_color_attachment_descriptor_array.gen.go | 22 +- .../tile_render_pipeline_descriptor.gen.go | 200 +- macos/metal/type.gen.go | 6 +- macos/metal/vertex_attribute.gen.go | 54 +- .../metal/vertex_attribute_descriptor.gen.go | 40 +- .../vertex_attribute_descriptor_array.gen.go | 6 +- .../vertex_buffer_layout_descriptor.gen.go | 40 +- ...rtex_buffer_layout_descriptor_array.gen.go | 6 +- macos/metal/vertex_descriptor.gen.go | 24 +- .../visible_function_table_descriptor.gen.go | 6 +- ...=> visible_function_table_protocol.gen.go} | 45 +- macos/mps/acceleration_structure.gen.go | 35 +- macos/mps/acceleration_structure_group.gen.go | 6 +- macos/mps/aliastypes.gen.go | 2 +- macos/mps/binary_image_kernel.gen.go | 149 +- macos/mps/cnn_add.gen.go | 7 +- macos/mps/cnn_add_gradient.gen.go | 7 +- macos/mps/cnn_arithmetic.gen.go | 83 +- macos/mps/cnn_arithmetic_gradient.gen.go | 103 +- .../mps/cnn_arithmetic_gradient_state.gen.go | 109 +- macos/mps/cnn_batch_normalization.gen.go | 83 +- ...normalization_data_source_protocol.gen.go} | 202 +- .../cnn_batch_normalization_gradient.gen.go | 41 +- ...n_batch_normalization_gradient_node.gen.go | 6 +- macos/mps/cnn_batch_normalization_node.gen.go | 30 +- .../mps/cnn_batch_normalization_state.gen.go | 159 +- .../cnn_batch_normalization_statistics.gen.go | 7 +- ...h_normalization_statistics_gradient.gen.go | 7 +- macos/mps/cnn_binary_convolution.gen.go | 23 +- macos/mps/cnn_binary_convolution_node.gen.go | 44 +- macos/mps/cnn_binary_fully_connected.gen.go | 23 +- .../cnn_binary_fully_connected_node.gen.go | 49 +- macos/mps/cnn_binary_kernel.gen.go | 497 +- macos/mps/cnn_convolution.gen.go | 88 +- ...n_convolution_data_source_protocol.gen.go} | 216 +- macos/mps/cnn_convolution_descriptor.gen.go | 148 +- macos/mps/cnn_convolution_gradient.gen.go | 41 +- .../mps/cnn_convolution_gradient_node.gen.go | 30 +- .../mps/cnn_convolution_gradient_state.gen.go | 129 +- ...cnn_convolution_gradient_state_node.gen.go | 6 +- macos/mps/cnn_convolution_node.gen.go | 24 +- macos/mps/cnn_convolution_transpose.gen.go | 199 +- .../cnn_convolution_transpose_gradient.gen.go | 33 +- ...convolution_transpose_gradient_node.gen.go | 54 +- ...onvolution_transpose_gradient_state.gen.go | 109 +- ...ution_transpose_gradient_state_node.gen.go | 6 +- .../mps/cnn_convolution_transpose_node.gen.go | 30 +- ...onvolution_weights_and_biases_state.gen.go | 171 +- .../cnn_cross_channel_normalization.gen.go | 59 +- ...ross_channel_normalization_gradient.gen.go | 39 +- ...channel_normalization_gradient_node.gen.go | 6 +- ...nn_cross_channel_normalization_node.gen.go | 20 +- ...n_depth_wise_convolution_descriptor.gen.go | 18 +- macos/mps/cnn_dilated_pooling_max.gen.go | 22 +- .../cnn_dilated_pooling_max_gradient.gen.go | 22 +- ...n_dilated_pooling_max_gradient_node.gen.go | 30 +- macos/mps/cnn_dilated_pooling_max_node.gen.go | 56 +- macos/mps/cnn_divide.gen.go | 7 +- macos/mps/cnn_dropout.gen.go | 7 +- macos/mps/cnn_dropout_gradient.gen.go | 21 +- macos/mps/cnn_dropout_gradient_node.gen.go | 20 +- macos/mps/cnn_dropout_gradient_state.gen.go | 109 +- macos/mps/cnn_dropout_node.gen.go | 68 +- macos/mps/cnn_fully_connected.gen.go | 22 +- macos/mps/cnn_fully_connected_gradient.gen.go | 7 +- .../cnn_fully_connected_gradient_node.gen.go | 30 +- macos/mps/cnn_fully_connected_node.gen.go | 30 +- macos/mps/cnn_gradient_kernel.gen.go | 69 +- macos/mps/cnn_group_normalization.gen.go | 25 +- ...normalization_data_source_protocol.gen.go} | 142 +- .../cnn_group_normalization_gradient.gen.go | 7 +- ...n_group_normalization_gradient_node.gen.go | 6 +- ..._group_normalization_gradient_state.gen.go | 141 +- macos/mps/cnn_group_normalization_node.gen.go | 30 +- macos/mps/cnn_instance_normalization.gen.go | 33 +- ...normalization_data_source_protocol.gen.go} | 154 +- ...cnn_instance_normalization_gradient.gen.go | 7 +- ...nstance_normalization_gradient_node.gen.go | 6 +- ...stance_normalization_gradient_state.gen.go | 143 +- .../cnn_instance_normalization_node.gen.go | 6 +- macos/mps/cnn_kernel.gen.go | 397 +- .../cnn_local_contrast_normalization.gen.go | 119 +- ...cal_contrast_normalization_gradient.gen.go | 79 +- ...ontrast_normalization_gradient_node.gen.go | 108 +- ...n_local_contrast_normalization_node.gen.go | 70 +- macos/mps/cnn_log_soft_max.gen.go | 7 +- macos/mps/cnn_log_soft_max_gradient.gen.go | 7 +- .../mps/cnn_log_soft_max_gradient_node.gen.go | 30 +- macos/mps/cnn_log_soft_max_node.gen.go | 6 +- macos/mps/cnn_loss.gen.go | 91 +- macos/mps/cnn_loss_data_descriptor.gen.go | 44 +- macos/mps/cnn_loss_descriptor.gen.go | 70 +- macos/mps/cnn_loss_labels.gen.go | 153 +- macos/mps/cnn_loss_node.gen.go | 6 +- macos/mps/cnn_multiary_kernel.gen.go | 395 +- macos/mps/cnn_multiply.gen.go | 7 +- macos/mps/cnn_multiply_gradient.gen.go | 7 +- macos/mps/cnn_neuron.gen.go | 29 +- macos/mps/cnn_neuron_absolute.gen.go | 7 +- macos/mps/cnn_neuron_absolute_node.gen.go | 6 +- macos/mps/cnn_neuron_elu.gen.go | 7 +- macos/mps/cnn_neuron_elu_node.gen.go | 32 +- macos/mps/cnn_neuron_exponential.gen.go | 7 +- macos/mps/cnn_neuron_exponential_node.gen.go | 32 +- macos/mps/cnn_neuron_ge_lu_node.gen.go | 30 +- macos/mps/cnn_neuron_gradient.gen.go | 37 +- macos/mps/cnn_neuron_gradient_node.gen.go | 30 +- macos/mps/cnn_neuron_hard_sigmoid.gen.go | 7 +- macos/mps/cnn_neuron_hard_sigmoid_node.gen.go | 42 +- macos/mps/cnn_neuron_linear.gen.go | 7 +- macos/mps/cnn_neuron_linear_node.gen.go | 42 +- macos/mps/cnn_neuron_logarithm.gen.go | 7 +- macos/mps/cnn_neuron_logarithm_node.gen.go | 42 +- macos/mps/cnn_neuron_node.gen.go | 24 +- macos/mps/cnn_neuron_p_re_lu.gen.go | 7 +- macos/mps/cnn_neuron_p_re_lu_node.gen.go | 6 +- macos/mps/cnn_neuron_power.gen.go | 7 +- macos/mps/cnn_neuron_power_node.gen.go | 32 +- macos/mps/cnn_neuron_re_lu.gen.go | 7 +- macos/mps/cnn_neuron_re_lu_node.gen.go | 32 +- macos/mps/cnn_neuron_re_lun.gen.go | 7 +- macos/mps/cnn_neuron_re_lun_node.gen.go | 32 +- macos/mps/cnn_neuron_sigmoid.gen.go | 7 +- macos/mps/cnn_neuron_sigmoid_node.gen.go | 6 +- macos/mps/cnn_neuron_soft_plus.gen.go | 7 +- macos/mps/cnn_neuron_soft_plus_node.gen.go | 42 +- macos/mps/cnn_neuron_soft_sign.gen.go | 7 +- macos/mps/cnn_neuron_soft_sign_node.gen.go | 6 +- macos/mps/cnn_neuron_tan_h.gen.go | 7 +- macos/mps/cnn_neuron_tan_h_node.gen.go | 46 +- ..._normalization_gamma_and_beta_state.gen.go | 147 +- ...rmalization_mean_and_variance_state.gen.go | 149 +- macos/mps/cnn_normalization_node.gen.go | 58 +- macos/mps/cnn_pooling.gen.go | 22 +- macos/mps/cnn_pooling_average.gen.go | 50 +- macos/mps/cnn_pooling_average_gradient.gen.go | 7 +- .../cnn_pooling_average_gradient_node.gen.go | 6 +- macos/mps/cnn_pooling_average_node.gen.go | 56 +- macos/mps/cnn_pooling_gradient.gen.go | 22 +- macos/mps/cnn_pooling_gradient_node.gen.go | 24 +- macos/mps/cnn_pooling_l2_norm.gen.go | 22 +- macos/mps/cnn_pooling_l2_norm_gradient.gen.go | 7 +- .../cnn_pooling_l2_norm_gradient_node.gen.go | 6 +- macos/mps/cnn_pooling_l2_norm_node.gen.go | 56 +- macos/mps/cnn_pooling_max.gen.go | 22 +- macos/mps/cnn_pooling_max_gradient.gen.go | 7 +- .../mps/cnn_pooling_max_gradient_node.gen.go | 6 +- macos/mps/cnn_pooling_max_node.gen.go | 56 +- macos/mps/cnn_pooling_node.gen.go | 74 +- macos/mps/cnn_soft_max.gen.go | 7 +- macos/mps/cnn_soft_max_gradient.gen.go | 7 +- macos/mps/cnn_soft_max_gradient_node.gen.go | 30 +- macos/mps/cnn_soft_max_node.gen.go | 30 +- macos/mps/cnn_spatial_normalization.gen.go | 41 +- .../cnn_spatial_normalization_gradient.gen.go | 41 +- ...spatial_normalization_gradient_node.gen.go | 78 +- .../mps/cnn_spatial_normalization_node.gen.go | 40 +- ...nn_sub_pixel_convolution_descriptor.gen.go | 18 +- macos/mps/cnn_subtract.gen.go | 7 +- macos/mps/cnn_subtract_gradient.gen.go | 7 +- macos/mps/cnn_upsampling.gen.go | 7 +- macos/mps/cnn_upsampling_bilinear.gen.go | 22 +- .../cnn_upsampling_bilinear_gradient.gen.go | 7 +- ...n_upsampling_bilinear_gradient_node.gen.go | 20 +- macos/mps/cnn_upsampling_bilinear_node.gen.go | 46 +- macos/mps/cnn_upsampling_gradient.gen.go | 21 +- macos/mps/cnn_upsampling_nearest.gen.go | 7 +- .../cnn_upsampling_nearest_gradient.gen.go | 7 +- ...nn_upsampling_nearest_gradient_node.gen.go | 20 +- macos/mps/cnn_upsampling_nearest_node.gen.go | 20 +- macos/mps/cnnyolo_loss.gen.go | 143 +- macos/mps/cnnyolo_loss_descriptor.gen.go | 198 +- macos/mps/cnnyolo_loss_node.gen.go | 6 +- macos/mps/command_buffer.gen.go | 44 +- ...gen.go => device_provider_protocol.gen.go} | 17 +- macos/mps/doc.gen.go | 6 +- macos/mps/enumtypes.gen.go | 2 +- macos/mps/gru_descriptor.gen.go | 180 +- .../{handle.gen.go => handle_protocol.gen.go} | 13 +- ...r.gen.go => heap_provider_protocol.gen.go} | 42 +- macos/mps/image.gen.go | 266 +- macos/mps/image_add.gen.go | 7 +- ...gen.go => image_allocator_protocol.gen.go} | 37 +- macos/mps/image_area_max.gen.go | 25 +- macos/mps/image_area_min.gen.go | 7 +- macos/mps/image_arithmetic.gen.go | 91 +- macos/mps/image_bilinear_scale.gen.go | 7 +- macos/mps/image_box.gen.go | 25 +- macos/mps/image_canny.gen.go | 58 +- macos/mps/image_conversion.gen.go | 25 +- macos/mps/image_convolution.gen.go | 25 +- macos/mps/image_copy_to_matrix.gen.go | 79 +- macos/mps/image_descriptor.gen.go | 165 +- macos/mps/image_dilate.gen.go | 25 +- macos/mps/image_divide.gen.go | 7 +- macos/mps/image_ed_lines.gen.go | 149 +- macos/mps/image_erode.gen.go | 7 +- .../image_euclidean_distance_transform.gen.go | 7 +- macos/mps/image_find_keypoints.gen.go | 35 +- macos/mps/image_gaussian_blur.gen.go | 7 +- macos/mps/image_gaussian_pyramid.gen.go | 37 +- macos/mps/image_guided_filter.gen.go | 144 +- macos/mps/image_histogram.gen.go | 85 +- macos/mps/image_histogram_equalization.gen.go | 7 +- .../mps/image_histogram_specification.gen.go | 7 +- macos/mps/image_integral.gen.go | 7 +- macos/mps/image_integral_of_squares.gen.go | 7 +- macos/mps/image_lanczos_scale.gen.go | 7 +- macos/mps/image_laplacian.gen.go | 7 +- macos/mps/image_laplacian_pyramid.gen.go | 37 +- macos/mps/image_laplacian_pyramid_add.gen.go | 37 +- .../image_laplacian_pyramid_subtract.gen.go | 37 +- macos/mps/image_median.gen.go | 37 +- macos/mps/image_multiply.gen.go | 7 +- macos/mps/image_normalized_histogram.gen.go | 81 +- macos/mps/image_pyramid.gen.go | 55 +- macos/mps/image_reduce_column_max.gen.go | 7 +- macos/mps/image_reduce_column_mean.gen.go | 7 +- macos/mps/image_reduce_column_min.gen.go | 7 +- macos/mps/image_reduce_column_sum.gen.go | 7 +- macos/mps/image_reduce_row_max.gen.go | 7 +- macos/mps/image_reduce_row_mean.gen.go | 7 +- macos/mps/image_reduce_row_min.gen.go | 7 +- macos/mps/image_reduce_row_sum.gen.go | 7 +- macos/mps/image_reduce_unary.gen.go | 7 +- macos/mps/image_scale.gen.go | 7 +- ...image_size_encoding_state_protocol.gen.go} | 17 +- macos/mps/image_sobel.gen.go | 22 +- macos/mps/image_statistics_mean.gen.go | 7 +- .../image_statistics_mean_and_variance.gen.go | 7 +- macos/mps/image_statistics_min_and_max.gen.go | 7 +- macos/mps/image_subtract.gen.go | 7 +- macos/mps/image_tent.gen.go | 7 +- macos/mps/image_threshold_binary.gen.go | 7 +- .../mps/image_threshold_binary_inverse.gen.go | 7 +- macos/mps/image_threshold_to_zero.gen.go | 7 +- .../image_threshold_to_zero_inverse.gen.go | 7 +- macos/mps/image_threshold_truncate.gen.go | 25 +- ... image_transform_provider_protocol.gen.go} | 15 +- macos/mps/image_transpose.gen.go | 7 +- .../instance_acceleration_structure.gen.go | 35 +- macos/mps/kernel.gen.go | 53 +- macos/mps/keyed_unarchiver.gen.go | 68 +- macos/mps/lstm_descriptor.gen.go | 368 +- macos/mps/matrix.gen.go | 109 +- macos/mps/matrix_batch_normalization.gen.go | 127 +- ...matrix_batch_normalization_gradient.gen.go | 77 +- macos/mps/matrix_binary_kernel.gen.go | 91 +- macos/mps/matrix_copy.gen.go | 74 +- macos/mps/matrix_copy_descriptor.gen.go | 28 +- macos/mps/matrix_copy_to_image.gen.go | 53 +- .../mps/matrix_decomposition_cholesky.gen.go | 35 +- macos/mps/matrix_decomposition_lu.gen.go | 35 +- macos/mps/matrix_descriptor.gen.go | 128 +- macos/mps/matrix_find_top_k.gen.go | 63 +- macos/mps/matrix_fully_connected.gen.go | 111 +- .../matrix_fully_connected_gradient.gen.go | 63 +- macos/mps/matrix_log_soft_max.gen.go | 7 +- macos/mps/matrix_log_soft_max_gradient.gen.go | 31 +- macos/mps/matrix_multiplication.gen.go | 104 +- macos/mps/matrix_neuron.gen.go | 91 +- macos/mps/matrix_neuron_gradient.gen.go | 109 +- macos/mps/matrix_random.gen.go | 72 +- ...trix_random_distribution_descriptor.gen.go | 101 +- macos/mps/matrix_random_mtg_p32.gen.go | 37 +- macos/mps/matrix_random_philox.gen.go | 37 +- macos/mps/matrix_soft_max.gen.go | 7 +- macos/mps/matrix_soft_max_gradient.gen.go | 59 +- macos/mps/matrix_solve_cholesky.gen.go | 35 +- macos/mps/matrix_solve_lu.gen.go | 35 +- macos/mps/matrix_solve_triangular.gen.go | 35 +- macos/mps/matrix_sum.gen.go | 107 +- macos/mps/matrix_unary_kernel.gen.go | 69 +- macos/mps/matrix_vector_multiplication.gen.go | 50 +- macos/mps/mps_custom.go | 7 + macos/mps/mps_structs.go | 3 + macos/mps/nd_array.gen.go | 195 +- ....go => nd_array_allocator_protocol.gen.go} | 15 +- macos/mps/nd_array_binary_kernel.gen.go | 62 +- ...rray_binary_primary_gradient_kernel.gen.go | 24 +- ...ay_binary_secondary_gradient_kernel.gen.go | 24 +- macos/mps/nd_array_descriptor.gen.go | 106 +- macos/mps/nd_array_gather.gen.go | 7 +- macos/mps/nd_array_gather_gradient.gen.go | 7 +- .../mps/nd_array_gather_gradient_state.gen.go | 109 +- macos/mps/nd_array_gradient_state.gen.go | 109 +- .../mps/nd_array_matrix_multiplication.gen.go | 35 +- macos/mps/nd_array_multiary_base.gen.go | 13 +- .../nd_array_multiary_gradient_kernel.gen.go | 24 +- macos/mps/nd_array_multiary_kernel.gen.go | 60 +- macos/mps/nd_array_strided_slice.gen.go | 7 +- .../nd_array_strided_slice_gradient.gen.go | 7 +- .../mps/nd_array_unary_gradient_kernel.gen.go | 24 +- macos/mps/nd_array_unary_kernel.gen.go | 62 +- macos/mps/nn_addition_gradient_node.gen.go | 6 +- macos/mps/nn_addition_node.gen.go | 34 +- macos/mps/nn_arithmetic_gradient_node.gen.go | 96 +- .../nn_arithmetic_gradient_state_node.gen.go | 6 +- macos/mps/nn_bilinear_scale_node.gen.go | 48 +- macos/mps/nn_binary_arithmetic_node.gen.go | 158 +- macos/mps/nn_binary_gradient_state.gen.go | 109 +- .../mps/nn_binary_gradient_state_node.gen.go | 6 +- macos/mps/nn_compare.gen.go | 35 +- macos/mps/nn_comparison_node.gen.go | 34 +- .../mps/nn_concatenation_gradient_node.gen.go | 6 +- macos/mps/nn_concatenation_node.gen.go | 30 +- macos/mps/nn_crop_and_resize_bilinear.gen.go | 35 +- macos/mps/nn_default_padding.gen.go | 28 +- macos/mps/nn_division_node.gen.go | 34 +- macos/mps/nn_filter_node.gen.go | 76 +- macos/mps/nn_forward_loss.gen.go | 98 +- macos/mps/nn_forward_loss_node.gen.go | 116 +- macos/mps/nn_gradient_filter_node.gen.go | 6 +- macos/mps/nn_gradient_state.gen.go | 109 +- macos/mps/nn_gradient_state_node.gen.go | 6 +- macos/mps/nn_gram_matrix_calculation.gen.go | 22 +- ...nn_gram_matrix_calculation_gradient.gen.go | 22 +- ...am_matrix_calculation_gradient_node.gen.go | 42 +- .../nn_gram_matrix_calculation_node.gen.go | 56 +- ...> nn_gram_matrix_callback_protocol.gen.go} | 13 +- macos/mps/nn_graph.gen.go | 257 +- macos/mps/nn_grid_sample.gen.go | 7 +- macos/mps/nn_image_node.gen.go | 132 +- macos/mps/nn_initial_gradient.gen.go | 7 +- macos/mps/nn_initial_gradient_node.gen.go | 30 +- macos/mps/nn_labels_node.gen.go | 6 +- macos/mps/nn_lanczos_scale_node.gen.go | 48 +- macos/mps/nn_local_correlation.gen.go | 78 +- ...en.go => nn_loss_callback_protocol.gen.go} | 13 +- macos/mps/nn_loss_gradient.gen.go | 116 +- macos/mps/nn_loss_gradient_node.gen.go | 138 +- macos/mps/nn_multiary_gradient_state.gen.go | 109 +- .../nn_multiary_gradient_state_node.gen.go | 6 +- .../nn_multiplication_gradient_node.gen.go | 6 +- macos/mps/nn_multiplication_node.gen.go | 34 +- macos/mps/nn_neuron_descriptor.gen.go | 107 +- macos/mps/nn_optimizer.gen.go | 93 +- macos/mps/nn_optimizer_adam.gen.go | 205 +- macos/mps/nn_optimizer_descriptor.gen.go | 98 +- macos/mps/nn_optimizer_rms_prop.gen.go | 110 +- ...timizer_stochastic_gradient_descent.gen.go | 135 +- macos/mps/nn_pad.gen.go | 71 +- macos/mps/nn_pad_gradient.gen.go | 7 +- macos/mps/nn_pad_gradient_node.gen.go | 30 +- macos/mps/nn_pad_node.gen.go | 6 +- ...ding.gen.go => nn_padding_protocol.gen.go} | 61 +- macos/mps/nn_reduce_binary.gen.go | 7 +- macos/mps/nn_reduce_column_max.gen.go | 7 +- macos/mps/nn_reduce_column_mean.gen.go | 7 +- macos/mps/nn_reduce_column_min.gen.go | 7 +- macos/mps/nn_reduce_column_sum.gen.go | 7 +- ...e_feature_channels_and_weights_mean.gen.go | 7 +- ...ce_feature_channels_and_weights_sum.gen.go | 22 +- ...educe_feature_channels_argument_max.gen.go | 7 +- ...educe_feature_channels_argument_min.gen.go | 7 +- .../mps/nn_reduce_feature_channels_max.gen.go | 7 +- .../nn_reduce_feature_channels_mean.gen.go | 7 +- .../mps/nn_reduce_feature_channels_min.gen.go | 7 +- .../mps/nn_reduce_feature_channels_sum.gen.go | 7 +- macos/mps/nn_reduce_row_max.gen.go | 7 +- macos/mps/nn_reduce_row_mean.gen.go | 7 +- macos/mps/nn_reduce_row_min.gen.go | 7 +- macos/mps/nn_reduce_row_sum.gen.go | 7 +- macos/mps/nn_reduce_unary.gen.go | 7 +- macos/mps/nn_reduction_column_max_node.gen.go | 6 +- .../mps/nn_reduction_column_mean_node.gen.go | 6 +- macos/mps/nn_reduction_column_min_node.gen.go | 6 +- macos/mps/nn_reduction_column_sum_node.gen.go | 6 +- ..._feature_channels_argument_max_node.gen.go | 6 +- ..._feature_channels_argument_min_node.gen.go | 6 +- ...reduction_feature_channels_max_node.gen.go | 6 +- ...eduction_feature_channels_mean_node.gen.go | 6 +- ...reduction_feature_channels_min_node.gen.go | 6 +- ...reduction_feature_channels_sum_node.gen.go | 6 +- macos/mps/nn_reduction_row_max_node.gen.go | 6 +- macos/mps/nn_reduction_row_mean_node.gen.go | 6 +- macos/mps/nn_reduction_row_min_node.gen.go | 6 +- macos/mps/nn_reduction_row_sum_node.gen.go | 6 +- ...eduction_spatial_mean_gradient_node.gen.go | 6 +- .../mps/nn_reduction_spatial_mean_node.gen.go | 6 +- macos/mps/nn_reshape.gen.go | 61 +- macos/mps/nn_reshape_gradient.gen.go | 7 +- macos/mps/nn_reshape_gradient_node.gen.go | 6 +- macos/mps/nn_reshape_node.gen.go | 6 +- macos/mps/nn_resize_bilinear.gen.go | 25 +- macos/mps/nn_scale_node.gen.go | 48 +- macos/mps/nn_slice.gen.go | 7 +- macos/mps/nn_state_node.gen.go | 12 +- macos/mps/nn_subtraction_gradient_node.gen.go | 6 +- macos/mps/nn_subtraction_node.gen.go | 34 +- ...n.go => nn_trainable_node_protocol.gen.go} | 17 +- macos/mps/nn_unary_reduction_node.gen.go | 6 +- .../mps/polygon_acceleration_structure.gen.go | 35 +- macos/mps/polygon_buffer.gen.go | 6 +- macos/mps/predicate.gen.go | 36 +- macos/mps/protocols.gen.m | 2 +- ...uadrilateral_acceleration_structure.gen.go | 35 +- macos/mps/ray_intersector.gen.go | 35 +- macos/mps/rnn_descriptor.gen.go | 74 +- macos/mps/rnn_image_inference_layer.gen.go | 90 +- macos/mps/rnn_matrix_inference_layer.gen.go | 109 +- macos/mps/rnn_matrix_training_layer.gen.go | 155 +- macos/mps/rnn_matrix_training_state.gen.go | 109 +- macos/mps/rnn_recurrent_image_state.gen.go | 109 +- macos/mps/rnn_recurrent_matrix_state.gen.go | 109 +- macos/mps/rnn_single_gate_descriptor.gen.go | 18 +- macos/mps/state.gen.go | 185 +- macos/mps/state_resource_list.gen.go | 40 +- macos/mps/svgf.gen.go | 350 +- .../mps/svgf_default_texture_allocator.gen.go | 44 +- macos/mps/svgf_denoiser.gen.go | 74 +- ...=> svgf_texture_allocator_protocol.gen.go} | 41 +- macos/mps/temporal_aa.gen.go | 31 +- macos/mps/temporary_image.gen.go | 60 +- macos/mps/temporary_matrix.gen.go | 43 +- macos/mps/temporary_nd_array.gen.go | 21 +- macos/mps/temporary_vector.gen.go | 21 +- .../triangle_acceleration_structure.gen.go | 35 +- macos/mps/unary_image_kernel.gen.go | 80 +- macos/mps/vector.gen.go | 85 +- macos/mps/vector_descriptor.gen.go | 46 +- macos/mpsgraph/aliastypes.gen.go | 2 +- macos/mpsgraph/compilation_descriptor.gen.go | 6 +- .../convolution2_d_op_descriptor.gen.go | 174 +- .../create_sparse_op_descriptor.gen.go | 6 +- ...thwise_convolution2_d_op_descriptor.gen.go | 178 +- ...thwise_convolution3_d_op_descriptor.gen.go | 74 +- macos/mpsgraph/device.gen.go | 12 +- macos/mpsgraph/doc.gen.go | 6 +- macos/mpsgraph/enumtypes.gen.go | 2 +- macos/mpsgraph/executable.gen.go | 20 +- .../executable_execution_descriptor.gen.go | 40 +- macos/mpsgraph/execution_descriptor.gen.go | 34 +- macos/mpsgraph/graph.gen.go | 2155 ++++++--- macos/mpsgraph/lstm_descriptor.gen.go | 142 +- macos/mpsgraph/operation.gen.go | 38 +- .../mpsgraph/pooling2_d_op_descriptor.gen.go | 226 +- .../mpsgraph/pooling4_d_op_descriptor.gen.go | 134 +- macos/mpsgraph/protocols.gen.m | 2 +- macos/mpsgraph/random_op_descriptor.gen.go | 122 +- macos/mpsgraph/shaped_type.gen.go | 34 +- .../single_gate_rnn_descriptor.gen.go | 38 +- macos/mpsgraph/stencil_op_descriptor.gen.go | 126 +- macos/mpsgraph/tensor.gen.go | 20 +- macos/mpsgraph/tensor_data.gen.go | 81 +- macos/mpsgraph/type.gen.go | 6 +- macos/mpsgraph/variable_op.gen.go | 20 +- macos/quartz/aliastypes.gen.go | 2 +- macos/quartz/camera_device_view.gen.go | 348 +- .../quartz/camera_device_view_delegate.gen.go | 54 +- macos/quartz/composition.gen.go | 6 +- macos/quartz/composition_layer.gen.go | 58 +- .../quartz/composition_parameter_view.gen.go | 6 +- macos/quartz/composition_picker_panel.gen.go | 20 +- macos/quartz/composition_picker_view.gen.go | 6 +- ...o => composition_renderer_protocol.gen.go} | 9 +- macos/quartz/composition_repository.gen.go | 6 +- macos/quartz/device_browser_view.gen.go | 100 +- .../device_browser_view_delegate.gen.go | 43 +- macos/quartz/doc.gen.go | 6 +- macos/quartz/enumtypes.gen.go | 14 +- macos/quartz/filter_browser_panel.gen.go | 44 +- macos/quartz/filter_browser_view.gen.go | 6 +- ...filter_custom_ui_provider_protocol.gen.go} | 15 +- macos/quartz/filter_ui_view.gen.go | 44 +- macos/quartz/image_browser_cell.gen.go | 108 +- macos/quartz/image_browser_view.gen.go | 6 +- macos/quartz/image_edit_panel.gen.go | 52 +- ...ge_edit_panel_data_source_protocol.gen.go} | 17 +- macos/quartz/image_view.gen.go | 436 +- macos/quartz/patch_controller.gen.go | 6 +- macos/quartz/picture_taker.gen.go | 88 +- macos/quartz/plug_in.gen.go | 6 +- macos/quartz/plug_in_context.gen.go | 18 - macos/quartz/plug_in_context_protocol.gen.go | 21 + ...lug_in_input_image_source_protocol.gen.go} | 9 +- ..._in_output_image_provider_protocol.gen.go} | 9 +- macos/quartz/plug_in_view_controller.gen.go | 6 +- macos/quartz/protocols.gen.m | 2 +- macos/quartz/quartz_filter.gen.go | 80 +- macos/quartz/quartz_filter_manager.gen.go | 60 +- macos/quartz/quartz_filter_view.gen.go | 6 +- macos/quartz/renderer.gen.go | 6 +- macos/quartz/save_options.gen.go | 42 +- macos/quartz/scanner_device_view.gen.go | 208 +- .../scanner_device_view_delegate.gen.go | 114 +- macos/quartz/slideshow.gen.go | 84 +- ... => slideshow_data_source_protocol.gen.go} | 101 +- macos/quartz/view.gen.go | 6 +- .../{action.gen.go => action_protocol.gen.go} | 13 +- macos/quartzcore/animation.gen.go | 112 +- macos/quartzcore/animation_delegate.gen.go | 17 +- macos/quartzcore/animation_group.gen.go | 6 +- macos/quartzcore/basic_animation.gen.go | 46 +- macos/quartzcore/constraint.gen.go | 58 +- .../constraint_layout_manager.gen.go | 6 +- macos/quartzcore/doc.gen.go | 6 +- macos/quartzcore/edr_metadata.gen.go | 36 +- macos/quartzcore/emitter_cell.gen.go | 636 ++- macos/quartzcore/emitter_layer.gen.go | 292 +- macos/quartzcore/enumtypes.gen.go | 6 +- macos/quartzcore/gradient_layer.gen.go | 112 +- macos/quartzcore/keyframe_animation.gen.go | 114 +- macos/quartzcore/layer.gen.go | 1565 +++--- macos/quartzcore/layer_delegate.gen.go | 105 +- ....gen.go => layout_manager_protocol.gen.go} | 47 +- macos/quartzcore/media_timing_function.gen.go | 30 +- ...ng.gen.go => media_timing_protocol.gen.go} | 217 +- ....gen.go => metal_drawable_protocol.gen.go} | 41 +- macos/quartzcore/metal_layer.gen.go | 244 +- macos/quartzcore/open_gl_layer.gen.go | 58 +- macos/quartzcore/property_animation.gen.go | 46 +- macos/quartzcore/protocols.gen.m | 2 +- macos/quartzcore/remote_layer_client.gen.go | 24 +- macos/quartzcore/remote_layer_server.gen.go | 6 +- macos/quartzcore/renderer.gen.go | 118 +- macos/quartzcore/replicator_layer.gen.go | 190 +- macos/quartzcore/scroll_layer.gen.go | 58 +- macos/quartzcore/shape_layer.gen.go | 212 +- macos/quartzcore/spring_animation.gen.go | 64 +- macos/quartzcore/text_layer.gen.go | 136 +- macos/quartzcore/tiled_layer.gen.go | 92 +- macos/quartzcore/transaction.gen.go | 232 +- macos/quartzcore/transform_layer.gen.go | 58 +- macos/quartzcore/transition.gen.go | 60 +- macos/quartzcore/value_function.gen.go | 6 +- macos/sysconfig/aliastypes.gen.go | 2 +- macos/sysconfig/doc.gen.go | 6 +- macos/sysconfig/enumtypes.gen.go | 2 +- macos/sysconfig/protocols.gen.m | 2 +- macos/uti/doc.gen.go | 6 +- macos/uti/protocols.gen.m | 2 +- macos/uti/type.gen.go | 238 +- macos/vision/aliastypes.gen.go | 2 +- macos/vision/barcode_observation.gen.go | 26 +- macos/vision/circle.gen.go | 47 +- .../vision/classification_observation.gen.go | 24 +- macos/vision/classify_image_request.gen.go | 6 +- macos/vision/contour.gen.go | 60 +- macos/vision/contours_observation.gen.go | 34 +- .../core_ml_feature_value_observation.gen.go | 6 +- macos/vision/core_ml_model.gen.go | 12 +- macos/vision/core_ml_request.gen.go | 38 +- macos/vision/detect_barcodes_request.gen.go | 6 +- macos/vision/detect_contours_request.gen.go | 60 +- ...etect_document_segmentation_request.gen.go | 6 +- ...detect_face_capture_quality_request.gen.go | 6 +- .../detect_face_landmarks_request.gen.go | 6 +- .../detect_face_rectangles_request.gen.go | 6 +- macos/vision/detect_horizon_request.gen.go | 6 +- .../detect_human_body_pose_request.gen.go | 6 +- .../detect_human_hand_pose_request.gen.go | 6 +- .../detect_human_rectangles_request.gen.go | 6 +- macos/vision/detect_rectangles_request.gen.go | 94 +- .../detect_text_rectangles_request.gen.go | 6 +- .../vision/detect_trajectories_request.gen.go | 56 +- .../vision/detected_object_observation.gen.go | 6 +- macos/vision/detected_point.gen.go | 30 +- macos/vision/doc.gen.go | 6 +- macos/vision/enumtypes.gen.go | 2 +- macos/vision/face_landmark_region.gen.go | 6 +- macos/vision/face_landmark_region2_d.gen.go | 24 +- macos/vision/face_landmarks.gen.go | 6 +- macos/vision/face_landmarks2_d.gen.go | 112 +- macos/vision/face_observation.gen.go | 42 +- ...ace_observation_accepting_protocol.gen.go} | 19 +- macos/vision/feature_print_observation.gen.go | 6 +- ...ention_based_saliency_image_request.gen.go | 6 +- ...enerate_image_feature_print_request.gen.go | 6 +- ...ctness_based_saliency_image_request.gen.go | 6 +- .../generate_optical_flow_request.gen.go | 307 +- ...enerate_person_segmentation_request.gen.go | 26 +- macos/vision/geometry_utils.gen.go | 36 +- ...ographic_image_registration_request.gen.go | 307 +- macos/vision/horizon_observation.gen.go | 6 +- .../vision/human_body_pose_observation.gen.go | 34 +- .../vision/human_hand_pose_observation.gen.go | 24 +- macos/vision/human_observation.gen.go | 6 +- .../vision/image_alignment_observation.gen.go | 6 +- macos/vision/image_based_request.gen.go | 6 +- ...e_homographic_alignment_observation.gen.go | 6 +- .../vision/image_registration_request.gen.go | 307 +- macos/vision/image_request_handler.gen.go | 115 +- ...e_translation_alignment_observation.gen.go | 6 +- macos/vision/observation.gen.go | 24 +- macos/vision/pixel_buffer_observation.gen.go | 24 +- macos/vision/point.gen.go | 64 +- macos/vision/protocols.gen.m | 2 +- macos/vision/recognize_animals_request.gen.go | 6 +- macos/vision/recognize_text_request.gen.go | 74 +- .../recognized_object_observation.gen.go | 6 +- macos/vision/recognized_point.gen.go | 30 +- .../recognized_points_observation.gen.go | 24 +- macos/vision/recognized_text.gen.go | 6 +- .../vision/recognized_text_observation.gen.go | 6 +- macos/vision/rectangle_observation.gen.go | 24 +- macos/vision/request.gen.go | 68 +- ...equest_progress_providing_protocol.gen.go} | 21 +- ...equest_revision_providing_protocol.gen.go} | 13 +- .../vision/saliency_image_observation.gen.go | 6 +- macos/vision/sequence_request_handler.gen.go | 109 +- macos/vision/stateful_request.gen.go | 24 +- macos/vision/targeted_image_request.gen.go | 307 +- macos/vision/text_observation.gen.go | 6 +- macos/vision/track_object_request.gen.go | 20 +- macos/vision/track_rectangle_request.gen.go | 20 +- macos/vision/tracking_request.gen.go | 40 +- macos/vision/trajectory_observation.gen.go | 34 +- ...lational_image_registration_request.gen.go | 307 +- macos/vision/vector.gen.go | 120 +- macos/vision/video_processor.gen.go | 24 +- macos/vision/video_processor_cadence.gen.go | 6 +- .../video_processor_frame_rate_cadence.gen.go | 6 +- ...rocessor_request_processing_options.gen.go | 6 +- ...deo_processor_time_interval_cadence.gen.go | 6 +- macos/webkit/aliastypes.gen.go | 2 +- macos/webkit/back_forward_list.gen.go | 44 +- macos/webkit/back_forward_list_item.gen.go | 26 +- macos/webkit/content_rule_list.gen.go | 6 +- macos/webkit/content_rule_list_store.gen.go | 38 +- macos/webkit/content_world.gen.go | 22 +- macos/webkit/doc.gen.go | 6 +- macos/webkit/dom_abstract_view.gen.go | 6 +- macos/webkit/dom_attr.gen.go | 6 +- macos/webkit/dom_blob.gen.go | 6 +- macos/webkit/dom_character_data.gen.go | 6 +- macos/webkit/dom_comment.gen.go | 6 +- macos/webkit/dom_counter.gen.go | 6 +- macos/webkit/dom_document.gen.go | 6 +- macos/webkit/dom_document_fragment.gen.go | 6 +- macos/webkit/dom_document_type.gen.go | 6 +- macos/webkit/dom_element.gen.go | 6 +- macos/webkit/dom_entity.gen.go | 6 +- macos/webkit/dom_entity_reference.gen.go | 6 +- macos/webkit/dom_event.gen.go | 6 +- macos/webkit/dom_event_listener.gen.go | 18 - .../webkit/dom_event_listener_protocol.gen.go | 21 + macos/webkit/dom_event_target.gen.go | 18 - macos/webkit/dom_event_target_protocol.gen.go | 21 + macos/webkit/dom_file.gen.go | 6 +- macos/webkit/dom_file_list.gen.go | 6 +- macos/webkit/dom_implementation.gen.go | 6 +- macos/webkit/dom_keyboard_event.gen.go | 6 +- macos/webkit/dom_media_list.gen.go | 6 +- macos/webkit/dom_mouse_event.gen.go | 6 +- macos/webkit/dom_mutation_event.gen.go | 6 +- macos/webkit/dom_named_node_map.gen.go | 6 +- macos/webkit/dom_node.gen.go | 24 +- macos/webkit/dom_node_filter.gen.go | 18 - macos/webkit/dom_node_filter_protocol.gen.go | 21 + macos/webkit/dom_node_iterator.gen.go | 6 +- macos/webkit/dom_node_list.gen.go | 6 +- macos/webkit/dom_object.gen.go | 6 +- macos/webkit/dom_overflow_event.gen.go | 6 +- .../webkit/dom_processing_instruction.gen.go | 6 +- macos/webkit/dom_progress_event.gen.go | 6 +- macos/webkit/dom_range.gen.go | 6 +- macos/webkit/dom_rect.gen.go | 6 +- macos/webkit/dom_style_sheet.gen.go | 6 +- macos/webkit/dom_style_sheet_list.gen.go | 6 +- macos/webkit/dom_text.gen.go | 6 +- macos/webkit/dom_tree_walker.gen.go | 6 +- macos/webkit/dom_wheel_event.gen.go | 6 +- macos/webkit/domcdata_section.gen.go | 6 +- macos/webkit/domcss_charset_rule.gen.go | 6 +- macos/webkit/domcss_font_face_rule.gen.go | 6 +- macos/webkit/domcss_import_rule.gen.go | 6 +- macos/webkit/domcss_media_rule.gen.go | 6 +- macos/webkit/domcss_page_rule.gen.go | 6 +- macos/webkit/domcss_primitive_value.gen.go | 6 +- macos/webkit/domcss_rule.gen.go | 6 +- macos/webkit/domcss_rule_list.gen.go | 6 +- macos/webkit/domcss_style_declaration.gen.go | 2026 ++++---- macos/webkit/domcss_style_rule.gen.go | 6 +- macos/webkit/domcss_style_sheet.gen.go | 6 +- macos/webkit/domcss_unknown_rule.gen.go | 6 +- macos/webkit/domcss_value.gen.go | 6 +- macos/webkit/domcss_value_list.gen.go | 6 +- macos/webkit/domhtml_anchor_element.gen.go | 6 +- macos/webkit/domhtml_applet_element.gen.go | 6 +- macos/webkit/domhtml_area_element.gen.go | 6 +- macos/webkit/domhtml_base_element.gen.go | 6 +- macos/webkit/domhtml_base_font_element.gen.go | 6 +- macos/webkit/domhtml_body_element.gen.go | 6 +- macos/webkit/domhtml_button_element.gen.go | 6 +- macos/webkit/domhtml_collection.gen.go | 6 +- macos/webkit/domhtml_directory_element.gen.go | 6 +- macos/webkit/domhtml_div_element.gen.go | 6 +- macos/webkit/domhtml_document.gen.go | 6 +- macos/webkit/domhtml_element.gen.go | 6 +- macos/webkit/domhtml_embed_element.gen.go | 6 +- macos/webkit/domhtml_field_set_element.gen.go | 6 +- macos/webkit/domhtml_font_element.gen.go | 6 +- macos/webkit/domhtml_form_element.gen.go | 6 +- macos/webkit/domhtml_frame_element.gen.go | 6 +- macos/webkit/domhtml_frame_set_element.gen.go | 6 +- macos/webkit/domhtml_head_element.gen.go | 6 +- macos/webkit/domhtml_heading_element.gen.go | 6 +- macos/webkit/domhtml_html_element.gen.go | 6 +- macos/webkit/domhtml_image_element.gen.go | 6 +- macos/webkit/domhtml_input_element.gen.go | 6 +- macos/webkit/domhtml_label_element.gen.go | 6 +- macos/webkit/domhtml_legend_element.gen.go | 6 +- macos/webkit/domhtml_link_element.gen.go | 6 +- macos/webkit/domhtml_map_element.gen.go | 6 +- macos/webkit/domhtml_marquee_element.gen.go | 6 +- macos/webkit/domhtml_menu_element.gen.go | 6 +- macos/webkit/domhtml_meta_element.gen.go | 6 +- macos/webkit/domhtml_mod_element.gen.go | 6 +- macos/webkit/domhtml_object_element.gen.go | 6 +- macos/webkit/domhtml_opt_group_element.gen.go | 6 +- macos/webkit/domhtml_option_element.gen.go | 6 +- .../webkit/domhtml_options_collection.gen.go | 6 +- macos/webkit/domhtml_paragraph_element.gen.go | 6 +- macos/webkit/domhtml_param_element.gen.go | 6 +- macos/webkit/domhtml_pre_element.gen.go | 6 +- macos/webkit/domhtml_quote_element.gen.go | 6 +- macos/webkit/domhtml_script_element.gen.go | 6 +- macos/webkit/domhtml_select_element.gen.go | 6 +- macos/webkit/domhtml_style_element.gen.go | 6 +- .../domhtml_table_caption_element.gen.go | 6 +- .../webkit/domhtml_table_cell_element.gen.go | 6 +- macos/webkit/domhtml_table_col_element.gen.go | 6 +- macos/webkit/domhtml_table_element.gen.go | 6 +- macos/webkit/domhtml_table_row_element.gen.go | 6 +- .../domhtml_table_section_element.gen.go | 6 +- macos/webkit/domhtml_text_area_element.gen.go | 6 +- macos/webkit/domhtml_title_element.gen.go | 6 +- macos/webkit/domhtmlbr_element.gen.go | 6 +- macos/webkit/domhtmld_list_element.gen.go | 6 +- macos/webkit/domhtmlhr_element.gen.go | 6 +- macos/webkit/domhtmli_frame_element.gen.go | 6 +- macos/webkit/domhtmlli_element.gen.go | 6 +- macos/webkit/domhtmlo_list_element.gen.go | 6 +- macos/webkit/domhtmlu_list_element.gen.go | 6 +- macos/webkit/domrgb_color.gen.go | 6 +- macos/webkit/domui_event.gen.go | 6 +- macos/webkit/domx_path_expression.gen.go | 6 +- macos/webkit/domx_path_ns_resolver.gen.go | 18 - .../domx_path_ns_resolver_protocol.gen.go | 21 + macos/webkit/domx_path_result.gen.go | 6 +- macos/webkit/download.gen.go | 30 +- macos/webkit/download_delegate.gen.go | 120 +- macos/webkit/enumtypes.gen.go | 2 +- macos/webkit/find_configuration.gen.go | 40 +- macos/webkit/find_result.gen.go | 6 +- macos/webkit/frame_info.gen.go | 24 +- macos/webkit/http_cookie_store.gen.go | 48 +- ...ttp_cookie_store_observer_protocol.gen.go} | 13 +- macos/webkit/navigation.gen.go | 6 +- macos/webkit/navigation_action.gen.go | 72 +- macos/webkit/navigation_delegate.gen.go | 450 +- macos/webkit/navigation_response.gen.go | 24 +- macos/webkit/open_panel_parameters.gen.go | 24 +- macos/webkit/pdf_configuration.gen.go | 6 +- macos/webkit/preferences.gen.go | 108 +- macos/webkit/process_pool.gen.go | 6 +- macos/webkit/protocols.gen.m | 2 +- macos/webkit/script_message.gen.go | 42 +- ...=> script_message_handler_protocol.gen.go} | 13 +- .../script_message_handler_with_reply.gen.go | 3 - ...message_handler_with_reply_protocol.gen.go | 3 + macos/webkit/security_origin.gen.go | 24 +- macos/webkit/snapshot_configuration.gen.go | 40 +- macos/webkit/ui_delegate.gen.go | 215 +- macos/webkit/url_scheme_handler.gen.go | 33 - .../webkit/url_scheme_handler_protocol.gen.go | 52 + ...gen.go => url_scheme_task_protocol.gen.go} | 79 +- macos/webkit/user_content_controller.gen.go | 107 +- macos/webkit/user_script.gen.go | 38 +- macos/webkit/web_archive.gen.go | 6 +- macos/webkit/web_back_forward_list.gen.go | 8 +- macos/webkit/web_data_source.gen.go | 8 +- ...b_document_representation_protocol.gen.go} | 11 +- ...=> web_document_searching_protocol.gen.go} | 9 +- ...n.go => web_document_text_protocol.gen.go} | 9 +- ...n.go => web_document_view_protocol.gen.go} | 11 +- macos/webkit/web_download.gen.go | 6 +- macos/webkit/web_download_delegate.gen.go | 9 +- macos/webkit/web_editing_delegate.gen.go | 9 +- macos/webkit/web_frame.gen.go | 6 +- macos/webkit/web_frame_load_delegate.gen.go | 9 +- macos/webkit/web_frame_view.gen.go | 6 +- macos/webkit/web_history.gen.go | 8 +- macos/webkit/web_history_item.gen.go | 6 +- ...pen_panel_result_listener_protocol.gen.go} | 9 +- macos/webkit/web_plug_in_view_factory.gen.go | 18 - .../web_plug_in_view_factory_protocol.gen.go | 21 + ..._policy_decision_listener_protocol.gen.go} | 9 +- macos/webkit/web_policy_delegate.gen.go | 9 +- macos/webkit/web_preferences.gen.go | 8 +- macos/webkit/web_resource.gen.go | 24 +- .../webkit/web_resource_load_delegate.gen.go | 9 +- macos/webkit/web_script_object.gen.go | 6 +- macos/webkit/web_ui_delegate.gen.go | 9 +- macos/webkit/web_undefined.gen.go | 6 +- macos/webkit/web_view.gen.go | 611 +-- macos/webkit/web_view_configuration.gen.go | 186 +- macos/webkit/webkit_custom.go | 14 +- macos/webkit/webpage_preferences.gen.go | 6 +- macos/webkit/website_data_record.gen.go | 6 +- macos/webkit/website_data_store.gen.go | 56 +- macos/webkit/window_features.gen.go | 96 +- 2516 files changed, 132152 insertions(+), 106567 deletions(-) rename macos/appkit/{accessibility_button.gen.go => accessibility_button_protocol.gen.go} (69%) rename macos/appkit/{accessibility_check_box.gen.go => accessibility_check_box_protocol.gen.go} (63%) rename macos/appkit/{accessibility_contains_transient_ui.gen.go => accessibility_contains_transient_ui_protocol.gen.go} (69%) rename macos/appkit/{accessibility_element_loading.gen.go => accessibility_element_loading_protocol.gen.go} (63%) create mode 100644 macos/appkit/accessibility_element_protocol.gen.go rename macos/appkit/{accessibility_group.gen.go => accessibility_group_protocol.gen.go} (59%) rename macos/appkit/{accessibility_image.gen.go => accessibility_image_protocol.gen.go} (66%) rename macos/appkit/{accessibility_layout_area.gen.go => accessibility_layout_area_protocol.gen.go} (66%) rename macos/appkit/{accessibility_layout_item.gen.go => accessibility_layout_item_protocol.gen.go} (66%) rename macos/appkit/{accessibility_list.gen.go => accessibility_list_protocol.gen.go} (58%) rename macos/appkit/{accessibility_navigable_static_text.gen.go => accessibility_navigable_static_text_protocol.gen.go} (69%) rename macos/appkit/{accessibility_outline.gen.go => accessibility_outline_protocol.gen.go} (58%) rename macos/appkit/{accessibility_progress_indicator.gen.go => accessibility_progress_indicator_protocol.gen.go} (62%) rename macos/appkit/{accessibility.gen.go => accessibility_protocol.gen.go} (74%) rename macos/appkit/{accessibility_radio_button.gen.go => accessibility_radio_button_protocol.gen.go} (63%) rename macos/appkit/{accessibility_row.gen.go => accessibility_row_protocol.gen.go} (70%) rename macos/appkit/{accessibility_slider.gen.go => accessibility_slider_protocol.gen.go} (70%) rename macos/appkit/{accessibility_static_text.gen.go => accessibility_static_text_protocol.gen.go} (69%) rename macos/appkit/{accessibility_stepper.gen.go => accessibility_stepper_protocol.gen.go} (69%) rename macos/appkit/{accessibility_switch.gen.go => accessibility_switch_protocol.gen.go} (70%) rename macos/appkit/{accessibility_table.gen.go => accessibility_table_protocol.gen.go} (65%) delete mode 100644 macos/appkit/alignment_feedback_token.gen.go create mode 100644 macos/appkit/alignment_feedback_token_protocol.gen.go rename macos/appkit/{animatable_property_container.gen.go => animatable_property_container_protocol.gen.go} (65%) rename macos/appkit/{appearance_customization.gen.go => appearance_customization_protocol.gen.go} (67%) rename macos/appkit/{change_spelling.gen.go => change_spelling_protocol.gen.go} (67%) rename macos/appkit/{cloud_sharing_validation.gen.go => cloud_sharing_validation_protocol.gen.go} (61%) rename macos/appkit/{collection_layout_container.gen.go => collection_layout_container_protocol.gen.go} (63%) rename macos/appkit/{collection_layout_environment.gen.go => collection_layout_environment_protocol.gen.go} (56%) rename macos/appkit/{collection_layout_visible_item.gen.go => collection_layout_visible_item_protocol.gen.go} (68%) delete mode 100644 macos/appkit/collection_view_data_source.gen.go create mode 100644 macos/appkit/collection_view_data_source_protocol.gen.go rename macos/appkit/{collection_view_element.gen.go => collection_view_element_protocol.gen.go} (69%) delete mode 100644 macos/appkit/collection_view_prefetching.gen.go create mode 100644 macos/appkit/collection_view_prefetching_protocol.gen.go rename macos/appkit/{collection_view_section_header_view.gen.go => collection_view_section_header_view_protocol.gen.go} (65%) rename macos/appkit/{color_changing.gen.go => color_changing_protocol.gen.go} (65%) rename macos/appkit/{color_picking_custom.gen.go => color_picking_custom_protocol.gen.go} (71%) rename macos/appkit/{color_picking_default.gen.go => color_picking_default_protocol.gen.go} (73%) delete mode 100644 macos/appkit/combo_box_cell_data_source.gen.go create mode 100644 macos/appkit/combo_box_cell_data_source_protocol.gen.go delete mode 100644 macos/appkit/combo_box_data_source.gen.go create mode 100644 macos/appkit/combo_box_data_source_protocol.gen.go rename macos/appkit/{dock_tile_plug_in.gen.go => dock_tile_plug_in_protocol.gen.go} (70%) rename macos/appkit/{dragging_destination.gen.go => dragging_destination_protocol.gen.go} (68%) rename macos/appkit/{dragging_info.gen.go => dragging_info_protocol.gen.go} (74%) delete mode 100644 macos/appkit/dragging_source.gen.go create mode 100644 macos/appkit/dragging_source_protocol.gen.go rename macos/appkit/{editor.gen.go => editor_protocol.gen.go} (71%) rename macos/appkit/{editor_registration.gen.go => editor_registration_protocol.gen.go} (61%) rename macos/appkit/{font_changing.gen.go => font_changing_protocol.gen.go} (66%) rename macos/appkit/{glyph_storage.gen.go => glyph_storage_protocol.gen.go} (71%) rename macos/appkit/{haptic_feedback_performer.gen.go => haptic_feedback_performer_protocol.gen.go} (63%) rename macos/appkit/{ignore_misspelled_words.gen.go => ignore_misspelled_words_protocol.gen.go} (62%) delete mode 100644 macos/appkit/input_server_mouse_tracker.gen.go create mode 100644 macos/appkit/input_server_mouse_tracker_protocol.gen.go delete mode 100644 macos/appkit/input_service_provider.gen.go create mode 100644 macos/appkit/input_service_provider_protocol.gen.go rename macos/appkit/{menu_item_validation.gen.go => menu_item_validation_protocol.gen.go} (64%) delete mode 100644 macos/appkit/outline_view_data_source.gen.go create mode 100644 macos/appkit/outline_view_data_source_protocol.gen.go rename macos/appkit/{pasteboard_item_data_provider.gen.go => pasteboard_item_data_provider_protocol.gen.go} (68%) rename macos/appkit/{pasteboard_reading.gen.go => pasteboard_reading_protocol.gen.go} (63%) rename macos/appkit/{pasteboard_type_owner.gen.go => pasteboard_type_owner_protocol.gen.go} (69%) rename macos/appkit/{pasteboard_writing.gen.go => pasteboard_writing_protocol.gen.go} (69%) rename macos/appkit/{print_panel_accessorizing.gen.go => print_panel_accessorizing_protocol.gen.go} (68%) rename macos/appkit/{scrubber_data_source.gen.go => scrubber_data_source_protocol.gen.go} (66%) rename macos/appkit/{segue_performing.gen.go => segue_performing_protocol.gen.go} (69%) rename macos/appkit/{services_menu_requestor.gen.go => services_menu_requestor_protocol.gen.go} (68%) rename macos/appkit/{spring_loading_destination.gen.go => spring_loading_destination_protocol.gen.go} (67%) rename macos/appkit/{standard_key_binding_responding.gen.go => standard_key_binding_responding_protocol.gen.go} (71%) delete mode 100644 macos/appkit/table_view_data_source.gen.go create mode 100644 macos/appkit/table_view_data_source_protocol.gen.go create mode 100644 macos/appkit/text_attachment_cell_protocol.gen.go rename macos/appkit/{text_attachment_container.gen.go => text_attachment_container_protocol.gen.go} (66%) rename macos/appkit/{text_attachment_layout.gen.go => text_attachment_layout_protocol.gen.go} (62%) rename macos/appkit/{text_checking_client.gen.go => text_checking_client_protocol.gen.go} (65%) rename macos/appkit/{text_content.gen.go => text_content_protocol.gen.go} (69%) rename macos/appkit/{text_element_provider.gen.go => text_element_provider_protocol.gen.go} (63%) rename macos/appkit/{text_finder_bar_container.gen.go => text_finder_bar_container_protocol.gen.go} (71%) rename macos/appkit/{text_finder_client.gen.go => text_finder_client_protocol.gen.go} (72%) rename macos/appkit/{text_input_client.gen.go => text_input_client_protocol.gen.go} (72%) rename macos/appkit/{text_input.gen.go => text_input_protocol.gen.go} (60%) rename macos/appkit/{text_input_traits.gen.go => text_input_traits_protocol.gen.go} (72%) rename macos/appkit/{text_layout_orientation_provider.gen.go => text_layout_orientation_provider_protocol.gen.go} (61%) rename macos/appkit/{text_location.gen.go => text_location_protocol.gen.go} (64%) rename macos/appkit/{text_selection_data_source.gen.go => text_selection_data_source_protocol.gen.go} (62%) rename macos/appkit/{text_storage_observing.gen.go => text_storage_observing_protocol.gen.go} (67%) rename macos/appkit/{toolbar_item_validation.gen.go => toolbar_item_validation_protocol.gen.go} (65%) rename macos/appkit/{touch_bar_provider.gen.go => touch_bar_provider_protocol.gen.go} (63%) rename macos/appkit/{user_activity_restoring.gen.go => user_activity_restoring_protocol.gen.go} (66%) rename macos/appkit/{user_interface_compression.gen.go => user_interface_compression_protocol.gen.go} (67%) rename macos/appkit/{user_interface_item_identification.gen.go => user_interface_item_identification_protocol.gen.go} (65%) rename macos/appkit/{user_interface_item_searching.gen.go => user_interface_item_searching_protocol.gen.go} (69%) rename macos/appkit/{user_interface_validations.gen.go => user_interface_validations_protocol.gen.go} (61%) rename macos/appkit/{validated_user_interface_item.gen.go => validated_user_interface_item_protocol.gen.go} (66%) rename macos/appkit/{view_controller_presentation_animator.gen.go => view_controller_presentation_animator_protocol.gen.go} (66%) rename macos/appkit/{view_tool_tip_owner.gen.go => view_tool_tip_owner_protocol.gen.go} (68%) rename macos/appkit/{window_restoration.gen.go => window_restoration_protocol.gen.go} (57%) rename macos/avfoundation/{asset_reader_caption_validation_handling.gen.go => asset_reader_caption_validation_handling_protocol.gen.go} (63%) rename macos/avfoundation/{asynchronous_key_value_loading.gen.go => asynchronous_key_value_loading_protocol.gen.go} (69%) rename macos/avfoundation/{content_key_recipient.gen.go => content_key_recipient_protocol.gen.go} (69%) rename macos/avfoundation/{fragment_minding.gen.go => fragment_minding_protocol.gen.go} (68%) rename macos/avfoundation/{queued_sample_buffer_rendering.gen.go => queued_sample_buffer_rendering_protocol.gen.go} (69%) rename macos/avfoundation/{video_compositing.gen.go => video_compositing_protocol.gen.go} (74%) create mode 100644 macos/avfoundation/video_composition_instruction_protocol.gen.go delete mode 100644 macos/avfoundation/video_composition_validation_handling.gen.go create mode 100644 macos/avfoundation/video_composition_validation_handling_protocol.gen.go rename macos/cloudkit/{record_key_value_setting.gen.go => record_key_value_setting_protocol.gen.go} (52%) rename macos/cloudkit/{record_value.gen.go => record_value_protocol.gen.go} (60%) rename macos/contacts/{change_history_event_visitor.gen.go => change_history_event_visitor_protocol.gen.go} (68%) rename macos/coredata/{fetch_request_result.gen.go => fetch_request_result_protocol.gen.go} (54%) rename macos/coredata/{fetched_results_section_info.gen.go => fetched_results_section_info_protocol.gen.go} (68%) rename macos/coreimage/{accordion_fold_transition.gen.go => accordion_fold_transition_protocol.gen.go} (72%) rename macos/coreimage/{affine_clamp.gen.go => affine_clamp_protocol.gen.go} (71%) rename macos/coreimage/{affine_tile.gen.go => affine_tile_protocol.gen.go} (72%) rename macos/coreimage/{area_average.gen.go => area_average_protocol.gen.go} (50%) rename macos/coreimage/{area_histogram.gen.go => area_histogram_protocol.gen.go} (69%) delete mode 100644 macos/coreimage/area_maximum_alpha.gen.go create mode 100644 macos/coreimage/area_maximum_alpha_protocol.gen.go rename macos/coreimage/{area_maximum.gen.go => area_maximum_protocol.gen.go} (50%) rename macos/coreimage/{area_min_max.gen.go => area_min_max_protocol.gen.go} (50%) rename macos/coreimage/{area_min_max_red.gen.go => area_min_max_red_protocol.gen.go} (50%) delete mode 100644 macos/coreimage/area_minimum_alpha.gen.go create mode 100644 macos/coreimage/area_minimum_alpha_protocol.gen.go rename macos/coreimage/{area_minimum.gen.go => area_minimum_protocol.gen.go} (50%) rename macos/coreimage/{area_reduction_filter.gen.go => area_reduction_filter_protocol.gen.go} (67%) rename macos/coreimage/{attributed_text_image_generator.gen.go => attributed_text_image_generator_protocol.gen.go} (66%) rename macos/coreimage/{aztec_code_generator.gen.go => aztec_code_generator_protocol.gen.go} (73%) rename macos/coreimage/{barcode_generator.gen.go => barcode_generator_protocol.gen.go} (66%) rename macos/coreimage/{bars_swipe_transition.gen.go => bars_swipe_transition_protocol.gen.go} (71%) rename macos/coreimage/{bicubic_scale_transform.gen.go => bicubic_scale_transform_protocol.gen.go} (72%) rename macos/coreimage/{blend_with_mask.gen.go => blend_with_mask_protocol.gen.go} (71%) rename macos/coreimage/{bloom.gen.go => bloom_protocol.gen.go} (75%) rename macos/coreimage/{bokeh_blur.gen.go => bokeh_blur_protocol.gen.go} (75%) rename macos/coreimage/{box_blur.gen.go => box_blur_protocol.gen.go} (72%) rename macos/coreimage/{bump_distortion_linear.gen.go => bump_distortion_linear_protocol.gen.go} (70%) rename macos/coreimage/{bump_distortion.gen.go => bump_distortion_protocol.gen.go} (71%) rename macos/coreimage/{checkerboard_generator.gen.go => checkerboard_generator_protocol.gen.go} (72%) rename macos/coreimage/{circle_splash_distortion.gen.go => circle_splash_distortion_protocol.gen.go} (68%) rename macos/coreimage/{circular_screen.gen.go => circular_screen_protocol.gen.go} (74%) rename macos/coreimage/{circular_wrap.gen.go => circular_wrap_protocol.gen.go} (71%) rename macos/coreimage/{cmyk_halftone.gen.go => cmyk_halftone_protocol.gen.go} (75%) rename macos/coreimage/{code128_barcode_generator.gen.go => code128_barcode_generator_protocol.gen.go} (71%) rename macos/coreimage/{color_absolute_difference.gen.go => color_absolute_difference_protocol.gen.go} (65%) rename macos/coreimage/{color_clamp.gen.go => color_clamp_protocol.gen.go} (72%) rename macos/coreimage/{color_controls.gen.go => color_controls_protocol.gen.go} (73%) rename macos/coreimage/{color_cross_polynomial.gen.go => color_cross_polynomial_protocol.gen.go} (71%) rename macos/coreimage/{color_cube.gen.go => color_cube_protocol.gen.go} (74%) rename macos/coreimage/{color_cube_with_color_space.gen.go => color_cube_with_color_space_protocol.gen.go} (71%) rename macos/coreimage/{color_cubes_mixed_with_mask.gen.go => color_cubes_mixed_with_mask_protocol.gen.go} (72%) rename macos/coreimage/{color_curves.gen.go => color_curves_protocol.gen.go} (74%) rename macos/coreimage/{color_invert.gen.go => color_invert_protocol.gen.go} (68%) rename macos/coreimage/{color_map.gen.go => color_map_protocol.gen.go} (72%) rename macos/coreimage/{color_matrix.gen.go => color_matrix_protocol.gen.go} (74%) rename macos/coreimage/{color_monochrome.gen.go => color_monochrome_protocol.gen.go} (72%) rename macos/coreimage/{color_polynomial.gen.go => color_polynomial_protocol.gen.go} (72%) rename macos/coreimage/{color_posterize.gen.go => color_posterize_protocol.gen.go} (71%) rename macos/coreimage/{color_threshold_otsu.gen.go => color_threshold_otsu_protocol.gen.go} (63%) rename macos/coreimage/{color_threshold.gen.go => color_threshold_protocol.gen.go} (68%) rename macos/coreimage/{column_average.gen.go => column_average_protocol.gen.go} (50%) rename macos/coreimage/{comic_effect.gen.go => comic_effect_protocol.gen.go} (68%) rename macos/coreimage/{composite_operation.gen.go => composite_operation_protocol.gen.go} (69%) rename macos/coreimage/{convolution.gen.go => convolution_protocol.gen.go} (72%) rename macos/coreimage/{copy_machine_transition.gen.go => copy_machine_transition_protocol.gen.go} (72%) rename macos/coreimage/{core_ml_model.gen.go => core_ml_model_protocol.gen.go} (75%) rename macos/coreimage/{crystallize.gen.go => crystallize_protocol.gen.go} (73%) rename macos/coreimage/{depth_of_field.gen.go => depth_of_field_protocol.gen.go} (75%) rename macos/coreimage/{depth_to_disparity.gen.go => depth_to_disparity_protocol.gen.go} (67%) rename macos/coreimage/{disc_blur.gen.go => disc_blur_protocol.gen.go} (72%) rename macos/coreimage/{disintegrate_with_mask_transition.gen.go => disintegrate_with_mask_transition_protocol.gen.go} (71%) rename macos/coreimage/{disparity_to_depth.gen.go => disparity_to_depth_protocol.gen.go} (67%) rename macos/coreimage/{displacement_distortion.gen.go => displacement_distortion_protocol.gen.go} (67%) rename macos/coreimage/{dissolve_transition.gen.go => dissolve_transition_protocol.gen.go} (55%) rename macos/coreimage/{dither.gen.go => dither_protocol.gen.go} (73%) rename macos/coreimage/{document_enhancer.gen.go => document_enhancer_protocol.gen.go} (70%) rename macos/coreimage/{dot_screen.gen.go => dot_screen_protocol.gen.go} (75%) rename macos/coreimage/{droste.gen.go => droste_protocol.gen.go} (74%) rename macos/coreimage/{edge_preserve_upsample.gen.go => edge_preserve_upsample_protocol.gen.go} (73%) rename macos/coreimage/{edge_work.gen.go => edge_work_protocol.gen.go} (72%) rename macos/coreimage/{edges.gen.go => edges_protocol.gen.go} (73%) rename macos/coreimage/{eightfold_reflected_tile.gen.go => eightfold_reflected_tile_protocol.gen.go} (71%) rename macos/coreimage/{exposure_adjust.gen.go => exposure_adjust_protocol.gen.go} (71%) rename macos/coreimage/{false_color.gen.go => false_color_protocol.gen.go} (73%) rename macos/coreimage/{filter_constructor.gen.go => filter_constructor_protocol.gen.go} (61%) create mode 100644 macos/coreimage/filter_protocol.gen.go rename macos/coreimage/{flash_transition.gen.go => flash_transition_protocol.gen.go} (75%) rename macos/coreimage/{four_coordinate_geometry_filter.gen.go => four_coordinate_geometry_filter_protocol.gen.go} (70%) rename macos/coreimage/{fourfold_reflected_tile.gen.go => fourfold_reflected_tile_protocol.gen.go} (72%) rename macos/coreimage/{fourfold_rotated_tile.gen.go => fourfold_rotated_tile_protocol.gen.go} (72%) rename macos/coreimage/{fourfold_translated_tile.gen.go => fourfold_translated_tile_protocol.gen.go} (72%) rename macos/coreimage/{gabor_gradients.gen.go => gabor_gradients_protocol.gen.go} (67%) rename macos/coreimage/{gamma_adjust.gen.go => gamma_adjust_protocol.gen.go} (72%) rename macos/coreimage/{gaussian_blur.gen.go => gaussian_blur_protocol.gen.go} (71%) rename macos/coreimage/{gaussian_gradient.gen.go => gaussian_gradient_protocol.gen.go} (73%) rename macos/coreimage/{glass_distortion.gen.go => glass_distortion_protocol.gen.go} (70%) rename macos/coreimage/{glass_lozenge.gen.go => glass_lozenge_protocol.gen.go} (72%) rename macos/coreimage/{glide_reflected_tile.gen.go => glide_reflected_tile_protocol.gen.go} (72%) rename macos/coreimage/{gloom.gen.go => gloom_protocol.gen.go} (75%) rename macos/coreimage/{hatched_screen.gen.go => hatched_screen_protocol.gen.go} (74%) rename macos/coreimage/{height_field_from_mask.gen.go => height_field_from_mask_protocol.gen.go} (69%) rename macos/coreimage/{hexagonal_pixellate.gen.go => hexagonal_pixellate_protocol.gen.go} (71%) rename macos/coreimage/{highlight_shadow_adjust.gen.go => highlight_shadow_adjust_protocol.gen.go} (71%) rename macos/coreimage/{histogram_display.gen.go => histogram_display_protocol.gen.go} (70%) rename macos/coreimage/{hole_distortion.gen.go => hole_distortion_protocol.gen.go} (70%) rename macos/coreimage/{hue_adjust.gen.go => hue_adjust_protocol.gen.go} (72%) rename macos/coreimage/{hue_saturation_value_gradient.gen.go => hue_saturation_value_gradient_protocol.gen.go} (72%) rename macos/coreimage/{image_processor_input.gen.go => image_processor_input_protocol.gen.go} (72%) rename macos/coreimage/{image_processor_output.gen.go => image_processor_output_protocol.gen.go} (70%) rename macos/coreimage/{k_means.gen.go => k_means_protocol.gen.go} (73%) rename macos/coreimage/{kaleidoscope.gen.go => kaleidoscope_protocol.gen.go} (74%) rename macos/coreimage/{keystone_correction_combined.gen.go => keystone_correction_combined_protocol.gen.go} (66%) rename macos/coreimage/{keystone_correction_horizontal.gen.go => keystone_correction_horizontal_protocol.gen.go} (66%) rename macos/coreimage/{keystone_correction_vertical.gen.go => keystone_correction_vertical_protocol.gen.go} (66%) rename macos/coreimage/{lab_delta_e.gen.go => lab_delta_e_protocol.gen.go} (72%) rename macos/coreimage/{lanczos_scale_transform.gen.go => lanczos_scale_transform_protocol.gen.go} (71%) rename macos/coreimage/{lenticular_halo_generator.gen.go => lenticular_halo_generator_protocol.gen.go} (72%) rename macos/coreimage/{light_tunnel.gen.go => light_tunnel_protocol.gen.go} (72%) rename macos/coreimage/{line_overlay.gen.go => line_overlay_protocol.gen.go} (76%) rename macos/coreimage/{line_screen.gen.go => line_screen_protocol.gen.go} (75%) rename macos/coreimage/{linear_gradient.gen.go => linear_gradient_protocol.gen.go} (73%) rename macos/coreimage/{linear_to_srgb_tone_curve.gen.go => linear_to_srgb_tone_curve_protocol.gen.go} (65%) rename macos/coreimage/{mask_to_alpha.gen.go => mask_to_alpha_protocol.gen.go} (68%) rename macos/coreimage/{masked_variable_blur.gen.go => masked_variable_blur_protocol.gen.go} (71%) rename macos/coreimage/{maximum_component.gen.go => maximum_component_protocol.gen.go} (67%) rename macos/coreimage/{median.gen.go => median_protocol.gen.go} (69%) rename macos/coreimage/{mesh_generator.gen.go => mesh_generator_protocol.gen.go} (72%) rename macos/coreimage/{minimum_component.gen.go => minimum_component_protocol.gen.go} (67%) rename macos/coreimage/{mix.gen.go => mix_protocol.gen.go} (74%) rename macos/coreimage/{mod_transition.gen.go => mod_transition_protocol.gen.go} (74%) rename macos/coreimage/{morphology_gradient.gen.go => morphology_gradient_protocol.gen.go} (70%) rename macos/coreimage/{morphology_maximum.gen.go => morphology_maximum_protocol.gen.go} (70%) rename macos/coreimage/{morphology_minimum.gen.go => morphology_minimum_protocol.gen.go} (70%) rename macos/coreimage/{morphology_rectangle_maximum.gen.go => morphology_rectangle_maximum_protocol.gen.go} (70%) rename macos/coreimage/{morphology_rectangle_minimum.gen.go => morphology_rectangle_minimum_protocol.gen.go} (70%) rename macos/coreimage/{motion_blur.gen.go => motion_blur_protocol.gen.go} (74%) rename macos/coreimage/{nine_part_stretched.gen.go => nine_part_stretched_protocol.gen.go} (70%) rename macos/coreimage/{nine_part_tiled.gen.go => nine_part_tiled_protocol.gen.go} (71%) rename macos/coreimage/{noise_reduction.gen.go => noise_reduction_protocol.gen.go} (72%) rename macos/coreimage/{op_tile.gen.go => op_tile_protocol.gen.go} (76%) rename macos/coreimage/{page_curl_transition.gen.go => page_curl_transition_protocol.gen.go} (73%) rename macos/coreimage/{page_curl_with_shadow_transition.gen.go => page_curl_with_shadow_transition_protocol.gen.go} (71%) rename macos/coreimage/{palette_centroid.gen.go => palette_centroid_protocol.gen.go} (73%) rename macos/coreimage/{palettize.gen.go => palettize_protocol.gen.go} (74%) rename macos/coreimage/{parallelogram_tile.gen.go => parallelogram_tile_protocol.gen.go} (73%) rename macos/coreimage/{pd_f417_barcode_generator.gen.go => pd_f417_barcode_generator_protocol.gen.go} (74%) rename macos/coreimage/{person_segmentation.gen.go => person_segmentation_protocol.gen.go} (67%) rename macos/coreimage/{perspective_correction.gen.go => perspective_correction_protocol.gen.go} (67%) rename macos/coreimage/{perspective_rotate.gen.go => perspective_rotate_protocol.gen.go} (72%) rename macos/coreimage/{perspective_tile.gen.go => perspective_tile_protocol.gen.go} (73%) rename macos/coreimage/{perspective_transform.gen.go => perspective_transform_protocol.gen.go} (54%) rename macos/coreimage/{perspective_transform_with_extent.gen.go => perspective_transform_with_extent_protocol.gen.go} (66%) rename macos/coreimage/{photo_effect.gen.go => photo_effect_protocol.gen.go} (68%) rename macos/coreimage/{pinch_distortion.gen.go => pinch_distortion_protocol.gen.go} (70%) rename macos/coreimage/{pixellate.gen.go => pixellate_protocol.gen.go} (74%) rename macos/coreimage/{plug_in_registration.gen.go => plug_in_registration_protocol.gen.go} (64%) rename macos/coreimage/{pointillize.gen.go => pointillize_protocol.gen.go} (74%) rename macos/coreimage/{qr_code_generator.gen.go => qr_code_generator_protocol.gen.go} (71%) rename macos/coreimage/{radial_gradient.gen.go => radial_gradient_protocol.gen.go} (74%) rename macos/coreimage/{random_generator.gen.go => random_generator_protocol.gen.go} (55%) rename macos/coreimage/{ripple_transition.gen.go => ripple_transition_protocol.gen.go} (74%) rename macos/coreimage/{rounded_rectangle_generator.gen.go => rounded_rectangle_generator_protocol.gen.go} (70%) rename macos/coreimage/{row_average.gen.go => row_average_protocol.gen.go} (50%) rename macos/coreimage/{saliency_map.gen.go => saliency_map_protocol.gen.go} (68%) rename macos/coreimage/{sepia_tone.gen.go => sepia_tone_protocol.gen.go} (72%) rename macos/coreimage/{shaded_material.gen.go => shaded_material_protocol.gen.go} (71%) rename macos/coreimage/{sharpen_luminance.gen.go => sharpen_luminance_protocol.gen.go} (72%) rename macos/coreimage/{sixfold_reflected_tile.gen.go => sixfold_reflected_tile_protocol.gen.go} (72%) rename macos/coreimage/{sixfold_rotated_tile.gen.go => sixfold_rotated_tile_protocol.gen.go} (72%) rename macos/coreimage/{smooth_linear_gradient.gen.go => smooth_linear_gradient_protocol.gen.go} (71%) rename macos/coreimage/{spot_color.gen.go => spot_color_protocol.gen.go} (76%) rename macos/coreimage/{spot_light.gen.go => spot_light_protocol.gen.go} (74%) rename macos/coreimage/{srgb_tone_curve_to_linear.gen.go => srgb_tone_curve_to_linear_protocol.gen.go} (65%) rename macos/coreimage/{star_shine_generator.gen.go => star_shine_generator_protocol.gen.go} (73%) rename macos/coreimage/{straighten.gen.go => straighten_protocol.gen.go} (71%) rename macos/coreimage/{stretch_crop.gen.go => stretch_crop_protocol.gen.go} (71%) rename macos/coreimage/{stripes_generator.gen.go => stripes_generator_protocol.gen.go} (73%) rename macos/coreimage/{sunbeams_generator.gen.go => sunbeams_generator_protocol.gen.go} (73%) rename macos/coreimage/{swipe_transition.gen.go => swipe_transition_protocol.gen.go} (73%) rename macos/coreimage/{temperature_and_tint.gen.go => temperature_and_tint_protocol.gen.go} (71%) rename macos/coreimage/{text_image_generator.gen.go => text_image_generator_protocol.gen.go} (73%) rename macos/coreimage/{thermal.gen.go => thermal_protocol.gen.go} (69%) rename macos/coreimage/{tone_curve.gen.go => tone_curve_protocol.gen.go} (76%) rename macos/coreimage/{torus_lens_distortion.gen.go => torus_lens_distortion_protocol.gen.go} (70%) rename macos/coreimage/{transition_filter.gen.go => transition_filter_protocol.gen.go} (71%) rename macos/coreimage/{triangle_kaleidoscope.gen.go => triangle_kaleidoscope_protocol.gen.go} (73%) rename macos/coreimage/{triangle_tile.gen.go => triangle_tile_protocol.gen.go} (74%) rename macos/coreimage/{twelvefold_reflected_tile.gen.go => twelvefold_reflected_tile_protocol.gen.go} (71%) rename macos/coreimage/{twirl_distortion.gen.go => twirl_distortion_protocol.gen.go} (70%) rename macos/coreimage/{unsharp_mask.gen.go => unsharp_mask_protocol.gen.go} (73%) rename macos/coreimage/{vibrance.gen.go => vibrance_protocol.gen.go} (72%) rename macos/coreimage/{vignette_effect.gen.go => vignette_effect_protocol.gen.go} (74%) rename macos/coreimage/{vignette.gen.go => vignette_protocol.gen.go} (74%) rename macos/coreimage/{vortex_distortion.gen.go => vortex_distortion_protocol.gen.go} (70%) rename macos/coreimage/{white_point_adjust.gen.go => white_point_adjust_protocol.gen.go} (70%) rename macos/coreimage/{x_ray.gen.go => x_ray_protocol.gen.go} (70%) rename macos/coreimage/{zoom_blur.gen.go => zoom_blur_protocol.gen.go} (74%) rename macos/coremediaio/{extension_device_source.gen.go => extension_device_source_protocol.gen.go} (66%) rename macos/coremediaio/{extension_provider_source.gen.go => extension_provider_source_protocol.gen.go} (68%) rename macos/coremediaio/{extension_stream_source.gen.go => extension_stream_source_protocol.gen.go} (69%) rename macos/coreml/{batch_provider.gen.go => batch_provider_protocol.gen.go} (60%) rename macos/coreml/{custom_layer.gen.go => custom_layer_protocol.gen.go} (67%) rename macos/coreml/{custom_model.gen.go => custom_model_protocol.gen.go} (54%) rename macos/coreml/{feature_provider.gen.go => feature_provider_protocol.gen.go} (65%) rename macos/coreml/{writable.gen.go => writable_protocol.gen.go} (68%) rename macos/fileprovider/{file_provider_change_observer.gen.go => file_provider_change_observer_protocol.gen.go} (70%) rename macos/fileprovider/{file_provider_custom_action.gen.go => file_provider_custom_action_protocol.gen.go} (61%) rename macos/fileprovider/{file_provider_domain_state.gen.go => file_provider_domain_state_protocol.gen.go} (66%) rename macos/fileprovider/{file_provider_enumerating.gen.go => file_provider_enumerating_protocol.gen.go} (52%) rename macos/fileprovider/{file_provider_enumeration_observer.gen.go => file_provider_enumeration_observer_protocol.gen.go} (69%) rename macos/fileprovider/{file_provider_enumerator.gen.go => file_provider_enumerator_protocol.gen.go} (66%) rename macos/fileprovider/{file_provider_incremental_content_fetching.gen.go => file_provider_incremental_content_fetching_protocol.gen.go} (62%) rename macos/fileprovider/{file_provider_item_decorating.gen.go => file_provider_item_decorating_protocol.gen.go} (62%) rename macos/fileprovider/{file_provider_partial_content_fetching.gen.go => file_provider_partial_content_fetching_protocol.gen.go} (60%) rename macos/fileprovider/{file_provider_pending_set_enumerator.gen.go => file_provider_pending_set_enumerator_protocol.gen.go} (64%) rename macos/fileprovider/{file_provider_replicated_extension.gen.go => file_provider_replicated_extension_protocol.gen.go} (65%) rename macos/fileprovider/{file_provider_service_source.gen.go => file_provider_service_source_protocol.gen.go} (68%) rename macos/fileprovider/{file_provider_servicing.gen.go => file_provider_servicing_protocol.gen.go} (60%) rename macos/fileprovider/{file_provider_testing_children_enumeration.gen.go => file_provider_testing_children_enumeration_protocol.gen.go} (63%) rename macos/fileprovider/{file_provider_testing_collision_resolution.gen.go => file_provider_testing_collision_resolution_protocol.gen.go} (61%) rename macos/fileprovider/{file_provider_testing_content_fetch.gen.go => file_provider_testing_content_fetch_protocol.gen.go} (64%) rename macos/fileprovider/{file_provider_testing_creation.gen.go => file_provider_testing_creation_protocol.gen.go} (65%) rename macos/fileprovider/{file_provider_testing_deletion.gen.go => file_provider_testing_deletion_protocol.gen.go} (67%) rename macos/fileprovider/{file_provider_testing_ingestion.gen.go => file_provider_testing_ingestion_protocol.gen.go} (66%) rename macos/fileprovider/{file_provider_testing_lookup.gen.go => file_provider_testing_lookup_protocol.gen.go} (65%) rename macos/fileprovider/{file_provider_testing_modification.gen.go => file_provider_testing_modification_protocol.gen.go} (66%) rename macos/fileprovider/{file_provider_testing_operation.gen.go => file_provider_testing_operation_protocol.gen.go} (53%) rename macos/fileprovider/{file_provider_thumbnailing.gen.go => file_provider_thumbnailing_protocol.gen.go} (63%) rename macos/fileprovider/{file_provider_user_interaction_suppressing.gen.go => file_provider_user_interaction_suppressing_protocol.gen.go} (67%) rename macos/foundation/{coding.gen.go => coding_protocol.gen.go} (70%) rename macos/foundation/{copying.gen.go => copying_protocol.gen.go} (64%) rename macos/foundation/{decimal_number_behaviors.gen.go => decimal_number_behaviors_protocol.gen.go} (68%) rename macos/foundation/{discardable_content.gen.go => discardable_content_protocol.gen.go} (74%) rename macos/foundation/{extension_request_handling.gen.go => extension_request_handling_protocol.gen.go} (64%) rename macos/foundation/{fast_enumeration.gen.go => fast_enumeration_protocol.gen.go} (67%) rename macos/foundation/{file_presenter.gen.go => file_presenter_protocol.gen.go} (63%) create mode 100644 macos/foundation/hash_table.gen.go rename macos/foundation/{item_provider_writing.gen.go => item_provider_writing_protocol.gen.go} (50%) rename macos/foundation/{locking.gen.go => locking_protocol.gen.go} (72%) create mode 100644 macos/foundation/map_table.gen.go rename macos/foundation/{mutable_copying.gen.go => mutable_copying_protocol.gen.go} (62%) rename macos/foundation/{progress_reporting.gen.go => progress_reporting_protocol.gen.go} (63%) rename macos/foundation/{url_authentication_challenge_sender.gen.go => url_authentication_challenge_sender_protocol.gen.go} (69%) rename macos/foundation/{url_handle_client.gen.go => url_handle_client_protocol.gen.go} (54%) delete mode 100644 macos/foundation/url_protocol_client.gen.go create mode 100644 macos/foundation/url_protocol_client_protocol.gen.go rename macos/foundation/{xpc_proxy_creating.gen.go => xpc_proxy_creating_protocol.gen.go} (67%) rename macos/mediaplayer/{system_music_player_controller.gen.go => system_music_player_controller_protocol.gen.go} (52%) rename macos/metal/{acceleration_structure_command_encoder.gen.go => acceleration_structure_command_encoder_protocol.gen.go} (58%) rename macos/metal/{acceleration_structure.gen.go => acceleration_structure_protocol.gen.go} (64%) rename macos/metal/{argument_encoder.gen.go => argument_encoder_protocol.gen.go} (65%) rename macos/metal/{binary_archive.gen.go => binary_archive_protocol.gen.go} (71%) delete mode 100644 macos/metal/blit_command_encoder.gen.go create mode 100644 macos/metal/blit_command_encoder_protocol.gen.go rename macos/metal/{buffer.gen.go => buffer_protocol.gen.go} (67%) rename macos/metal/{capture_scope.gen.go => capture_scope_protocol.gen.go} (69%) rename macos/metal/{command_buffer_encoder_info.gen.go => command_buffer_encoder_info_protocol.gen.go} (70%) rename macos/metal/{command_buffer.gen.go => command_buffer_protocol.gen.go} (62%) rename macos/metal/{command_encoder.gen.go => command_encoder_protocol.gen.go} (72%) rename macos/metal/{command_queue.gen.go => command_queue_protocol.gen.go} (63%) rename macos/metal/{compute_command_encoder.gen.go => compute_command_encoder_protocol.gen.go} (61%) rename macos/metal/{compute_pipeline_state.gen.go => compute_pipeline_state_protocol.gen.go} (63%) rename macos/metal/{counter.gen.go => counter_protocol.gen.go} (67%) rename macos/metal/{counter_sample_buffer.gen.go => counter_sample_buffer_protocol.gen.go} (69%) rename macos/metal/{counter_set.gen.go => counter_set_protocol.gen.go} (64%) rename macos/metal/{depth_stencil_state.gen.go => depth_stencil_state_protocol.gen.go} (64%) rename macos/metal/{device.gen.go => device_protocol.gen.go} (58%) rename macos/metal/{drawable.gen.go => drawable_protocol.gen.go} (75%) rename macos/metal/{dynamic_library.gen.go => dynamic_library_protocol.gen.go} (70%) rename macos/metal/{event.gen.go => event_protocol.gen.go} (68%) rename macos/metal/{fence.gen.go => fence_protocol.gen.go} (69%) rename macos/metal/{function_handle.gen.go => function_handle_protocol.gen.go} (66%) rename macos/metal/{function_log_debug_location.gen.go => function_log_debug_location_protocol.gen.go} (69%) rename macos/metal/{function_log.gen.go => function_log_protocol.gen.go} (65%) rename macos/metal/{function.gen.go => function_protocol.gen.go} (70%) rename macos/metal/{function_stitching_attribute.gen.go => function_stitching_attribute_protocol.gen.go} (55%) rename macos/metal/{function_stitching_node.gen.go => function_stitching_node_protocol.gen.go} (51%) rename macos/metal/{heap.gen.go => heap_protocol.gen.go} (61%) rename macos/metal/{indirect_command_buffer.gen.go => indirect_command_buffer_protocol.gen.go} (59%) rename macos/metal/{indirect_compute_command.gen.go => indirect_compute_command_protocol.gen.go} (70%) rename macos/metal/{indirect_render_command.gen.go => indirect_render_command_protocol.gen.go} (63%) rename macos/metal/{intersection_function_table.gen.go => intersection_function_table_protocol.gen.go} (56%) delete mode 100644 macos/metal/library.gen.go create mode 100644 macos/metal/library_protocol.gen.go rename macos/metal/{log_container.gen.go => log_container_protocol.gen.go} (57%) rename macos/metal/{parallel_render_command_encoder.gen.go => parallel_render_command_encoder_protocol.gen.go} (62%) rename macos/metal/{rasterization_rate_map.gen.go => rasterization_rate_map_protocol.gen.go} (71%) rename macos/metal/{render_command_encoder.gen.go => render_command_encoder_protocol.gen.go} (52%) rename macos/metal/{render_pipeline_state.gen.go => render_pipeline_state_protocol.gen.go} (63%) rename macos/metal/{resource.gen.go => resource_protocol.gen.go} (75%) rename macos/metal/{resource_state_command_encoder.gen.go => resource_state_command_encoder_protocol.gen.go} (51%) rename macos/metal/{sampler_state.gen.go => sampler_state_protocol.gen.go} (63%) rename macos/metal/{shared_event.gen.go => shared_event_protocol.gen.go} (71%) rename macos/metal/{texture.gen.go => texture_protocol.gen.go} (57%) rename macos/metal/{visible_function_table.gen.go => visible_function_table_protocol.gen.go} (63%) rename macos/mps/{cnn_batch_normalization_data_source.gen.go => cnn_batch_normalization_data_source_protocol.gen.go} (66%) rename macos/mps/{cnn_convolution_data_source.gen.go => cnn_convolution_data_source_protocol.gen.go} (68%) rename macos/mps/{cnn_group_normalization_data_source.gen.go => cnn_group_normalization_data_source_protocol.gen.go} (66%) rename macos/mps/{cnn_instance_normalization_data_source.gen.go => cnn_instance_normalization_data_source_protocol.gen.go} (66%) rename macos/mps/{device_provider.gen.go => device_provider_protocol.gen.go} (57%) rename macos/mps/{handle.gen.go => handle_protocol.gen.go} (67%) rename macos/mps/{heap_provider.gen.go => heap_provider_protocol.gen.go} (55%) rename macos/mps/{image_allocator.gen.go => image_allocator_protocol.gen.go} (62%) rename macos/mps/{image_size_encoding_state.gen.go => image_size_encoding_state_protocol.gen.go} (66%) rename macos/mps/{image_transform_provider.gen.go => image_transform_provider_protocol.gen.go} (59%) create mode 100644 macos/mps/mps_custom.go rename macos/mps/{nd_array_allocator.gen.go => nd_array_allocator_protocol.gen.go} (61%) rename macos/mps/{nn_gram_matrix_callback.gen.go => nn_gram_matrix_callback_protocol.gen.go} (63%) rename macos/mps/{nn_loss_callback.gen.go => nn_loss_callback_protocol.gen.go} (64%) rename macos/mps/{nn_padding.gen.go => nn_padding_protocol.gen.go} (68%) rename macos/mps/{nn_trainable_node.gen.go => nn_trainable_node_protocol.gen.go} (68%) rename macos/mps/{svgf_texture_allocator.gen.go => svgf_texture_allocator_protocol.gen.go} (55%) rename macos/quartz/{composition_renderer.gen.go => composition_renderer_protocol.gen.go} (65%) rename macos/quartz/{filter_custom_ui_provider.gen.go => filter_custom_ui_provider_protocol.gen.go} (64%) rename macos/quartz/{image_edit_panel_data_source.gen.go => image_edit_panel_data_source_protocol.gen.go} (69%) delete mode 100644 macos/quartz/plug_in_context.gen.go create mode 100644 macos/quartz/plug_in_context_protocol.gen.go rename macos/quartz/{plug_in_input_image_source.gen.go => plug_in_input_image_source_protocol.gen.go} (77%) rename macos/quartz/{plug_in_output_image_provider.gen.go => plug_in_output_image_provider_protocol.gen.go} (70%) rename macos/quartz/{slideshow_data_source.gen.go => slideshow_data_source_protocol.gen.go} (72%) rename macos/quartzcore/{action.gen.go => action_protocol.gen.go} (69%) rename macos/quartzcore/{layout_manager.gen.go => layout_manager_protocol.gen.go} (73%) rename macos/quartzcore/{media_timing.gen.go => media_timing_protocol.gen.go} (77%) rename macos/quartzcore/{metal_drawable.gen.go => metal_drawable_protocol.gen.go} (63%) rename macos/vision/{face_observation_accepting.gen.go => face_observation_accepting_protocol.gen.go} (65%) rename macos/vision/{request_progress_providing.gen.go => request_progress_providing_protocol.gen.go} (70%) rename macos/vision/{request_revision_providing.gen.go => request_revision_providing_protocol.gen.go} (64%) delete mode 100644 macos/webkit/dom_event_listener.gen.go create mode 100644 macos/webkit/dom_event_listener_protocol.gen.go delete mode 100644 macos/webkit/dom_event_target.gen.go create mode 100644 macos/webkit/dom_event_target_protocol.gen.go delete mode 100644 macos/webkit/dom_node_filter.gen.go create mode 100644 macos/webkit/dom_node_filter_protocol.gen.go delete mode 100644 macos/webkit/domx_path_ns_resolver.gen.go create mode 100644 macos/webkit/domx_path_ns_resolver_protocol.gen.go rename macos/webkit/{http_cookie_store_observer.gen.go => http_cookie_store_observer_protocol.gen.go} (65%) rename macos/webkit/{script_message_handler.gen.go => script_message_handler_protocol.gen.go} (65%) delete mode 100644 macos/webkit/script_message_handler_with_reply.gen.go create mode 100644 macos/webkit/script_message_handler_with_reply_protocol.gen.go delete mode 100644 macos/webkit/url_scheme_handler.gen.go create mode 100644 macos/webkit/url_scheme_handler_protocol.gen.go rename macos/webkit/{url_scheme_task.gen.go => url_scheme_task_protocol.gen.go} (72%) rename macos/webkit/{web_document_representation.gen.go => web_document_representation_protocol.gen.go} (58%) rename macos/webkit/{web_document_searching.gen.go => web_document_searching_protocol.gen.go} (62%) rename macos/webkit/{web_document_text.gen.go => web_document_text_protocol.gen.go} (67%) rename macos/webkit/{web_document_view.gen.go => web_document_view_protocol.gen.go} (54%) rename macos/webkit/{web_open_panel_result_listener.gen.go => web_open_panel_result_listener_protocol.gen.go} (65%) delete mode 100644 macos/webkit/web_plug_in_view_factory.gen.go create mode 100644 macos/webkit/web_plug_in_view_factory_protocol.gen.go rename macos/webkit/{web_policy_decision_listener.gen.go => web_policy_decision_listener_protocol.gen.go} (61%) diff --git a/Makefile b/Makefile index b7d1c904..1e88699b 100644 --- a/Makefile +++ b/Makefile @@ -17,4 +17,4 @@ example: .PHONY: example generate/symbols.zip: - cd generate && wget https://github.com/mactypes/symbolsdb/releases/download/1.0/symbols.zip \ No newline at end of file + cd generate && wget https://github.com/mactypes/symbolsdb/releases/download/1.1/symbols.zip \ No newline at end of file diff --git a/generate/class.go b/generate/class.go index 7753921b..18cb3d76 100644 --- a/generate/class.go +++ b/generate/class.go @@ -40,7 +40,7 @@ func (db *Generator) ToClassGen(sym Symbol) *codegen.Class { DocURL: sym.DocURL(), } - st, err := sym.Parse() + st, err := sym.Parse(db.Platform) if err != nil { panic(err) } diff --git a/generate/codegen/codegen.go b/generate/codegen/codegen.go index 17113961..aaadd681 100644 --- a/generate/codegen/codegen.go +++ b/generate/codegen/codegen.go @@ -2,7 +2,7 @@ package codegen import "github.com/progrium/macdriver/internal/set" -var AutoGeneratedMark = "// AUTO-GENERATED CODE, DO NOT MODIFY\n" +var AutoGeneratedMark = "// Code generated by DarwinKit. DO NOT EDIT.\n" // CodeGen is interface for Class/Protocol code Gen type CodeGen interface { diff --git a/generate/codegen/filewriter.go b/generate/codegen/filewriter.go index 8aed3041..cf21aac0 100644 --- a/generate/codegen/filewriter.go +++ b/generate/codegen/filewriter.go @@ -3,6 +3,7 @@ package codegen import ( "os" "path/filepath" + "strings" "github.com/progrium/macdriver/generate/modules" "github.com/progrium/macdriver/internal/set" @@ -57,6 +58,9 @@ func (w *FileWriter) WriteCode() { } func (w *FileWriter) goFilePath() string { + if strings.Contains(w.Name, "Delegate") { + w.Name = strings.Replace(w.Name, "Protocol", "", -1) + } name := stringx.CamelToSnake(modules.TrimPrefix(w.Name)) return w.PlatformDir + "/" + w.Module.Package + "/" + name + ".gen.go" } diff --git a/generate/codegen/gen_class.go b/generate/codegen/gen_class.go index 6e64a952..0835e772 100644 --- a/generate/codegen/gen_class.go +++ b/generate/codegen/gen_class.go @@ -223,7 +223,7 @@ func (c *Class) writeGoStruct(w *CodeWriter) { w.UnIndent() w.WriteLine("}") } - if (im.InitMethod || im.ClassMethod) && im.Name != "new" && im.Name != "init" { + if (im.InitMethod || im.ClassMethod) && im.Name != "new" && im.Name != "init" && im.Name != "alloc" { //add a convenient custom init method function w.WriteLine("") if m.DocURL != "" { diff --git a/generate/codegen/gen_method.go b/generate/codegen/gen_method.go index d1735463..7b15ec2b 100644 --- a/generate/codegen/gen_method.go +++ b/generate/codegen/gen_method.go @@ -26,6 +26,7 @@ type Method struct { Variadic bool Description string DocURL string + Protocol bool goFuncName string identifier string @@ -72,6 +73,7 @@ func (m *Method) NormalizeInstanceTypeMethod(returnType *typing.ClassType) *Meth goFuncName: m.goFuncName, Suffix: m.Suffix, Variadic: m.Variadic, + Protocol: m.Protocol, } return nm } @@ -172,7 +174,7 @@ func (m *Method) WriteGoInterfaceCode(currentModule *modules.Module, classType * func (m *Method) GoFuncDeclare(currentModule *modules.Module, goTypeName string) string { var paramStrs []string for _, p := range m.Params { - paramStrs = append(paramStrs, p.GoDeclare(currentModule, false)) + paramStrs = append(paramStrs, p.GoDeclare(currentModule, m.Protocol)) } if m.Variadic { paramStrs = append(paramStrs, "args ...any") @@ -216,7 +218,7 @@ func (m *Method) ProtocolGoFuncFieldType(currentModule *modules.Module) string { paramStrs = append(paramStrs, "args ...any") } - return "(" + strings.Join(paramStrs, ", ") + ")" + " " + m.ReturnType.GoName(currentModule, false) + return "(" + strings.Join(paramStrs, ", ") + ")" + " " + m.ReturnType.GoName(currentModule, true) } // ProtocolGoFuncName return go protocol func name @@ -292,5 +294,6 @@ func (m *Method) ToProtocolParamAsObjectMethod() *Method { Description: m.Description, DocURL: m.DocURL, Variadic: m.Variadic, + Protocol: m.Protocol, } } diff --git a/generate/codegen/gen_protocol.go b/generate/codegen/gen_protocol.go index 1b6bac0c..5b5e4b1f 100644 --- a/generate/codegen/gen_protocol.go +++ b/generate/codegen/gen_protocol.go @@ -226,7 +226,10 @@ func (p *Protocol) writeDelegateStruct(w *CodeWriter) { func (p *Protocol) writeProtocolWrapperStruct(w *CodeWriter) { typeName := p.Type.GoWrapperName() - w.WriteLine(fmt.Sprintf("// A concrete type wrapper for the [%s] protocol.", p.Type.GoInterfaceName())) + w.WriteLine("// ensure impl type implements protocol interface") + w.WriteLine(fmt.Sprintf("var _ %s = (*%s)(nil)", p.Type.GoInterfaceName(), typeName)) + w.WriteLine("") + w.WriteLine(fmt.Sprintf("// A concrete type for the [%s] protocol.", p.Type.GoInterfaceName())) w.WriteLine("type " + typeName + " struct {") w.Indent() if len(p.Supers) == 0 { @@ -276,5 +279,8 @@ func (p *Protocol) allMethods() []*Method { allMethods = append(allMethods, (*Method)(pp.getter())) } + for idx := range allMethods { + allMethods[idx].Protocol = true + } return allMethods } diff --git a/generate/codegen/modulewriter.go b/generate/codegen/modulewriter.go index 63630cb4..9cd5b049 100644 --- a/generate/codegen/modulewriter.go +++ b/generate/codegen/modulewriter.go @@ -98,7 +98,9 @@ func (m *ModuleWriter) WriteEnumAliases() { return } armVals := false + imports := set.New[string]() for _, e := range enums { + imports.AddSet(e.Type.GoImports()) for _, v := range e.Values { if v.Arm64Value != "" { armVals = true @@ -145,6 +147,16 @@ func (m *ModuleWriter) WriteEnumAliases() { amd64cw.WriteLine(AutoGeneratedMark) amd64cw.WriteLine("package " + m.Module.Package) + cw.WriteLine("import (") + cw.Indent() + imports.ForEach(func(value string) { + if value != "github.com/progrium/macdriver/macos/objc" { + cw.WriteLine("\"" + value + "\"") + } + }) + cw.UnIndent() + cw.WriteLine(")") + for _, ei := range enums { primitiveType := ei.Type.GoName(&m.Module, false) if ei.Module.Name == m.Module.Name { @@ -206,6 +218,9 @@ func (m *ModuleWriter) WriteEnumAliases() { log.Println("enum ", v.Name, " requires a value") continue } + if v.GoName == ei.GoName(&m.Module, false) { + v.GoName = "K" + v.GoName + } if v.Arm64Value != "" { if !ei.IsString() { amd64cw.WriteLine(fmt.Sprintf("\t%s %s = %s", v.GoName, ei.GoName(&m.Module, false), v.Value)) @@ -245,8 +260,8 @@ func (m *ModuleWriter) WriteDocFile() { cw.WriteLine(AutoGeneratedMark) cw.WriteLineF("// %s", m.Description) cw.WriteLine("//") - cw.WriteLine("// [Full Documentation]") - cw.WriteLineF("//\n// [Full Documentation]: %s", m.DocURL) + cw.WriteLine("// [Apple Documentation]") + cw.WriteLineF("//\n// [Apple Documentation]: %s", m.DocURL) cw.WriteLineF("package %s", m.Module.Package) } } diff --git a/generate/enums.go b/generate/enums.go index 362b5723..12a18c0f 100644 --- a/generate/enums.go +++ b/generate/enums.go @@ -16,7 +16,7 @@ func (db *Generator) ToEnumInfo(fw string, sym Symbol) *codegen.AliasInfo { } var enumValues []*codegen.EnumValue for _, ev := range db.EnumValues(fw) { - st, _ := ev.Parse() + st, _ := ev.Parse(db.Platform) if st.Variable.Type.Name != sym.Name && ev.Parent != sym.Name { continue } @@ -129,7 +129,7 @@ func (db *Generator) AllowedEnumAlias(s Symbol) bool { "UInt32", "UInt64", } - st, err := s.Parse() + st, err := s.Parse(db.Platform) if err != nil { return false } diff --git a/generate/generator.go b/generate/generator.go index 98d7ad4b..61efdb22 100644 --- a/generate/generator.go +++ b/generate/generator.go @@ -88,7 +88,7 @@ func (db *Generator) Generate(platform string, version int, rootDir string, fram } protocolGen.Init() fw := &codegen.FileWriter{ - Name: s.Name, + Name: s.Name + "Protocol", Module: *protocolGen.Type.Module, PlatformDir: rootDir, } @@ -114,7 +114,7 @@ func (db *Generator) Generate(platform string, version int, rootDir string, fram mw.EnumAliases = append(mw.EnumAliases, db.ToEnumInfo(framework, s)) continue } - st, err := s.Parse() + st, err := s.Parse(db.Platform) if err != nil || st.TypeAlias == nil { log.Printf("skipping '%s', bad decl: %s", s.Name, s.Declaration) continue @@ -147,7 +147,7 @@ func (db *Generator) ResolveTypeAlias(typeName string) (declparse.TypeInfo, bool if s == nil { return declparse.TypeInfo{}, false } - st, err := s.Parse() + st, err := s.Parse(db.Platform) if err != nil || st.TypeAlias == nil { return declparse.TypeInfo{}, false } diff --git a/generate/members.go b/generate/members.go index 68840a2e..bf0cab76 100644 --- a/generate/members.go +++ b/generate/members.go @@ -8,6 +8,7 @@ import ( "github.com/progrium/macdriver/generate/codegen" "github.com/progrium/macdriver/generate/declparse" "github.com/progrium/macdriver/generate/modules" + "github.com/progrium/macdriver/generate/typing" ) func (db *Generator) shouldSkipType(ti declparse.TypeInfo) bool { @@ -64,6 +65,7 @@ func (db *Generator) shouldSkipType(ti declparse.TypeInfo) bool { "CLBeaconIdentityConstraint", "mach_port_t", "cpu_type_t", + "ptrdiff_t", } { if ti.Name == n { return true @@ -93,7 +95,7 @@ func (db *Generator) Members(fw string, sym Symbol, covariantTypes []string) (pr s.Declaration = strings.ReplaceAll(s.Declaration, fmt.Sprintf("<%s>", ct), "") } - st, err := s.Parse() + st, err := s.Parse(db.Platform) if err != nil { log.Println("Members:", sym.Name, "::", s.Declaration) panic(err) @@ -181,6 +183,12 @@ func (db *Generator) Members(fw string, sym Symbol, covariantTypes []string) (pr if ptyp == nil { log.Fatalf("Method param type failure: owner=%s arg=%s type=%s methoddecl=%s", sym.Name, arg.Name, arg.Type.Name, s.Declaration) } + if ptrtyp, ok := ptyp.(*typing.PointerType); ok { + if ptrtyp.Type == nil { + log.Println("using NSObject in place of missing type:", arg.Type.Name) + ptyp = typing.Object + } + } param := &codegen.Param{ Name: arg.Name, Type: ptyp, diff --git a/generate/modules/modules.go b/generate/modules/modules.go index 487d5a83..9a85ca72 100644 --- a/generate/modules/modules.go +++ b/generate/modules/modules.go @@ -119,7 +119,6 @@ var All = []Module{ {"UIKit", "UIKit", "uikit", "UIKit/UIKit.h", []string{"NS"}}, {"UniformTypeIdentifiers", "Uniform Type Identifiers", "uti", "UniformTypeIdentifiers/UniformTypeIdentifiers.h", []string{"UT"}}, {"WebKit", "WebKit", "webkit", "WebKit/WebKit.h", []string{"WK"}}, - {"MediaPlayer", "Media Player", "mediaplayer", "MediaPlayer/MediaPlayer.h", []string{"MP"}}, {"FileProvider", "File Provider", "fileprovider", "FileProvider/FileProvider.h", []string{"NS"}}, {"Quartz", "Quartz", "quartz", "Quartz/Quartz.h", []string{"IK", "kQC", "kQuartz", "QC", "IK_"}}, {"SecurityInterface", "Security Interface", "securityinterface", "SecurityInterface/SecurityInterface.h", []string{"SF"}}, @@ -158,4 +157,5 @@ var All = []Module{ {"MetalPerformanceShadersGraph", "Metal Performance Shaders Graph", "mpsgraph", "MetalPerformanceShadersGraph/MetalPerformanceShadersGraph.h", []string{"MPSGraph"}}, {"MetalPerformanceShaders", "Metal Performance Shaders", "mps", "MetalPerformanceShaders/MetalPerformanceShaders.h", []string{"MPS"}}, {"SystemConfiguration", "System Configuration", "sysconfig", "SystemConfiguration/SystemConfiguration.h", []string{"SC", "kSC"}}, + {"MediaPlayer", "Media Player", "mediaplayer", "MediaPlayer/MediaPlayer.h", []string{"MP"}}, } diff --git a/generate/protocol.go b/generate/protocol.go index 15aab9f3..1b62e05b 100644 --- a/generate/protocol.go +++ b/generate/protocol.go @@ -13,7 +13,7 @@ func (db *Generator) ToProtocolGen(fw string, sym Symbol) *codegen.Protocol { if db.genCache == nil { db.genCache = make(map[string]codegen.CodeGen) } - key := fmt.Sprintf("%s.%s", fw, sym.Name) + key := fmt.Sprintf("%s.P%s", fw, sym.Name) cg, ok := db.genCache[key] if ok { if pcg, ok := cg.Copy().(*codegen.Protocol); ok { @@ -34,8 +34,8 @@ func (db *Generator) ToProtocolGen(fw string, sym Symbol) *codegen.Protocol { Type: type_, } - // symbolsdb doesnt have protocol superclasses yet, - // so these are known ones for appkit for now + // symbolsdb should have protocol superclasses now via inheritsFrom, + // but these are known ones for appkit for now knownSupers := map[string]string{ "NSComboBoxDelegate": "NSTextFieldDelegate", "NSMatrixDelegate": "NSControlTextEditingDelegate", diff --git a/generate/symbols.go b/generate/symbols.go index a3c598b9..43c0222e 100644 --- a/generate/symbols.go +++ b/generate/symbols.go @@ -37,20 +37,27 @@ var blacklist = []string{ "WebView", // gets picked up instead of WKWebView } +var pathBlacklist = []string{ + "foundation/nshashtable/legacy_hash_table_implementation/nshashtable", // found instead of NSHashTable class + "foundation/nsmaptable/legacy_map_table_implementation/nsmaptable", // same +} + type Symbol struct { Name string Path string Kind string - Description string - Type string - Parent string - Modules []string - Platforms []Platform - Declaration string - Parameters []Parameter - Return string - Deprecated bool + Description string + Type string + Parent string + Modules []string + Platforms []Platform + Declaration string + Declarations map[string]string + Parameters []Parameter + Return string + Deprecated bool + InheritedFrom string } type Platform struct { @@ -125,8 +132,12 @@ func (s Symbol) HasPlatform(name string, version int, deprecated bool) bool { return false } -func (s Symbol) Parse() (*declparse.Statement, error) { - p := declparse.NewStringParser(s.Declaration) +func (s Symbol) Parse(platform string) (*declparse.Statement, error) { + decl := s.Declaration + if decl == "" && len(s.Declarations) > 0 { + decl = s.Declarations[platform] + } + p := declparse.NewStringParser(decl) switch s.Kind { case "Constant", "Property": p.Hint = declparse.HintVariable @@ -177,6 +188,9 @@ func (db *SymbolCache) loadFrom(file *zip.File) (v Symbol, err error) { if strIn(blacklist, v.Name) { return v, fmt.Errorf("blacklisted symbol: %s", v.Name) } + if strIn(pathBlacklist, v.Path) { + return v, fmt.Errorf("blacklisted path: %s", v.Path) + } if v.Kind != "Property" && v.Kind != "Method" && v.Kind != "Framework" { db.cache[v.Name] = v } diff --git a/generate/types.go b/generate/types.go index 66e967a9..e97a52b2 100644 --- a/generate/types.go +++ b/generate/types.go @@ -40,7 +40,7 @@ func (db *Generator) TypeFromSymbol(sym Symbol) typing.Type { Module: modules.Get(module), } case "Enum": - st, err := sym.Parse() + st, err := sym.Parse(db.Platform) if err != nil || st.Enum == nil { fmt.Printf("TypeFromSymbol: name=%s declaration=%s\n", sym.Name, sym.Declaration) log.Panicf("invalid enum decl. %s", err) @@ -58,7 +58,7 @@ func (db *Generator) TypeFromSymbol(sym Symbol) typing.Type { } case "Type": if sym.Type != "Type Alias" { - fmt.Printf("TypeFromSymbol: name=%s declaration=%s\n", sym.Name, sym.Declaration) + fmt.Printf("TypeFromSymbol: name=%s declaration=%s path=%s\n", sym.Name, sym.Declaration, sym.Path) panic("unknown type") } if (strings.HasSuffix(sym.Name, "Ref") && strings.Contains(sym.Declaration, "struct")) || @@ -69,9 +69,9 @@ func (db *Generator) TypeFromSymbol(sym Symbol) typing.Type { Name: sym.Name, } } - st, err := sym.Parse() + st, err := sym.Parse(db.Platform) if err != nil { - fmt.Printf("TypeFromSymbol: name=%s declaration=%s\n", sym.Name, sym.Declaration) + fmt.Printf("TypeFromSymbol: name=%s declaration=%s path=%s\n", sym.Name, sym.Declaration, sym.Path) panic("bad declaration") } if st.Struct != nil { @@ -80,12 +80,12 @@ func (db *Generator) TypeFromSymbol(sym Symbol) typing.Type { } } if st.TypeAlias == nil { - fmt.Printf("TypeFromSymbol: name=%s declaration=%s\n", sym.Name, sym.Declaration) + fmt.Printf("TypeFromSymbol: name=%s declaration=%s path=%s\n", sym.Name, sym.Declaration, sym.Path) panic("bad type alias") } typ := db.ParseType(*st.TypeAlias) if typ == nil { - fmt.Printf("TypeFromSymbol: name=%s declaration=%s\n", sym.Name, sym.Declaration) + fmt.Printf("TypeFromSymbol: name=%s declaration=%s path=%s\n", sym.Name, sym.Declaration, sym.Path) panic("unable to parse type") } return &typing.AliasType{ @@ -142,7 +142,7 @@ func (db *Generator) ParseType(ti declparse.TypeInfo) (typ typing.Type) { typ = &typing.InstanceType{} case "id": typ = &typing.IDType{} - if len(ti.Params) > 0 { + if len(ti.Params) > 0 && ti.Params[0].Name != "NSObject" { idtype := db.FindTypeSymbol(ti.Params[0].Name) if idtype != nil { ptyp, ok := db.TypeFromSymbol(*idtype).(*typing.ProtocolType) @@ -194,6 +194,10 @@ func (db *Generator) ParseType(ti declparse.TypeInfo) (typ typing.Type) { dt.ValueType = typing.Object } ref = true + case "NSObject": + // force possible NSObject protocol to be NSObject class + typ = typing.Object + ref = true default: var ok bool typ, ok = typing.GetPrimitiveType(ti.Name) diff --git a/generate/typing/primitive_type.go b/generate/typing/primitive_type.go index b94b0231..087a718a 100644 --- a/generate/typing/primitive_type.go +++ b/generate/typing/primitive_type.go @@ -51,6 +51,8 @@ func init() { primitiveMap["UInt16"] = UInt16 primitiveMap["UInt32"] = UInt32 primitiveMap["UInt64"] = UInt64 + + primitiveMap["Float32"] = Float } func GetPrimitiveType(typeName string) (*PrimitiveType, bool) { diff --git a/generate/typing/protocol_type.go b/generate/typing/protocol_type.go index bf411698..fb0adaf2 100644 --- a/generate/typing/protocol_type.go +++ b/generate/typing/protocol_type.go @@ -34,12 +34,10 @@ func (p *ProtocolType) DeclareModule() *modules.Module { return p.Module } -// GoInterfaceName return the go wrapper interface name func (p *ProtocolType) GoInterfaceName() string { return "P" + p.GName } -// GoStructName return the go wrapper struct name func (p *ProtocolType) GoStructName() string { return p.GName } @@ -48,5 +46,5 @@ func (p *ProtocolType) GoWrapperName() string { if p.GName == "Object" { return p.GName } - return p.GName + "Wrapper" + return p.GName + "Object" } diff --git a/generate/utils.go b/generate/utils.go index 6a3aaa77..d2488769 100644 --- a/generate/utils.go +++ b/generate/utils.go @@ -1,7 +1,6 @@ package generate import ( - "bufio" "fmt" "go/ast" "go/parser" @@ -12,21 +11,13 @@ import ( "os/exec" "path/filepath" "strings" - - "github.com/progrium/macdriver/generate/codegen" ) func RemoveGeneratedCode(dir string) { filepath.WalkDir(dir, func(path string, d fs.DirEntry, err error) error { if d.Type().IsRegular() { - f, _ := os.Open(path) - defer f.Close() - scanner := bufio.NewScanner(f) - if scanner.Scan() { - line := strings.TrimSpace(scanner.Text()) - if line == strings.TrimSpace(codegen.AutoGeneratedMark) { - os.Remove(path) - } + if strings.Contains(path, ".gen.") { + os.Remove(path) } } return err diff --git a/macos/appkit/accessibility_button.gen.go b/macos/appkit/accessibility_button_protocol.gen.go similarity index 69% rename from macos/appkit/accessibility_button.gen.go rename to macos/appkit/accessibility_button_protocol.gen.go index da76bc50..041a657e 100644 --- a/macos/appkit/accessibility_button.gen.go +++ b/macos/appkit/accessibility_button_protocol.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package appkit @@ -10,40 +10,43 @@ import ( // // [Full Topic]: https://developer.apple.com/documentation/appkit/nsaccessibilitybutton?language=objc type PAccessibilityButton interface { - // optional - AccessibilityLabel() string - HasAccessibilityLabel() bool - // optional AccessibilityPerformPress() bool HasAccessibilityPerformPress() bool + + // optional + AccessibilityLabel() string + HasAccessibilityLabel() bool } -// A concrete type wrapper for the [PAccessibilityButton] protocol. -type AccessibilityButtonWrapper struct { +// ensure impl type implements protocol interface +var _ PAccessibilityButton = (*AccessibilityButtonObject)(nil) + +// A concrete type for the [PAccessibilityButton] protocol. +type AccessibilityButtonObject struct { objc.Object } -func (a_ AccessibilityButtonWrapper) HasAccessibilityLabel() bool { - return a_.RespondsToSelector(objc.Sel("accessibilityLabel")) +func (a_ AccessibilityButtonObject) HasAccessibilityPerformPress() bool { + return a_.RespondsToSelector(objc.Sel("accessibilityPerformPress")) } -// Returns a short description of the button. [Full Topic] +// Simulates clicking the button. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsaccessibilitybutton/1524910-accessibilitylabel?language=objc -func (a_ AccessibilityButtonWrapper) AccessibilityLabel() string { - rv := objc.Call[string](a_, objc.Sel("accessibilityLabel")) +// [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_ AccessibilityButtonWrapper) HasAccessibilityPerformPress() bool { - return a_.RespondsToSelector(objc.Sel("accessibilityPerformPress")) +func (a_ AccessibilityButtonObject) HasAccessibilityLabel() bool { + return a_.RespondsToSelector(objc.Sel("accessibilityLabel")) } -// Simulates clicking the button. [Full Topic] +// Returns a short description of the button. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsaccessibilitybutton/1525542-accessibilityperformpress?language=objc -func (a_ AccessibilityButtonWrapper) AccessibilityPerformPress() bool { - rv := objc.Call[bool](a_, objc.Sel("accessibilityPerformPress")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsaccessibilitybutton/1524910-accessibilitylabel?language=objc +func (a_ AccessibilityButtonObject) AccessibilityLabel() string { + rv := objc.Call[string](a_, objc.Sel("accessibilityLabel")) return rv } diff --git a/macos/appkit/accessibility_check_box.gen.go b/macos/appkit/accessibility_check_box_protocol.gen.go similarity index 63% rename from macos/appkit/accessibility_check_box.gen.go rename to macos/appkit/accessibility_check_box_protocol.gen.go index 02f6151b..ab937f2d 100644 --- a/macos/appkit/accessibility_check_box.gen.go +++ b/macos/appkit/accessibility_check_box_protocol.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package appkit @@ -12,23 +12,26 @@ import ( // [Full Topic]: https://developer.apple.com/documentation/appkit/nsaccessibilitycheckbox?language=objc type PAccessibilityCheckBox interface { // optional - AccessibilityValue() foundation.INumber + AccessibilityValue() foundation.Number HasAccessibilityValue() bool } -// A concrete type wrapper for the [PAccessibilityCheckBox] protocol. -type AccessibilityCheckBoxWrapper struct { +// ensure impl type implements protocol interface +var _ PAccessibilityCheckBox = (*AccessibilityCheckBoxObject)(nil) + +// A concrete type for the [PAccessibilityCheckBox] protocol. +type AccessibilityCheckBoxObject struct { objc.Object } -func (a_ AccessibilityCheckBoxWrapper) HasAccessibilityValue() bool { +func (a_ AccessibilityCheckBoxObject) HasAccessibilityValue() bool { return a_.RespondsToSelector(objc.Sel("accessibilityValue")) } // Returns the checkbox’s value. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/appkit/nsaccessibilitycheckbox/1524299-accessibilityvalue?language=objc -func (a_ AccessibilityCheckBoxWrapper) AccessibilityValue() foundation.Number { +func (a_ AccessibilityCheckBoxObject) AccessibilityValue() foundation.Number { rv := objc.Call[foundation.Number](a_, objc.Sel("accessibilityValue")) return rv } diff --git a/macos/appkit/accessibility_contains_transient_ui.gen.go b/macos/appkit/accessibility_contains_transient_ui_protocol.gen.go similarity index 69% rename from macos/appkit/accessibility_contains_transient_ui.gen.go rename to macos/appkit/accessibility_contains_transient_ui_protocol.gen.go index 3e8f327e..6103b4a4 100644 --- a/macos/appkit/accessibility_contains_transient_ui.gen.go +++ b/macos/appkit/accessibility_contains_transient_ui_protocol.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package appkit @@ -10,6 +10,10 @@ 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 @@ -17,49 +21,48 @@ type PAccessibilityContainsTransientUI interface { // optional AccessibilityPerformShowAlternateUI() bool HasAccessibilityPerformShowAlternateUI() bool - - // optional - IsAccessibilityAlternateUIVisible() bool - HasIsAccessibilityAlternateUIVisible() bool } -// A concrete type wrapper for the [PAccessibilityContainsTransientUI] protocol. -type AccessibilityContainsTransientUIWrapper struct { +// ensure impl type implements protocol interface +var _ PAccessibilityContainsTransientUI = (*AccessibilityContainsTransientUIObject)(nil) + +// A concrete type for the [PAccessibilityContainsTransientUI] protocol. +type AccessibilityContainsTransientUIObject struct { objc.Object } -func (a_ AccessibilityContainsTransientUIWrapper) HasAccessibilityPerformShowDefaultUI() bool { +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")) } // Returns to the accessibility element’s original UI. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/appkit/nsaccessibilitycontainstransientui/1529235-accessibilityperformshowdefaultu?language=objc -func (a_ AccessibilityContainsTransientUIWrapper) AccessibilityPerformShowDefaultUI() bool { +func (a_ AccessibilityContainsTransientUIObject) AccessibilityPerformShowDefaultUI() bool { rv := objc.Call[bool](a_, objc.Sel("accessibilityPerformShowDefaultUI")) return rv } -func (a_ AccessibilityContainsTransientUIWrapper) HasAccessibilityPerformShowAlternateUI() bool { +func (a_ AccessibilityContainsTransientUIObject) HasAccessibilityPerformShowAlternateUI() bool { return a_.RespondsToSelector(objc.Sel("accessibilityPerformShowAlternateUI")) } // Displays the accessibility element’s alternative UI. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/appkit/nsaccessibilitycontainstransientui/1535134-accessibilityperformshowalternat?language=objc -func (a_ AccessibilityContainsTransientUIWrapper) AccessibilityPerformShowAlternateUI() bool { +func (a_ AccessibilityContainsTransientUIObject) AccessibilityPerformShowAlternateUI() bool { rv := objc.Call[bool](a_, objc.Sel("accessibilityPerformShowAlternateUI")) return rv } - -func (a_ AccessibilityContainsTransientUIWrapper) 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_ AccessibilityContainsTransientUIWrapper) 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 d359424c..2f8154a9 100644 --- a/macos/appkit/accessibility_custom_action.gen.go +++ b/macos/appkit/accessibility_custom_action.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package appkit @@ -20,10 +20,10 @@ type IAccessibilityCustomAction interface { objc.IObject Target() objc.Object SetTarget(value objc.IObject) - Name() string - SetName(value string) Selector() objc.Selector SetSelector(value objc.Selector) + Name() string + SetName(value string) Handler() func() bool SetHandler(value func() bool) } @@ -55,13 +55,23 @@ func NewAccessibilityCustomActionWithNameHandler(name string, handler func() boo return instance } -func (ac _AccessibilityCustomActionClass) Alloc() AccessibilityCustomAction { - rv := objc.Call[AccessibilityCustomAction](ac, objc.Sel("alloc")) +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 } -func AccessibilityCustomAction_Alloc() AccessibilityCustomAction { - return AccessibilityCustomActionClass.Alloc() +// 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 } func (ac _AccessibilityCustomActionClass) New() AccessibilityCustomAction { @@ -94,21 +104,6 @@ func (a_ AccessibilityCustomAction) SetTarget(value objc.IObject) { objc.Call[objc.Void](a_, objc.Sel("setTarget:"), value) } -// A localized name that describes the action. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsaccessibilitycustomaction/2870118-name?language=objc -func (a_ AccessibilityCustomAction) Name() string { - rv := objc.Call[string](a_, objc.Sel("name")) - return rv -} - -// A localized name that describes the action. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsaccessibilitycustomaction/2870118-name?language=objc -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 @@ -124,6 +119,21 @@ 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 +func (a_ AccessibilityCustomAction) Name() string { + rv := objc.Call[string](a_, objc.Sel("name")) + return rv +} + +// A localized name that describes the action. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsaccessibilitycustomaction/2870118-name?language=objc +func (a_ AccessibilityCustomAction) SetName(value string) { + objc.Call[objc.Void](a_, objc.Sel("setName:"), 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 1cb8ab9f..723589b4 100644 --- a/macos/appkit/accessibility_custom_rotor.gen.go +++ b/macos/appkit/accessibility_custom_rotor.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package appkit @@ -18,16 +18,16 @@ type _AccessibilityCustomRotorClass struct { // An interface definition for the [AccessibilityCustomRotor] class. type IAccessibilityCustomRotor interface { objc.IObject - ItemSearchDelegate() AccessibilityCustomRotorItemSearchDelegateWrapper + ItemSearchDelegate() AccessibilityCustomRotorItemSearchDelegateObject SetItemSearchDelegate(value PAccessibilityCustomRotorItemSearchDelegate) SetItemSearchDelegateObject(valueObject objc.IObject) - ItemLoadingDelegate() AccessibilityElementLoadingWrapper + 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] @@ -78,10 +78,6 @@ func (ac _AccessibilityCustomRotorClass) Alloc() AccessibilityCustomRotor { return rv } -func AccessibilityCustomRotor_Alloc() AccessibilityCustomRotor { - return AccessibilityCustomRotorClass.Alloc() -} - func (ac _AccessibilityCustomRotorClass) New() AccessibilityCustomRotor { rv := objc.Call[AccessibilityCustomRotor](ac, objc.Sel("new")) rv.Autorelease() @@ -100,8 +96,8 @@ func (a_ AccessibilityCustomRotor) Init() AccessibilityCustomRotor { // The delegate for finding the next item result. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/appkit/nsaccessibilitycustomrotor/2876307-itemsearchdelegate?language=objc -func (a_ AccessibilityCustomRotor) ItemSearchDelegate() AccessibilityCustomRotorItemSearchDelegateWrapper { - rv := objc.Call[AccessibilityCustomRotorItemSearchDelegateWrapper](a_, objc.Sel("itemSearchDelegate")) +func (a_ AccessibilityCustomRotor) ItemSearchDelegate() AccessibilityCustomRotorItemSearchDelegateObject { + rv := objc.Call[AccessibilityCustomRotorItemSearchDelegateObject](a_, objc.Sel("itemSearchDelegate")) return rv } @@ -121,11 +117,26 @@ func (a_ AccessibilityCustomRotor) SetItemSearchDelegateObject(valueObject objc. objc.Call[objc.Void](a_, objc.Sel("setItemSearchDelegate:"), objc.Ptr(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 -func (a_ AccessibilityCustomRotor) ItemLoadingDelegate() AccessibilityElementLoadingWrapper { - rv := objc.Call[AccessibilityElementLoadingWrapper](a_, objc.Sel("itemLoadingDelegate")) +func (a_ AccessibilityCustomRotor) ItemLoadingDelegate() AccessibilityElementLoadingObject { + rv := objc.Call[AccessibilityElementLoadingObject](a_, objc.Sel("itemLoadingDelegate")) return rv } @@ -159,18 +170,3 @@ 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 acc203f7..2e5d38f2 100644 --- a/macos/appkit/accessibility_custom_rotor_item_result.gen.go +++ b/macos/appkit/accessibility_custom_rotor_item_result.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package appkit @@ -19,12 +19,12 @@ type _AccessibilityCustomRotorItemResultClass struct { // An interface definition for the [AccessibilityCustomRotorItemResult] class. type IAccessibilityCustomRotorItemResult interface { objc.IObject - TargetElement() objc.Object + CustomLabel() string + SetCustomLabel(value string) + TargetElement() AccessibilityElementObject 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,30 +40,31 @@ func AccessibilityCustomRotorItemResultFrom(ptr unsafe.Pointer) AccessibilityCus } } -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 PAccessibilityElement) AccessibilityCustomRotorItemResult { + po0 := objc.WrapAsProtocol("NSAccessibilityElement", targetElement) + rv := objc.Call[AccessibilityCustomRotorItemResult](a_, objc.Sel("initWithTargetElement:"), po0) 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 PAccessibilityElement) AccessibilityCustomRotorItemResult { + instance := AccessibilityCustomRotorItemResultClass.Alloc().InitWithTargetElement(targetElement) instance.Autorelease() return instance } -func (a_ AccessibilityCustomRotorItemResult) InitWithTargetElement(targetElement objc.IObject) AccessibilityCustomRotorItemResult { - rv := objc.Call[AccessibilityCustomRotorItemResult](a_, objc.Sel("initWithTargetElement:"), targetElement) +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 objc.IObject) 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 } @@ -73,10 +74,6 @@ func (ac _AccessibilityCustomRotorItemResultClass) Alloc() AccessibilityCustomRo return rv } -func AccessibilityCustomRotorItemResult_Alloc() AccessibilityCustomRotorItemResult { - return AccessibilityCustomRotorItemResultClass.Alloc() -} - func (ac _AccessibilityCustomRotorItemResultClass) New() AccessibilityCustomRotorItemResult { rv := objc.Call[AccessibilityCustomRotorItemResult](ac, objc.Sel("new")) rv.Autorelease() @@ -92,11 +89,26 @@ 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() objc.Object { - rv := objc.Call[objc.Object](a_, objc.Sel("targetElement")) +func (a_ AccessibilityCustomRotorItemResult) TargetElement() AccessibilityElementObject { + rv := objc.Call[AccessibilityElementObject](a_, objc.Sel("targetElement")) return rv } @@ -122,18 +134,3 @@ 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_item_search_delegate.gen.go b/macos/appkit/accessibility_custom_rotor_item_search_delegate.gen.go index 3cb752c7..e481a9d0 100644 --- a/macos/appkit/accessibility_custom_rotor_item_search_delegate.gen.go +++ b/macos/appkit/accessibility_custom_rotor_item_search_delegate.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package appkit @@ -11,13 +11,13 @@ import ( // [Full Topic]: https://developer.apple.com/documentation/appkit/nsaccessibilitycustomrotoritemsearchdelegate?language=objc type PAccessibilityCustomRotorItemSearchDelegate interface { // optional - RotorResultForSearchParameters(rotor AccessibilityCustomRotor, searchParameters AccessibilityCustomRotorSearchParameters) IAccessibilityCustomRotorItemResult + RotorResultForSearchParameters(rotor AccessibilityCustomRotor, searchParameters AccessibilityCustomRotorSearchParameters) AccessibilityCustomRotorItemResult HasRotorResultForSearchParameters() bool } // A delegate implementation builder for the [PAccessibilityCustomRotorItemSearchDelegate] protocol. type AccessibilityCustomRotorItemSearchDelegate struct { - _RotorResultForSearchParameters func(rotor AccessibilityCustomRotor, searchParameters AccessibilityCustomRotorSearchParameters) IAccessibilityCustomRotorItemResult + _RotorResultForSearchParameters func(rotor AccessibilityCustomRotor, searchParameters AccessibilityCustomRotorSearchParameters) AccessibilityCustomRotorItemResult } func (di *AccessibilityCustomRotorItemSearchDelegate) HasRotorResultForSearchParameters() bool { @@ -27,30 +27,33 @@ func (di *AccessibilityCustomRotorItemSearchDelegate) HasRotorResultForSearchPar // Performs a search with the specified search parameters and returns the item result. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/appkit/nsaccessibilitycustomrotoritemsearchdelegate/2876324-rotor?language=objc -func (di *AccessibilityCustomRotorItemSearchDelegate) SetRotorResultForSearchParameters(f func(rotor AccessibilityCustomRotor, searchParameters AccessibilityCustomRotorSearchParameters) IAccessibilityCustomRotorItemResult) { +func (di *AccessibilityCustomRotorItemSearchDelegate) SetRotorResultForSearchParameters(f func(rotor AccessibilityCustomRotor, searchParameters AccessibilityCustomRotorSearchParameters) AccessibilityCustomRotorItemResult) { di._RotorResultForSearchParameters = f } // Performs a search with the specified search parameters and returns the item result. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/appkit/nsaccessibilitycustomrotoritemsearchdelegate/2876324-rotor?language=objc -func (di *AccessibilityCustomRotorItemSearchDelegate) RotorResultForSearchParameters(rotor AccessibilityCustomRotor, searchParameters AccessibilityCustomRotorSearchParameters) IAccessibilityCustomRotorItemResult { +func (di *AccessibilityCustomRotorItemSearchDelegate) RotorResultForSearchParameters(rotor AccessibilityCustomRotor, searchParameters AccessibilityCustomRotorSearchParameters) AccessibilityCustomRotorItemResult { return di._RotorResultForSearchParameters(rotor, searchParameters) } -// A concrete type wrapper for the [PAccessibilityCustomRotorItemSearchDelegate] protocol. -type AccessibilityCustomRotorItemSearchDelegateWrapper struct { +// ensure impl type implements protocol interface +var _ PAccessibilityCustomRotorItemSearchDelegate = (*AccessibilityCustomRotorItemSearchDelegateObject)(nil) + +// A concrete type for the [PAccessibilityCustomRotorItemSearchDelegate] protocol. +type AccessibilityCustomRotorItemSearchDelegateObject struct { objc.Object } -func (a_ AccessibilityCustomRotorItemSearchDelegateWrapper) HasRotorResultForSearchParameters() bool { +func (a_ AccessibilityCustomRotorItemSearchDelegateObject) HasRotorResultForSearchParameters() bool { return a_.RespondsToSelector(objc.Sel("rotor:resultForSearchParameters:")) } // Performs a search with the specified search parameters and returns the item result. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/appkit/nsaccessibilitycustomrotoritemsearchdelegate/2876324-rotor?language=objc -func (a_ AccessibilityCustomRotorItemSearchDelegateWrapper) RotorResultForSearchParameters(rotor IAccessibilityCustomRotor, searchParameters IAccessibilityCustomRotorSearchParameters) AccessibilityCustomRotorItemResult { +func (a_ AccessibilityCustomRotorItemSearchDelegateObject) RotorResultForSearchParameters(rotor AccessibilityCustomRotor, searchParameters AccessibilityCustomRotorSearchParameters) AccessibilityCustomRotorItemResult { rv := objc.Call[AccessibilityCustomRotorItemResult](a_, objc.Sel("rotor:resultForSearchParameters:"), objc.Ptr(rotor), objc.Ptr(searchParameters)) return rv } diff --git a/macos/appkit/accessibility_custom_rotor_search_parameters.gen.go b/macos/appkit/accessibility_custom_rotor_search_parameters.gen.go index b6e6665a..dd6e3525 100644 --- a/macos/appkit/accessibility_custom_rotor_search_parameters.gen.go +++ b/macos/appkit/accessibility_custom_rotor_search_parameters.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package appkit @@ -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] @@ -44,10 +44,6 @@ func (ac _AccessibilityCustomRotorSearchParametersClass) Alloc() AccessibilityCu return rv } -func AccessibilityCustomRotorSearchParameters_Alloc() AccessibilityCustomRotorSearchParameters { - return AccessibilityCustomRotorSearchParametersClass.Alloc() -} - func (ac _AccessibilityCustomRotorSearchParametersClass) New() AccessibilityCustomRotorSearchParameters { rv := objc.Call[AccessibilityCustomRotorSearchParameters](ac, objc.Sel("new")) rv.Autorelease() @@ -63,6 +59,21 @@ 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 @@ -92,18 +103,3 @@ func (a_ AccessibilityCustomRotorSearchParameters) CurrentItem() AccessibilityCu func (a_ AccessibilityCustomRotorSearchParameters) SetCurrentItem(value IAccessibilityCustomRotorItemResult) { objc.Call[objc.Void](a_, objc.Sel("setCurrentItem:"), objc.Ptr(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 a8b58ee5..0a7fcff5 100644 --- a/macos/appkit/accessibility_element.gen.go +++ b/macos/appkit/accessibility_element.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package appkit @@ -19,11 +19,12 @@ type _AccessibilityElementClass struct { // An interface definition for the [AccessibilityElement] class. type IAccessibilityElement interface { objc.IObject - AccessibilityAddChildElement(childElement IAccessibilityElement) + AccessibilityIdentifier() string AccessibilityParent() objc.Object AccessibilityFrame() foundation.Rect IsAccessibilityFocused() bool - AccessibilityIdentifier() string + AccessibilityAddChildElement(childElement PAccessibilityElement) + AccessibilityAddChildElementObject(childElementObject objc.IObject) AccessibilityFrameInParentSpace() foundation.Rect SetAccessibilityFrameInParentSpace(value foundation.Rect) } @@ -46,10 +47,6 @@ func (ac _AccessibilityElementClass) Alloc() AccessibilityElement { return rv } -func AccessibilityElement_Alloc() AccessibilityElement { - return AccessibilityElementClass.Alloc() -} - func (ac _AccessibilityElementClass) New() AccessibilityElement { rv := objc.Call[AccessibilityElement](ac, objc.Sel("new")) rv.Autorelease() @@ -65,11 +62,12 @@ func (a_ AccessibilityElement) Init() AccessibilityElement { return rv } -// Adds a child to the accessibility element in the accessibility hierarchy. [Full Topic] +// Returns the accessibility element’s identity. [Full Topic] // -// [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:"), objc.Ptr(childElement)) +// [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 } // Returns the accessibility element’s parent in the accessibility hierarchy. [Full Topic] @@ -96,6 +94,21 @@ 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:"), objc.Ptr(childElementObject)) +} + // Instantiates and configures a new accessibility element. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/appkit/nsaccessibilityelement/1531178-accessibilityelementwithrole?language=objc @@ -111,14 +124,6 @@ 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.gen.go b/macos/appkit/accessibility_element_loading_protocol.gen.go similarity index 63% rename from macos/appkit/accessibility_element_loading.gen.go rename to macos/appkit/accessibility_element_loading_protocol.gen.go index ca43c47c..b7b077f8 100644 --- a/macos/appkit/accessibility_element_loading.gen.go +++ b/macos/appkit/accessibility_element_loading_protocol.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package appkit @@ -11,40 +11,43 @@ import ( // // [Full Topic]: https://developer.apple.com/documentation/appkit/nsaccessibilityelementloading?language=objc type PAccessibilityElementLoading interface { - // optional - AccessibilityElementWithToken(token AccessibilityLoadingToken) objc.IObject - HasAccessibilityElementWithToken() bool - // optional AccessibilityRangeInTargetElementWithToken(token AccessibilityLoadingToken) foundation.Range HasAccessibilityRangeInTargetElementWithToken() bool + + // optional + AccessibilityElementWithToken(token AccessibilityLoadingToken) AccessibilityElementObject + HasAccessibilityElementWithToken() bool } -// A concrete type wrapper for the [PAccessibilityElementLoading] protocol. -type AccessibilityElementLoadingWrapper struct { +// ensure impl type implements protocol interface +var _ PAccessibilityElementLoading = (*AccessibilityElementLoadingObject)(nil) + +// A concrete type for the [PAccessibilityElementLoading] protocol. +type AccessibilityElementLoadingObject struct { objc.Object } -func (a_ AccessibilityElementLoadingWrapper) 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_ AccessibilityElementLoadingWrapper) AccessibilityElementWithToken(token AccessibilityLoadingToken) objc.Object { - rv := objc.Call[objc.Object](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 } -func (a_ AccessibilityElementLoadingWrapper) 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_ AccessibilityElementLoadingWrapper) 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) AccessibilityElementObject { + rv := objc.Call[AccessibilityElementObject](a_, objc.Sel("accessibilityElementWithToken:"), token) return rv } diff --git a/macos/appkit/accessibility_element_protocol.gen.go b/macos/appkit/accessibility_element_protocol.gen.go new file mode 100644 index 00000000..461dff88 --- /dev/null +++ b/macos/appkit/accessibility_element_protocol.gen.go @@ -0,0 +1,132 @@ +// Code generated by DarwinKit. DO NOT EDIT. + +package appkit + +import ( + "github.com/progrium/macdriver/macos/foundation" + "github.com/progrium/macdriver/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_group.gen.go b/macos/appkit/accessibility_group_protocol.gen.go similarity index 59% rename from macos/appkit/accessibility_group.gen.go rename to macos/appkit/accessibility_group_protocol.gen.go index 9bb17acd..1b0da9ae 100644 --- a/macos/appkit/accessibility_group.gen.go +++ b/macos/appkit/accessibility_group_protocol.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package appkit @@ -12,7 +12,10 @@ import ( type PAccessibilityGroup interface { } -// A concrete type wrapper for the [PAccessibilityGroup] protocol. -type AccessibilityGroupWrapper struct { +// ensure impl type implements protocol interface +var _ PAccessibilityGroup = (*AccessibilityGroupObject)(nil) + +// A concrete type for the [PAccessibilityGroup] protocol. +type AccessibilityGroupObject struct { objc.Object } diff --git a/macos/appkit/accessibility_image.gen.go b/macos/appkit/accessibility_image_protocol.gen.go similarity index 66% rename from macos/appkit/accessibility_image.gen.go rename to macos/appkit/accessibility_image_protocol.gen.go index 1bd79359..f87064ed 100644 --- a/macos/appkit/accessibility_image.gen.go +++ b/macos/appkit/accessibility_image_protocol.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package appkit @@ -15,19 +15,22 @@ type PAccessibilityImage interface { HasAccessibilityLabel() bool } -// A concrete type wrapper for the [PAccessibilityImage] protocol. -type AccessibilityImageWrapper struct { +// ensure impl type implements protocol interface +var _ PAccessibilityImage = (*AccessibilityImageObject)(nil) + +// A concrete type for the [PAccessibilityImage] protocol. +type AccessibilityImageObject struct { objc.Object } -func (a_ AccessibilityImageWrapper) HasAccessibilityLabel() bool { +func (a_ AccessibilityImageObject) HasAccessibilityLabel() bool { return a_.RespondsToSelector(objc.Sel("accessibilityLabel")) } // Returns a short description of the image’s label. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/appkit/nsaccessibilityimage/1531608-accessibilitylabel?language=objc -func (a_ AccessibilityImageWrapper) AccessibilityLabel() string { +func (a_ AccessibilityImageObject) AccessibilityLabel() string { rv := objc.Call[string](a_, objc.Sel("accessibilityLabel")) return rv } diff --git a/macos/appkit/accessibility_layout_area.gen.go b/macos/appkit/accessibility_layout_area_protocol.gen.go similarity index 66% rename from macos/appkit/accessibility_layout_area.gen.go rename to macos/appkit/accessibility_layout_area_protocol.gen.go index 72c29691..b5d753cf 100644 --- a/macos/appkit/accessibility_layout_area.gen.go +++ b/macos/appkit/accessibility_layout_area_protocol.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package appkit @@ -11,71 +11,74 @@ import ( // [Full Topic]: https://developer.apple.com/documentation/appkit/nsaccessibilitylayoutarea?language=objc type PAccessibilityLayoutArea interface { // optional - AccessibilityChildren() []objc.IObject + AccessibilityChildren() []objc.Object HasAccessibilityChildren() bool // optional - AccessibilityLabel() string - HasAccessibilityLabel() bool + AccessibilitySelectedChildren() []objc.Object + HasAccessibilitySelectedChildren() bool // optional - AccessibilitySelectedChildren() []objc.IObject - HasAccessibilitySelectedChildren() bool + AccessibilityLabel() string + HasAccessibilityLabel() bool // optional - AccessibilityFocusedUIElement() objc.IObject + AccessibilityFocusedUIElement() objc.Object HasAccessibilityFocusedUIElement() bool } -// A concrete type wrapper for the [PAccessibilityLayoutArea] protocol. -type AccessibilityLayoutAreaWrapper struct { +// ensure impl type implements protocol interface +var _ PAccessibilityLayoutArea = (*AccessibilityLayoutAreaObject)(nil) + +// A concrete type for the [PAccessibilityLayoutArea] protocol. +type AccessibilityLayoutAreaObject struct { objc.Object } -func (a_ AccessibilityLayoutAreaWrapper) HasAccessibilityChildren() bool { +func (a_ AccessibilityLayoutAreaObject) HasAccessibilityChildren() bool { return a_.RespondsToSelector(objc.Sel("accessibilityChildren")) } // Returns the accessibility element’s children in the accessibility hierarchy. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/appkit/nsaccessibilitylayoutarea/1534997-accessibilitychildren?language=objc -func (a_ AccessibilityLayoutAreaWrapper) AccessibilityChildren() []objc.Object { +func (a_ AccessibilityLayoutAreaObject) AccessibilityChildren() []objc.Object { rv := objc.Call[[]objc.Object](a_, objc.Sel("accessibilityChildren")) return rv } -func (a_ AccessibilityLayoutAreaWrapper) HasAccessibilityLabel() bool { - return a_.RespondsToSelector(objc.Sel("accessibilityLabel")) +func (a_ AccessibilityLayoutAreaObject) HasAccessibilitySelectedChildren() bool { + return a_.RespondsToSelector(objc.Sel("accessibilitySelectedChildren")) } -// Returns a short description of the layout area. [Full Topic] +// Returns the layout area’s currently selected children. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsaccessibilitylayoutarea/1527051-accessibilitylabel?language=objc -func (a_ AccessibilityLayoutAreaWrapper) AccessibilityLabel() string { - rv := objc.Call[string](a_, objc.Sel("accessibilityLabel")) +// [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_ AccessibilityLayoutAreaWrapper) HasAccessibilitySelectedChildren() bool { - return a_.RespondsToSelector(objc.Sel("accessibilitySelectedChildren")) +func (a_ AccessibilityLayoutAreaObject) HasAccessibilityLabel() bool { + return a_.RespondsToSelector(objc.Sel("accessibilityLabel")) } -// Returns the layout area’s currently selected children. [Full Topic] +// Returns a short description of the layout area. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsaccessibilitylayoutarea/1528883-accessibilityselectedchildren?language=objc -func (a_ AccessibilityLayoutAreaWrapper) AccessibilitySelectedChildren() []objc.Object { - rv := objc.Call[[]objc.Object](a_, objc.Sel("accessibilitySelectedChildren")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsaccessibilitylayoutarea/1527051-accessibilitylabel?language=objc +func (a_ AccessibilityLayoutAreaObject) AccessibilityLabel() string { + rv := objc.Call[string](a_, objc.Sel("accessibilityLabel")) return rv } -func (a_ AccessibilityLayoutAreaWrapper) HasAccessibilityFocusedUIElement() bool { +func (a_ AccessibilityLayoutAreaObject) HasAccessibilityFocusedUIElement() bool { return a_.RespondsToSelector(objc.Sel("accessibilityFocusedUIElement")) } // The child accessibility element with the current focus. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/appkit/nsaccessibilitylayoutarea/1533902-accessibilityfocuseduielement?language=objc -func (a_ AccessibilityLayoutAreaWrapper) AccessibilityFocusedUIElement() objc.Object { +func (a_ AccessibilityLayoutAreaObject) AccessibilityFocusedUIElement() objc.Object { rv := objc.Call[objc.Object](a_, objc.Sel("accessibilityFocusedUIElement")) return rv } diff --git a/macos/appkit/accessibility_layout_item.gen.go b/macos/appkit/accessibility_layout_item_protocol.gen.go similarity index 66% rename from macos/appkit/accessibility_layout_item.gen.go rename to macos/appkit/accessibility_layout_item_protocol.gen.go index 6e85b031..1817baf0 100644 --- a/macos/appkit/accessibility_layout_item.gen.go +++ b/macos/appkit/accessibility_layout_item_protocol.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package appkit @@ -16,18 +16,21 @@ type PAccessibilityLayoutItem interface { HasSetAccessibilityFrame() bool } -// A concrete type wrapper for the [PAccessibilityLayoutItem] protocol. -type AccessibilityLayoutItemWrapper struct { +// ensure impl type implements protocol interface +var _ PAccessibilityLayoutItem = (*AccessibilityLayoutItemObject)(nil) + +// A concrete type for the [PAccessibilityLayoutItem] protocol. +type AccessibilityLayoutItemObject struct { objc.Object } -func (a_ AccessibilityLayoutItemWrapper) HasSetAccessibilityFrame() bool { +func (a_ AccessibilityLayoutItemObject) HasSetAccessibilityFrame() bool { return a_.RespondsToSelector(objc.Sel("setAccessibilityFrame:")) } // Sets the accessibility element’s frame. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/appkit/nsaccessibilitylayoutitem/1533160-setaccessibilityframe?language=objc -func (a_ AccessibilityLayoutItemWrapper) SetAccessibilityFrame(frame foundation.Rect) { +func (a_ AccessibilityLayoutItemObject) SetAccessibilityFrame(frame foundation.Rect) { objc.Call[objc.Void](a_, objc.Sel("setAccessibilityFrame:"), frame) } diff --git a/macos/appkit/accessibility_list.gen.go b/macos/appkit/accessibility_list_protocol.gen.go similarity index 58% rename from macos/appkit/accessibility_list.gen.go rename to macos/appkit/accessibility_list_protocol.gen.go index 3c4550f5..2de93124 100644 --- a/macos/appkit/accessibility_list.gen.go +++ b/macos/appkit/accessibility_list_protocol.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package appkit @@ -12,7 +12,10 @@ import ( type PAccessibilityList interface { } -// A concrete type wrapper for the [PAccessibilityList] protocol. -type AccessibilityListWrapper struct { +// ensure impl type implements protocol interface +var _ PAccessibilityList = (*AccessibilityListObject)(nil) + +// A concrete type for the [PAccessibilityList] protocol. +type AccessibilityListObject struct { objc.Object } diff --git a/macos/appkit/accessibility_navigable_static_text.gen.go b/macos/appkit/accessibility_navigable_static_text_protocol.gen.go similarity index 69% rename from macos/appkit/accessibility_navigable_static_text.gen.go rename to macos/appkit/accessibility_navigable_static_text_protocol.gen.go index ea5a3c7b..ec6dd3c2 100644 --- a/macos/appkit/accessibility_navigable_static_text.gen.go +++ b/macos/appkit/accessibility_navigable_static_text_protocol.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package appkit @@ -15,10 +15,6 @@ 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 @@ -26,57 +22,64 @@ type PAccessibilityNavigableStaticText interface { // optional AccessibilityStringForRange(range_ foundation.Range) string HasAccessibilityStringForRange() bool + + // optional + AccessibilityRangeForLine(lineNumber int) foundation.Range + HasAccessibilityRangeForLine() bool } -// A concrete type wrapper for the [PAccessibilityNavigableStaticText] protocol. -type AccessibilityNavigableStaticTextWrapper struct { +// ensure impl type implements protocol interface +var _ PAccessibilityNavigableStaticText = (*AccessibilityNavigableStaticTextObject)(nil) + +// A concrete type for the [PAccessibilityNavigableStaticText] protocol. +type AccessibilityNavigableStaticTextObject struct { objc.Object } -func (a_ AccessibilityNavigableStaticTextWrapper) HasAccessibilityFrameForRange() bool { +func (a_ AccessibilityNavigableStaticTextObject) HasAccessibilityFrameForRange() bool { return a_.RespondsToSelector(objc.Sel("accessibilityFrameForRange:")) } // Returns the rectangle that encloses the specified range of characters. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/appkit/nsaccessibilitynavigablestatictext/1524702-accessibilityframeforrange?language=objc -func (a_ AccessibilityNavigableStaticTextWrapper) AccessibilityFrameForRange(range_ foundation.Range) foundation.Rect { +func (a_ AccessibilityNavigableStaticTextObject) AccessibilityFrameForRange(range_ foundation.Range) foundation.Rect { rv := objc.Call[foundation.Rect](a_, objc.Sel("accessibilityFrameForRange:"), range_) return rv } -func (a_ AccessibilityNavigableStaticTextWrapper) 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_ AccessibilityNavigableStaticTextWrapper) AccessibilityRangeForLine(lineNumber int) foundation.Range { - rv := objc.Call[foundation.Range](a_, objc.Sel("accessibilityRangeForLine:"), lineNumber) - return rv -} - -func (a_ AccessibilityNavigableStaticTextWrapper) HasAccessibilityLineForIndex() bool { +func (a_ AccessibilityNavigableStaticTextObject) HasAccessibilityLineForIndex() bool { return a_.RespondsToSelector(objc.Sel("accessibilityLineForIndex:")) } // Returns the line number for the line that contains the specified character index. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/appkit/nsaccessibilitynavigablestatictext/1534931-accessibilitylineforindex?language=objc -func (a_ AccessibilityNavigableStaticTextWrapper) AccessibilityLineForIndex(index int) int { +func (a_ AccessibilityNavigableStaticTextObject) AccessibilityLineForIndex(index int) int { rv := objc.Call[int](a_, objc.Sel("accessibilityLineForIndex:"), index) return rv } -func (a_ AccessibilityNavigableStaticTextWrapper) HasAccessibilityStringForRange() bool { +func (a_ AccessibilityNavigableStaticTextObject) HasAccessibilityStringForRange() bool { return a_.RespondsToSelector(objc.Sel("accessibilityStringForRange:")) } // Returns the substring for the specified range. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/appkit/nsaccessibilitynavigablestatictext/1525402-accessibilitystringforrange?language=objc -func (a_ AccessibilityNavigableStaticTextWrapper) AccessibilityStringForRange(range_ foundation.Range) string { +func (a_ AccessibilityNavigableStaticTextObject) AccessibilityStringForRange(range_ foundation.Range) string { 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_outline.gen.go b/macos/appkit/accessibility_outline_protocol.gen.go similarity index 58% rename from macos/appkit/accessibility_outline.gen.go rename to macos/appkit/accessibility_outline_protocol.gen.go index 8d8692bc..5bbb2009 100644 --- a/macos/appkit/accessibility_outline.gen.go +++ b/macos/appkit/accessibility_outline_protocol.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package appkit @@ -12,7 +12,10 @@ import ( type PAccessibilityOutline interface { } -// A concrete type wrapper for the [PAccessibilityOutline] protocol. -type AccessibilityOutlineWrapper struct { +// ensure impl type implements protocol interface +var _ PAccessibilityOutline = (*AccessibilityOutlineObject)(nil) + +// A concrete type for the [PAccessibilityOutline] protocol. +type AccessibilityOutlineObject struct { objc.Object } diff --git a/macos/appkit/accessibility_progress_indicator.gen.go b/macos/appkit/accessibility_progress_indicator_protocol.gen.go similarity index 62% rename from macos/appkit/accessibility_progress_indicator.gen.go rename to macos/appkit/accessibility_progress_indicator_protocol.gen.go index aaa75f71..de83652b 100644 --- a/macos/appkit/accessibility_progress_indicator.gen.go +++ b/macos/appkit/accessibility_progress_indicator_protocol.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package appkit @@ -12,23 +12,26 @@ import ( // [Full Topic]: https://developer.apple.com/documentation/appkit/nsaccessibilityprogressindicator?language=objc type PAccessibilityProgressIndicator interface { // optional - AccessibilityValue() foundation.INumber + AccessibilityValue() foundation.Number HasAccessibilityValue() bool } -// A concrete type wrapper for the [PAccessibilityProgressIndicator] protocol. -type AccessibilityProgressIndicatorWrapper struct { +// ensure impl type implements protocol interface +var _ PAccessibilityProgressIndicator = (*AccessibilityProgressIndicatorObject)(nil) + +// A concrete type for the [PAccessibilityProgressIndicator] protocol. +type AccessibilityProgressIndicatorObject struct { objc.Object } -func (a_ AccessibilityProgressIndicatorWrapper) HasAccessibilityValue() bool { +func (a_ AccessibilityProgressIndicatorObject) HasAccessibilityValue() bool { return a_.RespondsToSelector(objc.Sel("accessibilityValue")) } // Returns the progress indicator’s value. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/appkit/nsaccessibilityprogressindicator/1531500-accessibilityvalue?language=objc -func (a_ AccessibilityProgressIndicatorWrapper) AccessibilityValue() foundation.Number { +func (a_ AccessibilityProgressIndicatorObject) AccessibilityValue() foundation.Number { rv := objc.Call[foundation.Number](a_, objc.Sel("accessibilityValue")) return rv } diff --git a/macos/appkit/accessibility.gen.go b/macos/appkit/accessibility_protocol.gen.go similarity index 74% rename from macos/appkit/accessibility.gen.go rename to macos/appkit/accessibility_protocol.gen.go index d43a96e1..0182f127 100644 --- a/macos/appkit/accessibility.gen.go +++ b/macos/appkit/accessibility_protocol.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package appkit @@ -12,4205 +12,4208 @@ import ( // [Full Topic]: https://developer.apple.com/documentation/appkit/nsaccessibility?language=objc type PAccessibility interface { // optional - AccessibilityAttributedStringForRange(range_ foundation.Range) foundation.IAttributedString - HasAccessibilityAttributedStringForRange() bool - - // optional - AccessibilityFrameForRange(range_ foundation.Range) foundation.Rect - HasAccessibilityFrameForRange() bool + AccessibilityPerformShowDefaultUI() bool + HasAccessibilityPerformShowDefaultUI() bool // optional - AccessibilityRTFForRange(range_ foundation.Range) []byte - HasAccessibilityRTFForRange() bool + AccessibilityCellForColumnRow(column int, row int) objc.Object + HasAccessibilityCellForColumnRow() bool // optional - AccessibilityRangeForLine(line int) foundation.Range - HasAccessibilityRangeForLine() bool + AccessibilityScreenPointForLayoutPoint(point foundation.Point) foundation.Point + HasAccessibilityScreenPointForLayoutPoint() bool // optional - AccessibilityLayoutSizeForScreenSize(size foundation.Size) foundation.Size - HasAccessibilityLayoutSizeForScreenSize() bool + AccessibilityPerformDecrement() bool + HasAccessibilityPerformDecrement() bool // optional - AccessibilityPerformShowDefaultUI() bool - HasAccessibilityPerformShowDefaultUI() bool + AccessibilityStringForRange(range_ foundation.Range) string + HasAccessibilityStringForRange() bool // optional - AccessibilityPerformDecrement() bool - HasAccessibilityPerformDecrement() bool + AccessibilityPerformConfirm() bool + HasAccessibilityPerformConfirm() bool // optional - AccessibilityPerformShowAlternateUI() bool - HasAccessibilityPerformShowAlternateUI() bool + AccessibilityRTFForRange(range_ foundation.Range) []byte + HasAccessibilityRTFForRange() bool // optional AccessibilityLineForIndex(index int) int HasAccessibilityLineForIndex() bool // optional - AccessibilityPerformPress() bool - HasAccessibilityPerformPress() bool + AccessibilityPerformDelete() bool + HasAccessibilityPerformDelete() bool // optional - AccessibilityScreenPointForLayoutPoint(point foundation.Point) foundation.Point - HasAccessibilityScreenPointForLayoutPoint() bool + AccessibilityStyleRangeForIndex(index int) foundation.Range + HasAccessibilityStyleRangeForIndex() bool // optional - AccessibilityPerformDelete() bool - HasAccessibilityPerformDelete() bool + AccessibilityAttributedStringForRange(range_ foundation.Range) foundation.AttributedString + HasAccessibilityAttributedStringForRange() bool + + // optional + AccessibilityPerformShowAlternateUI() bool + HasAccessibilityPerformShowAlternateUI() bool + + // optional + AccessibilityPerformRaise() bool + HasAccessibilityPerformRaise() bool // optional AccessibilityRangeForPosition(point foundation.Point) foundation.Range HasAccessibilityRangeForPosition() bool + // optional + IsAccessibilitySelectorAllowed(selector objc.Selector) bool + HasIsAccessibilitySelectorAllowed() bool + // optional AccessibilityPerformShowMenu() bool HasAccessibilityPerformShowMenu() bool // optional - AccessibilityPerformConfirm() bool - HasAccessibilityPerformConfirm() bool + AccessibilityPerformPress() bool + HasAccessibilityPerformPress() bool // optional - AccessibilityPerformIncrement() bool - HasAccessibilityPerformIncrement() bool + AccessibilityScreenSizeForLayoutSize(size foundation.Size) foundation.Size + HasAccessibilityScreenSizeForLayoutSize() bool // optional - AccessibilityStyleRangeForIndex(index int) foundation.Range - HasAccessibilityStyleRangeForIndex() bool + AccessibilityFrameForRange(range_ foundation.Range) foundation.Rect + HasAccessibilityFrameForRange() bool // optional AccessibilityRangeForIndex(index int) foundation.Range HasAccessibilityRangeForIndex() bool // optional - AccessibilityPerformRaise() bool - HasAccessibilityPerformRaise() bool + AccessibilityRangeForLine(line int) foundation.Range + HasAccessibilityRangeForLine() bool // optional AccessibilityPerformCancel() bool HasAccessibilityPerformCancel() bool // optional - AccessibilityStringForRange(range_ foundation.Range) string - HasAccessibilityStringForRange() bool + AccessibilityPerformPick() bool + HasAccessibilityPerformPick() bool // optional - IsAccessibilitySelectorAllowed(selector objc.Selector) bool - HasIsAccessibilitySelectorAllowed() bool + AccessibilityLayoutSizeForScreenSize(size foundation.Size) foundation.Size + HasAccessibilityLayoutSizeForScreenSize() bool // optional - AccessibilityCellForColumnRow(column int, row int) objc.IObject - HasAccessibilityCellForColumnRow() bool + AccessibilityLayoutPointForScreenPoint(point foundation.Point) foundation.Point + HasAccessibilityLayoutPointForScreenPoint() bool // optional - AccessibilityPerformPick() bool - HasAccessibilityPerformPick() bool + AccessibilityPerformIncrement() bool + HasAccessibilityPerformIncrement() bool // optional - AccessibilityScreenSizeForLayoutSize(size foundation.Size) foundation.Size - HasAccessibilityScreenSizeForLayoutSize() bool + SetAccessibilityHandles(value []objc.Object) + HasSetAccessibilityHandles() bool // optional - AccessibilityLayoutPointForScreenPoint(point foundation.Point) foundation.Point - HasAccessibilityLayoutPointForScreenPoint() bool + AccessibilityHandles() []objc.Object + HasAccessibilityHandles() bool // optional - SetAccessibilityClearButton(value objc.Object) - HasSetAccessibilityClearButton() bool + SetAccessibilityActivationPoint(value foundation.Point) + HasSetAccessibilityActivationPoint() bool // optional - AccessibilityClearButton() objc.IObject - HasAccessibilityClearButton() bool + AccessibilityActivationPoint() foundation.Point + HasAccessibilityActivationPoint() bool // optional - SetAccessibilityOverflowButton(value objc.Object) - HasSetAccessibilityOverflowButton() bool + SetAccessibilityMarkerUIElements(value []objc.Object) + HasSetAccessibilityMarkerUIElements() bool // optional - AccessibilityOverflowButton() objc.IObject - HasAccessibilityOverflowButton() bool + AccessibilityMarkerUIElements() []objc.Object + HasAccessibilityMarkerUIElements() bool // optional - SetAccessibilityChildren(value []objc.Object) - HasSetAccessibilityChildren() bool + SetAccessibilityRowCount(value int) + HasSetAccessibilityRowCount() bool // optional - AccessibilityChildren() []objc.IObject - HasAccessibilityChildren() bool + AccessibilityRowCount() int + HasAccessibilityRowCount() bool // optional - SetAccessibilityColumnHeaderUIElements(value []objc.Object) - HasSetAccessibilityColumnHeaderUIElements() bool + SetAccessibilityAlternateUIVisible(value bool) + HasSetAccessibilityAlternateUIVisible() bool // optional - AccessibilityColumnHeaderUIElements() []objc.IObject - HasAccessibilityColumnHeaderUIElements() bool + IsAccessibilityAlternateUIVisible() bool + HasIsAccessibilityAlternateUIVisible() bool // optional - SetAccessibilitySelectedTextRanges(value []foundation.Value) - HasSetAccessibilitySelectedTextRanges() bool + SetAccessibilityRequired(value bool) + HasSetAccessibilityRequired() bool // optional - AccessibilitySelectedTextRanges() []foundation.IValue - HasAccessibilitySelectedTextRanges() bool + IsAccessibilityRequired() bool + HasIsAccessibilityRequired() bool // optional - SetAccessibilityCriticalValue(value objc.Object) - HasSetAccessibilityCriticalValue() bool + SetAccessibilityHorizontalUnits(value AccessibilityUnits) + HasSetAccessibilityHorizontalUnits() bool // optional - AccessibilityCriticalValue() objc.IObject - HasAccessibilityCriticalValue() bool + AccessibilityHorizontalUnits() AccessibilityUnits + HasAccessibilityHorizontalUnits() bool // optional SetAccessibilityHeader(value objc.Object) HasSetAccessibilityHeader() bool // optional - AccessibilityHeader() objc.IObject + AccessibilityHeader() objc.Object HasAccessibilityHeader() bool // optional - SetAccessibilitySharedCharacterRange(value foundation.Range) - HasSetAccessibilitySharedCharacterRange() bool + SetAccessibilityDisclosedRows(value objc.Object) + HasSetAccessibilityDisclosedRows() bool // optional - AccessibilitySharedCharacterRange() foundation.Range - HasAccessibilitySharedCharacterRange() bool + AccessibilityDisclosedRows() objc.Object + HasAccessibilityDisclosedRows() bool // optional - SetAccessibilityMarkerGroupUIElement(value objc.Object) - HasSetAccessibilityMarkerGroupUIElement() bool + SetAccessibilityMenuBar(value objc.Object) + HasSetAccessibilityMenuBar() bool // optional - AccessibilityMarkerGroupUIElement() objc.IObject - HasAccessibilityMarkerGroupUIElement() bool + AccessibilityMenuBar() objc.Object + HasAccessibilityMenuBar() bool // optional - SetAccessibilityRequired(value bool) - HasSetAccessibilityRequired() bool + SetAccessibilityDisclosureLevel(value int) + HasSetAccessibilityDisclosureLevel() bool // optional - IsAccessibilityRequired() bool - HasIsAccessibilityRequired() bool + AccessibilityDisclosureLevel() int + HasAccessibilityDisclosureLevel() bool // optional - SetAccessibilitySearchButton(value objc.Object) - HasSetAccessibilitySearchButton() bool + SetAccessibilityExtrasMenuBar(value objc.Object) + HasSetAccessibilityExtrasMenuBar() bool // optional - AccessibilitySearchButton() objc.IObject - HasAccessibilitySearchButton() bool + AccessibilityExtrasMenuBar() objc.Object + HasAccessibilityExtrasMenuBar() bool // optional - SetAccessibilityParent(value objc.Object) - HasSetAccessibilityParent() bool + SetAccessibilityIdentifier(value string) + HasSetAccessibilityIdentifier() bool // optional - AccessibilityParent() objc.IObject - HasAccessibilityParent() bool + AccessibilityIdentifier() string + HasAccessibilityIdentifier() bool // optional - SetAccessibilityNumberOfCharacters(value int) - HasSetAccessibilityNumberOfCharacters() bool + SetAccessibilityMaxValue(value objc.Object) + HasSetAccessibilityMaxValue() bool // optional - AccessibilityNumberOfCharacters() int - HasAccessibilityNumberOfCharacters() bool + AccessibilityMaxValue() objc.Object + HasAccessibilityMaxValue() bool // optional - SetAccessibilityDefaultButton(value objc.Object) - HasSetAccessibilityDefaultButton() bool + SetAccessibilityRoleDescription(value string) + HasSetAccessibilityRoleDescription() bool // optional - AccessibilityDefaultButton() objc.IObject - HasAccessibilityDefaultButton() bool + AccessibilityRoleDescription() string + HasAccessibilityRoleDescription() bool // optional - SetAccessibilityTitle(value string) - HasSetAccessibilityTitle() bool + SetAccessibilityIncrementButton(value objc.Object) + HasSetAccessibilityIncrementButton() bool // optional - AccessibilityTitle() string - HasAccessibilityTitle() bool + AccessibilityIncrementButton() objc.Object + HasAccessibilityIncrementButton() bool // optional - SetAccessibilityRowHeaderUIElements(value []objc.Object) - HasSetAccessibilityRowHeaderUIElements() bool + SetAccessibilityURL(value foundation.URL) + HasSetAccessibilityURL() bool // optional - AccessibilityRowHeaderUIElements() []objc.IObject - HasAccessibilityRowHeaderUIElements() bool + AccessibilityURL() foundation.URL + HasAccessibilityURL() bool // optional - SetAccessibilityVisibleCharacterRange(value foundation.Range) - HasSetAccessibilityVisibleCharacterRange() bool + SetAccessibilityTitleUIElement(value objc.Object) + HasSetAccessibilityTitleUIElement() bool // optional - AccessibilityVisibleCharacterRange() foundation.Range - HasAccessibilityVisibleCharacterRange() bool + AccessibilityTitleUIElement() objc.Object + HasAccessibilityTitleUIElement() bool // optional - SetAccessibilityFrame(value foundation.Rect) - HasSetAccessibilityFrame() bool + SetAccessibilityVisibleCells(value []objc.Object) + HasSetAccessibilityVisibleCells() bool // optional - AccessibilityFrame() foundation.Rect - HasAccessibilityFrame() bool + AccessibilityVisibleCells() []objc.Object + HasAccessibilityVisibleCells() bool // optional - SetAccessibilityHidden(value bool) - HasSetAccessibilityHidden() bool + SetAccessibilityPlaceholderValue(value string) + HasSetAccessibilityPlaceholderValue() bool // optional - IsAccessibilityHidden() bool - HasIsAccessibilityHidden() bool + AccessibilityPlaceholderValue() string + HasAccessibilityPlaceholderValue() bool // optional - SetAccessibilityMarkerTypeDescription(value string) - HasSetAccessibilityMarkerTypeDescription() bool + SetAccessibilityWarningValue(value objc.Object) + HasSetAccessibilityWarningValue() bool // optional - AccessibilityMarkerTypeDescription() string - HasAccessibilityMarkerTypeDescription() bool + AccessibilityWarningValue() objc.Object + HasAccessibilityWarningValue() bool // optional - SetAccessibilityRowIndexRange(value foundation.Range) - HasSetAccessibilityRowIndexRange() bool + SetAccessibilityDecrementButton(value objc.Object) + HasSetAccessibilityDecrementButton() bool // optional - AccessibilityRowIndexRange() foundation.Range - HasAccessibilityRowIndexRange() bool + AccessibilityDecrementButton() objc.Object + HasAccessibilityDecrementButton() bool // optional - SetAccessibilityVerticalUnits(value AccessibilityUnits) - HasSetAccessibilityVerticalUnits() bool + SetAccessibilitySelectedColumns(value []objc.Object) + HasSetAccessibilitySelectedColumns() bool // optional - AccessibilityVerticalUnits() AccessibilityUnits - HasAccessibilityVerticalUnits() bool + AccessibilitySelectedColumns() []objc.Object + HasAccessibilitySelectedColumns() bool // optional - SetAccessibilityVisibleRows(value []objc.Object) - HasSetAccessibilityVisibleRows() bool + SetAccessibilityMinValue(value objc.Object) + HasSetAccessibilityMinValue() bool // optional - AccessibilityVisibleRows() []objc.IObject - HasAccessibilityVisibleRows() bool + AccessibilityMinValue() objc.Object + HasAccessibilityMinValue() bool // optional - SetAccessibilitySelectedCells(value []objc.Object) - HasSetAccessibilitySelectedCells() bool + SetAccessibilityLinkedUIElements(value []objc.Object) + HasSetAccessibilityLinkedUIElements() bool // optional - AccessibilitySelectedCells() []objc.IObject - HasAccessibilitySelectedCells() bool + AccessibilityLinkedUIElements() []objc.Object + HasAccessibilityLinkedUIElements() bool // optional - SetAccessibilityVisibleColumns(value []objc.Object) - HasSetAccessibilityVisibleColumns() bool + SetAccessibilityCustomActions(value []AccessibilityCustomAction) + HasSetAccessibilityCustomActions() bool // optional - AccessibilityVisibleColumns() []objc.IObject - HasAccessibilityVisibleColumns() bool + AccessibilityCustomActions() []AccessibilityCustomAction + HasAccessibilityCustomActions() bool // optional - SetAccessibilityMain(value bool) - HasSetAccessibilityMain() bool + SetAccessibilityColumnIndexRange(value foundation.Range) + HasSetAccessibilityColumnIndexRange() bool // optional - IsAccessibilityMain() bool - HasIsAccessibilityMain() bool + AccessibilityColumnIndexRange() foundation.Range + HasAccessibilityColumnIndexRange() bool // optional - SetAccessibilityMarkerUIElements(value []objc.Object) - HasSetAccessibilityMarkerUIElements() bool + SetAccessibilityEdited(value bool) + HasSetAccessibilityEdited() bool // optional - AccessibilityMarkerUIElements() []objc.IObject - HasAccessibilityMarkerUIElements() bool + IsAccessibilityEdited() bool + HasIsAccessibilityEdited() bool // optional - SetAccessibilityWarningValue(value objc.Object) - HasSetAccessibilityWarningValue() bool + SetAccessibilityLabel(value string) + HasSetAccessibilityLabel() bool // optional - AccessibilityWarningValue() objc.IObject - HasAccessibilityWarningValue() bool + AccessibilityLabel() string + HasAccessibilityLabel() bool // optional - SetAccessibilityContents(value []objc.Object) - HasSetAccessibilityContents() bool + SetAccessibilityMain(value bool) + HasSetAccessibilityMain() bool // optional - AccessibilityContents() []objc.IObject - HasAccessibilityContents() bool + IsAccessibilityMain() bool + HasIsAccessibilityMain() bool // optional - SetAccessibilityServesAsTitleForUIElements(value []objc.Object) - HasSetAccessibilityServesAsTitleForUIElements() bool + SetAccessibilityHidden(value bool) + HasSetAccessibilityHidden() bool // optional - AccessibilityServesAsTitleForUIElements() []objc.IObject - HasAccessibilityServesAsTitleForUIElements() bool + IsAccessibilityHidden() bool + HasIsAccessibilityHidden() bool // optional - SetAccessibilityVerticalUnitDescription(value string) - HasSetAccessibilityVerticalUnitDescription() bool + SetAccessibilityFocused(value bool) + HasSetAccessibilityFocused() bool // optional - AccessibilityVerticalUnitDescription() string - HasAccessibilityVerticalUnitDescription() bool + IsAccessibilityFocused() bool + HasIsAccessibilityFocused() bool // optional - SetAccessibilityIndex(value int) - HasSetAccessibilityIndex() bool + SetAccessibilityVerticalScrollBar(value objc.Object) + HasSetAccessibilityVerticalScrollBar() bool // optional - AccessibilityIndex() int - HasAccessibilityIndex() bool + AccessibilityVerticalScrollBar() objc.Object + HasAccessibilityVerticalScrollBar() bool // optional - SetAccessibilityLabel(value string) - HasSetAccessibilityLabel() bool + SetAccessibilitySubrole(value AccessibilitySubrole) + HasSetAccessibilitySubrole() bool // optional - AccessibilityLabel() string - HasAccessibilityLabel() bool + AccessibilitySubrole() AccessibilitySubrole + HasAccessibilitySubrole() bool // optional - SetAccessibilityFocusedWindow(value objc.Object) - HasSetAccessibilityFocusedWindow() bool + SetAccessibilityTabs(value []objc.Object) + HasSetAccessibilityTabs() bool // optional - AccessibilityFocusedWindow() objc.IObject - HasAccessibilityFocusedWindow() bool + AccessibilityTabs() []objc.Object + HasAccessibilityTabs() bool // optional - SetAccessibilityToolbarButton(value objc.Object) - HasSetAccessibilityToolbarButton() bool + SetAccessibilityCriticalValue(value objc.Object) + HasSetAccessibilityCriticalValue() bool // optional - AccessibilityToolbarButton() objc.IObject - HasAccessibilityToolbarButton() bool + AccessibilityCriticalValue() objc.Object + HasAccessibilityCriticalValue() bool // optional - SetAccessibilityShownMenu(value objc.Object) - HasSetAccessibilityShownMenu() bool + SetAccessibilityVisibleChildren(value []objc.Object) + HasSetAccessibilityVisibleChildren() bool // optional - AccessibilityShownMenu() objc.IObject - HasAccessibilityShownMenu() bool + AccessibilityVisibleChildren() []objc.Object + HasAccessibilityVisibleChildren() bool // optional - SetAccessibilitySplitters(value []objc.Object) - HasSetAccessibilitySplitters() bool + SetAccessibilityFocusedWindow(value objc.Object) + HasSetAccessibilityFocusedWindow() bool // optional - AccessibilitySplitters() []objc.IObject - HasAccessibilitySplitters() bool + AccessibilityFocusedWindow() objc.Object + HasAccessibilityFocusedWindow() bool // optional - SetAccessibilityMainWindow(value objc.Object) - HasSetAccessibilityMainWindow() bool + SetAccessibilityChildrenInNavigationOrder(value []AccessibilityElementObject) + HasSetAccessibilityChildrenInNavigationOrder() bool // optional - AccessibilityMainWindow() objc.IObject - HasAccessibilityMainWindow() bool + AccessibilityChildrenInNavigationOrder() []AccessibilityElementObject + HasAccessibilityChildrenInNavigationOrder() bool // optional - SetAccessibilityOrientation(value AccessibilityOrientation) - HasSetAccessibilityOrientation() bool + SetAccessibilityFrame(value foundation.Rect) + HasSetAccessibilityFrame() bool // optional - AccessibilityOrientation() AccessibilityOrientation - HasAccessibilityOrientation() bool + AccessibilityFrame() foundation.Rect + HasAccessibilityFrame() bool // optional - SetAccessibilityRole(value AccessibilityRole) - HasSetAccessibilityRole() bool + SetAccessibilityExpanded(value bool) + HasSetAccessibilityExpanded() bool // optional - AccessibilityRole() AccessibilityRole - HasAccessibilityRole() bool + IsAccessibilityExpanded() bool + HasIsAccessibilityExpanded() bool // optional - SetAccessibilityAllowedValues(value []foundation.Number) - HasSetAccessibilityAllowedValues() bool + SetAccessibilityTitle(value string) + HasSetAccessibilityTitle() bool // optional - AccessibilityAllowedValues() []foundation.INumber - HasAccessibilityAllowedValues() bool + AccessibilityTitle() string + HasAccessibilityTitle() bool // optional - SetAccessibilityCloseButton(value objc.Object) - HasSetAccessibilityCloseButton() bool + SetAccessibilityDisclosed(value bool) + HasSetAccessibilityDisclosed() bool // optional - AccessibilityCloseButton() objc.IObject - HasAccessibilityCloseButton() bool + IsAccessibilityDisclosed() bool + HasIsAccessibilityDisclosed() bool // optional - SetAccessibilityCancelButton(value objc.Object) - HasSetAccessibilityCancelButton() bool + SetAccessibilityVerticalUnitDescription(value string) + HasSetAccessibilityVerticalUnitDescription() bool // optional - AccessibilityCancelButton() objc.IObject - HasAccessibilityCancelButton() bool + AccessibilityVerticalUnitDescription() string + HasAccessibilityVerticalUnitDescription() bool // optional - SetAccessibilityFocused(value bool) - HasSetAccessibilityFocused() bool + SetAccessibilityPreviousContents(value []objc.Object) + HasSetAccessibilityPreviousContents() bool // optional - IsAccessibilityFocused() bool - HasIsAccessibilityFocused() bool + AccessibilityPreviousContents() []objc.Object + HasAccessibilityPreviousContents() bool // optional - SetAccessibilityCustomRotors(value []AccessibilityCustomRotor) - HasSetAccessibilityCustomRotors() bool + SetAccessibilityCloseButton(value objc.Object) + HasSetAccessibilityCloseButton() bool // optional - AccessibilityCustomRotors() []IAccessibilityCustomRotor - HasAccessibilityCustomRotors() bool + AccessibilityCloseButton() objc.Object + HasAccessibilityCloseButton() bool // optional - SetAccessibilityOrderedByRow(value bool) - HasSetAccessibilityOrderedByRow() bool + SetAccessibilitySelectedCells(value []objc.Object) + HasSetAccessibilitySelectedCells() bool // optional - IsAccessibilityOrderedByRow() bool - HasIsAccessibilityOrderedByRow() bool + AccessibilitySelectedCells() []objc.Object + HasAccessibilitySelectedCells() bool // optional - SetAccessibilitySubrole(value AccessibilitySubrole) - HasSetAccessibilitySubrole() bool + SetAccessibilityMarkerTypeDescription(value string) + HasSetAccessibilityMarkerTypeDescription() bool // optional - AccessibilitySubrole() AccessibilitySubrole - HasAccessibilitySubrole() bool + AccessibilityMarkerTypeDescription() string + HasAccessibilityMarkerTypeDescription() bool // optional - SetAccessibilityTitleUIElement(value objc.Object) - HasSetAccessibilityTitleUIElement() bool + SetAccessibilityDefaultButton(value objc.Object) + HasSetAccessibilityDefaultButton() bool // optional - AccessibilityTitleUIElement() objc.IObject - HasAccessibilityTitleUIElement() bool + AccessibilityDefaultButton() objc.Object + HasAccessibilityDefaultButton() bool // optional - SetAccessibilityChildrenInNavigationOrder(value []objc.Object) - HasSetAccessibilityChildrenInNavigationOrder() bool + SetAccessibilityIndex(value int) + HasSetAccessibilityIndex() bool // optional - AccessibilityChildrenInNavigationOrder() []objc.IObject - HasAccessibilityChildrenInNavigationOrder() bool + AccessibilityIndex() int + HasAccessibilityIndex() bool // optional - SetAccessibilityAlternateUIVisible(value bool) - HasSetAccessibilityAlternateUIVisible() bool + SetAccessibilityApplicationFocusedUIElement(value objc.Object) + HasSetAccessibilityApplicationFocusedUIElement() bool // optional - IsAccessibilityAlternateUIVisible() bool - HasIsAccessibilityAlternateUIVisible() bool + AccessibilityApplicationFocusedUIElement() objc.Object + HasAccessibilityApplicationFocusedUIElement() bool // optional - SetAccessibilitySelectedTextRange(value foundation.Range) - HasSetAccessibilitySelectedTextRange() bool + SetAccessibilityWindow(value objc.Object) + HasSetAccessibilityWindow() bool // optional - AccessibilitySelectedTextRange() foundation.Range - HasAccessibilitySelectedTextRange() bool + AccessibilityWindow() objc.Object + HasAccessibilityWindow() bool // optional - SetAccessibilitySharedFocusElements(value []objc.Object) - HasSetAccessibilitySharedFocusElements() bool + SetAccessibilityRowIndexRange(value foundation.Range) + HasSetAccessibilityRowIndexRange() bool // optional - AccessibilitySharedFocusElements() []objc.IObject - HasAccessibilitySharedFocusElements() bool + AccessibilityRowIndexRange() foundation.Range + HasAccessibilityRowIndexRange() bool // optional - SetAccessibilityMaxValue(value objc.Object) - HasSetAccessibilityMaxValue() bool + SetAccessibilityUnits(value AccessibilityUnits) + HasSetAccessibilityUnits() bool // optional - AccessibilityMaxValue() objc.IObject - HasAccessibilityMaxValue() bool + AccessibilityUnits() AccessibilityUnits + HasAccessibilityUnits() bool // optional - SetAccessibilityDocument(value string) - HasSetAccessibilityDocument() bool + SetAccessibilityFrontmost(value bool) + HasSetAccessibilityFrontmost() bool // optional - AccessibilityDocument() string - HasAccessibilityDocument() bool + IsAccessibilityFrontmost() bool + HasIsAccessibilityFrontmost() bool // optional - SetAccessibilityCustomActions(value []AccessibilityCustomAction) - HasSetAccessibilityCustomActions() bool + SetAccessibilityLabelValue(value float64) + HasSetAccessibilityLabelValue() bool // optional - AccessibilityCustomActions() []IAccessibilityCustomAction - HasAccessibilityCustomActions() bool + AccessibilityLabelValue() float64 + HasAccessibilityLabelValue() bool // optional - SetAccessibilityDecrementButton(value objc.Object) - HasSetAccessibilityDecrementButton() bool + SetAccessibilityWindows(value []objc.Object) + HasSetAccessibilityWindows() bool // optional - AccessibilityDecrementButton() objc.IObject - HasAccessibilityDecrementButton() bool + AccessibilityWindows() []objc.Object + HasAccessibilityWindows() bool // optional - SetAccessibilitySharedTextUIElements(value []objc.Object) - HasSetAccessibilitySharedTextUIElements() bool + SetAccessibilityEnabled(value bool) + HasSetAccessibilityEnabled() bool // optional - AccessibilitySharedTextUIElements() []objc.IObject - HasAccessibilitySharedTextUIElements() bool + IsAccessibilityEnabled() bool + HasIsAccessibilityEnabled() bool // optional - SetAccessibilitySelected(value bool) - HasSetAccessibilitySelected() bool + SetAccessibilityColumnCount(value int) + HasSetAccessibilityColumnCount() bool // optional - IsAccessibilitySelected() bool - HasIsAccessibilitySelected() bool + AccessibilityColumnCount() int + HasAccessibilityColumnCount() bool // optional - SetAccessibilityColumns(value []objc.Object) - HasSetAccessibilityColumns() bool + SetAccessibilityChildren(value []objc.Object) + HasSetAccessibilityChildren() bool // optional - AccessibilityColumns() []objc.IObject - HasAccessibilityColumns() bool + AccessibilityChildren() []objc.Object + HasAccessibilityChildren() bool // optional - SetAccessibilityRoleDescription(value string) - HasSetAccessibilityRoleDescription() bool + SetAccessibilityHorizontalUnitDescription(value string) + HasSetAccessibilityHorizontalUnitDescription() bool // optional - AccessibilityRoleDescription() string - HasAccessibilityRoleDescription() bool + AccessibilityHorizontalUnitDescription() string + HasAccessibilityHorizontalUnitDescription() bool // optional - SetAccessibilityActivationPoint(value foundation.Point) - HasSetAccessibilityActivationPoint() bool + SetAccessibilitySelectedTextRange(value foundation.Range) + HasSetAccessibilitySelectedTextRange() bool // optional - AccessibilityActivationPoint() foundation.Point - HasAccessibilityActivationPoint() bool + AccessibilitySelectedTextRange() foundation.Range + HasAccessibilitySelectedTextRange() bool // optional - SetAccessibilityIdentifier(value string) - HasSetAccessibilityIdentifier() bool + SetAccessibilityRole(value AccessibilityRole) + HasSetAccessibilityRole() bool // optional - AccessibilityIdentifier() string - HasAccessibilityIdentifier() bool + AccessibilityRole() AccessibilityRole + HasAccessibilityRole() bool // optional - SetAccessibilityTopLevelUIElement(value objc.Object) - HasSetAccessibilityTopLevelUIElement() bool + SetAccessibilityMarkerGroupUIElement(value objc.Object) + HasSetAccessibilityMarkerGroupUIElement() bool // optional - AccessibilityTopLevelUIElement() objc.IObject - HasAccessibilityTopLevelUIElement() bool + AccessibilityMarkerGroupUIElement() objc.Object + HasAccessibilityMarkerGroupUIElement() bool // optional - SetAccessibilityMenuBar(value objc.Object) - HasSetAccessibilityMenuBar() bool + SetAccessibilityRulerMarkerType(value AccessibilityRulerMarkerType) + HasSetAccessibilityRulerMarkerType() bool // optional - AccessibilityMenuBar() objc.IObject - HasAccessibilityMenuBar() bool + AccessibilityRulerMarkerType() AccessibilityRulerMarkerType + HasAccessibilityRulerMarkerType() bool // optional - SetAccessibilityColumnCount(value int) - HasSetAccessibilityColumnCount() bool + SetAccessibilitySortDirection(value AccessibilitySortDirection) + HasSetAccessibilitySortDirection() bool // optional - AccessibilityColumnCount() int - HasAccessibilityColumnCount() bool + AccessibilitySortDirection() AccessibilitySortDirection + HasAccessibilitySortDirection() bool // optional - SetAccessibilityWindows(value []objc.Object) - HasSetAccessibilityWindows() bool + SetAccessibilityValue(value objc.Object) + HasSetAccessibilityValue() bool // optional - AccessibilityWindows() []objc.IObject - HasAccessibilityWindows() bool + AccessibilityValue() objc.Object + HasAccessibilityValue() bool // optional - SetAccessibilityURL(value foundation.URL) - HasSetAccessibilityURL() bool + SetAccessibilityDocument(value string) + HasSetAccessibilityDocument() bool // optional - AccessibilityURL() foundation.IURL - HasAccessibilityURL() bool + AccessibilityDocument() string + HasAccessibilityDocument() bool // optional - SetAccessibilityMinimizeButton(value objc.Object) - HasSetAccessibilityMinimizeButton() bool + SetAccessibilityVerticalUnits(value AccessibilityUnits) + HasSetAccessibilityVerticalUnits() bool // optional - AccessibilityMinimizeButton() objc.IObject - HasAccessibilityMinimizeButton() bool + AccessibilityVerticalUnits() AccessibilityUnits + HasAccessibilityVerticalUnits() bool // optional - SetAccessibilityDisclosed(value bool) - HasSetAccessibilityDisclosed() bool + SetAccessibilityVisibleCharacterRange(value foundation.Range) + HasSetAccessibilityVisibleCharacterRange() bool // optional - IsAccessibilityDisclosed() bool - HasIsAccessibilityDisclosed() bool + AccessibilityVisibleCharacterRange() foundation.Range + HasAccessibilityVisibleCharacterRange() bool // optional - SetAccessibilityMinValue(value objc.Object) - HasSetAccessibilityMinValue() bool + SetAccessibilityMainWindow(value objc.Object) + HasSetAccessibilityMainWindow() bool // optional - AccessibilityMinValue() objc.IObject - HasAccessibilityMinValue() bool + AccessibilityMainWindow() objc.Object + HasAccessibilityMainWindow() bool // optional - SetAccessibilityRows(value []objc.Object) - HasSetAccessibilityRows() bool + SetAccessibilityDisclosedByRow(value objc.Object) + HasSetAccessibilityDisclosedByRow() bool // optional - AccessibilityRows() []objc.IObject - HasAccessibilityRows() bool + AccessibilityDisclosedByRow() objc.Object + HasAccessibilityDisclosedByRow() bool // optional - SetAccessibilityMarkerValues(value objc.Object) - HasSetAccessibilityMarkerValues() bool + SetAccessibilityClearButton(value objc.Object) + HasSetAccessibilityClearButton() bool // optional - AccessibilityMarkerValues() objc.IObject - HasAccessibilityMarkerValues() bool + AccessibilityClearButton() objc.Object + HasAccessibilityClearButton() bool // optional - SetAccessibilityModal(value bool) - HasSetAccessibilityModal() bool + SetAccessibilityNumberOfCharacters(value int) + HasSetAccessibilityNumberOfCharacters() bool // optional - IsAccessibilityModal() bool - HasIsAccessibilityModal() bool + AccessibilityNumberOfCharacters() int + HasAccessibilityNumberOfCharacters() bool // optional - SetAccessibilityVisibleChildren(value []objc.Object) - HasSetAccessibilityVisibleChildren() bool + SetAccessibilityGrowArea(value objc.Object) + HasSetAccessibilityGrowArea() bool // optional - AccessibilityVisibleChildren() []objc.IObject - HasAccessibilityVisibleChildren() bool + AccessibilityGrowArea() objc.Object + HasAccessibilityGrowArea() bool // optional - SetAccessibilityVisibleCells(value []objc.Object) - HasSetAccessibilityVisibleCells() bool + SetAccessibilityZoomButton(value objc.Object) + HasSetAccessibilityZoomButton() bool // optional - AccessibilityVisibleCells() []objc.IObject - HasAccessibilityVisibleCells() bool + AccessibilityZoomButton() objc.Object + HasAccessibilityZoomButton() bool // optional - SetAccessibilityLabelValue(value float64) - HasSetAccessibilityLabelValue() bool + SetAccessibilityParent(value objc.Object) + HasSetAccessibilityParent() bool // optional - AccessibilityLabelValue() float64 - HasAccessibilityLabelValue() bool + AccessibilityParent() objc.Object + HasAccessibilityParent() bool // optional - SetAccessibilityExpanded(value bool) - HasSetAccessibilityExpanded() bool + SetAccessibilitySearchButton(value objc.Object) + HasSetAccessibilitySearchButton() bool // optional - IsAccessibilityExpanded() bool - HasIsAccessibilityExpanded() bool + AccessibilitySearchButton() objc.Object + HasAccessibilitySearchButton() bool // optional - SetAccessibilityRulerMarkerType(value AccessibilityRulerMarkerType) - HasSetAccessibilityRulerMarkerType() bool + SetAccessibilitySelectedTextRanges(value []foundation.Value) + HasSetAccessibilitySelectedTextRanges() bool // optional - AccessibilityRulerMarkerType() AccessibilityRulerMarkerType - HasAccessibilityRulerMarkerType() bool + AccessibilitySelectedTextRanges() []foundation.Value + HasAccessibilitySelectedTextRanges() bool // optional - SetAccessibilityProtectedContent(value bool) - HasSetAccessibilityProtectedContent() bool + SetAccessibilityValueDescription(value string) + HasSetAccessibilityValueDescription() bool // optional - IsAccessibilityProtectedContent() bool - HasIsAccessibilityProtectedContent() bool + AccessibilityValueDescription() string + HasAccessibilityValueDescription() bool // optional - SetAccessibilityValue(value objc.Object) - HasSetAccessibilityValue() bool + SetAccessibilitySplitters(value []objc.Object) + HasSetAccessibilitySplitters() bool // optional - AccessibilityValue() objc.IObject - HasAccessibilityValue() bool + AccessibilitySplitters() []objc.Object + HasAccessibilitySplitters() bool // optional - SetAccessibilityEdited(value bool) - HasSetAccessibilityEdited() bool + SetAccessibilityServesAsTitleForUIElements(value []objc.Object) + HasSetAccessibilityServesAsTitleForUIElements() bool // optional - IsAccessibilityEdited() bool - HasIsAccessibilityEdited() bool + AccessibilityServesAsTitleForUIElements() []objc.Object + HasAccessibilityServesAsTitleForUIElements() bool // optional - SetAccessibilityHelp(value string) - HasSetAccessibilityHelp() bool + SetAccessibilitySharedCharacterRange(value foundation.Range) + HasSetAccessibilitySharedCharacterRange() bool // optional - AccessibilityHelp() string - HasAccessibilityHelp() bool + AccessibilitySharedCharacterRange() foundation.Range + HasAccessibilitySharedCharacterRange() bool // optional - SetAccessibilityRowCount(value int) - HasSetAccessibilityRowCount() bool + SetAccessibilityOverflowButton(value objc.Object) + HasSetAccessibilityOverflowButton() bool // optional - AccessibilityRowCount() int - HasAccessibilityRowCount() bool + AccessibilityOverflowButton() objc.Object + HasAccessibilityOverflowButton() bool // optional - SetAccessibilityColumnIndexRange(value foundation.Range) - HasSetAccessibilityColumnIndexRange() bool + SetAccessibilityElement(value bool) + HasSetAccessibilityElement() bool // optional - AccessibilityColumnIndexRange() foundation.Range - HasAccessibilityColumnIndexRange() bool + IsAccessibilityElement() bool + HasIsAccessibilityElement() bool // optional - SetAccessibilitySortDirection(value AccessibilitySortDirection) - HasSetAccessibilitySortDirection() bool + SetAccessibilityMinimized(value bool) + HasSetAccessibilityMinimized() bool // optional - AccessibilitySortDirection() AccessibilitySortDirection - HasAccessibilitySortDirection() bool + IsAccessibilityMinimized() bool + HasIsAccessibilityMinimized() bool // optional - SetAccessibilityValueDescription(value string) - HasSetAccessibilityValueDescription() bool + SetAccessibilityOrderedByRow(value bool) + HasSetAccessibilityOrderedByRow() bool // optional - AccessibilityValueDescription() string - HasAccessibilityValueDescription() bool + IsAccessibilityOrderedByRow() bool + HasIsAccessibilityOrderedByRow() bool // optional - SetAccessibilityLinkedUIElements(value []objc.Object) - HasSetAccessibilityLinkedUIElements() bool + SetAccessibilityRows(value []objc.Object) + HasSetAccessibilityRows() bool // optional - AccessibilityLinkedUIElements() []objc.IObject - HasAccessibilityLinkedUIElements() bool + AccessibilityRows() []objc.Object + HasAccessibilityRows() bool // optional - SetAccessibilityExtrasMenuBar(value objc.Object) - HasSetAccessibilityExtrasMenuBar() bool + SetAccessibilityTopLevelUIElement(value objc.Object) + HasSetAccessibilityTopLevelUIElement() bool // optional - AccessibilityExtrasMenuBar() objc.IObject - HasAccessibilityExtrasMenuBar() bool + AccessibilityTopLevelUIElement() objc.Object + HasAccessibilityTopLevelUIElement() bool // optional - SetAccessibilityWindow(value objc.Object) - HasSetAccessibilityWindow() bool + SetAccessibilityColumnHeaderUIElements(value []objc.Object) + HasSetAccessibilityColumnHeaderUIElements() bool // optional - AccessibilityWindow() objc.IObject - HasAccessibilityWindow() bool + AccessibilityColumnHeaderUIElements() []objc.Object + HasAccessibilityColumnHeaderUIElements() bool // optional - SetAccessibilityDisclosedByRow(value objc.Object) - HasSetAccessibilityDisclosedByRow() bool + SetAccessibilityRowHeaderUIElements(value []objc.Object) + HasSetAccessibilityRowHeaderUIElements() bool // optional - AccessibilityDisclosedByRow() objc.IObject - HasAccessibilityDisclosedByRow() bool + AccessibilityRowHeaderUIElements() []objc.Object + HasAccessibilityRowHeaderUIElements() bool // optional - SetAccessibilityHorizontalUnitDescription(value string) - HasSetAccessibilityHorizontalUnitDescription() bool + SetAccessibilitySelectedRows(value []objc.Object) + HasSetAccessibilitySelectedRows() bool // optional - AccessibilityHorizontalUnitDescription() string - HasAccessibilityHorizontalUnitDescription() bool + AccessibilitySelectedRows() []objc.Object + HasAccessibilitySelectedRows() bool // optional - SetAccessibilityZoomButton(value objc.Object) - HasSetAccessibilityZoomButton() bool + SetAccessibilityVisibleRows(value []objc.Object) + HasSetAccessibilityVisibleRows() bool // optional - AccessibilityZoomButton() objc.IObject - HasAccessibilityZoomButton() bool + AccessibilityVisibleRows() []objc.Object + HasAccessibilityVisibleRows() bool // optional - SetAccessibilityColumnTitles(value []objc.Object) - HasSetAccessibilityColumnTitles() bool + SetAccessibilitySelectedText(value string) + HasSetAccessibilitySelectedText() bool // optional - AccessibilityColumnTitles() []objc.IObject - HasAccessibilityColumnTitles() bool + AccessibilitySelectedText() string + HasAccessibilitySelectedText() bool // optional - SetAccessibilityVerticalScrollBar(value objc.Object) - HasSetAccessibilityVerticalScrollBar() bool + SetAccessibilityOrientation(value AccessibilityOrientation) + HasSetAccessibilityOrientation() bool // optional - AccessibilityVerticalScrollBar() objc.IObject - HasAccessibilityVerticalScrollBar() bool + AccessibilityOrientation() AccessibilityOrientation + HasAccessibilityOrientation() bool // optional - SetAccessibilityIncrementButton(value objc.Object) - HasSetAccessibilityIncrementButton() bool + SetAccessibilitySharedTextUIElements(value []objc.Object) + HasSetAccessibilitySharedTextUIElements() bool // optional - AccessibilityIncrementButton() objc.IObject - HasAccessibilityIncrementButton() bool + AccessibilitySharedTextUIElements() []objc.Object + HasAccessibilitySharedTextUIElements() bool // optional - SetAccessibilityGrowArea(value objc.Object) - HasSetAccessibilityGrowArea() bool + SetAccessibilityFilename(value string) + HasSetAccessibilityFilename() bool // optional - AccessibilityGrowArea() objc.IObject - HasAccessibilityGrowArea() bool + AccessibilityFilename() string + HasAccessibilityFilename() bool // optional SetAccessibilityNextContents(value []objc.Object) HasSetAccessibilityNextContents() bool // optional - AccessibilityNextContents() []objc.IObject + AccessibilityNextContents() []objc.Object HasAccessibilityNextContents() bool // optional - SetAccessibilityHorizontalScrollBar(value objc.Object) - HasSetAccessibilityHorizontalScrollBar() bool + SetAccessibilitySharedFocusElements(value []objc.Object) + HasSetAccessibilitySharedFocusElements() bool // optional - AccessibilityHorizontalScrollBar() objc.IObject - HasAccessibilityHorizontalScrollBar() bool + AccessibilitySharedFocusElements() []objc.Object + HasAccessibilitySharedFocusElements() bool // optional - SetAccessibilityUnitDescription(value string) - HasSetAccessibilityUnitDescription() bool + SetAccessibilityColumns(value []objc.Object) + HasSetAccessibilityColumns() bool // optional - AccessibilityUnitDescription() string - HasAccessibilityUnitDescription() bool + AccessibilityColumns() []objc.Object + HasAccessibilityColumns() bool // optional - SetAccessibilitySelectedColumns(value []objc.Object) - HasSetAccessibilitySelectedColumns() bool + SetAccessibilityMinimizeButton(value objc.Object) + HasSetAccessibilityMinimizeButton() bool // optional - AccessibilitySelectedColumns() []objc.IObject - HasAccessibilitySelectedColumns() bool + AccessibilityMinimizeButton() objc.Object + HasAccessibilityMinimizeButton() bool // optional - SetAccessibilityPreviousContents(value []objc.Object) - HasSetAccessibilityPreviousContents() bool + SetAccessibilityColumnTitles(value []objc.Object) + HasSetAccessibilityColumnTitles() bool // optional - AccessibilityPreviousContents() []objc.IObject - HasAccessibilityPreviousContents() bool + AccessibilityColumnTitles() []objc.Object + HasAccessibilityColumnTitles() bool // optional - SetAccessibilitySelectedText(value string) - HasSetAccessibilitySelectedText() bool + SetAccessibilityHelp(value string) + HasSetAccessibilityHelp() bool // optional - AccessibilitySelectedText() string - HasAccessibilitySelectedText() bool + AccessibilityHelp() string + HasAccessibilityHelp() bool // optional - SetAccessibilityHorizontalUnits(value AccessibilityUnits) - HasSetAccessibilityHorizontalUnits() bool + SetAccessibilityLabelUIElements(value []objc.Object) + HasSetAccessibilityLabelUIElements() bool // optional - AccessibilityHorizontalUnits() AccessibilityUnits - HasAccessibilityHorizontalUnits() bool + AccessibilityLabelUIElements() []objc.Object + HasAccessibilityLabelUIElements() bool // optional - SetAccessibilityEnabled(value bool) - HasSetAccessibilityEnabled() bool + SetAccessibilityProtectedContent(value bool) + HasSetAccessibilityProtectedContent() bool // optional - IsAccessibilityEnabled() bool - HasIsAccessibilityEnabled() bool + IsAccessibilityProtectedContent() bool + HasIsAccessibilityProtectedContent() bool // optional - SetAccessibilityTabs(value []objc.Object) - HasSetAccessibilityTabs() bool + SetAccessibilityModal(value bool) + HasSetAccessibilityModal() bool // optional - AccessibilityTabs() []objc.IObject - HasAccessibilityTabs() bool + IsAccessibilityModal() bool + HasIsAccessibilityModal() bool // optional - SetAccessibilityInsertionPointLineNumber(value int) - HasSetAccessibilityInsertionPointLineNumber() bool + SetAccessibilityToolbarButton(value objc.Object) + HasSetAccessibilityToolbarButton() bool // optional - AccessibilityInsertionPointLineNumber() int - HasAccessibilityInsertionPointLineNumber() bool + AccessibilityToolbarButton() objc.Object + HasAccessibilityToolbarButton() bool // optional - SetAccessibilityProxy(value objc.Object) - HasSetAccessibilityProxy() bool + SetAccessibilityShownMenu(value objc.Object) + HasSetAccessibilityShownMenu() bool // optional - AccessibilityProxy() objc.IObject - HasAccessibilityProxy() bool + AccessibilityShownMenu() objc.Object + HasAccessibilityShownMenu() bool // optional SetAccessibilitySearchMenu(value objc.Object) HasSetAccessibilitySearchMenu() bool // optional - AccessibilitySearchMenu() objc.IObject + AccessibilitySearchMenu() objc.Object HasAccessibilitySearchMenu() bool // optional - SetAccessibilityFilename(value string) - HasSetAccessibilityFilename() bool + SetAccessibilityMarkerValues(value objc.Object) + HasSetAccessibilityMarkerValues() bool // optional - AccessibilityFilename() string - HasAccessibilityFilename() bool + AccessibilityMarkerValues() objc.Object + HasAccessibilityMarkerValues() bool // optional - SetAccessibilitySelectedChildren(value []objc.Object) - HasSetAccessibilitySelectedChildren() bool + SetAccessibilityProxy(value objc.Object) + HasSetAccessibilityProxy() bool // optional - AccessibilitySelectedChildren() []objc.IObject - HasAccessibilitySelectedChildren() bool + AccessibilityProxy() objc.Object + HasAccessibilityProxy() bool // optional - SetAccessibilityApplicationFocusedUIElement(value objc.Object) - HasSetAccessibilityApplicationFocusedUIElement() bool + SetAccessibilityVisibleColumns(value []objc.Object) + HasSetAccessibilityVisibleColumns() bool // optional - AccessibilityApplicationFocusedUIElement() objc.IObject - HasAccessibilityApplicationFocusedUIElement() bool + AccessibilityVisibleColumns() []objc.Object + HasAccessibilityVisibleColumns() bool // optional - SetAccessibilityMinimized(value bool) - HasSetAccessibilityMinimized() bool + SetAccessibilityInsertionPointLineNumber(value int) + HasSetAccessibilityInsertionPointLineNumber() bool // optional - IsAccessibilityMinimized() bool - HasIsAccessibilityMinimized() bool + AccessibilityInsertionPointLineNumber() int + HasAccessibilityInsertionPointLineNumber() bool // optional - SetAccessibilityElement(value bool) - HasSetAccessibilityElement() bool + SetAccessibilityFullScreenButton(value objc.Object) + HasSetAccessibilityFullScreenButton() bool // optional - IsAccessibilityElement() bool - HasIsAccessibilityElement() bool + AccessibilityFullScreenButton() objc.Object + HasAccessibilityFullScreenButton() bool // optional - SetAccessibilityDisclosedRows(value objc.Object) - HasSetAccessibilityDisclosedRows() bool + SetAccessibilityAllowedValues(value []foundation.Number) + HasSetAccessibilityAllowedValues() bool // optional - AccessibilityDisclosedRows() objc.IObject - HasAccessibilityDisclosedRows() bool + AccessibilityAllowedValues() []foundation.Number + HasAccessibilityAllowedValues() bool // optional - SetAccessibilityFullScreenButton(value objc.Object) - HasSetAccessibilityFullScreenButton() bool + SetAccessibilitySelectedChildren(value []objc.Object) + HasSetAccessibilitySelectedChildren() bool // optional - AccessibilityFullScreenButton() objc.IObject - HasAccessibilityFullScreenButton() bool + AccessibilitySelectedChildren() []objc.Object + HasAccessibilitySelectedChildren() bool // optional - SetAccessibilityFrontmost(value bool) - HasSetAccessibilityFrontmost() bool + SetAccessibilityCustomRotors(value []AccessibilityCustomRotor) + HasSetAccessibilityCustomRotors() bool // optional - IsAccessibilityFrontmost() bool - HasIsAccessibilityFrontmost() bool + AccessibilityCustomRotors() []AccessibilityCustomRotor + HasAccessibilityCustomRotors() bool // optional - SetAccessibilityLabelUIElements(value []objc.Object) - HasSetAccessibilityLabelUIElements() bool + SetAccessibilityUnitDescription(value string) + HasSetAccessibilityUnitDescription() bool // optional - AccessibilityLabelUIElements() []objc.IObject - HasAccessibilityLabelUIElements() bool + AccessibilityUnitDescription() string + HasAccessibilityUnitDescription() bool // optional - SetAccessibilityDisclosureLevel(value int) - HasSetAccessibilityDisclosureLevel() bool + SetAccessibilityContents(value []objc.Object) + HasSetAccessibilityContents() bool // optional - AccessibilityDisclosureLevel() int - HasAccessibilityDisclosureLevel() bool + AccessibilityContents() []objc.Object + HasAccessibilityContents() bool // optional - SetAccessibilityPlaceholderValue(value string) - HasSetAccessibilityPlaceholderValue() bool + SetAccessibilityHorizontalScrollBar(value objc.Object) + HasSetAccessibilityHorizontalScrollBar() bool // optional - AccessibilityPlaceholderValue() string - HasAccessibilityPlaceholderValue() bool + AccessibilityHorizontalScrollBar() objc.Object + HasAccessibilityHorizontalScrollBar() bool // optional - SetAccessibilityUnits(value AccessibilityUnits) - HasSetAccessibilityUnits() bool + SetAccessibilityCancelButton(value objc.Object) + HasSetAccessibilityCancelButton() bool // optional - AccessibilityUnits() AccessibilityUnits - HasAccessibilityUnits() bool + AccessibilityCancelButton() objc.Object + HasAccessibilityCancelButton() bool // optional - SetAccessibilityHandles(value []objc.Object) - HasSetAccessibilityHandles() bool + SetAccessibilitySelected(value bool) + HasSetAccessibilitySelected() bool // optional - AccessibilityHandles() []objc.IObject - HasAccessibilityHandles() bool + IsAccessibilitySelected() bool + HasIsAccessibilitySelected() bool +} - // optional - SetAccessibilitySelectedRows(value []objc.Object) - HasSetAccessibilitySelectedRows() bool +// ensure impl type implements protocol interface +var _ PAccessibility = (*AccessibilityObject)(nil) - // optional - AccessibilitySelectedRows() []objc.IObject - HasAccessibilitySelectedRows() bool +// A concrete type for the [PAccessibility] protocol. +type AccessibilityObject struct { + objc.Object } -// A concrete type wrapper for the [PAccessibility] protocol. -type AccessibilityWrapper struct { - objc.Object +func (a_ AccessibilityObject) HasAccessibilityPerformShowDefaultUI() bool { + return a_.RespondsToSelector(objc.Sel("accessibilityPerformShowDefaultUI")) } -func (a_ AccessibilityWrapper) HasAccessibilityAttributedStringForRange() bool { - return a_.RespondsToSelector(objc.Sel("accessibilityAttributedStringForRange:")) +// 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 } -// Returns the attributed substring for the specified range of characters. [Full Topic] +func (a_ AccessibilityObject) HasAccessibilityCellForColumnRow() bool { + return a_.RespondsToSelector(objc.Sel("accessibilityCellForColumn:row:")) +} + +// Returns the cell at the specified column and row. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsaccessibility/1532250-accessibilityattributedstringfor?language=objc -func (a_ AccessibilityWrapper) 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/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_ AccessibilityWrapper) HasAccessibilityFrameForRange() bool { - return a_.RespondsToSelector(objc.Sel("accessibilityFrameForRange:")) +func (a_ AccessibilityObject) HasAccessibilityScreenPointForLayoutPoint() bool { + return a_.RespondsToSelector(objc.Sel("accessibilityScreenPointForLayoutPoint:")) } -// Returns the rectangle that encloses the specified range of characters. [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/1526088-accessibilityframeforrange?language=objc -func (a_ AccessibilityWrapper) 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/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_ AccessibilityWrapper) HasAccessibilityRTFForRange() bool { - return a_.RespondsToSelector(objc.Sel("accessibilityRTFForRange:")) +func (a_ AccessibilityObject) HasAccessibilityPerformDecrement() bool { + return a_.RespondsToSelector(objc.Sel("accessibilityPerformDecrement")) } -// Returns the rich text format (RTF) data that describes the specified range of characters. [Full Topic] +// Decrements the accessibility element’s value. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsaccessibility/1529273-accessibilityrtfforrange?language=objc -func (a_ AccessibilityWrapper) AccessibilityRTFForRange(range_ foundation.Range) []byte { - rv := objc.Call[[]byte](a_, objc.Sel("accessibilityRTFForRange:"), 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 } -func (a_ AccessibilityWrapper) HasAccessibilityRangeForLine() bool { - return a_.RespondsToSelector(objc.Sel("accessibilityRangeForLine:")) +func (a_ AccessibilityObject) HasAccessibilityStringForRange() bool { + return a_.RespondsToSelector(objc.Sel("accessibilityStringForRange:")) } -// Returns the range of characters in the specified line. [Full Topic] +// Returns the substring for the specified range. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsaccessibility/1528813-accessibilityrangeforline?language=objc -func (a_ AccessibilityWrapper) AccessibilityRangeForLine(line int) foundation.Range { - rv := objc.Call[foundation.Range](a_, objc.Sel("accessibilityRangeForLine:"), line) +// [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_ AccessibilityWrapper) HasAccessibilityLayoutSizeForScreenSize() bool { - return a_.RespondsToSelector(objc.Sel("accessibilityLayoutSizeForScreenSize:")) +func (a_ AccessibilityObject) HasAccessibilityPerformConfirm() bool { + return a_.RespondsToSelector(objc.Sel("accessibilityPerformConfirm")) } -// Converts the provided size in screen coordinates to a size in the layout area’s coordinate system. [Full Topic] +// Simulates pressing Return in the accessibility element. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsaccessibility/1535016-accessibilitylayoutsizeforscreen?language=objc -func (a_ AccessibilityWrapper) 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/1534952-accessibilityperformconfirm?language=objc +func (a_ AccessibilityObject) AccessibilityPerformConfirm() bool { + rv := objc.Call[bool](a_, objc.Sel("accessibilityPerformConfirm")) return rv } -func (a_ AccessibilityWrapper) HasAccessibilityPerformShowDefaultUI() bool { - return a_.RespondsToSelector(objc.Sel("accessibilityPerformShowDefaultUI")) +func (a_ AccessibilityObject) HasAccessibilityRTFForRange() bool { + return a_.RespondsToSelector(objc.Sel("accessibilityRTFForRange:")) } -// Returns to the accessibility element’s original UI. [Full Topic] +// Returns the rich text format (RTF) data that describes the specified range of characters. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsaccessibility/1531207-accessibilityperformshowdefaultu?language=objc -func (a_ AccessibilityWrapper) AccessibilityPerformShowDefaultUI() bool { - rv := objc.Call[bool](a_, objc.Sel("accessibilityPerformShowDefaultUI")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsaccessibility/1529273-accessibilityrtfforrange?language=objc +func (a_ AccessibilityObject) AccessibilityRTFForRange(range_ foundation.Range) []byte { + rv := objc.Call[[]byte](a_, objc.Sel("accessibilityRTFForRange:"), range_) return rv } -func (a_ AccessibilityWrapper) HasAccessibilityPerformDecrement() bool { - return a_.RespondsToSelector(objc.Sel("accessibilityPerformDecrement")) +func (a_ AccessibilityObject) HasAccessibilityLineForIndex() bool { + return a_.RespondsToSelector(objc.Sel("accessibilityLineForIndex:")) } -// Decrements the accessibility element’s value. [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/1526626-accessibilityperformdecrement?language=objc -func (a_ AccessibilityWrapper) AccessibilityPerformDecrement() bool { - rv := objc.Call[bool](a_, objc.Sel("accessibilityPerformDecrement")) +// [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_ AccessibilityWrapper) HasAccessibilityPerformShowAlternateUI() bool { - return a_.RespondsToSelector(objc.Sel("accessibilityPerformShowAlternateUI")) +func (a_ AccessibilityObject) HasAccessibilityPerformDelete() bool { + return a_.RespondsToSelector(objc.Sel("accessibilityPerformDelete")) } -// Displays the accessibility element’s alternative UI. [Full Topic] +// Deletes the accessibility element’s value. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsaccessibility/1533983-accessibilityperformshowalternat?language=objc -func (a_ AccessibilityWrapper) AccessibilityPerformShowAlternateUI() bool { - rv := objc.Call[bool](a_, objc.Sel("accessibilityPerformShowAlternateUI")) +// [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_ AccessibilityWrapper) HasAccessibilityLineForIndex() bool { - return a_.RespondsToSelector(objc.Sel("accessibilityLineForIndex:")) +func (a_ AccessibilityObject) HasAccessibilityStyleRangeForIndex() bool { + return a_.RespondsToSelector(objc.Sel("accessibilityStyleRangeForIndex:")) } -// Returns the line number for the line that contains the specified character index. [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/1525305-accessibilitylineforindex?language=objc -func (a_ AccessibilityWrapper) AccessibilityLineForIndex(index int) int { - rv := objc.Call[int](a_, objc.Sel("accessibilityLineForIndex:"), index) +// [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 } -func (a_ AccessibilityWrapper) HasAccessibilityPerformPress() bool { - return a_.RespondsToSelector(objc.Sel("accessibilityPerformPress")) +func (a_ AccessibilityObject) HasAccessibilityAttributedStringForRange() bool { + return a_.RespondsToSelector(objc.Sel("accessibilityAttributedStringForRange:")) } -// Simulates clicking the accessibility element. [Full Topic] +// Returns the attributed substring for the specified range of characters. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsaccessibility/1526358-accessibilityperformpress?language=objc -func (a_ AccessibilityWrapper) AccessibilityPerformPress() bool { - rv := objc.Call[bool](a_, objc.Sel("accessibilityPerformPress")) +// [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_ AccessibilityWrapper) HasAccessibilityScreenPointForLayoutPoint() bool { - return a_.RespondsToSelector(objc.Sel("accessibilityScreenPointForLayoutPoint:")) +func (a_ AccessibilityObject) HasAccessibilityPerformShowAlternateUI() bool { + return a_.RespondsToSelector(objc.Sel("accessibilityPerformShowAlternateUI")) } -// Converts the provided point in the layout area’s coordinates to a point in the screen’s coordinate system. [Full Topic] +// Displays the accessibility element’s alternative UI. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsaccessibility/1524668-accessibilityscreenpointforlayou?language=objc -func (a_ AccessibilityWrapper) AccessibilityScreenPointForLayoutPoint(point foundation.Point) foundation.Point { - rv := objc.Call[foundation.Point](a_, objc.Sel("accessibilityScreenPointForLayoutPoint:"), point) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsaccessibility/1533983-accessibilityperformshowalternat?language=objc +func (a_ AccessibilityObject) AccessibilityPerformShowAlternateUI() bool { + rv := objc.Call[bool](a_, objc.Sel("accessibilityPerformShowAlternateUI")) return rv } -func (a_ AccessibilityWrapper) HasAccessibilityPerformDelete() bool { - return a_.RespondsToSelector(objc.Sel("accessibilityPerformDelete")) +func (a_ AccessibilityObject) HasAccessibilityPerformRaise() bool { + return a_.RespondsToSelector(objc.Sel("accessibilityPerformRaise")) } -// Deletes the accessibility element’s value. [Full Topic] +// Brings the window to the front. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsaccessibility/1524609-accessibilityperformdelete?language=objc -func (a_ AccessibilityWrapper) AccessibilityPerformDelete() bool { - rv := objc.Call[bool](a_, objc.Sel("accessibilityPerformDelete")) +// [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 } -func (a_ AccessibilityWrapper) HasAccessibilityRangeForPosition() bool { +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_ AccessibilityWrapper) AccessibilityRangeForPosition(point foundation.Point) foundation.Range { +func (a_ AccessibilityObject) AccessibilityRangeForPosition(point foundation.Point) foundation.Range { rv := objc.Call[foundation.Range](a_, objc.Sel("accessibilityRangeForPosition:"), point) return rv } -func (a_ AccessibilityWrapper) HasAccessibilityPerformShowMenu() bool { +func (a_ AccessibilityObject) HasIsAccessibilitySelectorAllowed() bool { + return a_.RespondsToSelector(objc.Sel("isAccessibilitySelectorAllowed:")) +} + +// 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/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) HasAccessibilityPerformShowMenu() bool { return a_.RespondsToSelector(objc.Sel("accessibilityPerformShowMenu")) } // Displays the menu accessibility element. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/appkit/nsaccessibility/1532774-accessibilityperformshowmenu?language=objc -func (a_ AccessibilityWrapper) AccessibilityPerformShowMenu() bool { +func (a_ AccessibilityObject) AccessibilityPerformShowMenu() bool { rv := objc.Call[bool](a_, objc.Sel("accessibilityPerformShowMenu")) return rv } -func (a_ AccessibilityWrapper) HasAccessibilityPerformConfirm() bool { - return a_.RespondsToSelector(objc.Sel("accessibilityPerformConfirm")) +func (a_ AccessibilityObject) HasAccessibilityPerformPress() bool { + return a_.RespondsToSelector(objc.Sel("accessibilityPerformPress")) } -// Simulates pressing Return in the accessibility element. [Full Topic] +// Simulates clicking the accessibility element. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsaccessibility/1534952-accessibilityperformconfirm?language=objc -func (a_ AccessibilityWrapper) AccessibilityPerformConfirm() bool { - rv := objc.Call[bool](a_, objc.Sel("accessibilityPerformConfirm")) +// [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_ AccessibilityWrapper) HasAccessibilityPerformIncrement() bool { - return a_.RespondsToSelector(objc.Sel("accessibilityPerformIncrement")) +func (a_ AccessibilityObject) HasAccessibilityScreenSizeForLayoutSize() bool { + return a_.RespondsToSelector(objc.Sel("accessibilityScreenSizeForLayoutSize:")) } -// Increments the accessibility element’s value. [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/1525705-accessibilityperformincrement?language=objc -func (a_ AccessibilityWrapper) AccessibilityPerformIncrement() bool { - rv := objc.Call[bool](a_, objc.Sel("accessibilityPerformIncrement")) +// [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_ AccessibilityWrapper) HasAccessibilityStyleRangeForIndex() bool { - return a_.RespondsToSelector(objc.Sel("accessibilityStyleRangeForIndex:")) +func (a_ AccessibilityObject) HasAccessibilityFrameForRange() bool { + return a_.RespondsToSelector(objc.Sel("accessibilityFrameForRange:")) } -// Returns a range of characters that all have the same style as the specified character. [Full Topic] +// Returns the rectangle that encloses the specified range of characters. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsaccessibility/1530474-accessibilitystylerangeforindex?language=objc -func (a_ AccessibilityWrapper) AccessibilityStyleRangeForIndex(index int) foundation.Range { - rv := objc.Call[foundation.Range](a_, objc.Sel("accessibilityStyleRangeForIndex:"), index) +// [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 } -func (a_ AccessibilityWrapper) HasAccessibilityRangeForIndex() bool { +func (a_ AccessibilityObject) HasAccessibilityRangeForIndex() bool { return a_.RespondsToSelector(objc.Sel("accessibilityRangeForIndex:")) } // Returns the range of characters for the glyph that includes the specified character. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/appkit/nsaccessibility/1525329-accessibilityrangeforindex?language=objc -func (a_ AccessibilityWrapper) AccessibilityRangeForIndex(index int) foundation.Range { +func (a_ AccessibilityObject) AccessibilityRangeForIndex(index int) foundation.Range { rv := objc.Call[foundation.Range](a_, objc.Sel("accessibilityRangeForIndex:"), index) return rv } -func (a_ AccessibilityWrapper) HasAccessibilityPerformRaise() bool { - return a_.RespondsToSelector(objc.Sel("accessibilityPerformRaise")) +func (a_ AccessibilityObject) HasAccessibilityRangeForLine() bool { + return a_.RespondsToSelector(objc.Sel("accessibilityRangeForLine:")) } -// Brings the window to the front. [Full Topic] +// Returns the range of characters in the specified line. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsaccessibility/1530545-accessibilityperformraise?language=objc -func (a_ AccessibilityWrapper) AccessibilityPerformRaise() bool { - rv := objc.Call[bool](a_, objc.Sel("accessibilityPerformRaise")) +// [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_ AccessibilityWrapper) HasAccessibilityPerformCancel() bool { +func (a_ AccessibilityObject) HasAccessibilityPerformCancel() bool { return a_.RespondsToSelector(objc.Sel("accessibilityPerformCancel")) } // Cancels the current operation. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/appkit/nsaccessibility/1528679-accessibilityperformcancel?language=objc -func (a_ AccessibilityWrapper) AccessibilityPerformCancel() bool { +func (a_ AccessibilityObject) AccessibilityPerformCancel() bool { rv := objc.Call[bool](a_, objc.Sel("accessibilityPerformCancel")) return rv } -func (a_ AccessibilityWrapper) HasAccessibilityStringForRange() bool { - return a_.RespondsToSelector(objc.Sel("accessibilityStringForRange:")) -} - -// Returns the substring for the specified range. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsaccessibility/1534940-accessibilitystringforrange?language=objc -func (a_ AccessibilityWrapper) AccessibilityStringForRange(range_ foundation.Range) string { - rv := objc.Call[string](a_, objc.Sel("accessibilityStringForRange:"), range_) - return rv -} - -func (a_ AccessibilityWrapper) HasIsAccessibilitySelectorAllowed() bool { - return a_.RespondsToSelector(objc.Sel("isAccessibilitySelectorAllowed:")) -} - -// 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/1524956-isaccessibilityselectorallowed?language=objc -func (a_ AccessibilityWrapper) IsAccessibilitySelectorAllowed(selector objc.Selector) bool { - rv := objc.Call[bool](a_, objc.Sel("isAccessibilitySelectorAllowed:"), selector) - return rv -} - -func (a_ AccessibilityWrapper) HasAccessibilityCellForColumnRow() bool { - return a_.RespondsToSelector(objc.Sel("accessibilityCellForColumn:row:")) -} - -// 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_ AccessibilityWrapper) AccessibilityCellForColumnRow(column int, row int) objc.Object { - rv := objc.Call[objc.Object](a_, objc.Sel("accessibilityCellForColumn:row:"), column, row) - return rv -} - -func (a_ AccessibilityWrapper) HasAccessibilityPerformPick() bool { +func (a_ AccessibilityObject) HasAccessibilityPerformPick() bool { return a_.RespondsToSelector(objc.Sel("accessibilityPerformPick")) } // Selects the accessibility element. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/appkit/nsaccessibility/1535130-accessibilityperformpick?language=objc -func (a_ AccessibilityWrapper) AccessibilityPerformPick() bool { +func (a_ AccessibilityObject) AccessibilityPerformPick() bool { rv := objc.Call[bool](a_, objc.Sel("accessibilityPerformPick")) return rv } -func (a_ AccessibilityWrapper) HasAccessibilityScreenSizeForLayoutSize() bool { - return a_.RespondsToSelector(objc.Sel("accessibilityScreenSizeForLayoutSize:")) +func (a_ AccessibilityObject) HasAccessibilityLayoutSizeForScreenSize() bool { + return a_.RespondsToSelector(objc.Sel("accessibilityLayoutSizeForScreenSize:")) } -// Converts the provided size in the layout area’s coordinates to a size in the screen’s coordinate system. [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/1526114-accessibilityscreensizeforlayout?language=objc -func (a_ AccessibilityWrapper) 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/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_ AccessibilityWrapper) HasAccessibilityLayoutPointForScreenPoint() bool { +func (a_ AccessibilityObject) HasAccessibilityLayoutPointForScreenPoint() bool { return a_.RespondsToSelector(objc.Sel("accessibilityLayoutPointForScreenPoint:")) } // 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/1526401-accessibilitylayoutpointforscree?language=objc -func (a_ AccessibilityWrapper) AccessibilityLayoutPointForScreenPoint(point foundation.Point) foundation.Point { +func (a_ AccessibilityObject) AccessibilityLayoutPointForScreenPoint(point foundation.Point) foundation.Point { rv := objc.Call[foundation.Point](a_, objc.Sel("accessibilityLayoutPointForScreenPoint:"), point) return rv } -func (a_ AccessibilityWrapper) HasSetAccessibilityClearButton() bool { - return a_.RespondsToSelector(objc.Sel("setAccessibilityClearButton:")) -} - -// The clear button for the search field. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsaccessibility/1534949-accessibilityclearbutton?language=objc -func (a_ AccessibilityWrapper) SetAccessibilityClearButton(value objc.IObject) { - objc.Call[objc.Void](a_, objc.Sel("setAccessibilityClearButton:"), value) -} - -func (a_ AccessibilityWrapper) HasAccessibilityClearButton() bool { - return a_.RespondsToSelector(objc.Sel("accessibilityClearButton")) +func (a_ AccessibilityObject) HasAccessibilityPerformIncrement() bool { + return a_.RespondsToSelector(objc.Sel("accessibilityPerformIncrement")) } -// The clear button for the search field. [Full Topic] +// Increments the accessibility element’s value. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsaccessibility/1534949-accessibilityclearbutton?language=objc -func (a_ AccessibilityWrapper) AccessibilityClearButton() objc.Object { - rv := objc.Call[objc.Object](a_, objc.Sel("accessibilityClearButton")) +// [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_ AccessibilityWrapper) HasSetAccessibilityOverflowButton() bool { - return a_.RespondsToSelector(objc.Sel("setAccessibilityOverflowButton:")) +func (a_ AccessibilityObject) HasSetAccessibilityHandles() bool { + return a_.RespondsToSelector(objc.Sel("setAccessibilityHandles:")) } -// The overflow button for the toolbar. [Full Topic] +// The drag handle accessibility elements for the layout item element. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsaccessibility/1534943-accessibilityoverflowbutton?language=objc -func (a_ AccessibilityWrapper) SetAccessibilityOverflowButton(value objc.IObject) { - objc.Call[objc.Void](a_, objc.Sel("setAccessibilityOverflowButton:"), 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_ AccessibilityWrapper) HasAccessibilityOverflowButton() bool { - return a_.RespondsToSelector(objc.Sel("accessibilityOverflowButton")) +func (a_ AccessibilityObject) HasAccessibilityHandles() bool { + return a_.RespondsToSelector(objc.Sel("accessibilityHandles")) } -// The overflow button for the toolbar. [Full Topic] +// The drag handle accessibility elements for the layout item element. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsaccessibility/1534943-accessibilityoverflowbutton?language=objc -func (a_ AccessibilityWrapper) AccessibilityOverflowButton() objc.Object { - rv := objc.Call[objc.Object](a_, objc.Sel("accessibilityOverflowButton")) +// [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_ AccessibilityWrapper) HasSetAccessibilityChildren() bool { - return a_.RespondsToSelector(objc.Sel("setAccessibilityChildren:")) +func (a_ AccessibilityObject) HasSetAccessibilityActivationPoint() bool { + return a_.RespondsToSelector(objc.Sel("setAccessibilityActivationPoint:")) } -// The child accessibility elements in the accessibility hierarchy. [Full Topic] +// The activation point for the user interface element. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsaccessibility/1535018-accessibilitychildren?language=objc -func (a_ AccessibilityWrapper) SetAccessibilityChildren(value []objc.IObject) { - objc.Call[objc.Void](a_, objc.Sel("setAccessibilityChildren:"), 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_ AccessibilityWrapper) HasAccessibilityChildren() bool { - return a_.RespondsToSelector(objc.Sel("accessibilityChildren")) +func (a_ AccessibilityObject) HasAccessibilityActivationPoint() bool { + return a_.RespondsToSelector(objc.Sel("accessibilityActivationPoint")) } -// The child accessibility elements in the accessibility hierarchy. [Full Topic] +// The activation point for the user interface element. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsaccessibility/1535018-accessibilitychildren?language=objc -func (a_ AccessibilityWrapper) AccessibilityChildren() []objc.Object { - rv := objc.Call[[]objc.Object](a_, objc.Sel("accessibilityChildren")) +// [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_ AccessibilityWrapper) HasSetAccessibilityColumnHeaderUIElements() bool { - return a_.RespondsToSelector(objc.Sel("setAccessibilityColumnHeaderUIElements:")) +func (a_ AccessibilityObject) HasSetAccessibilityMarkerUIElements() bool { + return a_.RespondsToSelector(objc.Sel("setAccessibilityMarkerUIElements:")) } -// The column header accessibility elements for the table or outline. [Full Topic] +// An array of marker accessibility elements for the ruler. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsaccessibility/1534988-accessibilitycolumnheaderuieleme?language=objc -func (a_ AccessibilityWrapper) SetAccessibilityColumnHeaderUIElements(value []objc.IObject) { - objc.Call[objc.Void](a_, objc.Sel("setAccessibilityColumnHeaderUIElements:"), 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_ AccessibilityWrapper) HasAccessibilityColumnHeaderUIElements() bool { - return a_.RespondsToSelector(objc.Sel("accessibilityColumnHeaderUIElements")) +func (a_ AccessibilityObject) HasAccessibilityMarkerUIElements() bool { + return a_.RespondsToSelector(objc.Sel("accessibilityMarkerUIElements")) } -// The column header accessibility elements for the table or outline. [Full Topic] +// An array of marker accessibility elements for the ruler. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsaccessibility/1534988-accessibilitycolumnheaderuieleme?language=objc -func (a_ AccessibilityWrapper) AccessibilityColumnHeaderUIElements() []objc.Object { - rv := objc.Call[[]objc.Object](a_, objc.Sel("accessibilityColumnHeaderUIElements")) +// [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_ AccessibilityWrapper) HasSetAccessibilitySelectedTextRanges() bool { - return a_.RespondsToSelector(objc.Sel("setAccessibilitySelectedTextRanges:")) +func (a_ AccessibilityObject) HasSetAccessibilityRowCount() bool { + return a_.RespondsToSelector(objc.Sel("setAccessibilityRowCount:")) } -// An array of ranges for the currently selected text. [Full Topic] +// The number of rows in the accessibility element’s grid. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsaccessibility/1535133-accessibilityselectedtextranges?language=objc -func (a_ AccessibilityWrapper) SetAccessibilitySelectedTextRanges(value []foundation.IValue) { - objc.Call[objc.Void](a_, objc.Sel("setAccessibilitySelectedTextRanges:"), 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_ AccessibilityWrapper) HasAccessibilitySelectedTextRanges() bool { - return a_.RespondsToSelector(objc.Sel("accessibilitySelectedTextRanges")) +func (a_ AccessibilityObject) HasAccessibilityRowCount() bool { + return a_.RespondsToSelector(objc.Sel("accessibilityRowCount")) } -// An array of ranges for the currently selected text. [Full Topic] +// The number of rows in the accessibility element’s grid. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsaccessibility/1535133-accessibilityselectedtextranges?language=objc -func (a_ AccessibilityWrapper) AccessibilitySelectedTextRanges() []foundation.Value { - rv := objc.Call[[]foundation.Value](a_, objc.Sel("accessibilitySelectedTextRanges")) +// [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_ AccessibilityWrapper) HasSetAccessibilityCriticalValue() bool { - return a_.RespondsToSelector(objc.Sel("setAccessibilityCriticalValue:")) +func (a_ AccessibilityObject) HasSetAccessibilityAlternateUIVisible() bool { + return a_.RespondsToSelector(objc.Sel("setAccessibilityAlternateUIVisible:")) } -// The critical value for the level indicator. [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/1534973-accessibilitycriticalvalue?language=objc -func (a_ AccessibilityWrapper) SetAccessibilityCriticalValue(value objc.IObject) { - objc.Call[objc.Void](a_, objc.Sel("setAccessibilityCriticalValue:"), 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_ AccessibilityWrapper) HasAccessibilityCriticalValue() bool { - return a_.RespondsToSelector(objc.Sel("accessibilityCriticalValue")) +func (a_ AccessibilityObject) HasIsAccessibilityAlternateUIVisible() bool { + return a_.RespondsToSelector(objc.Sel("isAccessibilityAlternateUIVisible")) } -// The critical value for the level indicator. [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/1534973-accessibilitycriticalvalue?language=objc -func (a_ AccessibilityWrapper) AccessibilityCriticalValue() objc.Object { - rv := objc.Call[objc.Object](a_, objc.Sel("accessibilityCriticalValue")) +// [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_ AccessibilityWrapper) HasSetAccessibilityHeader() bool { - return a_.RespondsToSelector(objc.Sel("setAccessibilityHeader:")) +func (a_ AccessibilityObject) HasSetAccessibilityRequired() bool { + return a_.RespondsToSelector(objc.Sel("setAccessibilityRequired:")) } -// The header for the table view. [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/1534938-accessibilityheader?language=objc -func (a_ AccessibilityWrapper) SetAccessibilityHeader(value objc.IObject) { - objc.Call[objc.Void](a_, objc.Sel("setAccessibilityHeader:"), 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_ AccessibilityWrapper) HasAccessibilityHeader() bool { - return a_.RespondsToSelector(objc.Sel("accessibilityHeader")) +func (a_ AccessibilityObject) HasIsAccessibilityRequired() bool { + return a_.RespondsToSelector(objc.Sel("isAccessibilityRequired")) } -// The header for the table view. [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/1534938-accessibilityheader?language=objc -func (a_ AccessibilityWrapper) AccessibilityHeader() objc.Object { - rv := objc.Call[objc.Object](a_, objc.Sel("accessibilityHeader")) +// [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_ AccessibilityWrapper) HasSetAccessibilitySharedCharacterRange() bool { - return a_.RespondsToSelector(objc.Sel("setAccessibilitySharedCharacterRange:")) +func (a_ AccessibilityObject) HasSetAccessibilityHorizontalUnits() bool { + return a_.RespondsToSelector(objc.Sel("setAccessibilityHorizontalUnits:")) } -// The range of characters that the accessibility element displays. [Full Topic] +// The units that the layout area uses for horizontal values. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsaccessibility/1535069-accessibilitysharedcharacterrang?language=objc -func (a_ AccessibilityWrapper) SetAccessibilitySharedCharacterRange(value foundation.Range) { - objc.Call[objc.Void](a_, objc.Sel("setAccessibilitySharedCharacterRange:"), 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_ AccessibilityWrapper) HasAccessibilitySharedCharacterRange() bool { - return a_.RespondsToSelector(objc.Sel("accessibilitySharedCharacterRange")) +func (a_ AccessibilityObject) HasAccessibilityHorizontalUnits() bool { + return a_.RespondsToSelector(objc.Sel("accessibilityHorizontalUnits")) } -// The range of characters that the accessibility element displays. [Full Topic] +// The units that the layout area uses for horizontal values. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsaccessibility/1535069-accessibilitysharedcharacterrang?language=objc -func (a_ AccessibilityWrapper) AccessibilitySharedCharacterRange() foundation.Range { - rv := objc.Call[foundation.Range](a_, objc.Sel("accessibilitySharedCharacterRange")) +// [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_ AccessibilityWrapper) HasSetAccessibilityMarkerGroupUIElement() bool { - return a_.RespondsToSelector(objc.Sel("setAccessibilityMarkerGroupUIElement:")) +func (a_ AccessibilityObject) HasSetAccessibilityHeader() bool { + return a_.RespondsToSelector(objc.Sel("setAccessibilityHeader:")) } -// The user interface element that functions as a marker group for the ruler accessibility element. [Full Topic] +// The header for the table view. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsaccessibility/1535081-accessibilitymarkergroupuielemen?language=objc -func (a_ AccessibilityWrapper) SetAccessibilityMarkerGroupUIElement(value objc.IObject) { - objc.Call[objc.Void](a_, objc.Sel("setAccessibilityMarkerGroupUIElement:"), value) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsaccessibility/1534938-accessibilityheader?language=objc +func (a_ AccessibilityObject) SetAccessibilityHeader(value objc.Object) { + objc.Call[objc.Void](a_, objc.Sel("setAccessibilityHeader:"), value) } -func (a_ AccessibilityWrapper) HasAccessibilityMarkerGroupUIElement() bool { - return a_.RespondsToSelector(objc.Sel("accessibilityMarkerGroupUIElement")) +func (a_ AccessibilityObject) HasAccessibilityHeader() bool { + return a_.RespondsToSelector(objc.Sel("accessibilityHeader")) } -// The user interface element that functions as a marker group for the ruler accessibility element. [Full Topic] +// The header for the table view. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsaccessibility/1535081-accessibilitymarkergroupuielemen?language=objc -func (a_ AccessibilityWrapper) AccessibilityMarkerGroupUIElement() objc.Object { - rv := objc.Call[objc.Object](a_, objc.Sel("accessibilityMarkerGroupUIElement")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsaccessibility/1534938-accessibilityheader?language=objc +func (a_ AccessibilityObject) AccessibilityHeader() objc.Object { + rv := objc.Call[objc.Object](a_, objc.Sel("accessibilityHeader")) return rv } -func (a_ AccessibilityWrapper) HasSetAccessibilityRequired() bool { - return a_.RespondsToSelector(objc.Sel("setAccessibilityRequired:")) +func (a_ AccessibilityObject) HasSetAccessibilityDisclosedRows() bool { + return a_.RespondsToSelector(objc.Sel("setAccessibilityDisclosedRows:")) } -// A Boolean value that determines whether the accessibility element must have content for successful submission of a form. [Full Topic] +// The rows that the current row discloses. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsaccessibility/1646618-accessibilityrequired?language=objc -func (a_ AccessibilityWrapper) SetAccessibilityRequired(value bool) { - objc.Call[objc.Void](a_, objc.Sel("setAccessibilityRequired:"), 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_ AccessibilityWrapper) HasIsAccessibilityRequired() bool { - return a_.RespondsToSelector(objc.Sel("isAccessibilityRequired")) +func (a_ AccessibilityObject) HasAccessibilityDisclosedRows() bool { + return a_.RespondsToSelector(objc.Sel("accessibilityDisclosedRows")) } -// A Boolean value that determines whether the accessibility element must have content for successful submission of a form. [Full Topic] +// The rows that the current row discloses. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsaccessibility/1646618-accessibilityrequired?language=objc -func (a_ AccessibilityWrapper) IsAccessibilityRequired() bool { - rv := objc.Call[bool](a_, objc.Sel("isAccessibilityRequired")) +// [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 } -func (a_ AccessibilityWrapper) HasSetAccessibilitySearchButton() bool { - return a_.RespondsToSelector(objc.Sel("setAccessibilitySearchButton:")) +func (a_ AccessibilityObject) HasSetAccessibilityMenuBar() bool { + return a_.RespondsToSelector(objc.Sel("setAccessibilityMenuBar:")) } -// The search button for the search field. [Full Topic] +// The app’s menu bar. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsaccessibility/1535105-accessibilitysearchbutton?language=objc -func (a_ AccessibilityWrapper) SetAccessibilitySearchButton(value objc.IObject) { - objc.Call[objc.Void](a_, objc.Sel("setAccessibilitySearchButton:"), 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_ AccessibilityWrapper) HasAccessibilitySearchButton() bool { - return a_.RespondsToSelector(objc.Sel("accessibilitySearchButton")) +func (a_ AccessibilityObject) HasAccessibilityMenuBar() bool { + return a_.RespondsToSelector(objc.Sel("accessibilityMenuBar")) } -// The search button for the search field. [Full Topic] +// The app’s menu bar. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsaccessibility/1535105-accessibilitysearchbutton?language=objc -func (a_ AccessibilityWrapper) AccessibilitySearchButton() objc.Object { - rv := objc.Call[objc.Object](a_, objc.Sel("accessibilitySearchButton")) +// [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_ AccessibilityWrapper) HasSetAccessibilityParent() bool { - return a_.RespondsToSelector(objc.Sel("setAccessibilityParent:")) +func (a_ AccessibilityObject) HasSetAccessibilityDisclosureLevel() bool { + return a_.RespondsToSelector(objc.Sel("setAccessibilityDisclosureLevel:")) } -// The accessibility element’s parent in the accessibility hierarchy. [Full Topic] +// The indention level for the row. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsaccessibility/1535040-accessibilityparent?language=objc -func (a_ AccessibilityWrapper) SetAccessibilityParent(value objc.IObject) { - objc.Call[objc.Void](a_, objc.Sel("setAccessibilityParent:"), 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_ AccessibilityWrapper) HasAccessibilityParent() bool { - return a_.RespondsToSelector(objc.Sel("accessibilityParent")) +func (a_ AccessibilityObject) HasAccessibilityDisclosureLevel() bool { + return a_.RespondsToSelector(objc.Sel("accessibilityDisclosureLevel")) } -// The accessibility element’s parent in the accessibility hierarchy. [Full Topic] +// The indention level for the row. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsaccessibility/1535040-accessibilityparent?language=objc -func (a_ AccessibilityWrapper) AccessibilityParent() objc.Object { - rv := objc.Call[objc.Object](a_, objc.Sel("accessibilityParent")) +// [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_ AccessibilityWrapper) HasSetAccessibilityNumberOfCharacters() bool { - return a_.RespondsToSelector(objc.Sel("setAccessibilityNumberOfCharacters:")) +func (a_ AccessibilityObject) HasSetAccessibilityExtrasMenuBar() bool { + return a_.RespondsToSelector(objc.Sel("setAccessibilityExtrasMenuBar:")) } -// The number of characters in the text. [Full Topic] +// The icon for the app’s menu bar extra. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsaccessibility/1534982-accessibilitynumberofcharacters?language=objc -func (a_ AccessibilityWrapper) SetAccessibilityNumberOfCharacters(value int) { - objc.Call[objc.Void](a_, objc.Sel("setAccessibilityNumberOfCharacters:"), 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_ AccessibilityWrapper) HasAccessibilityNumberOfCharacters() bool { - return a_.RespondsToSelector(objc.Sel("accessibilityNumberOfCharacters")) +func (a_ AccessibilityObject) HasAccessibilityExtrasMenuBar() bool { + return a_.RespondsToSelector(objc.Sel("accessibilityExtrasMenuBar")) } -// The number of characters in the text. [Full Topic] +// The icon for the app’s menu bar extra. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsaccessibility/1534982-accessibilitynumberofcharacters?language=objc -func (a_ AccessibilityWrapper) AccessibilityNumberOfCharacters() int { - rv := objc.Call[int](a_, objc.Sel("accessibilityNumberOfCharacters")) +// [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_ AccessibilityWrapper) HasSetAccessibilityDefaultButton() bool { - return a_.RespondsToSelector(objc.Sel("setAccessibilityDefaultButton:")) +func (a_ AccessibilityObject) HasSetAccessibilityIdentifier() bool { + return a_.RespondsToSelector(objc.Sel("setAccessibilityIdentifier:")) } -// The child accessibility element that represents the window’s default button. [Full Topic] +// The accessibility element’s identity. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsaccessibility/1534957-accessibilitydefaultbutton?language=objc -func (a_ AccessibilityWrapper) SetAccessibilityDefaultButton(value objc.IObject) { - objc.Call[objc.Void](a_, objc.Sel("setAccessibilityDefaultButton:"), 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_ AccessibilityWrapper) HasAccessibilityDefaultButton() bool { - return a_.RespondsToSelector(objc.Sel("accessibilityDefaultButton")) +func (a_ AccessibilityObject) HasAccessibilityIdentifier() bool { + return a_.RespondsToSelector(objc.Sel("accessibilityIdentifier")) } -// The child accessibility element that represents the window’s default button. [Full Topic] +// The accessibility element’s identity. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsaccessibility/1534957-accessibilitydefaultbutton?language=objc -func (a_ AccessibilityWrapper) AccessibilityDefaultButton() objc.Object { - rv := objc.Call[objc.Object](a_, objc.Sel("accessibilityDefaultButton")) +// [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_ AccessibilityWrapper) HasSetAccessibilityTitle() bool { - return a_.RespondsToSelector(objc.Sel("setAccessibilityTitle:")) +func (a_ AccessibilityObject) HasSetAccessibilityMaxValue() bool { + return a_.RespondsToSelector(objc.Sel("setAccessibilityMaxValue:")) } -// The title of the accessibility element—for example, a button’s visible text. [Full Topic] +// The maximum value for the accessibility element. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsaccessibility/1535033-accessibilitytitle?language=objc -func (a_ AccessibilityWrapper) SetAccessibilityTitle(value string) { - objc.Call[objc.Void](a_, objc.Sel("setAccessibilityTitle:"), 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_ AccessibilityWrapper) HasAccessibilityTitle() bool { - return a_.RespondsToSelector(objc.Sel("accessibilityTitle")) +func (a_ AccessibilityObject) HasAccessibilityMaxValue() bool { + return a_.RespondsToSelector(objc.Sel("accessibilityMaxValue")) } -// The title of the accessibility element—for example, a button’s visible text. [Full Topic] +// The maximum value for the accessibility element. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsaccessibility/1535033-accessibilitytitle?language=objc -func (a_ AccessibilityWrapper) AccessibilityTitle() string { - rv := objc.Call[string](a_, objc.Sel("accessibilityTitle")) +// [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_ AccessibilityWrapper) HasSetAccessibilityRowHeaderUIElements() bool { - return a_.RespondsToSelector(objc.Sel("setAccessibilityRowHeaderUIElements:")) +func (a_ AccessibilityObject) HasSetAccessibilityRoleDescription() bool { + return a_.RespondsToSelector(objc.Sel("setAccessibilityRoleDescription:")) } -// The row header accessibility elements for the table or outline. [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/1535014-accessibilityrowheaderuielements?language=objc -func (a_ AccessibilityWrapper) SetAccessibilityRowHeaderUIElements(value []objc.IObject) { - objc.Call[objc.Void](a_, objc.Sel("setAccessibilityRowHeaderUIElements:"), 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_ AccessibilityWrapper) HasAccessibilityRowHeaderUIElements() bool { - return a_.RespondsToSelector(objc.Sel("accessibilityRowHeaderUIElements")) +func (a_ AccessibilityObject) HasAccessibilityRoleDescription() bool { + return a_.RespondsToSelector(objc.Sel("accessibilityRoleDescription")) } -// The row header accessibility elements for the table or outline. [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/1535014-accessibilityrowheaderuielements?language=objc -func (a_ AccessibilityWrapper) AccessibilityRowHeaderUIElements() []objc.Object { - rv := objc.Call[[]objc.Object](a_, objc.Sel("accessibilityRowHeaderUIElements")) +// [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_ AccessibilityWrapper) HasSetAccessibilityVisibleCharacterRange() bool { - return a_.RespondsToSelector(objc.Sel("setAccessibilityVisibleCharacterRange:")) +func (a_ AccessibilityObject) HasSetAccessibilityIncrementButton() bool { + return a_.RespondsToSelector(objc.Sel("setAccessibilityIncrementButton:")) } -// The range of visible characters in the document. [Full Topic] +// The increment button for the stepper accessibility element. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsaccessibility/1535058-accessibilityvisiblecharacterran?language=objc -func (a_ AccessibilityWrapper) SetAccessibilityVisibleCharacterRange(value foundation.Range) { - objc.Call[objc.Void](a_, objc.Sel("setAccessibilityVisibleCharacterRange:"), 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_ AccessibilityWrapper) HasAccessibilityVisibleCharacterRange() bool { - return a_.RespondsToSelector(objc.Sel("accessibilityVisibleCharacterRange")) +func (a_ AccessibilityObject) HasAccessibilityIncrementButton() bool { + return a_.RespondsToSelector(objc.Sel("accessibilityIncrementButton")) } -// The range of visible characters in the document. [Full Topic] +// The increment button for the stepper accessibility element. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsaccessibility/1535058-accessibilityvisiblecharacterran?language=objc -func (a_ AccessibilityWrapper) AccessibilityVisibleCharacterRange() foundation.Range { - rv := objc.Call[foundation.Range](a_, objc.Sel("accessibilityVisibleCharacterRange")) +// [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_ AccessibilityWrapper) HasSetAccessibilityFrame() bool { - return a_.RespondsToSelector(objc.Sel("setAccessibilityFrame:")) +func (a_ AccessibilityObject) HasSetAccessibilityURL() bool { + return a_.RespondsToSelector(objc.Sel("setAccessibilityURL:")) } -// The accessibility element’s frame in screen coordinates. [Full Topic] +// The URL for the accessibility element. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsaccessibility/1534939-accessibilityframe?language=objc -func (a_ AccessibilityWrapper) SetAccessibilityFrame(value foundation.Rect) { - objc.Call[objc.Void](a_, objc.Sel("setAccessibilityFrame:"), 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:"), objc.Ptr(value)) } -func (a_ AccessibilityWrapper) HasAccessibilityFrame() bool { - return a_.RespondsToSelector(objc.Sel("accessibilityFrame")) +func (a_ AccessibilityObject) HasAccessibilityURL() bool { + return a_.RespondsToSelector(objc.Sel("accessibilityURL")) } -// The accessibility element’s frame in screen coordinates. [Full Topic] +// The URL for the accessibility element. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsaccessibility/1534939-accessibilityframe?language=objc -func (a_ AccessibilityWrapper) AccessibilityFrame() foundation.Rect { - rv := objc.Call[foundation.Rect](a_, objc.Sel("accessibilityFrame")) +// [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_ AccessibilityWrapper) HasSetAccessibilityHidden() bool { - return a_.RespondsToSelector(objc.Sel("setAccessibilityHidden:")) +func (a_ AccessibilityObject) HasSetAccessibilityTitleUIElement() bool { + return a_.RespondsToSelector(objc.Sel("setAccessibilityTitleUIElement:")) } -// A Boolean value that determines whether the app is in a hidden state. [Full Topic] +// A static text element that represents the accessibility element’s title. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsaccessibility/1534961-accessibilityhidden?language=objc -func (a_ AccessibilityWrapper) SetAccessibilityHidden(value bool) { - objc.Call[objc.Void](a_, objc.Sel("setAccessibilityHidden:"), 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_ AccessibilityWrapper) HasIsAccessibilityHidden() bool { - return a_.RespondsToSelector(objc.Sel("isAccessibilityHidden")) +func (a_ AccessibilityObject) HasAccessibilityTitleUIElement() bool { + return a_.RespondsToSelector(objc.Sel("accessibilityTitleUIElement")) } -// A Boolean value that determines whether the app is in a hidden state. [Full Topic] +// A static text element that represents the accessibility element’s title. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsaccessibility/1534961-accessibilityhidden?language=objc -func (a_ AccessibilityWrapper) IsAccessibilityHidden() bool { - rv := objc.Call[bool](a_, objc.Sel("isAccessibilityHidden")) +// [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_ AccessibilityWrapper) HasSetAccessibilityMarkerTypeDescription() bool { - return a_.RespondsToSelector(objc.Sel("setAccessibilityMarkerTypeDescription:")) +func (a_ AccessibilityObject) HasSetAccessibilityVisibleCells() bool { + return a_.RespondsToSelector(objc.Sel("setAccessibilityVisibleCells:")) } -// A human-readable description of the marker type. [Full Topic] +// The visible cells for the table. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsaccessibility/1534968-accessibilitymarkertypedescripti?language=objc -func (a_ AccessibilityWrapper) SetAccessibilityMarkerTypeDescription(value string) { - objc.Call[objc.Void](a_, objc.Sel("setAccessibilityMarkerTypeDescription:"), 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_ AccessibilityWrapper) HasAccessibilityMarkerTypeDescription() bool { - return a_.RespondsToSelector(objc.Sel("accessibilityMarkerTypeDescription")) +func (a_ AccessibilityObject) HasAccessibilityVisibleCells() bool { + return a_.RespondsToSelector(objc.Sel("accessibilityVisibleCells")) } -// A human-readable description of the marker type. [Full Topic] +// The visible cells for the table. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsaccessibility/1534968-accessibilitymarkertypedescripti?language=objc -func (a_ AccessibilityWrapper) AccessibilityMarkerTypeDescription() string { - rv := objc.Call[string](a_, objc.Sel("accessibilityMarkerTypeDescription")) +// [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_ AccessibilityWrapper) HasSetAccessibilityRowIndexRange() bool { - return a_.RespondsToSelector(objc.Sel("setAccessibilityRowIndexRange:")) +func (a_ AccessibilityObject) HasSetAccessibilityPlaceholderValue() bool { + return a_.RespondsToSelector(objc.Sel("setAccessibilityPlaceholderValue:")) } -// The row index range of the cell. [Full Topic] +// The placeholder value for the accessibility element. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsaccessibility/1535153-accessibilityrowindexrange?language=objc -func (a_ AccessibilityWrapper) SetAccessibilityRowIndexRange(value foundation.Range) { - objc.Call[objc.Void](a_, objc.Sel("setAccessibilityRowIndexRange:"), 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_ AccessibilityWrapper) HasAccessibilityRowIndexRange() bool { - return a_.RespondsToSelector(objc.Sel("accessibilityRowIndexRange")) +func (a_ AccessibilityObject) HasAccessibilityPlaceholderValue() bool { + return a_.RespondsToSelector(objc.Sel("accessibilityPlaceholderValue")) } -// The row index range of the cell. [Full Topic] +// The placeholder value for the accessibility element. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsaccessibility/1535153-accessibilityrowindexrange?language=objc -func (a_ AccessibilityWrapper) AccessibilityRowIndexRange() foundation.Range { - rv := objc.Call[foundation.Range](a_, objc.Sel("accessibilityRowIndexRange")) +// [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_ AccessibilityWrapper) HasSetAccessibilityVerticalUnits() bool { - return a_.RespondsToSelector(objc.Sel("setAccessibilityVerticalUnits:")) +func (a_ AccessibilityObject) HasSetAccessibilityWarningValue() bool { + return a_.RespondsToSelector(objc.Sel("setAccessibilityWarningValue:")) } -// The units that the layout area uses for vertical values. [Full Topic] +// The warning value for the level indicator. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsaccessibility/1535011-accessibilityverticalunits?language=objc -func (a_ AccessibilityWrapper) SetAccessibilityVerticalUnits(value AccessibilityUnits) { - objc.Call[objc.Void](a_, objc.Sel("setAccessibilityVerticalUnits:"), 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_ AccessibilityWrapper) HasAccessibilityVerticalUnits() bool { - return a_.RespondsToSelector(objc.Sel("accessibilityVerticalUnits")) +func (a_ AccessibilityObject) HasAccessibilityWarningValue() bool { + return a_.RespondsToSelector(objc.Sel("accessibilityWarningValue")) } -// The units that the layout area uses for vertical values. [Full Topic] +// The warning value for the level indicator. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsaccessibility/1535011-accessibilityverticalunits?language=objc -func (a_ AccessibilityWrapper) AccessibilityVerticalUnits() AccessibilityUnits { - rv := objc.Call[AccessibilityUnits](a_, objc.Sel("accessibilityVerticalUnits")) +// [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_ AccessibilityWrapper) HasSetAccessibilityVisibleRows() bool { - return a_.RespondsToSelector(objc.Sel("setAccessibilityVisibleRows:")) +func (a_ AccessibilityObject) HasSetAccessibilityDecrementButton() bool { + return a_.RespondsToSelector(objc.Sel("setAccessibilityDecrementButton:")) } -// The visible rows for the table or outline. [Full Topic] +// The decrement button for the stepper accessibility element. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsaccessibility/1535004-accessibilityvisiblerows?language=objc -func (a_ AccessibilityWrapper) SetAccessibilityVisibleRows(value []objc.IObject) { - objc.Call[objc.Void](a_, objc.Sel("setAccessibilityVisibleRows:"), 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_ AccessibilityWrapper) HasAccessibilityVisibleRows() bool { - return a_.RespondsToSelector(objc.Sel("accessibilityVisibleRows")) +func (a_ AccessibilityObject) HasAccessibilityDecrementButton() bool { + return a_.RespondsToSelector(objc.Sel("accessibilityDecrementButton")) } -// The visible rows for the table or outline. [Full Topic] +// The decrement button for the stepper accessibility element. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsaccessibility/1535004-accessibilityvisiblerows?language=objc -func (a_ AccessibilityWrapper) AccessibilityVisibleRows() []objc.Object { - rv := objc.Call[[]objc.Object](a_, objc.Sel("accessibilityVisibleRows")) +// [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_ AccessibilityWrapper) HasSetAccessibilitySelectedCells() bool { - return a_.RespondsToSelector(objc.Sel("setAccessibilitySelectedCells:")) +func (a_ AccessibilityObject) HasSetAccessibilitySelectedColumns() bool { + return a_.RespondsToSelector(objc.Sel("setAccessibilitySelectedColumns:")) } -// The currently selected cells for the table. [Full Topic] +// The currently selected columns for the table or outline. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsaccessibility/1535101-accessibilityselectedcells?language=objc -func (a_ AccessibilityWrapper) SetAccessibilitySelectedCells(value []objc.IObject) { - objc.Call[objc.Void](a_, objc.Sel("setAccessibilitySelectedCells:"), 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_ AccessibilityWrapper) HasAccessibilitySelectedCells() bool { - return a_.RespondsToSelector(objc.Sel("accessibilitySelectedCells")) +func (a_ AccessibilityObject) HasAccessibilitySelectedColumns() bool { + return a_.RespondsToSelector(objc.Sel("accessibilitySelectedColumns")) } -// The currently selected cells for the table. [Full Topic] +// The currently selected columns for the table or outline. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsaccessibility/1535101-accessibilityselectedcells?language=objc -func (a_ AccessibilityWrapper) AccessibilitySelectedCells() []objc.Object { - rv := objc.Call[[]objc.Object](a_, objc.Sel("accessibilitySelectedCells")) +// [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_ AccessibilityWrapper) HasSetAccessibilityVisibleColumns() bool { - return a_.RespondsToSelector(objc.Sel("setAccessibilityVisibleColumns:")) +func (a_ AccessibilityObject) HasSetAccessibilityMinValue() bool { + return a_.RespondsToSelector(objc.Sel("setAccessibilityMinValue:")) } -// The visible columns for the table or outline. [Full Topic] +// The minimum value for the accessibility element. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsaccessibility/1535150-accessibilityvisiblecolumns?language=objc -func (a_ AccessibilityWrapper) SetAccessibilityVisibleColumns(value []objc.IObject) { - objc.Call[objc.Void](a_, objc.Sel("setAccessibilityVisibleColumns:"), 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_ AccessibilityWrapper) HasAccessibilityVisibleColumns() bool { - return a_.RespondsToSelector(objc.Sel("accessibilityVisibleColumns")) +func (a_ AccessibilityObject) HasAccessibilityMinValue() bool { + return a_.RespondsToSelector(objc.Sel("accessibilityMinValue")) } -// The visible columns for the table or outline. [Full Topic] +// The minimum value for the accessibility element. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsaccessibility/1535150-accessibilityvisiblecolumns?language=objc -func (a_ AccessibilityWrapper) AccessibilityVisibleColumns() []objc.Object { - rv := objc.Call[[]objc.Object](a_, objc.Sel("accessibilityVisibleColumns")) +// [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_ AccessibilityWrapper) HasSetAccessibilityMain() bool { - return a_.RespondsToSelector(objc.Sel("setAccessibilityMain:")) +func (a_ AccessibilityObject) HasSetAccessibilityLinkedUIElements() bool { + return a_.RespondsToSelector(objc.Sel("setAccessibilityLinkedUIElements:")) } -// A Boolean value that determines whether the window is the app’s main window. [Full Topic] +// The elements that have links with the accessibility element. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsaccessibility/1534936-accessibilitymain?language=objc -func (a_ AccessibilityWrapper) SetAccessibilityMain(value bool) { - objc.Call[objc.Void](a_, objc.Sel("setAccessibilityMain:"), 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_ AccessibilityWrapper) HasIsAccessibilityMain() bool { - return a_.RespondsToSelector(objc.Sel("isAccessibilityMain")) +func (a_ AccessibilityObject) HasAccessibilityLinkedUIElements() bool { + return a_.RespondsToSelector(objc.Sel("accessibilityLinkedUIElements")) } -// A Boolean value that determines whether the window is the app’s main window. [Full Topic] +// The elements that have links with the accessibility element. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsaccessibility/1534936-accessibilitymain?language=objc -func (a_ AccessibilityWrapper) IsAccessibilityMain() bool { - rv := objc.Call[bool](a_, objc.Sel("isAccessibilityMain")) +// [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_ AccessibilityWrapper) HasSetAccessibilityMarkerUIElements() bool { - return a_.RespondsToSelector(objc.Sel("setAccessibilityMarkerUIElements:")) +func (a_ AccessibilityObject) HasSetAccessibilityCustomActions() bool { + return a_.RespondsToSelector(objc.Sel("setAccessibilityCustomActions:")) } -// An array of marker accessibility elements for the ruler. [Full Topic] +// The custom actions of the current accessibility element. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsaccessibility/1535037-accessibilitymarkeruielements?language=objc -func (a_ AccessibilityWrapper) SetAccessibilityMarkerUIElements(value []objc.IObject) { - objc.Call[objc.Void](a_, objc.Sel("setAccessibilityMarkerUIElements:"), 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_ AccessibilityWrapper) HasAccessibilityMarkerUIElements() bool { - return a_.RespondsToSelector(objc.Sel("accessibilityMarkerUIElements")) +func (a_ AccessibilityObject) HasAccessibilityCustomActions() bool { + return a_.RespondsToSelector(objc.Sel("accessibilityCustomActions")) } -// An array of marker accessibility elements for the ruler. [Full Topic] +// The custom actions of the current accessibility element. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsaccessibility/1535037-accessibilitymarkeruielements?language=objc -func (a_ AccessibilityWrapper) AccessibilityMarkerUIElements() []objc.Object { - rv := objc.Call[[]objc.Object](a_, objc.Sel("accessibilityMarkerUIElements")) +// [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_ AccessibilityWrapper) HasSetAccessibilityWarningValue() bool { - return a_.RespondsToSelector(objc.Sel("setAccessibilityWarningValue:")) +func (a_ AccessibilityObject) HasSetAccessibilityColumnIndexRange() bool { + return a_.RespondsToSelector(objc.Sel("setAccessibilityColumnIndexRange:")) } -// The warning value for the level indicator. [Full Topic] +// The column index range of the cell. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsaccessibility/1535032-accessibilitywarningvalue?language=objc -func (a_ AccessibilityWrapper) SetAccessibilityWarningValue(value objc.IObject) { - objc.Call[objc.Void](a_, objc.Sel("setAccessibilityWarningValue:"), 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_ AccessibilityWrapper) HasAccessibilityWarningValue() bool { - return a_.RespondsToSelector(objc.Sel("accessibilityWarningValue")) +func (a_ AccessibilityObject) HasAccessibilityColumnIndexRange() bool { + return a_.RespondsToSelector(objc.Sel("accessibilityColumnIndexRange")) } -// The warning value for the level indicator. [Full Topic] +// The column index range of the cell. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsaccessibility/1535032-accessibilitywarningvalue?language=objc -func (a_ AccessibilityWrapper) AccessibilityWarningValue() objc.Object { - rv := objc.Call[objc.Object](a_, objc.Sel("accessibilityWarningValue")) +// [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_ AccessibilityWrapper) HasSetAccessibilityContents() bool { - return a_.RespondsToSelector(objc.Sel("setAccessibilityContents:")) +func (a_ AccessibilityObject) HasSetAccessibilityEdited() bool { + return a_.RespondsToSelector(objc.Sel("setAccessibilityEdited:")) } -// The contents of the current accessibility element. [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/1535026-accessibilitycontents?language=objc -func (a_ AccessibilityWrapper) SetAccessibilityContents(value []objc.IObject) { - objc.Call[objc.Void](a_, objc.Sel("setAccessibilityContents:"), 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_ AccessibilityWrapper) HasAccessibilityContents() bool { - return a_.RespondsToSelector(objc.Sel("accessibilityContents")) +func (a_ AccessibilityObject) HasIsAccessibilityEdited() bool { + return a_.RespondsToSelector(objc.Sel("isAccessibilityEdited")) } -// The contents of the current accessibility element. [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/1535026-accessibilitycontents?language=objc -func (a_ AccessibilityWrapper) AccessibilityContents() []objc.Object { - rv := objc.Call[[]objc.Object](a_, objc.Sel("accessibilityContents")) +// [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_ AccessibilityWrapper) HasSetAccessibilityServesAsTitleForUIElements() bool { - return a_.RespondsToSelector(objc.Sel("setAccessibilityServesAsTitleForUIElements:")) +func (a_ AccessibilityObject) HasSetAccessibilityLabel() bool { + return a_.RespondsToSelector(objc.Sel("setAccessibilityLabel:")) } -// The list of elements that the accessibility element is a title for. [Full Topic] +// A short description of the accessibility element. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsaccessibility/1535122-accessibilityservesastitleforuie?language=objc -func (a_ AccessibilityWrapper) SetAccessibilityServesAsTitleForUIElements(value []objc.IObject) { - objc.Call[objc.Void](a_, objc.Sel("setAccessibilityServesAsTitleForUIElements:"), 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_ AccessibilityWrapper) HasAccessibilityServesAsTitleForUIElements() bool { - return a_.RespondsToSelector(objc.Sel("accessibilityServesAsTitleForUIElements")) +func (a_ AccessibilityObject) HasAccessibilityLabel() bool { + return a_.RespondsToSelector(objc.Sel("accessibilityLabel")) } -// The list of elements that the accessibility element is a title for. [Full Topic] +// A short description of the accessibility element. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsaccessibility/1535122-accessibilityservesastitleforuie?language=objc -func (a_ AccessibilityWrapper) AccessibilityServesAsTitleForUIElements() []objc.Object { - rv := objc.Call[[]objc.Object](a_, objc.Sel("accessibilityServesAsTitleForUIElements")) +// [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 } -func (a_ AccessibilityWrapper) HasSetAccessibilityVerticalUnitDescription() bool { - return a_.RespondsToSelector(objc.Sel("setAccessibilityVerticalUnitDescription:")) +func (a_ AccessibilityObject) HasSetAccessibilityMain() bool { + return a_.RespondsToSelector(objc.Sel("setAccessibilityMain:")) } -// A description of the layout area’s vertical units. [Full Topic] +// A Boolean value that determines whether the window is the app’s main window. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsaccessibility/1535065-accessibilityverticalunitdescrip?language=objc -func (a_ AccessibilityWrapper) SetAccessibilityVerticalUnitDescription(value string) { - objc.Call[objc.Void](a_, objc.Sel("setAccessibilityVerticalUnitDescription:"), value) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsaccessibility/1534936-accessibilitymain?language=objc +func (a_ AccessibilityObject) SetAccessibilityMain(value bool) { + objc.Call[objc.Void](a_, objc.Sel("setAccessibilityMain:"), value) } -func (a_ AccessibilityWrapper) HasAccessibilityVerticalUnitDescription() bool { - return a_.RespondsToSelector(objc.Sel("accessibilityVerticalUnitDescription")) +func (a_ AccessibilityObject) HasIsAccessibilityMain() bool { + return a_.RespondsToSelector(objc.Sel("isAccessibilityMain")) } -// A description of the layout area’s vertical units. [Full Topic] +// A Boolean value that determines whether the window is the app’s main window. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsaccessibility/1535065-accessibilityverticalunitdescrip?language=objc -func (a_ AccessibilityWrapper) AccessibilityVerticalUnitDescription() string { - rv := objc.Call[string](a_, objc.Sel("accessibilityVerticalUnitDescription")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsaccessibility/1534936-accessibilitymain?language=objc +func (a_ AccessibilityObject) IsAccessibilityMain() bool { + rv := objc.Call[bool](a_, objc.Sel("isAccessibilityMain")) return rv } -func (a_ AccessibilityWrapper) HasSetAccessibilityIndex() bool { - return a_.RespondsToSelector(objc.Sel("setAccessibilityIndex:")) +func (a_ AccessibilityObject) HasSetAccessibilityHidden() bool { + return a_.RespondsToSelector(objc.Sel("setAccessibilityHidden:")) } -// The index of the row or column that the accessibility element represents. [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/1535067-accessibilityindex?language=objc -func (a_ AccessibilityWrapper) SetAccessibilityIndex(value int) { - objc.Call[objc.Void](a_, objc.Sel("setAccessibilityIndex:"), 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_ AccessibilityWrapper) HasAccessibilityIndex() bool { - return a_.RespondsToSelector(objc.Sel("accessibilityIndex")) +func (a_ AccessibilityObject) HasIsAccessibilityHidden() bool { + return a_.RespondsToSelector(objc.Sel("isAccessibilityHidden")) } -// The index of the row or column that the accessibility element represents. [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/1535067-accessibilityindex?language=objc -func (a_ AccessibilityWrapper) AccessibilityIndex() int { - rv := objc.Call[int](a_, objc.Sel("accessibilityIndex")) +// [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_ AccessibilityWrapper) HasSetAccessibilityLabel() bool { - return a_.RespondsToSelector(objc.Sel("setAccessibilityLabel:")) +func (a_ AccessibilityObject) HasSetAccessibilityFocused() bool { + return a_.RespondsToSelector(objc.Sel("setAccessibilityFocused:")) } -// A short description of the accessibility element. [Full Topic] +// A Boolean value that determines whether the accessibility element has the keyboard focus. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsaccessibility/1534976-accessibilitylabel?language=objc -func (a_ AccessibilityWrapper) SetAccessibilityLabel(value string) { - objc.Call[objc.Void](a_, objc.Sel("setAccessibilityLabel:"), value) +// [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_ AccessibilityWrapper) HasAccessibilityLabel() bool { - return a_.RespondsToSelector(objc.Sel("accessibilityLabel")) +func (a_ AccessibilityObject) HasIsAccessibilityFocused() bool { + return a_.RespondsToSelector(objc.Sel("isAccessibilityFocused")) } -// A short description of the accessibility element. [Full Topic] +// A Boolean value that determines whether the accessibility element has the keyboard focus. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsaccessibility/1534976-accessibilitylabel?language=objc -func (a_ AccessibilityWrapper) AccessibilityLabel() string { - rv := objc.Call[string](a_, objc.Sel("accessibilityLabel")) +// [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_ AccessibilityWrapper) HasSetAccessibilityFocusedWindow() bool { - return a_.RespondsToSelector(objc.Sel("setAccessibilityFocusedWindow:")) +func (a_ AccessibilityObject) HasSetAccessibilityVerticalScrollBar() bool { + return a_.RespondsToSelector(objc.Sel("setAccessibilityVerticalScrollBar:")) } -// The child window with the current focus. [Full Topic] +// The vertical scroll bar for the scroll view. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsaccessibility/1534986-accessibilityfocusedwindow?language=objc -func (a_ AccessibilityWrapper) SetAccessibilityFocusedWindow(value objc.IObject) { - objc.Call[objc.Void](a_, objc.Sel("setAccessibilityFocusedWindow:"), 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_ AccessibilityWrapper) HasAccessibilityFocusedWindow() bool { - return a_.RespondsToSelector(objc.Sel("accessibilityFocusedWindow")) +func (a_ AccessibilityObject) HasAccessibilityVerticalScrollBar() bool { + return a_.RespondsToSelector(objc.Sel("accessibilityVerticalScrollBar")) } -// The child window with the current focus. [Full Topic] +// The vertical scroll bar for the scroll view. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsaccessibility/1534986-accessibilityfocusedwindow?language=objc -func (a_ AccessibilityWrapper) AccessibilityFocusedWindow() objc.Object { - rv := objc.Call[objc.Object](a_, objc.Sel("accessibilityFocusedWindow")) +// [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_ AccessibilityWrapper) HasSetAccessibilityToolbarButton() bool { - return a_.RespondsToSelector(objc.Sel("setAccessibilityToolbarButton:")) +func (a_ AccessibilityObject) HasSetAccessibilitySubrole() bool { + return a_.RespondsToSelector(objc.Sel("setAccessibilitySubrole:")) } -// The child accessibility element that represents the window’s toolbar button. [Full Topic] +// The specialized interface element type that the accessibility element represents. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsaccessibility/1535075-accessibilitytoolbarbutton?language=objc -func (a_ AccessibilityWrapper) SetAccessibilityToolbarButton(value objc.IObject) { - objc.Call[objc.Void](a_, objc.Sel("setAccessibilityToolbarButton:"), 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_ AccessibilityWrapper) HasAccessibilityToolbarButton() bool { - return a_.RespondsToSelector(objc.Sel("accessibilityToolbarButton")) +func (a_ AccessibilityObject) HasAccessibilitySubrole() bool { + return a_.RespondsToSelector(objc.Sel("accessibilitySubrole")) } -// The child accessibility element that represents the window’s toolbar button. [Full Topic] +// The specialized interface element type that the accessibility element represents. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsaccessibility/1535075-accessibilitytoolbarbutton?language=objc -func (a_ AccessibilityWrapper) AccessibilityToolbarButton() objc.Object { - rv := objc.Call[objc.Object](a_, objc.Sel("accessibilityToolbarButton")) +// [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_ AccessibilityWrapper) HasSetAccessibilityShownMenu() bool { - return a_.RespondsToSelector(objc.Sel("setAccessibilityShownMenu:")) +func (a_ AccessibilityObject) HasSetAccessibilityTabs() bool { + return a_.RespondsToSelector(objc.Sel("setAccessibilityTabs:")) } -// The menu currently displaying for the accessibility element. [Full Topic] +// The tab accessibility elements for the tab view. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsaccessibility/1534983-accessibilityshownmenu?language=objc -func (a_ AccessibilityWrapper) SetAccessibilityShownMenu(value objc.IObject) { - objc.Call[objc.Void](a_, objc.Sel("setAccessibilityShownMenu:"), 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_ AccessibilityWrapper) HasAccessibilityShownMenu() bool { - return a_.RespondsToSelector(objc.Sel("accessibilityShownMenu")) +func (a_ AccessibilityObject) HasAccessibilityTabs() bool { + return a_.RespondsToSelector(objc.Sel("accessibilityTabs")) } -// The menu currently displaying for the accessibility element. [Full Topic] +// The tab accessibility elements for the tab view. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsaccessibility/1534983-accessibilityshownmenu?language=objc -func (a_ AccessibilityWrapper) AccessibilityShownMenu() objc.Object { - rv := objc.Call[objc.Object](a_, objc.Sel("accessibilityShownMenu")) +// [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_ AccessibilityWrapper) HasSetAccessibilitySplitters() bool { - return a_.RespondsToSelector(objc.Sel("setAccessibilitySplitters:")) +func (a_ AccessibilityObject) HasSetAccessibilityCriticalValue() bool { + return a_.RespondsToSelector(objc.Sel("setAccessibilityCriticalValue:")) } -// An array that contains the views and splitter bar from the split view. [Full Topic] +// The critical value for the level indicator. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsaccessibility/1535088-accessibilitysplitters?language=objc -func (a_ AccessibilityWrapper) SetAccessibilitySplitters(value []objc.IObject) { - objc.Call[objc.Void](a_, objc.Sel("setAccessibilitySplitters:"), 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_ AccessibilityWrapper) HasAccessibilitySplitters() bool { - return a_.RespondsToSelector(objc.Sel("accessibilitySplitters")) +func (a_ AccessibilityObject) HasAccessibilityCriticalValue() bool { + return a_.RespondsToSelector(objc.Sel("accessibilityCriticalValue")) } -// An array that contains the views and splitter bar from the split view. [Full Topic] +// The critical value for the level indicator. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsaccessibility/1535088-accessibilitysplitters?language=objc -func (a_ AccessibilityWrapper) AccessibilitySplitters() []objc.Object { - rv := objc.Call[[]objc.Object](a_, objc.Sel("accessibilitySplitters")) +// [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 } -func (a_ AccessibilityWrapper) HasSetAccessibilityMainWindow() bool { - return a_.RespondsToSelector(objc.Sel("setAccessibilityMainWindow:")) +func (a_ AccessibilityObject) HasSetAccessibilityVisibleChildren() bool { + return a_.RespondsToSelector(objc.Sel("setAccessibilityVisibleChildren:")) } -// The app’s main window. [Full Topic] +// The accessibility element’s visible child accessibility elements. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsaccessibility/1535138-accessibilitymainwindow?language=objc -func (a_ AccessibilityWrapper) SetAccessibilityMainWindow(value objc.IObject) { - objc.Call[objc.Void](a_, objc.Sel("setAccessibilityMainWindow:"), 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_ AccessibilityWrapper) HasAccessibilityMainWindow() bool { - return a_.RespondsToSelector(objc.Sel("accessibilityMainWindow")) +func (a_ AccessibilityObject) HasAccessibilityVisibleChildren() bool { + return a_.RespondsToSelector(objc.Sel("accessibilityVisibleChildren")) } -// The app’s main window. [Full Topic] +// The accessibility element’s visible child accessibility elements. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsaccessibility/1535138-accessibilitymainwindow?language=objc -func (a_ AccessibilityWrapper) AccessibilityMainWindow() objc.Object { - rv := objc.Call[objc.Object](a_, objc.Sel("accessibilityMainWindow")) +// [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_ AccessibilityWrapper) HasSetAccessibilityOrientation() bool { - return a_.RespondsToSelector(objc.Sel("setAccessibilityOrientation:")) +func (a_ AccessibilityObject) HasSetAccessibilityFocusedWindow() bool { + return a_.RespondsToSelector(objc.Sel("setAccessibilityFocusedWindow:")) } -// The orientation of the accessibility element. [Full Topic] +// The child window with the current focus. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsaccessibility/1535106-accessibilityorientation?language=objc -func (a_ AccessibilityWrapper) SetAccessibilityOrientation(value AccessibilityOrientation) { - objc.Call[objc.Void](a_, objc.Sel("setAccessibilityOrientation:"), value) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsaccessibility/1534986-accessibilityfocusedwindow?language=objc +func (a_ AccessibilityObject) SetAccessibilityFocusedWindow(value objc.Object) { + objc.Call[objc.Void](a_, objc.Sel("setAccessibilityFocusedWindow:"), value) } -func (a_ AccessibilityWrapper) HasAccessibilityOrientation() bool { - return a_.RespondsToSelector(objc.Sel("accessibilityOrientation")) +func (a_ AccessibilityObject) HasAccessibilityFocusedWindow() bool { + return a_.RespondsToSelector(objc.Sel("accessibilityFocusedWindow")) } -// The orientation of the accessibility element. [Full Topic] +// The child window with the current focus. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsaccessibility/1535106-accessibilityorientation?language=objc -func (a_ AccessibilityWrapper) AccessibilityOrientation() AccessibilityOrientation { - rv := objc.Call[AccessibilityOrientation](a_, objc.Sel("accessibilityOrientation")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsaccessibility/1534986-accessibilityfocusedwindow?language=objc +func (a_ AccessibilityObject) AccessibilityFocusedWindow() objc.Object { + rv := objc.Call[objc.Object](a_, objc.Sel("accessibilityFocusedWindow")) return rv } -func (a_ AccessibilityWrapper) HasSetAccessibilityRole() bool { - return a_.RespondsToSelector(objc.Sel("setAccessibilityRole:")) +func (a_ AccessibilityObject) HasSetAccessibilityChildrenInNavigationOrder() bool { + return a_.RespondsToSelector(objc.Sel("setAccessibilityChildrenInNavigationOrder:")) } -// The type of interface element 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/1535005-accessibilityrole?language=objc -func (a_ AccessibilityWrapper) SetAccessibilityRole(value AccessibilityRole) { - objc.Call[objc.Void](a_, objc.Sel("setAccessibilityRole:"), value) +// [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) } -func (a_ AccessibilityWrapper) HasAccessibilityRole() bool { - return a_.RespondsToSelector(objc.Sel("accessibilityRole")) +func (a_ AccessibilityObject) HasAccessibilityChildrenInNavigationOrder() bool { + return a_.RespondsToSelector(objc.Sel("accessibilityChildrenInNavigationOrder")) } -// The type of interface element 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/1535005-accessibilityrole?language=objc -func (a_ AccessibilityWrapper) AccessibilityRole() AccessibilityRole { - rv := objc.Call[AccessibilityRole](a_, objc.Sel("accessibilityRole")) +// [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")) return rv } -func (a_ AccessibilityWrapper) HasSetAccessibilityAllowedValues() bool { - return a_.RespondsToSelector(objc.Sel("setAccessibilityAllowedValues:")) +func (a_ AccessibilityObject) HasSetAccessibilityFrame() bool { + return a_.RespondsToSelector(objc.Sel("setAccessibilityFrame:")) } -// The allowed values for the slider accessibility element. [Full Topic] +// The accessibility element’s frame in screen coordinates. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsaccessibility/1534941-accessibilityallowedvalues?language=objc -func (a_ AccessibilityWrapper) SetAccessibilityAllowedValues(value []foundation.INumber) { - objc.Call[objc.Void](a_, objc.Sel("setAccessibilityAllowedValues:"), 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_ AccessibilityWrapper) HasAccessibilityAllowedValues() bool { - return a_.RespondsToSelector(objc.Sel("accessibilityAllowedValues")) +func (a_ AccessibilityObject) HasAccessibilityFrame() bool { + return a_.RespondsToSelector(objc.Sel("accessibilityFrame")) } -// The allowed values for the slider accessibility element. [Full Topic] +// The accessibility element’s frame in screen coordinates. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsaccessibility/1534941-accessibilityallowedvalues?language=objc -func (a_ AccessibilityWrapper) AccessibilityAllowedValues() []foundation.Number { - rv := objc.Call[[]foundation.Number](a_, objc.Sel("accessibilityAllowedValues")) +// [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_ AccessibilityWrapper) HasSetAccessibilityCloseButton() bool { - return a_.RespondsToSelector(objc.Sel("setAccessibilityCloseButton:")) +func (a_ AccessibilityObject) HasSetAccessibilityExpanded() bool { + return a_.RespondsToSelector(objc.Sel("setAccessibilityExpanded:")) } -// The child accessibility element that represents the window’s close button. [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/1535022-accessibilityclosebutton?language=objc -func (a_ AccessibilityWrapper) SetAccessibilityCloseButton(value objc.IObject) { - objc.Call[objc.Void](a_, objc.Sel("setAccessibilityCloseButton:"), 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_ AccessibilityWrapper) HasAccessibilityCloseButton() bool { - return a_.RespondsToSelector(objc.Sel("accessibilityCloseButton")) +func (a_ AccessibilityObject) HasIsAccessibilityExpanded() bool { + return a_.RespondsToSelector(objc.Sel("isAccessibilityExpanded")) } -// The child accessibility element that represents the window’s close button. [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/1535022-accessibilityclosebutton?language=objc -func (a_ AccessibilityWrapper) AccessibilityCloseButton() objc.Object { - rv := objc.Call[objc.Object](a_, objc.Sel("accessibilityCloseButton")) +// [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_ AccessibilityWrapper) HasSetAccessibilityCancelButton() bool { - return a_.RespondsToSelector(objc.Sel("setAccessibilityCancelButton:")) +func (a_ AccessibilityObject) HasSetAccessibilityTitle() bool { + return a_.RespondsToSelector(objc.Sel("setAccessibilityTitle:")) } -// The child accessibility element that represents the window’s cancel button. [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/1535060-accessibilitycancelbutton?language=objc -func (a_ AccessibilityWrapper) SetAccessibilityCancelButton(value objc.IObject) { - objc.Call[objc.Void](a_, objc.Sel("setAccessibilityCancelButton:"), 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_ AccessibilityWrapper) HasAccessibilityCancelButton() bool { - return a_.RespondsToSelector(objc.Sel("accessibilityCancelButton")) +func (a_ AccessibilityObject) HasAccessibilityTitle() bool { + return a_.RespondsToSelector(objc.Sel("accessibilityTitle")) } -// The child accessibility element that represents the window’s cancel button. [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/1535060-accessibilitycancelbutton?language=objc -func (a_ AccessibilityWrapper) AccessibilityCancelButton() objc.Object { - rv := objc.Call[objc.Object](a_, objc.Sel("accessibilityCancelButton")) +// [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_ AccessibilityWrapper) HasSetAccessibilityFocused() bool { - return a_.RespondsToSelector(objc.Sel("setAccessibilityFocused:")) +func (a_ AccessibilityObject) HasSetAccessibilityDisclosed() bool { + return a_.RespondsToSelector(objc.Sel("setAccessibilityDisclosed:")) } -// A Boolean value that determines whether the accessibility element has the keyboard focus. [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/1534994-accessibilityfocused?language=objc -func (a_ AccessibilityWrapper) SetAccessibilityFocused(value bool) { - objc.Call[objc.Void](a_, objc.Sel("setAccessibilityFocused:"), 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_ AccessibilityWrapper) HasIsAccessibilityFocused() bool { - return a_.RespondsToSelector(objc.Sel("isAccessibilityFocused")) +func (a_ AccessibilityObject) HasIsAccessibilityDisclosed() bool { + return a_.RespondsToSelector(objc.Sel("isAccessibilityDisclosed")) } -// A Boolean value that determines whether the accessibility element has the keyboard focus. [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/1534994-accessibilityfocused?language=objc -func (a_ AccessibilityWrapper) IsAccessibilityFocused() bool { - rv := objc.Call[bool](a_, objc.Sel("isAccessibilityFocused")) +// [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_ AccessibilityWrapper) HasSetAccessibilityCustomRotors() bool { - return a_.RespondsToSelector(objc.Sel("setAccessibilityCustomRotors:")) +func (a_ AccessibilityObject) HasSetAccessibilityVerticalUnitDescription() bool { + return a_.RespondsToSelector(objc.Sel("setAccessibilityVerticalUnitDescription:")) } -// The custom rotors of the current accessibility element. [Full Topic] +// A description of the layout area’s vertical units. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsaccessibility/2876053-accessibilitycustomrotors?language=objc -func (a_ AccessibilityWrapper) SetAccessibilityCustomRotors(value []IAccessibilityCustomRotor) { - objc.Call[objc.Void](a_, objc.Sel("setAccessibilityCustomRotors:"), 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_ AccessibilityWrapper) HasAccessibilityCustomRotors() bool { - return a_.RespondsToSelector(objc.Sel("accessibilityCustomRotors")) +func (a_ AccessibilityObject) HasAccessibilityVerticalUnitDescription() bool { + return a_.RespondsToSelector(objc.Sel("accessibilityVerticalUnitDescription")) } -// The custom rotors of the current accessibility element. [Full Topic] +// A description of the layout area’s vertical units. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsaccessibility/2876053-accessibilitycustomrotors?language=objc -func (a_ AccessibilityWrapper) AccessibilityCustomRotors() []AccessibilityCustomRotor { - rv := objc.Call[[]AccessibilityCustomRotor](a_, objc.Sel("accessibilityCustomRotors")) +// [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_ AccessibilityWrapper) HasSetAccessibilityOrderedByRow() bool { - return a_.RespondsToSelector(objc.Sel("setAccessibilityOrderedByRow:")) +func (a_ AccessibilityObject) HasSetAccessibilityPreviousContents() bool { + return a_.RespondsToSelector(objc.Sel("setAccessibilityPreviousContents:")) } -// A Boolean value that determines whether the accessibility element’s grid is in row major order or in column major order. [Full Topic] +// The contents that precede the divider accessibility element. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsaccessibility/1535061-accessibilityorderedbyrow?language=objc -func (a_ AccessibilityWrapper) SetAccessibilityOrderedByRow(value bool) { - objc.Call[objc.Void](a_, objc.Sel("setAccessibilityOrderedByRow:"), 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_ AccessibilityWrapper) HasIsAccessibilityOrderedByRow() bool { - return a_.RespondsToSelector(objc.Sel("isAccessibilityOrderedByRow")) +func (a_ AccessibilityObject) HasAccessibilityPreviousContents() bool { + return a_.RespondsToSelector(objc.Sel("accessibilityPreviousContents")) } -// A Boolean value that determines whether the accessibility element’s grid is in row major order or in column major order. [Full Topic] +// The contents that precede the divider accessibility element. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsaccessibility/1535061-accessibilityorderedbyrow?language=objc -func (a_ AccessibilityWrapper) IsAccessibilityOrderedByRow() bool { - rv := objc.Call[bool](a_, objc.Sel("isAccessibilityOrderedByRow")) +// [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_ AccessibilityWrapper) HasSetAccessibilitySubrole() bool { - return a_.RespondsToSelector(objc.Sel("setAccessibilitySubrole:")) +func (a_ AccessibilityObject) HasSetAccessibilityCloseButton() bool { + return a_.RespondsToSelector(objc.Sel("setAccessibilityCloseButton:")) } -// The specialized interface element type that the accessibility element represents. [Full Topic] +// The child accessibility element that represents the window’s close button. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsaccessibility/1535070-accessibilitysubrole?language=objc -func (a_ AccessibilityWrapper) SetAccessibilitySubrole(value AccessibilitySubrole) { - objc.Call[objc.Void](a_, objc.Sel("setAccessibilitySubrole:"), value) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsaccessibility/1535022-accessibilityclosebutton?language=objc +func (a_ AccessibilityObject) SetAccessibilityCloseButton(value objc.Object) { + objc.Call[objc.Void](a_, objc.Sel("setAccessibilityCloseButton:"), value) } -func (a_ AccessibilityWrapper) HasAccessibilitySubrole() bool { - return a_.RespondsToSelector(objc.Sel("accessibilitySubrole")) +func (a_ AccessibilityObject) HasAccessibilityCloseButton() bool { + return a_.RespondsToSelector(objc.Sel("accessibilityCloseButton")) } -// The specialized interface element type that the accessibility element represents. [Full Topic] +// The child accessibility element that represents the window’s close button. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsaccessibility/1535070-accessibilitysubrole?language=objc -func (a_ AccessibilityWrapper) AccessibilitySubrole() AccessibilitySubrole { - rv := objc.Call[AccessibilitySubrole](a_, objc.Sel("accessibilitySubrole")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsaccessibility/1535022-accessibilityclosebutton?language=objc +func (a_ AccessibilityObject) AccessibilityCloseButton() objc.Object { + rv := objc.Call[objc.Object](a_, objc.Sel("accessibilityCloseButton")) return rv } -func (a_ AccessibilityWrapper) HasSetAccessibilityTitleUIElement() bool { - return a_.RespondsToSelector(objc.Sel("setAccessibilityTitleUIElement:")) +func (a_ AccessibilityObject) HasSetAccessibilitySelectedCells() bool { + return a_.RespondsToSelector(objc.Sel("setAccessibilitySelectedCells:")) } -// A static text element that represents the accessibility element’s title. [Full Topic] +// The currently selected cells for the table. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsaccessibility/1535155-accessibilitytitleuielement?language=objc -func (a_ AccessibilityWrapper) SetAccessibilityTitleUIElement(value objc.IObject) { - objc.Call[objc.Void](a_, objc.Sel("setAccessibilityTitleUIElement:"), 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_ AccessibilityWrapper) HasAccessibilityTitleUIElement() bool { - return a_.RespondsToSelector(objc.Sel("accessibilityTitleUIElement")) +func (a_ AccessibilityObject) HasAccessibilitySelectedCells() bool { + return a_.RespondsToSelector(objc.Sel("accessibilitySelectedCells")) } -// A static text element that represents the accessibility element’s title. [Full Topic] +// The currently selected cells for the table. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsaccessibility/1535155-accessibilitytitleuielement?language=objc -func (a_ AccessibilityWrapper) AccessibilityTitleUIElement() objc.Object { - rv := objc.Call[objc.Object](a_, objc.Sel("accessibilityTitleUIElement")) +// [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_ AccessibilityWrapper) HasSetAccessibilityChildrenInNavigationOrder() bool { - return a_.RespondsToSelector(objc.Sel("setAccessibilityChildrenInNavigationOrder:")) +func (a_ AccessibilityObject) HasSetAccessibilityMarkerTypeDescription() bool { + return a_.RespondsToSelector(objc.Sel("setAccessibilityMarkerTypeDescription:")) } -// An array of child accessibility elements in order for linear navigation. [Full Topic] +// A human-readable description of the marker type. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsaccessibility/2869552-accessibilitychildreninnavigatio?language=objc -func (a_ AccessibilityWrapper) SetAccessibilityChildrenInNavigationOrder(value []objc.IObject) { - objc.Call[objc.Void](a_, objc.Sel("setAccessibilityChildrenInNavigationOrder:"), 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_ AccessibilityWrapper) HasAccessibilityChildrenInNavigationOrder() bool { - return a_.RespondsToSelector(objc.Sel("accessibilityChildrenInNavigationOrder")) +func (a_ AccessibilityObject) HasAccessibilityMarkerTypeDescription() bool { + return a_.RespondsToSelector(objc.Sel("accessibilityMarkerTypeDescription")) } -// An array of child accessibility elements in order for linear navigation. [Full Topic] +// A human-readable description of the marker type. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsaccessibility/2869552-accessibilitychildreninnavigatio?language=objc -func (a_ AccessibilityWrapper) AccessibilityChildrenInNavigationOrder() []objc.Object { - rv := objc.Call[[]objc.Object](a_, objc.Sel("accessibilityChildrenInNavigationOrder")) +// [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_ AccessibilityWrapper) HasSetAccessibilityAlternateUIVisible() bool { - return a_.RespondsToSelector(objc.Sel("setAccessibilityAlternateUIVisible:")) +func (a_ AccessibilityObject) HasSetAccessibilityDefaultButton() bool { + return a_.RespondsToSelector(objc.Sel("setAccessibilityDefaultButton:")) } -// A Boolean value that determines whether the accessibility element’s alternative UI is currently visible. [Full Topic] +// The child accessibility element that represents the window’s default button. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsaccessibility/1535035-accessibilityalternateuivisible?language=objc -func (a_ AccessibilityWrapper) SetAccessibilityAlternateUIVisible(value bool) { - objc.Call[objc.Void](a_, objc.Sel("setAccessibilityAlternateUIVisible:"), 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_ AccessibilityWrapper) HasIsAccessibilityAlternateUIVisible() bool { - return a_.RespondsToSelector(objc.Sel("isAccessibilityAlternateUIVisible")) +func (a_ AccessibilityObject) HasAccessibilityDefaultButton() bool { + return a_.RespondsToSelector(objc.Sel("accessibilityDefaultButton")) } -// A Boolean value that determines whether the accessibility element’s alternative UI is currently visible. [Full Topic] +// The child accessibility element that represents the window’s default button. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsaccessibility/1535035-accessibilityalternateuivisible?language=objc -func (a_ AccessibilityWrapper) IsAccessibilityAlternateUIVisible() bool { - rv := objc.Call[bool](a_, objc.Sel("isAccessibilityAlternateUIVisible")) +// [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_ AccessibilityWrapper) HasSetAccessibilitySelectedTextRange() bool { - return a_.RespondsToSelector(objc.Sel("setAccessibilitySelectedTextRange:")) +func (a_ AccessibilityObject) HasSetAccessibilityIndex() bool { + return a_.RespondsToSelector(objc.Sel("setAccessibilityIndex:")) } -// The range of the currently selected text. [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/1534989-accessibilityselectedtextrange?language=objc -func (a_ AccessibilityWrapper) SetAccessibilitySelectedTextRange(value foundation.Range) { - objc.Call[objc.Void](a_, objc.Sel("setAccessibilitySelectedTextRange:"), 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_ AccessibilityWrapper) HasAccessibilitySelectedTextRange() bool { - return a_.RespondsToSelector(objc.Sel("accessibilitySelectedTextRange")) +func (a_ AccessibilityObject) HasAccessibilityIndex() bool { + return a_.RespondsToSelector(objc.Sel("accessibilityIndex")) } -// The range of the currently selected text. [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/1534989-accessibilityselectedtextrange?language=objc -func (a_ AccessibilityWrapper) AccessibilitySelectedTextRange() foundation.Range { - rv := objc.Call[foundation.Range](a_, objc.Sel("accessibilitySelectedTextRange")) +// [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_ AccessibilityWrapper) HasSetAccessibilitySharedFocusElements() bool { - return a_.RespondsToSelector(objc.Sel("setAccessibilitySharedFocusElements:")) +func (a_ AccessibilityObject) HasSetAccessibilityApplicationFocusedUIElement() bool { + return a_.RespondsToSelector(objc.Sel("setAccessibilityApplicationFocusedUIElement:")) } -// An array of elements that shares the keyboard focus with the accessibility element. [Full Topic] +// The child accessibility element with the current focus. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsaccessibility/1534990-accessibilitysharedfocuselements?language=objc -func (a_ AccessibilityWrapper) SetAccessibilitySharedFocusElements(value []objc.IObject) { - objc.Call[objc.Void](a_, objc.Sel("setAccessibilitySharedFocusElements:"), value) +// [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_ AccessibilityWrapper) HasAccessibilitySharedFocusElements() bool { - return a_.RespondsToSelector(objc.Sel("accessibilitySharedFocusElements")) +func (a_ AccessibilityObject) HasAccessibilityApplicationFocusedUIElement() bool { + return a_.RespondsToSelector(objc.Sel("accessibilityApplicationFocusedUIElement")) } -// An array of elements that shares the keyboard focus with the accessibility element. [Full Topic] +// The child accessibility element with the current focus. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsaccessibility/1534990-accessibilitysharedfocuselements?language=objc -func (a_ AccessibilityWrapper) AccessibilitySharedFocusElements() []objc.Object { - rv := objc.Call[[]objc.Object](a_, objc.Sel("accessibilitySharedFocusElements")) +// [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_ AccessibilityWrapper) HasSetAccessibilityMaxValue() bool { - return a_.RespondsToSelector(objc.Sel("setAccessibilityMaxValue:")) +func (a_ AccessibilityObject) HasSetAccessibilityWindow() bool { + return a_.RespondsToSelector(objc.Sel("setAccessibilityWindow:")) } -// The maximum value for the accessibility element. [Full Topic] +// The window that contains the accessibility element. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsaccessibility/1535078-accessibilitymaxvalue?language=objc -func (a_ AccessibilityWrapper) SetAccessibilityMaxValue(value objc.IObject) { - objc.Call[objc.Void](a_, objc.Sel("setAccessibilityMaxValue:"), 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_ AccessibilityWrapper) HasAccessibilityMaxValue() bool { - return a_.RespondsToSelector(objc.Sel("accessibilityMaxValue")) +func (a_ AccessibilityObject) HasAccessibilityWindow() bool { + return a_.RespondsToSelector(objc.Sel("accessibilityWindow")) } -// The maximum value for the accessibility element. [Full Topic] +// The window that contains the accessibility element. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsaccessibility/1535078-accessibilitymaxvalue?language=objc -func (a_ AccessibilityWrapper) AccessibilityMaxValue() objc.Object { - rv := objc.Call[objc.Object](a_, objc.Sel("accessibilityMaxValue")) +// [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_ AccessibilityWrapper) HasSetAccessibilityDocument() bool { - return a_.RespondsToSelector(objc.Sel("setAccessibilityDocument:")) +func (a_ AccessibilityObject) HasSetAccessibilityRowIndexRange() bool { + return a_.RespondsToSelector(objc.Sel("setAccessibilityRowIndexRange:")) } -// The URL for the file that the accessibility element represents. [Full Topic] +// The row index range of the cell. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsaccessibility/1534993-accessibilitydocument?language=objc -func (a_ AccessibilityWrapper) SetAccessibilityDocument(value string) { - objc.Call[objc.Void](a_, objc.Sel("setAccessibilityDocument:"), 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_ AccessibilityWrapper) HasAccessibilityDocument() bool { - return a_.RespondsToSelector(objc.Sel("accessibilityDocument")) +func (a_ AccessibilityObject) HasAccessibilityRowIndexRange() bool { + return a_.RespondsToSelector(objc.Sel("accessibilityRowIndexRange")) } -// The URL for the file that the accessibility element represents. [Full Topic] +// The row index range of the cell. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsaccessibility/1534993-accessibilitydocument?language=objc -func (a_ AccessibilityWrapper) AccessibilityDocument() string { - rv := objc.Call[string](a_, objc.Sel("accessibilityDocument")) +// [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_ AccessibilityWrapper) HasSetAccessibilityCustomActions() bool { - return a_.RespondsToSelector(objc.Sel("setAccessibilityCustomActions:")) +func (a_ AccessibilityObject) HasSetAccessibilityUnits() bool { + return a_.RespondsToSelector(objc.Sel("setAccessibilityUnits:")) } -// The custom actions of the current accessibility element. [Full Topic] +// The units for the ruler. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsaccessibility/2869551-accessibilitycustomactions?language=objc -func (a_ AccessibilityWrapper) SetAccessibilityCustomActions(value []IAccessibilityCustomAction) { - objc.Call[objc.Void](a_, objc.Sel("setAccessibilityCustomActions:"), 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_ AccessibilityWrapper) HasAccessibilityCustomActions() bool { - return a_.RespondsToSelector(objc.Sel("accessibilityCustomActions")) +func (a_ AccessibilityObject) HasAccessibilityUnits() bool { + return a_.RespondsToSelector(objc.Sel("accessibilityUnits")) } -// The custom actions of the current accessibility element. [Full Topic] +// The units for the ruler. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsaccessibility/2869551-accessibilitycustomactions?language=objc -func (a_ AccessibilityWrapper) AccessibilityCustomActions() []AccessibilityCustomAction { - rv := objc.Call[[]AccessibilityCustomAction](a_, objc.Sel("accessibilityCustomActions")) +// [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_ AccessibilityWrapper) HasSetAccessibilityDecrementButton() bool { - return a_.RespondsToSelector(objc.Sel("setAccessibilityDecrementButton:")) +func (a_ AccessibilityObject) HasSetAccessibilityFrontmost() bool { + return a_.RespondsToSelector(objc.Sel("setAccessibilityFrontmost:")) } -// The decrement button for the stepper accessibility element. [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/1535097-accessibilitydecrementbutton?language=objc -func (a_ AccessibilityWrapper) SetAccessibilityDecrementButton(value objc.IObject) { - objc.Call[objc.Void](a_, objc.Sel("setAccessibilityDecrementButton:"), 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_ AccessibilityWrapper) HasAccessibilityDecrementButton() bool { - return a_.RespondsToSelector(objc.Sel("accessibilityDecrementButton")) +func (a_ AccessibilityObject) HasIsAccessibilityFrontmost() bool { + return a_.RespondsToSelector(objc.Sel("isAccessibilityFrontmost")) } -// The decrement button for the stepper accessibility element. [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/1535097-accessibilitydecrementbutton?language=objc -func (a_ AccessibilityWrapper) AccessibilityDecrementButton() objc.Object { - rv := objc.Call[objc.Object](a_, objc.Sel("accessibilityDecrementButton")) +// [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_ AccessibilityWrapper) HasSetAccessibilitySharedTextUIElements() bool { - return a_.RespondsToSelector(objc.Sel("setAccessibilitySharedTextUIElements:")) +func (a_ AccessibilityObject) HasSetAccessibilityLabelValue() bool { + return a_.RespondsToSelector(objc.Sel("setAccessibilityLabelValue:")) } -// Other elements that share text with the accessibility element. [Full Topic] +// The value of the label accessibility element. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsaccessibility/1534991-accessibilitysharedtextuielement?language=objc -func (a_ AccessibilityWrapper) SetAccessibilitySharedTextUIElements(value []objc.IObject) { - objc.Call[objc.Void](a_, objc.Sel("setAccessibilitySharedTextUIElements:"), value) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsaccessibility/1535108-accessibilitylabelvalue?language=objc +func (a_ AccessibilityObject) SetAccessibilityLabelValue(value float64) { + objc.Call[objc.Void](a_, objc.Sel("setAccessibilityLabelValue:"), value) } -func (a_ AccessibilityWrapper) HasAccessibilitySharedTextUIElements() bool { - return a_.RespondsToSelector(objc.Sel("accessibilitySharedTextUIElements")) +func (a_ AccessibilityObject) HasAccessibilityLabelValue() bool { + return a_.RespondsToSelector(objc.Sel("accessibilityLabelValue")) } -// Other elements that share text with the accessibility element. [Full Topic] +// The value of the label accessibility element. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsaccessibility/1534991-accessibilitysharedtextuielement?language=objc -func (a_ AccessibilityWrapper) AccessibilitySharedTextUIElements() []objc.Object { - rv := objc.Call[[]objc.Object](a_, objc.Sel("accessibilitySharedTextUIElements")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsaccessibility/1535108-accessibilitylabelvalue?language=objc +func (a_ AccessibilityObject) AccessibilityLabelValue() float64 { + rv := objc.Call[float64](a_, objc.Sel("accessibilityLabelValue")) return rv } -func (a_ AccessibilityWrapper) HasSetAccessibilitySelected() bool { - return a_.RespondsToSelector(objc.Sel("setAccessibilitySelected:")) +func (a_ AccessibilityObject) HasSetAccessibilityWindows() bool { + return a_.RespondsToSelector(objc.Sel("setAccessibilityWindows:")) } -// A Boolean value that determines whether the accessibility element is currently in a selected state. [Full Topic] +// An array that contains all the app’s windows. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsaccessibility/1534981-accessibilityselected?language=objc -func (a_ AccessibilityWrapper) SetAccessibilitySelected(value bool) { - objc.Call[objc.Void](a_, objc.Sel("setAccessibilitySelected:"), 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_ AccessibilityWrapper) HasIsAccessibilitySelected() bool { - return a_.RespondsToSelector(objc.Sel("isAccessibilitySelected")) +func (a_ AccessibilityObject) HasAccessibilityWindows() bool { + return a_.RespondsToSelector(objc.Sel("accessibilityWindows")) } -// A Boolean value that determines whether the accessibility element is currently in a selected state. [Full Topic] +// An array that contains all the app’s windows. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsaccessibility/1534981-accessibilityselected?language=objc -func (a_ AccessibilityWrapper) IsAccessibilitySelected() bool { - rv := objc.Call[bool](a_, objc.Sel("isAccessibilitySelected")) +// [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_ AccessibilityWrapper) HasSetAccessibilityColumns() bool { - return a_.RespondsToSelector(objc.Sel("setAccessibilityColumns:")) +func (a_ AccessibilityObject) HasSetAccessibilityEnabled() bool { + return a_.RespondsToSelector(objc.Sel("setAccessibilityEnabled:")) } -// The column accessibility elements for the table or outline. [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/1535115-accessibilitycolumns?language=objc -func (a_ AccessibilityWrapper) SetAccessibilityColumns(value []objc.IObject) { - objc.Call[objc.Void](a_, objc.Sel("setAccessibilityColumns:"), 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_ AccessibilityWrapper) HasAccessibilityColumns() bool { - return a_.RespondsToSelector(objc.Sel("accessibilityColumns")) +func (a_ AccessibilityObject) HasIsAccessibilityEnabled() bool { + return a_.RespondsToSelector(objc.Sel("isAccessibilityEnabled")) } -// The column accessibility elements for the table or outline. [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/1535115-accessibilitycolumns?language=objc -func (a_ AccessibilityWrapper) AccessibilityColumns() []objc.Object { - rv := objc.Call[[]objc.Object](a_, objc.Sel("accessibilityColumns")) +// [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_ AccessibilityWrapper) HasSetAccessibilityRoleDescription() bool { - return a_.RespondsToSelector(objc.Sel("setAccessibilityRoleDescription:")) +func (a_ AccessibilityObject) HasSetAccessibilityColumnCount() bool { + return a_.RespondsToSelector(objc.Sel("setAccessibilityColumnCount:")) } -// A localized, human-intelligible description of the accessibility element’s role, such as radio button. [Full Topic] +// The number of columns in the accessibility element’s grid. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsaccessibility/1535144-accessibilityroledescription?language=objc -func (a_ AccessibilityWrapper) SetAccessibilityRoleDescription(value string) { - objc.Call[objc.Void](a_, objc.Sel("setAccessibilityRoleDescription:"), 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_ AccessibilityWrapper) HasAccessibilityRoleDescription() bool { - return a_.RespondsToSelector(objc.Sel("accessibilityRoleDescription")) +func (a_ AccessibilityObject) HasAccessibilityColumnCount() bool { + return a_.RespondsToSelector(objc.Sel("accessibilityColumnCount")) } -// A localized, human-intelligible description of the accessibility element’s role, such as radio button. [Full Topic] +// The number of columns in the accessibility element’s grid. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsaccessibility/1535144-accessibilityroledescription?language=objc -func (a_ AccessibilityWrapper) AccessibilityRoleDescription() string { - rv := objc.Call[string](a_, objc.Sel("accessibilityRoleDescription")) +// [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_ AccessibilityWrapper) HasSetAccessibilityActivationPoint() bool { - return a_.RespondsToSelector(objc.Sel("setAccessibilityActivationPoint:")) +func (a_ AccessibilityObject) HasSetAccessibilityChildren() bool { + return a_.RespondsToSelector(objc.Sel("setAccessibilityChildren:")) } -// The activation point for the user interface element. [Full Topic] +// The child accessibility elements in the accessibility hierarchy. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsaccessibility/1535149-accessibilityactivationpoint?language=objc -func (a_ AccessibilityWrapper) SetAccessibilityActivationPoint(value foundation.Point) { - objc.Call[objc.Void](a_, objc.Sel("setAccessibilityActivationPoint:"), 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_ AccessibilityWrapper) HasAccessibilityActivationPoint() bool { - return a_.RespondsToSelector(objc.Sel("accessibilityActivationPoint")) +func (a_ AccessibilityObject) HasAccessibilityChildren() bool { + return a_.RespondsToSelector(objc.Sel("accessibilityChildren")) } -// The activation point for the user interface element. [Full Topic] +// The child accessibility elements in the accessibility hierarchy. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsaccessibility/1535149-accessibilityactivationpoint?language=objc -func (a_ AccessibilityWrapper) AccessibilityActivationPoint() foundation.Point { - rv := objc.Call[foundation.Point](a_, objc.Sel("accessibilityActivationPoint")) +// [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_ AccessibilityWrapper) HasSetAccessibilityIdentifier() bool { - return a_.RespondsToSelector(objc.Sel("setAccessibilityIdentifier:")) +func (a_ AccessibilityObject) HasSetAccessibilityHorizontalUnitDescription() bool { + return a_.RespondsToSelector(objc.Sel("setAccessibilityHorizontalUnitDescription:")) } -// The accessibility element’s identity. [Full Topic] +// A description of the layout area’s horizontal units. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsaccessibility/1535023-accessibilityidentifier?language=objc -func (a_ AccessibilityWrapper) SetAccessibilityIdentifier(value string) { - objc.Call[objc.Void](a_, objc.Sel("setAccessibilityIdentifier:"), 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_ AccessibilityWrapper) HasAccessibilityIdentifier() bool { - return a_.RespondsToSelector(objc.Sel("accessibilityIdentifier")) +func (a_ AccessibilityObject) HasAccessibilityHorizontalUnitDescription() bool { + return a_.RespondsToSelector(objc.Sel("accessibilityHorizontalUnitDescription")) } -// The accessibility element’s identity. [Full Topic] +// A description of the layout area’s horizontal units. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsaccessibility/1535023-accessibilityidentifier?language=objc -func (a_ AccessibilityWrapper) AccessibilityIdentifier() string { - rv := objc.Call[string](a_, objc.Sel("accessibilityIdentifier")) +// [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_ AccessibilityWrapper) HasSetAccessibilityTopLevelUIElement() bool { - return a_.RespondsToSelector(objc.Sel("setAccessibilityTopLevelUIElement:")) +func (a_ AccessibilityObject) HasSetAccessibilitySelectedTextRange() bool { + return a_.RespondsToSelector(objc.Sel("setAccessibilitySelectedTextRange:")) } -// The top-level element 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/1535092-accessibilitytopleveluielement?language=objc -func (a_ AccessibilityWrapper) SetAccessibilityTopLevelUIElement(value objc.IObject) { - objc.Call[objc.Void](a_, objc.Sel("setAccessibilityTopLevelUIElement:"), 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_ AccessibilityWrapper) HasAccessibilityTopLevelUIElement() bool { - return a_.RespondsToSelector(objc.Sel("accessibilityTopLevelUIElement")) +func (a_ AccessibilityObject) HasAccessibilitySelectedTextRange() bool { + return a_.RespondsToSelector(objc.Sel("accessibilitySelectedTextRange")) } -// The top-level element 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/1535092-accessibilitytopleveluielement?language=objc -func (a_ AccessibilityWrapper) AccessibilityTopLevelUIElement() objc.Object { - rv := objc.Call[objc.Object](a_, objc.Sel("accessibilityTopLevelUIElement")) +// [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_ AccessibilityWrapper) HasSetAccessibilityMenuBar() bool { - return a_.RespondsToSelector(objc.Sel("setAccessibilityMenuBar:")) +func (a_ AccessibilityObject) HasSetAccessibilityRole() bool { + return a_.RespondsToSelector(objc.Sel("setAccessibilityRole:")) } -// The app’s menu bar. [Full Topic] +// The type of interface element that the accessibility element represents. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsaccessibility/1535055-accessibilitymenubar?language=objc -func (a_ AccessibilityWrapper) SetAccessibilityMenuBar(value objc.IObject) { - objc.Call[objc.Void](a_, objc.Sel("setAccessibilityMenuBar:"), 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_ AccessibilityWrapper) HasAccessibilityMenuBar() bool { - return a_.RespondsToSelector(objc.Sel("accessibilityMenuBar")) +func (a_ AccessibilityObject) HasAccessibilityRole() bool { + return a_.RespondsToSelector(objc.Sel("accessibilityRole")) } -// The app’s menu bar. [Full Topic] +// The type of interface element that the accessibility element represents. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsaccessibility/1535055-accessibilitymenubar?language=objc -func (a_ AccessibilityWrapper) AccessibilityMenuBar() objc.Object { - rv := objc.Call[objc.Object](a_, objc.Sel("accessibilityMenuBar")) +// [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_ AccessibilityWrapper) HasSetAccessibilityColumnCount() bool { - return a_.RespondsToSelector(objc.Sel("setAccessibilityColumnCount:")) +func (a_ AccessibilityObject) HasSetAccessibilityMarkerGroupUIElement() bool { + return a_.RespondsToSelector(objc.Sel("setAccessibilityMarkerGroupUIElement:")) } -// The number of columns in the accessibility element’s grid. [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/1534966-accessibilitycolumncount?language=objc -func (a_ AccessibilityWrapper) SetAccessibilityColumnCount(value int) { - objc.Call[objc.Void](a_, objc.Sel("setAccessibilityColumnCount:"), 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_ AccessibilityWrapper) HasAccessibilityColumnCount() bool { - return a_.RespondsToSelector(objc.Sel("accessibilityColumnCount")) +func (a_ AccessibilityObject) HasAccessibilityMarkerGroupUIElement() bool { + return a_.RespondsToSelector(objc.Sel("accessibilityMarkerGroupUIElement")) } -// The number of columns in the accessibility element’s grid. [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/1534966-accessibilitycolumncount?language=objc -func (a_ AccessibilityWrapper) AccessibilityColumnCount() int { - rv := objc.Call[int](a_, objc.Sel("accessibilityColumnCount")) +// [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_ AccessibilityWrapper) HasSetAccessibilityWindows() bool { - return a_.RespondsToSelector(objc.Sel("setAccessibilityWindows:")) +func (a_ AccessibilityObject) HasSetAccessibilityRulerMarkerType() bool { + return a_.RespondsToSelector(objc.Sel("setAccessibilityRulerMarkerType:")) } -// An array that contains all the app’s windows. [Full Topic] +// The type of markers for the ruler. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsaccessibility/1535117-accessibilitywindows?language=objc -func (a_ AccessibilityWrapper) SetAccessibilityWindows(value []objc.IObject) { - objc.Call[objc.Void](a_, objc.Sel("setAccessibilityWindows:"), value) +// [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_ AccessibilityWrapper) HasAccessibilityWindows() bool { - return a_.RespondsToSelector(objc.Sel("accessibilityWindows")) +func (a_ AccessibilityObject) HasAccessibilityRulerMarkerType() bool { + return a_.RespondsToSelector(objc.Sel("accessibilityRulerMarkerType")) } -// An array that contains all the app’s windows. [Full Topic] +// The type of markers for the ruler. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsaccessibility/1535117-accessibilitywindows?language=objc -func (a_ AccessibilityWrapper) AccessibilityWindows() []objc.Object { - rv := objc.Call[[]objc.Object](a_, objc.Sel("accessibilityWindows")) +// [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_ AccessibilityWrapper) HasSetAccessibilityURL() bool { - return a_.RespondsToSelector(objc.Sel("setAccessibilityURL:")) +func (a_ AccessibilityObject) HasSetAccessibilitySortDirection() bool { + return a_.RespondsToSelector(objc.Sel("setAccessibilitySortDirection:")) } -// The URL for the accessibility element. [Full Topic] +// The accessibility element’s sort direction. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsaccessibility/1535157-accessibilityurl?language=objc -func (a_ AccessibilityWrapper) SetAccessibilityURL(value foundation.IURL) { - objc.Call[objc.Void](a_, objc.Sel("setAccessibilityURL:"), objc.Ptr(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_ AccessibilityWrapper) HasAccessibilityURL() bool { - return a_.RespondsToSelector(objc.Sel("accessibilityURL")) +func (a_ AccessibilityObject) HasAccessibilitySortDirection() bool { + return a_.RespondsToSelector(objc.Sel("accessibilitySortDirection")) } -// The URL for the accessibility element. [Full Topic] +// The accessibility element’s sort direction. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsaccessibility/1535157-accessibilityurl?language=objc -func (a_ AccessibilityWrapper) AccessibilityURL() foundation.URL { - rv := objc.Call[foundation.URL](a_, objc.Sel("accessibilityURL")) +// [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_ AccessibilityWrapper) HasSetAccessibilityMinimizeButton() bool { - return a_.RespondsToSelector(objc.Sel("setAccessibilityMinimizeButton:")) +func (a_ AccessibilityObject) HasSetAccessibilityValue() bool { + return a_.RespondsToSelector(objc.Sel("setAccessibilityValue:")) } -// The child accessibility element that represents the window’s minimize button. [Full Topic] +// The accessibility element’s value. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsaccessibility/1535052-accessibilityminimizebutton?language=objc -func (a_ AccessibilityWrapper) SetAccessibilityMinimizeButton(value objc.IObject) { - objc.Call[objc.Void](a_, objc.Sel("setAccessibilityMinimizeButton:"), 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_ AccessibilityWrapper) HasAccessibilityMinimizeButton() bool { - return a_.RespondsToSelector(objc.Sel("accessibilityMinimizeButton")) +func (a_ AccessibilityObject) HasAccessibilityValue() bool { + return a_.RespondsToSelector(objc.Sel("accessibilityValue")) } -// The child accessibility element that represents the window’s minimize button. [Full Topic] +// The accessibility element’s value. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsaccessibility/1535052-accessibilityminimizebutton?language=objc -func (a_ AccessibilityWrapper) AccessibilityMinimizeButton() objc.Object { - rv := objc.Call[objc.Object](a_, objc.Sel("accessibilityMinimizeButton")) +// [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_ AccessibilityWrapper) HasSetAccessibilityDisclosed() bool { - return a_.RespondsToSelector(objc.Sel("setAccessibilityDisclosed:")) +func (a_ AccessibilityObject) HasSetAccessibilityDocument() bool { + return a_.RespondsToSelector(objc.Sel("setAccessibilityDocument:")) } -// A Boolean value that determines whether the row is disclosing other rows. [Full Topic] +// The URL for the file that the accessibility element represents. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsaccessibility/1535124-accessibilitydisclosed?language=objc -func (a_ AccessibilityWrapper) SetAccessibilityDisclosed(value bool) { - objc.Call[objc.Void](a_, objc.Sel("setAccessibilityDisclosed:"), 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_ AccessibilityWrapper) HasIsAccessibilityDisclosed() bool { - return a_.RespondsToSelector(objc.Sel("isAccessibilityDisclosed")) +func (a_ AccessibilityObject) HasAccessibilityDocument() bool { + return a_.RespondsToSelector(objc.Sel("accessibilityDocument")) } -// A Boolean value that determines whether the row is disclosing other rows. [Full Topic] +// The URL for the file that the accessibility element represents. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsaccessibility/1535124-accessibilitydisclosed?language=objc -func (a_ AccessibilityWrapper) IsAccessibilityDisclosed() bool { - rv := objc.Call[bool](a_, objc.Sel("isAccessibilityDisclosed")) +// [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_ AccessibilityWrapper) HasSetAccessibilityMinValue() bool { - return a_.RespondsToSelector(objc.Sel("setAccessibilityMinValue:")) +func (a_ AccessibilityObject) HasSetAccessibilityVerticalUnits() bool { + return a_.RespondsToSelector(objc.Sel("setAccessibilityVerticalUnits:")) } -// The minimum value for the 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/1534995-accessibilityminvalue?language=objc -func (a_ AccessibilityWrapper) SetAccessibilityMinValue(value objc.IObject) { - objc.Call[objc.Void](a_, objc.Sel("setAccessibilityMinValue:"), 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_ AccessibilityWrapper) HasAccessibilityMinValue() bool { - return a_.RespondsToSelector(objc.Sel("accessibilityMinValue")) +func (a_ AccessibilityObject) HasAccessibilityVerticalUnits() bool { + return a_.RespondsToSelector(objc.Sel("accessibilityVerticalUnits")) } -// The minimum value for the 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/1534995-accessibilityminvalue?language=objc -func (a_ AccessibilityWrapper) AccessibilityMinValue() objc.Object { - rv := objc.Call[objc.Object](a_, objc.Sel("accessibilityMinValue")) +// [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_ AccessibilityWrapper) HasSetAccessibilityRows() bool { - return a_.RespondsToSelector(objc.Sel("setAccessibilityRows:")) +func (a_ AccessibilityObject) HasSetAccessibilityVisibleCharacterRange() bool { + return a_.RespondsToSelector(objc.Sel("setAccessibilityVisibleCharacterRange:")) } -// The row accessibility elements for the table or outline. [Full Topic] +// The range of visible characters in the document. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsaccessibility/1534945-accessibilityrows?language=objc -func (a_ AccessibilityWrapper) SetAccessibilityRows(value []objc.IObject) { - objc.Call[objc.Void](a_, objc.Sel("setAccessibilityRows:"), 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_ AccessibilityWrapper) HasAccessibilityRows() bool { - return a_.RespondsToSelector(objc.Sel("accessibilityRows")) +func (a_ AccessibilityObject) HasAccessibilityVisibleCharacterRange() bool { + return a_.RespondsToSelector(objc.Sel("accessibilityVisibleCharacterRange")) } -// The row accessibility elements for the table or outline. [Full Topic] +// The range of visible characters in the document. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsaccessibility/1534945-accessibilityrows?language=objc -func (a_ AccessibilityWrapper) AccessibilityRows() []objc.Object { - rv := objc.Call[[]objc.Object](a_, objc.Sel("accessibilityRows")) +// [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_ AccessibilityWrapper) HasSetAccessibilityMarkerValues() bool { - return a_.RespondsToSelector(objc.Sel("setAccessibilityMarkerValues:")) +func (a_ AccessibilityObject) HasSetAccessibilityMainWindow() bool { + return a_.RespondsToSelector(objc.Sel("setAccessibilityMainWindow:")) } -// The marker values for the ruler. [Full Topic] +// The app’s main window. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsaccessibility/1535076-accessibilitymarkervalues?language=objc -func (a_ AccessibilityWrapper) SetAccessibilityMarkerValues(value objc.IObject) { - objc.Call[objc.Void](a_, objc.Sel("setAccessibilityMarkerValues:"), 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_ AccessibilityWrapper) HasAccessibilityMarkerValues() bool { - return a_.RespondsToSelector(objc.Sel("accessibilityMarkerValues")) +func (a_ AccessibilityObject) HasAccessibilityMainWindow() bool { + return a_.RespondsToSelector(objc.Sel("accessibilityMainWindow")) } -// The marker values for the ruler. [Full Topic] +// The app’s main window. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsaccessibility/1535076-accessibilitymarkervalues?language=objc -func (a_ AccessibilityWrapper) AccessibilityMarkerValues() objc.Object { - rv := objc.Call[objc.Object](a_, objc.Sel("accessibilityMarkerValues")) +// [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_ AccessibilityWrapper) HasSetAccessibilityModal() bool { - return a_.RespondsToSelector(objc.Sel("setAccessibilityModal:")) +func (a_ AccessibilityObject) HasSetAccessibilityDisclosedByRow() bool { + return a_.RespondsToSelector(objc.Sel("setAccessibilityDisclosedByRow:")) } -// A Boolean value that determines whether the window is modal. [Full Topic] +// The row disclosing the current row. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsaccessibility/1535140-accessibilitymodal?language=objc -func (a_ AccessibilityWrapper) SetAccessibilityModal(value bool) { - objc.Call[objc.Void](a_, objc.Sel("setAccessibilityModal:"), 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_ AccessibilityWrapper) HasIsAccessibilityModal() bool { - return a_.RespondsToSelector(objc.Sel("isAccessibilityModal")) +func (a_ AccessibilityObject) HasAccessibilityDisclosedByRow() bool { + return a_.RespondsToSelector(objc.Sel("accessibilityDisclosedByRow")) } -// A Boolean value that determines whether the window is modal. [Full Topic] +// The row disclosing the current row. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsaccessibility/1535140-accessibilitymodal?language=objc -func (a_ AccessibilityWrapper) IsAccessibilityModal() bool { - rv := objc.Call[bool](a_, objc.Sel("isAccessibilityModal")) +// [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_ AccessibilityWrapper) HasSetAccessibilityVisibleChildren() bool { - return a_.RespondsToSelector(objc.Sel("setAccessibilityVisibleChildren:")) +func (a_ AccessibilityObject) HasSetAccessibilityClearButton() bool { + return a_.RespondsToSelector(objc.Sel("setAccessibilityClearButton:")) } -// The accessibility element’s visible child accessibility elements. [Full Topic] +// The clear button for the search field. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsaccessibility/1534964-accessibilityvisiblechildren?language=objc -func (a_ AccessibilityWrapper) SetAccessibilityVisibleChildren(value []objc.IObject) { - objc.Call[objc.Void](a_, objc.Sel("setAccessibilityVisibleChildren:"), 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_ AccessibilityWrapper) HasAccessibilityVisibleChildren() bool { - return a_.RespondsToSelector(objc.Sel("accessibilityVisibleChildren")) +func (a_ AccessibilityObject) HasAccessibilityClearButton() bool { + return a_.RespondsToSelector(objc.Sel("accessibilityClearButton")) } -// The accessibility element’s visible child accessibility elements. [Full Topic] +// The clear button for the search field. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsaccessibility/1534964-accessibilityvisiblechildren?language=objc -func (a_ AccessibilityWrapper) AccessibilityVisibleChildren() []objc.Object { - rv := objc.Call[[]objc.Object](a_, objc.Sel("accessibilityVisibleChildren")) +// [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_ AccessibilityWrapper) HasSetAccessibilityVisibleCells() bool { - return a_.RespondsToSelector(objc.Sel("setAccessibilityVisibleCells:")) +func (a_ AccessibilityObject) HasSetAccessibilityNumberOfCharacters() bool { + return a_.RespondsToSelector(objc.Sel("setAccessibilityNumberOfCharacters:")) } -// The visible cells for the table. [Full Topic] +// The number of characters in the text. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsaccessibility/1535042-accessibilityvisiblecells?language=objc -func (a_ AccessibilityWrapper) SetAccessibilityVisibleCells(value []objc.IObject) { - objc.Call[objc.Void](a_, objc.Sel("setAccessibilityVisibleCells:"), 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_ AccessibilityWrapper) HasAccessibilityVisibleCells() bool { - return a_.RespondsToSelector(objc.Sel("accessibilityVisibleCells")) +func (a_ AccessibilityObject) HasAccessibilityNumberOfCharacters() bool { + return a_.RespondsToSelector(objc.Sel("accessibilityNumberOfCharacters")) } -// The visible cells for the table. [Full Topic] +// The number of characters in the text. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsaccessibility/1535042-accessibilityvisiblecells?language=objc -func (a_ AccessibilityWrapper) AccessibilityVisibleCells() []objc.Object { - rv := objc.Call[[]objc.Object](a_, objc.Sel("accessibilityVisibleCells")) +// [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_ AccessibilityWrapper) HasSetAccessibilityLabelValue() bool { - return a_.RespondsToSelector(objc.Sel("setAccessibilityLabelValue:")) +func (a_ AccessibilityObject) HasSetAccessibilityGrowArea() bool { + return a_.RespondsToSelector(objc.Sel("setAccessibilityGrowArea:")) } -// The value of the label accessibility element. [Full Topic] +// The child accessibility element that represents the window’s grow area. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsaccessibility/1535108-accessibilitylabelvalue?language=objc -func (a_ AccessibilityWrapper) SetAccessibilityLabelValue(value float64) { - objc.Call[objc.Void](a_, objc.Sel("setAccessibilityLabelValue:"), 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_ AccessibilityWrapper) HasAccessibilityLabelValue() bool { - return a_.RespondsToSelector(objc.Sel("accessibilityLabelValue")) +func (a_ AccessibilityObject) HasAccessibilityGrowArea() bool { + return a_.RespondsToSelector(objc.Sel("accessibilityGrowArea")) } -// The value of the label accessibility element. [Full Topic] +// The child accessibility element that represents the window’s grow area. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsaccessibility/1535108-accessibilitylabelvalue?language=objc -func (a_ AccessibilityWrapper) AccessibilityLabelValue() float64 { - rv := objc.Call[float64](a_, objc.Sel("accessibilityLabelValue")) +// [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 } -func (a_ AccessibilityWrapper) HasSetAccessibilityExpanded() bool { - return a_.RespondsToSelector(objc.Sel("setAccessibilityExpanded:")) +func (a_ AccessibilityObject) HasSetAccessibilityZoomButton() bool { + return a_.RespondsToSelector(objc.Sel("setAccessibilityZoomButton:")) } -// A Boolean value that determines whether the accessibility element is in an expanded state. [Full Topic] +// The child accessibility element that represents the window’s zoom button. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsaccessibility/1535045-accessibilityexpanded?language=objc -func (a_ AccessibilityWrapper) SetAccessibilityExpanded(value bool) { - objc.Call[objc.Void](a_, objc.Sel("setAccessibilityExpanded:"), 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_ AccessibilityWrapper) HasIsAccessibilityExpanded() bool { - return a_.RespondsToSelector(objc.Sel("isAccessibilityExpanded")) +func (a_ AccessibilityObject) HasAccessibilityZoomButton() bool { + return a_.RespondsToSelector(objc.Sel("accessibilityZoomButton")) } -// A Boolean value that determines whether the accessibility element is in an expanded state. [Full Topic] +// The child accessibility element that represents the window’s zoom button. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsaccessibility/1535045-accessibilityexpanded?language=objc -func (a_ AccessibilityWrapper) IsAccessibilityExpanded() bool { - rv := objc.Call[bool](a_, objc.Sel("isAccessibilityExpanded")) +// [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_ AccessibilityWrapper) HasSetAccessibilityRulerMarkerType() bool { - return a_.RespondsToSelector(objc.Sel("setAccessibilityRulerMarkerType:")) +func (a_ AccessibilityObject) HasSetAccessibilityParent() bool { + return a_.RespondsToSelector(objc.Sel("setAccessibilityParent:")) } -// The type of markers for the ruler. [Full Topic] +// The accessibility element’s parent in the accessibility hierarchy. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsaccessibility/1535099-accessibilityrulermarkertype?language=objc -func (a_ AccessibilityWrapper) SetAccessibilityRulerMarkerType(value AccessibilityRulerMarkerType) { - objc.Call[objc.Void](a_, objc.Sel("setAccessibilityRulerMarkerType:"), 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_ AccessibilityWrapper) HasAccessibilityRulerMarkerType() bool { - return a_.RespondsToSelector(objc.Sel("accessibilityRulerMarkerType")) +func (a_ AccessibilityObject) HasAccessibilityParent() bool { + return a_.RespondsToSelector(objc.Sel("accessibilityParent")) } -// The type of markers for the ruler. [Full Topic] +// The accessibility element’s parent in the accessibility hierarchy. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsaccessibility/1535099-accessibilityrulermarkertype?language=objc -func (a_ AccessibilityWrapper) AccessibilityRulerMarkerType() AccessibilityRulerMarkerType { - rv := objc.Call[AccessibilityRulerMarkerType](a_, objc.Sel("accessibilityRulerMarkerType")) +// [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_ AccessibilityWrapper) HasSetAccessibilityProtectedContent() bool { - return a_.RespondsToSelector(objc.Sel("setAccessibilityProtectedContent:")) +func (a_ AccessibilityObject) HasSetAccessibilitySearchButton() bool { + return a_.RespondsToSelector(objc.Sel("setAccessibilitySearchButton:")) } -// A Boolean value that determines whether the accessibility element contains protected content. [Full Topic] +// The search button for the search field. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsaccessibility/1535083-accessibilityprotectedcontent?language=objc -func (a_ AccessibilityWrapper) SetAccessibilityProtectedContent(value bool) { - objc.Call[objc.Void](a_, objc.Sel("setAccessibilityProtectedContent:"), 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_ AccessibilityWrapper) HasIsAccessibilityProtectedContent() bool { - return a_.RespondsToSelector(objc.Sel("isAccessibilityProtectedContent")) +func (a_ AccessibilityObject) HasAccessibilitySearchButton() bool { + return a_.RespondsToSelector(objc.Sel("accessibilitySearchButton")) } -// A Boolean value that determines whether the accessibility element contains protected content. [Full Topic] +// The search button for the search field. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsaccessibility/1535083-accessibilityprotectedcontent?language=objc -func (a_ AccessibilityWrapper) IsAccessibilityProtectedContent() bool { - rv := objc.Call[bool](a_, objc.Sel("isAccessibilityProtectedContent")) +// [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_ AccessibilityWrapper) HasSetAccessibilityValue() bool { - return a_.RespondsToSelector(objc.Sel("setAccessibilityValue:")) +func (a_ AccessibilityObject) HasSetAccessibilitySelectedTextRanges() bool { + return a_.RespondsToSelector(objc.Sel("setAccessibilitySelectedTextRanges:")) } -// The accessibility element’s value. [Full Topic] +// An array of ranges for the currently selected text. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsaccessibility/1535103-accessibilityvalue?language=objc -func (a_ AccessibilityWrapper) SetAccessibilityValue(value objc.IObject) { - objc.Call[objc.Void](a_, objc.Sel("setAccessibilityValue:"), 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_ AccessibilityWrapper) HasAccessibilityValue() bool { - return a_.RespondsToSelector(objc.Sel("accessibilityValue")) +func (a_ AccessibilityObject) HasAccessibilitySelectedTextRanges() bool { + return a_.RespondsToSelector(objc.Sel("accessibilitySelectedTextRanges")) } -// The accessibility element’s value. [Full Topic] +// An array of ranges for the currently selected text. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsaccessibility/1535103-accessibilityvalue?language=objc -func (a_ AccessibilityWrapper) AccessibilityValue() objc.Object { - rv := objc.Call[objc.Object](a_, objc.Sel("accessibilityValue")) +// [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_ AccessibilityWrapper) HasSetAccessibilityEdited() bool { - return a_.RespondsToSelector(objc.Sel("setAccessibilityEdited:")) +func (a_ AccessibilityObject) HasSetAccessibilityValueDescription() bool { + return a_.RespondsToSelector(objc.Sel("setAccessibilityValueDescription:")) } -// A Boolean value that indicates whether the accessibility element is in an edited state. [Full Topic] +// A human-readable description of the accessibility element’s value. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsaccessibility/1535077-accessibilityedited?language=objc -func (a_ AccessibilityWrapper) SetAccessibilityEdited(value bool) { - objc.Call[objc.Void](a_, objc.Sel("setAccessibilityEdited:"), 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_ AccessibilityWrapper) HasIsAccessibilityEdited() bool { - return a_.RespondsToSelector(objc.Sel("isAccessibilityEdited")) +func (a_ AccessibilityObject) HasAccessibilityValueDescription() bool { + return a_.RespondsToSelector(objc.Sel("accessibilityValueDescription")) } -// A Boolean value that indicates whether the accessibility element is in an edited state. [Full Topic] +// A human-readable description of the accessibility element’s value. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsaccessibility/1535077-accessibilityedited?language=objc -func (a_ AccessibilityWrapper) IsAccessibilityEdited() bool { - rv := objc.Call[bool](a_, objc.Sel("isAccessibilityEdited")) +// [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_ AccessibilityWrapper) HasSetAccessibilityHelp() bool { - return a_.RespondsToSelector(objc.Sel("setAccessibilityHelp:")) +func (a_ AccessibilityObject) HasSetAccessibilitySplitters() bool { + return a_.RespondsToSelector(objc.Sel("setAccessibilitySplitters:")) } -// The help text for the accessibility element. [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/1534974-accessibilityhelp?language=objc -func (a_ AccessibilityWrapper) SetAccessibilityHelp(value string) { - objc.Call[objc.Void](a_, objc.Sel("setAccessibilityHelp:"), 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_ AccessibilityWrapper) HasAccessibilityHelp() bool { - return a_.RespondsToSelector(objc.Sel("accessibilityHelp")) +func (a_ AccessibilityObject) HasAccessibilitySplitters() bool { + return a_.RespondsToSelector(objc.Sel("accessibilitySplitters")) } -// The help text for the accessibility element. [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/1534974-accessibilityhelp?language=objc -func (a_ AccessibilityWrapper) AccessibilityHelp() string { - rv := objc.Call[string](a_, objc.Sel("accessibilityHelp")) +// [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_ AccessibilityWrapper) HasSetAccessibilityRowCount() bool { - return a_.RespondsToSelector(objc.Sel("setAccessibilityRowCount:")) +func (a_ AccessibilityObject) HasSetAccessibilityServesAsTitleForUIElements() bool { + return a_.RespondsToSelector(objc.Sel("setAccessibilityServesAsTitleForUIElements:")) } -// The number of rows in the accessibility element’s grid. [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/1535013-accessibilityrowcount?language=objc -func (a_ AccessibilityWrapper) SetAccessibilityRowCount(value int) { - objc.Call[objc.Void](a_, objc.Sel("setAccessibilityRowCount:"), 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_ AccessibilityWrapper) HasAccessibilityRowCount() bool { - return a_.RespondsToSelector(objc.Sel("accessibilityRowCount")) +func (a_ AccessibilityObject) HasAccessibilityServesAsTitleForUIElements() bool { + return a_.RespondsToSelector(objc.Sel("accessibilityServesAsTitleForUIElements")) } -// The number of rows in the accessibility element’s grid. [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/1535013-accessibilityrowcount?language=objc -func (a_ AccessibilityWrapper) AccessibilityRowCount() int { - rv := objc.Call[int](a_, objc.Sel("accessibilityRowCount")) +// [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_ AccessibilityWrapper) HasSetAccessibilityColumnIndexRange() bool { - return a_.RespondsToSelector(objc.Sel("setAccessibilityColumnIndexRange:")) +func (a_ AccessibilityObject) HasSetAccessibilitySharedCharacterRange() bool { + return a_.RespondsToSelector(objc.Sel("setAccessibilitySharedCharacterRange:")) } -// The column index range of the cell. [Full Topic] +// The range of characters that the accessibility element displays. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsaccessibility/1534979-accessibilitycolumnindexrange?language=objc -func (a_ AccessibilityWrapper) SetAccessibilityColumnIndexRange(value foundation.Range) { - objc.Call[objc.Void](a_, objc.Sel("setAccessibilityColumnIndexRange:"), 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_ AccessibilityWrapper) HasAccessibilityColumnIndexRange() bool { - return a_.RespondsToSelector(objc.Sel("accessibilityColumnIndexRange")) +func (a_ AccessibilityObject) HasAccessibilitySharedCharacterRange() bool { + return a_.RespondsToSelector(objc.Sel("accessibilitySharedCharacterRange")) } -// The column index range of the cell. [Full Topic] +// The range of characters that the accessibility element displays. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsaccessibility/1534979-accessibilitycolumnindexrange?language=objc -func (a_ AccessibilityWrapper) AccessibilityColumnIndexRange() foundation.Range { - rv := objc.Call[foundation.Range](a_, objc.Sel("accessibilityColumnIndexRange")) +// [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_ AccessibilityWrapper) HasSetAccessibilitySortDirection() bool { - return a_.RespondsToSelector(objc.Sel("setAccessibilitySortDirection:")) +func (a_ AccessibilityObject) HasSetAccessibilityOverflowButton() bool { + return a_.RespondsToSelector(objc.Sel("setAccessibilityOverflowButton:")) } -// The accessibility element’s sort direction. [Full Topic] +// The overflow button for the toolbar. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsaccessibility/1534962-accessibilitysortdirection?language=objc -func (a_ AccessibilityWrapper) SetAccessibilitySortDirection(value AccessibilitySortDirection) { - objc.Call[objc.Void](a_, objc.Sel("setAccessibilitySortDirection:"), 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_ AccessibilityWrapper) HasAccessibilitySortDirection() bool { - return a_.RespondsToSelector(objc.Sel("accessibilitySortDirection")) +func (a_ AccessibilityObject) HasAccessibilityOverflowButton() bool { + return a_.RespondsToSelector(objc.Sel("accessibilityOverflowButton")) } -// The accessibility element’s sort direction. [Full Topic] +// The overflow button for the toolbar. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsaccessibility/1534962-accessibilitysortdirection?language=objc -func (a_ AccessibilityWrapper) AccessibilitySortDirection() AccessibilitySortDirection { - rv := objc.Call[AccessibilitySortDirection](a_, objc.Sel("accessibilitySortDirection")) +// [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_ AccessibilityWrapper) HasSetAccessibilityValueDescription() bool { - return a_.RespondsToSelector(objc.Sel("setAccessibilityValueDescription:")) +func (a_ AccessibilityObject) HasSetAccessibilityElement() bool { + return a_.RespondsToSelector(objc.Sel("setAccessibilityElement:")) } -// A human-readable description of the accessibility element’s value. [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/1535113-accessibilityvaluedescription?language=objc -func (a_ AccessibilityWrapper) SetAccessibilityValueDescription(value string) { - objc.Call[objc.Void](a_, objc.Sel("setAccessibilityValueDescription:"), 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_ AccessibilityWrapper) HasAccessibilityValueDescription() bool { - return a_.RespondsToSelector(objc.Sel("accessibilityValueDescription")) +func (a_ AccessibilityObject) HasIsAccessibilityElement() bool { + return a_.RespondsToSelector(objc.Sel("isAccessibilityElement")) } -// A human-readable description of the accessibility element’s value. [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/1535113-accessibilityvaluedescription?language=objc -func (a_ AccessibilityWrapper) AccessibilityValueDescription() string { - rv := objc.Call[string](a_, objc.Sel("accessibilityValueDescription")) +// [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_ AccessibilityWrapper) HasSetAccessibilityLinkedUIElements() bool { - return a_.RespondsToSelector(objc.Sel("setAccessibilityLinkedUIElements:")) +func (a_ AccessibilityObject) HasSetAccessibilityMinimized() bool { + return a_.RespondsToSelector(objc.Sel("setAccessibilityMinimized:")) } -// The elements that have links with the accessibility element. [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/1534972-accessibilitylinkeduielements?language=objc -func (a_ AccessibilityWrapper) SetAccessibilityLinkedUIElements(value []objc.IObject) { - objc.Call[objc.Void](a_, objc.Sel("setAccessibilityLinkedUIElements:"), value) +// [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_ AccessibilityWrapper) HasAccessibilityLinkedUIElements() bool { - return a_.RespondsToSelector(objc.Sel("accessibilityLinkedUIElements")) +func (a_ AccessibilityObject) HasIsAccessibilityMinimized() bool { + return a_.RespondsToSelector(objc.Sel("isAccessibilityMinimized")) } -// The elements that have links with the accessibility element. [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/1534972-accessibilitylinkeduielements?language=objc -func (a_ AccessibilityWrapper) AccessibilityLinkedUIElements() []objc.Object { - rv := objc.Call[[]objc.Object](a_, objc.Sel("accessibilityLinkedUIElements")) +// [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_ AccessibilityWrapper) HasSetAccessibilityExtrasMenuBar() bool { - return a_.RespondsToSelector(objc.Sel("setAccessibilityExtrasMenuBar:")) +func (a_ AccessibilityObject) HasSetAccessibilityOrderedByRow() bool { + return a_.RespondsToSelector(objc.Sel("setAccessibilityOrderedByRow:")) } -// The icon for the app’s menu bar extra. [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/1534996-accessibilityextrasmenubar?language=objc -func (a_ AccessibilityWrapper) SetAccessibilityExtrasMenuBar(value objc.IObject) { - objc.Call[objc.Void](a_, objc.Sel("setAccessibilityExtrasMenuBar:"), value) +// [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_ AccessibilityWrapper) HasAccessibilityExtrasMenuBar() bool { - return a_.RespondsToSelector(objc.Sel("accessibilityExtrasMenuBar")) +func (a_ AccessibilityObject) HasIsAccessibilityOrderedByRow() bool { + return a_.RespondsToSelector(objc.Sel("isAccessibilityOrderedByRow")) } -// The icon for the app’s menu bar extra. [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/1534996-accessibilityextrasmenubar?language=objc -func (a_ AccessibilityWrapper) AccessibilityExtrasMenuBar() objc.Object { - rv := objc.Call[objc.Object](a_, objc.Sel("accessibilityExtrasMenuBar")) +// [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_ AccessibilityWrapper) HasSetAccessibilityWindow() bool { - return a_.RespondsToSelector(objc.Sel("setAccessibilityWindow:")) +func (a_ AccessibilityObject) HasSetAccessibilityRows() bool { + return a_.RespondsToSelector(objc.Sel("setAccessibilityRows:")) } -// The window that contains the accessibility element. [Full Topic] +// The row accessibility elements for the table or outline. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsaccessibility/1535030-accessibilitywindow?language=objc -func (a_ AccessibilityWrapper) SetAccessibilityWindow(value objc.IObject) { - objc.Call[objc.Void](a_, objc.Sel("setAccessibilityWindow:"), 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_ AccessibilityWrapper) HasAccessibilityWindow() bool { - return a_.RespondsToSelector(objc.Sel("accessibilityWindow")) +func (a_ AccessibilityObject) HasAccessibilityRows() bool { + return a_.RespondsToSelector(objc.Sel("accessibilityRows")) } -// The window that contains the accessibility element. [Full Topic] +// The row accessibility elements for the table or outline. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsaccessibility/1535030-accessibilitywindow?language=objc -func (a_ AccessibilityWrapper) AccessibilityWindow() objc.Object { - rv := objc.Call[objc.Object](a_, objc.Sel("accessibilityWindow")) +// [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_ AccessibilityWrapper) HasSetAccessibilityDisclosedByRow() bool { - return a_.RespondsToSelector(objc.Sel("setAccessibilityDisclosedByRow:")) +func (a_ AccessibilityObject) HasSetAccessibilityTopLevelUIElement() bool { + return a_.RespondsToSelector(objc.Sel("setAccessibilityTopLevelUIElement:")) } -// The row disclosing the current row. [Full Topic] +// The top-level element that contains the accessibility element. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsaccessibility/1535146-accessibilitydisclosedbyrow?language=objc -func (a_ AccessibilityWrapper) SetAccessibilityDisclosedByRow(value objc.IObject) { - objc.Call[objc.Void](a_, objc.Sel("setAccessibilityDisclosedByRow:"), 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_ AccessibilityWrapper) HasAccessibilityDisclosedByRow() bool { - return a_.RespondsToSelector(objc.Sel("accessibilityDisclosedByRow")) +func (a_ AccessibilityObject) HasAccessibilityTopLevelUIElement() bool { + return a_.RespondsToSelector(objc.Sel("accessibilityTopLevelUIElement")) } -// The row disclosing the current row. [Full Topic] +// The top-level element that contains the accessibility element. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsaccessibility/1535146-accessibilitydisclosedbyrow?language=objc -func (a_ AccessibilityWrapper) AccessibilityDisclosedByRow() objc.Object { - rv := objc.Call[objc.Object](a_, objc.Sel("accessibilityDisclosedByRow")) +// [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_ AccessibilityWrapper) HasSetAccessibilityHorizontalUnitDescription() bool { - return a_.RespondsToSelector(objc.Sel("setAccessibilityHorizontalUnitDescription:")) +func (a_ AccessibilityObject) HasSetAccessibilityColumnHeaderUIElements() bool { + return a_.RespondsToSelector(objc.Sel("setAccessibilityColumnHeaderUIElements:")) } -// A description of the layout area’s horizontal units. [Full Topic] +// The column header accessibility elements for the table or outline. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsaccessibility/1535095-accessibilityhorizontalunitdescr?language=objc -func (a_ AccessibilityWrapper) SetAccessibilityHorizontalUnitDescription(value string) { - objc.Call[objc.Void](a_, objc.Sel("setAccessibilityHorizontalUnitDescription:"), 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_ AccessibilityWrapper) HasAccessibilityHorizontalUnitDescription() bool { - return a_.RespondsToSelector(objc.Sel("accessibilityHorizontalUnitDescription")) +func (a_ AccessibilityObject) HasAccessibilityColumnHeaderUIElements() bool { + return a_.RespondsToSelector(objc.Sel("accessibilityColumnHeaderUIElements")) } -// A description of the layout area’s horizontal units. [Full Topic] +// The column header accessibility elements for the table or outline. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsaccessibility/1535095-accessibilityhorizontalunitdescr?language=objc -func (a_ AccessibilityWrapper) AccessibilityHorizontalUnitDescription() string { - rv := objc.Call[string](a_, objc.Sel("accessibilityHorizontalUnitDescription")) +// [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_ AccessibilityWrapper) HasSetAccessibilityZoomButton() bool { - return a_.RespondsToSelector(objc.Sel("setAccessibilityZoomButton:")) +func (a_ AccessibilityObject) HasSetAccessibilityRowHeaderUIElements() bool { + return a_.RespondsToSelector(objc.Sel("setAccessibilityRowHeaderUIElements:")) } -// The child accessibility element that represents the window’s zoom button. [Full Topic] +// The row header accessibility elements for the table or outline. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsaccessibility/1535090-accessibilityzoombutton?language=objc -func (a_ AccessibilityWrapper) SetAccessibilityZoomButton(value objc.IObject) { - objc.Call[objc.Void](a_, objc.Sel("setAccessibilityZoomButton:"), 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_ AccessibilityWrapper) HasAccessibilityZoomButton() bool { - return a_.RespondsToSelector(objc.Sel("accessibilityZoomButton")) +func (a_ AccessibilityObject) HasAccessibilityRowHeaderUIElements() bool { + return a_.RespondsToSelector(objc.Sel("accessibilityRowHeaderUIElements")) } -// The child accessibility element that represents the window’s zoom button. [Full Topic] +// The row header accessibility elements for the table or outline. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsaccessibility/1535090-accessibilityzoombutton?language=objc -func (a_ AccessibilityWrapper) AccessibilityZoomButton() objc.Object { - rv := objc.Call[objc.Object](a_, objc.Sel("accessibilityZoomButton")) +// [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_ AccessibilityWrapper) HasSetAccessibilityColumnTitles() bool { - return a_.RespondsToSelector(objc.Sel("setAccessibilityColumnTitles:")) +func (a_ AccessibilityObject) HasSetAccessibilitySelectedRows() bool { + return a_.RespondsToSelector(objc.Sel("setAccessibilitySelectedRows:")) } -// The column titles for the accessibility element. [Full Topic] +// The currently selected rows for the table or outline. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsaccessibility/1535148-accessibilitycolumntitles?language=objc -func (a_ AccessibilityWrapper) SetAccessibilityColumnTitles(value []objc.IObject) { - objc.Call[objc.Void](a_, objc.Sel("setAccessibilityColumnTitles:"), 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_ AccessibilityWrapper) HasAccessibilityColumnTitles() bool { - return a_.RespondsToSelector(objc.Sel("accessibilityColumnTitles")) +func (a_ AccessibilityObject) HasAccessibilitySelectedRows() bool { + return a_.RespondsToSelector(objc.Sel("accessibilitySelectedRows")) } -// The column titles for the accessibility element. [Full Topic] +// The currently selected rows for the table or outline. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsaccessibility/1535148-accessibilitycolumntitles?language=objc -func (a_ AccessibilityWrapper) AccessibilityColumnTitles() []objc.Object { - rv := objc.Call[[]objc.Object](a_, objc.Sel("accessibilityColumnTitles")) +// [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 } -func (a_ AccessibilityWrapper) HasSetAccessibilityVerticalScrollBar() bool { - return a_.RespondsToSelector(objc.Sel("setAccessibilityVerticalScrollBar:")) +func (a_ AccessibilityObject) HasSetAccessibilityVisibleRows() bool { + return a_.RespondsToSelector(objc.Sel("setAccessibilityVisibleRows:")) } -// The vertical scroll bar for the scroll view. [Full Topic] +// The visible rows for the table or outline. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsaccessibility/1535053-accessibilityverticalscrollbar?language=objc -func (a_ AccessibilityWrapper) SetAccessibilityVerticalScrollBar(value objc.IObject) { - objc.Call[objc.Void](a_, objc.Sel("setAccessibilityVerticalScrollBar:"), 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_ AccessibilityWrapper) HasAccessibilityVerticalScrollBar() bool { - return a_.RespondsToSelector(objc.Sel("accessibilityVerticalScrollBar")) +func (a_ AccessibilityObject) HasAccessibilityVisibleRows() bool { + return a_.RespondsToSelector(objc.Sel("accessibilityVisibleRows")) } -// The vertical scroll bar for the scroll view. [Full Topic] +// The visible rows for the table or outline. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsaccessibility/1535053-accessibilityverticalscrollbar?language=objc -func (a_ AccessibilityWrapper) AccessibilityVerticalScrollBar() objc.Object { - rv := objc.Call[objc.Object](a_, objc.Sel("accessibilityVerticalScrollBar")) +// [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_ AccessibilityWrapper) HasSetAccessibilityIncrementButton() bool { - return a_.RespondsToSelector(objc.Sel("setAccessibilityIncrementButton:")) +func (a_ AccessibilityObject) HasSetAccessibilitySelectedText() bool { + return a_.RespondsToSelector(objc.Sel("setAccessibilitySelectedText:")) } -// The increment button for the stepper accessibility element. [Full Topic] +// The currently selected text. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsaccessibility/1535007-accessibilityincrementbutton?language=objc -func (a_ AccessibilityWrapper) SetAccessibilityIncrementButton(value objc.IObject) { - objc.Call[objc.Void](a_, objc.Sel("setAccessibilityIncrementButton:"), 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_ AccessibilityWrapper) HasAccessibilityIncrementButton() bool { - return a_.RespondsToSelector(objc.Sel("accessibilityIncrementButton")) +func (a_ AccessibilityObject) HasAccessibilitySelectedText() bool { + return a_.RespondsToSelector(objc.Sel("accessibilitySelectedText")) } -// The increment button for the stepper accessibility element. [Full Topic] +// The currently selected text. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsaccessibility/1535007-accessibilityincrementbutton?language=objc -func (a_ AccessibilityWrapper) AccessibilityIncrementButton() objc.Object { - rv := objc.Call[objc.Object](a_, objc.Sel("accessibilityIncrementButton")) +// [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_ AccessibilityWrapper) HasSetAccessibilityGrowArea() bool { - return a_.RespondsToSelector(objc.Sel("setAccessibilityGrowArea:")) +func (a_ AccessibilityObject) HasSetAccessibilityOrientation() bool { + return a_.RespondsToSelector(objc.Sel("setAccessibilityOrientation:")) } -// The child accessibility element that represents the window’s grow area. [Full Topic] +// The orientation of the accessibility element. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsaccessibility/1535074-accessibilitygrowarea?language=objc -func (a_ AccessibilityWrapper) SetAccessibilityGrowArea(value objc.IObject) { - objc.Call[objc.Void](a_, objc.Sel("setAccessibilityGrowArea:"), 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_ AccessibilityWrapper) HasAccessibilityGrowArea() bool { - return a_.RespondsToSelector(objc.Sel("accessibilityGrowArea")) +func (a_ AccessibilityObject) HasAccessibilityOrientation() bool { + return a_.RespondsToSelector(objc.Sel("accessibilityOrientation")) } -// The child accessibility element that represents the window’s grow area. [Full Topic] +// The orientation of the accessibility element. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsaccessibility/1535074-accessibilitygrowarea?language=objc -func (a_ AccessibilityWrapper) AccessibilityGrowArea() objc.Object { - rv := objc.Call[objc.Object](a_, objc.Sel("accessibilityGrowArea")) +// [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_ AccessibilityWrapper) HasSetAccessibilityNextContents() bool { - return a_.RespondsToSelector(objc.Sel("setAccessibilityNextContents:")) +func (a_ AccessibilityObject) HasSetAccessibilitySharedTextUIElements() bool { + return a_.RespondsToSelector(objc.Sel("setAccessibilitySharedTextUIElements:")) } -// The contents that follow the divider accessibility element. [Full Topic] +// Other elements that share text with the accessibility element. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsaccessibility/1535034-accessibilitynextcontents?language=objc -func (a_ AccessibilityWrapper) SetAccessibilityNextContents(value []objc.IObject) { - objc.Call[objc.Void](a_, objc.Sel("setAccessibilityNextContents:"), 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_ AccessibilityWrapper) HasAccessibilityNextContents() bool { - return a_.RespondsToSelector(objc.Sel("accessibilityNextContents")) +func (a_ AccessibilityObject) HasAccessibilitySharedTextUIElements() bool { + return a_.RespondsToSelector(objc.Sel("accessibilitySharedTextUIElements")) } -// The contents that follow the divider accessibility element. [Full Topic] +// Other elements that share text with the accessibility element. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsaccessibility/1535034-accessibilitynextcontents?language=objc -func (a_ AccessibilityWrapper) AccessibilityNextContents() []objc.Object { - rv := objc.Call[[]objc.Object](a_, objc.Sel("accessibilityNextContents")) +// [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_ AccessibilityWrapper) HasSetAccessibilityHorizontalScrollBar() bool { - return a_.RespondsToSelector(objc.Sel("setAccessibilityHorizontalScrollBar:")) +func (a_ AccessibilityObject) HasSetAccessibilityFilename() bool { + return a_.RespondsToSelector(objc.Sel("setAccessibilityFilename:")) } -// The horizontal scroll bar for the scroll view. [Full Topic] +// The filename for the file that the accessibility element represents. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsaccessibility/1534942-accessibilityhorizontalscrollbar?language=objc -func (a_ AccessibilityWrapper) SetAccessibilityHorizontalScrollBar(value objc.IObject) { - objc.Call[objc.Void](a_, objc.Sel("setAccessibilityHorizontalScrollBar:"), 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_ AccessibilityWrapper) HasAccessibilityHorizontalScrollBar() bool { - return a_.RespondsToSelector(objc.Sel("accessibilityHorizontalScrollBar")) +func (a_ AccessibilityObject) HasAccessibilityFilename() bool { + return a_.RespondsToSelector(objc.Sel("accessibilityFilename")) } -// The horizontal scroll bar for the scroll view. [Full Topic] +// The filename for the file that the accessibility element represents. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsaccessibility/1534942-accessibilityhorizontalscrollbar?language=objc -func (a_ AccessibilityWrapper) AccessibilityHorizontalScrollBar() objc.Object { - rv := objc.Call[objc.Object](a_, objc.Sel("accessibilityHorizontalScrollBar")) +// [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_ AccessibilityWrapper) HasSetAccessibilityUnitDescription() bool { - return a_.RespondsToSelector(objc.Sel("setAccessibilityUnitDescription:")) +func (a_ AccessibilityObject) HasSetAccessibilityNextContents() bool { + return a_.RespondsToSelector(objc.Sel("setAccessibilityNextContents:")) } -// A human-readable description of the ruler’s units. [Full Topic] +// The contents that follow the divider accessibility element. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsaccessibility/1535094-accessibilityunitdescription?language=objc -func (a_ AccessibilityWrapper) SetAccessibilityUnitDescription(value string) { - objc.Call[objc.Void](a_, objc.Sel("setAccessibilityUnitDescription:"), value) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsaccessibility/1535034-accessibilitynextcontents?language=objc +func (a_ AccessibilityObject) SetAccessibilityNextContents(value []objc.Object) { + objc.Call[objc.Void](a_, objc.Sel("setAccessibilityNextContents:"), value) } -func (a_ AccessibilityWrapper) HasAccessibilityUnitDescription() bool { - return a_.RespondsToSelector(objc.Sel("accessibilityUnitDescription")) +func (a_ AccessibilityObject) HasAccessibilityNextContents() bool { + return a_.RespondsToSelector(objc.Sel("accessibilityNextContents")) } -// A human-readable description of the ruler’s units. [Full Topic] +// The contents that follow the divider accessibility element. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsaccessibility/1535094-accessibilityunitdescription?language=objc -func (a_ AccessibilityWrapper) AccessibilityUnitDescription() string { - rv := objc.Call[string](a_, objc.Sel("accessibilityUnitDescription")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsaccessibility/1535034-accessibilitynextcontents?language=objc +func (a_ AccessibilityObject) AccessibilityNextContents() []objc.Object { + rv := objc.Call[[]objc.Object](a_, objc.Sel("accessibilityNextContents")) return rv } -func (a_ AccessibilityWrapper) HasSetAccessibilitySelectedColumns() bool { - return a_.RespondsToSelector(objc.Sel("setAccessibilitySelectedColumns:")) +func (a_ AccessibilityObject) HasSetAccessibilitySharedFocusElements() bool { + return a_.RespondsToSelector(objc.Sel("setAccessibilitySharedFocusElements:")) } -// The currently selected columns for the table or outline. [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/1534978-accessibilityselectedcolumns?language=objc -func (a_ AccessibilityWrapper) SetAccessibilitySelectedColumns(value []objc.IObject) { - objc.Call[objc.Void](a_, objc.Sel("setAccessibilitySelectedColumns:"), 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_ AccessibilityWrapper) HasAccessibilitySelectedColumns() bool { - return a_.RespondsToSelector(objc.Sel("accessibilitySelectedColumns")) +func (a_ AccessibilityObject) HasAccessibilitySharedFocusElements() bool { + return a_.RespondsToSelector(objc.Sel("accessibilitySharedFocusElements")) } -// The currently selected columns for the table or outline. [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/1534978-accessibilityselectedcolumns?language=objc -func (a_ AccessibilityWrapper) AccessibilitySelectedColumns() []objc.Object { - rv := objc.Call[[]objc.Object](a_, objc.Sel("accessibilitySelectedColumns")) +// [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_ AccessibilityWrapper) HasSetAccessibilityPreviousContents() bool { - return a_.RespondsToSelector(objc.Sel("setAccessibilityPreviousContents:")) +func (a_ AccessibilityObject) HasSetAccessibilityColumns() bool { + return a_.RespondsToSelector(objc.Sel("setAccessibilityColumns:")) } -// The contents that precede the divider accessibility element. [Full Topic] +// The column accessibility elements for the table or outline. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsaccessibility/1534950-accessibilitypreviouscontents?language=objc -func (a_ AccessibilityWrapper) SetAccessibilityPreviousContents(value []objc.IObject) { - objc.Call[objc.Void](a_, objc.Sel("setAccessibilityPreviousContents:"), 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_ AccessibilityWrapper) HasAccessibilityPreviousContents() bool { - return a_.RespondsToSelector(objc.Sel("accessibilityPreviousContents")) +func (a_ AccessibilityObject) HasAccessibilityColumns() bool { + return a_.RespondsToSelector(objc.Sel("accessibilityColumns")) } -// The contents that precede the divider accessibility element. [Full Topic] +// The column accessibility elements for the table or outline. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsaccessibility/1534950-accessibilitypreviouscontents?language=objc -func (a_ AccessibilityWrapper) AccessibilityPreviousContents() []objc.Object { - rv := objc.Call[[]objc.Object](a_, objc.Sel("accessibilityPreviousContents")) +// [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_ AccessibilityWrapper) HasSetAccessibilitySelectedText() bool { - return a_.RespondsToSelector(objc.Sel("setAccessibilitySelectedText:")) +func (a_ AccessibilityObject) HasSetAccessibilityMinimizeButton() bool { + return a_.RespondsToSelector(objc.Sel("setAccessibilityMinimizeButton:")) } -// The currently selected text. [Full Topic] +// The child accessibility element that represents the window’s minimize button. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsaccessibility/1535038-accessibilityselectedtext?language=objc -func (a_ AccessibilityWrapper) SetAccessibilitySelectedText(value string) { - objc.Call[objc.Void](a_, objc.Sel("setAccessibilitySelectedText:"), 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_ AccessibilityWrapper) HasAccessibilitySelectedText() bool { - return a_.RespondsToSelector(objc.Sel("accessibilitySelectedText")) +func (a_ AccessibilityObject) HasAccessibilityMinimizeButton() bool { + return a_.RespondsToSelector(objc.Sel("accessibilityMinimizeButton")) } -// The currently selected text. [Full Topic] +// The child accessibility element that represents the window’s minimize button. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsaccessibility/1535038-accessibilityselectedtext?language=objc -func (a_ AccessibilityWrapper) AccessibilitySelectedText() string { - rv := objc.Call[string](a_, objc.Sel("accessibilitySelectedText")) +// [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_ AccessibilityWrapper) HasSetAccessibilityHorizontalUnits() bool { - return a_.RespondsToSelector(objc.Sel("setAccessibilityHorizontalUnits:")) +func (a_ AccessibilityObject) HasSetAccessibilityColumnTitles() bool { + return a_.RespondsToSelector(objc.Sel("setAccessibilityColumnTitles:")) } -// The units that the layout area uses for horizontal values. [Full Topic] +// The column titles for the accessibility element. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsaccessibility/1535154-accessibilityhorizontalunits?language=objc -func (a_ AccessibilityWrapper) SetAccessibilityHorizontalUnits(value AccessibilityUnits) { - objc.Call[objc.Void](a_, objc.Sel("setAccessibilityHorizontalUnits:"), 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_ AccessibilityWrapper) HasAccessibilityHorizontalUnits() bool { - return a_.RespondsToSelector(objc.Sel("accessibilityHorizontalUnits")) +func (a_ AccessibilityObject) HasAccessibilityColumnTitles() bool { + return a_.RespondsToSelector(objc.Sel("accessibilityColumnTitles")) } -// The units that the layout area uses for horizontal values. [Full Topic] +// The column titles for the accessibility element. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsaccessibility/1535154-accessibilityhorizontalunits?language=objc -func (a_ AccessibilityWrapper) AccessibilityHorizontalUnits() AccessibilityUnits { - rv := objc.Call[AccessibilityUnits](a_, objc.Sel("accessibilityHorizontalUnits")) +// [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_ AccessibilityWrapper) HasSetAccessibilityEnabled() bool { - return a_.RespondsToSelector(objc.Sel("setAccessibilityEnabled:")) +func (a_ AccessibilityObject) HasSetAccessibilityHelp() bool { + return a_.RespondsToSelector(objc.Sel("setAccessibilityHelp:")) } -// A Boolean value that determines whether the accessibility element responds to user events. [Full Topic] +// The help text for the accessibility element. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsaccessibility/1535024-accessibilityenabled?language=objc -func (a_ AccessibilityWrapper) SetAccessibilityEnabled(value bool) { - objc.Call[objc.Void](a_, objc.Sel("setAccessibilityEnabled:"), 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_ AccessibilityWrapper) HasIsAccessibilityEnabled() bool { - return a_.RespondsToSelector(objc.Sel("isAccessibilityEnabled")) +func (a_ AccessibilityObject) HasAccessibilityHelp() bool { + return a_.RespondsToSelector(objc.Sel("accessibilityHelp")) } -// A Boolean value that determines whether the accessibility element responds to user events. [Full Topic] +// The help text for the accessibility element. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsaccessibility/1535024-accessibilityenabled?language=objc -func (a_ AccessibilityWrapper) IsAccessibilityEnabled() bool { - rv := objc.Call[bool](a_, objc.Sel("isAccessibilityEnabled")) +// [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_ AccessibilityWrapper) HasSetAccessibilityTabs() bool { - return a_.RespondsToSelector(objc.Sel("setAccessibilityTabs:")) +func (a_ AccessibilityObject) HasSetAccessibilityLabelUIElements() bool { + return a_.RespondsToSelector(objc.Sel("setAccessibilityLabelUIElements:")) } -// The tab accessibility elements for the tab view. [Full Topic] +// The child label elements for the slider accessibility element. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsaccessibility/1535044-accessibilitytabs?language=objc -func (a_ AccessibilityWrapper) SetAccessibilityTabs(value []objc.IObject) { - objc.Call[objc.Void](a_, objc.Sel("setAccessibilityTabs:"), 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_ AccessibilityWrapper) HasAccessibilityTabs() bool { - return a_.RespondsToSelector(objc.Sel("accessibilityTabs")) +func (a_ AccessibilityObject) HasAccessibilityLabelUIElements() bool { + return a_.RespondsToSelector(objc.Sel("accessibilityLabelUIElements")) } -// The tab accessibility elements for the tab view. [Full Topic] +// The child label elements for the slider accessibility element. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsaccessibility/1535044-accessibilitytabs?language=objc -func (a_ AccessibilityWrapper) AccessibilityTabs() []objc.Object { - rv := objc.Call[[]objc.Object](a_, objc.Sel("accessibilityTabs")) +// [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_ AccessibilityWrapper) HasSetAccessibilityInsertionPointLineNumber() bool { - return a_.RespondsToSelector(objc.Sel("setAccessibilityInsertionPointLineNumber:")) +func (a_ AccessibilityObject) HasSetAccessibilityProtectedContent() bool { + return a_.RespondsToSelector(objc.Sel("setAccessibilityProtectedContent:")) } -// The line number that contains the insertion point. [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/1535050-accessibilityinsertionpointlinen?language=objc -func (a_ AccessibilityWrapper) SetAccessibilityInsertionPointLineNumber(value int) { - objc.Call[objc.Void](a_, objc.Sel("setAccessibilityInsertionPointLineNumber:"), 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_ AccessibilityWrapper) HasAccessibilityInsertionPointLineNumber() bool { - return a_.RespondsToSelector(objc.Sel("accessibilityInsertionPointLineNumber")) +func (a_ AccessibilityObject) HasIsAccessibilityProtectedContent() bool { + return a_.RespondsToSelector(objc.Sel("isAccessibilityProtectedContent")) } -// The line number that contains the insertion point. [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/1535050-accessibilityinsertionpointlinen?language=objc -func (a_ AccessibilityWrapper) AccessibilityInsertionPointLineNumber() int { - rv := objc.Call[int](a_, objc.Sel("accessibilityInsertionPointLineNumber")) +// [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_ AccessibilityWrapper) HasSetAccessibilityProxy() bool { - return a_.RespondsToSelector(objc.Sel("setAccessibilityProxy:")) +func (a_ AccessibilityObject) HasSetAccessibilityModal() bool { + return a_.RespondsToSelector(objc.Sel("setAccessibilityModal:")) } -// The child accessibility element that represents the window’s proxy icon. [Full Topic] +// A Boolean value that determines whether the window is modal. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsaccessibility/1535143-accessibilityproxy?language=objc -func (a_ AccessibilityWrapper) SetAccessibilityProxy(value objc.IObject) { - objc.Call[objc.Void](a_, objc.Sel("setAccessibilityProxy:"), 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_ AccessibilityWrapper) HasAccessibilityProxy() bool { - return a_.RespondsToSelector(objc.Sel("accessibilityProxy")) +func (a_ AccessibilityObject) HasIsAccessibilityModal() bool { + return a_.RespondsToSelector(objc.Sel("isAccessibilityModal")) } -// The child accessibility element that represents the window’s proxy icon. [Full Topic] +// A Boolean value that determines whether the window is modal. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsaccessibility/1535143-accessibilityproxy?language=objc -func (a_ AccessibilityWrapper) AccessibilityProxy() objc.Object { - rv := objc.Call[objc.Object](a_, objc.Sel("accessibilityProxy")) +// [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_ AccessibilityWrapper) HasSetAccessibilitySearchMenu() bool { - return a_.RespondsToSelector(objc.Sel("setAccessibilitySearchMenu:")) +func (a_ AccessibilityObject) HasSetAccessibilityToolbarButton() bool { + return a_.RespondsToSelector(objc.Sel("setAccessibilityToolbarButton:")) } -// The search menu for the search field. [Full Topic] +// The child accessibility element that represents the window’s toolbar button. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsaccessibility/1535015-accessibilitysearchmenu?language=objc -func (a_ AccessibilityWrapper) SetAccessibilitySearchMenu(value objc.IObject) { - objc.Call[objc.Void](a_, objc.Sel("setAccessibilitySearchMenu:"), 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_ AccessibilityWrapper) HasAccessibilitySearchMenu() bool { - return a_.RespondsToSelector(objc.Sel("accessibilitySearchMenu")) +func (a_ AccessibilityObject) HasAccessibilityToolbarButton() bool { + return a_.RespondsToSelector(objc.Sel("accessibilityToolbarButton")) } -// The search menu for the search field. [Full Topic] +// The child accessibility element that represents the window’s toolbar button. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsaccessibility/1535015-accessibilitysearchmenu?language=objc -func (a_ AccessibilityWrapper) AccessibilitySearchMenu() objc.Object { - rv := objc.Call[objc.Object](a_, objc.Sel("accessibilitySearchMenu")) +// [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_ AccessibilityWrapper) HasSetAccessibilityFilename() bool { - return a_.RespondsToSelector(objc.Sel("setAccessibilityFilename:")) +func (a_ AccessibilityObject) HasSetAccessibilityShownMenu() bool { + return a_.RespondsToSelector(objc.Sel("setAccessibilityShownMenu:")) } -// The filename for the file that the accessibility element represents. [Full Topic] +// The menu currently displaying for the accessibility element. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsaccessibility/1535068-accessibilityfilename?language=objc -func (a_ AccessibilityWrapper) SetAccessibilityFilename(value string) { - objc.Call[objc.Void](a_, objc.Sel("setAccessibilityFilename:"), 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_ AccessibilityWrapper) HasAccessibilityFilename() bool { - return a_.RespondsToSelector(objc.Sel("accessibilityFilename")) +func (a_ AccessibilityObject) HasAccessibilityShownMenu() bool { + return a_.RespondsToSelector(objc.Sel("accessibilityShownMenu")) } -// The filename for the file that the accessibility element represents. [Full Topic] +// The menu currently displaying for the accessibility element. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsaccessibility/1535068-accessibilityfilename?language=objc -func (a_ AccessibilityWrapper) AccessibilityFilename() string { - rv := objc.Call[string](a_, objc.Sel("accessibilityFilename")) +// [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_ AccessibilityWrapper) HasSetAccessibilitySelectedChildren() bool { - return a_.RespondsToSelector(objc.Sel("setAccessibilitySelectedChildren:")) +func (a_ AccessibilityObject) HasSetAccessibilitySearchMenu() bool { + return a_.RespondsToSelector(objc.Sel("setAccessibilitySearchMenu:")) } -// The accessibility element’s currently selected children. [Full Topic] +// The search menu for the search field. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsaccessibility/1534970-accessibilityselectedchildren?language=objc -func (a_ AccessibilityWrapper) SetAccessibilitySelectedChildren(value []objc.IObject) { - objc.Call[objc.Void](a_, objc.Sel("setAccessibilitySelectedChildren:"), value) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsaccessibility/1535015-accessibilitysearchmenu?language=objc +func (a_ AccessibilityObject) SetAccessibilitySearchMenu(value objc.Object) { + objc.Call[objc.Void](a_, objc.Sel("setAccessibilitySearchMenu:"), value) } -func (a_ AccessibilityWrapper) HasAccessibilitySelectedChildren() bool { - return a_.RespondsToSelector(objc.Sel("accessibilitySelectedChildren")) +func (a_ AccessibilityObject) HasAccessibilitySearchMenu() bool { + return a_.RespondsToSelector(objc.Sel("accessibilitySearchMenu")) } -// The accessibility element’s currently selected children. [Full Topic] +// The search menu for the search field. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsaccessibility/1534970-accessibilityselectedchildren?language=objc -func (a_ AccessibilityWrapper) AccessibilitySelectedChildren() []objc.Object { - rv := objc.Call[[]objc.Object](a_, objc.Sel("accessibilitySelectedChildren")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsaccessibility/1535015-accessibilitysearchmenu?language=objc +func (a_ AccessibilityObject) AccessibilitySearchMenu() objc.Object { + rv := objc.Call[objc.Object](a_, objc.Sel("accessibilitySearchMenu")) return rv } -func (a_ AccessibilityWrapper) HasSetAccessibilityApplicationFocusedUIElement() bool { - return a_.RespondsToSelector(objc.Sel("setAccessibilityApplicationFocusedUIElement:")) +func (a_ AccessibilityObject) HasSetAccessibilityMarkerValues() bool { + return a_.RespondsToSelector(objc.Sel("setAccessibilityMarkerValues:")) } -// The child accessibility element with the current focus. [Full Topic] +// The marker values for the ruler. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsaccessibility/1535139-accessibilityapplicationfocusedu?language=objc -func (a_ AccessibilityWrapper) SetAccessibilityApplicationFocusedUIElement(value objc.IObject) { - objc.Call[objc.Void](a_, objc.Sel("setAccessibilityApplicationFocusedUIElement:"), 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_ AccessibilityWrapper) HasAccessibilityApplicationFocusedUIElement() bool { - return a_.RespondsToSelector(objc.Sel("accessibilityApplicationFocusedUIElement")) +func (a_ AccessibilityObject) HasAccessibilityMarkerValues() bool { + return a_.RespondsToSelector(objc.Sel("accessibilityMarkerValues")) } -// The child accessibility element with the current focus. [Full Topic] +// The marker values for the ruler. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsaccessibility/1535139-accessibilityapplicationfocusedu?language=objc -func (a_ AccessibilityWrapper) AccessibilityApplicationFocusedUIElement() objc.Object { - rv := objc.Call[objc.Object](a_, objc.Sel("accessibilityApplicationFocusedUIElement")) +// [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_ AccessibilityWrapper) HasSetAccessibilityMinimized() bool { - return a_.RespondsToSelector(objc.Sel("setAccessibilityMinimized:")) +func (a_ AccessibilityObject) HasSetAccessibilityProxy() bool { + return a_.RespondsToSelector(objc.Sel("setAccessibilityProxy:")) } -// A Boolean value that determines whether this window is in a minimized state. [Full Topic] +// The child accessibility element that represents the window’s proxy icon. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsaccessibility/1535028-accessibilityminimized?language=objc -func (a_ AccessibilityWrapper) SetAccessibilityMinimized(value bool) { - objc.Call[objc.Void](a_, objc.Sel("setAccessibilityMinimized:"), 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_ AccessibilityWrapper) HasIsAccessibilityMinimized() bool { - return a_.RespondsToSelector(objc.Sel("isAccessibilityMinimized")) +func (a_ AccessibilityObject) HasAccessibilityProxy() bool { + return a_.RespondsToSelector(objc.Sel("accessibilityProxy")) } -// A Boolean value that determines whether this window is in a minimized state. [Full Topic] +// The child accessibility element that represents the window’s proxy icon. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsaccessibility/1535028-accessibilityminimized?language=objc -func (a_ AccessibilityWrapper) IsAccessibilityMinimized() bool { - rv := objc.Call[bool](a_, objc.Sel("isAccessibilityMinimized")) +// [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 } -func (a_ AccessibilityWrapper) HasSetAccessibilityElement() bool { - return a_.RespondsToSelector(objc.Sel("setAccessibilityElement:")) +func (a_ AccessibilityObject) HasSetAccessibilityVisibleColumns() bool { + return a_.RespondsToSelector(objc.Sel("setAccessibilityVisibleColumns:")) } -// A Boolean value that determines whether the accessibility element participates in the accessibility hierarchy. [Full Topic] +// The visible columns for the table or outline. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsaccessibility/1535002-accessibilityelement?language=objc -func (a_ AccessibilityWrapper) SetAccessibilityElement(value bool) { - objc.Call[objc.Void](a_, objc.Sel("setAccessibilityElement:"), 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_ AccessibilityWrapper) HasIsAccessibilityElement() bool { - return a_.RespondsToSelector(objc.Sel("isAccessibilityElement")) +func (a_ AccessibilityObject) HasAccessibilityVisibleColumns() bool { + return a_.RespondsToSelector(objc.Sel("accessibilityVisibleColumns")) } -// A Boolean value that determines whether the accessibility element participates in the accessibility hierarchy. [Full Topic] +// The visible columns for the table or outline. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsaccessibility/1535002-accessibilityelement?language=objc -func (a_ AccessibilityWrapper) IsAccessibilityElement() bool { - rv := objc.Call[bool](a_, objc.Sel("isAccessibilityElement")) +// [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 } -func (a_ AccessibilityWrapper) HasSetAccessibilityDisclosedRows() bool { - return a_.RespondsToSelector(objc.Sel("setAccessibilityDisclosedRows:")) +func (a_ AccessibilityObject) HasSetAccessibilityInsertionPointLineNumber() bool { + return a_.RespondsToSelector(objc.Sel("setAccessibilityInsertionPointLineNumber:")) } -// The rows that the current row discloses. [Full Topic] +// The line number that contains the insertion point. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsaccessibility/1535008-accessibilitydisclosedrows?language=objc -func (a_ AccessibilityWrapper) SetAccessibilityDisclosedRows(value objc.IObject) { - objc.Call[objc.Void](a_, objc.Sel("setAccessibilityDisclosedRows:"), 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_ AccessibilityWrapper) HasAccessibilityDisclosedRows() bool { - return a_.RespondsToSelector(objc.Sel("accessibilityDisclosedRows")) +func (a_ AccessibilityObject) HasAccessibilityInsertionPointLineNumber() bool { + return a_.RespondsToSelector(objc.Sel("accessibilityInsertionPointLineNumber")) } -// The rows that the current row discloses. [Full Topic] +// The line number that contains the insertion point. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsaccessibility/1535008-accessibilitydisclosedrows?language=objc -func (a_ AccessibilityWrapper) AccessibilityDisclosedRows() objc.Object { - rv := objc.Call[objc.Object](a_, objc.Sel("accessibilityDisclosedRows")) +// [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_ AccessibilityWrapper) HasSetAccessibilityFullScreenButton() bool { +func (a_ AccessibilityObject) HasSetAccessibilityFullScreenButton() bool { return a_.RespondsToSelector(objc.Sel("setAccessibilityFullScreenButton:")) } // The child accessibility element that represents the window’s full-screen button. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/appkit/nsaccessibility/1534999-accessibilityfullscreenbutton?language=objc -func (a_ AccessibilityWrapper) SetAccessibilityFullScreenButton(value objc.IObject) { +func (a_ AccessibilityObject) SetAccessibilityFullScreenButton(value objc.Object) { objc.Call[objc.Void](a_, objc.Sel("setAccessibilityFullScreenButton:"), value) } -func (a_ AccessibilityWrapper) HasAccessibilityFullScreenButton() bool { +func (a_ AccessibilityObject) HasAccessibilityFullScreenButton() bool { return a_.RespondsToSelector(objc.Sel("accessibilityFullScreenButton")) } // The child accessibility element that represents the window’s full-screen button. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/appkit/nsaccessibility/1534999-accessibilityfullscreenbutton?language=objc -func (a_ AccessibilityWrapper) AccessibilityFullScreenButton() objc.Object { +func (a_ AccessibilityObject) AccessibilityFullScreenButton() objc.Object { rv := objc.Call[objc.Object](a_, objc.Sel("accessibilityFullScreenButton")) return rv } -func (a_ AccessibilityWrapper) HasSetAccessibilityFrontmost() bool { - return a_.RespondsToSelector(objc.Sel("setAccessibilityFrontmost:")) +func (a_ AccessibilityObject) HasSetAccessibilityAllowedValues() bool { + return a_.RespondsToSelector(objc.Sel("setAccessibilityAllowedValues:")) } -// A Boolean value that determines whether the app is the frontmost app. [Full Topic] +// The allowed values for the slider accessibility element. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsaccessibility/1535073-accessibilityfrontmost?language=objc -func (a_ AccessibilityWrapper) SetAccessibilityFrontmost(value bool) { - objc.Call[objc.Void](a_, objc.Sel("setAccessibilityFrontmost:"), 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_ AccessibilityWrapper) HasIsAccessibilityFrontmost() bool { - return a_.RespondsToSelector(objc.Sel("isAccessibilityFrontmost")) +func (a_ AccessibilityObject) HasAccessibilityAllowedValues() bool { + return a_.RespondsToSelector(objc.Sel("accessibilityAllowedValues")) } -// A Boolean value that determines whether the app is the frontmost app. [Full Topic] +// The allowed values for the slider accessibility element. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsaccessibility/1535073-accessibilityfrontmost?language=objc -func (a_ AccessibilityWrapper) IsAccessibilityFrontmost() bool { - rv := objc.Call[bool](a_, objc.Sel("isAccessibilityFrontmost")) +// [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_ AccessibilityWrapper) HasSetAccessibilityLabelUIElements() bool { - return a_.RespondsToSelector(objc.Sel("setAccessibilityLabelUIElements:")) +func (a_ AccessibilityObject) HasSetAccessibilitySelectedChildren() bool { + return a_.RespondsToSelector(objc.Sel("setAccessibilitySelectedChildren:")) } -// The child label elements for the slider accessibility element. [Full Topic] +// The accessibility element’s currently selected children. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsaccessibility/1534954-accessibilitylabeluielements?language=objc -func (a_ AccessibilityWrapper) SetAccessibilityLabelUIElements(value []objc.IObject) { - objc.Call[objc.Void](a_, objc.Sel("setAccessibilityLabelUIElements:"), 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_ AccessibilityWrapper) HasAccessibilityLabelUIElements() bool { - return a_.RespondsToSelector(objc.Sel("accessibilityLabelUIElements")) +func (a_ AccessibilityObject) HasAccessibilitySelectedChildren() bool { + return a_.RespondsToSelector(objc.Sel("accessibilitySelectedChildren")) } -// The child label elements for the slider accessibility element. [Full Topic] +// The accessibility element’s currently selected children. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsaccessibility/1534954-accessibilitylabeluielements?language=objc -func (a_ AccessibilityWrapper) AccessibilityLabelUIElements() []objc.Object { - rv := objc.Call[[]objc.Object](a_, objc.Sel("accessibilityLabelUIElements")) +// [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_ AccessibilityWrapper) HasSetAccessibilityDisclosureLevel() bool { - return a_.RespondsToSelector(objc.Sel("setAccessibilityDisclosureLevel:")) +func (a_ AccessibilityObject) HasSetAccessibilityCustomRotors() bool { + return a_.RespondsToSelector(objc.Sel("setAccessibilityCustomRotors:")) } -// The indention level for the row. [Full Topic] +// The custom rotors of the current accessibility element. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsaccessibility/1535111-accessibilitydisclosurelevel?language=objc -func (a_ AccessibilityWrapper) SetAccessibilityDisclosureLevel(value int) { - objc.Call[objc.Void](a_, objc.Sel("setAccessibilityDisclosureLevel:"), value) +// [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_ AccessibilityWrapper) HasAccessibilityDisclosureLevel() bool { - return a_.RespondsToSelector(objc.Sel("accessibilityDisclosureLevel")) +func (a_ AccessibilityObject) HasAccessibilityCustomRotors() bool { + return a_.RespondsToSelector(objc.Sel("accessibilityCustomRotors")) } -// The indention level for the row. [Full Topic] +// The custom rotors of the current accessibility element. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsaccessibility/1535111-accessibilitydisclosurelevel?language=objc -func (a_ AccessibilityWrapper) AccessibilityDisclosureLevel() int { - rv := objc.Call[int](a_, objc.Sel("accessibilityDisclosureLevel")) +// [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_ AccessibilityWrapper) HasSetAccessibilityPlaceholderValue() bool { - return a_.RespondsToSelector(objc.Sel("setAccessibilityPlaceholderValue:")) +func (a_ AccessibilityObject) HasSetAccessibilityUnitDescription() bool { + return a_.RespondsToSelector(objc.Sel("setAccessibilityUnitDescription:")) } -// The placeholder value for the accessibility element. [Full Topic] +// A human-readable description of the ruler’s units. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsaccessibility/1535063-accessibilityplaceholdervalue?language=objc -func (a_ AccessibilityWrapper) SetAccessibilityPlaceholderValue(value string) { - objc.Call[objc.Void](a_, objc.Sel("setAccessibilityPlaceholderValue:"), 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_ AccessibilityWrapper) HasAccessibilityPlaceholderValue() bool { - return a_.RespondsToSelector(objc.Sel("accessibilityPlaceholderValue")) +func (a_ AccessibilityObject) HasAccessibilityUnitDescription() bool { + return a_.RespondsToSelector(objc.Sel("accessibilityUnitDescription")) } -// The placeholder value for the accessibility element. [Full Topic] +// A human-readable description of the ruler’s units. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsaccessibility/1535063-accessibilityplaceholdervalue?language=objc -func (a_ AccessibilityWrapper) AccessibilityPlaceholderValue() string { - rv := objc.Call[string](a_, objc.Sel("accessibilityPlaceholderValue")) +// [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_ AccessibilityWrapper) HasSetAccessibilityUnits() bool { - return a_.RespondsToSelector(objc.Sel("setAccessibilityUnits:")) +func (a_ AccessibilityObject) HasSetAccessibilityContents() bool { + return a_.RespondsToSelector(objc.Sel("setAccessibilityContents:")) } -// The units for the ruler. [Full Topic] +// The contents of the current accessibility element. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsaccessibility/1535029-accessibilityunits?language=objc -func (a_ AccessibilityWrapper) SetAccessibilityUnits(value AccessibilityUnits) { - objc.Call[objc.Void](a_, objc.Sel("setAccessibilityUnits:"), 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_ AccessibilityWrapper) HasAccessibilityUnits() bool { - return a_.RespondsToSelector(objc.Sel("accessibilityUnits")) +func (a_ AccessibilityObject) HasAccessibilityContents() bool { + return a_.RespondsToSelector(objc.Sel("accessibilityContents")) } -// The units for the ruler. [Full Topic] +// The contents of the current accessibility element. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsaccessibility/1535029-accessibilityunits?language=objc -func (a_ AccessibilityWrapper) AccessibilityUnits() AccessibilityUnits { - rv := objc.Call[AccessibilityUnits](a_, objc.Sel("accessibilityUnits")) +// [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_ AccessibilityWrapper) HasSetAccessibilityHandles() bool { - return a_.RespondsToSelector(objc.Sel("setAccessibilityHandles:")) +func (a_ AccessibilityObject) HasSetAccessibilityHorizontalScrollBar() bool { + return a_.RespondsToSelector(objc.Sel("setAccessibilityHorizontalScrollBar:")) } -// The drag handle accessibility elements for the layout item element. [Full Topic] +// The horizontal scroll bar for the scroll view. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsaccessibility/1535085-accessibilityhandles?language=objc -func (a_ AccessibilityWrapper) SetAccessibilityHandles(value []objc.IObject) { - objc.Call[objc.Void](a_, objc.Sel("setAccessibilityHandles:"), 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_ AccessibilityWrapper) HasAccessibilityHandles() bool { - return a_.RespondsToSelector(objc.Sel("accessibilityHandles")) +func (a_ AccessibilityObject) HasAccessibilityHorizontalScrollBar() bool { + return a_.RespondsToSelector(objc.Sel("accessibilityHorizontalScrollBar")) } -// The drag handle accessibility elements for the layout item element. [Full Topic] +// The horizontal scroll bar for the scroll view. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsaccessibility/1535085-accessibilityhandles?language=objc -func (a_ AccessibilityWrapper) AccessibilityHandles() []objc.Object { - rv := objc.Call[[]objc.Object](a_, objc.Sel("accessibilityHandles")) +// [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_ AccessibilityWrapper) HasSetAccessibilitySelectedRows() bool { - return a_.RespondsToSelector(objc.Sel("setAccessibilitySelectedRows:")) +func (a_ AccessibilityObject) HasSetAccessibilityCancelButton() bool { + return a_.RespondsToSelector(objc.Sel("setAccessibilityCancelButton:")) } -// The currently selected rows for the table or outline. [Full Topic] +// The child accessibility element that represents the window’s cancel button. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsaccessibility/1535125-accessibilityselectedrows?language=objc -func (a_ AccessibilityWrapper) SetAccessibilitySelectedRows(value []objc.IObject) { - objc.Call[objc.Void](a_, objc.Sel("setAccessibilitySelectedRows:"), 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_ AccessibilityWrapper) HasAccessibilitySelectedRows() bool { - return a_.RespondsToSelector(objc.Sel("accessibilitySelectedRows")) +func (a_ AccessibilityObject) HasAccessibilityCancelButton() bool { + return a_.RespondsToSelector(objc.Sel("accessibilityCancelButton")) } -// The currently selected rows for the table or outline. [Full Topic] +// The child accessibility element that represents the window’s cancel button. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsaccessibility/1535125-accessibilityselectedrows?language=objc -func (a_ AccessibilityWrapper) AccessibilitySelectedRows() []objc.Object { - rv := objc.Call[[]objc.Object](a_, objc.Sel("accessibilitySelectedRows")) +// [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) HasSetAccessibilitySelected() bool { + return a_.RespondsToSelector(objc.Sel("setAccessibilitySelected:")) +} + +// 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/1534981-accessibilityselected?language=objc +func (a_ AccessibilityObject) SetAccessibilitySelected(value bool) { + objc.Call[objc.Void](a_, objc.Sel("setAccessibilitySelected:"), value) +} + +func (a_ AccessibilityObject) HasIsAccessibilitySelected() bool { + return a_.RespondsToSelector(objc.Sel("isAccessibilitySelected")) +} + +// 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/1534981-accessibilityselected?language=objc +func (a_ AccessibilityObject) IsAccessibilitySelected() bool { + rv := objc.Call[bool](a_, objc.Sel("isAccessibilitySelected")) return rv } diff --git a/macos/appkit/accessibility_radio_button.gen.go b/macos/appkit/accessibility_radio_button_protocol.gen.go similarity index 63% rename from macos/appkit/accessibility_radio_button.gen.go rename to macos/appkit/accessibility_radio_button_protocol.gen.go index ce4ec785..4a9d7d19 100644 --- a/macos/appkit/accessibility_radio_button.gen.go +++ b/macos/appkit/accessibility_radio_button_protocol.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package appkit @@ -12,23 +12,26 @@ import ( // [Full Topic]: https://developer.apple.com/documentation/appkit/nsaccessibilityradiobutton?language=objc type PAccessibilityRadioButton interface { // optional - AccessibilityValue() foundation.INumber + AccessibilityValue() foundation.Number HasAccessibilityValue() bool } -// A concrete type wrapper for the [PAccessibilityRadioButton] protocol. -type AccessibilityRadioButtonWrapper struct { +// ensure impl type implements protocol interface +var _ PAccessibilityRadioButton = (*AccessibilityRadioButtonObject)(nil) + +// A concrete type for the [PAccessibilityRadioButton] protocol. +type AccessibilityRadioButtonObject struct { objc.Object } -func (a_ AccessibilityRadioButtonWrapper) HasAccessibilityValue() bool { +func (a_ AccessibilityRadioButtonObject) HasAccessibilityValue() bool { return a_.RespondsToSelector(objc.Sel("accessibilityValue")) } // Returns the radio button’s value. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/appkit/nsaccessibilityradiobutton/1526534-accessibilityvalue?language=objc -func (a_ AccessibilityRadioButtonWrapper) AccessibilityValue() foundation.Number { +func (a_ AccessibilityRadioButtonObject) AccessibilityValue() foundation.Number { rv := objc.Call[foundation.Number](a_, objc.Sel("accessibilityValue")) return rv } diff --git a/macos/appkit/accessibility_row.gen.go b/macos/appkit/accessibility_row_protocol.gen.go similarity index 70% rename from macos/appkit/accessibility_row.gen.go rename to macos/appkit/accessibility_row_protocol.gen.go index 7f23052f..360de5dc 100644 --- a/macos/appkit/accessibility_row.gen.go +++ b/macos/appkit/accessibility_row_protocol.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package appkit @@ -19,31 +19,34 @@ type PAccessibilityRow interface { HasAccessibilityDisclosureLevel() bool } -// A concrete type wrapper for the [PAccessibilityRow] protocol. -type AccessibilityRowWrapper struct { +// ensure impl type implements protocol interface +var _ PAccessibilityRow = (*AccessibilityRowObject)(nil) + +// A concrete type for the [PAccessibilityRow] protocol. +type AccessibilityRowObject struct { objc.Object } -func (a_ AccessibilityRowWrapper) HasAccessibilityIndex() bool { +func (a_ AccessibilityRowObject) HasAccessibilityIndex() bool { return a_.RespondsToSelector(objc.Sel("accessibilityIndex")) } // Returns the index for the row. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/appkit/nsaccessibilityrow/1526746-accessibilityindex?language=objc -func (a_ AccessibilityRowWrapper) AccessibilityIndex() int { +func (a_ AccessibilityRowObject) AccessibilityIndex() int { rv := objc.Call[int](a_, objc.Sel("accessibilityIndex")) return rv } -func (a_ AccessibilityRowWrapper) HasAccessibilityDisclosureLevel() bool { +func (a_ AccessibilityRowObject) HasAccessibilityDisclosureLevel() bool { return a_.RespondsToSelector(objc.Sel("accessibilityDisclosureLevel")) } // Returns the indention level for the row. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/appkit/nsaccessibilityrow/1531837-accessibilitydisclosurelevel?language=objc -func (a_ AccessibilityRowWrapper) AccessibilityDisclosureLevel() int { +func (a_ AccessibilityRowObject) AccessibilityDisclosureLevel() int { rv := objc.Call[int](a_, objc.Sel("accessibilityDisclosureLevel")) return rv } diff --git a/macos/appkit/accessibility_slider.gen.go b/macos/appkit/accessibility_slider_protocol.gen.go similarity index 70% rename from macos/appkit/accessibility_slider.gen.go rename to macos/appkit/accessibility_slider_protocol.gen.go index d90305b9..ac7e0fa0 100644 --- a/macos/appkit/accessibility_slider.gen.go +++ b/macos/appkit/accessibility_slider_protocol.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package appkit @@ -11,71 +11,74 @@ import ( // [Full Topic]: https://developer.apple.com/documentation/appkit/nsaccessibilityslider?language=objc type PAccessibilitySlider interface { // optional - AccessibilityPerformDecrement() bool - HasAccessibilityPerformDecrement() bool + AccessibilityPerformIncrement() bool + HasAccessibilityPerformIncrement() bool // optional - AccessibilityLabel() string - HasAccessibilityLabel() bool + AccessibilityValue() objc.Object + HasAccessibilityValue() bool // optional - AccessibilityPerformIncrement() bool - HasAccessibilityPerformIncrement() bool + AccessibilityLabel() string + HasAccessibilityLabel() bool // optional - AccessibilityValue() objc.IObject - HasAccessibilityValue() bool + AccessibilityPerformDecrement() bool + HasAccessibilityPerformDecrement() bool } -// A concrete type wrapper for the [PAccessibilitySlider] protocol. -type AccessibilitySliderWrapper struct { +// ensure impl type implements protocol interface +var _ PAccessibilitySlider = (*AccessibilitySliderObject)(nil) + +// A concrete type for the [PAccessibilitySlider] protocol. +type AccessibilitySliderObject struct { objc.Object } -func (a_ AccessibilitySliderWrapper) 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_ AccessibilitySliderWrapper) 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_ AccessibilitySliderWrapper) HasAccessibilityLabel() bool { - return a_.RespondsToSelector(objc.Sel("accessibilityLabel")) +func (a_ AccessibilitySliderObject) HasAccessibilityValue() bool { + return a_.RespondsToSelector(objc.Sel("accessibilityValue")) } -// Returns a short description of the slider. [Full Topic] +// Returns the slider’s value. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsaccessibilityslider/1530176-accessibilitylabel?language=objc -func (a_ AccessibilitySliderWrapper) AccessibilityLabel() string { - rv := objc.Call[string](a_, objc.Sel("accessibilityLabel")) +// [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 } -func (a_ AccessibilitySliderWrapper) HasAccessibilityPerformIncrement() bool { - return a_.RespondsToSelector(objc.Sel("accessibilityPerformIncrement")) +func (a_ AccessibilitySliderObject) HasAccessibilityLabel() bool { + return a_.RespondsToSelector(objc.Sel("accessibilityLabel")) } -// Increments the slider’s value. [Full Topic] +// Returns a short description of the slider. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsaccessibilityslider/1528478-accessibilityperformincrement?language=objc -func (a_ AccessibilitySliderWrapper) AccessibilityPerformIncrement() bool { - rv := objc.Call[bool](a_, objc.Sel("accessibilityPerformIncrement")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsaccessibilityslider/1530176-accessibilitylabel?language=objc +func (a_ AccessibilitySliderObject) AccessibilityLabel() string { + rv := objc.Call[string](a_, objc.Sel("accessibilityLabel")) return rv } -func (a_ AccessibilitySliderWrapper) 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_ AccessibilitySliderWrapper) 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 } diff --git a/macos/appkit/accessibility_static_text.gen.go b/macos/appkit/accessibility_static_text_protocol.gen.go similarity index 69% rename from macos/appkit/accessibility_static_text.gen.go rename to macos/appkit/accessibility_static_text_protocol.gen.go index c56ff9b5..d9be8214 100644 --- a/macos/appkit/accessibility_static_text.gen.go +++ b/macos/appkit/accessibility_static_text_protocol.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package appkit @@ -12,7 +12,7 @@ import ( // [Full Topic]: https://developer.apple.com/documentation/appkit/nsaccessibilitystatictext?language=objc type PAccessibilityStaticText interface { // optional - AccessibilityAttributedStringForRange(range_ foundation.Range) foundation.IAttributedString + AccessibilityAttributedStringForRange(range_ foundation.Range) foundation.AttributedString HasAccessibilityAttributedStringForRange() bool // optional @@ -24,43 +24,46 @@ type PAccessibilityStaticText interface { HasAccessibilityValue() bool } -// A concrete type wrapper for the [PAccessibilityStaticText] protocol. -type AccessibilityStaticTextWrapper struct { +// ensure impl type implements protocol interface +var _ PAccessibilityStaticText = (*AccessibilityStaticTextObject)(nil) + +// A concrete type for the [PAccessibilityStaticText] protocol. +type AccessibilityStaticTextObject struct { objc.Object } -func (a_ AccessibilityStaticTextWrapper) HasAccessibilityAttributedStringForRange() bool { +func (a_ AccessibilityStaticTextObject) HasAccessibilityAttributedStringForRange() bool { return a_.RespondsToSelector(objc.Sel("accessibilityAttributedStringForRange:")) } // Returns the attributed substring for the specified range of characters. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/appkit/nsaccessibilitystatictext/1535001-accessibilityattributedstringfor?language=objc -func (a_ AccessibilityStaticTextWrapper) AccessibilityAttributedStringForRange(range_ foundation.Range) foundation.AttributedString { +func (a_ AccessibilityStaticTextObject) AccessibilityAttributedStringForRange(range_ foundation.Range) foundation.AttributedString { rv := objc.Call[foundation.AttributedString](a_, objc.Sel("accessibilityAttributedStringForRange:"), range_) return rv } -func (a_ AccessibilityStaticTextWrapper) HasAccessibilityVisibleCharacterRange() bool { +func (a_ AccessibilityStaticTextObject) HasAccessibilityVisibleCharacterRange() bool { return a_.RespondsToSelector(objc.Sel("accessibilityVisibleCharacterRange")) } // Returns the range of visible characters in the document. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/appkit/nsaccessibilitystatictext/1532230-accessibilityvisiblecharacterran?language=objc -func (a_ AccessibilityStaticTextWrapper) AccessibilityVisibleCharacterRange() foundation.Range { +func (a_ AccessibilityStaticTextObject) AccessibilityVisibleCharacterRange() foundation.Range { rv := objc.Call[foundation.Range](a_, objc.Sel("accessibilityVisibleCharacterRange")) return rv } -func (a_ AccessibilityStaticTextWrapper) HasAccessibilityValue() bool { +func (a_ AccessibilityStaticTextObject) HasAccessibilityValue() bool { return a_.RespondsToSelector(objc.Sel("accessibilityValue")) } // Returns the text that the accessibility element displays. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/appkit/nsaccessibilitystatictext/1528730-accessibilityvalue?language=objc -func (a_ AccessibilityStaticTextWrapper) AccessibilityValue() string { +func (a_ AccessibilityStaticTextObject) AccessibilityValue() string { rv := objc.Call[string](a_, objc.Sel("accessibilityValue")) return rv } diff --git a/macos/appkit/accessibility_stepper.gen.go b/macos/appkit/accessibility_stepper_protocol.gen.go similarity index 69% rename from macos/appkit/accessibility_stepper.gen.go rename to macos/appkit/accessibility_stepper_protocol.gen.go index 676c8850..7e3c833f 100644 --- a/macos/appkit/accessibility_stepper.gen.go +++ b/macos/appkit/accessibility_stepper_protocol.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package appkit @@ -11,71 +11,74 @@ import ( // [Full Topic]: https://developer.apple.com/documentation/appkit/nsaccessibilitystepper?language=objc type PAccessibilityStepper interface { // optional - AccessibilityPerformDecrement() bool - HasAccessibilityPerformDecrement() bool + AccessibilityPerformIncrement() bool + HasAccessibilityPerformIncrement() bool // optional AccessibilityLabel() string HasAccessibilityLabel() bool // optional - AccessibilityPerformIncrement() bool - HasAccessibilityPerformIncrement() bool + AccessibilityValue() objc.Object + HasAccessibilityValue() bool // optional - AccessibilityValue() objc.IObject - HasAccessibilityValue() bool + AccessibilityPerformDecrement() bool + HasAccessibilityPerformDecrement() bool } -// A concrete type wrapper for the [PAccessibilityStepper] protocol. -type AccessibilityStepperWrapper struct { +// ensure impl type implements protocol interface +var _ PAccessibilityStepper = (*AccessibilityStepperObject)(nil) + +// A concrete type for the [PAccessibilityStepper] protocol. +type AccessibilityStepperObject struct { objc.Object } -func (a_ AccessibilityStepperWrapper) HasAccessibilityPerformDecrement() bool { - return a_.RespondsToSelector(objc.Sel("accessibilityPerformDecrement")) +func (a_ AccessibilityStepperObject) HasAccessibilityPerformIncrement() bool { + return a_.RespondsToSelector(objc.Sel("accessibilityPerformIncrement")) } -// Decrements the stepper’s value. [Full Topic] +// Increments the stepper’s value. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsaccessibilitystepper/1525327-accessibilityperformdecrement?language=objc -func (a_ AccessibilityStepperWrapper) AccessibilityPerformDecrement() bool { - rv := objc.Call[bool](a_, objc.Sel("accessibilityPerformDecrement")) +// [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_ AccessibilityStepperWrapper) HasAccessibilityLabel() bool { +func (a_ AccessibilityStepperObject) HasAccessibilityLabel() bool { return a_.RespondsToSelector(objc.Sel("accessibilityLabel")) } // Returns a short description of the stepper. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/appkit/nsaccessibilitystepper/1528702-accessibilitylabel?language=objc -func (a_ AccessibilityStepperWrapper) AccessibilityLabel() string { +func (a_ AccessibilityStepperObject) AccessibilityLabel() string { rv := objc.Call[string](a_, objc.Sel("accessibilityLabel")) return rv } -func (a_ AccessibilityStepperWrapper) HasAccessibilityPerformIncrement() bool { - return a_.RespondsToSelector(objc.Sel("accessibilityPerformIncrement")) +func (a_ AccessibilityStepperObject) HasAccessibilityValue() bool { + return a_.RespondsToSelector(objc.Sel("accessibilityValue")) } -// Increments the stepper’s value. [Full Topic] +// Returns the stepper’s value. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsaccessibilitystepper/1533764-accessibilityperformincrement?language=objc -func (a_ AccessibilityStepperWrapper) AccessibilityPerformIncrement() bool { - rv := objc.Call[bool](a_, objc.Sel("accessibilityPerformIncrement")) +// [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 } -func (a_ AccessibilityStepperWrapper) HasAccessibilityValue() bool { - return a_.RespondsToSelector(objc.Sel("accessibilityValue")) +func (a_ AccessibilityStepperObject) HasAccessibilityPerformDecrement() bool { + return a_.RespondsToSelector(objc.Sel("accessibilityPerformDecrement")) } -// Returns the stepper’s value. [Full Topic] +// Decrements the stepper’s value. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsaccessibilitystepper/1528167-accessibilityvalue?language=objc -func (a_ AccessibilityStepperWrapper) AccessibilityValue() objc.Object { - rv := objc.Call[objc.Object](a_, objc.Sel("accessibilityValue")) +// [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 } diff --git a/macos/appkit/accessibility_switch.gen.go b/macos/appkit/accessibility_switch_protocol.gen.go similarity index 70% rename from macos/appkit/accessibility_switch.gen.go rename to macos/appkit/accessibility_switch_protocol.gen.go index 05564a86..da8aa3a9 100644 --- a/macos/appkit/accessibility_switch.gen.go +++ b/macos/appkit/accessibility_switch_protocol.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package appkit @@ -11,55 +11,58 @@ import ( // [Full Topic]: https://developer.apple.com/documentation/appkit/nsaccessibilityswitch?language=objc type PAccessibilitySwitch interface { // optional - AccessibilityPerformDecrement() bool - HasAccessibilityPerformDecrement() bool + AccessibilityValue() string + HasAccessibilityValue() bool // optional AccessibilityPerformIncrement() bool HasAccessibilityPerformIncrement() bool // optional - AccessibilityValue() string - HasAccessibilityValue() bool + AccessibilityPerformDecrement() bool + HasAccessibilityPerformDecrement() bool } -// A concrete type wrapper for the [PAccessibilitySwitch] protocol. -type AccessibilitySwitchWrapper struct { +// ensure impl type implements protocol interface +var _ PAccessibilitySwitch = (*AccessibilitySwitchObject)(nil) + +// A concrete type for the [PAccessibilitySwitch] protocol. +type AccessibilitySwitchObject struct { objc.Object } -func (a_ AccessibilitySwitchWrapper) 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_ AccessibilitySwitchWrapper) 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 } -func (a_ AccessibilitySwitchWrapper) HasAccessibilityPerformIncrement() bool { +func (a_ AccessibilitySwitchObject) HasAccessibilityPerformIncrement() bool { return a_.RespondsToSelector(objc.Sel("accessibilityPerformIncrement")) } // Increments the switch’s value. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/appkit/nsaccessibilityswitch/1533985-accessibilityperformincrement?language=objc -func (a_ AccessibilitySwitchWrapper) AccessibilityPerformIncrement() bool { +func (a_ AccessibilitySwitchObject) AccessibilityPerformIncrement() bool { rv := objc.Call[bool](a_, objc.Sel("accessibilityPerformIncrement")) return rv } -func (a_ AccessibilitySwitchWrapper) 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_ AccessibilitySwitchWrapper) 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 } diff --git a/macos/appkit/accessibility_table.gen.go b/macos/appkit/accessibility_table_protocol.gen.go similarity index 65% rename from macos/appkit/accessibility_table.gen.go rename to macos/appkit/accessibility_table_protocol.gen.go index 922bc731..72ffb2b9 100644 --- a/macos/appkit/accessibility_table.gen.go +++ b/macos/appkit/accessibility_table_protocol.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package appkit @@ -11,198 +11,201 @@ import ( // [Full Topic]: https://developer.apple.com/documentation/appkit/nsaccessibilitytable?language=objc type PAccessibilityTable interface { // optional - AccessibilityColumnHeaderUIElements() []objc.IObject - HasAccessibilityColumnHeaderUIElements() bool + AccessibilitySelectedCells() []objc.Object + HasAccessibilitySelectedCells() bool // optional - SetAccessibilitySelectedRows(selectedRows []AccessibilityRowWrapper) - HasSetAccessibilitySelectedRows() bool + AccessibilityVisibleColumns() []objc.Object + HasAccessibilityVisibleColumns() bool // optional - AccessibilityRowHeaderUIElements() []objc.IObject - HasAccessibilityRowHeaderUIElements() bool + AccessibilityRows() []AccessibilityRowObject + HasAccessibilityRows() bool // optional - AccessibilityVisibleRows() []PAccessibilityRow - HasAccessibilityVisibleRows() bool + AccessibilitySelectedRows() []AccessibilityRowObject + HasAccessibilitySelectedRows() bool // optional - AccessibilitySelectedCells() []objc.IObject - HasAccessibilitySelectedCells() bool + AccessibilityVisibleRows() []AccessibilityRowObject + HasAccessibilityVisibleRows() bool // optional - AccessibilityVisibleColumns() []objc.IObject - HasAccessibilityVisibleColumns() bool + SetAccessibilitySelectedRows(selectedRows []AccessibilityRowObject) + HasSetAccessibilitySelectedRows() bool // optional - AccessibilityLabel() string - HasAccessibilityLabel() bool + AccessibilityRowHeaderUIElements() []objc.Object + HasAccessibilityRowHeaderUIElements() bool // optional - AccessibilityColumns() []objc.IObject + AccessibilityColumns() []objc.Object HasAccessibilityColumns() bool // optional - AccessibilityRows() []PAccessibilityRow - HasAccessibilityRows() bool + AccessibilityVisibleCells() []objc.Object + HasAccessibilityVisibleCells() bool // optional - AccessibilityVisibleCells() []objc.IObject - HasAccessibilityVisibleCells() bool + AccessibilityColumnHeaderUIElements() []objc.Object + HasAccessibilityColumnHeaderUIElements() bool // optional - AccessibilitySelectedColumns() []objc.IObject - HasAccessibilitySelectedColumns() bool + AccessibilityLabel() string + HasAccessibilityLabel() bool // optional - AccessibilitySelectedRows() []PAccessibilityRow - HasAccessibilitySelectedRows() bool + AccessibilitySelectedColumns() []objc.Object + HasAccessibilitySelectedColumns() bool } -// A concrete type wrapper for the [PAccessibilityTable] protocol. -type AccessibilityTableWrapper struct { +// ensure impl type implements protocol interface +var _ PAccessibilityTable = (*AccessibilityTableObject)(nil) + +// A concrete type for the [PAccessibilityTable] protocol. +type AccessibilityTableObject struct { objc.Object } -func (a_ AccessibilityTableWrapper) HasAccessibilityColumnHeaderUIElements() bool { - return a_.RespondsToSelector(objc.Sel("accessibilityColumnHeaderUIElements")) +func (a_ AccessibilityTableObject) HasAccessibilitySelectedCells() bool { + return a_.RespondsToSelector(objc.Sel("accessibilitySelectedCells")) } -// Returns the column header accessibility elements for the table. [Full Topic] +// The currently selected cells for the table. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsaccessibilitytable/1526621-accessibilitycolumnheaderuieleme?language=objc -func (a_ AccessibilityTableWrapper) AccessibilityColumnHeaderUIElements() []objc.Object { - rv := objc.Call[[]objc.Object](a_, objc.Sel("accessibilityColumnHeaderUIElements")) +// [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_ AccessibilityTableWrapper) HasSetAccessibilitySelectedRows() bool { - return a_.RespondsToSelector(objc.Sel("setAccessibilitySelectedRows:")) +func (a_ AccessibilityTableObject) HasAccessibilityVisibleColumns() bool { + return a_.RespondsToSelector(objc.Sel("accessibilityVisibleColumns")) } -// Sets the table’s currently selected rows. [Full Topic] +// Returns the visible columns for the table. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsaccessibilitytable/1534612-setaccessibilityselectedrows?language=objc -func (a_ AccessibilityTableWrapper) SetAccessibilitySelectedRows(selectedRows []PAccessibilityRow) { - objc.Call[objc.Void](a_, objc.Sel("setAccessibilitySelectedRows:"), selectedRows) +// [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_ AccessibilityTableWrapper) HasAccessibilityRowHeaderUIElements() bool { - return a_.RespondsToSelector(objc.Sel("accessibilityRowHeaderUIElements")) +func (a_ AccessibilityTableObject) HasAccessibilityRows() bool { + return a_.RespondsToSelector(objc.Sel("accessibilityRows")) } -// Returns the row 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/1524262-accessibilityrowheaderuielements?language=objc -func (a_ AccessibilityTableWrapper) AccessibilityRowHeaderUIElements() []objc.Object { - rv := objc.Call[[]objc.Object](a_, objc.Sel("accessibilityRowHeaderUIElements")) +// [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_ AccessibilityTableWrapper) HasAccessibilityVisibleRows() bool { - return a_.RespondsToSelector(objc.Sel("accessibilityVisibleRows")) +func (a_ AccessibilityTableObject) HasAccessibilitySelectedRows() bool { + return a_.RespondsToSelector(objc.Sel("accessibilitySelectedRows")) } -// Returns the visible rows for the table. [Full Topic] +// Returns the currently selected rows for the table. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsaccessibilitytable/1535128-accessibilityvisiblerows?language=objc -func (a_ AccessibilityTableWrapper) AccessibilityVisibleRows() []AccessibilityRowWrapper { - rv := objc.Call[[]AccessibilityRowWrapper](a_, objc.Sel("accessibilityVisibleRows")) +// [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 } -func (a_ AccessibilityTableWrapper) HasAccessibilitySelectedCells() bool { - return a_.RespondsToSelector(objc.Sel("accessibilitySelectedCells")) +func (a_ AccessibilityTableObject) HasAccessibilityVisibleRows() bool { + return a_.RespondsToSelector(objc.Sel("accessibilityVisibleRows")) } -// The currently selected cells for the table. [Full Topic] +// Returns the visible rows for the table. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsaccessibilitytable/1525577-accessibilityselectedcells?language=objc -func (a_ AccessibilityTableWrapper) AccessibilitySelectedCells() []objc.Object { - rv := objc.Call[[]objc.Object](a_, objc.Sel("accessibilitySelectedCells")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsaccessibilitytable/1535128-accessibilityvisiblerows?language=objc +func (a_ AccessibilityTableObject) AccessibilityVisibleRows() []AccessibilityRowObject { + rv := objc.Call[[]AccessibilityRowObject](a_, objc.Sel("accessibilityVisibleRows")) return rv } -func (a_ AccessibilityTableWrapper) HasAccessibilityVisibleColumns() bool { - return a_.RespondsToSelector(objc.Sel("accessibilityVisibleColumns")) +func (a_ AccessibilityTableObject) HasSetAccessibilitySelectedRows() bool { + return a_.RespondsToSelector(objc.Sel("setAccessibilitySelectedRows:")) } -// Returns the visible columns for the table. [Full Topic] +// Sets the table’s currently selected rows. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsaccessibilitytable/1530264-accessibilityvisiblecolumns?language=objc -func (a_ AccessibilityTableWrapper) AccessibilityVisibleColumns() []objc.Object { - rv := objc.Call[[]objc.Object](a_, objc.Sel("accessibilityVisibleColumns")) - 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_ AccessibilityTableWrapper) HasAccessibilityLabel() bool { - return a_.RespondsToSelector(objc.Sel("accessibilityLabel")) +func (a_ AccessibilityTableObject) HasAccessibilityRowHeaderUIElements() bool { + return a_.RespondsToSelector(objc.Sel("accessibilityRowHeaderUIElements")) } -// Returns a short description of the table. [Full Topic] +// Returns the row header accessibility elements for the table. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsaccessibilitytable/1526563-accessibilitylabel?language=objc -func (a_ AccessibilityTableWrapper) AccessibilityLabel() string { - rv := objc.Call[string](a_, objc.Sel("accessibilityLabel")) +// [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 } -func (a_ AccessibilityTableWrapper) HasAccessibilityColumns() bool { +func (a_ AccessibilityTableObject) HasAccessibilityColumns() bool { return a_.RespondsToSelector(objc.Sel("accessibilityColumns")) } // Returns the column accessibility elements for the table. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/appkit/nsaccessibilitytable/1524744-accessibilitycolumns?language=objc -func (a_ AccessibilityTableWrapper) AccessibilityColumns() []objc.Object { +func (a_ AccessibilityTableObject) AccessibilityColumns() []objc.Object { rv := objc.Call[[]objc.Object](a_, objc.Sel("accessibilityColumns")) return rv } -func (a_ AccessibilityTableWrapper) HasAccessibilityRows() bool { - return a_.RespondsToSelector(objc.Sel("accessibilityRows")) +func (a_ AccessibilityTableObject) HasAccessibilityVisibleCells() bool { + return a_.RespondsToSelector(objc.Sel("accessibilityVisibleCells")) } -// Returns the row accessibility elements for the table. [Full Topic] +// Returns the visible cells for the table. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsaccessibilitytable/1526672-accessibilityrows?language=objc -func (a_ AccessibilityTableWrapper) AccessibilityRows() []AccessibilityRowWrapper { - rv := objc.Call[[]AccessibilityRowWrapper](a_, objc.Sel("accessibilityRows")) +// [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 } -func (a_ AccessibilityTableWrapper) HasAccessibilityVisibleCells() bool { - return a_.RespondsToSelector(objc.Sel("accessibilityVisibleCells")) +func (a_ AccessibilityTableObject) HasAccessibilityColumnHeaderUIElements() bool { + return a_.RespondsToSelector(objc.Sel("accessibilityColumnHeaderUIElements")) } -// Returns the visible cells 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/1526711-accessibilityvisiblecells?language=objc -func (a_ AccessibilityTableWrapper) AccessibilityVisibleCells() []objc.Object { - rv := objc.Call[[]objc.Object](a_, objc.Sel("accessibilityVisibleCells")) +// [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_ AccessibilityTableWrapper) HasAccessibilitySelectedColumns() bool { - return a_.RespondsToSelector(objc.Sel("accessibilitySelectedColumns")) +func (a_ AccessibilityTableObject) HasAccessibilityLabel() bool { + return a_.RespondsToSelector(objc.Sel("accessibilityLabel")) } -// Returns the currently selected columns for the table. [Full Topic] +// Returns a short description of the table. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsaccessibilitytable/1528430-accessibilityselectedcolumns?language=objc -func (a_ AccessibilityTableWrapper) AccessibilitySelectedColumns() []objc.Object { - rv := objc.Call[[]objc.Object](a_, objc.Sel("accessibilitySelectedColumns")) +// [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_ AccessibilityTableWrapper) HasAccessibilitySelectedRows() bool { - return a_.RespondsToSelector(objc.Sel("accessibilitySelectedRows")) +func (a_ AccessibilityTableObject) HasAccessibilitySelectedColumns() bool { + return a_.RespondsToSelector(objc.Sel("accessibilitySelectedColumns")) } -// Returns the currently selected rows for the table. [Full Topic] +// Returns the currently selected columns for the table. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsaccessibilitytable/1529241-accessibilityselectedrows?language=objc -func (a_ AccessibilityTableWrapper) AccessibilitySelectedRows() []AccessibilityRowWrapper { - rv := objc.Call[[]AccessibilityRowWrapper](a_, objc.Sel("accessibilitySelectedRows")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsaccessibilitytable/1528430-accessibilityselectedcolumns?language=objc +func (a_ AccessibilityTableObject) AccessibilitySelectedColumns() []objc.Object { + rv := objc.Call[[]objc.Object](a_, objc.Sel("accessibilitySelectedColumns")) return rv } diff --git a/macos/appkit/action_cell.gen.go b/macos/appkit/action_cell.gen.go index 54455809..5ca4d172 100644 --- a/macos/appkit/action_cell.gen.go +++ b/macos/appkit/action_cell.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package appkit @@ -38,10 +38,6 @@ func (ac _ActionCellClass) Alloc() ActionCell { return rv } -func ActionCell_Alloc() ActionCell { - return ActionCellClass.Alloc() -} - func (ac _ActionCellClass) New() ActionCell { rv := objc.Call[ActionCell](ac, objc.Sel("new")) rv.Autorelease() diff --git a/macos/appkit/alert.gen.go b/macos/appkit/alert.gen.go index c0d77111..177cd39c 100644 --- a/macos/appkit/alert.gen.go +++ b/macos/appkit/alert.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package appkit @@ -21,30 +21,30 @@ type IAlert interface { objc.IObject RunModal() ModalResponse Layout() - AddButtonWithTitle(title string) Button BeginSheetModalForWindowCompletionHandler(sheetWindow IWindow, handler func(returnCode ModalResponse)) - SuppressionButton() Button + AddButtonWithTitle(title string) 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) - Delegate() AlertDelegateWrapper - 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) + Delegate() AlertDelegateObject + SetDelegate(value PAlertDelegate) + SetDelegateObject(valueObject objc.IObject) + ShowsHelp() bool + SetShowsHelp(value bool) Window() Window - Buttons() []Button - HelpAnchor() HelpAnchorName - SetHelpAnchor(value HelpAnchorName) } // A modal dialog or sheet attached to a document window. [Full Topic] @@ -65,10 +65,6 @@ func (ac _AlertClass) Alloc() Alert { return rv } -func Alert_Alloc() Alert { - return AlertClass.Alloc() -} - func (ac _AlertClass) New() Alert { rv := objc.Call[Alert](ac, objc.Sel("new")) rv.Autorelease() @@ -99,6 +95,13 @@ 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:"), objc.Ptr(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 @@ -122,21 +125,6 @@ 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:"), objc.Ptr(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 @@ -152,58 +140,80 @@ func (a_ Alert) SetMessageText(value string) { objc.Call[objc.Void](a_, objc.Sel("setMessageText:"), value) } -// The alert’s informative text. [Full Topic] +// The alert’s accessory view. [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/1530575-accessoryview?language=objc +func (a_ Alert) AccessoryView() View { + rv := objc.Call[View](a_, objc.Sel("accessoryView")) return rv } -// The alert’s informative text. [Full Topic] +// The alert’s accessory view. [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/1530575-accessoryview?language=objc +func (a_ Alert) SetAccessoryView(value IView) { + objc.Call[objc.Void](a_, objc.Sel("setAccessoryView:"), objc.Ptr(value)) } -// The alert’s delegate. [Full Topic] +// The alert’s suppression checkbox. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsalert/1534327-delegate?language=objc -func (a_ Alert) Delegate() AlertDelegateWrapper { - rv := objc.Call[AlertDelegateWrapper](a_, objc.Sel("delegate")) +// [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 delegate. [Full Topic] +// The alert’s HTML help anchor. [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) +// [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 delegate. [Full Topic] +// The alert’s HTML help anchor. [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:"), objc.Ptr(valueObject)) +// [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) } -// 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 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 informative text. [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")) + return rv +} + +// The alert’s informative text. [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) } // The custom icon displayed in the alert. [Full Topic] @@ -236,34 +246,43 @@ func (a_ Alert) SetShowsSuppressionButton(value bool) { objc.Call[objc.Void](a_, objc.Sel("setShowsSuppressionButton:"), value) } -// The alert’s accessory view. [Full Topic] +// The alert’s delegate. [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")) +// [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 } -// The alert’s accessory view. [Full Topic] +// The alert’s delegate. [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:"), objc.Ptr(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) } -// 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) SetDelegateObject(valueObject objc.IObject) { + objc.Call[objc.Void](a_, objc.Sel("setDelegate:"), objc.Ptr(valueObject)) +} + +// Specifies whether the alert has a help button. [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")) return rv } -// Indicates the alert’s severity level. [Full Topic] +// Specifies whether the alert has a help button. [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/1535856-showshelp?language=objc +func (a_ Alert) SetShowsHelp(value bool) { + objc.Call[objc.Void](a_, objc.Sel("setShowsHelp:"), value) } // The app-modal panel or document-modal sheet that corresponds to the alert. [Full Topic] @@ -273,26 +292,3 @@ 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/alert_delegate.gen.go b/macos/appkit/alert_delegate.gen.go index e4cf7156..dd5210d5 100644 --- a/macos/appkit/alert_delegate.gen.go +++ b/macos/appkit/alert_delegate.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package appkit @@ -38,19 +38,22 @@ func (di *AlertDelegate) AlertShowHelp(alert Alert) bool { return di._AlertShowHelp(alert) } -// A concrete type wrapper for the [PAlertDelegate] protocol. -type AlertDelegateWrapper struct { +// ensure impl type implements protocol interface +var _ PAlertDelegate = (*AlertDelegateObject)(nil) + +// A concrete type for the [PAlertDelegate] protocol. +type AlertDelegateObject struct { objc.Object } -func (a_ AlertDelegateWrapper) HasAlertShowHelp() bool { +func (a_ AlertDelegateObject) HasAlertShowHelp() bool { return a_.RespondsToSelector(objc.Sel("alertShowHelp:")) } // Sent to the delegate when the user clicks the alert’s help button. The delegate causes help to be displayed for an alert, directly or indirectly. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/appkit/nsalertdelegate/1526980-alertshowhelp?language=objc -func (a_ AlertDelegateWrapper) AlertShowHelp(alert IAlert) bool { +func (a_ AlertDelegateObject) AlertShowHelp(alert Alert) bool { rv := objc.Call[bool](a_, objc.Sel("alertShowHelp:"), objc.Ptr(alert)) return rv } diff --git a/macos/appkit/aliastypes.gen.go b/macos/appkit/aliastypes.gen.go index 8ef679fe..11d310e4 100644 --- a/macos/appkit/aliastypes.gen.go +++ b/macos/appkit/aliastypes.gen.go @@ -1,9 +1,8 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package appkit import ( - "github.com/progrium/macdriver/macos/coregraphics" "github.com/progrium/macdriver/macos/foundation" "github.com/progrium/macdriver/objc" ) @@ -26,7 +25,7 @@ type StoryboardControllerCreator = func(coder foundation.Coder) objc.Object // A closure that creates and returns each of the layout's sections. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/appkit/nscollectionviewcompositionallayoutsectionprovider?language=objc -type CollectionViewCompositionalLayoutSectionProvider = func(section int, arg1 CollectionLayoutEnvironmentWrapper) CollectionLayoutSection +type CollectionViewCompositionalLayoutSectionProvider = func(section int, arg1 CollectionLayoutEnvironmentObject) CollectionLayoutSection // A closure that configures and returns a cell for a table view from its diffable data source. [Full Topic] // @@ -46,9 +45,9 @@ 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 []CollectionLayoutVisibleItemWrapper, contentOffset coregraphics.Point, layoutEnvironment CollectionLayoutEnvironmentWrapper) +type CollectionLayoutSectionVisibleItemsInvalidationHandler = func(visibleItems []CollectionLayoutVisibleItemObject, contentOffset foundation.Point, layoutEnvironment CollectionLayoutEnvironmentObject) // A closure that creates and returns each of the custom group’s items. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/uikit/nscollectionlayoutgroupcustomitemprovider?language=objc -type CollectionLayoutGroupCustomItemProvider = func(layoutEnvironment CollectionLayoutEnvironmentWrapper) []CollectionLayoutGroupCustomItem +type CollectionLayoutGroupCustomItemProvider = func(layoutEnvironment CollectionLayoutEnvironmentObject) []CollectionLayoutGroupCustomItem diff --git a/macos/appkit/alignment_feedback_filter.gen.go b/macos/appkit/alignment_feedback_filter.gen.go index 1c6c65ac..a0fa8980 100644 --- a/macos/appkit/alignment_feedback_filter.gen.go +++ b/macos/appkit/alignment_feedback_filter.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package appkit @@ -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) + 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) - PerformFeedbackPerformanceTime(alignmentFeedbackTokens []PAlignmentFeedbackToken, performanceTime HapticFeedbackPerformanceTime) - AlignmentFeedbackTokenForVerticalMovementInViewPreviousYAlignedYDefaultY(view IView, previousY float64, alignedY float64, defaultY float64) AlignmentFeedbackTokenWrapper - AlignmentFeedbackTokenForMovementInViewPreviousPointAlignedPointDefaultPoint(view IView, previousPoint foundation.Point, alignedPoint foundation.Point, defaultPoint foundation.Point) AlignmentFeedbackTokenWrapper - AlignmentFeedbackTokenForHorizontalMovementInViewPreviousXAlignedXDefaultX(view IView, previousX float64, alignedX float64, defaultX float64) AlignmentFeedbackTokenWrapper } // An object that can filter the movement of an object and provides haptic feedback when alignment occurs. [Full Topic] @@ -45,10 +45,6 @@ func (ac _AlignmentFeedbackFilterClass) Alloc() AlignmentFeedbackFilter { return rv } -func AlignmentFeedbackFilter_Alloc() AlignmentFeedbackFilter { - return AlignmentFeedbackFilterClass.Alloc() -} - func (ac _AlignmentFeedbackFilterClass) New() AlignmentFeedbackFilter { rv := objc.Call[AlignmentFeedbackFilter](ac, objc.Sel("new")) rv.Autorelease() @@ -64,18 +60,12 @@ func (a_ AlignmentFeedbackFilter) Init() AlignmentFeedbackFilter { return rv } -// Informs the feedback filter about a new event. [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:"), objc.Ptr(event)) -} - -// Informs the feedback filter about a new pan (drag) gesture recognizer 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/1527844-updatewithpanrecognizer?language=objc -func (a_ AlignmentFeedbackFilter) UpdateWithPanRecognizer(panRecognizer IPanGestureRecognizer) { - objc.Call[objc.Void](a_, objc.Sel("updateWithPanRecognizer:"), objc.Ptr(panRecognizer)) +// [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:"), objc.Ptr(view), previousY, alignedY, defaultY) + return rv } // Performs the haptic feedback described by one or more alignment feedback tokens. [Full Topic] @@ -85,30 +75,36 @@ func (a_ AlignmentFeedbackFilter) PerformFeedbackPerformanceTime(alignmentFeedba objc.Call[objc.Void](a_, objc.Sel("performFeedback:performanceTime:"), alignmentFeedbackTokens, performanceTime) } -// 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) AlignmentFeedbackTokenWrapper { - rv := objc.Call[AlignmentFeedbackTokenWrapper](a_, objc.Sel("alignmentFeedbackTokenForVerticalMovementInView:previousY:alignedY:defaultY:"), objc.Ptr(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:"), objc.Ptr(event)) } // Requests a feedback token for the alignment of an object requiring horizontal and vertical movement. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/appkit/nsalignmentfeedbackfilter/1535346-alignmentfeedbacktokenformovemen?language=objc -func (a_ AlignmentFeedbackFilter) AlignmentFeedbackTokenForMovementInViewPreviousPointAlignedPointDefaultPoint(view IView, previousPoint foundation.Point, alignedPoint foundation.Point, defaultPoint foundation.Point) AlignmentFeedbackTokenWrapper { - rv := objc.Call[AlignmentFeedbackTokenWrapper](a_, objc.Sel("alignmentFeedbackTokenForMovementInView:previousPoint:alignedPoint:defaultPoint:"), objc.Ptr(view), previousPoint, alignedPoint, defaultPoint) +func (a_ AlignmentFeedbackFilter) AlignmentFeedbackTokenForMovementInViewPreviousPointAlignedPointDefaultPoint(view IView, previousPoint foundation.Point, alignedPoint foundation.Point, defaultPoint foundation.Point) AlignmentFeedbackTokenObject { + rv := objc.Call[AlignmentFeedbackTokenObject](a_, objc.Sel("alignmentFeedbackTokenForMovementInView:previousPoint:alignedPoint:defaultPoint:"), objc.Ptr(view), previousPoint, alignedPoint, defaultPoint) return rv } // Requests a feedback token for the alignment of an object requiring horizontal movement only. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/appkit/nsalignmentfeedbackfilter/1534596-alignmentfeedbacktokenforhorizon?language=objc -func (a_ AlignmentFeedbackFilter) AlignmentFeedbackTokenForHorizontalMovementInViewPreviousXAlignedXDefaultX(view IView, previousX float64, alignedX float64, defaultX float64) AlignmentFeedbackTokenWrapper { - rv := objc.Call[AlignmentFeedbackTokenWrapper](a_, objc.Sel("alignmentFeedbackTokenForHorizontalMovementInView:previousX:alignedX:defaultX:"), objc.Ptr(view), previousX, alignedX, defaultX) +func (a_ AlignmentFeedbackFilter) AlignmentFeedbackTokenForHorizontalMovementInViewPreviousXAlignedXDefaultX(view IView, previousX float64, alignedX float64, defaultX float64) AlignmentFeedbackTokenObject { + rv := objc.Call[AlignmentFeedbackTokenObject](a_, objc.Sel("alignmentFeedbackTokenForHorizontalMovementInView:previousX:alignedX:defaultX:"), objc.Ptr(view), previousX, alignedX, defaultX) 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:"), objc.Ptr(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/alignment_feedback_token.gen.go b/macos/appkit/alignment_feedback_token.gen.go deleted file mode 100644 index ae20e294..00000000 --- a/macos/appkit/alignment_feedback_token.gen.go +++ /dev/null @@ -1,18 +0,0 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY - -package appkit - -import ( - "github.com/progrium/macdriver/objc" -) - -// [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsalignmentfeedbacktoken?language=objc -type PAlignmentFeedbackToken interface { -} - -// A concrete type wrapper for the [PAlignmentFeedbackToken] protocol. -type AlignmentFeedbackTokenWrapper struct { - objc.Object -} diff --git a/macos/appkit/alignment_feedback_token_protocol.gen.go b/macos/appkit/alignment_feedback_token_protocol.gen.go new file mode 100644 index 00000000..bbf7ba3c --- /dev/null +++ b/macos/appkit/alignment_feedback_token_protocol.gen.go @@ -0,0 +1,21 @@ +// Code generated by DarwinKit. DO NOT EDIT. + +package appkit + +import ( + "github.com/progrium/macdriver/objc" +) + +// [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsalignmentfeedbacktoken?language=objc +type PAlignmentFeedbackToken interface { +} + +// ensure impl type implements protocol interface +var _ PAlignmentFeedbackToken = (*AlignmentFeedbackTokenObject)(nil) + +// A concrete type for the [PAlignmentFeedbackToken] protocol. +type AlignmentFeedbackTokenObject struct { + objc.Object +} diff --git a/macos/appkit/animatable_property_container.gen.go b/macos/appkit/animatable_property_container_protocol.gen.go similarity index 65% rename from macos/appkit/animatable_property_container.gen.go rename to macos/appkit/animatable_property_container_protocol.gen.go index f93688a6..23121280 100644 --- a/macos/appkit/animatable_property_container.gen.go +++ b/macos/appkit/animatable_property_container_protocol.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package appkit @@ -11,70 +11,73 @@ import ( // [Full Topic]: https://developer.apple.com/documentation/appkit/nsanimatablepropertycontainer?language=objc type PAnimatablePropertyContainer interface { // optional - Animator() objc.IObject - HasAnimator() bool + AnimationForKey(key AnimatablePropertyKey) objc.Object + HasAnimationForKey() bool // optional - AnimationForKey(key AnimatablePropertyKey) objc.IObject - HasAnimationForKey() bool + Animator() objc.Object + HasAnimator() bool // optional SetAnimations(value map[AnimatablePropertyKey]objc.Object) HasSetAnimations() bool // optional - Animations() map[AnimatablePropertyKey]objc.IObject + Animations() map[AnimatablePropertyKey]objc.Object HasAnimations() bool } -// A concrete type wrapper for the [PAnimatablePropertyContainer] protocol. -type AnimatablePropertyContainerWrapper struct { +// ensure impl type implements protocol interface +var _ PAnimatablePropertyContainer = (*AnimatablePropertyContainerObject)(nil) + +// A concrete type for the [PAnimatablePropertyContainer] protocol. +type AnimatablePropertyContainerObject struct { objc.Object } -func (a_ AnimatablePropertyContainerWrapper) HasAnimator() bool { - return a_.RespondsToSelector(objc.Sel("animator")) +func (a_ AnimatablePropertyContainerObject) HasAnimationForKey() bool { + return a_.RespondsToSelector(objc.Sel("animationForKey:")) } -// Returns a proxy object for the receiver that can be used to initiate implied animation for property changes. [Full Topic] +// Returns the animation that should be performed for the specified key. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsanimatablepropertycontainer/1530511-animator?language=objc -func (a_ AnimatablePropertyContainerWrapper) Animator() objc.Object { - rv := objc.Call[objc.Object](a_, objc.Sel("animator")) +// [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_ AnimatablePropertyContainerWrapper) HasAnimationForKey() bool { - return a_.RespondsToSelector(objc.Sel("animationForKey:")) +func (a_ AnimatablePropertyContainerObject) HasAnimator() bool { + return a_.RespondsToSelector(objc.Sel("animator")) } -// Returns the animation that should be performed for the specified key. [Full Topic] +// Returns a proxy object for the receiver that can be used to initiate implied animation for property changes. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsanimatablepropertycontainer/1526209-animationforkey?language=objc -func (a_ AnimatablePropertyContainerWrapper) AnimationForKey(key AnimatablePropertyKey) objc.Object { - rv := objc.Call[objc.Object](a_, objc.Sel("animationForKey:"), key) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsanimatablepropertycontainer/1530511-animator?language=objc +func (a_ AnimatablePropertyContainerObject) Animator() objc.Object { + rv := objc.Call[objc.Object](a_, objc.Sel("animator")) return rv } -func (a_ AnimatablePropertyContainerWrapper) HasSetAnimations() bool { +func (a_ AnimatablePropertyContainerObject) HasSetAnimations() bool { return a_.RespondsToSelector(objc.Sel("setAnimations:")) } // Sets the option dictionary that maps event trigger keys to animation objects. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/appkit/nsanimatablepropertycontainer/1534096-animations?language=objc -func (a_ AnimatablePropertyContainerWrapper) SetAnimations(value map[AnimatablePropertyKey]objc.IObject) { +func (a_ AnimatablePropertyContainerObject) SetAnimations(value map[AnimatablePropertyKey]objc.Object) { objc.Call[objc.Void](a_, objc.Sel("setAnimations:"), value) } -func (a_ AnimatablePropertyContainerWrapper) HasAnimations() bool { +func (a_ AnimatablePropertyContainerObject) HasAnimations() bool { return a_.RespondsToSelector(objc.Sel("animations")) } // Sets the option dictionary that maps event trigger keys to animation objects. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/appkit/nsanimatablepropertycontainer/1534096-animations?language=objc -func (a_ AnimatablePropertyContainerWrapper) Animations() map[AnimatablePropertyKey]objc.Object { +func (a_ AnimatablePropertyContainerObject) Animations() map[AnimatablePropertyKey]objc.Object { rv := objc.Call[map[AnimatablePropertyKey]objc.Object](a_, objc.Sel("animations")) return rv } diff --git a/macos/appkit/animation.gen.go b/macos/appkit/animation.gen.go index aff92e9b..326412a1 100644 --- a/macos/appkit/animation.gen.go +++ b/macos/appkit/animation.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package appkit @@ -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() - StopWhenAnimationReachesProgress(animation IAnimation, stopProgress AnimationProgress) - AnimationBlockingMode() AnimationBlockingMode - SetAnimationBlockingMode(value AnimationBlockingMode) + StopAnimation() CurrentProgress() AnimationProgress SetCurrentProgress(value AnimationProgress) - FrameRate() float64 - SetFrameRate(value float64) RunLoopModesForAnimating() []foundation.RunLoopMode ProgressMarks() []foundation.Number SetProgressMarks(value []foundation.INumber) - Delegate() AnimationDelegateWrapper + Delegate() AnimationDelegateObject SetDelegate(value PAnimationDelegate) SetDelegateObject(valueObject objc.IObject) - CurrentValue() float64 + Duration() foundation.TimeInterval + SetDuration(value foundation.TimeInterval) IsAnimating() bool AnimationCurve() AnimationCurve SetAnimationCurve(value AnimationCurve) - Duration() foundation.TimeInterval - SetDuration(value foundation.TimeInterval) + AnimationBlockingMode() AnimationBlockingMode + SetAnimationBlockingMode(value AnimationBlockingMode) + CurrentValue() float64 + FrameRate() float64 + SetFrameRate(value float64) } // An object that manages the timing and progress of animations in the user interface. [Full Topic] @@ -79,10 +79,6 @@ func (ac _AnimationClass) Alloc() Animation { return rv } -func Animation_Alloc() Animation { - return AnimationClass.Alloc() -} - func (ac _AnimationClass) New() Animation { rv := objc.Call[Animation](ac, objc.Sel("new")) rv.Autorelease() @@ -98,27 +94,6 @@ 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 @@ -126,6 +101,13 @@ 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:"), objc.Ptr(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 @@ -140,33 +122,32 @@ func (a_ Animation) AddProgressMark(progressMark AnimationProgress) { objc.Call[objc.Void](a_, objc.Sel("addProgressMark:"), progressMark) } -// Clears linkage to another animation that causes the receiver to stop. [Full Topic] +// Removes progress mark from the receiver. [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/1528288-removeprogressmark?language=objc +func (a_ Animation) RemoveProgressMark(progressMark AnimationProgress) { + objc.Call[objc.Void](a_, objc.Sel("removeProgressMark:"), progressMark) } -// Stops running the animation represented by the receiver when another animation reaches a specific progress mark. [Full Topic] +// Starts the animation represented by the receiver. [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:"), objc.Ptr(animation), stopProgress) +// [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")) } -// The blocking mode of the animation. [Full Topic] +// Clears linkage to another animation that causes the receiver to stop. [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 +// [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")) } -// The blocking mode of the animation. [Full Topic] +// Stops the animation represented by the receiver. [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) +// [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")) } // The current progress of the animation. [Full Topic] @@ -184,21 +165,6 @@ 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() float64 { - rv := objc.Call[float64](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 float64) { - 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 @@ -225,8 +191,8 @@ func (a_ Animation) SetProgressMarks(value []foundation.INumber) { // The animation delegate. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/appkit/nsanimation/1524439-delegate?language=objc -func (a_ Animation) Delegate() AnimationDelegateWrapper { - rv := objc.Call[AnimationDelegateWrapper](a_, objc.Sel("delegate")) +func (a_ Animation) Delegate() AnimationDelegateObject { + rv := objc.Call[AnimationDelegateObject](a_, objc.Sel("delegate")) return rv } @@ -246,14 +212,21 @@ func (a_ Animation) SetDelegateObject(valueObject objc.IObject) { objc.Call[objc.Void](a_, objc.Sel("setDelegate:"), objc.Ptr(valueObject)) } -// The current value of the animation effect, based on the current progress [Full Topic] +// The duration of the animation, in seconds. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsanimation/1531043-currentvalue?language=objc -func (a_ Animation) CurrentValue() float64 { - rv := objc.Call[float64](a_, objc.Sel("currentValue")) +// [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 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 @@ -277,17 +250,40 @@ func (a_ Animation) SetAnimationCurve(value AnimationCurve) { objc.Call[objc.Void](a_, objc.Sel("setAnimationCurve:"), value) } -// The duration of the animation, in seconds. [Full Topic] +// The blocking mode of the animation. [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/1533725-animationblockingmode?language=objc +func (a_ Animation) AnimationBlockingMode() AnimationBlockingMode { + rv := objc.Call[AnimationBlockingMode](a_, objc.Sel("animationBlockingMode")) return rv } -// The duration of the animation, in seconds. [Full Topic] +// The blocking mode of the animation. [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) +// [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() float64 { + rv := objc.Call[float64](a_, objc.Sel("currentValue")) + 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) FrameRate() float64 { + rv := objc.Call[float64](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 float64) { + objc.Call[objc.Void](a_, objc.Sel("setFrameRate:"), value) } diff --git a/macos/appkit/animation_context.gen.go b/macos/appkit/animation_context.gen.go index 2a664490..4949442c 100644 --- a/macos/appkit/animation_context.gen.go +++ b/macos/appkit/animation_context.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package appkit @@ -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] @@ -48,10 +48,6 @@ func (ac _AnimationContextClass) Alloc() AnimationContext { return rv } -func AnimationContext_Alloc() AnimationContext { - return AnimationContextClass.Alloc() -} - func (ac _AnimationContextClass) New() AnimationContext { rv := objc.Call[AnimationContext](ac, objc.Sel("new")) rv.Autorelease() @@ -67,18 +63,32 @@ func (a_ AnimationContext) Init() AnimationContext { return rv } -// Creates a new animation grouping. [Full Topic] +// Ends the current animation grouping. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsanimationcontext/1530234-begingrouping?language=objc -func (ac _AnimationContextClass) BeginGrouping() { - objc.Call[objc.Void](ac, objc.Sel("beginGrouping")) +// [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")) } -// Creates a new animation grouping. [Full Topic] +// Ends the current animation grouping. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsanimationcontext/1530234-begingrouping?language=objc -func AnimationContext_BeginGrouping() { - AnimationContextClass.BeginGrouping() +// [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] @@ -95,18 +105,48 @@ func AnimationContext_RunAnimationGroup(changes func(context AnimationContext)) AnimationContextClass.RunAnimationGroup(changes) } -// Ends the current animation grouping. [Full Topic] +// Creates a new 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")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsanimationcontext/1530234-begingrouping?language=objc +func (ac _AnimationContextClass) BeginGrouping() { + objc.Call[objc.Void](ac, objc.Sel("beginGrouping")) } -// Ends the current animation grouping. [Full Topic] +// Creates a new animation grouping. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsanimationcontext/1526927-endgrouping?language=objc -func AnimationContext_EndGrouping() { - AnimationContextClass.EndGrouping() +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsanimationcontext/1530234-begingrouping?language=objc +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]: 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) +} + +// 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:"), objc.Ptr(value)) } // Returns the current animation context. [Full Topic] @@ -153,33 +193,3 @@ 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:"), objc.Ptr(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 ea0da92c..4d944714 100644 --- a/macos/appkit/animation_delegate.gen.go +++ b/macos/appkit/animation_delegate.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package appkit @@ -11,46 +11,68 @@ import ( // [Full Topic]: https://developer.apple.com/documentation/appkit/nsanimationdelegate?language=objc type PAnimationDelegate interface { // optional - AnimationDidEnd(animation Animation) - HasAnimationDidEnd() bool + AnimationDidStop(animation Animation) + HasAnimationDidStop() bool + + // optional + AnimationValueForProgress(animation Animation, progress AnimationProgress) float64 + HasAnimationValueForProgress() bool // optional AnimationDidReachProgressMark(animation Animation, progress AnimationProgress) HasAnimationDidReachProgressMark() bool // optional - AnimationShouldStart(animation Animation) bool - HasAnimationShouldStart() bool + AnimationDidEnd(animation Animation) + HasAnimationDidEnd() bool // optional - AnimationDidStop(animation Animation) - HasAnimationDidStop() bool + AnimationShouldStart(animation Animation) bool + HasAnimationShouldStart() bool } // A delegate implementation builder for the [PAnimationDelegate] protocol. type AnimationDelegate struct { - _AnimationDidEnd func(animation Animation) + _AnimationDidStop func(animation Animation) + _AnimationValueForProgress func(animation Animation, progress AnimationProgress) float64 _AnimationDidReachProgressMark func(animation Animation, progress AnimationProgress) + _AnimationDidEnd func(animation Animation) _AnimationShouldStart func(animation Animation) bool - _AnimationDidStop func(animation Animation) } -func (di *AnimationDelegate) HasAnimationDidEnd() bool { - return di._AnimationDidEnd != nil +func (di *AnimationDelegate) HasAnimationDidStop() bool { + return di._AnimationDidStop != nil } -// Sent to the delegate when the specified animation completes its run. [Full Topic] +// 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/1535871-animationdidend?language=objc -func (di *AnimationDelegate) SetAnimationDidEnd(f func(animation Animation)) { - di._AnimationDidEnd = f +// [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 completes its run. [Full Topic] +// 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/1535871-animationdidend?language=objc -func (di *AnimationDelegate) AnimationDidEnd(animation Animation) { - di._AnimationDidEnd(animation) +// [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 +} + +// Requests a custom curve value for the current progress value. [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) float64) { + di._AnimationValueForProgress = f +} + +// Requests a custom curve value for the current progress value. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsanimationdelegate/1528965-animation?language=objc +func (di *AnimationDelegate) AnimationValueForProgress(animation Animation, progress AnimationProgress) float64 { + return di._AnimationValueForProgress(animation, progress) } func (di *AnimationDelegate) HasAnimationDidReachProgressMark() bool { return di._AnimationDidReachProgressMark != nil @@ -69,6 +91,23 @@ 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 } @@ -86,70 +125,68 @@ func (di *AnimationDelegate) SetAnimationShouldStart(f func(animation Animation) func (di *AnimationDelegate) AnimationShouldStart(animation Animation) bool { return di._AnimationShouldStart(animation) } -func (di *AnimationDelegate) HasAnimationDidStop() bool { - return di._AnimationDidStop != nil + +// ensure impl type implements protocol interface +var _ PAnimationDelegate = (*AnimationDelegateObject)(nil) + +// A concrete type for the [PAnimationDelegate] protocol. +type AnimationDelegateObject struct { + objc.Object } -// 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 +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) AnimationDidStop(animation Animation) { - di._AnimationDidStop(animation) -} - -// A concrete type wrapper for the [PAnimationDelegate] protocol. -type AnimationDelegateWrapper struct { - objc.Object +func (a_ AnimationDelegateObject) AnimationDidStop(animation Animation) { + objc.Call[objc.Void](a_, objc.Sel("animationDidStop:"), objc.Ptr(animation)) } -func (a_ AnimationDelegateWrapper) HasAnimationDidEnd() bool { - return a_.RespondsToSelector(objc.Sel("animationDidEnd:")) +func (a_ AnimationDelegateObject) HasAnimationValueForProgress() bool { + return a_.RespondsToSelector(objc.Sel("animation:valueForProgress:")) } -// Sent to the delegate when the specified animation completes its run. [Full Topic] +// Requests a custom curve value for the current progress value. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsanimationdelegate/1535871-animationdidend?language=objc -func (a_ AnimationDelegateWrapper) AnimationDidEnd(animation IAnimation) { - objc.Call[objc.Void](a_, objc.Sel("animationDidEnd:"), objc.Ptr(animation)) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsanimationdelegate/1528965-animation?language=objc +func (a_ AnimationDelegateObject) AnimationValueForProgress(animation Animation, progress AnimationProgress) float64 { + rv := objc.Call[float64](a_, objc.Sel("animation:valueForProgress:"), objc.Ptr(animation), progress) + return rv } -func (a_ AnimationDelegateWrapper) HasAnimationDidReachProgressMark() bool { +func (a_ AnimationDelegateObject) HasAnimationDidReachProgressMark() bool { return a_.RespondsToSelector(objc.Sel("animation:didReachProgressMark:")) } // Sent to the delegate when an animation reaches a specific progress mark. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/appkit/nsanimationdelegate/1535100-animation?language=objc -func (a_ AnimationDelegateWrapper) AnimationDidReachProgressMark(animation IAnimation, progress AnimationProgress) { +func (a_ AnimationDelegateObject) AnimationDidReachProgressMark(animation Animation, progress AnimationProgress) { objc.Call[objc.Void](a_, objc.Sel("animation:didReachProgressMark:"), objc.Ptr(animation), progress) } -func (a_ AnimationDelegateWrapper) HasAnimationShouldStart() bool { - return a_.RespondsToSelector(objc.Sel("animationShouldStart:")) +func (a_ AnimationDelegateObject) HasAnimationDidEnd() bool { + return a_.RespondsToSelector(objc.Sel("animationDidEnd:")) } -// Sent to the delegate just after an animation is started. [Full Topic] +// Sent to the delegate when the specified animation completes its run. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsanimationdelegate/1533279-animationshouldstart?language=objc -func (a_ AnimationDelegateWrapper) AnimationShouldStart(animation IAnimation) bool { - rv := objc.Call[bool](a_, objc.Sel("animationShouldStart:"), objc.Ptr(animation)) - 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:"), objc.Ptr(animation)) } -func (a_ AnimationDelegateWrapper) HasAnimationDidStop() bool { - return a_.RespondsToSelector(objc.Sel("animationDidStop:")) +func (a_ AnimationDelegateObject) HasAnimationShouldStart() bool { + return a_.RespondsToSelector(objc.Sel("animationShouldStart:")) } -// Sent to the delegate when the specified animation is stopped before it completes its run. [Full Topic] +// Sent to the delegate just after an animation is started. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsanimationdelegate/1534155-animationdidstop?language=objc -func (a_ AnimationDelegateWrapper) AnimationDidStop(animation IAnimation) { - objc.Call[objc.Void](a_, objc.Sel("animationDidStop:"), objc.Ptr(animation)) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsanimationdelegate/1533279-animationshouldstart?language=objc +func (a_ AnimationDelegateObject) AnimationShouldStart(animation Animation) bool { + rv := objc.Call[bool](a_, objc.Sel("animationShouldStart:"), objc.Ptr(animation)) + return rv } diff --git a/macos/appkit/appearance.gen.go b/macos/appkit/appearance.gen.go index c1dbda9f..32922ee9 100644 --- a/macos/appkit/appearance.gen.go +++ b/macos/appkit/appearance.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package appkit @@ -19,10 +19,10 @@ type _AppearanceClass struct { // An interface definition for the [Appearance] class. type IAppearance interface { objc.IObject - BestMatchFromAppearancesWithNames(appearances []AppearanceName) AppearanceName PerformAsCurrentDrawingAppearance(block func()) - Name() AppearanceName + BestMatchFromAppearancesWithNames(appearances []AppearanceName) AppearanceName AllowsVibrancy() bool + Name() AppearanceName } // An object that manages standard appearance attributes for UI elements in an app. [Full Topic] @@ -57,10 +57,6 @@ func (ac _AppearanceClass) Alloc() Appearance { return rv } -func Appearance_Alloc() Appearance { - return AppearanceClass.Alloc() -} - func (ac _AppearanceClass) New() Appearance { rv := objc.Call[Appearance](ac, objc.Sel("new")) rv.Autorelease() @@ -76,6 +72,13 @@ 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 @@ -84,13 +87,6 @@ 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 @@ -106,14 +102,6 @@ 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 @@ -136,3 +124,11 @@ 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/appearance_customization.gen.go b/macos/appkit/appearance_customization_protocol.gen.go similarity index 67% rename from macos/appkit/appearance_customization.gen.go rename to macos/appkit/appearance_customization_protocol.gen.go index ddd1e0b5..8de11915 100644 --- a/macos/appkit/appearance_customization.gen.go +++ b/macos/appkit/appearance_customization_protocol.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package appkit @@ -11,7 +11,7 @@ import ( // [Full Topic]: https://developer.apple.com/documentation/appkit/nsappearancecustomization?language=objc type PAppearanceCustomization interface { // optional - EffectiveAppearance() IAppearance + EffectiveAppearance() Appearance HasEffectiveAppearance() bool // optional @@ -19,46 +19,49 @@ type PAppearanceCustomization interface { HasSetAppearance() bool // optional - Appearance() IAppearance + Appearance() Appearance HasAppearance() bool } -// A concrete type wrapper for the [PAppearanceCustomization] protocol. -type AppearanceCustomizationWrapper struct { +// ensure impl type implements protocol interface +var _ PAppearanceCustomization = (*AppearanceCustomizationObject)(nil) + +// A concrete type for the [PAppearanceCustomization] protocol. +type AppearanceCustomizationObject struct { objc.Object } -func (a_ AppearanceCustomizationWrapper) HasEffectiveAppearance() bool { +func (a_ AppearanceCustomizationObject) HasEffectiveAppearance() bool { return a_.RespondsToSelector(objc.Sel("effectiveAppearance")) } // The appearance that will be used when the receiver is drawn onscreen, in an NSAppearance object. (read-only) [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/appkit/nsappearancecustomization/1535147-effectiveappearance?language=objc -func (a_ AppearanceCustomizationWrapper) EffectiveAppearance() Appearance { +func (a_ AppearanceCustomizationObject) EffectiveAppearance() Appearance { rv := objc.Call[Appearance](a_, objc.Sel("effectiveAppearance")) return rv } -func (a_ AppearanceCustomizationWrapper) HasSetAppearance() bool { +func (a_ AppearanceCustomizationObject) HasSetAppearance() bool { return a_.RespondsToSelector(objc.Sel("setAppearance:")) } // The appearance of the receiver, in an NSAppearance object. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/appkit/nsappearancecustomization/1533925-appearance?language=objc -func (a_ AppearanceCustomizationWrapper) SetAppearance(value IAppearance) { +func (a_ AppearanceCustomizationObject) SetAppearance(value Appearance) { objc.Call[objc.Void](a_, objc.Sel("setAppearance:"), objc.Ptr(value)) } -func (a_ AppearanceCustomizationWrapper) HasAppearance() bool { +func (a_ AppearanceCustomizationObject) HasAppearance() bool { return a_.RespondsToSelector(objc.Sel("appearance")) } // The appearance of the receiver, in an NSAppearance object. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/appkit/nsappearancecustomization/1533925-appearance?language=objc -func (a_ AppearanceCustomizationWrapper) Appearance() Appearance { +func (a_ AppearanceCustomizationObject) Appearance() Appearance { rv := objc.Call[Appearance](a_, objc.Sel("appearance")) return rv } diff --git a/macos/appkit/appkit_custom.go b/macos/appkit/appkit_custom.go index bdc6f37f..09d78ab6 100644 --- a/macos/appkit/appkit_custom.go +++ b/macos/appkit/appkit_custom.go @@ -18,58 +18,6 @@ const VariableStatusItemLength float64 = -1 // for some reason not in symbols.zip? type FontWidth float64 -// symbols db is missing a few common methods - -func (l_ LayoutAnchor) ConstraintEqualToAnchorConstant(anchor ILayoutAnchor, c float64) LayoutConstraint { - rv := objc.Call[LayoutConstraint](l_, objc.Sel("constraintEqualToAnchor:constant:"), anchor, c) - return rv -} - -// Inserts a view among the view’s subviews so it’s displayed immediately above or below another view. [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) -} - -func (fc _FontClass) FontWithNameSize(fontName string, fontSize float64) Font { - rv := objc.Call[Font](fc, objc.Sel("fontWithName:size:"), fontName, fontSize) - return rv -} - -// Creates a font object for the specified font name and font size. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsfont/1525977-fontwithname/ -func Font_FontWithNameSize(fontName string, fontSize float64) Font { - return FontClass.FontWithNameSize(fontName, fontSize) -} - -func (ic _MenuItemClass) SeparatorItem() MenuItem { - rv := objc.Call[MenuItem](ic, objc.Sel("separatorItem")) - return rv -} - -// Returns a menu item that is used to separate logical groups of menu commands. -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsmenuitem/1514838-separatoritem -func MenuItem_SeparatorItem() MenuItem { - return MenuItemClass.SeparatorItem() -} - -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 -} - // currently this is deprecated but is still needed pre-mac14 // todo: remove when deprecated are added back (but also under build tag per version) diff --git a/macos/appkit/application.gen.go b/macos/appkit/application.gen.go index 163db88f..3e61e7d9 100644 --- a/macos/appkit/application.gen.go +++ b/macos/appkit/application.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package appkit @@ -19,106 +19,109 @@ type _ApplicationClass struct { // An interface definition for the [Application] class. type IApplication interface { IResponder - SendActionToFrom(action objc.Selector, target objc.IObject, sender objc.IObject) bool + 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) EndModalSession(session ModalSession) + OrderFrontStandardAboutPanel(sender objc.IObject) + RegisterServicesMenuSendTypesReturnTypes(sendTypes []PasteboardType, returnTypes []PasteboardType) RequestUserAttention(requestType RequestUserAttentionType) int - CancelUserAttentionRequest(request int) - SendEvent(event IEvent) + RegisterForRemoteNotifications() 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() - WindowWithWindowNumber(windowNum int) Window - RunModalSession(session ModalSession) ModalResponse - StopModal() AbortModal() - ExtendStateRestoration() - DisableRelaunchOnLogin() - EnumerateWindowsWithOptionsUsingBlock(options WindowListOptions, block func(window Window, stop *bool)) - OrderFrontStandardAboutPanel(sender objc.IObject) - CompleteStateRestoration() + RestoreWindowWithIdentifierStateCompletionHandler(identifier UserInterfaceItemIdentifier, state foundation.ICoder, completionHandler func(arg0 Window, arg1 foundation.Error)) bool + ReplyToOpenOrPrint(reply ApplicationDelegateReply) + UnhideWithoutActivation() OrderFrontCharacterPalette(sender objc.IObject) - DiscardEventsMatchingMaskBeforeEvent(mask EventMask, lastEvent IEvent) - SetWindowsNeedUpdate(needUpdate bool) - ActivationPolicy() ApplicationActivationPolicy + NextEventMatchingMaskUntilDateInModeDequeue(mask EventMask, expiration foundation.IDate, mode foundation.RunLoopMode, deqFlag bool) Event + RemoveWindowsItem(win IWindow) + 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) + ExtendStateRestoration() + Run() + AddWindowsItemTitleFilename(win IWindow, string_ string, isFilename bool) + ActivationPolicy() ApplicationActivationPolicy + StopModal() FinishLaunching() - PreventWindowOrdering() - EnableRelaunchOnLogin() - UnhideWithoutActivation() UnregisterUserInterfaceItemSearchHandler(handler PUserInterfaceItemSearching) UnregisterUserInterfaceItemSearchHandlerObject(handlerObject objc.IObject) - RunPageLayout(sender objc.IObject) ReportException(exception foundation.IException) - 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) 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) + WindowWithWindowNumber(windowNum int) Window + ActivateContextHelpMode(sender objc.IObject) + CompleteStateRestoration() + SendActionToFrom(action objc.Selector, target objc.IObject, sender objc.IObject) bool + CancelUserAttentionRequest(request int) + DisableRelaunchOnLogin() + DockTile() DockTile + OcclusionState() ApplicationOcclusionState IsRegisteredForRemoteNotifications() bool - ServicesMenu() Menu - SetServicesMenu(value IMenu) IsRunning() bool - IsHidden() bool - KeyWindow() Window - PresentationOptions() ApplicationPresentationOptions - SetPresentationOptions(value ApplicationPresentationOptions) - CurrentEvent() Event - MainWindow() Window - EffectiveAppearance() Appearance + IsAutomaticCustomizeTouchBarMenuItemEnabled() bool + SetAutomaticCustomizeTouchBarMenuItemEnabled(value bool) CurrentSystemPresentationOptions() ApplicationPresentationOptions - ApplicationIconImage() Image - SetApplicationIconImage(value IImage) - IsActive() bool - IsFullKeyboardAccessEnabled() bool - Delegate() ApplicationDelegateWrapper - SetDelegate(value PApplicationDelegate) - SetDelegateObject(valueObject objc.IObject) - ServicesProvider() objc.Object - SetServicesProvider(value objc.IObject) - UserInterfaceLayoutDirection() UserInterfaceLayoutDirection - OrderedDocuments() []Document - OcclusionState() ApplicationOcclusionState Windows() []Window - HelpMenu() Menu - SetHelpMenu(value IMenu) - OrderedWindows() []Window + IsActive() bool WindowsMenu() Menu SetWindowsMenu(value IMenu) - DockTile() DockTile - IsAutomaticCustomizeTouchBarMenuItemEnabled() bool - SetAutomaticCustomizeTouchBarMenuItemEnabled(value bool) + IsProtectedDataAvailable() bool + Appearance() Appearance + SetAppearance(value IAppearance) + KeyWindow() Window + OrderedDocuments() []Document + OrderedWindows() []Window + IsHidden() bool + 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) + ApplicationIconImage() Image + SetApplicationIconImage(value IImage) + Delegate() ApplicationDelegateObject + SetDelegate(value PApplicationDelegate) + SetDelegateObject(valueObject objc.IObject) + EffectiveAppearance() Appearance EnabledRemoteNotificationTypes() RemoteNotificationType - Appearance() Appearance - SetAppearance(value IAppearance) - IsProtectedDataAvailable() bool + MainWindow() Window + CurrentEvent() Event + IsFullKeyboardAccessEnabled() bool + UserInterfaceLayoutDirection() UserInterfaceLayoutDirection } // An object that manages an app’s main event loop and resources used by all of that app’s objects. [Full Topic] @@ -139,10 +142,6 @@ func (ac _ApplicationClass) Alloc() Application { return rv } -func Application_Alloc() Application { - return ApplicationClass.Alloc() -} - func (ac _ApplicationClass) New() Application { rv := objc.Call[Application](ac, objc.Sel("new")) rv.Autorelease() @@ -158,62 +157,75 @@ func (a_ Application) Init() Application { return rv } -// Sends the given action message to the given target. [Full Topic] +// Sends an [appkit/nswindow/update] message to each onscreen window. [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/1428675-updatewindows?language=objc +func (a_ Application) UpdateWindows() { + objc.Call[objc.Void](a_, objc.Sel("updateWindows")) } -// Finishes a modal session. [Full Topic] +// Terminates the receiver. [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) +// [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) } -// Starts a user attention request. [Full Topic] +// Enables relaunching the app on login. [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/1428453-enablerelaunchonlogin?language=objc +func (a_ Application) EnableRelaunchOnLogin() { + objc.Call[objc.Void](a_, objc.Sel("enableRelaunchOnLogin")) +} + +// Executes a block for each of the app's windows. [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) +} + +// 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/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 } -// Cancels a previous user attention request. [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/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/1428479-orderfrontstandardaboutpanelwith?language=objc +func (a_ Application) OrderFrontStandardAboutPanelWithOptions(optionsDictionary map[AboutPanelOptionKey]objc.IObject) { + objc.Call[objc.Void](a_, objc.Sel("orderFrontStandardAboutPanelWithOptions:"), optionsDictionary) } -// Dispatches an event to other objects. [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/1428359-sendevent?language=objc -func (a_ Application) SendEvent(event IEvent) { - objc.Call[objc.Void](a_, objc.Sel("sendEvent:"), objc.Ptr(event)) +// [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, objc.Ptr(lastEvent)) } -// Updates the Window menu item for a given window to reflect the edited status of that window. [Full Topic] +// Miniaturizes all the receiver’s windows. [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:"), objc.Ptr(win)) +// [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) } -// Arranges windows listed in the Window menu in front of all other windows. [Full Topic] +// Hides all apps, except the receiver. [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/1428746-hideotherapplications?language=objc +func (a_ Application) HideOtherApplications(sender objc.IObject) { + objc.Call[objc.Void](a_, objc.Sel("hideOtherApplications:"), sender) } -// Removes the Window menu item for a given window. [Full Topic] +// Responds to NSTerminateLater once the app knows whether it can terminate. [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:"), objc.Ptr(win)) +// [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) } // Hides all the receiver’s windows, and the next app in line is activated. [Full Topic] @@ -223,27 +235,33 @@ func (a_ Application) Hide(sender objc.IObject) { objc.Call[objc.Void](a_, objc.Sel("hide:"), sender) } -// Registers the pasteboard types the receiver can send and receive in response to service requests. [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/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/1428451-setwindowsneedupdate?language=objc +func (a_ Application) SetWindowsNeedUpdate(needUpdate bool) { + objc.Call[objc.Void](a_, objc.Sel("setWindowsNeedUpdate:"), needUpdate) } -// Searches for an object that can receive the message specified by the given selector. [Full Topic] +// Register an object that provides help data to your app. [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) - 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) } -// Searches for the string in the user interface. [Full Topic] +// Register an object that provides help data to your app. [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/1420818-registeruserinterfaceitemsearchh?language=objc +func (a_ Application) RegisterUserInterfaceItemSearchHandlerObject(handlerObject objc.IObject) { + objc.Call[objc.Void](a_, objc.Sel("registerUserInterfaceItemSearchHandler:"), objc.Ptr(handlerObject)) +} + +// Suppresses the usual window ordering in handling the most recent mouse-down event. [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")) } // Stops a modal event loop, allowing you to return a custom result code. [Full Topic] @@ -253,76 +271,98 @@ func (a_ Application) StopModalWithCode(returnCode ModalResponse) { objc.Call[objc.Void](a_, objc.Sel("stopModalWithCode:"), returnCode) } -// Unregister for notifications received from Apple Push Notification service. [Full Topic] +// Stops the main event loop. [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/1428473-stop?language=objc +func (a_ Application) Stop(sender objc.IObject) { + objc.Call[objc.Void](a_, objc.Sel("stop:"), sender) } -// Returns the window corresponding to the specified window number. [Full Topic] +// Finishes a modal session. [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) - return rv +// [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) } -// Runs a given modal session, as defined in a previous invocation of beginModalSessionForWindow:relativeToWindow:. [Full Topic] +// Displays a standard About window. [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) +// [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] +// +// [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) +} + +// Starts a user attention request. [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) return rv } -// Stops a modal event loop. [Full Topic] +// Register for notifications sent by Apple Push Notification service (APNs). [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/2967172-registerforremotenotifications?language=objc +func (a_ Application) RegisterForRemoteNotifications() { + objc.Call[objc.Void](a_, objc.Sel("registerForRemoteNotifications")) } -// Aborts the event loop started by runModalForWindow:relativeToWindow: or runModalSession:. [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/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/1428422-updatewindowsitem?language=objc +func (a_ Application) UpdateWindowsItem(win IWindow) { + objc.Call[objc.Void](a_, objc.Sel("updateWindowsItem:"), objc.Ptr(win)) } -// Allows an app to extend its state restoration period. [Full Topic] +// Searches for the string in the user interface. [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")) +// [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 } -// Disables relaunching the app on login. [Full Topic] +// Unregister for notifications received from Apple Push Notification service. [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/1428747-unregisterforremotenotifications?language=objc +func (a_ Application) UnregisterForRemoteNotifications() { + objc.Call[objc.Void](a_, objc.Sel("unregisterForRemoteNotifications")) } -// Executes a block for each of the app's windows. [Full Topic] +// Aborts the event loop started by [appkit/nsapplication/runmodalforwindow] or [appkit/nsapplication/runmodalsession]. [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/1428753-abortmodal?language=objc +func (a_ Application) AbortModal() { + objc.Call[objc.Void](a_, objc.Sel("abortModal")) } -// Displays a standard About window. [Full Topic] +// Invoked to request that a window be restored. [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) +// [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, objc.Ptr(state), completionHandler) + return rv } -// 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) +} + +// Restores hidden windows without activating their owner (the receiver). [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")) } // Opens the character palette. [Full Topic] @@ -332,105 +372,122 @@ func (a_ Application) OrderFrontCharacterPalette(sender objc.IObject) { objc.Call[objc.Void](a_, objc.Sel("orderFrontCharacterPalette:"), sender) } -// Removes all events matching the given mask and generated before the specified event. [Full Topic] +// 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/1428652-discardeventsmatchingmask?language=objc -func (a_ Application) DiscardEventsMatchingMaskBeforeEvent(mask EventMask, lastEvent IEvent) { - objc.Call[objc.Void](a_, objc.Sel("discardEventsMatchingMask:beforeEvent:"), mask, objc.Ptr(lastEvent)) +// [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, objc.Ptr(expiration), mode, deqFlag) + return rv } -// Sets whether the receiver’s windows need updating when the receiver has finished processing the current event. [Full Topic] +// Removes the Window menu item for a given window. [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) +// [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:"), objc.Ptr(win)) } -// Returns the app’s activation policy. [Full Topic] +// Runs a given modal session, as defined in a previous invocation of [appkit/nsapplication/beginmodalsessionforwindow]. [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")) +// [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 } -// Show or hides the interface for customizing the Touch Bar. [Full Topic] +// Sets up a modal session with the given window and returns a pointer to the NSModalSession structure representing the session. [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) +// [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:"), objc.Ptr(window)) return rv } -// Activates the app, opens any files specified by the NSOpen user default, and unhighlights the app’s icon. [Full Topic] +// Restores hidden windows to the screen and makes the receiver active. [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/1428761-unhide?language=objc +func (a_ Application) Unhide(sender objc.IObject) { + objc.Call[objc.Void](a_, objc.Sel("unhide:"), sender) } -// Suppresses the usual window ordering in handling the most recent mouse-down event. [Full Topic] +// Starts a modal event loop for the specified window. [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/1428436-runmodalforwindow?language=objc +func (a_ Application) RunModalForWindow(window IWindow) ModalResponse { + rv := objc.Call[ModalResponse](a_, objc.Sel("runModalForWindow:"), objc.Ptr(window)) + return rv } -// Enables relaunching the app on login. [Full Topic] +// Unhides all apps, including the receiver. [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/1428737-unhideallapplications?language=objc +func (a_ Application) UnhideAllApplications(sender objc.IObject) { + objc.Call[objc.Void](a_, objc.Sel("unhideAllApplications:"), sender) } -// Creates and executes a new thread based on the specified target and selector. [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/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/1428689-changewindowsitem?language=objc +func (a_ Application) ChangeWindowsItemTitleFilename(win IWindow, string_ string, isFilename bool) { + objc.Call[objc.Void](a_, objc.Sel("changeWindowsItem:title:filename:"), objc.Ptr(win), string_, isFilename) } -// Creates and executes a new thread based on the specified target and selector. [Full Topic] +// Returns the object that receives the action message specified by the given selector. [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/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 } -// Restores hidden windows without activating their owner (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/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/1428739-arrangeinfront?language=objc +func (a_ Application) ArrangeInFront(sender objc.IObject) { + objc.Call[objc.Void](a_, objc.Sel("arrangeInFront:"), sender) } -// 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:"), objc.Ptr(event), flag) } -// Unregister an object that provides help data to your app. [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/1420820-unregisteruserinterfaceitemsearc?language=objc -func (a_ Application) UnregisterUserInterfaceItemSearchHandlerObject(handlerObject objc.IObject) { - objc.Call[objc.Void](a_, objc.Sel("unregisterUserInterfaceItemSearchHandler:"), objc.Ptr(handlerObject)) +// [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) } -// Displays the receiver’s page layout panel, an instance of NSPageLayout. [Full Topic] +// Deactivates the receiver. [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) +// [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")) } -// Logs a given exception by calling NSLog(). [Full Topic] +// Dispatches an event to other objects. [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:"), objc.Ptr(exception)) +// [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:"), objc.Ptr(event)) +} + +// Show or hides the interface for customizing the Touch Bar. [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 +} + +// 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] @@ -440,11 +497,18 @@ func (a_ Application) OrderFrontColorPanel(sender objc.IObject) { objc.Call[objc.Void](a_, objc.Sel("orderFrontColorPanel:"), sender) } -// Deactivates the receiver. [Full Topic] +// Allows an app to extend its state restoration period. [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/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")) } // Adds an item to the Window menu for a given window. [Full Topic] @@ -454,155 +518,130 @@ func (a_ Application) AddWindowsItemTitleFilename(win IWindow, string_ string, i objc.Call[objc.Void](a_, objc.Sel("addWindowsItem:title:filename:"), objc.Ptr(win), string_, isFilename) } -// Sends an 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")) -} - -// Register for notifications sent by Apple Push Notification service (APNs). [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")) -} - -// Adds a given event to the receiver’s event queue. [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:"), objc.Ptr(event), flag) -} - -// Unhides all apps, including the receiver. [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/1428737-unhideallapplications?language=objc -func (a_ Application) UnhideAllApplications(sender objc.IObject) { - objc.Call[objc.Void](a_, objc.Sel("unhideAllApplications:"), sender) +// [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) } -// Places the receiver in context-sensitive help mode. [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/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/1428374-detachdrawingthread?language=objc +func Application_DetachDrawingThreadToTargetWithObject(selector objc.Selector, target objc.IObject, argument objc.IObject) { + ApplicationClass.DetachDrawingThreadToTargetWithObject(selector, target, argument) } -// Attempts to modify the app’s activation policy. [Full Topic] +// Returns the app’s activation policy. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsapplication/1428621-setactivationpolicy?language=objc -func (a_ Application) SetActivationPolicy(activationPolicy ApplicationActivationPolicy) bool { - rv := objc.Call[bool](a_, objc.Sel("setActivationPolicy:"), activationPolicy) +// [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 } -// Miniaturizes all the receiver’s windows. [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) -} - -// Returns the next event matching a given mask, or nil if no such event is found before a specified expiration date. [Full Topic] +// Stops a modal event loop. [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, objc.Ptr(expiration), mode, deqFlag) - return rv +// [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")) } -// Hides all apps, except the receiver. [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/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/1428771-finishlaunching?language=objc +func (a_ Application) FinishLaunching() { + objc.Call[objc.Void](a_, objc.Sel("finishLaunching")) } -// Handles errors that might occur when the user attempts to open or print files. [Full Topic] +// Unregister an object that provides help data to your app. [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/1420820-unregisteruserinterfaceitemsearc?language=objc +func (a_ Application) UnregisterUserInterfaceItemSearchHandler(handler PUserInterfaceItemSearching) { + po0 := objc.WrapAsProtocol("NSUserInterfaceItemSearching", handler) + objc.Call[objc.Void](a_, objc.Sel("unregisterUserInterfaceItemSearchHandler:"), po0) } -// 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] +// Unregister an object that provides help data to your app. [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/1420820-unregisteruserinterfaceitemsearc?language=objc +func (a_ Application) UnregisterUserInterfaceItemSearchHandlerObject(handlerObject objc.IObject) { + objc.Call[objc.Void](a_, objc.Sel("unregisterUserInterfaceItemSearchHandler:"), objc.Ptr(handlerObject)) } -// Responds to NSTerminateLater once the app knows whether it can terminate. [Full Topic] +// Logs a given exception by calling NSLog(). [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/1428396-reportexception?language=objc +func (a_ Application) ReportException(exception foundation.IException) { + objc.Call[objc.Void](a_, objc.Sel("reportException:"), objc.Ptr(exception)) } -// Starts the main event loop. [Full Topic] +// Attempts to modify the app’s activation policy. [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")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsapplication/1428621-setactivationpolicy?language=objc +func (a_ Application) SetActivationPolicy(activationPolicy ApplicationActivationPolicy) bool { + rv := objc.Call[bool](a_, objc.Sel("setActivationPolicy:"), activationPolicy) + return rv } -// Stops the main event loop. [Full Topic] +// Returns the window corresponding to the specified window number. [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) +// [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 } -// Restores hidden windows to the screen and makes the receiver active. [Full Topic] +// Places the receiver in context-sensitive help mode. [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) +// [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) } -// Register an object that provides help data to your app. [Full Topic] +// Completes the extended state restoration. [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/1526245-completestaterestoration?language=objc +func (a_ Application) CompleteStateRestoration() { + objc.Call[objc.Void](a_, objc.Sel("completeStateRestoration")) } -// Register an object that provides help data to your app. [Full Topic] +// Sends the given action message to the given target. [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:"), objc.Ptr(handlerObject)) +// [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 } -// Changes the item for a given window in the Window menu to a given string. [Full Topic] +// Cancels a previous user attention request. [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:"), objc.Ptr(win), string_, isFilename) +// [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) } -// Terminates the receiver. [Full Topic] +// Disables relaunching the app on login. [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) +// [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] +// The app’s Dock tile. [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, objc.Ptr(state), completionHandler) +// [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 } -// Displays a standard About window with information from a given options dictionary. [Full Topic] +// The occlusion state of the app. [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/1428656-occlusionstate?language=objc +func (a_ Application) OcclusionState() ApplicationOcclusionState { + rv := objc.Call[ApplicationOcclusionState](a_, objc.Sel("occlusionState")) + return rv } // A Boolean value indicating whether the app is registered with Apple Push Notification service (APNs). [Full Topic] @@ -613,21 +652,6 @@ func (a_ Application) IsRegisteredForRemoteNotifications() bool { return rv } -// The app’s Services menu. [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 -} - -// The app’s Services menu. [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:"), objc.Ptr(value)) -} - // A Boolean value indicating whether the main event loop is running. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/appkit/nsapplication/1428759-running?language=objc @@ -636,59 +660,34 @@ func (a_ Application) IsRunning() bool { return rv } -// A Boolean value indicating whether the app is hidden. [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")) - return rv -} - -// The window that currently receives keyboard events. [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")) - return rv -} - -// The presentation options that should be in effect for the system when this app is active. [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/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/2646923-automaticcustomizetouchbarmenuit?language=objc +func (a_ Application) IsAutomaticCustomizeTouchBarMenuItemEnabled() bool { + rv := objc.Call[bool](a_, objc.Sel("isAutomaticCustomizeTouchBarMenuItemEnabled")) return rv } -// 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) SetPresentationOptions(value ApplicationPresentationOptions) { - objc.Call[objc.Void](a_, objc.Sel("setPresentationOptions:"), value) -} - -// The last event object that the app retrieved from the event queue. [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/1428668-currentevent?language=objc -func (a_ Application) CurrentEvent() Event { - rv := objc.Call[Event](a_, objc.Sel("currentEvent")) - return rv +// [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 window. [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/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/1428360-sharedapplication?language=objc +func (ac _ApplicationClass) SharedApplication() Application { + rv := objc.Call[Application](ac, objc.Sel("sharedApplication")) return rv } -// The appearance that AppKit uses to draw the app’s interface. [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/2967171-effectiveappearance?language=objc -func (a_ Application) EffectiveAppearance() Appearance { - rv := objc.Call[Appearance](a_, objc.Sel("effectiveAppearance")) - return rv +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsapplication/1428360-sharedapplication?language=objc +func Application_SharedApplication() Application { + return ApplicationClass.SharedApplication() } // The set of app presentation options that are currently in effect for the system. [Full Topic] @@ -699,21 +698,14 @@ func (a_ Application) CurrentSystemPresentationOptions() ApplicationPresentation return rv } -// The image used for the app’s icon. [Full Topic] +// An array of the app’s window objects. [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/1428402-windows?language=objc +func (a_ Application) Windows() []Window { + rv := objc.Call[[]Window](a_, objc.Sel("windows")) return rv } -// The image used for the app’s icon. [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:"), objc.Ptr(value)) -} - // A Boolean value indicating whether this is the active app. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/appkit/nsapplication/1428493-active?language=objc @@ -722,58 +714,49 @@ func (a_ Application) IsActive() bool { return rv } -// 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/1428469-fullkeyboardaccessenabled?language=objc -func (a_ Application) IsFullKeyboardAccessEnabled() bool { - rv := objc.Call[bool](a_, objc.Sel("isFullKeyboardAccessEnabled")) - 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) Delegate() ApplicationDelegateWrapper { - rv := objc.Call[ApplicationDelegateWrapper](a_, objc.Sel("delegate")) +// [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) 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) SetWindowsMenu(value IMenu) { + objc.Call[objc.Void](a_, objc.Sel("setWindowsMenu:"), objc.Ptr(value)) } -// The app delegate object. [Full Topic] +// [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:"), objc.Ptr(valueObject)) +// [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 } -// The object that provides the services the current app advertises in the Services menu of other apps. [Full Topic] +// The appearance associated with the app’s windows. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsapplication/1428467-servicesprovider?language=objc -func (a_ Application) ServicesProvider() objc.Object { - rv := objc.Call[objc.Object](a_, objc.Sel("servicesProvider")) +// [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 object that provides the services the current app advertises in the Services menu of other apps. [Full Topic] +// The appearance associated with the app’s windows. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsapplication/1428467-servicesprovider?language=objc -func (a_ Application) SetServicesProvider(value objc.IObject) { - objc.Call[objc.Void](a_, objc.Sel("setServicesProvider:"), value) +// [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:"), objc.Ptr(value)) } -// The layout direction of the user interface. [Full Topic] +// The window that currently receives keyboard events. [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/1428406-keywindow?language=objc +func (a_ Application) KeyWindow() Window { + rv := objc.Call[Window](a_, objc.Sel("keyWindow")) return rv } @@ -785,118 +768,149 @@ func (a_ Application) OrderedDocuments() []Document { return rv } -// The occlusion state of the app. [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/1428656-occlusionstate?language=objc -func (a_ Application) OcclusionState() ApplicationOcclusionState { - rv := objc.Call[ApplicationOcclusionState](a_, objc.Sel("occlusionState")) +// [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 } -// An array of the app’s window objects. [Full Topic] +// A Boolean value indicating whether the app is hidden. [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/1428416-hidden?language=objc +func (a_ Application) IsHidden() bool { + rv := objc.Call[bool](a_, objc.Sel("isHidden")) return rv } -// The help menu used by the app. [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/1428644-helpmenu?language=objc -func (a_ Application) HelpMenu() Menu { - rv := objc.Call[Menu](a_, objc.Sel("helpMenu")) +// [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 help menu used by the app. [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/1428644-helpmenu?language=objc -func (a_ Application) SetHelpMenu(value IMenu) { - objc.Call[objc.Void](a_, objc.Sel("setHelpMenu:"), objc.Ptr(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) } -// Returns the application instance, creating it if it doesn’t exist yet. [Full Topic] +// The app’s main menu bar. [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/1428634-mainmenu?language=objc +func (a_ Application) MainMenu() Menu { + rv := objc.Call[Menu](a_, objc.Sel("mainMenu")) return rv } -// Returns the application instance, creating it if it doesn’t exist yet. [Full Topic] +// The app’s main menu bar. [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/1428634-mainmenu?language=objc +func (a_ Application) SetMainMenu(value IMenu) { + objc.Call[objc.Void](a_, objc.Sel("setMainMenu:"), objc.Ptr(value)) } -// An array of window objects arranged according to their front-to-back ordering on the screen. [Full Topic] +// The modal window displayed by the app. [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/1428610-modalwindow?language=objc +func (a_ Application) ModalWindow() Window { + rv := objc.Call[Window](a_, objc.Sel("modalWindow")) return rv } -// The Window menu of the app. [Full Topic] +// The app’s Services menu. [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/1428608-servicesmenu?language=objc +func (a_ Application) ServicesMenu() Menu { + rv := objc.Call[Menu](a_, objc.Sel("servicesMenu")) return rv } -// The Window menu of the app. [Full Topic] +// The app’s Services menu. [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:"), objc.Ptr(value)) +// [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:"), objc.Ptr(value)) } -// The app’s Dock tile. [Full Topic] +// The object that provides the services the current app advertises in the Services menu of other apps. [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")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsapplication/1428467-servicesprovider?language=objc +func (a_ Application) ServicesProvider() objc.Object { + rv := objc.Call[objc.Object](a_, objc.Sel("servicesProvider")) return rv } -// A Boolean value indicating whether the main menu contains an item for customizing the contents of the Touch Bar. [Full Topic] +// The object that provides the services the current app advertises in the Services menu of other apps. [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")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsapplication/1428467-servicesprovider?language=objc +func (a_ Application) SetServicesProvider(value objc.IObject) { + objc.Call[objc.Void](a_, objc.Sel("setServicesProvider:"), value) +} + +// The help menu used by the app. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsapplication/1428644-helpmenu?language=objc +func (a_ Application) HelpMenu() Menu { + rv := objc.Call[Menu](a_, objc.Sel("helpMenu")) return rv } -// A Boolean value indicating whether the main menu contains an item for customizing the contents of the Touch Bar. [Full Topic] +// The help menu used by the app. [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/1428644-helpmenu?language=objc +func (a_ Application) SetHelpMenu(value IMenu) { + objc.Call[objc.Void](a_, objc.Sel("setHelpMenu:"), objc.Ptr(value)) } -// The app’s main menu bar. [Full Topic] +// The image used for the app’s icon. [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/1428744-applicationiconimage?language=objc +func (a_ Application) ApplicationIconImage() Image { + rv := objc.Call[Image](a_, objc.Sel("applicationIconImage")) return rv } -// The app’s main menu bar. [Full Topic] +// The image used for the app’s icon. [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:"), objc.Ptr(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:"), objc.Ptr(value)) } -// 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 delegate object. [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) +} + +// The app delegate object. [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:"), objc.Ptr(valueObject)) +} + +// The appearance that AppKit uses to draw the app’s interface. [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")) return rv } @@ -908,25 +922,34 @@ func (a_ Application) EnabledRemoteNotificationTypes() RemoteNotificationType { return rv } -// The appearance associated with the app’s windows. [Full Topic] +// The app’s main window. [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")) +// [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 } -// The appearance associated with the app’s windows. [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/2967170-appearance?language=objc -func (a_ Application) SetAppearance(value IAppearance) { - objc.Call[objc.Void](a_, objc.Sel("setAppearance:"), objc.Ptr(value)) +// [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 } -// [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/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/1428469-fullkeyboardaccessenabled?language=objc +func (a_ Application) IsFullKeyboardAccessEnabled() bool { + rv := objc.Call[bool](a_, objc.Sel("isFullKeyboardAccessEnabled")) + return rv +} + +// 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 } diff --git a/macos/appkit/application_delegate.gen.go b/macos/appkit/application_delegate.gen.go index 96bb7b73..173097a3 100644 --- a/macos/appkit/application_delegate.gen.go +++ b/macos/appkit/application_delegate.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package appkit @@ -12,173 +12,302 @@ import ( // [Full Topic]: https://developer.apple.com/documentation/appkit/nsapplicationdelegate?language=objc type PApplicationDelegate interface { // optional - ApplicationDidResignActive(notification foundation.Notification) - HasApplicationDidResignActive() bool - - // optional - ApplicationDidFinishLaunching(notification foundation.Notification) - HasApplicationDidFinishLaunching() bool + ApplicationWillResignActive(notification foundation.Notification) + HasApplicationWillResignActive() bool // optional - ApplicationShouldTerminate(sender Application) ApplicationTerminateReply - HasApplicationShouldTerminate() bool + ApplicationWillHide(notification foundation.Notification) + HasApplicationWillHide() bool // optional - ApplicationWillBecomeActive(notification foundation.Notification) - HasApplicationWillBecomeActive() bool + ApplicationDockMenu(sender Application) Menu + HasApplicationDockMenu() bool // optional - ApplicationDockMenu(sender Application) IMenu - HasApplicationDockMenu() bool + ApplicationDidChangeOcclusionState(notification foundation.Notification) + HasApplicationDidChangeOcclusionState() bool // optional - ApplicationWillFinishLaunching(notification foundation.Notification) - HasApplicationWillFinishLaunching() bool + ApplicationShouldTerminate(sender Application) ApplicationTerminateReply + HasApplicationShouldTerminate() bool // optional ApplicationShouldTerminateAfterLastWindowClosed(sender Application) bool HasApplicationShouldTerminateAfterLastWindowClosed() bool // optional - ApplicationProtectedDataWillBecomeUnavailable(notification foundation.Notification) - HasApplicationProtectedDataWillBecomeUnavailable() bool + ApplicationSupportsSecureRestorableState(app Application) bool + HasApplicationSupportsSecureRestorableState() bool // optional - ApplicationDidHide(notification foundation.Notification) - HasApplicationDidHide() bool + ApplicationDidReceiveRemoteNotification(application Application, userInfo map[string]objc.Object) + HasApplicationDidReceiveRemoteNotification() bool // optional - ApplicationWillResignActive(notification foundation.Notification) - HasApplicationWillResignActive() bool + ApplicationProtectedDataDidBecomeAvailable(notification foundation.Notification) + HasApplicationProtectedDataDidBecomeAvailable() bool // optional - ApplicationDidBecomeActive(notification foundation.Notification) - HasApplicationDidBecomeActive() bool + ApplicationShouldHandleReopenHasVisibleWindows(sender Application, flag bool) bool + HasApplicationShouldHandleReopenHasVisibleWindows() bool // optional - ApplicationProtectedDataDidBecomeAvailable(notification foundation.Notification) - HasApplicationProtectedDataDidBecomeAvailable() bool + ApplicationOpenURLs(application Application, urls []foundation.URL) + HasApplicationOpenURLs() bool // optional - ApplicationWillHide(notification foundation.Notification) - HasApplicationWillHide() bool + ApplicationOpenFile(sender Application, filename string) bool + HasApplicationOpenFile() bool // optional ApplicationWillUpdate(notification foundation.Notification) HasApplicationWillUpdate() bool // optional - ApplicationShouldOpenUntitledFile(sender Application) bool - HasApplicationShouldOpenUntitledFile() bool - - // optional - ApplicationSupportsSecureRestorableState(app Application) bool - HasApplicationSupportsSecureRestorableState() bool + ApplicationContinueUserActivityRestorationHandler(application Application, userActivity foundation.UserActivity, restorationHandler func(restorableObjects []UserActivityRestoringObject)) bool + HasApplicationContinueUserActivityRestorationHandler() bool // optional - ApplicationWillUnhide(notification foundation.Notification) - HasApplicationWillUnhide() bool + ApplicationWillEncodeRestorableState(app Application, coder foundation.Coder) + HasApplicationWillEncodeRestorableState() bool // optional - ApplicationOpenUntitledFile(sender Application) bool - HasApplicationOpenUntitledFile() bool + ApplicationDelegateHandlesKey(sender Application, key string) bool + HasApplicationDelegateHandlesKey() bool // optional ApplicationShouldAutomaticallyLocalizeKeyEquivalents(application Application) bool HasApplicationShouldAutomaticallyLocalizeKeyEquivalents() bool // optional - ApplicationDidDecodeRestorableState(app Application, coder foundation.Coder) - HasApplicationDidDecodeRestorableState() bool + ApplicationWillPresentError(application Application, error foundation.Error) foundation.Error + HasApplicationWillPresentError() bool // optional - ApplicationDidUpdate(notification foundation.Notification) - HasApplicationDidUpdate() bool + ApplicationWillTerminate(notification foundation.Notification) + HasApplicationWillTerminate() bool // optional - ApplicationDidChangeOcclusionState(notification foundation.Notification) - HasApplicationDidChangeOcclusionState() bool + ApplicationDidFailToContinueUserActivityWithTypeError(application Application, userActivityType string, error foundation.Error) + HasApplicationDidFailToContinueUserActivityWithTypeError() bool + + // optional + ApplicationWillContinueUserActivityWithType(application Application, userActivityType string) bool + HasApplicationWillContinueUserActivityWithType() bool + + // optional + ApplicationWillFinishLaunching(notification foundation.Notification) + HasApplicationWillFinishLaunching() bool + + // optional + ApplicationDidBecomeActive(notification foundation.Notification) + HasApplicationDidBecomeActive() bool + + // optional + ApplicationDidFailToRegisterForRemoteNotificationsWithError(application Application, error foundation.Error) + HasApplicationDidFailToRegisterForRemoteNotificationsWithError() bool + + // optional + ApplicationDidUpdate(notification foundation.Notification) + HasApplicationDidUpdate() bool // optional ApplicationDidChangeScreenParameters(notification foundation.Notification) HasApplicationDidChangeScreenParameters() bool // optional - ApplicationWillTerminate(notification foundation.Notification) - HasApplicationWillTerminate() bool + ApplicationPrintFilesWithSettingsShowPrintPanels(application Application, fileNames []string, printSettings map[PrintInfoAttributeKey]objc.Object, showPrintPanels bool) ApplicationPrintReply + HasApplicationPrintFilesWithSettingsShowPrintPanels() bool + + // optional + ApplicationHandlerForIntent(application Application, intent objc.Object) objc.Object + HasApplicationHandlerForIntent() bool + + // optional + ApplicationUserDidAcceptCloudKitShareWithMetadata(application Application, metadata objc.Object) + HasApplicationUserDidAcceptCloudKitShareWithMetadata() bool + + // optional + ApplicationDidDecodeRestorableState(app Application, coder foundation.Coder) + HasApplicationDidDecodeRestorableState() bool + + // optional + ApplicationDidUpdateUserActivity(application Application, userActivity foundation.UserActivity) + HasApplicationDidUpdateUserActivity() bool + + // optional + ApplicationDidResignActive(notification foundation.Notification) + HasApplicationDidResignActive() bool + + // optional + ApplicationDidRegisterForRemoteNotificationsWithDeviceToken(application Application, deviceToken []byte) + HasApplicationDidRegisterForRemoteNotificationsWithDeviceToken() bool + + // optional + ApplicationOpenFiles(sender Application, filenames []string) + HasApplicationOpenFiles() bool + + // optional + ApplicationProtectedDataWillBecomeUnavailable(notification foundation.Notification) + HasApplicationProtectedDataWillBecomeUnavailable() bool + + // optional + ApplicationOpenFileWithoutUI(sender objc.Object, filename string) bool + HasApplicationOpenFileWithoutUI() bool + + // optional + ApplicationOpenTempFile(sender Application, filename string) bool + HasApplicationOpenTempFile() bool + + // optional + ApplicationDidHide(notification foundation.Notification) + HasApplicationDidHide() bool + + // optional + ApplicationShouldOpenUntitledFile(sender Application) bool + HasApplicationShouldOpenUntitledFile() bool + + // optional + ApplicationWillBecomeActive(notification foundation.Notification) + HasApplicationWillBecomeActive() bool + + // optional + ApplicationDidFinishLaunching(notification foundation.Notification) + HasApplicationDidFinishLaunching() bool // optional ApplicationDidUnhide(notification foundation.Notification) HasApplicationDidUnhide() bool // optional - ApplicationShouldHandleReopenHasVisibleWindows(sender Application, flag bool) bool - HasApplicationShouldHandleReopenHasVisibleWindows() bool + ApplicationWillUnhide(notification foundation.Notification) + HasApplicationWillUnhide() bool + + // optional + ApplicationOpenUntitledFile(sender Application) bool + HasApplicationOpenUntitledFile() bool + + // optional + ApplicationPrintFile(sender Application, filename string) bool + HasApplicationPrintFile() bool } // A delegate implementation builder for the [PApplicationDelegate] protocol. type ApplicationDelegate struct { - _ApplicationDidResignActive func(notification foundation.Notification) - _ApplicationDidFinishLaunching func(notification foundation.Notification) - _ApplicationShouldTerminate func(sender Application) ApplicationTerminateReply - _ApplicationWillBecomeActive func(notification foundation.Notification) - _ApplicationDockMenu func(sender Application) IMenu - _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 + _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 } -func (di *ApplicationDelegate) HasApplicationDidResignActive() bool { - return di._ApplicationDidResignActive != nil +func (di *ApplicationDelegate) HasApplicationWillResignActive() bool { + return di._ApplicationWillResignActive != nil } -// Tells the delegate that the app is no longer active and doesn’t have focus. [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/1428636-applicationdidresignactive?language=objc -func (di *ApplicationDelegate) SetApplicationDidResignActive(f func(notification foundation.Notification)) { - di._ApplicationDidResignActive = 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 is no longer active and doesn’t have focus. [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/1428636-applicationdidresignactive?language=objc -func (di *ApplicationDelegate) ApplicationDidResignActive(notification foundation.Notification) { - di._ApplicationDidResignActive(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) HasApplicationDidFinishLaunching() bool { - return di._ApplicationDidFinishLaunching != nil +func (di *ApplicationDelegate) HasApplicationWillHide() bool { + return di._ApplicationWillHide != nil } -// 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 be hidden. [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 +// [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 } -// 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 be hidden. [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) +// [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) HasApplicationDockMenu() bool { + return di._ApplicationDockMenu != nil +} + +// Returns the app’s dock menu. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsapplicationdelegate/1428564-applicationdockmenu?language=objc +func (di *ApplicationDelegate) SetApplicationDockMenu(f func(sender Application) Menu) { + di._ApplicationDockMenu = f +} + +// Returns the app’s dock menu. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsapplicationdelegate/1428564-applicationdockmenu?language=objc +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 @@ -197,73 +326,498 @@ func (di *ApplicationDelegate) SetApplicationShouldTerminate(f func(sender Appli func (di *ApplicationDelegate) ApplicationShouldTerminate(sender Application) ApplicationTerminateReply { return di._ApplicationShouldTerminate(sender) } -func (di *ApplicationDelegate) HasApplicationWillBecomeActive() bool { - return di._ApplicationWillBecomeActive != nil +func (di *ApplicationDelegate) HasApplicationShouldTerminateAfterLastWindowClosed() bool { + return di._ApplicationShouldTerminateAfterLastWindowClosed != nil } -// Tells the delegate that the app is about to become active. [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/1428699-applicationwillbecomeactive?language=objc -func (di *ApplicationDelegate) SetApplicationWillBecomeActive(f func(notification foundation.Notification)) { - di._ApplicationWillBecomeActive = f +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsapplicationdelegate/1428381-applicationshouldterminateafterl?language=objc +func (di *ApplicationDelegate) SetApplicationShouldTerminateAfterLastWindowClosed(f func(sender Application) bool) { + di._ApplicationShouldTerminateAfterLastWindowClosed = f } -// Tells the delegate that the app is about to become active. [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/1428699-applicationwillbecomeactive?language=objc -func (di *ApplicationDelegate) ApplicationWillBecomeActive(notification foundation.Notification) { - di._ApplicationWillBecomeActive(notification) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsapplicationdelegate/1428381-applicationshouldterminateafterl?language=objc +func (di *ApplicationDelegate) ApplicationShouldTerminateAfterLastWindowClosed(sender Application) bool { + return di._ApplicationShouldTerminateAfterLastWindowClosed(sender) } -func (di *ApplicationDelegate) HasApplicationDockMenu() bool { - return di._ApplicationDockMenu != nil +func (di *ApplicationDelegate) HasApplicationSupportsSecureRestorableState() bool { + return di._ApplicationSupportsSecureRestorableState != nil +} + +// Returns a Boolean value that indicates if the app supports secure state restoration. [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 +} + +// Returns a Boolean value that indicates if the app supports secure state restoration. [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) +} +func (di *ApplicationDelegate) HasApplicationWillContinueUserActivityWithType() bool { + return di._ApplicationWillContinueUserActivityWithType != nil +} + +// Returns a Boolean value that indicates if the app can continue the specified activity. [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 +} + +// Returns a Boolean value that indicates if the app can continue the specified activity. [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) +} +func (di *ApplicationDelegate) HasApplicationWillFinishLaunching() bool { + return di._ApplicationWillFinishLaunching != nil +} + +// Tells the delegate that the app’s initialization is about to complete. [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 +} + +// Tells the delegate that the app’s initialization is about to complete. [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) +} +func (di *ApplicationDelegate) HasApplicationDidBecomeActive() bool { + return di._ApplicationDidBecomeActive != nil +} + +// 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 (di *ApplicationDelegate) SetApplicationDidBecomeActive(f func(notification foundation.Notification)) { + di._ApplicationDidBecomeActive = f +} + +// 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 (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 } -// Returns the app’s dock menu. [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/1428564-applicationdockmenu?language=objc -func (di *ApplicationDelegate) SetApplicationDockMenu(f func(sender Application) IMenu) { - di._ApplicationDockMenu = 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 } -// Returns the app’s dock menu. [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/1428564-applicationdockmenu?language=objc -func (di *ApplicationDelegate) ApplicationDockMenu(sender Application) IMenu { - return di._ApplicationDockMenu(sender) +// [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) HasApplicationWillFinishLaunching() bool { - return di._ApplicationWillFinishLaunching != nil +func (di *ApplicationDelegate) HasApplicationDidRegisterForRemoteNotificationsWithDeviceToken() bool { + return di._ApplicationDidRegisterForRemoteNotificationsWithDeviceToken != nil } -// Tells the delegate that the app’s initialization is about to complete. [Full Topic] +// Tells the delegate that the app registered for Apple Push Services. [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/1428766-application?language=objc +func (di *ApplicationDelegate) SetApplicationDidRegisterForRemoteNotificationsWithDeviceToken(f func(application Application, deviceToken []byte)) { + di._ApplicationDidRegisterForRemoteNotificationsWithDeviceToken = f } -// Tells the delegate that the app’s initialization is about to complete. [Full Topic] +// Tells the delegate that the app registered for Apple Push Services. [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/1428766-application?language=objc +func (di *ApplicationDelegate) ApplicationDidRegisterForRemoteNotificationsWithDeviceToken(application Application, deviceToken []byte) { + di._ApplicationDidRegisterForRemoteNotificationsWithDeviceToken(application, deviceToken) } -func (di *ApplicationDelegate) HasApplicationShouldTerminateAfterLastWindowClosed() bool { - return di._ApplicationShouldTerminateAfterLastWindowClosed != nil +func (di *ApplicationDelegate) HasApplicationOpenFiles() bool { + return di._ApplicationOpenFiles != nil } -// Returns a Boolean value that indicates if the app terminates once the last window closes. [Full Topic] +// Tells the delegate to open the specified files. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsapplicationdelegate/1428381-applicationshouldterminateafterl?language=objc -func (di *ApplicationDelegate) SetApplicationShouldTerminateAfterLastWindowClosed(f func(sender Application) bool) { - di._ApplicationShouldTerminateAfterLastWindowClosed = f +// [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 } -// Returns a Boolean value that indicates if the app terminates once the last window closes. [Full Topic] +// Tells the delegate to open the specified files. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsapplicationdelegate/1428381-applicationshouldterminateafterl?language=objc -func (di *ApplicationDelegate) ApplicationShouldTerminateAfterLastWindowClosed(sender Application) bool { - return di._ApplicationShouldTerminateAfterLastWindowClosed(sender) +// [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 @@ -282,141 +836,124 @@ func (di *ApplicationDelegate) SetApplicationProtectedDataWillBecomeUnavailable( func (di *ApplicationDelegate) ApplicationProtectedDataWillBecomeUnavailable(notification foundation.Notification) { di._ApplicationProtectedDataWillBecomeUnavailable(notification) } -func (di *ApplicationDelegate) HasApplicationDidHide() bool { - return di._ApplicationDidHide != nil -} - -// Tells the delegate that the app is now hidden. [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 -} - -// Tells the delegate that the app is now hidden. [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) -} -func (di *ApplicationDelegate) HasApplicationWillResignActive() bool { - return di._ApplicationWillResignActive != nil +func (di *ApplicationDelegate) HasApplicationOpenFileWithoutUI() bool { + return di._ApplicationOpenFileWithoutUI != nil } -// Tells the delegate that the app is about to become inactive and will lose focus. [Full Topic] +// Returns a Boolean value that indicates if the app opens the specified file without showing its user interface. [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/1428459-application?language=objc +func (di *ApplicationDelegate) SetApplicationOpenFileWithoutUI(f func(sender objc.Object, filename string) bool) { + di._ApplicationOpenFileWithoutUI = f } -// Tells the delegate that the app is about to become inactive and will lose focus. [Full Topic] +// Returns a Boolean value that indicates if the app opens the specified file without showing its user interface. [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/1428459-application?language=objc +func (di *ApplicationDelegate) ApplicationOpenFileWithoutUI(sender objc.Object, filename string) bool { + return di._ApplicationOpenFileWithoutUI(sender, filename) } -func (di *ApplicationDelegate) HasApplicationDidBecomeActive() bool { - return di._ApplicationDidBecomeActive != nil +func (di *ApplicationDelegate) HasApplicationOpenTempFile() bool { + return di._ApplicationOpenTempFile != nil } -// Tells the delegate that the app is now active. [Full Topic] +// Returns a Boolean value that indicates if the app opens the specified temporary file. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsapplicationdelegate/1428577-applicationdidbecomeactive?language=objc -func (di *ApplicationDelegate) SetApplicationDidBecomeActive(f func(notification foundation.Notification)) { - di._ApplicationDidBecomeActive = f +// [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 } -// Tells the delegate that the app is now active. [Full Topic] +// Returns a Boolean value that indicates if the app opens the specified temporary file. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsapplicationdelegate/1428577-applicationdidbecomeactive?language=objc -func (di *ApplicationDelegate) ApplicationDidBecomeActive(notification foundation.Notification) { - di._ApplicationDidBecomeActive(notification) +// [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) } -func (di *ApplicationDelegate) HasApplicationProtectedDataDidBecomeAvailable() bool { - return di._ApplicationProtectedDataDidBecomeAvailable != nil +func (di *ApplicationDelegate) HasApplicationDidHide() bool { + return di._ApplicationDidHide != nil } -// Tells the delegate that protected data is now available. [Full Topic] +// Tells the delegate that the app is now hidden. [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 +// [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 } -// Tells the delegate that protected data is now available. [Full Topic] +// Tells the delegate that the app is now hidden. [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) +// [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) HasApplicationWillHide() bool { - return di._ApplicationWillHide != nil +func (di *ApplicationDelegate) HasApplicationShouldOpenUntitledFile() bool { + return di._ApplicationShouldOpenUntitledFile != nil } -// Tells the delegate that the app is about to be hidden. [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/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/1428444-applicationshouldopenuntitledfil?language=objc +func (di *ApplicationDelegate) SetApplicationShouldOpenUntitledFile(f func(sender Application) bool) { + di._ApplicationShouldOpenUntitledFile = f } -// Tells the delegate that the app is about to be hidden. [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/1428478-applicationwillhide?language=objc -func (di *ApplicationDelegate) ApplicationWillHide(notification foundation.Notification) { - di._ApplicationWillHide(notification) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsapplicationdelegate/1428444-applicationshouldopenuntitledfil?language=objc +func (di *ApplicationDelegate) ApplicationShouldOpenUntitledFile(sender Application) bool { + return di._ApplicationShouldOpenUntitledFile(sender) } -func (di *ApplicationDelegate) HasApplicationWillUpdate() bool { - return di._ApplicationWillUpdate != nil +func (di *ApplicationDelegate) HasApplicationWillBecomeActive() bool { + return di._ApplicationWillBecomeActive != nil } -// Tells the delegate that the app is about to update its windows. [Full Topic] +// Tells the delegate that the app is about to become active. [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 +// [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 update its windows. [Full Topic] +// Tells the delegate that the app is about to become active. [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) +// [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) HasApplicationShouldOpenUntitledFile() bool { - return di._ApplicationShouldOpenUntitledFile != nil +func (di *ApplicationDelegate) HasApplicationDidFinishLaunching() bool { + return di._ApplicationDidFinishLaunching != nil } -// Returns a Boolean value that indicates if the app can open an untitled file. [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/1428444-applicationshouldopenuntitledfil?language=objc -func (di *ApplicationDelegate) SetApplicationShouldOpenUntitledFile(f func(sender Application) bool) { - di._ApplicationShouldOpenUntitledFile = 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 } -// Returns a Boolean value that indicates if the app can open an untitled file. [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/1428444-applicationshouldopenuntitledfil?language=objc -func (di *ApplicationDelegate) ApplicationShouldOpenUntitledFile(sender Application) bool { - return di._ApplicationShouldOpenUntitledFile(sender) +// [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) HasApplicationSupportsSecureRestorableState() bool { - return di._ApplicationSupportsSecureRestorableState != nil +func (di *ApplicationDelegate) HasApplicationDidUnhide() bool { + return di._ApplicationDidUnhide != nil } -// Returns a Boolean value that indicates if the app supports secure state restoration. [Full Topic] +// Tells the delegate that the app is now visible. [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/1428755-applicationdidunhide?language=objc +func (di *ApplicationDelegate) SetApplicationDidUnhide(f func(notification foundation.Notification)) { + di._ApplicationDidUnhide = f } -// Returns a Boolean value that indicates if the app supports secure state restoration. [Full Topic] +// Tells the delegate that the app is now visible. [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) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsapplicationdelegate/1428755-applicationdidunhide?language=objc +func (di *ApplicationDelegate) ApplicationDidUnhide(notification foundation.Notification) { + di._ApplicationDidUnhide(notification) } func (di *ApplicationDelegate) HasApplicationWillUnhide() bool { return di._ApplicationWillUnhide != nil @@ -452,438 +989,541 @@ func (di *ApplicationDelegate) SetApplicationOpenUntitledFile(f func(sender Appl func (di *ApplicationDelegate) ApplicationOpenUntitledFile(sender Application) bool { return di._ApplicationOpenUntitledFile(sender) } -func (di *ApplicationDelegate) HasApplicationShouldAutomaticallyLocalizeKeyEquivalents() bool { - return di._ApplicationShouldAutomaticallyLocalizeKeyEquivalents != nil +func (di *ApplicationDelegate) HasApplicationPrintFile() bool { + return di._ApplicationPrintFile != nil } -// Returns a Boolean value that tells the system whether to remap menu shortcuts to support localized keyboards. [Full Topic] +// Returns a Boolean value that indicates if the app prints the specified file in its entirety. [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 +// [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 } -// Returns a Boolean value that tells the system whether to remap menu shortcuts to support localized keyboards. [Full Topic] +// Returns a Boolean value that indicates if the app prints the specified file in its entirety. [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) +// [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) } -func (di *ApplicationDelegate) HasApplicationDidDecodeRestorableState() bool { - return di._ApplicationDidDecodeRestorableState != nil + +// ensure impl type implements protocol interface +var _ PApplicationDelegate = (*ApplicationDelegateObject)(nil) + +// A concrete type for the [PApplicationDelegate] protocol. +type ApplicationDelegateObject struct { + objc.Object } -// 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 +func (a_ ApplicationDelegateObject) HasApplicationWillResignActive() bool { + return a_.RespondsToSelector(objc.Sel("applicationWillResignActive:")) } -// Tells the delegate when the app finished decoding its restorable state. [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/1428693-application?language=objc -func (di *ApplicationDelegate) ApplicationDidDecodeRestorableState(app Application, coder foundation.Coder) { - di._ApplicationDidDecodeRestorableState(app, coder) +// [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:"), objc.Ptr(notification)) } -func (di *ApplicationDelegate) HasApplicationDidUpdate() bool { - return di._ApplicationDidUpdate != nil + +func (a_ ApplicationDelegateObject) HasApplicationWillHide() bool { + return a_.RespondsToSelector(objc.Sel("applicationWillHide:")) } -// Tells the delegate that the app’s windows did update. [Full Topic] +// Tells the delegate that the app is about to be hidden. [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 +// [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:"), objc.Ptr(notification)) } -// Tells the delegate that the app’s windows did update. [Full Topic] +func (a_ ApplicationDelegateObject) HasApplicationDockMenu() bool { + return a_.RespondsToSelector(objc.Sel("applicationDockMenu:")) +} + +// Returns the app’s dock menu. [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) +// [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:"), objc.Ptr(sender)) + return rv } -func (di *ApplicationDelegate) HasApplicationDidChangeOcclusionState() bool { - return di._ApplicationDidChangeOcclusionState != nil + +func (a_ ApplicationDelegateObject) HasApplicationDidChangeOcclusionState() bool { + return a_.RespondsToSelector(objc.Sel("applicationDidChangeOcclusionState:")) } // 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 +func (a_ ApplicationDelegateObject) ApplicationDidChangeOcclusionState(notification foundation.Notification) { + objc.Call[objc.Void](a_, objc.Sel("applicationDidChangeOcclusionState:"), objc.Ptr(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:"), objc.Ptr(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:"), objc.Ptr(sender)) + return rv +} + +func (a_ ApplicationDelegateObject) HasApplicationSupportsSecureRestorableState() bool { + return a_.RespondsToSelector(objc.Sel("applicationSupportsSecureRestorableState:")) +} + +// Returns a Boolean value that indicates if the app supports secure state restoration. [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:"), objc.Ptr(app)) + return rv } -// Tells the delegate about changes to the app’s occlusion state. [Full Topic] +func (a_ ApplicationDelegateObject) HasApplicationDidReceiveRemoteNotification() bool { + return a_.RespondsToSelector(objc.Sel("application:didReceiveRemoteNotification:")) +} + +// Tells the delegate when the app receives a remote notification. [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) +// [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:"), objc.Ptr(application), userInfo) } -func (di *ApplicationDelegate) HasApplicationDidChangeScreenParameters() bool { - return di._ApplicationDidChangeScreenParameters != nil + +func (a_ ApplicationDelegateObject) HasApplicationProtectedDataDidBecomeAvailable() bool { + return a_.RespondsToSelector(objc.Sel("applicationProtectedDataDidBecomeAvailable:")) } -// Tells the delegate about changes to the configuration of any attached displays. [Full Topic] +// Tells the delegate that protected data is now available. [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 +// [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:"), objc.Ptr(notification)) } -// Tells the delegate about changes to the configuration of any attached displays. [Full Topic] +func (a_ ApplicationDelegateObject) HasApplicationShouldHandleReopenHasVisibleWindows() bool { + return a_.RespondsToSelector(objc.Sel("applicationShouldHandleReopen:hasVisibleWindows:")) +} + +// Returns a Boolean value that indicates if the app responds to reopen AppleEvents. [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) +// [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:"), objc.Ptr(sender), flag) + return rv } -func (di *ApplicationDelegate) HasApplicationWillTerminate() bool { - return di._ApplicationWillTerminate != nil + +func (a_ ApplicationDelegateObject) HasApplicationOpenURLs() bool { + return a_.RespondsToSelector(objc.Sel("application:openURLs:")) } -// Tells the delegate that the app is about to terminate. [Full Topic] +// Tells the delegate to open the resource at the specified URL. [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 +// [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:"), objc.Ptr(application), urls) } -// Tells the delegate that the app is about to terminate. [Full Topic] +func (a_ ApplicationDelegateObject) HasApplicationOpenFile() bool { + return a_.RespondsToSelector(objc.Sel("application:openFile:")) +} + +// Returns a Boolean value that indicates if the app opens the specified file. [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) +// [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:"), objc.Ptr(sender), filename) + return rv } -func (di *ApplicationDelegate) HasApplicationDidUnhide() bool { - return di._ApplicationDidUnhide != nil + +func (a_ ApplicationDelegateObject) HasApplicationWillUpdate() bool { + return a_.RespondsToSelector(objc.Sel("applicationWillUpdate:")) } -// Tells the delegate that the app is now visible. [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/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/1428774-applicationwillupdate?language=objc +func (a_ ApplicationDelegateObject) ApplicationWillUpdate(notification foundation.Notification) { + objc.Call[objc.Void](a_, objc.Sel("applicationWillUpdate:"), objc.Ptr(notification)) } -// Tells the delegate that the app is now visible. [Full Topic] +func (a_ ApplicationDelegateObject) HasApplicationContinueUserActivityRestorationHandler() bool { + return a_.RespondsToSelector(objc.Sel("application:continueUserActivity:restorationHandler:")) +} + +// 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/1428755-applicationdidunhide?language=objc -func (di *ApplicationDelegate) ApplicationDidUnhide(notification foundation.Notification) { - di._ApplicationDidUnhide(notification) +// [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:"), objc.Ptr(application), objc.Ptr(userActivity), restorationHandler) + return rv } -func (di *ApplicationDelegate) HasApplicationShouldHandleReopenHasVisibleWindows() bool { - return di._ApplicationShouldHandleReopenHasVisibleWindows != nil + +func (a_ ApplicationDelegateObject) HasApplicationWillEncodeRestorableState() bool { + return a_.RespondsToSelector(objc.Sel("application:willEncodeRestorableState:")) } -// Returns a Boolean value that indicates if the app responds to reopen AppleEvents. [Full Topic] +// Tells the delegate that the app is about to encode its restorable state. [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 +// [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:"), objc.Ptr(app), objc.Ptr(coder)) } -// 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 (a_ ApplicationDelegateObject) HasApplicationDelegateHandlesKey() bool { + return a_.RespondsToSelector(objc.Sel("application:delegateHandlesKey:")) } -// A concrete type wrapper for the [PApplicationDelegate] protocol. -type ApplicationDelegateWrapper struct { - objc.Object +// 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:"), objc.Ptr(sender), key) + return rv } -func (a_ ApplicationDelegateWrapper) HasApplicationDidResignActive() bool { - return a_.RespondsToSelector(objc.Sel("applicationDidResignActive:")) +func (a_ ApplicationDelegateObject) HasApplicationShouldAutomaticallyLocalizeKeyEquivalents() bool { + return a_.RespondsToSelector(objc.Sel("applicationShouldAutomaticallyLocalizeKeyEquivalents:")) } -// Tells the delegate that the app is no longer active and doesn’t have focus. [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/1428636-applicationdidresignactive?language=objc -func (a_ ApplicationDelegateWrapper) ApplicationDidResignActive(notification foundation.INotification) { - objc.Call[objc.Void](a_, objc.Sel("applicationDidResignActive:"), objc.Ptr(notification)) +// [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:"), objc.Ptr(application)) + return rv } -func (a_ ApplicationDelegateWrapper) HasApplicationDidFinishLaunching() bool { - return a_.RespondsToSelector(objc.Sel("applicationDidFinishLaunching:")) +func (a_ ApplicationDelegateObject) HasApplicationWillPresentError() bool { + return a_.RespondsToSelector(objc.Sel("application:willPresentError:")) } -// Tells the delegate that the app’s initialization is complete but it hasn’t received its first event. [Full Topic] +// Returns an error for the app to display to the user. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsapplicationdelegate/1428385-applicationdidfinishlaunching?language=objc -func (a_ ApplicationDelegateWrapper) ApplicationDidFinishLaunching(notification foundation.INotification) { - objc.Call[objc.Void](a_, objc.Sel("applicationDidFinishLaunching:"), objc.Ptr(notification)) +// [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:"), objc.Ptr(application), objc.Ptr(error)) + return rv } -func (a_ ApplicationDelegateWrapper) HasApplicationShouldTerminate() bool { - return a_.RespondsToSelector(objc.Sel("applicationShouldTerminate:")) +func (a_ ApplicationDelegateObject) HasApplicationWillTerminate() bool { + return a_.RespondsToSelector(objc.Sel("applicationWillTerminate:")) } -// Returns a value that indicates if the app should terminate. [Full Topic] +// Tells the delegate that the app is about to terminate. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsapplicationdelegate/1428642-applicationshouldterminate?language=objc -func (a_ ApplicationDelegateWrapper) ApplicationShouldTerminate(sender IApplication) ApplicationTerminateReply { - rv := objc.Call[ApplicationTerminateReply](a_, objc.Sel("applicationShouldTerminate:"), objc.Ptr(sender)) - return rv +// [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:"), objc.Ptr(notification)) } -func (a_ ApplicationDelegateWrapper) HasApplicationWillBecomeActive() bool { - return a_.RespondsToSelector(objc.Sel("applicationWillBecomeActive:")) +func (a_ ApplicationDelegateObject) HasApplicationDidFailToContinueUserActivityWithTypeError() bool { + return a_.RespondsToSelector(objc.Sel("application:didFailToContinueUserActivityWithType:error:")) } -// Tells the delegate that the app is about to become active. [Full Topic] +// Tells the delegate that the app couldn’t continue the specified activity. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsapplicationdelegate/1428699-applicationwillbecomeactive?language=objc -func (a_ ApplicationDelegateWrapper) ApplicationWillBecomeActive(notification foundation.INotification) { - objc.Call[objc.Void](a_, objc.Sel("applicationWillBecomeActive:"), objc.Ptr(notification)) +// [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:"), objc.Ptr(application), userActivityType, objc.Ptr(error)) } -func (a_ ApplicationDelegateWrapper) HasApplicationDockMenu() bool { - return a_.RespondsToSelector(objc.Sel("applicationDockMenu:")) +func (a_ ApplicationDelegateObject) HasApplicationWillContinueUserActivityWithType() bool { + return a_.RespondsToSelector(objc.Sel("application:willContinueUserActivityWithType:")) } -// Returns the app’s dock menu. [Full Topic] +// Returns a Boolean value that indicates if the app can continue the specified activity. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsapplicationdelegate/1428564-applicationdockmenu?language=objc -func (a_ ApplicationDelegateWrapper) ApplicationDockMenu(sender IApplication) Menu { - rv := objc.Call[Menu](a_, objc.Sel("applicationDockMenu:"), objc.Ptr(sender)) +// [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:"), objc.Ptr(application), userActivityType) return rv } -func (a_ ApplicationDelegateWrapper) HasApplicationWillFinishLaunching() bool { +func (a_ ApplicationDelegateObject) HasApplicationWillFinishLaunching() bool { return a_.RespondsToSelector(objc.Sel("applicationWillFinishLaunching:")) } // Tells the delegate that the app’s initialization is about to complete. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/appkit/nsapplicationdelegate/1428623-applicationwillfinishlaunching?language=objc -func (a_ ApplicationDelegateWrapper) ApplicationWillFinishLaunching(notification foundation.INotification) { +func (a_ ApplicationDelegateObject) ApplicationWillFinishLaunching(notification foundation.Notification) { objc.Call[objc.Void](a_, objc.Sel("applicationWillFinishLaunching:"), objc.Ptr(notification)) } -func (a_ ApplicationDelegateWrapper) HasApplicationShouldTerminateAfterLastWindowClosed() bool { - return a_.RespondsToSelector(objc.Sel("applicationShouldTerminateAfterLastWindowClosed:")) +func (a_ ApplicationDelegateObject) HasApplicationDidBecomeActive() bool { + return a_.RespondsToSelector(objc.Sel("applicationDidBecomeActive:")) } -// Returns a Boolean value that indicates if the app terminates once the last window closes. [Full Topic] +// Tells the delegate that the app is now active. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsapplicationdelegate/1428381-applicationshouldterminateafterl?language=objc -func (a_ ApplicationDelegateWrapper) ApplicationShouldTerminateAfterLastWindowClosed(sender IApplication) bool { - rv := objc.Call[bool](a_, objc.Sel("applicationShouldTerminateAfterLastWindowClosed:"), objc.Ptr(sender)) - 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:"), objc.Ptr(notification)) } -func (a_ ApplicationDelegateWrapper) HasApplicationProtectedDataWillBecomeUnavailable() bool { - return a_.RespondsToSelector(objc.Sel("applicationProtectedDataWillBecomeUnavailable:")) +func (a_ ApplicationDelegateObject) HasApplicationDidFailToRegisterForRemoteNotificationsWithError() bool { + return a_.RespondsToSelector(objc.Sel("application:didFailToRegisterForRemoteNotificationsWithError:")) } -// Tells the delegate that protected data is about to become unavailable. [Full Topic] +// 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/3752994-applicationprotecteddatawillbeco?language=objc -func (a_ ApplicationDelegateWrapper) ApplicationProtectedDataWillBecomeUnavailable(notification foundation.INotification) { - objc.Call[objc.Void](a_, objc.Sel("applicationProtectedDataWillBecomeUnavailable:"), objc.Ptr(notification)) +// [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:"), objc.Ptr(application), objc.Ptr(error)) } -func (a_ ApplicationDelegateWrapper) 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_ ApplicationDelegateWrapper) ApplicationDidHide(notification foundation.INotification) { - objc.Call[objc.Void](a_, objc.Sel("applicationDidHide:"), objc.Ptr(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:"), objc.Ptr(notification)) } -func (a_ ApplicationDelegateWrapper) HasApplicationWillResignActive() bool { - return a_.RespondsToSelector(objc.Sel("applicationWillResignActive:")) +func (a_ ApplicationDelegateObject) HasApplicationDidChangeScreenParameters() bool { + return a_.RespondsToSelector(objc.Sel("applicationDidChangeScreenParameters:")) } -// Tells the delegate that the app is about to become inactive and will lose focus. [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/1428539-applicationwillresignactive?language=objc -func (a_ ApplicationDelegateWrapper) ApplicationWillResignActive(notification foundation.INotification) { - objc.Call[objc.Void](a_, objc.Sel("applicationWillResignActive:"), objc.Ptr(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:"), objc.Ptr(notification)) } -func (a_ ApplicationDelegateWrapper) HasApplicationDidBecomeActive() bool { - return a_.RespondsToSelector(objc.Sel("applicationDidBecomeActive:")) +func (a_ ApplicationDelegateObject) HasApplicationPrintFilesWithSettingsShowPrintPanels() bool { + return a_.RespondsToSelector(objc.Sel("application:printFiles:withSettings:showPrintPanels:")) } -// Tells the delegate that the app is now active. [Full Topic] +// Returns a value that indicates if the app prints the specified files. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsapplicationdelegate/1428577-applicationdidbecomeactive?language=objc -func (a_ ApplicationDelegateWrapper) ApplicationDidBecomeActive(notification foundation.INotification) { - objc.Call[objc.Void](a_, objc.Sel("applicationDidBecomeActive:"), objc.Ptr(notification)) +// [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:"), objc.Ptr(application), fileNames, printSettings, showPrintPanels) + return rv } -func (a_ ApplicationDelegateWrapper) HasApplicationProtectedDataDidBecomeAvailable() bool { - return a_.RespondsToSelector(objc.Sel("applicationProtectedDataDidBecomeAvailable:")) +func (a_ ApplicationDelegateObject) HasApplicationHandlerForIntent() bool { + return a_.RespondsToSelector(objc.Sel("application:handlerForIntent:")) } -// Tells the delegate that protected data is now available. [Full Topic] +// Returns an intent handler that’s capable of handling the specified intent. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsapplicationdelegate/3752993-applicationprotecteddatadidbecom?language=objc -func (a_ ApplicationDelegateWrapper) ApplicationProtectedDataDidBecomeAvailable(notification foundation.INotification) { - objc.Call[objc.Void](a_, objc.Sel("applicationProtectedDataDidBecomeAvailable:"), objc.Ptr(notification)) +// [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:"), objc.Ptr(application), objc.Ptr(intent)) + return rv } -func (a_ ApplicationDelegateWrapper) HasApplicationWillHide() bool { - return a_.RespondsToSelector(objc.Sel("applicationWillHide:")) +func (a_ ApplicationDelegateObject) HasApplicationUserDidAcceptCloudKitShareWithMetadata() bool { + return a_.RespondsToSelector(objc.Sel("application:userDidAcceptCloudKitShareWithMetadata:")) } -// Tells the delegate that the app is about to be hidden. [Full Topic] +// Tells the delegate when the user accepts a CloudKit sharing invitation. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsapplicationdelegate/1428478-applicationwillhide?language=objc -func (a_ ApplicationDelegateWrapper) ApplicationWillHide(notification foundation.INotification) { - objc.Call[objc.Void](a_, objc.Sel("applicationWillHide:"), objc.Ptr(notification)) +// [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:"), objc.Ptr(application), objc.Ptr(metadata)) } -func (a_ ApplicationDelegateWrapper) HasApplicationWillUpdate() bool { - return a_.RespondsToSelector(objc.Sel("applicationWillUpdate:")) +func (a_ ApplicationDelegateObject) HasApplicationDidDecodeRestorableState() bool { + return a_.RespondsToSelector(objc.Sel("application:didDecodeRestorableState:")) } -// Tells the delegate that the app is about to update its windows. [Full Topic] +// Tells the delegate when the app finished decoding its restorable state. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsapplicationdelegate/1428774-applicationwillupdate?language=objc -func (a_ ApplicationDelegateWrapper) ApplicationWillUpdate(notification foundation.INotification) { - objc.Call[objc.Void](a_, objc.Sel("applicationWillUpdate:"), objc.Ptr(notification)) +// [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:"), objc.Ptr(app), objc.Ptr(coder)) } -func (a_ ApplicationDelegateWrapper) HasApplicationShouldOpenUntitledFile() bool { - return a_.RespondsToSelector(objc.Sel("applicationShouldOpenUntitledFile:")) +func (a_ ApplicationDelegateObject) HasApplicationDidUpdateUserActivity() bool { + return a_.RespondsToSelector(objc.Sel("application:didUpdateUserActivity:")) } -// Returns a Boolean value that indicates if the app can open an untitled file. [Full Topic] +// Tells the delegate that there are changes to the specified activity. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsapplicationdelegate/1428444-applicationshouldopenuntitledfil?language=objc -func (a_ ApplicationDelegateWrapper) ApplicationShouldOpenUntitledFile(sender IApplication) bool { - rv := objc.Call[bool](a_, objc.Sel("applicationShouldOpenUntitledFile:"), objc.Ptr(sender)) - return rv +// [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:"), objc.Ptr(application), objc.Ptr(userActivity)) } -func (a_ ApplicationDelegateWrapper) HasApplicationSupportsSecureRestorableState() bool { - return a_.RespondsToSelector(objc.Sel("applicationSupportsSecureRestorableState:")) +func (a_ ApplicationDelegateObject) HasApplicationDidResignActive() bool { + return a_.RespondsToSelector(objc.Sel("applicationDidResignActive:")) } -// Returns a Boolean value that indicates if the app supports secure state restoration. [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/3762521-applicationsupportssecurerestora?language=objc -func (a_ ApplicationDelegateWrapper) ApplicationSupportsSecureRestorableState(app IApplication) bool { - rv := objc.Call[bool](a_, objc.Sel("applicationSupportsSecureRestorableState:"), objc.Ptr(app)) - 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:"), objc.Ptr(notification)) } -func (a_ ApplicationDelegateWrapper) HasApplicationWillUnhide() bool { - return a_.RespondsToSelector(objc.Sel("applicationWillUnhide:")) +func (a_ ApplicationDelegateObject) HasApplicationDidRegisterForRemoteNotificationsWithDeviceToken() bool { + return a_.RespondsToSelector(objc.Sel("application:didRegisterForRemoteNotificationsWithDeviceToken:")) } -// Tells the delegate that the app is about to become visible. [Full Topic] +// Tells the delegate that the app registered for Apple Push Services. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsapplicationdelegate/1428585-applicationwillunhide?language=objc -func (a_ ApplicationDelegateWrapper) ApplicationWillUnhide(notification foundation.INotification) { - objc.Call[objc.Void](a_, objc.Sel("applicationWillUnhide:"), objc.Ptr(notification)) +// [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:"), objc.Ptr(application), deviceToken) } -func (a_ ApplicationDelegateWrapper) HasApplicationOpenUntitledFile() bool { - return a_.RespondsToSelector(objc.Sel("applicationOpenUntitledFile:")) +func (a_ ApplicationDelegateObject) HasApplicationOpenFiles() bool { + return a_.RespondsToSelector(objc.Sel("application:openFiles:")) } -// Returns a Boolean value that indicates if the app opens an untitled file. [Full Topic] +// Tells the delegate to open the specified files. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsapplicationdelegate/1428491-applicationopenuntitledfile?language=objc -func (a_ ApplicationDelegateWrapper) ApplicationOpenUntitledFile(sender IApplication) bool { - rv := objc.Call[bool](a_, objc.Sel("applicationOpenUntitledFile:"), objc.Ptr(sender)) - return rv +// [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:"), objc.Ptr(sender), filenames) } -func (a_ ApplicationDelegateWrapper) HasApplicationShouldAutomaticallyLocalizeKeyEquivalents() bool { - return a_.RespondsToSelector(objc.Sel("applicationShouldAutomaticallyLocalizeKeyEquivalents:")) +func (a_ ApplicationDelegateObject) HasApplicationProtectedDataWillBecomeUnavailable() bool { + return a_.RespondsToSelector(objc.Sel("applicationProtectedDataWillBecomeUnavailable:")) } -// Returns a Boolean value that tells the system whether to remap menu shortcuts to support localized keyboards. [Full Topic] +// Tells the delegate that protected data is about to become unavailable. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsapplicationdelegate/3787553-applicationshouldautomaticallylo?language=objc -func (a_ ApplicationDelegateWrapper) ApplicationShouldAutomaticallyLocalizeKeyEquivalents(application IApplication) bool { - rv := objc.Call[bool](a_, objc.Sel("applicationShouldAutomaticallyLocalizeKeyEquivalents:"), objc.Ptr(application)) +// [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:"), objc.Ptr(notification)) +} + +func (a_ ApplicationDelegateObject) HasApplicationOpenFileWithoutUI() bool { + return a_.RespondsToSelector(objc.Sel("application:openFileWithoutUI:")) +} + +// Returns a Boolean value that indicates if the app opens the specified file without showing its user interface. [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) return rv } -func (a_ ApplicationDelegateWrapper) HasApplicationDidDecodeRestorableState() bool { - return a_.RespondsToSelector(objc.Sel("application:didDecodeRestorableState:")) +func (a_ ApplicationDelegateObject) HasApplicationOpenTempFile() bool { + return a_.RespondsToSelector(objc.Sel("application:openTempFile:")) } -// Tells the delegate when the app finished decoding its restorable state. [Full Topic] +// Returns a Boolean value that indicates if the app opens the specified temporary file. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsapplicationdelegate/1428693-application?language=objc -func (a_ ApplicationDelegateWrapper) ApplicationDidDecodeRestorableState(app IApplication, coder foundation.ICoder) { - objc.Call[objc.Void](a_, objc.Sel("application:didDecodeRestorableState:"), objc.Ptr(app), objc.Ptr(coder)) +// [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:"), objc.Ptr(sender), filename) + return rv } -func (a_ ApplicationDelegateWrapper) HasApplicationDidUpdate() bool { - return a_.RespondsToSelector(objc.Sel("applicationDidUpdate:")) +func (a_ ApplicationDelegateObject) HasApplicationDidHide() bool { + return a_.RespondsToSelector(objc.Sel("applicationDidHide:")) } -// Tells the delegate that the app’s windows did update. [Full Topic] +// Tells the delegate that the app is now hidden. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsapplicationdelegate/1428589-applicationdidupdate?language=objc -func (a_ ApplicationDelegateWrapper) ApplicationDidUpdate(notification foundation.INotification) { - objc.Call[objc.Void](a_, objc.Sel("applicationDidUpdate:"), objc.Ptr(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:"), objc.Ptr(notification)) } -func (a_ ApplicationDelegateWrapper) HasApplicationDidChangeOcclusionState() bool { - return a_.RespondsToSelector(objc.Sel("applicationDidChangeOcclusionState:")) +func (a_ ApplicationDelegateObject) HasApplicationShouldOpenUntitledFile() bool { + return a_.RespondsToSelector(objc.Sel("applicationShouldOpenUntitledFile:")) } -// Tells the delegate about changes to the app’s occlusion state. [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/1428362-applicationdidchangeocclusionsta?language=objc -func (a_ ApplicationDelegateWrapper) ApplicationDidChangeOcclusionState(notification foundation.INotification) { - objc.Call[objc.Void](a_, objc.Sel("applicationDidChangeOcclusionState:"), objc.Ptr(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:"), objc.Ptr(sender)) + return rv } -func (a_ ApplicationDelegateWrapper) HasApplicationDidChangeScreenParameters() bool { - return a_.RespondsToSelector(objc.Sel("applicationDidChangeScreenParameters:")) +func (a_ ApplicationDelegateObject) HasApplicationWillBecomeActive() bool { + return a_.RespondsToSelector(objc.Sel("applicationWillBecomeActive:")) } -// Tells the delegate about changes to the configuration of any attached displays. [Full Topic] +// Tells the delegate that the app is about to become active. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsapplicationdelegate/1428424-applicationdidchangescreenparame?language=objc -func (a_ ApplicationDelegateWrapper) ApplicationDidChangeScreenParameters(notification foundation.INotification) { - objc.Call[objc.Void](a_, objc.Sel("applicationDidChangeScreenParameters:"), objc.Ptr(notification)) +// [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:"), objc.Ptr(notification)) } -func (a_ ApplicationDelegateWrapper) HasApplicationWillTerminate() bool { - return a_.RespondsToSelector(objc.Sel("applicationWillTerminate:")) +func (a_ ApplicationDelegateObject) HasApplicationDidFinishLaunching() bool { + return a_.RespondsToSelector(objc.Sel("applicationDidFinishLaunching:")) } -// Tells the delegate that the app is about to terminate. [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/1428522-applicationwillterminate?language=objc -func (a_ ApplicationDelegateWrapper) ApplicationWillTerminate(notification foundation.INotification) { - objc.Call[objc.Void](a_, objc.Sel("applicationWillTerminate:"), objc.Ptr(notification)) +// [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:"), objc.Ptr(notification)) } -func (a_ ApplicationDelegateWrapper) HasApplicationDidUnhide() bool { +func (a_ ApplicationDelegateObject) HasApplicationDidUnhide() bool { return a_.RespondsToSelector(objc.Sel("applicationDidUnhide:")) } // Tells the delegate that the app is now visible. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/appkit/nsapplicationdelegate/1428755-applicationdidunhide?language=objc -func (a_ ApplicationDelegateWrapper) ApplicationDidUnhide(notification foundation.INotification) { +func (a_ ApplicationDelegateObject) ApplicationDidUnhide(notification foundation.Notification) { objc.Call[objc.Void](a_, objc.Sel("applicationDidUnhide:"), objc.Ptr(notification)) } -func (a_ ApplicationDelegateWrapper) HasApplicationShouldHandleReopenHasVisibleWindows() bool { - return a_.RespondsToSelector(objc.Sel("applicationShouldHandleReopen:hasVisibleWindows:")) +func (a_ ApplicationDelegateObject) HasApplicationWillUnhide() bool { + return a_.RespondsToSelector(objc.Sel("applicationWillUnhide:")) } -// Returns a Boolean value that indicates if the app responds to reopen AppleEvents. [Full Topic] +// Tells the delegate that the app is about to become visible. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsapplicationdelegate/1428638-applicationshouldhandlereopen?language=objc -func (a_ ApplicationDelegateWrapper) ApplicationShouldHandleReopenHasVisibleWindows(sender IApplication, flag bool) bool { - rv := objc.Call[bool](a_, objc.Sel("applicationShouldHandleReopen:hasVisibleWindows:"), objc.Ptr(sender), flag) +// [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:"), objc.Ptr(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:"), objc.Ptr(sender)) + return rv +} + +func (a_ ApplicationDelegateObject) HasApplicationPrintFile() bool { + return a_.RespondsToSelector(objc.Sel("application:printFile:")) +} + +// Returns a Boolean value that indicates if the app prints the specified file in its entirety. [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:"), objc.Ptr(sender), filename) return rv } diff --git a/macos/appkit/array_controller.gen.go b/macos/appkit/array_controller.gen.go index 778f718e..c6d0fa45 100644 --- a/macos/appkit/array_controller.gen.go +++ b/macos/appkit/array_controller.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package appkit @@ -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 - ArrangeObjects(objects []objc.IObject) []objc.Object - AddObjects(objects []objc.IObject) + RemoveObjectsAtArrangedObjectIndexes(indexes foundation.IIndexSet) + SetSelectedObjects(objects []objc.IObject) bool 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 - InsertObjectsAtArrangedObjectIndexes(objects []objc.IObject, indexes foundation.IIndexSet) + RearrangeObjects() + SelectionIndex() uint + AutomaticallyRearrangesObjects() bool + SetAutomaticallyRearrangesObjects(value bool) 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) - AutomaticRearrangementKeyPaths() []string + ArrangedObjects() objc.Object CanSelectPrevious() bool + CanSelectNext() bool SortDescriptors() []foundation.SortDescriptor SetSortDescriptors(value []foundation.ISortDescriptor) - ArrangedObjects() objc.Object - SelectionIndexes() foundation.IndexSet CanInsert() bool - CanSelectNext() bool - SelectionIndex() uint - AutomaticallyRearrangesObjects() bool - SetAutomaticallyRearrangesObjects(value bool) - ClearsFilterPredicateOnInsertion() bool - SetClearsFilterPredicateOnInsertion(value bool) - SelectsInsertedObjects() bool - SetSelectsInsertedObjects(value bool) - AvoidsEmptySelection() bool - SetAvoidsEmptySelection(value bool) + AutomaticRearrangementKeyPaths() []string } // A bindings-compatible controller that manages a collection of objects. [Full Topic] @@ -81,10 +81,6 @@ func (ac _ArrayControllerClass) Alloc() ArrayController { return rv } -func ArrayController_Alloc() ArrayController { - return ArrayControllerClass.Alloc() -} - func (ac _ArrayControllerClass) New() ArrayController { rv := objc.Call[ArrayController](ac, objc.Sel("new")) rv.Autorelease() @@ -114,52 +110,36 @@ func NewArrayControllerWithContent(content objc.IObject) ArrayController { return instance } -// 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 -func (a_ ArrayController) RemoveObjectAtArrangedObjectIndex(index uint) { - objc.Call[objc.Void](a_, objc.Sel("removeObjectAtArrangedObjectIndex:"), index) -} - -// 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:"), objc.Ptr(indexes)) return rv } -// Removes the object as the specified indexes from the receiver’s current selection, returning YES if the selection was changed. [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/1525061-removeselectionindexes?language=objc -func (a_ ArrayController) RemoveSelectionIndexes(indexes foundation.IIndexSet) bool { - rv := objc.Call[bool](a_, objc.Sel("removeSelectionIndexes:"), objc.Ptr(indexes)) - return rv +// [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, objc.Ptr(indexes)) } -// Sets objects as the receiver’s current selection, returning YES if the selection was changed. [Full Topic] +// 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/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/1534738-removeobjectatarrangedobjectinde?language=objc +func (a_ ArrayController) RemoveObjectAtArrangedObjectIndex(index uint) { + objc.Call[objc.Void](a_, objc.Sel("removeObjectAtArrangedObjectIndex:"), index) } -// 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] +// Returns a given array, appropriately sorted and filtered. [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:"), objc.Ptr(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 } -// Inserts object into the receiver’s arranged objects array at the location specified by index, and adds it to the receiver’s content collection. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsarraycontroller/1532302-insertobject?language=objc -func (a_ ArrayController) InsertObjectAtArrangedObjectIndex(object objc.IObject, index uint) { - 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 @@ -168,40 +148,41 @@ func (a_ ArrayController) SetSelectionIndexes(indexes foundation.IIndexSet) bool return rv } -// Removes the objects at the specified indexes in the receiver’s arranged objects from the content array. [Full Topic] +// Adds objects to the receiver’s content collection. [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:"), objc.Ptr(indexes)) +// [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) } -// Invoked when any criteria for arranging objects change. [Full Topic] +// 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/1526171-didchangearrangementcriteria?language=objc -func (a_ ArrayController) DidChangeArrangementCriteria() { - objc.Call[objc.Void](a_, objc.Sel("didChangeArrangementCriteria")) +// [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 } -// Triggers filtering of the receiver’s content. [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/1534319-rearrangeobjects?language=objc -func (a_ ArrayController) RearrangeObjects() { - objc.Call[objc.Void](a_, objc.Sel("rearrangeObjects")) +// [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 } -// Selects the previous object, relative to the current selection, in the receiver’s arranged content. [Full Topic] +// Inserts object into the receiver’s arranged objects array at the location specified by index, and adds it to the receiver’s content collection. [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 +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsarraycontroller/1532302-insertobject?language=objc +func (a_ ArrayController) InsertObjectAtArrangedObjectIndex(object objc.IObject, index uint) { + objc.Call[objc.Void](a_, objc.Sel("insertObject:atArrangedObjectIndex:"), object, index) } -// Removes objects from the receiver’s content collection. [Full Topic] +// Invoked when any criteria for arranging objects change. [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) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsarraycontroller/1526171-didchangearrangementcriteria?language=objc +func (a_ ArrayController) DidChangeArrangementCriteria() { + objc.Call[objc.Void](a_, objc.Sel("didChangeArrangementCriteria")) } // Adds objects from the receiver’s content array to the current selection, returning YES if the selection was changed. [Full Topic] @@ -212,19 +193,19 @@ func (a_ ArrayController) AddSelectedObjects(objects []objc.IObject) bool { return rv } -// Returns a given array, appropriately sorted and filtered. [Full Topic] +// 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/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 +// [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:"), objc.Ptr(indexes)) } -// Adds objects to the receiver’s content collection. [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/1533977-addobjects?language=objc -func (a_ ArrayController) AddObjects(objects []objc.IObject) { - objc.Call[objc.Void](a_, objc.Sel("addObjects:"), objects) +// [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 } // Removes objects from the receiver’s current selection, returning YES if the selection was changed. [Full Topic] @@ -243,6 +224,21 @@ 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:"), objc.Ptr(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 @@ -251,11 +247,34 @@ func (a_ ArrayController) Insert(sender objc.IObject) objc.Object { 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] +// Triggers filtering of the receiver’s content. [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, objc.Ptr(indexes)) +// [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] +// +// [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 will attempt to preserve the current selection when the content changes [Full Topic] @@ -273,6 +292,44 @@ 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 @@ -288,6 +345,21 @@ 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 @@ -303,11 +375,11 @@ func (a_ ArrayController) SetFilterPredicate(value foundation.IPredicate) { objc.Call[objc.Void](a_, objc.Sel("setFilterPredicate:"), objc.Ptr(value)) } -// An array of key paths that trigger automatic content sorting or filtering [Full Topic] +// An array containing the receiver’s content objects arranged using [appkit/nsarraycontroller/arrangeobjects]. [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/1534299-arrangedobjects?language=objc +func (a_ ArrayController) ArrangedObjects() objc.Object { + rv := objc.Call[objc.Object](a_, objc.Sel("arrangedObjects")) return rv } @@ -319,6 +391,14 @@ 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 @@ -334,22 +414,6 @@ 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 @@ -358,78 +422,10 @@ func (a_ ArrayController) CanInsert() 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 -} - -// 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] +// An array of key paths that trigger automatic content sorting or filtering [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")) +// [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 } - -// 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 ffe98a8f..2594af02 100644 --- a/macos/appkit/ats_typesetter.gen.go +++ b/macos/appkit/ats_typesetter.gen.go @@ -1,11 +1,10 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package appkit import ( "unsafe" - "github.com/progrium/macdriver/macos/foundation" "github.com/progrium/macdriver/objc" ) @@ -19,7 +18,6 @@ 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] @@ -40,10 +38,6 @@ func (ac _ATSTypesetterClass) Alloc() ATSTypesetter { return rv } -func ATSTypesetter_Alloc() ATSTypesetter { - return ATSTypesetterClass.Alloc() -} - func (ac _ATSTypesetterClass) New() ATSTypesetter { rv := objc.Call[ATSTypesetter](ac, objc.Sel("new")) rv.Autorelease() @@ -59,13 +53,6 @@ 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 56b4d9e4..0ac06902 100644 --- a/macos/appkit/bezier_path.gen.go +++ b/macos/appkit/bezier_path.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package appkit @@ -20,52 +20,54 @@ type _BezierPathClass struct { // An interface definition for the [BezierPath] class. type IBezierPath interface { objc.IObject - AppendBezierPathWithCGGlyphsCountInFont(glyphs *coregraphics.Glyph, count int, font IFont) + 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() ElementAtIndex(index int) BezierPathElement - SetClip() - AddClip() - AppendBezierPathWithRoundedRectXRadiusYRadius(rect foundation.Rect, xRadius float64, yRadius float64) - TransformUsingAffineTransform(transform foundation.IAffineTransform) - AppendBezierPathWithOvalInRect(rect foundation.Rect) + RelativeLineToPoint(point foundation.Point) ContainsPoint(point foundation.Point) bool + TransformUsingAffineTransform(transform foundation.IAffineTransform) + AppendBezierPathWithRoundedRectXRadiusYRadius(rect foundation.Rect, xRadius float64, yRadius float64) + AppendBezierPathWithPointsCount(points foundation.PointArray, count int) + AppendBezierPathWithCGGlyphInFont(glyph coregraphics.Glyph, font IFont) RemoveAllPoints() - AppendBezierPathWithRect(rect foundation.Rect) - RelativeCurveToPointControlPoint1ControlPoint2(endPoint foundation.Point, controlPoint1 foundation.Point, controlPoint2 foundation.Point) + SetAssociatedPointsAtIndex(points foundation.PointArray, index int) + Fill() LineToPoint(point foundation.Point) - GetLineDashCountPhase(pattern *float64, count *int, phase *float64) - RelativeMoveToPoint(point foundation.Point) AppendBezierPathWithArcFromPointToPointRadius(point1 foundation.Point, point2 foundation.Point, radius float64) - CurveToPointControlPoint1ControlPoint2(endPoint foundation.Point, controlPoint1 foundation.Point, controlPoint2 foundation.Point) - AppendBezierPath(path IBezierPath) - Stroke() - AppendBezierPathWithArcWithCenterRadiusStartAngleEndAngle(center foundation.Point, radius float64, startAngle float64, endAngle 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() - RelativeLineToPoint(point foundation.Point) + 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) - 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) + AppendBezierPath(path IBezierPath) + RelativeMoveToPoint(point foundation.Point) + LineJoinStyle() LineJoinStyle + SetLineJoinStyle(value LineJoinStyle) + CurrentPoint() foundation.Point + LineCapStyle() LineCapStyle + SetLineCapStyle(value LineCapStyle) + ControlPointBounds() foundation.Rect 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] @@ -86,10 +88,6 @@ func (bc _BezierPathClass) Alloc() BezierPath { return rv } -func BezierPath_Alloc() BezierPath { - return BezierPathClass.Alloc() -} - func (bc _BezierPathClass) New() BezierPath { rv := objc.Call[BezierPath](bc, objc.Sel("new")) rv.Autorelease() @@ -105,21 +103,64 @@ func (b_ BezierPath) Init() BezierPath { return rv } -// 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, objc.Ptr(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 } -// Returns the type of path element at the specified index. [Full Topic] +// Creates and returns a new Bézier path object. [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) +// [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] +// +// [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) +} + +// Gets the element type and (and optionally) the associated points for the 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) 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 @@ -135,18 +176,19 @@ func BezierPath_BezierPathWithOvalInRect(rect foundation.Rect) BezierPath { return BezierPathClass.BezierPathWithOvalInRect(rect) } -// Replaces the clipping path of the current graphics context with the area inside the path. [Full Topic] +// Returns the type of path element at the specified index. [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/1520751-elementatindex?language=objc +func (b_ BezierPath) ElementAtIndex(index int) BezierPathElement { + rv := objc.Call[BezierPathElement](b_, objc.Sel("elementAtIndex:"), index) + return rv } -// 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] +// 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/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/1520709-relativelinetopoint?language=objc +func (b_ BezierPath) RelativeLineToPoint(point foundation.Point) { + objc.Call[objc.Void](b_, objc.Sel("relativeLineToPoint:"), point) } // Creates and returns a new Bézier path object initialized with a rounded rectangular path. [Full Topic] @@ -164,11 +206,26 @@ func BezierPath_BezierPathWithRoundedRectXRadiusYRadius(rect foundation.Rect, xR return BezierPathClass.BezierPathWithRoundedRectXRadiusYRadius(rect, xRadius, yRadius) } -// Appends a rounded rectangular path 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/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) +// [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] +// +// [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) } // Transforms all points in the path using the specified transform. [Full Topic] @@ -178,19 +235,25 @@ func (b_ BezierPath) TransformUsingAffineTransform(transform foundation.IAffineT objc.Call[objc.Void](b_, objc.Sel("transformUsingAffineTransform:"), objc.Ptr(transform)) } -// Appends an oval path to the path, inscribing the oval in the specified rectangle. [Full Topic] +// Appends a rounded rectangular path to the path. [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/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) } -// Returns a Boolean value that indicates whether the path contains the specified point. [Full Topic] +// Appends a series of line segments to the path. [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 +// [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) +} + +// Appends an outline of the specified glyph to the path. [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, objc.Ptr(font)) } // Removes all path elements from the path, effectively clearing the path. [Full Topic] @@ -200,11 +263,18 @@ func (b_ BezierPath) RemoveAllPoints() { objc.Call[objc.Void](b_, objc.Sel("removeAllPoints")) } -// Appends a rectangular path 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/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/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] +// +// [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")) } // Creates and returns a new Bézier path object initialized with a rectangular path. [Full Topic] @@ -222,13 +292,6 @@ 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 @@ -236,20 +299,6 @@ 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 @@ -257,131 +306,116 @@ func (b_ BezierPath) AppendBezierPathWithArcFromPointToPointRadius(point1 founda objc.Call[objc.Void](b_, objc.Sel("appendBezierPathWithArcFromPoint:toPoint:radius:"), point1, point2, radius) } -// Creates and returns a new Bézier path object. [Full Topic] +// Appends the outlines of the specified glyphs to the path. [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 +// [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, objc.Ptr(font)) } -// Creates and returns a new Bézier path object. [Full Topic] +// Appends a rectangular path to the path. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsbezierpath/1520652-bezierpath?language=objc -func BezierPath_BezierPath() BezierPath { - return BezierPathClass.BezierPath() +// [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) } -// Adds a Bezier cubic curve to 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/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/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) } -// Appends the contents of the specified path object to 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/1520688-appendbezierpath?language=objc -func (b_ BezierPath) AppendBezierPath(path IBezierPath) { - objc.Call[objc.Void](b_, objc.Sel("appendBezierPath:"), objc.Ptr(path)) +// [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) } -// Draws a line along the path using the current stroke color and drawing attributes. [Full Topic] +// Fills the specified rectangular path with the current fill color. [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")) -} - -// Appends an arc of a circle 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) -} - -// Closes the most recently added subpath. [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/1520747-fillrect?language=objc +func (bc _BezierPathClass) FillRect(rect foundation.Rect) { + objc.Call[objc.Void](bc, objc.Sel("fillRect:"), rect) } -// Strokes a line between two points using the current stroke color and the default drawing attributes. [Full Topic] +// Fills the specified rectangular path with the current fill color. [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/1520747-fillrect?language=objc +func BezierPath_FillRect(rect foundation.Rect) { + BezierPathClass.FillRect(rect) } -// Strokes a line between two points using the current stroke color and the default drawing attributes. [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/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/1520634-addclip?language=objc +func (b_ BezierPath) AddClip() { + objc.Call[objc.Void](b_, objc.Sel("addClip")) } -// 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] +// 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/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/1520704-setclip?language=objc +func (b_ BezierPath) SetClip() { + objc.Call[objc.Void](b_, objc.Sel("setClip")) } -// 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 a series of line segments to the path. [Full Topic] +// Appends an arc of a circle to the path. [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/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) } -// Fills the specified rectangular path with the current fill color. [Full Topic] +// Closes the most recently added subpath. [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/1520640-closepath?language=objc +func (b_ BezierPath) ClosePath() { + objc.Call[objc.Void](b_, objc.Sel("closePath")) } -// 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) } -// Sets the line-stroking pattern for the path. [Full Topic] +// Adds a Bezier cubic curve to the path. [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/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) } -// Changes the points associated with the specified path element. [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/1520671-setassociatedpoints?language=objc -func (b_ BezierPath) SetAssociatedPointsAtIndex(points foundation.PointArray, index int) { - objc.Call[objc.Void](b_, objc.Sel("setAssociatedPoints:atIndex:"), points, index) +// [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) } -// Strokes the path of the specified rectangle using the current stroke color and the default drawing attributes. [Full Topic] +// Moves the path’s current point to the specified location. [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) +// [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) } -// Strokes the path of the specified rectangle 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/1520741-strokerect?language=objc -func BezierPath_StrokeRect(rect foundation.Rect) { - BezierPathClass.StrokeRect(rect) +// [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:"), objc.Ptr(path)) } // Intersects the specified rectangle with the clipping path of the current graphics context and makes the resulting shape the current clipping path. [Full Topic] @@ -398,61 +432,86 @@ func BezierPath_ClipRect(rect foundation.Rect) { BezierPathClass.ClipRect(rect) } -// Paints the region enclosed by the path. [Full Topic] +// 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/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/1520724-relativemovetopoint?language=objc +func (b_ BezierPath) RelativeMoveToPoint(point foundation.Point) { + objc.Call[objc.Void](b_, objc.Sel("relativeMoveToPoint:"), point) } -// Draws a set of packed glyphs at the specified point in the current coordinate system. [Full Topic] +// The line join style for the path. [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) +// [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 } -// Draws a set of packed glyphs at the specified point in the current coordinate system. [Full Topic] +// The line join style for 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/1520726-linejoinstyle?language=objc +func (b_ BezierPath) SetLineJoinStyle(value LineJoinStyle) { + objc.Call[objc.Void](b_, objc.Sel("setLineJoinStyle:"), value) } -// Appends an outline of the specified glyph to the path. [Full Topic] +// 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/2887184-appendbezierpathwithcgglyph?language=objc -func (b_ BezierPath) AppendBezierPathWithCGGlyphInFont(glyph coregraphics.Glyph, font IFont) { - objc.Call[objc.Void](b_, objc.Sel("appendBezierPathWithCGGlyph:inFont:"), glyph, objc.Ptr(font)) +// [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 } -// Returns the default miter limit for all paths. [Full Topic] +// The line cap style for the path. [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")) +// [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 } -// Returns the default miter limit for all paths. [Full Topic] +// The line cap style for the path. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsbezierpath/1520728-defaultmiterlimit?language=objc -func BezierPath_DefaultMiterLimit() float64 { - return BezierPathClass.DefaultMiterLimit() +// [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) } -// Returns the default miter limit for all paths. [Full Topic] +// The default flatness value 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) +// [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 } -// Returns the default miter limit for all paths. [Full Topic] +// The default flatness value 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) +// [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 width of stroked path lines. [Full Topic] @@ -470,20 +529,19 @@ func (b_ BezierPath) SetLineWidth(value float64) { objc.Call[objc.Void](b_, objc.Sel("setLineWidth:"), value) } -// A Boolean value that indicates whether the path is empty. [Full Topic] +// The winding rule used to fill the path. [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")) +// [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 } -// A path containing the reversed contents of the current path object. [Full Topic] +// The winding rule used to fill the path. [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/1520657-windingrule?language=objc +func (b_ BezierPath) SetWindingRule(value WindingRule) { + objc.Call[objc.Void](b_, objc.Sel("setWindingRule:"), value) } // Returns the default line width for the all paths. [Full Topic] @@ -515,34 +573,94 @@ func BezierPath_SetDefaultLineWidth(value float64) { BezierPathClass.SetDefaultLineWidth(value) } -// The limit at which miter joins are converted to bevel joins. [Full Topic] +// Returns the default miter limit 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/1520728-defaultmiterlimit?language=objc +func (bc _BezierPathClass) DefaultMiterLimit() float64 { + rv := objc.Call[float64](bc, objc.Sel("defaultMiterLimit")) return rv } -// The limit at which miter joins are converted to bevel joins. [Full Topic] +// Returns the default miter limit 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/1520728-defaultmiterlimit?language=objc +func BezierPath_DefaultMiterLimit() float64 { + return BezierPathClass.DefaultMiterLimit() } -// The accuracy with which curves are rendered. [Full Topic] +// Returns the default miter limit 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/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 } -// 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) SetFlatness(value float64) { - objc.Call[objc.Void](b_, objc.Sel("setFlatness:"), value) +// [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] +// +// [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 Boolean value that indicates whether the path is empty. [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 +} + +// 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 +} + +// A path containing the reversed contents of the current path object. [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 } // Returns the default winding rule used to fill all paths. [Full Topic] @@ -574,26 +692,11 @@ func BezierPath_SetDefaultWindingRule(value WindingRule) { BezierPathClass.SetDefaultWindingRule(value) } -// 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] -// -// [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] +// A flattened version of the path object. [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/1520733-bezierpathbyflatteningpath?language=objc +func (b_ BezierPath) BezierPathByFlatteningPath() BezierPath { + rv := objc.Call[BezierPath](b_, objc.Sel("bezierPathByFlatteningPath")) return rv } @@ -626,122 +729,32 @@ func BezierPath_SetDefaultLineCapStyle(value LineCapStyle) { BezierPathClass.SetDefaultLineCapStyle(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 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 line cap style for 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) -} - -// 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] +// The limit at which miter joins are converted to bevel joins. [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/1520740-miterlimit?language=objc +func (b_ BezierPath) MiterLimit() float64 { + rv := objc.Call[float64](b_, objc.Sel("miterLimit")) return rv } -// The current point (the trailing point or ending point in the most recently added segment). [Full Topic] +// The limit at which miter joins are converted to bevel joins. [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/1520740-miterlimit?language=objc +func (b_ BezierPath) SetMiterLimit(value float64) { + objc.Call[objc.Void](b_, objc.Sel("setMiterLimit:"), value) } -// The winding rule used to fill the path. [Full Topic] +// The accuracy with which curves are rendered. [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/1520676-flatness?language=objc +func (b_ BezierPath) Flatness() float64 { + rv := objc.Call[float64](b_, objc.Sel("flatness")) return rv } -// The winding rule used to fill the path. [Full Topic] +// The accuracy with which curves are rendered. [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/1520676-flatness?language=objc +func (b_ BezierPath) SetFlatness(value float64) { + objc.Call[objc.Void](b_, objc.Sel("setFlatness:"), value) } diff --git a/macos/appkit/binding_selection_marker.gen.go b/macos/appkit/binding_selection_marker.gen.go index c1725858..efe225a6 100644 --- a/macos/appkit/binding_selection_marker.gen.go +++ b/macos/appkit/binding_selection_marker.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package appkit @@ -38,10 +38,6 @@ func (bc _BindingSelectionMarkerClass) Alloc() BindingSelectionMarker { return rv } -func BindingSelectionMarker_Alloc() BindingSelectionMarker { - return BindingSelectionMarkerClass.Alloc() -} - func (bc _BindingSelectionMarkerClass) New() BindingSelectionMarker { rv := objc.Call[BindingSelectionMarker](bc, objc.Sel("new")) rv.Autorelease() diff --git a/macos/appkit/bitmap_image_rep.gen.go b/macos/appkit/bitmap_image_rep.gen.go index 276b45a7..54a6baf6 100644 --- a/macos/appkit/bitmap_image_rep.gen.go +++ b/macos/appkit/bitmap_image_rep.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package appkit @@ -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 float64) - TIFFRepresentationUsingCompressionFactor(comp TIFFCompression, factor float64) []byte CanBeCompressedUsing(compression TIFFCompression) bool - GetPixelAtXY(p *uint, x int, y int) + ColorizeByMappingGrayToColorBlackMappingWhiteMapping(midPoint float64, midPointColor IColor, shadowColor IColor, lightColor IColor) + ValueForProperty(property BitmapImageRepPropertyKey) objc.Object + GetBitmapDataPlanes(data *uint8) IncrementalLoadFromDataComplete(data []byte, complete bool) int ColorAtXY(x int, y int) Color + GetPixelAtXY(p *uint, x int, y int) GetCompressionFactor(compression *TIFFCompression, factor *float64) - SetPropertyWithValue(property BitmapImageRepPropertyKey, value objc.IObject) SetPixelAtXY(p *uint, x int, y int) - GetBitmapDataPlanes(data *uint8) - ColorizeByMappingGrayToColorBlackMappingWhiteMapping(midPoint float64, midPointColor IColor, shadowColor IColor, lightColor IColor) - ValueForProperty(property BitmapImageRepPropertyKey) objc.Object SetColorAtXY(color IColor, x int, y int) - RepresentationUsingTypeProperties(storageType BitmapImageFileType, properties map[BitmapImageRepPropertyKey]objc.IObject) []byte BitmapImageRepByRetaggingWithColorSpace(newSpace IColorSpace) BitmapImageRep - TIFFRepresentation() []byte - CGImage() coregraphics.ImageRef - SamplesPerPixel() int + 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 float64) []byte + SetCompressionFactor(compression TIFFCompression, factor float64) BytesPerPlane() int + BitsPerPixel() int BytesPerRow() int - ColorSpace() ColorSpace BitmapFormat() BitmapFormat BitmapData() *uint8 IsPlanar() bool - BitsPerPixel() int + SamplesPerPixel() int NumberOfPlanes() int + ColorSpace() ColorSpace + CGImage() coregraphics.ImageRef + TIFFRepresentation() []byte } // An object that renders an image from bitmap data. [Full Topic] @@ -62,84 +62,98 @@ func BitmapImageRepFrom(ptr unsafe.Pointer) BitmapImageRep { } } -func (b_ BitmapImageRep) InitWithCIImage(ciImage coreimage.IImage) BitmapImageRep { - rv := objc.Call[BitmapImageRep](b_, objc.Sel("initWithCIImage:"), objc.Ptr(ciImage)) +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 Image object. [Full Topic] +// Returns a bitmap image representation from a Core Graphics image object. [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/1395423-initwithcgimage?language=objc +func NewBitmapImageRepWithCGImage(cgImage coregraphics.ImageRef) BitmapImageRep { + instance := BitmapImageRepClass.Alloc().InitWithCGImage(cgImage) instance.Autorelease() return instance } -func (b_ BitmapImageRep) InitForIncrementalLoad() BitmapImageRep { - rv := objc.Call[BitmapImageRep](b_, objc.Sel("initForIncrementalLoad")) +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 for incremental loading. [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/1395522-initforincrementalload?language=objc -func NewBitmapImageRepForIncrementalLoad() BitmapImageRep { - instance := BitmapImageRepClass.Alloc().InitForIncrementalLoad() +// [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 *uint8, 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 so it can render the specified image. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsbitmapimagerep/1395540-initwithbitmapdataplanes?language=objc +func NewBitmapImageRepWithBitmapDataPlanesPixelsWidePixelsHighBitsPerSampleSamplesPerPixelHasAlphaIsPlanarColorSpaceNameBytesPerRowBitsPerPixel(planes *uint8, 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) InitWithData(data []byte) BitmapImageRep { - rv := objc.Call[BitmapImageRep](b_, objc.Sel("initWithData:"), data) +func (b_ BitmapImageRep) InitForIncrementalLoad() BitmapImageRep { + rv := objc.Call[BitmapImageRep](b_, objc.Sel("initForIncrementalLoad")) return rv } -// Initializes a newly allocated bitmap image representation from the specified data. [Full Topic] +// Initializes a newly allocated bitmap image representation for incremental loading. [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/1395522-initforincrementalload?language=objc +func NewBitmapImageRepForIncrementalLoad() BitmapImageRep { + instance := BitmapImageRepClass.Alloc().InitForIncrementalLoad() instance.Autorelease() return instance } -func (b_ BitmapImageRep) InitWithBitmapDataPlanesPixelsWidePixelsHighBitsPerSampleSamplesPerPixelHasAlphaIsPlanarColorSpaceNameBytesPerRowBitsPerPixel(planes *uint8, 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:"), objc.Ptr(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 *uint8, 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 } -func (bc _BitmapImageRepClass) ImageRepWithData(data []byte) BitmapImageRep { - rv := objc.Call[BitmapImageRep](bc, objc.Sel("imageRepWithData:"), data) +func (b_ BitmapImageRep) InitWithData(data []byte) BitmapImageRep { + rv := objc.Call[BitmapImageRep](b_, objc.Sel("initWithData:"), data) return rv } -// Creates and returns a bitmap image representation with the first image in the specified data. [Full Topic] +// Initializes a newly allocated bitmap image representation from 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) +// [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) InitWithCGImage(cgImage coregraphics.ImageRef) BitmapImageRep { - rv := objc.Call[BitmapImageRep](b_, objc.Sel("initWithCGImage:"), cgImage) +func (b_ BitmapImageRep) InitWithBitmapDataPlanesPixelsWidePixelsHighBitsPerSampleSamplesPerPixelHasAlphaIsPlanarColorSpaceNameBitmapFormatBytesPerRowBitsPerPixel(planes *uint8, 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) return rv } -// Returns a bitmap image representation from a Core Graphics image object. [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/1395423-initwithcgimage?language=objc -func NewBitmapImageRepWithCGImage(cgImage coregraphics.ImageRef) BitmapImageRep { - instance := BitmapImageRepClass.Alloc().InitWithCGImage(cgImage) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsbitmapimagerep/1395538-initwithbitmapdataplanes?language=objc +func NewBitmapImageRepWithBitmapDataPlanesPixelsWidePixelsHighBitsPerSampleSamplesPerPixelHasAlphaIsPlanarColorSpaceNameBitmapFormatBytesPerRowBitsPerPixel(planes *uint8, 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) instance.Autorelease() return instance } @@ -149,10 +163,6 @@ func (bc _BitmapImageRepClass) Alloc() BitmapImageRep { return rv } -func BitmapImageRep_Alloc() BitmapImageRep { - return BitmapImageRepClass.Alloc() -} - func (bc _BitmapImageRepClass) New() BitmapImageRep { rv := objc.Call[BitmapImageRep](bc, objc.Sel("new")) rv.Autorelease() @@ -168,42 +178,19 @@ func (b_ BitmapImageRep) Init() BitmapImageRep { 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] +// 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/1395470-bitmapimagerepbyconvertingtocolo?language=objc -func (b_ BitmapImageRep) BitmapImageRepByConvertingToColorSpaceRenderingIntent(targetSpace IColorSpace, renderingIntent ColorRenderingIntent) BitmapImageRep { - rv := objc.Call[BitmapImageRep](b_, objc.Sel("bitmapImageRepByConvertingToColorSpace:renderingIntent:"), objc.Ptr(targetSpace), renderingIntent) +// [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 } -// 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 float64) { - objc.Call[objc.Void](b_, objc.Sel("setCompression:factor:"), compression, factor) -} - -// 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 float64) []byte { - rv := objc.Call[[]byte](b_, objc.Sel("TIFFRepresentationUsingCompression:factor:"), comp, factor) - return rv +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsbitmapimagerep/1395419-imagerepswithdata?language=objc +func BitmapImageRep_ImageRepsWithData(data []byte) []ImageRep { + return BitmapImageRepClass.ImageRepsWithData(data) } // Tests whether the bitmap image representation can be compressed by the specified compression scheme. [Full Topic] @@ -214,25 +201,26 @@ func (b_ BitmapImageRep) CanBeCompressedUsing(compression TIFFCompression) bool return rv } -// Returns by indirection the pixel data for the specified location in the bitmap image representation. [Full Topic] +// Colorizes a grayscale image. [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) +// [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, objc.Ptr(midPointColor), objc.Ptr(shadowColor), objc.Ptr(lightColor)) } -// Returns by indirection an array of all available compression types that can be used when writing a TIFF image. [Full Topic] +// Returns the value for the specified property. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsbitmapimagerep/1395513-gettiffcompressiontypes?language=objc -func (bc _BitmapImageRepClass) GetTIFFCompressionTypesCount(list *TIFFCompression, numTypes *int) { - objc.Call[objc.Void](bc, objc.Sel("getTIFFCompressionTypes:count:"), list, numTypes) +// [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 } -// Returns by indirection an array of all available compression types that can be used when writing a TIFF image. [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/1395513-gettiffcompressiontypes?language=objc -func BitmapImageRep_GetTIFFCompressionTypesCount(list *TIFFCompression, numTypes *int) { - BitmapImageRepClass.GetTIFFCompressionTypesCount(list, numTypes) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsbitmapimagerep/1395490-getbitmapdataplanes?language=objc +func (b_ BitmapImageRep) GetBitmapDataPlanes(data *uint8) { + objc.Call[objc.Void](b_, objc.Sel("getBitmapDataPlanes:"), data) } // Loads the current image data into an incrementally-loaded image representation and returns the current status of the image. [Full Topic] @@ -251,6 +239,13 @@ 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 @@ -258,13 +253,6 @@ 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 @@ -272,73 +260,103 @@ func (b_ BitmapImageRep) SetPixelAtXY(p *uint, x int, y int) { objc.Call[objc.Void](b_, objc.Sel("setPixel:atX:y:"), p, x, y) } -// Returns by indirection bitmap data of the bitmap image representation separated into planes. [Full Topic] +// Changes the color of the pixel at the specified coordinates. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsbitmapimagerep/1395490-getbitmapdataplanes?language=objc -func (b_ BitmapImageRep) GetBitmapDataPlanes(data *uint8) { - objc.Call[objc.Void](b_, objc.Sel("getBitmapDataPlanes:"), data) +// [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:"), objc.Ptr(color), x, y) } -// Colorizes a grayscale image. [Full Topic] +// Changes the color space tag of 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, objc.Ptr(midPointColor), objc.Ptr(shadowColor), objc.Ptr(lightColor)) +// [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:"), objc.Ptr(newSpace)) + 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) } -// Returns a TIFF representation of the specified images. [Full Topic] +// Converts the bitmap image representation to the specified color space. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsbitmapimagerep/1395561-tiffrepresentationofimagerepsina?language=objc -func (bc _BitmapImageRepClass) TIFFRepresentationOfImageRepsInArray(array []IImageRep) []byte { - rv := objc.Call[[]byte](bc, objc.Sel("TIFFRepresentationOfImageRepsInArray:"), array) +// [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:"), objc.Ptr(targetSpace), renderingIntent) return rv } -// Returns a TIFF representation of the specified images. [Full Topic] +// 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/1395561-tiffrepresentationofimagerepsina?language=objc -func BitmapImageRep_TIFFRepresentationOfImageRepsInArray(array []IImageRep) []byte { - return BitmapImageRepClass.TIFFRepresentationOfImageRepsInArray(array) +// [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 the value for the specified property. [Full Topic] +// Sets the specified property of the bitmap image representation to the specified value. [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) +// [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) +} + +// 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 float64) []byte { + rv := objc.Call[[]byte](b_, objc.Sel("TIFFRepresentationUsingCompression:factor:"), comp, factor) return rv } -// Changes the color of the pixel at the specified coordinates. [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/1395472-setcolor?language=objc -func (b_ BitmapImageRep) SetColorAtXY(color IColor, x int, y int) { - objc.Call[objc.Void](b_, objc.Sel("setColor:atX:y:"), objc.Ptr(color), x, y) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsbitmapimagerep/1395513-gettiffcompressiontypes?language=objc +func (bc _BitmapImageRepClass) GetTIFFCompressionTypesCount(list *TIFFCompression, numTypes *int) { + objc.Call[objc.Void](bc, objc.Sel("getTIFFCompressionTypes:count:"), list, numTypes) } -// 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 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/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) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsbitmapimagerep/1395513-gettiffcompressiontypes?language=objc +func BitmapImageRep_GetTIFFCompressionTypesCount(list *TIFFCompression, numTypes *int) { + BitmapImageRepClass.GetTIFFCompressionTypesCount(list, numTypes) +} + +// Returns a TIFF representation of the specified images. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsbitmapimagerep/1395561-tiffrepresentationofimagerepsina?language=objc +func (bc _BitmapImageRepClass) TIFFRepresentationOfImageRepsInArray(array []IImageRep) []byte { + rv := objc.Call[[]byte](bc, objc.Sel("TIFFRepresentationOfImageRepsInArray:"), array) return rv } +// Returns a TIFF representation of the specified images. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsbitmapimagerep/1395561-tiffrepresentationofimagerepsina?language=objc +func BitmapImageRep_TIFFRepresentationOfImageRepsInArray(array []IImageRep) []byte { + return BitmapImageRepClass.TIFFRepresentationOfImageRepsInArray(array) +} + +// 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 float64) { + objc.Call[objc.Void](b_, objc.Sel("setCompression:factor:"), compression, factor) +} + // Returns an autoreleased string containing the localized name for the specified compression type. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/appkit/nsbitmapimagerep/1395548-localizednamefortiffcompressiont?language=objc @@ -354,36 +372,19 @@ func BitmapImageRep_LocalizedNameForTIFFCompressionType(compression TIFFCompress return BitmapImageRepClass.LocalizedNameForTIFFCompressionType(compression) } -// 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:"), objc.Ptr(newSpace)) - return rv -} - -// A TIFF representation of the bitmap image data. [Full Topic] +// Returns a TIFF representation of the specified images using the specified compression scheme and factor. [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")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsbitmapimagerep/1395456-tiffrepresentationofimagerepsina?language=objc +func (bc _BitmapImageRepClass) TIFFRepresentationOfImageRepsInArrayUsingCompressionFactor(array []IImageRep, comp TIFFCompression, factor float64) []byte { + rv := objc.Call[[]byte](bc, objc.Sel("TIFFRepresentationOfImageRepsInArray:usingCompression:factor:"), array, comp, factor) return rv } -// A Core Graphics image object based on the bitmap image representation’s data. [Full Topic] +// Returns a TIFF representation of the specified images using the specified compression scheme and factor. [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 -} - -// The number of components for each pixel. [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")) - return rv +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsbitmapimagerep/1395456-tiffrepresentationofimagerepsina?language=objc +func BitmapImageRep_TIFFRepresentationOfImageRepsInArrayUsingCompressionFactor(array []IImageRep, comp TIFFCompression, factor float64) []byte { + return BitmapImageRepClass.TIFFRepresentationOfImageRepsInArrayUsingCompressionFactor(array, comp, factor) } // The number of bytes in each plane or channel of data. [Full Topic] @@ -394,19 +395,19 @@ func (b_ BitmapImageRep) BytesPerPlane() int { return rv } -// The minimum number of bytes required to specify a scan line in each data plane. [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/1395454-bytesperrow?language=objc -func (b_ BitmapImageRep) BytesPerRow() int { - rv := objc.Call[int](b_, objc.Sel("bytesPerRow")) +// [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 } -// The color space of the bitmap. [Full Topic] +// The minimum number of bytes required to specify a scan line in each data plane. [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")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsbitmapimagerep/1395454-bytesperrow?language=objc +func (b_ BitmapImageRep) BytesPerRow() int { + rv := objc.Call[int](b_, objc.Sel("bytesPerRow")) return rv } @@ -434,11 +435,11 @@ func (b_ BitmapImageRep) IsPlanar() bool { 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 } @@ -449,3 +450,27 @@ 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 f1076b34..27126fd6 100644 --- a/macos/appkit/box.gen.go +++ b/macos/appkit/box.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package appkit @@ -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) - TitlePosition() TitlePosition - SetTitlePosition(value TitlePosition) - ContentView() View - SetContentView(value IView) - TitleRect() foundation.Rect - TitleCell() objc.Object + Title() string + SetTitle(value string) 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] @@ -66,10 +66,6 @@ func (bc _BoxClass) Alloc() Box { return rv } -func Box_Alloc() Box { - return BoxClass.Alloc() -} - func (bc _BoxClass) New() Box { rv := objc.Call[Box](bc, objc.Sel("new")) rv.Autorelease() @@ -113,67 +109,90 @@ func (b_ Box) SetFrameFromContentFrame(contentFrame foundation.Rect) { objc.Call[objc.Void](b_, objc.Sel("setFrameFromContentFrame:"), contentFrame) } -// A Boolean value that indicates whether the receiver is transparent. [Full Topic] +// The cell used to display the receiver’s title. [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/1429789-titlecell?language=objc +func (b_ Box) TitleCell() objc.Object { + rv := objc.Call[objc.Object](b_, objc.Sel("titleCell")) return rv } -// A Boolean value that indicates whether the receiver is transparent. [Full Topic] +// The distances between the border and the content view. [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) +// [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 } -// A constant representing the title position. [Full Topic] +// The distances between the border and the content view. [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/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 } -// A constant representing the title position. [Full Topic] +// The rectangle in which the receiver’s title is drawn. [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/1429785-titlerect?language=objc +func (b_ Box) TitleRect() foundation.Rect { + rv := objc.Call[foundation.Rect](b_, objc.Sel("titleRect")) + return rv } -// The receiver’s content view. [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/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/1429839-bordercolor?language=objc +func (b_ Box) BorderColor() Color { + rv := objc.Call[Color](b_, objc.Sel("borderColor")) return rv } -// The receiver’s content view. [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/1429818-contentview?language=objc -func (b_ Box) SetContentView(value IView) { - objc.Call[objc.Void](b_, objc.Sel("setContentView:"), objc.Ptr(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:"), objc.Ptr(value)) } -// The rectangle in which the receiver’s title is drawn. [Full Topic] +// A Boolean value that indicates whether the receiver is transparent. [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")) +// [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 cell used to display the receiver’s title. [Full Topic] +// A Boolean value that indicates whether the receiver is transparent. [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")) +// [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] +// +// [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 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 @@ -189,21 +208,6 @@ 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:"), objc.Ptr(value)) -} - // The receiver’s box type. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/appkit/nsbox/1429822-boxtype?language=objc @@ -219,49 +223,64 @@ func (b_ Box) SetBoxType(value BoxType) { objc.Call[objc.Void](b_, objc.Sel("setBoxType:"), value) } -// The receiver’s title. [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/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/1429831-borderwidth?language=objc +func (b_ Box) BorderWidth() float64 { + rv := objc.Call[float64](b_, objc.Sel("borderWidth")) return rv } -// The receiver’s title. [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/1429795-title?language=objc -func (b_ Box) SetTitle(value string) { - objc.Call[objc.Void](b_, objc.Sel("setTitle:"), 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 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:"), objc.Ptr(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:"), objc.Ptr(value)) } -// The width of the receiver’s border when the receiver is a custom box with a simple line border. [Full Topic] +// 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/1429831-borderwidth?language=objc -func (b_ Box) BorderWidth() float64 { - rv := objc.Call[float64](b_, objc.Sel("borderWidth")) +// [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 width of the receiver’s border when the receiver is a custom box with a simple line border. [Full Topic] +// 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/1429831-borderwidth?language=objc -func (b_ Box) SetBorderWidth(value float64) { - objc.Call[objc.Void](b_, objc.Sel("setBorderWidth:"), value) +// [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:"), objc.Ptr(value)) +} + +// A constant representing the title position. [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")) + return rv +} + +// A constant representing the title position. [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) } // The font object used to draw the receiver’s title. [Full Topic] @@ -278,26 +297,3 @@ func (b_ Box) TitleFont() Font { func (b_ Box) SetTitleFont(value IFont) { objc.Call[objc.Void](b_, objc.Sel("setTitleFont:"), objc.Ptr(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 f3f608b2..33068d11 100644 --- a/macos/appkit/browser.gen.go +++ b/macos/appkit/browser.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package appkit @@ -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 - 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 - DrawTitleOfColumnInRect(column int, rect foundation.Rect) 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) - DraggingImageForRowsWithIndexesInColumnWithEventOffset(rowIndexes foundation.IIndexSet, column int, event IEvent, dragImageOffset foundation.PointPointer) Image - SelectAll(sender objc.IObject) + TitleFrameOfColumn(column int) foundation.Rect FrameOfColumn(column int) foundation.Rect - ScrollColumnsRightBy(shiftAmount int) - SetTitleOfColumn(string_ string, column int) - IsLeafItem(item objc.IObject) bool - ReloadColumn(column int) - FrameOfInsideOfColumn(column int) foundation.Rect EditItemAtIndexPathWithEventSelect(indexPath foundation.IIndexPath, event IEvent, select_ bool) - SelectRowIndexesInColumn(indexes foundation.IIndexSet, column int) - TitleOfColumn(column int) string - NoteHeightOfRowsWithIndexesChangedInColumn(indexSet foundation.IIndexSet, columnIndex int) - ValidateVisibleColumns() - CanDragRowsWithIndexesInColumnWithEvent(rowIndexes foundation.IIndexSet, column int, event IEvent) bool + DrawTitleOfColumnInRect(column int, rect foundation.Rect) + SelectAll(sender objc.IObject) SetDraggingSourceOperationMaskForLocal(mask DragOperation, isLocal bool) - ColumnWidthForColumnContentWidth(columnContentWidth float64) float64 - SetCellClass(factoryId objc.IClass) AddColumn() - FrameOfRowInColumn(row int, column int) foundation.Rect + 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() - ItemAtRowInColumn(row int, column int) objc.Object - SetWidthOfColumn(columnWidth float64, columnIndex int) + IndexPathForColumn(column int) foundation.IndexPath + 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 + SetTitleOfColumn(string_ string, column int) + 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 + SelectRowIndexesInColumn(indexes foundation.IIndexSet, column int) ParentForItemsInColumn(column int) objc.Object + IsLeafItem(item objc.IObject) 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 + 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) DoubleAction() objc.Selector SetDoubleAction(value objc.Selector) - SelectedCells() []Cell - PrefersAllColumnUserResizing() bool - SetPrefersAllColumnUserResizing(value bool) + 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) SelectedCell() objc.Object - SelectionIndexPath() foundation.IndexPath - SetSelectionIndexPath(value foundation.IIndexPath) - AllowsEmptySelection() bool - SetAllowsEmptySelection(value bool) - RowHeight() float64 - SetRowHeight(value float64) + FirstVisibleColumn() int + MaxVisibleColumns() int + SetMaxVisibleColumns(value int) 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 + 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) + RowHeight() float64 + SetRowHeight(value float64) + SelectedCells() []Cell ColumnResizingType() BrowserColumnResizingType SetColumnResizingType(value BrowserColumnResizingType) - FirstVisibleColumn() int - ReusesColumns() bool - SetReusesColumns(value bool) - Delegate() BrowserDelegateWrapper - SetDelegate(value PBrowserDelegate) - SetDelegateObject(valueObject objc.IObject) + AllowsEmptySelection() bool + SetAllowsEmptySelection(value bool) + ClickedColumn() int 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 + ReusesColumns() bool + SetReusesColumns(value bool) + CellPrototype() objc.Object + SetCellPrototype(value objc.IObject) 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) + Delegate() BrowserDelegateObject + SetDelegate(value PBrowserDelegate) + SetDelegateObject(valueObject objc.IObject) } // An interface that displays a hierarchically organized list of data items that can be navigated and selected. [Full Topic] @@ -148,10 +148,6 @@ func (bc _BrowserClass) Alloc() Browser { return rv } -func Browser_Alloc() Browser { - return BrowserClass.Alloc() -} - func (bc _BrowserClass) New() Browser { rv := objc.Call[Browser](bc, objc.Sel("new")) rv.Autorelease() @@ -181,6 +177,21 @@ 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:"), objc.Ptr(rowIndexes), column, objc.Ptr(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 @@ -189,140 +200,114 @@ func (b_ Browser) SendAction() bool { 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 path to be displayed by the browser. [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/1407751-setpath?language=objc +func (b_ Browser) SetPath(path string) bool { + rv := objc.Call[bool](b_, objc.Sel("setPath:"), path) + return rv } -// Scrolls the specified row to be visible within the specified column. [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/1407719-scrollrowtovisible?language=objc -func (b_ Browser) ScrollRowToVisibleInColumn(row int, column int) { - objc.Call[objc.Void](b_, objc.Sel("scrollRowToVisible:inColumn:"), row, column) +// [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) } -// Updates the rows in the column with the specified column index with indexes in the specified set. [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/1407805-reloaddataforrowindexes?language=objc -func (b_ Browser) ReloadDataForRowIndexesInColumn(rowIndexes foundation.IIndexSet, column int) { - objc.Call[objc.Void](b_, objc.Sel("reloadDataForRowIndexes:inColumn:"), objc.Ptr(rowIndexes), 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 bounds of the title frame for 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/1407544-titleframeofcolumn?language=objc +func (b_ Browser) TitleFrameOfColumn(column int) foundation.Rect { + rv := objc.Call[foundation.Rect](b_, objc.Sel("titleFrameOfColumn:"), column) return rv } -// Returns the row index of the selected cell in the specified column. [Full Topic] +// Returns the rectangle containing the given column. [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) +// [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 last (lowest) cell selected in the given column. [Full Topic] +// Begins editing the item at the specified path. [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/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:"), objc.Ptr(indexPath), objc.Ptr(event), select_) } -// Returns the content width for a given column width. [Full Topic] +// Draws the title for the specified column within the given rectangle. [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) - return rv +// [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) } -// Selects the cell at the specified row and column index. [Full Topic] +// Selects all cells in the last column of the browser. [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/1407717-selectall?language=objc +func (b_ Browser) SelectAll(sender objc.IObject) { + objc.Call[objc.Void](b_, objc.Sel("selectAll:"), sender) } -// Returns the default column width of the browser’s columns. [Full Topic] +// Specifies the drag-operation mask for dragging operations with local or external destinations. [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 +// [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 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) - return rv +// [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 bounds of the title frame for the specified column. [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/1407544-titleframeofcolumn?language=objc -func (b_ Browser) TitleFrameOfColumn(column int) foundation.Rect { - rv := objc.Call[foundation.Rect](b_, objc.Sel("titleFrameOfColumn:"), column) - return rv +// [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:"), objc.Ptr(rowIndexes), column) } -// Draws the title for the specified column within the given rectangle. [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/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/1407811-setcellclass?language=objc +func (b_ Browser) SetCellClass(factoryId objc.IClass) { + objc.Call[objc.Void](b_, objc.Sel("setCellClass:"), objc.Ptr(factoryId)) } -// Sets the path to be displayed by the browser. [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/1407751-setpath?language=objc -func (b_ Browser) SetPath(path string) bool { - rv := objc.Call[bool](b_, objc.Sel("setPath:"), path) +// [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 } -// Provides the indexes of the selected rows in a given column of the browser. [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/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/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:"), objc.Ptr(rowIndexes), column, objc.Ptr(event), dragImageOffset) return rv } -// 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) -} - -// 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] +// 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/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 +// [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")) } // Returns the index path of the item whose children are displayed in the given column. [Full Topic] @@ -333,13 +318,6 @@ 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 @@ -347,34 +325,44 @@ func (b_ Browser) DoDoubleClick(sender objc.IObject) { objc.Call[objc.Void](b_, objc.Sel("doDoubleClick:"), sender) } -// Provides an image to represent dragged rows during a drag operation on the browser. [Full Topic] +// Returns the default column width of the browser’s columns. [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:"), objc.Ptr(rowIndexes), column, objc.Ptr(event), dragImageOffset) +// [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 } -// Selects all cells in the last column of the browser. [Full Topic] +// Returns the item at the specified index path. [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/1407673-itematindexpath?language=objc +func (b_ Browser) ItemAtIndexPath(indexPath foundation.IIndexPath) objc.Object { + rv := objc.Call[objc.Object](b_, objc.Sel("itemAtIndexPath:"), objc.Ptr(indexPath)) + return rv } -// Returns the rectangle containing the given column. [Full Topic] +// Returns the title displayed for the given 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/1407794-titleofcolumn?language=objc +func (b_ Browser) TitleOfColumn(column int) string { + rv := objc.Call[string](b_, objc.Sel("titleOfColumn:"), column) return rv } -// Scrolls columns right by the specified number of columns. [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/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/1407807-selectedrowindexesincolumn?language=objc +func (b_ Browser) SelectedRowIndexesInColumn(column int) foundation.IndexSet { + rv := objc.Call[foundation.IndexSet](b_, objc.Sel("selectedRowIndexesInColumn:"), column) + return rv +} + +// Returns the row index of the selected cell in the specified column. [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 } // Sets the title of the given column. [Full Topic] @@ -384,14 +372,6 @@ func (b_ Browser) SetTitleOfColumn(string_ string, column int) { objc.Call[objc.Void](b_, objc.Sel("setTitle:ofColumn:"), string_, column) } -// Returns whether the specified item is a leaf item. [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) - return rv -} - // Reloads the given column. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/appkit/nsbrowser/1407764-reloadcolumn?language=objc @@ -399,6 +379,28 @@ 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:"), objc.Ptr(indexSet), columnIndex) +} + +// Returns the content width for a given column width. [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) + return rv +} + +// 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) +} + // Returns the rectangle containing the specified column, not including borders. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/appkit/nsbrowser/1407617-frameofinsideofcolumn?language=objc @@ -407,55 +409,50 @@ func (b_ Browser) FrameOfInsideOfColumn(column int) foundation.Rect { return rv } -// Begins editing the item at the specified path. [Full Topic] +// Returns the width of the specified 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:"), objc.Ptr(indexPath), objc.Ptr(event), select_) +// [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 } -// Specifies the selected rows in a given column of the browser. [Full Topic] +// Loads column 0; unloads previously loaded columns. [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:"), objc.Ptr(indexes), column) +// [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")) } -// Returns the title displayed for the given column. [Full Topic] +// 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/1407794-titleofcolumn?language=objc -func (b_ Browser) TitleOfColumn(column int) string { - rv := objc.Call[string](b_, objc.Sel("titleOfColumn:"), column) +// [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 } -// 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:"), objc.Ptr(indexSet), columnIndex) -} - -// Validates the browser’s visible 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/1407725-validatevisiblecolumns?language=objc -func (b_ Browser) ValidateVisibleColumns() { - objc.Call[objc.Void](b_, objc.Sel("validateVisibleColumns")) +// [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:"), objc.Ptr(indexes), column) } -// Indicates whether the browser can attempt to initiate a drag of the given rows for the given event. [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/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:"), objc.Ptr(rowIndexes), column, objc.Ptr(event)) +// [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 } -// Specifies the drag-operation mask for dragging operations with local or external destinations. [Full Topic] +// Returns whether the specified item is a leaf item. [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/1407713-isleafitem?language=objc +func (b_ Browser) IsLeafItem(item objc.IObject) bool { + rv := objc.Call[bool](b_, objc.Sel("isLeafItem:"), item) + return rv } // Returns the column width for the width of the given column’s content. [Full Topic] @@ -466,284 +463,283 @@ func (b_ Browser) ColumnWidthForColumnContentWidth(columnContentWidth float64) f return rv } -// Sets the class of the cell to be used by the matrices in the columns of the browser. [Full Topic] +// Returns the last (lowest) cell selected in the given column. [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:"), objc.Ptr(factoryId)) +// [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 } -// 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 } -// Returns the frame of the cell at the specified location, including the expandable arrow. [Full Topic] +// Selects the cell at the specified row and column index. [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 +// [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) } -// Gets the row and column coordinates for the specified point, if a cell exists at that point. [Full Topic] +// Sets the width of the specified column. [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) - return rv +// [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) } -// Adjusts the various subviews of the browser—scrollers, columns, titles, and so on—without redrawing. [Full Topic] +// Scrolls the specified row to be visible within the specified column. [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/1407719-scrollrowtovisible?language=objc +func (b_ Browser) ScrollRowToVisibleInColumn(row int, column int) { + objc.Call[objc.Void](b_, objc.Sel("scrollRowToVisible:inColumn:"), row, column) } -// Returns the item located at the specified row and column. [Full Topic] +// Responds to (single) mouse clicks in a column of the browser. [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) - return rv +// [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) } -// Sets the width of the specified column. [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/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/1407651-setdefaultcolumnwidth?language=objc +func (b_ Browser) SetDefaultColumnWidth(columnWidth float64) { + objc.Call[objc.Void](b_, objc.Sel("setDefaultColumnWidth:"), columnWidth) } -// Returns the item at the specified index path. [Full Topic] +// Returns the item located at the specified row and column. [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:"), objc.Ptr(indexPath)) +// [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 } -// Removes the column configuration data stored under the given name from the application’s user defaults. [Full Topic] +// Scrolls columns right by the specified number of columns. [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/1407684-scrollcolumnsrightby?language=objc +func (b_ Browser) ScrollColumnsRightBy(shiftAmount int) { + objc.Call[objc.Void](b_, objc.Sel("scrollColumnsRightBy:"), shiftAmount) } -// Removes the column configuration data stored under the given name from the application’s user defaults. [Full Topic] +// Scrolls to make the specified column visible. [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/1407516-scrollcolumntovisible?language=objc +func (b_ Browser) ScrollColumnToVisible(column int) { + objc.Call[objc.Void](b_, objc.Sel("scrollColumnToVisible:"), column) } -// Returns the width of 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/1407778-widthofcolumn?language=objc -func (b_ Browser) WidthOfColumn(column int) float64 { - rv := objc.Call[float64](b_, objc.Sel("widthOfColumn:"), 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 item that contains the children located in the specified column. [Full Topic] +// 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/1407570-parentforitemsincolumn?language=objc -func (b_ Browser) ParentForItemsInColumn(column int) objc.Object { - rv := objc.Call[objc.Object](b_, objc.Sel("parentForItemsInColumn:"), column) +// [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 } -// The browser’s double-click action method. [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/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/1407671-clickedrow?language=objc +func (b_ Browser) ClickedRow() int { + rv := objc.Call[int](b_, objc.Sel("clickedRow")) return rv } -// The browser’s double-click action method. [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/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/1407614-sendsactiononarrowkeys?language=objc +func (b_ Browser) SendsActionOnArrowKeys() bool { + rv := objc.Call[bool](b_, objc.Sel("sendsActionOnArrowKeys")) + return rv } -// All cells selected in the rightmost column. [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/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/1407614-sendsactiononarrowkeys?language=objc +func (b_ Browser) SetSendsActionOnArrowKeys(value bool) { + objc.Call[objc.Void](b_, objc.Sel("setSendsActionOnArrowKeys:"), 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] +// 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/1407690-prefersallcolumnuserresizing?language=objc -func (b_ Browser) PrefersAllColumnUserResizing() bool { - rv := objc.Call[bool](b_, objc.Sel("prefersAllColumnUserResizing")) +// [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 } -// 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] +// 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/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/1407564-takestitlefrompreviouscolumn?language=objc +func (b_ Browser) SetTakesTitleFromPreviousColumn(value bool) { + objc.Call[objc.Void](b_, objc.Sel("setTakesTitleFromPreviousColumn:"), value) } -// The last (rightmost and lowest) selected cell. [Full Topic] +// The index of the last visible column. [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")) +// [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 path of the item selected in the browser. [Full Topic] +// The minimum column width, in pixels. [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/1407513-mincolumnwidth?language=objc +func (b_ Browser) MinColumnWidth() float64 { + rv := objc.Call[float64](b_, objc.Sel("minColumnWidth")) return rv } -// The index path of the item selected in the browser. [Full Topic] +// The minimum column width, in pixels. [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:"), objc.Ptr(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) } -// A Boolean that indicates whether there can be nothing selected. [Full Topic] +// The browser’s double-click action method. [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/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 there can be nothing selected. [Full Topic] +// The browser’s double-click action method. [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/1407698-doubleaction?language=objc +func (b_ Browser) SetDoubleAction(value objc.Selector) { + objc.Call[objc.Void](b_, objc.Sel("setDoubleAction:"), value) } -// The height of the browser’s rows. [Full Topic] +// The name used to automatically save the browser’s column configuration. [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/1407650-columnsautosavename?language=objc +func (b_ Browser) ColumnsAutosaveName() BrowserColumnsAutosaveName { + rv := objc.Call[BrowserColumnsAutosaveName](b_, objc.Sel("columnsAutosaveName")) return rv } -// The height of the browser’s rows. [Full Topic] +// The name used to automatically save the browser’s column configuration. [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/1407650-columnsautosavename?language=objc +func (b_ Browser) SetColumnsAutosaveName(value BrowserColumnsAutosaveName) { + objc.Call[objc.Void](b_, objc.Sel("setColumnsAutosaveName:"), value) } -// A Boolean that indicates whether the browser automatically hides its scroller. [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/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/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 automatically hides its scroller. [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/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/1407536-selectionindexpaths?language=objc +func (b_ Browser) SetSelectionIndexPaths(value []foundation.IIndexPath) { + objc.Call[objc.Void](b_, objc.Sel("setSelectionIndexPaths:"), value) } -// The column number of the cell that the user clicked to display a context menu. [Full Topic] +// A Boolean that indicates whether the browser has a horizontal scroller. [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/1407551-hashorizontalscroller?language=objc +func (b_ Browser) HasHorizontalScroller() bool { + rv := objc.Call[bool](b_, objc.Sel("hasHorizontalScroller")) return rv } -// A Boolean that indicates whether columns display titles. [Full Topic] +// A Boolean that indicates whether the browser has a horizontal scroller. [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")) - return rv +// [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) } -// A Boolean that indicates whether columns display titles. [Full Topic] +// Returns the NSBrowserCell class. [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/1407505-cellclass?language=objc +func (bc _BrowserClass) CellClass() objc.Class { + rv := objc.Call[objc.Class](bc, objc.Sel("cellClass")) + return rv } -// The prototype NSCell for displaying items in the matrices in the columns of the browser. [Full Topic] +// Returns the NSBrowserCell class. [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")) - return rv +// [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] +// A Boolean that indicates whether column 0 is 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/1407758-loaded?language=objc +func (b_ Browser) IsLoaded() bool { + rv := objc.Call[bool](b_, objc.Sel("isLoaded")) + return rv } -// The index of the last visible column. [Full Topic] +// The height of the column titles for the browser. [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/1407709-titleheight?language=objc +func (b_ Browser) TitleHeight() float64 { + rv := objc.Call[float64](b_, objc.Sel("titleHeight")) return rv } -// A Boolean that indicates whether the browser allows keystroke-based selection (type select). [Full Topic] +// The index of the last column loaded. [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/1407715-lastcolumn?language=objc +func (b_ Browser) LastColumn() int { + rv := objc.Call[int](b_, objc.Sel("lastColumn")) return rv } -// A Boolean that indicates whether the browser allows keystroke-based selection (type select). [Full Topic] +// The index of the last column loaded. [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) +// [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) } -// A Boolean that indicates whether column 0 is loaded. [Full Topic] +// A Boolean that indicates whether columns are separated by bezeled borders. [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")) +// [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 } -// A constant indicating the browser’s column resizing type. [Full Topic] +// A Boolean that indicates whether columns are separated by bezeled borders. [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")) - return rv +// [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) } -// A constant indicating the browser’s column resizing type. [Full Topic] +// The last (rightmost and lowest) selected cell. [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/1407730-selectedcell?language=objc +func (b_ Browser) SelectedCell() objc.Object { + rv := objc.Call[objc.Object](b_, objc.Sel("selectedCell")) + return rv } // The index of the first visible column. [Full Topic] @@ -754,58 +750,79 @@ func (b_ Browser) FirstVisibleColumn() int { return rv } -// A Boolean that indicates whether the browser reuses matrix objects after their columns are unloaded. [Full Topic] +// The maximum number of visible columns. [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/1407749-maxvisiblecolumns?language=objc +func (b_ Browser) MaxVisibleColumns() int { + rv := objc.Call[int](b_, objc.Sel("maxVisibleColumns")) return rv } -// A Boolean that indicates whether the browser reuses matrix objects after their columns are unloaded. [Full Topic] +// The maximum number of visible columns. [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/1407749-maxvisiblecolumns?language=objc +func (b_ Browser) SetMaxVisibleColumns(value int) { + objc.Call[objc.Void](b_, objc.Sel("setMaxVisibleColumns:"), value) } -// The browser’s delegate. [Full Topic] +// A Boolean that indicates whether the browser automatically hides its scroller. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsbrowser/1407686-delegate?language=objc -func (b_ Browser) Delegate() BrowserDelegateWrapper { - rv := objc.Call[BrowserDelegateWrapper](b_, objc.Sel("delegate")) +// [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 } -// The browser’s delegate. [Full Topic] +// A Boolean that indicates whether the browser automatically hides its scroller. [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/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 allows keystroke-based selection (type select). [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")) + 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] +// +// [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 } -// The browser’s delegate. [Full Topic] +// A Boolean that indicates whether the user can select multiple items. [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:"), objc.Ptr(valueObject)) +// [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) } -// The browser’s background color. [Full Topic] +// The index path of the item selected in the browser. [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/1407507-selectionindexpath?language=objc +func (b_ Browser) SelectionIndexPath() foundation.IndexPath { + rv := objc.Call[foundation.IndexPath](b_, objc.Sel("selectionIndexPath")) return rv } -// The browser’s background color. [Full Topic] +// The index path of the item selected in the browser. [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:"), objc.Ptr(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:"), objc.Ptr(value)) } // A Boolean that indicates whether the user can select branch items. [Full Topic] @@ -823,214 +840,193 @@ func (b_ Browser) SetAllowsBranchSelection(value bool) { objc.Call[objc.Void](b_, objc.Sel("setAllowsBranchSelection:"), value) } -// An array containing the index paths of all items selected in the browser. [Full Topic] +// The index of the last column with a selected item. [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/1407568-selectedcolumn?language=objc +func (b_ Browser) SelectedColumn() int { + rv := objc.Call[int](b_, objc.Sel("selectedColumn")) return rv } -// An array containing the index paths of all items selected in the browser. [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/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/1407690-prefersallcolumnuserresizing?language=objc +func (b_ Browser) PrefersAllColumnUserResizing() bool { + rv := objc.Call[bool](b_, objc.Sel("prefersAllColumnUserResizing")) + return rv } -// The number of visible columns. [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/1407700-numberofvisiblecolumns?language=objc -func (b_ Browser) NumberOfVisibleColumns() int { - rv := objc.Call[int](b_, objc.Sel("numberOfVisibleColumns")) - return rv +// [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) } -// A Boolean that indicates whether pressing an arrow key causes an action message to be sent. [Full Topic] +// A Boolean that indicates whether columns display titles. [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")) +// [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 } -// A Boolean that indicates whether pressing an arrow key causes an action message to be sent. [Full Topic] +// A Boolean that indicates whether columns display titles. [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/1407735-titled?language=objc +func (b_ Browser) SetTitled(value bool) { + objc.Call[objc.Void](b_, objc.Sel("setTitled:"), value) } -// The row number of the cell that the user clicked to display a context menu. [Full Topic] +// The height of the browser’s rows. [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/1407642-rowheight?language=objc +func (b_ Browser) RowHeight() float64 { + rv := objc.Call[float64](b_, objc.Sel("rowHeight")) return rv } -// A Boolean that indicates whether the user can select multiple items. [Full Topic] +// The height of the browser’s rows. [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/1407642-rowheight?language=objc +func (b_ Browser) SetRowHeight(value float64) { + objc.Call[objc.Void](b_, objc.Sel("setRowHeight:"), value) } -// A Boolean that indicates whether the user can select multiple items. [Full Topic] +// All cells selected in the rightmost column. [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/1407588-selectedcells?language=objc +func (b_ Browser) SelectedCells() []Cell { + rv := objc.Call[[]Cell](b_, objc.Sel("selectedCells")) + return rv } -// The index of the last column with a selected item. [Full Topic] +// A constant indicating the browser’s column resizing type. [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/1407694-columnresizingtype?language=objc +func (b_ Browser) ColumnResizingType() BrowserColumnResizingType { + rv := objc.Call[BrowserColumnResizingType](b_, objc.Sel("columnResizingType")) return rv } -// The height of the column titles for the browser. [Full Topic] +// A constant indicating the browser’s column resizing type. [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")) - 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 path separator. [Full Topic] +// A Boolean that indicates whether there can be nothing selected. [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/1407585-allowsemptyselection?language=objc +func (b_ Browser) AllowsEmptySelection() bool { + rv := objc.Call[bool](b_, objc.Sel("allowsEmptySelection")) return rv } -// The path separator. [Full Topic] +// A Boolean that indicates whether there can be nothing selected. [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/1407585-allowsemptyselection?language=objc +func (b_ Browser) SetAllowsEmptySelection(value bool) { + objc.Call[objc.Void](b_, objc.Sel("setAllowsEmptySelection:"), value) } -// A Boolean that indicates whether columns are separated by bezeled borders. [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/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/1407590-clickedcolumn?language=objc +func (b_ Browser) ClickedColumn() int { + rv := objc.Call[int](b_, objc.Sel("clickedColumn")) return rv } -// A Boolean that indicates whether columns are separated by bezeled borders. [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) -} - -// The maximum number of visible columns. [Full Topic] +// The browser’s background color. [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")) +// [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 maximum number of visible columns. [Full Topic] +// The browser’s background color. [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) +// [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:"), objc.Ptr(value)) } -// The name used to automatically save the browser’s column configuration. [Full Topic] +// The number of visible columns. [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/1407700-numberofvisiblecolumns?language=objc +func (b_ Browser) NumberOfVisibleColumns() int { + rv := objc.Call[int](b_, objc.Sel("numberOfVisibleColumns")) return rv } -// The name used to automatically save the browser’s column configuration. [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) -} - -// Returns the NSBrowserCell class. [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/1407505-cellclass?language=objc -func (bc _BrowserClass) CellClass() objc.Class { - rv := objc.Call[objc.Class](bc, objc.Sel("cellClass")) +// [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 } -// Returns the NSBrowserCell class. [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/1407505-cellclass?language=objc -func Browser_CellClass() objc.Class { - return BrowserClass.CellClass() +// [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) } -// The index of the last column 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/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/1407662-cellprototype?language=objc +func (b_ Browser) CellPrototype() objc.Object { + rv := objc.Call[objc.Object](b_, objc.Sel("cellPrototype")) return rv } -// The index of the last column 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/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/1407662-cellprototype?language=objc +func (b_ Browser) SetCellPrototype(value objc.IObject) { + objc.Call[objc.Void](b_, objc.Sel("setCellPrototype:"), value) } -// The minimum column width, in pixels. [Full Topic] +// The path separator. [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/1407688-pathseparator?language=objc +func (b_ Browser) PathSeparator() string { + rv := objc.Call[string](b_, objc.Sel("pathSeparator")) return rv } -// The minimum column width, in pixels. [Full Topic] +// The path separator. [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/1407688-pathseparator?language=objc +func (b_ Browser) SetPathSeparator(value string) { + objc.Call[objc.Void](b_, objc.Sel("setPathSeparator:"), value) } -// A Boolean that indicates whether a column takes its title from the selected cell in the previous column. [Full Topic] +// The browser’s delegate. [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/1407686-delegate?language=objc +func (b_ Browser) Delegate() BrowserDelegateObject { + rv := objc.Call[BrowserDelegateObject](b_, objc.Sel("delegate")) return rv } -// 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/1407564-takestitlefrompreviouscolumn?language=objc -func (b_ Browser) SetTakesTitleFromPreviousColumn(value bool) { - objc.Call[objc.Void](b_, objc.Sel("setTakesTitleFromPreviousColumn:"), value) -} - -// A Boolean that indicates whether the browser has a horizontal scroller. [Full Topic] +// The browser’s delegate. [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")) - 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 browser has a horizontal scroller. [Full Topic] +// The browser’s delegate. [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/1407686-delegate?language=objc +func (b_ Browser) SetDelegateObject(valueObject objc.IObject) { + objc.Call[objc.Void](b_, objc.Sel("setDelegate:"), objc.Ptr(valueObject)) } diff --git a/macos/appkit/browser_cell.gen.go b/macos/appkit/browser_cell.gen.go index 06a1e6e9..955bfa97 100644 --- a/macos/appkit/browser_cell.gen.go +++ b/macos/appkit/browser_cell.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package appkit @@ -18,15 +18,15 @@ type _BrowserCellClass struct { // An interface definition for the [BrowserCell] class. type IBrowserCell interface { ICell - HighlightColorInView(controlView IView) Color - Set() Reset() - IsLeaf() bool - SetLeaf(value bool) - AlternateImage() Image - SetAlternateImage(value IImage) + Set() + HighlightColorInView(controlView IView) Color IsLoaded() bool SetLoaded(value bool) + AlternateImage() Image + SetAlternateImage(value IImage) + IsLeaf() bool + SetLeaf(value bool) } // The user interface of a browser. [Full Topic] @@ -75,10 +75,6 @@ func (bc _BrowserCellClass) Alloc() BrowserCell { return rv } -func BrowserCell_Alloc() BrowserCell { - return BrowserCellClass.Alloc() -} - func (bc _BrowserCellClass) New() BrowserCell { rv := objc.Call[BrowserCell](bc, objc.Sel("new")) rv.Autorelease() @@ -94,12 +90,11 @@ func (b_ BrowserCell) Init() BrowserCell { return rv } -// Returns the highlight color that the receiver wants to display. [Full Topic] +// Unhighlights the receiver and unsets its state. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsbrowsercell/1435767-highlightcolorinview?language=objc -func (b_ BrowserCell) HighlightColorInView(controlView IView) Color { - rv := objc.Call[Color](b_, objc.Sel("highlightColorInView:"), objc.Ptr(controlView)) - return rv +// [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] @@ -109,41 +104,27 @@ func (b_ BrowserCell) Set() { objc.Call[objc.Void](b_, objc.Sel("set")) } -// 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")) -} - -// A Boolean that indicates whether the browser cell is a leaf or a branch cell. [Full Topic] +// Returns the highlight color that the receiver wants to display. [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/1435767-highlightcolorinview?language=objc +func (b_ BrowserCell) HighlightColorInView(controlView IView) Color { + rv := objc.Call[Color](b_, objc.Sel("highlightColorInView:"), objc.Ptr(controlView)) return rv } -// 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/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] +// Returns the default image for branch cells in a browser. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsbrowsercell/1435768-alternateimage?language=objc -func (b_ BrowserCell) AlternateImage() Image { - rv := objc.Call[Image](b_, objc.Sel("alternateImage")) +// [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 } -// The browser cell’s image for the highlighted state. [Full Topic] +// Returns the default image for branch cells in a browser. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsbrowsercell/1435768-alternateimage?language=objc -func (b_ BrowserCell) SetAlternateImage(value IImage) { - objc.Call[objc.Void](b_, objc.Sel("setAlternateImage:"), objc.Ptr(value)) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsbrowsercell/1435775-branchimage?language=objc +func BrowserCell_BranchImage() Image { + return BrowserCellClass.BranchImage() } // A Boolean that indicates whether the cell is ready to display. [Full Topic] @@ -161,6 +142,21 @@ func (b_ BrowserCell) SetLoaded(value bool) { objc.Call[objc.Void](b_, objc.Sel("setLoaded:"), value) } +// The browser cell’s image for the highlighted state. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsbrowsercell/1435768-alternateimage?language=objc +func (b_ BrowserCell) AlternateImage() Image { + rv := objc.Call[Image](b_, objc.Sel("alternateImage")) + return rv +} + +// The browser cell’s image for the highlighted state. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsbrowsercell/1435768-alternateimage?language=objc +func (b_ BrowserCell) SetAlternateImage(value IImage) { + objc.Call[objc.Void](b_, objc.Sel("setAlternateImage:"), objc.Ptr(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 @@ -176,17 +172,17 @@ func BrowserCell_HighlightedBranchImage() Image { return BrowserCellClass.HighlightedBranchImage() } -// Returns the default image for branch cells in a browser. [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/1435775-branchimage?language=objc -func (bc _BrowserCellClass) BranchImage() Image { - rv := objc.Call[Image](bc, objc.Sel("branchImage")) +// [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 } -// Returns the default image for branch cells in a browser. [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/1435775-branchimage?language=objc -func BrowserCell_BranchImage() Image { - return BrowserCellClass.BranchImage() +// [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) } diff --git a/macos/appkit/browser_delegate.gen.go b/macos/appkit/browser_delegate.gen.go index f1fa3b90..8d1f2b15 100644 --- a/macos/appkit/browser_delegate.gen.go +++ b/macos/appkit/browser_delegate.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package appkit @@ -12,68 +12,361 @@ import ( // [Full Topic]: https://developer.apple.com/documentation/appkit/nsbrowserdelegate?language=objc type PBrowserDelegate interface { // optional - BrowserColumnConfigurationDidChange(notification foundation.Notification) - HasBrowserColumnConfigurationDidChange() bool + BrowserNumberOfChildrenOfItem(browser Browser, item objc.Object) int + HasBrowserNumberOfChildrenOfItem() bool // optional - RootItemForBrowser(browser Browser) objc.IObject - HasRootItemForBrowser() bool + 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 - BrowserObjectValueForItem(browser Browser, item objc.Object) objc.IObject - HasBrowserObjectValueForItem() bool + 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 + + // optional + BrowserSelectionIndexesForProposedSelectionInColumn(browser Browser, proposedSelectionIndexes foundation.IndexSet, column int) foundation.IndexSet + HasBrowserSelectionIndexesForProposedSelectionInColumn() 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 { - _BrowserColumnConfigurationDidChange func(notification foundation.Notification) - _RootItemForBrowser func(browser Browser) objc.IObject - _BrowserDidScroll func(sender Browser) - _BrowserObjectValueForItem func(browser Browser, item objc.Object) objc.IObject - _BrowserWillScroll func(sender Browser) + _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) HasBrowserColumnConfigurationDidChange() bool { - return di._BrowserColumnConfigurationDidChange != nil +func (di *BrowserDelegate) HasBrowserNumberOfChildrenOfItem() bool { + return di._BrowserNumberOfChildrenOfItem != nil } -// Used by clients to implement their own column width persistence. [Full Topic] +// Asks the delegate for the number of children the given item has. [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 +// [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 } -// Used by clients to implement their own column width persistence. [Full Topic] +// Asks the delegate for the number of children the given item has. [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) +// [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) HasRootItemForBrowser() bool { - return di._RootItemForBrowser != nil +func (di *BrowserDelegate) HasBrowserTitleOfColumn() bool { + return di._BrowserTitleOfColumn != nil } -// Asks the delegate to return the root item of the browser. [Full Topic] +// Asks the delegate for the title to display above the specified column. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsbrowserdelegate/1407526-rootitemforbrowser?language=objc -func (di *BrowserDelegate) SetRootItemForBrowser(f func(browser Browser) objc.IObject) { - di._RootItemForBrowser = f +// [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 to return the root item of the browser. [Full Topic] +// Asks the delegate for the title to display above the specified column. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsbrowserdelegate/1407526-rootitemforbrowser?language=objc -func (di *BrowserDelegate) RootItemForBrowser(browser Browser) objc.IObject { - return di._RootItemForBrowser(browser) +// [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 @@ -92,22 +385,209 @@ func (di *BrowserDelegate) SetBrowserDidScroll(f func(sender Browser)) { func (di *BrowserDelegate) BrowserDidScroll(sender Browser) { di._BrowserDidScroll(sender) } -func (di *BrowserDelegate) HasBrowserObjectValueForItem() bool { - return di._BrowserObjectValueForItem != nil +func (di *BrowserDelegate) HasRootItemForBrowser() bool { + return di._RootItemForBrowser != nil } -// Returns the object that the specified item uses to draw its contents. [Full Topic] +// Asks the delegate to return the root item of the browser. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsbrowserdelegate/1407594-browser?language=objc -func (di *BrowserDelegate) SetBrowserObjectValueForItem(f func(browser Browser, item objc.Object) objc.IObject) { - di._BrowserObjectValueForItem = 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 } -// Returns the object that the specified item uses to draw its contents. [Full Topic] +// Asks the delegate to return the root item of the browser. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsbrowserdelegate/1407594-browser?language=objc -func (di *BrowserDelegate) BrowserObjectValueForItem(browser Browser, item objc.Object) objc.IObject { - return di._BrowserObjectValueForItem(browser, item) +// [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 @@ -126,65 +606,538 @@ func (di *BrowserDelegate) SetBrowserWillScroll(f func(sender Browser)) { func (di *BrowserDelegate) BrowserWillScroll(sender Browser) { di._BrowserWillScroll(sender) } +func (di *BrowserDelegate) HasBrowserShouldShowCellExpansionForRowColumn() bool { + return di._BrowserShouldShowCellExpansionForRowColumn != nil +} -// A concrete type wrapper for the [PBrowserDelegate] protocol. -type BrowserDelegateWrapper struct { +// 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 +} + +// 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 +} + +// 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) +} +func (di *BrowserDelegate) HasBrowserSelectCellWithStringInColumn() bool { + return di._BrowserSelectCellWithStringInColumn != nil +} + +// Asks the delegate to select the cell with the given title in the specified column. [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 +} + +// Asks the delegate to select the cell with the given title in the specified column. [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) +} +func (di *BrowserDelegate) HasBrowserWillDisplayCellAtRowColumn() bool { + return di._BrowserWillDisplayCellAtRowColumn != 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] +// +// [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 +} + +// 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 (di *BrowserDelegate) BrowserWillDisplayCellAtRowColumn(sender Browser, cell objc.Object, row int, column int) { + di._BrowserWillDisplayCellAtRowColumn(sender, cell, row, column) +} +func (di *BrowserDelegate) HasBrowserSelectionIndexesForProposedSelectionInColumn() bool { + return di._BrowserSelectionIndexesForProposedSelectionInColumn != 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] +// +// [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 +} + +// 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] +// +// [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) +} +func (di *BrowserDelegate) HasBrowserObjectValueForItem() bool { + return di._BrowserObjectValueForItem != nil +} + +// Returns the object that the specified item uses to draw its contents. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsbrowserdelegate/1407594-browser?language=objc +func (di *BrowserDelegate) SetBrowserObjectValueForItem(f func(browser Browser, item objc.Object) objc.Object) { + di._BrowserObjectValueForItem = f +} + +// Returns the object that the specified item uses to draw its contents. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsbrowserdelegate/1407594-browser?language=objc +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 +} + +// 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] +// +// [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 +} + +// 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] +// +// [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) +} + +// ensure impl type implements protocol interface +var _ PBrowserDelegate = (*BrowserDelegateObject)(nil) + +// A concrete type for the [PBrowserDelegate] protocol. +type BrowserDelegateObject struct { objc.Object } -func (b_ BrowserDelegateWrapper) HasBrowserColumnConfigurationDidChange() bool { - return b_.RespondsToSelector(objc.Sel("browserColumnConfigurationDidChange:")) +func (b_ BrowserDelegateObject) HasBrowserNumberOfChildrenOfItem() bool { + return b_.RespondsToSelector(objc.Sel("browser:numberOfChildrenOfItem:")) } -// Used by clients to implement their own column width persistence. [Full Topic] +// Asks the delegate for the number of children the given item has. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsbrowserdelegate/1407542-browsercolumnconfigurationdidcha?language=objc -func (b_ BrowserDelegateWrapper) BrowserColumnConfigurationDidChange(notification foundation.INotification) { - objc.Call[objc.Void](b_, objc.Sel("browserColumnConfigurationDidChange:"), objc.Ptr(notification)) +// [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:"), objc.Ptr(browser), item) + return rv } -func (b_ BrowserDelegateWrapper) HasRootItemForBrowser() bool { - return b_.RespondsToSelector(objc.Sel("rootItemForBrowser:")) +func (b_ BrowserDelegateObject) HasBrowserTitleOfColumn() bool { + return b_.RespondsToSelector(objc.Sel("browser:titleOfColumn:")) } -// Asks the delegate to return the root item of the browser. [Full Topic] +// Asks the delegate for the title to display above the specified column. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsbrowserdelegate/1407526-rootitemforbrowser?language=objc -func (b_ BrowserDelegateWrapper) RootItemForBrowser(browser IBrowser) objc.Object { - rv := objc.Call[objc.Object](b_, objc.Sel("rootItemForBrowser:"), objc.Ptr(browser)) +// [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:"), objc.Ptr(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:"), objc.Ptr(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:"), objc.Ptr(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:"), objc.Ptr(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:"), objc.Ptr(browser), row, column) return rv } -func (b_ BrowserDelegateWrapper) HasBrowserDidScroll() bool { +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:"), objc.Ptr(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:"), objc.Ptr(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:"), objc.Ptr(browser), objc.Ptr(rowIndexes), column, objc.Ptr(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:"), objc.Ptr(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:"), objc.Ptr(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_ BrowserDelegateWrapper) BrowserDidScroll(sender IBrowser) { +func (b_ BrowserDelegateObject) BrowserDidScroll(sender Browser) { objc.Call[objc.Void](b_, objc.Sel("browserDidScroll:"), objc.Ptr(sender)) } -func (b_ BrowserDelegateWrapper) HasBrowserObjectValueForItem() bool { - return b_.RespondsToSelector(objc.Sel("browser:objectValueForItem:")) +func (b_ BrowserDelegateObject) HasRootItemForBrowser() bool { + return b_.RespondsToSelector(objc.Sel("rootItemForBrowser:")) } -// Returns the object that the specified item uses to draw its contents. [Full Topic] +// Asks the delegate to return the root item of the browser. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsbrowserdelegate/1407594-browser?language=objc -func (b_ BrowserDelegateWrapper) BrowserObjectValueForItem(browser IBrowser, item objc.IObject) objc.Object { - rv := objc.Call[objc.Object](b_, objc.Sel("browser:objectValueForItem:"), objc.Ptr(browser), item) +// [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:"), objc.Ptr(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:"), objc.Ptr(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:"), objc.Ptr(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:"), objc.Ptr(browser), columnIndex, forUserResize, suggestedWidth) return rv } -func (b_ BrowserDelegateWrapper) HasBrowserWillScroll() bool { +func (b_ BrowserDelegateObject) HasBrowserColumnConfigurationDidChange() bool { + return b_.RespondsToSelector(objc.Sel("browserColumnConfigurationDidChange:")) +} + +// 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 (b_ BrowserDelegateObject) BrowserColumnConfigurationDidChange(notification foundation.Notification) { + objc.Call[objc.Void](b_, objc.Sel("browserColumnConfigurationDidChange:"), objc.Ptr(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:"), objc.Ptr(browser), objc.Ptr(rowIndexes), column, objc.Ptr(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:"), objc.Ptr(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:"), objc.Ptr(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:"), objc.Ptr(sender), column, objc.Ptr(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:"), objc.Ptr(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:"), objc.Ptr(browser), objc.Ptr(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:"), objc.Ptr(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_ BrowserDelegateWrapper) BrowserWillScroll(sender IBrowser) { +func (b_ BrowserDelegateObject) BrowserWillScroll(sender Browser) { objc.Call[objc.Void](b_, objc.Sel("browserWillScroll:"), objc.Ptr(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:"), objc.Ptr(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:"), objc.Ptr(browser), objc.Ptr(rowIndexes), column, objc.Ptr(pasteboard)) + return rv +} + +func (b_ BrowserDelegateObject) HasBrowserSelectCellWithStringInColumn() bool { + return b_.RespondsToSelector(objc.Sel("browser:selectCellWithString:inColumn:")) +} + +// Asks the delegate to select the cell with the given title in the specified column. [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:"), objc.Ptr(sender), title, column) + 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:"), objc.Ptr(sender), cell, row, column) +} + +func (b_ BrowserDelegateObject) HasBrowserSelectionIndexesForProposedSelectionInColumn() bool { + return b_.RespondsToSelector(objc.Sel("browser:selectionIndexesForProposedSelection:inColumn:")) +} + +// 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] +// +// [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:"), objc.Ptr(browser), objc.Ptr(proposedSelectionIndexes), column) + return rv +} + +func (b_ BrowserDelegateObject) HasBrowserObjectValueForItem() bool { + return b_.RespondsToSelector(objc.Sel("browser:objectValueForItem:")) +} + +// Returns the object that the specified item uses to draw its contents. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsbrowserdelegate/1407594-browser?language=objc +func (b_ BrowserDelegateObject) BrowserObjectValueForItem(browser Browser, item objc.Object) objc.Object { + rv := objc.Call[objc.Object](b_, objc.Sel("browser:objectValueForItem:"), objc.Ptr(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:"), objc.Ptr(sender), row, column) + return rv +} + +func (b_ BrowserDelegateObject) HasBrowserValidateDropProposedRowColumnDropOperation() bool { + return b_.RespondsToSelector(objc.Sel("browser:validateDrop:proposedRow:column:dropOperation:")) +} + +// 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] +// +// [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:"), objc.Ptr(browser), po1, row, column, dropOperation) + return rv +} diff --git a/macos/appkit/button.gen.go b/macos/appkit/button.gen.go index 07f22495..ad32ede7 100644 --- a/macos/appkit/button.gen.go +++ b/macos/appkit/button.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package appkit @@ -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 *float64, interval *float64) + SetButtonType(type_ ButtonType) CompressWithPrioritizedCompressionOptions(prioritizedOptions []IUserInterfaceCompressionOptions) + SetNextState() SetPeriodicDelayInterval(delay float64, interval float64) Highlight(flag bool) - GetPeriodicDelayInterval(delay *float64, interval *float64) - 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) - MaxAcceleratorLevel() int - SetMaxAcceleratorLevel(value int) - AttributedTitle() foundation.AttributedString - SetAttributedTitle(value foundation.IAttributedString) - ImageScaling() ImageScaling - SetImageScaling(value ImageScaling) - HasDestructiveAction() bool - SetHasDestructiveAction(value bool) - SymbolConfiguration() ImageSymbolConfiguration - SetSymbolConfiguration(value IImageSymbolConfiguration) + State() ControlStateValue + SetState(value ControlStateValue) BezelColor() Color SetBezelColor(value IColor) - Title() string - SetTitle(value string) + 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) KeyEquivalentModifierMask() EventModifierFlags SetKeyEquivalentModifierMask(value EventModifierFlags) - BezelStyle() BezelStyle - SetBezelStyle(value BezelStyle) - Image() Image - SetImage(value IImage) - IsSpringLoaded() bool - SetSpringLoaded(value bool) - ShowsBorderOnlyWhileMouseInside() bool - SetShowsBorderOnlyWhileMouseInside(value bool) + KeyEquivalent() string + SetKeyEquivalent(value string) + AllowsMixedState() bool + SetAllowsMixedState(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) CheckboxWithTitleTargetAction(title string, target objc.IObject, action objc.Selector) Button { - rv := objc.Call[Button](bc, objc.Sel("checkboxWithTitle:target:action:"), title, target, action) +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, objc.Ptr(image), target, action) return rv } -// Creates a standard checkbox with the title you specify. [Full Topic] +// Creates a standard push button with a title and image. [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) +// [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) } func (bc _ButtonClass) ButtonWithTitleTargetAction(title string, target objc.IObject, action objc.Selector) Button { @@ -114,6 +114,18 @@ 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:"), objc.Ptr(image), target, action) return rv @@ -143,10 +155,6 @@ func (bc _ButtonClass) Alloc() Button { return rv } -func Button_Alloc() Button { - return ButtonClass.Alloc() -} - func (bc _ButtonClass) New() Button { rv := objc.Call[Button](bc, objc.Sel("new")) rv.Autorelease() @@ -176,13 +184,6 @@ 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 @@ -191,6 +192,20 @@ 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 *float64, interval *float64) { + 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 @@ -198,6 +213,13 @@ 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 @@ -212,86 +234,79 @@ func (b_ Button) Highlight(flag bool) { objc.Call[objc.Void](b_, objc.Sel("highlight:"), flag) } -// Returns by reference the delay and interval periods for a continuous button. [Full Topic] +// A Boolean value that determines whether the button has a border. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsbutton/1524817-getperiodicdelay?language=objc -func (b_ Button) GetPeriodicDelayInterval(delay *float64, interval *float64) { - objc.Call[objc.Void](b_, objc.Sel("getPeriodicDelay:interval:"), delay, interval) +// [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 } -// Sets the button’s type, which affects its user interface and behavior when clicked. [Full Topic] +// A Boolean value that determines whether the button has a border. [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_) +// [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) } -// A Boolean value that determines how the button’s image and title are positioned together within the button bezel. [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/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/1524430-title?language=objc +func (b_ Button) Title() string { + rv := objc.Call[string](b_, objc.Sel("title")) 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 displayed on the button when it’s in an off 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/1524430-title?language=objc +func (b_ Button) SetTitle(value string) { + objc.Call[objc.Void](b_, objc.Sel("setTitle:"), value) } -// A Boolean value that indicates whether the button allows a mixed state. [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/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/3667453-symbolconfiguration?language=objc +func (b_ Button) SymbolConfiguration() ImageSymbolConfiguration { + rv := objc.Call[ImageSymbolConfiguration](b_, objc.Sel("symbolConfiguration")) return rv } -// A Boolean value that indicates whether the button allows a mixed state. [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/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/3667453-symbolconfiguration?language=objc +func (b_ Button) SetSymbolConfiguration(value IImageSymbolConfiguration) { + objc.Call[objc.Void](b_, objc.Sel("setSymbolConfiguration:"), objc.Ptr(value)) } -// The title that the button displays as an attributed string when the button is in an on state. [Full Topic] +// A Boolean value that indicates whether spring loading is enabled for the button. [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/1532300-springloaded?language=objc +func (b_ Button) IsSpringLoaded() bool { + rv := objc.Call[bool](b_, objc.Sel("isSpringLoaded")) return rv } -// The title that the button displays as an attributed string when the button is in an on state. [Full Topic] +// A Boolean value that indicates whether spring loading is enabled for the button. [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:"), objc.Ptr(value)) +// [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) } -// The key-equivalent character of the button. [Full Topic] +// The position of the button’s image relative to its title. [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/1526778-imageposition?language=objc +func (b_ Button) ImagePosition() CellImagePosition { + rv := objc.Call[CellImagePosition](b_, objc.Sel("imagePosition")) return rv } -// The key-equivalent character of the button. [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) -} - -// The compression options active for this button. [Full Topic] +// The position of the button’s image relative to its title. [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 +// [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 Boolean value that indicates whether the button is transparent. [Full Topic] @@ -309,34 +324,64 @@ func (b_ Button) SetTransparent(value bool) { objc.Call[objc.Void](b_, objc.Sel("setTransparent:"), value) } -// The title that the button displays when the button is in an on state. [Full Topic] +// 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/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/1532248-showsborderonlywhilemouseinside?language=objc +func (b_ Button) ShowsBorderOnlyWhileMouseInside() bool { + rv := objc.Call[bool](b_, objc.Sel("showsBorderOnlyWhileMouseInside")) return rv } -// The title that the button displays when the button is in an on state. [Full Topic] +// 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/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/1532248-showsborderonlywhilemouseinside?language=objc +func (b_ Button) SetShowsBorderOnlyWhileMouseInside(value bool) { + objc.Call[objc.Void](b_, objc.Sel("setShowsBorderOnlyWhileMouseInside:"), value) } -// A tint color to use for the template image and text content. [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/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/1534221-image?language=objc +func (b_ Button) Image() Image { + rv := objc.Call[Image](b_, objc.Sel("image")) return rv } -// A tint color to use for the template image and text content. [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/3000781-contenttintcolor?language=objc -func (b_ Button) SetContentTintColor(value IColor) { - objc.Call[objc.Void](b_, objc.Sel("setContentTintColor:"), objc.Ptr(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:"), objc.Ptr(value)) +} + +// 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/2092414-imagehugstitle?language=objc +func (b_ Button) ImageHugsTitle() bool { + rv := objc.Call[bool](b_, objc.Sel("imageHugsTitle")) + return rv +} + +// 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/2092414-imagehugstitle?language=objc +func (b_ Button) SetImageHugsTitle(value bool) { + objc.Call[objc.Void](b_, objc.Sel("setImageHugsTitle:"), value) +} + +// 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/1533935-alternateimage?language=objc +func (b_ Button) AlternateImage() Image { + rv := objc.Call[Image](b_, objc.Sel("alternateImage")) + return rv +} + +// 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/1533935-alternateimage?language=objc +func (b_ Button) SetAlternateImage(value IImage) { + objc.Call[objc.Void](b_, objc.Sel("setAlternateImage:"), objc.Ptr(value)) } // The button’s state. [Full Topic] @@ -354,94 +399,87 @@ func (b_ Button) SetState(value ControlStateValue) { objc.Call[objc.Void](b_, objc.Sel("setState:"), value) } -// A Boolean value that determines whether the button has a border. [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/1525565-bordered?language=objc -func (b_ Button) IsBordered() bool { - rv := objc.Call[bool](b_, objc.Sel("isBordered")) +// [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 } -// A Boolean value that determines whether the button has a border. [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/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/2561000-bezelcolor?language=objc +func (b_ Button) SetBezelColor(value IColor) { + objc.Call[objc.Void](b_, objc.Sel("setBezelColor:"), objc.Ptr(value)) } -// The position of the button’s image relative to its title. [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/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/2202284-imagescaling?language=objc +func (b_ Button) ImageScaling() ImageScaling { + rv := objc.Call[ImageScaling](b_, objc.Sel("imageScaling")) return rv } -// The position of the button’s image relative to its title. [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/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/2202284-imagescaling?language=objc +func (b_ Button) SetImageScaling(value ImageScaling) { + objc.Call[objc.Void](b_, objc.Sel("setImageScaling:"), 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:"), objc.Ptr(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:"), objc.Ptr(value)) } -// An integer value indicating the maximum pressure level for a button of type NSMultiLevelAcceleratorButton. [Full Topic] +// The appearance of the button’s border. [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/1527022-bezelstyle?language=objc +func (b_ Button) BezelStyle() BezelStyle { + rv := objc.Call[BezelStyle](b_, objc.Sel("bezelStyle")) return rv } -// An integer value indicating the maximum pressure level for a button of type NSMultiLevelAcceleratorButton. [Full Topic] +// The appearance of the button’s border. [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/1527022-bezelstyle?language=objc +func (b_ Button) SetBezelStyle(value BezelStyle) { + objc.Call[objc.Void](b_, objc.Sel("setBezelStyle:"), value) } -// The title that the button displays in an off state, as an attributed string. [Full Topic] +// The compression options active for this button. [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/2952061-activecompressionoptions?language=objc +func (b_ Button) ActiveCompressionOptions() UserInterfaceCompressionOptions { + rv := objc.Call[UserInterfaceCompressionOptions](b_, objc.Sel("activeCompressionOptions")) return rv } -// 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/1524640-attributedtitle?language=objc -func (b_ Button) SetAttributedTitle(value foundation.IAttributedString) { - objc.Call[objc.Void](b_, objc.Sel("setAttributedTitle:"), objc.Ptr(value)) -} - -// The scaling mode applied to make the cell’s image fit the frame of the image view. [Full Topic] +// The sound that plays when the user clicks the button. [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/1530910-sound?language=objc +func (b_ Button) Sound() Sound { + rv := objc.Call[Sound](b_, objc.Sel("sound")) return rv } -// The scaling mode applied to make the cell’s image fit the frame of the image view. [Full Topic] +// The sound that plays when the user clicks the button. [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/1530910-sound?language=objc +func (b_ Button) SetSound(value ISound) { + objc.Call[objc.Void](b_, objc.Sel("setSound:"), objc.Ptr(value)) } // A Boolean value that defines whether a button’s action has a destructive effect. [Full Topic] @@ -459,64 +497,64 @@ func (b_ Button) SetHasDestructiveAction(value bool) { objc.Call[objc.Void](b_, objc.Sel("setHasDestructiveAction:"), value) } -// The combination of point size, weight, and scale to use when sizing and displaying symbol images. [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/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/1534413-maxacceleratorlevel?language=objc +func (b_ Button) MaxAcceleratorLevel() int { + rv := objc.Call[int](b_, objc.Sel("maxAcceleratorLevel")) return rv } -// The combination of point size, weight, and scale to use when sizing and displaying symbol images. [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/3667453-symbolconfiguration?language=objc -func (b_ Button) SetSymbolConfiguration(value IImageSymbolConfiguration) { - objc.Call[objc.Void](b_, objc.Sel("setSymbolConfiguration:"), objc.Ptr(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 color of the button's bezel, in appearances that support it. [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/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/1524640-attributedtitle?language=objc +func (b_ Button) AttributedTitle() foundation.AttributedString { + rv := objc.Call[foundation.AttributedString](b_, objc.Sel("attributedTitle")) return rv } -// The color of the button's bezel, in appearances that support it. [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/2561000-bezelcolor?language=objc -func (b_ Button) SetBezelColor(value IColor) { - objc.Call[objc.Void](b_, objc.Sel("setBezelColor:"), objc.Ptr(value)) +// [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:"), objc.Ptr(value)) } -// The title displayed on the button when it’s in an off state. [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/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/1526723-attributedalternatetitle?language=objc +func (b_ Button) AttributedAlternateTitle() foundation.AttributedString { + rv := objc.Call[foundation.AttributedString](b_, objc.Sel("attributedAlternateTitle")) return rv } -// The title displayed on the button when it’s in an off state. [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/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/1526723-attributedalternatetitle?language=objc +func (b_ Button) SetAttributedAlternateTitle(value foundation.IAttributedString) { + objc.Call[objc.Void](b_, objc.Sel("setAttributedAlternateTitle:"), objc.Ptr(value)) } -// The sound that plays when the user clicks the button. [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/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/1529588-alternatetitle?language=objc +func (b_ Button) AlternateTitle() string { + rv := objc.Call[string](b_, objc.Sel("alternateTitle")) return rv } -// The sound that plays when the user clicks the button. [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/1530910-sound?language=objc -func (b_ Button) SetSound(value ISound) { - objc.Call[objc.Void](b_, objc.Sel("setSound:"), objc.Ptr(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) } // The mask specifying the modifier keys for the button’s key equivalent. [Full Topic] @@ -534,62 +572,32 @@ func (b_ Button) SetKeyEquivalentModifierMask(value EventModifierFlags) { objc.Call[objc.Void](b_, objc.Sel("setKeyEquivalentModifierMask:"), value) } -// The appearance of the button’s border. [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")) - return rv -} - -// The appearance of the button’s border. [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) -} - -// 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:"), objc.Ptr(value)) -} - -// A Boolean value that indicates whether spring loading is enabled for the button. [Full Topic] +// The key-equivalent character of 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")) +// [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 } -// A Boolean value that indicates whether spring loading is enabled for the button. [Full Topic] +// The key-equivalent character of 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) +// [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) } -// A Boolean value that determines whether the button displays its border only when the pointer is over it. [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/1532248-showsborderonlywhilemouseinside?language=objc -func (b_ Button) ShowsBorderOnlyWhileMouseInside() bool { - rv := objc.Call[bool](b_, objc.Sel("showsBorderOnlyWhileMouseInside")) +// [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 } -// A Boolean value that determines whether the button displays its border only when the pointer is over it. [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/1532248-showsborderonlywhilemouseinside?language=objc -func (b_ Button) SetShowsBorderOnlyWhileMouseInside(value bool) { - objc.Call[objc.Void](b_, objc.Sel("setShowsBorderOnlyWhileMouseInside:"), 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) } diff --git a/macos/appkit/button_cell.gen.go b/macos/appkit/button_cell.gen.go index d0474ba7..b78e3ff6 100644 --- a/macos/appkit/button_cell.gen.go +++ b/macos/appkit/button_cell.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package appkit @@ -19,44 +19,44 @@ type _ButtonCellClass struct { // An interface definition for the [ButtonCell] class. type IButtonCell interface { IActionCell + MouseExited(event IEvent) + SetPeriodicDelayInterval(delay float64, interval float64) 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) - SetPeriodicDelayInterval(delay float64, interval float64) - SetButtonType(type_ ButtonType) - AttributedAlternateTitle() foundation.AttributedString - SetAttributedAlternateTitle(value foundation.IAttributedString) - SetKeyEquivalent(value string) - IsTransparent() bool - SetTransparent(value bool) + KeyEquivalentModifierMask() EventModifierFlags + SetKeyEquivalentModifierMask(value EventModifierFlags) 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) - AttributedTitle() foundation.AttributedString - SetAttributedTitle(value foundation.IAttributedString) + 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) 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] @@ -105,10 +105,6 @@ func (bc _ButtonCellClass) Alloc() ButtonCell { return rv } -func ButtonCell_Alloc() ButtonCell { - return ButtonCellClass.Alloc() -} - func (bc _ButtonCellClass) New() ButtonCell { rv := objc.Call[ButtonCell](bc, objc.Sel("new")) rv.Autorelease() @@ -124,6 +120,20 @@ 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:"), objc.Ptr(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 float64, interval float64) { + 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 @@ -131,6 +141,13 @@ func (b_ ButtonCell) MouseEntered(event IEvent) { objc.Call[objc.Void](b_, objc.Sel("mouseEntered:"), objc.Ptr(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 @@ -138,13 +155,6 @@ func (b_ ButtonCell) DrawBezelWithFrameInView(frame foundation.Rect, controlView objc.Call[objc.Void](b_, objc.Sel("drawBezelWithFrame:inView:"), frame, objc.Ptr(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:"), objc.Ptr(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 @@ -160,85 +170,86 @@ func (b_ ButtonCell) DrawImageWithFrameInView(image IImage, frame foundation.Rec objc.Call[objc.Void](b_, objc.Sel("drawImage:withFrame:inView:"), objc.Ptr(image), frame, objc.Ptr(controlView)) } -// Sets the message delay and interval for the button. [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/1525725-setperiodicdelay?language=objc -func (b_ ButtonCell) SetPeriodicDelayInterval(delay float64, interval float64) { - objc.Call[objc.Void](b_, objc.Sel("setPeriodicDelay:interval:"), delay, interval) +// [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 } -// Sets how the button highlights while pressed and how it shows its state. [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/1527474-setbuttontype?language=objc -func (b_ ButtonCell) SetButtonType(type_ ButtonType) { - objc.Call[objc.Void](b_, objc.Sel("setButtonType:"), type_) +// [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 title displayed by the button when it’s in its alternate state, as an attributed string. [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/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/1535382-alternatetitle?language=objc +func (b_ ButtonCell) AlternateTitle() string { + rv := objc.Call[string](b_, objc.Sel("alternateTitle")) return rv } -// The title displayed by the button when it’s in its alternate state, as an attributed string. [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/1526922-attributedalternatetitle?language=objc -func (b_ ButtonCell) SetAttributedAlternateTitle(value foundation.IAttributedString) { - objc.Call[objc.Void](b_, objc.Sel("setAttributedAlternateTitle:"), objc.Ptr(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 button’s key-equivalent character. [Full Topic] +// The position of the button’s image relative to its title. [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/1529593-imageposition?language=objc +func (b_ ButtonCell) ImagePosition() CellImagePosition { + rv := objc.Call[CellImagePosition](b_, objc.Sel("imagePosition")) + return rv } -// A Boolean value that indicates if the button is transparent. [Full Topic] +// The position of the button’s image relative to its title. [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")) - return rv +// [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) } -// A Boolean value that indicates if the button is transparent. [Full Topic] +// The button’s key-equivalent character. [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/1529476-keyequivalent?language=objc +func (b_ ButtonCell) SetKeyEquivalent(value string) { + objc.Call[objc.Void](b_, objc.Sel("setKeyEquivalent:"), value) } -// The string displayed by the button when it’s in its alternate state. [Full Topic] +// 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/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/1527903-showsborderonlywhilemouseinside?language=objc +func (b_ ButtonCell) ShowsBorderOnlyWhileMouseInside() bool { + rv := objc.Call[bool](b_, objc.Sel("showsBorderOnlyWhileMouseInside")) return rv } -// The string displayed by the button when it’s in its alternate state. [Full Topic] +// 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/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/1527903-showsborderonlywhilemouseinside?language=objc +func (b_ ButtonCell) SetShowsBorderOnlyWhileMouseInside(value bool) { + objc.Call[objc.Void](b_, objc.Sel("setShowsBorderOnlyWhileMouseInside:"), 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 image the button displays in its alternate state. [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/1527064-alternateimage?language=objc +func (b_ ButtonCell) AlternateImage() Image { + rv := objc.Call[Image](b_, objc.Sel("alternateImage")) 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 image the button displays in its alternate state. [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/1527064-alternateimage?language=objc +func (b_ ButtonCell) SetAlternateImage(value IImage) { + objc.Call[objc.Void](b_, objc.Sel("setAlternateImage:"), objc.Ptr(value)) } // A Boolean value that indicates if the button’s image and text appear “dim” when the button is disabled. [Full Topic] @@ -256,34 +267,19 @@ func (b_ ButtonCell) SetImageDimsWhenDisabled(value bool) { objc.Call[objc.Void](b_, objc.Sel("setImageDimsWhenDisabled:"), value) } -// The position of the button’s image relative to its title. [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 -} - -// The position of the button’s image relative to its title. [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) -} - -// The image the button displays in 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/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/1528696-bezelstyle?language=objc +func (b_ ButtonCell) BezelStyle() BezelStyle { + rv := objc.Call[BezelStyle](b_, objc.Sel("bezelStyle")) return rv } -// The image the button displays in 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/1527064-alternateimage?language=objc -func (b_ ButtonCell) SetAlternateImage(value IImage) { - objc.Call[objc.Void](b_, objc.Sel("setAlternateImage:"), objc.Ptr(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) } // The background color of the button. [Full Topic] @@ -301,19 +297,34 @@ func (b_ ButtonCell) SetBackgroundColor(value IColor) { objc.Call[objc.Void](b_, objc.Sel("setBackgroundColor:"), objc.Ptr(value)) } -// The title displayed by the button when it’s in its normal 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/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/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 normal 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/1529303-attributedtitle?language=objc -func (b_ ButtonCell) SetAttributedTitle(value foundation.IAttributedString) { - objc.Call[objc.Void](b_, objc.Sel("setAttributedTitle:"), objc.Ptr(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:"), objc.Ptr(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] +// +// [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 +} + +// 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/1528459-highlightsby?language=objc +func (b_ ButtonCell) SetHighlightsBy(value CellStyleMask) { + objc.Call[objc.Void](b_, objc.Sel("setHighlightsBy:"), value) } // The scale factor for the button’s image. [Full Topic] @@ -331,77 +342,62 @@ func (b_ ButtonCell) SetImageScaling(value ImageScaling) { objc.Call[objc.Void](b_, objc.Sel("setImageScaling:"), value) } -// The flags that indicate how the button cell shows its alternate state. [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")) - return rv -} - -// The flags that indicate how the button cell shows its alternate state. [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) -} - -// The sound that’s played when the user presses the button (that is during a mouse-down event). [Full Topic] +// A Boolean value that indicates if the button is transparent. [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")) +// [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 sound that’s played when the user presses the button (that is during a mouse-down event). [Full Topic] +// A Boolean value that indicates if the button is transparent. [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:"), objc.Ptr(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) } -// The mask that identifies the modifier keys for the button's key equivalent. [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/1528315-keyequivalentmodifiermask?language=objc -func (b_ ButtonCell) KeyEquivalentModifierMask() EventModifierFlags { - rv := objc.Call[EventModifierFlags](b_, objc.Sel("keyEquivalentModifierMask")) +// [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 mask that identifies the modifier keys for the button's key equivalent. [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/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/1526922-attributedalternatetitle?language=objc +func (b_ ButtonCell) SetAttributedAlternateTitle(value foundation.IAttributedString) { + objc.Call[objc.Void](b_, objc.Sel("setAttributedAlternateTitle:"), objc.Ptr(value)) } -// The appearance of the button’s border, if it has one. [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/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/1529303-attributedtitle?language=objc +func (b_ ButtonCell) AttributedTitle() foundation.AttributedString { + rv := objc.Call[foundation.AttributedString](b_, objc.Sel("attributedTitle")) return rv } -// The appearance of the button’s border, if it has one. [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/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/1529303-attributedtitle?language=objc +func (b_ ButtonCell) SetAttributedTitle(value foundation.IAttributedString) { + objc.Call[objc.Void](b_, objc.Sel("setAttributedTitle:"), objc.Ptr(value)) } -// A Boolean value that indicates if the button displays its border only when the pointer is over it. [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/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/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 displays its border only when the pointer is over it. [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/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/1533225-showsstateby?language=objc +func (b_ ButtonCell) SetShowsStateBy(value CellStyleMask) { + objc.Call[objc.Void](b_, objc.Sel("setShowsStateBy:"), value) } diff --git a/macos/appkit/button_touch_bar_item.gen.go b/macos/appkit/button_touch_bar_item.gen.go index fd5ffec6..94f70f00 100644 --- a/macos/appkit/button_touch_bar_item.gen.go +++ b/macos/appkit/button_touch_bar_item.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package appkit @@ -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) - 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) + Action() objc.Selector + SetAction(value objc.Selector) + BezelColor() Color + SetBezelColor(value IColor) } // A bar item that provides a button. [Full Topic] @@ -58,13 +58,33 @@ func ButtonTouchBarItem_ButtonTouchBarItemWithIdentifierTitleTargetAction(identi return ButtonTouchBarItemClass.ButtonTouchBarItemWithIdentifierTitleTargetAction(identifier, title, target, action) } -func (bc _ButtonTouchBarItemClass) Alloc() ButtonTouchBarItem { - rv := objc.Call[ButtonTouchBarItem](bc, objc.Sel("alloc")) +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, objc.Ptr(image), target, action) return rv } -func ButtonTouchBarItem_Alloc() ButtonTouchBarItem { - return ButtonTouchBarItemClass.Alloc() +// [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, objc.Ptr(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 } func (bc _ButtonTouchBarItemClass) New() ButtonTouchBarItem { @@ -96,21 +116,6 @@ 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 @@ -120,32 +125,32 @@ func (b_ ButtonTouchBarItem) SetCustomizationLabel(value string) { // [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/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/3237177-bezelcolor?language=objc -func (b_ ButtonTouchBarItem) SetBezelColor(value IColor) { - objc.Call[objc.Void](b_, objc.Sel("setBezelColor:"), objc.Ptr(value)) +// [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] @@ -165,30 +170,45 @@ func (b_ ButtonTouchBarItem) SetTitle(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/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/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/3237182-image?language=objc +func (b_ ButtonTouchBarItem) SetImage(value IImage) { + objc.Call[objc.Void](b_, objc.Sel("setImage:"), objc.Ptr(value)) } // [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")) +// [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/3237182-image?language=objc -func (b_ ButtonTouchBarItem) SetImage(value IImage) { - objc.Call[objc.Void](b_, objc.Sel("setImage:"), objc.Ptr(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/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/3237177-bezelcolor?language=objc +func (b_ ButtonTouchBarItem) SetBezelColor(value IColor) { + objc.Call[objc.Void](b_, objc.Sel("setBezelColor:"), objc.Ptr(value)) } diff --git a/macos/appkit/cached_image_rep.gen.go b/macos/appkit/cached_image_rep.gen.go index d69c3a13..29456f15 100644 --- a/macos/appkit/cached_image_rep.gen.go +++ b/macos/appkit/cached_image_rep.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package appkit @@ -38,10 +38,6 @@ func (cc _CachedImageRepClass) Alloc() CachedImageRep { return rv } -func CachedImageRep_Alloc() CachedImageRep { - return CachedImageRepClass.Alloc() -} - func (cc _CachedImageRepClass) New() CachedImageRep { rv := objc.Call[CachedImageRep](cc, objc.Sel("new")) rv.Autorelease() diff --git a/macos/appkit/candidate_list_touch_bar_item.gen.go b/macos/appkit/candidate_list_touch_bar_item.gen.go index 80368c44..3ad40387 100644 --- a/macos/appkit/candidate_list_touch_bar_item.gen.go +++ b/macos/appkit/candidate_list_touch_bar_item.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package appkit @@ -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() CandidateListTouchBarItemDelegateWrapper + Delegate() CandidateListTouchBarItemDelegateObject SetDelegate(value PCandidateListTouchBarItemDelegate) SetDelegateObject(valueObject objc.IObject) - Client() View - SetClient(value IView) + 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) } // A bar item that, along with its delegate, provides a list of textual suggestions for the current text view. [Full Topic] @@ -57,10 +57,6 @@ func (cc _CandidateListTouchBarItemClass) Alloc() CandidateListTouchBarItem { return rv } -func CandidateListTouchBarItem_Alloc() CandidateListTouchBarItem { - return CandidateListTouchBarItemClass.Alloc() -} - func (cc _CandidateListTouchBarItemClass) New() CandidateListTouchBarItem { rv := objc.Call[CandidateListTouchBarItem](cc, objc.Sel("new")) rv.Autorelease() @@ -104,14 +100,6 @@ 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 @@ -135,13 +123,6 @@ 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 @@ -157,26 +138,11 @@ 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 -func (c_ CandidateListTouchBarItem) Delegate() CandidateListTouchBarItemDelegateWrapper { - rv := objc.Call[CandidateListTouchBarItemDelegateWrapper](c_, objc.Sel("delegate")) +func (c_ CandidateListTouchBarItem) Delegate() CandidateListTouchBarItemDelegateObject { + rv := objc.Call[CandidateListTouchBarItemDelegateObject](c_, objc.Sel("delegate")) return rv } @@ -196,6 +162,36 @@ func (c_ CandidateListTouchBarItem) SetDelegateObject(valueObject objc.IObject) objc.Call[objc.Void](c_, objc.Sel("setDelegate:"), objc.Ptr(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 @@ -211,17 +207,17 @@ func (c_ CandidateListTouchBarItem) SetClient(value IView) { objc.Call[objc.Void](c_, objc.Sel("setClient:"), objc.Ptr(value)) } -// A block that converts a candidate object into an attributed string for display in the candidate list item. [Full Topic] +// A Boolean value that controls the visibility of the candidate list. [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")) +// [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 block that converts a candidate object into an attributed string for display in the candidate list item. [Full Topic] +// A Boolean value that controls the visibility of the candidate list. [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) +// [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) } 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 f5944cdc..fd2ffd33 100644 --- a/macos/appkit/candidate_list_touch_bar_item_delegate.gen.go +++ b/macos/appkit/candidate_list_touch_bar_item_delegate.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package appkit @@ -10,6 +10,18 @@ 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 @@ -17,9 +29,63 @@ type PCandidateListTouchBarItemDelegate interface { // A delegate implementation builder for the [PCandidateListTouchBarItemDelegate] protocol. type CandidateListTouchBarItemDelegate struct { - _CandidateListTouchBarItemBeginSelectingCandidateAtIndex func(anItem CandidateListTouchBarItem, index int) + _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 +} + +// 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 } @@ -38,18 +104,54 @@ func (di *CandidateListTouchBarItemDelegate) CandidateListTouchBarItemBeginSelec di._CandidateListTouchBarItemBeginSelectingCandidateAtIndex(anItem, index) } -// A concrete type wrapper for the [PCandidateListTouchBarItemDelegate] protocol. -type CandidateListTouchBarItemDelegateWrapper struct { +// ensure impl type implements protocol interface +var _ PCandidateListTouchBarItemDelegate = (*CandidateListTouchBarItemDelegateObject)(nil) + +// A concrete type for the [PCandidateListTouchBarItemDelegate] protocol. +type CandidateListTouchBarItemDelegateObject struct { objc.Object } -func (c_ CandidateListTouchBarItemDelegateWrapper) HasCandidateListTouchBarItemBeginSelectingCandidateAtIndex() bool { +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:"), objc.Ptr(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:"), objc.Ptr(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:"), objc.Ptr(anItem), index) +} + +func (c_ CandidateListTouchBarItemDelegateObject) HasCandidateListTouchBarItemBeginSelectingCandidateAtIndex() bool { return c_.RespondsToSelector(objc.Sel("candidateListTouchBarItem:beginSelectingCandidateAtIndex:")) } // Tells the delegate that the user has started touching one of the candidates in the candidate list item. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/appkit/nscandidatelisttouchbaritemdelegate/2544747-candidatelisttouchbaritem?language=objc -func (c_ CandidateListTouchBarItemDelegateWrapper) CandidateListTouchBarItemBeginSelectingCandidateAtIndex(anItem ICandidateListTouchBarItem, index int) { +func (c_ CandidateListTouchBarItemDelegateObject) CandidateListTouchBarItemBeginSelectingCandidateAtIndex(anItem CandidateListTouchBarItem, index int) { objc.Call[objc.Void](c_, objc.Sel("candidateListTouchBarItem:beginSelectingCandidateAtIndex:"), objc.Ptr(anItem), index) } diff --git a/macos/appkit/cell.gen.go b/macos/appkit/cell.gen.go index 38d636b3..5fc6cbb4 100644 --- a/macos/appkit/cell.gen.go +++ b/macos/appkit/cell.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package appkit @@ -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 - 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) + CalcDrawInfo(rect foundation.Rect) + TakeIntValueFrom(sender objc.IObject) HitTestForEventInRectOfView(event IEvent, cellFrame foundation.Rect, controlView IView) CellHitResult - TakeFloatValueFrom(sender objc.IObject) - TakeDoubleValueFrom(sender objc.IObject) - DrawInteriorWithFrameInView(cellFrame foundation.Rect, controlView IView) + SendActionOn(mask EventMask) int 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) - DrawingRectForBounds(rect foundation.Rect) foundation.Rect - DrawFocusRingMaskWithFrameInView(cellFrame foundation.Rect, controlView IView) - CellAttribute(parameter CellAttribute) int - CalcDrawInfo(rect foundation.Rect) - PerformClick(sender objc.IObject) + 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) 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 *float64, interval *float64) - 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) - AllowsMixedState() bool - SetAllowsMixedState(value bool) - KeyEquivalent() string - MouseDownFlags() int - IsHighlighted() bool - SetHighlighted(value bool) - IntValue() int - SetIntValue(value int) - BackgroundStyle() BackgroundStyle - SetBackgroundStyle(value BackgroundStyle) - ControlSize() ControlSize - SetControlSize(value ControlSize) + 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) - State() ControlStateValue - SetState(value ControlStateValue) - UsesSingleLineMode() bool - SetUsesSingleLineMode(value bool) - IsBordered() bool - SetBordered(value bool) - Action() objc.Selector - SetAction(value objc.Selector) - IsEditable() bool - SetEditable(value bool) - IsContinuous() bool - SetContinuous(value bool) - AttributedStringValue() foundation.AttributedString - SetAttributedStringValue(value foundation.IAttributedString) + BackgroundStyle() BackgroundStyle + SetBackgroundStyle(value BackgroundStyle) + WantsNotificationForMarkedText() bool StringValue() string SetStringValue(value string) - Alignment() TextAlignment - SetAlignment(value TextAlignment) + 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) + 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) + IntValue() int + SetIntValue(value int) + Action() objc.Selector + SetAction(value objc.Selector) + IsBordered() bool + SetBordered(value bool) + Title() string + SetTitle(value string) + ControlView() View + SetControlView(value IView) + AcceptsFirstResponder() bool + DoubleValue() float64 + SetDoubleValue(value float64) 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) - IsOpaque() bool - DoubleValue() float64 - SetDoubleValue(value float64) - WantsNotificationForMarkedText() bool + IsHighlighted() bool + SetHighlighted(value bool) Font() Font SetFont(value IFont) - 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) + MouseDownFlags() int Tag() int SetTag(value int) - Title() string - SetTitle(value string) - ControlView() View - SetControlView(value IView) - BaseWritingDirection() WritingDirection - SetBaseWritingDirection(value WritingDirection) - Type() CellType - SetType(value CellType) FloatValue() float64 SetFloatValue(value float64) - IsEnabled() bool - SetEnabled(value bool) + 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) Image() Image SetImage(value IImage) - RefusesFirstResponder() bool - SetRefusesFirstResponder(value bool) - AllowsUndo() bool - SetAllowsUndo(value bool) - IsBezeled() bool - SetBezeled(value bool) - TruncatesLastVisibleLine() bool - SetTruncatesLastVisibleLine(value bool) + ControlSize() ControlSize + SetControlSize(value ControlSize) SendsActionOnEndEditing() bool SetSendsActionOnEndEditing(value bool) + TruncatesLastVisibleLine() bool + SetTruncatesLastVisibleLine(value bool) + Alignment() TextAlignment + SetAlignment(value TextAlignment) } // A mechanism for displaying text or images in a view object without the overhead of a full NSView subclass. [Full Topic] @@ -168,6 +168,11 @@ 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:"), objc.Ptr(image)) return rv @@ -196,20 +201,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 } -func Cell_Alloc() Cell { - return CellClass.Alloc() -} - func (cc _CellClass) New() Cell { rv := objc.Call[Cell](cc, objc.Sel("new")) rv.Autorelease() @@ -220,27 +216,70 @@ func NewCell() Cell { return CellClass.New() } -// Returns a Boolean value that indicates whether mouse tracking should continue in the receiving cell. [Full Topic] +// Returns a custom field editor for editing in the view. [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, objc.Ptr(controlView)) +// [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:"), objc.Ptr(controlView)) return rv } -// Generates dragging image components with the specified frame in the view. [Full Topic] +// Recalculates the cell geometry. [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, objc.Ptr(view)) +// [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] +// +// [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:"), objc.Ptr(event), cellFrame, objc.Ptr(controlView)) return rv } -// Changes cell’s state to the next value in the sequence. [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/1533557-setnextstate?language=objc -func (c_ Cell) SetNextState() { - objc.Call[objc.Void](c_, objc.Sel("setNextState")) +// [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 +} + +// 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, objc.Ptr(controlView), objc.Ptr(textObj), delegate, objc.Ptr(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:"), objc.Ptr(textObj)) +} + +// Selects the specified text range in the cell's field editor. [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, objc.Ptr(controlView), objc.Ptr(textObj), delegate, selStart, selLength) } // Stops tracking mouse events within the receiver. [Full Topic] @@ -250,87 +289,64 @@ func (c_ Cell) StopTrackingAtInViewMouseIsUp(lastPoint foundation.Point, stopPoi objc.Call[objc.Void](c_, objc.Sel("stopTracking:at:inView:mouseIsUp:"), lastPoint, stopPoint, objc.Ptr(controlView), flag) } -// 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:"), objc.Ptr(controlView)) - return rv -} - -// Sets the value of the receiver’s cell to the object value obtained from the specified object. [Full Topic] +// Sets the value for the specified cell attribute. [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/1531257-setcellattribute?language=objc +func (c_ Cell) SetCellAttributeTo(parameter CellAttribute, value int) { + objc.Call[objc.Void](c_, objc.Sel("setCellAttribute:to:"), parameter, value) } -// Configures the textual and background attributes of the receiver's field editor. [Full Topic] +// Returns the color the receiver uses when drawing the selection highlight. [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:"), objc.Ptr(textObj)) +// [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, objc.Ptr(controlView)) return rv } -// 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/1524496-resetcursorrect?language=objc -func (c_ Cell) ResetCursorRectInView(cellFrame foundation.Rect, controlView IView) { - objc.Call[objc.Void](c_, objc.Sel("resetCursorRect:inView:"), cellFrame, objc.Ptr(controlView)) -} - -// Draws the receiver’s border and then draws the interior of the cell. [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, objc.Ptr(controlView)) -} - -// Returns the menu associated with the cell and related to the specified event and frame. [Full Topic] +// Returns the expansion cell frame for the receiver. [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:"), objc.Ptr(event), cellFrame, objc.Ptr(view)) +// [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, objc.Ptr(view)) return rv } -// Begins tracking mouse events within the receiver. [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/1526663-starttrackingat?language=objc -func (c_ Cell) StartTrackingAtInView(startPoint foundation.Point, controlView IView) bool { - rv := objc.Call[bool](c_, objc.Sel("startTrackingAt:inView:"), startPoint, objc.Ptr(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) } -// Sets the value of the receiver’s cell to the string value obtained from the specified object. [Full Topic] +// Compares the string values of the receiver another cell, disregarding case. [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/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 } -// Returns the bounds of the focus ring mask. [Full Topic] +// Returns the rectangle in which the receiver draws its title text. [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, objc.Ptr(controlView)) +// [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 } -// Instructs the receiver to draw in an expansion frame. [Full Topic] +// Redraws the receiver with the specified highlight setting. [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, objc.Ptr(view)) +// [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, objc.Ptr(controlView)) } -// Returns hit testing information for the receiver. [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/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:"), objc.Ptr(event), cellFrame, objc.Ptr(controlView)) - return rv +// [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) } // Sets the value of the receiver’s cell to a single-precision floating-point value obtained from the specified object. [Full Topic] @@ -340,32 +356,41 @@ func (c_ Cell) TakeFloatValueFrom(sender objc.IObject) { objc.Call[objc.Void](c_, objc.Sel("takeFloatValueFrom:"), 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 value for the specified cell attribute. [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/1530877-cellattribute?language=objc +func (c_ Cell) CellAttribute(parameter CellAttribute) int { + rv := objc.Call[int](c_, objc.Sel("cellAttribute:"), parameter) + return rv } -// Draws the interior portion of the receiver, which includes the image or text portion but does not include the border. [Full Topic] +// 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/1531274-drawinteriorwithframe?language=objc -func (c_ Cell) DrawInteriorWithFrameInView(cellFrame foundation.Rect, controlView IView) { - objc.Call[objc.Void](c_, objc.Sel("drawInteriorWithFrame:inView:"), cellFrame, objc.Ptr(controlView)) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nscell/1535611-getperiodicdelay?language=objc +func (c_ Cell) GetPeriodicDelayInterval(delay *float64, interval *float64) { + objc.Call[objc.Void](c_, objc.Sel("getPeriodicDelay:interval:"), delay, interval) } -// Begins editing of the receiver’s text using the specified field editor. [Full Topic] +// Draws the focus ring for the control. [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, objc.Ptr(controlView), objc.Ptr(textObj), delegate, objc.Ptr(event)) +// [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, objc.Ptr(controlView)) } -// Returns the rectangle in which the receiver draws its title text. [Full Topic] +// Initiates the mouse tracking behavior in a cell. [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/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:"), objc.Ptr(event), cellFrame, objc.Ptr(controlView), flag) + return rv +} + +// Configures the textual and background attributes of the receiver's 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:"), objc.Ptr(textObj)) return rv } @@ -377,168 +402,162 @@ func (c_ Cell) CellSizeForBounds(rect foundation.Rect) foundation.Size { return rv } -// 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] +// Generates dragging image components with the specified frame in the view. [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:"), objc.Ptr(textObj)) +// [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, objc.Ptr(view)) + return rv } -// Returns the rectangle within which the receiver draws itself [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/1526266-drawingrectforbounds?language=objc -func (c_ Cell) DrawingRectForBounds(rect foundation.Rect) foundation.Rect { - rv := objc.Call[foundation.Rect](c_, objc.Sel("drawingRectForBounds:"), rect) +// [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, objc.Ptr(controlView)) return rv } -// Draws the focus ring for the control. [Full Topic] +// Simulates a single mouse click on the receiver. [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, objc.Ptr(controlView)) +// [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 value for the specified cell attribute. [Full Topic] +// Returns the bounds of the focus ring mask. [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/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, objc.Ptr(controlView)) return rv } -// Recalculates the cell geometry. [Full Topic] +// Changes cell’s state to the next value in the sequence. [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) +// [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")) } -// Simulates a single mouse click on the receiver. [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/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/1535830-drawwithframe?language=objc +func (c_ Cell) DrawWithFrameInView(cellFrame foundation.Rect, controlView IView) { + objc.Call[objc.Void](c_, objc.Sel("drawWithFrame:inView:"), cellFrame, objc.Ptr(controlView)) } -// Sets the value for the specified cell attribute. [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/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/1531274-drawinteriorwithframe?language=objc +func (c_ Cell) DrawInteriorWithFrameInView(cellFrame foundation.Rect, controlView IView) { + objc.Call[objc.Void](c_, objc.Sel("drawInteriorWithFrame:inView:"), cellFrame, objc.Ptr(controlView)) } -// Initiates the mouse tracking behavior in a cell. [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/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:"), objc.Ptr(event), cellFrame, objc.Ptr(controlView), flag) - return rv +// [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) } -// Returns the rectangle in which the receiver draws its image. [Full Topic] +// Instructs the receiver to draw in an expansion frame. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nscell/1533408-imagerectforbounds?language=objc -func (c_ Cell) ImageRectForBounds(rect foundation.Rect) foundation.Rect { - rv := objc.Call[foundation.Rect](c_, objc.Sel("imageRectForBounds:"), rect) - return rv +// [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, objc.Ptr(view)) } -// Returns the color the receiver uses when drawing the selection highlight. [Full Topic] +// Returns the rectangle within which the receiver draws itself [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, objc.Ptr(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 } -// Redraws the receiver with the specified highlight setting. [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, objc.Ptr(controlView)) -} - -// Returns the initial delay and repeat values for continuous sending of action messages to target objects. [Full Topic] +// Begins tracking mouse events within the receiver. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nscell/1535611-getperiodicdelay?language=objc -func (c_ Cell) GetPeriodicDelayInterval(delay *float64, interval *float64) { - objc.Call[objc.Void](c_, objc.Sel("getPeriodicDelay:interval:"), delay, interval) +// [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, objc.Ptr(controlView)) + return rv } -// Sets the value of the receiver’s cell to an integer value obtained from the specified object. [Full Topic] +// Returns the rectangle in which the receiver draws its image. [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) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nscell/1533408-imagerectforbounds?language=objc +func (c_ Cell) ImageRectForBounds(rect foundation.Rect) foundation.Rect { + rv := objc.Call[foundation.Rect](c_, objc.Sel("imageRectForBounds:"), rect) + return rv } -// Sets the conditions on which the receiver sends action messages to its target. [Full Topic] +// 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/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/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:"), objc.Ptr(event), cellFrame, objc.Ptr(view)) return rv } -// Compares the string values of the receiver another cell, disregarding case. [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/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 +// [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, objc.Ptr(controlView)) } -// Returns the expansion cell frame for the receiver. [Full Topic] +// The object that receives the cell’s action messages. [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, objc.Ptr(view)) +// [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 } -// Selects the specified text range in the cell's field editor. [Full Topic] +// The object that receives the cell’s action messages. [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, objc.Ptr(controlView), objc.Ptr(textObj), delegate, selStart, selLength) +// [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 background style. [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/1524686-backgroundstyle?language=objc +func (c_ Cell) BackgroundStyle() BackgroundStyle { + rv := objc.Call[BackgroundStyle](c_, objc.Sel("backgroundStyle")) return rv } -// The cell’s value as an NSInteger type. [Full Topic] +// The cell’s background style. [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/1524686-backgroundstyle?language=objc +func (c_ Cell) SetBackgroundStyle(value BackgroundStyle) { + objc.Call[objc.Void](c_, objc.Sel("setBackgroundStyle:"), value) } -// A Boolean value indicating whether the cell supports three states instead of two. [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/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/1535894-wantsnotificationformarkedtext?language=objc +func (c_ Cell) WantsNotificationForMarkedText() bool { + rv := objc.Call[bool](c_, objc.Sel("wantsNotificationForMarkedText")) return rv } -// A Boolean value indicating whether the cell supports three states instead of two. [Full Topic] +// The cell’s value as a string. [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/1530915-stringvalue?language=objc +func (c_ Cell) StringValue() string { + rv := objc.Call[string](c_, objc.Sel("stringValue")) + return rv +} + +// The cell’s value as a string. [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) } // The key equivalent associated with clicking the cell. [Full Topic] @@ -549,237 +568,237 @@ func (c_ Cell) KeyEquivalent() string { return rv } -// The modifier flags for the last (left) mouse-down event. [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/1527798-mousedownflags?language=objc -func (c_ Cell) MouseDownFlags() int { - rv := objc.Call[int](c_, objc.Sel("mouseDownFlags")) +// [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 has a highlighted appearance. [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/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/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] +// +// [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 the cell has a highlighted appearance. [Full Topic] +// A Boolean value indicating whether the cell is currently enabled. [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/1533415-enabled?language=objc +func (c_ Cell) SetEnabled(value bool) { + objc.Call[objc.Void](c_, objc.Sel("setEnabled:"), value) } -// Returns the default menu for instances of the cell. [Full Topic] +// The cell’s value as an attributed string. [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/1534119-attributedstringvalue?language=objc +func (c_ Cell) AttributedStringValue() foundation.AttributedString { + rv := objc.Call[foundation.AttributedString](c_, objc.Sel("attributedStringValue")) return rv } -// Returns the default menu for instances of the cell. [Full Topic] +// The cell’s value as an attributed string. [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/1534119-attributedstringvalue?language=objc +func (c_ Cell) SetAttributedStringValue(value foundation.IAttributedString) { + objc.Call[objc.Void](c_, objc.Sel("setAttributedStringValue:"), objc.Ptr(value)) } -// The cell’s value as an integer. [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/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/1531576-allowsundo?language=objc +func (c_ Cell) AllowsUndo() bool { + rv := objc.Call[bool](c_, objc.Sel("allowsUndo")) return rv } -// The cell’s value as an integer. [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/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/1531576-allowsundo?language=objc +func (c_ Cell) SetAllowsUndo(value bool) { + objc.Call[objc.Void](c_, objc.Sel("setAllowsUndo:"), value) } -// The cell’s background style. [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/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/1531578-allowsmixedstate?language=objc +func (c_ Cell) AllowsMixedState() bool { + rv := objc.Call[bool](c_, objc.Sel("allowsMixedState")) return rv } -// The cell’s background style. [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/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/1531578-allowsmixedstate?language=objc +func (c_ Cell) SetAllowsMixedState(value bool) { + objc.Call[objc.Void](c_, objc.Sel("setAllowsMixedState:"), value) } -// The size of the cell. [Full Topic] +// The cell’s contextual menu. [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/1530019-menu?language=objc +func (c_ Cell) Menu() Menu { + rv := objc.Call[Menu](c_, objc.Sel("menu")) return rv } -// The size of the cell. [Full Topic] +// The cell’s contextual menu. [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/1530019-menu?language=objc +func (c_ Cell) SetMenu(value IMenu) { + objc.Call[objc.Void](c_, objc.Sel("setMenu:"), objc.Ptr(value)) } -// The object that receives the cell’s action messages. [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/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/1527479-wraps?language=objc +func (c_ Cell) Wraps() bool { + rv := objc.Call[bool](c_, objc.Sel("wraps")) return rv } -// The object that receives the cell’s action messages. [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/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/1527479-wraps?language=objc +func (c_ Cell) SetWraps(value bool) { + objc.Call[objc.Void](c_, objc.Sel("setWraps:"), value) } -// The cell’s current state. [Full Topic] +// The cell’s value as an NSInteger type. [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/1527783-integervalue?language=objc +func (c_ Cell) IntegerValue() int { + rv := objc.Call[int](c_, objc.Sel("integerValue")) return rv } -// The cell’s current state. [Full Topic] +// The cell’s value as an NSInteger type. [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/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 restricts layout and rendering of text to a single line. [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/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/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 restricts layout and rendering of text to a single line. [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/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/1525503-basewritingdirection?language=objc +func (c_ Cell) SetBaseWritingDirection(value WritingDirection) { + objc.Call[objc.Void](c_, objc.Sel("setBaseWritingDirection:"), value) } -// A Boolean value indicating whether the cell draws itself outlined with a plain border. [Full Topic] +// Returns the default menu for instances of the cell. [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")) +// [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 } -// A Boolean value indicating whether the cell draws itself outlined with a plain border. [Full Topic] +// Returns the default menu for instances of the cell. [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/1531847-defaultmenu?language=objc +func Cell_DefaultMenu() Menu { + return CellClass.DefaultMenu() } -// The action performed by the cell. [Full Topic] +// A Boolean value indicating whether the cell has a bezeled border. [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/1533376-bezeled?language=objc +func (c_ Cell) IsBezeled() bool { + rv := objc.Call[bool](c_, objc.Sel("isBezeled")) return rv } -// The action performed by the cell. [Full Topic] +// A Boolean value indicating whether the cell has a bezeled border. [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/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 is editable. [Full Topic] +// The cell’s current state. [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/1527417-state?language=objc +func (c_ Cell) State() ControlStateValue { + rv := objc.Call[ControlStateValue](c_, objc.Sel("state")) return rv } -// A Boolean value indicating whether the cell is editable. [Full Topic] +// The cell’s current state. [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/1527417-state?language=objc +func (c_ Cell) SetState(value ControlStateValue) { + objc.Call[objc.Void](c_, objc.Sel("setState:"), value) } -// A Boolean value indicating whether the cell sends its action message continuously during mouse tracking. [Full Topic] +// The cell’s interior background style. [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/1526141-interiorbackgroundstyle?language=objc +func (c_ Cell) InteriorBackgroundStyle() BackgroundStyle { + rv := objc.Call[BackgroundStyle](c_, objc.Sel("interiorBackgroundStyle")) 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 cell’s value as an attributed string. [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/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/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 attributed string. [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/1534119-attributedstringvalue?language=objc -func (c_ Cell) SetAttributedStringValue(value foundation.IAttributedString) { - objc.Call[objc.Void](c_, objc.Sel("setAttributedStringValue:"), objc.Ptr(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 cell’s value as a string. [Full Topic] +// The cell’s value as an Objective-C object. [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/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 a string. [Full Topic] +// The cell’s value as an Objective-C object. [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/1530936-objectvalue?language=objc +func (c_ Cell) SetObjectValue(value objc.IObject) { + objc.Call[objc.Void](c_, objc.Sel("setObjectValue:"), value) } -// The alignment of the cell’s text. [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/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/1530790-preferstrackinguntilmouseup?language=objc +func (cc _CellClass) PrefersTrackingUntilMouseUp() bool { + rv := objc.Call[bool](cc, objc.Sel("prefersTrackingUntilMouseUp")) return rv } -// The alignment of the cell’s text. [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/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/1530790-preferstrackinguntilmouseup?language=objc +func Cell_PrefersTrackingUntilMouseUp() bool { + return CellClass.PrefersTrackingUntilMouseUp() } // The type of focus ring to use with the associated view. [Full Topic] @@ -797,110 +816,109 @@ func (c_ Cell) SetFocusRingType(value FocusRingType) { objc.Call[objc.Void](c_, objc.Sel("setFocusRingType:"), value) } -// The cell’s formatter object. [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/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/1534009-hasvalidobjectvalue?language=objc +func (c_ Cell) HasValidObjectValue() bool { + rv := objc.Call[bool](c_, objc.Sel("hasValidObjectValue")) return rv } -// The cell’s formatter object. [Full Topic] +// The object represented by the cell. [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:"), objc.Ptr(value)) +// [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 cell’s next state. [Full Topic] +// The object represented by 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")) - 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 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 integer. [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/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 allows the editing of its content’s text attributes by the user. [Full Topic] +// The cell’s value as an integer. [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/1525170-intvalue?language=objc +func (c_ Cell) SetIntValue(value int) { + objc.Call[objc.Void](c_, objc.Sel("setIntValue:"), value) } -// A Boolean value that indicates whether the cell has a valid object value. [Full Topic] +// The action performed by the cell. [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/1524654-action?language=objc +func (c_ Cell) Action() objc.Selector { + rv := objc.Call[objc.Selector](c_, objc.Sel("action")) return rv } -// The layout direction of the user interface. [Full Topic] +// The action performed by 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")) - return rv +// [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 layout direction of the user interface. [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/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/1525990-bordered?language=objc +func (c_ Cell) IsBordered() bool { + rv := objc.Call[bool](c_, objc.Sel("isBordered")) + return rv } -// The cell’s interior background style. [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/1526141-interiorbackgroundstyle?language=objc -func (c_ Cell) InteriorBackgroundStyle() BackgroundStyle { - rv := objc.Call[BackgroundStyle](c_, objc.Sel("interiorBackgroundStyle")) - return rv +// [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’s text can be selected. [Full Topic] +// The cell’s title 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/1525561-title?language=objc +func (c_ Cell) Title() string { + rv := objc.Call[string](c_, objc.Sel("title")) return rv } -// A Boolean value indicating whether the cell’s text can be selected. [Full Topic] +// The cell’s title 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/1525561-title?language=objc +func (c_ Cell) SetTitle(value string) { + objc.Call[objc.Void](c_, objc.Sel("setTitle:"), value) } -// A Boolean value indicating whether the cell supports the importation of images into its text. [Full Topic] +// The view associated with the cell. [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/1535913-controlview?language=objc +func (c_ Cell) ControlView() View { + rv := objc.Call[View](c_, objc.Sel("controlView")) return rv } -// A Boolean value indicating whether the cell supports the importation of images into its text. [Full Topic] +// The view associated with the cell. [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/1535913-controlview?language=objc +func (c_ Cell) SetControlView(value IView) { + objc.Call[objc.Void](c_, objc.Sel("setControlView:"), objc.Ptr(value)) } -// 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 } @@ -919,27 +937,34 @@ func (c_ Cell) SetDoubleValue(value float64) { objc.Call[objc.Void](c_, objc.Sel("setDoubleValue:"), value) } -// A Boolean value indicating whether the cell’s field editor should post text change notifications. [Full Topic] +// The cell’s formatter object. [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/1531115-formatter?language=objc +func (c_ Cell) Formatter() foundation.Formatter { + rv := objc.Call[foundation.Formatter](c_, objc.Sel("formatter")) return rv } -// The font that the cell uses to display text. [Full Topic] +// The cell’s formatter object. [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/1531115-formatter?language=objc +func (c_ Cell) SetFormatter(value foundation.IFormatter) { + objc.Call[objc.Void](c_, objc.Sel("setFormatter:"), objc.Ptr(value)) +} + +// A Boolean value indicating whether the cell’s text can be selected. [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")) return rv } -// The font that the cell uses to display 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/1526710-font?language=objc -func (c_ Cell) SetFont(value IFont) { - objc.Call[objc.Void](c_, objc.Sel("setFont:"), objc.Ptr(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) } // Returns the default type of focus ring for the receiver. [Full Topic] @@ -957,125 +982,103 @@ func Cell_DefaultFocusRingType() FocusRingType { return CellClass.DefaultFocusRingType() } -// The minimum size needed to display the cell. [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 -} - -// The cell’s contextual menu. [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")) - 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:"), objc.Ptr(value)) -} - -// The cell’s value as an Objective-C object. [Full Topic] +// The cell’s next state. [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/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 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] +// A Boolean value indicating whether the cell refuses the first responder status. [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/1525857-refusesfirstresponder?language=objc +func (c_ Cell) RefusesFirstResponder() bool { + rv := objc.Call[bool](c_, objc.Sel("refusesFirstResponder")) return rv } -// A Boolean value indicating whether the cell wraps text whose length that exceeds the cell’s frame. [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/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/1525857-refusesfirstresponder?language=objc +func (c_ Cell) SetRefusesFirstResponder(value bool) { + objc.Call[objc.Void](c_, objc.Sel("setRefusesFirstResponder:"), value) } -// Returns a Boolean value that indicates whether tracking stops when the cursor leaves the cell. [Full Topic] +// A Boolean value indicating whether the cell is editable. [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/1535822-editable?language=objc +func (c_ Cell) IsEditable() bool { + rv := objc.Call[bool](c_, objc.Sel("isEditable")) return rv } -// Returns a Boolean value that indicates whether tracking stops when the cursor leaves the cell. [Full Topic] +// A Boolean value indicating whether the cell is editable. [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/1535822-editable?language=objc +func (c_ Cell) SetEditable(value bool) { + objc.Call[objc.Void](c_, objc.Sel("setEditable:"), 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 } -// A Boolean value indicating whether the cell provides a visual indication that it is the first responder. [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/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/1532380-importsgraphics?language=objc +func (c_ Cell) ImportsGraphics() bool { + rv := objc.Call[bool](c_, objc.Sel("importsGraphics")) return rv } -// A Boolean value indicating whether the cell provides a visual indication that it is the first responder. [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/1532415-showsfirstresponder?language=objc -func (c_ Cell) SetShowsFirstResponder(value bool) { - objc.Call[objc.Void](c_, objc.Sel("setShowsFirstResponder:"), 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 excess text scrolls past the cell’s bounds. [Full Topic] +// A Boolean value indicating whether the cell has a highlighted appearance. [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/1530864-highlighted?language=objc +func (c_ Cell) IsHighlighted() bool { + rv := objc.Call[bool](c_, objc.Sel("isHighlighted")) return rv } -// A Boolean value indicating whether excess text scrolls past the cell’s bounds. [Full Topic] +// A Boolean value indicating whether the cell has a highlighted appearance. [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/1530864-highlighted?language=objc +func (c_ Cell) SetHighlighted(value bool) { + objc.Call[objc.Void](c_, objc.Sel("setHighlighted:"), value) } -// The object represented by the cell. [Full Topic] +// The font that the cell uses to display text. [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")) +// [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 } -// The object represented by the cell. [Full Topic] +// The font that the cell uses to display text. [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/1526710-font?language=objc +func (c_ Cell) SetFont(value IFont) { + objc.Call[objc.Void](c_, objc.Sel("setFont:"), objc.Ptr(value)) +} + +// The modifier flags for the last (left) mouse-down event. [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 } // A tag for identifying the cell. [Full Topic] @@ -1093,94 +1096,102 @@ func (c_ Cell) SetTag(value int) { objc.Call[objc.Void](c_, objc.Sel("setTag:"), value) } -// The cell’s title text. [Full Topic] +// The cell’s value as a single-precision floating-point number. [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/1534292-floatvalue?language=objc +func (c_ Cell) FloatValue() float64 { + rv := objc.Call[float64](c_, objc.Sel("floatValue")) return rv } -// The cell’s title text. [Full Topic] +// The cell’s value as a single-precision floating-point number. [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/1534292-floatvalue?language=objc +func (c_ Cell) SetFloatValue(value float64) { + objc.Call[objc.Void](c_, objc.Sel("setFloatValue:"), value) } -// The view associated with the cell. [Full Topic] +// The type of the cell. [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/1524871-type?language=objc +func (c_ Cell) Type() CellType { + rv := objc.Call[CellType](c_, objc.Sel("type")) return rv } -// The view associated with the cell. [Full Topic] +// The type of the cell. [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:"), objc.Ptr(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) } -// The initial writing direction used to determine the actual writing direction for text. [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/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/1529179-continuous?language=objc +func (c_ Cell) IsContinuous() bool { + rv := objc.Call[bool](c_, objc.Sel("isContinuous")) return rv } -// The initial writing direction used to determine the actual writing direction for text. [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/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/1529179-continuous?language=objc +func (c_ Cell) SetContinuous(value bool) { + objc.Call[objc.Void](c_, objc.Sel("setContinuous:"), value) } -// The type of the cell. [Full Topic] +// The minimum size needed to display 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/1532056-cellsize?language=objc +func (c_ Cell) CellSize() foundation.Size { + rv := objc.Call[foundation.Size](c_, objc.Sel("cellSize")) return rv } -// The type of the cell. [Full Topic] +// The layout direction of the user interface. [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/1529213-userinterfacelayoutdirection?language=objc +func (c_ Cell) UserInterfaceLayoutDirection() UserInterfaceLayoutDirection { + rv := objc.Call[UserInterfaceLayoutDirection](c_, objc.Sel("userInterfaceLayoutDirection")) + return rv } -// The cell’s value as a single-precision floating-point number. [Full Topic] +// The layout direction of the user interface. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nscell/1534292-floatvalue?language=objc -func (c_ Cell) FloatValue() float64 { - rv := objc.Call[float64](c_, objc.Sel("floatValue")) +// [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 restricts layout and rendering of text to a single line. [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")) return rv } -// The cell’s value as a single-precision floating-point number. [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/1534292-floatvalue?language=objc -func (c_ Cell) SetFloatValue(value float64) { - objc.Call[objc.Void](c_, objc.Sel("setFloatValue:"), 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) } -// A Boolean value indicating whether the cell is currently enabled. [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/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/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 is currently enabled. [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/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/1534125-scrollable?language=objc +func (c_ Cell) SetScrollable(value bool) { + objc.Call[objc.Void](c_, objc.Sel("setScrollable:"), value) } // The image displayed by the cell, if any. [Full Topic] @@ -1198,49 +1209,34 @@ func (c_ Cell) SetImage(value IImage) { objc.Call[objc.Void](c_, objc.Sel("setImage:"), objc.Ptr(value)) } -// A Boolean value indicating whether the cell refuses the first responder status. [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")) - return rv -} - -// A Boolean value indicating whether the cell refuses the first responder status. [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) -} - -// A Boolean value indicating whether the cell assumes responsibility for undo operations. [Full Topic] +// The size of the cell. [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/1530780-controlsize?language=objc +func (c_ Cell) ControlSize() ControlSize { + rv := objc.Call[ControlSize](c_, objc.Sel("controlSize")) return rv } -// A Boolean value indicating whether the cell assumes responsibility for undo operations. [Full Topic] +// The size of the cell. [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/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 has a bezeled border. [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/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/1526617-sendsactiononendediting?language=objc +func (c_ Cell) SendsActionOnEndEditing() bool { + rv := objc.Call[bool](c_, objc.Sel("sendsActionOnEndEditing")) return rv } -// A Boolean value indicating whether the cell has a bezeled border. [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/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/1526617-sendsactiononendediting?language=objc +func (c_ Cell) SetSendsActionOnEndEditing(value bool) { + objc.Call[objc.Void](c_, objc.Sel("setSendsActionOnEndEditing:"), value) } // A Boolean value indicating whether the cell truncates text that does not fit within the cell’s bounds. [Full Topic] @@ -1258,17 +1254,17 @@ func (c_ Cell) SetTruncatesLastVisibleLine(value bool) { objc.Call[objc.Void](c_, objc.Sel("setTruncatesLastVisibleLine:"), 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] +// The alignment of the cell’s text. [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/1534359-alignment?language=objc +func (c_ Cell) Alignment() TextAlignment { + rv := objc.Call[TextAlignment](c_, objc.Sel("alignment")) 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] +// The alignment of the cell’s text. [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/1534359-alignment?language=objc +func (c_ Cell) SetAlignment(value TextAlignment) { + objc.Call[objc.Void](c_, objc.Sel("setAlignment:"), value) } diff --git a/macos/appkit/change_spelling.gen.go b/macos/appkit/change_spelling_protocol.gen.go similarity index 67% rename from macos/appkit/change_spelling.gen.go rename to macos/appkit/change_spelling_protocol.gen.go index b054f036..9c90d98d 100644 --- a/macos/appkit/change_spelling.gen.go +++ b/macos/appkit/change_spelling_protocol.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package appkit @@ -15,18 +15,21 @@ type PChangeSpelling interface { HasChangeSpelling() bool } -// A concrete type wrapper for the [PChangeSpelling] protocol. -type ChangeSpellingWrapper struct { +// ensure impl type implements protocol interface +var _ PChangeSpelling = (*ChangeSpellingObject)(nil) + +// A concrete type for the [PChangeSpelling] protocol. +type ChangeSpellingObject struct { objc.Object } -func (c_ ChangeSpellingWrapper) HasChangeSpelling() bool { +func (c_ ChangeSpellingObject) HasChangeSpelling() bool { return c_.RespondsToSelector(objc.Sel("changeSpelling:")) } // Replaces the selected word in the receiver with a corrected version from the Spelling panel. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/appkit/nschangespelling/1526512-changespelling?language=objc -func (c_ ChangeSpellingWrapper) ChangeSpelling(sender objc.IObject) { +func (c_ ChangeSpellingObject) ChangeSpelling(sender objc.Object) { objc.Call[objc.Void](c_, objc.Sel("changeSpelling:"), sender) } diff --git a/macos/appkit/ci_image_rep.gen.go b/macos/appkit/ci_image_rep.gen.go index 341e7573..5ba13016 100644 --- a/macos/appkit/ci_image_rep.gen.go +++ b/macos/appkit/ci_image_rep.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package appkit @@ -35,6 +35,18 @@ func CIImageRepFrom(ptr unsafe.Pointer) CIImageRep { } } +func (cc _CIImageRepClass) ImageRepWithCIImage(image coreimage.IImage) CIImageRep { + rv := objc.Call[CIImageRep](cc, objc.Sel("imageRepWithCIImage:"), objc.Ptr(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:"), objc.Ptr(image)) return rv @@ -49,27 +61,11 @@ func NewCIImageRepWithCIImage(image coreimage.IImage) CIImageRep { return instance } -func (cc _CIImageRepClass) ImageRepWithCIImage(image coreimage.IImage) CIImageRep { - rv := objc.Call[CIImageRep](cc, objc.Sel("imageRepWithCIImage:"), objc.Ptr(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 } -func CIImageRep_Alloc() CIImageRep { - return CIImageRepClass.Alloc() -} - func (cc _CIImageRepClass) New() CIImageRep { rv := objc.Call[CIImageRep](cc, objc.Sel("new")) rv.Autorelease() diff --git a/macos/appkit/click_gesture_recognizer.gen.go b/macos/appkit/click_gesture_recognizer.gen.go index 39ae8695..5438443b 100644 --- a/macos/appkit/click_gesture_recognizer.gen.go +++ b/macos/appkit/click_gesture_recognizer.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package appkit @@ -18,12 +18,12 @@ type _ClickGestureRecognizerClass struct { // An interface definition for the [ClickGestureRecognizer] class. type IClickGestureRecognizer interface { IGestureRecognizer - ButtonMask() uint - SetButtonMask(value uint) - NumberOfTouchesRequired() int - SetNumberOfTouchesRequired(value int) NumberOfClicksRequired() int SetNumberOfClicksRequired(value int) + NumberOfTouchesRequired() int + SetNumberOfTouchesRequired(value int) + ButtonMask() uint + SetButtonMask(value uint) } // A discrete gesture recognizer that tracks a specified number of mouse clicks. [Full Topic] @@ -44,10 +44,6 @@ func (cc _ClickGestureRecognizerClass) Alloc() ClickGestureRecognizer { return rv } -func ClickGestureRecognizer_Alloc() ClickGestureRecognizer { - return ClickGestureRecognizerClass.Alloc() -} - func (cc _ClickGestureRecognizerClass) New() ClickGestureRecognizer { rv := objc.Call[ClickGestureRecognizer](cc, objc.Sel("new")) rv.Autorelease() @@ -77,19 +73,19 @@ func NewClickGestureRecognizerWithTargetAction(target objc.IObject, action objc. return instance } -// 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) } // The number of touches required in an NSTouchBar object for the gesture recognizer to match. [Full Topic] @@ -107,17 +103,17 @@ func (c_ ClickGestureRecognizer) SetNumberOfTouchesRequired(value int) { objc.Call[objc.Void](c_, objc.Sel("setNumberOfTouchesRequired:"), value) } -// 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) } diff --git a/macos/appkit/clip_view.gen.go b/macos/appkit/clip_view.gen.go index 0f77d69b..2b90e953 100644 --- a/macos/appkit/clip_view.gen.go +++ b/macos/appkit/clip_view.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package appkit @@ -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) - ContentInsets() foundation.EdgeInsets - SetContentInsets(value foundation.EdgeInsets) - BackgroundColor() Color - SetBackgroundColor(value IColor) + DocumentView() View + SetDocumentView(value IView) + DocumentVisibleRect() foundation.Rect 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] @@ -57,10 +57,6 @@ func (cc _ClipViewClass) Alloc() ClipView { return rv } -func ClipView_Alloc() ClipView { - return ClipViewClass.Alloc() -} - func (cc _ClipViewClass) New() ClipView { rv := objc.Call[ClipView](cc, objc.Sel("new")) rv.Autorelease() @@ -97,6 +93,13 @@ func (c_ ClipView) ViewBoundsChanged(notification foundation.INotification) { objc.Call[objc.Void](c_, objc.Sel("viewBoundsChanged:"), objc.Ptr(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:"), objc.Ptr(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 @@ -112,13 +115,6 @@ 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:"), objc.Ptr(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 @@ -134,36 +130,29 @@ func (c_ ClipView) SetDocumentCursor(value ICursor) { objc.Call[objc.Void](c_, objc.Sel("setDocumentCursor:"), objc.Ptr(value)) } -// The distance that the content view is inset from the enclosing scroll view. [Full Topic] +// The clip view’s document 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")) +// [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 distance that the content view is inset from the enclosing scroll view. [Full Topic] +// The clip view’s document 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) +// [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:"), objc.Ptr(value)) } -// The color of the clip view’s background. [Full Topic] +// 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/1525469-backgroundcolor?language=objc -func (c_ ClipView) BackgroundColor() Color { - rv := objc.Call[Color](c_, objc.Sel("backgroundColor")) +// [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 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:"), objc.Ptr(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 @@ -179,14 +168,6 @@ 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 @@ -195,21 +176,6 @@ 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:"), objc.Ptr(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 @@ -224,3 +190,33 @@ 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:"), objc.Ptr(value)) +} diff --git a/macos/appkit/cloud_sharing_service_delegate.gen.go b/macos/appkit/cloud_sharing_service_delegate.gen.go index 5f65d53c..9b8157f0 100644 --- a/macos/appkit/cloud_sharing_service_delegate.gen.go +++ b/macos/appkit/cloud_sharing_service_delegate.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package appkit @@ -11,21 +11,82 @@ import ( // // [Full Topic]: https://developer.apple.com/documentation/appkit/nscloudsharingservicedelegate?language=objc type PCloudSharingServiceDelegate interface { - // optional - SharingServiceDidSaveShare(sharingService SharingService, share objc.Object) - HasSharingServiceDidSaveShare() bool - // 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 } // A delegate implementation builder for the [PCloudSharingServiceDelegate] protocol. type CloudSharingServiceDelegate struct { - _SharingServiceDidSaveShare func(sharingService SharingService, share objc.Object) - _OptionsForSharingServiceShareProvider func(cloudKitSharingService SharingService, provider foundation.ItemProvider) CloudKitSharingServiceOptions + _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 +} + +// 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 } @@ -43,48 +104,56 @@ func (di *CloudSharingServiceDelegate) SetSharingServiceDidSaveShare(f func(shar func (di *CloudSharingServiceDelegate) SharingServiceDidSaveShare(sharingService SharingService, share objc.Object) { di._SharingServiceDidSaveShare(sharingService, share) } -func (di *CloudSharingServiceDelegate) HasOptionsForSharingServiceShareProvider() bool { - return di._OptionsForSharingServiceShareProvider != nil + +// ensure impl type implements protocol interface +var _ PCloudSharingServiceDelegate = (*CloudSharingServiceDelegateObject)(nil) + +// A concrete type for the [PCloudSharingServiceDelegate] protocol. +type CloudSharingServiceDelegateObject struct { + objc.Object } -// 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 +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 (di *CloudSharingServiceDelegate) OptionsForSharingServiceShareProvider(cloudKitSharingService SharingService, provider foundation.ItemProvider) CloudKitSharingServiceOptions { - return di._OptionsForSharingServiceShareProvider(cloudKitSharingService, provider) +func (c_ CloudSharingServiceDelegateObject) OptionsForSharingServiceShareProvider(cloudKitSharingService SharingService, provider foundation.ItemProvider) CloudKitSharingServiceOptions { + rv := objc.Call[CloudKitSharingServiceOptions](c_, objc.Sel("optionsForSharingService:shareProvider:"), objc.Ptr(cloudKitSharingService), objc.Ptr(provider)) + return rv } -// A concrete type wrapper for the [PCloudSharingServiceDelegate] protocol. -type CloudSharingServiceDelegateWrapper struct { - objc.Object +func (c_ CloudSharingServiceDelegateObject) HasSharingServiceDidStopSharing() bool { + return c_.RespondsToSelector(objc.Sel("sharingService:didStopSharing:")) } -func (c_ CloudSharingServiceDelegateWrapper) HasSharingServiceDidSaveShare() bool { - return c_.RespondsToSelector(objc.Sel("sharingService:didSaveShare:")) +// 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 (c_ CloudSharingServiceDelegateObject) SharingServiceDidStopSharing(sharingService SharingService, share objc.Object) { + objc.Call[objc.Void](c_, objc.Sel("sharingService:didStopSharing:"), objc.Ptr(sharingService), objc.Ptr(share)) } -// Tells the delegate when the cloud-sharing service saves the CloudKit share. [Full Topic] +func (c_ CloudSharingServiceDelegateObject) HasSharingServiceDidCompleteForItemsError() bool { + return c_.RespondsToSelector(objc.Sel("sharingService:didCompleteForItems:error:")) +} + +// Tells the delegate when the cloud-sharing service completes. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nscloudsharingservicedelegate/1644712-sharingservice?language=objc -func (c_ CloudSharingServiceDelegateWrapper) SharingServiceDidSaveShare(sharingService ISharingService, share objc.IObject) { - objc.Call[objc.Void](c_, objc.Sel("sharingService:didSaveShare:"), objc.Ptr(sharingService), objc.Ptr(share)) +// [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:"), objc.Ptr(sharingService), items, objc.Ptr(error)) } -func (c_ CloudSharingServiceDelegateWrapper) HasOptionsForSharingServiceShareProvider() bool { - return c_.RespondsToSelector(objc.Sel("optionsForSharingService:shareProvider:")) +func (c_ CloudSharingServiceDelegateObject) HasSharingServiceDidSaveShare() bool { + return c_.RespondsToSelector(objc.Sel("sharingService:didSaveShare:")) } -// Asks the delegate for the participant options for the cloud-sharing service. [Full Topic] +// Tells the delegate when the cloud-sharing service saves the CloudKit share. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nscloudsharingservicedelegate/1644694-optionsforsharingservice?language=objc -func (c_ CloudSharingServiceDelegateWrapper) OptionsForSharingServiceShareProvider(cloudKitSharingService ISharingService, provider foundation.IItemProvider) CloudKitSharingServiceOptions { - rv := objc.Call[CloudKitSharingServiceOptions](c_, objc.Sel("optionsForSharingService:shareProvider:"), objc.Ptr(cloudKitSharingService), objc.Ptr(provider)) - return rv +// [Full Topic]: https://developer.apple.com/documentation/appkit/nscloudsharingservicedelegate/1644712-sharingservice?language=objc +func (c_ CloudSharingServiceDelegateObject) SharingServiceDidSaveShare(sharingService SharingService, share objc.Object) { + objc.Call[objc.Void](c_, objc.Sel("sharingService:didSaveShare:"), objc.Ptr(sharingService), objc.Ptr(share)) } diff --git a/macos/appkit/cloud_sharing_validation.gen.go b/macos/appkit/cloud_sharing_validation_protocol.gen.go similarity index 61% rename from macos/appkit/cloud_sharing_validation.gen.go rename to macos/appkit/cloud_sharing_validation_protocol.gen.go index 4d4bc92a..27c4bbbb 100644 --- a/macos/appkit/cloud_sharing_validation.gen.go +++ b/macos/appkit/cloud_sharing_validation_protocol.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package appkit @@ -11,23 +11,26 @@ import ( // [Full Topic]: https://developer.apple.com/documentation/appkit/nscloudsharingvalidation?language=objc type PCloudSharingValidation interface { // optional - CloudShareForUserInterfaceItem(item ValidatedUserInterfaceItemWrapper) objc.IObject + CloudShareForUserInterfaceItem(item ValidatedUserInterfaceItemObject) objc.Object HasCloudShareForUserInterfaceItem() bool } -// A concrete type wrapper for the [PCloudSharingValidation] protocol. -type CloudSharingValidationWrapper struct { +// ensure impl type implements protocol interface +var _ PCloudSharingValidation = (*CloudSharingValidationObject)(nil) + +// A concrete type for the [PCloudSharingValidation] protocol. +type CloudSharingValidationObject struct { objc.Object } -func (c_ CloudSharingValidationWrapper) HasCloudShareForUserInterfaceItem() bool { +func (c_ CloudSharingValidationObject) HasCloudShareForUserInterfaceItem() bool { return c_.RespondsToSelector(objc.Sel("cloudShareForUserInterfaceItem:")) } // Returns the Cloud share object that corresponds to the specified item, if one exists. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/appkit/nscloudsharingvalidation/2315049-cloudshareforuserinterfaceitem?language=objc -func (c_ CloudSharingValidationWrapper) CloudShareForUserInterfaceItem(item PValidatedUserInterfaceItem) objc.Object { +func (c_ CloudSharingValidationObject) CloudShareForUserInterfaceItem(item ValidatedUserInterfaceItemObject) objc.Object { po0 := objc.WrapAsProtocol("NSValidatedUserInterfaceItem", item) rv := objc.Call[objc.Object](c_, objc.Sel("cloudShareForUserInterfaceItem:"), po0) return rv diff --git a/macos/appkit/collection_layout_anchor.gen.go b/macos/appkit/collection_layout_anchor.gen.go index 9a8c52e0..b9b6ee39 100644 --- a/macos/appkit/collection_layout_anchor.gen.go +++ b/macos/appkit/collection_layout_anchor.gen.go @@ -1,11 +1,11 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package appkit import ( "unsafe" - "github.com/progrium/macdriver/macos/coregraphics" + "github.com/progrium/macdriver/macos/foundation" "github.com/progrium/macdriver/objc" ) @@ -22,7 +22,7 @@ type ICollectionLayoutAnchor interface { Edges() DirectionalRectEdge IsFractionalOffset() bool IsAbsoluteOffset() bool - Offset() coregraphics.Point + Offset() foundation.Point } // An object that defines how to attach a supplementary item to an item in a collection view. [Full Topic] @@ -38,6 +38,30 @@ 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 @@ -55,10 +79,6 @@ func (cc _CollectionLayoutAnchorClass) Alloc() CollectionLayoutAnchor { return rv } -func CollectionLayoutAnchor_Alloc() CollectionLayoutAnchor { - return CollectionLayoutAnchorClass.Alloc() -} - func (cc _CollectionLayoutAnchorClass) New() CollectionLayoutAnchor { rv := objc.Call[CollectionLayoutAnchor](cc, objc.Sel("new")) rv.Autorelease() @@ -101,7 +121,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() coregraphics.Point { - rv := objc.Call[coregraphics.Point](c_, objc.Sel("offset")) +func (c_ CollectionLayoutAnchor) Offset() foundation.Point { + rv := objc.Call[foundation.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 49d7914c..8414cb14 100644 --- a/macos/appkit/collection_layout_boundary_supplementary_item.gen.go +++ b/macos/appkit/collection_layout_boundary_supplementary_item.gen.go @@ -1,11 +1,11 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package appkit import ( "unsafe" - "github.com/progrium/macdriver/macos/coregraphics" + "github.com/progrium/macdriver/macos/foundation" "github.com/progrium/macdriver/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,13 +52,21 @@ func CollectionLayoutBoundarySupplementaryItem_BoundarySupplementaryItemWithLayo return CollectionLayoutBoundarySupplementaryItemClass.BoundarySupplementaryItemWithLayoutSizeElementKindAlignment(layoutSize, elementKind, alignment) } -func (cc _CollectionLayoutBoundarySupplementaryItemClass) Alloc() CollectionLayoutBoundarySupplementaryItem { - rv := objc.Call[CollectionLayoutBoundarySupplementaryItem](cc, objc.Sel("alloc")) +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:"), objc.Ptr(layoutSize), elementKind, alignment, absoluteOffset) return rv } -func CollectionLayoutBoundarySupplementaryItem_Alloc() CollectionLayoutBoundarySupplementaryItem { - return CollectionLayoutBoundarySupplementaryItemClass.Alloc() +// 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 } func (cc _CollectionLayoutBoundarySupplementaryItemClass) New() CollectionLayoutBoundarySupplementaryItem { @@ -76,6 +84,18 @@ 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:"), objc.Ptr(layoutSize), elementKind, objc.Ptr(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:"), objc.Ptr(layoutSize), elementKind, objc.Ptr(containerAnchor), objc.Ptr(itemAnchor)) return rv @@ -100,34 +120,23 @@ func CollectionLayoutBoundarySupplementaryItem_ItemWithLayoutSize(layoutSize ICo return CollectionLayoutBoundarySupplementaryItemClass.ItemWithLayoutSize(layoutSize) } -// 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")) +func (cc _CollectionLayoutBoundarySupplementaryItemClass) ItemWithLayoutSizeSupplementaryItems(layoutSize ICollectionLayoutSize, supplementaryItems []ICollectionLayoutSupplementaryItem) CollectionLayoutBoundarySupplementaryItem { + rv := objc.Call[CollectionLayoutBoundarySupplementaryItem](cc, objc.Sel("itemWithLayoutSize:supplementaryItems:"), objc.Ptr(layoutSize), supplementaryItems) 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] +// 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/nscollectionlayoutboundarysupplementaryitem/3199044-pintovisiblebounds?language=objc -func (c_ CollectionLayoutBoundarySupplementaryItem) SetPinToVisibleBounds(value bool) { - objc.Call[objc.Void](c_, objc.Sel("setPinToVisibleBounds:"), value) +// [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) } // 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() coregraphics.Point { - rv := objc.Call[coregraphics.Point](c_, objc.Sel("offset")) +func (c_ CollectionLayoutBoundarySupplementaryItem) Offset() foundation.Point { + rv := objc.Call[foundation.Point](c_, objc.Sel("offset")) return rv } @@ -145,3 +154,26 @@ 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.gen.go b/macos/appkit/collection_layout_container_protocol.gen.go similarity index 63% rename from macos/appkit/collection_layout_container.gen.go rename to macos/appkit/collection_layout_container_protocol.gen.go index 49ec24a5..61fcd737 100644 --- a/macos/appkit/collection_layout_container.gen.go +++ b/macos/appkit/collection_layout_container_protocol.gen.go @@ -1,9 +1,9 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package appkit import ( - "github.com/progrium/macdriver/macos/coregraphics" + "github.com/progrium/macdriver/macos/foundation" "github.com/progrium/macdriver/objc" ) @@ -11,72 +11,75 @@ 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() coregraphics.Size + ContentSize() foundation.Size HasContentSize() bool // optional - EffectiveContentInsets() DirectionalEdgeInsets - HasEffectiveContentInsets() bool - - // optional - EffectiveContentSize() coregraphics.Size + EffectiveContentSize() foundation.Size HasEffectiveContentSize() bool } -// A concrete type wrapper for the [PCollectionLayoutContainer] protocol. -type CollectionLayoutContainerWrapper struct { +// ensure impl type implements protocol interface +var _ PCollectionLayoutContainer = (*CollectionLayoutContainerObject)(nil) + +// A concrete type for the [PCollectionLayoutContainer] protocol. +type CollectionLayoutContainerObject struct { objc.Object } -func (c_ CollectionLayoutContainerWrapper) HasContentInsets() bool { +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")) } // The amount of space added around the content of the container to adjust its final size. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/uikit/nscollectionlayoutcontainer/3199046-contentinsets?language=objc -func (c_ CollectionLayoutContainerWrapper) ContentInsets() DirectionalEdgeInsets { +func (c_ CollectionLayoutContainerObject) ContentInsets() DirectionalEdgeInsets { rv := objc.Call[DirectionalEdgeInsets](c_, objc.Sel("contentInsets")) return rv } -func (c_ CollectionLayoutContainerWrapper) HasContentSize() bool { +func (c_ CollectionLayoutContainerObject) HasContentSize() bool { return c_.RespondsToSelector(objc.Sel("contentSize")) } // 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_ CollectionLayoutContainerWrapper) ContentSize() coregraphics.Size { - rv := objc.Call[coregraphics.Size](c_, objc.Sel("contentSize")) - return rv -} - -func (c_ CollectionLayoutContainerWrapper) 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_ CollectionLayoutContainerWrapper) EffectiveContentInsets() DirectionalEdgeInsets { - rv := objc.Call[DirectionalEdgeInsets](c_, objc.Sel("effectiveContentInsets")) +func (c_ CollectionLayoutContainerObject) ContentSize() foundation.Size { + rv := objc.Call[foundation.Size](c_, objc.Sel("contentSize")) return rv } -func (c_ CollectionLayoutContainerWrapper) HasEffectiveContentSize() bool { +func (c_ CollectionLayoutContainerObject) HasEffectiveContentSize() bool { return c_.RespondsToSelector(objc.Sel("effectiveContentSize")) } // 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_ CollectionLayoutContainerWrapper) EffectiveContentSize() coregraphics.Size { - rv := objc.Call[coregraphics.Size](c_, objc.Sel("effectiveContentSize")) +func (c_ CollectionLayoutContainerObject) EffectiveContentSize() foundation.Size { + rv := objc.Call[foundation.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 999771ff..9b6602b8 100644 --- a/macos/appkit/collection_layout_decoration_item.gen.go +++ b/macos/appkit/collection_layout_decoration_item.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package appkit @@ -53,10 +53,6 @@ func (cc _CollectionLayoutDecorationItemClass) Alloc() CollectionLayoutDecoratio return rv } -func CollectionLayoutDecorationItem_Alloc() CollectionLayoutDecorationItem { - return CollectionLayoutDecorationItemClass.Alloc() -} - func (cc _CollectionLayoutDecorationItemClass) New() CollectionLayoutDecorationItem { rv := objc.Call[CollectionLayoutDecorationItem](cc, objc.Sel("new")) rv.Autorelease() @@ -84,6 +80,18 @@ 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:"), objc.Ptr(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 910c6873..b8f1a8ce 100644 --- a/macos/appkit/collection_layout_dimension.gen.go +++ b/macos/appkit/collection_layout_dimension.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package appkit @@ -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,18 +38,6 @@ func CollectionLayoutDimensionFrom(ptr unsafe.Pointer) CollectionLayoutDimension } } -func (cc _CollectionLayoutDimensionClass) FractionalHeightDimension(fractionalHeight float64) CollectionLayoutDimension { - rv := objc.Call[CollectionLayoutDimension](cc, objc.Sel("fractionalHeightDimension:"), fractionalHeight) - return rv -} - -// Creates a dimension that is computed as a fraction of the height of the containing group. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/uikit/nscollectionlayoutdimension/3199058-fractionalheightdimension?language=objc -func CollectionLayoutDimension_FractionalHeightDimension(fractionalHeight float64) CollectionLayoutDimension { - return CollectionLayoutDimensionClass.FractionalHeightDimension(fractionalHeight) -} - func (cc _CollectionLayoutDimensionClass) AbsoluteDimension(absoluteDimension float64) CollectionLayoutDimension { rv := objc.Call[CollectionLayoutDimension](cc, objc.Sel("absoluteDimension:"), absoluteDimension) return rv @@ -62,18 +50,6 @@ func CollectionLayoutDimension_AbsoluteDimension(absoluteDimension float64) Coll return CollectionLayoutDimensionClass.AbsoluteDimension(absoluteDimension) } -func (cc _CollectionLayoutDimensionClass) FractionalWidthDimension(fractionalWidth float64) CollectionLayoutDimension { - rv := objc.Call[CollectionLayoutDimension](cc, objc.Sel("fractionalWidthDimension:"), fractionalWidth) - return rv -} - -// Creates a dimension that is computed as a fraction of the width of the containing group. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/uikit/nscollectionlayoutdimension/3199059-fractionalwidthdimension?language=objc -func CollectionLayoutDimension_FractionalWidthDimension(fractionalWidth float64) CollectionLayoutDimension { - return CollectionLayoutDimensionClass.FractionalWidthDimension(fractionalWidth) -} - func (cc _CollectionLayoutDimensionClass) EstimatedDimension(estimatedDimension float64) CollectionLayoutDimension { rv := objc.Call[CollectionLayoutDimension](cc, objc.Sel("estimatedDimension:"), estimatedDimension) return rv @@ -86,13 +62,33 @@ func CollectionLayoutDimension_EstimatedDimension(estimatedDimension float64) Co return CollectionLayoutDimensionClass.EstimatedDimension(estimatedDimension) } -func (cc _CollectionLayoutDimensionClass) Alloc() CollectionLayoutDimension { - rv := objc.Call[CollectionLayoutDimension](cc, objc.Sel("alloc")) +func (cc _CollectionLayoutDimensionClass) FractionalHeightDimension(fractionalHeight float64) CollectionLayoutDimension { + rv := objc.Call[CollectionLayoutDimension](cc, objc.Sel("fractionalHeightDimension:"), fractionalHeight) + return rv +} + +// Creates a dimension that is computed as a fraction of the height of the containing group. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/uikit/nscollectionlayoutdimension/3199058-fractionalheightdimension?language=objc +func CollectionLayoutDimension_FractionalHeightDimension(fractionalHeight float64) CollectionLayoutDimension { + return CollectionLayoutDimensionClass.FractionalHeightDimension(fractionalHeight) +} + +func (cc _CollectionLayoutDimensionClass) FractionalWidthDimension(fractionalWidth float64) CollectionLayoutDimension { + rv := objc.Call[CollectionLayoutDimension](cc, objc.Sel("fractionalWidthDimension:"), fractionalWidth) return rv } -func CollectionLayoutDimension_Alloc() CollectionLayoutDimension { - return CollectionLayoutDimensionClass.Alloc() +// Creates a dimension that is computed as a fraction of the width of the containing group. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/uikit/nscollectionlayoutdimension/3199059-fractionalwidthdimension?language=objc +func CollectionLayoutDimension_FractionalWidthDimension(fractionalWidth float64) CollectionLayoutDimension { + return CollectionLayoutDimensionClass.FractionalWidthDimension(fractionalWidth) +} + +func (cc _CollectionLayoutDimensionClass) Alloc() CollectionLayoutDimension { + rv := objc.Call[CollectionLayoutDimension](cc, objc.Sel("alloc")) + return rv } func (cc _CollectionLayoutDimensionClass) New() CollectionLayoutDimension { @@ -110,6 +106,22 @@ 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 @@ -126,14 +138,6 @@ 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 @@ -141,11 +145,3 @@ 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 1aedfd48..3cf87dea 100644 --- a/macos/appkit/collection_layout_edge_spacing.gen.go +++ b/macos/appkit/collection_layout_edge_spacing.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package appkit @@ -18,10 +18,10 @@ type _CollectionLayoutEdgeSpacingClass struct { // An interface definition for the [CollectionLayoutEdgeSpacing] class. type ICollectionLayoutEdgeSpacing interface { objc.IObject - Leading() CollectionLayoutSpacing Trailing() CollectionLayoutSpacing - Bottom() CollectionLayoutSpacing Top() CollectionLayoutSpacing + Bottom() CollectionLayoutSpacing + Leading() CollectionLayoutSpacing } // An object that defines the space around the edges of items in a collection view. [Full Topic] @@ -54,10 +54,6 @@ func (cc _CollectionLayoutEdgeSpacingClass) Alloc() CollectionLayoutEdgeSpacing return rv } -func CollectionLayoutEdgeSpacing_Alloc() CollectionLayoutEdgeSpacing { - return CollectionLayoutEdgeSpacingClass.Alloc() -} - func (cc _CollectionLayoutEdgeSpacingClass) New() CollectionLayoutEdgeSpacing { rv := objc.Call[CollectionLayoutEdgeSpacing](cc, objc.Sel("new")) rv.Autorelease() @@ -73,14 +69,6 @@ func (c_ CollectionLayoutEdgeSpacing) Init() CollectionLayoutEdgeSpacing { return rv } -// The leading 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")) - return rv -} - // The trailing edge spacing value. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/uikit/nscollectionlayoutedgespacing/3199071-trailing?language=objc @@ -89,6 +77,14 @@ func (c_ CollectionLayoutEdgeSpacing) Trailing() CollectionLayoutSpacing { return rv } +// The top 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")) + return rv +} + // The bottom edge spacing value. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/uikit/nscollectionlayoutedgespacing/3199065-bottom?language=objc @@ -97,10 +93,10 @@ func (c_ CollectionLayoutEdgeSpacing) Bottom() CollectionLayoutSpacing { return rv } -// The top edge spacing value. [Full Topic] +// The leading 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/3199069-leading?language=objc +func (c_ CollectionLayoutEdgeSpacing) Leading() CollectionLayoutSpacing { + rv := objc.Call[CollectionLayoutSpacing](c_, objc.Sel("leading")) return rv } diff --git a/macos/appkit/collection_layout_environment.gen.go b/macos/appkit/collection_layout_environment_protocol.gen.go similarity index 56% rename from macos/appkit/collection_layout_environment.gen.go rename to macos/appkit/collection_layout_environment_protocol.gen.go index 3c3ad23c..97d5bbe8 100644 --- a/macos/appkit/collection_layout_environment.gen.go +++ b/macos/appkit/collection_layout_environment_protocol.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package appkit @@ -11,23 +11,26 @@ import ( // [Full Topic]: https://developer.apple.com/documentation/uikit/nscollectionlayoutenvironment?language=objc type PCollectionLayoutEnvironment interface { // optional - Container() PCollectionLayoutContainer + Container() CollectionLayoutContainerObject HasContainer() bool } -// A concrete type wrapper for the [PCollectionLayoutEnvironment] protocol. -type CollectionLayoutEnvironmentWrapper struct { +// ensure impl type implements protocol interface +var _ PCollectionLayoutEnvironment = (*CollectionLayoutEnvironmentObject)(nil) + +// A concrete type for the [PCollectionLayoutEnvironment] protocol. +type CollectionLayoutEnvironmentObject struct { objc.Object } -func (c_ CollectionLayoutEnvironmentWrapper) HasContainer() bool { +func (c_ CollectionLayoutEnvironmentObject) HasContainer() bool { return c_.RespondsToSelector(objc.Sel("container")) } // Information about the layout's container, such as its size and content insets. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/uikit/nscollectionlayoutenvironment/3199073-container?language=objc -func (c_ CollectionLayoutEnvironmentWrapper) Container() CollectionLayoutContainerWrapper { - rv := objc.Call[CollectionLayoutContainerWrapper](c_, objc.Sel("container")) +func (c_ CollectionLayoutEnvironmentObject) Container() CollectionLayoutContainerObject { + rv := objc.Call[CollectionLayoutContainerObject](c_, objc.Sel("container")) return rv } diff --git a/macos/appkit/collection_layout_group.gen.go b/macos/appkit/collection_layout_group.gen.go index ba7e847f..9ad56b1c 100644 --- a/macos/appkit/collection_layout_group.gen.go +++ b/macos/appkit/collection_layout_group.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package appkit @@ -19,10 +19,10 @@ type _CollectionLayoutGroupClass struct { type ICollectionLayoutGroup interface { ICollectionLayoutItem VisualDescription() string - SetSupplementaryItems(value []ICollectionLayoutSupplementaryItem) - Subitems() []CollectionLayoutItem InterItemSpacing() CollectionLayoutSpacing SetInterItemSpacing(value ICollectionLayoutSpacing) + SetSupplementaryItems(value []ICollectionLayoutSupplementaryItem) + Subitems() []CollectionLayoutItem } // 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) VerticalGroupWithLayoutSizeSubitems(layoutSize ICollectionLayoutSize, subitems []ICollectionLayoutItem) CollectionLayoutGroup { - rv := objc.Call[CollectionLayoutGroup](cc, objc.Sel("verticalGroupWithLayoutSize:subitems:"), objc.Ptr(layoutSize), subitems) +func (cc _CollectionLayoutGroupClass) CustomGroupWithLayoutSizeItemProvider(layoutSize ICollectionLayoutSize, itemProvider CollectionLayoutGroupCustomItemProvider) CollectionLayoutGroup { + rv := objc.Call[CollectionLayoutGroup](cc, objc.Sel("customGroupWithLayoutSize:itemProvider:"), objc.Ptr(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) HorizontalGroupWithLayoutSizeSubitems(layoutSize ICollectionLayoutSize, subitems []ICollectionLayoutItem) CollectionLayoutGroup { @@ -62,16 +62,16 @@ func CollectionLayoutGroup_HorizontalGroupWithLayoutSizeSubitems(layoutSize ICol return CollectionLayoutGroupClass.HorizontalGroupWithLayoutSizeSubitems(layoutSize, subitems) } -func (cc _CollectionLayoutGroupClass) CustomGroupWithLayoutSizeItemProvider(layoutSize ICollectionLayoutSize, itemProvider CollectionLayoutGroupCustomItemProvider) CollectionLayoutGroup { - rv := objc.Call[CollectionLayoutGroup](cc, objc.Sel("customGroupWithLayoutSize:itemProvider:"), objc.Ptr(layoutSize), itemProvider) +func (cc _CollectionLayoutGroupClass) VerticalGroupWithLayoutSizeSubitems(layoutSize ICollectionLayoutSize, subitems []ICollectionLayoutItem) CollectionLayoutGroup { + rv := objc.Call[CollectionLayoutGroup](cc, objc.Sel("verticalGroupWithLayoutSize:subitems:"), objc.Ptr(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) Alloc() CollectionLayoutGroup { @@ -79,10 +79,6 @@ func (cc _CollectionLayoutGroupClass) Alloc() CollectionLayoutGroup { return rv } -func CollectionLayoutGroup_Alloc() CollectionLayoutGroup { - return CollectionLayoutGroupClass.Alloc() -} - func (cc _CollectionLayoutGroupClass) New() CollectionLayoutGroup { rv := objc.Call[CollectionLayoutGroup](cc, objc.Sel("new")) rv.Autorelease() @@ -110,26 +106,23 @@ func CollectionLayoutGroup_ItemWithLayoutSize(layoutSize ICollectionLayoutSize) return CollectionLayoutGroupClass.ItemWithLayoutSize(layoutSize) } -// 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")) +func (cc _CollectionLayoutGroupClass) ItemWithLayoutSizeSupplementaryItems(layoutSize ICollectionLayoutSize, supplementaryItems []ICollectionLayoutSupplementaryItem) CollectionLayoutGroup { + rv := objc.Call[CollectionLayoutGroup](cc, objc.Sel("itemWithLayoutSize:supplementaryItems:"), objc.Ptr(layoutSize), supplementaryItems) return rv } -// An array of the supplementary items that are anchored to the group. [Full Topic] +// 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/nscollectionlayoutgroup/3199079-supplementaryitems?language=objc -func (c_ CollectionLayoutGroup) SetSupplementaryItems(value []ICollectionLayoutSupplementaryItem) { - objc.Call[objc.Void](c_, objc.Sel("setSupplementaryItems:"), value) +// [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) } -// An array of the items contained in the group. [Full Topic] +// Returns a string with an ASCII representation of 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")) +// [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 } @@ -147,3 +140,18 @@ func (c_ CollectionLayoutGroup) InterItemSpacing() CollectionLayoutSpacing { func (c_ CollectionLayoutGroup) SetInterItemSpacing(value ICollectionLayoutSpacing) { objc.Call[objc.Void](c_, objc.Sel("setInterItemSpacing:"), objc.Ptr(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 5d0480ec..ba037300 100644 --- a/macos/appkit/collection_layout_group_custom_item.gen.go +++ b/macos/appkit/collection_layout_group_custom_item.gen.go @@ -1,11 +1,11 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package appkit import ( "unsafe" - "github.com/progrium/macdriver/macos/coregraphics" + "github.com/progrium/macdriver/macos/foundation" "github.com/progrium/macdriver/objc" ) @@ -19,7 +19,7 @@ type _CollectionLayoutGroupCustomItemClass struct { // An interface definition for the [CollectionLayoutGroupCustomItem] class. type ICollectionLayoutGroupCustomItem interface { objc.IObject - Frame() coregraphics.Rect + Frame() foundation.Rect ZIndex() int } @@ -36,7 +36,19 @@ func CollectionLayoutGroupCustomItemFrom(ptr unsafe.Pointer) CollectionLayoutGro } } -func (cc _CollectionLayoutGroupCustomItemClass) CustomItemWithFrame(frame coregraphics.Rect) CollectionLayoutGroupCustomItem { +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 { rv := objc.Call[CollectionLayoutGroupCustomItem](cc, objc.Sel("customItemWithFrame:"), frame) return rv } @@ -44,7 +56,7 @@ func (cc _CollectionLayoutGroupCustomItemClass) CustomItemWithFrame(frame coregr // 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 coregraphics.Rect) CollectionLayoutGroupCustomItem { +func CollectionLayoutGroupCustomItem_CustomItemWithFrame(frame foundation.Rect) CollectionLayoutGroupCustomItem { return CollectionLayoutGroupCustomItemClass.CustomItemWithFrame(frame) } @@ -53,10 +65,6 @@ func (cc _CollectionLayoutGroupCustomItemClass) Alloc() CollectionLayoutGroupCus return rv } -func CollectionLayoutGroupCustomItem_Alloc() CollectionLayoutGroupCustomItem { - return CollectionLayoutGroupCustomItemClass.Alloc() -} - func (cc _CollectionLayoutGroupCustomItemClass) New() CollectionLayoutGroupCustomItem { rv := objc.Call[CollectionLayoutGroupCustomItem](cc, objc.Sel("new")) rv.Autorelease() @@ -75,8 +83,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() coregraphics.Rect { - rv := objc.Call[coregraphics.Rect](c_, objc.Sel("frame")) +func (c_ CollectionLayoutGroupCustomItem) Frame() foundation.Rect { + rv := objc.Call[foundation.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 d1faf03a..8e17d525 100644 --- a/macos/appkit/collection_layout_item.gen.go +++ b/macos/appkit/collection_layout_item.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package appkit @@ -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,13 +51,21 @@ func CollectionLayoutItem_ItemWithLayoutSize(layoutSize ICollectionLayoutSize) C return CollectionLayoutItemClass.ItemWithLayoutSize(layoutSize) } -func (cc _CollectionLayoutItemClass) Alloc() CollectionLayoutItem { - rv := objc.Call[CollectionLayoutItem](cc, objc.Sel("alloc")) +func (cc _CollectionLayoutItemClass) ItemWithLayoutSizeSupplementaryItems(layoutSize ICollectionLayoutSize, supplementaryItems []ICollectionLayoutSupplementaryItem) CollectionLayoutItem { + rv := objc.Call[CollectionLayoutItem](cc, objc.Sel("itemWithLayoutSize:supplementaryItems:"), objc.Ptr(layoutSize), supplementaryItems) return rv } -func CollectionLayoutItem_Alloc() CollectionLayoutItem { - return CollectionLayoutItemClass.Alloc() +// 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 } func (cc _CollectionLayoutItemClass) New() CollectionLayoutItem { @@ -75,22 +83,6 @@ 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 @@ -106,6 +98,14 @@ 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,3 +120,11 @@ func (c_ CollectionLayoutItem) EdgeSpacing() CollectionLayoutEdgeSpacing { func (c_ CollectionLayoutItem) SetEdgeSpacing(value ICollectionLayoutEdgeSpacing) { objc.Call[objc.Void](c_, objc.Sel("setEdgeSpacing:"), objc.Ptr(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 5cf734fb..56d395bb 100644 --- a/macos/appkit/collection_layout_section.gen.go +++ b/macos/appkit/collection_layout_section.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package appkit @@ -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) - ContentInsets() DirectionalEdgeInsets - SetContentInsets(value DirectionalEdgeInsets) VisibleItemsInvalidationHandler() CollectionLayoutSectionVisibleItemsInvalidationHandler SetVisibleItemsInvalidationHandler(value CollectionLayoutSectionVisibleItemsInvalidationHandler) - DecorationItems() []CollectionLayoutDecorationItem - SetDecorationItems(value []ICollectionLayoutDecorationItem) - InterGroupSpacing() float64 - SetInterGroupSpacing(value float64) BoundarySupplementaryItems() []CollectionLayoutBoundarySupplementaryItem SetBoundarySupplementaryItems(value []ICollectionLayoutBoundarySupplementaryItem) + ContentInsets() DirectionalEdgeInsets + SetContentInsets(value DirectionalEdgeInsets) + InterGroupSpacing() float64 + SetInterGroupSpacing(value float64) + SupplementariesFollowContentInsets() bool + SetSupplementariesFollowContentInsets(value bool) + DecorationItems() []CollectionLayoutDecorationItem + SetDecorationItems(value []ICollectionLayoutDecorationItem) } // A container that combines a set of groups into distinct visual groupings. [Full Topic] @@ -64,10 +64,6 @@ func (cc _CollectionLayoutSectionClass) Alloc() CollectionLayoutSection { return rv } -func CollectionLayoutSection_Alloc() CollectionLayoutSection { - return CollectionLayoutSectionClass.Alloc() -} - func (cc _CollectionLayoutSectionClass) New() CollectionLayoutSection { rv := objc.Call[CollectionLayoutSection](cc, objc.Sel("new")) rv.Autorelease() @@ -83,21 +79,6 @@ 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 @@ -113,21 +94,6 @@ 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 @@ -143,19 +109,34 @@ func (c_ CollectionLayoutSection) SetVisibleItemsInvalidationHandler(value Colle objc.Call[objc.Void](c_, objc.Sel("setVisibleItemsInvalidationHandler:"), 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) +} + +// 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) } // The amount of space between the groups in the section. [Full Topic] @@ -173,17 +154,32 @@ func (c_ CollectionLayoutSection) SetInterGroupSpacing(value float64) { objc.Call[objc.Void](c_, objc.Sel("setInterGroupSpacing:"), value) } -// An array of the supplementary items that are associated with the boundary edges of the section, such as headers and footers. [Full Topic] +// 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/3199089-boundarysupplementaryitems?language=objc -func (c_ CollectionLayoutSection) BoundarySupplementaryItems() []CollectionLayoutBoundarySupplementaryItem { - rv := objc.Call[[]CollectionLayoutBoundarySupplementaryItem](c_, objc.Sel("boundarySupplementaryItems")) +// [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 } -// An array of the supplementary items that are associated with the boundary edges of the section, such as headers and footers. [Full Topic] +// 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/3199089-boundarysupplementaryitems?language=objc -func (c_ CollectionLayoutSection) SetBoundarySupplementaryItems(value []ICollectionLayoutBoundarySupplementaryItem) { - objc.Call[objc.Void](c_, objc.Sel("setBoundarySupplementaryItems:"), value) +// [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] +// +// [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 +} + +// 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/3199091-decorationitems?language=objc +func (c_ CollectionLayoutSection) SetDecorationItems(value []ICollectionLayoutDecorationItem) { + objc.Call[objc.Void](c_, objc.Sel("setDecorationItems:"), value) } diff --git a/macos/appkit/collection_layout_size.gen.go b/macos/appkit/collection_layout_size.gen.go index 89a66aee..652982be 100644 --- a/macos/appkit/collection_layout_size.gen.go +++ b/macos/appkit/collection_layout_size.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package appkit @@ -52,10 +52,6 @@ func (cc _CollectionLayoutSizeClass) Alloc() CollectionLayoutSize { return rv } -func CollectionLayoutSize_Alloc() CollectionLayoutSize { - return CollectionLayoutSizeClass.Alloc() -} - func (cc _CollectionLayoutSizeClass) New() CollectionLayoutSize { rv := objc.Call[CollectionLayoutSize](cc, objc.Sel("new")) rv.Autorelease() diff --git a/macos/appkit/collection_layout_spacing.gen.go b/macos/appkit/collection_layout_spacing.gen.go index 2f547c67..4b82f08d 100644 --- a/macos/appkit/collection_layout_spacing.gen.go +++ b/macos/appkit/collection_layout_spacing.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package appkit @@ -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) FixedSpacing(fixedSpacing float64) CollectionLayoutSpacing { - rv := objc.Call[CollectionLayoutSpacing](cc, objc.Sel("fixedSpacing:"), fixedSpacing) - return rv -} - -// Creates a space equivalent to the specified number of points. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/uikit/nscollectionlayoutspacing/3199103-fixedspacing?language=objc -func CollectionLayoutSpacing_FixedSpacing(fixedSpacing float64) CollectionLayoutSpacing { - return CollectionLayoutSpacingClass.FixedSpacing(fixedSpacing) -} - func (cc _CollectionLayoutSpacingClass) FlexibleSpacing(flexibleSpacing float64) CollectionLayoutSpacing { rv := objc.Call[CollectionLayoutSpacing](cc, objc.Sel("flexibleSpacing:"), flexibleSpacing) return rv @@ -60,13 +48,21 @@ func CollectionLayoutSpacing_FlexibleSpacing(flexibleSpacing float64) Collection return CollectionLayoutSpacingClass.FlexibleSpacing(flexibleSpacing) } -func (cc _CollectionLayoutSpacingClass) Alloc() CollectionLayoutSpacing { - rv := objc.Call[CollectionLayoutSpacing](cc, objc.Sel("alloc")) +func (cc _CollectionLayoutSpacingClass) FixedSpacing(fixedSpacing float64) CollectionLayoutSpacing { + rv := objc.Call[CollectionLayoutSpacing](cc, objc.Sel("fixedSpacing:"), fixedSpacing) return rv } -func CollectionLayoutSpacing_Alloc() CollectionLayoutSpacing { - return CollectionLayoutSpacingClass.Alloc() +// Creates a space equivalent to the specified number of points. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/uikit/nscollectionlayoutspacing/3199103-fixedspacing?language=objc +func CollectionLayoutSpacing_FixedSpacing(fixedSpacing float64) CollectionLayoutSpacing { + return CollectionLayoutSpacingClass.FixedSpacing(fixedSpacing) +} + +func (cc _CollectionLayoutSpacingClass) Alloc() CollectionLayoutSpacing { + rv := objc.Call[CollectionLayoutSpacing](cc, objc.Sel("alloc")) + return rv } func (cc _CollectionLayoutSpacingClass) New() CollectionLayoutSpacing { @@ -84,6 +80,14 @@ 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 @@ -99,11 +103,3 @@ 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 1e680bf5..a1f84463 100644 --- a/macos/appkit/collection_layout_supplementary_item.gen.go +++ b/macos/appkit/collection_layout_supplementary_item.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package appkit @@ -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,6 +38,18 @@ 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:"), objc.Ptr(layoutSize), elementKind, objc.Ptr(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:"), objc.Ptr(layoutSize), elementKind, objc.Ptr(containerAnchor), objc.Ptr(itemAnchor)) return rv @@ -55,10 +67,6 @@ func (cc _CollectionLayoutSupplementaryItemClass) Alloc() CollectionLayoutSupple return rv } -func CollectionLayoutSupplementaryItem_Alloc() CollectionLayoutSupplementaryItem { - return CollectionLayoutSupplementaryItemClass.Alloc() -} - func (cc _CollectionLayoutSupplementaryItemClass) New() CollectionLayoutSupplementaryItem { rv := objc.Call[CollectionLayoutSupplementaryItem](cc, objc.Sel("new")) rv.Autorelease() @@ -86,6 +94,18 @@ 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:"), objc.Ptr(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 @@ -102,14 +122,6 @@ 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 @@ -124,3 +136,11 @@ 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.gen.go b/macos/appkit/collection_layout_visible_item_protocol.gen.go similarity index 68% rename from macos/appkit/collection_layout_visible_item.gen.go rename to macos/appkit/collection_layout_visible_item_protocol.gen.go index c62f7e5f..35123dbb 100644 --- a/macos/appkit/collection_layout_visible_item.gen.go +++ b/macos/appkit/collection_layout_visible_item_protocol.gen.go @@ -1,9 +1,8 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package appkit import ( - "github.com/progrium/macdriver/macos/coregraphics" "github.com/progrium/macdriver/macos/foundation" "github.com/progrium/macdriver/objc" ) @@ -13,227 +12,230 @@ import ( // [Full Topic]: https://developer.apple.com/documentation/uikit/nscollectionlayoutvisibleitem?language=objc type PCollectionLayoutVisibleItem interface { // optional - SetHidden(value bool) - HasSetHidden() bool + Bounds() foundation.Rect + HasBounds() bool // optional - IsHidden() bool - HasIsHidden() bool + RepresentedElementKind() string + HasRepresentedElementKind() bool // optional - Name() string - HasName() bool + SetZIndex(value int) + HasSetZIndex() bool // optional - Bounds() coregraphics.Rect - HasBounds() bool + ZIndex() int + HasZIndex() bool // optional - RepresentedElementKind() string - HasRepresentedElementKind() bool + IndexPath() foundation.IndexPath + HasIndexPath() bool // optional RepresentedElementCategory() CollectionElementCategory HasRepresentedElementCategory() bool // optional - SetAlpha(value float64) - HasSetAlpha() bool + Frame() foundation.Rect + HasFrame() bool // optional - Alpha() float64 - HasAlpha() bool + Name() string + HasName() bool // optional - IndexPath() foundation.IIndexPath - HasIndexPath() bool + SetAlpha(value float64) + HasSetAlpha() bool // optional - Frame() coregraphics.Rect - HasFrame() bool + Alpha() float64 + HasAlpha() bool // optional - SetZIndex(value int) - HasSetZIndex() bool + SetHidden(value bool) + HasSetHidden() bool // optional - ZIndex() int - HasZIndex() bool + IsHidden() bool + HasIsHidden() bool // optional - SetCenter(value coregraphics.Point) + SetCenter(value foundation.Point) HasSetCenter() bool // optional - Center() coregraphics.Point + Center() foundation.Point HasCenter() bool } -// A concrete type wrapper for the [PCollectionLayoutVisibleItem] protocol. -type CollectionLayoutVisibleItemWrapper struct { +// ensure impl type implements protocol interface +var _ PCollectionLayoutVisibleItem = (*CollectionLayoutVisibleItemObject)(nil) + +// A concrete type for the [PCollectionLayoutVisibleItem] protocol. +type CollectionLayoutVisibleItemObject struct { objc.Object } -func (c_ CollectionLayoutVisibleItemWrapper) HasSetHidden() bool { - return c_.RespondsToSelector(objc.Sel("setHidden:")) +func (c_ CollectionLayoutVisibleItemObject) HasBounds() bool { + return c_.RespondsToSelector(objc.Sel("bounds")) } -// A Boolean value that determines whether the item is hidden. [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/3199121-hidden?language=objc -func (c_ CollectionLayoutVisibleItemWrapper) SetHidden(value bool) { - objc.Call[objc.Void](c_, objc.Sel("setHidden:"), value) +// [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 } -func (c_ CollectionLayoutVisibleItemWrapper) HasIsHidden() bool { - return c_.RespondsToSelector(objc.Sel("isHidden")) +func (c_ CollectionLayoutVisibleItemObject) HasRepresentedElementKind() bool { + return c_.RespondsToSelector(objc.Sel("representedElementKind")) } -// A Boolean value that determines whether the item is hidden. [Full Topic] +// A string that identifies the type of item. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/uikit/nscollectionlayoutvisibleitem/3199121-hidden?language=objc -func (c_ CollectionLayoutVisibleItemWrapper) IsHidden() bool { - rv := objc.Call[bool](c_, objc.Sel("isHidden")) +// [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 } -func (c_ CollectionLayoutVisibleItemWrapper) HasName() bool { - return c_.RespondsToSelector(objc.Sel("name")) +func (c_ CollectionLayoutVisibleItemObject) HasSetZIndex() bool { + return c_.RespondsToSelector(objc.Sel("setZIndex:")) } -// The name of the item. [Full Topic] +// 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/3199122-name?language=objc -func (c_ CollectionLayoutVisibleItemWrapper) Name() string { - rv := objc.Call[string](c_, objc.Sel("name")) - return rv +// [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_ CollectionLayoutVisibleItemWrapper) HasBounds() bool { - return c_.RespondsToSelector(objc.Sel("bounds")) +func (c_ CollectionLayoutVisibleItemObject) HasZIndex() bool { + return c_.RespondsToSelector(objc.Sel("zIndex")) } -// The bounds rectangle, which describes the item's location and size in its own coordinate system. [Full Topic] +// 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/3199117-bounds?language=objc -func (c_ CollectionLayoutVisibleItemWrapper) Bounds() coregraphics.Rect { - rv := objc.Call[coregraphics.Rect](c_, objc.Sel("bounds")) +// [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 } -func (c_ CollectionLayoutVisibleItemWrapper) HasRepresentedElementKind() bool { - return c_.RespondsToSelector(objc.Sel("representedElementKind")) +func (c_ CollectionLayoutVisibleItemObject) HasIndexPath() bool { + return c_.RespondsToSelector(objc.Sel("indexPath")) } -// A string that identifies the type of item. [Full Topic] +// The index path of the item. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/uikit/nscollectionlayoutvisibleitem/3199124-representedelementkind?language=objc -func (c_ CollectionLayoutVisibleItemWrapper) RepresentedElementKind() string { - rv := objc.Call[string](c_, objc.Sel("representedElementKind")) +// [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_ CollectionLayoutVisibleItemWrapper) HasRepresentedElementCategory() bool { +func (c_ CollectionLayoutVisibleItemObject) HasRepresentedElementCategory() bool { return c_.RespondsToSelector(objc.Sel("representedElementCategory")) } // A category that identifies the item, such as decoration or supplementary view. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/uikit/nscollectionlayoutvisibleitem/3199123-representedelementcategory?language=objc -func (c_ CollectionLayoutVisibleItemWrapper) RepresentedElementCategory() CollectionElementCategory { +func (c_ CollectionLayoutVisibleItemObject) RepresentedElementCategory() CollectionElementCategory { rv := objc.Call[CollectionElementCategory](c_, objc.Sel("representedElementCategory")) return rv } -func (c_ CollectionLayoutVisibleItemWrapper) HasSetAlpha() bool { - return c_.RespondsToSelector(objc.Sel("setAlpha:")) +func (c_ CollectionLayoutVisibleItemObject) HasFrame() bool { + return c_.RespondsToSelector(objc.Sel("frame")) } -// The transparency of the item. [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/3199116-alpha?language=objc -func (c_ CollectionLayoutVisibleItemWrapper) SetAlpha(value float64) { - objc.Call[objc.Void](c_, objc.Sel("setAlpha:"), value) +// [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_ CollectionLayoutVisibleItemWrapper) HasAlpha() bool { - return c_.RespondsToSelector(objc.Sel("alpha")) +func (c_ CollectionLayoutVisibleItemObject) HasName() bool { + return c_.RespondsToSelector(objc.Sel("name")) } -// The transparency of the item. [Full Topic] +// The name of the item. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/uikit/nscollectionlayoutvisibleitem/3199116-alpha?language=objc -func (c_ CollectionLayoutVisibleItemWrapper) Alpha() float64 { - rv := objc.Call[float64](c_, objc.Sel("alpha")) +// [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_ CollectionLayoutVisibleItemWrapper) HasIndexPath() bool { - return c_.RespondsToSelector(objc.Sel("indexPath")) +func (c_ CollectionLayoutVisibleItemObject) HasSetAlpha() bool { + return c_.RespondsToSelector(objc.Sel("setAlpha:")) } -// The index path of the item. [Full Topic] +// The transparency of the item. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/uikit/nscollectionlayoutvisibleitem/3199120-indexpath?language=objc -func (c_ CollectionLayoutVisibleItemWrapper) IndexPath() foundation.IndexPath { - rv := objc.Call[foundation.IndexPath](c_, objc.Sel("indexPath")) - return rv +// [Full Topic]: https://developer.apple.com/documentation/uikit/nscollectionlayoutvisibleitem/3199116-alpha?language=objc +func (c_ CollectionLayoutVisibleItemObject) SetAlpha(value float64) { + objc.Call[objc.Void](c_, objc.Sel("setAlpha:"), value) } -func (c_ CollectionLayoutVisibleItemWrapper) HasFrame() bool { - return c_.RespondsToSelector(objc.Sel("frame")) +func (c_ CollectionLayoutVisibleItemObject) HasAlpha() bool { + return c_.RespondsToSelector(objc.Sel("alpha")) } -// The frame rectangle, which describes the item's location and size in its section's coordinate system. [Full Topic] +// The transparency of the item. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/uikit/nscollectionlayoutvisibleitem/3199119-frame?language=objc -func (c_ CollectionLayoutVisibleItemWrapper) Frame() coregraphics.Rect { - rv := objc.Call[coregraphics.Rect](c_, objc.Sel("frame")) +// [Full Topic]: https://developer.apple.com/documentation/uikit/nscollectionlayoutvisibleitem/3199116-alpha?language=objc +func (c_ CollectionLayoutVisibleItemObject) Alpha() float64 { + rv := objc.Call[float64](c_, objc.Sel("alpha")) return rv } -func (c_ CollectionLayoutVisibleItemWrapper) HasSetZIndex() bool { - return c_.RespondsToSelector(objc.Sel("setZIndex:")) +func (c_ CollectionLayoutVisibleItemObject) HasSetHidden() bool { + return c_.RespondsToSelector(objc.Sel("setHidden:")) } -// The vertical stacking order of the item in relation to other items in the section. [Full Topic] +// A Boolean value that determines whether the item is hidden. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/uikit/nscollectionlayoutvisibleitem/3199127-zindex?language=objc -func (c_ CollectionLayoutVisibleItemWrapper) SetZIndex(value int) { - objc.Call[objc.Void](c_, objc.Sel("setZIndex:"), value) +// [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_ CollectionLayoutVisibleItemWrapper) HasZIndex() bool { - return c_.RespondsToSelector(objc.Sel("zIndex")) +func (c_ CollectionLayoutVisibleItemObject) HasIsHidden() bool { + return c_.RespondsToSelector(objc.Sel("isHidden")) } -// The vertical stacking order of the item in relation to other items in the section. [Full Topic] +// A Boolean value that determines whether the item is hidden. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/uikit/nscollectionlayoutvisibleitem/3199127-zindex?language=objc -func (c_ CollectionLayoutVisibleItemWrapper) ZIndex() int { - rv := objc.Call[int](c_, objc.Sel("zIndex")) +// [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_ CollectionLayoutVisibleItemWrapper) HasSetCenter() bool { +func (c_ CollectionLayoutVisibleItemObject) HasSetCenter() bool { return c_.RespondsToSelector(objc.Sel("setCenter:")) } // 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_ CollectionLayoutVisibleItemWrapper) SetCenter(value coregraphics.Point) { +func (c_ CollectionLayoutVisibleItemObject) SetCenter(value foundation.Point) { objc.Call[objc.Void](c_, objc.Sel("setCenter:"), value) } -func (c_ CollectionLayoutVisibleItemWrapper) HasCenter() bool { +func (c_ CollectionLayoutVisibleItemObject) HasCenter() bool { return c_.RespondsToSelector(objc.Sel("center")) } // 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_ CollectionLayoutVisibleItemWrapper) Center() coregraphics.Point { - rv := objc.Call[coregraphics.Point](c_, objc.Sel("center")) +func (c_ CollectionLayoutVisibleItemObject) Center() foundation.Point { + rv := objc.Call[foundation.Point](c_, objc.Sel("center")) return rv } diff --git a/macos/appkit/collection_view.gen.go b/macos/appkit/collection_view.gen.go index e8b0cdcb..a85f7344 100644 --- a/macos/appkit/collection_view.gen.go +++ b/macos/appkit/collection_view.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package appkit @@ -19,73 +19,76 @@ type _CollectionViewClass struct { // An interface definition for the [CollectionView] class. type ICollectionView interface { IView - ItemAtIndex(index uint) CollectionViewItem - RegisterNibForItemWithIdentifier(nib INib, identifier UserInterfaceItemIdentifier) - IndexPathsForVisibleSupplementaryElementsOfKind(elementKind CollectionViewSupplementaryElementKind) foundation.Set - InsertSections(sections foundation.IIndexSet) - MakeItemWithIdentifierForIndexPath(identifier UserInterfaceItemIdentifier, indexPath foundation.IIndexPath) CollectionViewItem - NumberOfItemsInSection(section int) int + DraggingImageForItemsAtIndexesWithEventOffset(indexes foundation.IIndexSet, event IEvent, dragImageOffset foundation.PointPointer) Image DeselectAll(sender objc.IObject) objc.Object - ReloadItemsAtIndexPaths(indexPaths foundation.ISet) - FrameForItemAtIndexWithNumberOfItems(index uint, numberOfItems uint) foundation.Rect + 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 + RegisterNibForItemWithIdentifier(nib INib, identifier UserInterfaceItemIdentifier) + ToggleSectionCollapse(sender objc.IObject) objc.Object + ItemAtIndexPath(indexPath foundation.IIndexPath) CollectionViewItem RegisterClassForItemWithIdentifier(itemClass objc.IClass, identifier UserInterfaceItemIdentifier) IndexPathForItemAtPoint(point foundation.Point) foundation.IndexPath - 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 + FrameForItemAtIndex(index uint) foundation.Rect + RegisterClassForSupplementaryViewOfKindWithIdentifier(viewClass objc.IClass, kind CollectionViewSupplementaryElementKind, identifier UserInterfaceItemIdentifier) + VisibleItems() []CollectionViewItem + ReloadData() + SelectAll(sender objc.IObject) objc.Object IndexPathsForVisibleItems() foundation.Set + FrameForItemAtIndexWithNumberOfItems(index uint, numberOfItems uint) foundation.Rect + ItemAtIndex(index uint) CollectionViewItem + ReloadItemsAtIndexPaths(indexPaths foundation.ISet) DeselectItemsAtIndexPaths(indexPaths foundation.ISet) - SetDraggingSourceOperationMaskForLocal(dragOperationMask DragOperation, localDestination bool) + MakeItemWithIdentifierForIndexPath(identifier UserInterfaceItemIdentifier, indexPath foundation.IIndexPath) CollectionViewItem + DraggingImageForItemsAtIndexPathsWithEventOffset(indexPaths foundation.ISet, event IEvent, dragImageOffset foundation.PointPointer) Image SupplementaryViewForElementKindAtIndexPath(elementKind CollectionViewSupplementaryElementKind, indexPath foundation.IIndexPath) View - InsertItemsAtIndexPaths(indexPaths foundation.ISet) - VisibleItems() []CollectionViewItem - ToggleSectionCollapse(sender objc.IObject) objc.Object - MoveSectionToSection(section int, newSection int) + RegisterNibForSupplementaryViewOfKindWithIdentifier(nib INib, kind CollectionViewSupplementaryElementKind, identifier UserInterfaceItemIdentifier) LayoutAttributesForItemAtIndexPath(indexPath foundation.IIndexPath) CollectionViewLayoutAttributes - LayoutAttributesForSupplementaryElementOfKindAtIndexPath(kind CollectionViewSupplementaryElementKind, indexPath foundation.IIndexPath) CollectionViewLayoutAttributes - ItemAtIndexPath(indexPath foundation.IIndexPath) CollectionViewItem - ReloadData() + InsertSections(sections foundation.IIndexSet) 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) - VisibleSupplementaryViewsOfKind(elementKind CollectionViewSupplementaryElementKind) []View - DataSource() CollectionViewDataSourceWrapper - SetDataSource(value PCollectionViewDataSource) - SetDataSourceObject(valueObject objc.IObject) + 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) Content() []objc.Object SetContent(value []objc.IObject) + CollectionViewLayout() CollectionViewLayout + SetCollectionViewLayout(value ICollectionViewLayout) BackgroundColors() []Color SetBackgroundColors(value []IColor) AllowsEmptySelection() bool SetAllowsEmptySelection(value bool) - BackgroundView() View - SetBackgroundView(value IView) - IsFirstResponder() bool - CollectionViewLayout() CollectionViewLayout - SetCollectionViewLayout(value ICollectionViewLayout) - Delegate() CollectionViewDelegateWrapper - SetDelegate(value PCollectionViewDelegate) - SetDelegateObject(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() CollectionViewPrefetchingWrapper - SetPrefetchDataSource(value PCollectionViewPrefetching) - SetPrefetchDataSourceObject(valueObject objc.IObject) + BackgroundView() View + SetBackgroundView(value IView) + Delegate() CollectionViewDelegateObject + SetDelegate(value PCollectionViewDelegate) + SetDelegateObject(valueObject objc.IObject) + IsFirstResponder() bool + DataSource() CollectionViewDataSourceObject + SetDataSource(value PCollectionViewDataSource) + SetDataSourceObject(valueObject objc.IObject) } // An ordered collection of data items displayed in a customizable layout. [Full Topic] @@ -106,10 +109,6 @@ func (cc _CollectionViewClass) Alloc() CollectionView { return rv } -func CollectionView_Alloc() CollectionView { - return CollectionViewClass.Alloc() -} - func (cc _CollectionViewClass) New() CollectionView { rv := objc.Call[CollectionView](cc, objc.Sel("new")) rv.Autorelease() @@ -139,19 +138,20 @@ func NewCollectionViewWithFrame(frameRect foundation.Rect) CollectionView { return instance } -// Returns the collection view item for the represented object at the specified index. [Full Topic] +// This method computes and returns an image to use for dragging. [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/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:"), objc.Ptr(indexes), objc.Ptr(event), dragImageOffset) 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:"), objc.Ptr(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 } // Returns the index paths of the currently active supplementary views. [Full Topic] @@ -162,49 +162,62 @@ func (c_ CollectionView) IndexPathsForVisibleSupplementaryElementsOfKind(element return rv } -// Inserts new sections at the specified indexes. [Full Topic] +// Moves a section from its current location to a new location. [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:"), objc.Ptr(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) } -// Creates or returns a reusable item object of the specified type. [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/1528240-makeitemwithidentifier?language=objc -func (c_ CollectionView) MakeItemWithIdentifierForIndexPath(identifier UserInterfaceItemIdentifier, indexPath foundation.IIndexPath) CollectionViewItem { - rv := objc.Call[CollectionViewItem](c_, objc.Sel("makeItemWithIdentifier:forIndexPath:"), identifier, objc.Ptr(indexPath)) - 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:"), objc.Ptr(indexPaths), scrollPosition) } -// Returns the number of items in the specified section. [Full Topic] +// Inserts new items into the collection view at the specified locations. [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) - return rv +// [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:"), objc.Ptr(indexPaths)) } -// Deselects all items 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/1528251-deselectall?language=objc -func (c_ CollectionView) DeselectAll(sender objc.IObject) objc.Object { - rv := objc.Call[objc.Object](c_, objc.Sel("deselectAll:"), sender) +// [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:"), objc.Ptr(sections)) +} + +// Returns the layout information for the supplementary view at the specified index path. [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, objc.Ptr(indexPath)) return rv } -// Reloads only the specified items. [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/1528166-reloaditemsatindexpaths?language=objc -func (c_ CollectionView) ReloadItemsAtIndexPaths(indexPaths foundation.ISet) { - objc.Call[objc.Void](c_, objc.Sel("reloadItemsAtIndexPaths:"), objc.Ptr(indexPaths)) +// [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:"), objc.Ptr(nib), identifier) } -// Returns the frame of an item based on the number of items in the collection view. [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/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/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 +} + +// Returns the item associated with the specified index path. [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:"), objc.Ptr(indexPath)) return rv } @@ -223,80 +236,81 @@ func (c_ CollectionView) IndexPathForItemAtPoint(point foundation.Point) foundat return rv } -// This method computes and returns an image to use for dragging. [Full Topic] +// Returns the index path of the specified item. [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:"), objc.Ptr(indexes), objc.Ptr(event), dragImageOffset) +// [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:"), objc.Ptr(item)) return rv } -// Selects all items in the collection view, if doing so is possible. [Full Topic] +// Returns the frame of the collection view item at the specified index. [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) +// [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) return rv } -// Deletes the specified sections and their contained items. [Full Topic] +// Registers a class to use when creating new supplementary views in the collection view. [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:"), objc.Ptr(sections)) +// [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:"), objc.Ptr(viewClass), kind, identifier) } -// Adds the specified items to the current selection and optionally scrolls the items into position. [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/1525656-selectitemsatindexpaths?language=objc -func (c_ CollectionView) SelectItemsAtIndexPathsScrollPosition(indexPaths foundation.ISet, scrollPosition CollectionViewScrollPosition) { - objc.Call[objc.Void](c_, objc.Sel("selectItemsAtIndexPaths:scrollPosition:"), objc.Ptr(indexPaths), scrollPosition) +// [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 } -// Scrolls the collection view contents until the specified items are visible. [Full Topic] +// Reloads all of the data for 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:"), objc.Ptr(indexPaths), scrollPosition) +// [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")) } -// Encapsulates multiple insert, delete, reload, and move operations into a single animated operation. [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/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) +// [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 } -// Returns the index path of the specified item. [Full Topic] +// Returns the index paths of the currently active items. [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:"), objc.Ptr(item)) +// [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 } -// Returns an image to use for dragging the specified items. [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/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:"), objc.Ptr(indexPaths), objc.Ptr(event), dragImageOffset) +// [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 } -// Creates or returns a reusable supplementary view of the specified type. [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/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, objc.Ptr(indexPath)) +// [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 } -// Returns the index paths of the currently active items. [Full Topic] +// Reloads only the specified items. [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")) - 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:"), objc.Ptr(indexPaths)) } // Removes the specified items from the current selection. [Full Topic] @@ -306,87 +320,88 @@ func (c_ CollectionView) DeselectItemsAtIndexPaths(indexPaths foundation.ISet) { objc.Call[objc.Void](c_, objc.Sel("deselectItemsAtIndexPaths:"), objc.Ptr(indexPaths)) } -// Configures the default value returned from draggingSourceOperationMaskForLocal:. [Full Topic] +// Creates or returns a reusable item object of the specified type. [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/1528240-makeitemwithidentifier?language=objc +func (c_ CollectionView) MakeItemWithIdentifierForIndexPath(identifier UserInterfaceItemIdentifier, indexPath foundation.IIndexPath) CollectionViewItem { + rv := objc.Call[CollectionViewItem](c_, objc.Sel("makeItemWithIdentifier:forIndexPath:"), identifier, objc.Ptr(indexPath)) + return rv } -// Returns the supplementary view associated with the specified index path. [Full Topic] +// Returns an image to use for dragging the specified items. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nscollectionview/1524880-supplementaryviewforelementkind?language=objc -func (c_ CollectionView) SupplementaryViewForElementKindAtIndexPath(elementKind CollectionViewSupplementaryElementKind, indexPath foundation.IIndexPath) View { - rv := objc.Call[View](c_, objc.Sel("supplementaryViewForElementKind:atIndexPath:"), elementKind, objc.Ptr(indexPath)) +// [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:"), objc.Ptr(indexPaths), objc.Ptr(event), dragImageOffset) return rv } -// Inserts new items into the collection view at the specified locations. [Full Topic] +// Returns the supplementary view associated with the specified index path. [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:"), objc.Ptr(indexPaths)) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nscollectionview/1524880-supplementaryviewforelementkind?language=objc +func (c_ CollectionView) SupplementaryViewForElementKindAtIndexPath(elementKind CollectionViewSupplementaryElementKind, indexPath foundation.IIndexPath) View { + rv := objc.Call[View](c_, objc.Sel("supplementaryViewForElementKind:atIndexPath:"), elementKind, objc.Ptr(indexPath)) + return rv } -// Returns an array of the actively managed items in the collection view. [Full Topic] +// Registers a nib file to use when creating supplementary views in the collection view. [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/1527005-registernib?language=objc +func (c_ CollectionView) RegisterNibForSupplementaryViewOfKindWithIdentifier(nib INib, kind CollectionViewSupplementaryElementKind, identifier UserInterfaceItemIdentifier) { + objc.Call[objc.Void](c_, objc.Sel("registerNib:forSupplementaryViewOfKind:withIdentifier:"), objc.Ptr(nib), kind, identifier) } -// Collapses the section in which the sender resides into a single horizontally scrollable row. [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/1644691-togglesectioncollapse?language=objc -func (c_ CollectionView) ToggleSectionCollapse(sender objc.IObject) objc.Object { - rv := objc.Call[objc.Object](c_, objc.Sel("toggleSectionCollapse:"), sender) +// [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:"), objc.Ptr(indexPath)) return rv } -// Moves a section from its current location to a new location. [Full Topic] +// Inserts new sections at the specified indexes. [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) +// [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:"), objc.Ptr(sections)) } -// Returns the layout information for the item at the specified index path. [Full Topic] +// Reloads the data in the specified sections of 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:"), objc.Ptr(indexPath)) - return rv +// [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:"), objc.Ptr(sections)) } -// Returns the layout information for the supplementary view at the specified index path. [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/1526721-layoutattributesforsupplementary?language=objc -func (c_ CollectionView) LayoutAttributesForSupplementaryElementOfKindAtIndexPath(kind CollectionViewSupplementaryElementKind, indexPath foundation.IIndexPath) CollectionViewLayoutAttributes { - rv := objc.Call[CollectionViewLayoutAttributes](c_, objc.Sel("layoutAttributesForSupplementaryElementOfKind:atIndexPath:"), kind, objc.Ptr(indexPath)) +// [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 } -// Returns the item associated with the specified index path. [Full Topic] +// Configures the default value returned from [objectivec/nsobject/draggingsourceoperationmaskforlo]. [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:"), objc.Ptr(indexPath)) - 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) } -// Reloads all of the data for the collection view. [Full Topic] +// Returns the number of items in the specified section. [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/1528291-numberofitemsinsection?language=objc +func (c_ CollectionView) NumberOfItemsInSection(section int) int { + rv := objc.Call[int](c_, objc.Sel("numberOfItemsInSection:"), section) + return rv } -// Reloads the data in the specified sections of the collection view. [Full Topic] +// Creates or returns a reusable supplementary view of the specified type. [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:"), objc.Ptr(sections)) +// [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, objc.Ptr(indexPath)) + return rv } // Deletes the items at the specified index paths. [Full Topic] @@ -403,104 +418,110 @@ func (c_ CollectionView) MoveItemAtIndexPathToIndexPath(indexPath foundation.IIn objc.Call[objc.Void](c_, objc.Sel("moveItemAtIndexPath:toIndexPath:"), objc.Ptr(indexPath), objc.Ptr(newIndexPath)) } -// Returns an array of the actively managed supplementary views in the collection view. [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/1528203-visiblesupplementaryviewsofkind?language=objc -func (c_ CollectionView) VisibleSupplementaryViewsOfKind(elementKind CollectionViewSupplementaryElementKind) []View { - rv := objc.Call[[]View](c_, objc.Sel("visibleSupplementaryViewsOfKind:"), elementKind) - 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) } -// An object that provides 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/1528222-datasource?language=objc -func (c_ CollectionView) DataSource() CollectionViewDataSourceWrapper { - rv := objc.Call[CollectionViewDataSourceWrapper](c_, objc.Sel("dataSource")) +// [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:"), objc.Ptr(indexPaths), scrollPosition) +} + +// 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] +// 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/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/1528300-selectable?language=objc +func (c_ CollectionView) IsSelectable() bool { + rv := objc.Call[bool](c_, objc.Sel("isSelectable")) + return rv } -// An object that provides data for the collection view. [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/1528222-datasource?language=objc -func (c_ CollectionView) SetDataSourceObject(valueObject objc.IObject) { - objc.Call[objc.Void](c_, objc.Sel("setDataSource:"), objc.Ptr(valueObject)) +// [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) } -// An array that provides data for the collection view. [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/1528207-content?language=objc -func (c_ CollectionView) Content() []objc.Object { - rv := objc.Call[[]objc.Object](c_, objc.Sel("content")) +// [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 } -// An array that provides data for the collection view. [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/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/1644533-backgroundviewscrollswithcontent?language=objc +func (c_ CollectionView) SetBackgroundViewScrollsWithContent(value bool) { + objc.Call[objc.Void](c_, objc.Sel("setBackgroundViewScrollsWithContent:"), value) } -// An array containing the collection view’s background colors. [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/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/1524276-allowsmultipleselection?language=objc +func (c_ CollectionView) AllowsMultipleSelection() bool { + rv := objc.Call[bool](c_, objc.Sel("allowsMultipleSelection")) return rv } -// An array containing the collection view’s background colors. [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/1528220-backgroundcolors?language=objc -func (c_ CollectionView) SetBackgroundColors(value []IColor) { - objc.Call[objc.Void](c_, objc.Sel("setBackgroundColors:"), value) +// [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) } -// A Boolean value indicating whether the collection view may have no selected items. [Full Topic] +// [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")) +// [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 } -// A Boolean value indicating whether the collection view may have no selected items. [Full Topic] +// [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/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) } -// The background view placed behind all items and supplementary views. [Full Topic] +// [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")) - return rv +// [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:"), objc.Ptr(valueObject)) } -// The background view placed behind all items and supplementary views. [Full Topic] +// An array that provides data for 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:"), objc.Ptr(value)) +// [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 indicating whether the collection view is the first responder. [Full Topic] +// An array that provides data for 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")) - return rv +// [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) } // The layout object used to organize the collection view’s content. [Full Topic] @@ -518,28 +539,34 @@ func (c_ CollectionView) SetCollectionViewLayout(value ICollectionViewLayout) { objc.Call[objc.Void](c_, objc.Sel("setCollectionViewLayout:"), objc.Ptr(value)) } -// The collection view’s delegate object. [Full Topic] +// An array containing the collection view’s background colors. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nscollectionview/1528246-delegate?language=objc -func (c_ CollectionView) Delegate() CollectionViewDelegateWrapper { - rv := objc.Call[CollectionViewDelegateWrapper](c_, objc.Sel("delegate")) +// [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 } -// The collection view’s delegate object. [Full Topic] +// An array containing the collection view’s background colors. [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/1528220-backgroundcolors?language=objc +func (c_ CollectionView) SetBackgroundColors(value []IColor) { + objc.Call[objc.Void](c_, objc.Sel("setBackgroundColors:"), value) } -// The collection view’s delegate object. [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/1528246-delegate?language=objc -func (c_ CollectionView) SetDelegateObject(valueObject objc.IObject) { - objc.Call[objc.Void](c_, objc.Sel("setDelegate:"), objc.Ptr(valueObject)) +// [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 +} + +// A Boolean value indicating whether the collection view may have no selected items. [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) } // The set of index paths representing the currently selected items. [Full Topic] @@ -557,94 +584,88 @@ func (c_ CollectionView) SetSelectionIndexPaths(value foundation.ISet) { objc.Call[objc.Void](c_, objc.Sel("setSelectionIndexPaths:"), objc.Ptr(value)) } -// A Boolean value that indicates whether the collection view’s background view scrolls with the items and other content. [Full Topic] +// The indexes of the currently selected items. [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/1525505-selectionindexes?language=objc +func (c_ CollectionView) SelectionIndexes() foundation.IndexSet { + rv := objc.Call[foundation.IndexSet](c_, objc.Sel("selectionIndexes")) return rv } -// A Boolean value that indicates whether the collection view’s background view scrolls with the items and other content. [Full Topic] +// The indexes of the currently selected items. [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/1525505-selectionindexes?language=objc +func (c_ CollectionView) SetSelectionIndexes(value foundation.IIndexSet) { + objc.Call[objc.Void](c_, objc.Sel("setSelectionIndexes:"), objc.Ptr(value)) } -// A Boolean value that indicates whether the user may select items in 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/1528300-selectable?language=objc -func (c_ CollectionView) IsSelectable() bool { - rv := objc.Call[bool](c_, objc.Sel("isSelectable")) +// [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 } -// A Boolean value that indicates whether the user may select items in 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/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/1528250-backgroundview?language=objc +func (c_ CollectionView) SetBackgroundView(value IView) { + objc.Call[objc.Void](c_, objc.Sel("setBackgroundView:"), objc.Ptr(value)) } -// The indexes of the currently selected items. [Full Topic] +// The collection view’s delegate object. [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/1528246-delegate?language=objc +func (c_ CollectionView) Delegate() CollectionViewDelegateObject { + rv := objc.Call[CollectionViewDelegateObject](c_, objc.Sel("delegate")) return rv } -// The indexes of the currently selected items. [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:"), objc.Ptr(value)) -} - -// A Boolean value that indicates whether the user may select more than one item in the collection view. [Full Topic] +// The collection view’s delegate object. [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")) - 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 that indicates whether the user may select more than one item in the collection view. [Full Topic] +// The collection view’s delegate object. [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/1528246-delegate?language=objc +func (c_ CollectionView) SetDelegateObject(valueObject objc.IObject) { + objc.Call[objc.Void](c_, objc.Sel("setDelegate:"), objc.Ptr(valueObject)) } -// The number of sections in 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/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/1528199-firstresponder?language=objc +func (c_ CollectionView) IsFirstResponder() bool { + rv := objc.Call[bool](c_, objc.Sel("isFirstResponder")) return rv } -// [Full Topic] +// An object that provides data for the collection view. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nscollectionview/2879292-prefetchdatasource?language=objc -func (c_ CollectionView) PrefetchDataSource() CollectionViewPrefetchingWrapper { - rv := objc.Call[CollectionViewPrefetchingWrapper](c_, objc.Sel("prefetchDataSource")) +// [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 } -// [Full Topic] +// An object that provides data for the collection view. [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/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] +// An object that provides data for the collection view. [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:"), objc.Ptr(valueObject)) +// [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:"), objc.Ptr(valueObject)) } diff --git a/macos/appkit/collection_view_compositional_layout.gen.go b/macos/appkit/collection_view_compositional_layout.gen.go index 9bcc0949..4c865ede 100644 --- a/macos/appkit/collection_view_compositional_layout.gen.go +++ b/macos/appkit/collection_view_compositional_layout.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package appkit @@ -49,6 +49,34 @@ 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, objc.Ptr(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:"), objc.Ptr(section), objc.Ptr(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 @@ -68,10 +96,6 @@ func (cc _CollectionViewCompositionalLayoutClass) Alloc() CollectionViewComposit return rv } -func CollectionViewCompositionalLayout_Alloc() CollectionViewCompositionalLayout { - return CollectionViewCompositionalLayoutClass.Alloc() -} - func (cc _CollectionViewCompositionalLayoutClass) New() CollectionViewCompositionalLayout { rv := objc.Call[CollectionViewCompositionalLayout](cc, objc.Sel("new")) rv.Autorelease() diff --git a/macos/appkit/collection_view_compositional_layout_configuration.gen.go b/macos/appkit/collection_view_compositional_layout_configuration.gen.go index 5db4af70..c9ef94d9 100644 --- a/macos/appkit/collection_view_compositional_layout_configuration.gen.go +++ b/macos/appkit/collection_view_compositional_layout_configuration.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package appkit @@ -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] @@ -44,10 +44,6 @@ func (cc _CollectionViewCompositionalLayoutConfigurationClass) Alloc() Collectio return rv } -func CollectionViewCompositionalLayoutConfiguration_Alloc() CollectionViewCompositionalLayoutConfiguration { - return CollectionViewCompositionalLayoutConfigurationClass.Alloc() -} - func (cc _CollectionViewCompositionalLayoutConfigurationClass) New() CollectionViewCompositionalLayoutConfiguration { rv := objc.Call[CollectionViewCompositionalLayoutConfiguration](cc, objc.Sel("new")) rv.Autorelease() @@ -63,6 +59,21 @@ 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 @@ -92,18 +103,3 @@ 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.gen.go b/macos/appkit/collection_view_data_source.gen.go deleted file mode 100644 index 311e5c76..00000000 --- a/macos/appkit/collection_view_data_source.gen.go +++ /dev/null @@ -1,49 +0,0 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY - -package appkit - -import ( - "github.com/progrium/macdriver/objc" -) - -// A set of methods that a data source object implements to provide the information and view objects that a collection view requires to present content. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nscollectionviewdatasource?language=objc -type PCollectionViewDataSource interface { - // optional - NumberOfSectionsInCollectionView(collectionView CollectionView) int - HasNumberOfSectionsInCollectionView() bool - - // optional - CollectionViewNumberOfItemsInSection(collectionView CollectionView, section int) int - HasCollectionViewNumberOfItemsInSection() bool -} - -// A concrete type wrapper for the [PCollectionViewDataSource] protocol. -type CollectionViewDataSourceWrapper struct { - objc.Object -} - -func (c_ CollectionViewDataSourceWrapper) HasNumberOfSectionsInCollectionView() bool { - return c_.RespondsToSelector(objc.Sel("numberOfSectionsInCollectionView:")) -} - -// Asks your data source object to provide the total number of sections. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nscollectionviewdatasource/1525901-numberofsectionsincollectionview?language=objc -func (c_ CollectionViewDataSourceWrapper) NumberOfSectionsInCollectionView(collectionView ICollectionView) int { - rv := objc.Call[int](c_, objc.Sel("numberOfSectionsInCollectionView:"), objc.Ptr(collectionView)) - return rv -} - -func (c_ CollectionViewDataSourceWrapper) 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_ CollectionViewDataSourceWrapper) CollectionViewNumberOfItemsInSection(collectionView ICollectionView, section int) int { - rv := objc.Call[int](c_, objc.Sel("collectionView:numberOfItemsInSection:"), objc.Ptr(collectionView), section) - return rv -} diff --git a/macos/appkit/collection_view_data_source_protocol.gen.go b/macos/appkit/collection_view_data_source_protocol.gen.go new file mode 100644 index 00000000..adba0f52 --- /dev/null +++ b/macos/appkit/collection_view_data_source_protocol.gen.go @@ -0,0 +1,85 @@ +// Code generated by DarwinKit. DO NOT EDIT. + +package appkit + +import ( + "github.com/progrium/macdriver/macos/foundation" + "github.com/progrium/macdriver/objc" +) + +// A set of methods that a data source object implements to provide the information and view objects that a collection view requires to present content. [Full Topic] +// +// [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 +} + +// ensure impl type implements protocol interface +var _ PCollectionViewDataSource = (*CollectionViewDataSourceObject)(nil) + +// A concrete type for the [PCollectionViewDataSource] protocol. +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:"), objc.Ptr(collectionView), section) + return rv +} + +func (c_ CollectionViewDataSourceObject) HasNumberOfSectionsInCollectionView() bool { + return c_.RespondsToSelector(objc.Sel("numberOfSectionsInCollectionView:")) +} + +// Asks your data source object to provide the total number of sections. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/appkit/nscollectionviewdatasource/1525901-numberofsectionsincollectionview?language=objc +func (c_ CollectionViewDataSourceObject) NumberOfSectionsInCollectionView(collectionView CollectionView) int { + rv := objc.Call[int](c_, objc.Sel("numberOfSectionsInCollectionView:"), objc.Ptr(collectionView)) + 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:"), objc.Ptr(collectionView), kind, objc.Ptr(indexPath)) + return rv +} + +func (c_ CollectionViewDataSourceObject) HasCollectionViewItemForRepresentedObjectAtIndexPath() bool { + return c_.RespondsToSelector(objc.Sel("collectionView:itemForRepresentedObjectAtIndexPath:")) +} + +// Asks your data source object to provide the item at the specified location in the collection view. [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:"), objc.Ptr(collectionView), objc.Ptr(indexPath)) + return rv +} diff --git a/macos/appkit/collection_view_delegate.gen.go b/macos/appkit/collection_view_delegate.gen.go index 5f1f4710..65c6bb7b 100644 --- a/macos/appkit/collection_view_delegate.gen.go +++ b/macos/appkit/collection_view_delegate.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package appkit @@ -14,11 +14,131 @@ 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 foundation.IndexPath, 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) + _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 foundation.IndexPath, proposedDropOperation *CollectionViewDropOperation) DragOperation + _CollectionViewTransitionLayoutForOldLayoutNewLayout func(collectionView CollectionView, fromLayout CollectionViewLayout, toLayout CollectionViewLayout) CollectionViewTransitionLayout + _CollectionViewDidDeselectItemsAtIndexPaths func(collectionView CollectionView, indexPaths foundation.Set) } func (di *CollectionViewDelegate) HasCollectionViewDidEndDisplayingItemForRepresentedObjectAtIndexPath() bool { @@ -38,19 +158,713 @@ 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 +} -// A concrete type wrapper for the [PCollectionViewDelegate] protocol. -type CollectionViewDelegateWrapper struct { +// 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 foundation.IndexPath, 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 foundation.IndexPath, 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) + +// A concrete type for the [PCollectionViewDelegate] protocol. +type CollectionViewDelegateObject struct { objc.Object } -func (c_ CollectionViewDelegateWrapper) HasCollectionViewDidEndDisplayingItemForRepresentedObjectAtIndexPath() bool { +func (c_ CollectionViewDelegateObject) HasCollectionViewDidEndDisplayingItemForRepresentedObjectAtIndexPath() bool { return c_.RespondsToSelector(objc.Sel("collectionView:didEndDisplayingItem:forRepresentedObjectAtIndexPath:")) } // Notifies the delegate that the specified item was removed from the collection view. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/appkit/nscollectionviewdelegate/1528183-collectionview?language=objc -func (c_ CollectionViewDelegateWrapper) CollectionViewDidEndDisplayingItemForRepresentedObjectAtIndexPath(collectionView ICollectionView, item ICollectionViewItem, indexPath foundation.IIndexPath) { +func (c_ CollectionViewDelegateObject) CollectionViewDidEndDisplayingItemForRepresentedObjectAtIndexPath(collectionView CollectionView, item CollectionViewItem, indexPath foundation.IndexPath) { objc.Call[objc.Void](c_, objc.Sel("collectionView:didEndDisplayingItem:forRepresentedObjectAtIndexPath:"), objc.Ptr(collectionView), objc.Ptr(item), objc.Ptr(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:"), objc.Ptr(collectionView), objc.Ptr(indexes), objc.Ptr(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:"), objc.Ptr(collectionView), objc.Ptr(indexPaths), objc.Ptr(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:"), objc.Ptr(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:"), objc.Ptr(collectionView), objc.Ptr(indexPaths), objc.Ptr(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:"), objc.Ptr(collectionView), objc.Ptr(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:"), objc.Ptr(collectionView), objc.Ptr(indexes), objc.Ptr(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:"), objc.Ptr(collectionView), objc.Ptr(view), elementKind, objc.Ptr(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:"), objc.Ptr(collectionView), po1, objc.Ptr(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:"), objc.Ptr(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:"), objc.Ptr(collectionView), objc.Ptr(session), screenPoint, objc.Ptr(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:"), objc.Ptr(collectionView), objc.Ptr(view), elementKind, objc.Ptr(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:"), objc.Ptr(collectionView), objc.Ptr(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:"), objc.Ptr(collectionView), objc.Ptr(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:"), objc.Ptr(collectionView), objc.Ptr(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:"), objc.Ptr(collectionView), objc.Ptr(session), screenPoint, objc.Ptr(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:"), objc.Ptr(collectionView), objc.Ptr(item), objc.Ptr(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:"), objc.Ptr(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:"), objc.Ptr(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:"), objc.Ptr(collectionView), objc.Ptr(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:"), objc.Ptr(collectionView), objc.Ptr(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:"), objc.Ptr(collectionView), objc.Ptr(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 foundation.IndexPath, proposedDropOperation *CollectionViewDropOperation) DragOperation { + po1 := objc.WrapAsProtocol("NSDraggingInfo", draggingInfo) + rv := objc.Call[DragOperation](c_, objc.Sel("collectionView:validateDrop:proposedIndexPath:dropOperation:"), objc.Ptr(collectionView), po1, objc.Ptr(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:"), objc.Ptr(collectionView), objc.Ptr(fromLayout), objc.Ptr(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:"), objc.Ptr(collectionView), objc.Ptr(indexPaths)) +} diff --git a/macos/appkit/collection_view_delegate_flow_layout.gen.go b/macos/appkit/collection_view_delegate_flow_layout.gen.go index b3c18ef1..fec07c05 100644 --- a/macos/appkit/collection_view_delegate_flow_layout.gen.go +++ b/macos/appkit/collection_view_delegate_flow_layout.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package appkit @@ -11,16 +11,75 @@ 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 { - _CollectionViewLayoutInsetForSectionAtIndex func(collectionView CollectionView, collectionViewLayout CollectionViewLayout, section int) foundation.EdgeInsets + _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 } +// 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 } @@ -38,20 +97,134 @@ 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) -// A concrete type wrapper for the [PCollectionViewDelegateFlowLayout] protocol. -type CollectionViewDelegateFlowLayoutWrapper struct { +// A concrete type for the [PCollectionViewDelegateFlowLayout] protocol. +type CollectionViewDelegateFlowLayoutObject struct { objc.Object } -func (c_ CollectionViewDelegateFlowLayoutWrapper) HasCollectionViewLayoutInsetForSectionAtIndex() bool { +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:"), objc.Ptr(collectionView), objc.Ptr(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:"), objc.Ptr(collectionView), objc.Ptr(collectionViewLayout), objc.Ptr(indexPath)) + return rv +} + +func (c_ CollectionViewDelegateFlowLayoutObject) HasCollectionViewLayoutInsetForSectionAtIndex() bool { return c_.RespondsToSelector(objc.Sel("collectionView:layout:insetForSectionAtIndex:")) } // Asks the delegate for the margins to apply to content in the specified section. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/appkit/nscollectionviewdelegateflowlayout/1402874-collectionview?language=objc -func (c_ CollectionViewDelegateFlowLayoutWrapper) CollectionViewLayoutInsetForSectionAtIndex(collectionView ICollectionView, collectionViewLayout ICollectionViewLayout, section int) foundation.EdgeInsets { +func (c_ CollectionViewDelegateFlowLayoutObject) CollectionViewLayoutInsetForSectionAtIndex(collectionView CollectionView, collectionViewLayout CollectionViewLayout, section int) foundation.EdgeInsets { rv := objc.Call[foundation.EdgeInsets](c_, objc.Sel("collectionView:layout:insetForSectionAtIndex:"), objc.Ptr(collectionView), objc.Ptr(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:"), objc.Ptr(collectionView), objc.Ptr(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:"), objc.Ptr(collectionView), objc.Ptr(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:"), objc.Ptr(collectionView), objc.Ptr(collectionViewLayout), section) + return rv +} diff --git a/macos/appkit/collection_view_diffable_data_source.gen.go b/macos/appkit/collection_view_diffable_data_source.gen.go index 3e5e0049..b5625813 100644 --- a/macos/appkit/collection_view_diffable_data_source.gen.go +++ b/macos/appkit/collection_view_diffable_data_source.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package appkit @@ -57,10 +57,6 @@ func (cc _CollectionViewDiffableDataSourceClass) Alloc() CollectionViewDiffableD return rv } -func CollectionViewDiffableDataSource_Alloc() CollectionViewDiffableDataSource { - return CollectionViewDiffableDataSourceClass.Alloc() -} - func (cc _CollectionViewDiffableDataSourceClass) New() CollectionViewDiffableDataSource { rv := objc.Call[CollectionViewDiffableDataSource](cc, objc.Sel("new")) rv.Autorelease() diff --git a/macos/appkit/collection_view_element.gen.go b/macos/appkit/collection_view_element_protocol.gen.go similarity index 69% rename from macos/appkit/collection_view_element.gen.go rename to macos/appkit/collection_view_element_protocol.gen.go index f34898a1..a19ac112 100644 --- a/macos/appkit/collection_view_element.gen.go +++ b/macos/appkit/collection_view_element_protocol.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package appkit @@ -23,71 +23,74 @@ type PCollectionViewElement interface { HasDidTransitionFromLayoutToLayout() bool // optional - PrepareForReuse() - HasPrepareForReuse() bool + PreferredLayoutAttributesFittingAttributes(layoutAttributes CollectionViewLayoutAttributes) CollectionViewLayoutAttributes + HasPreferredLayoutAttributesFittingAttributes() bool // optional - PreferredLayoutAttributesFittingAttributes(layoutAttributes CollectionViewLayoutAttributes) ICollectionViewLayoutAttributes - HasPreferredLayoutAttributesFittingAttributes() bool + PrepareForReuse() + HasPrepareForReuse() bool } -// A concrete type wrapper for the [PCollectionViewElement] protocol. -type CollectionViewElementWrapper struct { +// ensure impl type implements protocol interface +var _ PCollectionViewElement = (*CollectionViewElementObject)(nil) + +// A concrete type for the [PCollectionViewElement] protocol. +type CollectionViewElementObject struct { objc.Object } -func (c_ CollectionViewElementWrapper) HasWillTransitionFromLayoutToLayout() bool { +func (c_ CollectionViewElementObject) HasWillTransitionFromLayoutToLayout() bool { return c_.RespondsToSelector(objc.Sel("willTransitionFromLayout:toLayout:")) } // Tells the element that the layout object of the collection view is about to change. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/appkit/nscollectionviewelement/1528165-willtransitionfromlayout?language=objc -func (c_ CollectionViewElementWrapper) WillTransitionFromLayoutToLayout(oldLayout ICollectionViewLayout, newLayout ICollectionViewLayout) { +func (c_ CollectionViewElementObject) WillTransitionFromLayoutToLayout(oldLayout CollectionViewLayout, newLayout CollectionViewLayout) { objc.Call[objc.Void](c_, objc.Sel("willTransitionFromLayout:toLayout:"), objc.Ptr(oldLayout), objc.Ptr(newLayout)) } -func (c_ CollectionViewElementWrapper) HasApplyLayoutAttributes() bool { +func (c_ CollectionViewElementObject) HasApplyLayoutAttributes() bool { return c_.RespondsToSelector(objc.Sel("applyLayoutAttributes:")) } // Applies the specified layout attributes to the element. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/appkit/nscollectionviewelement/1528294-applylayoutattributes?language=objc -func (c_ CollectionViewElementWrapper) ApplyLayoutAttributes(layoutAttributes ICollectionViewLayoutAttributes) { +func (c_ CollectionViewElementObject) ApplyLayoutAttributes(layoutAttributes CollectionViewLayoutAttributes) { objc.Call[objc.Void](c_, objc.Sel("applyLayoutAttributes:"), objc.Ptr(layoutAttributes)) } -func (c_ CollectionViewElementWrapper) HasDidTransitionFromLayoutToLayout() bool { +func (c_ CollectionViewElementObject) HasDidTransitionFromLayoutToLayout() bool { return c_.RespondsToSelector(objc.Sel("didTransitionFromLayout:toLayout:")) } // Tells the element that the layout object of the collection view changed. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/appkit/nscollectionviewelement/1525851-didtransitionfromlayout?language=objc -func (c_ CollectionViewElementWrapper) DidTransitionFromLayoutToLayout(oldLayout ICollectionViewLayout, newLayout ICollectionViewLayout) { +func (c_ CollectionViewElementObject) DidTransitionFromLayoutToLayout(oldLayout CollectionViewLayout, newLayout CollectionViewLayout) { objc.Call[objc.Void](c_, objc.Sel("didTransitionFromLayout:toLayout:"), objc.Ptr(oldLayout), objc.Ptr(newLayout)) } -func (c_ CollectionViewElementWrapper) 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_ CollectionViewElementWrapper) PrepareForReuse() { - objc.Call[objc.Void](c_, objc.Sel("prepareForReuse")) -} - -func (c_ CollectionViewElementWrapper) HasPreferredLayoutAttributesFittingAttributes() bool { +func (c_ CollectionViewElementObject) HasPreferredLayoutAttributesFittingAttributes() bool { return c_.RespondsToSelector(objc.Sel("preferredLayoutAttributesFittingAttributes:")) } // Asks your element if it wants to modify any layout attributes before they are applied. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/appkit/nscollectionviewelement/1528259-preferredlayoutattributesfitting?language=objc -func (c_ CollectionViewElementWrapper) PreferredLayoutAttributesFittingAttributes(layoutAttributes ICollectionViewLayoutAttributes) CollectionViewLayoutAttributes { +func (c_ CollectionViewElementObject) PreferredLayoutAttributesFittingAttributes(layoutAttributes CollectionViewLayoutAttributes) CollectionViewLayoutAttributes { rv := objc.Call[CollectionViewLayoutAttributes](c_, objc.Sel("preferredLayoutAttributesFittingAttributes:"), objc.Ptr(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 4e90d4f8..a4ca3eec 100644 --- a/macos/appkit/collection_view_flow_layout.gen.go +++ b/macos/appkit/collection_view_flow_layout.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package appkit @@ -19,29 +19,29 @@ type _CollectionViewFlowLayoutClass struct { // An interface definition for the [CollectionViewFlowLayout] class. type ICollectionViewFlowLayout interface { ICollectionViewLayout - ExpandSectionAtIndex(sectionIndex uint) - SectionAtIndexIsCollapsed(sectionIndex uint) bool CollapseSectionAtIndex(sectionIndex uint) - ItemSize() foundation.Size - SetItemSize(value foundation.Size) + SectionAtIndexIsCollapsed(sectionIndex uint) bool + ExpandSectionAtIndex(sectionIndex uint) + ScrollDirection() CollectionViewScrollDirection + SetScrollDirection(value CollectionViewScrollDirection) + MinimumLineSpacing() float64 + SetMinimumLineSpacing(value float64) HeaderReferenceSize() foundation.Size SetHeaderReferenceSize(value foundation.Size) - MinimumInteritemSpacing() float64 - SetMinimumInteritemSpacing(value float64) FooterReferenceSize() foundation.Size SetFooterReferenceSize(value foundation.Size) - SectionInset() foundation.EdgeInsets - SetSectionInset(value foundation.EdgeInsets) - ScrollDirection() CollectionViewScrollDirection - SetScrollDirection(value CollectionViewScrollDirection) + ItemSize() foundation.Size + SetItemSize(value foundation.Size) EstimatedItemSize() foundation.Size SetEstimatedItemSize(value foundation.Size) - SectionFootersPinToVisibleBounds() bool - SetSectionFootersPinToVisibleBounds(value bool) - MinimumLineSpacing() float64 - SetMinimumLineSpacing(value float64) + SectionInset() foundation.EdgeInsets + SetSectionInset(value foundation.EdgeInsets) SectionHeadersPinToVisibleBounds() bool SetSectionHeadersPinToVisibleBounds(value bool) + MinimumInteritemSpacing() float64 + SetMinimumInteritemSpacing(value float64) + SectionFootersPinToVisibleBounds() bool + SetSectionFootersPinToVisibleBounds(value bool) } // A layout that organizes items into a flexible and configurable arrangement. [Full Topic] @@ -62,10 +62,6 @@ func (cc _CollectionViewFlowLayoutClass) Alloc() CollectionViewFlowLayout { return rv } -func CollectionViewFlowLayout_Alloc() CollectionViewFlowLayout { - return CollectionViewFlowLayoutClass.Alloc() -} - func (cc _CollectionViewFlowLayoutClass) New() CollectionViewFlowLayout { rv := objc.Call[CollectionViewFlowLayout](cc, objc.Sel("new")) rv.Autorelease() @@ -83,9 +79,9 @@ func (c_ CollectionViewFlowLayout) Init() CollectionViewFlowLayout { // [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) +// [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] @@ -98,24 +94,39 @@ func (c_ CollectionViewFlowLayout) SectionAtIndexIsCollapsed(sectionIndex uint) // [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) } -// The default size to use for items. [Full Topic] +// The scroll direction of the layout. [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/1402869-scrolldirection?language=objc +func (c_ CollectionViewFlowLayout) ScrollDirection() CollectionViewScrollDirection { + rv := objc.Call[CollectionViewScrollDirection](c_, objc.Sel("scrollDirection")) return rv } -// The default size to use for items. [Full Topic] +// The scroll direction of the layout. [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/1402869-scrolldirection?language=objc +func (c_ CollectionViewFlowLayout) SetScrollDirection(value CollectionViewScrollDirection) { + objc.Call[objc.Void](c_, objc.Sel("setScrollDirection:"), value) +} + +// The minimum spacing (in points) to use between rows or columns. [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")) + return rv +} + +// The minimum spacing (in points) to use between rows or columns. [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) } // The default size to use for section headers. [Full Topic] @@ -133,21 +144,6 @@ 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 @@ -163,34 +159,19 @@ func (c_ CollectionViewFlowLayout) SetFooterReferenceSize(value foundation.Size) objc.Call[objc.Void](c_, objc.Sel("setFooterReferenceSize:"), 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) -} - -// The scroll direction of the layout. [Full Topic] +// The default size to use for items. [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")) +// [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 scroll direction of the layout. [Full Topic] +// The default size to use for items. [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/1402863-itemsize?language=objc +func (c_ CollectionViewFlowLayout) SetItemSize(value foundation.Size) { + objc.Call[objc.Void](c_, objc.Sel("setItemSize:"), value) } // The estimated size of items in the collection view. [Full Topic] @@ -208,47 +189,62 @@ 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/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) } -// The minimum spacing (in points) to use between rows or columns. [Full Topic] +// 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/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/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 rows or columns. [Full Topic] +// 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/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/1402872-minimuminteritemspacing?language=objc +func (c_ CollectionViewFlowLayout) SetMinimumInteritemSpacing(value float64) { + objc.Call[objc.Void](c_, objc.Sel("setMinimumInteritemSpacing:"), 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) } 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 463022c1..60f86e96 100644 --- a/macos/appkit/collection_view_flow_layout_invalidation_context.gen.go +++ b/macos/appkit/collection_view_flow_layout_invalidation_context.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package appkit @@ -18,10 +18,10 @@ type _CollectionViewFlowLayoutInvalidationContextClass struct { // An interface definition for the [CollectionViewFlowLayoutInvalidationContext] class. type ICollectionViewFlowLayoutInvalidationContext interface { ICollectionViewLayoutInvalidationContext - InvalidateFlowLayoutAttributes() bool - SetInvalidateFlowLayoutAttributes(value bool) InvalidateFlowLayoutDelegateMetrics() bool SetInvalidateFlowLayoutDelegateMetrics(value bool) + InvalidateFlowLayoutAttributes() bool + SetInvalidateFlowLayoutAttributes(value bool) } // An object that identifies the portions of a flow layout object that need to be updated. [Full Topic] @@ -42,10 +42,6 @@ func (cc _CollectionViewFlowLayoutInvalidationContextClass) Alloc() CollectionVi return rv } -func CollectionViewFlowLayoutInvalidationContext_Alloc() CollectionViewFlowLayoutInvalidationContext { - return CollectionViewFlowLayoutInvalidationContextClass.Alloc() -} - func (cc _CollectionViewFlowLayoutInvalidationContextClass) New() CollectionViewFlowLayoutInvalidationContext { rv := objc.Call[CollectionViewFlowLayoutInvalidationContext](cc, objc.Sel("new")) rv.Autorelease() @@ -61,21 +57,6 @@ func (c_ CollectionViewFlowLayoutInvalidationContext) Init() CollectionViewFlowL return rv } -// 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 -func (c_ CollectionViewFlowLayoutInvalidationContext) InvalidateFlowLayoutAttributes() bool { - rv := objc.Call[bool](c_, objc.Sel("invalidateFlowLayoutAttributes")) - return rv -} - -// 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 -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 @@ -90,3 +71,18 @@ func (c_ CollectionViewFlowLayoutInvalidationContext) InvalidateFlowLayoutDelega 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 +func (c_ CollectionViewFlowLayoutInvalidationContext) InvalidateFlowLayoutAttributes() bool { + rv := objc.Call[bool](c_, objc.Sel("invalidateFlowLayoutAttributes")) + return rv +} + +// 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 +func (c_ CollectionViewFlowLayoutInvalidationContext) SetInvalidateFlowLayoutAttributes(value bool) { + objc.Call[objc.Void](c_, objc.Sel("setInvalidateFlowLayoutAttributes:"), value) +} diff --git a/macos/appkit/collection_view_grid_layout.gen.go b/macos/appkit/collection_view_grid_layout.gen.go index 3d13d48b..d4ee3324 100644 --- a/macos/appkit/collection_view_grid_layout.gen.go +++ b/macos/appkit/collection_view_grid_layout.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package appkit @@ -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) - Margins() foundation.EdgeInsets - SetMargins(value foundation.EdgeInsets) - MaximumNumberOfColumns() uint - SetMaximumNumberOfColumns(value uint) + BackgroundColors() []Color + SetBackgroundColors(value []IColor) MinimumLineSpacing() float64 SetMinimumLineSpacing(value float64) + MaximumNumberOfColumns() uint + SetMaximumNumberOfColumns(value uint) + MinimumItemSize() foundation.Size + SetMinimumItemSize(value foundation.Size) } // A layout that displays a single section of items in a row and column grid. [Full Topic] @@ -55,10 +55,6 @@ func (cc _CollectionViewGridLayoutClass) Alloc() CollectionViewGridLayout { return rv } -func CollectionViewGridLayout_Alloc() CollectionViewGridLayout { - return CollectionViewGridLayoutClass.Alloc() -} - func (cc _CollectionViewGridLayoutClass) New() CollectionViewGridLayout { rv := objc.Call[CollectionViewGridLayout](cc, objc.Sel("new")) rv.Autorelease() @@ -74,36 +70,6 @@ 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 @@ -119,6 +85,21 @@ 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 @@ -149,19 +130,34 @@ func (c_ CollectionViewGridLayout) SetMinimumInteritemSpacing(value float64) { objc.Call[objc.Void](c_, objc.Sel("setMinimumInteritemSpacing:"), value) } -// The amount of empty space (in points) around the grid’s content. [Full Topic] +// The array of background colors to use when drawing the grid. [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")) +// [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 amount of empty space (in points) around the grid’s content. [Full Topic] +// The array of background colors to use when drawing the grid. [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) +// [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] +// +// [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 minimum spacing (in points) to use between rows or columns. [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) } // The maximum number of columns to display in the collection view’s visible area. [Full Topic] @@ -179,17 +175,17 @@ func (c_ CollectionViewGridLayout) SetMaximumNumberOfColumns(value uint) { objc.Call[objc.Void](c_, objc.Sel("setMaximumNumberOfColumns:"), value) } -// The minimum spacing (in points) to use between rows or columns. [Full Topic] +// The smallest allowable size for an item’s view. [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/1534425-minimumitemsize?language=objc +func (c_ CollectionViewGridLayout) MinimumItemSize() foundation.Size { + rv := objc.Call[foundation.Size](c_, objc.Sel("minimumItemSize")) return rv } -// The minimum spacing (in points) to use between rows or columns. [Full Topic] +// The smallest allowable size for an item’s view. [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/1534425-minimumitemsize?language=objc +func (c_ CollectionViewGridLayout) SetMinimumItemSize(value foundation.Size) { + objc.Call[objc.Void](c_, objc.Sel("setMinimumItemSize:"), value) } diff --git a/macos/appkit/collection_view_item.gen.go b/macos/appkit/collection_view_item.gen.go index be42effc..d2cf3675 100644 --- a/macos/appkit/collection_view_item.gen.go +++ b/macos/appkit/collection_view_item.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package appkit @@ -19,16 +19,16 @@ type _CollectionViewItemClass struct { // An interface definition for the [CollectionViewItem] class. type ICollectionViewItem interface { IViewController - HighlightState() CollectionViewItemHighlightState - SetHighlightState(value CollectionViewItemHighlightState) - IsSelected() bool - SetSelected(value bool) TextField() TextField SetTextField(value ITextField) - CollectionView() CollectionView - DraggingImageComponents() []DraggingImageComponent + IsSelected() bool + SetSelected(value bool) ImageView() ImageView SetImageView(value IImageView) + HighlightState() CollectionViewItemHighlightState + SetHighlightState(value CollectionViewItemHighlightState) + CollectionView() CollectionView + DraggingImageComponents() []DraggingImageComponent } // The visual representation for a single data element in a collection view. [Full Topic] @@ -49,10 +49,6 @@ func (cc _CollectionViewItemClass) Alloc() CollectionViewItem { return rv } -func CollectionViewItem_Alloc() CollectionViewItem { - return CollectionViewItemClass.Alloc() -} - func (cc _CollectionViewItemClass) New() CollectionViewItem { rv := objc.Call[CollectionViewItem](cc, objc.Sel("new")) rv.Autorelease() @@ -82,19 +78,19 @@ func NewCollectionViewItemWithNibNameBundle(nibNameOrNil NibName, nibBundleOrNil return instance } -// 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:"), objc.Ptr(value)) } // A Boolean indicating whether the item is currently selected. [Full Topic] @@ -112,19 +108,34 @@ func (c_ CollectionViewItem) SetSelected(value bool) { objc.Call[objc.Void](c_, objc.Sel("setSelected:"), value) } -// A text field outlet that you can use to display a string. [Full Topic] +// An image view outlet that you can use to display images. [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/1525366-imageview?language=objc +func (c_ CollectionViewItem) ImageView() ImageView { + rv := objc.Call[ImageView](c_, objc.Sel("imageView")) return rv } -// A text field outlet that you can use to display a string. [Full Topic] +// An image view outlet that you can use to display images. [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:"), objc.Ptr(value)) +// [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:"), objc.Ptr(value)) +} + +// The highlight state currently applied to the item. [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")) + return rv +} + +// The highlight state currently applied to the item. [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) } // The collection view that owns the item. [Full Topic] @@ -142,18 +153,3 @@ 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:"), objc.Ptr(value)) -} diff --git a/macos/appkit/collection_view_layout.gen.go b/macos/appkit/collection_view_layout.gen.go index 37d30aef..fc0d0d2c 100644 --- a/macos/appkit/collection_view_layout.gen.go +++ b/macos/appkit/collection_view_layout.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package appkit @@ -19,37 +19,42 @@ type _CollectionViewLayoutClass struct { // An interface definition for the [CollectionViewLayout] class. type ICollectionViewLayout interface { objc.IObject - 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 - InvalidationContextForBoundsChange(newBounds foundation.Rect) CollectionViewLayoutInvalidationContext - ShouldInvalidateLayoutForPreferredLayoutAttributesWithOriginalAttributes(preferredAttributes ICollectionViewLayoutAttributes, originalAttributes ICollectionViewLayoutAttributes) bool - InvalidationContextForPreferredLayoutAttributesWithOriginalAttributes(preferredAttributes ICollectionViewLayoutAttributes, originalAttributes ICollectionViewLayoutAttributes) CollectionViewLayoutInvalidationContext + IndexPathsToDeleteForSupplementaryViewOfKind(elementKind CollectionViewSupplementaryElementKind) foundation.Set RegisterClassForDecorationViewOfKind(viewClass objc.IClass, elementKind CollectionViewDecorationElementKind) - TargetContentOffsetForProposedContentOffset(proposedContentOffset foundation.Point) foundation.Point - LayoutAttributesForElementsInRect(rect foundation.Rect) []CollectionViewLayoutAttributes - LayoutAttributesForDecorationViewOfKindAtIndexPath(elementKind CollectionViewDecorationElementKind, indexPath foundation.IIndexPath) CollectionViewLayoutAttributes - LayoutAttributesForDropTargetAtPoint(pointInCollectionView foundation.Point) CollectionViewLayoutAttributes InvalidateLayoutWithContext(context ICollectionViewLayoutInvalidationContext) - PrepareForCollectionViewUpdates(updateItems []ICollectionViewUpdateItem) + 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 - IndexPathsToDeleteForDecorationViewOfKind(elementKind CollectionViewDecorationElementKind) foundation.Set - IndexPathsToDeleteForSupplementaryViewOfKind(elementKind CollectionViewSupplementaryElementKind) foundation.Set FinalizeCollectionViewUpdates() - PrepareForTransitionToLayout(newLayout ICollectionViewLayout) - InitialLayoutAttributesForAppearingDecorationElementOfKindAtIndexPath(elementKind CollectionViewDecorationElementKind, decorationIndexPath foundation.IIndexPath) CollectionViewLayoutAttributes + ShouldInvalidateLayoutForPreferredLayoutAttributesWithOriginalAttributes(preferredAttributes ICollectionViewLayoutAttributes, originalAttributes ICollectionViewLayoutAttributes) bool + RegisterNibForDecorationViewOfKind(nib INib, elementKind CollectionViewDecorationElementKind) + IndexPathsToInsertForDecorationViewOfKind(elementKind CollectionViewDecorationElementKind) foundation.Set + FinalizeAnimatedBoundsChange() FinalizeLayoutTransition() PrepareForAnimatedBoundsChange(oldBounds foundation.Rect) + IndexPathsToInsertForSupplementaryViewOfKind(elementKind CollectionViewSupplementaryElementKind) foundation.Set + InitialLayoutAttributesForAppearingSupplementaryElementOfKindAtIndexPath(elementKind CollectionViewSupplementaryElementKind, elementIndexPath foundation.IIndexPath) CollectionViewLayoutAttributes + 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 + 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 LayoutAttributesForSupplementaryViewOfKindAtIndexPath(elementKind CollectionViewSupplementaryElementKind, indexPath foundation.IIndexPath) CollectionViewLayoutAttributes - FinalizeAnimatedBoundsChange() - ShouldInvalidateLayoutForBoundsChange(newBounds foundation.Rect) bool - CollectionViewContentSize() foundation.Size + InitialLayoutAttributesForAppearingItemAtIndexPath(itemIndexPath foundation.IIndexPath) CollectionViewLayoutAttributes + PrepareForTransitionFromLayout(oldLayout ICollectionViewLayout) + LayoutAttributesForInterItemGapBeforeIndexPath(indexPath foundation.IIndexPath) CollectionViewLayoutAttributes + IndexPathsToDeleteForDecorationViewOfKind(elementKind CollectionViewDecorationElementKind) foundation.Set + PrepareForCollectionViewUpdates(updateItems []ICollectionViewUpdateItem) CollectionView() CollectionView + CollectionViewContentSize() foundation.Size } // An abstract base class that you subclass and use to generate layout information for a collection view. [Full Topic] @@ -70,10 +75,6 @@ func (cc _CollectionViewLayoutClass) Alloc() CollectionViewLayout { return rv } -func CollectionViewLayout_Alloc() CollectionViewLayout { - return CollectionViewLayoutClass.Alloc() -} - func (cc _CollectionViewLayoutClass) New() CollectionViewLayout { rv := objc.Call[CollectionViewLayout](cc, objc.Sel("new")) rv.Autorelease() @@ -89,66 +90,74 @@ func (c_ CollectionViewLayout) Init() CollectionViewLayout { return rv } -// Returns the index paths for any supplementary views that the layout object wants to add to the collection view. [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/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/1529622-indexpathstodeleteforsupplementa?language=objc +func (c_ CollectionViewLayout) IndexPathsToDeleteForSupplementaryViewOfKind(elementKind CollectionViewSupplementaryElementKind) foundation.Set { + rv := objc.Call[foundation.Set](c_, objc.Sel("indexPathsToDeleteForSupplementaryViewOfKind:"), elementKind) return rv } -// Prepares the layout object to be installed in 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/1533383-preparefortransitionfromlayout?language=objc -func (c_ CollectionViewLayout) PrepareForTransitionFromLayout(oldLayout ICollectionViewLayout) { - objc.Call[objc.Void](c_, objc.Sel("prepareForTransitionFromLayout:"), objc.Ptr(oldLayout)) +// [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:"), objc.Ptr(viewClass), elementKind) } -// Registers a nib file to use when creating the layout’s decoration views. [Full Topic] +// Invalidates specific parts of the layout using the specified context object. [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:"), objc.Ptr(nib), elementKind) +// [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:"), objc.Ptr(context)) } -// Prepares the layout object to begin laying out content. [Full Topic] +// Returns the offset value to use for the collection view’s content at the end of scrolling. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nscollectionviewlayout/1530434-preparelayout?language=objc -func (c_ CollectionViewLayout) PrepareLayout() { - objc.Call[objc.Void](c_, objc.Sel("prepareLayout")) +// [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 } -// Returns layout attributes for the inter-item gap at the specified location in your layout. [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/1528296-layoutattributesforinteritemgapb?language=objc -func (c_ CollectionViewLayout) LayoutAttributesForInterItemGapBeforeIndexPath(indexPath foundation.IIndexPath) CollectionViewLayoutAttributes { - rv := objc.Call[CollectionViewLayoutAttributes](c_, objc.Sel("layoutAttributesForInterItemGapBeforeIndexPath:"), objc.Ptr(indexPath)) +// [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 } -// Invalidates all layout information and triggers a layout update. [Full Topic] +// Prepares the layout object to begin laying out content. [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")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nscollectionviewlayout/1530434-preparelayout?language=objc +func (c_ CollectionViewLayout) PrepareLayout() { + objc.Call[objc.Void](c_, objc.Sel("prepareLayout")) } -// Returns the index paths for any decoration views that the layout object wants to add to 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/1528098-indexpathstoinsertfordecorationv?language=objc -func (c_ CollectionViewLayout) IndexPathsToInsertForDecorationViewOfKind(elementKind CollectionViewDecorationElementKind) foundation.Set { - rv := objc.Call[foundation.Set](c_, objc.Sel("indexPathsToInsertForDecorationViewOfKind:"), 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 } -// Returns an invalidation context object that defines the portions of the layout that need to be updated. [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/1534058-invalidationcontextforboundschan?language=objc -func (c_ CollectionViewLayout) InvalidationContextForBoundsChange(newBounds foundation.Rect) CollectionViewLayoutInvalidationContext { - rv := objc.Call[CollectionViewLayoutInvalidationContext](c_, objc.Sel("invalidationContextForBoundsChange:"), newBounds) +// [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, objc.Ptr(decorationIndexPath)) return rv } +// 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/1534473-finalizecollectionviewupdates?language=objc +func (c_ CollectionViewLayout) FinalizeCollectionViewUpdates() { + objc.Call[objc.Void](c_, objc.Sel("finalizeCollectionViewUpdates")) +} + // Returns a Boolean indicating whether changes to a cell’s layout attributes trigger a larger layout update. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/appkit/nscollectionviewlayout/1535536-shouldinvalidatelayoutforpreferr?language=objc @@ -157,96 +166,96 @@ func (c_ CollectionViewLayout) ShouldInvalidateLayoutForPreferredLayoutAttribute return rv } -// 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/1535343-invalidationcontextforpreferredl?language=objc -func (c_ CollectionViewLayout) InvalidationContextForPreferredLayoutAttributesWithOriginalAttributes(preferredAttributes ICollectionViewLayoutAttributes, originalAttributes ICollectionViewLayoutAttributes) CollectionViewLayoutInvalidationContext { - rv := objc.Call[CollectionViewLayoutInvalidationContext](c_, objc.Sel("invalidationContextForPreferredLayoutAttributes:withOriginalAttributes:"), objc.Ptr(preferredAttributes), objc.Ptr(originalAttributes)) - 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:"), objc.Ptr(nib), elementKind) } -// Registers a class to use when creating the layout’s decoration views. [Full Topic] +// 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/1533837-registerclass?language=objc -func (c_ CollectionViewLayout) RegisterClassForDecorationViewOfKind(viewClass objc.IClass, elementKind CollectionViewDecorationElementKind) { - objc.Call[objc.Void](c_, objc.Sel("registerClass:forDecorationViewOfKind:"), objc.Ptr(viewClass), elementKind) +// [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 } -// Returns the offset value to use after an animated layout update or change. [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/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/1533163-finalizeanimatedboundschange?language=objc +func (c_ CollectionViewLayout) FinalizeAnimatedBoundsChange() { + objc.Call[objc.Void](c_, objc.Sel("finalizeAnimatedBoundsChange")) } -// Returns the layout attribute objects for all items and views in the specified rectangle. [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/1524636-layoutattributesforelementsinrec?language=objc -func (c_ CollectionViewLayout) LayoutAttributesForElementsInRect(rect foundation.Rect) []CollectionViewLayoutAttributes { - rv := objc.Call[[]CollectionViewLayoutAttributes](c_, objc.Sel("layoutAttributesForElementsInRect:"), rect) - 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 the layout attributes of the decoration view at the specified location in your layout. [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/1527929-layoutattributesfordecorationvie?language=objc -func (c_ CollectionViewLayout) LayoutAttributesForDecorationViewOfKindAtIndexPath(elementKind CollectionViewDecorationElementKind, indexPath foundation.IIndexPath) CollectionViewLayoutAttributes { - rv := objc.Call[CollectionViewLayoutAttributes](c_, objc.Sel("layoutAttributesForDecorationViewOfKind:atIndexPath:"), elementKind, objc.Ptr(indexPath)) - 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 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/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/1534044-indexpathstoinsertforsupplementa?language=objc +func (c_ CollectionViewLayout) IndexPathsToInsertForSupplementaryViewOfKind(elementKind CollectionViewSupplementaryElementKind) foundation.Set { + rv := objc.Call[foundation.Set](c_, objc.Sel("indexPathsToInsertForSupplementaryViewOfKind:"), elementKind) return rv } -// Invalidates specific parts of the layout using the specified context object. [Full Topic] +// Returns the starting layout information for a supplementary view being added to the collection view. [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:"), objc.Ptr(context)) +// [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, objc.Ptr(elementIndexPath)) + return rv } -// Performs needed tasks before items are inserted, deleted, or moved within the collection view. [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/1533485-prepareforcollectionviewupdates?language=objc -func (c_ CollectionViewLayout) PrepareForCollectionViewUpdates(updateItems []ICollectionViewUpdateItem) { - objc.Call[objc.Void](c_, objc.Sel("prepareForCollectionViewUpdates:"), updateItems) +// [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 } -// Returns the ending layout information for a decoration view being removed from the collection view. [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/1535917-finallayoutattributesfordisappea?language=objc -func (c_ CollectionViewLayout) FinalLayoutAttributesForDisappearingDecorationElementOfKindAtIndexPath(elementKind CollectionViewDecorationElementKind, decorationIndexPath foundation.IIndexPath) CollectionViewLayoutAttributes { - rv := objc.Call[CollectionViewLayoutAttributes](c_, objc.Sel("finalLayoutAttributesForDisappearingDecorationElementOfKind:atIndexPath:"), elementKind, objc.Ptr(decorationIndexPath)) +// [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:"), objc.Ptr(indexPath)) return rv } -// Returns index paths for any decoration views that the layout object wants to remove from the collection view. [Full Topic] +// Returns the ending layout information for an item being removed from the collection view. [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/1533317-finallayoutattributesfordisappea?language=objc +func (c_ CollectionViewLayout) FinalLayoutAttributesForDisappearingItemAtIndexPath(itemIndexPath foundation.IIndexPath) CollectionViewLayoutAttributes { + rv := objc.Call[CollectionViewLayoutAttributes](c_, objc.Sel("finalLayoutAttributesForDisappearingItemAtIndexPath:"), objc.Ptr(itemIndexPath)) 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 layout attribute objects for all items and views in the specified rectangle. [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/1524636-layoutattributesforelementsinrec?language=objc +func (c_ CollectionViewLayout) LayoutAttributesForElementsInRect(rect foundation.Rect) []CollectionViewLayoutAttributes { + rv := objc.Call[[]CollectionViewLayoutAttributes](c_, objc.Sel("layoutAttributesForElementsInRect:"), rect) return rv } -// Performs needed steps after items are inserted, deleted, or moved within a collection view. [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/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/1527929-layoutattributesfordecorationvie?language=objc +func (c_ CollectionViewLayout) LayoutAttributesForDecorationViewOfKindAtIndexPath(elementKind CollectionViewDecorationElementKind, indexPath foundation.IIndexPath) CollectionViewLayoutAttributes { + rv := objc.Call[CollectionViewLayoutAttributes](c_, objc.Sel("layoutAttributesForDecorationViewOfKind:atIndexPath:"), elementKind, objc.Ptr(indexPath)) + return rv } // Prepares the layout object to be uninstalled from the collection view. [Full Topic] @@ -264,25 +273,34 @@ func (c_ CollectionViewLayout) InitialLayoutAttributesForAppearingDecorationElem return rv } -// Performs any final steps related to a layout transition before the transition animations actually occur. [Full Topic] +// Invalidates all layout information and triggers a layout update. [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/1534293-invalidatelayout?language=objc +func (c_ CollectionViewLayout) InvalidateLayout() { + objc.Call[objc.Void](c_, objc.Sel("invalidateLayout")) } -// 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 ending layout information for a supplementary view being removed from the collection view. [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/1535919-finallayoutattributesfordisappea?language=objc +func (c_ CollectionViewLayout) FinalLayoutAttributesForDisappearingSupplementaryElementOfKindAtIndexPath(elementKind CollectionViewSupplementaryElementKind, elementIndexPath foundation.IIndexPath) CollectionViewLayoutAttributes { + rv := objc.Call[CollectionViewLayoutAttributes](c_, objc.Sel("finalLayoutAttributesForDisappearingSupplementaryElementOfKind:atIndexPath:"), elementKind, objc.Ptr(elementIndexPath)) + return rv } -// Returns the layout attributes for the item at the specified index path. [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/1534298-layoutattributesforitematindexpa?language=objc -func (c_ CollectionViewLayout) LayoutAttributesForItemAtIndexPath(indexPath foundation.IIndexPath) CollectionViewLayoutAttributes { - rv := objc.Call[CollectionViewLayoutAttributes](c_, objc.Sel("layoutAttributesForItemAtIndexPath:"), objc.Ptr(indexPath)) +// [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:"), objc.Ptr(preferredAttributes), objc.Ptr(originalAttributes)) + return rv +} + +// Returns layout attributes for the drop target at the specified point. [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) return rv } @@ -294,21 +312,44 @@ func (c_ CollectionViewLayout) LayoutAttributesForSupplementaryViewOfKindAtIndex return rv } -// Cleans up after any animated changes to the collection view’s bounds or after the insertion or deletion of items. [Full Topic] +// 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/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/1533598-initiallayoutattributesforappear?language=objc +func (c_ CollectionViewLayout) InitialLayoutAttributesForAppearingItemAtIndexPath(itemIndexPath foundation.IIndexPath) CollectionViewLayoutAttributes { + rv := objc.Call[CollectionViewLayoutAttributes](c_, objc.Sel("initialLayoutAttributesForAppearingItemAtIndexPath:"), objc.Ptr(itemIndexPath)) + return rv } -// Returns a Boolean indicating whether a bounds change triggers a layout update. [Full Topic] +// Prepares the layout object to be installed in the collection view. [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/1533383-preparefortransitionfromlayout?language=objc +func (c_ CollectionViewLayout) PrepareForTransitionFromLayout(oldLayout ICollectionViewLayout) { + objc.Call[objc.Void](c_, objc.Sel("prepareForTransitionFromLayout:"), objc.Ptr(oldLayout)) +} + +// 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/1528296-layoutattributesforinteritemgapb?language=objc +func (c_ CollectionViewLayout) LayoutAttributesForInterItemGapBeforeIndexPath(indexPath foundation.IIndexPath) CollectionViewLayoutAttributes { + rv := objc.Call[CollectionViewLayoutAttributes](c_, objc.Sel("layoutAttributesForInterItemGapBeforeIndexPath:"), objc.Ptr(indexPath)) + return rv +} + +// 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/1529635-indexpathstodeletefordecorationv?language=objc +func (c_ CollectionViewLayout) IndexPathsToDeleteForDecorationViewOfKind(elementKind CollectionViewDecorationElementKind) foundation.Set { + rv := objc.Call[foundation.Set](c_, objc.Sel("indexPathsToDeleteForDecorationViewOfKind:"), elementKind) 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 @@ -324,11 +365,11 @@ func CollectionViewLayout_LayoutAttributesClass() objc.Class { return CollectionViewLayoutClass.LayoutAttributesClass() } -// 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 } @@ -347,10 +388,10 @@ func CollectionViewLayout_InvalidationContextClass() objc.Class { return CollectionViewLayoutClass.InvalidationContextClass() } -// 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 } diff --git a/macos/appkit/collection_view_layout_attributes.gen.go b/macos/appkit/collection_view_layout_attributes.gen.go index f1b1492c..1f8f9da0 100644 --- a/macos/appkit/collection_view_layout_attributes.gen.go +++ b/macos/appkit/collection_view_layout_attributes.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package appkit @@ -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) - RepresentedElementKind() string - RepresentedElementCategory() CollectionElementCategory - Alpha() float64 - SetAlpha(value float64) - IndexPath() foundation.IndexPath - SetIndexPath(value foundation.IIndexPath) - Frame() foundation.Rect - SetFrame(value foundation.Rect) ZIndex() int SetZIndex(value int) + 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) } // An object that contains layout-related attributes for an element in a collection view. [Full Topic] @@ -48,18 +48,6 @@ func CollectionViewLayoutAttributesFrom(ptr unsafe.Pointer) CollectionViewLayout } } -func (cc _CollectionViewLayoutAttributesClass) LayoutAttributesForInterItemGapBeforeIndexPath(indexPath foundation.IIndexPath) CollectionViewLayoutAttributes { - rv := objc.Call[CollectionViewLayoutAttributes](cc, objc.Sel("layoutAttributesForInterItemGapBeforeIndexPath:"), objc.Ptr(indexPath)) - return rv -} - -// Creates and returns a layout attributes object for an inter-item gap view at the specified index path. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nscollectionviewlayoutattributes/1534062-layoutattributesforinteritemgapb?language=objc -func CollectionViewLayoutAttributes_LayoutAttributesForInterItemGapBeforeIndexPath(indexPath foundation.IIndexPath) CollectionViewLayoutAttributes { - return CollectionViewLayoutAttributesClass.LayoutAttributesForInterItemGapBeforeIndexPath(indexPath) -} - func (cc _CollectionViewLayoutAttributesClass) LayoutAttributesForDecorationViewOfKindWithIndexPath(decorationViewKind CollectionViewDecorationElementKind, indexPath foundation.IIndexPath) CollectionViewLayoutAttributes { rv := objc.Call[CollectionViewLayoutAttributes](cc, objc.Sel("layoutAttributesForDecorationViewOfKind:withIndexPath:"), decorationViewKind, objc.Ptr(indexPath)) return rv @@ -72,18 +60,6 @@ func CollectionViewLayoutAttributes_LayoutAttributesForDecorationViewOfKindWithI 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, objc.Ptr(indexPath)) - return rv -} - -// Creates and returns a layout attributes object for a supplementary view based on the specified information. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nscollectionviewlayoutattributes/1529406-layoutattributesforsupplementary?language=objc -func CollectionViewLayoutAttributes_LayoutAttributesForSupplementaryViewOfKindWithIndexPath(elementKind CollectionViewSupplementaryElementKind, indexPath foundation.IIndexPath) CollectionViewLayoutAttributes { - return CollectionViewLayoutAttributesClass.LayoutAttributesForSupplementaryViewOfKindWithIndexPath(elementKind, indexPath) -} - func (cc _CollectionViewLayoutAttributesClass) LayoutAttributesForItemWithIndexPath(indexPath foundation.IIndexPath) CollectionViewLayoutAttributes { rv := objc.Call[CollectionViewLayoutAttributes](cc, objc.Sel("layoutAttributesForItemWithIndexPath:"), objc.Ptr(indexPath)) return rv @@ -96,13 +72,33 @@ func CollectionViewLayoutAttributes_LayoutAttributesForItemWithIndexPath(indexPa return CollectionViewLayoutAttributesClass.LayoutAttributesForItemWithIndexPath(indexPath) } -func (cc _CollectionViewLayoutAttributesClass) Alloc() CollectionViewLayoutAttributes { - rv := objc.Call[CollectionViewLayoutAttributes](cc, objc.Sel("alloc")) +func (cc _CollectionViewLayoutAttributesClass) LayoutAttributesForInterItemGapBeforeIndexPath(indexPath foundation.IIndexPath) CollectionViewLayoutAttributes { + rv := objc.Call[CollectionViewLayoutAttributes](cc, objc.Sel("layoutAttributesForInterItemGapBeforeIndexPath:"), objc.Ptr(indexPath)) + return rv +} + +// Creates and returns a layout attributes object for an inter-item gap view at the specified index path. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/appkit/nscollectionviewlayoutattributes/1534062-layoutattributesforinteritemgapb?language=objc +func CollectionViewLayoutAttributes_LayoutAttributesForInterItemGapBeforeIndexPath(indexPath foundation.IIndexPath) CollectionViewLayoutAttributes { + return CollectionViewLayoutAttributesClass.LayoutAttributesForInterItemGapBeforeIndexPath(indexPath) +} + +func (cc _CollectionViewLayoutAttributesClass) LayoutAttributesForSupplementaryViewOfKindWithIndexPath(elementKind CollectionViewSupplementaryElementKind, indexPath foundation.IIndexPath) CollectionViewLayoutAttributes { + rv := objc.Call[CollectionViewLayoutAttributes](cc, objc.Sel("layoutAttributesForSupplementaryViewOfKind:withIndexPath:"), elementKind, objc.Ptr(indexPath)) return rv } -func CollectionViewLayoutAttributes_Alloc() CollectionViewLayoutAttributes { - return CollectionViewLayoutAttributesClass.Alloc() +// Creates and returns a layout attributes object for a supplementary view based on the specified information. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/appkit/nscollectionviewlayoutattributes/1529406-layoutattributesforsupplementary?language=objc +func CollectionViewLayoutAttributes_LayoutAttributesForSupplementaryViewOfKindWithIndexPath(elementKind CollectionViewSupplementaryElementKind, indexPath foundation.IIndexPath) CollectionViewLayoutAttributes { + return CollectionViewLayoutAttributesClass.LayoutAttributesForSupplementaryViewOfKindWithIndexPath(elementKind, indexPath) +} + +func (cc _CollectionViewLayoutAttributesClass) Alloc() CollectionViewLayoutAttributes { + rv := objc.Call[CollectionViewLayoutAttributes](cc, objc.Sel("alloc")) + return rv } func (cc _CollectionViewLayoutAttributesClass) New() CollectionViewLayoutAttributes { @@ -120,6 +116,14 @@ 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 @@ -135,20 +139,19 @@ func (c_ CollectionViewLayoutAttributes) SetHidden(value bool) { objc.Call[objc.Void](c_, objc.Sel("setHidden:"), value) } -// The identifier for specific elements of your collection view interface. [Full Topic] +// The element’s position on the z axis. [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")) +// [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 type of the element. [Full Topic] +// The element’s position on the z axis. [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 +// [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 transparency of the element. [Full Topic] @@ -166,19 +169,27 @@ func (c_ CollectionViewLayoutAttributes) SetAlpha(value float64) { objc.Call[objc.Void](c_, objc.Sel("setAlpha:"), value) } -// The index path of the element. [Full Topic] +// The identifier for specific elements of your collection view interface. [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/1533826-representedelementkind?language=objc +func (c_ CollectionViewLayoutAttributes) RepresentedElementKind() string { + rv := objc.Call[string](c_, objc.Sel("representedElementKind")) return rv } -// The index path of the element. [Full Topic] +// The size of the element. [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:"), objc.Ptr(value)) +// [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) } // The frame rectangle of the element. [Full Topic] @@ -196,32 +207,17 @@ func (c_ CollectionViewLayoutAttributes) SetFrame(value foundation.Rect) { objc.Call[objc.Void](c_, objc.Sel("setFrame:"), value) } -// The element’s position on the z axis. [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")) - return rv -} - -// The element’s position on the z axis. [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) -} - -// 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:"), objc.Ptr(value)) } diff --git a/macos/appkit/collection_view_layout_invalidation_context.gen.go b/macos/appkit/collection_view_layout_invalidation_context.gen.go index 37fd7eaf..8be154ff 100644 --- a/macos/appkit/collection_view_layout_invalidation_context.gen.go +++ b/macos/appkit/collection_view_layout_invalidation_context.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package appkit @@ -19,18 +19,18 @@ type _CollectionViewLayoutInvalidationContextClass struct { // An interface definition for the [CollectionViewLayoutInvalidationContext] class. type ICollectionViewLayoutInvalidationContext interface { objc.IObject - InvalidateSupplementaryElementsOfKindAtIndexPaths(elementKind CollectionViewSupplementaryElementKind, indexPaths foundation.ISet) - InvalidateDecorationElementsOfKindAtIndexPaths(elementKind CollectionViewDecorationElementKind, indexPaths foundation.ISet) InvalidateItemsAtIndexPaths(indexPaths foundation.ISet) - InvalidatedDecorationIndexPaths() map[CollectionViewDecorationElementKind]foundation.Set + 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) InvalidateEverything() bool - InvalidatedItemIndexPaths() foundation.Set InvalidateDataSourceCounts() bool InvalidatedSupplementaryIndexPaths() map[CollectionViewSupplementaryElementKind]foundation.Set - ContentSizeAdjustment() foundation.Size - SetContentSizeAdjustment(value foundation.Size) - ContentOffsetAdjustment() foundation.Point - SetContentOffsetAdjustment(value foundation.Point) + InvalidatedItemIndexPaths() foundation.Set + InvalidatedDecorationIndexPaths() map[CollectionViewDecorationElementKind]foundation.Set } // An object that identifies the portions of your layout that need to be updated. [Full Topic] @@ -51,10 +51,6 @@ func (cc _CollectionViewLayoutInvalidationContextClass) Alloc() CollectionViewLa return rv } -func CollectionViewLayoutInvalidationContext_Alloc() CollectionViewLayoutInvalidationContext { - return CollectionViewLayoutInvalidationContextClass.Alloc() -} - func (cc _CollectionViewLayoutInvalidationContextClass) New() CollectionViewLayoutInvalidationContext { rv := objc.Call[CollectionViewLayoutInvalidationContext](cc, objc.Sel("new")) rv.Autorelease() @@ -70,11 +66,11 @@ func (c_ CollectionViewLayoutInvalidationContext) Init() CollectionViewLayoutInv return rv } -// Marks the specified supplementary views as invalid so that their layout information can be updated. [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/1533990-invalidatesupplementaryelementso?language=objc -func (c_ CollectionViewLayoutInvalidationContext) InvalidateSupplementaryElementsOfKindAtIndexPaths(elementKind CollectionViewSupplementaryElementKind, indexPaths foundation.ISet) { - objc.Call[objc.Void](c_, objc.Sel("invalidateSupplementaryElementsOfKind:atIndexPaths:"), elementKind, objc.Ptr(indexPaths)) +// [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:"), objc.Ptr(indexPaths)) } // Marks the specified decoration views as invalid so that their layout information can be updated. [Full Topic] @@ -84,34 +80,48 @@ func (c_ CollectionViewLayoutInvalidationContext) InvalidateDecorationElementsOf objc.Call[objc.Void](c_, objc.Sel("invalidateDecorationElementsOfKind:atIndexPaths:"), elementKind, objc.Ptr(indexPaths)) } -// Marks the specified items as invalid so that their layout information can be updated. [Full Topic] +// 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/1526592-invalidateitemsatindexpaths?language=objc -func (c_ CollectionViewLayoutInvalidationContext) InvalidateItemsAtIndexPaths(indexPaths foundation.ISet) { - objc.Call[objc.Void](c_, objc.Sel("invalidateItemsAtIndexPaths:"), objc.Ptr(indexPaths)) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nscollectionviewlayoutinvalidationcontext/1533990-invalidatesupplementaryelementso?language=objc +func (c_ CollectionViewLayoutInvalidationContext) InvalidateSupplementaryElementsOfKindAtIndexPaths(elementKind CollectionViewSupplementaryElementKind, indexPaths foundation.ISet) { + objc.Call[objc.Void](c_, objc.Sel("invalidateSupplementaryElementsOfKind:atIndexPaths:"), elementKind, objc.Ptr(indexPaths)) } -// A dictionary containing the decoration views whose layout attributes are invalid. [Full Topic] +// The delta value to add to the collection view’s content offset. [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/1533465-contentoffsetadjustment?language=objc +func (c_ CollectionViewLayoutInvalidationContext) ContentOffsetAdjustment() foundation.Point { + rv := objc.Call[foundation.Point](c_, objc.Sel("contentOffsetAdjustment")) return rv } -// A Boolean that indicates whether all layout data should be marked as invalid. [Full Topic] +// The delta value to add to the collection view’s content offset. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nscollectionviewlayoutinvalidationcontext/1525613-invalidateeverything?language=objc -func (c_ CollectionViewLayoutInvalidationContext) InvalidateEverything() bool { - rv := objc.Call[bool](c_, objc.Sel("invalidateEverything")) +// [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) +} + +// 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) ContentSizeAdjustment() foundation.Size { + rv := objc.Call[foundation.Size](c_, objc.Sel("contentSizeAdjustment")) 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) 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 +func (c_ CollectionViewLayoutInvalidationContext) InvalidateEverything() bool { + rv := objc.Call[bool](c_, objc.Sel("invalidateEverything")) return rv } @@ -131,32 +141,18 @@ func (c_ CollectionViewLayoutInvalidationContext) InvalidatedSupplementaryIndexP return rv } -// The delta value to add to the collection view’s content size. [Full Topic] +// The set of items 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/1525361-invalidateditemindexpaths?language=objc +func (c_ CollectionViewLayoutInvalidationContext) InvalidatedItemIndexPaths() foundation.Set { + rv := objc.Call[foundation.Set](c_, objc.Sel("invalidatedItemIndexPaths")) 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) -} - -// The delta value to add to the collection view’s content offset. [Full Topic] +// A dictionary containing the decoration views whose layout attributes are invalid. [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")) +// [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 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.gen.go b/macos/appkit/collection_view_prefetching.gen.go deleted file mode 100644 index b27b0b72..00000000 --- a/macos/appkit/collection_view_prefetching.gen.go +++ /dev/null @@ -1,33 +0,0 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY - -package appkit - -import ( - "github.com/progrium/macdriver/macos/foundation" - "github.com/progrium/macdriver/objc" -) - -// [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nscollectionviewprefetching?language=objc -type PCollectionViewPrefetching interface { - // optional - CollectionViewPrefetchItemsAtIndexPaths(collectionView CollectionView, indexPaths []foundation.IndexPath) - HasCollectionViewPrefetchItemsAtIndexPaths() bool -} - -// A concrete type wrapper for the [PCollectionViewPrefetching] protocol. -type CollectionViewPrefetchingWrapper struct { - objc.Object -} - -func (c_ CollectionViewPrefetchingWrapper) HasCollectionViewPrefetchItemsAtIndexPaths() bool { - return c_.RespondsToSelector(objc.Sel("collectionView:prefetchItemsAtIndexPaths:")) -} - -// [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nscollectionviewprefetching/2879293-collectionview?language=objc -func (c_ CollectionViewPrefetchingWrapper) CollectionViewPrefetchItemsAtIndexPaths(collectionView ICollectionView, indexPaths []foundation.IIndexPath) { - objc.Call[objc.Void](c_, objc.Sel("collectionView:prefetchItemsAtIndexPaths:"), objc.Ptr(collectionView), indexPaths) -} diff --git a/macos/appkit/collection_view_prefetching_protocol.gen.go b/macos/appkit/collection_view_prefetching_protocol.gen.go new file mode 100644 index 00000000..f36d4127 --- /dev/null +++ b/macos/appkit/collection_view_prefetching_protocol.gen.go @@ -0,0 +1,51 @@ +// Code generated by DarwinKit. DO NOT EDIT. + +package appkit + +import ( + "github.com/progrium/macdriver/macos/foundation" + "github.com/progrium/macdriver/objc" +) + +// [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/appkit/nscollectionviewprefetching?language=objc +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 +var _ PCollectionViewPrefetching = (*CollectionViewPrefetchingObject)(nil) + +// A concrete type for the [PCollectionViewPrefetching] protocol. +type CollectionViewPrefetchingObject struct { + objc.Object +} + +func (c_ CollectionViewPrefetchingObject) HasCollectionViewPrefetchItemsAtIndexPaths() bool { + return c_.RespondsToSelector(objc.Sel("collectionView:prefetchItemsAtIndexPaths:")) +} + +// [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/appkit/nscollectionviewprefetching/2879293-collectionview?language=objc +func (c_ CollectionViewPrefetchingObject) CollectionViewPrefetchItemsAtIndexPaths(collectionView CollectionView, indexPaths []foundation.IndexPath) { + objc.Call[objc.Void](c_, objc.Sel("collectionView:prefetchItemsAtIndexPaths:"), objc.Ptr(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:"), objc.Ptr(collectionView), indexPaths) +} diff --git a/macos/appkit/collection_view_section_header_view.gen.go b/macos/appkit/collection_view_section_header_view_protocol.gen.go similarity index 65% rename from macos/appkit/collection_view_section_header_view.gen.go rename to macos/appkit/collection_view_section_header_view_protocol.gen.go index 175f2d65..f941701c 100644 --- a/macos/appkit/collection_view_section_header_view.gen.go +++ b/macos/appkit/collection_view_section_header_view_protocol.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package appkit @@ -15,34 +15,37 @@ type PCollectionViewSectionHeaderView interface { HasSetSectionCollapseButton() bool // optional - SectionCollapseButton() IButton + SectionCollapseButton() Button HasSectionCollapseButton() bool } -// A concrete type wrapper for the [PCollectionViewSectionHeaderView] protocol. -type CollectionViewSectionHeaderViewWrapper struct { +// ensure impl type implements protocol interface +var _ PCollectionViewSectionHeaderView = (*CollectionViewSectionHeaderViewObject)(nil) + +// A concrete type for the [PCollectionViewSectionHeaderView] protocol. +type CollectionViewSectionHeaderViewObject struct { objc.Object } -func (c_ CollectionViewSectionHeaderViewWrapper) HasSetSectionCollapseButton() bool { +func (c_ CollectionViewSectionHeaderViewObject) HasSetSectionCollapseButton() bool { return c_.RespondsToSelector(objc.Sel("setSectionCollapseButton:")) } // A control that lets users collapse and open a collection view section. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/appkit/nscollectionviewsectionheaderview/1644266-sectioncollapsebutton?language=objc -func (c_ CollectionViewSectionHeaderViewWrapper) SetSectionCollapseButton(value IButton) { +func (c_ CollectionViewSectionHeaderViewObject) SetSectionCollapseButton(value Button) { objc.Call[objc.Void](c_, objc.Sel("setSectionCollapseButton:"), objc.Ptr(value)) } -func (c_ CollectionViewSectionHeaderViewWrapper) HasSectionCollapseButton() bool { +func (c_ CollectionViewSectionHeaderViewObject) HasSectionCollapseButton() bool { return c_.RespondsToSelector(objc.Sel("sectionCollapseButton")) } // A control that lets users collapse and open a collection view section. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/appkit/nscollectionviewsectionheaderview/1644266-sectioncollapsebutton?language=objc -func (c_ CollectionViewSectionHeaderViewWrapper) SectionCollapseButton() Button { +func (c_ CollectionViewSectionHeaderViewObject) SectionCollapseButton() Button { rv := objc.Call[Button](c_, objc.Sel("sectionCollapseButton")) return rv } diff --git a/macos/appkit/collection_view_transition_layout.gen.go b/macos/appkit/collection_view_transition_layout.gen.go index a9893e94..36f9e66f 100644 --- a/macos/appkit/collection_view_transition_layout.gen.go +++ b/macos/appkit/collection_view_transition_layout.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package appkit @@ -18,12 +18,12 @@ type _CollectionViewTransitionLayoutClass struct { // An interface definition for the [CollectionViewTransitionLayout] class. type ICollectionViewTransitionLayout interface { ICollectionViewLayout - ValueForAnimatedKey(key CollectionViewTransitionLayoutAnimatedKey) float64 UpdateValueForAnimatedKey(value float64, key CollectionViewTransitionLayoutAnimatedKey) - CurrentLayout() CollectionViewLayout + ValueForAnimatedKey(key CollectionViewTransitionLayoutAnimatedKey) float64 + NextLayout() CollectionViewLayout TransitionProgress() float64 SetTransitionProgress(value float64) - NextLayout() CollectionViewLayout + CurrentLayout() CollectionViewLayout } // An object that implements custom behaviors when changing from one layout to another in a collection view. [Full Topic] @@ -58,10 +58,6 @@ func (cc _CollectionViewTransitionLayoutClass) Alloc() CollectionViewTransitionL return rv } -func CollectionViewTransitionLayout_Alloc() CollectionViewTransitionLayout { - return CollectionViewTransitionLayoutClass.Alloc() -} - func (cc _CollectionViewTransitionLayoutClass) New() CollectionViewTransitionLayout { rv := objc.Call[CollectionViewTransitionLayout](cc, objc.Sel("new")) rv.Autorelease() @@ -77,6 +73,13 @@ 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 @@ -85,18 +88,11 @@ func (c_ CollectionViewTransitionLayout) ValueForAnimatedKey(key CollectionViewT 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) -} - -// 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 } @@ -115,10 +111,10 @@ func (c_ CollectionViewTransitionLayout) SetTransitionProgress(value float64) { objc.Call[objc.Void](c_, objc.Sel("setTransitionProgress:"), value) } -// The collection view’s new layout object. [Full Topic] +// The collection view’s current layout object. [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/1524425-currentlayout?language=objc +func (c_ CollectionViewTransitionLayout) CurrentLayout() CollectionViewLayout { + rv := objc.Call[CollectionViewLayout](c_, objc.Sel("currentLayout")) return rv } diff --git a/macos/appkit/collection_view_update_item.gen.go b/macos/appkit/collection_view_update_item.gen.go index 4ce5e563..ffcdec76 100644 --- a/macos/appkit/collection_view_update_item.gen.go +++ b/macos/appkit/collection_view_update_item.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package appkit @@ -20,8 +20,8 @@ type _CollectionViewUpdateItemClass struct { type ICollectionViewUpdateItem interface { objc.IObject UpdateAction() CollectionUpdateAction - IndexPathBeforeUpdate() foundation.IndexPath IndexPathAfterUpdate() foundation.IndexPath + IndexPathBeforeUpdate() foundation.IndexPath } // A description of a single change to make to an item in a collection view. [Full Topic] @@ -42,10 +42,6 @@ func (cc _CollectionViewUpdateItemClass) Alloc() CollectionViewUpdateItem { return rv } -func CollectionViewUpdateItem_Alloc() CollectionViewUpdateItem { - return CollectionViewUpdateItemClass.Alloc() -} - func (cc _CollectionViewUpdateItemClass) New() CollectionViewUpdateItem { rv := objc.Call[CollectionViewUpdateItem](cc, objc.Sel("new")) rv.Autorelease() @@ -69,14 +65,6 @@ func (c_ CollectionViewUpdateItem) UpdateAction() CollectionUpdateAction { 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 -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 @@ -84,3 +72,11 @@ 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 +func (c_ CollectionViewUpdateItem) IndexPathBeforeUpdate() foundation.IndexPath { + rv := objc.Call[foundation.IndexPath](c_, objc.Sel("indexPathBeforeUpdate")) + return rv +} diff --git a/macos/appkit/color.gen.go b/macos/appkit/color.gen.go index bf2e86b9..b70c8d2c 100644 --- a/macos/appkit/color.gen.go +++ b/macos/appkit/color.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package appkit @@ -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 - GreenComponent() float64 - BlackComponent() float64 - LocalizedColorNameComponent() string + 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 YellowComponent() float64 - PatternImage() Image - HueComponent() float64 + CGColor() coregraphics.ColorRef + Type() ColorType ColorNameComponent() ColorName - RedComponent() float64 - ColorSpace() ColorSpace + HueComponent() float64 + NumberOfComponents() int 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 - CGColor() coregraphics.ColorRef + PatternImage() Image + SaturationComponent() float64 + ColorSpace() ColorSpace + MagentaComponent() float64 + GreenComponent() float64 } // An object that stores color data and sometimes opacity (alpha value). [Full Topic] @@ -84,10 +84,6 @@ func (cc _ColorClass) Alloc() Color { return rv } -func Color_Alloc() Color { - return ColorClass.Alloc() -} - func (cc _ColorClass) New() Color { rv := objc.Call[Color](cc, objc.Sel("new")) rv.Autorelease() @@ -98,36 +94,6 @@ 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 @@ -135,43 +101,11 @@ func (c_ Color) WriteToPasteboard(pasteBoard IPasteboard) { objc.Call[objc.Void](c_, objc.Sel("writeToPasteboard:"), objc.Ptr(pasteBoard)) } -// 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 (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] +// 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/1524689-blendedcolorwithfraction?language=objc -func (c_ Color) BlendedColorWithFractionOfColor(fraction float64, color IColor) Color { - rv := objc.Call[Color](c_, objc.Sel("blendedColorWithFraction:ofColor:"), fraction, objc.Ptr(color)) - return rv +// [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 color object with the specified hue, saturation, brightness, and alpha channel values. [Full Topic] @@ -189,48 +123,41 @@ func Color_ColorWithHueSaturationBrightnessAlpha(hue float64, saturation float64 return ColorClass.ColorWithHueSaturationBrightnessAlpha(hue, saturation, brightness, alpha) } -// Creates a color object using the given opacity and RGB components. [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) - return rv -} - -// Creates a color object using the given opacity and RGB components. [Full Topic] +// Returns the grayscale and alpha values of the color. [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/1532613-getwhite?language=objc +func (c_ Color) GetWhiteAlpha(white *float64, alpha *float64) { + objc.Call[objc.Void](c_, objc.Sel("getWhite:alpha:"), white, alpha) } -// Returns the color object’s RGB component and opacity values in the respective arguments. [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/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/1533061-highlightwithlevel?language=objc +func (c_ Color) HighlightWithLevel(val float64) Color { + rv := objc.Call[Color](c_, objc.Sel("highlightWithLevel:"), val) + return rv } -// Returns the color object’s CMYK and opacity values. [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/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/1524755-setfill?language=objc +func (c_ Color) SetFill() { + objc.Call[objc.Void](c_, objc.Sel("setFill")) } -// Creates a dynamic catalog color with a provider that’s used to resolve the exact color value, calculated on first use. [Full Topic] +// 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/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) +// [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 dynamic catalog color with a provider that’s used to resolve the exact color value, calculated on first use. [Full Topic] +// Draws the current color in the specified rectangle. [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) +// [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 using the given opacity value and HSB color space components. [Full Topic] @@ -248,49 +175,6 @@ 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 @@ -306,6 +190,21 @@ 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:"), objc.Ptr(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 @@ -321,102 +220,109 @@ func Color_ColorWithSRGBRedGreenBlueAlpha(red float64, green float64, blue float return ColorClass.ColorWithSRGBRedGreenBlueAlpha(red, green, blue, alpha) } -// Creates a color object with the specified color space, hue, saturation, brightness, and alpha channel values. [Full Topic] +// Creates a color object using the specified Core Graphics color. [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:"), objc.Ptr(space), hue, saturation, brightness, alpha) +// [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 with the specified color space, hue, saturation, brightness, and alpha channel values. [Full Topic] +// Creates a color object using the specified Core Graphics color. [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) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nscolor/1524265-colorwithcgcolor?language=objc +func Color_ColorWithCGColor(cgColor coregraphics.ColorRef) Color { + return ColorClass.ColorWithCGColor(cgColor) } -// Creates a color object using the specified asset catalog and color names. [Full Topic] +// Creates a color object from the specified components of the given color space. [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/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:"), objc.Ptr(space), components, numberOfComponents) return rv } -// Creates a color object using the specified asset catalog and color names. [Full Topic] +// Creates a color object from the specified components of the given color space. [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/1533762-colorwithcolorspace?language=objc +func Color_ColorWithColorSpaceComponentsCount(space IColorSpace, components *float64, numberOfComponents int) Color { + return ColorClass.ColorWithColorSpaceComponentsCount(space, components, numberOfComponents) } -// Creates a new color object that represents a blend between the current color and the highlight color. [Full Topic] +// 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/1533061-highlightwithlevel?language=objc -func (c_ Color) HighlightWithLevel(val float64) Color { - rv := objc.Call[Color](c_, objc.Sel("highlightWithLevel:"), val) +// [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, objc.Ptr(color)) return rv } -// 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] +// Sets the stroke color of subsequent drawing to the color object’s color. [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) - return rv +// [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")) } -// Creates a color object with the specified red, green, blue, and alpha channel values. [Full Topic] +// Creates a color object using the given opacity 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/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 color object with the specified red, green, blue, and alpha channel values. [Full Topic] +// Creates a color object using the given opacity 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/1526323-colorwithcalibratedred?language=objc +func Color_ColorWithCalibratedRedGreenBlueAlpha(red float64, green float64, blue float64, alpha float64) Color { + return ColorClass.ColorWithCalibratedRedGreenBlueAlpha(red, green, blue, alpha) } -// Creates a color object that uses the specified image pattern to paint the target area. [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/1527422-colorwithpatternimage?language=objc -func (cc _ColorClass) ColorWithPatternImage(image IImage) Color { - rv := objc.Call[Color](cc, objc.Sel("colorWithPatternImage:"), objc.Ptr(image)) +// [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 that uses the specified image pattern to paint the target area. [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/1527422-colorwithpatternimage?language=objc -func Color_ColorWithPatternImage(image IImage) Color { - return ColorClass.ColorWithPatternImage(image) +// [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) } -// Sets the fill color of subsequent drawing to the color object’s color. [Full Topic] +// Creates a color object from the provided name, which corresponds to a color in the default asset catalog of the specified bundle. [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/2876294-colornamed?language=objc +func (cc _ColorClass) ColorNamedBundle(name ColorName, bundle foundation.IBundle) Color { + rv := objc.Call[Color](cc, objc.Sel("colorNamed:bundle:"), name, objc.Ptr(bundle)) + return rv } -// Creates a color object from the specified Core Image color. [Full Topic] +// Creates a color object from the provided name, which corresponds to a color in the default asset catalog of the specified bundle. [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:"), objc.Ptr(color)) +// [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) +} + +// Creates a color object using the given opacity and grayscale values. [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) return rv } -// Creates a color object from the specified Core Image color. [Full Topic] +// Creates a color object using the given opacity and grayscale values. [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) +// [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 using the given opacity and HSB color space components. [Full Topic] @@ -434,11 +340,34 @@ func Color_ColorWithCalibratedHueSaturationBrightnessAlpha(hue float64, saturati return ColorClass.ColorWithCalibratedHueSaturationBrightnessAlpha(hue, saturation, brightness, alpha) } -// Returns the color object’s HSB component and opacity values in the respective arguments. [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/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) +// [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] +// +// [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) } // Creates a color object using the given opacity and grayscale values. [Full Topic] @@ -456,6 +385,21 @@ 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:"), objc.Ptr(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 @@ -471,34 +415,56 @@ func Color_ColorWithGenericGamma22WhiteAlpha(white float64, alpha float64) Color return ColorClass.ColorWithGenericGamma22WhiteAlpha(white, alpha) } -// Creates a color object from the specified components in the Display P3 color space. [Full Topic] +// Creates a color object from the specified Core Image color. [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/1525446-colorwithcicolor?language=objc +func (cc _ColorClass) ColorWithCIColor(color coreimage.IColor) Color { + rv := objc.Call[Color](cc, objc.Sel("colorWithCIColor:"), objc.Ptr(color)) return rv } -// Creates a color object from the specified components in the Display P3 color space. [Full Topic] +// Creates a color object from the specified Core Image color. [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/1525446-colorwithcicolor?language=objc +func Color_ColorWithCIColor(color coreimage.IColor) Color { + return ColorClass.ColorWithCIColor(color) } -// Creates a color object using the given opacity value 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/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) +// [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 value and RGB components. [Full Topic] +// 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/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/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] +// +// [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 color object with the specified red, green, blue, and alpha channel values. [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) + return rv +} + +// 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/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 CMYK components. [Full Topic] @@ -516,240 +482,271 @@ func Color_ColorWithDeviceCyanMagentaYellowBlackAlpha(cyan float64, magenta floa return ColorClass.ColorWithDeviceCyanMagentaYellowBlackAlpha(cyan, magenta, yellow, black, alpha) } -// Creates a new color object representing the color of the current color object in the specified color space. [Full Topic] +// Creates a color object with the specified brightness and alpha channel values. [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:"), objc.Ptr(space)) +// [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 using the given opacity and grayscale values. [Full Topic] +// Creates a color object with the specified brightness and alpha channel values. [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/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] +// +// [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 } -// Creates a color object using the given opacity and grayscale 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/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/1644633-colorwithdisplayp3red?language=objc +func Color_ColorWithDisplayP3RedGreenBlueAlpha(red float64, green float64, blue float64, alpha float64) Color { + return ColorClass.ColorWithDisplayP3RedGreenBlueAlpha(red, green, blue, alpha) } -// Returns a color object whose grayscale value is 2/3 and whose alpha value is 1.0. [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/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/2876295-colornamed?language=objc +func (cc _ColorClass) ColorNamed(name ColorName) Color { + rv := objc.Call[Color](cc, objc.Sel("colorNamed:"), name) return rv } -// Returns a color object whose grayscale value is 2/3 and whose alpha value is 1.0. [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/1535184-lightgraycolor?language=objc -func Color_LightGrayColor() Color { - return ColorClass.LightGrayColor() +// [Full Topic]: https://developer.apple.com/documentation/appkit/nscolor/2876295-colornamed?language=objc +func Color_ColorNamed(name ColorName) Color { + return ColorClass.ColorNamed(name) } -// The color to use for the background of large controls, such as scroll views or table views. [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/1531948-controlbackgroundcolor?language=objc -func (cc _ColorClass) ControlBackgroundColor() Color { - rv := objc.Call[Color](cc, objc.Sel("controlBackgroundColor")) +// [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 } -// The color to use for the background of large controls, such as scroll views or table views. [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/1531948-controlbackgroundcolor?language=objc -func Color_ControlBackgroundColor() Color { - return ColorClass.ControlBackgroundColor() +// [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) } -// The green component value of the color. [Full Topic] +// 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/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/2998826-colorwithsystemeffect?language=objc +func (c_ Color) ColorWithSystemEffect(systemEffect ColorSystemEffect) Color { + rv := objc.Call[Color](c_, objc.Sel("colorWithSystemEffect:"), systemEffect) return rv } -// Returns a color object whose grayscale and alpha values are both 1.0. [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/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/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:"), objc.Ptr(space), hue, saturation, brightness, alpha) return rv } -// Returns a color object whose grayscale and alpha values are both 1.0. [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/1526370-whitecolor?language=objc -func Color_WhiteColor() Color { - return ColorClass.WhiteColor() +// [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) } -// 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 (cc _ColorClass) MagentaColor() Color { - rv := objc.Call[Color](cc, objc.Sel("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 } -// Returns a color object whose RGB value is 1.0, 0.0, 1.0 and whose alpha value is 1.0. [Full Topic] +// The Core Graphics color object corresponding to 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/1527738-cgcolor?language=objc +func (c_ Color) CGColor() coregraphics.ColorRef { + rv := objc.Call[coregraphics.ColorRef](c_, objc.Sel("CGColor")) + 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] +// The color to use for the window background. [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")) +// [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 } -// 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 color to use for the window background. [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/1528630-windowbackgroundcolor?language=objc +func Color_WindowBackgroundColor() Color { + return ColorClass.WindowBackgroundColor() } -// The black component value of the color. [Full Topic] +// The type of the color object. [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")) +// [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 localized version of the color name. [Full Topic] +// The name of the color. [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")) +// [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 } -// The yellow component value of the color. [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/1531965-yellowcomponent?language=objc -func (c_ Color) YellowComponent() float64 { - rv := objc.Call[float64](c_, objc.Sel("yellowComponent")) +// [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 } -// The current system control tint color. [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/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/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] +// +// [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 current system control tint color. [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/1526377-currentcontroltint?language=objc -func Color_CurrentControlTint() ControlTint { - return ColorClass.CurrentControlTint() +// [Full Topic]: https://developer.apple.com/documentation/appkit/nscolor/1529883-magentacolor?language=objc +func Color_MagentaColor() Color { + return ColorClass.MagentaColor() } -// The color to use for the window background. [Full Topic] +// The hue component value of the color. [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/1531780-huecomponent?language=objc +func (c_ Color) HueComponent() float64 { + rv := objc.Call[float64](c_, objc.Sel("hueComponent")) return rv } -// The color to use for the window background. [Full Topic] +// The number of components in the color. [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/1531308-numberofcomponents?language=objc +func (c_ Color) NumberOfComponents() int { + rv := objc.Call[int](c_, objc.Sel("numberOfComponents")) + return rv } -// The pattern image used to paint the target area. [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/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/1535184-lightgraycolor?language=objc +func (cc _ColorClass) LightGrayColor() Color { + rv := objc.Call[Color](cc, objc.Sel("lightGrayColor")) return rv } -// The color to use as a virtual light source on the screen. [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/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/1535184-lightgraycolor?language=objc +func Color_LightGrayColor() Color { + return ColorClass.LightGrayColor() +} + +// 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 color to use as a virtual light source on the screen. [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/1527697-highlightcolor?language=objc -func Color_HighlightColor() Color { - return ColorClass.HighlightColor() +// [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 secondary color to use for text labels. [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/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/1535591-selectedcontroltextcolor?language=objc +func Color_SelectedControlTextColor() Color { + return ColorClass.SelectedControlTextColor() +} + +// 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/2879259-systempurplecolor?language=objc +func (cc _ColorClass) SystemPurpleColor() Color { + rv := objc.Call[Color](cc, objc.Sel("systemPurpleColor")) return rv } -// The secondary color to use for text labels. [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/1533254-secondarylabelcolor?language=objc -func Color_SecondaryLabelColor() Color { - return ColorClass.SecondaryLabelColor() +// [Full Topic]: https://developer.apple.com/documentation/appkit/nscolor/2879259-systempurplecolor?language=objc +func Color_SystemPurpleColor() Color { + return ColorClass.SystemPurpleColor() } -// The hue component value of the color. [Full Topic] +// The brightness component value of the 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/1529355-brightnesscomponent?language=objc +func (c_ Color) BrightnessComponent() float64 { + rv := objc.Call[float64](c_, objc.Sel("brightnessComponent")) return rv } -// The color to use for text in a selected control. [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/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/2998829-placeholdertextcolor?language=objc +func (cc _ColorClass) PlaceholderTextColor() Color { + rv := objc.Call[Color](cc, objc.Sel("placeholderTextColor")) return rv } -// The color to use for text in a selected control. [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/1527413-alternateselectedcontroltextcolo?language=objc -func Color_AlternateSelectedControlTextColor() Color { - return ColorClass.AlternateSelectedControlTextColor() +// [Full Topic]: https://developer.apple.com/documentation/appkit/nscolor/2998829-placeholdertextcolor?language=objc +func Color_PlaceholderTextColor() Color { + return ColorClass.PlaceholderTextColor() } -// The patterned color to use for the background of a scrubber control. [Full Topic] +// The color to use for text. [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/1527025-textcolor?language=objc +func (cc _ColorClass) TextColor() Color { + rv := objc.Call[Color](cc, objc.Sel("textColor")) return rv } -// The patterned color to use for the background of a scrubber control. [Full Topic] +// The color to use for text. [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/1527025-textcolor?language=objc +func Color_TextColor() Color { + return ColorClass.TextColor() } // Returns a color object whose grayscale value is 0.0 and whose alpha value is 1.0. [Full Topic] @@ -767,132 +764,125 @@ func Color_BlackColor() Color { return ColorClass.BlackColor() } -// The name of the color. [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 -} - -// The highlight color to use for the bubble that shows inline search result values. [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/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/2879266-systembrowncolor?language=objc +func (cc _ColorClass) SystemBrownColor() Color { + rv := objc.Call[Color](cc, objc.Sel("systemBrownColor")) return rv } -// The highlight color to use for the bubble that shows inline search result values. [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/2998827-findhighlightcolor?language=objc -func Color_FindHighlightColor() Color { - return ColorClass.FindHighlightColor() +// [Full Topic]: https://developer.apple.com/documentation/appkit/nscolor/2879266-systembrowncolor?language=objc +func Color_SystemBrownColor() Color { + return ColorClass.SystemBrownColor() } -// The color to use for selected text in an unemphasized context. [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/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/2879260-systembluecolor?language=objc +func (cc _ColorClass) SystemBlueColor() Color { + rv := objc.Call[Color](cc, objc.Sel("systemBlueColor")) return rv } -// The color to use for selected text in an unemphasized context. [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/2998834-unemphasizedselectedtextcolor?language=objc -func Color_UnemphasizedSelectedTextColor() Color { - return ColorClass.UnemphasizedSelectedTextColor() +// [Full Topic]: https://developer.apple.com/documentation/appkit/nscolor/2879260-systembluecolor?language=objc +func Color_SystemBlueColor() Color { + return ColorClass.SystemBlueColor() } -// Returns a color object whose grayscale value is 0.5 and whose alpha value is 1.0. [Full Topic] +// The alpha (opacity) component value of the color. [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/1532504-alphacomponent?language=objc +func (c_ Color) AlphaComponent() float64 { + rv := objc.Call[float64](c_, objc.Sel("alphaComponent")) return rv } -// Returns a color object whose grayscale value is 0.5 and whose alpha value is 1.0. [Full Topic] +// The tertiary color to use for text labels. [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/1532376-tertiarylabelcolor?language=objc +func (cc _ColorClass) TertiaryLabelColor() Color { + rv := objc.Call[Color](cc, objc.Sel("tertiaryLabelColor")) + return rv } -// Returns a color object for pink 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/2879261-systempinkcolor?language=objc -func (cc _ColorClass) SystemPinkColor() Color { - rv := objc.Call[Color](cc, objc.Sel("systemPinkColor")) - return rv +// [Full Topic]: https://developer.apple.com/documentation/appkit/nscolor/1532376-tertiarylabelcolor?language=objc +func Color_TertiaryLabelColor() Color { + return ColorClass.TertiaryLabelColor() } -// Returns a color object for pink that automatically adapts to vibrancy and accessibility settings. [Full Topic] +// The black component value of the color. [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/1526883-blackcomponent?language=objc +func (c_ Color) BlackComponent() float64 { + rv := objc.Call[float64](c_, objc.Sel("blackComponent")) + return rv } -// Returns a color object for purple that automatically adapts to vibrancy and accessibility settings. [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/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/3174920-systemindigocolor?language=objc +func (cc _ColorClass) SystemIndigoColor() Color { + rv := objc.Call[Color](cc, objc.Sel("systemIndigoColor")) return rv } -// Returns a color object for purple that automatically adapts to vibrancy and accessibility settings. [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/2879259-systempurplecolor?language=objc -func Color_SystemPurpleColor() Color { - return ColorClass.SystemPurpleColor() +// [Full Topic]: https://developer.apple.com/documentation/appkit/nscolor/3174920-systemindigocolor?language=objc +func Color_SystemIndigoColor() Color { + return ColorClass.SystemIndigoColor() } -// Returns a color object for green that automatically adapts to vibrancy and accessibility settings. [Full Topic] +// The current system control tint color. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nscolor/2879264-systemgreencolor?language=objc -func (cc _ColorClass) SystemGreenColor() Color { - rv := objc.Call[Color](cc, objc.Sel("systemGreenColor")) +// [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 } -// Returns a color object for green that automatically adapts to vibrancy and accessibility settings. [Full Topic] +// The current system control tint color. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nscolor/2879264-systemgreencolor?language=objc -func Color_SystemGreenColor() Color { - return ColorClass.SystemGreenColor() +// [Full Topic]: https://developer.apple.com/documentation/appkit/nscolor/1526377-currentcontroltint?language=objc +func Color_CurrentControlTint() ControlTint { + return ColorClass.CurrentControlTint() } -// The color to use for placeholder text in controls or text 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/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/1527433-greencolor?language=objc +func (cc _ColorClass) GreenColor() Color { + rv := objc.Call[Color](cc, objc.Sel("greenColor")) return rv } -// The color to use for placeholder text in controls or text 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/2998829-placeholdertextcolor?language=objc -func Color_PlaceholderTextColor() Color { - return ColorClass.PlaceholderTextColor() +// [Full Topic]: https://developer.apple.com/documentation/appkit/nscolor/1527433-greencolor?language=objc +func Color_GreenColor() Color { + return ColorClass.GreenColor() } -// The user's current accent color preference. [Full Topic] +// Returns a color object for green that automatically adapts to vibrancy and accessibility settings. [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")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nscolor/2879264-systemgreencolor?language=objc +func (cc _ColorClass) SystemGreenColor() Color { + rv := objc.Call[Color](cc, objc.Sel("systemGreenColor")) return rv } -// The user's current accent color preference. [Full Topic] +// Returns a color object for green that automatically adapts to vibrancy and accessibility settings. [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/2879264-systemgreencolor?language=objc +func Color_SystemGreenColor() Color { + return ColorClass.SystemGreenColor() } // Returns a color object for yellow that automatically adapts to vibrancy and accessibility settings. [Full Topic] @@ -910,49 +900,50 @@ func Color_SystemYellowColor() Color { return ColorClass.SystemYellowColor() } -// Returns a color object whose grayscale and alpha values are both 0.0. [Full Topic] +// The color to use for text in a window's frame. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nscolor/1527217-clearcolor?language=objc -func (cc _ColorClass) ClearColor() Color { - rv := objc.Call[Color](cc, objc.Sel("clearColor")) +// [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 } -// Returns a color object whose grayscale and alpha values are both 0.0. [Full Topic] +// The color to use for text in a window's frame. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nscolor/1527217-clearcolor?language=objc -func Color_ClearColor() Color { - return ColorClass.ClearColor() +// [Full Topic]: https://developer.apple.com/documentation/appkit/nscolor/1524257-windowframetextcolor?language=objc +func Color_WindowFrameTextColor() Color { + return ColorClass.WindowFrameTextColor() } -// Returns a color object whose RGB value is 0.0, 1.0, 0.0 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/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/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.0, 1.0, 0.0 and whose alpha value is 1.0. [Full Topic] +// The localized version of the catalog name containing the color. [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/1535351-localizedcatalognamecomponent?language=objc +func (c_ Color) LocalizedCatalogNameComponent() string { + rv := objc.Call[string](c_, objc.Sel("localizedCatalogNameComponent")) + return rv } -// The color to use for separators between different sections of content. [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/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/1526370-whitecolor?language=objc +func (cc _ColorClass) WhiteColor() Color { + rv := objc.Call[Color](cc, objc.Sel("whiteColor")) return rv } -// The color to use for separators between different sections of content. [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/2998831-separatorcolor?language=objc -func Color_SeparatorColor() Color { - return ColorClass.SeparatorColor() +// [Full Topic]: https://developer.apple.com/documentation/appkit/nscolor/1526370-whitecolor?language=objc +func Color_WhiteColor() Color { + return ColorClass.WhiteColor() } // Returns a color object whose RGB value is 1.0, 1.0, 0.0 and whose alpha value is 1.0. [Full Topic] @@ -970,291 +961,314 @@ func Color_YellowColor() Color { return ColorClass.YellowColor() } -// The tertiary color to use for text labels. [Full Topic] +// Returns a color object whose grayscale and alpha values are both 0.0. [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/1527217-clearcolor?language=objc +func (cc _ColorClass) ClearColor() Color { + rv := objc.Call[Color](cc, objc.Sel("clearColor")) return rv } -// The tertiary color to use for text labels. [Full Topic] +// Returns a color object whose grayscale and alpha values are both 0.0. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nscolor/1532376-tertiarylabelcolor?language=objc -func Color_TertiaryLabelColor() Color { - return ColorClass.TertiaryLabelColor() +// [Full Topic]: https://developer.apple.com/documentation/appkit/nscolor/1527217-clearcolor?language=objc +func Color_ClearColor() Color { + return ColorClass.ClearColor() } -// The color to use for text on disabled controls. [Full Topic] +// The localized version of the color name. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nscolor/1530573-disabledcontroltextcolor?language=objc -func (cc _ColorClass) DisabledControlTextColor() Color { - rv := objc.Call[Color](cc, objc.Sel("disabledControlTextColor")) +// [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 color to use for text on disabled controls. [Full Topic] +// The blue component value of the color. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nscolor/1530573-disabledcontroltextcolor?language=objc -func Color_DisabledControlTextColor() Color { - return ColorClass.DisabledControlTextColor() +// [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 } -// Returns a color object whose RGB value is 0.5, 0.0, 0.5 and whose alpha value is 1.0. [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/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/1531237-headertextcolor?language=objc +func (cc _ColorClass) HeaderTextColor() Color { + rv := objc.Call[Color](cc, objc.Sel("headerTextColor")) 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 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/1526713-purplecolor?language=objc -func Color_PurpleColor() Color { - return ColorClass.PurpleColor() +// [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 the flat surfaces of a control. [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/1524856-controlcolor?language=objc +func (cc _ColorClass) ControlColor() Color { + rv := objc.Call[Color](cc, objc.Sel("controlColor")) 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 the flat surfaces of a control. [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/1524856-controlcolor?language=objc +func Color_ControlColor() Color { + return ColorClass.ControlColor() +} + +// 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/1535307-graycolor?language=objc +func (cc _ColorClass) GrayColor() Color { + rv := objc.Call[Color](cc, objc.Sel("grayColor")) 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] +// 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/1534013-browncolor?language=objc -func Color_BrownColor() Color { - return ColorClass.BrownColor() +// [Full Topic]: https://developer.apple.com/documentation/appkit/nscolor/1535307-graycolor?language=objc +func Color_GrayColor() Color { + return ColorClass.GrayColor() } -// The color to use for text in header cells in table views and outline 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/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/3174921-systemtealcolor?language=objc +func (cc _ColorClass) SystemTealColor() Color { + rv := objc.Call[Color](cc, objc.Sel("systemTealColor")) return rv } -// The color to use for text in header cells in table views and outline 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/1531237-headertextcolor?language=objc -func Color_HeaderTextColor() Color { - return ColorClass.HeaderTextColor() +// [Full Topic]: https://developer.apple.com/documentation/appkit/nscolor/3174921-systemtealcolor?language=objc +func Color_SystemTealColor() Color { + return ColorClass.SystemTealColor() } -// The color to use for selected and unemphasized content. [Full Topic] +// The color to use for text on disabled controls. [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/1530573-disabledcontroltextcolor?language=objc +func (cc _ColorClass) DisabledControlTextColor() Color { + rv := objc.Call[Color](cc, objc.Sel("disabledControlTextColor")) return rv } -// The color to use for selected and unemphasized content. [Full Topic] +// The color to use for text on disabled controls. [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/1530573-disabledcontroltextcolor?language=objc +func Color_DisabledControlTextColor() Color { + return ColorClass.DisabledControlTextColor() } -// Returns a color object whose grayscale value is 1/3 and whose alpha value is 1.0. [Full Topic] +// The quaternary color to use for text labels and separators. [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/1534635-quaternarylabelcolor?language=objc +func (cc _ColorClass) QuaternaryLabelColor() Color { + rv := objc.Call[Color](cc, objc.Sel("quaternaryLabelColor")) return rv } -// Returns a color object whose grayscale value is 1/3 and whose alpha value is 1.0. [Full Topic] +// The quaternary color to use for text labels and separators. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nscolor/1533739-darkgraycolor?language=objc -func Color_DarkGrayColor() Color { - return ColorClass.DarkGrayColor() +// [Full Topic]: https://developer.apple.com/documentation/appkit/nscolor/1534635-quaternarylabelcolor?language=objc +func Color_QuaternaryLabelColor() Color { + return ColorClass.QuaternaryLabelColor() } -// Returns a color object for gray that automatically adapts to vibrancy and accessibility settings. [Full Topic] +// The color to use for the text in menu items. [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/1526658-selectedmenuitemtextcolor?language=objc +func (cc _ColorClass) SelectedMenuItemTextColor() Color { + rv := objc.Call[Color](cc, objc.Sel("selectedMenuItemTextColor")) return rv } -// Returns a color object for gray that automatically adapts to vibrancy and accessibility settings. [Full Topic] +// The color to use for the text in menu items. [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/1526658-selectedmenuitemtextcolor?language=objc +func Color_SelectedMenuItemTextColor() Color { + return ColorClass.SelectedMenuItemTextColor() } -// The color space associated with the color. [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/1526733-colorspace?language=objc -func (c_ Color) ColorSpace() ColorSpace { - rv := objc.Call[ColorSpace](c_, objc.Sel("colorSpace")) +// [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 } -// Returns a color object for brown that automatically adapts to vibrancy and accessibility settings. [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/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/1527697-highlightcolor?language=objc +func Color_HighlightColor() Color { + return ColorClass.HighlightColor() +} + +// The red component value of the color. [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")) return rv } -// Returns a color object for brown 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/2879266-systembrowncolor?language=objc -func Color_SystemBrownColor() Color { - return ColorClass.SystemBrownColor() +// [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 } -// The white component value of the color. [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/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/3816006-systemmintcolor?language=objc +func Color_SystemMintColor() Color { + return ColorClass.SystemMintColor() +} + +// 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/2998827-findhighlightcolor?language=objc +func (cc _ColorClass) FindHighlightColor() Color { + rv := objc.Call[Color](cc, objc.Sel("findHighlightColor")) return rv } -// The color to use for the text background in an unemphasized context. [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/2998833-unemphasizedselectedtextbackgrou?language=objc -func (cc _ColorClass) UnemphasizedSelectedTextBackgroundColor() Color { - rv := objc.Call[Color](cc, objc.Sel("unemphasizedSelectedTextBackgroundColor")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nscolor/2998827-findhighlightcolor?language=objc +func Color_FindHighlightColor() Color { + return ColorClass.FindHighlightColor() +} + +// The secondary color to use for text labels. [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")) return rv } -// The color to use for the text background in an unemphasized context. [Full Topic] +// The secondary color to use for text labels. [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/1533254-secondarylabelcolor?language=objc +func Color_SecondaryLabelColor() Color { + return ColorClass.SecondaryLabelColor() } -// Returns a color object for red that automatically adapts to vibrancy and accessibility settings. [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/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/2646931-scrubbertexturedbackgroundcolor?language=objc +func (cc _ColorClass) ScrubberTexturedBackgroundColor() Color { + rv := objc.Call[Color](cc, objc.Sel("scrubberTexturedBackgroundColor")) return rv } -// Returns a color object for red that automatically adapts to vibrancy and accessibility settings. [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/2879262-systemredcolor?language=objc -func Color_SystemRedColor() Color { - return ColorClass.SystemRedColor() +// [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 RGB value is 1.0, 0.0, 0.0 and whose alpha value is 1.0. [Full Topic] +// The color to use for text in a selected control. [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/1527413-alternateselectedcontroltextcolo?language=objc +func (cc _ColorClass) AlternateSelectedControlTextColor() Color { + rv := objc.Call[Color](cc, objc.Sel("alternateSelectedControlTextColor")) 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] +// The color to use for text in a selected control. [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/1527413-alternateselectedcontroltextcolo?language=objc +func Color_AlternateSelectedControlTextColor() Color { + return ColorClass.AlternateSelectedControlTextColor() } -// The color to use for text in a window's frame. [Full Topic] +// The color to use for the background area behind text. [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")) +// [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 } -// The color to use for text in a window's frame. [Full Topic] +// The color to use for the background area behind text. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nscolor/1524257-windowframetextcolor?language=objc -func Color_WindowFrameTextColor() Color { - return ColorClass.WindowFrameTextColor() +// [Full Topic]: https://developer.apple.com/documentation/appkit/nscolor/1535446-textbackgroundcolor?language=objc +func Color_TextBackgroundColor() Color { + return ColorClass.TextBackgroundColor() } -// The brightness component value of the color. [Full Topic] +// The catalog containing the color’s name. [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/1535443-catalognamecomponent?language=objc +func (c_ Color) CatalogNameComponent() ColorListName { + rv := objc.Call[ColorListName](c_, objc.Sel("catalogNameComponent")) return rv } -// The color to use for the background of selected text. [Full Topic] +// The color to use for separators between different sections of content. [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/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 background of selected text. [Full Topic] +// The color to use for separators between different sections of content. [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/2998831-separatorcolor?language=objc +func Color_SeparatorColor() Color { + return ColorClass.SeparatorColor() } -// Returns a color object for teal that automatically adapts to vibrancy and accessibility settings. [Full Topic] +// The pattern image used to paint the target area. [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/1531572-patternimage?language=objc +func (c_ Color) PatternImage() Image { + rv := objc.Call[Image](c_, objc.Sel("patternImage")) return rv } -// 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/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] +// 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/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/2998825-alternatingcontentbackgroundcolo?language=objc +func (cc _ColorClass) AlternatingContentBackgroundColors() []Color { + rv := objc.Call[[]Color](cc, objc.Sel("alternatingContentBackgroundColors")) 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] +// 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/1529217-cyancolor?language=objc -func Color_CyanColor() Color { - return ColorClass.CyanColor() +// [Full Topic]: https://developer.apple.com/documentation/appkit/nscolor/2998825-alternatingcontentbackgroundcolo?language=objc +func Color_AlternatingContentBackgroundColors() []Color { + return ColorClass.AlternatingContentBackgroundColors() } -// The quaternary color to use for text labels and separators. [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/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/1525121-shadowcolor?language=objc +func (cc _ColorClass) ShadowColor() Color { + rv := objc.Call[Color](cc, objc.Sel("shadowColor")) return rv } -// The quaternary color to use for text labels and separators. [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/1534635-quaternarylabelcolor?language=objc -func Color_QuaternaryLabelColor() Color { - return ColorClass.QuaternaryLabelColor() +// [Full Topic]: https://developer.apple.com/documentation/appkit/nscolor/1525121-shadowcolor?language=objc +func Color_ShadowColor() Color { + return ColorClass.ShadowColor() } // The saturation component value of the color. [Full Topic] @@ -1265,102 +1279,117 @@ func (c_ Color) SaturationComponent() float64 { return rv } -// The color to use for selected text. [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/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/1534013-browncolor?language=objc +func (cc _ColorClass) BrownColor() Color { + rv := objc.Call[Color](cc, objc.Sel("brownColor")) return rv } -// The color to use for selected text. [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/1528605-selectedtextcolor?language=objc -func Color_SelectedTextColor() Color { - return ColorClass.SelectedTextColor() +// [Full Topic]: https://developer.apple.com/documentation/appkit/nscolor/1534013-browncolor?language=objc +func Color_BrownColor() Color { + return ColorClass.BrownColor() } -// The magenta component value of the color. [Full Topic] +// The color space associated with the color. [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/1526733-colorspace?language=objc +func (c_ Color) ColorSpace() ColorSpace { + rv := objc.Call[ColorSpace](c_, objc.Sel("colorSpace")) 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 links. [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/2998828-linkcolor?language=objc +func (cc _ColorClass) LinkColor() Color { + rv := objc.Call[Color](cc, objc.Sel("linkColor")) 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 links. [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/2998828-linkcolor?language=objc +func Color_LinkColor() Color { + return ColorClass.LinkColor() } -// The color to use for text in a selected control—that is, a control being clicked or dragged. [Full Topic] +// 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/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/1525063-redcolor?language=objc +func (cc _ColorClass) RedColor() Color { + rv := objc.Call[Color](cc, objc.Sel("redColor")) return rv } -// The color to use for text in a selected control—that is, a control being clicked or dragged. [Full Topic] +// 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/1535591-selectedcontroltextcolor?language=objc -func Color_SelectedControlTextColor() Color { - return ColorClass.SelectedControlTextColor() +// [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 the background of selected and emphasized content. [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/2998830-selectedcontentbackgroundcolor?language=objc +func (cc _ColorClass) SelectedContentBackgroundColor() Color { + rv := objc.Call[Color](cc, objc.Sel("selectedContentBackgroundColor")) return rv } -// The color to use for the background area behind text. [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/1535446-textbackgroundcolor?language=objc -func Color_TextBackgroundColor() Color { - return ColorClass.TextBackgroundColor() +// [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 text. [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/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/2879265-systemgraycolor?language=objc +func (cc _ColorClass) SystemGrayColor() Color { + rv := objc.Call[Color](cc, objc.Sel("systemGrayColor")) return rv } -// The color to use for text. [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/1527025-textcolor?language=objc -func Color_TextColor() Color { - return ColorClass.TextColor() +// [Full Topic]: https://developer.apple.com/documentation/appkit/nscolor/2879265-systemgraycolor?language=objc +func Color_SystemGrayColor() Color { + return ColorClass.SystemGrayColor() } -// The color to use for virtual shadows cast by raised objects on the screen. [Full Topic] +// The color to use for selected text. [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/1528605-selectedtextcolor?language=objc +func (cc _ColorClass) SelectedTextColor() Color { + rv := objc.Call[Color](cc, objc.Sel("selectedTextColor")) return rv } -// The color to use for virtual shadows cast by raised objects on the screen. [Full Topic] +// The color to use for selected text. [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/1528605-selectedtextcolor?language=objc +func Color_SelectedTextColor() Color { + return ColorClass.SelectedTextColor() +} + +// 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/3816005-systemcyancolor?language=objc +func (cc _ColorClass) SystemCyanColor() Color { + rv := objc.Call[Color](cc, objc.Sel("systemCyanColor")) + return rv +} + +// 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/3816005-systemcyancolor?language=objc +func Color_SystemCyanColor() Color { + return ColorClass.SystemCyanColor() } // The color to use for text on enabled controls. [Full Topic] @@ -1378,74 +1407,72 @@ func Color_ControlTextColor() Color { return ColorClass.ControlTextColor() } -// Returns a color object for mint that automatically adapts to vibrancy and accessibility settings. [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/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/2879261-systempinkcolor?language=objc +func (cc _ColorClass) SystemPinkColor() Color { + rv := objc.Call[Color](cc, objc.Sel("systemPinkColor")) return rv } -// Returns a color object for mint that automatically adapts to vibrancy and accessibility settings. [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/3816006-systemmintcolor?language=objc -func Color_SystemMintColor() Color { - return ColorClass.SystemMintColor() +// [Full Topic]: https://developer.apple.com/documentation/appkit/nscolor/2879261-systempinkcolor?language=objc +func Color_SystemPinkColor() Color { + return ColorClass.SystemPinkColor() } -// 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] +// 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/2998828-linkcolor?language=objc -func Color_LinkColor() Color { - return ColorClass.LinkColor() +// [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 } -// The type of the color object. [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/2880315-type?language=objc -func (c_ Color) Type() ColorType { - rv := objc.Call[ColorType](c_, objc.Sel("type")) - return rv +// [Full Topic]: https://developer.apple.com/documentation/appkit/nscolor/1531948-controlbackgroundcolor?language=objc +func Color_ControlBackgroundColor() Color { + return ColorClass.ControlBackgroundColor() } -// The blue component value of the color. [Full Topic] +// The primary color to use for text labels. [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")) +// [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 localized version of the catalog name containing the color. [Full Topic] +// The primary color to use for text labels. [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/1534657-labelcolor?language=objc +func Color_LabelColor() Color { + return ColorClass.LabelColor() } -// The number of components in the color. [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/1531308-numberofcomponents?language=objc -func (c_ Color) NumberOfComponents() int { - rv := objc.Call[int](c_, objc.Sel("numberOfComponents")) +// [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 alpha (opacity) component value of the color. [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/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/2879262-systemredcolor?language=objc +func Color_SystemRedColor() Color { + return ColorClass.SystemRedColor() } // The color to use for the optional gridlines, such as those in a table view. [Full Topic] @@ -1463,206 +1490,205 @@ func Color_GridColor() Color { return ColorClass.GridColor() } -// The color to use in the area beneath your window's views. [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/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/2879263-systemorangecolor?language=objc +func (cc _ColorClass) SystemOrangeColor() Color { + rv := objc.Call[Color](cc, objc.Sel("systemOrangeColor")) return rv } -// The color to use in the area beneath your window's views. [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/1534707-underpagebackgroundcolor?language=objc -func Color_UnderPageBackgroundColor() Color { - return ColorClass.UnderPageBackgroundColor() +// [Full Topic]: https://developer.apple.com/documentation/appkit/nscolor/2879263-systemorangecolor?language=objc +func Color_SystemOrangeColor() Color { + return ColorClass.SystemOrangeColor() } -// Returns a color object for indigo that automatically adapts to vibrancy and accessibility settings. [Full Topic] +// The color to use for selected text in an unemphasized context. [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/2998834-unemphasizedselectedtextcolor?language=objc +func (cc _ColorClass) UnemphasizedSelectedTextColor() Color { + rv := objc.Call[Color](cc, objc.Sel("unemphasizedSelectedTextColor")) return rv } -// Returns a color object for indigo that automatically adapts to vibrancy and accessibility settings. [Full Topic] +// The color to use for selected text in an unemphasized context. [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/2998834-unemphasizedselectedtextcolor?language=objc +func Color_UnemphasizedSelectedTextColor() Color { + return ColorClass.UnemphasizedSelectedTextColor() } -// Returns a color object for cyan that automatically adapts to vibrancy and accessibility settings. [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/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/1529217-cyancolor?language=objc +func (cc _ColorClass) CyanColor() Color { + rv := objc.Call[Color](cc, objc.Sel("cyanColor")) return rv } -// Returns a color object for cyan that automatically adapts to vibrancy and accessibility settings. [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/3816005-systemcyancolor?language=objc -func Color_SystemCyanColor() Color { - return ColorClass.SystemCyanColor() +// [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 the background of selected and emphasized content. [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/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/1535421-bluecolor?language=objc +func (cc _ColorClass) BlueColor() Color { + rv := objc.Call[Color](cc, objc.Sel("blueColor")) return rv } -// The color to use for the background of selected and emphasized content. [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/2998830-selectedcontentbackgroundcolor?language=objc -func Color_SelectedContentBackgroundColor() Color { - return ColorClass.SelectedContentBackgroundColor() +// [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 text in menu items. [Full Topic] +// The color to use for the background of selected text. [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/1528136-selectedtextbackgroundcolor?language=objc +func (cc _ColorClass) SelectedTextBackgroundColor() Color { + rv := objc.Call[Color](cc, objc.Sel("selectedTextBackgroundColor")) return rv } -// The color to use for the text in menu items. [Full Topic] +// The color to use for the background of selected text. [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/1528136-selectedtextbackgroundcolor?language=objc +func Color_SelectedTextBackgroundColor() Color { + return ColorClass.SelectedTextBackgroundColor() } -// Returns a color object whose RGB value is 1.0, 0.5, 0.0 and whose alpha value is 1.0. [Full Topic] +// The color to use for the keyboard focus ring around controls. [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/1532031-keyboardfocusindicatorcolor?language=objc +func (cc _ColorClass) KeyboardFocusIndicatorColor() Color { + rv := objc.Call[Color](cc, objc.Sel("keyboardFocusIndicatorColor")) 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] +// The color to use for the keyboard focus ring around controls. [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/1532031-keyboardfocusindicatorcolor?language=objc +func Color_KeyboardFocusIndicatorColor() Color { + return ColorClass.KeyboardFocusIndicatorColor() } -// The cyan component value of the color. [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/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/1526713-purplecolor?language=objc +func (cc _ColorClass) PurpleColor() Color { + rv := objc.Call[Color](cc, objc.Sel("purpleColor")) 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.5, 0.0, 0.5 and whose alpha value is 1.0. [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")) - return rv +// [Full Topic]: https://developer.apple.com/documentation/appkit/nscolor/1526713-purplecolor?language=objc +func Color_PurpleColor() Color { + return ColorClass.PurpleColor() } -// The colors to use for alternating content, typically found in table views and collection views. [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/2998825-alternatingcontentbackgroundcolo?language=objc -func Color_AlternatingContentBackgroundColors() []Color { - return ColorClass.AlternatingContentBackgroundColors() +// [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 } -// Returns a color object for orange that automatically adapts to vibrancy and accessibility settings. [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/2879263-systemorangecolor?language=objc -func (cc _ColorClass) SystemOrangeColor() Color { - rv := objc.Call[Color](cc, objc.Sel("systemOrangeColor")) - return rv +// [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 orange that automatically adapts to vibrancy and accessibility settings. [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/2879263-systemorangecolor?language=objc -func Color_SystemOrangeColor() Color { - return ColorClass.SystemOrangeColor() +// [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 catalog containing the color’s name. [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/1535443-catalognamecomponent?language=objc -func (c_ Color) CatalogNameComponent() ColorListName { - rv := objc.Call[ColorListName](c_, objc.Sel("catalogNameComponent")) - 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 for blue that automatically adapts to vibrancy and accessibility settings. [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/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/1526691-orangecolor?language=objc +func (cc _ColorClass) OrangeColor() Color { + rv := objc.Call[Color](cc, objc.Sel("orangeColor")) return rv } -// Returns a color object for blue that automatically adapts to vibrancy and accessibility settings. [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/2879260-systembluecolor?language=objc -func Color_SystemBlueColor() Color { - return ColorClass.SystemBlueColor() +// [Full Topic]: https://developer.apple.com/documentation/appkit/nscolor/1526691-orangecolor?language=objc +func Color_OrangeColor() Color { + return ColorClass.OrangeColor() } -// The primary color to use for text labels. [Full Topic] +// The color to use for selected and unemphasized content. [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/2998832-unemphasizedselectedcontentbackg?language=objc +func (cc _ColorClass) UnemphasizedSelectedContentBackgroundColor() Color { + rv := objc.Call[Color](cc, objc.Sel("unemphasizedSelectedContentBackgroundColor")) return rv } -// The primary color to use for text labels. [Full Topic] +// The color to use for selected and unemphasized content. [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/2998832-unemphasizedselectedcontentbackg?language=objc +func Color_UnemphasizedSelectedContentBackgroundColor() Color { + return ColorClass.UnemphasizedSelectedContentBackgroundColor() } -// The color to use for the keyboard focus ring around controls. [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/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/1534707-underpagebackgroundcolor?language=objc +func (cc _ColorClass) UnderPageBackgroundColor() Color { + rv := objc.Call[Color](cc, objc.Sel("underPageBackgroundColor")) return rv } -// The color to use for the keyboard focus ring around controls. [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/1532031-keyboardfocusindicatorcolor?language=objc -func Color_KeyboardFocusIndicatorColor() Color { - return ColorClass.KeyboardFocusIndicatorColor() +// [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 the flat surfaces of a control. [Full Topic] +// The green component value of the color. [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/1525935-greencomponent?language=objc +func (c_ Color) GreenComponent() float64 { + rv := objc.Call[float64](c_, objc.Sel("greenComponent")) return rv } -// The color to use for the flat surfaces of a control. [Full Topic] +// The user's current accent color preference. [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/3000782-controlaccentcolor?language=objc +func (cc _ColorClass) ControlAccentColor() Color { + rv := objc.Call[Color](cc, objc.Sel("controlAccentColor")) + return rv } -// The Core Graphics color object corresponding to the color. [Full Topic] +// The user's current accent color preference. [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/3000782-controlaccentcolor?language=objc +func Color_ControlAccentColor() Color { + return ColorClass.ControlAccentColor() } diff --git a/macos/appkit/color_changing.gen.go b/macos/appkit/color_changing_protocol.gen.go similarity index 65% rename from macos/appkit/color_changing.gen.go rename to macos/appkit/color_changing_protocol.gen.go index 460e24a3..33d58c2b 100644 --- a/macos/appkit/color_changing.gen.go +++ b/macos/appkit/color_changing_protocol.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package appkit @@ -15,18 +15,21 @@ type PColorChanging interface { HasChangeColor() bool } -// A concrete type wrapper for the [PColorChanging] protocol. -type ColorChangingWrapper struct { +// ensure impl type implements protocol interface +var _ PColorChanging = (*ColorChangingObject)(nil) + +// A concrete type for the [PColorChanging] protocol. +type ColorChangingObject struct { objc.Object } -func (c_ ColorChangingWrapper) HasChangeColor() bool { +func (c_ ColorChangingObject) HasChangeColor() bool { return c_.RespondsToSelector(objc.Sel("changeColor:")) } // Sent to the first responder when the user selects a color in an NSColorPanel object. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/appkit/nscolorchanging/3005175-changecolor?language=objc -func (c_ ColorChangingWrapper) ChangeColor(sender IColorPanel) { +func (c_ ColorChangingObject) ChangeColor(sender ColorPanel) { objc.Call[objc.Void](c_, objc.Sel("changeColor:"), objc.Ptr(sender)) } diff --git a/macos/appkit/color_list.gen.go b/macos/appkit/color_list.gen.go index 86b2cb29..c18d9874 100644 --- a/macos/appkit/color_list.gen.go +++ b/macos/appkit/color_list.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package appkit @@ -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() - InsertColorKeyAtIndex(color IColor, key ColorName, loc uint) - RemoveColorWithKey(key ColorName) ColorWithKey(key ColorName) Color WriteToURLError(url foundation.IURL, errPtr foundation.IError) bool - SetColorForKey(color IColor, key ColorName) + InsertColorKeyAtIndex(color IColor, key ColorName, loc uint) + RemoveColorWithKey(key ColorName) IsEditable() bool Name() ColorListName AllKeys() []ColorName @@ -43,6 +43,20 @@ 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 @@ -62,10 +76,6 @@ func (cc _ColorListClass) Alloc() ColorList { return rv } -func ColorList_Alloc() ColorList { - return ColorListClass.Alloc() -} - func (cc _ColorListClass) New() ColorList { rv := objc.Call[ColorList](cc, objc.Sel("new")) rv.Autorelease() @@ -81,6 +91,13 @@ 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:"), objc.Ptr(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 @@ -88,6 +105,22 @@ 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 foundation.IError) bool { + rv := objc.Call[bool](c_, objc.Sel("writeToURL:error:"), objc.Ptr(url), objc.Ptr(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 @@ -117,27 +150,28 @@ func (c_ ColorList) RemoveColorWithKey(key ColorName) { objc.Call[objc.Void](c_, objc.Sel("removeColorWithKey:"), key) } -// Returns the color object associated with the specified key. [Full Topic] +// A Boolean value that indicates whether the color list can be modified. [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) +// [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 } -// Saves the color list to the file at the specified URL. [Full Topic] +// The name of the color list. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nscolorlist/2269695-writetourl?language=objc -func (c_ ColorList) WriteToURLError(url foundation.IURL, errPtr foundation.IError) bool { - rv := objc.Call[bool](c_, objc.Sel("writeToURL:error:"), objc.Ptr(url), objc.Ptr(errPtr)) +// [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 } -// Associates the specified color object with the specified key. [Full Topic] +// 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/1522130-setcolor?language=objc -func (c_ ColorList) SetColorForKey(color IColor, key ColorName) { - objc.Call[objc.Void](c_, objc.Sel("setColor:forKey:"), objc.Ptr(color), key) +// [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 } // Returns an array of all color lists found in the standard color list directories. [Full Topic] @@ -154,27 +188,3 @@ 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 0c974e94..6bc2a96b 100644 --- a/macos/appkit/color_panel.gen.go +++ b/macos/appkit/color_panel.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package appkit @@ -19,21 +19,21 @@ type _ColorPanelClass struct { // An interface definition for the [ColorPanel] class. type IColorPanel interface { IPanel - AttachColorList(colorList IColorList) - DetachColorList(colorList IColorList) SetAction(selector objc.Selector) + DetachColorList(colorList IColorList) + AttachColorList(colorList IColorList) SetTarget(target objc.IObject) - Color() Color - SetColor(value IColor) - IsContinuous() bool - SetContinuous(value bool) - AccessoryView() View - SetAccessoryView(value IView) - Alpha() float64 Mode() ColorPanelMode SetMode(value ColorPanelMode) + AccessoryView() View + SetAccessoryView(value IView) + IsContinuous() bool + SetContinuous(value bool) ShowsAlpha() bool SetShowsAlpha(value bool) + Color() Color + SetColor(value IColor) + Alpha() float64 } // A standard user interface for selecting color in an app. [Full Topic] @@ -54,10 +54,6 @@ func (cc _ColorPanelClass) Alloc() ColorPanel { return rv } -func ColorPanel_Alloc() ColorPanel { - return ColorPanelClass.Alloc() -} - func (cc _ColorPanelClass) New() ColorPanel { rv := objc.Call[ColorPanel](cc, objc.Sel("new")) rv.Autorelease() @@ -99,11 +95,25 @@ func NewColorPanelWithContentRectStyleMaskBackingDeferScreen(contentRect foundat return instance } -// 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] +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/nscolorpanel/1531970-attachcolorlist?language=objc -func (c_ ColorPanel) AttachColorList(colorList IColorList) { - objc.Call[objc.Void](c_, objc.Sel("attachColorList:"), objc.Ptr(colorList)) +// [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] +// +// [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) } // Specifies the color panel’s initial picker. [Full Topic] @@ -120,6 +130,21 @@ 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:"), objc.Ptr(color), objc.Ptr(event), objc.Ptr(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 @@ -134,70 +159,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 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 [appkit/nscolorpanel/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:"), objc.Ptr(colorList)) } -// Drags a color into a destination view from the specified source view. [Full Topic] +// 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] // -// [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:"), objc.Ptr(color), objc.Ptr(event), objc.Ptr(sourceView)) - return rv +// [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:"), objc.Ptr(colorList)) } -// Drags a color into a destination view from the specified source view. [Full Topic] +// Sets the target of the receiver. [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) +// [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) } -// Sets the color panel's action message. [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/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/1525183-sharedcolorpanelexists?language=objc +func (cc _ColorPanelClass) SharedColorPanelExists() bool { + rv := objc.Call[bool](cc, objc.Sel("sharedColorPanelExists")) + return rv } -// Sets the target of the receiver. [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/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/1525183-sharedcolorpanelexists?language=objc +func ColorPanel_SharedColorPanelExists() bool { + return ColorPanelClass.SharedColorPanelExists() } -// 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) Color() Color { - rv := objc.Call[Color](c_, objc.Sel("color")) +// [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 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:"), objc.Ptr(value)) +// [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) } -// Returns a Boolean value indicating whether the NSColorPanel has been created already. [Full Topic] +// The accessory view. [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")) +// [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 } -// Returns a Boolean value indicating whether the NSColorPanel has been created already. [Full Topic] +// The accessory view. [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/1526892-accessoryview?language=objc +func (c_ ColorPanel) SetAccessoryView(value IView) { + objc.Call[objc.Void](c_, objc.Sel("setAccessoryView:"), objc.Ptr(value)) } // Returns the shared NSColorPanel instance, creating it if necessary. [Full Topic] @@ -230,55 +255,40 @@ func (c_ ColorPanel) SetContinuous(value bool) { objc.Call[objc.Void](c_, objc.Sel("setContinuous:"), value) } -// The accessory view. [Full Topic] +// 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/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/1525279-showsalpha?language=objc +func (c_ ColorPanel) ShowsAlpha() bool { + rv := objc.Call[bool](c_, objc.Sel("showsAlpha")) return rv } -// The accessory view. [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:"), objc.Ptr(value)) -} - -// The receiver’s current alpha value based on its opacity slider. [Full Topic] +// 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/1526246-alpha?language=objc -func (c_ ColorPanel) Alpha() float64 { - rv := objc.Call[float64](c_, objc.Sel("alpha")) - return rv +// [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) } -// 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:"), objc.Ptr(value)) } -// A Boolean value that indicates whether the receiver shows alpha values and an opacity slider. [Full Topic] +// The receiver’s current alpha value based on its 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")) +// [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 } - -// 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 3da52e3c..a43848ad 100644 --- a/macos/appkit/color_picker.gen.go +++ b/macos/appkit/color_picker.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package appkit @@ -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) - ColorPanel() ColorPanel + SetMode(mode ColorPanelMode) + InsertNewButtonImageIn(newButtonImage IImage, buttonCell IButtonCell) + AttachColorList(colorList IColorList) ProvideNewButtonImage() Image - ButtonToolTip() string MinContentSize() foundation.Size + ButtonToolTip() string + ColorPanel() ColorPanel } // An abstract superclass that implements the default color picking protocol. [Full Topic] @@ -62,10 +62,6 @@ func (cc _ColorPickerClass) Alloc() ColorPicker { return rv } -func ColorPicker_Alloc() ColorPicker { - return ColorPickerClass.Alloc() -} - func (cc _ColorPickerClass) New() ColorPicker { rv := objc.Call[ColorPicker](cc, objc.Sel("new")) rv.Autorelease() @@ -81,18 +77,18 @@ func (c_ ColorPicker) Init() ColorPicker { return rv } -// Overriden to attach a color list to a color picker. [Full Topic] +// Overriden to detach a color list from a color picker. [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:"), objc.Ptr(colorList)) +// [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:"), objc.Ptr(colorList)) } -// Sets the image used for the specified button cell. [Full Topic] +// Overriden to respond to a size change. [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:"), objc.Ptr(newButtonImage), objc.Ptr(buttonCell)) +// [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) } // Overriden to set the color picker’s mode. [Full Topic] @@ -102,26 +98,18 @@ func (c_ ColorPicker) SetMode(mode ColorPanelMode) { objc.Call[objc.Void](c_, objc.Sel("setMode:"), mode) } -// Overriden to detach a color list from 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:"), objc.Ptr(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:"), objc.Ptr(newButtonImage), objc.Ptr(buttonCell)) } -// The color panel instance that owns the 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/1492396-colorpanel?language=objc -func (c_ ColorPicker) ColorPanel() ColorPanel { - rv := objc.Call[ColorPanel](c_, objc.Sel("colorPanel")) - return rv +// [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:"), objc.Ptr(colorList)) } // The button image used by the color picker. [Full Topic] @@ -132,6 +120,14 @@ func (c_ ColorPicker) ProvideNewButtonImage() Image { return rv } +// The minimum content size. [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")) + return rv +} + // The tool tip that is shown when the mouse cursor is over the color picker’s button image. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/appkit/nscolorpicker/1492404-buttontooltip?language=objc @@ -140,10 +136,10 @@ func (c_ ColorPicker) ButtonToolTip() string { return rv } -// The minimum content size. [Full Topic] +// The color panel instance that owns 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/1492396-colorpanel?language=objc +func (c_ ColorPicker) ColorPanel() ColorPanel { + rv := objc.Call[ColorPanel](c_, objc.Sel("colorPanel")) 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 c94643c5..e097c0dc 100644 --- a/macos/appkit/color_picker_touch_bar_item.gen.go +++ b/macos/appkit/color_picker_touch_bar_item.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package appkit @@ -18,21 +18,21 @@ type _ColorPickerTouchBarItemClass struct { // An interface definition for the [ColorPickerTouchBarItem] class. type IColorPickerTouchBarItem interface { ITouchBarItem - Color() Color - SetColor(value IColor) - Target() objc.Object - SetTarget(value objc.IObject) - SetCustomizationLabel(value string) + ShowsAlpha() bool + SetShowsAlpha(value bool) Action() objc.Selector SetAction(value objc.Selector) AllowedColorSpaces() []ColorSpace SetAllowedColorSpaces(value []IColorSpace) - ColorList() ColorList - SetColorList(value IColorList) - ShowsAlpha() bool - SetShowsAlpha(value bool) + 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) } // 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) ColorPickerWithIdentifier(identifier TouchBarItemIdentifier) ColorPickerTouchBarItem { - rv := objc.Call[ColorPickerTouchBarItem](cc, objc.Sel("colorPickerWithIdentifier:"), identifier) +func (cc _ColorPickerTouchBarItemClass) ColorPickerWithIdentifierButtonImage(identifier TouchBarItemIdentifier, image IImage) ColorPickerTouchBarItem { + rv := objc.Call[ColorPickerTouchBarItem](cc, objc.Sel("colorPickerWithIdentifier:buttonImage:"), identifier, objc.Ptr(image)) return rv } -// Creates a bar item with the standard color picker icon. [Full Topic] +// Creates a color picker bar item using the supplied image as its 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) +// [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) } func (cc _ColorPickerTouchBarItemClass) TextColorPickerWithIdentifier(identifier TouchBarItemIdentifier) ColorPickerTouchBarItem { @@ -84,13 +84,21 @@ func ColorPickerTouchBarItem_TextColorPickerWithIdentifier(identifier TouchBarIt return ColorPickerTouchBarItemClass.TextColorPickerWithIdentifier(identifier) } -func (cc _ColorPickerTouchBarItemClass) Alloc() ColorPickerTouchBarItem { - rv := objc.Call[ColorPickerTouchBarItem](cc, objc.Sel("alloc")) +func (cc _ColorPickerTouchBarItemClass) ColorPickerWithIdentifier(identifier TouchBarItemIdentifier) ColorPickerTouchBarItem { + rv := objc.Call[ColorPickerTouchBarItem](cc, objc.Sel("colorPickerWithIdentifier:"), identifier) return rv } -func ColorPickerTouchBarItem_Alloc() ColorPickerTouchBarItem { - return ColorPickerTouchBarItemClass.Alloc() +// 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 } func (cc _ColorPickerTouchBarItemClass) New() ColorPickerTouchBarItem { @@ -122,41 +130,19 @@ func NewColorPickerTouchBarItemWithIdentifier(identifier TouchBarItemIdentifier) return instance } -// The picker's currently selected color. [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")) - return rv -} - -// The picker's currently selected color. [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:"), objc.Ptr(value)) -} - -// An object that is notified when a user interacts with the color picker. [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/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/2544828-showsalpha?language=objc +func (c_ ColorPickerTouchBarItem) ShowsAlpha() bool { + rv := objc.Call[bool](c_, objc.Sel("showsAlpha")) 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] +// 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/2544803-customizationlabel?language=objc -func (c_ ColorPickerTouchBarItem) SetCustomizationLabel(value string) { - objc.Call[objc.Void](c_, objc.Sel("setCustomizationLabel:"), 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) } // The selector on the target object that is invoked when a user interacts with the color picker. [Full Topic] @@ -189,34 +175,34 @@ func (c_ ColorPickerTouchBarItem) SetAllowedColorSpaces(value []IColorSpace) { objc.Call[objc.Void](c_, objc.Sel("setAllowedColorSpaces:"), value) } -// The list of colors displayed in the color picker. [Full Topic] +// An object that is notified when a user interacts with 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")) +// [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 } -// The list of colors displayed in the color picker. [Full Topic] +// An object that is notified when a user interacts with 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:"), objc.Ptr(value)) +// [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) } -// 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:"), objc.Ptr(value)) } // A Boolean value that determines whether the color picker is enabled. [Full Topic] @@ -233,3 +219,25 @@ 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:"), objc.Ptr(value)) +} diff --git a/macos/appkit/color_picking_custom.gen.go b/macos/appkit/color_picking_custom_protocol.gen.go similarity index 71% rename from macos/appkit/color_picking_custom.gen.go rename to macos/appkit/color_picking_custom_protocol.gen.go index 2d32bf52..243afadd 100644 --- a/macos/appkit/color_picking_custom.gen.go +++ b/macos/appkit/color_picking_custom_protocol.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package appkit @@ -10,14 +10,6 @@ import ( // // [Full Topic]: https://developer.apple.com/documentation/appkit/nscolorpickingcustom?language=objc type PColorPickingCustom interface { - // optional - ProvideNewView(initialRequest bool) IView - HasProvideNewView() bool - - // optional - SetColor(newColor Color) - HasSetColor() bool - // optional SupportsMode(mode ColorPanelMode) bool HasSupportsMode() bool @@ -25,56 +17,67 @@ type PColorPickingCustom interface { // optional CurrentMode() ColorPanelMode HasCurrentMode() bool -} - -// A concrete type wrapper for the [PColorPickingCustom] protocol. -type ColorPickingCustomWrapper struct { - objc.Object -} -func (c_ ColorPickingCustomWrapper) HasProvideNewView() bool { - return c_.RespondsToSelector(objc.Sel("provideNewView:")) -} + // optional + SetColor(newColor Color) + HasSetColor() bool -// 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_ ColorPickingCustomWrapper) ProvideNewView(initialRequest bool) View { - rv := objc.Call[View](c_, objc.Sel("provideNewView:"), initialRequest) - return rv + // optional + ProvideNewView(initialRequest bool) View + HasProvideNewView() bool } -func (c_ ColorPickingCustomWrapper) HasSetColor() bool { - return c_.RespondsToSelector(objc.Sel("setColor:")) -} +// ensure impl type implements protocol interface +var _ PColorPickingCustom = (*ColorPickingCustomObject)(nil) -// 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_ ColorPickingCustomWrapper) SetColor(newColor IColor) { - objc.Call[objc.Void](c_, objc.Sel("setColor:"), objc.Ptr(newColor)) +// A concrete type for the [PColorPickingCustom] protocol. +type ColorPickingCustomObject struct { + objc.Object } -func (c_ ColorPickingCustomWrapper) HasSupportsMode() bool { +func (c_ ColorPickingCustomObject) HasSupportsMode() bool { return c_.RespondsToSelector(objc.Sel("supportsMode:")) } // Returns a Boolean value indicating whether or not the receiver supports the specified picking mode. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/appkit/nscolorpickingcustom/1524683-supportsmode?language=objc -func (c_ ColorPickingCustomWrapper) SupportsMode(mode ColorPanelMode) bool { +func (c_ ColorPickingCustomObject) SupportsMode(mode ColorPanelMode) bool { rv := objc.Call[bool](c_, objc.Sel("supportsMode:"), mode) return rv } -func (c_ ColorPickingCustomWrapper) HasCurrentMode() bool { +func (c_ ColorPickingCustomObject) HasCurrentMode() bool { return c_.RespondsToSelector(objc.Sel("currentMode")) } // Returns the receiver’s current mode (or submode, if applicable). [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/appkit/nscolorpickingcustom/1524671-currentmode?language=objc -func (c_ ColorPickingCustomWrapper) CurrentMode() ColorPanelMode { +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:"), objc.Ptr(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.gen.go b/macos/appkit/color_picking_default_protocol.gen.go similarity index 73% rename from macos/appkit/color_picking_default.gen.go rename to macos/appkit/color_picking_default_protocol.gen.go index 82568367..69241d87 100644 --- a/macos/appkit/color_picking_default.gen.go +++ b/macos/appkit/color_picking_default_protocol.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package appkit @@ -12,161 +12,164 @@ import ( // [Full Topic]: https://developer.apple.com/documentation/appkit/nscolorpickingdefault?language=objc type PColorPickingDefault interface { // optional - AlphaControlAddedOrRemoved(sender objc.Object) - HasAlphaControlAddedOrRemoved() bool + ProvideNewButtonImage() Image + HasProvideNewButtonImage() bool + + // optional + SetMode(mode ColorPanelMode) + HasSetMode() bool // optional - InitWithPickerMaskColorPanel(mask uint, owningColorPanel ColorPanel) objc.IObject + InitWithPickerMaskColorPanel(mask uint, owningColorPanel ColorPanel) objc.Object HasInitWithPickerMaskColorPanel() bool // optional - AttachColorList(colorList ColorList) - HasAttachColorList() bool + AlphaControlAddedOrRemoved(sender objc.Object) + HasAlphaControlAddedOrRemoved() bool // optional - InsertNewButtonImageIn(newButtonImage Image, buttonCell ButtonCell) - HasInsertNewButtonImageIn() bool + MinContentSize() foundation.Size + HasMinContentSize() bool // optional - SetMode(mode ColorPanelMode) - HasSetMode() bool + ViewSizeChanged(sender objc.Object) + HasViewSizeChanged() bool // optional DetachColorList(colorList ColorList) HasDetachColorList() bool // optional - ProvideNewButtonImage() IImage - HasProvideNewButtonImage() bool + AttachColorList(colorList ColorList) + HasAttachColorList() bool // optional ButtonToolTip() string HasButtonToolTip() bool // optional - MinContentSize() foundation.Size - HasMinContentSize() bool - - // optional - ViewSizeChanged(sender objc.Object) - HasViewSizeChanged() bool + InsertNewButtonImageIn(newButtonImage Image, buttonCell ButtonCell) + HasInsertNewButtonImageIn() bool } -// A concrete type wrapper for the [PColorPickingDefault] protocol. -type ColorPickingDefaultWrapper struct { +// ensure impl type implements protocol interface +var _ PColorPickingDefault = (*ColorPickingDefaultObject)(nil) + +// A concrete type for the [PColorPickingDefault] protocol. +type ColorPickingDefaultObject struct { objc.Object } -func (c_ ColorPickingDefaultWrapper) HasAlphaControlAddedOrRemoved() bool { - return c_.RespondsToSelector(objc.Sel("alphaControlAddedOrRemoved:")) +func (c_ ColorPickingDefaultObject) HasProvideNewButtonImage() bool { + return c_.RespondsToSelector(objc.Sel("provideNewButtonImage")) } -// Sent when the color panel's opacity controls have been hidden or displayed. [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/1535478-alphacontroladdedorremoved?language=objc -func (c_ ColorPickingDefaultWrapper) AlphaControlAddedOrRemoved(sender objc.IObject) { - objc.Call[objc.Void](c_, objc.Sel("alphaControlAddedOrRemoved:"), sender) +// [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:")) +} + +// Specifies the receiver’s mode. [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) } -func (c_ ColorPickingDefaultWrapper) HasInitWithPickerMaskColorPanel() bool { +func (c_ ColorPickingDefaultObject) HasInitWithPickerMaskColorPanel() bool { return c_.RespondsToSelector(objc.Sel("initWithPickerMask:colorPanel:")) } // Initializes the receiver with a given color panel and its mode. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/appkit/nscolorpickingdefault/1528432-initwithpickermask?language=objc -func (c_ ColorPickingDefaultWrapper) InitWithPickerMaskColorPanel(mask uint, owningColorPanel IColorPanel) objc.Object { +func (c_ ColorPickingDefaultObject) InitWithPickerMaskColorPanel(mask uint, owningColorPanel ColorPanel) objc.Object { rv := objc.Call[objc.Object](c_, objc.Sel("initWithPickerMask:colorPanel:"), mask, objc.Ptr(owningColorPanel)) return rv } -func (c_ ColorPickingDefaultWrapper) HasAttachColorList() bool { - return c_.RespondsToSelector(objc.Sel("attachColorList:")) +func (c_ ColorPickingDefaultObject) HasAlphaControlAddedOrRemoved() bool { + return c_.RespondsToSelector(objc.Sel("alphaControlAddedOrRemoved:")) } -// Tells the receiver to attach the given color list, if it isn’t already displaying the list. [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/1531650-attachcolorlist?language=objc -func (c_ ColorPickingDefaultWrapper) AttachColorList(colorList IColorList) { - objc.Call[objc.Void](c_, objc.Sel("attachColorList:"), objc.Ptr(colorList)) +// [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_ ColorPickingDefaultWrapper) 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_ ColorPickingDefaultWrapper) InsertNewButtonImageIn(newButtonImage IImage, buttonCell IButtonCell) { - objc.Call[objc.Void](c_, objc.Sel("insertNewButtonImage:in:"), objc.Ptr(newButtonImage), objc.Ptr(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_ ColorPickingDefaultWrapper) HasSetMode() bool { - return c_.RespondsToSelector(objc.Sel("setMode:")) +func (c_ ColorPickingDefaultObject) HasViewSizeChanged() bool { + return c_.RespondsToSelector(objc.Sel("viewSizeChanged:")) } -// Specifies the receiver’s mode. [Full Topic] +// 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/1525088-setmode?language=objc -func (c_ ColorPickingDefaultWrapper) SetMode(mode ColorPanelMode) { - objc.Call[objc.Void](c_, objc.Sel("setMode:"), mode) +// [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) } -func (c_ ColorPickingDefaultWrapper) HasDetachColorList() bool { +func (c_ ColorPickingDefaultObject) HasDetachColorList() bool { return c_.RespondsToSelector(objc.Sel("detachColorList:")) } // Tells the receiver to detach the given color list, unless the receiver isn’t displaying the list. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/appkit/nscolorpickingdefault/1532761-detachcolorlist?language=objc -func (c_ ColorPickingDefaultWrapper) DetachColorList(colorList IColorList) { +func (c_ ColorPickingDefaultObject) DetachColorList(colorList ColorList) { objc.Call[objc.Void](c_, objc.Sel("detachColorList:"), objc.Ptr(colorList)) } -func (c_ ColorPickingDefaultWrapper) HasProvideNewButtonImage() bool { - return c_.RespondsToSelector(objc.Sel("provideNewButtonImage")) +func (c_ ColorPickingDefaultObject) HasAttachColorList() bool { + return c_.RespondsToSelector(objc.Sel("attachColorList:")) } -// Provides the image of the button used to select the receiver in the color panel. [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/1534615-providenewbuttonimage?language=objc -func (c_ ColorPickingDefaultWrapper) ProvideNewButtonImage() Image { - rv := objc.Call[Image](c_, objc.Sel("provideNewButtonImage")) - return rv +// [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:"), objc.Ptr(colorList)) } -func (c_ ColorPickingDefaultWrapper) HasButtonToolTip() bool { +func (c_ ColorPickingDefaultObject) HasButtonToolTip() bool { return c_.RespondsToSelector(objc.Sel("buttonToolTip")) } // Provides the toolbar button help tag. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/appkit/nscolorpickingdefault/1535160-buttontooltip?language=objc -func (c_ ColorPickingDefaultWrapper) ButtonToolTip() string { +func (c_ ColorPickingDefaultObject) ButtonToolTip() string { rv := objc.Call[string](c_, objc.Sel("buttonToolTip")) return rv } -func (c_ ColorPickingDefaultWrapper) HasMinContentSize() bool { - return c_.RespondsToSelector(objc.Sel("minContentSize")) -} - -// Indicates the receiver’s minimum content size. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nscolorpickingdefault/1535437-mincontentsize?language=objc -func (c_ ColorPickingDefaultWrapper) MinContentSize() foundation.Size { - rv := objc.Call[foundation.Size](c_, objc.Sel("minContentSize")) - return rv -} - -func (c_ ColorPickingDefaultWrapper) HasViewSizeChanged() bool { - return c_.RespondsToSelector(objc.Sel("viewSizeChanged:")) +func (c_ ColorPickingDefaultObject) HasInsertNewButtonImageIn() bool { + return c_.RespondsToSelector(objc.Sel("insertNewButtonImage:in:")) } -// Tells the recever when the color panel's view size changes in a way that might affect the color picker. [Full Topic] +// Sets the image of a given button cell. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nscolorpickingdefault/1535866-viewsizechanged?language=objc -func (c_ ColorPickingDefaultWrapper) ViewSizeChanged(sender objc.IObject) { - objc.Call[objc.Void](c_, objc.Sel("viewSizeChanged:"), sender) +// [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:"), objc.Ptr(newButtonImage), objc.Ptr(buttonCell)) } diff --git a/macos/appkit/color_sampler.gen.go b/macos/appkit/color_sampler.gen.go index 891791a3..53a77d05 100644 --- a/macos/appkit/color_sampler.gen.go +++ b/macos/appkit/color_sampler.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package appkit @@ -39,10 +39,6 @@ func (cc _ColorSamplerClass) Alloc() ColorSampler { return rv } -func ColorSampler_Alloc() ColorSampler { - return ColorSamplerClass.Alloc() -} - func (cc _ColorSamplerClass) New() ColorSampler { rv := objc.Call[ColorSampler](cc, objc.Sel("new")) rv.Autorelease() diff --git a/macos/appkit/color_space.gen.go b/macos/appkit/color_space.gen.go index 422ca4ff..ef7e711d 100644 --- a/macos/appkit/color_space.gen.go +++ b/macos/appkit/color_space.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package appkit @@ -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 } @@ -87,10 +87,6 @@ func (cc _ColorSpaceClass) Alloc() ColorSpace { return rv } -func ColorSpace_Alloc() ColorSpace { - return ColorSpaceClass.Alloc() -} - func (cc _ColorSpaceClass) New() ColorSpace { rv := objc.Call[ColorSpace](cc, objc.Sel("new")) rv.Autorelease() @@ -121,14 +117,6 @@ 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 @@ -144,42 +132,34 @@ func ColorSpace_ExtendedGenericGamma22GrayColorSpace() ColorSpace { return ColorSpaceClass.ExtendedGenericGamma22GrayColorSpace() } -// 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 device-independent RGB color space. [Full Topic] +// A color space object that represents an extended sRGB 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")) +// [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 a device-independent RGB color space. [Full Topic] +// A color space object that represents an extended sRGB color space. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nscolorspace/1412082-genericrgbcolorspace?language=objc -func ColorSpace_GenericRGBColorSpace() ColorSpace { - return ColorSpaceClass.GenericRGBColorSpace() +// [Full Topic]: https://developer.apple.com/documentation/appkit/nscolorspace/1644175-extendedsrgbcolorspace?language=objc +func ColorSpace_ExtendedSRGBColorSpace() ColorSpace { + return ColorSpaceClass.ExtendedSRGBColorSpace() } -// 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 gray 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")) +// [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 calibrated or device-dependent RGB color space. [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/1412066-devicergbcolorspace?language=objc -func ColorSpace_DeviceRGBColorSpace() ColorSpace { - return ColorSpaceClass.DeviceRGBColorSpace() +// [Full Topic]: https://developer.apple.com/documentation/appkit/nscolorspace/1412060-genericgraycolorspace?language=objc +func ColorSpace_GenericGrayColorSpace() ColorSpace { + return ColorSpaceClass.GenericGrayColorSpace() } // A color space object that represents a calibrated or device-dependent gray color space. [Full Topic] @@ -212,44 +192,14 @@ func ColorSpace_SRGBColorSpace() ColorSpace { return ColorSpaceClass.SRGBColorSpace() } -// 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 (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] +// The ICC profile data from which the color space was created. [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/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 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 @@ -258,27 +208,19 @@ func (c_ ColorSpace) NumberOfColorComponents() int { return rv } -// 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] +// 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/1412088-genericcmykcolorspace?language=objc -func (cc _ColorSpaceClass) GenericCMYKColorSpace() ColorSpace { - rv := objc.Call[ColorSpace](cc, objc.Sel("genericCMYKColorSpace")) +// [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 CMYK 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/1412088-genericcmykcolorspace?language=objc -func ColorSpace_GenericCMYKColorSpace() ColorSpace { - return ColorSpaceClass.GenericCMYKColorSpace() +// [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 an Adobe RGB (1998) color space. [Full Topic] @@ -296,26 +238,49 @@ func ColorSpace_AdobeRGB1998ColorSpace() ColorSpace { return ColorSpaceClass.AdobeRGB1998ColorSpace() } -// 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 (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 ColorSpace_GenericGrayColorSpace() ColorSpace { - return ColorSpaceClass.GenericGrayColorSpace() +// [Full Topic]: https://developer.apple.com/documentation/appkit/nscolorspace/1412082-genericrgbcolorspace?language=objc +func ColorSpace_GenericRGBColorSpace() ColorSpace { + return ColorSpaceClass.GenericRGBColorSpace() } -// The Core Graphics color-space object that represents a color space equivalent to the color space’s. [Full Topic] +// The model on which the color space is based. [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")) +// [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] +// +// [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 gray color space with a gamma value of 2.2. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/appkit/nscolorspace/1412103-genericgamma22graycolorspace?language=objc +func ColorSpace_GenericGamma22GrayColorSpace() ColorSpace { + return ColorSpaceClass.GenericGamma22GrayColorSpace() +} + +// 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 } @@ -334,17 +299,48 @@ func ColorSpace_DisplayP3ColorSpace() ColorSpace { return ColorSpaceClass.DisplayP3ColorSpace() } -// A color space object that represents a gray color space with a gamma value of 2.2. [Full Topic] +// The ColorSync profile from which the color space was created. [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/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 gray color space with a gamma value of 2.2. [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/1412103-genericgamma22graycolorspace?language=objc -func ColorSpace_GenericGamma22GrayColorSpace() ColorSpace { - return ColorSpaceClass.GenericGamma22GrayColorSpace() +// [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] +// +// [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 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/1412073-cgcolorspace?language=objc +func (c_ ColorSpace) CGColorSpace() coregraphics.ColorSpaceRef { + rv := objc.Call[coregraphics.ColorSpaceRef](c_, objc.Sel("CGColorSpace")) + return rv } diff --git a/macos/appkit/color_well.gen.go b/macos/appkit/color_well.gen.go index 00f5547b..53e42b49 100644 --- a/macos/appkit/color_well.gen.go +++ b/macos/appkit/color_well.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package appkit @@ -20,12 +20,12 @@ type _ColorWellClass struct { type IColorWell interface { IControl Activate(exclusive bool) + Deactivate() DrawWellInside(insideRect foundation.Rect) TakeColorFrom(sender objc.IObject) - Deactivate() + IsActive() bool Color() Color SetColor(value IColor) - IsActive() bool } // A control that displays a color value and lets the user change that color value. [Full Topic] @@ -46,10 +46,6 @@ func (cc _ColorWellClass) Alloc() ColorWell { return rv } -func ColorWell_Alloc() ColorWell { - return ColorWellClass.Alloc() -} - func (cc _ColorWellClass) New() ColorWell { rv := objc.Call[ColorWell](cc, objc.Sel("new")) rv.Autorelease() @@ -86,6 +82,13 @@ 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 @@ -100,11 +103,12 @@ func (c_ ColorWell) TakeColorFrom(sender objc.IObject) { objc.Call[objc.Void](c_, objc.Sel("takeColorFrom:"), sender) } -// Deactivates the color well. [Full Topic] +// A Boolean value that indicates whether the color well is currently active. [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")) +// [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 } // The currently selected color for the color well. [Full Topic] @@ -121,11 +125,3 @@ func (c_ ColorWell) Color() Color { func (c_ ColorWell) SetColor(value IColor) { objc.Call[objc.Void](c_, objc.Sel("setColor:"), objc.Ptr(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 ced16fe4..a91f7a86 100644 --- a/macos/appkit/combo_box.gen.go +++ b/macos/appkit/combo_box.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package appkit @@ -19,42 +19,42 @@ type _ComboBoxClass struct { // An interface definition for the [ComboBox] class. type IComboBox interface { ITextField - RemoveItemWithObjectValue(object objc.IObject) - NoteNumberOfItemsChanged() - IndexOfItemWithObjectValue(object objc.IObject) int - InsertItemWithObjectValueAtIndex(object objc.IObject, index int) - ScrollItemAtIndexToVisible(index int) - RemoveAllItems() RemoveItemAtIndex(index int) - AddItemWithObjectValue(object objc.IObject) + ReloadData() + RemoveAllItems() AddItemsWithObjectValues(objects []objc.IObject) - DeselectItemAtIndex(index int) + SelectItemAtIndex(index int) + IndexOfItemWithObjectValue(object objc.IObject) int + RemoveItemWithObjectValue(object objc.IObject) + AddItemWithObjectValue(object objc.IObject) + NoteNumberOfItemsChanged() ScrollItemAtIndexToTop(index int) + ScrollItemAtIndexToVisible(index int) SelectItemWithObjectValue(object objc.IObject) - SelectItemAtIndex(index int) ItemObjectValueAtIndex(index int) objc.Object - ReloadData() - DataSource() ComboBoxDataSourceWrapper + DeselectItemAtIndex(index int) + InsertItemWithObjectValueAtIndex(object objc.IObject, index int) + NumberOfVisibleItems() int + SetNumberOfVisibleItems(value int) + ObjectValues() []objc.Object + DataSource() ComboBoxDataSourceObject SetDataSource(value PComboBoxDataSource) SetDataSourceObject(valueObject objc.IObject) - IndexOfSelectedItem() int + IsButtonBordered() bool + SetButtonBordered(value bool) + ObjectValueOfSelectedItem() objc.Object + IntercellSpacing() foundation.Size + SetIntercellSpacing(value foundation.Size) + UsesDataSource() bool + SetUsesDataSource(value bool) ItemHeight() float64 SetItemHeight(value float64) - ObjectValueOfSelectedItem() objc.Object + NumberOfItems() int 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] @@ -75,10 +75,6 @@ func (cc _ComboBoxClass) Alloc() ComboBox { return rv } -func ComboBox_Alloc() ComboBox { - return ComboBoxClass.Alloc() -} - func (cc _ComboBoxClass) New() ComboBox { rv := objc.Call[ComboBox](cc, objc.Sel("new")) rv.Autorelease() @@ -94,18 +90,6 @@ func (c_ ComboBox) Init() ComboBox { return rv } -func (cc _ComboBoxClass) LabelWithAttributedString(attributedStringValue foundation.IAttributedString) ComboBox { - rv := objc.Call[ComboBox](cc, objc.Sel("labelWithAttributedString:"), objc.Ptr(attributedStringValue)) - return rv -} - -// Creates a text field for use as a static label that displays styled text, doesn’t wrap, and doesn’t have selectable text. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nstextfield/1644658-labelwithattributedstring?language=objc -func ComboBox_LabelWithAttributedString(attributedStringValue foundation.IAttributedString) ComboBox { - return ComboBoxClass.LabelWithAttributedString(attributedStringValue) -} - func (cc _ComboBoxClass) LabelWithString(stringValue string) ComboBox { rv := objc.Call[ComboBox](cc, objc.Sel("labelWithString:"), stringValue) return rv @@ -118,6 +102,18 @@ 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:"), objc.Ptr(attributedStringValue)) + return rv +} + +// Creates a text field for use as a static label that displays styled text, doesn’t wrap, and doesn’t have selectable text. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/appkit/nstextfield/1644658-labelwithattributedstring?language=objc +func ComboBox_LabelWithAttributedString(attributedStringValue foundation.IAttributedString) ComboBox { + return ComboBoxClass.LabelWithAttributedString(attributedStringValue) +} + func (cc _ComboBoxClass) WrappingLabelWithString(stringValue string) ComboBox { rv := objc.Call[ComboBox](cc, objc.Sel("wrappingLabelWithString:"), stringValue) return rv @@ -156,54 +152,54 @@ func NewComboBoxWithFrame(frameRect foundation.Rect) ComboBox { return instance } -// 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) } -// Informs the receiver that the number of items in its data source has changed. [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/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/1436717-reloaddata?language=objc +func (c_ ComboBox) ReloadData() { + objc.Call[objc.Void](c_, objc.Sel("reloadData")) } -// 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")) } -// Inserts an object at the specified location in the receiver’s internal item list. [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/1436703-insertitemwithobjectvalue?language=objc -func (c_ ComboBox) InsertItemWithObjectValueAtIndex(object objc.IObject, index int) { - objc.Call[objc.Void](c_, objc.Sel("insertItemWithObjectValue:atIndex:"), object, index) +// [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) } -// Scrolls the receiver’s pop-up list vertically so that the item at the specified index is visible. [Full Topic] +// Selects the pop-up list row at the given index. [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) +// [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) } -// 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 } -// 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) } // Adds an object to the end of the receiver’s internal item list. [Full Topic] @@ -213,18 +209,11 @@ func (c_ ComboBox) AddItemWithObjectValue(object objc.IObject) { objc.Call[objc.Void](c_, objc.Sel("addItemWithObjectValue:"), object) } -// Adds multiple objects to the end of 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) -} - -// Deselects the pop-up list item at the specified index if it’s selected. [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/1436699-deselectitematindex?language=objc -func (c_ ComboBox) DeselectItemAtIndex(index int) { - objc.Call[objc.Void](c_, objc.Sel("deselectItemAtIndex:"), index) +// [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")) } // 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] @@ -234,6 +223,13 @@ 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 @@ -241,13 +237,6 @@ 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 @@ -256,18 +245,48 @@ func (c_ ComboBox) ItemObjectValueAtIndex(index int) objc.Object { return rv } -// 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] +// 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/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/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] +// +// [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 object that provides the item data for the combo box. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/appkit/nscombobox/1436729-datasource?language=objc -func (c_ ComboBox) DataSource() ComboBoxDataSourceWrapper { - rv := objc.Call[ComboBoxDataSourceWrapper](c_, objc.Sel("dataSource")) +func (c_ ComboBox) DataSource() ComboBoxDataSourceObject { + rv := objc.Call[ComboBoxDataSourceObject](c_, objc.Sel("dataSource")) return rv } @@ -286,27 +305,19 @@ func (c_ ComboBox) SetDataSourceObject(valueObject objc.IObject) { objc.Call[objc.Void](c_, objc.Sel("setDataSource:"), objc.Ptr(valueObject)) } -// The index of the last item selected from the pop-up list. [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")) - return rv -} - -// The height of each item in 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/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/1436711-buttonbordered?language=objc +func (c_ ComboBox) IsButtonBordered() bool { + rv := objc.Call[bool](c_, objc.Sel("isButtonBordered")) return rv } -// The height of each item in 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/1436767-itemheight?language=objc -func (c_ ComboBox) SetItemHeight(value float64) { - objc.Call[objc.Void](c_, objc.Sel("setItemHeight:"), value) +// [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 object corresponding to the last item selected from the pop-up list. [Full Topic] @@ -317,34 +328,19 @@ func (c_ ComboBox) ObjectValueOfSelectedItem() objc.Object { return rv } -// A Boolean value indicating whether the combo box has a vertical scroller. [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")) - return rv -} - -// A Boolean value indicating whether the combo box has a vertical scroller. [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) -} - -// 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) Completes() bool { - rv := objc.Call[bool](c_, objc.Sel("completes")) +// [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) } // A Boolean value indicating whether the combo box retrieves its items from a data source object. [Full Topic] @@ -362,14 +358,21 @@ func (c_ ComboBox) SetUsesDataSource(value bool) { objc.Call[objc.Void](c_, objc.Sel("setUsesDataSource:"), value) } -// An array of the items from the combo box’s internal list. [Full Topic] +// The height of each item in the pop-up list. [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")) +// [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 total number of items in the pop-up list. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/appkit/nscombobox/1436747-numberofitems?language=objc @@ -378,47 +381,40 @@ func (c_ ComboBox) NumberOfItems() int { return rv } -// The maximum number of visible items to display in the pop-up list at one time. [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/1436741-numberofvisibleitems?language=objc -func (c_ ComboBox) NumberOfVisibleItems() int { - rv := objc.Call[int](c_, objc.Sel("numberOfVisibleItems")) +// [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 maximum number of visible items to display in the pop-up list at one time. [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/1436741-numberofvisibleitems?language=objc -func (c_ ComboBox) SetNumberOfVisibleItems(value int) { - objc.Call[objc.Void](c_, objc.Sel("setNumberOfVisibleItems:"), 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 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] -// -// [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] +// 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/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/1436749-completes?language=objc +func (c_ ComboBox) Completes() bool { + rv := objc.Call[bool](c_, objc.Sel("completes")) return rv } -// The horizontal and vertical spacing between cells in the pop-up list. [Full Topic] +// 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/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/1436749-completes?language=objc +func (c_ ComboBox) SetCompletes(value bool) { + objc.Call[objc.Void](c_, objc.Sel("setCompletes:"), value) } diff --git a/macos/appkit/combo_box_cell.gen.go b/macos/appkit/combo_box_cell.gen.go index b19f3b87..6a4a07a3 100644 --- a/macos/appkit/combo_box_cell.gen.go +++ b/macos/appkit/combo_box_cell.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package appkit @@ -19,43 +19,43 @@ type _ComboBoxCellClass struct { // An interface definition for the [ComboBoxCell] class. type IComboBoxCell interface { ITextFieldCell - RemoveItemWithObjectValue(object objc.IObject) - NoteNumberOfItemsChanged() - IndexOfItemWithObjectValue(object objc.IObject) int - InsertItemWithObjectValueAtIndex(object objc.IObject, index int) + SelectItemWithObjectValue(object objc.IObject) ScrollItemAtIndexToVisible(index int) + ScrollItemAtIndexToTop(index int) + DeselectItemAtIndex(index int) + CompletedString(string_ string) string + InsertItemWithObjectValueAtIndex(object objc.IObject, index int) + ReloadData() RemoveAllItems() - RemoveItemAtIndex(index int) + NoteNumberOfItemsChanged() AddItemWithObjectValue(object objc.IObject) - AddItemsWithObjectValues(objects []objc.IObject) - DeselectItemAtIndex(index int) - ScrollItemAtIndexToTop(index int) - SelectItemWithObjectValue(object objc.IObject) + IndexOfItemWithObjectValue(object objc.IObject) int + RemoveItemWithObjectValue(object objc.IObject) SelectItemAtIndex(index int) + RemoveItemAtIndex(index int) ItemObjectValueAtIndex(index int) objc.Object - CompletedString(string_ string) string - ReloadData() - DataSource() ComboBoxCellDataSourceWrapper + AddItemsWithObjectValues(objects []objc.IObject) + ObjectValues() []objc.Object + NumberOfItems() int + 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) - ObjectValues() []objc.Object - NumberOfItems() int - NumberOfVisibleItems() int - SetNumberOfVisibleItems(value int) - IsButtonBordered() bool - SetButtonBordered(value bool) + HasVerticalScroller() bool + SetHasVerticalScroller(value bool) IntercellSpacing() foundation.Size SetIntercellSpacing(value foundation.Size) + ItemHeight() float64 + SetItemHeight(value float64) } // The user interface of a combo box. [Full Topic] @@ -76,10 +76,6 @@ func (cc _ComboBoxCellClass) Alloc() ComboBoxCell { return rv } -func ComboBoxCell_Alloc() ComboBoxCell { - return ComboBoxCellClass.Alloc() -} - func (cc _ComboBoxCellClass) New() ComboBoxCell { rv := objc.Call[ComboBoxCell](cc, objc.Sel("new")) rv.Autorelease() @@ -123,25 +119,39 @@ func NewComboBoxCellImageCell(image IImage) ComboBoxCell { return instance } -// Removes all occurrences of the specified object from the combo box’s internal item list. [Full Topic] +// Selects the first pop-up list item that corresponds to the specified object. [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/1410280-selectitemwithobjectvalue?language=objc +func (c_ ComboBoxCell) SelectItemWithObjectValue(object objc.IObject) { + objc.Call[objc.Void](c_, objc.Sel("selectItemWithObjectValue:"), object) } -// Informs the combo box that the number of items in its data source has changed. [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/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/1410272-scrollitematindextovisible?language=objc +func (c_ ComboBoxCell) ScrollItemAtIndexToVisible(index int) { + objc.Call[objc.Void](c_, objc.Sel("scrollItemAtIndexToVisible:"), index) } -// Searches the combo box’s internal item list for the given object and returns the matching index number. [Full Topic] +// 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/1410283-indexofitemwithobjectvalue?language=objc -func (c_ ComboBoxCell) IndexOfItemWithObjectValue(object objc.IObject) int { - rv := objc.Call[int](c_, objc.Sel("indexOfItemWithObjectValue:"), object) +// [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) +} + +// 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/1410282-deselectitematindex?language=objc +func (c_ ComboBoxCell) DeselectItemAtIndex(index int) { + objc.Call[objc.Void](c_, objc.Sel("deselectItemAtIndex:"), index) +} + +// 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/1410264-completedstring?language=objc +func (c_ ComboBoxCell) CompletedString(string_ string) string { + rv := objc.Call[string](c_, objc.Sel("completedString:"), string_) return rv } @@ -152,11 +162,11 @@ func (c_ ComboBoxCell) InsertItemWithObjectValueAtIndex(object objc.IObject, ind objc.Call[objc.Void](c_, objc.Sel("insertItemWithObjectValue:atIndex:"), object, index) } -// Scrolls the combo box’s pop-up list vertically so that the item at the given index is visible. [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/1410272-scrollitematindextovisible?language=objc -func (c_ ComboBoxCell) ScrollItemAtIndexToVisible(index int) { - objc.Call[objc.Void](c_, objc.Sel("scrollItemAtIndexToVisible:"), index) +// [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")) } // Removes all items from the combo box’s internal item list. [Full Topic] @@ -166,11 +176,11 @@ func (c_ ComboBoxCell) RemoveAllItems() { objc.Call[objc.Void](c_, objc.Sel("removeAllItems")) } -// Removes the object at the specified location from the combo box’s internal item list. [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/1410276-removeitematindex?language=objc -func (c_ ComboBoxCell) RemoveItemAtIndex(index int) { - objc.Call[objc.Void](c_, objc.Sel("removeItemAtIndex:"), 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")) } // Adds the specified object to the internal item list. [Full Topic] @@ -180,32 +190,19 @@ func (c_ ComboBoxCell) AddItemWithObjectValue(object objc.IObject) { objc.Call[objc.Void](c_, objc.Sel("addItemWithObjectValue:"), object) } -// 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) -} - -// 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/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] +// 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/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/1410283-indexofitemwithobjectvalue?language=objc +func (c_ ComboBoxCell) IndexOfItemWithObjectValue(object objc.IObject) int { + rv := objc.Call[int](c_, objc.Sel("indexOfItemWithObjectValue:"), object) + return rv } -// Selects the first pop-up list item that corresponds to the specified object. [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/1410280-selectitemwithobjectvalue?language=objc -func (c_ ComboBoxCell) SelectItemWithObjectValue(object objc.IObject) { - objc.Call[objc.Void](c_, objc.Sel("selectItemWithObjectValue:"), object) +// [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) } // Selects the pop-up list row at the given index. [Full Topic] @@ -215,6 +212,13 @@ 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 @@ -223,26 +227,34 @@ func (c_ ComboBoxCell) ItemObjectValueAtIndex(index int) objc.Object { return rv } -// Returns a string from the combo box’s pop-up list that starts with the given substring. [Full Topic] +// Adds multiple objects to the internal item list. [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/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] +// +// [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 } -// 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] +// The total number of items in the pop-up list. [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/1410260-numberofitems?language=objc +func (c_ ComboBoxCell) NumberOfItems() int { + rv := objc.Call[int](c_, objc.Sel("numberOfItems")) + return rv } // The object that provides the data displayed in the combo box’s pop-up list. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/appkit/nscomboboxcell/1410266-datasource?language=objc -func (c_ ComboBoxCell) DataSource() ComboBoxCellDataSourceWrapper { - rv := objc.Call[ComboBoxCellDataSourceWrapper](c_, objc.Sel("dataSource")) +func (c_ ComboBoxCell) DataSource() ComboBoxCellDataSourceObject { + rv := objc.Call[ComboBoxCellDataSourceObject](c_, objc.Sel("dataSource")) return rv } @@ -261,50 +273,50 @@ func (c_ ComboBoxCell) SetDataSourceObject(valueObject objc.IObject) { objc.Call[objc.Void](c_, objc.Sel("setDataSource:"), objc.Ptr(valueObject)) } -// The index of the last item selected from the pop-up list. [Full Topic] +// 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/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/1410298-numberofvisibleitems?language=objc +func (c_ ComboBoxCell) NumberOfVisibleItems() int { + rv := objc.Call[int](c_, objc.Sel("numberOfVisibleItems")) return rv } -// The height of each item in the combo box’s pop-up list. [Full Topic] +// 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/1410306-itemheight?language=objc -func (c_ ComboBoxCell) ItemHeight() float64 { - rv := objc.Call[float64](c_, objc.Sel("itemHeight")) - return rv +// [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) } -// The height of each item in the combo box’s pop-up list. [Full Topic] +// A Boolean value that indicates whether the combo box button displays a border. [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) +// [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 } -// The object corresponding to the last item selected from the pop-up list. [Full Topic] +// A Boolean value that indicates whether the combo box button displays a border. [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/1410246-buttonbordered?language=objc +func (c_ ComboBoxCell) SetButtonBordered(value bool) { + objc.Call[objc.Void](c_, objc.Sel("setButtonBordered:"), value) } -// A Boolean value that indicates if the combo box displays a vertical scroller. [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/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/1410274-indexofselecteditem?language=objc +func (c_ ComboBoxCell) IndexOfSelectedItem() int { + rv := objc.Call[int](c_, objc.Sel("indexOfSelectedItem")) return rv } -// A Boolean value that indicates if the combo box displays a vertical scroller. [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/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/1410278-objectvalueofselecteditem?language=objc +func (c_ ComboBoxCell) ObjectValueOfSelectedItem() objc.Object { + rv := objc.Call[objc.Object](c_, objc.Sel("objectValueOfSelectedItem")) + return rv } // A Boolean value that indicates if the combo box tries to complete text entered by the user. [Full Topic] @@ -337,50 +349,19 @@ func (c_ ComboBoxCell) SetUsesDataSource(value bool) { objc.Call[objc.Void](c_, objc.Sel("setUsesDataSource:"), value) } -// The combo box’s internal item list in an array. [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")) - return rv -} - -// The total number of items in the pop-up list. [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 -} - -// 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] +// A Boolean value that indicates if the combo box displays a vertical scroller. [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")) +// [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 } -// A Boolean value that indicates whether the combo box button displays a border. [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/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/1410252-hasverticalscroller?language=objc +func (c_ ComboBoxCell) SetHasVerticalScroller(value bool) { + objc.Call[objc.Void](c_, objc.Sel("setHasVerticalScroller:"), value) } // The spacing between cells in the combo box’s pop-up list. [Full Topic] @@ -397,3 +378,18 @@ 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.gen.go b/macos/appkit/combo_box_cell_data_source.gen.go deleted file mode 100644 index 54cb27f5..00000000 --- a/macos/appkit/combo_box_cell_data_source.gen.go +++ /dev/null @@ -1,49 +0,0 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY - -package appkit - -import ( - "github.com/progrium/macdriver/objc" -) - -// [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nscomboboxcelldatasource?language=objc -type PComboBoxCellDataSource interface { - // optional - NumberOfItemsInComboBoxCell(comboBoxCell ComboBoxCell) int - HasNumberOfItemsInComboBoxCell() bool - - // optional - ComboBoxCellObjectValueForItemAtIndex(comboBoxCell ComboBoxCell, index int) objc.IObject - HasComboBoxCellObjectValueForItemAtIndex() bool -} - -// A concrete type wrapper for the [PComboBoxCellDataSource] protocol. -type ComboBoxCellDataSourceWrapper struct { - objc.Object -} - -func (c_ ComboBoxCellDataSourceWrapper) HasNumberOfItemsInComboBoxCell() bool { - return c_.RespondsToSelector(objc.Sel("numberOfItemsInComboBoxCell:")) -} - -// Returns the number of items managed for the combo box cell by your data source object. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nscomboboxcelldatasource/1410302-numberofitemsincomboboxcell?language=objc -func (c_ ComboBoxCellDataSourceWrapper) NumberOfItemsInComboBoxCell(comboBoxCell IComboBoxCell) int { - rv := objc.Call[int](c_, objc.Sel("numberOfItemsInComboBoxCell:"), objc.Ptr(comboBoxCell)) - return rv -} - -func (c_ ComboBoxCellDataSourceWrapper) HasComboBoxCellObjectValueForItemAtIndex() bool { - return c_.RespondsToSelector(objc.Sel("comboBoxCell:objectValueForItemAtIndex:")) -} - -// Returns the object that corresponds to the item at the given index in the combo box cell. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nscomboboxcelldatasource/1410258-comboboxcell?language=objc -func (c_ ComboBoxCellDataSourceWrapper) ComboBoxCellObjectValueForItemAtIndex(comboBoxCell IComboBoxCell, index int) objc.Object { - rv := objc.Call[objc.Object](c_, objc.Sel("comboBoxCell:objectValueForItemAtIndex:"), objc.Ptr(comboBoxCell), index) - return rv -} diff --git a/macos/appkit/combo_box_cell_data_source_protocol.gen.go b/macos/appkit/combo_box_cell_data_source_protocol.gen.go new file mode 100644 index 00000000..b7849892 --- /dev/null +++ b/macos/appkit/combo_box_cell_data_source_protocol.gen.go @@ -0,0 +1,84 @@ +// Code generated by DarwinKit. DO NOT EDIT. + +package appkit + +import ( + "github.com/progrium/macdriver/objc" +) + +// [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/appkit/nscomboboxcelldatasource?language=objc +type PComboBoxCellDataSource interface { + // optional + NumberOfItemsInComboBoxCell(comboBoxCell ComboBoxCell) int + HasNumberOfItemsInComboBoxCell() bool + + // 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 +var _ PComboBoxCellDataSource = (*ComboBoxCellDataSourceObject)(nil) + +// A concrete type for the [PComboBoxCellDataSource] protocol. +type ComboBoxCellDataSourceObject struct { + objc.Object +} + +func (c_ ComboBoxCellDataSourceObject) HasNumberOfItemsInComboBoxCell() bool { + return c_.RespondsToSelector(objc.Sel("numberOfItemsInComboBoxCell:")) +} + +// Returns the number of items managed for the combo box cell by your data source object. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/appkit/nscomboboxcelldatasource/1410302-numberofitemsincomboboxcell?language=objc +func (c_ ComboBoxCellDataSourceObject) NumberOfItemsInComboBoxCell(comboBoxCell ComboBoxCell) int { + rv := objc.Call[int](c_, objc.Sel("numberOfItemsInComboBoxCell:"), objc.Ptr(comboBoxCell)) + return rv +} + +func (c_ ComboBoxCellDataSourceObject) HasComboBoxCellObjectValueForItemAtIndex() bool { + return c_.RespondsToSelector(objc.Sel("comboBoxCell:objectValueForItemAtIndex:")) +} + +// Returns the object that corresponds to the item at the given index in the combo box cell. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/appkit/nscomboboxcelldatasource/1410258-comboboxcell?language=objc +func (c_ ComboBoxCellDataSourceObject) ComboBoxCellObjectValueForItemAtIndex(comboBoxCell ComboBoxCell, index int) objc.Object { + rv := objc.Call[objc.Object](c_, objc.Sel("comboBoxCell:objectValueForItemAtIndex:"), objc.Ptr(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:"), objc.Ptr(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:"), objc.Ptr(comboBoxCell), uncompletedString) + return rv +} diff --git a/macos/appkit/combo_box_data_source.gen.go b/macos/appkit/combo_box_data_source.gen.go deleted file mode 100644 index ba8a9165..00000000 --- a/macos/appkit/combo_box_data_source.gen.go +++ /dev/null @@ -1,49 +0,0 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY - -package appkit - -import ( - "github.com/progrium/macdriver/objc" -) - -// [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nscomboboxdatasource?language=objc -type PComboBoxDataSource interface { - // optional - NumberOfItemsInComboBox(comboBox ComboBox) int - HasNumberOfItemsInComboBox() bool - - // optional - ComboBoxObjectValueForItemAtIndex(comboBox ComboBox, index int) objc.IObject - HasComboBoxObjectValueForItemAtIndex() bool -} - -// A concrete type wrapper for the [PComboBoxDataSource] protocol. -type ComboBoxDataSourceWrapper struct { - objc.Object -} - -func (c_ ComboBoxDataSourceWrapper) HasNumberOfItemsInComboBox() bool { - return c_.RespondsToSelector(objc.Sel("numberOfItemsInComboBox:")) -} - -// Returns the number of items that the data source manages for the combo box. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nscomboboxdatasource/1436780-numberofitemsincombobox?language=objc -func (c_ ComboBoxDataSourceWrapper) NumberOfItemsInComboBox(comboBox IComboBox) int { - rv := objc.Call[int](c_, objc.Sel("numberOfItemsInComboBox:"), objc.Ptr(comboBox)) - return rv -} - -func (c_ ComboBoxDataSourceWrapper) 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_ ComboBoxDataSourceWrapper) ComboBoxObjectValueForItemAtIndex(comboBox IComboBox, index int) objc.Object { - rv := objc.Call[objc.Object](c_, objc.Sel("comboBox:objectValueForItemAtIndex:"), objc.Ptr(comboBox), index) - return rv -} diff --git a/macos/appkit/combo_box_data_source_protocol.gen.go b/macos/appkit/combo_box_data_source_protocol.gen.go new file mode 100644 index 00000000..33491274 --- /dev/null +++ b/macos/appkit/combo_box_data_source_protocol.gen.go @@ -0,0 +1,84 @@ +// Code generated by DarwinKit. DO NOT EDIT. + +package appkit + +import ( + "github.com/progrium/macdriver/objc" +) + +// [Full Topic] +// +// [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 +} + +// ensure impl type implements protocol interface +var _ PComboBoxDataSource = (*ComboBoxDataSourceObject)(nil) + +// A concrete type for the [PComboBoxDataSource] protocol. +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:"), objc.Ptr(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:"), objc.Ptr(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:"), objc.Ptr(comboBox), string_) + return rv +} + +func (c_ ComboBoxDataSourceObject) HasNumberOfItemsInComboBox() bool { + return c_.RespondsToSelector(objc.Sel("numberOfItemsInComboBox:")) +} + +// Returns the number of items that the data source manages for the combo box. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/appkit/nscomboboxdatasource/1436780-numberofitemsincombobox?language=objc +func (c_ ComboBoxDataSourceObject) NumberOfItemsInComboBox(comboBox ComboBox) int { + rv := objc.Call[int](c_, objc.Sel("numberOfItemsInComboBox:"), objc.Ptr(comboBox)) + return rv +} diff --git a/macos/appkit/combo_box_delegate.gen.go b/macos/appkit/combo_box_delegate.gen.go index 3cc2901c..12009009 100644 --- a/macos/appkit/combo_box_delegate.gen.go +++ b/macos/appkit/combo_box_delegate.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package appkit @@ -12,14 +12,6 @@ import ( // [Full Topic]: https://developer.apple.com/documentation/appkit/nscomboboxdelegate?language=objc type PComboBoxDelegate interface { PTextFieldDelegate - // optional - ComboBoxSelectionDidChange(notification foundation.Notification) - HasComboBoxSelectionDidChange() bool - - // optional - ComboBoxWillPopUp(notification foundation.Notification) - HasComboBoxWillPopUp() bool - // optional ComboBoxWillDismiss(notification foundation.Notification) HasComboBoxWillDismiss() bool @@ -27,51 +19,25 @@ type PComboBoxDelegate interface { // optional ComboBoxSelectionIsChanging(notification foundation.Notification) HasComboBoxSelectionIsChanging() bool + + // optional + ComboBoxSelectionDidChange(notification foundation.Notification) + HasComboBoxSelectionDidChange() bool + + // optional + ComboBoxWillPopUp(notification foundation.Notification) + HasComboBoxWillPopUp() bool } // A delegate implementation builder for the [PComboBoxDelegate] protocol. type ComboBoxDelegate struct { TextFieldDelegate - _ComboBoxSelectionDidChange func(notification foundation.Notification) - _ComboBoxWillPopUp func(notification foundation.Notification) _ComboBoxWillDismiss func(notification foundation.Notification) _ComboBoxSelectionIsChanging func(notification foundation.Notification) + _ComboBoxSelectionDidChange func(notification foundation.Notification) + _ComboBoxWillPopUp func(notification foundation.Notification) } -func (di *ComboBoxDelegate) HasComboBoxSelectionDidChange() bool { - return di._ComboBoxSelectionDidChange != nil -} - -// Informs the delegate that the pop-up list selection has finished changing. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nscomboboxdelegate/1436769-comboboxselectiondidchange?language=objc -func (di *ComboBoxDelegate) SetComboBoxSelectionDidChange(f func(notification foundation.Notification)) { - di._ComboBoxSelectionDidChange = f -} - -// Informs the delegate that the pop-up list selection has finished changing. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nscomboboxdelegate/1436769-comboboxselectiondidchange?language=objc -func (di *ComboBoxDelegate) ComboBoxSelectionDidChange(notification foundation.Notification) { - di._ComboBoxSelectionDidChange(notification) -} -func (di *ComboBoxDelegate) HasComboBoxWillPopUp() bool { - return di._ComboBoxWillPopUp != nil -} - -// Informs the delegate that the pop-up list is about to be displayed. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nscomboboxdelegate/1436784-comboboxwillpopup?language=objc -func (di *ComboBoxDelegate) SetComboBoxWillPopUp(f func(notification foundation.Notification)) { - di._ComboBoxWillPopUp = f -} - -// Informs the delegate that the pop-up list is about to be displayed. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nscomboboxdelegate/1436784-comboboxwillpopup?language=objc -func (di *ComboBoxDelegate) ComboBoxWillPopUp(notification foundation.Notification) { - di._ComboBoxWillPopUp(notification) -} func (di *ComboBoxDelegate) HasComboBoxWillDismiss() bool { return di._ComboBoxWillDismiss != nil } @@ -106,52 +72,89 @@ func (di *ComboBoxDelegate) SetComboBoxSelectionIsChanging(f func(notification f func (di *ComboBoxDelegate) ComboBoxSelectionIsChanging(notification foundation.Notification) { di._ComboBoxSelectionIsChanging(notification) } - -// A concrete type wrapper for the [PComboBoxDelegate] protocol. -type ComboBoxDelegateWrapper struct { - TextFieldDelegateWrapper +func (di *ComboBoxDelegate) HasComboBoxSelectionDidChange() bool { + return di._ComboBoxSelectionDidChange != nil } -func (c_ ComboBoxDelegateWrapper) HasComboBoxSelectionDidChange() bool { - return c_.RespondsToSelector(objc.Sel("comboBoxSelectionDidChange:")) +// Informs the delegate that the pop-up list selection has finished changing. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/appkit/nscomboboxdelegate/1436769-comboboxselectiondidchange?language=objc +func (di *ComboBoxDelegate) SetComboBoxSelectionDidChange(f func(notification foundation.Notification)) { + di._ComboBoxSelectionDidChange = f } // Informs the delegate that the pop-up list selection has finished changing. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/appkit/nscomboboxdelegate/1436769-comboboxselectiondidchange?language=objc -func (c_ ComboBoxDelegateWrapper) ComboBoxSelectionDidChange(notification foundation.INotification) { - objc.Call[objc.Void](c_, objc.Sel("comboBoxSelectionDidChange:"), objc.Ptr(notification)) +func (di *ComboBoxDelegate) ComboBoxSelectionDidChange(notification foundation.Notification) { + di._ComboBoxSelectionDidChange(notification) +} +func (di *ComboBoxDelegate) HasComboBoxWillPopUp() bool { + return di._ComboBoxWillPopUp != nil } -func (c_ ComboBoxDelegateWrapper) HasComboBoxWillPopUp() bool { - return c_.RespondsToSelector(objc.Sel("comboBoxWillPopUp:")) +// Informs the delegate that the pop-up list is about to be displayed. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/appkit/nscomboboxdelegate/1436784-comboboxwillpopup?language=objc +func (di *ComboBoxDelegate) SetComboBoxWillPopUp(f func(notification foundation.Notification)) { + di._ComboBoxWillPopUp = f } // Informs the delegate that the pop-up list is about to be displayed. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/appkit/nscomboboxdelegate/1436784-comboboxwillpopup?language=objc -func (c_ ComboBoxDelegateWrapper) ComboBoxWillPopUp(notification foundation.INotification) { - objc.Call[objc.Void](c_, objc.Sel("comboBoxWillPopUp:"), objc.Ptr(notification)) +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 (c_ ComboBoxDelegateWrapper) HasComboBoxWillDismiss() bool { +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_ ComboBoxDelegateWrapper) ComboBoxWillDismiss(notification foundation.INotification) { +func (c_ ComboBoxDelegateObject) ComboBoxWillDismiss(notification foundation.Notification) { objc.Call[objc.Void](c_, objc.Sel("comboBoxWillDismiss:"), objc.Ptr(notification)) } -func (c_ ComboBoxDelegateWrapper) HasComboBoxSelectionIsChanging() bool { +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_ ComboBoxDelegateWrapper) ComboBoxSelectionIsChanging(notification foundation.INotification) { +func (c_ ComboBoxDelegateObject) ComboBoxSelectionIsChanging(notification foundation.Notification) { objc.Call[objc.Void](c_, objc.Sel("comboBoxSelectionIsChanging:"), objc.Ptr(notification)) } + +func (c_ ComboBoxDelegateObject) HasComboBoxSelectionDidChange() bool { + return c_.RespondsToSelector(objc.Sel("comboBoxSelectionDidChange:")) +} + +// Informs the delegate that the pop-up list selection has finished changing. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/appkit/nscomboboxdelegate/1436769-comboboxselectiondidchange?language=objc +func (c_ ComboBoxDelegateObject) ComboBoxSelectionDidChange(notification foundation.Notification) { + objc.Call[objc.Void](c_, objc.Sel("comboBoxSelectionDidChange:"), objc.Ptr(notification)) +} + +func (c_ ComboBoxDelegateObject) HasComboBoxWillPopUp() bool { + return c_.RespondsToSelector(objc.Sel("comboBoxWillPopUp:")) +} + +// Informs the delegate that the pop-up list is about to be displayed. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/appkit/nscomboboxdelegate/1436784-comboboxwillpopup?language=objc +func (c_ ComboBoxDelegateObject) ComboBoxWillPopUp(notification foundation.Notification) { + objc.Call[objc.Void](c_, objc.Sel("comboBoxWillPopUp:"), objc.Ptr(notification)) +} diff --git a/macos/appkit/control.gen.go b/macos/appkit/control.gen.go index a21751f8..fbe3874f 100644 --- a/macos/appkit/control.gen.go +++ b/macos/appkit/control.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package appkit @@ -19,67 +19,67 @@ type _ControlClass struct { // An interface definition for the [Control] class. type IControl interface { IView - SendActionTo(action objc.Selector, target objc.IObject) bool + 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 - TakeObjectValueFrom(sender objc.IObject) - InvalidateIntrinsicContentSizeForCell(cell ICell) - ValidateEditing() - TakeStringValueFrom(sender objc.IObject) - CurrentEditor() Text - DrawWithExpansionFrameInView(contentFrame foundation.Rect, view IView) AbortEditing() bool - TakeFloatValueFrom(sender objc.IObject) - TakeDoubleValueFrom(sender objc.IObject) - EditWithFrameEditorDelegateEvent(rect foundation.Rect, textObj IText, delegate objc.IObject, event IEvent) TakeIntegerValueFrom(sender objc.IObject) - EndEditing(textObj IText) + SendActionTo(action objc.Selector, target objc.IObject) bool PerformClick(sender objc.IObject) + TakeObjectValueFrom(sender objc.IObject) + EndEditing(textObj IText) SizeToFit() - TakeIntValueFrom(sender objc.IObject) - SendActionOn(mask EventMask) int + TakeStringValueFrom(sender objc.IObject) + EditWithFrameEditorDelegateEvent(rect foundation.Rect, textObj IText, delegate objc.IObject, event IEvent) ExpansionFrameWithFrame(contentFrame foundation.Rect) foundation.Rect - SelectWithFrameEditorDelegateStartLength(rect foundation.Rect, textObj IText, delegate objc.IObject, selStart int, selLength int) - IntegerValue() int - SetIntegerValue(value int) + CurrentEditor() Text + ValidateEditing() + InvalidateIntrinsicContentSizeForCell(cell ICell) + DrawWithExpansionFrameInView(contentFrame foundation.Rect, view IView) + TakeFloatValueFrom(sender objc.IObject) + Action() objc.Selector + SetAction(value objc.Selector) + BaseWritingDirection() WritingDirection + SetBaseWritingDirection(value WritingDirection) IsHighlighted() bool SetHighlighted(value bool) + Formatter() foundation.Formatter + SetFormatter(value foundation.IFormatter) + FloatValue() float64 + SetFloatValue(value float64) 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) - Target() objc.Object - SetTarget(value objc.IObject) + Font() Font + SetFont(value IFont) + IgnoresMultiClick() bool + SetIgnoresMultiClick(value bool) UsesSingleLineMode() bool SetUsesSingleLineMode(value bool) - Action() objc.Selector - SetAction(value objc.Selector) + IntegerValue() int + SetIntegerValue(value int) AllowsExpansionToolTips() bool SetAllowsExpansionToolTips(value bool) IsContinuous() bool SetContinuous(value bool) - AttributedStringValue() foundation.AttributedString - SetAttributedStringValue(value foundation.IAttributedString) - StringValue() string - SetStringValue(value string) - 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() float64 - SetFloatValue(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) RefusesFirstResponder() bool SetRefusesFirstResponder(value bool) } @@ -116,10 +116,6 @@ func (cc _ControlClass) Alloc() Control { return rv } -func Control_Alloc() Control { - return ControlClass.Alloc() -} - func (cc _ControlClass) New() Control { rv := objc.Call[Control](cc, objc.Sel("new")) rv.Autorelease() @@ -135,63 +131,41 @@ func (c_ Control) Init() Control { return rv } -// Causes the specified action to be sent to the target. [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 -} - -// 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/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 the object 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) -} - -// Notifies the control that the intrinsic content size for its cell is no longer valid. [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/1526876-invalidateintrinsiccontentsizefo?language=objc -func (c_ Control) InvalidateIntrinsicContentSizeForCell(cell ICell) { - objc.Call[objc.Void](c_, objc.Sel("invalidateIntrinsicContentSizeForCell:"), objc.Ptr(cell)) +// [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) } -// Validates changes to any user-typed text. [Full Topic] +// Selects the specified text range in the receiver's field editor. [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/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, objc.Ptr(textObj), delegate, selStart, selLength) } -// 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 a double-precision floating-point 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/1428958-takedoublevaluefrom?language=objc +func (c_ Control) TakeDoubleValueFrom(sender objc.IObject) { + objc.Call[objc.Void](c_, objc.Sel("takeDoubleValueFrom:"), sender) } -// Returns the current field editor for the control. [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/1428980-currenteditor?language=objc -func (c_ Control) CurrentEditor() Text { - rv := objc.Call[Text](c_, objc.Sel("currentEditor")) +// [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 } -// Performs custom expansion tool tip drawing. [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/1428895-drawwithexpansionframe?language=objc -func (c_ Control) DrawWithExpansionFrameInView(contentFrame foundation.Rect, view IView) { - objc.Call[objc.Void](c_, objc.Sel("drawWithExpansionFrame:inView:"), contentFrame, objc.Ptr(view)) +// [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 } // Terminates the current editing operation and discards any edited text. [Full Topic] @@ -202,32 +176,33 @@ func (c_ Control) AbortEditing() bool { return rv } -// Sets the value of the receiver’s cell to a single-precision floating-point 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/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/1428875-takeintegervaluefrom?language=objc +func (c_ Control) TakeIntegerValueFrom(sender objc.IObject) { + objc.Call[objc.Void](c_, objc.Sel("takeIntegerValueFrom:"), sender) } -// Sets the value of the receiver’s cell to a double-precision floating-point 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/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/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 } -// Begins editing of the receiver’s text using the specified field editor. [Full Topic] +// Simulates a single mouse click on the receiver. [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, objc.Ptr(textObj), delegate, objc.Ptr(event)) +// [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) } -// 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 the object 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/1428853-takeobjectvaluefrom?language=objc +func (c_ Control) TakeObjectValueFrom(sender objc.IObject) { + objc.Call[objc.Void](c_, objc.Sel("takeObjectValueFrom:"), sender) } // Ends the editing of text in the receiver using the specified field editor. [Full Topic] @@ -237,13 +212,6 @@ func (c_ Control) EndEditing(textObj IText) { objc.Call[objc.Void](c_, objc.Sel("endEditing:"), objc.Ptr(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 @@ -251,19 +219,18 @@ func (c_ Control) SizeToFit() { objc.Call[objc.Void](c_, objc.Sel("sizeToFit")) } -// Sets the value of the receiver’s cell to an integer value obtained from the specified object. [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/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/1428912-takestringvaluefrom?language=objc +func (c_ Control) TakeStringValueFrom(sender objc.IObject) { + objc.Call[objc.Void](c_, objc.Sel("takeStringValueFrom:"), sender) } -// Sets the conditions on which the receiver sends action messages to its target. [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/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/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, objc.Ptr(textObj), delegate, objc.Ptr(event)) } // The frame in which a tool tip can be displayed, if needed. [Full Topic] @@ -274,176 +241,152 @@ func (c_ Control) ExpansionFrameWithFrame(contentFrame foundation.Rect) foundati return rv } -// Selects the specified text range in the receiver's field editor. [Full Topic] +// Returns the current field editor for the control. [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, objc.Ptr(textObj), delegate, selStart, selLength) +// [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 } -// The value of the receiver’s cell as an NSInteger value. [Full Topic] +// Validates changes to any user-typed text. [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")) - return rv +// [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")) } -// The value of the receiver’s cell as an NSInteger value. [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/1428969-integervalue?language=objc -func (c_ Control) SetIntegerValue(value int) { - objc.Call[objc.Void](c_, objc.Sel("setIntegerValue:"), value) +// [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:"), objc.Ptr(cell)) } -// A Boolean value that indicates whether the cell is highlighted. [Full Topic] +// Performs custom expansion tool tip drawing. [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")) - return rv +// [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, objc.Ptr(view)) } -// A Boolean value that indicates whether the cell is highlighted. [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/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/1428938-takefloatvaluefrom?language=objc +func (c_ Control) TakeFloatValueFrom(sender objc.IObject) { + objc.Call[objc.Void](c_, objc.Sel("takeFloatValueFrom:"), sender) } -// The value of the receiver’s cell as an integer. [Full Topic] +// The default action-message selector associated with the control. [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/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 an integer. [Full Topic] +// The default action-message selector associated with the control. [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) -} - -// The size of the control. [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")) - return rv -} - -// The size of the control. [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/1428956-action?language=objc +func (c_ Control) SetAction(value objc.Selector) { + objc.Call[objc.Void](c_, objc.Sel("setAction:"), value) } -// The target object that receives action messages from 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/nscontrol/1428885-target?language=objc -func (c_ Control) Target() objc.Object { - rv := objc.Call[objc.Object](c_, objc.Sel("target")) +// [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 } -// The target object that receives action messages from 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/nscontrol/1428885-target?language=objc -func (c_ Control) SetTarget(value objc.IObject) { - objc.Call[objc.Void](c_, objc.Sel("setTarget:"), 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) } -// A Boolean value that indicates whether the text in the control’s cell uses single line mode. [Full Topic] +// A Boolean value that indicates whether the cell is highlighted. [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")) +// [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 } -// A Boolean value that indicates whether the text in the control’s cell uses single line mode. [Full Topic] +// A Boolean value that indicates whether the cell is highlighted. [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) +// [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 receiver’s formatter. [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/1428887-formatter?language=objc +func (c_ Control) Formatter() foundation.Formatter { + rv := objc.Call[foundation.Formatter](c_, objc.Sel("formatter")) return rv } -// The default action-message selector associated with the control. [Full Topic] +// The receiver’s formatter. [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/1428887-formatter?language=objc +func (c_ Control) SetFormatter(value foundation.IFormatter) { + objc.Call[objc.Void](c_, objc.Sel("setFormatter:"), objc.Ptr(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 a single-precision floating-point number. [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")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nscontrol/1428889-floatvalue?language=objc +func (c_ Control) FloatValue() float64 { + rv := objc.Call[float64](c_, objc.Sel("floatValue")) return rv } -// 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 a single-precision floating-point number. [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/1428889-floatvalue?language=objc +func (c_ Control) SetFloatValue(value float64) { + objc.Call[objc.Void](c_, objc.Sel("setFloatValue:"), value) } -// A Boolean value indicating whether the receiver’s cell sends its action message continuously to its target during mouse tracking. [Full Topic] +// The value of the receiver’s cell as an integer. [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/1428939-intvalue?language=objc +func (c_ Control) IntValue() int { + rv := objc.Call[int](c_, objc.Sel("intValue")) return rv } -// 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/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] +// The value of the receiver’s cell as an integer. [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 +// [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 value of the receiver’s cell as an attributed string. [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/1428916-attributedstringvalue?language=objc -func (c_ Control) SetAttributedStringValue(value foundation.IAttributedString) { - objc.Call[objc.Void](c_, objc.Sel("setAttributedStringValue:"), objc.Ptr(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) } -// The value of the receiver’s cell as an NSString object. [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/1428950-stringvalue?language=objc -func (c_ Control) StringValue() string { - rv := objc.Call[string](c_, objc.Sel("stringValue")) +// [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 NSString object. [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/1428950-stringvalue?language=objc -func (c_ Control) SetStringValue(value string) { - objc.Call[objc.Void](c_, objc.Sel("setStringValue:"), value) +// [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) } // The alignment mode of the text in the receiver’s cell. [Full Topic] @@ -461,34 +404,19 @@ func (c_ Control) SetAlignment(value TextAlignment) { objc.Call[objc.Void](c_, objc.Sel("setAlignment:"), value) } -// The receiver’s formatter. [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")) - return rv -} - -// The receiver’s formatter. [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:"), objc.Ptr(value)) -} - -// The value of the receiver’s cell as a double-precision floating-point number. [Full Topic] +// The size of the control. [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/1428871-controlsize?language=objc +func (c_ Control) ControlSize() ControlSize { + rv := objc.Call[ControlSize](c_, objc.Sel("controlSize")) return rv } -// The value of the receiver’s cell as a double-precision floating-point number. [Full Topic] +// The size of the control. [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/1428871-controlsize?language=objc +func (c_ Control) SetControlSize(value ControlSize) { + objc.Call[objc.Void](c_, objc.Sel("setControlSize:"), value) } // The font used to draw text in the receiver’s cell. [Full Topic] @@ -521,56 +449,79 @@ func (c_ Control) SetIgnoresMultiClick(value bool) { objc.Call[objc.Void](c_, objc.Sel("setIgnoresMultiClick:"), value) } -// The value of the receiver’s cell as an Objective-C object. [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/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/1428929-usessinglelinemode?language=objc +func (c_ Control) UsesSingleLineMode() bool { + rv := objc.Call[bool](c_, objc.Sel("usesSingleLineMode")) return rv } -// The value of the receiver’s cell as an Objective-C object. [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/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/1428929-usessinglelinemode?language=objc +func (c_ Control) SetUsesSingleLineMode(value bool) { + objc.Call[objc.Void](c_, objc.Sel("setUsesSingleLineMode:"), value) } -// The tag identifying the receiver (not the tag of the receiver’s cell). [Full Topic] +// The value of the receiver’s cell as an NSInteger value. [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/1428969-integervalue?language=objc +func (c_ Control) IntegerValue() int { + rv := objc.Call[int](c_, objc.Sel("integerValue")) + return rv } -// The initial writing direction used to determine the actual writing direction for 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/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/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] +// +// [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 initial writing direction used to determine the actual writing direction for text. [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/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/1428962-allowsexpansiontooltips?language=objc +func (c_ Control) SetAllowsExpansionToolTips(value bool) { + objc.Call[objc.Void](c_, objc.Sel("setAllowsExpansionToolTips:"), value) } -// The value of the receiver’s cell as a single-precision floating-point number. [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/1428889-floatvalue?language=objc -func (c_ Control) FloatValue() float64 { - rv := objc.Call[float64](c_, objc.Sel("floatValue")) +// [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 a single-precision floating-point number. [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/1428889-floatvalue?language=objc -func (c_ Control) SetFloatValue(value float64) { - objc.Call[objc.Void](c_, objc.Sel("setFloatValue:"), value) +// [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 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) } // A Boolean value that indicates whether the receiver reacts to mouse events. [Full Topic] @@ -588,6 +539,51 @@ 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:"), objc.Ptr(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 d7353bcc..b0e6ec29 100644 --- a/macos/appkit/control_text_editing_delegate.gen.go +++ b/macos/appkit/control_text_editing_delegate.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package appkit @@ -11,13 +11,37 @@ 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 - ControlTextDidBeginEditing(obj foundation.Notification) - HasControlTextDidBeginEditing() bool + ControlDidFailToFormatStringErrorDescription(control Control, string_ string, error string) bool + HasControlDidFailToFormatStringErrorDescription() bool // optional ControlTextDidEndEditing(obj foundation.Notification) @@ -30,12 +54,120 @@ type PControlTextEditingDelegate interface { // A delegate implementation builder for the [PControlTextEditingDelegate] protocol. type ControlTextEditingDelegate struct { - _ControlTextDidChange func(obj foundation.Notification) - _ControlTextDidBeginEditing func(obj foundation.Notification) - _ControlTextDidEndEditing func(obj foundation.Notification) - _ControlTextShouldEndEditing func(control Control, fieldEditor Text) bool + _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 +} + +// 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 } @@ -53,22 +185,22 @@ func (di *ControlTextEditingDelegate) SetControlTextDidChange(f func(obj foundat func (di *ControlTextEditingDelegate) ControlTextDidChange(obj foundation.Notification) { di._ControlTextDidChange(obj) } -func (di *ControlTextEditingDelegate) HasControlTextDidBeginEditing() bool { - return di._ControlTextDidBeginEditing != nil +func (di *ControlTextEditingDelegate) HasControlDidFailToFormatStringErrorDescription() bool { + return di._ControlDidFailToFormatStringErrorDescription != nil } -// Tells the delegate that the control started editing its text content. [Full Topic] +// Invoked when the formatter for the cell belonging to the specified control cannot convert a string to an underlying object. [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 +// [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 } -// Tells the delegate that the control started editing its text content. [Full Topic] +// Invoked when the formatter for the cell belonging to the specified control cannot convert a string to an underlying object. [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) +// [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) } func (di *ControlTextEditingDelegate) HasControlTextDidEndEditing() bool { return di._ControlTextDidEndEditing != nil @@ -105,52 +237,126 @@ func (di *ControlTextEditingDelegate) ControlTextShouldEndEditing(control Contro return di._ControlTextShouldEndEditing(control, fieldEditor) } -// A concrete type wrapper for the [PControlTextEditingDelegate] protocol. -type ControlTextEditingDelegateWrapper struct { +// ensure impl type implements protocol interface +var _ PControlTextEditingDelegate = (*ControlTextEditingDelegateObject)(nil) + +// A concrete type for the [PControlTextEditingDelegate] protocol. +type ControlTextEditingDelegateObject struct { objc.Object } -func (c_ ControlTextEditingDelegateWrapper) HasControlTextDidChange() bool { +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:"), objc.Ptr(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:"), objc.Ptr(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:"), objc.Ptr(control), objc.Ptr(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:"), objc.Ptr(control), objc.Ptr(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:"), objc.Ptr(control), objc.Ptr(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:"), objc.Ptr(control), string_, error) +} + +func (c_ ControlTextEditingDelegateObject) HasControlTextDidChange() bool { return c_.RespondsToSelector(objc.Sel("controlTextDidChange:")) } // Tells the delegate that the control made changes to its text content. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/appkit/nscontroltexteditingdelegate/3005177-controltextdidchange?language=objc -func (c_ ControlTextEditingDelegateWrapper) ControlTextDidChange(obj foundation.INotification) { +func (c_ ControlTextEditingDelegateObject) ControlTextDidChange(obj foundation.Notification) { objc.Call[objc.Void](c_, objc.Sel("controlTextDidChange:"), objc.Ptr(obj)) } -func (c_ ControlTextEditingDelegateWrapper) HasControlTextDidBeginEditing() bool { - return c_.RespondsToSelector(objc.Sel("controlTextDidBeginEditing:")) +func (c_ ControlTextEditingDelegateObject) HasControlDidFailToFormatStringErrorDescription() bool { + return c_.RespondsToSelector(objc.Sel("control:didFailToFormatString:errorDescription:")) } -// Tells the delegate that the control started editing its text content. [Full Topic] +// Invoked when the formatter for the cell belonging to the specified control cannot convert a string to an underlying object. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nscontroltexteditingdelegate/3005176-controltextdidbeginediting?language=objc -func (c_ ControlTextEditingDelegateWrapper) ControlTextDidBeginEditing(obj foundation.INotification) { - objc.Call[objc.Void](c_, objc.Sel("controlTextDidBeginEditing:"), objc.Ptr(obj)) +// [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:"), objc.Ptr(control), string_, error) + return rv } -func (c_ ControlTextEditingDelegateWrapper) HasControlTextDidEndEditing() bool { +func (c_ ControlTextEditingDelegateObject) HasControlTextDidEndEditing() bool { return c_.RespondsToSelector(objc.Sel("controlTextDidEndEditing:")) } // Tells the delegate that the control finished editing its text content and committed the changes. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/appkit/nscontroltexteditingdelegate/3005178-controltextdidendediting?language=objc -func (c_ ControlTextEditingDelegateWrapper) ControlTextDidEndEditing(obj foundation.INotification) { +func (c_ ControlTextEditingDelegateObject) ControlTextDidEndEditing(obj foundation.Notification) { objc.Call[objc.Void](c_, objc.Sel("controlTextDidEndEditing:"), objc.Ptr(obj)) } -func (c_ ControlTextEditingDelegateWrapper) HasControlTextShouldEndEditing() bool { +func (c_ ControlTextEditingDelegateObject) HasControlTextShouldEndEditing() bool { return c_.RespondsToSelector(objc.Sel("control:textShouldEndEditing:")) } // Invoked when the insertion point tries to leave a cell of the control that has been edited. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/appkit/nscontroltexteditingdelegate/1428984-control?language=objc -func (c_ ControlTextEditingDelegateWrapper) ControlTextShouldEndEditing(control IControl, fieldEditor IText) bool { +func (c_ ControlTextEditingDelegateObject) ControlTextShouldEndEditing(control Control, fieldEditor Text) bool { rv := objc.Call[bool](c_, objc.Sel("control:textShouldEndEditing:"), objc.Ptr(control), objc.Ptr(fieldEditor)) return rv } diff --git a/macos/appkit/controller.gen.go b/macos/appkit/controller.gen.go index ccaf26b7..4b4bb42a 100644 --- a/macos/appkit/controller.gen.go +++ b/macos/appkit/controller.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package appkit @@ -18,13 +18,13 @@ type _ControllerClass struct { // An interface definition for the [Controller] class. type IController interface { objc.IObject - CommitEditing() bool + DiscardEditing() ObjectDidBeginEditing(editor PEditor) ObjectDidBeginEditingObject(editorObject objc.IObject) ObjectDidEndEditing(editor PEditor) ObjectDidEndEditingObject(editorObject objc.IObject) CommitEditingWithDelegateDidCommitSelectorContextInfo(delegate objc.IObject, didCommitSelector objc.Selector, contextInfo unsafe.Pointer) - DiscardEditing() + CommitEditing() bool IsEditing() bool } @@ -51,10 +51,6 @@ func (cc _ControllerClass) Alloc() Controller { return rv } -func Controller_Alloc() Controller { - return ControllerClass.Alloc() -} - func (cc _ControllerClass) New() Controller { rv := objc.Call[Controller](cc, objc.Sel("new")) rv.Autorelease() @@ -65,12 +61,11 @@ func NewController() Controller { return ControllerClass.New() } -// 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")) } // Invoked to inform the receiver that editor has uncommitted changes that can affect the receiver. [Full Topic] @@ -110,11 +105,12 @@ func (c_ Controller) CommitEditingWithDelegateDidCommitSelectorContextInfo(deleg objc.Call[objc.Void](c_, objc.Sel("commitEditingWithDelegate:didCommitSelector:contextInfo:"), delegate, didCommitSelector, contextInfo) } -// 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 } // 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 93c39b06..ba34505c 100644 --- a/macos/appkit/cursor.gen.go +++ b/macos/appkit/cursor.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package appkit @@ -19,8 +19,8 @@ type _CursorClass struct { // An interface definition for the [Cursor] class. type ICursor interface { objc.IObject - Set() Push() + Set() HotSpot() foundation.Point Image() Image } @@ -38,13 +38,23 @@ func CursorFrom(ptr unsafe.Pointer) Cursor { } } -func (cc _CursorClass) Alloc() Cursor { - rv := objc.Call[Cursor](cc, objc.Sel("alloc")) +func (c_ Cursor) InitWithImageHotSpot(newImage IImage, point foundation.Point) Cursor { + rv := objc.Call[Cursor](c_, objc.Sel("initWithImage:hotSpot:"), objc.Ptr(newImage), point) return rv } -func Cursor_Alloc() Cursor { - return CursorClass.Alloc() +// 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 } func (cc _CursorClass) New() Cursor { @@ -62,6 +72,27 @@ 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 @@ -76,6 +107,20 @@ 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 @@ -83,83 +128,71 @@ func (c_ Cursor) Set() { objc.Call[objc.Void](c_, objc.Sel("set")) } -// 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] +// Negates an earlier call to [appkit/nscursor/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 hide by showing the current cursor. [Full Topic] +// Negates an earlier call to [appkit/nscursor/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() } -// 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] +// Returns the application’s current cursor. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nscursor/1532104-pop?language=objc -func Cursor_Pop() { - CursorClass.Pop() +// [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 } -// Sets whether the cursor is hidden until the mouse moves. [Full Topic] +// Returns the application’s current cursor. [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) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nscursor/1524595-currentcursor?language=objc +func Cursor_CurrentCursor() Cursor { + return CursorClass.CurrentCursor() } -// Sets whether the cursor is hidden until the mouse moves. [Full Topic] +// The position of the cursor's hot spot. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nscursor/1534665-sethiddenuntilmousemoves?language=objc -func Cursor_SetHiddenUntilMouseMoves(flag bool) { - CursorClass.SetHiddenUntilMouseMoves(flag) +// [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 resize-right 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/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/1526109-ibeamcursor?language=objc +func (cc _CursorClass) IBeamCursor() Cursor { + rv := objc.Call[Cursor](cc, objc.Sel("IBeamCursor")) return rv } -// Returns the resize-right 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/1526314-resizerightcursor?language=objc -func Cursor_ResizeRightCursor() Cursor { - return CursorClass.ResizeRightCursor() +// [Full Topic]: https://developer.apple.com/documentation/appkit/nscursor/1526109-ibeamcursor?language=objc +func Cursor_IBeamCursor() Cursor { + return CursorClass.IBeamCursor() } -// Returns the resize-left system 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/1535416-resizeleftcursor?language=objc -func (cc _CursorClass) ResizeLeftCursor() Cursor { - rv := objc.Call[Cursor](cc, objc.Sel("resizeLeftCursor")) +// [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 resize-left system 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/1535416-resizeleftcursor?language=objc -func Cursor_ResizeLeftCursor() Cursor { - return CursorClass.ResizeLeftCursor() +// [Full Topic]: https://developer.apple.com/documentation/appkit/nscursor/1534435-draglinkcursor?language=objc +func Cursor_DragLinkCursor() Cursor { + return CursorClass.DragLinkCursor() } // Returns a cursor indicating that the current operation will result in a copy action. [Full Topic] @@ -177,87 +210,79 @@ func Cursor_DragCopyCursor() Cursor { return CursorClass.DragCopyCursor() } -// Returns the resize-up-and-down system cursor. [Full Topic] +// Returns the resize-right 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/1526314-resizerightcursor?language=objc +func (cc _CursorClass) ResizeRightCursor() Cursor { + rv := objc.Call[Cursor](cc, objc.Sel("resizeRightCursor")) return rv } -// Returns the resize-up-and-down system cursor. [Full Topic] +// Returns the resize-right system 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/1526314-resizerightcursor?language=objc +func Cursor_ResizeRightCursor() Cursor { + return CursorClass.ResizeRightCursor() } -// 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 pointing-hand system cursor. [Full Topic] +// Returns the resize-down system cursor. [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/1531340-resizedowncursor?language=objc +func (cc _CursorClass) ResizeDownCursor() Cursor { + rv := objc.Call[Cursor](cc, objc.Sel("resizeDownCursor")) return rv } -// Returns the pointing-hand system cursor. [Full Topic] +// Returns the resize-down 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/1531340-resizedowncursor?language=objc +func Cursor_ResizeDownCursor() Cursor { + return CursorClass.ResizeDownCursor() } -// 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-up system cursor. [Full Topic] +// Returns the closed-hand 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/1524603-closedhandcursor?language=objc +func (cc _CursorClass) ClosedHandCursor() Cursor { + rv := objc.Call[Cursor](cc, objc.Sel("closedHandCursor")) return rv } -// Returns the resize-up system cursor. [Full Topic] -// -// [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] +// Returns the closed-hand system cursor. [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/1524603-closedhandcursor?language=objc +func Cursor_ClosedHandCursor() Cursor { + return CursorClass.ClosedHandCursor() } // Returns the contextual menu system cursor. [Full Topic] @@ -290,6 +315,21 @@ 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 @@ -305,79 +345,64 @@ func Cursor_CrosshairCursor() Cursor { return CursorClass.CrosshairCursor() } -// Returns the default cursor, the arrow cursor. [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")) - return rv -} - -// Returns the default cursor, the arrow cursor. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nscursor/1527160-arrowcursor?language=objc -func Cursor_ArrowCursor() Cursor { - return CursorClass.ArrowCursor() -} - -// Returns a cursor that looks like a capital I with a tiny crossbeam at its middle. [Full Topic] +// Returns the resize-left-and-right system cursor. [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/1525074-resizeleftrightcursor?language=objc +func (cc _CursorClass) ResizeLeftRightCursor() Cursor { + rv := objc.Call[Cursor](cc, objc.Sel("resizeLeftRightCursor")) return rv } -// Returns a cursor that looks like a capital I with a tiny crossbeam at its middle. [Full Topic] +// Returns the resize-left-and-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/1525074-resizeleftrightcursor?language=objc +func Cursor_ResizeLeftRightCursor() Cursor { + return CursorClass.ResizeLeftRightCursor() } -// Returns the resize-down system cursor. [Full Topic] +// Returns the open-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/1528540-openhandcursor?language=objc +func (cc _CursorClass) OpenHandCursor() Cursor { + rv := objc.Call[Cursor](cc, objc.Sel("openHandCursor")) return rv } -// Returns the resize-down system cursor. [Full Topic] +// Returns the open-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/1528540-openhandcursor?language=objc +func Cursor_OpenHandCursor() Cursor { + return CursorClass.OpenHandCursor() } -// Returns a cursor indicating that the current operation will result in a link action. [Full Topic] +// Returns the resize-up 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/1532226-resizeupcursor?language=objc +func (cc _CursorClass) ResizeUpCursor() Cursor { + rv := objc.Call[Cursor](cc, objc.Sel("resizeUpCursor")) return rv } -// Returns a cursor indicating that the current operation will result in a link action. [Full Topic] +// Returns the resize-up 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/1532226-resizeupcursor?language=objc +func Cursor_ResizeUpCursor() Cursor { + return CursorClass.ResizeUpCursor() } -// Returns the closed-hand system cursor. [Full Topic] +// Returns the default cursor, the arrow 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/1527160-arrowcursor?language=objc +func (cc _CursorClass) ArrowCursor() Cursor { + rv := objc.Call[Cursor](cc, objc.Sel("arrowCursor")) return rv } -// Returns the closed-hand system cursor. [Full Topic] +// Returns the default cursor, the arrow 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/1527160-arrowcursor?language=objc +func Cursor_ArrowCursor() Cursor { + return CursorClass.ArrowCursor() } // Returns the operation not allowed cursor. [Full Topic] @@ -395,55 +420,40 @@ func Cursor_OperationNotAllowedCursor() Cursor { return CursorClass.OperationNotAllowedCursor() } -// The cursor’s image. [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")) - return rv -} - -// Returns the resize-left-and-right system cursor. [Full Topic] +// Returns the pointing-hand system 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/1531896-pointinghandcursor?language=objc +func (cc _CursorClass) PointingHandCursor() Cursor { + rv := objc.Call[Cursor](cc, objc.Sel("pointingHandCursor")) return rv } -// Returns the resize-left-and-right system cursor. [Full Topic] +// Returns the pointing-hand system 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/1531896-pointinghandcursor?language=objc +func Cursor_PointingHandCursor() Cursor { + return CursorClass.PointingHandCursor() } -// Returns the open-hand system cursor. [Full Topic] +// The cursor’s image. [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/1527062-image?language=objc +func (c_ Cursor) Image() Image { + rv := objc.Call[Image](c_, objc.Sel("image")) return rv } -// Returns the open-hand system cursor. [Full Topic] -// -// [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] +// Returns the resize-up-and-down system 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")) +// [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 application’s current cursor. [Full Topic] +// Returns the resize-up-and-down system cursor. [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/1524641-resizeupdowncursor?language=objc +func Cursor_ResizeUpDownCursor() Cursor { + return CursorClass.ResizeUpDownCursor() } diff --git a/macos/appkit/custom_image_rep.gen.go b/macos/appkit/custom_image_rep.gen.go index cd921c57..c3064af6 100644 --- a/macos/appkit/custom_image_rep.gen.go +++ b/macos/appkit/custom_image_rep.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package appkit @@ -19,8 +19,8 @@ type _CustomImageRepClass struct { // An interface definition for the [CustomImageRep] class. type ICustomImageRep interface { IImageRep - DrawSelector() objc.Selector DrawingHandler() func(arg0 foundation.Rect) bool + DrawSelector() objc.Selector Delegate() objc.Object } @@ -70,10 +70,6 @@ func (cc _CustomImageRepClass) Alloc() CustomImageRep { return rv } -func CustomImageRep_Alloc() CustomImageRep { - return CustomImageRepClass.Alloc() -} - func (cc _CustomImageRepClass) New() CustomImageRep { rv := objc.Call[CustomImageRep](cc, objc.Sel("new")) rv.Autorelease() @@ -89,14 +85,6 @@ func (c_ CustomImageRep) Init() CustomImageRep { 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 -func (c_ CustomImageRep) DrawSelector() objc.Selector { - rv := objc.Call[objc.Selector](c_, objc.Sel("drawSelector")) - 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 @@ -105,6 +93,14 @@ func (c_ CustomImageRep) DrawingHandler() func(arg0 foundation.Rect) bool { 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 +func (c_ CustomImageRep) DrawSelector() objc.Selector { + rv := objc.Call[objc.Selector](c_, objc.Sel("drawSelector")) + 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/custom_touch_bar_item.gen.go b/macos/appkit/custom_touch_bar_item.gen.go index 895feb89..87fd4133 100644 --- a/macos/appkit/custom_touch_bar_item.gen.go +++ b/macos/appkit/custom_touch_bar_item.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package appkit @@ -41,10 +41,6 @@ func (cc _CustomTouchBarItemClass) Alloc() CustomTouchBarItem { return rv } -func CustomTouchBarItem_Alloc() CustomTouchBarItem { - return CustomTouchBarItemClass.Alloc() -} - func (cc _CustomTouchBarItemClass) New() CustomTouchBarItem { rv := objc.Call[CustomTouchBarItem](cc, objc.Sel("new")) rv.Autorelease() diff --git a/macos/appkit/data_asset.gen.go b/macos/appkit/data_asset.gen.go index f24b4430..a7845db0 100644 --- a/macos/appkit/data_asset.gen.go +++ b/macos/appkit/data_asset.gen.go @@ -1,10 +1,11 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package appkit import ( "unsafe" + "github.com/progrium/macdriver/macos/foundation" "github.com/progrium/macdriver/objc" ) @@ -50,13 +51,23 @@ func NewDataAssetWithName(name DataAssetName) DataAsset { return instance } -func (dc _DataAssetClass) Alloc() DataAsset { - rv := objc.Call[DataAsset](dc, objc.Sel("alloc")) +func (d_ DataAsset) InitWithNameBundle(name DataAssetName, bundle foundation.IBundle) DataAsset { + rv := objc.Call[DataAsset](d_, objc.Sel("initWithName:bundle:"), name, objc.Ptr(bundle)) return rv } -func DataAsset_Alloc() DataAsset { - return DataAssetClass.Alloc() +// 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 } func (dc _DataAssetClass) New() DataAsset { diff --git a/macos/appkit/date_picker.gen.go b/macos/appkit/date_picker.gen.go index 4d29b85a..6af51476 100644 --- a/macos/appkit/date_picker.gen.go +++ b/macos/appkit/date_picker.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package appkit @@ -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) - Delegate() DatePickerCellDelegateWrapper - SetDelegate(value PDatePickerCellDelegate) - SetDelegateObject(valueObject objc.IObject) + PresentsCalendarOverlay() bool + SetPresentsCalendarOverlay(value bool) 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) - PresentsCalendarOverlay() bool - SetPresentsCalendarOverlay(value bool) - TextColor() Color - SetTextColor(value IColor) + DatePickerElements() DatePickerElementFlags + SetDatePickerElements(value DatePickerElementFlags) 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) - IsBezeled() bool - SetBezeled(value bool) + 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) } // A display of a calendar date with controls for editing the date value. [Full Topic] @@ -74,10 +74,6 @@ func (dc _DatePickerClass) Alloc() DatePicker { return rv } -func DatePicker_Alloc() DatePicker { - return DatePickerClass.Alloc() -} - func (dc _DatePickerClass) New() DatePicker { rv := objc.Call[DatePicker](dc, objc.Sel("new")) rv.Autorelease() @@ -107,51 +103,6 @@ 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 @@ -167,28 +118,19 @@ func (d_ DatePicker) SetLocale(value foundation.ILocale) { objc.Call[objc.Void](d_, objc.Sel("setLocale:"), objc.Ptr(value)) } -// A delegate for the date picker’s cell [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/1533878-delegate?language=objc -func (d_ DatePicker) Delegate() DatePickerCellDelegateWrapper { - rv := objc.Call[DatePickerCellDelegateWrapper](d_, objc.Sel("delegate")) +// [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 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] +// 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/1533878-delegate?language=objc -func (d_ DatePicker) SetDelegateObject(valueObject objc.IObject) { - objc.Call[objc.Void](d_, objc.Sel("setDelegate:"), objc.Ptr(valueObject)) +// [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 background color. [Full Topic] @@ -221,36 +163,6 @@ func (d_ DatePicker) SetMinDate(value foundation.IDate) { objc.Call[objc.Void](d_, objc.Sel("setMinDate:"), objc.Ptr(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:"), objc.Ptr(value)) -} - // The date selected by the date picker. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/appkit/nsdatepicker/1527606-datevalue?language=objc @@ -266,34 +178,19 @@ func (d_ DatePicker) SetDateValue(value foundation.IDate) { objc.Call[objc.Void](d_, objc.Sel("setDateValue:"), objc.Ptr(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] -// -// [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 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/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] +// 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/1534294-textcolor?language=objc -func (d_ DatePicker) TextColor() Color { - rv := objc.Call[Color](d_, objc.Sel("textColor")) +// [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 } -// The date picker’s text color. [Full Topic] +// 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/1534294-textcolor?language=objc -func (d_ DatePicker) SetTextColor(value IColor) { - objc.Call[objc.Void](d_, objc.Sel("setTextColor:"), objc.Ptr(value)) +// [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 calendar used by the date picker. [Full Topic] @@ -311,6 +208,30 @@ func (d_ DatePicker) SetCalendar(value foundation.ICalendar) { objc.Call[objc.Void](d_, objc.Sel("setCalendar:"), objc.Ptr(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:"), objc.Ptr(valueObject)) +} + // The date picker’s mode. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/appkit/nsdatepicker/1527214-datepickermode?language=objc @@ -326,6 +247,21 @@ 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 @@ -341,19 +277,34 @@ func (d_ DatePicker) SetMaxDate(value foundation.IDate) { objc.Call[objc.Void](d_, objc.Sel("setMaxDate:"), objc.Ptr(value)) } -// A Boolean value that indicates whether the date picker draws a bezeled border. [Full Topic] +// The date picker’s text color. [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")) +// [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 } -// A Boolean value that indicates whether the date picker draws a bezeled border. [Full Topic] +// The date picker’s text color. [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) +// [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:"), objc.Ptr(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:"), objc.Ptr(value)) } // The date picker’s style. [Full Topic] @@ -370,3 +321,48 @@ 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 b45e41b6..b96634d9 100644 --- a/macos/appkit/date_picker_cell.gen.go +++ b/macos/appkit/date_picker_cell.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package appkit @@ -19,35 +19,35 @@ type _DatePickerCellClass struct { // An interface definition for the [DatePickerCell] class. type IDatePickerCell interface { IActionCell - DatePickerElements() DatePickerElementFlags - SetDatePickerElements(value DatePickerElementFlags) + MinDate() foundation.Date + SetMinDate(value foundation.IDate) + DrawsBackground() bool + SetDrawsBackground(value bool) TimeInterval() foundation.TimeInterval SetTimeInterval(value foundation.TimeInterval) - Locale() foundation.Locale - SetLocale(value foundation.ILocale) - Delegate() DatePickerCellDelegateWrapper + DatePickerStyle() DatePickerStyle + SetDatePickerStyle(value DatePickerStyle) + MaxDate() foundation.Date + SetMaxDate(value foundation.IDate) + DatePickerMode() DatePickerMode + SetDatePickerMode(value DatePickerMode) + DatePickerElements() DatePickerElementFlags + SetDatePickerElements(value DatePickerElementFlags) + 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) - 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) + DateValue() foundation.Date + SetDateValue(value foundation.IDate) } // An object that controls the behavior of a date picker, or of a single date picker cell in a matrix. [Full Topic] @@ -82,10 +82,6 @@ func (dc _DatePickerCellClass) Alloc() DatePickerCell { return rv } -func DatePickerCell_Alloc() DatePickerCell { - return DatePickerCellClass.Alloc() -} - func (dc _DatePickerCellClass) New() DatePickerCell { rv := objc.Call[DatePickerCell](dc, objc.Sel("new")) rv.Autorelease() @@ -115,19 +111,34 @@ func NewDatePickerCellImageCell(image IImage) DatePickerCell { return instance } -// A bitmask that indicates which visual elements are shown 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/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/1459619-mindate?language=objc +func (d_ DatePickerCell) MinDate() foundation.Date { + rv := objc.Call[foundation.Date](d_, objc.Sel("minDate")) return rv } -// A bitmask that indicates which visual elements are shown 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/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/1459619-mindate?language=objc +func (d_ DatePickerCell) SetMinDate(value foundation.IDate) { + objc.Call[objc.Void](d_, objc.Sel("setMinDate:"), objc.Ptr(value)) +} + +// A Boolean value indicating whether the cell draws its background. [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")) + return rv +} + +// A Boolean value indicating whether the cell draws its background. [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) } // The time interval that represents the date range. [Full Topic] @@ -145,26 +156,71 @@ func (d_ DatePickerCell) SetTimeInterval(value foundation.TimeInterval) { objc.Call[objc.Void](d_, objc.Sel("setTimeInterval:"), value) } -// The locale used to display dates. [Full Topic] +// The date picker style to use. [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/1459635-datepickerstyle?language=objc +func (d_ DatePickerCell) DatePickerStyle() DatePickerStyle { + rv := objc.Call[DatePickerStyle](d_, objc.Sel("datePickerStyle")) return rv } -// The locale used to display dates. [Full Topic] +// The date picker style to use. [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:"), objc.Ptr(value)) +// [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:"), objc.Ptr(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] +// +// [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 bitmask that indicates which visual elements are shown by the date picker. [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) } // The delegate associated with the date picker. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/appkit/nsdatepickercell/1459615-delegate?language=objc -func (d_ DatePickerCell) Delegate() DatePickerCellDelegateWrapper { - rv := objc.Call[DatePickerCellDelegateWrapper](d_, objc.Sel("delegate")) +func (d_ DatePickerCell) Delegate() DatePickerCellDelegateObject { + rv := objc.Call[DatePickerCellDelegateObject](d_, objc.Sel("delegate")) return rv } @@ -184,49 +240,49 @@ func (d_ DatePickerCell) SetDelegateObject(valueObject objc.IObject) { objc.Call[objc.Void](d_, objc.Sel("setDelegate:"), objc.Ptr(valueObject)) } -// The cell’s background color. [Full Topic] +// The locale used to display dates. [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/1459625-locale?language=objc +func (d_ DatePickerCell) Locale() foundation.Locale { + rv := objc.Call[foundation.Locale](d_, objc.Sel("locale")) return rv } -// The cell’s background color. [Full Topic] +// The locale used to display dates. [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:"), objc.Ptr(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:"), objc.Ptr(value)) } -// The minimum date that the picker allows as input. [Full Topic] +// The calendar used by the date picker. [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")) +// [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 minimum date that the picker allows as input. [Full Topic] +// The calendar used by the date picker. [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:"), objc.Ptr(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:"), objc.Ptr(value)) } -// A Boolean value indicating whether the cell draws its background. [Full Topic] +// The cell’s background color. [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/1459629-backgroundcolor?language=objc +func (d_ DatePickerCell) BackgroundColor() Color { + rv := objc.Call[Color](d_, objc.Sel("backgroundColor")) return rv } -// A Boolean value indicating whether the cell draws its background. [Full Topic] +// The cell’s background color. [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/1459629-backgroundcolor?language=objc +func (d_ DatePickerCell) SetBackgroundColor(value IColor) { + objc.Call[objc.Void](d_, objc.Sel("setBackgroundColor:"), objc.Ptr(value)) } // The time zone used to display time-related values. [Full Topic] @@ -244,21 +300,6 @@ func (d_ DatePickerCell) SetTimeZone(value foundation.ITimeZone) { objc.Call[objc.Void](d_, objc.Sel("setTimeZone:"), objc.Ptr(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:"), objc.Ptr(value)) -} - // The cell’s text color. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/appkit/nsdatepickercell/1459644-textcolor?language=objc @@ -274,62 +315,17 @@ func (d_ DatePickerCell) SetTextColor(value IColor) { objc.Call[objc.Void](d_, objc.Sel("setTextColor:"), objc.Ptr(value)) } -// The calendar used by the date picker. [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")) - return rv -} - -// The calendar used by the date picker. [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:"), objc.Ptr(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:"), objc.Ptr(value)) -} - -// The date picker style to use. [Full Topic] +// The date currently specified in the picker. [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")) +// [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 picker style to use. [Full Topic] +// The date currently specified in the picker. [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) +// [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:"), objc.Ptr(value)) } diff --git a/macos/appkit/date_picker_cell_delegate.gen.go b/macos/appkit/date_picker_cell_delegate.gen.go index 884959b0..d778fb48 100644 --- a/macos/appkit/date_picker_cell_delegate.gen.go +++ b/macos/appkit/date_picker_cell_delegate.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package appkit @@ -39,18 +39,21 @@ func (di *DatePickerCellDelegate) DatePickerCellValidateProposedDateValueTimeInt di._DatePickerCellValidateProposedDateValueTimeInterval(datePickerCell, proposedDateValue, proposedTimeInterval) } -// A concrete type wrapper for the [PDatePickerCellDelegate] protocol. -type DatePickerCellDelegateWrapper struct { +// ensure impl type implements protocol interface +var _ PDatePickerCellDelegate = (*DatePickerCellDelegateObject)(nil) + +// A concrete type for the [PDatePickerCellDelegate] protocol. +type DatePickerCellDelegateObject struct { objc.Object } -func (d_ DatePickerCellDelegateWrapper) HasDatePickerCellValidateProposedDateValueTimeInterval() bool { +func (d_ DatePickerCellDelegateObject) HasDatePickerCellValidateProposedDateValueTimeInterval() bool { return d_.RespondsToSelector(objc.Sel("datePickerCell:validateProposedDateValue:timeInterval:")) } // The delegate receives this message each time the user attempts to change the receiver‘s value, allowing the delegate the opportunity to override the change. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/appkit/nsdatepickercelldelegate/1459631-datepickercell?language=objc -func (d_ DatePickerCellDelegateWrapper) DatePickerCellValidateProposedDateValueTimeInterval(datePickerCell IDatePickerCell, proposedDateValue foundation.IDate, proposedTimeInterval *foundation.TimeInterval) { +func (d_ DatePickerCellDelegateObject) DatePickerCellValidateProposedDateValueTimeInterval(datePickerCell DatePickerCell, proposedDateValue foundation.Date, proposedTimeInterval *foundation.TimeInterval) { objc.Call[objc.Void](d_, objc.Sel("datePickerCell:validateProposedDateValue:timeInterval:"), objc.Ptr(datePickerCell), objc.Ptr(proposedDateValue), proposedTimeInterval) } diff --git a/macos/appkit/dictionary_controller.gen.go b/macos/appkit/dictionary_controller.gen.go index 3e26dd15..1faea967 100644 --- a/macos/appkit/dictionary_controller.gen.go +++ b/macos/appkit/dictionary_controller.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package appkit @@ -20,16 +20,16 @@ type IDictionaryController interface { IArrayController ExcludedKeys() []string SetExcludedKeys(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) + IncludedKeys() []string + SetIncludedKeys(value []string) + LocalizedKeyTable() string + SetLocalizedKeyTable(value string) + InitialValue() objc.Object + SetInitialValue(value objc.IObject) } // A bindings-compatible controller that manages the display and editing of a dictionary of key-value pairs. [Full Topic] @@ -50,10 +50,6 @@ func (dc _DictionaryControllerClass) Alloc() DictionaryController { return rv } -func DictionaryController_Alloc() DictionaryController { - return DictionaryControllerClass.Alloc() -} - func (dc _DictionaryControllerClass) New() DictionaryController { rv := objc.Call[DictionaryController](dc, objc.Sel("new")) rv.Autorelease() @@ -98,19 +94,34 @@ func (d_ DictionaryController) SetExcludedKeys(value []string) { objc.Call[objc.Void](d_, objc.Sel("setExcludedKeys:"), value) } -// the strings file used to localize key names. [Full Topic] +// The string used as the initial key name for a newly inserted item. [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")) +// [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 strings file used to localize key names. [Full Topic] +// The string used as the initial key name for a newly inserted item. [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) +// [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) } // 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] @@ -128,6 +139,21 @@ 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 @@ -142,33 +168,3 @@ 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 7a3992d5..a509242d 100644 --- a/macos/appkit/dictionary_controller_key_value_pair.gen.go +++ b/macos/appkit/dictionary_controller_key_value_pair.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package appkit @@ -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) - Key() string - SetKey(value string) Value() objc.Object SetValue(value objc.IObject) - IsExplicitlyIncluded() bool + Key() string + SetKey(value string) } // A set of methods implemented by arranged objects to give access to information about those objects. [Full Topic] @@ -45,10 +45,6 @@ func (dc _DictionaryControllerKeyValuePairClass) Alloc() DictionaryControllerKey return rv } -func DictionaryControllerKeyValuePair_Alloc() DictionaryControllerKeyValuePair { - return DictionaryControllerKeyValuePairClass.Alloc() -} - func (dc _DictionaryControllerKeyValuePairClass) New() DictionaryControllerKeyValuePair { rv := objc.Call[DictionaryControllerKeyValuePair](dc, objc.Sel("new")) rv.Autorelease() @@ -66,32 +62,25 @@ func (d_ DictionaryControllerKeyValuePair) Init() DictionaryControllerKeyValuePa // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsdictionarycontrollerkeyvaluepair/1531961-localizedkey?language=objc -func (d_ DictionaryControllerKeyValuePair) LocalizedKey() string { - rv := objc.Call[string](d_, objc.Sel("localizedKey")) +// [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 -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")) +func (d_ DictionaryControllerKeyValuePair) LocalizedKey() string { + rv := objc.Call[string](d_, objc.Sel("localizedKey")) 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]: https://developer.apple.com/documentation/appkit/nsdictionarycontrollerkeyvaluepair/1531961-localizedkey?language=objc +func (d_ DictionaryControllerKeyValuePair) SetLocalizedKey(value string) { + objc.Call[objc.Void](d_, objc.Sel("setLocalizedKey:"), value) } // [Full Topic] @@ -111,8 +100,15 @@ func (d_ DictionaryControllerKeyValuePair) SetValue(value objc.IObject) { // [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")) +// [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) +} diff --git a/macos/appkit/diffable_data_source_snapshot.gen.go b/macos/appkit/diffable_data_source_snapshot.gen.go index 61f67024..ef2cfce7 100644 --- a/macos/appkit/diffable_data_source_snapshot.gen.go +++ b/macos/appkit/diffable_data_source_snapshot.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package appkit @@ -18,26 +18,31 @@ type _DiffableDataSourceSnapshotClass struct { // An interface definition for the [DiffableDataSourceSnapshot] class. type IDiffableDataSourceSnapshot interface { 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 + DeleteSectionsWithIdentifiers(sectionIdentifiers []objc.IObject) + MoveItemWithIdentifierAfterItemWithIdentifier(fromIdentifier objc.IObject, toIdentifier objc.IObject) ReloadSectionsWithIdentifiers(sectionIdentifiers []objc.IObject) - NumberOfItemsInSection(sectionIdentifier objc.IObject) int + MoveItemWithIdentifierBeforeItemWithIdentifier(fromIdentifier objc.IObject, toIdentifier objc.IObject) DeleteItemsWithIdentifiers(identifiers []objc.IObject) - DeleteAllItems() - InsertSectionsWithIdentifiersAfterSectionWithIdentifier(sectionIdentifiers []objc.IObject, toSectionIdentifier objc.IObject) - MoveItemWithIdentifierAfterItemWithIdentifier(fromIdentifier objc.IObject, toIdentifier objc.IObject) + InsertItemsWithIdentifiersBeforeItemWithIdentifier(identifiers []objc.IObject, itemIdentifier objc.IObject) + AppendItemsWithIdentifiers(identifiers []objc.IObject) IndexOfItemIdentifier(itemIdentifier objc.IObject) int - ItemIdentifiersInSectionWithIdentifier(sectionIdentifier objc.IObject) []objc.Object + 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) - AppendItemsWithIdentifiers(identifiers []objc.IObject) - DeleteSectionsWithIdentifiers(sectionIdentifiers []objc.IObject) - SectionIdentifiers() []objc.Object + DeleteAllItems() + InsertSectionsWithIdentifiersBeforeSectionWithIdentifier(sectionIdentifiers []objc.IObject, toSectionIdentifier objc.IObject) + SectionIdentifierForSectionContainingItemIdentifier(itemIdentifier objc.IObject) objc.Object + AppendSectionsWithIdentifiers(sectionIdentifiers []objc.IObject) + ItemIdentifiersInSectionWithIdentifier(sectionIdentifier objc.IObject) []objc.Object + NumberOfItemsInSection(sectionIdentifier objc.IObject) int + IndexOfSectionIdentifier(sectionIdentifier objc.IObject) int + NumberOfSections() int NumberOfItems() int ItemIdentifiers() []objc.Object - NumberOfSections() int + SectionIdentifiers() []objc.Object } // A representation of the state of the data in a view at a specific point in time. [Full Topic] @@ -58,10 +63,6 @@ func (dc _DiffableDataSourceSnapshotClass) Alloc() DiffableDataSourceSnapshot { return rv } -func DiffableDataSourceSnapshot_Alloc() DiffableDataSourceSnapshot { - return DiffableDataSourceSnapshotClass.Alloc() -} - func (dc _DiffableDataSourceSnapshotClass) New() DiffableDataSourceSnapshot { rv := objc.Call[DiffableDataSourceSnapshot](dc, objc.Sel("new")) rv.Autorelease() @@ -77,26 +78,68 @@ func (d_ DiffableDataSourceSnapshot) Init() DiffableDataSourceSnapshot { return rv } -// Returns the identifier of the section containing the specified item 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/3182918-sectionidentifierforsectionconta?language=objc -func (d_ DiffableDataSourceSnapshot) SectionIdentifierForSectionContainingItemIdentifier(itemIdentifier objc.IObject) objc.Object { - rv := objc.Call[objc.Object](d_, objc.Sel("sectionIdentifierForSectionContainingItemIdentifier:"), objc.Ptr(itemIdentifier)) - return rv +// [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) } -// Reloads the data within the specified items 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/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/3182909-moveitemwithidentifier?language=objc +func (d_ DiffableDataSourceSnapshot) MoveItemWithIdentifierAfterItemWithIdentifier(fromIdentifier objc.IObject, toIdentifier objc.IObject) { + objc.Call[objc.Void](d_, objc.Sel("moveItemWithIdentifier:afterItemWithIdentifier:"), objc.Ptr(fromIdentifier), objc.Ptr(toIdentifier)) } -// Adds the sections with the specified identifiers to the snapshot. [Full Topic] +// Reloads the data within the specified sections of the snapshot. [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/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:"), objc.Ptr(fromIdentifier), objc.Ptr(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, objc.Ptr(itemIdentifier)) +} + +// 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/3182895-appenditemswithidentifiers?language=objc +func (d_ DiffableDataSourceSnapshot) AppendItemsWithIdentifiers(identifiers []objc.IObject) { + objc.Call[objc.Void](d_, objc.Sel("appendItemsWithIdentifiers:"), identifiers) +} + +// Returns the index of the item in the snapshot with the specified identifier. [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:"), objc.Ptr(itemIdentifier)) + return rv +} + +// Adds the items with the specified identifiers to the specified section of 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, objc.Ptr(sectionIdentifier)) } // Moves the section from its current position in the snapshot to the position immediately after the specified section. [Full Topic] @@ -106,34 +149,32 @@ func (d_ DiffableDataSourceSnapshot) MoveSectionWithIdentifierAfterSectionWithId objc.Call[objc.Void](d_, objc.Sel("moveSectionWithIdentifier:afterSectionWithIdentifier:"), objc.Ptr(fromSectionIdentifier), objc.Ptr(toSectionIdentifier)) } -// Returns the index of the section of the snapshot with the specified identifier. [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/3182902-indexofsectionidentifier?language=objc -func (d_ DiffableDataSourceSnapshot) IndexOfSectionIdentifier(sectionIdentifier objc.IObject) int { - rv := objc.Call[int](d_, objc.Sel("indexOfSectionIdentifier:"), objc.Ptr(sectionIdentifier)) - return rv +// [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, objc.Ptr(toSectionIdentifier)) } -// Reloads the data within the specified sections of the snapshot. [Full Topic] +// Moves the section from its current position in the snapshot to the position immediately before the specified section. [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) +// [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:"), objc.Ptr(fromSectionIdentifier), objc.Ptr(toSectionIdentifier)) } -// Returns the number of items in the specified section of the snapshot. [Full Topic] +// Reloads the data within the specified items 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:"), objc.Ptr(sectionIdentifier)) - 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) } -// Deletes the items with the specified identifiers from 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/3182899-deleteitemswithidentifiers?language=objc -func (d_ DiffableDataSourceSnapshot) DeleteItemsWithIdentifiers(identifiers []objc.IObject) { - objc.Call[objc.Void](d_, objc.Sel("deleteItemsWithIdentifiers:"), identifiers) +// [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, objc.Ptr(itemIdentifier)) } // Deletes all of the items from the snapshot. [Full Topic] @@ -143,26 +184,26 @@ func (d_ DiffableDataSourceSnapshot) DeleteAllItems() { objc.Call[objc.Void](d_, objc.Sel("deleteAllItems")) } -// Inserts the provided sections immediately after the section with the specified identifier in the snapshot. [Full Topic] +// Inserts the provided sections immediately before the section with the specified identifier in the snapshot. [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, objc.Ptr(toSectionIdentifier)) +// [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, objc.Ptr(toSectionIdentifier)) } -// Moves the item from its current position in the snapshot to the position immediately after the specified item. [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/3182909-moveitemwithidentifier?language=objc -func (d_ DiffableDataSourceSnapshot) MoveItemWithIdentifierAfterItemWithIdentifier(fromIdentifier objc.IObject, toIdentifier objc.IObject) { - objc.Call[objc.Void](d_, objc.Sel("moveItemWithIdentifier:afterItemWithIdentifier:"), objc.Ptr(fromIdentifier), objc.Ptr(toIdentifier)) +// [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:"), objc.Ptr(itemIdentifier)) + return rv } -// Returns the index of the item in the snapshot with the specified identifier. [Full Topic] +// Adds the sections with the specified identifiers to 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:"), objc.Ptr(itemIdentifier)) - return rv +// [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) } // Returns the identifiers of all of the items in the specified section of the snapshot. [Full Topic] @@ -173,32 +214,27 @@ func (d_ DiffableDataSourceSnapshot) ItemIdentifiersInSectionWithIdentifier(sect return rv } -// 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/3182903-insertitemswithidentifiers?language=objc -func (d_ DiffableDataSourceSnapshot) InsertItemsWithIdentifiersAfterItemWithIdentifier(identifiers []objc.IObject, itemIdentifier objc.IObject) { - objc.Call[objc.Void](d_, objc.Sel("insertItemsWithIdentifiers:afterItemWithIdentifier:"), identifiers, objc.Ptr(itemIdentifier)) -} - -// Adds the items with the specified identifiers to the last section of 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/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/3182914-numberofitemsinsection?language=objc +func (d_ DiffableDataSourceSnapshot) NumberOfItemsInSection(sectionIdentifier objc.IObject) int { + rv := objc.Call[int](d_, objc.Sel("numberOfItemsInSection:"), objc.Ptr(sectionIdentifier)) + return rv } -// Deletes the sections with the specified identifiers from 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/3182900-deletesectionswithidentifiers?language=objc -func (d_ DiffableDataSourceSnapshot) DeleteSectionsWithIdentifiers(sectionIdentifiers []objc.IObject) { - objc.Call[objc.Void](d_, objc.Sel("deleteSectionsWithIdentifiers:"), sectionIdentifiers) +// [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:"), objc.Ptr(sectionIdentifier)) + 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 } @@ -218,10 +254,10 @@ func (d_ DiffableDataSourceSnapshot) ItemIdentifiers() []objc.Object { return rv } -// The number of sections in the snapshot. [Full Topic] +// The identifiers of all of the sections in 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/3182919-sectionidentifiers?language=objc +func (d_ DiffableDataSourceSnapshot) SectionIdentifiers() []objc.Object { + rv := objc.Call[[]objc.Object](d_, objc.Sel("sectionIdentifiers")) return rv } diff --git a/macos/appkit/doc.gen.go b/macos/appkit/doc.gen.go index a24faaef..29bc5c74 100644 --- a/macos/appkit/doc.gen.go +++ b/macos/appkit/doc.gen.go @@ -1,8 +1,8 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. // Construct and manage a graphical, event-driven user interface for your macOS app. // -// [Full Documentation] +// [Apple Documentation] // -// [Full Documentation]: https://developer.apple.com/documentation/appkit?language=objc +// [Apple Documentation]: https://developer.apple.com/documentation/appkit?language=objc package appkit diff --git a/macos/appkit/dock_tile.gen.go b/macos/appkit/dock_tile.gen.go index 56f036e5..bde8b478 100644 --- a/macos/appkit/dock_tile.gen.go +++ b/macos/appkit/dock_tile.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package appkit @@ -20,14 +20,14 @@ type _DockTileClass struct { type IDockTile interface { objc.IObject Display() - ContentView() View - SetContentView(value IView) - ShowsApplicationBadge() bool - SetShowsApplicationBadge(value bool) + Size() foundation.Size Owner() objc.Object BadgeLabel() string SetBadgeLabel(value string) - Size() foundation.Size + ShowsApplicationBadge() bool + SetShowsApplicationBadge(value bool) + ContentView() View + SetContentView(value IView) } // The visual representation of your app’s miniaturized windows and app icon as they appear in the Dock. [Full Topic] @@ -48,10 +48,6 @@ func (dc _DockTileClass) Alloc() DockTile { return rv } -func DockTile_Alloc() DockTile { - return DockTileClass.Alloc() -} - func (dc _DockTileClass) New() DockTile { rv := objc.Call[DockTile](dc, objc.Sel("new")) rv.Autorelease() @@ -74,36 +70,14 @@ func (d_ DockTile) Display() { objc.Call[objc.Void](d_, objc.Sel("display")) } -// 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) 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:"), objc.Ptr(value)) -} - -// A Boolean showing whether the tile is badged with the application’s icon [Full Topic] +// The size of the tile. [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")) +// [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 } -// 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 @@ -127,10 +101,32 @@ func (d_ DockTile) SetBadgeLabel(value string) { objc.Call[objc.Void](d_, objc.Sel("setBadgeLabel:"), value) } -// The size of the tile. [Full Topic] +// A Boolean showing whether the tile is badged with the application’s icon [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/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] +// +// [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:"), objc.Ptr(value)) +} diff --git a/macos/appkit/dock_tile_plug_in.gen.go b/macos/appkit/dock_tile_plug_in_protocol.gen.go similarity index 70% rename from macos/appkit/dock_tile_plug_in.gen.go rename to macos/appkit/dock_tile_plug_in_protocol.gen.go index 15194abd..fa4a851a 100644 --- a/macos/appkit/dock_tile_plug_in.gen.go +++ b/macos/appkit/dock_tile_plug_in_protocol.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package appkit @@ -11,38 +11,41 @@ import ( // [Full Topic]: https://developer.apple.com/documentation/appkit/nsdocktileplugin?language=objc type PDockTilePlugIn interface { // optional - SetDockTile(dockTile DockTile) - HasSetDockTile() bool - - // optional - DockMenu() IMenu + DockMenu() Menu HasDockMenu() bool -} -// A concrete type wrapper for the [PDockTilePlugIn] protocol. -type DockTilePlugInWrapper struct { - objc.Object + // optional + SetDockTile(dockTile DockTile) + HasSetDockTile() bool } -func (d_ DockTilePlugInWrapper) HasSetDockTile() bool { - return d_.RespondsToSelector(objc.Sel("setDockTile:")) -} +// ensure impl type implements protocol interface +var _ PDockTilePlugIn = (*DockTilePlugInObject)(nil) -// 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_ DockTilePlugInWrapper) SetDockTile(dockTile IDockTile) { - objc.Call[objc.Void](d_, objc.Sel("setDockTile:"), objc.Ptr(dockTile)) +// A concrete type for the [PDockTilePlugIn] protocol. +type DockTilePlugInObject struct { + objc.Object } -func (d_ DockTilePlugInWrapper) HasDockMenu() bool { +func (d_ DockTilePlugInObject) HasDockMenu() bool { return d_.RespondsToSelector(objc.Sel("dockMenu")) } // Invoked when the user causes the application's dock menu to be shown. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/appkit/nsdocktileplugin/1527547-dockmenu?language=objc -func (d_ DockTilePlugInWrapper) DockMenu() Menu { +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:"), objc.Ptr(dockTile)) +} diff --git a/macos/appkit/document.gen.go b/macos/appkit/document.gen.go index 52f88789..0d9db1d7 100644 --- a/macos/appkit/document.gen.go +++ b/macos/appkit/document.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package appkit @@ -19,127 +19,133 @@ type _DocumentClass struct { // An interface definition for the [Document] class. type IDocument interface { objc.IObject - LockWithCompletionHandler(completionHandler func(arg0 foundation.Error)) - RunModalSavePanelForSaveOperationDelegateDidSaveSelectorContextInfo(saveOperation SaveOperationType, delegate objc.IObject, didSaveSelector objc.Selector, contextInfo unsafe.Pointer) - FileWrapperOfTypeError(typeName string, outError foundation.IError) foundation.FileWrapper - PrintDocument(sender objc.IObject) objc.Object RemoveWindowController(windowController IWindowController) - RevertDocumentToSaved(sender objc.IObject) objc.Object - DuplicateAndReturnError(outError foundation.IError) Document - ShowWindows() - WillPresentError(error foundation.IError) foundation.Error + ShareDocumentWithSharingServiceCompletionHandler(sharingService ISharingService, completionHandler func(success bool)) + SaveToURLOfTypeForSaveOperationCompletionHandler(url foundation.IURL, typeName string, saveOperation SaveOperationType, completionHandler func(errorOrNil foundation.Error)) ContinueAsynchronousWorkOnMainThreadUsingBlock(block func()) - SetWindow(window IWindow) - WillNotPresentError(error foundation.IError) - DataOfTypeError(typeName string, outError foundation.IError) []byte - ScheduleAutosaving() - PrintOperationWithSettingsError(printSettings map[PrintInfoAttributeKey]objc.IObject, outError foundation.IError) PrintOperation - ContinueActivityUsingBlock(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() - HandleSaveScriptCommand(command foundation.IScriptCommand) objc.Object - SaveDocumentAs(sender objc.IObject) objc.Object - LockDocument(sender objc.IObject) objc.Object + PrintOperationWithSettingsError(printSettings map[PrintInfoAttributeKey]objc.IObject, outError foundation.IError) PrintOperation + RunModalSavePanelForSaveOperationDelegateDidSaveSelectorContextInfo(saveOperation SaveOperationType, delegate objc.IObject, didSaveSelector objc.Selector, contextInfo unsafe.Pointer) 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 - WindowControllerWillLoadNib(windowController IWindowController) - MoveDocumentToUbiquityContainer(sender objc.IObject) objc.Object - PerformSynchronousFileAccessUsingBlock(block func()) + FileWrapperOfTypeError(typeName string, outError foundation.IError) 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 foundation.IError) bool - SaveDocumentTo(sender objc.IObject) objc.Object - BrowseDocumentVersions(sender objc.IObject) objc.Object + 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 foundation.IError) bool + UnlockDocumentWithCompletionHandler(completionHandler func(didUnlock bool)) + ScheduleAutosaving() + ContinueActivityUsingBlock(block func()) + SaveDocumentWithDelegateDidSaveSelectorContextInfo(delegate objc.IObject, didSaveSelector objc.Selector, contextInfo unsafe.Pointer) + MakeWindowControllers() + WindowControllerWillLoadNib(windowController IWindowController) 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 foundation.IError) bool - AutosaveWithImplicitCancellabilityCompletionHandler(autosavingIsImplicitlyCancellable bool, completionHandler func(errorOrNil foundation.Error)) - DefaultDraftName() string + DataOfTypeError(typeName string, outError foundation.IError) []byte + EncodeRestorableStateWithCoderBackgroundQueue(coder foundation.ICoder, queue foundation.IOperationQueue) + SetDisplayName(displayNameOrNil string) + ChangeCountTokenForSaveOperation(saveOperation SaveOperationType) objc.Object + UpdateChangeCount(change DocumentChangeType) + HandleSaveScriptCommand(command foundation.IScriptCommand) objc.Object + SaveDocument(sender objc.IObject) objc.Object + RevertToContentsOfURLOfTypeError(url foundation.IURL, typeName string, outError foundation.IError) bool + PrintDocument(sender objc.IObject) objc.Object + SetWindow(window IWindow) + WillNotPresentError(error foundation.IError) AddWindowController(windowController IWindowController) - HandlePrintScriptCommand(command foundation.IScriptCommand) objc.Object RestoreStateWithCoder(coder foundation.ICoder) - 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)) + 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 foundation.IError) bool + PresentError(error foundation.IError) bool + RenameDocument(sender objc.IObject) objc.Object + PreparePageLayout(pageLayout IPageLayout) bool ValidateUserInterfaceItem(item PValidatedUserInterfaceItem) bool ValidateUserInterfaceItemObject(itemObject objc.IObject) bool - ReadFromDataOfTypeError(data []byte, typeName string, outError foundation.IError) 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 foundation.IError) bool + FileAttributesToWriteToURLOfTypeForSaveOperationOriginalContentsURLError(url foundation.IURL, typeName string, saveOperation SaveOperationType, absoluteOriginalContentsURL foundation.IURL, outError foundation.IError) map[string]objc.Object + DuplicateAndReturnError(outError foundation.IError) Document + WindowControllerDidLoadNib(windowController IWindowController) + RunModalPrintOperationDelegateDidRunSelectorContextInfo(printOperation IPrintOperation, delegate objc.IObject, didRunSelector objc.Selector, contextInfo unsafe.Pointer) + StopBrowsingVersionsWithCompletionHandler(completionHandler func()) RunPageLayout(sender objc.IObject) objc.Object - UpdateUserActivityState(activity foundation.IUserActivity) - UnlockWithCompletionHandler(completionHandler func(arg0 foundation.Error)) + HandleCloseScriptCommand(command foundation.ICloseCommand) objc.Object + UpdateChangeCountWithTokenForSaveOperation(changeCountToken objc.IObject, saveOperation SaveOperationType) + SaveDocumentTo(sender objc.IObject) objc.Object MoveDocumentWithCompletionHandler(completionHandler func(didMove bool)) - 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 foundation.IError) 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)) + ReadFromDataOfTypeError(data []byte, typeName string, outError foundation.IError) bool + SaveDocumentAs(sender objc.IObject) objc.Object ReadFromFileWrapperOfTypeError(fileWrapper foundation.IFileWrapper, typeName string, outError foundation.IError) bool - WriteToURLOfTypeForSaveOperationOriginalContentsURLError(url foundation.IURL, typeName string, saveOperation SaveOperationType, absoluteOriginalContentsURL foundation.IURL, outError foundation.IError) bool - StopBrowsingVersionsWithCompletionHandler(completionHandler func()) - PrintDocumentWithSettingsShowPrintPanelDelegateDidPrintSelectorContextInfo(printSettings map[PrintInfoAttributeKey]objc.IObject, showPrintPanel bool, delegate objc.IObject, didPrintSelector objc.Selector, contextInfo unsafe.Pointer) + 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 foundation.IError) bool DuplicateDocument(sender objc.IObject) objc.Object - 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 foundation.IError) bool - CheckAutosavingSafetyAndReturnError(outError foundation.IError) 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 + UnblockUserInteraction() MoveDocument(sender objc.IObject) objc.Object - UpdateChangeCountWithTokenForSaveOperation(changeCountToken objc.IObject, saveOperation SaveOperationType) - EncodeRestorableStateWithCoder(coder foundation.ICoder) - UpdateChangeCount(change DocumentChangeType) - PrepareSharingServicePicker(sharingServicePicker ISharingServicePicker) - PrintInfo() PrintInfo - SetPrintInfo(value IPrintInfo) - ObjectSpecifier() foundation.ScriptObjectSpecifier - IsDraft() bool - SetDraft(value bool) - FileNameExtensionWasHiddenInLastRunSavePanel() bool + 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) - AutosavedContentsFileURL() foundation.URL - SetAutosavedContentsFileURL(value foundation.IURL) - ShouldRunSavePanelWithAccessoryView() bool + PrintInfo() PrintInfo + SetPrintInfo(value IPrintInfo) + IsInViewingMode() bool + KeepBackupFile() bool LastComponentOfFileName() string SetLastComponentOfFileName(value string) - KeepBackupFile() bool - BackupFileURL() foundation.URL - FileURL() foundation.URL - SetFileURL(value foundation.IURL) FileTypeFromLastRunSavePanel() string - WindowControllers() []WindowController - IsEntireFileLoaded() bool - IsBrowsingVersions() bool - IsInViewingMode() bool - PDFPrintOperation() PrintOperation - HasUndoManager() bool - SetHasUndoManager(value bool) + WindowNibName() NibName FileType() string SetFileType(value string) - IsDocumentEdited() bool - IsLocked() bool + PDFPrintOperation() PrintOperation + HasUnautosavedChanges() bool + IsEntireFileLoaded() bool + AutosavingFileType() string FileModificationDate() foundation.Date SetFileModificationDate(value foundation.IDate) - WindowNibName() NibName + DisplayName() string AutosavingIsImplicitlyCancellable() bool - AllowsDocumentSharing() bool - HasUnautosavedChanges() bool - AutosavingFileType() string + 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) WindowForSheet() Window - DisplayName() string + IsLocked() bool + ObjectSpecifier() foundation.ScriptObjectSpecifier + IsDraft() bool + SetDraft(value bool) UserActivity() foundation.UserActivity SetUserActivity(value foundation.IUserActivity) } @@ -157,6 +163,20 @@ func DocumentFrom(ptr unsafe.Pointer) Document { } } +func (d_ Document) InitForURLWithContentsOfURLOfTypeError(urlOrNil foundation.IURL, contentsURL foundation.IURL, typeName string, outError foundation.IError) Document { + rv := objc.Call[Document](d_, objc.Sel("initForURL:withContentsOfURL:ofType:error:"), objc.Ptr(urlOrNil), objc.Ptr(contentsURL), typeName, objc.Ptr(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 foundation.IError) Document { + instance := DocumentClass.Alloc().InitForURLWithContentsOfURLOfTypeError(urlOrNil, contentsURL, typeName, outError) + instance.Autorelease() + return instance +} + func (d_ Document) InitWithTypeError(typeName string, outError foundation.IError) Document { rv := objc.Call[Document](d_, objc.Sel("initWithType:error:"), typeName, objc.Ptr(outError)) return rv @@ -176,16 +196,16 @@ func (d_ Document) Init() Document { return rv } -func (d_ Document) InitForURLWithContentsOfURLOfTypeError(urlOrNil foundation.IURL, contentsURL foundation.IURL, typeName string, outError foundation.IError) Document { - rv := objc.Call[Document](d_, objc.Sel("initForURL:withContentsOfURL:ofType:error:"), objc.Ptr(urlOrNil), objc.Ptr(contentsURL), typeName, objc.Ptr(outError)) +func (d_ Document) InitWithContentsOfURLOfTypeError(url foundation.IURL, typeName string, outError foundation.IError) Document { + rv := objc.Call[Document](d_, objc.Sel("initWithContentsOfURL:ofType:error:"), objc.Ptr(url), typeName, objc.Ptr(outError)) return rv } -// Initializes a document with the specified contents, and places the resulting document's file at the designated location. [Full Topic] +// Initializes a document located by a URL of a specified type. [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 foundation.IError) Document { - instance := DocumentClass.Alloc().InitForURLWithContentsOfURLOfTypeError(urlOrNil, contentsURL, typeName, outError) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsdocument/1515097-initwithcontentsofurl?language=objc +func NewDocumentWithContentsOfURLOfTypeError(url foundation.IURL, typeName string, outError foundation.IError) Document { + instance := DocumentClass.Alloc().InitWithContentsOfURLOfTypeError(url, typeName, outError) instance.Autorelease() return instance } @@ -195,10 +215,6 @@ func (dc _DocumentClass) Alloc() Document { return rv } -func Document_Alloc() Document { - return DocumentClass.Alloc() -} - func (dc _DocumentClass) New() Document { rv := objc.Call[Document](dc, objc.Sel("new")) rv.Autorelease() @@ -209,66 +225,6 @@ 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 foundation.IError) foundation.FileWrapper { - rv := objc.Call[foundation.FileWrapper](d_, objc.Sel("fileWrapperOfType:error:"), typeName, objc.Ptr(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 @@ -276,35 +232,18 @@ func (d_ Document) RemoveWindowController(windowController IWindowController) { objc.Call[objc.Void](d_, objc.Sel("removeWindowController:"), objc.Ptr(windowController)) } -// The action of the File menu item Revert in a document-based app. [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 -} - -// 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 foundation.IError) Document { - rv := objc.Call[Document](d_, objc.Sel("duplicateAndReturnError:"), objc.Ptr(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] +// Share the document's file using the specified sharing service. [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/2902309-sharedocumentwithsharingservice?language=objc +func (d_ Document) ShareDocumentWithSharingServiceCompletionHandler(sharingService ISharingService, completionHandler func(success bool)) { + objc.Call[objc.Void](d_, objc.Sel("shareDocumentWithSharingService:completionHandler:"), objc.Ptr(sharingService), completionHandler) } -// Called when the receiver is about to present an error. [Full Topic] +// 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] // -// [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:"), objc.Ptr(error)) - return rv +// [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:"), objc.Ptr(url), typeName, saveOperation, completionHandler) } // Invokes the passed-in block on the main thread. [Full Topic] @@ -314,48 +253,49 @@ func (d_ Document) ContinueAsynchronousWorkOnMainThreadUsingBlock(block func()) objc.Call[objc.Void](d_, objc.Sel("continueAsynchronousWorkOnMainThreadUsingBlock:"), block) } -// Sets the window outlet of this document to the specified value. [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/1515217-setwindow?language=objc -func (d_ Document) SetWindow(window IWindow) { - objc.Call[objc.Void](d_, objc.Sel("setWindow:"), objc.Ptr(window)) +// [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) } -// 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] +// Handles the Print AppleScript command by attempting to print the document. [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:"), objc.Ptr(error)) +// [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:"), objc.Ptr(command)) + return rv } -// Creates and returns a data object that contains the contents of the document, formatted to a specified type. [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/1515205-dataoftype?language=objc -func (d_ Document) DataOfTypeError(typeName string, outError foundation.IError) []byte { - rv := objc.Call[[]byte](d_, objc.Sel("dataOfType:error:"), typeName, objc.Ptr(outError)) +// [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 } -// Schedules periodic autosaving for the purpose of crash protection. [Full Topic] +// Autosaves the document’s contents to an appropriate location in the file system. [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/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) } -// Creates and returns a print operation for the document's contents. [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/1515070-printoperationwithsettings?language=objc -func (d_ Document) PrintOperationWithSettingsError(printSettings map[PrintInfoAttributeKey]objc.IObject, outError foundation.IError) PrintOperation { - rv := objc.Call[PrintOperation](d_, objc.Sel("printOperationWithSettings:error:"), printSettings, objc.Ptr(outError)) - return rv +// [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:"), objc.Ptr(windowController), delegate, shouldCloseSelector, contextInfo) } -// Continues to perform the task for a user activity object using a different block. [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/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/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 } // Marks the document’s interface-related state as dirty. [Full Topic] @@ -365,28 +305,19 @@ func (d_ Document) InvalidateRestorableState() { objc.Call[objc.Void](d_, objc.Sel("invalidateRestorableState")) } -// Handles the Save AppleScript command by attempting to save the document. [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:"), objc.Ptr(command)) - return rv -} - -// The action method invoked in the receiver as first responder when the user chooses the Save As menu command. [Full Topic] +// Creates and returns a print operation for the document's contents. [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/1515070-printoperationwithsettings?language=objc +func (d_ Document) PrintOperationWithSettingsError(printSettings map[PrintInfoAttributeKey]objc.IObject, outError foundation.IError) PrintOperation { + rv := objc.Call[PrintOperation](d_, objc.Sel("printOperationWithSettings:error:"), printSettings, objc.Ptr(outError)) return rv } -// Locks the document in response to the user choosing the Lock menu item. [Full Topic] +// 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/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/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) } // Closes all of the document's windows and removes the document from its document controller. [Full Topic] @@ -396,171 +327,173 @@ func (d_ Document) Close() { objc.Call[objc.Void](d_, objc.Sel("close")) } -// Returns a Boolean value that indicates whether the document allows changes to the default printing information. [Full Topic] +// 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/1515243-shouldchangeprintinfo?language=objc -func (d_ Document) ShouldChangePrintInfo(newPrintInfo IPrintInfo) bool { - rv := objc.Call[bool](d_, objc.Sel("shouldChangePrintInfo:"), objc.Ptr(newPrintInfo)) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsdocument/1515089-filewrapperoftype?language=objc +func (d_ Document) FileWrapperOfTypeError(typeName string, outError foundation.IError) foundation.FileWrapper { + rv := objc.Call[foundation.FileWrapper](d_, objc.Sel("fileWrapperOfType:error:"), typeName, objc.Ptr(outError)) return rv } -// Handles the Close AppleScript command by attempting to close the document. [Full Topic] +// Updates the state of the given user activity. [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:"), objc.Ptr(command)) - return rv +// [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:"), objc.Ptr(activity)) } -// Adds document-specific content to the Page Layout panel. [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/1515169-preparepagelayout?language=objc -func (d_ Document) PreparePageLayout(pageLayout IPageLayout) bool { - rv := objc.Call[bool](d_, objc.Sel("preparePageLayout:"), objc.Ptr(pageLayout)) - return rv +// [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) } -// Waits for any work scheduled by previous invocations of this method to complete, then invokes the passed-in block. [Full Topic] +// Locks the document in response to the user choosing the Lock menu item. [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/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 } -// Prevents the user from making further changes to the document. [Full Topic] +// Prevents the user from making changes to the document's file. [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/1515189-lockwithcompletionhandler?language=objc +func (d_ Document) LockWithCompletionHandler(completionHandler func(arg0 foundation.Error)) { + objc.Call[objc.Void](d_, objc.Sel("lockWithCompletionHandler:"), completionHandler) } -// Unblocks the main thread during asynchronous saving. [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/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/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 } -// The action method invoked in the receiver as first responder when the user chooses the Save menu command. [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/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 +// [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) } -// Called before one of the document's window controllers loads its nib file. [Full Topic] +// Perform any custom setup associated with a sharing service picker. [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:"), objc.Ptr(windowController)) +// [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:"), objc.Ptr(sharingServicePicker)) } -// Moves the document to the user’s iCloud storage. [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/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/1515150-writesafelytourl?language=objc +func (d_ Document) WriteSafelyToURLOfTypeForSaveOperationError(url foundation.IURL, typeName string, saveOperation SaveOperationType, outError foundation.IError) bool { + rv := objc.Call[bool](d_, objc.Sel("writeSafelyToURL:ofType:forSaveOperation:error:"), objc.Ptr(url), typeName, saveOperation, objc.Ptr(outError)) return rv } -// Waits for any scheduled file access to complete, then invokes the passed-in block. [Full Topic] +// Runs the modal page layout panel with the receiver’s printing information object. [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/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:"), objc.Ptr(printInfo), delegate, didRunSelector, contextInfo) } -// Writes the contents of the document to a file or file package located by a URL. [Full Topic] +// Tells the document to customize the specified Save panel. [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 foundation.IError) bool { - rv := objc.Call[bool](d_, objc.Sel("writeSafelyToURL:ofType:forSaveOperation:error:"), objc.Ptr(url), typeName, saveOperation, objc.Ptr(outError)) +// [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:"), objc.Ptr(savePanel)) return rv } -// The action method invoked in the receiver as first responder when the user chooses the Save To menu command. [Full Topic] +// Moves the document’s file to the given URL. [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/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:"), objc.Ptr(url), completionHandler) } -// Opens the Versions browser in the document’s main window. [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/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 +// [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) } -// Exports a PDF representation of the document’s current contents. [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/1515176-savedocumenttopdf?language=objc -func (d_ Document) SaveDocumentToPDF(sender objc.IObject) objc.Object { - rv := objc.Call[objc.Object](d_, objc.Sel("saveDocumentToPDF:"), sender) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsdocument/1515061-checkautosavingsafetyandreturner?language=objc +func (d_ Document) CheckAutosavingSafetyAndReturnError(outError foundation.IError) bool { + rv := objc.Call[bool](d_, objc.Sel("checkAutosavingSafetyAndReturnError:"), objc.Ptr(outError)) return rv } -// Returns the names of the types to which this document can be saved for a specified kind of save operation. [Full Topic] +// Allows the user to make modifications to the document. [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) - 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) } -// Creates a new document whose contents are the same as the current document. [Full Topic] +// Schedules periodic autosaving for the purpose of crash protection. [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/1515119-scheduleautosaving?language=objc +func (d_ Document) ScheduleAutosaving() { + objc.Call[objc.Void](d_, objc.Sel("scheduleAutosaving")) } -// Sets the contents of this document by reading from a file or file package, of a specified type, located by a URL. [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/1515144-readfromurl?language=objc -func (d_ Document) ReadFromURLOfTypeError(url foundation.IURL, typeName string, outError foundation.IError) bool { - rv := objc.Call[bool](d_, objc.Sel("readFromURL:ofType:error:"), objc.Ptr(url), typeName, objc.Ptr(outError)) - 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) } -// Autosaves the document’s contents to an appropriate file-system location, as needed. [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/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/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) } -// Returns the default draft name for the document subclass. [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/1515245-defaultdraftname?language=objc -func (d_ Document) DefaultDraftName() string { - rv := objc.Call[string](d_, objc.Sel("defaultDraftName")) - return rv +// [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")) } -// Adds the specified window controller to the current document. [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/1515179-addwindowcontroller?language=objc -func (d_ Document) AddWindowController(windowController IWindowController) { - objc.Call[objc.Void](d_, objc.Sel("addWindowController:"), objc.Ptr(windowController)) +// [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:"), objc.Ptr(windowController)) } -// Handles the Print AppleScript command by attempting to print 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/1500135-handleprintscriptcommand?language=objc -func (d_ Document) HandlePrintScriptCommand(command foundation.IScriptCommand) objc.Object { - rv := objc.Call[objc.Object](d_, objc.Sel("handlePrintScriptCommand:"), objc.Ptr(command)) +// [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 } -// Restores the interface-related state of the document. [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/1526237-restorestatewithcoder?language=objc -func (d_ Document) RestoreStateWithCoder(coder foundation.ICoder) { - objc.Call[objc.Void](d_, objc.Sel("restoreStateWithCoder:"), objc.Ptr(coder)) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsdocument/1515205-dataoftype?language=objc +func (d_ Document) DataOfTypeError(typeName string, outError foundation.IError) []byte { + rv := objc.Call[[]byte](d_, objc.Sel("dataOfType:error:"), typeName, objc.Ptr(outError)) + return rv +} + +// Saves 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:"), objc.Ptr(coder), objc.Ptr(queue)) } // Sets the name of this document for presentation to the user. [Full Topic] @@ -570,117 +503,123 @@ func (d_ Document) SetDisplayName(displayNameOrNil string) { objc.Call[objc.Void](d_, objc.Sel("setDisplayName:"), displayNameOrNil) } -// Determines whether to close the document, prompting the user as needed to choose a course of action. [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/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/1515129-changecounttokenforsaveoperation?language=objc +func (d_ Document) ChangeCountTokenForSaveOperation(saveOperation SaveOperationType) objc.Object { + rv := objc.Call[objc.Object](d_, objc.Sel("changeCountTokenForSaveOperation:"), saveOperation) + return rv } -// Restores a window that was associated with a document, after that document is reopened. [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/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, objc.Ptr(state), 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) +} + +// Handles the Save AppleScript command by attempting to save the document. [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:"), objc.Ptr(command)) + return rv } -// Validates the specified user interface item that the receiver manages. [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/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/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 } -// Validates the specified user interface item that the receiver manages. [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/1515190-validateuserinterfaceitem?language=objc -func (d_ Document) ValidateUserInterfaceItemObject(itemObject objc.IObject) bool { - rv := objc.Call[bool](d_, objc.Sel("validateUserInterfaceItem:"), objc.Ptr(itemObject)) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsdocument/1515122-reverttocontentsofurl?language=objc +func (d_ Document) RevertToContentsOfURLOfTypeError(url foundation.IURL, typeName string, outError foundation.IError) bool { + rv := objc.Call[bool](d_, objc.Sel("revertToContentsOfURL:ofType:error:"), objc.Ptr(url), typeName, objc.Ptr(outError)) return rv } -// Sets the contents of this document by reading from data of a specified type. [Full Topic] +// Prints the receiver in response to the user choosing the Print menu command. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsdocument/1515198-readfromdata?language=objc -func (d_ Document) ReadFromDataOfTypeError(data []byte, typeName string, outError foundation.IError) bool { - rv := objc.Call[bool](d_, objc.Sel("readFromData:ofType:error:"), data, typeName, objc.Ptr(outError)) +// [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 } -// The action method invoked in the receiver as first responder when the user chooses the Page Setup menu command. [Full Topic] +// Sets the window outlet of this document to the specified value. [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) - return rv +// [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:"), objc.Ptr(window)) } -// Updates the state of the given user activity. [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/1529014-updateuseractivitystate?language=objc -func (d_ Document) UpdateUserActivityState(activity foundation.IUserActivity) { - objc.Call[objc.Void](d_, objc.Sel("updateUserActivityState:"), objc.Ptr(activity)) +// [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:"), objc.Ptr(error)) } -// Allows the user to make modifications to the document's file. [Full Topic] +// Adds the specified window controller to the current 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/1515179-addwindowcontroller?language=objc +func (d_ Document) AddWindowController(windowController IWindowController) { + objc.Call[objc.Void](d_, objc.Sel("addWindowController:"), objc.Ptr(windowController)) } -// Moves the document to a user-selected location. [Full Topic] +// Restores the interface-related state of the document. [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/1526237-restorestatewithcoder?language=objc +func (d_ Document) RestoreStateWithCoder(coder foundation.ICoder) { + objc.Call[objc.Void](d_, objc.Sel("restoreStateWithCoder:"), objc.Ptr(coder)) } -// Waits for any scheduled file access to complete but without blocking the main thread, then invokes the passed-in block. [Full Topic] +// 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/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/1515049-showwindows?language=objc +func (d_ Document) ShowWindows() { + objc.Call[objc.Void](d_, objc.Sel("showWindows")) } -// 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] +// Saves the interface-related state of the document. [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:"), objc.Ptr(url), typeName, saveOperation) - 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:"), objc.Ptr(coder)) } -// Returns an object that encapsulates the current record of document changes at the beginning of a save operation. [Full Topic] +// Returns the default draft name for the document subclass. [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) +// [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 } -// 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 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] // -// [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 foundation.IError) map[string]objc.Object { - rv := objc.Call[map[string]objc.Object](d_, objc.Sel("fileAttributesToWriteToURL:ofType:forSaveOperation:originalContentsURL:error:"), objc.Ptr(url), typeName, saveOperation, objc.Ptr(absoluteOriginalContentsURL), objc.Ptr(outError)) - return rv +// [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:"), objc.Ptr(url), typeName, saveOperation, delegate, didSaveSelector, contextInfo) } -// Allows the user to make modifications to the document. [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/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/1515144-readfromurl?language=objc +func (d_ Document) ReadFromURLOfTypeError(url foundation.IURL, typeName string, outError foundation.IError) bool { + rv := objc.Call[bool](d_, objc.Sel("readFromURL:ofType:error:"), objc.Ptr(url), typeName, objc.Ptr(outError)) + return rv } -// Returns a filename extension that can be appended to a base filename, for a specified file type and kind of save operation. [Full Topic] +// Presents an error alert to the user as a modal panel. [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) +// [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:"), objc.Ptr(error)) return rv } @@ -692,56 +631,51 @@ func (d_ Document) RenameDocument(sender objc.IObject) objc.Object { return rv } -// Share the document's file using the specified sharing service. [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:"), objc.Ptr(sharingService), completionHandler) -} - -// Sets the contents of this document by reading from a file wrapper of a specified type. [Full Topic] +// Adds document-specific content to the Page Layout panel. [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 foundation.IError) bool { - rv := objc.Call[bool](d_, objc.Sel("readFromFileWrapper:ofType:error:"), objc.Ptr(fileWrapper), typeName, objc.Ptr(outError)) +// [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:"), objc.Ptr(pageLayout)) return rv } -// Writes the contents of the document to a file or file package located by a URL. [Full Topic] +// Validates the specified user interface item that the receiver manages. [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 foundation.IError) bool { - rv := objc.Call[bool](d_, objc.Sel("writeToURL:ofType:forSaveOperation:originalContentsURL:error:"), objc.Ptr(url), typeName, saveOperation, objc.Ptr(absoluteOriginalContentsURL), objc.Ptr(outError)) +// [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 } -// Dismiss the Versions browser for the current document. [Full Topic] +// Validates the specified user interface item that the receiver manages. [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/1515190-validateuserinterfaceitem?language=objc +func (d_ Document) ValidateUserInterfaceItemObject(itemObject objc.IObject) bool { + rv := objc.Call[bool](d_, objc.Sel("validateUserInterfaceItem:"), objc.Ptr(itemObject)) + return rv } -// Prints the document's contents, optionally displaying a print panel to the user. [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/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/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) } -// Creates a copy of the receiving document in response to the user choosing Duplicate from the File menu. [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/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/1515243-shouldchangeprintinfo?language=objc +func (d_ Document) ShouldChangePrintInfo(newPrintInfo IPrintInfo) bool { + rv := objc.Call[bool](d_, objc.Sel("shouldChangePrintInfo:"), objc.Ptr(newPrintInfo)) return rv } -// Creates the window controller objects that the document uses to display its content. [Full Topic] +// Presents an error alert to the user as a modal panel. [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/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:"), objc.Ptr(error), objc.Ptr(window), delegate, didPresentSelector, contextInfo) } // Unlocks the document in response to the user choosing the Unlock menu item. [Full Topic] @@ -752,36 +686,45 @@ func (d_ Document) UnlockDocument(sender objc.IObject) objc.Object { return rv } -// Runs the specified print operation modally. [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/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:"), objc.Ptr(printOperation), delegate, didRunSelector, contextInfo) +// [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 foundation.IError) bool { + rv := objc.Call[bool](d_, objc.Sel("writeToURL:ofType:forSaveOperation:originalContentsURL:error:"), objc.Ptr(url), typeName, saveOperation, objc.Ptr(absoluteOriginalContentsURL), objc.Ptr(outError)) + return rv } -// Saves the document and delivers the results to the provided delegate object. [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/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/1515062-fileattributestowritetourl?language=objc +func (d_ Document) FileAttributesToWriteToURLOfTypeForSaveOperationOriginalContentsURLError(url foundation.IURL, typeName string, saveOperation SaveOperationType, absoluteOriginalContentsURL foundation.IURL, outError foundation.IError) map[string]objc.Object { + rv := objc.Call[map[string]objc.Object](d_, objc.Sel("fileAttributesToWriteToURL:ofType:forSaveOperation:originalContentsURL:error:"), objc.Ptr(url), typeName, saveOperation, objc.Ptr(absoluteOriginalContentsURL), objc.Ptr(outError)) + 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] +// 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/1515122-reverttocontentsofurl?language=objc -func (d_ Document) RevertToContentsOfURLOfTypeError(url foundation.IURL, typeName string, outError foundation.IError) bool { - rv := objc.Call[bool](d_, objc.Sel("revertToContentsOfURL:ofType:error:"), objc.Ptr(url), typeName, objc.Ptr(outError)) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsdocument/1515201-duplicateandreturnerror?language=objc +func (d_ Document) DuplicateAndReturnError(outError foundation.IError) Document { + rv := objc.Call[Document](d_, objc.Sel("duplicateAndReturnError:"), objc.Ptr(outError)) return rv } -// Returns a Boolean value that indicates whether it is safe to autosave document changes. [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/1515061-checkautosavingsafetyandreturner?language=objc -func (d_ Document) CheckAutosavingSafetyAndReturnError(outError foundation.IError) bool { - rv := objc.Call[bool](d_, objc.Sel("checkAutosavingSafetyAndReturnError:"), objc.Ptr(outError)) +// [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 } +// 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 @@ -789,63 +732,48 @@ func (d_ Document) WindowControllerDidLoadNib(windowController IWindowController objc.Call[objc.Void](d_, objc.Sel("windowControllerDidLoadNib:"), objc.Ptr(windowController)) } -// Determines whether the system should close the document and its associated window. [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:"), objc.Ptr(windowController), delegate, shouldCloseSelector, contextInfo) -} - -// 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:"), objc.Ptr(url), completionHandler) -} - -// Autosaves the document’s contents to an appropriate location in the file system. [Full Topic] +// Runs the specified print operation modally. [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/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:"), objc.Ptr(printOperation), delegate, didRunSelector, contextInfo) } -// Tells the document to customize the specified Save panel. [Full Topic] +// Returns the classes that support secure coding. [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:"), objc.Ptr(savePanel)) +// [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 a Boolean value that indicates whether the receiver reads multiple documents of the given type concurrently. [Full Topic] +// Returns the classes that support secure coding. [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) - return rv +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsdocument/3762522-allowedclassesforrestorablestate?language=objc +func Document_AllowedClassesForRestorableStateKeyPath(keyPath string) []objc.Class { + return DocumentClass.AllowedClassesForRestorableStateKeyPath(keyPath) } -// Returns a Boolean value that indicates whether the receiver reads multiple documents of the given type concurrently. [Full Topic] +// Dismiss the Versions browser for the current document. [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) +// [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) } -// Presents an error alert to the user as a modal panel. [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/1515184-presenterror?language=objc -func (d_ Document) PresentError(error foundation.IError) bool { - rv := objc.Call[bool](d_, objc.Sel("presentError:"), objc.Ptr(error)) +// [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 } -// Moves the document to a new location in response to the user choosing the Move To… menu item. [Full Topic] +// Handles the Close AppleScript command by attempting to close the document. [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/1500136-handleclosescriptcommand?language=objc +func (d_ Document) HandleCloseScriptCommand(command foundation.ICloseCommand) objc.Object { + rv := objc.Call[objc.Object](d_, objc.Sel("handleCloseScriptCommand:"), objc.Ptr(command)) return rv } @@ -856,248 +784,256 @@ func (d_ Document) UpdateChangeCountWithTokenForSaveOperation(changeCountToken o objc.Call[objc.Void](d_, objc.Sel("updateChangeCountWithToken:forSaveOperation:"), changeCountToken, saveOperation) } -// Saves the interface-related state of the document. [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/1526257-encoderestorablestatewithcoder?language=objc -func (d_ Document) EncodeRestorableStateWithCoder(coder foundation.ICoder) { - objc.Call[objc.Void](d_, objc.Sel("encodeRestorableStateWithCoder:"), objc.Ptr(coder)) +// [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 } -// Updates the receiver’s change count according to the given change type. [Full Topic] +// Moves the document to a user-selected location. [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/1515043-movedocumentwithcompletionhandle?language=objc +func (d_ Document) MoveDocumentWithCompletionHandler(completionHandler func(didMove bool)) { + objc.Call[objc.Void](d_, objc.Sel("moveDocumentWithCompletionHandler:"), completionHandler) } -// Perform any custom setup associated with a sharing service picker. [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/2902326-preparesharingservicepicker?language=objc -func (d_ Document) PrepareSharingServicePicker(sharingServicePicker ISharingServicePicker) { - objc.Call[objc.Void](d_, objc.Sel("prepareSharingServicePicker:"), objc.Ptr(sharingServicePicker)) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsdocument/1515198-readfromdata?language=objc +func (d_ Document) ReadFromDataOfTypeError(data []byte, typeName string, outError foundation.IError) bool { + rv := objc.Call[bool](d_, objc.Sel("readFromData:ofType:error:"), data, typeName, objc.Ptr(outError)) + return rv } -// The printing information associated with the document. [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/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/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 } -// The printing information associated with the document. [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/1515163-printinfo?language=objc -func (d_ Document) SetPrintInfo(value IPrintInfo) { - objc.Call[objc.Void](d_, objc.Sel("setPrintInfo:"), objc.Ptr(value)) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsdocument/1515044-readfromfilewrapper?language=objc +func (d_ Document) ReadFromFileWrapperOfTypeError(fileWrapper foundation.IFileWrapper, typeName string, outError foundation.IError) bool { + rv := objc.Call[bool](d_, objc.Sel("readFromFileWrapper:ofType:error:"), objc.Ptr(fileWrapper), typeName, objc.Ptr(outError)) + return rv } -// Returns the object specifier that represents the document. [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/1500134-objectspecifier?language=objc -func (d_ Document) ObjectSpecifier() foundation.ScriptObjectSpecifier { - rv := objc.Call[foundation.ScriptObjectSpecifier](d_, objc.Sel("objectSpecifier")) - 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) } -// A Boolean value that indicates whether the document is a draft that the user has not yet saved. [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/1515065-draft?language=objc -func (d_ Document) IsDraft() bool { - rv := objc.Call[bool](d_, objc.Sel("isDraft")) - 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, objc.Ptr(state), completionHandler) } -// A Boolean value that indicates whether the document is a draft that the user has not yet saved. [Full Topic] +// Called when the receiver is about to present an error. [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) +// [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:"), objc.Ptr(error)) + return rv } -// A Boolean value that indicates whether the user chose to hide the document's filename extension. [Full Topic] +// 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] // -// [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")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsdocument/1515076-writetourl?language=objc +func (d_ Document) WriteToURLOfTypeError(url foundation.IURL, typeName string, outError foundation.IError) bool { + rv := objc.Call[bool](d_, objc.Sel("writeToURL:ofType:error:"), objc.Ptr(url), typeName, objc.Ptr(outError)) return rv } -// The object that the document uses to support undo/redo operations. [Full Topic] +// 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/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/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 } -// The object that the document uses to support undo/redo operations. [Full Topic] +// Unblocks the main thread during asynchronous saving. [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:"), objc.Ptr(value)) +// [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")) } -// The location of the most recently autosaved document contents. [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/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/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 } -// The location of the most recently autosaved document contents. [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/1515232-autosavedcontentsfileurl?language=objc -func (d_ Document) SetAutosavedContentsFileURL(value foundation.IURL) { - objc.Call[objc.Void](d_, objc.Sel("setAutosavedContentsFileURL:"), objc.Ptr(value)) +// [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:"), objc.Ptr(url), typeName, saveOperation) + return rv } -// Returns whether the document object stores its contents in the user's iCloud document storage. [Full Topic] +// Opens the Versions browser in the document’s main window. [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")) +// [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 } -// Returns whether the document object stores its contents in the user's iCloud document storage. [Full Topic] +// 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/1515085-usesubiquitousstorage?language=objc -func Document_UsesUbiquitousStorage() bool { - return DocumentClass.UsesUbiquitousStorage() +// [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 } -// A Boolean value that indicates whether the document’s Save panel displays a list of supported writable document types. [Full Topic] +// 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/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/1515072-isnativetype?language=objc +func Document_IsNativeType(type_ string) bool { + return DocumentClass.IsNativeType(type_) } -// The name of the document seen by the user in AppleScript. [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/1500132-lastcomponentoffilename?language=objc -func (d_ Document) LastComponentOfFileName() string { - rv := objc.Call[string](d_, objc.Sel("lastComponentOfFileName")) - return rv +// [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) } -// The name of the document seen by the user in AppleScript. [Full Topic] +// Prevents the user from making further changes to the document. [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) +// [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) } -// A Boolean value that indicates whether the document archives previously saved versions of the 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/1515060-keepbackupfile?language=objc -func (d_ Document) KeepBackupFile() bool { - rv := objc.Call[bool](d_, objc.Sel("keepBackupFile")) - return rv +// [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) } -// A Boolean value that indicates whether the document subclass supports autosaving of drafts. [Full Topic] +// Moves the document to the user’s iCloud storage. [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")) +// [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 } -// A Boolean value that indicates whether the document subclass supports autosaving of drafts. [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/1515109-autosavesdrafts?language=objc -func Document_AutosavesDrafts() bool { - return DocumentClass.AutosavesDrafts() +// [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 } -// 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 is shareable from the standard Share menu. [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/2902303-allowsdocumentsharing?language=objc +func (d_ Document) AllowsDocumentSharing() bool { + rv := objc.Call[bool](d_, objc.Sel("allowsDocumentSharing")) return rv } -// Returns an array of key paths that represent the restorable attributes of the document. [Full Topic] +// The object that the document uses to support undo/redo operations. [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/1515166-undomanager?language=objc +func (d_ Document) UndoManager() foundation.UndoManager { + rv := objc.Call[foundation.UndoManager](d_, objc.Sel("undoManager")) return rv } -// Returns an array of key paths that represent the restorable attributes of the document. [Full Topic] +// The object that the document uses to support undo/redo operations. [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/1515166-undomanager?language=objc +func (d_ Document) SetUndoManager(value foundation.IUndoManager) { + objc.Call[objc.Void](d_, objc.Sel("setUndoManager:"), objc.Ptr(value)) } -// The location of the document’s on-disk representation. [Full Topic] +// The printing information associated with the document. [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/1515163-printinfo?language=objc +func (d_ Document) PrintInfo() PrintInfo { + rv := objc.Call[PrintInfo](d_, objc.Sel("printInfo")) return rv } -// The location of the document’s on-disk representation. [Full Topic] +// The printing information associated with the document. [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:"), objc.Ptr(value)) +// [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:"), objc.Ptr(value)) } -// The file type that was last selected in the Save panel. [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/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/1515086-inviewingmode?language=objc +func (d_ Document) IsInViewingMode() bool { + rv := objc.Call[bool](d_, objc.Sel("isInViewingMode")) return rv } -// The document’s current window controllers. [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/1515156-windowcontrollers?language=objc -func (d_ Document) WindowControllers() []WindowController { - rv := objc.Call[[]WindowController](d_, objc.Sel("windowControllers")) +// [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 } -// A Boolean value that indicates whether the document’s file is completely loaded into memory. [Full Topic] +// The name of the document seen by the user in AppleScript. [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/1500132-lastcomponentoffilename?language=objc +func (d_ Document) LastComponentOfFileName() string { + rv := objc.Call[string](d_, objc.Sel("lastComponentOfFileName")) return rv } -// A Boolean value that indicates whether the document is currently displaying the Versions browser. [Full Topic] +// 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] // -// [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/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 is in read-only mode. [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/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/1515104-readabletypes?language=objc +func (dc _DocumentClass) ReadableTypes() []string { + rv := objc.Call[[]string](dc, objc.Sel("readableTypes")) return rv } -// A print operation you can use to create a PDF representation of the document’s current contents. [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/1515246-pdfprintoperation?language=objc -func (d_ Document) PDFPrintOperation() PrintOperation { - rv := objc.Call[PrintOperation](d_, objc.Sel("PDFPrintOperation")) - return rv +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsdocument/1515104-readabletypes?language=objc +func Document_ReadableTypes() []string { + return DocumentClass.ReadableTypes() } // Returns whether the document subclass supports version management. [Full Topic] @@ -1115,36 +1051,29 @@ func Document_PreservesVersions() bool { return DocumentClass.PreservesVersions() } -// A Boolean value that indicates whether the document owns an undo manager object. [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/1515103-hasundomanager?language=objc -func (d_ Document) HasUndoManager() bool { - rv := objc.Call[bool](d_, objc.Sel("hasUndoManager")) +// [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 } -// A Boolean value that indicates whether the document owns an undo manager object. [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/1515103-hasundomanager?language=objc -func (d_ Document) SetHasUndoManager(value bool) { - objc.Call[objc.Void](d_, objc.Sel("setHasUndoManager:"), value) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsdocument/1526232-restorablestatekeypaths?language=objc +func Document_RestorableStateKeyPaths() []string { + return DocumentClass.RestorableStateKeyPaths() } -// Returns the types of data the receiver can read natively and any types filterable to that native type. [Full Topic] +// The name of the document’s sole nib file. [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/1515174-windownibname?language=objc +func (d_ Document) WindowNibName() NibName { + rv := objc.Call[NibName](d_, objc.Sel("windowNibName")) 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 @@ -1160,19 +1089,65 @@ func (d_ Document) SetFileType(value string) { objc.Call[objc.Void](d_, objc.Sel("setFileType:"), value) } -// A Boolean value that indicates whether the document has unsaved changes. [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/1515091-documentedited?language=objc -func (d_ Document) IsDocumentEdited() bool { - rv := objc.Call[bool](d_, objc.Sel("isDocumentEdited")) +// [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 or not the file can be written to. [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/1515212-locked?language=objc -func (d_ Document) IsLocked() bool { - rv := objc.Call[bool](d_, objc.Sel("isLocked")) +// [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] +// +// [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 +} + +// Returns the document type to use for an autosave operation. [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")) return rv } @@ -1191,11 +1166,11 @@ func (d_ Document) SetFileModificationDate(value foundation.IDate) { objc.Call[objc.Void](d_, objc.Sel("setFileModificationDate:"), objc.Ptr(value)) } -// The name of the document’s sole nib file. [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/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/1515077-displayname?language=objc +func (d_ Document) DisplayName() string { + rv := objc.Call[string](d_, objc.Sel("displayName")) return rv } @@ -1207,14 +1182,52 @@ func (d_ Document) AutosavingIsImplicitlyCancellable() bool { return rv } -// A Boolean value that indicates whether the document is shareable from the standard Share menu. [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/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/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] +// +// [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 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:"), objc.Ptr(value)) +} + // Returns whether the receiver supports autosaving in place. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/appkit/nsdocument/1515106-autosavesinplace?language=objc @@ -1230,37 +1243,60 @@ func Document_AutosavesInPlace() bool { return DocumentClass.AutosavesInPlace() } -// Returns the types of data the receiver can write natively and any types filterable to that native type. [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/1515236-writabletypes?language=objc -func (dc _DocumentClass) WritableTypes() []string { - rv := objc.Call[[]string](dc, objc.Sel("writableTypes")) +// [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 the types of data the receiver can write natively and any types filterable to that native type. [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/1515236-writabletypes?language=objc -func Document_WritableTypes() []string { - return DocumentClass.WritableTypes() +// [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 has changes that have not been autosaved. [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/1515079-hasunautosavedchanges?language=objc -func (d_ Document) HasUnautosavedChanges() bool { - rv := objc.Call[bool](d_, objc.Sel("hasUnautosavedChanges")) +// [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 document type to use for an autosave operation. [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/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/1515092-filenameextensionwashiddeninlast?language=objc +func (d_ Document) FileNameExtensionWasHiddenInLastRunSavePanel() bool { + rv := objc.Call[bool](d_, objc.Sel("fileNameExtensionWasHiddenInLastRunSavePanel")) + return rv +} + +// 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/1515200-backupfileurl?language=objc +func (d_ Document) BackupFileURL() foundation.URL { + rv := objc.Call[foundation.URL](d_, objc.Sel("backupFileURL")) + 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) AutosavedContentsFileURL() foundation.URL { + rv := objc.Call[foundation.URL](d_, objc.Sel("autosavedContentsFileURL")) 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:"), objc.Ptr(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 @@ -1269,14 +1305,37 @@ func (d_ Document) WindowForSheet() Window { return rv } -// 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] +// 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/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/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] +// +// [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 } +// 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 bcce8004..ba56733e 100644 --- a/macos/appkit/document_controller.gen.go +++ b/macos/appkit/document_controller.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package appkit @@ -19,44 +19,49 @@ 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 - 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 + DuplicateDocumentWithContentsOfURLCopyingDisplayNameError(url foundation.IURL, duplicateByCopying bool, displayNameOrNil string, outError foundation.IError) Document + PresentError(error foundation.IError) bool SaveAllDocuments(sender objc.IObject) objc.Object + URLsFromRunningOpenPanel() []foundation.URL + DisplayNameForType(typeName string) string + OpenDocument(sender objc.IObject) objc.Object ValidateUserInterfaceItem(item PValidatedUserInterfaceItem) bool ValidateUserInterfaceItemObject(itemObject objc.IObject) bool TypeForContentsOfURLError(url foundation.IURL, outError foundation.IError) string + MakeUntitledDocumentOfTypeError(typeName string, outError foundation.IError) Document + NewDocument(sender objc.IObject) objc.Object + OpenUntitledDocumentAndDisplayError(displayDocument bool, outError foundation.IError) Document + MakeDocumentWithContentsOfURLOfTypeError(url foundation.IURL, typeName string, outError foundation.IError) 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) - DocumentClassForType(typeName string) objc.Class - OpenUntitledDocumentAndDisplayError(displayDocument bool, outError foundation.IError) Document - DuplicateDocumentWithContentsOfURLCopyingDisplayNameError(url foundation.IURL, duplicateByCopying bool, displayNameOrNil string, outError foundation.IError) 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 foundation.IError) Document - PresentError(error foundation.IError) bool + ReopenDocumentForURLWithContentsOfURLDisplayCompletionHandler(urlOrNil foundation.IURL, contentsURL foundation.IURL, displayDocument bool, completionHandler func(document Document, documentWasAlreadyOpen bool, error foundation.Error)) StandardShareMenuItem() MenuItem - BeginOpenPanelForTypesCompletionHandler(openPanel IOpenPanel, inTypes []string, completionHandler func(result int)) + 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 foundation.IError) Document + RemoveDocument(document IDocument) + DocumentClassForType(typeName string) objc.Class CurrentDocument() Document MaximumRecentDocumentCount() uint - DefaultType() string DocumentClassNames() []string + DefaultType() string + HasEditedDocuments() bool + CurrentDirectory() string + Documents() []Document 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] @@ -82,10 +87,6 @@ func (dc _DocumentControllerClass) Alloc() DocumentController { return rv } -func DocumentController_Alloc() DocumentController { - return DocumentControllerClass.Alloc() -} - func (dc _DocumentControllerClass) New() DocumentController { rv := objc.Call[DocumentController](dc, objc.Sel("new")) rv.Autorelease() @@ -96,30 +97,6 @@ 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:"), objc.Ptr(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 @@ -128,40 +105,36 @@ func (d_ DocumentController) WillPresentError(error foundation.IError) foundatio return rv } -// 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) -} - -// Removes the given document from the list of open documents. [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/1514984-removedocument?language=objc -func (d_ DocumentController) RemoveDocument(document IDocument) { - objc.Call[objc.Void](d_, objc.Sel("removeDocument:"), objc.Ptr(document)) +// [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 foundation.IError) Document { + rv := objc.Call[Document](d_, objc.Sel("duplicateDocumentWithContentsOfURL:copying:displayName:error:"), objc.Ptr(url), duplicateByCopying, displayNameOrNil, objc.Ptr(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] +// Presents an error alert to the user as a modal panel. [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/1514977-presenterror?language=objc +func (d_ DocumentController) PresentError(error foundation.IError) bool { + rv := objc.Call[bool](d_, objc.Sel("presentError:"), objc.Ptr(error)) + return rv } -// Returns the document object whose window controller owns a specified window. [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/1514970-documentforwindow?language=objc -func (d_ DocumentController) DocumentForWindow(window IWindow) Document { - rv := objc.Call[Document](d_, objc.Sel("documentForWindow:"), objc.Ptr(window)) +// [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 } -// Adds the given document to the list of open documents. [Full Topic] +// 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/1515013-adddocument?language=objc -func (d_ DocumentController) AddDocument(document IDocument) { - objc.Call[objc.Void](d_, objc.Sel("addDocument:"), objc.Ptr(document)) +// [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 } // 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] @@ -172,11 +145,11 @@ func (d_ DocumentController) DisplayNameForType(typeName string) string { return rv } -// As the action method called by the Save All command, saves all open documents of the application that need to be saved. [Full Topic] +// 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/1514959-savealldocuments?language=objc -func (d_ DocumentController) SaveAllDocuments(sender objc.IObject) objc.Object { - rv := objc.Call[objc.Object](d_, objc.Sel("saveAllDocuments:"), sender) +// [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 } @@ -205,6 +178,89 @@ 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 foundation.IError) Document { + rv := objc.Call[Document](d_, objc.Sel("makeUntitledDocumentOfType:error:"), typeName, objc.Ptr(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 foundation.IError) Document { + rv := objc.Call[Document](d_, objc.Sel("openUntitledDocumentAndDisplay:error:"), displayDocument, objc.Ptr(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 foundation.IError) Document { + rv := objc.Call[Document](d_, objc.Sel("makeDocumentWithContentsOfURL:ofType:error:"), objc.Ptr(url), typeName, objc.Ptr(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:"), objc.Ptr(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:"), objc.Ptr(error), objc.Ptr(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:"), objc.Ptr(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:"), objc.Ptr(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 @@ -220,14 +276,6 @@ func (d_ DocumentController) NoteNewRecentDocument(document IDocument) { objc.Call[objc.Void](d_, objc.Sel("noteNewRecentDocument:"), objc.Ptr(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 @@ -235,44 +283,41 @@ func (d_ DocumentController) NoteNewRecentDocumentURL(url foundation.IURL) { objc.Call[objc.Void](d_, objc.Sel("noteNewRecentDocumentURL:"), objc.Ptr(url)) } -// Returns the NSDocument subclass associated with a given document type. [Full Topic] +// 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] // -// [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 +// [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:"), objc.Ptr(urlOrNil), objc.Ptr(contentsURL), displayDocument, completionHandler) } -// Creates a new untitled document, presents its user interface if displayDocument is YES, and returns the document if successful. [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/1515014-openuntitleddocumentanddisplay?language=objc -func (d_ DocumentController) OpenUntitledDocumentAndDisplayError(displayDocument bool, outError foundation.IError) Document { - rv := objc.Call[Document](d_, objc.Sel("openUntitledDocumentAndDisplay:error:"), displayDocument, objc.Ptr(outError)) +// [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 } -// 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] +// 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/1514982-duplicatedocumentwithcontentsofu?language=objc -func (d_ DocumentController) DuplicateDocumentWithContentsOfURLCopyingDisplayNameError(url foundation.IURL, duplicateByCopying bool, displayNameOrNil string, outError foundation.IError) Document { - rv := objc.Call[Document](d_, objc.Sel("duplicateDocumentWithContentsOfURL:copying:displayName:error:"), objc.Ptr(url), duplicateByCopying, displayNameOrNil, objc.Ptr(outError)) - 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 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] +// Opens a document located by a URL, optionally presents its user interface, and calls the passed-in completion handler. [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) - rv.Autorelease() - return rv +// [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:"), objc.Ptr(url), displayDocument, completionHandler) } -// Iterates through all the open documents and tries to close them one by one using the specified delegate. [Full Topic] +// Returns the document object whose window controller owns a specified window. [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) +// [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:"), objc.Ptr(window)) + return rv } // 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] @@ -283,27 +328,34 @@ func (d_ DocumentController) MakeDocumentForURLWithContentsOfURLOfTypeError(urlO return rv } -// 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:"), objc.Ptr(error)) +// [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:"), objc.Ptr(document)) +} + +// Returns the NSDocument subclass associated with a given document type. [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) return rv } -// Returns a menu item that your app uses for sharing the current document. [Full Topic] +// Returns the shared NSDocumentController instance. [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/1514981-shareddocumentcontroller?language=objc +func (dc _DocumentControllerClass) SharedDocumentController() DocumentController { + rv := objc.Call[DocumentController](dc, objc.Sel("sharedDocumentController")) return rv } -// Presents a nonmodal Open dialog that displays files you can open from a list of UTIs. [Full Topic] +// Returns the shared NSDocumentController instance. [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:"), objc.Ptr(openPanel), inTypes, completionHandler) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsdocumentcontroller/1514981-shareddocumentcontroller?language=objc +func DocumentController_SharedDocumentController() DocumentController { + return DocumentControllerClass.SharedDocumentController() } // The document object associated with the main window. [Full Topic] @@ -322,14 +374,6 @@ 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 @@ -338,34 +382,27 @@ func (d_ DocumentController) DocumentClassNames() []string { return rv } -// The list of recent-document URLs. [Full Topic] +// 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/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/1514986-defaulttype?language=objc +func (d_ DocumentController) DefaultType() string { + rv := objc.Call[string](d_, objc.Sel("defaultType")) return rv } -// The time interval (in seconds) for periodic autosaving. [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/1514953-autosavingdelay?language=objc -func (d_ DocumentController) AutosavingDelay() foundation.TimeInterval { - rv := objc.Call[foundation.TimeInterval](d_, objc.Sel("autosavingDelay")) +// [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 } -// The time interval (in seconds) for periodic autosaving. [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) -} - -// A Boolean value that the system uses to insert a Share menu in the File menu. [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/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/1514942-currentdirectory?language=objc +func (d_ DocumentController) CurrentDirectory() string { + rv := objc.Call[string](d_, objc.Sel("currentDirectory")) return rv } @@ -377,33 +414,33 @@ func (d_ DocumentController) Documents() []Document { return rv } -// A Boolean value indicating whether the receiver has any documents with unsaved changes. [Full Topic] +// The list of recent-document URLs. [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/1514976-recentdocumenturls?language=objc +func (d_ DocumentController) RecentDocumentURLs() []foundation.URL { + rv := objc.Call[[]foundation.URL](d_, objc.Sel("recentDocumentURLs")) return rv } -// Returns the shared NSDocumentController instance. [Full Topic] +// 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/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/2902308-allowsautomaticsharemenu?language=objc +func (d_ DocumentController) AllowsAutomaticShareMenu() bool { + rv := objc.Call[bool](d_, objc.Sel("allowsAutomaticShareMenu")) return rv } -// Returns the shared NSDocumentController instance. [Full Topic] +// The time interval (in seconds) for periodic autosaving. [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/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")) - return rv +// [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) } diff --git a/macos/appkit/dragging_destination.gen.go b/macos/appkit/dragging_destination_protocol.gen.go similarity index 68% rename from macos/appkit/dragging_destination.gen.go rename to macos/appkit/dragging_destination_protocol.gen.go index 4f6eb700..afb8199e 100644 --- a/macos/appkit/dragging_destination.gen.go +++ b/macos/appkit/dragging_destination_protocol.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package appkit @@ -10,156 +10,159 @@ 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 - PrepareForDragOperation(sender DraggingInfoWrapper) bool - HasPrepareForDragOperation() bool + ConcludeDragOperation(sender DraggingInfoObject) + HasConcludeDragOperation() bool // optional - DraggingEntered(sender DraggingInfoWrapper) DragOperation + DraggingEntered(sender DraggingInfoObject) DragOperation HasDraggingEntered() bool // optional - PerformDragOperation(sender DraggingInfoWrapper) bool + PerformDragOperation(sender DraggingInfoObject) bool HasPerformDragOperation() bool // optional - ConcludeDragOperation(sender DraggingInfoWrapper) - HasConcludeDragOperation() bool + UpdateDraggingItemsForDrag(sender DraggingInfoObject) + HasUpdateDraggingItemsForDrag() bool + + // optional + PrepareForDragOperation(sender DraggingInfoObject) bool + HasPrepareForDragOperation() bool // optional - DraggingUpdated(sender DraggingInfoWrapper) DragOperation + DraggingUpdated(sender DraggingInfoObject) DragOperation HasDraggingUpdated() bool // optional - DraggingEnded(sender DraggingInfoWrapper) + DraggingEnded(sender DraggingInfoObject) HasDraggingEnded() bool +} - // optional - UpdateDraggingItemsForDrag(sender DraggingInfoWrapper) - HasUpdateDraggingItemsForDrag() bool +// ensure impl type implements protocol interface +var _ PDraggingDestination = (*DraggingDestinationObject)(nil) - // optional - DraggingExited(sender DraggingInfoWrapper) - HasDraggingExited() bool +// A concrete type for the [PDraggingDestination] protocol. +type DraggingDestinationObject struct { + objc.Object } -// A concrete type wrapper for the [PDraggingDestination] protocol. -type DraggingDestinationWrapper struct { - objc.Object +func (d_ DraggingDestinationObject) HasDraggingExited() bool { + return d_.RespondsToSelector(objc.Sel("draggingExited:")) } -func (d_ DraggingDestinationWrapper) HasWantsPeriodicDraggingUpdates() bool { +// 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 draggingUpdated: messages. [Full Topic] +// Asks the destination object whether it wants to receive periodic [appkit/nsdraggingdestination/draggingupdated] messages. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/appkit/nsdraggingdestination/1416049-wantsperiodicdraggingupdates?language=objc -func (d_ DraggingDestinationWrapper) WantsPeriodicDraggingUpdates() bool { +func (d_ DraggingDestinationObject) WantsPeriodicDraggingUpdates() bool { rv := objc.Call[bool](d_, objc.Sel("wantsPeriodicDraggingUpdates")) return rv } -func (d_ DraggingDestinationWrapper) 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_ DraggingDestinationWrapper) PrepareForDragOperation(sender PDraggingInfo) 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_ DraggingDestinationWrapper) HasDraggingEntered() bool { +func (d_ DraggingDestinationObject) HasDraggingEntered() bool { return d_.RespondsToSelector(objc.Sel("draggingEntered:")) } // Invoked when the dragged image enters destination bounds or frame; delegate returns dragging operation to perform. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/appkit/nsdraggingdestination/1416019-draggingentered?language=objc -func (d_ DraggingDestinationWrapper) DraggingEntered(sender PDraggingInfo) DragOperation { +func (d_ DraggingDestinationObject) DraggingEntered(sender DraggingInfoObject) DragOperation { po0 := objc.WrapAsProtocol("NSDraggingInfo", sender) rv := objc.Call[DragOperation](d_, objc.Sel("draggingEntered:"), po0) return rv } -func (d_ DraggingDestinationWrapper) HasPerformDragOperation() bool { +func (d_ DraggingDestinationObject) HasPerformDragOperation() bool { return d_.RespondsToSelector(objc.Sel("performDragOperation:")) } // Invoked after the released image has been removed from the screen, signaling the receiver to import the pasteboard data. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/appkit/nsdraggingdestination/1415970-performdragoperation?language=objc -func (d_ DraggingDestinationWrapper) PerformDragOperation(sender PDraggingInfo) bool { +func (d_ DraggingDestinationObject) PerformDragOperation(sender DraggingInfoObject) bool { po0 := objc.WrapAsProtocol("NSDraggingInfo", sender) rv := objc.Call[bool](d_, objc.Sel("performDragOperation:"), po0) return rv } -func (d_ DraggingDestinationWrapper) HasConcludeDragOperation() bool { - return d_.RespondsToSelector(objc.Sel("concludeDragOperation:")) +func (d_ DraggingDestinationObject) HasUpdateDraggingItemsForDrag() bool { + return d_.RespondsToSelector(objc.Sel("updateDraggingItemsForDrag:")) } -// Invoked when the dragging operation is complete, signaling the receiver to perform any necessary clean-up. [Full Topic] +// Invoked when the dragging images should be changed. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsdraggingdestination/1416010-concludedragoperation?language=objc -func (d_ DraggingDestinationWrapper) ConcludeDragOperation(sender PDraggingInfo) { +// [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("concludeDragOperation:"), po0) + objc.Call[objc.Void](d_, objc.Sel("updateDraggingItemsForDrag:"), po0) +} + +func (d_ DraggingDestinationObject) HasPrepareForDragOperation() bool { + return d_.RespondsToSelector(objc.Sel("prepareForDragOperation:")) +} + +// 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/1416066-preparefordragoperation?language=objc +func (d_ DraggingDestinationObject) PrepareForDragOperation(sender DraggingInfoObject) bool { + po0 := objc.WrapAsProtocol("NSDraggingInfo", sender) + rv := objc.Call[bool](d_, objc.Sel("prepareForDragOperation:"), po0) + return rv } -func (d_ DraggingDestinationWrapper) HasDraggingUpdated() bool { +func (d_ DraggingDestinationObject) HasDraggingUpdated() bool { return d_.RespondsToSelector(objc.Sel("draggingUpdated:")) } // Invoked periodically as the image is held within the destination area, allowing modification of the dragging operation or mouse-pointer position. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/appkit/nsdraggingdestination/1415998-draggingupdated?language=objc -func (d_ DraggingDestinationWrapper) DraggingUpdated(sender PDraggingInfo) DragOperation { +func (d_ DraggingDestinationObject) DraggingUpdated(sender DraggingInfoObject) DragOperation { po0 := objc.WrapAsProtocol("NSDraggingInfo", sender) rv := objc.Call[DragOperation](d_, objc.Sel("draggingUpdated:"), po0) return rv } -func (d_ DraggingDestinationWrapper) HasDraggingEnded() bool { +func (d_ DraggingDestinationObject) HasDraggingEnded() bool { return d_.RespondsToSelector(objc.Sel("draggingEnded:")) } // Called when a drag operation ends. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/appkit/nsdraggingdestination/1416096-draggingended?language=objc -func (d_ DraggingDestinationWrapper) DraggingEnded(sender PDraggingInfo) { +func (d_ DraggingDestinationObject) DraggingEnded(sender DraggingInfoObject) { po0 := objc.WrapAsProtocol("NSDraggingInfo", sender) objc.Call[objc.Void](d_, objc.Sel("draggingEnded:"), po0) } - -func (d_ DraggingDestinationWrapper) 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_ DraggingDestinationWrapper) UpdateDraggingItemsForDrag(sender PDraggingInfo) { - po0 := objc.WrapAsProtocol("NSDraggingInfo", sender) - objc.Call[objc.Void](d_, objc.Sel("updateDraggingItemsForDrag:"), po0) -} - -func (d_ DraggingDestinationWrapper) 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_ DraggingDestinationWrapper) DraggingExited(sender PDraggingInfo) { - po0 := objc.WrapAsProtocol("NSDraggingInfo", sender) - objc.Call[objc.Void](d_, objc.Sel("draggingExited:"), po0) -} diff --git a/macos/appkit/dragging_image_component.gen.go b/macos/appkit/dragging_image_component.gen.go index 2f536a4a..fca73b95 100644 --- a/macos/appkit/dragging_image_component.gen.go +++ b/macos/appkit/dragging_image_component.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package appkit @@ -59,10 +59,6 @@ func (dc _DraggingImageComponentClass) Alloc() DraggingImageComponent { return rv } -func DraggingImageComponent_Alloc() DraggingImageComponent { - return DraggingImageComponentClass.Alloc() -} - func (dc _DraggingImageComponentClass) New() DraggingImageComponent { rv := objc.Call[DraggingImageComponent](dc, objc.Sel("new")) rv.Autorelease() diff --git a/macos/appkit/dragging_info.gen.go b/macos/appkit/dragging_info_protocol.gen.go similarity index 74% rename from macos/appkit/dragging_info.gen.go rename to macos/appkit/dragging_info_protocol.gen.go index 44f3c422..1b315259 100644 --- a/macos/appkit/dragging_info.gen.go +++ b/macos/appkit/dragging_info_protocol.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package appkit @@ -15,33 +15,45 @@ 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 - SlideDraggedImageTo(screenPoint foundation.Point) - HasSlideDraggedImageTo() bool + SetNumberOfValidItemsForDrop(value int) + HasSetNumberOfValidItemsForDrop() bool // optional - DraggingDestinationWindow() IWindow + NumberOfValidItemsForDrop() int + HasNumberOfValidItemsForDrop() bool + + // optional + DraggingDestinationWindow() Window HasDraggingDestinationWindow() bool // optional - DraggingPasteboard() IPasteboard - HasDraggingPasteboard() bool + SetAnimatesToDestination(value bool) + HasSetAnimatesToDestination() bool + + // optional + AnimatesToDestination() bool + HasAnimatesToDestination() bool // optional DraggingSourceOperationMask() DragOperation HasDraggingSourceOperationMask() bool // optional - SetNumberOfValidItemsForDrop(value int) - HasSetNumberOfValidItemsForDrop() bool + DraggingSource() objc.Object + HasDraggingSource() bool // optional - NumberOfValidItemsForDrop() int - HasNumberOfValidItemsForDrop() bool + DraggingLocation() foundation.Point + HasDraggingLocation() bool // optional SetDraggingFormation(value DraggingFormation) @@ -56,229 +68,220 @@ type PDraggingInfo interface { HasSpringLoadingHighlight() bool // optional - DraggedImageLocation() foundation.Point - HasDraggedImageLocation() bool - - // optional - DraggingLocation() foundation.Point - HasDraggingLocation() bool - - // optional - DraggingSource() objc.IObject - HasDraggingSource() bool - - // optional - SetAnimatesToDestination(value bool) - HasSetAnimatesToDestination() bool + DraggingSequenceNumber() int + HasDraggingSequenceNumber() bool // optional - AnimatesToDestination() bool - HasAnimatesToDestination() bool + DraggingPasteboard() Pasteboard + HasDraggingPasteboard() bool // optional - DraggingSequenceNumber() int - HasDraggingSequenceNumber() bool + DraggedImageLocation() foundation.Point + HasDraggedImageLocation() bool } -// A concrete type wrapper for the [PDraggingInfo] protocol. -type DraggingInfoWrapper struct { +// ensure impl type implements protocol interface +var _ PDraggingInfo = (*DraggingInfoObject)(nil) + +// A concrete type for the [PDraggingInfo] protocol. +type DraggingInfoObject struct { objc.Object } -func (d_ DraggingInfoWrapper) HasEnumerateDraggingItemsWithOptionsForViewClassesSearchOptionsUsingBlock() bool { +func (d_ DraggingInfoObject) HasEnumerateDraggingItemsWithOptionsForViewClassesSearchOptionsUsingBlock() bool { return d_.RespondsToSelector(objc.Sel("enumerateDraggingItemsWithOptions:forView:classes:searchOptions:usingBlock:")) } // Enumerates through each dragging item. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/appkit/nsdragginginfo/1416074-enumeratedraggingitemswithoption?language=objc -func (d_ DraggingInfoWrapper) EnumerateDraggingItemsWithOptionsForViewClassesSearchOptionsUsingBlock(enumOpts DraggingItemEnumerationOptions, view IView, classArray []objc.IClass, searchOptions map[PasteboardReadingOptionKey]objc.IObject, block func(draggingItem DraggingItem, idx int, stop *bool)) { +func (d_ DraggingInfoObject) EnumerateDraggingItemsWithOptionsForViewClassesSearchOptionsUsingBlock(enumOpts DraggingItemEnumerationOptions, view View, classArray []objc.Class, searchOptions map[PasteboardReadingOptionKey]objc.Object, block func(draggingItem DraggingItem, idx int, stop *bool)) { objc.Call[objc.Void](d_, objc.Sel("enumerateDraggingItemsWithOptions:forView:classes:searchOptions:usingBlock:"), enumOpts, objc.Ptr(view), classArray, searchOptions, block) } -func (d_ DraggingInfoWrapper) HasResetSpringLoading() bool { +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")) } // Resets a spring-loading operation to its initial state. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/appkit/nsdragginginfo/1416012-resetspringloading?language=objc -func (d_ DraggingInfoWrapper) ResetSpringLoading() { +func (d_ DraggingInfoObject) ResetSpringLoading() { objc.Call[objc.Void](d_, objc.Sel("resetSpringLoading")) } -func (d_ DraggingInfoWrapper) HasSlideDraggedImageTo() bool { - return d_.RespondsToSelector(objc.Sel("slideDraggedImageTo:")) +func (d_ DraggingInfoObject) HasSetNumberOfValidItemsForDrop() bool { + return d_.RespondsToSelector(objc.Sel("setNumberOfValidItemsForDrop:")) } -// Slides the image to a specified location. [Full Topic] +// The number of valid items for a drop operation. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsdragginginfo/1416045-slidedraggedimageto?language=objc -func (d_ DraggingInfoWrapper) SlideDraggedImageTo(screenPoint foundation.Point) { - objc.Call[objc.Void](d_, objc.Sel("slideDraggedImageTo:"), screenPoint) +// [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")) +} + +// 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) NumberOfValidItemsForDrop() int { + rv := objc.Call[int](d_, objc.Sel("numberOfValidItemsForDrop")) + return rv } -func (d_ DraggingInfoWrapper) HasDraggingDestinationWindow() bool { +func (d_ DraggingInfoObject) HasDraggingDestinationWindow() bool { return d_.RespondsToSelector(objc.Sel("draggingDestinationWindow")) } // The destination window for the dragging operation. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/appkit/nsdragginginfo/1416088-draggingdestinationwindow?language=objc -func (d_ DraggingInfoWrapper) DraggingDestinationWindow() Window { +func (d_ DraggingInfoObject) DraggingDestinationWindow() Window { rv := objc.Call[Window](d_, objc.Sel("draggingDestinationWindow")) return rv } -func (d_ DraggingInfoWrapper) HasDraggingPasteboard() bool { - return d_.RespondsToSelector(objc.Sel("draggingPasteboard")) +func (d_ DraggingInfoObject) HasSetAnimatesToDestination() bool { + return d_.RespondsToSelector(objc.Sel("setAnimatesToDestination:")) } -// The pasteboard object that holds the dragged data. [Full Topic] +// 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/1416092-draggingpasteboard?language=objc -func (d_ DraggingInfoWrapper) DraggingPasteboard() Pasteboard { - rv := objc.Call[Pasteboard](d_, objc.Sel("draggingPasteboard")) +// [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_ DraggingInfoWrapper) HasDraggingSourceOperationMask() bool { +func (d_ DraggingInfoObject) HasDraggingSourceOperationMask() bool { return d_.RespondsToSelector(objc.Sel("draggingSourceOperationMask")) } // Information about the dragging operation and the data it contains. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/appkit/nsdragginginfo/1415966-draggingsourceoperationmask?language=objc -func (d_ DraggingInfoWrapper) DraggingSourceOperationMask() DragOperation { +func (d_ DraggingInfoObject) DraggingSourceOperationMask() DragOperation { rv := objc.Call[DragOperation](d_, objc.Sel("draggingSourceOperationMask")) return rv } -func (d_ DraggingInfoWrapper) HasSetNumberOfValidItemsForDrop() bool { - return d_.RespondsToSelector(objc.Sel("setNumberOfValidItemsForDrop:")) +func (d_ DraggingInfoObject) HasDraggingSource() bool { + return d_.RespondsToSelector(objc.Sel("draggingSource")) } -// The number of valid items for a drop operation. [Full Topic] +// The source, or owner, of the dragged data. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsdragginginfo/1416033-numberofvaliditemsfordrop?language=objc -func (d_ DraggingInfoWrapper) SetNumberOfValidItemsForDrop(value int) { - objc.Call[objc.Void](d_, objc.Sel("setNumberOfValidItemsForDrop:"), value) +// [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_ DraggingInfoWrapper) HasNumberOfValidItemsForDrop() bool { - return d_.RespondsToSelector(objc.Sel("numberOfValidItemsForDrop")) +func (d_ DraggingInfoObject) HasDraggingLocation() bool { + return d_.RespondsToSelector(objc.Sel("draggingLocation")) } -// The number of valid items for a drop operation. [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/1416033-numberofvaliditemsfordrop?language=objc -func (d_ DraggingInfoWrapper) NumberOfValidItemsForDrop() int { - rv := objc.Call[int](d_, objc.Sel("numberOfValidItemsForDrop")) +// [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_ DraggingInfoWrapper) HasSetDraggingFormation() bool { +func (d_ DraggingInfoObject) HasSetDraggingFormation() bool { return d_.RespondsToSelector(objc.Sel("setDraggingFormation:")) } // The formation of the dragging items while the drag is over the destination. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/appkit/nsdragginginfo/1416041-draggingformation?language=objc -func (d_ DraggingInfoWrapper) SetDraggingFormation(value DraggingFormation) { +func (d_ DraggingInfoObject) SetDraggingFormation(value DraggingFormation) { objc.Call[objc.Void](d_, objc.Sel("setDraggingFormation:"), value) } -func (d_ DraggingInfoWrapper) HasDraggingFormation() bool { +func (d_ DraggingInfoObject) HasDraggingFormation() bool { return d_.RespondsToSelector(objc.Sel("draggingFormation")) } // The formation of the dragging items while the drag is over the destination. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/appkit/nsdragginginfo/1416041-draggingformation?language=objc -func (d_ DraggingInfoWrapper) DraggingFormation() DraggingFormation { +func (d_ DraggingInfoObject) DraggingFormation() DraggingFormation { rv := objc.Call[DraggingFormation](d_, objc.Sel("draggingFormation")) return rv } -func (d_ DraggingInfoWrapper) HasSpringLoadingHighlight() bool { +func (d_ DraggingInfoObject) HasSpringLoadingHighlight() bool { return d_.RespondsToSelector(objc.Sel("springLoadingHighlight")) } // A highlighting style for your app’s user interface to display during a spring-loading operation. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/appkit/nsdragginginfo/1416077-springloadinghighlight?language=objc -func (d_ DraggingInfoWrapper) SpringLoadingHighlight() SpringLoadingHighlight { +func (d_ DraggingInfoObject) SpringLoadingHighlight() SpringLoadingHighlight { rv := objc.Call[SpringLoadingHighlight](d_, objc.Sel("springLoadingHighlight")) return rv } -func (d_ DraggingInfoWrapper) HasDraggedImageLocation() bool { - return d_.RespondsToSelector(objc.Sel("draggedImageLocation")) -} - -// 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/1415990-draggedimagelocation?language=objc -func (d_ DraggingInfoWrapper) DraggedImageLocation() foundation.Point { - rv := objc.Call[foundation.Point](d_, objc.Sel("draggedImageLocation")) - return rv -} - -func (d_ DraggingInfoWrapper) HasDraggingLocation() bool { - return d_.RespondsToSelector(objc.Sel("draggingLocation")) -} - -// 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/1416070-dragginglocation?language=objc -func (d_ DraggingInfoWrapper) DraggingLocation() foundation.Point { - rv := objc.Call[foundation.Point](d_, objc.Sel("draggingLocation")) - return rv -} - -func (d_ DraggingInfoWrapper) HasDraggingSource() bool { - return d_.RespondsToSelector(objc.Sel("draggingSource")) +func (d_ DraggingInfoObject) HasDraggingSequenceNumber() bool { + return d_.RespondsToSelector(objc.Sel("draggingSequenceNumber")) } -// The source, or owner, of the dragged data. [Full Topic] +// A number that uniquely identifies the dragging session. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsdragginginfo/1416068-draggingsource?language=objc -func (d_ DraggingInfoWrapper) DraggingSource() objc.Object { - rv := objc.Call[objc.Object](d_, objc.Sel("draggingSource")) +// [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 } -func (d_ DraggingInfoWrapper) 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_ DraggingInfoWrapper) SetAnimatesToDestination(value bool) { - objc.Call[objc.Void](d_, objc.Sel("setAnimatesToDestination:"), value) -} - -func (d_ DraggingInfoWrapper) 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_ DraggingInfoWrapper) 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 } -func (d_ DraggingInfoWrapper) 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_ DraggingInfoWrapper) 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 } diff --git a/macos/appkit/dragging_item.gen.go b/macos/appkit/dragging_item.gen.go index fab094f2..a7311fd2 100644 --- a/macos/appkit/dragging_item.gen.go +++ b/macos/appkit/dragging_item.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package appkit @@ -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) } @@ -61,10 +61,6 @@ func (dc _DraggingItemClass) Alloc() DraggingItem { return rv } -func DraggingItem_Alloc() DraggingItem { - return DraggingItemClass.Alloc() -} - func (dc _DraggingItemClass) New() DraggingItem { rv := objc.Call[DraggingItem](dc, objc.Sel("new")) rv.Autorelease() @@ -87,14 +83,6 @@ 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 @@ -118,6 +106,14 @@ 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 95746562..78c5bb6f 100644 --- a/macos/appkit/dragging_session.gen.go +++ b/macos/appkit/dragging_session.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package appkit @@ -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) - DraggingLeaderIndex() int - SetDraggingLeaderIndex(value int) + DraggingSequenceNumber() int AnimatesToStartingPositionsOnCancelOrFail() bool SetAnimatesToStartingPositionsOnCancelOrFail(value bool) - DraggingLocation() foundation.Point - DraggingSequenceNumber() int + DraggingLeaderIndex() int + SetDraggingLeaderIndex(value int) } // The encapsulation of a drag-and-drop action that supports modification of the drag while in progress. [Full Topic] @@ -49,10 +49,6 @@ func (dc _DraggingSessionClass) Alloc() DraggingSession { return rv } -func DraggingSession_Alloc() DraggingSession { - return DraggingSessionClass.Alloc() -} - func (dc _DraggingSessionClass) New() DraggingSession { rv := objc.Call[DraggingSession](dc, objc.Sel("new")) rv.Autorelease() @@ -83,6 +79,14 @@ 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 @@ -98,21 +102,14 @@ func (d_ DraggingSession) SetDraggingFormation(value DraggingFormation) { objc.Call[objc.Void](d_, objc.Sel("setDraggingFormation:"), value) } -// 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) DraggingLeaderIndex() int { - rv := objc.Call[int](d_, objc.Sel("draggingLeaderIndex")) +// [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 } -// 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 @@ -128,18 +125,17 @@ func (d_ DraggingSession) SetAnimatesToStartingPositionsOnCancelOrFail(value boo objc.Call[objc.Void](d_, objc.Sel("setAnimatesToStartingPositionsOnCancelOrFail:"), value) } -// The current cursor location of the drag in screen coordinates. [Full Topic] +// The index of the dragging item under the cursor. [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")) +// [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 } -// 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")) - return rv +// [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) } diff --git a/macos/appkit/dragging_source.gen.go b/macos/appkit/dragging_source.gen.go deleted file mode 100644 index bafdd886..00000000 --- a/macos/appkit/dragging_source.gen.go +++ /dev/null @@ -1,49 +0,0 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY - -package appkit - -import ( - "github.com/progrium/macdriver/macos/foundation" - "github.com/progrium/macdriver/objc" -) - -// A set of methods that are implemented by the source object in a dragging session. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsdraggingsource?language=objc -type PDraggingSource interface { - // optional - DraggingSessionMovedToPoint(session DraggingSession, screenPoint foundation.Point) - HasDraggingSessionMovedToPoint() bool - - // optional - IgnoreModifierKeysForDraggingSession(session DraggingSession) bool - HasIgnoreModifierKeysForDraggingSession() bool -} - -// A concrete type wrapper for the [PDraggingSource] protocol. -type DraggingSourceWrapper struct { - objc.Object -} - -func (d_ DraggingSourceWrapper) HasDraggingSessionMovedToPoint() bool { - return d_.RespondsToSelector(objc.Sel("draggingSession:movedToPoint:")) -} - -// Invoked when the drag moves on the screen. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsdraggingsource/1416079-draggingsession?language=objc -func (d_ DraggingSourceWrapper) DraggingSessionMovedToPoint(session IDraggingSession, screenPoint foundation.Point) { - objc.Call[objc.Void](d_, objc.Sel("draggingSession:movedToPoint:"), objc.Ptr(session), screenPoint) -} - -func (d_ DraggingSourceWrapper) HasIgnoreModifierKeysForDraggingSession() bool { - return d_.RespondsToSelector(objc.Sel("ignoreModifierKeysForDraggingSession:")) -} - -// Returns whether the modifier keys will be ignored for this dragging session. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsdraggingsource/1415974-ignoremodifierkeysfordraggingses?language=objc -func (d_ DraggingSourceWrapper) IgnoreModifierKeysForDraggingSession(session IDraggingSession) bool { - rv := objc.Call[bool](d_, objc.Sel("ignoreModifierKeysForDraggingSession:"), objc.Ptr(session)) - return rv -} diff --git a/macos/appkit/dragging_source_protocol.gen.go b/macos/appkit/dragging_source_protocol.gen.go new file mode 100644 index 00000000..6309f99a --- /dev/null +++ b/macos/appkit/dragging_source_protocol.gen.go @@ -0,0 +1,98 @@ +// Code generated by DarwinKit. DO NOT EDIT. + +package appkit + +import ( + "github.com/progrium/macdriver/macos/foundation" + "github.com/progrium/macdriver/objc" +) + +// A set of methods that are implemented by the source object in a dragging session. [Full Topic] +// +// [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 +} + +// ensure impl type implements protocol interface +var _ PDraggingSource = (*DraggingSourceObject)(nil) + +// A concrete type for the [PDraggingSource] protocol. +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:"), objc.Ptr(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:"), objc.Ptr(session), screenPoint) +} + +func (d_ DraggingSourceObject) HasDraggingSessionMovedToPoint() bool { + return d_.RespondsToSelector(objc.Sel("draggingSession:movedToPoint:")) +} + +// Invoked when the drag moves on the screen. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsdraggingsource/1416079-draggingsession?language=objc +func (d_ DraggingSourceObject) DraggingSessionMovedToPoint(session DraggingSession, screenPoint foundation.Point) { + objc.Call[objc.Void](d_, objc.Sel("draggingSession:movedToPoint:"), objc.Ptr(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:"), objc.Ptr(session), context) + return rv +} + +func (d_ DraggingSourceObject) HasIgnoreModifierKeysForDraggingSession() bool { + return d_.RespondsToSelector(objc.Sel("ignoreModifierKeysForDraggingSession:")) +} + +// Returns whether the modifier keys will be ignored for this dragging session. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsdraggingsource/1415974-ignoremodifierkeysfordraggingses?language=objc +func (d_ DraggingSourceObject) IgnoreModifierKeysForDraggingSession(session DraggingSession) bool { + rv := objc.Call[bool](d_, objc.Sel("ignoreModifierKeysForDraggingSession:"), objc.Ptr(session)) + return rv +} diff --git a/macos/appkit/drawer.gen.go b/macos/appkit/drawer.gen.go index a1ebd53d..5fa60000 100644 --- a/macos/appkit/drawer.gen.go +++ b/macos/appkit/drawer.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package appkit @@ -38,10 +38,6 @@ func (dc _DrawerClass) Alloc() Drawer { return rv } -func Drawer_Alloc() Drawer { - return DrawerClass.Alloc() -} - func (dc _DrawerClass) New() Drawer { rv := objc.Call[Drawer](dc, objc.Sel("new")) rv.Autorelease() diff --git a/macos/appkit/drawer_delegate.gen.go b/macos/appkit/drawer_delegate.gen.go index 3adff042..4760c9a1 100644 --- a/macos/appkit/drawer_delegate.gen.go +++ b/macos/appkit/drawer_delegate.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package appkit @@ -16,7 +16,10 @@ type PDrawerDelegate interface { type DrawerDelegate struct { } -// A concrete type wrapper for the [PDrawerDelegate] protocol. -type DrawerDelegateWrapper struct { +// ensure impl type implements protocol interface +var _ PDrawerDelegate = (*DrawerDelegateObject)(nil) + +// A concrete type for the [PDrawerDelegate] protocol. +type DrawerDelegateObject struct { objc.Object } diff --git a/macos/appkit/editor.gen.go b/macos/appkit/editor_protocol.gen.go similarity index 71% rename from macos/appkit/editor.gen.go rename to macos/appkit/editor_protocol.gen.go index 0a04442f..19d5929f 100644 --- a/macos/appkit/editor.gen.go +++ b/macos/appkit/editor_protocol.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package appkit @@ -14,69 +14,72 @@ import ( // [Full Topic]: https://developer.apple.com/documentation/appkit/nseditor?language=objc type PEditor interface { // optional - CommitEditing() bool - HasCommitEditing() bool + CommitEditingAndReturnError(error foundation.Error) bool + HasCommitEditingAndReturnError() bool // optional CommitEditingWithDelegateDidCommitSelectorContextInfo(delegate objc.Object, didCommitSelector objc.Selector, contextInfo unsafe.Pointer) HasCommitEditingWithDelegateDidCommitSelectorContextInfo() bool // optional - CommitEditingAndReturnError(error foundation.Error) bool - HasCommitEditingAndReturnError() bool + CommitEditing() bool + HasCommitEditing() bool // optional DiscardEditing() HasDiscardEditing() bool } -// A concrete type wrapper for the [PEditor] protocol. -type EditorWrapper struct { +// ensure impl type implements protocol interface +var _ PEditor = (*EditorObject)(nil) + +// A concrete type for the [PEditor] protocol. +type EditorObject struct { objc.Object } -func (e_ EditorWrapper) 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_ EditorWrapper) 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 foundation.Error) bool { + rv := objc.Call[bool](e_, objc.Sel("commitEditingAndReturnError:"), objc.Ptr(error)) return rv } -func (e_ EditorWrapper) HasCommitEditingWithDelegateDidCommitSelectorContextInfo() bool { +func (e_ EditorObject) HasCommitEditingWithDelegateDidCommitSelectorContextInfo() bool { return e_.RespondsToSelector(objc.Sel("commitEditingWithDelegate:didCommitSelector:contextInfo:")) } // [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/appkit/nseditor/3005185-commiteditingwithdelegate?language=objc -func (e_ EditorWrapper) CommitEditingWithDelegateDidCommitSelectorContextInfo(delegate objc.IObject, didCommitSelector objc.Selector, contextInfo unsafe.Pointer) { +func (e_ EditorObject) CommitEditingWithDelegateDidCommitSelectorContextInfo(delegate objc.Object, didCommitSelector objc.Selector, contextInfo unsafe.Pointer) { objc.Call[objc.Void](e_, objc.Sel("commitEditingWithDelegate:didCommitSelector:contextInfo:"), delegate, didCommitSelector, contextInfo) } -func (e_ EditorWrapper) 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_ EditorWrapper) CommitEditingAndReturnError(error foundation.IError) bool { - rv := objc.Call[bool](e_, objc.Sel("commitEditingAndReturnError:"), objc.Ptr(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 } -func (e_ EditorWrapper) HasDiscardEditing() bool { +func (e_ EditorObject) HasDiscardEditing() bool { return e_.RespondsToSelector(objc.Sel("discardEditing")) } // [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/appkit/nseditor/3005186-discardediting?language=objc -func (e_ EditorWrapper) DiscardEditing() { +func (e_ EditorObject) DiscardEditing() { objc.Call[objc.Void](e_, objc.Sel("discardEditing")) } diff --git a/macos/appkit/editor_registration.gen.go b/macos/appkit/editor_registration_protocol.gen.go similarity index 61% rename from macos/appkit/editor_registration.gen.go rename to macos/appkit/editor_registration_protocol.gen.go index 94d8c4ac..de3539e9 100644 --- a/macos/appkit/editor_registration.gen.go +++ b/macos/appkit/editor_registration_protocol.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package appkit @@ -11,39 +11,42 @@ import ( // [Full Topic]: https://developer.apple.com/documentation/appkit/nseditorregistration?language=objc type PEditorRegistration interface { // optional - ObjectDidBeginEditing(editor EditorWrapper) - HasObjectDidBeginEditing() bool + ObjectDidEndEditing(editor EditorObject) + HasObjectDidEndEditing() bool // optional - ObjectDidEndEditing(editor EditorWrapper) - HasObjectDidEndEditing() bool + ObjectDidBeginEditing(editor EditorObject) + HasObjectDidBeginEditing() bool } -// A concrete type wrapper for the [PEditorRegistration] protocol. -type EditorRegistrationWrapper struct { +// ensure impl type implements protocol interface +var _ PEditorRegistration = (*EditorRegistrationObject)(nil) + +// A concrete type for the [PEditorRegistration] protocol. +type EditorRegistrationObject struct { objc.Object } -func (e_ EditorRegistrationWrapper) 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_ EditorRegistrationWrapper) ObjectDidBeginEditing(editor PEditor) { +// [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) } -func (e_ EditorRegistrationWrapper) 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_ EditorRegistrationWrapper) ObjectDidEndEditing(editor PEditor) { +// [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) } diff --git a/macos/appkit/enumtypes.gen.go b/macos/appkit/enumtypes.gen.go index cb20ac9a..d5dd4d31 100644 --- a/macos/appkit/enumtypes.gen.go +++ b/macos/appkit/enumtypes.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package appkit @@ -531,7 +531,7 @@ const ( AccessibilityUnitsUnknown AccessibilityUnits = 0 ) -// The NSAlert class defines the alert styles used by the alertStyle property. [Full Topic] +// The NSAlert class defines the alert styles used by the [appkit/nsalert/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 activateWithOptions:. [Full Topic] +// The following flags are for [appkit/nsrunningapplication/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 activationPolicy) that control whether and how an app may be activated. [Full Topic] +// Activation policies (used by [appkit/nsrunningapplication/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 bezelStyle property. [Full Topic] +// Bezel styles used by the [appkit/nsbuttoncell/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 bind:toObject:withKeyPath:options: method. [Full Topic] +// Values that are used as keys in the options dictionary passed to the [objectivec/nsobject/bind] 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 browser:objectValueForItem: for more information. [Full Topic] +// The type used to specify the drop type of a drag-and-drop operation. See [appkit/nsbrowserdelegate/browser] 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 setButtonType:. [Full Topic] +// Button types that you can specify using [appkit/nsbuttoncell/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 hitTestForEvent:inRect:ofView: method to determine the effect of an event. [Full Topic] +// Constants used by the [appkit/nscell/hittestforevent] 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 collectionView:didEndDisplayingItem:forRepresentedObjectAtIndexPath: and collectionView:didEndDisplayingItem:forRepresentedObjectAtIndexPath: 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 [appkit/nscollectionviewdelegate/collectionview] and [appkit/nscollectionviewdelegate/collectionview] 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 therecordResponse:toCorrection:forWord:language:inSpellDocumentWithTag: method. [Full Topic] +// The correction response passed to the[appkit/nsspellchecker/recordresponse] method. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/appkit/nscorrectionresponse?language=objc type CorrectionResponse int @@ -2153,7 +2153,7 @@ const ( TabletProximity EventType = 24 ) -// These constants define the tags for performFindPanelAction:. [Full Topic] +// These constants define the tags for [appkit/nstextview/performfindpanelaction]. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/appkit/nsfindpanelaction?language=objc type FindPanelAction uint @@ -2241,7 +2241,7 @@ const ( FontCollectionWasShown FontCollectionActionTypeKey = "NSFontCollectionWasShown" ) -// These constants are used by the matchingDescriptorsWithOptions: and matchingDescriptorsForFamily: options dictionary parameters. [Full Topic] +// These constants are used by the [appkit/nsfontcollection/matchingdescriptorswithoptions] and [appkit/nsfontcollection/matchingdescriptorsforfamily] options dictionary parameters. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/appkit/nsfontcollectionmatchingoptionkey?language=objc type FontCollectionMatchingOptionKey string @@ -2252,7 +2252,7 @@ const ( FontCollectionRemoveDuplicatesOption FontCollectionMatchingOptionKey = "NSCTFontCollectionRemoveDuplicatesOption" ) -// 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] +// 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] // // [Full Topic]: https://developer.apple.com/documentation/appkit/nsfontcollectionname?language=objc type FontCollectionName string @@ -2397,6 +2397,15 @@ 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 @@ -2549,7 +2558,7 @@ const ( GradientDrawsBeforeStartingLocation GradientDrawingOptions = 1 ) -// Specify the gradients used by the gradientType property. [Full Topic] +// Specify the gradients used by the [appkit/nsbuttoncell/gradienttype] property. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/appkit/nsgradienttype?language=objc type GradientType uint @@ -2647,7 +2656,7 @@ type HelpBookName string // [Full Topic]: https://developer.apple.com/documentation/appkit/nshelpmanagercontexthelpkey?language=objc type HelpManagerContextHelpKey string -// Constants used by imageAlignment that allow you to specify the location of the image in the frame. [Full Topic] +// Constants used by [appkit/nsimagecell/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 @@ -2931,7 +2940,7 @@ const ( ImageSymbolScaleSmall ImageSymbolScale = 1 ) -// These constants are used in NSResponder’s interfaceStyle method. [Full Topic] +// These constants are used in NSResponder’s [appkit/nsresponder/interfacestyle] method. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/appkit/nsinterfacestyle?language=objc type InterfaceStyle uint @@ -3048,7 +3057,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 int +type LineBreakMode uint const ( LineBreakByCharWrapping LineBreakMode = 1 @@ -3147,7 +3156,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 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 [appkit/nsmenu/propertiestoupdate] property. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/appkit/nsmenuproperties?language=objc type MenuProperties uint @@ -3457,7 +3466,7 @@ const ( UnknownPointingDevice PointingDeviceType = 0 ) -// These constants are defined for use with the arrowPosition property. [Full Topic] +// These constants are defined for use with the [appkit/nspopupbuttoncell/arrowposition] property. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/appkit/nspopuparrowposition?language=objc type PopUpArrowPosition uint @@ -3724,7 +3733,7 @@ const ( RemoteNotificationTypeSound RemoteNotificationType = 2 ) -// These constants specify the level of severity of a user attention request and are used by cancelUserAttentionRequest: and requestUserAttention:. [Full Topic] +// 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] // // [Full Topic]: https://developer.apple.com/documentation/appkit/nsrequestuserattentiontype?language=objc type RequestUserAttentionType uint @@ -3746,7 +3755,7 @@ const ( RuleEditorNestingModeSingle RuleEditorNestingMode = 0 ) -// 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] +// 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] // // [Full Topic]: https://developer.apple.com/documentation/appkit/nsruleeditorpredicatepartkey?language=objc type RuleEditorPredicatePartKey string @@ -3771,7 +3780,7 @@ const ( RuleEditorRowTypeSimple RuleEditorRowType = 0 ) -// These constants are defined to specify a ruler’s orientation and are used by orientation. [Full Topic] +// These constants are defined to specify a ruler’s orientation and are used by [appkit/nsrulerview/orientation]. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/appkit/nsrulerorientation?language=objc type RulerOrientation uint @@ -3808,7 +3817,7 @@ const ( SaveToOperation SaveOperationType = 2 ) -// These constants specify where the scroller’s buttons appear and are used by the arrowsPosition property. [Full Topic] +// These constants specify where the scroller’s buttons appear and are used by the [appkit/nsscroller/arrowsposition] property. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/appkit/nsscrollarrowposition?language=objc type ScrollArrowPosition uint @@ -3842,7 +3851,7 @@ const ( ScrollViewFindBarPositionBelowContent ScrollViewFindBarPosition = 2 ) -// These constants describe the two scroller buttons and are used by drawArrow:highlight:. [Full Topic] +// These constants describe the two scroller buttons and are used by [appkit/nsscroller/drawarrow]. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/appkit/nsscrollerarrow?language=objc type ScrollerArrow uint @@ -3927,7 +3936,7 @@ const ( SegmentDistributionFit SegmentDistribution = 0 ) -// The following constants specify the visual style used to display the segmented control. They are used by segmentStyle. [Full Topic] +// The following constants specify the visual style used to display the segmented control. They are used by [appkit/nssegmentedcontrol/segmentstyle]. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/appkit/nssegmentstyle?language=objc type SegmentStyle int @@ -3943,7 +3952,7 @@ const ( SegmentStyleTexturedSquare SegmentStyle = 4 ) -// The following constants specify the type of tracking behavior a segmented control exhibits. They are used by trackingMode. [Full Topic] +// The following constants specify the type of tracking behavior a segmented control exhibits. They are used by [appkit/nssegmentedcontrol/trackingmode]. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/appkit/nssegmentswitchtracking?language=objc type SegmentSwitchTracking uint @@ -3955,7 +3964,7 @@ const ( SegmentSwitchTrackingSelectOne SegmentSwitchTracking = 0 ) -// These constants specify the preferred direction of selection. They’re used by selectionAffinity and setSelectedRange:affinity:stillSelecting:. [Full Topic] +// These constants specify the preferred direction of selection. They’re used by [appkit/nstextview/selectionaffinity] and [appkit/nstextview/setselectedrange]. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/appkit/nsselectionaffinity?language=objc type SelectionAffinity uint @@ -3976,7 +3985,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 selectionGranularity, and selectionRangeForProposedRange:granularity:: [Full Topic] +// 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] // // [Full Topic]: https://developer.apple.com/documentation/appkit/nsselectiongranularity?language=objc type SelectionGranularity uint @@ -4041,7 +4050,7 @@ const ( SliderAccessoryWidthWide SliderAccessoryWidth = 72.000000 ) -// The types of sliders, used by sliderType. [Full Topic] +// The types of sliders, used by [appkit/nsslidercell/slidertype]. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/appkit/nsslidertype?language=objc type SliderType uint @@ -4063,7 +4072,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 pauseSpeakingAtBoundary: and stopSpeakingAtBoundary:. [Full Topic] +// These constants are used to indicate where speech should be stopped and paused. See [appkit/nsspeechsynthesizer/pausespeakingatboundary] and [appkit/nsspeechsynthesizer/stopspeakingatboundary]. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/appkit/nsspeechboundary?language=objc type SpeechBoundary uint @@ -4084,7 +4093,7 @@ const ( SpeechCommandSuffix SpeechCommandDelimiterKey = "Suffix" ) -// These constants identify key-value pairs used to add vocabulary to the dictionary using addSpeechDictionary:. [Full Topic] +// These constants identify key-value pairs used to add vocabulary to the dictionary using [appkit/nsspeechsynthesizer/addspeechdictionary]. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/appkit/nsspeechdictionarykey?language=objc type SpeechDictionaryKey string @@ -4136,7 +4145,7 @@ const ( SpeechPhonemeInfoSymbol SpeechPhonemeInfoKey = "Symbol" ) -// These constants are used with setObject:forProperty:error: and objectForProperty:error: to get or set the characteristics of a synthesizer. [Full Topic] +// These constants are used with [appkit/nsspeechsynthesizer/setobject] and [appkit/nsspeechsynthesizer/objectforproperty] 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 @@ -4404,7 +4413,7 @@ const ( TabViewControllerTabStyleUnspecified TabViewControllerTabStyle = -1 ) -// These constants specify the tab view’s type as used by the tabViewType property. [Full Topic] +// These constants specify the tab view’s type as used by the [appkit/nstabview/tabviewtype] property. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/appkit/nstabviewtype?language=objc type TabViewType uint @@ -4460,7 +4469,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 columnAutoresizingStyle property. [Full Topic] +// The following constants specify the autoresizing styles. These constants are used by the [appkit/nstableview/columnautoresizingstyle] property. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/appkit/nstableviewcolumnautoresizingstyle?language=objc type TableViewColumnAutoresizingStyle uint @@ -4474,7 +4483,7 @@ const ( TableViewUniformColumnAutoresizingStyle TableViewColumnAutoresizingStyle = 1 ) -// These constants specify the drag styles displayed by the table view. They’re used by draggingDestinationFeedbackStyle. [Full Topic] +// These constants specify the drag styles displayed by the table view. They’re used by [appkit/nstableview/draggingdestinationfeedbackstyle]. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/appkit/nstableviewdraggingdestinationfeedbackstyle?language=objc type TableViewDraggingDestinationFeedbackStyle int @@ -4496,7 +4505,7 @@ const ( TableViewDropOn TableViewDropOperation = 0 ) -// 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] +// 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] // // [Full Topic]: https://developer.apple.com/documentation/appkit/nstableviewgridlinestyle?language=objc type TableViewGridLineStyle uint @@ -4518,7 +4527,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 effectiveRowSizeStyle and rowSizeStyle properties. You can also query the row size in the NSTableCellView class’ property rowSizeStyle. [Full Topic] +// 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] // // [Full Topic]: https://developer.apple.com/documentation/appkit/nstableviewrowsizestyle?language=objc type TableViewRowSizeStyle int @@ -4531,7 +4540,7 @@ const ( TableViewRowSizeStyleSmall TableViewRowSizeStyle = 1 ) -// The following constants specify the selection highlight styles. These constants are used by the selectionHighlightStyle property. [Full Topic] +// The following constants specify the selection highlight styles. These constants are used by the [appkit/nstableview/selectionhighlightstyle] property. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/appkit/nstableviewselectionhighlightstyle?language=objc type TableViewSelectionHighlightStyle int @@ -4571,7 +4580,7 @@ const ( TextAlignmentNatural TextAlignment = 4 ) -// The following constants specify values used by the methods setValue:type:forDimension:, valueForDimension:, and valueTypeForDimension: to specify text block dimensions. [Full Topic] +// 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] // // [Full Topic]: https://developer.apple.com/documentation/appkit/nstextblockdimension?language=objc type TextBlockDimension uint @@ -4585,7 +4594,7 @@ const ( TextBlockWidth TextBlockDimension = 0 ) -// 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] +// 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] // // [Full Topic]: https://developer.apple.com/documentation/appkit/nstextblocklayer?language=objc type TextBlockLayer int @@ -4596,7 +4605,7 @@ const ( TextBlockPadding TextBlockLayer = -1 ) -// The following constants specify values used by the methods setValue:type:forDimension: and valueTypeForDimension: to specify text block value types. [Full Topic] +// The following constants specify values used by the methods [appkit/nstextblock/setvalue] and [appkit/nstextblock/valuetypefordimension] to specify text block value types. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/appkit/nstextblockvaluetype?language=objc type TextBlockValueType uint @@ -4606,7 +4615,7 @@ const ( TextBlockPercentageValueType TextBlockValueType = 1 ) -// The following constants specify values used by the property verticalAlignment to specify vertical alignment. [Full Topic] +// The following constants specify values used by the property [appkit/nstextblock/verticalalignment] to specify vertical alignment. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/appkit/nstextblockverticalalignment?language=objc type TextBlockVerticalAlignment uint @@ -4618,7 +4627,7 @@ const ( TextBlockTopAlignment TextBlockVerticalAlignment = 0 ) -// 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] +// 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] // // [Full Topic]: https://developer.apple.com/documentation/appkit/nstextcheckingoptionkey?language=objc type TextCheckingOptionKey string @@ -4676,7 +4685,7 @@ const ( TextFieldSquareBezel TextFieldBezelStyle = 0 ) -// 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] +// 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] // // [Full Topic]: https://developer.apple.com/documentation/appkit/nstextfinderaction?language=objc type TextFinderAction int @@ -4975,7 +4984,7 @@ const ( RightTabStopType TextTabType = 1 ) -// These constants, specifying the type of text table layout algorithm, are used with layoutAlgorithm. [Full Topic] +// These constants, specifying the type of text table layout algorithm, are used with [appkit/nstexttable/layoutalgorithm]. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/appkit/nstexttablelayoutalgorithm?language=objc type TextTableLayoutAlgorithm uint @@ -5028,7 +5037,7 @@ const ( TitlebarSeparatorStyleShadow TitlebarSeparatorStyle = 3 ) -// 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] +// 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] // // [Full Topic]: https://developer.apple.com/documentation/appkit/nstokenstyle?language=objc type TokenStyle uint @@ -5199,7 +5208,7 @@ const ( TouchTypeMaskIndirect TouchTypeMask = 2 ) -// 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] +// 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] // // [Full Topic]: https://developer.apple.com/documentation/appkit/nstrackingareaoptions?language=objc type TrackingAreaOptions uint @@ -5236,7 +5245,7 @@ const ( TypesetterOriginalBehavior TypesetterBehavior = 0 ) -// The following constants are possible values returned by the actionForControlCharacterAtIndex: method to determine the action associated with a control character. [Full Topic] +// The following constants are possible values returned by the [appkit/nstypesetter/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 @@ -5250,6 +5259,16 @@ 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 @@ -5268,6 +5287,15 @@ 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 @@ -5321,7 +5349,7 @@ const ( ViewAnimationFadeOutEffect ViewAnimationEffectName = "NSViewAnimationFadeOutEffect" ) -// The following string constants are keys for the dictionaries in the array passed into initWithViewAnimations: and viewAnimations. [Full Topic] +// The following string constants are keys for the dictionaries in the array passed into [appkit/nsviewanimation/initwithviewanimations] and [appkit/nsviewanimation/viewanimations]. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/appkit/nsviewanimationkey?language=objc type ViewAnimationKey string @@ -5350,7 +5378,7 @@ const ( ViewControllerTransitionSlideUp ViewControllerTransitionOptions = 16 ) -// These constants are keys that you can use in the options dictionary in enterFullScreenMode:withOptions: and exitFullScreenModeWithOptions:. [Full Topic] +// These constants are keys that you can use in the options dictionary in [appkit/nsview/enterfullscreenmode] and [appkit/nsview/exitfullscreenmodewithoptions]. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/appkit/nsviewfullscreenmodeoptionkey?language=objc type ViewFullScreenModeOptionKey string @@ -5362,7 +5390,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 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 [appkit/nsview/layercontentsplacement] property. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/appkit/nsviewlayercontentsplacement?language=objc type ViewLayerContentsPlacement int @@ -5382,7 +5410,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 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 [appkit/nsview/layercontentsredrawpolicy] property. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/appkit/nsviewlayercontentsredrawpolicy?language=objc type ViewLayerContentsRedrawPolicy int @@ -5443,7 +5471,7 @@ const ( VisualEffectStateInactive VisualEffectState = 2 ) -// The following constants are keys for the dictionary returned by attributesForVoice:. [Full Topic] +// The following constants are keys for the dictionary returned by [appkit/nsspeechsynthesizer/attributesforvoice]. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/appkit/nsvoiceattributekey?language=objc type VoiceAttributeKey string @@ -5460,7 +5488,7 @@ const ( VoiceSupportedCharacters VoiceAttributeKey = "VoiceSupportedCharacters" ) -// The following constants define voice gender attributes, which are the allowable values of the NSVoiceGender key returned by attributesForVoice:. [Full Topic] +// The following constants define voice gender attributes, which are the allowable values of the NSVoiceGender key returned by [appkit/nsspeechsynthesizer/attributesforvoice]. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/appkit/nsvoicegendername?language=objc type VoiceGenderName string @@ -5738,7 +5766,7 @@ const ( WorkspaceDesktopImageScalingKey WorkspaceDesktopImageOptionKey = "NSWorkspaceDesktopImageScalingKey" ) -// These constants specify different types of file operations used by performFileOperation:source:destination:files:tag:. [Full Topic] +// These constants specify different types of file operations used by [appkit/nsworkspace/performfileoperation]. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/appkit/nsworkspacefileoperationname?language=objc type WorkspaceFileOperationName string @@ -5766,7 +5794,7 @@ const ( ExcludeQuickDrawElementsIconCreationOption WorkspaceIconCreationOptions = 2 ) -// 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] +// 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] // // [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 27e2620d..53376555 100644 --- a/macos/appkit/enumtypes_amd64.gen.go +++ b/macos/appkit/enumtypes_amd64.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package appkit @@ -152,6 +152,7 @@ const () const () const () const () +const () const ( ImageResizingModeStretch ImageResizingMode = 0 ImageResizingModeTile ImageResizingMode = 1 @@ -371,3 +372,5 @@ const () const () const () const () +const () +const () diff --git a/macos/appkit/enumtypes_arm64.gen.go b/macos/appkit/enumtypes_arm64.gen.go index 195e4dbb..95cb838e 100644 --- a/macos/appkit/enumtypes_arm64.gen.go +++ b/macos/appkit/enumtypes_arm64.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package appkit @@ -152,6 +152,7 @@ const () const () const () const () +const () const ( ImageResizingModeStretch ImageResizingMode = 1 ImageResizingModeTile ImageResizingMode = 0 @@ -371,3 +372,5 @@ const () const () const () const () +const () +const () diff --git a/macos/appkit/eps_image_rep.gen.go b/macos/appkit/eps_image_rep.gen.go index 316e6c97..958cff71 100644 --- a/macos/appkit/eps_image_rep.gen.go +++ b/macos/appkit/eps_image_rep.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package appkit @@ -38,10 +38,6 @@ func (ec _EPSImageRepClass) Alloc() EPSImageRep { return rv } -func EPSImageRep_Alloc() EPSImageRep { - return EPSImageRepClass.Alloc() -} - func (ec _EPSImageRepClass) New() EPSImageRep { rv := objc.Call[EPSImageRep](ec, objc.Sel("new")) rv.Autorelease() diff --git a/macos/appkit/event.gen.go b/macos/appkit/event.gen.go index 25747e3e..7d6f6356 100644 --- a/macos/appkit/event.gen.go +++ b/macos/appkit/event.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package appkit @@ -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 - Pressure() float64 - AbsoluteZ() int + CoalescedTouchesForTouch(touch ITouch) []Touch SystemTabletID() uint - TabletID() uint - DeviceID() uint - PointingDeviceType() PointingDeviceType - Data1() int - ButtonNumber() int EventRef() unsafe.Pointer + Characters() string + Phase() EventPhase + VendorPointingDeviceType() uint + PressureBehavior() PressureBehavior + ScrollingDeltaX() float64 + Magnification() float64 + DeltaX() float64 + IsEnteringProximity() bool + ScrollingDeltaY() float64 + Subtype() EventSubtype + PointingDeviceType() PointingDeviceType + AbsoluteZ() int + IsARepeat() bool + Window() Window DeltaZ() float64 + Rotation() float64 + UniqueID() int64 + PointingDeviceID() uint + KeyCode() int StageTransition() float64 - Tilt() foundation.Point - Characters() string - UserData() unsafe.Pointer - PointingDeviceSerialNumber() uint + ClickCount() int VendorDefined() objc.Object + ButtonNumber() int + AssociatedEventsMask() EventMask EventNumber() int - MomentumPhase() EventPhase + DeviceID() uint TrackingArea() TrackingArea - UniqueID() int64 - Rotation() float64 - PointingDeviceID() uint - AssociatedEventsMask() EventMask - Magnification() float64 - CGEvent() coregraphics.EventRef - Subtype() EventSubtype - DeltaX() float64 - VendorID() uint - TrackingNumber() int - ButtonMask() EventButtonMask - VendorPointingDeviceType() uint - DeltaY() float64 - KeyCode() int - WindowNumber() int - IsDirectionInvertedFromDevice() bool - IsEnteringProximity() bool - LocationInWindow() foundation.Point + TangentialPressure() float64 + Data1() int Timestamp() foundation.TimeInterval - CapabilityMask() uint + CGEvent() coregraphics.EventRef + AbsoluteY() int AbsoluteX() int - Type() EventType - ScrollingDeltaX() float64 - Window() Window - IsARepeat() bool + Tilt() foundation.Point Data2() int - TangentialPressure() float64 - Stage() int + DeltaY() float64 + UserData() unsafe.Pointer + WindowNumber() int HasPreciseScrollingDeltas() bool - ScrollingDeltaY() float64 - AbsoluteY() int - ClickCount() int - Phase() EventPhase + TabletID() uint + PointingDeviceSerialNumber() uint + Stage() int + CapabilityMask() uint + TrackingNumber() int CharactersIgnoringModifiers() string - PressureBehavior() PressureBehavior + Type() EventType + LocationInWindow() foundation.Point + Pressure() float64 + ButtonMask() EventButtonMask + VendorID() uint + MomentumPhase() EventPhase + IsDirectionInvertedFromDevice() bool } // An object that contains information about an input action, such as a mouse click or a key press. [Full Topic] @@ -101,10 +101,6 @@ func (ec _EventClass) Alloc() Event { return rv } -func Event_Alloc() Event { - return EventClass.Alloc() -} - func (ec _EventClass) New() Event { rv := objc.Call[Event](ec, objc.Sel("new")) rv.Autorelease() @@ -135,41 +131,18 @@ func Event_EventWithEventRef(eventRef unsafe.Pointer) Event { return EventClass.EventWithEventRef(eventRef) } -// Returns all of the touch objects associated with the specified main touch. [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:"), objc.Ptr(touch)) - return rv -} - -// 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) -} - -// 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] +// Removes the specified event monitor. [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) +// [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) } -// Returns all touch objects associated with the event. [Full Topic] +// Removes the specified event monitor. [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 +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsevent/1533709-removemonitor?language=objc +func Event_RemoveMonitor(eventMonitor objc.IObject) { + EventClass.RemoveMonitor(eventMonitor) } // Creates and returns a new event object that describes a tracking-rectangle or cursor-update event. [Full Topic] @@ -187,56 +160,34 @@ func Event_EnterExitEventWithTypeLocationModifierFlagsTimestampWindowNumberConte return EventClass.EnterExitEventWithTypeLocationModifierFlagsTimestampWindowNumberContextEventNumberTrackingNumberUserData(type_, location, flags, time, wNum, unusedPassNil, enum, tNum, data) } -// Returns the new characters that result if you apply the specified modifier keys to the event. [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/3242717-charactersbyapplyingmodifiers?language=objc -func (e_ Event) CharactersByApplyingModifiers(modifiers EventModifierFlags) string { - rv := objc.Call[string](e_, objc.Sel("charactersByApplyingModifiers:"), modifiers) +// [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 float64) Event { + rv := objc.Call[Event](ec, objc.Sel("mouseEventWithType:location:modifierFlags:timestamp:windowNumber:context:eventNumber:clickCount:pressure:"), type_, location, flags, time, wNum, objc.Ptr(unusedPassNil), enum, cNum, pressure) return rv } -// Removes the specified event monitor. [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) -} - -// Removes the specified event monitor. [Full Topic] -// -// [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] +// 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/1483105-locationinnode?language=objc -func (e_ Event) LocationInNode(node objc.IObject) coregraphics.Point { - rv := objc.Call[coregraphics.Point](e_, objc.Sel("locationInNode:"), objc.Ptr(node)) - return rv +// [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 float64) Event { + return EventClass.MouseEventWithTypeLocationModifierFlagsTimestampWindowNumberContextEventNumberClickCountPressure(type_, location, flags, time, wNum, unusedPassNil, enum, cNum, pressure) } -// 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:"), objc.Ptr(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 } -// 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] +// 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/1533746-stopperiodicevents?language=objc -func Event_StopPeriodicEvents() { - EventClass.StopPeriodicEvents() +// [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) } // Creates and returns an event object for a Core Graphics event. [Full Topic] @@ -254,29 +205,22 @@ func Event_EventWithCGEvent(cgEvent coregraphics.EventRef) Event { return EventClass.EventWithCGEvent(cgEvent) } -// Returns the touch objects associated with the specified phase. [Full Topic] +// Returns all touch objects associated with the event. [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, objc.Ptr(view)) +// [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 } -// 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 (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/2646918-touchesforview?language=objc +func (e_ Event) TouchesForView(view IView) foundation.Set { + rv := objc.Call[foundation.Set](e_, objc.Sel("touchesForView:"), objc.Ptr(view)) 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 @@ -292,6 +236,28 @@ 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 @@ -307,19 +273,25 @@ func Event_OtherEventWithTypeLocationModifierFlagsTimestampWindowNumberContextSu return EventClass.OtherEventWithTypeLocationModifierFlagsTimestampWindowNumberContextSubtypeData1Data2(type_, location, flags, time, wNum, unusedPassNil, subtype, d1, d2) } -// Creates and returns a new event object that describes a mouse-down, -up, -moved, or -dragged event. [Full Topic] +// Allows tracking and user interface feedback of scroll wheel events. [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 float64) Event { - rv := objc.Call[Event](ec, objc.Sel("mouseEventWithType:location:modifierFlags:timestamp:windowNumber:context:eventNumber:clickCount:pressure:"), type_, location, flags, time, wNum, objc.Ptr(unusedPassNil), enum, cNum, pressure) - return rv +// [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) } -// Creates and returns a new event object that describes a mouse-down, -up, -moved, or -dragged event. [Full Topic] +// 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/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 float64) Event { - return EventClass.MouseEventWithTypeLocationModifierFlagsTimestampWindowNumberContextEventNumberClickCountPressure(type_, location, flags, time, wNum, unusedPassNil, enum, cNum, pressure) +// [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 a new event object that describes a key event. [Full Topic] @@ -337,19 +309,27 @@ func Event_KeyEventWithTypeLocationModifierFlagsTimestampWindowNumberContextChar return EventClass.KeyEventWithTypeLocationModifierFlagsTimestampWindowNumberContextCharactersCharactersIgnoringModifiersIsARepeatKeyCode(type_, location, flags, time, wNum, unusedPassNil, keys, ukeys, flag, code) } -// A normalized value that indicates the degree of pressure applied to an appropriate input device. [Full Topic] +// 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/1534543-pressure?language=objc -func (e_ Event) Pressure() float64 { - rv := objc.Call[float64](e_, objc.Sel("pressure")) +// [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:"), objc.Ptr(node)) return rv } -// The absolute z coordinate of pointing device on its tablet at full tablet resolution. [Full Topic] +// Returns the touch objects associated with the specified phase. [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/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, objc.Ptr(view)) + return rv +} + +// Returns all of the touch objects associated with the specified main touch. [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:"), objc.Ptr(touch)) return rv } @@ -361,244 +341,269 @@ func (e_ Event) SystemTabletID() uint { return rv } -// The USB model identifier of the tablet device associated with this event. [Full Topic] +// An opaque Carbon type associated with this event. [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/1525143-eventref?language=objc +func (e_ Event) EventRef() unsafe.Pointer { + rv := objc.Call[unsafe.Pointer](e_, objc.Sel("eventRef")) return rv } -// A special identifier the system matches against tablet-pointer and tablet-proximity events. [Full Topic] +// The characters associated with a key-up or key-down event. [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")) +// [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 maximum number of seconds in which a second mouse click must occur for an event to be a double-click event. [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/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/1533550-phase?language=objc +func (e_ Event) Phase() EventPhase { + rv := objc.Call[EventPhase](e_, objc.Sel("phase")) 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 indices of the currently pressed mouse buttons. [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/1527943-pressedmousebuttons?language=objc +func (ec _EventClass) PressedMouseButtons() uint { + rv := objc.Call[uint](ec, objc.Sel("pressedMouseButtons")) + return rv } -// The kind of pointing device associated with this event. [Full Topic] +// The indices of the currently pressed mouse buttons. [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")) - return rv +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsevent/1527943-pressedmousebuttons?language=objc +func Event_PressedMouseButtons() uint { + return EventClass.PressedMouseButtons() } -// 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/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/1527736-vendorpointingdevicetype?language=objc +func (e_ Event) VendorPointingDeviceType() uint { + rv := objc.Call[uint](e_, objc.Sel("vendorPointingDeviceType")) return rv } -// A Boolean value that indicates whether the system coalesces mouse movement events. [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/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/1526076-keyrepeatinterval?language=objc +func (ec _EventClass) KeyRepeatInterval() foundation.TimeInterval { + rv := objc.Call[foundation.TimeInterval](ec, objc.Sel("keyRepeatInterval")) return rv } -// A Boolean value that indicates whether the system coalesces mouse movement events. [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/2870068-mousecoalescingenabled?language=objc -func Event_MouseCoalescingEnabled() bool { - return EventClass.MouseCoalescingEnabled() +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsevent/1526076-keyrepeatinterval?language=objc +func Event_KeyRepeatInterval() foundation.TimeInterval { + return EventClass.KeyRepeatInterval() } -// A Boolean value that indicates whether the system coalesces mouse movement events. [Full Topic] +// The behavior and progression for a pressure event. [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) +// [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 } -// A Boolean value that indicates whether the system coalesces mouse movement events. [Full Topic] +// The scroll wheel’s horizontal delta. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsevent/2870068-mousecoalescingenabled?language=objc -func Event_SetMouseCoalescingEnabled(value bool) { - EventClass.SetMouseCoalescingEnabled(value) +// [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 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] +// 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/1535211-modifierflags?language=objc -func Event_ModifierFlags() EventModifierFlags { - return EventClass.ModifierFlags() +// [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 button number for a mouse 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/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/1531702-enteringproximity?language=objc +func (e_ Event) IsEnteringProximity() bool { + rv := objc.Call[bool](e_, objc.Sel("isEnteringProximity")) return rv } -// An opaque Carbon type associated with this event. [Full Topic] +// The scroll wheel’s vertical delta. [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/1535387-scrollingdeltay?language=objc +func (e_ Event) ScrollingDeltaY() float64 { + rv := objc.Call[float64](e_, objc.Sel("scrollingDeltaY")) return rv } -// The z-coordinate change for a scroll wheel, mouse-move, or mouse-drag event. [Full Topic] +// The event’s subtype. [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/1527726-subtype?language=objc +func (e_ Event) Subtype() EventSubtype { + rv := objc.Call[EventSubtype](e_, objc.Sel("subtype")) return rv } -// The transition value for the stage of a pressure gesture event. [Full Topic] +// The kind of pointing device associated with this event. [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")) +// [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 } -// The scaled tilt values of the pointing device that generated this event. [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/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/1532154-absolutez?language=objc +func (e_ Event) AbsoluteZ() int { + rv := objc.Call[int](e_, objc.Sel("absoluteZ")) return rv } -// The characters associated with a key-up or key-down event. [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/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/1528049-arepeat?language=objc +func (e_ Event) IsARepeat() bool { + rv := objc.Call[bool](e_, objc.Sel("isARepeat")) return rv } -// The data associated with a mouse-tracking event. [Full Topic] +// The window object 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/1530808-window?language=objc +func (e_ Event) Window() Window { + rv := objc.Call[Window](e_, objc.Sel("window")) return rv } -// The vendor-assigned serial number of a pointing device. [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/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/1531528-deltaz?language=objc +func (e_ Event) DeltaZ() float64 { + rv := objc.Call[float64](e_, objc.Sel("deltaZ")) return rv } -// An array of three vendor-defined number objects associated with a pointing-type 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/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/2870068-mousecoalescingenabled?language=objc +func (ec _EventClass) MouseCoalescingEnabled() bool { + rv := objc.Call[bool](ec, objc.Sel("mouseCoalescingEnabled")) return rv } -// The counter value of the latest mouse or tracking-rectangle event object. [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/1535220-eventnumber?language=objc -func (e_ Event) EventNumber() int { - rv := objc.Call[int](e_, objc.Sel("eventNumber")) - return rv +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsevent/2870068-mousecoalescingenabled?language=objc +func Event_MouseCoalescingEnabled() bool { + return EventClass.MouseCoalescingEnabled() } -// 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) 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] +// +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsevent/1526249-rotation?language=objc +func (e_ Event) Rotation() float64 { + rv := objc.Call[float64](e_, objc.Sel("rotation")) return rv } -// The number of seconds someone must hold down a key to generate key-repeat events after the initial delay. [Full Topic] +// The unique identifier of the pointing device that generated this event. [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/1535813-uniqueid?language=objc +func (e_ Event) UniqueID() int64 { + rv := objc.Call[int64](e_, objc.Sel("uniqueID")) + return rv } -// The number of seconds someone must hold down a key before the first key repeat event occurs. [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/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/1528818-pointingdeviceid?language=objc +func (e_ Event) PointingDeviceID() uint { + rv := objc.Call[uint](e_, objc.Sel("pointingDeviceID")) return rv } -// The number of seconds someone must hold down a key before the first key repeat event occurs. [Full Topic] +// The virtual code for the key 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/1534513-keycode?language=objc +func (e_ Event) KeyCode() int { + rv := objc.Call[int](e_, objc.Sel("keyCode")) + return rv } -// The momentum phase for a scroll or flick gesture. [Full Topic] +// The transition value for the stage of a pressure gesture event. [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/1526739-stagetransition?language=objc +func (e_ Event) StageTransition() float64 { + rv := objc.Call[float64](e_, objc.Sel("stageTransition")) return rv } -// The tracking area for the 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/1534800-trackingarea?language=objc -func (e_ Event) TrackingArea() TrackingArea { - rv := objc.Call[TrackingArea](e_, objc.Sel("trackingArea")) +// [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 } -// The unique identifier of the pointing device that generated this event. [Full Topic] +// Reports the current mouse position in screen coordinates. [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/1533380-mouselocation?language=objc +func (ec _EventClass) MouseLocation() foundation.Point { + rv := objc.Call[foundation.Point](ec, objc.Sel("mouseLocation")) return rv } -// The rotation in degrees of the tablet pointing device associated with this event. [Full Topic] +// Reports the current mouse position in screen coordinates. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsevent/1526249-rotation?language=objc -func (e_ Event) Rotation() float64 { - rv := objc.Call[float64](e_, objc.Sel("rotation")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsevent/1533380-mouselocation?language=objc +func Event_MouseLocation() foundation.Point { + return EventClass.MouseLocation() +} + +// 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/1530551-vendordefined?language=objc +func (e_ Event) VendorDefined() objc.Object { + rv := objc.Call[objc.Object](e_, objc.Sel("vendorDefined")) return rv } -// The index of the pointing device currently in proximity with the tablet. [Full Topic] +// The button number for a mouse event. [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")) +// [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 } @@ -610,97 +615,121 @@ func (e_ Event) AssociatedEventsMask() EventMask { return rv } -// The amount of change to add to a magnification gesture. [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/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/1535220-eventnumber?language=objc +func (e_ Event) EventNumber() int { + rv := objc.Call[int](e_, objc.Sel("eventNumber")) return rv } -// The Core Graphics event object corresponding to this event. [Full Topic] +// The currently pressed modifier keys. [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/1535211-modifierflags?language=objc +func (ec _EventClass) ModifierFlags() EventModifierFlags { + rv := objc.Call[EventModifierFlags](ec, objc.Sel("modifierFlags")) return rv } -// Reports the current mouse position in screen coordinates. [Full Topic] +// The currently pressed modifier keys. [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/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] +// +// [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() +} + +// 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")) 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 Event_MouseLocation() foundation.Point { - return EventClass.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 } -// The event’s subtype. [Full Topic] +// The tangential pressure on the device that generated this 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/1525959-tangentialpressure?language=objc +func (e_ Event) TangentialPressure() float64 { + rv := objc.Call[float64](e_, objc.Sel("tangentialPressure")) return rv } -// The x-coordinate change for scroll wheel, mouse-move, mouse-drag, and swipe events. [Full Topic] +// Additional data associated with this event. [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")) +// [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 vendor identifier of the tablet associated with the 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/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/1528239-timestamp?language=objc +func (e_ Event) Timestamp() foundation.TimeInterval { + rv := objc.Call[foundation.TimeInterval](e_, objc.Sel("timestamp")) return rv } -// The indices of the currently pressed mouse buttons. [Full Topic] +// The Core Graphics event object corresponding to this 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")) +// [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 } -// The indices of the currently pressed mouse buttons. [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/1527943-pressedmousebuttons?language=objc -func Event_PressedMouseButtons() uint { - return EventClass.PressedMouseButtons() +// [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 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 } -// A bit mask identifying the buttons pressed for a tablet event. [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/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/1534226-tilt?language=objc +func (e_ Event) Tilt() foundation.Point { + rv := objc.Call[foundation.Point](e_, objc.Sel("tilt")) 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/1528647-data2?language=objc +func (e_ Event) Data2() int { + rv := objc.Call[int](e_, objc.Sel("data2")) return rv } @@ -712,29 +741,14 @@ func (e_ Event) DeltaY() float64 { return rv } -// The virtual code for the key associated with the event. [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")) - return rv -} - -// A Boolean value that indicates whether to track fluid swipe gestures using scroll events. [Full Topic] +// The data associated with a mouse-tracking 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/1526810-userdata?language=objc +func (e_ Event) UserData() unsafe.Pointer { + rv := objc.Call[unsafe.Pointer](e_, objc.Sel("userData")) 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 @@ -743,35 +757,35 @@ func (e_ Event) WindowNumber() int { return rv } -// A Boolean value that indicates whether the user has changed the device inversion. [Full Topic] +// A Boolean value that indicates whether precise scrolling deltas are available. [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/1525758-hasprecisescrollingdeltas?language=objc +func (e_ Event) HasPreciseScrollingDeltas() bool { + rv := objc.Call[bool](e_, objc.Sel("hasPreciseScrollingDeltas")) return rv } -// A Boolean value that indicates whether a pointing device is entering or leaving the proximity of its tablet. [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/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/1527003-tabletid?language=objc +func (e_ Event) TabletID() uint { + rv := objc.Call[uint](e_, objc.Sel("tabletID")) return rv } -// The event location in the base coordinate system of the associated window. [Full Topic] +// The vendor-assigned serial number of a pointing device. [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/1533420-pointingdeviceserialnumber?language=objc +func (e_ Event) PointingDeviceSerialNumber() uint { + rv := objc.Call[uint](e_, objc.Sel("pointingDeviceSerialNumber")) return rv } -// The time when the event occurred in seconds since system startup. [Full Topic] +// A value that indicates the stage of a pressure gesture 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/1527242-stage?language=objc +func (e_ Event) Stage() int { + rv := objc.Call[int](e_, objc.Sel("stage")) return rv } @@ -783,122 +797,104 @@ func (e_ Event) CapabilityMask() uint { return rv } -// 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/1530617-absolutex?language=objc -func (e_ Event) AbsoluteX() int { - rv := objc.Call[int](e_, objc.Sel("absoluteX")) - return rv -} - -// The event’s type. [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")) - return rv -} - -// The scroll wheel’s horizontal delta. [Full Topic] +// The identifier of a mouse-tracking event. [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")) +// [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 window object associated with the event. [Full Topic] +// 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/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/1524605-charactersignoringmodifiers?language=objc +func (e_ Event) CharactersIgnoringModifiers() string { + rv := objc.Call[string](e_, objc.Sel("charactersIgnoringModifiers")) return rv } -// A Boolean value that indicates whether the key event is a repeat. [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/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/1530832-keyrepeatdelay?language=objc +func (ec _EventClass) KeyRepeatDelay() foundation.TimeInterval { + rv := objc.Call[foundation.TimeInterval](ec, objc.Sel("keyRepeatDelay")) return rv } -// Additional data associated with this 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/1528647-data2?language=objc -func (e_ Event) Data2() int { - rv := objc.Call[int](e_, objc.Sel("data2")) - return rv +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsevent/1530832-keyrepeatdelay?language=objc +func Event_KeyRepeatDelay() foundation.TimeInterval { + return EventClass.KeyRepeatDelay() } -// The tangential pressure on the device that generated this event. [Full Topic] +// The event’s type. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsevent/1525959-tangentialpressure?language=objc -func (e_ Event) TangentialPressure() float64 { - rv := objc.Call[float64](e_, objc.Sel("tangentialPressure")) +// [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 } -// A value that indicates the stage of a pressure gesture event. [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/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/1529068-locationinwindow?language=objc +func (e_ Event) LocationInWindow() foundation.Point { + rv := objc.Call[foundation.Point](e_, objc.Sel("locationInWindow")) return rv } -// A Boolean value that indicates whether precise scrolling deltas are available. [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/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/1534543-pressure?language=objc +func (e_ Event) Pressure() float64 { + rv := objc.Call[float64](e_, objc.Sel("pressure")) return rv } -// The scroll wheel’s vertical delta. [Full Topic] +// A bit mask identifying the buttons pressed for a tablet 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/1535428-buttonmask?language=objc +func (e_ Event) ButtonMask() EventButtonMask { + rv := objc.Call[EventButtonMask](e_, objc.Sel("buttonMask")) return rv } -// The absolute y coordinate of a pointing device on its tablet at full tablet resolution. [Full Topic] +// The vendor identifier of the tablet associated with the event. [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")) +// [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 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 } -// 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 characters generated by a key event as if no modifier key (except for Shift) applies. [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/1524605-charactersignoringmodifiers?language=objc -func (e_ Event) CharactersIgnoringModifiers() string { - rv := objc.Call[string](e_, objc.Sel("charactersIgnoringModifiers")) - return rv +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsevent/1528384-doubleclickinterval?language=objc +func Event_DoubleClickInterval() foundation.TimeInterval { + return EventClass.DoubleClickInterval() } -// The behavior and progression for a pressure event. [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/1531392-pressurebehavior?language=objc -func (e_ Event) PressureBehavior() PressureBehavior { - rv := objc.Call[PressureBehavior](e_, objc.Sel("pressureBehavior")) +// [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 } diff --git a/macos/appkit/file_promise_provider.gen.go b/macos/appkit/file_promise_provider.gen.go index 1fefff9d..c32d3cff 100644 --- a/macos/appkit/file_promise_provider.gen.go +++ b/macos/appkit/file_promise_provider.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package appkit @@ -20,11 +20,11 @@ type IFilePromiseProvider interface { objc.IObject UserInfo() objc.Object SetUserInfo(value objc.IObject) - Delegate() FilePromiseProviderDelegateWrapper - SetDelegate(value PFilePromiseProviderDelegate) - SetDelegateObject(valueObject objc.IObject) FileType() string SetFileType(value string) + Delegate() FilePromiseProviderDelegateObject + SetDelegate(value PFilePromiseProviderDelegate) + SetDelegateObject(valueObject objc.IObject) } // An object that provides a promise for the pasteboard. [Full Topic] @@ -65,10 +65,6 @@ func (fc _FilePromiseProviderClass) Alloc() FilePromiseProvider { return rv } -func FilePromiseProvider_Alloc() FilePromiseProvider { - return FilePromiseProviderClass.Alloc() -} - func (fc _FilePromiseProviderClass) New() FilePromiseProvider { rv := objc.Call[FilePromiseProvider](fc, objc.Sel("new")) rv.Autorelease() @@ -94,11 +90,26 @@ 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 -func (f_ FilePromiseProvider) Delegate() FilePromiseProviderDelegateWrapper { - rv := objc.Call[FilePromiseProviderDelegateWrapper](f_, objc.Sel("delegate")) +func (f_ FilePromiseProvider) Delegate() FilePromiseProviderDelegateObject { + rv := objc.Call[FilePromiseProviderDelegateObject](f_, objc.Sel("delegate")) return rv } @@ -117,18 +128,3 @@ func (f_ FilePromiseProvider) SetDelegate(value PFilePromiseProviderDelegate) { func (f_ FilePromiseProvider) SetDelegateObject(valueObject objc.IObject) { objc.Call[objc.Void](f_, objc.Sel("setDelegate:"), objc.Ptr(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 cd580c45..92bfebeb 100644 --- a/macos/appkit/file_promise_provider_delegate.gen.go +++ b/macos/appkit/file_promise_provider_delegate.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package appkit @@ -12,20 +12,42 @@ import ( // [Full Topic]: https://developer.apple.com/documentation/appkit/nsfilepromiseproviderdelegate?language=objc type PFilePromiseProviderDelegate interface { // optional - OperationQueueForFilePromiseProvider(filePromiseProvider FilePromiseProvider) foundation.IOperationQueue + FilePromiseProviderFileNameForType(filePromiseProvider FilePromiseProvider, fileType string) string + HasFilePromiseProviderFileNameForType() bool + + // optional + OperationQueueForFilePromiseProvider(filePromiseProvider FilePromiseProvider) foundation.OperationQueue HasOperationQueueForFilePromiseProvider() bool // optional - FilePromiseProviderFileNameForType(filePromiseProvider FilePromiseProvider, fileType string) string - HasFilePromiseProviderFileNameForType() bool + FilePromiseProviderWritePromiseToURLCompletionHandler(filePromiseProvider FilePromiseProvider, url foundation.URL, completionHandler func(errorOrNil foundation.Error)) + HasFilePromiseProviderWritePromiseToURLCompletionHandler() bool } // A delegate implementation builder for the [PFilePromiseProviderDelegate] protocol. type FilePromiseProviderDelegate struct { - _OperationQueueForFilePromiseProvider func(filePromiseProvider FilePromiseProvider) foundation.IOperationQueue - _FilePromiseProviderFileNameForType func(filePromiseProvider FilePromiseProvider, fileType string) string + _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 +} + +// 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 } @@ -33,59 +55,73 @@ func (di *FilePromiseProviderDelegate) HasOperationQueueForFilePromiseProvider() // Returns the operation queue from which to issue the write request. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/appkit/nsfilepromiseproviderdelegate/2369279-operationqueueforfilepromiseprov?language=objc -func (di *FilePromiseProviderDelegate) SetOperationQueueForFilePromiseProvider(f func(filePromiseProvider FilePromiseProvider) foundation.IOperationQueue) { +func (di *FilePromiseProviderDelegate) SetOperationQueueForFilePromiseProvider(f func(filePromiseProvider FilePromiseProvider) foundation.OperationQueue) { di._OperationQueueForFilePromiseProvider = f } // Returns the operation queue from which to issue the write request. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/appkit/nsfilepromiseproviderdelegate/2369279-operationqueueforfilepromiseprov?language=objc -func (di *FilePromiseProviderDelegate) OperationQueueForFilePromiseProvider(filePromiseProvider FilePromiseProvider) foundation.IOperationQueue { +func (di *FilePromiseProviderDelegate) OperationQueueForFilePromiseProvider(filePromiseProvider FilePromiseProvider) foundation.OperationQueue { return di._OperationQueueForFilePromiseProvider(filePromiseProvider) } -func (di *FilePromiseProviderDelegate) HasFilePromiseProviderFileNameForType() bool { - return di._FilePromiseProviderFileNameForType != nil +func (di *FilePromiseProviderDelegate) HasFilePromiseProviderWritePromiseToURLCompletionHandler() bool { + return di._FilePromiseProviderWritePromiseToURLCompletionHandler != nil } -// Provides the drag destination file's name. [Full Topic] +// Writes the contents of a promise to the specified URL. [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 +// [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 } -// Provides the drag destination file's name. [Full Topic] +// Writes the contents of a promise to the specified URL. [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) +// [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) } -// A concrete type wrapper for the [PFilePromiseProviderDelegate] protocol. -type FilePromiseProviderDelegateWrapper struct { +// ensure impl type implements protocol interface +var _ PFilePromiseProviderDelegate = (*FilePromiseProviderDelegateObject)(nil) + +// A concrete type for the [PFilePromiseProviderDelegate] protocol. +type FilePromiseProviderDelegateObject struct { objc.Object } -func (f_ FilePromiseProviderDelegateWrapper) HasOperationQueueForFilePromiseProvider() bool { +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:"), objc.Ptr(filePromiseProvider), fileType) + return rv +} + +func (f_ FilePromiseProviderDelegateObject) HasOperationQueueForFilePromiseProvider() bool { return f_.RespondsToSelector(objc.Sel("operationQueueForFilePromiseProvider:")) } // Returns the operation queue from which to issue the write request. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/appkit/nsfilepromiseproviderdelegate/2369279-operationqueueforfilepromiseprov?language=objc -func (f_ FilePromiseProviderDelegateWrapper) OperationQueueForFilePromiseProvider(filePromiseProvider IFilePromiseProvider) foundation.OperationQueue { +func (f_ FilePromiseProviderDelegateObject) OperationQueueForFilePromiseProvider(filePromiseProvider FilePromiseProvider) foundation.OperationQueue { rv := objc.Call[foundation.OperationQueue](f_, objc.Sel("operationQueueForFilePromiseProvider:"), objc.Ptr(filePromiseProvider)) return rv } -func (f_ FilePromiseProviderDelegateWrapper) HasFilePromiseProviderFileNameForType() bool { - return f_.RespondsToSelector(objc.Sel("filePromiseProvider:fileNameForType:")) +func (f_ FilePromiseProviderDelegateObject) HasFilePromiseProviderWritePromiseToURLCompletionHandler() bool { + return f_.RespondsToSelector(objc.Sel("filePromiseProvider:writePromiseToURL:completionHandler:")) } -// Provides the drag destination file's name. [Full Topic] +// Writes the contents of a promise to the specified URL. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsfilepromiseproviderdelegate/2369278-filepromiseprovider?language=objc -func (f_ FilePromiseProviderDelegateWrapper) FilePromiseProviderFileNameForType(filePromiseProvider IFilePromiseProvider, fileType string) string { - rv := objc.Call[string](f_, objc.Sel("filePromiseProvider:fileNameForType:"), objc.Ptr(filePromiseProvider), fileType) - return rv +// [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:"), objc.Ptr(filePromiseProvider), objc.Ptr(url), completionHandler) } diff --git a/macos/appkit/file_promise_receiver.gen.go b/macos/appkit/file_promise_receiver.gen.go index 2674c8f7..96626589 100644 --- a/macos/appkit/file_promise_receiver.gen.go +++ b/macos/appkit/file_promise_receiver.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package appkit @@ -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)) - FileTypes() []string FileNames() []string + FileTypes() []string } // An object that receives a file promise from the pasteboard. [Full Topic] @@ -42,10 +42,6 @@ func (fc _FilePromiseReceiverClass) Alloc() FilePromiseReceiver { return rv } -func FilePromiseReceiver_Alloc() FilePromiseReceiver { - return FilePromiseReceiverClass.Alloc() -} - func (fc _FilePromiseReceiverClass) New() FilePromiseReceiver { rv := objc.Call[FilePromiseReceiver](fc, objc.Sel("new")) rv.Autorelease() @@ -68,14 +64,21 @@ func (f_ FilePromiseReceiver) ReceivePromisedFilesAtDestinationOptionsOperationQ objc.Call[objc.Void](f_, objc.Sel("receivePromisedFilesAtDestination:options:operationQueue:reader:"), objc.Ptr(destinationDir), options, objc.Ptr(operationQueue), reader) } -// 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() +} + // 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 @@ -84,17 +87,10 @@ func (f_ FilePromiseReceiver) FileNames() []string { return rv } -// 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() -} diff --git a/macos/appkit/font.gen.go b/macos/appkit/font.gen.go index ef80f3ce..4e4a6ba8 100644 --- a/macos/appkit/font.gen.go +++ b/macos/appkit/font.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package appkit @@ -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 - GetAdvancementsForCGGlyphsCount(advancements foundation.SizeArray, glyphs *coregraphics.Glyph, glyphCount uint) - SetInContext(graphicsContext IGraphicsContext) - AdvancementForCGGlyph(glyph coregraphics.Glyph) foundation.Size - FontDescriptor() FontDescriptor - Ascender() float64 + NumberOfGlyphs() uint + FontName() string CapHeight() float64 IsFixedPitch() bool - CoveredCharacterSet() foundation.CharacterSet - TextTransform() foundation.AffineTransform + MostCompatibleStringEncoding() foundation.StringEncoding + DisplayName() string + BoundingRectForFont() foundation.Rect UnderlinePosition() float64 - Leading() float64 - MaximumAdvancement() foundation.Size - NumberOfGlyphs() uint - XHeight() float64 - PointSize() float64 + ItalicAngle() float64 + TextTransform() foundation.AffineTransform + FontDescriptor() FontDescriptor VerticalFont() Font - BoundingRectForFont() foundation.Rect - Descender() float64 - FontName() string - Matrix() *float64 + Leading() float64 IsVertical() bool - ItalicAngle() float64 - MostCompatibleStringEncoding() foundation.StringEncoding + MaximumAdvancement() foundation.Size UnderlineThickness() float64 - DisplayName() string FamilyName() string + Matrix() *float64 + Descender() float64 + XHeight() float64 + Ascender() float64 + CoveredCharacterSet() foundation.CharacterSet + PointSize() float64 } // The representation of a font in an app. [Full Topic] @@ -70,10 +70,6 @@ func (fc _FontClass) Alloc() Font { return rv } -func Font_Alloc() Font { - return FontClass.Alloc() -} - func (fc _FontClass) New() Font { rv := objc.Call[Font](fc, objc.Sel("new")) rv.Autorelease() @@ -89,26 +85,56 @@ func (f_ Font) Init() Font { return rv } -// 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, when that font should be fixed-pitch, 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/1529050-setuserfixedpitchfont?language=objc +func (fc _FontClass) SetUserFixedPitchFont(font IFont) { + objc.Call[objc.Void](fc, objc.Sel("setUserFixedPitchFont:"), objc.Ptr(font)) } -// Returns the font used for palette window title bars, 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/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/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 used for palette window title bars, in the specified size. [Full Topic] +// Returns the font size used for the specified control size. [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/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] +// +// [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 +} + +// Returns the standard system font with 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) + return rv +} + +// Returns the standard system font with 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) } // Returns the font used for window title bars, in the specified size. [Full Topic] @@ -126,56 +152,56 @@ func Font_TitleBarFontOfSize(fontSize float64) Font { return FontClass.TitleBarFontOfSize(fontSize) } -// Returns the bounding rectangle for the specified glyph, scaled to the receiver’s size. [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/2887147-boundingrectforcgglyph?language=objc -func (f_ Font) BoundingRectForCGGlyph(glyph coregraphics.Glyph) foundation.Rect { - rv := objc.Call[foundation.Rect](f_, objc.Sel("boundingRectForCGGlyph:"), glyph) +// [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:"), objc.Ptr(fontDescriptor), fontSize) return rv } -// Sets this font as the font for the current graphics context. [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/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/1525386-fontwithdescriptor?language=objc +func Font_FontWithDescriptorSize(fontDescriptor IFontDescriptor, fontSize float64) Font { + return FontClass.FontWithDescriptorSize(fontDescriptor, fontSize) } -// Sets the font used by default for documents and other text under the user’s control to the specified font. [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/1526068-setuserfont?language=objc -func (fc _FontClass) SetUserFont(font IFont) { - objc.Call[objc.Void](fc, objc.Sel("setUserFont:"), objc.Ptr(font)) +// [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) } -// Sets the font used by default for documents and other text under the user’s control to the specified font. [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/1526068-setuserfont?language=objc -func Font_SetUserFont(font IFont) { - FontClass.SetUserFont(font) +// [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] +// Returns the font used for the content of controls 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/1527070-controlcontentfontofsize?language=objc +func Font_ControlContentFontOfSize(fontSize float64) Font { + return FontClass.ControlContentFontOfSize(fontSize) } -// Returns a version of the standard system font that contains monospaced digit glyphs. [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/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/1535462-palettefontofsize?language=objc +func (fc _FontClass) PaletteFontOfSize(fontSize float64) Font { + rv := objc.Call[Font](fc, objc.Sel("paletteFontOfSize:"), fontSize) return rv } -// Returns a version of the standard system font that contains monospaced digit glyphs. [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/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/1535462-palettefontofsize?language=objc +func Font_PaletteFontOfSize(fontSize float64) Font { + return FontClass.PaletteFontOfSize(fontSize) } // Returns the font associated with the text style. [Full Topic] @@ -193,34 +219,71 @@ func Font_PreferredFontForTextStyleOptions(style FontTextStyle, options map[Font return FontClass.PreferredFontForTextStyleOptions(style, options) } -// Returns the font used for standard interface items, such as button labels, menu items, and so on, in the specified size. [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/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/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 items, such as button labels, menu items, and so on, in the specified size. [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/1525777-messagefontofsize?language=objc -func Font_MessageFontOfSize(fontSize float64) Font { - return FontClass.MessageFontOfSize(fontSize) +// [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 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) +// [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:"), objc.Ptr(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 in boldface type with the specified size. [Full Topic] +// Returns the standard system font with the specified size and weight. [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/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] +// +// [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:"), objc.Ptr(fontDescriptor), objc.Ptr(textTransform)) + return rv +} + +// Returns a font object for the specified font descriptor and text transform. [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) +} + +// Returns a version of the standard system font that contains monospaced digit glyphs. [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) + return rv +} + +// Returns a version of the standard system font that contains monospaced digit glyphs. [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) } // Returns the font used for menu items, in the specified size. [Full Topic] @@ -238,244 +301,237 @@ func Font_MenuFontOfSize(fontSize float64) Font { return FontClass.MenuFontOfSize(fontSize) } -// Returns the standard system font with the specified 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/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/1534194-menubarfontofsize?language=objc +func (fc _FontClass) MenuBarFontOfSize(fontSize float64) Font { + rv := objc.Call[Font](fc, objc.Sel("menuBarFontOfSize:"), fontSize) return rv } -// Returns the standard system font with the specified 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/1530094-systemfontofsize?language=objc -func Font_SystemFontOfSize(fontSize float64) Font { - return FontClass.SystemFontOfSize(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 an array of the advancements for the specified glyphs rendered by the receiver. [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/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/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 (fc _FontClass) ToolTipsFontOfSize(fontSize float64) Font { - rv := objc.Call[Font](fc, objc.Sel("toolTipsFontOfSize:"), fontSize) - return rv +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsfont/1531381-userfixedpitchfontofsize?language=objc +func Font_UserFixedPitchFontOfSize(fontSize float64) Font { + return FontClass.UserFixedPitchFontOfSize(fontSize) } -// Returns the font used for tool tips labels, in the specified 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/1527704-tooltipsfontofsize?language=objc -func Font_ToolTipsFontOfSize(fontSize float64) Font { - return FontClass.ToolTipsFontOfSize(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 name and matrix. [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/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/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 name and matrix. [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/1530751-fontwithname?language=objc -func Font_FontWithNameMatrix(fontName string, fontMatrix *float64) Font { - return FontClass.FontWithNameMatrix(fontName, fontMatrix) +// [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 monospace version of the system font with the specified size and weight. [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/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 +// [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:"), objc.Ptr(font)) } -// Returns a monospace version of the system font with the specified size and weight. [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/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/1526068-setuserfont?language=objc +func Font_SetUserFont(font IFont) { + FontClass.SetUserFont(font) } -// Sets this font as the font for the specified graphics context. [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/1534538-setincontext?language=objc -func (f_ Font) SetInContext(graphicsContext IGraphicsContext) { - objc.Call[objc.Void](f_, objc.Sel("setInContext:"), objc.Ptr(graphicsContext)) +// [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 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 the standard system font in boldface type with the specified size. [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/1533549-boldsystemfontofsize?language=objc +func Font_BoldSystemFontOfSize(fontSize float64) Font { + return FontClass.BoldSystemFontOfSize(fontSize) } -// Returns the font used for menu bar items, in the specified size. [Full Topic] +// Creates a font object for the specified font name and font 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/1525977-fontwithname?language=objc +func (fc _FontClass) FontWithNameSize(fontName string, fontSize float64) Font { + rv := objc.Call[Font](fc, objc.Sel("fontWithName:size:"), fontName, fontSize) return rv } -// Returns the font used for menu bar items, in the specified size. [Full Topic] +// Creates a font object for the specified font name and font 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/1525977-fontwithname?language=objc +func Font_FontWithNameSize(fontName string, fontSize float64) Font { + return FontClass.FontWithNameSize(fontName, fontSize) } -// Returns a font object for the specified font descriptor and font size. [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/1525386-fontwithdescriptor?language=objc -func (fc _FontClass) FontWithDescriptorSize(fontDescriptor IFontDescriptor, fontSize float64) Font { - rv := objc.Call[Font](fc, objc.Sel("fontWithDescriptor:size:"), objc.Ptr(fontDescriptor), fontSize) +// [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 } -// Returns a font object for the specified font descriptor and font size. [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/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/3042659-monospacedsystemfontofsize?language=objc +func Font_MonospacedSystemFontOfSizeWeight(fontSize float64, weight FontWeight) Font { + return FontClass.MonospacedSystemFontOfSizeWeight(fontSize, weight) } -// 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 (fc _FontClass) UserFixedPitchFontOfSize(fontSize float64) Font { - rv := objc.Call[Font](fc, objc.Sel("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 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 Font_ToolTipsFontOfSize(fontSize float64) Font { + return FontClass.ToolTipsFontOfSize(fontSize) } -// 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] +// 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/1529050-setuserfixedpitchfont?language=objc -func (fc _FontClass) SetUserFixedPitchFont(font IFont) { - objc.Call[objc.Void](fc, objc.Sel("setUserFixedPitchFont:"), objc.Ptr(font)) +// [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) } -// 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] +// 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/1529050-setuserfixedpitchfont?language=objc -func Font_SetUserFixedPitchFont(font IFont) { - FontClass.SetUserFixedPitchFont(font) +// [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 } -// Returns the font used for the content of controls 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), in the specified size. [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/1524559-userfontofsize?language=objc +func Font_UserFontOfSize(fontSize float64) Font { + return FontClass.UserFontOfSize(fontSize) } -// Returns the font used for the content of controls in the specified 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/1527070-controlcontentfontofsize?language=objc -func Font_ControlContentFontOfSize(fontSize float64) Font { - return FontClass.ControlContentFontOfSize(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 the font used for standard interface labels 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/1528213-labelfontofsize?language=objc -func (fc _FontClass) LabelFontOfSize(fontSize float64) Font { - rv := objc.Call[Font](fc, objc.Sel("labelFontOfSize:"), 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 labels 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/1528213-labelfontofsize?language=objc -func Font_LabelFontOfSize(fontSize float64) Font { - return FontClass.LabelFontOfSize(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) } -// Returns the font size used for the specified control size. [Full Topic] +// [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) +// [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 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 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 size of the standard small system 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) +// [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 } -// 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 size of the standard small system font. [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/1535612-smallsystemfontsize?language=objc +func Font_SmallSystemFontSize() float64 { + return FontClass.SmallSystemFontSize() } -// 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 } -// The top y-coordinate, offset from the baseline, of the font’s longest ascender. [Full Topic] +// 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/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/1526183-fontname?language=objc +func (f_ Font) FontName() string { + rv := objc.Call[string](f_, objc.Sel("fontName")) return rv } -// The cap 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/1528292-capheight?language=objc -func (f_ Font) CapHeight() float64 { - rv := objc.Call[float64](f_, objc.Sel("capHeight")) +// [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 } -// Returns the size of the standard system font. [Full Topic] +// Returns the size of the standard label font. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsfont/1531931-systemfontsize?language=objc -func (fc _FontClass) SystemFontSize() float64 { - rv := objc.Call[float64](fc, objc.Sel("systemFontSize")) - return rv +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsfont/1534629-labelfontsize?language=objc +func Font_LabelFontSize() float64 { + return FontClass.LabelFontSize() } -// Returns the size of the standard system font. [Full Topic] +// The cap height of the font. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsfont/1531931-systemfontsize?language=objc -func Font_SystemFontSize() float64 { - return FontClass.SystemFontSize() +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsfont/1528292-capheight?language=objc +func (f_ Font) CapHeight() float64 { + rv := objc.Call[float64](f_, objc.Sel("capHeight")) + return rv } // A Boolean value indicating whether all glyphs in the font have the same advancement. [Full Topic] @@ -486,82 +542,74 @@ func (f_ Font) IsFixedPitch() bool { 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 current transformation matrix of the font. [Full Topic] +// Returns the size of the standard system 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")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsfont/1531931-systemfontsize?language=objc +func (fc _FontClass) SystemFontSize() float64 { + rv := objc.Call[float64](fc, objc.Sel("systemFontSize")) return rv } -// The baseline offset to use when drawing underlines with the font. [Full Topic] +// Returns the size of the standard system font. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsfont/1533984-underlineposition?language=objc -func (f_ Font) UnderlinePosition() float64 { - rv := objc.Call[float64](f_, objc.Sel("underlinePosition")) - return rv +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsfont/1531931-systemfontsize?language=objc +func Font_SystemFontSize() float64 { + return FontClass.SystemFontSize() } -// The leading value of the font. [Full Topic] +// 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/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/1531660-displayname?language=objc +func (f_ Font) DisplayName() string { + rv := objc.Call[string](f_, objc.Sel("displayName")) return rv } -// The maximum advance of any of the font’s glyphs. [Full Topic] +// The font’s bounding rectangle, scaled to the font’s size. [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/1527321-boundingrectforfont?language=objc +func (f_ Font) BoundingRectForFont() foundation.Rect { + rv := objc.Call[foundation.Rect](f_, objc.Sel("boundingRectForFont")) return rv } -// The number of glyphs in the font. [Full Topic] +// The baseline offset to use when drawing underlines with the font. [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/1533984-underlineposition?language=objc +func (f_ Font) UnderlinePosition() float64 { + rv := objc.Call[float64](f_, objc.Sel("underlinePosition")) return rv } -// The x-height of the font. [Full Topic] +// The number of degrees that the font is slanted counterclockwise from the vertical. [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/1535194-italicangle?language=objc +func (f_ Font) ItalicAngle() float64 { + rv := objc.Call[float64](f_, objc.Sel("italicAngle")) return rv } -// Returns the size of the standard small system font. [Full Topic] +// The current transformation matrix of the font. [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/1526270-texttransform?language=objc +func (f_ Font) TextTransform() foundation.AffineTransform { + rv := objc.Call[foundation.AffineTransform](f_, objc.Sel("textTransform")) return rv } -// Returns the size of the standard small system font. [Full Topic] -// -// [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] +// The font descriptor object for 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/1530476-fontdescriptor?language=objc +func (f_ Font) FontDescriptor() FontDescriptor { + rv := objc.Call[FontDescriptor](f_, objc.Sel("fontDescriptor")) return rv } @@ -573,97 +621,90 @@ func (f_ Font) VerticalFont() Font { return rv } -// The font’s bounding rectangle, scaled to the font’s size. [Full Topic] +// The leading value of the font. [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/1534083-leading?language=objc +func (f_ Font) Leading() float64 { + rv := objc.Call[float64](f_, objc.Sel("leading")) 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 full name of the font, as used in PostScript language code—for example, “Times-Roman” or “Helvetica-Oblique.” [Full Topic] +// The maximum advance of any of the font’s glyphs. [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")) +// [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 transformation matrix associated with 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/1531033-matrix?language=objc -func (f_ Font) Matrix() *float64 { - rv := objc.Call[*float64](f_, objc.Sel("matrix")) +// [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 } -// A Boolean value indicating whether the font is a vertical font. [Full Topic] +// The family name of the font—for example, “Times” or “Helvetica.” [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/1529585-familyname?language=objc +func (f_ Font) FamilyName() string { + rv := objc.Call[string](f_, objc.Sel("familyName")) return rv } -// Returns the size of the standard label font. [Full Topic] +// The transformation matrix associated with 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/1531033-matrix?language=objc +func (f_ Font) Matrix() *float64 { + rv := objc.Call[*float64](f_, objc.Sel("matrix")) return rv } -// Returns the size of the standard label font. [Full Topic] -// -// [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] +// 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/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/1532270-descender?language=objc +func (f_ Font) Descender() float64 { + rv := objc.Call[float64](f_, objc.Sel("descender")) return rv } -// The string encoding that works best with the font. [Full Topic] +// The x-height of 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")) +// [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 thickness to use when drawing underlines with the 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/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/1535420-ascender?language=objc +func (f_ Font) Ascender() float64 { + rv := objc.Call[float64](f_, objc.Sel("ascender")) return rv } -// The name of the font, including family and face names, to use when displaying the font information to the user. [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/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/1535912-coveredcharacterset?language=objc +func (f_ Font) CoveredCharacterSet() foundation.CharacterSet { + rv := objc.Call[foundation.CharacterSet](f_, objc.Sel("coveredCharacterSet")) return rv } -// The family name of the font—for example, “Times” or “Helvetica.” [Full Topic] +// The point size of the font. [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/1524511-pointsize?language=objc +func (f_ Font) PointSize() float64 { + rv := objc.Call[float64](f_, objc.Sel("pointSize")) return rv } diff --git a/macos/appkit/font_asset_request.gen.go b/macos/appkit/font_asset_request.gen.go index 01e25583..0c23cff3 100644 --- a/macos/appkit/font_asset_request.gen.go +++ b/macos/appkit/font_asset_request.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package appkit @@ -20,8 +20,8 @@ type _FontAssetRequestClass struct { type IFontAssetRequest interface { objc.IObject DownloadFontAssetsWithCompletionHandler(completionHandler func(error foundation.Error) bool) - DownloadedFontDescriptors() []FontDescriptor Progress() foundation.Progress + DownloadedFontDescriptors() []FontDescriptor } // [Full Topic] @@ -56,10 +56,6 @@ func (fc _FontAssetRequestClass) Alloc() FontAssetRequest { return rv } -func FontAssetRequest_Alloc() FontAssetRequest { - return FontAssetRequestClass.Alloc() -} - func (fc _FontAssetRequestClass) New() FontAssetRequest { rv := objc.Call[FontAssetRequest](fc, objc.Sel("new")) rv.Autorelease() @@ -84,16 +80,16 @@ func (f_ FontAssetRequest) DownloadFontAssetsWithCompletionHandler(completionHan // [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 } // [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 } diff --git a/macos/appkit/font_changing.gen.go b/macos/appkit/font_changing_protocol.gen.go similarity index 66% rename from macos/appkit/font_changing.gen.go rename to macos/appkit/font_changing_protocol.gen.go index cf0fbdc7..16e83792 100644 --- a/macos/appkit/font_changing.gen.go +++ b/macos/appkit/font_changing_protocol.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package appkit @@ -10,39 +10,42 @@ import ( // // [Full Topic]: https://developer.apple.com/documentation/appkit/nsfontchanging?language=objc type PFontChanging interface { - // optional - ChangeFont(sender FontManager) - HasChangeFont() bool - // optional ValidModesForFontPanel(fontPanel FontPanel) FontPanelModeMask HasValidModesForFontPanel() bool + + // optional + ChangeFont(sender FontManager) + HasChangeFont() bool } -// A concrete type wrapper for the [PFontChanging] protocol. -type FontChangingWrapper struct { +// ensure impl type implements protocol interface +var _ PFontChanging = (*FontChangingObject)(nil) + +// A concrete type for the [PFontChanging] protocol. +type FontChangingObject struct { objc.Object } -func (f_ FontChangingWrapper) 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_ FontChangingWrapper) ChangeFont(sender IFontManager) { - objc.Call[objc.Void](f_, objc.Sel("changeFont:"), objc.Ptr(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:"), objc.Ptr(fontPanel)) + return rv } -func (f_ FontChangingWrapper) 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_ FontChangingWrapper) ValidModesForFontPanel(fontPanel IFontPanel) FontPanelModeMask { - rv := objc.Call[FontPanelModeMask](f_, objc.Sel("validModesForFontPanel:"), objc.Ptr(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:"), objc.Ptr(sender)) } diff --git a/macos/appkit/font_collection.gen.go b/macos/appkit/font_collection.gen.go index fecf57ba..efff0712 100644 --- a/macos/appkit/font_collection.gen.go +++ b/macos/appkit/font_collection.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package appkit @@ -20,6 +20,7 @@ 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 @@ -44,10 +45,6 @@ func (fc _FontCollectionClass) Alloc() FontCollection { return rv } -func FontCollection_Alloc() FontCollection { - return FontCollectionClass.Alloc() -} - func (fc _FontCollectionClass) New() FontCollection { rv := objc.Call[FontCollection](fc, objc.Sel("new")) rv.Autorelease() @@ -63,21 +60,6 @@ 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 @@ -101,19 +83,19 @@ func FontCollection_RenameFontCollectionWithNameVisibilityToNameError(oldName Fo return FontCollectionClass.RenameFontCollectionWithNameVisibilityToNameError(oldName, visibility, newName, outError) } -// Make the given font collection visible by giving it a name. [Full Topic] +// Returns a font collection matching the given descriptors. [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 foundation.IError) bool { - rv := objc.Call[bool](fc, objc.Sel("showFontCollection:withName:visibility:error:"), objc.Ptr(collection), name, visibility, objc.Ptr(error)) +// [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 } -// Make the given font collection visible by giving it a name. [Full Topic] +// Returns a font collection matching the given descriptors. [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 foundation.IError) bool { - return FontCollectionClass.ShowFontCollectionWithNameVisibilityError(collection, name, visibility, error) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsfontcollection/1497467-fontcollectionwithdescriptors?language=objc +func FontCollection_FontCollectionWithDescriptors(queryDescriptors []IFontDescriptor) FontCollection { + return FontCollectionClass.FontCollectionWithDescriptors(queryDescriptors) } // Remove from view the named font collection with the specified visibility. [Full Topic] @@ -131,34 +113,27 @@ func FontCollection_HideFontCollectionWithNameVisibilityError(name FontCollectio return FontCollectionClass.HideFontCollectionWithNameVisibilityError(name, visibility, error) } -// Returns a font collection matching the given descriptors. [Full Topic] +// Returns an array of font descriptors matching the logical descriptors for the given font family and options. [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/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) return rv } -// Returns a font collection matching the given descriptors. [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) -} - -// Returns a collection of fonts matching the given locale. [Full Topic] +// Creates a named font collection object. [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:"), objc.Ptr(locale)) +// [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 } -// Returns a collection of fonts matching the given locale. [Full Topic] +// Creates a named font collection object. [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) +// [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 with the given options. [Full Topic] @@ -169,27 +144,49 @@ func (f_ FontCollection) MatchingDescriptorsWithOptions(options map[FontCollecti return rv } -// A list of query font descriptors whose matching results are excluded from the list of matching 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/1497456-exclusiondescriptors?language=objc -func (f_ FontCollection) ExclusionDescriptors() []FontDescriptor { - rv := objc.Call[[]FontDescriptor](f_, objc.Sel("exclusionDescriptors")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsfontcollection/1497512-showfontcollection?language=objc +func (fc _FontCollectionClass) ShowFontCollectionWithNameVisibilityError(collection IFontCollection, name FontCollectionName, visibility FontCollectionVisibility, error foundation.IError) bool { + rv := objc.Call[bool](fc, objc.Sel("showFontCollection:withName:visibility:error:"), objc.Ptr(collection), name, visibility, objc.Ptr(error)) return rv } -// The font collection that matches all registered fonts. [Full Topic] +// Make the given font collection visible by giving it a name. [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")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsfontcollection/1497512-showfontcollection?language=objc +func FontCollection_ShowFontCollectionWithNameVisibilityError(collection IFontCollection, name FontCollectionName, visibility FontCollectionVisibility, error foundation.IError) bool { + return FontCollectionClass.ShowFontCollectionWithNameVisibilityError(collection, name, visibility, error) +} + +// 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:"), objc.Ptr(locale)) return rv } -// The font collection that matches all registered fonts. [Full Topic] +// Returns a collection of fonts matching the given locale. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsfontcollection/1497473-fontcollectionwithallavailablede?language=objc -func FontCollection_FontCollectionWithAllAvailableDescriptors() FontCollection { - return FontCollectionClass.FontCollectionWithAllAvailableDescriptors() +// [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] +// +// [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) + return rv +} + +// Creates a font collection with the specified name and font visibility. [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) } // Returns all named collections visible to this process. [Full Topic] @@ -207,6 +204,14 @@ 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 @@ -215,6 +220,21 @@ 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 e2b1cd06..fb8f9a43 100644 --- a/macos/appkit/font_descriptor.gen.go +++ b/macos/appkit/font_descriptor.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package appkit @@ -19,20 +19,20 @@ type _FontDescriptorClass struct { // An interface definition for the [FontDescriptor] class. type IFontDescriptor interface { objc.IObject - ObjectForKey(attribute FontDescriptorAttributeName) objc.Object - 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 + 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 + FontDescriptorWithSymbolicTraits(symbolicTraits FontDescriptorSymbolicTraits) FontDescriptor + MatchingFontDescriptorsWithMandatoryKeys(mandatoryKeys foundation.ISet) []FontDescriptor + SymbolicTraits() FontDescriptorSymbolicTraits FontAttributes() map[FontDescriptorAttributeName]objc.Object - RequiresFontAssetRequest() bool - PointSize() float64 Matrix() foundation.AffineTransform - SymbolicTraits() FontDescriptorSymbolicTraits + PointSize() float64 + RequiresFontAssetRequest() bool PostscriptName() string } @@ -82,10 +82,6 @@ func (fc _FontDescriptorClass) Alloc() FontDescriptor { return rv } -func FontDescriptor_Alloc() FontDescriptor { - return FontDescriptorClass.Alloc() -} - func (fc _FontDescriptorClass) New() FontDescriptor { rv := objc.Call[FontDescriptor](fc, objc.Sel("new")) rv.Autorelease() @@ -101,27 +97,28 @@ func (f_ FontDescriptor) Init() FontDescriptor { return rv } -// Returns the font attribute specified by the given key. [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/1469837-objectforkey?language=objc -func (f_ FontDescriptor) ObjectForKey(attribute FontDescriptorAttributeName) objc.Object { - rv := objc.Call[objc.Object](f_, objc.Sel("objectForKey:"), attribute) +// [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 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 (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/1469866-fontdescriptorwithfamily?language=objc +func (f_ FontDescriptor) FontDescriptorWithFamily(newFamily string) FontDescriptor { + rv := objc.Call[FontDescriptor](f_, objc.Sel("fontDescriptorWithFamily:"), newFamily) 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 point size. [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/1469835-fontdescriptorwithsize?language=objc +func (f_ FontDescriptor) FontDescriptorWithSize(newPointSize float64) FontDescriptor { + rv := objc.Call[FontDescriptor](f_, objc.Sel("fontDescriptorWithSize:"), newPointSize) + return rv } // Returns a normalized font descriptor whose specified attributes match those of the receiver. [Full Topic] @@ -132,34 +129,50 @@ func (f_ FontDescriptor) MatchingFontDescriptorWithMandatoryKeys(mandatoryKeys f return rv } -// Returns a font descriptor with a dictionary of attributes. [Full Topic] +// Returns the font attribute specified by the given key. [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/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 font descriptor with a dictionary of attributes. [Full Topic] +// 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/1469856-fontdescriptorwithfontattributes?language=objc -func FontDescriptor_FontDescriptorWithFontAttributes(attributes map[FontDescriptorAttributeName]objc.IObject) FontDescriptor { - return FontDescriptorClass.FontDescriptorWithFontAttributes(attributes) +// [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 symbolic traits taking precedence over the existing ones. [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/1469843-fontdescriptorwithsymbolictraits?language=objc -func (f_ FontDescriptor) FontDescriptorWithSymbolicTraits(symbolicTraits FontDescriptorSymbolicTraits) FontDescriptor { - rv := objc.Call[FontDescriptor](f_, objc.Sel("fontDescriptorWithSymbolicTraits:"), 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:"), objc.Ptr(matrix)) 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] +// Returns a font descriptor with the name and matrix attributes set to the given values. [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) +// [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, objc.Ptr(matrix)) + return rv +} + +// Returns a font descriptor with the name and matrix attributes set to the given values. [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) +} + +// Returns a new font descriptor based on the current object, but with the specified symbolic traits taking precedence over the existing ones. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsfontdescriptor/1469843-fontdescriptorwithsymbolictraits?language=objc +func (f_ FontDescriptor) FontDescriptorWithSymbolicTraits(symbolicTraits FontDescriptorSymbolicTraits) FontDescriptor { + rv := objc.Call[FontDescriptor](f_, objc.Sel("fontDescriptorWithSymbolicTraits:"), symbolicTraits) return rv } @@ -178,30 +191,36 @@ func FontDescriptor_PreferredFontDescriptorForTextStyleOptions(style FontTextSty return FontDescriptorClass.PreferredFontDescriptorForTextStyleOptions(style, options) } -// Returns a new font descriptor based on the current object, but with the specified face. [Full Topic] +// Returns a font descriptor with a dictionary of attributes. [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/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 new font descriptor based on the current object, but with the specified point size. [Full Topic] +// Returns a font descriptor with a dictionary of attributes. [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/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 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 font descriptor with the name and size attributes set to the given values. [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) +} + // Returns all the fonts available on the system whose specified attributes match those of the receiver. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/appkit/nsfontdescriptor/1469985-matchingfontdescriptorswithmanda?language=objc @@ -210,11 +229,11 @@ func (f_ FontDescriptor) MatchingFontDescriptorsWithMandatoryKeys(mandatoryKeys return rv } -// Returns a new font descriptor based on the current object, but with the specified font matrix. [Full Topic] +// A bit mask that describes the traits of the receiver. [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:"), objc.Ptr(matrix)) +// [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 } @@ -226,11 +245,11 @@ func (f_ FontDescriptor) FontAttributes() map[FontDescriptorAttributeName]objc.O 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 } @@ -242,19 +261,11 @@ func (f_ FontDescriptor) PointSize() float64 { return rv } -// The current transform matrix of the receiver. [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")) - return rv -} - -// A bit mask that describes the traits of the receiver. [Full Topic] +// [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/2890793-requiresfontassetrequest?language=objc +func (f_ FontDescriptor) RequiresFontAssetRequest() bool { + rv := objc.Call[bool](f_, objc.Sel("requiresFontAssetRequest")) return rv } diff --git a/macos/appkit/font_manager.gen.go b/macos/appkit/font_manager.gen.go index 509249b3..e69c939d 100644 --- a/macos/appkit/font_manager.gen.go +++ b/macos/appkit/font_manager.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package appkit @@ -18,40 +18,45 @@ type _FontManagerClass struct { // An interface definition for the [FontManager] class. type IFontManager interface { objc.IObject - SendAction() bool - ConvertFontTraits(traits FontTraitMask) FontTraitMask - AvailableFontNamesWithTraits(someTraits FontTraitMask) []string - LocalizedNameForFamilyFace(family string, faceKey string) string + 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 + LocalizedNameForFamilyFace(family string, faceKey string) string + OrderFrontFontPanel(sender objc.IObject) WeightOfFont(fontObj IFont) int - SetFontMenu(newMenu IMenu) + 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) TraitsOfFont(fontObj IFont) FontTraitMask RemoveFontTrait(sender objc.IObject) - 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) + SetFontMenu(newMenu IMenu) 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 - FontNamedHasTraits(fName string, someTraits FontTraitMask) bool + ConvertFontToHaveTrait(fontObj IFont, trait FontTraitMask) Font + AvailableFontNamesWithTraits(someTraits FontTraitMask) []string 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] @@ -72,10 +77,6 @@ func (fc _FontManagerClass) Alloc() FontManager { return rv } -func FontManager_Alloc() FontManager { - return FontManagerClass.Alloc() -} - func (fc _FontManagerClass) New() FontManager { rv := objc.Call[FontManager](fc, objc.Sel("new")) rv.Autorelease() @@ -91,74 +92,74 @@ func (f_ FontManager) Init() FontManager { return rv } -// A Boolean value that indicates whether a responder handled the font manager’s action message. [Full Topic] +// Attempts to load a font with the specified characteristics. [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")) +// [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 } -// Converts font traits to a new traits mask value. [Full Topic] +// 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] // -// [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/1462309-convertfont?language=objc +func (f_ FontManager) ConvertFontToFace(fontObj IFont, typeface string) Font { + rv := objc.Call[Font](f_, objc.Sel("convertFont:toFace:"), objc.Ptr(fontObj), typeface) 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] +// 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/1462329-availablefontnameswithtraits?language=objc -func (f_ FontManager) AvailableFontNamesWithTraits(someTraits FontTraitMask) []string { - rv := objc.Call[[]string](f_, objc.Sel("availableFontNamesWithTraits:"), someTraits) +// [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:"), objc.Ptr(fontObj), size) return rv } -// Returns a localized string with the name of the specified font family and face, if one exists. [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/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 +// [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:"), objc.Ptr(fontObj), flag) } -// Converts attributes in response to an object initiating an attribute change, typically the Font panel or Font menu. [Full Topic] +// Opens the Font Styles panel. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsfontmanager/1462295-convertattributes?language=objc -func (f_ FontManager) ConvertAttributes(attributes map[string]objc.IObject) map[string]objc.Object { - rv := objc.Call[map[string]objc.Object](f_, objc.Sel("convertAttributes:"), attributes) - return rv +// [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) } -// Returns an approximation of the specified font's weight. [Full Topic] +// Converts the given font according to the object that initiated a font change, typically the Font panel or Font menu. [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:"), objc.Ptr(fontObj)) +// [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:"), objc.Ptr(fontObj)) return rv } -// Records the given menu as the application’s Font menu. [Full Topic] +// Converts attributes in response to an object initiating an attribute change, typically the Font panel or 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:"), objc.Ptr(newMenu)) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsfontmanager/1462295-convertattributes?language=objc +func (f_ FontManager) ConvertAttributes(attributes map[string]objc.IObject) map[string]objc.Object { + rv := objc.Call[map[string]objc.Object](f_, objc.Sel("convertAttributes:"), attributes) + return rv } -// Returns the traits of the given font. [Full Topic] +// Indicates whether the given font has all the specified traits. [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:"), objc.Ptr(fontObj)) +// [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 } -// Removes a trait from the font. [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/1462276-removefonttrait?language=objc -func (f_ FontManager) RemoveFontTrait(sender objc.IObject) { - objc.Call[objc.Void](f_, objc.Sel("removeFontTrait:"), sender) +// [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 } // Opens the Font panel, creating it if necessary, and displays that panel in front of the app's windows. [Full Topic] @@ -168,33 +169,20 @@ func (f_ FontManager) OrderFrontFontPanel(sender objc.IObject) { objc.Call[objc.Void](f_, objc.Sel("orderFrontFontPanel:"), sender) } -// 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) -} - -// 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 object whose weight is greater or lesser than that of the given font. [Full Topic] +// Returns an approximation of the specified font's weight. [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, objc.Ptr(fontObj)) +// [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:"), objc.Ptr(fontObj)) return rv } -// Opens the Font Styles panel. [Full Topic] +// 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] // -// [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) +// [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:"), objc.Ptr(fontObj), family) + return rv } // Informs the Font panel that the specified font attributes changed for the selected text. [Full Topic] @@ -204,11 +192,11 @@ func (f_ FontManager) SetSelectedAttributesIsMultiple(attributes map[string]objc objc.Call[objc.Void](f_, objc.Sel("setSelectedAttributes:isMultiple:"), attributes, flag) } -// Returns the menu that’s connected to the font conversion system, creating it if necessary. [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/1462337-fontmenu?language=objc -func (f_ FontManager) FontMenu(create bool) Menu { - rv := objc.Call[Menu](f_, objc.Sel("fontMenu:"), create) +// [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, objc.Ptr(fontObj)) return rv } @@ -226,27 +214,49 @@ func FontManager_SetFontPanelFactory(factoryId objc.IClass) { FontManagerClass.SetFontPanelFactory(factoryId) } -// 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] +// Converts font traits to a new traits mask value. [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:"), objc.Ptr(fontObj), size) +// [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 } -// Attempts to load a font with the specified characteristics. [Full Topic] +// Adds a trait to the font. [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/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] +// +// [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:"), objc.Ptr(fontObj)) return rv } -// Records the specified font as the currently selected font and updates the Font panel. [Full Topic] +// Removes a trait from the font. [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:"), objc.Ptr(fontObj), flag) +// [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:"), objc.Ptr(newMenu)) +} + +// 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/1462337-fontmenu?language=objc +func (f_ FontManager) FontMenu(create bool) Menu { + rv := objc.Call[Menu](f_, objc.Sel("fontMenu:"), create) + return rv } // Returns the application’s shared Font panel object, creating it if necessary. [Full Topic] @@ -257,6 +267,22 @@ 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:"), objc.Ptr(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 @@ -271,14 +297,6 @@ func FontManager_SetFontManagerFactory(factoryId objc.IClass) { FontManagerClass.SetFontManagerFactory(factoryId) } -// Indicates whether the given font has all the specified traits. [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) - return rv -} - // 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 @@ -286,6 +304,21 @@ 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] +// +// [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:"), objc.Ptr(fontObj), trait) + return rv +} + +// 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 an array with one entry for each available member of a font family. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/appkit/nsfontmanager/1462316-availablemembersoffontfamily?language=objc @@ -294,6 +327,14 @@ 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 @@ -302,34 +343,35 @@ func (f_ FontManager) CurrentFontAction() FontAction { return rv } -// The object that receives action messages related to the font manager. [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/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/1462372-availablefonts?language=objc +func (f_ FontManager) AvailableFonts() []string { + rv := objc.Call[[]string](f_, objc.Sel("availableFonts")) return rv } -// The object that receives action messages related to the font manager. [Full Topic] +// The currently selected font object. [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/1462268-selectedfont?language=objc +func (f_ FontManager) SelectedFont() Font { + rv := objc.Call[Font](f_, objc.Sel("selectedFont")) + 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")) +// [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) SetAction(value objc.Selector) { - objc.Call[objc.Void](f_, objc.Sel("setAction:"), value) +// [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) } // A Boolean value that indicates whether the currently selected font has multiple fonts. [Full Topic] @@ -340,19 +382,19 @@ func (f_ FontManager) IsMultiple() bool { return rv } -// Returns the shared instance of the font manager for the application, creating it if necessary. [Full Topic] +// The object that receives action messages related to the font manager. [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/1462380-target?language=objc +func (f_ FontManager) Target() objc.Object { + rv := objc.Call[objc.Object](f_, objc.Sel("target")) return rv } -// Returns the shared instance of the font manager for the application, creating it if necessary. [Full Topic] +// The object that receives action messages related to the font manager. [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/1462380-target?language=objc +func (f_ FontManager) SetTarget(value objc.IObject) { + objc.Call[objc.Void](f_, objc.Sel("setTarget:"), value) } // The names of the font families available in the system. [Full Topic] @@ -363,33 +405,32 @@ func (f_ FontManager) AvailableFontFamilies() []string { return rv } -// The currently selected font object. [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/1462268-selectedfont?language=objc -func (f_ FontManager) SelectedFont() Font { - rv := objc.Call[Font](f_, objc.Sel("selectedFont")) +// [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 } -// A Boolean value that indicates whether the font conversion system’s Font panel and Font menu items are enabled. [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/1462341-enabled?language=objc -func (f_ FontManager) IsEnabled() bool { - rv := objc.Call[bool](f_, objc.Sel("isEnabled")) - return rv +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsfontmanager/1462360-sharedfontmanager?language=objc +func FontManager_SharedFontManager() FontManager { + return FontManagerClass.SharedFontManager() } -// 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) Action() objc.Selector { + rv := objc.Call[objc.Selector](f_, objc.Sel("action")) + return rv } -// The names of the fonts available in the system (not the NSFont objects themselves). [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/1462372-availablefonts?language=objc -func (f_ FontManager) AvailableFonts() []string { - rv := objc.Call[[]string](f_, objc.Sel("availableFonts")) - return rv +// [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) } diff --git a/macos/appkit/font_panel.gen.go b/macos/appkit/font_panel.gen.go index 2116bc6a..a34b36ee 100644 --- a/macos/appkit/font_panel.gen.go +++ b/macos/appkit/font_panel.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package appkit @@ -19,13 +19,13 @@ type _FontPanelClass struct { // An interface definition for the [FontPanel] class. type IFontPanel interface { IPanel - PanelConvertFont(fontObj IFont) Font - SetPanelFontIsMultiple(fontObj IFont, flag bool) ReloadDefaultFontFamilies() - AccessoryView() View - SetAccessoryView(value IView) + SetPanelFontIsMultiple(fontObj IFont, flag bool) + PanelConvertFont(fontObj IFont) Font IsEnabled() bool SetEnabled(value bool) + AccessoryView() View + SetAccessoryView(value IView) } // 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] @@ -46,10 +46,6 @@ func (fc _FontPanelClass) Alloc() FontPanel { return rv } -func FontPanel_Alloc() FontPanel { - return FontPanelClass.Alloc() -} - func (fc _FontPanelClass) New() FontPanel { rv := objc.Call[FontPanel](fc, objc.Sel("new")) rv.Autorelease() @@ -91,19 +87,18 @@ func NewFontPanelWithContentRectStyleMaskBackingDeferScreen(contentRect foundati return instance } -// 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:"), objc.Ptr(fontObj)) +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) return rv } -// Sets the selected font in the receiver to the specified font. [Full Topic] +// Initializes the window with the specified values. [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:"), objc.Ptr(fontObj), flag) +// [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 } // Triggers a reload to the default state, so that the delegate is called. [Full Topic] @@ -113,36 +108,21 @@ func (f_ FontPanel) ReloadDefaultFontFamilies() { objc.Call[objc.Void](f_, objc.Sel("reloadDefaultFontFamilies")) } -// 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] +// Sets the selected font in the receiver to the specified font. [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:"), objc.Ptr(value)) +// [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:"), objc.Ptr(fontObj), flag) } -// Returns the single NSFontPanel instance for the application, creating it if necessary. [Full Topic] +// 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/1527046-sharedfontpanel?language=objc -func (fc _FontPanelClass) SharedFontPanel() FontPanel { - rv := objc.Call[FontPanel](fc, objc.Sel("sharedFontPanel")) +// [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:"), objc.Ptr(fontObj)) 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 @@ -172,3 +152,33 @@ 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:"), objc.Ptr(value)) +} diff --git a/macos/appkit/form.gen.go b/macos/appkit/form.gen.go index 58f61d82..fd0a30f8 100644 --- a/macos/appkit/form.gen.go +++ b/macos/appkit/form.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package appkit @@ -39,10 +39,6 @@ func (fc _FormClass) Alloc() Form { return rv } -func Form_Alloc() Form { - return FormClass.Alloc() -} - func (fc _FormClass) New() Form { rv := objc.Call[Form](fc, objc.Sel("new")) rv.Autorelease() @@ -58,6 +54,20 @@ 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, objc.Ptr(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 @@ -71,3 +81,17 @@ 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, objc.Ptr(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 8896ea2e..4b6ac7b3 100644 --- a/macos/appkit/form_cell.gen.go +++ b/macos/appkit/form_cell.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package appkit @@ -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) - PlaceholderString() string - SetPlaceholderString(value string) 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) } // 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] @@ -69,10 +69,6 @@ func (fc _FormCellClass) Alloc() FormCell { return rv } -func FormCell_Alloc() FormCell { - return FormCellClass.Alloc() -} - func (fc _FormCellClass) New() FormCell { rv := objc.Call[FormCell](fc, objc.Sel("new")) rv.Autorelease() @@ -102,6 +98,14 @@ 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 @@ -117,36 +121,6 @@ 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:"), objc.Ptr(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 @@ -162,21 +136,6 @@ func (f_ FormCell) SetAttributedTitle(value foundation.IAttributedString) { objc.Call[objc.Void](f_, objc.Sel("setAttributedTitle:"), objc.Ptr(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 @@ -192,6 +151,21 @@ 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:"), objc.Ptr(value)) +} + // The cell’s plain text placeholder string. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/appkit/nsformcell/1534043-placeholderstring?language=objc @@ -207,17 +181,39 @@ func (f_ FormCell) SetPlaceholderString(value string) { objc.Call[objc.Void](f_, objc.Sel("setPlaceholderString:"), value) } -// The font used to draw cell’s title. [Full Topic] +// The cell’s attributed placeholder string. [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")) +// [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 font used to draw cell’s title. [Full Topic] +// The cell’s attributed placeholder string. [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:"), objc.Ptr(value)) +// [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:"), objc.Ptr(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 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) } diff --git a/macos/appkit/gesture_recognizer.gen.go b/macos/appkit/gesture_recognizer.gen.go index 20565093..4fa0661f 100644 --- a/macos/appkit/gesture_recognizer.gen.go +++ b/macos/appkit/gesture_recognizer.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package appkit @@ -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) - MagnifyWithEvent(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) LocationInView(view IView) foundation.Point - MouseDown(event IEvent) - KeyUp(event IEvent) + ShouldBeRequiredToFailByGestureRecognizer(otherGestureRecognizer IGestureRecognizer) bool + RightMouseDragged(event IEvent) + ShouldRequireFailureOfGestureRecognizer(otherGestureRecognizer IGestureRecognizer) bool + FlagsChanged(event IEvent) RightMouseDown(event IEvent) - Reset() - RightMouseUp(event IEvent) - DelaysOtherMouseButtonEvents() bool - SetDelaysOtherMouseButtonEvents(value bool) - DelaysSecondaryMouseButtonEvents() bool - SetDelaysSecondaryMouseButtonEvents(value bool) - Target() objc.Object - SetTarget(value objc.IObject) - State() GestureRecognizerState - Action() objc.Selector - SetAction(value objc.Selector) - PressureConfiguration() PressureConfiguration - SetPressureConfiguration(value IPressureConfiguration) - View() View DelaysMagnificationEvents() bool SetDelaysMagnificationEvents(value bool) - Delegate() GestureRecognizerDelegateWrapper - SetDelegate(value PGestureRecognizerDelegate) - SetDelegateObject(valueObject objc.IObject) - DelaysPrimaryMouseButtonEvents() bool - SetDelaysPrimaryMouseButtonEvents(value bool) + DelaysSecondaryMouseButtonEvents() bool + SetDelaysSecondaryMouseButtonEvents(value bool) DelaysKeyEvents() bool SetDelaysKeyEvents(value bool) + PressureConfiguration() PressureConfiguration + SetPressureConfiguration(value IPressureConfiguration) + DelaysOtherMouseButtonEvents() bool + SetDelaysOtherMouseButtonEvents(value bool) DelaysRotationEvents() bool SetDelaysRotationEvents(value bool) - AllowedTouchTypes() TouchTypeMask - SetAllowedTouchTypes(value TouchTypeMask) + State() GestureRecognizerState IsEnabled() bool SetEnabled(value bool) + Target() objc.Object + SetTarget(value objc.IObject) + AllowedTouchTypes() TouchTypeMask + SetAllowedTouchTypes(value TouchTypeMask) + View() View + DelaysPrimaryMouseButtonEvents() bool + SetDelaysPrimaryMouseButtonEvents(value bool) + Delegate() GestureRecognizerDelegateObject + SetDelegate(value PGestureRecognizerDelegate) + SetDelegateObject(valueObject objc.IObject) + Action() objc.Selector + SetAction(value objc.Selector) } // An object that monitors events and calls its action method when a predefined sequence of events occur. [Full Topic] @@ -106,10 +106,6 @@ func (gc _GestureRecognizerClass) Alloc() GestureRecognizer { return rv } -func GestureRecognizer_Alloc() GestureRecognizer { - return GestureRecognizerClass.Alloc() -} - func (gc _GestureRecognizerClass) New() GestureRecognizer { rv := objc.Call[GestureRecognizer](gc, objc.Sel("new")) rv.Autorelease() @@ -132,48 +128,39 @@ func (g_ GestureRecognizer) TouchesMovedWithEvent(event IEvent) { objc.Call[objc.Void](g_, objc.Sel("touchesMovedWithEvent:"), objc.Ptr(event)) } -// Informs the gesture recognizer that the user released the left mouse button. [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:"), objc.Ptr(event)) -} - -// Overridden to indicate that the specified gesture recognizer can prevent the current object from recognizing a gesture. [Full Topic] +// Informs the gesture recognizer that the user has pressed a key. [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:"), objc.Ptr(preventingGestureRecognizer)) - return rv +// [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:"), objc.Ptr(event)) } -// Informs the current object that a pressure change occurred on a system that supports pressure sensitivity. [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/1527009-pressurechangewithevent?language=objc -func (g_ GestureRecognizer) PressureChangeWithEvent(event IEvent) { - objc.Call[objc.Void](g_, objc.Sel("pressureChangeWithEvent:"), objc.Ptr(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")) } -// Overridden to indicate that the current object must fail before the specified gesture recognizer begins recognizing its gesture. [Full Topic] +// Informs the user that a tablet-point event occurred. [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:"), objc.Ptr(otherGestureRecognizer)) - return rv +// [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:"), objc.Ptr(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 released a key. [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:"), objc.Ptr(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:"), objc.Ptr(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 pressed the left mouse button. [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:"), objc.Ptr(event)) +// [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:"), objc.Ptr(event)) } // Overridden to indicate that the current object can prevent the specified gesture recognizer from recognizing its gesture. [Full Topic] @@ -184,33 +171,40 @@ func (g_ GestureRecognizer) CanPreventGestureRecognizer(preventedGestureRecogniz return rv } -// Overridden to indicate that the specified gesture recognizer must fail before the current object begins recognizing its gesture. [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/1532939-shouldrequirefailureofgesturerec?language=objc -func (g_ GestureRecognizer) ShouldRequireFailureOfGestureRecognizer(otherGestureRecognizer IGestureRecognizer) bool { - rv := objc.Call[bool](g_, objc.Sel("shouldRequireFailureOfGestureRecognizer:"), objc.Ptr(otherGestureRecognizer)) +// [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:"), objc.Ptr(event)) +} + +// 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/1534587-canbepreventedbygesturerecognize?language=objc +func (g_ GestureRecognizer) CanBePreventedByGestureRecognizer(preventingGestureRecognizer IGestureRecognizer) bool { + rv := objc.Call[bool](g_, objc.Sel("canBePreventedByGestureRecognizer:"), objc.Ptr(preventingGestureRecognizer)) return rv } -// Informs the current object that the user pressed or released a modifier key (Shift, Control, and so on). [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/1532604-flagschanged?language=objc -func (g_ GestureRecognizer) FlagsChanged(event IEvent) { - objc.Call[objc.Void](g_, objc.Sel("flagsChanged:"), objc.Ptr(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:"), objc.Ptr(event)) } -// Called when one or more fingers first make contact with an NSTouchBar instance on the Touch Bar. [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/2544794-touchesbeganwithevent?language=objc -func (g_ GestureRecognizer) TouchesBeganWithEvent(event IEvent) { - objc.Call[objc.Void](g_, objc.Sel("touchesBeganWithEvent:"), objc.Ptr(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:"), objc.Ptr(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:"), objc.Ptr(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:"), objc.Ptr(event)) } // Informs the gesture recognizer that the user is performing a rotation gesture. [Full Topic] @@ -220,53 +214,53 @@ func (g_ GestureRecognizer) RotateWithEvent(event IEvent) { objc.Call[objc.Void](g_, objc.Sel("rotateWithEvent:"), objc.Ptr(event)) } -// Informs the gesture recognizer that the user has pressed a key. [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/1532158-keydown?language=objc -func (g_ GestureRecognizer) KeyDown(event IEvent) { - objc.Call[objc.Void](g_, objc.Sel("keyDown:"), objc.Ptr(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:"), objc.Ptr(event)) } -// Informs the user that a tablet-point event occurred. [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/1529889-tabletpoint?language=objc -func (g_ GestureRecognizer) TabletPoint(event IEvent) { - objc.Call[objc.Void](g_, objc.Sel("tabletPoint:"), objc.Ptr(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:"), objc.Ptr(event)) } -// Called when one or more fingers are removed from contact with an NSTouchBar instance on the Touch Bar. [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/2544740-touchesendedwithevent?language=objc -func (g_ GestureRecognizer) TouchesEndedWithEvent(event IEvent) { - objc.Call[objc.Void](g_, objc.Sel("touchesEndedWithEvent:"), objc.Ptr(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:"), objc.Ptr(event)) } -// Informs the gesture recognizer that the user pressed a mouse button other than the left or right one. [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/1534433-othermousedown?language=objc -func (g_ GestureRecognizer) OtherMouseDown(event IEvent) { - objc.Call[objc.Void](g_, objc.Sel("otherMouseDown:"), objc.Ptr(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:"), objc.Ptr(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:"), objc.Ptr(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:"), objc.Ptr(event)) } -// Informs the gesture recognizer that the user is performing a pinch gesture. [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/1528828-magnifywithevent?language=objc -func (g_ GestureRecognizer) MagnifyWithEvent(event IEvent) { - objc.Call[objc.Void](g_, objc.Sel("magnifyWithEvent:"), objc.Ptr(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:"), objc.Ptr(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 released the left mouse button. [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:"), objc.Ptr(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:"), objc.Ptr(event)) } // Returns the point computed as the location of the gesture. [Full Topic] @@ -277,54 +271,56 @@ func (g_ GestureRecognizer) LocationInView(view IView) foundation.Point { return rv } -// Informs the gesture recognizer that the user pressed the left mouse button. [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/1524901-mousedown?language=objc -func (g_ GestureRecognizer) MouseDown(event IEvent) { - objc.Call[objc.Void](g_, objc.Sel("mouseDown:"), objc.Ptr(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:"), objc.Ptr(otherGestureRecognizer)) + return rv } -// Informs the gesture recognizer that the user released a key. [Full Topic] +// 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/1526578-keyup?language=objc -func (g_ GestureRecognizer) KeyUp(event IEvent) { - objc.Call[objc.Void](g_, objc.Sel("keyUp:"), objc.Ptr(event)) +// [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:"), objc.Ptr(event)) } -// Informs the gesture recognizer that the user pressed the right mouse button. [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/1527421-rightmousedown?language=objc -func (g_ GestureRecognizer) RightMouseDown(event IEvent) { - objc.Call[objc.Void](g_, objc.Sel("rightMouseDown:"), objc.Ptr(event)) +// [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:"), objc.Ptr(otherGestureRecognizer)) + return rv } -// Overridden to reset the internal state of the gesture recognizer when an attempt completes. [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/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/1532604-flagschanged?language=objc +func (g_ GestureRecognizer) FlagsChanged(event IEvent) { + objc.Call[objc.Void](g_, objc.Sel("flagsChanged:"), objc.Ptr(event)) } -// Informs the gesture recognizer that the user released the right mouse button. [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/1525729-rightmouseup?language=objc -func (g_ GestureRecognizer) RightMouseUp(event IEvent) { - objc.Call[objc.Void](g_, objc.Sel("rightMouseUp:"), objc.Ptr(event)) +// [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:"), objc.Ptr(event)) } -// A Boolean value that indicates whether other mouse button events are delivered only after gesture recognition fails. [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/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/1529974-delaysmagnificationevents?language=objc +func (g_ GestureRecognizer) DelaysMagnificationEvents() bool { + rv := objc.Call[bool](g_, objc.Sel("delaysMagnificationEvents")) return rv } -// A Boolean value that indicates whether other mouse button events are delivered only after gesture recognition fails. [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/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/1529974-delaysmagnificationevents?language=objc +func (g_ GestureRecognizer) SetDelaysMagnificationEvents(value bool) { + objc.Call[objc.Void](g_, objc.Sel("setDelaysMagnificationEvents:"), value) } // A Boolean value that indicates whether secondary mouse button events are delivered only after gesture recognition fails. [Full Topic] @@ -342,42 +338,19 @@ func (g_ GestureRecognizer) SetDelaysSecondaryMouseButtonEvents(value bool) { objc.Call[objc.Void](g_, objc.Sel("setDelaysSecondaryMouseButtonEvents:"), value) } -// The object that implements the action method. [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")) - return rv -} - -// The object that implements the action method. [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) -} - -// The current state of the gesture recognizer. [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 -} - -// The action method to call when the gesture is recognized. [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/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/1529788-delayskeyevents?language=objc +func (g_ GestureRecognizer) DelaysKeyEvents() bool { + rv := objc.Call[bool](g_, objc.Sel("delaysKeyEvents")) return rv } -// The action method to call when the gesture is recognized. [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/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/1529788-delayskeyevents?language=objc +func (g_ GestureRecognizer) SetDelaysKeyEvents(value bool) { + objc.Call[objc.Void](g_, objc.Sel("setDelaysKeyEvents:"), value) } // Configures the behavior and progression of the Force Touch trackpad when responding to recognized pressure gestures. [Full Topic] @@ -395,124 +368,147 @@ func (g_ GestureRecognizer) SetPressureConfiguration(value IPressureConfiguratio objc.Call[objc.Void](g_, objc.Sel("setPressureConfiguration:"), objc.Ptr(value)) } -// The view to which the gesture recognizer is attached. [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/1527192-view?language=objc -func (g_ GestureRecognizer) View() View { - rv := objc.Call[View](g_, objc.Sel("view")) +// [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) 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) SetDelaysOtherMouseButtonEvents(value bool) { + objc.Call[objc.Void](g_, objc.Sel("setDelaysOtherMouseButtonEvents:"), value) +} + +// 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) DelaysRotationEvents() bool { + rv := objc.Call[bool](g_, objc.Sel("delaysRotationEvents")) 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 rotation 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/1535384-delaysrotationevents?language=objc +func (g_ GestureRecognizer) SetDelaysRotationEvents(value bool) { + objc.Call[objc.Void](g_, objc.Sel("setDelaysRotationEvents:"), value) } -// The delegate of the gesture recognizer. [Full Topic] +// The current state of the gesture recognizer. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsgesturerecognizer/1529879-delegate?language=objc -func (g_ GestureRecognizer) Delegate() GestureRecognizerDelegateWrapper { - rv := objc.Call[GestureRecognizerDelegateWrapper](g_, objc.Sel("delegate")) +// [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 } -// The delegate of the gesture recognizer. [Full Topic] +// A Boolean value indicating whether the gesture recognizer is able to handle events. [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/1535263-enabled?language=objc +func (g_ GestureRecognizer) IsEnabled() bool { + rv := objc.Call[bool](g_, objc.Sel("isEnabled")) + return rv } -// The delegate of the gesture recognizer. [Full Topic] +// A Boolean value indicating whether the gesture recognizer is able to handle events. [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:"), objc.Ptr(valueObject)) +// [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) } -// A Boolean value that indicates whether primary mouse button 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/1533619-delaysprimarymousebuttonevents?language=objc -func (g_ GestureRecognizer) DelaysPrimaryMouseButtonEvents() bool { - rv := objc.Call[bool](g_, objc.Sel("delaysPrimaryMouseButtonEvents")) +// [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 primary mouse button 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/1533619-delaysprimarymousebuttonevents?language=objc -func (g_ GestureRecognizer) SetDelaysPrimaryMouseButtonEvents(value bool) { - objc.Call[objc.Void](g_, objc.Sel("setDelaysPrimaryMouseButtonEvents:"), 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) } -// A Boolean value that indicates whether key events are delivered only after gesture recognition fails. [Full Topic] +// [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/2588249-allowedtouchtypes?language=objc +func (g_ GestureRecognizer) AllowedTouchTypes() TouchTypeMask { + rv := objc.Call[TouchTypeMask](g_, objc.Sel("allowedTouchTypes")) return rv } -// A Boolean value that indicates whether key events are delivered only after gesture recognition fails. [Full Topic] +// [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/2588249-allowedtouchtypes?language=objc +func (g_ GestureRecognizer) SetAllowedTouchTypes(value TouchTypeMask) { + objc.Call[objc.Void](g_, objc.Sel("setAllowedTouchTypes:"), value) } -// A Boolean value that indicates whether rotation events are delivered only after gesture recognition fails. [Full Topic] +// The view to which the gesture recognizer is attached. [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/1527192-view?language=objc +func (g_ GestureRecognizer) View() View { + rv := objc.Call[View](g_, objc.Sel("view")) return rv } -// A Boolean value that indicates whether rotation events are delivered only after gesture recognition fails. [Full Topic] +// A Boolean value that indicates whether primary mouse button 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) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsgesturerecognizer/1533619-delaysprimarymousebuttonevents?language=objc +func (g_ GestureRecognizer) DelaysPrimaryMouseButtonEvents() bool { + rv := objc.Call[bool](g_, objc.Sel("delaysPrimaryMouseButtonEvents")) + return rv } -// [Full Topic] +// A Boolean value that indicates whether primary mouse button events are delivered only after gesture recognition fails. [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/1533619-delaysprimarymousebuttonevents?language=objc +func (g_ GestureRecognizer) SetDelaysPrimaryMouseButtonEvents(value bool) { + objc.Call[objc.Void](g_, objc.Sel("setDelaysPrimaryMouseButtonEvents:"), value) +} + +// The delegate of the gesture recognizer. [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")) 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) } -// A Boolean value indicating whether the gesture recognizer is able to handle events. [Full Topic] +// The delegate of the gesture recognizer. [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/1529879-delegate?language=objc +func (g_ GestureRecognizer) SetDelegateObject(valueObject objc.IObject) { + objc.Call[objc.Void](g_, objc.Sel("setDelegate:"), objc.Ptr(valueObject)) +} + +// The action method to call when the gesture is recognized. [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")) return rv } -// A Boolean value indicating whether the gesture recognizer is able to handle events. [Full Topic] +// The action method to call when the gesture is recognized. [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) +// [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) } diff --git a/macos/appkit/gesture_recognizer_delegate.gen.go b/macos/appkit/gesture_recognizer_delegate.gen.go index 586d8d33..2f18f100 100644 --- a/macos/appkit/gesture_recognizer_delegate.gen.go +++ b/macos/appkit/gesture_recognizer_delegate.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package appkit @@ -11,36 +11,56 @@ import ( // [Full Topic]: https://developer.apple.com/documentation/appkit/nsgesturerecognizerdelegate?language=objc type PGestureRecognizerDelegate interface { // optional - GestureRecognizerShouldBegin(gestureRecognizer GestureRecognizer) bool - HasGestureRecognizerShouldBegin() bool + 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 } // A delegate implementation builder for the [PGestureRecognizerDelegate] protocol. type GestureRecognizerDelegate struct { - _GestureRecognizerShouldBegin func(gestureRecognizer GestureRecognizer) bool - _GestureRecognizerShouldReceiveTouch func(gestureRecognizer GestureRecognizer, touch Touch) bool + _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) HasGestureRecognizerShouldBegin() bool { - return di._GestureRecognizerShouldBegin != nil +func (di *GestureRecognizerDelegate) HasGestureRecognizerShouldRequireFailureOfGestureRecognizer() bool { + return di._GestureRecognizerShouldRequireFailureOfGestureRecognizer != nil } -// Asks the delegate if a gesture recognizer should transition out of the Possible (NSGestureRecognizerStatePossible) state. [Full Topic] +// 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/1535463-gesturerecognizershouldbegin?language=objc -func (di *GestureRecognizerDelegate) SetGestureRecognizerShouldBegin(f func(gestureRecognizer GestureRecognizer) bool) { - di._GestureRecognizerShouldBegin = f +// [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 a gesture recognizer should transition out of the Possible (NSGestureRecognizerStatePossible) state. [Full Topic] +// 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/1535463-gesturerecognizershouldbegin?language=objc -func (di *GestureRecognizerDelegate) GestureRecognizerShouldBegin(gestureRecognizer GestureRecognizer) bool { - return di._GestureRecognizerShouldBegin(gestureRecognizer) +// [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 @@ -59,32 +79,151 @@ func (di *GestureRecognizerDelegate) SetGestureRecognizerShouldReceiveTouch(f fu func (di *GestureRecognizerDelegate) GestureRecognizerShouldReceiveTouch(gestureRecognizer GestureRecognizer, touch Touch) bool { return di._GestureRecognizerShouldReceiveTouch(gestureRecognizer, touch) } +func (di *GestureRecognizerDelegate) HasGestureRecognizerShouldRecognizeSimultaneouslyWithGestureRecognizer() bool { + return di._GestureRecognizerShouldRecognizeSimultaneouslyWithGestureRecognizer != nil +} -// A concrete type wrapper for the [PGestureRecognizerDelegate] protocol. -type GestureRecognizerDelegateWrapper struct { - objc.Object +// 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 } -func (g_ GestureRecognizerDelegateWrapper) HasGestureRecognizerShouldBegin() bool { - return g_.RespondsToSelector(objc.Sel("gestureRecognizerShouldBegin:")) +// 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 +} + +// 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 } // Asks the delegate if a gesture recognizer should transition out of the Possible (NSGestureRecognizerStatePossible) state. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/appkit/nsgesturerecognizerdelegate/1535463-gesturerecognizershouldbegin?language=objc -func (g_ GestureRecognizerDelegateWrapper) GestureRecognizerShouldBegin(gestureRecognizer IGestureRecognizer) bool { - rv := objc.Call[bool](g_, objc.Sel("gestureRecognizerShouldBegin:"), objc.Ptr(gestureRecognizer)) +func (di *GestureRecognizerDelegate) SetGestureRecognizerShouldBegin(f func(gestureRecognizer GestureRecognizer) bool) { + di._GestureRecognizerShouldBegin = f +} + +// Asks the delegate if a gesture recognizer should transition out of the Possible (NSGestureRecognizerStatePossible) state. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsgesturerecognizerdelegate/1535463-gesturerecognizershouldbegin?language=objc +func (di *GestureRecognizerDelegate) GestureRecognizerShouldBegin(gestureRecognizer GestureRecognizer) bool { + return di._GestureRecognizerShouldBegin(gestureRecognizer) +} +func (di *GestureRecognizerDelegate) HasGestureRecognizerShouldBeRequiredToFailByGestureRecognizer() bool { + return di._GestureRecognizerShouldBeRequiredToFailByGestureRecognizer != nil +} + +// Asks the delegate if the current gesture recognizer must fail before another gesture recognizer is allowed to recognize its gesture. [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 +} + +// Asks the delegate if the current gesture recognizer must fail before another gesture recognizer is allowed to recognize its gesture. [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) +} + +// ensure impl type implements protocol interface +var _ PGestureRecognizerDelegate = (*GestureRecognizerDelegateObject)(nil) + +// A concrete type for the [PGestureRecognizerDelegate] protocol. +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:"), objc.Ptr(gestureRecognizer), objc.Ptr(otherGestureRecognizer)) return rv } -func (g_ GestureRecognizerDelegateWrapper) HasGestureRecognizerShouldReceiveTouch() bool { +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_ GestureRecognizerDelegateWrapper) GestureRecognizerShouldReceiveTouch(gestureRecognizer IGestureRecognizer, touch ITouch) bool { +func (g_ GestureRecognizerDelegateObject) GestureRecognizerShouldReceiveTouch(gestureRecognizer GestureRecognizer, touch Touch) bool { rv := objc.Call[bool](g_, objc.Sel("gestureRecognizer:shouldReceiveTouch:"), objc.Ptr(gestureRecognizer), objc.Ptr(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:"), objc.Ptr(gestureRecognizer), objc.Ptr(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:"), objc.Ptr(gestureRecognizer), objc.Ptr(event)) + return rv +} + +func (g_ GestureRecognizerDelegateObject) HasGestureRecognizerShouldBegin() bool { + return g_.RespondsToSelector(objc.Sel("gestureRecognizerShouldBegin:")) +} + +// Asks the delegate if a gesture recognizer should transition out of the Possible (NSGestureRecognizerStatePossible) state. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsgesturerecognizerdelegate/1535463-gesturerecognizershouldbegin?language=objc +func (g_ GestureRecognizerDelegateObject) GestureRecognizerShouldBegin(gestureRecognizer GestureRecognizer) bool { + rv := objc.Call[bool](g_, objc.Sel("gestureRecognizerShouldBegin:"), objc.Ptr(gestureRecognizer)) + return rv +} + +func (g_ GestureRecognizerDelegateObject) HasGestureRecognizerShouldBeRequiredToFailByGestureRecognizer() bool { + return g_.RespondsToSelector(objc.Sel("gestureRecognizer:shouldBeRequiredToFailByGestureRecognizer:")) +} + +// Asks the delegate if the current gesture recognizer must fail before another gesture recognizer is allowed to recognize its gesture. [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:"), objc.Ptr(gestureRecognizer), objc.Ptr(otherGestureRecognizer)) + return rv +} diff --git a/macos/appkit/glyph_generator.gen.go b/macos/appkit/glyph_generator.gen.go index 05dc2e17..ec469eb9 100644 --- a/macos/appkit/glyph_generator.gen.go +++ b/macos/appkit/glyph_generator.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package appkit @@ -40,10 +40,6 @@ func (gc _GlyphGeneratorClass) Alloc() GlyphGenerator { return rv } -func GlyphGenerator_Alloc() GlyphGenerator { - return GlyphGeneratorClass.Alloc() -} - func (gc _GlyphGeneratorClass) New() GlyphGenerator { rv := objc.Call[GlyphGenerator](gc, objc.Sel("new")) rv.Autorelease() diff --git a/macos/appkit/glyph_info.gen.go b/macos/appkit/glyph_info.gen.go index 6ceeb4d2..c78e3c4b 100644 --- a/macos/appkit/glyph_info.gen.go +++ b/macos/appkit/glyph_info.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package appkit @@ -41,10 +41,6 @@ func (gc _GlyphInfoClass) Alloc() GlyphInfo { return rv } -func GlyphInfo_Alloc() GlyphInfo { - return GlyphInfoClass.Alloc() -} - func (gc _GlyphInfoClass) New() GlyphInfo { rv := objc.Call[GlyphInfo](gc, objc.Sel("new")) rv.Autorelease() diff --git a/macos/appkit/glyph_storage.gen.go b/macos/appkit/glyph_storage_protocol.gen.go similarity index 71% rename from macos/appkit/glyph_storage.gen.go rename to macos/appkit/glyph_storage_protocol.gen.go index 1e5772ce..26b079f9 100644 --- a/macos/appkit/glyph_storage.gen.go +++ b/macos/appkit/glyph_storage_protocol.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package appkit @@ -12,69 +12,72 @@ import ( // [Full Topic]: https://developer.apple.com/documentation/appkit/nsglyphstorage?language=objc type PGlyphStorage interface { // optional - SetIntAttributeValueForGlyphAtIndex(attributeTag int, val int, glyphIndex uint) - HasSetIntAttributeValueForGlyphAtIndex() bool + AttributedString() foundation.AttributedString + HasAttributedString() bool // optional - AttributedString() foundation.IAttributedString - HasAttributedString() bool + InsertGlyphsLengthForStartingGlyphAtIndexCharacterIndex(glyphs *Glyph, length uint, glyphIndex uint, charIndex uint) + HasInsertGlyphsLengthForStartingGlyphAtIndexCharacterIndex() bool // optional LayoutOptions() uint HasLayoutOptions() bool // optional - InsertGlyphsLengthForStartingGlyphAtIndexCharacterIndex(glyphs *Glyph, length uint, glyphIndex uint, charIndex uint) - HasInsertGlyphsLengthForStartingGlyphAtIndexCharacterIndex() bool -} - -// A concrete type wrapper for the [PGlyphStorage] protocol. -type GlyphStorageWrapper struct { - objc.Object + SetIntAttributeValueForGlyphAtIndex(attributeTag int, val int, glyphIndex uint) + HasSetIntAttributeValueForGlyphAtIndex() bool } -func (g_ GlyphStorageWrapper) HasSetIntAttributeValueForGlyphAtIndex() bool { - return g_.RespondsToSelector(objc.Sel("setIntAttribute:value:forGlyphAtIndex:")) -} +// ensure impl type implements protocol interface +var _ PGlyphStorage = (*GlyphStorageObject)(nil) -// 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_ GlyphStorageWrapper) SetIntAttributeValueForGlyphAtIndex(attributeTag int, val int, glyphIndex uint) { - objc.Call[objc.Void](g_, objc.Sel("setIntAttribute:value:forGlyphAtIndex:"), attributeTag, val, glyphIndex) +// A concrete type for the [PGlyphStorage] protocol. +type GlyphStorageObject struct { + objc.Object } -func (g_ GlyphStorageWrapper) HasAttributedString() bool { +func (g_ GlyphStorageObject) HasAttributedString() bool { return g_.RespondsToSelector(objc.Sel("attributedString")) } // Returns the text storage object from which the NSGlyphGenerator object procures characters for glyph generation. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/appkit/nsglyphstorage/1425147-attributedstring?language=objc -func (g_ GlyphStorageWrapper) AttributedString() foundation.AttributedString { +func (g_ GlyphStorageObject) AttributedString() foundation.AttributedString { rv := objc.Call[foundation.AttributedString](g_, objc.Sel("attributedString")) return rv } -func (g_ GlyphStorageWrapper) HasLayoutOptions() bool { +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")) } // Returns the current layout options. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/appkit/nsglyphstorage/1425149-layoutoptions?language=objc -func (g_ GlyphStorageWrapper) LayoutOptions() uint { +func (g_ GlyphStorageObject) LayoutOptions() uint { rv := objc.Call[uint](g_, objc.Sel("layoutOptions")) return rv } -func (g_ GlyphStorageWrapper) HasInsertGlyphsLengthForStartingGlyphAtIndexCharacterIndex() bool { - return g_.RespondsToSelector(objc.Sel("insertGlyphs:length:forStartingGlyphAtIndex:characterIndex:")) +func (g_ GlyphStorageObject) HasSetIntAttributeValueForGlyphAtIndex() bool { + return g_.RespondsToSelector(objc.Sel("setIntAttribute:value:forGlyphAtIndex:")) } -// Inserts the given glyphs into the glyph cache and maps them to the specified characters. [Full Topic] +// Sets a custom attribute value for a given glyph. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsglyphstorage/1425153-insertglyphs?language=objc -func (g_ GlyphStorageWrapper) InsertGlyphsLengthForStartingGlyphAtIndexCharacterIndex(glyphs *Glyph, length uint, glyphIndex uint, charIndex uint) { - objc.Call[objc.Void](g_, objc.Sel("insertGlyphs:length:forStartingGlyphAtIndex:characterIndex:"), glyphs, length, glyphIndex, charIndex) +// [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) } diff --git a/macos/appkit/gradient.gen.go b/macos/appkit/gradient.gen.go index d6192706..29e68c74 100644 --- a/macos/appkit/gradient.gen.go +++ b/macos/appkit/gradient.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package appkit @@ -19,11 +19,13 @@ type _GradientClass struct { // An interface definition for the [Gradient] class. type IGradient interface { objc.IObject - GetColorLocationAtIndex(color IColor, 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 IColor, 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 @@ -42,6 +44,20 @@ func GradientFrom(ptr unsafe.Pointer) Gradient { } } +func (g_ Gradient) InitWithStartingColorEndingColor(startingColor IColor, endingColor IColor) Gradient { + rv := objc.Call[Gradient](g_, objc.Sel("initWithStartingColor:endingColor:"), objc.Ptr(startingColor), objc.Ptr(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{objc.Ptr(firstColor)}, args...)...) return rv @@ -56,16 +72,16 @@ func NewGradientWithColorsAndLocations(firstColor IColor, args ...any) Gradient return instance } -func (g_ Gradient) InitWithStartingColorEndingColor(startingColor IColor, endingColor IColor) Gradient { - rv := objc.Call[Gradient](g_, objc.Sel("initWithStartingColor:endingColor:"), objc.Ptr(startingColor), objc.Ptr(endingColor)) +func (g_ Gradient) InitWithColorsAtLocationsColorSpace(colorArray []IColor, locations *float64, colorSpace IColorSpace) Gradient { + rv := objc.Call[Gradient](g_, objc.Sel("initWithColors:atLocations:colorSpace:"), colorArray, locations, objc.Ptr(colorSpace)) return rv } -// Initializes a newly allocated gradient object with two colors. [Full Topic] +// Initializes a newly allocated gradient object with the specified colors, color locations, and color space. [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) +// [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) instance.Autorelease() return instance } @@ -89,10 +105,6 @@ func (gc _GradientClass) Alloc() Gradient { return rv } -func Gradient_Alloc() Gradient { - return GradientClass.Alloc() -} - func (gc _GradientClass) New() Gradient { rv := objc.Call[Gradient](gc, objc.Sel("new")) rv.Autorelease() @@ -108,11 +120,19 @@ func (g_ Gradient) Init() Gradient { return rv } -// 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 IColor, location *float64, index int) { - objc.Call[objc.Void](g_, objc.Sel("getColor:location:atIndex:"), objc.Ptr(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) +} + +// Returns the color of the rendered gradient at the specified relative location. [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 } // Draws a radial gradient between the specified circles. [Full Topic] @@ -122,19 +142,18 @@ func (g_ Gradient) DrawFromCenterRadiusToCenterRadiusOptions(startCenter foundat objc.Call[objc.Void](g_, objc.Sel("drawFromCenter:radius:toCenter:radius:options:"), startCenter, startRadius, endCenter, endRadius, options) } -// Draws a radial gradient starting at the center of the specified rectangle. [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/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) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsgradient/1533505-getcolor?language=objc +func (g_ Gradient) GetColorLocationAtIndex(color IColor, location *float64, index int) { + objc.Call[objc.Void](g_, objc.Sel("getColor:location:atIndex:"), objc.Ptr(color), location, index) } -// Returns the color of the rendered gradient at the specified relative location. [Full Topic] +// Fills the specified rectangle with a linear gradient. [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/1529086-drawinrect?language=objc +func (g_ Gradient) DrawInRectAngle(rect foundation.Rect, angle float64) { + objc.Call[objc.Void](g_, objc.Sel("drawInRect:angle:"), rect, angle) } // Draws a linear gradient between the specified start and end points. [Full Topic] @@ -144,6 +163,13 @@ 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:"), objc.Ptr(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 bca58b18..a76055d9 100644 --- a/macos/appkit/graphics_context.gen.go +++ b/macos/appkit/graphics_context.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package appkit @@ -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 - CompositingOperation() CompositingOperation - SetCompositingOperation(value CompositingOperation) + IsDrawingToScreen() bool ColorRenderingIntent() ColorRenderingIntent SetColorRenderingIntent(value ColorRenderingIntent) - IsDrawingToScreen() bool + CompositingOperation() CompositingOperation + SetCompositingOperation(value CompositingOperation) 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] @@ -57,10 +57,6 @@ func (gc _GraphicsContextClass) Alloc() GraphicsContext { return rv } -func GraphicsContext_Alloc() GraphicsContext { - return GraphicsContextClass.Alloc() -} - func (gc _GraphicsContextClass) New() GraphicsContext { rv := objc.Call[GraphicsContext](gc, objc.Sel("new")) rv.Autorelease() @@ -76,43 +72,6 @@ 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:"), objc.Ptr(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 @@ -128,47 +87,18 @@ 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:"), objc.Ptr(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] @@ -186,71 +116,70 @@ func GraphicsContext_GraphicsContextWithAttributes(attributes map[GraphicsContex return GraphicsContextClass.GraphicsContextWithAttributes(attributes) } -// The amount to offset the pattern color when filling the graphics context. [Full Topic] +// 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/1527510-patternphase?language=objc -func (g_ GraphicsContext) PatternPhase() foundation.Point { - rv := objc.Call[foundation.Point](g_, objc.Sel("patternPhase")) +// [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 } -// The amount to offset the pattern color when filling the graphics context. [Full Topic] +// 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/1527510-patternphase?language=objc -func (g_ GraphicsContext) SetPatternPhase(value foundation.Point) { - objc.Call[objc.Void](g_, objc.Sel("setPatternPhase:"), value) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsgraphicscontext/1525944-currentcontextdrawingtoscreen?language=objc +func GraphicsContext_CurrentContextDrawingToScreen() bool { + return GraphicsContextClass.CurrentContextDrawingToScreen() } -// Returns the current graphics context of the current thread. [Full Topic] +// 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/1535352-currentcontext?language=objc -func (gc _GraphicsContextClass) CurrentContext() GraphicsContext { - rv := objc.Call[GraphicsContext](gc, objc.Sel("currentContext")) +// [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:"), objc.Ptr(bitmapRep)) return rv } -// Returns the current graphics context of the current thread. [Full Topic] +// 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/1535352-currentcontext?language=objc -func GraphicsContext_CurrentContext() GraphicsContext { - return GraphicsContextClass.CurrentContext() +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsgraphicscontext/1529827-graphicscontextwithbitmapimagere?language=objc +func GraphicsContext_GraphicsContextWithBitmapImageRep(bitmapRep IBitmapImageRep) GraphicsContext { + return GraphicsContextClass.GraphicsContextWithBitmapImageRep(bitmapRep) } -// Returns the current graphics context of the current thread. [Full Topic] +// 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/1535352-currentcontext?language=objc -func (gc _GraphicsContextClass) SetCurrentContext(value IGraphicsContext) { - objc.Call[objc.Void](gc, objc.Sel("setCurrentContext:"), objc.Ptr(value)) +// [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")) } -// Returns the current graphics context of the current thread. [Full Topic] +// 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/1535352-currentcontext?language=objc -func GraphicsContext_SetCurrentContext(value IGraphicsContext) { - GraphicsContextClass.SetCurrentContext(value) +// [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")) } -// A context for Core Image objects that you can use to render into the graphics context. [Full Topic] +// 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/1534326-cicontext?language=objc -func (g_ GraphicsContext) CIContext() coreimage.Context { - rv := objc.Call[coreimage.Context](g_, objc.Sel("CIContext")) - return rv +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsgraphicscontext/1524294-restoregraphicsstate?language=objc +func GraphicsContext_RestoreGraphicsState_() { + GraphicsContextClass.RestoreGraphicsState_() } -// A constant that specifies the graphics context’s interpolation, or image smoothing, behavior. [Full Topic] +// Creates a new graphics context for drawing into a window. [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")) +// [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:"), objc.Ptr(window)) return rv } -// A constant that specifies the graphics context’s interpolation, or image smoothing, behavior. [Full Topic] +// Creates a new graphics context for drawing into a window. [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) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsgraphicscontext/1532883-graphicscontextwithwindow?language=objc +func GraphicsContext_GraphicsContextWithWindow(window IWindow) GraphicsContext { + return GraphicsContextClass.GraphicsContextWithWindow(window) } // A Boolean value that indicates whether the graphics context uses antialiasing. [Full Topic] @@ -276,21 +205,14 @@ func (g_ GraphicsContext) CGContext() coregraphics.ContextRef { return rv } -// 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) -} - // 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 @@ -306,14 +228,21 @@ func (g_ GraphicsContext) SetColorRenderingIntent(value ColorRenderingIntent) { objc.Call[objc.Void](g_, objc.Sel("setColorRenderingIntent:"), value) } -// 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) +} + // 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 @@ -322,6 +251,21 @@ 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 @@ -329,3 +273,55 @@ 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:"), objc.Ptr(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 be9b285f..a5018cdc 100644 --- a/macos/appkit/grid_cell.gen.go +++ b/macos/appkit/grid_cell.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package appkit @@ -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] @@ -50,10 +50,6 @@ func (gc _GridCellClass) Alloc() GridCell { return rv } -func GridCell_Alloc() GridCell { - return GridCellClass.Alloc() -} - func (gc _GridCellClass) New() GridCell { rv := objc.Call[GridCell](gc, objc.Sel("new")) rv.Autorelease() @@ -71,17 +67,17 @@ func (g_ GridCell) Init() GridCell { // [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] @@ -101,76 +97,76 @@ func GridCell_EmptyContentView() View { // [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/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) SetContentView(value IView) { - objc.Call[objc.Void](g_, objc.Sel("setContentView:"), objc.Ptr(value)) +// [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/1639717-customplacementconstraints?language=objc -func (g_ GridCell) CustomPlacementConstraints() []LayoutConstraint { - rv := objc.Call[[]LayoutConstraint](g_, objc.Sel("customPlacementConstraints")) - return rv +// [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] // -// [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/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/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] // -// [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")) +// [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/1639763-row?language=objc -func (g_ GridCell) Row() GridRow { - rv := objc.Call[GridRow](g_, objc.Sel("row")) - 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/1639710-xplacement?language=objc -func (g_ GridCell) XPlacement() GridCellPlacement { - rv := objc.Call[GridCellPlacement](g_, objc.Sel("xPlacement")) +// [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) SetXPlacement(value GridCellPlacement) { - objc.Call[objc.Void](g_, objc.Sel("setXPlacement:"), value) +// [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:"), objc.Ptr(value)) } diff --git a/macos/appkit/grid_column.gen.go b/macos/appkit/grid_column.gen.go index 22f5cc84..dd652805 100644 --- a/macos/appkit/grid_column.gen.go +++ b/macos/appkit/grid_column.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package appkit @@ -19,20 +19,20 @@ type _GridColumnClass struct { // An interface definition for the [GridColumn] class. type IGridColumn interface { objc.IObject - MergeCellsInRange(range_ foundation.Range) CellAtIndex(index int) GridCell - Width() float64 - SetWidth(value float64) + MergeCellsInRange(range_ foundation.Range) + GridView() GridView 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] @@ -53,10 +53,6 @@ func (gc _GridColumnClass) Alloc() GridColumn { return rv } -func GridColumn_Alloc() GridColumn { - return GridColumnClass.Alloc() -} - func (gc _GridColumnClass) New() GridColumn { rv := objc.Call[GridColumn](gc, objc.Sel("new")) rv.Autorelease() @@ -72,13 +68,6 @@ 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 @@ -89,17 +78,17 @@ func (g_ GridColumn) CellAtIndex(index int) GridCell { // [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")) - return rv +// [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/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/1639675-gridview?language=objc +func (g_ GridColumn) GridView() GridView { + rv := objc.Call[GridView](g_, objc.Sel("gridView")) + return rv } // [Full Topic] @@ -119,40 +108,32 @@ func (g_ GridColumn) SetHidden(value bool) { // [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")) +// [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/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/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/1639663-xplacement?language=objc +func (g_ GridColumn) SetXPlacement(value GridCellPlacement) { + objc.Call[objc.Void](g_, objc.Sel("setXPlacement:"), value) } // [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/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/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/1639679-width?language=objc +func (g_ GridColumn) SetWidth(value float64) { + objc.Call[objc.Void](g_, objc.Sel("setWidth:"), value) } // [Full Topic] @@ -177,3 +158,18 @@ 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 54b2ce09..1b475767 100644 --- a/macos/appkit/grid_row.gen.go +++ b/macos/appkit/grid_row.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package appkit @@ -19,22 +19,22 @@ type _GridRowClass struct { // An interface definition for the [GridRow] class. type IGridRow interface { objc.IObject - MergeCellsInRange(range_ foundation.Range) CellAtIndex(index int) GridCell - RowAlignment() GridRowAlignment - SetRowAlignment(value GridRowAlignment) + MergeCellsInRange(range_ foundation.Range) + Height() float64 + SetHeight(value float64) + NumberOfCells() int + TopPadding() float64 + SetTopPadding(value float64) IsHidden() bool SetHidden(value bool) YPlacement() GridCellPlacement SetYPlacement(value GridCellPlacement) - Height() float64 - SetHeight(value float64) - GridView() GridView BottomPadding() float64 SetBottomPadding(value float64) - NumberOfCells() int - TopPadding() float64 - SetTopPadding(value float64) + GridView() GridView + RowAlignment() GridRowAlignment + SetRowAlignment(value GridRowAlignment) } // A row within a grid view. [Full Topic] @@ -55,10 +55,6 @@ func (gc _GridRowClass) Alloc() GridRow { return rv } -func GridRow_Alloc() GridRow { - return GridRowClass.Alloc() -} - func (gc _GridRowClass) New() GridRow { rv := objc.Call[GridRow](gc, objc.Sel("new")) rv.Autorelease() @@ -74,6 +70,14 @@ 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 @@ -83,25 +87,40 @@ func (g_ GridRow) MergeCellsInRange(range_ foundation.Range) { // [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) +// [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/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/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")) 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) TopPadding() float64 { + rv := objc.Call[float64](g_, objc.Sel("topPadding")) + 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] @@ -134,29 +153,6 @@ 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 @@ -174,23 +170,23 @@ func (g_ GridRow) SetBottomPadding(value float64) { // [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/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/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) } diff --git a/macos/appkit/grid_view.gen.go b/macos/appkit/grid_view.gen.go index 967499b9..7e378122 100644 --- a/macos/appkit/grid_view.gen.go +++ b/macos/appkit/grid_view.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package appkit @@ -19,33 +19,33 @@ type _GridViewClass struct { // An interface definition for the [GridView] class. type IGridView interface { IView - IndexOfColumn(column IGridColumn) int - RemoveColumnAtIndex(index int) - IndexOfRow(row IGridRow) int + RemoveRowAtIndex(index int) InsertColumnAtIndexWithViews(index int, views []IView) GridColumn - ColumnAtIndex(index int) GridColumn + RemoveColumnAtIndex(index int) 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) - CellAtColumnIndexRowIndex(columnIndex int, rowIndex int) GridCell MoveColumnAtIndexToIndex(fromIndex int, toIndex int) - RemoveRowAtIndex(index int) + InsertRowAtIndexWithViews(index int, views []IView) GridRow + IndexOfRow(row IGridRow) int + IndexOfColumn(column IGridColumn) int + ColumnAtIndex(index int) GridColumn RowAtIndex(index int) GridRow - RowAlignment() GridRowAlignment - SetRowAlignment(value GridRowAlignment) - ColumnSpacing() float64 - SetColumnSpacing(value float64) - YPlacement() GridCellPlacement - SetYPlacement(value GridCellPlacement) + CellAtColumnIndexRowIndex(columnIndex int, rowIndex int) GridCell + CellForView(view IView) GridCell + AddColumnWithViews(views []IView) GridColumn + MoveRowAtIndexToIndex(fromIndex int, toIndex int) + NumberOfColumns() int XPlacement() GridCellPlacement SetXPlacement(value GridCellPlacement) + NumberOfRows() int + YPlacement() GridCellPlacement + SetYPlacement(value GridCellPlacement) RowSpacing() float64 SetRowSpacing(value float64) - NumberOfRows() int - NumberOfColumns() int + ColumnSpacing() float64 + SetColumnSpacing(value float64) + RowAlignment() GridRowAlignment + SetRowAlignment(value GridRowAlignment) } // A container that aligns views in a flexible grid of rows and columns. [Full Topic] @@ -104,10 +104,6 @@ func (gc _GridViewClass) Alloc() GridView { return rv } -func GridView_Alloc() GridView { - return GridViewClass.Alloc() -} - func (gc _GridViewClass) New() GridView { rv := objc.Call[GridView](gc, objc.Sel("new")) rv.Autorelease() @@ -123,27 +119,11 @@ func (g_ GridView) Init() GridView { return rv } -// Returns the index of the specified grid column. [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:"), objc.Ptr(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] +// Removes the row from the grid view at the index. [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:"), objc.Ptr(row)) - return rv +// [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) } // Inserts the array of view objects at the specified index. [Full Topic] @@ -154,12 +134,11 @@ func (g_ GridView) InsertColumnAtIndexWithViews(index int, views []IView) GridCo return rv } -// Returns the grid column object at the specified index. [Full Topic] +// Removes the column from the grid view at the specified index. [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/1639759-removecolumnatindex?language=objc +func (g_ GridView) RemoveColumnAtIndex(index int) { + objc.Call[objc.Void](g_, objc.Sel("removeColumnAtIndex:"), index) } // Expands the cell at the top-leading corner of the horizontal and vertical range to cover the entire area. [Full Topic] @@ -169,14 +148,6 @@ 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 @@ -185,12 +156,11 @@ func (g_ GridView) AddRowWithViews(views []IView) GridRow { return rv } -// Returns the grid cell object that contains the given view or one of its ancestors. [Full Topic] +// Moves the specified column to a new column location. [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:"), objc.Ptr(view)) - 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) } // Inserts the array of view objects into the grid view at the index. [Full Topic] @@ -201,33 +171,28 @@ func (g_ GridView) InsertRowAtIndexWithViews(index int, views []IView) GridRow { return rv } -// Moves the specified row to the new row location. [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) -} - -// Returns the grid cell object at the specified column and row index. [Full Topic] +// Returns the index of the specified grid row. [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/1639661-indexofrow?language=objc +func (g_ GridView) IndexOfRow(row IGridRow) int { + rv := objc.Call[int](g_, objc.Sel("indexOfRow:"), objc.Ptr(row)) return rv } -// Moves the specified column to a new column location. [Full Topic] +// Returns the index of the specified grid column. [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/1639667-indexofcolumn?language=objc +func (g_ GridView) IndexOfColumn(column IGridColumn) int { + rv := objc.Call[int](g_, objc.Sel("indexOfColumn:"), objc.Ptr(column)) + return rv } -// Removes the row from the grid view at the index. [Full Topic] +// Returns the grid column object at the specified 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) +// [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 } // Returns the grid row object at the specified index. [Full Topic] @@ -238,51 +203,45 @@ func (g_ GridView) RowAtIndex(index int) GridRow { return rv } -// The row alignment for the grid view. [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/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/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 } -// The row alignment for the grid view. [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/1823691-rowalignment?language=objc -func (g_ GridView) SetRowAlignment(value GridRowAlignment) { - objc.Call[objc.Void](g_, objc.Sel("setRowAlignment:"), value) +// [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:"), objc.Ptr(view)) + return rv } -// The column spacing for the grid view. [Full Topic] +// Adds a new column containing the array of views. [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/1639783-addcolumnwithviews?language=objc +func (g_ GridView) AddColumnWithViews(views []IView) GridColumn { + rv := objc.Call[GridColumn](g_, objc.Sel("addColumnWithViews:"), views) return rv } -// The column spacing for the grid view. [Full Topic] +// Moves the specified row to the new row location. [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) +// [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) } -// The placement of the cell within the grid row. [Full Topic] +// The number of columns in the grid view. [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")) +// [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 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 @@ -298,6 +257,29 @@ 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 @@ -313,18 +295,32 @@ func (g_ GridView) SetRowSpacing(value float64) { objc.Call[objc.Void](g_, objc.Sel("setRowSpacing:"), value) } -// The number of rows in the grid view. [Full Topic] +// The column spacing for 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")) +// [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 } -// The number of columns in the grid view. [Full Topic] +// The column spacing for the grid view. [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/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] +// +// [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 } + +// 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 53d5605b..5fc0b4bd 100644 --- a/macos/appkit/group_touch_bar_item.gen.go +++ b/macos/appkit/group_touch_bar_item.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package appkit @@ -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) - EffectiveCompressionOptions() UserInterfaceCompressionOptions - PrioritizedCompressionOptions() []UserInterfaceCompressionOptions - SetPrioritizedCompressionOptions(value []IUserInterfaceCompressionOptions) - GroupUserInterfaceLayoutDirection() UserInterfaceLayoutDirection - SetGroupUserInterfaceLayoutDirection(value UserInterfaceLayoutDirection) GroupTouchBar() TouchBar SetGroupTouchBar(value ITouchBar) - PrefersEqualWidths() bool - SetPrefersEqualWidths(value bool) + GroupUserInterfaceLayoutDirection() UserInterfaceLayoutDirection + SetGroupUserInterfaceLayoutDirection(value UserInterfaceLayoutDirection) + PrioritizedCompressionOptions() []UserInterfaceCompressionOptions + SetPrioritizedCompressionOptions(value []IUserInterfaceCompressionOptions) } // A bar item that provides a bar to contain other items. [Full Topic] @@ -69,13 +69,21 @@ func GroupTouchBarItem_AlertStyleGroupItemWithIdentifier(identifier TouchBarItem return GroupTouchBarItemClass.AlertStyleGroupItemWithIdentifier(identifier) } -func (gc _GroupTouchBarItemClass) Alloc() GroupTouchBarItem { - rv := objc.Call[GroupTouchBarItem](gc, objc.Sel("alloc")) +func (gc _GroupTouchBarItemClass) GroupItemWithIdentifierItemsAllowedCompressionOptions(identifier TouchBarItemIdentifier, items []ITouchBarItem, allowedCompressionOptions IUserInterfaceCompressionOptions) GroupTouchBarItem { + rv := objc.Call[GroupTouchBarItem](gc, objc.Sel("groupItemWithIdentifier:items:allowedCompressionOptions:"), identifier, items, objc.Ptr(allowedCompressionOptions)) return rv } -func GroupTouchBarItem_Alloc() GroupTouchBarItem { - return GroupTouchBarItemClass.Alloc() +// 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 } func (gc _GroupTouchBarItemClass) New() GroupTouchBarItem { @@ -107,6 +115,21 @@ 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 @@ -114,7 +137,15 @@ func (g_ GroupTouchBarItem) SetCustomizationLabel(value string) { objc.Call[objc.Void](g_, objc.Sel("setCustomizationLabel:"), value) } -// The preferred width for items in the group when prefersEqualWidths is YES. [Full Topic] +// 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] // // [Full Topic]: https://developer.apple.com/documentation/appkit/nsgrouptouchbaritem/2909975-preferreditemwidth?language=objc func (g_ GroupTouchBarItem) PreferredItemWidth() float64 { @@ -122,34 +153,26 @@ func (g_ GroupTouchBarItem) PreferredItemWidth() float64 { return rv } -// The preferred width for items in the group when prefersEqualWidths is YES. [Full Topic] +// The preferred width for items in the group when [appkit/nsgrouptouchbaritem/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) } -// 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 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:"), objc.Ptr(value)) } // The user interface direction that controls the layout order of the items. [Full Topic] @@ -167,32 +190,17 @@ func (g_ GroupTouchBarItem) SetGroupUserInterfaceLayoutDirection(value UserInter objc.Call[objc.Void](g_, objc.Sel("setGroupUserInterfaceLayoutDirection:"), value) } -// A bar that holds this group's items. [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")) - return rv -} - -// A bar that holds this group's items. [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:"), objc.Ptr(value)) -} - -// A Boolean value that specifies that items should have equal widths when possible. [Full Topic] +// The allowed compression options, in the order they should be applied. [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")) +// [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 } -// A Boolean value that specifies that items should have equal widths when possible. [Full Topic] +// The allowed compression options, in the order they should be applied. [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) +// [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) } diff --git a/macos/appkit/haptic_feedback_manager.gen.go b/macos/appkit/haptic_feedback_manager.gen.go index 593de73a..c670c289 100644 --- a/macos/appkit/haptic_feedback_manager.gen.go +++ b/macos/appkit/haptic_feedback_manager.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package appkit @@ -38,10 +38,6 @@ func (hc _HapticFeedbackManagerClass) Alloc() HapticFeedbackManager { return rv } -func HapticFeedbackManager_Alloc() HapticFeedbackManager { - return HapticFeedbackManagerClass.Alloc() -} - func (hc _HapticFeedbackManagerClass) New() HapticFeedbackManager { rv := objc.Call[HapticFeedbackManager](hc, objc.Sel("new")) rv.Autorelease() @@ -60,14 +56,14 @@ func (h_ HapticFeedbackManager) Init() HapticFeedbackManager { // Requests a haptic feedback performer object that is based on the current input device, accessibility settings, and user preferences. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/appkit/nshapticfeedbackmanager/1441752-defaultperformer?language=objc -func (hc _HapticFeedbackManagerClass) DefaultPerformer() HapticFeedbackPerformerWrapper { - rv := objc.Call[HapticFeedbackPerformerWrapper](hc, objc.Sel("defaultPerformer")) +func (hc _HapticFeedbackManagerClass) DefaultPerformer() HapticFeedbackPerformerObject { + rv := objc.Call[HapticFeedbackPerformerObject](hc, objc.Sel("defaultPerformer")) return rv } // Requests a haptic feedback performer object that is based on the current input device, accessibility settings, and user preferences. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/appkit/nshapticfeedbackmanager/1441752-defaultperformer?language=objc -func HapticFeedbackManager_DefaultPerformer() HapticFeedbackPerformerWrapper { +func HapticFeedbackManager_DefaultPerformer() HapticFeedbackPerformerObject { return HapticFeedbackManagerClass.DefaultPerformer() } diff --git a/macos/appkit/haptic_feedback_performer.gen.go b/macos/appkit/haptic_feedback_performer_protocol.gen.go similarity index 63% rename from macos/appkit/haptic_feedback_performer.gen.go rename to macos/appkit/haptic_feedback_performer_protocol.gen.go index 6c5f4543..2ecf2d7f 100644 --- a/macos/appkit/haptic_feedback_performer.gen.go +++ b/macos/appkit/haptic_feedback_performer_protocol.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package appkit @@ -15,18 +15,21 @@ type PHapticFeedbackPerformer interface { HasPerformFeedbackPatternPerformanceTime() bool } -// A concrete type wrapper for the [PHapticFeedbackPerformer] protocol. -type HapticFeedbackPerformerWrapper struct { +// ensure impl type implements protocol interface +var _ PHapticFeedbackPerformer = (*HapticFeedbackPerformerObject)(nil) + +// A concrete type for the [PHapticFeedbackPerformer] protocol. +type HapticFeedbackPerformerObject struct { objc.Object } -func (h_ HapticFeedbackPerformerWrapper) HasPerformFeedbackPatternPerformanceTime() bool { +func (h_ HapticFeedbackPerformerObject) HasPerformFeedbackPatternPerformanceTime() bool { return h_.RespondsToSelector(objc.Sel("performFeedbackPattern:performanceTime:")) } // Initiates a specific pattern of haptic feedback to the user. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/appkit/nshapticfeedbackperformer/1441738-performfeedbackpattern?language=objc -func (h_ HapticFeedbackPerformerWrapper) PerformFeedbackPatternPerformanceTime(pattern HapticFeedbackPattern, performanceTime HapticFeedbackPerformanceTime) { +func (h_ HapticFeedbackPerformerObject) PerformFeedbackPatternPerformanceTime(pattern HapticFeedbackPattern, performanceTime HapticFeedbackPerformanceTime) { objc.Call[objc.Void](h_, objc.Sel("performFeedbackPattern:performanceTime:"), pattern, performanceTime) } diff --git a/macos/appkit/help_manager.gen.go b/macos/appkit/help_manager.gen.go index 681608d9..b7c8bbc2 100644 --- a/macos/appkit/help_manager.gen.go +++ b/macos/appkit/help_manager.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package appkit @@ -19,13 +19,13 @@ type _HelpManagerClass struct { // An interface definition for the [HelpManager] class. type IHelpManager interface { objc.IObject - RemoveContextHelpForObject(object objc.IObject) - OpenHelpAnchorInBook(anchor HelpAnchorName, book HelpBookName) + FindStringInBook(query string, book HelpBookName) ContextHelpForObject(object objc.IObject) foundation.AttributedString + OpenHelpAnchorInBook(anchor HelpAnchorName, book HelpBookName) ShowContextHelpForObjectLocationHint(object objc.IObject, pt foundation.Point) bool RegisterBooksInBundle(bundle foundation.IBundle) bool SetContextHelpForObject(attrString foundation.IAttributedString, object objc.IObject) - FindStringInBook(query string, book HelpBookName) + RemoveContextHelpForObject(object objc.IObject) } // An object for displaying online help for an app. [Full Topic] @@ -46,10 +46,6 @@ func (hc _HelpManagerClass) Alloc() HelpManager { return rv } -func HelpManager_Alloc() HelpManager { - return HelpManagerClass.Alloc() -} - func (hc _HelpManagerClass) New() HelpManager { rv := objc.Call[HelpManager](hc, objc.Sel("new")) rv.Autorelease() @@ -65,18 +61,11 @@ func (h_ HelpManager) Init() HelpManager { return rv } -// 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) -} - -// Finds and displays the text at the given anchor location in the given book. [Full Topic] +// Performs a search for the specified string in the specified 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) +// [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) } // Returns context-sensitive help for an object. [Full Topic] @@ -87,6 +76,13 @@ 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 @@ -110,11 +106,26 @@ func (h_ HelpManager) SetContextHelpForObject(attrString foundation.IAttributedS objc.Call[objc.Void](h_, objc.Sel("setContextHelp:forObject:"), objc.Ptr(attrString), object) } -// 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) +} + +// 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() } // [Full Topic] @@ -145,18 +156,3 @@ 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/ignore_misspelled_words.gen.go b/macos/appkit/ignore_misspelled_words_protocol.gen.go similarity index 62% rename from macos/appkit/ignore_misspelled_words.gen.go rename to macos/appkit/ignore_misspelled_words_protocol.gen.go index cfb10bc8..31357201 100644 --- a/macos/appkit/ignore_misspelled_words.gen.go +++ b/macos/appkit/ignore_misspelled_words_protocol.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package appkit @@ -15,18 +15,21 @@ type PIgnoreMisspelledWords interface { HasIgnoreSpelling() bool } -// A concrete type wrapper for the [PIgnoreMisspelledWords] protocol. -type IgnoreMisspelledWordsWrapper struct { +// ensure impl type implements protocol interface +var _ PIgnoreMisspelledWords = (*IgnoreMisspelledWordsObject)(nil) + +// A concrete type for the [PIgnoreMisspelledWords] protocol. +type IgnoreMisspelledWordsObject struct { objc.Object } -func (i_ IgnoreMisspelledWordsWrapper) HasIgnoreSpelling() bool { +func (i_ IgnoreMisspelledWordsObject) HasIgnoreSpelling() bool { return i_.RespondsToSelector(objc.Sel("ignoreSpelling:")) } // [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/appkit/nsignoremisspelledwords/1533150-ignorespelling?language=objc -func (i_ IgnoreMisspelledWordsWrapper) IgnoreSpelling(sender objc.IObject) { +func (i_ IgnoreMisspelledWordsObject) IgnoreSpelling(sender objc.Object) { objc.Call[objc.Void](i_, objc.Sel("ignoreSpelling:"), sender) } diff --git a/macos/appkit/image.gen.go b/macos/appkit/image.gen.go index 5b1bc6c1..b9bccfd4 100644 --- a/macos/appkit/image.gen.go +++ b/macos/appkit/image.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package appkit @@ -20,53 +20,55 @@ type _ImageClass struct { // An interface definition for the [Image] class. type IImage interface { objc.IObject - ImageWithSymbolConfiguration(configuration IImageSymbolConfiguration) Image - DrawAtPointFromRectOperationFraction(point foundation.Point, fromRect foundation.Rect, op CompositingOperation, delta float64) - TIFFRepresentationUsingCompressionFactor(comp TIFFCompression, factor float64) []byte - 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 - SetName(string_ ImageName) bool - RemoveRepresentation(imageRep IImageRep) - HitTestRectWithImageDestinationRectContextHintsFlipped(testRectDestSpace foundation.Rect, imageRectDestSpace foundation.Rect, context IGraphicsContext, hints map[ImageHintKey]objc.IObject, flipped bool) bool + DrawInRectFromRectOperationFractionRespectFlippedHints(dstSpacePortionRect foundation.Rect, srcSpacePortionRect foundation.Rect, op CompositingOperation, requestedAlpha float64, respectContextIsFlipped bool, hints map[ImageHintKey]objc.IObject) 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 + 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) - TIFFRepresentation() []byte - AccessibilityDescription() string - SetAccessibilityDescription(value string) - IsTemplate() bool - SetTemplate(value bool) - Representations() []ImageRep - Delegate() ImageDelegateWrapper + HitTestRectWithImageDestinationRectContextHintsFlipped(testRectDestSpace foundation.Rect, imageRectDestSpace foundation.Rect, context IGraphicsContext, hints map[ImageHintKey]objc.IObject, flipped bool) bool + TIFFRepresentationUsingCompressionFactor(comp TIFFCompression, factor float64) []byte + Name() ImageName + RecommendedLayerContentsScale(preferredContentsScale float64) float64 + LayerContentsForContentsScale(layerContentsScale float64) objc.Object + DrawInRect(rect foundation.Rect) + ResizingMode() ImageResizingMode + SetResizingMode(value ImageResizingMode) + MatchesOnMultipleResolution() bool + SetMatchesOnMultipleResolution(value bool) + Delegate() ImageDelegateObject SetDelegate(value PImageDelegate) SetDelegateObject(valueObject objc.IObject) + MatchesOnlyOnBestFittingAxis() bool + SetMatchesOnlyOnBestFittingAxis(value bool) + CacheMode() ImageCacheMode + SetCacheMode(value ImageCacheMode) IsValid() bool - BackgroundColor() Color - SetBackgroundColor(value IColor) - SymbolConfiguration() ImageSymbolConfiguration + Size() foundation.Size + SetSize(value foundation.Size) + AlignmentRect() foundation.Rect + SetAlignmentRect(value foundation.Rect) + IsTemplate() bool + SetTemplate(value bool) UsesEPSOnResolutionMismatch() bool SetUsesEPSOnResolutionMismatch(value bool) - PrefersColorMatch() bool - SetPrefersColorMatch(value bool) + SymbolConfiguration() ImageSymbolConfiguration + AccessibilityDescription() string + SetAccessibilityDescription(value string) + TIFFRepresentation() []byte + Representations() []ImageRep 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) + BackgroundColor() Color + SetBackgroundColor(value IColor) + PrefersColorMatch() bool + SetPrefersColorMatch(value bool) } // A high-level interface for manipulating image data. [Full Topic] @@ -82,16 +84,18 @@ func ImageFrom(ptr unsafe.Pointer) Image { } } -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:"), objc.Ptr(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) InitWithPasteboard(pasteboard IPasteboard) Image { @@ -108,30 +112,30 @@ func NewImageWithPasteboard(pasteboard IPasteboard) Image { return instance } -func (i_ Image) InitWithContentsOfFile(fileName string) Image { - rv := objc.Call[Image](i_, objc.Sel("initWithContentsOfFile:"), fileName) +func (i_ Image) InitWithDataIgnoringOrientation(data []byte) Image { + rv := objc.Call[Image](i_, objc.Sel("initWithDataIgnoringOrientation:"), data) return rv } -// Initializes and returns an image object with the contents of the specified file. [Full Topic] +// 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/1519918-initwithcontentsoffile?language=objc -func NewImageWithContentsOfFile(fileName string) Image { - instance := ImageClass.Alloc().InitWithContentsOfFile(fileName) +// [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 (i_ Image) InitWithSize(size foundation.Size) Image { - rv := objc.Call[Image](i_, objc.Sel("initWithSize:"), size) +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 specified dimensions. [Full Topic] +// Creates a new image using the contents of the provided image. [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/1519939-initwithcgimage?language=objc +func NewImageWithCGImageSize(cgImage coregraphics.ImageRef, size foundation.Size) Image { + instance := ImageClass.Alloc().InitWithCGImageSize(cgImage, size) instance.Autorelease() return instance } @@ -150,20 +154,6 @@ 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 @@ -176,18 +166,16 @@ func Image_ImageWithSystemSymbolNameAccessibilityDescription(name string, descri return ImageClass.ImageWithSystemSymbolNameAccessibilityDescription(name, description) } -func (i_ Image) InitWithContentsOfURL(url foundation.IURL) Image { - rv := objc.Call[Image](i_, objc.Sel("initWithContentsOfURL:"), objc.Ptr(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) InitByReferencingURL(url foundation.IURL) Image { @@ -204,41 +192,51 @@ func NewImageByReferencingURL(url foundation.IURL) Image { 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) InitByReferencingFile(fileName string) Image { + rv := objc.Call[Image](i_, objc.Sel("initByReferencingFile:"), fileName) return rv } -// Creates a new image using the contents of the provided image. [Full Topic] +// Initializes and returns an image object using the specified file. [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/1519955-initbyreferencingfile?language=objc +func NewImageByReferencingFile(fileName string) Image { + instance := ImageClass.Alloc().InitByReferencingFile(fileName) instance.Autorelease() return instance } -func (i_ Image) InitByReferencingFile(fileName string) Image { - rv := objc.Call[Image](i_, objc.Sel("initByReferencingFile:"), fileName) +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 specified file. [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/1519955-initbyreferencingfile?language=objc -func NewImageByReferencingFile(fileName string) Image { - instance := ImageClass.Alloc().InitByReferencingFile(fileName) +// [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 (ic _ImageClass) Alloc() Image { - rv := objc.Call[Image](ic, objc.Sel("alloc")) +func (i_ Image) InitWithSize(size foundation.Size) Image { + rv := objc.Call[Image](i_, objc.Sel("initWithSize:"), size) return rv } -func Image_Alloc() Image { - return ImageClass.Alloc() +// Initializes and returns an image object with the specified dimensions. [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) + instance.Autorelease() + return instance +} + +func (ic _ImageClass) Alloc() Image { + rv := objc.Call[Image](ic, objc.Sel("alloc")) + return rv } func (ic _ImageClass) New() Image { @@ -256,35 +254,19 @@ func (i_ Image) Init() Image { return rv } -// Creates a new symbol image with the specified configuration. [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:"), objc.Ptr(configuration)) - return rv -} - -// 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/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] +// Tests whether the image can create an instance of itself using pasteboard data. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsimage/1519949-tiffrepresentationusingcompressi?language=objc -func (i_ Image) TIFFRepresentationUsingCompressionFactor(comp TIFFCompression, factor float64) []byte { - rv := objc.Call[[]byte](i_, objc.Sel("TIFFRepresentationUsingCompression:factor:"), comp, factor) +// [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:"), objc.Ptr(pasteboard)) return rv } -// Returns the recommended layer contents scale for this image. [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/1519878-recommendedlayercontentsscale?language=objc -func (i_ Image) RecommendedLayerContentsScale(preferredContentsScale float64) float64 { - rv := objc.Call[float64](i_, objc.Sel("recommendedLayerContentsScale:"), preferredContentsScale) - 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) } // Draws all or part of the image in the specified rectangle in the current coordinate system. [Full Topic] @@ -294,26 +276,25 @@ func (i_ Image) DrawInRectFromRectOperationFraction(rect foundation.Rect, fromRe objc.Call[objc.Void](i_, objc.Sel("drawInRect:fromRect:operation:fraction:"), rect, fromRect, op, delta) } -// Returns the name associated with the image, if any. [Full Topic] +// Draws all or part of the image in the specified rectangle respecting the hints and the orientation of the current coordinate system. [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/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) } -// Adds an array of image representation objects to the image. [Full Topic] +// Invalidates and frees offscreen caches of all image representations. [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/1519890-recache?language=objc +func (i_ Image) Recache() { + objc.Call[objc.Void](i_, objc.Sel("recache")) } -// Returns an object that may be used as the contents of a layer. [Full Topic] +// Draws the image using the specified image representation object. [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/1519904-drawrepresentation?language=objc +func (i_ Image) DrawRepresentationInRect(imageRep IImageRep, rect foundation.Rect) bool { + rv := objc.Call[bool](i_, objc.Sel("drawRepresentation:inRect:"), objc.Ptr(imageRep), rect) return rv } @@ -325,34 +306,42 @@ func (i_ Image) SetName(string_ ImageName) bool { return rv } -// Returns the image object associated with the specified name. [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/1520015-imagenamed?language=objc -func (ic _ImageClass) ImageNamed(name ImageName) Image { - rv := objc.Call[Image](ic, objc.Sel("imageNamed:"), name) +// [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, objc.Ptr(referenceContext), hints) return rv } -// Returns the image object associated with the specified name. [Full Topic] +// Adds an array of image representation objects to the image. [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/1519964-addrepresentations?language=objc +func (i_ Image) AddRepresentations(imageReps []IImageRep) { + objc.Call[objc.Void](i_, objc.Sel("addRepresentations:"), imageReps) } -// 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 (ic _ImageClass) CanInitWithPasteboard(pasteboard IPasteboard) bool { - rv := objc.Call[bool](ic, objc.Sel("canInitWithPasteboard:"), objc.Ptr(pasteboard)) - return rv +// [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) } -// 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 Image_CanInitWithPasteboard(pasteboard IPasteboard) bool { - return ImageClass.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:"), objc.Ptr(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, objc.Ptr(referenceContext), hints) + return rv } // Removes and releases the specified image representation. [Full Topic] @@ -362,103 +351,110 @@ func (i_ Image) RemoveRepresentation(imageRep IImageRep) { objc.Call[objc.Void](i_, objc.Sel("removeRepresentation:"), objc.Ptr(imageRep)) } -// Returns whether the destination rectangle would intersect a non-transparent portion of the image. [Full Topic] +// Adds the specified image representation object to the image. [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, objc.Ptr(context), hints, flipped) - 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:"), objc.Ptr(imageRep)) } -// Invalidates and frees offscreen caches of all image representations. [Full Topic] +// Returns the image object associated with the specified name. [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/1520015-imagenamed?language=objc +func (ic _ImageClass) ImageNamed(name ImageName) Image { + rv := objc.Call[Image](ic, objc.Sel("imageNamed:"), name) + return rv } -// Returns a Core Graphics image based on the contents of the current image object. [Full Topic] +// Returns the image object associated with the specified name. [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, objc.Ptr(referenceContext), hints) - return rv +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsimage/1520015-imagenamed?language=objc +func Image_ImageNamed(name ImageName) Image { + return ImageClass.ImageNamed(name) } -// Returns the best representation of the image for the specified rectangle using the provided hints. [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/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, objc.Ptr(referenceContext), hints) +// [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, objc.Ptr(context), hints, flipped) return rv } -// Draws the image using the specified image representation object. [Full Topic] +// 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/1519904-drawrepresentation?language=objc -func (i_ Image) DrawRepresentationInRect(imageRep IImageRep, rect foundation.Rect) bool { - rv := objc.Call[bool](i_, objc.Sel("drawRepresentation:inRect:"), objc.Ptr(imageRep), rect) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsimage/1519949-tiffrepresentationusingcompressi?language=objc +func (i_ Image) TIFFRepresentationUsingCompressionFactor(comp TIFFCompression, factor float64) []byte { + rv := objc.Call[[]byte](i_, objc.Sel("TIFFRepresentationUsingCompression:factor:"), comp, factor) return rv } -// Adds the specified image representation object to the image. [Full Topic] +// Returns the name associated with the image, if any. [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:"), objc.Ptr(imageRep)) +// [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 } -// A data object containing TIFF data for all of the image representations in the image. [Full Topic] +// Returns the recommended layer contents scale for this image. [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/1519878-recommendedlayercontentsscale?language=objc +func (i_ Image) RecommendedLayerContentsScale(preferredContentsScale float64) float64 { + rv := objc.Call[float64](i_, objc.Sel("recommendedLayerContentsScale:"), preferredContentsScale) return rv } -// The image’s accessibility description. [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/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/1519851-layercontentsforcontentsscale?language=objc +func (i_ Image) LayerContentsForContentsScale(layerContentsScale float64) objc.Object { + rv := objc.Call[objc.Object](i_, objc.Sel("layerContentsForContentsScale:"), layerContentsScale) return rv } -// The image’s accessibility description. [Full Topic] +// Draws the image in the specified rectangle. [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/1519863-drawinrect?language=objc +func (i_ Image) DrawInRect(rect foundation.Rect) { + objc.Call[objc.Void](i_, objc.Sel("drawInRect:"), rect) } -// A Boolean value that determines whether the image represents a template image. [Full Topic] +// The resizing mode for the image. [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/1520060-resizingmode?language=objc +func (i_ Image) ResizingMode() ImageResizingMode { + rv := objc.Call[ImageResizingMode](i_, objc.Sel("resizingMode")) return rv } -// A Boolean value that determines whether the image represents a template image. [Full Topic] +// The resizing mode for the image. [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/1520060-resizingmode?language=objc +func (i_ Image) SetResizingMode(value ImageResizingMode) { + objc.Call[objc.Void](i_, objc.Sel("setResizingMode:"), value) } -// 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")) +// [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 } +// 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 -func (i_ Image) Delegate() ImageDelegateWrapper { - rv := objc.Call[ImageDelegateWrapper](i_, objc.Sel("delegate")) +func (i_ Image) Delegate() ImageDelegateObject { + rv := objc.Call[ImageDelegateObject](i_, objc.Sel("delegate")) return rv } @@ -478,198 +474,214 @@ func (i_ Image) SetDelegateObject(valueObject objc.IObject) { objc.Call[objc.Void](i_, objc.Sel("setDelegate:"), objc.Ptr(valueObject)) } -// A Boolean value that indicates whether it is possible to draw an image representation. [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/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/1519848-matchesonlyonbestfittingaxis?language=objc +func (i_ Image) MatchesOnlyOnBestFittingAxis() bool { + rv := objc.Call[bool](i_, objc.Sel("matchesOnlyOnBestFittingAxis")) return rv } -// The background color for the image. [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/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/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] +// +// [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 background color for the image. [Full Topic] +// The image’s caching mode. [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:"), objc.Ptr(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] +// 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/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/1519899-imageunfilteredtypes?language=objc +func (ic _ImageClass) ImageUnfilteredTypes() []string { + rv := objc.Call[[]string](ic, objc.Sel("imageUnfilteredTypes")) 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] +// 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/1519988-imagetypes?language=objc -func Image_ImageTypes() []string { - return ImageClass.ImageTypes() +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsimage/1519899-imageunfilteredtypes?language=objc +func Image_ImageUnfilteredTypes() []string { + return ImageClass.ImageUnfilteredTypes() } -// The configuration details for a symbol image. [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/3852559-symbolconfiguration?language=objc -func (i_ Image) SymbolConfiguration() ImageSymbolConfiguration { - rv := objc.Call[ImageSymbolConfiguration](i_, objc.Sel("symbolConfiguration")) +// [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 EPS representations are preferred when no other representations match the resolution of the device. [Full Topic] +// The size of 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/1519987-size?language=objc +func (i_ Image) Size() foundation.Size { + rv := objc.Call[foundation.Size](i_, objc.Sel("size")) return rv } -// A Boolean value that indicates whether EPS representations are preferred when no other representations match the resolution of the device. [Full Topic] +// The size of the image. [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) +// [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) } -// Returns an array of UTI strings identifying the image types supported directly by the registered image representation objects. [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/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/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 directly by the registered image representation objects. [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/1519899-imageunfilteredtypes?language=objc -func Image_ImageUnfilteredTypes() []string { - return ImageClass.ImageUnfilteredTypes() +// [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 Boolean value that indicates whether the image prefers to choose image representations using color-matching or resolution-matching. [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/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/1520017-template?language=objc +func (i_ Image) IsTemplate() bool { + rv := objc.Call[bool](i_, objc.Sel("isTemplate")) 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 determines whether the image represents a template image. [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/1520017-template?language=objc +func (i_ Image) SetTemplate(value bool) { + objc.Call[objc.Void](i_, objc.Sel("setTemplate:"), value) } -// The cap insets for 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/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/1519868-usesepsonresolutionmismatch?language=objc +func (i_ Image) UsesEPSOnResolutionMismatch() bool { + rv := objc.Call[bool](i_, objc.Sel("usesEPSOnResolutionMismatch")) return rv } -// The cap insets for 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/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/1519868-usesepsonresolutionmismatch?language=objc +func (i_ Image) SetUsesEPSOnResolutionMismatch(value bool) { + objc.Call[objc.Void](i_, objc.Sel("setUsesEPSOnResolutionMismatch:"), value) } -// The image’s caching mode. [Full Topic] +// The configuration details for a symbol 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/3852559-symbolconfiguration?language=objc +func (i_ Image) SymbolConfiguration() ImageSymbolConfiguration { + rv := objc.Call[ImageSymbolConfiguration](i_, objc.Sel("symbolConfiguration")) return rv } -// The image’s caching mode. [Full Topic] +// The image’s accessibility description. [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/1519943-accessibilitydescription?language=objc +func (i_ Image) AccessibilityDescription() string { + rv := objc.Call[string](i_, objc.Sel("accessibilityDescription")) + return rv } -// A rectangle that you can use to position the image during layout. [Full Topic] +// The image’s accessibility description. [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/1519943-accessibilitydescription?language=objc +func (i_ Image) SetAccessibilityDescription(value string) { + objc.Call[objc.Void](i_, objc.Sel("setAccessibilityDescription:"), 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] +// +// [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 } -// 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 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/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/1519988-imagetypes?language=objc +func Image_ImageTypes() []string { + return ImageClass.ImageTypes() } -// A Boolean value that indicates whether image representations whose resolution is an integral multiple of the device resolution are a match. [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/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/1519841-tiffrepresentation?language=objc +func (i_ Image) TIFFRepresentation() []byte { + rv := objc.Call[[]byte](i_, objc.Sel("TIFFRepresentation")) 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] +// 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) SetMatchesOnMultipleResolution(value bool) { - objc.Call[objc.Void](i_, objc.Sel("setMatchesOnMultipleResolution:"), value) +// [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 } -// The size of the image. [Full Topic] +// The cap insets for the image. [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/1520012-capinsets?language=objc +func (i_ Image) CapInsets() foundation.EdgeInsets { + rv := objc.Call[foundation.EdgeInsets](i_, objc.Sel("capInsets")) return rv } -// The size of the image. [Full Topic] +// The cap insets for the image. [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/1520012-capinsets?language=objc +func (i_ Image) SetCapInsets(value foundation.EdgeInsets) { + objc.Call[objc.Void](i_, objc.Sel("setCapInsets:"), value) } -// The resizing mode for the image. [Full Topic] +// The background color for the 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/1520059-backgroundcolor?language=objc +func (i_ Image) BackgroundColor() Color { + rv := objc.Call[Color](i_, objc.Sel("backgroundColor")) return rv } -// The resizing mode for the image. [Full Topic] +// The background color for the 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/1520059-backgroundcolor?language=objc +func (i_ Image) SetBackgroundColor(value IColor) { + objc.Call[objc.Void](i_, objc.Sel("setBackgroundColor:"), objc.Ptr(value)) } -// A Boolean value that indicates whether the image matches only on the best fitting axis. [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/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/1520010-preferscolormatch?language=objc +func (i_ Image) PrefersColorMatch() bool { + rv := objc.Call[bool](i_, objc.Sel("prefersColorMatch")) return rv } -// A Boolean value that indicates whether the image matches only on the best fitting axis. [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/1519848-matchesonlyonbestfittingaxis?language=objc -func (i_ Image) SetMatchesOnlyOnBestFittingAxis(value bool) { - objc.Call[objc.Void](i_, objc.Sel("setMatchesOnlyOnBestFittingAxis:"), 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) } diff --git a/macos/appkit/image_cell.gen.go b/macos/appkit/image_cell.gen.go index 6a28e443..6fc7d02e 100644 --- a/macos/appkit/image_cell.gen.go +++ b/macos/appkit/image_cell.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package appkit @@ -20,10 +20,10 @@ type IImageCell interface { ICell ImageAlignment() ImageAlignment SetImageAlignment(value ImageAlignment) - ImageScaling() ImageScaling - SetImageScaling(value ImageScaling) ImageFrameStyle() ImageFrameStyle SetImageFrameStyle(value ImageFrameStyle) + ImageScaling() ImageScaling + SetImageScaling(value ImageScaling) } // 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] @@ -44,10 +44,6 @@ func (ic _ImageCellClass) Alloc() ImageCell { return rv } -func ImageCell_Alloc() ImageCell { - return ImageCellClass.Alloc() -} - func (ic _ImageCellClass) New() ImageCell { rv := objc.Call[ImageCell](ic, objc.Sel("new")) rv.Autorelease() @@ -106,21 +102,6 @@ func (i_ ImageCell) SetImageAlignment(value ImageAlignment) { objc.Call[objc.Void](i_, objc.Sel("setImageAlignment:"), 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 -func (i_ ImageCell) ImageScaling() ImageScaling { - rv := objc.Call[ImageScaling](i_, objc.Sel("imageScaling")) - return rv -} - -// 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 -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 @@ -135,3 +116,18 @@ func (i_ ImageCell) ImageFrameStyle() ImageFrameStyle { 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 +func (i_ ImageCell) ImageScaling() ImageScaling { + rv := objc.Call[ImageScaling](i_, objc.Sel("imageScaling")) + return rv +} + +// 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 +func (i_ ImageCell) SetImageScaling(value ImageScaling) { + objc.Call[objc.Void](i_, objc.Sel("setImageScaling:"), value) +} diff --git a/macos/appkit/image_delegate.gen.go b/macos/appkit/image_delegate.gen.go index 65ea9b94..a5180cc2 100644 --- a/macos/appkit/image_delegate.gen.go +++ b/macos/appkit/image_delegate.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package appkit @@ -12,13 +12,13 @@ import ( // [Full Topic]: https://developer.apple.com/documentation/appkit/nsimagedelegate?language=objc type PImageDelegate interface { // optional - ImageDidNotDrawInRect(sender Image, rect foundation.Rect) IImage + ImageDidNotDrawInRect(sender Image, rect foundation.Rect) Image HasImageDidNotDrawInRect() bool } // A delegate implementation builder for the [PImageDelegate] protocol. type ImageDelegate struct { - _ImageDidNotDrawInRect func(sender Image, rect foundation.Rect) IImage + _ImageDidNotDrawInRect func(sender Image, rect foundation.Rect) Image } func (di *ImageDelegate) HasImageDidNotDrawInRect() bool { @@ -28,30 +28,33 @@ func (di *ImageDelegate) HasImageDidNotDrawInRect() bool { // Tells the delegate that the image object is unable, for whatever reason, to lock focus on its image or draw in the specified rectangle. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/appkit/nsimagedelegate/1519927-imagedidnotdraw?language=objc -func (di *ImageDelegate) SetImageDidNotDrawInRect(f func(sender Image, rect foundation.Rect) IImage) { +func (di *ImageDelegate) SetImageDidNotDrawInRect(f func(sender Image, rect foundation.Rect) Image) { di._ImageDidNotDrawInRect = f } // Tells the delegate that the image object is unable, for whatever reason, to lock focus on its image or draw in the specified rectangle. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/appkit/nsimagedelegate/1519927-imagedidnotdraw?language=objc -func (di *ImageDelegate) ImageDidNotDrawInRect(sender Image, rect foundation.Rect) IImage { +func (di *ImageDelegate) ImageDidNotDrawInRect(sender Image, rect foundation.Rect) Image { return di._ImageDidNotDrawInRect(sender, rect) } -// A concrete type wrapper for the [PImageDelegate] protocol. -type ImageDelegateWrapper struct { +// ensure impl type implements protocol interface +var _ PImageDelegate = (*ImageDelegateObject)(nil) + +// A concrete type for the [PImageDelegate] protocol. +type ImageDelegateObject struct { objc.Object } -func (i_ ImageDelegateWrapper) HasImageDidNotDrawInRect() bool { +func (i_ ImageDelegateObject) HasImageDidNotDrawInRect() bool { return i_.RespondsToSelector(objc.Sel("imageDidNotDraw:inRect:")) } // Tells the delegate that the image object is unable, for whatever reason, to lock focus on its image or draw in the specified rectangle. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/appkit/nsimagedelegate/1519927-imagedidnotdraw?language=objc -func (i_ ImageDelegateWrapper) ImageDidNotDrawInRect(sender IImage, rect foundation.Rect) Image { +func (i_ ImageDelegateObject) ImageDidNotDrawInRect(sender Image, rect foundation.Rect) Image { rv := objc.Call[Image](i_, objc.Sel("imageDidNotDraw:inRect:"), objc.Ptr(sender), rect) return rv } diff --git a/macos/appkit/image_rep.gen.go b/macos/appkit/image_rep.gen.go index 25788d9f..e09f4bae 100644 --- a/macos/appkit/image_rep.gen.go +++ b/macos/appkit/image_rep.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package appkit @@ -20,26 +20,27 @@ type _ImageRepClass struct { // An interface definition for the [ImageRep] class. type IImageRep interface { objc.IObject - DrawAtPoint(point foundation.Point) bool + 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 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] @@ -65,10 +66,6 @@ func (ic _ImageRepClass) Alloc() ImageRep { return rv } -func ImageRep_Alloc() ImageRep { - return ImageRepClass.Alloc() -} - func (ic _ImageRepClass) New() ImageRep { rv := objc.Call[ImageRep](ic, objc.Sel("new")) rv.Autorelease() @@ -79,27 +76,27 @@ func NewImageRep() ImageRep { return ImageRepClass.New() } -// Creates and returns an image representation object using the contents of the specified file. [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/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/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, objc.Ptr(context), hints) return rv } -// Creates and returns an image representation object using the contents of the specified file. [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/1534589-imagerepwithcontentsoffile?language=objc -func ImageRep_ImageRepWithContentsOfFile(filename string) ImageRep { - return ImageRepClass.ImageRepWithContentsOfFile(filename) +// [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 the image representation’s image data at the specified point 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/1525632-drawatpoint?language=objc -func (i_ ImageRep) DrawAtPoint(point foundation.Point) bool { - rv := objc.Call[bool](i_, objc.Sel("drawAtPoint:"), point) - 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 specified URL. [Full Topic] @@ -117,35 +114,35 @@ func ImageRep_ImageRepsWithContentsOfURL(url foundation.IURL) []ImageRep { return ImageRepClass.ImageRepsWithContentsOfURL(url) } -// Returns the image representation subclass that handles the specified type of data. [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/1534272-imagerepclassfordata?language=objc -func (ic _ImageRepClass) ImageRepClassForData(data []byte) objc.Class { - rv := objc.Call[objc.Class](ic, objc.Sel("imageRepClassForData:"), data) +// [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 } -// Returns the image representation subclass that handles the specified type of data. [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/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/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 } -// Draws the image, scaling it (as needed) to fit the specified rectangle. [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/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/1535586-imagerepswithpasteboard?language=objc +func (ic _ImageRepClass) ImageRepsWithPasteboard(pasteboard IPasteboard) []ImageRep { + rv := objc.Call[[]ImageRep](ic, objc.Sel("imageRepsWithPasteboard:"), objc.Ptr(pasteboard)) return rv } -// Implemented by subclasses to draw the image in the current coordinate system. [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/1526674-draw?language=objc -func (i_ ImageRep) Draw() bool { - rv := objc.Call[bool](i_, objc.Sel("draw")) - return rv +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsimagerep/1535586-imagerepswithpasteboard?language=objc +func ImageRep_ImageRepsWithPasteboard(pasteboard IPasteboard) []ImageRep { + return ImageRepClass.ImageRepsWithPasteboard(pasteboard) } // Creates and returns an image representation object using the contents of the specified pasteboard. [Full Topic] @@ -163,21 +160,6 @@ 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 @@ -193,19 +175,27 @@ func ImageRep_ImageRepWithContentsOfURL(url foundation.IURL) ImageRep { return ImageRepClass.ImageRepWithContentsOfURL(url) } -// Returns a Boolean value that indicates whether the receiver can initialize itself from the data on the specified pasteboard. [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/1527887-caninitwithpasteboard?language=objc -func (ic _ImageRepClass) CanInitWithPasteboard(pasteboard IPasteboard) bool { - rv := objc.Call[bool](ic, objc.Sel("canInitWithPasteboard:"), objc.Ptr(pasteboard)) +// [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 receiver can initialize itself from the data on the specified pasteboard. [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/1527887-caninitwithpasteboard?language=objc -func ImageRep_CanInitWithPasteboard(pasteboard IPasteboard) bool { - return ImageRepClass.CanInitWithPasteboard(pasteboard) +// [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 +} + +// 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/1535427-caninitwithdata?language=objc +func ImageRep_CanInitWithData(data []byte) bool { + return ImageRepClass.CanInitWithData(data) } // Removes the specified image representation subclass from the registry of available image representations. [Full Topic] @@ -222,86 +212,101 @@ func ImageRep_UnregisterImageRepClass(imageRepClass objc.IClass) { ImageRepClass.UnregisterImageRepClass(imageRepClass) } -// Returns a Boolean value that indicates whether the image representation can initialize itself from the specified data. [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/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/1526674-draw?language=objc +func (i_ ImageRep) Draw() bool { + rv := objc.Call[bool](i_, objc.Sel("draw")) return rv } -// Returns a Boolean value that indicates whether the image representation can initialize itself from the specified data. [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/1535427-caninitwithdata?language=objc -func ImageRep_CanInitWithData(data []byte) bool { - return ImageRepClass.CanInitWithData(data) +// [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:"), objc.Ptr(imageRepClass)) } -// Creates and returns an array of image representation objects initialized using the contents of the specified file. [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/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/1535393-registerimagerepclass?language=objc +func ImageRep_RegisterImageRepClass(imageRepClass objc.IClass) { + ImageRepClass.RegisterImageRepClass(imageRepClass) +} + +// 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/1534589-imagerepwithcontentsoffile?language=objc +func (ic _ImageRepClass) ImageRepWithContentsOfFile(filename string) ImageRep { + rv := objc.Call[ImageRep](ic, objc.Sel("imageRepWithContentsOfFile:"), filename) 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 image representation object using the contents of the specified file. [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/1534589-imagerepwithcontentsoffile?language=objc +func ImageRep_ImageRepWithContentsOfFile(filename string) ImageRep { + return ImageRepClass.ImageRepWithContentsOfFile(filename) } -// Adds the specified class to the registry of available image representation subclasses. [Full Topic] +// Returns the image representation subclass that handles image data for the specified UTI. [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:"), objc.Ptr(imageRepClass)) +// [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 } -// Adds the specified class to the registry of available image representation subclasses. [Full Topic] +// Returns the image representation subclass that handles image data for the specified UTI. [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/1529342-imagerepclassfortype?language=objc +func ImageRep_ImageRepClassForType(type_ string) objc.Class { + return ImageRepClass.ImageRepClassForType(type_) } -// Returns a Core Graphics image object that captures the drawing of the image. [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/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, objc.Ptr(context), hints) +// [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:"), objc.Ptr(pasteboard)) return rv } -// Creates and returns an array of image representation objects initialized using the contents of the pasteboard. [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/1535586-imagerepswithpasteboard?language=objc -func (ic _ImageRepClass) ImageRepsWithPasteboard(pasteboard IPasteboard) []ImageRep { - rv := objc.Call[[]ImageRep](ic, objc.Sel("imageRepsWithPasteboard:"), objc.Ptr(pasteboard)) +// [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] +// +// [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 array of image representation objects initialized using the contents of the pasteboard. [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/1535586-imagerepswithpasteboard?language=objc -func ImageRep_ImageRepsWithPasteboard(pasteboard IPasteboard) []ImageRep { - return ImageRepClass.ImageRepsWithPasteboard(pasteboard) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsimagerep/1526968-imagerepswithcontentsoffile?language=objc +func ImageRep_ImageRepsWithContentsOfFile(filename string) []ImageRep { + return ImageRepClass.ImageRepsWithContentsOfFile(filename) } -// The layout direction for the image. [Full Topic] +// Returns an array containing the registered image representation classes. [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/1525139-registeredimagerepclasses?language=objc +func (ic _ImageRepClass) RegisteredImageRepClasses() []objc.Class { + rv := objc.Call[[]objc.Class](ic, objc.Sel("registeredImageRepClasses")) return rv } -// The layout direction for the image. [Full Topic] +// Returns an array containing the registered image representation classes. [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/1525139-registeredimagerepclasses?language=objc +func ImageRep_RegisteredImageRepClasses() []objc.Class { + return ImageRepClass.RegisteredImageRepClasses() } // The name of the color space used by the image data. [Full Topic] @@ -319,6 +324,21 @@ 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 @@ -334,34 +354,34 @@ func ImageRep_ImageTypes() []string { return ImageRepClass.ImageTypes() } -// A Boolean value that indicates whether the image is opaque. [Full Topic] +// 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/1528462-opaque?language=objc -func (i_ ImageRep) IsOpaque() bool { - rv := objc.Call[bool](i_, objc.Sel("isOpaque")) +// [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 } -// A Boolean value that indicates whether the image is opaque. [Full Topic] +// 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/1528462-opaque?language=objc -func (i_ ImageRep) SetOpaque(value bool) { - objc.Call[objc.Void](i_, objc.Sel("setOpaque:"), value) +// [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 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() } // A Boolean value that indicates whether the image data has an alpha channel. [Full Topic] @@ -379,64 +399,34 @@ func (i_ ImageRep) SetAlpha(value bool) { objc.Call[objc.Void](i_, objc.Sel("setAlpha:"), 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 directly by the ime representation. [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")) - return rv -} - -// 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/1534816-imageunfilteredtypes?language=objc -func ImageRep_ImageUnfilteredTypes() []string { - return ImageRepClass.ImageUnfilteredTypes() -} - -// 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 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] +// The width of the image, measured in pixels. [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/1526995-pixelswide?language=objc +func (i_ ImageRep) PixelsWide() int { + rv := objc.Call[int](i_, objc.Sel("pixelsWide")) 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] +// The width of the image, measured in pixels. [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/1526995-pixelswide?language=objc +func (i_ ImageRep) SetPixelsWide(value int) { + objc.Call[objc.Void](i_, objc.Sel("setPixelsWide:"), value) } // The size of the image representation, measured in points in the user coordinate space. [Full Topic] @@ -453,3 +443,18 @@ 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 a4d2675e..86ceaa84 100644 --- a/macos/appkit/image_symbol_configuration.gen.go +++ b/macos/appkit/image_symbol_configuration.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package appkit @@ -33,30 +33,6 @@ 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 @@ -81,6 +57,18 @@ 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 @@ -105,6 +93,18 @@ 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:"), objc.Ptr(configuration)) return rv @@ -119,13 +119,33 @@ func ImageSymbolConfiguration_ConfigurationByApplyingConfiguration(configuration return instance } -func (ic _ImageSymbolConfigurationClass) Alloc() ImageSymbolConfiguration { - rv := objc.Call[ImageSymbolConfiguration](ic, objc.Sel("alloc")) +func (ic _ImageSymbolConfigurationClass) ConfigurationWithTextStyleScale(style FontTextStyle, scale ImageSymbolScale) ImageSymbolConfiguration { + rv := objc.Call[ImageSymbolConfiguration](ic, objc.Sel("configurationWithTextStyle:scale:"), style, scale) return rv } -func ImageSymbolConfiguration_Alloc() ImageSymbolConfiguration { - return ImageSymbolConfigurationClass.Alloc() +// 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 } func (ic _ImageSymbolConfigurationClass) New() ImageSymbolConfiguration { diff --git a/macos/appkit/image_view.gen.go b/macos/appkit/image_view.gen.go index f3796288..4940dc11 100644 --- a/macos/appkit/image_view.gen.go +++ b/macos/appkit/image_view.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package appkit @@ -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) - SymbolConfiguration() ImageSymbolConfiguration - SetSymbolConfiguration(value IImageSymbolConfiguration) + ContentTintColor() Color + SetContentTintColor(value IColor) ImageFrameStyle() ImageFrameStyle SetImageFrameStyle(value ImageFrameStyle) - Animates() bool - SetAnimates(value bool) - Image() Image - SetImage(value IImage) + IsEditable() bool + SetEditable(value bool) } // A display of image data in a frame. [Full Topic] @@ -69,10 +69,6 @@ func (ic _ImageViewClass) Alloc() ImageView { return rv } -func ImageView_Alloc() ImageView { - return ImageViewClass.Alloc() -} - func (ic _ImageViewClass) New() ImageView { rv := objc.Call[ImageView](ic, objc.Sel("new")) rv.Autorelease() @@ -102,34 +98,64 @@ 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:"), objc.Ptr(value)) +} + // [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:"), objc.Ptr(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:"), objc.Ptr(value)) } -// The alignment of the cell’s image inside 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/1404963-imagealignment?language=objc -func (i_ ImageView) ImageAlignment() ImageAlignment { - rv := objc.Call[ImageAlignment](i_, objc.Sel("imageAlignment")) +// [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 } -// The alignment of the cell’s image inside 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/1404963-imagealignment?language=objc -func (i_ ImageView) SetImageAlignment(value ImageAlignment) { - objc.Call[objc.Void](i_, objc.Sel("setImageAlignment:"), 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) } // A Boolean value indicating whether the image view lets the user cut, copy, and paste the image contents. [Full Topic] @@ -147,21 +173,6 @@ 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 @@ -179,17 +190,17 @@ func (i_ ImageView) SetImageScaling(value ImageScaling) { // [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:"), objc.Ptr(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:"), objc.Ptr(value)) } // The style of frame that appears around the image. [Full Topic] @@ -207,32 +218,17 @@ func (i_ ImageView) SetImageFrameStyle(value ImageFrameStyle) { objc.Call[objc.Void](i_, objc.Sel("setImageFrameStyle:"), value) } -// A Boolean value indicating whether the image view automatically plays animated images. [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")) - return rv -} - -// A Boolean value indicating whether the image view automatically plays animated images. [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) -} - -// The image displayed by the image view. [Full Topic] +// 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/1404952-image?language=objc -func (i_ ImageView) Image() Image { - rv := objc.Call[Image](i_, objc.Sel("image")) +// [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 } -// The image displayed by the image view. [Full Topic] +// 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/1404952-image?language=objc -func (i_ ImageView) SetImage(value IImage) { - objc.Call[objc.Void](i_, objc.Sel("setImage:"), objc.Ptr(value)) +// [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) } diff --git a/macos/appkit/input_manager.gen.go b/macos/appkit/input_manager.gen.go index 14ead36a..b8e14470 100644 --- a/macos/appkit/input_manager.gen.go +++ b/macos/appkit/input_manager.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package appkit @@ -38,10 +38,6 @@ func (ic _InputManagerClass) Alloc() InputManager { return rv } -func InputManager_Alloc() InputManager { - return InputManagerClass.Alloc() -} - func (ic _InputManagerClass) New() InputManager { rv := objc.Call[InputManager](ic, objc.Sel("new")) rv.Autorelease() diff --git a/macos/appkit/input_server.gen.go b/macos/appkit/input_server.gen.go index 9f364393..81dbc3a1 100644 --- a/macos/appkit/input_server.gen.go +++ b/macos/appkit/input_server.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package appkit @@ -38,10 +38,6 @@ func (ic _InputServerClass) Alloc() InputServer { return rv } -func InputServer_Alloc() InputServer { - return InputServerClass.Alloc() -} - func (ic _InputServerClass) New() InputServer { rv := objc.Call[InputServer](ic, objc.Sel("new")) rv.Autorelease() diff --git a/macos/appkit/input_server_mouse_tracker.gen.go b/macos/appkit/input_server_mouse_tracker.gen.go deleted file mode 100644 index b3e837a6..00000000 --- a/macos/appkit/input_server_mouse_tracker.gen.go +++ /dev/null @@ -1,18 +0,0 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY - -package appkit - -import ( - "github.com/progrium/macdriver/objc" -) - -// [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsinputservermousetracker?language=objc -type PInputServerMouseTracker interface { -} - -// A concrete type wrapper for the [PInputServerMouseTracker] protocol. -type InputServerMouseTrackerWrapper struct { - objc.Object -} diff --git a/macos/appkit/input_server_mouse_tracker_protocol.gen.go b/macos/appkit/input_server_mouse_tracker_protocol.gen.go new file mode 100644 index 00000000..c4481eff --- /dev/null +++ b/macos/appkit/input_server_mouse_tracker_protocol.gen.go @@ -0,0 +1,21 @@ +// Code generated by DarwinKit. DO NOT EDIT. + +package appkit + +import ( + "github.com/progrium/macdriver/objc" +) + +// [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsinputservermousetracker?language=objc +type PInputServerMouseTracker interface { +} + +// ensure impl type implements protocol interface +var _ PInputServerMouseTracker = (*InputServerMouseTrackerObject)(nil) + +// A concrete type for the [PInputServerMouseTracker] protocol. +type InputServerMouseTrackerObject struct { + objc.Object +} diff --git a/macos/appkit/input_service_provider.gen.go b/macos/appkit/input_service_provider.gen.go deleted file mode 100644 index 7a0bd34c..00000000 --- a/macos/appkit/input_service_provider.gen.go +++ /dev/null @@ -1,18 +0,0 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY - -package appkit - -import ( - "github.com/progrium/macdriver/objc" -) - -// [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsinputserviceprovider?language=objc -type PInputServiceProvider interface { -} - -// A concrete type wrapper for the [PInputServiceProvider] protocol. -type InputServiceProviderWrapper struct { - objc.Object -} diff --git a/macos/appkit/input_service_provider_protocol.gen.go b/macos/appkit/input_service_provider_protocol.gen.go new file mode 100644 index 00000000..8ed365d1 --- /dev/null +++ b/macos/appkit/input_service_provider_protocol.gen.go @@ -0,0 +1,21 @@ +// Code generated by DarwinKit. DO NOT EDIT. + +package appkit + +import ( + "github.com/progrium/macdriver/objc" +) + +// [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsinputserviceprovider?language=objc +type PInputServiceProvider interface { +} + +// ensure impl type implements protocol interface +var _ PInputServiceProvider = (*InputServiceProviderObject)(nil) + +// A concrete type for the [PInputServiceProvider] protocol. +type InputServiceProviderObject struct { + objc.Object +} diff --git a/macos/appkit/layout_anchor.gen.go b/macos/appkit/layout_anchor.gen.go index b61a9236..26e60052 100644 --- a/macos/appkit/layout_anchor.gen.go +++ b/macos/appkit/layout_anchor.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package appkit @@ -19,11 +19,14 @@ type _LayoutAnchorClass struct { type ILayoutAnchor interface { objc.IObject ConstraintLessThanOrEqualToAnchor(anchor ILayoutAnchor) LayoutConstraint - ConstraintEqualToAnchor(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 Item() objc.Object Name() string - ConstraintsAffectingLayout() []LayoutConstraint HasAmbiguousLayout() bool } @@ -45,10 +48,6 @@ func (lc _LayoutAnchorClass) Alloc() LayoutAnchor { return rv } -func LayoutAnchor_Alloc() LayoutAnchor { - return LayoutAnchorClass.Alloc() -} - func (lc _LayoutAnchorClass) New() LayoutAnchor { rv := objc.Call[LayoutAnchor](lc, objc.Sel("new")) rv.Autorelease() @@ -72,11 +71,11 @@ func (l_ LayoutAnchor) ConstraintLessThanOrEqualToAnchor(anchor ILayoutAnchor) L return rv } -// Returns a constraint that defines one item’s attribute as equal to another. [Full Topic] +// 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/1500946-constraintequaltoanchor?language=objc -func (l_ LayoutAnchor) ConstraintEqualToAnchor(anchor ILayoutAnchor) LayoutConstraint { - rv := objc.Call[LayoutConstraint](l_, objc.Sel("constraintEqualToAnchor:"), objc.Ptr(anchor)) +// [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:"), objc.Ptr(anchor), c) return rv } @@ -88,19 +87,27 @@ func (l_ LayoutAnchor) ConstraintGreaterThanOrEqualToAnchor(anchor ILayoutAnchor return rv } -// The layout item used to calculate the anchor’s position. [Full Topic] +// Returns a constraint that defines one item’s attribute as equal to another. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nslayoutanchor/2870025-item?language=objc -func (l_ LayoutAnchor) Item() objc.Object { - rv := objc.Call[objc.Object](l_, objc.Sel("item")) +// [Full Topic]: https://developer.apple.com/documentation/uikit/nslayoutanchor/1500946-constraintequaltoanchor?language=objc +func (l_ LayoutAnchor) ConstraintEqualToAnchor(anchor ILayoutAnchor) LayoutConstraint { + rv := objc.Call[LayoutConstraint](l_, objc.Sel("constraintEqualToAnchor:"), objc.Ptr(anchor)) return rv } -// The name assigned to the anchor for debugging purposes. [Full Topic] +// 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/appkit/nslayoutanchor/2870022-name?language=objc -func (l_ LayoutAnchor) Name() string { - rv := objc.Call[string](l_, objc.Sel("name")) +// [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:"), objc.Ptr(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:"), objc.Ptr(anchor), c) return rv } @@ -112,6 +119,22 @@ func (l_ LayoutAnchor) ConstraintsAffectingLayout() []LayoutConstraint { return rv } +// The layout item used to calculate the anchor’s position. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/appkit/nslayoutanchor/2870025-item?language=objc +func (l_ LayoutAnchor) Item() objc.Object { + rv := objc.Call[objc.Object](l_, objc.Sel("item")) + return rv +} + +// The name assigned to the anchor for debugging purposes. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/appkit/nslayoutanchor/2870022-name?language=objc +func (l_ LayoutAnchor) Name() string { + rv := objc.Call[string](l_, objc.Sel("name")) + 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 0659a7fd..2d0b7995 100644 --- a/macos/appkit/layout_constraint.gen.go +++ b/macos/appkit/layout_constraint.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package appkit @@ -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] @@ -68,10 +68,6 @@ func (lc _LayoutConstraintClass) Alloc() LayoutConstraint { return rv } -func LayoutConstraint_Alloc() LayoutConstraint { - return LayoutConstraintClass.Alloc() -} - func (lc _LayoutConstraintClass) New() LayoutConstraint { rv := objc.Call[LayoutConstraint](lc, objc.Sel("new")) rv.Autorelease() @@ -138,6 +134,22 @@ 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 @@ -153,6 +165,29 @@ 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 @@ -161,6 +196,29 @@ 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 @@ -176,14 +234,6 @@ 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 @@ -200,22 +250,6 @@ 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 @@ -230,41 +264,3 @@ 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 3e0881d4..7f13a694 100644 --- a/macos/appkit/layout_dimension.gen.go +++ b/macos/appkit/layout_dimension.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package appkit @@ -18,12 +18,15 @@ 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 - ConstraintLessThanOrEqualToConstant(c float64) LayoutConstraint + ConstraintLessThanOrEqualToAnchorMultiplierConstant(anchor ILayoutDimension, m float64, 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] @@ -44,10 +47,6 @@ func (lc _LayoutDimensionClass) Alloc() LayoutDimension { return rv } -func LayoutDimension_Alloc() LayoutDimension { - return LayoutDimensionClass.Alloc() -} - func (lc _LayoutDimensionClass) New() LayoutDimension { rv := objc.Call[LayoutDimension](lc, objc.Sel("new")) rv.Autorelease() @@ -63,22 +62,6 @@ func (l_ LayoutDimension) Init() LayoutDimension { 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] -// -// [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:"), objc.Ptr(anchor), m) - return rv -} - -// Returns a constraint that defines the anchor’s size attribute as equal to the specified size attribute multiplied by a constant plus an offset. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/uikit/nslayoutdimension/1500934-constraintequaltoanchor?language=objc -func (l_ LayoutDimension) ConstraintEqualToAnchorMultiplierConstant(anchor ILayoutDimension, m float64, c float64) LayoutConstraint { - rv := objc.Call[LayoutConstraint](l_, objc.Sel("constraintEqualToAnchor:multiplier:constant:"), objc.Ptr(anchor), m, c) - 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 @@ -87,11 +70,11 @@ func (l_ LayoutDimension) ConstraintEqualToConstant(c float64) LayoutConstraint 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 plus an offset. [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/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:"), objc.Ptr(anchor), m, c) return rv } @@ -103,6 +86,22 @@ func (l_ LayoutDimension) ConstraintGreaterThanOrEqualToConstant(c float64) Layo return rv } +// Returns a constraint that defines the anchor’s size attribute as 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:"), objc.Ptr(anchor), m) + return rv +} + +// Returns a constraint that defines the anchor’s size attribute as equal to the specified size attribute multiplied by a constant plus an offset. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/uikit/nslayoutdimension/1500934-constraintequaltoanchor?language=objc +func (l_ LayoutDimension) ConstraintEqualToAnchorMultiplierConstant(anchor ILayoutDimension, m float64, c float64) LayoutConstraint { + rv := objc.Call[LayoutConstraint](l_, objc.Sel("constraintEqualToAnchor:multiplier:constant:"), objc.Ptr(anchor), m, 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. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/uikit/nslayoutdimension/1500961-constraintgreaterthanorequaltoan?language=objc @@ -110,3 +109,27 @@ func (l_ LayoutDimension) ConstraintGreaterThanOrEqualToAnchorMultiplier(anchor rv := objc.Call[LayoutConstraint](l_, objc.Sel("constraintGreaterThanOrEqualToAnchor:multiplier:"), objc.Ptr(anchor), m) 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/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:"), objc.Ptr(anchor), m, 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] +// +// [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:"), objc.Ptr(anchor), m) + return rv +} + +// 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/1500963-constraintlessthanorequaltoconst?language=objc +func (l_ LayoutDimension) ConstraintLessThanOrEqualToConstant(c float64) LayoutConstraint { + rv := objc.Call[LayoutConstraint](l_, objc.Sel("constraintLessThanOrEqualToConstant:"), c) + return rv +} diff --git a/macos/appkit/layout_guide.gen.go b/macos/appkit/layout_guide.gen.go index 5fc8e0f8..429da793 100644 --- a/macos/appkit/layout_guide.gen.go +++ b/macos/appkit/layout_guide.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package appkit @@ -20,22 +20,22 @@ type _LayoutGuideClass struct { type ILayoutGuide interface { objc.IObject ConstraintsAffectingLayoutForOrientation(orientation LayoutConstraintOrientation) []LayoutConstraint - TopAnchor() LayoutYAxisAnchor - LeftAnchor() LayoutXAxisAnchor - CenterYAnchor() LayoutYAxisAnchor - RightAnchor() LayoutXAxisAnchor - BottomAnchor() LayoutYAxisAnchor - HeightAnchor() LayoutDimension TrailingAnchor() LayoutXAxisAnchor - LeadingAnchor() LayoutXAxisAnchor - Frame() foundation.Rect + CenterYAnchor() LayoutYAxisAnchor OwningView() View SetOwningView(value IView) - HasAmbiguousLayout() bool + TopAnchor() LayoutYAxisAnchor + BottomAnchor() LayoutYAxisAnchor 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] @@ -56,10 +56,6 @@ func (lc _LayoutGuideClass) Alloc() LayoutGuide { return rv } -func LayoutGuide_Alloc() LayoutGuide { - return LayoutGuideClass.Alloc() -} - func (lc _LayoutGuideClass) New() LayoutGuide { rv := objc.Call[LayoutGuide](lc, objc.Sel("new")) rv.Autorelease() @@ -83,19 +79,11 @@ func (l_ LayoutGuide) ConstraintsAffectingLayoutForOrientation(orientation Layou return rv } -// A layout anchor representing the top edge 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")) - return rv -} - -// A layout anchor representing the left 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/1530723-leftanchor?language=objc -func (l_ LayoutGuide) LeftAnchor() LayoutXAxisAnchor { - rv := objc.Call[LayoutXAxisAnchor](l_, objc.Sel("leftAnchor")) +// [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 } @@ -107,67 +95,66 @@ func (l_ LayoutGuide) CenterYAnchor() LayoutYAxisAnchor { return rv } -// A layout anchor representing the right edge of the layout guide’s frame. [Full Topic] +// The view that owns this layout guide. [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")) +// [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 layout anchor representing the bottom edge of the layout guide’s frame. [Full Topic] +// The view that owns this layout guide. [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")) - return rv +// [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:"), objc.Ptr(value)) } -// A layout anchor representing the height 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/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/1534159-topanchor?language=objc +func (l_ LayoutGuide) TopAnchor() LayoutYAxisAnchor { + rv := objc.Call[LayoutYAxisAnchor](l_, objc.Sel("topAnchor")) return rv } -// A layout anchor representing the trailing edge of the layout guide’s frame. [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/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/1529133-bottomanchor?language=objc +func (l_ LayoutGuide) BottomAnchor() LayoutYAxisAnchor { + rv := objc.Call[LayoutYAxisAnchor](l_, objc.Sel("bottomAnchor")) 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 layout anchor representing the height of the layout guide’s frame. [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/1532150-heightanchor?language=objc +func (l_ LayoutGuide) HeightAnchor() LayoutDimension { + rv := objc.Call[LayoutDimension](l_, objc.Sel("heightAnchor")) return rv } -// The view that owns this layout guide. [Full Topic] +// A string used to identify the layout guide. [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/1524460-identifier?language=objc +func (l_ LayoutGuide) Identifier() UserInterfaceItemIdentifier { + rv := objc.Call[UserInterfaceItemIdentifier](l_, objc.Sel("identifier")) return rv } -// The view that owns this layout guide. [Full Topic] +// A string used to identify the layout guide. [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:"), objc.Ptr(value)) +// [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] @@ -178,29 +165,22 @@ func (l_ LayoutGuide) HasAmbiguousLayout() bool { 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 string used to identify the layout guide. [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/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/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] -// -// [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 @@ -208,3 +188,19 @@ 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 8385ab69..9b4e9f40 100644 --- a/macos/appkit/layout_manager.gen.go +++ b/macos/appkit/layout_manager.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package appkit @@ -20,119 +20,130 @@ 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 - EnsureGlyphsForGlyphRange(glyphRange foundation.Range) + 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 EnsureLayoutForCharacterRange(charRange foundation.Range) - SetNotShownAttributeForGlyphAtIndex(flag bool, glyphIndex uint) - EnsureLayoutForGlyphRange(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 + LineFragmentUsedRectForGlyphAtIndexEffectiveRangeWithoutAdditionalLayout(glyphIndex uint, effectiveGlyphRange foundation.RangePointer, flag bool) foundation.Rect + 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) 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) - 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) + 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 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 - GlyphRangeForTextContainer(container ITextContainer) foundation.Range - TextContainerForGlyphAtIndexEffectiveRange(glyphIndex uint, effectiveGlyphRange foundation.RangePointer) TextContainer + 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 GlyphRangeForCharacterRangeActualCharacterRange(charRange foundation.Range, actualCharRange foundation.RangePointer) foundation.Range - 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) + 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) FirstUnlaidGlyphIndex() uint - 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) - 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) + SetTextContainerForGlyphRange(container ITextContainer, glyphRange foundation.Range) + TextContainerChangedGeometry(container ITextContainer) + FillBackgroundRectArrayCountForCharacterRangeColor(rectArray *foundation.Rect, rectCount uint, charRange foundation.Range, color IColor) FirstUnlaidCharacterIndex() uint - 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 + TypesetterBehavior() TypesetterBehavior + SetTypesetterBehavior(value TypesetterBehavior) + DefaultAttachmentScaling() ImageScaling + SetDefaultAttachmentScaling(value ImageScaling) + Typesetter() Typesetter + SetTypesetter(value ITypesetter) + FirstTextView() TextView + GlyphGenerator() GlyphGenerator + SetGlyphGenerator(value IGlyphGenerator) TextViewForBeginningOfSelection() TextView - HasNonContiguousLayout() bool + BackgroundLayoutEnabled() bool + SetBackgroundLayoutEnabled(value bool) + NumberOfGlyphs() uint UsesDefaultHyphenation() bool SetUsesDefaultHyphenation(value bool) - NumberOfGlyphs() uint - Typesetter() Typesetter - SetTypesetter(value ITypesetter) - Delegate() LayoutManagerDelegateWrapper - SetDelegate(value PLayoutManagerDelegate) - SetDelegateObject(valueObject objc.IObject) + TextContainers() []TextContainer AllowsNonContiguousLayout() bool SetAllowsNonContiguousLayout(value bool) - LimitsLayoutForSuspiciousContents() bool - SetLimitsLayoutForSuspiciousContents(value bool) - GlyphGenerator() GlyphGenerator - SetGlyphGenerator(value IGlyphGenerator) UsesFontLeading() bool SetUsesFontLeading(value bool) - TypesetterBehavior() TypesetterBehavior - SetTypesetterBehavior(value TypesetterBehavior) - TextContainers() []TextContainer - FirstTextView() TextView - BackgroundLayoutEnabled() bool - SetBackgroundLayoutEnabled(value bool) - ExtraLineFragmentUsedRect() coregraphics.Rect + Delegate() LayoutManagerDelegateObject + SetDelegate(value PLayoutManagerDelegate) + SetDelegateObject(valueObject objc.IObject) + ExtraLineFragmentTextContainer() TextContainer TextStorage() TextStorage SetTextStorage(value ITextStorage) - DefaultAttachmentScaling() ImageScaling - SetDefaultAttachmentScaling(value ImageScaling) - ExtraLineFragmentTextContainer() TextContainer + LimitsLayoutForSuspiciousContents() bool + SetLimitsLayoutForSuspiciousContents(value bool) + ShowsInvisibleCharacters() bool + SetShowsInvisibleCharacters(value bool) + ExtraLineFragmentUsedRect() foundation.Rect + ExtraLineFragmentRect() foundation.Rect + ShowsControlCharacters() bool + SetShowsControlCharacters(value bool) + HasNonContiguousLayout() bool } // An object that coordinates the layout and display of text characters. [Full Topic] @@ -158,10 +169,6 @@ func (lc _LayoutManagerClass) Alloc() LayoutManager { return rv } -func LayoutManager_Alloc() LayoutManager { - return LayoutManagerClass.Alloc() -} - func (lc _LayoutManagerClass) New() LayoutManager { rv := objc.Call[LayoutManager](lc, objc.Sel("new")) rv.Autorelease() @@ -172,49 +179,64 @@ func NewLayoutManager() LayoutManager { return LayoutManagerClass.New() } -// Indicates whether the glyph draws outside its line fragment rectangle. [Full Topic] +// Returns the dictionary of temporary attributes 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) +// [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 } -// Sets the location for the first glyph in the specified 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/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) +// [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) } -// Associates a text container with the specified range of glyphs. [Full Topic] +// Sets the bounding rectangle that encloses the specified text block and glyph range. [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:"), objc.Ptr(container), glyphRange) +// [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, objc.Ptr(block), glyphRange) } -// Returns the index of the glyph at the specified location in a text container. [Full Topic] +// Returns the temporary attributes for a character, and the maximum range they apply to. [Full Topic] // -// [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, objc.Ptr(container)) +// [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 } -// Returns the usage rectangle for the line fragment and (optionally) returns the entire range of glyphs in that fragment. [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/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) +// [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:"), objc.Ptr(theFont)) return rv } -// Returns the range of truncated glyphs for a line fragment that contains the specified index. [Full Topic] +// Returns the bounding rectangle for the specified text block and glyph. [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) +// [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:"), objc.Ptr(block), 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:"), objc.Ptr(cell), rect, attachmentIndex) +} + +// 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:"), objc.Ptr(block), glyphRange) return rv } @@ -225,33 +247,56 @@ func (l_ LayoutManager) TextContainerChangedTextView(container ITextContainer) { objc.Call[objc.Void](l_, objc.Sel("textContainerChangedTextView:"), objc.Ptr(container)) } -// Returns the dictionary of temporary attributes for 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/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/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:"), objc.Ptr(theFont)) return rv } -// Sets the bounds and container for the extra line fragment. [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/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, objc.Ptr(container)) +// [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) } -// Appends one or more temporary attributes to the attributes dictionary of the specified character range. [Full Topic] +// Returns the accessory view that the text system uses for its ruler. [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) +// [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:"), objc.Ptr(view), objc.Ptr(style), objc.Ptr(ruler), isEnabled) + return rv } -// Sets the bounding rectangle that encloses the specified text block and glyph range. [Full Topic] +// Replaces the layout manager's current text storage object with the specified object. [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, objc.Ptr(block), glyphRange) +// [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:"), objc.Ptr(newTextStorage)) +} + +// Sets the layout rectangle that encloses the specified text block and glyph 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, objc.Ptr(block), glyphRange) +} + +// Returns the value for the temporary attribute of a character, and the range it applies to. [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 } // Indicates whether the first responder in the specified window is a text view for the layout manager. [Full Topic] @@ -262,11 +307,65 @@ func (l_ LayoutManager) LayoutManagerOwnsFirstResponderInWindow(window IWindow) return rv } -// Forces the layout manager to generate glyphs for the specified glyph range if it hasn’t already. [Full Topic] +// Returns an array of text ruler objects for the current selection. [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/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:"), objc.Ptr(view), objc.Ptr(style), objc.Ptr(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:"), objc.Ptr(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:"), objc.Ptr(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:"), objc.Ptr(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] +// +// [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 } // Forces the layout manager to perform layout for the specified character range if it hasn’t already. [Full Topic] @@ -276,11 +375,20 @@ func (l_ LayoutManager) EnsureLayoutForCharacterRange(charRange foundation.Range objc.Call[objc.Void](l_, objc.Sel("ensureLayoutForCharacterRange:"), charRange) } -// Sets the visibility of the glyph at the specified index. [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/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/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] +// +// [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 } // Forces the layout manager to perform layout for the specified glyph range if it hasn’t already. [Full Topic] @@ -290,73 +398,89 @@ func (l_ LayoutManager) EnsureLayoutForGlyphRange(glyphRange foundation.Range) { objc.Call[objc.Void](l_, objc.Sel("ensureLayoutForGlyphRange:"), glyphRange) } -// Returns the index of the first glyph of the character at the specified index. [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/1403001-glyphindexforcharacteratindex?language=objc -func (l_ LayoutManager) GlyphIndexForCharacterAtIndex(charIndex uint) uint { - rv := objc.Call[uint](l_, objc.Sel("glyphIndexForCharacterAtIndex:"), charIndex) +// [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) return rv } -// Draws a strikethrough for the specified glyphs. [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/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) +// [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:"), objc.Ptr(container)) } -// Returns the size of the attachment glyph at the specified index. [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/1403099-attachmentsizeforglyphatindex?language=objc -func (l_ LayoutManager) AttachmentSizeForGlyphAtIndex(glyphIndex uint) coregraphics.Size { - rv := objc.Call[coregraphics.Size](l_, objc.Sel("attachmentSizeForGlyphAtIndex:"), glyphIndex) +// [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, objc.Ptr(container)) return rv } -// Invalidates display 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/uikit/nslayoutmanager/1402924-invalidatedisplayforcharacterran?language=objc -func (l_ LayoutManager) InvalidateDisplayForCharacterRange(charRange foundation.Range) { - objc.Call[objc.Void](l_, objc.Sel("invalidateDisplayForCharacterRange:"), charRange) +// [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 } -// Adds a temporary attribute to the characters in the specified 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/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) +// [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) } -// Sets one or more temporary attributes for the specified character range. [Full Topic] +// Invalidates the layout information for the glyphs that map to 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) +// [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) } // 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) coregraphics.Rect { - rv := objc.Call[coregraphics.Rect](l_, objc.Sel("usedRectForTextContainer:"), objc.Ptr(container)) +func (l_ LayoutManager) UsedRectForTextContainer(container ITextContainer) foundation.Rect { + rv := objc.Call[foundation.Rect](l_, objc.Sel("usedRectForTextContainer:"), objc.Ptr(container)) return rv } -// Removes the text container at the specified index and invalidates the layout as necessary. [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/uikit/nslayoutmanager/1403017-removetextcontaineratindex?language=objc -func (l_ LayoutManager) RemoveTextContainerAtIndex(index uint) { - objc.Call[objc.Void](l_, objc.Sel("removeTextContainerAtIndex:"), index) +// [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 } -// Returns the index of the character that lies beneath the specified point using the specified container's coordinate system. [Full Topic] +// Returns the line fragment rectangle that contains the glyph at the specified glyph index. [Full Topic] // -// [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, objc.Ptr(container), partialFraction) +// [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) 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 @@ -364,174 +488,169 @@ func (l_ LayoutManager) InsertTextContainerAtIndex(container ITextContainer, ind objc.Call[objc.Void](l_, objc.Sel("insertTextContainer:atIndex:"), objc.Ptr(container), index) } -// Appends the specified text container to the series of text containers where the layout manager arranges text. [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/1402946-addtextcontainer?language=objc -func (l_ LayoutManager) AddTextContainer(container ITextContainer) { - objc.Call[objc.Void](l_, objc.Sel("addTextContainer:"), objc.Ptr(container)) +// [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) } -// Returns the default baseline offset that the layout manager's typesetter uses for the specified font. [Full Topic] +// Indicates whether the glyph at the specified index has a visible representation. [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:"), objc.Ptr(theFont)) +// [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 } -// 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] +// Indicates whether the specified index refers to a valid glyph. [Full Topic] // -// [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) +// [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 } -// 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/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) -} - -// Forces the layout manager to perform layout for the specified text container if it hasn’t already. [Full Topic] +// Returns the glyph at the specified index. [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:"), objc.Ptr(container)) +// [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 } -// Draws an attachment cell. [Full Topic] +// Renders the glyphs at the specified positions, using the specified attributes. [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:"), objc.Ptr(cell), rect, attachmentIndex) +// [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, objc.Ptr(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 in the text storage for the first character of the specified glyph. [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/1402944-characterindexforglyphatindex?language=objc +func (l_ LayoutManager) CharacterIndexForGlyphAtIndex(glyphIndex uint) uint { + rv := objc.Call[uint](l_, objc.Sel("characterIndexForGlyphAtIndex:"), glyphIndex) + return rv } -// Returns insertion points in bulk for a specified 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/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) +// [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 } -// Returns the range of glyphs lying within the specified text container. [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/uikit/nslayoutmanager/1403041-glyphrangefortextcontainer?language=objc -func (l_ LayoutManager) GlyphRangeForTextContainer(container ITextContainer) foundation.Range { - rv := objc.Call[foundation.Range](l_, objc.Sel("glyphRangeForTextContainer:"), objc.Ptr(container)) +// [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) return rv } -// Returns the text container that manages the layout for the specified glyph, causing layout to happen as necessary. [Full Topic] +// Associates the line fragment bounds for the specified range of glyphs. [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/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) } -// Returns the range of glyphs that the specified range of characters generates. [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/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/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 } -// Indicates whether the specified glyph exceeds the bounds of the line fragment for its layout. [Full Topic] +// Returns the range of glyphs lying within the specified text container. [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) +// [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:"), objc.Ptr(container)) + return rv } -// Returns the bounding rectangle that encloses the specified text block and glyph range. [Full Topic] +// Invalidates and adjusts the glyphs in the specified character 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:"), objc.Ptr(block), glyphRange) - 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) } -// Fills background rectangles with a color. [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/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, objc.Ptr(color)) +// [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, objc.Ptr(textContainer), block) } -// Renders the glyphs at the specified positions, using the specified attributes. [Full Topic] +// Returns the glyph property of the glyph at the specified index. [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, objc.Ptr(font), textMatrix, attributes, CGContext) +// [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 for the first glyph in the layout manager that isn’t in the layout. [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/1403245-firstunlaidglyphindex?language=objc -func (l_ LayoutManager) FirstUnlaidGlyphIndex() uint { - rv := objc.Call[uint](l_, objc.Sel("firstUnlaidGlyphIndex")) - 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 glyph at the specified index along with information about whether the glyph index is valid. [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/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/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, objc.Ptr(container)) return rv } -// Enumerates line fragments intersecting with the specified glyph range. [Full Topic] +// Calculates and draws strikethrough for the specified glyphs. [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 coregraphics.Rect, usedRect coregraphics.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/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) } -// Invalidates the layout information, and possibly glyphs, for the specified text container and all subsequent text container objects. [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/1403091-textcontainerchangedgeometry?language=objc -func (l_ LayoutManager) TextContainerChangedGeometry(container ITextContainer) { - objc.Call[objc.Void](l_, objc.Sel("textContainerChangedGeometry:"), objc.Ptr(container)) +// [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, objc.Ptr(container)) } -// Replaces the layout manager's current text storage object with the specified object. [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/appkit/nslayoutmanager/1403227-replacetextstorage?language=objc -func (l_ LayoutManager) ReplaceTextStorage(newTextStorage ITextStorage) { - objc.Call[objc.Void](l_, objc.Sel("replaceTextStorage:"), objc.Ptr(newTextStorage)) +// [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) } -// Stores the initial glyphs and glyph properties for a character range. [Full Topic] +// Returns insertion points in bulk for a specified line fragment. [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, objc.Ptr(aFont), glyphRange) +// [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 } -// Enumerates enclosing rectangles for the specified glyph range in a text container. [Full Topic] +// Draws underlining for the glyphs in a specified range. [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 coregraphics.Rect, stop *bool)) { - objc.Call[objc.Void](l_, objc.Sel("enumerateEnclosingRectsForGlyphRange:withinSelectedGlyphRange:inTextContainer:usingBlock:"), glyphRange, selectedRange, objc.Ptr(textContainer), block) +// [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) } -// Sets the layout rectangle that encloses the specified text block and glyph range. [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/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, objc.Ptr(block), glyphRange) +// [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) } // Notifies the layout manager when an edit action changes the contents of its text storage object. [Full Topic] @@ -541,55 +660,58 @@ func (l_ LayoutManager) ProcessEditingForTextStorageEditedRangeChangeInLengthInv objc.Call[objc.Void](l_, objc.Sel("processEditingForTextStorage:edited:range:changeInLength:invalidatedRange:"), objc.Ptr(textStorage), editMask, newCharRange, delta, invalidatedCharRange) } -// Calculates subranges to underline for the specified glyphs and draws the underlining as appropriate. [Full Topic] +// Returns the size of the attachment glyph at the specified index. [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 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) +// [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 } -// Returns the index for the first character in the layout manager that isn’t in the layout. [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/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/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 } -// Draws the specified glyphs, which must lie completely within a single text container. [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/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) +// [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) } -// Associates the line fragment bounds for the specified range of glyphs. [Full Topic] +// Draws a strikethrough for the specified glyphs. [Full Topic] // -// [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) +// [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) } -// Indicates whether the glyph at the specified index has a visible representation. [Full Topic] +// Returns the index of the glyph at the specified point using the container's coordinate system. [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/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, objc.Ptr(container), partialFraction) return rv } -// Calculates and draws strikethrough for the specified glyphs. [Full Topic] +// Fills a passed-in buffer with a sequence of glyphs. [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 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) +// [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 } -// Invalidates and adjusts the glyphs in the specified character range. [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/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/1403112-glyphindexforpoint?language=objc +func (l_ LayoutManager) GlyphIndexForPointInTextContainer(point foundation.Point, container ITextContainer) uint { + rv := objc.Call[uint](l_, objc.Sel("glyphIndexForPoint:inTextContainer:"), point, objc.Ptr(container)) + return rv } // Forces the layout manager to generate glyphs for the specified character range if it hasn’t already. [Full Topic] @@ -599,197 +721,199 @@ func (l_ LayoutManager) EnsureGlyphsForCharacterRange(charRange foundation.Range objc.Call[objc.Void](l_, objc.Sel("ensureGlyphsForCharacterRange:"), charRange) } -// Returns the smallest contiguous range for glyphs lying wholly or partially within the specified rectangle of the text container. [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/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, objc.Ptr(container)) +// [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] +// +// [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, objc.Ptr(container)) return rv } -// Returns an array of text ruler objects for the current selection. [Full Topic] +// Returns the range of glyphs that the specified range of characters generates. [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:"), objc.Ptr(view), objc.Ptr(style), objc.Ptr(ruler)) +// [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 } -// Sets the size to use when drawing a glyph that represents an attachment. [Full Topic] +// Enumerates line fragments intersecting with the specified glyph range. [Full Topic] // -// [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) +// [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) } -// Returns the default line height for a line of text that uses a specified font. [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/1403007-defaultlineheightforfont?language=objc -func (l_ LayoutManager) DefaultLineHeightForFont(theFont IFont) float64 { - rv := objc.Call[float64](l_, objc.Sel("defaultLineHeightForFont:"), objc.Ptr(theFont)) +// [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, objc.Ptr(container)) return rv } -// Forces the layout manager to perform layout for the specified area in the specified text container if it hasn’t already. [Full Topic] +// Returns the text container that manages the layout for the specified glyph. [Full Topic] // -// [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, objc.Ptr(container)) +// [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 } -// Returns the glyph property of the glyph at the specified index. [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/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/1403219-ensureglyphsforglyphrange?language=objc +func (l_ LayoutManager) EnsureGlyphsForGlyphRange(glyphRange foundation.Range) { + objc.Call[objc.Void](l_, objc.Sel("ensureGlyphsForGlyphRange:"), glyphRange) } -// Returns the range of characters that correspond to the glyphs in the specified glyph range. [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/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/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, objc.Ptr(container), partialFraction) return rv } -// Returns the index in the text storage for the first character of the specified glyph. [Full Topic] +// Sets the visibility of the glyph at the specified index. [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/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) } -// Returns the rectangle for the layout of the specified text block and glyph range. [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/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:"), objc.Ptr(block), glyphRange) +// [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 location for the specified glyph within its line fragment. [Full Topic] +// Sets the bounds and container for the extra line fragment. [Full Topic] // -// [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 +// [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, objc.Ptr(container)) } -// Returns the smallest contiguous range for glyphs lying wholly or partially within the specified rectangle of the text container. [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/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, objc.Ptr(container)) +// [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 value for the temporary attribute of a character, and the maximum range it applies to. [Full Topic] +// Stores the initial glyphs and glyph properties for a character range. [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 +// [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, objc.Ptr(aFont), glyphRange) } -// Returns the indexes for the first character and glyph that have invalid layout information. [Full Topic] +// Associates a text container with the specified range of glyphs. [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/1403241-settextcontainer?language=objc +func (l_ LayoutManager) SetTextContainerForGlyphRange(container ITextContainer, glyphRange foundation.Range) { + objc.Call[objc.Void](l_, objc.Sel("setTextContainer:forGlyphRange:"), objc.Ptr(container), glyphRange) } -// Returns the accessory view that the text system uses for its ruler. [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/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:"), objc.Ptr(view), objc.Ptr(style), objc.Ptr(ruler), isEnabled) - return rv +// [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:"), objc.Ptr(container)) } -// Returns the range of displayable glyphs that surround the glyph at the specified index. [Full Topic] +// Fills background rectangles with a color. [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) - return rv +// [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, objc.Ptr(color)) } -// Returns the bounding rectangle for the specified glyphs in a container. [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/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, objc.Ptr(container)) +// [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 fraction of the distance between the glyph at the specified point and the next glyph. [Full Topic] +// The default typesetter behavior. [Full Topic] // -// [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, objc.Ptr(container)) +// [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 } -// Removes a temporary attribute from the list of attributes for the specified character range. [Full Topic] +// The default typesetter behavior. [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) +// [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) } -// Draws underlining for the glyphs in a specified range. [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/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) +// [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 } -// Indicates whether the specified index refers to a valid glyph. [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/1402950-isvalidglyphindex?language=objc -func (l_ LayoutManager) IsValidGlyphIndex(glyphIndex uint) bool { - rv := objc.Call[bool](l_, objc.Sel("isValidGlyphIndex:"), glyphIndex) - return rv +// [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 to substitute visible glyphs for whitespace and other typically invisible characters. [Full Topic] +// The current typesetter. [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/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 to substitute visible glyphs for whitespace and other typically invisible characters. [Full Topic] +// The current typesetter. [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/1403205-typesetter?language=objc +func (l_ LayoutManager) SetTypesetter(value ITypesetter) { + objc.Call[objc.Void](l_, objc.Sel("setTypesetter:"), objc.Ptr(value)) } -// A Boolean value that indicates whether the layout manager substitutes visible glyphs for control characters in the layout. [Full Topic] +// The first text view in the layout manager’s series of text views. [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/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 substitutes visible glyphs for control characters in the layout. [Full Topic] +// The glyph generator that the layout manager uses. [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/1403069-glyphgenerator?language=objc +func (l_ LayoutManager) GlyphGenerator() GlyphGenerator { + rv := objc.Call[GlyphGenerator](l_, objc.Sel("glyphGenerator")) + return rv } -// The rectangle for the extra line fragment at the end of a document. [Full Topic] +// The glyph generator that the layout manager uses. [Full Topic] // -// [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 +// [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:"), objc.Ptr(value)) } // The text view that contains the first glyph in the selection. [Full Topic] @@ -800,27 +924,19 @@ func (l_ LayoutManager) TextViewForBeginningOfSelection() TextView { return rv } -// 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/1403207-hasnoncontiguouslayout?language=objc -func (l_ LayoutManager) HasNonContiguousLayout() bool { - rv := objc.Call[bool](l_, objc.Sel("hasNonContiguousLayout")) - return rv -} - -// A Boolean value that indicates whether the layout manager uses the default hyphenation rules to wrap lines. [Full Topic] +// 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/uikit/nslayoutmanager/3180380-usesdefaulthyphenation?language=objc -func (l_ LayoutManager) UsesDefaultHyphenation() bool { - rv := objc.Call[bool](l_, objc.Sel("usesDefaultHyphenation")) +// [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 uses the default hyphenation rules to wrap lines. [Full Topic] +// 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/uikit/nslayoutmanager/3180380-usesdefaulthyphenation?language=objc -func (l_ LayoutManager) SetUsesDefaultHyphenation(value bool) { - objc.Call[objc.Void](l_, objc.Sel("setUsesDefaultHyphenation:"), value) +// [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] @@ -831,45 +947,29 @@ func (l_ LayoutManager) NumberOfGlyphs() uint { return rv } -// The current typesetter. [Full Topic] +// A Boolean value that indicates whether the layout manager uses the default hyphenation rules to wrap lines. [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/3180380-usesdefaulthyphenation?language=objc +func (l_ LayoutManager) UsesDefaultHyphenation() bool { + rv := objc.Call[bool](l_, objc.Sel("usesDefaultHyphenation")) return rv } -// The current typesetter. [Full Topic] +// A Boolean value that indicates whether the layout manager uses the default hyphenation rules to wrap lines. [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:"), objc.Ptr(value)) +// [Full Topic]: https://developer.apple.com/documentation/uikit/nslayoutmanager/3180380-usesdefaulthyphenation?language=objc +func (l_ LayoutManager) SetUsesDefaultHyphenation(value bool) { + objc.Call[objc.Void](l_, objc.Sel("setUsesDefaultHyphenation:"), value) } -// The layout manager’s delegate. [Full Topic] +// The current text containers of the layout manager. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/uikit/nslayoutmanager/1402920-delegate?language=objc -func (l_ LayoutManager) Delegate() LayoutManagerDelegateWrapper { - rv := objc.Call[LayoutManagerDelegateWrapper](l_, objc.Sel("delegate")) +// [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 layout manager’s delegate. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/uikit/nslayoutmanager/1402920-delegate?language=objc -func (l_ LayoutManager) SetDelegate(value PLayoutManagerDelegate) { - po0 := objc.WrapAsProtocol("NSLayoutManagerDelegate", value) - objc.SetAssociatedObject(l_, objc.AssociationKey("setDelegate"), po0, objc.ASSOCIATION_RETAIN) - objc.Call[objc.Void](l_, objc.Sel("setDelegate:"), po0) -} - -// The layout manager’s delegate. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/uikit/nslayoutmanager/1402920-delegate?language=objc -func (l_ LayoutManager) SetDelegateObject(valueObject objc.IObject) { - objc.Call[objc.Void](l_, objc.Sel("setDelegate:"), objc.Ptr(valueObject)) -} - // 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 @@ -885,139 +985,133 @@ 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] +// 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/3021179-limitslayoutforsuspiciouscontent?language=objc -func (l_ LayoutManager) LimitsLayoutForSuspiciousContents() bool { - rv := objc.Call[bool](l_, objc.Sel("limitsLayoutForSuspiciousContents")) +// [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 avoids laying out unusually long or suspicious input. [Full Topic] +// 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/3021179-limitslayoutforsuspiciouscontent?language=objc -func (l_ LayoutManager) SetLimitsLayoutForSuspiciousContents(value bool) { - objc.Call[objc.Void](l_, objc.Sel("setLimitsLayoutForSuspiciousContents:"), value) +// [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 glyph generator that the layout manager uses. [Full Topic] +// The layout manager’s delegate. [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")) +// [Full Topic]: https://developer.apple.com/documentation/uikit/nslayoutmanager/1402920-delegate?language=objc +func (l_ LayoutManager) Delegate() LayoutManagerDelegateObject { + rv := objc.Call[LayoutManagerDelegateObject](l_, objc.Sel("delegate")) return rv } -// The glyph generator that the layout manager uses. [Full Topic] +// The layout manager’s delegate. [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:"), objc.Ptr(value)) +// [Full Topic]: https://developer.apple.com/documentation/uikit/nslayoutmanager/1402920-delegate?language=objc +func (l_ LayoutManager) SetDelegate(value PLayoutManagerDelegate) { + po0 := objc.WrapAsProtocol("NSLayoutManagerDelegate", value) + objc.SetAssociatedObject(l_, objc.AssociationKey("setDelegate"), po0, objc.ASSOCIATION_RETAIN) + objc.Call[objc.Void](l_, objc.Sel("setDelegate:"), po0) } -// A Boolean value that indicates whether the layout manager uses the leading of the font. [Full Topic] +// The layout manager’s delegate. [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 +// [Full Topic]: https://developer.apple.com/documentation/uikit/nslayoutmanager/1402920-delegate?language=objc +func (l_ LayoutManager) SetDelegateObject(valueObject objc.IObject) { + objc.Call[objc.Void](l_, objc.Sel("setDelegate:"), objc.Ptr(valueObject)) } -// A Boolean value that indicates whether the layout manager uses the leading of the font. [Full Topic] +// The text container for the extra line fragment rectangle. [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/uikit/nslayoutmanager/1403165-extralinefragmenttextcontainer?language=objc +func (l_ LayoutManager) ExtraLineFragmentTextContainer() TextContainer { + rv := objc.Call[TextContainer](l_, objc.Sel("extraLineFragmentTextContainer")) + return rv } -// The default typesetter behavior. [Full Topic] +// The text storage object that contains the content to lay out. [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/1403015-textstorage?language=objc +func (l_ LayoutManager) TextStorage() TextStorage { + rv := objc.Call[TextStorage](l_, objc.Sel("textStorage")) return rv } -// The default typesetter behavior. [Full Topic] +// The text storage object that contains the content to lay out. [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/uikit/nslayoutmanager/1403015-textstorage?language=objc +func (l_ LayoutManager) SetTextStorage(value ITextStorage) { + objc.Call[objc.Void](l_, objc.Sel("setTextStorage:"), objc.Ptr(value)) } -// The current text containers of the layout manager. [Full Topic] +// A Boolean value that indicates whether the layout manager avoids laying out unusually long or suspicious input. [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")) +// [Full Topic]: https://developer.apple.com/documentation/uikit/nslayoutmanager/3021179-limitslayoutforsuspiciouscontent?language=objc +func (l_ LayoutManager) LimitsLayoutForSuspiciousContents() bool { + rv := objc.Call[bool](l_, objc.Sel("limitsLayoutForSuspiciousContents")) return rv } -// The first text view in the layout manager’s series of text views. [Full Topic] +// A Boolean value that indicates whether the layout manager avoids laying out unusually long or suspicious input. [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 +// [Full Topic]: https://developer.apple.com/documentation/uikit/nslayoutmanager/3021179-limitslayoutforsuspiciouscontent?language=objc +func (l_ LayoutManager) SetLimitsLayoutForSuspiciousContents(value bool) { + objc.Call[objc.Void](l_, objc.Sel("setLimitsLayoutForSuspiciousContents:"), value) } -// 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] +// 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/1402952-backgroundlayoutenabled?language=objc -func (l_ LayoutManager) BackgroundLayoutEnabled() bool { - rv := objc.Call[bool](l_, objc.Sel("backgroundLayoutEnabled")) +// [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 } -// 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] +// 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/1402952-backgroundlayoutenabled?language=objc -func (l_ LayoutManager) SetBackgroundLayoutEnabled(value bool) { - objc.Call[objc.Void](l_, objc.Sel("setBackgroundLayoutEnabled:"), 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 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() coregraphics.Rect { - rv := objc.Call[coregraphics.Rect](l_, objc.Sel("extraLineFragmentUsedRect")) +func (l_ LayoutManager) ExtraLineFragmentUsedRect() foundation.Rect { + rv := objc.Call[foundation.Rect](l_, objc.Sel("extraLineFragmentUsedRect")) return rv } -// The text storage object that contains the content to lay out. [Full Topic] +// The rectangle for the extra line fragment at the end of a document. [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/1403175-extralinefragmentrect?language=objc +func (l_ LayoutManager) ExtraLineFragmentRect() foundation.Rect { + rv := objc.Call[foundation.Rect](l_, objc.Sel("extraLineFragmentRect")) return rv } -// The text storage object that contains the content to lay out. [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:"), objc.Ptr(value)) -} - -// The default amount of scaling to apply when an attachment image is too large to fit in a text container. [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/1403045-defaultattachmentscaling?language=objc -func (l_ LayoutManager) DefaultAttachmentScaling() ImageScaling { - rv := objc.Call[ImageScaling](l_, objc.Sel("defaultAttachmentScaling")) +// [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 default amount of scaling to apply when an attachment image is too large to fit in a text container. [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/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/1402912-showscontrolcharacters?language=objc +func (l_ LayoutManager) SetShowsControlCharacters(value bool) { + objc.Call[objc.Void](l_, objc.Sel("setShowsControlCharacters:"), value) } -// The text container for the extra line fragment rectangle. [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/1403165-extralinefragmenttextcontainer?language=objc -func (l_ LayoutManager) ExtraLineFragmentTextContainer() TextContainer { - rv := objc.Call[TextContainer](l_, objc.Sel("extraLineFragmentTextContainer")) +// [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 } diff --git a/macos/appkit/layout_manager_delegate.gen.go b/macos/appkit/layout_manager_delegate.gen.go index 7466d8ab..38bf1095 100644 --- a/macos/appkit/layout_manager_delegate.gen.go +++ b/macos/appkit/layout_manager_delegate.gen.go @@ -1,8 +1,9 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package appkit import ( + "github.com/progrium/macdriver/macos/coregraphics" "github.com/progrium/macdriver/macos/foundation" "github.com/progrium/macdriver/objc" ) @@ -11,21 +12,229 @@ 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 - LayoutManagerShouldUseTemporaryAttributesForDrawingToScreenAtCharacterIndexEffectiveRange(layoutManager LayoutManager, attrs map[foundation.AttributedStringKey]objc.Object, toScreen bool, charIndex uint, effectiveCharRange foundation.RangePointer) map[foundation.AttributedStringKey]objc.IObject - HasLayoutManagerShouldUseTemporaryAttributesForDrawingToScreenAtCharacterIndexEffectiveRange() bool + 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 } // A delegate implementation builder for the [PLayoutManagerDelegate] protocol. type LayoutManagerDelegate struct { - _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.IObject + _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 +} + +// 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 } @@ -43,48 +252,215 @@ func (di *LayoutManagerDelegate) SetLayoutManagerDidInvalidateLayout(f func(send func (di *LayoutManagerDelegate) LayoutManagerDidInvalidateLayout(sender LayoutManager) { di._LayoutManagerDidInvalidateLayout(sender) } -func (di *LayoutManagerDelegate) HasLayoutManagerShouldUseTemporaryAttributesForDrawingToScreenAtCharacterIndexEffectiveRange() bool { - return di._LayoutManagerShouldUseTemporaryAttributesForDrawingToScreenAtCharacterIndexEffectiveRange != nil +func (di *LayoutManagerDelegate) HasLayoutManagerBoundingBoxForControlGlyphAtIndexForTextContainerProposedLineFragmentGlyphPositionCharacterIndex() bool { + return di._LayoutManagerBoundingBoxForControlGlyphAtIndexForTextContainerProposedLineFragmentGlyphPositionCharacterIndex != nil } -// Asks the delegate whether to use temporary attributes when drawing the text. [Full Topic] +// Returns the bounding rectangle for the specified control glyph with the specified parameters. [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.IObject) { - di._LayoutManagerShouldUseTemporaryAttributesForDrawingToScreenAtCharacterIndexEffectiveRange = f +// [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 +} + +// Customizes the line fragment geometry before committing it to the layout cache. [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 +} + +// Customizes the line fragment geometry before committing it to the layout cache. [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) +} + +// ensure impl type implements protocol interface +var _ PLayoutManagerDelegate = (*LayoutManagerDelegateObject)(nil) + +// A concrete type for the [PLayoutManagerDelegate] protocol. +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 (di *LayoutManagerDelegate) LayoutManagerShouldUseTemporaryAttributesForDrawingToScreenAtCharacterIndexEffectiveRange(layoutManager LayoutManager, attrs map[foundation.AttributedStringKey]objc.Object, toScreen bool, charIndex uint, effectiveCharRange foundation.RangePointer) map[foundation.AttributedStringKey]objc.IObject { - return di._LayoutManagerShouldUseTemporaryAttributesForDrawingToScreenAtCharacterIndexEffectiveRange(layoutManager, attrs, toScreen, charIndex, effectiveCharRange) +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:"), objc.Ptr(layoutManager), attrs, toScreen, charIndex, effectiveCharRange) + return rv } -// A concrete type wrapper for the [PLayoutManagerDelegate] protocol. -type LayoutManagerDelegateWrapper struct { - objc.Object +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:"), objc.Ptr(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:"), objc.Ptr(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:"), objc.Ptr(layoutManager), glyphs, props, charIndexes, objc.Ptr(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:"), objc.Ptr(layoutManager), objc.Ptr(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:"), objc.Ptr(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:"), objc.Ptr(layoutManager), action, charIndex) + return rv +} + +func (l_ LayoutManagerDelegateObject) HasLayoutManagerParagraphSpacingBeforeGlyphAtIndexWithProposedLineFragmentRect() bool { + return l_.RespondsToSelector(objc.Sel("layoutManager:paragraphSpacingBeforeGlyphAtIndex:withProposedLineFragmentRect:")) } -func (l_ LayoutManagerDelegateWrapper) HasLayoutManagerDidInvalidateLayout() bool { +// 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:"), objc.Ptr(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:"), objc.Ptr(layoutManager), charIndex) + return rv +} + +func (l_ LayoutManagerDelegateObject) HasLayoutManagerDidInvalidateLayout() bool { return l_.RespondsToSelector(objc.Sel("layoutManagerDidInvalidateLayout:")) } // Informs the delegate when the specified layout manager invalidates layout information (not glyph information). [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/uikit/nslayoutmanagerdelegate/1402993-layoutmanagerdidinvalidatelayout?language=objc -func (l_ LayoutManagerDelegateWrapper) LayoutManagerDidInvalidateLayout(sender ILayoutManager) { +func (l_ LayoutManagerDelegateObject) LayoutManagerDidInvalidateLayout(sender LayoutManager) { objc.Call[objc.Void](l_, objc.Sel("layoutManagerDidInvalidateLayout:"), objc.Ptr(sender)) } -func (l_ LayoutManagerDelegateWrapper) HasLayoutManagerShouldUseTemporaryAttributesForDrawingToScreenAtCharacterIndexEffectiveRange() bool { - return l_.RespondsToSelector(objc.Sel("layoutManager:shouldUseTemporaryAttributes:forDrawingToScreen:atCharacterIndex:effectiveRange:")) +func (l_ LayoutManagerDelegateObject) HasLayoutManagerBoundingBoxForControlGlyphAtIndexForTextContainerProposedLineFragmentGlyphPositionCharacterIndex() bool { + return l_.RespondsToSelector(objc.Sel("layoutManager:boundingBoxForControlGlyphAtIndex:forTextContainer:proposedLineFragment:glyphPosition:characterIndex:")) } -// Asks the delegate whether to use temporary attributes when drawing the text. [Full Topic] +// Returns the bounding rectangle for the specified control glyph with the specified parameters. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nslayoutmanagerdelegate/1403085-layoutmanager?language=objc -func (l_ LayoutManagerDelegateWrapper) LayoutManagerShouldUseTemporaryAttributesForDrawingToScreenAtCharacterIndexEffectiveRange(layoutManager ILayoutManager, attrs map[foundation.AttributedStringKey]objc.IObject, 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:"), objc.Ptr(layoutManager), attrs, toScreen, charIndex, effectiveCharRange) +// [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:"), objc.Ptr(layoutManager), glyphIndex, objc.Ptr(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:"), objc.Ptr(layoutManager), objc.Ptr(textContainer), oldSize) +} + +func (l_ LayoutManagerDelegateObject) HasLayoutManagerShouldSetLineFragmentRectLineFragmentUsedRectBaselineOffsetInTextContainerForGlyphRange() bool { + return l_.RespondsToSelector(objc.Sel("layoutManager:shouldSetLineFragmentRect:lineFragmentUsedRect:baselineOffset:inTextContainer:forGlyphRange:")) +} + +// Customizes the line fragment geometry before committing it to the layout cache. [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:"), objc.Ptr(layoutManager), lineFragmentRect, lineFragmentUsedRect, baselineOffset, objc.Ptr(textContainer), glyphRange) return rv } diff --git a/macos/appkit/layout_x_axis_anchor.gen.go b/macos/appkit/layout_x_axis_anchor.gen.go index 6e625197..26a20bfc 100644 --- a/macos/appkit/layout_x_axis_anchor.gen.go +++ b/macos/appkit/layout_x_axis_anchor.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package appkit @@ -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 - ConstraintGreaterThanOrEqualToSystemSpacingAfterAnchorMultiplier(anchor ILayoutXAxisAnchor, multiplier float64) LayoutConstraint ConstraintEqualToSystemSpacingAfterAnchorMultiplier(anchor ILayoutXAxisAnchor, multiplier float64) LayoutConstraint - AnchorWithOffsetToAnchor(otherAnchor ILayoutXAxisAnchor) LayoutDimension + ConstraintGreaterThanOrEqualToSystemSpacingAfterAnchorMultiplier(anchor ILayoutXAxisAnchor, multiplier float64) LayoutConstraint } // A factory class for creating horizontal layout constraint objects using a fluent API. [Full Topic] @@ -42,10 +42,6 @@ func (lc _LayoutXAxisAnchorClass) Alloc() LayoutXAxisAnchor { return rv } -func LayoutXAxisAnchor_Alloc() LayoutXAxisAnchor { - return LayoutXAxisAnchorClass.Alloc() -} - func (lc _LayoutXAxisAnchorClass) New() LayoutXAxisAnchor { rv := objc.Call[LayoutXAxisAnchor](lc, objc.Sel("new")) rv.Autorelease() @@ -61,19 +57,19 @@ func (l_ LayoutXAxisAnchor) Init() LayoutXAxisAnchor { return rv } -// Returns a constraint that defines the maximum 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/2866018-constraintlessthanorequaltosyste?language=objc -func (l_ LayoutXAxisAnchor) ConstraintLessThanOrEqualToSystemSpacingAfterAnchorMultiplier(anchor ILayoutXAxisAnchor, multiplier float64) LayoutConstraint { - rv := objc.Call[LayoutConstraint](l_, objc.Sel("constraintLessThanOrEqualToSystemSpacingAfterAnchor:multiplier:"), objc.Ptr(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:"), objc.Ptr(otherAnchor)) return rv } -// Returns a constraint that defines the minimum amount by which the current anchor trails the specified anchor. [Full Topic] +// 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/2865871-constraintgreaterthanorequaltosy?language=objc -func (l_ LayoutXAxisAnchor) ConstraintGreaterThanOrEqualToSystemSpacingAfterAnchorMultiplier(anchor ILayoutXAxisAnchor, multiplier float64) LayoutConstraint { - rv := objc.Call[LayoutConstraint](l_, objc.Sel("constraintGreaterThanOrEqualToSystemSpacingAfterAnchor:multiplier:"), objc.Ptr(anchor), multiplier) +// [Full Topic]: https://developer.apple.com/documentation/uikit/nslayoutxaxisanchor/2866018-constraintlessthanorequaltosyste?language=objc +func (l_ LayoutXAxisAnchor) ConstraintLessThanOrEqualToSystemSpacingAfterAnchorMultiplier(anchor ILayoutXAxisAnchor, multiplier float64) LayoutConstraint { + rv := objc.Call[LayoutConstraint](l_, objc.Sel("constraintLessThanOrEqualToSystemSpacingAfterAnchor:multiplier:"), objc.Ptr(anchor), multiplier) return rv } @@ -85,10 +81,10 @@ func (l_ LayoutXAxisAnchor) ConstraintEqualToSystemSpacingAfterAnchorMultiplier( return rv } -// Creates a layout dimension object from two anchors. [Full Topic] +// 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/2866024-anchorwithoffsettoanchor?language=objc -func (l_ LayoutXAxisAnchor) AnchorWithOffsetToAnchor(otherAnchor ILayoutXAxisAnchor) LayoutDimension { - rv := objc.Call[LayoutDimension](l_, objc.Sel("anchorWithOffsetToAnchor:"), objc.Ptr(otherAnchor)) +// [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:"), objc.Ptr(anchor), multiplier) return rv } diff --git a/macos/appkit/layout_y_axis_anchor.gen.go b/macos/appkit/layout_y_axis_anchor.gen.go index 571ebf20..9ca9b935 100644 --- a/macos/appkit/layout_y_axis_anchor.gen.go +++ b/macos/appkit/layout_y_axis_anchor.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package appkit @@ -18,10 +18,10 @@ type _LayoutYAxisAnchorClass struct { // An interface definition for the [LayoutYAxisAnchor] class. type ILayoutYAxisAnchor interface { ILayoutAnchor - ConstraintLessThanOrEqualToSystemSpacingBelowAnchorMultiplier(anchor ILayoutYAxisAnchor, multiplier float64) LayoutConstraint - ConstraintEqualToSystemSpacingBelowAnchorMultiplier(anchor ILayoutYAxisAnchor, multiplier float64) LayoutConstraint ConstraintGreaterThanOrEqualToSystemSpacingBelowAnchorMultiplier(anchor ILayoutYAxisAnchor, multiplier float64) LayoutConstraint + ConstraintLessThanOrEqualToSystemSpacingBelowAnchorMultiplier(anchor ILayoutYAxisAnchor, multiplier float64) LayoutConstraint AnchorWithOffsetToAnchor(otherAnchor ILayoutYAxisAnchor) LayoutDimension + ConstraintEqualToSystemSpacingBelowAnchorMultiplier(anchor ILayoutYAxisAnchor, multiplier float64) LayoutConstraint } // A factory class for creating vertical layout constraint objects using a fluent API. [Full Topic] @@ -42,10 +42,6 @@ func (lc _LayoutYAxisAnchorClass) Alloc() LayoutYAxisAnchor { return rv } -func LayoutYAxisAnchor_Alloc() LayoutYAxisAnchor { - return LayoutYAxisAnchorClass.Alloc() -} - func (lc _LayoutYAxisAnchorClass) New() LayoutYAxisAnchor { rv := objc.Call[LayoutYAxisAnchor](lc, objc.Sel("new")) rv.Autorelease() @@ -61,22 +57,6 @@ func (l_ LayoutYAxisAnchor) Init() LayoutYAxisAnchor { 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 -func (l_ LayoutYAxisAnchor) ConstraintLessThanOrEqualToSystemSpacingBelowAnchorMultiplier(anchor ILayoutYAxisAnchor, multiplier float64) LayoutConstraint { - rv := objc.Call[LayoutConstraint](l_, objc.Sel("constraintLessThanOrEqualToSystemSpacingBelowAnchor:multiplier:"), objc.Ptr(anchor), multiplier) - 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 -func (l_ LayoutYAxisAnchor) ConstraintEqualToSystemSpacingBelowAnchorMultiplier(anchor ILayoutYAxisAnchor, multiplier float64) LayoutConstraint { - rv := objc.Call[LayoutConstraint](l_, objc.Sel("constraintEqualToSystemSpacingBelowAnchor:multiplier:"), objc.Ptr(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 @@ -85,6 +65,14 @@ func (l_ LayoutYAxisAnchor) ConstraintGreaterThanOrEqualToSystemSpacingBelowAnch 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 +func (l_ LayoutYAxisAnchor) ConstraintLessThanOrEqualToSystemSpacingBelowAnchorMultiplier(anchor ILayoutYAxisAnchor, multiplier float64) LayoutConstraint { + rv := objc.Call[LayoutConstraint](l_, objc.Sel("constraintLessThanOrEqualToSystemSpacingBelowAnchor:multiplier:"), objc.Ptr(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 @@ -92,3 +80,11 @@ func (l_ LayoutYAxisAnchor) AnchorWithOffsetToAnchor(otherAnchor ILayoutYAxisAnc rv := objc.Call[LayoutDimension](l_, objc.Sel("anchorWithOffsetToAnchor:"), objc.Ptr(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 +func (l_ LayoutYAxisAnchor) ConstraintEqualToSystemSpacingBelowAnchorMultiplier(anchor ILayoutYAxisAnchor, multiplier float64) LayoutConstraint { + rv := objc.Call[LayoutConstraint](l_, objc.Sel("constraintEqualToSystemSpacingBelowAnchor:multiplier:"), objc.Ptr(anchor), multiplier) + return rv +} diff --git a/macos/appkit/level_indicator.gen.go b/macos/appkit/level_indicator.gen.go index abd4f64b..d6ff0990 100644 --- a/macos/appkit/level_indicator.gen.go +++ b/macos/appkit/level_indicator.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package appkit @@ -19,40 +19,40 @@ type _LevelIndicatorClass struct { // An interface definition for the [LevelIndicator] class. type ILevelIndicator interface { IControl - RectOfTickMarkAtIndex(index int) foundation.Rect TickMarkValueAtIndex(index int) float64 - DrawsTieredCapacityLevels() bool - SetDrawsTieredCapacityLevels(value bool) - RatingPlaceholderImage() Image - SetRatingPlaceholderImage(value IImage) - TickMarkPosition() TickMarkPosition - SetTickMarkPosition(value TickMarkPosition) + RectOfTickMarkAtIndex(index int) foundation.Rect + MinValue() float64 + SetMinValue(value float64) + NumberOfTickMarks() int + SetNumberOfTickMarks(value int) CriticalValue() float64 SetCriticalValue(value float64) - NumberOfMajorTickMarks() int - SetNumberOfMajorTickMarks(value int) + DrawsTieredCapacityLevels() bool + SetDrawsTieredCapacityLevels(value bool) + RatingImage() Image + SetRatingImage(value IImage) 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) - MaxValue() float64 - SetMaxValue(value float64) - RatingImage() Image - SetRatingImage(value IImage) PlaceholderVisibility() LevelIndicatorPlaceholderVisibility SetPlaceholderVisibility(value LevelIndicatorPlaceholderVisibility) - NumberOfTickMarks() int - SetNumberOfTickMarks(value int) + 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) } // A visual representation of a level or quantity, using discrete values. [Full Topic] @@ -73,10 +73,6 @@ func (lc _LevelIndicatorClass) Alloc() LevelIndicator { return rv } -func LevelIndicator_Alloc() LevelIndicator { - return LevelIndicatorClass.Alloc() -} - func (lc _LevelIndicatorClass) New() LevelIndicator { rv := objc.Call[LevelIndicator](lc, objc.Sel("new")) rv.Autorelease() @@ -106,14 +102,6 @@ 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 @@ -122,49 +110,42 @@ func (l_ LevelIndicator) TickMarkValueAtIndex(index int) float64 { return rv } -// [Full Topic] +// 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/2902322-drawstieredcapacitylevels?language=objc -func (l_ LevelIndicator) DrawsTieredCapacityLevels() bool { - rv := objc.Call[bool](l_, objc.Sel("drawsTieredCapacityLevels")) +// [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 } -// [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 receiver’s minimum 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/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/2902328-ratingplaceholderimage?language=objc -func (l_ LevelIndicator) SetRatingPlaceholderImage(value IImage) { - objc.Call[objc.Void](l_, objc.Sel("setRatingPlaceholderImage:"), objc.Ptr(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) } -// Determines how the receiver’s tick marks are aligned with it. [Full Topic] +// The number of tick marks associated with the receiver. [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")) +// [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 } -// Determines how the receiver’s tick marks are aligned with it. [Full Topic] +// The number of tick marks associated with the receiver. [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/1388827-numberoftickmarks?language=objc +func (l_ LevelIndicator) SetNumberOfTickMarks(value int) { + objc.Call[objc.Void](l_, objc.Sel("setNumberOfTickMarks:"), value) } // The receiver’s critical value. [Full Topic] @@ -182,19 +163,34 @@ func (l_ LevelIndicator) SetCriticalValue(value float64) { objc.Call[objc.Void](l_, objc.Sel("setCriticalValue:"), 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/2902322-drawstieredcapacitylevels?language=objc +func (l_ LevelIndicator) DrawsTieredCapacityLevels() bool { + rv := objc.Call[bool](l_, objc.Sel("drawsTieredCapacityLevels")) 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/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/2902327-ratingimage?language=objc +func (l_ LevelIndicator) RatingImage() Image { + rv := objc.Call[Image](l_, objc.Sel("ratingImage")) + return rv +} + +// [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:"), objc.Ptr(value)) } // The receiver’s warning value. [Full Topic] @@ -212,21 +208,6 @@ 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 @@ -244,62 +225,92 @@ func (l_ LevelIndicator) SetLevelIndicatorStyle(value LevelIndicatorStyle) { // [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/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/2902316-criticalfillcolor?language=objc -func (l_ LevelIndicator) SetCriticalFillColor(value IColor) { - objc.Call[objc.Void](l_, objc.Sel("setCriticalFillColor:"), objc.Ptr(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:"), objc.Ptr(value)) } // [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")) +// [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/2902307-warningfillcolor?language=objc -func (l_ LevelIndicator) SetWarningFillColor(value IColor) { - objc.Call[objc.Void](l_, objc.Sel("setWarningFillColor:"), objc.Ptr(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:"), objc.Ptr(value)) } -// 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/2902323-placeholdervisibility?language=objc +func (l_ LevelIndicator) PlaceholderVisibility() LevelIndicatorPlaceholderVisibility { + rv := objc.Call[LevelIndicatorPlaceholderVisibility](l_, objc.Sel("placeholderVisibility")) 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/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] // -// [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/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/2902325-fillcolor?language=objc -func (l_ LevelIndicator) SetFillColor(value IColor) { - objc.Call[objc.Void](l_, objc.Sel("setFillColor:"), objc.Ptr(value)) +// [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] +// +// [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 +} + +// [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:"), objc.Ptr(value)) } // The receiver’s maximum value. [Full Topic] @@ -317,47 +328,32 @@ func (l_ LevelIndicator) SetMaxValue(value float64) { objc.Call[objc.Void](l_, objc.Sel("setMaxValue:"), 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:"), objc.Ptr(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) } // [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/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/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) +// [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:"), objc.Ptr(value)) } diff --git a/macos/appkit/level_indicator_cell.gen.go b/macos/appkit/level_indicator_cell.gen.go index 285d7533..9d8c3583 100644 --- a/macos/appkit/level_indicator_cell.gen.go +++ b/macos/appkit/level_indicator_cell.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package appkit @@ -21,22 +21,22 @@ type ILevelIndicatorCell interface { IActionCell RectOfTickMarkAtIndex(index int) foundation.Rect TickMarkValueAtIndex(index int) float64 - TickMarkPosition() TickMarkPosition - SetTickMarkPosition(value TickMarkPosition) - CriticalValue() float64 - SetCriticalValue(value float64) + NumberOfTickMarks() int + SetNumberOfTickMarks(value int) NumberOfMajorTickMarks() int SetNumberOfMajorTickMarks(value int) - WarningValue() float64 - SetWarningValue(value float64) - LevelIndicatorStyle() LevelIndicatorStyle - SetLevelIndicatorStyle(value LevelIndicatorStyle) + CriticalValue() float64 + SetCriticalValue(value float64) MinValue() float64 SetMinValue(value float64) + LevelIndicatorStyle() LevelIndicatorStyle + SetLevelIndicatorStyle(value LevelIndicatorStyle) + TickMarkPosition() TickMarkPosition + SetTickMarkPosition(value TickMarkPosition) + WarningValue() float64 + SetWarningValue(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] @@ -71,10 +71,6 @@ func (lc _LevelIndicatorCellClass) Alloc() LevelIndicatorCell { return rv } -func LevelIndicatorCell_Alloc() LevelIndicatorCell { - return LevelIndicatorCellClass.Alloc() -} - func (lc _LevelIndicatorCellClass) New() LevelIndicatorCell { rv := objc.Call[LevelIndicatorCell](lc, objc.Sel("new")) rv.Autorelease() @@ -134,34 +130,19 @@ func (l_ LevelIndicatorCell) TickMarkValueAtIndex(index int) float64 { 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) 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 critical value of the level indicator control. [Full Topic] +// The number of tick marks displayed by the control. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nslevelindicatorcell/1525337-criticalvalue?language=objc -func (l_ LevelIndicatorCell) CriticalValue() float64 { - rv := objc.Call[float64](l_, objc.Sel("criticalValue")) +// [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 critical value of the level indicator control. [Full Topic] +// The number of tick marks displayed by the control. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nslevelindicatorcell/1525337-criticalvalue?language=objc -func (l_ LevelIndicatorCell) SetCriticalValue(value float64) { - objc.Call[objc.Void](l_, objc.Sel("setCriticalValue:"), value) +// [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] @@ -179,19 +160,34 @@ 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] +// The critical 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")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nslevelindicatorcell/1525337-criticalvalue?language=objc +func (l_ LevelIndicatorCell) CriticalValue() float64 { + rv := objc.Call[float64](l_, objc.Sel("criticalValue")) return rv } -// The warning value of the level indicator control. [Full Topic] +// The critical 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) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nslevelindicatorcell/1525337-criticalvalue?language=objc +func (l_ LevelIndicatorCell) SetCriticalValue(value float64) { + objc.Call[objc.Void](l_, objc.Sel("setCriticalValue:"), value) +} + +// The minimum value of 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")) + return rv +} + +// The minimum value of 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) } // The style of the level indicator control. [Full Topic] @@ -209,19 +205,34 @@ func (l_ LevelIndicatorCell) SetLevelIndicatorStyle(value LevelIndicatorStyle) { objc.Call[objc.Void](l_, objc.Sel("setLevelIndicatorStyle:"), value) } -// The minimum value of 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/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/1532399-tickmarkposition?language=objc +func (l_ LevelIndicatorCell) TickMarkPosition() TickMarkPosition { + rv := objc.Call[TickMarkPosition](l_, objc.Sel("tickMarkPosition")) return rv } -// The minimum value of 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/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/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] +// +// [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 maximum value of the control. [Full Topic] @@ -238,18 +249,3 @@ 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/magnification_gesture_recognizer.gen.go b/macos/appkit/magnification_gesture_recognizer.gen.go index cd0a6815..18da9007 100644 --- a/macos/appkit/magnification_gesture_recognizer.gen.go +++ b/macos/appkit/magnification_gesture_recognizer.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package appkit @@ -40,10 +40,6 @@ func (mc _MagnificationGestureRecognizerClass) Alloc() MagnificationGestureRecog return rv } -func MagnificationGestureRecognizer_Alloc() MagnificationGestureRecognizer { - return MagnificationGestureRecognizerClass.Alloc() -} - func (mc _MagnificationGestureRecognizerClass) New() MagnificationGestureRecognizer { rv := objc.Call[MagnificationGestureRecognizer](mc, objc.Sel("new")) rv.Autorelease() diff --git a/macos/appkit/matrix.gen.go b/macos/appkit/matrix.gen.go index 9e42673e..dc0c61a3 100644 --- a/macos/appkit/matrix.gen.go +++ b/macos/appkit/matrix.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package appkit @@ -19,93 +19,97 @@ type _MatrixClass struct { // An interface definition for the [Matrix] class. type IMatrix interface { IControl - SendAction() bool - DeselectSelectedCell() - AddColumnWithCells(newCells []ICell) - CellFrameAtRowColumn(row int, col int) foundation.Rect - SetToolTipForCell(toolTipString string, cell ICell) + 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() - RemoveRow(row int) - SortUsingFunctionContext(compare func(arg0 objc.Object, arg1 objc.Object, arg2 unsafe.Pointer) int, context unsafe.Pointer) + 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() - ScrollCellToVisibleAtRowColumn(row int, col int) - 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 - TextShouldBeginEditing(textObject IText) bool AddRowWithCells(newCells []ICell) - SortUsingSelector(comparator objc.Selector) InsertRow(row int) - InsertColumnWithCells(column int, newCells []ICell) - TextDidChange(notification foundation.INotification) + DrawCellAtRowColumn(row int, col int) + AddColumnWithCells(newCells []ICell) + CellFrameAtRowColumn(row int, col int) foundation.Rect + RenewRowsColumns(newRows int, newCols int) + RemoveRow(row int) + TextShouldBeginEditing(textObject IText) bool + ToolTipForCell(cell ICell) string + ScrollCellToVisibleAtRowColumn(row int, col int) + SendDoubleAction() CellWithTag(tag int) Cell - CellAtRowColumn(row int, col int) Cell - TextDidBeginEditing(notification foundation.INotification) + SelectTextAtRowColumn(row int, col int) Cell + DeselectSelectedCell() + InsertRowWithCells(row int, newCells []ICell) SetScrollable(flag bool) - SendDoubleAction() - SelectCellAtRowColumn(row int, col int) - RemoveColumn(col int) DeselectAllCells() - MakeCellAtRowColumn(row int, col int) Cell - SetSelectionFromToAnchorHighlight(startPos int, endPos int, anchorPos int, lit bool) - ToolTipForCell(cell ICell) string - SetValidateSize(flag bool) - TextShouldEndEditing(textObject IText) bool - AddColumn() - RenewRowsColumns(newRows int, newCols int) - GetRowColumnOfCell(row *int, col *int, cell ICell) bool - TextDidEndEditing(notification foundation.INotification) + SetToolTipForCell(toolTipString string, cell ICell) GetNumberOfRowsColumns(rowCount *int, colCount *int) - SetStateAtRowColumn(value int, row int, col int) - MouseDownFlags() int + 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) DoubleAction() objc.Selector SetDoubleAction(value objc.Selector) - SelectedCells() []Cell + SelectedRow() int TabKeyTraversesCells() bool SetTabKeyTraversesCells(value bool) - SelectedCell() Cell - AllowsEmptySelection() bool - SetAllowsEmptySelection(value bool) - Cells() []Cell - CellBackgroundColor() Color - SetCellBackgroundColor(value IColor) + NumberOfRows() int IsSelectionByRect() bool SetSelectionByRect(value bool) - IsAutoscroll() bool - SetAutoscroll(value bool) - DrawsCellBackground() bool - SetDrawsCellBackground(value bool) - AutorecalculatesCellSize() bool - SetAutorecalculatesCellSize(value bool) - Delegate() MatrixDelegateWrapper - SetDelegate(value PMatrixDelegate) - SetDelegateObject(valueObject objc.IObject) + KeyCell() Cell + SetKeyCell(value ICell) + SelectedCell() Cell BackgroundColor() Color SetBackgroundColor(value IColor) + CellBackgroundColor() Color + SetCellBackgroundColor(value IColor) + MouseDownFlags() int + Cells() []Cell DrawsBackground() bool SetDrawsBackground(value bool) - CellSize() foundation.Size - SetCellSize(value foundation.Size) - KeyCell() Cell - SetKeyCell(value ICell) + IsAutoscroll() bool + SetAutoscroll(value bool) SelectedColumn() int - SelectedRow() int - Mode() MatrixMode - SetMode(value MatrixMode) + AllowsEmptySelection() bool + SetAllowsEmptySelection(value bool) + Delegate() MatrixDelegateObject + SetDelegate(value PMatrixDelegate) + SetDelegateObject(valueObject objc.IObject) AutosizesCells() bool SetAutosizesCells(value bool) - CellClass() objc.Class - SetCellClass(value objc.IClass) - Prototype() Cell - SetPrototype(value ICell) - NumberOfRows() int IntercellSpacing() foundation.Size SetIntercellSpacing(value foundation.Size) - NumberOfColumns() int + CellClass() objc.Class + SetCellClass(value objc.IClass) + SelectedCells() []Cell + Mode() MatrixMode + SetMode(value MatrixMode) } // A legacy interface for grouping radio buttons or other types of cells together. [Full Topic] @@ -121,6 +125,20 @@ 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, objc.Ptr(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 @@ -135,13 +153,23 @@ func NewMatrixWithFrame(frameRect foundation.Rect) Matrix { return instance } -func (mc _MatrixClass) Alloc() Matrix { - rv := objc.Call[Matrix](mc, objc.Sel("alloc")) +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, objc.Ptr(factoryId), rowsHigh, colsWide) return rv } -func Matrix_Alloc() Matrix { - return MatrixClass.Alloc() +// 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 } func (mc _MatrixClass) New() Matrix { @@ -159,112 +187,90 @@ func (m_ Matrix) Init() Matrix { return rv } -// If the selected cell has both an action and a target, sends its action to its target. [Full Topic] +// Selects the last cell with the given tag. [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/1436446-selectcellwithtag?language=objc +func (m_ Matrix) SelectCellWithTag(tag int) bool { + rv := objc.Call[bool](m_, objc.Sel("selectCellWithTag:"), tag) 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")) -} - -// 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/1436453-addcolumnwithcells?language=objc -func (m_ Matrix) AddColumnWithCells(newCells []ICell) { - objc.Call[objc.Void](m_, objc.Sel("addColumnWithCells:"), newCells) -} - -// Returns the frame rectangle of the cell that would be drawn at the specified location. [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/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 +// [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) } -// Sets the tooltip for the cell. [Full Topic] +// 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/1436372-settooltip?language=objc -func (m_ Matrix) SetToolTipForCell(toolTipString string, cell ICell) { - objc.Call[objc.Void](m_, objc.Sel("setToolTip:forCell:"), toolTipString, objc.Ptr(cell)) +// [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) } -// Adds a new row of cells below the last row. [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/1436414-addrow?language=objc -func (m_ Matrix) AddRow() { - objc.Call[objc.Void](m_, objc.Sel("addRow")) +// [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) } -// Removes the specified row from the receiver. [Full Topic] +// Programmatically selects a range of cells. [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) +// [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) } -// 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:"), objc.Ptr(notification)) } -// Changes the width and the height of the receiver’s frame so it exactly contains the cells. [Full Topic] +// Sets the state of the cell at specified location. [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")) +// [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) } -// Scrolls the receiver so the specified cell is visible. [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/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/1436395-textdidbeginediting?language=objc +func (m_ Matrix) TextDidBeginEditing(notification foundation.INotification) { + objc.Call[objc.Void](m_, objc.Sel("textDidBeginEditing:"), objc.Ptr(notification)) } -// Displays the cell at the specified row and column. [Full Topic] +// Iterates through the cells in the receiver, sending the specified selector to an object for each cell. [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/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) } -// Selects the last cell with the given tag. [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/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/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, objc.Ptr(cell)) return rv } -// 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:"), objc.Ptr(newCell), row, col) -} - -// Highlights or unhighlights the cell at the specified row and column location. [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/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/1436489-textdidchange?language=objc +func (m_ Matrix) TextDidChange(notification foundation.INotification) { + objc.Call[objc.Void](m_, objc.Sel("textDidChange:"), objc.Ptr(notification)) } -// Selects and highlights all cells in the receiver. [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/1436378-selectall?language=objc -func (m_ Matrix) SelectAll(sender objc.IObject) { - objc.Call[objc.Void](m_, objc.Sel("selectAll:"), sender) +// [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")) } // Selects text in the currently selected cell or in the key cell. [Full Topic] @@ -274,22 +280,66 @@ func (m_ Matrix) SelectText(sender objc.IObject) { objc.Call[objc.Void](m_, objc.Sel("selectText:"), sender) } -// Selects the text in the cell at the specified location and returns the cell. [Full Topic] +// Adds a new row of cells below the last row. [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) +// [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:"), objc.Ptr(textObject)) return rv } -// Requests permission to begin editing text. [Full Topic] +// 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/1436393-textshouldbeginediting?language=objc -func (m_ Matrix) TextShouldBeginEditing(textObject IText) bool { - rv := objc.Call[bool](m_, objc.Sel("textShouldBeginEditing:"), objc.Ptr(textObject)) +// [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")) + return rv +} + +// 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/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 +} + +// 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:"), objc.Ptr(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 @@ -297,13 +347,6 @@ 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 @@ -311,48 +354,63 @@ func (m_ Matrix) InsertRow(row int) { objc.Call[objc.Void](m_, objc.Sel("insertRow:"), row) } -// Inserts a new column of cells before the specified column, using the given cells. [Full Topic] +// Displays the cell at the specified row and column. [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/1436495-drawcellatrow?language=objc +func (m_ Matrix) DrawCellAtRowColumn(row int, col int) { + objc.Call[objc.Void](m_, objc.Sel("drawCellAtRow:column:"), row, col) } -// Invoked when a key-down event or paste operation occurs that changes the receiver’s contents. [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/1436489-textdidchange?language=objc -func (m_ Matrix) TextDidChange(notification foundation.INotification) { - objc.Call[objc.Void](m_, objc.Sel("textDidChange:"), objc.Ptr(notification)) +// [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) } -// Searches the receiver and returns the last cell matching the specified tag. [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/1436481-cellwithtag?language=objc -func (m_ Matrix) CellWithTag(tag int) Cell { - rv := objc.Call[Cell](m_, objc.Sel("cellWithTag:"), tag) +// [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 } -// Returns the cell at the specified row and column. [Full Topic] +// Changes the number of rows and columns in the receiver. [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/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] +// +// [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:"), objc.Ptr(textObject)) return rv } -// Invoked when there’s a change in the text after the receiver gains first responder status. [Full Topic] +// Returns the tooltip for the specified cell. [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:"), objc.Ptr(notification)) +// [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:"), objc.Ptr(cell)) + return rv } -// Specifies whether the cells in the matrix are scrollable. [Full Topic] +// Scrolls the receiver so the specified cell is visible. [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/1436455-scrollcelltovisibleatrow?language=objc +func (m_ Matrix) ScrollCellToVisibleAtRowColumn(row int, col int) { + objc.Call[objc.Void](m_, objc.Sel("scrollCellToVisibleAtRow:column:"), row, col) } // Sends the double-click action message to the target of the receiver. [Full Topic] @@ -362,18 +420,41 @@ func (m_ Matrix) SendDoubleAction() { objc.Call[objc.Void](m_, objc.Sel("sendDoubleAction")) } -// Selects the cell at the specified row and column within the receiver. [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/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/1436481-cellwithtag?language=objc +func (m_ Matrix) CellWithTag(tag int) Cell { + rv := objc.Call[Cell](m_, objc.Sel("cellWithTag:"), tag) + return rv } -// Removes the specified column at from the receiver. [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/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/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] +// +// [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) +} + +// Specifies whether the cells in the matrix are scrollable. [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) } // Deselects all cells in the receiver and, if necessary, redisplays the receiver. [Full Topic] @@ -383,27 +464,18 @@ func (m_ Matrix) DeselectAllCells() { objc.Call[objc.Void](m_, objc.Sel("deselectAllCells")) } -// 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/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 -} - -// 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, objc.Ptr(cell)) } -// Returns the tooltip for the specified cell. [Full Topic] +// Obtains the number of rows and columns in the receiver. [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:"), objc.Ptr(cell)) - 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) } // Specifies whether the receiver's size information is validated. [Full Topic] @@ -413,147 +485,154 @@ func (m_ Matrix) SetValidateSize(flag bool) { objc.Call[objc.Void](m_, objc.Sel("setValidateSize:"), flag) } -// Requests permission to end editing. [Full Topic] +// Returns the cell at the specified row and column. [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:"), objc.Ptr(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 } -// 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) } -// Changes the number of rows and columns in the receiver. [Full Topic] +// Removes the specified column at from 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) +// [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) } -// Searches the receiver for the specified cell and returns the row and column of the cell [Full Topic] +// Inserts a new column of cells at the specified location. . [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, objc.Ptr(cell)) - return rv +// [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) } -// Invoked when text editing ends. [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/1436426-textdidendediting?language=objc -func (m_ Matrix) TextDidEndEditing(notification foundation.INotification) { - objc.Call[objc.Void](m_, objc.Sel("textDidEndEditing:"), objc.Ptr(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) } -// Obtains the number of rows and columns in the receiver. [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/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/1436501-autorecalculatescellsize?language=objc +func (m_ Matrix) AutorecalculatesCellSize() bool { + rv := objc.Call[bool](m_, objc.Sel("autorecalculatesCellSize")) + return rv } -// Sets the state of the cell at specified location. [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/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/1436501-autorecalculatescellsize?language=objc +func (m_ Matrix) SetAutorecalculatesCellSize(value bool) { + objc.Call[objc.Void](m_, objc.Sel("setAutorecalculatesCellSize:"), value) } -// The flags in effect at the mouse-down event that started the current tracking session. [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/1436487-mousedownflags?language=objc -func (m_ Matrix) MouseDownFlags() int { - rv := objc.Call[int](m_, objc.Sel("mouseDownFlags")) +// [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 action sent to the target of the receiver when the user double-clicks a 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/1436469-doubleaction?language=objc -func (m_ Matrix) DoubleAction() objc.Selector { - rv := objc.Call[objc.Selector](m_, objc.Sel("doubleAction")) - return rv +// [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 action sent to the target of the receiver when the user double-clicks a cell. [Full Topic] +// The number of columns in the matrix. [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/1436461-numberofcolumns?language=objc +func (m_ Matrix) NumberOfColumns() int { + rv := objc.Call[int](m_, objc.Sel("numberOfColumns")) + return rv } -// An array containing all of the matrix’s highlighted cells plus its selected cell. [Full Topic] +// The size of each cell in the matrix. [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/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 pressing the Tab key advances the key cell to the next selectable cell. [Full Topic] +// The size of each cell in 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")) - return rv +// [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) } -// A Boolean that indicates whether pressing the Tab key advances the key cell to the next selectable 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/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/1436406-prototype?language=objc +func (m_ Matrix) Prototype() Cell { + rv := objc.Call[Cell](m_, objc.Sel("prototype")) + return rv } -// The most recently 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/1436472-selectedcell?language=objc -func (m_ Matrix) SelectedCell() Cell { - rv := objc.Call[Cell](m_, objc.Sel("selectedCell")) - return rv +// [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:"), objc.Ptr(value)) } -// A Boolean that indicates whether a radio-mode matrix supports an empty selection. [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/1436394-allowsemptyselection?language=objc -func (m_ Matrix) AllowsEmptySelection() bool { - rv := objc.Call[bool](m_, objc.Sel("allowsEmptySelection")) +// [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 } -// A Boolean that indicates whether a radio-mode matrix supports an empty selection. [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/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/1436469-doubleaction?language=objc +func (m_ Matrix) SetDoubleAction(value objc.Selector) { + objc.Call[objc.Void](m_, objc.Sel("setDoubleAction:"), value) } -// An array containing the cells of the matrix. [Full Topic] +// The row number of the selected cell. [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/1436377-selectedrow?language=objc +func (m_ Matrix) SelectedRow() int { + rv := objc.Call[int](m_, objc.Sel("selectedRow")) return rv } -// The background color of the matrix’s cells. [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/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/1436491-tabkeytraversescells?language=objc +func (m_ Matrix) TabKeyTraversesCells() bool { + rv := objc.Call[bool](m_, objc.Sel("tabKeyTraversesCells")) return rv } -// The background color of the matrix’s cells. [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/1436449-cellbackgroundcolor?language=objc -func (m_ Matrix) SetCellBackgroundColor(value IColor) { - objc.Call[objc.Void](m_, objc.Sel("setCellBackgroundColor:"), objc.Ptr(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 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 } // A Boolean that indicates whether the user can select a rectangle of cells in the receiver by dragging the cursor. [Full Topic] @@ -571,88 +650,73 @@ func (m_ Matrix) SetSelectionByRect(value bool) { objc.Call[objc.Void](m_, objc.Sel("setSelectionByRect:"), value) } -// A Boolean that indicates whether the receiver is automatically scrolled. [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/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/1436411-keycell?language=objc +func (m_ Matrix) KeyCell() Cell { + rv := objc.Call[Cell](m_, objc.Sel("keyCell")) return rv } -// A Boolean that indicates whether the receiver is automatically scrolled. [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/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/1436411-keycell?language=objc +func (m_ Matrix) SetKeyCell(value ICell) { + objc.Call[objc.Void](m_, objc.Sel("setKeyCell:"), objc.Ptr(value)) } -// A Boolean that indicates whether the matrix draws the background within each of its cells. [Full Topic] +// The most recently selected cell. [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/1436472-selectedcell?language=objc +func (m_ Matrix) SelectedCell() Cell { + rv := objc.Call[Cell](m_, objc.Sel("selectedCell")) 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) -} - -// A Boolean that indicates whether the matrix auto-recalculates its cell size. [Full Topic] +// The background color of the matrix (the space between the cells). [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")) +// [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 } -// A Boolean that indicates whether the matrix auto-recalculates its cell size. [Full Topic] +// The background color of the matrix (the space between the cells). [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/1436442-backgroundcolor?language=objc +func (m_ Matrix) SetBackgroundColor(value IColor) { + objc.Call[objc.Void](m_, objc.Sel("setBackgroundColor:"), objc.Ptr(value)) } -// The delegate for messages from the field editor. [Full Topic] +// The background color of the matrix’s cells. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsmatrix/1436404-delegate?language=objc -func (m_ Matrix) Delegate() MatrixDelegateWrapper { - rv := objc.Call[MatrixDelegateWrapper](m_, objc.Sel("delegate")) +// [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 delegate for messages from the field editor. [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) -} - -// The delegate for messages from the field editor. [Full Topic] +// The background color of the matrix’s cells. [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:"), objc.Ptr(valueObject)) +// [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:"), objc.Ptr(value)) } -// The background color of the matrix (the space between the 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/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/1436487-mousedownflags?language=objc +func (m_ Matrix) MouseDownFlags() int { + rv := objc.Call[int](m_, objc.Sel("mouseDownFlags")) return rv } -// The background color of the matrix (the space between the cells). [Full Topic] +// An array containing the cells of the matrix. [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:"), objc.Ptr(value)) +// [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 the matrix draws its background. [Full Topic] @@ -670,65 +734,66 @@ func (m_ Matrix) SetDrawsBackground(value bool) { objc.Call[objc.Void](m_, objc.Sel("setDrawsBackground:"), value) } -// The size of each cell in the matrix. [Full Topic] +// A Boolean that indicates whether the receiver is automatically scrolled. [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")) +// [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 size of each cell in the matrix. [Full Topic] +// A Boolean that indicates whether the receiver is automatically scrolled. [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/1436410-autoscroll?language=objc +func (m_ Matrix) SetAutoscroll(value bool) { + objc.Call[objc.Void](m_, objc.Sel("setAutoscroll:"), value) } -// The cell that will be clicked when the user presses the Space bar. [Full Topic] +// The column number of the selected cell. [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/1436389-selectedcolumn?language=objc +func (m_ Matrix) SelectedColumn() int { + rv := objc.Call[int](m_, objc.Sel("selectedColumn")) return rv } -// The cell that will be clicked when the user presses the Space bar. [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/1436411-keycell?language=objc -func (m_ Matrix) SetKeyCell(value ICell) { - objc.Call[objc.Void](m_, objc.Sel("setKeyCell:"), objc.Ptr(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 column 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/1436389-selectedcolumn?language=objc -func (m_ Matrix) SelectedColumn() int { - rv := objc.Call[int](m_, objc.Sel("selectedColumn")) - 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) } -// The row number of the selected cell. [Full Topic] +// The delegate for messages from the field editor. [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")) +// [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 selection mode of the receiver. [Full Topic] +// The delegate for messages from the field editor. [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")) - return rv +// [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 selection mode of the receiver. [Full Topic] +// The delegate for messages from the field editor. [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/1436404-delegate?language=objc +func (m_ Matrix) SetDelegateObject(valueObject objc.IObject) { + objc.Call[objc.Void](m_, objc.Sel("setDelegate:"), objc.Ptr(valueObject)) } // A Boolean that indicates whether the cell sizes change when the receiver is resized. [Full Topic] @@ -746,6 +811,21 @@ 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 @@ -761,48 +841,25 @@ func (m_ Matrix) SetCellClass(value objc.IClass) { objc.Call[objc.Void](m_, objc.Sel("setCellClass:"), objc.Ptr(value)) } -// The prototype cell that’s copied whenever the matrix creates a new 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")) - return rv -} - -// The prototype cell that’s copied whenever the matrix creates a new 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:"), objc.Ptr(value)) -} - -// The number of rows 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/1436507-numberofrows?language=objc -func (m_ Matrix) NumberOfRows() int { - rv := objc.Call[int](m_, objc.Sel("numberOfRows")) +// [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 vertical and horizontal spacing between cells in the matrix. [Full Topic] +// The selection mode of the receiver. [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")) +// [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 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] +// The selection mode of the receiver. [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 +// [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) } diff --git a/macos/appkit/matrix_delegate.gen.go b/macos/appkit/matrix_delegate.gen.go index f95c0e48..2074259c 100644 --- a/macos/appkit/matrix_delegate.gen.go +++ b/macos/appkit/matrix_delegate.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package appkit @@ -14,7 +14,10 @@ type MatrixDelegate struct { ControlTextEditingDelegate } -// A concrete type wrapper for the [PMatrixDelegate] protocol. -type MatrixDelegateWrapper struct { - ControlTextEditingDelegateWrapper +// ensure impl type implements protocol interface +var _ PMatrixDelegate = (*MatrixDelegateObject)(nil) + +// A concrete type for the [PMatrixDelegate] protocol. +type MatrixDelegateObject struct { + ControlTextEditingDelegateObject } diff --git a/macos/appkit/media_library_browser_controller.gen.go b/macos/appkit/media_library_browser_controller.gen.go index 396031d5..97ae043f 100644 --- a/macos/appkit/media_library_browser_controller.gen.go +++ b/macos/appkit/media_library_browser_controller.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package appkit @@ -46,10 +46,6 @@ func (mc _MediaLibraryBrowserControllerClass) Alloc() MediaLibraryBrowserControl return rv } -func MediaLibraryBrowserController_Alloc() MediaLibraryBrowserController { - return MediaLibraryBrowserControllerClass.Alloc() -} - func (mc _MediaLibraryBrowserControllerClass) New() MediaLibraryBrowserController { rv := objc.Call[MediaLibraryBrowserController](mc, objc.Sel("new")) rv.Autorelease() @@ -88,21 +84,6 @@ 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 @@ -132,3 +113,18 @@ 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 9f649d88..3ed1e544 100644 --- a/macos/appkit/menu.gen.go +++ b/macos/appkit/menu.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package appkit @@ -19,57 +19,57 @@ type _MenuClass struct { // An interface definition for the [Menu] class. type IMenu interface { objc.IObject - ItemAtIndex(index int) MenuItem - PerformActionForItemAtIndex(index int) - IndexOfItemWithSubmenu(submenu IMenu) int - CancelTracking() - AddItem(newItem IMenuItem) + ItemWithTitle(title string) MenuItem IndexOfItemWithTag(tag int) int InsertItemWithTitleActionKeyEquivalentAtIndex(string_ string, selector objc.Selector, charCode string, index int) MenuItem - ItemChanged(item IMenuItem) + 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() - RemoveItemAtIndex(index int) - RemoveItem(item IMenuItem) + ItemAtIndex(index int) MenuItem + CancelTracking() AddItemWithTitleActionKeyEquivalent(string_ string, selector objc.Selector, charCode string) MenuItem - ItemWithTitle(title string) MenuItem - IndexOfItemWithRepresentedObject(object objc.IObject) int + AddItem(newItem IMenuItem) + IndexOfItemWithTargetAndAction(target objc.IObject, actionSelector objc.Selector) int + PerformActionForItemAtIndex(index int) PerformKeyEquivalent(event IEvent) bool - SetSubmenuForItem(menu IMenu, item IMenuItem) IndexOfItem(item IMenuItem) int + RemoveItemAtIndex(index int) + RemoveItem(item IMenuItem) + IndexOfItemWithRepresentedObject(object objc.IObject) int SubmenuAction(sender objc.IObject) - PopUpMenuPositioningItemAtLocationInView(item IMenuItem, location foundation.Point, view IView) bool - IndexOfItemWithTargetAndAction(target objc.IObject, actionSelector objc.Selector) int - IndexOfItemWithTitle(title string) int - Update() + ItemChanged(item IMenuItem) ItemWithTag(tag int) MenuItem - InsertItemAtIndex(newItem IMenuItem, index int) - CancelTrackingWithoutAnimation() - AllowsContextMenuPlugIns() bool - SetAllowsContextMenuPlugIns(value bool) + 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) + AllowsContextMenuPlugIns() bool + SetAllowsContextMenuPlugIns(value bool) ItemArray() []MenuItem SetItemArray(value []IMenuItem) - MenuBarHeight() float64 - HighlightedItem() MenuItem - AutoenablesItems() bool - SetAutoenablesItems(value bool) - Delegate() MenuDelegateWrapper + 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] @@ -104,10 +104,6 @@ func (mc _MenuClass) Alloc() Menu { return rv } -func Menu_Alloc() Menu { - return MenuClass.Alloc() -} - func (mc _MenuClass) New() Menu { rv := objc.Call[Menu](mc, objc.Sel("new")) rv.Autorelease() @@ -123,19 +119,79 @@ func (m_ Menu) Init() Menu { return rv } -// Returns the menu item at a specific location of the menu. [Full Topic] +// Returns the first menu item in the menu with a specified title. [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) +// [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 } -// Causes the application to send the action message of a specified menu item to its 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/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/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:"), objc.Ptr(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:"), objc.Ptr(menu), objc.Ptr(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:"), objc.Ptr(item), location, objc.Ptr(view)) + return rv +} + +// 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/1518237-indexofitemwithtitle?language=objc +func (m_ Menu) IndexOfItemWithTitle(title string) int { + rv := objc.Call[int](m_, objc.Sel("indexOfItemWithTitle:"), title) + 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:"), objc.Ptr(menu), objc.Ptr(event), objc.Ptr(view), objc.Ptr(font)) +} + +// 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 Menu_PopUpContextMenuWithEventForViewWithFont(menu IMenu, event IEvent, view IView, font IFont) { + MenuClass.PopUpContextMenuWithEventForViewWithFont(menu, event, view, font) } // Returns the index of the menu item in the menu with the given submenu. [Full Topic] @@ -146,6 +202,21 @@ 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 @@ -153,6 +224,14 @@ 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 @@ -160,34 +239,35 @@ func (m_ Menu) AddItem(newItem IMenuItem) { objc.Call[objc.Void](m_, objc.Sel("addItem:"), objc.Ptr(newItem)) } -// Returns the index of the first menu item in the menu identified by a tag. [Full Topic] +// 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/1518164-indexofitemwithtag?language=objc -func (m_ Menu) IndexOfItemWithTag(tag int) int { - rv := objc.Call[int](m_, objc.Sel("indexOfItemWithTag:"), tag) +// [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 } -// Creates and adds a menu item at a specified location in the menu. [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/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 +// [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) } -// Invoked when a menu item is modified visually (for example, its title changes). [Full Topic] +// 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/1518154-itemchanged?language=objc -func (m_ Menu) ItemChanged(item IMenuItem) { - objc.Call[objc.Void](m_, objc.Sel("itemChanged:"), objc.Ptr(item)) +// [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:"), objc.Ptr(event)) + return rv } -// Removes all the menu items in the menu. [Full Topic] +// 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/1518234-removeallitems?language=objc -func (m_ Menu) RemoveAllItems() { - objc.Call[objc.Void](m_, objc.Sel("removeAllItems")) +// [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:"), objc.Ptr(item)) + return rv } // Removes the menu item at a specified location in the menu. [Full Topic] @@ -218,22 +298,6 @@ 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 @@ -242,29 +306,6 @@ 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:"), objc.Ptr(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:"), objc.Ptr(menu), objc.Ptr(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:"), objc.Ptr(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 @@ -272,22 +313,6 @@ 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:"), objc.Ptr(item), location, objc.Ptr(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 @@ -302,6 +327,21 @@ 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:"), objc.Ptr(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 @@ -317,14 +357,6 @@ func Menu_MenuBarVisible() bool { return MenuClass.MenuBarVisible() } -// 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/1518237-indexofitemwithtitle?language=objc -func (m_ Menu) IndexOfItemWithTitle(title string) int { - rv := objc.Call[int](m_, objc.Sel("indexOfItemWithTitle:"), title) - return rv -} - // 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 @@ -332,41 +364,66 @@ func (m_ Menu) Update() { objc.Call[objc.Void](m_, objc.Sel("update")) } -// Returns the first menu item in the menu with the specified tag. [Full Topic] +// The title of the menu. [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) +// [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 } -// Inserts a menu item into the menu at a specific location. [Full Topic] +// The title of the menu. [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:"), objc.Ptr(newItem), index) +// [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) } -// Dismisses the menu and ends all menu tracking without displaying the associated animation. [Full Topic] +// The available properties for the menu. [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")) +// [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 } -// 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] +// The font of the menu and its submenus. [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/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:"), objc.Ptr(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 +} + +// 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 parent menu that contains the menu as a submenu. [Full Topic] @@ -384,57 +441,56 @@ func (m_ Menu) SetSupermenu(value IMenu) { objc.Call[objc.Void](m_, objc.Sel("setSupermenu:"), objc.Ptr(value)) } -// An array containing the menu items in the menu. [Full Topic] +// Indicates whether the menu displays the state column. [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/1518253-showsstatecolumn?language=objc +func (m_ Menu) ShowsStateColumn() bool { + rv := objc.Call[bool](m_, objc.Sel("showsStateColumn")) return rv } -// An array containing the menu items in the menu. [Full Topic] +// Indicates whether the menu displays the state column. [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/1518253-showsstatecolumn?language=objc +func (m_ Menu) SetShowsStateColumn(value bool) { + objc.Call[objc.Void](m_, objc.Sel("setShowsStateColumn:"), value) } -// The menu bar height for the main menu in pixels. [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/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/1518220-allowscontextmenuplugins?language=objc +func (m_ Menu) AllowsContextMenuPlugIns() bool { + rv := objc.Call[bool](m_, objc.Sel("allowsContextMenuPlugIns")) return rv } -// Indicates the currently highlighted item in the menu. [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/1518222-highlighteditem?language=objc -func (m_ Menu) HighlightedItem() MenuItem { - rv := objc.Call[MenuItem](m_, objc.Sel("highlightedItem")) - 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) } -// Indicates whether the menu automatically enables and disables its menu items. [Full Topic] +// An array containing the menu items in the menu. [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")) +// [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 automatically enables and disables its menu items. [Full Topic] +// An array containing the menu items in the menu. [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) +// [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) } // The delegate of the menu. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/appkit/nsmenu/1518169-delegate?language=objc -func (m_ Menu) Delegate() MenuDelegateWrapper { - rv := objc.Call[MenuDelegateWrapper](m_, objc.Sel("delegate")) +func (m_ Menu) Delegate() MenuDelegateObject { + rv := objc.Call[MenuDelegateObject](m_, objc.Sel("delegate")) return rv } @@ -454,6 +510,29 @@ func (m_ Menu) SetDelegateObject(valueObject objc.IObject) { objc.Call[objc.Void](m_, objc.Sel("setDelegate:"), objc.Ptr(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 @@ -483,72 +562,3 @@ 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:"), objc.Ptr(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 60f9bca3..c8f9cf04 100644 --- a/macos/appkit/menu_delegate.gen.go +++ b/macos/appkit/menu_delegate.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package appkit @@ -12,78 +12,66 @@ import ( // [Full Topic]: https://developer.apple.com/documentation/appkit/nsmenudelegate?language=objc type PMenuDelegate interface { // optional - MenuHasKeyEquivalentForEventTargetAction(menu Menu, event Event, target objc.Object, action objc.Selector) bool - HasMenuHasKeyEquivalentForEventTargetAction() bool - - // optional - MenuWillHighlightItem(menu Menu, item MenuItem) - HasMenuWillHighlightItem() bool + NumberOfItemsInMenu(menu Menu) int + HasNumberOfItemsInMenu() bool // optional MenuDidClose(menu Menu) HasMenuDidClose() bool - // optional - NumberOfItemsInMenu(menu Menu) int - HasNumberOfItemsInMenu() bool - // optional MenuNeedsUpdate(menu Menu) HasMenuNeedsUpdate() bool + // optional + MenuWillOpen(menu Menu) + HasMenuWillOpen() bool + + // optional + MenuWillHighlightItem(menu Menu, item MenuItem) + HasMenuWillHighlightItem() bool + + // optional + MenuHasKeyEquivalentForEventTargetAction(menu Menu, event Event, target objc.Object, action objc.Selector) bool + HasMenuHasKeyEquivalentForEventTargetAction() bool + // optional ConfinementRectForMenuOnScreen(menu Menu, screen Screen) foundation.Rect HasConfinementRectForMenuOnScreen() bool // optional - MenuWillOpen(menu Menu) - HasMenuWillOpen() bool + MenuUpdateItemAtIndexShouldCancel(menu Menu, item MenuItem, index int, shouldCancel bool) bool + HasMenuUpdateItemAtIndexShouldCancel() bool } // A delegate implementation builder for the [PMenuDelegate] protocol. type MenuDelegate struct { - _MenuHasKeyEquivalentForEventTargetAction func(menu Menu, event Event, target objc.Object, action objc.Selector) bool - _MenuWillHighlightItem func(menu Menu, item MenuItem) - _MenuDidClose func(menu Menu) _NumberOfItemsInMenu func(menu Menu) int + _MenuDidClose func(menu Menu) _MenuNeedsUpdate func(menu Menu) - _ConfinementRectForMenuOnScreen func(menu Menu, screen Screen) foundation.Rect _MenuWillOpen func(menu Menu) + _MenuWillHighlightItem func(menu Menu, item MenuItem) + _MenuHasKeyEquivalentForEventTargetAction func(menu Menu, event Event, target objc.Object, action objc.Selector) bool + _ConfinementRectForMenuOnScreen func(menu Menu, screen Screen) foundation.Rect + _MenuUpdateItemAtIndexShouldCancel func(menu Menu, item MenuItem, index int, shouldCancel bool) bool } -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 objc.Object, action objc.Selector) 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 objc.Object, action objc.Selector) bool { - return di._MenuHasKeyEquivalentForEventTargetAction(menu, event, target, action) -} -func (di *MenuDelegate) HasMenuWillHighlightItem() bool { - return di._MenuWillHighlightItem != nil +func (di *MenuDelegate) HasNumberOfItemsInMenu() bool { + return di._NumberOfItemsInMenu != nil } -// Invoked to indicate that a menu is about to highlight a given item. [Full Topic] +// 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/1518260-menu?language=objc -func (di *MenuDelegate) SetMenuWillHighlightItem(f func(menu Menu, item MenuItem)) { - di._MenuWillHighlightItem = f +// [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 to indicate that a menu is about to highlight a given item. [Full Topic] +// 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/1518260-menu?language=objc -func (di *MenuDelegate) MenuWillHighlightItem(menu Menu, item MenuItem) { - di._MenuWillHighlightItem(menu, item) +// [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) HasMenuDidClose() bool { return di._MenuDidClose != nil @@ -102,23 +90,6 @@ 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 } @@ -136,23 +107,6 @@ func (di *MenuDelegate) SetMenuNeedsUpdate(f func(menu Menu)) { func (di *MenuDelegate) MenuNeedsUpdate(menu Menu) { di._MenuNeedsUpdate(menu) } -func (di *MenuDelegate) HasConfinementRectForMenuOnScreen() bool { - return di._ConfinementRectForMenuOnScreen != nil -} - -// Invoked to allow the delegate to specify a display location for the menu. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsmenudelegate/1518247-confinementrectformenu?language=objc -func (di *MenuDelegate) SetConfinementRectForMenuOnScreen(f func(menu Menu, screen Screen) foundation.Rect) { - di._ConfinementRectForMenuOnScreen = f -} - -// Invoked to allow the delegate to specify a display location for the menu. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsmenudelegate/1518247-confinementrectformenu?language=objc -func (di *MenuDelegate) ConfinementRectForMenuOnScreen(menu Menu, screen Screen) foundation.Rect { - return di._ConfinementRectForMenuOnScreen(menu, screen) -} func (di *MenuDelegate) HasMenuWillOpen() bool { return di._MenuWillOpen != nil } @@ -170,88 +124,171 @@ func (di *MenuDelegate) SetMenuWillOpen(f func(menu Menu)) { func (di *MenuDelegate) MenuWillOpen(menu Menu) { di._MenuWillOpen(menu) } +func (di *MenuDelegate) HasMenuWillHighlightItem() bool { + return di._MenuWillHighlightItem != nil +} -// A concrete type wrapper for the [PMenuDelegate] protocol. -type MenuDelegateWrapper struct { - objc.Object +// 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 } -func (m_ MenuDelegateWrapper) HasMenuHasKeyEquivalentForEventTargetAction() bool { - return m_.RespondsToSelector(objc.Sel("menuHasKeyEquivalent:forEvent:target:action:")) +// 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 (m_ MenuDelegateWrapper) MenuHasKeyEquivalentForEventTargetAction(menu IMenu, event IEvent, target objc.IObject, action objc.Selector) bool { - rv := objc.Call[bool](m_, objc.Sel("menuHasKeyEquivalent:forEvent:target:action:"), objc.Ptr(menu), objc.Ptr(event), target, action) - return rv +func (di *MenuDelegate) SetMenuHasKeyEquivalentForEventTargetAction(f func(menu Menu, event Event, target objc.Object, action objc.Selector) bool) { + di._MenuHasKeyEquivalentForEventTargetAction = f } -func (m_ MenuDelegateWrapper) HasMenuWillHighlightItem() bool { - return m_.RespondsToSelector(objc.Sel("menu:willHighlightItem:")) +// 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 objc.Object, action objc.Selector) bool { + return di._MenuHasKeyEquivalentForEventTargetAction(menu, event, target, action) +} +func (di *MenuDelegate) HasConfinementRectForMenuOnScreen() bool { + return di._ConfinementRectForMenuOnScreen != nil } -// Invoked to indicate that a menu is about to highlight a given item. [Full Topic] +// Invoked to allow the delegate to specify a display location for the menu. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsmenudelegate/1518260-menu?language=objc -func (m_ MenuDelegateWrapper) MenuWillHighlightItem(menu IMenu, item IMenuItem) { - objc.Call[objc.Void](m_, objc.Sel("menu:willHighlightItem:"), objc.Ptr(menu), objc.Ptr(item)) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsmenudelegate/1518247-confinementrectformenu?language=objc +func (di *MenuDelegate) SetConfinementRectForMenuOnScreen(f func(menu Menu, screen Screen) foundation.Rect) { + di._ConfinementRectForMenuOnScreen = f } -func (m_ MenuDelegateWrapper) HasMenuDidClose() bool { - return m_.RespondsToSelector(objc.Sel("menuDidClose:")) +// Invoked to allow the delegate to specify a display location for the menu. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsmenudelegate/1518247-confinementrectformenu?language=objc +func (di *MenuDelegate) ConfinementRectForMenuOnScreen(menu Menu, screen Screen) foundation.Rect { + return di._ConfinementRectForMenuOnScreen(menu, screen) +} +func (di *MenuDelegate) HasMenuUpdateItemAtIndexShouldCancel() bool { + return di._MenuUpdateItemAtIndexShouldCancel != nil } -// Invoked after a menu closed. [Full Topic] +// Invoked to let the delegate update a menu item before it is displayed. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsmenudelegate/1518167-menudidclose?language=objc -func (m_ MenuDelegateWrapper) MenuDidClose(menu IMenu) { - objc.Call[objc.Void](m_, objc.Sel("menuDidClose:"), objc.Ptr(menu)) +// [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 +} + +// Invoked to let the delegate update a menu item before it is displayed. [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) } -func (m_ MenuDelegateWrapper) HasNumberOfItemsInMenu() bool { +// ensure impl type implements protocol interface +var _ PMenuDelegate = (*MenuDelegateObject)(nil) + +// A concrete type for the [PMenuDelegate] protocol. +type MenuDelegateObject struct { + objc.Object +} + +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_ MenuDelegateWrapper) NumberOfItemsInMenu(menu IMenu) int { +func (m_ MenuDelegateObject) NumberOfItemsInMenu(menu Menu) int { rv := objc.Call[int](m_, objc.Sel("numberOfItemsInMenu:"), objc.Ptr(menu)) return rv } -func (m_ MenuDelegateWrapper) HasMenuNeedsUpdate() bool { +func (m_ MenuDelegateObject) HasMenuDidClose() bool { + return m_.RespondsToSelector(objc.Sel("menuDidClose:")) +} + +// Invoked after a menu closed. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsmenudelegate/1518167-menudidclose?language=objc +func (m_ MenuDelegateObject) MenuDidClose(menu Menu) { + objc.Call[objc.Void](m_, objc.Sel("menuDidClose:"), objc.Ptr(menu)) +} + +func (m_ MenuDelegateObject) HasMenuNeedsUpdate() bool { return m_.RespondsToSelector(objc.Sel("menuNeedsUpdate:")) } // Invoked when a menu is about to be displayed at the start of a tracking session. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/appkit/nsmenudelegate/1518235-menuneedsupdate?language=objc -func (m_ MenuDelegateWrapper) MenuNeedsUpdate(menu IMenu) { +func (m_ MenuDelegateObject) MenuNeedsUpdate(menu Menu) { objc.Call[objc.Void](m_, objc.Sel("menuNeedsUpdate:"), objc.Ptr(menu)) } -func (m_ MenuDelegateWrapper) HasConfinementRectForMenuOnScreen() bool { +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:"), objc.Ptr(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:"), objc.Ptr(menu), objc.Ptr(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 objc.Object, action objc.Selector) bool { + rv := objc.Call[bool](m_, objc.Sel("menuHasKeyEquivalent:forEvent:target:action:"), objc.Ptr(menu), objc.Ptr(event), target, action) + return rv +} + +func (m_ MenuDelegateObject) HasConfinementRectForMenuOnScreen() bool { return m_.RespondsToSelector(objc.Sel("confinementRectForMenu:onScreen:")) } // Invoked to allow the delegate to specify a display location for the menu. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/appkit/nsmenudelegate/1518247-confinementrectformenu?language=objc -func (m_ MenuDelegateWrapper) ConfinementRectForMenuOnScreen(menu IMenu, screen IScreen) foundation.Rect { +func (m_ MenuDelegateObject) ConfinementRectForMenuOnScreen(menu Menu, screen Screen) foundation.Rect { rv := objc.Call[foundation.Rect](m_, objc.Sel("confinementRectForMenu:onScreen:"), objc.Ptr(menu), objc.Ptr(screen)) return rv } -func (m_ MenuDelegateWrapper) HasMenuWillOpen() bool { - return m_.RespondsToSelector(objc.Sel("menuWillOpen:")) +func (m_ MenuDelegateObject) HasMenuUpdateItemAtIndexShouldCancel() bool { + return m_.RespondsToSelector(objc.Sel("menu:updateItem:atIndex:shouldCancel:")) } -// Invoked when a menu is about to open. [Full Topic] +// Invoked to let the delegate update a menu item before it is displayed. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsmenudelegate/1518156-menuwillopen?language=objc -func (m_ MenuDelegateWrapper) MenuWillOpen(menu IMenu) { - objc.Call[objc.Void](m_, objc.Sel("menuWillOpen:"), objc.Ptr(menu)) +// [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:"), objc.Ptr(menu), objc.Ptr(item), index, shouldCancel) + return rv } diff --git a/macos/appkit/menu_item.gen.go b/macos/appkit/menu_item.gen.go index 472f98e7..3866d650 100644 --- a/macos/appkit/menu_item.gen.go +++ b/macos/appkit/menu_item.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package appkit @@ -19,60 +19,60 @@ type _MenuItemClass struct { // An interface definition for the [MenuItem] class. type IMenuItem interface { objc.IObject - KeyEquivalent() string - SetKeyEquivalent(value string) - OffStateImage() Image - SetOffStateImage(value IImage) - IsHighlighted() bool + Tag() int + SetTag(value int) + AllowsAutomaticKeyEquivalentMirroring() bool + SetAllowsAutomaticKeyEquivalentMirroring(value bool) + Submenu() Menu + SetSubmenu(value IMenu) + IsHiddenOrHasHiddenAncestor() 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) - IsHidden() bool - SetHidden(value bool) - IndentationLevel() int - SetIndentationLevel(value int) - Action() objc.Selector - SetAction(value objc.Selector) - ToolTip() string - SetToolTip(value string) + MixedStateImage() Image + SetMixedStateImage(value IImage) + IsSeparatorItem() bool + RepresentedObject() objc.Object + SetRepresentedObject(value objc.IObject) IsAlternate() bool SetAlternate(value bool) - View() View - SetView(value IView) - AllowsAutomaticKeyEquivalentLocalization() bool - SetAllowsAutomaticKeyEquivalentLocalization(value bool) + Menu() Menu + SetMenu(value IMenu) AttributedTitle() foundation.AttributedString SetAttributedTitle(value foundation.IAttributedString) - OnStateImage() Image - SetOnStateImage(value IImage) + HasSubmenu() bool 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) - MixedStateImage() Image - SetMixedStateImage(value IImage) - Submenu() Menu - SetSubmenu(value IMenu) - HasSubmenu() bool + IsHidden() bool + SetHidden(value bool) + OffStateImage() Image + SetOffStateImage(value IImage) + KeyEquivalent() string + SetKeyEquivalent(value string) + IsHighlighted() bool KeyEquivalentModifierMask() EventModifierFlags SetKeyEquivalentModifierMask(value EventModifierFlags) - IsHiddenOrHasHiddenAncestor() bool + ToolTip() string + SetToolTip(value string) + AllowsAutomaticKeyEquivalentLocalization() bool + SetAllowsAutomaticKeyEquivalentLocalization(value bool) ParentItem() MenuItem IsEnabled() bool SetEnabled(value bool) - Image() Image - SetImage(value IImage) + OnStateImage() Image + SetOnStateImage(value IImage) } // A command item in an app menu. [Full Topic] @@ -107,10 +107,6 @@ func (mc _MenuItemClass) Alloc() MenuItem { return rv } -func MenuItem_Alloc() MenuItem { - return MenuItemClass.Alloc() -} - func (mc _MenuItemClass) New() MenuItem { rv := objc.Call[MenuItem](mc, objc.Sel("new")) rv.Autorelease() @@ -126,110 +122,95 @@ func (m_ MenuItem) Init() MenuItem { return rv } -// The menu item’s unmodified key equivalent. [Full Topic] +// Returns a menu item that is used to separate logical groups of menu commands. [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/1514838-separatoritem?language=objc +func (mc _MenuItemClass) SeparatorItem() MenuItem { + rv := objc.Call[MenuItem](mc, objc.Sel("separatorItem")) return rv } -// The menu item’s unmodified key equivalent. [Full Topic] +// Returns a menu item that is used to separate logical groups of menu commands. [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/1514838-separatoritem?language=objc +func MenuItem_SeparatorItem() MenuItem { + return MenuItemClass.SeparatorItem() } -// The image of the menu item that indicates an “off” state. [Full Topic] +// The menu item's tag. [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/1514840-tag?language=objc +func (m_ MenuItem) Tag() int { + rv := objc.Call[int](m_, objc.Sel("tag")) return rv } -// The image of the menu item that indicates an “off” state. [Full Topic] +// The menu item's tag. [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:"), objc.Ptr(value)) +// [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) } -// A Boolean value that indicates whether the menu item should be drawn highlighted. [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/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/3787555-allowsautomatickeyequivalentmirr?language=objc +func (m_ MenuItem) AllowsAutomaticKeyEquivalentMirroring() bool { + rv := objc.Call[bool](m_, objc.Sel("allowsAutomaticKeyEquivalentMirroring")) return rv } -// The user-assigned key equivalent for the 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/1514850-userkeyequivalent?language=objc -func (m_ MenuItem) UserKeyEquivalent() string { - rv := objc.Call[string](m_, objc.Sel("userKeyEquivalent")) - return rv +// [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 target. [Full Topic] +// The submenu of the 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/1514845-submenu?language=objc +func (m_ MenuItem) Submenu() Menu { + rv := objc.Call[Menu](m_, objc.Sel("submenu")) return rv } -// The menu item's target. [Full Topic] +// The submenu of the 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/1514845-submenu?language=objc +func (m_ MenuItem) SetSubmenu(value IMenu) { + objc.Call[objc.Void](m_, objc.Sel("setSubmenu:"), objc.Ptr(value)) } -// The state of the menu item. [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/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/1514832-hiddenorhashiddenancestor?language=objc +func (m_ MenuItem) IsHiddenOrHasHiddenAncestor() bool { + rv := objc.Call[bool](m_, objc.Sel("isHiddenOrHasHiddenAncestor")) return rv } -// The state of the menu item. [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) -} - -// A Boolean value that indicates whether the menu item is hidden. [Full Topic] +// The user-assigned key equivalent for the menu item. [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")) +// [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 } -// 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 menu item indentation level for the menu item. [Full Topic] +// The menu item’s image. [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/1514819-image?language=objc +func (m_ MenuItem) Image() Image { + rv := objc.Call[Image](m_, objc.Sel("image")) return rv } -// The menu item indentation level for the menu item. [Full Topic] +// The menu item’s image. [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/1514819-image?language=objc +func (m_ MenuItem) SetImage(value IImage) { + objc.Call[objc.Void](m_, objc.Sel("setImage:"), objc.Ptr(value)) } // The menu item's action-method selector. [Full Topic] @@ -247,34 +228,34 @@ func (m_ MenuItem) SetAction(value objc.Selector) { objc.Call[objc.Void](m_, objc.Sel("setAction:"), value) } -// A help tag for the menu item. [Full Topic] +// The menu item indentation level 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")) +// [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 } -// A help tag for the menu item. [Full Topic] +// The menu item indentation level 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) +// [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) } -// A Boolean value that marks the menu item as an alternate to the previous menu item. [Full Topic] +// The menu item's target. [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/1514843-target?language=objc +func (m_ MenuItem) Target() objc.Object { + rv := objc.Call[objc.Object](m_, objc.Sel("target")) return rv } -// A Boolean value that marks the menu item as an alternate to the previous menu item. [Full Topic] +// The menu item's target. [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/1514843-target?language=objc +func (m_ MenuItem) SetTarget(value objc.IObject) { + objc.Call[objc.Void](m_, objc.Sel("setTarget:"), value) } // The content view for the menu item. [Full Topic] @@ -292,79 +273,72 @@ func (m_ MenuItem) SetView(value IView) { objc.Call[objc.Void](m_, objc.Sel("setView:"), objc.Ptr(value)) } -// A Boolean value that determines whether the system automatically remaps the keyboard shortcut to support localized keyboards. [Full Topic] +// The state of the menu item. [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/1514804-state?language=objc +func (m_ MenuItem) State() ControlStateValue { + rv := objc.Call[ControlStateValue](m_, objc.Sel("state")) return rv } -// A Boolean value that determines whether the system automatically remaps the keyboard shortcut to support localized keyboards. [Full Topic] +// The state of the menu item. [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) +// [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 custom string for a menu item. [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/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/1514827-mixedstateimage?language=objc +func (m_ MenuItem) MixedStateImage() Image { + rv := objc.Call[Image](m_, objc.Sel("mixedStateImage")) return rv } -// A custom string for a menu item. [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/1514860-attributedtitle?language=objc -func (m_ MenuItem) SetAttributedTitle(value foundation.IAttributedString) { - objc.Call[objc.Void](m_, objc.Sel("setAttributedTitle:"), objc.Ptr(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:"), objc.Ptr(value)) } -// The image of the menu item that indicates an “on” state. [Full Topic] +// A Boolean value indicating whether the menu item is a separator item. [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/1514837-separatoritem?language=objc +func (m_ MenuItem) IsSeparatorItem() bool { + rv := objc.Call[bool](m_, objc.Sel("isSeparatorItem")) return rv } -// The image of the menu item that indicates an “on” state. [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:"), objc.Ptr(value)) -} - -// [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) } -// 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 marks the menu item as an alternate to the previous menu item. [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/1514823-alternate?language=objc +func (m_ MenuItem) IsAlternate() bool { + rv := objc.Call[bool](m_, objc.Sel("isAlternate")) 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] +// 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/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/1514823-alternate?language=objc +func (m_ MenuItem) SetAlternate(value bool) { + objc.Call[objc.Void](m_, objc.Sel("setAlternate:"), value) } // The menu item’s menu. [Full Topic] @@ -382,71 +356,42 @@ func (m_ MenuItem) SetMenu(value IMenu) { objc.Call[objc.Void](m_, objc.Sel("setMenu:"), objc.Ptr(value)) } -// Returns a Boolean value that indicates whether menu items conform to user preferences for key equivalents. [Full Topic] +// A custom string for a menu item. [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")) +// [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 } -// 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 Boolean value indicating whether the menu item is a separator item. [Full Topic] +// A custom string for a menu 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]: 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:"), objc.Ptr(value)) } -// The object represented by the menu item. [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/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/1514817-hassubmenu?language=objc +func (m_ MenuItem) HasSubmenu() bool { + rv := objc.Call[bool](m_, objc.Sel("hasSubmenu")) return rv } -// The object represented by the menu item. [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) -} - -// The menu item's tag. [Full Topic] +// [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/2880316-allowskeyequivalentwhenhidden?language=objc +func (m_ MenuItem) AllowsKeyEquivalentWhenHidden() bool { + rv := objc.Call[bool](m_, objc.Sel("allowsKeyEquivalentWhenHidden")) return rv } -// The menu item's tag. [Full Topic] +// [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/2880316-allowskeyequivalentwhenhidden?language=objc +func (m_ MenuItem) SetAllowsKeyEquivalentWhenHidden(value bool) { + objc.Call[objc.Void](m_, objc.Sel("setAllowsKeyEquivalentWhenHidden:"), value) } // The menu item's title. [Full Topic] @@ -464,41 +409,56 @@ func (m_ MenuItem) SetTitle(value string) { objc.Call[objc.Void](m_, objc.Sel("setTitle:"), value) } -// The image of the menu item that indicates a “mixed” state, that is, a state neither “on” nor “off.” [Full Topic] +// A Boolean value that indicates whether the menu item is hidden. [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/1514846-hidden?language=objc +func (m_ MenuItem) IsHidden() bool { + rv := objc.Call[bool](m_, objc.Sel("isHidden")) return rv } -// The image of the menu item that indicates a “mixed” state, that is, a state neither “on” nor “off.” [Full Topic] +// A Boolean value that indicates whether the menu item is hidden. [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:"), objc.Ptr(value)) +// [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 submenu of the menu item. [Full Topic] +// The image of the menu item that indicates an “off” state. [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/1514821-offstateimage?language=objc +func (m_ MenuItem) OffStateImage() Image { + rv := objc.Call[Image](m_, objc.Sel("offStateImage")) return rv } -// The submenu of the menu item. [Full Topic] +// The image of the menu item that indicates an “off” state. [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:"), objc.Ptr(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:"), objc.Ptr(value)) } -// A Boolean value that indicates whether the menu item has a submenu. [Full Topic] +// The menu item’s unmodified key equivalent. [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/1514842-keyequivalent?language=objc +func (m_ MenuItem) KeyEquivalent() string { + rv := objc.Call[string](m_, objc.Sel("keyEquivalent")) + return rv +} + +// The menu item’s unmodified key equivalent. [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) +} + +// A Boolean value that indicates whether the menu item should be drawn highlighted. [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")) return rv } @@ -517,14 +477,65 @@ func (m_ MenuItem) SetKeyEquivalentModifierMask(value EventModifierFlags) { objc.Call[objc.Void](m_, objc.Sel("setKeyEquivalentModifierMask:"), value) } -// A Boolean value that indicates whether the menu item or any of its superitems is hidden. [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/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/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] +// +// [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 +} + +// 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 @@ -548,17 +559,17 @@ func (m_ MenuItem) SetEnabled(value bool) { objc.Call[objc.Void](m_, objc.Sel("setEnabled:"), value) } -// The menu item’s image. [Full Topic] +// The image of the menu item that indicates an “on” state. [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/1514861-onstateimage?language=objc +func (m_ MenuItem) OnStateImage() Image { + rv := objc.Call[Image](m_, objc.Sel("onStateImage")) return rv } -// The menu item’s image. [Full Topic] +// The image of the menu item that indicates an “on” state. [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:"), objc.Ptr(value)) +// [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:"), objc.Ptr(value)) } diff --git a/macos/appkit/menu_item_cell.gen.go b/macos/appkit/menu_item_cell.gen.go index c71bfbdd..cba4bad9 100644 --- a/macos/appkit/menu_item_cell.gen.go +++ b/macos/appkit/menu_item_cell.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package appkit @@ -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) - DrawKeyEquivalentWithFrameInView(cellFrame foundation.Rect, controlView IView) - KeyEquivalentWidth() float64 - TitleWidth() float64 - StateImageWidth() float64 + NeedsDisplay() bool + SetNeedsDisplay(value bool) + ImageWidth() float64 MenuItem() MenuItem SetMenuItem(value IMenuItem) + TitleWidth() float64 NeedsSizing() bool SetNeedsSizing(value bool) - ImageWidth() float64 - NeedsDisplay() bool - SetNeedsDisplay(value bool) + KeyEquivalentWidth() float64 + StateImageWidth() float64 } // An object that handles the measurement and display of a single menu item in its encompassing frame. [Full Topic] @@ -70,10 +70,6 @@ func (mc _MenuItemCellClass) Alloc() MenuItemCell { return rv } -func MenuItemCell_Alloc() MenuItemCell { - return MenuItemCellClass.Alloc() -} - func (mc _MenuItemCellClass) New() MenuItemCell { rv := objc.Call[MenuItemCell](mc, objc.Sel("new")) rv.Autorelease() @@ -111,6 +107,13 @@ 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, objc.Ptr(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 @@ -126,6 +129,13 @@ func (m_ MenuItemCell) DrawSeparatorItemWithFrameInView(cellFrame foundation.Rec objc.Call[objc.Void](m_, objc.Sel("drawSeparatorItemWithFrame:inView:"), cellFrame, objc.Ptr(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, objc.Ptr(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 @@ -133,13 +143,6 @@ 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, objc.Ptr(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 @@ -147,34 +150,26 @@ func (m_ MenuItemCell) DrawStateImageWithFrameInView(cellFrame foundation.Rect, objc.Call[objc.Void](m_, objc.Sel("drawStateImageWithFrame:inView:"), cellFrame, objc.Ptr(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, objc.Ptr(controlView)) -} - -// The width of the menu item’s key equivalent string. [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/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/1498861-needsdisplay?language=objc +func (m_ MenuItemCell) NeedsDisplay() bool { + rv := objc.Call[bool](m_, objc.Sel("needsDisplay")) return rv } -// The width of the menu item’s text, measured in points. [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/1498865-titlewidth?language=objc -func (m_ MenuItemCell) TitleWidth() float64 { - rv := objc.Call[float64](m_, objc.Sel("titleWidth")) - return rv +// [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) } -// The width of the image used to indicate the state of the menu item. [Full Topic] +// The width of the image associated with the menu item. [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/1498877-imagewidth?language=objc +func (m_ MenuItemCell) ImageWidth() float64 { + rv := objc.Call[float64](m_, objc.Sel("imageWidth")) return rv } @@ -193,6 +188,14 @@ func (m_ MenuItemCell) SetMenuItem(value IMenuItem) { objc.Call[objc.Void](m_, objc.Sel("setMenuItem:"), objc.Ptr(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 @@ -208,25 +211,18 @@ func (m_ MenuItemCell) SetNeedsSizing(value bool) { objc.Call[objc.Void](m_, objc.Sel("setNeedsSizing:"), value) } -// The width of the image associated with the menu item. [Full Topic] +// The width of the menu item’s key equivalent string. [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/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 image used to indicate the state of 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/1498879-stateimagewidth?language=objc +func (m_ MenuItemCell) StateImageWidth() float64 { + rv := objc.Call[float64](m_, objc.Sel("stateImageWidth")) 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_item_validation.gen.go b/macos/appkit/menu_item_validation_protocol.gen.go similarity index 64% rename from macos/appkit/menu_item_validation.gen.go rename to macos/appkit/menu_item_validation_protocol.gen.go index 34dba769..75b06595 100644 --- a/macos/appkit/menu_item_validation.gen.go +++ b/macos/appkit/menu_item_validation_protocol.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package appkit @@ -15,19 +15,22 @@ type PMenuItemValidation interface { HasValidateMenuItem() bool } -// A concrete type wrapper for the [PMenuItemValidation] protocol. -type MenuItemValidationWrapper struct { +// ensure impl type implements protocol interface +var _ PMenuItemValidation = (*MenuItemValidationObject)(nil) + +// A concrete type for the [PMenuItemValidation] protocol. +type MenuItemValidationObject struct { objc.Object } -func (m_ MenuItemValidationWrapper) HasValidateMenuItem() bool { +func (m_ MenuItemValidationObject) HasValidateMenuItem() bool { return m_.RespondsToSelector(objc.Sel("validateMenuItem:")) } // Implemented to override the default action of enabling or disabling a specific menu item. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/appkit/nsmenuitemvalidation/3005191-validatemenuitem?language=objc -func (m_ MenuItemValidationWrapper) ValidateMenuItem(menuItem IMenuItem) bool { +func (m_ MenuItemValidationObject) ValidateMenuItem(menuItem MenuItem) bool { rv := objc.Call[bool](m_, objc.Sel("validateMenuItem:"), objc.Ptr(menuItem)) return rv } diff --git a/macos/appkit/menu_toolbar_item.gen.go b/macos/appkit/menu_toolbar_item.gen.go index deb98ba7..4ee79135 100644 --- a/macos/appkit/menu_toolbar_item.gen.go +++ b/macos/appkit/menu_toolbar_item.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package appkit @@ -18,10 +18,10 @@ type _MenuToolbarItemClass struct { // An interface definition for the [MenuToolbarItem] class. type IMenuToolbarItem interface { IToolbarItem - ShowsIndicator() bool - SetShowsIndicator(value bool) Menu() Menu SetMenu(value IMenu) + ShowsIndicator() bool + SetShowsIndicator(value bool) } // A control that presents a menu in a window’s toolbar. [Full Topic] @@ -42,10 +42,6 @@ func (mc _MenuToolbarItemClass) Alloc() MenuToolbarItem { return rv } -func MenuToolbarItem_Alloc() MenuToolbarItem { - return MenuToolbarItemClass.Alloc() -} - func (mc _MenuToolbarItemClass) New() MenuToolbarItem { rv := objc.Call[MenuToolbarItem](mc, objc.Sel("new")) rv.Autorelease() @@ -75,21 +71,6 @@ func NewMenuToolbarItemWithItemIdentifier(itemIdentifier ToolbarItemIdentifier) return instance } -// 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 -func (m_ MenuToolbarItem) ShowsIndicator() bool { - rv := objc.Call[bool](m_, objc.Sel("showsIndicator")) - return rv -} - -// 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 -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 @@ -104,3 +85,18 @@ func (m_ MenuToolbarItem) Menu() Menu { func (m_ MenuToolbarItem) SetMenu(value IMenu) { objc.Call[objc.Void](m_, objc.Sel("setMenu:"), objc.Ptr(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 +func (m_ MenuToolbarItem) ShowsIndicator() bool { + rv := objc.Call[bool](m_, objc.Sel("showsIndicator")) + return rv +} + +// 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 +func (m_ MenuToolbarItem) SetShowsIndicator(value bool) { + objc.Call[objc.Void](m_, objc.Sel("setShowsIndicator:"), value) +} diff --git a/macos/appkit/mutable_font_collection.gen.go b/macos/appkit/mutable_font_collection.gen.go index 2b952001..2c9b84e6 100644 --- a/macos/appkit/mutable_font_collection.gen.go +++ b/macos/appkit/mutable_font_collection.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package appkit @@ -20,8 +20,8 @@ type IMutableFontCollection interface { IFontCollection AddQueryForDescriptors(descriptors []IFontDescriptor) RemoveQueryForDescriptors(descriptors []IFontDescriptor) - SetExclusionDescriptors(value []IFontDescriptor) SetQueryDescriptors(value []IFontDescriptor) + SetExclusionDescriptors(value []IFontDescriptor) } // A mutable collection of font descriptors taken together as a single object. [Full Topic] @@ -42,10 +42,6 @@ func (mc _MutableFontCollectionClass) Alloc() MutableFontCollection { return rv } -func MutableFontCollection_Alloc() MutableFontCollection { - return MutableFontCollectionClass.Alloc() -} - func (mc _MutableFontCollectionClass) New() MutableFontCollection { rv := objc.Call[MutableFontCollection](mc, objc.Sel("new")) rv.Autorelease() @@ -75,16 +71,16 @@ func (m_ MutableFontCollection) RemoveQueryForDescriptors(descriptors []IFontDes objc.Call[objc.Void](m_, objc.Sel("removeQueryForDescriptors:"), descriptors) } -// 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) } + +// 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) +} diff --git a/macos/appkit/mutable_paragraph_style.gen.go b/macos/appkit/mutable_paragraph_style.gen.go index 8b1f730c..8d103aa5 100644 --- a/macos/appkit/mutable_paragraph_style.gen.go +++ b/macos/appkit/mutable_paragraph_style.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package appkit @@ -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) - RemoveTabStop(anObject ITextTab) - SetLineSpacing(value float64) + SetTextBlocks(value []ITextBlock) SetTextLists(value []ITextList) - SetAllowsDefaultTighteningForTruncation(value bool) - SetUsesDefaultHyphenation(value bool) - SetMinimumLineHeight(value float64) - SetTighteningFactorForTruncation(value float64) - SetAlignment(value TextAlignment) - SetFirstLineHeadIndent(value float64) - SetLineBreakStrategy(value LineBreakStrategy) - SetMaximumLineHeight(value float64) SetHeaderLevel(value int) + SetTighteningFactorForTruncation(value float64) + SetHeadIndent(value float64) SetDefaultTabInterval(value float64) - SetTabStops(value []ITextTab) - SetTextBlocks(value []ITextBlock) - SetLineHeightMultiple(value float64) SetBaseWritingDirection(value WritingDirection) - SetHyphenationFactor(value float64) - SetParagraphSpacingBefore(value float64) SetParagraphSpacing(value float64) SetTailIndent(value float64) - SetHeadIndent(value float64) + SetTabStops(value []ITextTab) + SetAlignment(value TextAlignment) + SetHyphenationFactor(value float64) + 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) } // An object for changing the values of the subattributes in a paragraph style attribute. [Full Topic] @@ -62,10 +62,6 @@ func (mc _MutableParagraphStyleClass) Alloc() MutableParagraphStyle { return rv } -func MutableParagraphStyle_Alloc() MutableParagraphStyle { - return MutableParagraphStyleClass.Alloc() -} - func (mc _MutableParagraphStyleClass) New() MutableParagraphStyle { rv := objc.Call[MutableParagraphStyle](mc, objc.Sel("new")) rv.Autorelease() @@ -81,6 +77,13 @@ 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:"), objc.Ptr(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 @@ -95,18 +98,11 @@ func (m_ MutableParagraphStyle) AddTabStop(anObject ITextTab) { objc.Call[objc.Void](m_, objc.Sel("addTabStop:"), objc.Ptr(anObject)) } -// 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:"), objc.Ptr(anObject)) -} - -// The distance in points between the bottom of one line fragment and the top of the next. [Full Topic] +// The text blocks that contain the paragraph. [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/appkit/nsmutableparagraphstyle/1535855-textblocks?language=objc +func (m_ MutableParagraphStyle) SetTextBlocks(value []ITextBlock) { + objc.Call[objc.Void](m_, objc.Sel("setTextBlocks:"), value) } // The text lists that contain the paragraph. [Full Topic] @@ -116,25 +112,11 @@ func (m_ MutableParagraphStyle) SetTextLists(value []ITextList) { objc.Call[objc.Void](m_, objc.Sel("setTextLists:"), value) } -// A Boolean value that indicates whether the system tightens intercharacter spacing before truncating text. [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] -// -// [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] +// The paragraph’s header level for HTML generation. [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) +// [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) } // The threshold for using tightening as an alternative to truncation. [Full Topic] @@ -144,46 +126,39 @@ func (m_ MutableParagraphStyle) SetTighteningFactorForTruncation(value float64) objc.Call[objc.Void](m_, objc.Sel("setTighteningFactorForTruncation:"), 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 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/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/1525135-headindent?language=objc +func (m_ MutableParagraphStyle) SetHeadIndent(value float64) { + objc.Call[objc.Void](m_, objc.Sel("setHeadIndent:"), value) } -// The strategies that the text system may use to break lines while laying out the paragraph. [Full Topic] +// A number used as the document’s default tab spacing. [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/1529861-defaulttabinterval?language=objc +func (m_ MutableParagraphStyle) SetDefaultTabInterval(value float64) { + objc.Call[objc.Void](m_, objc.Sel("setDefaultTabInterval:"), value) } -// The paragraph’s maximum line height. [Full Topic] +// The base writing direction for 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/1534601-basewritingdirection?language=objc +func (m_ MutableParagraphStyle) SetBaseWritingDirection(value WritingDirection) { + objc.Call[objc.Void](m_, objc.Sel("setBaseWritingDirection:"), value) } -// The paragraph’s header level for HTML generation. [Full Topic] +// The space after the end of the paragraph. [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/1532528-paragraphspacing?language=objc +func (m_ MutableParagraphStyle) SetParagraphSpacing(value float64) { + objc.Call[objc.Void](m_, objc.Sel("setParagraphSpacing:"), value) } -// A number used as the document’s default tab spacing. [Full Topic] +// The trailing indentation 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/1531666-tailindent?language=objc +func (m_ MutableParagraphStyle) SetTailIndent(value float64) { + objc.Call[objc.Void](m_, objc.Sel("setTailIndent:"), value) } // The text tab objects that represent the paragraph’s tab stops. [Full Topic] @@ -193,32 +168,46 @@ func (m_ MutableParagraphStyle) SetTabStops(value []ITextTab) { objc.Call[objc.Void](m_, objc.Sel("setTabStops:"), value) } -// The text blocks that contain the paragraph. [Full Topic] +// The text alignment of the paragraph. [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/1534368-alignment?language=objc +func (m_ MutableParagraphStyle) SetAlignment(value TextAlignment) { + objc.Call[objc.Void](m_, objc.Sel("setAlignment:"), 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 float64) { + objc.Call[objc.Void](m_, objc.Sel("setHyphenationFactor:"), value) } -// The base writing direction for the paragraph. [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/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/1534136-allowsdefaulttighteningfortrunca?language=objc +func (m_ MutableParagraphStyle) SetAllowsDefaultTighteningForTruncation(value bool) { + objc.Call[objc.Void](m_, objc.Sel("setAllowsDefaultTighteningForTruncation:"), value) } -// The paragraph’s threshold for hyphenation. [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/uikit/nsmutableparagraphstyle/1535553-hyphenationfactor?language=objc -func (m_ MutableParagraphStyle) SetHyphenationFactor(value float64) { - objc.Call[objc.Void](m_, objc.Sel("setHyphenationFactor:"), value) +// [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 indentation of the first line of 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) +} + +// The line height multiple. [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) } // The distance between the paragraph’s top and the beginning of its text content. [Full Topic] @@ -228,23 +217,30 @@ func (m_ MutableParagraphStyle) SetParagraphSpacingBefore(value float64) { objc.Call[objc.Void](m_, objc.Sel("setParagraphSpacingBefore:"), value) } -// The space after the end of the paragraph. [Full Topic] +// The paragraph’s minimum 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/1531118-minimumlineheight?language=objc +func (m_ MutableParagraphStyle) SetMinimumLineHeight(value float64) { + objc.Call[objc.Void](m_, objc.Sel("setMinimumLineHeight:"), value) } -// The trailing indentation of 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/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/uikit/nsmutableparagraphstyle/3667462-linebreakstrategy?language=objc +func (m_ MutableParagraphStyle) SetLineBreakStrategy(value LineBreakStrategy) { + objc.Call[objc.Void](m_, objc.Sel("setLineBreakStrategy:"), value) } -// The indentation of the paragraph’s lines other than the first. [Full Topic] +// The paragraph’s maximum line height. [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/1524351-maximumlineheight?language=objc +func (m_ MutableParagraphStyle) SetMaximumLineHeight(value float64) { + objc.Call[objc.Void](m_, objc.Sel("setMaximumLineHeight:"), 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) } diff --git a/macos/appkit/nib.gen.go b/macos/appkit/nib.gen.go index 7be8af99..72219d52 100644 --- a/macos/appkit/nib.gen.go +++ b/macos/appkit/nib.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package appkit @@ -35,30 +35,30 @@ func NibFrom(ptr unsafe.Pointer) Nib { } } -func (n_ Nib) InitWithNibNamedBundle(nibName NibName, bundle foundation.IBundle) Nib { - rv := objc.Call[Nib](n_, objc.Sel("initWithNibNamed:bundle:"), nibName, objc.Ptr(bundle)) +func (n_ Nib) InitWithNibDataBundle(nibData []byte, bundle foundation.IBundle) Nib { + rv := objc.Call[Nib](n_, objc.Sel("initWithNibData:bundle:"), nibData, objc.Ptr(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 } -func (n_ Nib) InitWithNibDataBundle(nibData []byte, bundle foundation.IBundle) Nib { - rv := objc.Call[Nib](n_, objc.Sel("initWithNibData:bundle:"), nibData, objc.Ptr(bundle)) +func (n_ Nib) InitWithNibNamedBundle(nibName NibName, bundle foundation.IBundle) Nib { + rv := objc.Call[Nib](n_, objc.Sel("initWithNibNamed:bundle:"), nibName, objc.Ptr(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 } @@ -68,10 +68,6 @@ func (nc _NibClass) Alloc() Nib { return rv } -func Nib_Alloc() Nib { - return NibClass.Alloc() -} - func (nc _NibClass) New() Nib { rv := objc.Call[Nib](nc, objc.Sel("new")) rv.Autorelease() diff --git a/macos/appkit/nib_connector.gen.go b/macos/appkit/nib_connector.gen.go index 3304eda4..72c32cb9 100644 --- a/macos/appkit/nib_connector.gen.go +++ b/macos/appkit/nib_connector.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package appkit @@ -20,12 +20,12 @@ type INibConnector interface { objc.IObject ReplaceObjectWithObject(oldObject objc.IObject, newObject objc.IObject) EstablishConnection() - Source() objc.Object - SetSource(value objc.IObject) - Destination() objc.Object - SetDestination(value objc.IObject) Label() string SetLabel(value string) + Destination() objc.Object + SetDestination(value objc.IObject) + Source() objc.Object + SetSource(value objc.IObject) } // A connection between two nibs. [Full Topic] @@ -46,10 +46,6 @@ func (nc _NibConnectorClass) Alloc() NibConnector { return rv } -func NibConnector_Alloc() NibConnector { - return NibConnectorClass.Alloc() -} - func (nc _NibConnectorClass) New() NibConnector { rv := objc.Call[NibConnector](nc, objc.Sel("new")) rv.Autorelease() @@ -81,17 +77,17 @@ func (n_ NibConnector) EstablishConnection() { // [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) } // [Full Topic] @@ -111,15 +107,15 @@ func (n_ NibConnector) SetDestination(value objc.IObject) { // [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) } diff --git a/macos/appkit/nib_control_connector.gen.go b/macos/appkit/nib_control_connector.gen.go index 954dc939..4ad2c816 100644 --- a/macos/appkit/nib_control_connector.gen.go +++ b/macos/appkit/nib_control_connector.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package appkit @@ -38,10 +38,6 @@ func (nc _NibControlConnectorClass) Alloc() NibControlConnector { return rv } -func NibControlConnector_Alloc() NibControlConnector { - return NibControlConnectorClass.Alloc() -} - func (nc _NibControlConnectorClass) New() NibControlConnector { rv := objc.Call[NibControlConnector](nc, objc.Sel("new")) rv.Autorelease() diff --git a/macos/appkit/nib_outlet_connector.gen.go b/macos/appkit/nib_outlet_connector.gen.go index 2efa8660..a8a0f0de 100644 --- a/macos/appkit/nib_outlet_connector.gen.go +++ b/macos/appkit/nib_outlet_connector.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package appkit @@ -38,10 +38,6 @@ func (nc _NibOutletConnectorClass) Alloc() NibOutletConnector { return rv } -func NibOutletConnector_Alloc() NibOutletConnector { - return NibOutletConnectorClass.Alloc() -} - func (nc _NibOutletConnectorClass) New() NibOutletConnector { rv := objc.Call[NibOutletConnector](nc, objc.Sel("new")) rv.Autorelease() diff --git a/macos/appkit/object_controller.gen.go b/macos/appkit/object_controller.gen.go index afef5075..9c6d0efd 100644 --- a/macos/appkit/object_controller.gen.go +++ b/macos/appkit/object_controller.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package appkit @@ -20,37 +20,37 @@ type _ObjectControllerClass struct { // An interface definition for the [ObjectController] class. type IObjectController interface { IController - AddObject(object objc.IObject) + DefaultFetchRequest() coredata.FetchRequest PrepareContent() - NewObject() objc.Object + Remove(sender objc.IObject) objc.Object + FetchWithRequestMergeError(fetchRequest coredata.IFetchRequest, merge bool, error foundation.IError) bool RemoveObject(object objc.IObject) - Fetch(sender objc.IObject) objc.Object + NewObject() objc.Object + Add(sender objc.IObject) objc.Object ValidateUserInterfaceItem(item PValidatedUserInterfaceItem) bool ValidateUserInterfaceItemObject(itemObject objc.IObject) bool - Remove(sender objc.IObject) objc.Object - Add(sender objc.IObject) objc.Object - FetchWithRequestMergeError(fetchRequest coredata.IFetchRequest, merge bool, error foundation.IError) bool - DefaultFetchRequest() coredata.FetchRequest + AddObject(object objc.IObject) + Fetch(sender objc.IObject) objc.Object + IsEditable() bool + SetEditable(value bool) EntityName() string SetEntityName(value string) - Content() objc.Object - SetContent(value objc.IObject) - CanAdd() bool ObjectClass() objc.Class SetObjectClass(value objc.IClass) - IsEditable() bool - SetEditable(value bool) - FetchPredicate() foundation.Predicate - SetFetchPredicate(value foundation.IPredicate) - SelectedObjects() []objc.Object AutomaticallyPreparesContent() bool SetAutomaticallyPreparesContent(value bool) - Selection() objc.Object + FetchPredicate() foundation.Predicate + SetFetchPredicate(value foundation.IPredicate) + UsesLazyFetching() bool + SetUsesLazyFetching(value bool) + Content() objc.Object + SetContent(value objc.IObject) ManagedObjectContext() coredata.ManagedObjectContext SetManagedObjectContext(value coredata.IManagedObjectContext) + SelectedObjects() []objc.Object + CanAdd() bool CanRemove() bool - UsesLazyFetching() bool - SetUsesLazyFetching(value bool) + Selection() objc.Object } // A controller that can manage an object's properties referenced by key-value paths. [Full Topic] @@ -85,10 +85,6 @@ func (oc _ObjectControllerClass) Alloc() ObjectController { return rv } -func ObjectController_Alloc() ObjectController { - return ObjectControllerClass.Alloc() -} - func (oc _ObjectControllerClass) New() ObjectController { rv := objc.Call[ObjectController](oc, objc.Sel("new")) rv.Autorelease() @@ -104,11 +100,12 @@ func (o_ ObjectController) Init() ObjectController { return rv } -// Sets the receiver’s content object. [Full Topic] +// Returns the default fetch request used by the receiver. [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/1528145-defaultfetchrequest?language=objc +func (o_ ObjectController) DefaultFetchRequest() coredata.FetchRequest { + rv := objc.Call[coredata.FetchRequest](o_, objc.Sel("defaultFetchRequest")) + return rv } // Typically overridden by subclasses that require additional control over the creation of new objects. [Full Topic] @@ -118,12 +115,19 @@ func (o_ ObjectController) PrepareContent() { objc.Call[objc.Void](o_, objc.Sel("prepareContent")) } -// Creates and returns a new object of the appropriate class. [Full Topic] +// Removes the receiver’s content object. [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")) - rv.Autorelease() +// [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] +// +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsobjectcontroller/1531782-fetchwithrequest?language=objc +func (o_ ObjectController) FetchWithRequestMergeError(fetchRequest coredata.IFetchRequest, merge bool, error foundation.IError) bool { + rv := objc.Call[bool](o_, objc.Sel("fetchWithRequest:merge:error:"), objc.Ptr(fetchRequest), merge, objc.Ptr(error)) return rv } @@ -134,11 +138,19 @@ func (o_ ObjectController) RemoveObject(object objc.IObject) { objc.Call[objc.Void](o_, objc.Sel("removeObject:"), object) } -// Causes the receiver to fetch the data objects specified by the entity name and fetch predicate. [Full Topic] +// Creates and returns a new object of the appropriate class. [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/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] +// +// [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 } @@ -159,36 +171,34 @@ func (o_ ObjectController) ValidateUserInterfaceItemObject(itemObject objc.IObje return rv } -// Removes the receiver’s content object. [Full Topic] +// Sets 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 +// [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) } -// 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 } -// Subclasses should override this method to customize a fetch request, for example to specify fetch limits. [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/1531782-fetchwithrequest?language=objc -func (o_ ObjectController) FetchWithRequestMergeError(fetchRequest coredata.IFetchRequest, merge bool, error foundation.IError) bool { - rv := objc.Call[bool](o_, objc.Sel("fetchWithRequest:merge:error:"), objc.Ptr(fetchRequest), merge, objc.Ptr(error)) +// [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 } -// Returns the default fetch request used by the receiver. [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/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/1534699-editable?language=objc +func (o_ ObjectController) SetEditable(value bool) { + objc.Call[objc.Void](o_, objc.Sel("setEditable:"), value) } // The entity name used by the receiver to create new objects. [Full Topic] @@ -206,29 +216,6 @@ 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 @@ -244,19 +231,19 @@ func (o_ ObjectController) SetObjectClass(value objc.IClass) { objc.Call[objc.Void](o_, objc.Sel("setObjectClass:"), objc.Ptr(value)) } -// A Boolean that indicates whether the receiver allows adding and removing objects. [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/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/1534767-automaticallypreparescontent?language=objc +func (o_ ObjectController) AutomaticallyPreparesContent() bool { + rv := objc.Call[bool](o_, objc.Sel("automaticallyPreparesContent")) return rv } -// A Boolean that indicates whether the receiver allows adding and removing objects. [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/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/1534767-automaticallypreparescontent?language=objc +func (o_ ObjectController) SetAutomaticallyPreparesContent(value bool) { + objc.Call[objc.Void](o_, objc.Sel("setAutomaticallyPreparesContent:"), value) } // The receiver’s fetch predicate. [Full Topic] @@ -274,35 +261,34 @@ func (o_ ObjectController) SetFetchPredicate(value foundation.IPredicate) { objc.Call[objc.Void](o_, objc.Sel("setFetchPredicate:"), objc.Ptr(value)) } -// An array of all objects to be affected by editing. [Full Topic] +// A Boolean that indicates whether the receiver uses lazy fetching. [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")) +// [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 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 uses lazy fetching. [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")) - return rv +// [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) } -// A Boolean that shows whether the receiver automatically creates and inserts new content objects automatically when loading from a nib file. [Full Topic] +// The receiver’s content object. [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/1530826-content?language=objc +func (o_ ObjectController) Content() objc.Object { + rv := objc.Call[objc.Object](o_, objc.Sel("content")) + return rv } -// A proxy object representing the receiver’s selection. [Full Topic] +// The receiver’s content object. [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")) - return rv +// [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) } // The receiver’s managed object context. [Full Topic] @@ -320,6 +306,22 @@ func (o_ ObjectController) SetManagedObjectContext(value coredata.IManagedObject objc.Call[objc.Void](o_, objc.Sel("setManagedObjectContext:"), objc.Ptr(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 @@ -328,17 +330,10 @@ func (o_ ObjectController) CanRemove() bool { return rv } -// A Boolean that indicates whether the receiver uses lazy fetching. [Full Topic] +// A proxy object representing the receiver’s selection. [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/1527403-selection?language=objc +func (o_ ObjectController) Selection() objc.Object { + rv := objc.Call[objc.Object](o_, objc.Sel("selection")) 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_context.gen.go b/macos/appkit/open_gl_context.gen.go index c9002e43..7db58fdb 100644 --- a/macos/appkit/open_gl_context.gen.go +++ b/macos/appkit/open_gl_context.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package appkit @@ -38,10 +38,6 @@ func (oc _OpenGLContextClass) Alloc() OpenGLContext { return rv } -func OpenGLContext_Alloc() OpenGLContext { - return OpenGLContextClass.Alloc() -} - func (oc _OpenGLContextClass) New() OpenGLContext { rv := objc.Call[OpenGLContext](oc, objc.Sel("new")) rv.Autorelease() diff --git a/macos/appkit/open_gl_layer.gen.go b/macos/appkit/open_gl_layer.gen.go index b5dce6df..48a8c822 100644 --- a/macos/appkit/open_gl_layer.gen.go +++ b/macos/appkit/open_gl_layer.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package appkit @@ -39,10 +39,6 @@ func (oc _OpenGLLayerClass) Alloc() OpenGLLayer { return rv } -func OpenGLLayer_Alloc() OpenGLLayer { - return OpenGLLayerClass.Alloc() -} - func (oc _OpenGLLayerClass) New() OpenGLLayer { rv := objc.Call[OpenGLLayer](oc, objc.Sel("new")) rv.Autorelease() @@ -58,32 +54,6 @@ func (o_ OpenGLLayer) Init() OpenGLLayer { return rv } -func (oc _OpenGLLayerClass) Layer() OpenGLLayer { - rv := objc.Call[OpenGLLayer](oc, 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 OpenGLLayer_Layer() OpenGLLayer { - return OpenGLLayerClass.Layer() -} - -func (o_ OpenGLLayer) InitWithLayer(layer objc.IObject) OpenGLLayer { - rv := objc.Call[OpenGLLayer](o_, 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 NewOpenGLLayerWithLayer(layer objc.IObject) OpenGLLayer { - instance := OpenGLLayerClass.Alloc().InitWithLayer(layer) - instance.Autorelease() - return instance -} - func (o_ OpenGLLayer) ModelLayer() OpenGLLayer { rv := objc.Call[OpenGLLayer](o_, objc.Sel("modelLayer")) return rv @@ -111,3 +81,29 @@ func OpenGLLayer_PresentationLayer() OpenGLLayer { instance.Autorelease() return instance } + +func (o_ OpenGLLayer) InitWithLayer(layer objc.IObject) OpenGLLayer { + rv := objc.Call[OpenGLLayer](o_, 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 NewOpenGLLayerWithLayer(layer objc.IObject) OpenGLLayer { + instance := OpenGLLayerClass.Alloc().InitWithLayer(layer) + instance.Autorelease() + return instance +} + +func (oc _OpenGLLayerClass) Layer() OpenGLLayer { + rv := objc.Call[OpenGLLayer](oc, 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 OpenGLLayer_Layer() OpenGLLayer { + return OpenGLLayerClass.Layer() +} diff --git a/macos/appkit/open_gl_pixel_buffer.gen.go b/macos/appkit/open_gl_pixel_buffer.gen.go index 8d13677b..c1913409 100644 --- a/macos/appkit/open_gl_pixel_buffer.gen.go +++ b/macos/appkit/open_gl_pixel_buffer.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package appkit @@ -38,10 +38,6 @@ func (oc _OpenGLPixelBufferClass) Alloc() OpenGLPixelBuffer { return rv } -func OpenGLPixelBuffer_Alloc() OpenGLPixelBuffer { - return OpenGLPixelBufferClass.Alloc() -} - func (oc _OpenGLPixelBufferClass) New() OpenGLPixelBuffer { rv := objc.Call[OpenGLPixelBuffer](oc, objc.Sel("new")) rv.Autorelease() diff --git a/macos/appkit/open_gl_pixel_format.gen.go b/macos/appkit/open_gl_pixel_format.gen.go index 92dd967a..433a25c3 100644 --- a/macos/appkit/open_gl_pixel_format.gen.go +++ b/macos/appkit/open_gl_pixel_format.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package appkit @@ -38,10 +38,6 @@ func (oc _OpenGLPixelFormatClass) Alloc() OpenGLPixelFormat { return rv } -func OpenGLPixelFormat_Alloc() OpenGLPixelFormat { - return OpenGLPixelFormatClass.Alloc() -} - func (oc _OpenGLPixelFormatClass) New() OpenGLPixelFormat { rv := objc.Call[OpenGLPixelFormat](oc, objc.Sel("new")) rv.Autorelease() diff --git a/macos/appkit/open_gl_view.gen.go b/macos/appkit/open_gl_view.gen.go index 7dc67086..d097eaf6 100644 --- a/macos/appkit/open_gl_view.gen.go +++ b/macos/appkit/open_gl_view.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package appkit @@ -39,10 +39,6 @@ func (oc _OpenGLViewClass) Alloc() OpenGLView { return rv } -func OpenGLView_Alloc() OpenGLView { - return OpenGLViewClass.Alloc() -} - func (oc _OpenGLViewClass) New() OpenGLView { rv := objc.Call[OpenGLView](oc, objc.Sel("new")) rv.Autorelease() diff --git a/macos/appkit/open_panel.gen.go b/macos/appkit/open_panel.gen.go index c367c205..b535e47c 100644 --- a/macos/appkit/open_panel.gen.go +++ b/macos/appkit/open_panel.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package appkit @@ -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) - CanDownloadUbiquitousContents() bool - SetCanDownloadUbiquitousContents(value bool) - AllowsMultipleSelection() bool - SetAllowsMultipleSelection(value bool) - URLs() []foundation.URL - CanChooseFiles() bool - SetCanChooseFiles(value bool) CanChooseDirectories() bool SetCanChooseDirectories(value bool) + CanChooseFiles() bool + SetCanChooseFiles(value bool) + ResolvesAliases() bool + SetResolvesAliases(value bool) } // A panel that prompts the user to select a file to open. [Full Topic] @@ -54,10 +54,6 @@ func (oc _OpenPanelClass) Alloc() OpenPanel { return rv } -func OpenPanel_Alloc() OpenPanel { - return OpenPanelClass.Alloc() -} - func (oc _OpenPanelClass) New() OpenPanel { rv := objc.Call[OpenPanel](oc, objc.Sel("new")) rv.Autorelease() @@ -99,6 +95,20 @@ 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 @@ -114,49 +124,27 @@ func OpenPanel_OpenPanel() OpenPanel { return OpenPanelClass.OpenPanel() } -// 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 -func (o_ OpenPanel) IsAccessoryViewDisclosed() bool { - rv := objc.Call[bool](o_, objc.Sel("isAccessoryViewDisclosed")) - return rv -} - -// 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 -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] +// 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/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/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 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] +// A Boolean that indicates whether the user may select multiple files and directories. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsopenpanel/1533261-canresolveubiquitousconflicts?language=objc -func (o_ OpenPanel) CanResolveUbiquitousConflicts() bool { - rv := objc.Call[bool](o_, objc.Sel("canResolveUbiquitousConflicts")) +// [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 value that indicates how the panel responds to iCloud documents that have conflicting versions. [Full Topic] +// A Boolean that indicates whether the user may select multiple files and directories. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsopenpanel/1533261-canresolveubiquitousconflicts?language=objc -func (o_ OpenPanel) SetCanResolveUbiquitousConflicts(value bool) { - objc.Call[objc.Void](o_, objc.Sel("setCanResolveUbiquitousConflicts:"), value) +// [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] @@ -174,29 +162,51 @@ 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] +// A Boolean value that indicates whether the panel's accessory view is visible. [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")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsopenpanel/1535036-accessoryviewdisclosed?language=objc +func (o_ OpenPanel) IsAccessoryViewDisclosed() bool { + rv := objc.Call[bool](o_, objc.Sel("isAccessoryViewDisclosed")) return rv } -// A Boolean that indicates whether the user may select multiple files and directories. [Full Topic] +// A Boolean value that indicates whether the panel's accessory view is visible. [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) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsopenpanel/1535036-accessoryviewdisclosed?language=objc +func (o_ OpenPanel) SetAccessoryViewDisclosed(value bool) { + objc.Call[objc.Void](o_, objc.Sel("setAccessoryViewDisclosed:"), value) } -// An array of URLs, each of which contains the fully specified location of a selected file or directory. [Full Topic] +// 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/1529845-urls?language=objc -func (o_ OpenPanel) URLs() []foundation.URL { - rv := objc.Call[[]foundation.URL](o_, objc.Sel("URLs")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsopenpanel/1533261-canresolveubiquitousconflicts?language=objc +func (o_ OpenPanel) CanResolveUbiquitousConflicts() bool { + rv := objc.Call[bool](o_, objc.Sel("canResolveUbiquitousConflicts")) + return rv +} + +// 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 +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] +// +// [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 user can choose directories in the panel. [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) +} + // A Boolean that indicates whether the user can choose files in the panel. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/appkit/nsopenpanel/1527060-canchoosefiles?language=objc @@ -212,17 +222,17 @@ func (o_ OpenPanel) SetCanChooseFiles(value bool) { objc.Call[objc.Void](o_, objc.Sel("setCanChooseFiles:"), value) } -// A Boolean that indicates whether the user can choose directories in the panel. [Full Topic] +// A Boolean that indicates whether the panel resolves aliases. [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/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 user can choose directories in the panel. [Full Topic] +// A Boolean that indicates whether the panel resolves aliases. [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/1533625-resolvesaliases?language=objc +func (o_ OpenPanel) SetResolvesAliases(value bool) { + objc.Call[objc.Void](o_, objc.Sel("setResolvesAliases:"), value) } diff --git a/macos/appkit/open_save_panel_delegate.gen.go b/macos/appkit/open_save_panel_delegate.gen.go index 7411a1e5..fde6405f 100644 --- a/macos/appkit/open_save_panel_delegate.gen.go +++ b/macos/appkit/open_save_panel_delegate.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package appkit @@ -11,21 +11,58 @@ 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 foundation.Error) 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 { - _PanelShouldEnableURL func(sender objc.Object, url foundation.URL) bool - _PanelSelectionDidChange func(sender objc.Object) + _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 foundation.Error) 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 +} + +// 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 } @@ -43,6 +80,40 @@ 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 foundation.Error) 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 foundation.Error) 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 } @@ -60,31 +131,97 @@ 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 +} -// A concrete type wrapper for the [POpenSavePanelDelegate] protocol. -type OpenSavePanelDelegateWrapper struct { +// 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) + +// A concrete type for the [POpenSavePanelDelegate] protocol. +type OpenSavePanelDelegateObject struct { objc.Object } -func (o_ OpenSavePanelDelegateWrapper) HasPanelShouldEnableURL() bool { +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:")) } // Asks the delegate whether the specified URL should be enabled in the Open panel. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/appkit/nsopensavepaneldelegate/1535200-panel?language=objc -func (o_ OpenSavePanelDelegateWrapper) PanelShouldEnableURL(sender objc.IObject, url foundation.IURL) bool { +func (o_ OpenSavePanelDelegateObject) PanelShouldEnableURL(sender objc.Object, url foundation.URL) bool { rv := objc.Call[bool](o_, objc.Sel("panel:shouldEnableURL:"), sender, objc.Ptr(url)) return rv } -func (o_ OpenSavePanelDelegateWrapper) HasPanelSelectionDidChange() bool { +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 foundation.Error) bool { + rv := objc.Call[bool](o_, objc.Sel("panel:validateURL:error:"), sender, objc.Ptr(url), objc.Ptr(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, objc.Ptr(url)) +} + +func (o_ OpenSavePanelDelegateObject) HasPanelSelectionDidChange() bool { return o_.RespondsToSelector(objc.Sel("panelSelectionDidChange:")) } // Tells the delegate that the user changed the selection in the specified Save panel. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/appkit/nsopensavepaneldelegate/1533556-panelselectiondidchange?language=objc -func (o_ OpenSavePanelDelegateWrapper) PanelSelectionDidChange(sender objc.IObject) { +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 ca22f35f..aae55d81 100644 --- a/macos/appkit/outline_view.gen.go +++ b/macos/appkit/outline_view.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package appkit @@ -19,35 +19,38 @@ 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 - ExpandItem(item objc.IObject) - LevelForItem(item objc.IObject) int + ExpandItemExpandChildren(item objc.IObject, expandChildren bool) + LevelForRow(row int) int + ChildIndexForItem(item objc.IObject) int + FrameOfOutlineCellAtRow(row int) foundation.Rect ReloadItem(item objc.IObject) - RemoveItemsAtIndexesInParentWithAnimation(indexes foundation.IIndexSet, parent objc.IObject, animationOptions TableViewAnimationOptions) + InsertItemsAtIndexesInParentWithAnimation(indexes foundation.IIndexSet, parent objc.IObject, animationOptions TableViewAnimationOptions) + NumberOfChildrenOfItem(item objc.IObject) int 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 - ChildIndexForItem(item objc.IObject) int + CollapseItemCollapseChildren(item objc.IObject, collapseChildren bool) + SetDropItemDropChildIndex(item objc.IObject, index int) + ReloadItemReloadChildren(item objc.IObject, reloadChildren bool) ShouldCollapseAutoExpandedItemsForDeposited(deposited bool) bool - AutosaveExpandedItems() bool - SetAutosaveExpandedItems(value bool) - AutoresizesOutlineColumn() bool - SetAutoresizesOutlineColumn(value bool) - StronglyReferencesItems() bool - SetStronglyReferencesItems(value 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) IndentationPerLevel() float64 SetIndentationPerLevel(value float64) } @@ -70,10 +73,6 @@ func (oc _OutlineViewClass) Alloc() OutlineView { return rv } -func OutlineView_Alloc() OutlineView { - return OutlineViewClass.Alloc() -} - func (oc _OutlineViewClass) New() OutlineView { rv := objc.Call[OutlineView](oc, objc.Sel("new")) rv.Autorelease() @@ -103,13 +102,6 @@ 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 @@ -125,36 +117,14 @@ func (o_ OutlineView) IsItemExpanded(item objc.IObject) bool { return rv } -// Returns the row associated with 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) - 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] +// 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 } -// 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 @@ -162,19 +132,19 @@ func (o_ OutlineView) RemoveItemsAtIndexesInParentWithAnimation(indexes foundati objc.Call[objc.Void](o_, objc.Sel("removeItemsAtIndexes:inParent:withAnimation:"), objc.Ptr(indexes), parent, animationOptions) } -// Returns the parent for a given item. [Full Topic] +// Returns the row associated with a given item. [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/1533885-rowforitem?language=objc +func (o_ OutlineView) RowForItem(item objc.IObject) int { + rv := objc.Call[int](o_, objc.Sel("rowForItem:"), item) return rv } -// Collapses a given item. [Full Topic] +// Expands a specified item and, optionally, its children. [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) +// [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) } // Returns the indentation level for a given row. [Full Topic] @@ -185,14 +155,29 @@ func (o_ OutlineView) LevelForRow(row int) int { return rv } -// Returns the number of children for the specified parent item. [Full Topic] +// Returns the child index of the specified item within its parent. [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/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] +// +// [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 +} + +// 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 @@ -200,30 +185,37 @@ func (o_ OutlineView) InsertItemsAtIndexesInParentWithAnimation(indexes foundati objc.Call[objc.Void](o_, objc.Sel("insertItemsAtIndexes:inParent:withAnimation:"), objc.Ptr(indexes), parent, animationOptions) } -// 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 } -// Returns a Boolean value that indicates whether a given item is expandable. [Full Topic] +// Returns the parent for a given item. [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/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 } -// Returns the item associated with a given row. [Full Topic] +// Returns the indentation level for 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/1535891-levelforitem?language=objc +func (o_ OutlineView) LevelForItem(item objc.IObject) int { + rv := objc.Call[int](o_, objc.Sel("levelForItem:"), item) 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 @@ -232,12 +224,25 @@ func (o_ OutlineView) ChildOfItem(index int, item objc.IObject) objc.Object { return rv } -// Returns the child index of the specified item within its parent. [Full Topic] +// Collapses a given item and, optionally, its children. [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 +// [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] +// +// [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) } // Returns a Boolean value that indicates whether auto-expanded items should return to their original collapsed state. [Full Topic] @@ -248,34 +253,34 @@ func (o_ OutlineView) ShouldCollapseAutoExpandedItemsForDeposited(deposited bool return rv } -// A Boolean value indicating whether the expanded items are automatically saved across launches of the app. [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/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/1533676-isexpandable?language=objc +func (o_ OutlineView) IsExpandable(item objc.IObject) bool { + rv := objc.Call[bool](o_, objc.Sel("isExpandable:"), item) return rv } -// A Boolean value indicating whether the expanded items are automatically saved across launches of the app. [Full Topic] +// Expands a given item. [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/1535323-expanditem?language=objc +func (o_ OutlineView) ExpandItem(item objc.IObject) { + objc.Call[objc.Void](o_, objc.Sel("expandItem:"), item) } -// A Boolean value that indicates whether the outline view resizes its outline column when the user expands or collapses items. [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/1532304-autoresizesoutlinecolumn?language=objc -func (o_ OutlineView) AutoresizesOutlineColumn() bool { - rv := objc.Call[bool](o_, objc.Sel("autoresizesOutlineColumn")) +// [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 that indicates whether the outline view resizes its outline column when the user expands or collapses items. [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/1532304-autoresizesoutlinecolumn?language=objc -func (o_ OutlineView) SetAutoresizesOutlineColumn(value bool) { - objc.Call[objc.Void](o_, objc.Sel("setAutoresizesOutlineColumn:"), 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) } // A Boolean value that indicates whether the outline view retains and releases the objects returned from its data source. [Full Topic] @@ -293,19 +298,19 @@ func (o_ OutlineView) SetStronglyReferencesItems(value bool) { objc.Call[objc.Void](o_, objc.Sel("setStronglyReferencesItems:"), 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 indicating whether the expanded items are automatically saved across launches of the app. [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/1530638-autosaveexpandeditems?language=objc +func (o_ OutlineView) AutosaveExpandedItems() bool { + rv := objc.Call[bool](o_, objc.Sel("autosaveExpandedItems")) 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 indicating whether the expanded items are automatically saved across launches of the app. [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/1530638-autosaveexpandeditems?language=objc +func (o_ OutlineView) SetAutosaveExpandedItems(value bool) { + objc.Call[objc.Void](o_, objc.Sel("setAutosaveExpandedItems:"), value) } // The table column in which hierarchical data is displayed. [Full Topic] @@ -323,6 +328,21 @@ func (o_ OutlineView) SetOutlineTableColumn(value ITableColumn) { objc.Call[objc.Void](o_, objc.Sel("setOutlineTableColumn:"), objc.Ptr(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.gen.go b/macos/appkit/outline_view_data_source.gen.go deleted file mode 100644 index b029d796..00000000 --- a/macos/appkit/outline_view_data_source.gen.go +++ /dev/null @@ -1,33 +0,0 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY - -package appkit - -import ( - "github.com/progrium/macdriver/macos/foundation" - "github.com/progrium/macdriver/objc" -) - -// A set of methods that an outline view calls to retrieve data and information about it from the data source delegate, and—optionally—to update data values. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsoutlineviewdatasource?language=objc -type POutlineViewDataSource interface { - // optional - OutlineViewSortDescriptorsDidChange(outlineView OutlineView, oldDescriptors []foundation.SortDescriptor) - HasOutlineViewSortDescriptorsDidChange() bool -} - -// A concrete type wrapper for the [POutlineViewDataSource] protocol. -type OutlineViewDataSourceWrapper struct { - objc.Object -} - -func (o_ OutlineViewDataSourceWrapper) HasOutlineViewSortDescriptorsDidChange() bool { - return o_.RespondsToSelector(objc.Sel("outlineView:sortDescriptorsDidChange:")) -} - -// Invoked by an outline view to notify the data source that the descriptors changed and the data may need to be resorted. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsoutlineviewdatasource/1535892-outlineview?language=objc -func (o_ OutlineViewDataSourceWrapper) OutlineViewSortDescriptorsDidChange(outlineView IOutlineView, oldDescriptors []foundation.ISortDescriptor) { - objc.Call[objc.Void](o_, objc.Sel("outlineView:sortDescriptorsDidChange:"), objc.Ptr(outlineView), oldDescriptors) -} diff --git a/macos/appkit/outline_view_data_source_protocol.gen.go b/macos/appkit/outline_view_data_source_protocol.gen.go new file mode 100644 index 00000000..3ede6772 --- /dev/null +++ b/macos/appkit/outline_view_data_source_protocol.gen.go @@ -0,0 +1,243 @@ +// Code generated by DarwinKit. DO NOT EDIT. + +package appkit + +import ( + "github.com/progrium/macdriver/macos/foundation" + "github.com/progrium/macdriver/objc" +) + +// A set of methods that an outline view calls to retrieve data and information about it from the data source delegate, and—optionally—to update data values. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsoutlineviewdatasource?language=objc +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 +var _ POutlineViewDataSource = (*OutlineViewDataSourceObject)(nil) + +// A concrete type for the [POutlineViewDataSource] protocol. +type OutlineViewDataSourceObject struct { + objc.Object +} + +func (o_ OutlineViewDataSourceObject) HasOutlineViewSortDescriptorsDidChange() bool { + return o_.RespondsToSelector(objc.Sel("outlineView:sortDescriptorsDidChange:")) +} + +// Invoked by an outline view to notify the data source that the descriptors changed and the data may need to be resorted. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsoutlineviewdatasource/1535892-outlineview?language=objc +func (o_ OutlineViewDataSourceObject) OutlineViewSortDescriptorsDidChange(outlineView OutlineView, oldDescriptors []foundation.SortDescriptor) { + objc.Call[objc.Void](o_, objc.Sel("outlineView:sortDescriptorsDidChange:"), objc.Ptr(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:"), objc.Ptr(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:"), objc.Ptr(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:"), objc.Ptr(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:"), objc.Ptr(outlineView), objc.Ptr(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:"), objc.Ptr(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:"), objc.Ptr(outlineView), objc.Ptr(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:"), objc.Ptr(outlineView), object, objc.Ptr(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:"), objc.Ptr(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:"), objc.Ptr(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:"), objc.Ptr(outlineView), objc.Ptr(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:"), objc.Ptr(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:"), objc.Ptr(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:"), objc.Ptr(outlineView), item) + return rv +} diff --git a/macos/appkit/outline_view_delegate.gen.go b/macos/appkit/outline_view_delegate.gen.go index 6484b799..304bfbc1 100644 --- a/macos/appkit/outline_view_delegate.gen.go +++ b/macos/appkit/outline_view_delegate.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package appkit @@ -13,77 +13,229 @@ import ( type POutlineViewDelegate interface { PControlTextEditingDelegate // optional - OutlineViewItemDidCollapse(notification foundation.Notification) - HasOutlineViewItemDidCollapse() bool + 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 + // 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 - OutlineViewColumnDidResize(notification foundation.Notification) - HasOutlineViewColumnDidResize() bool + OutlineViewShouldExpandItem(outlineView OutlineView, item objc.Object) bool + HasOutlineViewShouldExpandItem() bool // optional - OutlineViewDidClickTableColumn(outlineView OutlineView, tableColumn TableColumn) - HasOutlineViewDidClickTableColumn() bool + OutlineViewWillDisplayCellForTableColumnItem(outlineView OutlineView, cell objc.Object, tableColumn TableColumn, item objc.Object) + HasOutlineViewWillDisplayCellForTableColumnItem() bool + + // optional + OutlineViewDataCellForTableColumnItem(outlineView OutlineView, tableColumn TableColumn, item objc.Object) Cell + HasOutlineViewDataCellForTableColumnItem() bool // optional OutlineViewSelectionDidChange(notification foundation.Notification) HasOutlineViewSelectionDidChange() bool // optional - OutlineViewItemDidExpand(notification foundation.Notification) - HasOutlineViewItemDidExpand() bool + OutlineViewWillDisplayOutlineCellForTableColumnItem(outlineView OutlineView, cell objc.Object, tableColumn TableColumn, item objc.Object) + HasOutlineViewWillDisplayOutlineCellForTableColumnItem() bool // optional - OutlineViewSelectionIsChanging(notification foundation.Notification) - HasOutlineViewSelectionIsChanging() bool + OutlineViewViewForTableColumnItem(outlineView OutlineView, tableColumn TableColumn, item objc.Object) View + HasOutlineViewViewForTableColumnItem() bool // optional - SelectionShouldChangeInOutlineView(outlineView OutlineView) bool - HasSelectionShouldChangeInOutlineView() bool + 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 + + // optional + OutlineViewShouldReorderColumnToColumn(outlineView OutlineView, columnIndex int, newColumnIndex int) bool + HasOutlineViewShouldReorderColumnToColumn() bool + + // optional + OutlineViewTypeSelectStringForTableColumnItem(outlineView OutlineView, tableColumn TableColumn, item objc.Object) string + HasOutlineViewTypeSelectStringForTableColumnItem() bool } // A delegate implementation builder for the [POutlineViewDelegate] protocol. type OutlineViewDelegate struct { ControlTextEditingDelegate - _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 + _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) HasOutlineViewItemDidCollapse() bool { - return di._OutlineViewItemDidCollapse != nil +func (di *OutlineViewDelegate) HasSelectionShouldChangeInOutlineView() bool { + return di._SelectionShouldChangeInOutlineView != nil } -// Invoked when the did collapse notification is posted—that is, whenever the user collapses an item in the outline view. [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/1535557-outlineviewitemdidcollapse?language=objc -func (di *OutlineViewDelegate) SetOutlineViewItemDidCollapse(f func(notification foundation.Notification)) { - di._OutlineViewItemDidCollapse = 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 } -// Invoked when the did collapse notification is posted—that is, whenever the user collapses an item in the outline view. [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/1535557-outlineviewitemdidcollapse?language=objc -func (di *OutlineViewDelegate) OutlineViewItemDidCollapse(notification foundation.Notification) { - di._OutlineViewItemDidCollapse(notification) +// [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 +} + +// 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 (di *OutlineViewDelegate) SetOutlineViewSelectionIndexesForProposedSelection(f func(outlineView OutlineView, proposedSelectionIndexes foundation.IndexSet) foundation.IndexSet) { + di._OutlineViewSelectionIndexesForProposedSelection = f +} + +// 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 (di *OutlineViewDelegate) OutlineViewSelectionIndexesForProposedSelection(outlineView OutlineView, proposedSelectionIndexes foundation.IndexSet) foundation.IndexSet { + return di._OutlineViewSelectionIndexesForProposedSelection(outlineView, proposedSelectionIndexes) } func (di *OutlineViewDelegate) HasOutlineViewItemWillExpand() bool { return di._OutlineViewItemWillExpand != nil @@ -102,56 +254,22 @@ func (di *OutlineViewDelegate) SetOutlineViewItemWillExpand(f func(notification func (di *OutlineViewDelegate) OutlineViewItemWillExpand(notification foundation.Notification) { di._OutlineViewItemWillExpand(notification) } -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 +func (di *OutlineViewDelegate) HasOutlineViewHeightOfRowByItem() bool { + return di._OutlineViewHeightOfRowByItem != nil } -// Invoked whenever the user resizes a column in the outline view. [Full Topic] +// Returns the height in points of the row containing item. [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 +// [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 } -// Invoked whenever the user resizes a column in the outline view. [Full Topic] +// Returns the height in points of the row containing item. [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) +// [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) } func (di *OutlineViewDelegate) HasOutlineViewDidClickTableColumn() bool { return di._OutlineViewDidClickTableColumn != nil @@ -170,23 +288,6 @@ 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 } @@ -204,153 +305,967 @@ func (di *OutlineViewDelegate) SetOutlineViewItemDidExpand(f func(notification f func (di *OutlineViewDelegate) OutlineViewItemDidExpand(notification foundation.Notification) { di._OutlineViewItemDidExpand(notification) } -func (di *OutlineViewDelegate) HasOutlineViewSelectionIsChanging() bool { - return di._OutlineViewSelectionIsChanging != nil +func (di *OutlineViewDelegate) HasOutlineViewShouldSelectTableColumn() bool { + return di._OutlineViewShouldSelectTableColumn != nil } -// Invoked when notification is posted—that is, whenever the outline view’s selection changes. [Full Topic] +// 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/1532481-outlineviewselectionischanging?language=objc -func (di *OutlineViewDelegate) SetOutlineViewSelectionIsChanging(f func(notification foundation.Notification)) { - di._OutlineViewSelectionIsChanging = f +// [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 } -// Invoked when notification is posted—that is, whenever the outline view’s selection changes. [Full Topic] +// 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/1532481-outlineviewselectionischanging?language=objc -func (di *OutlineViewDelegate) OutlineViewSelectionIsChanging(notification foundation.Notification) { - di._OutlineViewSelectionIsChanging(notification) +// [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) } -func (di *OutlineViewDelegate) HasSelectionShouldChangeInOutlineView() bool { - return di._SelectionShouldChangeInOutlineView != nil +func (di *OutlineViewDelegate) HasOutlineViewNextTypeSelectMatchFromItemToItemForString() bool { + return di._OutlineViewNextTypeSelectMatchFromItemToItemForString != nil } -// Returns a Boolean value that indicates whether the outline view should change its selection. [Full Topic] +// 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/1530734-selectionshouldchangeinoutlinevi?language=objc -func (di *OutlineViewDelegate) SetSelectionShouldChangeInOutlineView(f func(outlineView OutlineView) bool) { - di._SelectionShouldChangeInOutlineView = f +// [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 } -// Returns a Boolean value that indicates whether the outline view should change its selection. [Full Topic] +// 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/1530734-selectionshouldchangeinoutlinevi?language=objc -func (di *OutlineViewDelegate) SelectionShouldChangeInOutlineView(outlineView OutlineView) bool { - return di._SelectionShouldChangeInOutlineView(outlineView) +// [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) } - -// A concrete type wrapper for the [POutlineViewDelegate] protocol. -type OutlineViewDelegateWrapper struct { - ControlTextEditingDelegateWrapper +func (di *OutlineViewDelegate) HasOutlineViewShouldSelectItem() bool { + return di._OutlineViewShouldSelectItem != nil } -func (o_ OutlineViewDelegateWrapper) 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] +// +// [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 } -// Invoked when the did collapse notification is posted—that is, whenever the user collapses an item in the outline view. [Full Topic] +// 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/1535557-outlineviewitemdidcollapse?language=objc -func (o_ OutlineViewDelegateWrapper) OutlineViewItemDidCollapse(notification foundation.INotification) { - objc.Call[objc.Void](o_, objc.Sel("outlineViewItemDidCollapse:"), objc.Ptr(notification)) +// [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 } -func (o_ OutlineViewDelegateWrapper) HasOutlineViewItemWillExpand() bool { - return o_.RespondsToSelector(objc.Sel("outlineViewItemWillExpand:")) +// 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 } -// Invoked when notification is posted—that is, whenever the user is about to expand an item in the outline view. [Full Topic] +// Invoked whenever the user resizes a column in the outline view. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsoutlineviewdelegate/1535847-outlineviewitemwillexpand?language=objc -func (o_ OutlineViewDelegateWrapper) OutlineViewItemWillExpand(notification foundation.INotification) { - objc.Call[objc.Void](o_, objc.Sel("outlineViewItemWillExpand:"), objc.Ptr(notification)) +// [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 } -func (o_ OutlineViewDelegateWrapper) 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] +// +// [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 whenever the user moves a column in the outline view. [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/1525297-outlineviewcolumndidmove?language=objc -func (o_ OutlineViewDelegateWrapper) OutlineViewColumnDidMove(notification foundation.INotification) { - objc.Call[objc.Void](o_, objc.Sel("outlineViewColumnDidMove:"), objc.Ptr(notification)) +// [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 } -func (o_ OutlineViewDelegateWrapper) 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] +// +// [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 } -// Invoked when notification is posted—that is, whenever the user is about to collapse an item in the outline view. [Full Topic] +// 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/1526896-outlineviewitemwillcollapse?language=objc -func (o_ OutlineViewDelegateWrapper) OutlineViewItemWillCollapse(notification foundation.INotification) { - objc.Call[objc.Void](o_, objc.Sel("outlineViewItemWillCollapse:"), objc.Ptr(notification)) +// [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 } -func (o_ OutlineViewDelegateWrapper) HasOutlineViewColumnDidResize() bool { - return o_.RespondsToSelector(objc.Sel("outlineViewColumnDidResize:")) +// 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 } -// Invoked whenever the user resizes a column in the outline view. [Full Topic] +// Customizes an item’s tinting behavior. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsoutlineviewdelegate/1533372-outlineviewcolumndidresize?language=objc -func (o_ OutlineViewDelegateWrapper) OutlineViewColumnDidResize(notification foundation.INotification) { - objc.Call[objc.Void](o_, objc.Sel("outlineViewColumnDidResize:"), objc.Ptr(notification)) +// [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 } -func (o_ OutlineViewDelegateWrapper) HasOutlineViewDidClickTableColumn() bool { - return o_.RespondsToSelector(objc.Sel("outlineView:didClickTableColumn:")) +// 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 } -// Sent at the time the mouse button subsequently goes up in outlineView and tableColumn has been “clicked” without having been dragged anywhere. [Full Topic] +// Invoked whenever the user moves a column in the outline view. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsoutlineviewdelegate/1534040-outlineview?language=objc -func (o_ OutlineViewDelegateWrapper) OutlineViewDidClickTableColumn(outlineView IOutlineView, tableColumn ITableColumn) { - objc.Call[objc.Void](o_, objc.Sel("outlineView:didClickTableColumn:"), objc.Ptr(outlineView), objc.Ptr(tableColumn)) +// [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 } -func (o_ OutlineViewDelegateWrapper) HasOutlineViewSelectionDidChange() bool { - return o_.RespondsToSelector(objc.Sel("outlineViewSelectionDidChange:")) +// 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 } -// Invoked when the selection did change notification is posted—that is, immediately after the outline view’s selection has changed. [Full Topic] +// 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 +} + +// 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) OutlineViewDataCellForTableColumnItem(outlineView OutlineView, tableColumn TableColumn, item objc.Object) Cell { + return di._OutlineViewDataCellForTableColumnItem(outlineView, tableColumn, item) +} +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 (o_ OutlineViewDelegateWrapper) OutlineViewSelectionDidChange(notification foundation.INotification) { - objc.Call[objc.Void](o_, objc.Sel("outlineViewSelectionDidChange:"), objc.Ptr(notification)) +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) 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:"), objc.Ptr(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:"), objc.Ptr(outlineView), objc.Ptr(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:"), objc.Ptr(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:"), objc.Ptr(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:"), objc.Ptr(outlineView), objc.Ptr(tableColumn)) } -func (o_ OutlineViewDelegateWrapper) HasOutlineViewItemDidExpand() bool { +func (o_ OutlineViewDelegateObject) HasOutlineViewItemDidExpand() bool { return o_.RespondsToSelector(objc.Sel("outlineViewItemDidExpand:")) } // Invoked when notification is posted—that is, whenever the user expands an item in the outline view. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/appkit/nsoutlineviewdelegate/1530869-outlineviewitemdidexpand?language=objc -func (o_ OutlineViewDelegateWrapper) OutlineViewItemDidExpand(notification foundation.INotification) { +func (o_ OutlineViewDelegateObject) OutlineViewItemDidExpand(notification foundation.Notification) { objc.Call[objc.Void](o_, objc.Sel("outlineViewItemDidExpand:"), objc.Ptr(notification)) } -func (o_ OutlineViewDelegateWrapper) HasOutlineViewSelectionIsChanging() bool { +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:"), objc.Ptr(outlineView), objc.Ptr(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:"), objc.Ptr(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:"), objc.Ptr(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:"), objc.Ptr(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:"), objc.Ptr(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:"), objc.Ptr(outlineView), objc.Ptr(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:"), objc.Ptr(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:"), objc.Ptr(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:"), objc.Ptr(outlineView), objc.Ptr(rowView), row) +} + +func (o_ OutlineViewDelegateObject) HasOutlineViewSelectionIsChanging() bool { return o_.RespondsToSelector(objc.Sel("outlineViewSelectionIsChanging:")) } // 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 (o_ OutlineViewDelegateWrapper) OutlineViewSelectionIsChanging(notification foundation.INotification) { +func (o_ OutlineViewDelegateObject) OutlineViewSelectionIsChanging(notification foundation.Notification) { objc.Call[objc.Void](o_, objc.Sel("outlineViewSelectionIsChanging:"), objc.Ptr(notification)) } -func (o_ OutlineViewDelegateWrapper) HasSelectionShouldChangeInOutlineView() bool { - return o_.RespondsToSelector(objc.Sel("selectionShouldChangeInOutlineView:")) +func (o_ OutlineViewDelegateObject) HasOutlineViewShouldTrackCellForTableColumnItem() bool { + return o_.RespondsToSelector(objc.Sel("outlineView:shouldTrackCell:forTableColumn:item:")) } -// Returns a Boolean value that indicates whether the outline view should change its selection. [Full Topic] +// Returns a Boolean value that indicates whether a given cell should be tracked. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsoutlineviewdelegate/1530734-selectionshouldchangeinoutlinevi?language=objc -func (o_ OutlineViewDelegateWrapper) SelectionShouldChangeInOutlineView(outlineView IOutlineView) bool { - rv := objc.Call[bool](o_, objc.Sel("selectionShouldChangeInOutlineView:"), objc.Ptr(outlineView)) +// [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:"), objc.Ptr(outlineView), objc.Ptr(cell), objc.Ptr(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:"), objc.Ptr(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:"), objc.Ptr(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:"), objc.Ptr(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:"), objc.Ptr(outlineView), objc.Ptr(cell), rect, objc.Ptr(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:"), objc.Ptr(outlineView), objc.Ptr(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:"), objc.Ptr(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:"), objc.Ptr(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:"), objc.Ptr(outlineView), cell, objc.Ptr(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:"), objc.Ptr(outlineView), objc.Ptr(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:"), objc.Ptr(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:"), objc.Ptr(outlineView), cell, objc.Ptr(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:"), objc.Ptr(outlineView), objc.Ptr(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:"), objc.Ptr(outlineView), objc.Ptr(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:"), objc.Ptr(outlineView), objc.Ptr(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:"), objc.Ptr(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:"), objc.Ptr(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:"), objc.Ptr(outlineView), objc.Ptr(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:"), objc.Ptr(outlineView), objc.Ptr(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:"), objc.Ptr(outlineView), columnIndex, newColumnIndex) + return rv +} + +func (o_ OutlineViewDelegateObject) HasOutlineViewTypeSelectStringForTableColumnItem() bool { + return o_.RespondsToSelector(objc.Sel("outlineView:typeSelectStringForTableColumn:item:")) +} + +// 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 (o_ OutlineViewDelegateObject) OutlineViewTypeSelectStringForTableColumnItem(outlineView OutlineView, tableColumn TableColumn, item objc.Object) string { + rv := objc.Call[string](o_, objc.Sel("outlineView:typeSelectStringForTableColumn:item:"), objc.Ptr(outlineView), objc.Ptr(tableColumn), item) return rv } diff --git a/macos/appkit/page_controller.gen.go b/macos/appkit/page_controller.gen.go index e461f90c..2e2924e2 100644 --- a/macos/appkit/page_controller.gen.go +++ b/macos/appkit/page_controller.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package appkit @@ -19,21 +19,21 @@ type _PageControllerClass struct { // An interface definition for the [PageController] class. type IPageController interface { IViewController - NavigateForward(sender objc.IObject) objc.Object + NavigateBack(sender objc.IObject) objc.Object NavigateForwardToObject(object objc.IObject) - TakeSelectedIndexFrom(sender objc.IObject) objc.Object + NavigateForward(sender objc.IObject) objc.Object CompleteTransition() - NavigateBack(sender objc.IObject) objc.Object - SelectedViewController() ViewController + TakeSelectedIndexFrom(sender objc.IObject) objc.Object + SelectedIndex() int + SetSelectedIndex(value int) ArrangedObjects() []objc.Object SetArrangedObjects(value []objc.IObject) - Delegate() PageControllerDelegateWrapper - SetDelegate(value PPageControllerDelegate) - SetDelegateObject(valueObject objc.IObject) + SelectedViewController() ViewController TransitionStyle() PageControllerTransitionStyle SetTransitionStyle(value PageControllerTransitionStyle) - SelectedIndex() int - SetSelectedIndex(value int) + Delegate() PageControllerDelegateObject + SetDelegate(value PPageControllerDelegate) + SetDelegateObject(valueObject objc.IObject) } // An object that controls swipe navigation and animations between views or view content. [Full Topic] @@ -54,10 +54,6 @@ func (pc _PageControllerClass) Alloc() PageController { return rv } -func PageController_Alloc() PageController { - return PageControllerClass.Alloc() -} - func (pc _PageControllerClass) New() PageController { rv := objc.Call[PageController](pc, objc.Sel("new")) rv.Autorelease() @@ -87,11 +83,11 @@ func NewPageControllerWithNibNameBundle(nibNameOrNil NibName, nibBundleOrNil fou return instance } -// Navigates to the next object in the page controller’s arranged objects array, if appropriate. [Full Topic] +// Navigates backwards in the page controller’s arranged objects array. [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/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 } @@ -102,11 +98,11 @@ func (p_ PageController) NavigateForwardToObject(object objc.IObject) { objc.Call[objc.Void](p_, objc.Sel("navigateForwardToObject:"), object) } -// Navigates to the selected index, which is taken from the sender. [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/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/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 } @@ -117,22 +113,29 @@ func (p_ PageController) CompleteTransition() { objc.Call[objc.Void](p_, objc.Sel("completeTransition")) } -// Navigates backwards in the page controller’s arranged objects array. [Full Topic] +// Navigates to the selected index, which is taken from the sender. [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/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 } -// The view controller associated with the selected object.. [Full Topic] +// The currently selected object in the arranged objects array. [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/1434988-selectedindex?language=objc +func (p_ PageController) SelectedIndex() int { + rv := objc.Call[int](p_, objc.Sel("selectedIndex")) 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 @@ -148,30 +151,14 @@ func (p_ PageController) SetArrangedObjects(value []objc.IObject) { objc.Call[objc.Void](p_, objc.Sel("setArrangedObjects:"), value) } -// The page controller’s delegate object. [Full Topic] +// The view controller associated with the selected object.. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nspagecontroller/1435019-delegate?language=objc -func (p_ PageController) Delegate() PageControllerDelegateWrapper { - rv := objc.Call[PageControllerDelegateWrapper](p_, objc.Sel("delegate")) +// [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 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:"), objc.Ptr(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 @@ -187,17 +174,26 @@ func (p_ PageController) SetTransitionStyle(value PageControllerTransitionStyle) objc.Call[objc.Void](p_, objc.Sel("setTransitionStyle:"), value) } -// The currently selected object in the arranged objects array. [Full Topic] +// The page controller’s delegate 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/1435019-delegate?language=objc +func (p_ PageController) Delegate() PageControllerDelegateObject { + rv := objc.Call[PageControllerDelegateObject](p_, objc.Sel("delegate")) return rv } -// The currently selected object in the arranged objects array. [Full Topic] +// The page controller’s delegate object. [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) +// [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:"), objc.Ptr(valueObject)) } diff --git a/macos/appkit/page_controller_delegate.gen.go b/macos/appkit/page_controller_delegate.gen.go index b91d854d..84945be7 100644 --- a/macos/appkit/page_controller_delegate.gen.go +++ b/macos/appkit/page_controller_delegate.gen.go @@ -1,8 +1,9 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package appkit import ( + "github.com/progrium/macdriver/macos/foundation" "github.com/progrium/macdriver/objc" ) @@ -10,26 +11,63 @@ 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 - PageControllerDidTransitionToObject(pageController PageController, object objc.Object) - HasPageControllerDidTransitionToObject() bool + 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 } // A delegate implementation builder for the [PPageControllerDelegate] protocol. type PageControllerDelegate struct { - _PageControllerDidEndLiveTransition func(pageController PageController) - _PageControllerWillStartLiveTransition func(pageController PageController) - _PageControllerDidTransitionToObject func(pageController PageController, object objc.Object) + _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 } +// 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 } @@ -47,6 +85,23 @@ 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 } @@ -64,58 +119,142 @@ func (di *PageControllerDelegate) SetPageControllerWillStartLiveTransition(f fun func (di *PageControllerDelegate) PageControllerWillStartLiveTransition(pageController PageController) { di._PageControllerWillStartLiveTransition(pageController) } -func (di *PageControllerDelegate) HasPageControllerDidTransitionToObject() bool { - return di._PageControllerDidTransitionToObject != nil +func (di *PageControllerDelegate) HasPageControllerFrameForObject() bool { + return di._PageControllerFrameForObject != nil } -// This message is sent when any page transition is completed. [Full Topic] +// Returns the frame appropriate for displaying the specified object. [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 +// [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 } -// This message is sent when any page transition is completed. [Full Topic] +// Returns the frame appropriate for displaying the specified object. [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) +// [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 +} + +// Prepare the view controller and it’s view for drawing. [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 +} + +// Prepare the view controller and it’s view for drawing. [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) } -// A concrete type wrapper for the [PPageControllerDelegate] protocol. -type PageControllerDelegateWrapper struct { +// ensure impl type implements protocol interface +var _ PPageControllerDelegate = (*PageControllerDelegateObject)(nil) + +// A concrete type for the [PPageControllerDelegate] protocol. +type PageControllerDelegateObject struct { objc.Object } -func (p_ PageControllerDelegateWrapper) HasPageControllerDidEndLiveTransition() bool { +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:"), objc.Ptr(pageController), object) +} + +func (p_ PageControllerDelegateObject) HasPageControllerDidEndLiveTransition() bool { return p_.RespondsToSelector(objc.Sel("pageControllerDidEndLiveTransition:")) } // This message is sent when a transition animation completes. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/appkit/nspagecontrollerdelegate/1434985-pagecontrollerdidendlivetransiti?language=objc -func (p_ PageControllerDelegateWrapper) PageControllerDidEndLiveTransition(pageController IPageController) { +func (p_ PageControllerDelegateObject) PageControllerDidEndLiveTransition(pageController PageController) { objc.Call[objc.Void](p_, objc.Sel("pageControllerDidEndLiveTransition:"), objc.Ptr(pageController)) } -func (p_ PageControllerDelegateWrapper) HasPageControllerWillStartLiveTransition() bool { +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:"), objc.Ptr(pageController), object) + return rv +} + +func (p_ PageControllerDelegateObject) HasPageControllerWillStartLiveTransition() bool { return p_.RespondsToSelector(objc.Sel("pageControllerWillStartLiveTransition:")) } // This message is sent when the user begins a transition. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/appkit/nspagecontrollerdelegate/1435009-pagecontrollerwillstartlivetrans?language=objc -func (p_ PageControllerDelegateWrapper) PageControllerWillStartLiveTransition(pageController IPageController) { +func (p_ PageControllerDelegateObject) PageControllerWillStartLiveTransition(pageController PageController) { objc.Call[objc.Void](p_, objc.Sel("pageControllerWillStartLiveTransition:"), objc.Ptr(pageController)) } -func (p_ PageControllerDelegateWrapper) HasPageControllerDidTransitionToObject() bool { - return p_.RespondsToSelector(objc.Sel("pageController:didTransitionToObject:")) +func (p_ PageControllerDelegateObject) HasPageControllerFrameForObject() bool { + return p_.RespondsToSelector(objc.Sel("pageController:frameForObject:")) } -// This message is sent when any page transition is completed. [Full Topic] +// Returns the frame appropriate for displaying the specified object. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nspagecontrollerdelegate/1435021-pagecontroller?language=objc -func (p_ PageControllerDelegateWrapper) PageControllerDidTransitionToObject(pageController IPageController, object objc.IObject) { - objc.Call[objc.Void](p_, objc.Sel("pageController:didTransitionToObject:"), objc.Ptr(pageController), object) +// [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:"), objc.Ptr(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:"), objc.Ptr(pageController), identifier) + return rv +} + +func (p_ PageControllerDelegateObject) HasPageControllerPrepareViewControllerWithObject() bool { + return p_.RespondsToSelector(objc.Sel("pageController:prepareViewController:withObject:")) +} + +// Prepare the view controller and it’s view for drawing. [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:"), objc.Ptr(pageController), objc.Ptr(viewController), object) } diff --git a/macos/appkit/page_layout.gen.go b/macos/appkit/page_layout.gen.go index ae7516a3..8667bd63 100644 --- a/macos/appkit/page_layout.gen.go +++ b/macos/appkit/page_layout.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package appkit @@ -18,12 +18,12 @@ type _PageLayoutClass struct { // An interface definition for the [PageLayout] class. type IPageLayout interface { objc.IObject - RemoveAccessoryController(accessoryController IViewController) - RunModal() int AddAccessoryController(accessoryController IViewController) + RemoveAccessoryController(accessoryController IViewController) RunModalWithPrintInfo(printInfo IPrintInfo) int - PrintInfo() PrintInfo + RunModal() int AccessoryControllers() []ViewController + PrintInfo() PrintInfo } // A panel that queries the user for information such as paper type and orientation. [Full Topic] @@ -44,10 +44,6 @@ func (pc _PageLayoutClass) Alloc() PageLayout { return rv } -func PageLayout_Alloc() PageLayout { - return PageLayoutClass.Alloc() -} - func (pc _PageLayoutClass) New() PageLayout { rv := objc.Call[PageLayout](pc, objc.Sel("new")) rv.Autorelease() @@ -63,21 +59,6 @@ func (p_ PageLayout) Init() PageLayout { return rv } -// Removes the specified controller of an accessory view. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nspagelayout/1397802-removeaccessorycontroller?language=objc -func (p_ PageLayout) RemoveAccessoryController(accessoryController IViewController) { - objc.Call[objc.Void](p_, objc.Sel("removeAccessoryController:"), objc.Ptr(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 @@ -85,6 +66,13 @@ func (p_ PageLayout) AddAccessoryController(accessoryController IViewController) objc.Call[objc.Void](p_, objc.Sel("addAccessoryController:"), objc.Ptr(accessoryController)) } +// Removes the specified controller of an accessory view. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/appkit/nspagelayout/1397802-removeaccessorycontroller?language=objc +func (p_ PageLayout) RemoveAccessoryController(accessoryController IViewController) { + objc.Call[objc.Void](p_, objc.Sel("removeAccessoryController:"), objc.Ptr(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 @@ -108,11 +96,11 @@ func PageLayout_PageLayout() PageLayout { return PageLayoutClass.PageLayout() } -// The printing information object used when the page layout panel is run. [Full Topic] +// 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/1397804-printinfo?language=objc -func (p_ PageLayout) PrintInfo() PrintInfo { - rv := objc.Call[PrintInfo](p_, objc.Sel("printInfo")) +// [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 } @@ -123,3 +111,11 @@ 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 a1704480..5e692c07 100644 --- a/macos/appkit/pan_gesture_recognizer.gen.go +++ b/macos/appkit/pan_gesture_recognizer.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package appkit @@ -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 - ButtonMask() uint - SetButtonMask(value uint) + SetTranslationInView(translation foundation.Point, view IView) NumberOfTouchesRequired() int SetNumberOfTouchesRequired(value int) + ButtonMask() uint + SetButtonMask(value uint) } // A continuous gesture recognizer for panning gestures. [Full Topic] @@ -46,10 +46,6 @@ func (pc _PanGestureRecognizerClass) Alloc() PanGestureRecognizer { return rv } -func PanGestureRecognizer_Alloc() PanGestureRecognizer { - return PanGestureRecognizerClass.Alloc() -} - func (pc _PanGestureRecognizerClass) New() PanGestureRecognizer { rv := objc.Call[PanGestureRecognizer](pc, objc.Sel("new")) rv.Autorelease() @@ -79,13 +75,6 @@ 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, objc.Ptr(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 @@ -102,19 +91,11 @@ func (p_ PanGestureRecognizer) TranslationInView(view IView) foundation.Point { 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) 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] +// Changes the current translation value of the gesture recognizer. [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) +// [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, objc.Ptr(view)) } // The number of necessary touches on a Touch Bar for the gesture recognizer to match. [Full Topic] @@ -131,3 +112,18 @@ 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 7a08fd73..bc0b5331 100644 --- a/macos/appkit/panel.gen.go +++ b/macos/appkit/panel.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package appkit @@ -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] @@ -43,10 +43,6 @@ func (pc _PanelClass) Alloc() Panel { return rv } -func Panel_Alloc() Panel { - return PanelClass.Alloc() -} - func (pc _PanelClass) New() Panel { rv := objc.Call[Panel](pc, objc.Sel("new")) rv.Autorelease() @@ -88,19 +84,25 @@ func NewPanelWithContentRectStyleMaskBackingDeferScreen(contentRect foundation.R return instance } -// 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")) +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 } -// A Boolean value that indicates whether the receiver becomes the key window only when needed. [Full Topic] +// Initializes the window with the specified values. [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/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 +} + +// A Boolean value that indicates whether the receiver is a floating panel. [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) } // A Boolean value that indicates whether the panel receives keyboard and mouse events even when some other window is being run modally. [Full Topic] @@ -110,9 +112,17 @@ func (p_ Panel) SetWorksWhenModal(value bool) { objc.Call[objc.Void](p_, objc.Sel("setWorksWhenModal:"), value) } -// 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) 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] +// +// [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) } diff --git a/macos/appkit/paragraph_style.gen.go b/macos/appkit/paragraph_style.gen.go index f78c5554..9533d06a 100644 --- a/macos/appkit/paragraph_style.gen.go +++ b/macos/appkit/paragraph_style.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package appkit @@ -18,27 +18,27 @@ type _ParagraphStyleClass struct { // An interface definition for the [ParagraphStyle] class. type IParagraphStyle interface { objc.IObject - LineSpacing() float64 + TextBlocks() []TextBlock + HeaderLevel() int + TighteningFactorForTruncation() float64 TextLists() []TextList - AllowsDefaultTighteningForTruncation() bool - UsesDefaultHyphenation() bool + TailIndent() float64 MinimumLineHeight() float64 - TighteningFactorForTruncation() float64 - Alignment() TextAlignment - FirstLineHeadIndent() float64 - LineBreakStrategy() LineBreakStrategy + ParagraphSpacingBefore() float64 + HyphenationFactor() float64 MaximumLineHeight() float64 - HeaderLevel() int + ParagraphSpacing() float64 + UsesDefaultHyphenation() bool DefaultTabInterval() float64 - TabStops() []TextTab - TextBlocks() []TextBlock + AllowsDefaultTighteningForTruncation() bool + HeadIndent() float64 + LineBreakStrategy() LineBreakStrategy + Alignment() TextAlignment + LineSpacing() float64 LineHeightMultiple() float64 + TabStops() []TextTab BaseWritingDirection() WritingDirection - HyphenationFactor() float64 - ParagraphSpacingBefore() float64 - ParagraphSpacing() float64 - TailIndent() float64 - HeadIndent() float64 + FirstLineHeadIndent() float64 } // The paragraph or ruler attributes for an attributed string. [Full Topic] @@ -59,10 +59,6 @@ func (pc _ParagraphStyleClass) Alloc() ParagraphStyle { return rv } -func ParagraphStyle_Alloc() ParagraphStyle { - return ParagraphStyleClass.Alloc() -} - func (pc _ParagraphStyleClass) New() ParagraphStyle { rv := objc.Call[ParagraphStyle](pc, objc.Sel("new")) rv.Autorelease() @@ -93,26 +89,27 @@ func ParagraphStyle_DefaultWritingDirectionForLanguage(languageName string) Writ return ParagraphStyleClass.DefaultWritingDirectionForLanguage(languageName) } -// The default paragraph style. [Full Topic] +// The text blocks that contain 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/appkit/nsparagraphstyle/1528053-textblocks?language=objc +func (p_ ParagraphStyle) TextBlocks() []TextBlock { + rv := objc.Call[[]TextBlock](p_, objc.Sel("textBlocks")) return rv } -// The default paragraph style. [Full Topic] +// The paragraph’s header level for HTML generation. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/uikit/nsparagraphstyle/1532681-defaultparagraphstyle?language=objc -func ParagraphStyle_DefaultParagraphStyle() ParagraphStyle { - return ParagraphStyleClass.DefaultParagraphStyle() +// [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 } -// The distance in points between the bottom of one line fragment and the top of the next. [Full Topic] +// The threshold for using tightening as an alternative to truncation. [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/appkit/nsparagraphstyle/1529278-tighteningfactorfortruncation?language=objc +func (p_ ParagraphStyle) TighteningFactorForTruncation() float64 { + rv := objc.Call[float64](p_, objc.Sel("tighteningFactorForTruncation")) return rv } @@ -124,19 +121,11 @@ func (p_ ParagraphStyle) TextLists() []TextList { return rv } -// 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/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] +// The trailing indentation of the paragraph. [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/1525556-tailindent?language=objc +func (p_ ParagraphStyle) TailIndent() float64 { + rv := objc.Call[float64](p_, objc.Sel("tailIndent")) return rv } @@ -148,35 +137,19 @@ func (p_ ParagraphStyle) MinimumLineHeight() float64 { return rv } -// The threshold for using tightening as an alternative to truncation. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsparagraphstyle/1529278-tighteningfactorfortruncation?language=objc -func (p_ ParagraphStyle) TighteningFactorForTruncation() float64 { - rv := objc.Call[float64](p_, objc.Sel("tighteningFactorForTruncation")) - return rv -} - -// The text alignment of the paragraph. [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")) - return rv -} - -// The indentation of the first line of the paragraph. [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/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/1533011-paragraphspacingbefore?language=objc +func (p_ ParagraphStyle) ParagraphSpacingBefore() float64 { + rv := objc.Call[float64](p_, objc.Sel("paragraphSpacingBefore")) return rv } -// The strategy for breaking lines while laying out paragraphs. [Full Topic] +// The paragraph’s threshold for hyphenation. [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/uikit/nsparagraphstyle/1529275-hyphenationfactor?language=objc +func (p_ ParagraphStyle) HyphenationFactor() float64 { + rv := objc.Call[float64](p_, objc.Sel("hyphenationFactor")) return rv } @@ -188,11 +161,19 @@ func (p_ ParagraphStyle) MaximumLineHeight() float64 { return rv } -// The paragraph’s header level for HTML generation. [Full Topic] +// Distance between the bottom of this paragraph and top of next. [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")) +// [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 +} + +// 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 } @@ -204,74 +185,89 @@ func (p_ ParagraphStyle) DefaultTabInterval() float64 { return rv } -// The text tab objects that represent the paragraph’s tab stops. [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/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/1528994-allowsdefaulttighteningfortrunca?language=objc +func (p_ ParagraphStyle) AllowsDefaultTighteningForTruncation() bool { + rv := objc.Call[bool](p_, objc.Sel("allowsDefaultTighteningForTruncation")) return rv } -// The text blocks that contain the paragraph. [Full Topic] +// The indentation of the paragraph’s lines other than the first. [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/1530760-headindent?language=objc +func (p_ ParagraphStyle) HeadIndent() float64 { + rv := objc.Call[float64](p_, objc.Sel("headIndent")) return rv } -// The line height multiple. [Full Topic] +// The strategy for breaking lines while laying out paragraphs. [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/3667463-linebreakstrategy?language=objc +func (p_ ParagraphStyle) LineBreakStrategy() LineBreakStrategy { + rv := objc.Call[LineBreakStrategy](p_, objc.Sel("lineBreakStrategy")) return rv } -// The base writing direction for the paragraph. [Full Topic] +// The text alignment of the paragraph. [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/1532321-alignment?language=objc +func (p_ ParagraphStyle) Alignment() TextAlignment { + rv := objc.Call[TextAlignment](p_, objc.Sel("alignment")) return rv } -// The paragraph’s threshold for hyphenation. [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/uikit/nsparagraphstyle/1529275-hyphenationfactor?language=objc -func (p_ ParagraphStyle) HyphenationFactor() float64 { - rv := objc.Call[float64](p_, objc.Sel("hyphenationFactor")) +// [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 } -// The distance between the paragraph’s top and the beginning of its text content. [Full Topic] +// The line height multiple. [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/uikit/nsparagraphstyle/1528614-lineheightmultiple?language=objc +func (p_ ParagraphStyle) LineHeightMultiple() float64 { + rv := objc.Call[float64](p_, objc.Sel("lineHeightMultiple")) return rv } -// Distance between the bottom of this paragraph and top of next. [Full Topic] +// The text tab objects that represent the paragraph’s tab stops. [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/1532841-tabstops?language=objc +func (p_ ParagraphStyle) TabStops() []TextTab { + rv := objc.Call[[]TextTab](p_, objc.Sel("tabStops")) return rv } -// The trailing indentation of the paragraph. [Full Topic] +// The base writing direction for the paragraph. [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/1527354-basewritingdirection?language=objc +func (p_ ParagraphStyle) BaseWritingDirection() WritingDirection { + rv := objc.Call[WritingDirection](p_, objc.Sel("baseWritingDirection")) return rv } -// The indentation of the paragraph’s lines other than the first. [Full Topic] +// The default paragraph style. [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/1532681-defaultparagraphstyle?language=objc +func (pc _ParagraphStyleClass) DefaultParagraphStyle() ParagraphStyle { + rv := objc.Call[ParagraphStyle](pc, objc.Sel("defaultParagraphStyle")) + 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] +// +// [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 } diff --git a/macos/appkit/pasteboard.gen.go b/macos/appkit/pasteboard.gen.go index 095e818b..70dc498b 100644 --- a/macos/appkit/pasteboard.gen.go +++ b/macos/appkit/pasteboard.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package appkit @@ -19,27 +19,27 @@ type _PasteboardClass struct { // An interface definition for the [Pasteboard] class. type IPasteboard interface { objc.IObject - StringForType(dataType PasteboardType) string + AddTypesOwner(newTypes []PasteboardType, newOwner objc.IObject) int 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 - AddTypesOwner(newTypes []PasteboardType, newOwner objc.IObject) int + 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 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 - DeclareTypesOwner(newTypes []PasteboardType, newOwner objc.IObject) int - CanReadItemWithDataConformingToTypes(types []string) bool - PropertyListForType(dataType PasteboardType) objc.Object + ReadFileWrapper() foundation.FileWrapper + SetStringForType(string_ string, dataType PasteboardType) bool Name() PasteboardName Types() []PasteboardType ChangeCount() int @@ -64,10 +64,6 @@ func (pc _PasteboardClass) Alloc() Pasteboard { return rv } -func Pasteboard_Alloc() Pasteboard { - return PasteboardClass.Alloc() -} - func (pc _PasteboardClass) New() Pasteboard { rv := objc.Call[Pasteboard](pc, objc.Sel("new")) rv.Autorelease() @@ -83,11 +79,51 @@ func (p_ Pasteboard) Init() Pasteboard { return rv } -// Returns a concatenation of the strings for the specified type from all the items in the receiver that contain 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/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/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] +// +// [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 } @@ -106,19 +142,26 @@ func Pasteboard_PasteboardWithName(name PasteboardName) Pasteboard { return PasteboardClass.PasteboardWithName(name) } -// Reads data representing a file’s contents from the receiver and writes it to the specified file. [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/1533575-readfilecontentstype?language=objc -func (p_ Pasteboard) ReadFileContentsTypeToFile(type_ PasteboardType, filename string) string { - rv := objc.Call[string](p_, objc.Sel("readFileContentsType:toFile:"), type_, 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:"), objc.Ptr(pboard)) return rv } -// Reads from the receiver objects that best match the specified array of classes. [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/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/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] +// +// [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 } @@ -130,11 +173,11 @@ func (p_ Pasteboard) IndexOfPasteboardItem(pasteboardItem IPasteboardItem) uint return rv } -// Adds promises for the specified types to the first pasteboard item. [Full Topic] +// 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/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) +// [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 } @@ -153,27 +196,35 @@ func Pasteboard_PasteboardByFilteringDataOfType(data []byte, type_ PasteboardTyp return PasteboardClass.PasteboardByFilteringDataOfType(data, type_) } -// Writes the contents of the specified file to the pasteboard. [Full Topic] +// 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/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/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 } -// Reads data representing a file’s contents from the receiver and returns it as a file wrapper. [Full Topic] +// 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/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/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 } -// Writes an array of objects to the receiver. [Full Topic] +// 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/1525945-writeobjects?language=objc -func (p_ Pasteboard) WriteObjects(objects []PPasteboardWriting) bool { - rv := objc.Call[bool](p_, objc.Sel("writeObjects:"), objects) +// [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 +} + +// Writes the contents of the specified file to the pasteboard. [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) return rv } @@ -184,6 +235,14 @@ 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 @@ -192,19 +251,19 @@ func (p_ Pasteboard) WriteFileWrapper(wrapper foundation.IFileWrapper) bool { return rv } -// Sets the given property list as the representation for the specified type for the first item on the receiver. [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/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) +// [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 } -// Sets the given string as the representation for the specified type for the first item on the receiver. [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/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/2344960-preparefornewcontentswithoptions?language=objc +func (p_ Pasteboard) PrepareForNewContentsWithOptions(options PasteboardContentsOptions) int { + rv := objc.Call[int](p_, objc.Sel("prepareForNewContentsWithOptions:"), options) return rv } @@ -223,42 +282,11 @@ func Pasteboard_PasteboardWithUniqueName() Pasteboard { return PasteboardClass.PasteboardWithUniqueName() } -// 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 (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] +// Scans the specified types for a type that the receiver supports. [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")) +// [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 } @@ -277,66 +305,34 @@ func Pasteboard_TypesFilterableTo(type_ PasteboardType) []PasteboardType { return PasteboardClass.TypesFilterableTo(type_) } -// 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/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 -} - -// Prepares the pasteboard to receive new contents, removing the existing pasteboard contents. [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) - 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 (pc _PasteboardClass) PasteboardByFilteringTypesInPasteboard(pboard IPasteboard) Pasteboard { - rv := objc.Call[Pasteboard](pc, objc.Sel("pasteboardByFilteringTypesInPasteboard:"), objc.Ptr(pboard)) - 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) -} - -// Scans the specified types for a type that the receiver supports. [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/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/1524779-readfilewrapper?language=objc +func (p_ Pasteboard) ReadFileWrapper() foundation.FileWrapper { + rv := objc.Call[foundation.FileWrapper](p_, objc.Sel("readFileWrapper")) 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] +// 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/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/1532744-pasteboardbyfilteringfile?language=objc +func (pc _PasteboardClass) PasteboardByFilteringFile(filename string) Pasteboard { + rv := objc.Call[Pasteboard](pc, objc.Sel("pasteboardByFilteringFile:"), filename) return rv } -// Returns a Boolean value that indicates whether the receiver contains any items that conform to the specified UTIs. [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/1533576-canreaditemwithdataconformingtot?language=objc -func (p_ Pasteboard) CanReadItemWithDataConformingToTypes(types []string) bool { - rv := objc.Call[bool](p_, objc.Sel("canReadItemWithDataConformingToTypes:"), types) - return rv +// [Full Topic]: https://developer.apple.com/documentation/appkit/nspasteboard/1532744-pasteboardbyfilteringfile?language=objc +func Pasteboard_PasteboardByFilteringFile(filename string) Pasteboard { + return PasteboardClass.PasteboardByFilteringFile(filename) } -// Returns the property list for the specified type from the first item in the receiver that contains the type. [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/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/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 } diff --git a/macos/appkit/pasteboard_item.gen.go b/macos/appkit/pasteboard_item.gen.go index 3771444f..4d71d9ee 100644 --- a/macos/appkit/pasteboard_item.gen.go +++ b/macos/appkit/pasteboard_item.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package appkit @@ -18,15 +18,15 @@ type _PasteboardItemClass struct { // An interface definition for the [PasteboardItem] class. type IPasteboardItem interface { objc.IObject - StringForType(type_ PasteboardType) string - SetPropertyListForType(propertyList objc.IObject, type_ PasteboardType) bool - SetStringForType(string_ string, type_ PasteboardType) bool - DataForType(type_ PasteboardType) []byte - SetDataForType(data []byte, type_ PasteboardType) bool SetDataProviderForTypes(dataProvider PPasteboardItemDataProvider, types []PasteboardType) bool SetDataProviderObjectForTypes(dataProviderObject objc.IObject, types []PasteboardType) bool - AvailableTypeFromArray(types []PasteboardType) PasteboardType + SetDataForType(data []byte, 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 + AvailableTypeFromArray(types []PasteboardType) PasteboardType + StringForType(type_ PasteboardType) string Types() []PasteboardType } @@ -48,10 +48,6 @@ func (pc _PasteboardItemClass) Alloc() PasteboardItem { return rv } -func PasteboardItem_Alloc() PasteboardItem { - return PasteboardItemClass.Alloc() -} - func (pc _PasteboardItemClass) New() PasteboardItem { rv := objc.Call[PasteboardItem](pc, objc.Sel("new")) rv.Autorelease() @@ -67,19 +63,28 @@ func (p_ PasteboardItem) Init() PasteboardItem { return rv } -// Returns the value for the specified type as a string. [Full Topic] +// Sets the data provider for the specified types. [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/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 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) SetDataProviderObjectForTypes(dataProviderObject objc.IObject, types []PasteboardType) bool { + rv := objc.Call[bool](p_, objc.Sel("setDataProvider:forTypes:"), objc.Ptr(dataProviderObject), types) + return rv +} + +// Sets the value for a specified type as a data object. [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_) return rv } @@ -99,28 +104,19 @@ func (p_ PasteboardItem) DataForType(type_ PasteboardType) []byte { return rv } -// Sets the value for a specified type as a data object. [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_) - return rv -} - -// Sets the data provider for the specified types. [Full Topic] +// Returns the value for the specified type as a property list. [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) +// [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 } -// Sets the data provider for the specified types. [Full Topic] +// Sets the value for a specified type as a property list. [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:"), objc.Ptr(dataProviderObject), types) +// [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 } @@ -132,11 +128,11 @@ func (p_ PasteboardItem) AvailableTypeFromArray(types []PasteboardType) Pasteboa return rv } -// Returns the value for the specified type as a property list. [Full Topic] +// Returns the value for the specified type as a string. [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/1508490-stringfortype?language=objc +func (p_ PasteboardItem) StringForType(type_ PasteboardType) string { + rv := objc.Call[string](p_, objc.Sel("stringForType:"), type_) return rv } diff --git a/macos/appkit/pasteboard_item_data_provider.gen.go b/macos/appkit/pasteboard_item_data_provider_protocol.gen.go similarity index 68% rename from macos/appkit/pasteboard_item_data_provider.gen.go rename to macos/appkit/pasteboard_item_data_provider_protocol.gen.go index f1122c75..5b14f2dd 100644 --- a/macos/appkit/pasteboard_item_data_provider.gen.go +++ b/macos/appkit/pasteboard_item_data_provider_protocol.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package appkit @@ -10,38 +10,41 @@ import ( // // [Full Topic]: https://developer.apple.com/documentation/appkit/nspasteboarditemdataprovider?language=objc type PPasteboardItemDataProvider interface { - // optional - PasteboardFinishedWithDataProvider(pasteboard Pasteboard) - HasPasteboardFinishedWithDataProvider() bool - // optional PasteboardItemProvideDataForType(pasteboard Pasteboard, item PasteboardItem, type_ PasteboardType) HasPasteboardItemProvideDataForType() bool -} -// A concrete type wrapper for the [PPasteboardItemDataProvider] protocol. -type PasteboardItemDataProviderWrapper struct { - objc.Object + // optional + PasteboardFinishedWithDataProvider(pasteboard Pasteboard) + HasPasteboardFinishedWithDataProvider() bool } -func (p_ PasteboardItemDataProviderWrapper) HasPasteboardFinishedWithDataProvider() bool { - return p_.RespondsToSelector(objc.Sel("pasteboardFinishedWithDataProvider:")) -} +// ensure impl type implements protocol interface +var _ PPasteboardItemDataProvider = (*PasteboardItemDataProviderObject)(nil) -// Informs the receiver that the pasteboard no longer needs the data provider for any of its pasteboard items. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nspasteboarditemdataprovider/1508506-pasteboardfinishedwithdataprovid?language=objc -func (p_ PasteboardItemDataProviderWrapper) PasteboardFinishedWithDataProvider(pasteboard IPasteboard) { - objc.Call[objc.Void](p_, objc.Sel("pasteboardFinishedWithDataProvider:"), objc.Ptr(pasteboard)) +// A concrete type for the [PPasteboardItemDataProvider] protocol. +type PasteboardItemDataProviderObject struct { + objc.Object } -func (p_ PasteboardItemDataProviderWrapper) HasPasteboardItemProvideDataForType() bool { +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_ PasteboardItemDataProviderWrapper) PasteboardItemProvideDataForType(pasteboard IPasteboard, item IPasteboardItem, type_ PasteboardType) { +func (p_ PasteboardItemDataProviderObject) PasteboardItemProvideDataForType(pasteboard Pasteboard, item PasteboardItem, type_ PasteboardType) { objc.Call[objc.Void](p_, objc.Sel("pasteboard:item:provideDataForType:"), objc.Ptr(pasteboard), objc.Ptr(item), type_) } + +func (p_ PasteboardItemDataProviderObject) HasPasteboardFinishedWithDataProvider() bool { + return p_.RespondsToSelector(objc.Sel("pasteboardFinishedWithDataProvider:")) +} + +// Informs the receiver that the pasteboard no longer needs the data provider for any of its pasteboard items. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/appkit/nspasteboarditemdataprovider/1508506-pasteboardfinishedwithdataprovid?language=objc +func (p_ PasteboardItemDataProviderObject) PasteboardFinishedWithDataProvider(pasteboard Pasteboard) { + objc.Call[objc.Void](p_, objc.Sel("pasteboardFinishedWithDataProvider:"), objc.Ptr(pasteboard)) +} diff --git a/macos/appkit/pasteboard_reading.gen.go b/macos/appkit/pasteboard_reading_protocol.gen.go similarity index 63% rename from macos/appkit/pasteboard_reading.gen.go rename to macos/appkit/pasteboard_reading_protocol.gen.go index 31bb1f47..0d5adeaf 100644 --- a/macos/appkit/pasteboard_reading.gen.go +++ b/macos/appkit/pasteboard_reading_protocol.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package appkit @@ -11,23 +11,26 @@ import ( // [Full Topic]: https://developer.apple.com/documentation/appkit/nspasteboardreading?language=objc type PPasteboardReading interface { // optional - InitWithPasteboardPropertyListOfType(propertyList objc.Object, type_ PasteboardType) objc.IObject + InitWithPasteboardPropertyListOfType(propertyList objc.Object, type_ PasteboardType) objc.Object HasInitWithPasteboardPropertyListOfType() bool } -// A concrete type wrapper for the [PPasteboardReading] protocol. -type PasteboardReadingWrapper struct { +// ensure impl type implements protocol interface +var _ PPasteboardReading = (*PasteboardReadingObject)(nil) + +// A concrete type for the [PPasteboardReading] protocol. +type PasteboardReadingObject struct { objc.Object } -func (p_ PasteboardReadingWrapper) HasInitWithPasteboardPropertyListOfType() bool { +func (p_ PasteboardReadingObject) HasInitWithPasteboardPropertyListOfType() bool { return p_.RespondsToSelector(objc.Sel("initWithPasteboardPropertyList:ofType:")) } // Initializes an instance with a property list object and a type string. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/appkit/nspasteboardreading/1528252-initwithpasteboardpropertylist?language=objc -func (p_ PasteboardReadingWrapper) InitWithPasteboardPropertyListOfType(propertyList objc.IObject, type_ PasteboardType) objc.Object { +func (p_ PasteboardReadingObject) InitWithPasteboardPropertyListOfType(propertyList objc.Object, type_ PasteboardType) objc.Object { rv := objc.Call[objc.Object](p_, objc.Sel("initWithPasteboardPropertyList:ofType:"), propertyList, type_) return rv } diff --git a/macos/appkit/pasteboard_type_owner.gen.go b/macos/appkit/pasteboard_type_owner_protocol.gen.go similarity index 69% rename from macos/appkit/pasteboard_type_owner.gen.go rename to macos/appkit/pasteboard_type_owner_protocol.gen.go index d80f4245..8f4621f7 100644 --- a/macos/appkit/pasteboard_type_owner.gen.go +++ b/macos/appkit/pasteboard_type_owner_protocol.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package appkit @@ -10,38 +10,41 @@ import ( // // [Full Topic]: https://developer.apple.com/documentation/appkit/nspasteboardtypeowner?language=objc type PPasteboardTypeOwner interface { - // optional - PasteboardChangedOwner(sender Pasteboard) - HasPasteboardChangedOwner() bool - // optional PasteboardProvideDataForType(sender Pasteboard, type_ PasteboardType) HasPasteboardProvideDataForType() bool -} -// A concrete type wrapper for the [PPasteboardTypeOwner] protocol. -type PasteboardTypeOwnerWrapper struct { - objc.Object + // optional + PasteboardChangedOwner(sender Pasteboard) + HasPasteboardChangedOwner() bool } -func (p_ PasteboardTypeOwnerWrapper) HasPasteboardChangedOwner() bool { - return p_.RespondsToSelector(objc.Sel("pasteboardChangedOwner:")) -} +// ensure impl type implements protocol interface +var _ PPasteboardTypeOwner = (*PasteboardTypeOwnerObject)(nil) -// Notifies the object that the pasteboard’s owner changed. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nspasteboardtypeowner/3005194-pasteboardchangedowner?language=objc -func (p_ PasteboardTypeOwnerWrapper) PasteboardChangedOwner(sender IPasteboard) { - objc.Call[objc.Void](p_, objc.Sel("pasteboardChangedOwner:"), objc.Ptr(sender)) +// A concrete type for the [PPasteboardTypeOwner] protocol. +type PasteboardTypeOwnerObject struct { + objc.Object } -func (p_ PasteboardTypeOwnerWrapper) HasPasteboardProvideDataForType() bool { +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_ PasteboardTypeOwnerWrapper) PasteboardProvideDataForType(sender IPasteboard, type_ PasteboardType) { +func (p_ PasteboardTypeOwnerObject) PasteboardProvideDataForType(sender Pasteboard, type_ PasteboardType) { objc.Call[objc.Void](p_, objc.Sel("pasteboard:provideDataForType:"), objc.Ptr(sender), type_) } + +func (p_ PasteboardTypeOwnerObject) HasPasteboardChangedOwner() bool { + return p_.RespondsToSelector(objc.Sel("pasteboardChangedOwner:")) +} + +// Notifies the object that the pasteboard’s owner changed. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/appkit/nspasteboardtypeowner/3005194-pasteboardchangedowner?language=objc +func (p_ PasteboardTypeOwnerObject) PasteboardChangedOwner(sender Pasteboard) { + objc.Call[objc.Void](p_, objc.Sel("pasteboardChangedOwner:"), objc.Ptr(sender)) +} diff --git a/macos/appkit/pasteboard_writing.gen.go b/macos/appkit/pasteboard_writing_protocol.gen.go similarity index 69% rename from macos/appkit/pasteboard_writing.gen.go rename to macos/appkit/pasteboard_writing_protocol.gen.go index 9a28827e..29281d67 100644 --- a/macos/appkit/pasteboard_writing.gen.go +++ b/macos/appkit/pasteboard_writing_protocol.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package appkit @@ -15,7 +15,7 @@ type PPasteboardWriting interface { HasWritableTypesForPasteboard() bool // optional - PasteboardPropertyListForType(type_ PasteboardType) objc.IObject + PasteboardPropertyListForType(type_ PasteboardType) objc.Object HasPasteboardPropertyListForType() bool // optional @@ -23,43 +23,46 @@ type PPasteboardWriting interface { HasWritingOptionsForTypePasteboard() bool } -// A concrete type wrapper for the [PPasteboardWriting] protocol. -type PasteboardWritingWrapper struct { +// ensure impl type implements protocol interface +var _ PPasteboardWriting = (*PasteboardWritingObject)(nil) + +// A concrete type for the [PPasteboardWriting] protocol. +type PasteboardWritingObject struct { objc.Object } -func (p_ PasteboardWritingWrapper) HasWritableTypesForPasteboard() bool { +func (p_ PasteboardWritingObject) HasWritableTypesForPasteboard() bool { return p_.RespondsToSelector(objc.Sel("writableTypesForPasteboard:")) } // Returns an array of UTI strings of data types the receiver can write to a given pasteboard. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/appkit/nspasteboardwriting/1533578-writabletypesforpasteboard?language=objc -func (p_ PasteboardWritingWrapper) WritableTypesForPasteboard(pasteboard IPasteboard) []PasteboardType { +func (p_ PasteboardWritingObject) WritableTypesForPasteboard(pasteboard Pasteboard) []PasteboardType { rv := objc.Call[[]PasteboardType](p_, objc.Sel("writableTypesForPasteboard:"), objc.Ptr(pasteboard)) return rv } -func (p_ PasteboardWritingWrapper) HasPasteboardPropertyListForType() bool { +func (p_ PasteboardWritingObject) HasPasteboardPropertyListForType() bool { return p_.RespondsToSelector(objc.Sel("pasteboardPropertyListForType:")) } // Returns a property list object to represent the receiver on a pasteboard as an object of a specified type. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/appkit/nspasteboardwriting/1529482-pasteboardpropertylistfortype?language=objc -func (p_ PasteboardWritingWrapper) PasteboardPropertyListForType(type_ PasteboardType) objc.Object { +func (p_ PasteboardWritingObject) PasteboardPropertyListForType(type_ PasteboardType) objc.Object { rv := objc.Call[objc.Object](p_, objc.Sel("pasteboardPropertyListForType:"), type_) return rv } -func (p_ PasteboardWritingWrapper) HasWritingOptionsForTypePasteboard() bool { +func (p_ PasteboardWritingObject) HasWritingOptionsForTypePasteboard() bool { return p_.RespondsToSelector(objc.Sel("writingOptionsForType:pasteboard:")) } // Returns options for writing data of a specified type to a given pasteboard. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/appkit/nspasteboardwriting/1525372-writingoptionsfortype?language=objc -func (p_ PasteboardWritingWrapper) WritingOptionsForTypePasteboard(type_ PasteboardType, pasteboard IPasteboard) PasteboardWritingOptions { +func (p_ PasteboardWritingObject) WritingOptionsForTypePasteboard(type_ PasteboardType, pasteboard Pasteboard) PasteboardWritingOptions { rv := objc.Call[PasteboardWritingOptions](p_, objc.Sel("writingOptionsForType:pasteboard:"), type_, objc.Ptr(pasteboard)) return rv } diff --git a/macos/appkit/path_cell.gen.go b/macos/appkit/path_cell.gen.go index 50eb3055..21024267 100644 --- a/macos/appkit/path_cell.gen.go +++ b/macos/appkit/path_cell.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package appkit @@ -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() PathCellDelegateWrapper - SetDelegate(value PPathCellDelegate) - SetDelegateObject(valueObject objc.IObject) - PlaceholderAttributedString() foundation.AttributedString - SetPlaceholderAttributedString(value foundation.IAttributedString) - BackgroundColor() Color - SetBackgroundColor(value IColor) PathComponentCells() []PathComponentCell SetPathComponentCells(value []IPathComponentCell) - PathStyle() PathStyle - SetPathStyle(value PathStyle) + ClickedPathComponentCell() PathComponentCell AllowedTypes() []string SetAllowedTypes(value []string) - URL() foundation.URL - SetURL(value foundation.IURL) + PlaceholderAttributedString() foundation.AttributedString + SetPlaceholderAttributedString(value foundation.IAttributedString) PlaceholderString() string SetPlaceholderString(value string) - ClickedPathComponentCell() PathComponentCell + 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) } // The user interface of a path control object. [Full Topic] @@ -63,10 +63,6 @@ func (pc _PathCellClass) Alloc() PathCell { return rv } -func PathCell_Alloc() PathCell { - return PathCellClass.Alloc() -} - func (pc _PathCellClass) New() PathCell { rv := objc.Call[PathCell](pc, objc.Sel("new")) rv.Autorelease() @@ -110,6 +106,14 @@ 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:"), objc.Ptr(cell), frame, objc.Ptr(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 @@ -125,14 +129,6 @@ 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:"), objc.Ptr(cell), frame, objc.Ptr(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 @@ -140,43 +136,42 @@ func (p_ PathCell) MouseExitedWithFrameInView(event IEvent, frame foundation.Rec objc.Call[objc.Void](p_, objc.Sel("mouseExited:withFrame:inView:"), objc.Ptr(event), frame, objc.Ptr(view)) } -// Sets the receiver’s double-click action. [Full Topic] +// Sets the array of NSPathComponentCell objects currently being displayed. [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/1529433-pathcomponentcells?language=objc +func (p_ PathCell) PathComponentCells() []PathComponentCell { + rv := objc.Call[[]PathComponentCell](p_, objc.Sel("pathComponentCells")) return rv } -// Sets the receiver’s double-click action. [Full Topic] +// Sets the array of NSPathComponentCell objects currently being displayed. [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/1529433-pathcomponentcells?language=objc +func (p_ PathCell) SetPathComponentCells(value []IPathComponentCell) { + objc.Call[objc.Void](p_, objc.Sel("setPathComponentCells:"), value) } -// Sets the receiver’s delegate. [Full Topic] +// Sets the value of the path displayed by the receiver. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nspathcell/1532834-delegate?language=objc -func (p_ PathCell) Delegate() PathCellDelegateWrapper { - rv := objc.Call[PathCellDelegateWrapper](p_, objc.Sel("delegate")) +// [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 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) 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) SetDelegateObject(valueObject objc.IObject) { - objc.Call[objc.Void](p_, objc.Sel("setDelegate:"), objc.Ptr(valueObject)) +// [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 value of the placeholder attributed string. [Full Topic] @@ -194,115 +189,116 @@ func (p_ PathCell) SetPlaceholderAttributedString(value foundation.IAttributedSt objc.Call[objc.Void](p_, objc.Sel("setPlaceholderAttributedString:"), objc.Ptr(value)) } -// 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")) +// [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) SetBackgroundColor(value IColor) { - objc.Call[objc.Void](p_, objc.Sel("setBackgroundColor:"), objc.Ptr(value)) +// [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) } -// Sets the array of NSPathComponentCell objects currently being displayed. [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/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/1535369-pathcomponentcellclass?language=objc +func (pc _PathCellClass) PathComponentCellClass() objc.Class { + rv := objc.Call[objc.Class](pc, objc.Sel("pathComponentCellClass")) return rv } -// Sets the array of NSPathComponentCell objects currently being displayed. [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/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/1535369-pathcomponentcellclass?language=objc +func PathCell_PathComponentCellClass() objc.Class { + return PathCellClass.PathComponentCellClass() } -// 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")) +// [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) SetPathStyle(value PathStyle) { - objc.Call[objc.Void](p_, objc.Sel("setPathStyle:"), value) +// [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:"), objc.Ptr(value)) } -// 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")) +// [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) 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) 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) } -// Returns the path displayed by the receiver. [Full Topic] +// Sets the receiver’s delegate. [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")) - return rv +// [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:"), objc.Ptr(valueObject)) } -// 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:"), objc.Ptr(value)) +// [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 placeholder string. [Full Topic] +// Sets the receiver’s path style. [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")) - return rv +// [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) } -// 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) BackgroundColor() Color { + rv := objc.Call[Color](p_, objc.Sel("backgroundColor")) + return rv } -// Sets the value of the path displayed by the receiver. [Full Topic] +// Returns the current background color of the receiver. [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")) - return rv +// [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:"), objc.Ptr(value)) } -// Returns the class used to create pathComponentCell objects when automatically filling up the control. [Full Topic] +// Sets the receiver’s double-click action. [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/1532554-doubleaction?language=objc +func (p_ PathCell) DoubleAction() objc.Selector { + rv := objc.Call[objc.Selector](p_, objc.Sel("doubleAction")) return rv } -// Returns the class used to create pathComponentCell objects when automatically filling up the control. [Full Topic] +// Sets the receiver’s double-click action. [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/1532554-doubleaction?language=objc +func (p_ PathCell) SetDoubleAction(value objc.Selector) { + objc.Call[objc.Void](p_, objc.Sel("setDoubleAction:"), value) } diff --git a/macos/appkit/path_cell_delegate.gen.go b/macos/appkit/path_cell_delegate.gen.go index ba5186d3..7a079828 100644 --- a/macos/appkit/path_cell_delegate.gen.go +++ b/macos/appkit/path_cell_delegate.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package appkit @@ -6,10 +6,14 @@ import ( "github.com/progrium/macdriver/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 [appkit/nspathstyle/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 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 @@ -17,9 +21,27 @@ type PPathCellDelegate interface { // A delegate implementation builder for the [PPathCellDelegate] protocol. type PathCellDelegate struct { - _PathCellWillPopUpMenu func(pathCell PathCell, menu Menu) + _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 +} + +// 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 } @@ -38,18 +60,32 @@ func (di *PathCellDelegate) PathCellWillPopUpMenu(pathCell PathCell, menu Menu) di._PathCellWillPopUpMenu(pathCell, menu) } -// A concrete type wrapper for the [PPathCellDelegate] protocol. -type PathCellDelegateWrapper struct { +// ensure impl type implements protocol interface +var _ PPathCellDelegate = (*PathCellDelegateObject)(nil) + +// A concrete type for the [PPathCellDelegate] protocol. +type PathCellDelegateObject struct { objc.Object } -func (p_ PathCellDelegateWrapper) HasPathCellWillPopUpMenu() bool { +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:"), objc.Ptr(pathCell), objc.Ptr(openPanel)) +} + +func (p_ PathCellDelegateObject) HasPathCellWillPopUpMenu() bool { return p_.RespondsToSelector(objc.Sel("pathCell:willPopUpMenu:")) } // Implement this method to customize the menu of a pop-up–style path. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/appkit/nspathcelldelegate/1525005-pathcell?language=objc -func (p_ PathCellDelegateWrapper) PathCellWillPopUpMenu(pathCell IPathCell, menu IMenu) { +func (p_ PathCellDelegateObject) PathCellWillPopUpMenu(pathCell PathCell, menu Menu) { objc.Call[objc.Void](p_, objc.Sel("pathCell:willPopUpMenu:"), objc.Ptr(pathCell), objc.Ptr(menu)) } diff --git a/macos/appkit/path_component_cell.gen.go b/macos/appkit/path_component_cell.gen.go index c7413680..4eac32e5 100644 --- a/macos/appkit/path_component_cell.gen.go +++ b/macos/appkit/path_component_cell.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package appkit @@ -41,10 +41,6 @@ func (pc _PathComponentCellClass) Alloc() PathComponentCell { return rv } -func PathComponentCell_Alloc() PathComponentCell { - return PathComponentCellClass.Alloc() -} - func (pc _PathComponentCellClass) New() PathComponentCell { rv := objc.Call[PathComponentCell](pc, objc.Sel("new")) rv.Autorelease() diff --git a/macos/appkit/path_control.gen.go b/macos/appkit/path_control.gen.go index 42cf3a23..2065fa01 100644 --- a/macos/appkit/path_control.gen.go +++ b/macos/appkit/path_control.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package appkit @@ -20,28 +20,28 @@ type _PathControlClass struct { type IPathControl interface { IControl SetDraggingSourceOperationMaskForLocal(mask DragOperation, isLocal bool) - DoubleAction() objc.Selector - SetDoubleAction(value objc.Selector) - IsEditable() bool - SetEditable(value bool) - ClickedPathItem() PathControlItem - Delegate() PathControlDelegateWrapper - SetDelegate(value PPathControlDelegate) - SetDelegateObject(valueObject objc.IObject) - PlaceholderAttributedString() foundation.AttributedString - SetPlaceholderAttributedString(value foundation.IAttributedString) - BackgroundColor() Color - SetBackgroundColor(value IColor) PathStyle() PathStyle SetPathStyle(value PathStyle) + PlaceholderString() string + SetPlaceholderString(value string) + PlaceholderAttributedString() foundation.AttributedString + SetPlaceholderAttributedString(value foundation.IAttributedString) AllowedTypes() []string SetAllowedTypes(value []string) + IsEditable() bool + SetEditable(value bool) URL() foundation.URL SetURL(value foundation.IURL) PathItems() []PathControlItem SetPathItems(value []IPathControlItem) - PlaceholderString() string - SetPlaceholderString(value string) + DoubleAction() objc.Selector + SetDoubleAction(value objc.Selector) + BackgroundColor() Color + SetBackgroundColor(value IColor) + Delegate() PathControlDelegateObject + SetDelegate(value PPathControlDelegate) + SetDelegateObject(valueObject objc.IObject) + ClickedPathItem() PathControlItem } // A display of a file system path or virtual path information. [Full Topic] @@ -62,10 +62,6 @@ func (pc _PathControlClass) Alloc() PathControl { return rv } -func PathControl_Alloc() PathControl { - return PathControlClass.Alloc() -} - func (pc _PathControlClass) New() PathControl { rv := objc.Call[PathControl](pc, objc.Sel("new")) rv.Autorelease() @@ -95,73 +91,41 @@ func NewPathControlWithFrame(frameRect foundation.Rect) PathControl { return instance } -// Configures the default value returned from draggingSourceOperationMaskForLocal:. [Full Topic] +// Configures the default value returned from [objectivec/nsobject/draggingsourceoperationmaskforlo]. [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 double-click action method. [Full Topic] +// The receiver’s path style. [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")) +// [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 double-click action method. [Full Topic] +// The receiver’s path style. [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) +// [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/1531787-placeholderstring?language=objc +func (p_ PathControl) PlaceholderString() string { + rv := objc.Call[string](p_, objc.Sel("placeholderString")) 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] -// -// [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() PathControlDelegateWrapper { - rv := objc.Call[PathControlDelegateWrapper](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:"), objc.Ptr(valueObject)) +// [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] @@ -179,49 +143,34 @@ func (p_ PathControl) SetPlaceholderAttributedString(value foundation.IAttribute objc.Call[objc.Void](p_, objc.Sel("setPlaceholderAttributedString:"), objc.Ptr(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:"), objc.Ptr(value)) -} - -// The receiver’s path style. [Full Topic] +// [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/1527415-allowedtypes?language=objc +func (p_ PathControl) AllowedTypes() []string { + rv := objc.Call[[]string](p_, objc.Sel("allowedTypes")) return rv } -// The receiver’s path style. [Full Topic] +// [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/1527415-allowedtypes?language=objc +func (p_ PathControl) SetAllowedTypes(value []string) { + objc.Call[objc.Void](p_, objc.Sel("setAllowedTypes:"), value) } // [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/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/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/1535833-editable?language=objc +func (p_ PathControl) SetEditable(value bool) { + objc.Call[objc.Void](p_, objc.Sel("setEditable:"), value) } // The path value displayed by the receiver. [Full Topic] @@ -254,17 +203,64 @@ func (p_ PathControl) SetPathItems(value []IPathControlItem) { objc.Call[objc.Void](p_, objc.Sel("setPathItems:"), value) } -// [Full Topic] +// The receiver’s double-click action method. [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/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:"), objc.Ptr(value)) +} + +// 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:"), objc.Ptr(valueObject)) +} + // [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/1535047-clickedpathitem?language=objc +func (p_ PathControl) ClickedPathItem() PathControlItem { + rv := objc.Call[PathControlItem](p_, objc.Sel("clickedPathItem")) + return rv } diff --git a/macos/appkit/path_control_delegate.gen.go b/macos/appkit/path_control_delegate.gen.go index d8b6453e..d862deb5 100644 --- a/macos/appkit/path_control_delegate.gen.go +++ b/macos/appkit/path_control_delegate.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package appkit @@ -13,11 +13,36 @@ 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 + _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) } func (di *PathControlDelegate) HasPathControlShouldDragItemWithPasteboard() bool { @@ -37,20 +62,168 @@ 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 +} -// A concrete type wrapper for the [PPathControlDelegate] protocol. -type PathControlDelegateWrapper struct { +// 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) + +// A concrete type for the [PPathControlDelegate] protocol. +type PathControlDelegateObject struct { objc.Object } -func (p_ PathControlDelegateWrapper) HasPathControlShouldDragItemWithPasteboard() bool { +func (p_ PathControlDelegateObject) HasPathControlShouldDragItemWithPasteboard() bool { return p_.RespondsToSelector(objc.Sel("pathControl:shouldDragItem:withPasteboard:")) } // [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/appkit/nspathcontroldelegate/1526752-pathcontrol?language=objc -func (p_ PathControlDelegateWrapper) PathControlShouldDragItemWithPasteboard(pathControl IPathControl, pathItem IPathControlItem, pasteboard IPasteboard) bool { +func (p_ PathControlDelegateObject) PathControlShouldDragItemWithPasteboard(pathControl PathControl, pathItem PathControlItem, pasteboard Pasteboard) bool { rv := objc.Call[bool](p_, objc.Sel("pathControl:shouldDragItem:withPasteboard:"), objc.Ptr(pathControl), objc.Ptr(pathItem), objc.Ptr(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:"), objc.Ptr(pathControl), objc.Ptr(pathComponentCell), objc.Ptr(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:"), objc.Ptr(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:"), objc.Ptr(pathControl), objc.Ptr(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:"), objc.Ptr(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:"), objc.Ptr(pathControl), objc.Ptr(menu)) +} diff --git a/macos/appkit/path_control_item.gen.go b/macos/appkit/path_control_item.gen.go index 4883a930..8377b9ce 100644 --- a/macos/appkit/path_control_item.gen.go +++ b/macos/appkit/path_control_item.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package appkit @@ -19,13 +19,13 @@ type _PathControlItemClass struct { // An interface definition for the [PathControlItem] class. type IPathControlItem interface { objc.IObject - AttributedTitle() foundation.AttributedString - SetAttributedTitle(value foundation.IAttributedString) - URL() foundation.URL Title() string SetTitle(value string) + AttributedTitle() foundation.AttributedString + SetAttributedTitle(value foundation.IAttributedString) Image() Image SetImage(value IImage) + URL() foundation.URL } // [Full Topic] @@ -46,10 +46,6 @@ func (pc _PathControlItemClass) Alloc() PathControlItem { return rv } -func PathControlItem_Alloc() PathControlItem { - return PathControlItemClass.Alloc() -} - func (pc _PathControlItemClass) New() PathControlItem { rv := objc.Call[PathControlItem](pc, objc.Sel("new")) rv.Autorelease() @@ -67,40 +63,32 @@ func (p_ PathControlItem) Init() PathControlItem { // [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/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/1388287-attributedtitle?language=objc -func (p_ PathControlItem) SetAttributedTitle(value foundation.IAttributedString) { - objc.Call[objc.Void](p_, objc.Sel("setAttributedTitle:"), objc.Ptr(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 +// [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] // -// [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:"), objc.Ptr(value)) } // [Full Topic] @@ -117,3 +105,11 @@ func (p_ PathControlItem) Image() Image { func (p_ PathControlItem) SetImage(value IImage) { objc.Call[objc.Void](p_, objc.Sel("setImage:"), objc.Ptr(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 4d8080e4..28f41983 100644 --- a/macos/appkit/pdf_image_rep.gen.go +++ b/macos/appkit/pdf_image_rep.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package appkit @@ -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] @@ -70,10 +70,6 @@ func (pc _PDFImageRepClass) Alloc() PDFImageRep { return rv } -func PDFImageRep_Alloc() PDFImageRep { - return PDFImageRepClass.Alloc() -} - func (pc _PDFImageRepClass) New() PDFImageRep { rv := objc.Call[PDFImageRep](pc, objc.Sel("new")) rv.Autorelease() @@ -105,14 +101,6 @@ 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 @@ -127,3 +115,11 @@ 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 c1ac328c..62a02221 100644 --- a/macos/appkit/pdf_info.gen.go +++ b/macos/appkit/pdf_info.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package appkit @@ -19,17 +19,17 @@ type _PDFInfoClass struct { // An interface definition for the [PDFInfo] class. type IPDFInfo interface { objc.IObject - TagNames() []string - SetTagNames(value []string) - PaperSize() foundation.Size - SetPaperSize(value foundation.Size) IsFileExtensionHidden() bool SetFileExtensionHidden(value bool) + TagNames() []string + SetTagNames(value []string) URL() foundation.URL SetURL(value foundation.IURL) - Attributes() foundation.MutableDictionary + PaperSize() foundation.Size + SetPaperSize(value foundation.Size) 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] @@ -50,10 +50,6 @@ func (pc _PDFInfoClass) Alloc() PDFInfo { return rv } -func PDFInfo_Alloc() PDFInfo { - return PDFInfoClass.Alloc() -} - func (pc _PDFInfoClass) New() PDFInfo { rv := objc.Call[PDFInfo](pc, objc.Sel("new")) rv.Autorelease() @@ -69,36 +65,6 @@ func (p_ PDFInfo) Init() PDFInfo { return rv } -// 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 -func (p_ PDFInfo) TagNames() []string { - rv := objc.Call[[]string](p_, objc.Sel("tagNames")) - return rv -} - -// 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 -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 @@ -114,6 +80,21 @@ 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 +func (p_ PDFInfo) TagNames() []string { + rv := objc.Call[[]string](p_, objc.Sel("tagNames")) + return rv +} + +// 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 +func (p_ PDFInfo) SetTagNames(value []string) { + objc.Call[objc.Void](p_, objc.Sel("setTagNames:"), 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 @@ -129,14 +110,21 @@ func (p_ PDFInfo) SetURL(value foundation.IURL) { objc.Call[objc.Void](p_, objc.Sel("setURL:"), objc.Ptr(value)) } -// A dictionary of additional attributes that describe how to export content as a PDF file. [Full Topic] +// The paper size to use when exporting 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")) +// [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) +} + // 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 @@ -151,3 +139,11 @@ 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 9a54b570..1ef1c5b5 100644 --- a/macos/appkit/pdf_panel.gen.go +++ b/macos/appkit/pdf_panel.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package appkit @@ -21,10 +21,10 @@ type IPDFPanel interface { BeginSheetWithPDFInfoModalForWindowCompletionHandler(pdfInfo IPDFInfo, docWindow IWindow, completionHandler func(arg0 int)) Options() PDFPanelOptions SetOptions(value PDFPanelOptions) - AccessoryController() ViewController - SetAccessoryController(value IViewController) DefaultFileName() string SetDefaultFileName(value string) + AccessoryController() ViewController + SetAccessoryController(value IViewController) } // A Save or Export as PDF panel that’s consistent with the macOS user interface. [Full Topic] @@ -45,10 +45,6 @@ func (pc _PDFPanelClass) Alloc() PDFPanel { return rv } -func PDFPanel_Alloc() PDFPanel { - return PDFPanelClass.Alloc() -} - func (pc _PDFPanelClass) New() PDFPanel { rv := objc.Call[PDFPanel](pc, objc.Sel("new")) rv.Autorelease() @@ -101,21 +97,6 @@ func (p_ PDFPanel) SetOptions(value PDFPanelOptions) { objc.Call[objc.Void](p_, objc.Sel("setOptions:"), 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 -func (p_ PDFPanel) AccessoryController() ViewController { - rv := objc.Call[ViewController](p_, objc.Sel("accessoryController")) - return rv -} - -// 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 -func (p_ PDFPanel) SetAccessoryController(value IViewController) { - objc.Call[objc.Void](p_, objc.Sel("setAccessoryController:"), objc.Ptr(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 @@ -130,3 +111,18 @@ func (p_ PDFPanel) DefaultFileName() string { 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 +func (p_ PDFPanel) AccessoryController() ViewController { + rv := objc.Call[ViewController](p_, objc.Sel("accessoryController")) + return rv +} + +// 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 +func (p_ PDFPanel) SetAccessoryController(value IViewController) { + objc.Call[objc.Void](p_, objc.Sel("setAccessoryController:"), objc.Ptr(value)) +} diff --git a/macos/appkit/persistent_document.gen.go b/macos/appkit/persistent_document.gen.go index f80e0229..e9bad64d 100644 --- a/macos/appkit/persistent_document.gen.go +++ b/macos/appkit/persistent_document.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package appkit @@ -21,6 +21,7 @@ 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 foundation.IError) bool ManagedObjectModel() coredata.ManagedObjectModel ManagedObjectContext() coredata.ManagedObjectContext SetManagedObjectContext(value coredata.IManagedObjectContext) @@ -44,10 +45,6 @@ func (pc _PersistentDocumentClass) Alloc() PersistentDocument { return rv } -func PersistentDocument_Alloc() PersistentDocument { - return PersistentDocumentClass.Alloc() -} - func (pc _PersistentDocumentClass) New() PersistentDocument { rv := objc.Call[PersistentDocument](pc, objc.Sel("new")) rv.Autorelease() @@ -63,6 +60,20 @@ func (p_ PersistentDocument) Init() PersistentDocument { return rv } +func (p_ PersistentDocument) InitForURLWithContentsOfURLOfTypeError(urlOrNil foundation.IURL, contentsURL foundation.IURL, typeName string, outError foundation.IError) PersistentDocument { + rv := objc.Call[PersistentDocument](p_, objc.Sel("initForURL:withContentsOfURL:ofType:error:"), objc.Ptr(urlOrNil), objc.Ptr(contentsURL), typeName, objc.Ptr(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 foundation.IError) PersistentDocument { + instance := PersistentDocumentClass.Alloc().InitForURLWithContentsOfURLOfTypeError(urlOrNil, contentsURL, typeName, outError) + instance.Autorelease() + return instance +} + func (p_ PersistentDocument) InitWithTypeError(typeName string, outError foundation.IError) PersistentDocument { rv := objc.Call[PersistentDocument](p_, objc.Sel("initWithType:error:"), typeName, objc.Ptr(outError)) return rv @@ -77,16 +88,16 @@ func NewPersistentDocumentWithTypeError(typeName string, outError foundation.IEr return instance } -func (p_ PersistentDocument) InitForURLWithContentsOfURLOfTypeError(urlOrNil foundation.IURL, contentsURL foundation.IURL, typeName string, outError foundation.IError) PersistentDocument { - rv := objc.Call[PersistentDocument](p_, objc.Sel("initForURL:withContentsOfURL:ofType:error:"), objc.Ptr(urlOrNil), objc.Ptr(contentsURL), typeName, objc.Ptr(outError)) +func (p_ PersistentDocument) InitWithContentsOfURLOfTypeError(url foundation.IURL, typeName string, outError foundation.IError) PersistentDocument { + rv := objc.Call[PersistentDocument](p_, objc.Sel("initWithContentsOfURL:ofType:error:"), objc.Ptr(url), typeName, objc.Ptr(outError)) return rv } -// Initializes a document with the specified contents, and places the resulting document's file at the designated location. [Full Topic] +// Initializes a document located by a URL of a specified type. [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 foundation.IError) PersistentDocument { - instance := PersistentDocumentClass.Alloc().InitForURLWithContentsOfURLOfTypeError(urlOrNil, contentsURL, typeName, outError) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsdocument/1515097-initwithcontentsofurl?language=objc +func NewPersistentDocumentWithContentsOfURLOfTypeError(url foundation.IURL, typeName string, outError foundation.IError) PersistentDocument { + instance := PersistentDocumentClass.Alloc().InitWithContentsOfURLOfTypeError(url, typeName, outError) instance.Autorelease() return instance } @@ -99,6 +110,14 @@ 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 foundation.IError) bool { + rv := objc.Call[bool](p_, objc.Sel("configurePersistentStoreCoordinatorForURL:ofType:modelConfiguration:storeOptions:error:"), objc.Ptr(url), fileType, configuration, storeOptions, objc.Ptr(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 ceb284fb..a053ca03 100644 --- a/macos/appkit/picker_touch_bar_item.gen.go +++ b/macos/appkit/picker_touch_bar_item.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package appkit @@ -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 - SetImageAtIndex(image IImage, index int) LabelAtIndex(index int) string - SetEnabledAtIndex(enabled bool, index int) + SetImageAtIndex(image IImage, index int) + SetLabelAtIndex(label string, index int) IsEnabledAtIndex(index int) bool - CollapsedRepresentationImage() Image - SetCollapsedRepresentationImage(value IImage) + SetEnabledAtIndex(enabled bool, index int) + IsEnabled() bool + SetEnabled(value bool) + ControlRepresentation() PickerTouchBarItemControlRepresentation + SetControlRepresentation(value PickerTouchBarItemControlRepresentation) Target() objc.Object SetTarget(value objc.IObject) - SetCustomizationLabel(value string) Action() objc.Selector SetAction(value objc.Selector) CollapsedRepresentationLabel() string SetCollapsedRepresentationLabel(value string) - SelectionColor() Color - SetSelectionColor(value IColor) + SelectedIndex() int + SetSelectedIndex(value int) + SetCustomizationLabel(value string) SelectionMode() PickerTouchBarItemSelectionMode SetSelectionMode(value PickerTouchBarItemSelectionMode) + CollapsedRepresentationImage() Image + SetCollapsedRepresentationImage(value IImage) + SelectionColor() Color + SetSelectionColor(value IColor) 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,13 +72,21 @@ func PickerTouchBarItem_PickerTouchBarItemWithIdentifierLabelsSelectionModeTarge return PickerTouchBarItemClass.PickerTouchBarItemWithIdentifierLabelsSelectionModeTargetAction(identifier, labels, selectionMode, target, action) } -func (pc _PickerTouchBarItemClass) Alloc() PickerTouchBarItem { - rv := objc.Call[PickerTouchBarItem](pc, objc.Sel("alloc")) +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 } -func PickerTouchBarItem_Alloc() PickerTouchBarItem { - return PickerTouchBarItemClass.Alloc() +// [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 } func (pc _PickerTouchBarItemClass) New() PickerTouchBarItem { @@ -112,16 +120,17 @@ func NewPickerTouchBarItemWithIdentifier(identifier TouchBarItemIdentifier) Pick // [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]: 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] // -// [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) +// [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 } @@ -134,9 +143,16 @@ func (p_ PickerTouchBarItem) SetImageAtIndex(image IImage, index int) { // [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/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) return rv } @@ -149,25 +165,32 @@ func (p_ PickerTouchBarItem) SetEnabledAtIndex(enabled bool, index int) { // [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/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/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/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")) 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:"), objc.Ptr(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] @@ -185,13 +208,6 @@ 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 @@ -224,17 +240,24 @@ func (p_ PickerTouchBarItem) SetCollapsedRepresentationLabel(value string) { // [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/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/3237206-selectioncolor?language=objc -func (p_ PickerTouchBarItem) SetSelectionColor(value IColor) { - objc.Call[objc.Void](p_, objc.Sel("setSelectionColor:"), objc.Ptr(value)) +// [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] @@ -254,60 +277,45 @@ func (p_ PickerTouchBarItem) SetSelectionMode(value PickerTouchBarItemSelectionM // [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")) - 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] -// -// [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:"), objc.Ptr(value)) } // [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/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/3353055-enabled?language=objc -func (p_ PickerTouchBarItem) SetEnabled(value bool) { - objc.Call[objc.Void](p_, objc.Sel("setEnabled:"), 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:"), objc.Ptr(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")) +// [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/3237205-selectedindex?language=objc -func (p_ PickerTouchBarItem) SetSelectedIndex(value int) { - objc.Call[objc.Void](p_, objc.Sel("setSelectedIndex:"), 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) } diff --git a/macos/appkit/pict_image_rep.gen.go b/macos/appkit/pict_image_rep.gen.go index fc3c20a4..71670635 100644 --- a/macos/appkit/pict_image_rep.gen.go +++ b/macos/appkit/pict_image_rep.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package appkit @@ -36,6 +36,18 @@ 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 @@ -50,27 +62,11 @@ 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 } -func PICTImageRep_Alloc() PICTImageRep { - return PICTImageRepClass.Alloc() -} - func (pc _PICTImageRepClass) New() PICTImageRep { rv := objc.Call[PICTImageRep](pc, objc.Sel("new")) rv.Autorelease() diff --git a/macos/appkit/pop_up_button.gen.go b/macos/appkit/pop_up_button.gen.go index fa9186ee..06bbeaaf 100644 --- a/macos/appkit/pop_up_button.gen.go +++ b/macos/appkit/pop_up_button.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package appkit @@ -19,39 +19,39 @@ type _PopUpButtonClass struct { // An interface definition for the [PopUpButton] class. type IPopUpButton interface { IButton - ItemAtIndex(index int) MenuItem - IndexOfItemWithTag(tag int) int - InsertItemWithTitleAtIndex(title string, index int) - RemoveAllItems() + IndexOfItemWithTargetAndAction(target objc.IObject, actionSelector objc.Selector) int + ItemWithTitle(title string) MenuItem RemoveItemAtIndex(index int) RemoveItemWithTitle(title string) + IndexOfItemWithTitle(title string) int + IndexOfItemWithTag(tag int) int + AddItemsWithTitles(itemTitles []string) + ItemTitleAtIndex(index int) string + IndexOfItem(item IMenuItem) int + RemoveAllItems() + SynchronizeTitleAndSelectedItem() SelectItemWithTag(tag int) bool + ItemAtIndex(index int) MenuItem + IndexOfItemWithRepresentedObject(obj objc.IObject) int AddItemWithTitle(title string) SelectItemWithTitle(title string) - ItemWithTitle(title string) MenuItem - IndexOfItemWithRepresentedObject(obj objc.IObject) int - ItemTitleAtIndex(index int) string - SelectItem(item IMenuItem) - 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 + InsertItemWithTitleAtIndex(title string, index int) + SelectItem(item IMenuItem) + ItemTitles() []string + TitleOfSelectedItem() string + PreferredEdge() foundation.RectEdge + SetPreferredEdge(value foundation.RectEdge) + NumberOfItems() int ItemArray() []MenuItem - AutoenablesItems() bool - SetAutoenablesItems(value bool) PullsDown() bool SetPullsDown(value bool) + IndexOfSelectedItem() int + AutoenablesItems() bool + SetAutoenablesItems(value bool) + SelectedItem() MenuItem 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] @@ -86,10 +86,6 @@ func (pc _PopUpButtonClass) Alloc() PopUpButton { return rv } -func PopUpButton_Alloc() PopUpButton { - return PopUpButtonClass.Alloc() -} - func (pc _PopUpButtonClass) New() PopUpButton { rv := objc.Call[PopUpButton](pc, objc.Sel("new")) rv.Autorelease() @@ -105,16 +101,16 @@ func (p_ PopUpButton) Init() PopUpButton { return rv } -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) +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, objc.Ptr(image), target, action) return rv } -// Creates a standard checkbox with the title you specify. [Full Topic] +// Creates a standard push button with a title and image. [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) +// [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) } func (pc _PopUpButtonClass) ButtonWithTitleTargetAction(title string, target objc.IObject, action objc.Selector) PopUpButton { @@ -129,6 +125,18 @@ 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:"), objc.Ptr(image), target, action) return rv @@ -167,36 +175,22 @@ func NewPopUpButtonWithFrame(frameRect foundation.Rect) PopUpButton { return instance } -// Returns the menu item at the specified index. [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/1535860-itematindex?language=objc -func (p_ PopUpButton) ItemAtIndex(index int) MenuItem { - rv := objc.Call[MenuItem](p_, objc.Sel("itemAtIndex:"), index) +// [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 index of the menu item with the specified tag. [Full Topic] +// Returns the menu item with the specified title. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nspopupbutton/1534140-indexofitemwithtag?language=objc -func (p_ PopUpButton) IndexOfItemWithTag(tag int) int { - rv := objc.Call[int](p_, objc.Sel("indexOfItemWithTag:"), tag) +// [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] -// -// [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] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nspopupbutton/1534430-removeallitems?language=objc -func (p_ PopUpButton) RemoveAllItems() { - objc.Call[objc.Void](p_, objc.Sel("removeAllItems")) -} - // Removes the item at the specified index. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/appkit/nspopupbutton/1525241-removeitematindex?language=objc @@ -211,72 +205,95 @@ 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] +// Returns the index of the item with the specified title. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nspopupbutton/1528181-selectitemwithtag?language=objc -func (p_ PopUpButton) SelectItemWithTag(tag int) bool { - rv := objc.Call[bool](p_, objc.Sel("selectItemWithTag:"), tag) +// [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 } -// Adds an item with the specified title to the end of the menu. [Full Topic] +// Returns the index of the menu item with the specified tag. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nspopupbutton/1529500-additemwithtitle?language=objc -func (p_ PopUpButton) AddItemWithTitle(title string) { - objc.Call[objc.Void](p_, objc.Sel("addItemWithTitle:"), title) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nspopupbutton/1534140-indexofitemwithtag?language=objc +func (p_ PopUpButton) IndexOfItemWithTag(tag int) int { + rv := objc.Call[int](p_, objc.Sel("indexOfItemWithTag:"), tag) + return rv } -// 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/nspopupbutton/1525666-selectitemwithtitle?language=objc -func (p_ PopUpButton) SelectItemWithTitle(title string) { - objc.Call[objc.Void](p_, objc.Sel("selectItemWithTitle:"), title) +// [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 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/nspopupbutton/1524680-itemwithtitle?language=objc -func (p_ PopUpButton) ItemWithTitle(title string) MenuItem { - rv := objc.Call[MenuItem](p_, objc.Sel("itemWithTitle:"), title) +// [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 menu item that holds the specified represented object. [Full Topic] +// Returns the index of the specified menu item. [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) +// [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:"), objc.Ptr(item)) return rv } -// Returns the title of the item at the specified index. [Full Topic] +// Removes all items in the receiver’s item menu. [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) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nspopupbutton/1534430-removeallitems?language=objc +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] +// +// [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")) +} + +// Selects the menu item with the specified tag. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/appkit/nspopupbutton/1528181-selectitemwithtag?language=objc +func (p_ PopUpButton) SelectItemWithTag(tag int) bool { + rv := objc.Call[bool](p_, objc.Sel("selectItemWithTag:"), tag) return rv } -// Selects the specified menu item. [Full Topic] +// Returns the menu item at the specified index. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nspopupbutton/1527162-selectitem?language=objc -func (p_ PopUpButton) SelectItem(item IMenuItem) { - objc.Call[objc.Void](p_, objc.Sel("selectItem:"), objc.Ptr(item)) +// [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 specified menu item. [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/1529708-indexofitem?language=objc -func (p_ PopUpButton) IndexOfItem(item IMenuItem) int { - rv := objc.Call[int](p_, objc.Sel("indexOfItem:"), objc.Ptr(item)) +// [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 multiple items to the end of the 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/nspopupbutton/1532518-additemswithtitles?language=objc -func (p_ PopUpButton) AddItemsWithTitles(itemTitles []string) { - objc.Call[objc.Void](p_, objc.Sel("addItemsWithTitles:"), itemTitles) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nspopupbutton/1529500-additemwithtitle?language=objc +func (p_ PopUpButton) AddItemWithTitle(title string) { + objc.Call[objc.Void](p_, objc.Sel("addItemWithTitle:"), title) +} + +// Selects the item with the specified title. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/appkit/nspopupbutton/1525666-selectitemwithtitle?language=objc +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] @@ -286,66 +303,65 @@ func (p_ PopUpButton) SelectItemAtIndex(index int) { objc.Call[objc.Void](p_, objc.Sel("selectItemAtIndex:"), index) } -// Ensures that the item being displayed by the receiver agrees with the selected item. [Full Topic] +// Inserts an item at the specified position in the menu. [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/1533750-insertitemwithtitle?language=objc +func (p_ PopUpButton) InsertItemWithTitleAtIndex(title string, index int) { + objc.Call[objc.Void](p_, objc.Sel("insertItemWithTitle:atIndex:"), title, index) } -// Returns the index of the menu item with the specified target and action. [Full Topic] +// Selects the specified menu item. [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 +// [Full Topic]: https://developer.apple.com/documentation/appkit/nspopupbutton/1527162-selectitem?language=objc +func (p_ PopUpButton) SelectItem(item IMenuItem) { + objc.Call[objc.Void](p_, objc.Sel("selectItem:"), objc.Ptr(item)) } -// Returns the index of the item with the specified title. [Full Topic] +// 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/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/1529271-itemtitles?language=objc +func (p_ PopUpButton) ItemTitles() []string { + rv := objc.Call[[]string](p_, objc.Sel("itemTitles")) return rv } -// The index of the item that was last selected by the user. [Full Topic] +// The title of the item that was last selected by the user. [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/1534038-titleofselecteditem?language=objc +func (p_ PopUpButton) TitleOfSelectedItem() string { + rv := objc.Call[string](p_, objc.Sel("titleOfSelectedItem")) return rv } -// The menu item that was last selected by the user. [Full Topic] +// 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/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/1535345-preferrededge?language=objc +func (p_ PopUpButton) PreferredEdge() foundation.RectEdge { + rv := objc.Call[foundation.RectEdge](p_, objc.Sel("preferredEdge")) return rv } -// The array of menu item objects associated with the button. [Full Topic] +// 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/1535361-itemarray?language=objc -func (p_ PopUpButton) ItemArray() []MenuItem { - rv := objc.Call[[]MenuItem](p_, objc.Sel("itemArray")) - return rv +// [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) } -// A Boolean value indicating whether the button enables and disables its items every time a user event occurs. [Full Topic] +// The number of items in the menu. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nspopupbutton/1530543-autoenablesitems?language=objc -func (p_ PopUpButton) AutoenablesItems() bool { - rv := objc.Call[bool](p_, objc.Sel("autoenablesItems")) +// [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 } -// A Boolean value indicating whether the button enables and disables its items every time a user event occurs. [Full Topic] +// The array of menu item objects associated with the button. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nspopupbutton/1530543-autoenablesitems?language=objc -func (p_ PopUpButton) SetAutoenablesItems(value bool) { - objc.Call[objc.Void](p_, objc.Sel("setAutoenablesItems:"), value) +// [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 } // A Boolean value indicating whether the button displays a pull-down or pop-up menu. [Full Topic] @@ -363,57 +379,49 @@ func (p_ PopUpButton) SetPullsDown(value bool) { objc.Call[objc.Void](p_, objc.Sel("setPullsDown:"), value) } -// The last item in the 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/1535371-lastitem?language=objc -func (p_ PopUpButton) LastItem() MenuItem { - rv := objc.Call[MenuItem](p_, objc.Sel("lastItem")) +// [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 } -// The number of items in the menu. [Full Topic] +// A Boolean value indicating whether the button enables and disables its items every time a user event occurs. [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/1530543-autoenablesitems?language=objc +func (p_ PopUpButton) AutoenablesItems() bool { + rv := objc.Call[bool](p_, objc.Sel("autoenablesItems")) return rv } -// The tag of the menu item that was last selected by the user. [Full Topic] +// A Boolean value indicating whether the button enables and disables its items every time a user event occurs. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nspopupbutton/1577134-selectedtag?language=objc -func (p_ PopUpButton) SelectedTag() int { - rv := objc.Call[int](p_, objc.Sel("selectedTag")) - return rv +// [Full Topic]: https://developer.apple.com/documentation/appkit/nspopupbutton/1530543-autoenablesitems?language=objc +func (p_ PopUpButton) SetAutoenablesItems(value bool) { + objc.Call[objc.Void](p_, objc.Sel("setAutoenablesItems:"), value) } -// The title of the item that was last selected by the user. [Full Topic] +// The menu 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")) +// [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 } -// An array of strings corresponding to the titles of the items in the menu. [Full Topic] +// The last item 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")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nspopupbutton/1535371-lastitem?language=objc +func (p_ PopUpButton) LastItem() MenuItem { + rv := objc.Call[MenuItem](p_, objc.Sel("lastItem")) return rv } -// The edge of the button on which to display the menu when screen space is constrained. [Full Topic] +// The tag of the menu item that was last selected by the user. [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")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nspopupbutton/1577134-selectedtag?language=objc +func (p_ PopUpButton) SelectedTag() int { + rv := objc.Call[int](p_, objc.Sel("selectedTag")) 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 e47d96ae..450e2826 100644 --- a/macos/appkit/pop_up_button_cell.gen.go +++ b/macos/appkit/pop_up_button_cell.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package appkit @@ -19,47 +19,47 @@ type _PopUpButtonCellClass struct { // An interface definition for the [PopUpButtonCell] class. type IPopUpButtonCell interface { IMenuItemCell - ItemAtIndex(index int) MenuItem - IndexOfItemWithTag(tag int) int + SelectItemAtIndex(index int) InsertItemWithTitleAtIndex(title string, index int) - RemoveAllItems() - RemoveItemAtIndex(index int) + AddItemWithTitle(title string) + IndexOfItemWithTag(tag int) int RemoveItemWithTitle(title string) + IndexOfItem(item IMenuItem) int + AttachPopUpWithFrameInView(cellFrame foundation.Rect, controlView IView) + RemoveAllItems() SelectItemWithTag(tag int) bool - AddItemWithTitle(title string) - SelectItemWithTitle(title string) - DismissPopUp() - ItemWithTitle(title string) MenuItem IndexOfItemWithRepresentedObject(obj objc.IObject) int - ItemTitleAtIndex(index int) string + SynchronizeTitleAndSelectedItem() + ItemWithTitle(title string) MenuItem + AddItemsWithTitles(itemTitles []string) SelectItem(item IMenuItem) - IndexOfItem(item IMenuItem) int PerformClickWithFrameInView(frame foundation.Rect, controlView IView) - AddItemsWithTitles(itemTitles []string) - SelectItemAtIndex(index int) - SynchronizeTitleAndSelectedItem() + RemoveItemAtIndex(index int) + SelectItemWithTitle(title string) + ItemTitleAtIndex(index int) string + ItemAtIndex(index int) MenuItem 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 - TitleOfSelectedItem() string ItemTitles() []string + AltersStateOfSelectedItem() bool + SetAltersStateOfSelectedItem(value bool) + ItemArray() []MenuItem + TitleOfSelectedItem() string + IndexOfSelectedItem() int PreferredEdge() foundation.RectEdge SetPreferredEdge(value foundation.RectEdge) - UsesItemFromMenu() bool - SetUsesItemFromMenu(value bool) + ArrowPosition() PopUpArrowPosition + SetArrowPosition(value PopUpArrowPosition) + LastItem() MenuItem } // 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] @@ -94,10 +94,6 @@ func (pc _PopUpButtonCellClass) Alloc() PopUpButtonCell { return rv } -func PopUpButtonCell_Alloc() PopUpButtonCell { - return PopUpButtonCellClass.Alloc() -} - func (pc _PopUpButtonCellClass) New() PopUpButtonCell { rv := objc.Call[PopUpButtonCell](pc, objc.Sel("new")) rv.Autorelease() @@ -141,20 +137,11 @@ func NewPopUpButtonCellImageCell(image IImage) PopUpButtonCell { return instance } -// Returns the menu item at the specified index. [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 -} - -// Returns the index of the menu item with the specified tag. [Full Topic] +// Selects the item in the menu 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/1534855-selectitematindex?language=objc +func (p_ PopUpButtonCell) SelectItemAtIndex(index int) { + objc.Call[objc.Void](p_, objc.Sel("selectItemAtIndex:"), index) } // Inserts an item at the specified position in the menu. [Full Topic] @@ -164,18 +151,19 @@ func (p_ PopUpButtonCell) 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] +// Adds an item with the specified title to the end of the menu. [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/1526296-additemwithtitle?language=objc +func (p_ PopUpButtonCell) AddItemWithTitle(title string) { + objc.Call[objc.Void](p_, objc.Sel("addItemWithTitle:"), title) } -// Removes the item at the specified index. [Full Topic] +// Returns the index of the menu item with the specified tag. [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) +// [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 } // Removes the item with the specified title from the menu. [Full Topic] @@ -185,40 +173,33 @@ func (p_ PopUpButtonCell) RemoveItemWithTitle(title string) { objc.Call[objc.Void](p_, objc.Sel("removeItemWithTitle:"), title) } -// Selects the menu item with the specified tag. [Full Topic] +// Returns the index of the specified menu item. [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/1532397-indexofitem?language=objc +func (p_ PopUpButtonCell) IndexOfItem(item IMenuItem) int { + rv := objc.Call[int](p_, objc.Sel("indexOfItem:"), objc.Ptr(item)) 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/nspopupbuttoncell/1526296-additemwithtitle?language=objc -func (p_ PopUpButtonCell) AddItemWithTitle(title string) { - objc.Call[objc.Void](p_, objc.Sel("addItemWithTitle:"), title) -} - -// Selects the item with the specified title. [Full Topic] +// Sets up the receiver to display a 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/1531648-attachpopupwithframe?language=objc +func (p_ PopUpButtonCell) AttachPopUpWithFrameInView(cellFrame foundation.Rect, controlView IView) { + objc.Call[objc.Void](p_, objc.Sel("attachPopUpWithFrame:inView:"), cellFrame, objc.Ptr(controlView)) } -// Dismisses the pop-up button’s menu by ordering its window out. [Full Topic] +// Removes all items in the receiver’s item menu. [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")) +// [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 menu item with the specified title. [Full Topic] +// Selects the menu item with the specified tag. [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/1534888-selectitemwithtag?language=objc +func (p_ PopUpButtonCell) SelectItemWithTag(tag int) bool { + rv := objc.Call[bool](p_, objc.Sel("selectItemWithTag:"), tag) return rv } @@ -230,14 +211,28 @@ func (p_ PopUpButtonCell) IndexOfItemWithRepresentedObject(obj objc.IObject) int return rv } -// Returns the title of the 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/1534248-itemtitleatindex?language=objc -func (p_ PopUpButtonCell) ItemTitleAtIndex(index int) string { - rv := objc.Call[string](p_, objc.Sel("itemTitleAtIndex:"), index) +// [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] +// +// [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 } +// 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 @@ -245,14 +240,6 @@ func (p_ PopUpButtonCell) SelectItem(item IMenuItem) { objc.Call[objc.Void](p_, objc.Sel("selectItem:"), objc.Ptr(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:"), objc.Ptr(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 @@ -260,25 +247,34 @@ func (p_ PopUpButtonCell) PerformClickWithFrameInView(frame foundation.Rect, con objc.Call[objc.Void](p_, objc.Sel("performClickWithFrame:inView:"), frame, objc.Ptr(controlView)) } -// Adds multiple items to the end of the menu. [Full Topic] +// Removes the item at the specified index. [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) +// [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 in the menu at the specified index. [Full Topic] +// Selects the item with the specified title. [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/1534289-selectitemwithtitle?language=objc +func (p_ PopUpButtonCell) SelectItemWithTitle(title string) { + objc.Call[objc.Void](p_, objc.Sel("selectItemWithTitle:"), title) } -// Synchronizes the pop-up button’s displayed item with the currently selected menu item. [Full Topic] +// Returns the title of the item at the specified index. [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")) +// [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 +} + +// Returns the menu item at the specified index. [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 } // Returns the index of the menu item with the specified target and action. [Full Topic] @@ -289,6 +285,13 @@ 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 @@ -297,34 +300,19 @@ func (p_ PopUpButtonCell) IndexOfItemWithTitle(title string) int { return rv } -// Sets up the receiver to display a 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, objc.Ptr(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] +// 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/1528446-altersstateofselecteditem?language=objc -func (p_ PopUpButtonCell) AltersStateOfSelectedItem() bool { - rv := objc.Call[bool](p_, objc.Sel("altersStateOfSelectedItem")) +// [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 } -// 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) SetAltersStateOfSelectedItem(value bool) { - objc.Call[objc.Void](p_, objc.Sel("setAltersStateOfSelectedItem:"), value) -} - -// The index of the item last selected by the user. [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/1534937-indexofselecteditem?language=objc -func (p_ PopUpButtonCell) IndexOfSelectedItem() int { - rv := objc.Call[int](p_, objc.Sel("indexOfSelectedItem")) - 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) } // The menu item last selected by the user. [Full Topic] @@ -335,72 +323,72 @@ func (p_ PopUpButtonCell) SelectedItem() MenuItem { return rv } -// 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] +// 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) SetArrowPosition(value PopUpArrowPosition) { - objc.Call[objc.Void](p_, objc.Sel("setArrowPosition:"), value) +// [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) } -// An array of NSMenuItem objects that represent the items 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/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/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 button automatically enables and disables its items every time a user event occurs. [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/1530889-autoenablesitems?language=objc -func (p_ PopUpButtonCell) AutoenablesItems() bool { - rv := objc.Call[bool](p_, objc.Sel("autoenablesItems")) - 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 button automatically enables and disables its items every time a user event occurs. [Full Topic] +// The number of items in the menu. [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/1533633-numberofitems?language=objc +func (p_ PopUpButtonCell) NumberOfItems() int { + rv := objc.Call[int](p_, objc.Sel("numberOfItems")) + return rv } -// A Boolean value that indicates the behavior of the button’s menu. [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/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/1532067-itemtitles?language=objc +func (p_ PopUpButtonCell) ItemTitles() []string { + rv := objc.Call[[]string](p_, objc.Sel("itemTitles")) return rv } -// A Boolean value that indicates the behavior of the button’s menu. [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/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/1528446-altersstateofselecteditem?language=objc +func (p_ PopUpButtonCell) AltersStateOfSelectedItem() bool { + rv := objc.Call[bool](p_, objc.Sel("altersStateOfSelectedItem")) + return rv } -// The last item in the menu. [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/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/1528446-altersstateofselecteditem?language=objc +func (p_ PopUpButtonCell) SetAltersStateOfSelectedItem(value bool) { + objc.Call[objc.Void](p_, objc.Sel("setAltersStateOfSelectedItem:"), value) } -// The number of items in the 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/1533633-numberofitems?language=objc -func (p_ PopUpButtonCell) NumberOfItems() int { - rv := objc.Call[int](p_, objc.Sel("numberOfItems")) +// [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 } @@ -412,11 +400,11 @@ func (p_ PopUpButtonCell) TitleOfSelectedItem() string { return rv } -// An array of NSString objects containing the titles of every item in the menu. [Full Topic] +// The index of the item last selected by the user. [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/1534937-indexofselecteditem?language=objc +func (p_ PopUpButtonCell) IndexOfSelectedItem() int { + rv := objc.Call[int](p_, objc.Sel("indexOfSelectedItem")) return rv } @@ -435,17 +423,25 @@ func (p_ PopUpButtonCell) SetPreferredEdge(value foundation.RectEdge) { objc.Call[objc.Void](p_, objc.Sel("setPreferredEdge:"), value) } -// 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) +} + +// The last item in the menu. [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 } diff --git a/macos/appkit/popover.gen.go b/macos/appkit/popover.gen.go index 5023db53..761f992f 100644 --- a/macos/appkit/popover.gen.go +++ b/macos/appkit/popover.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package appkit @@ -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() PopoverDelegateWrapper + Delegate() PopoverDelegateObject SetDelegate(value PPopoverDelegate) SetDelegateObject(valueObject objc.IObject) - ContentSize() foundation.Size - SetContentSize(value foundation.Size) - ContentViewController() ViewController - SetContentViewController(value IViewController) PositioningRect() foundation.Rect SetPositioningRect(value foundation.Rect) - Animates() bool - SetAnimates(value bool) 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 } // A means to display additional content related to existing content on the screen. [Full Topic] @@ -65,10 +65,6 @@ func (pc _PopoverClass) Alloc() Popover { return rv } -func Popover_Alloc() Popover { - return PopoverClass.Alloc() -} - func (pc _PopoverClass) New() Popover { rv := objc.Call[Popover](pc, objc.Sel("new")) rv.Autorelease() @@ -101,34 +97,65 @@ func (p_ Popover) PerformClose(sender objc.IObject) objc.Object { 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] +// The delegate 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) +// [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 display state of the popover. [Full Topic] +// The delegate of the popover. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nspopover/1535120-shown?language=objc -func (p_ Popover) IsShown() bool { - rv := objc.Call[bool](p_, objc.Sel("isShown")) +// [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:"), objc.Ptr(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 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) SetPositioningRect(value foundation.Rect) { + objc.Call[objc.Void](p_, objc.Sel("setPositioningRect:"), 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:"), objc.Ptr(value)) +} + +// The display state of the popover. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/appkit/nspopover/1535120-shown?language=objc +func (p_ Popover) IsShown() bool { + rv := objc.Call[bool](p_, objc.Sel("isShown")) return rv } @@ -140,28 +167,34 @@ func (p_ Popover) IsDetached() bool { return rv } -// The delegate of the popover. [Full Topic] +// Specifies the behavior of the popover. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nspopover/1526708-delegate?language=objc -func (p_ Popover) Delegate() PopoverDelegateWrapper { - rv := objc.Call[PopoverDelegateWrapper](p_, objc.Sel("delegate")) +// [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 delegate of the popover. [Full Topic] +// Specifies the behavior 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) +// [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 delegate of the popover. [Full Topic] +// Specifies if the popover is to be animated. [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:"), objc.Ptr(valueObject)) +// [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 content size of the popover. [Full Topic] @@ -194,47 +227,10 @@ func (p_ Popover) SetContentViewController(value IViewController) { objc.Call[objc.Void](p_, objc.Sel("setContentViewController:"), objc.Ptr(value)) } -// 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) -} - -// 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] +// The appearance that will be used when the popover is displayed onscreen. [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/1526863-effectiveappearance?language=objc +func (p_ Popover) EffectiveAppearance() Appearance { + rv := objc.Call[Appearance](p_, objc.Sel("effectiveAppearance")) 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:"), objc.Ptr(value)) -} diff --git a/macos/appkit/popover_delegate.gen.go b/macos/appkit/popover_delegate.gen.go index 30cf5b03..0d9a2a0c 100644 --- a/macos/appkit/popover_delegate.gen.go +++ b/macos/appkit/popover_delegate.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package appkit @@ -12,50 +12,84 @@ import ( // [Full Topic]: https://developer.apple.com/documentation/appkit/nspopoverdelegate?language=objc type PPopoverDelegate interface { // optional - PopoverWillShow(notification foundation.Notification) - HasPopoverWillShow() bool + PopoverDidDetach(popover Popover) + HasPopoverDidDetach() bool // optional - PopoverWillClose(notification foundation.Notification) - HasPopoverWillClose() bool + PopoverShouldClose(popover Popover) bool + HasPopoverShouldClose() bool // optional - PopoverDidShow(notification foundation.Notification) - HasPopoverDidShow() bool + PopoverWillShow(notification foundation.Notification) + HasPopoverWillShow() bool // optional - PopoverDidDetach(popover Popover) - HasPopoverDidDetach() bool + PopoverDidShow(notification foundation.Notification) + HasPopoverDidShow() bool // optional - DetachableWindowForPopover(popover Popover) IWindow - HasDetachableWindowForPopover() bool + PopoverShouldDetach(popover Popover) bool + HasPopoverShouldDetach() bool // optional PopoverDidClose(notification foundation.Notification) HasPopoverDidClose() bool // optional - PopoverShouldClose(popover Popover) bool - HasPopoverShouldClose() bool + DetachableWindowForPopover(popover Popover) Window + HasDetachableWindowForPopover() bool // optional - PopoverShouldDetach(popover Popover) bool - HasPopoverShouldDetach() bool + PopoverWillClose(notification foundation.Notification) + HasPopoverWillClose() bool } // A delegate implementation builder for the [PPopoverDelegate] protocol. type PopoverDelegate struct { - _PopoverWillShow func(notification foundation.Notification) - _PopoverWillClose func(notification foundation.Notification) - _PopoverDidShow func(notification foundation.Notification) _PopoverDidDetach func(popover Popover) - _DetachableWindowForPopover func(popover Popover) IWindow - _PopoverDidClose func(notification foundation.Notification) _PopoverShouldClose func(popover Popover) bool + _PopoverWillShow func(notification foundation.Notification) + _PopoverDidShow func(notification foundation.Notification) _PopoverShouldDetach func(popover Popover) bool + _PopoverDidClose func(notification foundation.Notification) + _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 +} + +// 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 } @@ -73,23 +107,6 @@ 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 } @@ -107,39 +124,22 @@ func (di *PopoverDelegate) SetPopoverDidShow(f func(notification foundation.Noti func (di *PopoverDelegate) PopoverDidShow(notification foundation.Notification) { di._PopoverDidShow(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) HasDetachableWindowForPopover() bool { - return di._DetachableWindowForPopover != nil +func (di *PopoverDelegate) HasPopoverShouldDetach() bool { + return di._PopoverShouldDetach != nil } -// Detaches the popover creating a window containing the content. [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/1534822-detachablewindowforpopover?language=objc -func (di *PopoverDelegate) SetDetachableWindowForPopover(f func(popover Popover) IWindow) { - di._DetachableWindowForPopover = 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 } -// Detaches the popover creating a window containing the content. [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/1534822-detachablewindowforpopover?language=objc -func (di *PopoverDelegate) DetachableWindowForPopover(popover Popover) IWindow { - return di._DetachableWindowForPopover(popover) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nspopoverdelegate/1529911-popovershoulddetach?language=objc +func (di *PopoverDelegate) PopoverShouldDetach(popover Popover) bool { + return di._PopoverShouldDetach(popover) } func (di *PopoverDelegate) HasPopoverDidClose() bool { return di._PopoverDidClose != nil @@ -158,133 +158,136 @@ func (di *PopoverDelegate) SetPopoverDidClose(f func(notification foundation.Not func (di *PopoverDelegate) PopoverDidClose(notification foundation.Notification) { di._PopoverDidClose(notification) } -func (di *PopoverDelegate) HasPopoverShouldClose() bool { - return di._PopoverShouldClose != nil +func (di *PopoverDelegate) HasDetachableWindowForPopover() bool { + return di._DetachableWindowForPopover != nil } -// Allows a delegate to override a close request. [Full Topic] +// Detaches the popover creating a window containing the content. [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 +// [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 } -// Allows a delegate to override a close request. [Full Topic] +// Detaches the popover creating a window containing the content. [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) +// [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) HasPopoverShouldDetach() bool { - return di._PopoverShouldDetach != nil +func (di *PopoverDelegate) HasPopoverWillClose() bool { + return di._PopoverWillClose != nil } -// Returns a Boolean value that indicates whether a popover should detach from its positioning view and become a separate window. [Full Topic] +// Invoked when the popover is about to close. [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/1535119-popoverwillclose?language=objc +func (di *PopoverDelegate) SetPopoverWillClose(f func(notification foundation.Notification)) { + di._PopoverWillClose = f } -// Returns a Boolean value that indicates whether a popover should detach from its positioning view and become a separate window. [Full Topic] +// Invoked when the popover is about to close. [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/1535119-popoverwillclose?language=objc +func (di *PopoverDelegate) PopoverWillClose(notification foundation.Notification) { + di._PopoverWillClose(notification) } -// A concrete type wrapper for the [PPopoverDelegate] protocol. -type PopoverDelegateWrapper struct { +// ensure impl type implements protocol interface +var _ PPopoverDelegate = (*PopoverDelegateObject)(nil) + +// A concrete type for the [PPopoverDelegate] protocol. +type PopoverDelegateObject struct { objc.Object } -func (p_ PopoverDelegateWrapper) HasPopoverWillShow() bool { - return p_.RespondsToSelector(objc.Sel("popoverWillShow:")) +func (p_ PopoverDelegateObject) HasPopoverDidDetach() bool { + return p_.RespondsToSelector(objc.Sel("popoverDidDetach:")) } -// Invoked when the popover will show. [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/1532556-popoverwillshow?language=objc -func (p_ PopoverDelegateWrapper) PopoverWillShow(notification foundation.INotification) { - objc.Call[objc.Void](p_, objc.Sel("popoverWillShow:"), objc.Ptr(notification)) +// [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:"), objc.Ptr(popover)) } -func (p_ PopoverDelegateWrapper) HasPopoverWillClose() bool { - return p_.RespondsToSelector(objc.Sel("popoverWillClose:")) +func (p_ PopoverDelegateObject) HasPopoverShouldClose() bool { + return p_.RespondsToSelector(objc.Sel("popoverShouldClose:")) } -// Invoked when the popover is about to close. [Full Topic] +// Allows a delegate to override a close request. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nspopoverdelegate/1535119-popoverwillclose?language=objc -func (p_ PopoverDelegateWrapper) PopoverWillClose(notification foundation.INotification) { - objc.Call[objc.Void](p_, objc.Sel("popoverWillClose:"), objc.Ptr(notification)) +// [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:"), objc.Ptr(popover)) + return rv } -func (p_ PopoverDelegateWrapper) HasPopoverDidShow() bool { - return p_.RespondsToSelector(objc.Sel("popoverDidShow:")) +func (p_ PopoverDelegateObject) HasPopoverWillShow() bool { + return p_.RespondsToSelector(objc.Sel("popoverWillShow:")) } -// Invoked when the popover has been shown. [Full Topic] +// Invoked when the popover will show. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nspopoverdelegate/1533573-popoverdidshow?language=objc -func (p_ PopoverDelegateWrapper) PopoverDidShow(notification foundation.INotification) { - objc.Call[objc.Void](p_, objc.Sel("popoverDidShow:"), objc.Ptr(notification)) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nspopoverdelegate/1532556-popoverwillshow?language=objc +func (p_ PopoverDelegateObject) PopoverWillShow(notification foundation.Notification) { + objc.Call[objc.Void](p_, objc.Sel("popoverWillShow:"), objc.Ptr(notification)) } -func (p_ PopoverDelegateWrapper) HasPopoverDidDetach() bool { - return p_.RespondsToSelector(objc.Sel("popoverDidDetach:")) +func (p_ PopoverDelegateObject) HasPopoverDidShow() bool { + return p_.RespondsToSelector(objc.Sel("popoverDidShow:")) } -// Indicates that a popover has been released while it's in an implicitly detached state. [Full Topic] +// Invoked when the popover has been shown. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nspopoverdelegate/1524674-popoverdiddetach?language=objc -func (p_ PopoverDelegateWrapper) PopoverDidDetach(popover IPopover) { - objc.Call[objc.Void](p_, objc.Sel("popoverDidDetach:"), objc.Ptr(popover)) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nspopoverdelegate/1533573-popoverdidshow?language=objc +func (p_ PopoverDelegateObject) PopoverDidShow(notification foundation.Notification) { + objc.Call[objc.Void](p_, objc.Sel("popoverDidShow:"), objc.Ptr(notification)) } -func (p_ PopoverDelegateWrapper) HasDetachableWindowForPopover() bool { - return p_.RespondsToSelector(objc.Sel("detachableWindowForPopover:")) +func (p_ PopoverDelegateObject) HasPopoverShouldDetach() bool { + return p_.RespondsToSelector(objc.Sel("popoverShouldDetach:")) } -// Detaches the popover creating a window containing the content. [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/1534822-detachablewindowforpopover?language=objc -func (p_ PopoverDelegateWrapper) DetachableWindowForPopover(popover IPopover) Window { - rv := objc.Call[Window](p_, objc.Sel("detachableWindowForPopover:"), objc.Ptr(popover)) +// [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:"), objc.Ptr(popover)) return rv } -func (p_ PopoverDelegateWrapper) HasPopoverDidClose() bool { +func (p_ PopoverDelegateObject) HasPopoverDidClose() bool { return p_.RespondsToSelector(objc.Sel("popoverDidClose:")) } // Invoked when the popover did close. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/appkit/nspopoverdelegate/1526581-popoverdidclose?language=objc -func (p_ PopoverDelegateWrapper) PopoverDidClose(notification foundation.INotification) { +func (p_ PopoverDelegateObject) PopoverDidClose(notification foundation.Notification) { objc.Call[objc.Void](p_, objc.Sel("popoverDidClose:"), objc.Ptr(notification)) } -func (p_ PopoverDelegateWrapper) HasPopoverShouldClose() bool { - return p_.RespondsToSelector(objc.Sel("popoverShouldClose:")) +func (p_ PopoverDelegateObject) HasDetachableWindowForPopover() bool { + return p_.RespondsToSelector(objc.Sel("detachableWindowForPopover:")) } -// Allows a delegate to override a close request. [Full Topic] +// Detaches the popover creating a window containing the content. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nspopoverdelegate/1532593-popovershouldclose?language=objc -func (p_ PopoverDelegateWrapper) PopoverShouldClose(popover IPopover) bool { - rv := objc.Call[bool](p_, objc.Sel("popoverShouldClose:"), objc.Ptr(popover)) +// [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:"), objc.Ptr(popover)) return rv } -func (p_ PopoverDelegateWrapper) HasPopoverShouldDetach() bool { - return p_.RespondsToSelector(objc.Sel("popoverShouldDetach:")) +func (p_ PopoverDelegateObject) HasPopoverWillClose() bool { + return p_.RespondsToSelector(objc.Sel("popoverWillClose:")) } -// Returns a Boolean value that indicates whether a popover should detach from its positioning view and become a separate window. [Full Topic] +// Invoked when the popover is about to close. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nspopoverdelegate/1529911-popovershoulddetach?language=objc -func (p_ PopoverDelegateWrapper) PopoverShouldDetach(popover IPopover) bool { - rv := objc.Call[bool](p_, objc.Sel("popoverShouldDetach:"), objc.Ptr(popover)) - return rv +// [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:"), objc.Ptr(notification)) } diff --git a/macos/appkit/popover_touch_bar_item.gen.go b/macos/appkit/popover_touch_bar_item.gen.go index a1f55d0c..1422ac31 100644 --- a/macos/appkit/popover_touch_bar_item.gen.go +++ b/macos/appkit/popover_touch_bar_item.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package appkit @@ -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 - CollapsedRepresentationImage() Image - SetCollapsedRepresentationImage(value IImage) - PressAndHoldTouchBar() TouchBar - SetPressAndHoldTouchBar(value ITouchBar) - SetCustomizationLabel(value string) - CollapsedRepresentationLabel() string - SetCollapsedRepresentationLabel(value string) - ShowsCloseButton() bool - SetShowsCloseButton(value bool) + 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) } // 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] @@ -54,10 +54,6 @@ func (pc _PopoverTouchBarItemClass) Alloc() PopoverTouchBarItem { return rv } -func PopoverTouchBarItem_Alloc() PopoverTouchBarItem { - return PopoverTouchBarItemClass.Alloc() -} - func (pc _PopoverTouchBarItemClass) New() PopoverTouchBarItem { rv := objc.Call[PopoverTouchBarItem](pc, objc.Sel("new")) rv.Autorelease() @@ -87,13 +83,6 @@ 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 @@ -101,7 +90,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 showPopover: method. [Full Topic] +// Returns a gesture recognizer, configured to invoke the [appkit/nspopovertouchbaritem/showpopover] method. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/appkit/nspopovertouchbaritem/2544842-makestandardactivatepopovergestu?language=objc func (p_ PopoverTouchBarItem) MakeStandardActivatePopoverGestureRecognizer() GestureRecognizer { @@ -109,34 +98,41 @@ func (p_ PopoverTouchBarItem) MakeStandardActivatePopoverGestureRecognizer() Ges return rv } -// The image displayed by the button for the default collapsed representation. [Full Topic] +// Replaces the main bar with this item's 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/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] +// +// [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 image 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/2544725-collapsedrepresentationimage?language=objc -func (p_ PopoverTouchBarItem) SetCollapsedRepresentationImage(value IImage) { - objc.Call[objc.Void](p_, objc.Sel("setCollapsedRepresentationImage:"), objc.Ptr(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:"), objc.Ptr(value)) } -// The bar that is displayed when a user press-and-holds on the popover item. [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/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/2544711-showsclosebutton?language=objc +func (p_ PopoverTouchBarItem) ShowsCloseButton() bool { + rv := objc.Call[bool](p_, objc.Sel("showsCloseButton")) return rv } -// The bar that is displayed when a user press-and-holds on the popover item. [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/2646955-pressandholdtouchbar?language=objc -func (p_ PopoverTouchBarItem) SetPressAndHoldTouchBar(value ITouchBar) { - objc.Call[objc.Void](p_, objc.Sel("setPressAndHoldTouchBar:"), objc.Ptr(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 user-visible string identifying this item during bar customization. [Full Topic] @@ -146,62 +142,62 @@ func (p_ PopoverTouchBarItem) SetCustomizationLabel(value string) { objc.Call[objc.Void](p_, objc.Sel("setCustomizationLabel:"), value) } -// The localized string displayed by the button for the default collapsed representation. [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/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/2544699-collapsedrepresentation?language=objc +func (p_ PopoverTouchBarItem) CollapsedRepresentation() View { + rv := objc.Call[View](p_, objc.Sel("collapsedRepresentation")) return rv } -// The localized string displayed by the button for the default collapsed representation. [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/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/2544699-collapsedrepresentation?language=objc +func (p_ PopoverTouchBarItem) SetCollapsedRepresentation(value IView) { + objc.Call[objc.Void](p_, objc.Sel("setCollapsedRepresentation:"), objc.Ptr(value)) } -// A Boolean value that determines whether a close button should be shown on the popover bar. [Full Topic] +// The image displayed by the button for the default collapsed representation. [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/2544725-collapsedrepresentationimage?language=objc +func (p_ PopoverTouchBarItem) CollapsedRepresentationImage() Image { + rv := objc.Call[Image](p_, objc.Sel("collapsedRepresentationImage")) return rv } -// A Boolean value that determines whether a close button should be shown on the popover bar. [Full Topic] +// The image displayed by the button for the default collapsed representation. [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/2544725-collapsedrepresentationimage?language=objc +func (p_ PopoverTouchBarItem) SetCollapsedRepresentationImage(value IImage) { + objc.Call[objc.Void](p_, objc.Sel("setCollapsedRepresentationImage:"), objc.Ptr(value)) } -// The bar displayed when this item is "popped." [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/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/2544772-collapsedrepresentationlabel?language=objc +func (p_ PopoverTouchBarItem) CollapsedRepresentationLabel() string { + rv := objc.Call[string](p_, objc.Sel("collapsedRepresentationLabel")) return rv } -// The bar displayed when this item is "popped." [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/2544856-popovertouchbar?language=objc -func (p_ PopoverTouchBarItem) SetPopoverTouchBar(value ITouchBar) { - objc.Call[objc.Void](p_, objc.Sel("setPopoverTouchBar:"), objc.Ptr(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 view displayed when this item is displayed in its parent 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/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/2646955-pressandholdtouchbar?language=objc +func (p_ PopoverTouchBarItem) PressAndHoldTouchBar() TouchBar { + rv := objc.Call[TouchBar](p_, objc.Sel("pressAndHoldTouchBar")) return rv } -// The view displayed when this item is displayed in its parent 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/2544699-collapsedrepresentation?language=objc -func (p_ PopoverTouchBarItem) SetCollapsedRepresentation(value IView) { - objc.Call[objc.Void](p_, objc.Sel("setCollapsedRepresentation:"), objc.Ptr(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:"), objc.Ptr(value)) } diff --git a/macos/appkit/predicate_editor.gen.go b/macos/appkit/predicate_editor.gen.go index 8434f04e..4e69d45a 100644 --- a/macos/appkit/predicate_editor.gen.go +++ b/macos/appkit/predicate_editor.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package appkit @@ -41,10 +41,6 @@ func (pc _PredicateEditorClass) Alloc() PredicateEditor { return rv } -func PredicateEditor_Alloc() PredicateEditor { - return PredicateEditorClass.Alloc() -} - func (pc _PredicateEditorClass) New() PredicateEditor { rv := objc.Call[PredicateEditor](pc, objc.Sel("new")) rv.Autorelease() diff --git a/macos/appkit/predicate_editor_row_template.gen.go b/macos/appkit/predicate_editor_row_template.gen.go index c508e620..d63f50ee 100644 --- a/macos/appkit/predicate_editor_row_template.gen.go +++ b/macos/appkit/predicate_editor_row_template.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package appkit @@ -20,18 +20,18 @@ type _PredicateEditorRowTemplateClass struct { // An interface definition for the [PredicateEditorRowTemplate] class. type IPredicateEditorRowTemplate interface { objc.IObject - SetPredicate(predicate foundation.IPredicate) DisplayableSubpredicatesOfPredicate(predicate foundation.IPredicate) []foundation.Predicate + SetPredicate(predicate foundation.IPredicate) 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 - Modifier() foundation.ComparisonPredicateModifier LeftExpressions() []foundation.Expression + Modifier() foundation.ComparisonPredicateModifier + RightExpressionAttributeType() coredata.AttributeType + Operators() []foundation.Number + TemplateViews() []View + Options() uint } // A template that describes available predicates and how to display them. [Full Topic] @@ -47,41 +47,51 @@ func PredicateEditorRowTemplateFrom(ptr unsafe.Pointer) PredicateEditorRowTempla } } -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 } -func (p_ PredicateEditorRowTemplate) InitWithCompoundTypes(compoundTypes []foundation.INumber) PredicateEditorRowTemplate { - rv := objc.Call[PredicateEditorRowTemplate](p_, objc.Sel("initWithCompoundTypes:"), compoundTypes) +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) return rv } -// Initializes and returns a row template suitable for displaying compound predicates. [Full Topic] +// Initializes and returns a “pop-up-pop-up-view”–style row template. [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) +// [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) instance.Autorelease() return instance } -func (pc _PredicateEditorRowTemplateClass) Alloc() PredicateEditorRowTemplate { - rv := objc.Call[PredicateEditorRowTemplate](pc, objc.Sel("alloc")) +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 } -func PredicateEditorRowTemplate_Alloc() PredicateEditorRowTemplate { - return PredicateEditorRowTemplateClass.Alloc() +// Initializes and returns a “pop-up-pop-up-pop-up”–style row template. [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) + instance.Autorelease() + return instance +} + +func (pc _PredicateEditorRowTemplateClass) Alloc() PredicateEditorRowTemplate { + rv := objc.Call[PredicateEditorRowTemplate](pc, objc.Sel("alloc")) + return rv } func (pc _PredicateEditorRowTemplateClass) New() PredicateEditorRowTemplate { @@ -99,21 +109,14 @@ func (p_ PredicateEditorRowTemplate) Init() PredicateEditorRowTemplate { return rv } -// Returns an array of predicate templates for the given attribute key paths for a given entity. [Full Topic] +// Returns the subpredicates that should be made sub-rows of a given predicate. [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, objc.Ptr(entityDescription)) +// [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:"), objc.Ptr(predicate)) 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 @@ -121,14 +124,6 @@ func (p_ PredicateEditorRowTemplate) SetPredicate(predicate foundation.IPredicat objc.Call[objc.Void](p_, objc.Sel("setPredicate:"), objc.Ptr(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:"), objc.Ptr(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 @@ -145,35 +140,50 @@ func (p_ PredicateEditorRowTemplate) PredicateWithSubpredicates(subpredicates [] return rv } -// Returns the views that display this template’s 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/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/1401187-templateswithattributekeypaths?language=objc +func (pc _PredicateEditorRowTemplateClass) TemplatesWithAttributeKeyPathsInEntityDescription(keyPaths []string, entityDescription coredata.IEntityDescription) []PredicateEditorRowTemplate { + rv := objc.Call[[]PredicateEditorRowTemplate](pc, objc.Sel("templatesWithAttributeKeyPaths:inEntityDescription:"), keyPaths, objc.Ptr(entityDescription)) return rv } -// Returns the comparison predicate options. [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/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/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] +// +// [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 } -// 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 right hand expressions for the receiver. [Full Topic] +// Returns the left hand expressions for the receiver. [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/1401191-leftexpressions?language=objc +func (p_ PredicateEditorRowTemplate) LeftExpressions() []foundation.Expression { + rv := objc.Call[[]foundation.Expression](p_, objc.Sel("leftExpressions")) + return rv +} + +// Returns the comparison predicate modifier 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")) return rv } @@ -185,26 +195,26 @@ func (p_ PredicateEditorRowTemplate) RightExpressionAttributeType() coredata.Att return rv } -// Returns the compound predicate types. [Full Topic] +// Returns the array of comparison predicate operators. [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/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 views that display this template’s predicate. [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/1401193-templateviews?language=objc +func (p_ PredicateEditorRowTemplate) TemplateViews() []View { + rv := objc.Call[[]View](p_, objc.Sel("templateViews")) return rv } -// Returns the left hand expressions for the receiver. [Full Topic] +// Returns the comparison predicate options. [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/1401197-options?language=objc +func (p_ PredicateEditorRowTemplate) Options() uint { + rv := objc.Call[uint](p_, objc.Sel("options")) return rv } diff --git a/macos/appkit/press_gesture_recognizer.gen.go b/macos/appkit/press_gesture_recognizer.gen.go index d24a9ea3..98704720 100644 --- a/macos/appkit/press_gesture_recognizer.gen.go +++ b/macos/appkit/press_gesture_recognizer.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package appkit @@ -19,12 +19,12 @@ type _PressGestureRecognizerClass struct { // An interface definition for the [PressGestureRecognizer] class. type IPressGestureRecognizer interface { IGestureRecognizer - MinimumPressDuration() foundation.TimeInterval - SetMinimumPressDuration(value foundation.TimeInterval) - ButtonMask() uint - SetButtonMask(value uint) NumberOfTouchesRequired() int SetNumberOfTouchesRequired(value int) + ButtonMask() uint + SetButtonMask(value uint) + MinimumPressDuration() foundation.TimeInterval + SetMinimumPressDuration(value foundation.TimeInterval) AllowableMovement() float64 SetAllowableMovement(value float64) } @@ -47,10 +47,6 @@ func (pc _PressGestureRecognizerClass) Alloc() PressGestureRecognizer { return rv } -func PressGestureRecognizer_Alloc() PressGestureRecognizer { - return PressGestureRecognizerClass.Alloc() -} - func (pc _PressGestureRecognizerClass) New() PressGestureRecognizer { rv := objc.Call[PressGestureRecognizer](pc, objc.Sel("new")) rv.Autorelease() @@ -80,19 +76,19 @@ func NewPressGestureRecognizerWithTargetAction(target objc.IObject, action objc. return instance } -// 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) } // A bit mask of the buttons required to recognize this press. [Full Topic] @@ -110,19 +106,19 @@ func (p_ PressGestureRecognizer) 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] +// 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) } // The maximum movement of the mouse in the view before the gesture fails. [Full Topic] diff --git a/macos/appkit/pressure_configuration.gen.go b/macos/appkit/pressure_configuration.gen.go index 5b0d9197..7c2c85c7 100644 --- a/macos/appkit/pressure_configuration.gen.go +++ b/macos/appkit/pressure_configuration.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package appkit @@ -54,10 +54,6 @@ func (pc _PressureConfigurationClass) Alloc() PressureConfiguration { return rv } -func PressureConfiguration_Alloc() PressureConfiguration { - return PressureConfigurationClass.Alloc() -} - func (pc _PressureConfigurationClass) New() PressureConfiguration { rv := objc.Call[PressureConfiguration](pc, objc.Sel("new")) rv.Autorelease() diff --git a/macos/appkit/print_info.gen.go b/macos/appkit/print_info.gen.go index 8c284f92..f8d3738a 100644 --- a/macos/appkit/print_info.gen.go +++ b/macos/appkit/print_info.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package appkit @@ -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() - RightMargin() float64 - SetRightMargin(value float64) - BottomMargin() float64 - SetBottomMargin(value float64) - JobDisposition() PrintJobDispositionValue - SetJobDisposition(value PrintJobDispositionValue) + PMPrintSession() unsafe.Pointer + SetUpPrintOperationDefaultValues() 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) - ImageablePageBounds() foundation.Rect ScalingFactor() float64 SetScalingFactor(value float64) - LocalizedPaperName() string + JobDisposition() PrintJobDispositionValue + SetJobDisposition(value PrintJobDispositionValue) + VerticalPagination() PrintingPaginationMode + SetVerticalPagination(value PrintingPaginationMode) + PaperSize() foundation.Size + SetPaperSize(value foundation.Size) + TopMargin() float64 + SetTopMargin(value float64) + Orientation() PaperOrientation + SetOrientation(value PaperOrientation) HorizontalPagination() PrintingPaginationMode SetHorizontalPagination(value PrintingPaginationMode) - PrintSettings() foundation.MutableDictionary - IsSelectionOnly() bool - SetSelectionOnly(value bool) + LocalizedPaperName() string IsVerticallyCentered() bool SetVerticallyCentered(value bool) - Orientation() PaperOrientation - SetOrientation(value PaperOrientation) + ImageablePageBounds() foundation.Rect + IsSelectionOnly() bool + SetSelectionOnly(value bool) + RightMargin() float64 + SetRightMargin(value float64) + IsHorizontallyCentered() bool + SetHorizontallyCentered(value bool) + BottomMargin() float64 + SetBottomMargin(value float64) PaperName() PrinterPaperName SetPaperName(value PrinterPaperName) + PrintSettings() foundation.MutableDictionary } // An object that stores information that’s used to generate printed output. [Full Topic] @@ -99,10 +99,6 @@ func (pc _PrintInfoClass) Alloc() PrintInfo { return rv } -func PrintInfo_Alloc() PrintInfo { - return PrintInfoClass.Alloc() -} - func (pc _PrintInfoClass) New() PrintInfo { rv := objc.Call[PrintInfo](pc, objc.Sel("new")) rv.Autorelease() @@ -113,21 +109,6 @@ 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 @@ -136,14 +117,6 @@ 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 @@ -151,13 +124,6 @@ func (p_ PrintInfo) TakeSettingsFromPDFInfo(inPDFInfo IPDFInfo) { objc.Call[objc.Void](p_, objc.Sel("takeSettingsFromPDFInfo:"), objc.Ptr(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 @@ -166,116 +132,116 @@ func (p_ PrintInfo) PMPrintSettings() unsafe.Pointer { return rv } -// Synchronizes the print info’s print settings information with information from its associated print settings object. [Full Topic] +// 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/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/1528578-pmpageformat?language=objc +func (p_ PrintInfo) PMPageFormat() unsafe.Pointer { + rv := objc.Call[unsafe.Pointer](p_, objc.Sel("PMPageFormat")) + return rv } -// The width of the right margin. [Full Topic] +// 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/1530882-rightmargin?language=objc -func (p_ PrintInfo) RightMargin() float64 { - rv := objc.Call[float64](p_, objc.Sel("rightMargin")) - return rv +// [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")) } -// The width of the right margin. [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/1530882-rightmargin?language=objc -func (p_ PrintInfo) SetRightMargin(value float64) { - objc.Call[objc.Void](p_, objc.Sel("setRightMargin:"), value) +// [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")) } -// The height of the bottom margin. [Full Topic] +// Returns a Core Printing object configured with the print info’s session information. [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/1534414-pmprintsession?language=objc +func (p_ PrintInfo) PMPrintSession() unsafe.Pointer { + rv := objc.Call[unsafe.Pointer](p_, objc.Sel("PMPrintSession")) return rv } -// The height of the bottom margin. [Full Topic] +// Validates the attributes encapsulated by the print info. [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/1529453-setupprintoperationdefaultvalues?language=objc +func (p_ PrintInfo) SetUpPrintOperationDefaultValues() { + objc.Call[objc.Void](p_, objc.Sel("setUpPrintOperationDefaultValues")) } -// Deprecated. [Full Topic] +// The printer object to be used for printing. [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/1524495-printer?language=objc +func (p_ PrintInfo) Printer() Printer { + rv := objc.Call[Printer](p_, objc.Sel("printer")) return rv } -// Deprecated. [Full Topic] +// The printer object to be used for printing. [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/1524495-printer?language=objc +func (p_ PrintInfo) SetPrinter(value IPrinter) { + objc.Call[objc.Void](p_, objc.Sel("setPrinter:"), objc.Ptr(value)) } -// The action specified for the job. [Full Topic] +// The width of the left margin. [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/1533430-leftmargin?language=objc +func (p_ PrintInfo) LeftMargin() float64 { + rv := objc.Call[float64](p_, objc.Sel("leftMargin")) return rv } -// The action specified for the job. [Full Topic] +// The width of the left margin. [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/1533430-leftmargin?language=objc +func (p_ PrintInfo) SetLeftMargin(value float64) { + objc.Call[objc.Void](p_, objc.Sel("setLeftMargin:"), value) } -// The printer object to be used for printing. [Full Topic] +// The current scaling factor. [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/1529753-scalingfactor?language=objc +func (p_ PrintInfo) ScalingFactor() float64 { + rv := objc.Call[float64](p_, objc.Sel("scalingFactor")) return rv } -// The printer object to be used for printing. [Full Topic] +// The current scaling factor. [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:"), objc.Ptr(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) } -// A Boolean value that indicates whether the image is centered horizontally. [Full Topic] +// The action specified for the job. [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/1528717-jobdisposition?language=objc +func (p_ PrintInfo) JobDisposition() PrintJobDispositionValue { + rv := objc.Call[PrintJobDispositionValue](p_, objc.Sel("jobDisposition")) return rv } -// A Boolean value that indicates whether the image is centered horizontally. [Full Topic] +// The action specified for the job. [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/1528717-jobdisposition?language=objc +func (p_ PrintInfo) SetJobDisposition(value PrintJobDispositionValue) { + objc.Call[objc.Void](p_, objc.Sel("setJobDisposition:"), value) } -// The size of the paper. [Full Topic] +// Deprecated. [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/1530521-defaultprinter?language=objc +func (pc _PrintInfoClass) DefaultPrinter() Printer { + rv := objc.Call[Printer](pc, objc.Sel("defaultPrinter")) return rv } -// The size of the paper. [Full Topic] +// Deprecated. [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/1530521-defaultprinter?language=objc +func PrintInfo_DefaultPrinter() Printer { + return PrintInfoClass.DefaultPrinter() } // The vertical pagination to the specified mode. [Full Topic] @@ -293,19 +259,19 @@ func (p_ PrintInfo) SetVerticalPagination(value PrintingPaginationMode) { objc.Call[objc.Void](p_, objc.Sel("setVerticalPagination:"), value) } -// The width of the left margin. [Full Topic] +// The size of the paper. [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/1534030-papersize?language=objc +func (p_ PrintInfo) PaperSize() foundation.Size { + rv := objc.Call[foundation.Size](p_, objc.Sel("paperSize")) return rv } -// The width of the left margin. [Full Topic] +// The size of the paper. [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/1534030-papersize?language=objc +func (p_ PrintInfo) SetPaperSize(value foundation.Size) { + objc.Call[objc.Void](p_, objc.Sel("setPaperSize:"), value) } // The top margin to the specified size. [Full Topic] @@ -323,56 +289,34 @@ func (p_ PrintInfo) SetTopMargin(value float64) { objc.Call[objc.Void](p_, objc.Sel("setTopMargin:"), value) } -// The imageable area of a sheet of paper specified by the print info. [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")) - return rv -} - -// The shared printing information object. [Full Topic] +// The orientation attribute. [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")) +// [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 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:"), objc.Ptr(value)) -} - -// The shared printing information object. [Full Topic] +// The orientation attribute. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsprintinfo/1535610-sharedprintinfo?language=objc -func PrintInfo_SetSharedPrintInfo(value IPrintInfo) { - PrintInfoClass.SetSharedPrintInfo(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 current scaling factor. [Full Topic] +// The horizontal pagination mode. [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/1532693-horizontalpagination?language=objc +func (p_ PrintInfo) HorizontalPagination() PrintingPaginationMode { + rv := objc.Call[PrintingPaginationMode](p_, objc.Sel("horizontalPagination")) return rv } -// The current scaling factor. [Full Topic] +// The horizontal pagination mode. [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/1532693-horizontalpagination?language=objc +func (p_ PrintInfo) SetHorizontalPagination(value PrintingPaginationMode) { + objc.Call[objc.Void](p_, objc.Sel("setHorizontalPagination:"), value) } // The human-readable name of the currently selected paper size, suitable for presentation in user interfaces. [Full Topic] @@ -383,26 +327,26 @@ func (p_ PrintInfo) LocalizedPaperName() string { return rv } -// The horizontal pagination mode. [Full Topic] +// A Boolean value that indicates whether the image is centered vertically. [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/1530330-verticallycentered?language=objc +func (p_ PrintInfo) IsVerticallyCentered() bool { + rv := objc.Call[bool](p_, objc.Sel("isVerticallyCentered")) return rv } -// The horizontal pagination mode. [Full Topic] +// A Boolean value that indicates whether the image is centered vertically. [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/1530330-verticallycentered?language=objc +func (p_ PrintInfo) SetVerticallyCentered(value bool) { + objc.Call[objc.Void](p_, objc.Sel("setVerticallyCentered:"), value) } -// A mutable dictionary containing the print settings from Core Printing. [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/1529413-printsettings?language=objc -func (p_ PrintInfo) PrintSettings() foundation.MutableDictionary { - rv := objc.Call[foundation.MutableDictionary](p_, objc.Sel("printSettings")) +// [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 } @@ -421,34 +365,78 @@ func (p_ PrintInfo) SetSelectionOnly(value bool) { objc.Call[objc.Void](p_, objc.Sel("setSelectionOnly:"), value) } -// A Boolean value that indicates whether the image is centered vertically. [Full Topic] +// The width of the right margin. [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/1530882-rightmargin?language=objc +func (p_ PrintInfo) RightMargin() float64 { + rv := objc.Call[float64](p_, objc.Sel("rightMargin")) return rv } -// A Boolean value that indicates whether the image is centered vertically. [Full Topic] +// The width of the right margin. [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/1530882-rightmargin?language=objc +func (p_ PrintInfo) SetRightMargin(value float64) { + objc.Call[objc.Void](p_, objc.Sel("setRightMargin:"), value) } -// 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) Orientation() PaperOrientation { - rv := objc.Call[PaperOrientation](p_, objc.Sel("orientation")) +// [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 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 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:"), objc.Ptr(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] +// +// [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 +} + +// A Boolean value that indicates whether the image is centered horizontally. [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) +} + +// The height of the bottom margin. [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")) + return rv +} + +// The height of the bottom margin. [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) } // The name of the currently selected paper size. [Full Topic] @@ -465,3 +453,11 @@ 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 e26186bf..59b2dfa9 100644 --- a/macos/appkit/print_operation.gen.go +++ b/macos/appkit/print_operation.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package appkit @@ -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) - PrintInfo() PrintInfo - SetPrintInfo(value IPrintInfo) - PreferredRenderingQuality() PrintRenderingQuality - PageOrder() PrintingPageOrder - SetPageOrder(value PrintingPageOrder) + CleanUpOperation() + RunOperation() bool + Context() GraphicsContext PDFPanel() PDFPanel SetPDFPanel(value IPDFPanel) + PageOrder() PrintingPageOrder + SetPageOrder(value PrintingPageOrder) + PrintPanel() PrintPanel + SetPrintPanel(value IPrintPanel) + PreferredRenderingQuality() PrintRenderingQuality + View() View ShowsPrintPanel() bool SetShowsPrintPanel(value bool) - View() View - CurrentPage() int + PageRange() foundation.Range + IsCopyingOperation() bool 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] @@ -67,10 +67,6 @@ func (pc _PrintOperationClass) Alloc() PrintOperation { return rv } -func PrintOperation_Alloc() PrintOperation { - return PrintOperationClass.Alloc() -} - func (pc _PrintOperationClass) New() PrintOperation { rv := objc.Call[PrintOperation](pc, objc.Sel("new")) rv.Autorelease() @@ -93,6 +89,67 @@ 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:"), objc.Ptr(view), rect, objc.Ptr(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:"), objc.Ptr(view), rect, objc.Ptr(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:"), objc.Ptr(view), rect, objc.Ptr(data), objc.Ptr(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 @@ -108,12 +165,11 @@ func PrintOperation_PrintOperationWithView(view IView) PrintOperation { return PrintOperationClass.PrintOperationWithView(view) } -// Delivers the results of the print operation to the intended destination. [Full Topic] +// Runs the print operation, calling your custom delegate method upon completion. [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 +// [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:"), objc.Ptr(docWindow), delegate, didRunSelector, contextInfo) } // 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] @@ -131,27 +187,49 @@ func PrintOperation_EPSOperationWithViewInsideRectToPathPrintInfo(view IView, re return PrintOperationClass.EPSOperationWithViewInsideRectToPathPrintInfo(view, rect, path, printInfo) } -// Runs the print operation on the current thread. [Full Topic] +// 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/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/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:"), objc.Ptr(view), rect, path, objc.Ptr(printInfo)) return rv } -// Creates and returns a new print operation object ready to control the copying of PDF graphics from the specified view. [Full Topic] +// 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/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:"), objc.Ptr(view), rect, objc.Ptr(data)) +// [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] +// +// [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:"), objc.Ptr(view), rect, objc.Ptr(data), objc.Ptr(printInfo)) return rv } -// Creates and returns a new print operation object ready to control the copying of PDF graphics from the specified view. [Full Topic] +// 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/1529269-pdfoperationwithview?language=objc -func PrintOperation_PDFOperationWithViewInsideRectToData(view IView, rect foundation.Rect, data foundation.IMutableData) PrintOperation { - return PrintOperationClass.PDFOperationWithViewInsideRectToData(view, rect, data) +// [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] +// +// [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:"), objc.Ptr(view), objc.Ptr(printInfo)) + return rv +} + +// Creates and returns an print operation object ready to control the printing of the specified view using custom print settings. [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) } // Called at the end of a print operation to remove the print operation as the current operation. [Full Topic] @@ -161,42 +239,35 @@ func (p_ PrintOperation) CleanUpOperation() { objc.Call[objc.Void](p_, objc.Sel("cleanUpOperation")) } -// Creates the graphics context object used for drawing during the operation. [Full Topic] +// Runs the print operation on the current thread. [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")) +// [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 } -// Runs the print operation, calling your custom delegate method upon completion. [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:"), objc.Ptr(docWindow), delegate, didRunSelector, contextInfo) -} - -// The printing information associated with the print operation. [Full Topic] +// The graphics context object used for generating output. [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/1534162-context?language=objc +func (p_ PrintOperation) Context() GraphicsContext { + rv := objc.Call[GraphicsContext](p_, objc.Sel("context")) return rv } -// The printing information associated with 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/1535187-printinfo?language=objc -func (p_ PrintOperation) SetPrintInfo(value IPrintInfo) { - objc.Call[objc.Void](p_, objc.Sel("setPrintInfo:"), objc.Ptr(value)) +// [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 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")) - 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:"), objc.Ptr(value)) } // The print order for the pages of the operation. [Full Topic] @@ -214,19 +285,35 @@ func (p_ PrintOperation) SetPageOrder(value PrintingPageOrder) { objc.Call[objc.Void](p_, objc.Sel("setPageOrder:"), value) } -// The PDF panel object to use during the operation. [Full Topic] +// The print panel object to use during the 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/1529626-printpanel?language=objc +func (p_ PrintOperation) PrintPanel() PrintPanel { + rv := objc.Call[PrintPanel](p_, objc.Sel("printPanel")) return rv } -// The PDF panel object to use during the operation. [Full Topic] +// The print panel object to use during the 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:"), objc.Ptr(value)) +// [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:"), objc.Ptr(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 view object that generates the actual data for the print 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 } // A Boolean value that determines whether the print operation displays a print panel. [Full Topic] @@ -244,19 +331,19 @@ func (p_ PrintOperation) SetShowsPrintPanel(value bool) { objc.Call[objc.Void](p_, objc.Sel("setShowsPrintPanel:"), value) } -// The view object that generates the actual data for the print operation. [Full Topic] +// The range of pages associated with the print 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")) +// [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 } -// The current page number being printed. [Full Topic] +// 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/1534881-currentpage?language=objc -func (p_ PrintOperation) CurrentPage() int { - rv := objc.Call[int](p_, objc.Sel("currentPage")) +// [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 } @@ -290,43 +377,19 @@ func (p_ PrintOperation) SetShowsProgressPanel(value bool) { objc.Call[objc.Void](p_, objc.Sel("setShowsProgressPanel:"), value) } -// The graphics context object used for generating output. [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 -} - -// 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:"), objc.Ptr(value)) -} - -// The range of pages 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/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/1532487-canspawnseparatethread?language=objc +func (p_ PrintOperation) CanSpawnSeparateThread() bool { + rv := objc.Call[bool](p_, objc.Sel("canSpawnSeparateThread")) return rv } -// A Boolean value that indicates whether the print operation is an EPS or PDF copy 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/1534206-copyingoperation?language=objc -func (p_ PrintOperation) IsCopyingOperation() bool { - rv := objc.Call[bool](p_, objc.Sel("isCopyingOperation")) - return rv +// [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) } // The current print operation for this thread. [Full Topic] @@ -358,17 +421,25 @@ func PrintOperation_SetCurrentOperation(value IPrintOperation) { PrintOperationClass.SetCurrentOperation(value) } -// A Boolean value that determines whether the print operation is allowed to spawn a separate printing thread. [Full Topic] +// The current page number being printed. [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/1534881-currentpage?language=objc +func (p_ PrintOperation) CurrentPage() int { + rv := objc.Call[int](p_, objc.Sel("currentPage")) return rv } -// A Boolean value that determines whether the print operation is allowed to spawn a separate printing thread. [Full Topic] +// The printing information associated with the print 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/1535187-printinfo?language=objc +func (p_ PrintOperation) PrintInfo() PrintInfo { + rv := objc.Call[PrintInfo](p_, objc.Sel("printInfo")) + return rv +} + +// The printing information associated with the print operation. [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:"), objc.Ptr(value)) } diff --git a/macos/appkit/print_panel.gen.go b/macos/appkit/print_panel.gen.go index 2ec02654..6a7a638e 100644 --- a/macos/appkit/print_panel.gen.go +++ b/macos/appkit/print_panel.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package appkit @@ -18,20 +18,20 @@ type _PrintPanelClass struct { // An interface definition for the [PrintPanel] class. type IPrintPanel interface { objc.IObject - RemoveAccessoryController(accessoryController IViewController) + DefaultButtonTitle() string RunModal() int - AddAccessoryController(accessoryController IViewController) RunModalWithPrintInfo(printInfo IPrintInfo) int - DefaultButtonTitle() string + AddAccessoryController(accessoryController IViewController) + RemoveAccessoryController(accessoryController IViewController) SetDefaultButtonTitle(defaultButtonTitle string) - PrintInfo() PrintInfo - AccessoryControllers() []ViewController - Options() PrintPanelOptions - SetOptions(value PrintPanelOptions) JobStyleHint() PrintPanelJobStyleHint SetJobStyleHint(value PrintPanelJobStyleHint) + PrintInfo() PrintInfo + AccessoryControllers() []ViewController HelpAnchor() HelpAnchorName SetHelpAnchor(value HelpAnchorName) + Options() PrintPanelOptions + SetOptions(value PrintPanelOptions) } // The Print panel that queries the user for information about a print job. [Full Topic] @@ -52,10 +52,6 @@ func (pc _PrintPanelClass) Alloc() PrintPanel { return rv } -func PrintPanel_Alloc() PrintPanel { - return PrintPanelClass.Alloc() -} - func (pc _PrintPanelClass) New() PrintPanel { rv := objc.Call[PrintPanel](pc, objc.Sel("new")) rv.Autorelease() @@ -71,11 +67,12 @@ func (p_ PrintPanel) Init() PrintPanel { return rv } -// Removes the specified controller and accessory view from the Print panel. [Full Topic] +// Returns the title of the Print panel’s default button. [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:"), objc.Ptr(accessoryController)) +// [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 } // Displays the Print panel and begins the modal loop. [Full Topic] @@ -86,21 +83,6 @@ 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:"), objc.Ptr(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:"), objc.Ptr(printInfo)) - return rv -} - // Returns a new print panel object. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/appkit/nsprintpanel/1490531-printpanel?language=objc @@ -116,50 +98,33 @@ func PrintPanel_PrintPanel() PrintPanel { return PrintPanelClass.PrintPanel() } -// Returns the title of the Print panel’s default button. [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 -} - -// Sets the title of the Print panel’s default button. [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) -} - -// The information associated with the running Print panel. [Full Topic] +// 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/1490513-printinfo?language=objc -func (p_ PrintPanel) PrintInfo() PrintInfo { - rv := objc.Call[PrintInfo](p_, objc.Sel("printInfo")) +// [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:"), objc.Ptr(printInfo)) return rv } -// The array of controller objects that manage the Print panel’s accessory views. [Full Topic] +// Adds a custom controller to the Print panel to manage an accessory view. [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 +// [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:"), objc.Ptr(accessoryController)) } -// The current configuration options for the Print panel. [Full Topic] +// Removes the specified controller and accessory view from 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 +// [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:"), objc.Ptr(accessoryController)) } -// The current configuration options for the Print panel. [Full Topic] +// Sets the title of the Print panel’s default button. [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) +// [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) } // The type of settings that the print panel displays. [Full Topic] @@ -177,6 +142,22 @@ 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 @@ -191,3 +172,18 @@ 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.gen.go b/macos/appkit/print_panel_accessorizing_protocol.gen.go similarity index 68% rename from macos/appkit/print_panel_accessorizing.gen.go rename to macos/appkit/print_panel_accessorizing_protocol.gen.go index 60b31bb1..2a62b8f3 100644 --- a/macos/appkit/print_panel_accessorizing.gen.go +++ b/macos/appkit/print_panel_accessorizing_protocol.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package appkit @@ -11,40 +11,43 @@ import ( // // [Full Topic]: https://developer.apple.com/documentation/appkit/nsprintpanelaccessorizing?language=objc type PPrintPanelAccessorizing interface { - // optional - KeyPathsForValuesAffectingPreview() foundation.ISet - HasKeyPathsForValuesAffectingPreview() bool - // optional LocalizedSummaryItems() []map[PrintPanelAccessorySummaryKey]string HasLocalizedSummaryItems() bool + + // optional + KeyPathsForValuesAffectingPreview() foundation.Set + HasKeyPathsForValuesAffectingPreview() bool } -// A concrete type wrapper for the [PPrintPanelAccessorizing] protocol. -type PrintPanelAccessorizingWrapper struct { +// ensure impl type implements protocol interface +var _ PPrintPanelAccessorizing = (*PrintPanelAccessorizingObject)(nil) + +// A concrete type for the [PPrintPanelAccessorizing] protocol. +type PrintPanelAccessorizingObject struct { objc.Object } -func (p_ PrintPanelAccessorizingWrapper) HasKeyPathsForValuesAffectingPreview() bool { - return p_.RespondsToSelector(objc.Sel("keyPathsForValuesAffectingPreview")) +func (p_ PrintPanelAccessorizingObject) HasLocalizedSummaryItems() bool { + return p_.RespondsToSelector(objc.Sel("localizedSummaryItems")) } -// Returns a set of strings identifying the key paths for any properties that might affect the built-in print preview. [Full Topic] +// Returns an array of dictionaries containing the localized user setting summary strings. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsprintpanelaccessorizing/1490516-keypathsforvaluesaffectingprevie?language=objc -func (p_ PrintPanelAccessorizingWrapper) KeyPathsForValuesAffectingPreview() foundation.Set { - rv := objc.Call[foundation.Set](p_, objc.Sel("keyPathsForValuesAffectingPreview")) +// [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_ PrintPanelAccessorizingWrapper) HasLocalizedSummaryItems() bool { - return p_.RespondsToSelector(objc.Sel("localizedSummaryItems")) +func (p_ PrintPanelAccessorizingObject) HasKeyPathsForValuesAffectingPreview() bool { + return p_.RespondsToSelector(objc.Sel("keyPathsForValuesAffectingPreview")) } -// Returns an array of dictionaries containing the localized user setting summary strings. [Full Topic] +// Returns a set of strings identifying the key paths for any properties that might affect the built-in print preview. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsprintpanelaccessorizing/1490521-localizedsummaryitems?language=objc -func (p_ PrintPanelAccessorizingWrapper) LocalizedSummaryItems() []map[PrintPanelAccessorySummaryKey]string { - rv := objc.Call[[]map[PrintPanelAccessorySummaryKey]string](p_, objc.Sel("localizedSummaryItems")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsprintpanelaccessorizing/1490516-keypathsforvaluesaffectingprevie?language=objc +func (p_ PrintPanelAccessorizingObject) KeyPathsForValuesAffectingPreview() foundation.Set { + rv := objc.Call[foundation.Set](p_, objc.Sel("keyPathsForValuesAffectingPreview")) return rv } diff --git a/macos/appkit/printer.gen.go b/macos/appkit/printer.gen.go index e6914f43..4fb33521 100644 --- a/macos/appkit/printer.gen.go +++ b/macos/appkit/printer.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package appkit @@ -20,9 +20,9 @@ type _PrinterClass struct { type IPrinter interface { objc.IObject PageSizeForPaper(paperName PrinterPaperName) foundation.Size - Name() string - DeviceDescription() map[DeviceDescriptionKey]objc.Object LanguageLevel() int + DeviceDescription() map[DeviceDescriptionKey]objc.Object + Name() string Type() PrinterTypeName } @@ -44,10 +44,6 @@ func (pc _PrinterClass) Alloc() Printer { return rv } -func Printer_Alloc() Printer { - return PrinterClass.Alloc() -} - func (pc _PrinterClass) New() Printer { rv := objc.Call[Printer](pc, objc.Sel("new")) rv.Autorelease() @@ -78,6 +74,21 @@ 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 @@ -86,6 +97,14 @@ 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 @@ -101,14 +120,6 @@ 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 @@ -117,19 +128,11 @@ func (p_ Printer) DeviceDescription() map[DeviceDescriptionKey]objc.Object { 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 -} - -// A description of the printer’s make and model. [Full Topic] +// The printer’s name. [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")) +// [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 } @@ -147,3 +150,11 @@ 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 fdf3d3c7..36774686 100644 --- a/macos/appkit/progress_indicator.gen.go +++ b/macos/appkit/progress_indicator.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package appkit @@ -19,26 +19,26 @@ type _ProgressIndicatorClass struct { // An interface definition for the [ProgressIndicator] class. type IProgressIndicator interface { IView - IncrementBy(delta float64) - StopAnimation(sender objc.IObject) StartAnimation(sender objc.IObject) + StopAnimation(sender objc.IObject) SizeToFit() - ControlSize() ControlSize - SetControlSize(value ControlSize) - Style() ProgressIndicatorStyle - SetStyle(value ProgressIndicatorStyle) - UsesThreadedAnimation() bool - SetUsesThreadedAnimation(value bool) + IncrementBy(delta float64) MinValue() float64 SetMinValue(value float64) - DoubleValue() float64 - SetDoubleValue(value float64) - MaxValue() float64 - SetMaxValue(value float64) + UsesThreadedAnimation() bool + SetUsesThreadedAnimation(value bool) + ControlSize() ControlSize + SetControlSize(value ControlSize) IsDisplayedWhenStopped() bool SetDisplayedWhenStopped(value bool) + MaxValue() float64 + SetMaxValue(value float64) 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] @@ -59,10 +59,6 @@ func (pc _ProgressIndicatorClass) Alloc() ProgressIndicator { return rv } -func ProgressIndicator_Alloc() ProgressIndicator { - return ProgressIndicatorClass.Alloc() -} - func (pc _ProgressIndicatorClass) New() ProgressIndicator { rv := objc.Call[ProgressIndicator](pc, objc.Sel("new")) rv.Autorelease() @@ -92,11 +88,11 @@ func NewProgressIndicatorWithFrame(frameRect foundation.Rect) ProgressIndicator return instance } -// Advances the progress bar of a determinate progress indicator by the specified amount. [Full Topic] +// Starts the animation of an indeterminate 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/1501167-startanimation?language=objc +func (p_ ProgressIndicator) StartAnimation(sender objc.IObject) { + objc.Call[objc.Void](p_, objc.Sel("startAnimation:"), sender) } // Stops the animation of an indeterminate progress indicator. [Full Topic] @@ -106,48 +102,33 @@ func (p_ ProgressIndicator) StopAnimation(sender objc.IObject) { objc.Call[objc.Void](p_, objc.Sel("stopAnimation:"), sender) } -// 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] +// This action method resizes the progress indicator to an appropriate size depending on the value of [appkit/nsprogressindicator/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")) } -// The size of 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")) - return rv -} - -// The size of the 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/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/1501155-incrementby?language=objc +func (p_ ProgressIndicator) IncrementBy(delta float64) { + objc.Call[objc.Void](p_, objc.Sel("incrementBy:"), delta) } -// The style of the progress indicator (bar or spinning). [Full Topic] +// The minimum value for the progress indicator. [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")) +// [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 style of the progress indicator (bar or spinning). [Full Topic] +// The minimum value for the progress indicator. [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) +// [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 implements animation in a separate thread. [Full Topic] @@ -165,34 +146,34 @@ func (p_ ProgressIndicator) SetUsesThreadedAnimation(value bool) { objc.Call[objc.Void](p_, objc.Sel("setUsesThreadedAnimation:"), value) } -// 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) 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) SetMinValue(value float64) { - objc.Call[objc.Void](p_, objc.Sel("setMinValue:"), value) +// [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 value that indicates the current extent of the progress indicator. [Full Topic] +// 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/1501173-doublevalue?language=objc -func (p_ ProgressIndicator) DoubleValue() float64 { - rv := objc.Call[float64](p_, objc.Sel("doubleValue")) +// [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 } -// The value that indicates the current extent of the progress indicator. [Full Topic] +// 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/1501173-doublevalue?language=objc -func (p_ ProgressIndicator) SetDoubleValue(value float64) { - objc.Call[objc.Void](p_, objc.Sel("setDoubleValue:"), value) +// [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) } // The maximum value for the progress indicator. [Full Topic] @@ -210,21 +191,6 @@ 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 @@ -239,3 +205,33 @@ 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 ab2081a2..f2ab023d 100644 --- a/macos/appkit/protocols.gen.m +++ b/macos/appkit/protocols.gen.m @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. #import "Appkit/Appkit.h" @@ -9,6 +9,7 @@ void importAppKitProtocols() { o = @protocol(NSAccessibilityCheckBox); o = @protocol(NSAccessibilityContainsTransientUI); o = @protocol(NSAccessibilityCustomRotorItemSearchDelegate); + o = @protocol(NSAccessibilityElement); o = @protocol(NSAccessibilityElementLoading); o = @protocol(NSAccessibilityGroup); o = @protocol(NSAccessibilityImage); @@ -106,6 +107,7 @@ 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 05d35e6c..126a41b9 100644 --- a/macos/appkit/responder.gen.go +++ b/macos/appkit/responder.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package appkit @@ -19,72 +19,74 @@ type _ResponderClass struct { // An interface definition for the [Responder] class. type IResponder interface { objc.IObject - TouchesMovedWithEvent(event IEvent) + MouseDragged(event IEvent) + InterpretKeyEvents(eventArray []IEvent) + RightMouseDragged(event IEvent) + EndGestureWithEvent(event IEvent) MouseEntered(event IEvent) + MouseExited(event IEvent) MouseUp(event IEvent) - NewWindowForTab(sender objc.IObject) objc.Object - WillPresentError(error foundation.IError) foundation.Error - PressureChangeWithEvent(event IEvent) - WantsForwardedScrollEventsForAxis(axis EventGestureAxis) bool - QuickLookWithEvent(event IEvent) - OtherMouseDragged(event IEvent) + PerformKeyEquivalent(event IEvent) bool + PresentError(error foundation.IError) bool InvalidateRestorableState() - RightMouseDragged(event IEvent) - ShouldBeTreatedAsInkEvent(event IEvent) bool - ShowContextHelp(sender objc.IObject) - NoResponderFor(eventSelector objc.Selector) + WantsForwardedScrollEventsForAxis(axis EventGestureAxis) bool + OtherMouseUp(event IEvent) + EncodeRestorableStateWithCoder(coder foundation.ICoder) + PressureChangeWithEvent(event IEvent) + EncodeRestorableStateWithCoderBackgroundQueue(coder foundation.ICoder, queue foundation.IOperationQueue) + WantsScrollEventsForSwipeTrackingOnAxis(axis EventGestureAxis) bool + FlushBufferedKeyEvents() MouseMoved(event IEvent) - TabletProximity(event IEvent) + RightMouseDown(event IEvent) + PerformTextFinderAction(sender objc.IObject) + UpdateUserActivityState(userActivity foundation.IUserActivity) + 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 BecomeFirstResponder() bool - BeginGestureWithEvent(event IEvent) - FlagsChanged(event IEvent) + RightMouseUp(event IEvent) + SupplementalTargetForActionSender(action objc.Selector, sender objc.IObject) objc.Object TouchesBeganWithEvent(event IEvent) + SmartMagnifyWithEvent(event IEvent) ScrollWheel(event IEvent) - CursorUpdate(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) 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 - MouseDragged(event IEvent) + WillPresentError(error foundation.IError) foundation.Error + ChangeModeWithEvent(event IEvent) HelpRequested(eventPtr IEvent) - WantsScrollEventsForSwipeTrackingOnAxis(axis EventGestureAxis) bool - InterpretKeyEvents(eventArray []IEvent) - PerformTextFinderAction(sender objc.IObject) + MagnifyWithEvent(event IEvent) MouseDown(event IEvent) - 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) + 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 UndoManager() foundation.UndoManager + UserActivity() foundation.UserActivity + SetUserActivity(value foundation.IUserActivity) TouchBar() TouchBar SetTouchBar(value ITouchBar) - NextResponder() Responder - SetNextResponder(value IResponder) Menu() Menu SetMenu(value IMenu) - AcceptsFirstResponder() bool - UserActivity() foundation.UserActivity - SetUserActivity(value foundation.IUserActivity) + NextResponder() Responder + SetNextResponder(value IResponder) } // An abstract class that forms the basis of event and command processing in AppKit. [Full Topic] @@ -110,10 +112,6 @@ func (rc _ResponderClass) Alloc() Responder { return rv } -func Responder_Alloc() Responder { - return ResponderClass.Alloc() -} - func (rc _ResponderClass) New() Responder { rv := objc.Call[Responder](rc, objc.Sel("new")) rv.Autorelease() @@ -124,11 +122,32 @@ func NewResponder() Responder { return ResponderClass.New() } -// Informs the receiver that one or more touches has moved. [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/1524501-touchesmovedwithevent?language=objc -func (r_ Responder) TouchesMovedWithEvent(event IEvent) { - objc.Call[objc.Void](r_, objc.Sel("touchesMovedWithEvent:"), objc.Ptr(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:"), objc.Ptr(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:"), objc.Ptr(event)) +} + +// Informs the receiver that the user has ended a touch gesture. [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:"), objc.Ptr(event)) } // Informs the receiver that the cursor has entered a tracking rectangle. [Full Topic] @@ -138,19 +157,11 @@ func (r_ Responder) MouseEntered(event IEvent) { objc.Call[objc.Void](r_, objc.Sel("mouseEntered:"), objc.Ptr(event)) } -// Returns the classes that support secure coding. [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) - return rv -} - -// Returns the classes that support secure coding. [Full Topic] +// Informs the receiver that the cursor has exited a tracking rectangle. [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/1527561-mouseexited?language=objc +func (r_ Responder) MouseExited(event IEvent) { + objc.Call[objc.Void](r_, objc.Sel("mouseExited:"), objc.Ptr(event)) } // Informs the receiver that the user has released the left mouse button. [Full Topic] @@ -160,28 +171,27 @@ func (r_ Responder) MouseUp(event IEvent) { objc.Call[objc.Void](r_, objc.Sel("mouseUp:"), objc.Ptr(event)) } -// Creates a new window to show as a tab in a tabbed window. [Full Topic] +// Handle a key equivalent. [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) - rv.Autorelease() +// [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:"), objc.Ptr(event)) return rv } -// Returns a custom version of the supplied error object that’s more suitable for presentation in alert sheets and dialogs. [Full Topic] +// Presents an error alert to the user as an application-modal dialog. [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:"), objc.Ptr(error)) +// [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:"), objc.Ptr(error)) return rv } -// 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:"), objc.Ptr(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")) } // Returns whether to forward elastic scrolling gesture events up the responder. [Full Topic] @@ -192,54 +202,47 @@ func (r_ Responder) WantsForwardedScrollEventsForAxis(axis EventGestureAxis) boo return rv } -// Performs a Quick Look on the content at the location specified by the supplied event. [Full Topic] +// 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/1535080-quicklookwithevent?language=objc -func (r_ Responder) QuickLookWithEvent(event IEvent) { - objc.Call[objc.Void](r_, objc.Sel("quickLookWithEvent:"), objc.Ptr(event)) +// [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:"), objc.Ptr(event)) } -// Informs the receiver that the user has moved the mouse with a button other than the left or right button pressed. [Full Topic] +// Saves the interface-related state of the responder. [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:"), objc.Ptr(event)) +// [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:"), objc.Ptr(coder)) } -// 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:"), objc.Ptr(event)) } -// Informs the receiver that the user has moved the mouse with the right button pressed. [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/1529135-rightmousedragged?language=objc -func (r_ Responder) RightMouseDragged(event IEvent) { - objc.Call[objc.Void](r_, objc.Sel("rightMouseDragged:"), objc.Ptr(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:"), objc.Ptr(coder), objc.Ptr(queue)) } -// Indicates whether a pen-down event should be treated as an ink event. [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/1534105-shouldbetreatedasinkevent?language=objc -func (r_ Responder) ShouldBeTreatedAsInkEvent(event IEvent) bool { - rv := objc.Call[bool](r_, objc.Sel("shouldBeTreatedAsInkEvent:"), objc.Ptr(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 } -// 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/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] +// Clears any unprocessed key events when overridden by subclasses. [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/1527264-flushbufferedkeyevents?language=objc +func (r_ Responder) FlushBufferedKeyEvents() { + objc.Call[objc.Void](r_, objc.Sel("flushBufferedKeyEvents")) } // Informs the receiver that the mouse has moved. [Full Topic] @@ -249,97 +252,107 @@ func (r_ Responder) MouseMoved(event IEvent) { objc.Call[objc.Void](r_, objc.Sel("mouseMoved:"), objc.Ptr(event)) } -// Informs the receiver that a tablet-proximity event has occurred. [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/1527018-tabletproximity?language=objc -func (r_ Responder) TabletProximity(event IEvent) { - objc.Call[objc.Void](r_, objc.Sel("tabletProximity:"), objc.Ptr(event)) +// [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:"), objc.Ptr(event)) } -// Notifies the receiver that it’s about to become first responder in its NSWindow. [Full Topic] +// Performs all find oriented actions. [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/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 begun a touch gesture. [Full Topic] +// Updates the state of the given user activity. [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:"), objc.Ptr(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:"), objc.Ptr(userActivity)) } -// Informs the receiver that the user has pressed or released a modifier key (Shift, Control, and so on). [Full Topic] +// 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/1527647-flagschanged?language=objc -func (r_ Responder) FlagsChanged(event IEvent) { - objc.Call[objc.Void](r_, objc.Sel("flagsChanged:"), objc.Ptr(event)) +// [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 new set of touches has been recognized. [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/1531151-touchesbeganwithevent?language=objc -func (r_ Responder) TouchesBeganWithEvent(event IEvent) { - objc.Call[objc.Void](r_, objc.Sel("touchesBeganWithEvent:"), objc.Ptr(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 +} -// Informs the receiver that the mouse’s scroll wheel has moved. [Full Topic] +// Informs the receiver that one or more touches has moved. [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:"), objc.Ptr(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:"), objc.Ptr(event)) } -// Informs the receiver that the mouse cursor has moved into a cursor rectangle. [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/1525066-cursorupdate?language=objc -func (r_ Responder) CursorUpdate(event IEvent) { - objc.Call[objc.Void](r_, objc.Sel("cursorUpdate:"), objc.Ptr(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:"), objc.Ptr(event)) } -// Allows controls to determine when they should become first responder. [Full Topic] +// 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/1527066-validateproposedfirstresponder?language=objc -func (r_ Responder) ValidateProposedFirstResponderForEvent(responder IResponder, event IEvent) bool { - rv := objc.Call[bool](r_, objc.Sel("validateProposedFirstResponder:forEvent:"), objc.Ptr(responder), objc.Ptr(event)) +// [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 } -// Restores the interface-related state of the responder. [Full Topic] +// Returns that a set of touches have been removed. [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:"), objc.Ptr(coder)) +// [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:"), objc.Ptr(event)) } -// Informs the receiver that the user has ended a touch gesture. [Full Topic] +// Overridden by subclasses to determine what services are available. [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:"), objc.Ptr(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 } -// Informs the receiver that tracking of touches has been cancelled for any reason. [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/1530614-touchescancelledwithevent?language=objc -func (r_ Responder) TouchesCancelledWithEvent(event IEvent) { - objc.Call[objc.Void](r_, objc.Sel("touchesCancelledWithEvent:"), objc.Ptr(event)) +// [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 } -// Informs the receiver that the cursor has exited a tracking rectangle. [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/1527561-mouseexited?language=objc -func (r_ Responder) MouseExited(event IEvent) { - objc.Call[objc.Void](r_, objc.Sel("mouseExited:"), objc.Ptr(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:"), objc.Ptr(event)) } -// Updates the state of the given user activity. [Full Topic] +// Finds a target for an action method. [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:"), objc.Ptr(userActivity)) +// [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 +} + +// Informs the receiver that new set of touches has been recognized. [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:"), objc.Ptr(event)) } // Informs the receiver that the user performed a smart zoom gesture. [Full Topic] @@ -349,107 +362,83 @@ func (r_ Responder) SmartMagnifyWithEvent(event IEvent) { objc.Call[objc.Void](r_, objc.Sel("smartMagnifyWithEvent:"), objc.Ptr(event)) } -// Informs the receiver that the user has begun a rotation gesture. [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:"), objc.Ptr(event)) -} - -// Handle a key equivalent. [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:"), objc.Ptr(event)) - return rv -} - -// Clears any unprocessed key events when overridden by subclasses. [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")) -} - -// Informs the receiver that the user has pressed a key. [Full Topic] +// Informs the receiver that the mouse’s scroll wheel has moved. [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:"), objc.Ptr(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:"), objc.Ptr(event)) } -// Finds a target for an action method. [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/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/1529804-othermousedragged?language=objc +func (r_ Responder) OtherMouseDragged(event IEvent) { + objc.Call[objc.Void](r_, objc.Sel("otherMouseDragged:"), objc.Ptr(event)) } -// Informs the receiver that a tablet-point event has occurred. [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/1530905-tabletpoint?language=objc -func (r_ Responder) TabletPoint(event IEvent) { - objc.Call[objc.Void](r_, objc.Sel("tabletPoint:"), objc.Ptr(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:"), objc.Ptr(error), objc.Ptr(window), delegate, didPresentSelector, contextInfo) } -// Overridden by subclasses to determine what services are available. [Full Topic] +// Informs the receiver that a tablet-proximity event has occurred. [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/1527018-tabletproximity?language=objc +func (r_ Responder) TabletProximity(event IEvent) { + objc.Call[objc.Void](r_, objc.Sel("tabletProximity:"), objc.Ptr(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:"), objc.Ptr(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:"), objc.Ptr(event)) } -// Returns that a set of touches have been removed. [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/1525779-touchesendedwithevent?language=objc -func (r_ Responder) TouchesEndedWithEvent(event IEvent) { - objc.Call[objc.Void](r_, objc.Sel("touchesEndedWithEvent:"), objc.Ptr(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:"), objc.Ptr(event)) } -// Informs the receiver that the user has pressed a mouse button other than the left or right one. [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/1525719-othermousedown?language=objc -func (r_ Responder) OtherMouseDown(event IEvent) { - objc.Call[objc.Void](r_, objc.Sel("otherMouseDown:"), objc.Ptr(event)) +// [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:"), objc.Ptr(event)) } -// Informs the receiver that the user has released a mouse button other than the left or right button. [Full Topic] +// Allows controls to determine when they should become first responder. [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:"), objc.Ptr(event)) +// [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:"), objc.Ptr(responder), objc.Ptr(event)) + return rv } -// Informs the receiver that the user has begun a pinch gesture. [Full Topic] +// Informs the receiver that the user has begun a rotation 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:"), objc.Ptr(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:"), objc.Ptr(event)) } -// Notifies the receiver that it’s been asked to relinquish its status as first responder in its window. [Full Topic] +// Returns the classes that support secure coding. [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/3762523-allowedclassesforrestorablestate?language=objc +func (rc _ResponderClass) AllowedClassesForRestorableStateKeyPath(keyPath string) []objc.Class { + rv := objc.Call[[]objc.Class](rc, objc.Sel("allowedClassesForRestorableStateKeyPath:"), keyPath) return rv } -// Your custom subclass of the NSResponder class should override this method to create and configure your subclass’s default NSTouchBar object. [Full Topic] +// Returns the classes that support secure coding. [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/3762523-allowedclassesforrestorablestate?language=objc +func Responder_AllowedClassesForRestorableStateKeyPath(keyPath string) []objc.Class { + return ResponderClass.AllowedClassesForRestorableStateKeyPath(keyPath) } // Attempts to perform the method indicated by an action with a specified argument. [Full Topic] @@ -460,11 +449,19 @@ func (r_ Responder) TryToPerformWith(action objc.Selector, object objc.IObject) return rv } -// Informs the receiver that the user has moved the mouse with the left button pressed. [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/1527420-mousedragged?language=objc -func (r_ Responder) MouseDragged(event IEvent) { - objc.Call[objc.Void](r_, objc.Sel("mouseDragged:"), objc.Ptr(event)) +// [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:"), objc.Ptr(error)) + return rv +} + +// 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/3237219-changemodewithevent?language=objc +func (r_ Responder) ChangeModeWithEvent(event IEvent) { + objc.Call[objc.Void](r_, objc.Sel("changeModeWithEvent:"), objc.Ptr(event)) } // Displays context-sensitive help for the receiver if help has been registered. [Full Topic] @@ -474,26 +471,11 @@ func (r_ Responder) HelpRequested(eventPtr IEvent) { objc.Call[objc.Void](r_, objc.Sel("helpRequested:"), objc.Ptr(eventPtr)) } -// Implement this method to track gesture scroll events such as a swipe. [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) - 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] +// Informs the receiver that the user has begun a pinch gesture. [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/1525862-magnifywithevent?language=objc +func (r_ Responder) MagnifyWithEvent(event IEvent) { + objc.Call[objc.Void](r_, objc.Sel("magnifyWithEvent:"), objc.Ptr(event)) } // Informs the receiver that the user has pressed the left mouse button. [Full Topic] @@ -503,69 +485,76 @@ func (r_ Responder) MouseDown(event IEvent) { objc.Call[objc.Void](r_, objc.Sel("mouseDown:"), objc.Ptr(event)) } -// Informs the receiver that the user has released a key. [Full Topic] +// Informs the receiver that the user has begun a swipe gesture. [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:"), objc.Ptr(event)) +// [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:"), objc.Ptr(event)) } -// Informs the responder that performed a double-tap on the side of an Apple Pencil. [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/3237219-changemodewithevent?language=objc -func (r_ Responder) ChangeModeWithEvent(event IEvent) { - objc.Call[objc.Void](r_, objc.Sel("changeModeWithEvent:"), objc.Ptr(event)) +// [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 } -// Informs the receiver that the user has pressed the right mouse button. [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/1524727-rightmousedown?language=objc -func (r_ Responder) RightMouseDown(event IEvent) { - objc.Call[objc.Void](r_, objc.Sel("rightMouseDown:"), objc.Ptr(event)) +// [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) } -// Presents an error alert to the user as a document-modal sheet attached to document window. [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/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:"), objc.Ptr(error), objc.Ptr(window), delegate, didPresentSelector, contextInfo) +// [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:"), objc.Ptr(event)) } -// Informs the receiver that the user has released the right mouse button. [Full Topic] +// Informs the receiver that the user has pressed a key. [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:"), objc.Ptr(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:"), objc.Ptr(event)) } -// 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 a tablet-point event has occurred. [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:"), objc.Ptr(coder), objc.Ptr(queue)) +// [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:"), objc.Ptr(event)) } -// The undo manager for this responder. [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/1535376-undomanager?language=objc -func (r_ Responder) UndoManager() foundation.UndoManager { - rv := objc.Call[foundation.UndoManager](r_, objc.Sel("undoManager")) +// [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:"), objc.Ptr(event)) return rv } -// The NSTouchBar object associated with the responder. [Full Topic] +// Informs the receiver that the user has begun a touch gesture. [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")) - return rv +// [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:"), objc.Ptr(event)) } -// The NSTouchBar object associated with the responder. [Full Topic] +// Restores the interface-related state of the responder. [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:"), objc.Ptr(value)) +// [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:"), objc.Ptr(coder)) +} + +// Informs the receiver that the mouse cursor has moved into a cursor rectangle. [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:"), objc.Ptr(event)) } // Returns an array of key paths representing the restorable attributes of the responder. [Full Topic] @@ -583,19 +572,50 @@ func Responder_RestorableStateKeyPaths() []string { return ResponderClass.RestorableStateKeyPaths() } -// 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] +// The undo manager for 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:"), objc.Ptr(value)) +// [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:"), objc.Ptr(value)) +} + +// The NSTouchBar object associated with the responder. [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")) + return rv +} + +// The NSTouchBar object associated with the responder. [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:"), objc.Ptr(value)) } // Returns the responder’s menu. [Full Topic] @@ -613,25 +633,17 @@ func (r_ Responder) SetMenu(value IMenu) { objc.Call[objc.Void](r_, objc.Sel("setMenu:"), objc.Ptr(value)) } -// 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 -} - -// An object encapsulating a user activity supported by this 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/1534108-useractivity?language=objc -func (r_ Responder) UserActivity() foundation.UserActivity { - rv := objc.Call[foundation.UserActivity](r_, objc.Sel("userActivity")) +// [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 } -// An object encapsulating a user activity supported by this 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/1534108-useractivity?language=objc -func (r_ Responder) SetUserActivity(value foundation.IUserActivity) { - objc.Call[objc.Void](r_, objc.Sel("setUserActivity:"), objc.Ptr(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:"), objc.Ptr(value)) } diff --git a/macos/appkit/rotation_gesture_recognizer.gen.go b/macos/appkit/rotation_gesture_recognizer.gen.go index d0c7fac5..4c04b81e 100644 --- a/macos/appkit/rotation_gesture_recognizer.gen.go +++ b/macos/appkit/rotation_gesture_recognizer.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package appkit @@ -18,10 +18,10 @@ type _RotationGestureRecognizerClass struct { // An interface definition for the [RotationGestureRecognizer] class. type IRotationGestureRecognizer interface { IGestureRecognizer - Rotation() float64 - SetRotation(value float64) RotationInDegrees() float64 SetRotationInDegrees(value float64) + Rotation() float64 + SetRotation(value float64) } // A continuous gesture recognizer that tracks two trackpad touches moving opposite each other in a circular motion. [Full Topic] @@ -42,10 +42,6 @@ func (rc _RotationGestureRecognizerClass) Alloc() RotationGestureRecognizer { return rv } -func RotationGestureRecognizer_Alloc() RotationGestureRecognizer { - return RotationGestureRecognizerClass.Alloc() -} - func (rc _RotationGestureRecognizerClass) New() RotationGestureRecognizer { rv := objc.Call[RotationGestureRecognizer](rc, objc.Sel("new")) rv.Autorelease() @@ -75,21 +71,6 @@ func NewRotationGestureRecognizerWithTargetAction(target objc.IObject, action ob return instance } -// The rotation of the gesture in radians. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsrotationgesturerecognizer/1527087-rotation?language=objc -func (r_ RotationGestureRecognizer) Rotation() float64 { - rv := objc.Call[float64](r_, objc.Sel("rotation")) - return rv -} - -// The rotation of the gesture in radians. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsrotationgesturerecognizer/1527087-rotation?language=objc -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 @@ -104,3 +85,18 @@ func (r_ RotationGestureRecognizer) RotationInDegrees() float64 { 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 +func (r_ RotationGestureRecognizer) Rotation() float64 { + rv := objc.Call[float64](r_, objc.Sel("rotation")) + return rv +} + +// The rotation of the gesture in radians. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsrotationgesturerecognizer/1527087-rotation?language=objc +func (r_ RotationGestureRecognizer) SetRotation(value float64) { + objc.Call[objc.Void](r_, objc.Sel("setRotation:"), value) +} diff --git a/macos/appkit/rule_editor.gen.go b/macos/appkit/rule_editor.gen.go index e580dd15..ff451dfa 100644 --- a/macos/appkit/rule_editor.gen.go +++ b/macos/appkit/rule_editor.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package appkit @@ -19,49 +19,49 @@ type _RuleEditorClass struct { // An interface definition for the [RuleEditor] class. type IRuleEditor interface { IControl - CriteriaForRow(row int) []objc.Object + RemoveRowAtIndex(rowIndex int) + SelectRowIndexesByExtendingSelection(indexes foundation.IIndexSet, extend bool) 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) - RowClass() objc.Class - SetRowClass(value objc.IClass) - Delegate() RuleEditorDelegateWrapper - SetDelegate(value PRuleEditorDelegate) - SetDelegateObject(valueObject objc.IObject) - Predicate() foundation.Predicate - SubrowsKeyPath() string - SetSubrowsKeyPath(value string) - FormattingDictionary() map[string]string - SetFormattingDictionary(value map[string]string) + CriteriaKeyPath() string + SetCriteriaKeyPath(value 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] @@ -82,10 +82,6 @@ func (rc _RuleEditorClass) Alloc() RuleEditor { return rv } -func RuleEditor_Alloc() RuleEditor { - return RuleEditorClass.Alloc() -} - func (rc _RuleEditorClass) New() RuleEditor { rv := objc.Call[RuleEditor](rc, objc.Sel("new")) rv.Autorelease() @@ -115,12 +111,18 @@ func NewRuleEditorWithFrame(frameRect foundation.Rect) RuleEditor { return instance } -// Returns the currently chosen items for a given row. [Full Topic] +// Removes the row at a given index. [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) - return rv +// [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] +// +// [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:"), objc.Ptr(indexes), extend) } // Adds a row to the receiver. [Full Topic] @@ -130,22 +132,6 @@ func (r_ RuleEditor) AddRow(sender objc.IObject) { objc.Call[objc.Void](r_, objc.Sel("addRow:"), sender) } -// Returns the type of a given row. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsruleeditor/1530356-rowtypeforrow?language=objc -func (r_ RuleEditor) RowTypeForRow(rowIndex int) RuleEditorRowType { - rv := objc.Call[RuleEditorRowType](r_, objc.Sel("rowTypeForRow:"), rowIndex) - 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 -} - // 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 @@ -153,6 +139,14 @@ func (r_ RuleEditor) SetCriteriaAndDisplayValuesForRowAtIndex(criteria []objc.IO 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 @@ -161,6 +155,29 @@ func (r_ RuleEditor) ParentRowForRow(rowIndex int) int { return rv } +// Returns the type of a given row. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsruleeditor/1530356-rowtypeforrow?language=objc +func (r_ RuleEditor) RowTypeForRow(rowIndex int) RuleEditorRowType { + rv := objc.Call[RuleEditorRowType](r_, objc.Sel("rowTypeForRow:"), rowIndex) + return rv +} + +// Instructs the receiver to regenerate its predicate by invoking the corresponding delegate method. [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")) +} + +// Returns the currently chosen items for a given row. [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) + return rv +} + // Instructs the receiver to refetch criteria from its delegate. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/appkit/nsruleeditor/1528188-reloadcriteria?language=objc @@ -183,6 +200,14 @@ 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 @@ -198,63 +223,72 @@ func (r_ RuleEditor) PredicateForRow(row int) foundation.Predicate { return rv } -// Sets in the receiver the indexes of rows that are selected. [Full Topic] +// The name of the rule editor’s strings file. [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:"), objc.Ptr(indexes), extend) +// [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 } -// Returns the chosen values for a given row. [Full Topic] +// The name of the rule editor’s strings file. [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 +// [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) } -// Instructs the receiver to regenerate its predicate by invoking the corresponding delegate method. [Full Topic] +// A Boolean value that determines whether the rule editor is editable. [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/1530425-editable?language=objc +func (r_ RuleEditor) IsEditable() bool { + rv := objc.Call[bool](r_, objc.Sel("isEditable")) + return rv } -// Removes the row at a given index. [Full Topic] +// A Boolean value that determines whether the rule editor is editable. [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) +// [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) } -// The name of the rule editor’s strings file. [Full Topic] +// The criteria key path. [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")) +// [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 name of the rule editor’s strings file. [Full Topic] +// The criteria key path. [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/1524761-criteriakeypath?language=objc +func (r_ RuleEditor) SetCriteriaKeyPath(value string) { + objc.Call[objc.Void](r_, objc.Sel("setCriteriaKeyPath:"), value) } -// A Boolean value that indicates whether all the rows can be removed. [Full Topic] +// The key path for the row type. [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")) +// [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 } -// A Boolean value that indicates whether all the rows can be removed. [Full Topic] +// The key path for the row type. [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/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] +// +// [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 row height. [Full Topic] @@ -272,58 +306,57 @@ func (r_ RuleEditor) SetRowHeight(value float64) { objc.Call[objc.Void](r_, objc.Sel("setRowHeight:"), value) } -// A Boolean value that determines whether the rule editor is editable. [Full Topic] +// The number of rows in the rule editor. [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")) +// [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 } -// A Boolean value that determines whether the rule editor is editable. [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/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/1535531-canremoveallrows?language=objc +func (r_ RuleEditor) CanRemoveAllRows() bool { + rv := objc.Call[bool](r_, objc.Sel("canRemoveAllRows")) + return rv } -// The class used to create a new row in the “rows” binding. [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/1535414-rowclass?language=objc -func (r_ RuleEditor) RowClass() objc.Class { - rv := objc.Call[objc.Class](r_, objc.Sel("rowClass")) - 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 class used to create a new row in the “rows” binding. [Full Topic] +// The display values key path. [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:"), objc.Ptr(value)) +// [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 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) Delegate() RuleEditorDelegateWrapper { - rv := objc.Call[RuleEditorDelegateWrapper](r_, objc.Sel("delegate")) - return rv +// [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 rule editor’s delegate. [Full Topic] +// The rule editor’s nesting mode. [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/1533955-nestingmode?language=objc +func (r_ RuleEditor) NestingMode() RuleEditorNestingMode { + rv := objc.Call[RuleEditorNestingMode](r_, objc.Sel("nestingMode")) + return rv } -// The rule editor’s delegate. [Full Topic] +// The rule editor’s nesting mode. [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:"), objc.Ptr(valueObject)) +// [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) } // The rule editor’s predicate. [Full Topic] @@ -349,6 +382,21 @@ 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:"), objc.Ptr(value)) +} + // The formatting dictionary for the rule editor. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/appkit/nsruleeditor/1526737-formattingdictionary?language=objc @@ -364,78 +412,26 @@ func (r_ RuleEditor) SetFormattingDictionary(value map[string]string) { objc.Call[objc.Void](r_, objc.Sel("setFormattingDictionary:"), value) } -// 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) RowTypeKeyPath() string { - rv := objc.Call[string](r_, objc.Sel("rowTypeKeyPath")) - 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 display values key path. [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 -} - -// 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] +// The rule editor’s delegate. [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")) +// [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:"), objc.Ptr(valueObject)) } diff --git a/macos/appkit/rule_editor_delegate.gen.go b/macos/appkit/rule_editor_delegate.gen.go index 10f44fa9..00a26deb 100644 --- a/macos/appkit/rule_editor_delegate.gen.go +++ b/macos/appkit/rule_editor_delegate.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package appkit @@ -11,10 +11,22 @@ 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 @@ -22,10 +34,47 @@ type PRuleEditorDelegate interface { // A delegate implementation builder for the [PRuleEditorDelegate] protocol. type RuleEditorDelegate struct { - _RuleEditorNumberOfChildrenForCriterionWithRowType func(editor RuleEditor, criterion objc.Object, rowType RuleEditorRowType) int - _RuleEditorRowsDidChange func(notification foundation.Notification) + _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) } +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 } @@ -43,6 +92,23 @@ 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 } @@ -61,30 +127,69 @@ func (di *RuleEditorDelegate) RuleEditorRowsDidChange(notification foundation.No di._RuleEditorRowsDidChange(notification) } -// A concrete type wrapper for the [PRuleEditorDelegate] protocol. -type RuleEditorDelegateWrapper struct { +// ensure impl type implements protocol interface +var _ PRuleEditorDelegate = (*RuleEditorDelegateObject)(nil) + +// A concrete type for the [PRuleEditorDelegate] protocol. +type RuleEditorDelegateObject struct { objc.Object } -func (r_ RuleEditorDelegateWrapper) HasRuleEditorNumberOfChildrenForCriterionWithRowType() bool { +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:"), objc.Ptr(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:"), objc.Ptr(editor), criterion, value, row) + return rv +} + +func (r_ RuleEditorDelegateObject) HasRuleEditorNumberOfChildrenForCriterionWithRowType() bool { return r_.RespondsToSelector(objc.Sel("ruleEditor:numberOfChildrenForCriterion:withRowType:")) } // Returns the number of child items of a given criterion or row type. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/appkit/nsruleeditordelegate/1535329-ruleeditor?language=objc -func (r_ RuleEditorDelegateWrapper) RuleEditorNumberOfChildrenForCriterionWithRowType(editor IRuleEditor, criterion objc.IObject, rowType RuleEditorRowType) int { +func (r_ RuleEditorDelegateObject) RuleEditorNumberOfChildrenForCriterionWithRowType(editor RuleEditor, criterion objc.Object, rowType RuleEditorRowType) int { rv := objc.Call[int](r_, objc.Sel("ruleEditor:numberOfChildrenForCriterion:withRowType:"), objc.Ptr(editor), criterion, rowType) return rv } -func (r_ RuleEditorDelegateWrapper) HasRuleEditorRowsDidChange() bool { +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:"), objc.Ptr(editor), index, criterion, rowType) + return rv +} + +func (r_ RuleEditorDelegateObject) HasRuleEditorRowsDidChange() bool { return r_.RespondsToSelector(objc.Sel("ruleEditorRowsDidChange:")) } // Notifies the receiver that a rule editor’s rows changed. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/appkit/nsruleeditordelegate/1533292-ruleeditorrowsdidchange?language=objc -func (r_ RuleEditorDelegateWrapper) RuleEditorRowsDidChange(notification foundation.INotification) { +func (r_ RuleEditorDelegateObject) RuleEditorRowsDidChange(notification foundation.Notification) { objc.Call[objc.Void](r_, objc.Sel("ruleEditorRowsDidChange:"), objc.Ptr(notification)) } diff --git a/macos/appkit/ruler_marker.gen.go b/macos/appkit/ruler_marker.gen.go index 2ba07cea..d631784f 100644 --- a/macos/appkit/ruler_marker.gen.go +++ b/macos/appkit/ruler_marker.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package appkit @@ -19,25 +19,25 @@ type _RulerMarkerClass struct { // An interface definition for the [RulerMarker] class. type IRulerMarker interface { objc.IObject - DrawRect(rect foundation.Rect) TrackMouseAdding(mouseDownEvent IEvent, isAdding bool) bool - ImageRectInRuler() foundation.Rect + DrawRect(rect foundation.Rect) ThicknessRequiredInRuler() float64 - MarkerLocation() float64 - SetMarkerLocation(value float64) - ImageOrigin() foundation.Point - SetImageOrigin(value foundation.Point) Ruler() RulerView - IsRemovable() bool - SetRemovable(value bool) - IsDragging() bool - RepresentedObject() foundation.CopyingWrapper + ImageRectInRuler() foundation.Rect + 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] @@ -72,10 +72,6 @@ func (rc _RulerMarkerClass) Alloc() RulerMarker { return rv } -func RulerMarker_Alloc() RulerMarker { - return RulerMarkerClass.Alloc() -} - func (rc _RulerMarkerClass) New() RulerMarker { rv := objc.Call[RulerMarker](rc, objc.Sel("new")) rv.Autorelease() @@ -91,13 +87,6 @@ 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 @@ -106,12 +95,11 @@ func (r_ RulerMarker) TrackMouseAdding(mouseDownEvent IEvent, isAdding bool) boo return rv } -// The rectangle occupied by the receiver’s image. [Full Topic] +// Draws the receiver’s image that appears in the supplied rectangle. [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")) - return rv +// [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) } // The amount of the receiver’s image that’s displayed above or to the left of the ruler view's baseline. [Full Topic] @@ -122,36 +110,6 @@ 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 @@ -160,34 +118,19 @@ func (r_ RulerMarker) Ruler() RulerView { 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) 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] +// The rectangle occupied by the receiver’s image. [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")) +// [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 object the receiver represents. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/appkit/nsrulermarker/1496244-representedobject?language=objc -func (r_ RulerMarker) RepresentedObject() foundation.CopyingWrapper { - rv := objc.Call[foundation.CopyingWrapper](r_, objc.Sel("representedObject")) +func (r_ RulerMarker) RepresentedObject() foundation.CopyingObject { + rv := objc.Call[foundation.CopyingObject](r_, objc.Sel("representedObject")) return rv } @@ -221,6 +164,14 @@ func (r_ RulerMarker) SetImage(value IImage) { objc.Call[objc.Void](r_, objc.Sel("setImage:"), objc.Ptr(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 @@ -235,3 +186,48 @@ 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 76d1af75..c66acc47 100644 --- a/macos/appkit/ruler_view.gen.go +++ b/macos/appkit/ruler_view.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package appkit @@ -20,34 +20,34 @@ type _RulerViewClass struct { type IRulerView interface { IView InvalidateHashMarks() - TrackMarkerWithMouseEvent(marker IRulerMarker, event IEvent) bool - MoveRulerlineFromLocationToLocation(oldLocation float64, newLocation float64) + AddMarker(marker IRulerMarker) DrawHashMarksAndLabelsInRect(rect foundation.Rect) DrawMarkersInRect(rect foundation.Rect) + MoveRulerlineFromLocationToLocation(oldLocation float64, newLocation float64) + TrackMarkerWithMouseEvent(marker IRulerMarker, event IEvent) bool RemoveMarker(marker IRulerMarker) - AddMarker(marker IRulerMarker) - BaselineLocation() float64 - ReservedThicknessForMarkers() float64 - SetReservedThicknessForMarkers(value float64) - RuleThickness() float64 - SetRuleThickness(value float64) + 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) - OriginOffset() float64 - SetOriginOffset(value float64) + RuleThickness() float64 + SetRuleThickness(value float64) RequiredThickness() float64 - ClientView() View - SetClientView(value IView) - ScrollView() ScrollView - SetScrollView(value IScrollView) + ReservedThicknessForMarkers() float64 + SetReservedThicknessForMarkers(value float64) + BaselineLocation() float64 MeasurementUnits() RulerViewUnitName SetMeasurementUnits(value RulerViewUnitName) - ReservedThicknessForAccessoryView() float64 - SetReservedThicknessForAccessoryView(value float64) - Markers() []RulerMarker - SetMarkers(value []IRulerMarker) - Orientation() RulerOrientation - SetOrientation(value RulerOrientation) + OriginOffset() float64 + SetOriginOffset(value float64) } // A ruler and the markers above or to the side of a scroll view’s document view. [Full Topic] @@ -82,10 +82,6 @@ func (rc _RulerViewClass) Alloc() RulerView { return rv } -func RulerView_Alloc() RulerView { - return RulerViewClass.Alloc() -} - func (rc _RulerViewClass) New() RulerView { rv := objc.Call[RulerView](rc, objc.Sel("new")) rv.Autorelease() @@ -115,6 +111,20 @@ 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:"), objc.Ptr(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 @@ -129,19 +139,18 @@ func RulerView_RegisterUnitWithNameAbbreviationUnitToPointsConversionFactorStepU RulerViewClass.RegisterUnitWithNameAbbreviationUnitToPointsConversionFactorStepUpCycleStepDownCycle(unitName, abbreviation, conversionFactor, stepUpCycle, stepDownCycle) } -// Forces recalculation of the hash mark spacing for the next time the receiver is displayed. [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/1530838-invalidatehashmarks?language=objc -func (r_ RulerView) InvalidateHashMarks() { - objc.Call[objc.Void](r_, objc.Sel("invalidateHashMarks")) +// [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) } -// Tracks the mouse to add aMarker based on the initial mouse-down or mouse-dragged event theEvent. [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/1535375-trackmarker?language=objc -func (r_ RulerView) TrackMarkerWithMouseEvent(marker IRulerMarker, event IEvent) bool { - rv := objc.Call[bool](r_, objc.Sel("trackMarker:withMouseEvent:"), objc.Ptr(marker), objc.Ptr(event)) - return rv +// [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] @@ -151,18 +160,12 @@ func (r_ RulerView) MoveRulerlineFromLocationToLocation(oldLocation float64, new objc.Call[objc.Void](r_, objc.Sel("moveRulerlineFromLocation:toLocation:"), oldLocation, newLocation) } -// 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] +// Tracks the mouse to add aMarker based on the initial mouse-down or mouse-dragged event theEvent. [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) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsrulerview/1535375-trackmarker?language=objc +func (r_ RulerView) TrackMarkerWithMouseEvent(marker IRulerMarker, event IEvent) bool { + rv := objc.Call[bool](r_, objc.Sel("trackMarker:withMouseEvent:"), objc.Ptr(marker), objc.Ptr(event)) + return rv } // Removes aMarker from the receiver, without consulting the client view for approval. [Full Topic] @@ -172,49 +175,79 @@ func (r_ RulerView) RemoveMarker(marker IRulerMarker) { objc.Call[objc.Void](r_, objc.Sel("removeMarker:"), objc.Ptr(marker)) } -// Adds aMarker to the receiver, without consulting the client view for approval. [Full Topic] +// The orientation of the receiver to orientation. [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:"), objc.Ptr(marker)) +// [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 location of the receiver’s baseline, in its own coordinate system. [Full Topic] +// The orientation of the receiver to orientation. [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/1530596-orientation?language=objc +func (r_ RulerView) SetOrientation(value RulerOrientation) { + objc.Call[objc.Void](r_, objc.Sel("setOrientation:"), value) +} + +// 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) ScrollView() ScrollView { + rv := objc.Call[ScrollView](r_, objc.Sel("scrollView")) return rv } -// The room available for ruler markers to thickness. [Full Topic] +// The NSScrollView that owns the receiver to scrollView, without retaining it. [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/1533741-scrollview?language=objc +func (r_ RulerView) SetScrollView(value IScrollView) { + objc.Call[objc.Void](r_, objc.Sel("setScrollView:"), objc.Ptr(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 room available for ruler markers to thickness. [Full Topic] +// 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/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/1535213-markers?language=objc +func (r_ RulerView) SetMarkers(value []IRulerMarker) { + objc.Call[objc.Void](r_, objc.Sel("setMarkers:"), value) } -// The thickness of the area where ruler hash marks and labels are drawn. [Full Topic] +// The room available for the receiver’s accessory view to thickness. [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/1530160-reservedthicknessforaccessoryvie?language=objc +func (r_ RulerView) ReservedThicknessForAccessoryView() float64 { + rv := objc.Call[float64](r_, objc.Sel("reservedThicknessForAccessoryView")) return rv } -// The thickness of the area where ruler hash marks and labels are drawn. [Full Topic] +// The room available for the receiver’s accessory view to thickness. [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/1530160-reservedthicknessforaccessoryvie?language=objc +func (r_ RulerView) SetReservedThicknessForAccessoryView(value float64) { + objc.Call[objc.Void](r_, objc.Sel("setReservedThicknessForAccessoryView:"), value) +} + +// The receiver’s client view, if it has one. [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")) + return rv +} + +// The receiver’s client view, if it has one. [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:"), objc.Ptr(value)) } // The receiver’s accessory view to aView. [Full Topic] @@ -232,19 +265,19 @@ func (r_ RulerView) SetAccessoryView(value IView) { objc.Call[objc.Void](r_, objc.Sel("setAccessoryView:"), objc.Ptr(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 thickness of the area where ruler hash marks and labels are drawn. [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/1527872-rulethickness?language=objc +func (r_ RulerView) RuleThickness() float64 { + rv := objc.Call[float64](r_, objc.Sel("ruleThickness")) 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 thickness of the area where ruler hash marks and labels are drawn. [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/1527872-rulethickness?language=objc +func (r_ RulerView) SetRuleThickness(value float64) { + objc.Call[objc.Void](r_, objc.Sel("setRuleThickness:"), value) } // The thickness needed for proper tiling of the receiver within an NSScrollView. [Full Topic] @@ -255,36 +288,29 @@ func (r_ RulerView) RequiredThickness() float64 { return rv } -// The receiver’s client view, if it has one. [Full Topic] +// The room available for ruler markers to thickness. [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/1535112-reservedthicknessformarkers?language=objc +func (r_ RulerView) ReservedThicknessForMarkers() float64 { + rv := objc.Call[float64](r_, objc.Sel("reservedThicknessForMarkers")) return rv } -// The receiver’s client view, if it has one. [Full Topic] +// The room available for ruler markers to thickness. [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:"), objc.Ptr(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 NSScrollView that owns the receiver to scrollView, without retaining it. [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/1533741-scrollview?language=objc -func (r_ RulerView) ScrollView() ScrollView { - rv := objc.Call[ScrollView](r_, objc.Sel("scrollView")) +// [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 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:"), objc.Ptr(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 @@ -300,47 +326,17 @@ func (r_ RulerView) SetMeasurementUnits(value RulerViewUnitName) { objc.Call[objc.Void](r_, objc.Sel("setMeasurementUnits:"), value) } -// The room available for the receiver’s accessory view 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")) - return rv -} - -// The room available for the receiver’s accessory view 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) -} - -// 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] +// 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/1530596-orientation?language=objc -func (r_ RulerView) Orientation() RulerOrientation { - rv := objc.Call[RulerOrientation](r_, objc.Sel("orientation")) +// [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 orientation of the receiver to orientation. [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/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/1535432-originoffset?language=objc +func (r_ RulerView) SetOriginOffset(value float64) { + objc.Call[objc.Void](r_, objc.Sel("setOriginOffset:"), value) } diff --git a/macos/appkit/running_application.gen.go b/macos/appkit/running_application.gen.go index c5f3dd80..70711a02 100644 --- a/macos/appkit/running_application.gen.go +++ b/macos/appkit/running_application.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package appkit @@ -19,24 +19,24 @@ type _RunningApplicationClass struct { // An interface definition for the [RunningApplication] class. type IRunningApplication interface { objc.IObject - Hide() bool - ForceTerminate() bool + Terminate() bool ActivateWithOptions(options ApplicationActivationOptions) bool Unhide() bool - Terminate() bool - BundleIdentifier() string - ExecutableURL() foundation.URL - IsHidden() bool + Hide() bool + ForceTerminate() bool + ActivationPolicy() ApplicationActivationPolicy OwnsMenuBar() bool - IsTerminated() bool + Icon() Image + BundleURL() foundation.URL + IsFinishedLaunching() bool LaunchDate() foundation.Date IsActive() bool + IsHidden() bool + ExecutableURL() foundation.URL + IsTerminated() bool ExecutableArchitecture() int - ActivationPolicy() ApplicationActivationPolicy LocalizedName() string - Icon() Image - BundleURL() foundation.URL - IsFinishedLaunching() bool + BundleIdentifier() string } // An object that can manipulate and provide information for a single instance of an app. [Full Topic] @@ -57,10 +57,6 @@ func (rc _RunningApplicationClass) Alloc() RunningApplication { return rv } -func RunningApplication_Alloc() RunningApplication { - return RunningApplicationClass.Alloc() -} - func (rc _RunningApplicationClass) New() RunningApplication { rv := objc.Call[RunningApplication](rc, objc.Sel("new")) rv.Autorelease() @@ -76,14 +72,6 @@ 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 @@ -113,11 +101,11 @@ func RunningApplication_TerminateAutomaticallyTerminableApplications() { RunningApplicationClass.TerminateAutomaticallyTerminableApplications() } -// 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 } @@ -137,35 +125,27 @@ func (r_ RunningApplication) Unhide() bool { return rv } -// Attempts to quit the receiver normally. [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")) - return rv -} - -// Indicates the CFBundleIdentifier of the application. [Full Topic] +// Attempts to hide or the 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/1526608-hide?language=objc +func (r_ RunningApplication) Hide() bool { + rv := objc.Call[bool](r_, objc.Sel("hide")) return rv } -// Indicates the URL to the application's executable. [Full Topic] +// Attempts to force the receiver to quit. [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")) +// [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 } -// Indicates whether the application is currently hidden. [Full Topic] +// Indicates the activation policy of the application. [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")) +// [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 } @@ -177,11 +157,27 @@ func (r_ RunningApplication) OwnsMenuBar() bool { return rv } -// Indicates that the receiver’s application has terminated. [Full Topic] +// Returns the icon for the receiver’s application. [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/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 } @@ -193,6 +189,22 @@ 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 @@ -208,27 +220,27 @@ func RunningApplication_CurrentApplication() RunningApplication { return RunningApplicationClass.CurrentApplication() } -// Indicates whether the application is currently frontmost. [Full Topic] +// Indicates the URL to the application's executable. [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")) +// [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 the executing processor architecture for the application. [Full Topic] +// Indicates that the receiver’s application has terminated. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsrunningapplication/1524287-executablearchitecture?language=objc -func (r_ RunningApplication) ExecutableArchitecture() int { - rv := objc.Call[int](r_, objc.Sel("executableArchitecture")) +// [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 } -// Indicates the activation policy of the application. [Full Topic] +// Indicates the executing processor architecture for 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/1524287-executablearchitecture?language=objc +func (r_ RunningApplication) ExecutableArchitecture() int { + rv := objc.Call[int](r_, objc.Sel("executableArchitecture")) return rv } @@ -240,26 +252,10 @@ func (r_ RunningApplication) LocalizedName() string { return rv } -// Returns the icon for the receiver’s application. [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")) - 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] +// Indicates the CFBundleIdentifier of the application. [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/1529140-bundleidentifier?language=objc +func (r_ RunningApplication) BundleIdentifier() string { + rv := objc.Call[string](r_, objc.Sel("bundleIdentifier")) return rv } diff --git a/macos/appkit/save_panel.gen.go b/macos/appkit/save_panel.gen.go index 98a98ae9..369f8da0 100644 --- a/macos/appkit/save_panel.gen.go +++ b/macos/appkit/save_panel.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package appkit @@ -21,43 +21,43 @@ type _SavePanelClass struct { type ISavePanel interface { IPanel Ok(sender objc.IObject) objc.Object - RunModal() ModalResponse + Cancel(sender objc.IObject) objc.Object ValidateVisibleColumns() - BeginWithCompletionHandler(handler func(result ModalResponse)) BeginSheetModalForWindowCompletionHandler(window IWindow, handler func(result ModalResponse)) - Cancel(sender objc.IObject) objc.Object + BeginWithCompletionHandler(handler func(result ModalResponse)) + RunModal() ModalResponse + CanCreateDirectories() bool + SetCanCreateDirectories(value bool) NameFieldLabel() string SetNameFieldLabel(value string) - AllowsOtherFileTypes() bool - SetAllowsOtherFileTypes(value bool) - TagNames() []string - SetTagNames(value []string) - CanSelectHiddenExtension() bool - SetCanSelectHiddenExtension(value bool) + IsExtensionHidden() bool + SetExtensionHidden(value bool) IsExpanded() bool - Prompt() string - SetPrompt(value string) DirectoryURL() foundation.URL SetDirectoryURL(value foundation.IURL) - CanCreateDirectories() bool - SetCanCreateDirectories(value bool) - ShowsTagField() bool - SetShowsTagField(value bool) + Message() string + SetMessage(value string) AccessoryView() View SetAccessoryView(value IView) + Prompt() string + SetPrompt(value string) + CanSelectHiddenExtension() bool + SetCanSelectHiddenExtension(value bool) URL() foundation.URL - ShowsHiddenFiles() bool - SetShowsHiddenFiles(value bool) + TagNames() []string + SetTagNames(value []string) AllowedContentTypes() []uti.Type SetAllowedContentTypes(value []uti.IType) TreatsFilePackagesAsDirectories() bool SetTreatsFilePackagesAsDirectories(value bool) - IsExtensionHidden() bool - SetExtensionHidden(value bool) NameFieldStringValue() string SetNameFieldStringValue(value string) - Message() string - SetMessage(value string) + ShowsHiddenFiles() bool + SetShowsHiddenFiles(value bool) + AllowsOtherFileTypes() bool + SetAllowsOtherFileTypes(value bool) + ShowsTagField() bool + SetShowsTagField(value bool) } // A panel that prompts the user for information about where to save a file. [Full Topic] @@ -78,10 +78,6 @@ func (sc _SavePanelClass) Alloc() SavePanel { return rv } -func SavePanel_Alloc() SavePanel { - return SavePanelClass.Alloc() -} - func (sc _SavePanelClass) New() SavePanel { rv := objc.Call[SavePanel](sc, objc.Sel("new")) rv.Autorelease() @@ -123,20 +119,18 @@ func NewSavePanelWithContentRectStyleMaskBackingDeferScreen(contentRect foundati return instance } -// 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) +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) return rv } -// Displays the panel and begins its event loop with the current working (or last-selected) directory as the default starting point. [Full Topic] +// Initializes the window with the specified values. [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/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 } // Creates a new Save panel and initializes it with default information. [Full Topic] @@ -154,6 +148,22 @@ 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 @@ -161,6 +171,13 @@ 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:"), objc.Ptr(window), handler) +} + // Presents the panel as a modeless window. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/appkit/nssavepanel/1527007-beginwithcompletionhandler?language=objc @@ -168,21 +185,29 @@ func (s_ SavePanel) BeginWithCompletionHandler(handler func(result ModalResponse objc.Call[objc.Void](s_, objc.Sel("beginWithCompletionHandler:"), handler) } -// Presents the panel as a sheet modal to the specified window. [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/nssavepanel/1535870-beginsheetmodalforwindow?language=objc -func (s_ SavePanel) BeginSheetModalForWindowCompletionHandler(window IWindow, handler func(result ModalResponse)) { - objc.Call[objc.Void](s_, objc.Sel("beginSheetModalForWindow:completionHandler:"), objc.Ptr(window), handler) +// [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 } -// The action method that the panel calls when the user clicks the Cancel button. [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/1534357-cancel?language=objc -func (s_ SavePanel) Cancel(sender objc.IObject) objc.Object { - rv := objc.Call[objc.Object](s_, objc.Sel("cancel:"), sender) +// [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 } +// 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 @@ -198,49 +223,19 @@ func (s_ SavePanel) SetNameFieldLabel(value string) { objc.Call[objc.Void](s_, objc.Sel("setNameFieldLabel:"), 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) -} - -// 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] +// A Boolean value that indicates whether to display 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")) +// [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 the panel displays UI for hiding or showing filename extensions. [Full Topic] +// A Boolean value that indicates whether to display 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) +// [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) } // A Boolean value that indicates whether whether the panel is expanded. [Full Topic] @@ -251,21 +246,6 @@ 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 @@ -281,34 +261,19 @@ func (s_ SavePanel) SetDirectoryURL(value foundation.IURL) { objc.Call[objc.Void](s_, objc.Sel("setDirectoryURL:"), objc.Ptr(value)) } -// 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) CanCreateDirectories() bool { - rv := objc.Call[bool](s_, objc.Sel("canCreateDirectories")) - 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) -} - -// 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) } // The custom accessory view for the current app. [Full Topic] @@ -326,6 +291,36 @@ func (s_ SavePanel) SetAccessoryView(value IView) { objc.Call[objc.Void](s_, objc.Sel("setAccessoryView:"), objc.Ptr(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 @@ -334,19 +329,19 @@ func (s_ SavePanel) URL() foundation.URL { return rv } -// A Boolean value that indicates whether the panel displays files that are normally hidden from the user. [Full Topic] +// The tag names that you want to include on a saved file. [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")) +// [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 } -// A Boolean value that indicates whether the panel displays files that are normally hidden from the user. [Full Topic] +// The tag names that you want to include on a saved file. [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) +// [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) } // An array of types that specify the files types to which you can save. [Full Topic] @@ -379,21 +374,6 @@ 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 @@ -409,17 +389,47 @@ func (s_ SavePanel) SetNameFieldStringValue(value string) { objc.Call[objc.Void](s_, objc.Sel("setNameFieldStringValue:"), value) } -// The message text displayed in the panel. [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/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/1524285-showshiddenfiles?language=objc +func (s_ SavePanel) ShowsHiddenFiles() bool { + rv := objc.Call[bool](s_, objc.Sel("showsHiddenFiles")) return rv } -// The message text displayed in the panel. [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/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/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] +// +// [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) } diff --git a/macos/appkit/screen.gen.go b/macos/appkit/screen.gen.go index 4dec0f3d..8fcd0290 100644 --- a/macos/appkit/screen.gen.go +++ b/macos/appkit/screen.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package appkit @@ -21,25 +21,25 @@ type IScreen interface { objc.IObject ConvertRectFromBacking(rect foundation.Rect) foundation.Rect ConvertRectToBacking(rect foundation.Rect) foundation.Rect - CanRepresentDisplayGamut(displayGamut DisplayGamut) bool BackingAlignedRectOptions(rect foundation.Rect, options foundation.AlignmentOptions) foundation.Rect - MinimumRefreshInterval() foundation.TimeInterval - MaximumExtendedDynamicRangeColorComponentValue() float64 - VisibleFrame() foundation.Rect - DisplayUpdateGranularity() foundation.TimeInterval + CanRepresentDisplayGamut(displayGamut DisplayGamut) bool MaximumRefreshInterval() foundation.TimeInterval - LocalizedName() string - MaximumPotentialExtendedDynamicRangeColorComponentValue() float64 + MinimumRefreshInterval() foundation.TimeInterval + Frame() foundation.Rect ColorSpace() ColorSpace - SafeAreaInsets() foundation.EdgeInsets MaximumReferenceExtendedDynamicRangeColorComponentValue() float64 - LastDisplayUpdateTimestamp() foundation.TimeInterval - DeviceDescription() map[DeviceDescriptionKey]objc.Object - Depth() WindowDepth + MaximumFramesPerSecond() int BackingScaleFactor() float64 - Frame() foundation.Rect + LocalizedName() string + LastDisplayUpdateTimestamp() foundation.TimeInterval SupportedWindowDepths() *WindowDepth - MaximumFramesPerSecond() int + MaximumPotentialExtendedDynamicRangeColorComponentValue() float64 + MaximumExtendedDynamicRangeColorComponentValue() float64 + VisibleFrame() foundation.Rect + Depth() WindowDepth + SafeAreaInsets() foundation.EdgeInsets + DisplayUpdateGranularity() foundation.TimeInterval + DeviceDescription() map[DeviceDescriptionKey]objc.Object } // An object that describes the attributes of a computer’s monitor or screen. [Full Topic] @@ -60,10 +60,6 @@ func (sc _ScreenClass) Alloc() Screen { return rv } -func Screen_Alloc() Screen { - return ScreenClass.Alloc() -} - func (sc _ScreenClass) New() Screen { rv := objc.Call[Screen](sc, objc.Sel("new")) rv.Autorelease() @@ -95,6 +91,14 @@ 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 @@ -103,11 +107,11 @@ func (s_ Screen) CanRepresentDisplayGamut(displayGamut DisplayGamut) bool { return rv } -// Converts a rectangle in global screen coordinates to a pixel aligned rectangle. [Full Topic] +// The largest refresh interval that the screen supports. [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) +// [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 } @@ -119,43 +123,50 @@ func (s_ Screen) MinimumRefreshInterval() foundation.TimeInterval { return rv } -// The current maximum color component value for the screen. [Full Topic] +// The dimensions and location of 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/1388387-frame?language=objc +func (s_ Screen) Frame() foundation.Rect { + rv := objc.Call[foundation.Rect](s_, objc.Sel("frame")) return rv } -// The current location and dimensions of the visible 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/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/1388393-screens?language=objc +func (sc _ScreenClass) Screens() []Screen { + rv := objc.Call[[]Screen](sc, objc.Sel("screens")) return rv } -// The number of seconds between the screen’s supported update rates, for screens that support fixed update rates. [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/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/1388393-screens?language=objc +func Screen_Screens() []Screen { + return ScreenClass.Screens() +} + +// The color space of the screen. [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")) return rv } -// The largest refresh interval that the screen supports. [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/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/3180382-maximumreferenceextendeddynamicr?language=objc +func (s_ Screen) MaximumReferenceExtendedDynamicRangeColorComponentValue() float64 { + rv := objc.Call[float64](s_, objc.Sel("maximumReferenceExtendedDynamicRangeColorComponentValue")) return rv } -// The localized name of the display. [Full Topic] +// The maximum number of frames per second that the screen supports. [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/3824745-maximumframespersecond?language=objc +func (s_ Screen) MaximumFramesPerSecond() int { + rv := objc.Call[int](s_, objc.Sel("maximumFramesPerSecond")) return rv } @@ -174,51 +185,35 @@ func Screen_DeepestScreen() Screen { return ScreenClass.DeepestScreen() } -// 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/3180381-maximumpotentialextendeddynamicr?language=objc -func (s_ Screen) MaximumPotentialExtendedDynamicRangeColorComponentValue() float64 { - rv := objc.Call[float64](s_, objc.Sel("maximumPotentialExtendedDynamicRangeColorComponentValue")) - return rv -} - -// The color space of the screen. [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")) - 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 current maximum color component value for reference rendering to the screen. [Full Topic] +// The localized name of the display. [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/3228043-localizedname?language=objc +func (s_ Screen) LocalizedName() string { + rv := objc.Call[string](s_, objc.Sel("localizedName")) return rv } -// Returns an array of screen objects representing all of the screens available on the system. [Full Topic] +// Returns the screen object containing the window with the keyboard focus. [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/1388371-mainscreen?language=objc +func (sc _ScreenClass) MainScreen() Screen { + rv := objc.Call[Screen](sc, objc.Sel("mainScreen")) return rv } -// Returns an array of screen objects representing all of the screens available on the system. [Full Topic] +// Returns the screen object containing the window with the keyboard focus. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsscreen/1388393-screens?language=objc -func Screen_Screens() []Screen { - return ScreenClass.Screens() +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsscreen/1388371-mainscreen?language=objc +func Screen_MainScreen() Screen { + return ScreenClass.MainScreen() } // The time of the last framebuffer update, expressed as the number of seconds since system startup. [Full Topic] @@ -229,27 +224,36 @@ func (s_ Screen) LastDisplayUpdateTimestamp() foundation.TimeInterval { return rv } -// 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 } -// Returns a Boolean value indicating whether each screen can have its own set of spaces. [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/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/3180381-maximumpotentialextendeddynamicr?language=objc +func (s_ Screen) MaximumPotentialExtendedDynamicRangeColorComponentValue() float64 { + rv := objc.Call[float64](s_, objc.Sel("maximumPotentialExtendedDynamicRangeColorComponentValue")) return rv } -// Returns a Boolean value indicating whether each screen can have its own set of spaces. [Full Topic] +// The current maximum color component value for the screen. [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/1388362-maximumextendeddynamicrangecolor?language=objc +func (s_ Screen) MaximumExtendedDynamicRangeColorComponentValue() float64 { + rv := objc.Call[float64](s_, objc.Sel("maximumExtendedDynamicRangeColorComponentValue")) + return rv +} + +// The current location and dimensions of the visible screen. [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")) + return rv } // The current bit depth and colorspace information of the screen. [Full Topic] @@ -260,49 +264,41 @@ func (s_ Screen) Depth() WindowDepth { return rv } -// The backing store pixel scale factor for the screen. [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/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/3882821-safeareainsets?language=objc +func (s_ Screen) SafeAreaInsets() foundation.EdgeInsets { + rv := objc.Call[foundation.EdgeInsets](s_, objc.Sel("safeAreaInsets")) return rv } -// The dimensions and location 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/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/3824743-displayupdategranularity?language=objc +func (s_ Screen) DisplayUpdateGranularity() foundation.TimeInterval { + rv := objc.Call[foundation.TimeInterval](s_, objc.Sel("displayUpdateGranularity")) return rv } -// Returns the screen object containing the window with the keyboard focus. [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/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/1388365-screenshaveseparatespaces?language=objc +func (sc _ScreenClass) ScreensHaveSeparateSpaces() bool { + rv := objc.Call[bool](sc, objc.Sel("screensHaveSeparateSpaces")) return rv } -// Returns the screen object containing the window with the keyboard focus. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsscreen/1388371-mainscreen?language=objc -func Screen_MainScreen() Screen { - return ScreenClass.MainScreen() -} - -// A zero-terminated array of the window depths supported by the 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/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/1388365-screenshaveseparatespaces?language=objc +func Screen_ScreensHaveSeparateSpaces() bool { + return ScreenClass.ScreensHaveSeparateSpaces() } -// The maximum number of frames per second that the screen supports. [Full Topic] +// The device dictionary for the screen. [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/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 } diff --git a/macos/appkit/scroll_view.gen.go b/macos/appkit/scroll_view.gen.go index 25887532..04b1ec44 100644 --- a/macos/appkit/scroll_view.gen.go +++ b/macos/appkit/scroll_view.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package appkit @@ -19,85 +19,85 @@ type _ScrollViewClass struct { // An interface definition for the [ScrollView] class. type IScrollView interface { IView - SetMagnificationCenteredAtPoint(magnification float64, point foundation.Point) - FlashScrollers() + Tile() AddFloatingSubviewForAxis(view IView, axis EventGestureAxis) MagnifyToFitRect(rect foundation.Rect) - Tile() + SetMagnificationCenteredAtPoint(magnification float64, point foundation.Point) + FlashScrollers() + HorizontalRulerView() RulerView + SetHorizontalRulerView(value IRulerView) + VerticalRulerView() RulerView + SetVerticalRulerView(value IRulerView) 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) - AllowsMagnification() bool - SetAllowsMagnification(value bool) - HorizontalPageScroll() float64 - SetHorizontalPageScroll(value float64) - RulersVisible() bool - SetRulersVisible(value bool) + HasHorizontalScroller() bool + SetHasHorizontalScroller(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) - DocumentVisibleRect() foundation.Rect - ScrollerInsets() foundation.EdgeInsets - SetScrollerInsets(value foundation.EdgeInsets) - MinMagnification() float64 - SetMinMagnification(value float64) + VerticalScroller() Scroller + SetVerticalScroller(value IScroller) + RulersVisible() bool + SetRulersVisible(value bool) HasHorizontalRuler() bool SetHasHorizontalRuler(value bool) DocumentView() View SetDocumentView(value IView) - HorizontalLineScroll() float64 - SetHorizontalLineScroll(value float64) - VerticalScroller() Scroller - SetVerticalScroller(value IScroller) + DrawsBackground() bool + SetDrawsBackground(value bool) 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] @@ -132,10 +132,6 @@ func (sc _ScrollViewClass) Alloc() ScrollView { return rv } -func ScrollView_Alloc() ScrollView { - return ScrollViewClass.Alloc() -} - func (sc _ScrollViewClass) New() ScrollView { rv := objc.Call[ScrollView](sc, objc.Sel("new")) rv.Autorelease() @@ -151,18 +147,11 @@ func (s_ ScrollView) Init() ScrollView { return rv } -// 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")) } // Adds a floating subview to the document view. [Full Topic] @@ -179,11 +168,18 @@ func (s_ ScrollView) MagnifyToFitRect(rect foundation.Rect) { objc.Call[objc.Void](s_, objc.Sel("magnifyToFitRect:"), rect) } -// 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")) } // Returns the frame size of a scroll view that contains a content view with the specified size. [Full Topic] @@ -201,140 +197,134 @@ func ScrollView_FrameSizeForContentSizeHorizontalScrollerClassVerticalScrollerCl return ScrollViewClass.FrameSizeForContentSizeHorizontalScrollerClassVerticalScrollerClassBorderTypeControlSizeScrollerStyle(cSize, horizontalScrollerClass, verticalScrollerClass, type_, controlSize, scrollerStyle) } -// The scroll view’s vertical line by line scroll amount. [Full Topic] +// Returns the content size calculated from the frame size and the specified specifications. [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/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, objc.Ptr(horizontalScrollerClass), objc.Ptr(verticalScrollerClass), type_, controlSize, scrollerStyle) return rv } -// The scroll view’s vertical line by line scroll amount. [Full Topic] +// Returns the content size calculated from the frame size and the specified specifications. [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/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) } -// The scroll view’s horizontal scrolling elasticity mode. [Full Topic] +// The scroll view’s horizontal ruler view. [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")) +// [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 scroll view’s horizontal scrolling elasticity mode. [Full Topic] +// The scroll view’s horizontal ruler view. [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) +// [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:"), objc.Ptr(value)) } -// Allows the user to magnify the scroll view. [Full Topic] +// The scroll view’s vertical ruler view. [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/1403507-verticalrulerview?language=objc +func (s_ ScrollView) VerticalRulerView() RulerView { + rv := objc.Call[RulerView](s_, objc.Sel("verticalRulerView")) return rv } -// Allows the user to magnify the scroll view. [Full Topic] +// The scroll view’s vertical ruler view. [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/1403507-verticalrulerview?language=objc +func (s_ ScrollView) SetVerticalRulerView(value IRulerView) { + objc.Call[objc.Void](s_, objc.Sel("setVerticalRulerView:"), objc.Ptr(value)) } -// The amount of the document view kept visible when scrolling horizontally page by page. [Full Topic] +// The scroll view’s vertical 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/1403490-verticallinescroll?language=objc +func (s_ ScrollView) VerticalLineScroll() float64 { + rv := objc.Call[float64](s_, objc.Sel("verticalLineScroll")) return rv } -// The amount of the document view kept visible when scrolling horizontally page by page. [Full Topic] +// The scroll view’s vertical 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/1403490-verticallinescroll?language=objc +func (s_ ScrollView) SetVerticalLineScroll(value float64) { + objc.Call[objc.Void](s_, objc.Sel("setVerticalLineScroll:"), value) } -// Returns the default class to be used for ruler objects in NSScrollViews. [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/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/1403528-bordertype?language=objc +func (s_ ScrollView) BorderType() BorderType { + rv := objc.Call[BorderType](s_, objc.Sel("borderType")) return rv } -// Returns the default class to be used for ruler objects in NSScrollViews. [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/1403492-rulerviewclass?language=objc -func ScrollView_RulerViewClass() objc.Class { - return ScrollViewClass.RulerViewClass() +// [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) } -// Returns the default class to be used for ruler objects in NSScrollViews. [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/1403492-rulerviewclass?language=objc -func (sc _ScrollViewClass) SetRulerViewClass(value objc.IClass) { - objc.Call[objc.Void](sc, objc.Sel("setRulerViewClass:"), objc.Ptr(value)) +// [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 } -// Returns the default class to be used for ruler objects in NSScrollViews. [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/1403492-rulerviewclass?language=objc -func ScrollView_SetRulerViewClass(value objc.IClass) { - ScrollViewClass.SetRulerViewClass(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 displays its rulers. [Full Topic] +// The amount by which the content is currently scaled. [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/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 displays its rulers. [Full Topic] +// The amount by which the content is currently scaled. [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/1403497-magnification?language=objc +func (s_ ScrollView) SetMagnification(value float64) { + objc.Call[objc.Void](s_, objc.Sel("setMagnification:"), value) } -// The content view’s document cursor. [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/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/1403519-scrollsdynamically?language=objc +func (s_ ScrollView) ScrollsDynamically() bool { + rv := objc.Call[bool](s_, objc.Sel("scrollsDynamically")) return rv } -// The content view’s document cursor. [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/1403446-documentcursor?language=objc -func (s_ ScrollView) SetDocumentCursor(value ICursor) { - objc.Call[objc.Void](s_, objc.Sel("setDocumentCursor:"), objc.Ptr(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 keeps a vertical ruler object. [Full Topic] +// The size of the scroll view’s content view. [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")) +// [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 } -// 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 @@ -350,64 +340,49 @@ func (s_ ScrollView) SetMaxMagnification(value float64) { objc.Call[objc.Void](s_, objc.Sel("setMaxMagnification:"), value) } -// 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/1403519-scrollsdynamically?language=objc -func (s_ ScrollView) ScrollsDynamically() bool { - rv := objc.Call[bool](s_, objc.Sel("scrollsDynamically")) - return rv -} - -// 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/1403519-scrollsdynamically?language=objc -func (s_ ScrollView) SetScrollsDynamically(value bool) { - objc.Call[objc.Void](s_, objc.Sel("setScrollsDynamically:"), value) -} - -// The scroll view’s content view, the view that clips the document 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/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/1403544-scrollerknobstyle?language=objc +func (s_ ScrollView) ScrollerKnobStyle() ScrollerKnobStyle { + rv := objc.Call[ScrollerKnobStyle](s_, objc.Sel("scrollerKnobStyle")) return rv } -// The scroll view’s content view, the view that clips the document 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/1403547-contentview?language=objc -func (s_ ScrollView) SetContentView(value IClipView) { - objc.Call[objc.Void](s_, objc.Sel("setContentView:"), objc.Ptr(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) } -// 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) HasVerticalScroller() bool { - rv := objc.Call[bool](s_, objc.Sel("hasVerticalScroller")) +// [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) } -// The position of the find bar. [Full Topic] +// The scroll view’s horizontal line by line scroll amount. [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/1403539-horizontallinescroll?language=objc +func (s_ ScrollView) HorizontalLineScroll() float64 { + rv := objc.Call[float64](s_, objc.Sel("horizontalLineScroll")) return rv } -// The position of the find bar. [Full Topic] +// The scroll view’s horizontal line by line scroll amount. [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/1403539-horizontallinescroll?language=objc +func (s_ ScrollView) SetHorizontalLineScroll(value float64) { + objc.Call[objc.Void](s_, objc.Sel("setHorizontalLineScroll:"), value) } // The scroll view’s horizontal scroller. [Full Topic] @@ -425,94 +400,117 @@ func (s_ ScrollView) SetHorizontalScroller(value IScroller) { objc.Call[objc.Void](s_, objc.Sel("setHorizontalScroller:"), objc.Ptr(value)) } -// The scroller style used by the scroll view. [Full Topic] +// The scroll view’s horizontal scrolling elasticity mode. [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/1403540-horizontalscrollelasticity?language=objc +func (s_ ScrollView) HorizontalScrollElasticity() ScrollElasticity { + rv := objc.Call[ScrollElasticity](s_, objc.Sel("horizontalScrollElasticity")) return rv } -// The scroller style used by the scroll view. [Full Topic] +// The scroll view’s horizontal scrolling elasticity mode. [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/1403540-horizontalscrollelasticity?language=objc +func (s_ ScrollView) SetHorizontalScrollElasticity(value ScrollElasticity) { + objc.Call[objc.Void](s_, objc.Sel("setHorizontalScrollElasticity:"), value) } -// The scroll view’s vertical scrolling elasticity mode. [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/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/1403530-hashorizontalscroller?language=objc +func (s_ ScrollView) HasHorizontalScroller() bool { + rv := objc.Call[bool](s_, objc.Sel("hasHorizontalScroller")) return rv } -// The scroll view’s vertical scrolling elasticity mode. [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/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/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 page by page. [Full Topic] +// The content view’s document cursor. [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/1403446-documentcursor?language=objc +func (s_ ScrollView) DocumentCursor() Cursor { + rv := objc.Call[Cursor](s_, objc.Sel("documentCursor")) return rv } -// The amount of the document view kept visible when scrolling page by page. [Full Topic] +// The content view’s document cursor. [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/1403446-documentcursor?language=objc +func (s_ ScrollView) SetDocumentCursor(value ICursor) { + objc.Call[objc.Void](s_, objc.Sel("setDocumentCursor:"), objc.Ptr(value)) } -// A value that specifies the appearance of the scroll view’s border. [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/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/1403547-contentview?language=objc +func (s_ ScrollView) ContentView() ClipView { + rv := objc.Call[ClipView](s_, objc.Sel("contentView")) return rv } -// A value that specifies the appearance of the scroll view’s border. [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/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/1403547-contentview?language=objc +func (s_ ScrollView) SetContentView(value IClipView) { + objc.Call[objc.Void](s_, objc.Sel("setContentView:"), objc.Ptr(value)) } -// The distance that the scroll view’s subviews are inset from the enclosing scroll view during tiling. [Full Topic] +// 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/1403461-contentinsets?language=objc -func (s_ ScrollView) ContentInsets() foundation.EdgeInsets { - rv := objc.Call[foundation.EdgeInsets](s_, objc.Sel("contentInsets")) +// [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 that the scroll view’s subviews are inset from the enclosing scroll view during tiling. [Full Topic] +// The scroll view’s line by line scroll amount. [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/1403454-linescroll?language=objc +func (s_ ScrollView) LineScroll() float64 { + rv := objc.Call[float64](s_, objc.Sel("lineScroll")) + return rv } -// The amount by which the content is currently scaled. [Full Topic] +// The scroll view’s line by line scroll amount. [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/1403454-linescroll?language=objc +func (s_ ScrollView) SetLineScroll(value float64) { + objc.Call[objc.Void](s_, objc.Sel("setLineScroll:"), value) +} + +// The scroll view’s vertical scrolling elasticity mode. [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")) return rv } -// The amount by which the content is currently scaled. [Full Topic] +// The scroll view’s vertical scrolling elasticity mode. [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/1403475-verticalscrollelasticity?language=objc +func (s_ ScrollView) SetVerticalScrollElasticity(value ScrollElasticity) { + objc.Call[objc.Void](s_, objc.Sel("setVerticalScrollElasticity:"), value) +} + +// A Boolean that indicates whether the scroll view automatically adjusts its content insets. [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")) + return rv +} + +// A Boolean that indicates whether the scroll view automatically adjusts its content insets. [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) } // The color of the content view’s background. [Full Topic] @@ -530,95 +528,79 @@ func (s_ ScrollView) SetBackgroundColor(value IColor) { objc.Call[objc.Void](s_, objc.Sel("setBackgroundColor:"), objc.Ptr(value)) } -// The knob style of scroll views that use the overlay scroller style. [Full Topic] +// The scroller style used by the scroll view. [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/1403520-scrollerstyle?language=objc +func (s_ ScrollView) ScrollerStyle() ScrollerStyle { + rv := objc.Call[ScrollerStyle](s_, objc.Sel("scrollerStyle")) return rv } -// The knob style of scroll views that use the overlay scroller style. [Full Topic] +// The scroller style used by the scroll view. [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/1403520-scrollerstyle?language=objc +func (s_ ScrollView) SetScrollerStyle(value ScrollerStyle) { + objc.Call[objc.Void](s_, objc.Sel("setScrollerStyle:"), value) } -// The scroll view’s 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/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/1403478-horizontalpagescroll?language=objc +func (s_ ScrollView) HorizontalPageScroll() float64 { + rv := objc.Call[float64](s_, objc.Sel("horizontalPageScroll")) return rv } -// The scroll view’s line by line scroll amount. [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) -} - -// The size of the scroll view’s content view. [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/1403458-contentsize?language=objc -func (s_ ScrollView) ContentSize() foundation.Size { - rv := objc.Call[foundation.Size](s_, objc.Sel("contentSize")) - return rv +// [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 Boolean that indicates whether the scroll view draws its background. [Full Topic] +// The minimum value to which the content can be magnified. [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/1403524-minmagnification?language=objc +func (s_ ScrollView) MinMagnification() float64 { + rv := objc.Call[float64](s_, objc.Sel("minMagnification")) return rv } -// A Boolean that indicates whether the scroll view draws its background. [Full Topic] +// The minimum value to which the content can be magnified. [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/1403524-minmagnification?language=objc +func (s_ ScrollView) SetMinMagnification(value float64) { + objc.Call[objc.Void](s_, objc.Sel("setMinMagnification:"), value) } -// A Boolean that indicates whether the scroll view automatically hides its scroll bars when they are not needed. [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/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/1403491-hasverticalscroller?language=objc +func (s_ ScrollView) HasVerticalScroller() bool { + rv := objc.Call[bool](s_, objc.Sel("hasVerticalScroller")) return rv } -// A Boolean that indicates whether the scroll view automatically hides its scroll bars when they are not needed. [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/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/1403491-hasverticalscroller?language=objc +func (s_ ScrollView) SetHasVerticalScroller(value bool) { + objc.Call[objc.Void](s_, objc.Sel("setHasVerticalScroller:"), value) } -// A Boolean that indicates whether the scroll view uses a predominant scrolling axis for content. [Full Topic] +// Allows the user to magnify the scroll 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/1403531-allowsmagnification?language=objc +func (s_ ScrollView) AllowsMagnification() bool { + rv := objc.Call[bool](s_, objc.Sel("allowsMagnification")) return rv } -// 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/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] +// Allows the user to magnify the scroll 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 +// [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 distance the scrollers are inset from the edge of the scroll view. [Full Topic] @@ -636,64 +618,93 @@ func (s_ ScrollView) SetScrollerInsets(value foundation.EdgeInsets) { objc.Call[objc.Void](s_, objc.Sel("setScrollerInsets:"), value) } -// The minimum value to which the content can be magnified. [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/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/1403496-hasverticalruler?language=objc +func (s_ ScrollView) HasVerticalRuler() bool { + rv := objc.Call[bool](s_, objc.Sel("hasVerticalRuler")) return rv } -// The minimum value to which the content can be magnified. [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/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/1403496-hasverticalruler?language=objc +func (s_ ScrollView) SetHasVerticalRuler(value bool) { + objc.Call[objc.Void](s_, objc.Sel("setHasVerticalRuler:"), value) } -// A Boolean that indicates whether the scroll view keeps a horizontal ruler object. [Full Topic] +// The position of the find bar. [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/1403501-findbarposition?language=objc +func (s_ ScrollView) FindBarPosition() ScrollViewFindBarPosition { + rv := objc.Call[ScrollViewFindBarPosition](s_, objc.Sel("findBarPosition")) return rv } -// A Boolean that indicates whether the scroll view keeps a horizontal ruler object. [Full Topic] +// The position of the find bar. [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/1403501-findbarposition?language=objc +func (s_ ScrollView) SetFindBarPosition(value ScrollViewFindBarPosition) { + objc.Call[objc.Void](s_, objc.Sel("setFindBarPosition:"), value) } -// The view the scroll view scrolls within its 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/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/1403449-pagescroll?language=objc +func (s_ ScrollView) PageScroll() float64 { + rv := objc.Call[float64](s_, objc.Sel("pageScroll")) return rv } -// The view the scroll view scrolls within its 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/1403485-documentview?language=objc -func (s_ ScrollView) SetDocumentView(value IView) { - objc.Call[objc.Void](s_, objc.Sel("setDocumentView:"), objc.Ptr(value)) +// [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 horizontal line by line scroll amount. [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/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/1403489-usespredominantaxisscrolling?language=objc +func (s_ ScrollView) UsesPredominantAxisScrolling() bool { + rv := objc.Call[bool](s_, objc.Sel("usesPredominantAxisScrolling")) return rv } -// The scroll view’s horizontal line by line scroll amount. [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/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/1403489-usespredominantaxisscrolling?language=objc +func (s_ ScrollView) SetUsesPredominantAxisScrolling(value bool) { + objc.Call[objc.Void](s_, objc.Sel("setUsesPredominantAxisScrolling:"), value) +} + +// 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) RulerViewClass() objc.Class { + rv := objc.Call[objc.Class](sc, objc.Sel("rulerViewClass")) + 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:"), objc.Ptr(value)) +} + +// 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_SetRulerViewClass(value objc.IClass) { + ScrollViewClass.SetRulerViewClass(value) } // The scroll view’s vertical scroller. [Full Topic] @@ -711,77 +722,77 @@ func (s_ ScrollView) SetVerticalScroller(value IScroller) { objc.Call[objc.Void](s_, objc.Sel("setVerticalScroller:"), objc.Ptr(value)) } -// The amount of the document view kept visible when scrolling vertically page by page. [Full Topic] +// A Boolean that indicates whether the scroll view displays its rulers. [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/1403445-rulersvisible?language=objc +func (s_ ScrollView) RulersVisible() bool { + rv := objc.Call[bool](s_, objc.Sel("rulersVisible")) return rv } -// The amount of the document view kept visible when scrolling vertically page by page. [Full Topic] +// A Boolean that indicates whether the scroll view displays its rulers. [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/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 automatically adjusts its content insets. [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/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/1403457-hashorizontalruler?language=objc +func (s_ ScrollView) HasHorizontalRuler() bool { + rv := objc.Call[bool](s_, objc.Sel("hasHorizontalRuler")) return rv } -// A Boolean that indicates whether the scroll view automatically adjusts its content insets. [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/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/1403457-hashorizontalruler?language=objc +func (s_ ScrollView) SetHasHorizontalRuler(value bool) { + objc.Call[objc.Void](s_, objc.Sel("setHasHorizontalRuler:"), value) } -// The scroll view’s vertical ruler view. [Full Topic] +// The view the scroll view scrolls within its content 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/1403485-documentview?language=objc +func (s_ ScrollView) DocumentView() View { + rv := objc.Call[View](s_, objc.Sel("documentView")) return rv } -// The scroll view’s vertical ruler view. [Full Topic] +// The view the scroll view scrolls within its content 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:"), objc.Ptr(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:"), objc.Ptr(value)) } -// A Boolean that indicates whether the scroll view has a horizontal 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/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/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 horizontal 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/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/1403474-drawsbackground?language=objc +func (s_ ScrollView) SetDrawsBackground(value bool) { + objc.Call[objc.Void](s_, objc.Sel("setDrawsBackground:"), value) } -// The scroll view’s horizontal ruler view. [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/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/1403512-verticalpagescroll?language=objc +func (s_ ScrollView) VerticalPageScroll() float64 { + rv := objc.Call[float64](s_, objc.Sel("verticalPageScroll")) return rv } -// The scroll view’s horizontal ruler view. [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/1403498-horizontalrulerview?language=objc -func (s_ ScrollView) SetHorizontalRulerView(value IRulerView) { - objc.Call[objc.Void](s_, objc.Sel("setHorizontalRulerView:"), objc.Ptr(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) } diff --git a/macos/appkit/scroller.gen.go b/macos/appkit/scroller.gen.go index bd7e3b10..2f622b11 100644 --- a/macos/appkit/scroller.gen.go +++ b/macos/appkit/scroller.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package appkit @@ -19,20 +19,20 @@ type _ScrollerClass struct { // An interface definition for the [Scroller] class. type IScroller interface { IControl - CheckSpaceForParts() - TrackKnob(event IEvent) - SetKnobProportion(proportion float64) TestPart(point foundation.Point) ScrollerPart + SetKnobProportion(proportion float64) + CheckSpaceForParts() DrawKnob() + TrackKnob(event IEvent) DrawKnobSlotInRectHighlight(slotRect foundation.Rect, flag bool) RectForPart(partCode ScrollerPart) foundation.Rect - ScrollerStyle() ScrollerStyle - SetScrollerStyle(value ScrollerStyle) + HitPart() ScrollerPart + KnobProportion() float64 KnobStyle() ScrollerKnobStyle SetKnobStyle(value ScrollerKnobStyle) UsableParts() UsableScrollerParts - HitPart() ScrollerPart - KnobProportion() float64 + ScrollerStyle() ScrollerStyle + SetScrollerStyle(value ScrollerStyle) } // An object that controls scrolling of a document view within a scroll view or other type of container view. [Full Topic] @@ -53,10 +53,6 @@ func (sc _ScrollerClass) Alloc() Scroller { return rv } -func Scroller_Alloc() Scroller { - return ScrollerClass.Alloc() -} - func (sc _ScrollerClass) New() Scroller { rv := objc.Call[Scroller](sc, objc.Sel("new")) rv.Autorelease() @@ -86,18 +82,27 @@ func NewScrollerWithFrame(frameRect foundation.Rect) Scroller { return instance } -// 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 } -// Tracks the knob and sends action messages to the receiver’s target. [Full Topic] +// Returns the width for scrollers of the receiving class for a given control size and scroller style. [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:"), objc.Ptr(event)) +// [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 +} + +// Returns the width for scrollers of the receiving class for a given control size and scroller style. [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) } // The proportion of the knob slot that the knob should fill. [Full Topic] @@ -107,12 +112,11 @@ func (s_ Scroller) SetKnobProportion(proportion float64) { objc.Call[objc.Void](s_, objc.Sel("setKnobProportion:"), proportion) } -// Returns the part that would be hit by a mouse-down event at aPoint (expressed in the window’s coordinate system). [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/1523645-testpart?language=objc -func (s_ Scroller) TestPart(point foundation.Point) ScrollerPart { - rv := objc.Call[ScrollerPart](s_, objc.Sel("testPart:"), point) - 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")) } // Draws the knob. [Full Topic] @@ -122,6 +126,13 @@ 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:"), objc.Ptr(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 @@ -137,36 +148,22 @@ func (s_ Scroller) RectForPart(partCode ScrollerPart) foundation.Rect { return rv } -// The scroller style for this scroller. [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/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/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] -// -// [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] +// The proportion of the knob slot that the knob should fill. [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")) +// [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’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 @@ -182,14 +179,6 @@ 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 @@ -205,18 +194,40 @@ func Scroller_CompatibleWithOverlayScrollers() bool { return ScrollerClass.CompatibleWithOverlayScrollers() } -// A part code indicating the manner in which the scrolling should be performed. [Full Topic] +// The scroller’s knob style. [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/1523666-knobstyle?language=objc +func (s_ Scroller) KnobStyle() ScrollerKnobStyle { + rv := objc.Call[ScrollerKnobStyle](s_, objc.Sel("knobStyle")) return rv } -// The proportion of the knob slot that the knob should fill. [Full Topic] +// The scroller’s knob style. [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/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] +// +// [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 } + +// The scroller style for this scroller. [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")) + 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 6429f0d5..a9ef47d2 100644 --- a/macos/appkit/scrubber.gen.go +++ b/macos/appkit/scrubber.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package appkit @@ -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() - DataSource() ScrubberDataSourceWrapper - SetDataSource(value PScrubberDataSource) - SetDataSourceObject(valueObject objc.IObject) - BackgroundView() View - SetBackgroundView(value IView) - IsContinuous() bool - SetContinuous(value bool) - HighlightedIndex() int - Delegate() ScrubberDelegateWrapper - SetDelegate(value PScrubberDelegate) - SetDelegateObject(valueObject objc.IObject) - BackgroundColor() Color - SetBackgroundColor(value IColor) - ShowsAdditionalContentIndicators() bool - SetShowsAdditionalContentIndicators(value bool) + RegisterClassForItemIdentifier(itemViewClass objc.IClass, itemIdentifier UserInterfaceItemIdentifier) + RegisterNibForItemIdentifier(nib INib, itemIdentifier UserInterfaceItemIdentifier) + MakeItemWithIdentifierOwner(itemIdentifier UserInterfaceItemIdentifier, owner objc.IObject) ScrubberItemView 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) - Mode() ScrubberMode - SetMode(value ScrubberMode) + Delegate() ScrubberDelegateObject + SetDelegate(value PScrubberDelegate) + SetDelegateObject(valueObject objc.IObject) + IsContinuous() bool + SetContinuous(value bool) + BackgroundView() View + SetBackgroundView(value IView) + ShowsAdditionalContentIndicators() bool + SetShowsAdditionalContentIndicators(value bool) ItemAlignment() ScrubberAlignment SetItemAlignment(value ScrubberAlignment) - FloatsSelectionViews() bool - SetFloatsSelectionViews(value bool) - SelectedIndex() int - SetSelectedIndex(value int) - ShowsArrowButtons() bool - SetShowsArrowButtons(value bool) + DataSource() ScrubberDataSourceObject + SetDataSource(value PScrubberDataSource) + SetDataSourceObject(valueObject objc.IObject) } // A customizable item picker control for the Touch Bar. [Full Topic] @@ -96,10 +96,6 @@ func (sc _ScrubberClass) Alloc() Scrubber { return rv } -func Scrubber_Alloc() Scrubber { - return ScrubberClass.Alloc() -} - func (sc _ScrubberClass) New() Scrubber { rv := objc.Call[Scrubber](sc, objc.Sel("new")) rv.Autorelease() @@ -115,33 +111,26 @@ func (s_ Scrubber) Init() Scrubber { return rv } -// 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:"), objc.Ptr(nib), itemIdentifier) -} - -// Creates or returns a reusable item object with the specified identifier. [Full Topic] +// Returns the view for the item at the specified index. [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/2544862-itemviewforitematindex?language=objc +func (s_ Scrubber) ItemViewForItemAtIndex(index int) ScrubberItemView { + rv := objc.Call[ScrubberItemView](s_, objc.Sel("itemViewForItemAtIndex:"), index) return rv } -// Moves an item from one index to another in the scrubber. [Full Topic] +// Removes the items at the specified indexes from the scrubber. [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/2544679-removeitemsatindexes?language=objc +func (s_ Scrubber) RemoveItemsAtIndexes(indexes foundation.IIndexSet) { + objc.Call[objc.Void](s_, objc.Sel("removeItemsAtIndexes:"), objc.Ptr(indexes)) } -// Registers a class for the scrubber to use when it creates new items. [Full Topic] +// Reloads the items at the specified indexes. [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:"), objc.Ptr(itemViewClass), itemIdentifier) +// [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:"), objc.Ptr(indexes)) } // Scrolls an item to a specified alignment within the scrubber. [Full Topic] @@ -151,19 +140,11 @@ func (s_ Scrubber) ScrollItemAtIndexToAlignment(index int, alignment ScrubberAli objc.Call[objc.Void](s_, objc.Sel("scrollItemAtIndex:toAlignment:"), index, alignment) } -// Returns the view for the item at the specified index. [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) - return rv -} - -// Removes the items at the specified indexes from the scrubber. [Full Topic] +// Combines multiple scrubber content updates into a single action. [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:"), objc.Ptr(indexes)) +// [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) } // Inserts new items at the specified indexes into the scrubber. [Full Topic] @@ -173,18 +154,11 @@ func (s_ Scrubber) InsertItemsAtIndexes(indexes foundation.IIndexSet) { objc.Call[objc.Void](s_, objc.Sel("insertItemsAtIndexes:"), objc.Ptr(indexes)) } -// Reloads the items at the specified indexes. [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:"), objc.Ptr(indexes)) -} - -// Combines multiple scrubber content updates into a single action. [Full Topic] +// Moves an item from one index to another in the scrubber. [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/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 content of the entire scrubber, and deselects the currently selected item. [Full Topic] @@ -194,90 +168,101 @@ func (s_ Scrubber) ReloadData() { objc.Call[objc.Void](s_, objc.Sel("reloadData")) } -// The object that provides the data for the scrubber. [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/2544804-datasource?language=objc -func (s_ Scrubber) DataSource() ScrubberDataSourceWrapper { - rv := objc.Call[ScrubberDataSourceWrapper](s_, objc.Sel("dataSource")) - return rv +// [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:"), objc.Ptr(itemViewClass), itemIdentifier) } -// The object that provides the data for the scrubber. [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/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) +// [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:"), objc.Ptr(nib), itemIdentifier) } -// The object that provides the data for the scrubber. [Full Topic] +// Creates or returns a reusable item object with the specified identifier. [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:"), objc.Ptr(valueObject)) +// [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 } -// A view that is displayed behind the scrubber content. [Full Topic] +// The style applied to the background of selected items. [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/2588270-selectionbackgroundstyle?language=objc +func (s_ Scrubber) SelectionBackgroundStyle() ScrubberSelectionStyle { + rv := objc.Call[ScrubberSelectionStyle](s_, objc.Sel("selectionBackgroundStyle")) return rv } -// A view that is displayed behind the scrubber content. [Full Topic] +// The style applied to the background of selected items. [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:"), objc.Ptr(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:"), objc.Ptr(value)) } -// A Boolean value that, together with the mode property, determines scrubber interaction style. [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/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/2646904-floatsselectionviews?language=objc +func (s_ Scrubber) FloatsSelectionViews() bool { + rv := objc.Call[bool](s_, objc.Sel("floatsSelectionViews")) return rv } -// A Boolean value that, together with the mode property, determines scrubber interaction style. [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/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/2646904-floatsselectionviews?language=objc +func (s_ Scrubber) SetFloatsSelectionViews(value bool) { + objc.Call[objc.Void](s_, objc.Sel("setFloatsSelectionViews:"), value) } -// The index of the highlighted item in the scrubber. [Full Topic] +// An object used to describe the layout of items within the scrubber. [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/2544850-scrubberlayout?language=objc +func (s_ Scrubber) ScrubberLayout() ScrubberLayout { + rv := objc.Call[ScrubberLayout](s_, objc.Sel("scrubberLayout")) return rv } -// The object that acts as the delegate of the scrubber. [Full Topic] +// An object used to describe the layout of items within the scrubber. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsscrubber/2544738-delegate?language=objc -func (s_ Scrubber) Delegate() ScrubberDelegateWrapper { - rv := objc.Call[ScrubberDelegateWrapper](s_, objc.Sel("delegate")) +// [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:"), objc.Ptr(value)) +} + +// 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/2544865-showsarrowbuttons?language=objc +func (s_ Scrubber) ShowsArrowButtons() bool { + rv := objc.Call[bool](s_, objc.Sel("showsArrowButtons")) return rv } -// The object that acts as the delegate of 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/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) +// [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) } -// The object that acts as the delegate of the scrubber. [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/2544738-delegate?language=objc -func (s_ Scrubber) SetDelegateObject(valueObject objc.IObject) { - objc.Call[objc.Void](s_, objc.Sel("setDelegate:"), objc.Ptr(valueObject)) +// [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 setting that determines whether interaction with the scrubber is fixed or free. [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) } // The color displayed behind the scrubber content. [Full Topic] @@ -295,49 +280,27 @@ func (s_ Scrubber) SetBackgroundColor(value IColor) { objc.Call[objc.Void](s_, objc.Sel("setBackgroundColor:"), objc.Ptr(value)) } -// 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/2544827-showsadditionalcontentindicators?language=objc -func (s_ Scrubber) ShowsAdditionalContentIndicators() bool { - rv := objc.Call[bool](s_, objc.Sel("showsAdditionalContentIndicators")) - 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] -// -// [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] +// The index of the highlighted item in 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")) +// [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 } -// 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) SetSelectionBackgroundStyle(value IScrubberSelectionStyle) { - objc.Call[objc.Void](s_, objc.Sel("setSelectionBackgroundStyle:"), objc.Ptr(value)) -} - -// An object used to describe the layout of items within the scrubber. [Full Topic] +// The index of the selected item in 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")) +// [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 } -// An object used to describe the layout of items within the scrubber. [Full Topic] +// The index of the selected item in 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:"), objc.Ptr(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 number of items represented by the scrubber. [Full Topic] @@ -363,77 +326,110 @@ func (s_ Scrubber) SetSelectionOverlayStyle(value IScrubberSelectionStyle) { objc.Call[objc.Void](s_, objc.Sel("setSelectionOverlayStyle:"), objc.Ptr(value)) } -// 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")) +// [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) 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) 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 specifies the snapping behavior of items in 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/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/2544738-delegate?language=objc +func (s_ Scrubber) SetDelegateObject(valueObject objc.IObject) { + objc.Call[objc.Void](s_, objc.Sel("setDelegate:"), objc.Ptr(valueObject)) +} + +// A Boolean value that, together with the [appkit/nsscrubber/mode] property, determines scrubber interaction style. [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")) return rv } -// A setting that specifies the snapping behavior of items in the scrubber. [Full Topic] +// A Boolean value that, together with the [appkit/nsscrubber/mode] property, determines scrubber interaction style. [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/2544694-continuous?language=objc +func (s_ Scrubber) SetContinuous(value bool) { + objc.Call[objc.Void](s_, objc.Sel("setContinuous:"), value) } -// 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:"), objc.Ptr(value)) } -// 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) 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) SetSelectedIndex(value int) { - objc.Call[objc.Void](s_, objc.Sel("setSelectedIndex:"), value) +// [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) } -// A Boolean value that specifies whether arrow buttons should be displayed at the leading and trailing edges of the scrubber. [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/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/2544782-itemalignment?language=objc +func (s_ Scrubber) ItemAlignment() ScrubberAlignment { + rv := objc.Call[ScrubberAlignment](s_, objc.Sel("itemAlignment")) return rv } -// A Boolean value that specifies whether arrow buttons should be displayed at the leading and trailing edges of the scrubber. [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/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/2544782-itemalignment?language=objc +func (s_ Scrubber) SetItemAlignment(value ScrubberAlignment) { + objc.Call[objc.Void](s_, objc.Sel("setItemAlignment:"), value) +} + +// 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) DataSource() ScrubberDataSourceObject { + rv := objc.Call[ScrubberDataSourceObject](s_, objc.Sel("dataSource")) + 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] +// +// [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:"), objc.Ptr(valueObject)) } diff --git a/macos/appkit/scrubber_arranged_view.gen.go b/macos/appkit/scrubber_arranged_view.gen.go index 0bf42875..828c39b2 100644 --- a/macos/appkit/scrubber_arranged_view.gen.go +++ b/macos/appkit/scrubber_arranged_view.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package appkit @@ -20,10 +20,10 @@ type _ScrubberArrangedViewClass struct { type IScrubberArrangedView interface { IView ApplyLayoutAttributes(layoutAttributes IScrubberLayoutAttributes) - IsHighlighted() bool - SetHighlighted(value bool) IsSelected() bool SetSelected(value bool) + IsHighlighted() bool + SetHighlighted(value bool) } // An abstract base class for the views whose layout is managed by a scrubber. [Full Topic] @@ -44,10 +44,6 @@ func (sc _ScrubberArrangedViewClass) Alloc() ScrubberArrangedView { return rv } -func ScrubberArrangedView_Alloc() ScrubberArrangedView { - return ScrubberArrangedViewClass.Alloc() -} - func (sc _ScrubberArrangedViewClass) New() ScrubberArrangedView { rv := objc.Call[ScrubberArrangedView](sc, objc.Sel("new")) rv.Autorelease() @@ -84,21 +80,6 @@ func (s_ ScrubberArrangedView) ApplyLayoutAttributes(layoutAttributes IScrubberL objc.Call[objc.Void](s_, objc.Sel("applyLayoutAttributes:"), objc.Ptr(layoutAttributes)) } -// 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 -func (s_ ScrubberArrangedView) IsHighlighted() bool { - rv := objc.Call[bool](s_, objc.Sel("isHighlighted")) - return rv -} - -// 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 -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 @@ -113,3 +94,18 @@ func (s_ ScrubberArrangedView) IsSelected() bool { 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 +func (s_ ScrubberArrangedView) IsHighlighted() bool { + rv := objc.Call[bool](s_, objc.Sel("isHighlighted")) + return rv +} + +// 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 +func (s_ ScrubberArrangedView) SetHighlighted(value bool) { + objc.Call[objc.Void](s_, objc.Sel("setHighlighted:"), value) +} diff --git a/macos/appkit/scrubber_data_source.gen.go b/macos/appkit/scrubber_data_source_protocol.gen.go similarity index 66% rename from macos/appkit/scrubber_data_source.gen.go rename to macos/appkit/scrubber_data_source_protocol.gen.go index dd0386f6..ab376751 100644 --- a/macos/appkit/scrubber_data_source.gen.go +++ b/macos/appkit/scrubber_data_source_protocol.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package appkit @@ -10,40 +10,43 @@ import ( // // [Full Topic]: https://developer.apple.com/documentation/appkit/nsscrubberdatasource?language=objc type PScrubberDataSource interface { - // optional - ScrubberViewForItemAtIndex(scrubber Scrubber, index int) IScrubberItemView - HasScrubberViewForItemAtIndex() bool - // optional NumberOfItemsForScrubber(scrubber Scrubber) int HasNumberOfItemsForScrubber() bool + + // optional + ScrubberViewForItemAtIndex(scrubber Scrubber, index int) ScrubberItemView + HasScrubberViewForItemAtIndex() bool } -// A concrete type wrapper for the [PScrubberDataSource] protocol. -type ScrubberDataSourceWrapper struct { +// ensure impl type implements protocol interface +var _ PScrubberDataSource = (*ScrubberDataSourceObject)(nil) + +// A concrete type for the [PScrubberDataSource] protocol. +type ScrubberDataSourceObject struct { objc.Object } -func (s_ ScrubberDataSourceWrapper) HasScrubberViewForItemAtIndex() bool { - return s_.RespondsToSelector(objc.Sel("scrubber:viewForItemAtIndex:")) +func (s_ ScrubberDataSourceObject) HasNumberOfItemsForScrubber() bool { + return s_.RespondsToSelector(objc.Sel("numberOfItemsForScrubber:")) } -// Asks the data source object for the view the corresponds to the specified item in the scrubber. [Full Topic] +// Asks the data source for the number of items in the scrubber. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsscrubberdatasource/2544709-scrubber?language=objc -func (s_ ScrubberDataSourceWrapper) ScrubberViewForItemAtIndex(scrubber IScrubber, index int) ScrubberItemView { - rv := objc.Call[ScrubberItemView](s_, objc.Sel("scrubber:viewForItemAtIndex:"), objc.Ptr(scrubber), index) +// [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:"), objc.Ptr(scrubber)) return rv } -func (s_ ScrubberDataSourceWrapper) HasNumberOfItemsForScrubber() bool { - return s_.RespondsToSelector(objc.Sel("numberOfItemsForScrubber:")) +func (s_ ScrubberDataSourceObject) HasScrubberViewForItemAtIndex() bool { + return s_.RespondsToSelector(objc.Sel("scrubber:viewForItemAtIndex:")) } -// Asks the data source for the number of items in the scrubber. [Full Topic] +// Asks the data source object for the view the corresponds to the specified item in the scrubber. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsscrubberdatasource/2544845-numberofitemsforscrubber?language=objc -func (s_ ScrubberDataSourceWrapper) NumberOfItemsForScrubber(scrubber IScrubber) int { - rv := objc.Call[int](s_, objc.Sel("numberOfItemsForScrubber:"), objc.Ptr(scrubber)) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsscrubberdatasource/2544709-scrubber?language=objc +func (s_ ScrubberDataSourceObject) ScrubberViewForItemAtIndex(scrubber Scrubber, index int) ScrubberItemView { + rv := objc.Call[ScrubberItemView](s_, objc.Sel("scrubber:viewForItemAtIndex:"), objc.Ptr(scrubber), index) return rv } diff --git a/macos/appkit/scrubber_delegate.gen.go b/macos/appkit/scrubber_delegate.gen.go index 0cbe48c7..48a5b922 100644 --- a/macos/appkit/scrubber_delegate.gen.go +++ b/macos/appkit/scrubber_delegate.gen.go @@ -1,8 +1,9 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package appkit import ( + "github.com/progrium/macdriver/macos/foundation" "github.com/progrium/macdriver/objc" ) @@ -11,63 +12,56 @@ import ( // [Full Topic]: https://developer.apple.com/documentation/appkit/nsscrubberdelegate?language=objc type PScrubberDelegate interface { // optional - DidFinishInteractingWithScrubber(scrubber Scrubber) - HasDidFinishInteractingWithScrubber() bool - - // optional - ScrubberDidSelectItemAtIndex(scrubber Scrubber, selectedIndex int) - HasScrubberDidSelectItemAtIndex() bool + ScrubberDidHighlightItemAtIndex(scrubber Scrubber, highlightedIndex int) + HasScrubberDidHighlightItemAtIndex() bool // optional DidBeginInteractingWithScrubber(scrubber Scrubber) HasDidBeginInteractingWithScrubber() bool + // optional + ScrubberDidSelectItemAtIndex(scrubber Scrubber, selectedIndex int) + HasScrubberDidSelectItemAtIndex() bool + // optional DidCancelInteractingWithScrubber(scrubber Scrubber) HasDidCancelInteractingWithScrubber() bool + + // optional + ScrubberDidChangeVisibleRange(scrubber Scrubber, visibleRange foundation.Range) + HasScrubberDidChangeVisibleRange() bool + + // optional + DidFinishInteractingWithScrubber(scrubber Scrubber) + HasDidFinishInteractingWithScrubber() bool } // A delegate implementation builder for the [PScrubberDelegate] protocol. type ScrubberDelegate struct { - _DidFinishInteractingWithScrubber func(scrubber Scrubber) - _ScrubberDidSelectItemAtIndex func(scrubber Scrubber, selectedIndex int) + _ScrubberDidHighlightItemAtIndex func(scrubber Scrubber, highlightedIndex int) _DidBeginInteractingWithScrubber func(scrubber Scrubber) + _ScrubberDidSelectItemAtIndex func(scrubber Scrubber, selectedIndex int) _DidCancelInteractingWithScrubber func(scrubber Scrubber) + _ScrubberDidChangeVisibleRange func(scrubber Scrubber, visibleRange foundation.Range) + _DidFinishInteractingWithScrubber func(scrubber Scrubber) } -func (di *ScrubberDelegate) HasDidFinishInteractingWithScrubber() bool { - return di._DidFinishInteractingWithScrubber != nil -} - -// 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 -} - -// 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) -} -func (di *ScrubberDelegate) HasScrubberDidSelectItemAtIndex() bool { - return di._ScrubberDidSelectItemAtIndex != nil +func (di *ScrubberDelegate) HasScrubberDidHighlightItemAtIndex() bool { + return di._ScrubberDidHighlightItemAtIndex != nil } -// Tells the delegate that the item at the specified index was selected. [Full Topic] +// Tells the delegate that the item at the specified index was highlighted. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsscrubberdelegate/2544714-scrubber?language=objc -func (di *ScrubberDelegate) SetScrubberDidSelectItemAtIndex(f func(scrubber Scrubber, selectedIndex int)) { - di._ScrubberDidSelectItemAtIndex = f +// [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 selected. [Full Topic] +// Tells the delegate that the item at the specified index was highlighted. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsscrubberdelegate/2544714-scrubber?language=objc -func (di *ScrubberDelegate) ScrubberDidSelectItemAtIndex(scrubber Scrubber, selectedIndex int) { - di._ScrubberDidSelectItemAtIndex(scrubber, selectedIndex) +// [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 @@ -86,6 +80,23 @@ func (di *ScrubberDelegate) SetDidBeginInteractingWithScrubber(f func(scrubber S func (di *ScrubberDelegate) DidBeginInteractingWithScrubber(scrubber Scrubber) { di._DidBeginInteractingWithScrubber(scrubber) } +func (di *ScrubberDelegate) HasScrubberDidSelectItemAtIndex() bool { + return di._ScrubberDidSelectItemAtIndex != nil +} + +// 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 (di *ScrubberDelegate) SetScrubberDidSelectItemAtIndex(f func(scrubber Scrubber, selectedIndex int)) { + di._ScrubberDidSelectItemAtIndex = f +} + +// 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 (di *ScrubberDelegate) ScrubberDidSelectItemAtIndex(scrubber Scrubber, selectedIndex int) { + di._ScrubberDidSelectItemAtIndex(scrubber, selectedIndex) +} func (di *ScrubberDelegate) HasDidCancelInteractingWithScrubber() bool { return di._DidCancelInteractingWithScrubber != nil } @@ -103,52 +114,111 @@ 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 +} -// A concrete type wrapper for the [PScrubberDelegate] protocol. -type ScrubberDelegateWrapper struct { - objc.Object +// 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 } -func (s_ ScrubberDelegateWrapper) HasDidFinishInteractingWithScrubber() bool { - return s_.RespondsToSelector(objc.Sel("didFinishInteractingWithScrubber:")) +// 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 } // 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_ ScrubberDelegateWrapper) DidFinishInteractingWithScrubber(scrubber IScrubber) { - objc.Call[objc.Void](s_, objc.Sel("didFinishInteractingWithScrubber:"), objc.Ptr(scrubber)) +func (di *ScrubberDelegate) SetDidFinishInteractingWithScrubber(f func(scrubber Scrubber)) { + di._DidFinishInteractingWithScrubber = f } -func (s_ ScrubberDelegateWrapper) HasScrubberDidSelectItemAtIndex() bool { - return s_.RespondsToSelector(objc.Sel("scrubber:didSelectItemAtIndex:")) +// 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) } -// Tells the delegate that the item at the specified index was selected. [Full Topic] +// 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) HasScrubberDidHighlightItemAtIndex() bool { + return s_.RespondsToSelector(objc.Sel("scrubber:didHighlightItemAtIndex:")) +} + +// Tells the delegate that the item at the specified index was highlighted. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsscrubberdelegate/2544714-scrubber?language=objc -func (s_ ScrubberDelegateWrapper) ScrubberDidSelectItemAtIndex(scrubber IScrubber, selectedIndex int) { - objc.Call[objc.Void](s_, objc.Sel("scrubber:didSelectItemAtIndex:"), objc.Ptr(scrubber), selectedIndex) +// [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:"), objc.Ptr(scrubber), highlightedIndex) } -func (s_ ScrubberDelegateWrapper) HasDidBeginInteractingWithScrubber() bool { +func (s_ ScrubberDelegateObject) HasDidBeginInteractingWithScrubber() bool { return s_.RespondsToSelector(objc.Sel("didBeginInteractingWithScrubber:")) } // 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 (s_ ScrubberDelegateWrapper) DidBeginInteractingWithScrubber(scrubber IScrubber) { +func (s_ ScrubberDelegateObject) DidBeginInteractingWithScrubber(scrubber Scrubber) { objc.Call[objc.Void](s_, objc.Sel("didBeginInteractingWithScrubber:"), objc.Ptr(scrubber)) } -func (s_ ScrubberDelegateWrapper) HasDidCancelInteractingWithScrubber() bool { +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:"), objc.Ptr(scrubber), selectedIndex) +} + +func (s_ ScrubberDelegateObject) HasDidCancelInteractingWithScrubber() bool { return s_.RespondsToSelector(objc.Sel("didCancelInteractingWithScrubber:")) } // Tells the delegate that a user interaction with the scrubber has been canceled. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/appkit/nsscrubberdelegate/2646905-didcancelinteractingwithscrubber?language=objc -func (s_ ScrubberDelegateWrapper) DidCancelInteractingWithScrubber(scrubber IScrubber) { +func (s_ ScrubberDelegateObject) DidCancelInteractingWithScrubber(scrubber Scrubber) { objc.Call[objc.Void](s_, objc.Sel("didCancelInteractingWithScrubber:"), objc.Ptr(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:"), objc.Ptr(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:"), objc.Ptr(scrubber)) +} diff --git a/macos/appkit/scrubber_flow_layout.gen.go b/macos/appkit/scrubber_flow_layout.gen.go index 5584382b..95476d51 100644 --- a/macos/appkit/scrubber_flow_layout.gen.go +++ b/macos/appkit/scrubber_flow_layout.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package appkit @@ -44,10 +44,6 @@ func (sc _ScrubberFlowLayoutClass) Alloc() ScrubberFlowLayout { return rv } -func ScrubberFlowLayout_Alloc() ScrubberFlowLayout { - return ScrubberFlowLayoutClass.Alloc() -} - func (sc _ScrubberFlowLayoutClass) New() ScrubberFlowLayout { rv := objc.Call[ScrubberFlowLayout](sc, objc.Sel("new")) rv.Autorelease() diff --git a/macos/appkit/scrubber_flow_layout_delegate.gen.go b/macos/appkit/scrubber_flow_layout_delegate.gen.go index 457523ad..4c7338b2 100644 --- a/macos/appkit/scrubber_flow_layout_delegate.gen.go +++ b/macos/appkit/scrubber_flow_layout_delegate.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package appkit @@ -39,19 +39,22 @@ func (di *ScrubberFlowLayoutDelegate) ScrubberLayoutSizeForItemAtIndex(scrubber return di._ScrubberLayoutSizeForItemAtIndex(scrubber, layout, itemIndex) } -// A concrete type wrapper for the [PScrubberFlowLayoutDelegate] protocol. -type ScrubberFlowLayoutDelegateWrapper struct { +// ensure impl type implements protocol interface +var _ PScrubberFlowLayoutDelegate = (*ScrubberFlowLayoutDelegateObject)(nil) + +// A concrete type for the [PScrubberFlowLayoutDelegate] protocol. +type ScrubberFlowLayoutDelegateObject struct { objc.Object } -func (s_ ScrubberFlowLayoutDelegateWrapper) HasScrubberLayoutSizeForItemAtIndex() bool { +func (s_ ScrubberFlowLayoutDelegateObject) HasScrubberLayoutSizeForItemAtIndex() bool { return s_.RespondsToSelector(objc.Sel("scrubber:layout:sizeForItemAtIndex:")) } // Asks the delegate for the size of each item in a scrubber whose items are arranged in a flow layout. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/appkit/nsscrubberflowlayoutdelegate/2544630-scrubber?language=objc -func (s_ ScrubberFlowLayoutDelegateWrapper) ScrubberLayoutSizeForItemAtIndex(scrubber IScrubber, layout IScrubberFlowLayout, itemIndex int) foundation.Size { +func (s_ ScrubberFlowLayoutDelegateObject) ScrubberLayoutSizeForItemAtIndex(scrubber Scrubber, layout ScrubberFlowLayout, itemIndex int) foundation.Size { rv := objc.Call[foundation.Size](s_, objc.Sel("scrubber:layout:sizeForItemAtIndex:"), objc.Ptr(scrubber), objc.Ptr(layout), itemIndex) return rv } diff --git a/macos/appkit/scrubber_image_item_view.gen.go b/macos/appkit/scrubber_image_item_view.gen.go index a7e3da92..8da40779 100644 --- a/macos/appkit/scrubber_image_item_view.gen.go +++ b/macos/appkit/scrubber_image_item_view.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package appkit @@ -44,10 +44,6 @@ func (sc _ScrubberImageItemViewClass) Alloc() ScrubberImageItemView { return rv } -func ScrubberImageItemView_Alloc() ScrubberImageItemView { - return ScrubberImageItemViewClass.Alloc() -} - func (sc _ScrubberImageItemViewClass) New() ScrubberImageItemView { rv := objc.Call[ScrubberImageItemView](sc, objc.Sel("new")) rv.Autorelease() diff --git a/macos/appkit/scrubber_item_view.gen.go b/macos/appkit/scrubber_item_view.gen.go index dad331d0..6ab56ed2 100644 --- a/macos/appkit/scrubber_item_view.gen.go +++ b/macos/appkit/scrubber_item_view.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package appkit @@ -39,10 +39,6 @@ func (sc _ScrubberItemViewClass) Alloc() ScrubberItemView { return rv } -func ScrubberItemView_Alloc() ScrubberItemView { - return ScrubberItemViewClass.Alloc() -} - func (sc _ScrubberItemViewClass) New() ScrubberItemView { rv := objc.Call[ScrubberItemView](sc, objc.Sel("new")) rv.Autorelease() diff --git a/macos/appkit/scrubber_layout.gen.go b/macos/appkit/scrubber_layout.gen.go index 896d3ef8..dad6186f 100644 --- a/macos/appkit/scrubber_layout.gen.go +++ b/macos/appkit/scrubber_layout.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package appkit @@ -19,17 +19,17 @@ type _ScrubberLayoutClass struct { // An interface definition for the [ScrubberLayout] class. type IScrubberLayout interface { objc.IObject - LayoutAttributesForItemsInRect(rect foundation.Rect) foundation.Set + ShouldInvalidateLayoutForChangeFromVisibleRectToVisibleRect(fromVisibleRect foundation.Rect, toVisibleRect foundation.Rect) bool PrepareLayout() - InvalidateLayout() LayoutAttributesForItemAtIndex(index int) ScrubberLayoutAttributes - ShouldInvalidateLayoutForChangeFromVisibleRectToVisibleRect(fromVisibleRect foundation.Rect, toVisibleRect foundation.Rect) bool - VisibleRect() foundation.Rect - ShouldInvalidateLayoutForSelectionChange() bool - ScrubberContentSize() foundation.Size - Scrubber() Scrubber + InvalidateLayout() + LayoutAttributesForItemsInRect(rect foundation.Rect) foundation.Set AutomaticallyMirrorsInRightToLeftLayout() bool + Scrubber() Scrubber + ShouldInvalidateLayoutForSelectionChange() bool ShouldInvalidateLayoutForHighlightChange() bool + VisibleRect() foundation.Rect + ScrubberContentSize() foundation.Size } // An abstract class that describes the layout of items within a scrubber control. [Full Topic] @@ -55,10 +55,6 @@ func (sc _ScrubberLayoutClass) Alloc() ScrubberLayout { return rv } -func ScrubberLayout_Alloc() ScrubberLayout { - return ScrubberLayoutClass.Alloc() -} - func (sc _ScrubberLayoutClass) New() ScrubberLayout { rv := objc.Call[ScrubberLayout](sc, objc.Sel("new")) rv.Autorelease() @@ -69,11 +65,11 @@ func NewScrubberLayout() ScrubberLayout { return ScrubberLayoutClass.New() } -// The set of layout attributes for all items within the provided rectangle. [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/2544636-layoutattributesforitemsinrect?language=objc -func (s_ ScrubberLayout) LayoutAttributesForItemsInRect(rect foundation.Rect) foundation.Set { - rv := objc.Call[foundation.Set](s_, objc.Sel("layoutAttributesForItemsInRect:"), rect) +// [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 } @@ -84,6 +80,14 @@ 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 @@ -91,19 +95,27 @@ func (s_ ScrubberLayout) InvalidateLayout() { objc.Call[objc.Void](s_, objc.Sel("invalidateLayout")) } -// The layout attributes for the item with the specified index. [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/2544650-layoutattributesforitematindex?language=objc -func (s_ ScrubberLayout) LayoutAttributesForItemAtIndex(index int) ScrubberLayoutAttributes { - rv := objc.Call[ScrubberLayoutAttributes](s_, objc.Sel("layoutAttributesForItemAtIndex:"), index) +// [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 should refresh its layout in response to a change of its visible region. [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/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/2646926-automaticallymirrorsinrighttolef?language=objc +func (s_ ScrubberLayout) AutomaticallyMirrorsInRightToLeftLayout() bool { + rv := objc.Call[bool](s_, objc.Sel("automaticallyMirrorsInRightToLeftLayout")) + return rv +} + +// The scrubber control that this layout is assigned to. [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")) return rv } @@ -122,14 +134,6 @@ 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 @@ -138,34 +142,26 @@ func (s_ ScrubberLayout) ShouldInvalidateLayoutForSelectionChange() bool { return rv } -// The size required to contain all elements within the scrubber. [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")) - return rv -} - -// The scrubber control that this layout is assigned to. [Full Topic] +// Determines whether the scrubber should refresh its layout when an item is highlighted. [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/2544639-shouldinvalidatelayoutforhighlig?language=objc +func (s_ ScrubberLayout) ShouldInvalidateLayoutForHighlightChange() bool { + rv := objc.Call[bool](s_, objc.Sel("shouldInvalidateLayoutForHighlightChange")) return rv } -// Determines whether the scrubber mirrors its layout for right-to-left layouts. [Full Topic] +// The currently visible rectangle, in the coordinate space of the scrubber content. [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/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 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 } diff --git a/macos/appkit/scrubber_layout_attributes.gen.go b/macos/appkit/scrubber_layout_attributes.gen.go index 3fb4103f..9bb41950 100644 --- a/macos/appkit/scrubber_layout_attributes.gen.go +++ b/macos/appkit/scrubber_layout_attributes.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package appkit @@ -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] @@ -57,10 +57,6 @@ func (sc _ScrubberLayoutAttributesClass) Alloc() ScrubberLayoutAttributes { return rv } -func ScrubberLayoutAttributes_Alloc() ScrubberLayoutAttributes { - return ScrubberLayoutAttributesClass.Alloc() -} - func (sc _ScrubberLayoutAttributesClass) New() ScrubberLayoutAttributes { rv := objc.Call[ScrubberLayoutAttributes](sc, objc.Sel("new")) rv.Autorelease() @@ -76,21 +72,6 @@ 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 @@ -120,3 +101,18 @@ 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_proportional_layout.gen.go b/macos/appkit/scrubber_proportional_layout.gen.go index adb53875..a7cdef81 100644 --- a/macos/appkit/scrubber_proportional_layout.gen.go +++ b/macos/appkit/scrubber_proportional_layout.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package appkit @@ -54,10 +54,6 @@ func (sc _ScrubberProportionalLayoutClass) Alloc() ScrubberProportionalLayout { return rv } -func ScrubberProportionalLayout_Alloc() ScrubberProportionalLayout { - return ScrubberProportionalLayoutClass.Alloc() -} - func (sc _ScrubberProportionalLayoutClass) New() ScrubberProportionalLayout { rv := objc.Call[ScrubberProportionalLayout](sc, objc.Sel("new")) rv.Autorelease() diff --git a/macos/appkit/scrubber_selection_style.gen.go b/macos/appkit/scrubber_selection_style.gen.go index 7e1af5e0..348ff847 100644 --- a/macos/appkit/scrubber_selection_style.gen.go +++ b/macos/appkit/scrubber_selection_style.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package appkit @@ -44,10 +44,6 @@ func (sc _ScrubberSelectionStyleClass) Alloc() ScrubberSelectionStyle { return rv } -func ScrubberSelectionStyle_Alloc() ScrubberSelectionStyle { - return ScrubberSelectionStyleClass.Alloc() -} - func (sc _ScrubberSelectionStyleClass) New() ScrubberSelectionStyle { rv := objc.Call[ScrubberSelectionStyle](sc, objc.Sel("new")) rv.Autorelease() @@ -66,21 +62,6 @@ func (s_ ScrubberSelectionStyle) MakeSelectionView() ScrubberSelectionView { return rv } -// 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 -func (sc _ScrubberSelectionStyleClass) RoundedBackgroundStyle() ScrubberSelectionStyle { - rv := objc.Call[ScrubberSelectionStyle](sc, objc.Sel("roundedBackgroundStyle")) - return rv -} - -// 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 -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 @@ -95,3 +76,18 @@ func (sc _ScrubberSelectionStyleClass) OutlineOverlayStyle() ScrubberSelectionSt 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 +func (sc _ScrubberSelectionStyleClass) RoundedBackgroundStyle() ScrubberSelectionStyle { + rv := objc.Call[ScrubberSelectionStyle](sc, objc.Sel("roundedBackgroundStyle")) + return rv +} + +// 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 +func ScrubberSelectionStyle_RoundedBackgroundStyle() ScrubberSelectionStyle { + return ScrubberSelectionStyleClass.RoundedBackgroundStyle() +} diff --git a/macos/appkit/scrubber_selection_view.gen.go b/macos/appkit/scrubber_selection_view.gen.go index f8e4e608..b627a840 100644 --- a/macos/appkit/scrubber_selection_view.gen.go +++ b/macos/appkit/scrubber_selection_view.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package appkit @@ -39,10 +39,6 @@ func (sc _ScrubberSelectionViewClass) Alloc() ScrubberSelectionView { return rv } -func ScrubberSelectionView_Alloc() ScrubberSelectionView { - return ScrubberSelectionViewClass.Alloc() -} - func (sc _ScrubberSelectionViewClass) New() ScrubberSelectionView { rv := objc.Call[ScrubberSelectionView](sc, objc.Sel("new")) rv.Autorelease() diff --git a/macos/appkit/scrubber_text_item_view.gen.go b/macos/appkit/scrubber_text_item_view.gen.go index 3c2ba456..0fe3e742 100644 --- a/macos/appkit/scrubber_text_item_view.gen.go +++ b/macos/appkit/scrubber_text_item_view.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package appkit @@ -42,10 +42,6 @@ func (sc _ScrubberTextItemViewClass) Alloc() ScrubberTextItemView { return rv } -func ScrubberTextItemView_Alloc() ScrubberTextItemView { - return ScrubberTextItemViewClass.Alloc() -} - func (sc _ScrubberTextItemViewClass) New() ScrubberTextItemView { rv := objc.Call[ScrubberTextItemView](sc, objc.Sel("new")) rv.Autorelease() diff --git a/macos/appkit/search_field.gen.go b/macos/appkit/search_field.gen.go index 8dd1b39f..e207d780 100644 --- a/macos/appkit/search_field.gen.go +++ b/macos/appkit/search_field.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package appkit @@ -19,21 +19,21 @@ type _SearchFieldClass struct { // An interface definition for the [SearchField] class. type ISearchField interface { ITextField - RecentsAutosaveName() SearchFieldRecentsAutosaveName - SetRecentsAutosaveName(value SearchFieldRecentsAutosaveName) - MaximumRecents() int - SetMaximumRecents(value int) - CancelButtonBounds() foundation.Rect SendsWholeSearchString() bool SetSendsWholeSearchString(value bool) + CancelButtonBounds() foundation.Rect + RecentSearches() []string + SetRecentSearches(value []string) + MaximumRecents() int + SetMaximumRecents(value int) + SearchButtonBounds() foundation.Rect + SearchTextBounds() foundation.Rect 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] @@ -54,10 +54,6 @@ func (sc _SearchFieldClass) Alloc() SearchField { return rv } -func SearchField_Alloc() SearchField { - return SearchFieldClass.Alloc() -} - func (sc _SearchFieldClass) New() SearchField { rv := objc.Call[SearchField](sc, objc.Sel("new")) rv.Autorelease() @@ -73,18 +69,6 @@ func (s_ SearchField) Init() SearchField { return rv } -func (sc _SearchFieldClass) LabelWithAttributedString(attributedStringValue foundation.IAttributedString) SearchField { - rv := objc.Call[SearchField](sc, objc.Sel("labelWithAttributedString:"), objc.Ptr(attributedStringValue)) - return rv -} - -// Creates a text field for use as a static label that displays styled text, doesn’t wrap, and doesn’t have selectable text. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nstextfield/1644658-labelwithattributedstring?language=objc -func SearchField_LabelWithAttributedString(attributedStringValue foundation.IAttributedString) SearchField { - return SearchFieldClass.LabelWithAttributedString(attributedStringValue) -} - func (sc _SearchFieldClass) LabelWithString(stringValue string) SearchField { rv := objc.Call[SearchField](sc, objc.Sel("labelWithString:"), stringValue) return rv @@ -97,6 +81,18 @@ 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:"), objc.Ptr(attributedStringValue)) + return rv +} + +// Creates a text field for use as a static label that displays styled text, doesn’t wrap, and doesn’t have selectable text. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/appkit/nstextfield/1644658-labelwithattributedstring?language=objc +func SearchField_LabelWithAttributedString(attributedStringValue foundation.IAttributedString) SearchField { + return SearchFieldClass.LabelWithAttributedString(attributedStringValue) +} + func (sc _SearchFieldClass) WrappingLabelWithString(stringValue string) SearchField { rv := objc.Call[SearchField](sc, objc.Sel("wrappingLabelWithString:"), stringValue) return rv @@ -135,19 +131,42 @@ func NewSearchFieldWithFrame(frameRect foundation.Rect) SearchField { return instance } -// The name under which the search field automatically archives the list of recent search strings. [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/1530035-recentsautosavename?language=objc -func (s_ SearchField) RecentsAutosaveName() SearchFieldRecentsAutosaveName { - rv := objc.Call[SearchFieldRecentsAutosaveName](s_, objc.Sel("recentsAutosaveName")) +// [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 } -// The name under which the search field automatically archives the list of recent search strings. [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/1530035-recentsautosavename?language=objc -func (s_ SearchField) SetRecentsAutosaveName(value SearchFieldRecentsAutosaveName) { - objc.Call[objc.Void](s_, objc.Sel("setRecentsAutosaveName:"), value) +// [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] +// +// [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 maximum number of search strings that can appear in the search menu. [Full Topic] @@ -165,29 +184,22 @@ func (s_ SearchField) SetMaximumRecents(value int) { objc.Call[objc.Void](s_, objc.Sel("setMaximumRecents:"), value) } -// The rectangle for the cancel button within the bounds of the search field. [Full Topic] +// The rectangle for the search 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")) +// [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 } -// 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 rectangle for the search text within the bounds of the search field. [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")) +// [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 } -// 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 @@ -203,6 +215,21 @@ func (s_ SearchField) SetSearchMenuTemplate(value IMenu) { objc.Call[objc.Void](s_, objc.Sel("setSearchMenuTemplate:"), objc.Ptr(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 @@ -217,34 +244,3 @@ 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 24be98e9..c5139a14 100644 --- a/macos/appkit/search_field_cell.gen.go +++ b/macos/appkit/search_field_cell.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package appkit @@ -19,27 +19,27 @@ type _SearchFieldCellClass struct { // An interface definition for the [SearchFieldCell] class. type ISearchFieldCell interface { ITextFieldCell - SearchTextRectForBounds(rect foundation.Rect) foundation.Rect - SearchButtonRectForBounds(rect foundation.Rect) foundation.Rect + ResetCancelButtonCell() ResetSearchButtonCell() CancelButtonRectForBounds(rect foundation.Rect) foundation.Rect - ResetCancelButtonCell() - RecentsAutosaveName() SearchFieldRecentsAutosaveName - SetRecentsAutosaveName(value SearchFieldRecentsAutosaveName) - MaximumRecents() int - SetMaximumRecents(value int) - SearchButtonCell() ButtonCell - SetSearchButtonCell(value IButtonCell) + SearchButtonRectForBounds(rect foundation.Rect) foundation.Rect + SearchTextRectForBounds(rect foundation.Rect) foundation.Rect SendsWholeSearchString() bool SetSendsWholeSearchString(value bool) - SearchMenuTemplate() Menu - SetSearchMenuTemplate(value IMenu) - CancelButtonCell() ButtonCell - SetCancelButtonCell(value IButtonCell) + SearchButtonCell() ButtonCell + SetSearchButtonCell(value IButtonCell) SendsSearchStringImmediately() bool SetSendsSearchStringImmediately(value bool) RecentSearches() []string SetRecentSearches(value []string) + SearchMenuTemplate() Menu + SetSearchMenuTemplate(value IMenu) + MaximumRecents() int + SetMaximumRecents(value int) + CancelButtonCell() ButtonCell + SetCancelButtonCell(value IButtonCell) + RecentsAutosaveName() SearchFieldRecentsAutosaveName + SetRecentsAutosaveName(value SearchFieldRecentsAutosaveName) } // The programmatic interface for text fields that are used for text-based searches. [Full Topic] @@ -74,10 +74,6 @@ func (sc _SearchFieldCellClass) Alloc() SearchFieldCell { return rv } -func SearchFieldCell_Alloc() SearchFieldCell { - return SearchFieldCellClass.Alloc() -} - func (sc _SearchFieldCellClass) New() SearchFieldCell { rv := objc.Call[SearchFieldCell](sc, objc.Sel("new")) rv.Autorelease() @@ -107,20 +103,11 @@ func NewSearchFieldCellImageCell(image IImage) SearchFieldCell { return instance } -// Modifies the bounding rectangle for the search-text field cell. [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) - 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")) } // Resets the search button cell to its default attributes. [Full Topic] @@ -138,41 +125,35 @@ func (s_ SearchFieldCell) CancelButtonRectForBounds(rect foundation.Rect) founda return rv } -// Resets the cancel button cell to its default attributes. [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")) -} - -// The autosave name under which the search field automatically saves the list of recent search strings. [Full Topic] +// Modifies the bounding rectangle for the search button cell. [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/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 } -// The autosave name under which the search field automatically saves the list of recent search strings. [Full Topic] +// Modifies the bounding rectangle for the search-text field cell. [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/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 } -// The maximum number of search strings that can appear in the search menu. [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/1399468-maximumrecents?language=objc -func (s_ SearchFieldCell) MaximumRecents() int { - rv := objc.Call[int](s_, objc.Sel("maximumRecents")) +// [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 } -// The maximum number of search strings that can appear in the search menu. [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/1399468-maximumrecents?language=objc -func (s_ SearchFieldCell) SetMaximumRecents(value int) { - objc.Call[objc.Void](s_, objc.Sel("setMaximumRecents:"), 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 button cell used to display the search-button image. [Full Topic] @@ -190,19 +171,34 @@ func (s_ SearchFieldCell) SetSearchButtonCell(value IButtonCell) { objc.Call[objc.Void](s_, objc.Sel("setSearchButtonCell:"), objc.Ptr(value)) } -// 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] +// 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/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/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 search action method when the user clicks the search button (or presses Return) or after each keystroke. [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/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/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) } // The menu object used to dynamically construct the search field’s pop-up icon menu. [Full Topic] @@ -220,6 +216,21 @@ func (s_ SearchFieldCell) SetSearchMenuTemplate(value IMenu) { objc.Call[objc.Void](s_, objc.Sel("setSearchMenuTemplate:"), objc.Ptr(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 @@ -235,32 +246,17 @@ func (s_ SearchFieldCell) SetCancelButtonCell(value IButtonCell) { objc.Call[objc.Void](s_, objc.Sel("setCancelButtonCell:"), objc.Ptr(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] +// 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/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/1399463-recentsautosavename?language=objc +func (s_ SearchFieldCell) RecentsAutosaveName() SearchFieldRecentsAutosaveName { + rv := objc.Call[SearchFieldRecentsAutosaveName](s_, objc.Sel("recentsAutosaveName")) return rv } -// An array of the recent search strings to display in the pop-up icon menu of the search field. [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/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/1399463-recentsautosavename?language=objc +func (s_ SearchFieldCell) SetRecentsAutosaveName(value SearchFieldRecentsAutosaveName) { + objc.Call[objc.Void](s_, objc.Sel("setRecentsAutosaveName:"), value) } diff --git a/macos/appkit/search_field_delegate.gen.go b/macos/appkit/search_field_delegate.gen.go index c9eb82f7..5cd88732 100644 --- a/macos/appkit/search_field_delegate.gen.go +++ b/macos/appkit/search_field_delegate.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package appkit @@ -62,29 +62,32 @@ func (di *SearchFieldDelegate) SearchFieldDidEndSearching(sender SearchField) { di._SearchFieldDidEndSearching(sender) } -// A concrete type wrapper for the [PSearchFieldDelegate] protocol. -type SearchFieldDelegateWrapper struct { - TextFieldDelegateWrapper +// ensure impl type implements protocol interface +var _ PSearchFieldDelegate = (*SearchFieldDelegateObject)(nil) + +// A concrete type for the [PSearchFieldDelegate] protocol. +type SearchFieldDelegateObject struct { + TextFieldDelegateObject } -func (s_ SearchFieldDelegateWrapper) HasSearchFieldDidStartSearching() bool { +func (s_ SearchFieldDelegateObject) HasSearchFieldDidStartSearching() bool { return s_.RespondsToSelector(objc.Sel("searchFieldDidStartSearching:")) } // The method that is called when the search field begins searching for content. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/appkit/nssearchfielddelegate/1535275-searchfielddidstartsearching?language=objc -func (s_ SearchFieldDelegateWrapper) SearchFieldDidStartSearching(sender ISearchField) { +func (s_ SearchFieldDelegateObject) SearchFieldDidStartSearching(sender SearchField) { objc.Call[objc.Void](s_, objc.Sel("searchFieldDidStartSearching:"), objc.Ptr(sender)) } -func (s_ SearchFieldDelegateWrapper) HasSearchFieldDidEndSearching() bool { +func (s_ SearchFieldDelegateObject) HasSearchFieldDidEndSearching() bool { return s_.RespondsToSelector(objc.Sel("searchFieldDidEndSearching:")) } // The method that is called when the search field has ended its search for content. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/appkit/nssearchfielddelegate/1529867-searchfielddidendsearching?language=objc -func (s_ SearchFieldDelegateWrapper) SearchFieldDidEndSearching(sender ISearchField) { +func (s_ SearchFieldDelegateObject) SearchFieldDidEndSearching(sender SearchField) { objc.Call[objc.Void](s_, objc.Sel("searchFieldDidEndSearching:"), objc.Ptr(sender)) } diff --git a/macos/appkit/search_toolbar_item.gen.go b/macos/appkit/search_toolbar_item.gen.go index 92882006..38b2cab8 100644 --- a/macos/appkit/search_toolbar_item.gen.go +++ b/macos/appkit/search_toolbar_item.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package appkit @@ -46,10 +46,6 @@ func (sc _SearchToolbarItemClass) Alloc() SearchToolbarItem { return rv } -func SearchToolbarItem_Alloc() SearchToolbarItem { - return SearchToolbarItemClass.Alloc() -} - func (sc _SearchToolbarItemClass) New() SearchToolbarItem { rv := objc.Call[SearchToolbarItem](sc, objc.Sel("new")) rv.Autorelease() diff --git a/macos/appkit/secure_text_field.gen.go b/macos/appkit/secure_text_field.gen.go index e54e5384..b455e588 100644 --- a/macos/appkit/secure_text_field.gen.go +++ b/macos/appkit/secure_text_field.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package appkit @@ -39,10 +39,6 @@ func (sc _SecureTextFieldClass) Alloc() SecureTextField { return rv } -func SecureTextField_Alloc() SecureTextField { - return SecureTextFieldClass.Alloc() -} - func (sc _SecureTextFieldClass) New() SecureTextField { rv := objc.Call[SecureTextField](sc, objc.Sel("new")) rv.Autorelease() @@ -58,18 +54,6 @@ func (s_ SecureTextField) Init() SecureTextField { return rv } -func (sc _SecureTextFieldClass) LabelWithAttributedString(attributedStringValue foundation.IAttributedString) SecureTextField { - rv := objc.Call[SecureTextField](sc, objc.Sel("labelWithAttributedString:"), objc.Ptr(attributedStringValue)) - return rv -} - -// Creates a text field for use as a static label that displays styled text, doesn’t wrap, and doesn’t have selectable text. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nstextfield/1644658-labelwithattributedstring?language=objc -func SecureTextField_LabelWithAttributedString(attributedStringValue foundation.IAttributedString) SecureTextField { - return SecureTextFieldClass.LabelWithAttributedString(attributedStringValue) -} - func (sc _SecureTextFieldClass) LabelWithString(stringValue string) SecureTextField { rv := objc.Call[SecureTextField](sc, objc.Sel("labelWithString:"), stringValue) return rv @@ -82,6 +66,18 @@ 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:"), objc.Ptr(attributedStringValue)) + return rv +} + +// Creates a text field for use as a static label that displays styled text, doesn’t wrap, and doesn’t have selectable text. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/appkit/nstextfield/1644658-labelwithattributedstring?language=objc +func SecureTextField_LabelWithAttributedString(attributedStringValue foundation.IAttributedString) SecureTextField { + return SecureTextFieldClass.LabelWithAttributedString(attributedStringValue) +} + func (sc _SecureTextFieldClass) WrappingLabelWithString(stringValue string) SecureTextField { rv := objc.Call[SecureTextField](sc, objc.Sel("wrappingLabelWithString:"), stringValue) return rv diff --git a/macos/appkit/secure_text_field_cell.gen.go b/macos/appkit/secure_text_field_cell.gen.go index 9b73de24..d0f84118 100644 --- a/macos/appkit/secure_text_field_cell.gen.go +++ b/macos/appkit/secure_text_field_cell.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package appkit @@ -40,10 +40,6 @@ func (sc _SecureTextFieldCellClass) Alloc() SecureTextFieldCell { return rv } -func SecureTextFieldCell_Alloc() SecureTextFieldCell { - return SecureTextFieldCellClass.Alloc() -} - func (sc _SecureTextFieldCellClass) New() SecureTextFieldCell { rv := objc.Call[SecureTextFieldCell](sc, objc.Sel("new")) rv.Autorelease() diff --git a/macos/appkit/segmented_cell.gen.go b/macos/appkit/segmented_cell.gen.go index 3acbbb2a..d74fe133 100644 --- a/macos/appkit/segmented_cell.gen.go +++ b/macos/appkit/segmented_cell.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package appkit @@ -19,37 +19,37 @@ type _SegmentedCellClass struct { // An interface definition for the [SegmentedCell] class. type ISegmentedCell interface { IActionCell - SetLabelForSegment(label string, segment int) - ImageScalingForSegment(segment int) ImageScaling SetToolTipForSegment(toolTip string, segment int) - TagForSegment(segment int) int - ToolTipForSegment(segment int) string - SetSelectedForSegment(selected bool, segment int) - IsSelectedForSegment(segment int) bool + SetTagForSegment(tag int, segment int) + ImageForSegment(segment int) Image SetImageForSegment(image IImage, segment int) + SetImageScalingForSegment(scaling ImageScaling, segment int) + SelectSegmentWithTag(tag int) bool + ImageScalingForSegment(segment int) ImageScaling + WidthForSegment(segment int) float64 + LabelForSegment(segment int) string + ToolTipForSegment(segment int) string + SetEnabledForSegment(enabled bool, 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 - SetMenuForSegment(menu IMenu, segment int) - DrawSegmentInFrameWithView(segment int, frame foundation.Rect, controlView IView) - LabelForSegment(segment int) string - SetWidthForSegment(width float64, segment int) + 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) 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] @@ -70,10 +70,6 @@ func (sc _SegmentedCellClass) Alloc() SegmentedCell { return rv } -func SegmentedCell_Alloc() SegmentedCell { - return SegmentedCellClass.Alloc() -} - func (sc _SegmentedCellClass) New() SegmentedCell { rv := objc.Call[SegmentedCell](sc, objc.Sel("new")) rv.Autorelease() @@ -117,11 +113,48 @@ func NewSegmentedCellTextCell(string_ string) SegmentedCell { return instance } -// Sets the label for the specified segment. [Full Topic] +// Sets the tooltip 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/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:"), objc.Ptr(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] +// +// [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 } // Returns the image scaling mode associated with the specified segment. [Full Topic] @@ -132,18 +165,19 @@ func (s_ SegmentedCell) ImageScalingForSegment(segment int) ImageScaling { return rv } -// Sets the tooltip for the specified segment. [Full Topic] +// Returns the width of 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) +// [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 } -// Returns the tag of the specified segment. [Full Topic] +// Returns the label of 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) +// [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 } @@ -155,26 +189,11 @@ func (s_ SegmentedCell) ToolTipForSegment(segment int) string { return rv } -// Sets the selection state of the specified 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) -} - -// 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] +// Sets the enabled state of 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:"), objc.Ptr(image), 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) } // Selects the next segment. [Full Topic] @@ -184,14 +203,6 @@ 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 @@ -200,63 +211,57 @@ func (s_ SegmentedCell) InteriorBackgroundStyleForSegment(segment int) Backgroun return rv } -// Sets the enabled 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) -} - -// Returns the width of the specified segment. [Full Topic] +// Returns the menu 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) +// [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 } -// Selects the previous segment. [Full Topic] +// Sets the selection state 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/1500188-setselected?language=objc +func (s_ SegmentedCell) SetSelectedForSegment(selected bool, segment int) { + objc.Call[objc.Void](s_, objc.Sel("setSelected:forSegment:"), selected, segment) } -// Selects the segment with the specified tag. [Full Topic] +// Returns a Boolean value indicating whether the specified segment is enabled. [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) +// [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 } -// Sets the image scaling mode for the specified segment. [Full Topic] +// Sets the label 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) +// [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) } -// Sets the tag for the specified segment. [Full Topic] +// Sets the width of 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) +// [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) } -// Returns the menu for the specified segment. [Full Topic] +// Returns a Boolean value indicating whether the specified segment is selected, [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/1500177-isselectedforsegment?language=objc +func (s_ SegmentedCell) IsSelectedForSegment(segment int) bool { + rv := objc.Call[bool](s_, objc.Sel("isSelectedForSegment:"), segment) return rv } -// Sets the menu for the specified segment. [Full Topic] +// Returns the tag 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:"), objc.Ptr(menu), 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 } // Draws the image and label of the segment in the specified view. [Full Topic] @@ -266,29 +271,35 @@ func (s_ SegmentedCell) DrawSegmentInFrameWithView(segment int, frame foundation objc.Call[objc.Void](s_, objc.Sel("drawSegment:inFrame:withView:"), segment, frame, objc.Ptr(controlView)) } -// Returns the label of the specified segment. [Full Topic] +// Sets the menu for 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) - 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:"), objc.Ptr(menu), segment) } -// Sets the width of the specified segment. [Full Topic] +// Selects the previous 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/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] +// The tracking mode used for the segments of the control. [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/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) +} + // The visual style used to display the segmented control. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/appkit/nssegmentedcell/1500172-segmentstyle?language=objc @@ -333,18 +344,3 @@ 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 c7d795ec..fb5684aa 100644 --- a/macos/appkit/segmented_control.gen.go +++ b/macos/appkit/segmented_control.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package appkit @@ -19,48 +19,48 @@ type _SegmentedControlClass struct { // An interface definition for the [SegmentedControl] class. type ISegmentedControl interface { IControl - SetLabelForSegment(label string, segment int) - ImageScalingForSegment(segment int) ImageScaling + SetEnabledForSegment(enabled bool, segment int) + ImageForSegment(segment int) Image + SetAlignmentForSegment(alignment TextAlignment, segment int) + SetWidthForSegment(width float64, segment int) SetToolTipForSegment(toolTip string, segment int) - TagForSegment(segment int) int ToolTipForSegment(segment int) string - SetAlignmentForSegment(alignment TextAlignment, segment int) - SetSelectedForSegment(selected bool, segment int) + SetTagForSegment(tag int, segment int) + TagForSegment(segment int) int IsSelectedForSegment(segment int) bool - SetImageForSegment(image IImage, segment int) - SetShowsMenuIndicatorForSegment(showsMenuIndicator bool, segment int) + SetImageScalingForSegment(scaling ImageScaling, 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) + 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) + SelectSegmentWithTag(tag int) bool SetMenuForSegment(menu IMenu, segment int) + WidthForSegment(segment int) float64 + IsEnabledForSegment(segment int) bool ShowsMenuIndicatorForSegment(segment int) bool LabelForSegment(segment int) string - SetWidthForSegment(width float64, segment int) - IsEnabledForSegment(segment int) bool - ActiveCompressionOptions() UserInterfaceCompressionOptions - IndexOfSelectedItem() int + SetSelectedForSegment(selected bool, segment int) SegmentStyle() SegmentStyle SetSegmentStyle(value SegmentStyle) - SegmentCount() int - SetSegmentCount(value int) - SelectedSegment() int - SetSelectedSegment(value int) + IsSpringLoaded() bool + SetSpringLoaded(value bool) SegmentDistribution() SegmentDistribution SetSegmentDistribution(value SegmentDistribution) - TrackingMode() SegmentSwitchTracking - SetTrackingMode(value SegmentSwitchTracking) - DoubleValueForSelectedSegment() float64 SelectedSegmentBezelColor() Color SetSelectedSegmentBezelColor(value IColor) - IsSpringLoaded() bool - SetSpringLoaded(value bool) + ActiveCompressionOptions() UserInterfaceCompressionOptions + DoubleValueForSelectedSegment() float64 + TrackingMode() SegmentSwitchTracking + SetTrackingMode(value SegmentSwitchTracking) + IndexOfSelectedItem() int + SelectedSegment() int + SetSelectedSegment(value int) + SegmentCount() int + SetSegmentCount(value int) } // Display one or more buttons in a single horizontal group. [Full Topic] @@ -105,10 +105,6 @@ func (sc _SegmentedControlClass) Alloc() SegmentedControl { return rv } -func SegmentedControl_Alloc() SegmentedControl { - return SegmentedControlClass.Alloc() -} - func (sc _SegmentedControlClass) New() SegmentedControl { rv := objc.Call[SegmentedControl](sc, objc.Sel("new")) rv.Autorelease() @@ -138,34 +134,40 @@ func NewSegmentedControlWithFrame(frameRect foundation.Rect) SegmentedControl { return instance } -// 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 scaling mode used to display the specified segment’s image. [Full Topic] +// Returns the image associated with the specified segment. [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) +// [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 } // [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/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] // -// [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/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] @@ -178,16 +180,17 @@ func (s_ SegmentedControl) ToolTipForSegment(segment int) string { // [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) +// [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) } -// Sets the selection state of the specified segment. [Full Topic] +// [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) +// [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 } // Returns a Boolean value indicating whether the specified segment is selected. [Full Topic] @@ -198,18 +201,11 @@ func (s_ SegmentedControl) IsSelectedForSegment(segment int) bool { return rv } -// Sets the image for the specified segment. [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:"), objc.Ptr(image), segment) -} - -// [Full Topic] +// Sets the scaling mode used to display the specified segment’s image. [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/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] @@ -220,71 +216,63 @@ func (s_ SegmentedControl) MinimumSizeWithPrioritizedCompressionOptions(prioriti return rv } -// Returns the image associated with the specified segment. [Full Topic] +// [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/2887114-alignmentforsegment?language=objc +func (s_ SegmentedControl) AlignmentForSegment(segment int) TextAlignment { + rv := objc.Call[TextAlignment](s_, objc.Sel("alignmentForSegment:"), segment) return rv } -// [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/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/1532175-imagescalingforsegment?language=objc +func (s_ SegmentedControl) ImageScalingForSegment(segment int) ImageScaling { + rv := objc.Call[ImageScaling](s_, objc.Sel("imageScalingForSegment:"), segment) + return rv } -// 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 width of the specified segment. [Full Topic] +// Returns the menu for the specified segment. [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/1525880-menuforsegment?language=objc +func (s_ SegmentedControl) MenuForSegment(segment int) Menu { + rv := objc.Call[Menu](s_, objc.Sel("menuForSegment:"), segment) return rv } -// Selects the segment with the specified tag. [Full Topic] +// Sets the image 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) - return rv +// [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:"), objc.Ptr(image), 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) - 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]: 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] // -// [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/2887112-setshowsmenuindicator?language=objc +func (s_ SegmentedControl) SetShowsMenuIndicatorForSegment(showsMenuIndicator bool, segment int) { + objc.Call[objc.Void](s_, objc.Sel("setShowsMenuIndicator:forSegment:"), showsMenuIndicator, segment) } -// Returns the menu for the specified segment. [Full Topic] +// Selects the segment with the specified tag. [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/1534016-selectsegmentwithtag?language=objc +func (s_ SegmentedControl) SelectSegmentWithTag(tag int) bool { + rv := objc.Call[bool](s_, objc.Sel("selectSegmentWithTag:"), tag) return rv } @@ -295,29 +283,14 @@ func (s_ SegmentedControl) SetMenuForSegment(menu IMenu, segment int) { objc.Call[objc.Void](s_, objc.Sel("setMenu:forSegment:"), objc.Ptr(menu), segment) } -// [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) - return rv -} - -// Returns the label of the specified segment. [Full Topic] +// Returns the width 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) +// [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 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 @@ -328,20 +301,27 @@ func (s_ SegmentedControl) IsEnabledForSegment(segment int) bool { // [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/2887111-showsmenuindicatorforsegment?language=objc +func (s_ SegmentedControl) ShowsMenuIndicatorForSegment(segment int) bool { + rv := objc.Call[bool](s_, objc.Sel("showsMenuIndicatorForSegment:"), segment) return rv } -// [Full Topic] +// Returns the label of the specified 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/1524322-labelforsegment?language=objc +func (s_ SegmentedControl) LabelForSegment(segment int) string { + rv := objc.Call[string](s_, objc.Sel("labelForSegment:"), segment) 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 @@ -357,34 +337,19 @@ func (s_ SegmentedControl) SetSegmentStyle(value SegmentStyle) { objc.Call[objc.Void](s_, objc.Sel("setSegmentStyle:"), value) } -// The number of segments in 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")) - return rv -} - -// The number of segments in 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) -} - -// The index of the selected segment of the control, or -1 if no segment is selected. [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/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/1534122-springloaded?language=objc +func (s_ SegmentedControl) IsSpringLoaded() bool { + rv := objc.Call[bool](s_, objc.Sel("isSpringLoaded")) return rv } -// The index of the selected segment of the control, or -1 if no segment is selected. [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/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/1534122-springloaded?language=objc +func (s_ SegmentedControl) SetSpringLoaded(value bool) { + objc.Call[objc.Void](s_, objc.Sel("setSpringLoaded:"), value) } // [Full Topic] @@ -402,6 +367,37 @@ func (s_ SegmentedControl) SetSegmentDistribution(value SegmentDistribution) { objc.Call[objc.Void](s_, objc.Sel("setSegmentDistribution:"), value) } +// The color of the selected segment's bezel, in appearances that support it. [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")) + return rv +} + +// The color of the selected segment's bezel, in appearances that support it. [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:"), objc.Ptr(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")) + 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]: 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 type of tracking behavior the control exhibits. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/appkit/nssegmentedcontrol/1526285-trackingmode?language=objc @@ -417,40 +413,40 @@ func (s_ SegmentedControl) SetTrackingMode(value SegmentSwitchTracking) { objc.Call[objc.Void](s_, objc.Sel("setTrackingMode:"), value) } -// 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")) +// [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 } -// 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:"), objc.Ptr(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) } -// A Boolean value that indicates whether spring loading is enabled for the control. [Full Topic] +// The number of segments in 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")) +// [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 } -// A Boolean value that indicates whether spring loading is enabled for the control. [Full Topic] +// The number of segments in 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]: 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) } diff --git a/macos/appkit/segue_performing.gen.go b/macos/appkit/segue_performing_protocol.gen.go similarity index 69% rename from macos/appkit/segue_performing.gen.go rename to macos/appkit/segue_performing_protocol.gen.go index bff22b0f..2d8cec92 100644 --- a/macos/appkit/segue_performing.gen.go +++ b/macos/appkit/segue_performing_protocol.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package appkit @@ -14,50 +14,53 @@ type PSeguePerforming interface { PerformSegueWithIdentifierSender(identifier StoryboardSegueIdentifier, sender objc.Object) HasPerformSegueWithIdentifierSender() bool - // optional - ShouldPerformSegueWithIdentifierSender(identifier StoryboardSegueIdentifier, sender objc.Object) bool - HasShouldPerformSegueWithIdentifierSender() bool - // optional PrepareForSegueSender(segue StoryboardSegue, sender objc.Object) HasPrepareForSegueSender() bool + + // optional + ShouldPerformSegueWithIdentifierSender(identifier StoryboardSegueIdentifier, sender objc.Object) bool + HasShouldPerformSegueWithIdentifierSender() bool } -// A concrete type wrapper for the [PSeguePerforming] protocol. -type SeguePerformingWrapper struct { +// ensure impl type implements protocol interface +var _ PSeguePerforming = (*SeguePerformingObject)(nil) + +// A concrete type for the [PSeguePerforming] protocol. +type SeguePerformingObject struct { objc.Object } -func (s_ SeguePerformingWrapper) HasPerformSegueWithIdentifierSender() bool { +func (s_ SeguePerformingObject) HasPerformSegueWithIdentifierSender() bool { return s_.RespondsToSelector(objc.Sel("performSegueWithIdentifier:sender:")) } // Performs the specified segue. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/appkit/nssegueperforming/1409583-performseguewithidentifier?language=objc -func (s_ SeguePerformingWrapper) PerformSegueWithIdentifierSender(identifier StoryboardSegueIdentifier, sender objc.IObject) { +func (s_ SeguePerformingObject) PerformSegueWithIdentifierSender(identifier StoryboardSegueIdentifier, sender objc.Object) { objc.Call[objc.Void](s_, objc.Sel("performSegueWithIdentifier:sender:"), identifier, sender) } -func (s_ SeguePerformingWrapper) HasShouldPerformSegueWithIdentifierSender() bool { - return s_.RespondsToSelector(objc.Sel("shouldPerformSegueWithIdentifier:sender:")) +func (s_ SeguePerformingObject) HasPrepareForSegueSender() bool { + return s_.RespondsToSelector(objc.Sel("prepareForSegue:sender:")) } -// Called immediately prior to the performance of a storyboard segue. [Full Topic] +// Called when a segue is about to be performed. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nssegueperforming/1409574-shouldperformseguewithidentifier?language=objc -func (s_ SeguePerformingWrapper) ShouldPerformSegueWithIdentifierSender(identifier StoryboardSegueIdentifier, sender objc.IObject) bool { - rv := objc.Call[bool](s_, objc.Sel("shouldPerformSegueWithIdentifier:sender:"), identifier, sender) - return rv +// [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:"), objc.Ptr(segue), sender) } -func (s_ SeguePerformingWrapper) HasPrepareForSegueSender() bool { - return s_.RespondsToSelector(objc.Sel("prepareForSegue:sender:")) +func (s_ SeguePerformingObject) HasShouldPerformSegueWithIdentifierSender() bool { + return s_.RespondsToSelector(objc.Sel("shouldPerformSegueWithIdentifier:sender:")) } -// Called when a segue is about to be performed. [Full Topic] +// Called immediately prior to the performance of a storyboard segue. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nssegueperforming/1409580-prepareforsegue?language=objc -func (s_ SeguePerformingWrapper) PrepareForSegueSender(segue IStoryboardSegue, sender objc.IObject) { - objc.Call[objc.Void](s_, objc.Sel("prepareForSegue:sender:"), objc.Ptr(segue), sender) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nssegueperforming/1409574-shouldperformseguewithidentifier?language=objc +func (s_ SeguePerformingObject) ShouldPerformSegueWithIdentifierSender(identifier StoryboardSegueIdentifier, sender objc.Object) bool { + rv := objc.Call[bool](s_, objc.Sel("shouldPerformSegueWithIdentifier:sender:"), identifier, sender) + return rv } diff --git a/macos/appkit/services_menu_requestor.gen.go b/macos/appkit/services_menu_requestor_protocol.gen.go similarity index 68% rename from macos/appkit/services_menu_requestor.gen.go rename to macos/appkit/services_menu_requestor_protocol.gen.go index 5d12b968..9c3e6c64 100644 --- a/macos/appkit/services_menu_requestor.gen.go +++ b/macos/appkit/services_menu_requestor_protocol.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package appkit @@ -19,31 +19,34 @@ type PServicesMenuRequestor interface { HasWriteSelectionToPasteboardTypes() bool } -// A concrete type wrapper for the [PServicesMenuRequestor] protocol. -type ServicesMenuRequestorWrapper struct { +// ensure impl type implements protocol interface +var _ PServicesMenuRequestor = (*ServicesMenuRequestorObject)(nil) + +// A concrete type for the [PServicesMenuRequestor] protocol. +type ServicesMenuRequestorObject struct { objc.Object } -func (s_ ServicesMenuRequestorWrapper) HasReadSelectionFromPasteboard() bool { +func (s_ ServicesMenuRequestorObject) HasReadSelectionFromPasteboard() bool { return s_.RespondsToSelector(objc.Sel("readSelectionFromPasteboard:")) } // Reads data from the pasteboard and uses it to replace the current selection. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/appkit/nsservicesmenurequestor/1428481-readselectionfrompasteboard?language=objc -func (s_ ServicesMenuRequestorWrapper) ReadSelectionFromPasteboard(pboard IPasteboard) bool { +func (s_ ServicesMenuRequestorObject) ReadSelectionFromPasteboard(pboard Pasteboard) bool { rv := objc.Call[bool](s_, objc.Sel("readSelectionFromPasteboard:"), objc.Ptr(pboard)) return rv } -func (s_ ServicesMenuRequestorWrapper) HasWriteSelectionToPasteboardTypes() bool { +func (s_ ServicesMenuRequestorObject) HasWriteSelectionToPasteboardTypes() bool { return s_.RespondsToSelector(objc.Sel("writeSelectionToPasteboard:types:")) } // Writes the current selection to the pasteboard. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/appkit/nsservicesmenurequestor/1428477-writeselectiontopasteboard?language=objc -func (s_ ServicesMenuRequestorWrapper) WriteSelectionToPasteboardTypes(pboard IPasteboard, types []PasteboardType) bool { +func (s_ ServicesMenuRequestorObject) WriteSelectionToPasteboardTypes(pboard Pasteboard, types []PasteboardType) bool { rv := objc.Call[bool](s_, objc.Sel("writeSelectionToPasteboard:types:"), objc.Ptr(pboard), types) return rv } diff --git a/macos/appkit/shadow.gen.go b/macos/appkit/shadow.gen.go index 62f95924..6429a788 100644 --- a/macos/appkit/shadow.gen.go +++ b/macos/appkit/shadow.gen.go @@ -1,11 +1,11 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package appkit import ( "unsafe" - "github.com/progrium/macdriver/macos/coregraphics" + "github.com/progrium/macdriver/macos/foundation" "github.com/progrium/macdriver/objc" ) @@ -22,10 +22,10 @@ type IShadow interface { Set() ShadowBlurRadius() float64 SetShadowBlurRadius(value float64) - ShadowOffset() coregraphics.Size - SetShadowOffset(value coregraphics.Size) - ShadowColor() objc.Object - SetShadowColor(value objc.IObject) + ShadowOffset() foundation.Size + SetShadowOffset(value foundation.Size) + ShadowColor() Color + SetShadowColor(value IColor) } // An object you use to specify attributes to create and style a drop shadow during drawing operations. [Full Topic] @@ -51,10 +51,6 @@ func (sc _ShadowClass) Alloc() Shadow { return rv } -func Shadow_Alloc() Shadow { - return ShadowClass.Alloc() -} - func (sc _ShadowClass) New() Shadow { rv := objc.Call[Shadow](sc, objc.Sel("new")) rv.Autorelease() @@ -90,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() coregraphics.Size { - rv := objc.Call[coregraphics.Size](s_, objc.Sel("shadowOffset")) +func (s_ Shadow) ShadowOffset() foundation.Size { + rv := objc.Call[foundation.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 coregraphics.Size) { +func (s_ Shadow) SetShadowOffset(value foundation.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() objc.Object { - rv := objc.Call[objc.Object](s_, objc.Sel("shadowColor")) +func (s_ Shadow) ShadowColor() Color { + rv := objc.Call[Color](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 objc.IObject) { - objc.Call[objc.Void](s_, objc.Sel("setShadowColor:"), value) +func (s_ Shadow) SetShadowColor(value IColor) { + objc.Call[objc.Void](s_, objc.Sel("setShadowColor:"), objc.Ptr(value)) } diff --git a/macos/appkit/sharing_service.gen.go b/macos/appkit/sharing_service.gen.go index 8e2d276a..8ca51c38 100644 --- a/macos/appkit/sharing_service.gen.go +++ b/macos/appkit/sharing_service.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package appkit @@ -19,24 +19,24 @@ type _SharingServiceClass struct { // An interface definition for the [SharingService] class. type ISharingService interface { objc.IObject - CanPerformWithItems(items []objc.IObject) bool PerformWithItems(items []objc.IObject) - PermanentLink() foundation.URL - MessageBody() string + CanPerformWithItems(items []objc.IObject) bool + Subject() string + SetSubject(value string) AlternateImage() Image + AttachmentFileURLs() []foundation.URL + AccountName() string + Title() string + MenuItemTitle() string + SetMenuItemTitle(value string) + PermanentLink() foundation.URL + Image() Image Recipients() []string SetRecipients(value []string) - Delegate() SharingServiceDelegateWrapper + Delegate() SharingServiceDelegateObject SetDelegate(value PSharingServiceDelegate) SetDelegateObject(valueObject objc.IObject) - MenuItemTitle() string - SetMenuItemTitle(value string) - AttachmentFileURLs() []foundation.URL - Title() string - Subject() string - SetSubject(value string) - Image() Image - AccountName() string + MessageBody() string } // An object that facilitates the sharing of content with social media services, or with apps like Mail or Safari. [Full Topic] @@ -71,10 +71,6 @@ func (sc _SharingServiceClass) Alloc() SharingService { return rv } -func SharingService_Alloc() SharingService { - return SharingServiceClass.Alloc() -} - func (sc _SharingServiceClass) New() SharingService { rv := objc.Call[SharingService](sc, objc.Sel("new")) rv.Autorelease() @@ -90,6 +86,13 @@ 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 @@ -98,13 +101,6 @@ 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 @@ -120,20 +116,19 @@ func SharingService_SharingServiceNamed(serviceName SharingServiceName) SharingS return SharingServiceClass.SharingServiceNamed(serviceName) } -// A permanent URL (permalink) that your app can use to access the post. [Full Topic] +// The subject of the post. [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/1402626-subject?language=objc +func (s_ SharingService) Subject() string { + rv := objc.Call[string](s_, objc.Sel("subject")) return rv } -// The message body as a string. [Full Topic] +// The subject of the post. [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")) - return rv +// [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) } // The alternate image representing the sharing service. [Full Topic] @@ -144,43 +139,28 @@ func (s_ SharingService) AlternateImage() Image { return rv } -// An array containing the user handles of the desired recipients. [Full Topic] +// An array of NSURL objects representing the files that were shared. [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/1402707-attachmentfileurls?language=objc +func (s_ SharingService) AttachmentFileURLs() []foundation.URL { + rv := objc.Call[[]foundation.URL](s_, objc.Sel("attachmentFileURLs")) return rv } -// An array containing the user handles of the desired recipients. [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) -} - -// Specifies the delegate of the sharing service. [Full Topic] +// The account name used for posting on Twitter or Sina Weibo. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nssharingservice/1402681-delegate?language=objc -func (s_ SharingService) Delegate() SharingServiceDelegateWrapper { - rv := objc.Call[SharingServiceDelegateWrapper](s_, objc.Sel("delegate")) +// [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 } -// 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] +// The title 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:"), objc.Ptr(valueObject)) +// [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 } // The title of the service in the Share menu. [Full Topic] @@ -198,49 +178,65 @@ func (s_ SharingService) SetMenuItemTitle(value string) { objc.Call[objc.Void](s_, objc.Sel("setMenuItemTitle:"), value) } -// An array of NSURL objects representing the files that were shared. [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/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/1402685-permanentlink?language=objc +func (s_ SharingService) PermanentLink() foundation.URL { + rv := objc.Call[foundation.URL](s_, objc.Sel("permanentLink")) return rv } -// The title of the sharing service. [Full Topic] +// The primary image representing 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/1402654-image?language=objc +func (s_ SharingService) Image() Image { + rv := objc.Call[Image](s_, objc.Sel("image")) return rv } -// The subject of the post. [Full Topic] +// An array containing the user handles of the desired recipients. [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/1402652-recipients?language=objc +func (s_ SharingService) Recipients() []string { + rv := objc.Call[[]string](s_, objc.Sel("recipients")) return rv } -// The subject of the post. [Full Topic] +// An array containing the user handles of the desired recipients. [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/1402652-recipients?language=objc +func (s_ SharingService) SetRecipients(value []string) { + objc.Call[objc.Void](s_, objc.Sel("setRecipients:"), value) } -// The primary image representing the sharing service. [Full Topic] +// Specifies the delegate 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/1402681-delegate?language=objc +func (s_ SharingService) Delegate() SharingServiceDelegateObject { + rv := objc.Call[SharingServiceDelegateObject](s_, objc.Sel("delegate")) return rv } -// The account name used for posting on Twitter or Sina Weibo. [Full Topic] +// Specifies the delegate of the sharing service. [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")) +// [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:"), objc.Ptr(valueObject)) +} + +// The message body as a string. [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")) return rv } diff --git a/macos/appkit/sharing_service_delegate.gen.go b/macos/appkit/sharing_service_delegate.gen.go index 2bc8043f..7fff258d 100644 --- a/macos/appkit/sharing_service_delegate.gen.go +++ b/macos/appkit/sharing_service_delegate.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package appkit @@ -11,21 +11,97 @@ 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 - AnchoringViewForSharingServiceShowRelativeToRectPreferredEdge(sharingService SharingService, positioningRect *foundation.Rect, preferredEdge *foundation.RectEdge) IView - HasAnchoringViewForSharingServiceShowRelativeToRectPreferredEdge() bool + 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 } // 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) - _AnchoringViewForSharingServiceShowRelativeToRectPreferredEdge func(sharingService SharingService, positioningRect *foundation.Rect, preferredEdge *foundation.RectEdge) IView + _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 +} + +// [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 } @@ -43,48 +119,143 @@ func (di *SharingServiceDelegate) SetSharingServiceDidShareItems(f func(sharingS func (di *SharingServiceDelegate) SharingServiceDidShareItems(sharingService SharingService, items []objc.Object) { di._SharingServiceDidShareItems(sharingService, items) } -func (di *SharingServiceDelegate) HasAnchoringViewForSharingServiceShowRelativeToRectPreferredEdge() bool { - return di._AnchoringViewForSharingServiceShowRelativeToRectPreferredEdge != nil +func (di *SharingServiceDelegate) HasSharingServiceSourceWindowForShareItemsSharingContentScope() bool { + return di._SharingServiceSourceWindowForShareItemsSharingContentScope != nil } -// [Full Topic] +// Returns the window that contained the share items. [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) IView) { - di._AnchoringViewForSharingServiceShowRelativeToRectPreferredEdge = f +// [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 } -// [Full Topic] +// Returns the window that contained the share items. [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) IView { - return di._AnchoringViewForSharingServiceShowRelativeToRectPreferredEdge(sharingService, positioningRect, preferredEdge) +// [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 } -// A concrete type wrapper for the [PSharingServiceDelegate] protocol. -type SharingServiceDelegateWrapper struct { +// 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 +} + +// 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 (di *SharingServiceDelegate) SetSharingServiceDidFailToShareItemsError(f func(sharingService SharingService, items []objc.Object, error foundation.Error)) { + di._SharingServiceDidFailToShareItemsError = f +} + +// 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 (di *SharingServiceDelegate) SharingServiceDidFailToShareItemsError(sharingService SharingService, items []objc.Object, error foundation.Error) { + di._SharingServiceDidFailToShareItemsError(sharingService, items, error) +} + +// ensure impl type implements protocol interface +var _ PSharingServiceDelegate = (*SharingServiceDelegateObject)(nil) + +// A concrete type for the [PSharingServiceDelegate] protocol. +type SharingServiceDelegateObject struct { objc.Object } -func (s_ SharingServiceDelegateWrapper) HasSharingServiceDidShareItems() bool { - return s_.RespondsToSelector(objc.Sel("sharingService:didShareItems:")) +func (s_ SharingServiceDelegateObject) HasSharingServiceWillShareItems() bool { + return s_.RespondsToSelector(objc.Sel("sharingService:willShareItems:")) } -// Invoked when the sharing service has finished sharing the items. [Full Topic] +// Invoked when the sharing service will share the specified items. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nssharingservicedelegate/1402638-sharingservice?language=objc -func (s_ SharingServiceDelegateWrapper) SharingServiceDidShareItems(sharingService ISharingService, items []objc.IObject) { - objc.Call[objc.Void](s_, objc.Sel("sharingService:didShareItems:"), objc.Ptr(sharingService), items) +// [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:"), objc.Ptr(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:"), objc.Ptr(sharingService), item, contentRect) + return rv } -func (s_ SharingServiceDelegateWrapper) HasAnchoringViewForSharingServiceShowRelativeToRectPreferredEdge() bool { +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_ SharingServiceDelegateWrapper) AnchoringViewForSharingServiceShowRelativeToRectPreferredEdge(sharingService ISharingService, positioningRect *foundation.Rect, preferredEdge *foundation.RectEdge) View { +func (s_ SharingServiceDelegateObject) AnchoringViewForSharingServiceShowRelativeToRectPreferredEdge(sharingService SharingService, positioningRect *foundation.Rect, preferredEdge *foundation.RectEdge) View { rv := objc.Call[View](s_, objc.Sel("anchoringViewForSharingService:showRelativeToRect:preferredEdge:"), objc.Ptr(sharingService), positioningRect, preferredEdge) return rv } + +func (s_ SharingServiceDelegateObject) HasSharingServiceDidShareItems() bool { + return s_.RespondsToSelector(objc.Sel("sharingService:didShareItems:")) +} + +// Invoked when the sharing service has finished sharing the items. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/appkit/nssharingservicedelegate/1402638-sharingservice?language=objc +func (s_ SharingServiceDelegateObject) SharingServiceDidShareItems(sharingService SharingService, items []objc.Object) { + objc.Call[objc.Void](s_, objc.Sel("sharingService:didShareItems:"), objc.Ptr(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:"), objc.Ptr(sharingService), items, sharingContentScope) + return rv +} + +func (s_ SharingServiceDelegateObject) HasSharingServiceSourceFrameOnScreenForShareItem() bool { + return s_.RespondsToSelector(objc.Sel("sharingService:sourceFrameOnScreenForShareItem:")) +} + +// 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 (s_ SharingServiceDelegateObject) SharingServiceSourceFrameOnScreenForShareItem(sharingService SharingService, item objc.Object) foundation.Rect { + rv := objc.Call[foundation.Rect](s_, objc.Sel("sharingService:sourceFrameOnScreenForShareItem:"), objc.Ptr(sharingService), item) + 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:"), objc.Ptr(sharingService), items, objc.Ptr(error)) +} diff --git a/macos/appkit/sharing_service_picker.gen.go b/macos/appkit/sharing_service_picker.gen.go index 5c6e4b69..1a4a4722 100644 --- a/macos/appkit/sharing_service_picker.gen.go +++ b/macos/appkit/sharing_service_picker.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package appkit @@ -20,7 +20,7 @@ type _SharingServicePickerClass struct { type ISharingServicePicker interface { objc.IObject ShowRelativeToRectOfViewPreferredEdge(rect foundation.Rect, view IView, preferredEdge foundation.RectEdge) - Delegate() SharingServicePickerDelegateWrapper + Delegate() SharingServicePickerDelegateObject SetDelegate(value PSharingServicePickerDelegate) SetDelegateObject(valueObject objc.IObject) } @@ -57,10 +57,6 @@ func (sc _SharingServicePickerClass) Alloc() SharingServicePicker { return rv } -func SharingServicePicker_Alloc() SharingServicePicker { - return SharingServicePickerClass.Alloc() -} - func (sc _SharingServicePickerClass) New() SharingServicePicker { rv := objc.Call[SharingServicePicker](sc, objc.Sel("new")) rv.Autorelease() @@ -86,8 +82,8 @@ func (s_ SharingServicePicker) ShowRelativeToRectOfViewPreferredEdge(rect founda // The object for managing the sharing service picker. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/appkit/nssharingservicepicker/1402687-delegate?language=objc -func (s_ SharingServicePicker) Delegate() SharingServicePickerDelegateWrapper { - rv := objc.Call[SharingServicePickerDelegateWrapper](s_, objc.Sel("delegate")) +func (s_ SharingServicePicker) Delegate() SharingServicePickerDelegateObject { + rv := objc.Call[SharingServicePickerDelegateObject](s_, objc.Sel("delegate")) return rv } diff --git a/macos/appkit/sharing_service_picker_delegate.gen.go b/macos/appkit/sharing_service_picker_delegate.gen.go index 91744bf0..dafbadbd 100644 --- a/macos/appkit/sharing_service_picker_delegate.gen.go +++ b/macos/appkit/sharing_service_picker_delegate.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package appkit @@ -10,16 +10,43 @@ 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 { - _SharingServicePickerDidChooseSharingService func(sharingServicePicker SharingServicePicker, service SharingService) + _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 +} + +// 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 } @@ -37,19 +64,63 @@ 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 +} -// A concrete type wrapper for the [PSharingServicePickerDelegate] protocol. -type SharingServicePickerDelegateWrapper struct { +// 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) + +// A concrete type for the [PSharingServicePickerDelegate] protocol. +type SharingServicePickerDelegateObject struct { objc.Object } -func (s_ SharingServicePickerDelegateWrapper) HasSharingServicePickerDidChooseSharingService() bool { +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:"), objc.Ptr(sharingServicePicker), items, proposedServices) + return rv +} + +func (s_ SharingServicePickerDelegateObject) HasSharingServicePickerDidChooseSharingService() bool { return s_.RespondsToSelector(objc.Sel("sharingServicePicker:didChooseSharingService:")) } // Tells the delegate that the person selected a sharing service for the current item. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/appkit/nssharingservicepickerdelegate/1402610-sharingservicepicker?language=objc -func (s_ SharingServicePickerDelegateWrapper) SharingServicePickerDidChooseSharingService(sharingServicePicker ISharingServicePicker, service ISharingService) { +func (s_ SharingServicePickerDelegateObject) SharingServicePickerDidChooseSharingService(sharingServicePicker SharingServicePicker, service SharingService) { objc.Call[objc.Void](s_, objc.Sel("sharingServicePicker:didChooseSharingService:"), objc.Ptr(sharingServicePicker), objc.Ptr(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:"), objc.Ptr(sharingServicePicker), objc.Ptr(sharingService)) + return rv +} diff --git a/macos/appkit/sharing_service_picker_toolbar_item.gen.go b/macos/appkit/sharing_service_picker_toolbar_item.gen.go index a0a90e7e..eb72ff73 100644 --- a/macos/appkit/sharing_service_picker_toolbar_item.gen.go +++ b/macos/appkit/sharing_service_picker_toolbar_item.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package appkit @@ -18,7 +18,7 @@ type _SharingServicePickerToolbarItemClass struct { // An interface definition for the [SharingServicePickerToolbarItem] class. type ISharingServicePickerToolbarItem interface { IToolbarItem - Delegate() SharingServicePickerToolbarItemDelegateWrapper + Delegate() SharingServicePickerToolbarItemDelegateObject SetDelegate(value PSharingServicePickerToolbarItemDelegate) SetDelegateObject(valueObject objc.IObject) } @@ -41,10 +41,6 @@ func (sc _SharingServicePickerToolbarItemClass) Alloc() SharingServicePickerTool return rv } -func SharingServicePickerToolbarItem_Alloc() SharingServicePickerToolbarItem { - return SharingServicePickerToolbarItemClass.Alloc() -} - func (sc _SharingServicePickerToolbarItemClass) New() SharingServicePickerToolbarItem { rv := objc.Call[SharingServicePickerToolbarItem](sc, objc.Sel("new")) rv.Autorelease() @@ -77,8 +73,8 @@ func NewSharingServicePickerToolbarItemWithItemIdentifier(itemIdentifier Toolbar // The custom object from your app that provides the items to share. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/appkit/nssharingservicepickertoolbaritem/3365981-delegate?language=objc -func (s_ SharingServicePickerToolbarItem) Delegate() SharingServicePickerToolbarItemDelegateWrapper { - rv := objc.Call[SharingServicePickerToolbarItemDelegateWrapper](s_, objc.Sel("delegate")) +func (s_ SharingServicePickerToolbarItem) Delegate() SharingServicePickerToolbarItemDelegateObject { + rv := objc.Call[SharingServicePickerToolbarItemDelegateObject](s_, objc.Sel("delegate")) return rv } diff --git a/macos/appkit/sharing_service_picker_toolbar_item_delegate.gen.go b/macos/appkit/sharing_service_picker_toolbar_item_delegate.gen.go index f14327df..0c38d17c 100644 --- a/macos/appkit/sharing_service_picker_toolbar_item_delegate.gen.go +++ b/macos/appkit/sharing_service_picker_toolbar_item_delegate.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package appkit @@ -11,13 +11,13 @@ import ( // [Full Topic]: https://developer.apple.com/documentation/appkit/nssharingservicepickertoolbaritemdelegate?language=objc type PSharingServicePickerToolbarItemDelegate interface { // optional - ItemsForSharingServicePickerToolbarItem(pickerToolbarItem SharingServicePickerToolbarItem) []objc.IObject + ItemsForSharingServicePickerToolbarItem(pickerToolbarItem SharingServicePickerToolbarItem) []objc.Object HasItemsForSharingServicePickerToolbarItem() bool } // A delegate implementation builder for the [PSharingServicePickerToolbarItemDelegate] protocol. type SharingServicePickerToolbarItemDelegate struct { - _ItemsForSharingServicePickerToolbarItem func(pickerToolbarItem SharingServicePickerToolbarItem) []objc.IObject + _ItemsForSharingServicePickerToolbarItem func(pickerToolbarItem SharingServicePickerToolbarItem) []objc.Object } func (di *SharingServicePickerToolbarItemDelegate) HasItemsForSharingServicePickerToolbarItem() bool { @@ -27,30 +27,33 @@ func (di *SharingServicePickerToolbarItemDelegate) HasItemsForSharingServicePick // Asks the delegate for the items to share. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/appkit/nssharingservicepickertoolbaritemdelegate/3365983-itemsforsharingservicepickertool?language=objc -func (di *SharingServicePickerToolbarItemDelegate) SetItemsForSharingServicePickerToolbarItem(f func(pickerToolbarItem SharingServicePickerToolbarItem) []objc.IObject) { +func (di *SharingServicePickerToolbarItemDelegate) SetItemsForSharingServicePickerToolbarItem(f func(pickerToolbarItem SharingServicePickerToolbarItem) []objc.Object) { di._ItemsForSharingServicePickerToolbarItem = f } // Asks the delegate for the items to share. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/appkit/nssharingservicepickertoolbaritemdelegate/3365983-itemsforsharingservicepickertool?language=objc -func (di *SharingServicePickerToolbarItemDelegate) ItemsForSharingServicePickerToolbarItem(pickerToolbarItem SharingServicePickerToolbarItem) []objc.IObject { +func (di *SharingServicePickerToolbarItemDelegate) ItemsForSharingServicePickerToolbarItem(pickerToolbarItem SharingServicePickerToolbarItem) []objc.Object { return di._ItemsForSharingServicePickerToolbarItem(pickerToolbarItem) } -// A concrete type wrapper for the [PSharingServicePickerToolbarItemDelegate] protocol. -type SharingServicePickerToolbarItemDelegateWrapper struct { +// ensure impl type implements protocol interface +var _ PSharingServicePickerToolbarItemDelegate = (*SharingServicePickerToolbarItemDelegateObject)(nil) + +// A concrete type for the [PSharingServicePickerToolbarItemDelegate] protocol. +type SharingServicePickerToolbarItemDelegateObject struct { objc.Object } -func (s_ SharingServicePickerToolbarItemDelegateWrapper) HasItemsForSharingServicePickerToolbarItem() bool { +func (s_ SharingServicePickerToolbarItemDelegateObject) HasItemsForSharingServicePickerToolbarItem() bool { return s_.RespondsToSelector(objc.Sel("itemsForSharingServicePickerToolbarItem:")) } // Asks the delegate for the items to share. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/appkit/nssharingservicepickertoolbaritemdelegate/3365983-itemsforsharingservicepickertool?language=objc -func (s_ SharingServicePickerToolbarItemDelegateWrapper) ItemsForSharingServicePickerToolbarItem(pickerToolbarItem ISharingServicePickerToolbarItem) []objc.Object { +func (s_ SharingServicePickerToolbarItemDelegateObject) ItemsForSharingServicePickerToolbarItem(pickerToolbarItem SharingServicePickerToolbarItem) []objc.Object { rv := objc.Call[[]objc.Object](s_, objc.Sel("itemsForSharingServicePickerToolbarItem:"), objc.Ptr(pickerToolbarItem)) return rv } diff --git a/macos/appkit/sharing_service_picker_touch_bar_item.gen.go b/macos/appkit/sharing_service_picker_touch_bar_item.gen.go index 614d0a08..f4af8aee 100644 --- a/macos/appkit/sharing_service_picker_touch_bar_item.gen.go +++ b/macos/appkit/sharing_service_picker_touch_bar_item.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package appkit @@ -22,7 +22,7 @@ type ISharingServicePickerTouchBarItem interface { SetButtonImage(value IImage) ButtonTitle() string SetButtonTitle(value string) - Delegate() SharingServicePickerTouchBarItemDelegateWrapper + Delegate() SharingServicePickerTouchBarItemDelegateObject SetDelegate(value PSharingServicePickerTouchBarItemDelegate) SetDelegateObject(valueObject objc.IObject) IsEnabled() bool @@ -47,10 +47,6 @@ func (sc _SharingServicePickerTouchBarItemClass) Alloc() SharingServicePickerTou return rv } -func SharingServicePickerTouchBarItem_Alloc() SharingServicePickerTouchBarItem { - return SharingServicePickerTouchBarItemClass.Alloc() -} - func (sc _SharingServicePickerTouchBarItemClass) New() SharingServicePickerTouchBarItem { rv := objc.Call[SharingServicePickerTouchBarItem](sc, objc.Sel("new")) rv.Autorelease() @@ -113,8 +109,8 @@ func (s_ SharingServicePickerTouchBarItem) SetButtonTitle(value string) { // The object that acts as the delegate of the sharing service picker bar item. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/appkit/nssharingservicepickertouchbaritem/2539408-delegate?language=objc -func (s_ SharingServicePickerTouchBarItem) Delegate() SharingServicePickerTouchBarItemDelegateWrapper { - rv := objc.Call[SharingServicePickerTouchBarItemDelegateWrapper](s_, objc.Sel("delegate")) +func (s_ SharingServicePickerTouchBarItem) Delegate() SharingServicePickerTouchBarItemDelegateObject { + rv := objc.Call[SharingServicePickerTouchBarItemDelegateObject](s_, objc.Sel("delegate")) return rv } diff --git a/macos/appkit/sharing_service_picker_touch_bar_item_delegate.gen.go b/macos/appkit/sharing_service_picker_touch_bar_item_delegate.gen.go index 84f8efe4..134eb7aa 100644 --- a/macos/appkit/sharing_service_picker_touch_bar_item_delegate.gen.go +++ b/macos/appkit/sharing_service_picker_touch_bar_item_delegate.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package appkit @@ -11,13 +11,13 @@ import ( // [Full Topic]: https://developer.apple.com/documentation/appkit/nssharingservicepickertouchbaritemdelegate?language=objc type PSharingServicePickerTouchBarItemDelegate interface { // optional - ItemsForSharingServicePickerTouchBarItem(pickerTouchBarItem SharingServicePickerTouchBarItem) []objc.IObject + ItemsForSharingServicePickerTouchBarItem(pickerTouchBarItem SharingServicePickerTouchBarItem) []objc.Object HasItemsForSharingServicePickerTouchBarItem() bool } // A delegate implementation builder for the [PSharingServicePickerTouchBarItemDelegate] protocol. type SharingServicePickerTouchBarItemDelegate struct { - _ItemsForSharingServicePickerTouchBarItem func(pickerTouchBarItem SharingServicePickerTouchBarItem) []objc.IObject + _ItemsForSharingServicePickerTouchBarItem func(pickerTouchBarItem SharingServicePickerTouchBarItem) []objc.Object } func (di *SharingServicePickerTouchBarItemDelegate) HasItemsForSharingServicePickerTouchBarItem() bool { @@ -27,30 +27,33 @@ func (di *SharingServicePickerTouchBarItemDelegate) HasItemsForSharingServicePic // Asks the delegate for items that represent the objects to be shared. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/appkit/nssharingservicepickertouchbaritemdelegate/2646997-itemsforsharingservicepickertouc?language=objc -func (di *SharingServicePickerTouchBarItemDelegate) SetItemsForSharingServicePickerTouchBarItem(f func(pickerTouchBarItem SharingServicePickerTouchBarItem) []objc.IObject) { +func (di *SharingServicePickerTouchBarItemDelegate) SetItemsForSharingServicePickerTouchBarItem(f func(pickerTouchBarItem SharingServicePickerTouchBarItem) []objc.Object) { di._ItemsForSharingServicePickerTouchBarItem = f } // Asks the delegate for items that represent the objects to be shared. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/appkit/nssharingservicepickertouchbaritemdelegate/2646997-itemsforsharingservicepickertouc?language=objc -func (di *SharingServicePickerTouchBarItemDelegate) ItemsForSharingServicePickerTouchBarItem(pickerTouchBarItem SharingServicePickerTouchBarItem) []objc.IObject { +func (di *SharingServicePickerTouchBarItemDelegate) ItemsForSharingServicePickerTouchBarItem(pickerTouchBarItem SharingServicePickerTouchBarItem) []objc.Object { return di._ItemsForSharingServicePickerTouchBarItem(pickerTouchBarItem) } -// A concrete type wrapper for the [PSharingServicePickerTouchBarItemDelegate] protocol. -type SharingServicePickerTouchBarItemDelegateWrapper struct { +// ensure impl type implements protocol interface +var _ PSharingServicePickerTouchBarItemDelegate = (*SharingServicePickerTouchBarItemDelegateObject)(nil) + +// A concrete type for the [PSharingServicePickerTouchBarItemDelegate] protocol. +type SharingServicePickerTouchBarItemDelegateObject struct { objc.Object } -func (s_ SharingServicePickerTouchBarItemDelegateWrapper) HasItemsForSharingServicePickerTouchBarItem() bool { +func (s_ SharingServicePickerTouchBarItemDelegateObject) HasItemsForSharingServicePickerTouchBarItem() bool { return s_.RespondsToSelector(objc.Sel("itemsForSharingServicePickerTouchBarItem:")) } // Asks the delegate for items that represent the objects to be shared. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/appkit/nssharingservicepickertouchbaritemdelegate/2646997-itemsforsharingservicepickertouc?language=objc -func (s_ SharingServicePickerTouchBarItemDelegateWrapper) ItemsForSharingServicePickerTouchBarItem(pickerTouchBarItem ISharingServicePickerTouchBarItem) []objc.Object { +func (s_ SharingServicePickerTouchBarItemDelegateObject) ItemsForSharingServicePickerTouchBarItem(pickerTouchBarItem SharingServicePickerTouchBarItem) []objc.Object { rv := objc.Call[[]objc.Object](s_, objc.Sel("itemsForSharingServicePickerTouchBarItem:"), objc.Ptr(pickerTouchBarItem)) return rv } diff --git a/macos/appkit/slider.gen.go b/macos/appkit/slider.gen.go index e79027d6..2dcc09ba 100644 --- a/macos/appkit/slider.gen.go +++ b/macos/appkit/slider.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package appkit @@ -19,29 +19,29 @@ type _SliderClass struct { // An interface definition for the [Slider] class. type ISlider interface { IControl - RectOfTickMarkAtIndex(index int) foundation.Rect - ClosestTickMarkValueToValue(value float64) float64 TickMarkValueAtIndex(index int) float64 + ClosestTickMarkValueToValue(value float64) float64 IndexOfTickMarkAtPoint(point foundation.Point) int - AltIncrementValue() float64 - SetAltIncrementValue(value float64) + RectOfTickMarkAtIndex(index int) foundation.Rect TickMarkPosition() TickMarkPosition SetTickMarkPosition(value TickMarkPosition) + AllowsTickMarkValuesOnly() bool + SetAllowsTickMarkValuesOnly(value bool) + MaxValue() float64 + SetMaxValue(value float64) KnobThickness() float64 - SliderType() SliderType - SetSliderType(value SliderType) MinValue() float64 SetMinValue(value float64) - MaxValue() float64 - SetMaxValue(value float64) + NumberOfTickMarks() int + SetNumberOfTickMarks(value int) + SliderType() SliderType + SetSliderType(value SliderType) + AltIncrementValue() float64 + SetAltIncrementValue(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] @@ -86,10 +86,6 @@ func (sc _SliderClass) Alloc() Slider { return rv } -func Slider_Alloc() Slider { - return SliderClass.Alloc() -} - func (sc _SliderClass) New() Slider { rv := objc.Call[Slider](sc, objc.Sel("new")) rv.Autorelease() @@ -119,11 +115,11 @@ func NewSliderWithFrame(frameRect foundation.Rect) Slider { return instance } -// Returns the bounding rectangle of the tick mark at the given index. [Full Topic] +// 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/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/1527230-tickmarkvalueatindex?language=objc +func (s_ Slider) TickMarkValueAtIndex(index int) float64 { + rv := objc.Call[float64](s_, objc.Sel("tickMarkValueAtIndex:"), index) return rv } @@ -135,14 +131,6 @@ 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 @@ -151,21 +139,14 @@ func (s_ Slider) IndexOfTickMarkAtPoint(point foundation.Point) int { return rv } -// The amount by which the slider changes its value when the user Option-drags the slider knob. [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/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/1532922-rectoftickmarkatindex?language=objc +func (s_ Slider) RectOfTickMarkAtIndex(index int) foundation.Rect { + rv := objc.Call[foundation.Rect](s_, objc.Sel("rectOfTickMarkAtIndex:"), index) 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 @@ -181,27 +162,42 @@ func (s_ Slider) SetTickMarkPosition(value TickMarkPosition) { objc.Call[objc.Void](s_, objc.Sel("setTickMarkPosition:"), value) } -// The knob’s thickness, in pixels. [Full Topic] +// 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/1532909-knobthickness?language=objc -func (s_ Slider) KnobThickness() float64 { - rv := objc.Call[float64](s_, objc.Sel("knobThickness")) +// [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 } -// The type of the slider, such as vertical or circular. [Full Topic] +// 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/1532924-slidertype?language=objc -func (s_ Slider) SliderType() SliderType { - rv := objc.Call[SliderType](s_, objc.Sel("sliderType")) +// [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] +// +// [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 type of the slider, such as vertical or circular. [Full Topic] +// The maximum value the slider can send to its target. [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) +// [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] +// +// [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 } // The minimum value the slider can send to its target. [Full Topic] @@ -219,19 +215,49 @@ func (s_ Slider) SetMinValue(value float64) { objc.Call[objc.Void](s_, objc.Sel("setMinValue:"), value) } -// The maximum value the slider can send to its target. [Full Topic] +// The number of tick marks associated with the slider. [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/1524268-numberoftickmarks?language=objc +func (s_ Slider) NumberOfTickMarks() int { + rv := objc.Call[int](s_, objc.Sel("numberOfTickMarks")) return rv } -// The maximum value the slider can send to its target. [Full Topic] +// The number of tick marks associated with the slider. [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) +// [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] +// +// [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) } // The color of the filled portion of the slider track, in appearances that support it. [Full Topic] @@ -263,33 +289,3 @@ 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 7b5e5f58..b245aa2e 100644 --- a/macos/appkit/slider_accessory.gen.go +++ b/macos/appkit/slider_accessory.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package appkit @@ -18,10 +18,10 @@ type _SliderAccessoryClass struct { // An interface definition for the [SliderAccessory] class. type ISliderAccessory interface { objc.IObject - Behavior() SliderAccessoryBehavior - SetBehavior(value ISliderAccessoryBehavior) IsEnabled() bool SetEnabled(value bool) + Behavior() SliderAccessoryBehavior + SetBehavior(value ISliderAccessoryBehavior) } // [Full Topic] @@ -42,10 +42,6 @@ func (sc _SliderAccessoryClass) Alloc() SliderAccessory { return rv } -func SliderAccessory_Alloc() SliderAccessory { - return SliderAccessoryClass.Alloc() -} - func (sc _SliderAccessoryClass) New() SliderAccessory { rv := objc.Call[SliderAccessory](sc, objc.Sel("new")) rv.Autorelease() @@ -78,30 +74,30 @@ func SliderAccessory_AccessoryWithImage(image IImage) SliderAccessory { // [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:"), objc.Ptr(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) } // [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:"), objc.Ptr(value)) } diff --git a/macos/appkit/slider_accessory_behavior.gen.go b/macos/appkit/slider_accessory_behavior.gen.go index 70244dfa..75c399db 100644 --- a/macos/appkit/slider_accessory_behavior.gen.go +++ b/macos/appkit/slider_accessory_behavior.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package appkit @@ -39,10 +39,6 @@ func (sc _SliderAccessoryBehaviorClass) Alloc() SliderAccessoryBehavior { return rv } -func SliderAccessoryBehavior_Alloc() SliderAccessoryBehavior { - return SliderAccessoryBehaviorClass.Alloc() -} - func (sc _SliderAccessoryBehaviorClass) New() SliderAccessoryBehavior { rv := objc.Call[SliderAccessoryBehavior](sc, objc.Sel("new")) rv.Autorelease() @@ -58,6 +54,13 @@ 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:"), objc.Ptr(sender)) +} + // [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/appkit/nsslideraccessorybehavior/2544778-behaviorwithhandler?language=objc @@ -90,9 +93,17 @@ func SliderAccessoryBehavior_BehaviorWithTargetAction(target objc.IObject, actio // [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:"), objc.Ptr(sender)) +// [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] @@ -110,21 +121,6 @@ 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 977c711f..598097ec 100644 --- a/macos/appkit/slider_cell.gen.go +++ b/macos/appkit/slider_cell.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package appkit @@ -19,33 +19,34 @@ 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 - BarRectFlipped(flipped bool) foundation.Rect - DrawTickMarks() - DrawBarInsideFlipped(rect foundation.Rect, flipped bool) - DrawKnob(knobRect foundation.Rect) ClosestTickMarkValueToValue(value float64) float64 - TickMarkValueAtIndex(index int) float64 - KnobRectFlipped(flipped bool) foundation.Rect IndexOfTickMarkAtPoint(point foundation.Point) int - AltIncrementValue() float64 - SetAltIncrementValue(value float64) - TickMarkPosition() TickMarkPosition - SetTickMarkPosition(value TickMarkPosition) - KnobThickness() float64 + DrawBarInsideFlipped(rect foundation.Rect, flipped bool) + DrawTickMarks() + BarRectFlipped(flipped bool) foundation.Rect + DrawKnob() + KnobRectFlipped(flipped bool) foundation.Rect 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) + MinValue() float64 + SetMinValue(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) + SliderType() SliderType + SetSliderType(value SliderType) } // The appearance and behavior of an NSSlider object. [Full Topic] @@ -66,10 +67,6 @@ func (sc _SliderCellClass) Alloc() SliderCell { return rv } -func SliderCell_Alloc() SliderCell { - return SliderCellClass.Alloc() -} - func (sc _SliderCellClass) New() SliderCell { rv := objc.Call[SliderCell](sc, objc.Sel("new")) rv.Autorelease() @@ -113,6 +110,21 @@ 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 @@ -121,19 +133,20 @@ func (s_ SliderCell) RectOfTickMarkAtIndex(index int) foundation.Rect { return rv } -// 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 } -// Draws the slider’s 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/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/1444614-indexoftickmarkatpoint?language=objc +func (s_ SliderCell) IndexOfTickMarkAtPoint(point foundation.Point) int { + rv := objc.Call[int](s_, objc.Sel("indexOfTickMarkAtPoint:"), point) + return rv } // Draws the slider’s bar—but not its bezel or knob—inside the specified rectangle. [Full Topic] @@ -143,27 +156,26 @@ func (s_ SliderCell) DrawBarInsideFlipped(rect foundation.Rect, flipped bool) { objc.Call[objc.Void](s_, objc.Sel("drawBarInside:flipped:"), rect, flipped) } -// Draws the slider knob in the given rectangle. [Full Topic] +// Draws the slider’s tick marks. [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) +// [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")) } -// 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 receiver’s value represented by the tick mark at the specified index. [Full Topic] +// Calculates the rectangle in which the knob should be drawn, then calls [appkit/nsslidercell/drawknob] to actually draw the knob. [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 +// [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")) } // Returns the rectangle in which the slider knob is drawn. [Full Topic] @@ -174,27 +186,42 @@ func (s_ SliderCell) KnobRectFlipped(flipped bool) foundation.Rect { return rv } -// Returns the index of the tick mark closest to the location of the slider represented by the specified point. [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/1444614-indexoftickmarkatpoint?language=objc -func (s_ SliderCell) IndexOfTickMarkAtPoint(point foundation.Point) int { - rv := objc.Call[int](s_, objc.Sel("indexOfTickMarkAtPoint:"), point) +// [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 amount by which the slider changes its value when the user Option-drags the knob. [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/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/1444604-allowstickmarkvaluesonly?language=objc +func (s_ SliderCell) AllowsTickMarkValuesOnly() bool { + rv := objc.Call[bool](s_, objc.Sel("allowsTickMarkValuesOnly")) return rv } -// The amount by which the slider changes its value when the user Option-drags the knob. [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/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/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] +// +// [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 +} + +// 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) SetMinValue(value float64) { + objc.Call[objc.Void](s_, objc.Sel("setMinValue:"), value) } // The position of the tick marks relative to the receiver. [Full Topic] @@ -220,42 +247,34 @@ func (s_ SliderCell) KnobThickness() float64 { 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 -} - -// The slider type, either linear or circular. [Full Topic] +// 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/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/1444621-numberoftickmarks?language=objc +func (s_ SliderCell) NumberOfTickMarks() int { + rv := objc.Call[int](s_, objc.Sel("numberOfTickMarks")) return rv } -// The slider type, either linear or circular. [Full Topic] +// 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/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/1444621-numberoftickmarks?language=objc +func (s_ SliderCell) SetNumberOfTickMarks(value int) { + objc.Call[objc.Void](s_, objc.Sel("setNumberOfTickMarks:"), value) } -// The minimum value the slider can send to its target. [Full Topic] +// An integer indicating the orientation (vertical or horizontal) of the slider. [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/1444602-vertical?language=objc +func (s_ SliderCell) IsVertical() bool { + rv := objc.Call[bool](s_, objc.Sel("isVertical")) return rv } -// The minimum value the slider can send to its target. [Full Topic] +// An integer indicating the orientation (vertical or horizontal) of the slider. [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/1444602-vertical?language=objc +func (s_ SliderCell) SetVertical(value bool) { + objc.Call[objc.Void](s_, objc.Sel("setVertical:"), value) } // The maximum value the slider can send to its target. [Full Topic] @@ -273,47 +292,32 @@ func (s_ SliderCell) SetMaxValue(value float64) { objc.Call[objc.Void](s_, objc.Sel("setMaxValue:"), value) } -// An integer indicating the orientation (vertical or horizontal) of the slider. [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")) - return rv -} - -// An integer indicating the orientation (vertical or horizontal) of the slider. [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) -} - -// A Boolean value indicating whether the receiver fixes its values to those values represented by its tick marks. [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/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/1444596-altincrementvalue?language=objc +func (s_ SliderCell) AltIncrementValue() float64 { + rv := objc.Call[float64](s_, objc.Sel("altIncrementValue")) return rv } -// A Boolean value indicating whether the receiver fixes its values to those values represented by its tick marks. [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/1444604-allowstickmarkvaluesonly?language=objc -func (s_ SliderCell) SetAllowsTickMarkValuesOnly(value bool) { - objc.Call[objc.Void](s_, objc.Sel("setAllowsTickMarkValuesOnly:"), 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 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) NumberOfTickMarks() int { - rv := objc.Call[int](s_, objc.Sel("numberOfTickMarks")) +// [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 } -// 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) SetSliderType(value SliderType) { + objc.Call[objc.Void](s_, objc.Sel("setSliderType:"), value) } diff --git a/macos/appkit/slider_touch_bar_item.gen.go b/macos/appkit/slider_touch_bar_item.gen.go index 5d11742d..2fa7faff 100644 --- a/macos/appkit/slider_touch_bar_item.gen.go +++ b/macos/appkit/slider_touch_bar_item.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package appkit @@ -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) - MaximumValueAccessory() SliderAccessory - SetMaximumValueAccessory(value ISliderAccessory) - MaximumSliderWidth() float64 - SetMaximumSliderWidth(value float64) DoubleValue() float64 SetDoubleValue(value float64) - MinimumValueAccessory() SliderAccessory - SetMinimumValueAccessory(value ISliderAccessory) 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) 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] @@ -59,10 +59,6 @@ func (sc _SliderTouchBarItemClass) Alloc() SliderTouchBarItem { return rv } -func SliderTouchBarItem_Alloc() SliderTouchBarItem { - return SliderTouchBarItemClass.Alloc() -} - func (sc _SliderTouchBarItemClass) New() SliderTouchBarItem { rv := objc.Call[SliderTouchBarItem](sc, objc.Sel("new")) rv.Autorelease() @@ -107,56 +103,49 @@ func (s_ SliderTouchBarItem) SetMinimumSliderWidth(value float64) { objc.Call[objc.Void](s_, objc.Sel("setMinimumSliderWidth:"), value) } -// An object that is notified when a user interacts with the slider or either of the accessories. [Full Topic] +// The slider displayed by the bar item. [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/2544809-slider?language=objc +func (s_ SliderTouchBarItem) Slider() Slider { + rv := objc.Call[Slider](s_, objc.Sel("slider")) return rv } -// 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/2544814-target?language=objc -func (s_ SliderTouchBarItem) SetTarget(value objc.IObject) { - objc.Call[objc.Void](s_, objc.Sel("setTarget:"), value) -} - -// The user-visible string identifying this item during bar customization. [Full Topic] +// The slider displayed by the bar item. [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/2544809-slider?language=objc +func (s_ SliderTouchBarItem) SetSlider(value ISlider) { + objc.Call[objc.Void](s_, objc.Sel("setSlider:"), objc.Ptr(value)) } -// The selector on the target object that is invoked 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/2544765-action?language=objc -func (s_ SliderTouchBarItem) Action() objc.Selector { - rv := objc.Call[objc.Selector](s_, objc.Sel("action")) +// [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 } -// The selector on the target object that is invoked 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/2544765-action?language=objc -func (s_ SliderTouchBarItem) SetAction(value objc.Selector) { - objc.Call[objc.Void](s_, objc.Sel("setAction:"), value) +// [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 slider displayed by the bar item. [Full Topic] +// The text displayed alongside the slider. [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/2544741-label?language=objc +func (s_ SliderTouchBarItem) Label() string { + rv := objc.Call[string](s_, objc.Sel("label")) return rv } -// The slider displayed by the bar item. [Full Topic] +// The text displayed alongside the slider. [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:"), objc.Ptr(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 accessory that appears at the end of the slider with the maximum value. [Full Topic] @@ -174,64 +163,56 @@ func (s_ SliderTouchBarItem) SetMaximumValueAccessory(value ISliderAccessory) { objc.Call[objc.Void](s_, objc.Sel("setMaximumValueAccessory:"), objc.Ptr(value)) } -// The maximum width of the slider’s track. [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/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/2544846-minimumvalueaccessory?language=objc +func (s_ SliderTouchBarItem) MinimumValueAccessory() SliderAccessory { + rv := objc.Call[SliderAccessory](s_, objc.Sel("minimumValueAccessory")) return rv } -// The maximum width of the slider’s track. [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) -} - -// The double value of the slider. [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/3237220-doublevalue?language=objc -func (s_ SliderTouchBarItem) DoubleValue() float64 { - rv := objc.Call[float64](s_, objc.Sel("doubleValue")) - return rv +// [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:"), objc.Ptr(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) SetDoubleValue(value float64) { - objc.Call[objc.Void](s_, objc.Sel("setDoubleValue:"), value) +// [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 accessory that appears at the end of the slider with the minimum value. [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/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/2544814-target?language=objc +func (s_ SliderTouchBarItem) Target() objc.Object { + rv := objc.Call[objc.Object](s_, objc.Sel("target")) return rv } -// The accessory that appears at the end of the slider with the minimum value. [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/2544846-minimumvalueaccessory?language=objc -func (s_ SliderTouchBarItem) SetMinimumValueAccessory(value ISliderAccessory) { - objc.Call[objc.Void](s_, objc.Sel("setMinimumValueAccessory:"), objc.Ptr(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 text displayed alongside the slider. [Full Topic] +// The maximum width of the slider’s track. [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/3237221-maximumsliderwidth?language=objc +func (s_ SliderTouchBarItem) MaximumSliderWidth() float64 { + rv := objc.Call[float64](s_, objc.Sel("maximumSliderWidth")) return rv } -// The text displayed alongside the slider. [Full Topic] +// The maximum width of the slider’s track. [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/3237221-maximumsliderwidth?language=objc +func (s_ SliderTouchBarItem) SetMaximumSliderWidth(value float64) { + objc.Call[objc.Void](s_, objc.Sel("setMaximumSliderWidth:"), value) } // The width of the value accessories that appear at either end of the slider. [Full Topic] @@ -248,3 +229,18 @@ 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 69d291e0..84cc4943 100644 --- a/macos/appkit/sound.gen.go +++ b/macos/appkit/sound.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package appkit @@ -19,24 +19,24 @@ type _SoundClass struct { // An interface definition for the [Sound] class. type ISound interface { objc.IObject - WriteToPasteboard(pasteboard IPasteboard) - SetName(string_ SoundName) bool Stop() bool Pause() bool - Play() bool Resume() bool + WriteToPasteboard(pasteboard IPasteboard) + SetName(string_ SoundName) bool + Play() bool Volume() float64 SetVolume(value float64) - PlaybackDeviceIdentifier() SoundPlaybackDeviceIdentifier - SetPlaybackDeviceIdentifier(value SoundPlaybackDeviceIdentifier) + Duration() foundation.TimeInterval + IsPlaying() bool + Delegate() SoundDelegateObject + SetDelegate(value PSoundDelegate) + SetDelegateObject(valueObject objc.IObject) Name() SoundName Loops() bool SetLoops(value bool) - Delegate() SoundDelegateWrapper - SetDelegate(value PSoundDelegate) - SetDelegateObject(valueObject objc.IObject) - IsPlaying() bool - Duration() foundation.TimeInterval + PlaybackDeviceIdentifier() SoundPlaybackDeviceIdentifier + SetPlaybackDeviceIdentifier(value SoundPlaybackDeviceIdentifier) CurrentTime() foundation.TimeInterval SetCurrentTime(value foundation.TimeInterval) } @@ -54,16 +54,16 @@ func SoundFrom(ptr unsafe.Pointer) Sound { } } -func (s_ Sound) InitWithPasteboard(pasteboard IPasteboard) Sound { - rv := objc.Call[Sound](s_, objc.Sel("initWithPasteboard:"), objc.Ptr(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 } @@ -82,16 +82,16 @@ func NewSoundWithContentsOfFileByReference(path string, byRef bool) Sound { return instance } -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:"), objc.Ptr(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 } @@ -115,10 +115,6 @@ func (sc _SoundClass) Alloc() Sound { return rv } -func Sound_Alloc() Sound { - return SoundClass.Alloc() -} - func (sc _SoundClass) New() Sound { rv := objc.Call[Sound](sc, objc.Sel("new")) rv.Autorelease() @@ -134,21 +130,6 @@ 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:"), objc.Ptr(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 @@ -180,14 +161,6 @@ func (s_ Sound) Pause() bool { return rv } -// 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 -} - // Resumes audio playback. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/appkit/nssound/1477336-resume?language=objc @@ -196,6 +169,21 @@ func (s_ Sound) Resume() bool { 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:"), objc.Ptr(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 +} + // Returns the NSSound instance associated with a given name. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/appkit/nssound/1477318-soundnamed?language=objc @@ -211,6 +199,14 @@ 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 @@ -226,49 +222,27 @@ func (s_ Sound) SetVolume(value float64) { objc.Call[objc.Void](s_, objc.Sel("setVolume:"), value) } -// Identifies the sound’s output device [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")) - return rv -} - -// Identifies the sound’s output device [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) -} - -// The name assigned to the sound. [Full Topic] +// The duration of the sound, in seconds. [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/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] +// A Boolean that indicates whether the sound is playing its audio data. [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/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] -// -// [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 -func (s_ Sound) Delegate() SoundDelegateWrapper { - rv := objc.Call[SoundDelegateWrapper](s_, objc.Sel("delegate")) +func (s_ Sound) Delegate() SoundDelegateObject { + rv := objc.Call[SoundDelegateObject](s_, objc.Sel("delegate")) return rv } @@ -288,35 +262,42 @@ func (s_ Sound) SetDelegateObject(valueObject objc.IObject) { objc.Call[objc.Void](s_, objc.Sel("setDelegate:"), objc.Ptr(valueObject)) } -// A Boolean that indicates whether the sound is playing its audio data. [Full Topic] +// The name assigned to the sound. [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/1477296-name?language=objc +func (s_ Sound) Name() SoundName { + rv := objc.Call[SoundName](s_, objc.Sel("name")) return rv } -// The duration of the sound, in seconds. [Full Topic] +// 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/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/1477311-loops?language=objc +func (s_ Sound) Loops() bool { + rv := objc.Call[bool](s_, objc.Sel("loops")) return rv } -// Provides the file types the NSSound class understands. [Full Topic] +// 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/1477290-soundunfilteredtypes?language=objc -func (sc _SoundClass) SoundUnfilteredTypes() []string { - rv := objc.Call[[]string](sc, objc.Sel("soundUnfilteredTypes")) +// [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] +// +// [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 } -// Provides the file types the NSSound class understands. [Full Topic] +// Identifies the sound’s output device [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nssound/1477290-soundunfilteredtypes?language=objc -func Sound_SoundUnfilteredTypes() []string { - return SoundClass.SoundUnfilteredTypes() +// [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 sound’s playback progress, in seconds. [Full Topic] @@ -333,3 +314,18 @@ 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/sound_delegate.gen.go b/macos/appkit/sound_delegate.gen.go index 8768cd20..9e611c9f 100644 --- a/macos/appkit/sound_delegate.gen.go +++ b/macos/appkit/sound_delegate.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package appkit @@ -38,18 +38,21 @@ func (di *SoundDelegate) SoundDidFinishPlaying(sound Sound, flag bool) { di._SoundDidFinishPlaying(sound, flag) } -// A concrete type wrapper for the [PSoundDelegate] protocol. -type SoundDelegateWrapper struct { +// ensure impl type implements protocol interface +var _ PSoundDelegate = (*SoundDelegateObject)(nil) + +// A concrete type for the [PSoundDelegate] protocol. +type SoundDelegateObject struct { objc.Object } -func (s_ SoundDelegateWrapper) HasSoundDidFinishPlaying() bool { +func (s_ SoundDelegateObject) HasSoundDidFinishPlaying() bool { return s_.RespondsToSelector(objc.Sel("sound:didFinishPlaying:")) } // This delegate method is called when an NSSound instance has completed playback of its sound data. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/appkit/nssounddelegate/1477298-sound?language=objc -func (s_ SoundDelegateWrapper) SoundDidFinishPlaying(sound ISound, flag bool) { +func (s_ SoundDelegateObject) SoundDidFinishPlaying(sound Sound, flag bool) { objc.Call[objc.Void](s_, objc.Sel("sound:didFinishPlaying:"), objc.Ptr(sound), flag) } diff --git a/macos/appkit/speech_recognizer.gen.go b/macos/appkit/speech_recognizer.gen.go index 1abe88ae..dfb1cd12 100644 --- a/macos/appkit/speech_recognizer.gen.go +++ b/macos/appkit/speech_recognizer.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package appkit @@ -18,19 +18,19 @@ type _SpeechRecognizerClass struct { // An interface definition for the [SpeechRecognizer] class. type ISpeechRecognizer interface { objc.IObject - StopListening() StartListening() - ListensInForegroundOnly() bool - SetListensInForegroundOnly(value bool) - DisplayedCommandsTitle() string - SetDisplayedCommandsTitle(value string) - Delegate() SpeechRecognizerDelegateWrapper + StopListening() + 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] @@ -56,10 +56,6 @@ func (sc _SpeechRecognizerClass) Alloc() SpeechRecognizer { return rv } -func SpeechRecognizer_Alloc() SpeechRecognizer { - return SpeechRecognizerClass.Alloc() -} - func (sc _SpeechRecognizerClass) New() SpeechRecognizer { rv := objc.Call[SpeechRecognizer](sc, objc.Sel("new")) rv.Autorelease() @@ -70,13 +66,6 @@ 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 @@ -84,41 +73,18 @@ func (s_ SpeechRecognizer) StartListening() { objc.Call[objc.Void](s_, objc.Sel("startListening")) } -// 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) -} - -// 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] +// Tells the speech recognition engine to suspend listening for commands. [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) +// [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")) } // The delegate for the speech recognizer object. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/appkit/nsspeechrecognizer/1528171-delegate?language=objc -func (s_ SpeechRecognizer) Delegate() SpeechRecognizerDelegateWrapper { - rv := objc.Call[SpeechRecognizerDelegateWrapper](s_, objc.Sel("delegate")) +func (s_ SpeechRecognizer) Delegate() SpeechRecognizerDelegateObject { + rv := objc.Call[SpeechRecognizerDelegateObject](s_, objc.Sel("delegate")) return rv } @@ -138,6 +104,21 @@ func (s_ SpeechRecognizer) SetDelegateObject(valueObject objc.IObject) { objc.Call[objc.Void](s_, objc.Sel("setDelegate:"), objc.Ptr(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 @@ -167,3 +148,18 @@ 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/speech_recognizer_delegate.gen.go b/macos/appkit/speech_recognizer_delegate.gen.go index 6b8a2441..d3b1451b 100644 --- a/macos/appkit/speech_recognizer_delegate.gen.go +++ b/macos/appkit/speech_recognizer_delegate.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package appkit @@ -38,18 +38,21 @@ func (di *SpeechRecognizerDelegate) SpeechRecognizerDidRecognizeCommand(sender S di._SpeechRecognizerDidRecognizeCommand(sender, command) } -// A concrete type wrapper for the [PSpeechRecognizerDelegate] protocol. -type SpeechRecognizerDelegateWrapper struct { +// ensure impl type implements protocol interface +var _ PSpeechRecognizerDelegate = (*SpeechRecognizerDelegateObject)(nil) + +// A concrete type for the [PSpeechRecognizerDelegate] protocol. +type SpeechRecognizerDelegateObject struct { objc.Object } -func (s_ SpeechRecognizerDelegateWrapper) HasSpeechRecognizerDidRecognizeCommand() bool { +func (s_ SpeechRecognizerDelegateObject) HasSpeechRecognizerDidRecognizeCommand() bool { return s_.RespondsToSelector(objc.Sel("speechRecognizer:didRecognizeCommand:")) } // Invoked when the recognition engine has recognized the application command command. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/appkit/nsspeechrecognizerdelegate/1534211-speechrecognizer?language=objc -func (s_ SpeechRecognizerDelegateWrapper) SpeechRecognizerDidRecognizeCommand(sender ISpeechRecognizer, command string) { +func (s_ SpeechRecognizerDelegateObject) SpeechRecognizerDidRecognizeCommand(sender SpeechRecognizer, command string) { objc.Call[objc.Void](s_, objc.Sel("speechRecognizer:didRecognizeCommand:"), objc.Ptr(sender), command) } diff --git a/macos/appkit/speech_synthesizer.gen.go b/macos/appkit/speech_synthesizer.gen.go index 3ae446b0..6f577086 100644 --- a/macos/appkit/speech_synthesizer.gen.go +++ b/macos/appkit/speech_synthesizer.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package appkit @@ -38,10 +38,6 @@ func (sc _SpeechSynthesizerClass) Alloc() SpeechSynthesizer { return rv } -func SpeechSynthesizer_Alloc() SpeechSynthesizer { - return SpeechSynthesizerClass.Alloc() -} - func (sc _SpeechSynthesizerClass) New() SpeechSynthesizer { rv := objc.Call[SpeechSynthesizer](sc, objc.Sel("new")) rv.Autorelease() diff --git a/macos/appkit/speech_synthesizer_delegate.gen.go b/macos/appkit/speech_synthesizer_delegate.gen.go index a2b2b8be..e29d5f91 100644 --- a/macos/appkit/speech_synthesizer_delegate.gen.go +++ b/macos/appkit/speech_synthesizer_delegate.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package appkit @@ -16,7 +16,10 @@ type PSpeechSynthesizerDelegate interface { type SpeechSynthesizerDelegate struct { } -// A concrete type wrapper for the [PSpeechSynthesizerDelegate] protocol. -type SpeechSynthesizerDelegateWrapper struct { +// ensure impl type implements protocol interface +var _ PSpeechSynthesizerDelegate = (*SpeechSynthesizerDelegateObject)(nil) + +// A concrete type for the [PSpeechSynthesizerDelegate] protocol. +type SpeechSynthesizerDelegateObject struct { objc.Object } diff --git a/macos/appkit/spell_checker.gen.go b/macos/appkit/spell_checker.gen.go index 680fef4b..0a05bf13 100644 --- a/macos/appkit/spell_checker.gen.go +++ b/macos/appkit/spell_checker.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package appkit @@ -19,47 +19,48 @@ 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 - CheckStringRangeTypesOptionsInSpellDocumentWithTagOrthographyWordCount(stringToCheck string, range_ foundation.Range, checkingTypes foundation.TextCheckingTypes, options map[TextCheckingOptionKey]objc.IObject, tag int, orthography foundation.IOrthography, 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 []map[string]objc.IObject) foundation.Range - 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) + 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 + CheckGrammarOfStringStartingAtLanguageWrapInSpellDocumentWithTagDetails(stringToCheck string, startingOffset int, language string, wrapFlag bool, tag int, details []map[string]objc.IObject) foundation.Range + SetLanguage(language string) bool + HasLearnedWord(word string) bool + SetIgnoredWordsInSpellDocumentWithTag(words []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) - CloseSpellDocumentWithTag(tag int) + 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 foundation.IOrthography, wordCount *int) []foundation.TextCheckingResult + LearnWord(word string) + CountWordsInStringLanguage(stringToCount string, language string) int + CorrectionForWordRangeInStringLanguageInSpellDocumentWithTag(range_ foundation.Range, string_ string, language string, tag int) string UserQuotesArrayForLanguage(language string) []string - SetWordFieldStringValue(string_ string) + CompletionsForPartialWordRangeInStringLanguageInSpellDocumentWithTag(range_ foundation.Range, string_ string, language string, tag int) []string PreventsAutocorrectionBeforeStringLanguage(string_ string, language string) bool - 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 - SpellingPanel() Panel SubstitutionsPanelAccessoryViewController() ViewController SetSubstitutionsPanelAccessoryViewController(value IViewController) + UserReplacementsDictionary() map[string]string + SubstitutionsPanel() Panel + AutomaticallyIdentifiesLanguages() bool + SetAutomaticallyIdentifiesLanguages(value bool) 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] @@ -80,10 +81,6 @@ func (sc _SpellCheckerClass) Alloc() SpellChecker { return rv } -func SpellChecker_Alloc() SpellChecker { - return SpellCheckerClass.Alloc() -} - func (sc _SpellCheckerClass) New() SpellChecker { rv := objc.Call[SpellChecker](sc, objc.Sel("new")) rv.Autorelease() @@ -99,6 +96,13 @@ 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 @@ -107,57 +111,40 @@ func (s_ SpellChecker) LanguageForWordRangeInStringOrthography(range_ foundation return rv } -// Requests unified text checking for the given range of the given string. [Full Topic] +// Starts the search for a misspelled word in a string starting at specified offset within the string. [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 foundation.IOrthography, wordCount *int) []foundation.TextCheckingResult { - rv := objc.Call[[]foundation.TextCheckingResult](s_, objc.Sel("checkString:range:types:options:inSpellDocumentWithTag:orthography:wordCount:"), stringToCheck, range_, checkingTypes, options, tag, objc.Ptr(orthography), wordCount) +// [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) return rv } -// 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:"), objc.Ptr(view)) -} - -// Returns the number of words in the specified string. [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) - return rv -} - -// Provides a menu containing contextual menu items suitable for certain kinds of detected results. [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/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:"), objc.Ptr(result), checkedString, options, location, objc.Ptr(view)) - return rv +// [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_) } -// Returns the current language used in spell checking. [Full Topic] +// Records the user response to the correction indicator being displayed. [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")) - return rv +// [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) } -// Adds the word to the spell checker dictionary. [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/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/1534066-closespelldocumentwithtag?language=objc +func (s_ SpellChecker) CloseSpellDocumentWithTag(tag int) { + objc.Call[objc.Void](s_, objc.Sel("closeSpellDocumentWithTag:"), tag) } -// 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] // -// [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) +// [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 } @@ -169,33 +156,27 @@ func (s_ SpellChecker) CheckGrammarOfStringStartingAtLanguageWrapInSpellDocument return rv } -// [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/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/1532988-setlanguage?language=objc +func (s_ SpellChecker) SetLanguage(language string) bool { + rv := objc.Call[bool](s_, objc.Sel("setLanguage:"), language) return rv } -// 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, objc.Ptr(view), completionBlock) -} - -// Tells the spell checker to unlearn a given word. [Full Topic] +// Indicates whether the spell checker has learned a given word. [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/1527525-haslearnedword?language=objc +func (s_ SpellChecker) HasLearnedWord(word string) bool { + rv := objc.Call[bool](s_, objc.Sel("hasLearnedWord:"), word) + return rv } -// Records the user response to the correction indicator being displayed. [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/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/1535879-setignoredwords?language=objc +func (s_ SpellChecker) SetIgnoredWordsInSpellDocumentWithTag(words []string, tag int) { + objc.Call[objc.Void](s_, objc.Sel("setIgnoredWords:inSpellDocumentWithTag:"), words, tag) } // Requests that the string be checked in the background. [Full Topic] @@ -206,6 +187,20 @@ 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:"), objc.Ptr(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 @@ -213,41 +208,51 @@ func (s_ SpellChecker) UpdateSpellingPanelWithMisspelledWord(word string) { objc.Call[objc.Void](s_, objc.Sel("updateSpellingPanelWithMisspelledWord:"), word) } -// Starts the search for a misspelled word in stringToCheck starting at startingOffset within the string object. [Full Topic] +// Returns the current language used in spell checking. [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) +// [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 } -// Updates the available panels to account for user changes. [Full Topic] +// [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")) +// [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 } -// Returns whether the specified language is in the Spelling pop-up list. [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/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/1526192-uniquespelldocumenttag?language=objc +func (sc _SpellCheckerClass) UniqueSpellDocumentTag() int { + rv := objc.Call[int](sc, objc.Sel("uniqueSpellDocumentTag")) return rv } -// Initializes the ignored-words document (a dictionary identified by tag with someWords), an array of words to ignore. [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/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/1526192-uniquespelldocumenttag?language=objc +func SpellChecker_UniqueSpellDocumentTag() int { + return SpellCheckerClass.UniqueSpellDocumentTag() } -// Instructs the spell checker to ignore all future occurrences of wordToIgnore in the document identified by tag. [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/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]: 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 +} + +// 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/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 } // Specifies a grammar-analysis detail to highlight in the Spelling panel. [Full Topic] @@ -257,49 +262,56 @@ func (s_ SpellChecker) UpdateSpellingPanelWithGrammarStringDetail(string_ string objc.Call[objc.Void](s_, objc.Sel("updateSpellingPanelWithGrammarString:detail:"), string_, detail) } -// Notifies the receiver that the user has finished with the tagged document. [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/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/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, objc.Ptr(view), completionBlock) } -// Returns the default values for quote replacement. [Full Topic] +// Returns an array of possible substitutions for the specified string. [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/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 string that appears in the misspelled word field, using the string object aString. [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/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/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:"), objc.Ptr(result), checkedString, options, location, objc.Ptr(view)) + return rv } -// [Full Topic] +// Tells the spell checker to unlearn a given word. [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) - return rv +// [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) } -// Indicates whether the spell checker has learned a given word. [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/1527525-haslearnedword?language=objc -func (s_ SpellChecker) HasLearnedWord(word string) bool { - rv := objc.Call[bool](s_, objc.Sel("hasLearnedWord:"), word) +// [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 foundation.IOrthography, wordCount *int) []foundation.TextCheckingResult { + rv := objc.Call[[]foundation.TextCheckingResult](s_, objc.Sel("checkString:range:types:options:inSpellDocumentWithTag:orthography:wordCount:"), stringToCheck, range_, checkingTypes, options, tag, objc.Ptr(orthography), wordCount) return rv } -// Returns the array of ignored words for a document identified by tag. [Full Topic] +// Adds the word to the spell checker dictionary. [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) +// [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) +} + +// Returns the number of words in the specified string. [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) return rv } @@ -311,43 +323,43 @@ func (s_ SpellChecker) CorrectionForWordRangeInStringLanguageInSpellDocumentWith return rv } -// Returns a guaranteed unique tag to use as the spell-document tag for a document. [Full Topic] +// Returns the default values for quote replacement. [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/1532171-userquotesarrayforlanguage?language=objc +func (s_ SpellChecker) UserQuotesArrayForLanguage(language string) []string { + rv := objc.Call[[]string](s_, objc.Sel("userQuotesArrayForLanguage:"), language) return rv } -// Returns a guaranteed unique tag to use as the spell-document tag for a document. [Full Topic] +// 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/1526192-uniquespelldocumenttag?language=objc -func SpellChecker_UniqueSpellDocumentTag() int { - return SpellCheckerClass.UniqueSpellDocumentTag() +// [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] // -// [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) +// [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 } -// Returns an array of possible substitutions for the specified string. [Full Topic] +// Sets the substitutions panel’s accessory view. [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) +// [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 } -// Returns the dictionary used when replacing words. [Full Topic] +// Sets the substitutions panel’s accessory view. [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")) - return rv +// [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:"), objc.Ptr(value)) } // [Full Topic] @@ -365,26 +377,11 @@ func SpellChecker_AutomaticTextReplacementEnabled() bool { return SpellCheckerClass.AutomaticTextReplacementEnabled() } -// [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")) - 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] +// Returns the dictionary used when replacing words. [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/1524925-userreplacementsdictionary?language=objc +func (s_ SpellChecker) UserReplacementsDictionary() map[string]string { + rv := objc.Call[map[string]string](s_, objc.Sel("userReplacementsDictionary")) return rv } @@ -396,42 +393,34 @@ func (s_ SpellChecker) SubstitutionsPanel() Panel { 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] -// -// [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] +// Sets whether the spell checker will automatically identify languages. [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]: 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] // -// [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/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/2869580-automatictextcompletionenabled?language=objc -func SpellChecker_AutomaticTextCompletionEnabled() bool { - return SpellCheckerClass.AutomaticTextCompletionEnabled() +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsspellchecker/2869583-automaticcapitalizationenabled?language=objc +func SpellChecker_AutomaticCapitalizationEnabled() bool { + return SpellCheckerClass.AutomaticCapitalizationEnabled() } // [Full Topic] @@ -449,6 +438,29 @@ 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:"), objc.Ptr(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 @@ -464,100 +476,93 @@ func SpellChecker_SharedSpellCheckerExists() bool { return SpellCheckerClass.SharedSpellCheckerExists() } -// Sets the substitutions panel’s accessory view. [Full Topic] +// [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/2869581-automaticquotesubstitutionenable?language=objc +func (sc _SpellCheckerClass) AutomaticQuoteSubstitutionEnabled() bool { + rv := objc.Call[bool](sc, objc.Sel("automaticQuoteSubstitutionEnabled")) return rv } -// Sets the substitutions panel’s accessory view. [Full Topic] +// [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:"), objc.Ptr(value)) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsspellchecker/2869581-automaticquotesubstitutionenable?language=objc +func SpellChecker_AutomaticQuoteSubstitutionEnabled() bool { + return SpellCheckerClass.AutomaticQuoteSubstitutionEnabled() } -// 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() } -// Makes a view an accessory of the Spelling panel by making it a subview of the panel’s content view. [Full Topic] +// [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")) +// [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 } -// Makes a view an accessory of the Spelling panel by making it a subview of the panel’s content view. [Full Topic] +// [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:"), objc.Ptr(value)) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsspellchecker/2869580-automatictextcompletionenabled?language=objc +func SpellChecker_AutomaticTextCompletionEnabled() bool { + return SpellCheckerClass.AutomaticTextCompletionEnabled() } -// Provides a list of all available languages. [Full Topic] +// Provides a subset of the available languages to be used for spell checking. [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/1525173-userpreferredlanguages?language=objc +func (s_ SpellChecker) UserPreferredLanguages() []string { + rv := objc.Call[[]string](s_, objc.Sel("userPreferredLanguages")) 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() } -// [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] +// Provides a list of all available languages. [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/1530496-availablelanguages?language=objc +func (s_ SpellChecker) AvailableLanguages() []string { + rv := objc.Call[[]string](s_, objc.Sel("availableLanguages")) 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 b9fb7ffe..1f8685f2 100644 --- a/macos/appkit/split_view.gen.go +++ b/macos/appkit/split_view.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package appkit @@ -19,31 +19,31 @@ type _SplitViewClass struct { // An interface definition for the [SplitView] class. type ISplitView interface { IView - AdjustSubviews() - IsSubviewCollapsed(subview IView) bool - SetPositionOfDividerAtIndex(position float64, dividerIndex int) 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) + SetPositionOfDividerAtIndex(position float64, dividerIndex int) 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 - DividerStyle() SplitViewDividerStyle - SetDividerStyle(value SplitViewDividerStyle) - Delegate() SplitViewDelegateWrapper - SetDelegate(value PSplitViewDelegate) - SetDelegateObject(valueObject objc.IObject) ArrangedSubviews() []View - AutosaveName() SplitViewAutosaveName - SetAutosaveName(value SplitViewAutosaveName) IsVertical() bool SetVertical(value bool) + AutosaveName() SplitViewAutosaveName + SetAutosaveName(value SplitViewAutosaveName) + Delegate() SplitViewDelegateObject + SetDelegate(value PSplitViewDelegate) + SetDelegateObject(valueObject objc.IObject) 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] @@ -64,10 +64,6 @@ func (sc _SplitViewClass) Alloc() SplitView { return rv } -func SplitView_Alloc() SplitView { - return SplitViewClass.Alloc() -} - func (sc _SplitViewClass) New() SplitView { rv := objc.Call[SplitView](sc, objc.Sel("new")) rv.Autorelease() @@ -97,34 +93,41 @@ func NewSplitViewWithFrame(frameRect foundation.Rect) SplitView { return instance } -// Adjusts the sizes of the split view’s subviews so they (plus the dividers) fill the split view. [Full Topic] +// Returns the maximum possible position of the divider at the specified index. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nssplitview/1455285-adjustsubviews?language=objc -func (s_ SplitView) AdjustSubviews() { - objc.Call[objc.Void](s_, objc.Sel("adjustSubviews")) +// [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 whether the specified view is in a collapsed state. [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/1455311-issubviewcollapsed?language=objc -func (s_ SplitView) IsSubviewCollapsed(subview IView) bool { - rv := objc.Call[bool](s_, objc.Sel("isSubviewCollapsed:"), objc.Ptr(subview)) +// [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 } -// Updates the location of a divider you specify by index. [Full Topic] +// 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/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/1455285-adjustsubviews?language=objc +func (s_ SplitView) AdjustSubviews() { + objc.Call[objc.Void](s_, objc.Sel("adjustSubviews")) } -// Returns the maximum possible position of the divider at the specified index. [Full Topic] +// Sets the priority for split view subviews to maintain their width or height. [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 +// [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) +} + +// Removes a view as an arranged split pane. [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:"), objc.Ptr(view)) } // Returns the minimum possible position of the divider at the specified index. [Full Topic] @@ -135,47 +138,40 @@ func (s_ SplitView) MinPossiblePositionOfDividerAtIndex(dividerIndex int) float6 return rv } -// Adds a view as an arranged split pane. [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:"), objc.Ptr(view)) -} - -// Adds a view as an arranged split pane at the specified index. [Full Topic] +// Draws a divider between two of the split view’s subviews. [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:"), objc.Ptr(view), index) +// [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) } -// Returns the priority of the subview’s width or height when resizing. [Full Topic] +// Updates the location of a divider you specify by index. [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 +// [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) } -// 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:"), objc.Ptr(view)) } -// Removes a view as an arranged split pane. [Full Topic] +// Returns whether the specified view is in a collapsed state. [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:"), objc.Ptr(view)) +// [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:"), objc.Ptr(subview)) + return rv } -// Sets the priority for split view subviews to maintain their width or height. [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/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/1455321-insertarrangedsubview?language=objc +func (s_ SplitView) InsertArrangedSubviewAtIndex(view IView, index int) { + objc.Call[objc.Void](s_, objc.Sel("insertArrangedSubview:atIndex:"), objc.Ptr(view), index) } // The color of the dividers that the split view draws between subviews. [Full Topic] @@ -194,51 +190,27 @@ func (s_ SplitView) DividerThickness() float64 { return rv } -// The style of divider between views. [Full Topic] +// The array of views that the split view arranges as its split panes. [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")) +// [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 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) -} - -// 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() SplitViewDelegateWrapper { - rv := objc.Call[SplitViewDelegateWrapper](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] -// -// [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:"), objc.Ptr(valueObject)) -} - -// The array of views that the split view arranges as its split panes. [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/1455253-arrangedsubviews?language=objc -func (s_ SplitView) ArrangedSubviews() []View { - rv := objc.Call[[]View](s_, objc.Sel("arrangedSubviews")) - return rv +// [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) } // The name to use when the system automatically saves the split view’s divider configuration. [Full Topic] @@ -256,19 +228,28 @@ func (s_ SplitView) SetAutosaveName(value SplitViewAutosaveName) { objc.Call[objc.Void](s_, objc.Sel("setAutosaveName:"), value) } -// 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) IsVertical() bool { - rv := objc.Call[bool](s_, objc.Sel("isVertical")) +// [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:"), objc.Ptr(valueObject)) } // A Boolean value that determines whether the split view arranges all of its subviews as split panes. [Full Topic] @@ -285,3 +266,18 @@ 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 75204f62..88e041dc 100644 --- a/macos/appkit/split_view_controller.gen.go +++ b/macos/appkit/split_view_controller.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package appkit @@ -19,19 +19,23 @@ type _SplitViewControllerClass struct { // An interface definition for the [SplitViewController] class. type ISplitViewController interface { IViewController - RemoveSplitViewItem(splitViewItem ISplitViewItem) - ToggleSidebar(sender objc.IObject) objc.Object - AddSplitViewItem(splitViewItem ISplitViewItem) - InsertSplitViewItemAtIndex(splitViewItem ISplitViewItem, index int) + SplitViewCanCollapseSubview(splitView ISplitView, subview IView) bool 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 - SplitViewItems() []SplitViewItem - SetSplitViewItems(value []ISplitViewItem) + SplitViewAdditionalEffectiveRectOfDividerAtIndex(splitView ISplitView, dividerIndex int) foundation.Rect + AddSplitViewItem(splitViewItem ISplitViewItem) + InsertSplitViewItemAtIndex(splitViewItem ISplitViewItem, index int) + ToggleSidebar(sender objc.IObject) objc.Object + RemoveSplitViewItem(splitViewItem 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] @@ -52,10 +56,6 @@ func (sc _SplitViewControllerClass) Alloc() SplitViewController { return rv } -func SplitViewController_Alloc() SplitViewController { - return SplitViewControllerClass.Alloc() -} - func (sc _SplitViewControllerClass) New() SplitViewController { rv := objc.Call[SplitViewController](sc, objc.Sel("new")) rv.Autorelease() @@ -85,35 +85,14 @@ func NewSplitViewControllerWithNibNameBundle(nibNameOrNil NibName, nibBundleOrNi return instance } -// 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:"), objc.Ptr(splitViewItem)) -} - -// Collapses or expands the first sidebar in the split view controller using an animation. [Full Topic] +// Allows the split view controller to determine whether the user can collapse and expand the specified subview. [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/1388861-splitview?language=objc +func (s_ SplitViewController) SplitViewCanCollapseSubview(splitView ISplitView, subview IView) bool { + rv := objc.Call[bool](s_, objc.Sel("splitView:canCollapseSubview:"), objc.Ptr(splitView), objc.Ptr(subview)) 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:"), objc.Ptr(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:"), objc.Ptr(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 @@ -131,6 +110,22 @@ 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:"), objc.Ptr(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:"), objc.Ptr(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 @@ -139,19 +134,41 @@ func (s_ SplitViewController) SplitViewItemForViewController(viewController IVie return rv } -// The array of split view items that correspond to the split view controller’s child view controllers. [Full Topic] +// 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/1388876-splitviewitems?language=objc -func (s_ SplitViewController) SplitViewItems() []SplitViewItem { - rv := objc.Call[[]SplitViewItem](s_, objc.Sel("splitViewItems")) +// [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:"), objc.Ptr(splitView), dividerIndex) return rv } -// The array of split view items that correspond to the split view controller’s child view controllers. [Full Topic] +// 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/1388876-splitviewitems?language=objc -func (s_ SplitViewController) SetSplitViewItems(value []ISplitViewItem) { - objc.Call[objc.Void](s_, objc.Sel("setSplitViewItems:"), value) +// [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:"), objc.Ptr(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:"), objc.Ptr(splitViewItem), index) +} + +// 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/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 +} + +// 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:"), objc.Ptr(splitViewItem)) } // The split view that the split view controller manages. [Full Topic] @@ -183,3 +200,18 @@ 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 3b4ed3e5..f567be79 100644 --- a/macos/appkit/split_view_delegate.gen.go +++ b/macos/appkit/split_view_delegate.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package appkit @@ -11,26 +11,100 @@ 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 - SplitViewDidResizeSubviews(notification foundation.Notification) - HasSplitViewDidResizeSubviews() bool + 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 // 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 { - _SplitViewWillResizeSubviews func(notification foundation.Notification) - _SplitViewDidResizeSubviews func(notification foundation.Notification) - _SplitViewShouldHideDividerAtIndex func(splitView SplitView, dividerIndex int) bool + _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 } +// 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 } @@ -48,22 +122,73 @@ func (di *SplitViewDelegate) SetSplitViewWillResizeSubviews(f func(notification func (di *SplitViewDelegate) SplitViewWillResizeSubviews(notification foundation.Notification) { di._SplitViewWillResizeSubviews(notification) } -func (di *SplitViewDelegate) HasSplitViewDidResizeSubviews() bool { - return di._SplitViewDidResizeSubviews != nil +func (di *SplitViewDelegate) HasSplitViewConstrainSplitPositionOfSubviewAt() bool { + return di._SplitViewConstrainSplitPositionOfSubviewAt != nil } -// Notifies the delegate when the split view resizes its subviews. [Full Topic] +// Allows the delegate to constrain the divider to certain positions. [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 +// [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 } -// Notifies the delegate when the split view resizes its subviews. [Full Topic] +// Allows the delegate to constrain the divider to certain positions. [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) +// [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 +} + +// Allows the delegate to determine whether the user can collapse and expand the specified subview. [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 +} + +// Allows the delegate to determine whether the user can collapse and expand the specified subview. [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) } func (di *SplitViewDelegate) HasSplitViewShouldHideDividerAtIndex() bool { return di._SplitViewShouldHideDividerAtIndex != nil @@ -82,42 +207,191 @@ 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 +} -// A concrete type wrapper for the [PSplitViewDelegate] protocol. -type SplitViewDelegateWrapper struct { +// 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) + +// A concrete type for the [PSplitViewDelegate] protocol. +type SplitViewDelegateObject struct { objc.Object } -func (s_ SplitViewDelegateWrapper) HasSplitViewWillResizeSubviews() bool { +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:"), objc.Ptr(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:"), objc.Ptr(splitView), proposedMaximumPosition, dividerIndex) + return rv +} + +func (s_ SplitViewDelegateObject) HasSplitViewWillResizeSubviews() bool { return s_.RespondsToSelector(objc.Sel("splitViewWillResizeSubviews:")) } // Notifies the delegate when the split view is about to resize its subviews. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/appkit/nssplitviewdelegate/1455289-splitviewwillresizesubviews?language=objc -func (s_ SplitViewDelegateWrapper) SplitViewWillResizeSubviews(notification foundation.INotification) { +func (s_ SplitViewDelegateObject) SplitViewWillResizeSubviews(notification foundation.Notification) { objc.Call[objc.Void](s_, objc.Sel("splitViewWillResizeSubviews:"), objc.Ptr(notification)) } -func (s_ SplitViewDelegateWrapper) HasSplitViewDidResizeSubviews() bool { - return s_.RespondsToSelector(objc.Sel("splitViewDidResizeSubviews:")) +func (s_ SplitViewDelegateObject) HasSplitViewConstrainSplitPositionOfSubviewAt() bool { + return s_.RespondsToSelector(objc.Sel("splitView:constrainSplitPosition:ofSubviewAt:")) } -// Notifies the delegate when the split view resizes its subviews. [Full Topic] +// Allows the delegate to constrain the divider to certain positions. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nssplitviewdelegate/1455314-splitviewdidresizesubviews?language=objc -func (s_ SplitViewDelegateWrapper) SplitViewDidResizeSubviews(notification foundation.INotification) { - objc.Call[objc.Void](s_, objc.Sel("splitViewDidResizeSubviews:"), objc.Ptr(notification)) +// [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:"), objc.Ptr(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:"), objc.Ptr(splitView), objc.Ptr(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:"), objc.Ptr(splitView), oldSize) +} + +func (s_ SplitViewDelegateObject) HasSplitViewCanCollapseSubview() bool { + return s_.RespondsToSelector(objc.Sel("splitView:canCollapseSubview:")) +} + +// Allows the delegate to determine whether the user can collapse and expand the specified subview. [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:"), objc.Ptr(splitView), objc.Ptr(subview)) + return rv } -func (s_ SplitViewDelegateWrapper) HasSplitViewShouldHideDividerAtIndex() bool { +func (s_ SplitViewDelegateObject) HasSplitViewShouldHideDividerAtIndex() bool { return s_.RespondsToSelector(objc.Sel("splitView:shouldHideDividerAtIndex:")) } // Allows the delegate 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/nssplitviewdelegate/1455280-splitview?language=objc -func (s_ SplitViewDelegateWrapper) SplitViewShouldHideDividerAtIndex(splitView ISplitView, dividerIndex int) bool { +func (s_ SplitViewDelegateObject) SplitViewShouldHideDividerAtIndex(splitView SplitView, dividerIndex int) bool { rv := objc.Call[bool](s_, objc.Sel("splitView:shouldHideDividerAtIndex:"), objc.Ptr(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:"), objc.Ptr(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:"), objc.Ptr(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:"), objc.Ptr(splitView), proposedMinimumPosition, dividerIndex) + return rv +} diff --git a/macos/appkit/split_view_item.gen.go b/macos/appkit/split_view_item.gen.go index e89bee1a..5b23de52 100644 --- a/macos/appkit/split_view_item.gen.go +++ b/macos/appkit/split_view_item.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package appkit @@ -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) - 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) + CollapseBehavior() SplitViewItemCollapseBehavior + SetCollapseBehavior(value SplitViewItemCollapseBehavior) + MaximumThickness() float64 + SetMaximumThickness(value float64) CanCollapse() bool SetCanCollapse(value bool) - MinimumThickness() float64 - SetMinimumThickness(value float64) - TitlebarSeparatorStyle() TitlebarSeparatorStyle - SetTitlebarSeparatorStyle(value TitlebarSeparatorStyle) AllowsFullHeightLayout() bool SetAllowsFullHeightLayout(value bool) - IsSpringLoaded() bool - SetSpringLoaded(value bool) + TitlebarSeparatorStyle() TitlebarSeparatorStyle + SetTitlebarSeparatorStyle(value TitlebarSeparatorStyle) } // An item in a split view controller. [Full Topic] @@ -58,16 +58,16 @@ func SplitViewItemFrom(ptr unsafe.Pointer) SplitViewItem { } } -func (sc _SplitViewItemClass) SidebarWithViewController(viewController IViewController) SplitViewItem { - rv := objc.Call[SplitViewItem](sc, objc.Sel("sidebarWithViewController:"), objc.Ptr(viewController)) +func (sc _SplitViewItemClass) ContentListWithViewController(viewController IViewController) SplitViewItem { + rv := objc.Call[SplitViewItem](sc, objc.Sel("contentListWithViewController:"), objc.Ptr(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) SplitViewItemWithViewController(viewController IViewController) SplitViewItem { @@ -82,16 +82,16 @@ func SplitViewItem_SplitViewItemWithViewController(viewController IViewControlle return SplitViewItemClass.SplitViewItemWithViewController(viewController) } -func (sc _SplitViewItemClass) ContentListWithViewController(viewController IViewController) SplitViewItem { - rv := objc.Call[SplitViewItem](sc, objc.Sel("contentListWithViewController:"), objc.Ptr(viewController)) +func (sc _SplitViewItemClass) SidebarWithViewController(viewController IViewController) SplitViewItem { + rv := objc.Call[SplitViewItem](sc, objc.Sel("sidebarWithViewController:"), objc.Ptr(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) Alloc() SplitViewItem { @@ -99,10 +99,6 @@ func (sc _SplitViewItemClass) Alloc() SplitViewItem { return rv } -func SplitViewItem_Alloc() SplitViewItem { - return SplitViewItemClass.Alloc() -} - func (sc _SplitViewItemClass) New() SplitViewItem { rv := objc.Call[SplitViewItem](sc, objc.Sel("new")) rv.Autorelease() @@ -118,89 +114,104 @@ func (s_ SplitViewItem) Init() SplitViewItem { return rv } -// The maximum thickness of the split view item when it resizes due to automatic sizing. [Full Topic] +// The standard behavior type of the split view item. [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/1388899-behavior?language=objc +func (s_ SplitViewItem) Behavior() SplitViewItemBehavior { + rv := objc.Call[SplitViewItemBehavior](s_, objc.Sel("behavior")) return rv } -// The maximum thickness of the split view item when it resizes due to automatic sizing. [Full Topic] +// The minimum thickness of the split view item. [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/1388853-minimumthickness?language=objc +func (s_ SplitViewItem) MinimumThickness() float64 { + rv := objc.Call[float64](s_, objc.Sel("minimumThickness")) + return rv } -// The preferred thickness of the split view item relative to the split view. [Full Topic] +// The minimum thickness 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/1388853-minimumthickness?language=objc +func (s_ SplitViewItem) SetMinimumThickness(value float64) { + objc.Call[objc.Void](s_, objc.Sel("setMinimumThickness:"), value) +} + +// The priority for a split view item to hold its size. [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")) return rv } -// The preferred thickness of the split view item relative to the split view. [Full Topic] +// The priority for a split view item to hold its size. [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) +// [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) } -// 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:"), objc.Ptr(value)) } -// The priority for a split view item to hold its size. [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/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/1388889-automaticmaximumthickness?language=objc +func (s_ SplitViewItem) AutomaticMaximumThickness() float64 { + rv := objc.Call[float64](s_, objc.Sel("automaticMaximumThickness")) return rv } -// The priority for a split view item to hold its size. [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/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/1388889-automaticmaximumthickness?language=objc +func (s_ SplitViewItem) SetAutomaticMaximumThickness(value float64) { + objc.Call[objc.Void](s_, objc.Sel("setAutomaticMaximumThickness:"), value) } -// The resizing behavior when the split view item toggles its collapsed state. [Full Topic] +// 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/1388851-collapsebehavior?language=objc -func (s_ SplitViewItem) CollapseBehavior() SplitViewItemCollapseBehavior { - rv := objc.Call[SplitViewItemCollapseBehavior](s_, objc.Sel("collapseBehavior")) +// [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 } -// The resizing behavior when the split view item toggles its collapsed state. [Full Topic] +// 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/1388851-collapsebehavior?language=objc -func (s_ SplitViewItem) SetCollapseBehavior(value SplitViewItemCollapseBehavior) { - objc.Call[objc.Void](s_, objc.Sel("setCollapseBehavior:"), value) +// [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) } -// The standard behavior type of the split view item. [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/1388899-behavior?language=objc -func (s_ SplitViewItem) Behavior() SplitViewItemBehavior { - rv := objc.Call[SplitViewItemBehavior](s_, objc.Sel("behavior")) +// [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 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 @@ -216,19 +227,34 @@ func (s_ SplitViewItem) SetCollapsed(value bool) { objc.Call[objc.Void](s_, objc.Sel("setCollapsed:"), value) } -// The view controller that the split view item represents. [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/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/1388851-collapsebehavior?language=objc +func (s_ SplitViewItem) CollapseBehavior() SplitViewItemCollapseBehavior { + rv := objc.Call[SplitViewItemCollapseBehavior](s_, objc.Sel("collapseBehavior")) return rv } -// The view controller that the split view item represents. [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/1388911-viewcontroller?language=objc -func (s_ SplitViewItem) SetViewController(value IViewController) { - objc.Call[objc.Void](s_, objc.Sel("setViewController:"), objc.Ptr(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 maximum thickness of the split view item. [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")) + return rv +} + +// The maximum thickness of the split view item. [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) } // A Boolean value that determines whether a user interaction can collapse the child view controller that corresponds to the split view item. [Full Topic] @@ -246,36 +272,6 @@ func (s_ SplitViewItem) SetCanCollapse(value bool) { objc.Call[objc.Void](s_, objc.Sel("setCanCollapse:"), value) } -// The minimum thickness of the split view item. [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")) - return rv -} - -// The minimum thickness of the split view item. [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) -} - -// 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/nssplitviewitem/3622473-titlebarseparatorstyle?language=objc -func (s_ SplitViewItem) TitlebarSeparatorStyle() TitlebarSeparatorStyle { - rv := objc.Call[TitlebarSeparatorStyle](s_, objc.Sel("titlebarSeparatorStyle")) - 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/nssplitviewitem/3622473-titlebarseparatorstyle?language=objc -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 @@ -291,17 +287,17 @@ 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] +// 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/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/3622473-titlebarseparatorstyle?language=objc +func (s_ SplitViewItem) TitlebarSeparatorStyle() TitlebarSeparatorStyle { + rv := objc.Call[TitlebarSeparatorStyle](s_, objc.Sel("titlebarSeparatorStyle")) return rv } -// A Boolean value that determines whether the split view item can temporarily expand during a drag. [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/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/3622473-titlebarseparatorstyle?language=objc +func (s_ SplitViewItem) SetTitlebarSeparatorStyle(value TitlebarSeparatorStyle) { + objc.Call[objc.Void](s_, objc.Sel("setTitlebarSeparatorStyle:"), value) } diff --git a/macos/appkit/spring_loading_destination.gen.go b/macos/appkit/spring_loading_destination_protocol.gen.go similarity index 67% rename from macos/appkit/spring_loading_destination.gen.go rename to macos/appkit/spring_loading_destination_protocol.gen.go index 4e086d2c..0104236b 100644 --- a/macos/appkit/spring_loading_destination.gen.go +++ b/macos/appkit/spring_loading_destination_protocol.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package appkit @@ -11,105 +11,108 @@ import ( // [Full Topic]: https://developer.apple.com/documentation/appkit/nsspringloadingdestination?language=objc type PSpringLoadingDestination interface { // optional - SpringLoadingUpdated(draggingInfo DraggingInfoWrapper) SpringLoadingOptions - HasSpringLoadingUpdated() bool - - // optional - SpringLoadingEntered(draggingInfo DraggingInfoWrapper) SpringLoadingOptions - HasSpringLoadingEntered() bool + SpringLoadingExited(draggingInfo DraggingInfoObject) + HasSpringLoadingExited() bool // optional - DraggingEnded(draggingInfo DraggingInfoWrapper) + DraggingEnded(draggingInfo DraggingInfoObject) HasDraggingEnded() bool // optional - SpringLoadingHighlightChanged(draggingInfo DraggingInfoWrapper) - HasSpringLoadingHighlightChanged() bool + SpringLoadingEntered(draggingInfo DraggingInfoObject) SpringLoadingOptions + HasSpringLoadingEntered() bool // optional - SpringLoadingActivatedDraggingInfo(activated bool, draggingInfo DraggingInfoWrapper) + SpringLoadingActivatedDraggingInfo(activated bool, draggingInfo DraggingInfoObject) HasSpringLoadingActivatedDraggingInfo() bool // optional - SpringLoadingExited(draggingInfo DraggingInfoWrapper) - HasSpringLoadingExited() bool -} + SpringLoadingHighlightChanged(draggingInfo DraggingInfoObject) + HasSpringLoadingHighlightChanged() bool -// A concrete type wrapper for the [PSpringLoadingDestination] protocol. -type SpringLoadingDestinationWrapper struct { - objc.Object + // optional + SpringLoadingUpdated(draggingInfo DraggingInfoObject) SpringLoadingOptions + HasSpringLoadingUpdated() bool } -func (s_ SpringLoadingDestinationWrapper) HasSpringLoadingUpdated() bool { - return s_.RespondsToSelector(objc.Sel("springLoadingUpdated:")) -} +// ensure impl type implements protocol interface +var _ PSpringLoadingDestination = (*SpringLoadingDestinationObject)(nil) -// 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/1415976-springloadingupdated?language=objc -func (s_ SpringLoadingDestinationWrapper) SpringLoadingUpdated(draggingInfo PDraggingInfo) SpringLoadingOptions { - po0 := objc.WrapAsProtocol("NSDraggingInfo", draggingInfo) - rv := objc.Call[SpringLoadingOptions](s_, objc.Sel("springLoadingUpdated:"), po0) - return rv +// A concrete type for the [PSpringLoadingDestination] protocol. +type SpringLoadingDestinationObject struct { + objc.Object } -func (s_ SpringLoadingDestinationWrapper) HasSpringLoadingEntered() bool { - return s_.RespondsToSelector(objc.Sel("springLoadingEntered:")) +func (s_ SpringLoadingDestinationObject) HasSpringLoadingExited() bool { + return s_.RespondsToSelector(objc.Sel("springLoadingExited:")) } -// Returns whether to enable or disable spring-loading when a drag enters the bounds of the spring-loading destination. [Full Topic] +// Responds when a drag exits the bounds of the spring-loading destination. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsspringloadingdestination/1415996-springloadingentered?language=objc -func (s_ SpringLoadingDestinationWrapper) SpringLoadingEntered(draggingInfo PDraggingInfo) SpringLoadingOptions { +// [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("springLoadingEntered:"), po0) - return rv + objc.Call[objc.Void](s_, objc.Sel("springLoadingExited:"), po0) } -func (s_ SpringLoadingDestinationWrapper) HasDraggingEnded() bool { +func (s_ SpringLoadingDestinationObject) HasDraggingEnded() bool { return s_.RespondsToSelector(objc.Sel("draggingEnded:")) } // Responds to the end of a drag operation. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/appkit/nsspringloadingdestination/1416047-draggingended?language=objc -func (s_ SpringLoadingDestinationWrapper) DraggingEnded(draggingInfo PDraggingInfo) { +func (s_ SpringLoadingDestinationObject) DraggingEnded(draggingInfo DraggingInfoObject) { po0 := objc.WrapAsProtocol("NSDraggingInfo", draggingInfo) objc.Call[objc.Void](s_, objc.Sel("draggingEnded:"), po0) } -func (s_ SpringLoadingDestinationWrapper) HasSpringLoadingHighlightChanged() bool { - return s_.RespondsToSelector(objc.Sel("springLoadingHighlightChanged:")) +func (s_ SpringLoadingDestinationObject) HasSpringLoadingEntered() bool { + return s_.RespondsToSelector(objc.Sel("springLoadingEntered:")) } -// Updates the destination’s user interface to display a new highlighting style during a spring-loading operation. [Full Topic] +// Returns whether to enable or disable spring-loading when a drag enters the bounds of the spring-loading destination. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsspringloadingdestination/1416062-springloadinghighlightchanged?language=objc -func (s_ SpringLoadingDestinationWrapper) SpringLoadingHighlightChanged(draggingInfo PDraggingInfo) { +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsspringloadingdestination/1415996-springloadingentered?language=objc +func (s_ SpringLoadingDestinationObject) SpringLoadingEntered(draggingInfo DraggingInfoObject) SpringLoadingOptions { po0 := objc.WrapAsProtocol("NSDraggingInfo", draggingInfo) - objc.Call[objc.Void](s_, objc.Sel("springLoadingHighlightChanged:"), po0) + rv := objc.Call[SpringLoadingOptions](s_, objc.Sel("springLoadingEntered:"), po0) + return rv } -func (s_ SpringLoadingDestinationWrapper) HasSpringLoadingActivatedDraggingInfo() bool { +func (s_ SpringLoadingDestinationObject) HasSpringLoadingActivatedDraggingInfo() bool { return s_.RespondsToSelector(objc.Sel("springLoadingActivated:draggingInfo:")) } // Responds to the activation or deactivation of spring-loading on a destination. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/appkit/nsspringloadingdestination/1416106-springloadingactivated?language=objc -func (s_ SpringLoadingDestinationWrapper) SpringLoadingActivatedDraggingInfo(activated bool, draggingInfo PDraggingInfo) { +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_ SpringLoadingDestinationWrapper) HasSpringLoadingExited() bool { - return s_.RespondsToSelector(objc.Sel("springLoadingExited:")) +func (s_ SpringLoadingDestinationObject) HasSpringLoadingHighlightChanged() bool { + return s_.RespondsToSelector(objc.Sel("springLoadingHighlightChanged:")) } -// Responds when a drag exits the bounds of the spring-loading destination. [Full Topic] +// Updates the destination’s user interface to display a new highlighting style during a spring-loading operation. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsspringloadingdestination/1415972-springloadingexited?language=objc -func (s_ SpringLoadingDestinationWrapper) SpringLoadingExited(draggingInfo PDraggingInfo) { +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsspringloadingdestination/1416062-springloadinghighlightchanged?language=objc +func (s_ SpringLoadingDestinationObject) SpringLoadingHighlightChanged(draggingInfo DraggingInfoObject) { po0 := objc.WrapAsProtocol("NSDraggingInfo", draggingInfo) - objc.Call[objc.Void](s_, objc.Sel("springLoadingExited:"), po0) + objc.Call[objc.Void](s_, objc.Sel("springLoadingHighlightChanged:"), po0) +} + +func (s_ SpringLoadingDestinationObject) HasSpringLoadingUpdated() bool { + return s_.RespondsToSelector(objc.Sel("springLoadingUpdated:")) +} + +// 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/1415976-springloadingupdated?language=objc +func (s_ SpringLoadingDestinationObject) SpringLoadingUpdated(draggingInfo DraggingInfoObject) SpringLoadingOptions { + po0 := objc.WrapAsProtocol("NSDraggingInfo", draggingInfo) + rv := objc.Call[SpringLoadingOptions](s_, objc.Sel("springLoadingUpdated:"), po0) + return rv } diff --git a/macos/appkit/stack_view.gen.go b/macos/appkit/stack_view.gen.go index ec715401..bafb6d6a 100644 --- a/macos/appkit/stack_view.gen.go +++ b/macos/appkit/stack_view.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package appkit @@ -19,40 +19,40 @@ type _StackViewClass struct { // An interface definition for the [StackView] class. type IStackView interface { IView - RemoveView(view IView) - SetClippingResistancePriorityForOrientation(clippingResistancePriority LayoutPriority, orientation LayoutConstraintOrientation) - SetVisibilityPriorityForView(priority StackViewVisibilityPriority, view IView) - SetHuggingPriorityForOrientation(huggingPriority LayoutPriority, orientation LayoutConstraintOrientation) - VisibilityPriorityForView(view IView) StackViewVisibilityPriority 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 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 - SetCustomSpacingAfterView(spacing float64, view IView) - RemoveArrangedSubview(view IView) - SetViewsInGravity(views []IView, gravity StackViewGravity) - Distribution() StackViewDistribution - SetDistribution(value StackViewDistribution) + SetVisibilityPriorityForView(priority StackViewVisibilityPriority, view IView) + SetHuggingPriorityForOrientation(huggingPriority LayoutPriority, orientation LayoutConstraintOrientation) + DetachesHiddenViews() bool + SetDetachesHiddenViews(value bool) Views() []View DetachedViews() []View - EdgeInsets() foundation.EdgeInsets - SetEdgeInsets(value foundation.EdgeInsets) - Alignment() LayoutAttribute - SetAlignment(value LayoutAttribute) - Delegate() StackViewDelegateWrapper + Distribution() StackViewDistribution + SetDistribution(value StackViewDistribution) + Delegate() StackViewDelegateObject SetDelegate(value PStackViewDelegate) SetDelegateObject(valueObject objc.IObject) ArrangedSubviews() []View - Spacing() float64 - SetSpacing(value float64) - DetachesHiddenViews() bool - SetDetachesHiddenViews(value bool) Orientation() UserInterfaceLayoutOrientation SetOrientation(value UserInterfaceLayoutOrientation) + EdgeInsets() foundation.EdgeInsets + SetEdgeInsets(value foundation.EdgeInsets) + Spacing() float64 + SetSpacing(value float64) + Alignment() LayoutAttribute + SetAlignment(value LayoutAttribute) } // A view that arranges an array of views horizontally or vertically and updates their placement and sizing when the window size changes. [Full Topic] @@ -85,10 +85,6 @@ func (sc _StackViewClass) Alloc() StackView { return rv } -func StackView_Alloc() StackView { - return StackViewClass.Alloc() -} - func (sc _StackViewClass) New() StackView { rv := objc.Call[StackView](sc, objc.Sel("new")) rv.Autorelease() @@ -118,6 +114,14 @@ 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:"), objc.Ptr(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 @@ -125,50 +129,42 @@ func (s_ StackView) RemoveView(view IView) { objc.Call[objc.Void](s_, objc.Sel("removeView:"), objc.Ptr(view)) } -// 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] +// Adds a view to the end of the stack view gravity area. [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/1488897-addview?language=objc +func (s_ StackView) AddViewInGravity(view IView, gravity StackViewGravity) { + objc.Call[objc.Void](s_, objc.Sel("addView:inGravity:"), objc.Ptr(view), gravity) } -// 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] +// 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/1488890-setvisibilitypriority?language=objc -func (s_ StackView) SetVisibilityPriorityForView(priority StackViewVisibilityPriority, view IView) { - objc.Call[objc.Void](s_, objc.Sel("setVisibilityPriority:forView:"), priority, objc.Ptr(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:"), objc.Ptr(view), index) } -// Sets the Auto Layout priority for the stack view to minimize its size, for a specified user interface axis. [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/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/1488883-setviews?language=objc +func (s_ StackView) SetViewsInGravity(views []IView, gravity StackViewGravity) { + objc.Call[objc.Void](s_, objc.Sel("setViews:inGravity:"), views, gravity) } -// Returns the visibility priority for a specified view in the stack view. [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/1488934-visibilitypriorityforview?language=objc -func (s_ StackView) VisibilityPriorityForView(view IView) StackViewVisibilityPriority { - rv := objc.Call[StackViewVisibilityPriority](s_, objc.Sel("visibilityPriorityForView:"), objc.Ptr(view)) - return rv +// [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) } -// Returns the custom spacing, in points, between a specified view in the stack view and the view that follows it. [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/1488888-customspacingafterview?language=objc -func (s_ StackView) CustomSpacingAfterView(view IView) float64 { - rv := objc.Call[float64](s_, objc.Sel("customSpacingAfterView:"), objc.Ptr(view)) +// [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 } -// 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:"), objc.Ptr(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 @@ -177,6 +173,13 @@ 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:"), objc.Ptr(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 @@ -184,26 +187,26 @@ func (s_ StackView) AddArrangedSubview(view IView) { objc.Call[objc.Void](s_, objc.Sel("addArrangedSubview:"), objc.Ptr(view)) } -// Adds a view to a stack view gravity area at a specified index position. [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/1488933-insertview?language=objc -func (s_ StackView) InsertViewAtIndexInGravity(view IView, index uint, gravity StackViewGravity) { - objc.Call[objc.Void](s_, objc.Sel("insertView:atIndex:inGravity:"), objc.Ptr(view), index, gravity) +// [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:"), objc.Ptr(view)) + return rv } -// Adds the provided view to the array of arranged subviews at the specified index. [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/1488896-insertarrangedsubview?language=objc -func (s_ StackView) InsertArrangedSubviewAtIndex(view IView, index int) { - objc.Call[objc.Void](s_, objc.Sel("insertArrangedSubview:atIndex:"), objc.Ptr(view), index) +// [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, objc.Ptr(view)) } -// 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] +// 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/1488912-huggingpriorityfororientation?language=objc -func (s_ StackView) HuggingPriorityForOrientation(orientation LayoutConstraintOrientation) LayoutPriority { - rv := objc.Call[LayoutPriority](s_, objc.Sel("huggingPriorityForOrientation:"), orientation) - 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:"), objc.Ptr(view), index, gravity) } // 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] @@ -214,40 +217,33 @@ func (s_ StackView) ClippingResistancePriorityForOrientation(orientation LayoutC return rv } -// 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/1488874-setcustomspacing?language=objc -func (s_ StackView) SetCustomSpacingAfterView(spacing float64, view IView) { - objc.Call[objc.Void](s_, objc.Sel("setCustomSpacing:afterView:"), spacing, objc.Ptr(view)) -} - -// Removes the provided view from the stack’s array of arranged subviews. [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/1488925-removearrangedsubview?language=objc -func (s_ StackView) RemoveArrangedSubview(view IView) { - objc.Call[objc.Void](s_, objc.Sel("removeArrangedSubview:"), objc.Ptr(view)) +// [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, objc.Ptr(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) } -// [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/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/1488940-detacheshiddenviews?language=objc +func (s_ StackView) DetachesHiddenViews() bool { + rv := objc.Call[bool](s_, objc.Sel("detachesHiddenViews")) return rv } -// [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/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/1488940-detacheshiddenviews?language=objc +func (s_ StackView) SetDetachesHiddenViews(value bool) { + objc.Call[objc.Void](s_, objc.Sel("setDetachesHiddenViews:"), value) } // The array of views owned by the stack view. [Full Topic] @@ -266,41 +262,26 @@ func (s_ StackView) DetachedViews() []View { 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) 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 view alignment within the stack view. [Full Topic] +// [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/1488882-distribution?language=objc +func (s_ StackView) Distribution() StackViewDistribution { + rv := objc.Call[StackViewDistribution](s_, objc.Sel("distribution")) return rv } -// The view alignment within the stack view. [Full Topic] +// [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/1488882-distribution?language=objc +func (s_ StackView) SetDistribution(value StackViewDistribution) { + objc.Call[objc.Void](s_, objc.Sel("setDistribution:"), value) } // The delegate object for the stack view. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/appkit/nsstackview/1488946-delegate?language=objc -func (s_ StackView) Delegate() StackViewDelegateWrapper { - rv := objc.Call[StackViewDelegateWrapper](s_, objc.Sel("delegate")) +func (s_ StackView) Delegate() StackViewDelegateObject { + rv := objc.Call[StackViewDelegateObject](s_, objc.Sel("delegate")) return rv } @@ -328,6 +309,36 @@ 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 @@ -343,32 +354,17 @@ func (s_ StackView) SetSpacing(value float64) { objc.Call[objc.Void](s_, objc.Sel("setSpacing:"), value) } -// 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/1488940-detacheshiddenviews?language=objc -func (s_ StackView) DetachesHiddenViews() bool { - rv := objc.Call[bool](s_, objc.Sel("detachesHiddenViews")) - return rv -} - -// 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/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] +// The view alignment within 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")) +// [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 horizontal or vertical layout direction of the stack view. [Full Topic] +// The view alignment within 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) +// [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) } diff --git a/macos/appkit/stack_view_delegate.gen.go b/macos/appkit/stack_view_delegate.gen.go index 3fd38659..fd96bb25 100644 --- a/macos/appkit/stack_view_delegate.gen.go +++ b/macos/appkit/stack_view_delegate.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package appkit @@ -13,11 +13,16 @@ 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 { @@ -37,19 +42,50 @@ 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 +} -// A concrete type wrapper for the [PStackViewDelegate] protocol. -type StackViewDelegateWrapper struct { +// 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) + +// A concrete type for the [PStackViewDelegate] protocol. +type StackViewDelegateObject struct { objc.Object } -func (s_ StackViewDelegateWrapper) HasStackViewDidReattachViews() bool { +func (s_ StackViewDelegateObject) HasStackViewDidReattachViews() bool { return s_.RespondsToSelector(objc.Sel("stackView:didReattachViews:")) } // Called when the stack view has automatically reattached one or more previously-detached views. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/appkit/nsstackviewdelegate/1488921-stackview?language=objc -func (s_ StackViewDelegateWrapper) StackViewDidReattachViews(stackView IStackView, views []IView) { +func (s_ StackViewDelegateObject) StackViewDidReattachViews(stackView StackView, views []View) { objc.Call[objc.Void](s_, objc.Sel("stackView:didReattachViews:"), objc.Ptr(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:"), objc.Ptr(stackView), views) +} diff --git a/macos/appkit/standard_key_binding_responding.gen.go b/macos/appkit/standard_key_binding_responding_protocol.gen.go similarity index 71% rename from macos/appkit/standard_key_binding_responding.gen.go rename to macos/appkit/standard_key_binding_responding_protocol.gen.go index b6e84cd3..f477d522 100644 --- a/macos/appkit/standard_key_binding_responding.gen.go +++ b/macos/appkit/standard_key_binding_responding_protocol.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package appkit @@ -11,1432 +11,1435 @@ import ( // [Full Topic]: https://developer.apple.com/documentation/appkit/nsstandardkeybindingresponding?language=objc type PStandardKeyBindingResponding interface { // optional - InsertParagraphSeparator(sender objc.Object) - HasInsertParagraphSeparator() bool + MoveWordBackwardAndModifySelection(sender objc.Object) + HasMoveWordBackwardAndModifySelection() bool // optional - MoveLeftAndModifySelection(sender objc.Object) - HasMoveLeftAndModifySelection() bool + InsertNewline(sender objc.Object) + HasInsertNewline() bool // optional - InsertContainerBreak(sender objc.Object) - HasInsertContainerBreak() bool + ChangeCaseOfLetter(sender objc.Object) + HasChangeCaseOfLetter() bool // optional CapitalizeWord(sender objc.Object) HasCapitalizeWord() bool // optional - InsertLineBreak(sender objc.Object) - HasInsertLineBreak() bool - - // optional - MoveToRightEndOfLine(sender objc.Object) - HasMoveToRightEndOfLine() bool - - // optional - MoveRight(sender objc.Object) - HasMoveRight() bool - - // optional - InsertText(insertString objc.Object) - HasInsertText() bool + MoveRightAndModifySelection(sender objc.Object) + HasMoveRightAndModifySelection() bool // optional - InsertSingleQuoteIgnoringSubstitution(sender objc.Object) - HasInsertSingleQuoteIgnoringSubstitution() bool + MoveToBeginningOfDocumentAndModifySelection(sender objc.Object) + HasMoveToBeginningOfDocumentAndModifySelection() bool // optional - MoveWordBackward(sender objc.Object) - HasMoveWordBackward() bool + MoveToLeftEndOfLineAndModifySelection(sender objc.Object) + HasMoveToLeftEndOfLineAndModifySelection() bool // optional MoveToEndOfDocument(sender objc.Object) HasMoveToEndOfDocument() bool // optional - SelectWord(sender objc.Object) - HasSelectWord() bool + MoveToBeginningOfParagraph(sender objc.Object) + HasMoveToBeginningOfParagraph() bool // optional - MoveToEndOfParagraph(sender objc.Object) - HasMoveToEndOfParagraph() bool + InsertSingleQuoteIgnoringSubstitution(sender objc.Object) + HasInsertSingleQuoteIgnoringSubstitution() bool // optional - ScrollToEndOfDocument(sender objc.Object) - HasScrollToEndOfDocument() bool + MoveRight(sender objc.Object) + HasMoveRight() bool // optional - DeleteForward(sender objc.Object) - HasDeleteForward() bool + MoveLeft(sender objc.Object) + HasMoveLeft() bool // optional MoveForwardAndModifySelection(sender objc.Object) HasMoveForwardAndModifySelection() bool // optional - DeleteToEndOfLine(sender objc.Object) - HasDeleteToEndOfLine() bool + TransposeWords(sender objc.Object) + HasTransposeWords() bool // optional - MoveToEndOfLine(sender objc.Object) - HasMoveToEndOfLine() bool + Yank(sender objc.Object) + HasYank() bool // optional - QuickLookPreviewItems(sender objc.Object) - HasQuickLookPreviewItems() bool + MoveWordLeft(sender objc.Object) + HasMoveWordLeft() bool // optional - MakeTextWritingDirectionRightToLeft(sender objc.Object) - HasMakeTextWritingDirectionRightToLeft() bool + ScrollPageDown(sender objc.Object) + HasScrollPageDown() bool // optional - SelectParagraph(sender objc.Object) - HasSelectParagraph() bool + MoveToEndOfParagraphAndModifySelection(sender objc.Object) + HasMoveToEndOfParagraphAndModifySelection() bool // optional - MoveToBeginningOfDocumentAndModifySelection(sender objc.Object) - HasMoveToBeginningOfDocumentAndModifySelection() bool + InsertBacktab(sender objc.Object) + HasInsertBacktab() bool // optional - ScrollLineDown(sender objc.Object) - HasScrollLineDown() bool + MoveWordForwardAndModifySelection(sender objc.Object) + HasMoveWordForwardAndModifySelection() bool // optional - DeleteToBeginningOfLine(sender objc.Object) - HasDeleteToBeginningOfLine() bool + MoveToEndOfDocumentAndModifySelection(sender objc.Object) + HasMoveToEndOfDocumentAndModifySelection() bool // optional - MoveUpAndModifySelection(sender objc.Object) - HasMoveUpAndModifySelection() bool + ScrollPageUp(sender objc.Object) + HasScrollPageUp() bool // optional - DeleteWordForward(sender objc.Object) - HasDeleteWordForward() bool + InsertTabIgnoringFieldEditor(sender objc.Object) + HasInsertTabIgnoringFieldEditor() bool // optional - DeleteToMark(sender objc.Object) - HasDeleteToMark() bool + InsertNewlineIgnoringFieldEditor(sender objc.Object) + HasInsertNewlineIgnoringFieldEditor() bool // optional - MoveWordForward(sender objc.Object) - HasMoveWordForward() bool + SetMark(sender objc.Object) + HasSetMark() bool // optional - InsertNewline(sender objc.Object) - HasInsertNewline() bool + MoveToBeginningOfParagraphAndModifySelection(sender objc.Object) + HasMoveToBeginningOfParagraphAndModifySelection() bool // optional - DeleteBackwardByDecomposingPreviousCharacter(sender objc.Object) - HasDeleteBackwardByDecomposingPreviousCharacter() bool + MoveToLeftEndOfLine(sender objc.Object) + HasMoveToLeftEndOfLine() bool // optional - MoveDownAndModifySelection(sender objc.Object) - HasMoveDownAndModifySelection() bool + MoveToEndOfLineAndModifySelection(sender objc.Object) + HasMoveToEndOfLineAndModifySelection() bool // optional - MoveBackwardAndModifySelection(sender objc.Object) - HasMoveBackwardAndModifySelection() bool + MakeTextWritingDirectionLeftToRight(sender objc.Object) + HasMakeTextWritingDirectionLeftToRight() bool // optional - MoveWordLeftAndModifySelection(sender objc.Object) - HasMoveWordLeftAndModifySelection() bool + MoveWordBackward(sender objc.Object) + HasMoveWordBackward() bool // optional - MoveUp(sender objc.Object) - HasMoveUp() bool + ScrollToBeginningOfDocument(sender objc.Object) + HasScrollToBeginningOfDocument() bool // optional - MoveToBeginningOfLine(sender objc.Object) - HasMoveToBeginningOfLine() bool + MoveBackward(sender objc.Object) + HasMoveBackward() bool // optional - PageDown(sender objc.Object) - HasPageDown() bool + CenterSelectionInVisibleArea(sender objc.Object) + HasCenterSelectionInVisibleArea() bool // optional - InsertTabIgnoringFieldEditor(sender objc.Object) - HasInsertTabIgnoringFieldEditor() bool + MoveDown(sender objc.Object) + HasMoveDown() bool // optional - SelectAll(sender objc.Object) - HasSelectAll() bool + MakeBaseWritingDirectionNatural(sender objc.Object) + HasMakeBaseWritingDirectionNatural() bool // optional - Transpose(sender objc.Object) - HasTranspose() bool + InsertLineBreak(sender objc.Object) + HasInsertLineBreak() bool // optional - DeleteToEndOfParagraph(sender objc.Object) - HasDeleteToEndOfParagraph() bool + MoveUp(sender objc.Object) + HasMoveUp() bool // optional - MoveBackward(sender objc.Object) - HasMoveBackward() bool + SelectToMark(sender objc.Object) + HasSelectToMark() bool + + // optional + DeleteToEndOfLine(sender objc.Object) + HasDeleteToEndOfLine() bool // optional MakeBaseWritingDirectionRightToLeft(sender objc.Object) HasMakeBaseWritingDirectionRightToLeft() bool // optional - ScrollToBeginningOfDocument(sender objc.Object) - HasScrollToBeginningOfDocument() bool + MoveToEndOfParagraph(sender objc.Object) + HasMoveToEndOfParagraph() bool // optional - MoveWordLeft(sender objc.Object) - HasMoveWordLeft() bool + MoveBackwardAndModifySelection(sender objc.Object) + HasMoveBackwardAndModifySelection() bool // optional - SelectToMark(sender objc.Object) - HasSelectToMark() bool + MoveToBeginningOfLine(sender objc.Object) + HasMoveToBeginningOfLine() bool // optional - DeleteToBeginningOfParagraph(sender objc.Object) - HasDeleteToBeginningOfParagraph() bool + MoveLeftAndModifySelection(sender objc.Object) + HasMoveLeftAndModifySelection() bool // optional - MoveLeft(sender objc.Object) - HasMoveLeft() bool + Complete(sender objc.Object) + HasComplete() bool // optional - SelectLine(sender objc.Object) - HasSelectLine() bool + ScrollLineUp(sender objc.Object) + HasScrollLineUp() bool // optional - MakeTextWritingDirectionNatural(sender objc.Object) - HasMakeTextWritingDirectionNatural() bool + DeleteToBeginningOfLine(sender objc.Object) + HasDeleteToBeginningOfLine() bool // optional - MoveToBeginningOfParagraph(sender objc.Object) - HasMoveToBeginningOfParagraph() bool + MoveWordLeftAndModifySelection(sender objc.Object) + HasMoveWordLeftAndModifySelection() bool // optional - MoveToBeginningOfParagraphAndModifySelection(sender objc.Object) - HasMoveToBeginningOfParagraphAndModifySelection() bool + PageDownAndModifySelection(sender objc.Object) + HasPageDownAndModifySelection() bool // optional - TransposeWords(sender objc.Object) - HasTransposeWords() bool + UppercaseWord(sender objc.Object) + HasUppercaseWord() bool // optional MakeBaseWritingDirectionLeftToRight(sender objc.Object) HasMakeBaseWritingDirectionLeftToRight() bool // optional - Complete(sender objc.Object) - HasComplete() bool + InsertTab(sender objc.Object) + HasInsertTab() bool // optional - MoveParagraphBackwardAndModifySelection(sender objc.Object) - HasMoveParagraphBackwardAndModifySelection() bool + MoveToBeginningOfDocument(sender objc.Object) + HasMoveToBeginningOfDocument() bool // optional - PageUp(sender objc.Object) - HasPageUp() bool + LowercaseWord(sender objc.Object) + HasLowercaseWord() bool // optional - MoveWordRightAndModifySelection(sender objc.Object) - HasMoveWordRightAndModifySelection() bool + SelectParagraph(sender objc.Object) + HasSelectParagraph() bool // optional - InsertDoubleQuoteIgnoringSubstitution(sender objc.Object) - HasInsertDoubleQuoteIgnoringSubstitution() bool + InsertParagraphSeparator(sender objc.Object) + HasInsertParagraphSeparator() bool // optional - DeleteWordBackward(sender objc.Object) - HasDeleteWordBackward() bool + DeleteToEndOfParagraph(sender objc.Object) + HasDeleteToEndOfParagraph() bool // optional - UppercaseWord(sender objc.Object) - HasUppercaseWord() bool + QuickLookPreviewItems(sender objc.Object) + HasQuickLookPreviewItems() bool // optional - CenterSelectionInVisibleArea(sender objc.Object) - HasCenterSelectionInVisibleArea() bool + InsertDoubleQuoteIgnoringSubstitution(sender objc.Object) + HasInsertDoubleQuoteIgnoringSubstitution() bool // optional - Yank(sender objc.Object) - HasYank() bool + MoveWordRightAndModifySelection(sender objc.Object) + HasMoveWordRightAndModifySelection() bool // optional - MoveToRightEndOfLineAndModifySelection(sender objc.Object) - HasMoveToRightEndOfLineAndModifySelection() bool + SelectLine(sender objc.Object) + HasSelectLine() bool // optional - CancelOperation(sender objc.Object) - HasCancelOperation() bool + DeleteToMark(sender objc.Object) + HasDeleteToMark() bool // optional - MoveRightAndModifySelection(sender objc.Object) - HasMoveRightAndModifySelection() bool + DeleteWordBackward(sender objc.Object) + HasDeleteWordBackward() bool // optional - InsertNewlineIgnoringFieldEditor(sender objc.Object) - HasInsertNewlineIgnoringFieldEditor() bool + InsertText(insertString objc.Object) + HasInsertText() bool // optional - MoveWordRight(sender objc.Object) - HasMoveWordRight() bool + PageUpAndModifySelection(sender objc.Object) + HasPageUpAndModifySelection() bool // optional - MoveForward(sender objc.Object) - HasMoveForward() bool + DeleteBackwardByDecomposingPreviousCharacter(sender objc.Object) + HasDeleteBackwardByDecomposingPreviousCharacter() bool // optional - ChangeCaseOfLetter(sender objc.Object) - HasChangeCaseOfLetter() bool + DoCommandBySelector(selector objc.Selector) + HasDoCommandBySelector() bool // optional - ScrollPageUp(sender objc.Object) - HasScrollPageUp() bool + MakeTextWritingDirectionNatural(sender objc.Object) + HasMakeTextWritingDirectionNatural() bool // optional - InsertBacktab(sender objc.Object) - HasInsertBacktab() bool + DeleteBackward(sender objc.Object) + HasDeleteBackward() bool // optional - InsertTab(sender objc.Object) - HasInsertTab() bool + MoveToEndOfLine(sender objc.Object) + HasMoveToEndOfLine() bool // optional - MoveDown(sender objc.Object) - HasMoveDown() bool + MoveToBeginningOfLineAndModifySelection(sender objc.Object) + HasMoveToBeginningOfLineAndModifySelection() bool // optional - PageDownAndModifySelection(sender objc.Object) - HasPageDownAndModifySelection() bool + MakeTextWritingDirectionRightToLeft(sender objc.Object) + HasMakeTextWritingDirectionRightToLeft() bool // optional - MoveToLeftEndOfLineAndModifySelection(sender objc.Object) - HasMoveToLeftEndOfLineAndModifySelection() bool + SelectWord(sender objc.Object) + HasSelectWord() bool // optional - ScrollLineUp(sender objc.Object) - HasScrollLineUp() bool + SelectAll(sender objc.Object) + HasSelectAll() bool // optional - DoCommandBySelector(selector objc.Selector) - HasDoCommandBySelector() bool + DeleteForward(sender objc.Object) + HasDeleteForward() bool // optional - SwapWithMark(sender objc.Object) - HasSwapWithMark() bool + MoveParagraphBackwardAndModifySelection(sender objc.Object) + HasMoveParagraphBackwardAndModifySelection() bool // optional - MoveToLeftEndOfLine(sender objc.Object) - HasMoveToLeftEndOfLine() bool + MoveParagraphForwardAndModifySelection(sender objc.Object) + HasMoveParagraphForwardAndModifySelection() bool + + // optional + MoveWordForward(sender objc.Object) + HasMoveWordForward() bool + + // optional + MoveWordRight(sender objc.Object) + HasMoveWordRight() bool // optional - DeleteBackward(sender objc.Object) - HasDeleteBackward() bool + PageUp(sender objc.Object) + HasPageUp() bool // optional - MakeTextWritingDirectionLeftToRight(sender objc.Object) - HasMakeTextWritingDirectionLeftToRight() bool + SwapWithMark(sender objc.Object) + HasSwapWithMark() bool // optional - MoveWordBackwardAndModifySelection(sender objc.Object) - HasMoveWordBackwardAndModifySelection() bool + DeleteToBeginningOfParagraph(sender objc.Object) + HasDeleteToBeginningOfParagraph() bool // optional - ScrollPageDown(sender objc.Object) - HasScrollPageDown() bool + Indent(sender objc.Object) + HasIndent() bool // optional - SetMark(sender objc.Object) - HasSetMark() bool + MoveDownAndModifySelection(sender objc.Object) + HasMoveDownAndModifySelection() bool // optional - MoveWordForwardAndModifySelection(sender objc.Object) - HasMoveWordForwardAndModifySelection() bool + ScrollLineDown(sender objc.Object) + HasScrollLineDown() bool // optional - PageUpAndModifySelection(sender objc.Object) - HasPageUpAndModifySelection() bool + Transpose(sender objc.Object) + HasTranspose() bool // optional - MoveToBeginningOfDocument(sender objc.Object) - HasMoveToBeginningOfDocument() bool + InsertContainerBreak(sender objc.Object) + HasInsertContainerBreak() bool // optional - MoveToBeginningOfLineAndModifySelection(sender objc.Object) - HasMoveToBeginningOfLineAndModifySelection() bool + DeleteWordForward(sender objc.Object) + HasDeleteWordForward() bool // optional - LowercaseWord(sender objc.Object) - HasLowercaseWord() bool + PageDown(sender objc.Object) + HasPageDown() bool // optional - MoveToEndOfDocumentAndModifySelection(sender objc.Object) - HasMoveToEndOfDocumentAndModifySelection() bool + MoveToRightEndOfLineAndModifySelection(sender objc.Object) + HasMoveToRightEndOfLineAndModifySelection() bool // optional - MoveToEndOfLineAndModifySelection(sender objc.Object) - HasMoveToEndOfLineAndModifySelection() bool + MoveForward(sender objc.Object) + HasMoveForward() bool // optional - Indent(sender objc.Object) - HasIndent() bool + ScrollToEndOfDocument(sender objc.Object) + HasScrollToEndOfDocument() bool // optional - MakeBaseWritingDirectionNatural(sender objc.Object) - HasMakeBaseWritingDirectionNatural() bool + CancelOperation(sender objc.Object) + HasCancelOperation() bool // optional - MoveParagraphForwardAndModifySelection(sender objc.Object) - HasMoveParagraphForwardAndModifySelection() bool + MoveToRightEndOfLine(sender objc.Object) + HasMoveToRightEndOfLine() bool // optional - MoveToEndOfParagraphAndModifySelection(sender objc.Object) - HasMoveToEndOfParagraphAndModifySelection() bool + MoveUpAndModifySelection(sender objc.Object) + HasMoveUpAndModifySelection() bool } -// A concrete type wrapper for the [PStandardKeyBindingResponding] protocol. -type StandardKeyBindingRespondingWrapper struct { +// ensure impl type implements protocol interface +var _ PStandardKeyBindingResponding = (*StandardKeyBindingRespondingObject)(nil) + +// A concrete type for the [PStandardKeyBindingResponding] protocol. +type StandardKeyBindingRespondingObject struct { objc.Object } -func (s_ StandardKeyBindingRespondingWrapper) HasInsertParagraphSeparator() bool { - return s_.RespondsToSelector(objc.Sel("insertParagraphSeparator:")) +func (s_ StandardKeyBindingRespondingObject) HasMoveWordBackwardAndModifySelection() bool { + return s_.RespondsToSelector(objc.Sel("moveWordBackwardAndModifySelection:")) } -// Inserts a paragraph separator. [Full Topic] +// [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsstandardkeybindingresponding/3005219-insertparagraphseparator?language=objc -func (s_ StandardKeyBindingRespondingWrapper) InsertParagraphSeparator(sender objc.IObject) { - objc.Call[objc.Void](s_, objc.Sel("insertParagraphSeparator:"), 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_ StandardKeyBindingRespondingWrapper) HasMoveLeftAndModifySelection() bool { - return s_.RespondsToSelector(objc.Sel("moveLeftAndModifySelection:")) +func (s_ StandardKeyBindingRespondingObject) HasInsertNewline() bool { + return s_.RespondsToSelector(objc.Sel("insertNewline:")) } -// Extends the selection to include the content to the left of the current selection. [Full Topic] +// Inserts a newline character. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsstandardkeybindingresponding/3005238-moveleftandmodifyselection?language=objc -func (s_ StandardKeyBindingRespondingWrapper) MoveLeftAndModifySelection(sender objc.IObject) { - objc.Call[objc.Void](s_, objc.Sel("moveLeftAndModifySelection:"), 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_ StandardKeyBindingRespondingWrapper) HasInsertContainerBreak() bool { - return s_.RespondsToSelector(objc.Sel("insertContainerBreak:")) +func (s_ StandardKeyBindingRespondingObject) HasChangeCaseOfLetter() bool { + return s_.RespondsToSelector(objc.Sel("changeCaseOfLetter:")) } -// 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_ StandardKeyBindingRespondingWrapper) InsertContainerBreak(sender objc.IObject) { - objc.Call[objc.Void](s_, objc.Sel("insertContainerBreak:"), 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_ StandardKeyBindingRespondingWrapper) HasCapitalizeWord() bool { +func (s_ StandardKeyBindingRespondingObject) HasCapitalizeWord() bool { return s_.RespondsToSelector(objc.Sel("capitalizeWord:")) } // [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/appkit/nsstandardkeybindingresponding/3005197-capitalizeword?language=objc -func (s_ StandardKeyBindingRespondingWrapper) CapitalizeWord(sender objc.IObject) { +func (s_ StandardKeyBindingRespondingObject) CapitalizeWord(sender objc.Object) { objc.Call[objc.Void](s_, objc.Sel("capitalizeWord:"), sender) } -func (s_ StandardKeyBindingRespondingWrapper) HasInsertLineBreak() bool { - return s_.RespondsToSelector(objc.Sel("insertLineBreak:")) -} - -// Inserts a line break character. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsstandardkeybindingresponding/3005216-insertlinebreak?language=objc -func (s_ StandardKeyBindingRespondingWrapper) InsertLineBreak(sender objc.IObject) { - objc.Call[objc.Void](s_, objc.Sel("insertLineBreak:"), sender) -} - -func (s_ StandardKeyBindingRespondingWrapper) HasMoveToRightEndOfLine() bool { - return s_.RespondsToSelector(objc.Sel("moveToRightEndOfLine:")) -} - -// [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsstandardkeybindingresponding/3005257-movetorightendofline?language=objc -func (s_ StandardKeyBindingRespondingWrapper) MoveToRightEndOfLine(sender objc.IObject) { - objc.Call[objc.Void](s_, objc.Sel("moveToRightEndOfLine:"), sender) -} - -func (s_ StandardKeyBindingRespondingWrapper) HasMoveRight() bool { - return s_.RespondsToSelector(objc.Sel("moveRight:")) -} - -// Moves the insertion pointer right in the current content. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsstandardkeybindingresponding/3005241-moveright?language=objc -func (s_ StandardKeyBindingRespondingWrapper) MoveRight(sender objc.IObject) { - objc.Call[objc.Void](s_, objc.Sel("moveRight:"), sender) -} - -func (s_ StandardKeyBindingRespondingWrapper) HasInsertText() bool { - return s_.RespondsToSelector(objc.Sel("insertText:")) +func (s_ StandardKeyBindingRespondingObject) HasMoveRightAndModifySelection() bool { + return s_.RespondsToSelector(objc.Sel("moveRightAndModifySelection:")) } -// Inserts the text you specify. [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/3005223-inserttext?language=objc -func (s_ StandardKeyBindingRespondingWrapper) InsertText(insertString objc.IObject) { - objc.Call[objc.Void](s_, objc.Sel("insertText:"), insertString) +// [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_ StandardKeyBindingRespondingWrapper) HasInsertSingleQuoteIgnoringSubstitution() bool { - return s_.RespondsToSelector(objc.Sel("insertSingleQuoteIgnoringSubstitution:")) +func (s_ StandardKeyBindingRespondingObject) HasMoveToBeginningOfDocumentAndModifySelection() bool { + return s_.RespondsToSelector(objc.Sel("moveToBeginningOfDocumentAndModifySelection:")) } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsstandardkeybindingresponding/3005220-insertsinglequoteignoringsubstit?language=objc -func (s_ StandardKeyBindingRespondingWrapper) InsertSingleQuoteIgnoringSubstitution(sender objc.IObject) { - objc.Call[objc.Void](s_, objc.Sel("insertSingleQuoteIgnoringSubstitution:"), 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_ StandardKeyBindingRespondingWrapper) HasMoveWordBackward() bool { - return s_.RespondsToSelector(objc.Sel("moveWordBackward:")) +func (s_ StandardKeyBindingRespondingObject) HasMoveToLeftEndOfLineAndModifySelection() bool { + return s_.RespondsToSelector(objc.Sel("moveToLeftEndOfLineAndModifySelection:")) } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsstandardkeybindingresponding/3005261-movewordbackward?language=objc -func (s_ StandardKeyBindingRespondingWrapper) MoveWordBackward(sender objc.IObject) { - objc.Call[objc.Void](s_, objc.Sel("moveWordBackward:"), 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_ StandardKeyBindingRespondingWrapper) HasMoveToEndOfDocument() bool { +func (s_ StandardKeyBindingRespondingObject) HasMoveToEndOfDocument() bool { return s_.RespondsToSelector(objc.Sel("moveToEndOfDocument:")) } // [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/appkit/nsstandardkeybindingresponding/3005249-movetoendofdocument?language=objc -func (s_ StandardKeyBindingRespondingWrapper) MoveToEndOfDocument(sender objc.IObject) { +func (s_ StandardKeyBindingRespondingObject) MoveToEndOfDocument(sender objc.Object) { objc.Call[objc.Void](s_, objc.Sel("moveToEndOfDocument:"), sender) } -func (s_ StandardKeyBindingRespondingWrapper) HasSelectWord() bool { - return s_.RespondsToSelector(objc.Sel("selectWord:")) +func (s_ StandardKeyBindingRespondingObject) HasMoveToBeginningOfParagraph() bool { + return s_.RespondsToSelector(objc.Sel("moveToBeginningOfParagraph:")) } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsstandardkeybindingresponding/3005284-selectword?language=objc -func (s_ StandardKeyBindingRespondingWrapper) SelectWord(sender objc.IObject) { - objc.Call[objc.Void](s_, objc.Sel("selectWord:"), 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_ StandardKeyBindingRespondingWrapper) HasMoveToEndOfParagraph() bool { - return s_.RespondsToSelector(objc.Sel("moveToEndOfParagraph:")) +func (s_ StandardKeyBindingRespondingObject) HasInsertSingleQuoteIgnoringSubstitution() bool { + return s_.RespondsToSelector(objc.Sel("insertSingleQuoteIgnoringSubstitution:")) } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsstandardkeybindingresponding/3005253-movetoendofparagraph?language=objc -func (s_ StandardKeyBindingRespondingWrapper) MoveToEndOfParagraph(sender objc.IObject) { - objc.Call[objc.Void](s_, objc.Sel("moveToEndOfParagraph:"), sender) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsstandardkeybindingresponding/3005220-insertsinglequoteignoringsubstit?language=objc +func (s_ StandardKeyBindingRespondingObject) InsertSingleQuoteIgnoringSubstitution(sender objc.Object) { + objc.Call[objc.Void](s_, objc.Sel("insertSingleQuoteIgnoringSubstitution:"), sender) } -func (s_ StandardKeyBindingRespondingWrapper) HasScrollToEndOfDocument() bool { - return s_.RespondsToSelector(objc.Sel("scrollToEndOfDocument:")) +func (s_ StandardKeyBindingRespondingObject) HasMoveRight() bool { + return s_.RespondsToSelector(objc.Sel("moveRight:")) } -// Scrolls the content to the end of the document. [Full Topic] +// Moves the insertion pointer right in the current content. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsstandardkeybindingresponding/3005279-scrolltoendofdocument?language=objc -func (s_ StandardKeyBindingRespondingWrapper) ScrollToEndOfDocument(sender objc.IObject) { - objc.Call[objc.Void](s_, objc.Sel("scrollToEndOfDocument:"), 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_ StandardKeyBindingRespondingWrapper) HasDeleteForward() bool { - return s_.RespondsToSelector(objc.Sel("deleteForward:")) +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/3005203-deleteforward?language=objc -func (s_ StandardKeyBindingRespondingWrapper) DeleteForward(sender objc.IObject) { - objc.Call[objc.Void](s_, objc.Sel("deleteForward:"), 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_ StandardKeyBindingRespondingWrapper) HasMoveForwardAndModifySelection() bool { +func (s_ StandardKeyBindingRespondingObject) HasMoveForwardAndModifySelection() bool { return s_.RespondsToSelector(objc.Sel("moveForwardAndModifySelection:")) } // Extends the selection to include the content after the current selection. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/appkit/nsstandardkeybindingresponding/3005236-moveforwardandmodifyselection?language=objc -func (s_ StandardKeyBindingRespondingWrapper) MoveForwardAndModifySelection(sender objc.IObject) { +func (s_ StandardKeyBindingRespondingObject) MoveForwardAndModifySelection(sender objc.Object) { objc.Call[objc.Void](s_, objc.Sel("moveForwardAndModifySelection:"), sender) } -func (s_ StandardKeyBindingRespondingWrapper) HasDeleteToEndOfLine() bool { - return s_.RespondsToSelector(objc.Sel("deleteToEndOfLine:")) +func (s_ StandardKeyBindingRespondingObject) HasTransposeWords() bool { + return s_.RespondsToSelector(objc.Sel("transposeWords:")) } -// Deletes content from the insertion point to the end of the current line. [Full Topic] +// Transposes the words around the current selection. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsstandardkeybindingresponding/3005206-deletetoendofline?language=objc -func (s_ StandardKeyBindingRespondingWrapper) DeleteToEndOfLine(sender objc.IObject) { - objc.Call[objc.Void](s_, objc.Sel("deleteToEndOfLine:"), 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_ StandardKeyBindingRespondingWrapper) HasMoveToEndOfLine() bool { - return s_.RespondsToSelector(objc.Sel("moveToEndOfLine:")) +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/3005251-movetoendofline?language=objc -func (s_ StandardKeyBindingRespondingWrapper) MoveToEndOfLine(sender objc.IObject) { - objc.Call[objc.Void](s_, objc.Sel("moveToEndOfLine:"), 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_ StandardKeyBindingRespondingWrapper) HasQuickLookPreviewItems() bool { - return s_.RespondsToSelector(objc.Sel("quickLookPreviewItems:")) +func (s_ StandardKeyBindingRespondingObject) HasScrollPageDown() bool { + return s_.RespondsToSelector(objc.Sel("scrollPageDown:")) } -// Invokes QuickLook to preview the current selection. [Full Topic] +// Scrolls the content down by a page. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsstandardkeybindingresponding/3005273-quicklookpreviewitems?language=objc -func (s_ StandardKeyBindingRespondingWrapper) QuickLookPreviewItems(sender objc.IObject) { - objc.Call[objc.Void](s_, objc.Sel("quickLookPreviewItems:"), 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_ StandardKeyBindingRespondingWrapper) HasMakeTextWritingDirectionRightToLeft() bool { - return s_.RespondsToSelector(objc.Sel("makeTextWritingDirectionRightToLeft:")) +func (s_ StandardKeyBindingRespondingObject) HasMoveToEndOfParagraphAndModifySelection() bool { + return s_.RespondsToSelector(objc.Sel("moveToEndOfParagraphAndModifySelection:")) } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsstandardkeybindingresponding/3005230-maketextwritingdirectionrighttol?language=objc -func (s_ StandardKeyBindingRespondingWrapper) MakeTextWritingDirectionRightToLeft(sender objc.IObject) { - objc.Call[objc.Void](s_, objc.Sel("makeTextWritingDirectionRightToLeft:"), sender) +// [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) } -func (s_ StandardKeyBindingRespondingWrapper) HasSelectParagraph() bool { - return s_.RespondsToSelector(objc.Sel("selectParagraph:")) +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/3005282-selectparagraph?language=objc -func (s_ StandardKeyBindingRespondingWrapper) SelectParagraph(sender objc.IObject) { - objc.Call[objc.Void](s_, objc.Sel("selectParagraph:"), 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_ StandardKeyBindingRespondingWrapper) HasMoveToBeginningOfDocumentAndModifySelection() bool { - return s_.RespondsToSelector(objc.Sel("moveToBeginningOfDocumentAndModifySelection:")) +func (s_ StandardKeyBindingRespondingObject) HasMoveWordForwardAndModifySelection() bool { + return s_.RespondsToSelector(objc.Sel("moveWordForwardAndModifySelection:")) } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsstandardkeybindingresponding/3005244-movetobeginningofdocumentandmodi?language=objc -func (s_ StandardKeyBindingRespondingWrapper) MoveToBeginningOfDocumentAndModifySelection(sender objc.IObject) { - objc.Call[objc.Void](s_, objc.Sel("moveToBeginningOfDocumentAndModifySelection:"), 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_ StandardKeyBindingRespondingWrapper) HasScrollLineDown() bool { - return s_.RespondsToSelector(objc.Sel("scrollLineDown:")) +func (s_ StandardKeyBindingRespondingObject) HasMoveToEndOfDocumentAndModifySelection() bool { + return s_.RespondsToSelector(objc.Sel("moveToEndOfDocumentAndModifySelection:")) } -// 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_ StandardKeyBindingRespondingWrapper) ScrollLineDown(sender objc.IObject) { - objc.Call[objc.Void](s_, objc.Sel("scrollLineDown:"), 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_ StandardKeyBindingRespondingWrapper) HasDeleteToBeginningOfLine() bool { - return s_.RespondsToSelector(objc.Sel("deleteToBeginningOfLine:")) +func (s_ StandardKeyBindingRespondingObject) HasScrollPageUp() bool { + return s_.RespondsToSelector(objc.Sel("scrollPageUp:")) } -// Deletes content from the insertion point to the beginning of the current line. [Full Topic] +// Scrolls the content up by a page. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsstandardkeybindingresponding/3005204-deletetobeginningofline?language=objc -func (s_ StandardKeyBindingRespondingWrapper) DeleteToBeginningOfLine(sender objc.IObject) { - objc.Call[objc.Void](s_, objc.Sel("deleteToBeginningOfLine:"), 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_ StandardKeyBindingRespondingWrapper) HasMoveUpAndModifySelection() bool { - return s_.RespondsToSelector(objc.Sel("moveUpAndModifySelection:")) +func (s_ StandardKeyBindingRespondingObject) HasInsertTabIgnoringFieldEditor() bool { + return s_.RespondsToSelector(objc.Sel("insertTabIgnoringFieldEditor:")) } -// Extends the selection to include the content above the current selection. [Full Topic] +// [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsstandardkeybindingresponding/3005260-moveupandmodifyselection?language=objc -func (s_ StandardKeyBindingRespondingWrapper) MoveUpAndModifySelection(sender objc.IObject) { - objc.Call[objc.Void](s_, objc.Sel("moveUpAndModifySelection:"), 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_ StandardKeyBindingRespondingWrapper) HasDeleteWordForward() bool { - return s_.RespondsToSelector(objc.Sel("deleteWordForward:")) +func (s_ StandardKeyBindingRespondingObject) HasInsertNewlineIgnoringFieldEditor() bool { + return s_.RespondsToSelector(objc.Sel("insertNewlineIgnoringFieldEditor:")) } -// [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/3005210-deletewordforward?language=objc -func (s_ StandardKeyBindingRespondingWrapper) DeleteWordForward(sender objc.IObject) { - objc.Call[objc.Void](s_, objc.Sel("deleteWordForward:"), 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_ StandardKeyBindingRespondingWrapper) HasDeleteToMark() bool { - return s_.RespondsToSelector(objc.Sel("deleteToMark:")) +func (s_ StandardKeyBindingRespondingObject) HasSetMark() bool { + return s_.RespondsToSelector(objc.Sel("setMark:")) } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsstandardkeybindingresponding/3005208-deletetomark?language=objc -func (s_ StandardKeyBindingRespondingWrapper) DeleteToMark(sender objc.IObject) { - objc.Call[objc.Void](s_, objc.Sel("deleteToMark:"), 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_ StandardKeyBindingRespondingWrapper) HasMoveWordForward() bool { - return s_.RespondsToSelector(objc.Sel("moveWordForward:")) +func (s_ StandardKeyBindingRespondingObject) HasMoveToBeginningOfParagraphAndModifySelection() bool { + return s_.RespondsToSelector(objc.Sel("moveToBeginningOfParagraphAndModifySelection:")) } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsstandardkeybindingresponding/3005263-movewordforward?language=objc -func (s_ StandardKeyBindingRespondingWrapper) MoveWordForward(sender objc.IObject) { - objc.Call[objc.Void](s_, objc.Sel("moveWordForward:"), 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_ StandardKeyBindingRespondingWrapper) HasInsertNewline() bool { - return s_.RespondsToSelector(objc.Sel("insertNewline:")) +func (s_ StandardKeyBindingRespondingObject) HasMoveToLeftEndOfLine() bool { + return s_.RespondsToSelector(objc.Sel("moveToLeftEndOfLine:")) } -// Inserts a newline character. [Full Topic] +// [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsstandardkeybindingresponding/3005217-insertnewline?language=objc -func (s_ StandardKeyBindingRespondingWrapper) InsertNewline(sender objc.IObject) { - objc.Call[objc.Void](s_, objc.Sel("insertNewline:"), 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_ StandardKeyBindingRespondingWrapper) HasDeleteBackwardByDecomposingPreviousCharacter() bool { - return s_.RespondsToSelector(objc.Sel("deleteBackwardByDecomposingPreviousCharacter:")) +func (s_ StandardKeyBindingRespondingObject) HasMoveToEndOfLineAndModifySelection() bool { + return s_.RespondsToSelector(objc.Sel("moveToEndOfLineAndModifySelection:")) } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsstandardkeybindingresponding/3005202-deletebackwardbydecomposingprevi?language=objc -func (s_ StandardKeyBindingRespondingWrapper) DeleteBackwardByDecomposingPreviousCharacter(sender objc.IObject) { - objc.Call[objc.Void](s_, objc.Sel("deleteBackwardByDecomposingPreviousCharacter:"), 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_ StandardKeyBindingRespondingWrapper) 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_ StandardKeyBindingRespondingWrapper) MoveDownAndModifySelection(sender objc.IObject) { - 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_ StandardKeyBindingRespondingWrapper) HasMoveBackwardAndModifySelection() bool { - return s_.RespondsToSelector(objc.Sel("moveBackwardAndModifySelection:")) +func (s_ StandardKeyBindingRespondingObject) HasMoveWordBackward() bool { + return s_.RespondsToSelector(objc.Sel("moveWordBackward:")) } -// Extends the selection to include the content before the current selection. [Full Topic] +// [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsstandardkeybindingresponding/3005232-movebackwardandmodifyselection?language=objc -func (s_ StandardKeyBindingRespondingWrapper) MoveBackwardAndModifySelection(sender objc.IObject) { - objc.Call[objc.Void](s_, objc.Sel("moveBackwardAndModifySelection:"), 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_ StandardKeyBindingRespondingWrapper) HasMoveWordLeftAndModifySelection() bool { - return s_.RespondsToSelector(objc.Sel("moveWordLeftAndModifySelection:")) +func (s_ StandardKeyBindingRespondingObject) HasScrollToBeginningOfDocument() bool { + return s_.RespondsToSelector(objc.Sel("scrollToBeginningOfDocument:")) } -// [Full Topic] +// Scrolls the content to the beginning of the document. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsstandardkeybindingresponding/3005266-movewordleftandmodifyselection?language=objc -func (s_ StandardKeyBindingRespondingWrapper) MoveWordLeftAndModifySelection(sender objc.IObject) { - objc.Call[objc.Void](s_, objc.Sel("moveWordLeftAndModifySelection:"), 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_ StandardKeyBindingRespondingWrapper) HasMoveUp() bool { - return s_.RespondsToSelector(objc.Sel("moveUp:")) +func (s_ StandardKeyBindingRespondingObject) HasMoveBackward() bool { + return s_.RespondsToSelector(objc.Sel("moveBackward:")) } -// Moves the insertion pointer up in the current content. [Full Topic] +// Moves the insertion pointer backward in the current content. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsstandardkeybindingresponding/3005259-moveup?language=objc -func (s_ StandardKeyBindingRespondingWrapper) MoveUp(sender objc.IObject) { - objc.Call[objc.Void](s_, objc.Sel("moveUp:"), 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_ StandardKeyBindingRespondingWrapper) HasMoveToBeginningOfLine() bool { - return s_.RespondsToSelector(objc.Sel("moveToBeginningOfLine:")) +func (s_ StandardKeyBindingRespondingObject) HasCenterSelectionInVisibleArea() bool { + return s_.RespondsToSelector(objc.Sel("centerSelectionInVisibleArea:")) } -// [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/3005245-movetobeginningofline?language=objc -func (s_ StandardKeyBindingRespondingWrapper) MoveToBeginningOfLine(sender objc.IObject) { - objc.Call[objc.Void](s_, objc.Sel("moveToBeginningOfLine:"), 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_ StandardKeyBindingRespondingWrapper) HasPageDown() bool { - return s_.RespondsToSelector(objc.Sel("pageDown:")) +func (s_ StandardKeyBindingRespondingObject) HasMoveDown() bool { + return s_.RespondsToSelector(objc.Sel("moveDown:")) } -// Moves the visible content region down by a page. [Full Topic] +// Moves the insertion pointer down in the current content. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsstandardkeybindingresponding/3005269-pagedown?language=objc -func (s_ StandardKeyBindingRespondingWrapper) PageDown(sender objc.IObject) { - objc.Call[objc.Void](s_, objc.Sel("pageDown:"), 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_ StandardKeyBindingRespondingWrapper) HasInsertTabIgnoringFieldEditor() bool { - return s_.RespondsToSelector(objc.Sel("insertTabIgnoringFieldEditor:")) +func (s_ StandardKeyBindingRespondingObject) HasMakeBaseWritingDirectionNatural() bool { + return s_.RespondsToSelector(objc.Sel("makeBaseWritingDirectionNatural:")) } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsstandardkeybindingresponding/3005222-inserttabignoringfieldeditor?language=objc -func (s_ StandardKeyBindingRespondingWrapper) InsertTabIgnoringFieldEditor(sender objc.IObject) { - objc.Call[objc.Void](s_, objc.Sel("insertTabIgnoringFieldEditor:"), sender) +// [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_ StandardKeyBindingRespondingWrapper) HasSelectAll() bool { - return s_.RespondsToSelector(objc.Sel("selectAll:")) +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/3005280-selectall?language=objc -func (s_ StandardKeyBindingRespondingWrapper) SelectAll(sender objc.IObject) { - objc.Call[objc.Void](s_, objc.Sel("selectAll:"), 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_ StandardKeyBindingRespondingWrapper) HasTranspose() bool { - return s_.RespondsToSelector(objc.Sel("transpose:")) +func (s_ StandardKeyBindingRespondingObject) HasMoveUp() bool { + return s_.RespondsToSelector(objc.Sel("moveUp:")) } -// Transposes the content around the current selection. [Full Topic] +// Moves the insertion pointer up in the current content. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsstandardkeybindingresponding/3005287-transpose?language=objc -func (s_ StandardKeyBindingRespondingWrapper) Transpose(sender objc.IObject) { - objc.Call[objc.Void](s_, objc.Sel("transpose:"), sender) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsstandardkeybindingresponding/3005259-moveup?language=objc +func (s_ StandardKeyBindingRespondingObject) MoveUp(sender objc.Object) { + objc.Call[objc.Void](s_, objc.Sel("moveUp:"), sender) } -func (s_ StandardKeyBindingRespondingWrapper) HasDeleteToEndOfParagraph() bool { - return s_.RespondsToSelector(objc.Sel("deleteToEndOfParagraph:")) +func (s_ StandardKeyBindingRespondingObject) HasSelectToMark() bool { + return s_.RespondsToSelector(objc.Sel("selectToMark:")) } -// 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_ StandardKeyBindingRespondingWrapper) DeleteToEndOfParagraph(sender objc.IObject) { - objc.Call[objc.Void](s_, objc.Sel("deleteToEndOfParagraph:"), 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_ StandardKeyBindingRespondingWrapper) HasMoveBackward() bool { - return s_.RespondsToSelector(objc.Sel("moveBackward:")) +func (s_ StandardKeyBindingRespondingObject) HasDeleteToEndOfLine() bool { + return s_.RespondsToSelector(objc.Sel("deleteToEndOfLine:")) } -// Moves the insertion pointer backward in the current content. [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/3005231-movebackward?language=objc -func (s_ StandardKeyBindingRespondingWrapper) MoveBackward(sender objc.IObject) { - objc.Call[objc.Void](s_, objc.Sel("moveBackward:"), 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_ StandardKeyBindingRespondingWrapper) HasMakeBaseWritingDirectionRightToLeft() bool { +func (s_ StandardKeyBindingRespondingObject) HasMakeBaseWritingDirectionRightToLeft() bool { return s_.RespondsToSelector(objc.Sel("makeBaseWritingDirectionRightToLeft:")) } // [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/appkit/nsstandardkeybindingresponding/3005227-makebasewritingdirectionrighttol?language=objc -func (s_ StandardKeyBindingRespondingWrapper) MakeBaseWritingDirectionRightToLeft(sender objc.IObject) { +func (s_ StandardKeyBindingRespondingObject) MakeBaseWritingDirectionRightToLeft(sender objc.Object) { objc.Call[objc.Void](s_, objc.Sel("makeBaseWritingDirectionRightToLeft:"), sender) } -func (s_ StandardKeyBindingRespondingWrapper) HasScrollToBeginningOfDocument() bool { - return s_.RespondsToSelector(objc.Sel("scrollToBeginningOfDocument:")) +func (s_ StandardKeyBindingRespondingObject) HasMoveToEndOfParagraph() bool { + return s_.RespondsToSelector(objc.Sel("moveToEndOfParagraph:")) } -// 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_ StandardKeyBindingRespondingWrapper) ScrollToBeginningOfDocument(sender objc.IObject) { - objc.Call[objc.Void](s_, objc.Sel("scrollToBeginningOfDocument:"), 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_ StandardKeyBindingRespondingWrapper) HasMoveWordLeft() bool { - return s_.RespondsToSelector(objc.Sel("moveWordLeft:")) +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/3005265-movewordleft?language=objc -func (s_ StandardKeyBindingRespondingWrapper) MoveWordLeft(sender objc.IObject) { - objc.Call[objc.Void](s_, objc.Sel("moveWordLeft:"), 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_ StandardKeyBindingRespondingWrapper) 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_ StandardKeyBindingRespondingWrapper) SelectToMark(sender objc.IObject) { - 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_ StandardKeyBindingRespondingWrapper) HasDeleteToBeginningOfParagraph() bool { - return s_.RespondsToSelector(objc.Sel("deleteToBeginningOfParagraph:")) +func (s_ StandardKeyBindingRespondingObject) HasMoveLeftAndModifySelection() bool { + return s_.RespondsToSelector(objc.Sel("moveLeftAndModifySelection:")) } -// Deletes content from the insertion point to the beginning of the current paragraph. [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/3005205-deletetobeginningofparagraph?language=objc -func (s_ StandardKeyBindingRespondingWrapper) DeleteToBeginningOfParagraph(sender objc.IObject) { - objc.Call[objc.Void](s_, objc.Sel("deleteToBeginningOfParagraph:"), 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_ StandardKeyBindingRespondingWrapper) HasMoveLeft() bool { - return s_.RespondsToSelector(objc.Sel("moveLeft:")) +func (s_ StandardKeyBindingRespondingObject) HasComplete() bool { + return s_.RespondsToSelector(objc.Sel("complete:")) } -// 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_ StandardKeyBindingRespondingWrapper) MoveLeft(sender objc.IObject) { - objc.Call[objc.Void](s_, objc.Sel("moveLeft:"), 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_ StandardKeyBindingRespondingWrapper) HasSelectLine() bool { - return s_.RespondsToSelector(objc.Sel("selectLine:")) +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/3005281-selectline?language=objc -func (s_ StandardKeyBindingRespondingWrapper) SelectLine(sender objc.IObject) { - objc.Call[objc.Void](s_, objc.Sel("selectLine:"), 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_ StandardKeyBindingRespondingWrapper) HasMakeTextWritingDirectionNatural() bool { - return s_.RespondsToSelector(objc.Sel("makeTextWritingDirectionNatural:")) +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/3005229-maketextwritingdirectionnatural?language=objc -func (s_ StandardKeyBindingRespondingWrapper) MakeTextWritingDirectionNatural(sender objc.IObject) { - objc.Call[objc.Void](s_, objc.Sel("makeTextWritingDirectionNatural:"), 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_ StandardKeyBindingRespondingWrapper) HasMoveToBeginningOfParagraph() bool { - return s_.RespondsToSelector(objc.Sel("moveToBeginningOfParagraph:")) +func (s_ StandardKeyBindingRespondingObject) HasMoveWordLeftAndModifySelection() bool { + return s_.RespondsToSelector(objc.Sel("moveWordLeftAndModifySelection:")) } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsstandardkeybindingresponding/3005247-movetobeginningofparagraph?language=objc -func (s_ StandardKeyBindingRespondingWrapper) MoveToBeginningOfParagraph(sender objc.IObject) { - objc.Call[objc.Void](s_, objc.Sel("moveToBeginningOfParagraph:"), 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_ StandardKeyBindingRespondingWrapper) HasMoveToBeginningOfParagraphAndModifySelection() bool { - return s_.RespondsToSelector(objc.Sel("moveToBeginningOfParagraphAndModifySelection:")) +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/3005248-movetobeginningofparagraphandmod?language=objc -func (s_ StandardKeyBindingRespondingWrapper) MoveToBeginningOfParagraphAndModifySelection(sender objc.IObject) { - objc.Call[objc.Void](s_, objc.Sel("moveToBeginningOfParagraphAndModifySelection:"), 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_ StandardKeyBindingRespondingWrapper) HasTransposeWords() bool { - return s_.RespondsToSelector(objc.Sel("transposeWords:")) +func (s_ StandardKeyBindingRespondingObject) HasUppercaseWord() bool { + return s_.RespondsToSelector(objc.Sel("uppercaseWord:")) } -// 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_ StandardKeyBindingRespondingWrapper) TransposeWords(sender objc.IObject) { - objc.Call[objc.Void](s_, objc.Sel("transposeWords:"), sender) +// [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_ StandardKeyBindingRespondingWrapper) HasMakeBaseWritingDirectionLeftToRight() bool { +func (s_ StandardKeyBindingRespondingObject) HasMakeBaseWritingDirectionLeftToRight() bool { return s_.RespondsToSelector(objc.Sel("makeBaseWritingDirectionLeftToRight:")) } // [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/appkit/nsstandardkeybindingresponding/3005225-makebasewritingdirectionlefttori?language=objc -func (s_ StandardKeyBindingRespondingWrapper) MakeBaseWritingDirectionLeftToRight(sender objc.IObject) { +func (s_ StandardKeyBindingRespondingObject) MakeBaseWritingDirectionLeftToRight(sender objc.Object) { objc.Call[objc.Void](s_, objc.Sel("makeBaseWritingDirectionLeftToRight:"), sender) } -func (s_ StandardKeyBindingRespondingWrapper) HasComplete() bool { - return s_.RespondsToSelector(objc.Sel("complete:")) +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/3005200-complete?language=objc -func (s_ StandardKeyBindingRespondingWrapper) Complete(sender objc.IObject) { - objc.Call[objc.Void](s_, objc.Sel("complete:"), 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_ StandardKeyBindingRespondingWrapper) HasMoveParagraphBackwardAndModifySelection() bool { - return s_.RespondsToSelector(objc.Sel("moveParagraphBackwardAndModifySelection:")) +func (s_ StandardKeyBindingRespondingObject) HasMoveToBeginningOfDocument() bool { + return s_.RespondsToSelector(objc.Sel("moveToBeginningOfDocument:")) } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsstandardkeybindingresponding/3005239-moveparagraphbackwardandmodifyse?language=objc -func (s_ StandardKeyBindingRespondingWrapper) MoveParagraphBackwardAndModifySelection(sender objc.IObject) { - objc.Call[objc.Void](s_, objc.Sel("moveParagraphBackwardAndModifySelection:"), 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_ StandardKeyBindingRespondingWrapper) HasPageUp() bool { - return s_.RespondsToSelector(objc.Sel("pageUp:")) +func (s_ StandardKeyBindingRespondingObject) HasLowercaseWord() bool { + return s_.RespondsToSelector(objc.Sel("lowercaseWord:")) } -// Moves the visible content region up by a page. [Full Topic] +// [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsstandardkeybindingresponding/3005271-pageup?language=objc -func (s_ StandardKeyBindingRespondingWrapper) PageUp(sender objc.IObject) { - objc.Call[objc.Void](s_, objc.Sel("pageUp:"), 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_ StandardKeyBindingRespondingWrapper) HasMoveWordRightAndModifySelection() bool { - return s_.RespondsToSelector(objc.Sel("moveWordRightAndModifySelection:")) +func (s_ StandardKeyBindingRespondingObject) HasSelectParagraph() bool { + return s_.RespondsToSelector(objc.Sel("selectParagraph:")) } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsstandardkeybindingresponding/3005268-movewordrightandmodifyselection?language=objc -func (s_ StandardKeyBindingRespondingWrapper) MoveWordRightAndModifySelection(sender objc.IObject) { - objc.Call[objc.Void](s_, objc.Sel("moveWordRightAndModifySelection:"), 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_ StandardKeyBindingRespondingWrapper) HasInsertDoubleQuoteIgnoringSubstitution() bool { - return s_.RespondsToSelector(objc.Sel("insertDoubleQuoteIgnoringSubstitution:")) +func (s_ StandardKeyBindingRespondingObject) HasInsertParagraphSeparator() bool { + return s_.RespondsToSelector(objc.Sel("insertParagraphSeparator:")) } -// Inserts a double quotation mark without substituting a curly quotation mark. [Full Topic] +// Inserts a paragraph separator. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsstandardkeybindingresponding/3005215-insertdoublequoteignoringsubstit?language=objc -func (s_ StandardKeyBindingRespondingWrapper) InsertDoubleQuoteIgnoringSubstitution(sender objc.IObject) { - objc.Call[objc.Void](s_, objc.Sel("insertDoubleQuoteIgnoringSubstitution:"), 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_ StandardKeyBindingRespondingWrapper) HasDeleteWordBackward() bool { - return s_.RespondsToSelector(objc.Sel("deleteWordBackward:")) +func (s_ StandardKeyBindingRespondingObject) HasDeleteToEndOfParagraph() bool { + return s_.RespondsToSelector(objc.Sel("deleteToEndOfParagraph:")) } -// Deletes the word preceding the current insertion point. [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/3005209-deletewordbackward?language=objc -func (s_ StandardKeyBindingRespondingWrapper) DeleteWordBackward(sender objc.IObject) { - objc.Call[objc.Void](s_, objc.Sel("deleteWordBackward:"), 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_ StandardKeyBindingRespondingWrapper) HasUppercaseWord() bool { - return s_.RespondsToSelector(objc.Sel("uppercaseWord:")) +func (s_ StandardKeyBindingRespondingObject) HasQuickLookPreviewItems() bool { + return s_.RespondsToSelector(objc.Sel("quickLookPreviewItems:")) } -// [Full Topic] +// Invokes QuickLook to preview the current selection. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsstandardkeybindingresponding/3005289-uppercaseword?language=objc -func (s_ StandardKeyBindingRespondingWrapper) UppercaseWord(sender objc.IObject) { - objc.Call[objc.Void](s_, objc.Sel("uppercaseWord:"), 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_ StandardKeyBindingRespondingWrapper) HasCenterSelectionInVisibleArea() bool { - return s_.RespondsToSelector(objc.Sel("centerSelectionInVisibleArea:")) +func (s_ StandardKeyBindingRespondingObject) HasInsertDoubleQuoteIgnoringSubstitution() bool { + return s_.RespondsToSelector(objc.Sel("insertDoubleQuoteIgnoringSubstitution:")) } -// Moves the visible content region so the current selection is visually centered. [Full Topic] +// Inserts a double quotation mark without substituting a curly quotation mark. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsstandardkeybindingresponding/3005198-centerselectioninvisiblearea?language=objc -func (s_ StandardKeyBindingRespondingWrapper) CenterSelectionInVisibleArea(sender objc.IObject) { - objc.Call[objc.Void](s_, objc.Sel("centerSelectionInVisibleArea:"), 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_ StandardKeyBindingRespondingWrapper) HasYank() bool { - return s_.RespondsToSelector(objc.Sel("yank:")) +func (s_ StandardKeyBindingRespondingObject) HasMoveWordRightAndModifySelection() bool { + return s_.RespondsToSelector(objc.Sel("moveWordRightAndModifySelection:")) } -// Deletes the current selection, placing it in a temporary buffer, such as the Clipboard. [Full Topic] +// [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsstandardkeybindingresponding/3005290-yank?language=objc -func (s_ StandardKeyBindingRespondingWrapper) Yank(sender objc.IObject) { - objc.Call[objc.Void](s_, objc.Sel("yank:"), sender) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsstandardkeybindingresponding/3005268-movewordrightandmodifyselection?language=objc +func (s_ StandardKeyBindingRespondingObject) MoveWordRightAndModifySelection(sender objc.Object) { + objc.Call[objc.Void](s_, objc.Sel("moveWordRightAndModifySelection:"), sender) +} + +func (s_ StandardKeyBindingRespondingObject) HasSelectLine() bool { + return s_.RespondsToSelector(objc.Sel("selectLine:")) +} + +// [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_ StandardKeyBindingRespondingWrapper) HasMoveToRightEndOfLineAndModifySelection() bool { - return s_.RespondsToSelector(objc.Sel("moveToRightEndOfLineAndModifySelection:")) +func (s_ StandardKeyBindingRespondingObject) HasDeleteToMark() bool { + return s_.RespondsToSelector(objc.Sel("deleteToMark:")) } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsstandardkeybindingresponding/3005258-movetorightendoflineandmodifysel?language=objc -func (s_ StandardKeyBindingRespondingWrapper) MoveToRightEndOfLineAndModifySelection(sender objc.IObject) { - objc.Call[objc.Void](s_, objc.Sel("moveToRightEndOfLineAndModifySelection:"), 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_ StandardKeyBindingRespondingWrapper) HasCancelOperation() bool { - return s_.RespondsToSelector(objc.Sel("cancelOperation:")) +func (s_ StandardKeyBindingRespondingObject) HasDeleteWordBackward() bool { + return s_.RespondsToSelector(objc.Sel("deleteWordBackward:")) } -// Cancels the current operation. [Full Topic] +// Deletes the word preceding the current insertion point. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsstandardkeybindingresponding/3005196-canceloperation?language=objc -func (s_ StandardKeyBindingRespondingWrapper) CancelOperation(sender objc.IObject) { - objc.Call[objc.Void](s_, objc.Sel("cancelOperation:"), sender) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsstandardkeybindingresponding/3005209-deletewordbackward?language=objc +func (s_ StandardKeyBindingRespondingObject) DeleteWordBackward(sender objc.Object) { + objc.Call[objc.Void](s_, objc.Sel("deleteWordBackward:"), sender) } -func (s_ StandardKeyBindingRespondingWrapper) HasMoveRightAndModifySelection() bool { - return s_.RespondsToSelector(objc.Sel("moveRightAndModifySelection:")) +func (s_ StandardKeyBindingRespondingObject) HasInsertText() bool { + return s_.RespondsToSelector(objc.Sel("insertText:")) } -// Extends the selection to include the content to the right of the current selection. [Full Topic] +// Inserts the text you specify. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsstandardkeybindingresponding/3005242-moverightandmodifyselection?language=objc -func (s_ StandardKeyBindingRespondingWrapper) MoveRightAndModifySelection(sender objc.IObject) { - objc.Call[objc.Void](s_, objc.Sel("moveRightAndModifySelection:"), 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_ StandardKeyBindingRespondingWrapper) HasInsertNewlineIgnoringFieldEditor() bool { - return s_.RespondsToSelector(objc.Sel("insertNewlineIgnoringFieldEditor:")) +func (s_ StandardKeyBindingRespondingObject) HasPageUpAndModifySelection() bool { + return s_.RespondsToSelector(objc.Sel("pageUpAndModifySelection:")) } -// Inserts a newline character without invoking the field editor’s normal handling to end editing. [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/3005218-insertnewlineignoringfieldeditor?language=objc -func (s_ StandardKeyBindingRespondingWrapper) InsertNewlineIgnoringFieldEditor(sender objc.IObject) { - objc.Call[objc.Void](s_, objc.Sel("insertNewlineIgnoringFieldEditor:"), 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_ StandardKeyBindingRespondingWrapper) HasMoveWordRight() bool { - return s_.RespondsToSelector(objc.Sel("moveWordRight:")) +func (s_ StandardKeyBindingRespondingObject) HasDeleteBackwardByDecomposingPreviousCharacter() bool { + return s_.RespondsToSelector(objc.Sel("deleteBackwardByDecomposingPreviousCharacter:")) } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsstandardkeybindingresponding/3005267-movewordright?language=objc -func (s_ StandardKeyBindingRespondingWrapper) MoveWordRight(sender objc.IObject) { - objc.Call[objc.Void](s_, objc.Sel("moveWordRight:"), 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_ StandardKeyBindingRespondingWrapper) HasMoveForward() bool { - return s_.RespondsToSelector(objc.Sel("moveForward:")) +func (s_ StandardKeyBindingRespondingObject) HasDoCommandBySelector() bool { + return s_.RespondsToSelector(objc.Sel("doCommandBySelector:")) } -// Moves the insertion pointer forward in the current content. [Full Topic] +// Performs the given selector if possible. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsstandardkeybindingresponding/3005235-moveforward?language=objc -func (s_ StandardKeyBindingRespondingWrapper) MoveForward(sender objc.IObject) { - objc.Call[objc.Void](s_, objc.Sel("moveForward:"), 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_ StandardKeyBindingRespondingWrapper) HasChangeCaseOfLetter() bool { - return s_.RespondsToSelector(objc.Sel("changeCaseOfLetter:")) +func (s_ StandardKeyBindingRespondingObject) HasMakeTextWritingDirectionNatural() bool { + return s_.RespondsToSelector(objc.Sel("makeTextWritingDirectionNatural:")) } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsstandardkeybindingresponding/3005199-changecaseofletter?language=objc -func (s_ StandardKeyBindingRespondingWrapper) ChangeCaseOfLetter(sender objc.IObject) { - objc.Call[objc.Void](s_, objc.Sel("changeCaseOfLetter:"), 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_ StandardKeyBindingRespondingWrapper) HasScrollPageUp() bool { - return s_.RespondsToSelector(objc.Sel("scrollPageUp:")) +func (s_ StandardKeyBindingRespondingObject) HasDeleteBackward() bool { + return s_.RespondsToSelector(objc.Sel("deleteBackward:")) } -// Scrolls the content up by a page. [Full Topic] +// Deletes content moving backward from the current insertion point. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsstandardkeybindingresponding/3005277-scrollpageup?language=objc -func (s_ StandardKeyBindingRespondingWrapper) ScrollPageUp(sender objc.IObject) { - objc.Call[objc.Void](s_, objc.Sel("scrollPageUp:"), 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_ StandardKeyBindingRespondingWrapper) HasInsertBacktab() bool { - return s_.RespondsToSelector(objc.Sel("insertBacktab:")) +func (s_ StandardKeyBindingRespondingObject) HasMoveToEndOfLine() bool { + return s_.RespondsToSelector(objc.Sel("moveToEndOfLine:")) } -// Inserts a backtab character. [Full Topic] +// [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsstandardkeybindingresponding/3005213-insertbacktab?language=objc -func (s_ StandardKeyBindingRespondingWrapper) InsertBacktab(sender objc.IObject) { - objc.Call[objc.Void](s_, objc.Sel("insertBacktab:"), 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_ StandardKeyBindingRespondingWrapper) HasInsertTab() bool { - return s_.RespondsToSelector(objc.Sel("insertTab:")) +func (s_ StandardKeyBindingRespondingObject) HasMoveToBeginningOfLineAndModifySelection() bool { + return s_.RespondsToSelector(objc.Sel("moveToBeginningOfLineAndModifySelection:")) } -// Inserts a tab character. [Full Topic] +// [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsstandardkeybindingresponding/3005221-inserttab?language=objc -func (s_ StandardKeyBindingRespondingWrapper) InsertTab(sender objc.IObject) { - objc.Call[objc.Void](s_, objc.Sel("insertTab:"), 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_ StandardKeyBindingRespondingWrapper) HasMoveDown() bool { - return s_.RespondsToSelector(objc.Sel("moveDown:")) +func (s_ StandardKeyBindingRespondingObject) HasMakeTextWritingDirectionRightToLeft() bool { + return s_.RespondsToSelector(objc.Sel("makeTextWritingDirectionRightToLeft:")) } -// Moves the insertion pointer down in the current content. [Full Topic] +// [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsstandardkeybindingresponding/3005233-movedown?language=objc -func (s_ StandardKeyBindingRespondingWrapper) MoveDown(sender objc.IObject) { - objc.Call[objc.Void](s_, objc.Sel("moveDown:"), 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_ StandardKeyBindingRespondingWrapper) HasPageDownAndModifySelection() bool { - return s_.RespondsToSelector(objc.Sel("pageDownAndModifySelection:")) +func (s_ StandardKeyBindingRespondingObject) HasSelectWord() bool { + return s_.RespondsToSelector(objc.Sel("selectWord:")) } -// Moves the visible content region down by a page, and extends the current selection. [Full Topic] +// [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsstandardkeybindingresponding/3005270-pagedownandmodifyselection?language=objc -func (s_ StandardKeyBindingRespondingWrapper) PageDownAndModifySelection(sender objc.IObject) { - objc.Call[objc.Void](s_, objc.Sel("pageDownAndModifySelection:"), 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_ StandardKeyBindingRespondingWrapper) HasMoveToLeftEndOfLineAndModifySelection() bool { - return s_.RespondsToSelector(objc.Sel("moveToLeftEndOfLineAndModifySelection:")) +func (s_ StandardKeyBindingRespondingObject) HasSelectAll() bool { + return s_.RespondsToSelector(objc.Sel("selectAll:")) } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsstandardkeybindingresponding/3005256-movetoleftendoflineandmodifysele?language=objc -func (s_ StandardKeyBindingRespondingWrapper) MoveToLeftEndOfLineAndModifySelection(sender objc.IObject) { - objc.Call[objc.Void](s_, objc.Sel("moveToLeftEndOfLineAndModifySelection:"), 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_ StandardKeyBindingRespondingWrapper) HasScrollLineUp() bool { - return s_.RespondsToSelector(objc.Sel("scrollLineUp:")) +func (s_ StandardKeyBindingRespondingObject) HasDeleteForward() bool { + return s_.RespondsToSelector(objc.Sel("deleteForward:")) } -// Scrolls the content up by a line. [Full Topic] +// [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsstandardkeybindingresponding/3005275-scrolllineup?language=objc -func (s_ StandardKeyBindingRespondingWrapper) ScrollLineUp(sender objc.IObject) { - objc.Call[objc.Void](s_, objc.Sel("scrollLineUp:"), 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_ StandardKeyBindingRespondingWrapper) HasDoCommandBySelector() bool { - return s_.RespondsToSelector(objc.Sel("doCommandBySelector:")) +func (s_ StandardKeyBindingRespondingObject) HasMoveParagraphBackwardAndModifySelection() bool { + return s_.RespondsToSelector(objc.Sel("moveParagraphBackwardAndModifySelection:")) } -// Performs the given selector if possible. [Full Topic] +// [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsstandardkeybindingresponding/3005211-docommandbyselector?language=objc -func (s_ StandardKeyBindingRespondingWrapper) DoCommandBySelector(selector objc.Selector) { - objc.Call[objc.Void](s_, objc.Sel("doCommandBySelector:"), selector) +// [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_ StandardKeyBindingRespondingWrapper) HasSwapWithMark() bool { - return s_.RespondsToSelector(objc.Sel("swapWithMark:")) +func (s_ StandardKeyBindingRespondingObject) HasMoveParagraphForwardAndModifySelection() bool { + return s_.RespondsToSelector(objc.Sel("moveParagraphForwardAndModifySelection:")) } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsstandardkeybindingresponding/3005286-swapwithmark?language=objc -func (s_ StandardKeyBindingRespondingWrapper) SwapWithMark(sender objc.IObject) { - objc.Call[objc.Void](s_, objc.Sel("swapWithMark:"), sender) +// [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_ StandardKeyBindingRespondingWrapper) HasMoveToLeftEndOfLine() bool { - return s_.RespondsToSelector(objc.Sel("moveToLeftEndOfLine:")) +func (s_ StandardKeyBindingRespondingObject) HasMoveWordForward() bool { + return s_.RespondsToSelector(objc.Sel("moveWordForward:")) } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsstandardkeybindingresponding/3005255-movetoleftendofline?language=objc -func (s_ StandardKeyBindingRespondingWrapper) MoveToLeftEndOfLine(sender objc.IObject) { - objc.Call[objc.Void](s_, objc.Sel("moveToLeftEndOfLine:"), 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_ StandardKeyBindingRespondingWrapper) HasDeleteBackward() bool { - return s_.RespondsToSelector(objc.Sel("deleteBackward:")) +func (s_ StandardKeyBindingRespondingObject) HasMoveWordRight() bool { + return s_.RespondsToSelector(objc.Sel("moveWordRight:")) } -// Deletes content moving backward from the current insertion point. [Full Topic] +// [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsstandardkeybindingresponding/3005201-deletebackward?language=objc -func (s_ StandardKeyBindingRespondingWrapper) DeleteBackward(sender objc.IObject) { - objc.Call[objc.Void](s_, objc.Sel("deleteBackward:"), 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_ StandardKeyBindingRespondingWrapper) HasMakeTextWritingDirectionLeftToRight() bool { - return s_.RespondsToSelector(objc.Sel("makeTextWritingDirectionLeftToRight:")) +func (s_ StandardKeyBindingRespondingObject) HasPageUp() bool { + return s_.RespondsToSelector(objc.Sel("pageUp:")) } -// [Full Topic] +// Moves the visible content region up by a page. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsstandardkeybindingresponding/3005228-maketextwritingdirectionlefttori?language=objc -func (s_ StandardKeyBindingRespondingWrapper) MakeTextWritingDirectionLeftToRight(sender objc.IObject) { - objc.Call[objc.Void](s_, objc.Sel("makeTextWritingDirectionLeftToRight:"), 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_ StandardKeyBindingRespondingWrapper) HasMoveWordBackwardAndModifySelection() bool { - return s_.RespondsToSelector(objc.Sel("moveWordBackwardAndModifySelection:")) +func (s_ StandardKeyBindingRespondingObject) HasSwapWithMark() bool { + return s_.RespondsToSelector(objc.Sel("swapWithMark:")) } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsstandardkeybindingresponding/3005262-movewordbackwardandmodifyselecti?language=objc -func (s_ StandardKeyBindingRespondingWrapper) MoveWordBackwardAndModifySelection(sender objc.IObject) { - objc.Call[objc.Void](s_, objc.Sel("moveWordBackwardAndModifySelection:"), sender) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsstandardkeybindingresponding/3005286-swapwithmark?language=objc +func (s_ StandardKeyBindingRespondingObject) SwapWithMark(sender objc.Object) { + objc.Call[objc.Void](s_, objc.Sel("swapWithMark:"), sender) } -func (s_ StandardKeyBindingRespondingWrapper) HasScrollPageDown() bool { - return s_.RespondsToSelector(objc.Sel("scrollPageDown:")) +func (s_ StandardKeyBindingRespondingObject) HasDeleteToBeginningOfParagraph() bool { + return s_.RespondsToSelector(objc.Sel("deleteToBeginningOfParagraph:")) } -// Scrolls the content down by a page. [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/3005276-scrollpagedown?language=objc -func (s_ StandardKeyBindingRespondingWrapper) ScrollPageDown(sender objc.IObject) { - objc.Call[objc.Void](s_, objc.Sel("scrollPageDown:"), 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_ StandardKeyBindingRespondingWrapper) HasSetMark() bool { - return s_.RespondsToSelector(objc.Sel("setMark:")) +func (s_ StandardKeyBindingRespondingObject) HasIndent() bool { + return s_.RespondsToSelector(objc.Sel("indent:")) } -// [Full Topic] +// Indents the content at the current selection. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsstandardkeybindingresponding/3005285-setmark?language=objc -func (s_ StandardKeyBindingRespondingWrapper) SetMark(sender objc.IObject) { - objc.Call[objc.Void](s_, objc.Sel("setMark:"), 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_ StandardKeyBindingRespondingWrapper) HasMoveWordForwardAndModifySelection() bool { - return s_.RespondsToSelector(objc.Sel("moveWordForwardAndModifySelection:")) +func (s_ StandardKeyBindingRespondingObject) HasMoveDownAndModifySelection() bool { + return s_.RespondsToSelector(objc.Sel("moveDownAndModifySelection:")) } -// [Full Topic] +// Extends the selection to include the content below the current selection. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsstandardkeybindingresponding/3005264-movewordforwardandmodifyselectio?language=objc -func (s_ StandardKeyBindingRespondingWrapper) MoveWordForwardAndModifySelection(sender objc.IObject) { - objc.Call[objc.Void](s_, objc.Sel("moveWordForwardAndModifySelection:"), 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_ StandardKeyBindingRespondingWrapper) HasPageUpAndModifySelection() bool { - return s_.RespondsToSelector(objc.Sel("pageUpAndModifySelection:")) +func (s_ StandardKeyBindingRespondingObject) HasScrollLineDown() bool { + return s_.RespondsToSelector(objc.Sel("scrollLineDown:")) } -// Moves the visible content region up by a page, and extends the current selection. [Full Topic] +// Scrolls the content down by a line. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsstandardkeybindingresponding/3005272-pageupandmodifyselection?language=objc -func (s_ StandardKeyBindingRespondingWrapper) PageUpAndModifySelection(sender objc.IObject) { - objc.Call[objc.Void](s_, objc.Sel("pageUpAndModifySelection:"), 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_ StandardKeyBindingRespondingWrapper) HasMoveToBeginningOfDocument() bool { - return s_.RespondsToSelector(objc.Sel("moveToBeginningOfDocument:")) +func (s_ StandardKeyBindingRespondingObject) HasTranspose() bool { + return s_.RespondsToSelector(objc.Sel("transpose:")) } -// [Full Topic] +// Transposes the content around the current selection. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsstandardkeybindingresponding/3005243-movetobeginningofdocument?language=objc -func (s_ StandardKeyBindingRespondingWrapper) MoveToBeginningOfDocument(sender objc.IObject) { - objc.Call[objc.Void](s_, objc.Sel("moveToBeginningOfDocument:"), 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_ StandardKeyBindingRespondingWrapper) HasMoveToBeginningOfLineAndModifySelection() bool { - return s_.RespondsToSelector(objc.Sel("moveToBeginningOfLineAndModifySelection:")) +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/3005246-movetobeginningoflineandmodifyse?language=objc -func (s_ StandardKeyBindingRespondingWrapper) MoveToBeginningOfLineAndModifySelection(sender objc.IObject) { - objc.Call[objc.Void](s_, objc.Sel("moveToBeginningOfLineAndModifySelection:"), 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_ StandardKeyBindingRespondingWrapper) HasLowercaseWord() bool { - return s_.RespondsToSelector(objc.Sel("lowercaseWord:")) +func (s_ StandardKeyBindingRespondingObject) HasDeleteWordForward() bool { + return s_.RespondsToSelector(objc.Sel("deleteWordForward:")) } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsstandardkeybindingresponding/3005224-lowercaseword?language=objc -func (s_ StandardKeyBindingRespondingWrapper) LowercaseWord(sender objc.IObject) { - objc.Call[objc.Void](s_, objc.Sel("lowercaseWord:"), 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_ StandardKeyBindingRespondingWrapper) HasMoveToEndOfDocumentAndModifySelection() bool { - return s_.RespondsToSelector(objc.Sel("moveToEndOfDocumentAndModifySelection:")) +func (s_ StandardKeyBindingRespondingObject) HasPageDown() bool { + return s_.RespondsToSelector(objc.Sel("pageDown:")) } -// [Full Topic] +// Moves the visible content region down by a page. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsstandardkeybindingresponding/3005250-movetoendofdocumentandmodifysele?language=objc -func (s_ StandardKeyBindingRespondingWrapper) MoveToEndOfDocumentAndModifySelection(sender objc.IObject) { - objc.Call[objc.Void](s_, objc.Sel("moveToEndOfDocumentAndModifySelection:"), 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_ StandardKeyBindingRespondingWrapper) HasMoveToEndOfLineAndModifySelection() bool { - return s_.RespondsToSelector(objc.Sel("moveToEndOfLineAndModifySelection:")) +func (s_ StandardKeyBindingRespondingObject) HasMoveToRightEndOfLineAndModifySelection() bool { + return s_.RespondsToSelector(objc.Sel("moveToRightEndOfLineAndModifySelection:")) } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsstandardkeybindingresponding/3005252-movetoendoflineandmodifyselectio?language=objc -func (s_ StandardKeyBindingRespondingWrapper) MoveToEndOfLineAndModifySelection(sender objc.IObject) { - objc.Call[objc.Void](s_, objc.Sel("moveToEndOfLineAndModifySelection:"), 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_ StandardKeyBindingRespondingWrapper) HasIndent() bool { - return s_.RespondsToSelector(objc.Sel("indent:")) +func (s_ StandardKeyBindingRespondingObject) HasMoveForward() bool { + return s_.RespondsToSelector(objc.Sel("moveForward:")) } -// Indents the content at the current selection. [Full Topic] +// Moves the insertion pointer forward in the current content. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsstandardkeybindingresponding/3005212-indent?language=objc -func (s_ StandardKeyBindingRespondingWrapper) Indent(sender objc.IObject) { - objc.Call[objc.Void](s_, objc.Sel("indent:"), 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_ StandardKeyBindingRespondingWrapper) HasMakeBaseWritingDirectionNatural() bool { - return s_.RespondsToSelector(objc.Sel("makeBaseWritingDirectionNatural:")) +func (s_ StandardKeyBindingRespondingObject) HasScrollToEndOfDocument() bool { + return s_.RespondsToSelector(objc.Sel("scrollToEndOfDocument:")) } -// [Full Topic] +// Scrolls the content to the end of the document. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsstandardkeybindingresponding/3005226-makebasewritingdirectionnatural?language=objc -func (s_ StandardKeyBindingRespondingWrapper) MakeBaseWritingDirectionNatural(sender objc.IObject) { - objc.Call[objc.Void](s_, objc.Sel("makeBaseWritingDirectionNatural:"), 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_ StandardKeyBindingRespondingWrapper) HasMoveParagraphForwardAndModifySelection() bool { - return s_.RespondsToSelector(objc.Sel("moveParagraphForwardAndModifySelection:")) +func (s_ StandardKeyBindingRespondingObject) HasCancelOperation() bool { + return s_.RespondsToSelector(objc.Sel("cancelOperation:")) } -// [Full Topic] +// Cancels the current operation. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsstandardkeybindingresponding/3005240-moveparagraphforwardandmodifysel?language=objc -func (s_ StandardKeyBindingRespondingWrapper) MoveParagraphForwardAndModifySelection(sender objc.IObject) { - objc.Call[objc.Void](s_, objc.Sel("moveParagraphForwardAndModifySelection:"), sender) +// [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_ StandardKeyBindingRespondingWrapper) HasMoveToEndOfParagraphAndModifySelection() bool { - return s_.RespondsToSelector(objc.Sel("moveToEndOfParagraphAndModifySelection:")) +func (s_ StandardKeyBindingRespondingObject) HasMoveToRightEndOfLine() bool { + return s_.RespondsToSelector(objc.Sel("moveToRightEndOfLine:")) } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsstandardkeybindingresponding/3005254-movetoendofparagraphandmodifysel?language=objc -func (s_ StandardKeyBindingRespondingWrapper) MoveToEndOfParagraphAndModifySelection(sender objc.IObject) { - objc.Call[objc.Void](s_, objc.Sel("moveToEndOfParagraphAndModifySelection:"), 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) HasMoveUpAndModifySelection() bool { + return s_.RespondsToSelector(objc.Sel("moveUpAndModifySelection:")) +} + +// Extends the selection to include the content above 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) } diff --git a/macos/appkit/status_bar.gen.go b/macos/appkit/status_bar.gen.go index 4bc0714f..58b6f05d 100644 --- a/macos/appkit/status_bar.gen.go +++ b/macos/appkit/status_bar.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package appkit @@ -18,8 +18,8 @@ type _StatusBarClass struct { // An interface definition for the [StatusBar] class. type IStatusBar interface { objc.IObject - StatusItemWithLength(length float64) StatusItem RemoveStatusItem(item IStatusItem) + StatusItemWithLength(length float64) StatusItem IsVertical() bool Thickness() float64 } @@ -42,10 +42,6 @@ func (sc _StatusBarClass) Alloc() StatusBar { return rv } -func StatusBar_Alloc() StatusBar { - return StatusBarClass.Alloc() -} - func (sc _StatusBarClass) New() StatusBar { rv := objc.Call[StatusBar](sc, objc.Sel("new")) rv.Autorelease() @@ -61,14 +57,6 @@ 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 @@ -76,21 +64,14 @@ func (s_ StatusBar) RemoveStatusItem(item IStatusItem) { objc.Call[objc.Void](s_, objc.Sel("removeStatusItem:"), objc.Ptr(item)) } -// Returns the system-wide status bar located in the menu bar. [Full Topic] +// 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/1530619-systemstatusbar?language=objc -func (sc _StatusBarClass) SystemStatusBar() StatusBar { - rv := objc.Call[StatusBar](sc, objc.Sel("systemStatusBar")) +// [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 } -// 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 @@ -106,3 +87,18 @@ 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 074822b9..a4f5f519 100644 --- a/macos/appkit/status_bar_button.gen.go +++ b/macos/appkit/status_bar_button.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package appkit @@ -41,10 +41,6 @@ func (sc _StatusBarButtonClass) Alloc() StatusBarButton { return rv } -func StatusBarButton_Alloc() StatusBarButton { - return StatusBarButtonClass.Alloc() -} - func (sc _StatusBarButtonClass) New() StatusBarButton { rv := objc.Call[StatusBarButton](sc, objc.Sel("new")) rv.Autorelease() @@ -60,16 +56,16 @@ func (s_ StatusBarButton) Init() StatusBarButton { return rv } -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) +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, objc.Ptr(image), target, action) return rv } -// Creates a standard checkbox with the title you specify. [Full Topic] +// Creates a standard push button with a title and image. [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) +// [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) } func (sc _StatusBarButtonClass) ButtonWithTitleTargetAction(title string, target objc.IObject, action objc.Selector) StatusBarButton { @@ -84,6 +80,18 @@ 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:"), objc.Ptr(image), target, action) return rv diff --git a/macos/appkit/status_item.gen.go b/macos/appkit/status_item.gen.go index d576d278..c4e98c14 100644 --- a/macos/appkit/status_item.gen.go +++ b/macos/appkit/status_item.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package appkit @@ -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) - Length() float64 - SetLength(value float64) + Behavior() StatusItemBehavior + SetBehavior(value StatusItemBehavior) Menu() Menu SetMenu(value IMenu) Button() StatusBarButton + Length() float64 + SetLength(value float64) } // An individual element displayed in the system menu bar. [Full Topic] @@ -50,10 +50,6 @@ func (sc _StatusItemClass) Alloc() StatusItem { return rv } -func StatusItem_Alloc() StatusItem { - return StatusItemClass.Alloc() -} - func (sc _StatusItemClass) New() StatusItem { rv := objc.Call[StatusItem](sc, objc.Sel("new")) rv.Autorelease() @@ -84,21 +80,6 @@ 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 @@ -122,19 +103,19 @@ func (s_ StatusItem) SetAutosaveName(value StatusItemAutosaveName) { objc.Call[objc.Void](s_, objc.Sel("setAutosaveName:"), value) } -// The amount of space in the status bar that should be allocated to the status item. [Full Topic] +// The set of allowed behaviors for 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")) +// [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 amount of space in the status bar that should be allocated to the status item. [Full Topic] +// The set of allowed behaviors for 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) +// [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 pull-down menu displayed when the user clicks the status item. [Full Topic] @@ -159,3 +140,18 @@ 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 bceebb69..b29c5186 100644 --- a/macos/appkit/stepper.gen.go +++ b/macos/appkit/stepper.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package appkit @@ -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) } @@ -49,10 +49,6 @@ func (sc _StepperClass) Alloc() Stepper { return rv } -func Stepper_Alloc() Stepper { - return StepperClass.Alloc() -} - func (sc _StepperClass) New() Stepper { rv := objc.Call[Stepper](sc, objc.Sel("new")) rv.Autorelease() @@ -97,6 +93,21 @@ 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 @@ -127,21 +138,6 @@ 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 dcac6522..72b6019a 100644 --- a/macos/appkit/stepper_cell.gen.go +++ b/macos/appkit/stepper_cell.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package appkit @@ -18,16 +18,16 @@ type _StepperCellClass struct { // An interface definition for the [StepperCell] class. type IStepperCell interface { IActionCell - 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) + MinValue() float64 + SetMinValue(value float64) + ValueWraps() bool + SetValueWraps(value bool) + MaxValue() float64 + SetMaxValue(value float64) } // An NSStepperCell object controls the appearance and behavior of an NSStepper object. [Full Topic] @@ -48,10 +48,6 @@ func (sc _StepperCellClass) Alloc() StepperCell { return rv } -func StepperCell_Alloc() StepperCell { - return StepperCellClass.Alloc() -} - func (sc _StepperCellClass) New() StepperCell { rv := objc.Call[StepperCell](sc, objc.Sel("new")) rv.Autorelease() @@ -95,19 +91,34 @@ func NewStepperCellTextCell(string_ string) StepperCell { return instance } -// 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) +} + +// 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) } // The minimum value for the receiver. [Full Topic] @@ -125,19 +136,19 @@ func (s_ StepperCell) SetMinValue(value float64) { objc.Call[objc.Void](s_, objc.Sel("setMinValue:"), value) } -// The amount by which the receiver will change per increment or decrement. [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/1392331-increment?language=objc -func (s_ StepperCell) Increment() float64 { - rv := objc.Call[float64](s_, objc.Sel("increment")) +// [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 } -// The amount by which the receiver will change per increment or decrement. [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/1392331-increment?language=objc -func (s_ StepperCell) SetIncrement(value float64) { - objc.Call[objc.Void](s_, objc.Sel("setIncrement:"), 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 maximum value for the receiver. [Full Topic] @@ -154,18 +165,3 @@ 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 c85f8d66..3a2be7d8 100644 --- a/macos/appkit/stepper_touch_bar_item.gen.go +++ b/macos/appkit/stepper_touch_bar_item.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package appkit @@ -21,17 +21,17 @@ type IStepperTouchBarItem interface { ITouchBarItem Target() objc.Object SetTarget(value objc.IObject) - SetCustomizationLabel(value string) - Action() objc.Selector - SetAction(value objc.Selector) + Increment() float64 + SetIncrement(value float64) 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,13 +59,21 @@ func StepperTouchBarItem_StepperTouchBarItemWithIdentifierFormatter(identifier T return StepperTouchBarItemClass.StepperTouchBarItemWithIdentifierFormatter(identifier, formatter) } -func (sc _StepperTouchBarItemClass) Alloc() StepperTouchBarItem { - rv := objc.Call[StepperTouchBarItem](sc, objc.Sel("alloc")) +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 } -func StepperTouchBarItem_Alloc() StepperTouchBarItem { - return StepperTouchBarItemClass.Alloc() +// [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 } func (sc _StepperTouchBarItemClass) New() StepperTouchBarItem { @@ -114,24 +122,17 @@ func (s_ StepperTouchBarItem) SetTarget(value objc.IObject) { // [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] -// -// [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/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/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/3334932-increment?language=objc +func (s_ StepperTouchBarItem) SetIncrement(value float64) { + objc.Call[objc.Void](s_, objc.Sel("setIncrement:"), value) } // [Full Topic] @@ -166,30 +167,37 @@ func (s_ StepperTouchBarItem) SetMinValue(value float64) { // [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/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/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/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/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/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/3334933-maxvalue?language=objc -func (s_ StepperTouchBarItem) SetMaxValue(value float64) { - objc.Call[objc.Void](s_, objc.Sel("setMaxValue:"), 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) } diff --git a/macos/appkit/storyboard.gen.go b/macos/appkit/storyboard.gen.go index f65ceadb..ec145ff0 100644 --- a/macos/appkit/storyboard.gen.go +++ b/macos/appkit/storyboard.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package appkit @@ -19,9 +19,10 @@ 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] @@ -54,10 +55,6 @@ func (sc _StoryboardClass) Alloc() Storyboard { return rv } -func Storyboard_Alloc() Storyboard { - return StoryboardClass.Alloc() -} - func (sc _StoryboardClass) New() Storyboard { rv := objc.Call[Storyboard](sc, objc.Sel("new")) rv.Autorelease() @@ -73,6 +70,22 @@ 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 @@ -89,14 +102,6 @@ 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 2c490c3e..d916dffc 100644 --- a/macos/appkit/storyboard_segue.gen.go +++ b/macos/appkit/storyboard_segue.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package appkit @@ -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,6 +37,18 @@ 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 @@ -51,27 +63,11 @@ 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 } -func StoryboardSegue_Alloc() StoryboardSegue { - return StoryboardSegueClass.Alloc() -} - func (sc _StoryboardSegueClass) New() StoryboardSegue { rv := objc.Call[StoryboardSegue](sc, objc.Sel("new")) rv.Autorelease() @@ -94,14 +90,6 @@ 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 @@ -117,3 +105,11 @@ 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 c57ac7d7..4e5c6ac8 100644 --- a/macos/appkit/string_drawing_context.gen.go +++ b/macos/appkit/string_drawing_context.gen.go @@ -1,11 +1,11 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package appkit import ( "unsafe" - "github.com/progrium/macdriver/macos/coregraphics" + "github.com/progrium/macdriver/macos/foundation" "github.com/progrium/macdriver/objc" ) @@ -19,10 +19,10 @@ type _StringDrawingContextClass struct { // An interface definition for the [StringDrawingContext] class. type IStringDrawingContext interface { objc.IObject - TotalBounds() coregraphics.Rect - ActualScaleFactor() float64 + TotalBounds() foundation.Rect MinimumScaleFactor() float64 SetMinimumScaleFactor(value float64) + ActualScaleFactor() float64 } // An object that manages metrics for drawing attributed strings. [Full Topic] @@ -43,10 +43,6 @@ func (sc _StringDrawingContextClass) Alloc() StringDrawingContext { return rv } -func StringDrawingContext_Alloc() StringDrawingContext { - return StringDrawingContextClass.Alloc() -} - func (sc _StringDrawingContextClass) New() StringDrawingContext { rv := objc.Call[StringDrawingContext](sc, objc.Sel("new")) rv.Autorelease() @@ -65,16 +61,8 @@ 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() 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")) +func (s_ StringDrawingContext) TotalBounds() foundation.Rect { + rv := objc.Call[foundation.Rect](s_, objc.Sel("totalBounds")) return rv } @@ -92,3 +80,11 @@ 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/switch.gen.go b/macos/appkit/switch.gen.go index 48391432..4aa6c56a 100644 --- a/macos/appkit/switch.gen.go +++ b/macos/appkit/switch.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package appkit @@ -41,10 +41,6 @@ func (sc _SwitchClass) Alloc() Switch { return rv } -func Switch_Alloc() Switch { - return SwitchClass.Alloc() -} - func (sc _SwitchClass) New() Switch { rv := objc.Call[Switch](sc, objc.Sel("new")) rv.Autorelease() diff --git a/macos/appkit/tab_view.gen.go b/macos/appkit/tab_view.gen.go index 76c22937..b3f6f2d4 100644 --- a/macos/appkit/tab_view.gen.go +++ b/macos/appkit/tab_view.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package appkit @@ -19,38 +19,38 @@ type _TabViewClass struct { // An interface definition for the [TabView] class. type ITabView interface { IView - TabViewItemAtIndex(index int) TabViewItem TabViewItemAtPoint(point foundation.Point) TabViewItem - RemoveTabViewItem(tabViewItem ITabViewItem) + 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 + RemoveTabViewItem(tabViewItem ITabViewItem) SelectFirstTabViewItem(sender objc.IObject) SelectPreviousTabViewItem(sender objc.IObject) IndexOfTabViewItemWithIdentifier(identifier objc.IObject) int - SelectNextTabViewItem(sender objc.IObject) - SelectTabViewItemAtIndex(index int) - SelectLastTabViewItem(sender objc.IObject) SelectTabViewItem(tabViewItem ITabViewItem) - InsertTabViewItemAtIndex(tabViewItem ITabViewItem, index int) - IndexOfTabViewItem(tabViewItem ITabViewItem) int + SelectNextTabViewItem(sender objc.IObject) AddTabViewItem(tabViewItem ITabViewItem) - SelectTabViewItemWithIdentifier(identifier objc.IObject) - MinimumSize() foundation.Size + SelectTabViewItemAtIndex(index int) + ContentRect() foundation.Rect ControlSize() ControlSize SetControlSize(value ControlSize) - TabViewItems() []TabViewItem - SetTabViewItems(value []ITabViewItem) - ContentRect() foundation.Rect + DrawsBackground() bool + SetDrawsBackground(value bool) + Delegate() TabViewDelegateObject + SetDelegate(value PTabViewDelegate) + SetDelegateObject(valueObject objc.IObject) NumberOfTabViewItems() int AllowsTruncatedLabels() bool SetAllowsTruncatedLabels(value bool) - SelectedTabViewItem() TabViewItem - Delegate() TabViewDelegateWrapper - SetDelegate(value PTabViewDelegate) - SetDelegateObject(valueObject objc.IObject) TabPosition() TabPosition SetTabPosition(value TabPosition) - DrawsBackground() bool - SetDrawsBackground(value bool) + SelectedTabViewItem() TabViewItem + TabViewItems() []TabViewItem + SetTabViewItems(value []ITabViewItem) + MinimumSize() foundation.Size TabViewBorderType() TabViewBorderType SetTabViewBorderType(value TabViewBorderType) Font() Font @@ -77,10 +77,6 @@ func (tc _TabViewClass) Alloc() TabView { return rv } -func TabView_Alloc() TabView { - return TabViewClass.Alloc() -} - func (tc _TabViewClass) New() TabView { rv := objc.Call[TabView](tc, objc.Sel("new")) rv.Autorelease() @@ -110,14 +106,6 @@ 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 @@ -126,11 +114,18 @@ func (t_ TabView) TabViewItemAtPoint(point foundation.Point) TabViewItem { return rv } -// Removes the specified item from the tab view’s array of tab view items. [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/1391641-removetabviewitem?language=objc -func (t_ TabView) RemoveTabViewItem(tabViewItem ITabViewItem) { - objc.Call[objc.Void](t_, objc.Sel("removeTabViewItem:"), objc.Ptr(tabViewItem)) +// [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:"), objc.Ptr(tabViewItem), 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) } // Sets the selected tab view item to the selected item obtained from the sender. [Full Topic] @@ -140,6 +135,36 @@ 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:"), objc.Ptr(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:"), objc.Ptr(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 @@ -162,27 +187,6 @@ 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 @@ -190,19 +194,11 @@ func (t_ TabView) SelectTabViewItem(tabViewItem ITabViewItem) { objc.Call[objc.Void](t_, objc.Sel("selectTabViewItem:"), objc.Ptr(tabViewItem)) } -// 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:"), objc.Ptr(tabViewItem), index) -} - -// Returns the index of the specified item in the tab view. [Full Topic] +// This action method selects the next tab view item in the sequence. [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:"), objc.Ptr(tabViewItem)) - return rv +// [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) } // Adds the specified tab item. [Full Topic] @@ -212,18 +208,18 @@ func (t_ TabView) AddTabViewItem(tabViewItem ITabViewItem) { objc.Call[objc.Void](t_, objc.Sel("addTabViewItem:"), objc.Ptr(tabViewItem)) } -// Selects the tab view item specified by identifier. [Full Topic] +// Selects the tab view item specified by index. [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) +// [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) } -// The minimum size necessary for the tab view to display tabs in a useful way. [Full Topic] +// The rectangle describing the content area of the tab view. [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")) +// [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 } @@ -242,29 +238,45 @@ func (t_ TabView) SetControlSize(value ControlSize) { objc.Call[objc.Void](t_, objc.Sel("setControlSize:"), value) } -// 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] +// 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) SetTabViewItems(value []ITabViewItem) { - objc.Call[objc.Void](t_, objc.Sel("setTabViewItems:"), value) +// [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) } -// The rectangle describing the content area of the tab view. [Full Topic] +// The tab view’s delegate. [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/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:"), objc.Ptr(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 @@ -288,38 +300,6 @@ 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() TabViewDelegateWrapper { - rv := objc.Call[TabViewDelegateWrapper](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:"), objc.Ptr(valueObject)) -} - // [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/appkit/nstabview/2097105-tabposition?language=objc @@ -335,19 +315,35 @@ func (t_ TabView) SetTabPosition(value TabPosition) { objc.Call[objc.Void](t_, objc.Sel("setTabPosition:"), value) } -// A Boolean value that indicates if the tab view draws a background color when its type is NSNoTabsNoBorder. [Full Topic] +// The tab view item for the currently selected tab. [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/1391625-selectedtabviewitem?language=objc +func (t_ TabView) SelectedTabViewItem() TabViewItem { + rv := objc.Call[TabViewItem](t_, objc.Sel("selectedTabViewItem")) 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) TabViewItems() []TabViewItem { + rv := objc.Call[[]TabViewItem](t_, objc.Sel("tabViewItems")) + 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] +// +// [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] diff --git a/macos/appkit/tab_view_controller.gen.go b/macos/appkit/tab_view_controller.gen.go index 7f9ae21f..0186ea83 100644 --- a/macos/appkit/tab_view_controller.gen.go +++ b/macos/appkit/tab_view_controller.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package appkit @@ -19,26 +19,29 @@ type _TabViewControllerClass struct { // An interface definition for the [TabViewController] class. type ITabViewController interface { IViewController - TabViewItemForViewController(viewController IViewController) TabViewItem - ToolbarAllowedItemIdentifiers(toolbar IToolbar) []ToolbarItemIdentifier - RemoveTabViewItem(tabViewItem ITabViewItem) + TabViewShouldSelectTabViewItem(tabView ITabView, tabViewItem ITabViewItem) bool ToolbarItemForItemIdentifierWillBeInsertedIntoToolbar(toolbar IToolbar, itemIdentifier ToolbarItemIdentifier, flag bool) ToolbarItem - ToolbarDefaultItemIdentifiers(toolbar IToolbar) []ToolbarItemIdentifier + TabViewWillSelectTabViewItem(tabView ITabView, tabViewItem ITabViewItem) + AddTabViewItem(tabViewItem ITabViewItem) ToolbarSelectableItemIdentifiers(toolbar IToolbar) []ToolbarItemIdentifier InsertTabViewItemAtIndex(tabViewItem ITabViewItem, index int) - AddTabViewItem(tabViewItem ITabViewItem) + 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) 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] @@ -59,10 +62,6 @@ func (tc _TabViewControllerClass) Alloc() TabViewController { return rv } -func TabViewController_Alloc() TabViewController { - return TabViewControllerClass.Alloc() -} - func (tc _TabViewControllerClass) New() TabViewController { rv := objc.Call[TabViewController](tc, objc.Sel("new")) rv.Autorelease() @@ -92,29 +91,14 @@ func NewTabViewControllerWithNibNameBundle(nibNameOrNil NibName, nibBundleOrNil return instance } -// Returns the tab view item for the specified child view controller. [Full Topic] +// Asks the tab view controller if the specified tab should be selected. [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:"), objc.Ptr(viewController)) +// [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:"), objc.Ptr(tabView), objc.Ptr(tabViewItem)) 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:"), objc.Ptr(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:"), objc.Ptr(tabViewItem)) -} - // Returns the toolbar item for the specified identifier. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/appkit/nstabviewcontroller/1428218-toolbar?language=objc @@ -123,12 +107,18 @@ func (t_ TabViewController) ToolbarItemForItemIdentifierWillBeInsertedIntoToolba return rv } -// Returns the array of identifier strings for the default toolbar items. [Full Topic] +// 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/1428251-toolbardefaultitemidentifiers?language=objc -func (t_ TabViewController) ToolbarDefaultItemIdentifiers(toolbar IToolbar) []ToolbarItemIdentifier { - rv := objc.Call[[]ToolbarItemIdentifier](t_, objc.Sel("toolbarDefaultItemIdentifiers:"), objc.Ptr(toolbar)) - return rv +// [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:"), objc.Ptr(tabView), objc.Ptr(tabViewItem)) +} + +// 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/1428214-addtabviewitem?language=objc +func (t_ TabViewController) AddTabViewItem(tabViewItem ITabViewItem) { + objc.Call[objc.Void](t_, objc.Sel("addTabViewItem:"), objc.Ptr(tabViewItem)) } // Returns the array of identifier strings for the selectable toolbar items [Full Topic] @@ -146,56 +136,57 @@ func (t_ TabViewController) InsertTabViewItemAtIndex(tabViewItem ITabViewItem, i objc.Call[objc.Void](t_, objc.Sel("insertTabViewItem:atIndex:"), objc.Ptr(tabViewItem), index) } -// Adds the specified tab to the end of the tab view controller’s list of tabs. [Full Topic] +// Removes the specified tab view item from the tab view controller. [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:"), objc.Ptr(tabViewItem)) +// [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:"), objc.Ptr(tabViewItem)) } -// A Boolean value indicating whether the tab view controller gets its title from the selected child view controller. [Full Topic] +// Returns the array of identifier strings for the default toolbar items. [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")) +// [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:"), objc.Ptr(toolbar)) return rv } -// A Boolean value indicating whether the tab view controller gets its title from the selected child view controller. [Full Topic] +// Returns the array of identifier strings for the allowed toolbar items. [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) +// [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:"), objc.Ptr(toolbar)) + return rv } -// The style used to display the tabs. [Full Topic] +// Informs the tab view controller that the specified tab was selected. [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 +// [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:"), objc.Ptr(tabView), objc.Ptr(tabViewItem)) } -// The style used to display the tabs. [Full Topic] +// Returns the tab view item for the specified child view controller. [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) +// [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:"), objc.Ptr(viewController)) + return rv } -// The array of tab view items used to manage each of the child view controllers. [Full Topic] +// The animation options to use when switching between tabs. [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")) +// [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 array of tab view items used to manage each of the child view controllers. [Full Topic] +// The animation options to use when switching between tabs. [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) +// [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 tab view that manages the views of the interface. [Full Topic] @@ -213,21 +204,6 @@ func (t_ TabViewController) SetTabView(value ITabView) { objc.Call[objc.Void](t_, objc.Sel("setTabView:"), objc.Ptr(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 @@ -242,3 +218,48 @@ 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 d118650b..89d3590f 100644 --- a/macos/appkit/tab_view_delegate.gen.go +++ b/macos/appkit/tab_view_delegate.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package appkit @@ -17,12 +17,22 @@ 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 { @@ -59,30 +69,90 @@ 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 +} -// A concrete type wrapper for the [PTabViewDelegate] protocol. -type TabViewDelegateWrapper struct { +// 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) + +// A concrete type for the [PTabViewDelegate] protocol. +type TabViewDelegateObject struct { objc.Object } -func (t_ TabViewDelegateWrapper) HasTabViewDidChangeNumberOfTabViewItems() bool { +func (t_ TabViewDelegateObject) HasTabViewDidChangeNumberOfTabViewItems() bool { return t_.RespondsToSelector(objc.Sel("tabViewDidChangeNumberOfTabViewItems:")) } // Informs the delegate that the number of tab view items in tabView has changed. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/appkit/nstabviewdelegate/1391657-tabviewdidchangenumberoftabviewi?language=objc -func (t_ TabViewDelegateWrapper) TabViewDidChangeNumberOfTabViewItems(tabView ITabView) { +func (t_ TabViewDelegateObject) TabViewDidChangeNumberOfTabViewItems(tabView TabView) { objc.Call[objc.Void](t_, objc.Sel("tabViewDidChangeNumberOfTabViewItems:"), objc.Ptr(tabView)) } -func (t_ TabViewDelegateWrapper) HasTabViewDidSelectTabViewItem() bool { +func (t_ TabViewDelegateObject) HasTabViewDidSelectTabViewItem() bool { return t_.RespondsToSelector(objc.Sel("tabView:didSelectTabViewItem:")) } // Informs the delegate that tabView has selected tabViewItem. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/appkit/nstabviewdelegate/1391582-tabview?language=objc -func (t_ TabViewDelegateWrapper) TabViewDidSelectTabViewItem(tabView ITabView, tabViewItem ITabViewItem) { +func (t_ TabViewDelegateObject) TabViewDidSelectTabViewItem(tabView TabView, tabViewItem TabViewItem) { objc.Call[objc.Void](t_, objc.Sel("tabView:didSelectTabViewItem:"), objc.Ptr(tabView), objc.Ptr(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:"), objc.Ptr(tabView), objc.Ptr(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:"), objc.Ptr(tabView), objc.Ptr(tabViewItem)) +} diff --git a/macos/appkit/tab_view_item.gen.go b/macos/appkit/tab_view_item.gen.go index 1e0e5f5c..96da98f2 100644 --- a/macos/appkit/tab_view_item.gen.go +++ b/macos/appkit/tab_view_item.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package appkit @@ -19,26 +19,26 @@ type _TabViewItemClass struct { // An interface definition for the [TabViewItem] class. type ITabViewItem interface { objc.IObject - SizeOfLabel(computeMin bool) foundation.Size DrawLabelInRect(shouldTruncateLabel bool, labelRect foundation.Rect) + SizeOfLabel(computeMin bool) foundation.Size + ViewController() ViewController + SetViewController(value IViewController) 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,6 +54,18 @@ func TabViewItemFrom(ptr unsafe.Pointer) TabViewItem { } } +func (tc _TabViewItemClass) TabViewItemWithViewController(viewController IViewController) TabViewItem { + rv := objc.Call[TabViewItem](tc, objc.Sel("tabViewItemWithViewController:"), objc.Ptr(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 @@ -68,27 +80,11 @@ func NewTabViewItemWithIdentifier(identifier objc.IObject) TabViewItem { return instance } -func (tc _TabViewItemClass) TabViewItemWithViewController(viewController IViewController) TabViewItem { - rv := objc.Call[TabViewItem](tc, objc.Sel("tabViewItemWithViewController:"), objc.Ptr(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 } -func TabViewItem_Alloc() TabViewItem { - return TabViewItemClass.Alloc() -} - func (tc _TabViewItemClass) New() TabViewItem { rv := objc.Call[TabViewItem](tc, objc.Sel("new")) rv.Autorelease() @@ -104,6 +100,13 @@ 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 @@ -112,11 +115,19 @@ func (t_ TabViewItem) SizeOfLabel(computeMin bool) foundation.Size { return rv } -// Draws the receiver’s label in tabRect, which is the area between the curved end caps. [Full Topic] +// [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) +// [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/1477521-viewcontroller?language=objc +func (t_ TabViewItem) SetViewController(value IViewController) { + objc.Call[objc.Void](t_, objc.Sel("setViewController:"), objc.Ptr(value)) } // Sets the background color for content in the view. [Full Topic] @@ -134,14 +145,6 @@ func (t_ TabViewItem) SetColor(value IColor) { objc.Call[objc.Void](t_, objc.Sel("setColor:"), objc.Ptr(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 @@ -157,74 +160,59 @@ func (t_ TabViewItem) SetToolTip(value string) { objc.Call[objc.Void](t_, objc.Sel("setToolTip:"), value) } -// Sets the view associated with the receiver to view. [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/1477537-view?language=objc -func (t_ TabViewItem) View() View { - rv := objc.Call[View](t_, objc.Sel("view")) +// [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 view associated with the receiver to view. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nstabviewitem/1477537-view?language=objc -func (t_ TabViewItem) SetView(value IView) { - objc.Call[objc.Void](t_, objc.Sel("setView:"), objc.Ptr(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")) - return rv +// [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:"), objc.Ptr(value)) } -// [Full Topic] +// Sets the receiver’s optional identifier object to identifier. [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")) +// [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 } -// [Full Topic] +// Sets the receiver’s optional identifier object to identifier. [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:"), objc.Ptr(value)) +// [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 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] +// Sets the view associated with the receiver 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")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nstabviewitem/1477537-view?language=objc +func (t_ TabViewItem) View() View { + rv := objc.Call[View](t_, objc.Sel("view")) 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] +// Sets the view associated with the receiver 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:"), objc.Ptr(value)) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nstabviewitem/1477537-view?language=objc +func (t_ TabViewItem) SetView(value IView) { + objc.Call[objc.Void](t_, objc.Sel("setView:"), objc.Ptr(value)) } -// Sets the label text for the receiver to label. [Full Topic] +// Returns the parent tab view for the receiver. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nstabviewitem/1477542-label?language=objc -func (t_ TabViewItem) Label() string { - rv := objc.Call[string](t_, objc.Sel("label")) +// [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 label text for the receiver to label. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nstabviewitem/1477542-label?language=objc -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 @@ -240,17 +228,25 @@ func (t_ TabViewItem) SetImage(value IImage) { objc.Call[objc.Void](t_, objc.Sel("setImage:"), objc.Ptr(value)) } -// Sets the receiver’s optional identifier object to identifier. [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/1477529-identifier?language=objc -func (t_ TabViewItem) Identifier() objc.Object { - rv := objc.Call[objc.Object](t_, objc.Sel("identifier")) +// [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 } -// Sets the receiver’s optional identifier object to identifier. [Full Topic] +// Sets the label text for the receiver to label. [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) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nstabviewitem/1477542-label?language=objc +func (t_ TabViewItem) Label() string { + rv := objc.Call[string](t_, objc.Sel("label")) + return rv +} + +// Sets the label text for the receiver to label. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/appkit/nstabviewitem/1477542-label?language=objc +func (t_ TabViewItem) SetLabel(value string) { + objc.Call[objc.Void](t_, objc.Sel("setLabel:"), value) } diff --git a/macos/appkit/table_cell_view.gen.go b/macos/appkit/table_cell_view.gen.go index e912d025..75a5fa2c 100644 --- a/macos/appkit/table_cell_view.gen.go +++ b/macos/appkit/table_cell_view.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package appkit @@ -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] @@ -50,10 +50,6 @@ func (tc _TableCellViewClass) Alloc() TableCellView { return rv } -func TableCellView_Alloc() TableCellView { - return TableCellViewClass.Alloc() -} - func (tc _TableCellViewClass) New() TableCellView { rv := objc.Call[TableCellView](tc, objc.Sel("new")) rv.Autorelease() @@ -83,6 +79,21 @@ 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 @@ -98,6 +109,29 @@ 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:"), objc.Ptr(value)) +} + // Returns the row size style. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/appkit/nstablecellview/1483211-rowsizestyle?language=objc @@ -127,41 +161,3 @@ func (t_ TableCellView) TextField() TextField { func (t_ TableCellView) SetTextField(value ITextField) { objc.Call[objc.Void](t_, objc.Sel("setTextField:"), objc.Ptr(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:"), objc.Ptr(value)) -} diff --git a/macos/appkit/table_column.gen.go b/macos/appkit/table_column.gen.go index 01e7049b..bfb2b8c7 100644 --- a/macos/appkit/table_column.gen.go +++ b/macos/appkit/table_column.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package appkit @@ -20,30 +20,30 @@ type _TableColumnClass struct { type ITableColumn interface { objc.IObject SizeToFit() - Width() float64 - SetWidth(value float64) + Title() string + SetTitle(value string) IsHidden() bool SetHidden(value bool) - IsEditable() bool - SetEditable(value bool) - MinWidth() float64 - SetMinWidth(value float64) + ResizingMask() TableColumnResizingOptions + SetResizingMask(value TableColumnResizingOptions) HeaderToolTip() string SetHeaderToolTip(value string) - HeaderCell() TableHeaderCell - SetHeaderCell(value ITableHeaderCell) + SortDescriptorPrototype() foundation.SortDescriptor + SetSortDescriptorPrototype(value foundation.ISortDescriptor) MaxWidth() float64 SetMaxWidth(value float64) - TableView() TableView - SetTableView(value ITableView) - Title() string - SetTitle(value string) - ResizingMask() TableColumnResizingOptions - SetResizingMask(value TableColumnResizingOptions) Identifier() UserInterfaceItemIdentifier SetIdentifier(value UserInterfaceItemIdentifier) - SortDescriptorPrototype() foundation.SortDescriptor - SetSortDescriptorPrototype(value foundation.ISortDescriptor) + 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) } // The display characteristics and identifier for a column in a table view. [Full Topic] @@ -78,10 +78,6 @@ func (tc _TableColumnClass) Alloc() TableColumn { return rv } -func TableColumn_Alloc() TableColumn { - return TableColumnClass.Alloc() -} - func (tc _TableColumnClass) New() TableColumn { rv := objc.Call[TableColumn](tc, objc.Sel("new")) rv.Autorelease() @@ -104,19 +100,19 @@ func (t_ TableColumn) SizeToFit() { objc.Call[objc.Void](t_, objc.Sel("sizeToFit")) } -// The table column’s width, in points. [Full Topic] +// The title of the table column’s header. [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/1526875-title?language=objc +func (t_ TableColumn) Title() string { + rv := objc.Call[string](t_, objc.Sel("title")) return rv } -// The table column’s width, in points. [Full Topic] +// The title of the table column’s header. [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/1526875-title?language=objc +func (t_ TableColumn) SetTitle(value string) { + objc.Call[objc.Void](t_, objc.Sel("setTitle:"), value) } // A Boolean that indicates whether the table column is hidden. [Full Topic] @@ -134,34 +130,19 @@ func (t_ TableColumn) SetHidden(value bool) { objc.Call[objc.Void](t_, objc.Sel("setHidden:"), value) } -// 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/1528412-editable?language=objc -func (t_ TableColumn) IsEditable() bool { - rv := objc.Call[bool](t_, objc.Sel("isEditable")) - return rv -} - -// 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/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] +// 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) } // The string that’s displayed in a help tag over the table column header. [Full Topic] @@ -179,19 +160,19 @@ func (t_ TableColumn) SetHeaderToolTip(value string) { objc.Call[objc.Void](t_, objc.Sel("setHeaderToolTip:"), value) } -// The cell used to draw the table column’s header. [Full Topic] +// The table column’s sort descriptor prototype. [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/1534663-sortdescriptorprototype?language=objc +func (t_ TableColumn) SortDescriptorPrototype() foundation.SortDescriptor { + rv := objc.Call[foundation.SortDescriptor](t_, objc.Sel("sortDescriptorPrototype")) return rv } -// The cell used to draw the table column’s header. [Full Topic] +// The table column’s sort descriptor prototype. [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:"), objc.Ptr(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:"), objc.Ptr(value)) } // The table column’s maximum width, in points. [Full Topic] @@ -209,6 +190,21 @@ 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 @@ -224,62 +220,62 @@ func (t_ TableColumn) SetTableView(value ITableView) { objc.Call[objc.Void](t_, objc.Sel("setTableView:"), objc.Ptr(value)) } -// The title of the table column’s header. [Full Topic] +// The cell used to draw the table column’s header. [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/1525137-headercell?language=objc +func (t_ TableColumn) HeaderCell() TableHeaderCell { + rv := objc.Call[TableHeaderCell](t_, objc.Sel("headerCell")) return rv } -// The title of the table column’s header. [Full Topic] +// The cell used to draw the table column’s header. [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/1525137-headercell?language=objc +func (t_ TableColumn) SetHeaderCell(value ITableHeaderCell) { + objc.Call[objc.Void](t_, objc.Sel("setHeaderCell:"), objc.Ptr(value)) } -// The table column’s resizing mask. [Full Topic] +// The table column’s minimum width, in points. [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/1525126-minwidth?language=objc +func (t_ TableColumn) MinWidth() float64 { + rv := objc.Call[float64](t_, objc.Sel("minWidth")) return rv } -// The table column’s resizing mask. [Full Topic] +// The table column’s minimum width, in points. [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/1525126-minwidth?language=objc +func (t_ TableColumn) SetMinWidth(value float64) { + objc.Call[objc.Void](t_, objc.Sel("setMinWidth:"), value) } -// The identifier string for the table column. [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/1531113-identifier?language=objc -func (t_ TableColumn) Identifier() UserInterfaceItemIdentifier { - rv := objc.Call[UserInterfaceItemIdentifier](t_, objc.Sel("identifier")) +// [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 identifier string for the table column. [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/1531113-identifier?language=objc -func (t_ TableColumn) SetIdentifier(value UserInterfaceItemIdentifier) { - objc.Call[objc.Void](t_, objc.Sel("setIdentifier:"), 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 sort descriptor prototype. [Full Topic] +// The table column’s width, in points. [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/1528774-width?language=objc +func (t_ TableColumn) Width() float64 { + rv := objc.Call[float64](t_, objc.Sel("width")) return rv } -// The table column’s sort descriptor prototype. [Full Topic] +// The table column’s width, in points. [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:"), objc.Ptr(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) } diff --git a/macos/appkit/table_header_cell.gen.go b/macos/appkit/table_header_cell.gen.go index 7ab3334e..00312630 100644 --- a/macos/appkit/table_header_cell.gen.go +++ b/macos/appkit/table_header_cell.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package appkit @@ -41,10 +41,6 @@ func (tc _TableHeaderCellClass) Alloc() TableHeaderCell { return rv } -func TableHeaderCell_Alloc() TableHeaderCell { - return TableHeaderCellClass.Alloc() -} - func (tc _TableHeaderCellClass) New() TableHeaderCell { rv := objc.Call[TableHeaderCell](tc, objc.Sel("new")) rv.Autorelease() diff --git a/macos/appkit/table_header_view.gen.go b/macos/appkit/table_header_view.gen.go index ef89245b..96dcbe4c 100644 --- a/macos/appkit/table_header_view.gen.go +++ b/macos/appkit/table_header_view.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package appkit @@ -21,11 +21,11 @@ type ITableHeaderView interface { IView ColumnAtPoint(point foundation.Point) int HeaderRectOfColumn(column int) foundation.Rect - DraggedDistance() float64 - DraggedColumn() int - ResizedColumn() int TableView() TableView SetTableView(value ITableView) + DraggedDistance() float64 + ResizedColumn() int + DraggedColumn() int } // An object that draws headers over a table view's columns and handles mouse events in those headers. [Full Topic] @@ -46,10 +46,6 @@ func (tc _TableHeaderViewClass) Alloc() TableHeaderView { return rv } -func TableHeaderView_Alloc() TableHeaderView { - return TableHeaderViewClass.Alloc() -} - func (tc _TableHeaderViewClass) New() TableHeaderView { rv := objc.Call[TableHeaderView](tc, objc.Sel("new")) rv.Autorelease() @@ -95,19 +91,26 @@ func (t_ TableHeaderView) HeaderRectOfColumn(column int) foundation.Rect { return rv } -// The horizontal distance that the user has dragged a column. [Full Topic] +// The NSTableView instance that this table header view belongs to. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nstableheaderview/1527836-draggeddistance?language=objc -func (t_ TableHeaderView) DraggedDistance() float64 { - rv := objc.Call[float64](t_, objc.Sel("draggedDistance")) +// [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 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) SetTableView(value ITableView) { + objc.Call[objc.Void](t_, objc.Sel("setTableView:"), objc.Ptr(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 +func (t_ TableHeaderView) DraggedDistance() float64 { + rv := objc.Call[float64](t_, objc.Sel("draggedDistance")) return rv } @@ -119,17 +122,10 @@ func (t_ TableHeaderView) ResizedColumn() int { return rv } -// The NSTableView instance that this table header view belongs to. [Full Topic] +// The index of the column that the user is dragging. [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")) +// [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 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:"), objc.Ptr(value)) -} diff --git a/macos/appkit/table_row_view.gen.go b/macos/appkit/table_row_view.gen.go index 535d75f2..19b032e4 100644 --- a/macos/appkit/table_row_view.gen.go +++ b/macos/appkit/table_row_view.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package appkit @@ -19,35 +19,35 @@ type _TableRowViewClass struct { // An interface definition for the [TableRowView] class. type ITableRowView interface { IView - ViewAtColumn(column int) objc.Object + DrawDraggingDestinationFeedbackInRect(dirtyRect foundation.Rect) DrawBackgroundInRect(dirtyRect foundation.Rect) + ViewAtColumn(column int) objc.Object DrawSeparatorInRect(dirtyRect foundation.Rect) DrawSelectionInRect(dirtyRect foundation.Rect) - 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) + NumberOfColumns() int 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) - NumberOfColumns() int - IsNextRowSelected() bool - SetNextRowSelected(value bool) - DraggingDestinationFeedbackStyle() TableViewDraggingDestinationFeedbackStyle - SetDraggingDestinationFeedbackStyle(value TableViewDraggingDestinationFeedbackStyle) + 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) } // The view shown for a row in a table view. [Full Topic] @@ -68,10 +68,6 @@ func (tc _TableRowViewClass) Alloc() TableRowView { return rv } -func TableRowView_Alloc() TableRowView { - return TableRowViewClass.Alloc() -} - func (tc _TableRowViewClass) New() TableRowView { rv := objc.Call[TableRowView](tc, objc.Sel("new")) rv.Autorelease() @@ -101,12 +97,11 @@ func NewTableRowViewWithFrame(frameRect foundation.Rect) TableRowView { return instance } -// Provides access to the given view at a particular column. [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/1534440-viewatcolumn?language=objc -func (t_ TableRowView) ViewAtColumn(column int) objc.Object { - rv := objc.Call[objc.Object](t_, objc.Sel("viewAtColumn:"), column) - return rv +// [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) } // Draws the background of the row in the rectangle. [Full Topic] @@ -116,6 +111,14 @@ 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 @@ -130,73 +133,52 @@ func (t_ TableRowView) DrawSelectionInRect(dirtyRect foundation.Rect) { objc.Call[objc.Void](t_, objc.Sel("drawSelectionInRect:"), dirtyRect) } -// 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/1528434-drawdraggingdestinationfeedbacki?language=objc -func (t_ TableRowView) DrawDraggingDestinationFeedbackInRect(dirtyRect foundation.Rect) { - objc.Call[objc.Void](t_, objc.Sel("drawDraggingDestinationFeedbackInRect:"), dirtyRect) -} - -// [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/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/1525610-numberofcolumns?language=objc +func (t_ TableRowView) NumberOfColumns() int { + rv := objc.Call[int](t_, objc.Sel("numberOfColumns")) 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) -} - -// Specifies whether this row will draw a drop indicator based on the current dragging feedback style. [Full Topic] +// Specifies whether this row view is a group row. [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")) +// [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 will draw a drop indicator based on the current dragging feedback style. [Full Topic] +// Specifies whether this row view is a group row. [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) +// [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) } -// Determines whether the row will draw with the alternate or secondary color (unless overridden). [Full Topic] +// Specifies the dragging destination feedback style. [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")) +// [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 will draw with the alternate or secondary color (unless overridden). [Full Topic] +// Specifies the dragging destination feedback style. [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) +// [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) } -// Determines whether the row is selected. [Full Topic] +// Specifies how the subviews should draw. [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/1535905-interiorbackgroundstyle?language=objc +func (t_ TableRowView) InteriorBackgroundStyle() BackgroundStyle { + rv := objc.Call[BackgroundStyle](t_, objc.Sel("interiorBackgroundStyle")) 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 @@ -212,42 +194,19 @@ func (t_ TableRowView) SetFloating(value bool) { objc.Call[objc.Void](t_, objc.Sel("setFloating:"), value) } -// The background color of the row. [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")) - 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:"), objc.Ptr(value)) -} - -// 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/1529083-nextrowselected?language=objc +func (t_ TableRowView) IsNextRowSelected() bool { + rv := objc.Call[bool](t_, objc.Sel("isNextRowSelected")) 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] // -// [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 +// [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) } // Specifies the selection highlight style. [Full Topic] @@ -280,40 +239,77 @@ func (t_ TableRowView) SetIndentationForDropOperation(value float64) { objc.Call[objc.Void](t_, objc.Sel("setIndentationForDropOperation:"), value) } -// Returns the number of columns represented by views in the table row view. [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/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/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] +// +// [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 +} + +// 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:"), objc.Ptr(value)) +} + // [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/1535313-previousrowselected?language=objc +func (t_ TableRowView) IsPreviousRowSelected() bool { + rv := objc.Call[bool](t_, objc.Sel("isPreviousRowSelected")) return rv } // [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/1535313-previousrowselected?language=objc +func (t_ TableRowView) SetPreviousRowSelected(value bool) { + objc.Call[objc.Void](t_, objc.Sel("setPreviousRowSelected:"), value) } -// Specifies the dragging destination feedback style. [Full Topic] +// Determines whether the row is selected. [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/1529508-selected?language=objc +func (t_ TableRowView) IsSelected() bool { + rv := objc.Call[bool](t_, objc.Sel("isSelected")) return rv } -// Specifies the dragging destination feedback style. [Full Topic] +// Determines whether the row is selected. [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/1529508-selected?language=objc +func (t_ TableRowView) SetSelected(value bool) { + objc.Call[objc.Void](t_, objc.Sel("setSelected:"), value) } diff --git a/macos/appkit/table_view.gen.go b/macos/appkit/table_view.gen.go index 222f9082..0e68abbc 100644 --- a/macos/appkit/table_view.gen.go +++ b/macos/appkit/table_view.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package appkit @@ -19,142 +19,142 @@ type _TableViewClass struct { // An interface definition for the [TableView] class. type ITableView interface { IControl - DrawBackgroundInClipRect(clipRect foundation.Rect) - ScrollRowToVisible(row int) - ReloadDataForRowIndexesColumnIndexes(rowIndexes foundation.IIndexSet, columnIndexes foundation.IIndexSet) + NoteNumberOfRowsChanged() + Tile() RegisterNibForIdentifier(nib INib, identifier UserInterfaceItemIdentifier) - BeginUpdates() + 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)) DrawRowClipRect(row int, clipRect foundation.Rect) - ViewAtColumnRowMakeIfNecessary(column int, row int, makeIfNecessary bool) View + 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) TableColumnWithIdentifier(identifier UserInterfaceItemIdentifier) TableColumn - RowForView(view IView) int - SetDropRowDropOperation(row int, dropOperation TableViewDropOperation) - EndUpdates() + RemoveRowsAtIndexesWithAnimation(indexes foundation.IIndexSet, animationOptions TableViewAnimationOptions) HideRowsAtIndexesWithAnimation(indexes foundation.IIndexSet, rowAnimation TableViewAnimationOptions) - 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) - IndicatorImageInTableColumn(tableColumn ITableColumn) Image + ViewAtColumnRowMakeIfNecessary(column int, row int, makeIfNecessary bool) View IsColumnSelected(column int) bool + MakeViewWithIdentifierOwner(identifier UserInterfaceItemIdentifier, owner objc.IObject) View DeselectRow(row int) - RowsInRect(rect foundation.Rect) foundation.Range + DrawGridInClipRect(clipRect foundation.Rect) + SelectAll(sender objc.IObject) + SelectColumnIndexesByExtendingSelection(indexes foundation.IIndexSet, extend bool) + RowForView(view IView) int SetIndicatorImageInTableColumn(image IImage, tableColumn ITableColumn) - ColumnIndexesInRect(rect foundation.Rect) foundation.IndexSet AddTableColumn(tableColumn ITableColumn) - RemoveRowsAtIndexesWithAnimation(indexes foundation.IIndexSet, animationOptions TableViewAnimationOptions) - MakeViewWithIdentifierOwner(identifier UserInterfaceItemIdentifier, owner objc.IObject) View - InsertRowsAtIndexesWithAnimation(indexes foundation.IIndexSet, animationOptions TableViewAnimationOptions) + DrawBackgroundInClipRect(clipRect foundation.Rect) RowAtPoint(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() - ColumnWithIdentifier(identifier UserInterfaceItemIdentifier) int - SelectRowIndexesByExtendingSelection(indexes foundation.IIndexSet, extend bool) - NoteHeightOfRowsWithIndexesChanged(indexSet foundation.IIndexSet) - CanDragRowsWithIndexesAtPoint(rowIndexes foundation.IIndexSet, mouseDownPoint foundation.Point) bool - SetDraggingSourceOperationMaskForLocal(mask DragOperation, isLocal bool) + UnhideRowsAtIndexesWithAnimation(indexes foundation.IIndexSet, rowAnimation TableViewAnimationOptions) + EditColumnRowWithEventSelect(column int, row int, event IEvent, select_ bool) + BeginUpdates() 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 + ColumnAtPoint(point foundation.Point) int + SizeLastColumnToFit() + ScrollRowToVisible(row int) + RectOfRow(row int) foundation.Rect + ColumnForView(view IView) int + ScrollColumnToVisible(column int) + CanDragRowsWithIndexesAtPoint(rowIndexes foundation.IIndexSet, mouseDownPoint foundation.Point) bool + SetDropRowDropOperation(row int, dropOperation TableViewDropOperation) RemoveTableColumn(tableColumn ITableColumn) - DataSource() TableViewDataSourceWrapper - SetDataSource(value PTableViewDataSource) - SetDataSourceObject(valueObject objc.IObject) + 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) VerticalMotionCanBeginDrag() bool SetVerticalMotionCanBeginDrag(value bool) - HighlightedTableColumn() TableColumn - SetHighlightedTableColumn(value ITableColumn) - DoubleAction() objc.Selector - SetDoubleAction(value objc.Selector) - EditedRow() int - HiddenRowIndexes() foundation.IndexSet + NumberOfRows() int UsesStaticContents() bool SetUsesStaticContents(value bool) - AutosaveTableColumns() bool - SetAutosaveTableColumns(value bool) - AllowsEmptySelection() bool - SetAllowsEmptySelection(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) - EditedColumn() int - AllowsColumnReordering() bool - SetAllowsColumnReordering(value bool) - ClickedColumn() int - RowSizeStyle() TableViewRowSizeStyle - SetRowSizeStyle(value TableViewRowSizeStyle) + DataSource() TableViewDataSourceObject + SetDataSource(value PTableViewDataSource) + SetDataSourceObject(valueObject objc.IObject) AllowsTypeSelect() bool SetAllowsTypeSelect(value bool) - SortDescriptors() []foundation.SortDescriptor - SetSortDescriptors(value []foundation.ISortDescriptor) + 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) - CornerView() View - SetCornerView(value IView) - EffectiveRowSizeStyle() TableViewRowSizeStyle - Delegate() TableViewDelegateWrapper - SetDelegate(value PTableViewDelegate) - SetDelegateObject(valueObject objc.IObject) - BackgroundColor() Color - SetBackgroundColor(value IColor) - AutosaveName() TableViewAutosaveName - SetAutosaveName(value TableViewAutosaveName) - EffectiveStyle() TableViewStyle + TableColumns() []TableColumn 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) + NumberOfSelectedColumns() int 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) + EditedColumn() int + RowSizeStyle() TableViewRowSizeStyle + SetRowSizeStyle(value TableViewRowSizeStyle) + EffectiveRowSizeStyle() TableViewRowSizeStyle + DoubleAction() objc.Selector + SetDoubleAction(value objc.Selector) GridColor() Color SetGridColor(value IColor) - TableColumns() []TableColumn - DraggingDestinationFeedbackStyle() TableViewDraggingDestinationFeedbackStyle - SetDraggingDestinationFeedbackStyle(value TableViewDraggingDestinationFeedbackStyle) - NumberOfSelectedColumns() int + AllowsColumnReordering() bool + SetAllowsColumnReordering(value bool) + SortDescriptors() []foundation.SortDescriptor + SetSortDescriptors(value []foundation.ISortDescriptor) + AutosaveName() TableViewAutosaveName + SetAutosaveName(value TableViewAutosaveName) + CornerView() View + SetCornerView(value IView) + AllowsColumnSelection() bool + SetAllowsColumnSelection(value bool) } // A set of related records, displayed in rows that represent individual records and columns that represent the attributes of those records. [Full Topic] @@ -189,10 +189,6 @@ func (tc _TableViewClass) Alloc() TableView { return rv } -func TableView_Alloc() TableView { - return TableViewClass.Alloc() -} - func (tc _TableViewClass) New() TableView { rv := objc.Call[TableView](tc, objc.Sel("new")) rv.Autorelease() @@ -208,25 +204,18 @@ func (t_ TableView) Init() TableView { return rv } -// 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) -} - -// Scrolls the view so the specified row is visible. [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/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/1534147-notenumberofrowschanged?language=objc +func (t_ TableView) NoteNumberOfRowsChanged() { + objc.Call[objc.Void](t_, objc.Sel("noteNumberOfRowsChanged")) } -// Reloads the data for only the specified rows and columns. [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/1527621-reloaddataforrowindexes?language=objc -func (t_ TableView) ReloadDataForRowIndexesColumnIndexes(rowIndexes foundation.IIndexSet, columnIndexes foundation.IIndexSet) { - objc.Call[objc.Void](t_, objc.Sel("reloadDataForRowIndexes:columnIndexes:"), objc.Ptr(rowIndexes), objc.Ptr(columnIndexes)) +// [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")) } // Registers a NIB for the specified identifier, so that view-based table views can use it to instantiate views. [Full Topic] @@ -236,49 +225,78 @@ func (t_ TableView) RegisterNibForIdentifier(nib INib, identifier UserInterfaceI objc.Call[objc.Void](t_, objc.Sel("registerNib:forIdentifier:"), objc.Ptr(nib), identifier) } -// Begins a group of updates for the table view. [Full Topic] +// Computes and returns an image to use for dragging. [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/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:"), objc.Ptr(dragRows), tableColumns, objc.Ptr(dragEvent), dragImageOffset) + return rv } -// Draws the cells for the row at rowIndex in the columns that intersect clipRect. [Full Topic] +// 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] +// +// [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) +} + +// Returns the indicator image of the specified table column. [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:"), objc.Ptr(tableColumn)) + return rv +} + +// 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/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 +} + +// Invoked when a row view is removed from the table. [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/1532903-didremoverowview?language=objc +func (t_ TableView) DidRemoveRowViewForRow(rowView ITableRowView, row int) { + objc.Call[objc.Void](t_, objc.Sel("didRemoveRowView:forRow:"), objc.Ptr(rowView), row) } -// Returns a view at the specified row and column indexes, creating one if necessary. [Full Topic] +// Invoked when a row view is added to the table. [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) - 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:"), objc.Ptr(rowView), row) } -// Returns the NSTableColumn object for the first column whose identifier is equal to the specified object. [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/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/1533302-deselectall?language=objc +func (t_ TableView) DeselectAll(sender objc.IObject) { + objc.Call[objc.Void](t_, objc.Sel("deselectAll:"), sender) } -// Returns the index of the row 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/1526732-rowforview?language=objc -func (t_ TableView) RowForView(view IView) int { - rv := objc.Call[int](t_, objc.Sel("rowForView:"), objc.Ptr(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 } -// Retargets the proposed drop operation. [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/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/1532126-noteheightofrowswithindexeschang?language=objc +func (t_ TableView) NoteHeightOfRowsWithIndexesChanged(indexSet foundation.IIndexSet) { + objc.Call[objc.Void](t_, objc.Sel("noteHeightOfRowsWithIndexesChanged:"), objc.Ptr(indexSet)) } // Ends the group of updates for the table view. [Full Topic] @@ -288,48 +306,48 @@ func (t_ TableView) EndUpdates() { objc.Call[objc.Void](t_, objc.Sel("endUpdates")) } -// Hides the specified table rows. [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/1534141-hiderowsatindexes?language=objc -func (t_ TableView) HideRowsAtIndexesWithAnimation(indexes foundation.IIndexSet, rowAnimation TableViewAnimationOptions) { - objc.Call[objc.Void](t_, objc.Sel("hideRowsAtIndexes:withAnimation:"), objc.Ptr(indexes), rowAnimation) +// [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 } -// Deselects all selected rows or columns if empty selection is allowed; otherwise does nothing. [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/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/1532750-enumerateavailablerowviewsusingb?language=objc +func (t_ TableView) EnumerateAvailableRowViewsUsingBlock(handler func(rowView TableRowView, row int)) { + objc.Call[objc.Void](t_, objc.Sel("enumerateAvailableRowViewsUsingBlock:"), handler) } -// Deselects the column at the specified index if it’s selected. [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/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/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 rectangle containing the row at the specified index. [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/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/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 } -// Returns the index of the column the specified point lies in. [Full Topic] +// Reloads the data for only the specified rows and columns. [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) - return rv +// [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:"), objc.Ptr(rowIndexes), objc.Ptr(columnIndexes)) } -// Unhides the specified table rows. [Full Topic] +// Inserts the rows using the specified animation. [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:"), objc.Ptr(indexes), rowAnimation) +// [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:"), objc.Ptr(indexes), animationOptions) } // Highlights the region of the table view in the specified rectangle. [Full Topic] @@ -339,53 +357,55 @@ func (t_ TableView) HighlightSelectionInClipRect(clipRect foundation.Rect) { objc.Call[objc.Void](t_, objc.Sel("highlightSelectionInClipRect:"), clipRect) } -// Scrolls the view so the specified column is visible. [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/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/1528382-reloaddata?language=objc +func (t_ TableView) ReloadData() { + objc.Call[objc.Void](t_, objc.Sel("reloadData")) } -// Allows the enumeration of all the table rows that are known to the table view. [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/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/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 } -// Invoked when a row view is removed from the table. [Full Topic] +// Sets the row selection using indexes extending the selection if specified. [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:"), objc.Ptr(rowView), row) +// [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:"), objc.Ptr(indexes), extend) } -// Edits the cell at the specified column and row using the specified event and selection behavior. [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/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, objc.Ptr(event), select_) +// [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 } -// Draws the grid lines within the supplied rectangle. [Full Topic] +// Removes the rows using the specified animation. [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) +// [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:"), objc.Ptr(indexes), animationOptions) } -// Selects all rows or all columns, according to whether rows or columns were most recently selected. [Full Topic] +// Hides the specified table rows. [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) +// [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:"), objc.Ptr(indexes), rowAnimation) } -// Returns the indicator image of the specified table column. [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/1524846-indicatorimageintablecolumn?language=objc -func (t_ TableView) IndicatorImageInTableColumn(tableColumn ITableColumn) Image { - rv := objc.Call[Image](t_, objc.Sel("indicatorImageInTableColumn:"), objc.Ptr(tableColumn)) +// [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 } @@ -397,6 +417,14 @@ 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 @@ -404,11 +432,32 @@ func (t_ TableView) DeselectRow(row int) { objc.Call[objc.Void](t_, objc.Sel("deselectRow:"), row) } -// Returns a range of indexes for the rows that lie wholly or partially within the vertical boundaries of the specified rectangle. [Full Topic] +// Draws the grid lines within the supplied rectangle. [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/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:"), objc.Ptr(indexes), extend) +} + +// Returns the index of the row for the specified view. [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:"), objc.Ptr(view)) return rv } @@ -419,14 +468,6 @@ func (t_ TableView) SetIndicatorImageInTableColumn(image IImage, tableColumn ITa objc.Call[objc.Void](t_, objc.Sel("setIndicatorImage:inTableColumn:"), objc.Ptr(image), objc.Ptr(tableColumn)) } -// 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/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 -} - // 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 @@ -434,56 +475,63 @@ func (t_ TableView) AddTableColumn(tableColumn ITableColumn) { objc.Call[objc.Void](t_, objc.Sel("addTableColumn:"), objc.Ptr(tableColumn)) } -// Removes the rows using the specified animation. [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/1524655-removerowsatindexes?language=objc -func (t_ TableView) RemoveRowsAtIndexesWithAnimation(indexes foundation.IIndexSet, animationOptions TableViewAnimationOptions) { - objc.Call[objc.Void](t_, objc.Sel("removeRowsAtIndexes:withAnimation:"), objc.Ptr(indexes), animationOptions) +// [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 a new or existing view with the specified identifier. [Full Topic] +// Returns the index of the row the specified point lies in. [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) +// [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 } -// 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:"), objc.Ptr(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:"), objc.Ptr(indexes), rowAnimation) } -// Returns the index of the row the specified point lies in. [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/1530884-rowatpoint?language=objc -func (t_ TableView) RowAtPoint(point foundation.Point) int { - rv := objc.Call[int](t_, objc.Sel("rowAtPoint:"), point) - 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, objc.Ptr(event), select_) } -// Sets the column selection using indexes possibly extending the selection. [Full Topic] +// Begins a group of updates for the table view. [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:"), objc.Ptr(indexes), extend) +// [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")) } -// Computes and returns an image to use for dragging. [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/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:"), objc.Ptr(dragRows), tableColumns, objc.Ptr(dragEvent), dragImageOffset) +// [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 } -// Returns the rectangle containing the column at the specified index. [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/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/1525882-isrowselected?language=objc +func (t_ TableView) IsRowSelected(row int) bool { + rv := objc.Call[bool](t_, objc.Sel("isRowSelected:"), row) + return rv +} + +// Returns the index of the column 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) return rv } @@ -494,26 +542,34 @@ func (t_ TableView) SizeLastColumnToFit() { objc.Call[objc.Void](t_, objc.Sel("sizeLastColumnToFit")) } -// Returns the index of the first column in the table view whose identifier is equal to the specified identifier. [Full Topic] +// Scrolls the view so the specified row is visible. [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) +// [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) +} + +// Returns the rectangle containing the row at the specified index. [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) return rv } -// Sets the row selection using indexes extending the selection if specified. [Full Topic] +// Returns the column index for the specified view. [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:"), objc.Ptr(indexes), extend) +// [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:"), objc.Ptr(view)) + return rv } -// Informs the table view that the rows specified in indexSet have changed height. [Full Topic] +// Scrolls the view so the specified column is visible. [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:"), objc.Ptr(indexSet)) +// [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 Boolean value indicating whether the table view allows dragging the rows with the drag initiated at the specified point. [Full Topic] @@ -524,6 +580,27 @@ func (t_ TableView) CanDragRowsWithIndexesAtPoint(rowIndexes foundation.IIndexSe return rv } +// Retargets the proposed drop operation. [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) +} + +// Removes the specified column from the table view. [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:"), objc.Ptr(tableColumn)) +} + +// Deselects the column at the specified index if it’s selected. [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) +} + // Sets the default operation mask returned by draggingSourceOperationMaskForLocal: to mask. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/appkit/nstableview/1527199-setdraggingsourceoperationmask?language=objc @@ -531,109 +608,105 @@ func (t_ TableView) SetDraggingSourceOperationMaskForLocal(mask DragOperation, i objc.Call[objc.Void](t_, objc.Sel("setDraggingSourceOperationMask:forLocal:"), mask, isLocal) } -// Returns a rectangle locating the cell that lies at the intersection of the specified column and row. [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/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/1526311-selectionhighlightstyle?language=objc +func (t_ TableView) SelectionHighlightStyle() TableViewSelectionHighlightStyle { + rv := objc.Call[TableViewSelectionHighlightStyle](t_, objc.Sel("selectionHighlightStyle")) return rv } -// Returns a row view at the specified index, creating one if necessary. [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/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/1526311-selectionhighlightstyle?language=objc +func (t_ TableView) SetSelectionHighlightStyle(value TableViewSelectionHighlightStyle) { + objc.Call[objc.Void](t_, objc.Sel("setSelectionHighlightStyle:"), value) } -// Properly sizes the table view and its header view and marks it as needing display. [Full Topic] +// The grid lines drawn by the table view. [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/1528689-gridstylemask?language=objc +func (t_ TableView) GridStyleMask() TableViewGridLineStyle { + rv := objc.Call[TableViewGridLineStyle](t_, objc.Sel("gridStyleMask")) + return rv } -// Moves the specified row to the new row location using animation. [Full Topic] +// The grid lines drawn by the table view. [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) +// [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) } -// Returns the column index for the specified view. [Full Topic] +// An index set containing the indexes of the selected rows. [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:"), objc.Ptr(view)) +// [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 } -// 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/1534147-notenumberofrowschanged?language=objc -func (t_ TableView) NoteNumberOfRowsChanged() { - objc.Call[objc.Void](t_, objc.Sel("noteNumberOfRowsChanged")) -} - -// Invoked when a row view is added to the table. [Full Topic] +// The effective style that the table uses. [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:"), objc.Ptr(rowView), row) +// [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 } -// Moves the column and heading at the specified index to the new specified index. [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/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/1535010-selectedrow?language=objc +func (t_ TableView) SelectedRow() int { + rv := objc.Call[int](t_, objc.Sel("selectedRow")) + return rv } -// Marks the table view as needing redisplay, so it will reload the data for visible cells and draw the new values. [Full Topic] +// The table view’s delegate. [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/1534325-delegate?language=objc +func (t_ TableView) Delegate() TableViewDelegateObject { + rv := objc.Call[TableViewDelegateObject](t_, objc.Sel("delegate")) + return rv } -// Returns a Boolean value that indicates whether the row at the specified index is selected. [Full Topic] +// The table view’s delegate. [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/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) } -// Removes the specified column from the table view. [Full Topic] +// The table view’s delegate. [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:"), objc.Ptr(tableColumn)) +// [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:"), objc.Ptr(valueObject)) } -// The object that provides the data displayed by the table view. [Full Topic] +// An index set containing the indexes of the selected columns. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nstableview/1531866-datasource?language=objc -func (t_ TableView) DataSource() TableViewDataSourceWrapper { - rv := objc.Call[TableViewDataSourceWrapper](t_, objc.Sel("dataSource")) +// [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 object that provides the data displayed by the table view. [Full Topic] +// The view object used to draw headers over columns. [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/1535880-headerview?language=objc +func (t_ TableView) HeaderView() TableHeaderView { + rv := objc.Call[TableHeaderView](t_, objc.Sel("headerView")) + return rv } -// The object that provides the data displayed by the table view. [Full Topic] +// The view object used to draw headers over columns. [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:"), objc.Ptr(valueObject)) +// [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:"), objc.Ptr(value)) } // A Boolean value indicating whether vertical motion is treated as a drag or selection change. [Full Topic] @@ -651,44 +724,89 @@ func (t_ TableView) SetVerticalMotionCanBeginDrag(value bool) { objc.Call[objc.Void](t_, objc.Sel("setVerticalMotionCanBeginDrag:"), value) } -// The column highlighted in the table. [Full Topic] +// The number of rows in the table. [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/1527941-numberofrows?language=objc +func (t_ TableView) NumberOfRows() int { + rv := objc.Call[int](t_, objc.Sel("numberOfRows")) return rv } -// The column highlighted in the table. [Full Topic] +// A Boolean value indicating whether the table uses static data. [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:"), objc.Ptr(value)) +// [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 message sent to the table view’s target when the user double-clicks a cell or column header. [Full Topic] +// A Boolean value indicating whether the table uses static data. [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")) +// [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 } -// The message sent to the table view’s target when the user double-clicks a cell or column header. [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/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/1533198-rowactionsvisible?language=objc +func (t_ TableView) SetRowActionsVisible(value bool) { + objc.Call[objc.Void](t_, objc.Sel("setRowActionsVisible:"), value) } -// The index of the row being edited. [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/1534282-editedrow?language=objc -func (t_ TableView) EditedRow() int { - rv := objc.Call[int](t_, objc.Sel("editedRow")) +// [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 +} + +// 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/1528624-floatsgrouprows?language=objc +func (t_ TableView) SetFloatsGroupRows(value bool) { + objc.Call[objc.Void](t_, objc.Sel("setFloatsGroupRows:"), value) +} + +// 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:"), objc.Ptr(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 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 @@ -697,19 +815,34 @@ func (t_ TableView) HiddenRowIndexes() foundation.IndexSet { return rv } -// A Boolean value indicating whether the table uses static data. [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/1533450-usesstaticcontents?language=objc -func (t_ TableView) UsesStaticContents() bool { - rv := objc.Call[bool](t_, objc.Sel("usesStaticContents")) +// [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 uses static data. [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/1533450-usesstaticcontents?language=objc -func (t_ TableView) SetUsesStaticContents(value bool) { - objc.Call[objc.Void](t_, objc.Sel("setUsesStaticContents:"), value) +// [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] +// +// [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 table view’s column autoresizing style. [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) } // A Boolean value indicating whether the order and width of the table view’s columns are automatically saved. [Full Topic] @@ -727,34 +860,42 @@ func (t_ TableView) SetAutosaveTableColumns(value bool) { objc.Call[objc.Void](t_, objc.Sel("setAutosaveTableColumns:"), value) } -// A Boolean value indicating whether the table view allows the user to select zero columns or rows. [Full Topic] +// The horizontal and vertical spacing between cells. [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/1524258-intercellspacing?language=objc +func (t_ TableView) IntercellSpacing() foundation.Size { + rv := objc.Call[foundation.Size](t_, objc.Sel("intercellSpacing")) return rv } -// A Boolean value indicating whether the table view allows the user to select zero columns or rows. [Full Topic] +// The horizontal and vertical spacing between cells. [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/1524258-intercellspacing?language=objc +func (t_ TableView) SetIntercellSpacing(value foundation.Size) { + objc.Call[objc.Void](t_, objc.Sel("setIntercellSpacing:"), value) } -// A Boolean value indicating whether the table view allows the user to resize columns by dragging between their headers. [Full Topic] +// 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/1527826-allowscolumnresizing?language=objc -func (t_ TableView) AllowsColumnResizing() bool { - rv := objc.Call[bool](t_, objc.Sel("allowsColumnResizing")) +// [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 resize columns by dragging between their headers. [Full Topic] +// 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/1527826-allowscolumnresizing?language=objc -func (t_ TableView) SetAllowsColumnResizing(value bool) { - objc.Call[objc.Void](t_, objc.Sel("setAllowsColumnResizing:"), value) +// [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] +// +// [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 } // The height of each row in the table. [Full Topic] @@ -772,50 +913,28 @@ func (t_ TableView) SetRowHeight(value float64) { objc.Call[objc.Void](t_, objc.Sel("setRowHeight:"), value) } -// The index of the column being edited. [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")) - return rv -} - -// 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/1530207-allowscolumnreordering?language=objc -func (t_ TableView) AllowsColumnReordering() bool { - rv := objc.Call[bool](t_, objc.Sel("allowsColumnReordering")) - return rv -} - -// 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/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] +// The object that provides the data displayed by the table view. [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/1531866-datasource?language=objc +func (t_ TableView) DataSource() TableViewDataSourceObject { + rv := objc.Call[TableViewDataSourceObject](t_, objc.Sel("dataSource")) return rv } -// The row size style (small, medium, large, or custom) used by the table view. [Full Topic] +// The object that provides the data displayed 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 +// [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 row size style (small, medium, large, or custom) used by the table view. [Full Topic] +// The object that provides the data displayed 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) +// [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:"), objc.Ptr(valueObject)) } // A Boolean value indicating whether the table view allows the user to type characters to select rows. [Full Topic] @@ -833,149 +952,65 @@ func (t_ TableView) SetAllowsTypeSelect(value bool) { objc.Call[objc.Void](t_, objc.Sel("setAllowsTypeSelect:"), value) } -// The table view’s sort descriptors. [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 -} - -// The table view’s sort descriptors. [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) -} - -// The style that the table view uses. [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")) - return rv -} - -// The style that the table view uses. [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) -} - -// 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 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) SetCornerView(value IView) { - objc.Call[objc.Void](t_, objc.Sel("setCornerView:"), objc.Ptr(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 table view’s delegate. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nstableview/1534325-delegate?language=objc -func (t_ TableView) Delegate() TableViewDelegateWrapper { - rv := objc.Call[TableViewDelegateWrapper](t_, objc.Sel("delegate")) - return rv -} - -// The table view’s delegate. [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) -} - -// 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:"), objc.Ptr(valueObject)) -} - -// The color used to draw the background of the table. [Full Topic] +// The column highlighted in 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")) +// [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 } -// The color used to draw the background of the table. [Full Topic] +// The column highlighted in 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:"), objc.Ptr(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:"), objc.Ptr(value)) } -// The name under which table information is automatically saved. [Full Topic] +// The index of the row the user clicked. [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/1527357-clickedrow?language=objc +func (t_ TableView) ClickedRow() int { + rv := objc.Call[int](t_, objc.Sel("clickedRow")) 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] +// The index of the column the user clicked. [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")) +// [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 } -// A Boolean value that indicates whether the table view uses autolayout to calculate the height of rows. [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/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/1527570-draggingdestinationfeedbackstyle?language=objc +func (t_ TableView) DraggingDestinationFeedbackStyle() TableViewDraggingDestinationFeedbackStyle { + rv := objc.Call[TableViewDraggingDestinationFeedbackStyle](t_, objc.Sel("draggingDestinationFeedbackStyle")) return rv } -// A Boolean value that indicates whether the table view uses autolayout to calculate the height of rows. [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/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/1527570-draggingdestinationfeedbackstyle?language=objc +func (t_ TableView) SetDraggingDestinationFeedbackStyle(value TableViewDraggingDestinationFeedbackStyle) { + objc.Call[objc.Void](t_, objc.Sel("setDraggingDestinationFeedbackStyle:"), 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")) +// 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/1535902-allowsemptyselection?language=objc +func (t_ TableView) AllowsEmptySelection() bool { + rv := objc.Call[bool](t_, objc.Sel("allowsEmptySelection")) return rv } -// A Boolean value indicating whether the table view uses alternating row colors for its background. [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/1533967-usesalternatingrowbackgroundcolo?language=objc -func (t_ TableView) SetUsesAlternatingRowBackgroundColors(value bool) { - objc.Call[objc.Void](t_, objc.Sel("setUsesAlternatingRowBackgroundColors:"), 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) } // The number of selected rows. [Full Topic] @@ -986,29 +1021,14 @@ func (t_ TableView) NumberOfSelectedRows() int { return rv } -// The index of the row the user clicked. [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")) - 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] +// The number of columns in the table. [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/1528902-numberofcolumns?language=objc +func (t_ TableView) NumberOfColumns() int { + rv := objc.Call[int](t_, objc.Sel("numberOfColumns")) 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 @@ -1017,59 +1037,52 @@ func (t_ TableView) SelectedColumn() int { return rv } -// The grid lines drawn by the table view. [Full Topic] +// The style that the table view uses. [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")) +// [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 grid lines drawn by the table view. [Full Topic] +// The style that the table view uses. [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/3622475-style?language=objc +func (t_ TableView) SetStyle(value TableViewStyle) { + objc.Call[objc.Void](t_, objc.Sel("setStyle:"), value) } -// The index of the last selected row (or the last row added to the selection). [Full Topic] +// An array containing the current table column objects. [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")) +// [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 } -// The selection highlight style used by the table view to indicate row and column selection. [Full Topic] +// 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/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/2870126-usesautomaticrowheights?language=objc +func (t_ TableView) UsesAutomaticRowHeights() bool { + rv := objc.Call[bool](t_, objc.Sel("usesAutomaticRowHeights")) return rv } -// The selection highlight style used by the table view to indicate row and column selection. [Full Topic] +// 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/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/2870126-usesautomaticrowheights?language=objc +func (t_ TableView) SetUsesAutomaticRowHeights(value bool) { + objc.Call[objc.Void](t_, objc.Sel("setUsesAutomaticRowHeights:"), value) } -// A Boolean value indicating whether a table row’s actions are visible. [Full Topic] +// The number of selected columns. [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")) +// [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 } -// 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 @@ -1078,155 +1091,138 @@ func (t_ TableView) RegisteredNibsByIdentifier() map[UserInterfaceItemIdentifier return rv } -// An index set containing the indexes of the selected columns. [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 -} - -// A Boolean value indicating whether the table view allows the user to select columns by clicking their headers. [Full Topic] +// The index of the column being edited. [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/1532307-editedcolumn?language=objc +func (t_ TableView) EditedColumn() int { + rv := objc.Call[int](t_, objc.Sel("editedColumn")) return rv } -// 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/1525276-allowscolumnselection?language=objc -func (t_ TableView) SetAllowsColumnSelection(value bool) { - objc.Call[objc.Void](t_, objc.Sel("setAllowsColumnSelection:"), value) -} - -// The view object used to draw headers over columns. [Full Topic] +// 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/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/1534438-rowsizestyle?language=objc +func (t_ TableView) RowSizeStyle() TableViewRowSizeStyle { + rv := objc.Call[TableViewRowSizeStyle](t_, objc.Sel("rowSizeStyle")) return rv } -// The view object used to draw headers over columns. [Full Topic] +// 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/1535880-headerview?language=objc -func (t_ TableView) SetHeaderView(value ITableHeaderView) { - objc.Call[objc.Void](t_, objc.Sel("setHeaderView:"), objc.Ptr(value)) +// [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) } -// The number of rows in the table. [Full Topic] +// The effective row size style for 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")) +// [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 } -// A Boolean value indicating whether the table view draws grouped rows as if they are floating. [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/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/1526992-doubleaction?language=objc +func (t_ TableView) DoubleAction() objc.Selector { + rv := objc.Call[objc.Selector](t_, objc.Sel("doubleAction")) return rv } -// A Boolean value indicating whether the table view draws grouped rows as if they are floating. [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/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/1526992-doubleaction?language=objc +func (t_ TableView) SetDoubleAction(value objc.Selector) { + objc.Call[objc.Void](t_, objc.Sel("setDoubleAction:"), value) } -// An index set containing the indexes of the selected rows. [Full Topic] +// The color used to draw grid lines. [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/1524620-gridcolor?language=objc +func (t_ TableView) GridColor() Color { + rv := objc.Call[Color](t_, objc.Sel("gridColor")) return rv } -// The horizontal and vertical spacing between cells. [Full Topic] +// The color used to draw grid lines. [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")) - return rv +// [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:"), objc.Ptr(value)) } -// The horizontal and vertical spacing between cells. [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/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/1530207-allowscolumnreordering?language=objc +func (t_ TableView) AllowsColumnReordering() bool { + rv := objc.Call[bool](t_, objc.Sel("allowsColumnReordering")) + return rv } -// The number of columns in the table. [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/1528902-numberofcolumns?language=objc -func (t_ TableView) NumberOfColumns() int { - rv := objc.Call[int](t_, objc.Sel("numberOfColumns")) - return rv +// [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 table view’s column autoresizing style. [Full Topic] +// The table view’s sort descriptors. [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/1534198-sortdescriptors?language=objc +func (t_ TableView) SortDescriptors() []foundation.SortDescriptor { + rv := objc.Call[[]foundation.SortDescriptor](t_, objc.Sel("sortDescriptors")) return rv } -// The table view’s column autoresizing style. [Full Topic] +// The table view’s sort descriptors. [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/1534198-sortdescriptors?language=objc +func (t_ TableView) SetSortDescriptors(value []foundation.ISortDescriptor) { + objc.Call[objc.Void](t_, objc.Sel("setSortDescriptors:"), value) } -// The color used to draw grid lines. [Full Topic] +// The name under which table information is automatically saved. [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/1534409-autosavename?language=objc +func (t_ TableView) AutosaveName() TableViewAutosaveName { + rv := objc.Call[TableViewAutosaveName](t_, objc.Sel("autosaveName")) return rv } -// The color used to draw grid lines. [Full Topic] +// The name under which table information is automatically saved. [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:"), objc.Ptr(value)) +// [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) } -// An array containing the current table column objects. [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/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/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")) - return rv +// [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:"), objc.Ptr(value)) } -// The feedback style displayed when the user drags over 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/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/1525276-allowscolumnselection?language=objc +func (t_ TableView) AllowsColumnSelection() bool { + rv := objc.Call[bool](t_, objc.Sel("allowsColumnSelection")) + return rv } -// The number of selected columns. [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/1524361-numberofselectedcolumns?language=objc -func (t_ TableView) NumberOfSelectedColumns() int { - rv := objc.Call[int](t_, objc.Sel("numberOfSelectedColumns")) - return rv +// [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) } diff --git a/macos/appkit/table_view_data_source.gen.go b/macos/appkit/table_view_data_source.gen.go deleted file mode 100644 index cb26ac5a..00000000 --- a/macos/appkit/table_view_data_source.gen.go +++ /dev/null @@ -1,49 +0,0 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY - -package appkit - -import ( - "github.com/progrium/macdriver/macos/foundation" - "github.com/progrium/macdriver/objc" -) - -// A set of methods that a table view uses to provide data to a table view and to allow the editing of the table view's data source object. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nstableviewdatasource?language=objc -type PTableViewDataSource interface { - // optional - NumberOfRowsInTableView(tableView TableView) int - HasNumberOfRowsInTableView() bool - - // optional - TableViewSortDescriptorsDidChange(tableView TableView, oldDescriptors []foundation.SortDescriptor) - HasTableViewSortDescriptorsDidChange() bool -} - -// A concrete type wrapper for the [PTableViewDataSource] protocol. -type TableViewDataSourceWrapper struct { - objc.Object -} - -func (t_ TableViewDataSourceWrapper) HasNumberOfRowsInTableView() bool { - return t_.RespondsToSelector(objc.Sel("numberOfRowsInTableView:")) -} - -// Returns the number of records managed for aTableView by the data source object. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nstableviewdatasource/1524583-numberofrowsintableview?language=objc -func (t_ TableViewDataSourceWrapper) NumberOfRowsInTableView(tableView ITableView) int { - rv := objc.Call[int](t_, objc.Sel("numberOfRowsInTableView:"), objc.Ptr(tableView)) - return rv -} - -func (t_ TableViewDataSourceWrapper) HasTableViewSortDescriptorsDidChange() bool { - return t_.RespondsToSelector(objc.Sel("tableView:sortDescriptorsDidChange:")) -} - -// Called by aTableView to indicate that sorting may need to be done. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nstableviewdatasource/1532935-tableview?language=objc -func (t_ TableViewDataSourceWrapper) TableViewSortDescriptorsDidChange(tableView ITableView, oldDescriptors []foundation.ISortDescriptor) { - objc.Call[objc.Void](t_, objc.Sel("tableView:sortDescriptorsDidChange:"), objc.Ptr(tableView), oldDescriptors) -} diff --git a/macos/appkit/table_view_data_source_protocol.gen.go b/macos/appkit/table_view_data_source_protocol.gen.go new file mode 100644 index 00000000..dd462346 --- /dev/null +++ b/macos/appkit/table_view_data_source_protocol.gen.go @@ -0,0 +1,179 @@ +// Code generated by DarwinKit. DO NOT EDIT. + +package appkit + +import ( + "github.com/progrium/macdriver/macos/foundation" + "github.com/progrium/macdriver/objc" +) + +// A set of methods that a table view uses to provide data to a table view and to allow the editing of the table view's data source object. [Full Topic] +// +// [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 + + // 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 +var _ PTableViewDataSource = (*TableViewDataSourceObject)(nil) + +// A concrete type for the [PTableViewDataSource] protocol. +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:"), objc.Ptr(tableView), object, objc.Ptr(tableColumn), row) +} + +func (t_ TableViewDataSourceObject) HasNumberOfRowsInTableView() bool { + return t_.RespondsToSelector(objc.Sel("numberOfRowsInTableView:")) +} + +// Returns the number of records managed for aTableView by the data source object. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/appkit/nstableviewdatasource/1524583-numberofrowsintableview?language=objc +func (t_ TableViewDataSourceObject) NumberOfRowsInTableView(tableView TableView) int { + rv := objc.Call[int](t_, objc.Sel("numberOfRowsInTableView:"), objc.Ptr(tableView)) + return rv +} + +func (t_ TableViewDataSourceObject) HasTableViewSortDescriptorsDidChange() bool { + return t_.RespondsToSelector(objc.Sel("tableView:sortDescriptorsDidChange:")) +} + +// Called by aTableView to indicate that sorting may need to be done. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/appkit/nstableviewdatasource/1532935-tableview?language=objc +func (t_ TableViewDataSourceObject) TableViewSortDescriptorsDidChange(tableView TableView, oldDescriptors []foundation.SortDescriptor) { + objc.Call[objc.Void](t_, objc.Sel("tableView:sortDescriptorsDidChange:"), objc.Ptr(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:"), objc.Ptr(tableView), objc.Ptr(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:"), objc.Ptr(tableView), objc.Ptr(session), screenPoint, objc.Ptr(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:"), objc.Ptr(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:"), objc.Ptr(tableView), objc.Ptr(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:"), objc.Ptr(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:"), objc.Ptr(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:"), objc.Ptr(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 d92aa4dc..13f78d5b 100644 --- a/macos/appkit/table_view_delegate.gen.go +++ b/macos/appkit/table_view_delegate.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package appkit @@ -13,108 +13,257 @@ import ( type PTableViewDelegate interface { PControlTextEditingDelegate // optional - TableViewSelectionDidChange(notification foundation.Notification) - HasTableViewSelectionDidChange() bool + TableViewTypeSelectStringForTableColumnRow(tableView TableView, tableColumn TableColumn, row int) string + HasTableViewTypeSelectStringForTableColumnRow() bool // optional - TableViewColumnDidResize(notification foundation.Notification) - HasTableViewColumnDidResize() bool + TableViewDataCellForTableColumnRow(tableView TableView, tableColumn TableColumn, row int) Cell + HasTableViewDataCellForTableColumnRow() bool // optional - TableViewSelectionIsChanging(notification foundation.Notification) - HasTableViewSelectionIsChanging() bool + TableViewNextTypeSelectMatchFromRowToRowForString(tableView TableView, startRow int, endRow int, searchString string) int + HasTableViewNextTypeSelectMatchFromRowToRowForString() bool // optional - TableViewDidClickTableColumn(tableView TableView, tableColumn TableColumn) - HasTableViewDidClickTableColumn() bool + 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 + + // optional + TableViewSelectionIndexesForProposedSelection(tableView TableView, proposedSelectionIndexes foundation.IndexSet) foundation.IndexSet + HasTableViewSelectionIndexesForProposedSelection() bool + + // optional + TableViewDidAddRowViewForRow(tableView TableView, rowView TableRowView, row int) + HasTableViewDidAddRowViewForRow() 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 + // 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 - _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) + _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 } -func (di *TableViewDelegate) HasTableViewSelectionDidChange() bool { - return di._TableViewSelectionDidChange != 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) TableViewTypeSelectStringForTableColumnRow(tableView TableView, tableColumn TableColumn, row int) string { + return di._TableViewTypeSelectStringForTableColumnRow(tableView, tableColumn, row) +} +func (di *TableViewDelegate) HasTableViewDataCellForTableColumnRow() bool { + return di._TableViewDataCellForTableColumnRow != nil } -// Tells the delegate that the table view’s selection has changed. [Full Topic] +// 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/1528567-tableviewselectiondidchange?language=objc -func (di *TableViewDelegate) SetTableViewSelectionDidChange(f func(notification foundation.Notification)) { - di._TableViewSelectionDidChange = f +// [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 } -// Tells the delegate that the table view’s selection has changed. [Full Topic] +// 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/1528567-tableviewselectiondidchange?language=objc -func (di *TableViewDelegate) TableViewSelectionDidChange(notification foundation.Notification) { - di._TableViewSelectionDidChange(notification) +// [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) HasTableViewColumnDidResize() bool { - return di._TableViewColumnDidResize != nil +func (di *TableViewDelegate) HasTableViewNextTypeSelectMatchFromRowToRowForString() bool { + return di._TableViewNextTypeSelectMatchFromRowToRowForString != nil } -// Tells the delegate that a table column was resized. [Full Topic] +// 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/1535901-tableviewcolumndidresize?language=objc -func (di *TableViewDelegate) SetTableViewColumnDidResize(f func(notification foundation.Notification)) { - di._TableViewColumnDidResize = f +// [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 } -// Tells the delegate that a table column was resized. [Full Topic] +// 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/1535901-tableviewcolumndidresize?language=objc -func (di *TableViewDelegate) TableViewColumnDidResize(notification foundation.Notification) { - di._TableViewColumnDidResize(notification) +// [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) HasTableViewSelectionIsChanging() bool { - return di._TableViewSelectionIsChanging != nil +func (di *TableViewDelegate) HasTableViewIsGroupRow() bool { + return di._TableViewIsGroupRow != nil } -// Tells the delegate that the table view’s selection is in the process of changing. [Full Topic] +// Returns whether the specified row is a group row. [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 +// [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 } -// Tells the delegate that the table view’s selection is in the process of changing. [Full Topic] +// Returns whether the specified row is a group row. [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) +// [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) HasTableViewDidClickTableColumn() bool { - return di._TableViewDidClickTableColumn != nil +func (di *TableViewDelegate) HasTableViewShouldShowCellExpansionForTableColumnRow() bool { + return di._TableViewShouldShowCellExpansionForTableColumnRow != nil } -// Tells the delegate that the mouse button was clicked in the specified table column, but the column was not dragged. [Full Topic] +// 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/1533923-tableview?language=objc -func (di *TableViewDelegate) SetTableViewDidClickTableColumn(f func(tableView TableView, tableColumn TableColumn)) { - di._TableViewDidClickTableColumn = f +// [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 } -// Tells the delegate that the mouse button was clicked in the specified table column, but the column was not dragged. [Full Topic] +// 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/1533923-tableview?language=objc -func (di *TableViewDelegate) TableViewDidClickTableColumn(tableView TableView, tableColumn TableColumn) { - di._TableViewDidClickTableColumn(tableView, tableColumn) +// [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 @@ -133,6 +282,210 @@ func (di *TableViewDelegate) SetSelectionShouldChangeInTableView(f func(tableVie 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 +} + +// 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 +} + +// Asks the delegate whether the specified table column can be selected. [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 +} + +// Asks the delegate whether the specified table column can be selected. [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) +} +func (di *TableViewDelegate) HasTableViewSelectionIndexesForProposedSelection() bool { + return di._TableViewSelectionIndexesForProposedSelection != nil +} + +// Asks the delegate to accept or reject the proposed selection. [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 +} + +// Asks the delegate to accept or reject the proposed selection. [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) +} +func (di *TableViewDelegate) HasTableViewDidAddRowViewForRow() bool { + return di._TableViewDidAddRowViewForRow != nil +} + +// Tells the delegate that a row view was added at the specified row. [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 +} + +// Tells the delegate that a row view was added at the specified row. [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) +} +func (di *TableViewDelegate) HasTableViewDidClickTableColumn() bool { + return di._TableViewDidClickTableColumn != nil +} + +// Tells the delegate that the mouse button was clicked in the specified table column, but the column was not dragged. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/appkit/nstableviewdelegate/1533923-tableview?language=objc +func (di *TableViewDelegate) SetTableViewDidClickTableColumn(f func(tableView TableView, tableColumn TableColumn)) { + di._TableViewDidClickTableColumn = f +} + +// Tells the delegate that the mouse button was clicked in the specified table column, but the column was not dragged. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/appkit/nstableviewdelegate/1533923-tableview?language=objc +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 +} + +// Asks the delegate if the table view should allow selection of the specified row. [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 +} + +// Asks the delegate if the table view should allow selection of the specified row. [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) +} func (di *TableViewDelegate) HasTableViewColumnDidMove() bool { return di._TableViewColumnDidMove != nil } @@ -150,75 +503,502 @@ 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 +} -// A concrete type wrapper for the [PTableViewDelegate] protocol. -type TableViewDelegateWrapper struct { - ControlTextEditingDelegateWrapper +// 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 } -func (t_ TableViewDelegateWrapper) HasTableViewSelectionDidChange() bool { - return t_.RespondsToSelector(objc.Sel("tableViewSelectionDidChange:")) +// 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 (t_ TableViewDelegateWrapper) TableViewSelectionDidChange(notification foundation.INotification) { - objc.Call[objc.Void](t_, objc.Sel("tableViewSelectionDidChange:"), objc.Ptr(notification)) +func (di *TableViewDelegate) SetTableViewSelectionDidChange(f func(notification foundation.Notification)) { + di._TableViewSelectionDidChange = f } -func (t_ TableViewDelegateWrapper) HasTableViewColumnDidResize() bool { - return t_.RespondsToSelector(objc.Sel("tableViewColumnDidResize:")) +// 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 (t_ TableViewDelegateWrapper) TableViewColumnDidResize(notification foundation.INotification) { - objc.Call[objc.Void](t_, objc.Sel("tableViewColumnDidResize:"), objc.Ptr(notification)) +func (di *TableViewDelegate) SetTableViewColumnDidResize(f func(notification foundation.Notification)) { + di._TableViewColumnDidResize = f } -func (t_ TableViewDelegateWrapper) HasTableViewSelectionIsChanging() bool { - return t_.RespondsToSelector(objc.Sel("tableViewSelectionIsChanging:")) +// 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 } -// Tells the delegate that the table view’s selection is in the process of changing. [Full Topic] +// Asks the delegate for the height of the specified row. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nstableviewdelegate/1530812-tableviewselectionischanging?language=objc -func (t_ TableViewDelegateWrapper) TableViewSelectionIsChanging(notification foundation.INotification) { - objc.Call[objc.Void](t_, objc.Sel("tableViewSelectionIsChanging:"), objc.Ptr(notification)) +// [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 } -func (t_ TableViewDelegateWrapper) HasTableViewDidClickTableColumn() bool { - return t_.RespondsToSelector(objc.Sel("tableView:didClickTableColumn:")) +// 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) } -// Tells the delegate that the mouse button was clicked in the specified table column, but the column was not dragged. [Full Topic] +// ensure impl type implements protocol interface +var _ PTableViewDelegate = (*TableViewDelegateObject)(nil) + +// A concrete type for the [PTableViewDelegate] protocol. +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/1533923-tableview?language=objc -func (t_ TableViewDelegateWrapper) TableViewDidClickTableColumn(tableView ITableView, tableColumn ITableColumn) { - objc.Call[objc.Void](t_, objc.Sel("tableView:didClickTableColumn:"), objc.Ptr(tableView), objc.Ptr(tableColumn)) +// [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:"), objc.Ptr(tableView), objc.Ptr(tableColumn), row) + return rv } -func (t_ TableViewDelegateWrapper) HasSelectionShouldChangeInTableView() bool { +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:"), objc.Ptr(tableView), objc.Ptr(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:"), objc.Ptr(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:"), objc.Ptr(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:"), objc.Ptr(tableView), objc.Ptr(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:"), objc.Ptr(tableView), objc.Ptr(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_ TableViewDelegateWrapper) SelectionShouldChangeInTableView(tableView ITableView) bool { +func (t_ TableViewDelegateObject) SelectionShouldChangeInTableView(tableView TableView) bool { rv := objc.Call[bool](t_, objc.Sel("selectionShouldChangeInTableView:"), objc.Ptr(tableView)) return rv } -func (t_ TableViewDelegateWrapper) HasTableViewColumnDidMove() bool { +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:"), objc.Ptr(tableView), objc.Ptr(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:"), objc.Ptr(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:"), objc.Ptr(tableView), objc.Ptr(cell), objc.Ptr(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:"), objc.Ptr(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:"), objc.Ptr(tableView), objc.Ptr(tableColumn), row) + return rv +} + +func (t_ TableViewDelegateObject) HasTableViewShouldSelectTableColumn() bool { + return t_.RespondsToSelector(objc.Sel("tableView:shouldSelectTableColumn:")) +} + +// Asks the delegate whether the specified table column can be selected. [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:"), objc.Ptr(tableView), objc.Ptr(tableColumn)) + return rv +} + +func (t_ TableViewDelegateObject) HasTableViewSelectionIndexesForProposedSelection() bool { + return t_.RespondsToSelector(objc.Sel("tableView:selectionIndexesForProposedSelection:")) +} + +// Asks the delegate to accept or reject the proposed selection. [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:"), objc.Ptr(tableView), objc.Ptr(proposedSelectionIndexes)) + return rv +} + +func (t_ TableViewDelegateObject) HasTableViewDidAddRowViewForRow() bool { + return t_.RespondsToSelector(objc.Sel("tableView:didAddRowView:forRow:")) +} + +// Tells the delegate that a row view was added at the specified row. [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:"), objc.Ptr(tableView), objc.Ptr(rowView), row) +} + +func (t_ TableViewDelegateObject) HasTableViewDidClickTableColumn() bool { + return t_.RespondsToSelector(objc.Sel("tableView:didClickTableColumn:")) +} + +// Tells the delegate that the mouse button was clicked in the specified table column, but the column was not dragged. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/appkit/nstableviewdelegate/1533923-tableview?language=objc +func (t_ TableViewDelegateObject) TableViewDidClickTableColumn(tableView TableView, tableColumn TableColumn) { + objc.Call[objc.Void](t_, objc.Sel("tableView:didClickTableColumn:"), objc.Ptr(tableView), objc.Ptr(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:"), objc.Ptr(tableView), cell, objc.Ptr(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:"), objc.Ptr(tableView), column) + return rv +} + +func (t_ TableViewDelegateObject) HasTableViewShouldSelectRow() bool { + return t_.RespondsToSelector(objc.Sel("tableView:shouldSelectRow:")) +} + +// Asks the delegate if the table view should allow selection of the specified row. [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:"), objc.Ptr(tableView), row) + return rv +} + +func (t_ TableViewDelegateObject) HasTableViewColumnDidMove() bool { return t_.RespondsToSelector(objc.Sel("tableViewColumnDidMove:")) } // Tells the delegate that a table column was moved by user action. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/appkit/nstableviewdelegate/1534237-tableviewcolumndidmove?language=objc -func (t_ TableViewDelegateWrapper) TableViewColumnDidMove(notification foundation.INotification) { +func (t_ TableViewDelegateObject) TableViewColumnDidMove(notification foundation.Notification) { objc.Call[objc.Void](t_, objc.Sel("tableViewColumnDidMove:"), objc.Ptr(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:"), objc.Ptr(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:"), objc.Ptr(tableView), objc.Ptr(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:"), objc.Ptr(tableView), objc.Ptr(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:"), objc.Ptr(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:"), objc.Ptr(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:"), objc.Ptr(tableView), objc.Ptr(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:"), objc.Ptr(tableView), objc.Ptr(cell), rect, objc.Ptr(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:"), objc.Ptr(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:"), objc.Ptr(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 c2ba276d..d94b28eb 100644 --- a/macos/appkit/table_view_diffable_data_source.gen.go +++ b/macos/appkit/table_view_diffable_data_source.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package appkit @@ -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 - RowForSectionIdentifier(identifier objc.IObject) int - SectionIdentifierForRow(row int) objc.Object - RowViewProvider() TableViewDiffableDataSourceRowProvider - SetRowViewProvider(value TableViewDiffableDataSourceRowProvider) SectionHeaderViewProvider() TableViewDiffableDataSourceSectionHeaderViewProvider SetSectionHeaderViewProvider(value TableViewDiffableDataSourceSectionHeaderViewProvider) + RowViewProvider() TableViewDiffableDataSourceRowProvider + SetRowViewProvider(value TableViewDiffableDataSourceRowProvider) DefaultRowAnimation() TableViewAnimationOptions SetDefaultRowAnimation(value TableViewAnimationOptions) } @@ -62,10 +62,6 @@ func (tc _TableViewDiffableDataSourceClass) Alloc() TableViewDiffableDataSource return rv } -func TableViewDiffableDataSource_Alloc() TableViewDiffableDataSource { - return TableViewDiffableDataSourceClass.Alloc() -} - func (tc _TableViewDiffableDataSourceClass) New() TableViewDiffableDataSource { rv := objc.Call[TableViewDiffableDataSource](tc, objc.Sel("new")) rv.Autorelease() @@ -81,6 +77,22 @@ 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:"), objc.Ptr(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 @@ -97,20 +109,19 @@ func (t_ TableViewDiffableDataSource) ItemIdentifierForRow(row int) objc.Object return rv } -// Returns a row for the section with the specified identifier in the table view. [Full Topic] +// 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/3553218-rowforsectionidentifier?language=objc -func (t_ TableViewDiffableDataSource) RowForSectionIdentifier(identifier objc.IObject) int { - rv := objc.Call[int](t_, objc.Sel("rowForSectionIdentifier:"), objc.Ptr(identifier)) +// [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 } -// Returns the identifier of the section containing the specified row in the snapshot. [Full Topic] +// 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/3553221-sectionidentifierforrow?language=objc -func (t_ TableViewDiffableDataSource) SectionIdentifierForRow(row int) objc.Object { - rv := objc.Call[objc.Object](t_, objc.Sel("sectionIdentifierForRow:"), row) - return rv +// [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 closure that configures and returns the table view’s row views from the diffable data source. [Full Topic] @@ -128,21 +139,6 @@ 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 6a0d9972..f1880533 100644 --- a/macos/appkit/table_view_row_action.gen.go +++ b/macos/appkit/table_view_row_action.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package appkit @@ -18,13 +18,13 @@ type _TableViewRowActionClass struct { // An interface definition for the [TableViewRowAction] class. type ITableViewRowAction interface { objc.IObject - Style() TableViewRowActionStyle + Image() Image + SetImage(value IImage) BackgroundColor() Color SetBackgroundColor(value IColor) Title() string SetTitle(value string) - Image() Image - SetImage(value IImage) + Style() TableViewRowActionStyle } // A single action to present when the user swipes horizontally on a table row. [Full Topic] @@ -57,10 +57,6 @@ func (tc _TableViewRowActionClass) Alloc() TableViewRowAction { return rv } -func TableViewRowAction_Alloc() TableViewRowAction { - return TableViewRowActionClass.Alloc() -} - func (tc _TableViewRowActionClass) New() TableViewRowAction { rv := objc.Call[TableViewRowAction](tc, objc.Sel("new")) rv.Autorelease() @@ -76,14 +72,21 @@ func (t_ TableViewRowAction) Init() TableViewRowAction { return rv } -// 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:"), objc.Ptr(value)) +} + // The background color of the action button. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/appkit/nstableviewrowaction/1401984-backgroundcolor?language=objc @@ -114,17 +117,10 @@ func (t_ TableViewRowAction) SetTitle(value string) { objc.Call[objc.Void](t_, objc.Sel("setTitle:"), value) } -// [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:"), objc.Ptr(value)) -} diff --git a/macos/appkit/text.gen.go b/macos/appkit/text.gen.go index da8b9688..dcb9316a 100644 --- a/macos/appkit/text.gen.go +++ b/macos/appkit/text.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package appkit @@ -19,75 +19,77 @@ type _TextClass struct { // An interface definition for the [Text] class. type IText interface { IView - Delete(sender objc.IObject) - CopyFont(sender objc.IObject) - Copy(sender objc.IObject) + ReplaceCharactersInRangeWithRTFD(range_ foundation.Range, rtfdData []byte) + Underline(sender objc.IObject) + SetTextColorRange(color IColor, range_ foundation.Range) PasteRuler(sender objc.IObject) - RTFFromRange(range_ foundation.Range) []byte - RTFDFromRange(range_ foundation.Range) []byte - ScrollRangeToVisible(range_ foundation.Range) SelectAll(sender objc.IObject) + PasteFont(sender objc.IObject) + WriteRTFDToFileAtomically(path string, flag bool) bool + Delete(sender objc.IObject) + RTFFromRange(range_ foundation.Range) []byte AlignRight(sender objc.IObject) - Underline(sender objc.IObject) - ShowGuessPanel(sender objc.IObject) - ChangeFont(sender objc.IObject) + Superscript(sender objc.IObject) + ToggleRuler(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) - WriteRTFDToFileAtomically(path string, flag bool) bool - SizeToFit() - SetTextColorRange(color IColor, range_ foundation.Range) - ToggleRuler(sender objc.IObject) + AlignLeft(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) + SizeToFit() + ChangeFont(sender objc.IObject) + ReplaceCharactersInRangeWithString(range_ foundation.Range, string_ string) CheckSpelling(sender objc.IObject) - MaxSize() foundation.Size - SetMaxSize(value foundation.Size) - UsesFontPanel() bool - SetUsesFontPanel(value bool) + Copy(sender objc.IObject) + RTFDFromRange(range_ foundation.Range) []byte + MinSize() foundation.Size + SetMinSize(value foundation.Size) + IsRulerVisible() bool IsEditable() bool SetEditable(value bool) - Alignment() TextAlignment - SetAlignment(value TextAlignment) + Font() Font + SetFont(value IFont) + ImportsGraphics() bool + SetImportsGraphics(value bool) IsHorizontallyResizable() bool SetHorizontallyResizable(value bool) - SelectedRange() foundation.Range - SetSelectedRange(value foundation.Range) - MinSize() foundation.Size - SetMinSize(value foundation.Size) - Delegate() TextDelegateWrapper + Delegate() TextDelegateObject SetDelegate(value PTextDelegate) SetDelegateObject(valueObject objc.IObject) - BackgroundColor() Color - SetBackgroundColor(value IColor) - IsSelectable() bool - SetSelectable(value bool) - ImportsGraphics() bool - SetImportsGraphics(value bool) - String() string - SetString(value string) - DrawsBackground() bool - SetDrawsBackground(value bool) - Font() Font - SetFont(value IFont) - IsFieldEditor() bool - SetFieldEditor(value bool) 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) - IsRulerVisible() bool TextColor() Color SetTextColor(value IColor) + IsSelectable() bool + SetSelectable(value bool) + DrawsBackground() bool + SetDrawsBackground(value bool) + Alignment() TextAlignment + SetAlignment(value TextAlignment) BaseWritingDirection() WritingDirection SetBaseWritingDirection(value WritingDirection) + UsesFontPanel() bool + SetUsesFontPanel(value bool) + IsFieldEditor() bool + SetFieldEditor(value bool) + MaxSize() foundation.Size + SetMaxSize(value foundation.Size) } // The most general programmatic interface for objects that manage text. [Full Topic] @@ -122,10 +124,6 @@ func (tc _TextClass) Alloc() Text { return rv } -func Text_Alloc() Text { - return TextClass.Alloc() -} - func (tc _TextClass) New() Text { rv := objc.Call[Text](tc, objc.Sel("new")) rv.Autorelease() @@ -141,25 +139,25 @@ func (t_ Text) Init() Text { return rv } -// This action method deletes the selected text. [Full Topic] +// Replaces the characters in the given range with RTFD text interpreted from the given RTFD data. [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) +// [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) } -// 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 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:"), objc.Ptr(color), range_) } // This action method pastes paragraph style information from the ruler pasteboard onto the selected paragraphs of a rich text object. [Full Topic] @@ -169,34 +167,41 @@ func (t_ Text) PasteRuler(sender objc.IObject) { objc.Call[objc.Void](t_, objc.Sel("pasteRuler:"), 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] +// This action method selects all of the receiver’s text. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nstext/1527004-rtffromrange?language=objc -func (t_ Text) RTFFromRange(range_ foundation.Range) []byte { - rv := objc.Call[[]byte](t_, objc.Sel("RTFFromRange:"), range_) - return rv +// [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) } -// Returns an NSData object that contains an RTFD stream corresponding to the characters and attributes within aRange. [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/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/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 } -// Scrolls the receiver in its enclosing scroll view so the first characters of aRange are visible. [Full Topic] +// This action method deletes the selected text. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nstext/1529884-scrollrangetovisible?language=objc -func (t_ Text) ScrollRangeToVisible(range_ foundation.Range) { - objc.Call[objc.Void](t_, objc.Sel("scrollRangeToVisible:"), range_) +// [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) } -// This action method selects all of the receiver’s text. [Full Topic] +// 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/1527642-selectall?language=objc -func (t_ Text) SelectAll(sender objc.IObject) { - objc.Call[objc.Void](t_, objc.Sel("selectAll:"), sender) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nstext/1527004-rtffromrange?language=objc +func (t_ Text) RTFFromRange(range_ foundation.Range) []byte { + rv := objc.Call[[]byte](t_, objc.Sel("RTFFromRange:"), range_) + return rv } // This action method applies right alignment to selected paragraphs (or all text if the receiver is a plain text object). [Full Topic] @@ -206,25 +211,18 @@ func (t_ Text) AlignRight(sender objc.IObject) { objc.Call[objc.Void](t_, objc.Sel("alignRight:"), sender) } -// 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/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] +// 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/1533456-showguesspanel?language=objc -func (t_ Text) ShowGuessPanel(sender objc.IObject) { - objc.Call[objc.Void](t_, objc.Sel("showGuessPanel:"), sender) +// [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 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 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/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/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] @@ -234,25 +232,54 @@ 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] +// 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/1526283-setfont?language=objc -func (t_ Text) SetFontRange(font IFont, range_ foundation.Range) { - objc.Call[objc.Void](t_, objc.Sel("setFont:range:"), objc.Ptr(font), range_) +// [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) } -// This action method applies left alignment to selected paragraphs (or all text if the receiver is a plain text object). [Full Topic] +// Scrolls the receiver in its enclosing scroll view so the first characters of aRange are visible. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nstext/1535705-alignleft?language=objc -func (t_ Text) AlignLeft(sender objc.IObject) { - objc.Call[objc.Void](t_, objc.Sel("alignLeft:"), sender) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nstext/1529884-scrollrangetovisible?language=objc +func (t_ Text) ScrollRangeToVisible(range_ foundation.Range) { + objc.Call[objc.Void](t_, objc.Sel("scrollRangeToVisible:"), range_) } -// Replaces the characters in the given range with RTF text interpreted from the given RTF data. [Full Topic] +// 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/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/1524858-cut?language=objc +func (t_ Text) Cut(sender objc.IObject) { + objc.Call[objc.Void](t_, objc.Sel("cut:"), 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 +} + +// 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/1531255-copyfont?language=objc +func (t_ Text) CopyFont(sender objc.IObject) { + objc.Call[objc.Void](t_, objc.Sel("copyFont:"), sender) +} + +// This action method opens the Spelling panel, allowing the user to make a correction during spell checking. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/appkit/nstext/1533456-showguesspanel?language=objc +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] +// +// [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 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] @@ -262,6 +289,13 @@ func (t_ Text) Subscript(sender objc.IObject) { objc.Call[objc.Void](t_, objc.Sel("subscript:"), sender) } +// Sets the font of characters within aRange to aFont. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/appkit/nstext/1526283-setfont?language=objc +func (t_ Text) SetFontRange(font IFont, range_ foundation.Range) { + objc.Call[objc.Void](t_, objc.Sel("setFont:range:"), objc.Ptr(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 @@ -269,12 +303,18 @@ func (t_ Text) Paste(sender objc.IObject) { objc.Call[objc.Void](t_, objc.Sel("paste:"), sender) } -// Writes the receiver’s text as RTF with attachments to a file or directory at path. [Full Topic] +// 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/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 +// [Full Topic]: https://developer.apple.com/documentation/appkit/nstext/1535705-alignleft?language=objc +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] +// +// [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) } // Resizes the receiver to fit its text. [Full Topic] @@ -284,100 +324,65 @@ func (t_ Text) SizeToFit() { objc.Call[objc.Void](t_, objc.Sel("sizeToFit")) } -// Sets the text color of characters within the specified range to the specified color. [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/1530110-settextcolor?language=objc -func (t_ Text) SetTextColorRange(color IColor, range_ foundation.Range) { - objc.Call[objc.Void](t_, objc.Sel("setTextColor:range:"), objc.Ptr(color), range_) +// [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 shows or hides the ruler, if the receiver is enclosed in a scroll view. [Full Topic] +// Replaces the characters in the given range with those in the given string. [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) +// [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_) } -// This action method applies center alignment to selected paragraphs (or all text if the receiver is a plain text object). [Full Topic] +// This action method searches for a misspelled word in the receiver’s text. [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/1534926-checkspelling?language=objc +func (t_ Text) CheckSpelling(sender objc.IObject) { + objc.Call[objc.Void](t_, objc.Sel("checkSpelling:"), 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] +// 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/1525743-superscript?language=objc -func (t_ Text) Superscript(sender objc.IObject) { - objc.Call[objc.Void](t_, objc.Sel("superscript:"), sender) +// [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) } -// Attempts to read the RTFD file at path, returning YES if successful and NO if not. [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/1532564-readrtfdfromfile?language=objc -func (t_ Text) ReadRTFDFromFile(path string) bool { - rv := objc.Call[bool](t_, objc.Sel("readRTFDFromFile:"), path) +// [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 } -// 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) -} - -// 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] +// The receiver’s minimum 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")) +// [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 maximum size. [Full Topic] +// The receiver’s minimum size. [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/1526222-minsize?language=objc +func (t_ Text) SetMinSize(value foundation.Size) { + objc.Call[objc.Void](t_, objc.Sel("setMinSize:"), value) } -// A Boolean that controls whether the receiver uses the Font panel and Font menu. [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/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/1533732-rulervisible?language=objc +func (t_ Text) IsRulerVisible() bool { + rv := objc.Call[bool](t_, objc.Sel("isRulerVisible")) 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 @@ -393,19 +398,34 @@ func (t_ Text) SetEditable(value bool) { objc.Call[objc.Void](t_, objc.Sel("setEditable:"), 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:"), objc.Ptr(value)) +} + +// 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/1531887-importsgraphics?language=objc +func (t_ Text) ImportsGraphics() bool { + rv := objc.Call[bool](t_, objc.Sel("importsGraphics")) + return rv +} + +// 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/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 changes its width to fit the width of its text. [Full Topic] @@ -423,57 +443,57 @@ func (t_ Text) SetHorizontallyResizable(value bool) { objc.Call[objc.Void](t_, objc.Sel("setHorizontallyResizable:"), value) } -// The receiver’s characters within aRange. [Full Topic] +// The receiver’s delegate. [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")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nstext/1529480-delegate?language=objc +func (t_ Text) Delegate() TextDelegateObject { + rv := objc.Call[TextDelegateObject](t_, objc.Sel("delegate")) return rv } -// The receiver’s characters within aRange. [Full Topic] +// The receiver’s delegate. [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) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nstext/1529480-delegate?language=objc +func (t_ Text) SetDelegate(value PTextDelegate) { + po0 := objc.WrapAsProtocol("NSTextDelegate", value) + objc.Call[objc.Void](t_, objc.Sel("setDelegate:"), po0) } -// The receiver’s minimum size. [Full Topic] +// The receiver’s delegate. [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 +// [Full Topic]: https://developer.apple.com/documentation/appkit/nstext/1529480-delegate?language=objc +func (t_ Text) SetDelegateObject(valueObject objc.IObject) { + objc.Call[objc.Void](t_, objc.Sel("setDelegate:"), objc.Ptr(valueObject)) } -// The receiver’s minimum size. [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/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/1535082-verticallyresizable?language=objc +func (t_ Text) IsVerticallyResizable() bool { + rv := objc.Call[bool](t_, objc.Sel("isVerticallyResizable")) + return rv } -// The receiver’s delegate. [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/1529480-delegate?language=objc -func (t_ Text) Delegate() TextDelegateWrapper { - rv := objc.Call[TextDelegateWrapper](t_, objc.Sel("delegate")) - return rv +// [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 receiver’s delegate. [Full Topic] +// The characters of the receiver’s text. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nstext/1529480-delegate?language=objc -func (t_ Text) SetDelegate(value PTextDelegate) { - po0 := objc.WrapAsProtocol("NSTextDelegate", value) - objc.Call[objc.Void](t_, objc.Sel("setDelegate:"), po0) +// [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 receiver’s delegate. [Full Topic] +// The characters of the receiver’s text. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nstext/1529480-delegate?language=objc -func (t_ Text) SetDelegateObject(valueObject objc.IObject) { - objc.Call[objc.Void](t_, objc.Sel("setDelegate:"), objc.Ptr(valueObject)) +// [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] @@ -491,49 +511,64 @@ func (t_ Text) SetBackgroundColor(value IColor) { objc.Call[objc.Void](t_, objc.Sel("setBackgroundColor:"), objc.Ptr(value)) } -// A Boolean that controls whether the receiver allows the user to select its text. [Full Topic] +// The receiver’s characters within aRange. [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/1526227-selectedrange?language=objc +func (t_ Text) SelectedRange() foundation.Range { + rv := objc.Call[foundation.Range](t_, objc.Sel("selectedRange")) return rv } -// A Boolean that controls whether the receiver allows the user to select its text. [Full Topic] +// The receiver’s characters within aRange. [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/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 import files by dragging. [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/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/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 allows the user to import files by dragging. [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/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/1531003-richtext?language=objc +func (t_ Text) SetRichText(value bool) { + objc.Call[objc.Void](t_, objc.Sel("setRichText:"), value) } -// The characters of the receiver’s text. [Full Topic] +// The text color of all characters in the receiver. [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")) +// [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 characters of the receiver’s text. [Full Topic] +// The text color of all characters in the receiver. [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) +// [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:"), objc.Ptr(value)) +} + +// 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/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 select its 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) } // A Boolean that controls whether the receiver draws its background. [Full Topic] @@ -551,100 +586,77 @@ func (t_ Text) SetDrawsBackground(value bool) { objc.Call[objc.Void](t_, objc.Sel("setDrawsBackground:"), 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:"), objc.Ptr(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] +// The alignment of all the receiver’s 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/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 interprets Tab, Shift-Tab, and Return (Enter) as cues to end editing and possibly to change the first responder. [Full Topic] +// The alignment of all the receiver’s 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/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 height to fit the height of its text. [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/nstext/1535082-verticallyresizable?language=objc -func (t_ Text) IsVerticallyResizable() bool { - rv := objc.Call[bool](t_, objc.Sel("isVerticallyResizable")) +// [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 } -// A Boolean that controls whether the receiver changes its height to fit the height of its text. [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/nstext/1535082-verticallyresizable?language=objc -func (t_ Text) SetVerticallyResizable(value bool) { - objc.Call[objc.Void](t_, objc.Sel("setVerticallyResizable:"), value) +// [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) } -// 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 uses the Font panel and Font menu. [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/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 allows the user to apply attributes to specific ranges of the 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) -} - -// 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")) - return rv +// [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) } -// The text color of all characters in the receiver. [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/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/1533080-fieldeditor?language=objc +func (t_ Text) IsFieldEditor() bool { + rv := objc.Call[bool](t_, objc.Sel("isFieldEditor")) return rv } -// The text color of all characters in the receiver. [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/1534875-textcolor?language=objc -func (t_ Text) SetTextColor(value IColor) { - objc.Call[objc.Void](t_, objc.Sel("setTextColor:"), objc.Ptr(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) } -// The initial writing direction used to determine the actual writing direction for text. [Full Topic] +// The receiver’s maximum size. [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/1535900-maxsize?language=objc +func (t_ Text) MaxSize() foundation.Size { + rv := objc.Call[foundation.Size](t_, objc.Sel("maxSize")) return rv } -// The initial writing direction used to determine the actual writing direction for text. [Full Topic] +// The receiver’s maximum size. [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/1535900-maxsize?language=objc +func (t_ Text) SetMaxSize(value foundation.Size) { + objc.Call[objc.Void](t_, objc.Sel("setMaxSize:"), value) } diff --git a/macos/appkit/text_alternatives.gen.go b/macos/appkit/text_alternatives.gen.go index c2d70032..d48df68a 100644 --- a/macos/appkit/text_alternatives.gen.go +++ b/macos/appkit/text_alternatives.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package appkit @@ -19,8 +19,8 @@ type _TextAlternativesClass struct { type ITextAlternatives interface { objc.IObject NoteSelectedAlternativeString(alternativeString string) - PrimaryString() string AlternativeStrings() []string + PrimaryString() string } // A list of alternative strings for a piece of text. [Full Topic] @@ -55,10 +55,6 @@ func (tc _TextAlternativesClass) Alloc() TextAlternatives { return rv } -func TextAlternatives_Alloc() TextAlternatives { - return TextAlternativesClass.Alloc() -} - func (tc _TextAlternativesClass) New() TextAlternatives { rv := objc.Call[TextAlternatives](tc, objc.Sel("new")) rv.Autorelease() @@ -81,14 +77,6 @@ func (t_ TextAlternatives) NoteSelectedAlternativeString(alternativeString strin objc.Call[objc.Void](t_, objc.Sel("noteSelectedAlternativeString:"), alternativeString) } -// 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 -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 @@ -96,3 +84,11 @@ 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 +func (t_ TextAlternatives) PrimaryString() string { + rv := objc.Call[string](t_, objc.Sel("primaryString")) + return rv +} diff --git a/macos/appkit/text_attachment.gen.go b/macos/appkit/text_attachment.gen.go index 263e04ab..13fa39c7 100644 --- a/macos/appkit/text_attachment.gen.go +++ b/macos/appkit/text_attachment.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package appkit @@ -20,23 +20,24 @@ type _TextAttachmentClass struct { // An interface definition for the [TextAttachment] class. type ITextAttachment interface { objc.IObject - FileWrapper() foundation.FileWrapper - SetFileWrapper(value foundation.IFileWrapper) - LineLayoutPadding() float64 - SetLineLayoutPadding(value float64) + 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) - UsesTextAttachmentView() bool - FileType() string - SetFileType(value string) - Contents() []byte - SetContents(value []byte) - AttachmentCell() objc.Object - SetAttachmentCell(value objc.IObject) - Image() Image - SetImage(value IImage) + LineLayoutPadding() float64 + SetLineLayoutPadding(value float64) } // The values for the attachment characteristics of attributed strings and related objects. [Full Topic] @@ -52,30 +53,30 @@ func TextAttachmentFrom(ptr unsafe.Pointer) TextAttachment { } } -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:"), objc.Ptr(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 } -func (t_ TextAttachment) InitWithFileWrapper(fileWrapper foundation.IFileWrapper) TextAttachment { - rv := objc.Call[TextAttachment](t_, objc.Sel("initWithFileWrapper:"), objc.Ptr(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 } @@ -85,10 +86,6 @@ func (tc _TextAttachmentClass) Alloc() TextAttachment { return rv } -func TextAttachment_Alloc() TextAttachment { - return TextAttachmentClass.Alloc() -} - func (tc _TextAttachmentClass) New() TextAttachment { rv := objc.Call[TextAttachment](tc, objc.Sel("new")) rv.Autorelease() @@ -104,21 +101,6 @@ func (t_ TextAttachment) Init() TextAttachment { return rv } -// 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 -func (tc _TextAttachmentClass) TextAttachmentViewProviderClassForFileType(fileType string) objc.Class { - rv := objc.Call[objc.Class](tc, objc.Sel("textAttachmentViewProviderClassForFileType:"), fileType) - return rv -} - -// 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 -func TextAttachment_TextAttachmentViewProviderClassForFileType(fileType string) objc.Class { - return TextAttachmentClass.TextAttachmentViewProviderClassForFileType(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 @@ -133,72 +115,72 @@ func TextAttachment_RegisterTextAttachmentViewProviderClassForFileType(textAttac TextAttachmentClass.RegisterTextAttachmentViewProviderClassForFileType(textAttachmentViewProviderClass, fileType) } -// The text attachment’s file wrapper. [Full Topic] +// 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/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/3857587-textattachmentviewproviderclassf?language=objc +func (tc _TextAttachmentClass) TextAttachmentViewProviderClassForFileType(fileType string) objc.Class { + rv := objc.Call[objc.Class](tc, objc.Sel("textAttachmentViewProviderClassForFileType:"), fileType) return rv } -// The text attachment’s file wrapper. [Full Topic] +// 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/1508398-filewrapper?language=objc -func (t_ TextAttachment) SetFileWrapper(value foundation.IFileWrapper) { - objc.Call[objc.Void](t_, objc.Sel("setFileWrapper:"), objc.Ptr(value)) +// [Full Topic]: https://developer.apple.com/documentation/uikit/nstextattachment/3857587-textattachmentviewproviderclassf?language=objc +func TextAttachment_TextAttachmentViewProviderClassForFileType(fileType string) objc.Class { + return TextAttachmentClass.TextAttachmentViewProviderClassForFileType(fileType) } -// The layout padding before and after the text attachment bounds. [Full Topic] +// The object that draws the icon for the text attachment and handles mouse events. [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/appkit/nstextattachment/1508413-attachmentcell?language=objc +func (t_ TextAttachment) AttachmentCell() TextAttachmentCellObject { + rv := objc.Call[TextAttachmentCellObject](t_, objc.Sel("attachmentCell")) return rv } -// The layout padding before and after the text attachment bounds. [Full Topic] +// The object that draws the icon for the text attachment and handles mouse events. [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/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 layout bounds of the text attachment’s graphical representation in the text coordinate system. [Full Topic] +// The object that draws the icon for the text attachment and handles mouse events. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/uikit/nstextattachment/1508394-bounds?language=objc -func (t_ TextAttachment) Bounds() coregraphics.Rect { - rv := objc.Call[coregraphics.Rect](t_, objc.Sel("bounds")) - return rv +// [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:"), objc.Ptr(valueObject)) } -// The layout bounds of the text attachment’s graphical representation in the text coordinate system. [Full Topic] +// 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/1508394-bounds?language=objc -func (t_ TextAttachment) SetBounds(value coregraphics.Rect) { - objc.Call[objc.Void](t_, objc.Sel("setBounds:"), value) +// [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 } -// A Boolean value that determines whether the text attachment uses text attachment views. [Full Topic] +// 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/3857584-allowstextattachmentview?language=objc -func (t_ TextAttachment) AllowsTextAttachmentView() bool { - rv := objc.Call[bool](t_, objc.Sel("allowsTextAttachmentView")) - return rv +// [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:"), objc.Ptr(value)) } -// A Boolean value that determines whether the text attachment uses text attachment views. [Full Topic] +// 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/1508401-contents?language=objc +func (t_ TextAttachment) Contents() []byte { + rv := objc.Call[[]byte](t_, objc.Sel("contents")) + return rv } -// A Boolean value that indicates whether the text attachment uses text attachment views. [Full Topic] +// The contents for the text attachment. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/uikit/nstextattachment/3857588-usestextattachmentview?language=objc -func (t_ TextAttachment) UsesTextAttachmentView() bool { - rv := objc.Call[bool](t_, objc.Sel("usesTextAttachmentView")) - return rv +// [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 file type of the contents for the text attachment. [Full Topic] @@ -216,47 +198,70 @@ func (t_ TextAttachment) SetFileType(value string) { objc.Call[objc.Void](t_, objc.Sel("setFileType:"), value) } -// The contents for the text attachment. [Full Topic] +// The layout bounds of the text attachment’s graphical representation in the text coordinate system. [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/1508394-bounds?language=objc +func (t_ TextAttachment) Bounds() coregraphics.Rect { + rv := objc.Call[coregraphics.Rect](t_, objc.Sel("bounds")) return rv } -// The contents for the text attachment. [Full Topic] +// The layout bounds of the text attachment’s graphical representation in the text coordinate system. [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/1508394-bounds?language=objc +func (t_ TextAttachment) SetBounds(value coregraphics.Rect) { + objc.Call[objc.Void](t_, objc.Sel("setBounds:"), value) } -// The object that draws the icon for the text attachment and handles mouse events. [Full Topic] +// The text attachment’s file wrapper. [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")) +// [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 object that draws the icon for the text attachment and handles mouse events. [Full Topic] +// The text attachment’s file wrapper. [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) +// [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:"), objc.Ptr(value)) } -// An instance of the relevant image class that represents the contents of the text attachment object. [Full Topic] +// A Boolean value that indicates whether the text attachment uses text attachment views. [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")) +// [Full Topic]: https://developer.apple.com/documentation/uikit/nstextattachment/3857588-usestextattachmentview?language=objc +func (t_ TextAttachment) UsesTextAttachmentView() bool { + rv := objc.Call[bool](t_, objc.Sel("usesTextAttachmentView")) return rv } -// An instance of the relevant image class that represents the contents of the text attachment object. [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/1508378-image?language=objc -func (t_ TextAttachment) SetImage(value IImage) { - objc.Call[objc.Void](t_, objc.Sel("setImage:"), objc.Ptr(value)) +// [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 +} + +// A Boolean value that determines whether the text attachment uses text attachment views. [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) +} + +// The layout padding before and after the text attachment bounds. [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")) + return rv +} + +// The layout padding before and after the text attachment bounds. [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) } diff --git a/macos/appkit/text_attachment_cell.gen.go b/macos/appkit/text_attachment_cell.gen.go index 7493aa6d..0d5dcfd2 100644 --- a/macos/appkit/text_attachment_cell.gen.go +++ b/macos/appkit/text_attachment_cell.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package appkit @@ -19,11 +19,12 @@ type _TextAttachmentCellClass struct { // An interface definition for the [TextAttachmentCell] class. type ITextAttachmentCell interface { ICell - WantsToTrackMouseForEventInRectOfViewAtCharacterIndex(theEvent IEvent, cellFrame foundation.Rect, controlView IView, charIndex uint) bool - WantsToTrackMouse() bool + CellFrameForTextContainerProposedLineFragmentGlyphPositionCharacterIndex(textContainer ITextContainer, lineFrag foundation.Rect, position foundation.Point, charIndex uint) foundation.Rect DrawWithFrameInViewCharacterIndex(cellFrame foundation.Rect, controlView IView, charIndex uint) CellBaselineOffset() foundation.Point - CellFrameForTextContainerProposedLineFragmentGlyphPositionCharacterIndex(textContainer ITextContainer, lineFrag foundation.Rect, position foundation.Point, charIndex uint) foundation.Rect + DrawWithFrameInViewCharacterIndexLayoutManager(cellFrame foundation.Rect, controlView IView, charIndex uint, layoutManager ILayoutManager) + WantsToTrackMouseForEventInRectOfViewAtCharacterIndex(theEvent IEvent, cellFrame foundation.Rect, controlView IView, charIndex uint) bool + WantsToTrackMouse() bool TrackMouseInRectOfViewAtCharacterIndexUntilMouseUp(theEvent IEvent, cellFrame foundation.Rect, controlView IView, charIndex uint, flag bool) bool Attachment() TextAttachment SetAttachment(value ITextAttachment) @@ -47,10 +48,6 @@ func (tc _TextAttachmentCellClass) Alloc() TextAttachmentCell { return rv } -func TextAttachmentCell_Alloc() TextAttachmentCell { - return TextAttachmentCellClass.Alloc() -} - func (tc _TextAttachmentCellClass) New() TextAttachmentCell { rv := objc.Call[TextAttachmentCell](tc, objc.Sel("new")) rv.Autorelease() @@ -94,19 +91,11 @@ func NewTextAttachmentCellTextCell(string_ string) TextAttachmentCell { return instance } -// 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:"), objc.Ptr(theEvent), cellFrame, objc.Ptr(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:"), objc.Ptr(textContainer), lineFrag, position, charIndex) return rv } @@ -125,11 +114,26 @@ func (t_ TextAttachmentCell) CellBaselineOffset() foundation.Point { return rv } -// Returns the frame of the cell to draw at the specified position in a text container. [Full Topic] +// Draws the cell's image using the specified layout manager. [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:"), objc.Ptr(textContainer), lineFrag, position, charIndex) +// [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, objc.Ptr(controlView), charIndex, objc.Ptr(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:"), objc.Ptr(theEvent), cellFrame, objc.Ptr(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 } diff --git a/macos/appkit/text_attachment_cell_protocol.gen.go b/macos/appkit/text_attachment_cell_protocol.gen.go new file mode 100644 index 00000000..9fdc719d --- /dev/null +++ b/macos/appkit/text_attachment_cell_protocol.gen.go @@ -0,0 +1,224 @@ +// Code generated by DarwinKit. DO NOT EDIT. + +package appkit + +import ( + "github.com/progrium/macdriver/macos/foundation" + "github.com/progrium/macdriver/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, objc.Ptr(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:"), objc.Ptr(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, objc.Ptr(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, objc.Ptr(controlView), charIndex, objc.Ptr(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:"), objc.Ptr(theEvent), cellFrame, objc.Ptr(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:"), objc.Ptr(theEvent), cellFrame, objc.Ptr(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:"), objc.Ptr(theEvent), cellFrame, objc.Ptr(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, objc.Ptr(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:"), objc.Ptr(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_container.gen.go b/macos/appkit/text_attachment_container_protocol.gen.go similarity index 66% rename from macos/appkit/text_attachment_container.gen.go rename to macos/appkit/text_attachment_container_protocol.gen.go index 0e2c929b..12754f3f 100644 --- a/macos/appkit/text_attachment_container.gen.go +++ b/macos/appkit/text_attachment_container_protocol.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package appkit @@ -12,7 +12,7 @@ import ( // [Full Topic]: https://developer.apple.com/documentation/uikit/nstextattachmentcontainer?language=objc type PTextAttachmentContainer interface { // optional - ImageForBoundsTextContainerCharacterIndex(imageBounds coregraphics.Rect, textContainer TextContainer, charIndex uint) IImage + ImageForBoundsTextContainerCharacterIndex(imageBounds coregraphics.Rect, textContainer TextContainer, charIndex uint) Image HasImageForBoundsTextContainerCharacterIndex() bool // optional @@ -20,31 +20,34 @@ type PTextAttachmentContainer interface { HasAttachmentBoundsForTextContainerProposedLineFragmentGlyphPositionCharacterIndex() bool } -// A concrete type wrapper for the [PTextAttachmentContainer] protocol. -type TextAttachmentContainerWrapper struct { +// ensure impl type implements protocol interface +var _ PTextAttachmentContainer = (*TextAttachmentContainerObject)(nil) + +// A concrete type for the [PTextAttachmentContainer] protocol. +type TextAttachmentContainerObject struct { objc.Object } -func (t_ TextAttachmentContainerWrapper) HasImageForBoundsTextContainerCharacterIndex() bool { +func (t_ TextAttachmentContainerObject) HasImageForBoundsTextContainerCharacterIndex() bool { return t_.RespondsToSelector(objc.Sel("imageForBounds:textContainer:characterIndex:")) } // Returns the image object that the layout manager renders in the specified image bounds rectangle inside the text container. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/uikit/nstextattachmentcontainer/1508386-imageforbounds?language=objc -func (t_ TextAttachmentContainerWrapper) ImageForBoundsTextContainerCharacterIndex(imageBounds coregraphics.Rect, textContainer ITextContainer, charIndex uint) Image { +func (t_ TextAttachmentContainerObject) ImageForBoundsTextContainerCharacterIndex(imageBounds coregraphics.Rect, textContainer TextContainer, charIndex uint) Image { rv := objc.Call[Image](t_, objc.Sel("imageForBounds:textContainer:characterIndex:"), imageBounds, objc.Ptr(textContainer), charIndex) return rv } -func (t_ TextAttachmentContainerWrapper) HasAttachmentBoundsForTextContainerProposedLineFragmentGlyphPositionCharacterIndex() bool { +func (t_ TextAttachmentContainerObject) HasAttachmentBoundsForTextContainerProposedLineFragmentGlyphPositionCharacterIndex() bool { return t_.RespondsToSelector(objc.Sel("attachmentBoundsForTextContainer:proposedLineFragment:glyphPosition:characterIndex:")) } // Returns the layout bounds of the text attachment to the layout manager. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/uikit/nstextattachmentcontainer/1508382-attachmentboundsfortextcontainer?language=objc -func (t_ TextAttachmentContainerWrapper) AttachmentBoundsForTextContainerProposedLineFragmentGlyphPositionCharacterIndex(textContainer ITextContainer, lineFrag coregraphics.Rect, position coregraphics.Point, charIndex uint) coregraphics.Rect { +func (t_ TextAttachmentContainerObject) AttachmentBoundsForTextContainerProposedLineFragmentGlyphPositionCharacterIndex(textContainer TextContainer, lineFrag coregraphics.Rect, position coregraphics.Point, charIndex uint) coregraphics.Rect { rv := objc.Call[coregraphics.Rect](t_, objc.Sel("attachmentBoundsForTextContainer:proposedLineFragment:glyphPosition:characterIndex:"), objc.Ptr(textContainer), lineFrag, position, charIndex) return rv } diff --git a/macos/appkit/text_attachment_layout.gen.go b/macos/appkit/text_attachment_layout_protocol.gen.go similarity index 62% rename from macos/appkit/text_attachment_layout.gen.go rename to macos/appkit/text_attachment_layout_protocol.gen.go index 3819fae4..53fe5ead 100644 --- a/macos/appkit/text_attachment_layout.gen.go +++ b/macos/appkit/text_attachment_layout_protocol.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package appkit @@ -13,57 +13,60 @@ import ( // [Full Topic]: https://developer.apple.com/documentation/uikit/nstextattachmentlayout?language=objc type PTextAttachmentLayout interface { // optional - ImageForBoundsAttributesLocationTextContainer(bounds coregraphics.Rect, attributes map[foundation.AttributedStringKey]objc.Object, location TextLocationWrapper, textContainer TextContainer) IImage - HasImageForBoundsAttributesLocationTextContainer() bool + AttachmentBoundsForAttributesLocationTextContainerProposedLineFragmentPosition(attributes map[foundation.AttributedStringKey]objc.Object, location TextLocationObject, textContainer TextContainer, proposedLineFragment coregraphics.Rect, position coregraphics.Point) coregraphics.Rect + HasAttachmentBoundsForAttributesLocationTextContainerProposedLineFragmentPosition() bool // optional - AttachmentBoundsForAttributesLocationTextContainerProposedLineFragmentPosition(attributes map[foundation.AttributedStringKey]objc.Object, location TextLocationWrapper, textContainer TextContainer, proposedLineFragment coregraphics.Rect, position coregraphics.Point) coregraphics.Rect - HasAttachmentBoundsForAttributesLocationTextContainerProposedLineFragmentPosition() bool + ImageForBoundsAttributesLocationTextContainer(bounds coregraphics.Rect, attributes map[foundation.AttributedStringKey]objc.Object, location TextLocationObject, textContainer TextContainer) Image + HasImageForBoundsAttributesLocationTextContainer() bool // optional - ViewProviderForParentViewLocationTextContainer(parentView View, location TextLocationWrapper, textContainer TextContainer) ITextAttachmentViewProvider + ViewProviderForParentViewLocationTextContainer(parentView View, location TextLocationObject, textContainer TextContainer) TextAttachmentViewProvider HasViewProviderForParentViewLocationTextContainer() bool } -// A concrete type wrapper for the [PTextAttachmentLayout] protocol. -type TextAttachmentLayoutWrapper struct { +// ensure impl type implements protocol interface +var _ PTextAttachmentLayout = (*TextAttachmentLayoutObject)(nil) + +// A concrete type for the [PTextAttachmentLayout] protocol. +type TextAttachmentLayoutObject struct { objc.Object } -func (t_ TextAttachmentLayoutWrapper) HasImageForBoundsAttributesLocationTextContainer() bool { - return t_.RespondsToSelector(objc.Sel("imageForBounds:attributes:location:textContainer:")) +func (t_ TextAttachmentLayoutObject) HasAttachmentBoundsForAttributesLocationTextContainerProposedLineFragmentPosition() bool { + return t_.RespondsToSelector(objc.Sel("attachmentBoundsForAttributes:location:textContainer:proposedLineFragment:position:")) } -// Returns the image object rendered at the bounds and inside the text container you specify. [Full Topic] +// Returns the layout bounds of the attachment you specify. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/uikit/nstextattachmentlayout/3857591-imageforbounds?language=objc -func (t_ TextAttachmentLayoutWrapper) ImageForBoundsAttributesLocationTextContainer(bounds coregraphics.Rect, attributes map[foundation.AttributedStringKey]objc.IObject, location PTextLocation, textContainer ITextContainer) Image { - po2 := objc.WrapAsProtocol("NSTextLocation", location) - rv := objc.Call[Image](t_, objc.Sel("imageForBounds:attributes:location:textContainer:"), bounds, attributes, po2, objc.Ptr(textContainer)) +// [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, objc.Ptr(textContainer), proposedLineFragment, position) return rv } -func (t_ TextAttachmentLayoutWrapper) HasAttachmentBoundsForAttributesLocationTextContainerProposedLineFragmentPosition() bool { - return t_.RespondsToSelector(objc.Sel("attachmentBoundsForAttributes:location:textContainer:proposedLineFragment:position:")) +func (t_ TextAttachmentLayoutObject) HasImageForBoundsAttributesLocationTextContainer() bool { + return t_.RespondsToSelector(objc.Sel("imageForBounds:attributes:location:textContainer:")) } -// Returns the layout bounds of the attachment you specify. [Full Topic] +// Returns the image object rendered at the bounds and inside the text container you specify. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/uikit/nstextattachmentlayout/3857590-attachmentboundsforattributes?language=objc -func (t_ TextAttachmentLayoutWrapper) AttachmentBoundsForAttributesLocationTextContainerProposedLineFragmentPosition(attributes map[foundation.AttributedStringKey]objc.IObject, location PTextLocation, textContainer ITextContainer, 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, objc.Ptr(textContainer), proposedLineFragment, position) +// [Full Topic]: https://developer.apple.com/documentation/uikit/nstextattachmentlayout/3857591-imageforbounds?language=objc +func (t_ TextAttachmentLayoutObject) ImageForBoundsAttributesLocationTextContainer(bounds coregraphics.Rect, attributes map[foundation.AttributedStringKey]objc.Object, location TextLocationObject, textContainer TextContainer) Image { + po2 := objc.WrapAsProtocol("NSTextLocation", location) + rv := objc.Call[Image](t_, objc.Sel("imageForBounds:attributes:location:textContainer:"), bounds, attributes, po2, objc.Ptr(textContainer)) return rv } -func (t_ TextAttachmentLayoutWrapper) HasViewProviderForParentViewLocationTextContainer() bool { +func (t_ TextAttachmentLayoutObject) HasViewProviderForParentViewLocationTextContainer() bool { return t_.RespondsToSelector(objc.Sel("viewProviderForParentView:location:textContainer:")) } // Returns the text attachment view provider corresponding to the file type. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/uikit/nstextattachmentlayout/3857592-viewproviderforparentview?language=objc -func (t_ TextAttachmentLayoutWrapper) ViewProviderForParentViewLocationTextContainer(parentView IView, location PTextLocation, textContainer ITextContainer) TextAttachmentViewProvider { +func (t_ TextAttachmentLayoutObject) ViewProviderForParentViewLocationTextContainer(parentView View, location TextLocationObject, textContainer TextContainer) TextAttachmentViewProvider { po1 := objc.WrapAsProtocol("NSTextLocation", location) rv := objc.Call[TextAttachmentViewProvider](t_, objc.Sel("viewProviderForParentView:location:textContainer:"), objc.Ptr(parentView), po1, objc.Ptr(textContainer)) return rv diff --git a/macos/appkit/text_attachment_view_provider.gen.go b/macos/appkit/text_attachment_view_provider.gen.go index fe82e088..b09b71c4 100644 --- a/macos/appkit/text_attachment_view_provider.gen.go +++ b/macos/appkit/text_attachment_view_provider.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package appkit @@ -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 - LoadView() + Location() TextLocationObject + TextAttachment() TextAttachment TextLayoutManager() TextLayoutManager - Location() TextLocationWrapper 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] @@ -65,10 +65,6 @@ func (tc _TextAttachmentViewProviderClass) Alloc() TextAttachmentViewProvider { return rv } -func TextAttachmentViewProvider_Alloc() TextAttachmentViewProvider { - return TextAttachmentViewProviderClass.Alloc() -} - func (tc _TextAttachmentViewProviderClass) New() TextAttachmentViewProvider { rv := objc.Call[TextAttachmentViewProvider](tc, objc.Sel("new")) rv.Autorelease() @@ -84,6 +80,13 @@ 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 @@ -101,26 +104,27 @@ func (t_ TextAttachmentViewProvider) AttachmentBoundsForAttributesLocationObject return rv } -// Draws the custom view hierarchy that text attachment view subclasses implement. [Full Topic] +// The location that indicates the start of the text attachment. [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")) +// [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 layout manager for this view. [Full Topic] +// The text attachment for this view. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/uikit/nstextattachmentviewprovider/3857599-textlayoutmanager?language=objc -func (t_ TextAttachmentViewProvider) TextLayoutManager() TextLayoutManager { - rv := objc.Call[TextLayoutManager](t_, objc.Sel("textLayoutManager")) +// [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 } -// The location that indicates the start of the text attachment. [Full Topic] +// The text layout manager for this view. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/uikit/nstextattachmentviewprovider/3857597-location?language=objc -func (t_ TextAttachmentViewProvider) Location() TextLocationWrapper { - rv := objc.Call[TextLocationWrapper](t_, objc.Sel("location")) +// [Full Topic]: https://developer.apple.com/documentation/uikit/nstextattachmentviewprovider/3857599-textlayoutmanager?language=objc +func (t_ TextAttachmentViewProvider) TextLayoutManager() TextLayoutManager { + rv := objc.Call[TextLayoutManager](t_, objc.Sel("textLayoutManager")) return rv } @@ -153,11 +157,3 @@ 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 72eb46eb..56618b4d 100644 --- a/macos/appkit/text_block.gen.go +++ b/macos/appkit/text_block.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package appkit @@ -19,24 +19,26 @@ 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) - SetBorderColor(color IColor) - BoundsRectForContentRectInRectTextContainerCharacterRange(contentRect foundation.Rect, rect foundation.Rect, textContainer ITextContainer, charRange foundation.Range) foundation.Rect + ValueForDimension(dimension TextBlockDimension) float64 + SetBorderColorForEdge(color IColor, edge foundation.RectEdge) WidthValueTypeForLayerEdge(layer TextBlockLayer, edge foundation.RectEdge) TextBlockValueType - SetWidthTypeForLayer(val float64, type_ TextBlockValueType, layer TextBlockLayer) - WidthForLayerEdge(layer TextBlockLayer, edge foundation.RectEdge) float64 SetValueTypeForDimension(val float64, type_ TextBlockValueType, dimension TextBlockDimension) - ValueTypeForDimension(dimension TextBlockDimension) TextBlockValueType + 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) - VerticalAlignment() TextBlockVerticalAlignment - SetVerticalAlignment(value TextBlockVerticalAlignment) + 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 + SetWidthTypeForLayer(val float64, type_ TextBlockValueType, layer TextBlockLayer) + ContentWidth() float64 + ContentWidthValueType() TextBlockValueType BackgroundColor() Color SetBackgroundColor(value IColor) - ContentWidthValueType() TextBlockValueType - ContentWidth() float64 + VerticalAlignment() TextBlockVerticalAlignment + SetVerticalAlignment(value TextBlockVerticalAlignment) } // A block of text laid out in a subregion of the text container. [Full Topic] @@ -62,10 +64,6 @@ func (tc _TextBlockClass) Alloc() TextBlock { return rv } -func TextBlock_Alloc() TextBlock { - return TextBlockClass.Alloc() -} - func (tc _TextBlockClass) New() TextBlock { rv := objc.Call[TextBlock](tc, objc.Sel("new")) rv.Autorelease() @@ -76,22 +74,6 @@ 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, objc.Ptr(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 @@ -107,19 +89,19 @@ func (t_ TextBlock) DrawBackgroundWithFrameInViewCharacterRangeLayoutManager(fra objc.Call[objc.Void](t_, objc.Sel("drawBackgroundWithFrame:inView:characterRange:layoutManager:"), frameRect, objc.Ptr(controlView), charRange, objc.Ptr(layoutManager)) } -// Sets the color of all borders of the text block. [Full Topic] +// Returns the value of the specified text block dimension. [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:"), objc.Ptr(color)) +// [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 the text in the block actually occupies, including padding, borders, and margins. [Full Topic] +// Sets the border color of the specified edge of the text block. [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, objc.Ptr(textContainer), charRange) - return rv +// [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:"), objc.Ptr(color), edge) } // Returns the value type of an edge of a specified layer of the text block. [Full Topic] @@ -130,11 +112,11 @@ func (t_ TextBlock) WidthValueTypeForLayerEdge(layer TextBlockLayer, edge founda return rv } -// Sets the width of all edges 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/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/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 width of an edge of a specified layer of the text block. [Full Topic] @@ -145,18 +127,18 @@ func (t_ TextBlock) WidthForLayerEdge(layer TextBlockLayer, edge foundation.Rect return rv } -// Sets a dimension of the text block. [Full Topic] +// Sets the color of all borders 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/1531850-setbordercolor?language=objc +func (t_ TextBlock) SetBorderColor(color IColor) { + objc.Call[objc.Void](t_, objc.Sel("setBorderColor:"), objc.Ptr(color)) } -// Returns the value type of the specified text block dimension. [Full Topic] +// 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/1530561-valuetypefordimension?language=objc -func (t_ TextBlock) ValueTypeForDimension(dimension TextBlockDimension) TextBlockValueType { - rv := objc.Call[TextBlockValueType](t_, objc.Sel("valueTypeForDimension:"), dimension) +// [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, objc.Ptr(textContainer), charRange) return rv } @@ -167,19 +149,50 @@ func (t_ TextBlock) SetContentWidthType(val float64, type_ TextBlockValueType) { objc.Call[objc.Void](t_, objc.Sel("setContentWidth:type:"), val, type_) } -// The vertical alignment of the text block. [Full Topic] +// Sets the width of a specified edge of a specified layer of the text block. [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/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) +} + +// Returns the value type of the specified text block dimension. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/appkit/nstextblock/1530561-valuetypefordimension?language=objc +func (t_ TextBlock) ValueTypeForDimension(dimension TextBlockDimension) TextBlockValueType { + rv := objc.Call[TextBlockValueType](t_, objc.Sel("valueTypeForDimension:"), dimension) return rv } -// The vertical alignment 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/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/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, objc.Ptr(textContainer), charRange) + return rv +} + +// 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/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) +} + +// The width 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")) + return rv +} + +// The type of value stored for the text block width. [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 } // The background color of the text block. [Full Topic] @@ -197,18 +210,17 @@ func (t_ TextBlock) SetBackgroundColor(value IColor) { objc.Call[objc.Void](t_, objc.Sel("setBackgroundColor:"), objc.Ptr(value)) } -// 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")) +// [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 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")) - 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) } diff --git a/macos/appkit/text_checking_client.gen.go b/macos/appkit/text_checking_client_protocol.gen.go similarity index 65% rename from macos/appkit/text_checking_client.gen.go rename to macos/appkit/text_checking_client_protocol.gen.go index 38c666e3..6b3ea2dc 100644 --- a/macos/appkit/text_checking_client.gen.go +++ b/macos/appkit/text_checking_client_protocol.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package appkit @@ -12,130 +12,133 @@ import ( // [Full Topic]: https://developer.apple.com/documentation/appkit/nstextcheckingclient?language=objc type PTextCheckingClient interface { // optional - RemoveAnnotationRange(annotationName foundation.AttributedStringKey, range_ foundation.Range) - HasRemoveAnnotationRange() bool + SelectAndShowRange(range_ foundation.Range) + HasSelectAndShowRange() bool // optional - ViewForRangeFirstRectActualRange(range_ foundation.Range, firstRect foundation.RectPointer, actualRange foundation.RangePointer) IView + ViewForRangeFirstRectActualRange(range_ foundation.Range, firstRect foundation.RectPointer, actualRange foundation.RangePointer) View HasViewForRangeFirstRectActualRange() bool // optional - AddAnnotationsRange(annotations map[foundation.AttributedStringKey]string, range_ foundation.Range) - HasAddAnnotationsRange() bool + AnnotatedSubstringForProposedRangeActualRange(range_ foundation.Range, actualRange foundation.RangePointer) foundation.AttributedString + HasAnnotatedSubstringForProposedRangeActualRange() bool // optional - SetAnnotationsRange(annotations map[foundation.AttributedStringKey]string, range_ foundation.Range) - HasSetAnnotationsRange() bool + ReplaceCharactersInRangeWithAnnotatedString(range_ foundation.Range, annotatedString foundation.AttributedString) + HasReplaceCharactersInRangeWithAnnotatedString() bool // optional - CandidateListTouchBarItem() ICandidateListTouchBarItem - HasCandidateListTouchBarItem() bool + AddAnnotationsRange(annotations map[foundation.AttributedStringKey]string, range_ foundation.Range) + HasAddAnnotationsRange() bool // optional - ReplaceCharactersInRangeWithAnnotatedString(range_ foundation.Range, annotatedString foundation.AttributedString) - HasReplaceCharactersInRangeWithAnnotatedString() bool + SetAnnotationsRange(annotations map[foundation.AttributedStringKey]string, range_ foundation.Range) + HasSetAnnotationsRange() bool // optional - AnnotatedSubstringForProposedRangeActualRange(range_ foundation.Range, actualRange foundation.RangePointer) foundation.IAttributedString - HasAnnotatedSubstringForProposedRangeActualRange() bool + RemoveAnnotationRange(annotationName foundation.AttributedStringKey, range_ foundation.Range) + HasRemoveAnnotationRange() bool // optional - SelectAndShowRange(range_ foundation.Range) - HasSelectAndShowRange() bool + CandidateListTouchBarItem() CandidateListTouchBarItem + HasCandidateListTouchBarItem() bool } -// A concrete type wrapper for the [PTextCheckingClient] protocol. -type TextCheckingClientWrapper struct { +// ensure impl type implements protocol interface +var _ PTextCheckingClient = (*TextCheckingClientObject)(nil) + +// A concrete type for the [PTextCheckingClient] protocol. +type TextCheckingClientObject struct { objc.Object } -func (t_ TextCheckingClientWrapper) HasRemoveAnnotationRange() bool { - return t_.RespondsToSelector(objc.Sel("removeAnnotation:range:")) +func (t_ TextCheckingClientObject) HasSelectAndShowRange() bool { + return t_.RespondsToSelector(objc.Sel("selectAndShowRange:")) } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nstextcheckingclient/3242722-removeannotation?language=objc -func (t_ TextCheckingClientWrapper) 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/3242724-selectandshowrange?language=objc +func (t_ TextCheckingClientObject) SelectAndShowRange(range_ foundation.Range) { + objc.Call[objc.Void](t_, objc.Sel("selectAndShowRange:"), range_) } -func (t_ TextCheckingClientWrapper) HasViewForRangeFirstRectActualRange() bool { +func (t_ TextCheckingClientObject) HasViewForRangeFirstRectActualRange() bool { return t_.RespondsToSelector(objc.Sel("viewForRange:firstRect:actualRange:")) } // [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/appkit/nstextcheckingclient/3242726-viewforrange?language=objc -func (t_ TextCheckingClientWrapper) ViewForRangeFirstRectActualRange(range_ foundation.Range, firstRect foundation.RectPointer, actualRange foundation.RangePointer) View { +func (t_ TextCheckingClientObject) ViewForRangeFirstRectActualRange(range_ foundation.Range, firstRect foundation.RectPointer, actualRange foundation.RangePointer) View { rv := objc.Call[View](t_, objc.Sel("viewForRange:firstRect:actualRange:"), range_, firstRect, actualRange) return rv } -func (t_ TextCheckingClientWrapper) HasAddAnnotationsRange() bool { - return t_.RespondsToSelector(objc.Sel("addAnnotations:range:")) +func (t_ TextCheckingClientObject) HasAnnotatedSubstringForProposedRangeActualRange() bool { + return t_.RespondsToSelector(objc.Sel("annotatedSubstringForProposedRange:actualRange:")) } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nstextcheckingclient/3242719-addannotations?language=objc -func (t_ TextCheckingClientWrapper) 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/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_ TextCheckingClientWrapper) 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_ TextCheckingClientWrapper) 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_, objc.Ptr(annotatedString)) } -func (t_ TextCheckingClientWrapper) HasCandidateListTouchBarItem() bool { - return t_.RespondsToSelector(objc.Sel("candidateListTouchBarItem")) +func (t_ TextCheckingClientObject) HasAddAnnotationsRange() bool { + return t_.RespondsToSelector(objc.Sel("addAnnotations:range:")) } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nstextcheckingclient/3242721-candidatelisttouchbaritem?language=objc -func (t_ TextCheckingClientWrapper) CandidateListTouchBarItem() CandidateListTouchBarItem { - rv := objc.Call[CandidateListTouchBarItem](t_, objc.Sel("candidateListTouchBarItem")) - 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_ TextCheckingClientWrapper) 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_ TextCheckingClientWrapper) ReplaceCharactersInRangeWithAnnotatedString(range_ foundation.Range, annotatedString foundation.IAttributedString) { - objc.Call[objc.Void](t_, objc.Sel("replaceCharactersInRange:withAnnotatedString:"), range_, objc.Ptr(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_ TextCheckingClientWrapper) HasAnnotatedSubstringForProposedRangeActualRange() bool { - return t_.RespondsToSelector(objc.Sel("annotatedSubstringForProposedRange:actualRange:")) +func (t_ TextCheckingClientObject) HasRemoveAnnotationRange() bool { + return t_.RespondsToSelector(objc.Sel("removeAnnotation:range:")) } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nstextcheckingclient/3242720-annotatedsubstringforproposedran?language=objc -func (t_ TextCheckingClientWrapper) 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/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_ TextCheckingClientWrapper) HasSelectAndShowRange() bool { - return t_.RespondsToSelector(objc.Sel("selectAndShowRange:")) +func (t_ TextCheckingClientObject) HasCandidateListTouchBarItem() bool { + return t_.RespondsToSelector(objc.Sel("candidateListTouchBarItem")) } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nstextcheckingclient/3242724-selectandshowrange?language=objc -func (t_ TextCheckingClientWrapper) SelectAndShowRange(range_ foundation.Range) { - objc.Call[objc.Void](t_, objc.Sel("selectAndShowRange:"), 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 } diff --git a/macos/appkit/text_checking_controller.gen.go b/macos/appkit/text_checking_controller.gen.go index 8039d4b0..8c74fffa 100644 --- a/macos/appkit/text_checking_controller.gen.go +++ b/macos/appkit/text_checking_controller.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package appkit @@ -19,25 +19,25 @@ type _TextCheckingControllerClass struct { // An interface definition for the [TextCheckingController] class. type ITextCheckingController interface { objc.IObject - InsertedTextInRange(range_ foundation.Range) - OrderFrontSubstitutionsPanel(sender objc.IObject) - CheckTextInRangeTypesOptions(range_ foundation.Range, checkingTypes foundation.TextCheckingTypes, options map[TextCheckingOptionKey]objc.IObject) - ShowGuessPanel(sender objc.IObject) - CheckTextInDocument(sender objc.IObject) - IgnoreSpelling(sender objc.IObject) - CheckTextInSelection(sender objc.IObject) UpdateCandidates() - ConsiderTextCheckingForRange(range_ foundation.Range) - DidChangeTextInRange(range_ foundation.Range) DidChangeSelectedRange() + IgnoreSpelling(sender objc.IObject) + CheckTextInDocument(sender objc.IObject) + OrderFrontSubstitutionsPanel(sender objc.IObject) + DidChangeTextInRange(range_ foundation.Range) MenuAtIndexClickedOnSelectionEffectiveRange(location uint, clickedOnSelection bool, effectiveRange foundation.RangePointer) Menu + ShowGuessPanel(sender objc.IObject) + ConsiderTextCheckingForRange(range_ foundation.Range) + CheckSpelling(sender objc.IObject) + CheckTextInSelection(sender objc.IObject) + InsertedTextInRange(range_ foundation.Range) ValidAnnotations() []foundation.AttributedStringKey - Invalidate() ChangeSpelling(sender objc.IObject) - CheckSpelling(sender objc.IObject) + Invalidate() + CheckTextInRangeTypesOptions(range_ foundation.Range, checkingTypes foundation.TextCheckingTypes, options map[TextCheckingOptionKey]objc.IObject) SpellCheckerDocumentTag() int SetSpellCheckerDocumentTag(value int) - Client() TextCheckingClientWrapper + Client() TextCheckingClientObject } // [Full Topic] @@ -73,10 +73,6 @@ func (tc _TextCheckingControllerClass) Alloc() TextCheckingController { return rv } -func TextCheckingController_Alloc() TextCheckingController { - return TextCheckingControllerClass.Alloc() -} - func (tc _TextCheckingControllerClass) New() TextCheckingController { rv := objc.Call[TextCheckingController](tc, objc.Sel("new")) rv.Autorelease() @@ -94,58 +90,59 @@ func (t_ TextCheckingController) Init() TextCheckingController { // [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/3242760-updatecandidates?language=objc +func (t_ TextCheckingController) UpdateCandidates() { + objc.Call[objc.Void](t_, objc.Sel("updateCandidates")) } // [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/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/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/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/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/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/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/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/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/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] // -// [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/3242758-showguesspanel?language=objc +func (t_ TextCheckingController) ShowGuessPanel(sender objc.IObject) { + objc.Call[objc.Void](t_, objc.Sel("showGuessPanel:"), sender) } // [Full Topic] @@ -157,24 +154,23 @@ func (t_ TextCheckingController) ConsiderTextCheckingForRange(range_ foundation. // [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/3242744-checkspelling?language=objc +func (t_ TextCheckingController) CheckSpelling(sender objc.IObject) { + objc.Call[objc.Void](t_, objc.Sel("checkSpelling:"), sender) } // [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/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/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/3242754-insertedtextinrange?language=objc +func (t_ TextCheckingController) InsertedTextInRange(range_ foundation.Range) { + objc.Call[objc.Void](t_, objc.Sel("insertedTextInRange:"), range_) } // [Full Topic] @@ -187,23 +183,23 @@ func (t_ TextCheckingController) ValidAnnotations() []foundation.AttributedStrin // [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/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/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/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] @@ -224,7 +220,7 @@ func (t_ TextCheckingController) SetSpellCheckerDocumentTag(value int) { // [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/appkit/nstextcheckingcontroller/3242748-client?language=objc -func (t_ TextCheckingController) Client() TextCheckingClientWrapper { - rv := objc.Call[TextCheckingClientWrapper](t_, objc.Sel("client")) +func (t_ TextCheckingController) Client() TextCheckingClientObject { + rv := objc.Call[TextCheckingClientObject](t_, objc.Sel("client")) return rv } diff --git a/macos/appkit/text_container.gen.go b/macos/appkit/text_container.gen.go index 943b0deb..5b8813e0 100644 --- a/macos/appkit/text_container.gen.go +++ b/macos/appkit/text_container.gen.go @@ -1,11 +1,11 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package appkit import ( "unsafe" - "github.com/progrium/macdriver/macos/coregraphics" + "github.com/progrium/macdriver/macos/foundation" "github.com/progrium/macdriver/objc" ) @@ -19,25 +19,26 @@ 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) - IsSimpleRectangularTextContainer() bool - LayoutManager() LayoutManager - SetLayoutManager(value ILayoutManager) + TextLayoutManager() TextLayoutManager LineFragmentPadding() float64 SetLineFragmentPadding(value float64) + LayoutManager() LayoutManager + SetLayoutManager(value ILayoutManager) + IsSimpleRectangularTextContainer() bool + Size() foundation.Size + SetSize(value foundation.Size) 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] @@ -53,7 +54,7 @@ func TextContainerFrom(ptr unsafe.Pointer) TextContainer { } } -func (t_ TextContainer) InitWithSize(size coregraphics.Size) TextContainer { +func (t_ TextContainer) InitWithSize(size foundation.Size) TextContainer { rv := objc.Call[TextContainer](t_, objc.Sel("initWithSize:"), size) return rv } @@ -61,7 +62,7 @@ func (t_ TextContainer) InitWithSize(size coregraphics.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 coregraphics.Size) TextContainer { +func NewTextContainerWithSize(size foundation.Size) TextContainer { instance := TextContainerClass.Alloc().InitWithSize(size) instance.Autorelease() return instance @@ -72,10 +73,6 @@ func (tc _TextContainerClass) Alloc() TextContainer { return rv } -func TextContainer_Alloc() TextContainer { - return TextContainerClass.Alloc() -} - func (tc _TextContainerClass) New() TextContainer { rv := objc.Call[TextContainer](tc, objc.Sel("new")) rv.Autorelease() @@ -91,49 +88,19 @@ func (t_ TextContainer) Init() TextContainer { return rv } -// Replaces the layout manager for the group of text system objects that contains the text container. [Full Topic] +// 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/1444545-replacelayoutmanager?language=objc -func (t_ TextContainer) ReplaceLayoutManager(newLayoutManager ILayoutManager) { - objc.Call[objc.Void](t_, objc.Sel("replaceLayoutManager:"), objc.Ptr(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")) +// [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 } -// 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] +// 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/1444559-heighttrackstextview?language=objc -func (t_ TextContainer) SetHeightTracksTextView(value bool) { - objc.Call[objc.Void](t_, objc.Sel("setHeightTracksTextView:"), value) +// [Full Topic]: https://developer.apple.com/documentation/uikit/nstextcontainer/1444545-replacelayoutmanager?language=objc +func (t_ TextContainer) ReplaceLayoutManager(newLayoutManager ILayoutManager) { + objc.Call[objc.Void](t_, objc.Sel("replaceLayoutManager:"), objc.Ptr(newLayoutManager)) } // The text container’s text view. [Full Topic] @@ -151,14 +118,29 @@ func (t_ TextContainer) SetTextView(value ITextView) { objc.Call[objc.Void](t_, objc.Sel("setTextView:"), objc.Ptr(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] // -// [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")) +// [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] +// +// [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 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 @@ -174,19 +156,27 @@ func (t_ TextContainer) SetLayoutManager(value ILayoutManager) { objc.Call[objc.Void](t_, objc.Sel("setLayoutManager:"), objc.Ptr(value)) } -// 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] +// The size of the text container’s bounding rectangle. [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) +// [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")) + 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 foundation.Size) { + objc.Call[objc.Void](t_, objc.Sel("setSize:"), value) } // An array of path objects that represents the regions where text doesn’t display in the text container. [Full Topic] @@ -204,6 +194,36 @@ 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 @@ -218,18 +238,3 @@ 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 1bb3b195..c00bac3a 100644 --- a/macos/appkit/text_content_manager.gen.go +++ b/macos/appkit/text_content_manager.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package appkit @@ -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()) - SynchronizeTextLayoutManagers(completionHandler func(error foundation.Error)) - RecordEditActionInRangeNewTextRange(originalTextRange ITextRange, newTextRange ITextRange) TextElementsForRange(range_ ITextRange) []TextElement AddTextLayoutManager(textLayoutManager ITextLayoutManager) - AutomaticallySynchronizesToBackingStore() bool - SetAutomaticallySynchronizesToBackingStore(value bool) + SynchronizeTextLayoutManagers(completionHandler func(error foundation.Error)) + RecordEditActionInRangeNewTextRange(originalTextRange ITextRange, newTextRange ITextRange) + RemoveTextLayoutManager(textLayoutManager ITextLayoutManager) + HasEditingTransaction() bool AutomaticallySynchronizesTextLayoutManagers() bool SetAutomaticallySynchronizesTextLayoutManagers(value bool) - Delegate() TextContentManagerDelegateWrapper + AutomaticallySynchronizesToBackingStore() bool + SetAutomaticallySynchronizesToBackingStore(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] @@ -61,10 +61,6 @@ func (tc _TextContentManagerClass) Alloc() TextContentManager { return rv } -func TextContentManager_Alloc() TextContentManager { - return TextContentManagerClass.Alloc() -} - func (tc _TextContentManagerClass) New() TextContentManager { rv := objc.Call[TextContentManager](tc, objc.Sel("new")) rv.Autorelease() @@ -75,13 +71,6 @@ 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:"), objc.Ptr(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 @@ -89,20 +78,6 @@ func (t_ TextContentManager) PerformEditingTransactionUsingBlock(transaction fun objc.Call[objc.Void](t_, objc.Sel("performEditingTransactionUsingBlock:"), transaction) } -// Synchronizes changes to all nonprimary text layout managers. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/uikit/nstextcontentmanager/3809925-synchronizetextlayoutmanagers?language=objc -func (t_ TextContentManager) SynchronizeTextLayoutManagers(completionHandler func(error foundation.Error)) { - objc.Call[objc.Void](t_, objc.Sel("synchronizeTextLayoutManagers:"), completionHandler) -} - -// Records information about an edit action to the transaction. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/uikit/nstextcontentmanager/3809923-recordeditactioninrange?language=objc -func (t_ TextContentManager) RecordEditActionInRangeNewTextRange(originalTextRange ITextRange, newTextRange ITextRange) { - objc.Call[objc.Void](t_, objc.Sel("recordEditActionInRange:newTextRange:"), objc.Ptr(originalTextRange), objc.Ptr(newTextRange)) -} - // 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 @@ -118,19 +93,33 @@ func (t_ TextContentManager) AddTextLayoutManager(textLayoutManager ITextLayoutM objc.Call[objc.Void](t_, objc.Sel("addTextLayoutManager:"), objc.Ptr(textLayoutManager)) } -// Determines whether to automatically synchronize with the backing store when an editing transaction finishes. [Full Topic] +// Synchronizes changes to all nonprimary text layout managers. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/uikit/nstextcontentmanager/3852565-automaticallysynchronizestobacki?language=objc -func (t_ TextContentManager) AutomaticallySynchronizesToBackingStore() bool { - rv := objc.Call[bool](t_, objc.Sel("automaticallySynchronizesToBackingStore")) - return rv +// [Full Topic]: https://developer.apple.com/documentation/uikit/nstextcontentmanager/3809925-synchronizetextlayoutmanagers?language=objc +func (t_ TextContentManager) SynchronizeTextLayoutManagers(completionHandler func(error foundation.Error)) { + objc.Call[objc.Void](t_, objc.Sel("synchronizeTextLayoutManagers:"), completionHandler) } -// Determines whether to automatically synchronize with the backing store when an editing transaction finishes. [Full Topic] +// Records information about an edit action to the transaction. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/uikit/nstextcontentmanager/3852565-automaticallysynchronizestobacki?language=objc -func (t_ TextContentManager) SetAutomaticallySynchronizesToBackingStore(value bool) { - objc.Call[objc.Void](t_, objc.Sel("setAutomaticallySynchronizesToBackingStore:"), value) +// [Full Topic]: https://developer.apple.com/documentation/uikit/nstextcontentmanager/3809923-recordeditactioninrange?language=objc +func (t_ TextContentManager) RecordEditActionInRangeNewTextRange(originalTextRange ITextRange, newTextRange ITextRange) { + objc.Call[objc.Void](t_, objc.Sel("recordEditActionInRange:newTextRange:"), objc.Ptr(originalTextRange), objc.Ptr(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:"), objc.Ptr(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] @@ -148,11 +137,26 @@ func (t_ TextContentManager) SetAutomaticallySynchronizesTextLayoutManagers(valu objc.Call[objc.Void](t_, objc.Sel("setAutomaticallySynchronizesTextLayoutManagers:"), value) } +// Determines whether to automatically synchronize with the backing store when an editing transaction finishes. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/uikit/nstextcontentmanager/3852565-automaticallysynchronizestobacki?language=objc +func (t_ TextContentManager) AutomaticallySynchronizesToBackingStore() bool { + rv := objc.Call[bool](t_, objc.Sel("automaticallySynchronizesToBackingStore")) + return rv +} + +// Determines whether to automatically synchronize with the backing store when an editing transaction finishes. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/uikit/nstextcontentmanager/3852565-automaticallysynchronizestobacki?language=objc +func (t_ TextContentManager) SetAutomaticallySynchronizesToBackingStore(value bool) { + objc.Call[objc.Void](t_, objc.Sel("setAutomaticallySynchronizesToBackingStore:"), value) +} + // The delegate for the content manager object. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/uikit/nstextcontentmanager/3809917-delegate?language=objc -func (t_ TextContentManager) Delegate() TextContentManagerDelegateWrapper { - rv := objc.Call[TextContentManagerDelegateWrapper](t_, objc.Sel("delegate")) +func (t_ TextContentManager) Delegate() TextContentManagerDelegateObject { + rv := objc.Call[TextContentManagerDelegateObject](t_, objc.Sel("delegate")) return rv } @@ -172,6 +176,14 @@ func (t_ TextContentManager) SetDelegateObject(valueObject objc.IObject) { objc.Call[objc.Void](t_, objc.Sel("setDelegate:"), objc.Ptr(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 @@ -186,19 +198,3 @@ func (t_ TextContentManager) PrimaryTextLayoutManager() TextLayoutManager { func (t_ TextContentManager) SetPrimaryTextLayoutManager(value ITextLayoutManager) { objc.Call[objc.Void](t_, objc.Sel("setPrimaryTextLayoutManager:"), objc.Ptr(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 a14162e4..c6a60707 100644 --- a/macos/appkit/text_content_manager_delegate.gen.go +++ b/macos/appkit/text_content_manager_delegate.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package appkit @@ -11,15 +11,37 @@ import ( // [Full Topic]: https://developer.apple.com/documentation/uikit/nstextcontentmanagerdelegate?language=objc type PTextContentManagerDelegate interface { // optional - TextContentManagerTextElementAtLocation(textContentManager TextContentManager, location TextLocationWrapper) ITextElement + TextContentManagerShouldEnumerateTextElementOptions(textContentManager TextContentManager, textElement TextElement, options TextContentManagerEnumerationOptions) bool + HasTextContentManagerShouldEnumerateTextElementOptions() bool + + // optional + TextContentManagerTextElementAtLocation(textContentManager TextContentManager, location TextLocationObject) TextElement HasTextContentManagerTextElementAtLocation() bool } // A delegate implementation builder for the [PTextContentManagerDelegate] protocol. type TextContentManagerDelegate struct { - _TextContentManagerTextElementAtLocation func(textContentManager TextContentManager, location TextLocationWrapper) ITextElement + _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 } +// 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 } @@ -27,30 +49,45 @@ func (di *TextContentManagerDelegate) HasTextContentManagerTextElementAtLocation // The method the framework calls to return the text element at a specific location. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/uikit/nstextcontentmanagerdelegate/3809932-textcontentmanager?language=objc -func (di *TextContentManagerDelegate) SetTextContentManagerTextElementAtLocation(f func(textContentManager TextContentManager, location TextLocationWrapper) ITextElement) { +func (di *TextContentManagerDelegate) SetTextContentManagerTextElementAtLocation(f func(textContentManager TextContentManager, location TextLocationObject) TextElement) { di._TextContentManagerTextElementAtLocation = f } // The method the framework calls to return the text element at a specific location. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/uikit/nstextcontentmanagerdelegate/3809932-textcontentmanager?language=objc -func (di *TextContentManagerDelegate) TextContentManagerTextElementAtLocation(textContentManager TextContentManager, location TextLocationWrapper) ITextElement { +func (di *TextContentManagerDelegate) TextContentManagerTextElementAtLocation(textContentManager TextContentManager, location TextLocationObject) TextElement { return di._TextContentManagerTextElementAtLocation(textContentManager, location) } -// A concrete type wrapper for the [PTextContentManagerDelegate] protocol. -type TextContentManagerDelegateWrapper struct { +// ensure impl type implements protocol interface +var _ PTextContentManagerDelegate = (*TextContentManagerDelegateObject)(nil) + +// A concrete type for the [PTextContentManagerDelegate] protocol. +type TextContentManagerDelegateObject struct { objc.Object } -func (t_ TextContentManagerDelegateWrapper) HasTextContentManagerTextElementAtLocation() bool { +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:"), objc.Ptr(textContentManager), objc.Ptr(textElement), options) + return rv +} + +func (t_ TextContentManagerDelegateObject) HasTextContentManagerTextElementAtLocation() bool { return t_.RespondsToSelector(objc.Sel("textContentManager:textElementAtLocation:")) } // The method the framework calls to return the text element at a specific location. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/uikit/nstextcontentmanagerdelegate/3809932-textcontentmanager?language=objc -func (t_ TextContentManagerDelegateWrapper) TextContentManagerTextElementAtLocation(textContentManager ITextContentManager, location PTextLocation) TextElement { +func (t_ TextContentManagerDelegateObject) TextContentManagerTextElementAtLocation(textContentManager TextContentManager, location TextLocationObject) TextElement { po1 := objc.WrapAsProtocol("NSTextLocation", location) rv := objc.Call[TextElement](t_, objc.Sel("textContentManager:textElementAtLocation:"), objc.Ptr(textContentManager), po1) return rv diff --git a/macos/appkit/text_content.gen.go b/macos/appkit/text_content_protocol.gen.go similarity index 69% rename from macos/appkit/text_content.gen.go rename to macos/appkit/text_content_protocol.gen.go index b44c8444..dd3c122f 100644 --- a/macos/appkit/text_content.gen.go +++ b/macos/appkit/text_content_protocol.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package appkit @@ -19,30 +19,33 @@ type PTextContent interface { HasContentType() bool } -// A concrete type wrapper for the [PTextContent] protocol. -type TextContentWrapper struct { +// ensure impl type implements protocol interface +var _ PTextContent = (*TextContentObject)(nil) + +// A concrete type for the [PTextContent] protocol. +type TextContentObject struct { objc.Object } -func (t_ TextContentWrapper) HasSetContentType() bool { +func (t_ TextContentObject) HasSetContentType() bool { return t_.RespondsToSelector(objc.Sel("setContentType:")) } // The semantic meaning for a text input area. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/appkit/nstextcontent/3566859-contenttype?language=objc -func (t_ TextContentWrapper) SetContentType(value TextContentType) { +func (t_ TextContentObject) SetContentType(value TextContentType) { objc.Call[objc.Void](t_, objc.Sel("setContentType:"), value) } -func (t_ TextContentWrapper) HasContentType() bool { +func (t_ TextContentObject) HasContentType() bool { return t_.RespondsToSelector(objc.Sel("contentType")) } // The semantic meaning for a text input area. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/appkit/nstextcontent/3566859-contenttype?language=objc -func (t_ TextContentWrapper) ContentType() TextContentType { +func (t_ TextContentObject) ContentType() TextContentType { rv := objc.Call[TextContentType](t_, objc.Sel("contentType")) return rv } diff --git a/macos/appkit/text_content_storage.gen.go b/macos/appkit/text_content_storage.gen.go index 27224868..985673b2 100644 --- a/macos/appkit/text_content_storage.gen.go +++ b/macos/appkit/text_content_storage.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package appkit @@ -19,13 +19,13 @@ type _TextContentStorageClass struct { // An interface definition for the [TextContentStorage] class. type ITextContentStorage interface { ITextContentManager - AdjustedRangeFromRangeForEditingTextSelection(textRange ITextRange, forEditingTextSelection bool) TextRange + LocationFromLocationWithOffset(location PTextLocation, offset int) TextLocationObject + LocationFromLocationObjectWithOffset(locationObject objc.IObject, offset int) TextLocationObject + TextElementForAttributedString(attributedString foundation.IAttributedString) TextElement OffsetFromLocationToLocation(from PTextLocation, to PTextLocation) int OffsetFromLocationObjectToLocationObject(fromObject objc.IObject, toObject objc.IObject) int AttributedStringForTextElement(textElement ITextElement) foundation.AttributedString - TextElementForAttributedString(attributedString foundation.IAttributedString) TextElement - LocationFromLocationWithOffset(location PTextLocation, offset int) TextLocationWrapper - LocationFromLocationObjectWithOffset(locationObject objc.IObject, offset int) TextLocationWrapper + AdjustedRangeFromRangeForEditingTextSelection(textRange ITextRange, forEditingTextSelection bool) TextRange AttributedString() foundation.AttributedString SetAttributedString(value foundation.IAttributedString) } @@ -48,10 +48,6 @@ func (tc _TextContentStorageClass) Alloc() TextContentStorage { return rv } -func TextContentStorage_Alloc() TextContentStorage { - return TextContentStorageClass.Alloc() -} - func (tc _TextContentStorageClass) New() TextContentStorage { rv := objc.Call[TextContentStorage](tc, objc.Sel("new")) rv.Autorelease() @@ -67,11 +63,28 @@ func (t_ TextContentStorage) Init() TextContentStorage { return rv } -// Returns the text range, if any, in the backing store that required manual adjustment after editing. [Full Topic] +// Returns a new text location from an existing location and offset you provide. [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:"), objc.Ptr(textRange), forEditingTextSelection) +// [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:"), objc.Ptr(locationObject), offset) + return rv +} + +// Returns the text element corresponding to object’s attributed string. [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:"), objc.Ptr(attributedString)) return rv } @@ -101,28 +114,11 @@ func (t_ TextContentStorage) AttributedStringForTextElement(textElement ITextEle return rv } -// Returns the text element corresponding to object’s attributed string. [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:"), objc.Ptr(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) TextLocationWrapper { - po0 := objc.WrapAsProtocol("NSTextLocation", location) - rv := objc.Call[TextLocationWrapper](t_, objc.Sel("locationFromLocation:withOffset:"), po0, offset) - return rv -} - -// Returns a new text location from an existing location and offset you provide. [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/3852571-locationfromlocation?language=objc -func (t_ TextContentStorage) LocationFromLocationObjectWithOffset(locationObject objc.IObject, offset int) TextLocationWrapper { - rv := objc.Call[TextLocationWrapper](t_, objc.Sel("locationFromLocation:withOffset:"), objc.Ptr(locationObject), offset) +// [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:"), objc.Ptr(textRange), forEditingTextSelection) return rv } diff --git a/macos/appkit/text_content_storage_delegate.gen.go b/macos/appkit/text_content_storage_delegate.gen.go index aaaaf48d..8057f0b8 100644 --- a/macos/appkit/text_content_storage_delegate.gen.go +++ b/macos/appkit/text_content_storage_delegate.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package appkit @@ -12,13 +12,13 @@ import ( // [Full Topic]: https://developer.apple.com/documentation/uikit/nstextcontentstoragedelegate?language=objc type PTextContentStorageDelegate interface { // optional - TextContentStorageTextParagraphWithRange(textContentStorage TextContentStorage, range_ foundation.Range) ITextParagraph + TextContentStorageTextParagraphWithRange(textContentStorage TextContentStorage, range_ foundation.Range) TextParagraph HasTextContentStorageTextParagraphWithRange() bool } // A delegate implementation builder for the [PTextContentStorageDelegate] protocol. type TextContentStorageDelegate struct { - _TextContentStorageTextParagraphWithRange func(textContentStorage TextContentStorage, range_ foundation.Range) ITextParagraph + _TextContentStorageTextParagraphWithRange func(textContentStorage TextContentStorage, range_ foundation.Range) TextParagraph } func (di *TextContentStorageDelegate) HasTextContentStorageTextParagraphWithRange() bool { @@ -28,30 +28,33 @@ func (di *TextContentStorageDelegate) HasTextContentStorageTextParagraphWithRang // Returns a custom paragraph for a range that you provide from the object’s attributed string. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/uikit/nstextcontentstoragedelegate/3809940-textcontentstorage?language=objc -func (di *TextContentStorageDelegate) SetTextContentStorageTextParagraphWithRange(f func(textContentStorage TextContentStorage, range_ foundation.Range) ITextParagraph) { +func (di *TextContentStorageDelegate) SetTextContentStorageTextParagraphWithRange(f func(textContentStorage TextContentStorage, range_ foundation.Range) TextParagraph) { di._TextContentStorageTextParagraphWithRange = f } // Returns a custom paragraph for a range that you provide from the object’s attributed string. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/uikit/nstextcontentstoragedelegate/3809940-textcontentstorage?language=objc -func (di *TextContentStorageDelegate) TextContentStorageTextParagraphWithRange(textContentStorage TextContentStorage, range_ foundation.Range) ITextParagraph { +func (di *TextContentStorageDelegate) TextContentStorageTextParagraphWithRange(textContentStorage TextContentStorage, range_ foundation.Range) TextParagraph { return di._TextContentStorageTextParagraphWithRange(textContentStorage, range_) } -// A concrete type wrapper for the [PTextContentStorageDelegate] protocol. -type TextContentStorageDelegateWrapper struct { +// ensure impl type implements protocol interface +var _ PTextContentStorageDelegate = (*TextContentStorageDelegateObject)(nil) + +// A concrete type for the [PTextContentStorageDelegate] protocol. +type TextContentStorageDelegateObject struct { objc.Object } -func (t_ TextContentStorageDelegateWrapper) HasTextContentStorageTextParagraphWithRange() bool { +func (t_ TextContentStorageDelegateObject) HasTextContentStorageTextParagraphWithRange() bool { return t_.RespondsToSelector(objc.Sel("textContentStorage:textParagraphWithRange:")) } // Returns a custom paragraph for a range that you provide from the object’s attributed string. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/uikit/nstextcontentstoragedelegate/3809940-textcontentstorage?language=objc -func (t_ TextContentStorageDelegateWrapper) TextContentStorageTextParagraphWithRange(textContentStorage ITextContentStorage, range_ foundation.Range) TextParagraph { +func (t_ TextContentStorageDelegateObject) TextContentStorageTextParagraphWithRange(textContentStorage TextContentStorage, range_ foundation.Range) TextParagraph { rv := objc.Call[TextParagraph](t_, objc.Sel("textContentStorage:textParagraphWithRange:"), objc.Ptr(textContentStorage), range_) return rv } diff --git a/macos/appkit/text_delegate.gen.go b/macos/appkit/text_delegate.gen.go index 87822874..eda147f7 100644 --- a/macos/appkit/text_delegate.gen.go +++ b/macos/appkit/text_delegate.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package appkit @@ -12,51 +12,51 @@ import ( // [Full Topic]: https://developer.apple.com/documentation/appkit/nstextdelegate?language=objc type PTextDelegate interface { // optional - TextShouldBeginEditing(textObject Text) bool - HasTextShouldBeginEditing() bool + TextDidBeginEditing(notification foundation.Notification) + HasTextDidBeginEditing() bool // optional TextDidChange(notification foundation.Notification) HasTextDidChange() bool // optional - TextDidBeginEditing(notification foundation.Notification) - HasTextDidBeginEditing() bool + TextDidEndEditing(notification foundation.Notification) + HasTextDidEndEditing() bool // optional TextShouldEndEditing(textObject Text) bool HasTextShouldEndEditing() bool // optional - TextDidEndEditing(notification foundation.Notification) - HasTextDidEndEditing() bool + TextShouldBeginEditing(textObject Text) bool + HasTextShouldBeginEditing() bool } // A delegate implementation builder for the [PTextDelegate] protocol. type TextDelegate struct { - _TextShouldBeginEditing func(textObject Text) bool - _TextDidChange func(notification foundation.Notification) _TextDidBeginEditing func(notification foundation.Notification) - _TextShouldEndEditing func(textObject Text) bool + _TextDidChange func(notification foundation.Notification) _TextDidEndEditing func(notification foundation.Notification) + _TextShouldEndEditing func(textObject Text) bool + _TextShouldBeginEditing func(textObject Text) bool } -func (di *TextDelegate) HasTextShouldBeginEditing() bool { - return di._TextShouldBeginEditing != nil +func (di *TextDelegate) HasTextDidBeginEditing() bool { + return di._TextDidBeginEditing != 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 begun editing (that the user has begun changing it). [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/1535575-textdidbeginediting?language=objc +func (di *TextDelegate) SetTextDidBeginEditing(f func(notification foundation.Notification)) { + di._TextDidBeginEditing = 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 begun editing (that the user has begun changing it). [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/1535575-textdidbeginediting?language=objc +func (di *TextDelegate) TextDidBeginEditing(notification foundation.Notification) { + di._TextDidBeginEditing(notification) } func (di *TextDelegate) HasTextDidChange() bool { return di._TextDidChange != nil @@ -75,116 +75,119 @@ func (di *TextDelegate) SetTextDidChange(f func(notification foundation.Notifica func (di *TextDelegate) TextDidChange(notification foundation.Notification) { di._TextDidChange(notification) } -func (di *TextDelegate) HasTextDidBeginEditing() bool { - return di._TextDidBeginEditing != nil +func (di *TextDelegate) HasTextDidEndEditing() bool { + return di._TextDidEndEditing != nil } -// Informs the delegate that the text object has begun editing (that the user has begun changing it). [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/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/1529016-textdidendediting?language=objc +func (di *TextDelegate) SetTextDidEndEditing(f func(notification foundation.Notification)) { + di._TextDidEndEditing = f } -// Informs the delegate that the text object has begun editing (that the user has begun changing it). [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/1535575-textdidbeginediting?language=objc -func (di *TextDelegate) TextDidBeginEditing(notification foundation.Notification) { - di._TextDidBeginEditing(notification) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nstextdelegate/1529016-textdidendediting?language=objc +func (di *TextDelegate) TextDidEndEditing(notification foundation.Notification) { + di._TextDidEndEditing(notification) } func (di *TextDelegate) HasTextShouldEndEditing() bool { return di._TextShouldEndEditing != nil } -// Invoked from a text object’s implementation of resignFirstResponder, this method requests permission for aTextObject to end editing. [Full Topic] +// Invoked from a text object’s implementation of [appkit/nsresponder/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 resignFirstResponder, this method requests permission for aTextObject to end editing. [Full Topic] +// Invoked from a text object’s implementation of [appkit/nsresponder/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) HasTextDidEndEditing() bool { - return di._TextDidEndEditing != nil +func (di *TextDelegate) HasTextShouldBeginEditing() bool { + return di._TextShouldBeginEditing != nil } -// Informs the delegate that the text object has finished editing (that it has resigned first responder status). [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/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/1533298-textshouldbeginediting?language=objc +func (di *TextDelegate) SetTextShouldBeginEditing(f func(textObject Text) bool) { + di._TextShouldBeginEditing = f } -// Informs the delegate that the text object has finished editing (that it has resigned first responder status). [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/1529016-textdidendediting?language=objc -func (di *TextDelegate) TextDidEndEditing(notification foundation.Notification) { - di._TextDidEndEditing(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) } -// A concrete type wrapper for the [PTextDelegate] protocol. -type TextDelegateWrapper struct { +// ensure impl type implements protocol interface +var _ PTextDelegate = (*TextDelegateObject)(nil) + +// A concrete type for the [PTextDelegate] protocol. +type TextDelegateObject struct { objc.Object } -func (t_ TextDelegateWrapper) HasTextShouldBeginEditing() bool { - return t_.RespondsToSelector(objc.Sel("textShouldBeginEditing:")) +func (t_ TextDelegateObject) HasTextDidBeginEditing() bool { + return t_.RespondsToSelector(objc.Sel("textDidBeginEditing:")) } -// 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 begun editing (that the user has begun changing it). [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nstextdelegate/1533298-textshouldbeginediting?language=objc -func (t_ TextDelegateWrapper) TextShouldBeginEditing(textObject IText) bool { - rv := objc.Call[bool](t_, objc.Sel("textShouldBeginEditing:"), objc.Ptr(textObject)) - return rv +// [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:"), objc.Ptr(notification)) } -func (t_ TextDelegateWrapper) HasTextDidChange() bool { +func (t_ TextDelegateObject) HasTextDidChange() bool { return t_.RespondsToSelector(objc.Sel("textDidChange:")) } // Informs the delegate that the text object has changed its characters or formatting attributes. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/appkit/nstextdelegate/1526982-textdidchange?language=objc -func (t_ TextDelegateWrapper) TextDidChange(notification foundation.INotification) { +func (t_ TextDelegateObject) TextDidChange(notification foundation.Notification) { objc.Call[objc.Void](t_, objc.Sel("textDidChange:"), objc.Ptr(notification)) } -func (t_ TextDelegateWrapper) HasTextDidBeginEditing() bool { - return t_.RespondsToSelector(objc.Sel("textDidBeginEditing:")) +func (t_ TextDelegateObject) HasTextDidEndEditing() bool { + return t_.RespondsToSelector(objc.Sel("textDidEndEditing:")) } -// Informs the delegate that the text object has begun editing (that the user has begun changing it). [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/1535575-textdidbeginediting?language=objc -func (t_ TextDelegateWrapper) TextDidBeginEditing(notification foundation.INotification) { - objc.Call[objc.Void](t_, objc.Sel("textDidBeginEditing:"), objc.Ptr(notification)) +// [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:"), objc.Ptr(notification)) } -func (t_ TextDelegateWrapper) HasTextShouldEndEditing() bool { +func (t_ TextDelegateObject) HasTextShouldEndEditing() bool { return t_.RespondsToSelector(objc.Sel("textShouldEndEditing:")) } -// Invoked from a text object’s implementation of resignFirstResponder, this method requests permission for aTextObject to end editing. [Full Topic] +// Invoked from a text object’s implementation of [appkit/nsresponder/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_ TextDelegateWrapper) TextShouldEndEditing(textObject IText) bool { +func (t_ TextDelegateObject) TextShouldEndEditing(textObject Text) bool { rv := objc.Call[bool](t_, objc.Sel("textShouldEndEditing:"), objc.Ptr(textObject)) return rv } -func (t_ TextDelegateWrapper) HasTextDidEndEditing() bool { - return t_.RespondsToSelector(objc.Sel("textDidEndEditing:")) +func (t_ TextDelegateObject) HasTextShouldBeginEditing() bool { + return t_.RespondsToSelector(objc.Sel("textShouldBeginEditing:")) } -// Informs the delegate that the text object has finished editing (that it has resigned first responder status). [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/1529016-textdidendediting?language=objc -func (t_ TextDelegateWrapper) TextDidEndEditing(notification foundation.INotification) { - objc.Call[objc.Void](t_, objc.Sel("textDidEndEditing:"), objc.Ptr(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:"), objc.Ptr(textObject)) + return rv } diff --git a/macos/appkit/text_element.gen.go b/macos/appkit/text_element.gen.go index 9c413edf..aab31235 100644 --- a/macos/appkit/text_element.gen.go +++ b/macos/appkit/text_element.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package appkit @@ -18,10 +18,10 @@ type _TextElementClass struct { // An interface definition for the [TextElement] class. type ITextElement interface { objc.IObject - ElementRange() TextRange - SetElementRange(value ITextRange) TextContentManager() TextContentManager SetTextContentManager(value ITextContentManager) + ElementRange() TextRange + SetElementRange(value ITextRange) } // An abstract base class that represents the smallest units of text layout such as paragraphs or attachments. [Full Topic] @@ -56,10 +56,6 @@ func (tc _TextElementClass) Alloc() TextElement { return rv } -func TextElement_Alloc() TextElement { - return TextElementClass.Alloc() -} - func (tc _TextElementClass) New() TextElement { rv := objc.Call[TextElement](tc, objc.Sel("new")) rv.Autorelease() @@ -75,21 +71,6 @@ func (t_ TextElement) Init() TextElement { return rv } -// 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 -func (t_ TextElement) ElementRange() TextRange { - rv := objc.Call[TextRange](t_, objc.Sel("elementRange")) - return rv -} - -// 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 -func (t_ TextElement) SetElementRange(value ITextRange) { - objc.Call[objc.Void](t_, objc.Sel("setElementRange:"), objc.Ptr(value)) -} - // The value that represents the current content manager. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/uikit/nstextelement/3809956-textcontentmanager?language=objc @@ -104,3 +85,18 @@ func (t_ TextElement) TextContentManager() TextContentManager { func (t_ TextElement) SetTextContentManager(value ITextContentManager) { objc.Call[objc.Void](t_, objc.Sel("setTextContentManager:"), objc.Ptr(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 +func (t_ TextElement) ElementRange() TextRange { + rv := objc.Call[TextRange](t_, objc.Sel("elementRange")) + return rv +} + +// 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 +func (t_ TextElement) SetElementRange(value ITextRange) { + objc.Call[objc.Void](t_, objc.Sel("setElementRange:"), objc.Ptr(value)) +} diff --git a/macos/appkit/text_element_provider.gen.go b/macos/appkit/text_element_provider_protocol.gen.go similarity index 63% rename from macos/appkit/text_element_provider.gen.go rename to macos/appkit/text_element_provider_protocol.gen.go index 1060d069..aaa90952 100644 --- a/macos/appkit/text_element_provider.gen.go +++ b/macos/appkit/text_element_provider_protocol.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package appkit @@ -12,121 +12,124 @@ import ( // [Full Topic]: https://developer.apple.com/documentation/uikit/nstextelementprovider?language=objc type PTextElementProvider interface { // optional - ReplaceContentsInRangeWithTextElements(range_ TextRange, textElements []TextElement) - HasReplaceContentsInRangeWithTextElements() bool + SynchronizeToBackingStore(completionHandler func(error foundation.Error)) + HasSynchronizeToBackingStore() bool // optional - AdjustedRangeFromRangeForEditingTextSelection(textRange TextRange, forEditingTextSelection bool) ITextRange + AdjustedRangeFromRangeForEditingTextSelection(textRange TextRange, forEditingTextSelection bool) TextRange HasAdjustedRangeFromRangeForEditingTextSelection() bool // optional - EnumerateTextElementsFromLocationOptionsUsingBlock(textLocation TextLocationWrapper, options TextContentManagerEnumerationOptions, block func(element TextElement) bool) PTextLocation - HasEnumerateTextElementsFromLocationOptionsUsingBlock() bool + LocationFromLocationWithOffset(location TextLocationObject, offset int) TextLocationObject + HasLocationFromLocationWithOffset() bool // optional - OffsetFromLocationToLocation(from TextLocationWrapper, to TextLocationWrapper) int - HasOffsetFromLocationToLocation() bool + ReplaceContentsInRangeWithTextElements(range_ TextRange, textElements []TextElement) + HasReplaceContentsInRangeWithTextElements() bool // optional - SynchronizeToBackingStore(completionHandler func(error foundation.Error)) - HasSynchronizeToBackingStore() bool + OffsetFromLocationToLocation(from TextLocationObject, to TextLocationObject) int + HasOffsetFromLocationToLocation() bool // optional - LocationFromLocationWithOffset(location TextLocationWrapper, offset int) PTextLocation - HasLocationFromLocationWithOffset() bool + EnumerateTextElementsFromLocationOptionsUsingBlock(textLocation TextLocationObject, options TextContentManagerEnumerationOptions, block func(element TextElement) bool) TextLocationObject + HasEnumerateTextElementsFromLocationOptionsUsingBlock() bool // optional - DocumentRange() ITextRange + DocumentRange() TextRange HasDocumentRange() bool } -// A concrete type wrapper for the [PTextElementProvider] protocol. -type TextElementProviderWrapper struct { +// ensure impl type implements protocol interface +var _ PTextElementProvider = (*TextElementProviderObject)(nil) + +// A concrete type for the [PTextElementProvider] protocol. +type TextElementProviderObject struct { objc.Object } -func (t_ TextElementProviderWrapper) HasReplaceContentsInRangeWithTextElements() bool { - return t_.RespondsToSelector(objc.Sel("replaceContentsInRange:withTextElements:")) +func (t_ TextElementProviderObject) HasSynchronizeToBackingStore() bool { + return t_.RespondsToSelector(objc.Sel("synchronizeToBackingStore:")) } -// Replaces the characters specified by range with the text elements you provide. [Full Topic] +// Synchronizes changes to the backing store. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/uikit/nstextelementprovider/3809948-replacecontentsinrange?language=objc -func (t_ TextElementProviderWrapper) ReplaceContentsInRangeWithTextElements(range_ ITextRange, textElements []ITextElement) { - objc.Call[objc.Void](t_, objc.Sel("replaceContentsInRange:withTextElements:"), objc.Ptr(range_), textElements) +// [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_ TextElementProviderWrapper) HasAdjustedRangeFromRangeForEditingTextSelection() bool { +func (t_ TextElementProviderObject) HasAdjustedRangeFromRangeForEditingTextSelection() bool { return t_.RespondsToSelector(objc.Sel("adjustedRangeFromRange:forEditingTextSelection:")) } // A method you implement if the location backing store requires manual adjustment after editing. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/uikit/nstextelementprovider/3852573-adjustedrangefromrange?language=objc -func (t_ TextElementProviderWrapper) AdjustedRangeFromRangeForEditingTextSelection(textRange ITextRange, forEditingTextSelection bool) TextRange { +func (t_ TextElementProviderObject) AdjustedRangeFromRangeForEditingTextSelection(textRange TextRange, forEditingTextSelection bool) TextRange { rv := objc.Call[TextRange](t_, objc.Sel("adjustedRangeFromRange:forEditingTextSelection:"), objc.Ptr(textRange), forEditingTextSelection) return rv } -func (t_ TextElementProviderWrapper) HasEnumerateTextElementsFromLocationOptionsUsingBlock() bool { - return t_.RespondsToSelector(objc.Sel("enumerateTextElementsFromLocation:options:usingBlock:")) +func (t_ TextElementProviderObject) HasLocationFromLocationWithOffset() bool { + return t_.RespondsToSelector(objc.Sel("locationFromLocation:withOffset:")) } -// Enumerates text elements starting at the text location you provide. [Full Topic] +// Returns a new location from location with offset you provide. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/uikit/nstextelementprovider/3809945-enumeratetextelementsfromlocatio?language=objc -func (t_ TextElementProviderWrapper) EnumerateTextElementsFromLocationOptionsUsingBlock(textLocation PTextLocation, options TextContentManagerEnumerationOptions, block func(element TextElement) bool) TextLocationWrapper { - po0 := objc.WrapAsProtocol("NSTextLocation", textLocation) - rv := objc.Call[TextLocationWrapper](t_, objc.Sel("enumerateTextElementsFromLocation:options:usingBlock:"), po0, options, block) +// [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 } -func (t_ TextElementProviderWrapper) HasOffsetFromLocationToLocation() bool { +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:"), objc.Ptr(range_), textElements) +} + +func (t_ TextElementProviderObject) HasOffsetFromLocationToLocation() bool { return t_.RespondsToSelector(objc.Sel("offsetFromLocation:toLocation:")) } // Returns the offset between the two specified locations. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/uikit/nstextelementprovider/3809947-offsetfromlocation?language=objc -func (t_ TextElementProviderWrapper) OffsetFromLocationToLocation(from PTextLocation, to PTextLocation) int { +func (t_ TextElementProviderObject) OffsetFromLocationToLocation(from TextLocationObject, to TextLocationObject) int { po0 := objc.WrapAsProtocol("NSTextLocation", from) po1 := objc.WrapAsProtocol("NSTextLocation", to) rv := objc.Call[int](t_, objc.Sel("offsetFromLocation:toLocation:"), po0, po1) return rv } -func (t_ TextElementProviderWrapper) HasSynchronizeToBackingStore() bool { - return t_.RespondsToSelector(objc.Sel("synchronizeToBackingStore:")) -} - -// Synchronizes changes to the backing store. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/uikit/nstextelementprovider/3809949-synchronizetobackingstore?language=objc -func (t_ TextElementProviderWrapper) SynchronizeToBackingStore(completionHandler func(error foundation.Error)) { - objc.Call[objc.Void](t_, objc.Sel("synchronizeToBackingStore:"), completionHandler) -} - -func (t_ TextElementProviderWrapper) 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_ TextElementProviderWrapper) LocationFromLocationWithOffset(location PTextLocation, offset int) TextLocationWrapper { - po0 := objc.WrapAsProtocol("NSTextLocation", location) - rv := objc.Call[TextLocationWrapper](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_ TextElementProviderWrapper) HasDocumentRange() bool { +func (t_ TextElementProviderObject) HasDocumentRange() bool { return t_.RespondsToSelector(objc.Sel("documentRange")) } // Describes the starting and ending locations for the document. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/uikit/nstextelementprovider/3809944-documentrange?language=objc -func (t_ TextElementProviderWrapper) DocumentRange() TextRange { +func (t_ TextElementProviderObject) DocumentRange() TextRange { rv := objc.Call[TextRange](t_, objc.Sel("documentRange")) return rv } diff --git a/macos/appkit/text_field.gen.go b/macos/appkit/text_field.gen.go index 7b34efac..bab3d41b 100644 --- a/macos/appkit/text_field.gen.go +++ b/macos/appkit/text_field.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package appkit @@ -19,51 +19,51 @@ type _TextFieldClass struct { // An interface definition for the [TextField] class. type ITextField interface { IControl - SelectText(sender objc.IObject) - TextShouldBeginEditing(textObject IText) bool TextDidChange(notification foundation.INotification) + SelectText(sender objc.IObject) TextDidBeginEditing(notification foundation.INotification) + TextShouldBeginEditing(textObject IText) bool 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) - IsAutomaticTextCompletionEnabled() bool - SetAutomaticTextCompletionEnabled(value bool) LineBreakStrategy() LineBreakStrategy SetLineBreakStrategy(value LineBreakStrategy) - Delegate() TextFieldDelegateWrapper - 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) + IsAutomaticTextCompletionEnabled() bool + SetAutomaticTextCompletionEnabled(value bool) PreferredMaxLayoutWidth() float64 SetPreferredMaxLayoutWidth(value float64) + DrawsBackground() bool + SetDrawsBackground(value bool) } // 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) LabelWithAttributedString(attributedStringValue foundation.IAttributedString) TextField { - rv := objc.Call[TextField](tc, objc.Sel("labelWithAttributedString:"), objc.Ptr(attributedStringValue)) - return rv -} - -// Creates a text field for use as a static label that displays styled text, doesn’t wrap, and doesn’t have selectable text. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nstextfield/1644658-labelwithattributedstring?language=objc -func TextField_LabelWithAttributedString(attributedStringValue foundation.IAttributedString) TextField { - return TextFieldClass.LabelWithAttributedString(attributedStringValue) -} - func (tc _TextFieldClass) LabelWithString(stringValue string) TextField { rv := objc.Call[TextField](tc, objc.Sel("labelWithString:"), stringValue) return rv @@ -103,6 +91,18 @@ 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:"), objc.Ptr(attributedStringValue)) + return rv +} + +// Creates a text field for use as a static label that displays styled text, doesn’t wrap, and doesn’t have selectable text. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/appkit/nstextfield/1644658-labelwithattributedstring?language=objc +func TextField_LabelWithAttributedString(attributedStringValue foundation.IAttributedString) TextField { + return TextFieldClass.LabelWithAttributedString(attributedStringValue) +} + func (tc _TextFieldClass) WrappingLabelWithString(stringValue string) TextField { rv := objc.Call[TextField](tc, objc.Sel("wrappingLabelWithString:"), stringValue) return rv @@ -132,10 +132,6 @@ func (tc _TextFieldClass) Alloc() TextField { return rv } -func TextField_Alloc() TextField { - return TextFieldClass.Alloc() -} - func (tc _TextFieldClass) New() TextField { rv := objc.Call[TextField](tc, objc.Sel("new")) rv.Autorelease() @@ -165,6 +161,13 @@ 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:"), objc.Ptr(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 @@ -172,6 +175,13 @@ 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:"), objc.Ptr(notification)) +} + // Requests permission to begin editing a text object. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/appkit/nstextfield/1399399-textshouldbeginediting?language=objc @@ -180,20 +190,6 @@ 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:"), objc.Ptr(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:"), objc.Ptr(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 @@ -209,133 +205,154 @@ func (t_ TextField) TextDidEndEditing(notification foundation.INotification) { objc.Call[objc.Void](t_, objc.Sel("textDidEndEditing:"), objc.Ptr(notification)) } -// The maximum number of lines a wrapping text field displays before clipping or truncating the text. [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/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/1399428-importsgraphics?language=objc +func (t_ TextField) ImportsGraphics() bool { + rv := objc.Call[bool](t_, objc.Sel("importsGraphics")) return rv } -// The maximum number of lines a wrapping text field displays before clipping or truncating the text. [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/1399424-maximumnumberoflines?language=objc -func (t_ TextField) SetMaximumNumberOfLines(value int) { - objc.Call[objc.Void](t_, objc.Sel("setMaximumNumberOfLines:"), value) +// [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) } -// A Boolean value that controls whether single-line text fields tighten intercharacter spacing before truncating the text. [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/1399405-allowsdefaulttighteningfortrunca?language=objc -func (t_ TextField) AllowsDefaultTighteningForTruncation() bool { - rv := objc.Call[bool](t_, objc.Sel("allowsDefaultTighteningForTruncation")) +// [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 } -// A Boolean value that controls whether single-line text fields tighten intercharacter spacing before truncating the text. [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/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/1399387-placeholderattributedstring?language=objc +func (t_ TextField) SetPlaceholderAttributedString(value foundation.IAttributedString) { + objc.Call[objc.Void](t_, objc.Sel("setPlaceholderAttributedString:"), objc.Ptr(value)) } -// A Boolean value that controls whether the text field draws a solid black border around its contents. [Full Topic] +// The text field’s bezel style, square or rounded. [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/1399418-bezelstyle?language=objc +func (t_ TextField) BezelStyle() TextFieldBezelStyle { + rv := objc.Call[TextFieldBezelStyle](t_, objc.Sel("bezelStyle")) return rv } -// A Boolean value that controls whether the text field draws a solid black border around its contents. [Full Topic] +// The text field’s bezel style, square or rounded. [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/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 user can edit the value in the text field. [Full Topic] +// 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/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/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 user can edit the value in the text field. [Full Topic] +// 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/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/1399435-bezeled?language=objc +func (t_ TextField) SetBezeled(value bool) { + objc.Call[objc.Void](t_, objc.Sel("setBezeled:"), value) } -// A Boolean value that indicates whether the text field automatically completes text as the user types. [Full Topic] +// 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/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/1399401-allowseditingtextattributes?language=objc +func (t_ TextField) AllowsEditingTextAttributes() bool { + rv := objc.Call[bool](t_, objc.Sel("allowsEditingTextAttributes")) return rv } -// A Boolean value that indicates whether the text field automatically completes text as the user types. [Full Topic] +// 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/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/1399401-allowseditingtextattributes?language=objc +func (t_ TextField) SetAllowsEditingTextAttributes(value bool) { + objc.Call[objc.Void](t_, objc.Sel("setAllowsEditingTextAttributes:"), 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) } -// The text field’s delegate. [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/1399437-delegate?language=objc -func (t_ TextField) Delegate() TextFieldDelegateWrapper { - rv := objc.Call[TextFieldDelegateWrapper](t_, objc.Sel("delegate")) +// [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 } -// The text field’s delegate. [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/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/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] +// 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/1399437-delegate?language=objc -func (t_ TextField) SetDelegateObject(valueObject objc.IObject) { - objc.Call[objc.Void](t_, objc.Sel("setDelegate:"), objc.Ptr(valueObject)) +// [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) 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) 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] +// +// [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 attributed string the text field displays when empty to help the user understand the text field’s purpose. [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/1399387-placeholderattributedstring?language=objc -func (t_ TextField) SetPlaceholderAttributedString(value foundation.IAttributedString) { - objc.Call[objc.Void](t_, objc.Sel("setPlaceholderAttributedString:"), objc.Ptr(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) +} + +// 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 +} + +// 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) SetTextColor(value IColor) { + objc.Call[objc.Void](t_, objc.Sel("setTextColor:"), objc.Ptr(value)) } // A Boolean value that controls whether the Touch Bar displays the character picker item for rich text fields. [Full Topic] @@ -353,21 +370,6 @@ 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 @@ -383,109 +385,88 @@ func (t_ TextField) SetBackgroundColor(value IColor) { objc.Call[objc.Void](t_, objc.Sel("setBackgroundColor:"), objc.Ptr(value)) } -// 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/1399422-selectable?language=objc -func (t_ TextField) IsSelectable() bool { - rv := objc.Call[bool](t_, objc.Sel("isSelectable")) - return rv -} - -// 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/1399422-selectable?language=objc -func (t_ TextField) SetSelectable(value bool) { - objc.Call[objc.Void](t_, objc.Sel("setSelectable:"), value) -} - -// A Boolean value that controls whether the user can drag image files into the text field. [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/1399428-importsgraphics?language=objc -func (t_ TextField) ImportsGraphics() bool { - rv := objc.Call[bool](t_, objc.Sel("importsGraphics")) +// [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 user can drag image files into the text field. [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/1399428-importsgraphics?language=objc -func (t_ TextField) SetImportsGraphics(value bool) { - objc.Call[objc.Void](t_, objc.Sel("setImportsGraphics:"), 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 text field’s cell draws a background color behind the text. [Full Topic] +// The text field’s delegate. [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")) +// [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 } -// 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) -} - -// The color of the text field’s content. [Full Topic] +// The text field’s delegate. [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 +// [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) } -// The color of the text field’s content. [Full Topic] +// The text field’s delegate. [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:"), objc.Ptr(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:"), objc.Ptr(valueObject)) } -// The string the text field displays when empty to help the user understand the text field’s purpose. [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/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/1399407-editable?language=objc +func (t_ TextField) IsEditable() bool { + rv := objc.Call[bool](t_, objc.Sel("isEditable")) 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 controls whether the user can edit the value in the text field. [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/1399407-editable?language=objc +func (t_ TextField) SetEditable(value bool) { + objc.Call[objc.Void](t_, objc.Sel("setEditable:"), value) } -// The text field’s bezel style, square or rounded. [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/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/3667464-linebreakstrategy?language=objc +func (t_ TextField) LineBreakStrategy() LineBreakStrategy { + rv := objc.Call[LineBreakStrategy](t_, objc.Sel("lineBreakStrategy")) return rv } -// The text field’s bezel style, square or rounded. [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/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/3667464-linebreakstrategy?language=objc +func (t_ TextField) SetLineBreakStrategy(value LineBreakStrategy) { + objc.Call[objc.Void](t_, objc.Sel("setLineBreakStrategy:"), value) } -// A Boolean value that controls whether the text field draws a bezeled background around its contents. [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/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/2539554-automatictextcompletionenabled?language=objc +func (t_ TextField) IsAutomaticTextCompletionEnabled() bool { + rv := objc.Call[bool](t_, objc.Sel("isAutomaticTextCompletionEnabled")) return rv } -// A Boolean value that controls whether the text field draws a bezeled background around its contents. [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/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/2539554-automatictextcompletionenabled?language=objc +func (t_ TextField) SetAutomaticTextCompletionEnabled(value bool) { + objc.Call[objc.Void](t_, objc.Sel("setAutomaticTextCompletionEnabled:"), value) } // The maximum width of the text field’s intrinsic content size. [Full Topic] @@ -502,3 +483,18 @@ 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 ef96a710..35f63f61 100644 --- a/macos/appkit/text_field_cell.gen.go +++ b/macos/appkit/text_field_cell.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package appkit @@ -24,16 +24,16 @@ type ITextFieldCell interface { SetAllowedInputSourceLocales(value []string) PlaceholderAttributedString() foundation.AttributedString SetPlaceholderAttributedString(value foundation.IAttributedString) - 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) + PlaceholderString() string + SetPlaceholderString(value string) + BackgroundColor() Color + SetBackgroundColor(value IColor) + DrawsBackground() bool + SetDrawsBackground(value bool) } // An object that enhances the text display capabilities of a cell. [Full Topic] @@ -68,10 +68,6 @@ func (tc _TextFieldCellClass) Alloc() TextFieldCell { return rv } -func TextFieldCell_Alloc() TextFieldCell { - return TextFieldCellClass.Alloc() -} - func (tc _TextFieldCellClass) New() TextFieldCell { rv := objc.Call[TextFieldCell](tc, objc.Sel("new")) rv.Autorelease() @@ -138,36 +134,6 @@ func (t_ TextFieldCell) SetPlaceholderAttributedString(value foundation.IAttribu objc.Call[objc.Void](t_, objc.Sel("setPlaceholderAttributedString:"), objc.Ptr(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:"), objc.Ptr(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 @@ -183,6 +149,21 @@ func (t_ TextFieldCell) SetTextColor(value IColor) { objc.Call[objc.Void](t_, objc.Sel("setTextColor:"), objc.Ptr(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 @@ -198,17 +179,32 @@ func (t_ TextFieldCell) SetPlaceholderString(value string) { objc.Call[objc.Void](t_, objc.Sel("setPlaceholderString:"), value) } -// The bezel style to use when drawing the text field. [Full Topic] +// The color of the cell’s background. [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")) +// [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 bezel style to use when drawing the text field. [Full Topic] +// The color of the cell’s background. [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) +// [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:"), objc.Ptr(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) } diff --git a/macos/appkit/text_field_delegate.gen.go b/macos/appkit/text_field_delegate.gen.go index 9b9ae395..1f447148 100644 --- a/macos/appkit/text_field_delegate.gen.go +++ b/macos/appkit/text_field_delegate.gen.go @@ -1,8 +1,9 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package appkit import ( + "github.com/progrium/macdriver/macos/foundation" "github.com/progrium/macdriver/objc" ) @@ -14,12 +15,22 @@ 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 { @@ -39,20 +50,81 @@ 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 +} -// A concrete type wrapper for the [PTextFieldDelegate] protocol. -type TextFieldDelegateWrapper struct { - ControlTextEditingDelegateWrapper +// [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 } -func (t_ TextFieldDelegateWrapper) HasTextFieldTextViewShouldSelectCandidateAtIndex() bool { +// [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) + +// A concrete type for the [PTextFieldDelegate] protocol. +type TextFieldDelegateObject struct { + ControlTextEditingDelegateObject +} + +func (t_ TextFieldDelegateObject) HasTextFieldTextViewShouldSelectCandidateAtIndex() bool { return t_.RespondsToSelector(objc.Sel("textField:textView:shouldSelectCandidateAtIndex:")) } // [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/appkit/nstextfielddelegate/2539557-textfield?language=objc -func (t_ TextFieldDelegateWrapper) TextFieldTextViewShouldSelectCandidateAtIndex(textField ITextField, textView ITextView, index uint) bool { +func (t_ TextFieldDelegateObject) TextFieldTextViewShouldSelectCandidateAtIndex(textField TextField, textView TextView, index uint) bool { rv := objc.Call[bool](t_, objc.Sel("textField:textView:shouldSelectCandidateAtIndex:"), objc.Ptr(textField), objc.Ptr(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:"), objc.Ptr(textField), objc.Ptr(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:"), objc.Ptr(textField), objc.Ptr(textView), selectedRange) + return rv +} diff --git a/macos/appkit/text_finder.gen.go b/macos/appkit/text_finder.gen.go index 8e4043fa..a4abef14 100644 --- a/macos/appkit/text_finder.gen.go +++ b/macos/appkit/text_finder.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package appkit @@ -19,21 +19,21 @@ type _TextFinderClass struct { // An interface definition for the [TextFinder] class. type ITextFinder interface { objc.IObject - PerformAction(op TextFinderAction) - CancelFindIndicator() NoteClientStringWillChange() ValidateAction(op TextFinderAction) bool - IncrementalMatchRanges() []foundation.Value + PerformAction(op TextFinderAction) + CancelFindIndicator() IsIncrementalSearchingEnabled() bool SetIncrementalSearchingEnabled(value bool) - FindIndicatorNeedsUpdate() bool - SetFindIndicatorNeedsUpdate(value bool) - FindBarContainer() TextFinderBarContainerWrapper - SetFindBarContainer(value PTextFinderBarContainer) - SetFindBarContainerObject(valueObject objc.IObject) IncrementalSearchingShouldDimContentView() bool SetIncrementalSearchingShouldDimContentView(value bool) - Client() TextFinderClientWrapper + IncrementalMatchRanges() []foundation.Value + FindBarContainer() TextFinderBarContainerObject + SetFindBarContainer(value PTextFinderBarContainer) + SetFindBarContainerObject(valueObject objc.IObject) + FindIndicatorNeedsUpdate() bool + SetFindIndicatorNeedsUpdate(value bool) + Client() TextFinderClientObject SetClient(value PTextFinderClient) SetClientObject(valueObject objc.IObject) } @@ -61,10 +61,6 @@ func (tc _TextFinderClass) Alloc() TextFinder { return rv } -func TextFinder_Alloc() TextFinder { - return TextFinderClass.Alloc() -} - func (tc _TextFinderClass) New() TextFinder { rv := objc.Call[TextFinder](tc, objc.Sel("new")) rv.Autorelease() @@ -75,18 +71,18 @@ func NewTextFinder() TextFinder { return TextFinderClass.New() } -// 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) } // Invoke this method when the searched content will change. [Full Topic] @@ -104,26 +100,18 @@ func (t_ TextFinder) ValidateAction(op TextFinderAction) bool { return rv } -// Override this method to draw custom highlighting. [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) -} - -// 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 TextFinder_DrawIncrementalMatchHighlightInRect(rect foundation.Rect) { - TextFinderClass.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) } -// Array of incremental search matches posted on the main queue, which have been found during a background search. [Full Topic] +// Cancels the find indicator immediately. [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/1525467-cancelfindindicator?language=objc +func (t_ TextFinder) CancelFindIndicator() { + objc.Call[objc.Void](t_, objc.Sel("cancelFindIndicator")) } // Determines if incremental searching is enabled. [Full Topic] @@ -141,26 +129,34 @@ func (t_ TextFinder) SetIncrementalSearchingEnabled(value bool) { objc.Call[objc.Void](t_, objc.Sel("setIncrementalSearchingEnabled:"), value) } -// 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) +} + +// 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 } // Specifies the find bar container. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/appkit/nstextfinder/1526748-findbarcontainer?language=objc -func (t_ TextFinder) FindBarContainer() TextFinderBarContainerWrapper { - rv := objc.Call[TextFinderBarContainerWrapper](t_, objc.Sel("findBarContainer")) +func (t_ TextFinder) FindBarContainer() TextFinderBarContainerObject { + rv := objc.Call[TextFinderBarContainerObject](t_, objc.Sel("findBarContainer")) return rv } @@ -179,26 +175,26 @@ func (t_ TextFinder) SetFindBarContainerObject(valueObject objc.IObject) { objc.Call[objc.Void](t_, objc.Sel("setFindBarContainer:"), objc.Ptr(valueObject)) } -// 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] +// 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) SetIncrementalSearchingShouldDimContentView(value bool) { - objc.Call[objc.Void](t_, objc.Sel("setIncrementalSearchingShouldDimContentView:"), value) +// [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) } // The object that provides the target search string, find bar location, and feedback methods. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/appkit/nstextfinder/1533813-client?language=objc -func (t_ TextFinder) Client() TextFinderClientWrapper { - rv := objc.Call[TextFinderClientWrapper](t_, objc.Sel("client")) +func (t_ TextFinder) Client() TextFinderClientObject { + rv := objc.Call[TextFinderClientObject](t_, objc.Sel("client")) return rv } diff --git a/macos/appkit/text_finder_bar_container.gen.go b/macos/appkit/text_finder_bar_container_protocol.gen.go similarity index 71% rename from macos/appkit/text_finder_bar_container.gen.go rename to macos/appkit/text_finder_bar_container_protocol.gen.go index 94258a36..d27d8663 100644 --- a/macos/appkit/text_finder_bar_container.gen.go +++ b/macos/appkit/text_finder_bar_container_protocol.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package appkit @@ -10,101 +10,104 @@ import ( // // [Full Topic]: https://developer.apple.com/documentation/appkit/nstextfinderbarcontainer?language=objc type PTextFinderBarContainer interface { - // optional - ContentView() IView - HasContentView() bool - // optional FindBarViewDidChangeHeight() HasFindBarViewDidChangeHeight() bool // optional - SetFindBarVisible(value bool) - HasSetFindBarVisible() bool - - // optional - IsFindBarVisible() bool - HasIsFindBarVisible() bool + ContentView() View + HasContentView() bool // optional SetFindBarView(value View) HasSetFindBarView() bool // optional - FindBarView() IView + FindBarView() View HasFindBarView() bool -} -// A concrete type wrapper for the [PTextFinderBarContainer] protocol. -type TextFinderBarContainerWrapper struct { - objc.Object -} + // optional + SetFindBarVisible(value bool) + HasSetFindBarVisible() bool -func (t_ TextFinderBarContainerWrapper) HasContentView() bool { - return t_.RespondsToSelector(objc.Sel("contentView")) + // optional + IsFindBarVisible() bool + HasIsFindBarVisible() bool } -// A view hierarchy that contains all the views which display the contents being searched. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nstextfinderbarcontainer/1532766-contentview?language=objc -func (t_ TextFinderBarContainerWrapper) ContentView() View { - rv := objc.Call[View](t_, objc.Sel("contentView")) - return rv +// ensure impl type implements protocol interface +var _ PTextFinderBarContainer = (*TextFinderBarContainerObject)(nil) + +// A concrete type for the [PTextFinderBarContainer] protocol. +type TextFinderBarContainerObject struct { + objc.Object } -func (t_ TextFinderBarContainerWrapper) HasFindBarViewDidChangeHeight() bool { +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_ TextFinderBarContainerWrapper) FindBarViewDidChangeHeight() { +func (t_ TextFinderBarContainerObject) FindBarViewDidChangeHeight() { objc.Call[objc.Void](t_, objc.Sel("findBarViewDidChangeHeight")) } -func (t_ TextFinderBarContainerWrapper) HasSetFindBarVisible() bool { - return t_.RespondsToSelector(objc.Sel("setFindBarVisible:")) -} - -// Returns whether the container should display its find bar. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nstextfinderbarcontainer/1528587-findbarvisible?language=objc -func (t_ TextFinderBarContainerWrapper) SetFindBarVisible(value bool) { - objc.Call[objc.Void](t_, objc.Sel("setFindBarVisible:"), value) -} - -func (t_ TextFinderBarContainerWrapper) HasIsFindBarVisible() bool { - return t_.RespondsToSelector(objc.Sel("isFindBarVisible")) +func (t_ TextFinderBarContainerObject) HasContentView() bool { + return t_.RespondsToSelector(objc.Sel("contentView")) } -// Returns whether the container should display its find bar. [Full Topic] +// A view hierarchy that contains all the views which display the contents being searched. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nstextfinderbarcontainer/1528587-findbarvisible?language=objc -func (t_ TextFinderBarContainerWrapper) IsFindBarVisible() bool { - rv := objc.Call[bool](t_, objc.Sel("isFindBarVisible")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nstextfinderbarcontainer/1532766-contentview?language=objc +func (t_ TextFinderBarContainerObject) ContentView() View { + rv := objc.Call[View](t_, objc.Sel("contentView")) return rv } -func (t_ TextFinderBarContainerWrapper) HasSetFindBarView() bool { +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_ TextFinderBarContainerWrapper) SetFindBarView(value IView) { +func (t_ TextFinderBarContainerObject) SetFindBarView(value View) { objc.Call[objc.Void](t_, objc.Sel("setFindBarView:"), objc.Ptr(value)) } -func (t_ TextFinderBarContainerWrapper) HasFindBarView() bool { +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_ TextFinderBarContainerWrapper) FindBarView() View { +func (t_ TextFinderBarContainerObject) FindBarView() View { rv := objc.Call[View](t_, objc.Sel("findBarView")) return rv } + +func (t_ TextFinderBarContainerObject) HasSetFindBarVisible() bool { + return t_.RespondsToSelector(objc.Sel("setFindBarVisible:")) +} + +// Returns whether the container should display its find bar. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/appkit/nstextfinderbarcontainer/1528587-findbarvisible?language=objc +func (t_ TextFinderBarContainerObject) SetFindBarVisible(value bool) { + objc.Call[objc.Void](t_, objc.Sel("setFindBarVisible:"), value) +} + +func (t_ TextFinderBarContainerObject) HasIsFindBarVisible() bool { + return t_.RespondsToSelector(objc.Sel("isFindBarVisible")) +} + +// Returns whether the container should display its find bar. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/appkit/nstextfinderbarcontainer/1528587-findbarvisible?language=objc +func (t_ TextFinderBarContainerObject) IsFindBarVisible() bool { + rv := objc.Call[bool](t_, objc.Sel("isFindBarVisible")) + return rv +} diff --git a/macos/appkit/text_finder_client.gen.go b/macos/appkit/text_finder_client_protocol.gen.go similarity index 72% rename from macos/appkit/text_finder_client.gen.go rename to macos/appkit/text_finder_client_protocol.gen.go index b09a35a7..4a239902 100644 --- a/macos/appkit/text_finder_client.gen.go +++ b/macos/appkit/text_finder_client_protocol.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package appkit @@ -12,12 +12,12 @@ import ( // [Full Topic]: https://developer.apple.com/documentation/appkit/nstextfinderclient?language=objc type PTextFinderClient interface { // optional - DidReplaceCharacters() - HasDidReplaceCharacters() bool + ReplaceCharactersInRangeWithString(range_ foundation.Range, string_ string) + HasReplaceCharactersInRangeWithString() bool // optional - ScrollRangeToVisible(range_ foundation.Range) - HasScrollRangeToVisible() bool + ShouldReplaceCharactersInRangesWithStrings(ranges []foundation.Value, strings []string) bool + HasShouldReplaceCharactersInRangesWithStrings() bool // optional DrawCharactersInRangeForContentView(range_ foundation.Range, view View) @@ -32,31 +32,31 @@ type PTextFinderClient interface { HasStringLength() bool // optional - ShouldReplaceCharactersInRangesWithStrings(ranges []foundation.Value, strings []string) bool - HasShouldReplaceCharactersInRangesWithStrings() bool + RectsForCharacterRange(range_ foundation.Range) []foundation.Value + HasRectsForCharacterRange() bool // optional - ReplaceCharactersInRangeWithString(range_ foundation.Range, string_ string) - HasReplaceCharactersInRangeWithString() bool + ScrollRangeToVisible(range_ foundation.Range) + HasScrollRangeToVisible() bool // optional - RectsForCharacterRange(range_ foundation.Range) []foundation.IValue - HasRectsForCharacterRange() bool + ContentViewAtIndexEffectiveCharacterRange(index uint, outRange foundation.RangePointer) View + HasContentViewAtIndexEffectiveCharacterRange() bool // optional - ContentViewAtIndexEffectiveCharacterRange(index uint, outRange foundation.RangePointer) IView - HasContentViewAtIndexEffectiveCharacterRange() bool + DidReplaceCharacters() + HasDidReplaceCharacters() bool // optional - IsEditable() bool - HasIsEditable() bool + AllowsMultipleSelection() bool + HasAllowsMultipleSelection() bool // optional - FirstSelectedRange() foundation.Range - HasFirstSelectedRange() bool + IsEditable() bool + HasIsEditable() bool // optional - VisibleCharacterRanges() []foundation.IValue + VisibleCharacterRanges() []foundation.Value HasVisibleCharacterRanges() bool // optional @@ -64,222 +64,225 @@ type PTextFinderClient interface { HasIsSelectable() bool // optional - String() string - HasString() bool - - // optional - AllowsMultipleSelection() bool - HasAllowsMultipleSelection() bool + FirstSelectedRange() foundation.Range + HasFirstSelectedRange() bool // optional SetSelectedRanges(value []foundation.Value) HasSetSelectedRanges() bool // optional - SelectedRanges() []foundation.IValue + SelectedRanges() []foundation.Value HasSelectedRanges() bool + + // optional + String() string + HasString() bool } -// A concrete type wrapper for the [PTextFinderClient] protocol. -type TextFinderClientWrapper struct { +// ensure impl type implements protocol interface +var _ PTextFinderClient = (*TextFinderClientObject)(nil) + +// A concrete type for the [PTextFinderClient] protocol. +type TextFinderClientObject struct { objc.Object } -func (t_ TextFinderClientWrapper) HasDidReplaceCharacters() bool { - return t_.RespondsToSelector(objc.Sel("didReplaceCharacters")) +func (t_ TextFinderClientObject) HasReplaceCharactersInRangeWithString() bool { + return t_.RespondsToSelector(objc.Sel("replaceCharactersInRange:withString:")) } -// Specifies whether text characters were replaced. [Full Topic] +// Replaces the text in the specified range with the new string. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nstextfinderclient/1534301-didreplacecharacters?language=objc -func (t_ TextFinderClientWrapper) DidReplaceCharacters() { - objc.Call[objc.Void](t_, objc.Sel("didReplaceCharacters")) +// [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_ TextFinderClientWrapper) HasScrollRangeToVisible() bool { - return t_.RespondsToSelector(objc.Sel("scrollRangeToVisible:")) +func (t_ TextFinderClientObject) HasShouldReplaceCharactersInRangesWithStrings() bool { + return t_.RespondsToSelector(objc.Sel("shouldReplaceCharactersInRanges:withStrings:")) } -// Scrolls the specified range such that it is visible. [Full Topic] +// Returns whether the specified strings should be replaced. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nstextfinderclient/1526989-scrollrangetovisible?language=objc -func (t_ TextFinderClientWrapper) ScrollRangeToVisible(range_ foundation.Range) { - objc.Call[objc.Void](t_, objc.Sel("scrollRangeToVisible:"), range_) +// [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_ TextFinderClientWrapper) HasDrawCharactersInRangeForContentView() bool { +func (t_ TextFinderClientObject) HasDrawCharactersInRangeForContentView() bool { return t_.RespondsToSelector(objc.Sel("drawCharactersInRange:forContentView:")) } // Draw the glyphs for the requested character range as they are drawn in the given content view. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/appkit/nstextfinderclient/1533760-drawcharactersinrange?language=objc -func (t_ TextFinderClientWrapper) DrawCharactersInRangeForContentView(range_ foundation.Range, view IView) { +func (t_ TextFinderClientObject) DrawCharactersInRangeForContentView(range_ foundation.Range, view View) { objc.Call[objc.Void](t_, objc.Sel("drawCharactersInRange:forContentView:"), range_, objc.Ptr(view)) } -func (t_ TextFinderClientWrapper) HasStringAtIndexEffectiveRangeEndsWithSearchBoundary() bool { +func (t_ TextFinderClientObject) HasStringAtIndexEffectiveRangeEndsWithSearchBoundary() bool { return t_.RespondsToSelector(objc.Sel("stringAtIndex:effectiveRange:endsWithSearchBoundary:")) } // Returns the found string that is created by conceptually mapping its content to a single string, which is composed of a concatenation of all its substrings. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/appkit/nstextfinderclient/1529466-stringatindex?language=objc -func (t_ TextFinderClientWrapper) StringAtIndexEffectiveRangeEndsWithSearchBoundary(characterIndex uint, outRange foundation.RangePointer, outFlag *bool) string { +func (t_ TextFinderClientObject) StringAtIndexEffectiveRangeEndsWithSearchBoundary(characterIndex uint, outRange foundation.RangePointer, outFlag *bool) string { rv := objc.Call[string](t_, objc.Sel("stringAtIndex:effectiveRange:endsWithSearchBoundary:"), characterIndex, outRange, outFlag) return rv } -func (t_ TextFinderClientWrapper) HasStringLength() bool { +func (t_ TextFinderClientObject) HasStringLength() bool { return t_.RespondsToSelector(objc.Sel("stringLength")) } // Returns the full length of the conceptually concatenated string return by the stringAtIndex:effectiveRange:endsWithSearchBoundary: method. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/appkit/nstextfinderclient/1534333-stringlength?language=objc -func (t_ TextFinderClientWrapper) StringLength() uint { +func (t_ TextFinderClientObject) StringLength() uint { rv := objc.Call[uint](t_, objc.Sel("stringLength")) return rv } -func (t_ TextFinderClientWrapper) HasShouldReplaceCharactersInRangesWithStrings() bool { - return t_.RespondsToSelector(objc.Sel("shouldReplaceCharactersInRanges:withStrings:")) +func (t_ TextFinderClientObject) HasRectsForCharacterRange() bool { + return t_.RespondsToSelector(objc.Sel("rectsForCharacterRange:")) } -// Returns whether the specified strings should be replaced. [Full Topic] +// An array containing the located text in the content view’s coordinate system. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nstextfinderclient/1529811-shouldreplacecharactersinranges?language=objc -func (t_ TextFinderClientWrapper) ShouldReplaceCharactersInRangesWithStrings(ranges []foundation.IValue, strings []string) bool { - rv := objc.Call[bool](t_, objc.Sel("shouldReplaceCharactersInRanges:withStrings:"), ranges, strings) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nstextfinderclient/1529980-rectsforcharacterrange?language=objc +func (t_ TextFinderClientObject) RectsForCharacterRange(range_ foundation.Range) []foundation.Value { + rv := objc.Call[[]foundation.Value](t_, objc.Sel("rectsForCharacterRange:"), range_) return rv } -func (t_ TextFinderClientWrapper) HasReplaceCharactersInRangeWithString() bool { - return t_.RespondsToSelector(objc.Sel("replaceCharactersInRange:withString:")) +func (t_ TextFinderClientObject) HasScrollRangeToVisible() bool { + return t_.RespondsToSelector(objc.Sel("scrollRangeToVisible:")) } -// Replaces the text in the specified range with the new string. [Full Topic] +// Scrolls the specified range such that it is visible. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nstextfinderclient/1527702-replacecharactersinrange?language=objc -func (t_ TextFinderClientWrapper) 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/1526989-scrollrangetovisible?language=objc +func (t_ TextFinderClientObject) ScrollRangeToVisible(range_ foundation.Range) { + objc.Call[objc.Void](t_, objc.Sel("scrollRangeToVisible:"), range_) } -func (t_ TextFinderClientWrapper) HasRectsForCharacterRange() bool { - return t_.RespondsToSelector(objc.Sel("rectsForCharacterRange:")) +func (t_ TextFinderClientObject) HasContentViewAtIndexEffectiveCharacterRange() bool { + return t_.RespondsToSelector(objc.Sel("contentViewAtIndex:effectiveCharacterRange:")) } -// An array containing the located text in the content view’s coordinate system. [Full Topic] +// Returns the view the context is displayed in. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nstextfinderclient/1529980-rectsforcharacterrange?language=objc -func (t_ TextFinderClientWrapper) RectsForCharacterRange(range_ foundation.Range) []foundation.Value { - rv := objc.Call[[]foundation.Value](t_, objc.Sel("rectsForCharacterRange:"), range_) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nstextfinderclient/1524830-contentviewatindex?language=objc +func (t_ TextFinderClientObject) ContentViewAtIndexEffectiveCharacterRange(index uint, outRange foundation.RangePointer) View { + rv := objc.Call[View](t_, objc.Sel("contentViewAtIndex:effectiveCharacterRange:"), index, outRange) return rv } -func (t_ TextFinderClientWrapper) HasContentViewAtIndexEffectiveCharacterRange() bool { - return t_.RespondsToSelector(objc.Sel("contentViewAtIndex:effectiveCharacterRange:")) +func (t_ TextFinderClientObject) HasDidReplaceCharacters() bool { + return t_.RespondsToSelector(objc.Sel("didReplaceCharacters")) } -// Returns the view the context is displayed in. [Full Topic] +// Specifies whether text characters were replaced. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nstextfinderclient/1524830-contentviewatindex?language=objc -func (t_ TextFinderClientWrapper) ContentViewAtIndexEffectiveCharacterRange(index uint, outRange foundation.RangePointer) View { - rv := objc.Call[View](t_, objc.Sel("contentViewAtIndex:effectiveCharacterRange:"), index, outRange) - return rv +// [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_ TextFinderClientWrapper) HasIsEditable() bool { - return t_.RespondsToSelector(objc.Sel("isEditable")) +func (t_ TextFinderClientObject) HasAllowsMultipleSelection() bool { + return t_.RespondsToSelector(objc.Sel("allowsMultipleSelection")) } -// Returns whether the text is editable. [Full Topic] +// Returns whether multiple items can be selected. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nstextfinderclient/1528515-editable?language=objc -func (t_ TextFinderClientWrapper) IsEditable() bool { - rv := objc.Call[bool](t_, objc.Sel("isEditable")) +// [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_ TextFinderClientWrapper) HasFirstSelectedRange() bool { - return t_.RespondsToSelector(objc.Sel("firstSelectedRange")) +func (t_ TextFinderClientObject) HasIsEditable() bool { + return t_.RespondsToSelector(objc.Sel("isEditable")) } -// Returns the currently selected range. [Full Topic] +// Returns whether the text is editable. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nstextfinderclient/1526936-firstselectedrange?language=objc -func (t_ TextFinderClientWrapper) FirstSelectedRange() foundation.Range { - rv := objc.Call[foundation.Range](t_, objc.Sel("firstSelectedRange")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nstextfinderclient/1528515-editable?language=objc +func (t_ TextFinderClientObject) IsEditable() bool { + rv := objc.Call[bool](t_, objc.Sel("isEditable")) return rv } -func (t_ TextFinderClientWrapper) HasVisibleCharacterRanges() bool { +func (t_ TextFinderClientObject) HasVisibleCharacterRanges() bool { return t_.RespondsToSelector(objc.Sel("visibleCharacterRanges")) } // An array of visible character ranges. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/appkit/nstextfinderclient/1524834-visiblecharacterranges?language=objc -func (t_ TextFinderClientWrapper) VisibleCharacterRanges() []foundation.Value { +func (t_ TextFinderClientObject) VisibleCharacterRanges() []foundation.Value { rv := objc.Call[[]foundation.Value](t_, objc.Sel("visibleCharacterRanges")) return rv } -func (t_ TextFinderClientWrapper) HasIsSelectable() bool { +func (t_ TextFinderClientObject) HasIsSelectable() bool { return t_.RespondsToSelector(objc.Sel("isSelectable")) } // Returns whether the text is selectable. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/appkit/nstextfinderclient/1533766-selectable?language=objc -func (t_ TextFinderClientWrapper) IsSelectable() bool { +func (t_ TextFinderClientObject) IsSelectable() bool { rv := objc.Call[bool](t_, objc.Sel("isSelectable")) return rv } -func (t_ TextFinderClientWrapper) 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_ TextFinderClientWrapper) String() string { - rv := objc.Call[string](t_, objc.Sel("string")) - return rv -} - -func (t_ TextFinderClientWrapper) HasAllowsMultipleSelection() bool { - return t_.RespondsToSelector(objc.Sel("allowsMultipleSelection")) +func (t_ TextFinderClientObject) HasFirstSelectedRange() bool { + return t_.RespondsToSelector(objc.Sel("firstSelectedRange")) } -// Returns whether multiple items can be selected. [Full Topic] +// Returns the currently selected range. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nstextfinderclient/1530815-allowsmultipleselection?language=objc -func (t_ TextFinderClientWrapper) AllowsMultipleSelection() bool { - rv := objc.Call[bool](t_, objc.Sel("allowsMultipleSelection")) +// [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_ TextFinderClientWrapper) HasSetSelectedRanges() bool { +func (t_ TextFinderClientObject) HasSetSelectedRanges() bool { return t_.RespondsToSelector(objc.Sel("setSelectedRanges:")) } // Returns an array of selected ranges. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/appkit/nstextfinderclient/1524696-selectedranges?language=objc -func (t_ TextFinderClientWrapper) SetSelectedRanges(value []foundation.IValue) { +func (t_ TextFinderClientObject) SetSelectedRanges(value []foundation.Value) { objc.Call[objc.Void](t_, objc.Sel("setSelectedRanges:"), value) } -func (t_ TextFinderClientWrapper) HasSelectedRanges() bool { +func (t_ TextFinderClientObject) HasSelectedRanges() bool { return t_.RespondsToSelector(objc.Sel("selectedRanges")) } // Returns an array of selected ranges. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/appkit/nstextfinderclient/1524696-selectedranges?language=objc -func (t_ TextFinderClientWrapper) SelectedRanges() []foundation.Value { +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.gen.go b/macos/appkit/text_input_client_protocol.gen.go similarity index 72% rename from macos/appkit/text_input_client.gen.go rename to macos/appkit/text_input_client_protocol.gen.go index 3c3a6e6e..adbb3bae 100644 --- a/macos/appkit/text_input_client.gen.go +++ b/macos/appkit/text_input_client_protocol.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package appkit @@ -12,259 +12,262 @@ import ( // [Full Topic]: https://developer.apple.com/documentation/appkit/nstextinputclient?language=objc type PTextInputClient interface { // optional - InsertTextReplacementRange(string_ objc.Object, replacementRange foundation.Range) - HasInsertTextReplacementRange() bool - - // optional - HasMarkedText() bool - HasHasMarkedText() bool + AttributedString() foundation.AttributedString + HasAttributedString() bool // optional - DrawsVerticallyForCharacterAtIndex(charIndex uint) bool - HasDrawsVerticallyForCharacterAtIndex() bool + FractionOfDistanceThroughGlyphForPoint(point foundation.Point) float64 + HasFractionOfDistanceThroughGlyphForPoint() bool // optional - AttributedString() foundation.IAttributedString - HasAttributedString() bool + SetMarkedTextSelectedRangeReplacementRange(string_ objc.Object, selectedRange foundation.Range, replacementRange foundation.Range) + HasSetMarkedTextSelectedRangeReplacementRange() bool // optional - CharacterIndexForPoint(point foundation.Point) uint - HasCharacterIndexForPoint() bool + FirstRectForCharacterRangeActualRange(range_ foundation.Range, actualRange foundation.RangePointer) foundation.Rect + HasFirstRectForCharacterRangeActualRange() bool // optional UnmarkText() HasUnmarkText() bool // optional - SelectedRange() foundation.Range - HasSelectedRange() bool + HasMarkedText() bool + HasHasMarkedText() bool // optional - MarkedRange() foundation.Range - HasMarkedRange() bool + SelectedRange() foundation.Range + HasSelectedRange() bool // optional - SetMarkedTextSelectedRangeReplacementRange(string_ objc.Object, selectedRange foundation.Range, replacementRange foundation.Range) - HasSetMarkedTextSelectedRangeReplacementRange() bool + BaselineDeltaForCharacterAtIndex(anIndex uint) float64 + HasBaselineDeltaForCharacterAtIndex() bool // optional - WindowLevel() int - HasWindowLevel() bool + DoCommandBySelector(selector objc.Selector) + HasDoCommandBySelector() bool // optional - BaselineDeltaForCharacterAtIndex(anIndex uint) float64 - HasBaselineDeltaForCharacterAtIndex() bool + DrawsVerticallyForCharacterAtIndex(charIndex uint) bool + HasDrawsVerticallyForCharacterAtIndex() bool // optional - AttributedSubstringForProposedRangeActualRange(range_ foundation.Range, actualRange foundation.RangePointer) foundation.IAttributedString + AttributedSubstringForProposedRangeActualRange(range_ foundation.Range, actualRange foundation.RangePointer) foundation.AttributedString HasAttributedSubstringForProposedRangeActualRange() bool // optional - FirstRectForCharacterRangeActualRange(range_ foundation.Range, actualRange foundation.RangePointer) foundation.Rect - HasFirstRectForCharacterRangeActualRange() bool + ValidAttributesForMarkedText() []foundation.AttributedStringKey + HasValidAttributesForMarkedText() bool // optional - DoCommandBySelector(selector objc.Selector) - HasDoCommandBySelector() bool + InsertTextReplacementRange(string_ objc.Object, replacementRange foundation.Range) + HasInsertTextReplacementRange() bool // optional - FractionOfDistanceThroughGlyphForPoint(point foundation.Point) float64 - HasFractionOfDistanceThroughGlyphForPoint() bool + WindowLevel() int + HasWindowLevel() bool // optional - ValidAttributesForMarkedText() []foundation.AttributedStringKey - HasValidAttributesForMarkedText() bool -} + MarkedRange() foundation.Range + HasMarkedRange() bool -// A concrete type wrapper for the [PTextInputClient] protocol. -type TextInputClientWrapper struct { - objc.Object + // optional + CharacterIndexForPoint(point foundation.Point) uint + HasCharacterIndexForPoint() bool } -func (t_ TextInputClientWrapper) HasInsertTextReplacementRange() bool { - return t_.RespondsToSelector(objc.Sel("insertText:replacementRange:")) -} +// ensure impl type implements protocol interface +var _ PTextInputClient = (*TextInputClientObject)(nil) -// 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_ TextInputClientWrapper) InsertTextReplacementRange(string_ objc.IObject, replacementRange foundation.Range) { - objc.Call[objc.Void](t_, objc.Sel("insertText:replacementRange:"), string_, replacementRange) +// A concrete type for the [PTextInputClient] protocol. +type TextInputClientObject struct { + objc.Object } -func (t_ TextInputClientWrapper) HasHasMarkedText() bool { - return t_.RespondsToSelector(objc.Sel("hasMarkedText")) +func (t_ TextInputClientObject) HasAttributedString() bool { + return t_.RespondsToSelector(objc.Sel("attributedString")) } -// Returns a Boolean value indicating whether the receiver has marked text. [Full Topic] +// Returns an attributed string representing the receiver's text storage. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nstextinputclient/1438234-hasmarkedtext?language=objc -func (t_ TextInputClientWrapper) HasMarkedText() bool { - rv := objc.Call[bool](t_, objc.Sel("hasMarkedText")) +// [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_ TextInputClientWrapper) HasDrawsVerticallyForCharacterAtIndex() bool { - return t_.RespondsToSelector(objc.Sel("drawsVerticallyForCharacterAtIndex:")) +func (t_ TextInputClientObject) HasFractionOfDistanceThroughGlyphForPoint() bool { + return t_.RespondsToSelector(objc.Sel("fractionOfDistanceThroughGlyphForPoint:")) } -// Informs the text input management system whether the protocol-conforming client renders the character at the given index vertically. [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/1438252-drawsverticallyforcharacteratind?language=objc -func (t_ TextInputClientWrapper) DrawsVerticallyForCharacterAtIndex(charIndex uint) bool { - rv := objc.Call[bool](t_, objc.Sel("drawsVerticallyForCharacterAtIndex:"), charIndex) +// [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_ TextInputClientWrapper) HasAttributedString() bool { - return t_.RespondsToSelector(objc.Sel("attributedString")) +func (t_ TextInputClientObject) HasSetMarkedTextSelectedRangeReplacementRange() bool { + return t_.RespondsToSelector(objc.Sel("setMarkedText:selectedRange:replacementRange:")) } -// Returns an attributed string representing the receiver's text storage. [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/1438232-attributedstring?language=objc -func (t_ TextInputClientWrapper) AttributedString() foundation.AttributedString { - rv := objc.Call[foundation.AttributedString](t_, objc.Sel("attributedString")) - return rv +// [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_ TextInputClientWrapper) HasCharacterIndexForPoint() bool { - return t_.RespondsToSelector(objc.Sel("characterIndexForPoint:")) +func (t_ TextInputClientObject) HasFirstRectForCharacterRangeActualRange() bool { + return t_.RespondsToSelector(objc.Sel("firstRectForCharacterRange:actualRange:")) } -// Returns the index of the character whose bounding rectangle includes the given point. [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/1438244-characterindexforpoint?language=objc -func (t_ TextInputClientWrapper) CharacterIndexForPoint(point foundation.Point) uint { - rv := objc.Call[uint](t_, objc.Sel("characterIndexForPoint:"), point) +// [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_ TextInputClientWrapper) HasUnmarkText() bool { +func (t_ TextInputClientObject) HasUnmarkText() bool { return t_.RespondsToSelector(objc.Sel("unmarkText")) } // Unmarks the marked text. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/appkit/nstextinputclient/1438239-unmarktext?language=objc -func (t_ TextInputClientWrapper) UnmarkText() { +func (t_ TextInputClientObject) UnmarkText() { objc.Call[objc.Void](t_, objc.Sel("unmarkText")) } -func (t_ TextInputClientWrapper) HasSelectedRange() bool { - return t_.RespondsToSelector(objc.Sel("selectedRange")) +func (t_ TextInputClientObject) HasHasMarkedText() bool { + return t_.RespondsToSelector(objc.Sel("hasMarkedText")) } -// Returns the range of selected text. [Full Topic] +// Returns a Boolean value indicating whether the receiver has marked text. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nstextinputclient/1438242-selectedrange?language=objc -func (t_ TextInputClientWrapper) SelectedRange() foundation.Range { - rv := objc.Call[foundation.Range](t_, objc.Sel("selectedRange")) +// [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_ TextInputClientWrapper) HasMarkedRange() bool { - return t_.RespondsToSelector(objc.Sel("markedRange")) +func (t_ TextInputClientObject) HasSelectedRange() bool { + return t_.RespondsToSelector(objc.Sel("selectedRange")) } -// Returns the range of the marked text. [Full Topic] +// Returns the range of selected text. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nstextinputclient/1438250-markedrange?language=objc -func (t_ TextInputClientWrapper) MarkedRange() foundation.Range { - rv := objc.Call[foundation.Range](t_, objc.Sel("markedRange")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nstextinputclient/1438242-selectedrange?language=objc +func (t_ TextInputClientObject) SelectedRange() foundation.Range { + rv := objc.Call[foundation.Range](t_, objc.Sel("selectedRange")) return rv } -func (t_ TextInputClientWrapper) HasSetMarkedTextSelectedRangeReplacementRange() bool { - return t_.RespondsToSelector(objc.Sel("setMarkedText:selectedRange:replacementRange:")) +func (t_ TextInputClientObject) HasBaselineDeltaForCharacterAtIndex() bool { + return t_.RespondsToSelector(objc.Sel("baselineDeltaForCharacterAtIndex:")) } -// Replaces a specified range in the receiver’s text storage with the given string and sets the selection. [Full Topic] +// Returns the baseline position of a given character relative to the origin of rectangle returned by [appkit/nstextinputclient/firstrectforcharacterrange]. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nstextinputclient/1438246-setmarkedtext?language=objc -func (t_ TextInputClientWrapper) SetMarkedTextSelectedRangeReplacementRange(string_ objc.IObject, 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/1438254-baselinedeltaforcharacteratindex?language=objc +func (t_ TextInputClientObject) BaselineDeltaForCharacterAtIndex(anIndex uint) float64 { + rv := objc.Call[float64](t_, objc.Sel("baselineDeltaForCharacterAtIndex:"), anIndex) + return rv } -func (t_ TextInputClientWrapper) 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_ TextInputClientWrapper) 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_ TextInputClientWrapper) HasBaselineDeltaForCharacterAtIndex() bool { - return t_.RespondsToSelector(objc.Sel("baselineDeltaForCharacterAtIndex:")) +func (t_ TextInputClientObject) HasDrawsVerticallyForCharacterAtIndex() bool { + return t_.RespondsToSelector(objc.Sel("drawsVerticallyForCharacterAtIndex:")) } -// Returns the baseline position of a given character relative to the origin of rectangle returned by firstRectForCharacterRange:actualRange:. [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/1438254-baselinedeltaforcharacteratindex?language=objc -func (t_ TextInputClientWrapper) BaselineDeltaForCharacterAtIndex(anIndex uint) float64 { - rv := objc.Call[float64](t_, objc.Sel("baselineDeltaForCharacterAtIndex:"), anIndex) +// [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_ TextInputClientWrapper) HasAttributedSubstringForProposedRangeActualRange() bool { +func (t_ TextInputClientObject) HasAttributedSubstringForProposedRangeActualRange() bool { return t_.RespondsToSelector(objc.Sel("attributedSubstringForProposedRange:actualRange:")) } // Returns an attributed string derived from the given range in the receiver's text storage. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/appkit/nstextinputclient/1438238-attributedsubstringforproposedra?language=objc -func (t_ TextInputClientWrapper) AttributedSubstringForProposedRangeActualRange(range_ foundation.Range, actualRange foundation.RangePointer) foundation.AttributedString { +func (t_ TextInputClientObject) AttributedSubstringForProposedRangeActualRange(range_ foundation.Range, actualRange foundation.RangePointer) foundation.AttributedString { rv := objc.Call[foundation.AttributedString](t_, objc.Sel("attributedSubstringForProposedRange:actualRange:"), range_, actualRange) return rv } -func (t_ TextInputClientWrapper) HasFirstRectForCharacterRangeActualRange() bool { - return t_.RespondsToSelector(objc.Sel("firstRectForCharacterRange:actualRange:")) +func (t_ TextInputClientObject) HasValidAttributesForMarkedText() bool { + return t_.RespondsToSelector(objc.Sel("validAttributesForMarkedText")) } -// Returns the first logical boundary rectangle for characters in the given range. [Full Topic] +// Returns an array of attribute names recognized by the receiver. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nstextinputclient/1438240-firstrectforcharacterrange?language=objc -func (t_ TextInputClientWrapper) 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/1438228-validattributesformarkedtext?language=objc +func (t_ TextInputClientObject) ValidAttributesForMarkedText() []foundation.AttributedStringKey { + rv := objc.Call[[]foundation.AttributedStringKey](t_, objc.Sel("validAttributesForMarkedText")) return rv } -func (t_ TextInputClientWrapper) HasDoCommandBySelector() bool { - return t_.RespondsToSelector(objc.Sel("doCommandBySelector:")) +func (t_ TextInputClientObject) HasInsertTextReplacementRange() bool { + return t_.RespondsToSelector(objc.Sel("insertText:replacementRange:")) } -// Invokes the action specified by the given selector. [Full Topic] +// Inserts the given string into the receiver, replacing the specified content. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nstextinputclient/1438256-docommandbyselector?language=objc -func (t_ TextInputClientWrapper) DoCommandBySelector(selector objc.Selector) { - objc.Call[objc.Void](t_, objc.Sel("doCommandBySelector:"), selector) +// [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_ TextInputClientWrapper) HasFractionOfDistanceThroughGlyphForPoint() bool { - return t_.RespondsToSelector(objc.Sel("fractionOfDistanceThroughGlyphForPoint:")) +func (t_ TextInputClientObject) HasWindowLevel() bool { + return t_.RespondsToSelector(objc.Sel("windowLevel")) } -// Returns the fraction of the distance from the left side of the character to the right side that a given point lies. [Full Topic] +// Returns the window level of the receiver. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nstextinputclient/1438236-fractionofdistancethroughglyphfo?language=objc -func (t_ TextInputClientWrapper) FractionOfDistanceThroughGlyphForPoint(point foundation.Point) float64 { - rv := objc.Call[float64](t_, objc.Sel("fractionOfDistanceThroughGlyphForPoint:"), point) +// [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_ TextInputClientWrapper) HasValidAttributesForMarkedText() bool { - return t_.RespondsToSelector(objc.Sel("validAttributesForMarkedText")) +func (t_ TextInputClientObject) HasMarkedRange() bool { + return t_.RespondsToSelector(objc.Sel("markedRange")) } -// Returns an array of attribute names recognized by the receiver. [Full Topic] +// Returns the range of the marked text. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nstextinputclient/1438228-validattributesformarkedtext?language=objc -func (t_ TextInputClientWrapper) ValidAttributesForMarkedText() []foundation.AttributedStringKey { - rv := objc.Call[[]foundation.AttributedStringKey](t_, objc.Sel("validAttributesForMarkedText")) +// [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) HasCharacterIndexForPoint() bool { + return t_.RespondsToSelector(objc.Sel("characterIndexForPoint:")) +} + +// Returns the index of the character whose bounding rectangle includes the given point. [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) return rv } diff --git a/macos/appkit/text_input_context.gen.go b/macos/appkit/text_input_context.gen.go index b33f4b79..a3831939 100644 --- a/macos/appkit/text_input_context.gen.go +++ b/macos/appkit/text_input_context.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package appkit @@ -18,19 +18,19 @@ type _TextInputContextClass struct { // An interface definition for the [TextInputContext] class. type ITextInputContext interface { objc.IObject - Activate() - DiscardMarkedText() HandleEvent(event IEvent) bool + Activate() Deactivate() InvalidateCharacterCoordinates() - KeyboardInputSources() []TextInputSourceIdentifier + DiscardMarkedText() + Client() TextInputClientObject AllowedInputSourceLocales() []string SetAllowedInputSourceLocales(value []string) - AcceptsGlyphInfo() bool - SetAcceptsGlyphInfo(value bool) SelectedKeyboardInputSource() TextInputSourceIdentifier SetSelectedKeyboardInputSource(value TextInputSourceIdentifier) - Client() TextInputClientWrapper + AcceptsGlyphInfo() bool + SetAcceptsGlyphInfo(value bool) + KeyboardInputSources() []TextInputSourceIdentifier } // An object that represents the Cocoa text input system. [Full Topic] @@ -66,10 +66,6 @@ func (tc _TextInputContextClass) Alloc() TextInputContext { return rv } -func TextInputContext_Alloc() TextInputContext { - return TextInputContextClass.Alloc() -} - func (tc _TextInputContextClass) New() TextInputContext { rv := objc.Call[TextInputContext](tc, objc.Sel("new")) rv.Autorelease() @@ -85,20 +81,6 @@ 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 @@ -107,6 +89,13 @@ 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 @@ -136,11 +125,33 @@ func (t_ TextInputContext) InvalidateCharacterCoordinates() { objc.Call[objc.Void](t_, objc.Sel("invalidateCharacterCoordinates")) } -// The array of keyboard text input source identifier strings available to the receiver. (read-only) [Full Topic] +// Tells the Cocoa text input system to discard the current conversion session. [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/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] +// +// [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 } @@ -159,21 +170,6 @@ 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 @@ -189,25 +185,25 @@ func (t_ TextInputContext) SetSelectedKeyboardInputSource(value TextInputSourceI objc.Call[objc.Void](t_, objc.Sel("setSelectedKeyboardInputSource:"), value) } -// Returns the current, activated, text input context object. [Full Topic] +// A Boolean value that indicates whether the client handles NSGlyphInfoAttributeName or not. [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")) +// [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 } -// Returns the current, activated, text input context object. [Full Topic] +// A Boolean value that indicates whether the client handles NSGlyphInfoAttributeName or not. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nstextinputcontext/1527409-currentinputcontext?language=objc -func TextInputContext_CurrentInputContext() TextInputContext { - return TextInputContextClass.CurrentInputContext() +// [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 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() TextInputClientWrapper { - rv := objc.Call[TextInputClientWrapper](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 } diff --git a/macos/appkit/text_input.gen.go b/macos/appkit/text_input_protocol.gen.go similarity index 60% rename from macos/appkit/text_input.gen.go rename to macos/appkit/text_input_protocol.gen.go index 1ade79fe..a6aa8443 100644 --- a/macos/appkit/text_input.gen.go +++ b/macos/appkit/text_input_protocol.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package appkit @@ -12,7 +12,10 @@ import ( type PTextInput interface { } -// A concrete type wrapper for the [PTextInput] protocol. -type TextInputWrapper struct { +// ensure impl type implements protocol interface +var _ PTextInput = (*TextInputObject)(nil) + +// A concrete type for the [PTextInput] protocol. +type TextInputObject struct { objc.Object } diff --git a/macos/appkit/text_input_traits.gen.go b/macos/appkit/text_input_traits_protocol.gen.go similarity index 72% rename from macos/appkit/text_input_traits.gen.go rename to macos/appkit/text_input_traits_protocol.gen.go index f3a320c3..ca5ae4d6 100644 --- a/macos/appkit/text_input_traits.gen.go +++ b/macos/appkit/text_input_traits_protocol.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package appkit @@ -11,20 +11,12 @@ import ( // [Full Topic]: https://developer.apple.com/documentation/appkit/nstextinputtraits?language=objc type PTextInputTraits interface { // 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 SetGrammarCheckingType(value TextInputTraitType) @@ -43,12 +35,20 @@ type PTextInputTraits interface { HasSpellCheckingType() bool // 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 SetSmartDashesType(value TextInputTraitType) @@ -74,14 +74,6 @@ type PTextInputTraits interface { LinkDetectionType() TextInputTraitType HasLinkDetectionType() bool - // optional - SetTextReplacementType(value TextInputTraitType) - HasSetTextReplacementType() bool - - // optional - TextReplacementType() TextInputTraitType - HasTextReplacementType() bool - // optional SetDataDetectionType(value TextInputTraitType) HasSetDataDetectionType() bool @@ -89,239 +81,250 @@ type PTextInputTraits interface { // optional DataDetectionType() TextInputTraitType HasDataDetectionType() bool -} -// A concrete type wrapper for the [PTextInputTraits] protocol. -type TextInputTraitsWrapper struct { - objc.Object -} - -func (t_ TextInputTraitsWrapper) HasSetTextCompletionType() bool { - return t_.RespondsToSelector(objc.Sel("setTextCompletionType:")) -} + // optional + SetTextReplacementType(value TextInputTraitType) + HasSetTextReplacementType() bool -// [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nstextinputtraits/3242740-textcompletiontype?language=objc -func (t_ TextInputTraitsWrapper) SetTextCompletionType(value TextInputTraitType) { - objc.Call[objc.Void](t_, objc.Sel("setTextCompletionType:"), value) + // optional + TextReplacementType() TextInputTraitType + HasTextReplacementType() bool } -func (t_ TextInputTraitsWrapper) HasTextCompletionType() bool { - return t_.RespondsToSelector(objc.Sel("textCompletionType")) -} +// ensure impl type implements protocol interface +var _ PTextInputTraits = (*TextInputTraitsObject)(nil) -// [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nstextinputtraits/3242740-textcompletiontype?language=objc -func (t_ TextInputTraitsWrapper) TextCompletionType() TextInputTraitType { - rv := objc.Call[TextInputTraitType](t_, objc.Sel("textCompletionType")) - return rv +// A concrete type for the [PTextInputTraits] protocol. +type TextInputTraitsObject struct { + objc.Object } -func (t_ TextInputTraitsWrapper) 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_ TextInputTraitsWrapper) 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_ TextInputTraitsWrapper) 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_ TextInputTraitsWrapper) 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 } -func (t_ TextInputTraitsWrapper) HasSetGrammarCheckingType() bool { +func (t_ TextInputTraitsObject) HasSetGrammarCheckingType() bool { return t_.RespondsToSelector(objc.Sel("setGrammarCheckingType:")) } // [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/appkit/nstextinputtraits/3242734-grammarcheckingtype?language=objc -func (t_ TextInputTraitsWrapper) SetGrammarCheckingType(value TextInputTraitType) { +func (t_ TextInputTraitsObject) SetGrammarCheckingType(value TextInputTraitType) { objc.Call[objc.Void](t_, objc.Sel("setGrammarCheckingType:"), value) } -func (t_ TextInputTraitsWrapper) HasGrammarCheckingType() bool { +func (t_ TextInputTraitsObject) HasGrammarCheckingType() bool { return t_.RespondsToSelector(objc.Sel("grammarCheckingType")) } // [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/appkit/nstextinputtraits/3242734-grammarcheckingtype?language=objc -func (t_ TextInputTraitsWrapper) GrammarCheckingType() TextInputTraitType { +func (t_ TextInputTraitsObject) GrammarCheckingType() TextInputTraitType { rv := objc.Call[TextInputTraitType](t_, objc.Sel("grammarCheckingType")) return rv } -func (t_ TextInputTraitsWrapper) HasSetSpellCheckingType() bool { +func (t_ TextInputTraitsObject) HasSetSpellCheckingType() bool { return t_.RespondsToSelector(objc.Sel("setSpellCheckingType:")) } // [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/appkit/nstextinputtraits/3242739-spellcheckingtype?language=objc -func (t_ TextInputTraitsWrapper) SetSpellCheckingType(value TextInputTraitType) { +func (t_ TextInputTraitsObject) SetSpellCheckingType(value TextInputTraitType) { objc.Call[objc.Void](t_, objc.Sel("setSpellCheckingType:"), value) } -func (t_ TextInputTraitsWrapper) HasSpellCheckingType() bool { +func (t_ TextInputTraitsObject) HasSpellCheckingType() bool { return t_.RespondsToSelector(objc.Sel("spellCheckingType")) } // [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/appkit/nstextinputtraits/3242739-spellcheckingtype?language=objc -func (t_ TextInputTraitsWrapper) SpellCheckingType() TextInputTraitType { +func (t_ TextInputTraitsObject) SpellCheckingType() TextInputTraitType { rv := objc.Call[TextInputTraitType](t_, objc.Sel("spellCheckingType")) return rv } -func (t_ TextInputTraitsWrapper) 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_ TextInputTraitsWrapper) 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_ TextInputTraitsWrapper) 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_ TextInputTraitsWrapper) 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_ TextInputTraitsWrapper) HasSetSmartDashesType() bool { +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 +} + +func (t_ TextInputTraitsObject) HasSetSmartDashesType() bool { return t_.RespondsToSelector(objc.Sel("setSmartDashesType:")) } // [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/appkit/nstextinputtraits/3242736-smartdashestype?language=objc -func (t_ TextInputTraitsWrapper) SetSmartDashesType(value TextInputTraitType) { +func (t_ TextInputTraitsObject) SetSmartDashesType(value TextInputTraitType) { objc.Call[objc.Void](t_, objc.Sel("setSmartDashesType:"), value) } -func (t_ TextInputTraitsWrapper) HasSmartDashesType() bool { +func (t_ TextInputTraitsObject) HasSmartDashesType() bool { return t_.RespondsToSelector(objc.Sel("smartDashesType")) } // [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/appkit/nstextinputtraits/3242736-smartdashestype?language=objc -func (t_ TextInputTraitsWrapper) SmartDashesType() TextInputTraitType { +func (t_ TextInputTraitsObject) SmartDashesType() TextInputTraitType { rv := objc.Call[TextInputTraitType](t_, objc.Sel("smartDashesType")) return rv } -func (t_ TextInputTraitsWrapper) HasSetSmartInsertDeleteType() bool { +func (t_ TextInputTraitsObject) HasSetSmartInsertDeleteType() bool { return t_.RespondsToSelector(objc.Sel("setSmartInsertDeleteType:")) } // [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/appkit/nstextinputtraits/3242737-smartinsertdeletetype?language=objc -func (t_ TextInputTraitsWrapper) SetSmartInsertDeleteType(value TextInputTraitType) { +func (t_ TextInputTraitsObject) SetSmartInsertDeleteType(value TextInputTraitType) { objc.Call[objc.Void](t_, objc.Sel("setSmartInsertDeleteType:"), value) } -func (t_ TextInputTraitsWrapper) HasSmartInsertDeleteType() bool { +func (t_ TextInputTraitsObject) HasSmartInsertDeleteType() bool { return t_.RespondsToSelector(objc.Sel("smartInsertDeleteType")) } // [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/appkit/nstextinputtraits/3242737-smartinsertdeletetype?language=objc -func (t_ TextInputTraitsWrapper) SmartInsertDeleteType() TextInputTraitType { +func (t_ TextInputTraitsObject) SmartInsertDeleteType() TextInputTraitType { rv := objc.Call[TextInputTraitType](t_, objc.Sel("smartInsertDeleteType")) return rv } -func (t_ TextInputTraitsWrapper) HasSetLinkDetectionType() bool { +func (t_ TextInputTraitsObject) HasSetLinkDetectionType() bool { return t_.RespondsToSelector(objc.Sel("setLinkDetectionType:")) } // [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/appkit/nstextinputtraits/3242735-linkdetectiontype?language=objc -func (t_ TextInputTraitsWrapper) SetLinkDetectionType(value TextInputTraitType) { +func (t_ TextInputTraitsObject) SetLinkDetectionType(value TextInputTraitType) { objc.Call[objc.Void](t_, objc.Sel("setLinkDetectionType:"), value) } -func (t_ TextInputTraitsWrapper) HasLinkDetectionType() bool { +func (t_ TextInputTraitsObject) HasLinkDetectionType() bool { return t_.RespondsToSelector(objc.Sel("linkDetectionType")) } // [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/appkit/nstextinputtraits/3242735-linkdetectiontype?language=objc -func (t_ TextInputTraitsWrapper) LinkDetectionType() TextInputTraitType { +func (t_ TextInputTraitsObject) LinkDetectionType() TextInputTraitType { rv := objc.Call[TextInputTraitType](t_, objc.Sel("linkDetectionType")) return rv } -func (t_ TextInputTraitsWrapper) 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_ TextInputTraitsWrapper) 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_ TextInputTraitsWrapper) 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_ TextInputTraitsWrapper) 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 } -func (t_ TextInputTraitsWrapper) 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_ TextInputTraitsWrapper) 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_ TextInputTraitsWrapper) 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_ TextInputTraitsWrapper) 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 } diff --git a/macos/appkit/text_layout_fragment.gen.go b/macos/appkit/text_layout_fragment.gen.go index c3bf7ed4..058bca76 100644 --- a/macos/appkit/text_layout_fragment.gen.go +++ b/macos/appkit/text_layout_fragment.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package appkit @@ -20,24 +20,24 @@ type _TextLayoutFragmentClass struct { // An interface definition for the [TextLayoutFragment] class. type ITextLayoutFragment interface { objc.IObject - InvalidateLayout() + DrawAtPointInContext(point coregraphics.Point, context coregraphics.ContextRef) FrameForTextAttachmentAtLocation(location PTextLocation) coregraphics.Rect FrameForTextAttachmentAtLocationObject(locationObject objc.IObject) coregraphics.Rect - DrawAtPointInContext(point coregraphics.Point, context coregraphics.ContextRef) - TextLayoutManager() TextLayoutManager - BottomMargin() float64 - TextLineFragments() []TextLineFragment - State() TextLayoutFragmentState + InvalidateLayout() RangeInElement() TextRange + TextAttachmentViewProviders() []TextAttachmentViewProvider + LayoutFragmentFrame() coregraphics.Rect + State() TextLayoutFragmentState + TopMargin() float64 + TextElement() TextElement + TextLayoutManager() TextLayoutManager LayoutQueue() foundation.OperationQueue SetLayoutQueue(value foundation.IOperationQueue) - TopMargin() float64 - LeadingPadding() float64 - LayoutFragmentFrame() coregraphics.Rect - RenderingSurfaceBounds() coregraphics.Rect - TextAttachmentViewProviders() []TextAttachmentViewProvider + BottomMargin() float64 TrailingPadding() float64 - TextElement() TextElement + TextLineFragments() []TextLineFragment + RenderingSurfaceBounds() coregraphics.Rect + LeadingPadding() float64 } // A class that represents the layout fragment typically corresponding to a rendering surface such as layer or view subclass. [Full Topic] @@ -72,10 +72,6 @@ func (tc _TextLayoutFragmentClass) Alloc() TextLayoutFragment { return rv } -func TextLayoutFragment_Alloc() TextLayoutFragment { - return TextLayoutFragmentClass.Alloc() -} - func (tc _TextLayoutFragmentClass) New() TextLayoutFragment { rv := objc.Call[TextLayoutFragment](tc, objc.Sel("new")) rv.Autorelease() @@ -91,11 +87,11 @@ func (t_ TextLayoutFragment) Init() TextLayoutFragment { 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 frame in the text layout fragment coordinate system for the attachment at the location you specify. [Full Topic] @@ -115,34 +111,34 @@ func (t_ TextLayoutFragment) FrameForTextAttachmentAtLocationObject(locationObje 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 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 } -// 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 attachment view provider associated with the text layout fragment. [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/3809973-textattachmentviewproviders?language=objc +func (t_ TextLayoutFragment) TextAttachmentViewProviders() []TextAttachmentViewProvider { + rv := objc.Call[[]TextAttachmentViewProvider](t_, objc.Sel("textAttachmentViewProviders")) 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 } @@ -154,11 +150,27 @@ func (t_ TextLayoutFragment) State() TextLayoutFragmentState { return rv } -// Returns the range inside the text element relative to the document origin. [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/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/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] +// +// [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 } @@ -177,27 +189,27 @@ func (t_ TextLayoutFragment) SetLayoutQueue(value foundation.IOperationQueue) { objc.Call[objc.Void](t_, objc.Sel("setLayoutQueue:"), objc.Ptr(value)) } -// 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] +// 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/3852576-topmargin?language=objc -func (t_ TextLayoutFragment) TopMargin() float64 { - rv := objc.Call[float64](t_, objc.Sel("topMargin")) +// [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 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 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/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/3852577-trailingpadding?language=objc +func (t_ TextLayoutFragment) TrailingPadding() float64 { + rv := objc.Call[float64](t_, objc.Sel("trailingPadding")) 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 } @@ -209,26 +221,10 @@ func (t_ TextLayoutFragment) RenderingSurfaceBounds() coregraphics.Rect { return rv } -// Returns the attachment view provider associated with 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")) - 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] +// 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/3809974-textelement?language=objc -func (t_ TextLayoutFragment) TextElement() TextElement { - rv := objc.Call[TextElement](t_, objc.Sel("textElement")) +// [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 } diff --git a/macos/appkit/text_layout_manager.gen.go b/macos/appkit/text_layout_manager.gen.go index b765b92f..b540d127 100644 --- a/macos/appkit/text_layout_manager.gen.go +++ b/macos/appkit/text_layout_manager.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package appkit @@ -20,47 +20,48 @@ 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 - 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) - EnumerateTextLayoutFragmentsFromLocationOptionsUsingBlock(location PTextLocation, options TextLayoutFragmentEnumerationOptions, block func(layoutFragment TextLayoutFragment) bool) TextLocationWrapper - EnumerateTextLayoutFragmentsFromLocationObjectOptionsUsingBlock(locationObject objc.IObject, options TextLayoutFragmentEnumerationOptions, block func(layoutFragment TextLayoutFragment) bool) TextLocationWrapper + 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) AddRenderingAttributeValueForTextRange(renderingAttribute foundation.AttributedStringKey, value objc.IObject, textRange ITextRange) - EnsureLayoutForBounds(bounds coregraphics.Rect) ReplaceTextContentManager(textContentManager ITextContentManager) - InvalidateLayoutForRange(range_ ITextRange) - InvalidateRenderingAttributesForTextRange(textRange ITextRange) - TextSelections() []TextSelection - SetTextSelections(value []ITextSelection) - TextSelectionNavigation() TextSelectionNavigation - SetTextSelectionNavigation(value ITextSelectionNavigation) + UsesFontLeading() bool + SetUsesFontLeading(value bool) + LimitsLayoutForSuspiciousContents() bool + SetLimitsLayoutForSuspiciousContents(value bool) + TextContentManager() TextContentManager 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() TextLayoutManagerDelegateWrapper + Delegate() TextLayoutManagerDelegateObject SetDelegate(value PTextLayoutManagerDelegate) SetDelegateObject(valueObject objc.IObject) - LimitsLayoutForSuspiciousContents() bool - SetLimitsLayoutForSuspiciousContents(value bool) + TextViewportLayoutController() TextViewportLayoutController + UsageBoundsForTextContainer() coregraphics.Rect + TextSelectionNavigation() TextSelectionNavigation + SetTextSelectionNavigation(value ITextSelectionNavigation) 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] @@ -86,10 +87,6 @@ func (tc _TextLayoutManagerClass) Alloc() TextLayoutManager { return rv } -func TextLayoutManager_Alloc() TextLayoutManager { - return TextLayoutManagerClass.Alloc() -} - func (tc _TextLayoutManagerClass) New() TextLayoutManager { rv := objc.Call[TextLayoutManager](tc, objc.Sel("new")) rv.Autorelease() @@ -100,6 +97,34 @@ 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:"), objc.Ptr(range_), objc.Ptr(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, objc.Ptr(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:"), objc.Ptr(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 @@ -108,13 +133,6 @@ 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:"), objc.Ptr(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 @@ -132,20 +150,6 @@ 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, objc.Ptr(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:"), objc.Ptr(range_), objc.Ptr(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 @@ -163,50 +167,71 @@ func (t_ TextLayoutManager) TextLayoutFragmentForLocationObject(locationObject o return rv } -// Enumerates text segments of a specific type and in the text range you provide. [Full Topic] +// 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/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:"), objc.Ptr(textRange), type_, options, block) +// [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:"), objc.Ptr(range_), textElements) } -// 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, objc.Ptr(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) +} + +// Enumerates the rendering attributes from a location you specify. [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:"), objc.Ptr(locationObject), reverse, block) } // Enumerates the text layout fragments starting at the specified location. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/uikit/nstextlayoutmanager/3809994-enumeratetextlayoutfragmentsfrom?language=objc -func (t_ TextLayoutManager) EnumerateTextLayoutFragmentsFromLocationOptionsUsingBlock(location PTextLocation, options TextLayoutFragmentEnumerationOptions, block func(layoutFragment TextLayoutFragment) bool) TextLocationWrapper { +func (t_ TextLayoutManager) EnumerateTextLayoutFragmentsFromLocationOptionsUsingBlock(location PTextLocation, options TextLayoutFragmentEnumerationOptions, block func(layoutFragment TextLayoutFragment) bool) TextLocationObject { po0 := objc.WrapAsProtocol("NSTextLocation", location) - rv := objc.Call[TextLocationWrapper](t_, objc.Sel("enumerateTextLayoutFragmentsFromLocation:options:usingBlock:"), po0, options, block) + rv := objc.Call[TextLocationObject](t_, objc.Sel("enumerateTextLayoutFragmentsFromLocation:options:usingBlock:"), po0, options, block) return rv } // Enumerates the text layout fragments starting at the specified location. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/uikit/nstextlayoutmanager/3809994-enumeratetextlayoutfragmentsfrom?language=objc -func (t_ TextLayoutManager) EnumerateTextLayoutFragmentsFromLocationObjectOptionsUsingBlock(locationObject objc.IObject, options TextLayoutFragmentEnumerationOptions, block func(layoutFragment TextLayoutFragment) bool) TextLocationWrapper { - rv := objc.Call[TextLocationWrapper](t_, objc.Sel("enumerateTextLayoutFragmentsFromLocation:options:usingBlock:"), objc.Ptr(locationObject), options, block) +func (t_ TextLayoutManager) EnumerateTextLayoutFragmentsFromLocationObjectOptionsUsingBlock(locationObject objc.IObject, options TextLayoutFragmentEnumerationOptions, block func(layoutFragment TextLayoutFragment) bool) TextLocationObject { + rv := objc.Call[TextLocationObject](t_, objc.Sel("enumerateTextLayoutFragmentsFromLocation:options:usingBlock:"), objc.Ptr(locationObject), options, block) return rv } -// Enumerates the rendering attributes from a location you specify. [Full Topic] +// Invalidates the rendering attributes of the specified text range. [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/3809999-invalidaterenderingattributesfor?language=objc +func (t_ TextLayoutManager) InvalidateRenderingAttributesForTextRange(textRange ITextRange) { + objc.Call[objc.Void](t_, objc.Sel("invalidateRenderingAttributesForTextRange:"), objc.Ptr(textRange)) } -// 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) 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:"), objc.Ptr(locationObject), 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:"), objc.Ptr(textRange), type_, options, block) +} + +// Removes the rendering attribute from the specified text range. [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, objc.Ptr(textRange)) +} + +// 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:"), objc.Ptr(range_)) } // Sets the rendering attribute for the value and range you specify. [Full Topic] @@ -216,13 +241,6 @@ func (t_ TextLayoutManager) AddRenderingAttributeValueForTextRange(renderingAttr objc.Call[objc.Void](t_, objc.Sel("addRenderingAttribute:value:forTextRange:"), renderingAttribute, value, objc.Ptr(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 @@ -230,65 +248,44 @@ func (t_ TextLayoutManager) ReplaceTextContentManager(textContentManager ITextCo objc.Call[objc.Void](t_, objc.Sel("replaceTextContentManager:"), objc.Ptr(textContentManager)) } -// 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:"), objc.Ptr(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:"), objc.Ptr(textRange)) -} - -// Returns the default set of attributes for rendering a link. [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/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/3810018-usesfontleading?language=objc +func (t_ TextLayoutManager) UsesFontLeading() bool { + rv := objc.Call[bool](t_, objc.Sel("usesFontLeading")) return rv } -// Returns the default set of attributes for rendering a link. [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/3810002-linkrenderingattributes?language=objc -func TextLayoutManager_LinkRenderingAttributes() map[foundation.AttributedStringKey]objc.Object { - return TextLayoutManagerClass.LinkRenderingAttributes() +// [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) } -// An array of text selections associated by the text layout manager. [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/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/3810001-limitslayoutforsuspiciouscontent?language=objc +func (t_ TextLayoutManager) LimitsLayoutForSuspiciousContents() bool { + rv := objc.Call[bool](t_, objc.Sel("limitsLayoutForSuspiciousContents")) return rv } -// An array of text selections associated by the text layout manager. [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/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/3810001-limitslayoutforsuspiciouscontent?language=objc +func (t_ TextLayoutManager) SetLimitsLayoutForSuspiciousContents(value bool) { + objc.Call[objc.Void](t_, objc.Sel("setLimitsLayoutForSuspiciousContents:"), value) } -// Returns a text selection manager configured to have the text layout manager as its data source. [Full Topic] +// Returns the text content manager associated with this text layout manager. [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/3810011-textcontentmanager?language=objc +func (t_ TextLayoutManager) TextContentManager() TextContentManager { + rv := objc.Call[TextContentManager](t_, objc.Sel("textContentManager")) 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:"), objc.Ptr(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 @@ -304,42 +301,26 @@ func (t_ TextLayoutManager) SetRenderingAttributesValidator(value func(textLayou objc.Call[objc.Void](t_, objc.Sel("setRenderingAttributesValidator:"), value) } -// 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 -} - -// The queue that the framework dispatches layout operations on. [Full Topic] +// Returns the default set of attributes for rendering a link. [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/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 } -// 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:"), objc.Ptr(value)) -} - -// Returns the usage bounds for the text container. [Full Topic] +// Returns the default set of attributes for rendering a link. [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 +// [Full Topic]: https://developer.apple.com/documentation/uikit/nstextlayoutmanager/3810002-linkrenderingattributes?language=objc +func TextLayoutManager_LinkRenderingAttributes() map[foundation.AttributedStringKey]objc.Object { + return TextLayoutManagerClass.LinkRenderingAttributes() } // The delegate for the text layout manager object. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/uikit/nstextlayoutmanager/3809990-delegate?language=objc -func (t_ TextLayoutManager) Delegate() TextLayoutManagerDelegateWrapper { - rv := objc.Call[TextLayoutManagerDelegateWrapper](t_, objc.Sel("delegate")) +func (t_ TextLayoutManager) Delegate() TextLayoutManagerDelegateObject { + rv := objc.Call[TextLayoutManagerDelegateObject](t_, objc.Sel("delegate")) return rv } @@ -359,19 +340,35 @@ func (t_ TextLayoutManager) SetDelegateObject(valueObject objc.IObject) { objc.Call[objc.Void](t_, objc.Sel("setDelegate:"), objc.Ptr(valueObject)) } -// A Boolean value that controls internal security analysis for malicious inputs and activates defensive behaviors. [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/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/3810016-textviewportlayoutcontroller?language=objc +func (t_ TextLayoutManager) TextViewportLayoutController() TextViewportLayoutController { + rv := objc.Call[TextViewportLayoutController](t_, objc.Sel("textViewportLayoutController")) return rv } -// A Boolean value that controls internal security analysis for malicious inputs and activates defensive behaviors. [Full Topic] +// Returns the usage bounds for the text container. [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/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] +// +// [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:"), objc.Ptr(value)) } // A Boolean values that controls whether the text layout manager attempts to hyphenate when wrapping lines. [Full Topic] @@ -389,40 +386,47 @@ func (t_ TextLayoutManager) SetUsesHyphenation(value bool) { objc.Call[objc.Void](t_, objc.Sel("setUsesHyphenation:"), value) } -// The text container object that provides geometric information for the layout destination. [Full Topic] +// An array of text selections associated by the 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/3810015-textselections?language=objc +func (t_ TextLayoutManager) TextSelections() []TextSelection { + rv := objc.Call[[]TextSelection](t_, objc.Sel("textSelections")) return rv } -// The text container object that provides geometric information for the layout destination. [Full Topic] +// An array of text selections associated by the text layout manager. [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:"), objc.Ptr(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) } -// A Boolean value that controls whether the framework uses the leading information specified by the font when laying out text. [Full Topic] +// The queue that the framework dispatches layout operations on. [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/3810000-layoutqueue?language=objc +func (t_ TextLayoutManager) LayoutQueue() foundation.OperationQueue { + rv := objc.Call[foundation.OperationQueue](t_, objc.Sel("layoutQueue")) return rv } -// A Boolean value that controls whether the framework uses the leading information specified by the font when laying out text. [Full Topic] +// The queue that the framework dispatches layout operations on. [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/3810000-layoutqueue?language=objc +func (t_ TextLayoutManager) SetLayoutQueue(value foundation.IOperationQueue) { + objc.Call[objc.Void](t_, objc.Sel("setLayoutQueue:"), objc.Ptr(value)) } -// Returns the text content manager associated with this 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/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/3810010-textcontainer?language=objc +func (t_ TextLayoutManager) TextContainer() TextContainer { + rv := objc.Call[TextContainer](t_, objc.Sel("textContainer")) 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:"), objc.Ptr(value)) +} diff --git a/macos/appkit/text_layout_manager_delegate.gen.go b/macos/appkit/text_layout_manager_delegate.gen.go index 7c902072..b79f96b6 100644 --- a/macos/appkit/text_layout_manager_delegate.gen.go +++ b/macos/appkit/text_layout_manager_delegate.gen.go @@ -1,8 +1,9 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package appkit import ( + "github.com/progrium/macdriver/macos/foundation" "github.com/progrium/macdriver/objc" ) @@ -11,15 +12,42 @@ import ( // [Full Topic]: https://developer.apple.com/documentation/uikit/nstextlayoutmanagerdelegate?language=objc type PTextLayoutManagerDelegate interface { // optional - TextLayoutManagerShouldBreakLineBeforeLocationHyphenating(textLayoutManager TextLayoutManager, location TextLocationWrapper, hyphenating bool) bool + 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 { - _TextLayoutManagerShouldBreakLineBeforeLocationHyphenating func(textLayoutManager TextLayoutManager, location TextLocationWrapper, hyphenating bool) bool + _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 } +// 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 } @@ -27,31 +55,77 @@ func (di *TextLayoutManagerDelegate) HasTextLayoutManagerShouldBreakLineBeforeLo // The method the framework calls to determine the soft line break point. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/uikit/nstextlayoutmanagerdelegate/3810021-textlayoutmanager?language=objc -func (di *TextLayoutManagerDelegate) SetTextLayoutManagerShouldBreakLineBeforeLocationHyphenating(f func(textLayoutManager TextLayoutManager, location TextLocationWrapper, hyphenating bool) bool) { +func (di *TextLayoutManagerDelegate) SetTextLayoutManagerShouldBreakLineBeforeLocationHyphenating(f func(textLayoutManager TextLayoutManager, location TextLocationObject, hyphenating bool) bool) { di._TextLayoutManagerShouldBreakLineBeforeLocationHyphenating = f } // The method the framework calls to determine the soft line break point. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/uikit/nstextlayoutmanagerdelegate/3810021-textlayoutmanager?language=objc -func (di *TextLayoutManagerDelegate) TextLayoutManagerShouldBreakLineBeforeLocationHyphenating(textLayoutManager TextLayoutManager, location TextLocationWrapper, hyphenating bool) bool { +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) +} -// A concrete type wrapper for the [PTextLayoutManagerDelegate] protocol. -type TextLayoutManagerDelegateWrapper struct { +// ensure impl type implements protocol interface +var _ PTextLayoutManagerDelegate = (*TextLayoutManagerDelegateObject)(nil) + +// A concrete type for the [PTextLayoutManagerDelegate] protocol. +type TextLayoutManagerDelegateObject struct { objc.Object } -func (t_ TextLayoutManagerDelegateWrapper) HasTextLayoutManagerShouldBreakLineBeforeLocationHyphenating() bool { +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:"), objc.Ptr(textLayoutManager), po1, objc.Ptr(textElement)) + return rv +} + +func (t_ TextLayoutManagerDelegateObject) HasTextLayoutManagerShouldBreakLineBeforeLocationHyphenating() bool { return t_.RespondsToSelector(objc.Sel("textLayoutManager:shouldBreakLineBeforeLocation:hyphenating:")) } // The method the framework calls to determine the soft line break point. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/uikit/nstextlayoutmanagerdelegate/3810021-textlayoutmanager?language=objc -func (t_ TextLayoutManagerDelegateWrapper) TextLayoutManagerShouldBreakLineBeforeLocationHyphenating(textLayoutManager ITextLayoutManager, location PTextLocation, hyphenating bool) bool { +func (t_ TextLayoutManagerDelegateObject) TextLayoutManagerShouldBreakLineBeforeLocationHyphenating(textLayoutManager TextLayoutManager, location TextLocationObject, hyphenating bool) bool { po1 := objc.WrapAsProtocol("NSTextLocation", location) rv := objc.Call[bool](t_, objc.Sel("textLayoutManager:shouldBreakLineBeforeLocation:hyphenating:"), objc.Ptr(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:"), objc.Ptr(textLayoutManager), link, po2, renderingAttributes) + return rv +} diff --git a/macos/appkit/text_layout_orientation_provider.gen.go b/macos/appkit/text_layout_orientation_provider_protocol.gen.go similarity index 61% rename from macos/appkit/text_layout_orientation_provider.gen.go rename to macos/appkit/text_layout_orientation_provider_protocol.gen.go index 1778596f..f91183be 100644 --- a/macos/appkit/text_layout_orientation_provider.gen.go +++ b/macos/appkit/text_layout_orientation_provider_protocol.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package appkit @@ -15,19 +15,22 @@ type PTextLayoutOrientationProvider interface { HasLayoutOrientation() bool } -// A concrete type wrapper for the [PTextLayoutOrientationProvider] protocol. -type TextLayoutOrientationProviderWrapper struct { +// ensure impl type implements protocol interface +var _ PTextLayoutOrientationProvider = (*TextLayoutOrientationProviderObject)(nil) + +// A concrete type for the [PTextLayoutOrientationProvider] protocol. +type TextLayoutOrientationProviderObject struct { objc.Object } -func (t_ TextLayoutOrientationProviderWrapper) HasLayoutOrientation() bool { +func (t_ TextLayoutOrientationProviderObject) HasLayoutOrientation() bool { return t_.RespondsToSelector(objc.Sel("layoutOrientation")) } // The default layout orientation. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/uikit/nstextlayoutorientationprovider/1402990-layoutorientation?language=objc -func (t_ TextLayoutOrientationProviderWrapper) LayoutOrientation() TextLayoutOrientation { +func (t_ TextLayoutOrientationProviderObject) LayoutOrientation() TextLayoutOrientation { rv := objc.Call[TextLayoutOrientation](t_, objc.Sel("layoutOrientation")) return rv } diff --git a/macos/appkit/text_line_fragment.gen.go b/macos/appkit/text_line_fragment.gen.go index 69e786e0..4374c069 100644 --- a/macos/appkit/text_line_fragment.gen.go +++ b/macos/appkit/text_line_fragment.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package appkit @@ -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 - LocationForCharacterAtIndex(index int) coregraphics.Point FractionOfDistanceThroughGlyphForPoint(point coregraphics.Point) float64 + LocationForCharacterAtIndex(index int) coregraphics.Point + DrawAtPointInContext(point coregraphics.Point, context coregraphics.ContextRef) + GlyphOrigin() coregraphics.Point 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] @@ -76,10 +76,6 @@ func (tc _TextLineFragmentClass) Alloc() TextLineFragment { return rv } -func TextLineFragment_Alloc() TextLineFragment { - return TextLineFragmentClass.Alloc() -} - func (tc _TextLineFragmentClass) New() TextLineFragment { rv := objc.Call[TextLineFragment](tc, objc.Sel("new")) rv.Autorelease() @@ -95,13 +91,6 @@ func (t_ TextLineFragment) Init() TextLineFragment { 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) -} - // Returns character index for a point inside the line fragment coordinate system. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/uikit/nstextlinefragment/3852578-characterindexforpoint?language=objc @@ -110,6 +99,14 @@ func (t_ TextLineFragment) CharacterIndexForPoint(point coregraphics.Point) int return rv } +// 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) + return rv +} + // Returns the location of the character at the specified index. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/uikit/nstextlinefragment/3810045-locationforcharacteratindex?language=objc @@ -118,11 +115,18 @@ func (t_ TextLineFragment) LocationForCharacterAtIndex(index int) coregraphics.P 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/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/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] +// +// [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 } @@ -149,11 +153,3 @@ 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 16912f45..939d4f4c 100644 --- a/macos/appkit/text_list.gen.go +++ b/macos/appkit/text_list.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package appkit @@ -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] @@ -57,10 +57,6 @@ func (tc _TextListClass) Alloc() TextList { return rv } -func TextList_Alloc() TextList { - return TextListClass.Alloc() -} - func (tc _TextListClass) New() TextList { rv := objc.Call[TextList](tc, objc.Sel("new")) rv.Autorelease() @@ -92,6 +88,14 @@ 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 @@ -106,11 +110,3 @@ 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_location.gen.go b/macos/appkit/text_location_protocol.gen.go similarity index 64% rename from macos/appkit/text_location.gen.go rename to macos/appkit/text_location_protocol.gen.go index 0f1c518b..3361e542 100644 --- a/macos/appkit/text_location.gen.go +++ b/macos/appkit/text_location_protocol.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package appkit @@ -12,23 +12,26 @@ import ( // [Full Topic]: https://developer.apple.com/documentation/uikit/nstextlocation?language=objc type PTextLocation interface { // optional - Compare(location TextLocationWrapper) foundation.ComparisonResult + Compare(location TextLocationObject) foundation.ComparisonResult HasCompare() bool } -// A concrete type wrapper for the [PTextLocation] protocol. -type TextLocationWrapper struct { +// ensure impl type implements protocol interface +var _ PTextLocation = (*TextLocationObject)(nil) + +// A concrete type for the [PTextLocation] protocol. +type TextLocationObject struct { objc.Object } -func (t_ TextLocationWrapper) HasCompare() bool { +func (t_ TextLocationObject) HasCompare() bool { return t_.RespondsToSelector(objc.Sel("compare:")) } // Compares and returns the logical ordering to location. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/uikit/nstextlocation/3801801-compare?language=objc -func (t_ TextLocationWrapper) Compare(location PTextLocation) foundation.ComparisonResult { +func (t_ TextLocationObject) Compare(location TextLocationObject) foundation.ComparisonResult { po0 := objc.WrapAsProtocol("NSTextLocation", location) rv := objc.Call[foundation.ComparisonResult](t_, objc.Sel("compare:"), po0) return rv diff --git a/macos/appkit/text_paragraph.gen.go b/macos/appkit/text_paragraph.gen.go index 327e5930..f3cda0d0 100644 --- a/macos/appkit/text_paragraph.gen.go +++ b/macos/appkit/text_paragraph.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package appkit @@ -56,10 +56,6 @@ func (tc _TextParagraphClass) Alloc() TextParagraph { return rv } -func TextParagraph_Alloc() TextParagraph { - return TextParagraphClass.Alloc() -} - func (tc _TextParagraphClass) New() TextParagraph { rv := objc.Call[TextParagraph](tc, objc.Sel("new")) rv.Autorelease() diff --git a/macos/appkit/text_range.gen.go b/macos/appkit/text_range.gen.go index 5217261b..c0b7230c 100644 --- a/macos/appkit/text_range.gen.go +++ b/macos/appkit/text_range.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package appkit @@ -18,14 +18,14 @@ type _TextRangeClass struct { // An interface definition for the [TextRange] class. type ITextRange interface { objc.IObject - IsEqualToTextRange(textRange ITextRange) bool + IntersectsWithTextRange(textRange ITextRange) bool + ContainsRange(textRange ITextRange) bool ContainsLocation(location PTextLocation) bool ContainsLocationObject(locationObject objc.IObject) bool - ContainsRange(textRange ITextRange) bool - IntersectsWithTextRange(textRange ITextRange) bool + IsEqualToTextRange(textRange ITextRange) bool IsEmpty() bool - Location() TextLocationWrapper - EndLocation() TextLocationWrapper + Location() TextLocationObject + EndLocation() TextLocationObject } // A class that represents a contiguous range between two locations inside document contents. [Full Topic] @@ -41,6 +41,20 @@ func TextRangeFrom(ptr unsafe.Pointer) TextRange { } } +func (t_ TextRange) TextRangeByIntersectingWithTextRange(textRange ITextRange) TextRange { + rv := objc.Call[TextRange](t_, objc.Sel("textRangeByIntersectingWithTextRange:"), objc.Ptr(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:"), objc.Ptr(textRange)) return rv @@ -55,31 +69,33 @@ func TextRange_TextRangeByFormingUnionWithTextRange(textRange ITextRange) TextRa return instance } -func (t_ TextRange) InitWithLocation(location PTextLocation) TextRange { +func (t_ TextRange) InitWithLocationEndLocation(location PTextLocation, endLocation PTextLocation) TextRange { po0 := objc.WrapAsProtocol("NSTextLocation", location) - rv := objc.Call[TextRange](t_, objc.Sel("initWithLocation:"), po0) + po1 := objc.WrapAsProtocol("NSTextLocation", endLocation) + rv := objc.Call[TextRange](t_, objc.Sel("initWithLocation:endLocation:"), po0, po1) return rv } -// Creates a new text range at the location you specify. [Full Topic] +// Creates a new text range with the starting and ending locations you specify. [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/3801809-initwithlocation?language=objc +func NewTextRangeWithLocationEndLocation(location PTextLocation, endLocation PTextLocation) TextRange { + instance := TextRangeClass.Alloc().InitWithLocationEndLocation(location, endLocation) instance.Autorelease() return instance } -func (t_ TextRange) TextRangeByIntersectingWithTextRange(textRange ITextRange) TextRange { - rv := objc.Call[TextRange](t_, objc.Sel("textRangeByIntersectingWithTextRange:"), objc.Ptr(textRange)) +func (t_ TextRange) InitWithLocation(location PTextLocation) TextRange { + po0 := objc.WrapAsProtocol("NSTextLocation", location) + rv := objc.Call[TextRange](t_, objc.Sel("initWithLocation:"), po0) return rv } -// Returns the range, if any, where two text ranges intersect. [Full Topic] +// Creates a new text range at the location you specify. [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) +// [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 } @@ -89,10 +105,6 @@ func (tc _TextRangeClass) Alloc() TextRange { return rv } -func TextRange_Alloc() TextRange { - return TextRangeClass.Alloc() -} - func (tc _TextRangeClass) New() TextRange { rv := objc.Call[TextRange](tc, objc.Sel("new")) rv.Autorelease() @@ -108,11 +120,19 @@ func (t_ TextRange) Init() TextRange { return rv } -// Compares two text ranges. [Full Topic] +// Determines if two ranges intersect. [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:"), objc.Ptr(textRange)) +// [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:"), objc.Ptr(textRange)) + return rv +} + +// Determines if the text range you specify is in the current text range. [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:"), objc.Ptr(textRange)) return rv } @@ -133,19 +153,11 @@ func (t_ TextRange) ContainsLocationObject(locationObject objc.IObject) bool { return rv } -// Determines if the text range you specify is in the current text range. [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:"), objc.Ptr(textRange)) - return rv -} - -// Determines if two ranges intersect. [Full Topic] +// Compares two text ranges. [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:"), objc.Ptr(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:"), objc.Ptr(textRange)) return rv } @@ -160,15 +172,15 @@ func (t_ TextRange) IsEmpty() bool { // Returns the starting location of the text range. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/uikit/nstextrange/3801812-location?language=objc -func (t_ TextRange) Location() TextLocationWrapper { - rv := objc.Call[TextLocationWrapper](t_, objc.Sel("location")) +func (t_ TextRange) Location() TextLocationObject { + rv := objc.Call[TextLocationObject](t_, objc.Sel("location")) return rv } // Returns the ending location of the text range. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/uikit/nstextrange/3801807-endlocation?language=objc -func (t_ TextRange) EndLocation() TextLocationWrapper { - rv := objc.Call[TextLocationWrapper](t_, objc.Sel("endLocation")) +func (t_ TextRange) EndLocation() TextLocationObject { + rv := objc.Call[TextLocationObject](t_, objc.Sel("endLocation")) return rv } diff --git a/macos/appkit/text_selection.gen.go b/macos/appkit/text_selection.gen.go index f267f154..b0f1972f 100644 --- a/macos/appkit/text_selection.gen.go +++ b/macos/appkit/text_selection.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package appkit @@ -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() TextLocationWrapper + 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) 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 } -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 } @@ -96,10 +96,6 @@ func (tc _TextSelectionClass) Alloc() TextSelection { return rv } -func TextSelection_Alloc() TextSelection { - return TextSelectionClass.Alloc() -} - func (tc _TextSelectionClass) New() TextSelection { rv := objc.Call[TextSelection](tc, objc.Sel("new")) rv.Autorelease() @@ -123,21 +119,6 @@ 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 @@ -146,14 +127,6 @@ 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 @@ -172,8 +145,8 @@ func (t_ TextSelection) SetAnchorPositionOffset(value float64) { // Specifies the secondary character location when user taps or clicks at a directional boundary. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/uikit/nstextselection/3801824-secondaryselectionlocation?language=objc -func (t_ TextSelection) SecondarySelectionLocation() TextLocationWrapper { - rv := objc.Call[TextLocationWrapper](t_, objc.Sel("secondarySelectionLocation")) +func (t_ TextSelection) SecondarySelectionLocation() TextLocationObject { + rv := objc.Call[TextLocationObject](t_, objc.Sel("secondarySelectionLocation")) return rv } @@ -192,14 +165,6 @@ func (t_ TextSelection) SetSecondarySelectionLocationObject(valueObject objc.IOb objc.Call[objc.Void](t_, objc.Sel("setSecondarySelectionLocation:"), objc.Ptr(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 @@ -222,3 +187,34 @@ 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.gen.go b/macos/appkit/text_selection_data_source_protocol.gen.go similarity index 62% rename from macos/appkit/text_selection_data_source.gen.go rename to macos/appkit/text_selection_data_source_protocol.gen.go index a6c04320..c00d0964 100644 --- a/macos/appkit/text_selection_data_source.gen.go +++ b/macos/appkit/text_selection_data_source_protocol.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package appkit @@ -13,174 +13,177 @@ import ( // [Full Topic]: https://developer.apple.com/documentation/uikit/nstextselectiondatasource?language=objc type PTextSelectionDataSource interface { // optional - BaseWritingDirectionAtLocation(location TextLocationWrapper) TextSelectionNavigationWritingDirection - HasBaseWritingDirectionAtLocation() bool - - // optional - LineFragmentRangeForPointInContainerAtLocation(point coregraphics.Point, location TextLocationWrapper) ITextRange - HasLineFragmentRangeForPointInContainerAtLocation() bool + EnumerateContainerBoundariesFromLocationReverseUsingBlock(location TextLocationObject, reverse bool, block func(boundaryLocation TextLocationObject, stop *bool)) + HasEnumerateContainerBoundariesFromLocationReverseUsingBlock() bool // optional - EnumerateContainerBoundariesFromLocationReverseUsingBlock(location TextLocationWrapper, reverse bool, block func(boundaryLocation TextLocationWrapper, stop *bool)) - HasEnumerateContainerBoundariesFromLocationReverseUsingBlock() bool + TextRangeForSelectionGranularityEnclosingLocation(selectionGranularity TextSelectionGranularity, location TextLocationObject) TextRange + HasTextRangeForSelectionGranularityEnclosingLocation() bool // optional - EnumerateSubstringsFromLocationOptionsUsingBlock(location TextLocationWrapper, options foundation.StringEnumerationOptions, block func(substring string, substringRange TextRange, enclosingRange TextRange, stop *bool)) + EnumerateSubstringsFromLocationOptionsUsingBlock(location TextLocationObject, options foundation.StringEnumerationOptions, block func(substring string, substringRange TextRange, enclosingRange TextRange, stop *bool)) HasEnumerateSubstringsFromLocationOptionsUsingBlock() bool // optional - EnumerateCaretOffsetsInLineFragmentAtLocationUsingBlock(location TextLocationWrapper, block func(caretOffset float64, location TextLocationWrapper, leadingEdge bool, stop *bool)) - HasEnumerateCaretOffsetsInLineFragmentAtLocationUsingBlock() bool + TextLayoutOrientationAtLocation(location TextLocationObject) TextSelectionNavigationLayoutOrientation + HasTextLayoutOrientationAtLocation() bool // optional - TextRangeForSelectionGranularityEnclosingLocation(selectionGranularity TextSelectionGranularity, location TextLocationWrapper) ITextRange - HasTextRangeForSelectionGranularityEnclosingLocation() bool + BaseWritingDirectionAtLocation(location TextLocationObject) TextSelectionNavigationWritingDirection + HasBaseWritingDirectionAtLocation() bool // optional - OffsetFromLocationToLocation(from TextLocationWrapper, to TextLocationWrapper) int + OffsetFromLocationToLocation(from TextLocationObject, to TextLocationObject) int HasOffsetFromLocationToLocation() bool // optional - LocationFromLocationWithOffset(location TextLocationWrapper, offset int) PTextLocation + LineFragmentRangeForPointInContainerAtLocation(point coregraphics.Point, location TextLocationObject) TextRange + HasLineFragmentRangeForPointInContainerAtLocation() bool + + // optional + LocationFromLocationWithOffset(location TextLocationObject, offset int) TextLocationObject HasLocationFromLocationWithOffset() bool // optional - TextLayoutOrientationAtLocation(location TextLocationWrapper) TextSelectionNavigationLayoutOrientation - HasTextLayoutOrientationAtLocation() bool + EnumerateCaretOffsetsInLineFragmentAtLocationUsingBlock(location TextLocationObject, block func(caretOffset float64, location TextLocationObject, leadingEdge bool, stop *bool)) + HasEnumerateCaretOffsetsInLineFragmentAtLocationUsingBlock() bool // optional - DocumentRange() ITextRange + DocumentRange() TextRange HasDocumentRange() bool } -// A concrete type wrapper for the [PTextSelectionDataSource] protocol. -type TextSelectionDataSourceWrapper struct { +// ensure impl type implements protocol interface +var _ PTextSelectionDataSource = (*TextSelectionDataSourceObject)(nil) + +// A concrete type for the [PTextSelectionDataSource] protocol. +type TextSelectionDataSourceObject struct { objc.Object } -func (t_ TextSelectionDataSourceWrapper) HasBaseWritingDirectionAtLocation() bool { - return t_.RespondsToSelector(objc.Sel("baseWritingDirectionAtLocation:")) +func (t_ TextSelectionDataSourceObject) HasEnumerateContainerBoundariesFromLocationReverseUsingBlock() bool { + return t_.RespondsToSelector(objc.Sel("enumerateContainerBoundariesFromLocation:reverse:usingBlock:")) } -// Returns the base writing direction at the location you specify. [Full Topic] +// Enumerates all the container boundaries starting from the location you specify. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/uikit/nstextselectiondatasource/3801839-basewritingdirectionatlocation?language=objc -func (t_ TextSelectionDataSourceWrapper) BaseWritingDirectionAtLocation(location PTextLocation) TextSelectionNavigationWritingDirection { +// [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) - rv := objc.Call[TextSelectionNavigationWritingDirection](t_, objc.Sel("baseWritingDirectionAtLocation:"), po0) - return rv + objc.Call[objc.Void](t_, objc.Sel("enumerateContainerBoundariesFromLocation:reverse:usingBlock:"), po0, reverse, block) } -func (t_ TextSelectionDataSourceWrapper) HasLineFragmentRangeForPointInContainerAtLocation() bool { - return t_.RespondsToSelector(objc.Sel("lineFragmentRangeForPoint:inContainerAtLocation:")) +func (t_ TextSelectionDataSourceObject) HasTextRangeForSelectionGranularityEnclosingLocation() bool { + return t_.RespondsToSelector(objc.Sel("textRangeForSelectionGranularity:enclosingLocation:")) } -// Returns the range of the line fragment that contains the point 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/3801845-linefragmentrangeforpoint?language=objc -func (t_ TextSelectionDataSourceWrapper) LineFragmentRangeForPointInContainerAtLocation(point coregraphics.Point, location PTextLocation) TextRange { +// [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("lineFragmentRangeForPoint:inContainerAtLocation:"), point, po1) + rv := objc.Call[TextRange](t_, objc.Sel("textRangeForSelectionGranularity:enclosingLocation:"), selectionGranularity, po1) return rv } -func (t_ TextSelectionDataSourceWrapper) 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_ TextSelectionDataSourceWrapper) EnumerateContainerBoundariesFromLocationReverseUsingBlock(location PTextLocation, reverse bool, block func(boundaryLocation TextLocationWrapper, stop *bool)) { - po0 := objc.WrapAsProtocol("NSTextLocation", location) - objc.Call[objc.Void](t_, objc.Sel("enumerateContainerBoundariesFromLocation:reverse:usingBlock:"), po0, reverse, block) -} - -func (t_ TextSelectionDataSourceWrapper) HasEnumerateSubstringsFromLocationOptionsUsingBlock() bool { +func (t_ TextSelectionDataSourceObject) HasEnumerateSubstringsFromLocationOptionsUsingBlock() bool { return t_.RespondsToSelector(objc.Sel("enumerateSubstringsFromLocation:options:usingBlock:")) } // Enumerates the textual segment boundaries starting at the location you specify. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/uikit/nstextselectiondatasource/3801843-enumeratesubstringsfromlocation?language=objc -func (t_ TextSelectionDataSourceWrapper) EnumerateSubstringsFromLocationOptionsUsingBlock(location PTextLocation, options foundation.StringEnumerationOptions, block func(substring string, substringRange TextRange, enclosingRange TextRange, stop *bool)) { +func (t_ TextSelectionDataSourceObject) EnumerateSubstringsFromLocationOptionsUsingBlock(location TextLocationObject, options foundation.StringEnumerationOptions, block func(substring string, substringRange TextRange, enclosingRange TextRange, stop *bool)) { po0 := objc.WrapAsProtocol("NSTextLocation", location) objc.Call[objc.Void](t_, objc.Sel("enumerateSubstringsFromLocation:options:usingBlock:"), po0, options, block) } -func (t_ TextSelectionDataSourceWrapper) 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_ TextSelectionDataSourceWrapper) EnumerateCaretOffsetsInLineFragmentAtLocationUsingBlock(location PTextLocation, block func(caretOffset float64, location TextLocationWrapper, 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_ TextSelectionDataSourceWrapper) HasTextRangeForSelectionGranularityEnclosingLocation() bool { - return t_.RespondsToSelector(objc.Sel("textRangeForSelectionGranularity:enclosingLocation:")) +func (t_ TextSelectionDataSourceObject) HasBaseWritingDirectionAtLocation() bool { + return t_.RespondsToSelector(objc.Sel("baseWritingDirectionAtLocation:")) } -// Returns a text range that corresponds to selection granularity of the enclosing location. [Full Topic] +// Returns the base writing direction at the location you specify. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/uikit/nstextselectiondatasource/3801848-textrangeforselectiongranularity?language=objc -func (t_ TextSelectionDataSourceWrapper) TextRangeForSelectionGranularityEnclosingLocation(selectionGranularity TextSelectionGranularity, location PTextLocation) TextRange { - po1 := objc.WrapAsProtocol("NSTextLocation", location) - rv := objc.Call[TextRange](t_, objc.Sel("textRangeForSelectionGranularity:enclosingLocation:"), selectionGranularity, po1) +// [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) return rv } -func (t_ TextSelectionDataSourceWrapper) HasOffsetFromLocationToLocation() bool { +func (t_ TextSelectionDataSourceObject) HasOffsetFromLocationToLocation() bool { return t_.RespondsToSelector(objc.Sel("offsetFromLocation:toLocation:")) } // Returns the offset between the two locations you specify. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/uikit/nstextselectiondatasource/3801847-offsetfromlocation?language=objc -func (t_ TextSelectionDataSourceWrapper) OffsetFromLocationToLocation(from PTextLocation, to PTextLocation) int { +func (t_ TextSelectionDataSourceObject) OffsetFromLocationToLocation(from TextLocationObject, to TextLocationObject) int { po0 := objc.WrapAsProtocol("NSTextLocation", from) po1 := objc.WrapAsProtocol("NSTextLocation", to) rv := objc.Call[int](t_, objc.Sel("offsetFromLocation:toLocation:"), po0, po1) return rv } -func (t_ TextSelectionDataSourceWrapper) HasLocationFromLocationWithOffset() bool { +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:")) } // Returns a new location using the location and offset you specify. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/uikit/nstextselectiondatasource/3801846-locationfromlocation?language=objc -func (t_ TextSelectionDataSourceWrapper) LocationFromLocationWithOffset(location PTextLocation, offset int) TextLocationWrapper { +func (t_ TextSelectionDataSourceObject) LocationFromLocationWithOffset(location TextLocationObject, offset int) TextLocationObject { po0 := objc.WrapAsProtocol("NSTextLocation", location) - rv := objc.Call[TextLocationWrapper](t_, objc.Sel("locationFromLocation:withOffset:"), po0, offset) + rv := objc.Call[TextLocationObject](t_, objc.Sel("locationFromLocation:withOffset:"), po0, offset) return rv } -func (t_ TextSelectionDataSourceWrapper) 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_ TextSelectionDataSourceWrapper) TextLayoutOrientationAtLocation(location PTextLocation) 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_ TextSelectionDataSourceWrapper) HasDocumentRange() bool { +func (t_ TextSelectionDataSourceObject) HasDocumentRange() bool { return t_.RespondsToSelector(objc.Sel("documentRange")) } // Returns the starting and ending locations for the document. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/uikit/nstextselectiondatasource/3801840-documentrange?language=objc -func (t_ TextSelectionDataSourceWrapper) DocumentRange() TextRange { +func (t_ TextSelectionDataSourceObject) DocumentRange() TextRange { rv := objc.Call[TextRange](t_, objc.Sel("documentRange")) return rv } diff --git a/macos/appkit/text_selection_navigation.gen.go b/macos/appkit/text_selection_navigation.gen.go index 149ef3cb..06523a8d 100644 --- a/macos/appkit/text_selection_navigation.gen.go +++ b/macos/appkit/text_selection_navigation.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package appkit @@ -19,18 +19,20 @@ 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 - ResolvedInsertionLocationForTextSelectionWritingDirection(textSelection ITextSelection, writingDirection TextSelectionNavigationWritingDirection) TextLocationWrapper + TextSelectionForSelectionGranularityEnclosingPointInContainerAtLocation(selectionGranularity TextSelectionGranularity, point coregraphics.Point, location PTextLocation) TextSelection + TextSelectionForSelectionGranularityEnclosingPointInContainerAtLocationObject(selectionGranularity TextSelectionGranularity, point coregraphics.Point, locationObject objc.IObject) TextSelection TextSelectionForSelectionGranularityEnclosingTextSelection(selectionGranularity TextSelectionGranularity, textSelection ITextSelection) TextSelection - DestinationSelectionForTextSelectionDirectionDestinationExtendingConfined(textSelection ITextSelection, direction TextSelectionNavigationDirection, destination TextSelectionNavigationDestination, extending bool, confined bool) TextSelection - DeletionRangesForTextSelectionDirectionDestinationAllowsDecomposition(textSelection ITextSelection, direction TextSelectionNavigationDirection, destination TextSelectionNavigationDestination, allowsDecomposition bool) []TextRange FlushLayoutCache() - TextSelectionDataSource() TextSelectionDataSourceWrapper - RotatesCoordinateSystemForLayoutOrientation() bool - SetRotatesCoordinateSystemForLayoutOrientation(value bool) + DeletionRangesForTextSelectionDirectionDestinationAllowsDecomposition(textSelection ITextSelection, direction TextSelectionNavigationDirection, destination TextSelectionNavigationDestination, allowsDecomposition bool) []TextRange + ResolvedInsertionLocationForTextSelectionWritingDirection(textSelection ITextSelection, writingDirection TextSelectionNavigationWritingDirection) TextLocationObject AllowsNonContiguousRanges() bool SetAllowsNonContiguousRanges(value bool) + RotatesCoordinateSystemForLayoutOrientation() bool + SetRotatesCoordinateSystemForLayoutOrientation(value bool) + TextSelectionDataSource() TextSelectionDataSourceObject } // An interface used to expose methods for obtaining results from actions performed on text selections. [Full Topic] @@ -66,10 +68,6 @@ func (tc _TextSelectionNavigationClass) Alloc() TextSelectionNavigation { return rv } -func TextSelectionNavigation_Alloc() TextSelectionNavigation { - return TextSelectionNavigationClass.Alloc() -} - func (tc _TextSelectionNavigationClass) New() TextSelectionNavigation { rv := objc.Call[TextSelectionNavigation](tc, objc.Sel("new")) rv.Autorelease() @@ -85,6 +83,14 @@ 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:"), objc.Ptr(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 @@ -102,11 +108,20 @@ func (t_ TextSelectionNavigation) TextSelectionsInteractingAtPointInContainerAtL return rv } -// Returns the location for inserting the next input depending on the state of the current and secondary selections. [Full Topic] +// 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/3852581-resolvedinsertionlocationfortext?language=objc -func (t_ TextSelectionNavigation) ResolvedInsertionLocationForTextSelectionWritingDirection(textSelection ITextSelection, writingDirection TextSelectionNavigationWritingDirection) TextLocationWrapper { - rv := objc.Call[TextLocationWrapper](t_, objc.Sel("resolvedInsertionLocationForTextSelection:writingDirection:"), objc.Ptr(textSelection), writingDirection) +// [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] +// +// [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, objc.Ptr(locationObject)) return rv } @@ -118,12 +133,11 @@ func (t_ TextSelectionNavigation) TextSelectionForSelectionGranularityEnclosingT return rv } -// Returns a new selection that results from applying the navigation operations you specify to the text selection you provide. [Full Topic] +// Flushes cached layout information. [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:"), objc.Ptr(textSelection), direction, destination, extending, confined) - 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")) } // Returns the ranges for deleting the text based on the current selection and movement arguments. [Full Topic] @@ -134,21 +148,29 @@ func (t_ TextSelectionNavigation) DeletionRangesForTextSelectionDirectionDestina return rv } -// Flushes cached layout information. [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/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/3852581-resolvedinsertionlocationfortext?language=objc +func (t_ TextSelectionNavigation) ResolvedInsertionLocationForTextSelectionWritingDirection(textSelection ITextSelection, writingDirection TextSelectionNavigationWritingDirection) TextLocationObject { + rv := objc.Call[TextLocationObject](t_, objc.Sel("resolvedInsertionLocationForTextSelection:writingDirection:"), objc.Ptr(textSelection), writingDirection) + return rv } -// 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() TextSelectionDataSourceWrapper { - rv := objc.Call[TextSelectionDataSourceWrapper](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) +} + // 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 @@ -164,17 +186,10 @@ func (t_ TextSelectionNavigation) SetRotatesCoordinateSystemForLayoutOrientation objc.Call[objc.Void](t_, objc.Sel("setRotatesCoordinateSystemForLayoutOrientation:"), value) } -// 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) -} diff --git a/macos/appkit/text_storage.gen.go b/macos/appkit/text_storage.gen.go index 813e444f..00a78273 100644 --- a/macos/appkit/text_storage.gen.go +++ b/macos/appkit/text_storage.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package appkit @@ -19,35 +19,35 @@ type _TextStorageClass struct { // An interface definition for the [TextStorage] class. type ITextStorage interface { foundation.IMutableAttributedString - EnsureAttributesAreFixedInRange(range_ foundation.Range) - InvalidateAttributesInRange(range_ foundation.Range) - EditedRangeChangeInLength(editedMask TextStorageEditActions, editedRange foundation.Range, delta int) + AddLayoutManager(aLayoutManager ILayoutManager) ProcessEditing() + InvalidateAttributesInRange(range_ foundation.Range) + EnsureAttributesAreFixedInRange(range_ foundation.Range) RemoveLayoutManager(aLayoutManager ILayoutManager) - AddLayoutManager(aLayoutManager ILayoutManager) - Paragraphs() []TextStorage - SetParagraphs(value []ITextStorage) - LayoutManagers() []LayoutManager - ChangeInLength() int - Characters() []TextStorage - SetCharacters(value []ITextStorage) - EditedRange() foundation.Range - Delegate() TextStorageDelegateWrapper - SetDelegate(value PTextStorageDelegate) - SetDelegateObject(valueObject objc.IObject) + EditedRangeChangeInLength(editedMask TextStorageEditActions, editedRange foundation.Range, delta int) ForegroundColor() Color SetForegroundColor(value IColor) - Font() Font - SetFont(value IFont) - EditedMask() TextStorageEditActions + Characters() []TextStorage + SetCharacters(value []ITextStorage) AttributeRuns() []TextStorage SetAttributeRuns(value []ITextStorage) Words() []TextStorage SetWords(value []ITextStorage) - TextStorageObserver() TextStorageObservingWrapper + Font() Font + SetFont(value IFont) + Paragraphs() []TextStorage + SetParagraphs(value []ITextStorage) + EditedMask() TextStorageEditActions + EditedRange() foundation.Range + FixesAttributesLazily() bool + Delegate() TextStorageDelegateObject + SetDelegate(value PTextStorageDelegate) + SetDelegateObject(valueObject objc.IObject) + TextStorageObserver() TextStorageObservingObject SetTextStorageObserver(value PTextStorageObserving) SetTextStorageObserverObject(valueObject objc.IObject) - FixesAttributesLazily() bool + LayoutManagers() []LayoutManager + ChangeInLength() int } // The fundamental storage mechanism of TextKit that contains the text managed by the system. [Full Topic] @@ -68,10 +68,6 @@ func (tc _TextStorageClass) Alloc() TextStorage { return rv } -func TextStorage_Alloc() TextStorage { - return TextStorageClass.Alloc() -} - func (tc _TextStorageClass) New() TextStorage { rv := objc.Call[TextStorage](tc, objc.Sel("new")) rv.Autorelease() @@ -87,16 +83,44 @@ func (t_ TextStorage) Init() TextStorage { return rv } -func (t_ TextStorage) InitWithHTMLOptionsDocumentAttributes(data []byte, options map[AttributedStringDocumentReadingOptionKey]objc.IObject, dict map[AttributedStringDocumentAttributeKey]objc.IObject) TextStorage { - rv := objc.Call[TextStorage](t_, objc.Sel("initWithHTML:options:documentAttributes:"), data, options, dict) +func (t_ TextStorage) InitWithHTMLBaseURLDocumentAttributes(data []byte, base foundation.IURL, dict map[AttributedStringDocumentAttributeKey]objc.IObject) TextStorage { + rv := objc.Call[TextStorage](t_, objc.Sel("initWithHTML:baseURL:documentAttributes:"), data, objc.Ptr(base), dict) return rv } -// Creates an attributed string from the HTML in the specified data object. [Full Topic] +// 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/1535412-initwithhtml?language=objc -func NewTextStorageWithHTMLOptionsDocumentAttributes(data []byte, options map[AttributedStringDocumentReadingOptionKey]objc.IObject, dict map[AttributedStringDocumentAttributeKey]objc.IObject) TextStorage { - instance := TextStorageClass.Alloc().InitWithHTMLOptionsDocumentAttributes(data, options, dict) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsattributedstring/1524624-initwithhtml?language=objc +func NewTextStorageWithHTMLBaseURLDocumentAttributes(data []byte, base foundation.IURL, dict map[AttributedStringDocumentAttributeKey]objc.IObject) 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 foundation.IError) TextStorage { + rv := objc.Call[TextStorage](t_, objc.Sel("initWithContentsOfMarkdownFileAtURL:options:baseURL:error:"), objc.Ptr(markdownFile), objc.Ptr(options), objc.Ptr(baseURL), objc.Ptr(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 foundation.IError) 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) + return rv +} + +// Creates an attributed string with the specified string and attributes. [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) instance.Autorelease() return instance } @@ -127,16 +151,30 @@ func NewTextStorageWithAttributedString(attrStr foundation.IAttributedString) Te return instance } -func (t_ TextStorage) InitWithContentsOfMarkdownFileAtURLOptionsBaseURLError(markdownFile foundation.IURL, options foundation.IAttributedStringMarkdownParsingOptions, baseURL foundation.IURL, error foundation.IError) TextStorage { - rv := objc.Call[TextStorage](t_, objc.Sel("initWithContentsOfMarkdownFileAtURL:options:baseURL:error:"), objc.Ptr(markdownFile), objc.Ptr(options), objc.Ptr(baseURL), objc.Ptr(error)) +func (t_ TextStorage) InitWithDataOptionsDocumentAttributesError(data []byte, options map[AttributedStringDocumentReadingOptionKey]objc.IObject, dict map[AttributedStringDocumentAttributeKey]objc.IObject, error foundation.IError) TextStorage { + rv := objc.Call[TextStorage](t_, objc.Sel("initWithData:options:documentAttributes:error:"), data, options, dict, objc.Ptr(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] +// Creates an attributed string from the data in the specified data object. [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 foundation.IError) TextStorage { - instance := TextStorageClass.Alloc().InitWithContentsOfMarkdownFileAtURLOptionsBaseURLError(markdownFile, options, baseURL, error) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsattributedstring/1524613-initwithdata?language=objc +func NewTextStorageWithDataOptionsDocumentAttributesError(data []byte, options map[AttributedStringDocumentReadingOptionKey]objc.IObject, dict map[AttributedStringDocumentAttributeKey]objc.IObject, error foundation.IError) TextStorage { + instance := TextStorageClass.Alloc().InitWithDataOptionsDocumentAttributesError(data, options, dict, error) + instance.Autorelease() + return instance +} + +func (t_ TextStorage) InitWithRTFDocumentAttributes(data []byte, dict map[AttributedStringDocumentAttributeKey]objc.IObject) TextStorage { + rv := objc.Call[TextStorage](t_, objc.Sel("initWithRTF:documentAttributes:"), data, dict) + return rv +} + +// 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/1532912-initwithrtf?language=objc +func NewTextStorageWithRTFDocumentAttributes(data []byte, dict map[AttributedStringDocumentAttributeKey]objc.IObject) TextStorage { + instance := TextStorageClass.Alloc().InitWithRTFDocumentAttributes(data, dict) instance.Autorelease() return instance } @@ -155,60 +193,58 @@ func NewTextStorageWithFormatOptionsLocale(format foundation.IAttributedString, return instance } -func (t_ TextStorage) InitWithDataOptionsDocumentAttributesError(data []byte, options map[AttributedStringDocumentReadingOptionKey]objc.IObject, dict map[AttributedStringDocumentAttributeKey]objc.IObject, error foundation.IError) TextStorage { - rv := objc.Call[TextStorage](t_, objc.Sel("initWithData:options:documentAttributes:error:"), data, options, dict, objc.Ptr(error)) +func (t_ TextStorage) InitWithRTFDFileWrapperDocumentAttributes(wrapper foundation.IFileWrapper, dict map[AttributedStringDocumentAttributeKey]objc.IObject) TextStorage { + rv := objc.Call[TextStorage](t_, objc.Sel("initWithRTFDFileWrapper:documentAttributes:"), objc.Ptr(wrapper), dict) return rv } -// Creates an attributed string from the data 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/1524613-initwithdata?language=objc -func NewTextStorageWithDataOptionsDocumentAttributesError(data []byte, options map[AttributedStringDocumentReadingOptionKey]objc.IObject, dict map[AttributedStringDocumentAttributeKey]objc.IObject, error foundation.IError) TextStorage { - instance := TextStorageClass.Alloc().InitWithDataOptionsDocumentAttributesError(data, options, dict, error) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsattributedstring/1533594-initwithrtfdfilewrapper?language=objc +func NewTextStorageWithRTFDFileWrapperDocumentAttributes(wrapper foundation.IFileWrapper, dict map[AttributedStringDocumentAttributeKey]objc.IObject) TextStorage { + instance := TextStorageClass.Alloc().InitWithRTFDFileWrapperDocumentAttributes(wrapper, dict) instance.Autorelease() return instance } -func (t_ TextStorage) InitWithString(str string) TextStorage { - rv := objc.Call[TextStorage](t_, objc.Sel("initWithString:"), str) +func (t_ TextStorage) InitWithMarkdownOptionsBaseURLError(markdown []byte, options foundation.IAttributedStringMarkdownParsingOptions, baseURL foundation.IURL, error foundation.IError) TextStorage { + rv := objc.Call[TextStorage](t_, objc.Sel("initWithMarkdown:options:baseURL:error:"), markdown, objc.Ptr(options), objc.Ptr(baseURL), objc.Ptr(error)) return rv } -// Creates an attributed string with the characters of the specified string and no attribute information. [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/1407481-initwithstring?language=objc -func NewTextStorageWithString(str string) TextStorage { - instance := TextStorageClass.Alloc().InitWithString(str) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsattributedstring/3746875-initwithmarkdown?language=objc +func NewTextStorageWithMarkdownOptionsBaseURLError(markdown []byte, options foundation.IAttributedStringMarkdownParsingOptions, baseURL foundation.IURL, error foundation.IError) TextStorage { + instance := TextStorageClass.Alloc().InitWithMarkdownOptionsBaseURLError(markdown, options, baseURL, error) instance.Autorelease() return instance } -func (t_ TextStorage) InitWithMarkdownStringOptionsBaseURLError(markdownString string, options foundation.IAttributedStringMarkdownParsingOptions, baseURL foundation.IURL, error foundation.IError) TextStorage { - rv := objc.Call[TextStorage](t_, objc.Sel("initWithMarkdownString:options:baseURL:error:"), markdownString, objc.Ptr(options), objc.Ptr(baseURL), objc.Ptr(error)) +func (t_ TextStorage) InitWithHTMLOptionsDocumentAttributes(data []byte, options map[AttributedStringDocumentReadingOptionKey]objc.IObject, dict map[AttributedStringDocumentAttributeKey]objc.IObject) TextStorage { + rv := objc.Call[TextStorage](t_, objc.Sel("initWithHTML:options:documentAttributes:"), data, options, dict) return rv } -// Creates an attributed string from a Markdown-formatted string using the provided options. [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/3746876-initwithmarkdownstring?language=objc -func NewTextStorageWithMarkdownStringOptionsBaseURLError(markdownString string, options foundation.IAttributedStringMarkdownParsingOptions, baseURL foundation.IURL, error foundation.IError) TextStorage { - instance := TextStorageClass.Alloc().InitWithMarkdownStringOptionsBaseURLError(markdownString, options, baseURL, error) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsattributedstring/1535412-initwithhtml?language=objc +func NewTextStorageWithHTMLOptionsDocumentAttributes(data []byte, options map[AttributedStringDocumentReadingOptionKey]objc.IObject, dict map[AttributedStringDocumentAttributeKey]objc.IObject) TextStorage { + instance := TextStorageClass.Alloc().InitWithHTMLOptionsDocumentAttributes(data, options, dict) instance.Autorelease() return instance } -func (t_ TextStorage) InitWithMarkdownOptionsBaseURLError(markdown []byte, options foundation.IAttributedStringMarkdownParsingOptions, baseURL foundation.IURL, error foundation.IError) TextStorage { - rv := objc.Call[TextStorage](t_, objc.Sel("initWithMarkdown:options:baseURL:error:"), markdown, objc.Ptr(options), objc.Ptr(baseURL), objc.Ptr(error)) +func (tc _TextStorageClass) LocalizedAttributedStringWithFormatOptions(format foundation.IAttributedString, options foundation.AttributedStringFormattingOptions, args ...any) TextStorage { + rv := objc.Call[TextStorage](tc, objc.Sel("localizedAttributedStringWithFormat:options:"), append([]any{objc.Ptr(format), options}, args...)...) return rv } -// Creates an attributed string from Markdown-formatted data using the provided options. [Full Topic] +// [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 foundation.IError) TextStorage { - instance := TextStorageClass.Alloc().InitWithMarkdownOptionsBaseURLError(markdown, options, baseURL, error) - instance.Autorelease() - return instance +// [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...) } func (t_ TextStorage) InitWithDocFormatDocumentAttributes(data []byte, dict map[AttributedStringDocumentAttributeKey]objc.IObject) TextStorage { @@ -225,67 +261,81 @@ func NewTextStorageWithDocFormatDocumentAttributes(data []byte, dict map[Attribu return instance } -func (t_ TextStorage) InitWithRTFDDocumentAttributes(data []byte, dict map[AttributedStringDocumentAttributeKey]objc.IObject) TextStorage { - rv := objc.Call[TextStorage](t_, objc.Sel("initWithRTFD:documentAttributes:"), data, dict) +func (t_ TextStorage) InitWithMarkdownStringOptionsBaseURLError(markdownString string, options foundation.IAttributedStringMarkdownParsingOptions, baseURL foundation.IURL, error foundation.IError) TextStorage { + rv := objc.Call[TextStorage](t_, objc.Sel("initWithMarkdownString:options:baseURL:error:"), markdownString, objc.Ptr(options), objc.Ptr(baseURL), objc.Ptr(error)) return rv } -// Creates an attributed string by decoding the stream of RTFD commands and data 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/1530987-initwithrtfd?language=objc -func NewTextStorageWithRTFDDocumentAttributes(data []byte, dict map[AttributedStringDocumentAttributeKey]objc.IObject) TextStorage { - instance := TextStorageClass.Alloc().InitWithRTFDDocumentAttributes(data, 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 foundation.IError) TextStorage { + instance := TextStorageClass.Alloc().InitWithMarkdownStringOptionsBaseURLError(markdownString, options, baseURL, error) instance.Autorelease() return instance } -func (t_ TextStorage) InitWithRTFDocumentAttributes(data []byte, dict map[AttributedStringDocumentAttributeKey]objc.IObject) TextStorage { - rv := objc.Call[TextStorage](t_, objc.Sel("initWithRTF:documentAttributes:"), data, dict) +func (t_ TextStorage) InitWithURLOptionsDocumentAttributesError(url foundation.IURL, options map[AttributedStringDocumentReadingOptionKey]objc.IObject, dict map[AttributedStringDocumentAttributeKey]objc.IObject, error foundation.IError) TextStorage { + rv := objc.Call[TextStorage](t_, objc.Sel("initWithURL:options:documentAttributes:error:"), objc.Ptr(url), options, dict, objc.Ptr(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 the specified URL. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsattributedstring/1532912-initwithrtf?language=objc -func NewTextStorageWithRTFDocumentAttributes(data []byte, dict map[AttributedStringDocumentAttributeKey]objc.IObject) TextStorage { - instance := TextStorageClass.Alloc().InitWithRTFDocumentAttributes(data, dict) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsattributedstring/1530490-initwithurl?language=objc +func NewTextStorageWithURLOptionsDocumentAttributesError(url foundation.IURL, options map[AttributedStringDocumentReadingOptionKey]objc.IObject, dict map[AttributedStringDocumentAttributeKey]objc.IObject, error foundation.IError) TextStorage { + instance := TextStorageClass.Alloc().InitWithURLOptionsDocumentAttributesError(url, options, dict, error) instance.Autorelease() return instance } -func (t_ TextStorage) InitWithRTFDFileWrapperDocumentAttributes(wrapper foundation.IFileWrapper, dict map[AttributedStringDocumentAttributeKey]objc.IObject) TextStorage { - rv := objc.Call[TextStorage](t_, objc.Sel("initWithRTFDFileWrapper:documentAttributes:"), objc.Ptr(wrapper), dict) +func (t_ TextStorage) InitWithHTMLDocumentAttributes(data []byte, dict map[AttributedStringDocumentAttributeKey]objc.IObject) TextStorage { + rv := objc.Call[TextStorage](t_, objc.Sel("initWithHTML:documentAttributes:"), data, dict) return rv } -// Creates an attributed string from the specified file wrapper that contains an RTFD document. [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/1533594-initwithrtfdfilewrapper?language=objc -func NewTextStorageWithRTFDFileWrapperDocumentAttributes(wrapper foundation.IFileWrapper, dict map[AttributedStringDocumentAttributeKey]objc.IObject) TextStorage { - instance := TextStorageClass.Alloc().InitWithRTFDFileWrapperDocumentAttributes(wrapper, dict) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsattributedstring/1525953-initwithhtml?language=objc +func NewTextStorageWithHTMLDocumentAttributes(data []byte, dict map[AttributedStringDocumentAttributeKey]objc.IObject) TextStorage { + instance := TextStorageClass.Alloc().InitWithHTMLDocumentAttributes(data, dict) instance.Autorelease() return instance } -// Ensures that attribute fixing occurs in the specified range. [Full Topic] +func (t_ TextStorage) InitWithRTFDDocumentAttributes(data []byte, dict map[AttributedStringDocumentAttributeKey]objc.IObject) 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] // -// [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/foundation/nsattributedstring/1530987-initwithrtfd?language=objc +func NewTextStorageWithRTFDDocumentAttributes(data []byte, dict map[AttributedStringDocumentAttributeKey]objc.IObject) TextStorage { + instance := TextStorageClass.Alloc().InitWithRTFDDocumentAttributes(data, dict) + instance.Autorelease() + return instance } -// Invalidates attributes in the specified range. [Full Topic] +func (t_ TextStorage) InitWithString(str string) TextStorage { + rv := objc.Call[TextStorage](t_, objc.Sel("initWithString:"), str) + return rv +} + +// Creates an attributed string with the characters of the specified string and no attribute information. [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/foundation/nsattributedstring/1407481-initwithstring?language=objc +func NewTextStorageWithString(str string) TextStorage { + instance := TextStorageClass.Alloc().InitWithString(str) + instance.Autorelease() + return instance } -// Tracks changes made to the text storage object, allowing the text storage to record the full extent of changes. [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/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/uikit/nstextstorage/1533459-addlayoutmanager?language=objc +func (t_ TextStorage) AddLayoutManager(aLayoutManager ILayoutManager) { + objc.Call[objc.Void](t_, objc.Sel("addLayoutManager:"), objc.Ptr(aLayoutManager)) } // Cleans up changes to the text storage object and notifies its delegate and layout managers of changes. [Full Topic] @@ -295,49 +345,47 @@ func (t_ TextStorage) ProcessEditing() { objc.Call[objc.Void](t_, objc.Sel("processEditing")) } -// Removes a layout manager from the text storage object’s set of layout managers. [Full Topic] +// Invalidates attributes in the specified range. [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:"), objc.Ptr(aLayoutManager)) +// [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] +// Ensures that attribute fixing occurs in the specified range. [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:"), objc.Ptr(aLayoutManager)) +// [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_) } -// The text storage contents as an array of paragraphs. [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/appkit/nstextstorage/1525943-paragraphs?language=objc -func (t_ TextStorage) Paragraphs() []TextStorage { - rv := objc.Call[[]TextStorage](t_, objc.Sel("paragraphs")) - return rv +// [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:"), objc.Ptr(aLayoutManager)) } -// The text storage contents as an array of paragraphs. [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/appkit/nstextstorage/1525943-paragraphs?language=objc -func (t_ TextStorage) SetParagraphs(value []ITextStorage) { - objc.Call[objc.Void](t_, objc.Sel("setParagraphs:"), value) +// [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) } -// The layout managers for the text storage object. [Full Topic] +// The color for the text. [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")) +// [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 difference between the current length of the edited range and its length before editing. [Full Topic] +// The color for the text. [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")) - return rv +// [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:"), objc.Ptr(value)) } // The text storage contents as an array of characters. [Full Topic] @@ -355,51 +403,34 @@ func (t_ TextStorage) SetCharacters(value []ITextStorage) { objc.Call[objc.Void](t_, objc.Sel("setCharacters:"), value) } -// The range of text that contains changes. [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")) - return rv -} - -// The delegate for the text storage object. [Full Topic] +// The text storage contents as an array of attribute runs. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/uikit/nstextstorage/1532704-delegate?language=objc -func (t_ TextStorage) Delegate() TextStorageDelegateWrapper { - rv := objc.Call[TextStorageDelegateWrapper](t_, objc.Sel("delegate")) +// [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 } -// 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 attribute runs. [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:"), objc.Ptr(valueObject)) +// [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 color for the text. [Full Topic] +// The text storage contents as an array of words. [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/appkit/nstextstorage/1524565-words?language=objc +func (t_ TextStorage) Words() []TextStorage { + rv := objc.Call[[]TextStorage](t_, objc.Sel("words")) return rv } -// The color for the text. [Full Topic] +// The text storage contents as an array of words. [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:"), objc.Ptr(value)) +// [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 font for the text storage. [Full Topic] @@ -417,6 +448,21 @@ func (t_ TextStorage) SetFont(value IFont) { objc.Call[objc.Void](t_, objc.Sel("setFont:"), objc.Ptr(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 @@ -425,41 +471,51 @@ func (t_ TextStorage) EditedMask() TextStorageEditActions { return rv } -// 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] +// A Boolean value that indicates whether the text storage object fixes attributes lazily. [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/1532043-fixesattributeslazily?language=objc +func (t_ TextStorage) FixesAttributesLazily() bool { + rv := objc.Call[bool](t_, objc.Sel("fixesAttributesLazily")) + 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) 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) SetWords(value []ITextStorage) { - objc.Call[objc.Void](t_, objc.Sel("setWords:"), value) +// [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:"), objc.Ptr(valueObject)) } // The observer for the text storage object. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/uikit/nstextstorage/3824756-textstorageobserver?language=objc -func (t_ TextStorage) TextStorageObserver() TextStorageObservingWrapper { - rv := objc.Call[TextStorageObservingWrapper](t_, objc.Sel("textStorageObserver")) +func (t_ TextStorage) TextStorageObserver() TextStorageObservingObject { + rv := objc.Call[TextStorageObservingObject](t_, objc.Sel("textStorageObserver")) return rv } @@ -479,10 +535,18 @@ func (t_ TextStorage) SetTextStorageObserverObject(valueObject objc.IObject) { objc.Call[objc.Void](t_, objc.Sel("setTextStorageObserver:"), objc.Ptr(valueObject)) } -// A Boolean value that indicates whether the text storage object fixes attributes lazily. [Full Topic] +// The layout managers for the text storage object. [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")) +// [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] +// +// [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 } diff --git a/macos/appkit/text_storage_delegate.gen.go b/macos/appkit/text_storage_delegate.gen.go index c2eed8c9..38c58ec0 100644 --- a/macos/appkit/text_storage_delegate.gen.go +++ b/macos/appkit/text_storage_delegate.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package appkit @@ -14,11 +14,16 @@ 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) + _TextStorageDidProcessEditingRangeChangeInLength func(textStorage TextStorage, editedMask TextStorageEditActions, editedRange foundation.Range, delta int) + _TextStorageWillProcessEditingRangeChangeInLength func(textStorage TextStorage, editedMask TextStorageEditActions, editedRange foundation.Range, delta int) } func (di *TextStorageDelegate) HasTextStorageDidProcessEditingRangeChangeInLength() bool { @@ -38,19 +43,50 @@ 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 +} -// A concrete type wrapper for the [PTextStorageDelegate] protocol. -type TextStorageDelegateWrapper struct { +// 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) + +// A concrete type for the [PTextStorageDelegate] protocol. +type TextStorageDelegateObject struct { objc.Object } -func (t_ TextStorageDelegateWrapper) HasTextStorageDidProcessEditingRangeChangeInLength() bool { +func (t_ TextStorageDelegateObject) HasTextStorageDidProcessEditingRangeChangeInLength() bool { return t_.RespondsToSelector(objc.Sel("textStorage:didProcessEditing:range:changeInLength:")) } // The method the framework calls when a text storage object has finished processing edits. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/uikit/nstextstoragedelegate/1534375-textstorage?language=objc -func (t_ TextStorageDelegateWrapper) TextStorageDidProcessEditingRangeChangeInLength(textStorage ITextStorage, editedMask TextStorageEditActions, editedRange foundation.Range, delta int) { +func (t_ TextStorageDelegateObject) TextStorageDidProcessEditingRangeChangeInLength(textStorage TextStorage, editedMask TextStorageEditActions, editedRange foundation.Range, delta int) { objc.Call[objc.Void](t_, objc.Sel("textStorage:didProcessEditing:range:changeInLength:"), objc.Ptr(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:"), objc.Ptr(textStorage), editedMask, editedRange, delta) +} diff --git a/macos/appkit/text_storage_observing.gen.go b/macos/appkit/text_storage_observing_protocol.gen.go similarity index 67% rename from macos/appkit/text_storage_observing.gen.go rename to macos/appkit/text_storage_observing_protocol.gen.go index 2f0eb8dd..0a50c3e4 100644 --- a/macos/appkit/text_storage_observing.gen.go +++ b/macos/appkit/text_storage_observing_protocol.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package appkit @@ -24,56 +24,59 @@ type PTextStorageObserving interface { HasSetTextStorage() bool // optional - TextStorage() ITextStorage + TextStorage() TextStorage HasTextStorage() bool } -// A concrete type wrapper for the [PTextStorageObserving] protocol. -type TextStorageObservingWrapper struct { +// ensure impl type implements protocol interface +var _ PTextStorageObserving = (*TextStorageObservingObject)(nil) + +// A concrete type for the [PTextStorageObserving] protocol. +type TextStorageObservingObject struct { objc.Object } -func (t_ TextStorageObservingWrapper) HasProcessEditingForTextStorageEditedRangeChangeInLengthInvalidatedRange() bool { +func (t_ TextStorageObservingObject) HasProcessEditingForTextStorageEditedRangeChangeInLengthInvalidatedRange() bool { return t_.RespondsToSelector(objc.Sel("processEditingForTextStorage:edited:range:changeInLength:invalidatedRange:")) } // [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/uikit/nstextstorageobserving/3810050-processeditingfortextstorage?language=objc -func (t_ TextStorageObservingWrapper) ProcessEditingForTextStorageEditedRangeChangeInLengthInvalidatedRange(textStorage ITextStorage, editMask TextStorageEditActions, newCharRange foundation.Range, delta int, invalidatedCharRange foundation.Range) { +func (t_ TextStorageObservingObject) ProcessEditingForTextStorageEditedRangeChangeInLengthInvalidatedRange(textStorage TextStorage, editMask TextStorageEditActions, newCharRange foundation.Range, delta int, invalidatedCharRange foundation.Range) { objc.Call[objc.Void](t_, objc.Sel("processEditingForTextStorage:edited:range:changeInLength:invalidatedRange:"), objc.Ptr(textStorage), editMask, newCharRange, delta, invalidatedCharRange) } -func (t_ TextStorageObservingWrapper) HasPerformEditingTransactionForTextStorageUsingBlock() bool { +func (t_ TextStorageObservingObject) HasPerformEditingTransactionForTextStorageUsingBlock() bool { return t_.RespondsToSelector(objc.Sel("performEditingTransactionForTextStorage:usingBlock:")) } // [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/uikit/nstextstorageobserving/3852588-performeditingtransactionfortext?language=objc -func (t_ TextStorageObservingWrapper) PerformEditingTransactionForTextStorageUsingBlock(textStorage ITextStorage, transaction func()) { +func (t_ TextStorageObservingObject) PerformEditingTransactionForTextStorageUsingBlock(textStorage TextStorage, transaction func()) { objc.Call[objc.Void](t_, objc.Sel("performEditingTransactionForTextStorage:usingBlock:"), objc.Ptr(textStorage), transaction) } -func (t_ TextStorageObservingWrapper) HasSetTextStorage() bool { +func (t_ TextStorageObservingObject) HasSetTextStorage() bool { return t_.RespondsToSelector(objc.Sel("setTextStorage:")) } // [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/uikit/nstextstorageobserving/3810051-textstorage?language=objc -func (t_ TextStorageObservingWrapper) SetTextStorage(value ITextStorage) { +func (t_ TextStorageObservingObject) SetTextStorage(value TextStorage) { objc.Call[objc.Void](t_, objc.Sel("setTextStorage:"), objc.Ptr(value)) } -func (t_ TextStorageObservingWrapper) HasTextStorage() bool { +func (t_ TextStorageObservingObject) HasTextStorage() bool { return t_.RespondsToSelector(objc.Sel("textStorage")) } // [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/uikit/nstextstorageobserving/3810051-textstorage?language=objc -func (t_ TextStorageObservingWrapper) TextStorage() TextStorage { +func (t_ TextStorageObservingObject) TextStorage() TextStorage { rv := objc.Call[TextStorage](t_, objc.Sel("textStorage")) return rv } diff --git a/macos/appkit/text_tab.gen.go b/macos/appkit/text_tab.gen.go index b5d58044..a7cda77c 100644 --- a/macos/appkit/text_tab.gen.go +++ b/macos/appkit/text_tab.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package appkit @@ -19,8 +19,8 @@ type _TextTabClass struct { // An interface definition for the [TextTab] class. type ITextTab interface { objc.IObject - Options() map[TextTabOptionKey]objc.Object Location() float64 + Options() map[TextTabOptionKey]objc.Object Alignment() TextAlignment } @@ -56,10 +56,6 @@ func (tc _TextTabClass) Alloc() TextTab { return rv } -func TextTab_Alloc() TextTab { - return TextTabClass.Alloc() -} - func (tc _TextTabClass) New() TextTab { rv := objc.Call[TextTab](tc, objc.Sel("new")) rv.Autorelease() @@ -90,14 +86,6 @@ func TextTab_ColumnTerminatorsForLocale(aLocale foundation.ILocale) foundation.C return TextTabClass.ColumnTerminatorsForLocale(aLocale) } -// The dictionary of attributes for the text tab. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/uikit/nstexttab/1534965-options?language=objc -func (t_ TextTab) Options() map[TextTabOptionKey]objc.Object { - rv := objc.Call[map[TextTabOptionKey]objc.Object](t_, objc.Sel("options")) - 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 @@ -106,6 +94,14 @@ func (t_ TextTab) Location() float64 { 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 +func (t_ TextTab) Options() map[TextTabOptionKey]objc.Object { + rv := objc.Call[map[TextTabOptionKey]objc.Object](t_, objc.Sel("options")) + 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 ca2fc2e9..ab70391c 100644 --- a/macos/appkit/text_table.gen.go +++ b/macos/appkit/text_table.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package appkit @@ -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) - RectForBlockLayoutAtPointInRectTextContainerCharacterRange(block ITextTableBlock, startingPoint foundation.Point, rect foundation.Rect, textContainer ITextContainer, charRange foundation.Range) foundation.Rect - CollapsesBorders() bool - SetCollapsesBorders(value bool) - HidesEmptyCells() bool - SetHidesEmptyCells(value bool) LayoutAlgorithm() TextTableLayoutAlgorithm SetLayoutAlgorithm(value TextTableLayoutAlgorithm) + CollapsesBorders() bool + SetCollapsesBorders(value bool) NumberOfColumns() uint SetNumberOfColumns(value uint) + HidesEmptyCells() bool + SetHidesEmptyCells(value bool) } // An object that represents a text table as a whole. [Full Topic] @@ -50,10 +50,6 @@ func (tc _TextTableClass) Alloc() TextTable { return rv } -func TextTable_Alloc() TextTable { - return TextTableClass.Alloc() -} - func (tc _TextTableClass) New() TextTable { rv := objc.Call[TextTable](tc, objc.Sel("new")) rv.Autorelease() @@ -69,6 +65,14 @@ 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:"), objc.Ptr(block), startingPoint, rect, objc.Ptr(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 @@ -84,14 +88,21 @@ func (t_ TextTable) DrawBackgroundForBlockWithFrameInViewCharacterRangeLayoutMan objc.Call[objc.Void](t_, objc.Sel("drawBackgroundForBlock:withFrame:inView:characterRange:layoutManager:"), objc.Ptr(block), frameRect, objc.Ptr(controlView), charRange, objc.Ptr(layoutManager)) } -// Returns the rectangle within which glyphs should be laid out for a text table block. [Full Topic] +// The text table layout algorithm. [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:"), objc.Ptr(block), startingPoint, rect, objc.Ptr(textContainer), charRange) +// [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) +} + // 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 @@ -107,36 +118,6 @@ func (t_ TextTable) SetCollapsesBorders(value bool) { objc.Call[objc.Void](t_, objc.Sel("setCollapsesBorders:"), 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 -func (t_ TextTable) HidesEmptyCells() bool { - rv := objc.Call[bool](t_, objc.Sel("hidesEmptyCells")) - return rv -} - -// 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 -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 @@ -151,3 +132,18 @@ func (t_ TextTable) NumberOfColumns() uint { 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 +func (t_ TextTable) HidesEmptyCells() bool { + rv := objc.Call[bool](t_, objc.Sel("hidesEmptyCells")) + return rv +} + +// 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 +func (t_ TextTable) SetHidesEmptyCells(value bool) { + objc.Call[objc.Void](t_, objc.Sel("setHidesEmptyCells:"), value) +} diff --git a/macos/appkit/text_table_block.gen.go b/macos/appkit/text_table_block.gen.go index 9cbf18f7..f2f4a741 100644 --- a/macos/appkit/text_table_block.gen.go +++ b/macos/appkit/text_table_block.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package appkit @@ -18,11 +18,11 @@ type _TextTableBlockClass struct { // An interface definition for the [TextTableBlock] class. type ITextTableBlock interface { ITextBlock - RowSpan() int + StartingColumn() 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] @@ -57,10 +57,6 @@ func (tc _TextTableBlockClass) Alloc() TextTableBlock { return rv } -func TextTableBlock_Alloc() TextTableBlock { - return TextTableBlockClass.Alloc() -} - func (tc _TextTableBlockClass) New() TextTableBlock { rv := objc.Call[TextTableBlock](tc, objc.Sel("new")) rv.Autorelease() @@ -76,11 +72,11 @@ func (t_ TextTableBlock) Init() TextTableBlock { return rv } -// Returns the number of table rows 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/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/1525383-startingcolumn?language=objc +func (t_ TextTableBlock) StartingColumn() int { + rv := objc.Call[int](t_, objc.Sel("startingColumn")) return rv } @@ -100,14 +96,6 @@ func (t_ TextTableBlock) Table() TextTable { return rv } -// Returns the table column at which this text table block starts. [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")) - return rv -} - // Returns the number of table columns spanned by this text table block. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/appkit/nstexttableblock/1528568-columnspan?language=objc @@ -115,3 +103,11 @@ func (t_ TextTableBlock) ColumnSpan() int { rv := objc.Call[int](t_, objc.Sel("columnSpan")) return rv } + +// Returns the number of table rows 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")) + return rv +} diff --git a/macos/appkit/text_view.gen.go b/macos/appkit/text_view.gen.go index cb09eae4..cd8be792 100644 --- a/macos/appkit/text_view.gen.go +++ b/macos/appkit/text_view.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package appkit @@ -19,352 +19,264 @@ type _TextViewClass struct { // An interface definition for the [TextView] class. type ITextView interface { IText - 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 - 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) + UseAllLigatures(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) + SmartInsertForStringReplacingRangeBeforeStringAfterString(pasteString string, charRangeToReplace foundation.Range, beforeString string, afterString string) + CheckTextInSelection(sender objc.IObject) + OrderFrontSpacingPanel(sender objc.IObject) + StopSpeaking(sender objc.IObject) + WriteSelectionToPasteboardTypes(pboard IPasteboard, types []PasteboardType) bool + WriteSelectionToPasteboardType(pboard IPasteboard, type_ PasteboardType) bool + ShouldChangeTextInRangeReplacementString(affectedCharRange foundation.Range, replacementString string) bool + UpdateInsertionPointStateAndRestartTimer(restartFlag bool) DragImageForSelectionWithEventOrigin(event IEvent, origin foundation.PointPointer) Image - StartSpeaking(sender objc.IObject) - SmartInsertAfterStringForStringReplacingRange(pasteString string, charRangeToReplace foundation.Range) string - SmartInsertBeforeStringForStringReplacingRange(pasteString string, charRangeToReplace foundation.Range) string - UpdateQuickLookPreviewPanel() - UpdateDragTypeRegistration() + ToggleContinuousSpellChecking(sender objc.IObject) 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) - UseAllLigatures(sender objc.IObject) - ToggleAutomaticSpellingCorrection(sender objc.IObject) - TightenKerning(sender objc.IObject) - 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) - 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 + 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) + TightenKerning(sender objc.IObject) + PreferredPasteboardTypeFromArrayRestrictedToTypesFromArray(availableTypes []PasteboardType, allowedTypes []PasteboardType) PasteboardType + CheckTextInRangeTypesOptions(range_ foundation.Range, checkingTypes foundation.TextCheckingTypes, options map[TextCheckingOptionKey]objc.IObject) + UpdateCandidates() DragOperationForDraggingInfoType(dragInfo PDraggingInfo, type_ PasteboardType) DragOperation DragOperationForDraggingInfoObjectType(dragInfoObject objc.IObject, type_ PasteboardType) DragOperation - CheckTextInSelection(sender objc.IObject) + UpdateQuickLookPreviewPanel() + ToggleAutomaticSpellingCorrection(sender objc.IObject) UpdateTouchBarItemIdentifiers() - 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) + SetNeedsDisplayInRectAvoidAdditionalLayout(rect foundation.Rect, flag bool) AlignJustified(sender objc.IObject) + TurnOffLigatures(sender objc.IObject) PasteAsRichText(sender objc.IObject) - UpdateCandidates() - ChangeLayoutOrientation(sender objc.IObject) - ToggleQuickLookPreviewPanel(sender objc.IObject) objc.Object - SmartInsertForStringReplacingRangeBeforeStringAfterString(pasteString string, charRangeToReplace foundation.Range, beforeString string, afterString string) - WriteSelectionToPasteboardTypes(pboard IPasteboard, types []PasteboardType) bool - TurnOffKerning(sender objc.IObject) - ChangeDocumentBackgroundColor(sender objc.IObject) - DrawInsertionPointInRectColorTurnedOn(rect foundation.Rect, color IColor, flag bool) - StopSpeaking(sender objc.IObject) RaiseBaseline(sender objc.IObject) - TurnOffLigatures(sender objc.IObject) - UpdateTextTouchBarItems() - ToggleAutomaticQuoteSubstitution(sender objc.IObject) + ToggleAutomaticLinkDetection(sender objc.IObject) + ChangeDocumentBackgroundColor(sender objc.IObject) + OrderFrontLinkPanel(sender objc.IObject) + ToggleSmartInsertDelete(sender objc.IObject) + 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() + 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 UpdateRuler() - ReplaceTextContainer(newContainer ITextContainer) + 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 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) - SetNeedsDisplayInRectAvoidAdditionalLayout(rect foundation.Rect, flag bool) - PerformFindPanelAction(sender objc.IObject) + UpdateTextTouchBarItems() + ShouldChangeTextInRangesReplacementStrings(affectedRanges []foundation.IValue, replacementStrings []string) bool UpdateFontPanel() - SmartDeleteRangeForProposedRange(proposedCharRange foundation.Range) foundation.Range - ToggleGrammarChecking(sender objc.IObject) + UseStandardLigatures(sender objc.IObject) + ReplaceTextContainer(newContainer ITextContainer) CleanUpAfterDragOperation() - CharacterIndexForInsertionAtPoint(point foundation.Point) uint - UpdateInsertionPointStateAndRestartTimer(restartFlag bool) + 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) TextLayoutManager() TextLayoutManager DefaultParagraphStyle() ParagraphStyle SetDefaultParagraphStyle(value IParagraphStyle) - IsAutomaticLinkDetectionEnabled() bool - SetAutomaticLinkDetectionEnabled(value bool) + DisplaysLinkToolTips() bool + SetDisplaysLinkToolTips(value bool) + ReadablePasteboardTypes() []PasteboardType + IsCoalescingUndo() 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 - RangeForUserParagraphAttributeChange() foundation.Range - InsertionPointColor() Color - SetInsertionPointColor(value IColor) - EnabledTextCheckingTypes() foundation.TextCheckingTypes - SetEnabledTextCheckingTypes(value foundation.TextCheckingTypes) - RangeForUserTextChange() foundation.Range + RangeForUserCompletion() foundation.Range + IsAutomaticDataDetectionEnabled() bool + SetAutomaticDataDetectionEnabled(value bool) SelectedTextAttributes() map[foundation.AttributedStringKey]objc.Object SetSelectedTextAttributes(value map[foundation.AttributedStringKey]objc.IObject) - 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) - 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 + ShouldDrawInsertionPoint() bool SmartInsertDeleteEnabled() bool SetSmartInsertDeleteEnabled(value bool) - IsIncrementalSearchingEnabled() bool - SetIncrementalSearchingEnabled(value bool) + AllowsCharacterPickerTouchBarItem() bool + SetAllowsCharacterPickerTouchBarItem(value bool) + TypingAttributes() map[foundation.AttributedStringKey]objc.Object + SetTypingAttributes(value map[foundation.AttributedStringKey]objc.IObject) + RangesForUserCharacterAttributeChange() []foundation.Value + AcceptableDragTypes() []PasteboardType UsesRuler() bool SetUsesRuler(value bool) - IsAutomaticDataDetectionEnabled() bool - SetAutomaticDataDetectionEnabled(value bool) - RangesForUserCharacterAttributeChange() []foundation.Value RangeForUserCharacterAttributeChange() foundation.Range - DisplaysLinkToolTips() bool - SetDisplaysLinkToolTips(value bool) + InsertionPointColor() Color + SetInsertionPointColor(value IColor) + IsAutomaticTextCompletionEnabled() bool + SetAutomaticTextCompletionEnabled(value bool) + IsAutomaticSpellingCorrectionEnabled() bool + SetAutomaticSpellingCorrectionEnabled(value bool) SetRulerVisible(value bool) - IsContinuousSpellCheckingEnabled() bool - SetContinuousSpellCheckingEnabled(value bool) - RangesForUserTextChange() []foundation.Value - 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) + 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) AllowsUndo() bool SetAllowsUndo(value bool) MarkedTextAttributes() map[foundation.AttributedStringKey]objc.Object SetMarkedTextAttributes(value map[foundation.AttributedStringKey]objc.IObject) - AcceptableDragTypes() []PasteboardType - TextContainerOrigin() foundation.Point - UsesFindBar() bool - SetUsesFindBar(value bool) + AcceptsGlyphInfo() bool + SetAcceptsGlyphInfo(value bool) + IsAutomaticLinkDetectionEnabled() bool + SetAutomaticLinkDetectionEnabled(value bool) TextContentStorage() TextContentStorage - SelectionGranularity() SelectionGranularity - SetSelectionGranularity(value SelectionGranularity) + TextContainerOrigin() foundation.Point + TextContainer() TextContainer + SetTextContainer(value ITextContainer) + SelectionAffinity() SelectionAffinity 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] // // [Full Topic]: https://developer.apple.com/documentation/appkit/nstextview?language=objc type TextView struct { - Text -} - -func TextViewFrom(ptr unsafe.Pointer) TextView { - return TextView{ - Text: TextFrom(ptr), - } -} - -func (t_ TextView) InitWithFrameTextContainer(frameRect foundation.Rect, container ITextContainer) TextView { - rv := objc.Call[TextView](t_, objc.Sel("initWithFrame:textContainer:"), frameRect, objc.Ptr(container)) - return rv -} - -// Initializes a text view. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nstextview/1449347-initwithframe?language=objc -func NewTextViewWithFrameTextContainer(frameRect foundation.Rect, container ITextContainer) TextView { - instance := TextViewClass.Alloc().InitWithFrameTextContainer(frameRect, container) - instance.Autorelease() - return instance -} - -func (tc _TextViewClass) Alloc() TextView { - rv := objc.Call[TextView](tc, objc.Sel("alloc")) - return rv -} - -func TextView_Alloc() TextView { - return TextViewClass.Alloc() -} - -func (tc _TextViewClass) New() TextView { - rv := objc.Call[TextView](tc, objc.Sel("new")) - rv.Autorelease() - return rv -} - -func NewTextView() TextView { - return TextViewClass.New() + Text } -func (t_ TextView) Init() TextView { - rv := objc.Call[TextView](t_, objc.Sel("init")) - return rv +func TextViewFrom(ptr unsafe.Pointer) TextView { + return TextView{ + Text: TextFrom(ptr), + } } -func (t_ TextView) InitWithFrame(frameRect foundation.Rect) TextView { - rv := objc.Call[TextView](t_, objc.Sel("initWithFrame:"), frameRect) +func (t_ TextView) InitWithFrameTextContainer(frameRect foundation.Rect, container ITextContainer) TextView { + rv := objc.Call[TextView](t_, objc.Sel("initWithFrame:textContainer:"), frameRect, objc.Ptr(container)) return rv } -// [Full Topic] +// Initializes a text view. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nstext/1525191-initwithframe?language=objc -func NewTextViewWithFrame(frameRect foundation.Rect) TextView { - instance := TextViewClass.Alloc().InitWithFrame(frameRect) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nstextview/1449347-initwithframe?language=objc +func NewTextViewWithFrameTextContainer(frameRect foundation.Rect, container ITextContainer) TextView { + instance := TextViewClass.Alloc().InitWithFrameTextContainer(frameRect, container) instance.Autorelease() return instance } -// 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:"), objc.Ptr(event), mouseOffset, slideBack) +func (t_ TextView) InitWithFrame(frameRect foundation.Rect) TextView { + rv := objc.Call[TextView](t_, objc.Sel("initWithFrame:"), frameRect) return rv } -// Brings forward a panel allowing the user to manipulate links in the text view. [Full Topic] +// Initializes a text view. [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/1449262-initwithframe?language=objc +func NewTextViewWithFrame(frameRect foundation.Rect) TextView { + instance := TextViewClass.Alloc().InitWithFrame(frameRect) + instance.Autorelease() + return instance } -// [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")) +func (tc _TextViewClass) FieldEditor() TextView { + rv := objc.Call[TextView](tc, objc.Sel("fieldEditor")) return rv } // [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/2990525-fieldeditor?language=objc +func TextView_FieldEditor() TextView { + return TextViewClass.FieldEditor() } -// 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) +func (tc _TextViewClass) Alloc() TextView { + rv := objc.Call[TextView](tc, objc.Sel("alloc")) return rv } -// 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/1449353-toggleautomaticlinkdetection?language=objc -func (t_ TextView) ToggleAutomaticLinkDetection(sender objc.IObject) { - objc.Call[objc.Void](t_, objc.Sel("toggleAutomaticLinkDetection:"), sender) -} - -// 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/1449144-usestandardligatures?language=objc -func (t_ TextView) UseStandardLigatures(sender objc.IObject) { - objc.Call[objc.Void](t_, objc.Sel("useStandardLigatures:"), sender) -} - -// 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/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) +func (tc _TextViewClass) New() TextView { + rv := objc.Call[TextView](tc, objc.Sel("new")) + rv.Autorelease() return rv } -// Sends out necessary notifications when a text change completes. [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")) -} - -// Sets the selection to a range of characters in response to user action. [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) -} - -// Sets the alignment of the paragraphs containing 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_) -} - -// 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/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 +func NewTextView() TextView { + return TextViewClass.New() } -// [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) +func (t_ TextView) Init() TextView { + rv := objc.Call[TextView](t_, objc.Sel("init")) return rv } -// Changes the state of smart insert and delete from enabled to disabled and vice versa. [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/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/1449213-useallligatures?language=objc +func (t_ TextView) UseAllLigatures(sender objc.IObject) { + objc.Call[objc.Void](t_, objc.Sel("useAllLigatures:"), sender) } // Causes a temporary highlighting effect to appear around the visible portion (or portions) of the specified range. [Full Topic] @@ -374,272 +286,193 @@ func (t_ TextView) ShowFindIndicatorForRange(charRange foundation.Range) { objc.Call[objc.Void](t_, objc.Sel("showFindIndicatorForRange:"), charRange) } -// 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/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] +// 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/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 +// [Full Topic]: https://developer.apple.com/documentation/appkit/nstextview/1449544-smartinsertforstring?language=objc +func (t_ TextView) SmartInsertForStringReplacingRangeBeforeStringAfterString(pasteString string, charRangeToReplace foundation.Range, beforeString string, afterString string) { + objc.Call[objc.Void](t_, objc.Sel("smartInsertForString:replacingRange:beforeString:afterString:"), pasteString, charRangeToReplace, beforeString, afterString) } -// Informs the receiver that it should begin coalescing successive typing operations in a new undo grouping. [Full Topic] +// Performs the default text checking on the current selection. [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/1449382-checktextinselection?language=objc +func (t_ TextView) CheckTextInSelection(sender objc.IObject) { + objc.Call[objc.Void](t_, objc.Sel("checkTextInSelection:"), sender) } -// Sets the color of the selected text. [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/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/1449438-orderfrontspacingpanel?language=objc +func (t_ TextView) OrderFrontSpacingPanel(sender objc.IObject) { + objc.Call[objc.Void](t_, objc.Sel("orderFrontSpacingPanel:"), sender) } -// Brings forward a panel allowing the user to specify string substitutions in the text view. [Full Topic] +// Stops the speaking of text. [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/1449172-stopspeaking?language=objc +func (t_ TextView) StopSpeaking(sender objc.IObject) { + objc.Call[objc.Void](t_, objc.Sel("stopSpeaking:"), sender) } -// Returns an appropriate drag image for the drag initiated by the specified event. [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/1449423-dragimageforselectionwithevent?language=objc -func (t_ TextView) DragImageForSelectionWithEventOrigin(event IEvent, origin foundation.PointPointer) Image { - rv := objc.Call[Image](t_, objc.Sel("dragImageForSelectionWithEvent:origin:"), objc.Ptr(event), origin) +// [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:"), objc.Ptr(pboard), types) 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] +// Writes the current selection to the specified pasteboard using the given type. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nstextview/1449467-smartinsertafterstringforstring?language=objc -func (t_ TextView) SmartInsertAfterStringForStringReplacingRange(pasteString string, charRangeToReplace foundation.Range) string { - rv := objc.Call[string](t_, objc.Sel("smartInsertAfterStringForString:replacingRange:"), pasteString, charRangeToReplace) +// [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:"), objc.Ptr(pboard), type_) return rv } -// 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] +// 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/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/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 } -// Notifies the QuickLook panel that an update may be required. [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")) -} - -// 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/1449181-updatedragtyperegistration?language=objc -func (t_ TextView) UpdateDragTypeRegistration() { - objc.Call[objc.Void](t_, objc.Sel("updateDragTypeRegistration")) -} - -// 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/1449493-setspellingstate?language=objc -func (t_ TextView) SetSpellingStateRange(value int, charRange foundation.Range) { - objc.Call[objc.Void](t_, objc.Sel("setSpellingState:range:"), value, charRange) -} - -// Handles the text checking results returned by the text view [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, objc.Ptr(orthography), wordCount) -} - -// Draws the background of 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) -} - -// 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/1449213-useallligatures?language=objc -func (t_ TextView) UseAllLigatures(sender objc.IObject) { - objc.Call[objc.Void](t_, objc.Sel("useAllLigatures:"), sender) -} - -// Toggles the state of the automatic spelling correction. [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) -} - -// Decreases the space between glyphs in the receiver’s selection, or for all glyphs if the receiver is a plain text view. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nstextview/1449137-tightenkerning?language=objc -func (t_ TextView) TightenKerning(sender objc.IObject) { - objc.Call[objc.Void](t_, objc.Sel("tightenKerning:"), sender) -} - -// Toggles whether continuous spell checking is enabled for the receiver. [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) -} - -// Toggles the state of the automatic data detection. [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/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/1449268-updateinsertionpointstateandrest?language=objc +func (t_ TextView) UpdateInsertionPointStateAndRestartTimer(restartFlag bool) { + objc.Call[objc.Void](t_, objc.Sel("updateInsertionPointStateAndRestartTimer:"), restartFlag) } -// Returns an adjusted selected range based on the selection granularity. [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/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) +// [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:"), objc.Ptr(event), origin) return rv } -// Check and replace the text in the range using the specified checking types and options. [Full Topic] +// Toggles whether continuous spell checking is enabled for the receiver. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nstextview/1449240-checktextinrange?language=objc -func (t_ TextView) 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/nstextview/1449471-togglecontinuousspellchecking?language=objc +func (t_ TextView) ToggleContinuousSpellChecking(sender objc.IObject) { + objc.Call[objc.Void](t_, objc.Sel("toggleContinuousSpellChecking:"), sender) } -// 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 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/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/1449493-setspellingstate?language=objc +func (t_ TextView) SetSpellingStateRange(value int, charRange foundation.Range) { + objc.Call[objc.Void](t_, objc.Sel("setSpellingState:range:"), value, charRange) } -// 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] +// Draws the background of the text view. [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/1449135-drawviewbackgroundinrect?language=objc +func (t_ TextView) DrawViewBackgroundInRect(rect foundation.Rect) { + objc.Call[objc.Void](t_, objc.Sel("drawViewBackgroundInRect:"), rect) } -// 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] +// Toggles the state of the automatic data detection. [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) - return rv +// [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) } -// Attempts to set the frame size as if by user action. [Full Topic] +// 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] // -// [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/1449467-smartinsertafterstringforstring?language=objc +func (t_ TextView) SmartInsertAfterStringForStringReplacingRange(pasteString string, charRangeToReplace foundation.Range) string { + rv := objc.Call[string](t_, objc.Sel("smartInsertAfterStringForString:replacingRange:"), pasteString, charRangeToReplace) + return rv } -// Brings forward a panel allowing the user to manipulate text tables in the text view. [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/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/1449536-setalignment?language=objc +func (t_ TextView) SetAlignmentRange(alignment TextAlignment, range_ foundation.Range) { + objc.Call[objc.Void](t_, objc.Sel("setAlignment:range:"), alignment, range_) } -// Invalidates the calculated origin of the text container. [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/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/1449444-toggleautomaticquotesubstitution?language=objc +func (t_ TextView) ToggleAutomaticQuoteSubstitution(sender objc.IObject) { + objc.Call[objc.Void](t_, objc.Sel("toggleAutomaticQuoteSubstitution:"), sender) } -// Increases the space between glyphs in the receiver’s selection, or in all text if the receiver is a plain text view. [Full Topic] +// Changes the receiver's layout orientation and invalidates the contents. [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/1449483-setlayoutorientation?language=objc +func (t_ TextView) SetLayoutOrientation(orientation TextLayoutOrientation) { + objc.Call[objc.Void](t_, objc.Sel("setLayoutOrientation:"), orientation) } -// Performs the default text checking on the entire document. [Full Topic] +// Invokes completion in a text view. [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/1449359-complete?language=objc +func (t_ TextView) Complete(sender objc.IObject) { + objc.Call[objc.Void](t_, objc.Sel("complete:"), sender) } -// Reads the text view’s preferred type of data from the specified pasteboard. [Full Topic] +// [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:"), objc.Ptr(pboard)) +// [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 } -// 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/2990528-scrollableplaindocumentcontentte?language=objc +func TextView_ScrollablePlainDocumentContentTextView() ScrollView { + return TextViewClass.ScrollablePlainDocumentContentTextView() } -// Creates and displays a new instance of the sharing service picker. [Full Topic] +// Inserts the selected completion into the text at the appropriate location. [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/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) } -// Toggles the state of the automatic dash substitution. [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/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/1449442-orderfronttablepanel?language=objc +func (t_ TextView) OrderFrontTablePanel(sender objc.IObject) { + objc.Call[objc.Void](t_, objc.Sel("orderFrontTablePanel:"), sender) } -// Adds the outline attribute to the selected text attributes if absent; removes the attribute if present. [Full Topic] +// Decreases the space between glyphs in the receiver’s selection, or for all glyphs if the receiver is a plain text view. [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/1449137-tightenkerning?language=objc +func (t_ TextView) TightenKerning(sender objc.IObject) { + objc.Call[objc.Void](t_, objc.Sel("tightenKerning:"), sender) } -// Inserts the contents of the pasteboard into the receiver’s text as plain text. [Full Topic] +// Returns whatever type on the pasteboard would be most preferred for copying data. [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/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 } -// Replaces text in the range you specify with the attributed string you provide. [Full Topic] +// Check and replace the text in the range using the specified checking types and options. [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_, objc.Ptr(attributedString)) - return rv +// [Full Topic]: https://developer.apple.com/documentation/appkit/nstextview/1449240-checktextinrange?language=objc +func (t_ TextView) 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) } -// Changes the receiver's layout orientation and invalidates the contents. [Full Topic] +// [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/2544833-updatecandidates?language=objc +func (t_ TextView) UpdateCandidates() { + objc.Call[objc.Void](t_, objc.Sel("updateCandidates")) } // Returns the type of drag operation that should be performed if the image were released now. [Full Topic] @@ -659,11 +492,18 @@ func (t_ TextView) DragOperationForDraggingInfoObjectType(dragInfoObject objc.IO return rv } -// Performs the default text checking on the current selection. [Full Topic] +// Notifies the QuickLook panel that an update may be required. [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/1449409-updatequicklookpreviewpanel?language=objc +func (t_ TextView) UpdateQuickLookPreviewPanel() { + objc.Call[objc.Void](t_, objc.Sel("updateQuickLookPreviewPanel")) +} + +// Toggles the state of the automatic spelling correction. [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] @@ -673,39 +513,11 @@ func (t_ TextView) UpdateTouchBarItemIdentifiers() { objc.Call[objc.Void](t_, objc.Sel("updateTouchBarItemIdentifiers")) } -// 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/1449349-orderfrontlistpanel?language=objc -func (t_ TextView) OrderFrontListPanel(sender objc.IObject) { - objc.Call[objc.Void](t_, objc.Sel("orderFrontListPanel:"), sender) -} - -// 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/1449523-rulerview?language=objc -func (t_ TextView) RulerViewDidAddMarker(ruler IRulerView, marker IRulerMarker) { - objc.Call[objc.Void](t_, objc.Sel("rulerView:didAddMarker:"), objc.Ptr(ruler), objc.Ptr(marker)) -} - -// Inserts the selected completion into the text at the appropriate location. [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) -} - -// Invokes completion in a text view. [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) -} - -// 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] +// Marks the receiver as requiring display. [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/1449279-setneedsdisplayinrect?language=objc +func (t_ TextView) SetNeedsDisplayInRectAvoidAdditionalLayout(rect foundation.Rect, flag bool) { + objc.Call[objc.Void](t_, objc.Sel("setNeedsDisplayInRect:avoidAdditionalLayout:"), rect, flag) } // Applies full justification to selected paragraphs (or all text, if the receiver is a plain text object). [Full Topic] @@ -715,6 +527,13 @@ func (t_ TextView) AlignJustified(sender objc.IObject) { objc.Call[objc.Void](t_, objc.Sel("alignJustified:"), 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] +// +// [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) +} + // 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 @@ -722,63 +541,33 @@ func (t_ TextView) PasteAsRichText(sender objc.IObject) { objc.Call[objc.Void](t_, objc.Sel("pasteAsRichText:"), sender) } -// [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")) -} - -// An action method that sets the layout orientation of the text. [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/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/1449198-raisebaseline?language=objc +func (t_ TextView) RaiseBaseline(sender objc.IObject) { + objc.Call[objc.Void](t_, objc.Sel("raiseBaseline:"), sender) } // [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")) +// [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 } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nstextview/2990528-scrollableplaindocumentcontentte?language=objc -func TextView_ScrollablePlainDocumentContentTextView() ScrollView { - return TextViewClass.ScrollablePlainDocumentContentTextView() -} - -// 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/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 -} - -// 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/1449544-smartinsertforstring?language=objc -func (t_ TextView) SmartInsertForStringReplacingRangeBeforeStringAfterString(pasteString string, charRangeToReplace foundation.Range, beforeString string, afterString string) { - objc.Call[objc.Void](t_, objc.Sel("smartInsertForString:replacingRange:beforeString:afterString:"), pasteString, charRangeToReplace, beforeString, afterString) -} - -// Writes the current selection to the specified pasteboard under each given type. [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:"), objc.Ptr(pboard), types) - return rv +// [Full Topic]: https://developer.apple.com/documentation/appkit/nstextview/2990527-scrollabledocumentcontenttextvie?language=objc +func TextView_ScrollableDocumentContentTextView() ScrollView { + return TextViewClass.ScrollableDocumentContentTextView() } -// 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/1449464-turnoffkerning?language=objc -func (t_ TextView) TurnOffKerning(sender objc.IObject) { - objc.Call[objc.Void](t_, objc.Sel("turnOffKerning:"), sender) +// 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/1449353-toggleautomaticlinkdetection?language=objc +func (t_ TextView) ToggleAutomaticLinkDetection(sender objc.IObject) { + objc.Call[objc.Void](t_, objc.Sel("toggleAutomaticLinkDetection:"), sender) } // An action method used to set the background color. [Full Topic] @@ -788,46 +577,46 @@ func (t_ TextView) ChangeDocumentBackgroundColor(sender objc.IObject) { objc.Call[objc.Void](t_, objc.Sel("changeDocumentBackgroundColor:"), sender) } -// Draws or erases the insertion point. [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/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, objc.Ptr(color), flag) +// [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) } -// Stops the speaking of 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/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/1449273-togglesmartinsertdelete?language=objc +func (t_ TextView) ToggleSmartInsertDelete(sender objc.IObject) { + objc.Call[objc.Void](t_, objc.Sel("toggleSmartInsertDelete:"), 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] +// 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/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/1449464-turnoffkerning?language=objc +func (t_ TextView) TurnOffKerning(sender objc.IObject) { + objc.Call[objc.Void](t_, objc.Sel("turnOffKerning:"), 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] +// Performs the default text checking on the entire document. [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/1449440-checktextindocument?language=objc +func (t_ TextView) CheckTextInDocument(sender objc.IObject) { + objc.Call[objc.Void](t_, objc.Sel("checkTextInDocument:"), sender) } -// [Full Topic] +// Invalidates the calculated origin of the text container. [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/1449546-invalidatetextcontainerorigin?language=objc +func (t_ TextView) InvalidateTextContainerOrigin() { + objc.Call[objc.Void](t_, objc.Sel("invalidateTextContainerOrigin")) } -// Changes the state of automatic quotation mark substitution from enabled to disabled and vice versa. [Full Topic] +// Speaks the selected text, or all text if no selection. [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/1449519-startspeaking?language=objc +func (t_ TextView) StartSpeaking(sender objc.IObject) { + objc.Call[objc.Void](t_, objc.Sel("startSpeaking:"), 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] @@ -837,68 +626,70 @@ func (t_ TextView) LowerBaseline(sender objc.IObject) { objc.Call[objc.Void](t_, objc.Sel("lowerBaseline:"), sender) } -// [Full Topic] +// Handles the text checking results returned by the text view [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/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, objc.Ptr(orthography), wordCount) } -// [Full Topic] +// Sets the color of the selected text. [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/1449282-changecolor?language=objc +func (t_ TextView) ChangeColor(sender objc.IObject) { + objc.Call[objc.Void](t_, objc.Sel("changeColor:"), sender) } -// Updates the ruler view in the receiver’s enclosing scroll view to reflect the selection’s paragraph and marker attributes. [Full Topic] +// Sends out necessary notifications when a text change completes. [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/1449296-didchangetext?language=objc +func (t_ TextView) DidChangeText() { + objc.Call[objc.Void](t_, objc.Sel("didChangeText")) } -// 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] +// 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/1449479-replacetextcontainer?language=objc -func (t_ TextView) ReplaceTextContainer(newContainer ITextContainer) { - objc.Call[objc.Void](t_, objc.Sel("replaceTextContainer:"), objc.Ptr(newContainer)) +// [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 } -// Changes the attributes of the current selection. [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/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/1449384-breakundocoalescing?language=objc +func (t_ TextView) BreakUndoCoalescing() { + objc.Call[objc.Void](t_, objc.Sel("breakUndoCoalescing")) } -// Sets the base writing direction of a range of text. [Full Topic] +// Draws or erases the insertion point. [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/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, objc.Ptr(color), flag) } -// Marks the receiver as requiring display. [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/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/1449393-togglegrammarchecking?language=objc +func (t_ TextView) ToggleGrammarChecking(sender objc.IObject) { + objc.Call[objc.Void](t_, objc.Sel("toggleGrammarChecking:"), sender) } -// Performs a find panel action specified by the sender's tag. [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/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/1449469-readselectionfrompasteboard?language=objc +func (t_ TextView) ReadSelectionFromPasteboard(pboard IPasteboard) bool { + rv := objc.Call[bool](t_, objc.Sel("readSelectionFromPasteboard:"), objc.Ptr(pboard)) + return rv } -// Updates the Font panel to contain the font attributes of the selection. [Full Topic] +// Creates and displays a new instance of the sharing service picker. [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/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 } // 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] @@ -909,6 +700,41 @@ func (t_ TextView) SmartDeleteRangeForProposedRange(proposedCharRange foundation return rv } +// 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/1449323-updateruler?language=objc +func (t_ TextView) UpdateRuler() { + objc.Call[objc.Void](t_, objc.Sel("updateRuler")) +} + +// 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/1449183-loosenkerning?language=objc +func (t_ TextView) LoosenKerning(sender objc.IObject) { + objc.Call[objc.Void](t_, objc.Sel("loosenKerning:"), sender) +} + +// Sets the selection to a range of characters in response to user action. [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) +} + +// 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/1449181-updatedragtyperegistration?language=objc +func (t_ TextView) UpdateDragTypeRegistration() { + objc.Call[objc.Void](t_, objc.Sel("updateDragTypeRegistration")) +} + +// Toggles the state of the automatic text replacement. [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) +} + // Registers send and return types for the Services facility. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/appkit/nstextview/1449507-registerforservices?language=objc @@ -923,18 +749,39 @@ func TextView_RegisterForServices() { TextViewClass.RegisterForServices() } -// Changes the state of grammar checking from enabled to disabled and vice versa. [Full Topic] +// Performs a find panel action specified by the sender's tag. [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/1449525-performfindpanelaction?language=objc +func (t_ TextView) PerformFindPanelAction(sender objc.IObject) { + objc.Call[objc.Void](t_, objc.Sel("performFindPanelAction:"), sender) } -// Releases the drag information still existing after the dragging session has completed. [Full Topic] +// An action method that sets the layout orientation of the text. [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/1449286-changelayoutorientation?language=objc +func (t_ TextView) ChangeLayoutOrientation(sender objc.IObject) { + objc.Call[objc.Void](t_, objc.Sel("changeLayoutOrientation:"), sender) +} + +// Toggles the state of the automatic dash substitution. [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) +} + +// Attempts to set the frame size as if by user action. [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) +} + +// 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/1449491-usestandardkerning?language=objc +func (t_ TextView) UseStandardKerning(sender objc.IObject) { + objc.Call[objc.Void](t_, objc.Sel("useStandardKerning:"), 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] @@ -945,157 +792,214 @@ func (t_ TextView) CharacterIndexForInsertionAtPoint(point foundation.Point) uin return rv } -// Updates the insertion point’s location and optionally restarts the blinking cursor timer. [Full Topic] +// Reads data of the given type from the specified pasteboard. [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/1449190-readselectionfrompasteboard?language=objc +func (t_ TextView) ReadSelectionFromPasteboardType(pboard IPasteboard, type_ PasteboardType) bool { + rv := objc.Call[bool](t_, objc.Sel("readSelectionFromPasteboard:type:"), objc.Ptr(pboard), type_) + return rv +} + +// [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] +// +// [Full Topic]: https://developer.apple.com/documentation/appkit/nstextview/2990529-scrollabletextview?language=objc +func TextView_ScrollableTextView() ScrollView { + return TextViewClass.ScrollableTextView() +} + +// 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/1449349-orderfrontlistpanel?language=objc +func (t_ TextView) OrderFrontListPanel(sender objc.IObject) { + objc.Call[objc.Void](t_, objc.Sel("orderFrontListPanel:"), sender) +} + +// [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 +} + +// 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:"), objc.Ptr(event), mouseOffset, slideBack) + return rv +} + +// Changes the attributes of the current selection. [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) +} + +// 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/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) } -// The manager that lays out text for the receiver’s text container. [Full Topic] +// 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/3824763-textlayoutmanager?language=objc -func (t_ TextView) TextLayoutManager() TextLayoutManager { - rv := objc.Call[TextLayoutManager](t_, objc.Sel("textLayoutManager")) - return rv +// [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) } -// The receiver’s default paragraph style. [Full Topic] +// Returns an adjusted selected range based on the selection granularity. [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")) +// [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 } -// The receiver’s default paragraph style. [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/1449271-defaultparagraphstyle?language=objc -func (t_ TextView) SetDefaultParagraphStyle(value IParagraphStyle) { - objc.Call[objc.Void](t_, objc.Sel("setDefaultParagraphStyle:"), objc.Ptr(value)) +// [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 } -// A Boolean value that enables or disables automatic link detection. [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/1449170-automaticlinkdetectionenabled?language=objc -func (t_ TextView) IsAutomaticLinkDetectionEnabled() bool { - rv := objc.Call[bool](t_, objc.Sel("isAutomaticLinkDetectionEnabled")) - return rv +// [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) } -// A Boolean value that enables or disables automatic link detection. [Full Topic] +// Replaces text in the range you specify with the attributed string you provide. [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/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_, objc.Ptr(attributedString)) + return rv } -// Indicates whether image attachments should permit editing of their images. [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/1449425-allowsimageediting?language=objc -func (t_ TextView) AllowsImageEditing() bool { - rv := objc.Call[bool](t_, objc.Sel("allowsImageEditing")) +// [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 } -// Indicates whether image attachments should permit editing of their images. [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/1449425-allowsimageediting?language=objc -func (t_ TextView) SetAllowsImageEditing(value bool) { - objc.Call[objc.Void](t_, objc.Sel("setAllowsImageEditing:"), value) +// [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 } -// A Boolean value that indicates whether the framework should use adaptive color mapping for dark appearance. [Full Topic] +// Sets the base writing direction of a range of text. [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")) - 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_) } -// A Boolean value that indicates whether the framework should use adaptive color mapping for dark appearance. [Full Topic] +// [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/2544676-updatetexttouchbaritems?language=objc +func (t_ TextView) UpdateTextTouchBarItems() { + objc.Call[objc.Void](t_, objc.Sel("updateTextTouchBarItems")) } -// A Boolean value that indicates whether automatic text replacement is enabled. [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/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/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 } -// A Boolean value that indicates whether automatic text replacement is enabled. [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/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/1449401-updatefontpanel?language=objc +func (t_ TextView) UpdateFontPanel() { + objc.Call[objc.Void](t_, objc.Sel("updateFontPanel")) } -// [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/1449357-usesrolloverbuttonforselection?language=objc -func (t_ TextView) UsesRolloverButtonForSelection() bool { - rv := objc.Call[bool](t_, objc.Sel("usesRolloverButtonForSelection")) - return rv +// [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] +// 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/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/1449479-replacetextcontainer?language=objc +func (t_ TextView) ReplaceTextContainer(newContainer ITextContainer) { + objc.Call[objc.Void](t_, objc.Sel("replaceTextContainer:"), objc.Ptr(newContainer)) } -// A Boolean value that determines whether the receiver should draw its insertion point. [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/1449152-shoulddrawinsertionpoint?language=objc -func (t_ TextView) ShouldDrawInsertionPoint() bool { - rv := objc.Call[bool](t_, objc.Sel("shouldDrawInsertionPoint")) - return rv +// [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] +// 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/2269433-stronglyreferencestextstorage?language=objc -func (tc _TextViewClass) StronglyReferencesTextStorage() bool { - rv := objc.Call[bool](tc, objc.Sel("stronglyReferencesTextStorage")) - return rv +// [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] +// 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/2269433-stronglyreferencestextstorage?language=objc -func TextView_StronglyReferencesTextStorage() bool { - return TextViewClass.StronglyReferencesTextStorage() +// [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) } -// A Boolean value that enables and disables automatic quotation mark substitution. [Full Topic] +// Enables and disables grammar checking. [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")) +// [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 } -// A Boolean value that enables and disables automatic quotation mark substitution. [Full Topic] +// Enables and disables grammar checking. [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) +// [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 tag identifying the text view's text as a document for the spell checker server. [Full Topic] +// A Boolean value that indicates whether automatic text replacement is enabled. [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/1449210-automatictextreplacementenabled?language=objc +func (t_ TextView) IsAutomaticTextReplacementEnabled() bool { + rv := objc.Call[bool](t_, objc.Sel("isAutomaticTextReplacementEnabled")) return rv } +// A Boolean value that indicates whether automatic text replacement is enabled. [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) +} + // The range of characters affected by an action method that changes paragraph (not character) attributes. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/appkit/nstextview/1449252-rangeforuserparagraphattributech?language=objc @@ -1104,97 +1008,90 @@ func (t_ TextView) RangeForUserParagraphAttributeChange() foundation.Range { return rv } -// The color of the insertion point. [Full Topic] +// The attributes used to draw the onscreen presentation of link text. [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/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 } -// The color of the insertion point. [Full Topic] +// The attributes used to draw the onscreen presentation of link text. [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:"), objc.Ptr(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) } -// The default text checking types. [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/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/1449161-rangesforuserparagraphattributec?language=objc +func (t_ TextView) RangesForUserParagraphAttributeChange() []foundation.Value { + rv := objc.Call[[]foundation.Value](t_, objc.Sel("rangesForUserParagraphAttributeChange")) return rv } -// The default text checking types. [Full Topic] +// The selection granularity for subsequent extension of a selection. [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/1449165-selectiongranularity?language=objc +func (t_ TextView) SelectionGranularity() SelectionGranularity { + rv := objc.Call[SelectionGranularity](t_, objc.Sel("selectionGranularity")) + return rv } -// The range of characters affected by a method that changes characters (as opposed to attributes). [Full Topic] +// The selection granularity for subsequent extension of a selection. [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")) - 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) } -// The attributes used to indicate the selection. [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/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/3824763-textlayoutmanager?language=objc +func (t_ TextView) TextLayoutManager() TextLayoutManager { + rv := objc.Call[TextLayoutManager](t_, objc.Sel("textLayoutManager")) return rv } -// The attributes used to indicate the selection. [Full Topic] +// The receiver’s default paragraph style. [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) +// [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 } -// A Boolean value that indicates whether the text view supplies autocompletion suggestions as the user types. [Full Topic] +// The receiver’s default paragraph style. [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/1449271-defaultparagraphstyle?language=objc +func (t_ TextView) SetDefaultParagraphStyle(value IParagraphStyle) { + objc.Call[objc.Void](t_, objc.Sel("setDefaultParagraphStyle:"), objc.Ptr(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 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/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/1449204-displayslinktooltips?language=objc +func (t_ TextView) DisplaysLinkToolTips() bool { + rv := objc.Call[bool](t_, objc.Sel("displaysLinkToolTips")) + return rv } -// The pasteboard types that can be provided from the current selection. [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/1449222-writablepasteboardtypes?language=objc -func (t_ TextView) WritablePasteboardTypes() []PasteboardType { - rv := objc.Call[[]PasteboardType](t_, objc.Sel("writablePasteboardTypes")) - return rv +// [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) } -// The empty space the receiver leaves around its associated text container. [Full Topic] +// The types this text view can read immediately from the pasteboard. [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")) +// [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 } -// 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 @@ -1203,104 +1100,98 @@ func (t_ TextView) IsCoalescingUndo() bool { 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] +// Indicates whether image attachments should permit editing of their images. [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")) +// [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 } -// An array of locale identifiers representing input sources that are allowed to be enabled when the receiver has the keyboard focus. [Full Topic] +// Indicates whether image attachments should permit editing of their images. [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) +// [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) } -// An array containing the ranges of characters affected by a method that changes paragraph (not character) attributes. [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/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/1449456-usesfindbar?language=objc +func (t_ TextView) UsesFindBar() bool { + rv := objc.Call[bool](t_, objc.Sel("usesFindBar")) return rv } -// [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/2544680-allowscharacterpickertouchbarite?language=objc -func (t_ TextView) AllowsCharacterPickerTouchBarItem() bool { - rv := objc.Call[bool](t_, objc.Sel("allowsCharacterPickerTouchBarItem")) - return rv +// [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] +// The pasteboard types that can be provided from the current selection. [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/1449222-writablepasteboardtypes?language=objc +func (t_ TextView) WritablePasteboardTypes() []PasteboardType { + rv := objc.Call[[]PasteboardType](t_, objc.Sel("writablePasteboardTypes")) + return rv } -// The receiver’s text container. [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/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/1449315-rangeforusertextchange?language=objc +func (t_ TextView) RangeForUserTextChange() foundation.Range { + rv := objc.Call[foundation.Range](t_, objc.Sel("rangeForUserTextChange")) return rv } -// The receiver’s text container. [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/1449364-textcontainer?language=objc -func (t_ TextView) SetTextContainer(value ITextContainer) { - objc.Call[objc.Void](t_, objc.Sel("setTextContainer:"), objc.Ptr(value)) +// [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 } -// A Boolean value that indicates whether the receiver accepts the glyph info attribute. [Full Topic] +// The default text checking types. [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/1449529-enabledtextcheckingtypes?language=objc +func (t_ TextView) EnabledTextCheckingTypes() foundation.TextCheckingTypes { + rv := objc.Call[foundation.TextCheckingTypes](t_, objc.Sel("enabledTextCheckingTypes")) return rv } -// A Boolean value that indicates whether the receiver accepts the glyph info attribute. [Full Topic] +// The default text checking types. [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/1449529-enabledtextcheckingtypes?language=objc +func (t_ TextView) SetEnabledTextCheckingTypes(value foundation.TextCheckingTypes) { + objc.Call[objc.Void](t_, objc.Sel("setEnabledTextCheckingTypes:"), value) } -// A Boolean value that indicates whether the receiver allows for a find panel. [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/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/3237223-usesadaptivecolormappingfordarka?language=objc +func (t_ TextView) UsesAdaptiveColorMappingForDarkAppearance() bool { + rv := objc.Call[bool](t_, objc.Sel("usesAdaptiveColorMappingForDarkAppearance")) return rv } -// A Boolean value that indicates whether the receiver allows for a find panel. [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/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/3237223-usesadaptivecolormappingfordarka?language=objc +func (t_ TextView) SetUsesAdaptiveColorMappingForDarkAppearance(value bool) { + objc.Call[objc.Void](t_, objc.Sel("setUsesAdaptiveColorMappingForDarkAppearance:"), value) } -// A Boolean value that indicates whether automatic dash substitution is enabled. [Full Topic] +// 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/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/1449513-spellcheckerdocumenttag?language=objc +func (t_ TextView) SpellCheckerDocumentTag() int { + rv := objc.Call[int](t_, objc.Sel("spellCheckerDocumentTag")) return rv } -// A Boolean value that indicates whether automatic dash substitution is enabled. [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) -} - // 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/1449329-rangeforusercompletion?language=objc @@ -1309,11 +1200,41 @@ func (t_ TextView) RangeForUserCompletion() foundation.Range { return rv } -// The layout manager that lays out text for the receiver’s text container. [Full Topic] +// A Boolean value that indicates whether automatic data detection is enabled. [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")) +// [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 +} + +// A Boolean value that indicates whether automatic data detection 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) +} + +// 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) SelectedTextAttributes() map[foundation.AttributedStringKey]objc.Object { + rv := objc.Call[map[foundation.AttributedStringKey]objc.Object](t_, objc.Sel("selectedTextAttributes")) + 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] +// +// [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 } @@ -1332,59 +1253,67 @@ func (t_ TextView) SetSmartInsertDeleteEnabled(value bool) { objc.Call[objc.Void](t_, objc.Sel("setSmartInsertDeleteEnabled:"), value) } -// A Boolean value that indicates whether incremental searching is enabled. [Full Topic] +// [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/2544680-allowscharacterpickertouchbarite?language=objc +func (t_ TextView) AllowsCharacterPickerTouchBarItem() bool { + rv := objc.Call[bool](t_, objc.Sel("allowsCharacterPickerTouchBarItem")) return rv } -// A Boolean value that indicates whether incremental searching is enabled. [Full Topic] +// [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/2544680-allowscharacterpickertouchbarite?language=objc +func (t_ TextView) SetAllowsCharacterPickerTouchBarItem(value bool) { + objc.Call[objc.Void](t_, objc.Sel("setAllowsCharacterPickerTouchBarItem:"), value) } -// A Boolean value that controls whether the text views sharing the receiver’s layout manager use a ruler. [Full Topic] +// The receiver’s typing 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/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 controls whether the text views sharing the receiver’s layout manager use a ruler. [Full Topic] +// The receiver’s typing attributes. [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) +// [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) } -// A Boolean value that indicates whether automatic data detection is enabled. [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/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/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 indicates whether automatic data detection is enabled. [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/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/1449234-acceptabledragtypes?language=objc +func (t_ TextView) AcceptableDragTypes() []PasteboardType { + rv := objc.Call[[]PasteboardType](t_, objc.Sel("acceptableDragTypes")) + return rv } -// An array containing the ranges of characters affected by an action method that changes character (not paragraph) 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/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/1449218-usesruler?language=objc +func (t_ TextView) UsesRuler() bool { + rv := objc.Call[bool](t_, objc.Sel("usesRuler")) 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 @@ -1393,57 +1322,56 @@ func (t_ TextView) RangeForUserCharacterAttributeChange() foundation.Range { 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] +// The color of the insertion point. [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")) +// [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 } -// 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 color of the insertion point. [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/1449309-insertionpointcolor?language=objc +func (t_ TextView) SetInsertionPointColor(value IColor) { + objc.Call[objc.Void](t_, objc.Sel("setInsertionPointColor:"), objc.Ptr(value)) } -// A Boolean value that controls whether the scroll view enclosing text views sharing the receiver’s layout manager displays the ruler. [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/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/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 receiver has continuous spell checking enabled. [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/1449430-continuousspellcheckingenabled?language=objc -func (t_ TextView) IsContinuousSpellCheckingEnabled() bool { - rv := objc.Call[bool](t_, objc.Sel("isContinuousSpellCheckingEnabled")) - 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 receiver has continuous spell checking 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/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/1449254-automaticspellingcorrectionenabl?language=objc +func (t_ TextView) IsAutomaticSpellingCorrectionEnabled() bool { + rv := objc.Call[bool](t_, objc.Sel("isAutomaticSpellingCorrectionEnabled")) + return rv } -// An array containing the ranges of characters affected by a method that changes characters (as opposed to attributes). [Full Topic] +// A Boolean value that indicates whether automatic spelling correction is enabled. [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")) - return rv +// [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) } -// The types this text view can read immediately from the pasteboard. [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/1449361-readablepasteboardtypes?language=objc -func (t_ TextView) ReadablePasteboardTypes() []PasteboardType { - rv := objc.Call[[]PasteboardType](t_, objc.Sel("readablePasteboardTypes")) - 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) } // An array containing the ranges of characters selected in the receiver’s layout manager. [Full Topic] @@ -1469,87 +1397,87 @@ func (t_ TextView) TextStorage() TextStorage { return rv } -// A Boolean value that indicates whether the receiver allows its background color to change. [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/1449397-allowsdocumentbackgroundcolorcha?language=objc -func (t_ TextView) AllowsDocumentBackgroundColorChange() bool { - rv := objc.Call[bool](t_, objc.Sel("allowsDocumentBackgroundColorChange")) +// [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 the receiver allows its background color to change. [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/1449397-allowsdocumentbackgroundcolorcha?language=objc -func (t_ TextView) SetAllowsDocumentBackgroundColorChange(value bool) { - objc.Call[objc.Void](t_, objc.Sel("setAllowsDocumentBackgroundColorChange:"), value) +// [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) } -// The receiver’s typing attributes. [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/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/1449293-usesfindpanel?language=objc +func (t_ TextView) UsesFindPanel() bool { + rv := objc.Call[bool](t_, objc.Sel("usesFindPanel")) return rv } -// The receiver’s typing attributes. [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/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/1449293-usesfindpanel?language=objc +func (t_ TextView) SetUsesFindPanel(value bool) { + objc.Call[objc.Void](t_, objc.Sel("setUsesFindPanel:"), value) } -// The preferred direction of selection. [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/1449291-selectionaffinity?language=objc -func (t_ TextView) SelectionAffinity() SelectionAffinity { - rv := objc.Call[SelectionAffinity](t_, objc.Sel("selectionAffinity")) +// [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 } -// The attributes used to draw the onscreen presentation of link text. [Full Topic] +// A Boolean value that indicates whether automatic dash substitution is enabled. [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/1449403-automaticdashsubstitutionenabled?language=objc +func (t_ TextView) IsAutomaticDashSubstitutionEnabled() bool { + rv := objc.Call[bool](t_, objc.Sel("isAutomaticDashSubstitutionEnabled")) return rv } -// The attributes used to draw the onscreen presentation of link text. [Full Topic] +// A Boolean value that indicates whether automatic dash substitution is enabled. [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/1449403-automaticdashsubstitutionenabled?language=objc +func (t_ TextView) SetAutomaticDashSubstitutionEnabled(value bool) { + objc.Call[objc.Void](t_, objc.Sel("setAutomaticDashSubstitutionEnabled:"), value) } -// A Boolean value that indicates whether automatic spelling correction is enabled. [Full Topic] +// A Boolean value that indicates whether incremental searching is 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")) +// [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 } -// A Boolean value that indicates whether automatic spelling correction is enabled. [Full Topic] +// A Boolean value that indicates whether incremental searching is enabled. [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/1449458-incrementalsearchingenabled?language=objc +func (t_ TextView) SetIncrementalSearchingEnabled(value bool) { + objc.Call[objc.Void](t_, objc.Sel("setIncrementalSearchingEnabled:"), value) } -// 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/1449357-usesrolloverbuttonforselection?language=objc +func (t_ TextView) UsesRolloverButtonForSelection() bool { + rv := objc.Call[bool](t_, objc.Sel("usesRolloverButtonForSelection")) 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/1449357-usesrolloverbuttonforselection?language=objc +func (t_ TextView) SetUsesRolloverButtonForSelection(value bool) { + objc.Call[objc.Void](t_, objc.Sel("setUsesRolloverButtonForSelection:"), value) } // A Boolean value that indicates whether the receiver allows undo. [Full Topic] @@ -1582,35 +1510,34 @@ func (t_ TextView) SetMarkedTextAttributes(value map[foundation.AttributedString objc.Call[objc.Void](t_, objc.Sel("setMarkedTextAttributes:"), value) } -// The data types that the receiver accepts as the destination view of a dragging operation. [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/1449234-acceptabledragtypes?language=objc -func (t_ TextView) AcceptableDragTypes() []PasteboardType { - rv := objc.Call[[]PasteboardType](t_, objc.Sel("acceptableDragTypes")) +// [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 } -// The origin of the receiver’s text container. [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/1449477-textcontainerorigin?language=objc -func (t_ TextView) TextContainerOrigin() foundation.Point { - rv := objc.Call[foundation.Point](t_, objc.Sel("textContainerOrigin")) - return rv +// [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 Boolean value that indicates whether to use the find bar for this text view. [Full Topic] +// A Boolean value that enables or disables automatic link detection. [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/1449170-automaticlinkdetectionenabled?language=objc +func (t_ TextView) IsAutomaticLinkDetectionEnabled() bool { + rv := objc.Call[bool](t_, objc.Sel("isAutomaticLinkDetectionEnabled")) return rv } -// A Boolean value that indicates whether to use the find bar for this text view. [Full Topic] +// A Boolean value that enables or disables automatic link detection. [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/1449170-automaticlinkdetectionenabled?language=objc +func (t_ TextView) SetAutomaticLinkDetectionEnabled(value bool) { + objc.Call[objc.Void](t_, objc.Sel("setAutomaticLinkDetectionEnabled:"), value) } // The receiver’s text storage object. [Full Topic] @@ -1621,19 +1548,35 @@ func (t_ TextView) TextContentStorage() TextContentStorage { return rv } -// The selection granularity for subsequent extension of a selection. [Full Topic] +// The origin of the receiver’s text container. [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")) +// [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 selection granularity for subsequent extension of a selection. [Full Topic] +// The receiver’s text container. [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/1449364-textcontainer?language=objc +func (t_ TextView) TextContainer() TextContainer { + rv := objc.Call[TextContainer](t_, objc.Sel("textContainer")) + 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:"), objc.Ptr(value)) +} + +// The preferred direction of 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 } // A Boolean value that indicates whether this text view uses the inspector bar. [Full Topic] @@ -1650,3 +1593,78 @@ 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 984610b5..e52b4bbc 100644 --- a/macos/appkit/text_view_delegate.gen.go +++ b/macos/appkit/text_view_delegate.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package appkit @@ -12,32 +12,249 @@ 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 - UndoManagerForTextView(view TextView) foundation.IUndoManager - HasUndoManagerForTextView() bool + TextViewDoCommandBySelector(textView TextView, commandSelector objc.Selector) bool + HasTextViewDoCommandBySelector() bool // optional - TextViewCandidatesForSelectedRange(textView TextView, selectedRange foundation.Range) []objc.IObject - HasTextViewCandidatesForSelectedRange() bool + TextViewCompletionsForPartialWordRangeIndexOfSelectedItem(textView TextView, words []string, charRange foundation.Range, index *int) []string + HasTextViewCompletionsForPartialWordRangeIndexOfSelectedItem() 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 - _TextViewDidChangeTypingAttributes func(notification foundation.Notification) - _UndoManagerForTextView func(view TextView) foundation.IUndoManager - _TextViewCandidatesForSelectedRange func(textView TextView, selectedRange foundation.Range) []objc.IObject - _TextViewDidChangeSelection func(notification foundation.Notification) + _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 +} + +// 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 } @@ -55,39 +272,39 @@ func (di *TextViewDelegate) SetTextViewDidChangeTypingAttributes(f func(notifica func (di *TextViewDelegate) TextViewDidChangeTypingAttributes(notification foundation.Notification) { di._TextViewDidChangeTypingAttributes(notification) } -func (di *TextViewDelegate) HasUndoManagerForTextView() bool { - return di._UndoManagerForTextView != nil +func (di *TextViewDelegate) HasTextViewDoCommandBySelector() bool { + return di._TextViewDoCommandBySelector != nil } -// Returns the undo manager for the specified text view. [Full Topic] +// Sent to allow the delegate to perform the command for the 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.IUndoManager) { - di._UndoManagerForTextView = f +// [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 } -// Returns the undo manager for the specified text view. [Full Topic] +// Sent to allow the delegate to perform the command for the text view. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nstextviewdelegate/1449225-undomanagerfortextview?language=objc -func (di *TextViewDelegate) UndoManagerForTextView(view TextView) foundation.IUndoManager { - return di._UndoManagerForTextView(view) +// [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) } -func (di *TextViewDelegate) HasTextViewCandidatesForSelectedRange() bool { - return di._TextViewCandidatesForSelectedRange != nil +func (di *TextViewDelegate) HasTextViewCompletionsForPartialWordRangeIndexOfSelectedItem() bool { + return di._TextViewCompletionsForPartialWordRangeIndexOfSelectedItem != nil } -// Returns an array of objects that represent the elements of a selection. [Full Topic] +// Returns the actual completions for a partial word. [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.IObject) { - di._TextViewCandidatesForSelectedRange = f +// [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 } -// Returns an array of objects that represent the elements of a selection. [Full Topic] +// Returns the actual completions for a partial word. [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.IObject { - return di._TextViewCandidatesForSelectedRange(textView, selectedRange) +// [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) } func (di *TextViewDelegate) HasTextViewDidChangeSelection() bool { return di._TextViewDidChangeSelection != nil @@ -106,54 +323,624 @@ 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 +} -// A concrete type wrapper for the [PTextViewDelegate] protocol. -type TextViewDelegateWrapper struct { - TextDelegateWrapper +// 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 } -func (t_ TextViewDelegateWrapper) HasTextViewDidChangeTypingAttributes() bool { - return t_.RespondsToSelector(objc.Sel("textViewDidChangeTypingAttributes:")) +// 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 } -// Sent when a text view’s typing attributes change. [Full Topic] +// 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/1449303-textviewdidchangetypingattribute?language=objc -func (t_ TextViewDelegateWrapper) TextViewDidChangeTypingAttributes(notification foundation.INotification) { - objc.Call[objc.Void](t_, objc.Sel("textViewDidChangeTypingAttributes:"), objc.Ptr(notification)) +// [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 } -func (t_ TextViewDelegateWrapper) HasUndoManagerForTextView() bool { +// 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) + +// A concrete type for the [PTextViewDelegate] protocol. +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:"), objc.Ptr(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:"), objc.Ptr(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:"), objc.Ptr(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_ TextViewDelegateWrapper) UndoManagerForTextView(view ITextView) foundation.UndoManager { +func (t_ TextViewDelegateObject) UndoManagerForTextView(view TextView) foundation.UndoManager { rv := objc.Call[foundation.UndoManager](t_, objc.Sel("undoManagerForTextView:"), objc.Ptr(view)) return rv } -func (t_ TextViewDelegateWrapper) HasTextViewCandidatesForSelectedRange() bool { - return t_.RespondsToSelector(objc.Sel("textView:candidatesForSelectedRange:")) +func (t_ TextViewDelegateObject) HasTextViewCandidatesForSelectedRange_() bool { + return t_.RespondsToSelector(objc.Sel("textView:candidates:forSelectedRange:")) } -// Returns an array of objects that represent the elements of a selection. [Full Topic] +// Returns an array of text objects to include in a text selection. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nstextviewdelegate/2544744-textview?language=objc -func (t_ TextViewDelegateWrapper) TextViewCandidatesForSelectedRange(textView ITextView, selectedRange foundation.Range) []objc.Object { - rv := objc.Call[[]objc.Object](t_, objc.Sel("textView:candidatesForSelectedRange:"), objc.Ptr(textView), selectedRange) +// [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:"), objc.Ptr(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:"), objc.Ptr(view), po1, charIndex, objc.Ptr(pboard), type_) return rv } -func (t_ TextViewDelegateWrapper) HasTextViewDidChangeSelection() bool { +func (t_ TextViewDelegateObject) HasTextViewDidChangeTypingAttributes() bool { + return t_.RespondsToSelector(objc.Sel("textViewDidChangeTypingAttributes:")) +} + +// Sent when a text view’s typing attributes change. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/appkit/nstextviewdelegate/1449303-textviewdidchangetypingattribute?language=objc +func (t_ TextViewDelegateObject) TextViewDidChangeTypingAttributes(notification foundation.Notification) { + objc.Call[objc.Void](t_, objc.Sel("textViewDidChangeTypingAttributes:"), objc.Ptr(notification)) +} + +func (t_ TextViewDelegateObject) HasTextViewDoCommandBySelector() bool { + return t_.RespondsToSelector(objc.Sel("textView:doCommandBySelector:")) +} + +// Sent to allow the delegate to perform the command for the 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:"), objc.Ptr(textView), commandSelector) + return rv +} + +func (t_ TextViewDelegateObject) HasTextViewCompletionsForPartialWordRangeIndexOfSelectedItem() bool { + return t_.RespondsToSelector(objc.Sel("textView:completions:forPartialWordRange:indexOfSelectedItem:")) +} + +// Returns the actual completions for a partial word. [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:"), objc.Ptr(textView), words, charRange, index) + return rv +} + +func (t_ TextViewDelegateObject) HasTextViewDidChangeSelection() bool { return t_.RespondsToSelector(objc.Sel("textViewDidChangeSelection:")) } // Sent when the selection changes in the text view. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/appkit/nstextviewdelegate/1449363-textviewdidchangeselection?language=objc -func (t_ TextViewDelegateWrapper) TextViewDidChangeSelection(notification foundation.INotification) { +func (t_ TextViewDelegateObject) TextViewDidChangeSelection(notification foundation.Notification) { objc.Call[objc.Void](t_, objc.Sel("textViewDidChangeSelection:"), objc.Ptr(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:"), objc.Ptr(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:"), objc.Ptr(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:"), objc.Ptr(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:"), objc.Ptr(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:"), objc.Ptr(textView), objc.Ptr(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:"), objc.Ptr(view), range_, checkingTypes, options, results, objc.Ptr(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:"), objc.Ptr(textView), objc.Ptr(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:"), objc.Ptr(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:"), objc.Ptr(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:"), objc.Ptr(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:"), objc.Ptr(view), objc.Ptr(menu), objc.Ptr(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:"), objc.Ptr(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:"), objc.Ptr(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:"), objc.Ptr(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:"), objc.Ptr(view), po1, rect, objc.Ptr(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:"), objc.Ptr(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:"), objc.Ptr(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 8ffbebc8..98610daf 100644 --- a/macos/appkit/text_viewport_layout_controller.gen.go +++ b/macos/appkit/text_viewport_layout_controller.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package appkit @@ -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 - TextLayoutManager() TextLayoutManager - ViewportRange() TextRange - Delegate() TextViewportLayoutControllerDelegateWrapper + LayoutViewport() + ViewportBounds() coregraphics.Rect + Delegate() TextViewportLayoutControllerDelegateObject SetDelegate(value PTextViewportLayoutControllerDelegate) SetDelegateObject(valueObject objc.IObject) - ViewportBounds() coregraphics.Rect + ViewportRange() TextRange + TextLayoutManager() TextLayoutManager } // Manages the layout process inside the viewport interacting with its delegate. [Full Topic] @@ -63,10 +63,6 @@ func (tc _TextViewportLayoutControllerClass) Alloc() TextViewportLayoutControlle return rv } -func TextViewportLayoutController_Alloc() TextViewportLayoutController { - return TextViewportLayoutControllerClass.Alloc() -} - func (tc _TextViewportLayoutControllerClass) New() TextViewportLayoutController { rv := objc.Call[TextViewportLayoutController](tc, objc.Sel("new")) rv.Autorelease() @@ -89,13 +85,6 @@ 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 @@ -113,27 +102,26 @@ func (t_ TextViewportLayoutController) RelocateViewportToTextLocationObject(text return rv } -// Returns the text layout manager for this viewport layout controller. [Full Topic] +// Performs layout in the viewport. [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")) - return rv +// [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")) } -// Returns the text range of the current viewport layout. [Full Topic] +// Returns the visible bounds of the view, plus the overdraw area. [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")) +// [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 } // The delegate for the text layout manager object. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/uikit/nstextviewportlayoutcontroller/3824768-delegate?language=objc -func (t_ TextViewportLayoutController) Delegate() TextViewportLayoutControllerDelegateWrapper { - rv := objc.Call[TextViewportLayoutControllerDelegateWrapper](t_, objc.Sel("delegate")) +func (t_ TextViewportLayoutController) Delegate() TextViewportLayoutControllerDelegateObject { + rv := objc.Call[TextViewportLayoutControllerDelegateObject](t_, objc.Sel("delegate")) return rv } @@ -153,10 +141,18 @@ func (t_ TextViewportLayoutController) SetDelegateObject(valueObject objc.IObjec objc.Call[objc.Void](t_, objc.Sel("setDelegate:"), objc.Ptr(valueObject)) } -// 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 +} + +// Returns the text layout manager for this viewport layout controller. [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")) 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 1525495e..c9ea8596 100644 --- a/macos/appkit/text_viewport_layout_controller_delegate.gen.go +++ b/macos/appkit/text_viewport_layout_controller_delegate.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package appkit @@ -12,46 +12,46 @@ import ( // [Full Topic]: https://developer.apple.com/documentation/uikit/nstextviewportlayoutcontrollerdelegate?language=objc type PTextViewportLayoutControllerDelegate interface { // optional - ViewportBoundsForTextViewportLayoutController(textViewportLayoutController TextViewportLayoutController) coregraphics.Rect - HasViewportBoundsForTextViewportLayoutController() bool + TextViewportLayoutControllerDidLayout(textViewportLayoutController TextViewportLayoutController) + HasTextViewportLayoutControllerDidLayout() bool // optional TextViewportLayoutControllerConfigureRenderingSurfaceForTextLayoutFragment(textViewportLayoutController TextViewportLayoutController, textLayoutFragment TextLayoutFragment) HasTextViewportLayoutControllerConfigureRenderingSurfaceForTextLayoutFragment() bool - // optional - TextViewportLayoutControllerDidLayout(textViewportLayoutController TextViewportLayoutController) - HasTextViewportLayoutControllerDidLayout() bool - // optional TextViewportLayoutControllerWillLayout(textViewportLayoutController TextViewportLayoutController) HasTextViewportLayoutControllerWillLayout() bool + + // optional + ViewportBoundsForTextViewportLayoutController(textViewportLayoutController TextViewportLayoutController) coregraphics.Rect + HasViewportBoundsForTextViewportLayoutController() bool } // A delegate implementation builder for the [PTextViewportLayoutControllerDelegate] protocol. type TextViewportLayoutControllerDelegate struct { - _ViewportBoundsForTextViewportLayoutController func(textViewportLayoutController TextViewportLayoutController) coregraphics.Rect - _TextViewportLayoutControllerConfigureRenderingSurfaceForTextLayoutFragment func(textViewportLayoutController TextViewportLayoutController, textLayoutFragment TextLayoutFragment) _TextViewportLayoutControllerDidLayout func(textViewportLayoutController TextViewportLayoutController) + _TextViewportLayoutControllerConfigureRenderingSurfaceForTextLayoutFragment func(textViewportLayoutController TextViewportLayoutController, textLayoutFragment TextLayoutFragment) _TextViewportLayoutControllerWillLayout func(textViewportLayoutController TextViewportLayoutController) + _ViewportBoundsForTextViewportLayoutController func(textViewportLayoutController TextViewportLayoutController) coregraphics.Rect } -func (di *TextViewportLayoutControllerDelegate) HasViewportBoundsForTextViewportLayoutController() bool { - return di._ViewportBoundsForTextViewportLayoutController != nil +func (di *TextViewportLayoutControllerDelegate) HasTextViewportLayoutControllerDidLayout() bool { + return di._TextViewportLayoutControllerDidLayout != nil } -// Returns the current viewport, which is the view visible bounds plus the overdraw area. [Full Topic] +// 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/3824779-viewportboundsfortextviewportlay?language=objc -func (di *TextViewportLayoutControllerDelegate) SetViewportBoundsForTextViewportLayoutController(f func(textViewportLayoutController TextViewportLayoutController) coregraphics.Rect) { - di._ViewportBoundsForTextViewportLayoutController = f +// [Full Topic]: https://developer.apple.com/documentation/uikit/nstextviewportlayoutcontrollerdelegate/3824777-textviewportlayoutcontrollerdidl?language=objc +func (di *TextViewportLayoutControllerDelegate) SetTextViewportLayoutControllerDidLayout(f func(textViewportLayoutController TextViewportLayoutController)) { + di._TextViewportLayoutControllerDidLayout = f } -// Returns the current viewport, which is the view visible bounds plus the overdraw area. [Full Topic] +// 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/3824779-viewportboundsfortextviewportlay?language=objc -func (di *TextViewportLayoutControllerDelegate) ViewportBoundsForTextViewportLayoutController(textViewportLayoutController TextViewportLayoutController) coregraphics.Rect { - return di._ViewportBoundsForTextViewportLayoutController(textViewportLayoutController) +// [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) HasTextViewportLayoutControllerConfigureRenderingSurfaceForTextLayoutFragment() bool { return di._TextViewportLayoutControllerConfigureRenderingSurfaceForTextLayoutFragment != nil @@ -70,23 +70,6 @@ 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 } @@ -104,53 +87,73 @@ func (di *TextViewportLayoutControllerDelegate) SetTextViewportLayoutControllerW func (di *TextViewportLayoutControllerDelegate) TextViewportLayoutControllerWillLayout(textViewportLayoutController TextViewportLayoutController) { di._TextViewportLayoutControllerWillLayout(textViewportLayoutController) } - -// A concrete type wrapper for the [PTextViewportLayoutControllerDelegate] protocol. -type TextViewportLayoutControllerDelegateWrapper struct { - objc.Object +func (di *TextViewportLayoutControllerDelegate) HasViewportBoundsForTextViewportLayoutController() bool { + return di._ViewportBoundsForTextViewportLayoutController != nil } -func (t_ TextViewportLayoutControllerDelegateWrapper) 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 (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 (t_ TextViewportLayoutControllerDelegateWrapper) ViewportBoundsForTextViewportLayoutController(textViewportLayoutController ITextViewportLayoutController) coregraphics.Rect { - rv := objc.Call[coregraphics.Rect](t_, objc.Sel("viewportBoundsForTextViewportLayoutController:"), objc.Ptr(textViewportLayoutController)) - return rv +func (di *TextViewportLayoutControllerDelegate) ViewportBoundsForTextViewportLayoutController(textViewportLayoutController TextViewportLayoutController) coregraphics.Rect { + return di._ViewportBoundsForTextViewportLayoutController(textViewportLayoutController) } -func (t_ TextViewportLayoutControllerDelegateWrapper) HasTextViewportLayoutControllerConfigureRenderingSurfaceForTextLayoutFragment() bool { - return t_.RespondsToSelector(objc.Sel("textViewportLayoutController:configureRenderingSurfaceForTextLayoutFragment:")) -} +// ensure impl type implements protocol interface +var _ PTextViewportLayoutControllerDelegate = (*TextViewportLayoutControllerDelegateObject)(nil) -// The method the framework calls when the layout controller lays out a text layout fragment in the UI. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/uikit/nstextviewportlayoutcontrollerdelegate/3824776-textviewportlayoutcontroller?language=objc -func (t_ TextViewportLayoutControllerDelegateWrapper) TextViewportLayoutControllerConfigureRenderingSurfaceForTextLayoutFragment(textViewportLayoutController ITextViewportLayoutController, textLayoutFragment ITextLayoutFragment) { - objc.Call[objc.Void](t_, objc.Sel("textViewportLayoutController:configureRenderingSurfaceForTextLayoutFragment:"), objc.Ptr(textViewportLayoutController), objc.Ptr(textLayoutFragment)) +// A concrete type for the [PTextViewportLayoutControllerDelegate] protocol. +type TextViewportLayoutControllerDelegateObject struct { + objc.Object } -func (t_ TextViewportLayoutControllerDelegateWrapper) HasTextViewportLayoutControllerDidLayout() bool { +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_ TextViewportLayoutControllerDelegateWrapper) TextViewportLayoutControllerDidLayout(textViewportLayoutController ITextViewportLayoutController) { +func (t_ TextViewportLayoutControllerDelegateObject) TextViewportLayoutControllerDidLayout(textViewportLayoutController TextViewportLayoutController) { objc.Call[objc.Void](t_, objc.Sel("textViewportLayoutControllerDidLayout:"), objc.Ptr(textViewportLayoutController)) } -func (t_ TextViewportLayoutControllerDelegateWrapper) HasTextViewportLayoutControllerWillLayout() bool { +func (t_ TextViewportLayoutControllerDelegateObject) HasTextViewportLayoutControllerConfigureRenderingSurfaceForTextLayoutFragment() bool { + return t_.RespondsToSelector(objc.Sel("textViewportLayoutController:configureRenderingSurfaceForTextLayoutFragment:")) +} + +// The method the framework calls when the layout controller lays out a text layout fragment in the UI. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/uikit/nstextviewportlayoutcontrollerdelegate/3824776-textviewportlayoutcontroller?language=objc +func (t_ TextViewportLayoutControllerDelegateObject) TextViewportLayoutControllerConfigureRenderingSurfaceForTextLayoutFragment(textViewportLayoutController TextViewportLayoutController, textLayoutFragment TextLayoutFragment) { + objc.Call[objc.Void](t_, objc.Sel("textViewportLayoutController:configureRenderingSurfaceForTextLayoutFragment:"), objc.Ptr(textViewportLayoutController), objc.Ptr(textLayoutFragment)) +} + +func (t_ TextViewportLayoutControllerDelegateObject) HasTextViewportLayoutControllerWillLayout() bool { return t_.RespondsToSelector(objc.Sel("textViewportLayoutControllerWillLayout:")) } // The method the framework calls before the text viewport layout controller starts its layout process. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/uikit/nstextviewportlayoutcontrollerdelegate/3824778-textviewportlayoutcontrollerwill?language=objc -func (t_ TextViewportLayoutControllerDelegateWrapper) TextViewportLayoutControllerWillLayout(textViewportLayoutController ITextViewportLayoutController) { +func (t_ TextViewportLayoutControllerDelegateObject) TextViewportLayoutControllerWillLayout(textViewportLayoutController TextViewportLayoutController) { objc.Call[objc.Void](t_, objc.Sel("textViewportLayoutControllerWillLayout:"), objc.Ptr(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:"), objc.Ptr(textViewportLayoutController)) + return rv +} diff --git a/macos/appkit/tint_configuration.gen.go b/macos/appkit/tint_configuration.gen.go index d8f63b6d..a59ed7cb 100644 --- a/macos/appkit/tint_configuration.gen.go +++ b/macos/appkit/tint_configuration.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package appkit @@ -19,8 +19,8 @@ type _TintConfigurationClass struct { type ITintConfiguration interface { objc.IObject BaseTintColor() Color - EquivalentContentTintColor() Color AdaptsToUserAccentColor() bool + EquivalentContentTintColor() Color } // 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) TintConfigurationWithPreferredColor(color IColor) TintConfiguration { - rv := objc.Call[TintConfiguration](tc, objc.Sel("tintConfigurationWithPreferredColor:"), objc.Ptr(color)) - return rv -} - -// Creates a new tint configuration for the system to use when the app’s preferred accent color is in use. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nstintconfiguration/3626824-tintconfigurationwithpreferredco?language=objc -func TintConfiguration_TintConfigurationWithPreferredColor(color IColor) TintConfiguration { - return TintConfigurationClass.TintConfigurationWithPreferredColor(color) -} - func (tc _TintConfigurationClass) TintConfigurationWithFixedColor(color IColor) TintConfiguration { rv := objc.Call[TintConfiguration](tc, objc.Sel("tintConfigurationWithFixedColor:"), objc.Ptr(color)) return rv @@ -60,13 +48,21 @@ func TintConfiguration_TintConfigurationWithFixedColor(color IColor) TintConfigu return TintConfigurationClass.TintConfigurationWithFixedColor(color) } -func (tc _TintConfigurationClass) Alloc() TintConfiguration { - rv := objc.Call[TintConfiguration](tc, objc.Sel("alloc")) +func (tc _TintConfigurationClass) TintConfigurationWithPreferredColor(color IColor) TintConfiguration { + rv := objc.Call[TintConfiguration](tc, objc.Sel("tintConfigurationWithPreferredColor:"), objc.Ptr(color)) return rv } -func TintConfiguration_Alloc() TintConfiguration { - return TintConfigurationClass.Alloc() +// Creates a new tint configuration for the system to use when the app’s preferred accent color is in use. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/appkit/nstintconfiguration/3626824-tintconfigurationwithpreferredco?language=objc +func TintConfiguration_TintConfigurationWithPreferredColor(color IColor) TintConfiguration { + return TintConfigurationClass.TintConfigurationWithPreferredColor(color) +} + +func (tc _TintConfigurationClass) Alloc() TintConfiguration { + rv := objc.Call[TintConfiguration](tc, objc.Sel("alloc")) + return rv } func (tc _TintConfigurationClass) New() TintConfiguration { @@ -84,6 +80,21 @@ 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 @@ -92,11 +103,11 @@ func (t_ TintConfiguration) BaseTintColor() Color { return rv } -// A color object that matches the effective content tint. [Full Topic] +// 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/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/3626818-adaptstouseraccentcolor?language=objc +func (t_ TintConfiguration) AdaptsToUserAccentColor() bool { + rv := objc.Call[bool](t_, objc.Sel("adaptsToUserAccentColor")) return rv } @@ -115,25 +126,10 @@ func TintConfiguration_DefaultTintConfiguration() TintConfiguration { return TintConfigurationClass.DefaultTintConfiguration() } -// 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() -} - -// 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 } diff --git a/macos/appkit/titlebar_accessory_view_controller.gen.go b/macos/appkit/titlebar_accessory_view_controller.gen.go index 2cec48ab..40990113 100644 --- a/macos/appkit/titlebar_accessory_view_controller.gen.go +++ b/macos/appkit/titlebar_accessory_view_controller.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package appkit @@ -19,10 +19,10 @@ type _TitlebarAccessoryViewControllerClass struct { // An interface definition for the [TitlebarAccessoryViewController] class. type ITitlebarAccessoryViewController interface { IViewController - AutomaticallyAdjustsSize() bool - SetAutomaticallyAdjustsSize(value bool) IsHidden() bool SetHidden(value bool) + AutomaticallyAdjustsSize() bool + SetAutomaticallyAdjustsSize(value bool) LayoutAttribute() LayoutAttribute SetLayoutAttribute(value LayoutAttribute) FullScreenMinHeight() float64 @@ -47,10 +47,6 @@ func (tc _TitlebarAccessoryViewControllerClass) Alloc() TitlebarAccessoryViewCon return rv } -func TitlebarAccessoryViewController_Alloc() TitlebarAccessoryViewController { - return TitlebarAccessoryViewControllerClass.Alloc() -} - func (tc _TitlebarAccessoryViewControllerClass) New() TitlebarAccessoryViewController { rv := objc.Call[TitlebarAccessoryViewController](tc, objc.Sel("new")) rv.Autorelease() @@ -82,32 +78,32 @@ func NewTitlebarAccessoryViewControllerWithNibNameBundle(nibNameOrNil NibName, n // [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) } // [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) } // 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 57fcbeee..92c50442 100644 --- a/macos/appkit/token_field.gen.go +++ b/macos/appkit/token_field.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package appkit @@ -19,12 +19,12 @@ type _TokenFieldClass struct { // An interface definition for the [TokenField] class. type ITokenField interface { ITextField - TokenizingCharacterSet() foundation.CharacterSet - SetTokenizingCharacterSet(value foundation.ICharacterSet) - CompletionDelay() foundation.TimeInterval - SetCompletionDelay(value foundation.TimeInterval) TokenStyle() TokenStyle SetTokenStyle(value TokenStyle) + CompletionDelay() foundation.TimeInterval + SetCompletionDelay(value foundation.TimeInterval) + TokenizingCharacterSet() foundation.CharacterSet + SetTokenizingCharacterSet(value foundation.ICharacterSet) } // A text field that converts text into visually distinct tokens. [Full Topic] @@ -45,10 +45,6 @@ func (tc _TokenFieldClass) Alloc() TokenField { return rv } -func TokenField_Alloc() TokenField { - return TokenFieldClass.Alloc() -} - func (tc _TokenFieldClass) New() TokenField { rv := objc.Call[TokenField](tc, objc.Sel("new")) rv.Autorelease() @@ -64,18 +60,6 @@ func (t_ TokenField) Init() TokenField { return rv } -func (tc _TokenFieldClass) LabelWithAttributedString(attributedStringValue foundation.IAttributedString) TokenField { - rv := objc.Call[TokenField](tc, objc.Sel("labelWithAttributedString:"), objc.Ptr(attributedStringValue)) - return rv -} - -// Creates a text field for use as a static label that displays styled text, doesn’t wrap, and doesn’t have selectable text. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nstextfield/1644658-labelwithattributedstring?language=objc -func TokenField_LabelWithAttributedString(attributedStringValue foundation.IAttributedString) TokenField { - return TokenFieldClass.LabelWithAttributedString(attributedStringValue) -} - func (tc _TokenFieldClass) LabelWithString(stringValue string) TokenField { rv := objc.Call[TokenField](tc, objc.Sel("labelWithString:"), stringValue) return rv @@ -88,6 +72,18 @@ 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:"), objc.Ptr(attributedStringValue)) + return rv +} + +// Creates a text field for use as a static label that displays styled text, doesn’t wrap, and doesn’t have selectable text. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/appkit/nstextfield/1644658-labelwithattributedstring?language=objc +func TokenField_LabelWithAttributedString(attributedStringValue foundation.IAttributedString) TokenField { + return TokenFieldClass.LabelWithAttributedString(attributedStringValue) +} + func (tc _TokenFieldClass) WrappingLabelWithString(stringValue string) TokenField { rv := objc.Call[TokenField](tc, objc.Sel("wrappingLabelWithString:"), stringValue) return rv @@ -126,21 +122,6 @@ 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:"), objc.Ptr(value)) -} - // Returns the default completion delay. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/appkit/nstokenfield/1529243-defaultcompletiondelay?language=objc @@ -156,19 +137,19 @@ func TokenField_DefaultCompletionDelay() foundation.TimeInterval { return TokenFieldClass.DefaultCompletionDelay() } -// The receiver’s completion delay. [Full Topic] +// The token style of the receiver. [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")) +// [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 receiver’s completion delay. [Full Topic] +// The token style of the receiver. [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) +// [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) } // Returns the default tokenizing character set. [Full Topic] @@ -186,17 +167,32 @@ func TokenField_DefaultTokenizingCharacterSet() foundation.CharacterSet { return TokenFieldClass.DefaultTokenizingCharacterSet() } -// 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) +} + +// 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:"), objc.Ptr(value)) } diff --git a/macos/appkit/token_field_cell.gen.go b/macos/appkit/token_field_cell.gen.go index abee6d6c..b933eb10 100644 --- a/macos/appkit/token_field_cell.gen.go +++ b/macos/appkit/token_field_cell.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package appkit @@ -19,15 +19,15 @@ type _TokenFieldCellClass struct { // An interface definition for the [TokenFieldCell] class. type ITokenFieldCell interface { ITextFieldCell - TokenizingCharacterSet() foundation.CharacterSet - SetTokenizingCharacterSet(value foundation.ICharacterSet) + TokenStyle() TokenStyle + SetTokenStyle(value TokenStyle) CompletionDelay() foundation.TimeInterval SetCompletionDelay(value foundation.TimeInterval) - Delegate() TokenFieldCellDelegateWrapper + TokenizingCharacterSet() foundation.CharacterSet + SetTokenizingCharacterSet(value foundation.ICharacterSet) + 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] @@ -48,10 +48,6 @@ func (tc _TokenFieldCellClass) Alloc() TokenFieldCell { return rv } -func TokenFieldCell_Alloc() TokenFieldCell { - return TokenFieldCellClass.Alloc() -} - func (tc _TokenFieldCellClass) New() TokenFieldCell { rv := objc.Call[TokenFieldCell](tc, objc.Sel("new")) rv.Autorelease() @@ -95,19 +91,49 @@ func NewTokenFieldCellImageCell(image IImage) TokenFieldCell { return instance } -// The receiver’s tokenizing character set to a given character set. [Full Topic] +// The token style of the receiver. [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/1523827-tokenstyle?language=objc +func (t_ TokenFieldCell) TokenStyle() TokenStyle { + rv := objc.Call[TokenStyle](t_, objc.Sel("tokenStyle")) return rv } -// The receiver’s tokenizing character set to a given character set. [Full Topic] +// The token style of the receiver. [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:"), objc.Ptr(value)) +// [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] +// +// [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() } // Returns the default completion delay. [Full Topic] @@ -125,26 +151,26 @@ func TokenFieldCell_DefaultCompletionDelay() foundation.TimeInterval { return TokenFieldCellClass.DefaultCompletionDelay() } -// The receiver’s completion delay to a given delay. [Full Topic] +// The receiver’s tokenizing character set to a given character set. [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")) +// [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 } -// The receiver’s completion delay to a given delay. [Full Topic] +// The receiver’s tokenizing character set to a given character set. [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) +// [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:"), objc.Ptr(value)) } // The receiver’s delegate. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/appkit/nstokenfieldcell/1523813-delegate?language=objc -func (t_ TokenFieldCell) Delegate() TokenFieldCellDelegateWrapper { - rv := objc.Call[TokenFieldCellDelegateWrapper](t_, objc.Sel("delegate")) +func (t_ TokenFieldCell) Delegate() TokenFieldCellDelegateObject { + rv := objc.Call[TokenFieldCellDelegateObject](t_, objc.Sel("delegate")) return rv } @@ -163,33 +189,3 @@ func (t_ TokenFieldCell) SetDelegate(value PTokenFieldCellDelegate) { func (t_ TokenFieldCell) SetDelegateObject(valueObject objc.IObject) { objc.Call[objc.Void](t_, objc.Sel("setDelegate:"), objc.Ptr(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 9a0e9b06..28027975 100644 --- a/macos/appkit/token_field_cell_delegate.gen.go +++ b/macos/appkit/token_field_cell_delegate.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package appkit @@ -10,16 +10,180 @@ 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 { - _TokenFieldCellEditingStringForRepresentedObject func(tokenFieldCell TokenFieldCell, representedObject objc.Object) string + _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 } +// 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 } @@ -37,20 +201,165 @@ 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 +} -// A concrete type wrapper for the [PTokenFieldCellDelegate] protocol. -type TokenFieldCellDelegateWrapper struct { +// 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) + +// A concrete type for the [PTokenFieldCellDelegate] protocol. +type TokenFieldCellDelegateObject struct { objc.Object } -func (t_ TokenFieldCellDelegateWrapper) HasTokenFieldCellEditingStringForRepresentedObject() bool { +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:"), objc.Ptr(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:"), objc.Ptr(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:"), objc.Ptr(tokenFieldCell), objc.Ptr(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:"), objc.Ptr(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:"), objc.Ptr(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:"), objc.Ptr(tokenFieldCell), objects, objc.Ptr(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:"), objc.Ptr(tokenFieldCell), tokens, index) + return rv +} + +func (t_ TokenFieldCellDelegateObject) HasTokenFieldCellEditingStringForRepresentedObject() bool { return t_.RespondsToSelector(objc.Sel("tokenFieldCell:editingStringForRepresentedObject:")) } // Allows the delegate to provide a string to be edited as a proxy for the represented object. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/appkit/nstokenfieldcelldelegate/1523824-tokenfieldcell?language=objc -func (t_ TokenFieldCellDelegateWrapper) TokenFieldCellEditingStringForRepresentedObject(tokenFieldCell ITokenFieldCell, representedObject objc.IObject) string { +func (t_ TokenFieldCellDelegateObject) TokenFieldCellEditingStringForRepresentedObject(tokenFieldCell TokenFieldCell, representedObject objc.Object) string { rv := objc.Call[string](t_, objc.Sel("tokenFieldCell:editingStringForRepresentedObject:"), objc.Ptr(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:"), objc.Ptr(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:"), objc.Ptr(tokenFieldCell), representedObject) + return rv +} diff --git a/macos/appkit/token_field_delegate.gen.go b/macos/appkit/token_field_delegate.gen.go index 4386e4d4..1b899cc6 100644 --- a/macos/appkit/token_field_delegate.gen.go +++ b/macos/appkit/token_field_delegate.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package appkit @@ -11,17 +11,130 @@ 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 - _TokenFieldEditingStringForRepresentedObject func(tokenField TokenField, representedObject objc.Object) string + _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 } +// 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 } @@ -39,20 +152,216 @@ 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 +} -// A concrete type wrapper for the [PTokenFieldDelegate] protocol. -type TokenFieldDelegateWrapper struct { - TextFieldDelegateWrapper +// 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) + +// A concrete type for the [PTokenFieldDelegate] protocol. +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:"), objc.Ptr(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:"), objc.Ptr(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:"), objc.Ptr(tokenField), representedObject) + return rv +} + +func (t_ TokenFieldDelegateObject) HasTokenFieldShouldAddObjectsAtIndex() bool { + return t_.RespondsToSelector(objc.Sel("tokenField:shouldAddObjects:atIndex:")) } -func (t_ TokenFieldDelegateWrapper) HasTokenFieldEditingStringForRepresentedObject() bool { +// 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:"), objc.Ptr(tokenField), tokens, index) + return rv +} + +func (t_ TokenFieldDelegateObject) HasTokenFieldEditingStringForRepresentedObject() bool { return t_.RespondsToSelector(objc.Sel("tokenField:editingStringForRepresentedObject:")) } // Allows the delegate to provide a string to be edited as a proxy for a represented object. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/appkit/nstokenfielddelegate/1524432-tokenfield?language=objc -func (t_ TokenFieldDelegateWrapper) TokenFieldEditingStringForRepresentedObject(tokenField ITokenField, representedObject objc.IObject) string { +func (t_ TokenFieldDelegateObject) TokenFieldEditingStringForRepresentedObject(tokenField TokenField, representedObject objc.Object) string { rv := objc.Call[string](t_, objc.Sel("tokenField:editingStringForRepresentedObject:"), objc.Ptr(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:"), objc.Ptr(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:"), objc.Ptr(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:"), objc.Ptr(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:"), objc.Ptr(tokenField), objects, objc.Ptr(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:"), objc.Ptr(tokenField), objc.Ptr(pboard)) + return rv +} diff --git a/macos/appkit/toolbar.gen.go b/macos/appkit/toolbar.gen.go index 48151fd7..bf6a661f 100644 --- a/macos/appkit/toolbar.gen.go +++ b/macos/appkit/toolbar.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package appkit @@ -18,33 +18,33 @@ type _ToolbarClass struct { // An interface definition for the [Toolbar] class. type IToolbar interface { objc.IObject - SetConfigurationFromDictionary(configDict map[string]objc.IObject) + RunCustomizationPalette(sender objc.IObject) InsertItemWithItemIdentifierAtIndex(itemIdentifier ToolbarItemIdentifier, index int) RemoveItemAtIndex(index int) ValidateVisibleItems() - RunCustomizationPalette(sender objc.IObject) - IsVisible() bool - SetVisible(value bool) + SetConfigurationFromDictionary(configDict map[string]objc.IObject) + Items() []ToolbarItem + Identifier() ToolbarIdentifier DisplayMode() ToolbarDisplayMode SetDisplayMode(value ToolbarDisplayMode) - AllowsUserCustomization() bool - SetAllowsUserCustomization(value bool) - Items() []ToolbarItem - ConfigurationDictionary() map[string]objc.Object - Delegate() ToolbarDelegateWrapper - SetDelegate(value PToolbarDelegate) - SetDelegateObject(valueObject objc.IObject) + IsVisible() bool + SetVisible(value bool) + CustomizationPaletteIsRunning() bool + VisibleItems() []ToolbarItem 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,6 +60,11 @@ 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 @@ -74,20 +79,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 } -func Toolbar_Alloc() Toolbar { - return ToolbarClass.Alloc() -} - func (tc _ToolbarClass) New() Toolbar { rv := objc.Call[Toolbar](tc, objc.Sel("new")) rv.Autorelease() @@ -98,11 +94,11 @@ func NewToolbar() Toolbar { return ToolbarClass.New() } -// 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) } // Inserts an item into the toolbar at the specified index. [Full Topic] @@ -126,26 +122,27 @@ func (t_ Toolbar) ValidateVisibleItems() { objc.Call[objc.Void](t_, objc.Sel("validateVisibleItems")) } -// 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) } -// A Boolean value that indicates whether the toolbar is visible. [Full Topic] +// An array containing the toolbar’s current items, in order. [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")) +// [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 is visible. [Full Topic] +// The value you use to identify the toolbar in your app. [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) +// [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 value that indicates whether the toolbar displays items using a name, icon, or combination of elements. [Full Topic] @@ -163,42 +160,72 @@ func (t_ Toolbar) SetDisplayMode(value ToolbarDisplayMode) { objc.Call[objc.Void](t_, objc.Sel("setDisplayMode:"), value) } -// A Boolean value that indicates whether users can modify the contents of the toolbar. [Full Topic] +// A Boolean value that indicates whether the toolbar is visible. [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/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 users can modify the contents of the toolbar. [Full Topic] +// A Boolean value that indicates whether the toolbar is visible. [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/1516935-visible?language=objc +func (t_ Toolbar) SetVisible(value bool) { + objc.Call[objc.Void](t_, objc.Sel("setVisible:"), value) } -// An array containing the toolbar’s current items, in order. [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/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/1516987-customizationpaletteisrunning?language=objc +func (t_ Toolbar) CustomizationPaletteIsRunning() bool { + rv := objc.Call[bool](t_, objc.Sel("customizationPaletteIsRunning")) return rv } -// A dictionary containing the current configuration details for the toolbar. [Full Topic] +// An array containing the toolbar’s currently visible items. [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/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 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) ShowsBaselineSeparator() bool { + rv := objc.Call[bool](t_, objc.Sel("showsBaselineSeparator")) + 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] +// +// [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) +} + // 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 -func (t_ Toolbar) Delegate() ToolbarDelegateWrapper { - rv := objc.Call[ToolbarDelegateWrapper](t_, objc.Sel("delegate")) +func (t_ Toolbar) Delegate() ToolbarDelegateObject { + rv := objc.Call[ToolbarDelegateObject](t_, objc.Sel("delegate")) return rv } @@ -218,27 +245,19 @@ func (t_ Toolbar) SetDelegateObject(valueObject objc.IObject) { objc.Call[objc.Void](t_, objc.Sel("setDelegate:"), objc.Ptr(valueObject)) } -// A Boolean value that indicates whether the toolbar shows the separator between the toolbar and the main window contents. [Full Topic] +// A Boolean value that indicates whether the toolbar autosaves its configuration. [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/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 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) -} - -// An array containing the toolbar’s currently visible items. [Full Topic] +// A Boolean value that indicates whether the toolbar autosaves its configuration. [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/1516992-autosavesconfiguration?language=objc +func (t_ Toolbar) SetAutosavesConfiguration(value bool) { + objc.Call[objc.Void](t_, objc.Sel("setAutosavesConfiguration:"), value) } // A Boolean value that indicates whether the toolbar can add items for Action extensions. [Full Topic] @@ -256,48 +275,25 @@ func (t_ Toolbar) SetAllowsExtensionItems(value bool) { objc.Call[objc.Void](t_, objc.Sel("setAllowsExtensionItems:"), value) } -// 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/1516987-customizationpaletteisrunning?language=objc -func (t_ Toolbar) CustomizationPaletteIsRunning() bool { - rv := objc.Call[bool](t_, objc.Sel("customizationPaletteIsRunning")) - return rv -} - -// The value you use to identify the toolbar in your app. [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 -} - -// 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) -} - -// A Boolean value that indicates whether the toolbar autosaves its configuration. [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/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/1516962-allowsusercustomization?language=objc +func (t_ Toolbar) AllowsUserCustomization() bool { + rv := objc.Call[bool](t_, objc.Sel("allowsUserCustomization")) return rv } -// A Boolean value that indicates whether the toolbar autosaves its configuration. [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/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/1516962-allowsusercustomization?language=objc +func (t_ Toolbar) SetAllowsUserCustomization(value bool) { + objc.Call[objc.Void](t_, objc.Sel("setAllowsUserCustomization:"), value) } diff --git a/macos/appkit/toolbar_delegate.gen.go b/macos/appkit/toolbar_delegate.gen.go index cd690abf..50e54fd7 100644 --- a/macos/appkit/toolbar_delegate.gen.go +++ b/macos/appkit/toolbar_delegate.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package appkit @@ -12,20 +12,16 @@ import ( // [Full Topic]: https://developer.apple.com/documentation/appkit/nstoolbardelegate?language=objc type PToolbarDelegate interface { // optional - ToolbarAllowedItemIdentifiers(toolbar Toolbar) []ToolbarItemIdentifier - HasToolbarAllowedItemIdentifiers() bool + ToolbarDefaultItemIdentifiers(toolbar Toolbar) []ToolbarItemIdentifier + HasToolbarDefaultItemIdentifiers() bool // optional ToolbarWillAddItem(notification foundation.Notification) HasToolbarWillAddItem() bool // optional - ToolbarItemForItemIdentifierWillBeInsertedIntoToolbar(toolbar Toolbar, itemIdentifier ToolbarItemIdentifier, flag bool) IToolbarItem - HasToolbarItemForItemIdentifierWillBeInsertedIntoToolbar() bool - - // optional - ToolbarDefaultItemIdentifiers(toolbar Toolbar) []ToolbarItemIdentifier - HasToolbarDefaultItemIdentifiers() bool + ToolbarAllowedItemIdentifiers(toolbar Toolbar) []ToolbarItemIdentifier + HasToolbarAllowedItemIdentifiers() bool // optional ToolbarSelectableItemIdentifiers(toolbar Toolbar) []ToolbarItemIdentifier @@ -34,34 +30,38 @@ 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 { - _ToolbarAllowedItemIdentifiers func(toolbar Toolbar) []ToolbarItemIdentifier - _ToolbarWillAddItem func(notification foundation.Notification) - _ToolbarItemForItemIdentifierWillBeInsertedIntoToolbar func(toolbar Toolbar, itemIdentifier ToolbarItemIdentifier, flag bool) IToolbarItem _ToolbarDefaultItemIdentifiers func(toolbar Toolbar) []ToolbarItemIdentifier + _ToolbarWillAddItem func(notification foundation.Notification) + _ToolbarAllowedItemIdentifiers 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) HasToolbarAllowedItemIdentifiers() bool { - return di._ToolbarAllowedItemIdentifiers != nil +func (di *ToolbarDelegate) HasToolbarDefaultItemIdentifiers() bool { + return di._ToolbarDefaultItemIdentifiers != nil } -// Asks the delegate to provide the items allowed on the toolbar. [Full Topic] +// Asks the delegate to provide the default items to display on the toolbar. [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/1516944-toolbardefaultitemidentifiers?language=objc +func (di *ToolbarDelegate) SetToolbarDefaultItemIdentifiers(f func(toolbar Toolbar) []ToolbarItemIdentifier) { + di._ToolbarDefaultItemIdentifiers = f } -// Asks the delegate to provide the items allowed on the toolbar. [Full Topic] +// Asks the delegate to provide the default items to display on the toolbar. [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/1516944-toolbardefaultitemidentifiers?language=objc +func (di *ToolbarDelegate) ToolbarDefaultItemIdentifiers(toolbar Toolbar) []ToolbarItemIdentifier { + return di._ToolbarDefaultItemIdentifiers(toolbar) } func (di *ToolbarDelegate) HasToolbarWillAddItem() bool { return di._ToolbarWillAddItem != nil @@ -80,39 +80,22 @@ func (di *ToolbarDelegate) SetToolbarWillAddItem(f func(notification foundation. func (di *ToolbarDelegate) ToolbarWillAddItem(notification foundation.Notification) { di._ToolbarWillAddItem(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) IToolbarItem) { - 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) IToolbarItem { - return di._ToolbarItemForItemIdentifierWillBeInsertedIntoToolbar(toolbar, itemIdentifier, flag) -} -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) HasToolbarSelectableItemIdentifiers() bool { return di._ToolbarSelectableItemIdentifiers != nil @@ -148,78 +131,98 @@ 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 +} -// A concrete type wrapper for the [PToolbarDelegate] protocol. -type ToolbarDelegateWrapper struct { +// 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) + +// A concrete type for the [PToolbarDelegate] protocol. +type ToolbarDelegateObject struct { objc.Object } -func (t_ ToolbarDelegateWrapper) HasToolbarAllowedItemIdentifiers() bool { - return t_.RespondsToSelector(objc.Sel("toolbarAllowedItemIdentifiers:")) +func (t_ ToolbarDelegateObject) HasToolbarDefaultItemIdentifiers() bool { + return t_.RespondsToSelector(objc.Sel("toolbarDefaultItemIdentifiers:")) } -// Asks the delegate to provide the items allowed on the toolbar. [Full Topic] +// Asks the delegate to provide the default items to display on the toolbar. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nstoolbardelegate/1516995-toolbaralloweditemidentifiers?language=objc -func (t_ ToolbarDelegateWrapper) ToolbarAllowedItemIdentifiers(toolbar IToolbar) []ToolbarItemIdentifier { - rv := objc.Call[[]ToolbarItemIdentifier](t_, objc.Sel("toolbarAllowedItemIdentifiers:"), objc.Ptr(toolbar)) +// [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:"), objc.Ptr(toolbar)) return rv } -func (t_ ToolbarDelegateWrapper) HasToolbarWillAddItem() bool { +func (t_ ToolbarDelegateObject) HasToolbarWillAddItem() bool { return t_.RespondsToSelector(objc.Sel("toolbarWillAddItem:")) } // Tells the delegate that the toolbar is about to add the specified item. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/appkit/nstoolbardelegate/1516964-toolbarwilladditem?language=objc -func (t_ ToolbarDelegateWrapper) ToolbarWillAddItem(notification foundation.INotification) { +func (t_ ToolbarDelegateObject) ToolbarWillAddItem(notification foundation.Notification) { objc.Call[objc.Void](t_, objc.Sel("toolbarWillAddItem:"), objc.Ptr(notification)) } -func (t_ ToolbarDelegateWrapper) 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_ ToolbarDelegateWrapper) ToolbarItemForItemIdentifierWillBeInsertedIntoToolbar(toolbar IToolbar, itemIdentifier ToolbarItemIdentifier, flag bool) ToolbarItem { - rv := objc.Call[ToolbarItem](t_, objc.Sel("toolbar:itemForItemIdentifier:willBeInsertedIntoToolbar:"), objc.Ptr(toolbar), itemIdentifier, flag) - return rv -} - -func (t_ ToolbarDelegateWrapper) 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_ ToolbarDelegateWrapper) ToolbarDefaultItemIdentifiers(toolbar IToolbar) []ToolbarItemIdentifier { - rv := objc.Call[[]ToolbarItemIdentifier](t_, objc.Sel("toolbarDefaultItemIdentifiers:"), objc.Ptr(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:"), objc.Ptr(toolbar)) return rv } -func (t_ ToolbarDelegateWrapper) HasToolbarSelectableItemIdentifiers() bool { +func (t_ ToolbarDelegateObject) HasToolbarSelectableItemIdentifiers() bool { return t_.RespondsToSelector(objc.Sel("toolbarSelectableItemIdentifiers:")) } // Asks the delegate to provide the set of selectable items in the toolbar. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/appkit/nstoolbardelegate/1516981-toolbarselectableitemidentifiers?language=objc -func (t_ ToolbarDelegateWrapper) ToolbarSelectableItemIdentifiers(toolbar IToolbar) []ToolbarItemIdentifier { +func (t_ ToolbarDelegateObject) ToolbarSelectableItemIdentifiers(toolbar Toolbar) []ToolbarItemIdentifier { rv := objc.Call[[]ToolbarItemIdentifier](t_, objc.Sel("toolbarSelectableItemIdentifiers:"), objc.Ptr(toolbar)) return rv } -func (t_ ToolbarDelegateWrapper) HasToolbarDidRemoveItem() bool { +func (t_ ToolbarDelegateObject) HasToolbarDidRemoveItem() bool { return t_.RespondsToSelector(objc.Sel("toolbarDidRemoveItem:")) } // Tells the delegate that the toolbar removed the specified item. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/appkit/nstoolbardelegate/1516970-toolbardidremoveitem?language=objc -func (t_ ToolbarDelegateWrapper) ToolbarDidRemoveItem(notification foundation.INotification) { +func (t_ ToolbarDelegateObject) ToolbarDidRemoveItem(notification foundation.Notification) { objc.Call[objc.Void](t_, objc.Sel("toolbarDidRemoveItem:"), objc.Ptr(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:"), objc.Ptr(toolbar), itemIdentifier, flag) + return rv +} diff --git a/macos/appkit/toolbar_item.gen.go b/macos/appkit/toolbar_item.gen.go index 2406e1bd..1825df96 100644 --- a/macos/appkit/toolbar_item.gen.go +++ b/macos/appkit/toolbar_item.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package appkit @@ -21,37 +21,37 @@ type IToolbarItem interface { Validate() MenuFormRepresentation() MenuItem SetMenuFormRepresentation(value IMenuItem) - 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) + IsNavigational() bool + SetNavigational(value bool) + ItemIdentifier() ToolbarItemIdentifier + Title() string + SetTitle(value string) + AllowsDuplicatesInToolbar() 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) - Title() string - SetTitle(value string) + Action() objc.Selector + SetAction(value objc.Selector) 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] @@ -86,10 +86,6 @@ func (tc _ToolbarItemClass) Alloc() ToolbarItem { return rv } -func ToolbarItem_Alloc() ToolbarItem { - return ToolbarItemClass.Alloc() -} - func (tc _ToolbarItemClass) New() ToolbarItem { rv := objc.Call[ToolbarItem](tc, objc.Sel("new")) rv.Autorelease() @@ -127,81 +123,52 @@ func (t_ ToolbarItem) SetMenuFormRepresentation(value IMenuItem) { objc.Call[objc.Void](t_, objc.Sel("setMenuFormRepresentation:"), objc.Ptr(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) -} - -// A Boolean value that indicates whether the toolbar item has a bordered style. [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/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/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 toolbar item has a bordered style. [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/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/3622481-navigational?language=objc +func (t_ ToolbarItem) SetNavigational(value bool) { + objc.Call[objc.Void](t_, objc.Sel("setNavigational:"), value) } -// The display priority associated with 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/1527947-visibilitypriority?language=objc -func (t_ ToolbarItem) VisibilityPriority() ToolbarItemVisibilityPriority { - rv := objc.Call[ToolbarItemVisibilityPriority](t_, objc.Sel("visibilityPriority")) +// [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 } -// 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 action method to call when someone clicks on the toolbar item. [Full Topic] +// The title of the toolbar 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/3237225-title?language=objc +func (t_ ToolbarItem) Title() string { + rv := objc.Call[string](t_, objc.Sel("title")) return rv } -// The action method to call when someone clicks on the toolbar item. [Full Topic] +// The title of 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/3237225-title?language=objc +func (t_ ToolbarItem) SetTitle(value string) { + objc.Call[objc.Void](t_, objc.Sel("setTitle:"), value) } -// A Boolean value that indicates whether the toolbar automatically validates the 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/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/1530116-allowsduplicatesintoolbar?language=objc +func (t_ ToolbarItem) AllowsDuplicatesInToolbar() bool { + rv := objc.Call[bool](t_, objc.Sel("allowsDuplicatesInToolbar")) 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 @@ -232,88 +199,102 @@ func (t_ ToolbarItem) SetView(value IView) { objc.Call[objc.Void](t_, objc.Sel("setView:"), objc.Ptr(value)) } -// A Boolean value that indicates whether the toolbar item can appear more than once in a toolbar. [Full Topic] +// An integer tag you can use to identify 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/1524618-tag?language=objc +func (t_ ToolbarItem) Tag() int { + rv := objc.Call[int](t_, objc.Sel("tag")) return rv } -// The toolbar that currently includes 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/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/1524618-tag?language=objc +func (t_ ToolbarItem) SetTag(value int) { + objc.Call[objc.Void](t_, objc.Sel("setTag:"), value) } -// The value you use to identify the toolbar item. [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/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/1525723-action?language=objc +func (t_ ToolbarItem) Action() objc.Selector { + rv := objc.Call[objc.Selector](t_, objc.Sel("action")) return rv } -// A Boolean value that indicates whether the item behaves as a navigation item in the 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/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/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 item is enabled. [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")) return rv } -// A Boolean value that indicates whether the item behaves as a navigation item in the toolbar. [Full Topic] +// A Boolean value that indicates whether the item is enabled. [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/1524277-enabled?language=objc +func (t_ ToolbarItem) SetEnabled(value bool) { + objc.Call[objc.Void](t_, objc.Sel("setEnabled:"), value) } -// An integer tag you can use to identify the toolbar item. [Full Topic] +// A Boolean value that indicates whether the toolbar automatically validates the item. [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/1524463-autovalidates?language=objc +func (t_ ToolbarItem) Autovalidates() bool { + rv := objc.Call[bool](t_, objc.Sel("autovalidates")) return rv } -// An integer tag you can use to identify the toolbar item. [Full Topic] +// A Boolean value that indicates whether the toolbar automatically validates the 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) +// [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 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) 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) SetTitle(value string) { - objc.Call[objc.Void](t_, objc.Sel("setTitle:"), value) +// [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) } -// A Boolean value that indicates whether the item is enabled. [Full Topic] +// The label that appears when the toolbar item is in the customization palette. [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/1525421-palettelabel?language=objc +func (t_ ToolbarItem) PaletteLabel() string { + rv := objc.Call[string](t_, objc.Sel("paletteLabel")) return rv } -// A Boolean value that indicates whether the item is enabled. [Full Topic] +// The label that appears when the toolbar item is in the customization palette. [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/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] +// +// [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 label that appears for this item in the toolbar. [Full Topic] @@ -331,6 +312,36 @@ 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 @@ -345,18 +356,3 @@ func (t_ ToolbarItem) Image() Image { func (t_ ToolbarItem) SetImage(value IImage) { objc.Call[objc.Void](t_, objc.Sel("setImage:"), objc.Ptr(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 ccf7ae29..1f29e24e 100644 --- a/macos/appkit/toolbar_item_group.gen.go +++ b/macos/appkit/toolbar_item_group.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package appkit @@ -18,16 +18,16 @@ type _ToolbarItemGroupClass struct { // An interface definition for the [ToolbarItemGroup] class. type IToolbarItemGroup interface { IToolbarItem - SetSelectedAtIndex(selected bool, index int) IsSelectedAtIndex(index int) bool + SetSelectedAtIndex(selected bool, index int) 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,13 +55,21 @@ func ToolbarItemGroup_GroupWithItemIdentifierTitlesSelectionModeLabelsTargetActi return ToolbarItemGroupClass.GroupWithItemIdentifierTitlesSelectionModeLabelsTargetAction(itemIdentifier, titles, selectionMode, labels, target, action) } -func (tc _ToolbarItemGroupClass) Alloc() ToolbarItemGroup { - rv := objc.Call[ToolbarItemGroup](tc, objc.Sel("alloc")) +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 } -func ToolbarItemGroup_Alloc() ToolbarItemGroup { - return ToolbarItemGroupClass.Alloc() +// 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 } func (tc _ToolbarItemGroupClass) New() ToolbarItemGroup { @@ -93,13 +101,6 @@ 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 @@ -108,6 +109,13 @@ 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 @@ -123,21 +131,6 @@ 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 @@ -167,3 +160,18 @@ 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/toolbar_item_validation.gen.go b/macos/appkit/toolbar_item_validation_protocol.gen.go similarity index 65% rename from macos/appkit/toolbar_item_validation.gen.go rename to macos/appkit/toolbar_item_validation_protocol.gen.go index 48463e71..7a1c67a3 100644 --- a/macos/appkit/toolbar_item_validation.gen.go +++ b/macos/appkit/toolbar_item_validation_protocol.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package appkit @@ -15,19 +15,22 @@ type PToolbarItemValidation interface { HasValidateToolbarItem() bool } -// A concrete type wrapper for the [PToolbarItemValidation] protocol. -type ToolbarItemValidationWrapper struct { +// ensure impl type implements protocol interface +var _ PToolbarItemValidation = (*ToolbarItemValidationObject)(nil) + +// A concrete type for the [PToolbarItemValidation] protocol. +type ToolbarItemValidationObject struct { objc.Object } -func (t_ ToolbarItemValidationWrapper) HasValidateToolbarItem() bool { +func (t_ ToolbarItemValidationObject) HasValidateToolbarItem() bool { return t_.RespondsToSelector(objc.Sel("validateToolbarItem:")) } // If this method is implemented and returns NO, NSToolbar will disable theItem; returning YES causes theItem to be enabled. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/appkit/nstoolbaritemvalidation/3005292-validatetoolbaritem?language=objc -func (t_ ToolbarItemValidationWrapper) ValidateToolbarItem(item IToolbarItem) bool { +func (t_ ToolbarItemValidationObject) ValidateToolbarItem(item ToolbarItem) bool { rv := objc.Call[bool](t_, objc.Sel("validateToolbarItem:"), objc.Ptr(item)) return rv } diff --git a/macos/appkit/touch.gen.go b/macos/appkit/touch.gen.go index 300a603b..834a8c6d 100644 --- a/macos/appkit/touch.gen.go +++ b/macos/appkit/touch.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package appkit @@ -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] @@ -48,10 +48,6 @@ func (tc _TouchClass) Alloc() Touch { return rv } -func Touch_Alloc() Touch { - return TouchClass.Alloc() -} - func (tc _TouchClass) New() Touch { rv := objc.Call[Touch](tc, objc.Sel("new")) rv.Autorelease() @@ -83,58 +79,58 @@ func (t_ Touch) LocationInView(view IView) foundation.Point { 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 normalized position of the touch. [Full Topic] +// The current phase 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")) +// [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 changes to a particular touch during its lifetime. [Full Topic] +// The indicator for a resting touch. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nstouch/1535399-identity?language=objc -func (t_ Touch) Identity() objc.Object { - rv := objc.Call[objc.Object](t_, objc.Sel("identity")) +// [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 } -// The range of the touch device in points, such as 72 ppi. [Full Topic] +// The changes to a particular touch during its lifetime. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nstouch/1528476-devicesize?language=objc -func (t_ Touch) DeviceSize() foundation.Size { - rv := objc.Call[foundation.Size](t_, objc.Sel("deviceSize")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nstouch/1535399-identity?language=objc +func (t_ Touch) Identity() objc.Object { + rv := objc.Call[objc.Object](t_, objc.Sel("identity")) return rv } -// A type of touch from a Touch Bar interaction. [Full Topic] +// The normalized position of the touch. [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")) +// [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 current phase of the touch. [Full Topic] +// The range of the touch device in points, such as 72 ppi. [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/1528476-devicesize?language=objc +func (t_ Touch) DeviceSize() foundation.Size { + rv := objc.Call[foundation.Size](t_, objc.Sel("deviceSize")) return rv } -// The indicator for a resting 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/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/1533562-device?language=objc +func (t_ Touch) Device() objc.Object { + rv := objc.Call[objc.Object](t_, objc.Sel("device")) return rv } diff --git a/macos/appkit/touch_bar.gen.go b/macos/appkit/touch_bar.gen.go index b6f7da05..39131de6 100644 --- a/macos/appkit/touch_bar.gen.go +++ b/macos/appkit/touch_bar.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package appkit @@ -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() TouchBarDelegateWrapper - 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] @@ -64,10 +64,6 @@ func (tc _TouchBarClass) Alloc() TouchBar { return rv } -func TouchBar_Alloc() TouchBar { - return TouchBarClass.Alloc() -} - func (tc _TouchBarClass) New() TouchBar { rv := objc.Call[TouchBar](tc, objc.Sel("new")) rv.Autorelease() @@ -86,14 +82,6 @@ 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 @@ -139,43 +127,49 @@ func (t_ TouchBar) SetPrincipalItemIdentifier(value TouchBarItemIdentifier) { objc.Call[objc.Void](t_, objc.Sel("setPrincipalItemIdentifier:"), value) } -// The delegate that provides items to 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/2544666-delegate?language=objc -func (t_ TouchBar) Delegate() TouchBarDelegateWrapper { - rv := objc.Call[TouchBarDelegateWrapper](t_, objc.Sel("delegate")) +// [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 delegate that provides items to 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/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) +// [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) SetDelegateObject(valueObject objc.IObject) { - objc.Call[objc.Void](t_, objc.Sel("setDelegate:"), objc.Ptr(valueObject)) +// [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 identifier of an item that replaces the system-provided button in 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/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/2544730-customizationidentifier?language=objc +func (t_ TouchBar) SetCustomizationIdentifier(value TouchBarCustomizationIdentifier) { + objc.Call[objc.Void](t_, objc.Sel("setCustomizationIdentifier:"), 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 } -// The identifier of an item that replaces the system-provided button in the Touch Bar. [Full Topic] +// 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/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/2646921-defaultitemidentifiers?language=objc +func (t_ TouchBar) SetDefaultItemIdentifiers(value []TouchBarItemIdentifier) { + objc.Call[objc.Void](t_, objc.Sel("setDefaultItemIdentifiers:"), value) } // The list of identifiers for the current items in the Touch Bar. [Full Topic] @@ -186,34 +180,51 @@ func (t_ TouchBar) ItemIdentifiers() []TouchBarItemIdentifier { return rv } -// A list of identifiers for items to show in the Touch Bar’s customization UI. [Full Topic] +// A Boolean value that Indicates whether the Touch Bar is eligible for display. [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/2544756-visible?language=objc +func (t_ TouchBar) IsVisible() bool { + rv := objc.Call[bool](t_, objc.Sel("isVisible")) return rv } -// A list of identifiers for items to show in the Touch Bar’s customization UI. [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/2544796-customizationalloweditemidentifi?language=objc -func (t_ TouchBar) SetCustomizationAllowedItemIdentifiers(value []TouchBarItemIdentifier) { - objc.Call[objc.Void](t_, objc.Sel("setCustomizationAllowedItemIdentifiers:"), value) +// [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 globally unique string that makes the Touch Bar eligible for user customization. [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/2544730-customizationidentifier?language=objc -func (t_ TouchBar) CustomizationIdentifier() TouchBarCustomizationIdentifier { - rv := objc.Call[TouchBarCustomizationIdentifier](t_, objc.Sel("customizationIdentifier")) +// [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 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) Delegate() TouchBarDelegateObject { + rv := objc.Call[TouchBarDelegateObject](t_, objc.Sel("delegate")) return rv } -// 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) 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] +// +// [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:"), objc.Ptr(valueObject)) } // A Boolean value indicating whether the main menu contains an item for customizing the contents of the Touch Bar. [Full Topic] @@ -244,18 +255,3 @@ 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_delegate.gen.go b/macos/appkit/touch_bar_delegate.gen.go index 98956345..ccfc25f3 100644 --- a/macos/appkit/touch_bar_delegate.gen.go +++ b/macos/appkit/touch_bar_delegate.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package appkit @@ -11,13 +11,13 @@ import ( // [Full Topic]: https://developer.apple.com/documentation/appkit/nstouchbardelegate?language=objc type PTouchBarDelegate interface { // optional - TouchBarMakeItemForIdentifier(touchBar TouchBar, identifier TouchBarItemIdentifier) ITouchBarItem + TouchBarMakeItemForIdentifier(touchBar TouchBar, identifier TouchBarItemIdentifier) TouchBarItem HasTouchBarMakeItemForIdentifier() bool } // A delegate implementation builder for the [PTouchBarDelegate] protocol. type TouchBarDelegate struct { - _TouchBarMakeItemForIdentifier func(touchBar TouchBar, identifier TouchBarItemIdentifier) ITouchBarItem + _TouchBarMakeItemForIdentifier func(touchBar TouchBar, identifier TouchBarItemIdentifier) TouchBarItem } func (di *TouchBarDelegate) HasTouchBarMakeItemForIdentifier() bool { @@ -27,30 +27,33 @@ func (di *TouchBarDelegate) HasTouchBarMakeItemForIdentifier() bool { // Asks the delegate object for the bar item for the specified bar and item identifier. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/appkit/nstouchbardelegate/2544851-touchbar?language=objc -func (di *TouchBarDelegate) SetTouchBarMakeItemForIdentifier(f func(touchBar TouchBar, identifier TouchBarItemIdentifier) ITouchBarItem) { +func (di *TouchBarDelegate) SetTouchBarMakeItemForIdentifier(f func(touchBar TouchBar, identifier TouchBarItemIdentifier) TouchBarItem) { di._TouchBarMakeItemForIdentifier = f } // Asks the delegate object for the bar item for the specified bar and item identifier. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/appkit/nstouchbardelegate/2544851-touchbar?language=objc -func (di *TouchBarDelegate) TouchBarMakeItemForIdentifier(touchBar TouchBar, identifier TouchBarItemIdentifier) ITouchBarItem { +func (di *TouchBarDelegate) TouchBarMakeItemForIdentifier(touchBar TouchBar, identifier TouchBarItemIdentifier) TouchBarItem { return di._TouchBarMakeItemForIdentifier(touchBar, identifier) } -// A concrete type wrapper for the [PTouchBarDelegate] protocol. -type TouchBarDelegateWrapper struct { +// ensure impl type implements protocol interface +var _ PTouchBarDelegate = (*TouchBarDelegateObject)(nil) + +// A concrete type for the [PTouchBarDelegate] protocol. +type TouchBarDelegateObject struct { objc.Object } -func (t_ TouchBarDelegateWrapper) HasTouchBarMakeItemForIdentifier() bool { +func (t_ TouchBarDelegateObject) HasTouchBarMakeItemForIdentifier() bool { return t_.RespondsToSelector(objc.Sel("touchBar:makeItemForIdentifier:")) } // Asks the delegate object for the bar item for the specified bar and item identifier. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/appkit/nstouchbardelegate/2544851-touchbar?language=objc -func (t_ TouchBarDelegateWrapper) TouchBarMakeItemForIdentifier(touchBar ITouchBar, identifier TouchBarItemIdentifier) TouchBarItem { +func (t_ TouchBarDelegateObject) TouchBarMakeItemForIdentifier(touchBar TouchBar, identifier TouchBarItemIdentifier) TouchBarItem { rv := objc.Call[TouchBarItem](t_, objc.Sel("touchBar:makeItemForIdentifier:"), objc.Ptr(touchBar), identifier) return rv } diff --git a/macos/appkit/touch_bar_item.gen.go b/macos/appkit/touch_bar_item.gen.go index 3ced8aa3..23641f56 100644 --- a/macos/appkit/touch_bar_item.gen.go +++ b/macos/appkit/touch_bar_item.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package appkit @@ -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] @@ -59,10 +59,6 @@ func (tc _TouchBarItemClass) Alloc() TouchBarItem { return rv } -func TouchBarItem_Alloc() TouchBarItem { - return TouchBarItemClass.Alloc() -} - func (tc _TouchBarItemClass) New() TouchBarItem { rv := objc.Call[TouchBarItem](tc, objc.Sel("new")) rv.Autorelease() @@ -86,6 +82,22 @@ 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 @@ -109,14 +121,6 @@ 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 @@ -124,11 +128,3 @@ 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/touch_bar_provider.gen.go b/macos/appkit/touch_bar_provider_protocol.gen.go similarity index 63% rename from macos/appkit/touch_bar_provider.gen.go rename to macos/appkit/touch_bar_provider_protocol.gen.go index 8c8c2db8..078553d8 100644 --- a/macos/appkit/touch_bar_provider.gen.go +++ b/macos/appkit/touch_bar_provider_protocol.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package appkit @@ -11,23 +11,26 @@ import ( // [Full Topic]: https://developer.apple.com/documentation/appkit/nstouchbarprovider?language=objc type PTouchBarProvider interface { // optional - TouchBar() ITouchBar + TouchBar() TouchBar HasTouchBar() bool } -// A concrete type wrapper for the [PTouchBarProvider] protocol. -type TouchBarProviderWrapper struct { +// ensure impl type implements protocol interface +var _ PTouchBarProvider = (*TouchBarProviderObject)(nil) + +// A concrete type for the [PTouchBarProvider] protocol. +type TouchBarProviderObject struct { objc.Object } -func (t_ TouchBarProviderWrapper) HasTouchBar() bool { +func (t_ TouchBarProviderObject) HasTouchBar() bool { return t_.RespondsToSelector(objc.Sel("touchBar")) } // The property you implement to provide a Touch Bar object. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/appkit/nstouchbarprovider/2544662-touchbar?language=objc -func (t_ TouchBarProviderWrapper) TouchBar() TouchBar { +func (t_ TouchBarProviderObject) TouchBar() TouchBar { rv := objc.Call[TouchBar](t_, objc.Sel("touchBar")) return rv } diff --git a/macos/appkit/tracking_area.gen.go b/macos/appkit/tracking_area.gen.go index 11ca732c..6222bcbf 100644 --- a/macos/appkit/tracking_area.gen.go +++ b/macos/appkit/tracking_area.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package appkit @@ -19,8 +19,8 @@ type _TrackingAreaClass struct { // An interface definition for the [TrackingArea] class. type ITrackingArea interface { objc.IObject - Options() TrackingAreaOptions Owner() objc.Object + Options() TrackingAreaOptions Rect() foundation.Rect UserInfo() foundation.Dictionary } @@ -57,10 +57,6 @@ func (tc _TrackingAreaClass) Alloc() TrackingArea { return rv } -func TrackingArea_Alloc() TrackingArea { - return TrackingAreaClass.Alloc() -} - func (tc _TrackingAreaClass) New() TrackingArea { rv := objc.Call[TrackingArea](tc, objc.Sel("new")) rv.Autorelease() @@ -76,14 +72,6 @@ func (t_ TrackingArea) Init() TrackingArea { return rv } -// The options specified for the receiver. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nstrackingarea/1533013-options?language=objc -func (t_ TrackingArea) Options() TrackingAreaOptions { - rv := objc.Call[TrackingAreaOptions](t_, objc.Sel("options")) - 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 @@ -92,6 +80,14 @@ func (t_ TrackingArea) Owner() objc.Object { return rv } +// The options specified for the receiver. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/appkit/nstrackingarea/1533013-options?language=objc +func (t_ TrackingArea) Options() TrackingAreaOptions { + rv := objc.Call[TrackingAreaOptions](t_, objc.Sel("options")) + 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/tracking_separator_toolbar_item.gen.go b/macos/appkit/tracking_separator_toolbar_item.gen.go index d7d30c48..83f67396 100644 --- a/macos/appkit/tracking_separator_toolbar_item.gen.go +++ b/macos/appkit/tracking_separator_toolbar_item.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package appkit @@ -54,10 +54,6 @@ func (tc _TrackingSeparatorToolbarItemClass) Alloc() TrackingSeparatorToolbarIte return rv } -func TrackingSeparatorToolbarItem_Alloc() TrackingSeparatorToolbarItem { - return TrackingSeparatorToolbarItemClass.Alloc() -} - func (tc _TrackingSeparatorToolbarItemClass) New() TrackingSeparatorToolbarItem { rv := objc.Call[TrackingSeparatorToolbarItem](tc, objc.Sel("new")) rv.Autorelease() diff --git a/macos/appkit/tree_controller.gen.go b/macos/appkit/tree_controller.gen.go index 14929660..e8737c5a 100644 --- a/macos/appkit/tree_controller.gen.go +++ b/macos/appkit/tree_controller.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package appkit @@ -19,46 +19,46 @@ type _TreeControllerClass struct { // An interface definition for the [TreeController] class. type ITreeController interface { IObjectController - LeafKeyPathForNode(node ITreeNode) string - 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 + 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) + MoveNodeToIndexPath(node ITreeNode, indexPath foundation.IIndexPath) RemoveObjectsAtArrangedObjectIndexPaths(indexPaths []foundation.IIndexPath) RearrangeObjects() - InsertChild(sender objc.IObject) objc.Object + SetSelectionIndexPaths(indexPaths []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 + InsertChild(sender objc.IObject) objc.Object + RemoveObjectAtArrangedObjectIndexPath(indexPath foundation.IIndexPath) + SetSelectionIndexPath(indexPath foundation.IIndexPath) bool 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) - CanAddChild() bool - CountKeyPath() string - SetCountKeyPath(value string) - SelectsInsertedObjects() bool - SetSelectsInsertedObjects(value bool) + SortDescriptors() []foundation.SortDescriptor + SetSortDescriptors(value []foundation.ISortDescriptor) + PreservesSelection() bool + SetPreservesSelection(value bool) SelectedNodes() []TreeNode - AvoidsEmptySelection() bool - SetAvoidsEmptySelection(value bool) + AlwaysUsesMultipleValuesMarker() bool + SetAlwaysUsesMultipleValuesMarker(value bool) + SelectionIndexPath() foundation.IndexPath + ArrangedObjects() TreeNode } // A bindings-compatible controller that manages a tree of objects. [Full Topic] @@ -79,10 +79,6 @@ func (tc _TreeControllerClass) Alloc() TreeController { return rv } -func TreeController_Alloc() TreeController { - return TreeControllerClass.Alloc() -} - func (tc _TreeControllerClass) New() TreeController { rv := objc.Call[TreeController](tc, objc.Sel("new")) rv.Autorelease() @@ -112,21 +108,14 @@ func NewTreeControllerWithContent(content objc.IObject) TreeController { return instance } -// Returns the key path that specifies whether the node is a leaf 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/1526740-leafkeypathfornode?language=objc -func (t_ TreeController) LeafKeyPathForNode(node ITreeNode) string { - rv := objc.Call[string](t_, objc.Sel("leafKeyPathForNode:"), objc.Ptr(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:"), objc.Ptr(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:"), objc.Ptr(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 @@ -135,26 +124,26 @@ func (t_ TreeController) RemoveSelectionIndexPaths(indexPaths []foundation.IInde return rv } -// Sets the tree controller’s 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/1527490-setselectionindexpath?language=objc -func (t_ TreeController) SetSelectionIndexPath(indexPath foundation.IIndexPath) bool { - rv := objc.Call[bool](t_, objc.Sel("setSelectionIndexPath:"), objc.Ptr(indexPath)) +// [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 } -// 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:"), objc.Ptr(node), objc.Ptr(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, objc.Ptr(indexPath)) } -// Adds the objects at the specified indexPaths in the tree controller’s content to the current selection. [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/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/1526740-leafkeypathfornode?language=objc +func (t_ TreeController) LeafKeyPathForNode(node ITreeNode) string { + rv := objc.Call[string](t_, objc.Sel("leafKeyPathForNode:"), objc.Ptr(node)) return rv } @@ -165,27 +154,34 @@ func (t_ TreeController) MoveNodesToIndexPath(nodes []ITreeNode, startingIndexPa objc.Call[objc.Void](t_, objc.Sel("moveNodes:toIndexPath:"), nodes, objc.Ptr(startingIndexPath)) } -// Returns the key path that provides the number of children for a specified node. [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/1528109-countkeypathfornode?language=objc -func (t_ TreeController) CountKeyPathForNode(node ITreeNode) string { - rv := objc.Call[string](t_, objc.Sel("countKeyPathForNode:"), objc.Ptr(node)) +// [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:"), objc.Ptr(node)) return rv } -// Sets the tree controller’s current selection to the specified index paths. [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/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/1535862-addselectionindexpaths?language=objc +func (t_ TreeController) AddSelectionIndexPaths(indexPaths []foundation.IIndexPath) bool { + rv := objc.Call[bool](t_, objc.Sel("addSelectionIndexPaths:"), indexPaths) 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] +// 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/1530156-insertobject?language=objc -func (t_ TreeController) InsertObjectAtArrangedObjectIndexPath(object objc.IObject, indexPath foundation.IIndexPath) { - objc.Call[objc.Void](t_, objc.Sel("insertObject:atArrangedObjectIndexPath:"), object, objc.Ptr(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) +} + +// Moves the specified tree node to the new index path. [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:"), objc.Ptr(node), objc.Ptr(indexPath)) } // Removes the objects at the specified indexPaths in the tree controller’s arranged objects from the tree controller’s content. [Full Topic] @@ -202,11 +198,11 @@ func (t_ TreeController) RearrangeObjects() { objc.Call[objc.Void](t_, objc.Sel("rearrangeObjects")) } -// 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] +// Sets the tree controller’s current selection to the specified index paths. [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/1528494-setselectionindexpaths?language=objc +func (t_ TreeController) SetSelectionIndexPaths(indexPaths []foundation.IIndexPath) bool { + rv := objc.Call[bool](t_, objc.Sel("setSelectionIndexPaths:"), indexPaths) return rv } @@ -218,127 +214,119 @@ 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. [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/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/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 } -// 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] +// 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/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) +// [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:"), objc.Ptr(indexPath)) } -// Returns the key path used to find the children in the specified tree node. [Full Topic] +// Sets the tree controller’s current selection. [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:"), objc.Ptr(node)) +// [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:"), objc.Ptr(indexPath)) return rv } -// A Boolean value that indicates whether the tree controller will attempt to preserve the current selection when the content changes. [Full Topic] +// An array containing the index paths of the currently selected objects. [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/1534861-selectionindexpaths?language=objc +func (t_ TreeController) SelectionIndexPaths() []foundation.IndexPath { + rv := objc.Call[[]foundation.IndexPath](t_, objc.Sel("selectionIndexPaths")) return rv } -// 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/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] +// 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/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/1534200-selectsinsertedobjects?language=objc +func (t_ TreeController) SelectsInsertedObjects() bool { + rv := objc.Call[bool](t_, objc.Sel("selectsInsertedObjects")) return rv } -// The key path used to find the children in the tree controller’s objects. [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/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/1534200-selectsinsertedobjects?language=objc +func (t_ TreeController) SetSelectsInsertedObjects(value bool) { + objc.Call[objc.Void](t_, objc.Sel("setSelectsInsertedObjects:"), value) } -// The index path of the first selected object. [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/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/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 always returns the multiple values marker when multiple objects are selected, even if the selected items have the same value. [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/1529530-alwaysusesmultiplevaluesmarker?language=objc -func (t_ TreeController) AlwaysUsesMultipleValuesMarker() bool { - rv := objc.Call[bool](t_, objc.Sel("alwaysUsesMultipleValuesMarker")) - return rv +// [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 always returns the multiple values marker when multiple objects are selected, even if the selected items have the same value. [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/1529530-alwaysusesmultiplevaluesmarker?language=objc -func (t_ TreeController) SetAlwaysUsesMultipleValuesMarker(value bool) { - objc.Call[objc.Void](t_, objc.Sel("setAlwaysUsesMultipleValuesMarker:"), value) +// [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 } -// An array containing the sort descriptors used to arrange the tree controller’s content. [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/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/1526188-avoidsemptyselection?language=objc +func (t_ TreeController) AvoidsEmptySelection() bool { + rv := objc.Call[bool](t_, objc.Sel("avoidsEmptySelection")) return rv } -// An array containing the sort descriptors used to arrange the tree controller’s content. [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/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/1526188-avoidsemptyselection?language=objc +func (t_ TreeController) SetAvoidsEmptySelection(value bool) { + objc.Call[objc.Void](t_, objc.Sel("setAvoidsEmptySelection:"), value) } -// The tree controller’s sorted content 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/1527465-arrangedobjects?language=objc -func (t_ TreeController) ArrangedObjects() TreeNode { - rv := objc.Call[TreeNode](t_, objc.Sel("arrangedObjects")) +// [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 } -// An array containing the index paths of the currently selected objects. [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/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/1525790-canaddchild?language=objc +func (t_ TreeController) CanAddChild() bool { + rv := objc.Call[bool](t_, objc.Sel("canAddChild")) return rv } -// A Boolean value that indicates if a child object can be inserted into the tree controller’s content. [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/1524647-caninsertchild?language=objc -func (t_ TreeController) CanInsertChild() bool { - rv := objc.Call[bool](t_, objc.Sel("canInsertChild")) +// [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 if an object can be inserted into the tree controller’s content. [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/1534180-caninsert?language=objc -func (t_ TreeController) CanInsert() bool { - rv := objc.Call[bool](t_, objc.Sel("canInsert")) - return rv +// [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 by the tree controller to determine if a node is a leaf key. [Full Topic] @@ -356,42 +344,34 @@ func (t_ TreeController) SetLeafKeyPath(value string) { objc.Call[objc.Void](t_, objc.Sel("setLeafKeyPath:"), value) } -// 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/1525790-canaddchild?language=objc -func (t_ TreeController) CanAddChild() bool { - rv := objc.Call[bool](t_, objc.Sel("canAddChild")) - return rv -} - -// The key path used to find the number of children for a node. [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/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/1526827-sortdescriptors?language=objc +func (t_ TreeController) SortDescriptors() []foundation.SortDescriptor { + rv := objc.Call[[]foundation.SortDescriptor](t_, objc.Sel("sortDescriptors")) return rv } -// The key path used to find the number of children for a node. [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/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/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 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) 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) SetSelectsInsertedObjects(value bool) { - objc.Call[objc.Void](t_, objc.Sel("setSelectsInsertedObjects:"), value) +// [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) } // An array containing the tree controller’s selected tree nodes. [Full Topic] @@ -402,17 +382,33 @@ func (t_ TreeController) SelectedNodes() []TreeNode { 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] +// 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/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/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 requires the content array to attempt to maintain a selection at all times, avoiding an empty selection. [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/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/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] +// +// [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 tree controller’s sorted content objects. [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 } diff --git a/macos/appkit/tree_node.gen.go b/macos/appkit/tree_node.gen.go index 9e430fe5..f960315d 100644 --- a/macos/appkit/tree_node.gen.go +++ b/macos/appkit/tree_node.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package appkit @@ -21,12 +21,12 @@ type ITreeNode interface { objc.IObject SortWithSortDescriptorsRecursively(sortDescriptors []foundation.ISortDescriptor, recursively bool) DescendantNodeAtIndexPath(indexPath foundation.IIndexPath) TreeNode - ParentNode() TreeNode IsLeaf() bool - MutableChildNodes() foundation.MutableArray ChildNodes() []TreeNode - IndexPath() foundation.IndexPath + MutableChildNodes() foundation.MutableArray RepresentedObject() objc.Object + ParentNode() TreeNode + IndexPath() foundation.IndexPath } // A node in a tree of nodes. [Full Topic] @@ -73,10 +73,6 @@ func (tc _TreeNodeClass) Alloc() TreeNode { return rv } -func TreeNode_Alloc() TreeNode { - return TreeNodeClass.Alloc() -} - func (tc _TreeNodeClass) New() TreeNode { rv := objc.Call[TreeNode](tc, objc.Sel("new")) rv.Autorelease() @@ -107,14 +103,6 @@ func (t_ TreeNode) DescendantNodeAtIndexPath(indexPath foundation.IIndexPath) Tr return rv } -// The receiver’s parent node. [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")) - return rv -} - // A Boolean that indicates whether the receiver is a leaf node. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/appkit/nstreenode/1532729-leaf?language=objc @@ -123,14 +111,6 @@ func (t_ TreeNode) IsLeaf() bool { return rv } -// A mutable array that provides read-write access to the receiver’s child nodes. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nstreenode/1527238-mutablechildnodes?language=objc -func (t_ TreeNode) MutableChildNodes() foundation.MutableArray { - rv := objc.Call[foundation.MutableArray](t_, objc.Sel("mutableChildNodes")) - return rv -} - // An array containing receiver’s child nodes. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/appkit/nstreenode/1525285-childnodes?language=objc @@ -139,11 +119,11 @@ func (t_ TreeNode) ChildNodes() []TreeNode { return rv } -// The position of the receiver relative to its root parent. [Full Topic] +// A mutable array that provides read-write access to the receiver’s child nodes. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nstreenode/1532255-indexpath?language=objc -func (t_ TreeNode) IndexPath() foundation.IndexPath { - rv := objc.Call[foundation.IndexPath](t_, objc.Sel("indexPath")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nstreenode/1527238-mutablechildnodes?language=objc +func (t_ TreeNode) MutableChildNodes() foundation.MutableArray { + rv := objc.Call[foundation.MutableArray](t_, objc.Sel("mutableChildNodes")) return rv } @@ -154,3 +134,19 @@ func (t_ TreeNode) RepresentedObject() objc.Object { rv := objc.Call[objc.Object](t_, objc.Sel("representedObject")) return rv } + +// The receiver’s parent node. [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")) + return rv +} + +// The position of the receiver relative to its root parent. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/appkit/nstreenode/1532255-indexpath?language=objc +func (t_ TreeNode) IndexPath() foundation.IndexPath { + rv := objc.Call[foundation.IndexPath](t_, objc.Sel("indexPath")) + return rv +} diff --git a/macos/appkit/typesetter.gen.go b/macos/appkit/typesetter.gen.go index dd247879..7c97dbec 100644 --- a/macos/appkit/typesetter.gen.go +++ b/macos/appkit/typesetter.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package appkit @@ -19,56 +19,57 @@ type _TypesetterClass struct { // An interface definition for the [Typesetter] class. type ITypesetter interface { objc.IObject - 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 + ParagraphSpacingAfterGlyphAtIndexWithProposedLineFragmentRect(glyphIndex uint, rect foundation.Rect) float64 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) float64 - 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) + BoundingBoxForControlGlyphAtIndexForTextContainerProposedLineFragmentGlyphPositionCharacterIndex(glyphIndex uint, textContainer ITextContainer, proposedRect foundation.Rect, glyphPosition foundation.Point, charIndex uint) foundation.Rect 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 - TextTabForGlyphLocationWritingDirectionMaxLocation(glyphLocation float64, direction WritingDirection, maxLocation float64) TextTab - BaselineOffsetInLayoutManagerGlyphIndex(layoutMgr ILayoutManager, glyphIndex uint) float64 - 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) + HyphenCharacterForGlyphAtIndex(glyphIndex uint) objc.Object + SetAttachmentSizeForGlyphRange(attachmentSize foundation.Size, glyphRange foundation.Range) + 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() float64 + SetHyphenationFactor(value float64) AttributedString() foundation.AttributedString SetAttributedString(value foundation.IAttributedString) - ParagraphGlyphRange() foundation.Range - ParagraphSeparatorCharacterRange() foundation.Range + CurrentParagraphStyle() ParagraphStyle + ParagraphCharacterRange() 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 - HyphenationFactor() float64 - SetHyphenationFactor(value float64) - ParagraphCharacterRange() foundation.Range - CurrentParagraphStyle() ParagraphStyle + ParagraphGlyphRange() foundation.Range CurrentTextContainer() TextContainer - ParagraphSeparatorGlyphRange() foundation.Range - AttributesForExtraLineFragment() map[foundation.AttributedStringKey]objc.Object } // An abstract class that performs various type layout tasks. [Full Topic] @@ -89,10 +90,6 @@ func (tc _TypesetterClass) Alloc() Typesetter { return rv } -func Typesetter_Alloc() Typesetter { - return TypesetterClass.Alloc() -} - func (tc _TypesetterClass) New() Typesetter { rv := objc.Call[Typesetter](tc, objc.Sel("new")) rv.Autorelease() @@ -108,11 +105,35 @@ func (t_ Typesetter) Init() Typesetter { return rv } -// Sets the location where the specified glyphs are laid out. [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/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/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] +// +// [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 } // Returns whether the line being laid out should be broken by a word break at the specified character. [Full Topic] @@ -123,26 +144,47 @@ func (t_ Typesetter) ShouldBreakLineByWordBeforeCharacterAtIndex(charIndex uint) return rv } -// Calculates line fragment rectangle, line fragment used rectangle, and remaining rectangle for a line fragment. [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/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) +// [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) } -// Returns a screen font suitable for use in place of a given font. [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/1526766-substitutefontforfont?language=objc -func (t_ Typesetter) SubstituteFontForFont(originalFont IFont) Font { - rv := objc.Call[Font](t_, objc.Sel("substituteFontForFont:"), objc.Ptr(originalFont)) +// [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] +// +// [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 interglyph spacing in the specified range when sent to a printer. [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:"), objc.Ptr(layoutMgr), nominallySpacedGlyphsRange, packedGlyphs, packedGlyphsCount) return rv } -// Sets whether the specified glyphs are not shown. [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/1530373-setnotshownattribute?language=objc -func (t_ Typesetter) SetNotShownAttributeForGlyphRange(flag bool, glyphRange foundation.Range) { - objc.Call[objc.Void](t_, objc.Sel("setNotShownAttribute:forGlyphRange:"), flag, 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) } // Sets whether to force the layout manager to invalidate the specified portion of the glyph cache when invalidating layout. [Full Topic] @@ -152,49 +194,49 @@ func (t_ Typesetter) SetHardInvalidationForGlyphRange(flag bool, glyphRange foun objc.Call[objc.Void](t_, objc.Sel("setHardInvalidation:forGlyphRange:"), flag, glyphRange) } -// Returns the hyphen character to be inserted after the specified glyph. [Full Topic] +// Returns the line spacing in effect following the specified glyph. [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/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 end of a line during typesetting. [Full Topic] +// Sets the location where the specified glyphs are laid out. [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) +// [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) } -// Called by the typesetter just prior to storing the actual line fragment rectangle location in the layout manager. [Full Topic] +// Sets up layout parameters at the beginning of a paragraph. [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) +// [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 whether the line being laid out should be broken by hyphenating at the specified character. [Full Topic] +// Lays out characters in the given character range for the specified layout manager. [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) +// [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, objc.Ptr(layoutManager), maxNumLines) return rv } -// Lays out glyphs in the current glyph range until the next paragraph separator is reached. [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/1528231-layoutparagraphatpoint?language=objc -func (t_ Typesetter) LayoutParagraphAtPoint(lineFragmentOrigin foundation.PointPointer) uint { - rv := objc.Call[uint](t_, objc.Sel("layoutParagraphAtPoint:"), lineFragmentOrigin) +// [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 } -// Sets up layout parameters at the end of a paragraph. [Full Topic] +// Sets the line fragment rectangle where the specified glyphs are laid out. [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/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) } // Returns the hyphenation factor in effect at a specified location. [Full Topic] @@ -205,14 +247,6 @@ func (t_ Typesetter) HyphenationFactorForGlyphAtIndex(glyphIndex uint) float64 { 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, objc.Ptr(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 @@ -221,33 +255,33 @@ func (t_ Typesetter) GlyphRangeForCharacterRangeActualCharacterRange(charRange f return rv } -// Returns the line spacing in effect following the specified glyph. [Full Topic] +// Returns the bounding rectangle for the specified control glyph with the specified parameters. [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/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, objc.Ptr(textContainer), proposedRect, glyphPosition, charIndex) return rv } -// Sets whether the specified glyphs exceed the bounds of the line fragment in which they are laid out. [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/1526312-setdrawsoutsidelinefragment?language=objc -func (t_ Typesetter) SetDrawsOutsideLineFragmentForGlyphRange(flag bool, glyphRange foundation.Range) { - objc.Call[objc.Void](t_, objc.Sel("setDrawsOutsideLineFragment:forGlyphRange:"), flag, glyphRange) +// [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) } -// Sets the current glyph range being processed. [Full Topic] +// Sets the direction of the specified glyphs for bidirectional text. [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) +// [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) } -// Sets up layout parameters at the beginning of a line during typesetting. [Full Topic] +// Calculates the line fragment rectangle and line fragment used rectangle for blank lines. [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/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) } // Returns the number of points of space—added before a paragraph—that is in effect before the specified glyph. [Full Topic] @@ -258,27 +292,27 @@ func (t_ Typesetter) ParagraphSpacingBeforeGlyphAtIndexWithProposedLineFragmentR return rv } -// Returns the text tab next closest to a given glyph location within the given parameters. [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/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/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 the interglyph spacing in the specified range when sent to a printer. [Full Topic] +// Returns the hyphen character to be inserted after the specified glyph. [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:"), objc.Ptr(layoutMgr), nominallySpacedGlyphsRange, packedGlyphs, packedGlyphsCount) +// [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 } -// Returns the interglyph spacing in the specified range when sent to a printer. [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/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/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 distance from the bottom of the line fragment rectangle in which the glyph resides to the glyph baseline. [Full Topic] @@ -289,21 +323,6 @@ 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, objc.Ptr(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 @@ -319,56 +338,79 @@ func Typesetter_SharedSystemTypesetterForBehavior(behavior TypesetterBehavior) o return TypesetterClass.SharedSystemTypesetterForBehavior(behavior) } -// Sets the size the specified glyphs (assumed to be attachments) will be asked to draw themselves at. [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/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/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 paragraph spacing that is in effect after the specified glyph. [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/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) +// [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] +// +// [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:"), objc.Ptr(originalFont)) 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 current paragraph separator character range. [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/1531746-paragraphseparatorcharacterrange?language=objc +func (t_ Typesetter) ParagraphSeparatorCharacterRange() foundation.Range { + rv := objc.Call[foundation.Range](t_, objc.Sel("paragraphSeparatorCharacterRange")) return rv } -// Sets the direction of the specified glyphs for bidirectional text. [Full Topic] +// Returns a shared instance of a reentrant typesetter. [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/1534814-sharedsystemtypesetter?language=objc +func (tc _TypesetterClass) SharedSystemTypesetter() Typesetter { + rv := objc.Call[Typesetter](tc, objc.Sel("sharedSystemTypesetter")) + return rv } -// Sets up layout parameters at the beginning of a paragraph. [Full Topic] +// Returns a shared instance of a reentrant typesetter. [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/1534814-sharedsystemtypesetter?language=objc +func Typesetter_SharedSystemTypesetter() Typesetter { + return TypesetterClass.SharedSystemTypesetter() } -// Returns whether bidirectional text processing is enabled. [Full Topic] +// Returns the current hyphenation factor. [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/1535877-hyphenationfactor?language=objc +func (t_ Typesetter) HyphenationFactor() float64 { + rv := objc.Call[float64](t_, objc.Sel("hyphenationFactor")) return rv } -// Returns whether bidirectional text processing is enabled. [Full Topic] +// Returns the current hyphenation factor. [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/1535877-hyphenationfactor?language=objc +func (t_ Typesetter) SetHyphenationFactor(value float64) { + objc.Call[objc.Void](t_, objc.Sel("setHyphenationFactor:"), value) +} + +// 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 text backing store, usually an instance of NSTextStorage. [Full Topic] @@ -386,19 +428,19 @@ func (t_ Typesetter) SetAttributedString(value foundation.IAttributedString) { objc.Call[objc.Void](t_, objc.Sel("setAttributedString:"), objc.Ptr(value)) } -// 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 } -// Returns the current paragraph separator character range. [Full Topic] +// Returns the character range currently being processed. [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/1533422-paragraphcharacterrange?language=objc +func (t_ Typesetter) ParagraphCharacterRange() foundation.Range { + rv := objc.Call[foundation.Range](t_, objc.Sel("paragraphCharacterRange")) return rv } @@ -410,34 +452,19 @@ func (t_ Typesetter) LayoutManager() LayoutManager { 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) LineFragmentPadding() float64 { - rv := objc.Call[float64](t_, objc.Sel("lineFragmentPadding")) - 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 whether the typesetter uses the leading (or line gap) value specified in the font metric information of the current font. [Full Topic] +// Returns whether bidirectional text processing is enabled. [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/1533588-bidiprocessingenabled?language=objc +func (t_ Typesetter) BidiProcessingEnabled() bool { + rv := objc.Call[bool](t_, objc.Sel("bidiProcessingEnabled")) 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 whether bidirectional text processing is enabled. [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/1533588-bidiprocessingenabled?language=objc +func (t_ Typesetter) SetBidiProcessingEnabled(value bool) { + objc.Call[objc.Void](t_, objc.Sel("setBidiProcessingEnabled:"), value) } // Returns the current typesetter behavior. [Full Topic] @@ -455,95 +482,72 @@ func (t_ Typesetter) SetTypesetterBehavior(value TypesetterBehavior) { objc.Call[objc.Void](t_, objc.Sel("setTypesetterBehavior:"), value) } -// Returns an array containing the text containers belonging to the current layout manager. [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")) - return rv -} - -// Returns a shared instance of a reentrant typesetter. [Full Topic] +// Returns the current line fragment padding, in points. [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/1531129-linefragmentpadding?language=objc +func (t_ Typesetter) LineFragmentPadding() float64 { + rv := objc.Call[float64](t_, objc.Sel("lineFragmentPadding")) return rv } -// Returns a shared instance of a reentrant typesetter. [Full Topic] +// Returns the current line fragment padding, in points. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nstypesetter/1534814-sharedsystemtypesetter?language=objc -func Typesetter_SharedSystemTypesetter() Typesetter { - return TypesetterClass.SharedSystemTypesetter() +// [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 hyphenation factor. [Full Topic] +// Returns the current paragraph separator range. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nstypesetter/1535877-hyphenationfactor?language=objc -func (t_ Typesetter) HyphenationFactor() float64 { - rv := objc.Call[float64](t_, objc.Sel("hyphenationFactor")) +// [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 current hyphenation factor. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nstypesetter/1535877-hyphenationfactor?language=objc -func (t_ Typesetter) SetHyphenationFactor(value float64) { - objc.Call[objc.Void](t_, objc.Sel("setHyphenationFactor:"), value) -} - -// Returns the character range currently being processed. [Full Topic] +// Returns the attributes used to lay out the extra line fragment. [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/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 } -// Returns the paragraph style object for the text being typeset. [Full Topic] +// 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/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/1526716-usesfontleading?language=objc +func (t_ Typesetter) UsesFontLeading() bool { + rv := objc.Call[bool](t_, objc.Sel("usesFontLeading")) return rv } -// Returns the text container for the text being typeset. [Full Topic] +// 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/1534527-currenttextcontainer?language=objc -func (t_ Typesetter) CurrentTextContainer() TextContainer { - rv := objc.Call[TextContainer](t_, objc.Sel("currentTextContainer")) - return rv +// [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 default typesetter behavior. [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/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/1526310-textcontainers?language=objc +func (t_ Typesetter) TextContainers() []TextContainer { + rv := objc.Call[[]TextContainer](t_, objc.Sel("textContainers")) 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] +// Returns the glyph range currently being processed. [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/1528301-paragraphglyphrange?language=objc +func (t_ Typesetter) ParagraphGlyphRange() foundation.Range { + rv := objc.Call[foundation.Range](t_, objc.Sel("paragraphGlyphRange")) return rv } -// Returns the attributes used to lay out the extra line fragment. [Full Topic] +// Returns the text container for the text being typeset. [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")) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nstypesetter/1534527-currenttextcontainer?language=objc +func (t_ Typesetter) CurrentTextContainer() TextContainer { + rv := objc.Call[TextContainer](t_, objc.Sel("currentTextContainer")) return rv } diff --git a/macos/appkit/user_activity_restoring.gen.go b/macos/appkit/user_activity_restoring_protocol.gen.go similarity index 66% rename from macos/appkit/user_activity_restoring.gen.go rename to macos/appkit/user_activity_restoring_protocol.gen.go index 1d605c67..2e1933bd 100644 --- a/macos/appkit/user_activity_restoring.gen.go +++ b/macos/appkit/user_activity_restoring_protocol.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package appkit @@ -16,18 +16,21 @@ type PUserActivityRestoring interface { HasRestoreUserActivityState() bool } -// A concrete type wrapper for the [PUserActivityRestoring] protocol. -type UserActivityRestoringWrapper struct { +// ensure impl type implements protocol interface +var _ PUserActivityRestoring = (*UserActivityRestoringObject)(nil) + +// A concrete type for the [PUserActivityRestoring] protocol. +type UserActivityRestoringObject struct { objc.Object } -func (u_ UserActivityRestoringWrapper) HasRestoreUserActivityState() bool { +func (u_ UserActivityRestoringObject) HasRestoreUserActivityState() bool { return u_.RespondsToSelector(objc.Sel("restoreUserActivityState:")) } // Restores the state necessary to continue the specified user activity. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/appkit/nsuseractivityrestoring/3022485-restoreuseractivitystate?language=objc -func (u_ UserActivityRestoringWrapper) RestoreUserActivityState(userActivity foundation.IUserActivity) { +func (u_ UserActivityRestoringObject) RestoreUserActivityState(userActivity foundation.UserActivity) { objc.Call[objc.Void](u_, objc.Sel("restoreUserActivityState:"), objc.Ptr(userActivity)) } diff --git a/macos/appkit/user_defaults_controller.gen.go b/macos/appkit/user_defaults_controller.gen.go index ec776e3e..a2c2426d 100644 --- a/macos/appkit/user_defaults_controller.gen.go +++ b/macos/appkit/user_defaults_controller.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package appkit @@ -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 - Defaults() foundation.UserDefaults - HasUnappliedChanges() bool + Save(sender objc.IObject) objc.Object AppliesImmediately() bool SetAppliesImmediately(value bool) + HasUnappliedChanges() bool + Values() objc.Object InitialValues() map[string]objc.Object SetInitialValues(value map[string]objc.IObject) - Values() objc.Object + Defaults() foundation.UserDefaults } // A controller that accesses user preference information for your app from the user’s defaults database. [Full Topic] @@ -63,10 +63,6 @@ func (uc _UserDefaultsControllerClass) Alloc() UserDefaultsController { return rv } -func UserDefaultsController_Alloc() UserDefaultsController { - return UserDefaultsControllerClass.Alloc() -} - func (uc _UserDefaultsControllerClass) New() UserDefaultsController { rv := objc.Call[UserDefaultsController](uc, objc.Sel("new")) rv.Autorelease() @@ -82,14 +78,6 @@ 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 @@ -98,7 +86,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 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 [appkit/nsuserdefaultscontroller/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 { @@ -106,19 +94,11 @@ func (u_ UserDefaultsController) RevertToInitialValues(sender objc.IObject) objc return rv } -// Returns the instance of NSUserDefaults in use by the receiver. [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 -} - -// Returns whether the receiver has user default values that have not been saved to NSUserDefaults. [Full Topic] +// Saves the values of the receiver’s user default properties. [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")) +// [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 } @@ -137,19 +117,27 @@ func (u_ UserDefaultsController) SetAppliesImmediately(value bool) { objc.Call[objc.Void](u_, objc.Sel("setAppliesImmediately:"), value) } -// 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] +// 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) SetInitialValues(value map[string]objc.IObject) { - objc.Call[objc.Void](u_, objc.Sel("setInitialValues:"), value) +// [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] +// +// [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 } // Returns a key value coding compliant object that is used to access the user default properties. [Full Topic] @@ -160,17 +148,25 @@ func (u_ UserDefaultsController) Values() objc.Object { return rv } -// 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] +// 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 UserDefaultsController_SharedUserDefaultsController() UserDefaultsController { - return UserDefaultsControllerClass.SharedUserDefaultsController() +// [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] +// +// [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 } diff --git a/macos/appkit/user_interface_compression_options.gen.go b/macos/appkit/user_interface_compression_options.gen.go index d219b641..9aecc11a 100644 --- a/macos/appkit/user_interface_compression_options.gen.go +++ b/macos/appkit/user_interface_compression_options.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package appkit @@ -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 - OptionsByAddingOptions(options IUserInterfaceCompressionOptions) UserInterfaceCompressionOptions IntersectsOptions(options IUserInterfaceCompressionOptions) bool + OptionsByAddingOptions(options IUserInterfaceCompressionOptions) UserInterfaceCompressionOptions + OptionsByRemovingOptions(options IUserInterfaceCompressionOptions) UserInterfaceCompressionOptions IsEmpty() bool } @@ -53,6 +53,11 @@ 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 @@ -67,20 +72,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 } -func UserInterfaceCompressionOptions_Alloc() UserInterfaceCompressionOptions { - return UserInterfaceCompressionOptionsClass.Alloc() -} - func (uc _UserInterfaceCompressionOptionsClass) New() UserInterfaceCompressionOptions { rv := objc.Call[UserInterfaceCompressionOptions](uc, objc.Sel("new")) rv.Autorelease() @@ -91,14 +87,6 @@ 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:"), objc.Ptr(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 @@ -107,14 +95,6 @@ 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:"), objc.Ptr(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 @@ -123,42 +103,35 @@ func (u_ UserInterfaceCompressionOptions) IntersectsOptions(options IUserInterfa return rv } -// An option specifying that views should reduce their internal metrics. [Full Topic] +// Creates a new compression options object representing the union with the provided options. [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")) +// [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:"), objc.Ptr(options)) 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() -} - -// A Boolean value that denotes whether the option is empty. [Full Topic] +// Creates a new compression options object with the supplied options removed. [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")) +// [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:"), objc.Ptr(options)) return rv } -// An option specifying that views should no longer maintain equal width constraints. [Full Topic] +// An option specifying that views should hide their text. [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")) +// [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 no longer maintain equal width constraints. [Full Topic] +// An option specifying that views should hide their text. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsuserinterfacecompressionoptions/2909966-breakequalwidthsoption?language=objc -func UserInterfaceCompressionOptions_BreakEqualWidthsOption() UserInterfaceCompressionOptions { - return UserInterfaceCompressionOptionsClass.BreakEqualWidthsOption() +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsuserinterfacecompressionoptions/2909971-hidetextoption?language=objc +func UserInterfaceCompressionOptions_HideTextOption() UserInterfaceCompressionOptions { + return UserInterfaceCompressionOptionsClass.HideTextOption() } // An option that represents the union of all standard compression options. [Full Topic] @@ -176,21 +149,6 @@ 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 @@ -205,3 +163,41 @@ 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.gen.go b/macos/appkit/user_interface_compression_protocol.gen.go similarity index 67% rename from macos/appkit/user_interface_compression.gen.go rename to macos/appkit/user_interface_compression_protocol.gen.go index 66fe114e..8be5d563 100644 --- a/macos/appkit/user_interface_compression.gen.go +++ b/macos/appkit/user_interface_compression_protocol.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package appkit @@ -11,55 +11,58 @@ import ( // // [Full Topic]: https://developer.apple.com/documentation/appkit/nsuserinterfacecompression?language=objc type PUserInterfaceCompression interface { - // optional - MinimumSizeWithPrioritizedCompressionOptions(prioritizedOptions []UserInterfaceCompressionOptions) foundation.Size - HasMinimumSizeWithPrioritizedCompressionOptions() bool - // optional CompressWithPrioritizedCompressionOptions(prioritizedOptions []UserInterfaceCompressionOptions) HasCompressWithPrioritizedCompressionOptions() bool // optional - ActiveCompressionOptions() IUserInterfaceCompressionOptions + MinimumSizeWithPrioritizedCompressionOptions(prioritizedOptions []UserInterfaceCompressionOptions) foundation.Size + HasMinimumSizeWithPrioritizedCompressionOptions() bool + + // optional + ActiveCompressionOptions() UserInterfaceCompressionOptions HasActiveCompressionOptions() bool } -// A concrete type wrapper for the [PUserInterfaceCompression] protocol. -type UserInterfaceCompressionWrapper struct { +// ensure impl type implements protocol interface +var _ PUserInterfaceCompression = (*UserInterfaceCompressionObject)(nil) + +// A concrete type for the [PUserInterfaceCompression] protocol. +type UserInterfaceCompressionObject struct { objc.Object } -func (u_ UserInterfaceCompressionWrapper) HasMinimumSizeWithPrioritizedCompressionOptions() bool { - return u_.RespondsToSelector(objc.Sel("minimumSizeWithPrioritizedCompressionOptions:")) +func (u_ UserInterfaceCompressionObject) HasCompressWithPrioritizedCompressionOptions() bool { + return u_.RespondsToSelector(objc.Sel("compressWithPrioritizedCompressionOptions:")) } -// Returns the minimum size a view can achieve by applying the supplied compression options. [Full Topic] +// Compress the view by applying the specified compression options. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsuserinterfacecompression/2909973-minimumsizewithprioritizedcompre?language=objc -func (u_ UserInterfaceCompressionWrapper) MinimumSizeWithPrioritizedCompressionOptions(prioritizedOptions []IUserInterfaceCompressionOptions) foundation.Size { - rv := objc.Call[foundation.Size](u_, objc.Sel("minimumSizeWithPrioritizedCompressionOptions:"), prioritizedOptions) - return rv +// [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_ UserInterfaceCompressionWrapper) HasCompressWithPrioritizedCompressionOptions() bool { - return u_.RespondsToSelector(objc.Sel("compressWithPrioritizedCompressionOptions:")) +func (u_ UserInterfaceCompressionObject) HasMinimumSizeWithPrioritizedCompressionOptions() bool { + return u_.RespondsToSelector(objc.Sel("minimumSizeWithPrioritizedCompressionOptions:")) } -// Compress the view by applying the specified compression options. [Full Topic] +// Returns the minimum size a view can achieve by applying the supplied compression options. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsuserinterfacecompression/2909978-compresswithprioritizedcompressi?language=objc -func (u_ UserInterfaceCompressionWrapper) CompressWithPrioritizedCompressionOptions(prioritizedOptions []IUserInterfaceCompressionOptions) { - objc.Call[objc.Void](u_, objc.Sel("compressWithPrioritizedCompressionOptions:"), prioritizedOptions) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsuserinterfacecompression/2909973-minimumsizewithprioritizedcompre?language=objc +func (u_ UserInterfaceCompressionObject) MinimumSizeWithPrioritizedCompressionOptions(prioritizedOptions []UserInterfaceCompressionOptions) foundation.Size { + rv := objc.Call[foundation.Size](u_, objc.Sel("minimumSizeWithPrioritizedCompressionOptions:"), prioritizedOptions) + return rv } -func (u_ UserInterfaceCompressionWrapper) HasActiveCompressionOptions() bool { +func (u_ UserInterfaceCompressionObject) HasActiveCompressionOptions() bool { return u_.RespondsToSelector(objc.Sel("activeCompressionOptions")) } // The compression options that are currently applied to the view. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/appkit/nsuserinterfacecompression/2909984-activecompressionoptions?language=objc -func (u_ UserInterfaceCompressionWrapper) ActiveCompressionOptions() UserInterfaceCompressionOptions { +func (u_ UserInterfaceCompressionObject) ActiveCompressionOptions() UserInterfaceCompressionOptions { rv := objc.Call[UserInterfaceCompressionOptions](u_, objc.Sel("activeCompressionOptions")) return rv } diff --git a/macos/appkit/user_interface_item_identification.gen.go b/macos/appkit/user_interface_item_identification_protocol.gen.go similarity index 65% rename from macos/appkit/user_interface_item_identification.gen.go rename to macos/appkit/user_interface_item_identification_protocol.gen.go index ab6ebbad..9ff3a020 100644 --- a/macos/appkit/user_interface_item_identification.gen.go +++ b/macos/appkit/user_interface_item_identification_protocol.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package appkit @@ -19,30 +19,33 @@ type PUserInterfaceItemIdentification interface { HasIdentifier() bool } -// A concrete type wrapper for the [PUserInterfaceItemIdentification] protocol. -type UserInterfaceItemIdentificationWrapper struct { +// ensure impl type implements protocol interface +var _ PUserInterfaceItemIdentification = (*UserInterfaceItemIdentificationObject)(nil) + +// A concrete type for the [PUserInterfaceItemIdentification] protocol. +type UserInterfaceItemIdentificationObject struct { objc.Object } -func (u_ UserInterfaceItemIdentificationWrapper) HasSetIdentifier() bool { +func (u_ UserInterfaceItemIdentificationObject) HasSetIdentifier() bool { return u_.RespondsToSelector(objc.Sel("setIdentifier:")) } // A string that identifies the user interface item. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/appkit/nsuserinterfaceitemidentification/1396829-identifier?language=objc -func (u_ UserInterfaceItemIdentificationWrapper) SetIdentifier(value UserInterfaceItemIdentifier) { +func (u_ UserInterfaceItemIdentificationObject) SetIdentifier(value UserInterfaceItemIdentifier) { objc.Call[objc.Void](u_, objc.Sel("setIdentifier:"), value) } -func (u_ UserInterfaceItemIdentificationWrapper) HasIdentifier() bool { +func (u_ UserInterfaceItemIdentificationObject) HasIdentifier() bool { return u_.RespondsToSelector(objc.Sel("identifier")) } // A string that identifies the user interface item. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/appkit/nsuserinterfaceitemidentification/1396829-identifier?language=objc -func (u_ UserInterfaceItemIdentificationWrapper) Identifier() UserInterfaceItemIdentifier { +func (u_ UserInterfaceItemIdentificationObject) Identifier() UserInterfaceItemIdentifier { rv := objc.Call[UserInterfaceItemIdentifier](u_, objc.Sel("identifier")) return rv } diff --git a/macos/appkit/user_interface_item_searching.gen.go b/macos/appkit/user_interface_item_searching_protocol.gen.go similarity index 69% rename from macos/appkit/user_interface_item_searching.gen.go rename to macos/appkit/user_interface_item_searching_protocol.gen.go index 1eb2043b..360726de 100644 --- a/macos/appkit/user_interface_item_searching.gen.go +++ b/macos/appkit/user_interface_item_searching_protocol.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package appkit @@ -14,6 +14,10 @@ type PUserInterfaceItemSearching interface { LocalizedTitlesForItem(item objc.Object) []string HasLocalizedTitlesForItem() bool + // optional + ShowAllHelpTopicsForSearchString(searchString string) + HasShowAllHelpTopicsForSearchString() bool + // optional PerformActionForItem(item objc.Object) HasPerformActionForItem() bool @@ -21,58 +25,57 @@ type PUserInterfaceItemSearching interface { // optional SearchForItemsWithSearchStringResultLimitMatchedItemHandler(searchString string, resultLimit int, handleMatchedItems func(items []objc.Object)) HasSearchForItemsWithSearchStringResultLimitMatchedItemHandler() bool - - // optional - ShowAllHelpTopicsForSearchString(searchString string) - HasShowAllHelpTopicsForSearchString() bool } -// A concrete type wrapper for the [PUserInterfaceItemSearching] protocol. -type UserInterfaceItemSearchingWrapper struct { +// ensure impl type implements protocol interface +var _ PUserInterfaceItemSearching = (*UserInterfaceItemSearchingObject)(nil) + +// A concrete type for the [PUserInterfaceItemSearching] protocol. +type UserInterfaceItemSearchingObject struct { objc.Object } -func (u_ UserInterfaceItemSearchingWrapper) HasLocalizedTitlesForItem() bool { +func (u_ UserInterfaceItemSearchingObject) HasLocalizedTitlesForItem() bool { return u_.RespondsToSelector(objc.Sel("localizedTitlesForItem:")) } // Returns an array of localized strings that will form the help menu item. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/appkit/nsuserinterfaceitemsearching/1420814-localizedtitlesforitem?language=objc -func (u_ UserInterfaceItemSearchingWrapper) LocalizedTitlesForItem(item objc.IObject) []string { +func (u_ UserInterfaceItemSearchingObject) LocalizedTitlesForItem(item objc.Object) []string { rv := objc.Call[[]string](u_, objc.Sel("localizedTitlesForItem:"), item) return rv } -func (u_ UserInterfaceItemSearchingWrapper) HasPerformActionForItem() bool { +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:")) } // Invoked when the user selects a search result in Help menu. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/appkit/nsuserinterfaceitemsearching/1420812-performactionforitem?language=objc -func (u_ UserInterfaceItemSearchingWrapper) PerformActionForItem(item objc.IObject) { +func (u_ UserInterfaceItemSearchingObject) PerformActionForItem(item objc.Object) { objc.Call[objc.Void](u_, objc.Sel("performActionForItem:"), item) } -func (u_ UserInterfaceItemSearchingWrapper) HasSearchForItemsWithSearchStringResultLimitMatchedItemHandler() bool { +func (u_ UserInterfaceItemSearchingObject) HasSearchForItemsWithSearchStringResultLimitMatchedItemHandler() bool { return u_.RespondsToSelector(objc.Sel("searchForItemsWithSearchString:resultLimit:matchedItemHandler:")) } // Search for the specified items, with the result limit. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/appkit/nsuserinterfaceitemsearching/1420816-searchforitemswithsearchstring?language=objc -func (u_ UserInterfaceItemSearchingWrapper) SearchForItemsWithSearchStringResultLimitMatchedItemHandler(searchString string, resultLimit int, handleMatchedItems func(items []objc.Object)) { +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_ UserInterfaceItemSearchingWrapper) 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_ UserInterfaceItemSearchingWrapper) ShowAllHelpTopicsForSearchString(searchString string) { - objc.Call[objc.Void](u_, objc.Sel("showAllHelpTopicsForSearchString:"), searchString) -} diff --git a/macos/appkit/user_interface_validations.gen.go b/macos/appkit/user_interface_validations_protocol.gen.go similarity index 61% rename from macos/appkit/user_interface_validations.gen.go rename to macos/appkit/user_interface_validations_protocol.gen.go index 1383ef38..1e04031f 100644 --- a/macos/appkit/user_interface_validations.gen.go +++ b/macos/appkit/user_interface_validations_protocol.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package appkit @@ -11,23 +11,26 @@ import ( // [Full Topic]: https://developer.apple.com/documentation/appkit/nsuserinterfacevalidations?language=objc type PUserInterfaceValidations interface { // optional - ValidateUserInterfaceItem(item ValidatedUserInterfaceItemWrapper) bool + ValidateUserInterfaceItem(item ValidatedUserInterfaceItemObject) bool HasValidateUserInterfaceItem() bool } -// A concrete type wrapper for the [PUserInterfaceValidations] protocol. -type UserInterfaceValidationsWrapper struct { +// ensure impl type implements protocol interface +var _ PUserInterfaceValidations = (*UserInterfaceValidationsObject)(nil) + +// A concrete type for the [PUserInterfaceValidations] protocol. +type UserInterfaceValidationsObject struct { objc.Object } -func (u_ UserInterfaceValidationsWrapper) HasValidateUserInterfaceItem() bool { +func (u_ UserInterfaceValidationsObject) HasValidateUserInterfaceItem() bool { return u_.RespondsToSelector(objc.Sel("validateUserInterfaceItem:")) } // Returns a Boolean value that indicates whether the sender should be enabled. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/appkit/nsuserinterfacevalidations/1528162-validateuserinterfaceitem?language=objc -func (u_ UserInterfaceValidationsWrapper) ValidateUserInterfaceItem(item PValidatedUserInterfaceItem) bool { +func (u_ UserInterfaceValidationsObject) ValidateUserInterfaceItem(item ValidatedUserInterfaceItemObject) bool { po0 := objc.WrapAsProtocol("NSValidatedUserInterfaceItem", item) rv := objc.Call[bool](u_, objc.Sel("validateUserInterfaceItem:"), po0) return rv diff --git a/macos/appkit/validated_user_interface_item.gen.go b/macos/appkit/validated_user_interface_item_protocol.gen.go similarity index 66% rename from macos/appkit/validated_user_interface_item.gen.go rename to macos/appkit/validated_user_interface_item_protocol.gen.go index 6c1fa211..1bfc3c38 100644 --- a/macos/appkit/validated_user_interface_item.gen.go +++ b/macos/appkit/validated_user_interface_item_protocol.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package appkit @@ -19,31 +19,34 @@ type PValidatedUserInterfaceItem interface { HasTag() bool } -// A concrete type wrapper for the [PValidatedUserInterfaceItem] protocol. -type ValidatedUserInterfaceItemWrapper struct { +// ensure impl type implements protocol interface +var _ PValidatedUserInterfaceItem = (*ValidatedUserInterfaceItemObject)(nil) + +// A concrete type for the [PValidatedUserInterfaceItem] protocol. +type ValidatedUserInterfaceItemObject struct { objc.Object } -func (v_ ValidatedUserInterfaceItemWrapper) HasAction() bool { +func (v_ ValidatedUserInterfaceItemObject) HasAction() bool { return v_.RespondsToSelector(objc.Sel("action")) } // Returns the selector of the receiver’s action method. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/appkit/nsvalidateduserinterfaceitem/1527339-action?language=objc -func (v_ ValidatedUserInterfaceItemWrapper) Action() objc.Selector { +func (v_ ValidatedUserInterfaceItemObject) Action() objc.Selector { rv := objc.Call[objc.Selector](v_, objc.Sel("action")) return rv } -func (v_ ValidatedUserInterfaceItemWrapper) HasTag() bool { +func (v_ ValidatedUserInterfaceItemObject) HasTag() bool { return v_.RespondsToSelector(objc.Sel("tag")) } // Returns the receiver’s tag integer. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/appkit/nsvalidateduserinterfaceitem/1531030-tag?language=objc -func (v_ ValidatedUserInterfaceItemWrapper) Tag() int { +func (v_ ValidatedUserInterfaceItemObject) Tag() int { rv := objc.Call[int](v_, objc.Sel("tag")) return rv } diff --git a/macos/appkit/view.gen.go b/macos/appkit/view.gen.go index 6d170dac..acccb803 100644 --- a/macos/appkit/view.gen.go +++ b/macos/appkit/view.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package appkit @@ -21,342 +21,553 @@ type _ViewClass struct { // An interface definition for the [View] class. type IView interface { IResponder - RotateByAngle(angle float64) - AdjustPageHeightNewTopBottomLimit(newBottom *float64, oldTop float64, oldBottom float64, bottomLimit float64) + ConvertRectFromView(rect foundation.Rect, view IView) foundation.Rect + ViewDidHide() + SetContentHuggingPriorityForOrientation(priority LayoutPriority, orientation LayoutConstraintOrientation) + DrawFocusRingMask() + ViewDidUnhide() RemoveCursorRectCursor(rect foundation.Rect, object ICursor) - 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 + CenterScanRect(rect foundation.Rect) foundation.Rect + ConvertSizeToView(size foundation.Size, view IView) foundation.Size WillRemoveSubview(subview IView) - AdjustScroll(newVisible foundation.Rect) foundation.Rect + 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 AddGestureRecognizer(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 + 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) DrawPageBorderWithSize(borderSize foundation.Size) - AddTrackingArea(trackingArea ITrackingArea) - ScrollRectToVisible(rect foundation.Rect) bool - ResetCursorRects() - ShouldDelayWindowOrderingForEvent(event IEvent) bool - ConvertSizeFromBacking(size foundation.Size) foundation.Size + GetRectsExposedDuringLiveResizeCount(exposedRects *foundation.Rect, count *int) WritePDFInsideRectToPasteboard(rect foundation.Rect, pasteboard IPasteboard) - UpdateConstraintsForSubtreeIfNeeded() - ConvertPointToLayer(point foundation.Point) foundation.Point - RectForSmartMagnificationAtPointInRect(location foundation.Point, visibleRect foundation.Rect) foundation.Rect - ScrollPoint(point foundation.Point) - ViewDidMoveToSuperview() - MenuForEvent(event IEvent) Menu - DataWithEPSInsideRect(rect foundation.Rect) []byte - AncestorSharedWithView(view IView) View - UpdateLayer() - AddCursorRectCursor(rect foundation.Rect, object ICursor) - RemoveFromSuperview() - EndDocument() - TranslateRectsNeedingDisplayInRectBy(clipRect foundation.Rect, delta foundation.Size) - RemoveLayoutGuide(guide ILayoutGuide) + 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 - 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) - ViewDidHide() - CacheDisplayInRectToBitmapImageRep(rect foundation.Rect, bitmapImageRep IBitmapImageRep) + 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) + RectForSmartMagnificationAtPointInRect(location foundation.Point, visibleRect foundation.Rect) foundation.Rect + ViewWillMoveToWindow(newWindow IWindow) + ExitFullScreenModeWithOptions(options map[ViewFullScreenModeOptionKey]objc.IObject) + DataWithEPSInsideRect(rect foundation.Rect) []byte + ConvertPointToView(point foundation.Point, view IView) foundation.Point + LayoutSubtreeIfNeeded() + ViewWillMoveToSuperview(newSuperview IView) + RemoveTrackingArea(trackingArea ITrackingArea) RemoveFromSuperviewWithoutNeedingDisplay() - BeginDraggingSessionWithItemsEventSource(items []IDraggingItem, event IEvent, source PDraggingSource) DraggingSession - BeginDraggingSessionWithItemsEventSourceObject(items []IDraggingItem, event IEvent, sourceObject objc.IObject) DraggingSession - WillOpenMenuWithEvent(menu IMenu, event IEvent) - Display() + DiscardCursorRects() ResizeWithOldSuperviewSize(oldSize foundation.Size) + 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 - SetContentHuggingPriorityForOrientation(priority LayoutPriority, orientation LayoutConstraintOrientation) - ReflectScrolledClipView(clipView IClipView) + 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) + BeginDraggingSessionWithItemsEventSource(items []IDraggingItem, event IEvent, source PDraggingSource) DraggingSession + BeginDraggingSessionWithItemsEventSourceObject(items []IDraggingItem, event IEvent, sourceObject objc.IObject) DraggingSession SetKeyboardFocusRingNeedsDisplayInRect(rect foundation.Rect) - UpdateConstraints() - RemoveTrackingRect(tag TrackingRectTag) + ResetCursorRects() + InvalidateIntrinsicContentSize() + SetNeedsDisplayInRect(invalidRect foundation.Rect) + UpdateLayer() + ViewDidChangeBackingProperties() SetFrameSize(newSize foundation.Size) - 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 + SetFrameOrigin(newOrigin foundation.Point) Print(sender objc.IObject) - ContentCompressionResistancePriorityForOrientation(orientation LayoutConstraintOrientation) LayoutPriority + 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 PrepareContentInRect(rect foundation.Rect) - RemoveConstraints(constraints []ILayoutConstraint) - BeginDocument() - ResizeSubviewsWithOldSize(oldSize foundation.Size) - SetBoundsSize(newSize foundation.Size) DrawRect(dirtyRect foundation.Rect) - 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) + RemoveLayoutGuide(guide ILayoutGuide) + CacheDisplayInRectToBitmapImageRep(rect foundation.Rect, bitmapImageRep IBitmapImageRep) + KnowsPageRange(range_ foundation.RangePointer) bool SortSubviewsUsingFunctionContext(compare func(arg0 View, arg1 View, arg2 unsafe.Pointer) foundation.ComparisonResult, context unsafe.Pointer) - ViewDidEndLiveResize() - ViewWillMoveToWindow(newWindow IWindow) + 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) DisplayIfNeededIgnoringOpacity() - AlignmentRectForFrame(frame foundation.Rect) foundation.Rect + 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) UnregisterDraggedTypes() - RemoveGestureRecognizer(gestureRecognizer IGestureRecognizer) - AdjustPageWidthNewLeftRightLimit(newRight *float64, oldLeft float64, oldRight float64, rightLimit float64) - ViewWillStartLiveResize() + RulerViewDidMoveMarker(ruler IRulerView, marker IRulerMarker) RectForPage(page int) foundation.Rect - ViewWillDraw() - AddLayoutGuide(guide ILayoutGuide) - NoteFocusRingMaskChanged() - ViewWithTag(tag int) View - WriteEPSInsideRectToPasteboard(rect foundation.Rect, pasteboard IPasteboard) - ExerciseAmbiguityInLayout() - ViewDidMoveToWindow() - LayoutSubtreeIfNeeded() - GetRectsBeingDrawnCount(rects *foundation.Rect, 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 - LayerContentsRedrawPolicy() ViewLayerContentsRedrawPolicy - SetLayerContentsRedrawPolicy(value ViewLayerContentsRedrawPolicy) - Layer() quartzcore.Layer - SetLayer(value quartzcore.ILayer) + ConvertRectFromBacking(rect foundation.Rect) foundation.Rect + ConvertPointToLayer(point foundation.Point) foundation.Point + GetRectsBeingDrawnCount(rects *foundation.Rect, count *int) + 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 - LeftAnchor() LayoutXAxisAnchor - VisibleRect() foundation.Rect - InputContext() TextInputContext - IsRotatedOrScaledFromBase() bool - IsHidden() bool - SetHidden(value bool) - NeedsLayout() bool - SetNeedsLayout(value bool) - NextKeyView() View - SetNextKeyView(value IView) - FirstBaselineOffsetFromTop() float64 - FittingSize() foundation.Size - BoundsRotation() float64 - SetBoundsRotation(value float64) - AlignmentRectInsets() foundation.EdgeInsets - PageFooter() foundation.AttributedString - PostsFrameChangedNotifications() bool - SetPostsFrameChangedNotifications(value bool) - NeedsPanelToBecomeKey() bool - ContentFilters() []coreimage.Filter - SetContentFilters(value []coreimage.IFilter) - NextValidKeyView() View - ToolTip() string - SetToolTip(value string) - 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) - Bounds() foundation.Rect - SetBounds(value foundation.Rect) - BaselineOffsetFromBottom() float64 + TopAnchor() LayoutYAxisAnchor + WantsRestingTouches() bool + SetWantsRestingTouches(value bool) SafeAreaInsets() foundation.EdgeInsets - InLiveResize() bool - IsDrawingFindIndicator() bool - CandidateListTouchBarItem() CandidateListTouchBarItem - LayoutMarginsGuide() LayoutGuide - UserInterfaceLayoutDirection() UserInterfaceLayoutDirection - SetUserInterfaceLayoutDirection(value UserInterfaceLayoutDirection) - BottomAnchor() LayoutYAxisAnchor - 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) + LeftAnchor() LayoutXAxisAnchor + IsVerticalContentSizeConstraintActive() bool + SetVerticalContentSizeConstraintActive(value bool) FocusRingMaskBounds() foundation.Rect - Frame() foundation.Rect - SetFrame(value foundation.Rect) - CanBecomeKeyView() bool - IsInFullScreenMode() bool - CanDrawConcurrently() bool - SetCanDrawConcurrently(value bool) - Tag() int + WidthAdjustLimit() float64 + IsHiddenOrHasHiddenAncestor() bool Shadow() Shadow SetShadow(value IShadow) - WidthAdjustLimit() float64 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 + IsHidden() bool + SetHidden(value bool) CompositingFilter() coreimage.Filter SetCompositingFilter(value coreimage.IFilter) - RegisteredDraggedTypes() []PasteboardType - IsHiddenOrHasHiddenAncestor() bool - Window() Window - IsVerticalContentSizeConstraintActive() bool - SetVerticalContentSizeConstraintActive(value bool) + IsOpaque() bool AutoresizingMask() AutoresizingMaskOptions SetAutoresizingMask(value AutoresizingMaskOptions) + AlphaValue() float64 + SetAlphaValue(value float64) + HeightAnchor() LayoutDimension BackgroundFilters() []coreimage.Filter SetBackgroundFilters(value []coreimage.IFilter) - HasAmbiguousLayout() bool + 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 + 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 - IsHorizontalContentSizeConstraintActive() bool - SetHorizontalContentSizeConstraintActive(value bool) - AllowsVibrancy() bool - Subviews() []View - SetSubviews(value []IView) - IsFlipped() bool + FocusRingType() FocusRingType + SetFocusRingType(value FocusRingType) + WantsDefaultClipping() bool + FirstBaselineAnchor() LayoutYAxisAnchor RectPreservedDuringLiveResize() foundation.Rect - MouseDownCanMoveWindow() bool - CenterXAnchor() LayoutXAxisAnchor - WantsRestingTouches() bool - SetWantsRestingTouches(value bool) + OpaqueAncestor() View + EnclosingScrollView() ScrollView + ToolTip() string + SetToolTip(value string) + NeedsDisplay() bool + SetNeedsDisplay(value bool) + AutoresizesSubviews() bool + SetAutoresizesSubviews(value bool) + CanBecomeKeyView() bool LastBaselineAnchor() LayoutYAxisAnchor - WidthAnchor() LayoutDimension + FirstBaselineOffsetFromTop() float64 + UserInterfaceLayoutDirection() UserInterfaceLayoutDirection + SetUserInterfaceLayoutDirection(value UserInterfaceLayoutDirection) FrameRotation() float64 SetFrameRotation(value float64) - Superview() View - NeedsDisplay() bool - SetNeedsDisplay(value bool) + Layer() quartzcore.Layer + SetLayer(value quartzcore.ILayer) + AllowsVibrancy() bool + LayoutMarginsGuide() LayoutGuide + IsRotatedOrScaledFromBase() bool + GestureRecognizers() []GestureRecognizer + SetGestureRecognizers(value []IGestureRecognizer) + RightAnchor() LayoutXAxisAnchor + 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) + BottomAnchor() LayoutYAxisAnchor + WidthAnchor() LayoutDimension + Subviews() []View + SetSubviews(value []IView) + PageHeader() foundation.AttributedString + IsFlipped() bool + PostsFrameChangedNotifications() bool + SetPostsFrameChangedNotifications(value bool) + NextKeyView() View + SetNextKeyView(value IView) + Frame() foundation.Rect + SetFrame(value foundation.Rect) +} + +// 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, objc.Ptr(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, objc.Ptr(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, objc.Ptr(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:"), objc.Ptr(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] +// +// [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 +} + +// 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")) +} + +// 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) + return rv } -// The infrastructure for drawing, printing, and handling events in an app. [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?language=objc -type View struct { - Responder +// [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:"), objc.Ptr(clipView), point) } -func ViewFrom(ptr unsafe.Pointer) View { - return View{ - Responder: ResponderFrom(ptr), - } +// Adds a given tracking area to the view. [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:"), objc.Ptr(trackingArea)) } -func (v_ View) InitWithFrame(frameRect foundation.Rect) View { - rv := objc.Call[View](v_, objc.Sel("initWithFrame:"), frameRect) +// 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, objc.Ptr(view)) return rv } -// Initializes and returns a newly allocated NSView object with a specified frame rectangle. [Full Topic] +// Attaches a gesture recognizer to the view. [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 +// [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:"), objc.Ptr(gestureRecognizer)) } -func (vc _ViewClass) Alloc() View { - rv := objc.Call[View](vc, objc.Sel("alloc")) - return rv +// 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")) } -func View_Alloc() View { - return ViewClass.Alloc() +// 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:"), objc.Ptr(oldView), objc.Ptr(newView)) } -func (vc _ViewClass) New() View { - rv := objc.Call[View](vc, objc.Sel("new")) - rv.Autorelease() +// 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:"), objc.Ptr(ruler), objc.Ptr(marker), location) return rv } -func NewView() View { - return ViewClass.New() +// 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:"), objc.Ptr(ruler), objc.Ptr(newClient)) } -func (v_ View) Init() View { - rv := objc.Call[View](v_, objc.Sel("init")) +// 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) +} + +// 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")) return rv } -// Rotates the view’s bounds rectangle by a specified degree value around the origin of the coordinate system, (0.0, 0.0). [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/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/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] +// +// [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) } // Overridden by subclasses to adjust page height during automatic pagination. [Full Topic] @@ -366,248 +577,255 @@ func (v_ View) AdjustPageHeightNewTopBottomLimit(newBottom *float64, oldTop floa objc.Call[objc.Void](v_, objc.Sel("adjustPageHeightNew:top:bottom:limit:"), newBottom, oldTop, oldBottom, bottomLimit) } -// Completely removes a cursor rectangle from the view. [Full Topic] +// Update constraints for 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, objc.Ptr(object)) +// [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")) } -// Returns a list of rectangles indicating the newly exposed areas of the view. [Full Topic] +// Converts a point from the coordinate system of a given view to that of the view. [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/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, objc.Ptr(view)) + return rv } -// Removes the tooltip identified by specified tag. [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/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/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 } -// Adds a view to the view’s subviews so it’s displayed above its siblings. [Full Topic] +// Returns a backing store pixel-aligned rectangle in local view coordinates. [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:"), objc.Ptr(view)) +// [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 } -// Sets the view to full screen mode. [Full Topic] +// Informs the client that aRulerView will move aMarker, an NSRulerMarker already on the ruler view. [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:"), objc.Ptr(screen), options) +// [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:"), objc.Ptr(ruler), objc.Ptr(marker), location) return rv } -// Informs the view that its effective appearance changed. [Full Topic] +// 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/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/1483423-begindocument?language=objc +func (v_ View) BeginDocument() { + objc.Call[objc.Void](v_, objc.Sel("beginDocument")) } -// Invalidates all cursor rectangles set up using addCursorRect:cursor:. [Full Topic] +// Returns the view’s alignment rectangle for a given frame. [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/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 } -// Converts a point from the view’s interior coordinate system to its pixel aligned backing store coordinate system. [Full Topic] +// Invoked by [appkit/nsview/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/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/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 } -// Sets the origin of the view’s frame rectangle to the specified point, effectively repositioning it within its superview. [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/1483283-setframeorigin?language=objc -func (v_ View) SetFrameOrigin(newOrigin foundation.Point) { - objc.Call[objc.Void](v_, objc.Sel("setFrameOrigin:"), newOrigin) +// [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:"), objc.Ptr(menu), objc.Ptr(event)) } -// Instructs the view to exit full screen mode. [Full Topic] +// Detaches a gesture recognizer from the view. [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/1483789-removegesturerecognizer?language=objc +func (v_ View) RemoveGestureRecognizer(gestureRecognizer IGestureRecognizer) { + objc.Call[objc.Void](v_, objc.Sel("removeGestureRecognizer:"), objc.Ptr(gestureRecognizer)) } -// Called after a contextual menu that was displayed from the receiving view has been closed. [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/1483770-didclosemenu?language=objc -func (v_ View) DidCloseMenuWithEvent(menu IMenu, event IEvent) { - objc.Call[objc.Void](v_, objc.Sel("didCloseMenu:withEvent:"), objc.Ptr(menu), objc.Ptr(event)) +// [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) } -// Adds a constraint on the layout of the receiving view or its subviews. [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/1526969-addconstraint?language=objc -func (v_ View) AddConstraint(constraint ILayoutConstraint) { - objc.Call[objc.Void](v_, objc.Sel("addConstraint:"), objc.Ptr(constraint)) +// [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) } -// Adds multiple constraints on the layout of the receiving view or its subviews. [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/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/1483499-writepdfinsiderect?language=objc +func (v_ View) WritePDFInsideRectToPasteboard(rect foundation.Rect, pasteboard IPasteboard) { + objc.Call[objc.Void](v_, objc.Sel("writePDFInsideRect:toPasteboard:"), rect, objc.Ptr(pasteboard)) } -// 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] +// Converts a size from another view’s coordinate system to that of the view. [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) +// [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, objc.Ptr(view)) return rv } -// Converts a size from the view’s interior coordinate system to its pixel aligned backing store coordinate system. [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/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/1483721-scaleunitsquaretosize?language=objc +func (v_ View) ScaleUnitSquareToSize(newUnitSize foundation.Size) { + objc.Call[objc.Void](v_, objc.Sel("scaleUnitSquareToSize:"), newUnitSize) } -// Overridden by subclasses to perform additional actions before subviews are removed from the view. [Full Topic] +// Writes the end of a conforming page. [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:"), objc.Ptr(subview)) +// [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")) } -// Overridden by subclasses to modify a given rectangle, returning the altered rectangle. [Full Topic] +// 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] // -// [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 +// [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) } -// Attaches a gesture recognizer to the view. [Full Topic] +// Perform layout in concert with the constraint-based layout system. [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:"), objc.Ptr(gestureRecognizer)) +// [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")) } -// Converts a rectangle from its pixel aligned backing store coordinate system to the view’s interior coordinate system. [Full Topic] +// Acts as [appkit/nsview/displayifneeded], confining drawing to a specified region of 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/1483813-displayifneededinrect?language=objc +func (v_ View) DisplayIfNeededInRect(rect foundation.Rect) { + objc.Call[objc.Void](v_, objc.Sel("displayIfNeededInRect:"), rect) } -// Returns a bitmap-representation object suitable for caching the specified portion of the view. [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/1483440-bitmapimagerepforcachingdisplayi?language=objc -func (v_ View) BitmapImageRepForCachingDisplayInRect(rect foundation.Rect) BitmapImageRep { - rv := objc.Call[BitmapImageRep](v_, objc.Sel("bitmapImageRepForCachingDisplayInRect:"), rect) +// [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 } -// Shows a window displaying the definition of the attributed string at the specified point. [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/1483747-showdefinitionforattributedstrin?language=objc -func (v_ View) ShowDefinitionForAttributedStringAtPoint(attrString foundation.IAttributedString, textBaselineOrigin foundation.Point) { - objc.Call[objc.Void](v_, objc.Sel("showDefinitionForAttributedString:atPoint:"), objc.Ptr(attrString), textBaselineOrigin) +// [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")) } -// 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] +// Overridden by subclasses to adjust page width during automatic pagination. [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/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) +} + +// 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/1483471-autoscroll?language=objc +func (v_ View) Autoscroll(event IEvent) bool { + rv := objc.Call[bool](v_, objc.Sel("autoscroll:"), objc.Ptr(event)) return rv } -// Writes the end of a conforming page. [Full Topic] +// [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/1524292-rulerview?language=objc +func (v_ View) RulerViewPointForLocation(ruler IRulerView, point float64) foundation.Point { + rv := objc.Call[foundation.Point](v_, objc.Sel("rulerView:pointForLocation:"), objc.Ptr(ruler), point) + return rv } -// 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] +// 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/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/1483444-rotatebyangle?language=objc +func (v_ View) RotateByAngle(angle float64) { + objc.Call[objc.Void](v_, objc.Sel("rotateByAngle:"), angle) } -// Allows applications that use the AppKit pagination facility to draw additional marks on each logical page. [Full Topic] +// This method is invoked at the end of the printing session. [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/1483610-enddocument?language=objc +func (v_ View) EndDocument() { + objc.Call[objc.Void](v_, objc.Sel("endDocument")) } -// Adds a given tracking area to the view. [Full Topic] +// 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/1483489-addtrackingarea?language=objc -func (v_ View) AddTrackingArea(trackingArea ITrackingArea) { - objc.Call[objc.Void](v_, objc.Sel("addTrackingArea:"), objc.Ptr(trackingArea)) +// [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:"), objc.Ptr(event)) + return rv } -// 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] +// 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/1483811-scrollrecttovisible?language=objc -func (v_ View) ScrollRectToVisible(rect foundation.Rect) bool { - rv := objc.Call[bool](v_, objc.Sel("scrollRectToVisible:"), 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 } -// Overridden by subclasses to define their default cursor rectangles. [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/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/1526934-exerciseambiguityinlayout?language=objc +func (v_ View) ExerciseAmbiguityInLayout() { + objc.Call[objc.Void](v_, objc.Sel("exerciseAmbiguityInLayout")) } -// 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] +// 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/1483244-shoulddelaywindoworderingforeven?language=objc -func (v_ View) ShouldDelayWindowOrderingForEvent(event IEvent) bool { - rv := objc.Call[bool](v_, objc.Sel("shouldDelayWindowOrderingForEvent:"), objc.Ptr(event)) - return rv +// [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) } -// Converts a size from its pixel aligned backing store coordinate system to the view’s interior coordinate system. [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/1483319-convertsizefrombacking?language=objc -func (v_ View) ConvertSizeFromBacking(size foundation.Size) foundation.Size { - rv := objc.Call[foundation.Size](v_, objc.Sel("convertSizeFromBacking:"), size) +// [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 } -// Writes PDF data that draws the region of the view within a specified rectangle onto a pasteboard. [Full Topic] +// Informs the client that the user has pressed the mouse button while the cursor is in the ruler area of aRulerView. [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, objc.Ptr(pasteboard)) +// [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:"), objc.Ptr(ruler), objc.Ptr(event)) } -// Updates the constraints for the receiving view and its subviews. [Full Topic] +// Removes the tooltip identified by specified tag. [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/1483522-removetooltip?language=objc +func (v_ View) RemoveToolTip(tag ToolTipTag) { + objc.Call[objc.Void](v_, objc.Sel("removeToolTip:"), tag) } -// Convert the size from the view’s interior coordinate system to the layer's interior coordinate system. [Full Topic] +// Translates the display rectangles by the specified delta. [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) - return rv +// [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) } // Returns the appropriate rectangle to use when magnifying around the specified point. [Full Topic] @@ -618,26 +836,18 @@ func (v_ View) RectForSmartMagnificationAtPointInRect(location foundation.Point, 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] -// -// [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) -} - -// Informs the view that its superview has changed (possibly to nil). [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/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/1483415-viewwillmovetowindow?language=objc +func (v_ View) ViewWillMoveToWindow(newWindow IWindow) { + objc.Call[objc.Void](v_, objc.Sel("viewWillMoveToWindow:"), objc.Ptr(newWindow)) } -// Overridden by subclasses to return a context-sensitive pop-up menu for a given mouse-down event. [Full Topic] +// Instructs the view to exit full screen mode. [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:"), objc.Ptr(event)) - return rv +// [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) } // Returns EPS data that draws the region of the view within a specified rectangle. [Full Topic] @@ -648,186 +858,186 @@ func (v_ View) DataWithEPSInsideRect(rect foundation.Rect) []byte { return rv } -// Returns the closest ancestor shared by the view and another specified view. [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/1483353-ancestorsharedwithview?language=objc -func (v_ View) AncestorSharedWithView(view IView) View { - rv := objc.Call[View](v_, objc.Sel("ancestorSharedWithView:"), objc.Ptr(view)) +// [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, objc.Ptr(view)) return rv } -// Updates the view’s content by modifying its underlying layer. [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/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/1526871-layoutsubtreeifneeded?language=objc +func (v_ View) LayoutSubtreeIfNeeded() { + objc.Call[objc.Void](v_, objc.Sel("layoutSubtreeIfNeeded")) } -// Establishes the cursor to be used when the mouse pointer lies within a specified region. [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/1483540-addcursorrect?language=objc -func (v_ View) AddCursorRectCursor(rect foundation.Rect, object ICursor) { - objc.Call[objc.Void](v_, objc.Sel("addCursorRect:cursor:"), rect, objc.Ptr(object)) +// [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:"), objc.Ptr(newSuperview)) } -// Unlinks the view from its superview and its window, removes it from the responder chain, and invalidates its cursor rectangles. [Full Topic] +// Removes a given tracking area from the view. [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/1483634-removetrackingarea?language=objc +func (v_ View) RemoveTrackingArea(trackingArea ITrackingArea) { + objc.Call[objc.Void](v_, objc.Sel("removeTrackingArea:"), objc.Ptr(trackingArea)) } -// This method is invoked at the end of the printing session. [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/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/1483644-removefromsuperviewwithoutneedin?language=objc +func (v_ View) RemoveFromSuperviewWithoutNeedingDisplay() { + objc.Call[objc.Void](v_, objc.Sel("removeFromSuperviewWithoutNeedingDisplay")) } -// Translates the display rectangles by the specified delta. [Full Topic] +// Invalidates all cursor rectangles set up using [appkit/nsview/addcursorrect]. [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/1483733-discardcursorrects?language=objc +func (v_ View) DiscardCursorRects() { + objc.Call[objc.Void](v_, objc.Sel("discardCursorRects")) } -// Removes the provided layout guide from the view. [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/1527086-removelayoutguide?language=objc -func (v_ View) RemoveLayoutGuide(guide ILayoutGuide) { - objc.Call[objc.Void](v_, objc.Sel("removeLayoutGuide:"), objc.Ptr(guide)) +// [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) } -// Acts as displayIfNeeded, confining drawing to a specified region of the view. [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/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/1483578-registerfordraggedtypes?language=objc +func (v_ View) RegisterForDraggedTypes(newTypes []PasteboardType) { + objc.Call[objc.Void](v_, objc.Sel("registerForDraggedTypes:"), newTypes) } -// Scrolls the view’s closest ancestor NSClipView object proportionally to the distance of an event that occurs outside of it. [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/1483471-autoscroll?language=objc -func (v_ View) Autoscroll(event IEvent) bool { - rv := objc.Call[bool](v_, objc.Sel("autoscroll:"), objc.Ptr(event)) +// [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 } -// Converts a rectangle from the coordinate system of another view to that of 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/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, objc.Ptr(view)) - 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) } -// 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] +// Requests permission for aRulerView to add aMarker, an NSRulerMarker being dragged onto the ruler by the user. [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:"), objc.Ptr(event)) +// [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:"), objc.Ptr(ruler), objc.Ptr(marker)) return rv } -// Returns the constraints impacting the layout of the view for a given orientation. [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/1525968-constraintsaffectinglayoutforori?language=objc -func (v_ View) ConstraintsAffectingLayoutForOrientation(orientation LayoutConstraintOrientation) []LayoutConstraint { - rv := objc.Call[[]LayoutConstraint](v_, objc.Sel("constraintsAffectingLayoutForOrientation:"), orientation) - return rv +// [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:"), objc.Ptr(subview)) } -// Removes the specified constraint from the view. [Full Topic] +// Updates the constraints for the receiving view and its subviews. [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:"), objc.Ptr(constraint)) +// [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")) } -// 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] +// Removes the specified constraints from the view. [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 +// [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) } -// Notifies the superview of a clip view that the clip view needs to reset the origin of its bounds rectangle. [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/1531337-scrollclipview?language=objc -func (v_ View) ScrollClipViewToPoint(clipView IClipView, point foundation.Point) { - objc.Call[objc.Void](v_, objc.Sel("scrollClipView:toPoint:"), objc.Ptr(clipView), point) +// [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 } -// Translates the view’s coordinate system so that its origin moves to a new location. [Full Topic] +// Requests permission for aRulerView to remove aMarker. [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) +// [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:"), objc.Ptr(ruler), objc.Ptr(marker)) + 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] +// 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/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/1483770-didclosemenu?language=objc +func (v_ View) DidCloseMenuWithEvent(menu IMenu, event IEvent) { + objc.Call[objc.Void](v_, objc.Sel("didCloseMenu:withEvent:"), objc.Ptr(menu), objc.Ptr(event)) } -// Converts a rectangle from the view’s interior coordinate system to its pixel aligned backing store coordinate system. [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/1483648-convertrecttobacking?language=objc -func (v_ View) ConvertRectToBacking(rect foundation.Rect) foundation.Rect { - rv := objc.Call[foundation.Rect](v_, objc.Sel("convertRectToBacking:"), rect) +// [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 } -// Invoked when the view is unhidden, either directly, or in response to an ancestor being unhidden [Full Topic] +// Informs the view that it’s required to draw content. [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")) +// [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")) } -// Invoked automatically when the view’s geometry changes such that its tracking areas need to be recalculated. [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/1483719-updatetrackingareas?language=objc -func (v_ View) UpdateTrackingAreas() { - objc.Call[objc.Void](v_, objc.Sel("updateTrackingAreas")) +// [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 } -// Responds when the view’s backing store properties change. [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/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/1483783-addsubview?language=objc +func (v_ View) AddSubview(view IView) { + objc.Call[objc.Void](v_, objc.Sel("addSubview:"), objc.Ptr(view)) } -// Registers the pasteboard types that the view will accept as the destination of an image-dragging session. [Full Topic] +// Shows a window displaying the definition of the specified range of the attributed string. [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/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:"), objc.Ptr(attrString), targetRange, options, originProvider) } -// Invoked when the view is hidden, either directly, or in response to an ancestor being hidden. [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/1483596-viewdidhide?language=objc -func (v_ View) ViewDidHide() { - objc.Call[objc.Void](v_, objc.Sel("viewDidHide")) +// [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")) } -// Draws the specified area of the view, and its descendants, into a provided bitmap-representation object. [Full Topic] +// Causes the view and its descendants to be redrawn to the specified graphics context. [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, objc.Ptr(bitmapImageRep)) +// [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, objc.Ptr(context)) } -// 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] +// Adds a constraint on the layout of the receiving view or its subviews. [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/1526969-addconstraint?language=objc +func (v_ View) AddConstraint(constraint ILayoutConstraint) { + objc.Call[objc.Void](v_, objc.Sel("addConstraint:"), objc.Ptr(constraint)) } // Initiates a dragging session with a group of dragging items. [Full Topic] @@ -847,68 +1057,46 @@ func (v_ View) BeginDraggingSessionWithItemsEventSourceObject(items []IDraggingI return rv } -// Called just before a contextual menu for a view is opened on screen. [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:"), objc.Ptr(menu), objc.Ptr(event)) -} - -// 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/1483487-display?language=objc -func (v_ View) Display() { - objc.Call[objc.Void](v_, objc.Sel("display")) -} - -// Informs the view that the bounds size of its superview has changed. [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) -} - -// Creates a tooltip for a defined area in the view and returns a tag that identifies the tooltip rectangle. [Full Topic] +// Invalidates the area around the focus ring. [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/1483556-setkeyboardfocusringneedsdisplay?language=objc +func (v_ View) SetKeyboardFocusRingNeedsDisplayInRect(rect foundation.Rect) { + objc.Call[objc.Void](v_, objc.Sel("setKeyboardFocusRingNeedsDisplayInRect:"), rect) } -// Sets the priority with which a view resists being made larger than its intrinsic size. [Full Topic] +// Overridden by subclasses to define their default cursor rectangles. [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) +// [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")) } -// 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] +// Invalidates the view’s intrinsic content size. [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:"), objc.Ptr(clipView)) +// [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")) } -// Invalidates the area around the focus ring. [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/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/1483475-setneedsdisplayinrect?language=objc +func (v_ View) SetNeedsDisplayInRect(invalidRect foundation.Rect) { + objc.Call[objc.Void](v_, objc.Sel("setNeedsDisplayInRect:"), invalidRect) } -// Update constraints for the view. [Full Topic] +// Updates the view’s content by modifying its underlying layer. [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/1483580-updatelayer?language=objc +func (v_ View) UpdateLayer() { + objc.Call[objc.Void](v_, objc.Sel("updateLayer")) } -// Removes the tracking rectangle identified by a tag. [Full Topic] +// Responds when the view’s backing store properties change. [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/1483742-viewdidchangebackingproperties?language=objc +func (v_ View) ViewDidChangeBackingProperties() { + objc.Call[objc.Void](v_, objc.Sel("viewDidChangeBackingProperties")) } // 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] @@ -918,80 +1106,85 @@ func (v_ View) SetFrameSize(newSize foundation.Size) { objc.Call[objc.Void](v_, objc.Sel("setFrameSize:"), newSize) } -// Sets the origin of the view’s bounds rectangle to a specified point. [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/1483345-setboundsorigin?language=objc -func (v_ View) SetBoundsOrigin(newOrigin foundation.Point) { - objc.Call[objc.Void](v_, objc.Sel("setBoundsOrigin:"), newOrigin) +// [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) } -// Invoked by print: to determine the location of the region of the view being printed on the physical page. [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/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 +// [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) } -// Convert the point from the layer's interior coordinate system to the view’s interior coordinate system. [Full Topic] +// Informs the client that aRulerView allowed the user to remove aMarker. [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) +// [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:"), objc.Ptr(ruler), objc.Ptr(marker)) +} + +// Returns the view’s frame for a given alignment rectangle. [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) return rv } -// Convert the size from the layer's interior coordinate system to the view’s interior coordinate system. [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/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/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 } -// Replaces one of the view’s subviews with another view. [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/1483632-replacesubview?language=objc -func (v_ View) ReplaceSubviewWith(oldView IView, newView IView) { - objc.Call[objc.Void](v_, objc.Sel("replaceSubview:with:"), objc.Ptr(oldView), objc.Ptr(newView)) +// [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) } -// Converts a point from its pixel aligned backing store coordinate system to the view’s interior coordinate system. [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/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/1525968-constraintsaffectinglayoutforori?language=objc +func (v_ View) ConstraintsAffectingLayoutForOrientation(orientation LayoutConstraintOrientation) []LayoutConstraint { + rv := objc.Call[[]LayoutConstraint](v_, objc.Sel("constraintsAffectingLayoutForOrientation:"), orientation) return rv } -// Returns YES if the view handles page boundaries, NO otherwise. [Full Topic] +// Informs the client that aRulerView allowed the user to add aMarker. [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_) - return rv +// [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:"), objc.Ptr(ruler), objc.Ptr(marker)) } -// [Full Topic] +// Removes the specified constraint from the view. [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:"), objc.Ptr(ruler), point) - return rv +// [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:"), objc.Ptr(constraint)) } -// 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] +// 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/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/1483294-viewwithtag?language=objc +func (v_ View) ViewWithTag(tag int) View { + rv := objc.Call[View](v_, objc.Sel("viewWithTag:"), tag) + return rv } -// Returns the priority with which a view resists being made smaller than its intrinsic size. [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/1526991-contentcompressionresistanceprio?language=objc -func (v_ View) ContentCompressionResistancePriorityForOrientation(orientation LayoutConstraintOrientation) LayoutPriority { - rv := objc.Call[LayoutPriority](v_, objc.Sel("contentCompressionResistancePriorityForOrientation:"), orientation) +// [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:"), objc.Ptr(event)) return rv } @@ -1002,34 +1195,6 @@ 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 @@ -1037,617 +1202,562 @@ func (v_ View) DrawRect(dirtyRect foundation.Rect) { objc.Call[objc.Void](v_, objc.Sel("drawRect:"), dirtyRect) } -// 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")) -} - -// 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/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 -} - -// 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) -} - -// 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/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) -} - -// Informs the view that its superview is about to change to the specified superview (which may be nil). [Full Topic] +// Removes the provided layout guide from the view. [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:"), objc.Ptr(newSuperview)) +// [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:"), objc.Ptr(guide)) } -// Returns the priority with which a view resists being made larger than its intrinsic size. [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/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/1483552-cachedisplayinrect?language=objc +func (v_ View) CacheDisplayInRectToBitmapImageRep(rect foundation.Rect, bitmapImageRep IBitmapImageRep) { + objc.Call[objc.Void](v_, objc.Sel("cacheDisplayInRect:toBitmapImageRep:"), rect, objc.Ptr(bitmapImageRep)) } -// Perform layout in concert with the constraint-based layout system. [Full Topic] +// Returns YES if the view handles page boundaries, NO otherwise. [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/1483774-knowspagerange?language=objc +func (v_ View) KnowsPageRange(range_ foundation.RangePointer) bool { + rv := objc.Call[bool](v_, objc.Sel("knowsPageRange:"), range_) + return rv } -// Restores the view to an initial state so that it can be reused. [Full Topic] +// Orders the view's immediate subviews using the specified comparator function. [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/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) } -// Removes a given tracking area from the view. [Full Topic] +// Informs the view that its superview has changed (possibly to nil). [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:"), objc.Ptr(trackingArea)) +// [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")) } -// Removes all tooltips assigned to the view. [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/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/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 } -// Returns PDF data that draws the region of the view within a specified rectangle. [Full Topic] +// 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] // -// [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/1483410-acceptsfirstmouse?language=objc +func (v_ View) AcceptsFirstMouse(event IEvent) bool { + rv := objc.Call[bool](v_, objc.Sel("acceptsFirstMouse:"), objc.Ptr(event)) return rv } -// Invalidates the view’s intrinsic content size. [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/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/1483809-notefocusringmaskchanged?language=objc +func (v_ View) NoteFocusRingMaskChanged() { + objc.Call[objc.Void](v_, objc.Sel("noteFocusRingMaskChanged")) } -// Sets the priority with which a view resists being made smaller than its intrinsic size. [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/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/1483265-removefromsuperview?language=objc +func (v_ View) RemoveFromSuperview() { + objc.Call[objc.Void](v_, objc.Sel("removeFromSuperview")) } -// Orders the view's immediate subviews using the specified comparator function. [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/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/1483235-writeepsinsiderect?language=objc +func (v_ View) WriteEPSInsideRectToPasteboard(rect foundation.Rect, pasteboard IPasteboard) { + objc.Call[objc.Void](v_, objc.Sel("writeEPSInsideRect:toPasteboard:"), rect, objc.Ptr(pasteboard)) } -// 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 } -// Informs the view that it’s being added to the view hierarchy of the specified window object (which may be nil). [Full Topic] +// Inserts a view among the view’s subviews so it’s displayed immediately above or below another view. [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:"), objc.Ptr(newWindow)) +// [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:"), objc.Ptr(view), place, objc.Ptr(otherView)) } -// 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] +// 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] // // [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")) } -// Returns the view’s alignment rectangle for a given frame. [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/1526905-alignmentrectforframe?language=objc -func (v_ View) AlignmentRectForFrame(frame foundation.Rect) foundation.Rect { - rv := objc.Call[foundation.Rect](v_, objc.Sel("alignmentRectForFrame:"), frame) +// [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 } -// Unregisters the view as a possible destination in a dragging session. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsview/1483602-unregisterdraggedtypes?language=objc -func (v_ View) UnregisterDraggedTypes() { - objc.Call[objc.Void](v_, objc.Sel("unregisterDraggedTypes")) -} - -// Detaches a gesture recognizer from the view. [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:"), objc.Ptr(gestureRecognizer)) -} - -// Overridden by subclasses to adjust page width during automatic pagination. [Full Topic] +// Sets the view to full screen mode. [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/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:"), objc.Ptr(screen), options) + return rv } -// Informs the view of the start of a live resize—the user has started resizing the view. [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/1483620-viewwillstartliveresize?language=objc -func (v_ View) ViewWillStartLiveResize() { - objc.Call[objc.Void](v_, objc.Sel("viewWillStartLiveResize")) +// [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 } -// Implemented by subclasses to determine the portion of the view to be printed for the specified page number. [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/1483252-rectforpage?language=objc -func (v_ View) RectForPage(page int) foundation.Rect { - rv := objc.Call[foundation.Rect](v_, objc.Sel("rectForPage:"), page) +// [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 } -// Informs the view that it’s required to draw content. [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/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/1483566-displayifneeded?language=objc +func (v_ View) DisplayIfNeeded() { + objc.Call[objc.Void](v_, objc.Sel("displayIfNeeded")) } -// Adds the provided layout guide to the view. [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/1530406-addlayoutguide?language=objc -func (v_ View) AddLayoutGuide(guide ILayoutGuide) { - objc.Call[objc.Void](v_, objc.Sel("addLayoutGuide:"), objc.Ptr(guide)) +// [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, objc.Ptr(object)) } -// Invoked to notify the view that the focus ring mask requires updating. [Full Topic] +// Unregisters the view as a possible destination in a dragging session. [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/1483602-unregisterdraggedtypes?language=objc +func (v_ View) UnregisterDraggedTypes() { + objc.Call[objc.Void](v_, objc.Sel("unregisterDraggedTypes")) } -// Returns the view’s nearest descendant (including itself) with a specific tag, or nil if no subview has that tag. [Full Topic] +// Informs the client that aRulerView allowed the user to move aMarker. [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/1534537-rulerview?language=objc +func (v_ View) RulerViewDidMoveMarker(ruler IRulerView, marker IRulerMarker) { + objc.Call[objc.Void](v_, objc.Sel("rulerView:didMoveMarker:"), objc.Ptr(ruler), objc.Ptr(marker)) } -// Writes EPS data that draws the region of the view within a specified rectangle onto a pasteboard. [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/1483235-writeepsinsiderect?language=objc -func (v_ View) WriteEPSInsideRectToPasteboard(rect foundation.Rect, pasteboard IPasteboard) { - objc.Call[objc.Void](v_, objc.Sel("writeEPSInsideRect:toPasteboard:"), rect, objc.Ptr(pasteboard)) +// [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 } -// Randomly changes the frame of a view with an ambiguous layout between the different valid values. [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/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/1483219-isdescendantof?language=objc +func (v_ View) IsDescendantOf(view IView) bool { + rv := objc.Call[bool](v_, objc.Sel("isDescendantOf:"), objc.Ptr(view)) + return rv } -// Informs the view that it has been added to a new view hierarchy. [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/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/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 } -// Updates the layout of the receiving view and its subviews based on the current views and constraints. [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/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/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 by indirection a list of nonoverlapping rectangles that define the area the view is being asked to draw in drawRect:. [Full Topic] +// 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] // // [Full Topic]: https://developer.apple.com/documentation/appkit/nsview/1483772-getrectsbeingdrawn?language=objc func (v_ View) GetRectsBeingDrawnCount(rects *foundation.Rect, 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] +// Adds the provided layout guide to the view. [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/1530406-addlayoutguide?language=objc +func (v_ View) AddLayoutGuide(guide ILayoutGuide) { + objc.Call[objc.Void](v_, objc.Sel("addLayoutGuide:"), objc.Ptr(guide)) } -// Convert the rectangle from the layer's interior coordinate system to the view’s interior coordinate system. [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/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/1483626-prepareforreuse?language=objc +func (v_ View) PrepareForReuse() { + objc.Call[objc.Void](v_, objc.Sel("prepareForReuse")) } -// Acts as display, but confining drawing to a rectangular region of the view. [Full Topic] +// Requests permission for aRulerView to move aMarker. [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) +// [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:"), objc.Ptr(ruler), objc.Ptr(marker)) + return rv } -// 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] +// 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/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/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 } -// 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] +// Informs the view that its effective appearance changed. [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/2977088-viewdidchangeeffectiveappearance?language=objc +func (v_ View) ViewDidChangeEffectiveAppearance() { + objc.Call[objc.Void](v_, objc.Sel("viewDidChangeEffectiveAppearance")) } -// Returns whether a region of the view contains a specified point, accounting for whether the view is flipped or not. [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/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) +// [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 } -// Returns a backing store pixel-aligned rectangle in local view coordinates. [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/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) +// [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:"), objc.Ptr(view)) return rv } -// 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/1483454-didaddsubview?language=objc -func (v_ View) DidAddSubview(subview IView) { - objc.Call[objc.Void](v_, objc.Sel("didAddSubview:"), objc.Ptr(subview)) -} - -// Returns the view’s frame for a given alignment rectangle. [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/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 +// [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:"), objc.Ptr(clipView)) } -// Converts a size from the view’s coordinate system to that of another view. [Full Topic] +// [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, objc.Ptr(view)) +// [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:"), objc.Ptr(ruler), point) return rv } -// Returns a Boolean value that indicates whether the view is a subview of the specified view. [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/1483219-isdescendantof?language=objc -func (v_ View) IsDescendantOf(view IView) bool { - rv := objc.Call[bool](v_, objc.Sel("isDescendantOf:"), objc.Ptr(view)) - return rv +// [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:"), objc.Ptr(attrString), textBaselineOrigin) } -// Displays the view and all its subviews if any part of the view has been marked as needing display. [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/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/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 } -// Creates the view’s backing layer. [Full Topic] +// Removes all tooltips assigned to the view. [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")) - 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")) } -// Converts a point from the view’s coordinate system to that of a given view. [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/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, objc.Ptr(view)) - return rv +// [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) } -// A Boolean value indicating whether the view’s layer uses Core Image filters and needs in-process rendering. [Full Topic] +// Removes the tracking rectangle identified by a tag. [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")) - return rv +// [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) } -// A Boolean value indicating whether the view’s layer uses Core Image filters and needs in-process rendering. [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/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/1483699-displayrectignoringopacity?language=objc +func (v_ View) DisplayRectIgnoringOpacity(rect foundation.Rect) { + objc.Call[objc.Void](v_, objc.Sel("displayRectIgnoringOpacity:"), rect) } -// A layout anchor representing the top edge of the view’s frame. [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/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/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 } -// The contents redraw policy for the view’s layer. [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/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/1483695-wantslayer?language=objc +func (v_ View) WantsLayer() bool { + rv := objc.Call[bool](v_, objc.Sel("wantsLayer")) return rv } -// The contents redraw policy for the view’s layer. [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/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/1483695-wantslayer?language=objc +func (v_ View) SetWantsLayer(value bool) { + objc.Call[objc.Void](v_, objc.Sel("setWantsLayer:"), value) } -// The Core Animation layer that the view uses as its backing store. [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/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/1483347-candrawsubviewsintolayer?language=objc +func (v_ View) CanDrawSubviewsIntoLayer() bool { + rv := objc.Call[bool](v_, objc.Sel("canDrawSubviewsIntoLayer")) return rv } -// The Core Animation layer that the view uses as its backing store. [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/1483298-layer?language=objc -func (v_ View) SetLayer(value quartzcore.ILayer) { - objc.Call[objc.Void](v_, objc.Sel("setLayer:"), objc.Ptr(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) } -// The view’s print job title. [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/1483753-printjobtitle?language=objc -func (v_ View) PrintJobTitle() string { - rv := objc.Call[string](v_, objc.Sel("printJobTitle")) +// [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 } -// Overridden by subclasses to return the default pop-up menu for instances of the receiving class. [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/1483417-defaultmenu?language=objc -func (vc _ViewClass) DefaultMenu() Menu { - rv := objc.Call[Menu](vc, objc.Sel("defaultMenu")) +// [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 } -// Overridden by subclasses to return the default pop-up menu for instances of the receiving class. [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/1483417-defaultmenu?language=objc -func View_DefaultMenu() Menu { - return ViewClass.DefaultMenu() +// [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) } -// A layout anchor representing the left edge of the view’s frame. [Full Topic] +// Returns the default focus ring type. [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")) +// [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 } -// The portion of the view that is not clipped by its superviews. [Full Topic] +// Returns the default focus ring type. [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")) - return rv +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsview/1483589-defaultfocusringtype?language=objc +func View_DefaultFocusRingType() FocusRingType { + return ViewClass.DefaultFocusRingType() } -// The text input context object for the view. [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/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/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 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 current layer contents placement policy. [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")) +// [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 } -// A Boolean value indicating whether the view is hidden. [Full Topic] +// The current layer contents placement policy. [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")) - return rv +// [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) } -// A Boolean value indicating whether the view is hidden. [Full Topic] +// The view’s print job title. [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/1483753-printjobtitle?language=objc +func (v_ View) PrintJobTitle() string { + rv := objc.Call[string](v_, objc.Sel("printJobTitle")) + return rv } -// A Boolean value indicating whether the view needs a layout pass before it can be drawn. [Full Topic] +// Overridden by subclasses to return the default pop-up menu for instances of the receiving class. [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/1483417-defaultmenu?language=objc +func (vc _ViewClass) DefaultMenu() Menu { + rv := objc.Call[Menu](vc, objc.Sel("defaultMenu")) return rv } -// A Boolean value indicating whether the view needs a layout pass before it can be drawn. [Full Topic] +// Overridden by subclasses to return the default pop-up menu for instances of the receiving class. [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/1483417-defaultmenu?language=objc +func View_DefaultMenu() Menu { + return ViewClass.DefaultMenu() } -// The view object that follows the current view in the key view loop. [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/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/1526859-topanchor?language=objc +func (v_ View) TopAnchor() LayoutYAxisAnchor { + rv := objc.Call[LayoutYAxisAnchor](v_, objc.Sel("topAnchor")) return rv } -// The view object that follows the current view in the key view loop. [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:"), objc.Ptr(value)) -} - -// The distance (in points) between the top of the view’s alignment rectangle and its topmost baseline. [Full Topic] +// A Boolean value indicating whether the view wants resting touches. [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/1483594-wantsrestingtouches?language=objc +func (v_ View) WantsRestingTouches() bool { + rv := objc.Call[bool](v_, objc.Sel("wantsRestingTouches")) return rv } -// The minimum size of the view that satisfies the constraints it holds. [Full Topic] +// A Boolean value indicating whether the view wants resting touches. [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")) - return rv +// [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) } -// The angle of rotation, measured in degrees, applied to the view’s bounds rectangle relative to its frame rectangle. [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/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/3553227-safeareainsets?language=objc +func (v_ View) SafeAreaInsets() foundation.EdgeInsets { + rv := objc.Call[foundation.EdgeInsets](v_, objc.Sel("safeAreaInsets")) 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) NeedsUpdateConstraints() bool { + rv := objc.Call[bool](v_, objc.Sel("needsUpdateConstraints")) + return rv } -// The insets (in points) from the view’s frame that define its content 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/1526870-alignmentrectinsets?language=objc -func (v_ View) AlignmentRectInsets() foundation.EdgeInsets { - rv := objc.Call[foundation.EdgeInsets](v_, objc.Sel("alignmentRectInsets")) - return rv +// [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) } -// A default footer string that includes the current page number and page count. [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/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/1526983-trailinganchor?language=objc +func (v_ View) TrailingAnchor() LayoutXAxisAnchor { + rv := objc.Call[LayoutXAxisAnchor](v_, objc.Sel("trailingAnchor")) return rv } -// A Boolean value indicating whether the view posts notifications when its frame rectangle changes. [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/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/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 posts notifications when its frame rectangle changes. [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/1483524-postsframechangednotifications?language=objc -func (v_ View) SetPostsFrameChangedNotifications(value bool) { - objc.Call[objc.Void](v_, objc.Sel("setPostsFrameChangedNotifications:"), 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 needs its panel to become the key window before it can handle keyboard input and navigation. [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/1483512-needspaneltobecomekey?language=objc -func (v_ View) NeedsPanelToBecomeKey() bool { - rv := objc.Call[bool](v_, objc.Sel("needsPanelToBecomeKey")) - 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) } -// An array of Core Image filters to apply to the contents of the view and its sublayers. [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/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/1483287-focusringmaskbounds?language=objc +func (v_ View) FocusRingMaskBounds() foundation.Rect { + rv := objc.Call[foundation.Rect](v_, objc.Sel("focusRingMaskBounds")) return rv } -// An array of Core Image filters to apply to the contents of the view and its sublayers. [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/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/1483392-widthadjustlimit?language=objc +func (v_ View) WidthAdjustLimit() float64 { + rv := objc.Call[float64](v_, objc.Sel("widthAdjustLimit")) + 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] +// 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/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/1483473-hiddenorhashiddenancestor?language=objc +func (v_ View) IsHiddenOrHasHiddenAncestor() bool { + rv := objc.Call[bool](v_, objc.Sel("isHiddenOrHasHiddenAncestor")) return rv } -// The text for the view’s tooltip. [Full Topic] +// The shadow displayed underneath the view. [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/1483263-shadow?language=objc +func (v_ View) Shadow() Shadow { + rv := objc.Call[Shadow](v_, objc.Sel("shadow")) return rv } -// The text for the view’s tooltip. [Full Topic] +// The shadow displayed underneath the view. [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/1483263-shadow?language=objc +func (v_ View) SetShadow(value IShadow) { + objc.Call[objc.Void](v_, objc.Sel("setShadow:"), objc.Ptr(value)) } -// The rotation angle of the view around the center of its layer. [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/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/3553226-additionalsafeareainsets?language=objc +func (v_ View) AdditionalSafeAreaInsets() foundation.EdgeInsets { + rv := objc.Call[foundation.EdgeInsets](v_, objc.Sel("additionalSafeAreaInsets")) return rv } -// The rotation angle of the view around the center of its layer. [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/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/3553226-additionalsafeareainsets?language=objc +func (v_ View) SetAdditionalSafeAreaInsets(value foundation.EdgeInsets) { + objc.Call[objc.Void](v_, objc.Sel("setAdditionalSafeAreaInsets:"), value) } // A layout anchor representing the vertical center of the view’s frame. [Full Topic] @@ -1666,211 +1776,252 @@ func (v_ View) PreservesContentDuringLiveResize() bool { 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 view’s window object, if it is installed in a window. [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")) +// [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 } -// A Boolean value indicating whether the view’s autoresizing mask is translated into constraints for the constraint-based layout system. [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/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/1483317-drawingfindindicator?language=objc +func (v_ View) IsDrawingFindIndicator() bool { + rv := objc.Call[bool](v_, objc.Sel("isDrawingFindIndicator")) + return rv } -// A layout anchor representing the baseline for the topmost line of text in 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/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/1483355-pagefooter?language=objc +func (v_ View) PageFooter() foundation.AttributedString { + rv := objc.Call[foundation.AttributedString](v_, objc.Sel("pageFooter")) return rv } -// 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 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/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/1526907-hasambiguouslayout?language=objc +func (v_ View) HasAmbiguousLayout() bool { + rv := objc.Call[bool](v_, objc.Sel("hasAmbiguousLayout")) return rv } -// A Boolean value that indicates whether views support responsive scrolling. [Full Topic] +// An array of the view’s tracking areas. [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/1483333-trackingareas?language=objc +func (v_ View) TrackingAreas() []TrackingArea { + rv := objc.Call[[]TrackingArea](v_, objc.Sel("trackingAreas")) return rv } -// A Boolean value that indicates whether views support responsive scrolling. [Full Topic] +// The view that is the parent of the current view. [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/1483737-superview?language=objc +func (v_ View) Superview() View { + rv := objc.Call[View](v_, objc.Sel("superview")) + 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 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/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/1483512-needspaneltobecomekey?language=objc +func (v_ View) NeedsPanelToBecomeKey() bool { + rv := objc.Call[bool](v_, objc.Sel("needsPanelToBecomeKey")) 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 indicating whether the view is hidden. [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:"), objc.Ptr(value)) +// [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 which drawing path the view takes when updating its contents. [Full Topic] +// A Boolean value indicating whether the view is hidden. [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/1483369-hidden?language=objc +func (v_ View) SetHidden(value bool) { + objc.Call[objc.Void](v_, objc.Sel("setHidden:"), value) +} + +// The currently focused view object. [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")) return rv } -// The type of focus ring drawn around the view. [Full Topic] +// The currently focused view object. [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/1483662-focusview?language=objc +func View_FocusView() View { + return ViewClass.FocusView() +} + +// 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 type of focus ring drawn around 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/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/1483516-compositingfilter?language=objc +func (v_ View) SetCompositingFilter(value coreimage.IFilter) { + objc.Call[objc.Void](v_, objc.Sel("setCompositingFilter:"), objc.Ptr(value)) } -// An array of the view’s tracking areas. [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/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/1526926-requiresconstraintbasedlayout?language=objc +func (vc _ViewClass) RequiresConstraintBasedLayout() bool { + rv := objc.Call[bool](vc, objc.Sel("requiresConstraintBasedLayout")) return rv } -// A Boolean value indicating whether the view posts notifications when its bounds rectangle changes. [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/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/1526926-requiresconstraintbasedlayout?language=objc +func View_RequiresConstraintBasedLayout() bool { + return ViewClass.RequiresConstraintBasedLayout() +} + +// 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/1483558-opaque?language=objc +func (v_ View) IsOpaque() bool { + rv := objc.Call[bool](v_, objc.Sel("isOpaque")) return rv } -// A Boolean value indicating whether the view posts notifications when its bounds rectangle changes. [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/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/1483281-autoresizingmask?language=objc +func (v_ View) AutoresizingMask() AutoresizingMaskOptions { + rv := objc.Call[AutoresizingMaskOptions](v_, objc.Sel("autoresizingMask")) + return rv } -// The gesture recognize objects currently attached to the 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/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/1483281-autoresizingmask?language=objc +func (v_ View) SetAutoresizingMask(value AutoresizingMaskOptions) { + objc.Call[objc.Void](v_, objc.Sel("setAutoresizingMask:"), value) +} + +// The opacity of the view. [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")) return rv } -// The gesture recognize objects currently attached to the view. [Full Topic] +// The opacity of the view. [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/1483560-alphavalue?language=objc +func (v_ View) SetAlphaValue(value float64) { + objc.Call[objc.Void](v_, objc.Sel("setAlphaValue:"), value) +} + +// A layout anchor representing the height of the view’s frame. [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 } -// The currently focused view object. [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/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/1483689-backgroundfilters?language=objc +func (v_ View) BackgroundFilters() []coreimage.Filter { + rv := objc.Call[[]coreimage.Filter](v_, objc.Sel("backgroundFilters")) return rv } -// The currently focused view object. [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/1483662-focusview?language=objc -func View_FocusView() View { - return ViewClass.FocusView() +// [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) } -// The nearest ancestor scroll view that contains the current view. [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/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/1483371-previousvalidkeyview?language=objc +func (v_ View) PreviousValidKeyView() View { + rv := objc.Call[View](v_, objc.Sel("previousValidKeyView")) return rv } -// The opacity of the view. [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/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/1526961-translatesautoresizingmaskintoco?language=objc +func (v_ View) TranslatesAutoresizingMaskIntoConstraints() bool { + rv := objc.Call[bool](v_, objc.Sel("translatesAutoresizingMaskIntoConstraints")) return rv } -// The opacity of the view. [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/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/1526961-translatesautoresizingmaskintoco?language=objc +func (v_ View) SetTranslatesAutoresizingMaskIntoConstraints(value bool) { + objc.Call[objc.Void](v_, objc.Sel("setTranslatesAutoresizingMaskIntoConstraints:"), value) } -// A default header string that includes the print job title and date. [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/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/1483446-visiblerect?language=objc +func (v_ View) VisibleRect() foundation.Rect { + rv := objc.Call[foundation.Rect](v_, objc.Sel("visibleRect")) return rv } -// The layout guide you use to position content inside your view’s safe area. [Full Topic] +// [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/2544729-candidatelisttouchbaritem?language=objc +func (v_ View) CandidateListTouchBarItem() CandidateListTouchBarItem { + rv := objc.Call[CandidateListTouchBarItem](v_, objc.Sel("candidateListTouchBarItem")) return rv } -// A layout anchor representing the right edge of the view’s frame. [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/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/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 or any of its ancestors has ever had a rotation factor applied to its frame or bounds. [Full Topic] +// Returns the constraints held by the view. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsview/1483709-rotatedfrombase?language=objc -func (v_ View) IsRotatedFromBase() bool { - rv := objc.Call[bool](v_, objc.Sel("isRotatedFromBase")) +// [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] +// 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/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/1483267-inliveresize?language=objc +func (v_ View) InLiveResize() bool { + rv := objc.Call[bool](v_, objc.Sel("inLiveResize")) return rv } -// The portion of the view that has been rendered and is available for responsive scrolling. [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. [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/1483709-rotatedfrombase?language=objc +func (v_ View) IsRotatedFromBase() bool { + rv := objc.Call[bool](v_, objc.Sel("isRotatedFromBase")) + return rv } // The view’s bounds rectangle, which expresses its location and size in its own coordinate system. [Full Topic] @@ -1888,114 +2039,112 @@ func (v_ View) SetBounds(value foundation.Rect) { objc.Call[objc.Void](v_, objc.Sel("setBounds:"), value) } -// The distance (in points) between the bottom of the view’s alignment rectangle and its baseline. [Full Topic] +// The array of layout guide objects owned by this view. [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/1534395-layoutguides?language=objc +func (v_ View) LayoutGuides() []LayoutGuide { + rv := objc.Call[[]LayoutGuide](v_, objc.Sel("layoutGuides")) return rv } -// The distances from the edges of your view that define the safe area. [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/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/1483572-nextvalidkeyview?language=objc +func (v_ View) NextValidKeyView() View { + rv := objc.Call[View](v_, objc.Sel("nextValidKeyView")) return rv } -// A Boolean value indicating whether the view is being rendered as part of a live resizing operation. [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/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/1483367-framecenterrotation?language=objc +func (v_ View) FrameCenterRotation() float64 { + rv := objc.Call[float64](v_, objc.Sel("frameCenterRotation")) return rv } -// A Boolean value indicating whether the view or one of its ancestors is being drawn for a find indicator. [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/1483317-drawingfindindicator?language=objc -func (v_ View) IsDrawingFindIndicator() bool { - rv := objc.Call[bool](v_, objc.Sel("isDrawingFindIndicator")) - return rv +// [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] +// A layout anchor representing the leading edge of the view’s frame. [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")) +// [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 } -// A layout guide that provides the recommended amount of padding for content inside of a view. [Full Topic] +// The contents redraw policy for the view’s layer. [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/1483514-layercontentsredrawpolicy?language=objc +func (v_ View) LayerContentsRedrawPolicy() ViewLayerContentsRedrawPolicy { + rv := objc.Call[ViewLayerContentsRedrawPolicy](v_, objc.Sel("layerContentsRedrawPolicy")) return rv } -// The layout direction for content in the view. [Full Topic] +// The contents redraw policy for the view’s layer. [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")) - 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 layout direction for content in the view. [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/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/1526924-centerxanchor?language=objc +func (v_ View) CenterXAnchor() LayoutXAxisAnchor { + rv := objc.Call[LayoutXAxisAnchor](v_, objc.Sel("centerXAnchor")) + return rv } -// A layout anchor representing the bottom edge of the view’s frame. [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/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/1526904-fittingsize?language=objc +func (v_ View) FittingSize() foundation.Size { + rv := objc.Call[foundation.Size](v_, objc.Sel("fittingSize")) return rv } -// The view’s closest opaque ancestor, which might be the view itself. [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/1483383-opaqueancestor?language=objc -func (v_ View) OpaqueAncestor() View { - rv := objc.Call[View](v_, objc.Sel("opaqueAncestor")) +// [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 current layer contents placement policy. [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/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/1483703-contentfilters?language=objc +func (v_ View) ContentFilters() []coreimage.Filter { + rv := objc.Call[[]coreimage.Filter](v_, objc.Sel("contentFilters")) return rv } -// The current layer contents placement policy. [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/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/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 fills its frame rectangle with opaque content. [Full Topic] +// The types of touch interactions the view allows. [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/2544839-allowedtouchtypes?language=objc +func (v_ View) AllowedTouchTypes() TouchTypeMask { + rv := objc.Call[TouchTypeMask](v_, objc.Sel("allowedTouchTypes")) return rv } -// The closest view object in the key view loop that precedes the current view and accepts first responder status. [Full Topic] +// The types of touch interactions the view allows. [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")) - 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 menu item containing the view or any of its superviews in the view hierarchy. [Full Topic] @@ -2006,419 +2155,396 @@ func (v_ View) EnclosingMenuItem() MenuItem { return rv } -// A Boolean value indicating whether the view’s constraints need to be updated. [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")) - return rv -} - -// A Boolean value indicating whether the view’s constraints need to be updated. [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) -} - -// A layout anchor representing the height of the view’s frame. [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/1526942-heightanchor?language=objc -func (v_ View) HeightAnchor() LayoutDimension { - rv := objc.Call[LayoutDimension](v_, objc.Sel("heightAnchor")) +// [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 } -// The array of layout guide objects owned by this view. [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/1534395-layoutguides?language=objc -func (v_ View) LayoutGuides() []LayoutGuide { - rv := objc.Call[[]LayoutGuide](v_, objc.Sel("layoutGuides")) - 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) } -// A Boolean value indicating whether AppKit’s default clipping behavior is in effect. [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/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/1526870-alignmentrectinsets?language=objc +func (v_ View) AlignmentRectInsets() foundation.EdgeInsets { + rv := objc.Call[foundation.EdgeInsets](v_, objc.Sel("alignmentRectInsets")) 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")) +// The view object preceding the current view in the key view loop. [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")) return rv } -// Returns the default focus ring type. [Full Topic] +// The text input context object for the view. [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/1483323-inputcontext?language=objc +func (v_ View) InputContext() TextInputContext { + rv := objc.Call[TextInputContext](v_, objc.Sel("inputContext")) return rv } -// Returns the default focus ring type. [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/1483589-defaultfocusringtype?language=objc -func View_DefaultFocusRingType() FocusRingType { - return ViewClass.DefaultFocusRingType() +// [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 indicating whether the view uses a layer as its backing store. [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/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/1483576-layerusescoreimagefilters?language=objc +func (v_ View) LayerUsesCoreImageFilters() bool { + rv := objc.Call[bool](v_, objc.Sel("layerUsesCoreImageFilters")) return rv } -// A Boolean value indicating whether the view uses a layer as its backing store. [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/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/1483576-layerusescoreimagefilters?language=objc +func (v_ View) SetLayerUsesCoreImageFilters(value bool) { + objc.Call[objc.Void](v_, objc.Sel("setLayerUsesCoreImageFilters:"), value) } -// The natural size for the receiving view, considering only properties of the view itself. [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/1526996-intrinsiccontentsize?language=objc -func (v_ View) IntrinsicContentSize() foundation.Size { - rv := objc.Call[foundation.Size](v_, objc.Sel("intrinsicContentSize")) +// [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 Boolean value indicating whether the view applies the autoresizing behavior to its subviews when its frame size changes. [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/1483358-autoresizessubviews?language=objc -func (v_ View) AutoresizesSubviews() bool { - rv := objc.Call[bool](v_, objc.Sel("autoresizesSubviews")) - 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) } -// A Boolean value indicating whether the view applies the autoresizing behavior to its subviews when its frame size changes. [Full Topic] +// The array of pasteboard drag types that the view can accept. [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/1483564-registereddraggedtypes?language=objc +func (v_ View) RegisteredDraggedTypes() []PasteboardType { + rv := objc.Call[[]PasteboardType](v_, objc.Sel("registeredDraggedTypes")) + return rv } -// A layout anchor representing the trailing edge of the view’s frame. [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/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/1483691-heightadjustlimit?language=objc +func (v_ View) HeightAdjustLimit() float64 { + rv := objc.Call[float64](v_, objc.Sel("heightAdjustLimit")) return rv } -// A Boolean value indicating whether the view incorporates content from its subviews into its own layer. [Full Topic] +// The type of focus ring drawn around the view. [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")) +// [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 } -// A Boolean value indicating whether the view incorporates content from its subviews into its own layer. [Full Topic] +// The type of focus ring drawn around the view. [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/1483261-focusringtype?language=objc +func (v_ View) SetFocusRingType(value FocusRingType) { + objc.Call[objc.Void](v_, objc.Sel("setFocusRingType:"), value) } -// The view object preceding the current view in the key view loop. [Full Topic] +// A Boolean value indicating whether AppKit’s default clipping behavior is in effect. [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/1483365-wantsdefaultclipping?language=objc +func (v_ View) WantsDefaultClipping() bool { + rv := objc.Call[bool](v_, objc.Sel("wantsDefaultClipping")) return rv } -// A layout anchor representing the leading edge of the view’s frame. [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/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/1526900-firstbaselineanchor?language=objc +func (v_ View) FirstBaselineAnchor() LayoutYAxisAnchor { + rv := objc.Call[LayoutYAxisAnchor](v_, objc.Sel("firstBaselineAnchor")) return rv } -// The types of touch interactions the view allows. [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/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/1483528-rectpreservedduringliveresize?language=objc +func (v_ View) RectPreservedDuringLiveResize() foundation.Rect { + rv := objc.Call[foundation.Rect](v_, objc.Sel("rectPreservedDuringLiveResize")) return rv } -// The types of touch interactions the view allows. [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/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/1483383-opaqueancestor?language=objc +func (v_ View) OpaqueAncestor() View { + rv := objc.Call[View](v_, objc.Sel("opaqueAncestor")) + return rv } -// The focus ring mask bounds, specified in the view’s coordinate space. [Full Topic] +// The nearest ancestor scroll view that contains the current view. [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/1483654-enclosingscrollview?language=objc +func (v_ View) EnclosingScrollView() ScrollView { + rv := objc.Call[ScrollView](v_, objc.Sel("enclosingScrollView")) return rv } -// The view’s frame rectangle, which defines its position and size in its superview’s coordinate system. [Full Topic] +// The text for the view’s tooltip. [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/1483541-tooltip?language=objc +func (v_ View) ToolTip() string { + rv := objc.Call[string](v_, objc.Sel("toolTip")) return rv } -// The view’s frame rectangle, which defines its position and size in its superview’s coordinate system. [Full Topic] +// The text for the view’s tooltip. [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/1483541-tooltip?language=objc +func (v_ View) SetToolTip(value string) { + objc.Call[objc.Void](v_, objc.Sel("setToolTip:"), value) } -// A Boolean value indicating whether the view can become key view. [Full Topic] +// A Boolean value that indicates whether views support responsive scrolling. [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")) +// [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 } -// A Boolean value indicating whether the view is in full screen mode. [Full Topic] +// A Boolean value that indicates whether views support responsive scrolling. [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/2870005-compatiblewithresponsivescrollin?language=objc +func View_CompatibleWithResponsiveScrolling() bool { + return ViewClass.CompatibleWithResponsiveScrolling() } -// A Boolean value indicating whether the view can draw its contents on a background thread. [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/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/1483360-needsdisplay?language=objc +func (v_ View) NeedsDisplay() bool { + rv := objc.Call[bool](v_, objc.Sel("needsDisplay")) return rv } -// 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/1483425-candrawconcurrently?language=objc -func (v_ View) SetCanDrawConcurrently(value bool) { - objc.Call[objc.Void](v_, objc.Sel("setCanDrawConcurrently:"), value) -} - -// The view’s tag, which is an integer that you use to identify the view within your app. [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/1483248-tag?language=objc -func (v_ View) Tag() int { - rv := objc.Call[int](v_, objc.Sel("tag")) - return rv +// [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) } -// The shadow displayed underneath the view. [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/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/1483358-autoresizessubviews?language=objc +func (v_ View) AutoresizesSubviews() bool { + rv := objc.Call[bool](v_, objc.Sel("autoresizesSubviews")) return rv } -// The shadow displayed underneath the view. [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/1483263-shadow?language=objc -func (v_ View) SetShadow(value IShadow) { - objc.Call[objc.Void](v_, objc.Sel("setShadow:"), objc.Ptr(value)) +// [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 small images or text columns from being divided across pages. [Full Topic] +// A Boolean value indicating whether the view can become key view. [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/1483759-canbecomekeyview?language=objc +func (v_ View) CanBecomeKeyView() bool { + rv := objc.Call[bool](v_, objc.Sel("canBecomeKeyView")) return rv } -// Custom insets that you specify to modify your view’s safe area [Full Topic] +// 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/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/1526959-lastbaselineanchor?language=objc +func (v_ View) LastBaselineAnchor() LayoutYAxisAnchor { + rv := objc.Call[LayoutYAxisAnchor](v_, objc.Sel("lastBaselineAnchor")) return rv } -// Custom insets that you specify to modify your view’s safe area [Full Topic] +// 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/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/1526963-firstbaselineoffsetfromtop?language=objc +func (v_ View) FirstBaselineOffsetFromTop() float64 { + rv := objc.Call[float64](v_, objc.Sel("firstBaselineOffsetFromTop")) + return rv } -// The Core Image filter used to composite the view’s contents with its background. [Full Topic] +// The layout direction for content in the view. [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/1483254-userinterfacelayoutdirection?language=objc +func (v_ View) UserInterfaceLayoutDirection() UserInterfaceLayoutDirection { + rv := objc.Call[UserInterfaceLayoutDirection](v_, objc.Sel("userInterfaceLayoutDirection")) return rv } -// The Core Image filter used to composite the view’s contents with its background. [Full Topic] +// The layout direction for content in the view. [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:"), objc.Ptr(value)) +// [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 array of pasteboard drag types that the view can accept. [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/1483564-registereddraggedtypes?language=objc -func (v_ View) RegisteredDraggedTypes() []PasteboardType { - rv := objc.Call[[]PasteboardType](v_, objc.Sel("registeredDraggedTypes")) +// [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 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 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) } -// The view’s window object, if it is installed in a window. [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/1483301-window?language=objc -func (v_ View) Window() Window { - rv := objc.Call[Window](v_, objc.Sel("window")) +// [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 } -// A Boolean value that indicates whether the view’s vertical size constraints are active. [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/3353054-verticalcontentsizeconstraintact?language=objc -func (v_ View) IsVerticalContentSizeConstraintActive() bool { - rv := objc.Call[bool](v_, objc.Sel("isVerticalContentSizeConstraintActive")) - return rv +// [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:"), objc.Ptr(value)) } -// A Boolean value that indicates whether the view’s vertical size constraints are active. [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/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/1483793-allowsvibrancy?language=objc +func (v_ View) AllowsVibrancy() bool { + rv := objc.Call[bool](v_, objc.Sel("allowsVibrancy")) + return rv } -// The options that determine how the view is resized relative to its superview. [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/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/3622483-layoutmarginsguide?language=objc +func (v_ View) LayoutMarginsGuide() LayoutGuide { + rv := objc.Call[LayoutGuide](v_, objc.Sel("layoutMarginsGuide")) return rv } -// The options that determine how the view is resized relative to its superview. [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/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/1483390-rotatedorscaledfrombase?language=objc +func (v_ View) IsRotatedOrScaledFromBase() bool { + rv := objc.Call[bool](v_, objc.Sel("isRotatedOrScaledFromBase")) + 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) 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) } -// A Boolean value indicating whether the constraints impacting the layout of the view incompletely specify the location of the view. [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/1526907-hasambiguouslayout?language=objc -func (v_ View) HasAmbiguousLayout() bool { - rv := objc.Call[bool](v_, objc.Sel("hasAmbiguousLayout")) +// [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 } -// Returns the constraints held by the view. [Full Topic] +// 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/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/1483215-preparedcontentrect?language=objc +func (v_ View) PreparedContentRect() foundation.Rect { + rv := objc.Call[foundation.Rect](v_, objc.Sel("preparedContentRect")) return rv } -// 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] +// 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/1483691-heightadjustlimit?language=objc -func (v_ View) HeightAdjustLimit() float64 { - rv := objc.Call[float64](v_, objc.Sel("heightAdjustLimit")) - return rv +// [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) } -// A Boolean value that indicates whether the view’s horizontal size constraints are active. [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/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/1426890-pressureconfiguration?language=objc +func (v_ View) PressureConfiguration() PressureConfiguration { + rv := objc.Call[PressureConfiguration](v_, objc.Sel("pressureConfiguration")) return rv } -// A Boolean value that indicates whether the view’s horizontal size constraints are active. [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/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/1426890-pressureconfiguration?language=objc +func (v_ View) SetPressureConfiguration(value IPressureConfiguration) { + objc.Call[objc.Void](v_, objc.Sel("setPressureConfiguration:"), objc.Ptr(value)) } -// A Boolean value indicating whether the view ensures it is vibrant on top of other content. [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/1483793-allowsvibrancy?language=objc -func (v_ View) AllowsVibrancy() bool { - rv := objc.Call[bool](v_, objc.Sel("allowsVibrancy")) +// [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 array of views embedded in the current view. [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/1483539-subviews?language=objc -func (v_ View) Subviews() []View { - rv := objc.Call[[]View](v_, objc.Sel("subviews")) +// [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 } -// The array of views embedded in the current view. [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/1483539-subviews?language=objc -func (v_ View) SetSubviews(value []IView) { - objc.Call[objc.Void](v_, objc.Sel("setSubviews:"), value) +// [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 indicating whether the view uses a flipped coordinate system. [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/1483532-flipped?language=objc -func (v_ View) IsFlipped() bool { - rv := objc.Call[bool](v_, objc.Sel("isFlipped")) +// [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 } -// The rectangle identifying the portion of your view that did not change during a live resize operation. [Full Topic] +// 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/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/3553229-safearearect?language=objc +func (v_ View) SafeAreaRect() foundation.Rect { + rv := objc.Call[foundation.Rect](v_, objc.Sel("safeAreaRect")) return rv } @@ -2430,34 +2556,26 @@ func (v_ View) MouseDownCanMoveWindow() bool { return rv } -// A layout anchor representing the horizontal center of the view’s frame. [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 -} - -// A Boolean value indicating whether the view wants resting touches. [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/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/1483425-candrawconcurrently?language=objc +func (v_ View) CanDrawConcurrently() bool { + rv := objc.Call[bool](v_, objc.Sel("canDrawConcurrently")) return rv } -// A Boolean value indicating whether the view wants resting touches. [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/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/1483425-candrawconcurrently?language=objc +func (v_ View) SetCanDrawConcurrently(value bool) { + objc.Call[objc.Void](v_, objc.Sel("setCanDrawConcurrently:"), value) } -// A layout anchor representing the baseline for the bottommost line of text in the view. [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/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/1526974-bottomanchor?language=objc +func (v_ View) BottomAnchor() LayoutYAxisAnchor { + rv := objc.Call[LayoutYAxisAnchor](v_, objc.Sel("bottomAnchor")) return rv } @@ -2469,55 +2587,78 @@ func (v_ View) WidthAnchor() LayoutDimension { 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] +// The array of views embedded in the current view. [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/1483539-subviews?language=objc +func (v_ View) Subviews() []View { + rv := objc.Call[[]View](v_, objc.Sel("subviews")) 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] +// The array of views embedded in the current view. [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) +// [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 view that is the parent of the current view. [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/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/1483674-pageheader?language=objc +func (v_ View) PageHeader() foundation.AttributedString { + rv := objc.Call[foundation.AttributedString](v_, objc.Sel("pageHeader")) return rv } -// Returns a Boolean value indicating whether the view depends on the constraint-based layout system. [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/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/1483532-flipped?language=objc +func (v_ View) IsFlipped() bool { + rv := objc.Call[bool](v_, objc.Sel("isFlipped")) return rv } -// Returns a Boolean value indicating whether the view depends on the constraint-based layout system. [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/1526926-requiresconstraintbasedlayout?language=objc -func View_RequiresConstraintBasedLayout() bool { - return ViewClass.RequiresConstraintBasedLayout() +// [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 } -// A Boolean value that determines whether the view needs to be redrawn before being displayed. [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/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/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] +// +// [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 determines whether the view needs to be redrawn before being displayed. [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/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/1483465-nextkeyview?language=objc +func (v_ View) SetNextKeyView(value IView) { + objc.Call[objc.Void](v_, objc.Sel("setNextKeyView:"), objc.Ptr(value)) +} + +// 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/1483713-frame?language=objc +func (v_ View) Frame() foundation.Rect { + rv := objc.Call[foundation.Rect](v_, objc.Sel("frame")) + return rv +} + +// 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/1483713-frame?language=objc +func (v_ View) SetFrame(value foundation.Rect) { + objc.Call[objc.Void](v_, objc.Sel("setFrame:"), value) } diff --git a/macos/appkit/view_animation.gen.go b/macos/appkit/view_animation.gen.go index 1d58dc1c..38cf341c 100644 --- a/macos/appkit/view_animation.gen.go +++ b/macos/appkit/view_animation.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package appkit @@ -55,10 +55,6 @@ func (vc _ViewAnimationClass) Alloc() ViewAnimation { return rv } -func ViewAnimation_Alloc() ViewAnimation { - return ViewAnimationClass.Alloc() -} - func (vc _ViewAnimationClass) New() ViewAnimation { rv := objc.Call[ViewAnimation](vc, objc.Sel("new")) rv.Autorelease() diff --git a/macos/appkit/view_controller.gen.go b/macos/appkit/view_controller.gen.go index c6156c11..69b6fdea 100644 --- a/macos/appkit/view_controller.gen.go +++ b/macos/appkit/view_controller.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package appkit @@ -19,51 +19,52 @@ type _ViewControllerClass struct { // An interface definition for the [ViewController] class. type IViewController interface { IResponder - ViewDidLayout() - ViewWillLayout() - CommitEditing() bool - DismissController(sender objc.IObject) objc.Object + CommitEditingWithDelegateDidCommitSelectorContextInfo(delegate objc.IObject, didCommitSelector objc.Selector, contextInfo unsafe.Pointer) + DiscardEditing() ViewWillDisappear() - DismissViewController(viewController IViewController) - ViewDidAppear() - ViewWillAppear() - UpdateViewConstraints() - AddChildViewController(childViewController IViewController) - PresentViewControllerAsSheet(viewController IViewController) - TransitionFromViewControllerToViewControllerOptionsCompletionHandler(fromViewController IViewController, toViewController IViewController, options ViewControllerTransitionOptions, completion func()) + PresentViewControllerAnimator(viewController IViewController, animator PViewControllerPresentationAnimator) + PresentViewControllerAnimatorObject(viewController IViewController, animatorObject objc.IObject) + DismissController(sender objc.IObject) objc.Object RemoveChildViewControllerAtIndex(index int) - ViewDidLoad() + ViewWillAppear() + PreferredContentSizeDidChangeForViewController(viewController IViewController) + CommitEditing() bool + PresentViewControllerAsModalWindow(viewController IViewController) + ViewDidDisappear() LoadView() + TransitionFromViewControllerToViewControllerOptionsCompletionHandler(fromViewController IViewController, toViewController IViewController, options ViewControllerTransitionOptions, completion func()) + ViewDidAppear() + ViewDidLayout() InsertChildViewControllerAtIndex(childViewController IViewController, index int) + AddChildViewController(childViewController IViewController) ViewWillTransitionToSize(newSize foundation.Size) - CommitEditingWithDelegateDidCommitSelectorContextInfo(delegate objc.IObject, didCommitSelector objc.Selector, contextInfo unsafe.Pointer) - PreferredContentSizeDidChangeForViewController(viewController IViewController) + ViewWillLayout() RemoveFromParentViewController() - 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) - NibBundle() foundation.Bundle - PreferredMaximumSize() foundation.Size - PreferredMinimumSize() foundation.Size - PreferredScreenOrigin() foundation.Point - SetPreferredScreenOrigin(value foundation.Point) + 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) - Title() string - SetTitle(value string) + PreferredMaximumSize() foundation.Size + NibName() NibName + IsViewLoaded() bool PresentingViewController() ViewController + PreferredScreenOrigin() foundation.Point + SetPreferredScreenOrigin(value foundation.Point) + ParentViewController() ViewController + SourceItemView() View + SetSourceItemView(value IView) + View() View + SetView(value IView) ExtensionContext() foundation.ExtensionContext + PreferredMinimumSize() foundation.Size + PresentedViewControllers() []ViewController PreferredContentSize() foundation.Size SetPreferredContentSize(value foundation.Size) ChildViewControllers() []ViewController @@ -102,10 +103,6 @@ func (vc _ViewControllerClass) Alloc() ViewController { return rv } -func ViewController_Alloc() ViewController { - return ViewControllerClass.Alloc() -} - func (vc _ViewControllerClass) New() ViewController { rv := objc.Call[ViewController](vc, objc.Sel("new")) rv.Autorelease() @@ -121,26 +118,40 @@ func (v_ ViewController) Init() ViewController { return rv } -// Called immediately after the 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/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/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 just before the layout method of the view controller's view is called. [Full Topic] +// Causes the receiver to discard any changes, restoring the previous values. [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/1434487-discardediting?language=objc +func (v_ ViewController) DiscardEditing() { + objc.Call[objc.Void](v_, objc.Sel("discardEditing")) } -// Returns whether the receiver was able to commit any pending edits. [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/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/1434483-viewwilldisappear?language=objc +func (v_ ViewController) ViewWillDisappear() { + objc.Call[objc.Void](v_, objc.Sel("viewWillDisappear")) +} + +// Presents another view controller using a specified, custom animator for presentation and dismissal. [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:"), objc.Ptr(viewController), po1) +} + +// Presents another view controller using a specified, custom animator for presentation and dismissal. [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:"), objc.Ptr(viewController), objc.Ptr(animatorObject)) } // [Full Topic] @@ -151,53 +162,54 @@ func (v_ ViewController) DismissController(sender objc.IObject) objc.Object { return rv } -// Called when the view controller’s view is about to be removed from the view hierarchy in the window. [Full Topic] +// Removes a specified child controller from the view controller. [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/1434404-removechildviewcontrolleratindex?language=objc +func (v_ ViewController) RemoveChildViewControllerAtIndex(index int) { + objc.Call[objc.Void](v_, objc.Sel("removeChildViewControllerAtIndex:"), index) } -// Dismisses a presented view controller, using the same animator that presented it. [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/1434413-dismissviewcontroller?language=objc -func (v_ ViewController) DismissViewController(viewController IViewController) { - objc.Call[objc.Void](v_, objc.Sel("dismissViewController:"), objc.Ptr(viewController)) +// [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")) } -// Called when the view controller’s view is fully transitioned onto the screen. [Full Topic] +// 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] // -// [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/1434434-preferredcontentsizedidchangefor?language=objc +func (v_ ViewController) PreferredContentSizeDidChangeForViewController(viewController IViewController) { + objc.Call[objc.Void](v_, objc.Sel("preferredContentSizeDidChangeForViewController:"), objc.Ptr(viewController)) } -// 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] +// Returns whether the receiver was able to commit any pending edits. [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/1434485-commitediting?language=objc +func (v_ ViewController) CommitEditing() bool { + rv := objc.Call[bool](v_, objc.Sel("commitEditing")) + return rv } -// Called during Auto Layout constraint updating to enable the view controller to mediate the process. [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/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/1434462-presentviewcontrollerasmodalwind?language=objc +func (v_ ViewController) PresentViewControllerAsModalWindow(viewController IViewController) { + objc.Call[objc.Void](v_, objc.Sel("presentViewControllerAsModalWindow:"), objc.Ptr(viewController)) } -// A convenience method for adding a child view controller at the end of the childViewControllers array. [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/1434501-addchildviewcontroller?language=objc -func (v_ ViewController) AddChildViewController(childViewController IViewController) { - objc.Call[objc.Void](v_, objc.Sel("addChildViewController:"), objc.Ptr(childViewController)) +// [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 sheet. [Full Topic] +// Instantiates a view from a nib file and sets the value of the [appkit/nsviewcontroller/view] property. [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:"), objc.Ptr(viewController)) +// [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")) } // Performs a transition between two sibling child view controllers of the view controller. [Full Topic] @@ -207,34 +219,34 @@ func (v_ ViewController) TransitionFromViewControllerToViewControllerOptionsComp objc.Call[objc.Void](v_, objc.Sel("transitionFromViewController:toViewController:options:completionHandler:"), objc.Ptr(fromViewController), objc.Ptr(toViewController), options, completion) } -// Removes a specified child controller from the view controller. [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) -} - -// Called after the view controller’s view has been loaded into memory. [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/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/1434455-viewdidappear?language=objc +func (v_ ViewController) ViewDidAppear() { + objc.Call[objc.Void](v_, objc.Sel("viewDidAppear")) } -// Instantiates a view from a nib file and sets the value of the view property. [Full Topic] +// Called immediately after the [appkit/nsview/layout] method of the view controller's view is called. [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/1434451-viewdidlayout?language=objc +func (v_ ViewController) ViewDidLayout() { + objc.Call[objc.Void](v_, objc.Sel("viewDidLayout")) } -// Inserts a specified child view controller into the childViewControllers array at a specified position. [Full Topic] +// Inserts a specified child view controller into the [appkit/nsviewcontroller/childviewcontrollers] array at a specified position. [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:"), objc.Ptr(childViewController), index) } +// A convenience method for adding a child view controller at the end of the [appkit/nsviewcontroller/childviewcontrollers] array. [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:"), objc.Ptr(childViewController)) +} + // For a view controller that is part of an app extension, called when its view is about to be resized. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/appkit/nsviewcontroller/1434443-viewwilltransitiontosize?language=objc @@ -242,18 +254,11 @@ func (v_ ViewController) ViewWillTransitionToSize(newSize foundation.Size) { objc.Call[objc.Void](v_, objc.Sel("viewWillTransitionToSize:"), newSize) } -// Attempt to commit any currently edited results of the receiver. [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) -} - -// Called when there is a change in value of the preferredContentSize property of a child view controller or a presented view controller. [Full Topic] +// Called just before the [appkit/nsview/layout] method of the view controller's view is called. [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:"), objc.Ptr(viewController)) +// [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")) } // Removes the called view controller from its parent view controller. [Full Topic] @@ -263,125 +268,116 @@ func (v_ ViewController) RemoveFromParentViewController() { objc.Call[objc.Void](v_, objc.Sel("removeFromParentViewController")) } -// Causes the receiver to discard any changes, restoring the previous values. [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/1434487-discardediting?language=objc -func (v_ ViewController) DiscardEditing() { - objc.Call[objc.Void](v_, objc.Sel("discardEditing")) +// [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:"), objc.Ptr(viewController)) } -// Called after the view controller’s view is removed from the view hierarchy in a window. [Full Topic] +// Presents another view controller as a sheet. [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/1434489-presentviewcontrollerassheet?language=objc +func (v_ ViewController) PresentViewControllerAsSheet(viewController IViewController) { + objc.Call[objc.Void](v_, objc.Sel("presentViewControllerAsSheet:"), objc.Ptr(viewController)) } -// Presents another view controller as a modal window, also known as an alert. [Full Topic] +// Presents another view controller as a popover. [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:"), objc.Ptr(viewController)) +// [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:"), objc.Ptr(viewController), positioningRect, objc.Ptr(positioningView), preferredEdge, behavior) } -// Presents another view controller using a specified, custom animator for presentation and dismissal. [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/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:"), objc.Ptr(viewController), po1) +// [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")) } -// Presents another view controller using a specified, custom animator for presentation and dismissal. [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/1434431-presentviewcontroller?language=objc -func (v_ ViewController) PresentViewControllerAnimatorObject(viewController IViewController, animatorObject objc.IObject) { - objc.Call[objc.Void](v_, objc.Sel("presentViewController:animator:"), objc.Ptr(viewController), objc.Ptr(animatorObject)) +// [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] +// The localized title of 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/1434426-title?language=objc +func (v_ ViewController) Title() string { + rv := objc.Call[string](v_, objc.Sel("title")) return rv } -// [Full Topic] +// The localized title of 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:"), objc.Ptr(value)) +// [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) } -// The view controllers, if any, that are currently presented by 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/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/1434499-storyboard?language=objc +func (v_ ViewController) Storyboard() Storyboard { + rv := objc.Call[Storyboard](v_, objc.Sel("storyboard")) return rv } -// A Boolean value indicating whether the view controller’s view is loaded into memory. [Full Topic] +// The nib bundle to be loaded to instantiate the receiver’s primary view. [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/1434433-nibbundle?language=objc +func (v_ ViewController) NibBundle() foundation.Bundle { + rv := objc.Call[foundation.Bundle](v_, objc.Sel("nibBundle")) return rv } -// The name of the nib file to be loaded to instantiate the receiver’s primary view. [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/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/1434453-representedobject?language=objc +func (v_ ViewController) RepresentedObject() objc.Object { + rv := objc.Call[objc.Object](v_, objc.Sel("representedObject")) return rv } -// The immediate ancestor view controller of the view controller. [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/1434491-parentviewcontroller?language=objc -func (v_ ViewController) ParentViewController() ViewController { - rv := objc.Call[ViewController](v_, objc.Sel("parentViewController")) - return rv +// [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] +// 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/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/1434403-preferredmaximumsize?language=objc +func (v_ ViewController) PreferredMaximumSize() foundation.Size { + rv := objc.Call[foundation.Size](v_, objc.Sel("preferredMaximumSize")) 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:"), objc.Ptr(value)) -} - -// The nib bundle to be loaded to instantiate 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/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/1434472-nibname?language=objc +func (v_ ViewController) NibName() NibName { + rv := objc.Call[NibName](v_, objc.Sel("nibName")) 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] +// 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/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/1434435-viewloaded?language=objc +func (v_ ViewController) IsViewLoaded() bool { + rv := objc.Call[bool](v_, objc.Sel("isViewLoaded")) return rv } -// 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 } @@ -400,50 +396,42 @@ func (v_ ViewController) SetPreferredScreenOrigin(value foundation.Point) { objc.Call[objc.Void](v_, objc.Sel("setPreferredScreenOrigin:"), value) } -// The storyboard from which the view controller was loaded. [Full Topic] +// The immediate ancestor view controller of 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/1434491-parentviewcontroller?language=objc +func (v_ ViewController) ParentViewController() ViewController { + rv := objc.Call[ViewController](v_, objc.Sel("parentViewController")) return rv } -// The object whose value is presented in the receiver’s primary view. [Full Topic] +// [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/1434479-sourceitemview?language=objc +func (v_ ViewController) SourceItemView() View { + rv := objc.Call[View](v_, objc.Sel("sourceItemView")) return rv } -// The object whose value is presented in the receiver’s primary view. [Full Topic] +// [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/1434479-sourceitemview?language=objc +func (v_ ViewController) SetSourceItemView(value IView) { + objc.Call[objc.Void](v_, objc.Sel("setSourceItemView:"), objc.Ptr(value)) } -// The localized title of the receiver’s primary view. [Full Topic] +// The view controller’s primary view. [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/1434401-view?language=objc +func (v_ ViewController) View() View { + rv := objc.Call[View](v_, objc.Sel("view")) return rv } -// The localized title of the receiver’s primary view. [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) -} - -// The view controller that presented the view controller or that presented its farthest ancestor view controller. [Full Topic] +// The view controller’s primary view. [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")) - return rv +// [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:"), objc.Ptr(value)) } // For a view controller that is part of an app extension, the app extension context. [Full Topic] @@ -454,6 +442,22 @@ func (v_ ViewController) ExtensionContext() foundation.ExtensionContext { return rv } +// 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/1434418-preferredminimumsize?language=objc +func (v_ ViewController) PreferredMinimumSize() foundation.Size { + rv := objc.Call[foundation.Size](v_, objc.Sel("preferredMinimumSize")) + return rv +} + +// The view controllers, if any, that are currently presented by the view controller. [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")) + return rv +} + // The desired size of the view controller’s view, in screen units. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/appkit/nsviewcontroller/1434409-preferredcontentsize?language=objc diff --git a/macos/appkit/view_controller_presentation_animator.gen.go b/macos/appkit/view_controller_presentation_animator_protocol.gen.go similarity index 66% rename from macos/appkit/view_controller_presentation_animator.gen.go rename to macos/appkit/view_controller_presentation_animator_protocol.gen.go index a9c9d1dc..7accb172 100644 --- a/macos/appkit/view_controller_presentation_animator.gen.go +++ b/macos/appkit/view_controller_presentation_animator_protocol.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package appkit @@ -10,38 +10,41 @@ import ( // // [Full Topic]: https://developer.apple.com/documentation/appkit/nsviewcontrollerpresentationanimator?language=objc type PViewControllerPresentationAnimator interface { - // optional - AnimatePresentationOfViewControllerFromViewController(viewController ViewController, fromViewController ViewController) - HasAnimatePresentationOfViewControllerFromViewController() bool - // optional AnimateDismissalOfViewControllerFromViewController(viewController ViewController, fromViewController ViewController) HasAnimateDismissalOfViewControllerFromViewController() bool -} -// A concrete type wrapper for the [PViewControllerPresentationAnimator] protocol. -type ViewControllerPresentationAnimatorWrapper struct { - objc.Object + // optional + AnimatePresentationOfViewControllerFromViewController(viewController ViewController, fromViewController ViewController) + HasAnimatePresentationOfViewControllerFromViewController() bool } -func (v_ ViewControllerPresentationAnimatorWrapper) HasAnimatePresentationOfViewControllerFromViewController() bool { - return v_.RespondsToSelector(objc.Sel("animatePresentationOfViewController:fromViewController:")) -} +// ensure impl type implements protocol interface +var _ PViewControllerPresentationAnimator = (*ViewControllerPresentationAnimatorObject)(nil) -// Called when the specified view controller is about to be presented. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsviewcontrollerpresentationanimator/1434396-animatepresentationofviewcontrol?language=objc -func (v_ ViewControllerPresentationAnimatorWrapper) AnimatePresentationOfViewControllerFromViewController(viewController IViewController, fromViewController IViewController) { - objc.Call[objc.Void](v_, objc.Sel("animatePresentationOfViewController:fromViewController:"), objc.Ptr(viewController), objc.Ptr(fromViewController)) +// A concrete type for the [PViewControllerPresentationAnimator] protocol. +type ViewControllerPresentationAnimatorObject struct { + objc.Object } -func (v_ ViewControllerPresentationAnimatorWrapper) HasAnimateDismissalOfViewControllerFromViewController() bool { +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_ ViewControllerPresentationAnimatorWrapper) AnimateDismissalOfViewControllerFromViewController(viewController IViewController, fromViewController IViewController) { +func (v_ ViewControllerPresentationAnimatorObject) AnimateDismissalOfViewControllerFromViewController(viewController ViewController, fromViewController ViewController) { objc.Call[objc.Void](v_, objc.Sel("animateDismissalOfViewController:fromViewController:"), objc.Ptr(viewController), objc.Ptr(fromViewController)) } + +func (v_ ViewControllerPresentationAnimatorObject) HasAnimatePresentationOfViewControllerFromViewController() bool { + return v_.RespondsToSelector(objc.Sel("animatePresentationOfViewController:fromViewController:")) +} + +// Called when the specified view controller is about to be presented. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/appkit/nsviewcontrollerpresentationanimator/1434396-animatepresentationofviewcontrol?language=objc +func (v_ ViewControllerPresentationAnimatorObject) AnimatePresentationOfViewControllerFromViewController(viewController ViewController, fromViewController ViewController) { + objc.Call[objc.Void](v_, objc.Sel("animatePresentationOfViewController:fromViewController:"), objc.Ptr(viewController), objc.Ptr(fromViewController)) +} diff --git a/macos/appkit/view_layer_content_scale_delegate.gen.go b/macos/appkit/view_layer_content_scale_delegate.gen.go index c1ad3eb1..3727b4f5 100644 --- a/macos/appkit/view_layer_content_scale_delegate.gen.go +++ b/macos/appkit/view_layer_content_scale_delegate.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package appkit @@ -39,19 +39,22 @@ func (di *ViewLayerContentScaleDelegate) LayerShouldInheritContentsScaleFromWind return di._LayerShouldInheritContentsScaleFromWindow(layer, newScale, window) } -// A concrete type wrapper for the [PViewLayerContentScaleDelegate] protocol. -type ViewLayerContentScaleDelegateWrapper struct { +// ensure impl type implements protocol interface +var _ PViewLayerContentScaleDelegate = (*ViewLayerContentScaleDelegateObject)(nil) + +// A concrete type for the [PViewLayerContentScaleDelegate] protocol. +type ViewLayerContentScaleDelegateObject struct { objc.Object } -func (v_ ViewLayerContentScaleDelegateWrapper) HasLayerShouldInheritContentsScaleFromWindow() bool { +func (v_ ViewLayerContentScaleDelegateObject) HasLayerShouldInheritContentsScaleFromWindow() bool { return v_.RespondsToSelector(objc.Sel("layer:shouldInheritContentsScale:fromWindow:")) } // Notifies you when a resolution changes occurs for the window that hosts the layer. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/appkit/nsviewlayercontentscaledelegate/3005294-layer?language=objc -func (v_ ViewLayerContentScaleDelegateWrapper) LayerShouldInheritContentsScaleFromWindow(layer quartzcore.ILayer, newScale float64, window IWindow) bool { +func (v_ ViewLayerContentScaleDelegateObject) LayerShouldInheritContentsScaleFromWindow(layer quartzcore.Layer, newScale float64, window Window) bool { rv := objc.Call[bool](v_, objc.Sel("layer:shouldInheritContentsScale:fromWindow:"), objc.Ptr(layer), newScale, objc.Ptr(window)) return rv } diff --git a/macos/appkit/view_tool_tip_owner.gen.go b/macos/appkit/view_tool_tip_owner_protocol.gen.go similarity index 68% rename from macos/appkit/view_tool_tip_owner.gen.go rename to macos/appkit/view_tool_tip_owner_protocol.gen.go index 82625eab..fbeaff58 100644 --- a/macos/appkit/view_tool_tip_owner.gen.go +++ b/macos/appkit/view_tool_tip_owner_protocol.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package appkit @@ -18,19 +18,22 @@ type PViewToolTipOwner interface { HasViewStringForToolTipPointUserData() bool } -// A concrete type wrapper for the [PViewToolTipOwner] protocol. -type ViewToolTipOwnerWrapper struct { +// ensure impl type implements protocol interface +var _ PViewToolTipOwner = (*ViewToolTipOwnerObject)(nil) + +// A concrete type for the [PViewToolTipOwner] protocol. +type ViewToolTipOwnerObject struct { objc.Object } -func (v_ ViewToolTipOwnerWrapper) HasViewStringForToolTipPointUserData() bool { +func (v_ ViewToolTipOwnerObject) HasViewStringForToolTipPointUserData() bool { return v_.RespondsToSelector(objc.Sel("view:stringForToolTip:point:userData:")) } // Returns the tool tip string to be displayed due to the cursor pausing at location point within the tool tip rectangle identified by tag in the view view. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/appkit/nsviewtooltipowner/3005296-view?language=objc -func (v_ ViewToolTipOwnerWrapper) ViewStringForToolTipPointUserData(view IView, tag ToolTipTag, point foundation.Point, data unsafe.Pointer) string { +func (v_ ViewToolTipOwnerObject) ViewStringForToolTipPointUserData(view View, tag ToolTipTag, point foundation.Point, data unsafe.Pointer) string { rv := objc.Call[string](v_, objc.Sel("view:stringForToolTip:point:userData:"), objc.Ptr(view), tag, point, data) return rv } diff --git a/macos/appkit/visual_effect_view.gen.go b/macos/appkit/visual_effect_view.gen.go index fe0304f2..4f4f19d5 100644 --- a/macos/appkit/visual_effect_view.gen.go +++ b/macos/appkit/visual_effect_view.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package appkit @@ -19,17 +19,17 @@ type _VisualEffectViewClass struct { // An interface definition for the [VisualEffectView] class. type IVisualEffectView interface { IView - State() VisualEffectState - SetState(value VisualEffectState) + InteriorBackgroundStyle() BackgroundStyle + Material() VisualEffectMaterial + SetMaterial(value VisualEffectMaterial) + BlendingMode() VisualEffectBlendingMode + SetBlendingMode(value VisualEffectBlendingMode) IsEmphasized() bool SetEmphasized(value bool) MaskImage() Image SetMaskImage(value IImage) - InteriorBackgroundStyle() BackgroundStyle - BlendingMode() VisualEffectBlendingMode - SetBlendingMode(value VisualEffectBlendingMode) - Material() VisualEffectMaterial - SetMaterial(value VisualEffectMaterial) + State() VisualEffectState + SetState(value VisualEffectState) } // A view that adds translucency and vibrancy effects to the views in your interface. [Full Topic] @@ -50,10 +50,6 @@ func (vc _VisualEffectViewClass) Alloc() VisualEffectView { return rv } -func VisualEffectView_Alloc() VisualEffectView { - return VisualEffectViewClass.Alloc() -} - func (vc _VisualEffectViewClass) New() VisualEffectView { rv := objc.Call[VisualEffectView](vc, objc.Sel("new")) rv.Autorelease() @@ -83,19 +79,42 @@ func NewVisualEffectViewWithFrame(frameRect foundation.Rect) VisualEffectView { return instance } -// 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] +// The material shown by the visual effect view. [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/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] +// +// [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) } // A Boolean value indicating whether to emphasize the look of the material. [Full Topic] @@ -128,40 +147,17 @@ func (v_ VisualEffectView) SetMaskImage(value IImage) { objc.Call[objc.Void](v_, objc.Sel("setMaskImage:"), objc.Ptr(value)) } -// 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 -} - -// 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) 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] +// A value that indicates whether a view has a visual effect applied. [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")) +// [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 } -// The material shown by the visual effect view. [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/1526623-material?language=objc -func (v_ VisualEffectView) SetMaterial(value VisualEffectMaterial) { - objc.Call[objc.Void](v_, objc.Sel("setMaterial:"), 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) } diff --git a/macos/appkit/window.gen.go b/macos/appkit/window.gen.go index 9b216256..bc67d2a5 100644 --- a/macos/appkit/window.gen.go +++ b/macos/appkit/window.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package appkit @@ -19,293 +19,299 @@ 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) - SaveFrameUsingName(name WindowFrameAutosaveName) + DataWithPDFInsideRect(rect foundation.Rect) []byte + Deminiaturize(sender objc.IObject) + SetFrameUsingNameForce(name WindowFrameAutosaveName, force bool) bool + Close() MakeKeyWindow() - SendEvent(event IEvent) - DisableKeyEquivalentForDefaultButtonCell() - DiscardCursorRects() - ConvertPointToBacking(point foundation.Point) foundation.Point + SelectNextKeyView(sender objc.IObject) SetFrameOrigin(point foundation.Point) - EnableCursorRects() - OrderFrontRegardless() - ConvertRectFromBacking(rect foundation.Rect) foundation.Rect + SetFrameDisplay(frameRect foundation.Rect, flag bool) + ResignKeyWindow() + CascadeTopLeftFromPoint(topLeftPoint foundation.Point) foundation.Point SetContentSize(size foundation.Size) - 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() + BecomeMainWindow() + SetAnchorAttributeForOrientation(attr LayoutAttribute, orientation LayoutConstraintOrientation) + SetIsZoomed(flag bool) + ContentBorderThicknessForEdge(edge foundation.RectEdge) float64 VisualizeConstraints(constraints []ILayoutConstraint) - SetContentBorderThicknessForEdge(thickness float64, edge foundation.RectEdge) - ConvertRectToScreen(rect foundation.Rect) foundation.Rect - ResetCursorRects() - AnchorAttributeForOrientation(orientation LayoutConstraintOrientation) LayoutAttribute + CanRepresentDisplayGamut(displayGamut DisplayGamut) bool + ToggleTabBar(sender objc.IObject) objc.Object + DisableScreenUpdatesUntilFlush() UpdateConstraintsIfNeeded() - HandleSaveScriptCommand(command foundation.IScriptCommand) objc.Object - Close() + ConvertRectToScreen(rect foundation.Rect) foundation.Rect DataWithEPSInsideRect(rect foundation.Rect) []byte - ToggleTabBar(sender objc.IObject) objc.Object - HandleCloseScriptCommand(command foundation.ICloseCommand) objc.Object - RemoveChildWindow(childWin IWindow) - MakeMainWindow() - RunToolbarCustomizationPalette(sender objc.IObject) + SetFrameFromString(string_ WindowPersistableFrameDescriptor) + EnableSnapshotRestoration() + AnimationResizeTime(newFrame foundation.Rect) foundation.TimeInterval + ConvertPointToScreen(point foundation.Point) foundation.Point + FrameRectForContentRect(contentRect foundation.Rect) foundation.Rect ResignMainWindow() - BeginSheetCompletionHandler(sheetWindow IWindow, handler func(returnCode ModalResponse)) - CascadeTopLeftFromPoint(topLeftPoint foundation.Point) foundation.Point + Zoom(sender objc.IObject) + SetIsMiniaturized(flag bool) + NextEventMatchingMaskUntilDateInModeDequeue(mask EventMask, expiration foundation.IDate, mode foundation.RunLoopMode, deqFlag bool) Event + OrderFrontRegardless() + 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) - DisableScreenUpdatesUntilFlush() - ConvertRectToBacking(rect foundation.Rect) foundation.Rect - SetFrameDisplay(frameRect foundation.Rect, flag bool) - AnimationResizeTime(newFrame foundation.Rect) foundation.TimeInterval - SelectKeyViewFollowingView(view IView) + DragImageAtOffsetEventPasteboardSourceSlideBack(image IImage, baseLocation foundation.Point, initialOffset foundation.Size, event IEvent, pboard IPasteboard, sourceObj objc.IObject, slideFlag bool) + Display() + 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) - 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 + NextEventMatchingMask(mask EventMask) Event + Update() + ResetCursorRects() + AddChildWindowOrdered(childWin IWindow, place WindowOrderingMode) InvalidateShadow() - HandlePrintScriptCommand(command foundation.IScriptCommand) objc.Object - Display() + DisplayIfNeeded() + SelectPreviousTab(sender objc.IObject) objc.Object + BecomeKeyWindow() + ConvertPointToBacking(point foundation.Point) foundation.Point + UnregisterDraggedTypes() PerformMiniaturize(sender objc.IObject) + ConvertRectToBacking(rect foundation.Rect) foundation.Rect + LayoutIfNeeded() + 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) + 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() DisableCursorRects() - SetDynamicDepthLimit(flag bool) - Miniaturize(sender objc.IObject) + RemoveTitlebarAccessoryViewControllerAtIndex(index int) 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) - 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() + AutorecalculatesContentBorderThicknessForEdge(edge foundation.RectEdge) bool DisableSnapshotRestoration() - 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) + AddTitlebarAccessoryViewController(childViewController ITitlebarAccessoryViewController) PerformClose(sender objc.IObject) + ConvertPointFromBacking(point foundation.Point) foundation.Point ConvertRectFromScreen(rect foundation.Rect) foundation.Rect - 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() + Print(sender objc.IObject) InsertTitlebarAccessoryViewControllerAtIndex(childViewController ITitlebarAccessoryViewController, index int) - PerformZoom(sender objc.IObject) - SetFrameTopLeftPoint(point foundation.Point) - DisplayIfNeeded() - Center() - IsRestorable() bool - SetRestorable(value bool) + SendEvent(event IEvent) + MakeFirstResponder(responder IResponder) bool + OrderWindowRelativeTo(place WindowOrderingMode, otherWin int) + WorksWhenModal() bool MaxSize() foundation.Size SetMaxSize(value foundation.Size) - HidesOnDeactivate() bool - SetHidesOnDeactivate(value bool) + ResizeFlags() EventModifierFlags + IsFloatingPanel() bool + WindowController() WindowController + SetWindowController(value IWindowController) + ContentAspectRatio() foundation.Size + SetContentAspectRatio(value foundation.Size) + WindowTitlebarLayoutDirection() UserInterfaceLayoutDirection + IsOpaque() bool + SetOpaque(value bool) + 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 IsVisible() bool ParentWindow() Window SetParentWindow(value IWindow) - MinFullScreenContentSize() foundation.Size - SetMinFullScreenContentSize(value foundation.Size) - Sheets() []Window + AcceptsMouseMovedEvents() bool + SetAcceptsMouseMovedEvents(value bool) + HasCloseBox() bool + MouseLocationOutsideOfEventStream() foundation.Point + IsMiniaturizable() bool + Subtitle() string + SetSubtitle(value string) + HasTitleBar() bool + OcclusionState() WindowOcclusionState IsExcludedFromWindowsMenu() bool SetExcludedFromWindowsMenu(value bool) + ContentLayoutGuide() objc.Object + AppearanceSource() objc.Object + SetAppearanceSource(value objc.IObject) + WindowRef() unsafe.Pointer IsSheet() 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 + TabGroup() WindowTabGroup + BackingScaleFactor() float64 + IsOnActiveSpace() 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 + 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 + OrderedIndex() int + SetOrderedIndex(value int) DefaultButtonCell() ButtonCell SetDefaultButtonCell(value IButtonCell) - 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 + CanBecomeMainWindow() 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) - MiniwindowImage() Image - SetMiniwindowImage(value IImage) - Toolbar() Toolbar - SetToolbar(value IToolbar) - ColorSpace() ColorSpace - SetColorSpace(value IColorSpace) - DepthLimit() WindowDepth - SetDepthLimit(value WindowDepth) - Delegate() WindowDelegateWrapper - 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 + AttachedSheet() Window + SharingType() WindowSharingType + SetSharingType(value WindowSharingType) + FirstResponder() Responder + IsMainWindow() bool AllowsConcurrentViewDrawing() bool SetAllowsConcurrentViewDrawing(value bool) - CanBecomeVisibleWithoutLogin() bool - SetCanBecomeVisibleWithoutLogin(value bool) - AreCursorRectsEnabled() bool - ContentViewController() ViewController - SetContentViewController(value IViewController) - DeviceDescription() map[DeviceDescriptionKey]objc.Object + InLiveResize() bool + ContentMaxSize() foundation.Size + SetContentMaxSize(value foundation.Size) + ToolbarStyle() WindowToolbarStyle + SetToolbarStyle(value WindowToolbarStyle) + IsZoomed() bool ContentMinSize() foundation.Size SetContentMinSize(value foundation.Size) - TitlebarSeparatorStyle() TitlebarSeparatorStyle - SetTitlebarSeparatorStyle(value TitlebarSeparatorStyle) - IsDocumentEdited() bool - SetDocumentEdited(value bool) - CollectionBehavior() WindowCollectionBehavior - SetCollectionBehavior(value WindowCollectionBehavior) + RepresentedURL() foundation.URL + SetRepresentedURL(value foundation.IURL) 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 + Tab() WindowTab + IsDocumentEdited() bool + SetDocumentEdited(value bool) + HasDynamicDepthLimit() bool + MaxFullScreenContentSize() foundation.Size + SetMaxFullScreenContentSize(value foundation.Size) Frame() foundation.Rect - CanBecomeMainWindow() bool + 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) Title() string SetTitle(value string) - 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) + 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) + AutorecalculatesKeyViewLoop() bool + SetAutorecalculatesKeyViewLoop(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) - FrameAutosaveName() WindowFrameAutosaveName - MaxFullScreenContentSize() foundation.Size - SetMaxFullScreenContentSize(value foundation.Size) - AllowsToolTipsWhenApplicationIsInactive() bool - SetAllowsToolTipsWhenApplicationIsInactive(value bool) - SheetParent() Window + 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) } // A window that an app displays on the screen. [Full Topic] @@ -347,13 +353,23 @@ func NewWindowWithContentRectStyleMaskBackingDeferScreen(contentRect foundation. return instance } -func (wc _WindowClass) Alloc() Window { - rv := objc.Call[Window](wc, objc.Sel("alloc")) +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 } -func Window_Alloc() Window { - return WindowClass.Alloc() +// 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 } func (wc _WindowClass) New() Window { @@ -371,84 +387,223 @@ func (w_ Window) Init() Window { return rv } -// Adds the provided window as a new tab in a tabbed window using the specified ordering instruction. [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/1855947-addtabbedwindow?language=objc -func (w_ Window) AddTabbedWindowOrdered(window IWindow, ordered WindowOrderingMode) { - objc.Call[objc.Void](w_, objc.Sel("addTabbedWindow:ordered:"), objc.Ptr(window), ordered) +// [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 the frame rectangle used by a window with a given content rectangle and window style. [Full Topic] +// Reenables cursor rectangle management within the window after a [appkit/nswindow/disablecursorrects] message. [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) +// [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 } -// Returns the frame rectangle used by a window with a given content rectangle and window style. [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/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/1419601-invalidatecursorrectsforview?language=objc +func (w_ Window) InvalidateCursorRectsForView(view IView) { + objc.Call[objc.Void](w_, objc.Sel("invalidateCursorRectsForView:"), objc.Ptr(view)) } -// Saves the window’s frame rectangle in the user defaults system under a given name. [Full Topic] +// Sets the window’s visible state to the value you specify. [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/1449570-setisvisible?language=objc +func (w_ Window) SetIsVisible(flag bool) { + objc.Call[objc.Void](w_, objc.Sel("setIsVisible:"), flag) } -// Makes the window the key 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/1419368-makekeywindow?language=objc -func (w_ Window) MakeKeyWindow() { - objc.Call[objc.Void](w_, objc.Sel("makeKeyWindow")) +// [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) } -// This action method dispatches mouse and keyboard events the global application object sends to the window. [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/1419228-sendevent?language=objc -func (w_ Window) SendEvent(event IEvent) { - objc.Call[objc.Void](w_, objc.Sel("sendEvent:"), objc.Ptr(event)) +// [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 } -// Disables the default button cell’s key equivalent, so it doesn’t perform a click when the user presses Return (or Enter). [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/1419242-disablekeyequivalentfordefaultbu?language=objc -func (w_ Window) DisableKeyEquivalentForDefaultButtonCell() { - objc.Call[objc.Void](w_, objc.Sel("disableKeyEquivalentForDefaultButtonCell")) +// [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 numbers for all visible windows satisfying the specified options. [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/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/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 } -// Returns the window numbers for all visible windows satisfying the specified options. [Full Topic] +// Removes the window from the screen list, which hides the window. [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/1419660-orderout?language=objc +func (w_ Window) OrderOut(sender objc.IObject) { + objc.Call[objc.Void](w_, objc.Sel("orderOut:"), sender) } -// Invalidates all cursor rectangles in the window. [Full Topic] +// Sets the window’s location to the center of the screen. [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/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:"), objc.Ptr(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:"), objc.Ptr(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] +// +// [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) +} + +// 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 +} + +// 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/1855947-addtabbedwindow?language=objc +func (w_ Window) AddTabbedWindowOrdered(window IWindow, ordered WindowOrderingMode) { + objc.Call[objc.Void](w_, objc.Sel("addTabbedWindow:ordered:"), objc.Ptr(window), ordered) +} + +// 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 +} + +// De-minimizes the 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) +} + +// 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] +// +// [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 +} + +// 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 a new instance of a given standard window button, sized appropriately for a given window style. [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) + return rv +} + +// Returns a new instance of a given standard window button, sized appropriately for a given window style. [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) +} + +// 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")) } -// 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) } // Positions the bottom-left corner of the window’s frame rectangle at a given point in screen coordinates. [Full Topic] @@ -458,25 +613,25 @@ func (w_ Window) SetFrameOrigin(point foundation.Point) { objc.Call[objc.Void](w_, objc.Sel("setFrameOrigin:"), point) } -// Reenables cursor rectangle management within the window after a disableCursorRects message. [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/1419202-enablecursorrects?language=objc -func (w_ Window) EnableCursorRects() { - objc.Call[objc.Void](w_, objc.Sel("enableCursorRects")) +// [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) } -// 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] +// Resigns the window’s key window status. [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/1419047-resignkeywindow?language=objc +func (w_ Window) ResignKeyWindow() { + objc.Call[objc.Void](w_, objc.Sel("resignKeyWindow")) } -// Converts a rectangle from its pixel-aligned backing store coordinate system to the window’s coordinate system. [Full Topic] +// Positions the window’s top-left to a given point. [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/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 } @@ -487,55 +642,48 @@ func (w_ Window) SetContentSize(size foundation.Size) { objc.Call[objc.Void](w_, objc.Sel("setContentSize:"), size) } -// Indicates whether the window calculates the thickness of a given border automatically. [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) - return rv -} - -// Sets the window’s frame rectangle from a given string representation. [Full Topic] +// Informs the window that it has become the main window. [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/1419084-becomemainwindow?language=objc +func (w_ Window) BecomeMainWindow() { + objc.Call[objc.Void](w_, objc.Sel("becomeMainWindow")) } -// Gives key view status to the view that precedes the given view. [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/1419757-selectkeyviewprecedingview?language=objc -func (w_ Window) SelectKeyViewPrecedingView(view IView) { - objc.Call[objc.Void](w_, objc.Sel("selectKeyViewPrecedingView:"), objc.Ptr(view)) +// [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 } -// Begins a dragging session. [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/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:"), objc.Ptr(image), baseLocation, initialOffset, objc.Ptr(event), objc.Ptr(pboard), sourceObj, slideFlag) +// [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) } -// Moves the tab to a new containing window. [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/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 +// [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) } -// Removes the window from the screen list, which hides the window. [Full Topic] +// Sets the window’s zoomed state to the value you specify. [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) +// [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) } -// Marks the key view loop as “dirty” and in need of recalculation. [Full Topic] +// Indicates the thickness of a given border of 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/1419775-contentborderthicknessforedge?language=objc +func (w_ Window) ContentBorderThicknessForEdge(edge foundation.RectEdge) float64 { + rv := objc.Call[float64](w_, objc.Sel("contentBorderThicknessForEdge:"), edge) + return rv } // Displays a visual representation of the supplied constraints in the window. [Full Topic] @@ -545,34 +693,27 @@ func (w_ Window) VisualizeConstraints(constraints []ILayoutConstraint) { objc.Call[objc.Void](w_, objc.Sel("visualizeConstraints:"), constraints) } -// Specifies the thickness of a given border of the window. [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) -} - -// Converts a rectangle to the screen coordinate system from the window’s coordinate system. [Full Topic] +// 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/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/2138278-canrepresentdisplaygamut?language=objc +func (w_ Window) CanRepresentDisplayGamut(displayGamut DisplayGamut) bool { + rv := objc.Call[bool](w_, objc.Sel("canRepresentDisplayGamut:"), displayGamut) return rv } -// Clears the window’s cursor rectangles and the cursor rectangles of the NSView objects in its view hierarchy. [Full Topic] +// Shows or hides the tab bar. [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/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 } -// Returns the part of the window that stays stationary during constraint-based layout. [Full Topic] +// Disables the window’s screen updates until the window is flushed. [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 +// [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")) } // Updates the constraints based on changes to views in the window since the last layout. [Full Topic] @@ -582,21 +723,14 @@ func (w_ Window) UpdateConstraintsIfNeeded() { objc.Call[objc.Void](w_, objc.Sel("updateConstraintsIfNeeded")) } -// Handles the AppleScript command to save the window (and its associated document, if any). [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/1449591-handlesavescriptcommand?language=objc -func (w_ Window) HandleSaveScriptCommand(command foundation.IScriptCommand) objc.Object { - rv := objc.Call[objc.Object](w_, objc.Sel("handleSaveScriptCommand:"), objc.Ptr(command)) +// [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 } -// 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 @@ -605,41 +739,42 @@ func (w_ Window) DataWithEPSInsideRect(rect foundation.Rect) []byte { return rv } -// Shows or hides the tab bar. [Full Topic] +// Sets the window’s frame rectangle from a given string representation. [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) - 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_) } -// Handles the AppleScript command to close the window (and its associated document, if any). [Full Topic] +// Enables snapshot restoration. [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:"), objc.Ptr(command)) - return rv +// [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")) } -// Detaches a given child window from the window. [Full Topic] +// Specifies the duration of a smooth frame-size change. [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:"), objc.Ptr(childWin)) +// [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 } -// Makes the window the main window. [Full Topic] +// 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/1419271-makemainwindow?language=objc -func (w_ Window) MakeMainWindow() { - objc.Call[objc.Void](w_, objc.Sel("makeMainWindow")) +// [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 } -// Presents the toolbar customization user interface. [Full Topic] +// Returns the window’s frame rectangle with a given content rectangle. [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/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 } // Resigns the window’s main window status. [Full Topic] @@ -649,122 +784,122 @@ func (w_ Window) ResignMainWindow() { objc.Call[objc.Void](w_, objc.Sel("resignMainWindow")) } -// Starts a document-modal session and presents—or queues for presentation—a sheet. [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/1419653-beginsheet?language=objc -func (w_ Window) BeginSheetCompletionHandler(sheetWindow IWindow, handler func(returnCode ModalResponse)) { - objc.Call[objc.Void](w_, objc.Sel("beginSheet:completionHandler:"), objc.Ptr(sheetWindow), handler) +// [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) } -// Positions the window’s top-left to a given point. [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/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/1419678-windownumberswithoptions?language=objc +func (wc _WindowClass) WindowNumbersWithOptions(options WindowNumberListOptions) []foundation.Number { + rv := objc.Call[[]foundation.Number](wc, objc.Sel("windowNumbersWithOptions:"), options) return rv } -// Forwards the message to the global application object. [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/1419676-discardeventsmatchingmask?language=objc -func (w_ Window) DiscardEventsMatchingMaskBeforeEvent(mask EventMask, lastEvent IEvent) { - objc.Call[objc.Void](w_, objc.Sel("discardEventsMatchingMask:beforeEvent:"), mask, objc.Ptr(lastEvent)) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nswindow/1419678-windownumberswithoptions?language=objc +func Window_WindowNumbersWithOptions(options WindowNumberListOptions) []foundation.Number { + return WindowClass.WindowNumbersWithOptions(options) } -// Disables the window’s screen updates until the window is flushed. [Full Topic] +// Sets the window’s miniaturized state to the value you specify. [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/1449566-setisminiaturized?language=objc +func (w_ Window) SetIsMiniaturized(flag bool) { + objc.Call[objc.Void](w_, objc.Sel("setIsMiniaturized:"), flag) } -// Converts a rectangle from the window’s coordinate system to its pixel-aligned backing store coordinate system. [Full Topic] +// Forwards the message to the global application object. [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/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, objc.Ptr(expiration), mode, deqFlag) return rv } -// 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] +// 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/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/1419444-orderfrontregardless?language=objc +func (w_ Window) OrderFrontRegardless() { + objc.Call[objc.Void](w_, objc.Sel("orderFrontRegardless")) } -// Specifies the duration of a smooth frame-size change. [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/1419655-animationresizetime?language=objc -func (w_ Window) AnimationResizeTime(newFrame foundation.Rect) foundation.TimeInterval { - rv := objc.Call[foundation.TimeInterval](w_, objc.Sel("animationResizeTime:"), newFrame) +// [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:"), objc.Ptr(command)) return rv } -// Gives key view status to the view that follows the given view. [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/1419633-selectkeyviewfollowingview?language=objc -func (w_ Window) SelectKeyViewFollowingView(view IView) { - objc.Call[objc.Void](w_, objc.Sel("selectKeyViewFollowingView:"), objc.Ptr(view)) +// [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) } -// Registers a set of pasteboard types that the window accepts as the destination of an image-dragging session. [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/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/1419192-settitlewithrepresentedfilename?language=objc +func (w_ Window) SetTitleWithRepresentedFilename(filename string) { + objc.Call[objc.Void](w_, objc.Sel("setTitleWithRepresentedFilename:"), filename) } -// Sets the part of the window that stays stationary during constraint-based layout. [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/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/1419509-setframeautosavename?language=objc +func (w_ Window) SetFrameAutosaveName(name WindowFrameAutosaveName) bool { + rv := objc.Call[bool](w_, objc.Sel("setFrameAutosaveName:"), name) + return rv } -// Indicates the thickness of a given border of the window. [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/1419775-contentborderthicknessforedge?language=objc -func (w_ Window) ContentBorderThicknessForEdge(edge foundation.RectEdge) float64 { - rv := objc.Call[float64](w_, objc.Sel("contentBorderThicknessForEdge:"), edge) +// [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 } -// 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] +// 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/1419204-orderback?language=objc -func (w_ Window) OrderBack(sender objc.IObject) { - objc.Call[objc.Void](w_, objc.Sel("orderBack:"), sender) +// [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) } -// Tracks events that match the specified mask using the specified tracking handler until the tracking handler explicitly terminates tracking. [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/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/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, objc.Ptr(screen)) + return rv } -// Returns a Cocoa window created from a Carbon 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/1419446-initwithwindowref?language=objc -func (w_ Window) InitWithWindowRef(windowRef unsafe.Pointer) Window { - rv := objc.Call[Window](w_, objc.Sel("initWithWindowRef:"), windowRef) - return rv +// [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) } -// Invalidates the window shadow so that it is recomputed based on the current window shape. [Full Topic] +// Forwards the message to the global application object. [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/1419676-discardeventsmatchingmask?language=objc +func (w_ Window) DiscardEventsMatchingMaskBeforeEvent(mask EventMask, lastEvent IEvent) { + objc.Call[objc.Void](w_, objc.Sel("discardEventsMatchingMask:beforeEvent:"), mask, objc.Ptr(lastEvent)) } -// Handles the AppleScript command to print the contents of the window (or its associated document, if any). [Full Topic] +// Begins a dragging session. [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:"), objc.Ptr(command)) - return rv +// [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:"), objc.Ptr(image), baseLocation, initialOffset, objc.Ptr(event), objc.Ptr(pboard), sourceObj, slideFlag) } // Passes a display message down the window’s view hierarchy, thus redrawing all views within the window. [Full Topic] @@ -774,135 +909,120 @@ func (w_ Window) Display() { objc.Call[objc.Void](w_, objc.Sel("display")) } -// Simulates the user clicking the minimize button by momentarily highlighting the button, then minimizing the window. [Full Topic] +// Presents the toolbar customization user interface. [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/1419284-runtoolbarcustomizationpalette?language=objc +func (w_ Window) RunToolbarCustomizationPalette(sender objc.IObject) { + objc.Call[objc.Void](w_, objc.Sel("runToolbarCustomizationPalette:"), sender) } -// Disables all cursor rectangle management within the window. [Full Topic] +// Marks the key view loop as “dirty” and in need of recalculation. [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/1419350-recalculatekeyviewloop?language=objc +func (w_ Window) RecalculateKeyViewLoop() { + objc.Call[objc.Void](w_, objc.Sel("recalculateKeyViewLoop")) } -// 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] +// Invalidates all cursor rectangles in the 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/1419269-discardcursorrects?language=objc +func (w_ Window) DiscardCursorRects() { + objc.Call[objc.Void](w_, objc.Sel("discardCursorRects")) } -// Returns the content rectangle used by a window with a given frame rectangle and window style. [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/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/1449585-handleprintscriptcommand?language=objc +func (w_ Window) HandlePrintScriptCommand(command foundation.IScriptCommand) objc.Object { + rv := objc.Call[objc.Object](w_, objc.Sel("handlePrintScriptCommand:"), objc.Ptr(command)) return rv } -// Returns the content rectangle used by a window with a given frame rectangle and window style. [Full Topic] +// Ends a document-modal session and dismisses the specified sheet. [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/1419318-endsheet?language=objc +func (w_ Window) EndSheet(sheetWindow IWindow) { + objc.Call[objc.Void](w_, objc.Sel("endSheet:"), objc.Ptr(sheetWindow)) } -// Removes the window from the screen list and displays the minimized window in the Dock. [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/1419426-miniaturize?language=objc -func (w_ Window) Miniaturize(sender objc.IObject) { - objc.Call[objc.Void](w_, objc.Sel("miniaturize:"), sender) +// [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) } -// Selects the next tab in the tab group in the trailing direction. [Full Topic] +// Moves the tab to a new containing window. [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/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 } -// Adds the specified title bar accessory view controller to the window. [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:"), objc.Ptr(childViewController)) -} - -// Attempts to make a given responder the first responder for 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/1419366-makefirstresponder?language=objc -func (w_ Window) MakeFirstResponder(responder IResponder) bool { - rv := objc.Call[bool](w_, objc.Sel("makeFirstResponder:"), objc.Ptr(responder)) +// [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 } -// Sets the window’s zoomed state to the value you specify. [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) -} - -// Starts a document-modal session and presents the specified critical sheet. [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/1419198-begincriticalsheet?language=objc -func (w_ Window) BeginCriticalSheetCompletionHandler(sheetWindow IWindow, handler func(returnCode ModalResponse)) { - objc.Call[objc.Void](w_, objc.Sel("beginCriticalSheet:completionHandler:"), objc.Ptr(sheetWindow), handler) +// [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) } -// Takes the window into or out of fullscreen mode, [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/1419527-togglefullscreen?language=objc -func (w_ Window) ToggleFullScreen(sender objc.IObject) { - objc.Call[objc.Void](w_, objc.Sel("toggleFullScreen:"), sender) +// [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) } -// Converts a point from its pixel-aligned backing store coordinate system to the window’s coordinate system. [Full Topic] +// Returns the next event matching a given mask. [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) +// [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) return rv } -// Repositions the window’s window device in the window server’s screen list. [Full Topic] +// Updates the window. [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/1419577-update?language=objc +func (w_ Window) Update() { + objc.Call[objc.Void](w_, objc.Sel("update")) } -// 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] +// 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/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/1419464-resetcursorrects?language=objc +func (w_ Window) ResetCursorRects() { + objc.Call[objc.Void](w_, objc.Sel("resetCursorRects")) } -// Returns the window’s field editor, creating it if requested. [Full Topic] +// Adds a given window as a child window of the window. [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/1419152-addchildwindow?language=objc +func (w_ Window) AddChildWindowOrdered(childWin IWindow, place WindowOrderingMode) { + objc.Call[objc.Void](w_, objc.Sel("addChildWindow:ordered:"), objc.Ptr(childWin), place) } -// Removes the view controller at the specified index from the window’s array of title bar accessory view controllers. [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/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/1419529-invalidateshadow?language=objc +func (w_ Window) InvalidateShadow() { + objc.Call[objc.Void](w_, objc.Sel("invalidateShadow")) } -// Specifies whether the window calculates the thickness of a given border automatically. [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/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/1419096-displayifneeded?language=objc +func (w_ Window) DisplayIfNeeded() { + objc.Call[objc.Void](w_, objc.Sel("displayIfNeeded")) } // Selects the previous tab in the tab group in the leading direction. [Full Topic] @@ -913,70 +1033,91 @@ func (w_ Window) SelectPreviousTab(sender objc.IObject) objc.Object { return rv } -// Searches for a candidate next key view and, if it finds one, tries to make it the first responder. [Full Topic] +// Informs the window that it has become the key window. [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/1419338-becomekeywindow?language=objc +func (w_ Window) BecomeKeyWindow() { + objc.Call[objc.Void](w_, objc.Sel("becomeKeyWindow")) } -// 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] +// 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/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/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 } -// 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] +// Unregisters the window as a possible destination for dragging operations. [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) +// [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 number of the frontmost window that would be hit by a mouse-down at the specified screen location. [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/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/1419749-performminiaturize?language=objc +func (w_ Window) PerformMiniaturize(sender objc.IObject) { + objc.Call[objc.Void](w_, objc.Sel("performMiniaturize:"), sender) +} + +// 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/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 } -// Returns the number of the frontmost window that would be hit by a mouse-down at the specified screen location. [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/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/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:"), objc.Ptr(view)) +} + +// Specifies the thickness of a given border of the window. [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) } -// Sets the name AppKit uses to automatically save the window’s frame rectangle data in the defaults system. [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/1419509-setframeautosavename?language=objc -func (w_ Window) SetFrameAutosaveName(name WindowFrameAutosaveName) bool { - rv := objc.Call[bool](w_, objc.Sel("setFrameAutosaveName:"), name) +// [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 } -// Searches for a candidate previous key view and, if it finds one, tries to make it the first responder. [Full Topic] +// 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] // -// [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/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) } -// Forwards the message to the global application object. [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/1419376-postevent?language=objc -func (w_ Window) PostEventAtStart(event IEvent, flag bool) { - objc.Call[objc.Void](w_, objc.Sel("postEvent:atStart:"), objc.Ptr(event), flag) +// [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:"), objc.Ptr(sheetWindow), handler) } -// Shows or hides the tab overview. [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/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 +// [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:"), objc.Ptr(view)) } // 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] @@ -986,84 +1127,63 @@ func (w_ Window) OrderFront(sender objc.IObject) { objc.Call[objc.Void](w_, objc.Sel("orderFront:"), sender) } -// Resigns the window’s key window status. [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")) -} - -// Returns PDF data that draws the region of the window within a given rectangle. [Full Topic] +// Returns a Cocoa window created from a Carbon window. [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) +// [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 } -// 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/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] +// 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/2138278-canrepresentdisplaygamut?language=objc -func (w_ Window) CanRepresentDisplayGamut(displayGamut DisplayGamut) bool { - rv := objc.Call[bool](w_, objc.Sel("canRepresentDisplayGamut:"), displayGamut) +// [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:"), objc.Ptr(command)) 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")) -} - -// Enables snapshot restoration. [Full Topic] +// Starts a document-modal session and presents the specified critical sheet. [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/1419198-begincriticalsheet?language=objc +func (w_ Window) BeginCriticalSheetCompletionHandler(sheetWindow IWindow, handler func(returnCode ModalResponse)) { + objc.Call[objc.Void](w_, objc.Sel("beginCriticalSheet:completionHandler:"), objc.Ptr(sheetWindow), handler) } -// Disables snapshot restoration. [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/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/1419290-saveframeusingname?language=objc +func (w_ Window) SaveFrameUsingName(name WindowFrameAutosaveName) { + objc.Call[objc.Void](w_, objc.Sel("saveFrameUsingName:"), name) } -// Forwards the message to the global application object. [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/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, objc.Ptr(expiration), mode, deqFlag) +// [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 } -// De-minimizes the window. [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/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/1419469-endeditingfor?language=objc +func (w_ Window) EndEditingFor(object objc.IObject) { + objc.Call[objc.Void](w_, objc.Sel("endEditingFor:"), object) } -// Unregisters the window as a possible destination for dragging operations. [Full Topic] +// Forwards the message to the global application object. [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/1419376-postevent?language=objc +func (w_ Window) PostEventAtStart(event IEvent, flag bool) { + objc.Call[objc.Void](w_, objc.Sel("postEvent:atStart:"), objc.Ptr(event), flag) } -// Sets the window’s frame rectangle by reading the rectangle data stored under a given name from the defaults system. [Full Topic] +// Returns the window’s content rectangle with a given frame rectangle. [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) +// [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) return rv } @@ -1081,48 +1201,19 @@ func Window_RemoveFrameUsingName(name WindowFrameAutosaveName) { WindowClass.RemoveFrameUsingName(name) } -// 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:"), objc.Ptr(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 -} - -// Adds a given window as a child window of the window. [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:"), objc.Ptr(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] +// 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/1419603-convertrectfromscreen?language=objc -func (w_ Window) ConvertRectFromScreen(rect foundation.Rect) foundation.Rect { - rv := objc.Call[foundation.Rect](w_, objc.Sel("convertRectFromScreen:"), 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 } -// Sets the window’s visible state to the value you specify. [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/1449570-setisvisible?language=objc -func (w_ Window) SetIsVisible(flag bool) { - objc.Call[objc.Void](w_, objc.Sel("setIsVisible:"), flag) +// [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) } // Starts a window drag based on the specified mouse-down event. [Full Topic] @@ -1132,115 +1223,107 @@ func (w_ Window) PerformWindowDragWithEvent(event IEvent) { objc.Call[objc.Void](w_, objc.Sel("performWindowDragWithEvent:"), objc.Ptr(event)) } -// Returns the window button of a given window button kind in the window’s view hierarchy. [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/1419491-standardwindowbutton?language=objc -func (w_ Window) StandardWindowButton(b WindowButton) Button { - rv := objc.Call[Button](w_, objc.Sel("standardWindowButton:"), b) - 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) } -// 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] +// 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/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/1419276-enablekeyequivalentfordefaultbut?language=objc +func (w_ Window) EnableKeyEquivalentForDefaultButtonCell() { + objc.Call[objc.Void](w_, objc.Sel("enableKeyEquivalentForDefaultButtonCell")) } -// Merges all open windows into a single tabbed window. [Full Topic] +// Disables all cursor rectangle management within the 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 +// [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")) } -// Updates the window. [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/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/1419643-removetitlebaraccessoryviewcontr?language=objc +func (w_ Window) RemoveTitlebarAccessoryViewControllerAtIndex(index int) { + objc.Call[objc.Void](w_, objc.Sel("removeTitlebarAccessoryViewControllerAtIndex:"), index) } -// Converts a point from the screen coordinate system to the window’s coordinate system. [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/2967180-convertpointfromscreen?language=objc -func (w_ Window) ConvertPointFromScreen(point foundation.Point) foundation.Point { - rv := objc.Call[foundation.Point](w_, objc.Sel("convertPointFromScreen:"), point) +// [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 } -// 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/1419276-enablekeyequivalentfordefaultbut?language=objc -func (w_ Window) EnableKeyEquivalentForDefaultButtonCell() { - objc.Call[objc.Void](w_, objc.Sel("enableKeyEquivalentForDefaultButtonCell")) -} - -// Toggles the visibility of the window’s toolbar. [Full Topic] +// Returns the window’s field editor, creating it if requested. [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) +// [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 } -// Sets the window’s miniaturized state to the value you specify. [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/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/1419110-selectpreviouskeyview?language=objc +func (w_ Window) SelectPreviousKeyView(sender objc.IObject) { + objc.Call[objc.Void](w_, objc.Sel("selectPreviousKeyView:"), sender) } -// Returns a backing store pixel-aligned rectangle in window coordinates. [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/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/1419356-autorecalculatescontentborderthi?language=objc +func (w_ Window) AutorecalculatesContentBorderThicknessForEdge(edge foundation.RectEdge) bool { + rv := objc.Call[bool](w_, objc.Sel("autorecalculatesContentBorderThicknessForEdge:"), edge) return rv } -// Modifies and returns a frame rectangle so that its top edge lies on a specific screen. [Full Topic] +// Disables snapshot restoration. [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, objc.Ptr(screen)) - return rv +// [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")) } -// Updates the layout of views in the window based on the current views and constraints. [Full Topic] +// Adds the specified title bar accessory view controller to the window. [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")) +// [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:"), objc.Ptr(childViewController)) } -// Returns the minimum width a window’s frame rectangle must have for it to display a title, with a given window style. [Full Topic] +// 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/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 +// [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) } -// Returns the minimum width a window’s frame rectangle must have for it to display a title, with a given window style. [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/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/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 } -// Ends a document-modal session and dismisses the specified sheet. [Full Topic] +// 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/1419497-endsheet?language=objc -func (w_ Window) EndSheetReturnCode(sheetWindow IWindow, returnCode ModalResponse) { - objc.Call[objc.Void](w_, objc.Sel("endSheet:returnCode:"), objc.Ptr(sheetWindow), returnCode) +// [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 } -// Informs the window that it has become the main window. [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/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/1419767-print?language=objc +func (w_ Window) Print(sender objc.IObject) { + objc.Call[objc.Void](w_, objc.Sel("print:"), sender) } // Inserts the view controller into the window’s array of title bar accessory view controllers at the specified index. [Full Topic] @@ -1250,49 +1333,36 @@ func (w_ Window) InsertTitlebarAccessoryViewControllerAtIndex(childViewControlle objc.Call[objc.Void](w_, objc.Sel("insertTitlebarAccessoryViewController:atIndex:"), objc.Ptr(childViewController), index) } -// 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/1419450-performzoom?language=objc -func (w_ Window) PerformZoom(sender objc.IObject) { - objc.Call[objc.Void](w_, objc.Sel("performZoom:"), sender) -} - -// Positions the top-left corner of the window’s frame rectangle at a given point in screen coordinates. [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/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/1419228-sendevent?language=objc +func (w_ Window) SendEvent(event IEvent) { + objc.Call[objc.Void](w_, objc.Sel("sendEvent:"), objc.Ptr(event)) } -// Passes a display message down the window’s view hierarchy, thus redrawing all views that need displaying. [Full Topic] +// Attempts to make a given responder the first responder for the window. [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/1419366-makefirstresponder?language=objc +func (w_ Window) MakeFirstResponder(responder IResponder) bool { + rv := objc.Call[bool](w_, objc.Sel("makeFirstResponder:"), objc.Ptr(responder)) + return rv } -// Sets the window’s location to the center of the screen. [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/1419090-center?language=objc -func (w_ Window) Center() { - objc.Call[objc.Void](w_, objc.Sel("center")) +// [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) } -// A Boolean value indicating whether the window configuration is preserved between application launches. [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/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/1419220-workswhenmodal?language=objc +func (w_ Window) WorksWhenModal() bool { + rv := objc.Call[bool](w_, objc.Sel("worksWhenModal")) 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 @@ -1308,347 +1378,374 @@ func (w_ Window) SetMaxSize(value foundation.Size) { objc.Call[objc.Void](w_, objc.Sel("setMaxSize:"), value) } -// A Boolean value that indicates whether the window is removed from the screen when its application becomes inactive. [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/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/1419302-resizeflags?language=objc +func (w_ Window) ResizeFlags() EventModifierFlags { + rv := objc.Call[EventModifierFlags](w_, objc.Sel("resizeFlags")) 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 is a floating panel. [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/1449579-floatingpanel?language=objc +func (w_ Window) IsFloatingPanel() bool { + rv := objc.Call[bool](w_, objc.Sel("isFloatingPanel")) + return rv } -// A Boolean value that indicates whether the window is visible onscreen (even when it’s obscured by other windows). [Full Topic] +// The window’s window controller. [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/1419092-windowcontroller?language=objc +func (w_ Window) WindowController() WindowController { + rv := objc.Call[WindowController](w_, objc.Sel("windowController")) return rv } -// The parent window to which the window is attached as a child. [Full Topic] +// The window’s window controller. [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/1419092-windowcontroller?language=objc +func (w_ Window) SetWindowController(value IWindowController) { + objc.Call[objc.Void](w_, objc.Sel("setWindowController:"), objc.Ptr(value)) +} + +// 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 } -// The parent window to which the window is attached as a child. [Full Topic] +// The window’s content aspect ratio. [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:"), objc.Ptr(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 minimum size that is used to determine if a window can fit when it is in full screen in a tile. [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/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/1644535-windowtitlebarlayoutdirection?language=objc +func (w_ Window) WindowTitlebarLayoutDirection() UserInterfaceLayoutDirection { + rv := objc.Call[UserInterfaceLayoutDirection](w_, objc.Sel("windowTitlebarLayoutDirection")) 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] +// A Boolean value that indicates whether the window is opaque. [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/1419086-opaque?language=objc +func (w_ Window) IsOpaque() bool { + rv := objc.Call[bool](w_, objc.Sel("isOpaque")) + return rv } -// An array of the sheets currently attached to the window. [Full Topic] +// A Boolean value that indicates whether the window is opaque. [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")) - return rv +// [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) } -// A Boolean value that indicates whether the window is excluded from the application’s Windows menu. [Full Topic] +// A Boolean value indicating whether the window configuration is preserved between application launches. [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/1526255-restorable?language=objc +func (w_ Window) IsRestorable() bool { + rv := objc.Call[bool](w_, objc.Sel("isRestorable")) return rv } -// A Boolean value that indicates whether the window is excluded from the application’s Windows menu. [Full Topic] +// A Boolean value indicating whether the window configuration is preserved between application launches. [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/1526255-restorable?language=objc +func (w_ Window) SetRestorable(value bool) { + objc.Call[objc.Void](w_, objc.Sel("setRestorable:"), 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 can become the key 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/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] +// A Boolean value that indicates whether the window allows zooming. [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/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 is released when it receives the close message. [Full Topic] +// The window’s delegate. [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/1419060-delegate?language=objc +func (w_ Window) Delegate() WindowDelegateObject { + rv := objc.Call[WindowDelegateObject](w_, objc.Sel("delegate")) + return rv } -// A Boolean value that indicates the level of access other processes have to the window’s content. [Full Topic] +// The window’s delegate. [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")) - 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) } -// A Boolean value that indicates the level of access other processes have to the window’s content. [Full Topic] +// The window’s delegate. [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/1419060-delegate?language=objc +func (w_ Window) SetDelegateObject(valueObject objc.IObject) { + objc.Call[objc.Void](w_, objc.Sel("setDelegate:"), objc.Ptr(valueObject)) } -// A Boolean value that indicates whether the window has a shadow. [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/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/1449572-resizable?language=objc +func (w_ Window) IsResizable() bool { + rv := objc.Call[bool](w_, objc.Sel("isResizable")) return rv } -// A Boolean value that indicates whether the window has a shadow. [Full Topic] +// The custom miniaturized window image of the window. [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/1419185-miniwindowimage?language=objc +func (w_ Window) MiniwindowImage() Image { + rv := objc.Call[Image](w_, objc.Sel("miniwindowImage")) + return rv } -// Flags that describe the window’s current style, such as if it’s resizable or in full-screen mode. [Full Topic] +// The custom miniaturized window image of the window. [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/1419185-miniwindowimage?language=objc +func (w_ Window) SetMiniwindowImage(value IImage) { + objc.Call[objc.Void](w_, objc.Sel("setMiniwindowImage:"), objc.Ptr(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 } -// Flags that describe the window’s current style, such as if it’s resizable or in full-screen mode. [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/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/3622489-titlebarseparatorstyle?language=objc +func (w_ Window) SetTitlebarSeparatorStyle(value TitlebarSeparatorStyle) { + objc.Call[objc.Void](w_, objc.Sel("setTitlebarSeparatorStyle:"), value) } -// An object that represents information about a window when it displays as a tab. [Full Topic] +// The application’s Dock tile. [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 +} + +// 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/2870102-tab?language=objc -func (w_ Window) Tab() WindowTab { - rv := objc.Call[WindowTab](w_, objc.Sel("tab")) +// [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 zero-based position of the window, based on its order from front to back among all visible application windows. [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/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/1419695-parentwindow?language=objc +func (w_ Window) ParentWindow() Window { + rv := objc.Call[Window](w_, objc.Sel("parentWindow")) 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 parent window to which the window is attached as a child. [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/1419695-parentwindow?language=objc +func (w_ Window) SetParentWindow(value IWindow) { + objc.Call[objc.Void](w_, objc.Sel("setParentWindow:"), objc.Ptr(value)) } -// A Boolean value that indicates whether any of the window’s views need to be displayed. [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/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/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 any of the window’s views need to be displayed. [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/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/1419340-acceptsmousemovedevents?language=objc +func (w_ Window) SetAcceptsMouseMovedEvents(value bool) { + objc.Call[objc.Void](w_, objc.Sel("setAcceptsMouseMovedEvents:"), value) } -// The window level of the window. [Full Topic] +// A Boolean value that indicates if the window has a close box. [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/1449574-hasclosebox?language=objc +func (w_ Window) HasCloseBox() bool { + rv := objc.Call[bool](w_, objc.Sel("hasCloseBox")) return rv } -// The window level 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/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/1419280-mouselocationoutsideofeventstrea?language=objc +func (w_ Window) MouseLocationOutsideOfEventStream() foundation.Point { + rv := objc.Call[foundation.Point](w_, objc.Sel("mouseLocationOutsideOfEventStream")) + return rv } -// The window’s automatic animation behavior. [Full Topic] +// A Boolean value that indicates whether the window can minimize. [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/1449583-miniaturizable?language=objc +func (w_ Window) IsMiniaturizable() bool { + rv := objc.Call[bool](w_, objc.Sel("isMiniaturizable")) return rv } -// The window’s automatic animation behavior. [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/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/3608198-subtitle?language=objc +func (w_ Window) Subtitle() string { + rv := objc.Call[string](w_, objc.Sel("subtitle")) + return rv } -// The screen the window is on. [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/1419232-screen?language=objc -func (w_ Window) Screen() Screen { - rv := objc.Call[Screen](w_, objc.Sel("screen")) - return rv +// [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) } -// A Boolean value that indicates whether the window is a modal panel. [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/1449576-modalpanel?language=objc -func (w_ Window) IsModalPanel() bool { - rv := objc.Call[bool](w_, objc.Sel("isModalPanel")) +// [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 } -// 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 occlusion state 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")) +// [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 Boolean value that indicates whether the window is the key window for the application. [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/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/1419175-excludedfromwindowsmenu?language=objc +func (w_ Window) IsExcludedFromWindowsMenu() bool { + rv := objc.Call[bool](w_, objc.Sel("isExcludedFromWindowsMenu")) return rv } -// The window’s content view, the highest accessible view object in the window’s view hierarchy. [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/1419160-contentview?language=objc -func (w_ Window) ContentView() View { - rv := objc.Call[View](w_, objc.Sel("contentView")) - 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) } -// The window’s content view, the highest accessible view object in the window’s view hierarchy. [Full Topic] +// A value used by Auto Layout constraints to automatically bind to the value of [appkit/nswindow/contentlayoutrect]. [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:"), objc.Ptr(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 } -// 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")) +// [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 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) SetTitleVisibility(value WindowTitleVisibility) { - objc.Call[objc.Void](w_, objc.Sel("setTitleVisibility:"), value) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nswindow/1646657-allowsautomaticwindowtabbing?language=objc +func Window_AllowsAutomaticWindowTabbing() bool { + return WindowClass.AllowsAutomaticWindowTabbing() } -// 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 app can automatically organize windows into tabs. [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")) - return rv +// [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) } -// 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 app can automatically organize windows into tabs. [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/1646657-allowsautomaticwindowtabbing?language=objc +func Window_SetAllowsAutomaticWindowTabbing(value bool) { + WindowClass.SetAllowsAutomaticWindowTabbing(value) } -// The event currently being processed by the application. [Full Topic] +// An object that the window inherits its appearance from. [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/2998855-appearancesource?language=objc +func (w_ Window) AppearanceSource() objc.Object { + rv := objc.Call[objc.Object](w_, objc.Sel("appearanceSource")) return rv } -// The title displayed in the window’s minimized window. [Full Topic] +// An object that the window inherits its appearance from. [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")) - return rv +// [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:"), objc.Ptr(value)) } -// The title displayed in the window’s minimized window. [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/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/1419485-windowref?language=objc +func (w_ Window) WindowRef() unsafe.Pointer { + rv := objc.Call[unsafe.Pointer](w_, objc.Sel("windowRef")) + return rv } -// A Boolean value that indicates whether the window is the application’s main window. [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/1419130-mainwindow?language=objc -func (w_ Window) IsMainWindow() bool { - rv := objc.Call[bool](w_, objc.Sel("isMainWindow")) +// [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 } -// An array of the window’s attached child windows. [Full Topic] +// A group of windows that display together as a tab group. [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/2879189-tabgroup?language=objc +func (w_ Window) TabGroup() WindowTabGroup { + rv := objc.Call[WindowTabGroup](w_, objc.Sel("tabGroup")) return rv } -// The button cell that performs as if clicked when the window receives a Return (or Enter) key event. [Full Topic] +// The backing scale factor. [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/1419459-backingscalefactor?language=objc +func (w_ Window) BackingScaleFactor() float64 { + rv := objc.Call[float64](w_, objc.Sel("backingScaleFactor")) return rv } -// The button cell that performs as if clicked when the window receives a Return (or Enter) key event. [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/1419328-defaultbuttoncell?language=objc -func (w_ Window) SetDefaultButtonCell(value IButtonCell) { - objc.Call[objc.Void](w_, objc.Sel("setDefaultButtonCell:"), objc.Ptr(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 value that indicates the user’s preference for window tabbing. [Full Topic] @@ -1666,424 +1763,423 @@ func Window_UserTabbingPreference() WindowUserTabbingPreference { return WindowClass.UserTabbingPreference() } -// The window’s first responder. [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/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/1419160-contentview?language=objc +func (w_ Window) ContentView() View { + rv := objc.Call[View](w_, objc.Sel("contentView")) return rv } -// An array of windows that display as tabs. [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/1792044-tabbedwindows?language=objc -func (w_ Window) TabbedWindows() []Window { - rv := objc.Call[[]Window](w_, objc.Sel("tabbedWindows")) - 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:"), objc.Ptr(value)) } -// 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] +// 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/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/1419362-frameautosavename?language=objc +func (w_ Window) FrameAutosaveName() WindowFrameAutosaveName { + rv := objc.Call[WindowFrameAutosaveName](w_, objc.Sel("frameAutosaveName")) 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 title bar draws 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/1419167-titlebarappearstransparent?language=objc +func (w_ Window) TitlebarAppearsTransparent() bool { + rv := objc.Call[bool](w_, objc.Sel("titlebarAppearsTransparent")) + return rv } -// Returns the default depth limit for instances of NSWindow. [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/1419049-defaultdepthlimit?language=objc -func (wc _WindowClass) DefaultDepthLimit() WindowDepth { - rv := objc.Call[WindowDepth](wc, objc.Sel("defaultDepthLimit")) - return rv +// [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) } -// Returns the default depth limit for instances of NSWindow. [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/1419049-defaultdepthlimit?language=objc -func Window_DefaultDepthLimit() WindowDepth { - return WindowClass.DefaultDepthLimit() +// [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 content aspect ratio. [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/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/1419725-canhide?language=objc +func (w_ Window) CanHide() bool { + rv := objc.Call[bool](w_, objc.Sel("canHide")) return rv } -// The window’s content aspect ratio. [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/1419148-contentaspectratio?language=objc -func (w_ Window) SetContentAspectRatio(value foundation.Size) { - objc.Call[objc.Void](w_, objc.Sel("setContentAspectRatio:"), value) +// [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) } -// 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 value that indicates when a window displays tabs. [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/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 context should be updated when the screen profile changes or when the window moves to a different screen. [Full Topic] +// A value that indicates when a window displays tabs. [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/1644729-tabbingmode?language=objc +func (w_ Window) SetTabbingMode(value WindowTabbingMode) { + objc.Call[objc.Void](w_, objc.Sel("setTabbingMode:"), value) } -// The restoration class associated with the window. [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/1526241-restorationclass?language=objc -func (w_ Window) RestorationClass() objc.Class { - rv := objc.Call[objc.Class](w_, objc.Sel("restorationClass")) +// [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 } -// The restoration class associated with the window. [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/1526241-restorationclass?language=objc -func (w_ Window) SetRestorationClass(value objc.IClass) { - objc.Call[objc.Void](w_, objc.Sel("setRestorationClass:"), objc.Ptr(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) } -// A Boolean value that indicates whether the window accepts mouse-moved events. [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/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/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 accepts mouse-moved events. [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/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/1419777-hidesondeactivate?language=objc +func (w_ Window) SetHidesOnDeactivate(value bool) { + objc.Call[objc.Void](w_, objc.Sel("setHidesOnDeactivate:"), value) } -// A secondary line of text that appears in the title bar of the window. [Full Topic] +// The path to the file of the window’s represented file. [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")) +// [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 secondary line of text that appears in the title bar of the window. [Full Topic] +// The path to the file of the window’s represented file. [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/1419631-representedfilename?language=objc +func (w_ Window) SetRepresentedFilename(value string) { + objc.Call[objc.Void](w_, objc.Sel("setRepresentedFilename:"), value) } -// 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] +// An array of the sheets currently attached to the window. [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/1419765-sheets?language=objc +func (w_ Window) Sheets() []Window { + rv := objc.Call[[]Window](w_, objc.Sel("sheets")) return rv } -// A Boolean value that indicates whether the window is minimized. [Full Topic] +// A Boolean value that indicates whether the window’s cursor rectangles are enabled. [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")) +// [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 } -// The window’s alpha value. [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/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/1419179-canbecomevisiblewithoutlogin?language=objc +func (w_ Window) CanBecomeVisibleWithoutLogin() bool { + rv := objc.Call[bool](w_, objc.Sel("canBecomeVisibleWithoutLogin")) return rv } -// The window’s alpha value. [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/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/1419179-canbecomevisiblewithoutlogin?language=objc +func (w_ Window) SetCanBecomeVisibleWithoutLogin(value bool) { + objc.Call[objc.Void](w_, objc.Sel("setCanBecomeVisibleWithoutLogin:"), value) } -// The deepest screen the window is on (it may be split over several screens). [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/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/1419158-keyviewselectiondirection?language=objc +func (w_ Window) KeyViewSelectionDirection() SelectionDirection { + rv := objc.Call[SelectionDirection](w_, objc.Sel("keyViewSelectionDirection")) return rv } -// The area inside the window that is for non-obscured content, in window coordinates. [Full Topic] +// The window’s resizing increments. [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/1419390-resizeincrements?language=objc +func (w_ Window) ResizeIncrements() foundation.Size { + rv := objc.Call[foundation.Size](w_, objc.Sel("resizeIncrements")) return rv } -// A Boolean value that indicates if the window has a title bar. [Full Topic] +// The window’s resizing increments. [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")) - return rv +// [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) } -// A Boolean value that indicates whether the window can minimize. [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/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/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] +// A Boolean value that indicates whether the window is minimized. [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/1419699-miniaturized?language=objc +func (w_ Window) IsMiniaturized() bool { + rv := objc.Call[bool](w_, objc.Sel("isMiniaturized")) + return rv } -// The window’s backing store type. [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/1419599-backingtype?language=objc -func (w_ Window) BackingType() BackingStoreType { - rv := objc.Call[BackingStoreType](w_, objc.Sel("backingType")) +// [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 window’s backing store type. [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/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/1449577-orderedindex?language=objc +func (w_ Window) SetOrderedIndex(value int) { + objc.Call[objc.Void](w_, objc.Sel("setOrderedIndex:"), value) } -// The custom miniaturized window image of the window. [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/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/1419328-defaultbuttoncell?language=objc +func (w_ Window) DefaultButtonCell() ButtonCell { + rv := objc.Call[ButtonCell](w_, objc.Sel("defaultButtonCell")) return rv } -// The custom miniaturized window image of the window. [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/1419185-miniwindowimage?language=objc -func (w_ Window) SetMiniwindowImage(value IImage) { - objc.Call[objc.Void](w_, objc.Sel("setMiniwindowImage:"), objc.Ptr(value)) +// [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:"), objc.Ptr(value)) } -// The window’s toolbar. [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/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/1419162-canbecomemainwindow?language=objc +func (w_ Window) CanBecomeMainWindow() bool { + rv := objc.Call[bool](w_, objc.Sel("canBecomeMainWindow")) return rv } -// The window’s toolbar. [Full Topic] +// The window’s alpha value. [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:"), objc.Ptr(value)) +// [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 } -// The window’s color space. [Full Topic] +// The window’s alpha value. [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/1419186-alphavalue?language=objc +func (w_ Window) SetAlphaValue(value float64) { + objc.Call[objc.Void](w_, objc.Sel("setAlphaValue:"), value) +} + +// 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/1419078-stylemask?language=objc +func (w_ Window) StyleMask() WindowStyleMask { + rv := objc.Call[WindowStyleMask](w_, objc.Sel("styleMask")) return rv } -// The window’s color space. [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/1419569-colorspace?language=objc -func (w_ Window) SetColorSpace(value IColorSpace) { - objc.Call[objc.Void](w_, objc.Sel("setColorSpace:"), objc.Ptr(value)) +// [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) } -// The depth limit of the window. [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/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/1419479-initialfirstresponder?language=objc +func (w_ Window) InitialFirstResponder() View { + rv := objc.Call[View](w_, objc.Sel("initialFirstResponder")) return rv } -// The depth limit of the window. [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/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/1419479-initialfirstresponder?language=objc +func (w_ Window) SetInitialFirstResponder(value IView) { + objc.Call[objc.Void](w_, objc.Sel("setInitialFirstResponder:"), objc.Ptr(value)) } -// The window’s delegate. [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/1419060-delegate?language=objc -func (w_ Window) Delegate() WindowDelegateWrapper { - rv := objc.Call[WindowDelegateWrapper](w_, objc.Sel("delegate")) +// [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 delegate. [Full Topic] +// The window’s backing store type. [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/1419599-backingtype?language=objc +func (w_ Window) BackingType() BackingStoreType { + rv := objc.Call[BackingStoreType](w_, objc.Sel("backingType")) + return rv } -// The window’s delegate. [Full Topic] +// The window’s backing store type. [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:"), objc.Ptr(valueObject)) +// [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 flags field of the event record for the mouse-down event that initiated the resizing session. [Full Topic] +// The sheet attached to the window. [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/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 a floating panel. [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/1449579-floatingpanel?language=objc -func (w_ Window) IsFloatingPanel() bool { - rv := objc.Call[bool](w_, objc.Sel("isFloatingPanel")) +// [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 whether the window is being resized by the user. [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/1419378-inliveresize?language=objc -func (w_ Window) InLiveResize() bool { - rv := objc.Call[bool](w_, objc.Sel("inLiveResize")) - 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 color of the window’s background. [Full Topic] +// The window’s first responder. [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/1419440-firstresponder?language=objc +func (w_ Window) FirstResponder() Responder { + rv := objc.Call[Responder](w_, objc.Sel("firstResponder")) return rv } -// The color of the window’s background. [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/1419751-backgroundcolor?language=objc -func (w_ Window) SetBackgroundColor(value IColor) { - objc.Call[objc.Void](w_, objc.Sel("setBackgroundColor:"), objc.Ptr(value)) +// [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 Boolean value that indicates whether the title bar draws its background. [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/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/1419300-allowsconcurrentviewdrawing?language=objc +func (w_ Window) AllowsConcurrentViewDrawing() bool { + rv := objc.Call[bool](w_, objc.Sel("allowsConcurrentViewDrawing")) return rv } -// A Boolean value that indicates whether the title bar draws its background. [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/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/1419300-allowsconcurrentviewdrawing?language=objc +func (w_ Window) SetAllowsConcurrentViewDrawing(value bool) { + objc.Call[objc.Void](w_, objc.Sel("setAllowsConcurrentViewDrawing:"), value) } -// An array of title bar accessory view controllers that are currently added to the window. [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/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/1419378-inliveresize?language=objc +func (w_ Window) InLiveResize() bool { + rv := objc.Call[bool](w_, objc.Sel("inLiveResize")) return rv } -// 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/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] +// 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/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/1419154-contentmaxsize?language=objc +func (w_ Window) ContentMaxSize() foundation.Size { + rv := objc.Call[foundation.Size](w_, objc.Sel("contentMaxSize")) return rv } -// The window’s resizing increments. [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/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/1419154-contentmaxsize?language=objc +func (w_ Window) SetContentMaxSize(value foundation.Size) { + objc.Call[objc.Void](w_, objc.Sel("setContentMaxSize:"), value) } -// The Carbon window reference associated with the window, creating one if necessary. [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/1419485-windowref?language=objc -func (w_ Window) WindowRef() unsafe.Pointer { - rv := objc.Call[unsafe.Pointer](w_, objc.Sel("windowRef")) +// [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 window can hide when its application becomes hidden. [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/1419725-canhide?language=objc -func (w_ Window) CanHide() bool { - rv := objc.Call[bool](w_, objc.Sel("canHide")) - return rv +// [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) } -// A Boolean value that indicates whether the window can hide when its application becomes hidden. [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/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/1419398-zoomed?language=objc +func (w_ Window) IsZoomed() bool { + rv := objc.Call[bool](w_, objc.Sel("isZoomed")) + return rv } -// A Boolean value that indicates whether the window is opaque. [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/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/1419670-contentminsize?language=objc +func (w_ Window) ContentMinSize() foundation.Size { + rv := objc.Call[foundation.Size](w_, objc.Sel("contentMinSize")) return rv } -// A Boolean value that indicates whether the window is opaque. [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/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/1419670-contentminsize?language=objc +func (w_ Window) SetContentMinSize(value foundation.Size) { + objc.Call[objc.Void](w_, objc.Sel("setContentMinSize:"), value) } // The URL of the file the window represents. [Full Topic] @@ -2101,255 +2197,225 @@ func (w_ Window) SetRepresentedURL(value foundation.IURL) { objc.Call[objc.Void](w_, objc.Sel("setRepresentedURL:"), objc.Ptr(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")) - return rv -} - -// 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) SetInitialFirstResponder(value IView) { - objc.Call[objc.Void](w_, objc.Sel("setInitialFirstResponder:"), objc.Ptr(value)) -} - -// A Boolean value that indicates whether the window allows zooming. [Full Topic] +// A value that allows a group of related windows. [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/1644704-tabbingidentifier?language=objc +func (w_ Window) TabbingIdentifier() WindowTabbingIdentifier { + rv := objc.Call[WindowTabbingIdentifier](w_, objc.Sel("tabbingIdentifier")) return rv } -// The occlusion state 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/1419321-occlusionstate?language=objc -func (w_ Window) OcclusionState() WindowOcclusionState { - rv := objc.Call[WindowOcclusionState](w_, objc.Sel("occlusionState")) - return rv +// [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) } -// A Boolean value that indicates whether the window allows multithreaded view drawing. [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/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/2870102-tab?language=objc +func (w_ Window) Tab() WindowTab { + rv := objc.Call[WindowTab](w_, objc.Sel("tab")) return rv } -// A Boolean value that indicates whether the window allows multithreaded view drawing. [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) -} - -// A Boolean value that indicates whether the window can be displayed at the login window. [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/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/1419311-documentedited?language=objc +func (w_ Window) IsDocumentEdited() bool { + rv := objc.Call[bool](w_, objc.Sel("isDocumentEdited")) return rv } -// 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/1419179-canbecomevisiblewithoutlogin?language=objc -func (w_ Window) SetCanBecomeVisibleWithoutLogin(value bool) { - objc.Call[objc.Void](w_, objc.Sel("setCanBecomeVisibleWithoutLogin:"), value) -} - -// A Boolean value that indicates whether the window’s cursor rectangles are enabled. [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/1419668-arecursorrectsenabled?language=objc -func (w_ Window) AreCursorRectsEnabled() bool { - rv := objc.Call[bool](w_, objc.Sel("areCursorRectsEnabled")) - return rv +// [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 main content view controller for the window. [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/1419615-contentviewcontroller?language=objc -func (w_ Window) ContentViewController() ViewController { - rv := objc.Call[ViewController](w_, objc.Sel("contentViewController")) +// [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 main content view controller for the window. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nswindow/1419615-contentviewcontroller?language=objc -func (w_ Window) SetContentViewController(value IViewController) { - objc.Call[objc.Void](w_, objc.Sel("setContentViewController:"), objc.Ptr(value)) -} - -// A dictionary containing information about the window’s resolution, such as color, depth, and so on. [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/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/1419438-maxfullscreencontentsize?language=objc +func (w_ Window) MaxFullScreenContentSize() foundation.Size { + rv := objc.Call[foundation.Size](w_, objc.Sel("maxFullScreenContentSize")) return rv } -// The minimum size of the window’s content view in the window’s base coordinate system. [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/1419670-contentminsize?language=objc -func (w_ Window) ContentMinSize() foundation.Size { - rv := objc.Call[foundation.Size](w_, objc.Sel("contentMinSize")) - return rv +// [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) } -// The minimum size of the window’s content view in the window’s base coordinate system. [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/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/1419697-frame?language=objc +func (w_ Window) Frame() foundation.Rect { + rv := objc.Call[foundation.Rect](w_, objc.Sel("frame")) + return rv } -// The type of separator that the app displays between the title bar and content of a window. [Full Topic] +// The window number of the window’s window device. [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/1419068-windownumber?language=objc +func (w_ Window) WindowNumber() int { + rv := objc.Call[int](w_, objc.Sel("windowNumber")) return rv } -// The type of separator that the app displays between the title bar and content of a window. [Full Topic] +// The window to which the sheet is attached. [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) +// [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 } -// A Boolean value that indicates whether the window’s document has been edited. [Full Topic] +// The main content view controller for the window. [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/1419615-contentviewcontroller?language=objc +func (w_ Window) ContentViewController() ViewController { + rv := objc.Call[ViewController](w_, objc.Sel("contentViewController")) return rv } -// A Boolean value that indicates whether the window’s document has been edited. [Full Topic] +// The main content view controller for the window. [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) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nswindow/1419615-contentviewcontroller?language=objc +func (w_ Window) SetContentViewController(value IViewController) { + objc.Call[objc.Void](w_, objc.Sel("setContentViewController:"), objc.Ptr(value)) } -// A value that identifies the window’s behavior in window collections. [Full Topic] +// The screen the window is on. [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")) +// [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 value that identifies the window’s behavior in window collections. [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/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/1419735-keywindow?language=objc +func (w_ Window) IsKeyWindow() bool { + rv := objc.Call[bool](w_, objc.Sel("isKeyWindow")) + return rv } -// A value that allows a group of related windows. [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/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/1419627-minfullscreencontentsize?language=objc +func (w_ Window) MinFullScreenContentSize() foundation.Size { + rv := objc.Call[foundation.Size](w_, objc.Sel("minFullScreenContentSize")) return rv } -// A value that allows a group of related windows. [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/1644704-tabbingidentifier?language=objc -func (w_ Window) SetTabbingIdentifier(value WindowTabbingIdentifier) { - objc.Call[objc.Void](w_, objc.Sel("setTabbingIdentifier:"), 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) } -// The window’s window controller. [Full Topic] +// The window’s toolbar. [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/1419731-toolbar?language=objc +func (w_ Window) Toolbar() Toolbar { + rv := objc.Call[Toolbar](w_, objc.Sel("toolbar")) return rv } -// The window’s window controller. [Full Topic] +// The window’s toolbar. [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:"), objc.Ptr(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:"), objc.Ptr(value)) } -// A Boolean value that indicates whether the window prevents application termination when modal. [Full Topic] +// The depth limit of the window. [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/1419613-depthlimit?language=objc +func (w_ Window) DepthLimit() WindowDepth { + rv := objc.Call[WindowDepth](w_, objc.Sel("depthLimit")) return rv } -// A Boolean value that indicates whether the window prevents application termination when modal. [Full Topic] +// The depth limit of the window. [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/1419613-depthlimit?language=objc +func (w_ Window) SetDepthLimit(value WindowDepth) { + objc.Call[objc.Void](w_, objc.Sel("setDepthLimit:"), value) } -// The backing scale factor. [Full Topic] +// The window level of the window. [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/1419511-level?language=objc +func (w_ Window) Level() WindowLevel { + rv := objc.Call[WindowLevel](w_, objc.Sel("level")) return rv } -// A group of windows that display together as a tab group. [Full Topic] +// The window level of the window. [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")) - 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) } -// The direction the window’s title bar lays text out, either left to right or right to left. [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/1644535-windowtitlebarlayoutdirection?language=objc -func (w_ Window) WindowTitlebarLayoutDirection() UserInterfaceLayoutDirection { - rv := objc.Call[UserInterfaceLayoutDirection](w_, objc.Sel("windowTitlebarLayoutDirection")) +// [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 value that indicates when a window displays tabs. [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/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/1419404-title?language=objc +func (w_ Window) SetTitle(value string) { + objc.Call[objc.Void](w_, objc.Sel("setTitle:"), value) +} + +// The title displayed in the window’s minimized window. [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")) return rv } -// A value that indicates when a window displays tabs. [Full Topic] +// The title displayed in the window’s minimized window. [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/1419571-miniwindowtitle?language=objc +func (w_ Window) SetMiniwindowTitle(value string) { + objc.Call[objc.Void](w_, objc.Sel("setMiniwindowTitle:"), value) } -// The path to the file of the window’s represented file. [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/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/1419609-viewsneeddisplay?language=objc +func (w_ Window) ViewsNeedDisplay() bool { + rv := objc.Call[bool](w_, objc.Sel("viewsNeedDisplay")) return rv } -// The path to the file of the window’s represented file. [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/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/1419609-viewsneeddisplay?language=objc +func (w_ Window) SetViewsNeedDisplay(value bool) { + objc.Call[objc.Void](w_, objc.Sel("setViewsNeedDisplay:"), value) } // 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] @@ -2367,131 +2433,141 @@ func (w_ Window) SetAspectRatio(value foundation.Size) { objc.Call[objc.Void](w_, objc.Sel("setAspectRatio:"), value) } -// The window number of the window’s window device. [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/1419068-windownumber?language=objc -func (w_ Window) WindowNumber() int { - rv := objc.Call[int](w_, objc.Sel("windowNumber")) +// [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 window’s frame rectangle in screen coordinates, including the title bar. [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/1419697-frame?language=objc -func (w_ Window) Frame() foundation.Rect { - rv := objc.Call[foundation.Rect](w_, objc.Sel("frame")) - return rv +// [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 the window can become the application’s main window. [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/1419162-canbecomemainwindow?language=objc -func (w_ Window) CanBecomeMainWindow() bool { - rv := objc.Call[bool](w_, objc.Sel("canBecomeMainWindow")) +// [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 string that appears in the title bar of the window or the path to the represented file. [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/1419404-title?language=objc -func (w_ Window) Title() string { - rv := objc.Call[string](w_, objc.Sel("title")) - return rv +// [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 string that appears in the title bar of the window or the path to the represented file. [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/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/1419214-autorecalculateskeyviewloop?language=objc +func (w_ Window) AutorecalculatesKeyViewLoop() bool { + rv := objc.Call[bool](w_, objc.Sel("autorecalculatesKeyViewLoop")) + return rv } -// A Boolean value that indicates if the window has a close box. [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/1449574-hasclosebox?language=objc -func (w_ Window) HasCloseBox() bool { - rv := objc.Call[bool](w_, objc.Sel("hasCloseBox")) - return rv +// [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’s depth limit can change to match the depth of the screen it’s on. [Full Topic] +// Returns the default depth limit for instances of NSWindow. [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/1419049-defaultdepthlimit?language=objc +func (wc _WindowClass) DefaultDepthLimit() WindowDepth { + rv := objc.Call[WindowDepth](wc, objc.Sel("defaultDepthLimit")) return rv } -// A string representation of the window’s frame rectangle. [Full Topic] +// Returns the default depth limit for instances of NSWindow. [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")) - return rv +// [Full Topic]: https://developer.apple.com/documentation/appkit/nswindow/1419049-defaultdepthlimit?language=objc +func Window_DefaultDepthLimit() WindowDepth { + return WindowClass.DefaultDepthLimit() } -// A Boolean value that indicates if the user can resize 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/1449572-resizable?language=objc -func (w_ Window) IsResizable() bool { - rv := objc.Call[bool](w_, objc.Sel("isResizable")) +// [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 application’s Dock tile. [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/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/1419579-movable?language=objc +func (w_ Window) SetMovable(value bool) { + objc.Call[objc.Void](w_, objc.Sel("setMovable:"), value) } -// A Boolean value that indicates whether the window is on the currently active space. [Full Topic] +// The window’s content-view resizing increments. [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")) +// [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 automatically recalculates the key view loop when views are added. [Full Topic] +// The window’s content-view resizing increments. [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/1419649-contentresizeincrements?language=objc +func (w_ Window) SetContentResizeIncrements(value foundation.Size) { + objc.Call[objc.Void](w_, objc.Sel("setContentResizeIncrements:"), value) +} + +// The window’s color space. [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")) 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 color space. [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/1419569-colorspace?language=objc +func (w_ Window) SetColorSpace(value IColorSpace) { + objc.Call[objc.Void](w_, objc.Sel("setColorSpace:"), objc.Ptr(value)) } -// An object that the window inherits its appearance from. [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/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/1419430-displayswhenscreenprofilechanges?language=objc +func (w_ Window) DisplaysWhenScreenProfileChanges() bool { + rv := objc.Call[bool](w_, objc.Sel("displaysWhenScreenProfileChanges")) return rv } -// An object that the window inherits its appearance from. [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/2998855-appearancesource?language=objc -func (w_ Window) SetAppearanceSource(value objc.IObject) { - objc.Call[objc.Void](w_, objc.Sel("setAppearanceSource:"), objc.Ptr(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) } -// The sheet attached to 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/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/1419234-hasshadow?language=objc +func (w_ Window) HasShadow() bool { + rv := objc.Call[bool](w_, objc.Sel("hasShadow")) return rv } +// A Boolean value that indicates whether the window has a shadow. [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) +} + // A Boolean value that indicates whether the window is transparent to mouse events. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/appkit/nswindow/1419354-ignoresmouseevents?language=objc @@ -2507,169 +2583,170 @@ func (w_ Window) SetIgnoresMouseEvents(value bool) { objc.Call[objc.Void](w_, objc.Sel("setIgnoresMouseEvents:"), value) } -// A Boolean value that indicates whether the app can automatically organize windows into tabs. [Full Topic] +// An array of the window’s attached child windows. [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/1419236-childwindows?language=objc +func (w_ Window) ChildWindows() []Window { + rv := objc.Call[[]Window](w_, objc.Sel("childWindows")) return rv } -// A Boolean value that indicates whether the app can automatically organize windows into tabs. [Full Topic] +// A value that identifies the window’s behavior in window collections. [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/1419471-collectionbehavior?language=objc +func (w_ Window) CollectionBehavior() WindowCollectionBehavior { + rv := objc.Call[WindowCollectionBehavior](w_, objc.Sel("collectionBehavior")) + return rv } -// A Boolean value that indicates whether the app can automatically organize windows into tabs. [Full Topic] +// A value that identifies the window’s behavior in window collections. [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/1419471-collectionbehavior?language=objc +func (w_ Window) SetCollectionBehavior(value WindowCollectionBehavior) { + objc.Call[objc.Void](w_, objc.Sel("setCollectionBehavior:"), 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 Window_SetAllowsAutomaticWindowTabbing(value bool) { - WindowClass.SetAllowsAutomaticWindowTabbing(value) +// [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 value used by Auto Layout constraints to automatically bind to the value of contentLayoutRect. [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/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/1419635-titlevisibility?language=objc +func (w_ Window) SetTitleVisibility(value WindowTitleVisibility) { + objc.Call[objc.Void](w_, objc.Sel("setTitleVisibility:"), value) } -// The direction the window is currently using to change the key view. [Full Topic] +// The event currently being processed by the application. [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/1419298-currentevent?language=objc +func (w_ Window) CurrentEvent() Event { + rv := objc.Call[Event](w_, objc.Sel("currentEvent")) return rv } -// A Boolean value that indicates whether the window is movable by clicking and dragging anywhere in 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/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/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 window is movable by clicking and dragging anywhere in 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/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/1419588-preservescontentduringliveresize?language=objc +func (w_ Window) SetPreservesContentDuringLiveResize(value bool) { + objc.Call[objc.Void](w_, objc.Sel("setPreservesContentDuringLiveResize:"), value) } -// A Boolean value that indicates whether the window can be dragged by clicking in its title bar or background. [Full Topic] +// An array of windows that display as tabs. [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/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 window can be dragged by clicking in its title bar or background. [Full Topic] +// The restoration class associated with the window. [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/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 in a zoomed state. [Full Topic] +// The restoration class associated with the window. [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/1526241-restorationclass?language=objc +func (w_ Window) SetRestorationClass(value objc.IClass) { + objc.Call[objc.Void](w_, objc.Sel("setRestorationClass:"), objc.Ptr(value)) } -// The maximum size of the window’s content view in the window’s base coordinate system. [Full Topic] +// The color of the window’s background. [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/1419751-backgroundcolor?language=objc +func (w_ Window) BackgroundColor() Color { + rv := objc.Call[Color](w_, objc.Sel("backgroundColor")) return rv } -// The maximum size of the window’s content view in the window’s base coordinate system. [Full Topic] +// The color of the window’s background. [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/1419751-backgroundcolor?language=objc +func (w_ Window) SetBackgroundColor(value IColor) { + objc.Call[objc.Void](w_, objc.Sel("setBackgroundColor:"), objc.Ptr(value)) } -// A Boolean value that indicates whether the window can become the key window. [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/1419543-canbecomekeywindow?language=objc -func (w_ Window) CanBecomeKeyWindow() bool { - rv := objc.Call[bool](w_, objc.Sel("canBecomeKeyWindow")) +// [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 content-view resizing increments. [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/1419649-contentresizeincrements?language=objc -func (w_ Window) ContentResizeIncrements() foundation.Size { - rv := objc.Call[foundation.Size](w_, objc.Sel("contentResizeIncrements")) - return rv +// [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 content-view resizing increments. [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/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/1449576-modalpanel?language=objc +func (w_ Window) IsModalPanel() bool { + rv := objc.Call[bool](w_, objc.Sel("isModalPanel")) + return rv } -// The name used to automatically save the window’s frame rectangle data in the defaults system. [Full Topic] +// A string representation of the window’s frame rectangle. [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/1419515-stringwithsavedframe?language=objc +func (w_ Window) StringWithSavedFrame() WindowPersistableFrameDescriptor { + rv := objc.Call[WindowPersistableFrameDescriptor](w_, objc.Sel("stringWithSavedFrame")) 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] +// The window’s automatic animation behavior. [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/1419763-animationbehavior?language=objc +func (w_ Window) AnimationBehavior() WindowAnimationBehavior { + rv := objc.Call[WindowAnimationBehavior](w_, objc.Sel("animationBehavior")) 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] +// The window’s automatic animation behavior. [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/1419763-animationbehavior?language=objc +func (w_ Window) SetAnimationBehavior(value WindowAnimationBehavior) { + objc.Call[objc.Void](w_, objc.Sel("setAnimationBehavior:"), value) } -// A Boolean value that indicates whether the window can display tooltips even when the application is in the background. [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/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/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 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 } -// The window to which the sheet is attached. [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/1419052-sheetparent?language=objc -func (w_ Window) SheetParent() Window { - rv := objc.Call[Window](w_, objc.Sel("sheetParent")) - 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) } diff --git a/macos/appkit/window_controller.gen.go b/macos/appkit/window_controller.gen.go index 39fae492..1c35d4d7 100644 --- a/macos/appkit/window_controller.gen.go +++ b/macos/appkit/window_controller.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package appkit @@ -20,30 +20,30 @@ type IWindowController interface { IResponder SetDocumentEdited(dirtyFlag bool) WindowDidLoad() - ShowWindow(sender objc.IObject) objc.Object - DismissController(sender objc.IObject) objc.Object - Close() - WindowTitleForDocumentDisplayName(displayName string) string SynchronizeWindowTitleWithDocumentName() + Close() + DismissController(sender objc.IObject) objc.Object LoadWindow() + ShowWindow(sender objc.IObject) objc.Object + WindowTitleForDocumentDisplayName(displayName string) string 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) - Window() Window - SetWindow(value IWindow) - WindowNibPath() string + Owner() objc.Object } // A controller that manages a window, usually a window stored in a nib file. [Full Topic] @@ -59,6 +59,34 @@ 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:"), objc.Ptr(window)) return rv @@ -87,29 +115,11 @@ 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 } -func WindowController_Alloc() WindowController { - return WindowControllerClass.Alloc() -} - func (wc _WindowControllerClass) New() WindowController { rv := objc.Call[WindowController](wc, objc.Sel("new")) rv.Autorelease() @@ -139,12 +149,18 @@ func (w_ WindowController) WindowDidLoad() { objc.Call[objc.Void](w_, objc.Sel("windowDidLoad")) } -// Displays the window associated with the receiver. [Full Topic] +// 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/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/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] +// +// [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")) } // Dismisses the window controller. [Full Topic] @@ -155,11 +171,19 @@ func (w_ WindowController) DismissController(sender objc.IObject) objc.Object { return rv } -// Closes the window if it was loaded. [Full Topic] +// Loads the receiver’s window from the nib file. [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/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] +// +// [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 } // Returns the window title to be used for a given document display name. [Full Topic] @@ -170,20 +194,6 @@ 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 @@ -191,44 +201,53 @@ func (w_ WindowController) WindowWillLoad() { objc.Call[objc.Void](w_, objc.Sel("windowWillLoad")) } -// The name under which the frame rectangle of the window owned by the receiver is stored in the defaults database. [Full Topic] +// 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/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/1524719-windownibpath?language=objc +func (w_ WindowController) WindowNibPath() string { + rv := objc.Call[string](w_, objc.Sel("windowNibPath")) return rv } -// The name under which the frame rectangle of the window owned by the receiver is stored in the defaults database. [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/1528616-windowframeautosavename?language=objc -func (w_ WindowController) SetWindowFrameAutosaveName(value WindowFrameAutosaveName) { - objc.Call[objc.Void](w_, objc.Sel("setWindowFrameAutosaveName:"), 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 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] +// 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/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/1527496-windowloaded?language=objc +func (w_ WindowController) IsWindowLoaded() bool { + rv := objc.Call[bool](w_, objc.Sel("isWindowLoaded")) + return rv } -// The owner of the nib file containing the window managed 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/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/1532552-contentviewcontroller?language=objc +func (w_ WindowController) ContentViewController() ViewController { + rv := objc.Call[ViewController](w_, objc.Sel("contentViewController")) 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:"), objc.Ptr(value)) +} + // The document associated with the window controller. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/appkit/nswindowcontroller/1534220-document?language=objc @@ -244,45 +263,51 @@ func (w_ WindowController) SetDocument(value objc.IObject) { objc.Call[objc.Void](w_, objc.Sel("setDocument:"), value) } -// The view controller for the window’s content view. [Full Topic] +// The window owned 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/1535593-window?language=objc +func (w_ WindowController) Window() Window { + rv := objc.Call[Window](w_, objc.Sel("window")) return rv } -// The view controller for the window’s content view. [Full Topic] +// The window owned by the receiver. [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:"), objc.Ptr(value)) +// [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:"), objc.Ptr(value)) } -// A Boolean value that indicates whether the nib file containing the receiver’s window has been loaded. [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/1527496-windowloaded?language=objc -func (w_ WindowController) IsWindowLoaded() bool { - rv := objc.Call[bool](w_, objc.Sel("isWindowLoaded")) +// [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 storyboard file from which the window controller was loaded. [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/1527268-storyboard?language=objc -func (w_ WindowController) Storyboard() Storyboard { - rv := objc.Call[Storyboard](w_, objc.Sel("storyboard")) - 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 name of the nib file that stores the window associated with the receiver. [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/1527084-windownibname?language=objc -func (w_ WindowController) WindowNibName() NibName { - rv := objc.Call[NibName](w_, objc.Sel("windowNibName")) +// [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 receiver necessarily closes the associated document when the window it manages is closed. [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) +} + // A Boolean value that indicates whether the window will cascade in relation to other document windows when it is displayed. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/appkit/nswindowcontroller/1528177-shouldcascadewindows?language=objc @@ -298,25 +323,10 @@ func (w_ WindowController) SetShouldCascadeWindows(value bool) { objc.Call[objc.Void](w_, objc.Sel("setShouldCascadeWindows:"), value) } -// The window owned by the receiver. [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")) - 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:"), objc.Ptr(value)) -} - -// The full path of the nib file that stores the window associated with the receiver. [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/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/1532707-owner?language=objc +func (w_ WindowController) Owner() objc.Object { + rv := objc.Call[objc.Object](w_, objc.Sel("owner")) return rv } diff --git a/macos/appkit/window_delegate.gen.go b/macos/appkit/window_delegate.gen.go index 53abf663..619c5846 100644 --- a/macos/appkit/window_delegate.gen.go +++ b/macos/appkit/window_delegate.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package appkit @@ -12,156 +12,156 @@ import ( // [Full Topic]: https://developer.apple.com/documentation/appkit/nswindowdelegate?language=objc type PWindowDelegate interface { // optional - WindowDidFailToExitFullScreen(window Window) - HasWindowDidFailToExitFullScreen() bool + WindowWillUseFullScreenContentSize(window Window, proposedSize foundation.Size) foundation.Size + HasWindowWillUseFullScreenContentSize() bool // optional - WindowShouldZoomToFrame(window Window, newFrame foundation.Rect) bool - HasWindowShouldZoomToFrame() bool + WindowDidMove(notification foundation.Notification) + HasWindowDidMove() bool // optional - WindowDidEndSheet(notification foundation.Notification) - HasWindowDidEndSheet() bool + WindowDidDeminiaturize(notification foundation.Notification) + HasWindowDidDeminiaturize() bool // optional - WindowDidResize(notification foundation.Notification) - HasWindowDidResize() bool + WindowDidChangeScreenProfile(notification foundation.Notification) + HasWindowDidChangeScreenProfile() bool // optional - WindowWillEnterFullScreen(notification foundation.Notification) - HasWindowWillEnterFullScreen() bool + CustomWindowsToEnterFullScreenForWindowOnScreen(window Window, screen Screen) []Window + HasCustomWindowsToEnterFullScreenForWindowOnScreen() bool // optional - WindowWillMove(notification foundation.Notification) - HasWindowWillMove() bool + WindowDidChangeScreen(notification foundation.Notification) + HasWindowDidChangeScreen() bool // optional - WindowWillStartLiveResize(notification foundation.Notification) - HasWindowWillStartLiveResize() bool + WindowWillUseFullScreenPresentationOptions(window Window, proposedOptions ApplicationPresentationOptions) ApplicationPresentationOptions + HasWindowWillUseFullScreenPresentationOptions() bool // optional - WindowDidFailToEnterFullScreen(window Window) - HasWindowDidFailToEnterFullScreen() bool + WindowWillBeginSheet(notification foundation.Notification) + HasWindowWillBeginSheet() bool // optional - WindowWillResizeToSize(sender Window, frameSize foundation.Size) foundation.Size - HasWindowWillResizeToSize() bool + WindowWillReturnFieldEditorToObject(sender Window, client objc.Object) objc.Object + HasWindowWillReturnFieldEditorToObject() bool // optional - WindowDidChangeOcclusionState(notification foundation.Notification) - HasWindowDidChangeOcclusionState() bool + WindowShouldClose(sender Window) bool + HasWindowShouldClose() bool // optional - WindowDidChangeScreenProfile(notification foundation.Notification) - HasWindowDidChangeScreenProfile() bool + WindowDidResignKey(notification foundation.Notification) + HasWindowDidResignKey() bool // optional - WindowWillReturnUndoManager(window Window) foundation.IUndoManager - HasWindowWillReturnUndoManager() bool + WindowDidEndSheet(notification foundation.Notification) + HasWindowDidEndSheet() bool // optional - WindowWillBeginSheet(notification foundation.Notification) - HasWindowWillBeginSheet() bool + WindowDidBecomeKey(notification foundation.Notification) + HasWindowDidBecomeKey() bool // optional - WindowDidResignKey(notification foundation.Notification) - HasWindowDidResignKey() bool + WindowWillResizeToSize(sender Window, frameSize foundation.Size) foundation.Size + HasWindowWillResizeToSize() bool // optional - WindowShouldClose(sender Window) bool - HasWindowShouldClose() bool + WindowWillMiniaturize(notification foundation.Notification) + HasWindowWillMiniaturize() bool // optional - WindowDidExitVersionBrowser(notification foundation.Notification) - HasWindowDidExitVersionBrowser() bool + WindowWillEncodeRestorableState(window Window, state foundation.Coder) + HasWindowWillEncodeRestorableState() bool // optional - WindowDidBecomeKey(notification foundation.Notification) - HasWindowDidBecomeKey() bool + WindowWillExitVersionBrowser(notification foundation.Notification) + HasWindowWillExitVersionBrowser() bool // optional - WindowDidResignMain(notification foundation.Notification) - HasWindowDidResignMain() bool + WindowDidEnterFullScreen(notification foundation.Notification) + HasWindowDidEnterFullScreen() bool // optional - WindowDidExitFullScreen(notification foundation.Notification) - HasWindowDidExitFullScreen() bool + WindowDidResize(notification foundation.Notification) + HasWindowDidResize() bool // optional - WindowDidBecomeMain(notification foundation.Notification) - HasWindowDidBecomeMain() bool + WindowWillMove(notification foundation.Notification) + HasWindowWillMove() bool // optional - WindowDidMiniaturize(notification foundation.Notification) - HasWindowDidMiniaturize() bool + WindowStartCustomAnimationToExitFullScreenWithDuration(window Window, duration foundation.TimeInterval) + HasWindowStartCustomAnimationToExitFullScreenWithDuration() bool // optional - WindowDidExpose(notification foundation.Notification) - HasWindowDidExpose() bool + WindowWillExitFullScreen(notification foundation.Notification) + HasWindowWillExitFullScreen() bool // optional - WindowWillMiniaturize(notification foundation.Notification) - HasWindowWillMiniaturize() bool + WindowShouldPopUpDocumentPathMenu(window Window, menu Menu) bool + HasWindowShouldPopUpDocumentPathMenu() bool // optional - WindowDidChangeBackingProperties(notification foundation.Notification) - HasWindowDidChangeBackingProperties() bool + WindowDidMiniaturize(notification foundation.Notification) + HasWindowDidMiniaturize() bool // optional - WindowWillClose(notification foundation.Notification) - HasWindowWillClose() bool + WindowWillReturnUndoManager(window Window) foundation.UndoManager + HasWindowWillReturnUndoManager() bool // optional - CustomWindowsToEnterFullScreenForWindow(window Window) []IWindow - HasCustomWindowsToEnterFullScreenForWindow() bool + WindowWillResizeForVersionBrowserWithMaxPreferredSizeMaxAllowedSize(window Window, maxPreferredFrameSize foundation.Size, maxAllowedFrameSize foundation.Size) foundation.Size + HasWindowWillResizeForVersionBrowserWithMaxPreferredSizeMaxAllowedSize() bool // optional - WindowWillEnterVersionBrowser(notification foundation.Notification) - HasWindowWillEnterVersionBrowser() bool + WindowWillEnterFullScreen(notification foundation.Notification) + HasWindowWillEnterFullScreen() bool // optional - WindowDidEndLiveResize(notification foundation.Notification) - HasWindowDidEndLiveResize() bool + WindowDidFailToEnterFullScreen(window Window) + HasWindowDidFailToEnterFullScreen() bool // optional - WindowDidUpdate(notification foundation.Notification) - HasWindowDidUpdate() bool + WindowDidExpose(notification foundation.Notification) + HasWindowDidExpose() bool // optional - WindowWillExitVersionBrowser(notification foundation.Notification) - HasWindowWillExitVersionBrowser() bool + WindowDidEndLiveResize(notification foundation.Notification) + HasWindowDidEndLiveResize() bool // optional - WindowWillReturnFieldEditorToObject(sender Window, client objc.Object) objc.IObject - HasWindowWillReturnFieldEditorToObject() bool + WindowShouldZoomToFrame(window Window, newFrame foundation.Rect) bool + HasWindowShouldZoomToFrame() bool // optional - WindowDidDeminiaturize(notification foundation.Notification) - HasWindowDidDeminiaturize() bool + WindowDidBecomeMain(notification foundation.Notification) + HasWindowDidBecomeMain() bool // optional - CustomWindowsToExitFullScreenForWindow(window Window) []IWindow - HasCustomWindowsToExitFullScreenForWindow() bool + WindowStartCustomAnimationToEnterFullScreenOnScreenWithDuration(window Window, screen Screen, duration foundation.TimeInterval) + HasWindowStartCustomAnimationToEnterFullScreenOnScreenWithDuration() bool // optional - WindowDidDecodeRestorableState(window Window, state foundation.Coder) - HasWindowDidDecodeRestorableState() bool + WindowShouldDragDocumentWithEventFromWithPasteboard(window Window, event Event, dragImageLocation foundation.Point, pasteboard Pasteboard) bool + HasWindowShouldDragDocumentWithEventFromWithPasteboard() bool // optional - WindowDidMove(notification foundation.Notification) - HasWindowDidMove() bool + WindowDidDecodeRestorableState(window Window, state foundation.Coder) + HasWindowDidDecodeRestorableState() bool // optional - WindowDidChangeScreen(notification foundation.Notification) - HasWindowDidChangeScreen() bool + WindowWillPositionSheetUsingRect(window Window, sheet Window, rect foundation.Rect) foundation.Rect + HasWindowWillPositionSheetUsingRect() bool // optional - WindowDidEnterFullScreen(notification foundation.Notification) - HasWindowDidEnterFullScreen() bool + WindowDidChangeBackingProperties(notification foundation.Notification) + HasWindowDidChangeBackingProperties() bool // optional - WindowWillExitFullScreen(notification foundation.Notification) - HasWindowWillExitFullScreen() bool + CustomWindowsToEnterFullScreenForWindow(window Window) []Window + HasCustomWindowsToEnterFullScreenForWindow() bool // optional WindowWillUseStandardFrameDefaultFrame(window Window, newFrame foundation.Rect) foundation.Rect @@ -170,374 +170,633 @@ type PWindowDelegate interface { // optional WindowDidEnterVersionBrowser(notification foundation.Notification) HasWindowDidEnterVersionBrowser() bool + + // optional + WindowStartCustomAnimationToEnterFullScreenWithDuration(window Window, duration foundation.TimeInterval) + HasWindowStartCustomAnimationToEnterFullScreenWithDuration() bool + + // optional + WindowDidResignMain(notification foundation.Notification) + HasWindowDidResignMain() bool + + // optional + WindowDidExitVersionBrowser(notification foundation.Notification) + HasWindowDidExitVersionBrowser() bool + + // optional + WindowWillClose(notification foundation.Notification) + HasWindowWillClose() bool + + // optional + CustomWindowsToExitFullScreenForWindow(window Window) []Window + HasCustomWindowsToExitFullScreenForWindow() bool + + // optional + WindowDidUpdate(notification foundation.Notification) + HasWindowDidUpdate() bool + + // optional + WindowWillStartLiveResize(notification foundation.Notification) + HasWindowWillStartLiveResize() bool + + // optional + WindowDidChangeOcclusionState(notification foundation.Notification) + HasWindowDidChangeOcclusionState() bool + + // optional + WindowDidFailToExitFullScreen(window Window) + HasWindowDidFailToExitFullScreen() bool + + // optional + WindowDidExitFullScreen(notification foundation.Notification) + HasWindowDidExitFullScreen() bool + + // optional + WindowWillEnterVersionBrowser(notification foundation.Notification) + HasWindowWillEnterVersionBrowser() bool } // A delegate implementation builder for the [PWindowDelegate] protocol. type WindowDelegate struct { - _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.IUndoManager - _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) []IWindow - _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.IObject - _WindowDidDeminiaturize func(notification foundation.Notification) - _CustomWindowsToExitFullScreenForWindow func(window Window) []IWindow - _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) + _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) } - -func (di *WindowDelegate) HasWindowDidFailToExitFullScreen() bool { - return di._WindowDidFailToExitFullScreen != nil +func (di *WindowDelegate) HasWindowDidMove() bool { + return di._WindowDidMove != nil } -// Called if the window failed to exit full-screen mode. [Full Topic] +// Tells the delegate that the window has moved. [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/1419674-windowdidmove?language=objc +func (di *WindowDelegate) SetWindowDidMove(f func(notification foundation.Notification)) { + di._WindowDidMove = f } -// Called if the window failed to exit full-screen mode. [Full Topic] +// Tells the delegate that the window has moved. [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/1419674-windowdidmove?language=objc +func (di *WindowDelegate) WindowDidMove(notification foundation.Notification) { + di._WindowDidMove(notification) } -func (di *WindowDelegate) HasWindowShouldZoomToFrame() bool { - return di._WindowShouldZoomToFrame != nil +func (di *WindowDelegate) HasWindowDidDeminiaturize() bool { + return di._WindowDidDeminiaturize != nil } -// Asks the delegate whether the specified window should zoom to the specified frame. [Full Topic] +// Tells the delegate that the window has been deminimized. [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 +// [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 } -// Asks the delegate whether the specified window should zoom to the specified frame. [Full Topic] +// Tells the delegate that the window has been deminimized. [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) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nswindowdelegate/1419296-windowdiddeminiaturize?language=objc +func (di *WindowDelegate) WindowDidDeminiaturize(notification foundation.Notification) { + di._WindowDidDeminiaturize(notification) } -func (di *WindowDelegate) HasWindowDidEndSheet() bool { - return di._WindowDidEndSheet != nil +func (di *WindowDelegate) HasWindowDidChangeScreenProfile() bool { + return di._WindowDidChangeScreenProfile != nil } -// Tells the delegate that the window has closed a sheet. [Full Topic] +// Tells the delegate that the window has changed screen display profiles. [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/1419581-windowdidchangescreenprofile?language=objc +func (di *WindowDelegate) SetWindowDidChangeScreenProfile(f func(notification foundation.Notification)) { + di._WindowDidChangeScreenProfile = f } -// Tells the delegate that the window has closed a sheet. [Full Topic] +// Tells the delegate that the window has changed screen display profiles. [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/1419581-windowdidchangescreenprofile?language=objc +func (di *WindowDelegate) WindowDidChangeScreenProfile(notification foundation.Notification) { + di._WindowDidChangeScreenProfile(notification) } -func (di *WindowDelegate) HasWindowDidResize() bool { - return di._WindowDidResize != nil +func (di *WindowDelegate) HasCustomWindowsToEnterFullScreenForWindowOnScreen() bool { + return di._CustomWindowsToEnterFullScreenForWindowOnScreen != nil } -// Tells the delegate that the window has been resized. [Full Topic] +// Called when the window is about to enter full-screen mode. [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 +// [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 } -// Tells the delegate that the window has been resized. [Full Topic] +// Called when the window is about to enter full-screen mode. [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) +// [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) } -func (di *WindowDelegate) HasWindowWillEnterFullScreen() bool { - return di._WindowWillEnterFullScreen != nil +func (di *WindowDelegate) HasWindowDidChangeScreen() bool { + return di._WindowDidChangeScreen != nil } -// The window is about to enter 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/1419563-windowwillenterfullscreen?language=objc -func (di *WindowDelegate) SetWindowWillEnterFullScreen(f func(notification foundation.Notification)) { - di._WindowWillEnterFullScreen = f +// [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 } -// The window is about to enter 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/1419563-windowwillenterfullscreen?language=objc -func (di *WindowDelegate) WindowWillEnterFullScreen(notification foundation.Notification) { - di._WindowWillEnterFullScreen(notification) +// [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) HasWindowWillMove() bool { - return di._WindowWillMove != nil +func (di *WindowDelegate) HasWindowWillUseFullScreenPresentationOptions() bool { + return di._WindowWillUseFullScreenPresentationOptions != nil } -// Tells the delegate that the window is about to move. [Full Topic] +// Returns the presentation options the window uses when transitioning to full-screen mode. [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 +// [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 } -// Tells the delegate that the window is about to move. [Full Topic] +// Returns the presentation options the window uses when transitioning to full-screen mode. [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) +// [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) HasWindowWillStartLiveResize() bool { - return di._WindowWillStartLiveResize != nil +func (di *WindowDelegate) HasWindowWillBeginSheet() bool { + return di._WindowWillBeginSheet != nil } -// Tells the delegate that the window is about to be live resized. [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/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/1419408-windowwillbeginsheet?language=objc +func (di *WindowDelegate) SetWindowWillBeginSheet(f func(notification foundation.Notification)) { + di._WindowWillBeginSheet = f } -// Tells the delegate that the window is about to be live resized. [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/1419555-windowwillstartliveresize?language=objc -func (di *WindowDelegate) WindowWillStartLiveResize(notification foundation.Notification) { - di._WindowWillStartLiveResize(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) HasWindowDidFailToEnterFullScreen() bool { - return di._WindowDidFailToEnterFullScreen != nil +func (di *WindowDelegate) HasWindowWillReturnFieldEditorToObject() bool { + return di._WindowWillReturnFieldEditorToObject != nil } -// Called if the window failed to enter 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/1419591-windowdidfailtoenterfullscreen?language=objc -func (di *WindowDelegate) SetWindowDidFailToEnterFullScreen(f func(window Window)) { - di._WindowDidFailToEnterFullScreen = 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 } -// Called if the window failed to enter 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/1419591-windowdidfailtoenterfullscreen?language=objc -func (di *WindowDelegate) WindowDidFailToEnterFullScreen(window Window) { - di._WindowDidFailToEnterFullScreen(window) +// [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] +// +// [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) HasWindowDidResignKey() bool { + return di._WindowDidResignKey != nil +} + +// Tells the delegate that the window has resigned key window status. [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 +} + +// Tells the delegate that the window has resigned key window status. [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) +} +func (di *WindowDelegate) HasWindowDidEndSheet() bool { + return di._WindowDidEndSheet != nil +} + +// Tells the delegate that the window has closed a sheet. [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 +} + +// Tells the delegate that the window has closed a sheet. [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) +} +func (di *WindowDelegate) HasWindowDidBecomeKey() bool { + return di._WindowDidBecomeKey != nil +} + +// Tells the delegate that the window has become the key window. [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 +} + +// Tells the delegate that the window has become the key window. [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) } 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 setFrame:display:). [Full Topic] +// 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] // // [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 setFrame:display:). [Full Topic] +// 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] // // [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) HasWindowDidChangeOcclusionState() bool { - return di._WindowDidChangeOcclusionState != nil +func (di *WindowDelegate) HasWindowWillMiniaturize() bool { + return di._WindowWillMiniaturize != nil } -// Tells the delegate that the window changed its occlusion state. [Full Topic] +// Tells the delegate that the window is about to be minimized. [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/1419461-windowwillminiaturize?language=objc +func (di *WindowDelegate) SetWindowWillMiniaturize(f func(notification foundation.Notification)) { + di._WindowWillMiniaturize = f } -// Tells the delegate that the window changed its occlusion state. [Full Topic] +// Tells the delegate that the window is about to be minimized. [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/1419461-windowwillminiaturize?language=objc +func (di *WindowDelegate) WindowWillMiniaturize(notification foundation.Notification) { + di._WindowWillMiniaturize(notification) } -func (di *WindowDelegate) HasWindowDidChangeScreenProfile() bool { - return di._WindowDidChangeScreenProfile != nil +func (di *WindowDelegate) HasWindowWillEncodeRestorableState() bool { + return di._WindowWillEncodeRestorableState != nil } -// Tells the delegate that the window has changed screen display profiles. [Full Topic] +// 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/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/1419619-window?language=objc +func (di *WindowDelegate) SetWindowWillEncodeRestorableState(f func(window Window, state foundation.Coder)) { + di._WindowWillEncodeRestorableState = f } -// Tells the delegate that the window has changed screen display profiles. [Full Topic] +// 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/1419581-windowdidchangescreenprofile?language=objc -func (di *WindowDelegate) WindowDidChangeScreenProfile(notification foundation.Notification) { - di._WindowDidChangeScreenProfile(notification) +// [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) HasWindowWillReturnUndoManager() bool { - return di._WindowWillReturnUndoManager != nil +func (di *WindowDelegate) HasWindowWillExitVersionBrowser() bool { + return di._WindowWillExitVersionBrowser != nil } -// Tells the delegate that the window’s undo manager has been requested. Returns the appropriate undo manager for the window. [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/1419745-windowwillreturnundomanager?language=objc -func (di *WindowDelegate) SetWindowWillReturnUndoManager(f func(window Window) foundation.IUndoManager) { - di._WindowWillReturnUndoManager = 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 } -// Tells the delegate that the window’s undo manager has been requested. Returns the appropriate undo manager for the window. [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/1419745-windowwillreturnundomanager?language=objc -func (di *WindowDelegate) WindowWillReturnUndoManager(window Window) foundation.IUndoManager { - return di._WindowWillReturnUndoManager(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) HasWindowWillBeginSheet() bool { - return di._WindowWillBeginSheet != nil +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 (di *WindowDelegate) SetWindowWillBeginSheet(f func(notification foundation.Notification)) { - di._WindowWillBeginSheet = f +// [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 } -// 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 (di *WindowDelegate) WindowWillBeginSheet(notification foundation.Notification) { - di._WindowWillBeginSheet(notification) +// [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 +} + +// 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] +// +// [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 +} + +// 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] +// +// [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) +} +func (di *WindowDelegate) HasWindowDidMiniaturize() bool { + return di._WindowDidMiniaturize != nil +} + +// Tells the delegate that the window has been minimized. [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 +} + +// Tells the delegate that the window has been minimized. [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) +} +func (di *WindowDelegate) HasWindowWillReturnUndoManager() bool { + return di._WindowWillReturnUndoManager != nil +} + +// Tells the delegate that the window’s undo manager has been requested. Returns the appropriate undo manager for the window. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/appkit/nswindowdelegate/1419745-windowwillreturnundomanager?language=objc +func (di *WindowDelegate) SetWindowWillReturnUndoManager(f func(window Window) foundation.UndoManager) { + di._WindowWillReturnUndoManager = f +} + +// Tells the delegate that the window’s undo manager has been requested. Returns the appropriate undo manager for the window. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/appkit/nswindowdelegate/1419745-windowwillreturnundomanager?language=objc +func (di *WindowDelegate) WindowWillReturnUndoManager(window Window) foundation.UndoManager { + return di._WindowWillReturnUndoManager(window) } -func (di *WindowDelegate) HasWindowDidResignKey() bool { - return di._WindowDidResignKey != nil +func (di *WindowDelegate) HasWindowWillResizeForVersionBrowserWithMaxPreferredSizeMaxAllowedSize() bool { + return di._WindowWillResizeForVersionBrowserWithMaxPreferredSizeMaxAllowedSize != nil } -// Tells the delegate that the window has resigned key window status. [Full Topic] +// Tells the delegate the window will resize for presentation during version browsing. [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/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 that the window has resigned key window status. [Full Topic] +// Tells the delegate the window will resize for presentation during version browsing. [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/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) HasWindowShouldClose() bool { - return di._WindowShouldClose != nil +func (di *WindowDelegate) HasWindowWillEnterFullScreen() bool { + return di._WindowWillEnterFullScreen != nil } -// Tells the delegate that the user has attempted to close a window or the window has received a 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) SetWindowShouldClose(f func(sender Window) bool) { - di._WindowShouldClose = 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 user has attempted to close a window or the window has received a 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) HasWindowDidExitVersionBrowser() bool { - return di._WindowDidExitVersionBrowser != nil +func (di *WindowDelegate) HasWindowDidFailToEnterFullScreen() bool { + return di._WindowDidFailToEnterFullScreen != nil } -// Tells the delegate that the window has left version browsing. [Full Topic] +// Called if the window failed to enter full-screen mode. [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/1419591-windowdidfailtoenterfullscreen?language=objc +func (di *WindowDelegate) SetWindowDidFailToEnterFullScreen(f func(window Window)) { + di._WindowDidFailToEnterFullScreen = f } -// Tells the delegate that the window has left version browsing. [Full Topic] +// Called if the window failed to enter full-screen mode. [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/1419591-windowdidfailtoenterfullscreen?language=objc +func (di *WindowDelegate) WindowDidFailToEnterFullScreen(window Window) { + di._WindowDidFailToEnterFullScreen(window) } -func (di *WindowDelegate) HasWindowDidBecomeKey() bool { - return di._WindowDidBecomeKey != nil +func (di *WindowDelegate) HasWindowDidExpose() bool { + return di._WindowDidExpose != nil } -// Tells the delegate that the window has become the key window. [Full Topic] +// Tells the delegate that the window has been exposed. [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/1419258-windowdidexpose?language=objc +func (di *WindowDelegate) SetWindowDidExpose(f func(notification foundation.Notification)) { + di._WindowDidExpose = f } -// Tells the delegate that the window has become the key window. [Full Topic] +// Tells the delegate that the window has been exposed. [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/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) HasWindowDidEndLiveResize() bool { + return di._WindowDidEndLiveResize != nil } -// Tells the delegate that the window has resigned main window status. [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/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/1419150-windowdidendliveresize?language=objc +func (di *WindowDelegate) SetWindowDidEndLiveResize(f func(notification foundation.Notification)) { + di._WindowDidEndLiveResize = f } -// Tells the delegate that the window has resigned main window status. [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/1419584-windowdidresignmain?language=objc -func (di *WindowDelegate) WindowDidResignMain(notification foundation.Notification) { - di._WindowDidResignMain(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) HasWindowDidExitFullScreen() bool { - return di._WindowDidExitFullScreen != nil +func (di *WindowDelegate) HasWindowShouldZoomToFrame() bool { + return di._WindowShouldZoomToFrame != nil } -// The window has left full-screen mode. [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/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/1419533-windowshouldzoom?language=objc +func (di *WindowDelegate) SetWindowShouldZoomToFrame(f func(window Window, newFrame foundation.Rect) bool) { + di._WindowShouldZoomToFrame = f } -// The window has left full-screen mode. [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/1419146-windowdidexitfullscreen?language=objc -func (di *WindowDelegate) WindowDidExitFullScreen(notification foundation.Notification) { - di._WindowDidExitFullScreen(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) HasWindowDidBecomeMain() bool { return di._WindowDidBecomeMain != nil @@ -556,56 +815,73 @@ func (di *WindowDelegate) SetWindowDidBecomeMain(f func(notification foundation. func (di *WindowDelegate) WindowDidBecomeMain(notification foundation.Notification) { di._WindowDidBecomeMain(notification) } -func (di *WindowDelegate) HasWindowDidMiniaturize() bool { - return di._WindowDidMiniaturize != nil +func (di *WindowDelegate) HasWindowStartCustomAnimationToEnterFullScreenOnScreenWithDuration() bool { + return di._WindowStartCustomAnimationToEnterFullScreenOnScreenWithDuration != nil } -// Tells the delegate that the window has been minimized. [Full Topic] +// 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/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/1419709-window?language=objc +func (di *WindowDelegate) SetWindowStartCustomAnimationToEnterFullScreenOnScreenWithDuration(f func(window Window, screen Screen, duration foundation.TimeInterval)) { + di._WindowStartCustomAnimationToEnterFullScreenOnScreenWithDuration = f } -// Tells the delegate that the window has been minimized. [Full Topic] +// 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/1419621-windowdidminiaturize?language=objc -func (di *WindowDelegate) WindowDidMiniaturize(notification foundation.Notification) { - di._WindowDidMiniaturize(notification) +// [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) } -func (di *WindowDelegate) HasWindowDidExpose() bool { - return di._WindowDidExpose != nil +func (di *WindowDelegate) HasWindowShouldDragDocumentWithEventFromWithPasteboard() bool { + return di._WindowShouldDragDocumentWithEventFromWithPasteboard != nil } -// Tells the delegate that the window has been exposed. [Full Topic] +// Asks the delegate whether a user can drag the document icon from the window’s title bar. [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 +// [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 } -// Tells the delegate that the window has been exposed. [Full Topic] +// Asks the delegate whether a user can drag the document icon from the window’s title bar. [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) +// [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) } -func (di *WindowDelegate) HasWindowWillMiniaturize() bool { - return di._WindowWillMiniaturize != nil +func (di *WindowDelegate) HasWindowDidDecodeRestorableState() bool { + return di._WindowDidDecodeRestorableState != nil } -// Tells the delegate that the window is about to be minimized. [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/1419461-windowwillminiaturize?language=objc -func (di *WindowDelegate) SetWindowWillMiniaturize(f func(notification foundation.Notification)) { - di._WindowWillMiniaturize = f +// [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 is about to be minimized. [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/1419461-windowwillminiaturize?language=objc -func (di *WindowDelegate) WindowWillMiniaturize(notification foundation.Notification) { - di._WindowWillMiniaturize(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 (di *WindowDelegate) HasWindowWillPositionSheetUsingRect() bool { + return di._WindowWillPositionSheetUsingRect != 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] +// +// [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 +} + +// 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] +// +// [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) } func (di *WindowDelegate) HasWindowDidChangeBackingProperties() bool { return di._WindowDidChangeBackingProperties != nil @@ -624,23 +900,6 @@ func (di *WindowDelegate) SetWindowDidChangeBackingProperties(f func(notificatio func (di *WindowDelegate) WindowDidChangeBackingProperties(notification foundation.Notification) { di._WindowDidChangeBackingProperties(notification) } -func (di *WindowDelegate) HasWindowWillClose() bool { - return di._WindowWillClose != nil -} - -// 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 (di *WindowDelegate) SetWindowWillClose(f func(notification foundation.Notification)) { - di._WindowWillClose = f -} - -// 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 (di *WindowDelegate) WindowWillClose(notification foundation.Notification) { - di._WindowWillClose(notification) -} func (di *WindowDelegate) HasCustomWindowsToEnterFullScreenForWindow() bool { return di._CustomWindowsToEnterFullScreenForWindow != nil } @@ -648,704 +907,818 @@ func (di *WindowDelegate) HasCustomWindowsToEnterFullScreenForWindow() bool { // Called when the window is about to enter 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) []IWindow) { +func (di *WindowDelegate) SetCustomWindowsToEnterFullScreenForWindow(f func(window Window) []Window) { di._CustomWindowsToEnterFullScreenForWindow = f } // Called when the window is about to enter full-screen mode. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/appkit/nswindowdelegate/1419521-customwindowstoenterfullscreenfo?language=objc -func (di *WindowDelegate) CustomWindowsToEnterFullScreenForWindow(window Window) []IWindow { +func (di *WindowDelegate) CustomWindowsToEnterFullScreenForWindow(window Window) []Window { return di._CustomWindowsToEnterFullScreenForWindow(window) } -func (di *WindowDelegate) HasWindowWillEnterVersionBrowser() bool { - return di._WindowWillEnterVersionBrowser != nil +func (di *WindowDelegate) HasWindowWillUseStandardFrameDefaultFrame() bool { + return di._WindowWillUseStandardFrameDefaultFrame != nil } -// Tells the delegate the window is about to enter version browsing. [Full Topic] +// Called by NSWindow’s [appkit/nswindow/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 (di *WindowDelegate) SetWindowWillEnterVersionBrowser(f func(notification foundation.Notification)) { - di._WindowWillEnterVersionBrowser = f +// [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 +} + +// Called by NSWindow’s [appkit/nswindow/zoom] method while determining the frame a window may be zoomed to. [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) +} +func (di *WindowDelegate) HasWindowDidEnterVersionBrowser() bool { + return di._WindowDidEnterVersionBrowser != nil +} + +// 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) SetWindowDidEnterVersionBrowser(f func(notification foundation.Notification)) { + di._WindowDidEnterVersionBrowser = f +} + +// 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) +} +func (di *WindowDelegate) HasWindowStartCustomAnimationToEnterFullScreenWithDuration() bool { + return di._WindowStartCustomAnimationToEnterFullScreenWithDuration != nil +} + +// 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/1419406-window?language=objc +func (di *WindowDelegate) SetWindowStartCustomAnimationToEnterFullScreenWithDuration(f func(window Window, duration foundation.TimeInterval)) { + di._WindowStartCustomAnimationToEnterFullScreenWithDuration = f +} + +// 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/1419406-window?language=objc +func (di *WindowDelegate) WindowStartCustomAnimationToEnterFullScreenWithDuration(window Window, duration foundation.TimeInterval) { + di._WindowStartCustomAnimationToEnterFullScreenWithDuration(window, duration) +} +func (di *WindowDelegate) HasWindowDidResignMain() bool { + return di._WindowDidResignMain != nil +} + +// Tells the delegate that the window has resigned main window status. [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 +} + +// Tells the delegate that the window has resigned main window status. [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) +} +func (di *WindowDelegate) HasWindowDidExitVersionBrowser() bool { + return di._WindowDidExitVersionBrowser != nil +} + +// Tells the delegate that the window has left version browsing. [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 +} + +// Tells the delegate that the window has left version browsing. [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) +} +func (di *WindowDelegate) HasWindowWillClose() bool { + return di._WindowWillClose != nil +} + +// 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 (di *WindowDelegate) SetWindowWillClose(f func(notification foundation.Notification)) { + di._WindowWillClose = f } -// Tells the delegate the window is about to enter version browsing. [Full Topic] +// Tells the delegate that the window is about to close. [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) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nswindowdelegate/1419605-windowwillclose?language=objc +func (di *WindowDelegate) WindowWillClose(notification foundation.Notification) { + di._WindowWillClose(notification) } -func (di *WindowDelegate) HasWindowDidEndLiveResize() bool { - return di._WindowDidEndLiveResize != nil +func (di *WindowDelegate) HasCustomWindowsToExitFullScreenForWindow() bool { + return di._CustomWindowsToExitFullScreenForWindow != nil } -// Tells the delegate that a live resize operation on the window has ended. [Full Topic] +// Called when the window is about to exit full-screen mode. [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 +// [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 a live resize operation on the window has ended. [Full Topic] +// Called when the window is about to exit full-screen mode. [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) +// [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 (di *WindowDelegate) HasWindowDidUpdate() bool { return di._WindowDidUpdate != nil } -// Tells the delegate that the window received an update message. [Full Topic] +// Tells the delegate that the window received an [appkit/nswindow/update] message. [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 } -// Tells the delegate that the window received an update message. [Full Topic] +// Tells the delegate that the window received an [appkit/nswindow/update] message. [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) } -func (di *WindowDelegate) HasWindowWillExitVersionBrowser() bool { - return di._WindowWillExitVersionBrowser != nil +func (di *WindowDelegate) HasWindowWillStartLiveResize() bool { + return di._WindowWillStartLiveResize != nil } -// Tells the delegate that the window is about to leave version browsing. [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/1419252-windowwillexitversionbrowser?language=objc -func (di *WindowDelegate) SetWindowWillExitVersionBrowser(f func(notification foundation.Notification)) { - di._WindowWillExitVersionBrowser = 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 is about to leave version browsing. [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/1419252-windowwillexitversionbrowser?language=objc -func (di *WindowDelegate) WindowWillExitVersionBrowser(notification foundation.Notification) { - di._WindowWillExitVersionBrowser(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) HasWindowWillReturnFieldEditorToObject() bool { - return di._WindowWillReturnFieldEditorToObject != nil +func (di *WindowDelegate) HasWindowDidChangeOcclusionState() bool { + return di._WindowDidChangeOcclusionState != nil } -// Tells the delegate that the field editor for a text-displaying object has been requested. [Full Topic] +// Tells the delegate that the window changed its occlusion state. [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.IObject) { - di._WindowWillReturnFieldEditorToObject = 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 } -// Tells the delegate that the field editor for a text-displaying object has been requested. [Full Topic] +// Tells the delegate that the window changed its occlusion state. [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.IObject { - return di._WindowWillReturnFieldEditorToObject(sender, client) +// [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) HasWindowDidDeminiaturize() bool { - return di._WindowDidDeminiaturize != nil +func (di *WindowDelegate) HasWindowDidFailToExitFullScreen() bool { + return di._WindowDidFailToExitFullScreen != nil } -// Tells the delegate that the window has been deminimized. [Full Topic] +// Called if the window failed to exit full-screen mode. [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/1419573-windowdidfailtoexitfullscreen?language=objc +func (di *WindowDelegate) SetWindowDidFailToExitFullScreen(f func(window Window)) { + di._WindowDidFailToExitFullScreen = f } -// Tells the delegate that the window has been deminimized. [Full Topic] +// Called if the window failed to exit full-screen mode. [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/1419573-windowdidfailtoexitfullscreen?language=objc +func (di *WindowDelegate) WindowDidFailToExitFullScreen(window Window) { + di._WindowDidFailToExitFullScreen(window) } -func (di *WindowDelegate) HasCustomWindowsToExitFullScreenForWindow() bool { - return di._CustomWindowsToExitFullScreenForWindow != nil +func (di *WindowDelegate) HasWindowDidExitFullScreen() bool { + return di._WindowDidExitFullScreen != nil } -// Called when the window is about to exit full-screen mode. [Full Topic] +// The window has left 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) []IWindow) { - di._CustomWindowsToExitFullScreenForWindow = 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 exit full-screen mode. [Full Topic] +// The window has left full-screen mode. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nswindowdelegate/1419070-customwindowstoexitfullscreenfor?language=objc -func (di *WindowDelegate) CustomWindowsToExitFullScreenForWindow(window Window) []IWindow { - return di._CustomWindowsToExitFullScreenForWindow(window) +// [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) HasWindowDidDecodeRestorableState() bool { - return di._WindowDidDecodeRestorableState != nil +func (di *WindowDelegate) HasWindowWillEnterVersionBrowser() bool { + return di._WindowWillEnterVersionBrowser != nil } -// Tells the delegate the window is has extracted its restorable state from a given archiver. [Full Topic] +// Tells the delegate the window is about to enter 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/1419463-windowwillenterversionbrowser?language=objc +func (di *WindowDelegate) SetWindowWillEnterVersionBrowser(f func(notification foundation.Notification)) { + di._WindowWillEnterVersionBrowser = f } -// Tells the delegate the window is has extracted its restorable state from a given archiver. [Full Topic] +// Tells the delegate the window is about to enter 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/1419463-windowwillenterversionbrowser?language=objc +func (di *WindowDelegate) WindowWillEnterVersionBrowser(notification foundation.Notification) { + di._WindowWillEnterVersionBrowser(notification) } -func (di *WindowDelegate) HasWindowDidMove() bool { - return di._WindowDidMove != nil + +// ensure impl type implements protocol interface +var _ PWindowDelegate = (*WindowDelegateObject)(nil) + +// A concrete type for the [PWindowDelegate] protocol. +type WindowDelegateObject struct { + objc.Object } -// Tells the delegate that the window has moved. [Full Topic] +func (w_ WindowDelegateObject) HasWindowWillUseFullScreenContentSize() bool { + return w_.RespondsToSelector(objc.Sel("window:willUseFullScreenContentSize:")) +} + +// Called to allow the delegate to modify the full-screen content size. [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/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:"), objc.Ptr(window), proposedSize) + return rv +} + +func (w_ WindowDelegateObject) HasWindowDidMove() bool { + return w_.RespondsToSelector(objc.Sel("windowDidMove:")) } // 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 (w_ WindowDelegateObject) WindowDidMove(notification foundation.Notification) { + objc.Call[objc.Void](w_, objc.Sel("windowDidMove:"), objc.Ptr(notification)) } -func (di *WindowDelegate) HasWindowDidChangeScreen() bool { - return di._WindowDidChangeScreen != nil + +func (w_ WindowDelegateObject) HasWindowDidDeminiaturize() bool { + return w_.RespondsToSelector(objc.Sel("windowDidDeminiaturize:")) } -// Tells the delegate that the window has changed screens. [Full Topic] +// Tells the delegate that the window has been deminimized. [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/1419296-windowdiddeminiaturize?language=objc +func (w_ WindowDelegateObject) WindowDidDeminiaturize(notification foundation.Notification) { + objc.Call[objc.Void](w_, objc.Sel("windowDidDeminiaturize:"), objc.Ptr(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:"), objc.Ptr(notification)) +} + +func (w_ WindowDelegateObject) HasCustomWindowsToEnterFullScreenForWindowOnScreen() bool { + return w_.RespondsToSelector(objc.Sel("customWindowsToEnterFullScreenForWindow:onScreen:")) +} + +// Called when the window is about to enter full-screen mode. [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:"), objc.Ptr(window), objc.Ptr(screen)) + return rv +} + +func (w_ WindowDelegateObject) HasWindowDidChangeScreen() bool { + return w_.RespondsToSelector(objc.Sel("windowDidChangeScreen:")) } // 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 (w_ WindowDelegateObject) WindowDidChangeScreen(notification foundation.Notification) { + objc.Call[objc.Void](w_, objc.Sel("windowDidChangeScreen:"), objc.Ptr(notification)) } -func (di *WindowDelegate) HasWindowDidEnterFullScreen() bool { - return di._WindowDidEnterFullScreen != nil + +func (w_ WindowDelegateObject) HasWindowWillUseFullScreenPresentationOptions() bool { + return w_.RespondsToSelector(objc.Sel("window:willUseFullScreenPresentationOptions:")) } -// The window has entered full-screen mode. [Full Topic] +// Returns the presentation options the window uses when transitioning to 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 +// [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:"), objc.Ptr(window), proposedOptions) + return rv } -// The window has entered full-screen mode. [Full Topic] +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/1419116-windowdidenterfullscreen?language=objc -func (di *WindowDelegate) WindowDidEnterFullScreen(notification foundation.Notification) { - di._WindowDidEnterFullScreen(notification) +// [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:"), objc.Ptr(notification)) } -func (di *WindowDelegate) HasWindowWillExitFullScreen() bool { - return di._WindowWillExitFullScreen != nil + +func (w_ WindowDelegateObject) HasWindowWillReturnFieldEditorToObject() bool { + return w_.RespondsToSelector(objc.Sel("windowWillReturnFieldEditor:toObject:")) } -// The window is about to exit 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/1419332-windowwillexitfullscreen?language=objc -func (di *WindowDelegate) SetWindowWillExitFullScreen(f func(notification foundation.Notification)) { - di._WindowWillExitFullScreen = f +// [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:"), objc.Ptr(sender), client) + return rv } -// The window is about to exit full-screen mode. [Full Topic] +func (w_ WindowDelegateObject) HasWindowShouldClose() bool { + return w_.RespondsToSelector(objc.Sel("windowShouldClose:")) +} + +// 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/1419332-windowwillexitfullscreen?language=objc -func (di *WindowDelegate) WindowWillExitFullScreen(notification foundation.Notification) { - di._WindowWillExitFullScreen(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:"), objc.Ptr(sender)) + return rv } -func (di *WindowDelegate) HasWindowWillUseStandardFrameDefaultFrame() bool { - return di._WindowWillUseStandardFrameDefaultFrame != nil + +func (w_ WindowDelegateObject) HasWindowDidResignKey() bool { + return w_.RespondsToSelector(objc.Sel("windowDidResignKey:")) } -// Called by NSWindow’s zoom: method while determining the frame a window may be zoomed to. [Full Topic] +// Tells the delegate that the window has resigned key window status. [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/1419711-windowdidresignkey?language=objc +func (w_ WindowDelegateObject) WindowDidResignKey(notification foundation.Notification) { + objc.Call[objc.Void](w_, objc.Sel("windowDidResignKey:"), objc.Ptr(notification)) +} + +func (w_ WindowDelegateObject) HasWindowDidEndSheet() bool { + return w_.RespondsToSelector(objc.Sel("windowDidEndSheet:")) } -// Called by NSWindow’s zoom: method while determining the frame a window may be zoomed to. [Full Topic] +// Tells the delegate that the window has closed a sheet. [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/1419773-windowdidendsheet?language=objc +func (w_ WindowDelegateObject) WindowDidEndSheet(notification foundation.Notification) { + objc.Call[objc.Void](w_, objc.Sel("windowDidEndSheet:"), objc.Ptr(notification)) } -func (di *WindowDelegate) HasWindowDidEnterVersionBrowser() bool { - return di._WindowDidEnterVersionBrowser != nil + +func (w_ WindowDelegateObject) HasWindowDidBecomeKey() bool { + return w_.RespondsToSelector(objc.Sel("windowDidBecomeKey:")) } -// Tells the delegate that the window has entered version browsing. [Full Topic] +// Tells the delegate that the window has become the key window. [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/1419737-windowdidbecomekey?language=objc +func (w_ WindowDelegateObject) WindowDidBecomeKey(notification foundation.Notification) { + objc.Call[objc.Void](w_, objc.Sel("windowDidBecomeKey:"), objc.Ptr(notification)) } -// Tells the delegate that the window has entered version browsing. [Full Topic] +func (w_ WindowDelegateObject) HasWindowWillResizeToSize() bool { + return w_.RespondsToSelector(objc.Sel("windowWillResize:toSize:")) +} + +// 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] // -// [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/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:"), objc.Ptr(sender), frameSize) + return rv } -// A concrete type wrapper for the [PWindowDelegate] protocol. -type WindowDelegateWrapper struct { - objc.Object +func (w_ WindowDelegateObject) HasWindowWillMiniaturize() bool { + return w_.RespondsToSelector(objc.Sel("windowWillMiniaturize:")) } -func (w_ WindowDelegateWrapper) HasWindowDidFailToExitFullScreen() bool { - return w_.RespondsToSelector(objc.Sel("windowDidFailToExitFullScreen:")) +// 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:"), objc.Ptr(notification)) } -// Called if the window failed to exit full-screen mode. [Full Topic] +func (w_ WindowDelegateObject) HasWindowWillEncodeRestorableState() bool { + return w_.RespondsToSelector(objc.Sel("window:willEncodeRestorableState:")) +} + +// 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/1419573-windowdidfailtoexitfullscreen?language=objc -func (w_ WindowDelegateWrapper) WindowDidFailToExitFullScreen(window IWindow) { - objc.Call[objc.Void](w_, objc.Sel("windowDidFailToExitFullScreen:"), objc.Ptr(window)) +// [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:"), objc.Ptr(window), objc.Ptr(state)) } -func (w_ WindowDelegateWrapper) HasWindowShouldZoomToFrame() bool { - return w_.RespondsToSelector(objc.Sel("windowShouldZoom:toFrame:")) +func (w_ WindowDelegateObject) HasWindowWillExitVersionBrowser() bool { + return w_.RespondsToSelector(objc.Sel("windowWillExitVersionBrowser:")) } -// Asks the delegate whether the specified window should zoom to the specified frame. [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/1419533-windowshouldzoom?language=objc -func (w_ WindowDelegateWrapper) WindowShouldZoomToFrame(window IWindow, newFrame foundation.Rect) bool { - rv := objc.Call[bool](w_, objc.Sel("windowShouldZoom:toFrame:"), objc.Ptr(window), newFrame) - return rv +// [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:"), objc.Ptr(notification)) } -func (w_ WindowDelegateWrapper) HasWindowDidEndSheet() bool { - return w_.RespondsToSelector(objc.Sel("windowDidEndSheet:")) +func (w_ WindowDelegateObject) HasWindowDidEnterFullScreen() bool { + return w_.RespondsToSelector(objc.Sel("windowDidEnterFullScreen:")) } -// Tells the delegate that the window has closed a sheet. [Full Topic] +// The window has entered full-screen mode. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nswindowdelegate/1419773-windowdidendsheet?language=objc -func (w_ WindowDelegateWrapper) WindowDidEndSheet(notification foundation.INotification) { - objc.Call[objc.Void](w_, objc.Sel("windowDidEndSheet:"), objc.Ptr(notification)) +// [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:"), objc.Ptr(notification)) } -func (w_ WindowDelegateWrapper) HasWindowDidResize() bool { +func (w_ WindowDelegateObject) HasWindowDidResize() bool { return w_.RespondsToSelector(objc.Sel("windowDidResize:")) } // 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 (w_ WindowDelegateWrapper) WindowDidResize(notification foundation.INotification) { +func (w_ WindowDelegateObject) WindowDidResize(notification foundation.Notification) { objc.Call[objc.Void](w_, objc.Sel("windowDidResize:"), objc.Ptr(notification)) } -func (w_ WindowDelegateWrapper) 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_ WindowDelegateWrapper) WindowWillEnterFullScreen(notification foundation.INotification) { - objc.Call[objc.Void](w_, objc.Sel("windowWillEnterFullScreen:"), objc.Ptr(notification)) -} - -func (w_ WindowDelegateWrapper) HasWindowWillMove() bool { +func (w_ WindowDelegateObject) HasWindowWillMove() bool { return w_.RespondsToSelector(objc.Sel("windowWillMove:")) } // 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 (w_ WindowDelegateWrapper) WindowWillMove(notification foundation.INotification) { +func (w_ WindowDelegateObject) WindowWillMove(notification foundation.Notification) { objc.Call[objc.Void](w_, objc.Sel("windowWillMove:"), objc.Ptr(notification)) } -func (w_ WindowDelegateWrapper) HasWindowWillStartLiveResize() bool { - return w_.RespondsToSelector(objc.Sel("windowWillStartLiveResize:")) +func (w_ WindowDelegateObject) HasWindowStartCustomAnimationToExitFullScreenWithDuration() bool { + return w_.RespondsToSelector(objc.Sel("window:startCustomAnimationToExitFullScreenWithDuration:")) } -// Tells the delegate that the window is about to be live resized. [Full Topic] +// 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/1419555-windowwillstartliveresize?language=objc -func (w_ WindowDelegateWrapper) WindowWillStartLiveResize(notification foundation.INotification) { - objc.Call[objc.Void](w_, objc.Sel("windowWillStartLiveResize:"), objc.Ptr(notification)) +// [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:"), objc.Ptr(window), duration) } -func (w_ WindowDelegateWrapper) HasWindowDidFailToEnterFullScreen() bool { - return w_.RespondsToSelector(objc.Sel("windowDidFailToEnterFullScreen:")) +func (w_ WindowDelegateObject) HasWindowWillExitFullScreen() bool { + return w_.RespondsToSelector(objc.Sel("windowWillExitFullScreen:")) } -// Called if the window failed to enter 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/1419591-windowdidfailtoenterfullscreen?language=objc -func (w_ WindowDelegateWrapper) WindowDidFailToEnterFullScreen(window IWindow) { - objc.Call[objc.Void](w_, objc.Sel("windowDidFailToEnterFullScreen:"), objc.Ptr(window)) +// [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:"), objc.Ptr(notification)) } -func (w_ WindowDelegateWrapper) HasWindowWillResizeToSize() bool { - return w_.RespondsToSelector(objc.Sel("windowWillResize:toSize:")) +func (w_ WindowDelegateObject) HasWindowShouldPopUpDocumentPathMenu() bool { + return w_.RespondsToSelector(objc.Sel("window:shouldPopUpDocumentPathMenu:")) } -// 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] +// 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] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nswindowdelegate/1419292-windowwillresize?language=objc -func (w_ WindowDelegateWrapper) WindowWillResizeToSize(sender IWindow, frameSize foundation.Size) foundation.Size { - rv := objc.Call[foundation.Size](w_, objc.Sel("windowWillResize:toSize:"), objc.Ptr(sender), frameSize) +// [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:"), objc.Ptr(window), objc.Ptr(menu)) return rv } -func (w_ WindowDelegateWrapper) HasWindowDidChangeOcclusionState() bool { - return w_.RespondsToSelector(objc.Sel("windowDidChangeOcclusionState:")) -} - -// Tells the delegate that the window changed its occlusion state. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/appkit/nswindowdelegate/1419424-windowdidchangeocclusionstate?language=objc -func (w_ WindowDelegateWrapper) WindowDidChangeOcclusionState(notification foundation.INotification) { - objc.Call[objc.Void](w_, objc.Sel("windowDidChangeOcclusionState:"), objc.Ptr(notification)) -} - -func (w_ WindowDelegateWrapper) HasWindowDidChangeScreenProfile() bool { - return w_.RespondsToSelector(objc.Sel("windowDidChangeScreenProfile:")) +func (w_ WindowDelegateObject) HasWindowDidMiniaturize() bool { + return w_.RespondsToSelector(objc.Sel("windowDidMiniaturize:")) } -// Tells the delegate that the window has changed screen display profiles. [Full Topic] +// Tells the delegate that the window has been minimized. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nswindowdelegate/1419581-windowdidchangescreenprofile?language=objc -func (w_ WindowDelegateWrapper) WindowDidChangeScreenProfile(notification foundation.INotification) { - objc.Call[objc.Void](w_, objc.Sel("windowDidChangeScreenProfile:"), objc.Ptr(notification)) +// [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:"), objc.Ptr(notification)) } -func (w_ WindowDelegateWrapper) HasWindowWillReturnUndoManager() bool { +func (w_ WindowDelegateObject) HasWindowWillReturnUndoManager() bool { return w_.RespondsToSelector(objc.Sel("windowWillReturnUndoManager:")) } // Tells the delegate that the window’s undo manager has been requested. Returns the appropriate undo manager for the window. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/appkit/nswindowdelegate/1419745-windowwillreturnundomanager?language=objc -func (w_ WindowDelegateWrapper) WindowWillReturnUndoManager(window IWindow) foundation.UndoManager { +func (w_ WindowDelegateObject) WindowWillReturnUndoManager(window Window) foundation.UndoManager { rv := objc.Call[foundation.UndoManager](w_, objc.Sel("windowWillReturnUndoManager:"), objc.Ptr(window)) return rv } -func (w_ WindowDelegateWrapper) 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_ WindowDelegateWrapper) WindowWillBeginSheet(notification foundation.INotification) { - objc.Call[objc.Void](w_, objc.Sel("windowWillBeginSheet:"), objc.Ptr(notification)) -} - -func (w_ WindowDelegateWrapper) HasWindowDidResignKey() bool { - return w_.RespondsToSelector(objc.Sel("windowDidResignKey:")) +func (w_ WindowDelegateObject) HasWindowWillResizeForVersionBrowserWithMaxPreferredSizeMaxAllowedSize() bool { + return w_.RespondsToSelector(objc.Sel("window:willResizeForVersionBrowserWithMaxPreferredSize:maxAllowedSize:")) } -// Tells the delegate that the window has resigned key window status. [Full Topic] +// Tells the delegate the window will resize for presentation during version browsing. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nswindowdelegate/1419711-windowdidresignkey?language=objc -func (w_ WindowDelegateWrapper) WindowDidResignKey(notification foundation.INotification) { - objc.Call[objc.Void](w_, objc.Sel("windowDidResignKey:"), objc.Ptr(notification)) +// [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:"), objc.Ptr(window), maxPreferredFrameSize, maxAllowedFrameSize) + return rv } -func (w_ WindowDelegateWrapper) HasWindowShouldClose() bool { - return w_.RespondsToSelector(objc.Sel("windowShouldClose:")) +func (w_ WindowDelegateObject) HasWindowWillEnterFullScreen() bool { + return w_.RespondsToSelector(objc.Sel("windowWillEnterFullScreen:")) } -// Tells the delegate that the user has attempted to close a window or the window has received a 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 (w_ WindowDelegateWrapper) WindowShouldClose(sender IWindow) bool { - rv := objc.Call[bool](w_, objc.Sel("windowShouldClose:"), objc.Ptr(sender)) - return rv +// [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:"), objc.Ptr(notification)) } -func (w_ WindowDelegateWrapper) HasWindowDidExitVersionBrowser() bool { - return w_.RespondsToSelector(objc.Sel("windowDidExitVersionBrowser:")) +func (w_ WindowDelegateObject) HasWindowDidFailToEnterFullScreen() bool { + return w_.RespondsToSelector(objc.Sel("windowDidFailToEnterFullScreen:")) } -// Tells the delegate that the window has left version browsing. [Full Topic] +// Called if the window failed to enter full-screen mode. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nswindowdelegate/1419501-windowdidexitversionbrowser?language=objc -func (w_ WindowDelegateWrapper) WindowDidExitVersionBrowser(notification foundation.INotification) { - objc.Call[objc.Void](w_, objc.Sel("windowDidExitVersionBrowser:"), objc.Ptr(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:"), objc.Ptr(window)) } -func (w_ WindowDelegateWrapper) HasWindowDidBecomeKey() bool { - return w_.RespondsToSelector(objc.Sel("windowDidBecomeKey:")) +func (w_ WindowDelegateObject) HasWindowDidExpose() bool { + return w_.RespondsToSelector(objc.Sel("windowDidExpose:")) } -// Tells the delegate that the window has become the key window. [Full Topic] +// Tells the delegate that the window has been exposed. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nswindowdelegate/1419737-windowdidbecomekey?language=objc -func (w_ WindowDelegateWrapper) WindowDidBecomeKey(notification foundation.INotification) { - objc.Call[objc.Void](w_, objc.Sel("windowDidBecomeKey:"), objc.Ptr(notification)) +// [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:"), objc.Ptr(notification)) } -func (w_ WindowDelegateWrapper) HasWindowDidResignMain() bool { - return w_.RespondsToSelector(objc.Sel("windowDidResignMain:")) +func (w_ WindowDelegateObject) HasWindowDidEndLiveResize() bool { + return w_.RespondsToSelector(objc.Sel("windowDidEndLiveResize:")) } -// Tells the delegate that the window has resigned main window status. [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/1419584-windowdidresignmain?language=objc -func (w_ WindowDelegateWrapper) WindowDidResignMain(notification foundation.INotification) { - objc.Call[objc.Void](w_, objc.Sel("windowDidResignMain:"), objc.Ptr(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:"), objc.Ptr(notification)) } -func (w_ WindowDelegateWrapper) HasWindowDidExitFullScreen() bool { - return w_.RespondsToSelector(objc.Sel("windowDidExitFullScreen:")) +func (w_ WindowDelegateObject) HasWindowShouldZoomToFrame() bool { + return w_.RespondsToSelector(objc.Sel("windowShouldZoom:toFrame:")) } -// The window has left full-screen mode. [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/1419146-windowdidexitfullscreen?language=objc -func (w_ WindowDelegateWrapper) WindowDidExitFullScreen(notification foundation.INotification) { - objc.Call[objc.Void](w_, objc.Sel("windowDidExitFullScreen:"), objc.Ptr(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:"), objc.Ptr(window), newFrame) + return rv } -func (w_ WindowDelegateWrapper) HasWindowDidBecomeMain() bool { +func (w_ WindowDelegateObject) HasWindowDidBecomeMain() bool { return w_.RespondsToSelector(objc.Sel("windowDidBecomeMain:")) } // Tells the delegate that the window has become main. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/appkit/nswindowdelegate/1419190-windowdidbecomemain?language=objc -func (w_ WindowDelegateWrapper) WindowDidBecomeMain(notification foundation.INotification) { +func (w_ WindowDelegateObject) WindowDidBecomeMain(notification foundation.Notification) { objc.Call[objc.Void](w_, objc.Sel("windowDidBecomeMain:"), objc.Ptr(notification)) } -func (w_ WindowDelegateWrapper) HasWindowDidMiniaturize() bool { - return w_.RespondsToSelector(objc.Sel("windowDidMiniaturize:")) +func (w_ WindowDelegateObject) HasWindowStartCustomAnimationToEnterFullScreenOnScreenWithDuration() bool { + return w_.RespondsToSelector(objc.Sel("window:startCustomAnimationToEnterFullScreenOnScreen:withDuration:")) } -// Tells the delegate that the window has been minimized. [Full Topic] +// 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/1419621-windowdidminiaturize?language=objc -func (w_ WindowDelegateWrapper) WindowDidMiniaturize(notification foundation.INotification) { - objc.Call[objc.Void](w_, objc.Sel("windowDidMiniaturize:"), objc.Ptr(notification)) +// [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:"), objc.Ptr(window), objc.Ptr(screen), duration) } -func (w_ WindowDelegateWrapper) HasWindowDidExpose() bool { - return w_.RespondsToSelector(objc.Sel("windowDidExpose:")) +func (w_ WindowDelegateObject) HasWindowShouldDragDocumentWithEventFromWithPasteboard() bool { + return w_.RespondsToSelector(objc.Sel("window:shouldDragDocumentWithEvent:from:withPasteboard:")) } -// Tells the delegate that the window has been exposed. [Full Topic] +// Asks the delegate whether a user can drag the document icon from the window’s title bar. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nswindowdelegate/1419258-windowdidexpose?language=objc -func (w_ WindowDelegateWrapper) WindowDidExpose(notification foundation.INotification) { - objc.Call[objc.Void](w_, objc.Sel("windowDidExpose:"), objc.Ptr(notification)) +// [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:"), objc.Ptr(window), objc.Ptr(event), dragImageLocation, objc.Ptr(pasteboard)) + return rv } -func (w_ WindowDelegateWrapper) HasWindowWillMiniaturize() bool { - return w_.RespondsToSelector(objc.Sel("windowWillMiniaturize:")) +func (w_ WindowDelegateObject) HasWindowDidDecodeRestorableState() bool { + return w_.RespondsToSelector(objc.Sel("window:didDecodeRestorableState:")) } -// Tells the delegate that the window is about to be minimized. [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/1419461-windowwillminiaturize?language=objc -func (w_ WindowDelegateWrapper) WindowWillMiniaturize(notification foundation.INotification) { - objc.Call[objc.Void](w_, objc.Sel("windowWillMiniaturize:"), objc.Ptr(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:"), objc.Ptr(window), objc.Ptr(state)) } -func (w_ WindowDelegateWrapper) HasWindowDidChangeBackingProperties() bool { - return w_.RespondsToSelector(objc.Sel("windowDidChangeBackingProperties:")) +func (w_ WindowDelegateObject) HasWindowWillPositionSheetUsingRect() bool { + return w_.RespondsToSelector(objc.Sel("window:willPositionSheet:usingRect:")) } -// Tells the delegate that the window backing properties changed. [Full Topic] +// 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] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nswindowdelegate/1419517-windowdidchangebackingproperties?language=objc -func (w_ WindowDelegateWrapper) WindowDidChangeBackingProperties(notification foundation.INotification) { - objc.Call[objc.Void](w_, objc.Sel("windowDidChangeBackingProperties:"), objc.Ptr(notification)) +// [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:"), objc.Ptr(window), objc.Ptr(sheet), rect) + return rv } -func (w_ WindowDelegateWrapper) HasWindowWillClose() bool { - return w_.RespondsToSelector(objc.Sel("windowWillClose:")) +func (w_ WindowDelegateObject) HasWindowDidChangeBackingProperties() bool { + return w_.RespondsToSelector(objc.Sel("windowDidChangeBackingProperties:")) } -// Tells the delegate that the window is about to close. [Full Topic] +// Tells the delegate that the window backing properties changed. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nswindowdelegate/1419605-windowwillclose?language=objc -func (w_ WindowDelegateWrapper) WindowWillClose(notification foundation.INotification) { - objc.Call[objc.Void](w_, objc.Sel("windowWillClose:"), objc.Ptr(notification)) +// [Full Topic]: https://developer.apple.com/documentation/appkit/nswindowdelegate/1419517-windowdidchangebackingproperties?language=objc +func (w_ WindowDelegateObject) WindowDidChangeBackingProperties(notification foundation.Notification) { + objc.Call[objc.Void](w_, objc.Sel("windowDidChangeBackingProperties:"), objc.Ptr(notification)) } -func (w_ WindowDelegateWrapper) HasCustomWindowsToEnterFullScreenForWindow() bool { +func (w_ WindowDelegateObject) HasCustomWindowsToEnterFullScreenForWindow() bool { return w_.RespondsToSelector(objc.Sel("customWindowsToEnterFullScreenForWindow:")) } // Called when the window is about to enter full-screen mode. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/appkit/nswindowdelegate/1419521-customwindowstoenterfullscreenfo?language=objc -func (w_ WindowDelegateWrapper) CustomWindowsToEnterFullScreenForWindow(window IWindow) []Window { +func (w_ WindowDelegateObject) CustomWindowsToEnterFullScreenForWindow(window Window) []Window { rv := objc.Call[[]Window](w_, objc.Sel("customWindowsToEnterFullScreenForWindow:"), objc.Ptr(window)) return rv } -func (w_ WindowDelegateWrapper) 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 [appkit/nswindow/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_ WindowDelegateWrapper) WindowWillEnterVersionBrowser(notification foundation.INotification) { - objc.Call[objc.Void](w_, objc.Sel("windowWillEnterVersionBrowser:"), objc.Ptr(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:"), objc.Ptr(window), newFrame) + return rv } -func (w_ WindowDelegateWrapper) HasWindowDidEndLiveResize() bool { - return w_.RespondsToSelector(objc.Sel("windowDidEndLiveResize:")) +func (w_ WindowDelegateObject) HasWindowDidEnterVersionBrowser() bool { + return w_.RespondsToSelector(objc.Sel("windowDidEnterVersionBrowser:")) } -// Tells the delegate that a live resize operation on the window has ended. [Full Topic] +// Tells the delegate that the window has entered version browsing. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nswindowdelegate/1419150-windowdidendliveresize?language=objc -func (w_ WindowDelegateWrapper) WindowDidEndLiveResize(notification foundation.INotification) { - objc.Call[objc.Void](w_, objc.Sel("windowDidEndLiveResize:"), objc.Ptr(notification)) +// [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:"), objc.Ptr(notification)) } -func (w_ WindowDelegateWrapper) HasWindowDidUpdate() bool { - return w_.RespondsToSelector(objc.Sel("windowDidUpdate:")) +func (w_ WindowDelegateObject) HasWindowStartCustomAnimationToEnterFullScreenWithDuration() bool { + return w_.RespondsToSelector(objc.Sel("window:startCustomAnimationToEnterFullScreenWithDuration:")) } -// Tells the delegate that the window received an update message. [Full Topic] +// 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/1419493-windowdidupdate?language=objc -func (w_ WindowDelegateWrapper) WindowDidUpdate(notification foundation.INotification) { - objc.Call[objc.Void](w_, objc.Sel("windowDidUpdate:"), objc.Ptr(notification)) +// [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:"), objc.Ptr(window), duration) } -func (w_ WindowDelegateWrapper) HasWindowWillExitVersionBrowser() bool { - return w_.RespondsToSelector(objc.Sel("windowWillExitVersionBrowser:")) +func (w_ WindowDelegateObject) HasWindowDidResignMain() bool { + return w_.RespondsToSelector(objc.Sel("windowDidResignMain:")) } -// Tells the delegate that the window is about to leave version browsing. [Full Topic] +// Tells the delegate that the window has resigned main window status. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nswindowdelegate/1419252-windowwillexitversionbrowser?language=objc -func (w_ WindowDelegateWrapper) WindowWillExitVersionBrowser(notification foundation.INotification) { - objc.Call[objc.Void](w_, objc.Sel("windowWillExitVersionBrowser:"), objc.Ptr(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:"), objc.Ptr(notification)) } -func (w_ WindowDelegateWrapper) HasWindowWillReturnFieldEditorToObject() bool { - return w_.RespondsToSelector(objc.Sel("windowWillReturnFieldEditor:toObject:")) +func (w_ WindowDelegateObject) HasWindowDidExitVersionBrowser() bool { + return w_.RespondsToSelector(objc.Sel("windowDidExitVersionBrowser:")) } -// Tells the delegate that the field editor for a text-displaying object has been requested. [Full Topic] +// Tells the delegate that the window has left version browsing. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nswindowdelegate/1419416-windowwillreturnfieldeditor?language=objc -func (w_ WindowDelegateWrapper) WindowWillReturnFieldEditorToObject(sender IWindow, client objc.IObject) objc.Object { - rv := objc.Call[objc.Object](w_, objc.Sel("windowWillReturnFieldEditor:toObject:"), objc.Ptr(sender), client) - return rv +// [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:"), objc.Ptr(notification)) } -func (w_ WindowDelegateWrapper) HasWindowDidDeminiaturize() bool { - return w_.RespondsToSelector(objc.Sel("windowDidDeminiaturize:")) +func (w_ WindowDelegateObject) HasWindowWillClose() bool { + return w_.RespondsToSelector(objc.Sel("windowWillClose:")) } -// Tells the delegate that the window has been deminimized. [Full Topic] +// Tells the delegate that the window is about to close. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nswindowdelegate/1419296-windowdiddeminiaturize?language=objc -func (w_ WindowDelegateWrapper) WindowDidDeminiaturize(notification foundation.INotification) { - objc.Call[objc.Void](w_, objc.Sel("windowDidDeminiaturize:"), objc.Ptr(notification)) +// [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:"), objc.Ptr(notification)) } -func (w_ WindowDelegateWrapper) HasCustomWindowsToExitFullScreenForWindow() bool { +func (w_ WindowDelegateObject) HasCustomWindowsToExitFullScreenForWindow() bool { return w_.RespondsToSelector(objc.Sel("customWindowsToExitFullScreenForWindow:")) } // Called when the window is about to exit full-screen mode. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/appkit/nswindowdelegate/1419070-customwindowstoexitfullscreenfor?language=objc -func (w_ WindowDelegateWrapper) CustomWindowsToExitFullScreenForWindow(window IWindow) []Window { +func (w_ WindowDelegateObject) CustomWindowsToExitFullScreenForWindow(window Window) []Window { rv := objc.Call[[]Window](w_, objc.Sel("customWindowsToExitFullScreenForWindow:"), objc.Ptr(window)) return rv } -func (w_ WindowDelegateWrapper) HasWindowDidDecodeRestorableState() bool { - return w_.RespondsToSelector(objc.Sel("window:didDecodeRestorableState:")) -} - -// 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/1419475-window?language=objc -func (w_ WindowDelegateWrapper) WindowDidDecodeRestorableState(window IWindow, state foundation.ICoder) { - objc.Call[objc.Void](w_, objc.Sel("window:didDecodeRestorableState:"), objc.Ptr(window), objc.Ptr(state)) -} - -func (w_ WindowDelegateWrapper) HasWindowDidMove() bool { - return w_.RespondsToSelector(objc.Sel("windowDidMove:")) +func (w_ WindowDelegateObject) HasWindowDidUpdate() bool { + return w_.RespondsToSelector(objc.Sel("windowDidUpdate:")) } -// Tells the delegate that the window has moved. [Full Topic] +// Tells the delegate that the window received an [appkit/nswindow/update] message. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nswindowdelegate/1419674-windowdidmove?language=objc -func (w_ WindowDelegateWrapper) WindowDidMove(notification foundation.INotification) { - objc.Call[objc.Void](w_, objc.Sel("windowDidMove:"), objc.Ptr(notification)) +// [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:"), objc.Ptr(notification)) } -func (w_ WindowDelegateWrapper) HasWindowDidChangeScreen() bool { - return w_.RespondsToSelector(objc.Sel("windowDidChangeScreen:")) +func (w_ WindowDelegateObject) HasWindowWillStartLiveResize() bool { + return w_.RespondsToSelector(objc.Sel("windowWillStartLiveResize:")) } -// Tells the delegate that the window has changed screens. [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/1419267-windowdidchangescreen?language=objc -func (w_ WindowDelegateWrapper) WindowDidChangeScreen(notification foundation.INotification) { - objc.Call[objc.Void](w_, objc.Sel("windowDidChangeScreen:"), objc.Ptr(notification)) +// [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:"), objc.Ptr(notification)) } -func (w_ WindowDelegateWrapper) HasWindowDidEnterFullScreen() bool { - return w_.RespondsToSelector(objc.Sel("windowDidEnterFullScreen:")) +func (w_ WindowDelegateObject) HasWindowDidChangeOcclusionState() bool { + return w_.RespondsToSelector(objc.Sel("windowDidChangeOcclusionState:")) } -// The window has entered full-screen mode. [Full Topic] +// Tells the delegate that the window changed its occlusion state. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nswindowdelegate/1419116-windowdidenterfullscreen?language=objc -func (w_ WindowDelegateWrapper) WindowDidEnterFullScreen(notification foundation.INotification) { - objc.Call[objc.Void](w_, objc.Sel("windowDidEnterFullScreen:"), objc.Ptr(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:"), objc.Ptr(notification)) } -func (w_ WindowDelegateWrapper) HasWindowWillExitFullScreen() bool { - return w_.RespondsToSelector(objc.Sel("windowWillExitFullScreen:")) +func (w_ WindowDelegateObject) HasWindowDidFailToExitFullScreen() bool { + return w_.RespondsToSelector(objc.Sel("windowDidFailToExitFullScreen:")) } -// The window is about to exit full-screen mode. [Full Topic] +// Called if the window failed to exit full-screen mode. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nswindowdelegate/1419332-windowwillexitfullscreen?language=objc -func (w_ WindowDelegateWrapper) WindowWillExitFullScreen(notification foundation.INotification) { - objc.Call[objc.Void](w_, objc.Sel("windowWillExitFullScreen:"), objc.Ptr(notification)) +// [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:"), objc.Ptr(window)) } -func (w_ WindowDelegateWrapper) HasWindowWillUseStandardFrameDefaultFrame() bool { - return w_.RespondsToSelector(objc.Sel("windowWillUseStandardFrame:defaultFrame:")) +func (w_ WindowDelegateObject) HasWindowDidExitFullScreen() bool { + return w_.RespondsToSelector(objc.Sel("windowDidExitFullScreen:")) } -// Called by NSWindow’s zoom: method while determining the frame a window may be zoomed to. [Full Topic] +// The window has left full-screen mode. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nswindowdelegate/1419684-windowwillusestandardframe?language=objc -func (w_ WindowDelegateWrapper) WindowWillUseStandardFrameDefaultFrame(window IWindow, newFrame foundation.Rect) foundation.Rect { - rv := objc.Call[foundation.Rect](w_, objc.Sel("windowWillUseStandardFrame:defaultFrame:"), objc.Ptr(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:"), objc.Ptr(notification)) } -func (w_ WindowDelegateWrapper) HasWindowDidEnterVersionBrowser() bool { - return w_.RespondsToSelector(objc.Sel("windowDidEnterVersionBrowser:")) +func (w_ WindowDelegateObject) HasWindowWillEnterVersionBrowser() bool { + return w_.RespondsToSelector(objc.Sel("windowWillEnterVersionBrowser:")) } -// Tells the delegate that the window has entered version browsing. [Full Topic] +// Tells the delegate the window is about to enter version browsing. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nswindowdelegate/1419064-windowdidenterversionbrowser?language=objc -func (w_ WindowDelegateWrapper) WindowDidEnterVersionBrowser(notification foundation.INotification) { - objc.Call[objc.Void](w_, objc.Sel("windowDidEnterVersionBrowser:"), objc.Ptr(notification)) +// [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:"), objc.Ptr(notification)) } diff --git a/macos/appkit/window_restoration.gen.go b/macos/appkit/window_restoration_protocol.gen.go similarity index 57% rename from macos/appkit/window_restoration.gen.go rename to macos/appkit/window_restoration_protocol.gen.go index 4c079d86..6f81c31c 100644 --- a/macos/appkit/window_restoration.gen.go +++ b/macos/appkit/window_restoration_protocol.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package appkit @@ -12,7 +12,10 @@ import ( type PWindowRestoration interface { } -// A concrete type wrapper for the [PWindowRestoration] protocol. -type WindowRestorationWrapper struct { +// ensure impl type implements protocol interface +var _ PWindowRestoration = (*WindowRestorationObject)(nil) + +// A concrete type for the [PWindowRestoration] protocol. +type WindowRestorationObject struct { objc.Object } diff --git a/macos/appkit/window_tab.gen.go b/macos/appkit/window_tab.gen.go index 959d637b..ba8ad2f4 100644 --- a/macos/appkit/window_tab.gen.go +++ b/macos/appkit/window_tab.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package appkit @@ -19,12 +19,12 @@ type _WindowTabClass struct { // An interface definition for the [WindowTab] class. type IWindowTab interface { objc.IObject - ToolTip() string - SetToolTip(value string) - AttributedTitle() foundation.AttributedString - SetAttributedTitle(value foundation.IAttributedString) AccessoryView() View SetAccessoryView(value IView) + AttributedTitle() foundation.AttributedString + SetAttributedTitle(value foundation.IAttributedString) + ToolTip() string + SetToolTip(value string) Title() string SetTitle(value string) } @@ -47,10 +47,6 @@ func (wc _WindowTabClass) Alloc() WindowTab { return rv } -func WindowTab_Alloc() WindowTab { - return WindowTabClass.Alloc() -} - func (wc _WindowTabClass) New() WindowTab { rv := objc.Call[WindowTab](wc, objc.Sel("new")) rv.Autorelease() @@ -66,19 +62,19 @@ func (w_ WindowTab) Init() WindowTab { 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) 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:"), objc.Ptr(value)) } // The title for the window tab, specified as an attributed string. [Full Topic] @@ -96,19 +92,19 @@ func (w_ WindowTab) SetAttributedTitle(value foundation.IAttributedString) { objc.Call[objc.Void](w_, objc.Sel("setAttributedTitle:"), objc.Ptr(value)) } -// 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:"), objc.Ptr(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. [Full Topic] diff --git a/macos/appkit/window_tab_group.gen.go b/macos/appkit/window_tab_group.gen.go index 85ade129..9f6668a4 100644 --- a/macos/appkit/window_tab_group.gen.go +++ b/macos/appkit/window_tab_group.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package appkit @@ -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) - IsTabBarVisible() bool - SelectedWindow() Window - SetSelectedWindow(value IWindow) + AddWindow(window IWindow) Windows() []Window + Identifier() WindowTabbingIdentifier + IsTabBarVisible() bool IsOverviewVisible() bool SetOverviewVisible(value bool) - Identifier() WindowTabbingIdentifier + SelectedWindow() Window + SetSelectedWindow(value IWindow) } // A group of windows that display together as a single tabbed window. [Full Topic] @@ -48,10 +48,6 @@ func (wc _WindowTabGroupClass) Alloc() WindowTabGroup { return rv } -func WindowTabGroup_Alloc() WindowTabGroup { - return WindowTabGroupClass.Alloc() -} - func (wc _WindowTabGroupClass) New() WindowTabGroup { rv := objc.Call[WindowTabGroup](wc, objc.Sel("new")) rv.Autorelease() @@ -67,13 +63,6 @@ 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:"), objc.Ptr(window)) -} - // Removes a window from the tab group. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/appkit/nswindowtabgroup/2879459-removewindow?language=objc @@ -88,34 +77,34 @@ func (w_ WindowTabGroup) InsertWindowAtIndex(window IWindow, index int) { objc.Call[objc.Void](w_, objc.Sel("insertWindow:atIndex:"), objc.Ptr(window), index) } -// A Boolean value indicating whether the tabbed window group currently displays a tab bar. [Full Topic] +// Adds a window to the 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")) - return rv +// [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:"), objc.Ptr(window)) } -// The selected, or frontmost, window in the tab group. [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/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/2879458-windows?language=objc +func (w_ WindowTabGroup) Windows() []Window { + rv := objc.Call[[]Window](w_, objc.Sel("windows")) return rv } -// 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) SetSelectedWindow(value IWindow) { - objc.Call[objc.Void](w_, objc.Sel("setSelectedWindow:"), objc.Ptr(value)) +// [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 } -// A collection of the windows that are currently grouped together by this window 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/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/2879451-tabbarvisible?language=objc +func (w_ WindowTabGroup) IsTabBarVisible() bool { + rv := objc.Call[bool](w_, objc.Sel("isTabBarVisible")) return rv } @@ -134,10 +123,17 @@ func (w_ WindowTabGroup) SetOverviewVisible(value bool) { objc.Call[objc.Void](w_, objc.Sel("setOverviewVisible:"), value) } -// 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")) +// [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 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:"), objc.Ptr(value)) +} diff --git a/macos/appkit/workspace.gen.go b/macos/appkit/workspace.gen.go index 06788082..13741623 100644 --- a/macos/appkit/workspace.gen.go +++ b/macos/appkit/workspace.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package appkit @@ -20,47 +20,53 @@ type _WorkspaceClass struct { // An interface definition for the [Workspace] class. type IWorkspace interface { objc.IObject - 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 + SetDefaultApplicationAtURLToOpenFileAtURLCompletionHandler(applicationURL foundation.IURL, url foundation.IURL, completionHandler func(error foundation.Error)) + DuplicateURLsCompletionHandler(URLs []foundation.IURL, handler func(newURLs foundation.Dictionary, error foundation.Error)) URLForApplicationToOpenContentType(contentType uti.IType) foundation.URL - OpenURLConfigurationCompletionHandler(url foundation.IURL, configuration IWorkspaceOpenConfiguration, completionHandler func(app RunningApplication, error foundation.Error)) - RecycleURLsCompletionHandler(URLs []foundation.IURL, handler func(newURLs foundation.Dictionary, error foundation.Error)) - URLsForApplicationsToOpenContentType(contentType uti.IType) []foundation.URL - UnmountAndEjectDeviceAtURLError(url foundation.IURL, error foundation.IError) bool - DesktopImageOptionsForScreen(screen IScreen) map[WorkspaceDesktopImageOptionKey]objc.Object + OpenApplicationAtURLConfigurationCompletionHandler(applicationURL foundation.IURL, configuration IWorkspaceOpenConfiguration, completionHandler func(app RunningApplication, error foundation.Error)) + UnmountAndEjectDeviceAtPath(path string) bool 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 + 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 foundation.IError) bool - GetFileSystemInfoForPathIsRemovableIsWritableIsUnmountableDescriptionType(fullPath string, removableFlag *bool, writableFlag *bool, unmountableFlag *bool, description string, fileSystemType string) bool - UnmountAndEjectDeviceAtPath(path string) bool - HideOtherApplications() + URLsForApplicationsToOpenContentType(contentType uti.IType) []foundation.URL + ActivateFileViewerSelectingURLs(fileURLs []foundation.IURL) + ExtendPowerOffBy(requested int) int 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 + RecycleURLsCompletionHandler(URLs []foundation.IURL, handler func(newURLs foundation.Dictionary, error foundation.Error)) 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)) + 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 - ExtendPowerOffBy(requested int) int + 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)) + UnmountAndEjectDeviceAtURLError(url foundation.IURL, error foundation.IError) bool + HideOtherApplications() + ShowSearchResultsForQueryString(queryString string) bool + URLsForApplicationsWithBundleIdentifier(bundleIdentifier string) []foundation.URL + 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 + GetFileSystemInfoForPathIsRemovableIsWritableIsUnmountableDescriptionType(fullPath string, removableFlag *bool, writableFlag *bool, unmountableFlag *bool, description string, fileSystemType string) bool AccessibilityDisplayShouldIncreaseContrast() bool - FileLabels() []string - AccessibilityDisplayShouldReduceMotion() bool - FrontmostApplication() RunningApplication - FileLabelColors() []Color + AccessibilityDisplayShouldDifferentiateWithoutColor() bool AccessibilityDisplayShouldInvertColors() bool - IsVoiceOverEnabled() bool RunningApplications() []RunningApplication IsSwitchControlEnabled() bool MenuBarOwningApplication() RunningApplication + IsVoiceOverEnabled() bool NotificationCenter() foundation.NotificationCenter - AccessibilityDisplayShouldDifferentiateWithoutColor() bool + AccessibilityDisplayShouldReduceMotion() bool + FrontmostApplication() RunningApplication + FileLabels() []string + FileLabelColors() []Color + AccessibilityDisplayShouldReduceTransparency() bool } // A workspace that can launch other apps and perform a variety of file-handling services. [Full Topic] @@ -81,10 +87,6 @@ func (wc _WorkspaceClass) Alloc() Workspace { return rv } -func Workspace_Alloc() Workspace { - return WorkspaceClass.Alloc() -} - func (wc _WorkspaceClass) New() Workspace { rv := objc.Call[Workspace](wc, objc.Sel("new")) rv.Autorelease() @@ -100,50 +102,48 @@ func (w_ Workspace) Init() Workspace { return rv } -// Returns the URL for the app with the specified identifier. [Full Topic] +// [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) - return rv +// [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:"), objc.Ptr(applicationURL), objc.Ptr(url), completionHandler) } -// Opens one or more URLs asynchronously in the specified app using the provided options. [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/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, objc.Ptr(applicationURL), objc.Ptr(configuration), 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] +// [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:"), objc.Ptr(url)) +// [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:"), objc.Ptr(contentType)) return rv } -// Returns an image containing the icon for the specified files. [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/1525487-iconforfiles?language=objc -func (w_ Workspace) IconForFiles(fullPaths []string) Image { - rv := objc.Call[Image](w_, objc.Sel("iconForFiles:"), fullPaths) - 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:"), objc.Ptr(applicationURL), objc.Ptr(configuration), completionHandler) } -// Returns an image containing the icon for the specified file. [Full Topic] +// Unmounts and ejects the device at the specified path. [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) +// [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 } -// [Full Topic] +// Returns the URL for the desktop image for the given screen. [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:"), objc.Ptr(contentType)) +// [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:"), objc.Ptr(screen)) return rv } @@ -154,11 +154,27 @@ func (w_ Workspace) OpenURLConfigurationCompletionHandler(url foundation.IURL, c objc.Call[objc.Void](w_, objc.Sel("openURL:configuration:completionHandler:"), objc.Ptr(url), objc.Ptr(configuration), completionHandler) } -// Moves the specified URLs to the trash in the same manner as the Finder. [Full Topic] +// [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/3753000-urlsforapplicationstoopenurl?language=objc +func (w_ Workspace) URLsForApplicationsToOpenURL(url foundation.IURL) []foundation.URL { + rv := objc.Call[[]foundation.URL](w_, objc.Sel("URLsForApplicationsToOpenURL:"), objc.Ptr(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] +// +// [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 foundation.IError) bool { + rv := objc.Call[bool](w_, objc.Sel("setDesktopImageURL:forScreen:options:error:"), objc.Ptr(url), objc.Ptr(screen), options, objc.Ptr(error)) + return rv } // [Full Topic] @@ -169,120 +185,133 @@ func (w_ Workspace) URLsForApplicationsToOpenContentType(contentType uti.IType) return rv } -// Attempts to eject the volume mounted at the given path. [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/1530469-unmountandejectdeviceaturl?language=objc -func (w_ Workspace) UnmountAndEjectDeviceAtURLError(url foundation.IURL, error foundation.IError) bool { - rv := objc.Call[bool](w_, objc.Sel("unmountAndEjectDeviceAtURL:error:"), objc.Ptr(url), objc.Ptr(error)) - return rv +// [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) } -// Returns the desktop image options for the given screen. [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/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:"), objc.Ptr(screen)) +// [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 } -// Returns the URL for the desktop image for the given screen. [Full Topic] +// Requests authorization to perform a privileged file operation. [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:"), objc.Ptr(screen)) +// [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] +// +// [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) +} + +// Selects the file at the specified path. [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) return rv } // [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:"), objc.Ptr(applicationURL), objc.Ptr(url), completionHandler) +// [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:"), objc.Ptr(applicationURL), objc.Ptr(contentType), completionHandler) } -// Sets the icon for the file or directory at the specified path. [Full Topic] +// Opens the location at the specified URL. [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:"), objc.Ptr(image), fullPath, options) +// [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:"), objc.Ptr(url)) return rv } -// Sets the desktop image for the given screen to the image at the specified URL. [Full Topic] +// Returns an image containing the icon for the specified files. [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 foundation.IError) bool { - rv := objc.Call[bool](w_, objc.Sel("setDesktopImageURL:forScreen:options:error:"), objc.Ptr(url), objc.Ptr(screen), options, objc.Ptr(error)) +// [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 } -// Returns information about the file system at the specified path. [Full Topic] +// Returns the URL for the app with the specified identifier. [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 string, fileSystemType string) 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/1534053-urlforapplicationwithbundleident?language=objc +func (w_ Workspace) URLForApplicationWithBundleIdentifier(bundleIdentifier string) foundation.URL { + rv := objc.Call[foundation.URL](w_, objc.Sel("URLForApplicationWithBundleIdentifier:"), bundleIdentifier) return rv } -// Unmounts and ejects the device at the specified path. [Full Topic] +// Determines whether the specified path is a file package. [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/1529991-isfilepackageatpath?language=objc +func (w_ Workspace) IsFilePackageAtPath(fullPath string) bool { + rv := objc.Call[bool](w_, objc.Sel("isFilePackageAtPath:"), fullPath) return rv } -// Hides all applications other than the sender. [Full Topic] +// Returns an image containing the icon for the specified file. [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/1528158-iconforfile?language=objc +func (w_ Workspace) IconForFile(fullPath string) Image { + rv := objc.Call[Image](w_, objc.Sel("iconForFile:"), fullPath) + return rv } -// Requests authorization to perform a privileged file operation. [Full Topic] +// Returns an image containing the icon for the specified content type. [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) +// [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:"), objc.Ptr(contentType)) + return rv } // [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:"), objc.Ptr(url)) - return rv +// [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:"), objc.Ptr(applicationURL), objc.Ptr(url), completionHandler) } -// [Full Topic] +// Returns the desktop image options for the given screen. [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) +// [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:"), objc.Ptr(screen)) return rv } -// Determines whether the specified path is a file package. [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/1529991-isfilepackageatpath?language=objc -func (w_ Workspace) IsFilePackageAtPath(fullPath string) bool { - rv := objc.Call[bool](w_, objc.Sel("isFilePackageAtPath:"), fullPath) - return rv +// [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, objc.Ptr(applicationURL), objc.Ptr(configuration), completionHandler) } -// Selects the file at the specified path. [Full Topic] +// Attempts to eject the volume mounted at the given path. [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/1530469-unmountandejectdeviceaturl?language=objc +func (w_ Workspace) UnmountAndEjectDeviceAtURLError(url foundation.IURL, error foundation.IError) bool { + rv := objc.Call[bool](w_, objc.Sel("unmountAndEjectDeviceAtURL:error:"), objc.Ptr(url), objc.Ptr(error)) return rv } -// Activates the Finder, and opens one or more windows selecting the specified files. [Full Topic] +// Hides all applications other than the sender. [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) +// [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")) } // Displays a Spotlight search results window in Finder for the specified query string. [Full Topic] @@ -293,33 +322,42 @@ func (w_ Workspace) ShowSearchResultsForQueryString(queryString string) bool { return rv } -// Launches the app at the specified URL and asynchronously reports back on the app's status. [Full Topic] +// [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:"), objc.Ptr(applicationURL), objc.Ptr(configuration), completionHandler) +// [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 } -// Duplicates the specified URLS asynchronously in the same manner as the Finder. [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/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/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:"), objc.Ptr(image), fullPath, options) + return rv } -// Returns an image containing the icon for the specified content type. [Full Topic] +// [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:"), objc.Ptr(contentType)) +// [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:"), objc.Ptr(applicationURL), urlScheme, completionHandler) +} + +// Returns the URL to the default app that would be opened. [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:"), objc.Ptr(url)) return rv } -// Requests the system wait for the specified amount of time before turning off the power or logging out the user. [Full Topic] +// Returns information about the file system at the specified 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/1526987-getfilesysteminfoforpath?language=objc +func (w_ Workspace) GetFileSystemInfoForPathIsRemovableIsWritableIsUnmountableDescriptionType(fullPath string, removableFlag *bool, writableFlag *bool, unmountableFlag *bool, description string, fileSystemType string) bool { + rv := objc.Call[bool](w_, objc.Sel("getFileSystemInfoForPath:isRemovable:isWritable:isUnmountable:description:type:"), fullPath, removableFlag, writableFlag, unmountableFlag, description, fileSystemType) return rv } @@ -331,43 +369,43 @@ func (w_ Workspace) AccessibilityDisplayShouldIncreaseContrast() bool { return rv } -// The array of file labels, returned as strings. [Full Topic] +// 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/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/1524656-accessibilitydisplayshoulddiffer?language=objc +func (w_ Workspace) AccessibilityDisplayShouldDifferentiateWithoutColor() bool { + rv := objc.Call[bool](w_, objc.Sel("accessibilityDisplayShouldDifferentiateWithoutColor")) return rv } -// A Boolean value that indicates whether the accessibility option to reduce motion is in an enabled state. [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/1644069-accessibilitydisplayshouldreduce?language=objc -func (w_ Workspace) AccessibilityDisplayShouldReduceMotion() bool { - rv := objc.Call[bool](w_, objc.Sel("accessibilityDisplayShouldReduceMotion")) +// [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 } -// Returns the frontmost app, which is the app that receives key events. [Full Topic] +// Returns an array of running apps. [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")) +// [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 } -// A Boolean value that indicates whether the accessibility option to invert colors is in an enabled state. [Full Topic] +// Returns the app that owns the currently displayed menu bar. [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/1525848-menubarowningapplication?language=objc +func (w_ Workspace) MenuBarOwningApplication() RunningApplication { + rv := objc.Call[RunningApplication](w_, objc.Sel("menuBarOwningApplication")) return rv } @@ -379,57 +417,65 @@ func (w_ Workspace) IsVoiceOverEnabled() bool { return rv } -// The shared workspace object. [Full Topic] +// The notification center for workspace notifications. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/appkit/nsworkspace/1530344-sharedworkspace?language=objc -func (wc _WorkspaceClass) SharedWorkspace() Workspace { - rv := objc.Call[Workspace](wc, objc.Sel("sharedWorkspace")) +// [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 } -// The shared workspace object. [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/1530344-sharedworkspace?language=objc -func Workspace_SharedWorkspace() Workspace { - return WorkspaceClass.SharedWorkspace() +// [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 shared workspace object. [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/1530344-sharedworkspace?language=objc +func (wc _WorkspaceClass) SharedWorkspace() Workspace { + rv := objc.Call[Workspace](wc, objc.Sel("sharedWorkspace")) return rv } -// Returns the app that owns the currently displayed menu bar. [Full Topic] +// The shared workspace object. [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/1530344-sharedworkspace?language=objc +func Workspace_SharedWorkspace() Workspace { + return WorkspaceClass.SharedWorkspace() +} + +// The array of file labels, returned as strings. [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")) return rv } -// The notification center for workspace notifications. [Full Topic] +// The array of colors for the file labels. [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")) +// [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 } -// A Boolean value that indicates whether the app avoids conveying information through color alone. [Full Topic] +// A Boolean value that indicates whether the app avoids using semitransparent backgrounds. [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/1533006-accessibilitydisplayshouldreduce?language=objc +func (w_ Workspace) AccessibilityDisplayShouldReduceTransparency() bool { + rv := objc.Call[bool](w_, objc.Sel("accessibilityDisplayShouldReduceTransparency")) return rv } diff --git a/macos/appkit/workspace_authorization.gen.go b/macos/appkit/workspace_authorization.gen.go index 0a9e19e2..a365ccef 100644 --- a/macos/appkit/workspace_authorization.gen.go +++ b/macos/appkit/workspace_authorization.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package appkit @@ -38,10 +38,6 @@ func (wc _WorkspaceAuthorizationClass) Alloc() WorkspaceAuthorization { return rv } -func WorkspaceAuthorization_Alloc() WorkspaceAuthorization { - return WorkspaceAuthorizationClass.Alloc() -} - func (wc _WorkspaceAuthorizationClass) New() WorkspaceAuthorization { rv := objc.Call[WorkspaceAuthorization](wc, objc.Sel("new")) rv.Autorelease() diff --git a/macos/appkit/workspace_open_configuration.gen.go b/macos/appkit/workspace_open_configuration.gen.go index c54a36c8..28306cb8 100644 --- a/macos/appkit/workspace_open_configuration.gen.go +++ b/macos/appkit/workspace_open_configuration.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package appkit @@ -21,28 +21,28 @@ type IWorkspaceOpenConfiguration interface { objc.IObject Arguments() []string SetArguments(value []string) - Hides() bool - SetHides(value bool) - AllowsRunningApplicationSubstitution() bool - SetAllowsRunningApplicationSubstitution(value bool) - IsForPrinting() bool - SetForPrinting(value bool) + CreatesNewApplicationInstance() bool + SetCreatesNewApplicationInstance(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) + 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) 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] @@ -75,10 +75,6 @@ func (wc _WorkspaceOpenConfigurationClass) Alloc() WorkspaceOpenConfiguration { return rv } -func WorkspaceOpenConfiguration_Alloc() WorkspaceOpenConfiguration { - return WorkspaceOpenConfigurationClass.Alloc() -} - func (wc _WorkspaceOpenConfigurationClass) New() WorkspaceOpenConfiguration { rv := objc.Call[WorkspaceOpenConfiguration](wc, objc.Sel("new")) rv.Autorelease() @@ -109,34 +105,49 @@ func (w_ WorkspaceOpenConfiguration) SetArguments(value []string) { objc.Call[objc.Void](w_, objc.Sel("setArguments:"), value) } -// A Boolean value indicating whether you want the app to hide itself after it launches. [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/3172713-hides?language=objc -func (w_ WorkspaceOpenConfiguration) Hides() bool { - rv := objc.Call[bool](w_, objc.Sel("hides")) +// [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 app to hide itself after it launches. [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/3172713-hides?language=objc -func (w_ WorkspaceOpenConfiguration) SetHides(value bool) { - objc.Call[objc.Void](w_, objc.Sel("setHides:"), 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) } -// 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 to hide all apps except the one that launched. [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/3172714-hidesothers?language=objc +func (w_ WorkspaceOpenConfiguration) HidesOthers() bool { + rv := objc.Call[bool](w_, objc.Sel("hidesOthers")) 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 to hide all apps except the one that launched. [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/3172714-hidesothers?language=objc +func (w_ WorkspaceOpenConfiguration) SetHidesOthers(value bool) { + objc.Call[objc.Void](w_, objc.Sel("setHidesOthers:"), value) +} + +// 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/3172715-promptsuserifneeded?language=objc +func (w_ WorkspaceOpenConfiguration) PromptsUserIfNeeded() bool { + rv := objc.Call[bool](w_, objc.Sel("promptsUserIfNeeded")) + return rv +} + +// 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/3172715-promptsuserifneeded?language=objc +func (w_ WorkspaceOpenConfiguration) SetPromptsUserIfNeeded(value bool) { + objc.Call[objc.Void](w_, objc.Sel("setPromptsUserIfNeeded:"), value) } // A Boolean value indicating whether you want to print the contents of documents and URLs instead of opening them. [Full Topic] @@ -154,34 +165,19 @@ func (w_ WorkspaceOpenConfiguration) SetForPrinting(value bool) { objc.Call[objc.Void](w_, objc.Sel("setForPrinting:"), value) } -// 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/3172714-hidesothers?language=objc -func (w_ WorkspaceOpenConfiguration) HidesOthers() bool { - rv := objc.Call[bool](w_, objc.Sel("hidesOthers")) - return rv -} - -// 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/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] +// 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/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/3172705-addstorecentitems?language=objc +func (w_ WorkspaceOpenConfiguration) AddsToRecentItems() bool { + rv := objc.Call[bool](w_, objc.Sel("addsToRecentItems")) 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 add the app or documents to the Recent Items menu. [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/3172705-addstorecentitems?language=objc +func (w_ WorkspaceOpenConfiguration) SetAddsToRecentItems(value bool) { + objc.Call[objc.Void](w_, objc.Sel("setAddsToRecentItems:"), value) } // A Boolean value indicating whether the system activates the app and brings it to the foreground. [Full Topic] @@ -199,34 +195,49 @@ func (w_ WorkspaceOpenConfiguration) SetActivates(value bool) { objc.Call[objc.Void](w_, objc.Sel("setActivates:"), value) } -// A Boolean value indicating whether to display errors, authentication requests, or other UI elements to the user. [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/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/3172713-hides?language=objc +func (w_ WorkspaceOpenConfiguration) Hides() bool { + rv := objc.Call[bool](w_, objc.Sel("hides")) return rv } -// A Boolean value indicating whether to display errors, authentication requests, or other UI elements to the user. [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/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/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 want the system to launch a new instance of the app. [Full Topic] +// 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/3172710-createsnewapplicationinstance?language=objc -func (w_ WorkspaceOpenConfiguration) CreatesNewApplicationInstance() bool { - rv := objc.Call[bool](w_, objc.Sel("createsNewApplicationInstance")) +// [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 want the system to launch a new instance of the app. [Full Topic] +// 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/3172710-createsnewapplicationinstance?language=objc -func (w_ WorkspaceOpenConfiguration) SetCreatesNewApplicationInstance(value bool) { - objc.Call[objc.Void](w_, objc.Sel("setCreatesNewApplicationInstance:"), value) +// [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 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/3375728-allowsrunningapplicationsubstitu?language=objc +func (w_ WorkspaceOpenConfiguration) AllowsRunningApplicationSubstitution() bool { + rv := objc.Call[bool](w_, objc.Sel("allowsRunningApplicationSubstitution")) + 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] +// +// [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) } // The first Apple event to send to the new app. [Full Topic] @@ -258,18 +269,3 @@ 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/aggregate_asset_download_task.gen.go b/macos/avfoundation/aggregate_asset_download_task.gen.go index 61e0817b..9406a1c4 100644 --- a/macos/avfoundation/aggregate_asset_download_task.gen.go +++ b/macos/avfoundation/aggregate_asset_download_task.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package avfoundation @@ -40,10 +40,6 @@ func (ac _AggregateAssetDownloadTaskClass) Alloc() AggregateAssetDownloadTask { return rv } -func AggregateAssetDownloadTask_Alloc() AggregateAssetDownloadTask { - return AggregateAssetDownloadTaskClass.Alloc() -} - func (ac _AggregateAssetDownloadTaskClass) New() AggregateAssetDownloadTask { rv := objc.Call[AggregateAssetDownloadTask](ac, objc.Sel("new")) rv.Autorelease() diff --git a/macos/avfoundation/aliastypes.gen.go b/macos/avfoundation/aliastypes.gen.go index 755a6bec..0c49839c 100644 --- a/macos/avfoundation/aliastypes.gen.go +++ b/macos/avfoundation/aliastypes.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package avfoundation diff --git a/macos/avfoundation/asset.gen.go b/macos/avfoundation/asset.gen.go index 18bf8936..2474b363 100644 --- a/macos/avfoundation/asset.gen.go +++ b/macos/avfoundation/asset.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package avfoundation @@ -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)) - MinimumTimeOffsetFromLive() coremedia.Time - Lyrics() string - Tracks() []AssetTrack - IsReadable() bool - AvailableMediaCharacteristicsWithMediaSelectionOptions() []MediaCharacteristic - PreferredVolume() float64 + AvailableMetadataFormats() []MetadataFormat + CreationDate() MetadataItem + PreferredMediaSelection() MediaSelection + HasProtectedContent() bool + CommonMetadata() []MetadataItem CanContainFragments() bool - AvailableChapterLocales() []foundation.Locale - IsComposable() bool - ProvidesPreciseDurationAndTiming() bool + Tracks() []AssetTrack Metadata() []MetadataItem - PreferredRate() float64 - AvailableMetadataFormats() []MetadataFormat + PreferredTransform() coregraphics.AffineTransform OverallDurationHint() coremedia.Time - CreationDate() MetadataItem + AvailableMediaCharacteristicsWithMediaSelectionOptions() []MediaCharacteristic + PreferredRate() float64 + Duration() coremedia.Time TrackGroups() []AssetTrackGroup + IsPlayable() bool + ProvidesPreciseDurationAndTiming() bool + AvailableChapterLocales() []foundation.Locale ReferenceRestrictions() AssetReferenceRestrictions + PreferredVolume() float64 + Lyrics() string + ContainsFragments() bool + IsExportable() bool + IsComposable() bool AllMediaSelections() []MediaSelection - HasProtectedContent() bool - Duration() coremedia.Time - PreferredMediaSelection() MediaSelection + MinimumTimeOffsetFromLive() coremedia.Time + IsReadable() bool IsCompatibleWithAirPlayVideo() bool - IsExportable() bool - ContainsFragments() bool - PreferredTransform() coregraphics.AffineTransform - IsPlayable() bool - CommonMetadata() []MetadataItem } // An object that models timed audiovisual media. [Full Topic] @@ -89,10 +89,6 @@ func (ac _AssetClass) Alloc() Asset { return rv } -func Asset_Alloc() Asset { - return AssetClass.Alloc() -} - func (ac _AssetClass) New() Asset { rv := objc.Call[Asset](ac, objc.Sel("new")) rv.Autorelease() @@ -108,13 +104,6 @@ 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 @@ -122,18 +111,18 @@ func (a_ Asset) CancelLoading() { objc.Call[objc.Void](a_, objc.Sel("cancelLoading")) } -// 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 an array of metadata items that the asset contains for the specified format. [Full Topic] +// 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/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) +// [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 track that contains the specified identifier. [Full Topic] @@ -143,18 +132,11 @@ func (a_ Asset) LoadTrackWithTrackIDCompletionHandler(trackID objc.IObject, comp objc.Call[objc.Void](a_, objc.Sel("loadTrackWithTrackID:completionHandler:"), objc.Ptr(trackID), completionHandler) } -// Loads tracks that contain media of a specified type. [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) -} - -// Loads chapter metadata with a locale that best matches the list of preferred languages. [Full Topic] +// Loads tracks that contain media of a specified characteristic. [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/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 a media selection group that contains one or more options with the specified media characteristic. [Full Topic] @@ -164,6 +146,20 @@ 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 @@ -171,51 +167,43 @@ func (a_ Asset) LoadChapterMetadataGroupsWithTitleLocaleContainingItemsWithCommo objc.Call[objc.Void](a_, objc.Sel("loadChapterMetadataGroupsWithTitleLocale:containingItemsWithCommonKeys:completionHandler:"), objc.Ptr(locale), commonKeys, completionHandler) } -// 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/3197641-minimumtimeoffsetfromlive?language=objc -func (a_ Asset) MinimumTimeOffsetFromLive() coremedia.Time { - rv := objc.Call[coremedia.Time](a_, objc.Sel("minimumTimeOffsetFromLive")) - return rv -} - -// The lyrics of the asset in a language suitable for the current locale. [Full Topic] +// The metadata formats this asset contains. [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/1385823-availablemetadataformats?language=objc +func (a_ Asset) AvailableMetadataFormats() []MetadataFormat { + rv := objc.Call[[]MetadataFormat](a_, objc.Sel("availableMetadataFormats")) return rv } -// The tracks an asset contains. [Full Topic] +// A metadata item that indicates the asset’s creation date. [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/1386342-creationdate?language=objc +func (a_ Asset) CreationDate() MetadataItem { + rv := objc.Call[MetadataItem](a_, objc.Sel("creationDate")) return rv } -// A Boolean value that indicates whether you can extract the asset’s media data using an asset reader. [Full Topic] +// The default media selections for this asset’s media selection groups. [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/1386122-preferredmediaselection?language=objc +func (a_ Asset) PreferredMediaSelection() MediaSelection { + rv := objc.Call[MediaSelection](a_, objc.Sel("preferredMediaSelection")) return rv } -// An array of media characteristics for which a media selection option is available. [Full Topic] +// A Boolean value that indicates whether the asset contains protected content. [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/1389223-hasprotectedcontent?language=objc +func (a_ Asset) HasProtectedContent() bool { + rv := objc.Call[bool](a_, objc.Sel("hasProtectedContent")) return rv } -// The asset’s volume preference for playing its audible media. [Full Topic] +// 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/1390457-preferredvolume?language=objc -func (a_ Asset) PreferredVolume() float64 { - rv := objc.Call[float64](a_, objc.Sel("preferredVolume")) +// [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 } @@ -227,27 +215,11 @@ func (a_ Asset) CanContainFragments() bool { return rv } -// The locales of the asset’s chapter metadata. [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")) - return rv -} - -// 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/1386129-composable?language=objc -func (a_ Asset) IsComposable() bool { - rv := objc.Call[bool](a_, objc.Sel("isComposable")) - return rv -} - -// A Boolean value that indicates whether the asset provides precise duration and timing. [Full Topic] +// The tracks an asset contains. [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/1387953-tracks?language=objc +func (a_ Asset) Tracks() []AssetTrack { + rv := objc.Call[[]AssetTrack](a_, objc.Sel("tracks")) return rv } @@ -259,19 +231,11 @@ func (a_ Asset) Metadata() []MetadataItem { return rv } -// The asset’s rate preference for playing its media. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avasset/1389912-preferredrate?language=objc -func (a_ Asset) PreferredRate() float64 { - rv := objc.Call[float64](a_, objc.Sel("preferredRate")) - return rv -} - -// The metadata formats this asset contains. [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/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/1385906-preferredtransform?language=objc +func (a_ Asset) PreferredTransform() coregraphics.AffineTransform { + rv := objc.Call[coregraphics.AffineTransform](a_, objc.Sel("preferredTransform")) return rv } @@ -283,11 +247,27 @@ func (a_ Asset) OverallDurationHint() coremedia.Time { return rv } -// A metadata item that indicates the asset’s creation date. [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/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/1389433-availablemediacharacteristicswit?language=objc +func (a_ Asset) AvailableMediaCharacteristicsWithMediaSelectionOptions() []MediaCharacteristic { + rv := objc.Call[[]MediaCharacteristic](a_, objc.Sel("availableMediaCharacteristicsWithMediaSelectionOptions")) + return rv +} + +// The asset’s rate preference for playing its media. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avasset/1389912-preferredrate?language=objc +func (a_ Asset) PreferredRate() float64 { + rv := objc.Call[float64](a_, objc.Sel("preferredRate")) + 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 } @@ -299,51 +279,59 @@ func (a_ Asset) TrackGroups() []AssetTrackGroup { return rv } -// The restrictions that an asset places on how it resolves references to external media. [Full Topic] +// A Boolean value that indicates whether the asset has playable content. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avasset/1390489-referencerestrictions?language=objc -func (a_ Asset) ReferenceRestrictions() AssetReferenceRestrictions { - rv := objc.Call[AssetReferenceRestrictions](a_, objc.Sel("referenceRestrictions")) +// [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 array of available media selections for this asset. [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/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/1390850-providesprecisedurationandtiming?language=objc +func (a_ Asset) ProvidesPreciseDurationAndTiming() bool { + rv := objc.Call[bool](a_, objc.Sel("providesPreciseDurationAndTiming")) return rv } -// A Boolean value that indicates whether the asset contains protected content. [Full Topic] +// The locales of the asset’s chapter metadata. [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/1388228-availablechapterlocales?language=objc +func (a_ Asset) AvailableChapterLocales() []foundation.Locale { + rv := objc.Call[[]foundation.Locale](a_, objc.Sel("availableChapterLocales")) return rv } -// A time value that indicates the asset’s duration. [Full Topic] +// The restrictions that an asset places on how it resolves references to external media. [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")) +// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avasset/1390489-referencerestrictions?language=objc +func (a_ Asset) ReferenceRestrictions() AssetReferenceRestrictions { + rv := objc.Call[AssetReferenceRestrictions](a_, objc.Sel("referenceRestrictions")) return rv } -// The default media selections for this asset’s media selection groups. [Full Topic] +// The asset’s volume preference for playing its audible media. [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/1390457-preferredvolume?language=objc +func (a_ Asset) PreferredVolume() float64 { + rv := objc.Call[float64](a_, objc.Sel("preferredVolume")) return rv } -// A Boolean value that indicates whether the asset is compatible with AirPlay Video. [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/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/1388104-lyrics?language=objc +func (a_ Asset) Lyrics() string { + rv := objc.Call[string](a_, objc.Sel("lyrics")) + return rv +} + +// 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/1385589-containsfragments?language=objc +func (a_ Asset) ContainsFragments() bool { + rv := objc.Call[bool](a_, objc.Sel("containsFragments")) return rv } @@ -355,34 +343,42 @@ func (a_ Asset) IsExportable() bool { return rv } -// A Boolean value that indicates whether at least one movie fragment extends the asset. [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/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/1386129-composable?language=objc +func (a_ Asset) IsComposable() bool { + rv := objc.Call[bool](a_, objc.Sel("isComposable")) return rv } -// The asset’s transform preference to apply to its visual content during presentation or processing. [Full Topic] +// The array of available media selections for this asset. [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/2890796-allmediaselections?language=objc +func (a_ Asset) AllMediaSelections() []MediaSelection { + rv := objc.Call[[]MediaSelection](a_, objc.Sel("allMediaSelections")) return rv } -// A Boolean value that indicates whether the asset has playable content. [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/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/3197641-minimumtimeoffsetfromlive?language=objc +func (a_ Asset) MinimumTimeOffsetFromLive() coremedia.Time { + rv := objc.Call[coremedia.Time](a_, objc.Sel("minimumTimeOffsetFromLive")) return rv } -// The metadata items an asset contains for common metadata identifiers that provide a value. [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/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/1390475-readable?language=objc +func (a_ Asset) IsReadable() bool { + rv := objc.Call[bool](a_, objc.Sel("isReadable")) + return rv +} + +// A Boolean value that indicates whether the asset is compatible with AirPlay Video. [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")) return rv } diff --git a/macos/avfoundation/asset_cache.gen.go b/macos/avfoundation/asset_cache.gen.go index 6b7802a5..22962407 100644 --- a/macos/avfoundation/asset_cache.gen.go +++ b/macos/avfoundation/asset_cache.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package avfoundation @@ -40,10 +40,6 @@ func (ac _AssetCacheClass) Alloc() AssetCache { return rv } -func AssetCache_Alloc() AssetCache { - return AssetCacheClass.Alloc() -} - func (ac _AssetCacheClass) New() AssetCache { rv := objc.Call[AssetCache](ac, objc.Sel("new")) rv.Autorelease() diff --git a/macos/avfoundation/asset_download_configuration.gen.go b/macos/avfoundation/asset_download_configuration.gen.go index 954279dc..f3c7dd78 100644 --- a/macos/avfoundation/asset_download_configuration.gen.go +++ b/macos/avfoundation/asset_download_configuration.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package avfoundation @@ -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) - PrimaryContentConfiguration() AssetDownloadContentConfiguration + OptimizesAuxiliaryContentConfigurations() bool + SetOptimizesAuxiliaryContentConfigurations(value bool) } // An object that provides the configuration for a download task. [Full Topic] @@ -57,10 +57,6 @@ func (ac _AssetDownloadConfigurationClass) Alloc() AssetDownloadConfiguration { return rv } -func AssetDownloadConfiguration_Alloc() AssetDownloadConfiguration { - return AssetDownloadConfigurationClass.Alloc() -} - func (ac _AssetDownloadConfigurationClass) New() AssetDownloadConfiguration { rv := objc.Call[AssetDownloadConfiguration](ac, objc.Sel("new")) rv.Autorelease() @@ -76,21 +72,6 @@ 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 @@ -106,6 +87,14 @@ 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 @@ -121,10 +110,17 @@ func (a_ AssetDownloadConfiguration) SetArtworkData(value []byte) { objc.Call[objc.Void](a_, objc.Sel("setArtworkData:"), value) } -// The configuration for the primary content that the task downloads. [Full Topic] +// A Boolean value that indicates whether the task optimizes auxiliary content selection. [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")) +// [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) +} diff --git a/macos/avfoundation/asset_download_content_configuration.gen.go b/macos/avfoundation/asset_download_content_configuration.gen.go index 00bc0f21..5b3dcc84 100644 --- a/macos/avfoundation/asset_download_content_configuration.gen.go +++ b/macos/avfoundation/asset_download_content_configuration.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package avfoundation @@ -42,10 +42,6 @@ func (ac _AssetDownloadContentConfigurationClass) Alloc() AssetDownloadContentCo return rv } -func AssetDownloadContentConfiguration_Alloc() AssetDownloadContentConfiguration { - return AssetDownloadContentConfigurationClass.Alloc() -} - func (ac _AssetDownloadContentConfigurationClass) New() AssetDownloadContentConfiguration { rv := objc.Call[AssetDownloadContentConfiguration](ac, objc.Sel("new")) rv.Autorelease() diff --git a/macos/avfoundation/asset_download_delegate.gen.go b/macos/avfoundation/asset_download_delegate.gen.go index 37db861f..e2431480 100644 --- a/macos/avfoundation/asset_download_delegate.gen.go +++ b/macos/avfoundation/asset_download_delegate.gen.go @@ -1,8 +1,9 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package avfoundation import ( + "github.com/progrium/macdriver/macos/coremedia" "github.com/progrium/macdriver/macos/foundation" "github.com/progrium/macdriver/objc" ) @@ -11,16 +12,97 @@ 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 { - _URLSessionAggregateAssetDownloadTaskWillDownloadToURL func(session foundation.URLSession, aggregateAssetDownloadTask AggregateAssetDownloadTask, location foundation.URL) + _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 +} + +// 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 } @@ -38,19 +120,139 @@ 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 +} -// A concrete type wrapper for the [PAssetDownloadDelegate] protocol. -type AssetDownloadDelegateWrapper struct { +// 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) + +// A concrete type for the [PAssetDownloadDelegate] protocol. +type AssetDownloadDelegateObject struct { objc.Object } -func (a_ AssetDownloadDelegateWrapper) HasURLSessionAggregateAssetDownloadTaskWillDownloadToURL() bool { +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:"), objc.Ptr(session), objc.Ptr(assetDownloadTask), objc.Ptr(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:"), objc.Ptr(session), objc.Ptr(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:"), objc.Ptr(session), objc.Ptr(aggregateAssetDownloadTask), timeRange, loadedTimeRanges, timeRangeExpectedToLoad, objc.Ptr(mediaSelection)) +} + +func (a_ AssetDownloadDelegateObject) HasURLSessionAggregateAssetDownloadTaskWillDownloadToURL() bool { return a_.RespondsToSelector(objc.Sel("URLSession:aggregateAssetDownloadTask:willDownloadToURL:")) } // Tells the delegate the final location of the asset when the download completes. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/avfoundation/avassetdownloaddelegate/2897241-urlsession?language=objc -func (a_ AssetDownloadDelegateWrapper) URLSessionAggregateAssetDownloadTaskWillDownloadToURL(session foundation.IURLSession, aggregateAssetDownloadTask IAggregateAssetDownloadTask, location foundation.IURL) { +func (a_ AssetDownloadDelegateObject) URLSessionAggregateAssetDownloadTaskWillDownloadToURL(session foundation.URLSession, aggregateAssetDownloadTask AggregateAssetDownloadTask, location foundation.URL) { objc.Call[objc.Void](a_, objc.Sel("URLSession:aggregateAssetDownloadTask:willDownloadToURL:"), objc.Ptr(session), objc.Ptr(aggregateAssetDownloadTask), objc.Ptr(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:"), objc.Ptr(session), objc.Ptr(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:"), objc.Ptr(session), objc.Ptr(aggregateAssetDownloadTask), objc.Ptr(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:"), objc.Ptr(session), objc.Ptr(assetDownloadTask), objc.Ptr(location)) +} diff --git a/macos/avfoundation/asset_download_storage_management_policy.gen.go b/macos/avfoundation/asset_download_storage_management_policy.gen.go index 647c8008..3b126c59 100644 --- a/macos/avfoundation/asset_download_storage_management_policy.gen.go +++ b/macos/avfoundation/asset_download_storage_management_policy.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package avfoundation @@ -41,10 +41,6 @@ func (ac _AssetDownloadStorageManagementPolicyClass) Alloc() AssetDownloadStorag return rv } -func AssetDownloadStorageManagementPolicy_Alloc() AssetDownloadStorageManagementPolicy { - return AssetDownloadStorageManagementPolicyClass.Alloc() -} - func (ac _AssetDownloadStorageManagementPolicyClass) New() AssetDownloadStorageManagementPolicy { rv := objc.Call[AssetDownloadStorageManagementPolicy](ac, objc.Sel("new")) rv.Autorelease() diff --git a/macos/avfoundation/asset_download_storage_manager.gen.go b/macos/avfoundation/asset_download_storage_manager.gen.go index 21ca5ed5..626b965b 100644 --- a/macos/avfoundation/asset_download_storage_manager.gen.go +++ b/macos/avfoundation/asset_download_storage_manager.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package avfoundation @@ -41,10 +41,6 @@ func (ac _AssetDownloadStorageManagerClass) Alloc() AssetDownloadStorageManager return rv } -func AssetDownloadStorageManager_Alloc() AssetDownloadStorageManager { - return AssetDownloadStorageManagerClass.Alloc() -} - func (ac _AssetDownloadStorageManagerClass) New() AssetDownloadStorageManager { rv := objc.Call[AssetDownloadStorageManager](ac, objc.Sel("new")) rv.Autorelease() diff --git a/macos/avfoundation/asset_download_task.gen.go b/macos/avfoundation/asset_download_task.gen.go index 4825324f..b804dfde 100644 --- a/macos/avfoundation/asset_download_task.gen.go +++ b/macos/avfoundation/asset_download_task.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package avfoundation @@ -42,10 +42,6 @@ func (ac _AssetDownloadTaskClass) Alloc() AssetDownloadTask { return rv } -func AssetDownloadTask_Alloc() AssetDownloadTask { - return AssetDownloadTaskClass.Alloc() -} - func (ac _AssetDownloadTaskClass) New() AssetDownloadTask { rv := objc.Call[AssetDownloadTask](ac, objc.Sel("new")) rv.Autorelease() diff --git a/macos/avfoundation/asset_download_url_session.gen.go b/macos/avfoundation/asset_download_url_session.gen.go index 500b3fe2..e622ba97 100644 --- a/macos/avfoundation/asset_download_url_session.gen.go +++ b/macos/avfoundation/asset_download_url_session.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package avfoundation @@ -19,8 +19,9 @@ type _AssetDownloadURLSessionClass struct { // An interface definition for the [AssetDownloadURLSession] class. type IAssetDownloadURLSession interface { foundation.IURLSession - AggregateAssetDownloadTaskWithURLAssetMediaSelectionsAssetTitleAssetArtworkDataOptions(URLAsset IURLAsset, mediaSelections []IMediaSelection, title string, artworkData []byte, options map[string]objc.IObject) AggregateAssetDownloadTask 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 } // A URL session that creates and executes asset download tasks. [Full Topic] @@ -41,10 +42,6 @@ func (ac _AssetDownloadURLSessionClass) Alloc() AssetDownloadURLSession { return rv } -func AssetDownloadURLSession_Alloc() AssetDownloadURLSession { - return AssetDownloadURLSessionClass.Alloc() -} - func (ac _AssetDownloadURLSessionClass) New() AssetDownloadURLSession { rv := objc.Call[AssetDownloadURLSession](ac, objc.Sel("new")) rv.Autorelease() @@ -60,6 +57,30 @@ 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:"), objc.Ptr(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:"), objc.Ptr(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:"), objc.Ptr(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 @@ -90,19 +111,3 @@ 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:"), objc.Ptr(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:"), objc.Ptr(downloadConfiguration)) - return rv -} diff --git a/macos/avfoundation/asset_export_session.gen.go b/macos/avfoundation/asset_export_session.gen.go index c0156556..d3b045d8 100644 --- a/macos/avfoundation/asset_export_session.gen.go +++ b/macos/avfoundation/asset_export_session.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package avfoundation @@ -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)) - CancelExport() - EstimateMaximumDurationWithCompletionHandler(handler func(estimatedMaximumDuration coremedia.Time, error foundation.Error)) - Error() foundation.Error + DirectoryForTemporaryFiles() foundation.URL + SetDirectoryForTemporaryFiles(value foundation.IURL) + Metadata() []MetadataItem + SetMetadata(value []IMetadataItem) + Asset() Asset + AudioMix() AudioMix + SetAudioMix(value IAudioMix) + Progress() float64 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 - CanPerformMultiplePassesOverSourceMediaData() bool - SetCanPerformMultiplePassesOverSourceMediaData(value bool) - CustomVideoCompositor() VideoCompositingWrapper OutputFileType() FileType SetOutputFileType(value FileType) + CanPerformMultiplePassesOverSourceMediaData() bool + SetCanPerformMultiplePassesOverSourceMediaData(value bool) + Status() AssetExportSessionStatus + Error() foundation.Error 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() float64 - 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,18 +71,6 @@ func AssetExportSessionFrom(ptr unsafe.Pointer) AssetExportSession { } } -func (ac _AssetExportSessionClass) ExportSessionWithAssetPresetName(asset IAsset, presetName string) AssetExportSession { - rv := objc.Call[AssetExportSession](ac, objc.Sel("exportSessionWithAsset:presetName:"), objc.Ptr(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:"), objc.Ptr(asset), presetName) return rv @@ -97,13 +85,21 @@ func NewAssetExportSessionWithAssetPresetName(asset IAsset, presetName string) A return instance } -func (ac _AssetExportSessionClass) Alloc() AssetExportSession { - rv := objc.Call[AssetExportSession](ac, objc.Sel("alloc")) +func (ac _AssetExportSessionClass) ExportSessionWithAssetPresetName(asset IAsset, presetName string) AssetExportSession { + rv := objc.Call[AssetExportSession](ac, objc.Sel("exportSessionWithAsset:presetName:"), objc.Ptr(asset), presetName) return rv } -func AssetExportSession_Alloc() AssetExportSession { - return AssetExportSessionClass.Alloc() +// 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 } func (ac _AssetExportSessionClass) New() AssetExportSession { @@ -121,6 +117,20 @@ 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 @@ -135,13 +145,6 @@ 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 @@ -156,6 +159,13 @@ 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 @@ -171,25 +181,64 @@ func AssetExportSession_AllExportPresets() []string { return AssetExportSessionClass.AllExportPresets() } -// Cancels the execution of an export session. [Full Topic] +// A directory suitable to store temporary files that the export process generates. [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")) +// [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 } -// Starts estimating the maximum duration of the export while considering the asset, preset, and time range configuration of the export session. [Full Topic] +// A directory suitable to store temporary files that the export process generates. [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) +// [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:"), objc.Ptr(value)) } -// An optional error object. [Full Topic] +// The metadata an export session writes to the output container file. [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/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] +// +// [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:"), objc.Ptr(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() float64 { + rv := objc.Call[float64](a_, objc.Sel("progress")) return rv } @@ -208,6 +257,29 @@ func (a_ AssetExportSession) SetMetadataItemFilter(value IMetadataItemFilter) { objc.Call[objc.Void](a_, objc.Sel("setMetadataItemFilter:"), objc.Ptr(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:"), objc.Ptr(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 @@ -223,6 +295,21 @@ func (a_ AssetExportSession) SetVideoComposition(value IVideoComposition) { objc.Call[objc.Void](a_, objc.Sel("setVideoComposition:"), objc.Ptr(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 @@ -238,21 +325,6 @@ func (a_ AssetExportSession) SetFileLengthLimit(value int64) { objc.Call[objc.Void](a_, objc.Sel("setFileLengthLimit:"), value) } -// 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 -func (a_ AssetExportSession) AudioTimePitchAlgorithm() AudioTimePitchAlgorithm { - rv := objc.Call[AudioTimePitchAlgorithm](a_, objc.Sel("audioTimePitchAlgorithm")) - 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 -func (a_ AssetExportSession) SetAudioTimePitchAlgorithm(value AudioTimePitchAlgorithm) { - objc.Call[objc.Void](a_, objc.Sel("setAudioTimePitchAlgorithm:"), 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 @@ -261,19 +333,19 @@ func (a_ AssetExportSession) SupportedFileTypes() []FileType { return rv } -// The metadata an export session writes to the output container file. [Full Topic] +// A processing algorithm for managing audio pitch for scaled audio edits. [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")) +// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avassetexportsession/1385835-audiotimepitchalgorithm?language=objc +func (a_ AssetExportSession) AudioTimePitchAlgorithm() AudioTimePitchAlgorithm { + rv := objc.Call[AudioTimePitchAlgorithm](a_, objc.Sel("audioTimePitchAlgorithm")) return rv } -// The metadata an export session writes to the output container file. [Full Topic] +// A processing algorithm for managing audio pitch for scaled audio edits. [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) +// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avassetexportsession/1385835-audiotimepitchalgorithm?language=objc +func (a_ AssetExportSession) SetAudioTimePitchAlgorithm(value AudioTimePitchAlgorithm) { + objc.Call[objc.Void](a_, objc.Sel("setAudioTimePitchAlgorithm:"), value) } // The name of the preset that the asset export session uses. [Full Topic] @@ -284,29 +356,6 @@ func (a_ AssetExportSession) PresetName() string { 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] -// -// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avassetexportsession/1388797-canperformmultiplepassesoversour?language=objc -func (a_ AssetExportSession) CanPerformMultiplePassesOverSourceMediaData() bool { - rv := objc.Call[bool](a_, objc.Sel("canPerformMultiplePassesOverSourceMediaData")) - 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] -// -// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avassetexportsession/1388797-canperformmultiplepassesoversour?language=objc -func (a_ AssetExportSession) SetCanPerformMultiplePassesOverSourceMediaData(value bool) { - objc.Call[objc.Void](a_, objc.Sel("setCanPerformMultiplePassesOverSourceMediaData:"), 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() VideoCompositingWrapper { - rv := objc.Call[VideoCompositingWrapper](a_, objc.Sel("customVideoCompositor")) - 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 @@ -322,72 +371,19 @@ 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 -func (a_ AssetExportSession) ShouldOptimizeForNetworkUse() bool { - rv := objc.Call[bool](a_, objc.Sel("shouldOptimizeForNetworkUse")) - return rv -} - -// 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 -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:"), objc.Ptr(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] +// A Boolean value that indicates whether the export session can perform multiple passes over the source media to achieve better results. [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")) +// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avassetexportsession/1388797-canperformmultiplepassesoversour?language=objc +func (a_ AssetExportSession) CanPerformMultiplePassesOverSourceMediaData() bool { + rv := objc.Call[bool](a_, objc.Sel("canPerformMultiplePassesOverSourceMediaData")) 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:"), objc.Ptr(value)) -} - -// A value that indicates the progress of the export. [Full Topic] +// A Boolean value that indicates whether the export session can perform multiple passes over the source media to achieve better results. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avassetexportsession/1387530-progress?language=objc -func (a_ AssetExportSession) Progress() float64 { - rv := objc.Call[float64](a_, objc.Sel("progress")) - return rv +// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avassetexportsession/1388797-canperformmultiplepassesoversour?language=objc +func (a_ AssetExportSession) SetCanPerformMultiplePassesOverSourceMediaData(value bool) { + objc.Call[objc.Void](a_, objc.Sel("setCanPerformMultiplePassesOverSourceMediaData:"), value) } // The status of the export session. [Full Topic] @@ -398,25 +394,25 @@ func (a_ AssetExportSession) Status() AssetExportSessionStatus { return rv } -// An asset that a session exports. [Full Topic] +// An optional error object. [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")) +// [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 } -// A URL where an asset export session writes its output. [Full Topic] +// A Boolean value that indicates whether to optimize the movie for network use. [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")) +// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avassetexportsession/1390593-shouldoptimizefornetworkuse?language=objc +func (a_ AssetExportSession) ShouldOptimizeForNetworkUse() bool { + rv := objc.Call[bool](a_, objc.Sel("shouldOptimizeForNetworkUse")) return rv } -// A URL where an asset export session writes its output. [Full Topic] +// A Boolean value that indicates whether to optimize the movie for network use. [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:"), objc.Ptr(value)) +// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avassetexportsession/1390593-shouldoptimizefornetworkuse?language=objc +func (a_ AssetExportSession) SetShouldOptimizeForNetworkUse(value bool) { + objc.Call[objc.Void](a_, objc.Sel("setShouldOptimizeForNetworkUse:"), value) } diff --git a/macos/avfoundation/asset_image_generator.gen.go b/macos/avfoundation/asset_image_generator.gen.go index 5f35db84..c383341b 100644 --- a/macos/avfoundation/asset_image_generator.gen.go +++ b/macos/avfoundation/asset_image_generator.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package avfoundation @@ -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() VideoCompositingWrapper - RequestedTimeToleranceBefore() coremedia.Time - SetRequestedTimeToleranceBefore(value coremedia.Time) - Asset() Asset } // An object that generates images from a video asset. [Full Topic] @@ -52,18 +52,6 @@ func AssetImageGeneratorFrom(ptr unsafe.Pointer) AssetImageGenerator { } } -func (ac _AssetImageGeneratorClass) AssetImageGeneratorWithAsset(asset IAsset) AssetImageGenerator { - rv := objc.Call[AssetImageGenerator](ac, objc.Sel("assetImageGeneratorWithAsset:"), objc.Ptr(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:"), objc.Ptr(asset)) return rv @@ -78,13 +66,21 @@ func NewAssetImageGeneratorWithAsset(asset IAsset) AssetImageGenerator { return instance } -func (ac _AssetImageGeneratorClass) Alloc() AssetImageGenerator { - rv := objc.Call[AssetImageGenerator](ac, objc.Sel("alloc")) +func (ac _AssetImageGeneratorClass) AssetImageGeneratorWithAsset(asset IAsset) AssetImageGenerator { + rv := objc.Call[AssetImageGenerator](ac, objc.Sel("assetImageGeneratorWithAsset:"), objc.Ptr(asset)) return rv } -func AssetImageGenerator_Alloc() AssetImageGenerator { - return AssetImageGeneratorClass.Alloc() +// 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 } func (ac _AssetImageGeneratorClass) New() AssetImageGenerator { @@ -116,6 +112,14 @@ 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 @@ -146,36 +150,29 @@ func (a_ AssetImageGenerator) SetVideoComposition(value IVideoComposition) { objc.Call[objc.Void](a_, objc.Sel("setVideoComposition:"), objc.Ptr(value)) } -// 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) ApertureMode() AssetImageGeneratorApertureMode { - rv := objc.Call[AssetImageGeneratorApertureMode](a_, objc.Sel("apertureMode")) +// [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 } -// 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) 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) AppliesPreferredTrackTransform() bool { - rv := objc.Call[bool](a_, objc.Sel("appliesPreferredTrackTransform")) +// [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 } -// 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 @@ -191,33 +188,32 @@ func (a_ AssetImageGenerator) SetRequestedTimeToleranceAfter(value coremedia.Tim objc.Call[objc.Void](a_, objc.Sel("setRequestedTimeToleranceAfter:"), value) } -// A custom video compositor to use when extracting images from assets with multiple video tracks. [Full Topic] +// Specifies the aperture mode for the generated image. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avassetimagegenerator/1386469-customvideocompositor?language=objc -func (a_ AssetImageGenerator) CustomVideoCompositor() VideoCompositingWrapper { - rv := objc.Call[VideoCompositingWrapper](a_, objc.Sel("customVideoCompositor")) +// [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) RequestedTimeToleranceBefore() coremedia.Time { - rv := objc.Call[coremedia.Time](a_, objc.Sel("requestedTimeToleranceBefore")) - return rv +// [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) } -// A maximum length of time before the requested time to allow image generation to occur. [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/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/1390616-appliespreferredtracktransform?language=objc +func (a_ AssetImageGenerator) AppliesPreferredTrackTransform() bool { + rv := objc.Call[bool](a_, objc.Sel("appliesPreferredTrackTransform")) + return rv } -// 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")) - return rv +// [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) } diff --git a/macos/avfoundation/asset_reader.gen.go b/macos/avfoundation/asset_reader.gen.go index 01e87746..e4550090 100644 --- a/macos/avfoundation/asset_reader.gen.go +++ b/macos/avfoundation/asset_reader.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package avfoundation @@ -21,15 +21,15 @@ type _AssetReaderClass struct { type IAssetReader interface { objc.IObject StartReading() bool - CancelReading() AddOutput(output IAssetReaderOutput) + CancelReading() CanAddOutput(output IAssetReaderOutput) bool - Error() foundation.Error - Outputs() []AssetReaderOutput + Status() AssetReaderStatus 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] @@ -76,10 +76,6 @@ func (ac _AssetReaderClass) Alloc() AssetReader { return rv } -func AssetReader_Alloc() AssetReader { - return AssetReaderClass.Alloc() -} - func (ac _AssetReaderClass) New() AssetReader { rv := objc.Call[AssetReader](ac, objc.Sel("new")) rv.Autorelease() @@ -103,13 +99,6 @@ func (a_ AssetReader) StartReading() bool { return rv } -// 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 -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 @@ -117,6 +106,13 @@ func (a_ AssetReader) AddOutput(output IAssetReaderOutput) { objc.Call[objc.Void](a_, objc.Sel("addOutput:"), objc.Ptr(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 +func (a_ AssetReader) CancelReading() { + objc.Call[objc.Void](a_, objc.Sel("cancelReading")) +} + // 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 @@ -125,19 +121,11 @@ func (a_ AssetReader) CanAddOutput(output IAssetReaderOutput) bool { return rv } -// An error that describes the reason for a failure. [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")) - return rv -} - -// The outputs from which you read media data. [Full Topic] +// The status of reading sample buffers from the asset. [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/1390211-status?language=objc +func (a_ AssetReader) Status() AssetReaderStatus { + rv := objc.Call[AssetReaderStatus](a_, objc.Sel("status")) return rv } @@ -156,14 +144,6 @@ func (a_ AssetReader) SetTimeRange(value coremedia.TimeRange) { objc.Call[objc.Void](a_, objc.Sel("setTimeRange:"), value) } -// The status of reading sample buffers from the asset. [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")) - return rv -} - // The asset from which to read media data. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/avfoundation/avassetreader/1389128-asset?language=objc @@ -171,3 +151,19 @@ 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] +// +// [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 +} diff --git a/macos/avfoundation/asset_reader_audio_mix_output.gen.go b/macos/avfoundation/asset_reader_audio_mix_output.gen.go index b221ed8c..77da7823 100644 --- a/macos/avfoundation/asset_reader_audio_mix_output.gen.go +++ b/macos/avfoundation/asset_reader_audio_mix_output.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package avfoundation @@ -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] @@ -70,10 +70,6 @@ func (ac _AssetReaderAudioMixOutputClass) Alloc() AssetReaderAudioMixOutput { return rv } -func AssetReaderAudioMixOutput_Alloc() AssetReaderAudioMixOutput { - return AssetReaderAudioMixOutputClass.Alloc() -} - func (ac _AssetReaderAudioMixOutputClass) New() AssetReaderAudioMixOutput { rv := objc.Call[AssetReaderAudioMixOutput](ac, objc.Sel("new")) rv.Autorelease() @@ -89,6 +85,14 @@ 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 @@ -126,11 +130,3 @@ func (a_ AssetReaderAudioMixOutput) AudioMix() AudioMix { func (a_ AssetReaderAudioMixOutput) SetAudioMix(value IAudioMix) { objc.Call[objc.Void](a_, objc.Sel("setAudioMix:"), objc.Ptr(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_caption_validation_handling.gen.go b/macos/avfoundation/asset_reader_caption_validation_handling_protocol.gen.go similarity index 63% rename from macos/avfoundation/asset_reader_caption_validation_handling.gen.go rename to macos/avfoundation/asset_reader_caption_validation_handling_protocol.gen.go index 76bfb7bf..3b2b7fd4 100644 --- a/macos/avfoundation/asset_reader_caption_validation_handling.gen.go +++ b/macos/avfoundation/asset_reader_caption_validation_handling_protocol.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package avfoundation @@ -15,18 +15,21 @@ type PAssetReaderCaptionValidationHandling interface { HasCaptionAdaptorDidVendCaptionSkippingUnsupportedSourceSyntaxElements() bool } -// A concrete type wrapper for the [PAssetReaderCaptionValidationHandling] protocol. -type AssetReaderCaptionValidationHandlingWrapper struct { +// ensure impl type implements protocol interface +var _ PAssetReaderCaptionValidationHandling = (*AssetReaderCaptionValidationHandlingObject)(nil) + +// A concrete type for the [PAssetReaderCaptionValidationHandling] protocol. +type AssetReaderCaptionValidationHandlingObject struct { objc.Object } -func (a_ AssetReaderCaptionValidationHandlingWrapper) HasCaptionAdaptorDidVendCaptionSkippingUnsupportedSourceSyntaxElements() bool { +func (a_ AssetReaderCaptionValidationHandlingObject) HasCaptionAdaptorDidVendCaptionSkippingUnsupportedSourceSyntaxElements() bool { return a_.RespondsToSelector(objc.Sel("captionAdaptor:didVendCaption:skippingUnsupportedSourceSyntaxElements:")) } // Tells the delegate that the adaptor ignored one or more syntax elements when it created the caption object. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/avfoundation/avassetreadercaptionvalidationhandling/3752792-captionadaptor?language=objc -func (a_ AssetReaderCaptionValidationHandlingWrapper) CaptionAdaptorDidVendCaptionSkippingUnsupportedSourceSyntaxElements(adaptor IAssetReaderOutputCaptionAdaptor, caption ICaption, syntaxElements []string) { +func (a_ AssetReaderCaptionValidationHandlingObject) CaptionAdaptorDidVendCaptionSkippingUnsupportedSourceSyntaxElements(adaptor AssetReaderOutputCaptionAdaptor, caption Caption, syntaxElements []string) { objc.Call[objc.Void](a_, objc.Sel("captionAdaptor:didVendCaption:skippingUnsupportedSourceSyntaxElements:"), objc.Ptr(adaptor), objc.Ptr(caption), syntaxElements) } diff --git a/macos/avfoundation/asset_reader_output.gen.go b/macos/avfoundation/asset_reader_output.gen.go index 533fd0e4..c738beb8 100644 --- a/macos/avfoundation/asset_reader_output.gen.go +++ b/macos/avfoundation/asset_reader_output.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package avfoundation @@ -20,14 +20,14 @@ type _AssetReaderOutputClass struct { // An interface definition for the [AssetReaderOutput] class. type IAssetReaderOutput interface { objc.IObject - ResetForReadingTimeRanges(timeRanges []foundation.IValue) CopyNextSampleBuffer() coremedia.SampleBufferRef + ResetForReadingTimeRanges(timeRanges []foundation.IValue) 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] @@ -48,10 +48,6 @@ func (ac _AssetReaderOutputClass) Alloc() AssetReaderOutput { return rv } -func AssetReaderOutput_Alloc() AssetReaderOutput { - return AssetReaderOutputClass.Alloc() -} - func (ac _AssetReaderOutputClass) New() AssetReaderOutput { rv := objc.Call[AssetReaderOutput](ac, objc.Sel("new")) rv.Autorelease() @@ -67,13 +63,6 @@ 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 @@ -82,6 +71,13 @@ 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 @@ -89,6 +85,21 @@ 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 @@ -111,18 +122,3 @@ 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 fa84207e..3f40eba6 100644 --- a/macos/avfoundation/asset_reader_output_caption_adaptor.gen.go +++ b/macos/avfoundation/asset_reader_output_caption_adaptor.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package avfoundation @@ -18,10 +18,10 @@ type _AssetReaderOutputCaptionAdaptorClass struct { // An interface definition for the [AssetReaderOutputCaptionAdaptor] class. type IAssetReaderOutputCaptionAdaptor interface { objc.IObject - CaptionsNotPresentInPreviousGroupsInCaptionGroup(captionGroup ICaptionGroup) []Caption NextCaptionGroup() CaptionGroup + CaptionsNotPresentInPreviousGroupsInCaptionGroup(captionGroup ICaptionGroup) []Caption AssetReaderTrackOutput() AssetReaderTrackOutput - ValidationDelegate() AssetReaderCaptionValidationHandlingWrapper + ValidationDelegate() AssetReaderCaptionValidationHandlingObject SetValidationDelegate(value PAssetReaderCaptionValidationHandling) SetValidationDelegateObject(valueObject objc.IObject) } @@ -39,6 +39,18 @@ func AssetReaderOutputCaptionAdaptorFrom(ptr unsafe.Pointer) AssetReaderOutputCa } } +func (ac _AssetReaderOutputCaptionAdaptorClass) AssetReaderOutputCaptionAdaptorWithAssetReaderTrackOutput(trackOutput IAssetReaderTrackOutput) AssetReaderOutputCaptionAdaptor { + rv := objc.Call[AssetReaderOutputCaptionAdaptor](ac, objc.Sel("assetReaderOutputCaptionAdaptorWithAssetReaderTrackOutput:"), objc.Ptr(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:"), objc.Ptr(trackOutput)) return rv @@ -53,27 +65,11 @@ func NewAssetReaderOutputCaptionAdaptorWithAssetReaderTrackOutput(trackOutput IA return instance } -func (ac _AssetReaderOutputCaptionAdaptorClass) AssetReaderOutputCaptionAdaptorWithAssetReaderTrackOutput(trackOutput IAssetReaderTrackOutput) AssetReaderOutputCaptionAdaptor { - rv := objc.Call[AssetReaderOutputCaptionAdaptor](ac, objc.Sel("assetReaderOutputCaptionAdaptorWithAssetReaderTrackOutput:"), objc.Ptr(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 } -func AssetReaderOutputCaptionAdaptor_Alloc() AssetReaderOutputCaptionAdaptor { - return AssetReaderOutputCaptionAdaptorClass.Alloc() -} - func (ac _AssetReaderOutputCaptionAdaptorClass) New() AssetReaderOutputCaptionAdaptor { rv := objc.Call[AssetReaderOutputCaptionAdaptor](ac, objc.Sel("new")) rv.Autorelease() @@ -89,14 +85,6 @@ func (a_ AssetReaderOutputCaptionAdaptor) Init() AssetReaderOutputCaptionAdaptor 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 -func (a_ AssetReaderOutputCaptionAdaptor) CaptionsNotPresentInPreviousGroupsInCaptionGroup(captionGroup ICaptionGroup) []Caption { - rv := objc.Call[[]Caption](a_, objc.Sel("captionsNotPresentInPreviousGroupsInCaptionGroup:"), objc.Ptr(captionGroup)) - return rv -} - // Returns the next caption group. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/avfoundation/avassetreaderoutputcaptionadaptor/3752798-nextcaptiongroup?language=objc @@ -105,6 +93,14 @@ func (a_ AssetReaderOutputCaptionAdaptor) NextCaptionGroup() CaptionGroup { 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 +func (a_ AssetReaderOutputCaptionAdaptor) CaptionsNotPresentInPreviousGroupsInCaptionGroup(captionGroup ICaptionGroup) []Caption { + rv := objc.Call[[]Caption](a_, objc.Sel("captionsNotPresentInPreviousGroupsInCaptionGroup:"), objc.Ptr(captionGroup)) + return rv +} + // The associated asset reader track output. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/avfoundation/avassetreaderoutputcaptionadaptor/3752795-assetreadertrackoutput?language=objc @@ -116,8 +112,8 @@ func (a_ AssetReaderOutputCaptionAdaptor) AssetReaderTrackOutput() AssetReaderTr // A delegate object that handles callbacks to the caption adaptor. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/avfoundation/avassetreaderoutputcaptionadaptor/3752799-validationdelegate?language=objc -func (a_ AssetReaderOutputCaptionAdaptor) ValidationDelegate() AssetReaderCaptionValidationHandlingWrapper { - rv := objc.Call[AssetReaderCaptionValidationHandlingWrapper](a_, objc.Sel("validationDelegate")) +func (a_ AssetReaderOutputCaptionAdaptor) ValidationDelegate() AssetReaderCaptionValidationHandlingObject { + rv := objc.Call[AssetReaderCaptionValidationHandlingObject](a_, objc.Sel("validationDelegate")) return rv } diff --git a/macos/avfoundation/asset_reader_output_metadata_adaptor.gen.go b/macos/avfoundation/asset_reader_output_metadata_adaptor.gen.go index bc522dd2..85e04854 100644 --- a/macos/avfoundation/asset_reader_output_metadata_adaptor.gen.go +++ b/macos/avfoundation/asset_reader_output_metadata_adaptor.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package avfoundation @@ -66,10 +66,6 @@ func (ac _AssetReaderOutputMetadataAdaptorClass) Alloc() AssetReaderOutputMetada return rv } -func AssetReaderOutputMetadataAdaptor_Alloc() AssetReaderOutputMetadataAdaptor { - return AssetReaderOutputMetadataAdaptorClass.Alloc() -} - func (ac _AssetReaderOutputMetadataAdaptorClass) New() AssetReaderOutputMetadataAdaptor { rv := objc.Call[AssetReaderOutputMetadataAdaptor](ac, objc.Sel("new")) rv.Autorelease() diff --git a/macos/avfoundation/asset_reader_sample_reference_output.gen.go b/macos/avfoundation/asset_reader_sample_reference_output.gen.go index f6b76381..4d2746f5 100644 --- a/macos/avfoundation/asset_reader_sample_reference_output.gen.go +++ b/macos/avfoundation/asset_reader_sample_reference_output.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package avfoundation @@ -34,18 +34,6 @@ func AssetReaderSampleReferenceOutputFrom(ptr unsafe.Pointer) AssetReaderSampleR } } -func (ac _AssetReaderSampleReferenceOutputClass) AssetReaderSampleReferenceOutputWithTrack(track IAssetTrack) AssetReaderSampleReferenceOutput { - rv := objc.Call[AssetReaderSampleReferenceOutput](ac, objc.Sel("assetReaderSampleReferenceOutputWithTrack:"), objc.Ptr(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:"), objc.Ptr(track)) return rv @@ -60,13 +48,21 @@ func NewAssetReaderSampleReferenceOutputWithTrack(track IAssetTrack) AssetReader return instance } -func (ac _AssetReaderSampleReferenceOutputClass) Alloc() AssetReaderSampleReferenceOutput { - rv := objc.Call[AssetReaderSampleReferenceOutput](ac, objc.Sel("alloc")) +func (ac _AssetReaderSampleReferenceOutputClass) AssetReaderSampleReferenceOutputWithTrack(track IAssetTrack) AssetReaderSampleReferenceOutput { + rv := objc.Call[AssetReaderSampleReferenceOutput](ac, objc.Sel("assetReaderSampleReferenceOutputWithTrack:"), objc.Ptr(track)) return rv } -func AssetReaderSampleReferenceOutput_Alloc() AssetReaderSampleReferenceOutput { - return AssetReaderSampleReferenceOutputClass.Alloc() +// 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 } func (ac _AssetReaderSampleReferenceOutputClass) New() AssetReaderSampleReferenceOutput { diff --git a/macos/avfoundation/asset_reader_track_output.gen.go b/macos/avfoundation/asset_reader_track_output.gen.go index 79745970..25b35350 100644 --- a/macos/avfoundation/asset_reader_track_output.gen.go +++ b/macos/avfoundation/asset_reader_track_output.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package avfoundation @@ -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] @@ -68,10 +68,6 @@ func (ac _AssetReaderTrackOutputClass) Alloc() AssetReaderTrackOutput { return rv } -func AssetReaderTrackOutput_Alloc() AssetReaderTrackOutput { - return AssetReaderTrackOutputClass.Alloc() -} - func (ac _AssetReaderTrackOutputClass) New() AssetReaderTrackOutput { rv := objc.Call[AssetReaderTrackOutput](ac, objc.Sel("new")) rv.Autorelease() @@ -87,6 +83,14 @@ 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 @@ -109,11 +113,3 @@ 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 daf9ae17..b011f393 100644 --- a/macos/avfoundation/asset_reader_video_composition_output.gen.go +++ b/macos/avfoundation/asset_reader_video_composition_output.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package avfoundation @@ -21,8 +21,8 @@ type IAssetReaderVideoCompositionOutput interface { VideoComposition() VideoComposition SetVideoComposition(value IVideoComposition) VideoSettings() map[string]objc.Object - CustomVideoCompositor() VideoCompositingWrapper VideoTracks() []AssetTrack + CustomVideoCompositor() VideoCompositingObject } // An object that reads composited video frames from one or more tracks of an asset. [Full Topic] @@ -38,6 +38,18 @@ 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 @@ -52,27 +64,11 @@ 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 } -func AssetReaderVideoCompositionOutput_Alloc() AssetReaderVideoCompositionOutput { - return AssetReaderVideoCompositionOutputClass.Alloc() -} - func (ac _AssetReaderVideoCompositionOutputClass) New() AssetReaderVideoCompositionOutput { rv := objc.Call[AssetReaderVideoCompositionOutput](ac, objc.Sel("new")) rv.Autorelease() @@ -111,14 +107,6 @@ func (a_ AssetReaderVideoCompositionOutput) VideoSettings() map[string]objc.Obje return rv } -// A custom video compositor for the output. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avassetreadervideocompositionoutput/1388310-customvideocompositor?language=objc -func (a_ AssetReaderVideoCompositionOutput) CustomVideoCompositor() VideoCompositingWrapper { - rv := objc.Call[VideoCompositingWrapper](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 @@ -126,3 +114,11 @@ 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 +func (a_ AssetReaderVideoCompositionOutput) CustomVideoCompositor() VideoCompositingObject { + rv := objc.Call[VideoCompositingObject](a_, objc.Sel("customVideoCompositor")) + return rv +} diff --git a/macos/avfoundation/asset_resource_loader.gen.go b/macos/avfoundation/asset_resource_loader.gen.go index 435d1519..5ef55727 100644 --- a/macos/avfoundation/asset_resource_loader.gen.go +++ b/macos/avfoundation/asset_resource_loader.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package avfoundation @@ -23,7 +23,7 @@ type IAssetResourceLoader interface { SetDelegateObjectQueue(delegateObject objc.IObject, delegateQueue dispatch.Queue) PreloadsEligibleContentKeys() bool SetPreloadsEligibleContentKeys(value bool) - Delegate() AssetResourceLoaderDelegateWrapper + Delegate() AssetResourceLoaderDelegateObject DelegateQueue() dispatch.Queue } @@ -45,10 +45,6 @@ func (ac _AssetResourceLoaderClass) Alloc() AssetResourceLoader { return rv } -func AssetResourceLoader_Alloc() AssetResourceLoader { - return AssetResourceLoaderClass.Alloc() -} - func (ac _AssetResourceLoaderClass) New() AssetResourceLoader { rv := objc.Call[AssetResourceLoader](ac, objc.Sel("new")) rv.Autorelease() @@ -97,8 +93,8 @@ func (a_ AssetResourceLoader) SetPreloadsEligibleContentKeys(value bool) { // The delegate object to use when handling resource requests. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/avfoundation/avassetresourceloader/1387913-delegate?language=objc -func (a_ AssetResourceLoader) Delegate() AssetResourceLoaderDelegateWrapper { - rv := objc.Call[AssetResourceLoaderDelegateWrapper](a_, objc.Sel("delegate")) +func (a_ AssetResourceLoader) Delegate() AssetResourceLoaderDelegateObject { + rv := objc.Call[AssetResourceLoaderDelegateObject](a_, objc.Sel("delegate")) return rv } diff --git a/macos/avfoundation/asset_resource_loader_delegate.gen.go b/macos/avfoundation/asset_resource_loader_delegate.gen.go index f3d2bbce..18b556e8 100644 --- a/macos/avfoundation/asset_resource_loader_delegate.gen.go +++ b/macos/avfoundation/asset_resource_loader_delegate.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package avfoundation @@ -11,16 +11,70 @@ 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 { - _ResourceLoaderDidCancelAuthenticationChallenge func(resourceLoader AssetResourceLoader, authenticationChallenge foundation.URLAuthenticationChallenge) + _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 +} + +// 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 } @@ -38,19 +92,103 @@ 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 +} -// A concrete type wrapper for the [PAssetResourceLoaderDelegate] protocol. -type AssetResourceLoaderDelegateWrapper struct { +// 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) + +// A concrete type for the [PAssetResourceLoaderDelegate] protocol. +type AssetResourceLoaderDelegateObject struct { objc.Object } -func (a_ AssetResourceLoaderDelegateWrapper) HasResourceLoaderDidCancelAuthenticationChallenge() bool { +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:"), objc.Ptr(resourceLoader), objc.Ptr(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:"), objc.Ptr(resourceLoader), objc.Ptr(loadingRequest)) +} + +func (a_ AssetResourceLoaderDelegateObject) HasResourceLoaderDidCancelAuthenticationChallenge() bool { return a_.RespondsToSelector(objc.Sel("resourceLoader:didCancelAuthenticationChallenge:")) } // Informs the delegate that a prior authentication challenge has been cancelled. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/avfoundation/avassetresourceloaderdelegate/1387929-resourceloader?language=objc -func (a_ AssetResourceLoaderDelegateWrapper) ResourceLoaderDidCancelAuthenticationChallenge(resourceLoader IAssetResourceLoader, authenticationChallenge foundation.IURLAuthenticationChallenge) { +func (a_ AssetResourceLoaderDelegateObject) ResourceLoaderDidCancelAuthenticationChallenge(resourceLoader AssetResourceLoader, authenticationChallenge foundation.URLAuthenticationChallenge) { objc.Call[objc.Void](a_, objc.Sel("resourceLoader:didCancelAuthenticationChallenge:"), objc.Ptr(resourceLoader), objc.Ptr(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:"), objc.Ptr(resourceLoader), objc.Ptr(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:"), objc.Ptr(resourceLoader), objc.Ptr(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 844c97a1..d74dd15c 100644 --- a/macos/avfoundation/asset_resource_loading_content_information_request.gen.go +++ b/macos/avfoundation/asset_resource_loading_content_information_request.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package avfoundation @@ -19,15 +19,15 @@ type _AssetResourceLoadingContentInformationRequestClass struct { // An interface definition for the [AssetResourceLoadingContentInformationRequest] class. type IAssetResourceLoadingContentInformationRequest interface { objc.IObject - RenewalDate() foundation.Date - SetRenewalDate(value foundation.IDate) - ContentLength() int64 - SetContentLength(value int64) IsByteRangeAccessSupported() bool SetByteRangeAccessSupported(value bool) + ContentLength() int64 + SetContentLength(value int64) + AllowedContentTypes() []string + RenewalDate() foundation.Date + SetRenewalDate(value foundation.IDate) 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] @@ -48,10 +48,6 @@ func (ac _AssetResourceLoadingContentInformationRequestClass) Alloc() AssetResou return rv } -func AssetResourceLoadingContentInformationRequest_Alloc() AssetResourceLoadingContentInformationRequest { - return AssetResourceLoadingContentInformationRequestClass.Alloc() -} - func (ac _AssetResourceLoadingContentInformationRequestClass) New() AssetResourceLoadingContentInformationRequest { rv := objc.Call[AssetResourceLoadingContentInformationRequest](ac, objc.Sel("new")) rv.Autorelease() @@ -67,19 +63,19 @@ func (a_ AssetResourceLoadingContentInformationRequest) Init() AssetResourceLoad 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:"), objc.Ptr(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 length, in bytes, of the requested resource. [Full Topic] @@ -97,19 +93,27 @@ func (a_ AssetResourceLoadingContentInformationRequest) SetContentLength(value i objc.Call[objc.Void](a_, objc.Sel("setContentLength:"), value) } -// A Boolean value that indicates whether random access to arbitrary ranges of bytes of the resource is supported. [Full Topic] +// 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/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/2936886-allowedcontenttypes?language=objc +func (a_ AssetResourceLoadingContentInformationRequest) AllowedContentTypes() []string { + rv := objc.Call[[]string](a_, objc.Sel("allowedContentTypes")) 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) RenewalDate() foundation.Date { + rv := objc.Call[foundation.Date](a_, objc.Sel("renewalDate")) + 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] +// +// [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:"), objc.Ptr(value)) } // The UTI that specifies the type of data contained by the requested resource. [Full Topic] @@ -126,11 +130,3 @@ 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 d913bb2b..34149ca7 100644 --- a/macos/avfoundation/asset_resource_loading_data_request.gen.go +++ b/macos/avfoundation/asset_resource_loading_data_request.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package avfoundation @@ -19,10 +19,10 @@ type _AssetResourceLoadingDataRequestClass struct { type IAssetResourceLoadingDataRequest interface { objc.IObject RespondWithData(data []byte) - RequestedLength() int - RequestsAllDataToEndOfResource() bool - RequestedOffset() int64 CurrentOffset() int64 + RequestedOffset() int64 + RequestsAllDataToEndOfResource() bool + RequestedLength() int } // An object for requesting data from a resource that an asset resource-loading request references. [Full Topic] @@ -43,10 +43,6 @@ func (ac _AssetResourceLoadingDataRequestClass) Alloc() AssetResourceLoadingData return rv } -func AssetResourceLoadingDataRequest_Alloc() AssetResourceLoadingDataRequest { - return AssetResourceLoadingDataRequestClass.Alloc() -} - func (ac _AssetResourceLoadingDataRequestClass) New() AssetResourceLoadingDataRequest { rv := objc.Call[AssetResourceLoadingDataRequest](ac, objc.Sel("new")) rv.Autorelease() @@ -69,19 +65,11 @@ func (a_ AssetResourceLoadingDataRequest) RespondWithData(data []byte) { objc.Call[objc.Void](a_, objc.Sel("respondWithData:"), data) } -// The length, in bytes, of the data 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")) - return rv -} - -// A Boolean value that indicates the entire remaining length of the resource from the offest to the end of the resource is being requested. [Full Topic] +// The position within the resource of the next byte. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avassetresourceloadingdatarequest/1386864-requestsalldatatoendofresource?language=objc -func (a_ AssetResourceLoadingDataRequest) RequestsAllDataToEndOfResource() bool { - rv := objc.Call[bool](a_, objc.Sel("requestsAllDataToEndOfResource")) +// [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 } @@ -93,10 +81,18 @@ func (a_ AssetResourceLoadingDataRequest) RequestedOffset() int64 { return rv } -// The position within the resource of the next byte. [Full Topic] +// A Boolean value that indicates the entire remaining length of the resource from the offest to the end of the resource is being requested. [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")) +// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avassetresourceloadingdatarequest/1386864-requestsalldatatoendofresource?language=objc +func (a_ AssetResourceLoadingDataRequest) RequestsAllDataToEndOfResource() bool { + rv := objc.Call[bool](a_, objc.Sel("requestsAllDataToEndOfResource")) + return rv +} + +// The length, in bytes, of the data 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")) return rv } diff --git a/macos/avfoundation/asset_resource_loading_request.gen.go b/macos/avfoundation/asset_resource_loading_request.gen.go index a5e4cf87..dbd3a577 100644 --- a/macos/avfoundation/asset_resource_loading_request.gen.go +++ b/macos/avfoundation/asset_resource_loading_request.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package avfoundation @@ -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 - Request() foundation.URLRequest + DataRequest() AssetResourceLoadingDataRequest Requestor() AssetResourceLoadingRequestor ContentInformationRequest() AssetResourceLoadingContentInformationRequest - DataRequest() AssetResourceLoadingDataRequest + Request() foundation.URLRequest 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] @@ -51,10 +51,6 @@ func (ac _AssetResourceLoadingRequestClass) Alloc() AssetResourceLoadingRequest return rv } -func AssetResourceLoadingRequest_Alloc() AssetResourceLoadingRequest { - return AssetResourceLoadingRequestClass.Alloc() -} - func (ac _AssetResourceLoadingRequestClass) New() AssetResourceLoadingRequest { rv := objc.Call[AssetResourceLoadingRequest](ac, objc.Sel("new")) rv.Autorelease() @@ -84,6 +80,29 @@ func (a_ AssetResourceLoadingRequest) FinishLoadingWithError(error foundation.IE objc.Call[objc.Void](a_, objc.Sel("finishLoadingWithError:"), objc.Ptr(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:"), objc.Ptr(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 @@ -92,11 +111,11 @@ func (a_ AssetResourceLoadingRequest) IsCancelled() bool { 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 } @@ -116,11 +135,11 @@ func (a_ AssetResourceLoadingRequest) ContentInformationRequest() AssetResourceL 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 } @@ -138,26 +157,3 @@ func (a_ AssetResourceLoadingRequest) Response() foundation.URLResponse { func (a_ AssetResourceLoadingRequest) SetResponse(value foundation.IURLResponse) { objc.Call[objc.Void](a_, objc.Sel("setResponse:"), objc.Ptr(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:"), objc.Ptr(value)) -} diff --git a/macos/avfoundation/asset_resource_loading_requestor.gen.go b/macos/avfoundation/asset_resource_loading_requestor.gen.go index af0ff692..7453a571 100644 --- a/macos/avfoundation/asset_resource_loading_requestor.gen.go +++ b/macos/avfoundation/asset_resource_loading_requestor.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package avfoundation @@ -39,10 +39,6 @@ func (ac _AssetResourceLoadingRequestorClass) Alloc() AssetResourceLoadingReques return rv } -func AssetResourceLoadingRequestor_Alloc() AssetResourceLoadingRequestor { - return AssetResourceLoadingRequestorClass.Alloc() -} - func (ac _AssetResourceLoadingRequestorClass) New() AssetResourceLoadingRequestor { rv := objc.Call[AssetResourceLoadingRequestor](ac, objc.Sel("new")) rv.Autorelease() diff --git a/macos/avfoundation/asset_resource_renewal_request.gen.go b/macos/avfoundation/asset_resource_renewal_request.gen.go index 915b6b31..e56a828f 100644 --- a/macos/avfoundation/asset_resource_renewal_request.gen.go +++ b/macos/avfoundation/asset_resource_renewal_request.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package avfoundation @@ -38,10 +38,6 @@ func (ac _AssetResourceRenewalRequestClass) Alloc() AssetResourceRenewalRequest return rv } -func AssetResourceRenewalRequest_Alloc() AssetResourceRenewalRequest { - return AssetResourceRenewalRequestClass.Alloc() -} - func (ac _AssetResourceRenewalRequestClass) New() AssetResourceRenewalRequest { rv := objc.Call[AssetResourceRenewalRequest](ac, objc.Sel("new")) rv.Autorelease() diff --git a/macos/avfoundation/asset_segment_report.gen.go b/macos/avfoundation/asset_segment_report.gen.go index fe8b840f..1c13a5f6 100644 --- a/macos/avfoundation/asset_segment_report.gen.go +++ b/macos/avfoundation/asset_segment_report.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package avfoundation @@ -18,8 +18,8 @@ type _AssetSegmentReportClass struct { // An interface definition for the [AssetSegmentReport] class. type IAssetSegmentReport interface { objc.IObject - SegmentType() AssetSegmentType TrackReports() []AssetSegmentTrackReport + SegmentType() AssetSegmentType } // An object that provides information about segment data. [Full Topic] @@ -40,10 +40,6 @@ func (ac _AssetSegmentReportClass) Alloc() AssetSegmentReport { return rv } -func AssetSegmentReport_Alloc() AssetSegmentReport { - return AssetSegmentReportClass.Alloc() -} - func (ac _AssetSegmentReportClass) New() AssetSegmentReport { rv := objc.Call[AssetSegmentReport](ac, objc.Sel("new")) rv.Autorelease() @@ -59,14 +55,6 @@ func (a_ AssetSegmentReport) Init() AssetSegmentReport { return rv } -// The type of segment data. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avassetsegmentreport/3546570-segmenttype?language=objc -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 @@ -74,3 +62,11 @@ 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 +func (a_ AssetSegmentReport) SegmentType() AssetSegmentType { + rv := objc.Call[AssetSegmentType](a_, objc.Sel("segmentType")) + 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 317c288b..4ac23831 100644 --- a/macos/avfoundation/asset_segment_report_sample_information.gen.go +++ b/macos/avfoundation/asset_segment_report_sample_information.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package avfoundation @@ -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 } @@ -43,10 +43,6 @@ func (ac _AssetSegmentReportSampleInformationClass) Alloc() AssetSegmentReportSa return rv } -func AssetSegmentReportSampleInformation_Alloc() AssetSegmentReportSampleInformation { - return AssetSegmentReportSampleInformationClass.Alloc() -} - func (ac _AssetSegmentReportSampleInformationClass) New() AssetSegmentReportSampleInformation { rv := objc.Call[AssetSegmentReportSampleInformation](ac, objc.Sel("new")) rv.Autorelease() @@ -62,14 +58,6 @@ 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 @@ -86,6 +74,14 @@ 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 51da638f..2dcd1350 100644 --- a/macos/avfoundation/asset_segment_track_report.gen.go +++ b/macos/avfoundation/asset_segment_track_report.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package avfoundation @@ -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 - MediaType() MediaType FirstVideoSampleInformation() AssetSegmentReportSampleInformation - Duration() coremedia.Time + MediaType() MediaType } // An object that provides information on a track in segment data. [Full Topic] @@ -44,10 +44,6 @@ func (ac _AssetSegmentTrackReportClass) Alloc() AssetSegmentTrackReport { return rv } -func AssetSegmentTrackReport_Alloc() AssetSegmentTrackReport { - return AssetSegmentTrackReportClass.Alloc() -} - func (ac _AssetSegmentTrackReportClass) New() AssetSegmentTrackReport { rv := objc.Call[AssetSegmentTrackReport](ac, objc.Sel("new")) rv.Autorelease() @@ -63,6 +59,14 @@ 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 @@ -79,14 +83,6 @@ 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 @@ -95,10 +91,10 @@ func (a_ AssetSegmentTrackReport) FirstVideoSampleInformation() AssetSegmentRepo return rv } -// The duration of a track. [Full Topic] +// The type of media a track contains. [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")) +// [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 } diff --git a/macos/avfoundation/asset_track.gen.go b/macos/avfoundation/asset_track.gen.go index fc1365b5..f2277ccf 100644 --- a/macos/avfoundation/asset_track.gen.go +++ b/macos/avfoundation/asset_track.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package avfoundation @@ -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)) - 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 + LoadMetadataForFormatCompletionHandler(format MetadataFormat, completionHandler func(arg0 []MetadataItem, arg1 foundation.Error)) + MakeSampleCursorAtFirstSampleInDecodeOrder() SampleCursor LoadSegmentForTrackTimeCompletionHandler(trackTime coremedia.Time, completionHandler func(arg0 AssetTrackSegment, arg1 foundation.Error)) - ExtendedLanguageTag() string - FormatDescriptions() []objc.Object - TrackID() objc.Object - PreferredVolume() float64 + HasMediaCharacteristic(mediaCharacteristic MediaCharacteristic) bool + MakeSampleCursorWithPresentationTimeStamp(presentationTimeStamp coremedia.Time) SampleCursor + IsDecodable() bool + CommonMetadata() []MetadataItem + EstimatedDataRate() float64 + LanguageCode() string HasAudioSampleDependencies() bool + Asset() Asset Metadata() []MetadataItem - MediaType() MediaType - RequiresFrameReordering() bool TotalSampleDataLength() int64 Segments() []AssetTrackSegment - IsDecodable() bool - MinFrameDuration() coremedia.Time - NaturalSize() coregraphics.Size + TrackID() objc.Object AvailableMetadataFormats() []MetadataFormat - EstimatedDataRate() float64 - TimeRange() coremedia.TimeRange + MinFrameDuration() coremedia.Time + PreferredVolume() float64 + RequiresFrameReordering() bool + IsPlayable() bool + FormatDescriptions() []objc.Object + PreferredTransform() coregraphics.AffineTransform NominalFrameRate() float64 + TimeRange() coremedia.TimeRange CanProvideSampleCursors() bool + NaturalSize() coregraphics.Size + ExtendedLanguageTag() string + AvailableTrackAssociationTypes() []TrackAssociationType + NaturalTimeScale() coremedia.TimeScale IsSelfContained() bool - LanguageCode() string IsEnabled() bool - NaturalTimeScale() coremedia.TimeScale - AvailableTrackAssociationTypes() []TrackAssociationType - Asset() Asset - PreferredTransform() coregraphics.AffineTransform - IsPlayable() bool - CommonMetadata() []MetadataItem + MediaType() MediaType } // An object that models a track of media that an asset contains. [Full Topic] @@ -76,10 +76,6 @@ func (ac _AssetTrackClass) Alloc() AssetTrack { return rv } -func AssetTrack_Alloc() AssetTrack { - return AssetTrackClass.Alloc() -} - func (ac _AssetTrackClass) New() AssetTrack { rv := objc.Call[AssetTrack](ac, objc.Sel("new")) rv.Autorelease() @@ -95,14 +91,6 @@ 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 @@ -110,21 +98,28 @@ func (a_ AssetTrack) LoadSamplePresentationTimeForTrackTimeCompletionHandler(tra objc.Call[objc.Void](a_, objc.Sel("loadSamplePresentationTimeForTrackTime:completionHandler:"), trackTime, completionHandler) } -// Loads metadata items that a track contains for the specified format. [Full Topic] +// Loads associated tracks that have the specified association type. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avassettrack/3746539-loadmetadataforformat?language=objc -func (a_ AssetTrack) LoadMetadataForFormatCompletionHandler(format MetadataFormat, completionHandler func(arg0 []MetadataItem, arg1 foundation.Error)) { - objc.Call[objc.Void](a_, objc.Sel("loadMetadataForFormat:completionHandler:"), format, 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 } +// 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 +func (a_ AssetTrack) LoadMetadataForFormatCompletionHandler(format MetadataFormat, completionHandler func(arg0 []MetadataItem, arg1 foundation.Error)) { + objc.Call[objc.Void](a_, objc.Sel("loadMetadataForFormat:completionHandler:"), format, completionHandler) +} + // 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 @@ -133,57 +128,58 @@ func (a_ AssetTrack) MakeSampleCursorAtFirstSampleInDecodeOrder() SampleCursor { return rv } -// Loads associated tracks that have the specified association type. [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/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) +// [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) } -// Creates a sample cursor and positions it at the track’s last media sample in decode order. [Full Topic] +// 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/1386014-makesamplecursoratlastsampleinde?language=objc -func (a_ AssetTrack) MakeSampleCursorAtLastSampleInDecodeOrder() SampleCursor { - rv := objc.Call[SampleCursor](a_, objc.Sel("makeSampleCursorAtLastSampleInDecodeOrder")) +// [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 } -// Loads a segment with a target time range that contains, or is closest to, the specified track time. [Full Topic] +// 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/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/1390248-makesamplecursorwithpresentation?language=objc +func (a_ AssetTrack) MakeSampleCursorWithPresentationTimeStamp(presentationTimeStamp coremedia.Time) SampleCursor { + rv := objc.Call[SampleCursor](a_, objc.Sel("makeSampleCursorWithPresentationTimeStamp:"), presentationTimeStamp) + return rv } -// The language tag of 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/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/2887366-decodable?language=objc +func (a_ AssetTrack) IsDecodable() bool { + rv := objc.Call[bool](a_, objc.Sel("isDecodable")) return rv } -// The format descriptions of the media samples that a track references. [Full Topic] +// 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/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/1390832-commonmetadata?language=objc +func (a_ AssetTrack) CommonMetadata() []MetadataItem { + rv := objc.Call[[]MetadataItem](a_, objc.Sel("commonMetadata")) return rv } -// The persistent unique identifier for this track. [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/1385799-trackid?language=objc -func (a_ AssetTrack) TrackID() objc.Object { - rv := objc.Call[objc.Object](a_, objc.Sel("trackID")) +// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avassettrack/1389758-estimateddatarate?language=objc +func (a_ AssetTrack) EstimatedDataRate() float64 { + rv := objc.Call[float64](a_, objc.Sel("estimatedDataRate")) return rv } -// The track’s volume preference for playing its audible media. [Full Topic] +// The language code of the track. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avassettrack/1388832-preferredvolume?language=objc -func (a_ AssetTrack) PreferredVolume() float64 { - rv := objc.Call[float64](a_, objc.Sel("preferredVolume")) +// [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 } @@ -195,27 +191,19 @@ func (a_ AssetTrack) HasAudioSampleDependencies() bool { 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 -func (a_ AssetTrack) Metadata() []MetadataItem { - rv := objc.Call[[]MetadataItem](a_, objc.Sel("metadata")) - return rv -} - -// The type of media that a track presents. [Full Topic] +// The asset object that contains this track. [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/1385611-asset?language=objc +func (a_ AssetTrack) Asset() Asset { + rv := objc.Call[Asset](a_, objc.Sel("asset")) return rv } -// A Boolean value that indicates whether samples in the track may have different presentation and decode timestamps. [Full Topic] +// An array of metadata items for all metadata identifiers that have a value. [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/1389054-metadata?language=objc +func (a_ AssetTrack) Metadata() []MetadataItem { + rv := objc.Call[[]MetadataItem](a_, objc.Sel("metadata")) return rv } @@ -235,11 +223,19 @@ func (a_ AssetTrack) Segments() []AssetTrackSegment { return rv } -// A Boolean value that indicates whether the track is decodable in the current environment. [Full Topic] +// The persistent unique identifier for this 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/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] +// +// [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 } @@ -251,83 +247,83 @@ func (a_ AssetTrack) MinFrameDuration() coremedia.Time { return rv } -// The natural dimensions of the media data that the track references. [Full Topic] +// The track’s volume preference for playing its audible media. [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/1388832-preferredvolume?language=objc +func (a_ AssetTrack) PreferredVolume() float64 { + rv := objc.Call[float64](a_, objc.Sel("preferredVolume")) return rv } -// An array of metadata formats available for the track. [Full Topic] +// 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/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/1390844-requiresframereordering?language=objc +func (a_ AssetTrack) RequiresFrameReordering() bool { + rv := objc.Call[bool](a_, objc.Sel("requiresFrameReordering")) return rv } -// The estimated data rate, in bits per second, of the media that the track references. [Full Topic] +// 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/1389758-estimateddatarate?language=objc -func (a_ AssetTrack) EstimatedDataRate() float64 { - rv := objc.Call[float64](a_, objc.Sel("estimatedDataRate")) +// [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 } -// The time range of the track within the overall timeline of the asset. [Full Topic] +// The format descriptions of the media samples that a track references. [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")) +// [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 frame rate of the track, in frames per second. [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/1386182-nominalframerate?language=objc -func (a_ AssetTrack) NominalFrameRate() float64 { - rv := objc.Call[float64](a_, objc.Sel("nominalFrameRate")) +// [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 can provide instances of sample cursors to traverse its media samples and discover information. [Full Topic] +// The frame rate of the track, in frames per second. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avassettrack/1386692-canprovidesamplecursors?language=objc -func (a_ AssetTrack) CanProvideSampleCursors() bool { - rv := objc.Call[bool](a_, objc.Sel("canProvideSampleCursors")) +// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avassettrack/1386182-nominalframerate?language=objc +func (a_ AssetTrack) NominalFrameRate() float64 { + rv := objc.Call[float64](a_, objc.Sel("nominalFrameRate")) return rv } -// A Boolean value that indicates whether this track references sample data only within its container file. [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/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/1388335-timerange?language=objc +func (a_ AssetTrack) TimeRange() coremedia.TimeRange { + rv := objc.Call[coremedia.TimeRange](a_, objc.Sel("timeRange")) return rv } -// The language code of the track. [Full Topic] +// 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/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/1386692-canprovidesamplecursors?language=objc +func (a_ AssetTrack) CanProvideSampleCursors() bool { + rv := objc.Call[bool](a_, objc.Sel("canProvideSampleCursors")) return rv } -// A Boolean value that indicates whether the track’s container enables it. [Full Topic] +// The natural dimensions of the media data that the track references. [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/1387724-naturalsize?language=objc +func (a_ AssetTrack) NaturalSize() coregraphics.Size { + rv := objc.Call[coregraphics.Size](a_, objc.Sel("naturalSize")) return rv } -// The natural time scale of the media that a track references. [Full Topic] +// The language tag of the track. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avassettrack/1389233-naturaltimescale?language=objc -func (a_ AssetTrack) NaturalTimeScale() coremedia.TimeScale { - rv := objc.Call[coremedia.TimeScale](a_, objc.Sel("naturalTimeScale")) +// [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 } @@ -339,34 +335,34 @@ func (a_ AssetTrack) AvailableTrackAssociationTypes() []TrackAssociationType { return rv } -// The asset object that contains this track. [Full Topic] +// The natural time scale of the media that a track references. [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")) +// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avassettrack/1389233-naturaltimescale?language=objc +func (a_ AssetTrack) NaturalTimeScale() coremedia.TimeScale { + rv := objc.Call[coremedia.TimeScale](a_, objc.Sel("naturalTimeScale")) return rv } -// The track’s transform preference to apply to its visual content during presentation or processing. [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/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/1387643-selfcontained?language=objc +func (a_ AssetTrack) IsSelfContained() bool { + rv := objc.Call[bool](a_, objc.Sel("isSelfContained")) return rv } -// A Boolean value that indicates whether the track is playable in the current environment. [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/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/1387546-enabled?language=objc +func (a_ AssetTrack) IsEnabled() bool { + rv := objc.Call[bool](a_, objc.Sel("isEnabled")) return rv } -// An array of metadata items for all common metadata keys that have a value. [Full Topic] +// The type of media that a track presents. [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/1385741-mediatype?language=objc +func (a_ AssetTrack) MediaType() MediaType { + rv := objc.Call[MediaType](a_, objc.Sel("mediaType")) return rv } diff --git a/macos/avfoundation/asset_track_group.gen.go b/macos/avfoundation/asset_track_group.gen.go index 6041f08b..c2366c49 100644 --- a/macos/avfoundation/asset_track_group.gen.go +++ b/macos/avfoundation/asset_track_group.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package avfoundation @@ -40,10 +40,6 @@ func (ac _AssetTrackGroupClass) Alloc() AssetTrackGroup { return rv } -func AssetTrackGroup_Alloc() AssetTrackGroup { - return AssetTrackGroupClass.Alloc() -} - func (ac _AssetTrackGroupClass) New() AssetTrackGroup { rv := objc.Call[AssetTrackGroup](ac, objc.Sel("new")) rv.Autorelease() diff --git a/macos/avfoundation/asset_track_segment.gen.go b/macos/avfoundation/asset_track_segment.gen.go index b08ee9e6..07db41e3 100644 --- a/macos/avfoundation/asset_track_segment.gen.go +++ b/macos/avfoundation/asset_track_segment.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package avfoundation @@ -41,10 +41,6 @@ func (ac _AssetTrackSegmentClass) Alloc() AssetTrackSegment { return rv } -func AssetTrackSegment_Alloc() AssetTrackSegment { - return AssetTrackSegmentClass.Alloc() -} - func (ac _AssetTrackSegmentClass) New() AssetTrackSegment { rv := objc.Call[AssetTrackSegment](ac, objc.Sel("new")) rv.Autorelease() diff --git a/macos/avfoundation/asset_variant.gen.go b/macos/avfoundation/asset_variant.gen.go index e694a57f..f3c7e3ed 100644 --- a/macos/avfoundation/asset_variant.gen.go +++ b/macos/avfoundation/asset_variant.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package avfoundation @@ -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] @@ -42,10 +42,6 @@ func (ac _AssetVariantClass) Alloc() AssetVariant { return rv } -func AssetVariant_Alloc() AssetVariant { - return AssetVariantClass.Alloc() -} - func (ac _AssetVariantClass) New() AssetVariant { rv := objc.Call[AssetVariant](ac, objc.Sel("new")) rv.Autorelease() @@ -61,6 +57,14 @@ 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 @@ -84,11 +88,3 @@ 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_audio_attributes.gen.go b/macos/avfoundation/asset_variant_audio_attributes.gen.go index 5ba74771..ce06aed3 100644 --- a/macos/avfoundation/asset_variant_audio_attributes.gen.go +++ b/macos/avfoundation/asset_variant_audio_attributes.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package avfoundation @@ -41,10 +41,6 @@ func (ac _AssetVariantAudioAttributesClass) Alloc() AssetVariantAudioAttributes return rv } -func AssetVariantAudioAttributes_Alloc() AssetVariantAudioAttributes { - return AssetVariantAudioAttributesClass.Alloc() -} - func (ac _AssetVariantAudioAttributesClass) New() AssetVariantAudioAttributes { rv := objc.Call[AssetVariantAudioAttributes](ac, objc.Sel("new")) rv.Autorelease() diff --git a/macos/avfoundation/asset_variant_audio_rendition_specific_attributes.gen.go b/macos/avfoundation/asset_variant_audio_rendition_specific_attributes.gen.go index d998f023..e10f8de2 100644 --- a/macos/avfoundation/asset_variant_audio_rendition_specific_attributes.gen.go +++ b/macos/avfoundation/asset_variant_audio_rendition_specific_attributes.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package avfoundation @@ -39,10 +39,6 @@ func (ac _AssetVariantAudioRenditionSpecificAttributesClass) Alloc() AssetVarian return rv } -func AssetVariantAudioRenditionSpecificAttributes_Alloc() AssetVariantAudioRenditionSpecificAttributes { - return AssetVariantAudioRenditionSpecificAttributesClass.Alloc() -} - func (ac _AssetVariantAudioRenditionSpecificAttributesClass) New() AssetVariantAudioRenditionSpecificAttributes { rv := objc.Call[AssetVariantAudioRenditionSpecificAttributes](ac, objc.Sel("new")) rv.Autorelease() diff --git a/macos/avfoundation/asset_variant_qualifier.gen.go b/macos/avfoundation/asset_variant_qualifier.gen.go index 6b69fabd..40fd0f81 100644 --- a/macos/avfoundation/asset_variant_qualifier.gen.go +++ b/macos/avfoundation/asset_variant_qualifier.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package avfoundation @@ -34,18 +34,6 @@ func AssetVariantQualifierFrom(ptr unsafe.Pointer) AssetVariantQualifier { } } -func (ac _AssetVariantQualifierClass) AssetVariantQualifierWithVariant(variant IAssetVariant) AssetVariantQualifier { - rv := objc.Call[AssetVariantQualifier](ac, objc.Sel("assetVariantQualifierWithVariant:"), objc.Ptr(variant)) - return rv -} - -// Creates a variant qualifier with an asset variant. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avassetvariantqualifier/3750228-assetvariantqualifierwithvariant?language=objc -func AssetVariantQualifier_AssetVariantQualifierWithVariant(variant IAssetVariant) AssetVariantQualifier { - return AssetVariantQualifierClass.AssetVariantQualifierWithVariant(variant) -} - func (ac _AssetVariantQualifierClass) AssetVariantQualifierWithPredicate(predicate foundation.IPredicate) AssetVariantQualifier { rv := objc.Call[AssetVariantQualifier](ac, objc.Sel("assetVariantQualifierWithPredicate:"), objc.Ptr(predicate)) return rv @@ -58,13 +46,21 @@ func AssetVariantQualifier_AssetVariantQualifierWithPredicate(predicate foundati return AssetVariantQualifierClass.AssetVariantQualifierWithPredicate(predicate) } -func (ac _AssetVariantQualifierClass) Alloc() AssetVariantQualifier { - rv := objc.Call[AssetVariantQualifier](ac, objc.Sel("alloc")) +func (ac _AssetVariantQualifierClass) AssetVariantQualifierWithVariant(variant IAssetVariant) AssetVariantQualifier { + rv := objc.Call[AssetVariantQualifier](ac, objc.Sel("assetVariantQualifierWithVariant:"), objc.Ptr(variant)) return rv } -func AssetVariantQualifier_Alloc() AssetVariantQualifier { - return AssetVariantQualifierClass.Alloc() +// Creates a variant qualifier with an asset variant. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avassetvariantqualifier/3750228-assetvariantqualifierwithvariant?language=objc +func AssetVariantQualifier_AssetVariantQualifierWithVariant(variant IAssetVariant) AssetVariantQualifier { + return AssetVariantQualifierClass.AssetVariantQualifierWithVariant(variant) +} + +func (ac _AssetVariantQualifierClass) Alloc() AssetVariantQualifier { + rv := objc.Call[AssetVariantQualifier](ac, objc.Sel("alloc")) + return rv } func (ac _AssetVariantQualifierClass) New() AssetVariantQualifier { @@ -82,21 +78,6 @@ func (a_ AssetVariantQualifier) Init() AssetVariantQualifier { return rv } -// Creates a predicate with a width and operator type. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avassetvariantqualifier/3857562-predicateforpresentationwidth?language=objc -func (ac _AssetVariantQualifierClass) PredicateForPresentationWidthOperatorType(width float64, operatorType foundation.PredicateOperatorType) foundation.Predicate { - rv := objc.Call[foundation.Predicate](ac, objc.Sel("predicateForPresentationWidth:operatorType:"), width, operatorType) - return rv -} - -// Creates a predicate with a width and operator type. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avassetvariantqualifier/3857562-predicateforpresentationwidth?language=objc -func AssetVariantQualifier_PredicateForPresentationWidthOperatorType(width float64, operatorType foundation.PredicateOperatorType) foundation.Predicate { - 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 @@ -112,6 +93,21 @@ func AssetVariantQualifier_PredicateForChannelCountMediaSelectionOptionOperatorT 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 +func (ac _AssetVariantQualifierClass) PredicateForPresentationWidthOperatorType(width float64, operatorType foundation.PredicateOperatorType) foundation.Predicate { + rv := objc.Call[foundation.Predicate](ac, objc.Sel("predicateForPresentationWidth:operatorType:"), width, operatorType) + return rv +} + +// Creates a predicate with a width and operator type. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avassetvariantqualifier/3857562-predicateforpresentationwidth?language=objc +func AssetVariantQualifier_PredicateForPresentationWidthOperatorType(width float64, operatorType foundation.PredicateOperatorType) foundation.Predicate { + return AssetVariantQualifierClass.PredicateForPresentationWidthOperatorType(width, 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 f6fe324b..6b58d167 100644 --- a/macos/avfoundation/asset_variant_video_attributes.gen.go +++ b/macos/avfoundation/asset_variant_video_attributes.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package avfoundation @@ -20,10 +20,10 @@ type _AssetVariantVideoAttributesClass struct { // An interface definition for the [AssetVariantVideoAttributes] class. type IAssetVariantVideoAttributes interface { objc.IObject - VideoRange() VideoRange - CodecTypes() []foundation.Number PresentationSize() coregraphics.Size NominalFrameRate() float64 + VideoRange() VideoRange + CodecTypes() []foundation.Number } // An object that defines the video attributes for an asset variant. [Full Topic] @@ -44,10 +44,6 @@ func (ac _AssetVariantVideoAttributesClass) Alloc() AssetVariantVideoAttributes return rv } -func AssetVariantVideoAttributes_Alloc() AssetVariantVideoAttributes { - return AssetVariantVideoAttributesClass.Alloc() -} - func (ac _AssetVariantVideoAttributesClass) New() AssetVariantVideoAttributes { rv := objc.Call[AssetVariantVideoAttributes](ac, objc.Sel("new")) rv.Autorelease() @@ -63,22 +59,6 @@ func (a_ AssetVariantVideoAttributes) Init() AssetVariantVideoAttributes { return rv } -// The video range of the variant. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avassetvariantvideoattributes/3746556-videorange?language=objc -func (a_ AssetVariantVideoAttributes) VideoRange() VideoRange { - rv := objc.Call[VideoRange](a_, objc.Sel("videoRange")) - return rv -} - -// The video sample codec types present in the variant’s renditions. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avassetvariantvideoattributes/3746553-codectypes?language=objc -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 @@ -94,3 +74,19 @@ 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 +func (a_ AssetVariantVideoAttributes) VideoRange() VideoRange { + rv := objc.Call[VideoRange](a_, objc.Sel("videoRange")) + return rv +} + +// The video sample codec types present in the variant’s renditions. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avassetvariantvideoattributes/3746553-codectypes?language=objc +func (a_ AssetVariantVideoAttributes) CodecTypes() []foundation.Number { + rv := objc.Call[[]foundation.Number](a_, objc.Sel("codecTypes")) + return rv +} diff --git a/macos/avfoundation/asset_writer.gen.go b/macos/avfoundation/asset_writer.gen.go index 7734c782..f520d194 100644 --- a/macos/avfoundation/asset_writer.gen.go +++ b/macos/avfoundation/asset_writer.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package avfoundation @@ -21,49 +21,49 @@ type _AssetWriterClass struct { // An interface definition for the [AssetWriter] class. type IAssetWriter interface { objc.IObject - AddInput(input IAssetWriterInput) 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) + AddInputGroup(inputGroup IAssetWriterInputGroup) + AddInput(input IAssetWriterInput) StartWriting() bool FinishWritingWithCompletionHandler(handler func()) - Error() foundation.Error - InitialMovieFragmentSequenceNumber() int - SetInitialMovieFragmentSequenceNumber(value int) + CanApplyOutputSettingsForMediaType(outputSettings map[string]objc.IObject, mediaType MediaType) bool + FlushSegment() + StartSessionAtSourceTime(startTime coremedia.Time) + CanAddInputGroup(inputGroup IAssetWriterInputGroup) bool + EndSessionAtSourceTime(endTime coremedia.Time) + OutputURL() foundation.URL + MovieTimeScale() coremedia.TimeScale + SetMovieTimeScale(value coremedia.TimeScale) + Inputs() []AssetWriterInput OutputFileTypeProfile() FileTypeProfile SetOutputFileTypeProfile(value FileTypeProfile) MovieFragmentInterval() coremedia.Time SetMovieFragmentInterval(value coremedia.Time) - InputGroups() []AssetWriterInputGroup - Metadata() []MetadataItem - SetMetadata(value []IMetadataItem) - Delegate() AssetWriterDelegateWrapper - SetDelegate(value PAssetWriterDelegate) - SetDelegateObject(valueObject objc.IObject) InitialSegmentStartTime() coremedia.Time SetInitialSegmentStartTime(value coremedia.Time) - OutputFileType() FileType - Inputs() []AssetWriterInput + Metadata() []MetadataItem + SetMetadata(value []IMetadataItem) PreferredOutputSegmentInterval() coremedia.Time SetPreferredOutputSegmentInterval(value coremedia.Time) - ShouldOptimizeForNetworkUse() bool - SetShouldOptimizeForNetworkUse(value bool) + OutputFileType() FileType AvailableMediaTypes() []MediaType - DirectoryForTemporaryFiles() foundation.URL - SetDirectoryForTemporaryFiles(value foundation.IURL) - OverallDurationHint() coremedia.Time - SetOverallDurationHint(value coremedia.Time) ProducesCombinableFragments() bool SetProducesCombinableFragments(value bool) + Error() foundation.Error + InputGroups() []AssetWriterInputGroup Status() AssetWriterStatus - OutputURL() foundation.URL - MovieTimeScale() coremedia.TimeScale - SetMovieTimeScale(value coremedia.TimeScale) + Delegate() AssetWriterDelegateObject + SetDelegate(value PAssetWriterDelegate) + SetDelegateObject(valueObject objc.IObject) + InitialMovieFragmentSequenceNumber() int + SetInitialMovieFragmentSequenceNumber(value int) + ShouldOptimizeForNetworkUse() bool + SetShouldOptimizeForNetworkUse(value bool) + OverallDurationHint() coremedia.Time + SetOverallDurationHint(value coremedia.Time) + DirectoryForTemporaryFiles() foundation.URL + SetDirectoryForTemporaryFiles(value foundation.IURL) } // An object that writes media data to a container file. [Full Topic] @@ -93,6 +93,18 @@ func NewAssetWriterWithURLFileTypeError(outputURL foundation.IURL, outputFileTyp return instance } +func (ac _AssetWriterClass) AssetWriterWithURLFileTypeError(outputURL foundation.IURL, outputFileType FileType, outError foundation.IError) AssetWriter { + rv := objc.Call[AssetWriter](ac, objc.Sel("assetWriterWithURL:fileType:error:"), objc.Ptr(outputURL), outputFileType, objc.Ptr(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 foundation.IError) AssetWriter { + return AssetWriterClass.AssetWriterWithURLFileTypeError(outputURL, outputFileType, outError) +} + func (a_ AssetWriter) InitWithContentType(outputContentType uti.IType) AssetWriter { rv := objc.Call[AssetWriter](a_, objc.Sel("initWithContentType:"), objc.Ptr(outputContentType)) return rv @@ -107,27 +119,11 @@ func NewAssetWriterWithContentType(outputContentType uti.IType) AssetWriter { return instance } -func (ac _AssetWriterClass) AssetWriterWithURLFileTypeError(outputURL foundation.IURL, outputFileType FileType, outError foundation.IError) AssetWriter { - rv := objc.Call[AssetWriter](ac, objc.Sel("assetWriterWithURL:fileType:error:"), objc.Ptr(outputURL), outputFileType, objc.Ptr(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 foundation.IError) AssetWriter { - return AssetWriterClass.AssetWriterWithURLFileTypeError(outputURL, outputFileType, outError) -} - func (ac _AssetWriterClass) Alloc() AssetWriter { rv := objc.Call[AssetWriter](ac, objc.Sel("alloc")) return rv } -func AssetWriter_Alloc() AssetWriter { - return AssetWriterClass.Alloc() -} - func (ac _AssetWriterClass) New() AssetWriter { rv := objc.Call[AssetWriter](ac, objc.Sel("new")) rv.Autorelease() @@ -143,13 +139,6 @@ 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:"), objc.Ptr(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 @@ -158,11 +147,11 @@ func (a_ AssetWriter) CanAddInput(input IAssetWriterInput) bool { return rv } -// 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")) } // Adds an input group to an asset writer. [Full Topic] @@ -172,11 +161,33 @@ func (a_ AssetWriter) AddInputGroup(inputGroup IAssetWriterInputGroup) { objc.Call[objc.Void](a_, objc.Sel("addInputGroup:"), objc.Ptr(inputGroup)) } -// Determines whether the asset writer supports adding the input group. [Full Topic] +// Adds an input to an asset writer. [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:"), objc.Ptr(inputGroup)) +// [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:"), objc.Ptr(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] +// +// [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 } @@ -187,18 +198,18 @@ func (a_ AssetWriter) FlushSegment() { objc.Call[objc.Void](a_, objc.Sel("flushSegment")) } -// 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) } -// 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:"), objc.Ptr(inputGroup)) return rv } @@ -209,42 +220,35 @@ func (a_ AssetWriter) EndSessionAtSourceTime(endTime coremedia.Time) { objc.Call[objc.Void](a_, objc.Sel("endSessionAtSourceTime:"), endTime) } -// Tells the writer to start writing its output. [Full Topic] +// The location of the container file that the writer outputs. [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")) +// [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 } -// 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) -} - -// An error object that describes an asset-writing failure. [Full Topic] +// The time scale of the movie. [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/1386762-movietimescale?language=objc +func (a_ AssetWriter) MovieTimeScale() coremedia.TimeScale { + rv := objc.Call[coremedia.TimeScale](a_, objc.Sel("movieTimeScale")) return rv } -// The sequence number of the initial movie fragment. [Full Topic] +// The time scale of the movie. [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")) - return rv +// [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) } -// The sequence number of the initial movie fragment. [Full Topic] +// The inputs an asset writer contains. [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/1388264-inputs?language=objc +func (a_ AssetWriter) Inputs() []AssetWriterInput { + rv := objc.Call[[]AssetWriterInput](a_, objc.Sel("inputs")) + return rv } // A profile for the output file type. [Full Topic] @@ -277,14 +281,21 @@ func (a_ AssetWriter) SetMovieFragmentInterval(value coremedia.Time) { objc.Call[objc.Void](a_, objc.Sel("setMovieFragmentInterval:"), value) } -// The input groups an asset writer contains. [Full Topic] +// The start time of the initial segment. [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")) +// [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) +} + // 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 @@ -300,43 +311,19 @@ func (a_ AssetWriter) SetMetadata(value []IMetadataItem) { objc.Call[objc.Void](a_, objc.Sel("setMetadata:"), value) } -// 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) Delegate() AssetWriterDelegateWrapper { - rv := objc.Call[AssetWriterDelegateWrapper](a_, objc.Sel("delegate")) - 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] -// -// [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:"), objc.Ptr(valueObject)) -} - -// The start time of the initial segment. [Full Topic] +// The interval of output segments that you prefer. [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/3546590-preferredoutputsegmentinterval?language=objc +func (a_ AssetWriter) PreferredOutputSegmentInterval() coremedia.Time { + rv := objc.Call[coremedia.Time](a_, objc.Sel("preferredOutputSegmentInterval")) return rv } -// The start time of the initial segment. [Full Topic] +// The interval of output segments that you prefer. [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) +// [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) } // The type of container file that the writer outputs. [Full Topic] @@ -347,124 +334,133 @@ func (a_ AssetWriter) OutputFileType() FileType { return rv } -// The inputs an asset writer contains. [Full Topic] +// The media types the asset writer supports adding as inputs. [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/1388730-availablemediatypes?language=objc +func (a_ AssetWriter) AvailableMediaTypes() []MediaType { + rv := objc.Call[[]MediaType](a_, objc.Sel("availableMediaTypes")) return rv } -// The interval of output segments that you prefer. [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/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/3626025-producescombinablefragments?language=objc +func (a_ AssetWriter) ProducesCombinableFragments() bool { + rv := objc.Call[bool](a_, objc.Sel("producesCombinableFragments")) return rv } -// The interval of output segments that you prefer. [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/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/3626025-producescombinablefragments?language=objc +func (a_ AssetWriter) SetProducesCombinableFragments(value bool) { + objc.Call[objc.Void](a_, objc.Sel("setProducesCombinableFragments:"), value) } -// A Boolean value that indicates whether to write the output file to make it more suitable for playback over a network. [Full Topic] +// An error object that describes an asset-writing failure. [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/1390725-error?language=objc +func (a_ AssetWriter) Error() foundation.Error { + rv := objc.Call[foundation.Error](a_, objc.Sel("error")) 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] +// The input groups an asset writer contains. [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/1388432-inputgroups?language=objc +func (a_ AssetWriter) InputGroups() []AssetWriterInputGroup { + rv := objc.Call[[]AssetWriterInputGroup](a_, objc.Sel("inputGroups")) + return rv } -// The media types the asset writer supports adding as inputs. [Full Topic] +// The status of writing samples to the output file. [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/1389335-status?language=objc +func (a_ AssetWriter) Status() AssetWriterStatus { + rv := objc.Call[AssetWriterStatus](a_, objc.Sel("status")) return rv } -// A directory to contain temporary files that the export process generates. [Full Topic] +// A delegate object that responds to asset-writing events. [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/3546585-delegate?language=objc +func (a_ AssetWriter) Delegate() AssetWriterDelegateObject { + rv := objc.Call[AssetWriterDelegateObject](a_, objc.Sel("delegate")) return rv } -// A directory to contain temporary files that the export process generates. [Full Topic] +// A delegate object that responds to asset-writing events. [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:"), objc.Ptr(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 hint of the final duration of the output file. [Full Topic] +// A delegate object that responds to asset-writing events. [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/3546585-delegate?language=objc +func (a_ AssetWriter) SetDelegateObject(valueObject objc.IObject) { + objc.Call[objc.Void](a_, objc.Sel("setDelegate:"), objc.Ptr(valueObject)) +} + +// 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) InitialMovieFragmentSequenceNumber() int { + rv := objc.Call[int](a_, objc.Sel("initialMovieFragmentSequenceNumber")) return rv } -// A hint of the final duration of the output file. [Full Topic] +// The sequence number of the initial movie fragment. [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/3577532-initialmoviefragmentsequencenumb?language=objc +func (a_ AssetWriter) SetInitialMovieFragmentSequenceNumber(value int) { + objc.Call[objc.Void](a_, objc.Sel("setInitialMovieFragmentSequenceNumber:"), value) } -// A Boolean value that indicates whether the asset writer outputs movie fragments suitable for combining with others. [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/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/1389811-shouldoptimizefornetworkuse?language=objc +func (a_ AssetWriter) ShouldOptimizeForNetworkUse() bool { + rv := objc.Call[bool](a_, objc.Sel("shouldOptimizeForNetworkUse")) return rv } -// A Boolean value that indicates whether the asset writer outputs movie fragments suitable for combining with others. [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/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/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] +// A hint of the final duration of the output file. [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/1388408-overalldurationhint?language=objc +func (a_ AssetWriter) OverallDurationHint() coremedia.Time { + rv := objc.Call[coremedia.Time](a_, objc.Sel("overallDurationHint")) return rv } -// The location of the container file that the writer outputs. [Full Topic] +// A hint of the final duration of the output file. [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")) - return rv +// [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) } -// The time scale of the movie. [Full Topic] +// A directory to contain temporary files that the export process generates. [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")) +// [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 } -// The time scale of the movie. [Full Topic] +// A directory to contain temporary files that the export process generates. [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/1387445-directoryfortemporaryfiles?language=objc +func (a_ AssetWriter) SetDirectoryForTemporaryFiles(value foundation.IURL) { + objc.Call[objc.Void](a_, objc.Sel("setDirectoryForTemporaryFiles:"), objc.Ptr(value)) } diff --git a/macos/avfoundation/asset_writer_delegate.gen.go b/macos/avfoundation/asset_writer_delegate.gen.go index 0efc027a..04b11ea7 100644 --- a/macos/avfoundation/asset_writer_delegate.gen.go +++ b/macos/avfoundation/asset_writer_delegate.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package avfoundation @@ -13,11 +13,16 @@ 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) + _AssetWriterDidOutputSegmentDataSegmentType func(writer AssetWriter, segmentData []byte, segmentType AssetSegmentType) + _AssetWriterDidOutputSegmentDataSegmentTypeSegmentReport func(writer AssetWriter, segmentData []byte, segmentType AssetSegmentType, segmentReport AssetSegmentReport) } func (di *AssetWriterDelegate) HasAssetWriterDidOutputSegmentDataSegmentType() bool { @@ -37,19 +42,50 @@ 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 +} -// A concrete type wrapper for the [PAssetWriterDelegate] protocol. -type AssetWriterDelegateWrapper struct { +// 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) + +// A concrete type for the [PAssetWriterDelegate] protocol. +type AssetWriterDelegateObject struct { objc.Object } -func (a_ AssetWriterDelegateWrapper) HasAssetWriterDidOutputSegmentDataSegmentType() bool { +func (a_ AssetWriterDelegateObject) HasAssetWriterDidOutputSegmentDataSegmentType() bool { return a_.RespondsToSelector(objc.Sel("assetWriter:didOutputSegmentData:segmentType:")) } // Tells the delegate that the asset writer output segment data. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/avfoundation/avassetwriterdelegate/3546592-assetwriter?language=objc -func (a_ AssetWriterDelegateWrapper) AssetWriterDidOutputSegmentDataSegmentType(writer IAssetWriter, segmentData []byte, segmentType AssetSegmentType) { +func (a_ AssetWriterDelegateObject) AssetWriterDidOutputSegmentDataSegmentType(writer AssetWriter, segmentData []byte, segmentType AssetSegmentType) { objc.Call[objc.Void](a_, objc.Sel("assetWriter:didOutputSegmentData:segmentType:"), objc.Ptr(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:"), objc.Ptr(writer), segmentData, segmentType, objc.Ptr(segmentReport)) +} diff --git a/macos/avfoundation/asset_writer_input.gen.go b/macos/avfoundation/asset_writer_input.gen.go index 21cee419..29b493b9 100644 --- a/macos/avfoundation/asset_writer_input.gen.go +++ b/macos/avfoundation/asset_writer_input.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package avfoundation @@ -22,47 +22,47 @@ type _AssetWriterInputClass struct { // An interface definition for the [AssetWriterInput] class. type IAssetWriterInput interface { objc.IObject - AddTrackAssociationWithTrackOfInputType(input IAssetWriterInput, trackAssociationType string) - MarkCurrentPassAsFinished() - RespondToEachPassDescriptionOnQueueUsingBlock(queue dispatch.Queue, block func()) RequestMediaDataWhenReadyOnQueueUsingBlock(queue dispatch.Queue, block func()) - AppendSampleBuffer(sampleBuffer coremedia.SampleBufferRef) bool CanAddTrackAssociationWithTrackOfInputType(input IAssetWriterInput, trackAssociationType string) bool + AddTrackAssociationWithTrackOfInputType(input IAssetWriterInput, trackAssociationType string) + AppendSampleBuffer(sampleBuffer coremedia.SampleBufferRef) bool + RespondToEachPassDescriptionOnQueueUsingBlock(queue dispatch.Queue, block func()) MarkAsFinished() - CurrentPassDescription() AssetWriterInputPassDescription - IsReadyForMoreMediaData() bool + MarkCurrentPassAsFinished() + CanPerformMultiplePasses() bool + NaturalSize() coregraphics.Size + SetNaturalSize(value coregraphics.Size) + ExpectsMediaDataInRealTime() bool + SetExpectsMediaDataInRealTime(value bool) + Metadata() []MetadataItem + SetMetadata(value []IMetadataItem) ExtendedLanguageTag() string SetExtendedLanguageTag(value string) - PerformsMultiPassEncodingIfSupported() bool - SetPerformsMultiPassEncodingIfSupported(value bool) - OutputSettings() map[string]objc.Object + SourceFormatHint() coremedia.FormatDescriptionRef PreferredMediaChunkAlignment() int SetPreferredMediaChunkAlignment(value int) - PreferredVolume() float64 - SetPreferredVolume(value float64) - Metadata() []MetadataItem - SetMetadata(value []IMetadataItem) - ExpectsMediaDataInRealTime() bool - SetExpectsMediaDataInRealTime(value bool) - MediaType() MediaType - SampleReferenceBaseURL() foundation.URL - SetSampleReferenceBaseURL(value foundation.IURL) + CurrentPassDescription() AssetWriterInputPassDescription + IsReadyForMoreMediaData() bool + OutputSettings() map[string]objc.Object MarksOutputTrackAsEnabled() bool SetMarksOutputTrackAsEnabled(value bool) - NaturalSize() coregraphics.Size - SetNaturalSize(value coregraphics.Size) - CanPerformMultiplePasses() bool + SampleReferenceBaseURL() foundation.URL + SetSampleReferenceBaseURL(value foundation.IURL) 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) - SourceFormatHint() coremedia.FormatDescriptionRef + PreferredVolume() float64 + SetPreferredVolume(value float64) + MediaType() MediaType + PerformsMultiPassEncodingIfSupported() bool + SetPerformsMultiPassEncodingIfSupported(value bool) 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,6 +90,32 @@ 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 @@ -109,10 +135,6 @@ func (ac _AssetWriterInputClass) Alloc() AssetWriterInput { return rv } -func AssetWriterInput_Alloc() AssetWriterInput { - return AssetWriterInputClass.Alloc() -} - func (ac _AssetWriterInputClass) New() AssetWriterInput { rv := objc.Call[AssetWriterInput](ac, objc.Sel("new")) rv.Autorelease() @@ -128,6 +150,21 @@ 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:"), objc.Ptr(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 @@ -135,11 +172,12 @@ func (a_ AssetWriterInput) AddTrackAssociationWithTrackOfInputType(input IAssetW objc.Call[objc.Void](a_, objc.Sel("addTrackAssociationWithTrackOfInput:type:"), objc.Ptr(input), trackAssociationType) } -// Tells the input to analyze the appended media to determine whether it can improve the results by reencoding certain segments. [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/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/1389566-appendsamplebuffer?language=objc +func (a_ AssetWriterInput) AppendSampleBuffer(sampleBuffer coremedia.SampleBufferRef) bool { + rv := objc.Call[bool](a_, objc.Sel("appendSampleBuffer:"), sampleBuffer) + return rv } // Tells the input to invoke a callback whenever it begins a new pass. [Full Topic] @@ -149,52 +187,73 @@ func (a_ AssetWriterInput) RespondToEachPassDescriptionOnQueueUsingBlock(queue d objc.Call[objc.Void](a_, objc.Sel("respondToEachPassDescriptionOnQueue:usingBlock:"), queue, block) } -// Tells the input to request media data, at its convenience, to write to the output file. [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/1387508-requestmediadatawhenreadyonqueue?language=objc -func (a_ AssetWriterInput) RequestMediaDataWhenReadyOnQueueUsingBlock(queue dispatch.Queue, block func()) { - objc.Call[objc.Void](a_, objc.Sel("requestMediaDataWhenReadyOnQueue:usingBlock:"), queue, block) +// [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")) } -// 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) +// [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")) +} + +// 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 } -// Determines whether it’s valid to associate another input’s track with this input’s track. [Full Topic] +// The natural display dimensions of the output’s visual media. [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:"), objc.Ptr(input), trackAssociationType) +// [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 } -// Marks the input as finished to indicate that you’re done appending samples to it. [Full Topic] +// The natural display dimensions of the output’s visual media. [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")) +// [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) } -// An object that describes the requirements for the current pass. [Full Topic] +// 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/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/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 is ready to accept media data. [Full Topic] +// 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/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/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] +// +// [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 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 @@ -210,26 +269,11 @@ func (a_ AssetWriterInput) SetExtendedLanguageTag(value string) { objc.Call[objc.Void](a_, objc.Sel("setExtendedLanguageTag:"), value) } -// 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) 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] +// 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/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/1387647-sourceformathint?language=objc +func (a_ AssetWriterInput) SourceFormatHint() coremedia.FormatDescriptionRef { + rv := objc.Call[coremedia.FormatDescriptionRef](a_, objc.Sel("sourceFormatHint")) return rv } @@ -248,74 +292,30 @@ func (a_ AssetWriterInput) SetPreferredMediaChunkAlignment(value int) { objc.Call[objc.Void](a_, objc.Sel("setPreferredMediaChunkAlignment:"), 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() float64 { - rv := objc.Call[float64](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 float64) { - 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 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) -} - -// 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 media type of the samples that the input accepts. [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/1385565-mediatype?language=objc -func (a_ AssetWriterInput) MediaType() MediaType { - rv := objc.Call[MediaType](a_, objc.Sel("mediaType")) +// [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 base URL sample references are relative to. [Full Topic] +// The settings to use for encoding media data you append to the output. [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/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 } -// 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:"), objc.Ptr(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,27 +331,19 @@ func (a_ AssetWriterInput) SetMarksOutputTrackAsEnabled(value bool) { objc.Call[objc.Void](a_, objc.Sel("setMarksOutputTrackAsEnabled:"), value) } -// The natural display dimensions of the output’s visual media. [Full Topic] +// The base URL sample references are relative to. [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/1386316-samplereferencebaseurl?language=objc +func (a_ AssetWriterInput) SampleReferenceBaseURL() foundation.URL { + rv := objc.Call[foundation.URL](a_, objc.Sel("sampleReferenceBaseURL")) return rv } -// The natural display dimensions of the output’s visual media. [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) -} - -// A Boolean value that indicates whether the input may perform multiple passes over appended media data. [Full Topic] +// The base URL sample references are relative to. [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 +// [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:"), objc.Ptr(value)) } // The time scale of the track in the output file. [Full Topic] @@ -369,21 +361,6 @@ 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 @@ -414,14 +391,44 @@ func (a_ AssetWriterInput) SetLanguageCode(value string) { objc.Call[objc.Void](a_, objc.Sel("setLanguageCode:"), value) } -// A hint about the format of the sample buffers to append to the input. [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/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/1389949-preferredvolume?language=objc +func (a_ AssetWriterInput) PreferredVolume() float64 { + rv := objc.Call[float64](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 float64) { + 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] +// +// [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) +} + // 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 @@ -436,3 +443,18 @@ 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 c4c84a6a..d246cac3 100644 --- a/macos/avfoundation/asset_writer_input_caption_adaptor.gen.go +++ b/macos/avfoundation/asset_writer_input_caption_adaptor.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package avfoundation @@ -36,6 +36,18 @@ func AssetWriterInputCaptionAdaptorFrom(ptr unsafe.Pointer) AssetWriterInputCapt } } +func (ac _AssetWriterInputCaptionAdaptorClass) AssetWriterInputCaptionAdaptorWithAssetWriterInput(input IAssetWriterInput) AssetWriterInputCaptionAdaptor { + rv := objc.Call[AssetWriterInputCaptionAdaptor](ac, objc.Sel("assetWriterInputCaptionAdaptorWithAssetWriterInput:"), objc.Ptr(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:"), objc.Ptr(input)) return rv @@ -50,27 +62,11 @@ func NewAssetWriterInputCaptionAdaptorWithAssetWriterInput(input IAssetWriterInp return instance } -func (ac _AssetWriterInputCaptionAdaptorClass) AssetWriterInputCaptionAdaptorWithAssetWriterInput(input IAssetWriterInput) AssetWriterInputCaptionAdaptor { - rv := objc.Call[AssetWriterInputCaptionAdaptor](ac, objc.Sel("assetWriterInputCaptionAdaptorWithAssetWriterInput:"), objc.Ptr(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 } -func AssetWriterInputCaptionAdaptor_Alloc() AssetWriterInputCaptionAdaptor { - return AssetWriterInputCaptionAdaptorClass.Alloc() -} - func (ac _AssetWriterInputCaptionAdaptorClass) New() AssetWriterInputCaptionAdaptor { rv := objc.Call[AssetWriterInputCaptionAdaptor](ac, objc.Sel("new")) rv.Autorelease() diff --git a/macos/avfoundation/asset_writer_input_group.gen.go b/macos/avfoundation/asset_writer_input_group.gen.go index cf0badbb..6ebee163 100644 --- a/macos/avfoundation/asset_writer_input_group.gen.go +++ b/macos/avfoundation/asset_writer_input_group.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package avfoundation @@ -18,8 +18,8 @@ type _AssetWriterInputGroupClass struct { // An interface definition for the [AssetWriterInputGroup] class. type IAssetWriterInputGroup interface { IMediaSelectionGroup - DefaultInput() AssetWriterInput Inputs() []AssetWriterInput + DefaultInput() AssetWriterInput } // A group of inputs with tracks that are mutually exclusive to each other for playback or processing. [Full Topic] @@ -66,10 +66,6 @@ func (ac _AssetWriterInputGroupClass) Alloc() AssetWriterInputGroup { return rv } -func AssetWriterInputGroup_Alloc() AssetWriterInputGroup { - return AssetWriterInputGroupClass.Alloc() -} - func (ac _AssetWriterInputGroupClass) New() AssetWriterInputGroup { rv := objc.Call[AssetWriterInputGroup](ac, objc.Sel("new")) rv.Autorelease() @@ -85,14 +81,6 @@ func (a_ AssetWriterInputGroup) Init() AssetWriterInputGroup { return rv } -// The default input for the group. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avassetwriterinputgroup/1389698-defaultinput?language=objc -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 @@ -100,3 +88,11 @@ 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 +func (a_ AssetWriterInputGroup) DefaultInput() AssetWriterInput { + rv := objc.Call[AssetWriterInput](a_, objc.Sel("defaultInput")) + return rv +} diff --git a/macos/avfoundation/asset_writer_input_metadata_adaptor.gen.go b/macos/avfoundation/asset_writer_input_metadata_adaptor.gen.go index bf261ca7..f7d333ae 100644 --- a/macos/avfoundation/asset_writer_input_metadata_adaptor.gen.go +++ b/macos/avfoundation/asset_writer_input_metadata_adaptor.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package avfoundation @@ -66,10 +66,6 @@ func (ac _AssetWriterInputMetadataAdaptorClass) Alloc() AssetWriterInputMetadata return rv } -func AssetWriterInputMetadataAdaptor_Alloc() AssetWriterInputMetadataAdaptor { - return AssetWriterInputMetadataAdaptorClass.Alloc() -} - func (ac _AssetWriterInputMetadataAdaptorClass) New() AssetWriterInputMetadataAdaptor { rv := objc.Call[AssetWriterInputMetadataAdaptor](ac, objc.Sel("new")) rv.Autorelease() diff --git a/macos/avfoundation/asset_writer_input_pass_description.gen.go b/macos/avfoundation/asset_writer_input_pass_description.gen.go index ed4ce1ec..cca762c5 100644 --- a/macos/avfoundation/asset_writer_input_pass_description.gen.go +++ b/macos/avfoundation/asset_writer_input_pass_description.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package avfoundation @@ -40,10 +40,6 @@ func (ac _AssetWriterInputPassDescriptionClass) Alloc() AssetWriterInputPassDesc return rv } -func AssetWriterInputPassDescription_Alloc() AssetWriterInputPassDescription { - return AssetWriterInputPassDescriptionClass.Alloc() -} - func (ac _AssetWriterInputPassDescriptionClass) New() AssetWriterInputPassDescription { rv := objc.Call[AssetWriterInputPassDescription](ac, objc.Sel("new")) rv.Autorelease() 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 513ef9e1..8c006fbe 100644 --- a/macos/avfoundation/asset_writer_input_pixel_buffer_adaptor.gen.go +++ b/macos/avfoundation/asset_writer_input_pixel_buffer_adaptor.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package avfoundation @@ -21,9 +21,9 @@ type _AssetWriterInputPixelBufferAdaptorClass struct { type IAssetWriterInputPixelBufferAdaptor interface { objc.IObject AppendPixelBufferWithPresentationTime(pixelBuffer corevideo.PixelBufferRef, presentationTime coremedia.Time) bool - AssetWriterInput() AssetWriterInput - SourcePixelBufferAttributes() map[string]objc.Object PixelBufferPool() corevideo.PixelBufferPoolRef + SourcePixelBufferAttributes() map[string]objc.Object + AssetWriterInput() AssetWriterInput } // An object that appends video samples to an asset writer input. [Full Topic] @@ -70,10 +70,6 @@ func (ac _AssetWriterInputPixelBufferAdaptorClass) Alloc() AssetWriterInputPixel return rv } -func AssetWriterInputPixelBufferAdaptor_Alloc() AssetWriterInputPixelBufferAdaptor { - return AssetWriterInputPixelBufferAdaptorClass.Alloc() -} - func (ac _AssetWriterInputPixelBufferAdaptorClass) New() AssetWriterInputPixelBufferAdaptor { rv := objc.Call[AssetWriterInputPixelBufferAdaptor](ac, objc.Sel("new")) rv.Autorelease() @@ -97,11 +93,11 @@ func (a_ AssetWriterInputPixelBufferAdaptor) AppendPixelBufferWithPresentationTi 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 } @@ -113,10 +109,10 @@ func (a_ AssetWriterInputPixelBufferAdaptor) SourcePixelBufferAttributes() map[s 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 } diff --git a/macos/avfoundation/asynchronous_ci_image_filtering_request.gen.go b/macos/avfoundation/asynchronous_ci_image_filtering_request.gen.go index ff76f5fa..6788316d 100644 --- a/macos/avfoundation/asynchronous_ci_image_filtering_request.gen.go +++ b/macos/avfoundation/asynchronous_ci_image_filtering_request.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package avfoundation @@ -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] @@ -47,10 +47,6 @@ func (ac _AsynchronousCIImageFilteringRequestClass) Alloc() AsynchronousCIImageF return rv } -func AsynchronousCIImageFilteringRequest_Alloc() AsynchronousCIImageFilteringRequest { - return AsynchronousCIImageFilteringRequestClass.Alloc() -} - func (ac _AsynchronousCIImageFilteringRequestClass) New() AsynchronousCIImageFilteringRequest { rv := objc.Call[AsynchronousCIImageFilteringRequest](ac, objc.Sel("new")) rv.Autorelease() @@ -80,14 +76,6 @@ func (a_ AsynchronousCIImageFilteringRequest) FinishWithError(error foundation.I objc.Call[objc.Void](a_, objc.Sel("finishWithError:"), objc.Ptr(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 @@ -103,3 +91,11 @@ 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.gen.go b/macos/avfoundation/asynchronous_key_value_loading_protocol.gen.go similarity index 69% rename from macos/avfoundation/asynchronous_key_value_loading.gen.go rename to macos/avfoundation/asynchronous_key_value_loading_protocol.gen.go index 02d60408..caa370a2 100644 --- a/macos/avfoundation/asynchronous_key_value_loading.gen.go +++ b/macos/avfoundation/asynchronous_key_value_loading_protocol.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package avfoundation @@ -11,39 +11,42 @@ import ( // // [Full Topic]: https://developer.apple.com/documentation/avfoundation/avasynchronouskeyvalueloading?language=objc type PAsynchronousKeyValueLoading interface { - // optional - StatusOfValueForKeyError(key string, outError foundation.Error) KeyValueStatus - HasStatusOfValueForKeyError() bool - // optional LoadValuesAsynchronouslyForKeysCompletionHandler(keys []string, handler func()) HasLoadValuesAsynchronouslyForKeysCompletionHandler() bool -} -// A concrete type wrapper for the [PAsynchronousKeyValueLoading] protocol. -type AsynchronousKeyValueLoadingWrapper struct { - objc.Object + // optional + StatusOfValueForKeyError(key string, outError foundation.Error) KeyValueStatus + HasStatusOfValueForKeyError() bool } -func (a_ AsynchronousKeyValueLoadingWrapper) HasStatusOfValueForKeyError() bool { - return a_.RespondsToSelector(objc.Sel("statusOfValueForKey:error:")) -} +// ensure impl type implements protocol interface +var _ PAsynchronousKeyValueLoading = (*AsynchronousKeyValueLoadingObject)(nil) -// Returns a status that indicates whether a property value is immediately available without blocking the calling thread. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avasynchronouskeyvalueloading/1386816-statusofvalueforkey?language=objc -func (a_ AsynchronousKeyValueLoadingWrapper) StatusOfValueForKeyError(key string, outError foundation.IError) KeyValueStatus { - rv := objc.Call[KeyValueStatus](a_, objc.Sel("statusOfValueForKey:error:"), key, objc.Ptr(outError)) - return rv +// A concrete type for the [PAsynchronousKeyValueLoading] protocol. +type AsynchronousKeyValueLoadingObject struct { + objc.Object } -func (a_ AsynchronousKeyValueLoadingWrapper) HasLoadValuesAsynchronouslyForKeysCompletionHandler() bool { +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_ AsynchronousKeyValueLoadingWrapper) LoadValuesAsynchronouslyForKeysCompletionHandler(keys []string, handler func()) { +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:")) +} + +// Returns a status that indicates whether a property value is immediately available without blocking the calling thread. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avasynchronouskeyvalueloading/1386816-statusofvalueforkey?language=objc +func (a_ AsynchronousKeyValueLoadingObject) StatusOfValueForKeyError(key string, outError foundation.Error) KeyValueStatus { + rv := objc.Call[KeyValueStatus](a_, objc.Sel("statusOfValueForKey:error:"), key, objc.Ptr(outError)) + return rv +} diff --git a/macos/avfoundation/asynchronous_video_composition_request.gen.go b/macos/avfoundation/asynchronous_video_composition_request.gen.go index bbfdc52e..e9127dc8 100644 --- a/macos/avfoundation/asynchronous_video_composition_request.gen.go +++ b/macos/avfoundation/asynchronous_video_composition_request.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package avfoundation @@ -21,17 +21,17 @@ type _AsynchronousVideoCompositionRequestClass struct { // An interface definition for the [AsynchronousVideoCompositionRequest] class. type IAsynchronousVideoCompositionRequest interface { objc.IObject - SourceFrameByTrackID(trackID objc.IObject) corevideo.PixelBufferRef - FinishWithComposedVideoFrame(composedVideoFrame corevideo.PixelBufferRef) + FinishCancelledRequest() SourceTimedMetadataByTrackID(trackID objc.IObject) TimedMetadataGroup SourceSampleBufferByTrackID(trackID objc.IObject) coremedia.SampleBufferRef + FinishWithComposedVideoFrame(composedVideoFrame corevideo.PixelBufferRef) FinishWithError(error foundation.IError) - FinishCancelledRequest() - VideoCompositionInstruction() objc.Object + SourceFrameByTrackID(trackID objc.IObject) corevideo.PixelBufferRef SourceSampleDataTrackIDs() []foundation.Number - SourceTrackIDs() []foundation.Number + VideoCompositionInstruction() objc.Object 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] @@ -52,10 +52,6 @@ func (ac _AsynchronousVideoCompositionRequestClass) Alloc() AsynchronousVideoCom return rv } -func AsynchronousVideoCompositionRequest_Alloc() AsynchronousVideoCompositionRequest { - return AsynchronousVideoCompositionRequestClass.Alloc() -} - func (ac _AsynchronousVideoCompositionRequestClass) New() AsynchronousVideoCompositionRequest { rv := objc.Call[AsynchronousVideoCompositionRequest](ac, objc.Sel("new")) rv.Autorelease() @@ -71,19 +67,11 @@ func (a_ AsynchronousVideoCompositionRequest) Init() AsynchronousVideoCompositio return rv } -// Returns a source pixel buffer for the track that contains the specified identifier. [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:"), objc.Ptr(trackID)) - return rv -} - -// Finishes the request to compose the frame. [Full Topic] +// Cancels the request to compose a video 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) +// [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")) } // Returns a source timed metadata group for the track that contains the specified identifier. [Full Topic] @@ -102,6 +90,13 @@ 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 @@ -109,18 +104,11 @@ func (a_ AsynchronousVideoCompositionRequest) FinishWithError(error foundation.I objc.Call[objc.Void](a_, objc.Sel("finishWithError:"), objc.Ptr(error)) } -// Cancels the request to compose a video frame. [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")) -} - -// A video composition instruction that indicates how to compose the 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/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/1390379-sourceframebytrackid?language=objc +func (a_ AsynchronousVideoCompositionRequest) SourceFrameByTrackID(trackID objc.IObject) corevideo.PixelBufferRef { + rv := objc.Call[corevideo.PixelBufferRef](a_, objc.Sel("sourceFrameByTrackID:"), objc.Ptr(trackID)) return rv } @@ -132,11 +120,11 @@ func (a_ AsynchronousVideoCompositionRequest) SourceSampleDataTrackIDs() []found return rv } -// The identifiers of tracks that contain source video. [Full Topic] +// A video composition instruction that indicates how to compose the frame. [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")) +// [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 } @@ -155,3 +143,11 @@ 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.gen.go b/macos/avfoundation/audio_mix.gen.go index ca06745e..67739b92 100644 --- a/macos/avfoundation/audio_mix.gen.go +++ b/macos/avfoundation/audio_mix.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package avfoundation @@ -39,10 +39,6 @@ func (ac _AudioMixClass) Alloc() AudioMix { return rv } -func AudioMix_Alloc() AudioMix { - return AudioMixClass.Alloc() -} - func (ac _AudioMixClass) New() AudioMix { rv := objc.Call[AudioMix](ac, objc.Sel("new")) rv.Autorelease() diff --git a/macos/avfoundation/audio_mix_input_parameters.gen.go b/macos/avfoundation/audio_mix_input_parameters.gen.go index 6cbfa6c1..8cfa37de 100644 --- a/macos/avfoundation/audio_mix_input_parameters.gen.go +++ b/macos/avfoundation/audio_mix_input_parameters.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package avfoundation @@ -20,9 +20,9 @@ type _AudioMixInputParametersClass struct { type IAudioMixInputParameters interface { objc.IObject GetVolumeRampForTimeStartVolumeEndVolumeTimeRange(time coremedia.Time, startVolume *float64, endVolume *float64, timeRange *coremedia.TimeRange) bool - AudioTimePitchAlgorithm() AudioTimePitchAlgorithm - TrackID() objc.Object AudioTapProcessor() objc.Object + TrackID() objc.Object + AudioTimePitchAlgorithm() AudioTimePitchAlgorithm } // An object that represents the parameters that you apply when adding an audio track to a mix. [Full Topic] @@ -43,10 +43,6 @@ func (ac _AudioMixInputParametersClass) Alloc() AudioMixInputParameters { return rv } -func AudioMixInputParameters_Alloc() AudioMixInputParameters { - return AudioMixInputParametersClass.Alloc() -} - func (ac _AudioMixInputParametersClass) New() AudioMixInputParameters { rv := objc.Call[AudioMixInputParameters](ac, objc.Sel("new")) rv.Autorelease() @@ -70,11 +66,11 @@ func (a_ AudioMixInputParameters) GetVolumeRampForTimeStartVolumeEndVolumeTimeRa 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 } @@ -86,10 +82,10 @@ func (a_ AudioMixInputParameters) TrackID() objc.Object { 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 } diff --git a/macos/avfoundation/camera_calibration_data.gen.go b/macos/avfoundation/camera_calibration_data.gen.go index 052c748d..e96df3b3 100644 --- a/macos/avfoundation/camera_calibration_data.gen.go +++ b/macos/avfoundation/camera_calibration_data.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package avfoundation @@ -20,13 +20,13 @@ type _CameraCalibrationDataClass struct { // An interface definition for the [CameraCalibrationData] class. type ICameraCalibrationData interface { objc.IObject - LensDistortionCenter() coregraphics.Point - InverseLensDistortionLookupTable() []byte - LensDistortionLookupTable() []byte - IntrinsicMatrixReferenceDimensions() coregraphics.Size + PixelSize() float64 IntrinsicMatrix() kernel.Matrix_float3x3 + InverseLensDistortionLookupTable() []byte + LensDistortionCenter() coregraphics.Point ExtrinsicMatrix() kernel.Matrix_float4x3 - PixelSize() float64 + IntrinsicMatrixReferenceDimensions() coregraphics.Size + LensDistortionLookupTable() []byte } // Information about the camera characteristics used to capture images and depth data. [Full Topic] @@ -47,10 +47,6 @@ func (cc _CameraCalibrationDataClass) Alloc() CameraCalibrationData { return rv } -func CameraCalibrationData_Alloc() CameraCalibrationData { - return CameraCalibrationDataClass.Alloc() -} - func (cc _CameraCalibrationDataClass) New() CameraCalibrationData { rv := objc.Call[CameraCalibrationData](cc, objc.Sel("new")) rv.Autorelease() @@ -66,43 +62,35 @@ func (c_ CameraCalibrationData) Init() CameraCalibrationData { 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 map of floating-point values describing radial distortions for use in reapplying camera geometry to a rectified image. [Full Topic] +// The size, in millimeters, of one image pixel. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avcameracalibrationdata/2881132-inverselensdistortionlookuptable?language=objc -func (c_ CameraCalibrationData) InverseLensDistortionLookupTable() []byte { - rv := objc.Call[[]byte](c_, objc.Sel("inverseLensDistortionLookupTable")) +// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avcameracalibrationdata/2881128-pixelsize?language=objc +func (c_ CameraCalibrationData) PixelSize() float64 { + rv := objc.Call[float64](c_, objc.Sel("pixelSize")) 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 } -// The image dimensions to which the camera’s intrinsic matrix values are relative. [Full Topic] +// A map of floating-point values describing radial distortions for use in reapplying camera geometry to a rectified image. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avcameracalibrationdata/2881134-intrinsicmatrixreferencedimensio?language=objc -func (c_ CameraCalibrationData) IntrinsicMatrixReferenceDimensions() coregraphics.Size { - rv := objc.Call[coregraphics.Size](c_, objc.Sel("intrinsicMatrixReferenceDimensions")) +// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avcameracalibrationdata/2881132-inverselensdistortionlookuptable?language=objc +func (c_ CameraCalibrationData) InverseLensDistortionLookupTable() []byte { + rv := objc.Call[[]byte](c_, objc.Sel("inverseLensDistortionLookupTable")) 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 } @@ -114,10 +102,18 @@ func (c_ CameraCalibrationData) ExtrinsicMatrix() kernel.Matrix_float4x3 { return rv } -// The size, in millimeters, of one image pixel. [Full Topic] +// The image dimensions to which the camera’s intrinsic matrix values are relative. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avcameracalibrationdata/2881128-pixelsize?language=objc -func (c_ CameraCalibrationData) PixelSize() float64 { - rv := objc.Call[float64](c_, objc.Sel("pixelSize")) +// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avcameracalibrationdata/2881134-intrinsicmatrixreferencedimensio?language=objc +func (c_ CameraCalibrationData) IntrinsicMatrixReferenceDimensions() coregraphics.Size { + rv := objc.Call[coregraphics.Size](c_, objc.Sel("intrinsicMatrixReferenceDimensions")) + return rv +} + +// 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/2881129-lensdistortionlookuptable?language=objc +func (c_ CameraCalibrationData) LensDistortionLookupTable() []byte { + rv := objc.Call[[]byte](c_, objc.Sel("lensDistortionLookupTable")) return rv } diff --git a/macos/avfoundation/caption.gen.go b/macos/avfoundation/caption.gen.go index c616edb0..090185a9 100644 --- a/macos/avfoundation/caption.gen.go +++ b/macos/avfoundation/caption.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package avfoundation @@ -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 - TextColorAtIndexRange(index int, outRange *foundation.Range) coregraphics.ColorRef - FontWeightAtIndexRange(index int, outRange *foundation.Range) CaptionFontWeight + BackgroundColorAtIndexRange(index int, outRange *foundation.Range) coregraphics.ColorRef FontStyleAtIndexRange(index int, outRange *foundation.Range) CaptionFontStyle + DecorationAtIndexRange(index int, outRange *foundation.Range) CaptionDecoration RubyAtIndexRange(index int, outRange *foundation.Range) CaptionRuby - BackgroundColorAtIndexRange(index int, outRange *foundation.Range) coregraphics.ColorRef - Animation() CaptionAnimation + FontWeightAtIndexRange(index int, outRange *foundation.Range) CaptionFontWeight + TextColorAtIndexRange(index int, outRange *foundation.Range) coregraphics.ColorRef TextAlignment() CaptionTextAlignment - TimeRange() coremedia.TimeRange Region() CaptionRegion + TimeRange() coremedia.TimeRange + Animation() CaptionAnimation Text() string } @@ -67,10 +67,6 @@ func (cc _CaptionClass) Alloc() Caption { return rv } -func Caption_Alloc() Caption { - return CaptionClass.Alloc() -} - func (cc _CaptionClass) New() Caption { rv := objc.Call[Caption](cc, objc.Sel("new")) rv.Autorelease() @@ -86,14 +82,6 @@ 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 @@ -102,19 +90,11 @@ func (c_ Caption) TextCombineAtIndexRange(index int, outRange *foundation.Range) return rv } -// Returns the text color at the index position. [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) - 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 } @@ -126,6 +106,14 @@ func (c_ Caption) FontStyleAtIndexRange(index int, outRange *foundation.Range) C 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 ruby text at the index position. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/avfoundation/avcaption/3752822-rubyatindex?language=objc @@ -134,19 +122,19 @@ func (c_ Caption) RubyAtIndexRange(index int, outRange *foundation.Range) Captio return rv } -// Returns the background color 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/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/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 } -// The animation that the system applies to this caption. [Full Topic] +// Returns the text color at the index position. [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/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 } @@ -158,6 +146,14 @@ 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 @@ -166,11 +162,11 @@ func (c_ Caption) TimeRange() coremedia.TimeRange { return rv } -// The region in which the caption exists. [Full Topic] +// The animation that the system applies to this caption. [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")) +// [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 } diff --git a/macos/avfoundation/caption_conversion_adjustment.gen.go b/macos/avfoundation/caption_conversion_adjustment.gen.go index f41db49b..a1e0f30f 100644 --- a/macos/avfoundation/caption_conversion_adjustment.gen.go +++ b/macos/avfoundation/caption_conversion_adjustment.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package avfoundation @@ -39,10 +39,6 @@ func (cc _CaptionConversionAdjustmentClass) Alloc() CaptionConversionAdjustment return rv } -func CaptionConversionAdjustment_Alloc() CaptionConversionAdjustment { - return CaptionConversionAdjustmentClass.Alloc() -} - func (cc _CaptionConversionAdjustmentClass) New() CaptionConversionAdjustment { rv := objc.Call[CaptionConversionAdjustment](cc, objc.Sel("new")) rv.Autorelease() diff --git a/macos/avfoundation/caption_conversion_time_range_adjustment.gen.go b/macos/avfoundation/caption_conversion_time_range_adjustment.gen.go index ea1eb247..4e12f69a 100644 --- a/macos/avfoundation/caption_conversion_time_range_adjustment.gen.go +++ b/macos/avfoundation/caption_conversion_time_range_adjustment.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package avfoundation @@ -41,10 +41,6 @@ func (cc _CaptionConversionTimeRangeAdjustmentClass) Alloc() CaptionConversionTi return rv } -func CaptionConversionTimeRangeAdjustment_Alloc() CaptionConversionTimeRangeAdjustment { - return CaptionConversionTimeRangeAdjustmentClass.Alloc() -} - func (cc _CaptionConversionTimeRangeAdjustmentClass) New() CaptionConversionTimeRangeAdjustment { rv := objc.Call[CaptionConversionTimeRangeAdjustment](cc, objc.Sel("new")) rv.Autorelease() diff --git a/macos/avfoundation/caption_conversion_validator.gen.go b/macos/avfoundation/caption_conversion_validator.gen.go index 84fdfbef..0a70b97f 100644 --- a/macos/avfoundation/caption_conversion_validator.gen.go +++ b/macos/avfoundation/caption_conversion_validator.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package avfoundation @@ -21,10 +21,10 @@ type ICaptionConversionValidator interface { objc.IObject StopValidating() ValidateCaptionConversionWithWarningHandler(handler func(warning CaptionConversionWarning)) - Captions() []Caption + Warnings() []CaptionConversionWarning TimeRange() coremedia.TimeRange Status() CaptionConversionValidatorStatus - Warnings() []CaptionConversionWarning + Captions() []Caption } // An object that validates captions for a conversion operation. [Full Topic] @@ -71,10 +71,6 @@ func (cc _CaptionConversionValidatorClass) Alloc() CaptionConversionValidator { return rv } -func CaptionConversionValidator_Alloc() CaptionConversionValidator { - return CaptionConversionValidatorClass.Alloc() -} - func (cc _CaptionConversionValidatorClass) New() CaptionConversionValidator { rv := objc.Call[CaptionConversionValidator](cc, objc.Sel("new")) rv.Autorelease() @@ -104,11 +100,11 @@ func (c_ CaptionConversionValidator) ValidateCaptionConversionWithWarningHandler objc.Call[objc.Void](c_, objc.Sel("validateCaptionConversionWithWarningHandler:"), handler) } -// 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 } @@ -128,10 +124,10 @@ func (c_ CaptionConversionValidator) Status() CaptionConversionValidatorStatus { return rv } -// 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 } diff --git a/macos/avfoundation/caption_conversion_warning.gen.go b/macos/avfoundation/caption_conversion_warning.gen.go index 72a1f0a5..643e50bc 100644 --- a/macos/avfoundation/caption_conversion_warning.gen.go +++ b/macos/avfoundation/caption_conversion_warning.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package avfoundation @@ -19,9 +19,9 @@ type _CaptionConversionWarningClass struct { // An interface definition for the [CaptionConversionWarning] class. type ICaptionConversionWarning interface { objc.IObject - WarningType() CaptionConversionWarningType - RangeOfCaptions() foundation.Range Adjustment() CaptionConversionAdjustment + RangeOfCaptions() foundation.Range + WarningType() CaptionConversionWarningType } // An object that represents a conversion warning produced by a validator. [Full Topic] @@ -42,10 +42,6 @@ func (cc _CaptionConversionWarningClass) Alloc() CaptionConversionWarning { return rv } -func CaptionConversionWarning_Alloc() CaptionConversionWarning { - return CaptionConversionWarningClass.Alloc() -} - func (cc _CaptionConversionWarningClass) New() CaptionConversionWarning { rv := objc.Call[CaptionConversionWarning](cc, objc.Sel("new")) rv.Autorelease() @@ -61,11 +57,11 @@ func (c_ CaptionConversionWarning) Init() CaptionConversionWarning { 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 } @@ -77,10 +73,10 @@ func (c_ CaptionConversionWarning) RangeOfCaptions() foundation.Range { 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 } diff --git a/macos/avfoundation/caption_format_conformer.gen.go b/macos/avfoundation/caption_format_conformer.gen.go index 496335fd..9a6302a4 100644 --- a/macos/avfoundation/caption_format_conformer.gen.go +++ b/macos/avfoundation/caption_format_conformer.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package avfoundation @@ -68,10 +68,6 @@ func (cc _CaptionFormatConformerClass) Alloc() CaptionFormatConformer { return rv } -func CaptionFormatConformer_Alloc() CaptionFormatConformer { - return CaptionFormatConformerClass.Alloc() -} - func (cc _CaptionFormatConformerClass) New() CaptionFormatConformer { rv := objc.Call[CaptionFormatConformer](cc, objc.Sel("new")) rv.Autorelease() diff --git a/macos/avfoundation/caption_group.gen.go b/macos/avfoundation/caption_group.gen.go index 3a09e8fc..d5928c28 100644 --- a/macos/avfoundation/caption_group.gen.go +++ b/macos/avfoundation/caption_group.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package avfoundation @@ -19,8 +19,8 @@ type _CaptionGroupClass struct { // An interface definition for the [CaptionGroup] class. type ICaptionGroup interface { objc.IObject - Captions() []Caption TimeRange() coremedia.TimeRange + Captions() []Caption } // An object that represents zero or more captions that intersect in time. [Full Topic] @@ -69,10 +69,6 @@ func (cc _CaptionGroupClass) Alloc() CaptionGroup { return rv } -func CaptionGroup_Alloc() CaptionGroup { - return CaptionGroupClass.Alloc() -} - func (cc _CaptionGroupClass) New() CaptionGroup { rv := objc.Call[CaptionGroup](cc, objc.Sel("new")) rv.Autorelease() @@ -88,14 +84,6 @@ func (c_ CaptionGroup) Init() CaptionGroup { return rv } -// The captions associated with the caption group. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avcaptiongroup/3752960-captions?language=objc -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 @@ -103,3 +91,11 @@ 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 +func (c_ CaptionGroup) Captions() []Caption { + rv := objc.Call[[]Caption](c_, objc.Sel("captions")) + return rv +} diff --git a/macos/avfoundation/caption_grouper.gen.go b/macos/avfoundation/caption_grouper.gen.go index 486b6f8d..77fd2626 100644 --- a/macos/avfoundation/caption_grouper.gen.go +++ b/macos/avfoundation/caption_grouper.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package avfoundation @@ -19,8 +19,8 @@ type _CaptionGrouperClass struct { // An interface definition for the [CaptionGrouper] class. type ICaptionGrouper interface { objc.IObject - AddCaption(input ICaption) FlushAddedCaptionsIntoGroupsUpToTime(upToTime coremedia.Time) []CaptionGroup + AddCaption(input ICaption) } // An object that analyzes the temporal overlaps of caption objects to create caption groups for each span of concurrent captions. [Full Topic] @@ -41,10 +41,6 @@ func (cc _CaptionGrouperClass) Alloc() CaptionGrouper { return rv } -func CaptionGrouper_Alloc() CaptionGrouper { - return CaptionGrouperClass.Alloc() -} - func (cc _CaptionGrouperClass) New() CaptionGrouper { rv := objc.Call[CaptionGrouper](cc, objc.Sel("new")) rv.Autorelease() @@ -60,13 +56,6 @@ 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:"), objc.Ptr(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 @@ -74,3 +63,10 @@ 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:"), objc.Ptr(input)) +} diff --git a/macos/avfoundation/caption_region.gen.go b/macos/avfoundation/caption_region.gen.go index 8260807c..71a095c5 100644 --- a/macos/avfoundation/caption_region.gen.go +++ b/macos/avfoundation/caption_region.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package avfoundation @@ -18,12 +18,12 @@ type _CaptionRegionClass struct { // An interface definition for the [CaptionRegion] class. type ICaptionRegion interface { objc.IObject - Origin() CaptionPoint - Scroll() CaptionRegionScroll - WritingMode() CaptionRegionWritingMode Identifier() string - Size() CaptionSize + Scroll() CaptionRegionScroll DisplayAlignment() CaptionRegionDisplayAlignment + Origin() CaptionPoint + Size() CaptionSize + WritingMode() CaptionRegionWritingMode } // An object that represents the region in which the system presents a caption. [Full Topic] @@ -44,10 +44,6 @@ func (cc _CaptionRegionClass) Alloc() CaptionRegion { return rv } -func CaptionRegion_Alloc() CaptionRegion { - return CaptionRegionClass.Alloc() -} - func (cc _CaptionRegionClass) New() CaptionRegion { rv := objc.Call[CaptionRegion](cc, objc.Sel("new")) rv.Autorelease() @@ -63,42 +59,42 @@ func (c_ CaptionRegion) Init() CaptionRegion { return rv } -// The bottom caption region for SubRip Text (SRT) format captions. [Full Topic] +// The bottom 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")) +// [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 bottom caption region for SubRip Text (SRT) format captions. [Full Topic] +// The bottom region for iTT format captions. [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/3857623-appleittbottomregion?language=objc +func CaptionRegion_AppleITTBottomRegion() CaptionRegion { + return CaptionRegionClass.AppleITTBottomRegion() } -// The right region for iTT format captions. [Full Topic] +// A string that identifies the region. [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")) +// [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 right 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/3857625-appleittrightregion?language=objc -func CaptionRegion_AppleITTRightRegion() CaptionRegion { - return CaptionRegionClass.AppleITTRightRegion() +// [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 region’s top-left position. [Full Topic] +// The bottom caption region for SubRip Text (SRT) 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")) - return rv +// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avcaptionregion/3857629-subriptextbottomregion?language=objc +func CaptionRegion_SubRipTextBottomRegion() CaptionRegion { + return CaptionRegionClass.SubRipTextBottomRegion() } // The scroll mode of the region. [Full Topic] @@ -109,27 +105,27 @@ func (c_ CaptionRegion) Scroll() CaptionRegionScroll { 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 (cc _CaptionRegionClass) AppleITTTopRegion() CaptionRegion { - rv := objc.Call[CaptionRegion](cc, objc.Sel("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 } -// The top region for iTT format captions. [Full Topic] +// The right region for iTT format captions. [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/3857625-appleittrightregion?language=objc +func (cc _CaptionRegionClass) AppleITTRightRegion() CaptionRegion { + rv := objc.Call[CaptionRegion](cc, objc.Sel("appleITTRightRegion")) + return rv } -// The block and inline progression direction of the region. [Full Topic] +// The right region for iTT format captions. [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")) - return rv +// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avcaptionregion/3857625-appleittrightregion?language=objc +func CaptionRegion_AppleITTRightRegion() CaptionRegion { + return CaptionRegionClass.AppleITTRightRegion() } // The left region for iTT format captions. [Full Topic] @@ -147,41 +143,41 @@ func CaptionRegion_AppleITTLeftRegion() CaptionRegion { return CaptionRegionClass.AppleITTLeftRegion() } -// The bottom region for iTT format captions. [Full Topic] +// The region’s top-left position. [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/3857627-origin?language=objc +func (c_ CaptionRegion) Origin() CaptionPoint { + rv := objc.Call[CaptionPoint](c_, objc.Sel("origin")) return rv } -// The bottom 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/3857623-appleittbottomregion?language=objc -func CaptionRegion_AppleITTBottomRegion() CaptionRegion { - return CaptionRegionClass.AppleITTBottomRegion() +// [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 } -// A string that identifies the region. [Full Topic] +// The block and inline progression direction of the region. [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/3752857-writingmode?language=objc +func (c_ CaptionRegion) WritingMode() CaptionRegionWritingMode { + rv := objc.Call[CaptionRegionWritingMode](c_, objc.Sel("writingMode")) return rv } -// The height and width of the region. [Full Topic] +// The top 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")) +// [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 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")) - return rv +// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avcaptionregion/3857626-appleitttopregion?language=objc +func CaptionRegion_AppleITTTopRegion() CaptionRegion { + return CaptionRegionClass.AppleITTTopRegion() } diff --git a/macos/avfoundation/caption_renderer.gen.go b/macos/avfoundation/caption_renderer.gen.go index 5ae63963..32a6fdab 100644 --- a/macos/avfoundation/caption_renderer.gen.go +++ b/macos/avfoundation/caption_renderer.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package avfoundation @@ -20,8 +20,8 @@ type _CaptionRendererClass struct { // An interface definition for the [CaptionRenderer] class. type ICaptionRenderer interface { objc.IObject - RenderInContextForTime(ctx coregraphics.ContextRef, time coremedia.Time) CaptionSceneChangesInRange(consideredTimeRange coremedia.TimeRange) []CaptionRendererScene + RenderInContextForTime(ctx coregraphics.ContextRef, time coremedia.Time) Captions() []Caption SetCaptions(value []ICaption) Bounds() coregraphics.Rect @@ -46,10 +46,6 @@ func (cc _CaptionRendererClass) Alloc() CaptionRenderer { return rv } -func CaptionRenderer_Alloc() CaptionRenderer { - return CaptionRendererClass.Alloc() -} - func (cc _CaptionRendererClass) New() CaptionRenderer { rv := objc.Call[CaptionRenderer](cc, objc.Sel("new")) rv.Autorelease() @@ -65,13 +61,6 @@ 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 @@ -80,6 +69,13 @@ 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 41eb6823..c3c25aab 100644 --- a/macos/avfoundation/caption_renderer_scene.gen.go +++ b/macos/avfoundation/caption_renderer_scene.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package avfoundation @@ -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] @@ -42,10 +42,6 @@ func (cc _CaptionRendererSceneClass) Alloc() CaptionRendererScene { return rv } -func CaptionRendererScene_Alloc() CaptionRendererScene { - return CaptionRendererSceneClass.Alloc() -} - func (cc _CaptionRendererSceneClass) New() CaptionRendererScene { rv := objc.Call[CaptionRendererScene](cc, objc.Sel("new")) rv.Autorelease() @@ -61,14 +57,6 @@ 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 @@ -84,3 +72,11 @@ 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 17006c43..4081a723 100644 --- a/macos/avfoundation/caption_ruby.gen.go +++ b/macos/avfoundation/caption_ruby.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package avfoundation @@ -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,6 +36,20 @@ 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 @@ -55,10 +69,6 @@ func (cc _CaptionRubyClass) Alloc() CaptionRuby { return rv } -func CaptionRuby_Alloc() CaptionRuby { - return CaptionRubyClass.Alloc() -} - func (cc _CaptionRubyClass) New() CaptionRuby { rv := objc.Call[CaptionRuby](cc, objc.Sel("new")) rv.Autorelease() @@ -74,14 +84,6 @@ 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 @@ -97,3 +99,11 @@ 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 cb67fe8a..96820fe9 100644 --- a/macos/avfoundation/capture_audio_channel.gen.go +++ b/macos/avfoundation/capture_audio_channel.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package avfoundation @@ -20,10 +20,10 @@ type ICaptureAudioChannel interface { objc.IObject Volume() float64 SetVolume(value float64) - AveragePowerLevel() float64 - PeakHoldLevel() float64 IsEnabled() bool SetEnabled(value bool) + AveragePowerLevel() float64 + PeakHoldLevel() float64 } // An object that monitors average and peak power levels for an audio channel in a capture connection. [Full Topic] @@ -44,10 +44,6 @@ func (cc _CaptureAudioChannelClass) Alloc() CaptureAudioChannel { return rv } -func CaptureAudioChannel_Alloc() CaptureAudioChannel { - return CaptureAudioChannelClass.Alloc() -} - func (cc _CaptureAudioChannelClass) New() CaptureAudioChannel { rv := objc.Call[CaptureAudioChannel](cc, objc.Sel("new")) rv.Autorelease() @@ -78,6 +74,21 @@ func (c_ CaptureAudioChannel) SetVolume(value float64) { 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 @@ -93,18 +104,3 @@ func (c_ CaptureAudioChannel) PeakHoldLevel() float64 { rv := objc.Call[float64](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 9f1f45fd..ccb85943 100644 --- a/macos/avfoundation/capture_audio_data_output.gen.go +++ b/macos/avfoundation/capture_audio_data_output.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package avfoundation @@ -19,13 +19,13 @@ 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 - SampleBufferDelegate() CaptureAudioDataOutputSampleBufferDelegateWrapper + SampleBufferDelegate() CaptureAudioDataOutputSampleBufferDelegateObject } // A capture output that records audio and provides access to audio sample buffers as they are recorded. [Full Topic] @@ -41,6 +41,11 @@ 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() @@ -51,28 +56,11 @@ 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 } -func CaptureAudioDataOutput_Alloc() CaptureAudioDataOutput { - return CaptureAudioDataOutputClass.Alloc() -} - -// 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 @@ -88,6 +76,14 @@ func (c_ CaptureAudioDataOutput) SetSampleBufferDelegateObjectQueue(sampleBuffer objc.Call[objc.Void](c_, objc.Sel("setSampleBufferDelegate:queue:"), objc.Ptr(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 @@ -114,7 +110,7 @@ func (c_ CaptureAudioDataOutput) SampleBufferCallbackQueue() dispatch.Queue { // The capture object’s delegate. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/avfoundation/avcaptureaudiodataoutput/1386344-samplebufferdelegate?language=objc -func (c_ CaptureAudioDataOutput) SampleBufferDelegate() CaptureAudioDataOutputSampleBufferDelegateWrapper { - rv := objc.Call[CaptureAudioDataOutputSampleBufferDelegateWrapper](c_, objc.Sel("sampleBufferDelegate")) +func (c_ CaptureAudioDataOutput) SampleBufferDelegate() CaptureAudioDataOutputSampleBufferDelegateObject { + rv := objc.Call[CaptureAudioDataOutputSampleBufferDelegateObject](c_, objc.Sel("sampleBufferDelegate")) return rv } diff --git a/macos/avfoundation/capture_audio_data_output_sample_buffer_delegate.gen.go b/macos/avfoundation/capture_audio_data_output_sample_buffer_delegate.gen.go index ed1f2810..b03330e4 100644 --- a/macos/avfoundation/capture_audio_data_output_sample_buffer_delegate.gen.go +++ b/macos/avfoundation/capture_audio_data_output_sample_buffer_delegate.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package avfoundation @@ -39,18 +39,21 @@ func (di *CaptureAudioDataOutputSampleBufferDelegate) CaptureOutputDidOutputSamp di._CaptureOutputDidOutputSampleBufferFromConnection(output, sampleBuffer, connection) } -// A concrete type wrapper for the [PCaptureAudioDataOutputSampleBufferDelegate] protocol. -type CaptureAudioDataOutputSampleBufferDelegateWrapper struct { +// ensure impl type implements protocol interface +var _ PCaptureAudioDataOutputSampleBufferDelegate = (*CaptureAudioDataOutputSampleBufferDelegateObject)(nil) + +// A concrete type for the [PCaptureAudioDataOutputSampleBufferDelegate] protocol. +type CaptureAudioDataOutputSampleBufferDelegateObject struct { objc.Object } -func (c_ CaptureAudioDataOutputSampleBufferDelegateWrapper) HasCaptureOutputDidOutputSampleBufferFromConnection() bool { +func (c_ CaptureAudioDataOutputSampleBufferDelegateObject) HasCaptureOutputDidOutputSampleBufferFromConnection() bool { return c_.RespondsToSelector(objc.Sel("captureOutput:didOutputSampleBuffer:fromConnection:")) } // Notifies the delegate that a sample buffer was written. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/avfoundation/avcaptureaudiodataoutputsamplebufferdelegate/1386039-captureoutput?language=objc -func (c_ CaptureAudioDataOutputSampleBufferDelegateWrapper) CaptureOutputDidOutputSampleBufferFromConnection(output ICaptureOutput, sampleBuffer coremedia.SampleBufferRef, connection ICaptureConnection) { +func (c_ CaptureAudioDataOutputSampleBufferDelegateObject) CaptureOutputDidOutputSampleBufferFromConnection(output CaptureOutput, sampleBuffer coremedia.SampleBufferRef, connection CaptureConnection) { objc.Call[objc.Void](c_, objc.Sel("captureOutput:didOutputSampleBuffer:fromConnection:"), objc.Ptr(output), sampleBuffer, objc.Ptr(connection)) } diff --git a/macos/avfoundation/capture_audio_file_output.gen.go b/macos/avfoundation/capture_audio_file_output.gen.go index 32d0eae6..041afd5d 100644 --- a/macos/avfoundation/capture_audio_file_output.gen.go +++ b/macos/avfoundation/capture_audio_file_output.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package avfoundation @@ -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) - Metadata() []MetadataItem - SetMetadata(value []IMetadataItem) AudioSettings() map[string]objc.Object SetAudioSettings(value map[string]objc.IObject) + Metadata() []MetadataItem + SetMetadata(value []IMetadataItem) } // A capture output that records audio and saves the recorded audio to a file. [Full Topic] @@ -60,8 +60,19 @@ func (cc _CaptureAudioFileOutputClass) Alloc() CaptureAudioFileOutput { return rv } -func CaptureAudioFileOutput_Alloc() CaptureAudioFileOutput { - return CaptureAudioFileOutputClass.Alloc() +// 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] @@ -79,19 +90,19 @@ func (c_ CaptureAudioFileOutput) StartRecordingToOutputFileURLOutputFileTypeReco objc.Call[objc.Void](c_, objc.Sel("startRecordingToOutputFileURL:outputFileType:recordingDelegate:"), objc.Ptr(outputFileURL), fileType, objc.Ptr(delegateObject)) } -// Returns an array containing UTIs identifying the file types AVCaptureAudioFileOutput can write. [Full Topic] +// 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/1390895-availableoutputfiletypes?language=objc -func (cc _CaptureAudioFileOutputClass) AvailableOutputFileTypes() []FileType { - rv := objc.Call[[]FileType](cc, objc.Sel("availableOutputFileTypes")) +// [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 } -// Returns an array containing UTIs identifying the file types AVCaptureAudioFileOutput can write. [Full Topic] +// 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/1390895-availableoutputfiletypes?language=objc -func CaptureAudioFileOutput_AvailableOutputFileTypes() []FileType { - return CaptureAudioFileOutputClass.AvailableOutputFileTypes() +// [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) } // A collection of metadata to be written to the receiver's output files. [Full Topic] @@ -108,18 +119,3 @@ 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 04321ea8..55e39d17 100644 --- a/macos/avfoundation/capture_audio_preview_output.gen.go +++ b/macos/avfoundation/capture_audio_preview_output.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package avfoundation @@ -18,10 +18,10 @@ type _CaptureAudioPreviewOutputClass struct { // An interface definition for the [CaptureAudioPreviewOutput] class. type ICaptureAudioPreviewOutput interface { ICaptureOutput - Volume() float64 - SetVolume(value float64) OutputDeviceUniqueID() string SetOutputDeviceUniqueID(value string) + Volume() float64 + SetVolume(value float64) } // A capture output that provides a preview of the captured audio. [Full Topic] @@ -57,8 +57,19 @@ func (cc _CaptureAudioPreviewOutputClass) Alloc() CaptureAudioPreviewOutput { return rv } -func CaptureAudioPreviewOutput_Alloc() CaptureAudioPreviewOutput { - return CaptureAudioPreviewOutputClass.Alloc() +// 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] @@ -75,18 +86,3 @@ func (c_ CaptureAudioPreviewOutput) Volume() float64 { func (c_ CaptureAudioPreviewOutput) SetVolume(value float64) { 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 4e3baa2f..eca7f33b 100644 --- a/macos/avfoundation/capture_connection.gen.go +++ b/macos/avfoundation/capture_connection.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package avfoundation @@ -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 - IsVideoMaxFrameDurationSupported() bool - VideoPreviewLayer() CaptureVideoPreviewLayer - IsActive() bool - Output() CaptureOutput VideoMaxFrameDuration() coremedia.Time SetVideoMaxFrameDuration(value coremedia.Time) - IsVideoFieldModeSupported() bool + VideoMinFrameDuration() coremedia.Time + SetVideoMinFrameDuration(value coremedia.Time) + VideoPreviewLayer() CaptureVideoPreviewLayer + IsVideoMirrored() bool + SetVideoMirrored(value bool) + Output() CaptureOutput + InputPorts() []CaptureInputPort + IsActive() bool AutomaticallyAdjustsVideoMirroring() bool SetAutomaticallyAdjustsVideoMirroring(value bool) - IsVideoMinFrameDurationSupported() bool + IsVideoFieldModeSupported() bool + IsVideoMaxFrameDurationSupported() bool + VideoFieldMode() VideoFieldMode + SetVideoFieldMode(value VideoFieldMode) IsEnabled() bool SetEnabled(value bool) - InputPorts() []CaptureInputPort - VideoMinFrameDuration() coremedia.Time - SetVideoMinFrameDuration(value coremedia.Time) + IsVideoMinFrameDurationSupported() bool } // An object that represents a connection from a capture input to a capture output. [Full Topic] @@ -55,18 +55,16 @@ func CaptureConnectionFrom(ptr unsafe.Pointer) CaptureConnection { } } -func (c_ CaptureConnection) InitWithInputPortVideoPreviewLayer(port ICaptureInputPort, layer ICaptureVideoPreviewLayer) CaptureConnection { - rv := objc.Call[CaptureConnection](c_, objc.Sel("initWithInputPort:videoPreviewLayer:"), objc.Ptr(port), objc.Ptr(layer)) +func (cc _CaptureConnectionClass) ConnectionWithInputPortVideoPreviewLayer(port ICaptureInputPort, layer ICaptureVideoPreviewLayer) CaptureConnection { + rv := objc.Call[CaptureConnection](cc, objc.Sel("connectionWithInputPort:videoPreviewLayer:"), objc.Ptr(port), objc.Ptr(layer)) return rv } -// Creates a capture connection that represents a connection between an input port and a video preview layer. [Full Topic] +// 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/1385882-initwithinputport?language=objc -func NewCaptureConnectionWithInputPortVideoPreviewLayer(port ICaptureInputPort, layer ICaptureVideoPreviewLayer) CaptureConnection { - instance := CaptureConnectionClass.Alloc().InitWithInputPortVideoPreviewLayer(port, layer) - instance.Autorelease() - return instance +// [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) ConnectionWithInputPortsOutput(ports []ICaptureInputPort, output ICaptureOutput) CaptureConnection { @@ -81,30 +79,32 @@ func CaptureConnection_ConnectionWithInputPortsOutput(ports []ICaptureInputPort, return CaptureConnectionClass.ConnectionWithInputPortsOutput(ports, output) } -func (c_ CaptureConnection) InitWithInputPortsOutput(ports []ICaptureInputPort, output ICaptureOutput) CaptureConnection { - rv := objc.Call[CaptureConnection](c_, objc.Sel("initWithInputPorts:output:"), ports, objc.Ptr(output)) +func (c_ CaptureConnection) InitWithInputPortVideoPreviewLayer(port ICaptureInputPort, layer ICaptureVideoPreviewLayer) CaptureConnection { + rv := objc.Call[CaptureConnection](c_, objc.Sel("initWithInputPort:videoPreviewLayer:"), objc.Ptr(port), objc.Ptr(layer)) return rv } -// Creates a capture connection that represents a connection between multiple input ports and an output. [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/1388896-initwithinputports?language=objc -func NewCaptureConnectionWithInputPortsOutput(ports []ICaptureInputPort, output ICaptureOutput) CaptureConnection { - instance := CaptureConnectionClass.Alloc().InitWithInputPortsOutput(ports, output) +// [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) ConnectionWithInputPortVideoPreviewLayer(port ICaptureInputPort, layer ICaptureVideoPreviewLayer) CaptureConnection { - rv := objc.Call[CaptureConnection](cc, objc.Sel("connectionWithInputPort:videoPreviewLayer:"), objc.Ptr(port), objc.Ptr(layer)) +func (c_ CaptureConnection) InitWithInputPortsOutput(ports []ICaptureInputPort, output ICaptureOutput) CaptureConnection { + rv := objc.Call[CaptureConnection](c_, objc.Sel("initWithInputPorts:output:"), ports, objc.Ptr(output)) 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 multiple input ports and an output. [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/1388896-initwithinputports?language=objc +func NewCaptureConnectionWithInputPortsOutput(ports []ICaptureInputPort, output ICaptureOutput) CaptureConnection { + instance := CaptureConnectionClass.Alloc().InitWithInputPortsOutput(ports, output) + instance.Autorelease() + return instance } func (cc _CaptureConnectionClass) Alloc() CaptureConnection { @@ -112,10 +112,6 @@ func (cc _CaptureConnectionClass) Alloc() CaptureConnection { return rv } -func CaptureConnection_Alloc() CaptureConnection { - return CaptureConnectionClass.Alloc() -} - func (cc _CaptureConnectionClass) New() CaptureConnection { rv := objc.Call[CaptureConnection](cc, objc.Sel("new")) rv.Autorelease() @@ -131,21 +127,6 @@ func (c_ CaptureConnection) Init() CaptureConnection { 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) IsVideoMirrored() bool { - rv := objc.Call[bool](c_, objc.Sel("isVideoMirrored")) - 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) -} - // An array of audio channels that the connection provides. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/avfoundation/avcaptureconnection/1387519-audiochannels?language=objc @@ -154,37 +135,44 @@ func (c_ CaptureConnection) AudioChannels() []CaptureAudioChannel { 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 video mirroring. [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/1387424-supportsvideomirroring?language=objc +func (c_ CaptureConnection) IsVideoMirroringSupported() bool { + rv := objc.Call[bool](c_, objc.Sel("isVideoMirroringSupported")) return rv } -// A setting that tells the connection how to interlace video flowing through it. [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/1390559-videofieldmode?language=objc -func (c_ CaptureConnection) SetVideoFieldMode(value VideoFieldMode) { - objc.Call[objc.Void](c_, objc.Sel("setVideoFieldMode:"), value) +// [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 } -// A Boolean value that indicates whether the connection supports video mirroring. [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/1387424-supportsvideomirroring?language=objc -func (c_ CaptureConnection) IsVideoMirroringSupported() bool { - rv := objc.Call[bool](c_, objc.Sel("isVideoMirroringSupported")) - return rv +// [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 a maximum frame duration. [Full Topic] +// The smallest time interval the connection can apply between consecutive video frames. [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")) +// [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) +} + // The video preview layer associated with the connection. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/avfoundation/avcaptureconnection/1390614-videopreviewlayer?language=objc @@ -193,14 +181,21 @@ func (c_ CaptureConnection) VideoPreviewLayer() CaptureVideoPreviewLayer { return rv } -// Indicates whether the connection is active. [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/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/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 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 @@ -209,26 +204,19 @@ func (c_ CaptureConnection) Output() CaptureOutput { return rv } -// The largest time interval the connection can apply between consecutive video frames. [Full Topic] +// An array of the connection’s input ports. [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/1388322-inputports?language=objc +func (c_ CaptureConnection) InputPorts() []CaptureInputPort { + rv := objc.Call[[]CaptureInputPort](c_, objc.Sel("inputPorts")) return rv } -// The largest time interval the connection can apply between consecutive video frames. [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) -} - -// A Boolean value that indicates whether the connection supports setting a video field mode. [Full Topic] +// Indicates whether the connection is active. [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")) +// [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 } @@ -247,14 +235,37 @@ func (c_ CaptureConnection) SetAutomaticallyAdjustsVideoMirroring(value bool) { objc.Call[objc.Void](c_, objc.Sel("setAutomaticallyAdjustsVideoMirroring:"), value) } -// A Boolean value that indicates whether the connection supports a minimum frame duration. [Full Topic] +// 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/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/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] +// +// [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 +} + +// 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 @@ -270,25 +281,10 @@ func (c_ CaptureConnection) SetEnabled(value bool) { objc.Call[objc.Void](c_, objc.Sel("setEnabled:"), value) } -// An array of the connection’s input ports. [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")) - 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 minimum frame duration. [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/1386978-supportsvideominframeduration?language=objc +func (c_ CaptureConnection) IsVideoMinFrameDurationSupported() bool { + rv := objc.Call[bool](c_, objc.Sel("isVideoMinFrameDurationSupported")) 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 68aa5e3d..3d1e8934 100644 --- a/macos/avfoundation/capture_device.gen.go +++ b/macos/avfoundation/capture_device.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package avfoundation @@ -21,79 +21,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 foundation.IError) bool + IsExposureModeSupported(exposureMode CaptureExposureMode) bool SetTorchModeOnWithLevelError(torchLevel float64, outError foundation.IError) bool IsWhiteBalanceModeSupported(whiteBalanceMode CaptureWhiteBalanceMode) bool - SetTransportControlsPlaybackModeSpeed(mode CaptureDeviceTransportControlsPlaybackMode, speed CaptureDeviceTransportControlsSpeed) UnlockForConfiguration() IsFocusModeSupported(focusMode CaptureFocusMode) bool - IsExposureModeSupported(exposureMode CaptureExposureMode) bool - LockForConfiguration(outError foundation.IError) bool - IsTorchModeSupported(torchMode CaptureTorchMode) bool SetPrimaryConstituentDeviceSwitchingBehaviorRestrictedSwitchingBehaviorConditions(switchingBehavior CapturePrimaryConstituentDeviceSwitchingBehavior, restrictedSwitchingBehaviorConditions CapturePrimaryConstituentDeviceRestrictedSwitchingBehaviorConditions) - SupportsAVCaptureSessionPreset(preset CaptureSessionPreset) bool - Formats() []CaptureDeviceFormat - IsInUseByAnotherApplication() bool - ModelID() string - TransportControlsPlaybackMode() CaptureDeviceTransportControlsPlaybackMode - TransportType() int32 - TorchLevel() float64 - ActiveVideoMaxFrameDuration() coremedia.Time - SetActiveVideoMaxFrameDuration(value coremedia.Time) - HasFlash() bool - IsExposurePointOfInterestSupported() bool - FocusPointOfInterest() coregraphics.Point - SetFocusPointOfInterest(value coregraphics.Point) - IsTorchActive() bool + ActivePrimaryConstituentDevice() CaptureDevice + ActiveColorSpace() CaptureColorSpace + SetActiveColorSpace(value CaptureColorSpace) + Manufacturer() string PrimaryConstituentDeviceRestrictedSwitchingBehaviorConditions() CapturePrimaryConstituentDeviceRestrictedSwitchingBehaviorConditions - ActivePrimaryConstituentDeviceRestrictedSwitchingBehaviorConditions() CapturePrimaryConstituentDeviceRestrictedSwitchingBehaviorConditions - IsConnected() bool - FlashMode() CaptureFlashMode - SetFlashMode(value CaptureFlashMode) + ExposureMode() CaptureExposureMode + SetExposureMode(value CaptureExposureMode) + IsInUseByAnotherApplication() bool MinimumFocusDistance() int - IsAdjustingExposure() bool - LocalizedName() string + ActiveInputSource() CaptureDeviceInputSource + SetActiveInputSource(value ICaptureDeviceInputSource) + IsPortraitEffectActive() bool WhiteBalanceMode() CaptureWhiteBalanceMode SetWhiteBalanceMode(value CaptureWhiteBalanceMode) + LinkedDevices() []CaptureDevice + ActiveFormat() CaptureDeviceFormat + SetActiveFormat(value ICaptureDeviceFormat) + IsFlashAvailable() bool + FocusPointOfInterest() coregraphics.Point + SetFocusPointOfInterest(value coregraphics.Point) + FallbackPrimaryConstituentDevices() []CaptureDevice + SetFallbackPrimaryConstituentDevices(value []ICaptureDevice) + TransportControlsSpeed() CaptureDeviceTransportControlsSpeed + LocalizedName() string UniqueID() string - ActivePrimaryConstituentDeviceSwitchingBehavior() CapturePrimaryConstituentDeviceSwitchingBehavior + TorchLevel() float64 + FlashMode() CaptureFlashMode + SetFlashMode(value CaptureFlashMode) + TransportControlsPlaybackMode() CaptureDeviceTransportControlsPlaybackMode HasTorch() bool + IsFocusPointOfInterestSupported() bool Position() CaptureDevicePosition - ActiveInputSource() CaptureDeviceInputSource - SetActiveInputSource(value ICaptureDeviceInputSource) - IsTorchAvailable() bool - TransportControlsSpeed() CaptureDeviceTransportControlsSpeed - SupportedFallbackPrimaryConstituentDevices() []CaptureDevice + IsConnected() bool + ModelID() string IsSuspended() bool - Manufacturer() string - TorchMode() CaptureTorchMode - SetTorchMode(value CaptureTorchMode) - PrimaryConstituentDeviceSwitchingBehavior() CapturePrimaryConstituentDeviceSwitchingBehavior + ActivePrimaryConstituentDeviceRestrictedSwitchingBehaviorConditions() CapturePrimaryConstituentDeviceRestrictedSwitchingBehaviorConditions ActiveVideoMinFrameDuration() coremedia.Time SetActiveVideoMinFrameDuration(value coremedia.Time) - IsFlashAvailable() bool - IsPortraitEffectActive() bool + 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 FocusMode() CaptureFocusMode SetFocusMode(value CaptureFocusMode) + IsCenterStageActive() bool + Formats() []CaptureDeviceFormat InputSources() []CaptureDeviceInputSource - ExposureMode() CaptureExposureMode - SetExposureMode(value CaptureExposureMode) - IsFocusPointOfInterestSupported() bool - TransportControlsSupported() bool - ActivePrimaryConstituentDevice() CaptureDevice - LinkedDevices() []CaptureDevice + TorchMode() CaptureTorchMode + SetTorchMode(value CaptureTorchMode) + IsAdjustingExposure() bool 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] @@ -114,10 +114,6 @@ func (cc _CaptureDeviceClass) Alloc() CaptureDevice { return rv } -func CaptureDevice_Alloc() CaptureDevice { - return CaptureDeviceClass.Alloc() -} - func (cc _CaptureDeviceClass) New() CaptureDevice { rv := objc.Call[CaptureDevice](cc, objc.Sel("new")) rv.Autorelease() @@ -133,50 +129,50 @@ func (c_ CaptureDevice) Init() CaptureDevice { return rv } -// Returns an authorization status that indicates whether the user grants the app permission to capture media of a particular type. [Full Topic] +// Sets the transport control’s playback mode and speed. [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/1388481-settransportcontrolsplaybackmode?language=objc +func (c_ CaptureDevice) SetTransportControlsPlaybackModeSpeed(mode CaptureDeviceTransportControlsPlaybackMode, speed CaptureDeviceTransportControlsSpeed) { + objc.Call[objc.Void](c_, objc.Sel("setTransportControlsPlaybackMode:speed:"), mode, speed) } -// Returns an authorization status that indicates whether the user grants the app permission to capture media of a particular type. [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/1624613-authorizationstatusformediatype?language=objc -func CaptureDevice_AuthorizationStatusForMediaType(mediaType MediaType) AuthorizationStatus { - return CaptureDeviceClass.AuthorizationStatusForMediaType(mediaType) +// [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 } -// Returns a Boolean value that indicates whether the device captures media of a particular type. [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/1389487-hasmediatype?language=objc -func (c_ CaptureDevice) HasMediaType(mediaType MediaType) bool { - rv := objc.Call[bool](c_, objc.Sel("hasMediaType:"), mediaType) +// [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 } -// Sets the illumination level when in torch mode. [Full Topic] +// Returns the default device that captures the specified media type. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avcapturedevice/1624609-settorchmodeonwithlevel?language=objc -func (c_ CaptureDevice) SetTorchModeOnWithLevelError(torchLevel float64, outError foundation.IError) bool { - rv := objc.Call[bool](c_, objc.Sel("setTorchModeOnWithLevel:error:"), torchLevel, objc.Ptr(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 the default device for the specified device type, media type, and position. [Full Topic] +// Returns the default device that captures the specified media type. [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) - 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 the default device for the specified device type, media type, and position. [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/2361508-defaultdevicewithdevicetype?language=objc -func CaptureDevice_DefaultDeviceWithDeviceTypeMediaTypePosition(deviceType CaptureDeviceType, mediaType MediaType, position CaptureDevicePosition) CaptureDevice { - return CaptureDeviceClass.DefaultDeviceWithDeviceTypeMediaTypePosition(deviceType, mediaType, position) +// [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 } // Creates an object that represents a device with the specified identifier. [Full Topic] @@ -194,55 +190,49 @@ func CaptureDevice_DeviceWithUniqueID(deviceUniqueID string) CaptureDevice { return CaptureDeviceClass.DeviceWithUniqueID(deviceUniqueID) } -// Returns a Boolean value that indicates whether the device supports the specified white balance 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/1388587-iswhitebalancemodesupported?language=objc -func (c_ CaptureDevice) IsWhiteBalanceModeSupported(whiteBalanceMode CaptureWhiteBalanceMode) bool { - rv := objc.Call[bool](c_, objc.Sel("isWhiteBalanceModeSupported:"), whiteBalanceMode) - return rv +// [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) } -// Sets the transport control’s playback mode and speed. [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/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/3850459-showsystemuserinterface?language=objc +func CaptureDevice_ShowSystemUserInterface(systemUserInterface CaptureSystemUserInterface) { + CaptureDeviceClass.ShowSystemUserInterface(systemUserInterface) } -// Returns the default device that captures the specified media type. [Full Topic] +// Requests exclusive access to configure device hardware properties. [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/1387810-lockforconfiguration?language=objc +func (c_ CaptureDevice) LockForConfiguration(outError foundation.IError) bool { + rv := objc.Call[bool](c_, objc.Sel("lockForConfiguration:"), objc.Ptr(outError)) return rv } -// Returns the default device that captures the specified media type. [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) -} - -// Displays the system’s user interface to configure video effects or microphone modes. [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/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/1624613-authorizationstatusformediatype?language=objc +func (cc _CaptureDeviceClass) AuthorizationStatusForMediaType(mediaType MediaType) AuthorizationStatus { + rv := objc.Call[AuthorizationStatus](cc, objc.Sel("authorizationStatusForMediaType:"), mediaType) + return rv } -// Displays the system’s user interface to configure video effects or microphone modes. [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/3850459-showsystemuserinterface?language=objc -func CaptureDevice_ShowSystemUserInterface(systemUserInterface CaptureSystemUserInterface) { - CaptureDeviceClass.ShowSystemUserInterface(systemUserInterface) +// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avcapturedevice/1624613-authorizationstatusformediatype?language=objc +func CaptureDevice_AuthorizationStatusForMediaType(mediaType MediaType) AuthorizationStatus { + return CaptureDeviceClass.AuthorizationStatusForMediaType(mediaType) } -// Releases exclusive control over device hardware properties. [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/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/1389048-isexposuremodesupported?language=objc +func (c_ CaptureDevice) IsExposureModeSupported(exposureMode CaptureExposureMode) bool { + rv := objc.Call[bool](c_, objc.Sel("isExposureModeSupported:"), exposureMode) + return rv } // Requests the user’s permission to allow the app to capture media of a particular type. [Full Topic] @@ -259,35 +249,34 @@ func CaptureDevice_RequestAccessForMediaTypeCompletionHandler(mediaType MediaTyp CaptureDeviceClass.RequestAccessForMediaTypeCompletionHandler(mediaType, handler) } -// Returns a Boolean value that indicates whether the device supports the specified focus mode. [Full Topic] +// Sets the illumination level when in 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/1624609-settorchmodeonwithlevel?language=objc +func (c_ CaptureDevice) SetTorchModeOnWithLevelError(torchLevel float64, outError foundation.IError) bool { + rv := objc.Call[bool](c_, objc.Sel("setTorchModeOnWithLevel:error:"), torchLevel, objc.Ptr(outError)) return rv } -// Returns a Boolean value that indicates whether a device supports the specified exposure mode. [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/1389048-isexposuremodesupported?language=objc -func (c_ CaptureDevice) IsExposureModeSupported(exposureMode CaptureExposureMode) bool { - rv := objc.Call[bool](c_, objc.Sel("isExposureModeSupported:"), exposureMode) +// [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 } -// Requests exclusive access to configure device hardware properties. [Full Topic] +// Releases exclusive control over device hardware properties. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avcapturedevice/1387810-lockforconfiguration?language=objc -func (c_ CaptureDevice) LockForConfiguration(outError foundation.IError) bool { - rv := objc.Call[bool](c_, objc.Sel("lockForConfiguration:"), objc.Ptr(outError)) - return rv +// [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")) } -// Returns a Boolean value that indicates whether the device supports the specified 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/1388822-istorchmodesupported?language=objc -func (c_ CaptureDevice) IsTorchModeSupported(torchMode CaptureTorchMode) bool { - rv := objc.Call[bool](c_, objc.Sel("isTorchModeSupported:"), torchMode) +// [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 } @@ -298,134 +287,172 @@ func (c_ CaptureDevice) SetPrimaryConstituentDeviceSwitchingBehaviorRestrictedSw objc.Call[objc.Void](c_, objc.Sel("setPrimaryConstituentDeviceSwitchingBehavior:restrictedSwitchingBehaviorConditions:"), switchingBehavior, restrictedSwitchingBehaviorConditions) } -// Returns a Boolean value that indicates whether you can use the device with capture session configured with the specified preset. [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/1386263-supportsavcapturesessionpreset?language=objc -func (c_ CaptureDevice) SupportsAVCaptureSessionPreset(preset CaptureSessionPreset) bool { - rv := objc.Call[bool](c_, objc.Sel("supportsAVCaptureSessionPreset:"), preset) - return rv -} +// [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 +} -// The capture formats a device supports. [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/1388738-formats?language=objc -func (c_ CaptureDevice) Formats() []CaptureDeviceFormat { - rv := objc.Call[[]CaptureDeviceFormat](c_, objc.Sel("formats")) - 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) } -// A Boolean value that indicates whether another app is using the device. [Full Topic] +// A virtual device’s active primary constituent 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")) +// [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 } -// A Boolean value that indicates whether a user or an app enabled Center Stage on a device. [Full Topic] +// The currently active color space for capture. [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")) +// [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 } -// A Boolean value that indicates whether a user or an app enabled Center Stage on a device. [Full Topic] +// The currently active color space for capture. [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/1648668-activecolorspace?language=objc +func (c_ CaptureDevice) SetActiveColorSpace(value CaptureColorSpace) { + objc.Call[objc.Void](c_, objc.Sel("setActiveColorSpace:"), value) } -// A Boolean value that indicates whether a user or an app enabled Center Stage on a device. [Full Topic] +// A human-readable string for the manufacturer of the device. [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/1390193-manufacturer?language=objc +func (c_ CaptureDevice) Manufacturer() string { + rv := objc.Call[string](c_, objc.Sel("manufacturer")) + return rv } -// A Boolean value that indicates whether a user or an app enabled Center Stage on a device. [Full Topic] +// The conditions that restrict the primary constituent device’s switching behavior. [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/3875308-primaryconstituentdevicerestrict?language=objc +func (c_ CaptureDevice) PrimaryConstituentDeviceRestrictedSwitchingBehaviorConditions() CapturePrimaryConstituentDeviceRestrictedSwitchingBehaviorConditions { + rv := objc.Call[CapturePrimaryConstituentDeviceRestrictedSwitchingBehaviorConditions](c_, objc.Sel("primaryConstituentDeviceRestrictedSwitchingBehaviorConditions")) + return rv } -// A model identifier for the device. [Full Topic] +// The exposure mode for the device. [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")) +// [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 } -// The microphone mode that the user selects in Control Center. [Full Topic] +// The exposure mode for the device. [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")) +// [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 another app is using the 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 } -// The microphone mode that the user selects in Control Center. [Full Topic] +// The capture device’s minimum focus distance in millimeters. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avcapturedevice/3850458-preferredmicrophonemode?language=objc -func CaptureDevice_PreferredMicrophoneMode() CaptureMicrophoneMode { - return CaptureDeviceClass.PreferredMicrophoneMode() +// [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 } -// The current playback mode. [Full Topic] +// The currently active input source of the device. [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")) +// [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 transport type of the device. [Full Topic] +// The currently active input source of the device. [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/1390141-activeinputsource?language=objc +func (c_ CaptureDevice) SetActiveInputSource(value ICaptureDeviceInputSource) { + objc.Call[objc.Void](c_, objc.Sel("setActiveInputSource:"), objc.Ptr(value)) +} + +// 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/3850456-portraiteffectactive?language=objc +func (c_ CaptureDevice) IsPortraitEffectActive() bool { + rv := objc.Call[bool](c_, objc.Sel("isPortraitEffectActive")) return rv } -// The current torch brightness level. [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/1624605-torchlevel?language=objc -func (c_ CaptureDevice) TorchLevel() float64 { - rv := objc.Call[float64](c_, objc.Sel("torchLevel")) +// [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 currently active maximum frame duration. [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/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/3850457-portraiteffectenabled?language=objc +func CaptureDevice_PortraitEffectEnabled() bool { + return CaptureDeviceClass.PortraitEffectEnabled() +} + +// The current white balance mode. [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")) return rv } -// The currently active maximum frame duration. [Full Topic] +// The current white balance mode. [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/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 capture device has a flash. [Full Topic] +// An array of capture devices that are physically linked to a 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/1388720-linkeddevices?language=objc +func (c_ CaptureDevice) LinkedDevices() []CaptureDevice { + rv := objc.Call[[]CaptureDevice](c_, objc.Sel("linkedDevices")) return rv } -// A Boolean value that indicates whether the device supports a point of interest for exposure. [Full Topic] +// The capture format in use by the device. [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/1389221-activeformat?language=objc +func (c_ CaptureDevice) ActiveFormat() CaptureDeviceFormat { + rv := objc.Call[CaptureDeviceFormat](c_, objc.Sel("activeFormat")) + return rv +} + +// The capture format in use by the device. [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:"), objc.Ptr(value)) +} + +// A Boolean value that indicates whether the flash is currently available for use. [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")) return rv } @@ -444,35 +471,65 @@ func (c_ CaptureDevice) SetFocusPointOfInterest(value coregraphics.Point) { objc.Call[objc.Void](c_, objc.Sel("setFocusPointOfInterest:"), value) } -// A Boolean value that indicates whether the device’s torch is currently active. [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/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/3875307-fallbackprimaryconstituentdevice?language=objc +func (c_ CaptureDevice) FallbackPrimaryConstituentDevices() []CaptureDevice { + rv := objc.Call[[]CaptureDevice](c_, objc.Sel("fallbackPrimaryConstituentDevices")) return rv } -// The conditions that restrict the primary constituent device’s switching behavior. [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/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/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 conditions that restrict camera switching behavior for the active primary constituent device. [Full Topic] +// The microphone mode that the user selects in Control Center. [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/3850458-preferredmicrophonemode?language=objc +func CaptureDevice_PreferredMicrophoneMode() CaptureMicrophoneMode { + return CaptureDeviceClass.PreferredMicrophoneMode() +} + +// The current playback speed. [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")) return rv } -// A Boolean value that indicates whether a device is currently connected to the system and available for use. [Full Topic] +// A localized device name for display in the user interface. [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/1388222-localizedname?language=objc +func (c_ CaptureDevice) LocalizedName() string { + rv := objc.Call[string](c_, objc.Sel("localizedName")) + return rv +} + +// An identifier that uniquely identifies the 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")) + return rv +} + +// The current torch brightness level. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avcapturedevice/1624605-torchlevel?language=objc +func (c_ CaptureDevice) TorchLevel() float64 { + rv := objc.Call[float64](c_, objc.Sel("torchLevel")) return rv } @@ -491,183 +548,197 @@ func (c_ CaptureDevice) SetFlashMode(value CaptureFlashMode) { objc.Call[objc.Void](c_, objc.Sel("setFlashMode:"), value) } -// The capture device’s minimum focus distance in millimeters. [Full Topic] +// The current playback mode. [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/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 device is currently adjusting its exposure setting. [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/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/1387674-hastorch?language=objc +func (c_ CaptureDevice) HasTorch() bool { + rv := objc.Call[bool](c_, objc.Sel("hasTorch")) return rv } -// A localized device name for display in the user interface. [Full Topic] +// 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/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/1390436-focuspointofinterestsupported?language=objc +func (c_ CaptureDevice) IsFocusPointOfInterestSupported() bool { + rv := objc.Call[bool](c_, objc.Sel("isFocusPointOfInterestSupported")) return rv } -// The current white balance mode. [Full Topic] +// The physical position of the capture device hardware. [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/1386909-position?language=objc +func (c_ CaptureDevice) Position() CaptureDevicePosition { + rv := objc.Call[CaptureDevicePosition](c_, objc.Sel("position")) return rv } -// The current white balance mode. [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/1386369-whitebalancemode?language=objc -func (c_ CaptureDevice) SetWhiteBalanceMode(value CaptureWhiteBalanceMode) { - objc.Call[objc.Void](c_, objc.Sel("setWhiteBalanceMode:"), value) +// [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 } -// An identifier that uniquely identifies the device. [Full Topic] +// A model identifier for the 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/1389500-modelid?language=objc +func (c_ CaptureDevice) ModelID() string { + rv := objc.Call[string](c_, objc.Sel("modelID")) return rv } -// The switching behavior of the active constituent device. [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/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/1387761-suspended?language=objc +func (c_ CaptureDevice) IsSuspended() bool { + rv := objc.Call[bool](c_, objc.Sel("isSuspended")) return rv } -// A Boolean value that specifies whether the capture device has a torch. [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/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/3875305-activeprimaryconstituentdevicere?language=objc +func (c_ CaptureDevice) ActivePrimaryConstituentDeviceRestrictedSwitchingBehaviorConditions() CapturePrimaryConstituentDeviceRestrictedSwitchingBehaviorConditions { + rv := objc.Call[CapturePrimaryConstituentDeviceRestrictedSwitchingBehaviorConditions](c_, objc.Sel("activePrimaryConstituentDeviceRestrictedSwitchingBehaviorConditions")) return rv } -// The physical position of the capture device hardware. [Full Topic] +// The currently active minimum frame duration. [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/1389290-activevideominframeduration?language=objc +func (c_ CaptureDevice) ActiveVideoMinFrameDuration() coremedia.Time { + rv := objc.Call[coremedia.Time](c_, objc.Sel("activeVideoMinFrameDuration")) return rv } -// The currently active input source of the device. [Full Topic] +// The currently active minimum frame duration. [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/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] +// +// [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 } -// The currently active input source of the device. [Full Topic] +// The currently active maximum frame duration. [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:"), objc.Ptr(value)) +// [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 } -// A Boolean value that indicates whether the torch is currently available for use. [Full Topic] +// The currently active maximum frame duration. [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/1387816-activevideomaxframeduration?language=objc +func (c_ CaptureDevice) SetActiveVideoMaxFrameDuration(value coremedia.Time) { + objc.Call[objc.Void](c_, objc.Sel("setActiveVideoMaxFrameDuration:"), value) +} + +// A Boolean value that indicates whether the device’s torch is currently active. [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")) return rv } -// The current playback speed. [Full Topic] +// The point of interest for exposure. [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/1388777-exposurepointofinterest?language=objc +func (c_ CaptureDevice) ExposurePointOfInterest() coregraphics.Point { + rv := objc.Call[coregraphics.Point](c_, objc.Sel("exposurePointOfInterest")) return rv } -// The constituent devices available to select as a fallback for a longer focal length primary constituent device. [Full Topic] +// The point of interest for exposure. [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")) - return rv +// [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 Boolean value that indicates whether the device is in a suspended state. [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/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/1388479-transportcontrolssupported?language=objc +func (c_ CaptureDevice) TransportControlsSupported() bool { + rv := objc.Call[bool](c_, objc.Sel("transportControlsSupported")) return rv } -// A human-readable string for the manufacturer of 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/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/1388988-hasflash?language=objc +func (c_ CaptureDevice) HasFlash() bool { + rv := objc.Call[bool](c_, objc.Sel("hasFlash")) return rv } -// The current torch mode. [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/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/3875311-supportedfallbackprimaryconstitu?language=objc +func (c_ CaptureDevice) SupportedFallbackPrimaryConstituentDevices() []CaptureDevice { + rv := objc.Call[[]CaptureDevice](c_, objc.Sel("supportedFallbackPrimaryConstituentDevices")) return rv } -// The current torch mode. [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/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/3738419-centerstageenabled?language=objc +func (cc _CaptureDeviceClass) CenterStageEnabled() bool { + rv := objc.Call[bool](cc, objc.Sel("centerStageEnabled")) + return rv } -// The switching behavior for the primary constituent 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/3875309-primaryconstituentdeviceswitchin?language=objc -func (c_ CaptureDevice) PrimaryConstituentDeviceSwitchingBehavior() CapturePrimaryConstituentDeviceSwitchingBehavior { - rv := objc.Call[CapturePrimaryConstituentDeviceSwitchingBehavior](c_, objc.Sel("primaryConstituentDeviceSwitchingBehavior")) - return rv +// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avcapturedevice/3738419-centerstageenabled?language=objc +func CaptureDevice_CenterStageEnabled() bool { + return CaptureDeviceClass.CenterStageEnabled() } -// The currently active minimum frame duration. [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/1389290-activevideominframeduration?language=objc -func (c_ CaptureDevice) ActiveVideoMinFrameDuration() coremedia.Time { - rv := objc.Call[coremedia.Time](c_, objc.Sel("activeVideoMinFrameDuration")) - return rv +// [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) } -// The currently active minimum frame duration. [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/1389290-activevideominframeduration?language=objc -func (c_ CaptureDevice) SetActiveVideoMinFrameDuration(value coremedia.Time) { - objc.Call[objc.Void](c_, objc.Sel("setActiveVideoMinFrameDuration:"), value) +// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avcapturedevice/3738419-centerstageenabled?language=objc +func CaptureDevice_SetCenterStageEnabled(value bool) { + CaptureDeviceClass.SetCenterStageEnabled(value) } -// A Boolean value that indicates whether the flash is currently available for use. [Full Topic] +// 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/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/1390577-adjustingfocus?language=objc +func (c_ CaptureDevice) IsAdjustingFocus() bool { + rv := objc.Call[bool](c_, objc.Sel("isAdjustingFocus")) return rv } -// A Boolean value that indicates whether the Portrait video effect is active on a device. [Full Topic] +// The switching behavior of the active constituent device. [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/3875306-activeprimaryconstituentdevicesw?language=objc +func (c_ CaptureDevice) ActivePrimaryConstituentDeviceSwitchingBehavior() CapturePrimaryConstituentDeviceSwitchingBehavior { + rv := objc.Call[CapturePrimaryConstituentDeviceSwitchingBehavior](c_, objc.Sel("activePrimaryConstituentDeviceSwitchingBehavior")) return rv } @@ -686,73 +757,50 @@ func (c_ CaptureDevice) SetFocusMode(value CaptureFocusMode) { objc.Call[objc.Void](c_, objc.Sel("setFocusMode:"), value) } -// An array of input sources that the device supports. [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")) - return rv -} - -// The exposure mode for the device. [Full Topic] +// A Boolean value that indicates whether Center Stage is active 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")) +// [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 } -// The exposure mode for the 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) -} - -// A Boolean value that indicates whether the user enabled the Portrait video effect in Control Center. [Full Topic] +// The capture formats a device supports. [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/1388738-formats?language=objc +func (c_ CaptureDevice) Formats() []CaptureDeviceFormat { + rv := objc.Call[[]CaptureDeviceFormat](c_, objc.Sel("formats")) 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() -} - -// A Boolean value that indicates whether the device supports a point of interest for focus. [Full Topic] +// An array of input sources that the device supports. [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/1388404-inputsources?language=objc +func (c_ CaptureDevice) InputSources() []CaptureDeviceInputSource { + rv := objc.Call[[]CaptureDeviceInputSource](c_, objc.Sel("inputSources")) return rv } -// A Boolean value that indicates whether the device supports transport control commands. [Full Topic] +// The current torch mode. [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/1386035-torchmode?language=objc +func (c_ CaptureDevice) TorchMode() CaptureTorchMode { + rv := objc.Call[CaptureTorchMode](c_, objc.Sel("torchMode")) return rv } -// A virtual device’s active primary constituent device. [Full Topic] +// The current torch mode. [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 +// [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) } -// An array of capture devices that are physically linked to a device. [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/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/1386253-adjustingexposure?language=objc +func (c_ CaptureDevice) IsAdjustingExposure() bool { + rv := objc.Call[bool](c_, objc.Sel("isAdjustingExposure")) return rv } @@ -764,37 +812,6 @@ 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 @@ -824,51 +841,14 @@ func CaptureDevice_SetCenterStageControlMode(value CaptureCenterStageControlMode CaptureDeviceClass.SetCenterStageControlMode(value) } -// 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) ActiveColorSpace() CaptureColorSpace { - rv := objc.Call[CaptureColorSpace](c_, objc.Sel("activeColorSpace")) - 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) -} - -// 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 capture format in use by the device. [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/1389221-activeformat?language=objc -func (c_ CaptureDevice) ActiveFormat() CaptureDeviceFormat { - rv := objc.Call[CaptureDeviceFormat](c_, objc.Sel("activeFormat")) +// [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 } -// The capture format in use by the device. [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:"), objc.Ptr(value)) -} - // The device’s active microphone mode. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/avfoundation/avcapturedevice/3850455-activemicrophonemode?language=objc @@ -884,10 +864,26 @@ func CaptureDevice_ActiveMicrophoneMode() CaptureMicrophoneMode { return CaptureDeviceClass.ActiveMicrophoneMode() } -// A Boolean value that indicates whether Center Stage is active on a device. [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/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/1624626-torchavailable?language=objc +func (c_ CaptureDevice) IsTorchAvailable() bool { + rv := objc.Call[bool](c_, objc.Sel("isTorchAvailable")) + return rv +} + +// The switching behavior for the primary constituent 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")) + 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 } diff --git a/macos/avfoundation/capture_device_discovery_session.gen.go b/macos/avfoundation/capture_device_discovery_session.gen.go index e3df77b2..023f98f4 100644 --- a/macos/avfoundation/capture_device_discovery_session.gen.go +++ b/macos/avfoundation/capture_device_discovery_session.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package avfoundation @@ -51,10 +51,6 @@ func (cc _CaptureDeviceDiscoverySessionClass) Alloc() CaptureDeviceDiscoverySess return rv } -func CaptureDeviceDiscoverySession_Alloc() CaptureDeviceDiscoverySession { - return CaptureDeviceDiscoverySessionClass.Alloc() -} - func (cc _CaptureDeviceDiscoverySessionClass) New() CaptureDeviceDiscoverySession { rv := objc.Call[CaptureDeviceDiscoverySession](cc, objc.Sel("new")) rv.Autorelease() diff --git a/macos/avfoundation/capture_device_format.gen.go b/macos/avfoundation/capture_device_format.gen.go index f89b208c..bc5ee9dc 100644 --- a/macos/avfoundation/capture_device_format.gen.go +++ b/macos/avfoundation/capture_device_format.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package avfoundation @@ -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] @@ -52,10 +52,6 @@ func (cc _CaptureDeviceFormatClass) Alloc() CaptureDeviceFormat { return rv } -func CaptureDeviceFormat_Alloc() CaptureDeviceFormat { - return CaptureDeviceFormatClass.Alloc() -} - func (cc _CaptureDeviceFormatClass) New() CaptureDeviceFormat { rv := objc.Call[CaptureDeviceFormat](cc, objc.Sel("new")) rv.Autorelease() @@ -71,14 +67,6 @@ 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 @@ -87,27 +75,27 @@ func (c_ CaptureDeviceFormat) AutoFocusSystem() CaptureAutoFocusSystem { return rv } -// A Boolean value that indicates whether this format supports high-quality capture with the current quality prioritization setting. [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/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/1648611-supportedcolorspaces?language=objc +func (c_ CaptureDeviceFormat) SupportedColorSpaces() []foundation.Number { + rv := objc.Call[[]foundation.Number](c_, objc.Sel("supportedColorSpaces")) return rv } -// The maximum zoom factor available when Center Stage is active. [Full Topic] +// The range of frame rates 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/3738421-videoframeraterangeforcenterstag?language=objc +func (c_ CaptureDeviceFormat) VideoFrameRateRangeForCenterStage() FrameRateRange { + rv := objc.Call[FrameRateRange](c_, objc.Sel("videoFrameRateRangeForCenterStage")) return rv } -// The range of frame rates available when Portrait Effect 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/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/3738423-videominzoomfactorforcenterstage?language=objc +func (c_ CaptureDeviceFormat) VideoMinZoomFactorForCenterStage() float64 { + rv := objc.Call[float64](c_, objc.Sel("videoMinZoomFactorForCenterStage")) return rv } @@ -119,19 +107,19 @@ func (c_ CaptureDeviceFormat) MediaType() MediaType { return rv } -// A Boolean value that indicates whether the format supports the Portrait Effect feature. [Full Topic] +// The range of frame rates available when Portrait Effect 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/3875313-videoframeraterangeforportraitef?language=objc +func (c_ CaptureDeviceFormat) VideoFrameRateRangeForPortraitEffect() FrameRateRange { + rv := objc.Call[FrameRateRange](c_, objc.Sel("videoFrameRateRangeForPortraitEffect")) return rv } -// The list of color spaces the format supports for image and video capture. [Full Topic] +// An object describing the capture format. [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/1389445-formatdescription?language=objc +func (c_ CaptureDeviceFormat) FormatDescription() coremedia.FormatDescriptionRef { + rv := objc.Call[coremedia.FormatDescriptionRef](c_, objc.Sel("formatDescription")) return rv } @@ -143,26 +131,34 @@ func (c_ CaptureDeviceFormat) IsCenterStageSupported() bool { return rv } -// The range of frame rates available when Center Stage is active. [Full Topic] +// A list of frame rate ranges that a format supports. [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/1387592-videosupportedframerateranges?language=objc +func (c_ CaptureDeviceFormat) VideoSupportedFrameRateRanges() []FrameRateRange { + rv := objc.Call[[]FrameRateRange](c_, objc.Sel("videoSupportedFrameRateRanges")) return rv } -// The minimum zoom factor available when Center Stage 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/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/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 maximum zoom factor available when Center Stage is active. [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/3738422-videomaxzoomfactorforcenterstage?language=objc +func (c_ CaptureDeviceFormat) VideoMaxZoomFactorForCenterStage() float64 { + rv := objc.Call[float64](c_, objc.Sel("videoMaxZoomFactorForCenterStage")) + return rv +} + +// 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/3751763-highphotoqualitysupported?language=objc +func (c_ CaptureDeviceFormat) IsHighPhotoQualitySupported() bool { + rv := objc.Call[bool](c_, objc.Sel("isHighPhotoQualitySupported")) return rv } diff --git a/macos/avfoundation/capture_device_input.gen.go b/macos/avfoundation/capture_device_input.gen.go index 317efdf8..0bac5bfd 100644 --- a/macos/avfoundation/capture_device_input.gen.go +++ b/macos/avfoundation/capture_device_input.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package avfoundation @@ -66,10 +66,6 @@ func (cc _CaptureDeviceInputClass) Alloc() CaptureDeviceInput { return rv } -func CaptureDeviceInput_Alloc() CaptureDeviceInput { - return CaptureDeviceInputClass.Alloc() -} - func (cc _CaptureDeviceInputClass) New() CaptureDeviceInput { rv := objc.Call[CaptureDeviceInput](cc, objc.Sel("new")) rv.Autorelease() diff --git a/macos/avfoundation/capture_device_input_source.gen.go b/macos/avfoundation/capture_device_input_source.gen.go index ee9ac4cd..b12a23c2 100644 --- a/macos/avfoundation/capture_device_input_source.gen.go +++ b/macos/avfoundation/capture_device_input_source.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package avfoundation @@ -40,10 +40,6 @@ func (cc _CaptureDeviceInputSourceClass) Alloc() CaptureDeviceInputSource { return rv } -func CaptureDeviceInputSource_Alloc() CaptureDeviceInputSource { - return CaptureDeviceInputSourceClass.Alloc() -} - func (cc _CaptureDeviceInputSourceClass) New() CaptureDeviceInputSource { rv := objc.Call[CaptureDeviceInputSource](cc, objc.Sel("new")) rv.Autorelease() diff --git a/macos/avfoundation/capture_file_output.gen.go b/macos/avfoundation/capture_file_output.gen.go index 2f8c9351..5c184858 100644 --- a/macos/avfoundation/capture_file_output.gen.go +++ b/macos/avfoundation/capture_file_output.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package avfoundation @@ -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) - StopRecording() ResumeRecording() + PauseRecording() + StopRecording() + MinFreeDiskSpaceLimit() int64 + SetMinFreeDiskSpaceLimit(value int64) + IsRecording() bool + RecordedFileSize() int64 IsRecordingPaused() bool - MaxRecordedFileSize() int64 - SetMaxRecordedFileSize(value int64) MaxRecordedDuration() coremedia.Time SetMaxRecordedDuration(value coremedia.Time) - IsRecording() bool - Delegate() CaptureFileOutputDelegateWrapper + RecordedDuration() coremedia.Time + Delegate() CaptureFileOutputDelegateObject SetDelegate(value PCaptureFileOutputDelegate) SetDelegateObject(valueObject objc.IObject) - MinFreeDiskSpaceLimit() int64 - SetMinFreeDiskSpaceLimit(value int64) - RecordedDuration() coremedia.Time OutputFileURL() foundation.URL - RecordedFileSize() int64 + MaxRecordedFileSize() int64 + SetMaxRecordedFileSize(value int64) } // The abstract superclass for capture outputs that can record captured data to a file. [Full Topic] @@ -59,10 +59,6 @@ func (cc _CaptureFileOutputClass) Alloc() CaptureFileOutput { return rv } -func CaptureFileOutput_Alloc() CaptureFileOutput { - return CaptureFileOutputClass.Alloc() -} - func (cc _CaptureFileOutputClass) New() CaptureFileOutput { rv := objc.Call[CaptureFileOutput](cc, objc.Sel("new")) rv.Autorelease() @@ -78,13 +74,6 @@ 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 @@ -100,6 +89,20 @@ func (c_ CaptureFileOutput) StartRecordingToOutputFileURLRecordingDelegateObject objc.Call[objc.Void](c_, objc.Sel("startRecordingToOutputFileURL:recordingDelegate:"), objc.Ptr(outputFileURL), objc.Ptr(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 @@ -107,34 +110,43 @@ func (c_ CaptureFileOutput) StopRecording() { objc.Call[objc.Void](c_, objc.Sel("stopRecording")) } -// Resumes recording to the current output file after it was previously paused using pauseRecording. [Full Topic] +// 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/1389849-resumerecording?language=objc -func (c_ CaptureFileOutput) ResumeRecording() { - objc.Call[objc.Void](c_, objc.Sel("resumeRecording")) +// [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 } -// Indicates whether recording to the current output file is paused. [Full Topic] +// 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/1385716-recordingpaused?language=objc -func (c_ CaptureFileOutput) IsRecordingPaused() bool { - rv := objc.Call[bool](c_, objc.Sel("isRecordingPaused")) +// [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 whether recording is in progress. [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")) 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] +// Indicates whether recording to the current output file is paused. [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) +// [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 } // The longest duration allowed for the recording. [Full Topic] @@ -152,19 +164,19 @@ func (c_ CaptureFileOutput) SetMaxRecordedDuration(value coremedia.Time) { objc.Call[objc.Void](c_, objc.Sel("setMaxRecordedDuration:"), value) } -// Indicates whether recording is in progress. [Full Topic] +// Indicates the duration of the media recorded to the current output file. [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/1389028-recordedduration?language=objc +func (c_ CaptureFileOutput) RecordedDuration() coremedia.Time { + rv := objc.Call[coremedia.Time](c_, objc.Sel("recordedDuration")) return rv } // The delegate object for the capture file output. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/avfoundation/avcapturefileoutput/1388718-delegate?language=objc -func (c_ CaptureFileOutput) Delegate() CaptureFileOutputDelegateWrapper { - rv := objc.Call[CaptureFileOutputDelegateWrapper](c_, objc.Sel("delegate")) +func (c_ CaptureFileOutput) Delegate() CaptureFileOutputDelegateObject { + rv := objc.Call[CaptureFileOutputDelegateObject](c_, objc.Sel("delegate")) return rv } @@ -183,29 +195,6 @@ func (c_ CaptureFileOutput) SetDelegateObject(valueObject objc.IObject) { objc.Call[objc.Void](c_, objc.Sel("setDelegate:"), objc.Ptr(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 @@ -214,10 +203,17 @@ func (c_ CaptureFileOutput) OutputFileURL() foundation.URL { 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 } + +// 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 886aca64..06b2e8b3 100644 --- a/macos/avfoundation/capture_file_output_delegate.gen.go +++ b/macos/avfoundation/capture_file_output_delegate.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package avfoundation @@ -30,14 +30,14 @@ func (di *CaptureFileOutputDelegate) HasCaptureOutputShouldProvideSampleAccurate return di._CaptureOutputShouldProvideSampleAccurateRecordingStart != nil } -// Allows a client to opt in to frame accurate recording in captureOutput:didOutputSampleBuffer:fromConnection:. [Full Topic] +// Allows a client to opt in to frame accurate recording in [avfoundation/avcapturefileoutputdelegate/captureoutput]. [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 captureOutput:didOutputSampleBuffer:fromConnection:. [Full Topic] +// Allows a client to opt in to frame accurate recording in [avfoundation/avcapturefileoutputdelegate/captureoutput]. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/avfoundation/avcapturefileoutputdelegate/1388760-captureoutputshouldprovidesample?language=objc func (di *CaptureFileOutputDelegate) CaptureOutputShouldProvideSampleAccurateRecordingStart(output CaptureOutput) bool { @@ -61,30 +61,33 @@ func (di *CaptureFileOutputDelegate) CaptureOutputDidOutputSampleBufferFromConne di._CaptureOutputDidOutputSampleBufferFromConnection(output, sampleBuffer, connection) } -// A concrete type wrapper for the [PCaptureFileOutputDelegate] protocol. -type CaptureFileOutputDelegateWrapper struct { +// ensure impl type implements protocol interface +var _ PCaptureFileOutputDelegate = (*CaptureFileOutputDelegateObject)(nil) + +// A concrete type for the [PCaptureFileOutputDelegate] protocol. +type CaptureFileOutputDelegateObject struct { objc.Object } -func (c_ CaptureFileOutputDelegateWrapper) HasCaptureOutputShouldProvideSampleAccurateRecordingStart() bool { +func (c_ CaptureFileOutputDelegateObject) HasCaptureOutputShouldProvideSampleAccurateRecordingStart() bool { return c_.RespondsToSelector(objc.Sel("captureOutputShouldProvideSampleAccurateRecordingStart:")) } -// Allows a client to opt in to frame accurate recording in captureOutput:didOutputSampleBuffer:fromConnection:. [Full Topic] +// Allows a client to opt in to frame accurate recording in [avfoundation/avcapturefileoutputdelegate/captureoutput]. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/avfoundation/avcapturefileoutputdelegate/1388760-captureoutputshouldprovidesample?language=objc -func (c_ CaptureFileOutputDelegateWrapper) CaptureOutputShouldProvideSampleAccurateRecordingStart(output ICaptureOutput) bool { +func (c_ CaptureFileOutputDelegateObject) CaptureOutputShouldProvideSampleAccurateRecordingStart(output CaptureOutput) bool { rv := objc.Call[bool](c_, objc.Sel("captureOutputShouldProvideSampleAccurateRecordingStart:"), objc.Ptr(output)) return rv } -func (c_ CaptureFileOutputDelegateWrapper) HasCaptureOutputDidOutputSampleBufferFromConnection() bool { +func (c_ CaptureFileOutputDelegateObject) HasCaptureOutputDidOutputSampleBufferFromConnection() bool { return c_.RespondsToSelector(objc.Sel("captureOutput:didOutputSampleBuffer:fromConnection:")) } // Gives the delegate the opportunity to inspect samples as they are received by the output and start and stop recording at exact times. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/avfoundation/avcapturefileoutputdelegate/1390096-captureoutput?language=objc -func (c_ CaptureFileOutputDelegateWrapper) CaptureOutputDidOutputSampleBufferFromConnection(output ICaptureFileOutput, sampleBuffer coremedia.SampleBufferRef, connection ICaptureConnection) { +func (c_ CaptureFileOutputDelegateObject) CaptureOutputDidOutputSampleBufferFromConnection(output CaptureFileOutput, sampleBuffer coremedia.SampleBufferRef, connection CaptureConnection) { objc.Call[objc.Void](c_, objc.Sel("captureOutput:didOutputSampleBuffer:fromConnection:"), objc.Ptr(output), sampleBuffer, objc.Ptr(connection)) } diff --git a/macos/avfoundation/capture_file_output_recording_delegate.gen.go b/macos/avfoundation/capture_file_output_recording_delegate.gen.go index fa2c2f8c..f90933bb 100644 --- a/macos/avfoundation/capture_file_output_recording_delegate.gen.go +++ b/macos/avfoundation/capture_file_output_recording_delegate.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package avfoundation @@ -11,16 +11,53 @@ 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 { - _CaptureOutputDidPauseRecordingToOutputFileAtURLFromConnections func(output CaptureFileOutput, fileURL foundation.URL, connections []CaptureConnection) + _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 +} + +// 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 } @@ -38,19 +75,117 @@ 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 +} -// A concrete type wrapper for the [PCaptureFileOutputRecordingDelegate] protocol. -type CaptureFileOutputRecordingDelegateWrapper struct { +// 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) + +// A concrete type for the [PCaptureFileOutputRecordingDelegate] protocol. +type CaptureFileOutputRecordingDelegateObject struct { objc.Object } -func (c_ CaptureFileOutputRecordingDelegateWrapper) HasCaptureOutputDidPauseRecordingToOutputFileAtURLFromConnections() bool { +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:"), objc.Ptr(output), objc.Ptr(fileURL), connections, objc.Ptr(error)) +} + +func (c_ CaptureFileOutputRecordingDelegateObject) HasCaptureOutputDidPauseRecordingToOutputFileAtURLFromConnections() bool { return c_.RespondsToSelector(objc.Sel("captureOutput:didPauseRecordingToOutputFileAtURL:fromConnections:")) } // Called whenever the output is recording to a file and successfully pauses the recording at the request of a client. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/avfoundation/avcapturefileoutputrecordingdelegate/1388838-captureoutput?language=objc -func (c_ CaptureFileOutputRecordingDelegateWrapper) CaptureOutputDidPauseRecordingToOutputFileAtURLFromConnections(output ICaptureFileOutput, fileURL foundation.IURL, connections []ICaptureConnection) { +func (c_ CaptureFileOutputRecordingDelegateObject) CaptureOutputDidPauseRecordingToOutputFileAtURLFromConnections(output CaptureFileOutput, fileURL foundation.URL, connections []CaptureConnection) { objc.Call[objc.Void](c_, objc.Sel("captureOutput:didPauseRecordingToOutputFileAtURL:fromConnections:"), objc.Ptr(output), objc.Ptr(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:"), objc.Ptr(output), objc.Ptr(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:"), objc.Ptr(output), objc.Ptr(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:"), objc.Ptr(output), objc.Ptr(outputFileURL), connections, objc.Ptr(error)) +} diff --git a/macos/avfoundation/capture_input.gen.go b/macos/avfoundation/capture_input.gen.go index 30c5ea78..5812b14d 100644 --- a/macos/avfoundation/capture_input.gen.go +++ b/macos/avfoundation/capture_input.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package avfoundation @@ -39,10 +39,6 @@ func (cc _CaptureInputClass) Alloc() CaptureInput { return rv } -func CaptureInput_Alloc() CaptureInput { - return CaptureInputClass.Alloc() -} - func (cc _CaptureInputClass) New() CaptureInput { rv := objc.Call[CaptureInput](cc, objc.Sel("new")) rv.Autorelease() diff --git a/macos/avfoundation/capture_input_port.gen.go b/macos/avfoundation/capture_input_port.gen.go index 933ad0e3..6c1a51be 100644 --- a/macos/avfoundation/capture_input_port.gen.go +++ b/macos/avfoundation/capture_input_port.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package avfoundation @@ -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] @@ -45,10 +45,6 @@ func (cc _CaptureInputPortClass) Alloc() CaptureInputPort { return rv } -func CaptureInputPort_Alloc() CaptureInputPort { - return CaptureInputPortClass.Alloc() -} - func (cc _CaptureInputPortClass) New() CaptureInputPort { rv := objc.Call[CaptureInputPort](cc, objc.Sel("new")) rv.Autorelease() @@ -64,14 +60,21 @@ func (c_ CaptureInputPort) Init() CaptureInputPort { 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) +} + // The input object that owns the port. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/avfoundation/avcaptureinputport/1387702-input?language=objc @@ -80,33 +83,26 @@ func (c_ CaptureInputPort) Input() CaptureInput { return rv } -// The media type of the port. [Full Topic] +// A description of the port format. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avcaptureinputport/1387120-mediatype?language=objc -func (c_ CaptureInputPort) MediaType() MediaType { - rv := objc.Call[MediaType](c_, objc.Sel("mediaType")) +// [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 } -// A Boolean value that indicates whether the port is in an enabled state. [Full Topic] +// The media type of the port. [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/1387120-mediatype?language=objc +func (c_ CaptureInputPort) MediaType() MediaType { + rv := objc.Call[MediaType](c_, objc.Sel("mediaType")) 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] +// An object that represents the capture device’s clock. [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")) +// [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 } diff --git a/macos/avfoundation/capture_movie_file_output.gen.go b/macos/avfoundation/capture_movie_file_output.gen.go index 5e548393..376717e9 100644 --- a/macos/avfoundation/capture_movie_file_output.gen.go +++ b/macos/avfoundation/capture_movie_file_output.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package avfoundation @@ -20,15 +20,16 @@ type _CaptureMovieFileOutputClass struct { type ICaptureMovieFileOutput interface { ICaptureFileOutput OutputSettingsForConnection(connection ICaptureConnection) map[string]objc.Object - SetOutputSettingsForConnection(outputSettings map[string]objc.IObject, connection ICaptureConnection) SetPrimaryConstituentDeviceSwitchingBehaviorForRecordingRestrictedSwitchingBehaviorConditions(switchingBehavior CapturePrimaryConstituentDeviceSwitchingBehavior, restrictedSwitchingBehaviorConditions CapturePrimaryConstituentDeviceRestrictedSwitchingBehaviorConditions) - PrimaryConstituentDeviceRestrictedSwitchingBehaviorConditionsForRecording() CapturePrimaryConstituentDeviceRestrictedSwitchingBehaviorConditions + SetOutputSettingsForConnection(outputSettings map[string]objc.IObject, connection ICaptureConnection) MovieFragmentInterval() coremedia.Time SetMovieFragmentInterval(value coremedia.Time) - Metadata() []MetadataItem - SetMetadata(value []IMetadataItem) + PrimaryConstituentDeviceRestrictedSwitchingBehaviorConditionsForRecording() CapturePrimaryConstituentDeviceRestrictedSwitchingBehaviorConditions IsPrimaryConstituentDeviceSwitchingBehaviorForRecordingEnabled() bool SetPrimaryConstituentDeviceSwitchingBehaviorForRecordingEnabled(value bool) + PrimaryConstituentDeviceSwitchingBehaviorForRecording() CapturePrimaryConstituentDeviceSwitchingBehavior + Metadata() []MetadataItem + SetMetadata(value []IMetadataItem) } // A capture output that records video and audio to a QuickTime movie file. [Full Topic] @@ -44,6 +45,11 @@ 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() @@ -54,20 +60,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 } -func CaptureMovieFileOutput_Alloc() CaptureMovieFileOutput { - return CaptureMovieFileOutputClass.Alloc() -} - // Returns the options used to reencode media from a given connection as it's being recorded. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/avfoundation/avcapturemoviefileoutput/1386479-outputsettingsforconnection?language=objc @@ -76,13 +73,6 @@ 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, objc.Ptr(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 @@ -90,12 +80,11 @@ func (c_ CaptureMovieFileOutput) SetPrimaryConstituentDeviceSwitchingBehaviorFor objc.Call[objc.Void](c_, objc.Sel("setPrimaryConstituentDeviceSwitchingBehaviorForRecording:restrictedSwitchingBehaviorConditions:"), switchingBehavior, restrictedSwitchingBehaviorConditions) } -// The conditions during which camera switching may occur while recording. [Full Topic] +// 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/3875324-primaryconstituentdevicerestrict?language=objc -func (c_ CaptureMovieFileOutput) PrimaryConstituentDeviceRestrictedSwitchingBehaviorConditionsForRecording() CapturePrimaryConstituentDeviceRestrictedSwitchingBehaviorConditions { - rv := objc.Call[CapturePrimaryConstituentDeviceRestrictedSwitchingBehaviorConditions](c_, objc.Sel("primaryConstituentDeviceRestrictedSwitchingBehaviorConditionsForRecording")) - return rv +// [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, objc.Ptr(connection)) } // The number of seconds of output that are written per fragment. [Full Topic] @@ -113,21 +102,14 @@ func (c_ CaptureMovieFileOutput) SetMovieFragmentInterval(value coremedia.Time) objc.Call[objc.Void](c_, objc.Sel("setMovieFragmentInterval:"), value) } -// The metadata for the output file. [Full Topic] +// The conditions during which camera switching may occur while recording. [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")) +// [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 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 @@ -142,3 +124,26 @@ 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 bfde8743..0d514c70 100644 --- a/macos/avfoundation/capture_output.gen.go +++ b/macos/avfoundation/capture_output.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package avfoundation @@ -20,8 +20,8 @@ type _CaptureOutputClass struct { type ICaptureOutput interface { objc.IObject TransformedMetadataObjectForMetadataObjectConnection(metadataObject IMetadataObject, connection ICaptureConnection) MetadataObject - MetadataOutputRectOfInterestForRect(rectInOutputCoordinates coregraphics.Rect) coregraphics.Rect RectForMetadataOutputRectOfInterest(rectInMetadataOutputCoordinates coregraphics.Rect) coregraphics.Rect + MetadataOutputRectOfInterestForRect(rectInOutputCoordinates coregraphics.Rect) coregraphics.Rect ConnectionWithMediaType(mediaType MediaType) CaptureConnection Connections() []CaptureConnection } @@ -44,10 +44,6 @@ func (cc _CaptureOutputClass) Alloc() CaptureOutput { return rv } -func CaptureOutput_Alloc() CaptureOutput { - return CaptureOutputClass.Alloc() -} - func (cc _CaptureOutputClass) New() CaptureOutput { rv := objc.Call[CaptureOutput](cc, objc.Sel("new")) rv.Autorelease() @@ -71,14 +67,6 @@ func (c_ CaptureOutput) TransformedMetadataObjectForMetadataObjectConnection(met 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 -func (c_ CaptureOutput) MetadataOutputRectOfInterestForRect(rectInOutputCoordinates coregraphics.Rect) coregraphics.Rect { - rv := objc.Call[coregraphics.Rect](c_, objc.Sel("metadataOutputRectOfInterestForRect:"), rectInOutputCoordinates) - 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 @@ -87,6 +75,14 @@ func (c_ CaptureOutput) RectForMetadataOutputRectOfInterest(rectInMetadataOutput 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 +func (c_ CaptureOutput) MetadataOutputRectOfInterestForRect(rectInOutputCoordinates coregraphics.Rect) coregraphics.Rect { + rv := objc.Call[coregraphics.Rect](c_, objc.Sel("metadataOutputRectOfInterestForRect:"), rectInOutputCoordinates) + 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 cbb5c45f..6b3e9374 100644 --- a/macos/avfoundation/capture_photo.gen.go +++ b/macos/avfoundation/capture_photo.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package avfoundation @@ -23,10 +23,10 @@ type ICapturePhoto interface { objc.IObject FileDataRepresentation() []byte CGImageRepresentation() coregraphics.ImageRef - PixelBuffer() corevideo.PixelBufferRef - PhotoCount() int ResolvedSettings() CaptureResolvedPhotoSettings + PhotoCount() int Timestamp() coremedia.Time + PixelBuffer() corevideo.PixelBufferRef } // A container for image data from a photo capture output. [Full Topic] @@ -47,10 +47,6 @@ func (cc _CapturePhotoClass) Alloc() CapturePhoto { return rv } -func CapturePhoto_Alloc() CapturePhoto { - return CapturePhotoClass.Alloc() -} - func (cc _CapturePhotoClass) New() CapturePhoto { rv := objc.Call[CapturePhoto](cc, objc.Sel("new")) rv.Autorelease() @@ -82,11 +78,11 @@ func (c_ CapturePhoto) CGImageRepresentation() coregraphics.ImageRef { return rv } -// The uncompressed or RAW image sample buffer for the photo, if requested. [Full Topic] +// The settings object that was used to request this photo capture. [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/2873898-resolvedsettings?language=objc +func (c_ CapturePhoto) ResolvedSettings() CaptureResolvedPhotoSettings { + rv := objc.Call[CaptureResolvedPhotoSettings](c_, objc.Sel("resolvedSettings")) return rv } @@ -98,14 +94,6 @@ func (c_ CapturePhoto) PhotoCount() int { return rv } -// The settings object that was used to request this photo capture. [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")) - return rv -} - // The time at which the image was captured. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/avfoundation/avcapturephoto/2873981-timestamp?language=objc @@ -113,3 +101,11 @@ func (c_ CapturePhoto) Timestamp() coremedia.Time { rv := objc.Call[coremedia.Time](c_, objc.Sel("timestamp")) return rv } + +// The uncompressed or RAW image sample buffer for the photo, if requested. [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")) + return rv +} diff --git a/macos/avfoundation/capture_photo_capture_delegate.gen.go b/macos/avfoundation/capture_photo_capture_delegate.gen.go index f07fbfb9..8d2a769f 100644 --- a/macos/avfoundation/capture_photo_capture_delegate.gen.go +++ b/macos/avfoundation/capture_photo_capture_delegate.gen.go @@ -1,8 +1,9 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package avfoundation import ( + "github.com/progrium/macdriver/macos/foundation" "github.com/progrium/macdriver/objc" ) @@ -10,16 +11,87 @@ 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 { - _CaptureOutputDidCapturePhotoForResolvedSettings func(output CapturePhotoOutput, resolvedSettings CaptureResolvedPhotoSettings) + _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 +} + +// 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 } @@ -37,19 +109,83 @@ 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) +} -// A concrete type wrapper for the [PCapturePhotoCaptureDelegate] protocol. -type CapturePhotoCaptureDelegateWrapper struct { +// ensure impl type implements protocol interface +var _ PCapturePhotoCaptureDelegate = (*CapturePhotoCaptureDelegateObject)(nil) + +// A concrete type for the [PCapturePhotoCaptureDelegate] protocol. +type CapturePhotoCaptureDelegateObject struct { objc.Object } -func (c_ CapturePhotoCaptureDelegateWrapper) HasCaptureOutputDidCapturePhotoForResolvedSettings() bool { +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:"), objc.Ptr(output), objc.Ptr(resolvedSettings), objc.Ptr(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:"), objc.Ptr(output), objc.Ptr(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:"), objc.Ptr(output), objc.Ptr(photo), objc.Ptr(error)) +} + +func (c_ CapturePhotoCaptureDelegateObject) HasCaptureOutputDidCapturePhotoForResolvedSettings() bool { return c_.RespondsToSelector(objc.Sel("captureOutput:didCapturePhotoForResolvedSettings:")) } // Notifies the delegate that the photo has been taken. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/avfoundation/avcapturephotocapturedelegate/1778632-captureoutput?language=objc -func (c_ CapturePhotoCaptureDelegateWrapper) CaptureOutputDidCapturePhotoForResolvedSettings(output ICapturePhotoOutput, resolvedSettings ICaptureResolvedPhotoSettings) { +func (c_ CapturePhotoCaptureDelegateObject) CaptureOutputDidCapturePhotoForResolvedSettings(output CapturePhotoOutput, resolvedSettings CaptureResolvedPhotoSettings) { objc.Call[objc.Void](c_, objc.Sel("captureOutput:didCapturePhotoForResolvedSettings:"), objc.Ptr(output), objc.Ptr(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:"), objc.Ptr(output), objc.Ptr(resolvedSettings)) +} diff --git a/macos/avfoundation/capture_photo_output.gen.go b/macos/avfoundation/capture_photo_output.gen.go index 3511b0ea..3856a232 100644 --- a/macos/avfoundation/capture_photo_output.gen.go +++ b/macos/avfoundation/capture_photo_output.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package avfoundation @@ -19,13 +19,13 @@ type _CapturePhotoOutputClass struct { // An interface definition for the [CapturePhotoOutput] class. type ICapturePhotoOutput interface { ICaptureOutput - SupportedPhotoPixelFormatTypesForFileType(fileType FileType) []foundation.Number - SupportedPhotoCodecTypesForFileType(fileType FileType) []VideoCodecType CapturePhotoWithSettingsDelegate(settings ICapturePhotoSettings, delegate PCapturePhotoCaptureDelegate) CapturePhotoWithSettingsDelegateObject(settings ICapturePhotoSettings, delegateObject objc.IObject) - AvailablePhotoCodecTypes() []VideoCodecType + SupportedPhotoPixelFormatTypesForFileType(fileType FileType) []foundation.Number + SupportedPhotoCodecTypesForFileType(fileType FileType) []VideoCodecType AvailablePhotoPixelFormatTypes() []foundation.Number AvailablePhotoFileTypes() []FileType + AvailablePhotoCodecTypes() []VideoCodecType } // A capture output for still image, Live Photos, and other photography workflows. [Full Topic] @@ -41,6 +41,11 @@ 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() @@ -51,36 +56,11 @@ 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 } -func CapturePhotoOutput_Alloc() CapturePhotoOutput { - return CapturePhotoOutputClass.Alloc() -} - -// 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 @@ -96,11 +76,19 @@ func (c_ CapturePhotoOutput) CapturePhotoWithSettingsDelegateObject(settings ICa objc.Call[objc.Void](c_, objc.Sel("capturePhotoWithSettings:delegate:"), objc.Ptr(settings), objc.Ptr(delegateObject)) } -// The compression codecs this capture output currently supports for photo capture. [Full Topic] +// 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/1648654-availablephotocodectypes?language=objc -func (c_ CapturePhotoOutput) AvailablePhotoCodecTypes() []VideoCodecType { - rv := objc.Call[[]VideoCodecType](c_, objc.Sel("availablePhotoCodecTypes")) +// [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 } @@ -119,3 +107,11 @@ 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 a3a14f3f..20b886d4 100644 --- a/macos/avfoundation/capture_photo_settings.gen.go +++ b/macos/avfoundation/capture_photo_settings.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package avfoundation @@ -18,8 +18,8 @@ type _CapturePhotoSettingsClass struct { // An interface definition for the [CapturePhotoSettings] class. type ICapturePhotoSettings interface { objc.IObject - UniqueID() int64 Format() map[string]objc.Object + UniqueID() int64 ProcessedFileType() FileType } @@ -36,18 +36,6 @@ func CapturePhotoSettingsFrom(ptr unsafe.Pointer) CapturePhotoSettings { } } -func (cc _CapturePhotoSettingsClass) PhotoSettingsFromPhotoSettings(photoSettings ICapturePhotoSettings) CapturePhotoSettings { - rv := objc.Call[CapturePhotoSettings](cc, objc.Sel("photoSettingsFromPhotoSettings:"), objc.Ptr(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 @@ -72,13 +60,21 @@ func CapturePhotoSettings_PhotoSettingsWithFormat(format map[string]objc.IObject return CapturePhotoSettingsClass.PhotoSettingsWithFormat(format) } -func (cc _CapturePhotoSettingsClass) Alloc() CapturePhotoSettings { - rv := objc.Call[CapturePhotoSettings](cc, objc.Sel("alloc")) +func (cc _CapturePhotoSettingsClass) PhotoSettingsFromPhotoSettings(photoSettings ICapturePhotoSettings) CapturePhotoSettings { + rv := objc.Call[CapturePhotoSettings](cc, objc.Sel("photoSettingsFromPhotoSettings:"), objc.Ptr(photoSettings)) return rv } -func CapturePhotoSettings_Alloc() CapturePhotoSettings { - return CapturePhotoSettingsClass.Alloc() +// 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 } func (cc _CapturePhotoSettingsClass) New() CapturePhotoSettings { @@ -96,14 +92,6 @@ func (c_ CapturePhotoSettings) Init() CapturePhotoSettings { 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 -func (c_ CapturePhotoSettings) UniqueID() int64 { - rv := objc.Call[int64](c_, objc.Sel("uniqueID")) - 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 @@ -112,6 +100,14 @@ func (c_ CapturePhotoSettings) Format() map[string]objc.Object { 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 +func (c_ CapturePhotoSettings) UniqueID() int64 { + rv := objc.Call[int64](c_, objc.Sel("uniqueID")) + 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 b58c5d80..77cafaf4 100644 --- a/macos/avfoundation/capture_resolved_photo_settings.gen.go +++ b/macos/avfoundation/capture_resolved_photo_settings.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package avfoundation @@ -19,8 +19,8 @@ type _CaptureResolvedPhotoSettingsClass struct { // An interface definition for the [CaptureResolvedPhotoSettings] class. type ICaptureResolvedPhotoSettings interface { objc.IObject - PhotoDimensions() coremedia.VideoDimensions ExpectedPhotoCount() uint + PhotoDimensions() coremedia.VideoDimensions UniqueID() int64 } @@ -42,10 +42,6 @@ func (cc _CaptureResolvedPhotoSettingsClass) Alloc() CaptureResolvedPhotoSetting return rv } -func CaptureResolvedPhotoSettings_Alloc() CaptureResolvedPhotoSettings { - return CaptureResolvedPhotoSettingsClass.Alloc() -} - func (cc _CaptureResolvedPhotoSettingsClass) New() CaptureResolvedPhotoSettings { rv := objc.Call[CaptureResolvedPhotoSettings](cc, objc.Sel("new")) rv.Autorelease() @@ -61,14 +57,6 @@ func (c_ CaptureResolvedPhotoSettings) Init() CaptureResolvedPhotoSettings { 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 -func (c_ CaptureResolvedPhotoSettings) PhotoDimensions() coremedia.VideoDimensions { - rv := objc.Call[coremedia.VideoDimensions](c_, objc.Sel("photoDimensions")) - 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 @@ -77,6 +65,14 @@ func (c_ CaptureResolvedPhotoSettings) ExpectedPhotoCount() uint { 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 +func (c_ CaptureResolvedPhotoSettings) PhotoDimensions() coremedia.VideoDimensions { + rv := objc.Call[coremedia.VideoDimensions](c_, objc.Sel("photoDimensions")) + 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 f0e1f604..1d5c9977 100644 --- a/macos/avfoundation/capture_screen_input.gen.go +++ b/macos/avfoundation/capture_screen_input.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package avfoundation @@ -20,16 +20,16 @@ type _CaptureScreenInputClass struct { // An interface definition for the [CaptureScreenInput] class. type ICaptureScreenInput interface { ICaptureInput - CapturesCursor() bool - SetCapturesCursor(value bool) + CropRect() coregraphics.Rect + SetCropRect(value coregraphics.Rect) ScaleFactor() float64 SetScaleFactor(value float64) - CapturesMouseClicks() bool - SetCapturesMouseClicks(value bool) + CapturesCursor() bool + SetCapturesCursor(value bool) MinFrameDuration() coremedia.Time SetMinFrameDuration(value coremedia.Time) - CropRect() coregraphics.Rect - SetCropRect(value coregraphics.Rect) + CapturesMouseClicks() bool + SetCapturesMouseClicks(value bool) } // A capture input for recording from a screen in macOS. [Full Topic] @@ -79,23 +79,19 @@ func (cc _CaptureScreenInputClass) Alloc() CaptureScreenInput { return rv } -func CaptureScreenInput_Alloc() CaptureScreenInput { - return CaptureScreenInputClass.Alloc() -} - -// A Boolean value that specifies whether the mouse cursor appears 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/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/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 the mouse cursor appears 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/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/1390518-croprect?language=objc +func (c_ CaptureScreenInput) SetCropRect(value coregraphics.Rect) { + objc.Call[objc.Void](c_, objc.Sel("setCropRect:"), value) } // Indicates the factor by which video buffers captured from the screen are to be scaled. [Full Topic] @@ -113,19 +109,19 @@ func (c_ CaptureScreenInput) SetScaleFactor(value float64) { objc.Call[objc.Void](c_, objc.Sel("setScaleFactor:"), value) } -// A Boolean value that specifies whether mouse clicks appear highlighted in the captured output. [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/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/1385601-capturescursor?language=objc +func (c_ CaptureScreenInput) CapturesCursor() bool { + rv := objc.Call[bool](c_, objc.Sel("capturesCursor")) return rv } -// A Boolean value that specifies whether mouse clicks appear highlighted in the captured output. [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/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/1385601-capturescursor?language=objc +func (c_ CaptureScreenInput) SetCapturesCursor(value bool) { + objc.Call[objc.Void](c_, objc.Sel("setCapturesCursor:"), value) } // The screen input's minimum frame duration. [Full Topic] @@ -143,17 +139,17 @@ func (c_ CaptureScreenInput) SetMinFrameDuration(value coremedia.Time) { objc.Call[objc.Void](c_, objc.Sel("setMinFrameDuration:"), value) } -// Indicates the bounding rectangle of the screen area to be captured, in pixels. [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/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/1385722-capturesmouseclicks?language=objc +func (c_ CaptureScreenInput) CapturesMouseClicks() bool { + rv := objc.Call[bool](c_, objc.Sel("capturesMouseClicks")) return rv } -// Indicates the bounding rectangle of the screen area to be captured, in pixels. [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/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/1385722-capturesmouseclicks?language=objc +func (c_ CaptureScreenInput) SetCapturesMouseClicks(value bool) { + objc.Call[objc.Void](c_, objc.Sel("setCapturesMouseClicks:"), value) } diff --git a/macos/avfoundation/capture_session.gen.go b/macos/avfoundation/capture_session.gen.go index 65b1e3e9..6d42649d 100644 --- a/macos/avfoundation/capture_session.gen.go +++ b/macos/avfoundation/capture_session.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package avfoundation @@ -19,29 +19,29 @@ type _CaptureSessionClass struct { // An interface definition for the [CaptureSession] class. type ICaptureSession interface { objc.IObject - StopRunning() + RemoveConnection(connection ICaptureConnection) CanSetSessionPreset(preset CaptureSessionPreset) bool RemoveInput(input ICaptureInput) - AddConnection(connection ICaptureConnection) - BeginConfiguration() + CanAddConnection(connection ICaptureConnection) bool StartRunning() - AddInput(input ICaptureInput) - RemoveConnection(connection ICaptureConnection) - CanAddInput(input ICaptureInput) bool - AddInputWithNoConnections(input ICaptureInput) AddOutput(output ICaptureOutput) - CommitConfiguration() - RemoveOutput(output ICaptureOutput) CanAddOutput(output ICaptureOutput) bool AddOutputWithNoConnections(output ICaptureOutput) - CanAddConnection(connection ICaptureConnection) bool + AddInputWithNoConnections(input ICaptureInput) + AddInput(input ICaptureInput) + RemoveOutput(output ICaptureOutput) + CanAddInput(input ICaptureInput) bool + CommitConfiguration() + StopRunning() + AddConnection(connection ICaptureConnection) + BeginConfiguration() 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] @@ -62,10 +62,6 @@ func (cc _CaptureSessionClass) Alloc() CaptureSession { return rv } -func CaptureSession_Alloc() CaptureSession { - return CaptureSessionClass.Alloc() -} - func (cc _CaptureSessionClass) New() CaptureSession { rv := objc.Call[CaptureSession](cc, objc.Sel("new")) rv.Autorelease() @@ -81,11 +77,11 @@ func (c_ CaptureSession) Init() CaptureSession { return rv } -// Stops the flow of data through the capture pipeline. [Full Topic] +// Removes a capture connection from the session. [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")) +// [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:"), objc.Ptr(connection)) } // Determines whether you can configure a capture session with the specified preset. [Full Topic] @@ -103,18 +99,12 @@ func (c_ CaptureSession) RemoveInput(input ICaptureInput) { objc.Call[objc.Void](c_, objc.Sel("removeInput:"), objc.Ptr(input)) } -// Adds a connection to the capture session. [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:"), objc.Ptr(connection)) -} - -// 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:"), objc.Ptr(connection)) + return rv } // Starts the flow of data through the capture pipeline. [Full Topic] @@ -124,26 +114,26 @@ func (c_ CaptureSession) StartRunning() { objc.Call[objc.Void](c_, objc.Sel("startRunning")) } -// 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:"), objc.Ptr(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:"), objc.Ptr(output)) } -// Removes a capture connection from the session. [Full Topic] +// Determines whether you can add an output to a session. [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:"), objc.Ptr(connection)) +// [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:"), objc.Ptr(output)) + return rv } -// Determines whether you can add an input to a 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/1387180-canaddinput?language=objc -func (c_ CaptureSession) CanAddInput(input ICaptureInput) bool { - rv := objc.Call[bool](c_, objc.Sel("canAddInput:"), objc.Ptr(input)) - return rv +// [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:"), objc.Ptr(output)) } // Adds a capture input to a session without forming any connections. [Full Topic] @@ -153,18 +143,11 @@ func (c_ CaptureSession) AddInputWithNoConnections(input ICaptureInput) { objc.Call[objc.Void](c_, objc.Sel("addInputWithNoConnections:"), objc.Ptr(input)) } -// Adds an output to the capture 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:"), objc.Ptr(output)) -} - -// Commits one or more changes to a running capture session’s configuration in a single atomic update. [Full Topic] +// Adds a capture input to the session. [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")) +// [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:"), objc.Ptr(input)) } // Removes an output from a capture session. [Full Topic] @@ -174,27 +157,40 @@ func (c_ CaptureSession) RemoveOutput(output ICaptureOutput) { objc.Call[objc.Void](c_, objc.Sel("removeOutput:"), objc.Ptr(output)) } -// Determines whether you can add an output to a session. [Full Topic] +// Determines whether you can add an input to a 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:"), objc.Ptr(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:"), objc.Ptr(input)) return rv } -// Adds a capture output to the session without forming any connections. [Full Topic] +// 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/1388709-addoutputwithnoconnections?language=objc -func (c_ CaptureSession) AddOutputWithNoConnections(output ICaptureOutput) { - objc.Call[objc.Void](c_, objc.Sel("addOutputWithNoConnections:"), objc.Ptr(output)) +// [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")) } -// Determines whether a you can add a connection to a capture session. [Full Topic] +// Stops the flow of data through the capture pipeline. [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:"), objc.Ptr(connection)) - return rv +// [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] +// +// [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:"), objc.Ptr(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")) } // The connections between inputs and outputs that a capture session contains. [Full Topic] @@ -205,14 +201,6 @@ 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 @@ -228,14 +216,6 @@ 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 @@ -251,3 +231,19 @@ 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_still_image_output.gen.go b/macos/avfoundation/capture_still_image_output.gen.go index e83f59af..5b937ac2 100644 --- a/macos/avfoundation/capture_still_image_output.gen.go +++ b/macos/avfoundation/capture_still_image_output.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package avfoundation @@ -38,10 +38,6 @@ func (cc _CaptureStillImageOutputClass) Alloc() CaptureStillImageOutput { return rv } -func CaptureStillImageOutput_Alloc() CaptureStillImageOutput { - return CaptureStillImageOutputClass.Alloc() -} - func (cc _CaptureStillImageOutputClass) New() CaptureStillImageOutput { rv := objc.Call[CaptureStillImageOutput](cc, objc.Sel("new")) rv.Autorelease() diff --git a/macos/avfoundation/capture_video_data_output.gen.go b/macos/avfoundation/capture_video_data_output.gen.go index 484db08b..4372a3fc 100644 --- a/macos/avfoundation/capture_video_data_output.gen.go +++ b/macos/avfoundation/capture_video_data_output.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package avfoundation @@ -20,19 +20,19 @@ type _CaptureVideoDataOutputClass struct { // An interface definition for the [CaptureVideoDataOutput] class. type ICaptureVideoDataOutput interface { ICaptureOutput - AvailableVideoCodecTypesForAssetWriterWithOutputFileType(outputFileType FileType) []VideoCodecType - RecommendedVideoSettingsForAssetWriterWithOutputFileType(outputFileType FileType) map[string]objc.Object RecommendedVideoSettingsForVideoCodecTypeAssetWriterOutputFileType(videoCodecType VideoCodecType, outputFileType FileType) map[string]objc.Object + RecommendedVideoSettingsForAssetWriterWithOutputFileType(outputFileType FileType) map[string]objc.Object + AvailableVideoCodecTypesForAssetWriterWithOutputFileType(outputFileType FileType) []VideoCodecType 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) - SampleBufferDelegate() CaptureVideoDataOutputSampleBufferDelegateWrapper + AvailableVideoCVPixelFormatTypes() []foundation.Number + SampleBufferDelegate() CaptureVideoDataOutputSampleBufferDelegateObject } // A capture output that records video and provides access to video frames for processing. [Full Topic] @@ -68,15 +68,11 @@ func (cc _CaptureVideoDataOutputClass) Alloc() CaptureVideoDataOutput { return rv } -func CaptureVideoDataOutput_Alloc() CaptureVideoDataOutput { - return CaptureVideoDataOutputClass.Alloc() -} - -// 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 } @@ -88,11 +84,11 @@ func (c_ CaptureVideoDataOutput) RecommendedVideoSettingsForAssetWriterWithOutpu 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 } @@ -111,14 +107,6 @@ func (c_ CaptureVideoDataOutput) SetSampleBufferDelegateObjectQueue(sampleBuffer objc.Call[objc.Void](c_, objc.Sel("setSampleBufferDelegate:queue:"), objc.Ptr(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 @@ -165,10 +153,18 @@ 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 -func (c_ CaptureVideoDataOutput) SampleBufferDelegate() CaptureVideoDataOutputSampleBufferDelegateWrapper { - rv := objc.Call[CaptureVideoDataOutputSampleBufferDelegateWrapper](c_, objc.Sel("sampleBufferDelegate")) +func (c_ CaptureVideoDataOutput) SampleBufferDelegate() CaptureVideoDataOutputSampleBufferDelegateObject { + rv := objc.Call[CaptureVideoDataOutputSampleBufferDelegateObject](c_, objc.Sel("sampleBufferDelegate")) return rv } 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 49952d23..a3c54a45 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 @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package avfoundation @@ -14,11 +14,16 @@ 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 { @@ -38,19 +43,50 @@ 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 +} -// A concrete type wrapper for the [PCaptureVideoDataOutputSampleBufferDelegate] protocol. -type CaptureVideoDataOutputSampleBufferDelegateWrapper struct { +// 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) + +// A concrete type for the [PCaptureVideoDataOutputSampleBufferDelegate] protocol. +type CaptureVideoDataOutputSampleBufferDelegateObject struct { objc.Object } -func (c_ CaptureVideoDataOutputSampleBufferDelegateWrapper) HasCaptureOutputDidOutputSampleBufferFromConnection() bool { +func (c_ CaptureVideoDataOutputSampleBufferDelegateObject) HasCaptureOutputDidOutputSampleBufferFromConnection() bool { return c_.RespondsToSelector(objc.Sel("captureOutput:didOutputSampleBuffer:fromConnection:")) } // Notifies the delegate that a new video frame was written. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/avfoundation/avcapturevideodataoutputsamplebufferdelegate/1385775-captureoutput?language=objc -func (c_ CaptureVideoDataOutputSampleBufferDelegateWrapper) CaptureOutputDidOutputSampleBufferFromConnection(output ICaptureOutput, sampleBuffer coremedia.SampleBufferRef, connection ICaptureConnection) { +func (c_ CaptureVideoDataOutputSampleBufferDelegateObject) CaptureOutputDidOutputSampleBufferFromConnection(output CaptureOutput, sampleBuffer coremedia.SampleBufferRef, connection CaptureConnection) { objc.Call[objc.Void](c_, objc.Sel("captureOutput:didOutputSampleBuffer:fromConnection:"), objc.Ptr(output), sampleBuffer, objc.Ptr(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:"), objc.Ptr(output), sampleBuffer, objc.Ptr(connection)) +} diff --git a/macos/avfoundation/capture_video_preview_layer.gen.go b/macos/avfoundation/capture_video_preview_layer.gen.go index a1e944d2..27988df5 100644 --- a/macos/avfoundation/capture_video_preview_layer.gen.go +++ b/macos/avfoundation/capture_video_preview_layer.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package avfoundation @@ -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 - PointForCaptureDevicePointOfInterest(captureDevicePointOfInterest coregraphics.Point) coregraphics.Point + TransformedMetadataObjectForMetadataObject(metadataObject IMetadataObject) MetadataObject + MetadataOutputRectOfInterestForRect(rectInLayerCoordinates coregraphics.Rect) coregraphics.Rect + Connection() CaptureConnection 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,20 +46,6 @@ func CaptureVideoPreviewLayerFrom(ptr unsafe.Pointer) CaptureVideoPreviewLayer { } } -func (c_ CaptureVideoPreviewLayer) InitWithSessionWithNoConnection(session ICaptureSession) CaptureVideoPreviewLayer { - rv := objc.Call[CaptureVideoPreviewLayer](c_, objc.Sel("initWithSessionWithNoConnection:"), objc.Ptr(session)) - return rv -} - -// Creates a 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/1387426-initwithsessionwithnoconnection?language=objc -func NewCaptureVideoPreviewLayerWithSessionWithNoConnection(session ICaptureSession) CaptureVideoPreviewLayer { - instance := CaptureVideoPreviewLayerClass.Alloc().InitWithSessionWithNoConnection(session) - instance.Autorelease() - return instance -} - func (cc _CaptureVideoPreviewLayerClass) LayerWithSessionWithNoConnection(session ICaptureSession) CaptureVideoPreviewLayer { rv := objc.Call[CaptureVideoPreviewLayer](cc, objc.Sel("layerWithSessionWithNoConnection:"), objc.Ptr(session)) return rv @@ -72,16 +58,18 @@ func CaptureVideoPreviewLayer_LayerWithSessionWithNoConnection(session ICaptureS return CaptureVideoPreviewLayerClass.LayerWithSessionWithNoConnection(session) } -func (cc _CaptureVideoPreviewLayerClass) LayerWithSession(session ICaptureSession) CaptureVideoPreviewLayer { - rv := objc.Call[CaptureVideoPreviewLayer](cc, objc.Sel("layerWithSession:"), objc.Ptr(session)) +func (c_ CaptureVideoPreviewLayer) InitWithSessionWithNoConnection(session ICaptureSession) CaptureVideoPreviewLayer { + rv := objc.Call[CaptureVideoPreviewLayer](c_, objc.Sel("initWithSessionWithNoConnection:"), objc.Ptr(session)) return rv } -// Returns a new layer to preview the visual output of a capture session. [Full Topic] +// Creates a 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/1567198-layerwithsession?language=objc -func CaptureVideoPreviewLayer_LayerWithSession(session ICaptureSession) CaptureVideoPreviewLayer { - return CaptureVideoPreviewLayerClass.LayerWithSession(session) +// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avcapturevideopreviewlayer/1387426-initwithsessionwithnoconnection?language=objc +func NewCaptureVideoPreviewLayerWithSessionWithNoConnection(session ICaptureSession) CaptureVideoPreviewLayer { + instance := CaptureVideoPreviewLayerClass.Alloc().InitWithSessionWithNoConnection(session) + instance.Autorelease() + return instance } func (c_ CaptureVideoPreviewLayer) InitWithSession(session ICaptureSession) CaptureVideoPreviewLayer { @@ -98,13 +86,21 @@ func NewCaptureVideoPreviewLayerWithSession(session ICaptureSession) CaptureVide return instance } -func (cc _CaptureVideoPreviewLayerClass) Alloc() CaptureVideoPreviewLayer { - rv := objc.Call[CaptureVideoPreviewLayer](cc, objc.Sel("alloc")) +func (cc _CaptureVideoPreviewLayerClass) LayerWithSession(session ICaptureSession) CaptureVideoPreviewLayer { + rv := objc.Call[CaptureVideoPreviewLayer](cc, objc.Sel("layerWithSession:"), objc.Ptr(session)) return rv } -func CaptureVideoPreviewLayer_Alloc() CaptureVideoPreviewLayer { - return CaptureVideoPreviewLayerClass.Alloc() +// Returns a new layer to preview the visual output of a capture session. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avcapturevideopreviewlayer/1567198-layerwithsession?language=objc +func CaptureVideoPreviewLayer_LayerWithSession(session ICaptureSession) CaptureVideoPreviewLayer { + return CaptureVideoPreviewLayerClass.LayerWithSession(session) +} + +func (cc _CaptureVideoPreviewLayerClass) Alloc() CaptureVideoPreviewLayer { + rv := objc.Call[CaptureVideoPreviewLayer](cc, objc.Sel("alloc")) + return rv } func (cc _CaptureVideoPreviewLayerClass) New() CaptureVideoPreviewLayer { @@ -122,32 +118,6 @@ 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 @@ -176,22 +146,32 @@ func CaptureVideoPreviewLayer_PresentationLayer() CaptureVideoPreviewLayer { return instance } -// 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:"), objc.Ptr(metadataObject)) +func (c_ CaptureVideoPreviewLayer) InitWithLayer(layer objc.IObject) CaptureVideoPreviewLayer { + rv := objc.Call[CaptureVideoPreviewLayer](c_, objc.Sel("initWithLayer:"), layer) return rv } -// Converts a rectangle from layer coordinates to the coordinate space of the metadata output. [Full Topic] +// Override to copy or initialize custom fields of the specified layer. [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) +// [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")) 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() +} + // Converts a point from layer coordinates to the coordinate space of the capture device. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/avfoundation/avcapturevideopreviewlayer/1623497-capturedevicepointofinterestforp?language=objc @@ -200,6 +180,14 @@ 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 @@ -215,11 +203,27 @@ func (c_ CaptureVideoPreviewLayer) RectForMetadataOutputRectOfInterest(rectInMet return rv } -// Converts a point from the coordinate space of the capture device to the coordinate space of the layer. [Full Topic] +// Converts a metadata object’s visual properties to layer coordinates. [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) +// [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:"), objc.Ptr(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] +// +// [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 } @@ -252,11 +256,3 @@ func (c_ CaptureVideoPreviewLayer) Session() CaptureSession { func (c_ CaptureVideoPreviewLayer) SetSession(value ICaptureSession) { objc.Call[objc.Void](c_, objc.Sel("setSession:"), objc.Ptr(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 d37beb4e..009db386 100644 --- a/macos/avfoundation/composition.gen.go +++ b/macos/avfoundation/composition.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package avfoundation @@ -20,11 +20,11 @@ type _CompositionClass struct { // An interface definition for the [Composition] class. type IComposition interface { IAsset - TracksWithMediaType(mediaType MediaType) []CompositionTrack - TracksWithMediaCharacteristic(mediaCharacteristic MediaCharacteristic) []CompositionTrack TrackWithTrackID(trackID objc.IObject) CompositionTrack - URLAssetInitializationOptions() map[string]objc.Object + TracksWithMediaCharacteristic(mediaCharacteristic MediaCharacteristic) []CompositionTrack + TracksWithMediaType(mediaType MediaType) []CompositionTrack NaturalSize() coregraphics.Size + URLAssetInitializationOptions() map[string]objc.Object } // An object that combines and arranges media from multiple assets into a single composite asset that you can play or process. [Full Topic] @@ -45,10 +45,6 @@ func (cc _CompositionClass) Alloc() Composition { return rv } -func Composition_Alloc() Composition { - return CompositionClass.Alloc() -} - func (cc _CompositionClass) New() Composition { rv := objc.Call[Composition](cc, objc.Sel("new")) rv.Autorelease() @@ -76,11 +72,11 @@ func Composition_AssetWithURL(URL foundation.IURL) Composition { return CompositionClass.AssetWithURL(URL) } -// Returns tracks that contain media of a specified type. [Full Topic] +// Returns a track that contains the specified identifier. [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) +// [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:"), objc.Ptr(trackID)) return rv } @@ -92,19 +88,11 @@ func (c_ Composition) TracksWithMediaCharacteristic(mediaCharacteristic MediaCha return rv } -// Returns a track that contains the specified identifier. [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:"), objc.Ptr(trackID)) - return rv -} - -// The options you used to create a composition. [Full Topic] +// Returns tracks that contain media of a specified type. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avcomposition/1387080-urlassetinitializationoptions?language=objc -func (c_ Composition) URLAssetInitializationOptions() map[string]objc.Object { - rv := objc.Call[map[string]objc.Object](c_, objc.Sel("URLAssetInitializationOptions")) +// [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 } @@ -115,3 +103,11 @@ func (c_ Composition) NaturalSize() coregraphics.Size { rv := objc.Call[coregraphics.Size](c_, objc.Sel("naturalSize")) return rv } + +// The options you used to create a composition. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avcomposition/1387080-urlassetinitializationoptions?language=objc +func (c_ Composition) URLAssetInitializationOptions() map[string]objc.Object { + rv := objc.Call[map[string]objc.Object](c_, objc.Sel("URLAssetInitializationOptions")) + return rv +} diff --git a/macos/avfoundation/composition_track.gen.go b/macos/avfoundation/composition_track.gen.go index 5c01ca83..c7bc56a6 100644 --- a/macos/avfoundation/composition_track.gen.go +++ b/macos/avfoundation/composition_track.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package avfoundation @@ -41,10 +41,6 @@ func (cc _CompositionTrackClass) Alloc() CompositionTrack { return rv } -func CompositionTrack_Alloc() CompositionTrack { - return CompositionTrackClass.Alloc() -} - func (cc _CompositionTrackClass) New() CompositionTrack { rv := objc.Call[CompositionTrack](cc, objc.Sel("new")) rv.Autorelease() diff --git a/macos/avfoundation/composition_track_format_description_replacement.gen.go b/macos/avfoundation/composition_track_format_description_replacement.gen.go index 88a7c100..ac110f79 100644 --- a/macos/avfoundation/composition_track_format_description_replacement.gen.go +++ b/macos/avfoundation/composition_track_format_description_replacement.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package avfoundation @@ -19,8 +19,8 @@ type _CompositionTrackFormatDescriptionReplacementClass struct { // An interface definition for the [CompositionTrackFormatDescriptionReplacement] class. type ICompositionTrackFormatDescriptionReplacement interface { objc.IObject - OriginalFormatDescription() coremedia.FormatDescriptionRef ReplacementFormatDescription() coremedia.FormatDescriptionRef + OriginalFormatDescription() coremedia.FormatDescriptionRef } // An object that represents a format description and its replacement. [Full Topic] @@ -41,10 +41,6 @@ func (cc _CompositionTrackFormatDescriptionReplacementClass) Alloc() Composition return rv } -func CompositionTrackFormatDescriptionReplacement_Alloc() CompositionTrackFormatDescriptionReplacement { - return CompositionTrackFormatDescriptionReplacementClass.Alloc() -} - func (cc _CompositionTrackFormatDescriptionReplacementClass) New() CompositionTrackFormatDescriptionReplacement { rv := objc.Call[CompositionTrackFormatDescriptionReplacement](cc, objc.Sel("new")) rv.Autorelease() @@ -60,14 +56,6 @@ func (c_ CompositionTrackFormatDescriptionReplacement) Init() CompositionTrackFo return rv } -// The format description to replace. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avcompositiontrackformatdescriptionreplacement/3180002-originalformatdescription?language=objc -func (c_ CompositionTrackFormatDescriptionReplacement) OriginalFormatDescription() coremedia.FormatDescriptionRef { - 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 @@ -75,3 +63,11 @@ func (c_ CompositionTrackFormatDescriptionReplacement) ReplacementFormatDescript 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 +func (c_ CompositionTrackFormatDescriptionReplacement) OriginalFormatDescription() coremedia.FormatDescriptionRef { + rv := objc.Call[coremedia.FormatDescriptionRef](c_, objc.Sel("originalFormatDescription")) + return rv +} diff --git a/macos/avfoundation/composition_track_segment.gen.go b/macos/avfoundation/composition_track_segment.gen.go index 3c96b493..5efb7794 100644 --- a/macos/avfoundation/composition_track_segment.gen.go +++ b/macos/avfoundation/composition_track_segment.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package avfoundation @@ -37,32 +37,6 @@ func CompositionTrackSegmentFrom(ptr unsafe.Pointer) CompositionTrackSegment { } } -func (cc _CompositionTrackSegmentClass) CompositionTrackSegmentWithTimeRange(timeRange coremedia.TimeRange) CompositionTrackSegment { - rv := objc.Call[CompositionTrackSegment](cc, objc.Sel("compositionTrackSegmentWithTimeRange:"), timeRange) - return rv -} - -// Returns a new object that presents an empty composition track segment. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avcompositiontracksegment/1400556-compositiontracksegmentwithtimer?language=objc -func CompositionTrackSegment_CompositionTrackSegmentWithTimeRange(timeRange coremedia.TimeRange) CompositionTrackSegment { - return CompositionTrackSegmentClass.CompositionTrackSegmentWithTimeRange(timeRange) -} - -func (c_ CompositionTrackSegment) InitWithTimeRange(timeRange coremedia.TimeRange) CompositionTrackSegment { - rv := objc.Call[CompositionTrackSegment](c_, objc.Sel("initWithTimeRange:"), timeRange) - return rv -} - -// Creates an object that presents an empty composition track segment. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avcompositiontracksegment/1386841-initwithtimerange?language=objc -func NewCompositionTrackSegmentWithTimeRange(timeRange coremedia.TimeRange) CompositionTrackSegment { - instance := CompositionTrackSegmentClass.Alloc().InitWithTimeRange(timeRange) - instance.Autorelease() - 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:"), objc.Ptr(URL), objc.Ptr(trackID), sourceTimeRange, targetTimeRange) return rv @@ -77,6 +51,18 @@ func NewCompositionTrackSegmentWithURLTrackIDSourceTimeRangeTargetTimeRange(URL return instance } +func (cc _CompositionTrackSegmentClass) CompositionTrackSegmentWithTimeRange(timeRange coremedia.TimeRange) CompositionTrackSegment { + rv := objc.Call[CompositionTrackSegment](cc, objc.Sel("compositionTrackSegmentWithTimeRange:"), timeRange) + return rv +} + +// Returns a new object that presents an empty composition track segment. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avcompositiontracksegment/1400556-compositiontracksegmentwithtimer?language=objc +func CompositionTrackSegment_CompositionTrackSegmentWithTimeRange(timeRange coremedia.TimeRange) CompositionTrackSegment { + 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:"), objc.Ptr(URL), objc.Ptr(trackID), sourceTimeRange, targetTimeRange) return rv @@ -89,13 +75,23 @@ func CompositionTrackSegment_CompositionTrackSegmentWithURLTrackIDSourceTimeRang return CompositionTrackSegmentClass.CompositionTrackSegmentWithURLTrackIDSourceTimeRangeTargetTimeRange(URL, trackID, sourceTimeRange, targetTimeRange) } -func (cc _CompositionTrackSegmentClass) Alloc() CompositionTrackSegment { - rv := objc.Call[CompositionTrackSegment](cc, objc.Sel("alloc")) +func (c_ CompositionTrackSegment) InitWithTimeRange(timeRange coremedia.TimeRange) CompositionTrackSegment { + rv := objc.Call[CompositionTrackSegment](c_, objc.Sel("initWithTimeRange:"), timeRange) return rv } -func CompositionTrackSegment_Alloc() CompositionTrackSegment { - return CompositionTrackSegmentClass.Alloc() +// Creates an object that presents an empty composition track segment. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avcompositiontracksegment/1386841-initwithtimerange?language=objc +func NewCompositionTrackSegmentWithTimeRange(timeRange coremedia.TimeRange) CompositionTrackSegment { + instance := CompositionTrackSegmentClass.Alloc().InitWithTimeRange(timeRange) + instance.Autorelease() + return instance +} + +func (cc _CompositionTrackSegmentClass) Alloc() CompositionTrackSegment { + rv := objc.Call[CompositionTrackSegment](cc, objc.Sel("alloc")) + return rv } func (cc _CompositionTrackSegmentClass) New() CompositionTrackSegment { diff --git a/macos/avfoundation/content_key.gen.go b/macos/avfoundation/content_key.gen.go index c27c4701..b1047d2c 100644 --- a/macos/avfoundation/content_key.gen.go +++ b/macos/avfoundation/content_key.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package avfoundation @@ -39,10 +39,6 @@ func (cc _ContentKeyClass) Alloc() ContentKey { return rv } -func ContentKey_Alloc() ContentKey { - return ContentKeyClass.Alloc() -} - func (cc _ContentKeyClass) New() ContentKey { rv := objc.Call[ContentKey](cc, objc.Sel("new")) rv.Autorelease() diff --git a/macos/avfoundation/content_key_recipient.gen.go b/macos/avfoundation/content_key_recipient_protocol.gen.go similarity index 69% rename from macos/avfoundation/content_key_recipient.gen.go rename to macos/avfoundation/content_key_recipient_protocol.gen.go index be842232..c20798ac 100644 --- a/macos/avfoundation/content_key_recipient.gen.go +++ b/macos/avfoundation/content_key_recipient_protocol.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package avfoundation @@ -19,30 +19,33 @@ type PContentKeyRecipient interface { HasMayRequireContentKeysForMediaDataProcessing() bool } -// A concrete type wrapper for the [PContentKeyRecipient] protocol. -type ContentKeyRecipientWrapper struct { +// ensure impl type implements protocol interface +var _ PContentKeyRecipient = (*ContentKeyRecipientObject)(nil) + +// A concrete type for the [PContentKeyRecipient] protocol. +type ContentKeyRecipientObject struct { objc.Object } -func (c_ ContentKeyRecipientWrapper) HasContentKeySessionDidProvideContentKey() bool { +func (c_ ContentKeyRecipientObject) HasContentKeySessionDidProvideContentKey() bool { return c_.RespondsToSelector(objc.Sel("contentKeySession:didProvideContentKey:")) } // Tells the recipient that a content key is available. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/avfoundation/avcontentkeyrecipient/3726101-contentkeysession?language=objc -func (c_ ContentKeyRecipientWrapper) ContentKeySessionDidProvideContentKey(contentKeySession IContentKeySession, contentKey IContentKey) { +func (c_ ContentKeyRecipientObject) ContentKeySessionDidProvideContentKey(contentKeySession ContentKeySession, contentKey ContentKey) { objc.Call[objc.Void](c_, objc.Sel("contentKeySession:didProvideContentKey:"), objc.Ptr(contentKeySession), objc.Ptr(contentKey)) } -func (c_ ContentKeyRecipientWrapper) HasMayRequireContentKeysForMediaDataProcessing() bool { +func (c_ ContentKeyRecipientObject) HasMayRequireContentKeysForMediaDataProcessing() bool { return c_.RespondsToSelector(objc.Sel("mayRequireContentKeysForMediaDataProcessing")) } // A Boolean value that indicates whether the recipient requires decryption keys for media data to enable processing. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/avfoundation/avcontentkeyrecipient/2799194-mayrequirecontentkeysformediadat?language=objc -func (c_ ContentKeyRecipientWrapper) MayRequireContentKeysForMediaDataProcessing() bool { +func (c_ ContentKeyRecipientObject) MayRequireContentKeysForMediaDataProcessing() bool { rv := objc.Call[bool](c_, objc.Sel("mayRequireContentKeysForMediaDataProcessing")) return rv } diff --git a/macos/avfoundation/content_key_request.gen.go b/macos/avfoundation/content_key_request.gen.go index 996083f8..bf2fda8a 100644 --- a/macos/avfoundation/content_key_request.gen.go +++ b/macos/avfoundation/content_key_request.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package avfoundation @@ -19,18 +19,19 @@ type _ContentKeyRequestClass struct { // An interface definition for the [ContentKeyRequest] class. type IContentKeyRequest interface { objc.IObject - ProcessContentKeyResponseError(error foundation.IError) ProcessContentKeyResponse(keyResponse IContentKeyResponse) + RespondByRequestingPersistableContentKeyRequestAndReturnError(outError foundation.IError) bool MakeStreamingContentKeyRequestDataForAppContentIdentifierOptionsCompletionHandler(appIdentifier []byte, contentIdentifier []byte, options map[string]objc.IObject, handler func(contentKeyRequestData []byte, error foundation.Error)) - RenewsExpiringResponseData() bool - Error() foundation.Error - Options() map[string]objc.Object - ContentKey() ContentKey - CanProvidePersistableContentKey() bool + ProcessContentKeyResponseError(error foundation.IError) + Identifier() objc.Object InitializationData() []byte ContentKeySpecifier() ContentKeySpecifier + ContentKey() ContentKey Status() ContentKeyRequestStatus - Identifier() objc.Object + CanProvidePersistableContentKey() bool + RenewsExpiringResponseData() bool + Options() map[string]objc.Object + Error() foundation.Error } // An object that encapsulates information about a content decryption key request issued from a content key session object. [Full Topic] @@ -51,10 +52,6 @@ func (cc _ContentKeyRequestClass) Alloc() ContentKeyRequest { return rv } -func ContentKeyRequest_Alloc() ContentKeyRequest { - return ContentKeyRequestClass.Alloc() -} - func (cc _ContentKeyRequestClass) New() ContentKeyRequest { rv := objc.Call[ContentKeyRequest](cc, objc.Sel("new")) rv.Autorelease() @@ -70,13 +67,6 @@ 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:"), objc.Ptr(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 @@ -84,6 +74,14 @@ func (c_ ContentKeyRequest) ProcessContentKeyResponse(keyResponse IContentKeyRes objc.Call[objc.Void](c_, objc.Sel("processContentKeyResponse:"), objc.Ptr(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 foundation.IError) bool { + rv := objc.Call[bool](c_, objc.Sel("respondByRequestingPersistableContentKeyRequestAndReturnError:"), objc.Ptr(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 @@ -91,27 +89,34 @@ func (c_ ContentKeyRequest) MakeStreamingContentKeyRequestDataForAppContentIdent objc.Call[objc.Void](c_, objc.Sel("makeStreamingContentKeyRequestDataForApp:contentIdentifier:options:completionHandler:"), appIdentifier, contentIdentifier, options, handler) } -// A Boolean value that indicates whether the content key request renews previously provided response data. [Full Topic] +// 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/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/2799159-processcontentkeyresponseerror?language=objc +func (c_ ContentKeyRequest) ProcessContentKeyResponseError(error foundation.IError) { + objc.Call[objc.Void](c_, objc.Sel("processContentKeyResponseError:"), objc.Ptr(error)) +} + +// 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 } -// The error description for a failed key request. [Full Topic] +// The data used to obtain a key response. [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/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 } @@ -123,42 +128,42 @@ func (c_ ContentKeyRequest) ContentKey() ContentKey { 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] +// The current state of the content key request. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avcontentkeyrequest/2799185-canprovidepersistablecontentkey?language=objc -func (c_ ContentKeyRequest) CanProvidePersistableContentKey() bool { - rv := objc.Call[bool](c_, objc.Sel("canProvidePersistableContentKey")) +// [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 data used to obtain a key response. [Full Topic] +// 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/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/2799185-canprovidepersistablecontentkey?language=objc +func (c_ ContentKeyRequest) CanProvidePersistableContentKey() bool { + rv := objc.Call[bool](c_, objc.Sel("canProvidePersistableContentKey")) return rv } -// The requested content key specifier. [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/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/2799193-renewsexpiringresponsedata?language=objc +func (c_ ContentKeyRequest) RenewsExpiringResponseData() bool { + rv := objc.Call[bool](c_, objc.Sel("renewsExpiringResponseData")) return rv } -// The current state of the content key request. [Full Topic] +// A dictionary of options used to initialize key loading. [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")) +// [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 } -// The identifier for the content key. [Full Topic] +// The error description for a failed key request. [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/2799182-error?language=objc +func (c_ ContentKeyRequest) Error() foundation.Error { + rv := objc.Call[foundation.Error](c_, objc.Sel("error")) return rv } diff --git a/macos/avfoundation/content_key_response.gen.go b/macos/avfoundation/content_key_response.gen.go index cfd2c20a..a127fdb0 100644 --- a/macos/avfoundation/content_key_response.gen.go +++ b/macos/avfoundation/content_key_response.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package avfoundation @@ -33,18 +33,6 @@ func ContentKeyResponseFrom(ptr unsafe.Pointer) ContentKeyResponse { } } -func (cc _ContentKeyResponseClass) ContentKeyResponseWithClearKeyDataInitializationVector(keyData []byte, initializationVector []byte) ContentKeyResponse { - rv := objc.Call[ContentKeyResponse](cc, objc.Sel("contentKeyResponseWithClearKeyData:initializationVector:"), keyData, initializationVector) - return rv -} - -// Creates a new key response object for key data and initialization vector sent in the clear. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avcontentkeyresponse/2867986-contentkeyresponsewithclearkeyda?language=objc -func ContentKeyResponse_ContentKeyResponseWithClearKeyDataInitializationVector(keyData []byte, initializationVector []byte) ContentKeyResponse { - return ContentKeyResponseClass.ContentKeyResponseWithClearKeyDataInitializationVector(keyData, initializationVector) -} - func (cc _ContentKeyResponseClass) ContentKeyResponseWithAuthorizationTokenData(authorizationTokenData []byte) ContentKeyResponse { rv := objc.Call[ContentKeyResponse](cc, objc.Sel("contentKeyResponseWithAuthorizationTokenData:"), authorizationTokenData) return rv @@ -57,6 +45,18 @@ func ContentKeyResponse_ContentKeyResponseWithAuthorizationTokenData(authorizati 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 +} + +// Creates a new key response object for key data and initialization vector sent in the clear. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avcontentkeyresponse/2867986-contentkeyresponsewithclearkeyda?language=objc +func ContentKeyResponse_ContentKeyResponseWithClearKeyDataInitializationVector(keyData []byte, initializationVector []byte) ContentKeyResponse { + return ContentKeyResponseClass.ContentKeyResponseWithClearKeyDataInitializationVector(keyData, initializationVector) +} + func (cc _ContentKeyResponseClass) ContentKeyResponseWithFairPlayStreamingKeyResponseData(keyResponseData []byte) ContentKeyResponse { rv := objc.Call[ContentKeyResponse](cc, objc.Sel("contentKeyResponseWithFairPlayStreamingKeyResponseData:"), keyResponseData) return rv @@ -74,10 +74,6 @@ func (cc _ContentKeyResponseClass) Alloc() ContentKeyResponse { return rv } -func ContentKeyResponse_Alloc() ContentKeyResponse { - return ContentKeyResponseClass.Alloc() -} - func (cc _ContentKeyResponseClass) New() ContentKeyResponse { rv := objc.Call[ContentKeyResponse](cc, objc.Sel("new")) rv.Autorelease() diff --git a/macos/avfoundation/content_key_session.gen.go b/macos/avfoundation/content_key_session.gen.go index 7002fb49..543d6977 100644 --- a/macos/avfoundation/content_key_session.gen.go +++ b/macos/avfoundation/content_key_session.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package avfoundation @@ -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 + Delegate() ContentKeySessionDelegateObject + ContentKeyRecipients() []ContentKeyRecipientObject ContentProtectionSessionIdentifier() []byte - Delegate() ContentKeySessionDelegateWrapper - StorageURL() foundation.URL - ContentKeyRecipients() []ContentKeyRecipientWrapper DelegateQueue() dispatch.Queue } @@ -53,6 +53,18 @@ 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, objc.Ptr(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 @@ -70,10 +82,6 @@ func (cc _ContentKeySessionClass) Alloc() ContentKeySession { return rv } -func ContentKeySession_Alloc() ContentKeySession { - return ContentKeySessionClass.Alloc() -} - func (cc _ContentKeySessionClass) New() ContentKeySession { rv := objc.Call[ContentKeySession](cc, objc.Sel("new")) rv.Autorelease() @@ -89,25 +97,34 @@ func (c_ ContentKeySession) Init() ContentKeySession { return rv } -// Removes expired session reports from storage. [Full Topic] +// Tells the delegate to remove the specified recipient. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avcontentkeysession/2799170-removependingexpiredsessionrepor?language=objc -func (cc _ContentKeySessionClass) RemovePendingExpiredSessionReportsWithAppIdentifierStorageDirectoryAtURL(expiredSessionReports [][]byte, appIdentifier []byte, storageURL foundation.IURL) { - objc.Call[objc.Void](cc, objc.Sel("removePendingExpiredSessionReports:withAppIdentifier:storageDirectoryAtURL:"), expiredSessionReports, appIdentifier, objc.Ptr(storageURL)) +// [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) } -// Removes expired session reports from storage. [Full Topic] +// Tells the delegate to remove the specified recipient. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avcontentkeysession/2799170-removependingexpiredsessionrepor?language=objc -func ContentKeySession_RemovePendingExpiredSessionReportsWithAppIdentifierStorageDirectoryAtURL(expiredSessionReports [][]byte, appIdentifier []byte, storageURL foundation.IURL) { - ContentKeySessionClass.RemovePendingExpiredSessionReportsWithAppIdentifierStorageDirectoryAtURL(expiredSessionReports, appIdentifier, storageURL) +// [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:"), objc.Ptr(recipientObject)) } -// 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] +// 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/2887476-makesecuretokenforexpirationdate?language=objc -func (c_ ContentKeySession) MakeSecureTokenForExpirationDateOfPersistableContentKeyCompletionHandler(persistableContentKeyData []byte, handler func(secureTokenData []byte, error foundation.Error)) { - objc.Call[objc.Void](c_, objc.Sel("makeSecureTokenForExpirationDateOfPersistableContentKey:completionHandler:"), persistableContentKeyData, handler) +// [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, objc.Ptr(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] @@ -117,85 +134,76 @@ func (c_ ContentKeySession) RenewExpiringResponseDataForContentKeyRequest(conten objc.Call[objc.Void](c_, objc.Sel("renewExpiringResponseDataForContentKeyRequest:"), objc.Ptr(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] +// 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/2799174-addcontentkeyrecipient?language=objc -func (c_ ContentKeySession) AddContentKeyRecipientObject(recipientObject objc.IObject) { - objc.Call[objc.Void](c_, objc.Sel("addContentKeyRecipient:"), objc.Ptr(recipientObject)) +// [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) } -// Sets the session’s delegate object and the dispatch queue on which to call the delegate’s methods. [Full Topic] +// Removes expired session reports from storage. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avcontentkeysession/2799164-setdelegate?language=objc -func (c_ ContentKeySession) SetDelegateQueue(delegate PContentKeySessionDelegate, delegateQueue dispatch.Queue) { - po0 := objc.WrapAsProtocol("AVContentKeySessionDelegate", delegate) - objc.Call[objc.Void](c_, objc.Sel("setDelegate:queue:"), po0, delegateQueue) +// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avcontentkeysession/2799170-removependingexpiredsessionrepor?language=objc +func (cc _ContentKeySessionClass) RemovePendingExpiredSessionReportsWithAppIdentifierStorageDirectoryAtURL(expiredSessionReports [][]byte, appIdentifier []byte, storageURL foundation.IURL) { + objc.Call[objc.Void](cc, objc.Sel("removePendingExpiredSessionReports:withAppIdentifier:storageDirectoryAtURL:"), expiredSessionReports, appIdentifier, objc.Ptr(storageURL)) } -// Sets the session’s delegate object and the dispatch queue on which to call the delegate’s methods. [Full Topic] +// Removes expired session reports from storage. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avcontentkeysession/2799164-setdelegate?language=objc -func (c_ ContentKeySession) SetDelegateObjectQueue(delegateObject objc.IObject, delegateQueue dispatch.Queue) { - objc.Call[objc.Void](c_, objc.Sel("setDelegate:queue:"), objc.Ptr(delegateObject), delegateQueue) +// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avcontentkeysession/2799170-removependingexpiredsessionrepor?language=objc +func ContentKeySession_RemovePendingExpiredSessionReportsWithAppIdentifierStorageDirectoryAtURL(expiredSessionReports [][]byte, appIdentifier []byte, storageURL foundation.IURL) { + ContentKeySessionClass.RemovePendingExpiredSessionReportsWithAppIdentifierStorageDirectoryAtURL(expiredSessionReports, appIdentifier, storageURL) } -// Tells the delegate to remove the specified recipient. [Full Topic] +// 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/2799181-removecontentkeyrecipient?language=objc -func (c_ ContentKeySession) RemoveContentKeyRecipient(recipient PContentKeyRecipient) { - po0 := objc.WrapAsProtocol("AVContentKeyRecipient", recipient) - objc.Call[objc.Void](c_, objc.Sel("removeContentKeyRecipient:"), po0) +// [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 to remove the specified recipient. [Full Topic] +// 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/2799181-removecontentkeyrecipient?language=objc -func (c_ ContentKeySession) RemoveContentKeyRecipientObject(recipientObject objc.IObject) { - objc.Call[objc.Void](c_, objc.Sel("removeContentKeyRecipient:"), objc.Ptr(recipientObject)) +// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avcontentkeysession/2887476-makesecuretokenforexpirationdate?language=objc +func (c_ ContentKeySession) MakeSecureTokenForExpirationDateOfPersistableContentKeyCompletionHandler(persistableContentKeyData []byte, handler func(secureTokenData []byte, error foundation.Error)) { + objc.Call[objc.Void](c_, objc.Sel("makeSecureTokenForExpirationDateOfPersistableContentKey:completionHandler:"), persistableContentKeyData, handler) } -// Invalidates the persistable content key and creates a secure server playback context (SPC) to verify the outcome of an invalidation request. [Full Topic] +// 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/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) +// [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")) } -// Returns the expired session reports for content key sessions created with the specified app identifier. [Full Topic] +// Sets the session’s delegate object and the dispatch queue on which to call the delegate’s methods. [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, objc.Ptr(storageURL)) - return rv +// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avcontentkeysession/2799164-setdelegate?language=objc +func (c_ ContentKeySession) SetDelegateQueue(delegate PContentKeySessionDelegate, delegateQueue dispatch.Queue) { + po0 := objc.WrapAsProtocol("AVContentKeySessionDelegate", delegate) + objc.Call[objc.Void](c_, objc.Sel("setDelegate:queue:"), po0, delegateQueue) } -// Returns the expired session reports for content key sessions created with the specified app identifier. [Full Topic] +// Sets the session’s delegate object and the dispatch queue on which to call the delegate’s methods. [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) +// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avcontentkeysession/2799164-setdelegate?language=objc +func (c_ ContentKeySession) SetDelegateObjectQueue(delegateObject objc.IObject, delegateQueue dispatch.Queue) { + objc.Call[objc.Void](c_, objc.Sel("setDelegate:queue:"), objc.Ptr(delegateObject), delegateQueue) } -// 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] +// 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/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) +// [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 session expired as the result of normal, intentional processes. [Full Topic] +// 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/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/2799174-addcontentkeyrecipient?language=objc +func (c_ ContentKeySession) AddContentKeyRecipientObject(recipientObject objc.IObject) { + objc.Call[objc.Void](c_, objc.Sel("addContentKeyRecipient:"), objc.Ptr(recipientObject)) } // Tells the delegate to start loading the content decryption key with the specified identifier and initialization data. [Full Topic] @@ -205,43 +213,43 @@ func (c_ ContentKeySession) ProcessContentKeyRequestWithIdentifierInitialization objc.Call[objc.Void](c_, objc.Sel("processContentKeyRequestWithIdentifier:initializationData:options:"), identifier, initializationData, options) } -// The type of key system used to retrieve keys. [Full Topic] +// A URL that points to a writable storage directory. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avcontentkeysession/2799167-keysystem?language=objc -func (c_ ContentKeySession) KeySystem() ContentKeySystem { - rv := objc.Call[ContentKeySystem](c_, objc.Sel("keySystem")) +// [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] +// The type of key system used to retrieve keys. [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/2799167-keysystem?language=objc +func (c_ ContentKeySession) KeySystem() ContentKeySystem { + rv := objc.Call[ContentKeySystem](c_, objc.Sel("keySystem")) return rv } // The content key session’s delegate object. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/avfoundation/avcontentkeysession/2799191-delegate?language=objc -func (c_ ContentKeySession) Delegate() ContentKeySessionDelegateWrapper { - rv := objc.Call[ContentKeySessionDelegateWrapper](c_, objc.Sel("delegate")) +func (c_ ContentKeySession) Delegate() ContentKeySessionDelegateObject { + rv := objc.Call[ContentKeySessionDelegateObject](c_, objc.Sel("delegate")) return rv } -// A URL that points to a writable storage directory. [Full Topic] +// An array of content key recipients. [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/2799192-contentkeyrecipients?language=objc +func (c_ ContentKeySession) ContentKeyRecipients() []ContentKeyRecipientObject { + rv := objc.Call[[]ContentKeyRecipientObject](c_, objc.Sel("contentKeyRecipients")) return rv } -// An array of content key recipients. [Full Topic] +// The identifier for the current content protection session. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avcontentkeysession/2799192-contentkeyrecipients?language=objc -func (c_ ContentKeySession) ContentKeyRecipients() []ContentKeyRecipientWrapper { - rv := objc.Call[[]ContentKeyRecipientWrapper](c_, objc.Sel("contentKeyRecipients")) +// [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 } diff --git a/macos/avfoundation/content_key_session_delegate.gen.go b/macos/avfoundation/content_key_session_delegate.gen.go index 76c3a746..1353620c 100644 --- a/macos/avfoundation/content_key_session_delegate.gen.go +++ b/macos/avfoundation/content_key_session_delegate.gen.go @@ -1,8 +1,9 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package avfoundation import ( + "github.com/progrium/macdriver/macos/foundation" "github.com/progrium/macdriver/objc" ) @@ -10,6 +11,26 @@ 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 @@ -19,17 +40,112 @@ type PContentKeySessionDelegate interface { HasContentKeySessionContentProtectionSessionIdentifierDidChange() bool // optional - ContentKeySessionDidProvideContentKeyRequest(session ContentKeySession, keyRequest ContentKeyRequest) - HasContentKeySessionDidProvideContentKeyRequest() bool + ContentKeySessionContentKeyRequestDidSucceed(session ContentKeySession, keyRequest ContentKeyRequest) + HasContentKeySessionContentKeyRequestDidSucceed() bool + + // optional + ContentKeySessionShouldRetryContentKeyRequestReason(session ContentKeySession, keyRequest ContentKeyRequest, retryReason ContentKeyRequestRetryReason) bool + HasContentKeySessionShouldRetryContentKeyRequestReason() bool } // A delegate implementation builder for the [PContentKeySessionDelegate] protocol. type ContentKeySessionDelegate struct { - _ContentKeySessionDidGenerateExpiredSessionReport func(session ContentKeySession) - _ContentKeySessionContentProtectionSessionIdentifierDidChange func(session ContentKeySession) - _ContentKeySessionDidProvideContentKeyRequest func(session ContentKeySession, keyRequest ContentKeyRequest) + _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 +} + +// 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 } @@ -64,58 +180,145 @@ func (di *ContentKeySessionDelegate) SetContentKeySessionContentProtectionSessio func (di *ContentKeySessionDelegate) ContentKeySessionContentProtectionSessionIdentifierDidChange(session ContentKeySession) { di._ContentKeySessionContentProtectionSessionIdentifierDidChange(session) } -func (di *ContentKeySessionDelegate) HasContentKeySessionDidProvideContentKeyRequest() bool { - return di._ContentKeySessionDidProvideContentKeyRequest != nil +func (di *ContentKeySessionDelegate) HasContentKeySessionContentKeyRequestDidSucceed() bool { + return di._ContentKeySessionContentKeyRequestDidSucceed != nil } -// Provides the receiver with a new content key request object. [Full Topic] +// 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/2799204-contentkeysession?language=objc -func (di *ContentKeySessionDelegate) SetContentKeySessionDidProvideContentKeyRequest(f func(session ContentKeySession, keyRequest ContentKeyRequest)) { - di._ContentKeySessionDidProvideContentKeyRequest = f +// [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 +} + +// Provides the receiver with a content key request object to retry. [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 +} + +// Provides the receiver with a content key request object to retry. [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) +} + +// ensure impl type implements protocol interface +var _ PContentKeySessionDelegate = (*ContentKeySessionDelegateObject)(nil) + +// A concrete type for the [PContentKeySessionDelegate] protocol. +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:"), objc.Ptr(session), objc.Ptr(keyRequest), objc.Ptr(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 (di *ContentKeySessionDelegate) ContentKeySessionDidProvideContentKeyRequest(session ContentKeySession, keyRequest ContentKeyRequest) { - di._ContentKeySessionDidProvideContentKeyRequest(session, keyRequest) +func (c_ ContentKeySessionDelegateObject) ContentKeySessionDidProvideContentKeyRequest(session ContentKeySession, keyRequest ContentKeyRequest) { + objc.Call[objc.Void](c_, objc.Sel("contentKeySession:didProvideContentKeyRequest:"), objc.Ptr(session), objc.Ptr(keyRequest)) } -// A concrete type wrapper for the [PContentKeySessionDelegate] protocol. -type ContentKeySessionDelegateWrapper struct { - objc.Object +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:"), objc.Ptr(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:"), objc.Ptr(session), objc.Ptr(keyRequest)) } -func (c_ ContentKeySessionDelegateWrapper) HasContentKeySessionDidGenerateExpiredSessionReport() bool { +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:"), objc.Ptr(session), objc.Ptr(keyRequest)) +} + +func (c_ ContentKeySessionDelegateObject) HasContentKeySessionDidGenerateExpiredSessionReport() bool { return c_.RespondsToSelector(objc.Sel("contentKeySessionDidGenerateExpiredSessionReport:")) } // Notifies the sender that an expired session report has been generated. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/avfoundation/avcontentkeysessiondelegate/2966513-contentkeysessiondidgenerateexpi?language=objc -func (c_ ContentKeySessionDelegateWrapper) ContentKeySessionDidGenerateExpiredSessionReport(session IContentKeySession) { +func (c_ ContentKeySessionDelegateObject) ContentKeySessionDidGenerateExpiredSessionReport(session ContentKeySession) { objc.Call[objc.Void](c_, objc.Sel("contentKeySessionDidGenerateExpiredSessionReport:"), objc.Ptr(session)) } -func (c_ ContentKeySessionDelegateWrapper) HasContentKeySessionContentProtectionSessionIdentifierDidChange() bool { +func (c_ ContentKeySessionDelegateObject) HasContentKeySessionContentProtectionSessionIdentifierDidChange() bool { return c_.RespondsToSelector(objc.Sel("contentKeySessionContentProtectionSessionIdentifierDidChange:")) } // Tells the receiver the content protection session identifier changed. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/avfoundation/avcontentkeysessiondelegate/2799160-contentkeysessioncontentprotecti?language=objc -func (c_ ContentKeySessionDelegateWrapper) ContentKeySessionContentProtectionSessionIdentifierDidChange(session IContentKeySession) { +func (c_ ContentKeySessionDelegateObject) ContentKeySessionContentProtectionSessionIdentifierDidChange(session ContentKeySession) { objc.Call[objc.Void](c_, objc.Sel("contentKeySessionContentProtectionSessionIdentifierDidChange:"), objc.Ptr(session)) } -func (c_ ContentKeySessionDelegateWrapper) HasContentKeySessionDidProvideContentKeyRequest() bool { - return c_.RespondsToSelector(objc.Sel("contentKeySession:didProvideContentKeyRequest:")) +func (c_ ContentKeySessionDelegateObject) HasContentKeySessionContentKeyRequestDidSucceed() bool { + return c_.RespondsToSelector(objc.Sel("contentKeySession:contentKeyRequestDidSucceed:")) } -// Provides the receiver with a new content key request object. [Full Topic] +// 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/2799204-contentkeysession?language=objc -func (c_ ContentKeySessionDelegateWrapper) ContentKeySessionDidProvideContentKeyRequest(session IContentKeySession, keyRequest IContentKeyRequest) { - objc.Call[objc.Void](c_, objc.Sel("contentKeySession:didProvideContentKeyRequest:"), objc.Ptr(session), objc.Ptr(keyRequest)) +// [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:"), objc.Ptr(session), objc.Ptr(keyRequest)) +} + +func (c_ ContentKeySessionDelegateObject) HasContentKeySessionShouldRetryContentKeyRequestReason() bool { + return c_.RespondsToSelector(objc.Sel("contentKeySession:shouldRetryContentKeyRequest:reason:")) +} + +// Provides the receiver with a content key request object to retry. [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:"), objc.Ptr(session), objc.Ptr(keyRequest), retryReason) + return rv } diff --git a/macos/avfoundation/content_key_specifier.gen.go b/macos/avfoundation/content_key_specifier.gen.go index 68ab97f7..cec9298c 100644 --- a/macos/avfoundation/content_key_specifier.gen.go +++ b/macos/avfoundation/content_key_specifier.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package avfoundation @@ -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,6 +36,18 @@ 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 @@ -50,27 +62,11 @@ 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 } -func ContentKeySpecifier_Alloc() ContentKeySpecifier { - return ContentKeySpecifierClass.Alloc() -} - func (cc _ContentKeySpecifierClass) New() ContentKeySpecifier { rv := objc.Call[ContentKeySpecifier](cc, objc.Sel("new")) rv.Autorelease() @@ -86,14 +82,6 @@ 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 @@ -109,3 +97,11 @@ 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 7eea4ef4..3e6755e8 100644 --- a/macos/avfoundation/coordinated_playback_participant.gen.go +++ b/macos/avfoundation/coordinated_playback_participant.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package avfoundation @@ -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] @@ -42,10 +42,6 @@ func (cc _CoordinatedPlaybackParticipantClass) Alloc() CoordinatedPlaybackPartic return rv } -func CoordinatedPlaybackParticipant_Alloc() CoordinatedPlaybackParticipant { - return CoordinatedPlaybackParticipantClass.Alloc() -} - func (cc _CoordinatedPlaybackParticipantClass) New() CoordinatedPlaybackParticipant { rv := objc.Call[CoordinatedPlaybackParticipant](cc, objc.Sel("new")) rv.Autorelease() @@ -61,6 +57,14 @@ 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 @@ -76,11 +80,3 @@ 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/coordinated_playback_suspension.gen.go b/macos/avfoundation/coordinated_playback_suspension.gen.go index 72234078..28d2fc85 100644 --- a/macos/avfoundation/coordinated_playback_suspension.gen.go +++ b/macos/avfoundation/coordinated_playback_suspension.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package avfoundation @@ -44,10 +44,6 @@ func (cc _CoordinatedPlaybackSuspensionClass) Alloc() CoordinatedPlaybackSuspens return rv } -func CoordinatedPlaybackSuspension_Alloc() CoordinatedPlaybackSuspension { - return CoordinatedPlaybackSuspensionClass.Alloc() -} - func (cc _CoordinatedPlaybackSuspensionClass) New() CoordinatedPlaybackSuspension { rv := objc.Call[CoordinatedPlaybackSuspension](cc, objc.Sel("new")) rv.Autorelease() diff --git a/macos/avfoundation/date_range_metadata_group.gen.go b/macos/avfoundation/date_range_metadata_group.gen.go index 3dbda984..86301e2d 100644 --- a/macos/avfoundation/date_range_metadata_group.gen.go +++ b/macos/avfoundation/date_range_metadata_group.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package avfoundation @@ -19,8 +19,8 @@ type _DateRangeMetadataGroupClass struct { // An interface definition for the [DateRangeMetadataGroup] class. type IDateRangeMetadataGroup interface { IMetadataGroup - StartDate() foundation.Date EndDate() foundation.Date + StartDate() foundation.Date } // A collection of metadata items that are valid for use within a specific date range. [Full Topic] @@ -55,10 +55,6 @@ func (dc _DateRangeMetadataGroupClass) Alloc() DateRangeMetadataGroup { return rv } -func DateRangeMetadataGroup_Alloc() DateRangeMetadataGroup { - return DateRangeMetadataGroupClass.Alloc() -} - func (dc _DateRangeMetadataGroupClass) New() DateRangeMetadataGroup { rv := objc.Call[DateRangeMetadataGroup](dc, objc.Sel("new")) rv.Autorelease() @@ -74,14 +70,6 @@ func (d_ DateRangeMetadataGroup) Init() DateRangeMetadataGroup { 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 -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 @@ -89,3 +77,11 @@ 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 +func (d_ DateRangeMetadataGroup) StartDate() foundation.Date { + rv := objc.Call[foundation.Date](d_, objc.Sel("startDate")) + return rv +} diff --git a/macos/avfoundation/delegating_playback_coordinator.gen.go b/macos/avfoundation/delegating_playback_coordinator.gen.go index 5b3d3a03..1284afb2 100644 --- a/macos/avfoundation/delegating_playback_coordinator.gen.go +++ b/macos/avfoundation/delegating_playback_coordinator.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package avfoundation @@ -19,11 +19,11 @@ type _DelegatingPlaybackCoordinatorClass struct { // An interface definition for the [DelegatingPlaybackCoordinator] class. type IDelegatingPlaybackCoordinator interface { IPlaybackCoordinator - CoordinateRateChangeToRateOptions(rate float64, options DelegatingPlaybackCoordinatorRateChangeOptions) - TransitionToItemWithIdentifierProposingInitialTimingBasedOnTimebase(itemIdentifier string, snapshotTimebase coremedia.TimebaseRef) ReapplyCurrentItemStateToPlaybackControlDelegate() + TransitionToItemWithIdentifierProposingInitialTimingBasedOnTimebase(itemIdentifier string, snapshotTimebase coremedia.TimebaseRef) CoordinateSeekToTimeOptions(time coremedia.Time, options DelegatingPlaybackCoordinatorSeekOptions) - PlaybackControlDelegate() PlaybackCoordinatorPlaybackControlDelegateWrapper + CoordinateRateChangeToRateOptions(rate float64, options DelegatingPlaybackCoordinatorRateChangeOptions) + PlaybackControlDelegate() PlaybackCoordinatorPlaybackControlDelegateObject CurrentItemIdentifier() string } @@ -60,10 +60,6 @@ func (dc _DelegatingPlaybackCoordinatorClass) Alloc() DelegatingPlaybackCoordina return rv } -func DelegatingPlaybackCoordinator_Alloc() DelegatingPlaybackCoordinator { - return DelegatingPlaybackCoordinatorClass.Alloc() -} - func (dc _DelegatingPlaybackCoordinatorClass) New() DelegatingPlaybackCoordinator { rv := objc.Call[DelegatingPlaybackCoordinator](dc, objc.Sel("new")) rv.Autorelease() @@ -79,11 +75,11 @@ func (d_ DelegatingPlaybackCoordinator) Init() DelegatingPlaybackCoordinator { return rv } -// Coordinates a rate change across all participants, waiting for others to become ready, if necessary. [Full Topic] +// 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/3750250-coordinateratechangetorate?language=objc -func (d_ DelegatingPlaybackCoordinator) CoordinateRateChangeToRateOptions(rate float64, options DelegatingPlaybackCoordinatorRateChangeOptions) { - objc.Call[objc.Void](d_, objc.Sel("coordinateRateChangeToRate:options:"), rate, options) +// [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")) } // Tells the coordinator to transition to a new item. [Full Topic] @@ -93,13 +89,6 @@ 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 @@ -107,11 +96,18 @@ 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 float64, 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 -func (d_ DelegatingPlaybackCoordinator) PlaybackControlDelegate() PlaybackCoordinatorPlaybackControlDelegateWrapper { - rv := objc.Call[PlaybackCoordinatorPlaybackControlDelegateWrapper](d_, objc.Sel("playbackControlDelegate")) +func (d_ DelegatingPlaybackCoordinator) PlaybackControlDelegate() PlaybackCoordinatorPlaybackControlDelegateObject { + rv := objc.Call[PlaybackCoordinatorPlaybackControlDelegateObject](d_, objc.Sel("playbackControlDelegate")) return rv } diff --git a/macos/avfoundation/delegating_playback_coordinator_buffering_command.gen.go b/macos/avfoundation/delegating_playback_coordinator_buffering_command.gen.go index 7363600f..c57cbf94 100644 --- a/macos/avfoundation/delegating_playback_coordinator_buffering_command.gen.go +++ b/macos/avfoundation/delegating_playback_coordinator_buffering_command.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package avfoundation @@ -41,10 +41,6 @@ func (dc _DelegatingPlaybackCoordinatorBufferingCommandClass) Alloc() Delegating return rv } -func DelegatingPlaybackCoordinatorBufferingCommand_Alloc() DelegatingPlaybackCoordinatorBufferingCommand { - return DelegatingPlaybackCoordinatorBufferingCommandClass.Alloc() -} - func (dc _DelegatingPlaybackCoordinatorBufferingCommandClass) New() DelegatingPlaybackCoordinatorBufferingCommand { rv := objc.Call[DelegatingPlaybackCoordinatorBufferingCommand](dc, objc.Sel("new")) rv.Autorelease() diff --git a/macos/avfoundation/delegating_playback_coordinator_pause_command.gen.go b/macos/avfoundation/delegating_playback_coordinator_pause_command.gen.go index ba19e26c..ec72e37d 100644 --- a/macos/avfoundation/delegating_playback_coordinator_pause_command.gen.go +++ b/macos/avfoundation/delegating_playback_coordinator_pause_command.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package avfoundation @@ -18,8 +18,8 @@ type _DelegatingPlaybackCoordinatorPauseCommandClass struct { // An interface definition for the [DelegatingPlaybackCoordinatorPauseCommand] class. type IDelegatingPlaybackCoordinatorPauseCommand interface { IDelegatingPlaybackCoordinatorPlaybackControlCommand - ShouldBufferInAnticipationOfPlayback() bool AnticipatedPlaybackRate() float64 + ShouldBufferInAnticipationOfPlayback() bool } // A command that indicates to pause playback. [Full Topic] @@ -40,10 +40,6 @@ func (dc _DelegatingPlaybackCoordinatorPauseCommandClass) Alloc() DelegatingPlay return rv } -func DelegatingPlaybackCoordinatorPauseCommand_Alloc() DelegatingPlaybackCoordinatorPauseCommand { - return DelegatingPlaybackCoordinatorPauseCommandClass.Alloc() -} - func (dc _DelegatingPlaybackCoordinatorPauseCommandClass) New() DelegatingPlaybackCoordinatorPauseCommand { rv := objc.Call[DelegatingPlaybackCoordinatorPauseCommand](dc, objc.Sel("new")) rv.Autorelease() @@ -59,14 +55,6 @@ func (d_ DelegatingPlaybackCoordinatorPauseCommand) Init() DelegatingPlaybackCoo 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 -func (d_ DelegatingPlaybackCoordinatorPauseCommand) ShouldBufferInAnticipationOfPlayback() bool { - 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 @@ -74,3 +62,11 @@ func (d_ DelegatingPlaybackCoordinatorPauseCommand) AnticipatedPlaybackRate() fl rv := objc.Call[float64](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 +func (d_ DelegatingPlaybackCoordinatorPauseCommand) ShouldBufferInAnticipationOfPlayback() bool { + rv := objc.Call[bool](d_, objc.Sel("shouldBufferInAnticipationOfPlayback")) + return rv +} diff --git a/macos/avfoundation/delegating_playback_coordinator_play_command.gen.go b/macos/avfoundation/delegating_playback_coordinator_play_command.gen.go index c42174c2..b46feca9 100644 --- a/macos/avfoundation/delegating_playback_coordinator_play_command.gen.go +++ b/macos/avfoundation/delegating_playback_coordinator_play_command.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package avfoundation @@ -42,10 +42,6 @@ func (dc _DelegatingPlaybackCoordinatorPlayCommandClass) Alloc() DelegatingPlayb return rv } -func DelegatingPlaybackCoordinatorPlayCommand_Alloc() DelegatingPlaybackCoordinatorPlayCommand { - return DelegatingPlaybackCoordinatorPlayCommandClass.Alloc() -} - func (dc _DelegatingPlaybackCoordinatorPlayCommandClass) New() DelegatingPlaybackCoordinatorPlayCommand { rv := objc.Call[DelegatingPlaybackCoordinatorPlayCommand](dc, objc.Sel("new")) rv.Autorelease() 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 84f5037d..5f4c73d6 100644 --- a/macos/avfoundation/delegating_playback_coordinator_playback_control_command.gen.go +++ b/macos/avfoundation/delegating_playback_coordinator_playback_control_command.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package avfoundation @@ -18,8 +18,8 @@ type _DelegatingPlaybackCoordinatorPlaybackControlCommandClass struct { // An interface definition for the [DelegatingPlaybackCoordinatorPlaybackControlCommand] class. type IDelegatingPlaybackCoordinatorPlaybackControlCommand interface { objc.IObject - Originator() CoordinatedPlaybackParticipant ExpectedCurrentItemIdentifier() string + Originator() CoordinatedPlaybackParticipant } // An abstract superclass for playback commands. [Full Topic] @@ -40,10 +40,6 @@ func (dc _DelegatingPlaybackCoordinatorPlaybackControlCommandClass) Alloc() Dele return rv } -func DelegatingPlaybackCoordinatorPlaybackControlCommand_Alloc() DelegatingPlaybackCoordinatorPlaybackControlCommand { - return DelegatingPlaybackCoordinatorPlaybackControlCommandClass.Alloc() -} - func (dc _DelegatingPlaybackCoordinatorPlaybackControlCommandClass) New() DelegatingPlaybackCoordinatorPlaybackControlCommand { rv := objc.Call[DelegatingPlaybackCoordinatorPlaybackControlCommand](dc, objc.Sel("new")) rv.Autorelease() @@ -59,14 +55,6 @@ func (d_ DelegatingPlaybackCoordinatorPlaybackControlCommand) Init() DelegatingP 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 -func (d_ DelegatingPlaybackCoordinatorPlaybackControlCommand) Originator() CoordinatedPlaybackParticipant { - 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 @@ -74,3 +62,11 @@ func (d_ DelegatingPlaybackCoordinatorPlaybackControlCommand) ExpectedCurrentIte 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 +func (d_ DelegatingPlaybackCoordinatorPlaybackControlCommand) Originator() CoordinatedPlaybackParticipant { + rv := objc.Call[CoordinatedPlaybackParticipant](d_, objc.Sel("originator")) + 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 e4b768d0..40806c1c 100644 --- a/macos/avfoundation/delegating_playback_coordinator_seek_command.gen.go +++ b/macos/avfoundation/delegating_playback_coordinator_seek_command.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package avfoundation @@ -20,10 +20,10 @@ type _DelegatingPlaybackCoordinatorSeekCommandClass struct { // An interface definition for the [DelegatingPlaybackCoordinatorSeekCommand] class. type IDelegatingPlaybackCoordinatorSeekCommand interface { IDelegatingPlaybackCoordinatorPlaybackControlCommand - ShouldBufferInAnticipationOfPlayback() bool ItemTime() coremedia.Time - AnticipatedPlaybackRate() float64 CompletionDueDate() foundation.Date + ShouldBufferInAnticipationOfPlayback() bool + AnticipatedPlaybackRate() float64 } // A command that indicates to seek to a new time in the item timeline. [Full Topic] @@ -44,10 +44,6 @@ func (dc _DelegatingPlaybackCoordinatorSeekCommandClass) Alloc() DelegatingPlayb return rv } -func DelegatingPlaybackCoordinatorSeekCommand_Alloc() DelegatingPlaybackCoordinatorSeekCommand { - return DelegatingPlaybackCoordinatorSeekCommandClass.Alloc() -} - func (dc _DelegatingPlaybackCoordinatorSeekCommandClass) New() DelegatingPlaybackCoordinatorSeekCommand { rv := objc.Call[DelegatingPlaybackCoordinatorSeekCommand](dc, objc.Sel("new")) rv.Autorelease() @@ -63,14 +59,6 @@ func (d_ DelegatingPlaybackCoordinatorSeekCommand) Init() DelegatingPlaybackCoor 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 -func (d_ DelegatingPlaybackCoordinatorSeekCommand) ShouldBufferInAnticipationOfPlayback() bool { - rv := objc.Call[bool](d_, objc.Sel("shouldBufferInAnticipationOfPlayback")) - 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 @@ -79,14 +67,6 @@ func (d_ DelegatingPlaybackCoordinatorSeekCommand) ItemTime() coremedia.Time { 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 -func (d_ DelegatingPlaybackCoordinatorSeekCommand) AnticipatedPlaybackRate() float64 { - rv := objc.Call[float64](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 @@ -94,3 +74,19 @@ func (d_ DelegatingPlaybackCoordinatorSeekCommand) CompletionDueDate() foundatio 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 +func (d_ DelegatingPlaybackCoordinatorSeekCommand) ShouldBufferInAnticipationOfPlayback() bool { + rv := objc.Call[bool](d_, objc.Sel("shouldBufferInAnticipationOfPlayback")) + 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 +func (d_ DelegatingPlaybackCoordinatorSeekCommand) AnticipatedPlaybackRate() float64 { + rv := objc.Call[float64](d_, objc.Sel("anticipatedPlaybackRate")) + return rv +} diff --git a/macos/avfoundation/depth_data.gen.go b/macos/avfoundation/depth_data.gen.go index 21ed4007..9e6a5393 100644 --- a/macos/avfoundation/depth_data.gen.go +++ b/macos/avfoundation/depth_data.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package avfoundation @@ -22,13 +22,13 @@ type _DepthDataClass struct { type IDepthData interface { objc.IObject DictionaryRepresentationForAuxiliaryDataType(outAuxDataType string) foundation.Dictionary + DepthDataQuality() DepthDataQuality AvailableDepthDataTypes() []foundation.Number - IsDepthDataFiltered() bool + CameraCalibrationData() CameraCalibrationData + DepthDataMap() corevideo.PixelBufferRef DepthDataAccuracy() DepthDataAccuracy - DepthDataQuality() DepthDataQuality + IsDepthDataFiltered() bool DepthDataType() uint - DepthDataMap() corevideo.PixelBufferRef - CameraCalibrationData() CameraCalibrationData } // A container for per-pixel distance or disparity information captured by compatible camera devices. [Full Topic] @@ -44,32 +44,20 @@ func DepthDataFrom(ptr unsafe.Pointer) DepthData { } } -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 foundation.IError) DepthData { + rv := objc.Call[DepthData](d_, objc.Sel("depthDataByReplacingDepthDataMapWithPixelBuffer:error:"), pixelBuffer, objc.Ptr(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 foundation.IError) DepthData { + instance := DepthDataClass.Alloc().DepthDataByReplacingDepthDataMapWithPixelBufferError(pixelBuffer, outError) instance.Autorelease() return instance } -func (dc _DepthDataClass) DepthDataFromDictionaryRepresentationError(imageSourceAuxDataInfoDictionary foundation.Dictionary, outError foundation.IError) DepthData { - rv := objc.Call[DepthData](dc, objc.Sel("depthDataFromDictionaryRepresentation:error:"), imageSourceAuxDataInfoDictionary, objc.Ptr(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 foundation.IError) DepthData { - return DepthDataClass.DepthDataFromDictionaryRepresentationError(imageSourceAuxDataInfoDictionary, outError) -} - func (d_ DepthData) DepthDataByConvertingToDepthDataType(depthDataType uint) DepthData { rv := objc.Call[DepthData](d_, objc.Sel("depthDataByConvertingToDepthDataType:"), depthDataType) return rv @@ -84,27 +72,35 @@ func DepthData_DepthDataByConvertingToDepthDataType(depthDataType uint) DepthDat return instance } -func (d_ DepthData) DepthDataByReplacingDepthDataMapWithPixelBufferError(pixelBuffer corevideo.PixelBufferRef, outError foundation.IError) DepthData { - rv := objc.Call[DepthData](d_, objc.Sel("depthDataByReplacingDepthDataMapWithPixelBuffer:error:"), pixelBuffer, objc.Ptr(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 foundation.IError) 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) Alloc() DepthData { - rv := objc.Call[DepthData](dc, objc.Sel("alloc")) +func (dc _DepthDataClass) DepthDataFromDictionaryRepresentationError(imageSourceAuxDataInfoDictionary foundation.Dictionary, outError foundation.IError) DepthData { + rv := objc.Call[DepthData](dc, objc.Sel("depthDataFromDictionaryRepresentation:error:"), imageSourceAuxDataInfoDictionary, objc.Ptr(outError)) return rv } -func DepthData_Alloc() DepthData { - return DepthDataClass.Alloc() +// 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 foundation.IError) DepthData { + return DepthDataClass.DepthDataFromDictionaryRepresentationError(imageSourceAuxDataInfoDictionary, outError) +} + +func (dc _DepthDataClass) Alloc() DepthData { + rv := objc.Call[DepthData](dc, objc.Sel("alloc")) + return rv } func (dc _DepthDataClass) New() DepthData { @@ -130,6 +126,14 @@ 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 @@ -138,11 +142,19 @@ func (d_ DepthData) AvailableDepthDataTypes() []foundation.Number { return rv } -// A Boolean value indicating whether the depth map contains temporally smoothed data. [Full Topic] +// The imaging parameters with which this depth data was captured. [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/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] +// +// [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 } @@ -154,11 +166,11 @@ func (d_ DepthData) DepthDataAccuracy() DepthDataAccuracy { return rv } -// The overall quality of the depth 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/2919804-depthdataquality?language=objc -func (d_ DepthData) DepthDataQuality() DepthDataQuality { - rv := objc.Call[DepthDataQuality](d_, objc.Sel("depthDataQuality")) +// [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 } @@ -169,19 +181,3 @@ 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/doc.gen.go b/macos/avfoundation/doc.gen.go index d660d042..b21e6b08 100644 --- a/macos/avfoundation/doc.gen.go +++ b/macos/avfoundation/doc.gen.go @@ -1,8 +1,8 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. // Work with audiovisual assets, control device cameras, process audio, and configure system audio interactions. // -// [Full Documentation] +// [Apple Documentation] // -// [Full Documentation]: https://developer.apple.com/documentation/avfoundation?language=objc +// [Apple Documentation]: https://developer.apple.com/documentation/avfoundation?language=objc package avfoundation diff --git a/macos/avfoundation/enumtypes.gen.go b/macos/avfoundation/enumtypes.gen.go index 90c51ec9..0f0a4975 100644 --- a/macos/avfoundation/enumtypes.gen.go +++ b/macos/avfoundation/enumtypes.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package avfoundation diff --git a/macos/avfoundation/fragment_minding.gen.go b/macos/avfoundation/fragment_minding_protocol.gen.go similarity index 68% rename from macos/avfoundation/fragment_minding.gen.go rename to macos/avfoundation/fragment_minding_protocol.gen.go index 3dea5221..45da384c 100644 --- a/macos/avfoundation/fragment_minding.gen.go +++ b/macos/avfoundation/fragment_minding_protocol.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package avfoundation @@ -15,19 +15,22 @@ type PFragmentMinding interface { HasIsAssociatedWithFragmentMinder() bool } -// A concrete type wrapper for the [PFragmentMinding] protocol. -type FragmentMindingWrapper struct { +// ensure impl type implements protocol interface +var _ PFragmentMinding = (*FragmentMindingObject)(nil) + +// A concrete type for the [PFragmentMinding] protocol. +type FragmentMindingObject struct { objc.Object } -func (f_ FragmentMindingWrapper) HasIsAssociatedWithFragmentMinder() bool { +func (f_ FragmentMindingObject) HasIsAssociatedWithFragmentMinder() bool { return f_.RespondsToSelector(objc.Sel("isAssociatedWithFragmentMinder")) } // A Boolean value that indicates whether an asset that supports fragment minding is currently associated with a fragment minder. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/avfoundation/avfragmentminding/1390175-associatedwithfragmentminder?language=objc -func (f_ FragmentMindingWrapper) IsAssociatedWithFragmentMinder() bool { +func (f_ FragmentMindingObject) IsAssociatedWithFragmentMinder() bool { rv := objc.Call[bool](f_, objc.Sel("isAssociatedWithFragmentMinder")) return rv } diff --git a/macos/avfoundation/fragmented_asset.gen.go b/macos/avfoundation/fragmented_asset.gen.go index ba66c1f9..1e18d4d8 100644 --- a/macos/avfoundation/fragmented_asset.gen.go +++ b/macos/avfoundation/fragmented_asset.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package avfoundation @@ -51,10 +51,6 @@ func (fc _FragmentedAssetClass) Alloc() FragmentedAsset { return rv } -func FragmentedAsset_Alloc() FragmentedAsset { - return FragmentedAssetClass.Alloc() -} - func (fc _FragmentedAssetClass) New() FragmentedAsset { rv := objc.Call[FragmentedAsset](fc, objc.Sel("new")) rv.Autorelease() diff --git a/macos/avfoundation/fragmented_asset_minder.gen.go b/macos/avfoundation/fragmented_asset_minder.gen.go index 870279b1..30a491b8 100644 --- a/macos/avfoundation/fragmented_asset_minder.gen.go +++ b/macos/avfoundation/fragmented_asset_minder.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package avfoundation @@ -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] @@ -70,10 +70,6 @@ func (fc _FragmentedAssetMinderClass) Alloc() FragmentedAssetMinder { return rv } -func FragmentedAssetMinder_Alloc() FragmentedAssetMinder { - return FragmentedAssetMinderClass.Alloc() -} - func (fc _FragmentedAssetMinderClass) New() FragmentedAssetMinder { rv := objc.Call[FragmentedAssetMinder](fc, objc.Sel("new")) rv.Autorelease() @@ -103,6 +99,14 @@ func (f_ FragmentedAssetMinder) RemoveFragmentedAsset(asset IAsset) { objc.Call[objc.Void](f_, objc.Sel("removeFragmentedAsset:"), objc.Ptr(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 @@ -117,11 +121,3 @@ 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_asset_track.gen.go b/macos/avfoundation/fragmented_asset_track.gen.go index 8779daef..0562616f 100644 --- a/macos/avfoundation/fragmented_asset_track.gen.go +++ b/macos/avfoundation/fragmented_asset_track.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package avfoundation @@ -38,10 +38,6 @@ func (fc _FragmentedAssetTrackClass) Alloc() FragmentedAssetTrack { return rv } -func FragmentedAssetTrack_Alloc() FragmentedAssetTrack { - return FragmentedAssetTrackClass.Alloc() -} - func (fc _FragmentedAssetTrackClass) New() FragmentedAssetTrack { rv := objc.Call[FragmentedAssetTrack](fc, objc.Sel("new")) rv.Autorelease() diff --git a/macos/avfoundation/fragmented_movie.gen.go b/macos/avfoundation/fragmented_movie.gen.go index 00f5e712..129a3066 100644 --- a/macos/avfoundation/fragmented_movie.gen.go +++ b/macos/avfoundation/fragmented_movie.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package avfoundation @@ -39,10 +39,6 @@ func (fc _FragmentedMovieClass) Alloc() FragmentedMovie { return rv } -func FragmentedMovie_Alloc() FragmentedMovie { - return FragmentedMovieClass.Alloc() -} - func (fc _FragmentedMovieClass) New() FragmentedMovie { rv := objc.Call[FragmentedMovie](fc, objc.Sel("new")) rv.Autorelease() @@ -58,6 +54,30 @@ 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:"), objc.Ptr(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 @@ -72,18 +92,6 @@ 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:"), objc.Ptr(URL), options) return rv @@ -98,18 +106,6 @@ 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:"), objc.Ptr(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:"), objc.Ptr(URL)) return rv diff --git a/macos/avfoundation/fragmented_movie_minder.gen.go b/macos/avfoundation/fragmented_movie_minder.gen.go index 49a7c976..470e02ac 100644 --- a/macos/avfoundation/fragmented_movie_minder.gen.go +++ b/macos/avfoundation/fragmented_movie_minder.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package avfoundation @@ -19,8 +19,8 @@ type _FragmentedMovieMinderClass struct { // An interface definition for the [FragmentedMovieMinder] class. type IFragmentedMovieMinder interface { IFragmentedAssetMinder - RemoveFragmentedMovie(movie IFragmentedMovie) AddFragmentedMovie(movie IFragmentedMovie) + RemoveFragmentedMovie(movie IFragmentedMovie) Movies() []FragmentedMovie } @@ -68,10 +68,6 @@ func (fc _FragmentedMovieMinderClass) Alloc() FragmentedMovieMinder { return rv } -func FragmentedMovieMinder_Alloc() FragmentedMovieMinder { - return FragmentedMovieMinderClass.Alloc() -} - func (fc _FragmentedMovieMinderClass) New() FragmentedMovieMinder { rv := objc.Call[FragmentedMovieMinder](fc, objc.Sel("new")) rv.Autorelease() @@ -113,13 +109,6 @@ func NewFragmentedMovieMinderWithAssetMindingInterval(asset IAsset, mindingInter return instance } -// 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 -func (f_ FragmentedMovieMinder) RemoveFragmentedMovie(movie IFragmentedMovie) { - objc.Call[objc.Void](f_, objc.Sel("removeFragmentedMovie:"), objc.Ptr(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 @@ -127,6 +116,13 @@ func (f_ FragmentedMovieMinder) AddFragmentedMovie(movie IFragmentedMovie) { objc.Call[objc.Void](f_, objc.Sel("addFragmentedMovie:"), objc.Ptr(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 +func (f_ FragmentedMovieMinder) RemoveFragmentedMovie(movie IFragmentedMovie) { + objc.Call[objc.Void](f_, objc.Sel("removeFragmentedMovie:"), objc.Ptr(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/fragmented_movie_track.gen.go b/macos/avfoundation/fragmented_movie_track.gen.go index 2ff4564d..769a7ed5 100644 --- a/macos/avfoundation/fragmented_movie_track.gen.go +++ b/macos/avfoundation/fragmented_movie_track.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package avfoundation @@ -38,10 +38,6 @@ func (fc _FragmentedMovieTrackClass) Alloc() FragmentedMovieTrack { return rv } -func FragmentedMovieTrack_Alloc() FragmentedMovieTrack { - return FragmentedMovieTrackClass.Alloc() -} - func (fc _FragmentedMovieTrackClass) New() FragmentedMovieTrack { rv := objc.Call[FragmentedMovieTrack](fc, objc.Sel("new")) rv.Autorelease() diff --git a/macos/avfoundation/frame_rate_range.gen.go b/macos/avfoundation/frame_rate_range.gen.go index e9c9b686..5e310193 100644 --- a/macos/avfoundation/frame_rate_range.gen.go +++ b/macos/avfoundation/frame_rate_range.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package avfoundation @@ -19,9 +19,9 @@ type _FrameRateRangeClass struct { // An interface definition for the [FrameRateRange] class. type IFrameRateRange interface { objc.IObject - MaxFrameDuration() coremedia.Time - MaxFrameRate() float64 MinFrameRate() float64 + MaxFrameRate() float64 + MaxFrameDuration() coremedia.Time MinFrameDuration() coremedia.Time } @@ -43,10 +43,6 @@ func (fc _FrameRateRangeClass) Alloc() FrameRateRange { return rv } -func FrameRateRange_Alloc() FrameRateRange { - return FrameRateRangeClass.Alloc() -} - func (fc _FrameRateRangeClass) New() FrameRateRange { rv := objc.Call[FrameRateRange](fc, objc.Sel("new")) rv.Autorelease() @@ -62,11 +58,11 @@ func (f_ FrameRateRange) Init() FrameRateRange { 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 } @@ -78,11 +74,11 @@ func (f_ FrameRateRange) MaxFrameRate() float64 { 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 } diff --git a/macos/avfoundation/media_data_storage.gen.go b/macos/avfoundation/media_data_storage.gen.go index a20e23b2..5ef39349 100644 --- a/macos/avfoundation/media_data_storage.gen.go +++ b/macos/avfoundation/media_data_storage.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package avfoundation @@ -54,10 +54,6 @@ func (mc _MediaDataStorageClass) Alloc() MediaDataStorage { return rv } -func MediaDataStorage_Alloc() MediaDataStorage { - return MediaDataStorageClass.Alloc() -} - func (mc _MediaDataStorageClass) New() MediaDataStorage { rv := objc.Call[MediaDataStorage](mc, objc.Sel("new")) rv.Autorelease() diff --git a/macos/avfoundation/media_selection.gen.go b/macos/avfoundation/media_selection.gen.go index dc70d6a2..db250ad3 100644 --- a/macos/avfoundation/media_selection.gen.go +++ b/macos/avfoundation/media_selection.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package avfoundation @@ -18,8 +18,8 @@ type _MediaSelectionClass struct { // An interface definition for the [MediaSelection] class. type IMediaSelection interface { objc.IObject - MediaSelectionCriteriaCanBeAppliedAutomaticallyToMediaSelectionGroup(mediaSelectionGroup IMediaSelectionGroup) bool SelectedMediaOptionInMediaSelectionGroup(mediaSelectionGroup IMediaSelectionGroup) MediaSelectionOption + MediaSelectionCriteriaCanBeAppliedAutomaticallyToMediaSelectionGroup(mediaSelectionGroup IMediaSelectionGroup) bool Asset() Asset } @@ -41,10 +41,6 @@ func (mc _MediaSelectionClass) Alloc() MediaSelection { return rv } -func MediaSelection_Alloc() MediaSelection { - return MediaSelectionClass.Alloc() -} - func (mc _MediaSelectionClass) New() MediaSelection { rv := objc.Call[MediaSelection](mc, objc.Sel("new")) rv.Autorelease() @@ -60,14 +56,6 @@ func (m_ MediaSelection) Init() MediaSelection { 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 -func (m_ MediaSelection) MediaSelectionCriteriaCanBeAppliedAutomaticallyToMediaSelectionGroup(mediaSelectionGroup IMediaSelectionGroup) bool { - rv := objc.Call[bool](m_, objc.Sel("mediaSelectionCriteriaCanBeAppliedAutomaticallyToMediaSelectionGroup:"), objc.Ptr(mediaSelectionGroup)) - 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 @@ -76,6 +64,14 @@ func (m_ MediaSelection) SelectedMediaOptionInMediaSelectionGroup(mediaSelection 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 +func (m_ MediaSelection) MediaSelectionCriteriaCanBeAppliedAutomaticallyToMediaSelectionGroup(mediaSelectionGroup IMediaSelectionGroup) bool { + rv := objc.Call[bool](m_, objc.Sel("mediaSelectionCriteriaCanBeAppliedAutomaticallyToMediaSelectionGroup:"), objc.Ptr(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 09f2c54b..03edc622 100644 --- a/macos/avfoundation/media_selection_group.gen.go +++ b/macos/avfoundation/media_selection_group.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package avfoundation @@ -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] @@ -43,10 +43,6 @@ func (mc _MediaSelectionGroupClass) Alloc() MediaSelectionGroup { return rv } -func MediaSelectionGroup_Alloc() MediaSelectionGroup { - return MediaSelectionGroupClass.Alloc() -} - func (mc _MediaSelectionGroupClass) New() MediaSelectionGroup { rv := objc.Call[MediaSelectionGroup](mc, objc.Sel("new")) rv.Autorelease() @@ -62,27 +58,27 @@ func (m_ MediaSelectionGroup) Init() MediaSelectionGroup { return rv } -// Returns an array containing the media selection options from a given array that are playable. [Full Topic] +// Returns the media selection options that match the given property list. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avmediaselectiongroup/1387351-playablemediaselectionoptionsfro?language=objc -func (mc _MediaSelectionGroupClass) PlayableMediaSelectionOptionsFromArray(mediaSelectionOptions []IMediaSelectionOption) []MediaSelectionOption { - rv := objc.Call[[]MediaSelectionOption](mc, objc.Sel("playableMediaSelectionOptionsFromArray:"), mediaSelectionOptions) +// [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 are playable. [Full Topic] +// 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/1387351-playablemediaselectionoptionsfro?language=objc -func MediaSelectionGroup_PlayableMediaSelectionOptionsFromArray(mediaSelectionOptions []IMediaSelectionOption) []MediaSelectionOption { - return MediaSelectionGroupClass.PlayableMediaSelectionOptionsFromArray(mediaSelectionOptions) +// [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 the media selection options that match the given property list. [Full Topic] +// 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/1389968-mediaselectionoptionwithproperty?language=objc -func (m_ MediaSelectionGroup) MediaSelectionOptionWithPropertyList(plist objc.IObject) MediaSelectionOption { - rv := objc.Call[MediaSelectionOption](m_, objc.Sel("mediaSelectionOptionWithPropertyList:"), plist) - return rv +// [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] @@ -100,22 +96,51 @@ func MediaSelectionGroup_MediaSelectionOptionsFromArrayWithLocale(mediaSelection 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] +// 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/1388483-allowsemptyselection?language=objc -func (m_ MediaSelectionGroup) AllowsEmptySelection() bool { - rv := objc.Call[bool](m_, objc.Sel("allowsEmptySelection")) +// [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 } -// A collection of mutually exclusive media selection options [Full Topic] +// 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/1388351-options?language=objc -func (m_ MediaSelectionGroup) Options() []MediaSelectionOption { - rv := objc.Call[[]MediaSelectionOption](m_, objc.Sel("options")) +// [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 +func (mc _MediaSelectionGroupClass) PlayableMediaSelectionOptionsFromArray(mediaSelectionOptions []IMediaSelectionOption) []MediaSelectionOption { + rv := objc.Call[[]MediaSelectionOption](mc, objc.Sel("playableMediaSelectionOptionsFromArray:"), mediaSelectionOptions) return rv } +// 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 +func MediaSelectionGroup_PlayableMediaSelectionOptionsFromArray(mediaSelectionOptions []IMediaSelectionOption) []MediaSelectionOption { + 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] +// +// [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) + return rv +} + +// Returns an array of media selection options, filtering them according to whether their locales match one of the specified languages. [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) +} + // The default option in the group. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/avfoundation/avmediaselectiongroup/1388440-defaultoption?language=objc @@ -123,3 +148,19 @@ func (m_ MediaSelectionGroup) DefaultOption() MediaSelectionOption { rv := objc.Call[MediaSelectionOption](m_, objc.Sel("defaultOption")) return rv } + +// 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] +// +// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avmediaselectiongroup/1388483-allowsemptyselection?language=objc +func (m_ MediaSelectionGroup) AllowsEmptySelection() bool { + rv := objc.Call[bool](m_, objc.Sel("allowsEmptySelection")) + return rv +} + +// A collection of mutually exclusive media selection options [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avmediaselectiongroup/1388351-options?language=objc +func (m_ MediaSelectionGroup) Options() []MediaSelectionOption { + rv := objc.Call[[]MediaSelectionOption](m_, objc.Sel("options")) + return rv +} diff --git a/macos/avfoundation/media_selection_option.gen.go b/macos/avfoundation/media_selection_option.gen.go index a6430fc5..7885c158 100644 --- a/macos/avfoundation/media_selection_option.gen.go +++ b/macos/avfoundation/media_selection_option.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package avfoundation @@ -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 - MetadataForFormat(format string) []MetadataItem - ExtendedLanguageTag() string + AssociatedMediaSelectionOptionInMediaSelectionGroup(mediaSelectionGroup IMediaSelectionGroup) MediaSelectionOption MediaSubTypes() []foundation.Number - MediaType() MediaType + CommonMetadata() []MetadataItem Locale() foundation.Locale - AvailableMetadataFormats() []string DisplayName() string IsPlayable() bool - CommonMetadata() []MetadataItem + ExtendedLanguageTag() string + AvailableMetadataFormats() []string + MediaType() MediaType } // An object that represents a specific option for the presentation of media within a group of options. [Full Topic] @@ -52,10 +52,6 @@ func (mc _MediaSelectionOptionClass) Alloc() MediaSelectionOption { return rv } -func MediaSelectionOption_Alloc() MediaSelectionOption { - return MediaSelectionOptionClass.Alloc() -} - func (mc _MediaSelectionOptionClass) New() MediaSelectionOption { rv := objc.Call[MediaSelectionOption](mc, objc.Sel("new")) rv.Autorelease() @@ -71,19 +67,19 @@ func (m_ MediaSelectionOption) Init() MediaSelectionOption { return rv } -// Returns a string suitable for display using the specified locale. [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/1388021-displaynamewithlocale?language=objc -func (m_ MediaSelectionOption) DisplayNameWithLocale(locale foundation.ILocale) string { - rv := objc.Call[string](m_, objc.Sel("displayNameWithLocale:"), objc.Ptr(locale)) +// [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 media selection option associated with the receiver in a given group. [Full Topic] +// Returns a string suitable for display using the specified locale. [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:"), objc.Ptr(mediaSelectionGroup)) +// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avmediaselectionoption/1388021-displaynamewithlocale?language=objc +func (m_ MediaSelectionOption) DisplayNameWithLocale(locale foundation.ILocale) string { + rv := objc.Call[string](m_, objc.Sel("displayNameWithLocale:"), objc.Ptr(locale)) return rv } @@ -103,19 +99,11 @@ func (m_ MediaSelectionOption) PropertyList() objc.Object { 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 -} - -// The IETF BCP 47 language tag associated with the option [Full Topic] +// Returns a media selection option associated with the receiver in a given group. [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")) +// [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:"), objc.Ptr(mediaSelectionGroup)) return rv } @@ -127,11 +115,11 @@ func (m_ MediaSelectionOption) MediaSubTypes() []foundation.Number { 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 } @@ -143,14 +131,6 @@ 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 @@ -167,10 +147,26 @@ func (m_ MediaSelectionOption) IsPlayable() bool { return rv } -// An array of metadata items for each common metadata key for which a value is available. [Full Topic] +// The IETF BCP 47 language tag associated with the option [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/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] +// +// [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 } diff --git a/macos/avfoundation/metadata_body_object.gen.go b/macos/avfoundation/metadata_body_object.gen.go index cfe33277..48887460 100644 --- a/macos/avfoundation/metadata_body_object.gen.go +++ b/macos/avfoundation/metadata_body_object.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package avfoundation @@ -39,10 +39,6 @@ func (mc _MetadataBodyObjectClass) Alloc() MetadataBodyObject { return rv } -func MetadataBodyObject_Alloc() MetadataBodyObject { - return MetadataBodyObjectClass.Alloc() -} - func (mc _MetadataBodyObjectClass) New() MetadataBodyObject { rv := objc.Call[MetadataBodyObject](mc, objc.Sel("new")) rv.Autorelease() diff --git a/macos/avfoundation/metadata_cat_body_object.gen.go b/macos/avfoundation/metadata_cat_body_object.gen.go index a4ea159e..c78288db 100644 --- a/macos/avfoundation/metadata_cat_body_object.gen.go +++ b/macos/avfoundation/metadata_cat_body_object.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package avfoundation @@ -38,10 +38,6 @@ func (mc _MetadataCatBodyObjectClass) Alloc() MetadataCatBodyObject { return rv } -func MetadataCatBodyObject_Alloc() MetadataCatBodyObject { - return MetadataCatBodyObjectClass.Alloc() -} - func (mc _MetadataCatBodyObjectClass) New() MetadataCatBodyObject { rv := objc.Call[MetadataCatBodyObject](mc, objc.Sel("new")) rv.Autorelease() diff --git a/macos/avfoundation/metadata_dog_body_object.gen.go b/macos/avfoundation/metadata_dog_body_object.gen.go index 6c0872bb..73d449d8 100644 --- a/macos/avfoundation/metadata_dog_body_object.gen.go +++ b/macos/avfoundation/metadata_dog_body_object.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package avfoundation @@ -38,10 +38,6 @@ func (mc _MetadataDogBodyObjectClass) Alloc() MetadataDogBodyObject { return rv } -func MetadataDogBodyObject_Alloc() MetadataDogBodyObject { - return MetadataDogBodyObjectClass.Alloc() -} - func (mc _MetadataDogBodyObjectClass) New() MetadataDogBodyObject { rv := objc.Call[MetadataDogBodyObject](mc, objc.Sel("new")) rv.Autorelease() diff --git a/macos/avfoundation/metadata_face_object.gen.go b/macos/avfoundation/metadata_face_object.gen.go index 8468bc46..056af740 100644 --- a/macos/avfoundation/metadata_face_object.gen.go +++ b/macos/avfoundation/metadata_face_object.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package avfoundation @@ -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] @@ -43,10 +43,6 @@ func (mc _MetadataFaceObjectClass) Alloc() MetadataFaceObject { return rv } -func MetadataFaceObject_Alloc() MetadataFaceObject { - return MetadataFaceObjectClass.Alloc() -} - func (mc _MetadataFaceObjectClass) New() MetadataFaceObject { rv := objc.Call[MetadataFaceObject](mc, objc.Sel("new")) rv.Autorelease() @@ -70,14 +66,6 @@ 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 @@ -101,3 +89,11 @@ 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 7fd9ad41..26f7d22d 100644 --- a/macos/avfoundation/metadata_group.gen.go +++ b/macos/avfoundation/metadata_group.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package avfoundation @@ -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] @@ -41,10 +41,6 @@ func (mc _MetadataGroupClass) Alloc() MetadataGroup { return rv } -func MetadataGroup_Alloc() MetadataGroup { - return MetadataGroupClass.Alloc() -} - func (mc _MetadataGroupClass) New() MetadataGroup { rv := objc.Call[MetadataGroup](mc, objc.Sel("new")) rv.Autorelease() @@ -60,14 +56,6 @@ 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 @@ -83,3 +71,11 @@ 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_human_body_object.gen.go b/macos/avfoundation/metadata_human_body_object.gen.go index 26a0c7b1..dbba0ab7 100644 --- a/macos/avfoundation/metadata_human_body_object.gen.go +++ b/macos/avfoundation/metadata_human_body_object.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package avfoundation @@ -38,10 +38,6 @@ func (mc _MetadataHumanBodyObjectClass) Alloc() MetadataHumanBodyObject { return rv } -func MetadataHumanBodyObject_Alloc() MetadataHumanBodyObject { - return MetadataHumanBodyObjectClass.Alloc() -} - func (mc _MetadataHumanBodyObjectClass) New() MetadataHumanBodyObject { rv := objc.Call[MetadataHumanBodyObject](mc, objc.Sel("new")) rv.Autorelease() diff --git a/macos/avfoundation/metadata_item.gen.go b/macos/avfoundation/metadata_item.gen.go index 7df73bed..a2c54799 100644 --- a/macos/avfoundation/metadata_item.gen.go +++ b/macos/avfoundation/metadata_item.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package avfoundation @@ -20,24 +20,24 @@ type _MetadataItemClass struct { // An interface definition for the [MetadataItem] class. type IMetadataItem interface { objc.IObject - StatusOfValueForKeyError(key string, outError foundation.IError) KeyValueStatus LoadValuesAsynchronouslyForKeysCompletionHandler(keys []string, handler func()) - KeySpace() MetadataKeySpace - ExtendedLanguageTag() string - DataValue() []byte + StatusOfValueForKeyError(key string, outError foundation.IError) KeyValueStatus + StartDate() foundation.Date + CommonKey() MetadataKey + DateValue() foundation.Date Key() objc.Object - Value() objc.Object + DataType() string StringValue() string - ExtraAttributes() map[MetadataExtraAttributeKey]objc.Object NumberValue() foundation.Number - Locale() foundation.Locale - DateValue() foundation.Date + ExtendedLanguageTag() string Time() coremedia.Time - DataType() string - StartDate() foundation.Date + KeySpace() MetadataKeySpace + DataValue() []byte Duration() coremedia.Time - CommonKey() MetadataKey + ExtraAttributes() map[MetadataExtraAttributeKey]objc.Object + Locale() foundation.Locale Identifier() MetadataIdentifier + Value() objc.Object } // A metadata item for an audiovisual asset or one of its tracks. [Full Topic] @@ -58,10 +58,6 @@ func (mc _MetadataItemClass) Alloc() MetadataItem { return rv } -func MetadataItem_Alloc() MetadataItem { - return MetadataItemClass.Alloc() -} - func (mc _MetadataItemClass) New() MetadataItem { rv := objc.Call[MetadataItem](mc, objc.Sel("new")) rv.Autorelease() @@ -77,14 +73,6 @@ 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 foundation.IError) KeyValueStatus { - rv := objc.Call[KeyValueStatus](m_, objc.Sel("statusOfValueForKey:error:"), key, objc.Ptr(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 @@ -100,34 +88,64 @@ func MetadataItem_KeySpaceForIdentifier(identifier MetadataIdentifier) MetadataK return MetadataItemClass.KeySpaceForIdentifier(identifier) } -// Returns a metadata identifier for the specified key and key space. [Full Topic] +// Returns metadata items that match a specified key or 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) +// [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 a metadata identifier for the specified key and key space. [Full Topic] +// Returns metadata items that match a specified key or 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) +// [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 a metadata key for the specified identifier. [Full Topic] +// Returns metadata items 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) +// [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 a metadata key for the specified identifier. [Full Topic] +// Returns metadata items 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) +// [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] +// +// [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, objc.Ptr(metadataItemFilter)) + return rv +} + +// Returns filtered metadata items. [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) +} + +// Returns metadata items that match a specified locale. [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, objc.Ptr(locale)) + return rv +} + +// Returns metadata items that match a specified locale. [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) } // Tells the object to load the values of any of the specified keys that aren’t already loaded. [Full Topic] @@ -137,6 +155,29 @@ 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 foundation.IError) KeyValueStatus { + rv := objc.Call[KeyValueStatus](m_, objc.Sel("statusOfValueForKey:error:"), key, objc.Ptr(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 @@ -152,42 +193,57 @@ func MetadataItem_MetadataItemWithPropertiesOfMetadataItemValueLoadingHandler(me return MetadataItemClass.MetadataItemWithPropertiesOfMetadataItemValueLoadingHandler(metadataItem, handler) } -// 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, objc.Ptr(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) } -// The key space for the metadata item’s key. [Full Topic] +// Returns metadata items whose locales match one of the specified language identifiers. [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/1387901-metadataitemsfromarray?language=objc +func (mc _MetadataItemClass) MetadataItemsFromArrayFilteredAndSortedAccordingToPreferredLanguages(metadataItems []IMetadataItem, preferredLanguages []string) []MetadataItem { + rv := objc.Call[[]MetadataItem](mc, objc.Sel("metadataItemsFromArray:filteredAndSortedAccordingToPreferredLanguages:"), metadataItems, preferredLanguages) return rv } -// The IETF BCP 47 (RFC 4646) language identifier of the metadata item. [Full Topic] +// Returns metadata items whose locales match one of the specified language identifiers. [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/1387901-metadataitemsfromarray?language=objc +func MetadataItem_MetadataItemsFromArrayFilteredAndSortedAccordingToPreferredLanguages(metadataItems []IMetadataItem, preferredLanguages []string) []MetadataItem { + return MetadataItemClass.MetadataItemsFromArrayFilteredAndSortedAccordingToPreferredLanguages(metadataItems, preferredLanguages) +} + +// The start date of the timed metadata. [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")) return rv } -// The value of the metadata item as a data value. [Full Topic] +// The common key of the metadata item. [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/1389864-commonkey?language=objc +func (m_ MetadataItem) CommonKey() MetadataKey { + rv := objc.Call[MetadataKey](m_, objc.Sel("commonKey")) + 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 } @@ -199,11 +255,11 @@ func (m_ MetadataItem) Key() objc.Object { return rv } -// The value of the metadata item. [Full Topic] +// The data type of the metadata item’s value. [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")) +// [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 } @@ -215,14 +271,6 @@ 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 @@ -231,19 +279,11 @@ func (m_ MetadataItem) NumberValue() foundation.Number { return rv } -// The locale 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")) - return rv -} - -// The value of the metadata item as a date. [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/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/1387068-extendedlanguagetag?language=objc +func (m_ MetadataItem) ExtendedLanguageTag() string { + rv := objc.Call[string](m_, objc.Sel("extendedLanguageTag")) return rv } @@ -255,19 +295,19 @@ func (m_ MetadataItem) Time() coremedia.Time { return rv } -// The data type of the metadata item’s value. [Full Topic] +// The key space for the metadata item’s key. [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/1385757-keyspace?language=objc +func (m_ MetadataItem) KeySpace() MetadataKeySpace { + rv := objc.Call[MetadataKeySpace](m_, objc.Sel("keySpace")) return rv } -// The start date of the timed metadata. [Full Topic] +// The value of the metadata item as a data value. [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/1387641-datavalue?language=objc +func (m_ MetadataItem) DataValue() []byte { + rv := objc.Call[[]byte](m_, objc.Sel("dataValue")) return rv } @@ -279,11 +319,19 @@ func (m_ MetadataItem) Duration() coremedia.Time { return rv } -// The common key of the metadata item. [Full Topic] +// A dictionary of additional attributes for a 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/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] +// +// [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 } @@ -294,3 +342,11 @@ 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_filter.gen.go b/macos/avfoundation/metadata_item_filter.gen.go index 3f13e589..7a15a3eb 100644 --- a/macos/avfoundation/metadata_item_filter.gen.go +++ b/macos/avfoundation/metadata_item_filter.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package avfoundation @@ -38,10 +38,6 @@ func (mc _MetadataItemFilterClass) Alloc() MetadataItemFilter { return rv } -func MetadataItemFilter_Alloc() MetadataItemFilter { - return MetadataItemFilterClass.Alloc() -} - func (mc _MetadataItemFilterClass) New() MetadataItemFilter { rv := objc.Call[MetadataItemFilter](mc, objc.Sel("new")) rv.Autorelease() diff --git a/macos/avfoundation/metadata_item_value_request.gen.go b/macos/avfoundation/metadata_item_value_request.gen.go index 63af2dd1..1fd9691a 100644 --- a/macos/avfoundation/metadata_item_value_request.gen.go +++ b/macos/avfoundation/metadata_item_value_request.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package avfoundation @@ -19,8 +19,8 @@ type _MetadataItemValueRequestClass struct { // An interface definition for the [MetadataItemValueRequest] class. type IMetadataItemValueRequest interface { objc.IObject - RespondWithValue(value objc.IObject) RespondWithError(error foundation.IError) + RespondWithValue(value objc.IObject) MetadataItem() MetadataItem } @@ -42,10 +42,6 @@ func (mc _MetadataItemValueRequestClass) Alloc() MetadataItemValueRequest { return rv } -func MetadataItemValueRequest_Alloc() MetadataItemValueRequest { - return MetadataItemValueRequestClass.Alloc() -} - func (mc _MetadataItemValueRequestClass) New() MetadataItemValueRequest { rv := objc.Call[MetadataItemValueRequest](mc, objc.Sel("new")) rv.Autorelease() @@ -61,13 +57,6 @@ func (m_ MetadataItemValueRequest) Init() MetadataItemValueRequest { return rv } -// Returns the metadata item’s value. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avmetadataitemvaluerequest/1386820-respondwithvalue?language=objc -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 @@ -75,6 +64,13 @@ func (m_ MetadataItemValueRequest) RespondWithError(error foundation.IError) { objc.Call[objc.Void](m_, objc.Sel("respondWithError:"), objc.Ptr(error)) } +// Returns the metadata item’s value. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avmetadataitemvaluerequest/1386820-respondwithvalue?language=objc +func (m_ MetadataItemValueRequest) RespondWithValue(value objc.IObject) { + objc.Call[objc.Void](m_, objc.Sel("respondWithValue:"), value) +} + // 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 7522816f..55606842 100644 --- a/macos/avfoundation/metadata_machine_readable_code_object.gen.go +++ b/macos/avfoundation/metadata_machine_readable_code_object.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package avfoundation @@ -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] @@ -43,10 +43,6 @@ func (mc _MetadataMachineReadableCodeObjectClass) Alloc() MetadataMachineReadabl return rv } -func MetadataMachineReadableCodeObject_Alloc() MetadataMachineReadableCodeObject { - return MetadataMachineReadableCodeObjectClass.Alloc() -} - func (mc _MetadataMachineReadableCodeObjectClass) New() MetadataMachineReadableCodeObject { rv := objc.Call[MetadataMachineReadableCodeObject](mc, objc.Sel("new")) rv.Autorelease() @@ -62,6 +58,14 @@ 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 @@ -77,11 +81,3 @@ 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 054199dd..7d557a6e 100644 --- a/macos/avfoundation/metadata_object.gen.go +++ b/macos/avfoundation/metadata_object.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package avfoundation @@ -22,8 +22,8 @@ type IMetadataObject interface { objc.IObject Bounds() coregraphics.Rect Time() coremedia.Time - Type() MetadataObjectType Duration() coremedia.Time + Type() MetadataObjectType } // The abstract superclass for objects provided by a metadata capture output. [Full Topic] @@ -44,10 +44,6 @@ func (mc _MetadataObjectClass) Alloc() MetadataObject { return rv } -func MetadataObject_Alloc() MetadataObject { - return MetadataObjectClass.Alloc() -} - func (mc _MetadataObjectClass) New() MetadataObject { rv := objc.Call[MetadataObject](mc, objc.Sel("new")) rv.Autorelease() @@ -79,14 +75,6 @@ func (m_ MetadataObject) Time() coremedia.Time { 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 -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 @@ -94,3 +82,11 @@ 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 +func (m_ MetadataObject) Type() MetadataObjectType { + rv := objc.Call[MetadataObjectType](m_, objc.Sel("type")) + return rv +} diff --git a/macos/avfoundation/metadata_salient_object.gen.go b/macos/avfoundation/metadata_salient_object.gen.go index f363f5c7..6d81f975 100644 --- a/macos/avfoundation/metadata_salient_object.gen.go +++ b/macos/avfoundation/metadata_salient_object.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package avfoundation @@ -39,10 +39,6 @@ func (mc _MetadataSalientObjectClass) Alloc() MetadataSalientObject { return rv } -func MetadataSalientObject_Alloc() MetadataSalientObject { - return MetadataSalientObjectClass.Alloc() -} - func (mc _MetadataSalientObjectClass) New() MetadataSalientObject { rv := objc.Call[MetadataSalientObject](mc, objc.Sel("new")) rv.Autorelease() diff --git a/macos/avfoundation/movie.gen.go b/macos/avfoundation/movie.gen.go index 381fc5d8..3c47dd09 100644 --- a/macos/avfoundation/movie.gen.go +++ b/macos/avfoundation/movie.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package avfoundation @@ -19,14 +19,14 @@ type _MovieClass struct { // An interface definition for the [Movie] class. type IMovie interface { IAsset - WriteMovieHeaderToURLFileTypeOptionsError(URL foundation.IURL, fileType FileType, options MovieWritingOptions, outError foundation.IError) bool - IsCompatibleWithFileType(fileType FileType) bool MovieHeaderWithFileTypeError(fileType FileType, outError foundation.IError) []byte + IsCompatibleWithFileType(fileType FileType) bool + WriteMovieHeaderToURLFileTypeOptionsError(URL foundation.IURL, fileType FileType, options MovieWritingOptions, outError foundation.IError) bool DefaultMediaDataStorage() MediaDataStorage - ContainsMovieFragments() bool - Data() []byte URL() foundation.URL + ContainsMovieFragments() bool CanContainMovieFragments() bool + Data() []byte } // 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,6 +42,30 @@ 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:"), objc.Ptr(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 @@ -56,18 +80,6 @@ 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:"), objc.Ptr(URL), options) return rv @@ -82,27 +94,11 @@ 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:"), objc.Ptr(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 } -func Movie_Alloc() Movie { - return MovieClass.Alloc() -} - func (mc _MovieClass) New() Movie { rv := objc.Call[Movie](mc, objc.Sel("new")) rv.Autorelease() @@ -130,6 +126,14 @@ 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 foundation.IError) []byte { + rv := objc.Call[[]byte](m_, objc.Sel("movieHeaderWithFileType:error:"), fileType, objc.Ptr(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 @@ -145,14 +149,6 @@ 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 foundation.IError) bool { - rv := objc.Call[bool](m_, objc.Sel("writeMovieHeaderToURL:fileType:options:error:"), objc.Ptr(URL), fileType, options, objc.Ptr(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 @@ -161,11 +157,11 @@ func (m_ Movie) IsCompatibleWithFileType(fileType FileType) bool { return rv } -// Creates a header for a movie for the specified file type. [Full Topic] +// Writes the movie header to the specified URL. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avmovie/1386686-movieheaderwithfiletype?language=objc -func (m_ Movie) MovieHeaderWithFileTypeError(fileType FileType, outError foundation.IError) []byte { - rv := objc.Call[[]byte](m_, objc.Sel("movieHeaderWithFileType:error:"), fileType, objc.Ptr(outError)) +// [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 foundation.IError) bool { + rv := objc.Call[bool](m_, objc.Sel("writeMovieHeaderToURL:fileType:options:error:"), objc.Ptr(URL), fileType, options, objc.Ptr(outError)) return rv } @@ -177,22 +173,6 @@ func (m_ Movie) DefaultMediaDataStorage() MediaDataStorage { 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 -func (m_ Movie) ContainsMovieFragments() bool { - rv := objc.Call[bool](m_, objc.Sel("containsMovieFragments")) - 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 -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 @@ -201,6 +181,14 @@ func (m_ Movie) URL() foundation.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 +func (m_ Movie) ContainsMovieFragments() bool { + rv := objc.Call[bool](m_, objc.Sel("containsMovieFragments")) + 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 @@ -208,3 +196,11 @@ 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 +func (m_ Movie) Data() []byte { + rv := objc.Call[[]byte](m_, objc.Sel("data")) + return rv +} diff --git a/macos/avfoundation/movie_track.gen.go b/macos/avfoundation/movie_track.gen.go index 07b270eb..8f580bf3 100644 --- a/macos/avfoundation/movie_track.gen.go +++ b/macos/avfoundation/movie_track.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package avfoundation @@ -20,8 +20,8 @@ type _MovieTrackClass struct { type IMovieTrack interface { IAssetTrack MediaPresentationTimeRange() coremedia.TimeRange - AlternateGroupID() int MediaDataStorage() MediaDataStorage + AlternateGroupID() int MediaDecodeTimeRange() coremedia.TimeRange } @@ -43,10 +43,6 @@ func (mc _MovieTrackClass) Alloc() MovieTrack { return rv } -func MovieTrack_Alloc() MovieTrack { - return MovieTrackClass.Alloc() -} - func (mc _MovieTrackClass) New() MovieTrack { rv := objc.Call[MovieTrack](mc, objc.Sel("new")) rv.Autorelease() @@ -70,14 +66,6 @@ func (m_ MovieTrack) MediaPresentationTimeRange() coremedia.TimeRange { 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 -func (m_ MovieTrack) AlternateGroupID() int { - rv := objc.Call[int](m_, objc.Sel("alternateGroupID")) - 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 @@ -86,6 +74,14 @@ func (m_ MovieTrack) MediaDataStorage() 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 +func (m_ MovieTrack) AlternateGroupID() int { + rv := objc.Call[int](m_, objc.Sel("alternateGroupID")) + 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 840c5958..1cd57286 100644 --- a/macos/avfoundation/mutable_asset_download_storage_management_policy.gen.go +++ b/macos/avfoundation/mutable_asset_download_storage_management_policy.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package avfoundation @@ -19,8 +19,8 @@ type _MutableAssetDownloadStorageManagementPolicyClass struct { // An interface definition for the [MutableAssetDownloadStorageManagementPolicy] class. type IMutableAssetDownloadStorageManagementPolicy interface { IAssetDownloadStorageManagementPolicy - SetPriority(value AssetDownloadedAssetEvictionPriority) SetExpirationDate(value foundation.IDate) + SetPriority(value AssetDownloadedAssetEvictionPriority) } // A mutable object that you use to create a new storage management policy. [Full Topic] @@ -41,10 +41,6 @@ func (mc _MutableAssetDownloadStorageManagementPolicyClass) Alloc() MutableAsset return rv } -func MutableAssetDownloadStorageManagementPolicy_Alloc() MutableAssetDownloadStorageManagementPolicy { - return MutableAssetDownloadStorageManagementPolicyClass.Alloc() -} - func (mc _MutableAssetDownloadStorageManagementPolicyClass) New() MutableAssetDownloadStorageManagementPolicy { rv := objc.Call[MutableAssetDownloadStorageManagementPolicy](mc, objc.Sel("new")) rv.Autorelease() @@ -60,16 +56,16 @@ func (m_ MutableAssetDownloadStorageManagementPolicy) Init() MutableAssetDownloa return rv } -// 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:"), objc.Ptr(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) +} diff --git a/macos/avfoundation/mutable_audio_mix.gen.go b/macos/avfoundation/mutable_audio_mix.gen.go index cc80fe95..55eb2eb1 100644 --- a/macos/avfoundation/mutable_audio_mix.gen.go +++ b/macos/avfoundation/mutable_audio_mix.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package avfoundation @@ -51,10 +51,6 @@ func (mc _MutableAudioMixClass) Alloc() MutableAudioMix { return rv } -func MutableAudioMix_Alloc() MutableAudioMix { - return MutableAudioMixClass.Alloc() -} - func (mc _MutableAudioMixClass) New() MutableAudioMix { rv := objc.Call[MutableAudioMix](mc, objc.Sel("new")) rv.Autorelease() diff --git a/macos/avfoundation/mutable_audio_mix_input_parameters.gen.go b/macos/avfoundation/mutable_audio_mix_input_parameters.gen.go index 21d457e6..8f3accb4 100644 --- a/macos/avfoundation/mutable_audio_mix_input_parameters.gen.go +++ b/macos/avfoundation/mutable_audio_mix_input_parameters.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package avfoundation @@ -19,11 +19,11 @@ type _MutableAudioMixInputParametersClass struct { // An interface definition for the [MutableAudioMixInputParameters] class. type IMutableAudioMixInputParameters interface { IAudioMixInputParameters - SetVolumeRampFromStartVolumeToEndVolumeTimeRange(startVolume float64, endVolume float64, timeRange coremedia.TimeRange) SetVolumeAtTime(volume float64, time coremedia.Time) + SetVolumeRampFromStartVolumeToEndVolumeTimeRange(startVolume float64, endVolume float64, timeRange coremedia.TimeRange) SetAudioTimePitchAlgorithm(value AudioTimePitchAlgorithm) - SetTrackID(value objc.IObject) SetAudioTapProcessor(value objc.IObject) + SetTrackID(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) AudioMixInputParameters() MutableAudioMixInputParameters { - rv := objc.Call[MutableAudioMixInputParameters](mc, objc.Sel("audioMixInputParameters")) - return rv -} - -// Creates a mutable input parameters object. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avmutableaudiomixinputparameters/1560974-audiomixinputparameters?language=objc -func MutableAudioMixInputParameters_AudioMixInputParameters() MutableAudioMixInputParameters { - return MutableAudioMixInputParametersClass.AudioMixInputParameters() -} - func (mc _MutableAudioMixInputParametersClass) AudioMixInputParametersWithTrack(track IAssetTrack) MutableAudioMixInputParameters { rv := objc.Call[MutableAudioMixInputParameters](mc, objc.Sel("audioMixInputParametersWithTrack:"), objc.Ptr(track)) return rv @@ -63,13 +51,21 @@ func MutableAudioMixInputParameters_AudioMixInputParametersWithTrack(track IAsse return MutableAudioMixInputParametersClass.AudioMixInputParametersWithTrack(track) } -func (mc _MutableAudioMixInputParametersClass) Alloc() MutableAudioMixInputParameters { - rv := objc.Call[MutableAudioMixInputParameters](mc, objc.Sel("alloc")) +func (mc _MutableAudioMixInputParametersClass) AudioMixInputParameters() MutableAudioMixInputParameters { + rv := objc.Call[MutableAudioMixInputParameters](mc, objc.Sel("audioMixInputParameters")) return rv } -func MutableAudioMixInputParameters_Alloc() MutableAudioMixInputParameters { - return MutableAudioMixInputParametersClass.Alloc() +// Creates a mutable input parameters object. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avmutableaudiomixinputparameters/1560974-audiomixinputparameters?language=objc +func MutableAudioMixInputParameters_AudioMixInputParameters() MutableAudioMixInputParameters { + return MutableAudioMixInputParametersClass.AudioMixInputParameters() +} + +func (mc _MutableAudioMixInputParametersClass) Alloc() MutableAudioMixInputParameters { + rv := objc.Call[MutableAudioMixInputParameters](mc, objc.Sel("alloc")) + return rv } func (mc _MutableAudioMixInputParametersClass) New() MutableAudioMixInputParameters { @@ -87,13 +83,6 @@ func (m_ MutableAudioMixInputParameters) Init() MutableAudioMixInputParameters { return rv } -// 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 -func (m_ MutableAudioMixInputParameters) SetVolumeRampFromStartVolumeToEndVolumeTimeRange(startVolume float64, endVolume float64, timeRange coremedia.TimeRange) { - 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 @@ -101,6 +90,13 @@ func (m_ MutableAudioMixInputParameters) SetVolumeAtTime(volume float64, time co 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 +func (m_ MutableAudioMixInputParameters) SetVolumeRampFromStartVolumeToEndVolumeTimeRange(startVolume float64, endVolume float64, timeRange coremedia.TimeRange) { + objc.Call[objc.Void](m_, objc.Sel("setVolumeRampFromStartVolume:toEndVolume:timeRange:"), startVolume, endVolume, timeRange) +} + // 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 @@ -108,16 +104,16 @@ func (m_ MutableAudioMixInputParameters) SetAudioTimePitchAlgorithm(value AudioT objc.Call[objc.Void](m_, objc.Sel("setAudioTimePitchAlgorithm:"), 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:"), objc.Ptr(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:"), objc.Ptr(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:"), objc.Ptr(value)) +} diff --git a/macos/avfoundation/mutable_caption.gen.go b/macos/avfoundation/mutable_caption.gen.go index 0b719aa5..18cefe7d 100644 --- a/macos/avfoundation/mutable_caption.gen.go +++ b/macos/avfoundation/mutable_caption.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package avfoundation @@ -21,25 +21,25 @@ type _MutableCaptionClass struct { // An interface definition for the [MutableCaption] class. type IMutableCaption interface { ICaption - 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) + SetBackgroundColorInRange(color coregraphics.ColorRef, range_ foundation.Range) SetFontWeightInRange(fontWeight CaptionFontWeight, range_ foundation.Range) - SetFontStyleInRange(fontStyle CaptionFontStyle, range_ foundation.Range) + RemoveRubyInRange(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) - SetAnimation(value CaptionAnimation) - SetTextAlignment(value CaptionTextAlignment) + 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) 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] @@ -60,10 +60,6 @@ func (mc _MutableCaptionClass) Alloc() MutableCaption { return rv } -func MutableCaption_Alloc() MutableCaption { - return MutableCaptionClass.Alloc() -} - func (mc _MutableCaptionClass) New() MutableCaption { rv := objc.Call[MutableCaption](mc, objc.Sel("new")) rv.Autorelease() @@ -93,46 +89,11 @@ func NewMutableCaptionWithTextTimeRange(text string, timeRange coremedia.TimeRan return instance } -// 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_) -} - -// 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] +// Sets the background color for a range of text. [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:"), objc.Ptr(ruby), range_) +// [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 the font weight for a range of text. [Full Topic] @@ -142,11 +103,11 @@ func (m_ MutableCaption) SetFontWeightInRange(fontWeight CaptionFontWeight, rang objc.Call[objc.Void](m_, objc.Sel("setFontWeight:inRange:"), fontWeight, range_) } -// Sets the font style for a range of text. [Full Topic] +// Removes ruby text from a range. [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_) +// [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_) } // Removes a background color from a range of text. [Full Topic] @@ -163,20 +124,6 @@ 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 @@ -191,18 +138,53 @@ func (m_ MutableCaption) SetTextColorInRange(color coregraphics.ColorRef, range_ objc.Call[objc.Void](m_, objc.Sel("setTextColor:inRange:"), color, range_) } -// Animations to apply to the caption text. [Full Topic] +// Removes the text color for a range of 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) +// [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_) } -// The alignment of the caption text. [Full Topic] +// Removes text combine from a range of 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) +// [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:"), objc.Ptr(ruby), 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_) +} + +// 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_) } // The time range over which the system presents the caption. [Full Topic] @@ -225,3 +207,17 @@ 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 cfb842bd..a12e414d 100644 --- a/macos/avfoundation/mutable_caption_region.gen.go +++ b/macos/avfoundation/mutable_caption_region.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package avfoundation @@ -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,6 +38,11 @@ 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 @@ -52,20 +57,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 } -func MutableCaptionRegion_Alloc() MutableCaptionRegion { - return MutableCaptionRegionClass.Alloc() -} - func (mc _MutableCaptionRegionClass) New() MutableCaptionRegion { rv := objc.Call[MutableCaptionRegion](mc, objc.Sel("new")) rv.Autorelease() @@ -76,20 +72,6 @@ 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 @@ -110,3 +92,17 @@ 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 a413c47f..90c7add1 100644 --- a/macos/avfoundation/mutable_composition.gen.go +++ b/macos/avfoundation/mutable_composition.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package avfoundation @@ -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 - RemoveTrack(track ICompositionTrack) AddMutableTrackWithMediaTypePreferredTrackID(mediaType MediaType, preferredTrackID objc.IObject) MutableCompositionTrack - ScaleTimeRangeToDuration(timeRange coremedia.TimeRange, duration coremedia.Time) + RemoveTrack(track ICompositionTrack) InsertEmptyTimeRange(timeRange coremedia.TimeRange) SetNaturalSize(value coregraphics.Size) } @@ -72,10 +72,6 @@ func (mc _MutableCompositionClass) Alloc() MutableComposition { return rv } -func MutableComposition_Alloc() MutableComposition { - return MutableCompositionClass.Alloc() -} - func (mc _MutableCompositionClass) New() MutableComposition { rv := objc.Call[MutableComposition](mc, objc.Sel("new")) rv.Autorelease() @@ -110,6 +106,13 @@ 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 @@ -118,13 +121,6 @@ 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:"), objc.Ptr(track)) -} - // Adds an empty track to a composition. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/avfoundation/avmutablecomposition/1387601-addmutabletrackwithmediatype?language=objc @@ -133,11 +129,11 @@ func (m_ MutableComposition) AddMutableTrackWithMediaTypePreferredTrackID(mediaT return rv } -// Changes the duration of all tracks in a given time range. [Full Topic] +// Removes a specified track from the composition. [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) +// [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:"), objc.Ptr(track)) } // 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 9ee9a516..2df51824 100644 --- a/macos/avfoundation/mutable_composition_track.gen.go +++ b/macos/avfoundation/mutable_composition_track.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package avfoundation @@ -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 foundation.IError) bool - InsertTimeRangesOfTracksAtTimeError(timeRanges []foundation.IValue, tracks []IAssetTrack, startTime coremedia.Time, outError foundation.IError) bool - InsertTimeRangeOfTrackAtTimeError(timeRange coremedia.TimeRange, track IAssetTrack, startTime coremedia.Time, outError foundation.IError) bool ReplaceFormatDescriptionWithFormatDescription(originalFormatDescription coremedia.FormatDescriptionRef, replacementFormatDescription coremedia.FormatDescriptionRef) ScaleTimeRangeToDuration(timeRange coremedia.TimeRange, duration coremedia.Time) InsertEmptyTimeRange(timeRange coremedia.TimeRange) - SetExtendedLanguageTag(value string) + RemoveTimeRange(timeRange coremedia.TimeRange) + RemoveTrackAssociationToTrackType(compositionTrack ICompositionTrack, trackAssociationType TrackAssociationType) + InsertTimeRangesOfTracksAtTimeError(timeRanges []foundation.IValue, tracks []IAssetTrack, startTime coremedia.Time, outError foundation.IError) bool + InsertTimeRangeOfTrackAtTimeError(timeRange coremedia.TimeRange, track IAssetTrack, startTime coremedia.Time, outError foundation.IError) bool SetPreferredVolume(value float64) - SetSegments(value []ICompositionTrackSegment) - SetLanguageCode(value string) SetEnabled(value bool) + SetExtendedLanguageTag(value string) + SetLanguageCode(value string) 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] @@ -57,10 +57,6 @@ func (mc _MutableCompositionTrackClass) Alloc() MutableCompositionTrack { return rv } -func MutableCompositionTrack_Alloc() MutableCompositionTrack { - return MutableCompositionTrackClass.Alloc() -} - func (mc _MutableCompositionTrackClass) New() MutableCompositionTrack { rv := objc.Call[MutableCompositionTrack](mc, objc.Sel("new")) rv.Autorelease() @@ -76,13 +72,6 @@ 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:"), objc.Ptr(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 @@ -90,13 +79,6 @@ func (m_ MutableCompositionTrack) AddTrackAssociationToTrackType(compositionTrac objc.Call[objc.Void](m_, objc.Sel("addTrackAssociationToTrack:type:"), objc.Ptr(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 @@ -105,22 +87,6 @@ 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 foundation.IError) bool { - rv := objc.Call[bool](m_, objc.Sel("insertTimeRanges:ofTracks:atTime:error:"), timeRanges, tracks, startTime, objc.Ptr(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 foundation.IError) bool { - rv := objc.Call[bool](m_, objc.Sel("insertTimeRange:ofTrack:atTime:error:"), timeRange, objc.Ptr(track), startTime, objc.Ptr(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 @@ -142,11 +108,34 @@ func (m_ MutableCompositionTrack) InsertEmptyTimeRange(timeRange coremedia.TimeR objc.Call[objc.Void](m_, objc.Sel("insertEmptyTimeRange:"), timeRange) } -// The language tag associated with the track, as an RFC 4646 language tag. [Full Topic] +// Removes a time range of media from a composition track. [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/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:"), objc.Ptr(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 foundation.IError) bool { + rv := objc.Call[bool](m_, objc.Sel("insertTimeRanges:ofTracks:atTime:error:"), timeRanges, tracks, startTime, objc.Ptr(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 foundation.IError) bool { + rv := objc.Call[bool](m_, objc.Sel("insertTimeRange:ofTrack:atTime:error:"), timeRange, objc.Ptr(track), startTime, objc.Ptr(outError)) + return rv } // The volume the track prefers for its audible media data. [Full Topic] @@ -156,11 +145,18 @@ func (m_ MutableCompositionTrack) SetPreferredVolume(value float64) { objc.Call[objc.Void](m_, objc.Sel("setPreferredVolume:"), value) } -// The track segments that a composition track contains. [Full Topic] +// A Boolean value that indicates whether the tracks is in an enabled state. [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) +// [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] +// +// [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 language associated with the track, as an ISO 639-2/T language code. [Full Topic] @@ -170,13 +166,6 @@ 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 @@ -190,3 +179,10 @@ 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 078f9fce..d841a4e7 100644 --- a/macos/avfoundation/mutable_date_range_metadata_group.gen.go +++ b/macos/avfoundation/mutable_date_range_metadata_group.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package avfoundation @@ -20,8 +20,8 @@ type _MutableDateRangeMetadataGroupClass struct { type IMutableDateRangeMetadataGroup interface { IDateRangeMetadataGroup SetItems(value []IMetadataItem) - SetStartDate(value foundation.IDate) SetEndDate(value foundation.IDate) + SetStartDate(value foundation.IDate) } // A mutable collection of metadata items that are valid for use within a specific range of dates. [Full Topic] @@ -42,10 +42,6 @@ func (mc _MutableDateRangeMetadataGroupClass) Alloc() MutableDateRangeMetadataGr return rv } -func MutableDateRangeMetadataGroup_Alloc() MutableDateRangeMetadataGroup { - return MutableDateRangeMetadataGroupClass.Alloc() -} - func (mc _MutableDateRangeMetadataGroupClass) New() MutableDateRangeMetadataGroup { rv := objc.Call[MutableDateRangeMetadataGroup](mc, objc.Sel("new")) rv.Autorelease() @@ -82,16 +78,16 @@ func (m_ MutableDateRangeMetadataGroup) SetItems(value []IMetadataItem) { objc.Call[objc.Void](m_, objc.Sel("setItems:"), 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:"), objc.Ptr(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:"), objc.Ptr(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:"), objc.Ptr(value)) +} diff --git a/macos/avfoundation/mutable_media_selection.gen.go b/macos/avfoundation/mutable_media_selection.gen.go index 9992f2a7..7afc5a3d 100644 --- a/macos/avfoundation/mutable_media_selection.gen.go +++ b/macos/avfoundation/mutable_media_selection.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package avfoundation @@ -39,10 +39,6 @@ func (mc _MutableMediaSelectionClass) Alloc() MutableMediaSelection { return rv } -func MutableMediaSelection_Alloc() MutableMediaSelection { - return MutableMediaSelectionClass.Alloc() -} - func (mc _MutableMediaSelectionClass) New() MutableMediaSelection { rv := objc.Call[MutableMediaSelection](mc, objc.Sel("new")) rv.Autorelease() diff --git a/macos/avfoundation/mutable_metadata_item.gen.go b/macos/avfoundation/mutable_metadata_item.gen.go index debb4d64..db1797ed 100644 --- a/macos/avfoundation/mutable_metadata_item.gen.go +++ b/macos/avfoundation/mutable_metadata_item.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package avfoundation @@ -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) - SetKey(value objc.IObject) - SetValue(value objc.IObject) + SetStartDate(value foundation.IDate) SetExtraAttributes(value map[MetadataExtraAttributeKey]objc.IObject) - SetLocale(value foundation.ILocale) SetTime(value coremedia.Time) - SetDataType(value string) - SetStartDate(value foundation.IDate) + SetValue(value objc.IObject) SetDuration(value coremedia.Time) - SetIdentifier(value MetadataIdentifier) + SetKey(value objc.IObject) + SetDataType(value string) } // A mutable metadata item for an audiovisual asset or for one of its tracks. [Full Topic] @@ -51,10 +51,6 @@ func (mc _MutableMetadataItemClass) Alloc() MutableMetadataItem { return rv } -func MutableMetadataItem_Alloc() MutableMetadataItem { - return MutableMetadataItemClass.Alloc() -} - func (mc _MutableMetadataItemClass) New() MutableMetadataItem { rv := objc.Call[MutableMetadataItem](mc, objc.Sel("new")) rv.Autorelease() @@ -85,6 +81,13 @@ 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 @@ -92,6 +95,13 @@ 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:"), objc.Ptr(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 @@ -99,18 +109,11 @@ func (m_ MutableMetadataItem) SetExtendedLanguageTag(value string) { objc.Call[objc.Void](m_, objc.Sel("setExtendedLanguageTag:"), 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 value for the mutable metadata item. [Full Topic] +// The start date of the timed metadata. [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/1389966-startdate?language=objc +func (m_ MutableMetadataItem) SetStartDate(value foundation.IDate) { + objc.Call[objc.Void](m_, objc.Sel("setStartDate:"), objc.Ptr(value)) } // A dictionary of additional attributes for a metadata item. [Full Topic] @@ -120,13 +123,6 @@ 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:"), objc.Ptr(value)) -} - // The timestamp for a mutable metadata item. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/avfoundation/avmutablemetadataitem/1389990-time?language=objc @@ -134,18 +130,11 @@ func (m_ MutableMetadataItem) SetTime(value coremedia.Time) { objc.Call[objc.Void](m_, objc.Sel("setTime:"), value) } -// The data type of the metadata item’s value. [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) -} - -// The start date of the timed metadata. [Full Topic] +// The value for the 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:"), objc.Ptr(value)) +// [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) } // The duration of a mutable metadata item. [Full Topic] @@ -155,9 +144,16 @@ func (m_ MutableMetadataItem) SetDuration(value coremedia.Time) { objc.Call[objc.Void](m_, objc.Sel("setDuration:"), value) } -// Indicates the identifier of the metadata item. [Full Topic] +// The key for a mutable 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) +// [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] +// +// [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) } diff --git a/macos/avfoundation/mutable_movie.gen.go b/macos/avfoundation/mutable_movie.gen.go index d561e4da..50fcb2c8 100644 --- a/macos/avfoundation/mutable_movie.gen.go +++ b/macos/avfoundation/mutable_movie.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package avfoundation @@ -21,28 +21,28 @@ type _MutableMovieClass struct { // An interface definition for the [MutableMovie] class. type IMutableMovie interface { IMovie - TracksWithMediaType(mediaType MediaType) []MutableMovieTrack - RemoveTimeRange(timeRange coremedia.TimeRange) - AddMutableTracksCopyingSettingsFromTracksOptions(existingTracks []IAssetTrack, options map[string]objc.IObject) []MutableMovieTrack + TrackWithTrackID(trackID objc.IObject) MutableMovieTrack TracksWithMediaCharacteristic(mediaCharacteristic MediaCharacteristic) []MutableMovieTrack MutableTrackCompatibleWithTrack(track IAssetTrack) MutableMovieTrack - InsertTimeRangeOfAssetAtTimeCopySampleDataError(timeRange coremedia.TimeRange, asset IAsset, startTime coremedia.Time, copySampleData bool, outError foundation.IError) bool + TracksWithMediaType(mediaType MediaType) []MutableMovieTrack + ScaleTimeRangeToDuration(timeRange coremedia.TimeRange, duration coremedia.Time) + RemoveTimeRange(timeRange coremedia.TimeRange) RemoveTrack(track IMovieTrack) + InsertTimeRangeOfAssetAtTimeCopySampleDataError(timeRange coremedia.TimeRange, asset IAsset, startTime coremedia.Time, copySampleData bool, outError foundation.IError) bool AddMutableTrackWithMediaTypeCopySettingsFromTrackOptions(mediaType MediaType, track IAssetTrack, options map[string]objc.IObject) MutableMovieTrack - ScaleTimeRangeToDuration(timeRange coremedia.TimeRange, duration coremedia.Time) - TrackWithTrackID(trackID objc.IObject) MutableMovieTrack + AddMutableTracksCopyingSettingsFromTracksOptions(existingTracks []IAssetTrack, options map[string]objc.IObject) []MutableMovieTrack InsertEmptyTimeRange(timeRange coremedia.TimeRange) + SetPreferredTransform(value coregraphics.AffineTransform) SetDefaultMediaDataStorage(value IMediaDataStorage) + SetPreferredVolume(value float64) IsModified() bool SetModified(value bool) - SetPreferredVolume(value float64) InterleavingPeriod() coremedia.Time SetInterleavingPeriod(value coremedia.Time) - SetMetadata(value []IMetadataItem) SetPreferredRate(value float64) + SetMetadata(value []IMetadataItem) 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,44 +58,42 @@ func MutableMovieFrom(ptr unsafe.Pointer) MutableMovie { } } -func (m_ MutableMovie) InitWithDataOptionsError(data []byte, options map[string]objc.IObject, outError foundation.IError) MutableMovie { - rv := objc.Call[MutableMovie](m_, objc.Sel("initWithData:options:error:"), data, options, objc.Ptr(outError)) +func (m_ MutableMovie) InitWithSettingsFromMovieOptionsError(movie IMovie, options map[string]objc.IObject, outError foundation.IError) MutableMovie { + rv := objc.Call[MutableMovie](m_, objc.Sel("initWithSettingsFromMovie:options:error:"), objc.Ptr(movie), options, objc.Ptr(outError)) return rv } -// Creates a mutable movie object from a movie stored in a data object. [Full Topic] +// Creates a 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 foundation.IError) MutableMovie { - instance := MutableMovieClass.Alloc().InitWithDataOptionsError(data, options, outError) +// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avmutablemovie/1386408-initwithsettingsfrommovie?language=objc +func NewMutableMovieWithSettingsFromMovieOptionsError(movie IMovie, options map[string]objc.IObject, outError foundation.IError) MutableMovie { + instance := MutableMovieClass.Alloc().InitWithSettingsFromMovieOptionsError(movie, options, outError) instance.Autorelease() return instance } -func (mc _MutableMovieClass) MovieWithDataOptionsError(data []byte, options map[string]objc.IObject, outError foundation.IError) MutableMovie { - rv := objc.Call[MutableMovie](mc, objc.Sel("movieWithData:options:error:"), data, options, objc.Ptr(outError)) +func (mc _MutableMovieClass) MovieWithSettingsFromMovieOptionsError(movie IMovie, options map[string]objc.IObject, outError foundation.IError) MutableMovie { + rv := objc.Call[MutableMovie](mc, objc.Sel("movieWithSettingsFromMovie:options:error:"), objc.Ptr(movie), options, objc.Ptr(outError)) return rv } -// Returns a new 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/1458234-moviewithdata?language=objc -func MutableMovie_MovieWithDataOptionsError(data []byte, options map[string]objc.IObject, outError foundation.IError) MutableMovie { - return MutableMovieClass.MovieWithDataOptionsError(data, options, outError) +// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avmutablemovie/1458238-moviewithsettingsfrommovie?language=objc +func MutableMovie_MovieWithSettingsFromMovieOptionsError(movie IMovie, options map[string]objc.IObject, outError foundation.IError) MutableMovie { + return MutableMovieClass.MovieWithSettingsFromMovieOptionsError(movie, options, outError) } -func (m_ MutableMovie) InitWithSettingsFromMovieOptionsError(movie IMovie, options map[string]objc.IObject, outError foundation.IError) MutableMovie { - rv := objc.Call[MutableMovie](m_, objc.Sel("initWithSettingsFromMovie:options:error:"), objc.Ptr(movie), options, objc.Ptr(outError)) +func (mc _MutableMovieClass) MovieWithDataOptionsError(data []byte, options map[string]objc.IObject, outError foundation.IError) MutableMovie { + rv := objc.Call[MutableMovie](mc, objc.Sel("movieWithData:options:error:"), data, options, objc.Ptr(outError)) return rv } -// Creates a mutable movie object without tracks. [Full Topic] +// Returns a new 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 foundation.IError) MutableMovie { - instance := MutableMovieClass.Alloc().InitWithSettingsFromMovieOptionsError(movie, options, outError) - instance.Autorelease() - return instance +// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avmutablemovie/1458234-moviewithdata?language=objc +func MutableMovie_MovieWithDataOptionsError(data []byte, options map[string]objc.IObject, outError foundation.IError) MutableMovie { + return MutableMovieClass.MovieWithDataOptionsError(data, options, outError) } func (m_ MutableMovie) InitWithURLOptionsError(URL foundation.IURL, options map[string]objc.IObject, outError foundation.IError) MutableMovie { @@ -124,16 +122,18 @@ func MutableMovie_MovieWithURLOptionsError(URL foundation.IURL, options map[stri return MutableMovieClass.MovieWithURLOptionsError(URL, options, outError) } -func (mc _MutableMovieClass) MovieWithSettingsFromMovieOptionsError(movie IMovie, options map[string]objc.IObject, outError foundation.IError) MutableMovie { - rv := objc.Call[MutableMovie](mc, objc.Sel("movieWithSettingsFromMovie:options:error:"), objc.Ptr(movie), options, objc.Ptr(outError)) +func (m_ MutableMovie) InitWithDataOptionsError(data []byte, options map[string]objc.IObject, outError foundation.IError) MutableMovie { + rv := objc.Call[MutableMovie](m_, objc.Sel("initWithData:options:error:"), data, options, objc.Ptr(outError)) return rv } -// Returns a new 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/1458238-moviewithsettingsfrommovie?language=objc -func MutableMovie_MovieWithSettingsFromMovieOptionsError(movie IMovie, options map[string]objc.IObject, outError foundation.IError) MutableMovie { - return MutableMovieClass.MovieWithSettingsFromMovieOptionsError(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 foundation.IError) MutableMovie { + instance := MutableMovieClass.Alloc().InitWithDataOptionsError(data, options, outError) + instance.Autorelease() + return instance } func (mc _MutableMovieClass) Alloc() MutableMovie { @@ -141,10 +141,6 @@ func (mc _MutableMovieClass) Alloc() MutableMovie { return rv } -func MutableMovie_Alloc() MutableMovie { - return MutableMovieClass.Alloc() -} - func (mc _MutableMovieClass) New() MutableMovie { rv := objc.Call[MutableMovie](mc, objc.Sel("new")) rv.Autorelease() @@ -160,6 +156,30 @@ 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:"), objc.Ptr(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 @@ -174,18 +194,6 @@ 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:"), objc.Ptr(URL), options) return rv @@ -200,18 +208,6 @@ 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:"), objc.Ptr(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:"), objc.Ptr(URL)) return rv @@ -224,26 +220,11 @@ func MutableMovie_AssetWithURL(URL foundation.IURL) MutableMovie { return MutableMovieClass.AssetWithURL(URL) } -// Retrieves tracks in the movie that present media of the specified type. [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) - 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] +// Retrieves a track in the movie that contains the specified identifier. [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/1389467-trackwithtrackid?language=objc +func (m_ MutableMovie) TrackWithTrackID(trackID objc.IObject) MutableMovieTrack { + rv := objc.Call[MutableMovieTrack](m_, objc.Sel("trackWithTrackID:"), objc.Ptr(trackID)) return rv } @@ -263,14 +244,28 @@ func (m_ MutableMovie) MutableTrackCompatibleWithTrack(track IAssetTrack) Mutabl return rv } -// Inserts all of the tracks in a specified time range of an asset into a movie. [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/1389598-inserttimerange?language=objc -func (m_ MutableMovie) InsertTimeRangeOfAssetAtTimeCopySampleDataError(timeRange coremedia.TimeRange, asset IAsset, startTime coremedia.Time, copySampleData bool, outError foundation.IError) bool { - rv := objc.Call[bool](m_, objc.Sel("insertTimeRange:ofAsset:atTime:copySampleData:error:"), timeRange, objc.Ptr(asset), startTime, copySampleData, objc.Ptr(outError)) +// [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 } +// 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 @@ -278,6 +273,14 @@ func (m_ MutableMovie) RemoveTrack(track IMovieTrack) { objc.Call[objc.Void](m_, objc.Sel("removeTrack:"), objc.Ptr(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 foundation.IError) bool { + rv := objc.Call[bool](m_, objc.Sel("insertTimeRange:ofAsset:atTime:copySampleData:error:"), timeRange, objc.Ptr(asset), startTime, copySampleData, objc.Ptr(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 @@ -286,18 +289,11 @@ func (m_ MutableMovie) AddMutableTrackWithMediaTypeCopySettingsFromTrackOptions( 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) -} - -// Retrieves a track in the movie that contains the specified identifier. [Full Topic] +// 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/1389467-trackwithtrackid?language=objc -func (m_ MutableMovie) TrackWithTrackID(trackID objc.IObject) MutableMovieTrack { - rv := objc.Call[MutableMovieTrack](m_, objc.Sel("trackWithTrackID:"), objc.Ptr(trackID)) +// [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 } @@ -308,6 +304,13 @@ 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 @@ -315,6 +318,13 @@ func (m_ MutableMovie) SetDefaultMediaDataStorage(value IMediaDataStorage) { objc.Call[objc.Void](m_, objc.Sel("setDefaultMediaDataStorage:"), objc.Ptr(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 float64) { + 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 @@ -330,13 +340,6 @@ 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 float64) { - 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 @@ -352,13 +355,6 @@ func (m_ MutableMovie) SetInterleavingPeriod(value coremedia.Time) { objc.Call[objc.Void](m_, objc.Sel("setInterleavingPeriod:"), value) } -// An array of metadata the movie stores. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avmutablemovie/1388742-metadata?language=objc -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 @@ -366,6 +362,13 @@ func (m_ MutableMovie) SetPreferredRate(value float64) { 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 +func (m_ MutableMovie) SetMetadata(value []IMetadataItem) { + objc.Call[objc.Void](m_, objc.Sel("setMetadata:"), value) +} + // The time scale of the movie. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/avfoundation/avmutablemovie/1390622-timescale?language=objc @@ -380,10 +383,3 @@ 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 2fe7ed67..854d5199 100644 --- a/macos/avfoundation/mutable_movie_track.gen.go +++ b/macos/avfoundation/mutable_movie_track.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package avfoundation @@ -21,45 +21,45 @@ type _MutableMovieTrackClass struct { // An interface definition for the [MutableMovieTrack] class. type IMutableMovieTrack interface { IMovieTrack - RemoveTrackAssociationToTrackType(movieTrack IMovieTrack, trackAssociationType TrackAssociationType) - AddTrackAssociationToTrackType(movieTrack IMovieTrack, trackAssociationType TrackAssociationType) InsertMediaTimeRangeIntoTimeRange(mediaTimeRange coremedia.TimeRange, trackTimeRange coremedia.TimeRange) bool - RemoveTimeRange(timeRange coremedia.TimeRange) - AppendSampleBufferDecodeTimePresentationTimeError(sampleBuffer coremedia.SampleBufferRef, outDecodeTime *coremedia.Time, outPresentationTime *coremedia.Time, outError foundation.IError) bool InsertTimeRangeOfTrackAtTimeCopySampleDataError(timeRange coremedia.TimeRange, track IAssetTrack, startTime coremedia.Time, copySampleData bool, outError foundation.IError) bool - ReplaceFormatDescriptionWithFormatDescription(formatDescription coremedia.FormatDescriptionRef, newFormatDescription coremedia.FormatDescriptionRef) ScaleTimeRangeToDuration(timeRange coremedia.TimeRange, duration coremedia.Time) + RemoveTrackAssociationToTrackType(movieTrack IMovieTrack, trackAssociationType TrackAssociationType) + AddTrackAssociationToTrackType(movieTrack IMovieTrack, trackAssociationType TrackAssociationType) InsertEmptyTimeRange(timeRange coremedia.TimeRange) + AppendSampleBufferDecodeTimePresentationTimeError(sampleBuffer coremedia.SampleBufferRef, outDecodeTime *coremedia.Time, outPresentationTime *coremedia.Time, outError foundation.IError) bool + ReplaceFormatDescriptionWithFormatDescription(formatDescription coremedia.FormatDescriptionRef, newFormatDescription coremedia.FormatDescriptionRef) + RemoveTimeRange(timeRange coremedia.TimeRange) Layer() int SetLayer(value int) + SetPreferredVolume(value float64) + 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) - ProductionApertureDimensions() coregraphics.Size - SetProductionApertureDimensions(value coregraphics.Size) + Timescale() coremedia.TimeScale + SetTimescale(value coremedia.TimeScale) + SetLanguageCode(value string) + SetPreferredTransform(value coregraphics.AffineTransform) + SetNaturalSize(value coregraphics.Size) + SetEnabled(value bool) + HasProtectedContent() bool IsModified() bool SetModified(value bool) + EncodedPixelsDimensions() coregraphics.Size + SetEncodedPixelsDimensions(value coregraphics.Size) + SetMetadata(value []IMetadataItem) PreferredMediaChunkAlignment() int SetPreferredMediaChunkAlignment(value int) - SetPreferredVolume(value float64) - SetAlternateGroupID(value int) - SetMetadata(value []IMetadataItem) + SetMediaDataStorage(value IMediaDataStorage) 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] @@ -80,10 +80,6 @@ func (mc _MutableMovieTrackClass) Alloc() MutableMovieTrack { return rv } -func MutableMovieTrack_Alloc() MutableMovieTrack { - return MutableMovieTrackClass.Alloc() -} - func (mc _MutableMovieTrackClass) New() MutableMovieTrack { rv := objc.Call[MutableMovieTrack](mc, objc.Sel("new")) rv.Autorelease() @@ -99,6 +95,29 @@ 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 foundation.IError) bool { + rv := objc.Call[bool](m_, objc.Sel("insertTimeRange:ofTrack:atTime:copySampleData:error:"), timeRange, objc.Ptr(track), startTime, copySampleData, objc.Ptr(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 @@ -113,19 +132,11 @@ func (m_ MutableMovieTrack) AddTrackAssociationToTrackType(movieTrack IMovieTrac objc.Call[objc.Void](m_, objc.Sel("addTrackAssociationToTrack:type:"), objc.Ptr(movieTrack), trackAssociationType) } -// 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 -} - -// Removes the specified time range from a track. [Full Topic] +// Adds an empty time range to 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/1389441-insertemptytimerange?language=objc +func (m_ MutableMovieTrack) InsertEmptyTimeRange(timeRange coremedia.TimeRange) { + objc.Call[objc.Void](m_, objc.Sel("insertEmptyTimeRange:"), 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] @@ -136,14 +147,6 @@ 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 foundation.IError) bool { - rv := objc.Call[bool](m_, objc.Sel("insertTimeRange:ofTrack:atTime:copySampleData:error:"), timeRange, objc.Ptr(track), startTime, copySampleData, objc.Ptr(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 @@ -151,18 +154,11 @@ func (m_ MutableMovieTrack) ReplaceFormatDescriptionWithFormatDescription(format objc.Call[objc.Void](m_, objc.Sel("replaceFormatDescription:withFormatDescription:"), formatDescription, newFormatDescription) } -// 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) -} - -// Adds an empty time range to a track. [Full Topic] +// Removes the specified time range from 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/1385962-removetimerange?language=objc +func (m_ MutableMovieTrack) RemoveTimeRange(timeRange coremedia.TimeRange) { + objc.Call[objc.Void](m_, objc.Sel("removeTimeRange:"), timeRange) } // The layer level for the visual media of the track. [Full Topic] @@ -180,26 +176,11 @@ func (m_ MutableMovieTrack) SetLayer(value int) { objc.Call[objc.Void](m_, objc.Sel("setLayer:"), 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] -// -// [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] +// The preferred volume for the audible medata data of 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/1390391-preferredvolume?language=objc +func (m_ MutableMovieTrack) SetPreferredVolume(value float64) { + objc.Call[objc.Void](m_, objc.Sel("setPreferredVolume:"), value) } // The production aperture dimensions of the track. [Full Topic] @@ -217,41 +198,34 @@ func (m_ MutableMovieTrack) SetProductionApertureDimensions(value coregraphics.S objc.Call[objc.Void](m_, objc.Sel("setProductionApertureDimensions:"), value) } -// A Boolean value that indicates whether a track is in a modified state. [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/1390201-modified?language=objc -func (m_ MutableMovieTrack) IsModified() bool { - rv := objc.Call[bool](m_, objc.Sel("isModified")) +// [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 } -// A Boolean value that indicates whether a track is in a modified state. [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/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/1390149-preferredmediachunksize?language=objc +func (m_ MutableMovieTrack) SetPreferredMediaChunkSize(value int) { + objc.Call[objc.Void](m_, objc.Sel("setPreferredMediaChunkSize:"), value) } -// 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")) +// [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] -// -// [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] +// 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/1390391-preferredvolume?language=objc -func (m_ MutableMovieTrack) SetPreferredVolume(value float64) { - objc.Call[objc.Void](m_, objc.Sel("setPreferredVolume:"), value) +// [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) } // A number that identifies the track as a member of a particular alternate group. [Full Topic] @@ -261,48 +235,40 @@ func (m_ MutableMovieTrack) SetAlternateGroupID(value int) { objc.Call[objc.Void](m_, objc.Sel("setAlternateGroupID:"), value) } -// An array of metadata stored by the track. [Full Topic] +// 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/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/1389056-extendedlanguagetag?language=objc +func (m_ MutableMovieTrack) SetExtendedLanguageTag(value string) { + objc.Call[objc.Void](m_, objc.Sel("setExtendedLanguageTag:"), 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) SampleReferenceBaseURL() foundation.URL { - rv := objc.Call[foundation.URL](m_, objc.Sel("sampleReferenceBaseURL")) +// [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 base URL for sample references. [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:"), objc.Ptr(value)) -} - -// A storage container for the media data to be added to a track. [Full Topic] +// The time scale for tracks that contain the moov atom. [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:"), objc.Ptr(value)) +// [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] +// 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/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/1389736-languagecode?language=objc +func (m_ MutableMovieTrack) SetLanguageCode(value string) { + objc.Call[objc.Void](m_, objc.Sel("setLanguageCode:"), 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) } // The dimensions used to display the visual media data for the track. [Full Topic] @@ -312,6 +278,36 @@ func (m_ MutableMovieTrack) SetNaturalSize(value coregraphics.Size) { objc.Call[objc.Void](m_, objc.Sel("setNaturalSize:"), value) } +// 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/1386340-enabled?language=objc +func (m_ MutableMovieTrack) SetEnabled(value bool) { + objc.Call[objc.Void](m_, objc.Sel("setEnabled:"), value) +} + +// A Boolean value that indicates whether a track contains protected content. [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")) + return rv +} + +// A Boolean value that indicates whether a track is in a modified state. [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 +} + +// A Boolean value that indicates whether a track is in a modified state. [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) +} + // The encoded pixels dimensions of the track. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/avfoundation/avmutablemovietrack/1389417-encodedpixelsdimensions?language=objc @@ -327,61 +323,61 @@ func (m_ MutableMovieTrack) SetEncodedPixelsDimensions(value coregraphics.Size) objc.Call[objc.Void](m_, objc.Sel("setEncodedPixelsDimensions:"), 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] +// An array of metadata stored by the track. [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")) - return rv +// [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 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) PreferredMediaChunkAlignment() int { + rv := objc.Call[int](m_, objc.Sel("preferredMediaChunkAlignment")) + return rv } -// A Boolean value that indicates whether a track contains protected content. [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/1389542-hasprotectedcontent?language=objc -func (m_ MutableMovieTrack) HasProtectedContent() bool { - rv := objc.Call[bool](m_, objc.Sel("hasProtectedContent")) - return rv +// [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) } -// A ISO 639-2/T language code that indicates the language associated with the track. [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/1389736-languagecode?language=objc -func (m_ MutableMovieTrack) SetLanguageCode(value string) { - objc.Call[objc.Void](m_, objc.Sel("setLanguageCode:"), 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:"), objc.Ptr(value)) } -// A Boolean value that indicates whether the track is enabled by default for presentation. [Full Topic] +// The base URL for sample references. [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/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] +// 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")) - return rv +// [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:"), objc.Ptr(value)) } -// The time scale for tracks that contain the moov atom. [Full Topic] +// The clean aperture dimension of the track. [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) +// [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 } -// The transform performed on the visual media data of the track for display purposes. [Full Topic] +// The clean aperture dimension of the track. [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) +// [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) } diff --git a/macos/avfoundation/mutable_timed_metadata_group.gen.go b/macos/avfoundation/mutable_timed_metadata_group.gen.go index 265b949d..9c7512b5 100644 --- a/macos/avfoundation/mutable_timed_metadata_group.gen.go +++ b/macos/avfoundation/mutable_timed_metadata_group.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package avfoundation @@ -41,10 +41,6 @@ func (mc _MutableTimedMetadataGroupClass) Alloc() MutableTimedMetadataGroup { return rv } -func MutableTimedMetadataGroup_Alloc() MutableTimedMetadataGroup { - return MutableTimedMetadataGroupClass.Alloc() -} - func (mc _MutableTimedMetadataGroupClass) New() MutableTimedMetadataGroup { rv := objc.Call[MutableTimedMetadataGroup](mc, objc.Sel("new")) rv.Autorelease() @@ -60,30 +56,30 @@ func (m_ MutableTimedMetadataGroup) Init() MutableTimedMetadataGroup { return rv } -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 } -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 } diff --git a/macos/avfoundation/mutable_video_composition.gen.go b/macos/avfoundation/mutable_video_composition.gen.go index ee6337d0..b8ed7d89 100644 --- a/macos/avfoundation/mutable_video_composition.gen.go +++ b/macos/avfoundation/mutable_video_composition.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package avfoundation @@ -21,16 +21,16 @@ type _MutableVideoCompositionClass struct { // An interface definition for the [MutableVideoComposition] class. type IMutableVideoComposition interface { IVideoComposition - SetColorPrimaries(value string) - SetColorYCbCrMatrix(value string) - SetCustomVideoCompositorClass(value objc.IClass) - SetFrameDuration(value coremedia.Time) SetInstructions(value []objc.IObject) - SetSourceSampleDataTrackIDs(value []foundation.INumber) + SetCustomVideoCompositorClass(value objc.IClass) SetAnimationTool(value IVideoCompositionCoreAnimationTool) - SetColorTransferFunction(value string) + SetColorPrimaries(value string) SetSourceTrackIDForFrameTiming(value objc.IObject) + SetSourceSampleDataTrackIDs(value []foundation.INumber) + SetColorTransferFunction(value string) + SetColorYCbCrMatrix(value string) SetRenderSize(value coregraphics.Size) + SetFrameDuration(value coremedia.Time) SetRenderScale(value float64) } @@ -52,10 +52,6 @@ func (mc _MutableVideoCompositionClass) Alloc() MutableVideoComposition { return rv } -func MutableVideoComposition_Alloc() MutableVideoComposition { - return MutableVideoCompositionClass.Alloc() -} - func (mc _MutableVideoCompositionClass) New() MutableVideoComposition { rv := objc.Call[MutableVideoComposition](mc, objc.Sel("new")) rv.Autorelease() @@ -86,18 +82,11 @@ func MutableVideoComposition_VideoComposition() MutableVideoComposition { return MutableVideoCompositionClass.VideoComposition() } -// The color primaries used for video composition. [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) -} - -// The YCbCr matrix used for video composition. [Full Topic] +// The video composition instructions. [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/1385815-instructions?language=objc +func (m_ MutableVideoComposition) SetInstructions(value []objc.IObject) { + objc.Call[objc.Void](m_, objc.Sel("setInstructions:"), value) } // The custom compositor class to use. [Full Topic] @@ -107,18 +96,25 @@ func (m_ MutableVideoComposition) SetCustomVideoCompositorClass(value objc.IClas objc.Call[objc.Void](m_, objc.Sel("setCustomVideoCompositorClass:"), objc.Ptr(value)) } -// A time interval for which the video composition should render composed video frames. [Full Topic] +// A video composition tool to use with Core Animation in offline rendering. [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) +// [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:"), objc.Ptr(value)) } -// 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) +} + +// 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/2873799-sourcetrackidforframetiming?language=objc +func (m_ MutableVideoComposition) SetSourceTrackIDForFrameTiming(value objc.IObject) { + objc.Call[objc.Void](m_, objc.Sel("setSourceTrackIDForFrameTiming:"), objc.Ptr(value)) } // The identifiers of source sample data tracks in the composition that the compositor requires to compose frames. [Full Topic] @@ -128,13 +124,6 @@ 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:"), objc.Ptr(value)) -} - // The transfer function used for video composition. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/avfoundation/avmutablevideocomposition/1643237-colortransferfunction?language=objc @@ -142,11 +131,11 @@ func (m_ MutableVideoComposition) SetColorTransferFunction(value string) { objc.Call[objc.Void](m_, objc.Sel("setColorTransferFunction:"), value) } -// An identifier of the source track from which the video composition derives frame timing. [Full Topic] +// The YCbCr matrix used for video composition. [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:"), objc.Ptr(value)) +// [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 size at which the video composition should render. [Full Topic] @@ -156,6 +145,13 @@ 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 b7516e33..02a570de 100644 --- a/macos/avfoundation/mutable_video_composition_instruction.gen.go +++ b/macos/avfoundation/mutable_video_composition_instruction.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package avfoundation @@ -21,11 +21,11 @@ type _MutableVideoCompositionInstructionClass struct { // An interface definition for the [MutableVideoCompositionInstruction] class. type IMutableVideoCompositionInstruction interface { IVideoCompositionInstruction - SetRequiredSourceSampleDataTrackIDs(value []foundation.INumber) + SetEnablePostProcessing(value bool) 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] @@ -58,10 +58,6 @@ func (mc _MutableVideoCompositionInstructionClass) Alloc() MutableVideoCompositi return rv } -func MutableVideoCompositionInstruction_Alloc() MutableVideoCompositionInstruction { - return MutableVideoCompositionInstructionClass.Alloc() -} - func (mc _MutableVideoCompositionInstructionClass) New() MutableVideoCompositionInstruction { rv := objc.Call[MutableVideoCompositionInstruction](mc, objc.Sel("new")) rv.Autorelease() @@ -77,11 +73,11 @@ func (m_ MutableVideoCompositionInstruction) Init() MutableVideoCompositionInstr return rv } -// The track identifiers of source sample data that the compositor requires to compose frames for the instruction. [Full Topic] +// A Boolean value that indicates whether the instruction requires post processing. [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) +// [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) } // Instructions that specify how to layer and compose video frames from source tracks. [Full Topic] @@ -98,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 02a4f9f3..d5bf6ad0 100644 --- a/macos/avfoundation/mutable_video_composition_layer_instruction.gen.go +++ b/macos/avfoundation/mutable_video_composition_layer_instruction.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package avfoundation @@ -20,12 +20,12 @@ type _MutableVideoCompositionLayerInstructionClass struct { // An interface definition for the [MutableVideoCompositionLayerInstruction] class. type IMutableVideoCompositionLayerInstruction interface { IVideoCompositionLayerInstruction - SetCropRectangleRampFromStartCropRectangleToEndCropRectangleTimeRange(startCropRectangle coregraphics.Rect, endCropRectangle coregraphics.Rect, timeRange coremedia.TimeRange) - SetOpacityRampFromStartOpacityToEndOpacityTimeRange(startOpacity float64, endOpacity float64, timeRange coremedia.TimeRange) - SetCropRectangleAtTime(cropRectangle coregraphics.Rect, time coremedia.Time) SetOpacityAtTime(opacity float64, time coremedia.Time) + SetOpacityRampFromStartOpacityToEndOpacityTimeRange(startOpacity float64, endOpacity float64, timeRange coremedia.TimeRange) 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,13 +54,21 @@ func MutableVideoCompositionLayerInstruction_VideoCompositionLayerInstruction() return MutableVideoCompositionLayerInstructionClass.VideoCompositionLayerInstruction() } -func (mc _MutableVideoCompositionLayerInstructionClass) Alloc() MutableVideoCompositionLayerInstruction { - rv := objc.Call[MutableVideoCompositionLayerInstruction](mc, objc.Sel("alloc")) +func (mc _MutableVideoCompositionLayerInstructionClass) VideoCompositionLayerInstructionWithAssetTrack(track IAssetTrack) MutableVideoCompositionLayerInstruction { + rv := objc.Call[MutableVideoCompositionLayerInstruction](mc, objc.Sel("videoCompositionLayerInstructionWithAssetTrack:"), objc.Ptr(track)) return rv } -func MutableVideoCompositionLayerInstruction_Alloc() MutableVideoCompositionLayerInstruction { - return MutableVideoCompositionLayerInstructionClass.Alloc() +// 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 } func (mc _MutableVideoCompositionLayerInstructionClass) New() MutableVideoCompositionLayerInstruction { @@ -78,11 +86,11 @@ func (m_ MutableVideoCompositionLayerInstruction) Init() MutableVideoComposition return rv } -// Sets a crop rectangle ramp to apply during the specified time range. [Full Topic] +// 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/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) +// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avmutablevideocompositionlayerinstruction/1390758-setopacity?language=objc +func (m_ MutableVideoCompositionLayerInstruction) SetOpacityAtTime(opacity float64, time coremedia.Time) { + objc.Call[objc.Void](m_, objc.Sel("setOpacity:atTime:"), opacity, time) } // Sets an opacity ramp to apply during a specified time range. [Full Topic] @@ -92,20 +100,6 @@ 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 float64, 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 @@ -113,6 +107,13 @@ 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 @@ -120,6 +121,13 @@ 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 189cab43..bd1bb253 100644 --- a/macos/avfoundation/output_settings_assistant.gen.go +++ b/macos/avfoundation/output_settings_assistant.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package avfoundation @@ -19,17 +19,17 @@ type _OutputSettingsAssistantClass struct { // An interface definition for the [OutputSettingsAssistant] class. type IOutputSettingsAssistant interface { objc.IObject - SourceVideoFormat() coremedia.VideoFormatDescriptionRef - SetSourceVideoFormat(value coremedia.VideoFormatDescriptionRef) SourceVideoMinFrameDuration() coremedia.Time SetSourceVideoMinFrameDuration(value coremedia.Time) - SourceVideoAverageFrameDuration() coremedia.Time - SetSourceVideoAverageFrameDuration(value coremedia.Time) + SourceVideoFormat() coremedia.VideoFormatDescriptionRef + SetSourceVideoFormat(value coremedia.VideoFormatDescriptionRef) + SourceAudioFormat() coremedia.AudioFormatDescriptionRef + SetSourceAudioFormat(value coremedia.AudioFormatDescriptionRef) VideoSettings() map[string]objc.Object AudioSettings() map[string]objc.Object OutputFileType() FileType - SourceAudioFormat() coremedia.AudioFormatDescriptionRef - SetSourceAudioFormat(value coremedia.AudioFormatDescriptionRef) + SourceVideoAverageFrameDuration() coremedia.Time + SetSourceVideoAverageFrameDuration(value coremedia.Time) } // An object that builds audio and video output settings dictionaries. [Full Topic] @@ -62,10 +62,6 @@ func (oc _OutputSettingsAssistantClass) Alloc() OutputSettingsAssistant { return rv } -func OutputSettingsAssistant_Alloc() OutputSettingsAssistant { - return OutputSettingsAssistantClass.Alloc() -} - func (oc _OutputSettingsAssistantClass) New() OutputSettingsAssistant { rv := objc.Call[OutputSettingsAssistant](oc, objc.Sel("new")) rv.Autorelease() @@ -96,21 +92,6 @@ func OutputSettingsAssistant_AvailableOutputSettingsPresets() []OutputSettingsPr return OutputSettingsAssistantClass.AvailableOutputSettingsPresets() } -// The format of the source video data. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avoutputsettingsassistant/1387885-sourcevideoformat?language=objc -func (o_ OutputSettingsAssistant) SourceVideoFormat() coremedia.VideoFormatDescriptionRef { - rv := objc.Call[coremedia.VideoFormatDescriptionRef](o_, objc.Sel("sourceVideoFormat")) - return rv -} - -// The format of the source video data. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avoutputsettingsassistant/1387885-sourcevideoformat?language=objc -func (o_ OutputSettingsAssistant) SetSourceVideoFormat(value coremedia.VideoFormatDescriptionRef) { - objc.Call[objc.Void](o_, objc.Sel("setSourceVideoFormat:"), value) -} - // 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 @@ -126,19 +107,34 @@ func (o_ OutputSettingsAssistant) SetSourceVideoMinFrameDuration(value coremedia objc.Call[objc.Void](o_, objc.Sel("setSourceVideoMinFrameDuration:"), value) } -// A time value that describes the average frame duration of the video data. [Full Topic] +// The format of the source 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")) +// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avoutputsettingsassistant/1387885-sourcevideoformat?language=objc +func (o_ OutputSettingsAssistant) SourceVideoFormat() coremedia.VideoFormatDescriptionRef { + rv := objc.Call[coremedia.VideoFormatDescriptionRef](o_, objc.Sel("sourceVideoFormat")) return rv } -// A time value that describes the average frame duration of the video data. [Full Topic] +// The format of the source 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) +// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avoutputsettingsassistant/1387885-sourcevideoformat?language=objc +func (o_ OutputSettingsAssistant) SetSourceVideoFormat(value coremedia.VideoFormatDescriptionRef) { + objc.Call[objc.Void](o_, objc.Sel("setSourceVideoFormat:"), value) +} + +// The format of the source audio 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")) + return rv +} + +// The format of the source audio 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) } // A video settings dictionary. [Full Topic] @@ -165,17 +161,17 @@ func (o_ OutputSettingsAssistant) OutputFileType() FileType { return rv } -// The format of the source audio data. [Full Topic] +// A time value that describes the average 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/1387414-sourcevideoaverageframeduration?language=objc +func (o_ OutputSettingsAssistant) SourceVideoAverageFrameDuration() coremedia.Time { + rv := objc.Call[coremedia.Time](o_, objc.Sel("sourceVideoAverageFrameDuration")) return rv } -// The format of the source audio data. [Full Topic] +// A time value that describes the average 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/1387414-sourcevideoaverageframeduration?language=objc +func (o_ OutputSettingsAssistant) SetSourceVideoAverageFrameDuration(value coremedia.Time) { + objc.Call[objc.Void](o_, objc.Sel("setSourceVideoAverageFrameDuration:"), value) } diff --git a/macos/avfoundation/persistable_content_key_request.gen.go b/macos/avfoundation/persistable_content_key_request.gen.go index c62b0928..af546087 100644 --- a/macos/avfoundation/persistable_content_key_request.gen.go +++ b/macos/avfoundation/persistable_content_key_request.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package avfoundation @@ -40,10 +40,6 @@ func (pc _PersistableContentKeyRequestClass) Alloc() PersistableContentKeyReques return rv } -func PersistableContentKeyRequest_Alloc() PersistableContentKeyRequest { - return PersistableContentKeyRequestClass.Alloc() -} - func (pc _PersistableContentKeyRequestClass) New() PersistableContentKeyRequest { rv := objc.Call[PersistableContentKeyRequest](pc, objc.Sel("new")) rv.Autorelease() diff --git a/macos/avfoundation/playback_coordinator.gen.go b/macos/avfoundation/playback_coordinator.gen.go index 55048e4f..8ba60135 100644 --- a/macos/avfoundation/playback_coordinator.gen.go +++ b/macos/avfoundation/playback_coordinator.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package avfoundation @@ -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 - SetParticipantLimitForWaitingOutSuspensionsWithReason(participantLimit int, reason CoordinatedPlaybackSuspensionReason) BeginSuspensionForReason(suspensionReason CoordinatedPlaybackSuspensionReason) CoordinatedPlaybackSuspension - ParticipantLimitForWaitingOutSuspensionsWithReason(reason CoordinatedPlaybackSuspensionReason) int + SetParticipantLimitForWaitingOutSuspensionsWithReason(participantLimit int, reason CoordinatedPlaybackSuspensionReason) + OtherParticipants() []CoordinatedPlaybackParticipant PauseSnapsToMediaTimeOfOriginator() bool SetPauseSnapsToMediaTimeOfOriginator(value bool) - OtherParticipants() []CoordinatedPlaybackParticipant SuspensionReasons() []CoordinatedPlaybackSuspensionReason SuspensionReasonsThatTriggerWaiting() []CoordinatedPlaybackSuspensionReason SetSuspensionReasonsThatTriggerWaiting(value []CoordinatedPlaybackSuspensionReason) @@ -49,10 +49,6 @@ func (pc _PlaybackCoordinatorClass) Alloc() PlaybackCoordinator { return rv } -func PlaybackCoordinator_Alloc() PlaybackCoordinator { - return PlaybackCoordinatorClass.Alloc() -} - func (pc _PlaybackCoordinatorClass) New() PlaybackCoordinator { rv := objc.Call[PlaybackCoordinator](pc, objc.Sel("new")) rv.Autorelease() @@ -68,6 +64,14 @@ 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 @@ -76,13 +80,6 @@ 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 @@ -91,11 +88,18 @@ func (p_ PlaybackCoordinator) BeginSuspensionForReason(suspensionReason Coordina 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] +// 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/3750287-participantlimitforwaitingoutsus?language=objc -func (p_ PlaybackCoordinator) ParticipantLimitForWaitingOutSuspensionsWithReason(reason CoordinatedPlaybackSuspensionReason) int { - rv := objc.Call[int](p_, objc.Sel("participantLimitForWaitingOutSuspensionsWithReason:"), reason) +// [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] +// +// [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 } @@ -114,14 +118,6 @@ 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 01fc0c0a..bd399c13 100644 --- a/macos/avfoundation/playback_coordinator_playback_control_delegate.gen.go +++ b/macos/avfoundation/playback_coordinator_playback_control_delegate.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package avfoundation @@ -10,6 +10,18 @@ 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 @@ -17,9 +29,63 @@ type PPlaybackCoordinatorPlaybackControlDelegate interface { // A delegate implementation builder for the [PPlaybackCoordinatorPlaybackControlDelegate] protocol. type PlaybackCoordinatorPlaybackControlDelegate struct { - _PlaybackCoordinatorDidIssuePlayCommandCompletionHandler func(coordinator DelegatingPlaybackCoordinator, playCommand DelegatingPlaybackCoordinatorPlayCommand, completionHandler func()) + _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 +} + +// 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 } @@ -38,18 +104,54 @@ func (di *PlaybackCoordinatorPlaybackControlDelegate) PlaybackCoordinatorDidIssu di._PlaybackCoordinatorDidIssuePlayCommandCompletionHandler(coordinator, playCommand, completionHandler) } -// A concrete type wrapper for the [PPlaybackCoordinatorPlaybackControlDelegate] protocol. -type PlaybackCoordinatorPlaybackControlDelegateWrapper struct { +// ensure impl type implements protocol interface +var _ PPlaybackCoordinatorPlaybackControlDelegate = (*PlaybackCoordinatorPlaybackControlDelegateObject)(nil) + +// A concrete type for the [PPlaybackCoordinatorPlaybackControlDelegate] protocol. +type PlaybackCoordinatorPlaybackControlDelegateObject struct { objc.Object } -func (p_ PlaybackCoordinatorPlaybackControlDelegateWrapper) HasPlaybackCoordinatorDidIssuePlayCommandCompletionHandler() bool { +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:"), objc.Ptr(coordinator), objc.Ptr(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:"), objc.Ptr(coordinator), objc.Ptr(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:"), objc.Ptr(coordinator), objc.Ptr(pauseCommand), completionHandler) +} + +func (p_ PlaybackCoordinatorPlaybackControlDelegateObject) HasPlaybackCoordinatorDidIssuePlayCommandCompletionHandler() bool { return p_.RespondsToSelector(objc.Sel("playbackCoordinator:didIssuePlayCommand:completionHandler:")) } // Tells the delegate to match the playback rate to that of the group when the rate is nonzero. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/avfoundation/avplaybackcoordinatorplaybackcontroldelegate/3750296-playbackcoordinator?language=objc -func (p_ PlaybackCoordinatorPlaybackControlDelegateWrapper) PlaybackCoordinatorDidIssuePlayCommandCompletionHandler(coordinator IDelegatingPlaybackCoordinator, playCommand IDelegatingPlaybackCoordinatorPlayCommand, completionHandler func()) { +func (p_ PlaybackCoordinatorPlaybackControlDelegateObject) PlaybackCoordinatorDidIssuePlayCommandCompletionHandler(coordinator DelegatingPlaybackCoordinator, playCommand DelegatingPlaybackCoordinatorPlayCommand, completionHandler func()) { objc.Call[objc.Void](p_, objc.Sel("playbackCoordinator:didIssuePlayCommand:completionHandler:"), objc.Ptr(coordinator), objc.Ptr(playCommand), completionHandler) } diff --git a/macos/avfoundation/player.gen.go b/macos/avfoundation/player.gen.go index 44c8963e..645ca5fe 100644 --- a/macos/avfoundation/player.gen.go +++ b/macos/avfoundation/player.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package avfoundation @@ -21,53 +21,57 @@ type _PlayerClass struct { // An interface definition for the [Player] class. type IPlayer interface { objc.IObject - MediaSelectionCriteriaForMediaCharacteristic(mediaCharacteristic MediaCharacteristic) PlayerMediaSelectionCriteria - SeekToDate(date foundation.IDate) + SeekToTimeToleranceBeforeToleranceAfter(time coremedia.Time, toleranceBefore coremedia.Time, toleranceAfter coremedia.Time) PlayImmediatelyAtRate(rate float64) - RemoveTimeObserver(observer objc.IObject) + Play() + PrerollAtRateCompletionHandler(rate float64, completionHandler func(finished bool)) + SeekToTimeCompletionHandler(time coremedia.Time, completionHandler func(finished bool)) + SeekToDateCompletionHandler(date foundation.IDate, completionHandler func(finished bool)) SetRateTimeAtHostTime(rate float64, itemTime coremedia.Time, hostClockTime coremedia.Time) + Pause() + MediaSelectionCriteriaForMediaCharacteristic(mediaCharacteristic MediaCharacteristic) PlayerMediaSelectionCriteria + SeekToDate(date foundation.IDate) ReplaceCurrentItemWithPlayerItem(item IPlayerItem) CancelPendingPrerolls() 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 - SeekToTimeToleranceBeforeToleranceAfter(time coremedia.Time, toleranceBefore coremedia.Time, toleranceAfter coremedia.Time) SetMediaSelectionCriteriaForMediaCharacteristic(criteria IPlayerMediaSelectionCriteria, mediaCharacteristic MediaCharacteristic) - Pause() - Play() - PrerollAtRateCompletionHandler(rate float64, completionHandler func(finished bool)) + AddPeriodicTimeObserverForIntervalQueueUsingBlock(interval coremedia.Time, queue dispatch.Queue, block func(time coremedia.Time)) objc.Object 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) - AudiovisualBackgroundPlaybackPolicy() PlayerAudiovisualBackgroundPlaybackPolicy - SetAudiovisualBackgroundPlaybackPolicy(value PlayerAudiovisualBackgroundPlaybackPolicy) + AppliesMediaSelectionCriteriaAutomatically() bool + SetAppliesMediaSelectionCriteriaAutomatically(value bool) Volume() float64 SetVolume(value float64) - Error() foundation.Error - OutputObscuredDueToInsufficientExternalProtection() bool + ActionAtItemEnd() PlayerActionAtItemEnd + SetActionAtItemEnd(value PlayerActionAtItemEnd) + CurrentItem() PlayerItem PreferredVideoDecoderGPURegistryID() uint64 SetPreferredVideoDecoderGPURegistryID(value uint64) - Rate() float64 - SetRate(value float64) 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) - AppliesMediaSelectionCriteriaAutomatically() bool - SetAppliesMediaSelectionCriteriaAutomatically(value bool) + AutomaticallyWaitsToMinimizeStalling() bool + SetAutomaticallyWaitsToMinimizeStalling(value bool) PreventsDisplaySleepDuringVideoPlayback() bool SetPreventsDisplaySleepDuringVideoPlayback(value bool) Status() PlayerStatus - AutomaticallyWaitsToMinimizeStalling() bool - SetAutomaticallyWaitsToMinimizeStalling(value bool) + Rate() float64 + SetRate(value float64) + TimeControlStatus() PlayerTimeControlStatus + Error() foundation.Error + ReasonForWaitingToPlay() PlayerWaitingReason + AudioOutputDeviceUniqueID() string + SetAudioOutputDeviceUniqueID(value string) + OutputObscuredDueToInsufficientExternalProtection() bool + PlaybackCoordinator() PlayerPlaybackCoordinator + AudiovisualBackgroundPlaybackPolicy() PlayerAudiovisualBackgroundPlaybackPolicy + SetAudiovisualBackgroundPlaybackPolicy(value PlayerAudiovisualBackgroundPlaybackPolicy) } // An object that provides the interface to control the player’s transport behavior. [Full Topic] @@ -95,18 +99,16 @@ func Player_PlayerWithPlayerItem(item IPlayerItem) Player { return PlayerClass.PlayerWithPlayerItem(item) } -func (p_ Player) InitWithURL(URL foundation.IURL) Player { - rv := objc.Call[Player](p_, objc.Sel("initWithURL:"), objc.Ptr(URL)) +func (pc _PlayerClass) PlayerWithURL(URL foundation.IURL) Player { + rv := objc.Call[Player](pc, objc.Sel("playerWithURL:"), objc.Ptr(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 (p_ Player) InitWithPlayerItem(item IPlayerItem) Player { @@ -123,16 +125,18 @@ func NewPlayerWithPlayerItem(item IPlayerItem) Player { return instance } -func (pc _PlayerClass) PlayerWithURL(URL foundation.IURL) Player { - rv := objc.Call[Player](pc, objc.Sel("playerWithURL:"), objc.Ptr(URL)) +func (p_ Player) InitWithURL(URL foundation.IURL) Player { + rv := objc.Call[Player](p_, objc.Sel("initWithURL:"), objc.Ptr(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 (pc _PlayerClass) Alloc() Player { @@ -140,10 +144,6 @@ func (pc _PlayerClass) Alloc() Player { return rv } -func Player_Alloc() Player { - return PlayerClass.Alloc() -} - func (pc _PlayerClass) New() Player { rv := objc.Call[Player](pc, objc.Sel("new")) rv.Autorelease() @@ -159,19 +159,11 @@ func (p_ Player) Init() Player { return rv } -// 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] +// 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/1386114-seektodate?language=objc -func (p_ Player) SeekToDate(date foundation.IDate) { - objc.Call[objc.Void](p_, objc.Sel("seekToDate:"), objc.Ptr(date)) +// [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) } // Plays the available media data immediately, at the specified rate. [Full Topic] @@ -181,11 +173,32 @@ func (p_ Player) PlayImmediatelyAtRate(rate float64) { objc.Call[objc.Void](p_, objc.Sel("playImmediatelyAtRate:"), rate) } -// Cancels a previously registered periodic or boundary time observer. [Full Topic] +// Begins 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/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 float64, 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] +// +// [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:"), objc.Ptr(date), completionHandler) } // Synchronizes the playback rate and time of the current item with an external source. [Full Topic] @@ -195,6 +208,28 @@ func (p_ Player) SetRateTimeAtHostTime(rate float64, 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:"), objc.Ptr(date)) +} + // Replaces the current item with a new item. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/avfoundation/avplayer/1390806-replacecurrentitemwithplayeritem?language=objc @@ -217,6 +252,13 @@ 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:"), objc.Ptr(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 @@ -225,46 +267,40 @@ func (p_ Player) AddPeriodicTimeObserverForIntervalQueueUsingBlock(interval core return rv } -// 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/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) -} - -// Applies automatic selection criteria for media that has the specified media characteristic. [Full Topic] +// Returns the current time of the current player item. [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:"), objc.Ptr(criteria), mediaCharacteristic) +// [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 } -// Pauses playback of the current item. [Full Topic] +// 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] // -// [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")) +// [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) } -// Begins playback of the current item. [Full Topic] +// Cancels a previously registered periodic or boundary time observer. [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")) +// [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) } -// Begins loading media data to prime the media pipelines for playback. [Full Topic] +// Requests that the player seek to a specified time. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avplayer/1389712-prerollatrate?language=objc -func (p_ Player) PrerollAtRateCompletionHandler(rate float64, completionHandler func(finished bool)) { - objc.Call[objc.Void](p_, objc.Sel("prerollAtRate:completionHandler:"), rate, completionHandler) +// [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) } -// Returns the current time of the current player item. [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/1390404-currenttime?language=objc -func (p_ Player) CurrentTime() coremedia.Time { - rv := objc.Call[coremedia.Time](p_, objc.Sel("currentTime")) +// [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 } @@ -283,19 +319,34 @@ func (p_ Player) SetSourceClock(value coremedia.ClockRef) { objc.Call[objc.Void](p_, objc.Sel("setSourceClock:"), value) } -// 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 current device can present content to an HDR display. [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/3365978-eligibleforhdrplayback?language=objc +func (pc _PlayerClass) EligibleForHDRPlayback() bool { + rv := objc.Call[bool](pc, objc.Sel("eligibleForHDRPlayback")) 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 current device can present content to an HDR display. [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/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 +} + +// 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) SetAppliesMediaSelectionCriteriaAutomatically(value bool) { + objc.Call[objc.Void](p_, objc.Sel("setAppliesMediaSelectionCriteriaAutomatically:"), value) } // The audio playback volume for the player. [Full Topic] @@ -313,19 +364,26 @@ func (p_ Player) SetVolume(value float64) { objc.Call[objc.Void](p_, objc.Sel("setVolume:"), value) } -// An error that caused a failure. [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/1387764-error?language=objc -func (p_ Player) Error() foundation.Error { - rv := objc.Call[foundation.Error](p_, objc.Sel("error")) +// [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 } -// A Boolean value that indicates whether output is being obscured because of insufficient external protection. [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/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/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] +// +// [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 } @@ -344,21 +402,6 @@ 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() float64 { - rv := objc.Call[float64](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 float64) { - 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 @@ -374,155 +417,140 @@ func (p_ Player) SetMuted(value bool) { objc.Call[objc.Void](p_, objc.Sel("setMuted:"), value) } -// The reason the player is currently waiting for playback to begin or resume. [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/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/1387441-allowsexternalplayback?language=objc +func (p_ Player) AllowsExternalPlayback() bool { + rv := objc.Call[bool](p_, objc.Sel("allowsExternalPlayback")) return rv } -// The playback coordinator for the player. [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/3750305-playbackcoordinator?language=objc -func (p_ Player) PlaybackCoordinator() PlayerPlaybackCoordinator { - rv := objc.Call[PlayerPlaybackCoordinator](p_, objc.Sel("playbackCoordinator")) - 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 item for which the player is currently controlling playback. [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/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/1643482-automaticallywaitstominimizestal?language=objc +func (p_ Player) AutomaticallyWaitsToMinimizeStalling() bool { + rv := objc.Call[bool](p_, objc.Sel("automaticallyWaitsToMinimizeStalling")) 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 player should automatically delay playback in order to minimize stalling. [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")) - return rv +// [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) } -// Specifies the unique ID of the Core Audio output device used to play audio. [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/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/2990522-preventsdisplaysleepduringvideop?language=objc +func (p_ Player) PreventsDisplaySleepDuringVideoPlayback() bool { + rv := objc.Call[bool](p_, objc.Sel("preventsDisplaySleepDuringVideoPlayback")) + return rv } -// 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 video playback prevents display and device sleep. [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")) - return rv +// [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 Boolean value that indicates whether the player is currently playing video in external playback mode. [Full Topic] +// A value that indicates the readiness of a player object 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/1388096-status?language=objc +func (p_ Player) Status() PlayerStatus { + rv := objc.Call[PlayerStatus](p_, objc.Sel("status")) return rv } -// The action to perform when the current player item has finished playing. [Full Topic] +// The current playback rate. [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/1388846-rate?language=objc +func (p_ Player) Rate() float64 { + rv := objc.Call[float64](p_, objc.Sel("rate")) return rv } -// The action to perform when the current player item has finished playing. [Full Topic] +// The current playback rate. [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) +// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avplayer/1388846-rate?language=objc +func (p_ Player) SetRate(value float64) { + objc.Call[objc.Void](p_, objc.Sel("setRate:"), value) } -// A Boolean value that indicates whether the player allows switching to external playback mode. [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/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/1643485-timecontrolstatus?language=objc +func (p_ Player) TimeControlStatus() PlayerTimeControlStatus { + rv := objc.Call[PlayerTimeControlStatus](p_, objc.Sel("timeControlStatus")) return rv } -// 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/1387441-allowsexternalplayback?language=objc -func (p_ Player) SetAllowsExternalPlayback(value bool) { - objc.Call[objc.Void](p_, objc.Sel("setAllowsExternalPlayback:"), value) -} - -// A Boolean value that indicates whether the current device can present content to an HDR display. [Full Topic] +// An error that caused a failure. [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")) +// [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 } -// A Boolean value that indicates whether the current device can present content to an HDR display. [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/3365978-eligibleforhdrplayback?language=objc -func Player_EligibleForHDRPlayback() bool { - return PlayerClass.EligibleForHDRPlayback() +// [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 receiver should apply the current selection criteria automatically to player items. [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/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/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 the receiver should apply the current selection criteria automatically to player items. [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/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/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 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/2990522-preventsdisplaysleepduringvideop?language=objc -func (p_ Player) PreventsDisplaySleepDuringVideoPlayback() bool { - rv := objc.Call[bool](p_, objc.Sel("preventsDisplaySleepDuringVideoPlayback")) +// [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 } -// A Boolean value that indicates whether video playback prevents display and device sleep. [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) -} - -// A value that indicates the readiness of a player object for playback. [Full Topic] +// The playback coordinator for the player. [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/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] +// 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/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/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 player should automatically delay playback in order to minimize stalling. [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/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/3787548-audiovisualbackgroundplaybackpol?language=objc +func (p_ Player) SetAudiovisualBackgroundPlaybackPolicy(value PlayerAudiovisualBackgroundPlaybackPolicy) { + objc.Call[objc.Void](p_, objc.Sel("setAudiovisualBackgroundPlaybackPolicy:"), value) } diff --git a/macos/avfoundation/player_interstitial_event.gen.go b/macos/avfoundation/player_interstitial_event.gen.go index e22c1969..112b4227 100644 --- a/macos/avfoundation/player_interstitial_event.gen.go +++ b/macos/avfoundation/player_interstitial_event.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package avfoundation @@ -20,15 +20,15 @@ type _PlayerInterstitialEventClass struct { // An interface definition for the [PlayerInterstitialEvent] class. type IPlayerInterstitialEvent interface { objc.IObject - Restrictions() PlayerInterstitialEventRestrictions - Date() foundation.Date - PrimaryItem() PlayerItem TemplateItems() []PlayerItem - UserDefinedAttributes() foundation.Dictionary Time() coremedia.Time - PlayoutLimit() coremedia.Time - ResumptionOffset() coremedia.Time + Date() foundation.Date + PrimaryItem() PlayerItem Identifier() string + ResumptionOffset() coremedia.Time + PlayoutLimit() coremedia.Time + Restrictions() PlayerInterstitialEventRestrictions + UserDefinedAttributes() foundation.Dictionary } // An object that provides instructions for how a player presents interstitial content. [Full Topic] @@ -49,10 +49,6 @@ func (pc _PlayerInterstitialEventClass) Alloc() PlayerInterstitialEvent { return rv } -func PlayerInterstitialEvent_Alloc() PlayerInterstitialEvent { - return PlayerInterstitialEventClass.Alloc() -} - func (pc _PlayerInterstitialEventClass) New() PlayerInterstitialEvent { rv := objc.Call[PlayerInterstitialEvent](pc, objc.Sel("new")) rv.Autorelease() @@ -68,11 +64,19 @@ func (p_ PlayerInterstitialEvent) Init() PlayerInterstitialEvent { return rv } -// The restrictions the event imposes on the playback of interstitial content. [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/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/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] +// +// [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 } @@ -92,27 +96,19 @@ func (p_ PlayerInterstitialEvent) PrimaryItem() PlayerItem { 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 -} - -// 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 } -// A time within the timeline of the primary content that playback of interstitial content begins. [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/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/3726120-resumptionoffset?language=objc +func (p_ PlayerInterstitialEvent) ResumptionOffset() coremedia.Time { + rv := objc.Call[coremedia.Time](p_, objc.Sel("resumptionOffset")) return rv } @@ -124,18 +120,18 @@ func (p_ PlayerInterstitialEvent) PlayoutLimit() coremedia.Time { return rv } -// A time offset at which playback of primary content resumes after interstitial content finishes. [Full Topic] +// The restrictions the event imposes on the playback of interstitial content. [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/3726119-restrictions?language=objc +func (p_ PlayerInterstitialEvent) Restrictions() PlayerInterstitialEventRestrictions { + rv := objc.Call[PlayerInterstitialEventRestrictions](p_, objc.Sel("restrictions")) return rv } -// An identifier for the event. [Full Topic] +// Attributes of the event that the vendor or app defines. [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/3820994-userdefinedattributes?language=objc +func (p_ PlayerInterstitialEvent) UserDefinedAttributes() foundation.Dictionary { + rv := objc.Call[foundation.Dictionary](p_, objc.Sel("userDefinedAttributes")) return rv } diff --git a/macos/avfoundation/player_interstitial_event_controller.gen.go b/macos/avfoundation/player_interstitial_event_controller.gen.go index 8368c628..3ecf142c 100644 --- a/macos/avfoundation/player_interstitial_event_controller.gen.go +++ b/macos/avfoundation/player_interstitial_event_controller.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package avfoundation @@ -67,10 +67,6 @@ func (pc _PlayerInterstitialEventControllerClass) Alloc() PlayerInterstitialEven return rv } -func PlayerInterstitialEventController_Alloc() PlayerInterstitialEventController { - return PlayerInterstitialEventControllerClass.Alloc() -} - func (pc _PlayerInterstitialEventControllerClass) New() PlayerInterstitialEventController { rv := objc.Call[PlayerInterstitialEventController](pc, objc.Sel("new")) rv.Autorelease() diff --git a/macos/avfoundation/player_interstitial_event_monitor.gen.go b/macos/avfoundation/player_interstitial_event_monitor.gen.go index e6e409b4..05023fcf 100644 --- a/macos/avfoundation/player_interstitial_event_monitor.gen.go +++ b/macos/avfoundation/player_interstitial_event_monitor.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package avfoundation @@ -18,10 +18,10 @@ type _PlayerInterstitialEventMonitorClass struct { // An interface definition for the [PlayerInterstitialEventMonitor] class. type IPlayerInterstitialEventMonitor interface { objc.IObject + InterstitialPlayer() QueuePlayer CurrentEvent() PlayerInterstitialEvent - Events() []PlayerInterstitialEvent PrimaryPlayer() Player - InterstitialPlayer() QueuePlayer + Events() []PlayerInterstitialEvent } // An object that monitors the scheduling and progress of interstitial events. [Full Topic] @@ -68,10 +68,6 @@ func (pc _PlayerInterstitialEventMonitorClass) Alloc() PlayerInterstitialEventMo return rv } -func PlayerInterstitialEventMonitor_Alloc() PlayerInterstitialEventMonitor { - return PlayerInterstitialEventMonitorClass.Alloc() -} - func (pc _PlayerInterstitialEventMonitorClass) New() PlayerInterstitialEventMonitor { rv := objc.Call[PlayerInterstitialEventMonitor](pc, objc.Sel("new")) rv.Autorelease() @@ -87,19 +83,19 @@ func (p_ PlayerInterstitialEventMonitor) Init() PlayerInterstitialEventMonitor { return rv } -// The current interstitial event. [Full Topic] +// An object that plays interstitial content. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avplayerinterstitialeventmonitor/3800563-currentevent?language=objc -func (p_ PlayerInterstitialEventMonitor) CurrentEvent() PlayerInterstitialEvent { - rv := objc.Call[PlayerInterstitialEvent](p_, objc.Sel("currentEvent")) +// [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 schedule of interstitial events. [Full Topic] +// The current interstitial event. [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/3800563-currentevent?language=objc +func (p_ PlayerInterstitialEventMonitor) CurrentEvent() PlayerInterstitialEvent { + rv := objc.Call[PlayerInterstitialEvent](p_, objc.Sel("currentEvent")) return rv } @@ -111,10 +107,10 @@ func (p_ PlayerInterstitialEventMonitor) PrimaryPlayer() Player { return rv } -// An object that plays interstitial content. [Full Topic] +// The schedule of interstitial events. [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")) +// [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 } diff --git a/macos/avfoundation/player_item.gen.go b/macos/avfoundation/player_item.gen.go index a59ace07..9d60b162 100644 --- a/macos/avfoundation/player_item.gen.go +++ b/macos/avfoundation/player_item.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package avfoundation @@ -21,94 +21,97 @@ 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 - AllowedAudioSpatializationFormats() AudioSpatializationFormats - SetAllowedAudioSpatializationFormats(value AudioSpatializationFormats) - CanPlayFastReverse() bool - CanStepForward() bool - Error() foundation.Error - Tracks() []PlayerItemTrack - CanPlaySlowReverse() bool - IsPlaybackBufferEmpty() bool + Outputs() []PlayerItemOutput VideoComposition() VideoComposition SetVideoComposition(value IVideoComposition) - 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) + StartsOnFirstEligibleVariant() bool + SetStartsOnFirstEligibleVariant(value bool) 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() VideoCompositingWrapper - PresentationSize() coregraphics.Size ConfiguredTimeOffsetFromLive() coremedia.Time SetConfiguredTimeOffsetFromLive(value coremedia.Time) SeekingWaitsForVideoCompositionRendering() bool SetSeekingWaitsForVideoCompositionRendering(value bool) - LoadedTimeRanges() []foundation.Value - AppliesPerFrameHDRDisplayMetadata() bool - SetAppliesPerFrameHDRDisplayMetadata(value bool) - CurrentMediaSelection() MediaSelection - AutomaticallyHandlesInterstitialEvents() bool - SetAutomaticallyHandlesInterstitialEvents(value bool) - AutomaticallyPreservesTimeOffsetFromLive() bool - SetAutomaticallyPreservesTimeOffsetFromLive(value bool) - IsApplicationAuthorizedForPlayback() bool + IsAuthorizationRequiredForPlayback() bool + CanStepBackward() bool + IsPlaybackLikelyToKeepUp() bool PreferredMaximumResolutionForExpensiveNetworks() coregraphics.Size SetPreferredMaximumResolutionForExpensiveNetworks(value coregraphics.Size) - IsPlaybackBufferFull() bool + 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 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 - PreferredMaximumResolution() coregraphics.Size - SetPreferredMaximumResolution(value coregraphics.Size) + 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 VariantPreferences() VariantPreferences SetVariantPreferences(value VariantPreferences) + ReversePlaybackEndTime() coremedia.Time + SetReversePlaybackEndTime(value coremedia.Time) CanPlaySlowForward() bool - 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 + LoadedTimeRanges() []foundation.Value + Error() foundation.Error } // An object that models the timing and presentation state of an asset during playback. [Full Topic] @@ -150,16 +153,16 @@ func NewPlayerItemWithURL(URL foundation.IURL) PlayerItem { return instance } -func (pc _PlayerItemClass) PlayerItemWithURL(URL foundation.IURL) PlayerItem { - rv := objc.Call[PlayerItem](pc, objc.Sel("playerItemWithURL:"), objc.Ptr(URL)) +func (pc _PlayerItemClass) PlayerItemWithAssetAutomaticallyLoadedAssetKeys(asset IAsset, automaticallyLoadedAssetKeys []string) PlayerItem { + rv := objc.Call[PlayerItem](pc, objc.Sel("playerItemWithAsset:automaticallyLoadedAssetKeys:"), objc.Ptr(asset), automaticallyLoadedAssetKeys) return rv } -// Returns a new player item with a specified URL. [Full Topic] +// 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/1588089-playeritemwithurl?language=objc -func PlayerItem_PlayerItemWithURL(URL foundation.IURL) PlayerItem { - return PlayerItemClass.PlayerItemWithURL(URL) +// [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 { @@ -176,13 +179,35 @@ func NewPlayerItemWithAsset(asset IAsset) PlayerItem { return instance } -func (pc _PlayerItemClass) Alloc() PlayerItem { - rv := objc.Call[PlayerItem](pc, objc.Sel("alloc")) +func (pc _PlayerItemClass) PlayerItemWithURL(URL foundation.IURL) PlayerItem { + rv := objc.Call[PlayerItem](pc, objc.Sel("playerItemWithURL:"), objc.Ptr(URL)) + return rv +} + +// Returns a new player item with a specified URL. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avplayeritem/1588089-playeritemwithurl?language=objc +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:"), objc.Ptr(asset), automaticallyLoadedAssetKeys) return rv } -func PlayerItem_Alloc() PlayerItem { - return PlayerItemClass.Alloc() +// 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/1387529-initwithasset?language=objc +func NewPlayerItemWithAssetAutomaticallyLoadedAssetKeys(asset IAsset, automaticallyLoadedAssetKeys []string) PlayerItem { + instance := PlayerItemClass.Alloc().InitWithAssetAutomaticallyLoadedAssetKeys(asset, automaticallyLoadedAssetKeys) + instance.Autorelease() + return instance +} + +func (pc _PlayerItemClass) Alloc() PlayerItem { + rv := objc.Call[PlayerItem](pc, objc.Sel("alloc")) + return rv } func (pc _PlayerItemClass) New() PlayerItem { @@ -200,42 +225,39 @@ func (p_ PlayerItem) Init() PlayerItem { return rv } -// Selects the media option in the specified media selection group that best matches the receiver’s automatic selection criteria. [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/1388268-selectmediaoptionautomaticallyin?language=objc -func (p_ PlayerItem) SelectMediaOptionAutomaticallyInMediaSelectionGroup(mediaSelectionGroup IMediaSelectionGroup) { - objc.Call[objc.Void](p_, objc.Sel("selectMediaOptionAutomaticallyInMediaSelectionGroup:"), objc.Ptr(mediaSelectionGroup)) +// [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 error log. [Full Topic] +// Adds the specified player item output object to the receiver. [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/1389782-addoutput?language=objc +func (p_ PlayerItem) AddOutput(output IPlayerItemOutput) { + objc.Call[objc.Void](p_, objc.Sel("addOutput:"), objc.Ptr(output)) } -// Cancels any pending seek requests and invokes the corresponding completion handlers if present. [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/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/1388268-selectmediaoptionautomaticallyin?language=objc +func (p_ PlayerItem) SelectMediaOptionAutomaticallyInMediaSelectionGroup(mediaSelectionGroup IMediaSelectionGroup) { + objc.Call[objc.Void](p_, objc.Sel("selectMediaOptionAutomaticallyInMediaSelectionGroup:"), objc.Ptr(mediaSelectionGroup)) } -// Creates a copy of the 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/3861797-copy?language=objc -func (p_ PlayerItem) Copy() objc.Object { - rv := objc.Call[objc.Object](p_, objc.Sel("copy")) - rv.Autorelease() - 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) } -// Removes the specified media data collector from the player item’s collection of media collectors. [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/1624163-removemediadatacollector?language=objc -func (p_ PlayerItem) RemoveMediaDataCollector(collector IPlayerItemMediaDataCollector) { - objc.Call[objc.Void](p_, objc.Sel("removeMediaDataCollector:"), objc.Ptr(collector)) +// [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:"), objc.Ptr(collector)) } // Returns the current time of the item as a date. [Full Topic] @@ -246,46 +268,18 @@ func (p_ PlayerItem) CurrentDate() foundation.Date { return rv } -// Adds the specified player item output object to the receiver. [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:"), objc.Ptr(output)) -} - -// 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/1624164-addmediadatacollector?language=objc -func (p_ PlayerItem) AddMediaDataCollector(collector IPlayerItemMediaDataCollector) { - objc.Call[objc.Void](p_, objc.Sel("addMediaDataCollector:"), objc.Ptr(collector)) -} - -// 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")) -} - -// 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/1387968-stepbycount?language=objc -func (p_ PlayerItem) StepByCount(stepCount int) { - objc.Call[objc.Void](p_, objc.Sel("stepByCount:"), stepCount) -} - -// Removes the specified player item output object from the receiver. [Full Topic] +// Sets the current playback time to the specified time. [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:"), objc.Ptr(output)) +// [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) } -// Presents the user the opportunity to authorize the content for playback. [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/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/1624163-removemediadatacollector?language=objc +func (p_ PlayerItem) RemoveMediaDataCollector(collector IPlayerItemMediaDataCollector) { + objc.Call[objc.Void](p_, objc.Sel("removeMediaDataCollector:"), objc.Ptr(collector)) } // Selects a media option in a given media selection group and deselects all other options in that group. [Full Topic] @@ -295,11 +289,18 @@ func (p_ PlayerItem) SelectMediaOptionInMediaSelectionGroup(mediaSelectionOption objc.Call[objc.Void](p_, objc.Sel("selectMediaOption:inMediaSelectionGroup:"), objc.Ptr(mediaSelectionOption), objc.Ptr(mediaSelectionGroup)) } -// Creates a copy of the object with the specified zone. [Full Topic] +// 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] // -// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avplayeritem/3861798-copywithzone?language=objc -func (p_ PlayerItem) CopyWithZone(zone unsafe.Pointer) objc.Object { - rv := objc.Call[objc.Object](p_, objc.Sel("copyWithZone:"), zone) +// [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) +} + +// Returns an object that represents a snapshot of the error log. [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 } @@ -311,74 +312,65 @@ func (p_ PlayerItem) AccessLog() PlayerItemAccessLog { return rv } -// Returns the current time of the item. [Full Topic] +// Sets the current playback time to the time specified by the date object. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avplayeritem/1387230-currenttime?language=objc -func (p_ PlayerItem) CurrentTime() coremedia.Time { - rv := objc.Call[coremedia.Time](p_, objc.Sel("currentTime")) +// [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:"), objc.Ptr(date), completionHandler) return rv } -// The source audio channel layouts the player item supports for spatialization. [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/3601108-allowedaudiospatializationformat?language=objc -func (p_ PlayerItem) AllowedAudioSpatializationFormats() AudioSpatializationFormats { - rv := objc.Call[AudioSpatializationFormats](p_, objc.Sel("allowedAudioSpatializationFormats")) - return rv -} - -// The source audio channel layouts the player item supports for spatialization. [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/1388316-cancelpendingseeks?language=objc +func (p_ PlayerItem) CancelPendingSeeks() { + objc.Call[objc.Void](p_, objc.Sel("cancelPendingSeeks")) } -// A Boolean value that indicates whether the item can be quickly reversed. [Full Topic] +// Creates a copy of the object with the specified zone. [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/3861798-copywithzone?language=objc +func (p_ PlayerItem) CopyWithZone(zone unsafe.Pointer) objc.Object { + rv := objc.Call[objc.Object](p_, objc.Sel("copyWithZone:"), zone) return rv } -// A Boolean value that indicates whether the item supports stepping forward. [Full Topic] +// Removes the specified player item output object from the receiver. [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")) - 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:"), objc.Ptr(output)) } -// The error that caused the player item to fail. [Full Topic] +// Creates a copy of the object. [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/3861797-copy?language=objc +func (p_ PlayerItem) Copy() objc.Object { + rv := objc.Call[objc.Object](p_, objc.Sel("copy")) + rv.Autorelease() return rv } -// An array of player item track objects. [Full Topic] +// Cancels the currently outstanding content authorization request. [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/1387726-cancelcontentauthorizationreques?language=objc +func (p_ PlayerItem) CancelContentAuthorizationRequest() { + objc.Call[objc.Void](p_, objc.Sel("cancelContentAuthorizationRequest")) } -// A Boolean value that indicates whether the item can play slowly backward. [Full Topic] +// Returns the current time of the item. [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/1387230-currenttime?language=objc +func (p_ PlayerItem) CurrentTime() coremedia.Time { + rv := objc.Call[coremedia.Time](p_, objc.Sel("currentTime")) return rv } -// A Boolean value that indicates whether playback has consumed all buffered media and that playback will stall or end. [Full Topic] +// An array of outputs associated with the player item. [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/1389090-outputs?language=objc +func (p_ PlayerItem) Outputs() []PlayerItemOutput { + rv := objc.Call[[]PlayerItemOutput](p_, objc.Sel("outputs")) return rv } @@ -397,6 +389,66 @@ func (p_ PlayerItem) SetVideoComposition(value IVideoComposition) { objc.Call[objc.Void](p_, objc.Sel("setVideoComposition:"), objc.Ptr(value)) } +// 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/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 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/3579514-startsonfirsteligiblevariant?language=objc +func (p_ PlayerItem) SetStartsOnFirstEligibleVariant(value bool) { + objc.Call[objc.Void](p_, objc.Sel("setStartsOnFirstEligibleVariant:"), 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 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) SetVideoApertureMode(value VideoApertureMode) { + objc.Call[objc.Void](p_, objc.Sel("setVideoApertureMode:"), value) +} + +// 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/3227882-configuredtimeoffsetfromlive?language=objc +func (p_ PlayerItem) ConfiguredTimeOffsetFromLive() coremedia.Time { + rv := objc.Call[coremedia.Time](p_, objc.Sel("configuredTimeOffsetFromLive")) + 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] +// +// [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 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) SetSeekingWaitsForVideoCompositionRendering(value bool) { + objc.Call[objc.Void](p_, objc.Sel("setSeekingWaitsForVideoCompositionRendering:"), value) +} + // A Boolean value that indicates whether authorization is required to play the content. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/avfoundation/avplayeritem/1386106-authorizationrequiredforplayback?language=objc @@ -405,11 +457,11 @@ func (p_ PlayerItem) IsAuthorizationRequiredForPlayback() bool { return rv } -// A Boolean value that indicates whether the item can play in reverse. [Full Topic] +// A Boolean value that indicates whether the item supports stepping backward. [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/1386796-canstepbackward?language=objc +func (p_ PlayerItem) CanStepBackward() bool { + rv := objc.Call[bool](p_, objc.Sel("canStepBackward")) return rv } @@ -421,34 +473,43 @@ func (p_ PlayerItem) IsPlaybackLikelyToKeepUp() bool { return rv } -// The processing algorithm used to manage audio pitch for scaled audio edits. [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/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/3750308-preferredmaximumresolutionforexp?language=objc +func (p_ PlayerItem) PreferredMaximumResolutionForExpensiveNetworks() coregraphics.Size { + rv := objc.Call[coregraphics.Size](p_, objc.Sel("preferredMaximumResolutionForExpensiveNetworks")) return rv } -// The processing algorithm used to manage audio pitch for scaled audio edits. [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/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/3750308-preferredmaximumresolutionforexp?language=objc +func (p_ PlayerItem) SetPreferredMaximumResolutionForExpensiveNetworks(value coregraphics.Size) { + objc.Call[objc.Void](p_, objc.Sel("setPreferredMaximumResolutionForExpensiveNetworks:"), value) } -// The time at which forward playback ends. [Full Topic] +// An array of player item track objects. [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/1386361-tracks?language=objc +func (p_ PlayerItem) Tracks() []PlayerItemTrack { + rv := objc.Call[[]PlayerItemTrack](p_, objc.Sel("tracks")) return rv } -// The time at which forward playback ends. [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/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/1390598-canplayslowreverse?language=objc +func (p_ PlayerItem) CanPlaySlowReverse() bool { + rv := objc.Call[bool](p_, objc.Sel("canPlaySlowReverse")) + return rv +} + +// The collection of associated media data collectors. [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 } // An array of text style rules that specify the formatting and presentation of Web Video Text Tracks (WebVTT) subtitles. [Full Topic] @@ -466,99 +527,77 @@ func (p_ PlayerItem) SetTextStyleRules(value []ITextStyleRule) { objc.Call[objc.Void](p_, objc.Sel("setTextStyleRules:"), value) } -// A limit of network bandwidth consumption by the item when connecting over expensive networks. [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/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/1643630-preferredforwardbufferduration?language=objc +func (p_ PlayerItem) PreferredForwardBufferDuration() foundation.TimeInterval { + rv := objc.Call[foundation.TimeInterval](p_, objc.Sel("preferredForwardBufferDuration")) return rv } -// A limit of network bandwidth consumption by the item when connecting over expensive networks. [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/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/1643630-preferredforwardbufferduration?language=objc +func (p_ PlayerItem) SetPreferredForwardBufferDuration(value foundation.TimeInterval) { + objc.Call[objc.Void](p_, objc.Sel("setPreferredForwardBufferDuration:"), value) } -// The desired limit, in bits per second, of network bandwidth consumption for this item. [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/1388541-preferredpeakbitrate?language=objc -func (p_ PlayerItem) PreferredPeakBitRate() float64 { - rv := objc.Call[float64](p_, objc.Sel("preferredPeakBitRate")) +// [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 } -// 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 video aperture mode to apply during playback. [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/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/2867324-preferredmaximumresolution?language=objc +func (p_ PlayerItem) PreferredMaximumResolution() coregraphics.Size { + rv := objc.Call[coregraphics.Size](p_, objc.Sel("preferredMaximumResolution")) return rv } -// The video aperture mode to apply during playback. [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/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/2867324-preferredmaximumresolution?language=objc +func (p_ PlayerItem) SetPreferredMaximumResolution(value coregraphics.Size) { + objc.Call[objc.Void](p_, objc.Sel("setPreferredMaximumResolution:"), value) } -// The template player item that initializes this instance. [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/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/1389929-applicationauthorizedforplayback?language=objc +func (p_ PlayerItem) IsApplicationAuthorizedForPlayback() bool { + rv := objc.Call[bool](p_, objc.Sel("isApplicationAuthorizedForPlayback")) return rv } -// The time at which reverse playback ends. [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/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/1388458-contentauthorizedforplayback?language=objc +func (p_ PlayerItem) IsContentAuthorizedForPlayback() bool { + rv := objc.Call[bool](p_, objc.Sel("isContentAuthorizedForPlayback")) return rv } -// The time at which reverse playback ends. [Full Topic] +// The duration of the item. [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/1389386-duration?language=objc +func (p_ PlayerItem) Duration() coremedia.Time { + rv := objc.Call[coremedia.Time](p_, objc.Sel("duration")) + return rv } -// An array of outputs associated with the player item. [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/1389090-outputs?language=objc -func (p_ PlayerItem) Outputs() []PlayerItemOutput { - rv := objc.Call[[]PlayerItemOutput](p_, objc.Sel("outputs")) +// [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 } -// The timebase information for the item. [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")) - 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 -} - -// A Boolean value that indicates whether the player item can use network resources to keep the playback state up to date while paused. [Full Topic] +// A Boolean value that indicates whether the player item can use network resources to keep the playback state up to date while paused. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/avfoundation/avplayeritem/1388752-canusenetworkresourcesforlivestr?language=objc func (p_ PlayerItem) CanUseNetworkResourcesForLiveStreamingWhilePaused() bool { @@ -573,150 +612,142 @@ func (p_ PlayerItem) SetCanUseNetworkResourcesForLiveStreamingWhilePaused(value objc.Call[objc.Void](p_, objc.Sel("setCanUseNetworkResourcesForLiveStreamingWhilePaused:"), value) } -// A Boolean value that indicates whether the item supports stepping backward. [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")) - return rv -} - -// The status of the most recent content authorization request. [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/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/3656127-appliesperframehdrdisplaymetadat?language=objc +func (p_ PlayerItem) AppliesPerFrameHDRDisplayMetadata() bool { + rv := objc.Call[bool](p_, objc.Sel("appliesPerFrameHDRDisplayMetadata")) return rv } -// The custom video compositor. [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/1390669-customvideocompositor?language=objc -func (p_ PlayerItem) CustomVideoCompositor() VideoCompositingWrapper { - rv := objc.Call[VideoCompositingWrapper](p_, objc.Sel("customVideoCompositor")) - 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) } -// The size at which the visual portion of the item is presented by the player. [Full Topic] +// The timebase information for the item. [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/1387605-timebase?language=objc +func (p_ PlayerItem) Timebase() coremedia.TimebaseRef { + rv := objc.Call[coremedia.TimebaseRef](p_, objc.Sel("timebase")) 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] +// The audio mix parameters to be applied during playback. [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/1388037-audiomix?language=objc +func (p_ PlayerItem) AudioMix() AudioMix { + rv := objc.Call[AudioMix](p_, objc.Sel("audioMix")) 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] +// The audio mix parameters to be applied during playback. [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/1388037-audiomix?language=objc +func (p_ PlayerItem) SetAudioMix(value IAudioMix) { + objc.Call[objc.Void](p_, objc.Sel("setAudioMix:"), objc.Ptr(value)) } -// A Boolean value that indicates whether the item’s timing follows the displayed video frame when seeking with a video composition. [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/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/3746589-preferredpeakbitrateforexpensive?language=objc +func (p_ PlayerItem) PreferredPeakBitRateForExpensiveNetworks() float64 { + rv := objc.Call[float64](p_, objc.Sel("preferredPeakBitRateForExpensiveNetworks")) 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] +// 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/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/3746589-preferredpeakbitrateforexpensive?language=objc +func (p_ PlayerItem) SetPreferredPeakBitRateForExpensiveNetworks(value float64) { + objc.Call[objc.Void](p_, objc.Sel("setPreferredPeakBitRateForExpensiveNetworks:"), value) } -// An array of time ranges indicating media data that is readily available. [Full Topic] +// The source audio channel layouts the player item supports for spatialization. [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/3601108-allowedaudiospatializationformat?language=objc +func (p_ PlayerItem) AllowedAudioSpatializationFormats() AudioSpatializationFormats { + rv := objc.Call[AudioSpatializationFormats](p_, objc.Sel("allowedAudioSpatializationFormats")) return rv } -// A Boolean value that indicates whether the player item applies per-frame HDR display metadata 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/3656127-appliesperframehdrdisplaymetadat?language=objc -func (p_ PlayerItem) AppliesPerFrameHDRDisplayMetadata() bool { - rv := objc.Call[bool](p_, objc.Sel("appliesPerFrameHDRDisplayMetadata")) - return rv +// [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 the player item applies per-frame HDR display metadata during playback. [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/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/3229855-automaticallypreservestimeoffset?language=objc +func (p_ PlayerItem) AutomaticallyPreservesTimeOffsetFromLive() bool { + rv := objc.Call[bool](p_, objc.Sel("automaticallyPreservesTimeOffsetFromLive")) + return rv } -// The current media selections for each of the receiver's media selection groups. [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/1386519-currentmediaselection?language=objc -func (p_ PlayerItem) CurrentMediaSelection() MediaSelection { - rv := objc.Call[MediaSelection](p_, objc.Sel("currentMediaSelection")) - 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) } -// A Boolean value that indicates whether the player item automatically plays interstitial events according to server-side directives. [Full Topic] +// The time at which forward playback ends. [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/1385622-forwardplaybackendtime?language=objc +func (p_ PlayerItem) ForwardPlaybackEndTime() coremedia.Time { + rv := objc.Call[coremedia.Time](p_, objc.Sel("forwardPlaybackEndTime")) return rv } -// A Boolean value that indicates whether the player item automatically plays interstitial events according to server-side directives. [Full Topic] +// The time at which forward playback ends. [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/1385622-forwardplaybackendtime?language=objc +func (p_ PlayerItem) SetForwardPlaybackEndTime(value coremedia.Time) { + objc.Call[objc.Void](p_, objc.Sel("setForwardPlaybackEndTime:"), value) } -// A Boolean value that indicates whether the player preserves its time offset from the live time after a buffering operation. [Full Topic] +// The custom video compositor. [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")) +// [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 } -// A Boolean value that indicates whether the player preserves its time offset from the live time after a buffering operation. [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/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/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 application can be used to play the content. [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/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/1388962-presentationsize?language=objc +func (p_ PlayerItem) PresentationSize() coregraphics.Size { + rv := objc.Call[coregraphics.Size](p_, objc.Sel("presentationSize")) return rv } -// An upper limit on the resolution of video to download when connecting over expensive networks. [Full Topic] +// The status of the most recent content authorization request. [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/1389746-contentauthorizationrequeststatu?language=objc +func (p_ PlayerItem) ContentAuthorizationRequestStatus() ContentAuthorizationStatus { + rv := objc.Call[ContentAuthorizationStatus](p_, objc.Sel("contentAuthorizationRequestStatus")) return rv } -// An upper limit on the resolution of video to download when connecting over expensive networks. [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/3750308-preferredmaximumresolutionforexp?language=objc -func (p_ PlayerItem) SetPreferredMaximumResolutionForExpensiveNetworks(value coregraphics.Size) { - objc.Call[objc.Void](p_, objc.Sel("setPreferredMaximumResolutionForExpensiveNetworks:"), value) +// [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 } // A Boolean value that indicates whether the internal media buffer is full and that further I/O is suspended. [Full Topic] @@ -727,149 +758,165 @@ func (p_ PlayerItem) IsPlaybackBufferFull() bool { return rv } -// A Boolean value that indicates whether the content has been authorized by the user. [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/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/1388541-preferredpeakbitrate?language=objc +func (p_ PlayerItem) PreferredPeakBitRate() float64 { + rv := objc.Call[float64](p_, objc.Sel("preferredPeakBitRate")) return rv } -// The audio mix parameters to be applied during playback. [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/1388037-audiomix?language=objc -func (p_ PlayerItem) AudioMix() AudioMix { - rv := objc.Call[AudioMix](p_, objc.Sel("audioMix")) - return rv +// [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 audio mix parameters to be applied during playback. [Full Topic] +// The template player item that initializes this instance. [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:"), objc.Ptr(value)) +// [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 } -// An array of time ranges within which it is possible to seek. [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/1386155-seekabletimeranges?language=objc -func (p_ PlayerItem) SeekableTimeRanges() []foundation.Value { - rv := objc.Call[[]foundation.Value](p_, objc.Sel("seekableTimeRanges")) +// [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 } -// The desired maximum resolution of a video that is to be downloaded. [Full Topic] +// The status of the player 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/1389493-status?language=objc +func (p_ PlayerItem) Status() PlayerItemStatus { + rv := objc.Call[PlayerItemStatus](p_, objc.Sel("status")) return rv } -// The desired maximum resolution of a video that is to be downloaded. [Full Topic] +// A Boolean value that indicates whether the item supports stepping forward. [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/1389656-canstepforward?language=objc +func (p_ PlayerItem) CanStepForward() bool { + rv := objc.Call[bool](p_, objc.Sel("canStepForward")) + return rv } -// The preferences the player item uses when selecting variant playlists. [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/3726149-variantpreferences?language=objc -func (p_ PlayerItem) VariantPreferences() VariantPreferences { - rv := objc.Call[VariantPreferences](p_, objc.Sel("variantPreferences")) +// [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 preferences the player item uses when selecting variant playlists. [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/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/3726146-automaticallyhandlesinterstitial?language=objc +func (p_ PlayerItem) SetAutomaticallyHandlesInterstitialEvents(value bool) { + objc.Call[objc.Void](p_, objc.Sel("setAutomaticallyHandlesInterstitialEvents:"), value) } -// A Boolean value that indicates whether the item can play slower than normal. [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/1388078-canplayslowforward?language=objc -func (p_ PlayerItem) CanPlaySlowForward() bool { - rv := objc.Call[bool](p_, objc.Sel("canPlaySlowForward")) +// [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 } -// The array of asset keys to be automatically loaded before the player item is ready to play. [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/1388633-automaticallyloadedassetkeys?language=objc -func (p_ PlayerItem) AutomaticallyLoadedAssetKeys() []string { - rv := objc.Call[[]string](p_, objc.Sel("automaticallyLoadedAssetKeys")) - 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) } -// The duration of the item. [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/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/1386519-currentmediaselection?language=objc +func (p_ PlayerItem) CurrentMediaSelection() MediaSelection { + rv := objc.Call[MediaSelection](p_, objc.Sel("currentMediaSelection")) return rv } -// The duration the player should buffer media from the network ahead of the playhead to guard against playback disruption. [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/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/1385591-canplayreverse?language=objc +func (p_ PlayerItem) CanPlayReverse() bool { + rv := objc.Call[bool](p_, objc.Sel("canPlayReverse")) return rv } -// The duration the player should buffer media from the network ahead of the playhead to guard against playback disruption. [Full Topic] +// A recommended time offset from the live time based on observed network conditions. [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/3227883-recommendedtimeoffsetfromlive?language=objc +func (p_ PlayerItem) RecommendedTimeOffsetFromLive() coremedia.Time { + rv := objc.Call[coremedia.Time](p_, objc.Sel("recommendedTimeOffsetFromLive")) + return rv } -// The status of the player item. [Full Topic] +// The asset provided during initialization. [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")) +// [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 collection of associated media data collectors. [Full Topic] +// The preferences the player item uses when selecting variant playlists. [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")) +// [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 } -// A Boolean value that indicates whether playback starts with the first eligible variant that appears in the stream’s main playlist. [Full Topic] +// The preferences the player item uses when selecting variant playlists. [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/3726149-variantpreferences?language=objc +func (p_ PlayerItem) SetVariantPreferences(value VariantPreferences) { + objc.Call[objc.Void](p_, objc.Sel("setVariantPreferences:"), value) +} + +// The time at which reverse playback ends. [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")) 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] +// The time at which reverse playback ends. [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/1388438-reverseplaybackendtime?language=objc +func (p_ PlayerItem) SetReversePlaybackEndTime(value coremedia.Time) { + objc.Call[objc.Void](p_, objc.Sel("setReversePlaybackEndTime:"), value) } -// The asset provided during initialization. [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/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/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 be fast forwarded. [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/1389096-canplayfastforward?language=objc -func (p_ PlayerItem) CanPlayFastForward() bool { - rv := objc.Call[bool](p_, objc.Sel("canPlayFastForward")) +// [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 error that caused the player item to fail. [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")) return rv } diff --git a/macos/avfoundation/player_item_access_log.gen.go b/macos/avfoundation/player_item_access_log.gen.go index 6ceca01c..55576c65 100644 --- a/macos/avfoundation/player_item_access_log.gen.go +++ b/macos/avfoundation/player_item_access_log.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package avfoundation @@ -20,8 +20,8 @@ type _PlayerItemAccessLogClass struct { type IPlayerItemAccessLog interface { objc.IObject ExtendedLogData() []byte - Events() []PlayerItemAccessLogEvent ExtendedLogDataStringEncoding() foundation.StringEncoding + Events() []PlayerItemAccessLogEvent } // An object used to retrieve the access log associated with a player item. [Full Topic] @@ -42,10 +42,6 @@ func (pc _PlayerItemAccessLogClass) Alloc() PlayerItemAccessLog { return rv } -func PlayerItemAccessLog_Alloc() PlayerItemAccessLog { - return PlayerItemAccessLogClass.Alloc() -} - func (pc _PlayerItemAccessLogClass) New() PlayerItemAccessLog { rv := objc.Call[PlayerItemAccessLog](pc, objc.Sel("new")) rv.Autorelease() @@ -69,14 +65,6 @@ func (p_ PlayerItemAccessLog) ExtendedLogData() []byte { 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 -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 @@ -84,3 +72,11 @@ func (p_ PlayerItemAccessLog) ExtendedLogDataStringEncoding() foundation.StringE 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 +func (p_ PlayerItemAccessLog) Events() []PlayerItemAccessLogEvent { + rv := objc.Call[[]PlayerItemAccessLogEvent](p_, objc.Sel("events")) + 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 050652ab..017fcc64 100644 --- a/macos/avfoundation/player_item_access_log_event.gen.go +++ b/macos/avfoundation/player_item_access_log_event.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package avfoundation @@ -19,30 +19,30 @@ type _PlayerItemAccessLogEventClass struct { // An interface definition for the [PlayerItemAccessLogEvent] class. type IPlayerItemAccessLogEvent interface { objc.IObject - AverageAudioBitrate() float64 - NumberOfMediaRequests() int - TransferDuration() foundation.TimeInterval - URI() string - NumberOfDroppedVideoFrames() int + SegmentsDownloadedDuration() foundation.TimeInterval NumberOfServerAddressChanges() int - ObservedBitrate() float64 - ServerAddress() string + DurationWatched() foundation.TimeInterval + SwitchBitrate() float64 + IndicatedBitrate() float64 + StartupTime() foundation.TimeInterval AverageVideoBitrate() float64 - NumberOfBytesTransferred() int64 PlaybackType() string - IndicatedBitrate() float64 - DownloadOverdue() int IndicatedAverageBitrate() float64 - SwitchBitrate() float64 - PlaybackStartDate() foundation.Date - ObservedBitrateStandardDeviation() float64 - DurationWatched() foundation.TimeInterval - StartupTime() foundation.TimeInterval - PlaybackStartOffset() foundation.TimeInterval + NumberOfDroppedVideoFrames() int + PlaybackSessionID() string MediaRequestsWWAN() int + AverageAudioBitrate() float64 + ObservedBitrateStandardDeviation() float64 + ObservedBitrate() float64 + URI() string + NumberOfBytesTransferred() int64 NumberOfStalls() int - SegmentsDownloadedDuration() foundation.TimeInterval - PlaybackSessionID() string + NumberOfMediaRequests() int + PlaybackStartDate() foundation.Date + TransferDuration() foundation.TimeInterval + DownloadOverdue() int + ServerAddress() string + PlaybackStartOffset() foundation.TimeInterval } // A single entry in a player item's access log. [Full Topic] @@ -63,10 +63,6 @@ func (pc _PlayerItemAccessLogEventClass) Alloc() PlayerItemAccessLogEvent { return rv } -func PlayerItemAccessLogEvent_Alloc() PlayerItemAccessLogEvent { - return PlayerItemAccessLogEventClass.Alloc() -} - func (pc _PlayerItemAccessLogEventClass) New() PlayerItemAccessLogEvent { rv := objc.Call[PlayerItemAccessLogEvent](pc, objc.Sel("new")) rv.Autorelease() @@ -82,67 +78,51 @@ func (p_ PlayerItemAccessLogEvent) Init() PlayerItemAccessLogEvent { return rv } -// The audio track’s average bit rate, in bits per second. [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")) - return rv -} - -// The number of media read requests from the server to this client. [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")) - return rv -} - -// The accumulated duration, in seconds, of active network transfer of bytes. [Full Topic] +// The accumulated duration, in seconds, of the media segments downloaded. [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/1388147-segmentsdownloadedduration?language=objc +func (p_ PlayerItemAccessLogEvent) SegmentsDownloadedDuration() foundation.TimeInterval { + rv := objc.Call[foundation.TimeInterval](p_, objc.Sel("segmentsDownloadedDuration")) return rv } -// The URI of the playback item. [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/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/1388076-numberofserveraddresschanges?language=objc +func (p_ PlayerItemAccessLogEvent) NumberOfServerAddressChanges() int { + rv := objc.Call[int](p_, objc.Sel("numberOfServerAddressChanges")) return rv } -// The total number of dropped video frames [Full Topic] +// The accumulated duration, in seconds, of the media played. [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/1388200-durationwatched?language=objc +func (p_ PlayerItemAccessLogEvent) DurationWatched() foundation.TimeInterval { + rv := objc.Call[foundation.TimeInterval](p_, objc.Sel("durationWatched")) return rv } -// A count of changes to the server address over the last uninterrupted period of playback. [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/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/1390645-switchbitrate?language=objc +func (p_ PlayerItemAccessLogEvent) SwitchBitrate() float64 { + rv := objc.Call[float64](p_, objc.Sel("switchBitrate")) return rv } -// The empirical throughput, in bits per second, across all media downloaded. [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/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/1388123-indicatedbitrate?language=objc +func (p_ PlayerItemAccessLogEvent) IndicatedBitrate() float64 { + rv := objc.Call[float64](p_, objc.Sel("indicatedBitrate")) 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, until the player item is ready to play. [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/1389138-startuptime?language=objc +func (p_ PlayerItemAccessLogEvent) StartupTime() foundation.TimeInterval { + rv := objc.Call[foundation.TimeInterval](p_, objc.Sel("startupTime")) return rv } @@ -154,14 +134,6 @@ func (p_ PlayerItemAccessLogEvent) AverageVideoBitrate() float64 { return rv } -// The accumulated number of bytes transferred by the item. [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")) - return rv -} - // The playback type. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/avfoundation/avplayeritemaccesslogevent/1387218-playbacktype?language=objc @@ -170,43 +142,43 @@ func (p_ PlayerItemAccessLogEvent) PlaybackType() string { return rv } -// The throughput, in bits per second, required to play the stream, as advertised by the server. [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/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/1872546-indicatedaveragebitrate?language=objc +func (p_ PlayerItemAccessLogEvent) IndicatedAverageBitrate() float64 { + rv := objc.Call[float64](p_, objc.Sel("indicatedAverageBitrate")) return rv } -// The total number of times that downloading the segments took too long. [Full Topic] +// The total number of dropped video frames [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/1388647-numberofdroppedvideoframes?language=objc +func (p_ PlayerItemAccessLogEvent) NumberOfDroppedVideoFrames() int { + rv := objc.Call[int](p_, objc.Sel("numberOfDroppedVideoFrames")) return rv } -// The average throughput, in bits per second, required to play the stream, as advertised by the server. [Full Topic] +// A GUID that identifies the playback session. [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/1388462-playbacksessionid?language=objc +func (p_ PlayerItemAccessLogEvent) PlaybackSessionID() string { + rv := objc.Call[string](p_, objc.Sel("playbackSessionID")) return rv } -// The bandwidth value that causes a switch, up or down, in the item's quality being played. [Full Topic] +// The number of network read requests over a WWAN. [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/1388549-mediarequestswwan?language=objc +func (p_ PlayerItemAccessLogEvent) MediaRequestsWWAN() int { + rv := objc.Call[int](p_, objc.Sel("mediaRequestsWWAN")) return rv } -// The date and time at which playback began for this event. [Full Topic] +// The audio track’s average bit rate, in bits per second. [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/1643590-averageaudiobitrate?language=objc +func (p_ PlayerItemAccessLogEvent) AverageAudioBitrate() float64 { + rv := objc.Call[float64](p_, objc.Sel("averageAudioBitrate")) return rv } @@ -218,35 +190,27 @@ func (p_ PlayerItemAccessLogEvent) ObservedBitrateStandardDeviation() float64 { return rv } -// The accumulated duration, in seconds, of the media played. [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")) - return rv -} - -// The accumulated duration, in seconds, until the player item is ready to play. [Full Topic] +// The empirical throughput, in bits per second, across all media downloaded. [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/1390804-observedbitrate?language=objc +func (p_ PlayerItemAccessLogEvent) ObservedBitrate() float64 { + rv := objc.Call[float64](p_, objc.Sel("observedBitrate")) return rv } -// The offset, in seconds, in the playlist where the last uninterrupted period of playback began. [Full Topic] +// The URI of the playback item. [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/1388643-uri?language=objc +func (p_ PlayerItemAccessLogEvent) URI() string { + rv := objc.Call[string](p_, objc.Sel("URI")) return rv } -// The number of network read requests over a WWAN. [Full Topic] +// The accumulated number of bytes transferred by the item. [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/1387305-numberofbytestransferred?language=objc +func (p_ PlayerItemAccessLogEvent) NumberOfBytesTransferred() int64 { + rv := objc.Call[int64](p_, objc.Sel("numberOfBytesTransferred")) return rv } @@ -258,18 +222,50 @@ func (p_ PlayerItemAccessLogEvent) NumberOfStalls() int { return rv } -// The accumulated duration, in seconds, of the media segments downloaded. [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/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/1388357-numberofmediarequests?language=objc +func (p_ PlayerItemAccessLogEvent) NumberOfMediaRequests() int { + rv := objc.Call[int](p_, objc.Sel("numberOfMediaRequests")) return rv } -// A GUID that identifies the playback session. [Full Topic] +// The date and time at which playback began for this event. [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/1390502-playbackstartdate?language=objc +func (p_ PlayerItemAccessLogEvent) PlaybackStartDate() foundation.Date { + rv := objc.Call[foundation.Date](p_, objc.Sel("playbackStartDate")) + return rv +} + +// The accumulated duration, in seconds, of active network transfer of bytes. [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")) + return rv +} + +// The total number of times that downloading the segments took too long. [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")) + return rv +} + +// 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/1390315-serveraddress?language=objc +func (p_ PlayerItemAccessLogEvent) ServerAddress() string { + rv := objc.Call[string](p_, objc.Sel("serverAddress")) + return rv +} + +// 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/1385922-playbackstartoffset?language=objc +func (p_ PlayerItemAccessLogEvent) PlaybackStartOffset() foundation.TimeInterval { + rv := objc.Call[foundation.TimeInterval](p_, objc.Sel("playbackStartOffset")) return rv } diff --git a/macos/avfoundation/player_item_error_log.gen.go b/macos/avfoundation/player_item_error_log.gen.go index 3253d33f..d425d700 100644 --- a/macos/avfoundation/player_item_error_log.gen.go +++ b/macos/avfoundation/player_item_error_log.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package avfoundation @@ -42,10 +42,6 @@ func (pc _PlayerItemErrorLogClass) Alloc() PlayerItemErrorLog { return rv } -func PlayerItemErrorLog_Alloc() PlayerItemErrorLog { - return PlayerItemErrorLogClass.Alloc() -} - func (pc _PlayerItemErrorLogClass) New() PlayerItemErrorLog { rv := objc.Call[PlayerItemErrorLog](pc, objc.Sel("new")) rv.Autorelease() diff --git a/macos/avfoundation/player_item_error_log_event.gen.go b/macos/avfoundation/player_item_error_log_event.gen.go index 6edcef17..c6bdd9f3 100644 --- a/macos/avfoundation/player_item_error_log_event.gen.go +++ b/macos/avfoundation/player_item_error_log_event.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package avfoundation @@ -19,13 +19,13 @@ type _PlayerItemErrorLogEventClass struct { // An interface definition for the [PlayerItemErrorLogEvent] class. type IPlayerItemErrorLogEvent interface { objc.IObject - Date() foundation.Date ErrorStatusCode() int - URI() string - ServerAddress() string ErrorComment() string - PlaybackSessionID() string ErrorDomain() string + Date() foundation.Date + ServerAddress() string + PlaybackSessionID() string + URI() string } // A single item in a player item’s error log. [Full Topic] @@ -46,10 +46,6 @@ func (pc _PlayerItemErrorLogEventClass) Alloc() PlayerItemErrorLogEvent { return rv } -func PlayerItemErrorLogEvent_Alloc() PlayerItemErrorLogEvent { - return PlayerItemErrorLogEventClass.Alloc() -} - func (pc _PlayerItemErrorLogEventClass) New() PlayerItemErrorLogEvent { rv := objc.Call[PlayerItemErrorLogEvent](pc, objc.Sel("new")) rv.Autorelease() @@ -65,14 +61,6 @@ func (p_ PlayerItemErrorLogEvent) Init() PlayerItemErrorLogEvent { return rv } -// The date and time when the error occurred. [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")) - return rv -} - // A unique error code identifier. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/avfoundation/avplayeritemerrorlogevent/1387875-errorstatuscode?language=objc @@ -81,27 +69,35 @@ func (p_ PlayerItemErrorLogEvent) ErrorStatusCode() int { return rv } -// The URI of the playback item that had an error. [Full Topic] +// A description of the error encountered [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/1388011-errorcomment?language=objc +func (p_ PlayerItemErrorLogEvent) ErrorComment() string { + rv := objc.Call[string](p_, objc.Sel("errorComment")) return rv } -// The IP address of the server that was the source of the error. [Full Topic] +// The domain of the error. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avplayeritemerrorlogevent/1385797-serveraddress?language=objc -func (p_ PlayerItemErrorLogEvent) ServerAddress() string { - rv := objc.Call[string](p_, objc.Sel("serverAddress")) +// [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 } -// 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 IP address of the server that was the source of the error. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avplayeritemerrorlogevent/1385797-serveraddress?language=objc +func (p_ PlayerItemErrorLogEvent) ServerAddress() string { + rv := objc.Call[string](p_, objc.Sel("serverAddress")) return rv } @@ -113,10 +109,10 @@ func (p_ PlayerItemErrorLogEvent) PlaybackSessionID() string { return rv } -// The domain of the error. [Full Topic] +// The URI of the playback item that had an error. [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/1389302-uri?language=objc +func (p_ PlayerItemErrorLogEvent) URI() string { + rv := objc.Call[string](p_, objc.Sel("URI")) return rv } diff --git a/macos/avfoundation/player_item_legible_output.gen.go b/macos/avfoundation/player_item_legible_output.gen.go index b6786259..33d46948 100644 --- a/macos/avfoundation/player_item_legible_output.gen.go +++ b/macos/avfoundation/player_item_legible_output.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package avfoundation @@ -22,12 +22,12 @@ type IPlayerItemLegibleOutput interface { IPlayerItemOutput SetDelegateQueue(delegate PPlayerItemLegibleOutputPushDelegate, delegateQueue dispatch.Queue) SetDelegateObjectQueue(delegateObject objc.IObject, delegateQueue dispatch.Queue) - AdvanceIntervalForDelegateInvocation() foundation.TimeInterval - SetAdvanceIntervalForDelegateInvocation(value foundation.TimeInterval) - Delegate() PlayerItemLegibleOutputPushDelegateWrapper TextStylingResolution() PlayerItemLegibleOutputTextStylingResolution SetTextStylingResolution(value PlayerItemLegibleOutputTextStylingResolution) + AdvanceIntervalForDelegateInvocation() foundation.TimeInterval + SetAdvanceIntervalForDelegateInvocation(value foundation.TimeInterval) DelegateQueue() dispatch.Queue + Delegate() PlayerItemLegibleOutputPushDelegateObject } // An object that vends attributed strings for media with a legible characteristic. [Full Topic] @@ -62,10 +62,6 @@ func (pc _PlayerItemLegibleOutputClass) Alloc() PlayerItemLegibleOutput { return rv } -func PlayerItemLegibleOutput_Alloc() PlayerItemLegibleOutput { - return PlayerItemLegibleOutputClass.Alloc() -} - func (pc _PlayerItemLegibleOutputClass) New() PlayerItemLegibleOutput { rv := objc.Call[PlayerItemLegibleOutput](pc, objc.Sel("new")) rv.Autorelease() @@ -96,29 +92,6 @@ func (p_ PlayerItemLegibleOutput) SetDelegateObjectQueue(delegateObject objc.IOb objc.Call[objc.Void](p_, objc.Sel("setDelegate:queue:"), objc.Ptr(delegateObject), delegateQueue) } -// 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 -func (p_ PlayerItemLegibleOutput) AdvanceIntervalForDelegateInvocation() foundation.TimeInterval { - rv := objc.Call[foundation.TimeInterval](p_, objc.Sel("advanceIntervalForDelegateInvocation")) - return rv -} - -// 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 -func (p_ PlayerItemLegibleOutput) SetAdvanceIntervalForDelegateInvocation(value foundation.TimeInterval) { - objc.Call[objc.Void](p_, objc.Sel("setAdvanceIntervalForDelegateInvocation:"), value) -} - -// The delegate of the output class. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avplayeritemlegibleoutput/1387877-delegate?language=objc -func (p_ PlayerItemLegibleOutput) Delegate() PlayerItemLegibleOutputPushDelegateWrapper { - rv := objc.Call[PlayerItemLegibleOutputPushDelegateWrapper](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 @@ -134,6 +107,21 @@ func (p_ PlayerItemLegibleOutput) SetTextStylingResolution(value PlayerItemLegib 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 +func (p_ PlayerItemLegibleOutput) AdvanceIntervalForDelegateInvocation() foundation.TimeInterval { + rv := objc.Call[foundation.TimeInterval](p_, objc.Sel("advanceIntervalForDelegateInvocation")) + return rv +} + +// 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 +func (p_ PlayerItemLegibleOutput) SetAdvanceIntervalForDelegateInvocation(value foundation.TimeInterval) { + 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 @@ -141,3 +129,11 @@ 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 +func (p_ PlayerItemLegibleOutput) Delegate() PlayerItemLegibleOutputPushDelegateObject { + rv := objc.Call[PlayerItemLegibleOutputPushDelegateObject](p_, objc.Sel("delegate")) + return rv +} diff --git a/macos/avfoundation/player_item_legible_output_push_delegate.gen.go b/macos/avfoundation/player_item_legible_output_push_delegate.gen.go index 2e2fba8e..64a26d37 100644 --- a/macos/avfoundation/player_item_legible_output_push_delegate.gen.go +++ b/macos/avfoundation/player_item_legible_output_push_delegate.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package avfoundation @@ -40,18 +40,21 @@ func (di *PlayerItemLegibleOutputPushDelegate) LegibleOutputDidOutputAttributedS di._LegibleOutputDidOutputAttributedStringsNativeSampleBuffersForItemTime(output, strings, nativeSamples, itemTime) } -// A concrete type wrapper for the [PPlayerItemLegibleOutputPushDelegate] protocol. -type PlayerItemLegibleOutputPushDelegateWrapper struct { +// ensure impl type implements protocol interface +var _ PPlayerItemLegibleOutputPushDelegate = (*PlayerItemLegibleOutputPushDelegateObject)(nil) + +// A concrete type for the [PPlayerItemLegibleOutputPushDelegate] protocol. +type PlayerItemLegibleOutputPushDelegateObject struct { objc.Object } -func (p_ PlayerItemLegibleOutputPushDelegateWrapper) HasLegibleOutputDidOutputAttributedStringsNativeSampleBuffersForItemTime() bool { +func (p_ PlayerItemLegibleOutputPushDelegateObject) HasLegibleOutputDidOutputAttributedStringsNativeSampleBuffersForItemTime() bool { return p_.RespondsToSelector(objc.Sel("legibleOutput:didOutputAttributedStrings:nativeSampleBuffers:forItemTime:")) } // Asks the delegate to process the delivery of new textual samples. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/avfoundation/avplayeritemlegibleoutputpushdelegate/1386790-legibleoutput?language=objc -func (p_ PlayerItemLegibleOutputPushDelegateWrapper) LegibleOutputDidOutputAttributedStringsNativeSampleBuffersForItemTime(output IPlayerItemLegibleOutput, strings []foundation.IAttributedString, nativeSamples []objc.IObject, itemTime coremedia.Time) { +func (p_ PlayerItemLegibleOutputPushDelegateObject) LegibleOutputDidOutputAttributedStringsNativeSampleBuffersForItemTime(output PlayerItemLegibleOutput, strings []foundation.AttributedString, nativeSamples []objc.Object, itemTime coremedia.Time) { objc.Call[objc.Void](p_, objc.Sel("legibleOutput:didOutputAttributedStrings:nativeSampleBuffers:forItemTime:"), objc.Ptr(output), strings, nativeSamples, itemTime) } diff --git a/macos/avfoundation/player_item_media_data_collector.gen.go b/macos/avfoundation/player_item_media_data_collector.gen.go index 3fe0c338..70d79202 100644 --- a/macos/avfoundation/player_item_media_data_collector.gen.go +++ b/macos/avfoundation/player_item_media_data_collector.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package avfoundation @@ -38,10 +38,6 @@ func (pc _PlayerItemMediaDataCollectorClass) Alloc() PlayerItemMediaDataCollecto return rv } -func PlayerItemMediaDataCollector_Alloc() PlayerItemMediaDataCollector { - return PlayerItemMediaDataCollectorClass.Alloc() -} - func (pc _PlayerItemMediaDataCollectorClass) New() PlayerItemMediaDataCollector { rv := objc.Call[PlayerItemMediaDataCollector](pc, objc.Sel("new")) rv.Autorelease() diff --git a/macos/avfoundation/player_item_metadata_collector.gen.go b/macos/avfoundation/player_item_metadata_collector.gen.go index b8f7bbb8..b54169a4 100644 --- a/macos/avfoundation/player_item_metadata_collector.gen.go +++ b/macos/avfoundation/player_item_metadata_collector.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package avfoundation @@ -21,7 +21,7 @@ type IPlayerItemMetadataCollector interface { IPlayerItemMediaDataCollector SetDelegateQueue(delegate PPlayerItemMetadataCollectorPushDelegate, delegateQueue dispatch.Queue) SetDelegateObjectQueue(delegateObject objc.IObject, delegateQueue dispatch.Queue) - Delegate() PlayerItemMetadataCollectorPushDelegateWrapper + Delegate() PlayerItemMetadataCollectorPushDelegateObject DelegateQueue() dispatch.Queue } @@ -57,10 +57,6 @@ func (pc _PlayerItemMetadataCollectorClass) Alloc() PlayerItemMetadataCollector return rv } -func PlayerItemMetadataCollector_Alloc() PlayerItemMetadataCollector { - return PlayerItemMetadataCollectorClass.Alloc() -} - func (pc _PlayerItemMetadataCollectorClass) New() PlayerItemMetadataCollector { rv := objc.Call[PlayerItemMetadataCollector](pc, objc.Sel("new")) rv.Autorelease() @@ -94,8 +90,8 @@ func (p_ PlayerItemMetadataCollector) SetDelegateObjectQueue(delegateObject objc // Accesses the metadata collector’s delegate object. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/avfoundation/avplayeritemmetadatacollector/1617196-delegate?language=objc -func (p_ PlayerItemMetadataCollector) Delegate() PlayerItemMetadataCollectorPushDelegateWrapper { - rv := objc.Call[PlayerItemMetadataCollectorPushDelegateWrapper](p_, objc.Sel("delegate")) +func (p_ PlayerItemMetadataCollector) Delegate() PlayerItemMetadataCollectorPushDelegateObject { + rv := objc.Call[PlayerItemMetadataCollectorPushDelegateObject](p_, objc.Sel("delegate")) return rv } diff --git a/macos/avfoundation/player_item_metadata_collector_push_delegate.gen.go b/macos/avfoundation/player_item_metadata_collector_push_delegate.gen.go index 41d2ee33..e7cadaf6 100644 --- a/macos/avfoundation/player_item_metadata_collector_push_delegate.gen.go +++ b/macos/avfoundation/player_item_metadata_collector_push_delegate.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package avfoundation @@ -39,18 +39,21 @@ func (di *PlayerItemMetadataCollectorPushDelegate) MetadataCollectorDidCollectDa di._MetadataCollectorDidCollectDateRangeMetadataGroupsIndexesOfNewGroupsIndexesOfModifiedGroups(metadataCollector, metadataGroups, indexesOfNewGroups, indexesOfModifiedGroups) } -// A concrete type wrapper for the [PPlayerItemMetadataCollectorPushDelegate] protocol. -type PlayerItemMetadataCollectorPushDelegateWrapper struct { +// ensure impl type implements protocol interface +var _ PPlayerItemMetadataCollectorPushDelegate = (*PlayerItemMetadataCollectorPushDelegateObject)(nil) + +// A concrete type for the [PPlayerItemMetadataCollectorPushDelegate] protocol. +type PlayerItemMetadataCollectorPushDelegateObject struct { objc.Object } -func (p_ PlayerItemMetadataCollectorPushDelegateWrapper) HasMetadataCollectorDidCollectDateRangeMetadataGroupsIndexesOfNewGroupsIndexesOfModifiedGroups() bool { +func (p_ PlayerItemMetadataCollectorPushDelegateObject) HasMetadataCollectorDidCollectDateRangeMetadataGroupsIndexesOfNewGroupsIndexesOfModifiedGroups() bool { return p_.RespondsToSelector(objc.Sel("metadataCollector:didCollectDateRangeMetadataGroups:indexesOfNewGroups:indexesOfModifiedGroups:")) } // Tells the delegate the collected metadata group information has changed and needs to be updated. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/avfoundation/avplayeritemmetadatacollectorpushdelegate/1617190-metadatacollector?language=objc -func (p_ PlayerItemMetadataCollectorPushDelegateWrapper) MetadataCollectorDidCollectDateRangeMetadataGroupsIndexesOfNewGroupsIndexesOfModifiedGroups(metadataCollector IPlayerItemMetadataCollector, metadataGroups []IDateRangeMetadataGroup, indexesOfNewGroups foundation.IIndexSet, indexesOfModifiedGroups foundation.IIndexSet) { +func (p_ PlayerItemMetadataCollectorPushDelegateObject) MetadataCollectorDidCollectDateRangeMetadataGroupsIndexesOfNewGroupsIndexesOfModifiedGroups(metadataCollector PlayerItemMetadataCollector, metadataGroups []DateRangeMetadataGroup, indexesOfNewGroups foundation.IndexSet, indexesOfModifiedGroups foundation.IndexSet) { objc.Call[objc.Void](p_, objc.Sel("metadataCollector:didCollectDateRangeMetadataGroups:indexesOfNewGroups:indexesOfModifiedGroups:"), objc.Ptr(metadataCollector), metadataGroups, objc.Ptr(indexesOfNewGroups), objc.Ptr(indexesOfModifiedGroups)) } diff --git a/macos/avfoundation/player_item_metadata_output.gen.go b/macos/avfoundation/player_item_metadata_output.gen.go index 96d821ad..e735987e 100644 --- a/macos/avfoundation/player_item_metadata_output.gen.go +++ b/macos/avfoundation/player_item_metadata_output.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package avfoundation @@ -24,8 +24,8 @@ type IPlayerItemMetadataOutput interface { SetDelegateObjectQueue(delegateObject objc.IObject, delegateQueue dispatch.Queue) AdvanceIntervalForDelegateInvocation() foundation.TimeInterval SetAdvanceIntervalForDelegateInvocation(value foundation.TimeInterval) - Delegate() PlayerItemMetadataOutputPushDelegateWrapper DelegateQueue() dispatch.Queue + Delegate() PlayerItemMetadataOutputPushDelegateObject } // An object that vends collections of metadata items that a player item’s tracks carry. [Full Topic] @@ -60,10 +60,6 @@ func (pc _PlayerItemMetadataOutputClass) Alloc() PlayerItemMetadataOutput { return rv } -func PlayerItemMetadataOutput_Alloc() PlayerItemMetadataOutput { - return PlayerItemMetadataOutputClass.Alloc() -} - func (pc _PlayerItemMetadataOutputClass) New() PlayerItemMetadataOutput { rv := objc.Call[PlayerItemMetadataOutput](pc, objc.Sel("new")) rv.Autorelease() @@ -109,14 +105,6 @@ func (p_ PlayerItemMetadataOutput) SetAdvanceIntervalForDelegateInvocation(value objc.Call[objc.Void](p_, objc.Sel("setAdvanceIntervalForDelegateInvocation:"), value) } -// The delegate object. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avplayeritemmetadataoutput/1387200-delegate?language=objc -func (p_ PlayerItemMetadataOutput) Delegate() PlayerItemMetadataOutputPushDelegateWrapper { - rv := objc.Call[PlayerItemMetadataOutputPushDelegateWrapper](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 @@ -124,3 +112,11 @@ 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 +func (p_ PlayerItemMetadataOutput) Delegate() PlayerItemMetadataOutputPushDelegateObject { + rv := objc.Call[PlayerItemMetadataOutputPushDelegateObject](p_, objc.Sel("delegate")) + return rv +} diff --git a/macos/avfoundation/player_item_metadata_output_push_delegate.gen.go b/macos/avfoundation/player_item_metadata_output_push_delegate.gen.go index 6206abcb..5519e197 100644 --- a/macos/avfoundation/player_item_metadata_output_push_delegate.gen.go +++ b/macos/avfoundation/player_item_metadata_output_push_delegate.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package avfoundation @@ -38,18 +38,21 @@ func (di *PlayerItemMetadataOutputPushDelegate) MetadataOutputDidOutputTimedMeta di._MetadataOutputDidOutputTimedMetadataGroupsFromPlayerItemTrack(output, groups, track) } -// A concrete type wrapper for the [PPlayerItemMetadataOutputPushDelegate] protocol. -type PlayerItemMetadataOutputPushDelegateWrapper struct { +// ensure impl type implements protocol interface +var _ PPlayerItemMetadataOutputPushDelegate = (*PlayerItemMetadataOutputPushDelegateObject)(nil) + +// A concrete type for the [PPlayerItemMetadataOutputPushDelegate] protocol. +type PlayerItemMetadataOutputPushDelegateObject struct { objc.Object } -func (p_ PlayerItemMetadataOutputPushDelegateWrapper) HasMetadataOutputDidOutputTimedMetadataGroupsFromPlayerItemTrack() bool { +func (p_ PlayerItemMetadataOutputPushDelegateObject) HasMetadataOutputDidOutputTimedMetadataGroupsFromPlayerItemTrack() bool { return p_.RespondsToSelector(objc.Sel("metadataOutput:didOutputTimedMetadataGroups:fromPlayerItemTrack:")) } // Tells the delegate a new collection of metadata items is available. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/avfoundation/avplayeritemmetadataoutputpushdelegate/1388071-metadataoutput?language=objc -func (p_ PlayerItemMetadataOutputPushDelegateWrapper) MetadataOutputDidOutputTimedMetadataGroupsFromPlayerItemTrack(output IPlayerItemMetadataOutput, groups []ITimedMetadataGroup, track IPlayerItemTrack) { +func (p_ PlayerItemMetadataOutputPushDelegateObject) MetadataOutputDidOutputTimedMetadataGroupsFromPlayerItemTrack(output PlayerItemMetadataOutput, groups []TimedMetadataGroup, track PlayerItemTrack) { objc.Call[objc.Void](p_, objc.Sel("metadataOutput:didOutputTimedMetadataGroups:fromPlayerItemTrack:"), objc.Ptr(output), groups, objc.Ptr(track)) } diff --git a/macos/avfoundation/player_item_output.gen.go b/macos/avfoundation/player_item_output.gen.go index 9b172b0f..52e0c4e3 100644 --- a/macos/avfoundation/player_item_output.gen.go +++ b/macos/avfoundation/player_item_output.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package avfoundation @@ -21,9 +21,9 @@ type _PlayerItemOutputClass struct { // An interface definition for the [PlayerItemOutput] class. type IPlayerItemOutput interface { objc.IObject - ItemTimeForCVTimeStamp(timestamp corevideo.TimeStamp) coremedia.Time - ItemTimeForHostTime(hostTimeInSeconds corefoundation.TimeInterval) coremedia.Time ItemTimeForMachAbsoluteTime(machAbsoluteTime int64) coremedia.Time + ItemTimeForHostTime(hostTimeInSeconds corefoundation.TimeInterval) coremedia.Time + ItemTimeForCVTimeStamp(timestamp corevideo.TimeStamp) coremedia.Time SuppressesPlayerRendering() bool SetSuppressesPlayerRendering(value bool) } @@ -46,10 +46,6 @@ func (pc _PlayerItemOutputClass) Alloc() PlayerItemOutput { return rv } -func PlayerItemOutput_Alloc() PlayerItemOutput { - return PlayerItemOutputClass.Alloc() -} - func (pc _PlayerItemOutputClass) New() PlayerItemOutput { rv := objc.Call[PlayerItemOutput](pc, objc.Sel("new")) rv.Autorelease() @@ -65,11 +61,11 @@ func (p_ PlayerItemOutput) Init() PlayerItemOutput { 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 } @@ -81,11 +77,11 @@ func (p_ PlayerItemOutput) ItemTimeForHostTime(hostTimeInSeconds corefoundation. 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 } diff --git a/macos/avfoundation/player_item_output_pull_delegate.gen.go b/macos/avfoundation/player_item_output_pull_delegate.gen.go index 88131157..32c5722c 100644 --- a/macos/avfoundation/player_item_output_pull_delegate.gen.go +++ b/macos/avfoundation/player_item_output_pull_delegate.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package avfoundation @@ -10,38 +10,21 @@ import ( // // [Full Topic]: https://developer.apple.com/documentation/avfoundation/avplayeritemoutputpulldelegate?language=objc type PPlayerItemOutputPullDelegate interface { - // optional - OutputSequenceWasFlushed(output PlayerItemOutput) - HasOutputSequenceWasFlushed() bool - // optional OutputMediaDataWillChange(sender PlayerItemOutput) HasOutputMediaDataWillChange() bool + + // optional + OutputSequenceWasFlushed(output PlayerItemOutput) + HasOutputSequenceWasFlushed() bool } // A delegate implementation builder for the [PPlayerItemOutputPullDelegate] protocol. type PlayerItemOutputPullDelegate struct { - _OutputSequenceWasFlushed func(output PlayerItemOutput) _OutputMediaDataWillChange func(sender PlayerItemOutput) + _OutputSequenceWasFlushed func(output PlayerItemOutput) } -func (di *PlayerItemOutputPullDelegate) HasOutputSequenceWasFlushed() bool { - return di._OutputSequenceWasFlushed != nil -} - -// Tells the delegate that a new sample sequence is commencing. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avplayeritemoutputpulldelegate/1387279-outputsequencewasflushed?language=objc -func (di *PlayerItemOutputPullDelegate) SetOutputSequenceWasFlushed(f func(output PlayerItemOutput)) { - di._OutputSequenceWasFlushed = f -} - -// Tells the delegate that a new sample sequence is commencing. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avplayeritemoutputpulldelegate/1387279-outputsequencewasflushed?language=objc -func (di *PlayerItemOutputPullDelegate) OutputSequenceWasFlushed(output PlayerItemOutput) { - di._OutputSequenceWasFlushed(output) -} func (di *PlayerItemOutputPullDelegate) HasOutputMediaDataWillChange() bool { return di._OutputMediaDataWillChange != nil } @@ -59,30 +42,50 @@ func (di *PlayerItemOutputPullDelegate) SetOutputMediaDataWillChange(f func(send func (di *PlayerItemOutputPullDelegate) OutputMediaDataWillChange(sender PlayerItemOutput) { di._OutputMediaDataWillChange(sender) } - -// A concrete type wrapper for the [PPlayerItemOutputPullDelegate] protocol. -type PlayerItemOutputPullDelegateWrapper struct { - objc.Object +func (di *PlayerItemOutputPullDelegate) HasOutputSequenceWasFlushed() bool { + return di._OutputSequenceWasFlushed != nil } -func (p_ PlayerItemOutputPullDelegateWrapper) HasOutputSequenceWasFlushed() bool { - return p_.RespondsToSelector(objc.Sel("outputSequenceWasFlushed:")) +// Tells the delegate that a new sample sequence is commencing. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avplayeritemoutputpulldelegate/1387279-outputsequencewasflushed?language=objc +func (di *PlayerItemOutputPullDelegate) SetOutputSequenceWasFlushed(f func(output PlayerItemOutput)) { + di._OutputSequenceWasFlushed = f } // Tells the delegate that a new sample sequence is commencing. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/avfoundation/avplayeritemoutputpulldelegate/1387279-outputsequencewasflushed?language=objc -func (p_ PlayerItemOutputPullDelegateWrapper) OutputSequenceWasFlushed(output IPlayerItemOutput) { - objc.Call[objc.Void](p_, objc.Sel("outputSequenceWasFlushed:"), objc.Ptr(output)) +func (di *PlayerItemOutputPullDelegate) OutputSequenceWasFlushed(output PlayerItemOutput) { + di._OutputSequenceWasFlushed(output) } -func (p_ PlayerItemOutputPullDelegateWrapper) HasOutputMediaDataWillChange() bool { +// 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) 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_ PlayerItemOutputPullDelegateWrapper) OutputMediaDataWillChange(sender IPlayerItemOutput) { +func (p_ PlayerItemOutputPullDelegateObject) OutputMediaDataWillChange(sender PlayerItemOutput) { objc.Call[objc.Void](p_, objc.Sel("outputMediaDataWillChange:"), objc.Ptr(sender)) } + +func (p_ PlayerItemOutputPullDelegateObject) HasOutputSequenceWasFlushed() bool { + return p_.RespondsToSelector(objc.Sel("outputSequenceWasFlushed:")) +} + +// Tells the delegate that a new sample sequence is commencing. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avplayeritemoutputpulldelegate/1387279-outputsequencewasflushed?language=objc +func (p_ PlayerItemOutputPullDelegateObject) OutputSequenceWasFlushed(output PlayerItemOutput) { + objc.Call[objc.Void](p_, objc.Sel("outputSequenceWasFlushed:"), objc.Ptr(output)) +} diff --git a/macos/avfoundation/player_item_output_push_delegate.gen.go b/macos/avfoundation/player_item_output_push_delegate.gen.go index 4a209d18..6eedbe99 100644 --- a/macos/avfoundation/player_item_output_push_delegate.gen.go +++ b/macos/avfoundation/player_item_output_push_delegate.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package avfoundation @@ -38,18 +38,21 @@ func (di *PlayerItemOutputPushDelegate) OutputSequenceWasFlushed(output PlayerIt di._OutputSequenceWasFlushed(output) } -// A concrete type wrapper for the [PPlayerItemOutputPushDelegate] protocol. -type PlayerItemOutputPushDelegateWrapper struct { +// ensure impl type implements protocol interface +var _ PPlayerItemOutputPushDelegate = (*PlayerItemOutputPushDelegateObject)(nil) + +// A concrete type for the [PPlayerItemOutputPushDelegate] protocol. +type PlayerItemOutputPushDelegateObject struct { objc.Object } -func (p_ PlayerItemOutputPushDelegateWrapper) HasOutputSequenceWasFlushed() bool { +func (p_ PlayerItemOutputPushDelegateObject) HasOutputSequenceWasFlushed() bool { return p_.RespondsToSelector(objc.Sel("outputSequenceWasFlushed:")) } // Tells the delegate that the output is starting a new sequence of media data. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/avfoundation/avplayeritemoutputpushdelegate/1390224-outputsequencewasflushed?language=objc -func (p_ PlayerItemOutputPushDelegateWrapper) OutputSequenceWasFlushed(output IPlayerItemOutput) { +func (p_ PlayerItemOutputPushDelegateObject) OutputSequenceWasFlushed(output PlayerItemOutput) { objc.Call[objc.Void](p_, objc.Sel("outputSequenceWasFlushed:"), objc.Ptr(output)) } diff --git a/macos/avfoundation/player_item_track.gen.go b/macos/avfoundation/player_item_track.gen.go index cb2e6dd3..154b08b8 100644 --- a/macos/avfoundation/player_item_track.gen.go +++ b/macos/avfoundation/player_item_track.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package avfoundation @@ -18,11 +18,11 @@ type _PlayerItemTrackClass struct { // An interface definition for the [PlayerItemTrack] class. type IPlayerItemTrack interface { objc.IObject - VideoFieldMode() string - SetVideoFieldMode(value string) - CurrentVideoFrameRate() float64 IsEnabled() bool SetEnabled(value bool) + CurrentVideoFrameRate() float64 + VideoFieldMode() string + SetVideoFieldMode(value string) AssetTrack() AssetTrack } @@ -44,10 +44,6 @@ func (pc _PlayerItemTrackClass) Alloc() PlayerItemTrack { return rv } -func PlayerItemTrack_Alloc() PlayerItemTrack { - return PlayerItemTrackClass.Alloc() -} - func (pc _PlayerItemTrackClass) New() PlayerItemTrack { rv := objc.Call[PlayerItemTrack](pc, objc.Sel("new")) rv.Autorelease() @@ -63,19 +59,19 @@ func (p_ PlayerItemTrack) Init() PlayerItemTrack { 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) } // The current frame rate of the video track as it plays. [Full Topic] @@ -86,19 +82,19 @@ func (p_ PlayerItemTrack) CurrentVideoFrameRate() float64 { 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) } // 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 d879e6f4..ea7ed3d7 100644 --- a/macos/avfoundation/player_item_video_output.gen.go +++ b/macos/avfoundation/player_item_video_output.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package avfoundation @@ -22,13 +22,13 @@ type _PlayerItemVideoOutputClass struct { // An interface definition for the [PlayerItemVideoOutput] class. type IPlayerItemVideoOutput interface { IPlayerItemOutput - SetDelegateQueue(delegate PPlayerItemOutputPullDelegate, delegateQueue dispatch.Queue) - SetDelegateObjectQueue(delegateObject objc.IObject, delegateQueue dispatch.Queue) CopyPixelBufferForItemTimeItemTimeForDisplay(itemTime coremedia.Time, outItemTimeForDisplay *coremedia.Time) corevideo.PixelBufferRef - RequestNotificationOfMediaDataChangeWithAdvanceInterval(interval foundation.TimeInterval) HasNewPixelBufferForItemTime(itemTime coremedia.Time) bool - Delegate() PlayerItemOutputPullDelegateWrapper + RequestNotificationOfMediaDataChangeWithAdvanceInterval(interval foundation.TimeInterval) + SetDelegateQueue(delegate PPlayerItemOutputPullDelegate, delegateQueue dispatch.Queue) + SetDelegateObjectQueue(delegateObject objc.IObject, delegateQueue dispatch.Queue) DelegateQueue() dispatch.Queue + Delegate() PlayerItemOutputPullDelegateObject } // 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) 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 } -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 } @@ -77,10 +77,6 @@ func (pc _PlayerItemVideoOutputClass) Alloc() PlayerItemVideoOutput { return rv } -func PlayerItemVideoOutput_Alloc() PlayerItemVideoOutput { - return PlayerItemVideoOutputClass.Alloc() -} - func (pc _PlayerItemVideoOutputClass) New() PlayerItemVideoOutput { rv := objc.Call[PlayerItemVideoOutput](pc, objc.Sel("new")) rv.Autorelease() @@ -96,21 +92,6 @@ 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:"), objc.Ptr(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 @@ -119,6 +100,14 @@ 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 @@ -126,20 +115,19 @@ func (p_ PlayerItemVideoOutput) RequestNotificationOfMediaDataChangeWithAdvanceI objc.Call[objc.Void](p_, objc.Sel("requestNotificationOfMediaDataChangeWithAdvanceInterval:"), interval) } -// Returns a Boolean value that indicates whether video output is available for the specified item time. [Full Topic] +// Sets the delegate and dispatch queue for the receiver. [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 +// [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) } -// The delegate for the video output object. [Full Topic] +// Sets the delegate and dispatch queue for the receiver. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avplayeritemvideooutput/1385827-delegate?language=objc -func (p_ PlayerItemVideoOutput) Delegate() PlayerItemOutputPullDelegateWrapper { - rv := objc.Call[PlayerItemOutputPullDelegateWrapper](p_, objc.Sel("delegate")) - return rv +// [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:"), objc.Ptr(delegateObject), delegateQueue) } // The dispatch queue on which to call delegate methods. [Full Topic] @@ -149,3 +137,11 @@ 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 1ac91459..d785d73e 100644 --- a/macos/avfoundation/player_layer.gen.go +++ b/macos/avfoundation/player_layer.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package avfoundation @@ -20,14 +20,14 @@ type _PlayerLayerClass struct { // An interface definition for the [PlayerLayer] class. type IPlayerLayer interface { quartzcore.ILayer - VideoGravity() LayerVideoGravity - SetVideoGravity(value LayerVideoGravity) + IsReadyForDisplay() bool PixelBufferAttributes() map[string]objc.Object SetPixelBufferAttributes(value map[string]objc.IObject) + VideoRect() coregraphics.Rect Player() Player SetPlayer(value IPlayer) - IsReadyForDisplay() bool - VideoRect() coregraphics.Rect + VideoGravity() LayerVideoGravity + SetVideoGravity(value LayerVideoGravity) } // An object that presents the visual contents of a player object. [Full Topic] @@ -48,10 +48,6 @@ func (pc _PlayerLayerClass) Alloc() PlayerLayer { return rv } -func PlayerLayer_Alloc() PlayerLayer { - return PlayerLayerClass.Alloc() -} - func (pc _PlayerLayerClass) New() PlayerLayer { rv := objc.Call[PlayerLayer](pc, objc.Sel("new")) rv.Autorelease() @@ -67,32 +63,6 @@ func (p_ PlayerLayer) Init() PlayerLayer { return rv } -func (pc _PlayerLayerClass) Layer() PlayerLayer { - rv := objc.Call[PlayerLayer](pc, 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 PlayerLayer_Layer() PlayerLayer { - return PlayerLayerClass.Layer() -} - -func (p_ PlayerLayer) InitWithLayer(layer objc.IObject) PlayerLayer { - rv := objc.Call[PlayerLayer](p_, 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 NewPlayerLayerWithLayer(layer objc.IObject) PlayerLayer { - instance := PlayerLayerClass.Alloc().InitWithLayer(layer) - instance.Autorelease() - return instance -} - func (p_ PlayerLayer) ModelLayer() PlayerLayer { rv := objc.Call[PlayerLayer](p_, objc.Sel("modelLayer")) return rv @@ -121,6 +91,32 @@ func PlayerLayer_PresentationLayer() PlayerLayer { return instance } +func (p_ PlayerLayer) InitWithLayer(layer objc.IObject) PlayerLayer { + rv := objc.Call[PlayerLayer](p_, 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 NewPlayerLayerWithLayer(layer objc.IObject) PlayerLayer { + instance := PlayerLayerClass.Alloc().InitWithLayer(layer) + instance.Autorelease() + return instance +} + +func (pc _PlayerLayerClass) Layer() PlayerLayer { + rv := objc.Call[PlayerLayer](pc, 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 PlayerLayer_Layer() PlayerLayer { + return PlayerLayerClass.Layer() +} + // Creates a layer object to present the visual contents of a player’s current item. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/avfoundation/avplayerlayer/1389308-playerlayerwithplayer?language=objc @@ -136,21 +132,14 @@ func PlayerLayer_PlayerLayerWithPlayer(player IPlayer) PlayerLayer { return PlayerLayerClass.PlayerLayerWithPlayer(player) } -// 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] -// -// [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 @@ -166,6 +155,14 @@ 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 @@ -181,18 +178,17 @@ func (p_ PlayerLayer) SetPlayer(value IPlayer) { objc.Call[objc.Void](p_, objc.Sel("setPlayer:"), objc.Ptr(value)) } -// 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 } -// The current size and position of the video image that displays within the layer’s bounds. [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/1385745-videorect?language=objc -func (p_ PlayerLayer) VideoRect() coregraphics.Rect { - rv := objc.Call[coregraphics.Rect](p_, objc.Sel("videoRect")) - return rv +// [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) } diff --git a/macos/avfoundation/player_looper.gen.go b/macos/avfoundation/player_looper.gen.go index d6431c02..bcf8e978 100644 --- a/macos/avfoundation/player_looper.gen.go +++ b/macos/avfoundation/player_looper.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package avfoundation @@ -21,10 +21,10 @@ type _PlayerLooperClass struct { type IPlayerLooper interface { objc.IObject DisableLooping() - Error() foundation.Error LoopCount() int - Status() PlayerLooperStatus LoopingPlayerItems() []PlayerItem + Error() foundation.Error + Status() PlayerLooperStatus } // An object that loops media content using a queue player. [Full Topic] @@ -52,6 +52,18 @@ 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:"), objc.Ptr(player), objc.Ptr(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:"), objc.Ptr(player), objc.Ptr(itemToLoop), loopRange) return rv @@ -71,10 +83,6 @@ func (pc _PlayerLooperClass) Alloc() PlayerLooper { return rv } -func PlayerLooper_Alloc() PlayerLooper { - return PlayerLooperClass.Alloc() -} - func (pc _PlayerLooperClass) New() PlayerLooper { rv := objc.Call[PlayerLooper](pc, objc.Sel("new")) rv.Autorelease() @@ -97,14 +105,6 @@ func (p_ PlayerLooper) DisableLooping() { objc.Call[objc.Void](p_, objc.Sel("disableLooping")) } -// An error that describes the reason looping failed. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avplayerlooper/2177064-error?language=objc -func (p_ PlayerLooper) Error() foundation.Error { - rv := objc.Call[foundation.Error](p_, objc.Sel("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 @@ -113,14 +113,6 @@ func (p_ PlayerLooper) LoopCount() int { 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 -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 @@ -128,3 +120,19 @@ 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 +func (p_ PlayerLooper) Error() foundation.Error { + rv := objc.Call[foundation.Error](p_, objc.Sel("error")) + 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 +func (p_ PlayerLooper) Status() PlayerLooperStatus { + rv := objc.Call[PlayerLooperStatus](p_, objc.Sel("status")) + return rv +} diff --git a/macos/avfoundation/player_media_selection_criteria.gen.go b/macos/avfoundation/player_media_selection_criteria.gen.go index ce6e70b1..b5ca6c4a 100644 --- a/macos/avfoundation/player_media_selection_criteria.gen.go +++ b/macos/avfoundation/player_media_selection_criteria.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package avfoundation @@ -19,8 +19,8 @@ type _PlayerMediaSelectionCriteriaClass struct { type IPlayerMediaSelectionCriteria interface { objc.IObject PreferredLanguages() []string - PrincipalMediaCharacteristics() []MediaCharacteristic PreferredMediaCharacteristics() []MediaCharacteristic + PrincipalMediaCharacteristics() []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) 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 } -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 } @@ -69,10 +69,6 @@ func (pc _PlayerMediaSelectionCriteriaClass) Alloc() PlayerMediaSelectionCriteri return rv } -func PlayerMediaSelectionCriteria_Alloc() PlayerMediaSelectionCriteria { - return PlayerMediaSelectionCriteriaClass.Alloc() -} - func (pc _PlayerMediaSelectionCriteriaClass) New() PlayerMediaSelectionCriteria { rv := objc.Call[PlayerMediaSelectionCriteria](pc, objc.Sel("new")) rv.Autorelease() @@ -96,14 +92,6 @@ func (p_ PlayerMediaSelectionCriteria) PreferredLanguages() []string { 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 -func (p_ PlayerMediaSelectionCriteria) PrincipalMediaCharacteristics() []MediaCharacteristic { - 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 @@ -111,3 +99,11 @@ func (p_ PlayerMediaSelectionCriteria) PreferredMediaCharacteristics() []MediaCh 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 +func (p_ PlayerMediaSelectionCriteria) PrincipalMediaCharacteristics() []MediaCharacteristic { + rv := objc.Call[[]MediaCharacteristic](p_, objc.Sel("principalMediaCharacteristics")) + return rv +} diff --git a/macos/avfoundation/player_playback_coordinator.gen.go b/macos/avfoundation/player_playback_coordinator.gen.go index a08b8acf..e467e901 100644 --- a/macos/avfoundation/player_playback_coordinator.gen.go +++ b/macos/avfoundation/player_playback_coordinator.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package avfoundation @@ -19,7 +19,7 @@ type _PlayerPlaybackCoordinatorClass struct { type IPlayerPlaybackCoordinator interface { IPlaybackCoordinator Player() Player - Delegate() PlayerPlaybackCoordinatorDelegateWrapper + Delegate() PlayerPlaybackCoordinatorDelegateObject SetDelegate(value PPlayerPlaybackCoordinatorDelegate) SetDelegateObject(valueObject objc.IObject) } @@ -42,10 +42,6 @@ func (pc _PlayerPlaybackCoordinatorClass) Alloc() PlayerPlaybackCoordinator { return rv } -func PlayerPlaybackCoordinator_Alloc() PlayerPlaybackCoordinator { - return PlayerPlaybackCoordinatorClass.Alloc() -} - func (pc _PlayerPlaybackCoordinatorClass) New() PlayerPlaybackCoordinator { rv := objc.Call[PlayerPlaybackCoordinator](pc, objc.Sel("new")) rv.Autorelease() @@ -72,8 +68,8 @@ func (p_ PlayerPlaybackCoordinator) Player() Player { // A delegate object for the playback coordinator. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/avfoundation/avplayerplaybackcoordinator/3750301-delegate?language=objc -func (p_ PlayerPlaybackCoordinator) Delegate() PlayerPlaybackCoordinatorDelegateWrapper { - rv := objc.Call[PlayerPlaybackCoordinatorDelegateWrapper](p_, objc.Sel("delegate")) +func (p_ PlayerPlaybackCoordinator) Delegate() PlayerPlaybackCoordinatorDelegateObject { + rv := objc.Call[PlayerPlaybackCoordinatorDelegateObject](p_, objc.Sel("delegate")) return rv } diff --git a/macos/avfoundation/player_playback_coordinator_delegate.gen.go b/macos/avfoundation/player_playback_coordinator_delegate.gen.go index 395c5e1a..b87d9c18 100644 --- a/macos/avfoundation/player_playback_coordinator_delegate.gen.go +++ b/macos/avfoundation/player_playback_coordinator_delegate.gen.go @@ -1,8 +1,9 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package avfoundation import ( + "github.com/progrium/macdriver/macos/foundation" "github.com/progrium/macdriver/objc" ) @@ -10,6 +11,10 @@ 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 @@ -17,9 +22,27 @@ type PPlayerPlaybackCoordinatorDelegate interface { // A delegate implementation builder for the [PPlayerPlaybackCoordinatorDelegate] protocol. type PlayerPlaybackCoordinatorDelegate struct { - _PlaybackCoordinatorIdentifierForPlayerItem func(coordinator PlayerPlaybackCoordinator, playerItem PlayerItem) string + _PlaybackCoordinatorInterstitialTimeRangesForPlayerItem func(coordinator PlayerPlaybackCoordinator, playerItem PlayerItem) []foundation.Value + _PlaybackCoordinatorIdentifierForPlayerItem func(coordinator PlayerPlaybackCoordinator, playerItem PlayerItem) string +} + +func (di *PlayerPlaybackCoordinatorDelegate) HasPlaybackCoordinatorInterstitialTimeRangesForPlayerItem() bool { + return di._PlaybackCoordinatorInterstitialTimeRangesForPlayerItem != nil } +// 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 } @@ -38,19 +61,34 @@ func (di *PlayerPlaybackCoordinatorDelegate) PlaybackCoordinatorIdentifierForPla return di._PlaybackCoordinatorIdentifierForPlayerItem(coordinator, playerItem) } -// A concrete type wrapper for the [PPlayerPlaybackCoordinatorDelegate] protocol. -type PlayerPlaybackCoordinatorDelegateWrapper struct { +// ensure impl type implements protocol interface +var _ PPlayerPlaybackCoordinatorDelegate = (*PlayerPlaybackCoordinatorDelegateObject)(nil) + +// A concrete type for the [PPlayerPlaybackCoordinatorDelegate] protocol. +type PlayerPlaybackCoordinatorDelegateObject struct { objc.Object } -func (p_ PlayerPlaybackCoordinatorDelegateWrapper) HasPlaybackCoordinatorIdentifierForPlayerItem() bool { +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:"), objc.Ptr(coordinator), objc.Ptr(playerItem)) + return rv +} + +func (p_ PlayerPlaybackCoordinatorDelegateObject) HasPlaybackCoordinatorIdentifierForPlayerItem() bool { return p_.RespondsToSelector(objc.Sel("playbackCoordinator:identifierForPlayerItem:")) } // Returns an identifier for a player item. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/avfoundation/avplayerplaybackcoordinatordelegate/3750304-playbackcoordinator?language=objc -func (p_ PlayerPlaybackCoordinatorDelegateWrapper) PlaybackCoordinatorIdentifierForPlayerItem(coordinator IPlayerPlaybackCoordinator, playerItem IPlayerItem) string { +func (p_ PlayerPlaybackCoordinatorDelegateObject) PlaybackCoordinatorIdentifierForPlayerItem(coordinator PlayerPlaybackCoordinator, playerItem PlayerItem) string { rv := objc.Call[string](p_, objc.Sel("playbackCoordinator:identifierForPlayerItem:"), objc.Ptr(coordinator), objc.Ptr(playerItem)) return rv } diff --git a/macos/avfoundation/portrait_effects_matte.gen.go b/macos/avfoundation/portrait_effects_matte.gen.go index 54e07945..a3bf55eb 100644 --- a/macos/avfoundation/portrait_effects_matte.gen.go +++ b/macos/avfoundation/portrait_effects_matte.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package avfoundation @@ -39,6 +39,18 @@ func PortraitEffectsMatteFrom(ptr unsafe.Pointer) PortraitEffectsMatte { } } +func (pc _PortraitEffectsMatteClass) PortraitEffectsMatteFromDictionaryRepresentationError(imageSourceAuxDataInfoDictionary foundation.Dictionary, outError foundation.IError) PortraitEffectsMatte { + rv := objc.Call[PortraitEffectsMatte](pc, objc.Sel("portraitEffectsMatteFromDictionaryRepresentation:error:"), imageSourceAuxDataInfoDictionary, objc.Ptr(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 foundation.IError) PortraitEffectsMatte { + return PortraitEffectsMatteClass.PortraitEffectsMatteFromDictionaryRepresentationError(imageSourceAuxDataInfoDictionary, outError) +} + func (p_ PortraitEffectsMatte) PortraitEffectsMatteByReplacingPortraitEffectsMatteWithPixelBufferError(pixelBuffer corevideo.PixelBufferRef, outError foundation.IError) PortraitEffectsMatte { rv := objc.Call[PortraitEffectsMatte](p_, objc.Sel("portraitEffectsMatteByReplacingPortraitEffectsMatteWithPixelBuffer:error:"), pixelBuffer, objc.Ptr(outError)) return rv @@ -67,27 +79,11 @@ func PortraitEffectsMatte_PortraitEffectsMatteByApplyingExifOrientation(exifOrie return instance } -func (pc _PortraitEffectsMatteClass) PortraitEffectsMatteFromDictionaryRepresentationError(imageSourceAuxDataInfoDictionary foundation.Dictionary, outError foundation.IError) PortraitEffectsMatte { - rv := objc.Call[PortraitEffectsMatte](pc, objc.Sel("portraitEffectsMatteFromDictionaryRepresentation:error:"), imageSourceAuxDataInfoDictionary, objc.Ptr(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 foundation.IError) PortraitEffectsMatte { - return PortraitEffectsMatteClass.PortraitEffectsMatteFromDictionaryRepresentationError(imageSourceAuxDataInfoDictionary, outError) -} - func (pc _PortraitEffectsMatteClass) Alloc() PortraitEffectsMatte { rv := objc.Call[PortraitEffectsMatte](pc, objc.Sel("alloc")) return rv } -func PortraitEffectsMatte_Alloc() PortraitEffectsMatte { - return PortraitEffectsMatteClass.Alloc() -} - func (pc _PortraitEffectsMatteClass) New() PortraitEffectsMatte { rv := objc.Call[PortraitEffectsMatte](pc, objc.Sel("new")) rv.Autorelease() diff --git a/macos/avfoundation/protocols.gen.m b/macos/avfoundation/protocols.gen.m index dd66583a..dc2aeac0 100644 --- a/macos/avfoundation/protocols.gen.m +++ b/macos/avfoundation/protocols.gen.m @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. #import "AVFoundation/AVFoundation.h" @@ -26,5 +26,6 @@ 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 4547e2cf..07fc8c55 100644 --- a/macos/avfoundation/queue_player.gen.go +++ b/macos/avfoundation/queue_player.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package avfoundation @@ -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] @@ -58,10 +58,6 @@ func (qc _QueuePlayerClass) Alloc() QueuePlayer { return rv } -func QueuePlayer_Alloc() QueuePlayer { - return QueuePlayerClass.Alloc() -} - func (qc _QueuePlayerClass) New() QueuePlayer { rv := objc.Call[QueuePlayer](qc, objc.Sel("new")) rv.Autorelease() @@ -89,18 +85,16 @@ func QueuePlayer_PlayerWithPlayerItem(item IPlayerItem) QueuePlayer { return QueuePlayerClass.PlayerWithPlayerItem(item) } -func (q_ QueuePlayer) InitWithURL(URL foundation.IURL) QueuePlayer { - rv := objc.Call[QueuePlayer](q_, objc.Sel("initWithURL:"), objc.Ptr(URL)) +func (qc _QueuePlayerClass) PlayerWithURL(URL foundation.IURL) QueuePlayer { + rv := objc.Call[QueuePlayer](qc, objc.Sel("playerWithURL:"), objc.Ptr(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) } func (q_ QueuePlayer) InitWithPlayerItem(item IPlayerItem) QueuePlayer { @@ -117,38 +111,25 @@ func NewQueuePlayerWithPlayerItem(item IPlayerItem) QueuePlayer { return instance } -func (qc _QueuePlayerClass) PlayerWithURL(URL foundation.IURL) QueuePlayer { - rv := objc.Call[QueuePlayer](qc, objc.Sel("playerWithURL:"), objc.Ptr(URL)) - return rv -} - -// 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/1538409-playerwithurl?language=objc -func QueuePlayer_PlayerWithURL(URL foundation.IURL) QueuePlayer { - return QueuePlayerClass.PlayerWithURL(URL) -} - -// 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")) +func (q_ QueuePlayer) InitWithURL(URL foundation.IURL) QueuePlayer { + rv := objc.Call[QueuePlayer](q_, objc.Sel("initWithURL:"), objc.Ptr(URL)) return rv } -// Removes all player items from the queue. [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/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/avplayer/1385706-initwithurl?language=objc +func NewQueuePlayerWithURL(URL foundation.IURL) QueuePlayer { + instance := QueuePlayerClass.Alloc().InitWithURL(URL) + instance.Autorelease() + return instance } -// 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:"), objc.Ptr(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:"), objc.Ptr(item), objc.Ptr(afterItem)) } // Creates an object that plays a queue of items. [Full Topic] @@ -159,6 +140,13 @@ 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 @@ -167,16 +155,24 @@ func (q_ QueuePlayer) CanInsertItemAfterItem(item IPlayerItem, afterItem IPlayer return rv } -// Ends playback of the current item and starts playback of the next item in the player’s queue. [Full Topic] +// Returns an array of the currently enqueued items. [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")) +// [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 } -// Inserts a player item after another player item in the queue. [Full Topic] +// Removes all player items from the queue. [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:"), objc.Ptr(item), objc.Ptr(afterItem)) +// [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:"), objc.Ptr(item)) } diff --git a/macos/avfoundation/queued_sample_buffer_rendering.gen.go b/macos/avfoundation/queued_sample_buffer_rendering_protocol.gen.go similarity index 69% rename from macos/avfoundation/queued_sample_buffer_rendering.gen.go rename to macos/avfoundation/queued_sample_buffer_rendering_protocol.gen.go index ce8c8ec7..918e3b04 100644 --- a/macos/avfoundation/queued_sample_buffer_rendering.gen.go +++ b/macos/avfoundation/queued_sample_buffer_rendering_protocol.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package avfoundation @@ -13,21 +13,25 @@ import ( // [Full Topic]: https://developer.apple.com/documentation/avfoundation/avqueuedsamplebufferrendering?language=objc type PQueuedSampleBufferRendering interface { // optional - StopRequestingMediaData() - HasStopRequestingMediaData() bool + Flush() + HasFlush() bool // optional RequestMediaDataWhenReadyOnQueueUsingBlock(queue dispatch.Queue, block func()) HasRequestMediaDataWhenReadyOnQueueUsingBlock() bool - // optional - Flush() - HasFlush() bool - // optional EnqueueSampleBuffer(sampleBuffer coremedia.SampleBufferRef) HasEnqueueSampleBuffer() bool + // optional + StopRequestingMediaData() + HasStopRequestingMediaData() bool + + // optional + HasSufficientMediaDataForReliablePlaybackStart() bool + HasHasSufficientMediaDataForReliablePlaybackStart() bool + // optional IsReadyForMoreMediaData() bool HasIsReadyForMoreMediaData() bool @@ -35,93 +39,92 @@ type PQueuedSampleBufferRendering interface { // optional Timebase() coremedia.TimebaseRef HasTimebase() bool - - // optional - HasSufficientMediaDataForReliablePlaybackStart() bool - HasHasSufficientMediaDataForReliablePlaybackStart() bool } -// A concrete type wrapper for the [PQueuedSampleBufferRendering] protocol. -type QueuedSampleBufferRenderingWrapper struct { +// ensure impl type implements protocol interface +var _ PQueuedSampleBufferRendering = (*QueuedSampleBufferRenderingObject)(nil) + +// A concrete type for the [PQueuedSampleBufferRendering] protocol. +type QueuedSampleBufferRenderingObject struct { objc.Object } -func (q_ QueuedSampleBufferRenderingWrapper) HasStopRequestingMediaData() bool { - return q_.RespondsToSelector(objc.Sel("stopRequestingMediaData")) +func (q_ QueuedSampleBufferRenderingObject) HasFlush() bool { + return q_.RespondsToSelector(objc.Sel("flush")) } -// Cancels any current requestMediaDataWhenReadyOnQueue:usingBlock: call. [Full Topic] +// Discards all pending enqueued sample buffers. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avqueuedsamplebufferrendering/2867642-stoprequestingmediadata?language=objc -func (q_ QueuedSampleBufferRenderingWrapper) StopRequestingMediaData() { - objc.Call[objc.Void](q_, objc.Sel("stopRequestingMediaData")) +// [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_ QueuedSampleBufferRenderingWrapper) HasRequestMediaDataWhenReadyOnQueueUsingBlock() bool { +func (q_ QueuedSampleBufferRenderingObject) HasRequestMediaDataWhenReadyOnQueueUsingBlock() bool { return q_.RespondsToSelector(objc.Sel("requestMediaDataWhenReadyOnQueue:usingBlock:")) } // Tells the target to invoke a client-supplied block in order to gather sample buffers for playback. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/avfoundation/avqueuedsamplebufferrendering/2867643-requestmediadatawhenreadyonqueue?language=objc -func (q_ QueuedSampleBufferRenderingWrapper) RequestMediaDataWhenReadyOnQueueUsingBlock(queue dispatch.Queue, block func()) { +func (q_ QueuedSampleBufferRenderingObject) RequestMediaDataWhenReadyOnQueueUsingBlock(queue dispatch.Queue, block func()) { objc.Call[objc.Void](q_, objc.Sel("requestMediaDataWhenReadyOnQueue:usingBlock:"), queue, block) } -func (q_ QueuedSampleBufferRenderingWrapper) HasFlush() bool { - return q_.RespondsToSelector(objc.Sel("flush")) +func (q_ QueuedSampleBufferRenderingObject) HasEnqueueSampleBuffer() bool { + return q_.RespondsToSelector(objc.Sel("enqueueSampleBuffer:")) } -// Discards all pending enqueued sample buffers. [Full Topic] +// Sends a sample buffer to the queue for rendering. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avqueuedsamplebufferrendering/2867639-flush?language=objc -func (q_ QueuedSampleBufferRenderingWrapper) Flush() { - objc.Call[objc.Void](q_, objc.Sel("flush")) +// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avqueuedsamplebufferrendering/2867641-enqueuesamplebuffer?language=objc +func (q_ QueuedSampleBufferRenderingObject) EnqueueSampleBuffer(sampleBuffer coremedia.SampleBufferRef) { + objc.Call[objc.Void](q_, objc.Sel("enqueueSampleBuffer:"), sampleBuffer) } -func (q_ QueuedSampleBufferRenderingWrapper) HasEnqueueSampleBuffer() bool { - return q_.RespondsToSelector(objc.Sel("enqueueSampleBuffer:")) +func (q_ QueuedSampleBufferRenderingObject) HasStopRequestingMediaData() bool { + return q_.RespondsToSelector(objc.Sel("stopRequestingMediaData")) } -// Sends a sample buffer to the queue for rendering. [Full Topic] +// Cancels any current [avfoundation/avqueuedsamplebufferrendering/requestmediadatawhenreadyonqueue] call. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avqueuedsamplebufferrendering/2867641-enqueuesamplebuffer?language=objc -func (q_ QueuedSampleBufferRenderingWrapper) EnqueueSampleBuffer(sampleBuffer coremedia.SampleBufferRef) { - objc.Call[objc.Void](q_, objc.Sel("enqueueSampleBuffer:"), sampleBuffer) +// [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")) } -func (q_ QueuedSampleBufferRenderingWrapper) HasIsReadyForMoreMediaData() bool { +// 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")) } // A Boolean value that indicates whether the receiver is able to accept more sample buffers. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/avfoundation/avqueuedsamplebufferrendering/2867638-readyformoremediadata?language=objc -func (q_ QueuedSampleBufferRenderingWrapper) IsReadyForMoreMediaData() bool { +func (q_ QueuedSampleBufferRenderingObject) IsReadyForMoreMediaData() bool { rv := objc.Call[bool](q_, objc.Sel("isReadyForMoreMediaData")) return rv } -func (q_ QueuedSampleBufferRenderingWrapper) HasTimebase() bool { +func (q_ QueuedSampleBufferRenderingObject) HasTimebase() bool { return q_.RespondsToSelector(objc.Sel("timebase")) } // The timebase for a renderer. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/avfoundation/avqueuedsamplebufferrendering/2867640-timebase?language=objc -func (q_ QueuedSampleBufferRenderingWrapper) Timebase() coremedia.TimebaseRef { +func (q_ QueuedSampleBufferRenderingObject) Timebase() coremedia.TimebaseRef { rv := objc.Call[coremedia.TimebaseRef](q_, objc.Sel("timebase")) return rv } - -func (q_ QueuedSampleBufferRenderingWrapper) 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_ QueuedSampleBufferRenderingWrapper) 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 6590338b..1944f1fe 100644 --- a/macos/avfoundation/route_detector.gen.go +++ b/macos/avfoundation/route_detector.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package avfoundation @@ -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] @@ -41,10 +41,6 @@ func (rc _RouteDetectorClass) Alloc() RouteDetector { return rv } -func RouteDetector_Alloc() RouteDetector { - return RouteDetectorClass.Alloc() -} - func (rc _RouteDetectorClass) New() RouteDetector { rv := objc.Call[RouteDetector](rc, objc.Sel("new")) rv.Autorelease() @@ -60,14 +56,6 @@ 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 @@ -82,3 +70,11 @@ 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 2f33613a..2d6a43f0 100644 --- a/macos/avfoundation/sample_buffer_audio_renderer.gen.go +++ b/macos/avfoundation/sample_buffer_audio_renderer.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package avfoundation @@ -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() float64 SetVolume(value float64) + 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) - Status() QueuedSampleBufferRenderingStatus + AllowedAudioSpatializationFormats() AudioSpatializationFormats + SetAllowedAudioSpatializationFormats(value AudioSpatializationFormats) } // An object used to decompress audio and play compressed or uncompressed audio. [Full Topic] @@ -53,10 +53,6 @@ func (sc _SampleBufferAudioRendererClass) Alloc() SampleBufferAudioRenderer { return rv } -func SampleBufferAudioRenderer_Alloc() SampleBufferAudioRenderer { - return SampleBufferAudioRendererClass.Alloc() -} - func (sc _SampleBufferAudioRendererClass) New() SampleBufferAudioRenderer { rv := objc.Call[SampleBufferAudioRenderer](sc, objc.Sel("new")) rv.Autorelease() @@ -79,21 +75,6 @@ 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 @@ -109,6 +90,29 @@ func (s_ SampleBufferAudioRenderer) SetVolume(value float64) { 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 @@ -132,21 +136,6 @@ 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 @@ -162,10 +151,17 @@ func (s_ SampleBufferAudioRenderer) SetAudioOutputDeviceUniqueID(value string) { objc.Call[objc.Void](s_, objc.Sel("setAudioOutputDeviceUniqueID:"), value) } -// The status of the audio renderer. [Full Topic] +// The source audio channel layouts the audio renderer supports for spatialization. [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")) +// [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) +} diff --git a/macos/avfoundation/sample_buffer_display_layer.gen.go b/macos/avfoundation/sample_buffer_display_layer.gen.go index c3b037cd..294e15ed 100644 --- a/macos/avfoundation/sample_buffer_display_layer.gen.go +++ b/macos/avfoundation/sample_buffer_display_layer.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package avfoundation @@ -20,13 +20,13 @@ type _SampleBufferDisplayLayerClass struct { // An interface definition for the [SampleBufferDisplayLayer] class. type ISampleBufferDisplayLayer interface { quartzcore.ILayer - VideoGravity() LayerVideoGravity - SetVideoGravity(value LayerVideoGravity) - OutputObscuredDueToInsufficientExternalProtection() bool - ControlTimebase() coremedia.TimebaseRef - SetControlTimebase(value coremedia.TimebaseRef) PreventsCapture() bool SetPreventsCapture(value bool) + ControlTimebase() coremedia.TimebaseRef + SetControlTimebase(value coremedia.TimebaseRef) + OutputObscuredDueToInsufficientExternalProtection() bool + VideoGravity() LayerVideoGravity + SetVideoGravity(value LayerVideoGravity) PreventsDisplaySleepDuringVideoPlayback() bool SetPreventsDisplaySleepDuringVideoPlayback(value bool) } @@ -49,10 +49,6 @@ func (sc _SampleBufferDisplayLayerClass) Alloc() SampleBufferDisplayLayer { return rv } -func SampleBufferDisplayLayer_Alloc() SampleBufferDisplayLayer { - return SampleBufferDisplayLayerClass.Alloc() -} - func (sc _SampleBufferDisplayLayerClass) New() SampleBufferDisplayLayer { rv := objc.Call[SampleBufferDisplayLayer](sc, objc.Sel("new")) rv.Autorelease() @@ -68,32 +64,6 @@ 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 @@ -122,29 +92,47 @@ func SampleBufferDisplayLayer_PresentationLayer() SampleBufferDisplayLayer { return instance } -// A string defining how the video is displayed within the bounds rect of a sample buffer display layer. [Full Topic] +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/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/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")) return rv } -// A string defining how the video is displayed within the bounds rect of a sample buffer display layer. [Full Topic] +// Creates and returns an instance of the layer object. [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/quartzcore/calayer/1410793-layer?language=objc +func SampleBufferDisplayLayer_Layer() SampleBufferDisplayLayer { + return SampleBufferDisplayLayerClass.Layer() } -// A Boolean value that indicates whether the system obscures decoded output due to insufficient external protection on the current device. [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/3726154-outputobscuredduetoinsufficiente?language=objc -func (s_ SampleBufferDisplayLayer) OutputObscuredDueToInsufficientExternalProtection() bool { - rv := objc.Call[bool](s_, objc.Sel("outputObscuredDueToInsufficientExternalProtection")) +// [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 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 @@ -160,19 +148,27 @@ func (s_ SampleBufferDisplayLayer) SetControlTimebase(value coremedia.TimebaseRe objc.Call[objc.Void](s_, objc.Sel("setControlTimebase:"), 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] +// 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/avfoundation/avsamplebufferdisplaylayer/3081651-preventscapture?language=objc -func (s_ SampleBufferDisplayLayer) SetPreventsCapture(value bool) { - objc.Call[objc.Void](s_, objc.Sel("setPreventsCapture:"), value) +// [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 +} + +// 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/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 prevents the system from sleeping during video playback. [Full Topic] diff --git a/macos/avfoundation/sample_buffer_generator.gen.go b/macos/avfoundation/sample_buffer_generator.gen.go index bed47b5e..1eebd7fe 100644 --- a/macos/avfoundation/sample_buffer_generator.gen.go +++ b/macos/avfoundation/sample_buffer_generator.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package avfoundation @@ -54,10 +54,6 @@ func (sc _SampleBufferGeneratorClass) Alloc() SampleBufferGenerator { return rv } -func SampleBufferGenerator_Alloc() SampleBufferGenerator { - return SampleBufferGeneratorClass.Alloc() -} - func (sc _SampleBufferGeneratorClass) New() SampleBufferGenerator { rv := objc.Call[SampleBufferGenerator](sc, objc.Sel("new")) rv.Autorelease() diff --git a/macos/avfoundation/sample_buffer_render_synchronizer.gen.go b/macos/avfoundation/sample_buffer_render_synchronizer.gen.go index 18a07808..2c47ae7e 100644 --- a/macos/avfoundation/sample_buffer_render_synchronizer.gen.go +++ b/macos/avfoundation/sample_buffer_render_synchronizer.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package avfoundation @@ -21,21 +21,22 @@ type _SampleBufferRenderSynchronizerClass struct { // An interface definition for the [SampleBufferRenderSynchronizer] class. type ISampleBufferRenderSynchronizer interface { objc.IObject - RemoveTimeObserver(observer objc.IObject) + AddRenderer(renderer PQueuedSampleBufferRendering) + AddRendererObject(rendererObject objc.IObject) SetRateTimeAtHostTime(rate float64, 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)) - AddRenderer(renderer PQueuedSampleBufferRendering) - AddRendererObject(rendererObject objc.IObject) + SetRateTime(rate float64, time coremedia.Time) + AddBoundaryTimeObserverForTimesQueueUsingBlock(times []foundation.IValue, queue dispatch.Queue, block func()) objc.Object 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() float64 SetRate(value float64) - Timebase() coremedia.TimebaseRef - Renderers() []QueuedSampleBufferRenderingWrapper + Renderers() []QueuedSampleBufferRenderingObject } // An object used to synchronize multiple queued sample buffers to a single timeline. [Full Topic] @@ -56,10 +57,6 @@ func (sc _SampleBufferRenderSynchronizerClass) Alloc() SampleBufferRenderSynchro return rv } -func SampleBufferRenderSynchronizer_Alloc() SampleBufferRenderSynchronizer { - return SampleBufferRenderSynchronizerClass.Alloc() -} - func (sc _SampleBufferRenderSynchronizerClass) New() SampleBufferRenderSynchronizer { rv := objc.Call[SampleBufferRenderSynchronizer](sc, objc.Sel("new")) rv.Autorelease() @@ -75,11 +72,19 @@ func (s_ SampleBufferRenderSynchronizer) Init() SampleBufferRenderSynchronizer { return rv } -// Cancels the specified time observer. [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/2867829-removetimeobserver?language=objc -func (s_ SampleBufferRenderSynchronizer) RemoveTimeObserver(observer objc.IObject) { - objc.Call[objc.Void](s_, objc.Sel("removeTimeObserver:"), observer) +// [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] +// +// [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:"), objc.Ptr(rendererObject)) } // Sets the playback rate and the relationship between the current time and host time. [Full Topic] @@ -89,22 +94,6 @@ func (s_ SampleBufferRenderSynchronizer) SetRateTimeAtHostTime(rate float64, 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 @@ -120,19 +109,19 @@ func (s_ SampleBufferRenderSynchronizer) RemoveRendererObjectAtTimeCompletionHan objc.Call[objc.Void](s_, objc.Sel("removeRenderer:atTime:completionHandler:"), objc.Ptr(rendererObject), time, completionHandler) } -// Adds a renderer to the list of renderers under the synchronizer's control. [Full Topic] +// Sets the renderer’s time and rate. [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) +// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avsamplebufferrendersynchronizer/2867821-setrate?language=objc +func (s_ SampleBufferRenderSynchronizer) SetRateTime(rate float64, time coremedia.Time) { + objc.Call[objc.Void](s_, objc.Sel("setRate:time:"), rate, time) } -// Adds a renderer to the list of renderers under the synchronizer's control. [Full Topic] +// Requests invocation of a block when specified times are traversed during normal rendering. [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:"), objc.Ptr(rendererObject)) +// [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 } // Returns the current time of the synchronizer. [Full Topic] @@ -143,6 +132,29 @@ 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 @@ -173,18 +185,10 @@ func (s_ SampleBufferRenderSynchronizer) SetRate(value float64) { 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 -func (s_ SampleBufferRenderSynchronizer) Renderers() []QueuedSampleBufferRenderingWrapper { - rv := objc.Call[[]QueuedSampleBufferRenderingWrapper](s_, objc.Sel("renderers")) +func (s_ SampleBufferRenderSynchronizer) Renderers() []QueuedSampleBufferRenderingObject { + rv := objc.Call[[]QueuedSampleBufferRenderingObject](s_, objc.Sel("renderers")) return rv } diff --git a/macos/avfoundation/sample_buffer_request.gen.go b/macos/avfoundation/sample_buffer_request.gen.go index 711b9364..1b7db846 100644 --- a/macos/avfoundation/sample_buffer_request.gen.go +++ b/macos/avfoundation/sample_buffer_request.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package avfoundation @@ -19,19 +19,19 @@ type _SampleBufferRequestClass struct { // An interface definition for the [SampleBufferRequest] class. type ISampleBufferRequest interface { objc.IObject - Direction() SampleBufferRequestDirection - SetDirection(value SampleBufferRequestDirection) - LimitCursor() SampleCursor - SetLimitCursor(value ISampleCursor) PreferredMinSampleCount() int SetPreferredMinSampleCount(value int) + Mode() SampleBufferRequestMode + SetMode(value SampleBufferRequestMode) + StartCursor() SampleCursor + Direction() SampleBufferRequestDirection + SetDirection(value SampleBufferRequestDirection) MaxSampleCount() int SetMaxSampleCount(value int) OverrideTime() coremedia.Time SetOverrideTime(value coremedia.Time) - Mode() SampleBufferRequestMode - SetMode(value SampleBufferRequestMode) - StartCursor() SampleCursor + LimitCursor() SampleCursor + SetLimitCursor(value ISampleCursor) } // An object that describes a sample buffer creation request. [Full Topic] @@ -66,10 +66,6 @@ func (sc _SampleBufferRequestClass) Alloc() SampleBufferRequest { return rv } -func SampleBufferRequest_Alloc() SampleBufferRequest { - return SampleBufferRequestClass.Alloc() -} - func (sc _SampleBufferRequestClass) New() SampleBufferRequest { rv := objc.Call[SampleBufferRequest](sc, objc.Sel("new")) rv.Autorelease() @@ -85,49 +81,57 @@ func (s_ SampleBufferRequest) Init() SampleBufferRequest { 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) 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 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:"), objc.Ptr(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 preferred minimum number of samples to load. [Full Topic] +// The starting cursor position. [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/1387398-startcursor?language=objc +func (s_ SampleBufferRequest) StartCursor() SampleCursor { + rv := objc.Call[SampleCursor](s_, objc.Sel("startCursor")) 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) Direction() SampleBufferRequestDirection { + rv := objc.Call[SampleBufferRequestDirection](s_, objc.Sel("direction")) + return rv +} + +// The buffer sample direction. [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) } // The maximum number of samples to load. [Full Topic] @@ -160,25 +164,17 @@ func (s_ SampleBufferRequest) SetOverrideTime(value coremedia.Time) { objc.Call[objc.Void](s_, objc.Sel("setOverrideTime:"), 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:"), objc.Ptr(value)) } diff --git a/macos/avfoundation/sample_cursor.gen.go b/macos/avfoundation/sample_cursor.gen.go index 49a500a3..0faf9159 100644 --- a/macos/avfoundation/sample_cursor.gen.go +++ b/macos/avfoundation/sample_cursor.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package avfoundation @@ -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 - CurrentSampleDuration() coremedia.Time + CurrentSampleIndexInChunk() int64 SamplesRequiredForDecoderRefresh() int - CurrentSampleStorageRange() SampleCursorStorageRange - PresentationTimeStamp() coremedia.Time + CurrentChunkStorageRange() SampleCursorStorageRange CurrentSampleDependencyInfo() SampleCursorDependencyInfo + PresentationTimeStamp() coremedia.Time + CurrentChunkStorageURL() foundation.URL CurrentSampleDependencyAttachments() foundation.Dictionary - CurrentSampleIndexInChunk() int64 + CurrentSampleDuration() coremedia.Time + CurrentSampleStorageRange() SampleCursorStorageRange + CurrentSampleSyncInfo() SampleCursorSyncInfo + DecodeTimeStamp() coremedia.Time CurrentSampleAudioDependencyInfo() SampleCursorAudioDependencyInfo - CurrentChunkStorageURL() foundation.URL } // An object that provides information about the media sample at the cursor’s current position. [Full Topic] @@ -61,10 +61,6 @@ func (sc _SampleCursorClass) Alloc() SampleCursor { return rv } -func SampleCursor_Alloc() SampleCursor { - return SampleCursorClass.Alloc() -} - func (sc _SampleCursorClass) New() SampleCursor { rv := objc.Call[SampleCursor](sc, objc.Sel("new")) rv.Autorelease() @@ -80,38 +76,6 @@ func (s_ SampleCursor) Init() SampleCursor { 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 -func (s_ SampleCursor) StepInPresentationOrderByCount(stepCount int64) int64 { - rv := objc.Call[int64](s_, objc.Sel("stepInPresentationOrderByCount:"), stepCount) - return rv -} - -// Moves the cursor a given number of samples in decode order. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avsamplecursor/1389606-stepindecodeorderbycount?language=objc -func (s_ SampleCursor) StepInDecodeOrderByCount(stepCount int64) int64 { - rv := objc.Call[int64](s_, objc.Sel("stepInDecodeOrderByCount:"), stepCount) - return rv -} - -// Determines whether a sample later in decode order can have a presentation timestamp earlier than that of the specified sample cursor. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avsamplecursor/1390029-sampleswithlaterdecodetimestamps?language=objc -func (s_ SampleCursor) SamplesWithLaterDecodeTimeStampsMayHaveEarlierPresentationTimeStampsThanCursor(cursor ISampleCursor) bool { - rv := objc.Call[bool](s_, objc.Sel("samplesWithLaterDecodeTimeStampsMayHaveEarlierPresentationTimeStampsThanCursor:"), objc.Ptr(cursor)) - return rv -} - -// Moves the cursor by a given delta time on the decode timeline. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avsamplecursor/1389152-stepbydecodetime?language=objc -func (s_ SampleCursor) StepByDecodeTimeWasPinned(deltaDecodeTime coremedia.Time, outWasPinned *bool) coremedia.Time { - rv := objc.Call[coremedia.Time](s_, objc.Sel("stepByDecodeTime:wasPinned:"), deltaDecodeTime, outWasPinned) - 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 @@ -120,6 +84,14 @@ func (s_ SampleCursor) ComparePositionInDecodeOrderWithPositionOfCursor(cursor I 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:"), objc.Ptr(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 @@ -136,35 +108,35 @@ func (s_ SampleCursor) StepByPresentationTimeWasPinned(deltaPresentationTime cor 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] +// Moves the cursor a given number of samples in presentation order. [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:"), objc.Ptr(cursor)) +// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avsamplecursor/1388834-stepinpresentationorderbycount?language=objc +func (s_ SampleCursor) StepInPresentationOrderByCount(stepCount int64) int64 { + rv := objc.Call[int64](s_, objc.Sel("stepInPresentationOrderByCount:"), stepCount) return rv } -// The sample range in the storage container to load together with the current sample as a chunk. [Full Topic] +// Moves the cursor a given number of samples in decode order. [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/1389606-stepindecodeorderbycount?language=objc +func (s_ SampleCursor) StepInDecodeOrderByCount(stepCount int64) int64 { + rv := objc.Call[int64](s_, objc.Sel("stepInDecodeOrderByCount:"), stepCount) return rv } -// The decode timestamp of the sample at the current position of the cursor. [Full Topic] +// Determines whether a sample later in decode order can have a presentation timestamp earlier than that of the specified sample cursor. [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/1390029-sampleswithlaterdecodetimestamps?language=objc +func (s_ SampleCursor) SamplesWithLaterDecodeTimeStampsMayHaveEarlierPresentationTimeStampsThanCursor(cursor ISampleCursor) bool { + rv := objc.Call[bool](s_, objc.Sel("samplesWithLaterDecodeTimeStampsMayHaveEarlierPresentationTimeStampsThanCursor:"), objc.Ptr(cursor)) return rv } -// The synchronization information for the current sample for consideration when resynchronizing a decoder. [Full Topic] +// Moves the cursor by a given delta time on the decode timeline. [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/1389152-stepbydecodetime?language=objc +func (s_ SampleCursor) StepByDecodeTimeWasPinned(deltaDecodeTime coremedia.Time, outWasPinned *bool) coremedia.Time { + rv := objc.Call[coremedia.Time](s_, objc.Sel("stepByDecodeTime:wasPinned:"), deltaDecodeTime, outWasPinned) return rv } @@ -176,11 +148,11 @@ func (s_ SampleCursor) CurrentChunkInfo() SampleCursorChunkInfo { return rv } -// The decode duration of the sample at the cursor’s current position. [Full Topic] +// The index of the current sample within the chunk to which it belongs. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avsamplecursor/1389833-currentsampleduration?language=objc -func (s_ SampleCursor) CurrentSampleDuration() coremedia.Time { - rv := objc.Call[coremedia.Time](s_, objc.Sel("currentSampleDuration")) +// [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 } @@ -192,11 +164,19 @@ func (s_ SampleCursor) SamplesRequiredForDecoderRefresh() int { return rv } -// The offset and length of the current sample in the current chunk storage URL. [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/1386359-currentsamplestoragerange?language=objc -func (s_ SampleCursor) CurrentSampleStorageRange() SampleCursorStorageRange { - rv := objc.Call[SampleCursorStorageRange](s_, objc.Sel("currentSampleStorageRange")) +// [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 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/1390766-currentsampledependencyinfo?language=objc +func (s_ SampleCursor) CurrentSampleDependencyInfo() SampleCursorDependencyInfo { + rv := objc.Call[SampleCursorDependencyInfo](s_, objc.Sel("currentSampleDependencyInfo")) return rv } @@ -208,11 +188,11 @@ func (s_ SampleCursor) PresentationTimeStamp() coremedia.Time { return rv } -// The dependency information that describes relationships between a media sample and other media samples in the same sample sequence. [Full Topic] +// 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/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/1388328-currentchunkstorageurl?language=objc +func (s_ SampleCursor) CurrentChunkStorageURL() foundation.URL { + rv := objc.Call[foundation.URL](s_, objc.Sel("currentChunkStorageURL")) return rv } @@ -224,26 +204,42 @@ func (s_ SampleCursor) CurrentSampleDependencyAttachments() foundation.Dictionar return rv } -// The index of the current sample within the chunk to which it belongs. [Full Topic] +// The decode duration 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/1389833-currentsampleduration?language=objc +func (s_ SampleCursor) CurrentSampleDuration() coremedia.Time { + rv := objc.Call[coremedia.Time](s_, objc.Sel("currentSampleDuration")) return rv } -// The independent decodability information for the audio sample. [Full Topic] +// 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/3131266-currentsampleaudiodependencyinfo?language=objc -func (s_ SampleCursor) CurrentSampleAudioDependencyInfo() SampleCursorAudioDependencyInfo { - rv := objc.Call[SampleCursorAudioDependencyInfo](s_, objc.Sel("currentSampleAudioDependencyInfo")) +// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avsamplecursor/1386359-currentsamplestoragerange?language=objc +func (s_ SampleCursor) CurrentSampleStorageRange() SampleCursorStorageRange { + rv := objc.Call[SampleCursorStorageRange](s_, objc.Sel("currentSampleStorageRange")) 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 +} + +// The decode timestamp of the sample at the current position of the cursor. [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")) + return rv +} + +// The independent decodability information for the audio sample. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avsamplecursor/3131266-currentsampleaudiodependencyinfo?language=objc +func (s_ SampleCursor) CurrentSampleAudioDependencyInfo() SampleCursorAudioDependencyInfo { + rv := objc.Call[SampleCursorAudioDependencyInfo](s_, objc.Sel("currentSampleAudioDependencyInfo")) return rv } diff --git a/macos/avfoundation/semantic_segmentation_matte.gen.go b/macos/avfoundation/semantic_segmentation_matte.gen.go index 9438b646..6b3edd0a 100644 --- a/macos/avfoundation/semantic_segmentation_matte.gen.go +++ b/macos/avfoundation/semantic_segmentation_matte.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package avfoundation @@ -23,8 +23,8 @@ type _SemanticSegmentationMatteClass struct { type ISemanticSegmentationMatte interface { objc.IObject DictionaryRepresentationForAuxiliaryDataType(outAuxDataType string) foundation.Dictionary - MatteType() SemanticSegmentationMatteType PixelFormatType() uint + MatteType() SemanticSegmentationMatteType MattingImage() corevideo.PixelBufferRef } @@ -41,6 +41,18 @@ func SemanticSegmentationMatteFrom(ptr unsafe.Pointer) SemanticSegmentationMatte } } +func (sc _SemanticSegmentationMatteClass) SemanticSegmentationMatteFromImageSourceAuxiliaryDataTypeDictionaryRepresentationError(imageSourceAuxiliaryDataType corefoundation.StringRef, imageSourceAuxiliaryDataInfoDictionary foundation.Dictionary, outError foundation.IError) SemanticSegmentationMatte { + rv := objc.Call[SemanticSegmentationMatte](sc, objc.Sel("semanticSegmentationMatteFromImageSourceAuxiliaryDataType:dictionaryRepresentation:error:"), imageSourceAuxiliaryDataType, imageSourceAuxiliaryDataInfoDictionary, objc.Ptr(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 foundation.IError) 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 @@ -69,27 +81,11 @@ func SemanticSegmentationMatte_SemanticSegmentationMatteByReplacingSemanticSegme return instance } -func (sc _SemanticSegmentationMatteClass) SemanticSegmentationMatteFromImageSourceAuxiliaryDataTypeDictionaryRepresentationError(imageSourceAuxiliaryDataType corefoundation.StringRef, imageSourceAuxiliaryDataInfoDictionary foundation.Dictionary, outError foundation.IError) SemanticSegmentationMatte { - rv := objc.Call[SemanticSegmentationMatte](sc, objc.Sel("semanticSegmentationMatteFromImageSourceAuxiliaryDataType:dictionaryRepresentation:error:"), imageSourceAuxiliaryDataType, imageSourceAuxiliaryDataInfoDictionary, objc.Ptr(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 foundation.IError) SemanticSegmentationMatte { - return SemanticSegmentationMatteClass.SemanticSegmentationMatteFromImageSourceAuxiliaryDataTypeDictionaryRepresentationError(imageSourceAuxiliaryDataType, imageSourceAuxiliaryDataInfoDictionary, outError) -} - func (sc _SemanticSegmentationMatteClass) Alloc() SemanticSegmentationMatte { rv := objc.Call[SemanticSegmentationMatte](sc, objc.Sel("alloc")) return rv } -func SemanticSegmentationMatte_Alloc() SemanticSegmentationMatte { - return SemanticSegmentationMatteClass.Alloc() -} - func (sc _SemanticSegmentationMatteClass) New() SemanticSegmentationMatte { rv := objc.Call[SemanticSegmentationMatte](sc, objc.Sel("new")) rv.Autorelease() @@ -113,14 +109,6 @@ func (s_ SemanticSegmentationMatte) DictionaryRepresentationForAuxiliaryDataType return rv } -// The semantic segmentation matte image type. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avsemanticsegmentationmatte/3152119-mattetype?language=objc -func (s_ SemanticSegmentationMatte) MatteType() SemanticSegmentationMatteType { - rv := objc.Call[SemanticSegmentationMatteType](s_, objc.Sel("matteType")) - 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 @@ -129,6 +117,14 @@ func (s_ SemanticSegmentationMatte) PixelFormatType() uint { return rv } +// The semantic segmentation matte image type. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avsemanticsegmentationmatte/3152119-mattetype?language=objc +func (s_ SemanticSegmentationMatte) MatteType() SemanticSegmentationMatteType { + rv := objc.Call[SemanticSegmentationMatteType](s_, objc.Sel("matteType")) + 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 e52c70a5..f7e9faf5 100644 --- a/macos/avfoundation/synchronized_layer.gen.go +++ b/macos/avfoundation/synchronized_layer.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package avfoundation @@ -41,10 +41,6 @@ func (sc _SynchronizedLayerClass) Alloc() SynchronizedLayer { return rv } -func SynchronizedLayer_Alloc() SynchronizedLayer { - return SynchronizedLayerClass.Alloc() -} - func (sc _SynchronizedLayerClass) New() SynchronizedLayer { rv := objc.Call[SynchronizedLayer](sc, objc.Sel("new")) rv.Autorelease() @@ -60,32 +56,6 @@ func (s_ SynchronizedLayer) Init() SynchronizedLayer { return rv } -func (sc _SynchronizedLayerClass) Layer() SynchronizedLayer { - rv := objc.Call[SynchronizedLayer](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 SynchronizedLayer_Layer() SynchronizedLayer { - return SynchronizedLayerClass.Layer() -} - -func (s_ SynchronizedLayer) InitWithLayer(layer objc.IObject) SynchronizedLayer { - rv := objc.Call[SynchronizedLayer](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 NewSynchronizedLayerWithLayer(layer objc.IObject) SynchronizedLayer { - instance := SynchronizedLayerClass.Alloc().InitWithLayer(layer) - instance.Autorelease() - return instance -} - func (s_ SynchronizedLayer) ModelLayer() SynchronizedLayer { rv := objc.Call[SynchronizedLayer](s_, objc.Sel("modelLayer")) return rv @@ -114,6 +84,32 @@ func SynchronizedLayer_PresentationLayer() SynchronizedLayer { return instance } +func (s_ SynchronizedLayer) InitWithLayer(layer objc.IObject) SynchronizedLayer { + rv := objc.Call[SynchronizedLayer](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 NewSynchronizedLayerWithLayer(layer objc.IObject) SynchronizedLayer { + instance := SynchronizedLayerClass.Alloc().InitWithLayer(layer) + instance.Autorelease() + return instance +} + +func (sc _SynchronizedLayerClass) Layer() SynchronizedLayer { + rv := objc.Call[SynchronizedLayer](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 SynchronizedLayer_Layer() SynchronizedLayer { + return SynchronizedLayerClass.Layer() +} + // Creates a new synchronized layer with timing synchronized with a given player item. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/avfoundation/avsynchronizedlayer/1388781-synchronizedlayerwithplayeritem?language=objc diff --git a/macos/avfoundation/text_style_rule.gen.go b/macos/avfoundation/text_style_rule.gen.go index a8278ec6..523c48ed 100644 --- a/macos/avfoundation/text_style_rule.gen.go +++ b/macos/avfoundation/text_style_rule.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package avfoundation @@ -49,13 +49,23 @@ func NewTextStyleRuleWithTextMarkupAttributes(textMarkupAttributes map[string]ob return instance } -func (tc _TextStyleRuleClass) Alloc() TextStyleRule { - rv := objc.Call[TextStyleRule](tc, objc.Sel("alloc")) +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 } -func TextStyleRule_Alloc() TextStyleRule { - return TextStyleRuleClass.Alloc() +// 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 } func (tc _TextStyleRuleClass) New() TextStyleRule { @@ -73,6 +83,36 @@ 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 @@ -103,21 +143,6 @@ 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 0c873984..3bda20e1 100644 --- a/macos/avfoundation/timed_metadata_group.gen.go +++ b/macos/avfoundation/timed_metadata_group.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package avfoundation @@ -36,30 +36,30 @@ func TimedMetadataGroupFrom(ptr unsafe.Pointer) TimedMetadataGroup { } } -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 } -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 } @@ -69,10 +69,6 @@ func (tc _TimedMetadataGroupClass) Alloc() TimedMetadataGroup { return rv } -func TimedMetadataGroup_Alloc() TimedMetadataGroup { - return TimedMetadataGroupClass.Alloc() -} - func (tc _TimedMetadataGroupClass) New() TimedMetadataGroup { rv := objc.Call[TimedMetadataGroup](tc, objc.Sel("new")) rv.Autorelease() diff --git a/macos/avfoundation/url_asset.gen.go b/macos/avfoundation/url_asset.gen.go index cc423cdb..e9980a69 100644 --- a/macos/avfoundation/url_asset.gen.go +++ b/macos/avfoundation/url_asset.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package avfoundation @@ -20,10 +20,10 @@ type _URLAssetClass struct { type IURLAsset interface { IAsset FindCompatibleTrackForCompositionTrackCompletionHandler(compositionTrack ICompositionTrack, completionHandler func(arg0 AssetTrack, arg1 foundation.Error)) - ResourceLoader() AssetResourceLoader + AssetCache() AssetCache MayRequireContentKeysForMediaDataProcessing() bool + ResourceLoader() AssetResourceLoader URL() foundation.URL - AssetCache() AssetCache Variants() []AssetVariant } @@ -71,10 +71,6 @@ func (uc _URLAssetClass) Alloc() URLAsset { return rv } -func URLAsset_Alloc() URLAsset { - return URLAssetClass.Alloc() -} - func (uc _URLAssetClass) New() URLAsset { rv := objc.Call[URLAsset](uc, objc.Sel("new")) rv.Autorelease() @@ -117,19 +113,11 @@ func URLAsset_AudiovisualTypes() []FileType { return URLAssetClass.AudiovisualTypes() } -// 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:"), objc.Ptr(compositionTrack), completionHandler) } // Returns an array of the MIME types the asset supports. [Full Topic] @@ -147,18 +135,26 @@ func URLAsset_AudiovisualMIMETypes() []string { return URLAssetClass.AudiovisualMIMETypes() } -// 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:"), objc.Ptr(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 } -// The resource loader for the asset. [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/1389118-resourceloader?language=objc -func (u_ URLAsset) ResourceLoader() AssetResourceLoader { - rv := objc.Call[AssetResourceLoader](u_, objc.Sel("resourceLoader")) +// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avurlasset/1387142-isplayableextendedmimetype?language=objc +func URLAsset_IsPlayableExtendedMIMEType(extendedMIMEType string) bool { + return URLAssetClass.IsPlayableExtendedMIMEType(extendedMIMEType) +} + +// 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 } @@ -170,19 +166,19 @@ func (u_ URLAsset) MayRequireContentKeysForMediaDataProcessing() bool { return rv } -// A URL to the asset’s media. [Full Topic] +// The resource loader for the asset. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avurlasset/1388127-url?language=objc -func (u_ URLAsset) URL() foundation.URL { - rv := objc.Call[foundation.URL](u_, objc.Sel("URL")) +// [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 } -// The asset’s associated asset cache, if it exists. [Full Topic] +// A URL to the asset’s media. [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/1388127-url?language=objc +func (u_ URLAsset) URL() foundation.URL { + rv := objc.Call[foundation.URL](u_, objc.Sel("URL")) return rv } diff --git a/macos/avfoundation/video_compositing.gen.go b/macos/avfoundation/video_compositing_protocol.gen.go similarity index 74% rename from macos/avfoundation/video_compositing.gen.go rename to macos/avfoundation/video_compositing_protocol.gen.go index 6e92b9e7..0b388e10 100644 --- a/macos/avfoundation/video_compositing.gen.go +++ b/macos/avfoundation/video_compositing_protocol.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package avfoundation @@ -11,17 +11,13 @@ import ( // [Full Topic]: https://developer.apple.com/documentation/avfoundation/avvideocompositing?language=objc type PVideoCompositing interface { // optional - RenderContextChanged(newRenderContext VideoCompositionRenderContext) - HasRenderContextChanged() bool + PrerollForRenderingUsingHint(renderHint VideoCompositionRenderHint) + HasPrerollForRenderingUsingHint() bool // optional AnticipateRenderingUsingHint(renderHint VideoCompositionRenderHint) HasAnticipateRenderingUsingHint() bool - // optional - PrerollForRenderingUsingHint(renderHint VideoCompositionRenderHint) - HasPrerollForRenderingUsingHint() bool - // optional CancelAllPendingVideoCompositionRequests() HasCancelAllPendingVideoCompositionRequests() bool @@ -31,142 +27,149 @@ type PVideoCompositing interface { HasStartVideoCompositionRequest() bool // optional - SupportsHDRSourceFrames() bool - HasSupportsHDRSourceFrames() bool + RenderContextChanged(newRenderContext VideoCompositionRenderContext) + HasRenderContextChanged() bool // optional SupportsWideColorSourceFrames() bool HasSupportsWideColorSourceFrames() bool // optional - RequiredPixelBufferAttributesForRenderContext() map[string]objc.IObject + SourcePixelBufferAttributes() map[string]objc.Object + HasSourcePixelBufferAttributes() bool + + // optional + RequiredPixelBufferAttributesForRenderContext() map[string]objc.Object HasRequiredPixelBufferAttributesForRenderContext() bool // optional - CanConformColorOfSourceFrames() bool - HasCanConformColorOfSourceFrames() bool + SupportsHDRSourceFrames() bool + HasSupportsHDRSourceFrames() bool // optional - SourcePixelBufferAttributes() map[string]objc.IObject - HasSourcePixelBufferAttributes() bool + CanConformColorOfSourceFrames() bool + HasCanConformColorOfSourceFrames() bool } -// A concrete type wrapper for the [PVideoCompositing] protocol. -type VideoCompositingWrapper struct { +// ensure impl type implements protocol interface +var _ PVideoCompositing = (*VideoCompositingObject)(nil) + +// A concrete type for the [PVideoCompositing] protocol. +type VideoCompositingObject struct { objc.Object } -func (v_ VideoCompositingWrapper) HasRenderContextChanged() bool { - return v_.RespondsToSelector(objc.Sel("renderContextChanged:")) +func (v_ VideoCompositingObject) HasPrerollForRenderingUsingHint() bool { + return v_.RespondsToSelector(objc.Sel("prerollForRenderingUsingHint:")) } -// Tells the compositor that the composition changed render contexts. [Full Topic] +// Tells a custom video compositor to perform any work in the prerolling phase. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avvideocompositing/1390363-rendercontextchanged?language=objc -func (v_ VideoCompositingWrapper) RenderContextChanged(newRenderContext IVideoCompositionRenderContext) { - objc.Call[objc.Void](v_, objc.Sel("renderContextChanged:"), objc.Ptr(newRenderContext)) +// [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:"), objc.Ptr(renderHint)) } -func (v_ VideoCompositingWrapper) HasAnticipateRenderingUsingHint() bool { +func (v_ VideoCompositingObject) HasAnticipateRenderingUsingHint() bool { return v_.RespondsToSelector(objc.Sel("anticipateRenderingUsingHint:")) } // Informs a custom video compositor about upcoming rendering requests. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/avfoundation/avvideocompositing/3227885-anticipaterenderingusinghint?language=objc -func (v_ VideoCompositingWrapper) AnticipateRenderingUsingHint(renderHint IVideoCompositionRenderHint) { +func (v_ VideoCompositingObject) AnticipateRenderingUsingHint(renderHint VideoCompositionRenderHint) { objc.Call[objc.Void](v_, objc.Sel("anticipateRenderingUsingHint:"), objc.Ptr(renderHint)) } -func (v_ VideoCompositingWrapper) 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_ VideoCompositingWrapper) PrerollForRenderingUsingHint(renderHint IVideoCompositionRenderHint) { - objc.Call[objc.Void](v_, objc.Sel("prerollForRenderingUsingHint:"), objc.Ptr(renderHint)) -} - -func (v_ VideoCompositingWrapper) HasCancelAllPendingVideoCompositionRequests() bool { +func (v_ VideoCompositingObject) HasCancelAllPendingVideoCompositionRequests() bool { return v_.RespondsToSelector(objc.Sel("cancelAllPendingVideoCompositionRequests")) } // Directs a custom video compositor object to cancel or finish all pending video composition requests. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/avfoundation/avvideocompositing/1390659-cancelallpendingvideocomposition?language=objc -func (v_ VideoCompositingWrapper) CancelAllPendingVideoCompositionRequests() { +func (v_ VideoCompositingObject) CancelAllPendingVideoCompositionRequests() { objc.Call[objc.Void](v_, objc.Sel("cancelAllPendingVideoCompositionRequests")) } -func (v_ VideoCompositingWrapper) HasStartVideoCompositionRequest() bool { +func (v_ VideoCompositingObject) HasStartVideoCompositionRequest() bool { return v_.RespondsToSelector(objc.Sel("startVideoCompositionRequest:")) } // Directs a custom video compositor object to create a new pixel buffer composed asynchronously from a collection of sources. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/avfoundation/avvideocompositing/1388894-startvideocompositionrequest?language=objc -func (v_ VideoCompositingWrapper) StartVideoCompositionRequest(asyncVideoCompositionRequest IAsynchronousVideoCompositionRequest) { +func (v_ VideoCompositingObject) StartVideoCompositionRequest(asyncVideoCompositionRequest AsynchronousVideoCompositionRequest) { objc.Call[objc.Void](v_, objc.Sel("startVideoCompositionRequest:"), objc.Ptr(asyncVideoCompositionRequest)) } -func (v_ VideoCompositingWrapper) HasSupportsHDRSourceFrames() bool { - return v_.RespondsToSelector(objc.Sel("supportsHDRSourceFrames")) +func (v_ VideoCompositingObject) HasRenderContextChanged() bool { + return v_.RespondsToSelector(objc.Sel("renderContextChanged:")) } -// A Boolean value that indicates whether the compositor handles source frames that contain high dynamic range (HDR) properties. [Full Topic] +// Tells the compositor that the composition changed render contexts. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avvideocompositing/3626026-supportshdrsourceframes?language=objc -func (v_ VideoCompositingWrapper) SupportsHDRSourceFrames() bool { - rv := objc.Call[bool](v_, objc.Sel("supportsHDRSourceFrames")) - return rv +// [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:"), objc.Ptr(newRenderContext)) } -func (v_ VideoCompositingWrapper) HasSupportsWideColorSourceFrames() bool { +func (v_ VideoCompositingObject) HasSupportsWideColorSourceFrames() bool { return v_.RespondsToSelector(objc.Sel("supportsWideColorSourceFrames")) } // A Boolean value that indicates whether the compositor handles source frames that contains wide color properties. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/avfoundation/avvideocompositing/1643657-supportswidecolorsourceframes?language=objc -func (v_ VideoCompositingWrapper) SupportsWideColorSourceFrames() bool { +func (v_ VideoCompositingObject) SupportsWideColorSourceFrames() bool { rv := objc.Call[bool](v_, objc.Sel("supportsWideColorSourceFrames")) return rv } -func (v_ VideoCompositingWrapper) HasRequiredPixelBufferAttributesForRenderContext() bool { +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")) } // The pixel buffer attributes that the compositor requires for pixel buffers that it creates. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/avfoundation/avvideocompositing/1386414-requiredpixelbufferattributesfor?language=objc -func (v_ VideoCompositingWrapper) RequiredPixelBufferAttributesForRenderContext() map[string]objc.Object { +func (v_ VideoCompositingObject) RequiredPixelBufferAttributesForRenderContext() map[string]objc.Object { rv := objc.Call[map[string]objc.Object](v_, objc.Sel("requiredPixelBufferAttributesForRenderContext")) return rv } -func (v_ VideoCompositingWrapper) HasCanConformColorOfSourceFrames() bool { - return v_.RespondsToSelector(objc.Sel("canConformColorOfSourceFrames")) +func (v_ VideoCompositingObject) HasSupportsHDRSourceFrames() bool { + return v_.RespondsToSelector(objc.Sel("supportsHDRSourceFrames")) } -// A Boolean value that indicates whether the compositor conforms the color space of source frames to the composition color space. [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/3750314-canconformcolorofsourceframes?language=objc -func (v_ VideoCompositingWrapper) CanConformColorOfSourceFrames() bool { - rv := objc.Call[bool](v_, objc.Sel("canConformColorOfSourceFrames")) +// [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_ VideoCompositingWrapper) HasSourcePixelBufferAttributes() bool { - return v_.RespondsToSelector(objc.Sel("sourcePixelBufferAttributes")) +func (v_ VideoCompositingObject) HasCanConformColorOfSourceFrames() bool { + return v_.RespondsToSelector(objc.Sel("canConformColorOfSourceFrames")) } -// The pixel buffer attributes that the compositor accepts for source frames. [Full Topic] +// A Boolean value that indicates whether the compositor conforms the color space of source frames to the composition color space. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avvideocompositing/1388610-sourcepixelbufferattributes?language=objc -func (v_ VideoCompositingWrapper) SourcePixelBufferAttributes() map[string]objc.Object { - rv := objc.Call[map[string]objc.Object](v_, objc.Sel("sourcePixelBufferAttributes")) +// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avvideocompositing/3750314-canconformcolorofsourceframes?language=objc +func (v_ VideoCompositingObject) CanConformColorOfSourceFrames() bool { + rv := objc.Call[bool](v_, objc.Sel("canConformColorOfSourceFrames")) return rv } diff --git a/macos/avfoundation/video_composition.gen.go b/macos/avfoundation/video_composition.gen.go index d5d6a283..3e68ab12 100644 --- a/macos/avfoundation/video_composition.gen.go +++ b/macos/avfoundation/video_composition.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package avfoundation @@ -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() float64 + CustomVideoCompositorClass() objc.Class + ColorTransferFunction() string + SourceSampleDataTrackIDs() []foundation.Number } // An object that describes how to compose video frames at particular points in time. [Full Topic] @@ -52,10 +52,6 @@ func (vc _VideoCompositionClass) Alloc() VideoComposition { return rv } -func VideoComposition_Alloc() VideoComposition { - return VideoCompositionClass.Alloc() -} - func (vc _VideoCompositionClass) New() VideoComposition { rv := objc.Call[VideoComposition](vc, objc.Sel("new")) rv.Autorelease() @@ -71,90 +67,90 @@ func (v_ VideoComposition) Init() VideoComposition { return rv } -// 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/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/1388013-frameduration?language=objc +func (v_ VideoComposition) FrameDuration() coremedia.Time { + rv := objc.Call[coremedia.Time](v_, objc.Sel("frameDuration")) return rv } -// The YCbCr matrix used for video composition. [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/1643236-colorycbcrmatrix?language=objc -func (v_ VideoComposition) ColorYCbCrMatrix() string { - rv := objc.Call[string](v_, objc.Sel("colorYCbCrMatrix")) +// [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 } -// A custom compositor class to use. [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/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/2873798-sourcetrackidforframetiming?language=objc +func (v_ VideoComposition) SourceTrackIDForFrameTiming() objc.Object { + rv := objc.Call[objc.Object](v_, objc.Sel("sourceTrackIDForFrameTiming")) return rv } -// A time interval for which the video composition should render composed video frames. [Full Topic] +// The size at which the video composition should render. [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")) +// [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 video composition instructions. [Full Topic] +// The YCbCr matrix used for video composition. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avvideocomposition/1389211-instructions?language=objc -func (v_ VideoComposition) Instructions() []objc.Object { - rv := objc.Call[[]objc.Object](v_, objc.Sel("instructions")) +// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avvideocomposition/1643236-colorycbcrmatrix?language=objc +func (v_ VideoComposition) ColorYCbCrMatrix() string { + rv := objc.Call[string](v_, objc.Sel("colorYCbCrMatrix")) return rv } -// The identifiers of source sample data tracks in the composition that the compositor requires to compose frames. [Full Topic] +// The color primaries used for video composition. [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/1643235-colorprimaries?language=objc +func (v_ VideoComposition) ColorPrimaries() string { + rv := objc.Call[string](v_, objc.Sel("colorPrimaries")) return rv } -// A video composition tool to use with Core Animation in offline rendering. [Full Topic] +// The video composition instructions. [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")) +// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avvideocomposition/1389211-instructions?language=objc +func (v_ VideoComposition) Instructions() []objc.Object { + rv := objc.Call[[]objc.Object](v_, objc.Sel("instructions")) return rv } -// The transfer function used for video composition. [Full Topic] +// The scale at which the video composition should render. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avvideocomposition/1643230-colortransferfunction?language=objc -func (v_ VideoComposition) ColorTransferFunction() string { - rv := objc.Call[string](v_, objc.Sel("colorTransferFunction")) +// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avvideocomposition/1615786-renderscale?language=objc +func (v_ VideoComposition) RenderScale() float64 { + rv := objc.Call[float64](v_, objc.Sel("renderScale")) return rv } -// An identifier of the source track from which the video composition derives frame timing. [Full Topic] +// A custom compositor class to use. [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")) +// [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 } -// The size at which the video composition should render. [Full Topic] +// The transfer function 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/1643230-colortransferfunction?language=objc +func (v_ VideoComposition) ColorTransferFunction() string { + rv := objc.Call[string](v_, objc.Sel("colorTransferFunction")) 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() float64 { - rv := objc.Call[float64](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 } diff --git a/macos/avfoundation/video_composition_core_animation_tool.gen.go b/macos/avfoundation/video_composition_core_animation_tool.gen.go index e0fa75c4..0f607207 100644 --- a/macos/avfoundation/video_composition_core_animation_tool.gen.go +++ b/macos/avfoundation/video_composition_core_animation_tool.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package avfoundation @@ -34,6 +34,18 @@ 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, objc.Ptr(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:"), objc.Ptr(videoLayer), objc.Ptr(animationLayer)) return rv @@ -46,13 +58,21 @@ func VideoCompositionCoreAnimationTool_VideoCompositionCoreAnimationToolWithPost return VideoCompositionCoreAnimationToolClass.VideoCompositionCoreAnimationToolWithPostProcessingAsVideoLayerInLayer(videoLayer, animationLayer) } -func (vc _VideoCompositionCoreAnimationToolClass) Alloc() VideoCompositionCoreAnimationTool { - rv := objc.Call[VideoCompositionCoreAnimationTool](vc, objc.Sel("alloc")) +func (vc _VideoCompositionCoreAnimationToolClass) VideoCompositionCoreAnimationToolWithAdditionalLayerAsTrackID(layer quartzcore.ILayer, trackID objc.IObject) VideoCompositionCoreAnimationTool { + rv := objc.Call[VideoCompositionCoreAnimationTool](vc, objc.Sel("videoCompositionCoreAnimationToolWithAdditionalLayer:asTrackID:"), objc.Ptr(layer), objc.Ptr(trackID)) return rv } -func VideoCompositionCoreAnimationTool_Alloc() VideoCompositionCoreAnimationTool { - return VideoCompositionCoreAnimationToolClass.Alloc() +// 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 } func (vc _VideoCompositionCoreAnimationToolClass) New() VideoCompositionCoreAnimationTool { diff --git a/macos/avfoundation/video_composition_instruction.gen.go b/macos/avfoundation/video_composition_instruction.gen.go index 467123d9..18ff2b4c 100644 --- a/macos/avfoundation/video_composition_instruction.gen.go +++ b/macos/avfoundation/video_composition_instruction.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package avfoundation @@ -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] @@ -49,10 +49,6 @@ func (vc _VideoCompositionInstructionClass) Alloc() VideoCompositionInstruction return rv } -func VideoCompositionInstruction_Alloc() VideoCompositionInstruction { - return VideoCompositionInstructionClass.Alloc() -} - func (vc _VideoCompositionInstructionClass) New() VideoCompositionInstruction { rv := objc.Call[VideoCompositionInstruction](vc, objc.Sel("new")) rv.Autorelease() @@ -68,66 +64,66 @@ func (v_ VideoCompositionInstruction) Init() VideoCompositionInstruction { return rv } -// The identifiers of source sample data tracks that the compositor requires to compose frames for the instruction. [Full Topic] +// A Boolean value that indicates whether the composition enables post-processing. [Full Topic] // -// [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")) +// [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")) return rv } -// Instructions that specify how to layer and compose video frames from source tracks. [Full Topic] +// The time range during which the instruction is effective. [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/1386654-avvideocompositioninstruction/1389873-timerange?language=objc +func (v_ VideoCompositionInstruction) TimeRange() coremedia.TimeRange { + rv := objc.Call[coremedia.TimeRange](v_, objc.Sel("timeRange")) return rv } -// The identifiers of source video tracks that the compositor requires to compose frames for the instruction. [Full Topic] +// A Boolean value that indicates whether the composition contains tweening. [Full Topic] // -// [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")) +// [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 } -// The track identifier from an instruction source frame. [Full Topic] +// An identifier of a source track to pass through without compositing. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avvideocompositioninstruction/1387657-passthroughtrackid?language=objc +// [Full Topic]: https://developer.apple.com/documentation/avfoundation/1386654-avvideocompositioninstruction/1389919-passthroughtrackid?language=objc func (v_ VideoCompositionInstruction) PassthroughTrackID() objc.Object { rv := objc.Call[objc.Object](v_, objc.Sel("passthroughTrackID")) return rv } -// The background color of the composition. [Full Topic] +// The identifiers of the video tracks the instruction requires to compose frames. [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/1388661-requiredsourcetrackids?language=objc +func (v_ VideoCompositionInstruction) RequiredSourceTrackIDs() []foundation.Value { + rv := objc.Call[[]foundation.Value](v_, objc.Sel("requiredSourceTrackIDs")) return rv } -// The time range to which the instruction applies. [Full Topic] +// The identifiers of the sample data tracks the instruction requires to compose frames. [Full Topic] // -// [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")) +// [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")) return rv } -// A Boolean value that indicates whether the instruction requires post processing. [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/avvideocompositioninstruction/1388697-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/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 background color of the composition. [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/1389384-backgroundcolor?language=objc +func (v_ VideoCompositionInstruction) BackgroundColor() coregraphics.ColorRef { + rv := objc.Call[coregraphics.ColorRef](v_, objc.Sel("backgroundColor")) return rv } diff --git a/macos/avfoundation/video_composition_instruction_protocol.gen.go b/macos/avfoundation/video_composition_instruction_protocol.gen.go new file mode 100644 index 00000000..1c4482f8 --- /dev/null +++ b/macos/avfoundation/video_composition_instruction_protocol.gen.go @@ -0,0 +1,151 @@ +// Code generated by DarwinKit. DO NOT EDIT. + +package avfoundation + +import ( + "github.com/progrium/macdriver/macos/coregraphics" + "github.com/progrium/macdriver/macos/coremedia" + "github.com/progrium/macdriver/macos/foundation" + "github.com/progrium/macdriver/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 2ac67e09..d0f11db1 100644 --- a/macos/avfoundation/video_composition_layer_instruction.gen.go +++ b/macos/avfoundation/video_composition_layer_instruction.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package avfoundation @@ -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 - GetOpacityRampForTimeStartOpacityEndOpacityTimeRange(time coremedia.Time, startOpacity *float64, endOpacity *float64, timeRange *coremedia.TimeRange) bool GetTransformRampForTimeStartTransformEndTransformTimeRange(time coremedia.Time, startTransform *coregraphics.AffineTransform, endTransform *coregraphics.AffineTransform, timeRange *coremedia.TimeRange) bool + GetOpacityRampForTimeStartOpacityEndOpacityTimeRange(time coremedia.Time, startOpacity *float64, endOpacity *float64, timeRange *coremedia.TimeRange) bool TrackID() objc.Object } @@ -44,10 +44,6 @@ func (vc _VideoCompositionLayerInstructionClass) Alloc() VideoCompositionLayerIn return rv } -func VideoCompositionLayerInstruction_Alloc() VideoCompositionLayerInstruction { - return VideoCompositionLayerInstructionClass.Alloc() -} - func (vc _VideoCompositionLayerInstructionClass) New() VideoCompositionLayerInstruction { rv := objc.Call[VideoCompositionLayerInstruction](vc, objc.Sel("new")) rv.Autorelease() @@ -71,14 +67,6 @@ func (v_ VideoCompositionLayerInstruction) GetCropRectangleRampForTimeStartCropR 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 -func (v_ VideoCompositionLayerInstruction) GetOpacityRampForTimeStartOpacityEndOpacityTimeRange(time coremedia.Time, startOpacity *float64, endOpacity *float64, timeRange *coremedia.TimeRange) bool { - rv := objc.Call[bool](v_, objc.Sel("getOpacityRampForTime:startOpacity:endOpacity:timeRange:"), time, startOpacity, endOpacity, timeRange) - 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 @@ -87,6 +75,14 @@ func (v_ VideoCompositionLayerInstruction) GetTransformRampForTimeStartTransform 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 +func (v_ VideoCompositionLayerInstruction) GetOpacityRampForTimeStartOpacityEndOpacityTimeRange(time coremedia.Time, startOpacity *float64, endOpacity *float64, timeRange *coremedia.TimeRange) bool { + rv := objc.Call[bool](v_, objc.Sel("getOpacityRampForTime:startOpacity:endOpacity:timeRange:"), time, startOpacity, endOpacity, 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 b8c89892..ffbf0aad 100644 --- a/macos/avfoundation/video_composition_render_context.gen.go +++ b/macos/avfoundation/video_composition_render_context.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package avfoundation @@ -21,13 +21,13 @@ type _VideoCompositionRenderContextClass struct { type IVideoCompositionRenderContext interface { objc.IObject NewPixelBuffer() corevideo.PixelBufferRef + RenderScale() float64 HighQualityRendering() bool - VideoComposition() VideoComposition - RenderTransform() coregraphics.AffineTransform PixelAspectRatio() PixelAspectRatio EdgeWidths() EdgeWidths - RenderScale() float64 + RenderTransform() coregraphics.AffineTransform Size() coregraphics.Size + VideoComposition() VideoComposition } // An object that defines the context in which custom compositors render pixel buffers. [Full Topic] @@ -48,10 +48,6 @@ func (vc _VideoCompositionRenderContextClass) Alloc() VideoCompositionRenderCont return rv } -func VideoCompositionRenderContext_Alloc() VideoCompositionRenderContext { - return VideoCompositionRenderContextClass.Alloc() -} - func (vc _VideoCompositionRenderContextClass) New() VideoCompositionRenderContext { rv := objc.Call[VideoCompositionRenderContext](vc, objc.Sel("new")) rv.Autorelease() @@ -75,27 +71,19 @@ func (v_ VideoCompositionRenderContext) NewPixelBuffer() corevideo.PixelBufferRe return rv } -// The rendering quality to use. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avvideocompositionrendercontext/1388758-highqualityrendering?language=objc -func (v_ VideoCompositionRenderContext) HighQualityRendering() bool { - rv := objc.Call[bool](v_, objc.Sel("highQualityRendering")) - return rv -} - -// The video composition being rendered. [Full Topic] +// A scaling ratio that is applied when rendering frames. [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")) +// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avvideocompositionrendercontext/1387408-renderscale?language=objc +func (v_ VideoCompositionRenderContext) RenderScale() float64 { + rv := objc.Call[float64](v_, objc.Sel("renderScale")) return rv } -// A transform to apply to the source image. [Full Topic] +// The rendering quality to use. [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/1388758-highqualityrendering?language=objc +func (v_ VideoCompositionRenderContext) HighQualityRendering() bool { + rv := objc.Call[bool](v_, objc.Sel("highQualityRendering")) return rv } @@ -115,11 +103,11 @@ func (v_ VideoCompositionRenderContext) EdgeWidths() EdgeWidths { return rv } -// A scaling ratio that is applied when rendering frames. [Full Topic] +// A transform to apply to the source image. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avvideocompositionrendercontext/1387408-renderscale?language=objc -func (v_ VideoCompositionRenderContext) RenderScale() float64 { - rv := objc.Call[float64](v_, objc.Sel("renderScale")) +// [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 } @@ -130,3 +118,11 @@ 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_render_hint.gen.go b/macos/avfoundation/video_composition_render_hint.gen.go index 19404322..0601f916 100644 --- a/macos/avfoundation/video_composition_render_hint.gen.go +++ b/macos/avfoundation/video_composition_render_hint.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package avfoundation @@ -41,10 +41,6 @@ func (vc _VideoCompositionRenderHintClass) Alloc() VideoCompositionRenderHint { return rv } -func VideoCompositionRenderHint_Alloc() VideoCompositionRenderHint { - return VideoCompositionRenderHintClass.Alloc() -} - func (vc _VideoCompositionRenderHintClass) New() VideoCompositionRenderHint { rv := objc.Call[VideoCompositionRenderHint](vc, objc.Sel("new")) rv.Autorelease() diff --git a/macos/avfoundation/video_composition_validation_handling.gen.go b/macos/avfoundation/video_composition_validation_handling.gen.go deleted file mode 100644 index b35cfae8..00000000 --- a/macos/avfoundation/video_composition_validation_handling.gen.go +++ /dev/null @@ -1,34 +0,0 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY - -package avfoundation - -import ( - "github.com/progrium/macdriver/macos/coremedia" - "github.com/progrium/macdriver/objc" -) - -// Methods you can implement to indicate whether validation of a video composition should continue after specific errors are found. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avvideocompositionvalidationhandling?language=objc -type PVideoCompositionValidationHandling interface { - // optional - VideoCompositionShouldContinueValidatingAfterFindingEmptyTimeRange(videoComposition VideoComposition, timeRange coremedia.TimeRange) bool - HasVideoCompositionShouldContinueValidatingAfterFindingEmptyTimeRange() bool -} - -// A concrete type wrapper for the [PVideoCompositionValidationHandling] protocol. -type VideoCompositionValidationHandlingWrapper struct { - objc.Object -} - -func (v_ VideoCompositionValidationHandlingWrapper) HasVideoCompositionShouldContinueValidatingAfterFindingEmptyTimeRange() bool { - return v_.RespondsToSelector(objc.Sel("videoComposition:shouldContinueValidatingAfterFindingEmptyTimeRange:")) -} - -// Reports a time range that has no corresponding video composition instruction. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avvideocompositionvalidationhandling/1388620-videocomposition?language=objc -func (v_ VideoCompositionValidationHandlingWrapper) VideoCompositionShouldContinueValidatingAfterFindingEmptyTimeRange(videoComposition IVideoComposition, timeRange coremedia.TimeRange) bool { - rv := objc.Call[bool](v_, objc.Sel("videoComposition:shouldContinueValidatingAfterFindingEmptyTimeRange:"), objc.Ptr(videoComposition), timeRange) - return rv -} diff --git a/macos/avfoundation/video_composition_validation_handling_protocol.gen.go b/macos/avfoundation/video_composition_validation_handling_protocol.gen.go new file mode 100644 index 00000000..ed578c48 --- /dev/null +++ b/macos/avfoundation/video_composition_validation_handling_protocol.gen.go @@ -0,0 +1,85 @@ +// Code generated by DarwinKit. DO NOT EDIT. + +package avfoundation + +import ( + "github.com/progrium/macdriver/macos/coremedia" + "github.com/progrium/macdriver/objc" +) + +// Methods you can implement to indicate whether validation of a video composition should continue after specific errors are found. [Full Topic] +// +// [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 +} + +// ensure impl type implements protocol interface +var _ PVideoCompositionValidationHandling = (*VideoCompositionValidationHandlingObject)(nil) + +// A concrete type for the [PVideoCompositionValidationHandling] protocol. +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:"), objc.Ptr(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:"), objc.Ptr(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:"), objc.Ptr(videoComposition), videoCompositionInstruction, objc.Ptr(layerInstruction), objc.Ptr(asset)) + return rv +} + +func (v_ VideoCompositionValidationHandlingObject) HasVideoCompositionShouldContinueValidatingAfterFindingEmptyTimeRange() bool { + return v_.RespondsToSelector(objc.Sel("videoComposition:shouldContinueValidatingAfterFindingEmptyTimeRange:")) +} + +// Reports a time range that has no corresponding video composition instruction. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/avfoundation/avvideocompositionvalidationhandling/1388620-videocomposition?language=objc +func (v_ VideoCompositionValidationHandlingObject) VideoCompositionShouldContinueValidatingAfterFindingEmptyTimeRange(videoComposition VideoComposition, timeRange coremedia.TimeRange) bool { + rv := objc.Call[bool](v_, objc.Sel("videoComposition:shouldContinueValidatingAfterFindingEmptyTimeRange:"), objc.Ptr(videoComposition), timeRange) + return rv +} diff --git a/macos/avkit/capture_view.gen.go b/macos/avkit/capture_view.gen.go index fcde35d3..6935ca3c 100644 --- a/macos/avkit/capture_view.gen.go +++ b/macos/avkit/capture_view.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package avkit @@ -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() CaptureViewDelegateWrapper + 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] @@ -51,10 +51,6 @@ func (cc _CaptureViewClass) Alloc() CaptureView { return rv } -func CaptureView_Alloc() CaptureView { - return CaptureViewClass.Alloc() -} - func (cc _CaptureViewClass) New() CaptureView { rv := objc.Call[CaptureView](cc, objc.Sel("new")) rv.Autorelease() @@ -91,19 +87,27 @@ func (c_ CaptureView) SetSessionShowVideoPreviewShowAudioPreview(session avfound objc.Call[objc.Void](c_, objc.Sel("setSession:showVideoPreview:showAudioPreview:"), objc.Ptr(session), showVideoPreview, showAudioPreview) } -// 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] +// The style of the capture controls presented by the view. [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) +// [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) } // The view’s associated capture session. [Full Topic] @@ -114,19 +118,26 @@ func (c_ CaptureView) Session() avfoundation.CaptureSession { return rv } -// The capture file output used to record media data. [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/1519149-fileoutput?language=objc -func (c_ CaptureView) FileOutput() avfoundation.CaptureFileOutput { - rv := objc.Call[avfoundation.CaptureFileOutput](c_, objc.Sel("fileOutput")) +// [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 } +// 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 -func (c_ CaptureView) Delegate() CaptureViewDelegateWrapper { - rv := objc.Call[CaptureViewDelegateWrapper](c_, objc.Sel("delegate")) +func (c_ CaptureView) Delegate() CaptureViewDelegateObject { + rv := objc.Call[CaptureViewDelegateObject](c_, objc.Sel("delegate")) return rv } @@ -145,18 +156,3 @@ func (c_ CaptureView) SetDelegate(value PCaptureViewDelegate) { func (c_ CaptureView) SetDelegateObject(valueObject objc.IObject) { objc.Call[objc.Void](c_, objc.Sel("setDelegate:"), objc.Ptr(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/capture_view_delegate.gen.go b/macos/avkit/capture_view_delegate.gen.go index abd07633..db32871c 100644 --- a/macos/avkit/capture_view_delegate.gen.go +++ b/macos/avkit/capture_view_delegate.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package avkit @@ -39,18 +39,21 @@ func (di *CaptureViewDelegate) CaptureViewStartRecordingToFileOutput(captureView di._CaptureViewStartRecordingToFileOutput(captureView, fileOutput) } -// A concrete type wrapper for the [PCaptureViewDelegate] protocol. -type CaptureViewDelegateWrapper struct { +// ensure impl type implements protocol interface +var _ PCaptureViewDelegate = (*CaptureViewDelegateObject)(nil) + +// A concrete type for the [PCaptureViewDelegate] protocol. +type CaptureViewDelegateObject struct { objc.Object } -func (c_ CaptureViewDelegateWrapper) HasCaptureViewStartRecordingToFileOutput() bool { +func (c_ CaptureViewDelegateObject) HasCaptureViewStartRecordingToFileOutput() bool { return c_.RespondsToSelector(objc.Sel("captureView:startRecordingToFileOutput:")) } // Tells the delegate that the user has made a request to start a new recording. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/avkit/avcaptureviewdelegate/1519138-captureview?language=objc -func (c_ CaptureViewDelegateWrapper) CaptureViewStartRecordingToFileOutput(captureView ICaptureView, fileOutput avfoundation.ICaptureFileOutput) { +func (c_ CaptureViewDelegateObject) CaptureViewStartRecordingToFileOutput(captureView CaptureView, fileOutput avfoundation.CaptureFileOutput) { objc.Call[objc.Void](c_, objc.Sel("captureView:startRecordingToFileOutput:"), objc.Ptr(captureView), objc.Ptr(fileOutput)) } diff --git a/macos/avkit/doc.gen.go b/macos/avkit/doc.gen.go index b2a75a52..52750c08 100644 --- a/macos/avkit/doc.gen.go +++ b/macos/avkit/doc.gen.go @@ -1,8 +1,8 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. // Create user interfaces for media playback, complete with transport controls, chapter navigation, picture-in-picture support, and display of subtitles and closed captions. // -// [Full Documentation] +// [Apple Documentation] // -// [Full Documentation]: https://developer.apple.com/documentation/avkit?language=objc +// [Apple Documentation]: https://developer.apple.com/documentation/avkit?language=objc package avkit diff --git a/macos/avkit/enumtypes.gen.go b/macos/avkit/enumtypes.gen.go index 5046f280..7ef83599 100644 --- a/macos/avkit/enumtypes.gen.go +++ b/macos/avkit/enumtypes.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package avkit diff --git a/macos/avkit/picture_in_picture_controller.gen.go b/macos/avkit/picture_in_picture_controller.gen.go index 0907955e..5c424ae7 100644 --- a/macos/avkit/picture_in_picture_controller.gen.go +++ b/macos/avkit/picture_in_picture_controller.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package avkit @@ -20,20 +20,20 @@ type _PictureInPictureControllerClass struct { // An interface definition for the [PictureInPictureController] class. type IPictureInPictureController interface { objc.IObject - StopPictureInPicture() InvalidatePlaybackState() StartPictureInPicture() - IsPictureInPictureSuspended() bool - RequiresLinearPlayback() bool - SetRequiresLinearPlayback(value bool) - Delegate() PictureInPictureControllerDelegateWrapper + StopPictureInPicture() + PlayerLayer() avfoundation.PlayerLayer + Delegate() PictureInPictureControllerDelegateObject SetDelegate(value PPictureInPictureControllerDelegate) SetDelegateObject(valueObject objc.IObject) - IsPictureInPictureActive() bool - PlayerLayer() avfoundation.PlayerLayer + IsPictureInPictureSuspended() bool 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) InitWithPlayerLayer(playerLayer avfoundation.IPlayerLayer) PictureInPictureController { - rv := objc.Call[PictureInPictureController](p_, objc.Sel("initWithPlayerLayer:"), objc.Ptr(playerLayer)) +func (p_ PictureInPictureController) InitWithContentSource(contentSource IPictureInPictureControllerContentSource) PictureInPictureController { + rv := objc.Call[PictureInPictureController](p_, objc.Sel("initWithContentSource:"), objc.Ptr(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 } -func (p_ PictureInPictureController) InitWithContentSource(contentSource IPictureInPictureControllerContentSource) PictureInPictureController { - rv := objc.Call[PictureInPictureController](p_, objc.Sel("initWithContentSource:"), objc.Ptr(contentSource)) +func (p_ PictureInPictureController) InitWithPlayerLayer(playerLayer avfoundation.IPlayerLayer) PictureInPictureController { + rv := objc.Call[PictureInPictureController](p_, objc.Sel("initWithPlayerLayer:"), objc.Ptr(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 } @@ -82,10 +82,6 @@ func (pc _PictureInPictureControllerClass) Alloc() PictureInPictureController { return rv } -func PictureInPictureController_Alloc() PictureInPictureController { - return PictureInPictureControllerClass.Alloc() -} - func (pc _PictureInPictureControllerClass) New() PictureInPictureController { rv := objc.Call[PictureInPictureController](pc, objc.Sel("new")) rv.Autorelease() @@ -101,6 +97,13 @@ 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 @@ -116,20 +119,6 @@ func PictureInPictureController_IsPictureInPictureSupported() bool { return PictureInPictureControllerClass.IsPictureInPictureSupported() } -// Stops Picture in Picture, if active. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/avkit/avpictureinpicturecontroller/1614701-stoppictureinpicture?language=objc -func (p_ PictureInPictureController) StopPictureInPicture() { - objc.Call[objc.Void](p_, objc.Sel("stopPictureInPicture")) -} - -// 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")) -} - // Starts Picture in Picture, if possible. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/avkit/avpictureinpicturecontroller/1614687-startpictureinpicture?language=objc @@ -137,34 +126,41 @@ 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] +// Stops Picture in Picture, if active. [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")) +// [Full Topic]: https://developer.apple.com/documentation/avkit/avpictureinpicturecontroller/1614701-stoppictureinpicture?language=objc +func (p_ PictureInPictureController) StopPictureInPicture() { + objc.Call[objc.Void](p_, objc.Sel("stopPictureInPicture")) +} + +// The layer that displays the video content. [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")) return rv } -// A Boolean value that determines whether the controller allows the user to skip media content. [Full Topic] +// 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/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/3172687-pictureinpicturebuttonstopimage?language=objc +func (pc _PictureInPictureControllerClass) PictureInPictureButtonStopImage() appkit.Image { + rv := objc.Call[appkit.Image](pc, objc.Sel("pictureInPictureButtonStopImage")) return rv } -// A Boolean value that determines whether the controller allows the user to skip media content. [Full Topic] +// 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/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/3172687-pictureinpicturebuttonstopimage?language=objc +func PictureInPictureController_PictureInPictureButtonStopImage() appkit.Image { + return PictureInPictureControllerClass.PictureInPictureButtonStopImage() } // A delegate object for a Picture in Picture controller. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/avkit/avpictureinpicturecontroller/1614709-delegate?language=objc -func (p_ PictureInPictureController) Delegate() PictureInPictureControllerDelegateWrapper { - rv := objc.Call[PictureInPictureControllerDelegateWrapper](p_, objc.Sel("delegate")) +func (p_ PictureInPictureController) Delegate() PictureInPictureControllerDelegateObject { + rv := objc.Call[PictureInPictureControllerDelegateObject](p_, objc.Sel("delegate")) return rv } @@ -184,6 +180,22 @@ func (p_ PictureInPictureController) SetDelegateObject(valueObject objc.IObject) objc.Call[objc.Void](p_, objc.Sel("setDelegate:"), objc.Ptr(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 @@ -199,43 +211,19 @@ func PictureInPictureController_PictureInPictureButtonStartImage() appkit.Image return PictureInPictureControllerClass.PictureInPictureButtonStartImage() } -// 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 -} - -// The layer that displays the video content. [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")) - 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] -// -// [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] +// 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/1614691-pictureinpicturepossible?language=objc -func (p_ PictureInPictureController) IsPictureInPicturePossible() bool { - rv := objc.Call[bool](p_, objc.Sel("isPictureInPicturePossible")) - return rv +// [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) } // The source of the controller’s content. [Full Topic] @@ -252,3 +240,11 @@ func (p_ PictureInPictureController) ContentSource() PictureInPictureControllerC func (p_ PictureInPictureController) SetContentSource(value IPictureInPictureControllerContentSource) { objc.Call[objc.Void](p_, objc.Sel("setContentSource:"), objc.Ptr(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 0d9193aa..4203da62 100644 --- a/macos/avkit/picture_in_picture_controller_content_source.gen.go +++ b/macos/avkit/picture_in_picture_controller_content_source.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package avkit @@ -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() PictureInPictureSampleBufferPlaybackDelegateWrapper + SampleBufferPlaybackDelegate() PictureInPictureSampleBufferPlaybackDelegateObject + SampleBufferDisplayLayer() avfoundation.SampleBufferDisplayLayer } // An object that represents the source of the content to present in Picture in Picture. [Full Topic] @@ -71,10 +71,6 @@ func (pc _PictureInPictureControllerContentSourceClass) Alloc() PictureInPicture return rv } -func PictureInPictureControllerContentSource_Alloc() PictureInPictureControllerContentSource { - return PictureInPictureControllerContentSourceClass.Alloc() -} - func (pc _PictureInPictureControllerContentSourceClass) New() PictureInPictureControllerContentSource { rv := objc.Call[PictureInPictureControllerContentSource](pc, objc.Sel("new")) rv.Autorelease() @@ -90,14 +86,6 @@ 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 @@ -109,7 +97,15 @@ func (p_ PictureInPictureControllerContentSource) PlayerLayer() avfoundation.Pla // A delegate object that responds to sample buffer playback events. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/avkit/avpictureinpicturecontrollercontentsource/3750331-samplebufferplaybackdelegate?language=objc -func (p_ PictureInPictureControllerContentSource) SampleBufferPlaybackDelegate() PictureInPictureSampleBufferPlaybackDelegateWrapper { - rv := objc.Call[PictureInPictureSampleBufferPlaybackDelegateWrapper](p_, objc.Sel("sampleBufferPlaybackDelegate")) +func (p_ PictureInPictureControllerContentSource) SampleBufferPlaybackDelegate() PictureInPictureSampleBufferPlaybackDelegateObject { + 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 62b5c4e3..d9dfecb0 100644 --- a/macos/avkit/picture_in_picture_controller_delegate.gen.go +++ b/macos/avkit/picture_in_picture_controller_delegate.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package avkit @@ -11,6 +11,10 @@ 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 @@ -26,16 +30,39 @@ 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 { - _PictureInPictureControllerDidStartPictureInPicture func(pictureInPictureController PictureInPictureController) - _PictureInPictureControllerDidStopPictureInPicture func(pictureInPictureController PictureInPictureController) - _PictureInPictureControllerWillStopPictureInPicture func(pictureInPictureController PictureInPictureController) - _PictureInPictureControllerFailedToStartPictureInPictureWithError func(pictureInPictureController PictureInPictureController, error foundation.Error) + _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 +} + +// 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 } @@ -104,52 +131,94 @@ 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 +} -// A concrete type wrapper for the [PPictureInPictureControllerDelegate] protocol. -type PictureInPictureControllerDelegateWrapper struct { +// 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) + +// A concrete type for the [PPictureInPictureControllerDelegate] protocol. +type PictureInPictureControllerDelegateObject struct { objc.Object } -func (p_ PictureInPictureControllerDelegateWrapper) HasPictureInPictureControllerDidStartPictureInPicture() bool { +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:"), objc.Ptr(pictureInPictureController)) +} + +func (p_ PictureInPictureControllerDelegateObject) HasPictureInPictureControllerDidStartPictureInPicture() bool { return p_.RespondsToSelector(objc.Sel("pictureInPictureControllerDidStartPictureInPicture:")) } // Tells the delegate that Picture in Picture started. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/avkit/avpictureinpicturecontrollerdelegate/1614695-pictureinpicturecontrollerdidsta?language=objc -func (p_ PictureInPictureControllerDelegateWrapper) PictureInPictureControllerDidStartPictureInPicture(pictureInPictureController IPictureInPictureController) { +func (p_ PictureInPictureControllerDelegateObject) PictureInPictureControllerDidStartPictureInPicture(pictureInPictureController PictureInPictureController) { objc.Call[objc.Void](p_, objc.Sel("pictureInPictureControllerDidStartPictureInPicture:"), objc.Ptr(pictureInPictureController)) } -func (p_ PictureInPictureControllerDelegateWrapper) HasPictureInPictureControllerDidStopPictureInPicture() bool { +func (p_ PictureInPictureControllerDelegateObject) HasPictureInPictureControllerDidStopPictureInPicture() bool { return p_.RespondsToSelector(objc.Sel("pictureInPictureControllerDidStopPictureInPicture:")) } // Tells the delegate that Picture in Picture stopped. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/avkit/avpictureinpicturecontrollerdelegate/1614717-pictureinpicturecontrollerdidsto?language=objc -func (p_ PictureInPictureControllerDelegateWrapper) PictureInPictureControllerDidStopPictureInPicture(pictureInPictureController IPictureInPictureController) { +func (p_ PictureInPictureControllerDelegateObject) PictureInPictureControllerDidStopPictureInPicture(pictureInPictureController PictureInPictureController) { objc.Call[objc.Void](p_, objc.Sel("pictureInPictureControllerDidStopPictureInPicture:"), objc.Ptr(pictureInPictureController)) } -func (p_ PictureInPictureControllerDelegateWrapper) HasPictureInPictureControllerWillStopPictureInPicture() bool { +func (p_ PictureInPictureControllerDelegateObject) HasPictureInPictureControllerWillStopPictureInPicture() bool { return p_.RespondsToSelector(objc.Sel("pictureInPictureControllerWillStopPictureInPicture:")) } // Tells the delegate that Picture in Picture is about to stop. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/avkit/avpictureinpicturecontrollerdelegate/1614719-pictureinpicturecontrollerwillst?language=objc -func (p_ PictureInPictureControllerDelegateWrapper) PictureInPictureControllerWillStopPictureInPicture(pictureInPictureController IPictureInPictureController) { +func (p_ PictureInPictureControllerDelegateObject) PictureInPictureControllerWillStopPictureInPicture(pictureInPictureController PictureInPictureController) { objc.Call[objc.Void](p_, objc.Sel("pictureInPictureControllerWillStopPictureInPicture:"), objc.Ptr(pictureInPictureController)) } -func (p_ PictureInPictureControllerDelegateWrapper) HasPictureInPictureControllerFailedToStartPictureInPictureWithError() bool { +func (p_ PictureInPictureControllerDelegateObject) HasPictureInPictureControllerFailedToStartPictureInPictureWithError() bool { return p_.RespondsToSelector(objc.Sel("pictureInPictureController:failedToStartPictureInPictureWithError:")) } // Tells the delegate that Picture in Picture failed to start. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/avkit/avpictureinpicturecontrollerdelegate/1614697-pictureinpicturecontroller?language=objc -func (p_ PictureInPictureControllerDelegateWrapper) PictureInPictureControllerFailedToStartPictureInPictureWithError(pictureInPictureController IPictureInPictureController, error foundation.IError) { +func (p_ PictureInPictureControllerDelegateObject) PictureInPictureControllerFailedToStartPictureInPictureWithError(pictureInPictureController PictureInPictureController, error foundation.Error) { objc.Call[objc.Void](p_, objc.Sel("pictureInPictureController:failedToStartPictureInPictureWithError:"), objc.Ptr(pictureInPictureController), objc.Ptr(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:"), objc.Ptr(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 2541dd89..55d99d1b 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 @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package avkit @@ -12,8 +12,16 @@ import ( // [Full Topic]: https://developer.apple.com/documentation/avkit/avpictureinpicturesamplebufferplaybackdelegate?language=objc type PPictureInPictureSampleBufferPlaybackDelegate interface { // optional - PictureInPictureControllerShouldProhibitBackgroundAudioPlayback(pictureInPictureController PictureInPictureController) bool - HasPictureInPictureControllerShouldProhibitBackgroundAudioPlayback() bool + 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 // optional PictureInPictureControllerIsPlaybackPaused(pictureInPictureController PictureInPictureController) bool @@ -24,34 +32,70 @@ type PPictureInPictureSampleBufferPlaybackDelegate interface { HasPictureInPictureControllerTimeRangeForPlayback() bool // optional - PictureInPictureControllerSetPlaying(pictureInPictureController PictureInPictureController, playing bool) - HasPictureInPictureControllerSetPlaying() bool + PictureInPictureControllerShouldProhibitBackgroundAudioPlayback(pictureInPictureController PictureInPictureController) bool + HasPictureInPictureControllerShouldProhibitBackgroundAudioPlayback() bool } // A delegate implementation builder for the [PPictureInPictureSampleBufferPlaybackDelegate] protocol. type PictureInPictureSampleBufferPlaybackDelegate struct { - _PictureInPictureControllerShouldProhibitBackgroundAudioPlayback func(pictureInPictureController PictureInPictureController) bool + _PictureInPictureControllerDidTransitionToRenderSize func(pictureInPictureController PictureInPictureController, newRenderSize coremedia.VideoDimensions) + _PictureInPictureControllerSkipByIntervalCompletionHandler func(pictureInPictureController PictureInPictureController, skipInterval coremedia.Time, completionHandler func()) + _PictureInPictureControllerSetPlaying func(pictureInPictureController PictureInPictureController, playing bool) _PictureInPictureControllerIsPlaybackPaused func(pictureInPictureController PictureInPictureController) bool _PictureInPictureControllerTimeRangeForPlayback func(pictureInPictureController PictureInPictureController) coremedia.TimeRange - _PictureInPictureControllerSetPlaying func(pictureInPictureController PictureInPictureController, playing bool) + _PictureInPictureControllerShouldProhibitBackgroundAudioPlayback func(pictureInPictureController PictureInPictureController) bool } -func (di *PictureInPictureSampleBufferPlaybackDelegate) HasPictureInPictureControllerShouldProhibitBackgroundAudioPlayback() bool { - return di._PictureInPictureControllerShouldProhibitBackgroundAudioPlayback != nil +func (di *PictureInPictureSampleBufferPlaybackDelegate) HasPictureInPictureControllerDidTransitionToRenderSize() bool { + return di._PictureInPictureControllerDidTransitionToRenderSize != nil } -// Asks the delegate whether to always prohibit background audio playback. [Full Topic] +// Tells the delegate when the system Picture in Picture window changes size. [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/3750333-pictureinpicturecontroller?language=objc +func (di *PictureInPictureSampleBufferPlaybackDelegate) SetPictureInPictureControllerDidTransitionToRenderSize(f func(pictureInPictureController PictureInPictureController, newRenderSize coremedia.VideoDimensions)) { + di._PictureInPictureControllerDidTransitionToRenderSize = f } -// Asks the delegate whether to always prohibit background audio playback. [Full Topic] +// Tells the delegate when the system Picture in Picture window changes size. [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/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 +} + +// 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 +} + +// Tells the delegate that the user requested to begin or pause 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 +} + +// Tells the delegate that the user requested to begin or pause 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) } func (di *PictureInPictureSampleBufferPlaybackDelegate) HasPictureInPictureControllerIsPlaybackPaused() bool { return di._PictureInPictureControllerIsPlaybackPaused != nil @@ -87,72 +131,97 @@ func (di *PictureInPictureSampleBufferPlaybackDelegate) SetPictureInPictureContr func (di *PictureInPictureSampleBufferPlaybackDelegate) PictureInPictureControllerTimeRangeForPlayback(pictureInPictureController PictureInPictureController) coremedia.TimeRange { return di._PictureInPictureControllerTimeRangeForPlayback(pictureInPictureController) } -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) } -// A concrete type wrapper for the [PPictureInPictureSampleBufferPlaybackDelegate] protocol. -type PictureInPictureSampleBufferPlaybackDelegateWrapper struct { +// ensure impl type implements protocol interface +var _ PPictureInPictureSampleBufferPlaybackDelegate = (*PictureInPictureSampleBufferPlaybackDelegateObject)(nil) + +// A concrete type for the [PPictureInPictureSampleBufferPlaybackDelegate] protocol. +type PictureInPictureSampleBufferPlaybackDelegateObject struct { objc.Object } -func (p_ PictureInPictureSampleBufferPlaybackDelegateWrapper) HasPictureInPictureControllerShouldProhibitBackgroundAudioPlayback() bool { - return p_.RespondsToSelector(objc.Sel("pictureInPictureControllerShouldProhibitBackgroundAudioPlayback:")) +func (p_ PictureInPictureSampleBufferPlaybackDelegateObject) HasPictureInPictureControllerDidTransitionToRenderSize() bool { + return p_.RespondsToSelector(objc.Sel("pictureInPictureController:didTransitionToRenderSize:")) } -// Asks the delegate whether to always prohibit background audio playback. [Full Topic] +// Tells the delegate when the system Picture in Picture window changes size. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/avkit/avpictureinpicturesamplebufferplaybackdelegate/3857563-pictureinpicturecontrollershould?language=objc -func (p_ PictureInPictureSampleBufferPlaybackDelegateWrapper) PictureInPictureControllerShouldProhibitBackgroundAudioPlayback(pictureInPictureController IPictureInPictureController) bool { - rv := objc.Call[bool](p_, objc.Sel("pictureInPictureControllerShouldProhibitBackgroundAudioPlayback:"), objc.Ptr(pictureInPictureController)) - return rv +// [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:"), objc.Ptr(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:"), objc.Ptr(pictureInPictureController), skipInterval, completionHandler) +} + +func (p_ PictureInPictureSampleBufferPlaybackDelegateObject) HasPictureInPictureControllerSetPlaying() bool { + return p_.RespondsToSelector(objc.Sel("pictureInPictureController:setPlaying:")) +} + +// Tells the delegate that the user requested to begin or pause 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:"), objc.Ptr(pictureInPictureController), playing) } -func (p_ PictureInPictureSampleBufferPlaybackDelegateWrapper) HasPictureInPictureControllerIsPlaybackPaused() bool { +func (p_ PictureInPictureSampleBufferPlaybackDelegateObject) HasPictureInPictureControllerIsPlaybackPaused() bool { return p_.RespondsToSelector(objc.Sel("pictureInPictureControllerIsPlaybackPaused:")) } // Asks delegate to indicate whether the playback UI reflects a playing or paused state, regardless of the current playback rate. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/avkit/avpictureinpicturesamplebufferplaybackdelegate/3750336-pictureinpicturecontrollerisplay?language=objc -func (p_ PictureInPictureSampleBufferPlaybackDelegateWrapper) PictureInPictureControllerIsPlaybackPaused(pictureInPictureController IPictureInPictureController) bool { +func (p_ PictureInPictureSampleBufferPlaybackDelegateObject) PictureInPictureControllerIsPlaybackPaused(pictureInPictureController PictureInPictureController) bool { rv := objc.Call[bool](p_, objc.Sel("pictureInPictureControllerIsPlaybackPaused:"), objc.Ptr(pictureInPictureController)) return rv } -func (p_ PictureInPictureSampleBufferPlaybackDelegateWrapper) HasPictureInPictureControllerTimeRangeForPlayback() bool { +func (p_ PictureInPictureSampleBufferPlaybackDelegateObject) HasPictureInPictureControllerTimeRangeForPlayback() bool { return p_.RespondsToSelector(objc.Sel("pictureInPictureControllerTimeRangeForPlayback:")) } // Asks the delegate for the current playable time range. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/avkit/avpictureinpicturesamplebufferplaybackdelegate/3750337-pictureinpicturecontrollertimera?language=objc -func (p_ PictureInPictureSampleBufferPlaybackDelegateWrapper) PictureInPictureControllerTimeRangeForPlayback(pictureInPictureController IPictureInPictureController) coremedia.TimeRange { +func (p_ PictureInPictureSampleBufferPlaybackDelegateObject) PictureInPictureControllerTimeRangeForPlayback(pictureInPictureController PictureInPictureController) coremedia.TimeRange { rv := objc.Call[coremedia.TimeRange](p_, objc.Sel("pictureInPictureControllerTimeRangeForPlayback:"), objc.Ptr(pictureInPictureController)) return rv } -func (p_ PictureInPictureSampleBufferPlaybackDelegateWrapper) 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_ PictureInPictureSampleBufferPlaybackDelegateWrapper) PictureInPictureControllerSetPlaying(pictureInPictureController IPictureInPictureController, playing bool) { - objc.Call[objc.Void](p_, objc.Sel("pictureInPictureController:setPlaying:"), objc.Ptr(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:"), objc.Ptr(pictureInPictureController)) + return rv } diff --git a/macos/avkit/player_view.gen.go b/macos/avkit/player_view.gen.go index 58ae2ea0..2ab32d8d 100644 --- a/macos/avkit/player_view.gen.go +++ b/macos/avkit/player_view.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package avkit @@ -21,38 +21,38 @@ type _PlayerViewClass struct { // An interface definition for the [PlayerView] class. type IPlayerView interface { appkit.IView - BeginTrimmingWithCompletionHandler(handler func(result PlayerViewTrimResult)) FlashChapterNumberChapterTitle(chapterNumber uint, chapterTitle string) - VideoGravity() avfoundation.LayerVideoGravity - SetVideoGravity(value avfoundation.LayerVideoGravity) + BeginTrimmingWithCompletionHandler(handler func(result PlayerViewTrimResult)) + ShowsTimecodes() bool + SetShowsTimecodes(value bool) ShowsFrameSteppingButtons() bool SetShowsFrameSteppingButtons(value bool) - VideoBounds() foundation.Rect - ContentOverlayView() appkit.View Player() avfoundation.Player SetPlayer(value avfoundation.IPlayer) - ShowsSharingServiceButton() bool - SetShowsSharingServiceButton(value bool) - Delegate() PlayerViewDelegateWrapper + VideoGravity() avfoundation.LayerVideoGravity + SetVideoGravity(value avfoundation.LayerVideoGravity) + VideoBounds() foundation.Rect + Delegate() PlayerViewDelegateObject SetDelegate(value PPlayerViewDelegate) SetDelegateObject(valueObject objc.IObject) - IsReadyForDisplay() bool - ShowsTimecodes() bool - SetShowsTimecodes(value bool) - AllowsPictureInPicturePlayback() bool - SetAllowsPictureInPicturePlayback(value bool) - ActionPopUpButtonMenu() appkit.Menu - SetActionPopUpButtonMenu(value appkit.IMenu) UpdatesNowPlayingInfoCenter() bool SetUpdatesNowPlayingInfoCenter(value bool) + ShowsFullScreenToggleButton() bool + SetShowsFullScreenToggleButton(value bool) + AllowsPictureInPicturePlayback() bool + SetAllowsPictureInPicturePlayback(value bool) + ContentOverlayView() appkit.View CanBeginTrimming() bool + ShowsSharingServiceButton() bool + SetShowsSharingServiceButton(value bool) ControlsStyle() PlayerViewControlsStyle SetControlsStyle(value PlayerViewControlsStyle) - PictureInPictureDelegate() PlayerViewPictureInPictureDelegateWrapper + 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] @@ -73,10 +73,6 @@ func (pc _PlayerViewClass) Alloc() PlayerView { return rv } -func PlayerView_Alloc() PlayerView { - return PlayerViewClass.Alloc() -} - func (pc _PlayerViewClass) New() PlayerView { rv := objc.Call[PlayerView](pc, objc.Sel("new")) rv.Autorelease() @@ -106,13 +102,6 @@ func NewPlayerViewWithFrame(frameRect foundation.Rect) PlayerView { return instance } -// Puts the player view into trimming mode. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/avkit/avplayerview/1416570-begintrimmingwithcompletionhandl?language=objc -func (p_ PlayerView) BeginTrimmingWithCompletionHandler(handler func(result PlayerViewTrimResult)) { - objc.Call[objc.Void](p_, objc.Sel("beginTrimmingWithCompletionHandler:"), handler) -} - // 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 @@ -120,19 +109,26 @@ func (p_ PlayerView) FlashChapterNumberChapterTitle(chapterNumber uint, chapterT 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] +// Puts the player view into trimming mode. [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/1416570-begintrimmingwithcompletionhandl?language=objc +func (p_ PlayerView) BeginTrimmingWithCompletionHandler(handler func(result PlayerViewTrimResult)) { + objc.Call[objc.Void](p_, objc.Sel("beginTrimmingWithCompletionHandler:"), handler) +} + +// A Boolean value that determines whether the player view displays timecodes, if available. [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")) return rv } -// 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 timecodes, if available. [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) +// [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 displays frame stepping buttons. [Full Topic] @@ -150,22 +146,6 @@ 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 @@ -181,26 +161,34 @@ func (p_ PlayerView) SetPlayer(value avfoundation.IPlayer) { objc.Call[objc.Void](p_, objc.Sel("setPlayer:"), objc.Ptr(value)) } -// A Boolean value that determines whether the player view displays a sharing service button. [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/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/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 a sharing service button. [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/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/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] +// +// [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 } // The player view’s delegate object. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/avkit/avplayerview/3752984-delegate?language=objc -func (p_ PlayerView) Delegate() PlayerViewDelegateWrapper { - rv := objc.Call[PlayerViewDelegateWrapper](p_, objc.Sel("delegate")) +func (p_ PlayerView) Delegate() PlayerViewDelegateObject { + rv := objc.Call[PlayerViewDelegateObject](p_, objc.Sel("delegate")) return rv } @@ -220,27 +208,34 @@ func (p_ PlayerView) SetDelegateObject(valueObject objc.IObject) { objc.Call[objc.Void](p_, objc.Sel("setDelegate:"), objc.Ptr(valueObject)) } -// A Boolean value that indicates whether the current player item’s first video frame is ready for display. [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/1416556-readyfordisplay?language=objc -func (p_ PlayerView) IsReadyForDisplay() bool { - rv := objc.Call[bool](p_, objc.Sel("isReadyForDisplay")) +// [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 timecodes, if available. [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/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/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] +// +// [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 timecodes, if available. [Full Topic] +// 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/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/1416561-showsfullscreentogglebutton?language=objc +func (p_ PlayerView) SetShowsFullScreenToggleButton(value bool) { + objc.Call[objc.Void](p_, objc.Sel("setShowsFullScreenToggleButton:"), value) } // A Boolean value that determines whether the player view allows Picture in Picture playback. [Full Topic] @@ -258,42 +253,35 @@ func (p_ PlayerView) SetAllowsPictureInPicturePlayback(value bool) { objc.Call[objc.Void](p_, objc.Sel("setAllowsPictureInPicturePlayback:"), value) } -// An action pop-up button menu that the player view displays. [Full Topic] +// 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/1416543-actionpopupbuttonmenu?language=objc -func (p_ PlayerView) ActionPopUpButtonMenu() appkit.Menu { - rv := objc.Call[appkit.Menu](p_, objc.Sel("actionPopUpButtonMenu")) +// [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 } -// 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:"), objc.Ptr(value)) -} - -// 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 player view can begin trimming. [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/1416545-canbegintrimming?language=objc +func (p_ PlayerView) CanBeginTrimming() bool { + rv := objc.Call[bool](p_, objc.Sel("canBeginTrimming")) return rv } -// A Boolean value that indicates whether the player view controller updates the Now Playing info center. [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/2876219-updatesnowplayinginfocenter?language=objc -func (p_ PlayerView) SetUpdatesNowPlayingInfoCenter(value bool) { - objc.Call[objc.Void](p_, objc.Sel("setUpdatesNowPlayingInfoCenter:"), value) +// [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 Boolean value that indicates whether the player view can begin trimming. [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/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/1416558-showssharingservicebutton?language=objc +func (p_ PlayerView) SetShowsSharingServiceButton(value bool) { + objc.Call[objc.Void](p_, objc.Sel("setShowsSharingServiceButton:"), value) } // The player view’s controls style. [Full Topic] @@ -311,11 +299,34 @@ 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:"), objc.Ptr(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 -func (p_ PlayerView) PictureInPictureDelegate() PlayerViewPictureInPictureDelegateWrapper { - rv := objc.Call[PlayerViewPictureInPictureDelegateWrapper](p_, objc.Sel("pictureInPictureDelegate")) +func (p_ PlayerView) PictureInPictureDelegate() PlayerViewPictureInPictureDelegateObject { + rv := objc.Call[PlayerViewPictureInPictureDelegateObject](p_, objc.Sel("pictureInPictureDelegate")) return rv } @@ -334,18 +345,3 @@ func (p_ PlayerView) SetPictureInPictureDelegate(value PPlayerViewPictureInPictu func (p_ PlayerView) SetPictureInPictureDelegateObject(valueObject objc.IObject) { objc.Call[objc.Void](p_, objc.Sel("setPictureInPictureDelegate:"), objc.Ptr(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 d75e2a67..08415b0f 100644 --- a/macos/avkit/player_view_delegate.gen.go +++ b/macos/avkit/player_view_delegate.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package avkit @@ -10,18 +10,14 @@ import ( // // [Full Topic]: https://developer.apple.com/documentation/avkit/avplayerviewdelegate?language=objc type PPlayerViewDelegate interface { - // optional - PlayerViewWillEnterFullScreen(playerView PlayerView) - HasPlayerViewWillEnterFullScreen() bool - - // optional - PlayerViewDidEnterFullScreen(playerView PlayerView) - HasPlayerViewDidEnterFullScreen() bool - // optional PlayerViewWillExitFullScreen(playerView PlayerView) HasPlayerViewWillExitFullScreen() bool + // optional + PlayerViewWillEnterFullScreen(playerView PlayerView) + HasPlayerViewWillEnterFullScreen() bool + // optional PlayerViewDidExitFullScreen(playerView PlayerView) HasPlayerViewDidExitFullScreen() bool @@ -29,51 +25,21 @@ 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 { - _PlayerViewWillEnterFullScreen func(playerView PlayerView) - _PlayerViewDidEnterFullScreen func(playerView PlayerView) _PlayerViewWillExitFullScreen func(playerView PlayerView) + _PlayerViewWillEnterFullScreen func(playerView PlayerView) _PlayerViewDidExitFullScreen func(playerView PlayerView) _PlayerViewRestoreUserInterfaceForFullScreenExitWithCompletionHandler func(playerView PlayerView, completionHandler func(restored bool)) + _PlayerViewDidEnterFullScreen func(playerView PlayerView) } -func (di *PlayerViewDelegate) HasPlayerViewWillEnterFullScreen() bool { - return di._PlayerViewWillEnterFullScreen != nil -} - -// 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 (di *PlayerViewDelegate) SetPlayerViewWillEnterFullScreen(f func(playerView PlayerView)) { - di._PlayerViewWillEnterFullScreen = f -} - -// 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 (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 } @@ -91,6 +57,23 @@ func (di *PlayerViewDelegate) SetPlayerViewWillExitFullScreen(f func(playerView func (di *PlayerViewDelegate) PlayerViewWillExitFullScreen(playerView PlayerView) { di._PlayerViewWillExitFullScreen(playerView) } +func (di *PlayerViewDelegate) HasPlayerViewWillEnterFullScreen() bool { + return di._PlayerViewWillEnterFullScreen != nil +} + +// 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 (di *PlayerViewDelegate) SetPlayerViewWillEnterFullScreen(f func(playerView PlayerView)) { + di._PlayerViewWillEnterFullScreen = f +} + +// 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 (di *PlayerViewDelegate) PlayerViewWillEnterFullScreen(playerView PlayerView) { + di._PlayerViewWillEnterFullScreen(playerView) +} func (di *PlayerViewDelegate) HasPlayerViewDidExitFullScreen() bool { return di._PlayerViewDidExitFullScreen != nil } @@ -125,63 +108,83 @@ func (di *PlayerViewDelegate) SetPlayerViewRestoreUserInterfaceForFullScreenExit func (di *PlayerViewDelegate) PlayerViewRestoreUserInterfaceForFullScreenExitWithCompletionHandler(playerView PlayerView, completionHandler func(restored bool)) { di._PlayerViewRestoreUserInterfaceForFullScreenExitWithCompletionHandler(playerView, completionHandler) } - -// A concrete type wrapper for the [PPlayerViewDelegate] protocol. -type PlayerViewDelegateWrapper struct { - objc.Object -} - -func (p_ PlayerViewDelegateWrapper) HasPlayerViewWillEnterFullScreen() bool { - return p_.RespondsToSelector(objc.Sel("playerViewWillEnterFullScreen:")) +func (di *PlayerViewDelegate) HasPlayerViewDidEnterFullScreen() bool { + return di._PlayerViewDidEnterFullScreen != nil } -// Tells the delegate that the player view is about to enter full-screen mode. [Full Topic] +// Tells the delegate that the player view entered full-screen mode. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/avkit/avplayerviewdelegate/3752989-playerviewwillenterfullscreen?language=objc -func (p_ PlayerViewDelegateWrapper) PlayerViewWillEnterFullScreen(playerView IPlayerView) { - objc.Call[objc.Void](p_, objc.Sel("playerViewWillEnterFullScreen:"), objc.Ptr(playerView)) -} - -func (p_ PlayerViewDelegateWrapper) HasPlayerViewDidEnterFullScreen() bool { - return p_.RespondsToSelector(objc.Sel("playerViewDidEnterFullScreen:")) +// [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 (p_ PlayerViewDelegateWrapper) PlayerViewDidEnterFullScreen(playerView IPlayerView) { - objc.Call[objc.Void](p_, objc.Sel("playerViewDidEnterFullScreen:"), objc.Ptr(playerView)) +func (di *PlayerViewDelegate) PlayerViewDidEnterFullScreen(playerView PlayerView) { + di._PlayerViewDidEnterFullScreen(playerView) +} + +// ensure impl type implements protocol interface +var _ PPlayerViewDelegate = (*PlayerViewDelegateObject)(nil) + +// A concrete type for the [PPlayerViewDelegate] protocol. +type PlayerViewDelegateObject struct { + objc.Object } -func (p_ PlayerViewDelegateWrapper) HasPlayerViewWillExitFullScreen() bool { +func (p_ PlayerViewDelegateObject) HasPlayerViewWillExitFullScreen() bool { return p_.RespondsToSelector(objc.Sel("playerViewWillExitFullScreen:")) } // 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 (p_ PlayerViewDelegateWrapper) PlayerViewWillExitFullScreen(playerView IPlayerView) { +func (p_ PlayerViewDelegateObject) PlayerViewWillExitFullScreen(playerView PlayerView) { objc.Call[objc.Void](p_, objc.Sel("playerViewWillExitFullScreen:"), objc.Ptr(playerView)) } -func (p_ PlayerViewDelegateWrapper) HasPlayerViewDidExitFullScreen() bool { +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:"), objc.Ptr(playerView)) +} + +func (p_ PlayerViewDelegateObject) HasPlayerViewDidExitFullScreen() bool { return p_.RespondsToSelector(objc.Sel("playerViewDidExitFullScreen:")) } // Tells the delegate that the player view exited full-screen mode. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/avkit/avplayerviewdelegate/3752988-playerviewdidexitfullscreen?language=objc -func (p_ PlayerViewDelegateWrapper) PlayerViewDidExitFullScreen(playerView IPlayerView) { +func (p_ PlayerViewDelegateObject) PlayerViewDidExitFullScreen(playerView PlayerView) { objc.Call[objc.Void](p_, objc.Sel("playerViewDidExitFullScreen:"), objc.Ptr(playerView)) } -func (p_ PlayerViewDelegateWrapper) HasPlayerViewRestoreUserInterfaceForFullScreenExitWithCompletionHandler() bool { +func (p_ PlayerViewDelegateObject) HasPlayerViewRestoreUserInterfaceForFullScreenExitWithCompletionHandler() bool { return p_.RespondsToSelector(objc.Sel("playerView:restoreUserInterfaceForFullScreenExitWithCompletionHandler:")) } // Tells the delegate to restore the app’s user interface when exiting full-screen mode. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/avkit/avplayerviewdelegate/3752986-playerview?language=objc -func (p_ PlayerViewDelegateWrapper) PlayerViewRestoreUserInterfaceForFullScreenExitWithCompletionHandler(playerView IPlayerView, completionHandler func(restored bool)) { +func (p_ PlayerViewDelegateObject) PlayerViewRestoreUserInterfaceForFullScreenExitWithCompletionHandler(playerView PlayerView, completionHandler func(restored bool)) { objc.Call[objc.Void](p_, objc.Sel("playerView:restoreUserInterfaceForFullScreenExitWithCompletionHandler:"), objc.Ptr(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:"), objc.Ptr(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 aa404c35..5da8ec56 100644 --- a/macos/avkit/player_view_picture_in_picture_delegate.gen.go +++ b/macos/avkit/player_view_picture_in_picture_delegate.gen.go @@ -1,8 +1,9 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package avkit import ( + "github.com/progrium/macdriver/macos/foundation" "github.com/progrium/macdriver/objc" ) @@ -11,73 +12,95 @@ import ( // [Full Topic]: https://developer.apple.com/documentation/avkit/avplayerviewpictureinpicturedelegate?language=objc type PPlayerViewPictureInPictureDelegate interface { // optional - PlayerViewWillStartPictureInPicture(playerView PlayerView) - HasPlayerViewWillStartPictureInPicture() bool + PlayerViewShouldAutomaticallyDismissAtPictureInPictureStart(playerView PlayerView) bool + HasPlayerViewShouldAutomaticallyDismissAtPictureInPictureStart() bool // optional - PlayerViewDidStopPictureInPicture(playerView PlayerView) - HasPlayerViewDidStopPictureInPicture() bool + PlayerViewFailedToStartPictureInPictureWithError(playerView PlayerView, error foundation.Error) + HasPlayerViewFailedToStartPictureInPictureWithError() bool // optional - PlayerViewDidStartPictureInPicture(playerView PlayerView) - HasPlayerViewDidStartPictureInPicture() bool + PlayerViewWillStopPictureInPicture(playerView PlayerView) + HasPlayerViewWillStopPictureInPicture() bool // optional - PlayerViewShouldAutomaticallyDismissAtPictureInPictureStart(playerView PlayerView) bool - HasPlayerViewShouldAutomaticallyDismissAtPictureInPictureStart() bool + PlayerViewDidStartPictureInPicture(playerView PlayerView) + HasPlayerViewDidStartPictureInPicture() bool // optional - PlayerViewWillStopPictureInPicture(playerView PlayerView) - HasPlayerViewWillStopPictureInPicture() bool + PlayerViewWillStartPictureInPicture(playerView PlayerView) + HasPlayerViewWillStartPictureInPicture() bool // optional PlayerViewRestoreUserInterfaceForPictureInPictureStopWithCompletionHandler(playerView PlayerView, completionHandler func(restored bool)) HasPlayerViewRestoreUserInterfaceForPictureInPictureStopWithCompletionHandler() bool + + // optional + PlayerViewDidStopPictureInPicture(playerView PlayerView) + HasPlayerViewDidStopPictureInPicture() 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) 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) HasPlayerViewDidStopPictureInPicture() bool { - return di._PlayerViewDidStopPictureInPicture != nil +func (di *PlayerViewPictureInPictureDelegate) HasPlayerViewFailedToStartPictureInPictureWithError() bool { + return di._PlayerViewFailedToStartPictureInPictureWithError != nil } -// Tells the delegate that Picture in Picture playback stopped. [Full Topic] +// Tells the delegate that Picture in Picture playback failed 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/3172691-playerview?language=objc +func (di *PlayerViewPictureInPictureDelegate) SetPlayerViewFailedToStartPictureInPictureWithError(f func(playerView PlayerView, error foundation.Error)) { + di._PlayerViewFailedToStartPictureInPictureWithError = f } -// Tells the delegate that Picture in Picture playback stopped. [Full Topic] +// Tells the delegate that Picture in Picture playback failed to start. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/avkit/avplayerviewpictureinpicturedelegate/3172694-playerviewdidstoppictureinpictur?language=objc -func (di *PlayerViewPictureInPictureDelegate) PlayerViewDidStopPictureInPicture(playerView PlayerView) { - di._PlayerViewDidStopPictureInPicture(playerView) +// [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) +} +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) HasPlayerViewDidStartPictureInPicture() bool { return di._PlayerViewDidStartPictureInPicture != nil @@ -96,39 +119,22 @@ func (di *PlayerViewPictureInPictureDelegate) SetPlayerViewDidStartPictureInPict func (di *PlayerViewPictureInPictureDelegate) PlayerViewDidStartPictureInPicture(playerView PlayerView) { di._PlayerViewDidStartPictureInPicture(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) HasPlayerViewWillStopPictureInPicture() bool { - return di._PlayerViewWillStopPictureInPicture != nil +func (di *PlayerViewPictureInPictureDelegate) HasPlayerViewWillStartPictureInPicture() bool { + return di._PlayerViewWillStartPictureInPicture != nil } -// Tells the delegate that Picture in Picture playback is about to stop. [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/3172697-playerviewwillstoppictureinpictu?language=objc -func (di *PlayerViewPictureInPictureDelegate) SetPlayerViewWillStopPictureInPicture(f func(playerView PlayerView)) { - di._PlayerViewWillStopPictureInPicture = 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 is about to stop. [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/3172697-playerviewwillstoppictureinpictu?language=objc -func (di *PlayerViewPictureInPictureDelegate) PlayerViewWillStopPictureInPicture(playerView PlayerView) { - di._PlayerViewWillStopPictureInPicture(playerView) +// [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) HasPlayerViewRestoreUserInterfaceForPictureInPictureStopWithCompletionHandler() bool { return di._PlayerViewRestoreUserInterfaceForPictureInPictureStopWithCompletionHandler != nil @@ -147,75 +153,106 @@ func (di *PlayerViewPictureInPictureDelegate) SetPlayerViewRestoreUserInterfaceF func (di *PlayerViewPictureInPictureDelegate) PlayerViewRestoreUserInterfaceForPictureInPictureStopWithCompletionHandler(playerView PlayerView, completionHandler func(restored bool)) { di._PlayerViewRestoreUserInterfaceForPictureInPictureStopWithCompletionHandler(playerView, completionHandler) } - -// A concrete type wrapper for the [PPlayerViewPictureInPictureDelegate] protocol. -type PlayerViewPictureInPictureDelegateWrapper struct { - objc.Object -} - -func (p_ PlayerViewPictureInPictureDelegateWrapper) HasPlayerViewWillStartPictureInPicture() bool { - return p_.RespondsToSelector(objc.Sel("playerViewWillStartPictureInPicture:")) +func (di *PlayerViewPictureInPictureDelegate) HasPlayerViewDidStopPictureInPicture() bool { + return di._PlayerViewDidStopPictureInPicture != nil } -// Tells the delegate that Picture in Picture playback is about to start. [Full Topic] +// Tells the delegate that Picture in Picture playback stopped. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/avkit/avplayerviewpictureinpicturedelegate/3172696-playerviewwillstartpictureinpict?language=objc -func (p_ PlayerViewPictureInPictureDelegateWrapper) PlayerViewWillStartPictureInPicture(playerView IPlayerView) { - objc.Call[objc.Void](p_, objc.Sel("playerViewWillStartPictureInPicture:"), objc.Ptr(playerView)) -} - -func (p_ PlayerViewPictureInPictureDelegateWrapper) HasPlayerViewDidStopPictureInPicture() bool { - return p_.RespondsToSelector(objc.Sel("playerViewDidStopPictureInPicture:")) +// [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 stopped. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/avkit/avplayerviewpictureinpicturedelegate/3172694-playerviewdidstoppictureinpictur?language=objc -func (p_ PlayerViewPictureInPictureDelegateWrapper) PlayerViewDidStopPictureInPicture(playerView IPlayerView) { - objc.Call[objc.Void](p_, objc.Sel("playerViewDidStopPictureInPicture:"), objc.Ptr(playerView)) +func (di *PlayerViewPictureInPictureDelegate) PlayerViewDidStopPictureInPicture(playerView PlayerView) { + di._PlayerViewDidStopPictureInPicture(playerView) } -func (p_ PlayerViewPictureInPictureDelegateWrapper) HasPlayerViewDidStartPictureInPicture() bool { - return p_.RespondsToSelector(objc.Sel("playerViewDidStartPictureInPicture:")) -} +// ensure impl type implements protocol interface +var _ PPlayerViewPictureInPictureDelegate = (*PlayerViewPictureInPictureDelegateObject)(nil) -// 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_ PlayerViewPictureInPictureDelegateWrapper) PlayerViewDidStartPictureInPicture(playerView IPlayerView) { - objc.Call[objc.Void](p_, objc.Sel("playerViewDidStartPictureInPicture:"), objc.Ptr(playerView)) +// A concrete type for the [PPlayerViewPictureInPictureDelegate] protocol. +type PlayerViewPictureInPictureDelegateObject struct { + objc.Object } -func (p_ PlayerViewPictureInPictureDelegateWrapper) HasPlayerViewShouldAutomaticallyDismissAtPictureInPictureStart() bool { +func (p_ PlayerViewPictureInPictureDelegateObject) HasPlayerViewShouldAutomaticallyDismissAtPictureInPictureStart() bool { return p_.RespondsToSelector(objc.Sel("playerViewShouldAutomaticallyDismissAtPictureInPictureStart:")) } // 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 (p_ PlayerViewPictureInPictureDelegateWrapper) PlayerViewShouldAutomaticallyDismissAtPictureInPictureStart(playerView IPlayerView) bool { +func (p_ PlayerViewPictureInPictureDelegateObject) PlayerViewShouldAutomaticallyDismissAtPictureInPictureStart(playerView PlayerView) bool { rv := objc.Call[bool](p_, objc.Sel("playerViewShouldAutomaticallyDismissAtPictureInPictureStart:"), objc.Ptr(playerView)) return rv } -func (p_ PlayerViewPictureInPictureDelegateWrapper) HasPlayerViewWillStopPictureInPicture() bool { +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:"), objc.Ptr(playerView), objc.Ptr(error)) +} + +func (p_ PlayerViewPictureInPictureDelegateObject) HasPlayerViewWillStopPictureInPicture() bool { return p_.RespondsToSelector(objc.Sel("playerViewWillStopPictureInPicture:")) } // 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 (p_ PlayerViewPictureInPictureDelegateWrapper) PlayerViewWillStopPictureInPicture(playerView IPlayerView) { +func (p_ PlayerViewPictureInPictureDelegateObject) PlayerViewWillStopPictureInPicture(playerView PlayerView) { objc.Call[objc.Void](p_, objc.Sel("playerViewWillStopPictureInPicture:"), objc.Ptr(playerView)) } -func (p_ PlayerViewPictureInPictureDelegateWrapper) HasPlayerViewRestoreUserInterfaceForPictureInPictureStopWithCompletionHandler() bool { +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:"), objc.Ptr(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:"), objc.Ptr(playerView)) +} + +func (p_ PlayerViewPictureInPictureDelegateObject) HasPlayerViewRestoreUserInterfaceForPictureInPictureStopWithCompletionHandler() bool { return p_.RespondsToSelector(objc.Sel("playerView:restoreUserInterfaceForPictureInPictureStopWithCompletionHandler:")) } // Tells the delegate to restore the user interface before Picture in Picture playback stops. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/avkit/avplayerviewpictureinpicturedelegate/3172692-playerview?language=objc -func (p_ PlayerViewPictureInPictureDelegateWrapper) PlayerViewRestoreUserInterfaceForPictureInPictureStopWithCompletionHandler(playerView IPlayerView, completionHandler func(restored bool)) { +func (p_ PlayerViewPictureInPictureDelegateObject) PlayerViewRestoreUserInterfaceForPictureInPictureStopWithCompletionHandler(playerView PlayerView, completionHandler func(restored bool)) { objc.Call[objc.Void](p_, objc.Sel("playerView:restoreUserInterfaceForPictureInPictureStopWithCompletionHandler:"), objc.Ptr(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:"), objc.Ptr(playerView)) +} diff --git a/macos/avkit/protocols.gen.m b/macos/avkit/protocols.gen.m index 2a73419f..6dead03f 100644 --- a/macos/avkit/protocols.gen.m +++ b/macos/avkit/protocols.gen.m @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. #import "AVKit/AVKit.h" diff --git a/macos/avkit/route_picker_view.gen.go b/macos/avkit/route_picker_view.gen.go index 45b56f09..a84ec6f1 100644 --- a/macos/avkit/route_picker_view.gen.go +++ b/macos/avkit/route_picker_view.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package avkit @@ -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() RoutePickerViewDelegateWrapper + 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] @@ -50,10 +50,6 @@ func (rc _RoutePickerViewClass) Alloc() RoutePickerView { return rv } -func RoutePickerView_Alloc() RoutePickerView { - return RoutePickerViewClass.Alloc() -} - func (rc _RoutePickerViewClass) New() RoutePickerView { rv := objc.Call[RoutePickerView](rc, objc.Sel("new")) rv.Autorelease() @@ -98,6 +94,21 @@ 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 @@ -116,8 +127,8 @@ func (r_ RoutePickerView) SetPlayer(value avfoundation.IPlayer) { // The delegate object for the route picker. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/avkit/avroutepickerview/2915799-delegate?language=objc -func (r_ RoutePickerView) Delegate() RoutePickerViewDelegateWrapper { - rv := objc.Call[RoutePickerViewDelegateWrapper](r_, objc.Sel("delegate")) +func (r_ RoutePickerView) Delegate() RoutePickerViewDelegateObject { + rv := objc.Call[RoutePickerViewDelegateObject](r_, objc.Sel("delegate")) return rv } @@ -136,18 +147,3 @@ func (r_ RoutePickerView) SetDelegate(value PRoutePickerViewDelegate) { func (r_ RoutePickerView) SetDelegateObject(valueObject objc.IObject) { objc.Call[objc.Void](r_, objc.Sel("setDelegate:"), objc.Ptr(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 b07025e3..4b89b74b 100644 --- a/macos/avkit/route_picker_view_delegate.gen.go +++ b/macos/avkit/route_picker_view_delegate.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package avkit @@ -10,38 +10,21 @@ import ( // // [Full Topic]: https://developer.apple.com/documentation/avkit/avroutepickerviewdelegate?language=objc type PRoutePickerViewDelegate interface { - // optional - RoutePickerViewWillBeginPresentingRoutes(routePickerView RoutePickerView) - HasRoutePickerViewWillBeginPresentingRoutes() bool - // optional RoutePickerViewDidEndPresentingRoutes(routePickerView RoutePickerView) HasRoutePickerViewDidEndPresentingRoutes() bool + + // optional + RoutePickerViewWillBeginPresentingRoutes(routePickerView RoutePickerView) + HasRoutePickerViewWillBeginPresentingRoutes() bool } // A delegate implementation builder for the [PRoutePickerViewDelegate] protocol. type RoutePickerViewDelegate struct { - _RoutePickerViewWillBeginPresentingRoutes func(routePickerView RoutePickerView) _RoutePickerViewDidEndPresentingRoutes func(routePickerView RoutePickerView) + _RoutePickerViewWillBeginPresentingRoutes func(routePickerView RoutePickerView) } -func (di *RoutePickerViewDelegate) HasRoutePickerViewWillBeginPresentingRoutes() bool { - return di._RoutePickerViewWillBeginPresentingRoutes != nil -} - -// Tells the delegate that the route picker view is about to begin presenting routes to the user. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/avkit/avroutepickerviewdelegate/2915788-routepickerviewwillbeginpresenti?language=objc -func (di *RoutePickerViewDelegate) SetRoutePickerViewWillBeginPresentingRoutes(f func(routePickerView RoutePickerView)) { - di._RoutePickerViewWillBeginPresentingRoutes = f -} - -// Tells the delegate that the route picker view is about to begin presenting routes to the user. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/avkit/avroutepickerviewdelegate/2915788-routepickerviewwillbeginpresenti?language=objc -func (di *RoutePickerViewDelegate) RoutePickerViewWillBeginPresentingRoutes(routePickerView RoutePickerView) { - di._RoutePickerViewWillBeginPresentingRoutes(routePickerView) -} func (di *RoutePickerViewDelegate) HasRoutePickerViewDidEndPresentingRoutes() bool { return di._RoutePickerViewDidEndPresentingRoutes != nil } @@ -59,30 +42,50 @@ func (di *RoutePickerViewDelegate) SetRoutePickerViewDidEndPresentingRoutes(f fu func (di *RoutePickerViewDelegate) RoutePickerViewDidEndPresentingRoutes(routePickerView RoutePickerView) { di._RoutePickerViewDidEndPresentingRoutes(routePickerView) } - -// A concrete type wrapper for the [PRoutePickerViewDelegate] protocol. -type RoutePickerViewDelegateWrapper struct { - objc.Object +func (di *RoutePickerViewDelegate) HasRoutePickerViewWillBeginPresentingRoutes() bool { + return di._RoutePickerViewWillBeginPresentingRoutes != nil } -func (r_ RoutePickerViewDelegateWrapper) HasRoutePickerViewWillBeginPresentingRoutes() bool { - return r_.RespondsToSelector(objc.Sel("routePickerViewWillBeginPresentingRoutes:")) +// Tells the delegate that the route picker view is about to begin presenting routes to the user. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/avkit/avroutepickerviewdelegate/2915788-routepickerviewwillbeginpresenti?language=objc +func (di *RoutePickerViewDelegate) SetRoutePickerViewWillBeginPresentingRoutes(f func(routePickerView RoutePickerView)) { + di._RoutePickerViewWillBeginPresentingRoutes = f } // Tells the delegate that the route picker view is about to begin presenting routes to the user. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/avkit/avroutepickerviewdelegate/2915788-routepickerviewwillbeginpresenti?language=objc -func (r_ RoutePickerViewDelegateWrapper) RoutePickerViewWillBeginPresentingRoutes(routePickerView IRoutePickerView) { - objc.Call[objc.Void](r_, objc.Sel("routePickerViewWillBeginPresentingRoutes:"), objc.Ptr(routePickerView)) +func (di *RoutePickerViewDelegate) RoutePickerViewWillBeginPresentingRoutes(routePickerView RoutePickerView) { + di._RoutePickerViewWillBeginPresentingRoutes(routePickerView) } -func (r_ RoutePickerViewDelegateWrapper) HasRoutePickerViewDidEndPresentingRoutes() bool { +// 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) 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_ RoutePickerViewDelegateWrapper) RoutePickerViewDidEndPresentingRoutes(routePickerView IRoutePickerView) { +func (r_ RoutePickerViewDelegateObject) RoutePickerViewDidEndPresentingRoutes(routePickerView RoutePickerView) { objc.Call[objc.Void](r_, objc.Sel("routePickerViewDidEndPresentingRoutes:"), objc.Ptr(routePickerView)) } + +func (r_ RoutePickerViewDelegateObject) HasRoutePickerViewWillBeginPresentingRoutes() bool { + return r_.RespondsToSelector(objc.Sel("routePickerViewWillBeginPresentingRoutes:")) +} + +// Tells the delegate that the route picker view is about to begin presenting routes to the user. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/avkit/avroutepickerviewdelegate/2915788-routepickerviewwillbeginpresenti?language=objc +func (r_ RoutePickerViewDelegateObject) RoutePickerViewWillBeginPresentingRoutes(routePickerView RoutePickerView) { + objc.Call[objc.Void](r_, objc.Sel("routePickerViewWillBeginPresentingRoutes:"), objc.Ptr(routePickerView)) +} diff --git a/macos/cloudkit/accept_shares_operation.gen.go b/macos/cloudkit/accept_shares_operation.gen.go index e146c674..1d776afb 100644 --- a/macos/cloudkit/accept_shares_operation.gen.go +++ b/macos/cloudkit/accept_shares_operation.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package cloudkit @@ -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,6 +40,11 @@ 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 @@ -54,20 +59,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 } -func AcceptSharesOperation_Alloc() AcceptSharesOperation { - return AcceptSharesOperationClass.Alloc() -} - func (ac _AcceptSharesOperationClass) New() AcceptSharesOperation { rv := objc.Call[AcceptSharesOperation](ac, objc.Sel("new")) rv.Autorelease() @@ -78,6 +74,21 @@ 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 @@ -107,18 +118,3 @@ 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/aliastypes.gen.go b/macos/cloudkit/aliastypes.gen.go index 81e1324a..d4af6f6d 100644 --- a/macos/cloudkit/aliastypes.gen.go +++ b/macos/cloudkit/aliastypes.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package cloudkit diff --git a/macos/cloudkit/asset.gen.go b/macos/cloudkit/asset.gen.go index 4bb8938d..3e118141 100644 --- a/macos/cloudkit/asset.gen.go +++ b/macos/cloudkit/asset.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package cloudkit @@ -54,10 +54,6 @@ func (ac _AssetClass) Alloc() Asset { return rv } -func Asset_Alloc() Asset { - return AssetClass.Alloc() -} - func (ac _AssetClass) New() Asset { rv := objc.Call[Asset](ac, objc.Sel("new")) rv.Autorelease() diff --git a/macos/cloudkit/container.gen.go b/macos/cloudkit/container.gen.go index e219efcc..95a1a5a3 100644 --- a/macos/cloudkit/container.gen.go +++ b/macos/cloudkit/container.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package cloudkit @@ -19,21 +19,21 @@ type _ContainerClass struct { // An interface definition for the [Container] class. type IContainer interface { objc.IObject - DatabaseWithDatabaseScope(databaseScope DatabaseScope) Database + FetchShareParticipantWithPhoneNumberCompletionHandler(phoneNumber string, completionHandler func(shareParticipant ShareParticipant, error foundation.Error)) 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) - FetchShareParticipantWithEmailAddressCompletionHandler(emailAddress string, completionHandler func(shareParticipant ShareParticipant, error foundation.Error)) + FetchShareParticipantWithUserRecordIDCompletionHandler(userRecordID IRecordID, 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 + FetchShareParticipantWithEmailAddressCompletionHandler(emailAddress string, completionHandler func(shareParticipant ShareParticipant, error foundation.Error)) + FetchLongLivedOperationWithIDCompletionHandler(operationID OperationID, completionHandler func(outstandingOperation Operation, error foundation.Error)) PublicCloudDatabase() Database ContainerIdentifier() string + PrivateCloudDatabase() Database + SharedCloudDatabase() Database } // A conduit to your app’s databases. [Full Topic] @@ -54,10 +54,6 @@ func (cc _ContainerClass) Alloc() Container { return rv } -func Container_Alloc() Container { - return ContainerClass.Alloc() -} - func (cc _ContainerClass) New() Container { rv := objc.Call[Container](cc, objc.Sel("new")) rv.Autorelease() @@ -73,12 +69,11 @@ func (c_ Container) Init() Container { return rv } -// Returns the database with the specified scope. [Full Topic] +// Fetches the share participant with the specified phone number. [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) - 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) } // Fetches the IDs of any long-lived operations that are running. [Full Topic] @@ -95,19 +90,19 @@ func (c_ Container) FetchShareMetadataWithURLCompletionHandler(url foundation.IU objc.Call[objc.Void](c_, objc.Sel("fetchShareMetadataWithURL:completionHandler:"), objc.Ptr(url), completionHandler) } -// Creates a container for the specified identifier. [Full Topic] +// Returns the database with the specified scope. [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) +// [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 } -// 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) } // Adds an operation to the container’s queue. [Full Topic] @@ -117,13 +112,6 @@ func (c_ Container) AddOperation(operation IOperation) { objc.Call[objc.Void](c_, objc.Sel("addOperation:"), objc.Ptr(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 @@ -139,6 +127,13 @@ 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:"), objc.Ptr(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 @@ -146,13 +141,6 @@ 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 @@ -160,41 +148,33 @@ func (c_ Container) AcceptShareMetadataCompletionHandler(metadata IShareMetadata objc.Call[objc.Void](c_, objc.Sel("acceptShareMetadata:completionHandler:"), objc.Ptr(metadata), completionHandler) } -// Fetches the share participant with the specified phone number. [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) -} - -// 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 (cc _ContainerClass) ContainerWithIdentifier(containerIdentifier string) Container { + rv := objc.Call[Container](cc, objc.Sel("containerWithIdentifier:"), containerIdentifier) + return rv } -// Fetches the share participant with the specified user record ID. [Full Topic] +// Creates a container for the specified identifier. [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:"), objc.Ptr(userRecordID), completionHandler) +// [Full Topic]: https://developer.apple.com/documentation/cloudkit/ckcontainer/1399193-containerwithidentifier?language=objc +func Container_ContainerWithIdentifier(containerIdentifier string) Container { + return ContainerClass.ContainerWithIdentifier(containerIdentifier) } -// The database that contains shared data. [Full Topic] +// Fetches the share participant with the specified email address. [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 +// [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) } -// The user’s private database. [Full Topic] +// Fetches the long-lived operation for the specified operation ID. [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 +// [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) } // The app’s public database. [Full Topic] @@ -212,3 +192,19 @@ 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 ab523cec..2ecfbf94 100644 --- a/macos/cloudkit/database.gen.go +++ b/macos/cloudkit/database.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package cloudkit @@ -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)) - PerformQueryInZoneWithIDCompletionHandler(query IQuery, zoneID IRecordZoneID, completionHandler func(results []Record, error foundation.Error)) + FetchAllRecordZonesWithCompletionHandler(completionHandler func(zones []RecordZone, error foundation.Error)) + FetchAllSubscriptionsWithCompletionHandler(completionHandler func(subscriptions []Subscription, 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 } @@ -53,10 +53,6 @@ func (dc _DatabaseClass) Alloc() Database { return rv } -func Database_Alloc() Database { - return DatabaseClass.Alloc() -} - func (dc _DatabaseClass) New() Database { rv := objc.Call[Database](dc, objc.Sel("new")) rv.Autorelease() @@ -72,39 +68,39 @@ func (d_ Database) Init() Database { return rv } -// Fetches all subscriptions from the current database. [Full Topic] +// Saves a specific record. [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/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:"), objc.Ptr(record), completionHandler) } -// Saves a specific subscription. [Full Topic] +// 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/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:"), objc.Ptr(subscription), completionHandler) +// [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 all record zones 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/1449112-fetchallrecordzoneswithcompletio?language=objc -func (d_ Database) FetchAllRecordZonesWithCompletionHandler(completionHandler func(zones []RecordZone, error foundation.Error)) { - objc.Call[objc.Void](d_, objc.Sel("fetchAllRecordZonesWithCompletionHandler:"), 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:"), objc.Ptr(query), objc.Ptr(zoneID), completionHandler) } -// Executes the specified operation in the current database. [Full Topic] +// Saves a specific subscription. [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:"), objc.Ptr(operation)) +// [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:"), objc.Ptr(subscription), completionHandler) } -// Saves a specific record zone. [Full Topic] +// Fetches a specific subscription and delivers it to a completion handler. [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:"), objc.Ptr(zone), completionHandler) +// [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) } // Deletes a specific record. [Full Topic] @@ -114,27 +110,6 @@ func (d_ Database) DeleteRecordWithIDCompletionHandler(recordID IRecordID, compl objc.Call[objc.Void](d_, objc.Sel("deleteRecordWithID:completionHandler:"), objc.Ptr(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:"), objc.Ptr(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 @@ -149,11 +124,18 @@ func (d_ Database) FetchRecordZoneWithIDCompletionHandler(zoneID IRecordZoneID, objc.Call[objc.Void](d_, objc.Sel("fetchRecordZoneWithID:completionHandler:"), objc.Ptr(zoneID), 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:"), objc.Ptr(query), objc.Ptr(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) +} + +// Fetches all subscriptions from the current database. [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) } // Deletes a specific record zone. [Full Topic] @@ -163,6 +145,20 @@ func (d_ Database) DeleteRecordZoneWithIDCompletionHandler(zoneID IRecordZoneID, objc.Call[objc.Void](d_, objc.Sel("deleteRecordZoneWithID:completionHandler:"), objc.Ptr(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:"), objc.Ptr(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:"), objc.Ptr(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_notification.gen.go b/macos/cloudkit/database_notification.gen.go index f36f396c..0ccfcd0e 100644 --- a/macos/cloudkit/database_notification.gen.go +++ b/macos/cloudkit/database_notification.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package cloudkit @@ -40,10 +40,6 @@ func (dc _DatabaseNotificationClass) Alloc() DatabaseNotification { return rv } -func DatabaseNotification_Alloc() DatabaseNotification { - return DatabaseNotificationClass.Alloc() -} - func (dc _DatabaseNotificationClass) New() DatabaseNotification { rv := objc.Call[DatabaseNotification](dc, objc.Sel("new")) rv.Autorelease() diff --git a/macos/cloudkit/database_operation.gen.go b/macos/cloudkit/database_operation.gen.go index 1b71fa68..a9ea92b0 100644 --- a/macos/cloudkit/database_operation.gen.go +++ b/macos/cloudkit/database_operation.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package cloudkit @@ -40,10 +40,6 @@ func (dc _DatabaseOperationClass) Alloc() DatabaseOperation { return rv } -func DatabaseOperation_Alloc() DatabaseOperation { - return DatabaseOperationClass.Alloc() -} - func (dc _DatabaseOperationClass) New() DatabaseOperation { rv := objc.Call[DatabaseOperation](dc, objc.Sel("new")) rv.Autorelease() diff --git a/macos/cloudkit/database_subscription.gen.go b/macos/cloudkit/database_subscription.gen.go index e6374179..e5afd46c 100644 --- a/macos/cloudkit/database_subscription.gen.go +++ b/macos/cloudkit/database_subscription.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package cloudkit @@ -35,16 +35,6 @@ 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 @@ -59,13 +49,19 @@ func NewDatabaseSubscriptionWithSubscriptionID(subscriptionID SubscriptionID) Da return instance } -func (dc _DatabaseSubscriptionClass) Alloc() DatabaseSubscription { - rv := objc.Call[DatabaseSubscription](dc, objc.Sel("alloc")) +func (dc _DatabaseSubscriptionClass) New() DatabaseSubscription { + rv := objc.Call[DatabaseSubscription](dc, objc.Sel("new")) + rv.Autorelease() return rv } -func DatabaseSubscription_Alloc() DatabaseSubscription { - return DatabaseSubscriptionClass.Alloc() +func NewDatabaseSubscription() DatabaseSubscription { + return DatabaseSubscriptionClass.New() +} + +func (dc _DatabaseSubscriptionClass) Alloc() DatabaseSubscription { + rv := objc.Call[DatabaseSubscription](dc, objc.Sel("alloc")) + return rv } func (d_ DatabaseSubscription) Init() DatabaseSubscription { diff --git a/macos/cloudkit/discover_all_user_identities_operation.gen.go b/macos/cloudkit/discover_all_user_identities_operation.gen.go index 1b992a37..ed94bd82 100644 --- a/macos/cloudkit/discover_all_user_identities_operation.gen.go +++ b/macos/cloudkit/discover_all_user_identities_operation.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package cloudkit @@ -38,10 +38,6 @@ func (dc _DiscoverAllUserIdentitiesOperationClass) Alloc() DiscoverAllUserIdenti return rv } -func DiscoverAllUserIdentitiesOperation_Alloc() DiscoverAllUserIdentitiesOperation { - return DiscoverAllUserIdentitiesOperationClass.Alloc() -} - func (dc _DiscoverAllUserIdentitiesOperationClass) New() DiscoverAllUserIdentitiesOperation { rv := objc.Call[DiscoverAllUserIdentitiesOperation](dc, objc.Sel("new")) rv.Autorelease() diff --git a/macos/cloudkit/discover_user_identities_operation.gen.go b/macos/cloudkit/discover_user_identities_operation.gen.go index de4068b6..9f10d8d9 100644 --- a/macos/cloudkit/discover_user_identities_operation.gen.go +++ b/macos/cloudkit/discover_user_identities_operation.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package cloudkit @@ -38,10 +38,6 @@ func (dc _DiscoverUserIdentitiesOperationClass) Alloc() DiscoverUserIdentitiesOp return rv } -func DiscoverUserIdentitiesOperation_Alloc() DiscoverUserIdentitiesOperation { - return DiscoverUserIdentitiesOperationClass.Alloc() -} - func (dc _DiscoverUserIdentitiesOperationClass) New() DiscoverUserIdentitiesOperation { rv := objc.Call[DiscoverUserIdentitiesOperation](dc, objc.Sel("new")) rv.Autorelease() diff --git a/macos/cloudkit/doc.gen.go b/macos/cloudkit/doc.gen.go index f4912181..018af546 100644 --- a/macos/cloudkit/doc.gen.go +++ b/macos/cloudkit/doc.gen.go @@ -1,8 +1,8 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. // Store structured app and user data in iCloud containers that all users of your app can share. // -// [Full Documentation] +// [Apple Documentation] // -// [Full Documentation]: https://developer.apple.com/documentation/cloudkit?language=objc +// [Apple Documentation]: https://developer.apple.com/documentation/cloudkit?language=objc package cloudkit diff --git a/macos/cloudkit/enumtypes.gen.go b/macos/cloudkit/enumtypes.gen.go index 8adc1fea..1b8f07fa 100644 --- a/macos/cloudkit/enumtypes.gen.go +++ b/macos/cloudkit/enumtypes.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package cloudkit diff --git a/macos/cloudkit/fetch_database_changes_operation.gen.go b/macos/cloudkit/fetch_database_changes_operation.gen.go index 98f9a1fd..6f0a4b74 100644 --- a/macos/cloudkit/fetch_database_changes_operation.gen.go +++ b/macos/cloudkit/fetch_database_changes_operation.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package cloudkit @@ -19,24 +19,24 @@ type _FetchDatabaseChangesOperationClass struct { // An interface definition for the [FetchDatabaseChangesOperation] class. type IFetchDatabaseChangesOperation interface { IDatabaseOperation - 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)) + 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)) 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] @@ -76,10 +76,6 @@ func (fc _FetchDatabaseChangesOperationClass) Alloc() FetchDatabaseChangesOperat return rv } -func FetchDatabaseChangesOperation_Alloc() FetchDatabaseChangesOperation { - return FetchDatabaseChangesOperationClass.Alloc() -} - func (fc _FetchDatabaseChangesOperationClass) New() FetchDatabaseChangesOperation { rv := objc.Call[FetchDatabaseChangesOperation](fc, objc.Sel("new")) rv.Autorelease() @@ -90,49 +86,19 @@ func NewFetchDatabaseChangesOperation() FetchDatabaseChangesOperation { return FetchDatabaseChangesOperationClass.New() } -// 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) -} - -// 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:"), objc.Ptr(value)) -} - -// The block to execute when the operation finishes. [Full Topic] +// The block to execute when CloudKit purges a record zone. [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")) +// [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 the operation finishes. [Full Topic] +// The block to execute when CloudKit purges a record zone. [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) +// [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 block to execute when a record zone no longer exists. [Full Topic] @@ -150,6 +116,21 @@ 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 @@ -180,6 +161,21 @@ 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 @@ -195,21 +191,6 @@ 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 @@ -224,3 +205,18 @@ 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:"), objc.Ptr(value)) +} diff --git a/macos/cloudkit/fetch_notification_changes_operation.gen.go b/macos/cloudkit/fetch_notification_changes_operation.gen.go index 74917210..a40d8ff6 100644 --- a/macos/cloudkit/fetch_notification_changes_operation.gen.go +++ b/macos/cloudkit/fetch_notification_changes_operation.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package cloudkit @@ -38,10 +38,6 @@ func (fc _FetchNotificationChangesOperationClass) Alloc() FetchNotificationChang return rv } -func FetchNotificationChangesOperation_Alloc() FetchNotificationChangesOperation { - return FetchNotificationChangesOperationClass.Alloc() -} - func (fc _FetchNotificationChangesOperationClass) New() FetchNotificationChangesOperation { rv := objc.Call[FetchNotificationChangesOperation](fc, objc.Sel("new")) rv.Autorelease() diff --git a/macos/cloudkit/fetch_record_changes_operation.gen.go b/macos/cloudkit/fetch_record_changes_operation.gen.go index c2fb6cd5..3b3dcf63 100644 --- a/macos/cloudkit/fetch_record_changes_operation.gen.go +++ b/macos/cloudkit/fetch_record_changes_operation.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package cloudkit @@ -38,10 +38,6 @@ func (fc _FetchRecordChangesOperationClass) Alloc() FetchRecordChangesOperation return rv } -func FetchRecordChangesOperation_Alloc() FetchRecordChangesOperation { - return FetchRecordChangesOperationClass.Alloc() -} - func (fc _FetchRecordChangesOperationClass) New() FetchRecordChangesOperation { rv := objc.Call[FetchRecordChangesOperation](fc, objc.Sel("new")) rv.Autorelease() diff --git a/macos/cloudkit/fetch_record_zone_changes_configuration.gen.go b/macos/cloudkit/fetch_record_zone_changes_configuration.gen.go index 8b86ea00..54cd3346 100644 --- a/macos/cloudkit/fetch_record_zone_changes_configuration.gen.go +++ b/macos/cloudkit/fetch_record_zone_changes_configuration.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package cloudkit @@ -18,12 +18,12 @@ type _FetchRecordZoneChangesConfigurationClass struct { // An interface definition for the [FetchRecordZoneChangesConfiguration] class. type IFetchRecordZoneChangesConfiguration interface { objc.IObject - PreviousServerChangeToken() ServerChangeToken - SetPreviousServerChangeToken(value IServerChangeToken) - ResultsLimit() uint - SetResultsLimit(value uint) DesiredKeys() []RecordFieldKey SetDesiredKeys(value []RecordFieldKey) + ResultsLimit() uint + SetResultsLimit(value uint) + PreviousServerChangeToken() ServerChangeToken + SetPreviousServerChangeToken(value IServerChangeToken) } // A configuration object that describes the information to fetch from a record zone. [Full Topic] @@ -44,10 +44,6 @@ func (fc _FetchRecordZoneChangesConfigurationClass) Alloc() FetchRecordZoneChang return rv } -func FetchRecordZoneChangesConfiguration_Alloc() FetchRecordZoneChangesConfiguration { - return FetchRecordZoneChangesConfigurationClass.Alloc() -} - func (fc _FetchRecordZoneChangesConfigurationClass) New() FetchRecordZoneChangesConfiguration { rv := objc.Call[FetchRecordZoneChangesConfiguration](fc, objc.Sel("new")) rv.Autorelease() @@ -63,19 +59,19 @@ func (f_ FetchRecordZoneChangesConfiguration) Init() FetchRecordZoneChangesConfi 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) 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:"), objc.Ptr(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) } // The maximum number of records that CloudKit retrieves when fetching zone changes. [Full Topic] @@ -93,17 +89,17 @@ func (f_ FetchRecordZoneChangesConfiguration) SetResultsLimit(value uint) { objc.Call[objc.Void](f_, objc.Sel("setResultsLimit:"), value) } -// 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:"), objc.Ptr(value)) } diff --git a/macos/cloudkit/fetch_record_zone_changes_operation.gen.go b/macos/cloudkit/fetch_record_zone_changes_operation.gen.go index d0474339..6493e989 100644 --- a/macos/cloudkit/fetch_record_zone_changes_operation.gen.go +++ b/macos/cloudkit/fetch_record_zone_changes_operation.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package cloudkit @@ -19,22 +19,22 @@ type _FetchRecordZoneChangesOperationClass struct { // An interface definition for the [FetchRecordZoneChangesOperation] class. type IFetchRecordZoneChangesOperation interface { IDatabaseOperation - 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)) + 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)) + RecordWithIDWasDeletedBlock() func(recordID RecordID, recordType RecordType) + SetRecordWithIDWasDeletedBlock(value func(recordID RecordID, recordType RecordType)) 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] @@ -74,10 +74,6 @@ func (fc _FetchRecordZoneChangesOperationClass) Alloc() FetchRecordZoneChangesOp return rv } -func FetchRecordZoneChangesOperation_Alloc() FetchRecordZoneChangesOperation { - return FetchRecordZoneChangesOperationClass.Alloc() -} - func (fc _FetchRecordZoneChangesOperationClass) New() FetchRecordZoneChangesOperation { rv := objc.Call[FetchRecordZoneChangesOperation](fc, objc.Sel("new")) rv.Autorelease() @@ -88,19 +84,34 @@ func NewFetchRecordZoneChangesOperation() FetchRecordZoneChangesOperation { return FetchRecordZoneChangesOperationClass.New() } -// The IDs of the record zones that contain the records to fetch. [Full Topic] +// [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")) +// [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 } -// The IDs of the record zones that contain the records to fetch. [Full Topic] +// [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) +// [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] +// +// [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 a record no longer exists. [Full Topic] @@ -118,21 +129,6 @@ 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 @@ -178,21 +174,6 @@ 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 @@ -207,3 +188,18 @@ 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_zone_changes_options.gen.go b/macos/cloudkit/fetch_record_zone_changes_options.gen.go index 5ee9bed4..024a4a00 100644 --- a/macos/cloudkit/fetch_record_zone_changes_options.gen.go +++ b/macos/cloudkit/fetch_record_zone_changes_options.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package cloudkit @@ -38,10 +38,6 @@ func (fc _FetchRecordZoneChangesOptionsClass) Alloc() FetchRecordZoneChangesOpti return rv } -func FetchRecordZoneChangesOptions_Alloc() FetchRecordZoneChangesOptions { - return FetchRecordZoneChangesOptionsClass.Alloc() -} - func (fc _FetchRecordZoneChangesOptionsClass) New() FetchRecordZoneChangesOptions { rv := objc.Call[FetchRecordZoneChangesOptions](fc, objc.Sel("new")) rv.Autorelease() diff --git a/macos/cloudkit/fetch_record_zones_operation.gen.go b/macos/cloudkit/fetch_record_zones_operation.gen.go index 26b4a770..86b77ee5 100644 --- a/macos/cloudkit/fetch_record_zones_operation.gen.go +++ b/macos/cloudkit/fetch_record_zones_operation.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package cloudkit @@ -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,6 +54,11 @@ 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 @@ -66,20 +71,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 } -func FetchRecordZonesOperation_Alloc() FetchRecordZonesOperation { - return FetchRecordZonesOperationClass.Alloc() -} - func (fc _FetchRecordZonesOperationClass) New() FetchRecordZonesOperation { rv := objc.Call[FetchRecordZonesOperation](fc, objc.Sel("new")) rv.Autorelease() @@ -90,6 +86,21 @@ 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 @@ -119,18 +130,3 @@ 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 83743d56..0df20b11 100644 --- a/macos/cloudkit/fetch_records_operation.gen.go +++ b/macos/cloudkit/fetch_records_operation.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package cloudkit @@ -19,16 +19,16 @@ type _FetchRecordsOperationClass struct { // An interface definition for the [FetchRecordsOperation] class. type IFetchRecordsOperation interface { IDatabaseOperation - FetchRecordsCompletionBlock() func(recordsByRecordID foundation.Dictionary, operationError foundation.Error) - SetFetchRecordsCompletionBlock(value func(recordsByRecordID foundation.Dictionary, operationError foundation.Error)) - 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)) + 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) } // An operation for retrieving records from a database. [Full Topic] @@ -44,18 +44,16 @@ func FetchRecordsOperationFrom(ptr unsafe.Pointer) FetchRecordsOperation { } } -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 (f_ FetchRecordsOperation) Init() FetchRecordsOperation { @@ -63,16 +61,18 @@ func (f_ FetchRecordsOperation) Init() FetchRecordsOperation { return rv } -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 (fc _FetchRecordsOperationClass) Alloc() FetchRecordsOperation { @@ -80,10 +80,6 @@ func (fc _FetchRecordsOperationClass) Alloc() FetchRecordsOperation { return rv } -func FetchRecordsOperation_Alloc() FetchRecordsOperation { - return FetchRecordsOperationClass.Alloc() -} - func (fc _FetchRecordsOperationClass) New() FetchRecordsOperation { rv := objc.Call[FetchRecordsOperation](fc, objc.Sel("new")) rv.Autorelease() @@ -94,34 +90,19 @@ func NewFetchRecordsOperation() FetchRecordsOperation { return FetchRecordsOperationClass.New() } -// The block to execute after CloudKit retrieves all of the 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")) - return rv -} - -// The block to execute after CloudKit retrieves all of the 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) -} - -// The record IDs of the records to fetch. [Full Topic] +// The block to execute with progress information for individual records. [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")) +// [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 record IDs of the records to fetch. [Full Topic] +// The block to execute with progress information for individual records. [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) +// [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 block to execute when a record becomes available. [Full Topic] @@ -139,19 +120,19 @@ func (f_ FetchRecordsOperation) SetPerRecordCompletionBlock(value func(record Re objc.Call[objc.Void](f_, objc.Sel("setPerRecordCompletionBlock:"), value) } -// 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 fields of the records to fetch. [Full Topic] @@ -168,3 +149,18 @@ 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 32eba280..aa1cc42e 100644 --- a/macos/cloudkit/fetch_share_metadata_operation.gen.go +++ b/macos/cloudkit/fetch_share_metadata_operation.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package cloudkit @@ -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)) - 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) + ShareURLs() []foundation.URL + SetShareURLs(value []foundation.IURL) } // An operation that fetches metadata for one or more shares. [Full Topic] @@ -68,10 +68,6 @@ func (fc _FetchShareMetadataOperationClass) Alloc() FetchShareMetadataOperation return rv } -func FetchShareMetadataOperation_Alloc() FetchShareMetadataOperation { - return FetchShareMetadataOperationClass.Alloc() -} - func (fc _FetchShareMetadataOperationClass) New() FetchShareMetadataOperation { rv := objc.Call[FetchShareMetadataOperation](fc, objc.Sel("new")) rv.Autorelease() @@ -82,6 +78,21 @@ 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 @@ -112,36 +123,6 @@ func (f_ FetchShareMetadataOperation) SetFetchShareMetadataCompletionBlock(value objc.Call[objc.Void](f_, objc.Sel("setFetchShareMetadataCompletionBlock:"), value) } -// The URLs of the shares to fetch. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/cloudkit/ckfetchsharemetadataoperation/1640508-shareurls?language=objc -func (f_ FetchShareMetadataOperation) ShareURLs() []foundation.URL { - rv := objc.Call[[]foundation.URL](f_, objc.Sel("shareURLs")) - return rv -} - -// The URLs of the shares to fetch. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/cloudkit/ckfetchsharemetadataoperation/1640508-shareurls?language=objc -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 @@ -156,3 +137,18 @@ func (f_ FetchShareMetadataOperation) ShouldFetchRootRecord() bool { 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 +func (f_ FetchShareMetadataOperation) ShareURLs() []foundation.URL { + rv := objc.Call[[]foundation.URL](f_, objc.Sel("shareURLs")) + return rv +} + +// The URLs of the shares to fetch. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/cloudkit/ckfetchsharemetadataoperation/1640508-shareurls?language=objc +func (f_ FetchShareMetadataOperation) SetShareURLs(value []foundation.IURL) { + objc.Call[objc.Void](f_, objc.Sel("setShareURLs:"), value) +} diff --git a/macos/cloudkit/fetch_share_participants_operation.gen.go b/macos/cloudkit/fetch_share_participants_operation.gen.go index dbc785f7..397138be 100644 --- a/macos/cloudkit/fetch_share_participants_operation.gen.go +++ b/macos/cloudkit/fetch_share_participants_operation.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package cloudkit @@ -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,6 +40,11 @@ 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 @@ -54,20 +59,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 } -func FetchShareParticipantsOperation_Alloc() FetchShareParticipantsOperation { - return FetchShareParticipantsOperationClass.Alloc() -} - func (fc _FetchShareParticipantsOperationClass) New() FetchShareParticipantsOperation { rv := objc.Call[FetchShareParticipantsOperation](fc, objc.Sel("new")) rv.Autorelease() @@ -78,21 +74,6 @@ 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 @@ -122,3 +103,18 @@ 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 c61ef715..909b27bb 100644 --- a/macos/cloudkit/fetch_subscriptions_operation.gen.go +++ b/macos/cloudkit/fetch_subscriptions_operation.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package cloudkit @@ -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,6 +52,11 @@ 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 @@ -66,20 +71,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 } -func FetchSubscriptionsOperation_Alloc() FetchSubscriptionsOperation { - return FetchSubscriptionsOperationClass.Alloc() -} - func (fc _FetchSubscriptionsOperationClass) New() FetchSubscriptionsOperation { rv := objc.Call[FetchSubscriptionsOperation](fc, objc.Sel("new")) rv.Autorelease() @@ -90,21 +86,6 @@ 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 @@ -134,3 +115,18 @@ 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 a3e32f97..ff399d85 100644 --- a/macos/cloudkit/fetch_web_auth_token_operation.gen.go +++ b/macos/cloudkit/fetch_web_auth_token_operation.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package cloudkit @@ -19,10 +19,10 @@ type _FetchWebAuthTokenOperationClass struct { // An interface definition for the [FetchWebAuthTokenOperation] class. type IFetchWebAuthTokenOperation interface { IDatabaseOperation - FetchWebAuthTokenCompletionBlock() func(webAuthToken string, operationError foundation.Error) - SetFetchWebAuthTokenCompletionBlock(value func(webAuthToken string, operationError foundation.Error)) APIToken() string SetAPIToken(value string) + FetchWebAuthTokenCompletionBlock() func(webAuthToken string, operationError foundation.Error) + SetFetchWebAuthTokenCompletionBlock(value func(webAuthToken string, operationError foundation.Error)) } // An operation that creates an authentication token for use with CloudKit web services. [Full Topic] @@ -38,6 +38,11 @@ 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 @@ -52,20 +57,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 } -func FetchWebAuthTokenOperation_Alloc() FetchWebAuthTokenOperation { - return FetchWebAuthTokenOperationClass.Alloc() -} - func (fc _FetchWebAuthTokenOperationClass) New() FetchWebAuthTokenOperation { rv := objc.Call[FetchWebAuthTokenOperation](fc, objc.Sel("new")) rv.Autorelease() @@ -76,21 +72,6 @@ func NewFetchWebAuthTokenOperation() FetchWebAuthTokenOperation { return FetchWebAuthTokenOperationClass.New() } -// The block to execute when the operation finishes. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/cloudkit/ckfetchwebauthtokenoperation/1514980-fetchwebauthtokencompletionblock?language=objc -func (f_ FetchWebAuthTokenOperation) FetchWebAuthTokenCompletionBlock() func(webAuthToken string, operationError foundation.Error) { - rv := objc.Call[func(webAuthToken string, operationError foundation.Error)](f_, objc.Sel("fetchWebAuthTokenCompletionBlock")) - return rv -} - -// The block to execute when the operation finishes. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/cloudkit/ckfetchwebauthtokenoperation/1514980-fetchwebauthtokencompletionblock?language=objc -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 @@ -105,3 +86,18 @@ func (f_ FetchWebAuthTokenOperation) APIToken() string { 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 +func (f_ FetchWebAuthTokenOperation) FetchWebAuthTokenCompletionBlock() func(webAuthToken string, operationError foundation.Error) { + rv := objc.Call[func(webAuthToken string, operationError foundation.Error)](f_, objc.Sel("fetchWebAuthTokenCompletionBlock")) + return rv +} + +// The block to execute when the operation finishes. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/cloudkit/ckfetchwebauthtokenoperation/1514980-fetchwebauthtokencompletionblock?language=objc +func (f_ FetchWebAuthTokenOperation) SetFetchWebAuthTokenCompletionBlock(value func(webAuthToken string, operationError foundation.Error)) { + objc.Call[objc.Void](f_, objc.Sel("setFetchWebAuthTokenCompletionBlock:"), value) +} diff --git a/macos/cloudkit/location_sort_descriptor.gen.go b/macos/cloudkit/location_sort_descriptor.gen.go index 42e39f58..a7fde823 100644 --- a/macos/cloudkit/location_sort_descriptor.gen.go +++ b/macos/cloudkit/location_sort_descriptor.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package cloudkit @@ -54,10 +54,6 @@ func (lc _LocationSortDescriptorClass) Alloc() LocationSortDescriptor { return rv } -func LocationSortDescriptor_Alloc() LocationSortDescriptor { - return LocationSortDescriptorClass.Alloc() -} - func (lc _LocationSortDescriptorClass) New() LocationSortDescriptor { rv := objc.Call[LocationSortDescriptor](lc, objc.Sel("new")) rv.Autorelease() @@ -73,6 +69,58 @@ 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/mark_notifications_read_operation.gen.go b/macos/cloudkit/mark_notifications_read_operation.gen.go index 52ab23f7..0cd9921c 100644 --- a/macos/cloudkit/mark_notifications_read_operation.gen.go +++ b/macos/cloudkit/mark_notifications_read_operation.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package cloudkit @@ -38,10 +38,6 @@ func (mc _MarkNotificationsReadOperationClass) Alloc() MarkNotificationsReadOper return rv } -func MarkNotificationsReadOperation_Alloc() MarkNotificationsReadOperation { - return MarkNotificationsReadOperationClass.Alloc() -} - func (mc _MarkNotificationsReadOperationClass) New() MarkNotificationsReadOperation { rv := objc.Call[MarkNotificationsReadOperation](mc, objc.Sel("new")) rv.Autorelease() diff --git a/macos/cloudkit/modify_badge_operation.gen.go b/macos/cloudkit/modify_badge_operation.gen.go index 57b8e8d0..357e3283 100644 --- a/macos/cloudkit/modify_badge_operation.gen.go +++ b/macos/cloudkit/modify_badge_operation.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package cloudkit @@ -38,10 +38,6 @@ func (mc _ModifyBadgeOperationClass) Alloc() ModifyBadgeOperation { return rv } -func ModifyBadgeOperation_Alloc() ModifyBadgeOperation { - return ModifyBadgeOperationClass.Alloc() -} - func (mc _ModifyBadgeOperationClass) New() ModifyBadgeOperation { rv := objc.Call[ModifyBadgeOperation](mc, objc.Sel("new")) rv.Autorelease() diff --git a/macos/cloudkit/modify_record_zones_operation.gen.go b/macos/cloudkit/modify_record_zones_operation.gen.go index 9c56e06c..4f3bd0fe 100644 --- a/macos/cloudkit/modify_record_zones_operation.gen.go +++ b/macos/cloudkit/modify_record_zones_operation.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package cloudkit @@ -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)) - 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)) + RecordZoneIDsToDelete() []RecordZoneID + SetRecordZoneIDsToDelete(value []IRecordZoneID) } // An operation that modifies one or more record zones. [Full Topic] @@ -68,10 +68,6 @@ func (mc _ModifyRecordZonesOperationClass) Alloc() ModifyRecordZonesOperation { return rv } -func ModifyRecordZonesOperation_Alloc() ModifyRecordZonesOperation { - return ModifyRecordZonesOperationClass.Alloc() -} - func (mc _ModifyRecordZonesOperationClass) New() ModifyRecordZonesOperation { rv := objc.Call[ModifyRecordZonesOperation](mc, objc.Sel("new")) rv.Autorelease() @@ -82,6 +78,21 @@ 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 @@ -112,21 +123,6 @@ 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 @@ -142,17 +138,17 @@ func (m_ ModifyRecordZonesOperation) SetPerRecordZoneSaveBlock(value func(record objc.Call[objc.Void](m_, objc.Sel("setPerRecordZoneSaveBlock:"), value) } -// The block to execute after CloudKit modifies all of the record zones. [Full Topic] +// The IDs of the record zones to delete permanently from the database. [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")) +// [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 block to execute after CloudKit modifies all of the record zones. [Full Topic] +// The IDs of the record zones to delete permanently from the database. [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) +// [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) } diff --git a/macos/cloudkit/modify_records_operation.gen.go b/macos/cloudkit/modify_records_operation.gen.go index 70d840a5..ba72be70 100644 --- a/macos/cloudkit/modify_records_operation.gen.go +++ b/macos/cloudkit/modify_records_operation.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package cloudkit @@ -19,24 +19,24 @@ type _ModifyRecordsOperationClass struct { // An interface definition for the [ModifyRecordsOperation] class. type IModifyRecordsOperation interface { IDatabaseOperation - RecordsToSave() []Record - SetRecordsToSave(value []IRecord) - 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) + 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) } // An operation that modifies one or more records. [Full Topic] @@ -52,6 +52,11 @@ 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 @@ -66,20 +71,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 } -func ModifyRecordsOperation_Alloc() ModifyRecordsOperation { - return ModifyRecordsOperationClass.Alloc() -} - func (mc _ModifyRecordsOperationClass) New() ModifyRecordsOperation { rv := objc.Call[ModifyRecordsOperation](mc, objc.Sel("new")) rv.Autorelease() @@ -90,64 +86,49 @@ func NewModifyRecordsOperation() ModifyRecordsOperation { return ModifyRecordsOperationClass.New() } -// The records to save to the database. [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")) - return rv -} - -// The records to save to the database. [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) -} - -// The block to execute after CloudKit modifies all of the records. [Full Topic] +// A token that tracks local changes to 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")) +// [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 block to execute after CloudKit modifies all of the records. [Full Topic] +// A token that tracks local changes to 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) +// [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) } -// 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] // -// [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/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 } -// 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] // -// [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/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] +// The IDs of the records to delete permanently from the database. [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/1447479-recordidstodelete?language=objc +func (m_ ModifyRecordsOperation) RecordIDsToDelete() []RecordID { + rv := objc.Call[[]RecordID](m_, objc.Sel("recordIDsToDelete")) return rv } -// [Full Topic] +// The IDs of the records to delete permanently from the database. [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/1447479-recordidstodelete?language=objc +func (m_ ModifyRecordsOperation) SetRecordIDsToDelete(value []IRecordID) { + objc.Call[objc.Void](m_, objc.Sel("setRecordIDsToDelete:"), value) } // The policy to use when saving changes to records. [Full Topic] @@ -165,34 +146,34 @@ func (m_ ModifyRecordsOperation) SetSavePolicy(value RecordSavePolicy) { objc.Call[objc.Void](m_, objc.Sel("setSavePolicy:"), value) } -// 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] // -// [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/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/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/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 block to execute with progress information for individual records. [Full Topic] @@ -210,17 +191,32 @@ func (m_ ModifyRecordsOperation) SetPerRecordProgressBlock(value func(record Rec objc.Call[objc.Void](m_, objc.Sel("setPerRecordProgressBlock:"), value) } -// The IDs of the records to delete permanently from the database. [Full Topic] +// The block to execute after CloudKit modifies all of the records. [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/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 IDs of the records to delete permanently from the database. [Full Topic] +// The block to execute after CloudKit modifies all of the records. [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/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] +// +// [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 +} + +// 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/1447484-atomic?language=objc +func (m_ ModifyRecordsOperation) SetAtomic(value bool) { + objc.Call[objc.Void](m_, objc.Sel("setAtomic:"), value) } diff --git a/macos/cloudkit/modify_subscriptions_operation.gen.go b/macos/cloudkit/modify_subscriptions_operation.gen.go index e619f893..9803429c 100644 --- a/macos/cloudkit/modify_subscriptions_operation.gen.go +++ b/macos/cloudkit/modify_subscriptions_operation.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package cloudkit @@ -19,16 +19,16 @@ type _ModifySubscriptionsOperationClass struct { // An interface definition for the [ModifySubscriptionsOperation] class. type IModifySubscriptionsOperation interface { IDatabaseOperation - 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)) + 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)) + PerSubscriptionDeleteBlock() func(subscriptionID SubscriptionID, error foundation.Error) + SetPerSubscriptionDeleteBlock(value func(subscriptionID SubscriptionID, error foundation.Error)) } // An operation for modifying one or more subscriptions. [Full Topic] @@ -44,6 +44,11 @@ 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 @@ -58,20 +63,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 } -func ModifySubscriptionsOperation_Alloc() ModifySubscriptionsOperation { - return ModifySubscriptionsOperationClass.Alloc() -} - func (mc _ModifySubscriptionsOperationClass) New() ModifySubscriptionsOperation { rv := objc.Call[ModifySubscriptionsOperation](mc, objc.Sel("new")) rv.Autorelease() @@ -82,19 +78,19 @@ func NewModifySubscriptionsOperation() ModifySubscriptionsOperation { return ModifySubscriptionsOperationClass.New() } -// [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) } // The subscriptions to save to the database. [Full Topic] @@ -112,47 +108,47 @@ func (m_ ModifySubscriptionsOperation) SetSubscriptionsToSave(value []ISubscript objc.Call[objc.Void](m_, objc.Sel("setSubscriptionsToSave:"), 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) } -// 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 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) } diff --git a/macos/cloudkit/notification.gen.go b/macos/cloudkit/notification.gen.go index 97a5ff3c..4bed7b88 100644 --- a/macos/cloudkit/notification.gen.go +++ b/macos/cloudkit/notification.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package cloudkit @@ -19,12 +19,12 @@ type _NotificationClass struct { // An interface definition for the [Notification] class. type INotification interface { objc.IObject - NotificationID() NotificationID - IsPruned() bool - NotificationType() NotificationType - SubscriptionID() SubscriptionID ContainerIdentifier() string + SubscriptionID() SubscriptionID + NotificationType() NotificationType + NotificationID() NotificationID SubscriptionOwnerUserRecordID() RecordID + IsPruned() bool } // The abstract base class for CloudKit notifications. [Full Topic] @@ -57,10 +57,6 @@ func (nc _NotificationClass) Alloc() Notification { return rv } -func Notification_Alloc() Notification { - return NotificationClass.Alloc() -} - func (nc _NotificationClass) New() Notification { rv := objc.Call[Notification](nc, objc.Sel("new")) rv.Autorelease() @@ -76,19 +72,19 @@ func (n_ Notification) Init() Notification { return rv } -// The notification’s ID. [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/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/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 subscription that triggers the 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/1428118-subscriptionid?language=objc +func (n_ Notification) SubscriptionID() SubscriptionID { + rv := objc.Call[SubscriptionID](n_, objc.Sel("subscriptionID")) return rv } @@ -100,19 +96,11 @@ func (n_ Notification) NotificationType() NotificationType { return rv } -// The ID of the subscription that triggers the notification. [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")) - 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 } @@ -123,3 +111,11 @@ func (n_ Notification) SubscriptionOwnerUserRecordID() RecordID { rv := objc.Call[RecordID](n_, objc.Sel("subscriptionOwnerUserRecordID")) return rv } + +// 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/1428088-ispruned?language=objc +func (n_ Notification) IsPruned() bool { + rv := objc.Call[bool](n_, objc.Sel("isPruned")) + return rv +} diff --git a/macos/cloudkit/notification_id.gen.go b/macos/cloudkit/notification_id.gen.go index aca85f61..aa8dc145 100644 --- a/macos/cloudkit/notification_id.gen.go +++ b/macos/cloudkit/notification_id.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package cloudkit @@ -38,10 +38,6 @@ func (nc _NotificationIDClass) Alloc() NotificationID { return rv } -func NotificationID_Alloc() NotificationID { - return NotificationIDClass.Alloc() -} - func (nc _NotificationIDClass) New() NotificationID { rv := objc.Call[NotificationID](nc, objc.Sel("new")) rv.Autorelease() diff --git a/macos/cloudkit/notification_info.gen.go b/macos/cloudkit/notification_info.gen.go index 13bde0b6..eae913d9 100644 --- a/macos/cloudkit/notification_info.gen.go +++ b/macos/cloudkit/notification_info.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package cloudkit @@ -18,42 +18,42 @@ type _NotificationInfoClass struct { // An interface definition for the [NotificationInfo] class. type INotificationInfo interface { objc.IObject - 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) + 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) + SoundName() string + SetSoundName(value string) SubtitleLocalizationKey() string SetSubtitleLocalizationKey(value string) - AlertActionLocalizationKey() string - SetAlertActionLocalizationKey(value string) AlertLocalizationKey() string SetAlertLocalizationKey(value string) - Subtitle() string - SetSubtitle(value string) + AlertLocalizationArgs() []RecordFieldKey + SetAlertLocalizationArgs(value []RecordFieldKey) + AlertActionLocalizationKey() string + SetAlertActionLocalizationKey(value string) + ShouldSendContentAvailable() bool + SetShouldSendContentAvailable(value bool) SubtitleLocalizationArgs() []RecordFieldKey SetSubtitleLocalizationArgs(value []RecordFieldKey) - Category() string - SetCategory(value string) - ShouldSendMutableContent() bool - SetShouldSendMutableContent(value bool) + TitleLocalizationKey() string + SetTitleLocalizationKey(value string) CollapseIDKey() string SetCollapseIDKey(value string) + TitleLocalizationArgs() []RecordFieldKey + SetTitleLocalizationArgs(value []RecordFieldKey) Title() string SetTitle(value string) - ShouldBadge() bool - SetShouldBadge(value bool) - AlertLocalizationArgs() []RecordFieldKey - SetAlertLocalizationArgs(value []RecordFieldKey) - DesiredKeys() []RecordFieldKey - SetDesiredKeys(value []RecordFieldKey) + AlertBody() string + SetAlertBody(value string) } // An object that describes the configuration of a subscription’s push notifications. [Full Topic] @@ -74,10 +74,6 @@ func (nc _NotificationInfoClass) Alloc() NotificationInfo { return rv } -func NotificationInfo_Alloc() NotificationInfo { - return NotificationInfoClass.Alloc() -} - func (nc _NotificationInfoClass) New() NotificationInfo { rv := objc.Call[NotificationInfo](nc, objc.Sel("new")) rv.Autorelease() @@ -93,64 +89,94 @@ func (n_ NotificationInfo) Init() NotificationInfo { return rv } -// The key that identifies the localized string for the notification’s title. [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/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/1514996-shouldbadge?language=objc +func (n_ NotificationInfo) ShouldBadge() bool { + rv := objc.Call[bool](n_, objc.Sel("shouldBadge")) return rv } -// The key that identifies the localized string for the notification’s title. [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/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/1514996-shouldbadge?language=objc +func (n_ NotificationInfo) SetShouldBadge(value bool) { + objc.Call[objc.Void](n_, objc.Sel("setShouldBadge:"), value) } -// The text for the notification’s alert. [Full Topic] +// The name of the action group that corresponds to this notification. [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/1515082-category?language=objc +func (n_ NotificationInfo) Category() string { + rv := objc.Call[string](n_, objc.Sel("category")) return rv } -// The text for the notification’s alert. [Full Topic] +// The name of the action group that corresponds to this notification. [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/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 includes the content available flag. [Full Topic] +// The names of fields to include in the push notification’s payload. [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/1514931-desiredkeys?language=objc +func (n_ NotificationInfo) DesiredKeys() []RecordFieldKey { + rv := objc.Call[[]RecordFieldKey](n_, objc.Sel("desiredKeys")) return rv } -// A Boolean value that indicates whether the push notification includes the content available flag. [Full Topic] +// The names of fields to include in the push notification’s payload. [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/1514931-desiredkeys?language=objc +func (n_ NotificationInfo) SetDesiredKeys(value []RecordFieldKey) { + objc.Call[objc.Void](n_, objc.Sel("setDesiredKeys:"), value) } -// The fields for building a notification’s title. [Full Topic] +// The filename of an image to use as a launch image. [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")) +// [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 fields for building a notification’s title. [Full Topic] +// The filename of an image to use as a launch image. [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) +// [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 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) +} + +// 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) } // The filename of the sound file to play when a notification arrives. [Full Topic] @@ -168,21 +194,6 @@ 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 @@ -198,21 +209,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 action. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/cloudkit/cknotificationinfo/1514945-alertactionlocalizationkey?language=objc -func (n_ NotificationInfo) AlertActionLocalizationKey() string { - rv := objc.Call[string](n_, objc.Sel("alertActionLocalizationKey")) - return rv -} - -// 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 -func (n_ NotificationInfo) SetAlertActionLocalizationKey(value string) { - objc.Call[objc.Void](n_, objc.Sel("setAlertActionLocalizationKey:"), 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 @@ -228,19 +224,49 @@ func (n_ NotificationInfo) SetAlertLocalizationKey(value string) { objc.Call[objc.Void](n_, objc.Sel("setAlertLocalizationKey:"), value) } -// The notification’s subtitle. [Full Topic] +// The fields for building a notification’s alert. [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/1515182-alertlocalizationargs?language=objc +func (n_ NotificationInfo) AlertLocalizationArgs() []RecordFieldKey { + rv := objc.Call[[]RecordFieldKey](n_, objc.Sel("alertLocalizationArgs")) return rv } -// The notification’s subtitle. [Full Topic] +// The fields for building a notification’s alert. [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/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 +func (n_ NotificationInfo) AlertActionLocalizationKey() string { + rv := objc.Call[string](n_, objc.Sel("alertActionLocalizationKey")) + return rv +} + +// 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 +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] +// +// [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 +} + +// 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/1515110-shouldsendcontentavailable?language=objc +func (n_ NotificationInfo) SetShouldSendContentAvailable(value bool) { + objc.Call[objc.Void](n_, objc.Sel("setShouldSendContentAvailable:"), value) } // The fields for building a notification’s subtitle. [Full Topic] @@ -258,34 +284,19 @@ func (n_ NotificationInfo) SetSubtitleLocalizationArgs(value []RecordFieldKey) { objc.Call[objc.Void](n_, objc.Sel("setSubtitleLocalizationArgs:"), 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) -} - -// A Boolean value that indicates whether the push notification sets the mutable content flag. [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/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/2869865-titlelocalizationkey?language=objc +func (n_ NotificationInfo) TitleLocalizationKey() string { + rv := objc.Call[string](n_, objc.Sel("titleLocalizationKey")) return rv } -// A Boolean value that indicates whether the push notification sets the mutable content flag. [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/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/2869865-titlelocalizationkey?language=objc +func (n_ NotificationInfo) SetTitleLocalizationKey(value string) { + objc.Call[objc.Void](n_, objc.Sel("setTitleLocalizationKey:"), value) } // A value that the system uses to coalesce unseen push notifications. [Full Topic] @@ -303,6 +314,21 @@ 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 @@ -318,47 +344,17 @@ func (n_ NotificationInfo) SetTitle(value string) { objc.Call[objc.Void](n_, objc.Sel("setTitle:"), value) } -// 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 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] +// The text for the notification’s alert. [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/1515270-alertbody?language=objc +func (n_ NotificationInfo) AlertBody() string { + rv := objc.Call[string](n_, objc.Sel("alertBody")) return rv } -// The names of fields to include in the push notification’s payload. [Full Topic] +// The text for the notification’s alert. [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/1515270-alertbody?language=objc +func (n_ NotificationInfo) SetAlertBody(value string) { + objc.Call[objc.Void](n_, objc.Sel("setAlertBody:"), value) } diff --git a/macos/cloudkit/operation.gen.go b/macos/cloudkit/operation.gen.go index 6f0336c2..e4cc80f4 100644 --- a/macos/cloudkit/operation.gen.go +++ b/macos/cloudkit/operation.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package cloudkit @@ -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()) - Configuration() OperationConfiguration - SetConfiguration(value IOperationConfiguration) + OperationID() OperationID Group() OperationGroup SetGroup(value IOperationGroup) + Configuration() OperationConfiguration + SetConfiguration(value IOperationConfiguration) } // The abstract base class for all operations that execute in a database. [Full Topic] @@ -51,10 +51,6 @@ func (oc _OperationClass) Alloc() Operation { return rv } -func Operation_Alloc() Operation { - return OperationClass.Alloc() -} - func (oc _OperationClass) New() Operation { rv := objc.Call[Operation](oc, objc.Sel("new")) rv.Autorelease() @@ -65,14 +61,6 @@ 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 @@ -88,21 +76,14 @@ func (o_ Operation) SetLongLivedOperationWasPersistedBlock(value func()) { objc.Call[objc.Void](o_, objc.Sel("setLongLivedOperationWasPersistedBlock:"), value) } -// The operation’s configuration. [Full Topic] +// A unique identifier for a long-lived operation. [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")) +// [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 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:"), objc.Ptr(value)) -} - // The operation’s group. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/cloudkit/ckoperation/2866228-group?language=objc @@ -117,3 +98,18 @@ func (o_ Operation) Group() OperationGroup { func (o_ Operation) SetGroup(value IOperationGroup) { objc.Call[objc.Void](o_, objc.Sel("setGroup:"), objc.Ptr(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:"), objc.Ptr(value)) +} diff --git a/macos/cloudkit/operation_configuration.gen.go b/macos/cloudkit/operation_configuration.gen.go index 9173528b..e2ecd69a 100644 --- a/macos/cloudkit/operation_configuration.gen.go +++ b/macos/cloudkit/operation_configuration.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package cloudkit @@ -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) - Container() Container - SetContainer(value IContainer) - TimeoutIntervalForRequest() foundation.TimeInterval - SetTimeoutIntervalForRequest(value foundation.TimeInterval) IsLongLived() bool SetLongLived(value bool) + TimeoutIntervalForRequest() foundation.TimeInterval + SetTimeoutIntervalForRequest(value foundation.TimeInterval) + QualityOfService() foundation.QualityOfService + SetQualityOfService(value foundation.QualityOfService) TimeoutIntervalForResource() foundation.TimeInterval SetTimeoutIntervalForResource(value foundation.TimeInterval) + Container() Container + SetContainer(value IContainer) } // An object that describes how a CloudKit operation behaves. [Full Topic] @@ -51,10 +51,6 @@ func (oc _OperationConfigurationClass) Alloc() OperationConfiguration { return rv } -func OperationConfiguration_Alloc() OperationConfiguration { - return OperationConfigurationClass.Alloc() -} - func (oc _OperationConfigurationClass) New() OperationConfiguration { rv := objc.Call[OperationConfiguration](oc, objc.Sel("new")) rv.Autorelease() @@ -70,21 +66,6 @@ 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 @@ -100,19 +81,19 @@ func (o_ OperationConfiguration) SetAllowsCellularAccess(value bool) { objc.Call[objc.Void](o_, objc.Sel("setAllowsCellularAccess:"), value) } -// The configuration’s container. [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/2866232-container?language=objc -func (o_ OperationConfiguration) Container() Container { - rv := objc.Call[Container](o_, objc.Sel("container")) +// [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 configuration’s container. [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/2866232-container?language=objc -func (o_ OperationConfiguration) SetContainer(value IContainer) { - objc.Call[objc.Void](o_, objc.Sel("setContainer:"), objc.Ptr(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 request can take. [Full Topic] @@ -130,19 +111,19 @@ func (o_ OperationConfiguration) SetTimeoutIntervalForRequest(value foundation.T objc.Call[objc.Void](o_, objc.Sel("setTimeoutIntervalForRequest:"), value) } -// A Boolean value that indicates whether the operations that use this configuration are long-lived. [Full Topic] +// 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/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/2866201-qualityofservice?language=objc +func (o_ OperationConfiguration) QualityOfService() foundation.QualityOfService { + rv := objc.Call[foundation.QualityOfService](o_, objc.Sel("qualityOfService")) return rv } -// A Boolean value that indicates whether the operations that use this configuration are long-lived. [Full Topic] +// 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/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/2866201-qualityofservice?language=objc +func (o_ OperationConfiguration) SetQualityOfService(value foundation.QualityOfService) { + objc.Call[objc.Void](o_, objc.Sel("setQualityOfService:"), value) } // The maximum amount of time that a resource request can take. [Full Topic] @@ -159,3 +140,18 @@ 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:"), objc.Ptr(value)) +} diff --git a/macos/cloudkit/operation_group.gen.go b/macos/cloudkit/operation_group.gen.go index 7452805b..c12daefd 100644 --- a/macos/cloudkit/operation_group.gen.go +++ b/macos/cloudkit/operation_group.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package cloudkit @@ -21,14 +21,14 @@ type IOperationGroup interface { OperationGroupID() string Name() string SetName(value string) - DefaultConfiguration() OperationConfiguration - SetDefaultConfiguration(value IOperationConfiguration) ExpectedSendSize() OperationGroupTransferSize SetExpectedSendSize(value OperationGroupTransferSize) - Quantity() uint - SetQuantity(value uint) ExpectedReceiveSize() OperationGroupTransferSize SetExpectedReceiveSize(value OperationGroupTransferSize) + DefaultConfiguration() OperationConfiguration + SetDefaultConfiguration(value IOperationConfiguration) + Quantity() uint + SetQuantity(value uint) } // An explicit association between two or more operations. [Full Topic] @@ -54,10 +54,6 @@ func (oc _OperationGroupClass) Alloc() OperationGroup { return rv } -func OperationGroup_Alloc() OperationGroup { - return OperationGroupClass.Alloc() -} - func (oc _OperationGroupClass) New() OperationGroup { rv := objc.Call[OperationGroup](oc, objc.Sel("new")) rv.Autorelease() @@ -91,21 +87,6 @@ func (o_ OperationGroup) SetName(value string) { objc.Call[objc.Void](o_, objc.Sel("setName:"), value) } -// The default configuration for operations in the group. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/cloudkit/ckoperationgroup/2866240-defaultconfiguration?language=objc -func (o_ OperationGroup) DefaultConfiguration() OperationConfiguration { - rv := objc.Call[OperationConfiguration](o_, objc.Sel("defaultConfiguration")) - return rv -} - -// The default configuration for operations in the group. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/cloudkit/ckoperationgroup/2866240-defaultconfiguration?language=objc -func (o_ OperationGroup) SetDefaultConfiguration(value IOperationConfiguration) { - objc.Call[objc.Void](o_, objc.Sel("setDefaultConfiguration:"), objc.Ptr(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 @@ -121,21 +102,6 @@ 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 -func (o_ OperationGroup) Quantity() uint { - rv := objc.Call[uint](o_, objc.Sel("quantity")) - return rv -} - -// The number of operations in the operation group. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/cloudkit/ckoperationgroup/2866220-quantity?language=objc -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 @@ -150,3 +116,33 @@ func (o_ OperationGroup) ExpectedReceiveSize() OperationGroupTransferSize { 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 +func (o_ OperationGroup) DefaultConfiguration() OperationConfiguration { + rv := objc.Call[OperationConfiguration](o_, objc.Sel("defaultConfiguration")) + return rv +} + +// The default configuration for operations in the group. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/cloudkit/ckoperationgroup/2866240-defaultconfiguration?language=objc +func (o_ OperationGroup) SetDefaultConfiguration(value IOperationConfiguration) { + objc.Call[objc.Void](o_, objc.Sel("setDefaultConfiguration:"), objc.Ptr(value)) +} + +// The number of operations in the operation group. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/cloudkit/ckoperationgroup/2866220-quantity?language=objc +func (o_ OperationGroup) Quantity() uint { + rv := objc.Call[uint](o_, objc.Sel("quantity")) + return rv +} + +// The number of operations in the operation group. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/cloudkit/ckoperationgroup/2866220-quantity?language=objc +func (o_ OperationGroup) SetQuantity(value uint) { + objc.Call[objc.Void](o_, objc.Sel("setQuantity:"), value) +} diff --git a/macos/cloudkit/protocols.gen.m b/macos/cloudkit/protocols.gen.m index 40ef1ae9..24436822 100644 --- a/macos/cloudkit/protocols.gen.m +++ b/macos/cloudkit/protocols.gen.m @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. #import "CloudKit/CloudKit.h" diff --git a/macos/cloudkit/query.gen.go b/macos/cloudkit/query.gen.go index 9309245c..ced7e5b9 100644 --- a/macos/cloudkit/query.gen.go +++ b/macos/cloudkit/query.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package cloudkit @@ -19,10 +19,10 @@ type _QueryClass struct { // An interface definition for the [Query] class. type IQuery interface { objc.IObject - SortDescriptors() []foundation.SortDescriptor - SetSortDescriptors(value []foundation.ISortDescriptor) Predicate() foundation.Predicate RecordType() RecordType + SortDescriptors() []foundation.SortDescriptor + SetSortDescriptors(value []foundation.ISortDescriptor) } // A query that describes the criteria to apply when searching for records in a database. [Full Topic] @@ -57,10 +57,6 @@ func (qc _QueryClass) Alloc() Query { return rv } -func Query_Alloc() Query { - return QueryClass.Alloc() -} - func (qc _QueryClass) New() Query { rv := objc.Call[Query](qc, objc.Sel("new")) rv.Autorelease() @@ -76,21 +72,6 @@ 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 @@ -106,3 +87,18 @@ 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_cursor.gen.go b/macos/cloudkit/query_cursor.gen.go index 722c131f..3e39229a 100644 --- a/macos/cloudkit/query_cursor.gen.go +++ b/macos/cloudkit/query_cursor.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package cloudkit @@ -38,10 +38,6 @@ func (qc _QueryCursorClass) Alloc() QueryCursor { return rv } -func QueryCursor_Alloc() QueryCursor { - return QueryCursorClass.Alloc() -} - func (qc _QueryCursorClass) New() QueryCursor { rv := objc.Call[QueryCursor](qc, objc.Sel("new")) rv.Autorelease() diff --git a/macos/cloudkit/query_notification.gen.go b/macos/cloudkit/query_notification.gen.go index db2c2e79..924ecd4f 100644 --- a/macos/cloudkit/query_notification.gen.go +++ b/macos/cloudkit/query_notification.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package cloudkit @@ -20,9 +20,9 @@ type _QueryNotificationClass struct { type IQueryNotification interface { INotification RecordID() RecordID - DatabaseScope() DatabaseScope - QueryNotificationReason() QueryNotificationReason RecordFields() map[string]objc.Object + QueryNotificationReason() QueryNotificationReason + DatabaseScope() DatabaseScope } // A notification that triggers when a record that matches the subscription’s predicate changes. [Full Topic] @@ -43,10 +43,6 @@ func (qc _QueryNotificationClass) Alloc() QueryNotification { return rv } -func QueryNotification_Alloc() QueryNotification { - return QueryNotificationClass.Alloc() -} - func (qc _QueryNotificationClass) New() QueryNotification { rv := objc.Call[QueryNotification](qc, objc.Sel("new")) rv.Autorelease() @@ -82,11 +78,11 @@ func (q_ QueryNotification) RecordID() RecordID { 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 } @@ -98,10 +94,10 @@ func (q_ QueryNotification) QueryNotificationReason() QueryNotificationReason { 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 } diff --git a/macos/cloudkit/query_operation.gen.go b/macos/cloudkit/query_operation.gen.go index 3d0a8c65..28219a10 100644 --- a/macos/cloudkit/query_operation.gen.go +++ b/macos/cloudkit/query_operation.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package cloudkit @@ -21,18 +21,18 @@ type IQueryOperation interface { IDatabaseOperation Cursor() QueryCursor SetCursor(value IQueryCursor) - 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)) + RecordMatchedBlock() func(recordID RecordID, record Record, error foundation.Error) + SetRecordMatchedBlock(value func(recordID RecordID, record Record, error foundation.Error)) + Query() Query + SetQuery(value IQuery) 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,6 +62,11 @@ 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:"), objc.Ptr(cursor)) return rv @@ -76,20 +81,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 } -func QueryOperation_Alloc() QueryOperation { - return QueryOperationClass.Alloc() -} - func (qc _QueryOperationClass) New() QueryOperation { rv := objc.Call[QueryOperation](qc, objc.Sel("new")) rv.Autorelease() @@ -115,34 +111,19 @@ func (q_ QueryOperation) SetCursor(value IQueryCursor) { objc.Call[objc.Void](q_, objc.Sel("setCursor:"), objc.Ptr(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:"), objc.Ptr(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:"), objc.Ptr(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) } // [Full Topic] @@ -160,19 +141,19 @@ func (q_ QueryOperation) SetRecordMatchedBlock(value func(recordID RecordID, rec objc.Call[objc.Void](q_, objc.Sel("setRecordMatchedBlock:"), value) } -// The block to execute after CloudKit retrieves all of the records. [Full Topic] +// The query for the 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/1515127-query?language=objc +func (q_ QueryOperation) Query() Query { + rv := objc.Call[Query](q_, objc.Sel("query")) return rv } -// The block to execute after CloudKit retrieves all of the records. [Full Topic] +// The query for the 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/1515127-query?language=objc +func (q_ QueryOperation) SetQuery(value IQuery) { + objc.Call[objc.Void](q_, objc.Sel("setQuery:"), objc.Ptr(value)) } // The maximum number of records to return at one time. [Full Topic] @@ -204,3 +185,18 @@ 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:"), objc.Ptr(value)) +} diff --git a/macos/cloudkit/query_subscription.gen.go b/macos/cloudkit/query_subscription.gen.go index 831b3cb8..6ea32d01 100644 --- a/macos/cloudkit/query_subscription.gen.go +++ b/macos/cloudkit/query_subscription.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package cloudkit @@ -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,13 +39,23 @@ func QuerySubscriptionFrom(ptr unsafe.Pointer) QuerySubscription { } } -func (qc _QuerySubscriptionClass) Alloc() QuerySubscription { - rv := objc.Call[QuerySubscription](qc, objc.Sel("alloc")) +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, objc.Ptr(predicate), subscriptionID, querySubscriptionOptions) return rv } -func QuerySubscription_Alloc() QuerySubscription { - return QuerySubscriptionClass.Alloc() +// 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 } func (qc _QuerySubscriptionClass) New() QuerySubscription { @@ -63,6 +73,14 @@ 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 @@ -86,14 +104,6 @@ func (q_ QuerySubscription) SetZoneID(value IRecordZoneID) { objc.Call[objc.Void](q_, objc.Sel("setZoneID:"), objc.Ptr(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 7e450529..0ccd3fb2 100644 --- a/macos/cloudkit/record.gen.go +++ b/macos/cloudkit/record.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package cloudkit @@ -19,27 +19,29 @@ type _RecordClass struct { // An interface definition for the [Record] class. type IRecord interface { objc.IObject - ObjectForKey(key RecordFieldKey) RecordValueWrapper - ObjectForKeyedSubscript(key RecordFieldKey) RecordValueWrapper - SetObjectForKeyedSubscript(object PRecordValue, key RecordFieldKey) - SetObjectObjectForKeyedSubscript(objectObject objc.IObject, key RecordFieldKey) - AllTokens() []string + EncodeSystemFieldsWithCoder(coder foundation.ICoder) SetParentReferenceFromRecordID(parentRecordID IRecordID) + ChangedKeys() []RecordFieldKey + AllTokens() []string SetParentReferenceFromRecord(parentRecord IRecord) - EncodeSystemFieldsWithCoder(coder foundation.ICoder) + ObjectForKey(key RecordFieldKey) RecordValueObject + SetObjectForKeyedSubscript(object PRecordValue, key RecordFieldKey) + SetObjectObjectForKeyedSubscript(objectObject objc.IObject, key RecordFieldKey) AllKeys() []RecordFieldKey - ChangedKeys() []RecordFieldKey - RecordID() RecordID - Share() Reference - Parent() Reference - SetParent(value IReference) - LastModifiedUserRecordID() RecordID + ObjectForKeyedSubscript(key RecordFieldKey) RecordValueObject + SetObjectForKey(object PRecordValue, key RecordFieldKey) + SetObjectObjectForKey(objectObject objc.IObject, key RecordFieldKey) + CreatorUserRecordID() RecordID ModificationDate() foundation.Date RecordChangeTag() string - CreatorUserRecordID() RecordID - EncryptedValues() RecordKeyValueSettingWrapper CreationDate() foundation.Date + LastModifiedUserRecordID() RecordID + EncryptedValues() RecordKeyValueSettingObject + Share() Reference + Parent() Reference + SetParent(value IReference) RecordType() RecordType + RecordID() RecordID } // A collection of key-value pairs that store your app’s data. [Full Topic] @@ -55,6 +57,34 @@ 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, objc.Ptr(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, objc.Ptr(zoneID)) return rv @@ -74,10 +104,6 @@ func (rc _RecordClass) Alloc() Record { return rv } -func Record_Alloc() Record { - return RecordClass.Alloc() -} - func (rc _RecordClass) New() Record { rv := objc.Call[Record](rc, objc.Sel("new")) rv.Autorelease() @@ -93,35 +119,26 @@ func (r_ Record) Init() Record { return rv } -// Returns the object that the record stores for the specified key. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/cloudkit/ckrecord/1462216-objectforkey?language=objc -func (r_ Record) ObjectForKey(key RecordFieldKey) RecordValueWrapper { - rv := objc.Call[RecordValueWrapper](r_, objc.Sel("objectForKey:"), key) - return rv -} - -// 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/1462210-objectforkeyedsubscript?language=objc -func (r_ Record) ObjectForKeyedSubscript(key RecordFieldKey) RecordValueWrapper { - rv := objc.Call[RecordValueWrapper](r_, objc.Sel("objectForKeyedSubscript:"), 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:"), objc.Ptr(coder)) } -// Stores an object in the record using the specified key. [Full Topic] +// 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/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/1690508-setparentreferencefromrecordid?language=objc +func (r_ Record) SetParentReferenceFromRecordID(parentRecordID IRecordID) { + objc.Call[objc.Void](r_, objc.Sel("setParentReferenceFromRecordID:"), objc.Ptr(parentRecordID)) } -// 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:"), objc.Ptr(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 strings to use for full-text searches of the field’s string-based values. [Full Topic] @@ -132,13 +149,6 @@ 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:"), objc.Ptr(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 @@ -146,65 +156,65 @@ func (r_ Record) SetParentReferenceFromRecord(parentRecord IRecord) { objc.Call[objc.Void](r_, objc.Sel("setParentReferenceFromRecord:"), objc.Ptr(parentRecord)) } -// 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:"), objc.Ptr(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 } -// Returns an array of the record’s keys. [Full Topic] +// Stores an object in the record using the specified key. [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")) - 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) } -// 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) SetObjectObjectForKeyedSubscript(objectObject objc.IObject, key RecordFieldKey) { + objc.Call[objc.Void](r_, objc.Sel("setObject:forKeyedSubscript:"), objc.Ptr(objectObject), key) } -// The unique ID of the record. [Full Topic] +// Returns an array of the record’s keys. [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")) +// [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 } -// A reference to the share object that determines the share status of the record. [Full Topic] +// Returns the object that the record stores for the specified key. [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")) +// [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 } -// A reference to the record’s parent record. [Full Topic] +// Stores an object in the record using the specified key. [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")) - return rv +// [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) } -// A reference to the record’s parent record. [Full Topic] +// Stores an object in the record using the specified key. [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:"), objc.Ptr(value)) +// [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:"), objc.Ptr(objectObject), key) } -// 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 } @@ -224,30 +234,53 @@ func (r_ Record) RecordChangeTag() string { return rv } -// The ID of the user who creates the 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/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/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] +// +// [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 } // An object that manages the record’s encrypted key-value pairs. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/cloudkit/ckrecord/3746821-encryptedvalues?language=objc -func (r_ Record) EncryptedValues() RecordKeyValueSettingWrapper { - rv := objc.Call[RecordKeyValueSettingWrapper](r_, objc.Sel("encryptedValues")) +func (r_ Record) EncryptedValues() RecordKeyValueSettingObject { + rv := objc.Call[RecordKeyValueSettingObject](r_, objc.Sel("encryptedValues")) return rv } -// The time when CloudKit first saves the record to the server. [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/1462223-creationdate?language=objc -func (r_ Record) CreationDate() foundation.Date { - rv := objc.Call[foundation.Date](r_, objc.Sel("creationDate")) +// [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] +// +// [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 +} + +// 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:"), objc.Ptr(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 @@ -255,3 +288,11 @@ 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 c3c0614d..6502193c 100644 --- a/macos/cloudkit/record_id.gen.go +++ b/macos/cloudkit/record_id.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package cloudkit @@ -18,8 +18,8 @@ type _RecordIDClass struct { // An interface definition for the [RecordID] class. type IRecordID interface { objc.IObject - ZoneID() RecordZoneID RecordName() string + ZoneID() RecordZoneID } // An object that uniquely identifies a record in a database. [Full Topic] @@ -35,6 +35,20 @@ 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, objc.Ptr(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 @@ -54,10 +68,6 @@ func (rc _RecordIDClass) Alloc() RecordID { return rv } -func RecordID_Alloc() RecordID { - return RecordIDClass.Alloc() -} - func (rc _RecordIDClass) New() RecordID { rv := objc.Call[RecordID](rc, objc.Sel("new")) rv.Autorelease() @@ -73,14 +83,6 @@ func (r_ RecordID) Init() RecordID { 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 -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 @@ -88,3 +90,11 @@ 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 +func (r_ RecordID) ZoneID() RecordZoneID { + rv := objc.Call[RecordZoneID](r_, objc.Sel("zoneID")) + return rv +} diff --git a/macos/cloudkit/record_key_value_setting.gen.go b/macos/cloudkit/record_key_value_setting_protocol.gen.go similarity index 52% rename from macos/cloudkit/record_key_value_setting.gen.go rename to macos/cloudkit/record_key_value_setting_protocol.gen.go index 6cde8e92..d70a49bc 100644 --- a/macos/cloudkit/record_key_value_setting.gen.go +++ b/macos/cloudkit/record_key_value_setting_protocol.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package cloudkit @@ -11,87 +11,106 @@ import ( // [Full Topic]: https://developer.apple.com/documentation/cloudkit/ckrecordkeyvaluesetting?language=objc type PRecordKeyValueSetting interface { // optional - ObjectForKey(key RecordFieldKey) PRecordValue - HasObjectForKey() bool + AllKeys() []RecordFieldKey + HasAllKeys() bool // optional - ObjectForKeyedSubscript(key RecordFieldKey) PRecordValue + ChangedKeys() []RecordFieldKey + HasChangedKeys() bool + + // optional + ObjectForKeyedSubscript(key RecordFieldKey) RecordValueObject HasObjectForKeyedSubscript() bool // optional - SetObjectForKeyedSubscript(object RecordValueWrapper, key RecordFieldKey) + SetObjectForKeyedSubscript(object RecordValueObject, key RecordFieldKey) HasSetObjectForKeyedSubscript() bool // optional - AllKeys() []RecordFieldKey - HasAllKeys() bool + SetObjectForKey(object RecordValueObject, key RecordFieldKey) + HasSetObjectForKey() bool // optional - ChangedKeys() []RecordFieldKey - HasChangedKeys() bool + ObjectForKey(key RecordFieldKey) RecordValueObject + HasObjectForKey() bool } -// A concrete type wrapper for the [PRecordKeyValueSetting] protocol. -type RecordKeyValueSettingWrapper struct { +// ensure impl type implements protocol interface +var _ PRecordKeyValueSetting = (*RecordKeyValueSettingObject)(nil) + +// A concrete type for the [PRecordKeyValueSetting] protocol. +type RecordKeyValueSettingObject struct { objc.Object } -func (r_ RecordKeyValueSettingWrapper) HasObjectForKey() bool { - return r_.RespondsToSelector(objc.Sel("objectForKey:")) +func (r_ RecordKeyValueSettingObject) HasAllKeys() bool { + return r_.RespondsToSelector(objc.Sel("allKeys")) } -// Returns the object that the record stores for the specified key. [Full Topic] +// Returns an array of the record’s keys. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/cloudkit/ckrecordkeyvaluesetting/2976185-objectforkey?language=objc -func (r_ RecordKeyValueSettingWrapper) ObjectForKey(key RecordFieldKey) RecordValueWrapper { - rv := objc.Call[RecordValueWrapper](r_, objc.Sel("objectForKey:"), 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) HasChangedKeys() bool { + return r_.RespondsToSelector(objc.Sel("changedKeys")) +} + +// Returns an array of keys with recent changes to their values. [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")) return rv } -func (r_ RecordKeyValueSettingWrapper) HasObjectForKeyedSubscript() bool { +func (r_ RecordKeyValueSettingObject) HasObjectForKeyedSubscript() bool { return r_.RespondsToSelector(objc.Sel("objectForKeyedSubscript:")) } // Returns the object that the record stores for the specified key. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/cloudkit/ckrecordkeyvaluesetting/2976186-objectforkeyedsubscript?language=objc -func (r_ RecordKeyValueSettingWrapper) ObjectForKeyedSubscript(key RecordFieldKey) RecordValueWrapper { - rv := objc.Call[RecordValueWrapper](r_, objc.Sel("objectForKeyedSubscript:"), key) +func (r_ RecordKeyValueSettingObject) ObjectForKeyedSubscript(key RecordFieldKey) RecordValueObject { + rv := objc.Call[RecordValueObject](r_, objc.Sel("objectForKeyedSubscript:"), key) return rv } -func (r_ RecordKeyValueSettingWrapper) HasSetObjectForKeyedSubscript() bool { +func (r_ RecordKeyValueSettingObject) HasSetObjectForKeyedSubscript() bool { return r_.RespondsToSelector(objc.Sel("setObject:forKeyedSubscript:")) } // Stores an object in the record using the specified key. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/cloudkit/ckrecordkeyvaluesetting/2976188-setobject?language=objc -func (r_ RecordKeyValueSettingWrapper) SetObjectForKeyedSubscript(object PRecordValue, key RecordFieldKey) { +func (r_ RecordKeyValueSettingObject) SetObjectForKeyedSubscript(object RecordValueObject, key RecordFieldKey) { po0 := objc.WrapAsProtocol("CKRecordValue", object) objc.Call[objc.Void](r_, objc.Sel("setObject:forKeyedSubscript:"), po0, key) } -func (r_ RecordKeyValueSettingWrapper) HasAllKeys() bool { - return r_.RespondsToSelector(objc.Sel("allKeys")) +func (r_ RecordKeyValueSettingObject) HasSetObjectForKey() bool { + return r_.RespondsToSelector(objc.Sel("setObject:forKey:")) } -// Returns an array of the record’s keys. [Full Topic] +// Stores an object in the record using the specified key. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/cloudkit/ckrecordkeyvaluesetting/2976183-allkeys?language=objc -func (r_ RecordKeyValueSettingWrapper) AllKeys() []RecordFieldKey { - rv := objc.Call[[]RecordFieldKey](r_, objc.Sel("allKeys")) - return rv +// [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) } -func (r_ RecordKeyValueSettingWrapper) 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_ RecordKeyValueSettingWrapper) 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 } diff --git a/macos/cloudkit/record_value.gen.go b/macos/cloudkit/record_value_protocol.gen.go similarity index 60% rename from macos/cloudkit/record_value.gen.go rename to macos/cloudkit/record_value_protocol.gen.go index fe4602c7..83384de2 100644 --- a/macos/cloudkit/record_value.gen.go +++ b/macos/cloudkit/record_value_protocol.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package cloudkit @@ -12,7 +12,10 @@ import ( type PRecordValue interface { } -// A concrete type wrapper for the [PRecordValue] protocol. -type RecordValueWrapper struct { +// ensure impl type implements protocol interface +var _ PRecordValue = (*RecordValueObject)(nil) + +// A concrete type for the [PRecordValue] protocol. +type RecordValueObject struct { objc.Object } diff --git a/macos/cloudkit/record_zone.gen.go b/macos/cloudkit/record_zone.gen.go index 29047cd2..1c5343ce 100644 --- a/macos/cloudkit/record_zone.gen.go +++ b/macos/cloudkit/record_zone.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package cloudkit @@ -18,8 +18,8 @@ type _RecordZoneClass struct { // An interface definition for the [RecordZone] class. type IRecordZone interface { objc.IObject - Share() Reference Capabilities() RecordZoneCapabilities + Share() Reference ZoneID() RecordZoneID } @@ -69,10 +69,6 @@ func (rc _RecordZoneClass) Alloc() RecordZone { return rv } -func RecordZone_Alloc() RecordZone { - return RecordZoneClass.Alloc() -} - func (rc _RecordZoneClass) New() RecordZone { rv := objc.Call[RecordZone](rc, objc.Sel("new")) rv.Autorelease() @@ -103,14 +99,6 @@ func RecordZone_DefaultRecordZone() RecordZone { return RecordZoneClass.DefaultRecordZone() } -// A reference to the record zone’s share record. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/cloudkit/ckrecordzone/3746822-share?language=objc -func (r_ RecordZone) Share() Reference { - rv := objc.Call[Reference](r_, objc.Sel("share")) - return rv -} - // The capabilities that the zone supports. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/cloudkit/ckrecordzone/1515194-capabilities?language=objc @@ -119,6 +107,14 @@ func (r_ RecordZone) Capabilities() RecordZoneCapabilities { 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 +func (r_ RecordZone) Share() Reference { + rv := objc.Call[Reference](r_, objc.Sel("share")) + 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_id.gen.go b/macos/cloudkit/record_zone_id.gen.go index 9e989936..846ddc45 100644 --- a/macos/cloudkit/record_zone_id.gen.go +++ b/macos/cloudkit/record_zone_id.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package cloudkit @@ -54,10 +54,6 @@ func (rc _RecordZoneIDClass) Alloc() RecordZoneID { return rv } -func RecordZoneID_Alloc() RecordZoneID { - return RecordZoneIDClass.Alloc() -} - func (rc _RecordZoneIDClass) New() RecordZoneID { rv := objc.Call[RecordZoneID](rc, objc.Sel("new")) rv.Autorelease() diff --git a/macos/cloudkit/record_zone_notification.gen.go b/macos/cloudkit/record_zone_notification.gen.go index 8ecf1a57..4d0a3738 100644 --- a/macos/cloudkit/record_zone_notification.gen.go +++ b/macos/cloudkit/record_zone_notification.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package cloudkit @@ -41,10 +41,6 @@ func (rc _RecordZoneNotificationClass) Alloc() RecordZoneNotification { return rv } -func RecordZoneNotification_Alloc() RecordZoneNotification { - return RecordZoneNotificationClass.Alloc() -} - func (rc _RecordZoneNotificationClass) New() RecordZoneNotification { rv := objc.Call[RecordZoneNotification](rc, objc.Sel("new")) rv.Autorelease() diff --git a/macos/cloudkit/record_zone_subscription.gen.go b/macos/cloudkit/record_zone_subscription.gen.go index 554c58fc..8dca46b7 100644 --- a/macos/cloudkit/record_zone_subscription.gen.go +++ b/macos/cloudkit/record_zone_subscription.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package cloudkit @@ -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,13 +36,23 @@ func RecordZoneSubscriptionFrom(ptr unsafe.Pointer) RecordZoneSubscription { } } -func (rc _RecordZoneSubscriptionClass) Alloc() RecordZoneSubscription { - rv := objc.Call[RecordZoneSubscription](rc, objc.Sel("alloc")) +func (r_ RecordZoneSubscription) InitWithZoneIDSubscriptionID(zoneID IRecordZoneID, subscriptionID SubscriptionID) RecordZoneSubscription { + rv := objc.Call[RecordZoneSubscription](r_, objc.Sel("initWithZoneID:subscriptionID:"), objc.Ptr(zoneID), subscriptionID) return rv } -func RecordZoneSubscription_Alloc() RecordZoneSubscription { - return RecordZoneSubscriptionClass.Alloc() +// 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 } func (rc _RecordZoneSubscriptionClass) New() RecordZoneSubscription { @@ -60,14 +70,6 @@ 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 @@ -82,3 +84,11 @@ 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/reference.gen.go b/macos/cloudkit/reference.gen.go index 41c718f4..40913e20 100644 --- a/macos/cloudkit/reference.gen.go +++ b/macos/cloudkit/reference.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package cloudkit @@ -68,10 +68,6 @@ func (rc _ReferenceClass) Alloc() Reference { return rv } -func Reference_Alloc() Reference { - return ReferenceClass.Alloc() -} - func (rc _ReferenceClass) New() Reference { rv := objc.Call[Reference](rc, objc.Sel("new")) rv.Autorelease() diff --git a/macos/cloudkit/server_change_token.gen.go b/macos/cloudkit/server_change_token.gen.go index e84157af..77dd4455 100644 --- a/macos/cloudkit/server_change_token.gen.go +++ b/macos/cloudkit/server_change_token.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package cloudkit @@ -38,10 +38,6 @@ func (sc _ServerChangeTokenClass) Alloc() ServerChangeToken { return rv } -func ServerChangeToken_Alloc() ServerChangeToken { - return ServerChangeTokenClass.Alloc() -} - func (sc _ServerChangeTokenClass) New() ServerChangeToken { rv := objc.Call[ServerChangeToken](sc, objc.Sel("new")) rv.Autorelease() diff --git a/macos/cloudkit/share.gen.go b/macos/cloudkit/share.gen.go index 168d0928..69e6c41e 100644 --- a/macos/cloudkit/share.gen.go +++ b/macos/cloudkit/share.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package cloudkit @@ -19,14 +19,14 @@ type _ShareClass struct { // An interface definition for the [Share] class. type IShare interface { IRecord - AddParticipant(participant IShareParticipant) RemoveParticipant(participant IShareParticipant) + AddParticipant(participant IShareParticipant) CurrentUserParticipant() ShareParticipant - Owner() ShareParticipant + Participants() []ShareParticipant PublicPermission() ShareParticipantPermission SetPublicPermission(value ShareParticipantPermission) URL() foundation.URL - Participants() []ShareParticipant + Owner() ShareParticipant } // A specialized record type that manages a collection of shared records. [Full Topic] @@ -70,13 +70,23 @@ func NewShareWithRecordZoneID(recordZoneID IRecordZoneID) Share { return instance } -func (sc _ShareClass) Alloc() Share { - rv := objc.Call[Share](sc, objc.Sel("alloc")) +func (s_ Share) InitWithRootRecordShareID(rootRecord IRecord, shareID IRecordID) Share { + rv := objc.Call[Share](s_, objc.Sel("initWithRootRecord:shareID:"), objc.Ptr(rootRecord), objc.Ptr(shareID)) return rv } -func Share_Alloc() Share { - return ShareClass.Alloc() +// 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 } func (sc _ShareClass) New() Share { @@ -94,6 +104,34 @@ 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, objc.Ptr(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, objc.Ptr(zoneID)) return rv @@ -108,13 +146,6 @@ func NewShareWithRecordTypeZoneID(recordType RecordType, zoneID IRecordZoneID) S return instance } -// Adds a participant to the share. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/cloudkit/ckshare/1640443-addparticipant?language=objc -func (s_ Share) AddParticipant(participant IShareParticipant) { - objc.Call[objc.Void](s_, objc.Sel("addParticipant:"), objc.Ptr(participant)) -} - // Removes a participant from the share. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/cloudkit/ckshare/1640523-removeparticipant?language=objc @@ -122,6 +153,13 @@ func (s_ Share) RemoveParticipant(participant IShareParticipant) { objc.Call[objc.Void](s_, objc.Sel("removeParticipant:"), objc.Ptr(participant)) } +// Adds a participant to the share. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/cloudkit/ckshare/1640443-addparticipant?language=objc +func (s_ Share) AddParticipant(participant IShareParticipant) { + objc.Call[objc.Void](s_, objc.Sel("addParticipant:"), objc.Ptr(participant)) +} + // The participant that represents the current user. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/cloudkit/ckshare/1640441-currentuserparticipant?language=objc @@ -130,11 +168,11 @@ func (s_ Share) CurrentUserParticipant() ShareParticipant { 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 } @@ -161,10 +199,10 @@ func (s_ Share) URL() foundation.URL { 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 } diff --git a/macos/cloudkit/share_metadata.gen.go b/macos/cloudkit/share_metadata.gen.go index 613bd962..71a23446 100644 --- a/macos/cloudkit/share_metadata.gen.go +++ b/macos/cloudkit/share_metadata.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package cloudkit @@ -18,14 +18,14 @@ type _ShareMetadataClass struct { // An interface definition for the [ShareMetadata] class. type IShareMetadata interface { objc.IObject - ParticipantPermission() ShareParticipantPermission - Share() Share - ParticipantRole() ShareParticipantRole - OwnerIdentity() UserIdentity - ParticipantStatus() ShareParticipantAcceptanceStatus RootRecord() Record ContainerIdentifier() string HierarchicalRootRecordID() RecordID + ParticipantPermission() ShareParticipantPermission + ParticipantStatus() ShareParticipantAcceptanceStatus + ParticipantRole() ShareParticipantRole + Share() Share + OwnerIdentity() UserIdentity } // An object that describes a shared record’s metadata. [Full Topic] @@ -46,10 +46,6 @@ func (sc _ShareMetadataClass) Alloc() ShareMetadata { return rv } -func ShareMetadata_Alloc() ShareMetadata { - return ShareMetadataClass.Alloc() -} - func (sc _ShareMetadataClass) New() ShareMetadata { rv := objc.Call[ShareMetadata](sc, objc.Sel("new")) rv.Autorelease() @@ -65,35 +61,35 @@ func (s_ ShareMetadata) Init() ShareMetadata { return rv } -// The share’s permissions 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/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/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 share’s participant role for the user who retrieves the metadata. [Full Topic] +// The record ID of the shared hierarchy’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/3793709-hierarchicalrootrecordid?language=objc +func (s_ ShareMetadata) HierarchicalRootRecordID() RecordID { + rv := objc.Call[RecordID](s_, objc.Sel("hierarchicalRootRecordID")) return rv } -// The identity of the share’s owner. [Full Topic] +// The share’s permissions for the user who retrieves the metadata. [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/1640483-participantpermission?language=objc +func (s_ ShareMetadata) ParticipantPermission() ShareParticipantPermission { + rv := objc.Call[ShareParticipantPermission](s_, objc.Sel("participantPermission")) return rv } @@ -105,26 +101,26 @@ func (s_ ShareMetadata) ParticipantStatus() ShareParticipantAcceptanceStatus { return rv } -// The share’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/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/2980666-participantrole?language=objc +func (s_ ShareMetadata) ParticipantRole() ShareParticipantRole { + rv := objc.Call[ShareParticipantRole](s_, objc.Sel("participantRole")) 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 identity of the share’s owner. [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/1640498-owneridentity?language=objc +func (s_ ShareMetadata) OwnerIdentity() UserIdentity { + rv := objc.Call[UserIdentity](s_, objc.Sel("ownerIdentity")) return rv } diff --git a/macos/cloudkit/share_participant.gen.go b/macos/cloudkit/share_participant.gen.go index 75fd9e53..ec810663 100644 --- a/macos/cloudkit/share_participant.gen.go +++ b/macos/cloudkit/share_participant.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package cloudkit @@ -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] @@ -44,10 +44,6 @@ func (sc _ShareParticipantClass) Alloc() ShareParticipant { return rv } -func ShareParticipant_Alloc() ShareParticipant { - return ShareParticipantClass.Alloc() -} - func (sc _ShareParticipantClass) New() ShareParticipant { rv := objc.Call[ShareParticipant](sc, objc.Sel("new")) rv.Autorelease() @@ -78,6 +74,14 @@ 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 @@ -100,11 +104,3 @@ 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 dc9d0792..a23c4c12 100644 --- a/macos/cloudkit/subscription.gen.go +++ b/macos/cloudkit/subscription.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package cloudkit @@ -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 } @@ -42,10 +42,6 @@ func (sc _SubscriptionClass) Alloc() Subscription { return rv } -func Subscription_Alloc() Subscription { - return SubscriptionClass.Alloc() -} - func (sc _SubscriptionClass) New() Subscription { rv := objc.Call[Subscription](sc, objc.Sel("new")) rv.Autorelease() @@ -61,14 +57,6 @@ 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 @@ -84,6 +72,14 @@ func (s_ Subscription) SetNotificationInfo(value INotificationInfo) { objc.Call[objc.Void](s_, objc.Sel("setNotificationInfo:"), objc.Ptr(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 dfb6c09f..8ed35398 100644 --- a/macos/cloudkit/user_identity.gen.go +++ b/macos/cloudkit/user_identity.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package cloudkit @@ -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] @@ -44,10 +44,6 @@ func (uc _UserIdentityClass) Alloc() UserIdentity { return rv } -func UserIdentity_Alloc() UserIdentity { - return UserIdentityClass.Alloc() -} - func (uc _UserIdentityClass) New() UserIdentity { rv := objc.Call[UserIdentity](uc, objc.Sel("new")) rv.Autorelease() @@ -63,14 +59,6 @@ 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 @@ -79,14 +67,6 @@ 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 @@ -102,3 +82,19 @@ 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 146faf00..1a861955 100644 --- a/macos/cloudkit/user_identity_lookup_info.gen.go +++ b/macos/cloudkit/user_identity_lookup_info.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package cloudkit @@ -18,9 +18,9 @@ type _UserIdentityLookupInfoClass struct { // An interface definition for the [UserIdentityLookupInfo] class. type IUserIdentityLookupInfo interface { objc.IObject - UserRecordID() RecordID - PhoneNumber() string EmailAddress() string + PhoneNumber() string + UserRecordID() RecordID } // 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) InitWithUserRecordID(userRecordID IRecordID) UserIdentityLookupInfo { - rv := objc.Call[UserIdentityLookupInfo](u_, objc.Sel("initWithUserRecordID:"), objc.Ptr(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 } -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:"), objc.Ptr(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 } @@ -83,10 +83,6 @@ func (uc _UserIdentityLookupInfoClass) Alloc() UserIdentityLookupInfo { return rv } -func UserIdentityLookupInfo_Alloc() UserIdentityLookupInfo { - return UserIdentityLookupInfoClass.Alloc() -} - func (uc _UserIdentityLookupInfoClass) New() UserIdentityLookupInfo { rv := objc.Call[UserIdentityLookupInfo](uc, objc.Sel("new")) rv.Autorelease() @@ -102,19 +98,19 @@ func (u_ UserIdentityLookupInfo) Init() UserIdentityLookupInfo { 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 (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) } // Returns an array of lookup infos for the specifed email addresses. [Full Topic] @@ -132,26 +128,26 @@ func UserIdentityLookupInfo_LookupInfosWithEmails(emails []string) []UserIdentit return UserIdentityLookupInfoClass.LookupInfosWithEmails(emails) } -// 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) } -// 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 } @@ -163,10 +159,10 @@ func (u_ UserIdentityLookupInfo) PhoneNumber() string { return rv } -// 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 } diff --git a/macos/contacts/change_history_add_contact_event.gen.go b/macos/contacts/change_history_add_contact_event.gen.go index 76aaba25..c5bc7563 100644 --- a/macos/contacts/change_history_add_contact_event.gen.go +++ b/macos/contacts/change_history_add_contact_event.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package contacts @@ -18,8 +18,8 @@ type _ChangeHistoryAddContactEventClass struct { // An interface definition for the [ChangeHistoryAddContactEvent] class. type IChangeHistoryAddContactEvent interface { IChangeHistoryEvent - Contact() Contact ContainerIdentifier() string + Contact() Contact } // [Full Topic] @@ -40,10 +40,6 @@ func (cc _ChangeHistoryAddContactEventClass) Alloc() ChangeHistoryAddContactEven return rv } -func ChangeHistoryAddContactEvent_Alloc() ChangeHistoryAddContactEvent { - return ChangeHistoryAddContactEventClass.Alloc() -} - func (cc _ChangeHistoryAddContactEventClass) New() ChangeHistoryAddContactEvent { rv := objc.Call[ChangeHistoryAddContactEvent](cc, objc.Sel("new")) rv.Autorelease() @@ -61,16 +57,16 @@ func (c_ ChangeHistoryAddContactEvent) Init() ChangeHistoryAddContactEvent { // [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 } // [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 } diff --git a/macos/contacts/change_history_add_group_event.gen.go b/macos/contacts/change_history_add_group_event.gen.go index 6ecd799a..e679c5be 100644 --- a/macos/contacts/change_history_add_group_event.gen.go +++ b/macos/contacts/change_history_add_group_event.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package contacts @@ -18,8 +18,8 @@ type _ChangeHistoryAddGroupEventClass struct { // An interface definition for the [ChangeHistoryAddGroupEvent] class. type IChangeHistoryAddGroupEvent interface { IChangeHistoryEvent - Group() Group ContainerIdentifier() string + Group() Group } // [Full Topic] @@ -40,10 +40,6 @@ func (cc _ChangeHistoryAddGroupEventClass) Alloc() ChangeHistoryAddGroupEvent { return rv } -func ChangeHistoryAddGroupEvent_Alloc() ChangeHistoryAddGroupEvent { - return ChangeHistoryAddGroupEventClass.Alloc() -} - func (cc _ChangeHistoryAddGroupEventClass) New() ChangeHistoryAddGroupEvent { rv := objc.Call[ChangeHistoryAddGroupEvent](cc, objc.Sel("new")) rv.Autorelease() @@ -61,16 +57,16 @@ func (c_ ChangeHistoryAddGroupEvent) Init() ChangeHistoryAddGroupEvent { // [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 } // [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 } 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 883a021a..ab1c94de 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 @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package contacts @@ -18,8 +18,8 @@ type _ChangeHistoryAddMemberToGroupEventClass struct { // An interface definition for the [ChangeHistoryAddMemberToGroupEvent] class. type IChangeHistoryAddMemberToGroupEvent interface { IChangeHistoryEvent - Member() Contact Group() Group + Member() Contact } // [Full Topic] @@ -40,10 +40,6 @@ func (cc _ChangeHistoryAddMemberToGroupEventClass) Alloc() ChangeHistoryAddMembe return rv } -func ChangeHistoryAddMemberToGroupEvent_Alloc() ChangeHistoryAddMemberToGroupEvent { - return ChangeHistoryAddMemberToGroupEventClass.Alloc() -} - func (cc _ChangeHistoryAddMemberToGroupEventClass) New() ChangeHistoryAddMemberToGroupEvent { rv := objc.Call[ChangeHistoryAddMemberToGroupEvent](cc, objc.Sel("new")) rv.Autorelease() @@ -61,16 +57,16 @@ func (c_ ChangeHistoryAddMemberToGroupEvent) Init() ChangeHistoryAddMemberToGrou // [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 } // [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 } diff --git a/macos/contacts/change_history_add_subgroup_to_group_event.gen.go b/macos/contacts/change_history_add_subgroup_to_group_event.gen.go index 8dabe014..956c7251 100644 --- a/macos/contacts/change_history_add_subgroup_to_group_event.gen.go +++ b/macos/contacts/change_history_add_subgroup_to_group_event.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package contacts @@ -40,10 +40,6 @@ func (cc _ChangeHistoryAddSubgroupToGroupEventClass) Alloc() ChangeHistoryAddSub return rv } -func ChangeHistoryAddSubgroupToGroupEvent_Alloc() ChangeHistoryAddSubgroupToGroupEvent { - return ChangeHistoryAddSubgroupToGroupEventClass.Alloc() -} - func (cc _ChangeHistoryAddSubgroupToGroupEventClass) New() ChangeHistoryAddSubgroupToGroupEvent { rv := objc.Call[ChangeHistoryAddSubgroupToGroupEvent](cc, objc.Sel("new")) rv.Autorelease() diff --git a/macos/contacts/change_history_delete_contact_event.gen.go b/macos/contacts/change_history_delete_contact_event.gen.go index bd46aea4..c7ccbe55 100644 --- a/macos/contacts/change_history_delete_contact_event.gen.go +++ b/macos/contacts/change_history_delete_contact_event.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package contacts @@ -39,10 +39,6 @@ func (cc _ChangeHistoryDeleteContactEventClass) Alloc() ChangeHistoryDeleteConta return rv } -func ChangeHistoryDeleteContactEvent_Alloc() ChangeHistoryDeleteContactEvent { - return ChangeHistoryDeleteContactEventClass.Alloc() -} - func (cc _ChangeHistoryDeleteContactEventClass) New() ChangeHistoryDeleteContactEvent { rv := objc.Call[ChangeHistoryDeleteContactEvent](cc, objc.Sel("new")) rv.Autorelease() diff --git a/macos/contacts/change_history_delete_group_event.gen.go b/macos/contacts/change_history_delete_group_event.gen.go index 63aadfe2..94274d00 100644 --- a/macos/contacts/change_history_delete_group_event.gen.go +++ b/macos/contacts/change_history_delete_group_event.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package contacts @@ -39,10 +39,6 @@ func (cc _ChangeHistoryDeleteGroupEventClass) Alloc() ChangeHistoryDeleteGroupEv return rv } -func ChangeHistoryDeleteGroupEvent_Alloc() ChangeHistoryDeleteGroupEvent { - return ChangeHistoryDeleteGroupEventClass.Alloc() -} - func (cc _ChangeHistoryDeleteGroupEventClass) New() ChangeHistoryDeleteGroupEvent { rv := objc.Call[ChangeHistoryDeleteGroupEvent](cc, objc.Sel("new")) rv.Autorelease() diff --git a/macos/contacts/change_history_drop_everything_event.gen.go b/macos/contacts/change_history_drop_everything_event.gen.go index 39cf6711..ceea1dcb 100644 --- a/macos/contacts/change_history_drop_everything_event.gen.go +++ b/macos/contacts/change_history_drop_everything_event.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package contacts @@ -38,10 +38,6 @@ func (cc _ChangeHistoryDropEverythingEventClass) Alloc() ChangeHistoryDropEveryt return rv } -func ChangeHistoryDropEverythingEvent_Alloc() ChangeHistoryDropEverythingEvent { - return ChangeHistoryDropEverythingEventClass.Alloc() -} - func (cc _ChangeHistoryDropEverythingEventClass) New() ChangeHistoryDropEverythingEvent { rv := objc.Call[ChangeHistoryDropEverythingEvent](cc, objc.Sel("new")) rv.Autorelease() diff --git a/macos/contacts/change_history_event.gen.go b/macos/contacts/change_history_event.gen.go index d8f39d10..35bf19f5 100644 --- a/macos/contacts/change_history_event.gen.go +++ b/macos/contacts/change_history_event.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package contacts @@ -40,10 +40,6 @@ func (cc _ChangeHistoryEventClass) Alloc() ChangeHistoryEvent { return rv } -func ChangeHistoryEvent_Alloc() ChangeHistoryEvent { - return ChangeHistoryEventClass.Alloc() -} - func (cc _ChangeHistoryEventClass) New() ChangeHistoryEvent { rv := objc.Call[ChangeHistoryEvent](cc, objc.Sel("new")) rv.Autorelease() diff --git a/macos/contacts/change_history_event_visitor.gen.go b/macos/contacts/change_history_event_visitor_protocol.gen.go similarity index 68% rename from macos/contacts/change_history_event_visitor.gen.go rename to macos/contacts/change_history_event_visitor_protocol.gen.go index bd18865e..6b69d1e2 100644 --- a/macos/contacts/change_history_event_visitor.gen.go +++ b/macos/contacts/change_history_event_visitor_protocol.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package contacts @@ -11,172 +11,175 @@ import ( // [Full Topic]: https://developer.apple.com/documentation/contacts/cnchangehistoryeventvisitor?language=objc type PChangeHistoryEventVisitor interface { // optional - VisitAddMemberToGroupEvent(event ChangeHistoryAddMemberToGroupEvent) - HasVisitAddMemberToGroupEvent() bool + VisitDropEverythingEvent(event ChangeHistoryDropEverythingEvent) + HasVisitDropEverythingEvent() bool // optional - VisitDeleteContactEvent(event ChangeHistoryDeleteContactEvent) - HasVisitDeleteContactEvent() bool + VisitAddMemberToGroupEvent(event ChangeHistoryAddMemberToGroupEvent) + HasVisitAddMemberToGroupEvent() bool // optional - VisitAddContactEvent(event ChangeHistoryAddContactEvent) - HasVisitAddContactEvent() bool + VisitRemoveSubgroupFromGroupEvent(event ChangeHistoryRemoveSubgroupFromGroupEvent) + HasVisitRemoveSubgroupFromGroupEvent() bool // optional - VisitAddGroupEvent(event ChangeHistoryAddGroupEvent) - HasVisitAddGroupEvent() bool + VisitDeleteContactEvent(event ChangeHistoryDeleteContactEvent) + HasVisitDeleteContactEvent() bool // optional - VisitDeleteGroupEvent(event ChangeHistoryDeleteGroupEvent) - HasVisitDeleteGroupEvent() bool + VisitAddSubgroupToGroupEvent(event ChangeHistoryAddSubgroupToGroupEvent) + HasVisitAddSubgroupToGroupEvent() bool // optional - VisitRemoveSubgroupFromGroupEvent(event ChangeHistoryRemoveSubgroupFromGroupEvent) - HasVisitRemoveSubgroupFromGroupEvent() bool + VisitUpdateGroupEvent(event ChangeHistoryUpdateGroupEvent) + HasVisitUpdateGroupEvent() bool // optional VisitUpdateContactEvent(event ChangeHistoryUpdateContactEvent) HasVisitUpdateContactEvent() bool // optional - VisitDropEverythingEvent(event ChangeHistoryDropEverythingEvent) - HasVisitDropEverythingEvent() bool + VisitRemoveMemberFromGroupEvent(event ChangeHistoryRemoveMemberFromGroupEvent) + HasVisitRemoveMemberFromGroupEvent() bool // optional - VisitUpdateGroupEvent(event ChangeHistoryUpdateGroupEvent) - HasVisitUpdateGroupEvent() bool + VisitAddContactEvent(event ChangeHistoryAddContactEvent) + HasVisitAddContactEvent() bool // optional - VisitAddSubgroupToGroupEvent(event ChangeHistoryAddSubgroupToGroupEvent) - HasVisitAddSubgroupToGroupEvent() bool + VisitDeleteGroupEvent(event ChangeHistoryDeleteGroupEvent) + HasVisitDeleteGroupEvent() bool // optional - VisitRemoveMemberFromGroupEvent(event ChangeHistoryRemoveMemberFromGroupEvent) - HasVisitRemoveMemberFromGroupEvent() bool + VisitAddGroupEvent(event ChangeHistoryAddGroupEvent) + HasVisitAddGroupEvent() bool } -// A concrete type wrapper for the [PChangeHistoryEventVisitor] protocol. -type ChangeHistoryEventVisitorWrapper struct { +// ensure impl type implements protocol interface +var _ PChangeHistoryEventVisitor = (*ChangeHistoryEventVisitorObject)(nil) + +// A concrete type for the [PChangeHistoryEventVisitor] protocol. +type ChangeHistoryEventVisitorObject struct { objc.Object } -func (c_ ChangeHistoryEventVisitorWrapper) HasVisitAddMemberToGroupEvent() bool { - return c_.RespondsToSelector(objc.Sel("visitAddMemberToGroupEvent:")) +func (c_ ChangeHistoryEventVisitorObject) HasVisitDropEverythingEvent() bool { + return c_.RespondsToSelector(objc.Sel("visitDropEverythingEvent:")) } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/contacts/cnchangehistoryeventvisitor/3113271-visitaddmembertogroupevent?language=objc -func (c_ ChangeHistoryEventVisitorWrapper) VisitAddMemberToGroupEvent(event IChangeHistoryAddMemberToGroupEvent) { - objc.Call[objc.Void](c_, objc.Sel("visitAddMemberToGroupEvent:"), objc.Ptr(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:"), objc.Ptr(event)) } -func (c_ ChangeHistoryEventVisitorWrapper) HasVisitDeleteContactEvent() bool { - return c_.RespondsToSelector(objc.Sel("visitDeleteContactEvent:")) +func (c_ ChangeHistoryEventVisitorObject) HasVisitAddMemberToGroupEvent() bool { + return c_.RespondsToSelector(objc.Sel("visitAddMemberToGroupEvent:")) } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/contacts/cnchangehistoryeventvisitor/3113273-visitdeletecontactevent?language=objc -func (c_ ChangeHistoryEventVisitorWrapper) VisitDeleteContactEvent(event IChangeHistoryDeleteContactEvent) { - objc.Call[objc.Void](c_, objc.Sel("visitDeleteContactEvent:"), objc.Ptr(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:"), objc.Ptr(event)) } -func (c_ ChangeHistoryEventVisitorWrapper) HasVisitAddContactEvent() bool { - return c_.RespondsToSelector(objc.Sel("visitAddContactEvent:")) +func (c_ ChangeHistoryEventVisitorObject) HasVisitRemoveSubgroupFromGroupEvent() bool { + return c_.RespondsToSelector(objc.Sel("visitRemoveSubgroupFromGroupEvent:")) } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/contacts/cnchangehistoryeventvisitor/3113269-visitaddcontactevent?language=objc -func (c_ ChangeHistoryEventVisitorWrapper) VisitAddContactEvent(event IChangeHistoryAddContactEvent) { - objc.Call[objc.Void](c_, objc.Sel("visitAddContactEvent:"), objc.Ptr(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:"), objc.Ptr(event)) } -func (c_ ChangeHistoryEventVisitorWrapper) HasVisitAddGroupEvent() bool { - return c_.RespondsToSelector(objc.Sel("visitAddGroupEvent:")) +func (c_ ChangeHistoryEventVisitorObject) HasVisitDeleteContactEvent() bool { + return c_.RespondsToSelector(objc.Sel("visitDeleteContactEvent:")) } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/contacts/cnchangehistoryeventvisitor/3113270-visitaddgroupevent?language=objc -func (c_ ChangeHistoryEventVisitorWrapper) VisitAddGroupEvent(event IChangeHistoryAddGroupEvent) { - objc.Call[objc.Void](c_, objc.Sel("visitAddGroupEvent:"), objc.Ptr(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:"), objc.Ptr(event)) } -func (c_ ChangeHistoryEventVisitorWrapper) 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_ ChangeHistoryEventVisitorWrapper) VisitDeleteGroupEvent(event IChangeHistoryDeleteGroupEvent) { - objc.Call[objc.Void](c_, objc.Sel("visitDeleteGroupEvent:"), objc.Ptr(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:"), objc.Ptr(event)) } -func (c_ ChangeHistoryEventVisitorWrapper) HasVisitRemoveSubgroupFromGroupEvent() bool { - return c_.RespondsToSelector(objc.Sel("visitRemoveSubgroupFromGroupEvent:")) +func (c_ ChangeHistoryEventVisitorObject) HasVisitUpdateGroupEvent() bool { + return c_.RespondsToSelector(objc.Sel("visitUpdateGroupEvent:")) } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/contacts/cnchangehistoryeventvisitor/3113277-visitremovesubgroupfromgroupeven?language=objc -func (c_ ChangeHistoryEventVisitorWrapper) VisitRemoveSubgroupFromGroupEvent(event IChangeHistoryRemoveSubgroupFromGroupEvent) { - objc.Call[objc.Void](c_, objc.Sel("visitRemoveSubgroupFromGroupEvent:"), objc.Ptr(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:"), objc.Ptr(event)) } -func (c_ ChangeHistoryEventVisitorWrapper) HasVisitUpdateContactEvent() bool { +func (c_ ChangeHistoryEventVisitorObject) HasVisitUpdateContactEvent() bool { return c_.RespondsToSelector(objc.Sel("visitUpdateContactEvent:")) } // [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/contacts/cnchangehistoryeventvisitor/3113278-visitupdatecontactevent?language=objc -func (c_ ChangeHistoryEventVisitorWrapper) VisitUpdateContactEvent(event IChangeHistoryUpdateContactEvent) { +func (c_ ChangeHistoryEventVisitorObject) VisitUpdateContactEvent(event ChangeHistoryUpdateContactEvent) { objc.Call[objc.Void](c_, objc.Sel("visitUpdateContactEvent:"), objc.Ptr(event)) } -func (c_ ChangeHistoryEventVisitorWrapper) HasVisitDropEverythingEvent() bool { - return c_.RespondsToSelector(objc.Sel("visitDropEverythingEvent:")) +func (c_ ChangeHistoryEventVisitorObject) HasVisitRemoveMemberFromGroupEvent() bool { + return c_.RespondsToSelector(objc.Sel("visitRemoveMemberFromGroupEvent:")) } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/contacts/cnchangehistoryeventvisitor/3113275-visitdropeverythingevent?language=objc -func (c_ ChangeHistoryEventVisitorWrapper) VisitDropEverythingEvent(event IChangeHistoryDropEverythingEvent) { - objc.Call[objc.Void](c_, objc.Sel("visitDropEverythingEvent:"), objc.Ptr(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:"), objc.Ptr(event)) } -func (c_ ChangeHistoryEventVisitorWrapper) HasVisitUpdateGroupEvent() bool { - return c_.RespondsToSelector(objc.Sel("visitUpdateGroupEvent:")) +func (c_ ChangeHistoryEventVisitorObject) HasVisitAddContactEvent() bool { + return c_.RespondsToSelector(objc.Sel("visitAddContactEvent:")) } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/contacts/cnchangehistoryeventvisitor/3113279-visitupdategroupevent?language=objc -func (c_ ChangeHistoryEventVisitorWrapper) VisitUpdateGroupEvent(event IChangeHistoryUpdateGroupEvent) { - objc.Call[objc.Void](c_, objc.Sel("visitUpdateGroupEvent:"), objc.Ptr(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:"), objc.Ptr(event)) } -func (c_ ChangeHistoryEventVisitorWrapper) 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_ ChangeHistoryEventVisitorWrapper) VisitAddSubgroupToGroupEvent(event IChangeHistoryAddSubgroupToGroupEvent) { - objc.Call[objc.Void](c_, objc.Sel("visitAddSubgroupToGroupEvent:"), objc.Ptr(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:"), objc.Ptr(event)) } -func (c_ ChangeHistoryEventVisitorWrapper) HasVisitRemoveMemberFromGroupEvent() bool { - return c_.RespondsToSelector(objc.Sel("visitRemoveMemberFromGroupEvent:")) +func (c_ ChangeHistoryEventVisitorObject) HasVisitAddGroupEvent() bool { + return c_.RespondsToSelector(objc.Sel("visitAddGroupEvent:")) } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/contacts/cnchangehistoryeventvisitor/3113276-visitremovememberfromgroupevent?language=objc -func (c_ ChangeHistoryEventVisitorWrapper) VisitRemoveMemberFromGroupEvent(event IChangeHistoryRemoveMemberFromGroupEvent) { - objc.Call[objc.Void](c_, objc.Sel("visitRemoveMemberFromGroupEvent:"), objc.Ptr(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:"), objc.Ptr(event)) } diff --git a/macos/contacts/change_history_fetch_request.gen.go b/macos/contacts/change_history_fetch_request.gen.go index d1568cd3..a9beb695 100644 --- a/macos/contacts/change_history_fetch_request.gen.go +++ b/macos/contacts/change_history_fetch_request.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package contacts @@ -20,16 +20,16 @@ type IChangeHistoryFetchRequest interface { IFetchRequest MutableObjects() bool SetMutableObjects(value bool) - 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) + AdditionalContactKeyDescriptors() []objc.Object + SetAdditionalContactKeyDescriptors(value []objc.IObject) + ExcludedTransactionAuthors() []string + SetExcludedTransactionAuthors(value []string) + StartingToken() []byte + SetStartingToken(value []byte) } // [Full Topic] @@ -50,10 +50,6 @@ func (cc _ChangeHistoryFetchRequestClass) Alloc() ChangeHistoryFetchRequest { return rv } -func ChangeHistoryFetchRequest_Alloc() ChangeHistoryFetchRequest { - return ChangeHistoryFetchRequestClass.Alloc() -} - func (cc _ChangeHistoryFetchRequestClass) New() ChangeHistoryFetchRequest { rv := objc.Call[ChangeHistoryFetchRequest](cc, objc.Sel("new")) rv.Autorelease() @@ -84,21 +80,6 @@ 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 @@ -116,17 +97,17 @@ func (c_ ChangeHistoryFetchRequest) SetShouldUnifyResults(value bool) { // [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) } // [Full Topic] @@ -146,15 +127,30 @@ func (c_ ChangeHistoryFetchRequest) SetAdditionalContactKeyDescriptors(value []o // [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/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/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/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")) + 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) } 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 e571f5bf..c83cb391 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 @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package contacts @@ -18,8 +18,8 @@ type _ChangeHistoryRemoveMemberFromGroupEventClass struct { // An interface definition for the [ChangeHistoryRemoveMemberFromGroupEvent] class. type IChangeHistoryRemoveMemberFromGroupEvent interface { IChangeHistoryEvent - Member() Contact Group() Group + Member() Contact } // [Full Topic] @@ -40,10 +40,6 @@ func (cc _ChangeHistoryRemoveMemberFromGroupEventClass) Alloc() ChangeHistoryRem return rv } -func ChangeHistoryRemoveMemberFromGroupEvent_Alloc() ChangeHistoryRemoveMemberFromGroupEvent { - return ChangeHistoryRemoveMemberFromGroupEventClass.Alloc() -} - func (cc _ChangeHistoryRemoveMemberFromGroupEventClass) New() ChangeHistoryRemoveMemberFromGroupEvent { rv := objc.Call[ChangeHistoryRemoveMemberFromGroupEvent](cc, objc.Sel("new")) rv.Autorelease() @@ -61,16 +57,16 @@ func (c_ ChangeHistoryRemoveMemberFromGroupEvent) Init() ChangeHistoryRemoveMemb // [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 } // [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 } diff --git a/macos/contacts/change_history_remove_subgroup_from_group_event.gen.go b/macos/contacts/change_history_remove_subgroup_from_group_event.gen.go index 3bbbaf4f..84def83b 100644 --- a/macos/contacts/change_history_remove_subgroup_from_group_event.gen.go +++ b/macos/contacts/change_history_remove_subgroup_from_group_event.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package contacts @@ -40,10 +40,6 @@ func (cc _ChangeHistoryRemoveSubgroupFromGroupEventClass) Alloc() ChangeHistoryR return rv } -func ChangeHistoryRemoveSubgroupFromGroupEvent_Alloc() ChangeHistoryRemoveSubgroupFromGroupEvent { - return ChangeHistoryRemoveSubgroupFromGroupEventClass.Alloc() -} - func (cc _ChangeHistoryRemoveSubgroupFromGroupEventClass) New() ChangeHistoryRemoveSubgroupFromGroupEvent { rv := objc.Call[ChangeHistoryRemoveSubgroupFromGroupEvent](cc, objc.Sel("new")) rv.Autorelease() diff --git a/macos/contacts/change_history_update_contact_event.gen.go b/macos/contacts/change_history_update_contact_event.gen.go index 3539d4b9..86667c1c 100644 --- a/macos/contacts/change_history_update_contact_event.gen.go +++ b/macos/contacts/change_history_update_contact_event.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package contacts @@ -39,10 +39,6 @@ func (cc _ChangeHistoryUpdateContactEventClass) Alloc() ChangeHistoryUpdateConta return rv } -func ChangeHistoryUpdateContactEvent_Alloc() ChangeHistoryUpdateContactEvent { - return ChangeHistoryUpdateContactEventClass.Alloc() -} - func (cc _ChangeHistoryUpdateContactEventClass) New() ChangeHistoryUpdateContactEvent { rv := objc.Call[ChangeHistoryUpdateContactEvent](cc, objc.Sel("new")) rv.Autorelease() diff --git a/macos/contacts/change_history_update_group_event.gen.go b/macos/contacts/change_history_update_group_event.gen.go index 6251652f..43c030e8 100644 --- a/macos/contacts/change_history_update_group_event.gen.go +++ b/macos/contacts/change_history_update_group_event.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package contacts @@ -39,10 +39,6 @@ func (cc _ChangeHistoryUpdateGroupEventClass) Alloc() ChangeHistoryUpdateGroupEv return rv } -func ChangeHistoryUpdateGroupEvent_Alloc() ChangeHistoryUpdateGroupEvent { - return ChangeHistoryUpdateGroupEventClass.Alloc() -} - func (cc _ChangeHistoryUpdateGroupEventClass) New() ChangeHistoryUpdateGroupEvent { rv := objc.Call[ChangeHistoryUpdateGroupEvent](cc, objc.Sel("new")) rv.Autorelease() diff --git a/macos/contacts/contact.gen.go b/macos/contacts/contact.gen.go index b0e39a97..856cdc40 100644 --- a/macos/contacts/contact.gen.go +++ b/macos/contacts/contact.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package contacts @@ -20,38 +20,38 @@ type _ContactClass struct { type IContact interface { objc.IObject IsUnifiedWithContactWithIdentifier(contactIdentifier string) bool - IsKeyAvailable(key string) bool AreKeysAvailable(keyDescriptors []objc.IObject) bool - Dates() []LabeledValue - PhoneNumbers() []LabeledValue - PreviousFamilyName() string - PhoneticOrganizationName() string - ContactType() ContactType + IsKeyAvailable(key string) bool + DepartmentName() string + PostalAddresses() []LabeledValue ThumbnailImageData() []byte + PhoneNumbers() []LabeledValue + NameSuffix() string + PhoneticFamilyName() string + ImageData() []byte PhoneticGivenName() string - PhoneticMiddleName() string NamePrefix() string - PostalAddresses() []LabeledValue + Birthday() foundation.DateComponents + JobTitle() string + PreviousFamilyName() string + ImageDataAvailable() bool + UrlAddresses() []LabeledValue NonGregorianBirthday() foundation.DateComponents + Nickname() string + PhoneticOrganizationName() string ContactRelations() []LabeledValue - Birthday() foundation.DateComponents - ImageData() []byte Note() string MiddleName() string - JobTitle() string + ContactType() ContactType GivenName() string - EmailAddresses() []LabeledValue - InstantMessageAddresses() []LabeledValue - UrlAddresses() []LabeledValue - ImageDataAvailable() bool - OrganizationName() string - NameSuffix() string - DepartmentName() string - PhoneticFamilyName() string SocialProfiles() []LabeledValue - FamilyName() string + PhoneticMiddleName() string Identifier() string - Nickname() string + InstantMessageAddresses() []LabeledValue + FamilyName() string + EmailAddresses() []LabeledValue + OrganizationName() string + Dates() []LabeledValue } // An immutable object that stores information about a single contact, such as the contact's first name, phone numbers, and addresses. [Full Topic] @@ -72,10 +72,6 @@ func (cc _ContactClass) Alloc() Contact { return rv } -func Contact_Alloc() Contact { - return ContactClass.Alloc() -} - func (cc _ContactClass) New() Contact { rv := objc.Call[Contact](cc, objc.Sel("new")) rv.Autorelease() @@ -91,36 +87,6 @@ func (c_ Contact) Init() Contact { 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 (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 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 comparator to sort contacts with the specified order. [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) -} - // 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/1403218-isunifiedwithcontactwithidentifi?language=objc @@ -129,29 +95,6 @@ func (c_ Contact) IsUnifiedWithContactWithIdentifier(contactIdentifier string) b return rv } -// Determines whether the contact property value for the specified key is fetched. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/contacts/cncontact/1403210-iskeyavailable?language=objc -func (c_ Contact) IsKeyAvailable(key string) bool { - rv := objc.Call[bool](c_, objc.Sel("isKeyAvailable:"), key) - 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 @@ -167,6 +110,22 @@ func Contact_PredicateForContactsMatchingPhoneNumber(phoneNumber IPhoneNumber) f return ContactClass.PredicateForContactsMatchingPhoneNumber(phoneNumber) } +// Determines whether all contact property values for the specified keys are fetched. [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) + return rv +} + +// Determines whether the contact property value for the specified key is fetched. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/contacts/cncontact/1403210-iskeyavailable?language=objc +func (c_ Contact) IsKeyAvailable(key string) bool { + rv := objc.Call[bool](c_, objc.Sel("isKeyAvailable:"), key) + return rv +} + // 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 @@ -182,6 +141,21 @@ 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 @@ -197,6 +171,21 @@ 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 @@ -212,27 +201,34 @@ func Contact_PredicateForContactsMatchingName(name string) foundation.Predicate return ContactClass.PredicateForContactsMatchingName(name) } -// Determines whether all contact property values for the specified keys are fetched. [Full Topic] +// Returns a predicate to find the contacts in the specified container. [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/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 string containing the localized contact property name. [Full Topic] +// Returns a predicate to find the contacts in the specified container. [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) +// [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] +// +// [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 string containing the localized contact property name. [Full Topic] +// Returns a comparator to sort contacts with the specified order. [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) +// [Full Topic]: https://developer.apple.com/documentation/contacts/cncontact/1403401-comparatorfornamesortorder?language=objc +func Contact_ComparatorForNameSortOrder(sortOrder ContactSortOrder) foundation.Comparator { + return ContactClass.ComparatorForNameSortOrder(sortOrder) } // Returns a predicate to find the contacts matching the specified identifiers. [Full Topic] @@ -250,67 +246,67 @@ func Contact_PredicateForContactsWithIdentifiers(identifiers []string) foundatio return ContactClass.PredicateForContactsWithIdentifiers(identifiers) } -// An array containing labeled Gregorian dates. [Full Topic] +// The name of the department associated with 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/1403232-departmentname?language=objc +func (c_ Contact) DepartmentName() string { + rv := objc.Call[string](c_, objc.Sel("departmentName")) return rv } -// An array of labeled phone numbers 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/1403305-phonenumbers?language=objc -func (c_ Contact) PhoneNumbers() []LabeledValue { - rv := objc.Call[[]LabeledValue](c_, objc.Sel("phoneNumbers")) +// [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 } -// A string for the previous family name 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/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/1402903-thumbnailimagedata?language=objc +func (c_ Contact) ThumbnailImageData() []byte { + rv := objc.Call[[]byte](c_, objc.Sel("thumbnailImageData")) return rv } -// The phonetic name of the organization associated with the contact. [Full Topic] +// An array of labeled phone numbers for a 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/1403305-phonenumbers?language=objc +func (c_ Contact) PhoneNumbers() []LabeledValue { + rv := objc.Call[[]LabeledValue](c_, objc.Sel("phoneNumbers")) return rv } -// An enum identifying the contact type. [Full Topic] +// The name suffix of the contact. [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/1402817-namesuffix?language=objc +func (c_ Contact) NameSuffix() string { + rv := objc.Call[string](c_, objc.Sel("nameSuffix")) return rv } -// The thumbnail version of the contact’s profile picture. [Full Topic] +// A string for the phonetic family name of the contact. [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/1403186-phoneticfamilyname?language=objc +func (c_ Contact) PhoneticFamilyName() string { + rv := objc.Call[string](c_, objc.Sel("phoneticFamilyName")) return rv } -// The phonetic given name of the contact. [Full Topic] +// The profile picture of a 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/1402968-imagedata?language=objc +func (c_ Contact) ImageData() []byte { + rv := objc.Call[[]byte](c_, objc.Sel("imageData")) return rv } -// The phonetic middle name of the contact. [Full Topic] +// The phonetic given 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")) +// [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 } @@ -322,147 +318,139 @@ func (c_ Contact) NamePrefix() string { 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 -} - -// A date component for the non-Gregorian birthday of 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/1403425-nongregorianbirthday?language=objc -func (c_ Contact) NonGregorianBirthday() foundation.DateComponents { - rv := objc.Call[foundation.DateComponents](c_, objc.Sel("nonGregorianBirthday")) +// [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 contact’s job title. [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/1403151-jobtitle?language=objc +func (c_ Contact) JobTitle() string { + rv := objc.Call[string](c_, objc.Sel("jobTitle")) return rv } -// A date component for the Gregorian birthday of the contact. [Full Topic] +// A string for the previous family name of the contact. [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/1402878-previousfamilyname?language=objc +func (c_ Contact) PreviousFamilyName() string { + rv := objc.Call[string](c_, objc.Sel("previousFamilyName")) return rv } -// The profile picture of a contact. [Full Topic] +// A Boolean indicating whether a contact has a profile picture. [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/1614589-imagedataavailable?language=objc +func (c_ Contact) ImageDataAvailable() bool { + rv := objc.Call[bool](c_, objc.Sel("imageDataAvailable")) return rv } -// A string containing notes for the contact. [Full Topic] +// An array of labeled URL addresses for a contact. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/contacts/cncontact/1402800-note?language=objc -func (c_ Contact) Note() string { - rv := objc.Call[string](c_, objc.Sel("note")) +// [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 } -// 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/cncontact/1403040-middlename?language=objc -func (c_ Contact) MiddleName() string { - rv := objc.Call[string](c_, objc.Sel("middleName")) +// [Full Topic]: https://developer.apple.com/documentation/contacts/cncontact/1403425-nongregorianbirthday?language=objc +func (c_ Contact) NonGregorianBirthday() foundation.DateComponents { + rv := objc.Call[foundation.DateComponents](c_, objc.Sel("nonGregorianBirthday")) return rv } -// The contact’s job title. [Full Topic] +// The nickname 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/1403299-nickname?language=objc +func (c_ Contact) Nickname() string { + rv := objc.Call[string](c_, objc.Sel("nickname")) return rv } -// 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/cncontact/1403313-givenname?language=objc -func (c_ Contact) GivenName() string { - rv := objc.Call[string](c_, objc.Sel("givenName")) +// [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 } -// An array of labeled email addresses for the contact. [Full Topic] +// An array of labeled relations for the contact. [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/1402998-contactrelations?language=objc +func (c_ Contact) ContactRelations() []LabeledValue { + rv := objc.Call[[]LabeledValue](c_, objc.Sel("contactRelations")) return rv } -// An array of labeled IM addresses for the contact. [Full Topic] +// A string containing notes for the contact. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/contacts/cncontact/1403147-instantmessageaddresses?language=objc -func (c_ Contact) InstantMessageAddresses() []LabeledValue { - rv := objc.Call[[]LabeledValue](c_, objc.Sel("instantMessageAddresses")) +// [Full Topic]: https://developer.apple.com/documentation/contacts/cncontact/1402800-note?language=objc +func (c_ Contact) Note() string { + rv := objc.Call[string](c_, objc.Sel("note")) return rv } -// An array of labeled URL addresses for a contact. [Full Topic] +// The middle name of the 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/1403040-middlename?language=objc +func (c_ Contact) MiddleName() string { + rv := objc.Call[string](c_, objc.Sel("middleName")) return rv } -// A Boolean indicating whether a contact has a profile picture. [Full Topic] +// An enum identifying the contact type. [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/1403119-contacttype?language=objc +func (c_ Contact) ContactType() ContactType { + rv := objc.Call[ContactType](c_, objc.Sel("contactType")) return rv } -// The name of the organization associated with the contact. [Full Topic] +// The given name of the contact. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/contacts/cncontact/1403182-organizationname?language=objc -func (c_ Contact) OrganizationName() string { - rv := objc.Call[string](c_, objc.Sel("organizationName")) +// [Full Topic]: https://developer.apple.com/documentation/contacts/cncontact/1403313-givenname?language=objc +func (c_ Contact) GivenName() string { + rv := objc.Call[string](c_, objc.Sel("givenName")) return rv } -// The name suffix of the contact. [Full Topic] +// An array of labeled social profiles for a 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")) +// [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 name of the department associated with the contact. [Full Topic] +// The phonetic middle name of 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")) +// [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 string for the phonetic family name of the contact. [Full Topic] +// A value that uniquely identifies a contact on the device. [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")) +// [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 } -// An array of labeled social profiles for a contact. [Full Topic] +// An array of labeled IM addresses for the 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")) +// [Full Topic]: https://developer.apple.com/documentation/contacts/cncontact/1403147-instantmessageaddresses?language=objc +func (c_ Contact) InstantMessageAddresses() []LabeledValue { + rv := objc.Call[[]LabeledValue](c_, objc.Sel("instantMessageAddresses")) return rv } @@ -474,18 +462,26 @@ func (c_ Contact) FamilyName() string { 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 } -// The nickname of the contact. [Full Topic] +// The name of the organization associated with 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/1403182-organizationname?language=objc +func (c_ Contact) OrganizationName() string { + rv := objc.Call[string](c_, objc.Sel("organizationName")) + return rv +} + +// An array containing labeled Gregorian dates. [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")) return rv } diff --git a/macos/contacts/contact_fetch_request.gen.go b/macos/contacts/contact_fetch_request.gen.go index e66e782a..b0ebfdf8 100644 --- a/macos/contacts/contact_fetch_request.gen.go +++ b/macos/contacts/contact_fetch_request.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package contacts @@ -19,16 +19,16 @@ type _ContactFetchRequestClass struct { // An interface definition for the [ContactFetchRequest] class. type IContactFetchRequest interface { IFetchRequest - MutableObjects() bool - SetMutableObjects(value bool) - KeysToFetch() []objc.Object - SetKeysToFetch(value []objc.IObject) + UnifyResults() bool + SetUnifyResults(value bool) SortOrder() ContactSortOrder SetSortOrder(value ContactSortOrder) Predicate() foundation.Predicate SetPredicate(value foundation.IPredicate) - UnifyResults() bool - SetUnifyResults(value bool) + KeysToFetch() []objc.Object + SetKeysToFetch(value []objc.IObject) + MutableObjects() bool + SetMutableObjects(value bool) } // An object that defines the options to use when fetching contacts. [Full Topic] @@ -63,10 +63,6 @@ func (cc _ContactFetchRequestClass) Alloc() ContactFetchRequest { return rv } -func ContactFetchRequest_Alloc() ContactFetchRequest { - return ContactFetchRequestClass.Alloc() -} - func (cc _ContactFetchRequestClass) New() ContactFetchRequest { rv := objc.Call[ContactFetchRequest](cc, objc.Sel("new")) rv.Autorelease() @@ -82,34 +78,19 @@ func (c_ ContactFetchRequest) Init() ContactFetchRequest { return rv } -// A Boolean value that indicates whether to return mutable 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")) - return rv -} - -// A Boolean value that indicates whether to return mutable 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) -} - -// The properties to fetch in the returned 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/1403360-keystofetch?language=objc -func (c_ ContactFetchRequest) KeysToFetch() []objc.Object { - rv := objc.Call[[]objc.Object](c_, objc.Sel("keysToFetch")) +// [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 } -// The properties to fetch in the returned 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/1403360-keystofetch?language=objc -func (c_ ContactFetchRequest) SetKeysToFetch(value []objc.IObject) { - objc.Call[objc.Void](c_, objc.Sel("setKeysToFetch:"), 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) } // The sort order for contacts. [Full Topic] @@ -142,17 +123,32 @@ func (c_ ContactFetchRequest) SetPredicate(value foundation.IPredicate) { objc.Call[objc.Void](c_, objc.Sel("setPredicate:"), objc.Ptr(value)) } -// A Boolean value that indicates whether to return linked contacts as unified contacts. [Full Topic] +// The properties to fetch in the returned 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/1403360-keystofetch?language=objc +func (c_ ContactFetchRequest) KeysToFetch() []objc.Object { + rv := objc.Call[[]objc.Object](c_, objc.Sel("keysToFetch")) return rv } -// A Boolean value that indicates whether to return linked contacts as unified contacts. [Full Topic] +// The properties to fetch in the returned 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/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] +// +// [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 mutable 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) } diff --git a/macos/contacts/contact_formatter.gen.go b/macos/contacts/contact_formatter.gen.go index fa496d52..644695ae 100644 --- a/macos/contacts/contact_formatter.gen.go +++ b/macos/contacts/contact_formatter.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package contacts @@ -43,10 +43,6 @@ func (cc _ContactFormatterClass) Alloc() ContactFormatter { return rv } -func ContactFormatter_Alloc() ContactFormatter { - return ContactFormatterClass.Alloc() -} - func (cc _ContactFormatterClass) New() ContactFormatter { rv := objc.Call[ContactFormatter](cc, objc.Sel("new")) rv.Autorelease() @@ -62,6 +58,21 @@ 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:"), objc.Ptr(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 @@ -70,6 +81,29 @@ 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:"), objc.Ptr(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:"), objc.Ptr(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 @@ -85,57 +119,49 @@ func ContactFormatter_DescriptorForRequiredKeysForStyle(style ContactFormatterSt return ContactFormatterClass.DescriptorForRequiredKeysForStyle(style) } -// Returns the display name order. [Full Topic] +// Formats the contact name as an attributed string. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/contacts/cncontactformatter/1397731-nameorderforcontact?language=objc -func (cc _ContactFormatterClass) NameOrderForContact(contact IContact) ContactDisplayNameOrder { - rv := objc.Call[ContactDisplayNameOrder](cc, objc.Sel("nameOrderForContact:"), objc.Ptr(contact)) +// [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:"), objc.Ptr(contact), style, attributes) return rv } -// Returns the display name order. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/contacts/cncontactformatter/1397731-nameorderforcontact?language=objc -func ContactFormatter_NameOrderForContact(contact IContact) ContactDisplayNameOrder { - return ContactFormatterClass.NameOrderForContact(contact) -} - // 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:"), objc.Ptr(contact), attributes) - return rv +// [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 delimiter to use between name components. [Full Topic] +// Returns the display name order. [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:"), objc.Ptr(contact)) +// [Full Topic]: https://developer.apple.com/documentation/contacts/cncontactformatter/1397731-nameorderforcontact?language=objc +func (cc _ContactFormatterClass) NameOrderForContact(contact IContact) ContactDisplayNameOrder { + rv := objc.Call[ContactDisplayNameOrder](cc, objc.Sel("nameOrderForContact:"), objc.Ptr(contact)) return rv } -// Returns the delimiter to use between name components. [Full Topic] +// Returns the display name order. [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) +// [Full Topic]: https://developer.apple.com/documentation/contacts/cncontactformatter/1397731-nameorderforcontact?language=objc +func ContactFormatter_NameOrderForContact(contact IContact) ContactDisplayNameOrder { + return ContactFormatterClass.NameOrderForContact(contact) } -// 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() } // [Full Topic] @@ -153,17 +179,17 @@ func ContactFormatter_DescriptorForRequiredKeysForNameOrder() objc.Object { return ContactFormatterClass.DescriptorForRequiredKeysForNameOrder() } -// [Full Topic] +// The formatting style for the contact name. [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/1397758-style?language=objc +func (c_ ContactFormatter) Style() ContactFormatterStyle { + rv := objc.Call[ContactFormatterStyle](c_, objc.Sel("style")) return rv } -// [Full Topic] +// The formatting style for the contact name. [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/1397758-style?language=objc +func (c_ ContactFormatter) SetStyle(value ContactFormatterStyle) { + objc.Call[objc.Void](c_, objc.Sel("setStyle:"), value) } diff --git a/macos/contacts/contact_property.gen.go b/macos/contacts/contact_property.gen.go index c3a1b2c0..b5ecd7bb 100644 --- a/macos/contacts/contact_property.gen.go +++ b/macos/contacts/contact_property.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package contacts @@ -20,9 +20,9 @@ type IContactProperty interface { objc.IObject Key() string Value() objc.Object - Contact() Contact - Label() string Identifier() string + Label() string + Contact() Contact } // An object that represents a property of a contact. [Full Topic] @@ -43,10 +43,6 @@ func (cc _ContactPropertyClass) Alloc() ContactProperty { return rv } -func ContactProperty_Alloc() ContactProperty { - return ContactPropertyClass.Alloc() -} - func (cc _ContactPropertyClass) New() ContactProperty { rv := objc.Call[ContactProperty](cc, objc.Sel("new")) rv.Autorelease() @@ -78,11 +74,11 @@ func (c_ ContactProperty) Value() objc.Object { 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 } @@ -94,10 +90,10 @@ func (c_ ContactProperty) Label() string { 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 } diff --git a/macos/contacts/contact_relation.gen.go b/macos/contacts/contact_relation.gen.go index c7cfe956..9b02b6e2 100644 --- a/macos/contacts/contact_relation.gen.go +++ b/macos/contacts/contact_relation.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package contacts @@ -34,6 +34,18 @@ 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 @@ -48,27 +60,11 @@ 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 } -func ContactRelation_Alloc() ContactRelation { - return ContactRelationClass.Alloc() -} - func (cc _ContactRelationClass) New() ContactRelation { rv := objc.Call[ContactRelation](cc, objc.Sel("new")) rv.Autorelease() diff --git a/macos/contacts/contact_store.gen.go b/macos/contacts/contact_store.gen.go index e67f384c..5aa4b4ac 100644 --- a/macos/contacts/contact_store.gen.go +++ b/macos/contacts/contact_store.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package contacts @@ -19,17 +19,17 @@ type _ContactStoreClass struct { // An interface definition for the [ContactStore] class. type IContactStore interface { objc.IObject - EnumerateContactsWithFetchRequestErrorUsingBlock(fetchRequest IContactFetchRequest, error foundation.IError, block func(contact Contact, stop *bool)) bool - RequestAccessForEntityTypeCompletionHandler(entityType EntityType, completionHandler func(granted bool, error foundation.Error)) UnifiedContactWithIdentifierKeysToFetchError(identifier string, keys []objc.IObject, error foundation.IError) Contact - EnumeratorForContactFetchRequestError(request IContactFetchRequest, error foundation.IError) FetchResult - ContainersMatchingPredicateError(predicate foundation.IPredicate, error foundation.IError) []Container + RequestAccessForEntityTypeCompletionHandler(entityType EntityType, completionHandler func(granted bool, error foundation.Error)) ExecuteSaveRequestError(saveRequest ISaveRequest, error foundation.IError) bool - EnumeratorForChangeHistoryFetchRequestError(request IChangeHistoryFetchRequest, error foundation.IError) FetchResult - GroupsMatchingPredicateError(predicate foundation.IPredicate, error foundation.IError) []Group DefaultContainerIdentifier() string - UnifiedMeContactWithKeysToFetchError(keys []objc.IObject, error foundation.IError) Contact + EnumeratorForContactFetchRequestError(request IContactFetchRequest, error foundation.IError) FetchResult + ContainersMatchingPredicateError(predicate foundation.IPredicate, error foundation.IError) []Container + EnumerateContactsWithFetchRequestErrorUsingBlock(fetchRequest IContactFetchRequest, error foundation.IError, block func(contact Contact, stop *bool)) bool UnifiedContactsMatchingPredicateKeysToFetchError(predicate foundation.IPredicate, keys []objc.IObject, error foundation.IError) []Contact + UnifiedMeContactWithKeysToFetchError(keys []objc.IObject, error foundation.IError) Contact + GroupsMatchingPredicateError(predicate foundation.IPredicate, error foundation.IError) []Group + EnumeratorForChangeHistoryFetchRequestError(request IChangeHistoryFetchRequest, error foundation.IError) FetchResult CurrentHistoryToken() []byte } @@ -51,10 +51,6 @@ func (cc _ContactStoreClass) Alloc() ContactStore { return rv } -func ContactStore_Alloc() ContactStore { - return ContactStoreClass.Alloc() -} - func (cc _ContactStoreClass) New() ContactStore { rv := objc.Call[ContactStore](cc, objc.Sel("new")) rv.Autorelease() @@ -70,11 +66,11 @@ func (c_ ContactStore) Init() ContactStore { return rv } -// Returns a Boolean value that indicates whether the enumeration of all contacts matching a contact fetch request executes successfully. [Full Topic] +// Fetches a unified contact for the specified contact identifier. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/contacts/cncontactstore/1402849-enumeratecontactswithfetchreques?language=objc -func (c_ ContactStore) EnumerateContactsWithFetchRequestErrorUsingBlock(fetchRequest IContactFetchRequest, error foundation.IError, block func(contact Contact, stop *bool)) bool { - rv := objc.Call[bool](c_, objc.Sel("enumerateContactsWithFetchRequest:error:usingBlock:"), objc.Ptr(fetchRequest), objc.Ptr(error), block) +// [Full Topic]: https://developer.apple.com/documentation/contacts/cncontactstore/1403256-unifiedcontactwithidentifier?language=objc +func (c_ ContactStore) UnifiedContactWithIdentifierKeysToFetchError(identifier string, keys []objc.IObject, error foundation.IError) Contact { + rv := objc.Call[Contact](c_, objc.Sel("unifiedContactWithIdentifier:keysToFetch:error:"), identifier, keys, objc.Ptr(error)) return rv } @@ -85,11 +81,34 @@ func (c_ ContactStore) RequestAccessForEntityTypeCompletionHandler(entityType En objc.Call[objc.Void](c_, objc.Sel("requestAccessForEntityType:completionHandler:"), entityType, completionHandler) } -// Fetches a unified contact for the specified contact identifier. [Full Topic] +// Executes a save request and returns success or failure. [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 foundation.IError) Contact { - rv := objc.Call[Contact](c_, objc.Sel("unifiedContactWithIdentifier:keysToFetch:error:"), identifier, keys, objc.Ptr(error)) +// [Full Topic]: https://developer.apple.com/documentation/contacts/cncontactstore/1403230-executesaverequest?language=objc +func (c_ ContactStore) ExecuteSaveRequestError(saveRequest ISaveRequest, error foundation.IError) bool { + rv := objc.Call[bool](c_, objc.Sel("executeSaveRequest:error:"), objc.Ptr(saveRequest), objc.Ptr(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] +// +// [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 } @@ -109,37 +128,30 @@ func (c_ ContactStore) ContainersMatchingPredicateError(predicate foundation.IPr return rv } -// Executes a save request and returns success or failure. [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/1403230-executesaverequest?language=objc -func (c_ ContactStore) ExecuteSaveRequestError(saveRequest ISaveRequest, error foundation.IError) bool { - rv := objc.Call[bool](c_, objc.Sel("executeSaveRequest:error:"), objc.Ptr(saveRequest), objc.Ptr(error)) +// [Full Topic]: https://developer.apple.com/documentation/contacts/cncontactstore/1402849-enumeratecontactswithfetchreques?language=objc +func (c_ ContactStore) EnumerateContactsWithFetchRequestErrorUsingBlock(fetchRequest IContactFetchRequest, error foundation.IError, block func(contact Contact, stop *bool)) bool { + rv := objc.Call[bool](c_, objc.Sel("enumerateContactsWithFetchRequest:error:usingBlock:"), objc.Ptr(fetchRequest), objc.Ptr(error), block) return rv } -// Enumerates a change history fetch request. [Full Topic] +// Fetches all unified contacts matching the specified predicate. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/contacts/cncontactstore/3294190-enumeratorforchangehistoryfetchr?language=objc -func (c_ ContactStore) EnumeratorForChangeHistoryFetchRequestError(request IChangeHistoryFetchRequest, error foundation.IError) FetchResult { - rv := objc.Call[FetchResult](c_, objc.Sel("enumeratorForChangeHistoryFetchRequest:error:"), objc.Ptr(request), objc.Ptr(error)) +// [Full Topic]: https://developer.apple.com/documentation/contacts/cncontactstore/1403266-unifiedcontactsmatchingpredicate?language=objc +func (c_ ContactStore) UnifiedContactsMatchingPredicateKeysToFetchError(predicate foundation.IPredicate, keys []objc.IObject, error foundation.IError) []Contact { + rv := objc.Call[[]Contact](c_, objc.Sel("unifiedContactsMatchingPredicate:keysToFetch:error:"), objc.Ptr(predicate), keys, objc.Ptr(error)) return rv } -// Returns the current authorization status to access the contact data. [Full Topic] +// Fetches the unified contact that’s the me card. [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) +// [Full Topic]: https://developer.apple.com/documentation/contacts/cncontactstore/1402987-unifiedmecontactwithkeystofetch?language=objc +func (c_ ContactStore) UnifiedMeContactWithKeysToFetchError(keys []objc.IObject, error foundation.IError) Contact { + rv := objc.Call[Contact](c_, objc.Sel("unifiedMeContactWithKeysToFetch:error:"), keys, objc.Ptr(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 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 @@ -148,27 +160,11 @@ func (c_ ContactStore) GroupsMatchingPredicateError(predicate foundation.IPredic return rv } -// Returns the identifier of the default container. [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")) - 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 foundation.IError) Contact { - rv := objc.Call[Contact](c_, objc.Sel("unifiedMeContactWithKeysToFetch:error:"), keys, objc.Ptr(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 foundation.IError) []Contact { - rv := objc.Call[[]Contact](c_, objc.Sel("unifiedContactsMatchingPredicate:keysToFetch:error:"), objc.Ptr(predicate), keys, objc.Ptr(error)) +// [Full Topic]: https://developer.apple.com/documentation/contacts/cncontactstore/3294190-enumeratorforchangehistoryfetchr?language=objc +func (c_ ContactStore) EnumeratorForChangeHistoryFetchRequestError(request IChangeHistoryFetchRequest, error foundation.IError) FetchResult { + rv := objc.Call[FetchResult](c_, objc.Sel("enumeratorForChangeHistoryFetchRequest:error:"), objc.Ptr(request), objc.Ptr(error)) return rv } diff --git a/macos/contacts/contact_v_card_serialization.gen.go b/macos/contacts/contact_v_card_serialization.gen.go index aa23a19b..33291285 100644 --- a/macos/contacts/contact_v_card_serialization.gen.go +++ b/macos/contacts/contact_v_card_serialization.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package contacts @@ -39,10 +39,6 @@ func (cc _ContactVCardSerializationClass) Alloc() ContactVCardSerialization { return rv } -func ContactVCardSerialization_Alloc() ContactVCardSerialization { - return ContactVCardSerializationClass.Alloc() -} - func (cc _ContactVCardSerializationClass) New() ContactVCardSerialization { rv := objc.Call[ContactVCardSerialization](cc, objc.Sel("new")) rv.Autorelease() @@ -58,21 +54,6 @@ 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 @@ -102,3 +83,18 @@ func (cc _ContactVCardSerializationClass) ContactsWithDataError(data []byte, err func ContactVCardSerialization_ContactsWithDataError(data []byte, error foundation.IError) []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/contacts_user_defaults.gen.go b/macos/contacts/contacts_user_defaults.gen.go index 08075748..99f2c038 100644 --- a/macos/contacts/contacts_user_defaults.gen.go +++ b/macos/contacts/contacts_user_defaults.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package contacts @@ -52,10 +52,6 @@ func (cc _ContactsUserDefaultsClass) Alloc() ContactsUserDefaults { return rv } -func ContactsUserDefaults_Alloc() ContactsUserDefaults { - return ContactsUserDefaultsClass.Alloc() -} - func (cc _ContactsUserDefaultsClass) New() ContactsUserDefaults { rv := objc.Call[ContactsUserDefaults](cc, objc.Sel("new")) rv.Autorelease() diff --git a/macos/contacts/container.gen.go b/macos/contacts/container.gen.go index 3b96d001..9cccca2c 100644 --- a/macos/contacts/container.gen.go +++ b/macos/contacts/container.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package contacts @@ -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] @@ -42,10 +42,6 @@ func (cc _ContainerClass) Alloc() Container { return rv } -func Container_Alloc() Container { - return ContainerClass.Alloc() -} - func (cc _ContainerClass) New() Container { rv := objc.Call[Container](cc, objc.Sel("new")) rv.Autorelease() @@ -76,21 +72,6 @@ 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 @@ -106,14 +87,21 @@ func Container_PredicateForContainerOfGroupWithIdentifier(groupIdentifier string return ContainerClass.PredicateForContainerOfGroupWithIdentifier(groupIdentifier) } -// The name of the container. [Full Topic] +// Returns a predicate to find the container of the specified contact. [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")) +// [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) +} + // The type of the container. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/contacts/cncontainer/1403412-type?language=objc @@ -129,3 +117,11 @@ 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/doc.gen.go b/macos/contacts/doc.gen.go index 98f43354..cff9af80 100644 --- a/macos/contacts/doc.gen.go +++ b/macos/contacts/doc.gen.go @@ -1,8 +1,8 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. // Access the user's contacts, and format and localize contact information. // -// [Full Documentation] +// [Apple Documentation] // -// [Full Documentation]: https://developer.apple.com/documentation/contacts?language=objc +// [Apple Documentation]: https://developer.apple.com/documentation/contacts?language=objc package contacts diff --git a/macos/contacts/enumtypes.gen.go b/macos/contacts/enumtypes.gen.go index dbef6790..6559a3d4 100644 --- a/macos/contacts/enumtypes.gen.go +++ b/macos/contacts/enumtypes.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package contacts diff --git a/macos/contacts/fetch_request.gen.go b/macos/contacts/fetch_request.gen.go index 9c9caf3b..0daba50c 100644 --- a/macos/contacts/fetch_request.gen.go +++ b/macos/contacts/fetch_request.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package contacts @@ -38,10 +38,6 @@ func (fc _FetchRequestClass) Alloc() FetchRequest { return rv } -func FetchRequest_Alloc() FetchRequest { - return FetchRequestClass.Alloc() -} - func (fc _FetchRequestClass) New() FetchRequest { rv := objc.Call[FetchRequest](fc, objc.Sel("new")) rv.Autorelease() diff --git a/macos/contacts/fetch_result.gen.go b/macos/contacts/fetch_result.gen.go index a39295cf..954d8fa5 100644 --- a/macos/contacts/fetch_result.gen.go +++ b/macos/contacts/fetch_result.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package contacts @@ -18,8 +18,8 @@ type _FetchResultClass struct { // An interface definition for the [FetchResult] class. type IFetchResult interface { objc.IObject - Value() objc.Object CurrentHistoryToken() []byte + Value() objc.Object } // [Full Topic] @@ -40,10 +40,6 @@ func (fc _FetchResultClass) Alloc() FetchResult { return rv } -func FetchResult_Alloc() FetchResult { - return FetchResultClass.Alloc() -} - func (fc _FetchResultClass) New() FetchResult { rv := objc.Call[FetchResult](fc, objc.Sel("new")) rv.Autorelease() @@ -61,16 +57,16 @@ func (f_ FetchResult) Init() FetchResult { // [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 } // [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 } diff --git a/macos/contacts/group.gen.go b/macos/contacts/group.gen.go index 70e4159b..82cb4bf1 100644 --- a/macos/contacts/group.gen.go +++ b/macos/contacts/group.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package contacts @@ -19,8 +19,8 @@ type _GroupClass struct { // An interface definition for the [Group] class. type IGroup interface { objc.IObject - Name() string Identifier() string + Name() string } // An immutable object that represents a group of contacts. [Full Topic] @@ -41,10 +41,6 @@ func (gc _GroupClass) Alloc() Group { return rv } -func Group_Alloc() Group { - return GroupClass.Alloc() -} - func (gc _GroupClass) New() Group { rv := objc.Call[Group](gc, objc.Sel("new")) rv.Autorelease() @@ -60,19 +56,19 @@ func (g_ Group) Init() Group { return rv } -// 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] +// 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 Group_PredicateForSubgroupsInGroupWithIdentifier(parentGroupIdentifier string) foundation.Predicate { - return GroupClass.PredicateForSubgroupsInGroupWithIdentifier(parentGroupIdentifier) +// [Full Topic]: https://developer.apple.com/documentation/contacts/cngroup/1402794-predicateforgroupsincontainerwit?language=objc +func Group_PredicateForGroupsInContainerWithIdentifier(containerIdentifier string) foundation.Predicate { + return GroupClass.PredicateForGroupsInContainerWithIdentifier(containerIdentifier) } // Returns a predicate to find groups with the specified identifiers. [Full Topic] @@ -90,27 +86,19 @@ func Group_PredicateForGroupsWithIdentifiers(identifiers []string) foundation.Pr return GroupClass.PredicateForGroupsWithIdentifiers(identifiers) } -// 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] -// -// [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] +// Returns a predicate to find subgroups in the specified parent group. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/contacts/cngroup/1403371-name?language=objc -func (g_ Group) Name() string { - rv := objc.Call[string](g_, objc.Sel("name")) - return rv +// [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] @@ -120,3 +108,11 @@ func (g_ Group) Identifier() string { rv := objc.Call[string](g_, objc.Sel("identifier")) return rv } + +// The name of the group. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/contacts/cngroup/1403371-name?language=objc +func (g_ Group) Name() string { + rv := objc.Call[string](g_, objc.Sel("name")) + return rv +} diff --git a/macos/contacts/instant_message_address.gen.go b/macos/contacts/instant_message_address.gen.go index e1ca9b35..d4891d0a 100644 --- a/macos/contacts/instant_message_address.gen.go +++ b/macos/contacts/instant_message_address.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package contacts @@ -54,10 +54,6 @@ func (ic _InstantMessageAddressClass) Alloc() InstantMessageAddress { return rv } -func InstantMessageAddress_Alloc() InstantMessageAddress { - return InstantMessageAddressClass.Alloc() -} - func (ic _InstantMessageAddressClass) New() InstantMessageAddress { rv := objc.Call[InstantMessageAddress](ic, objc.Sel("new")) rv.Autorelease() diff --git a/macos/contacts/labeled_value.gen.go b/macos/contacts/labeled_value.gen.go index bfcefff8..49e9c288 100644 --- a/macos/contacts/labeled_value.gen.go +++ b/macos/contacts/labeled_value.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package contacts @@ -18,9 +18,9 @@ type _LabeledValueClass struct { // An interface definition for the [LabeledValue] class. type ILabeledValue interface { objc.IObject - Value() objc.Object - Label() string Identifier() string + Label() string + Value() objc.Object } // An immutable object that combines a contact property value with a label that describes that property. [Full Topic] @@ -50,6 +50,18 @@ 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, objc.Ptr(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:"), objc.Ptr(value)) return rv @@ -64,16 +76,18 @@ func LabeledValue_LabeledValueBySettingValue(value objc.IObject) LabeledValue { return instance } -func (lc _LabeledValueClass) LabeledValueWithLabelValue(label string, value objc.IObject) LabeledValue { - rv := objc.Call[LabeledValue](lc, objc.Sel("labeledValueWithLabel:value:"), label, objc.Ptr(value)) +func (l_ LabeledValue) LabeledValueBySettingLabelValue(label string, value objc.IObject) LabeledValue { + rv := objc.Call[LabeledValue](l_, objc.Sel("labeledValueBySettingLabel:value:"), label, objc.Ptr(value)) return rv } -// Returns a new labeled value identifier. [Full Topic] +// Returns a labeled value object with the specified label and value with the existing 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) +// [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 } func (l_ LabeledValue) InitWithLabelValue(label string, value objc.IObject) LabeledValue { @@ -95,10 +109,6 @@ func (lc _LabeledValueClass) Alloc() LabeledValue { return rv } -func LabeledValue_Alloc() LabeledValue { - return LabeledValueClass.Alloc() -} - func (lc _LabeledValueClass) New() LabeledValue { rv := objc.Call[LabeledValue](lc, objc.Sel("new")) rv.Autorelease() @@ -129,11 +139,11 @@ func LabeledValue_LocalizedStringForLabel(label string) string { return LabeledValueClass.LocalizedStringForLabel(label) } -// 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 } @@ -145,10 +155,10 @@ func (l_ LabeledValue) Label() string { return rv } -// 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 } diff --git a/macos/contacts/mutable_contact.gen.go b/macos/contacts/mutable_contact.gen.go index ebc574d7..2dd3ff1d 100644 --- a/macos/contacts/mutable_contact.gen.go +++ b/macos/contacts/mutable_contact.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package contacts @@ -19,33 +19,33 @@ type _MutableContactClass struct { // An interface definition for the [MutableContact] class. type IMutableContact interface { IContact - SetDates(value []ILabeledValue) - SetPhoneNumbers(value []ILabeledValue) + SetNickname(value string) SetPreviousFamilyName(value string) - SetPhoneticOrganizationName(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) - SetNote(value string) - SetMiddleName(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) + SetPhoneNumbers(value []ILabeledValue) + SetPhoneticOrganizationName(value string) + SetOrganizationName(value string) + SetPostalAddresses(value []ILabeledValue) + SetImageData(value []byte) SetEmailAddresses(value []ILabeledValue) + SetContactType(value ContactType) + SetNote(value string) SetInstantMessageAddresses(value []ILabeledValue) - SetUrlAddresses(value []ILabeledValue) - SetOrganizationName(value string) - SetNameSuffix(value string) + SetDates(value []ILabeledValue) + SetNonGregorianBirthday(value foundation.IDateComponents) SetDepartmentName(value string) - SetPhoneticFamilyName(value string) - SetSocialProfiles(value []ILabeledValue) - SetFamilyName(value string) - SetNickname(value string) + SetUrlAddresses(value []ILabeledValue) + SetNamePrefix(value string) + SetPhoneticGivenName(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] @@ -66,10 +66,6 @@ func (mc _MutableContactClass) Alloc() MutableContact { return rv } -func MutableContact_Alloc() MutableContact { - return MutableContactClass.Alloc() -} - func (mc _MutableContactClass) New() MutableContact { rv := objc.Call[MutableContact](mc, objc.Sel("new")) rv.Autorelease() @@ -85,18 +81,11 @@ func (m_ MutableContact) Init() MutableContact { return rv } -// An array containing labeled Gregorian dates. [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) -} - -// An array of labeled phone numbers for a contact. [Full Topic] +// The nickname 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/1403135-nickname?language=objc +func (m_ MutableContact) SetNickname(value string) { + objc.Call[objc.Void](m_, objc.Sel("setNickname:"), value) } // The previous family name of the contact. [Full Topic] @@ -106,53 +95,67 @@ func (m_ MutableContact) SetPreviousFamilyName(value string) { objc.Call[objc.Void](m_, objc.Sel("setPreviousFamilyName:"), value) } -// The phonetic name of the organization associated with the contact. [Full Topic] +// The phonetic middle name of the 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/1403340-phoneticmiddlename?language=objc +func (m_ MutableContact) SetPhoneticMiddleName(value string) { + objc.Call[objc.Void](m_, objc.Sel("setPhoneticMiddleName:"), value) } -// An enum identifying the contact type. [Full Topic] +// The contact’s job title. [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) +// [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 phonetic given name of the contact. [Full Topic] +// The given 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/1403228-givenname?language=objc +func (m_ MutableContact) SetGivenName(value string) { + objc.Call[objc.Void](m_, objc.Sel("setGivenName:"), value) } -// The phonetic middle name of the contact. [Full Topic] +// The family 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) +// [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 name prefix of the contact. [Full Topic] +// The phonetic family name of the 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/1402985-phoneticfamilyname?language=objc +func (m_ MutableContact) SetPhoneticFamilyName(value string) { + objc.Call[objc.Void](m_, objc.Sel("setPhoneticFamilyName:"), value) } -// An array of labeled postal addresses for a contact. [Full Topic] +// An array of labeled social profiles for a 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/1403038-socialprofiles?language=objc +func (m_ MutableContact) SetSocialProfiles(value []ILabeledValue) { + objc.Call[objc.Void](m_, objc.Sel("setSocialProfiles:"), value) } -// A date component for the non-Gregorian birthday of the contact. [Full Topic] +// A date component for the Gregorian birthday of 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:"), objc.Ptr(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:"), objc.Ptr(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 middle name 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) } // An array of labeled contact relations for the contact. [Full Topic] @@ -162,46 +165,39 @@ func (m_ MutableContact) SetContactRelations(value []ILabeledValue) { objc.Call[objc.Void](m_, objc.Sel("setContactRelations:"), value) } -// A date component for the Gregorian birthday 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:"), objc.Ptr(value)) -} - -// The profile picture of a contact. [Full Topic] +// An array of labeled phone numbers for a contact. [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/1403202-phonenumbers?language=objc +func (m_ MutableContact) SetPhoneNumbers(value []ILabeledValue) { + objc.Call[objc.Void](m_, objc.Sel("setPhoneNumbers:"), value) } -// A string containing notes for 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/1403096-note?language=objc -func (m_ MutableContact) SetNote(value string) { - objc.Call[objc.Void](m_, objc.Sel("setNote:"), 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 middle name 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/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/1403381-organizationname?language=objc +func (m_ MutableContact) SetOrganizationName(value string) { + objc.Call[objc.Void](m_, objc.Sel("setOrganizationName:"), value) } -// The contact’s job title. [Full Topic] +// An array of labeled postal addresses for a contact. [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) +// [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 given name of the contact. [Full Topic] +// The profile picture of a 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/1403400-imagedata?language=objc +func (m_ MutableContact) SetImageData(value []byte) { + objc.Call[objc.Void](m_, objc.Sel("setImageData:"), value) } // An array of labeled email addresses for the contact. [Full Topic] @@ -211,6 +207,20 @@ 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 @@ -218,25 +228,18 @@ func (m_ MutableContact) SetInstantMessageAddresses(value []ILabeledValue) { objc.Call[objc.Void](m_, objc.Sel("setInstantMessageAddresses:"), value) } -// An array of labeled URL addresses for a 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) -} - -// The name of the organization associated with the contact. [Full Topic] +// An array containing labeled Gregorian dates. [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/1403311-dates?language=objc +func (m_ MutableContact) SetDates(value []ILabeledValue) { + objc.Call[objc.Void](m_, objc.Sel("setDates:"), value) } -// The name suffix 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/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/1402994-nongregorianbirthday?language=objc +func (m_ MutableContact) SetNonGregorianBirthday(value foundation.IDateComponents) { + objc.Call[objc.Void](m_, objc.Sel("setNonGregorianBirthday:"), objc.Ptr(value)) } // The name of the department associated with the contact. [Full Topic] @@ -246,30 +249,23 @@ func (m_ MutableContact) SetDepartmentName(value string) { objc.Call[objc.Void](m_, objc.Sel("setDepartmentName:"), value) } -// The phonetic family 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) -} - -// An array of labeled social profiles for a contact. [Full Topic] +// An array of labeled URL addresses for a 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/1403006-urladdresses?language=objc +func (m_ MutableContact) SetUrlAddresses(value []ILabeledValue) { + objc.Call[objc.Void](m_, objc.Sel("setUrlAddresses:"), value) } -// The family name of the contact. [Full Topic] +// The name prefix of the contact. [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/1403184-nameprefix?language=objc +func (m_ MutableContact) SetNamePrefix(value string) { + objc.Call[objc.Void](m_, objc.Sel("setNamePrefix:"), value) } -// The nickname of the contact. [Full Topic] +// The phonetic given name 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) +// [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) } diff --git a/macos/contacts/mutable_group.gen.go b/macos/contacts/mutable_group.gen.go index 72f6cb79..fca15e06 100644 --- a/macos/contacts/mutable_group.gen.go +++ b/macos/contacts/mutable_group.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package contacts @@ -39,10 +39,6 @@ func (mc _MutableGroupClass) Alloc() MutableGroup { return rv } -func MutableGroup_Alloc() MutableGroup { - return MutableGroupClass.Alloc() -} - func (mc _MutableGroupClass) New() MutableGroup { rv := objc.Call[MutableGroup](mc, objc.Sel("new")) rv.Autorelease() diff --git a/macos/contacts/mutable_postal_address.gen.go b/macos/contacts/mutable_postal_address.gen.go index 730c2bdb..56e318d3 100644 --- a/macos/contacts/mutable_postal_address.gen.go +++ b/macos/contacts/mutable_postal_address.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package contacts @@ -19,13 +19,13 @@ type _MutablePostalAddressClass struct { type IMutablePostalAddress interface { IPostalAddress SetState(value string) - SetSubLocality(value string) - SetStreet(value string) + SetCountry(value string) SetCity(value string) + SetStreet(value string) SetPostalCode(value string) - SetISOCountryCode(value string) + SetSubLocality(value string) SetSubAdministrativeArea(value string) - SetCountry(value string) + SetISOCountryCode(value string) } // A mutable representation of the postal address for a contact. [Full Topic] @@ -46,10 +46,6 @@ func (mc _MutablePostalAddressClass) Alloc() MutablePostalAddress { return rv } -func MutablePostalAddress_Alloc() MutablePostalAddress { - return MutablePostalAddressClass.Alloc() -} - func (mc _MutablePostalAddressClass) New() MutablePostalAddress { rv := objc.Call[MutablePostalAddress](mc, objc.Sel("new")) rv.Autorelease() @@ -72,18 +68,11 @@ func (m_ MutablePostalAddress) SetState(value string) { objc.Call[objc.Void](m_, objc.Sel("setState:"), value) } -// 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/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] +// The country or region name of the address. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/contacts/cnmutablepostaladdress/1402981-street?language=objc -func (m_ MutablePostalAddress) SetStreet(value string) { - objc.Call[objc.Void](m_, objc.Sel("setStreet:"), 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) } // The city name of the address. [Full Topic] @@ -93,6 +82,13 @@ func (m_ MutablePostalAddress) SetCity(value string) { objc.Call[objc.Void](m_, objc.Sel("setCity:"), value) } +// The street name of the address. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/contacts/cnmutablepostaladdress/1402981-street?language=objc +func (m_ MutablePostalAddress) SetStreet(value string) { + objc.Call[objc.Void](m_, objc.Sel("setStreet:"), value) +} + // The postal code of the address. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/contacts/cnmutablepostaladdress/1403303-postalcode?language=objc @@ -100,11 +96,11 @@ func (m_ MutablePostalAddress) SetPostalCode(value string) { objc.Call[objc.Void](m_, objc.Sel("setPostalCode:"), value) } -// The ISO country code, using the ISO 3166-1 alpha-2 standard. [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/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/2799058-sublocality?language=objc +func (m_ MutablePostalAddress) SetSubLocality(value string) { + objc.Call[objc.Void](m_, objc.Sel("setSubLocality:"), value) } // The subadministrative area (such as a county or other region) in a postal address. [Full Topic] @@ -114,9 +110,9 @@ func (m_ MutablePostalAddress) SetSubAdministrativeArea(value string) { objc.Call[objc.Void](m_, objc.Sel("setSubAdministrativeArea:"), value) } -// The country or region name of the 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/1402917-country?language=objc -func (m_ MutablePostalAddress) SetCountry(value string) { - objc.Call[objc.Void](m_, objc.Sel("setCountry:"), 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) } diff --git a/macos/contacts/phone_number.gen.go b/macos/contacts/phone_number.gen.go index a34b58b6..938dc4ba 100644 --- a/macos/contacts/phone_number.gen.go +++ b/macos/contacts/phone_number.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package contacts @@ -65,10 +65,6 @@ func (pc _PhoneNumberClass) Alloc() PhoneNumber { return rv } -func PhoneNumber_Alloc() PhoneNumber { - return PhoneNumberClass.Alloc() -} - func (pc _PhoneNumberClass) New() PhoneNumber { rv := objc.Call[PhoneNumber](pc, objc.Sel("new")) rv.Autorelease() diff --git a/macos/contacts/postal_address.gen.go b/macos/contacts/postal_address.gen.go index c00e599d..de906e27 100644 --- a/macos/contacts/postal_address.gen.go +++ b/macos/contacts/postal_address.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package contacts @@ -18,14 +18,14 @@ type _PostalAddressClass struct { // An interface definition for the [PostalAddress] class. type IPostalAddress interface { objc.IObject - State() string SubLocality() string - Street() string - City() string - PostalCode() string - ISOCountryCode() string + State() string SubAdministrativeArea() string Country() string + ISOCountryCode() string + City() string + Street() string + PostalCode() string } // An immutable representation of the postal address for a contact. [Full Topic] @@ -46,10 +46,6 @@ func (pc _PostalAddressClass) Alloc() PostalAddress { return rv } -func PostalAddress_Alloc() PostalAddress { - return PostalAddressClass.Alloc() -} - func (pc _PostalAddressClass) New() PostalAddress { rv := objc.Call[PostalAddress](pc, objc.Sel("new")) rv.Autorelease() @@ -80,14 +76,6 @@ 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 @@ -96,27 +84,27 @@ func (p_ PostalAddress) SubLocality() string { return rv } -// The street name in a postal address. [Full Topic] +// The state name 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/1402886-state?language=objc +func (p_ PostalAddress) State() string { + rv := objc.Call[string](p_, objc.Sel("state")) return rv } -// The city 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/1403034-city?language=objc -func (p_ PostalAddress) City() string { - rv := objc.Call[string](p_, objc.Sel("city")) +// [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 } @@ -128,18 +116,26 @@ func (p_ PostalAddress) ISOCountryCode() string { 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 street name 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/1403414-street?language=objc +func (p_ PostalAddress) Street() string { + rv := objc.Call[string](p_, objc.Sel("street")) + return rv +} + +// The postal code 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")) return rv } diff --git a/macos/contacts/postal_address_formatter.gen.go b/macos/contacts/postal_address_formatter.gen.go index 379766fa..1a006a5c 100644 --- a/macos/contacts/postal_address_formatter.gen.go +++ b/macos/contacts/postal_address_formatter.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package contacts @@ -19,8 +19,8 @@ type _PostalAddressFormatterClass struct { // An interface definition for the [PostalAddressFormatter] class. type IPostalAddressFormatter interface { foundation.IFormatter - StringFromPostalAddress(postalAddress IPostalAddress) string AttributedStringFromPostalAddressWithDefaultAttributes(postalAddress IPostalAddress, attributes foundation.Dictionary) foundation.AttributedString + StringFromPostalAddress(postalAddress IPostalAddress) string Style() PostalAddressFormatterStyle SetStyle(value PostalAddressFormatterStyle) } @@ -43,10 +43,6 @@ func (pc _PostalAddressFormatterClass) Alloc() PostalAddressFormatter { return rv } -func PostalAddressFormatter_Alloc() PostalAddressFormatter { - return PostalAddressFormatterClass.Alloc() -} - func (pc _PostalAddressFormatterClass) New() PostalAddressFormatter { rv := objc.Call[PostalAddressFormatter](pc, objc.Sel("new")) rv.Autorelease() @@ -62,14 +58,21 @@ func (p_ PostalAddressFormatter) Init() PostalAddressFormatter { return rv } -// Returns a formatted postal address. [Full Topic] +// Returns a postal address as a string and formatted for the specified style. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/contacts/cnpostaladdressformatter/1403011-stringfrompostaladdress?language=objc -func (p_ PostalAddressFormatter) StringFromPostalAddress(postalAddress IPostalAddress) string { - rv := objc.Call[string](p_, objc.Sel("stringFromPostalAddress:"), objc.Ptr(postalAddress)) +// [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:"), objc.Ptr(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 @@ -78,6 +81,29 @@ func (p_ PostalAddressFormatter) AttributedStringFromPostalAddressWithDefaultAtt return rv } +// Returns a formatted postal address. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/contacts/cnpostaladdressformatter/1403011-stringfrompostaladdress?language=objc +func (p_ PostalAddressFormatter) StringFromPostalAddress(postalAddress IPostalAddress) string { + rv := objc.Call[string](p_, objc.Sel("stringFromPostalAddress:"), objc.Ptr(postalAddress)) + 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 (pc _PostalAddressFormatterClass) AttributedStringFromPostalAddressStyleWithDefaultAttributes(postalAddress IPostalAddress, style PostalAddressFormatterStyle, attributes foundation.Dictionary) foundation.AttributedString { + rv := objc.Call[foundation.AttributedString](pc, objc.Sel("attributedStringFromPostalAddress:style:withDefaultAttributes:"), objc.Ptr(postalAddress), style, 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/protocols.gen.m b/macos/contacts/protocols.gen.m index ec0265f2..9b90008a 100644 --- a/macos/contacts/protocols.gen.m +++ b/macos/contacts/protocols.gen.m @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. #import "Contacts/Contacts.h" diff --git a/macos/contacts/save_request.gen.go b/macos/contacts/save_request.gen.go index e522e33f..02814ce6 100644 --- a/macos/contacts/save_request.gen.go +++ b/macos/contacts/save_request.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package contacts @@ -18,18 +18,20 @@ type _SaveRequestClass struct { // An interface definition for the [SaveRequest] class. type ISaveRequest interface { objc.IObject + DeleteContact(contact IMutableContact) DeleteGroup(group IMutableGroup) - UpdateGroup(group IMutableGroup) + AddGroupToContainerWithIdentifier(group IMutableGroup, identifier string) AddMemberToGroup(contact IContact, group IGroup) - DeleteContact(contact IMutableContact) + UpdateGroup(group IMutableGroup) 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) } // An object that collects the changes you want to save to the user's contacts database. [Full Topic] @@ -50,10 +52,6 @@ func (sc _SaveRequestClass) Alloc() SaveRequest { return rv } -func SaveRequest_Alloc() SaveRequest { - return SaveRequestClass.Alloc() -} - func (sc _SaveRequestClass) New() SaveRequest { rv := objc.Call[SaveRequest](sc, objc.Sel("new")) rv.Autorelease() @@ -69,6 +67,13 @@ 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:"), objc.Ptr(contact)) +} + // Deletes a group from the contact store. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/contacts/cnsaverequest/1402859-deletegroup?language=objc @@ -76,11 +81,11 @@ func (s_ SaveRequest) DeleteGroup(group IMutableGroup) { objc.Call[objc.Void](s_, objc.Sel("deleteGroup:"), objc.Ptr(group)) } -// Updates an existing group in the contact store. [Full Topic] +// Adds a group to 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:"), objc.Ptr(group)) +// [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:"), objc.Ptr(group), identifier) } // Adds a contact as a member of a group. [Full Topic] @@ -90,11 +95,11 @@ func (s_ SaveRequest) AddMemberToGroup(contact IContact, group IGroup) { objc.Call[objc.Void](s_, objc.Sel("addMember:toGroup:"), objc.Ptr(contact), objc.Ptr(group)) } -// Deletes a contact from the contact store. [Full Topic] +// Updates an existing group in 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:"), objc.Ptr(contact)) +// [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:"), objc.Ptr(group)) } // Removes a contact as a member of a group. [Full Topic] @@ -104,20 +109,6 @@ func (s_ SaveRequest) RemoveMemberFromGroup(contact IContact, group IGroup) { objc.Call[objc.Void](s_, objc.Sel("removeMember:fromGroup:"), objc.Ptr(contact), objc.Ptr(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:"), objc.Ptr(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:"), objc.Ptr(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 @@ -139,6 +130,13 @@ func (s_ SaveRequest) RemoveSubgroupFromGroup(subgroup IGroup, group IGroup) { objc.Call[objc.Void](s_, objc.Sel("removeSubgroup:fromGroup:"), objc.Ptr(subgroup), objc.Ptr(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:"), objc.Ptr(contact)) +} + // [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/contacts/cnsaverequest/3824780-transactionauthor?language=objc @@ -153,3 +151,18 @@ func (s_ SaveRequest) TransactionAuthor() string { func (s_ SaveRequest) SetTransactionAuthor(value string) { objc.Call[objc.Void](s_, objc.Sel("setTransactionAuthor:"), 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")) + 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) +} diff --git a/macos/contacts/social_profile.gen.go b/macos/contacts/social_profile.gen.go index c91c4cd1..c6851792 100644 --- a/macos/contacts/social_profile.gen.go +++ b/macos/contacts/social_profile.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package contacts @@ -56,10 +56,6 @@ func (sc _SocialProfileClass) Alloc() SocialProfile { return rv } -func SocialProfile_Alloc() SocialProfile { - return SocialProfileClass.Alloc() -} - func (sc _SocialProfileClass) New() SocialProfile { rv := objc.Call[SocialProfile](sc, objc.Sel("new")) rv.Autorelease() diff --git a/macos/contactsui/contact_picker.gen.go b/macos/contactsui/contact_picker.gen.go index 2fc9f0e5..5fc1fdad 100644 --- a/macos/contactsui/contact_picker.gen.go +++ b/macos/contactsui/contact_picker.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package contactsui @@ -22,11 +22,11 @@ type IContactPicker interface { objc.IObject Close() ShowRelativeToRectOfViewPreferredEdge(positioningRect foundation.Rect, positioningView appkit.IView, preferredEdge foundation.RectEdge) - Delegate() ContactPickerDelegateWrapper - SetDelegate(value PContactPickerDelegate) - SetDelegateObject(valueObject objc.IObject) DisplayedKeys() []string SetDisplayedKeys(value []string) + Delegate() ContactPickerDelegateObject + SetDelegate(value PContactPickerDelegate) + SetDelegateObject(valueObject objc.IObject) } // A popover-based interface for selecting a contact. [Full Topic] @@ -47,10 +47,6 @@ func (cc _ContactPickerClass) Alloc() ContactPicker { return rv } -func ContactPicker_Alloc() ContactPicker { - return ContactPickerClass.Alloc() -} - func (cc _ContactPickerClass) New() ContactPicker { rv := objc.Call[ContactPicker](cc, objc.Sel("new")) rv.Autorelease() @@ -80,11 +76,26 @@ func (c_ ContactPicker) ShowRelativeToRectOfViewPreferredEdge(positioningRect fo objc.Call[objc.Void](c_, objc.Sel("showRelativeToRect:ofView:preferredEdge:"), positioningRect, objc.Ptr(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 -func (c_ ContactPicker) Delegate() ContactPickerDelegateWrapper { - rv := objc.Call[ContactPickerDelegateWrapper](c_, objc.Sel("delegate")) +func (c_ ContactPicker) Delegate() ContactPickerDelegateObject { + rv := objc.Call[ContactPickerDelegateObject](c_, objc.Sel("delegate")) return rv } @@ -103,18 +114,3 @@ func (c_ ContactPicker) SetDelegate(value PContactPickerDelegate) { func (c_ ContactPicker) SetDelegateObject(valueObject objc.IObject) { objc.Call[objc.Void](c_, objc.Sel("setDelegate:"), objc.Ptr(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 840c547a..eb3a4108 100644 --- a/macos/contactsui/contact_picker_delegate.gen.go +++ b/macos/contactsui/contact_picker_delegate.gen.go @@ -1,8 +1,9 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package contactsui import ( + "github.com/progrium/macdriver/macos/contacts" "github.com/progrium/macdriver/objc" ) @@ -10,21 +11,65 @@ 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 - ContactPickerWillClose(picker ContactPicker) - HasContactPickerWillClose() bool + ContactPickerDidSelectContactProperty(picker ContactPicker, contactProperty contacts.ContactProperty) + HasContactPickerDidSelectContactProperty() bool } // A delegate implementation builder for the [PContactPickerDelegate] protocol. type ContactPickerDelegate struct { - _ContactPickerDidClose func(picker ContactPicker) - _ContactPickerWillClose func(picker ContactPicker) + _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 } +// 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 } @@ -42,47 +87,72 @@ func (di *ContactPickerDelegate) SetContactPickerDidClose(f func(picker ContactP func (di *ContactPickerDelegate) ContactPickerDidClose(picker ContactPicker) { di._ContactPickerDidClose(picker) } -func (di *ContactPickerDelegate) HasContactPickerWillClose() bool { - return di._ContactPickerWillClose != nil +func (di *ContactPickerDelegate) HasContactPickerDidSelectContactProperty() bool { + return di._ContactPickerDidSelectContactProperty != nil } -// In macOS, called when the contact picker’s popover is about to close. [Full Topic] +// Called when a property of the contact has been selected by the user. [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 +// [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 +} + +// Called when a property of the contact has been selected by the user. [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) +} + +// ensure impl type implements protocol interface +var _ PContactPickerDelegate = (*ContactPickerDelegateObject)(nil) + +// A concrete type for the [PContactPickerDelegate] protocol. +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 (di *ContactPickerDelegate) ContactPickerWillClose(picker ContactPicker) { - di._ContactPickerWillClose(picker) +func (c_ ContactPickerDelegateObject) ContactPickerWillClose(picker ContactPicker) { + objc.Call[objc.Void](c_, objc.Sel("contactPickerWillClose:"), objc.Ptr(picker)) } -// A concrete type wrapper for the [PContactPickerDelegate] protocol. -type ContactPickerDelegateWrapper struct { - objc.Object +func (c_ ContactPickerDelegateObject) HasContactPickerDidSelectContact() bool { + return c_.RespondsToSelector(objc.Sel("contactPicker:didSelectContact:")) } -func (c_ ContactPickerDelegateWrapper) HasContactPickerDidClose() bool { +// 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:"), objc.Ptr(picker), objc.Ptr(contact)) +} + +func (c_ ContactPickerDelegateObject) HasContactPickerDidClose() bool { return c_.RespondsToSelector(objc.Sel("contactPickerDidClose:")) } // In macOS, called when the contact picker’s popover has closed. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/contactsui/cncontactpickerdelegate/1522584-contactpickerdidclose?language=objc -func (c_ ContactPickerDelegateWrapper) ContactPickerDidClose(picker IContactPicker) { +func (c_ ContactPickerDelegateObject) ContactPickerDidClose(picker ContactPicker) { objc.Call[objc.Void](c_, objc.Sel("contactPickerDidClose:"), objc.Ptr(picker)) } -func (c_ ContactPickerDelegateWrapper) HasContactPickerWillClose() bool { - return c_.RespondsToSelector(objc.Sel("contactPickerWillClose:")) +func (c_ ContactPickerDelegateObject) HasContactPickerDidSelectContactProperty() bool { + return c_.RespondsToSelector(objc.Sel("contactPicker:didSelectContactProperty:")) } -// In macOS, called when the contact picker’s popover is about to close. [Full Topic] +// Called when a property of the contact has been selected by the user. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/contactsui/cncontactpickerdelegate/1522594-contactpickerwillclose?language=objc -func (c_ ContactPickerDelegateWrapper) ContactPickerWillClose(picker IContactPicker) { - objc.Call[objc.Void](c_, objc.Sel("contactPickerWillClose:"), objc.Ptr(picker)) +// [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:"), objc.Ptr(picker), objc.Ptr(contactProperty)) } diff --git a/macos/contactsui/contact_view_controller.gen.go b/macos/contactsui/contact_view_controller.gen.go index a1df14cc..50d39f94 100644 --- a/macos/contactsui/contact_view_controller.gen.go +++ b/macos/contactsui/contact_view_controller.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package contactsui @@ -22,6 +22,7 @@ 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] @@ -42,10 +43,6 @@ func (cc _ContactViewControllerClass) Alloc() ContactViewController { return rv } -func ContactViewController_Alloc() ContactViewController { - return ContactViewControllerClass.Alloc() -} - func (cc _ContactViewControllerClass) New() ContactViewController { rv := objc.Call[ContactViewController](cc, objc.Sel("new")) rv.Autorelease() @@ -97,3 +94,10 @@ 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:"), objc.Ptr(value)) +} diff --git a/macos/contactsui/doc.gen.go b/macos/contactsui/doc.gen.go index 45e800d9..00561752 100644 --- a/macos/contactsui/doc.gen.go +++ b/macos/contactsui/doc.gen.go @@ -1,8 +1,8 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. // Display information about users’ contacts in a graphical interface. // -// [Full Documentation] +// [Apple Documentation] // -// [Full Documentation]: https://developer.apple.com/documentation/contactsui?language=objc +// [Apple Documentation]: https://developer.apple.com/documentation/contactsui?language=objc package contactsui diff --git a/macos/contactsui/protocols.gen.m b/macos/contactsui/protocols.gen.m index 22722688..c61b70b9 100644 --- a/macos/contactsui/protocols.gen.m +++ b/macos/contactsui/protocols.gen.m @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. #import "ContactsUI/ContactsUI.h" diff --git a/macos/coreaudio/aliastypes.gen.go b/macos/coreaudio/aliastypes.gen.go index 0a8c477a..1825eda6 100644 --- a/macos/coreaudio/aliastypes.gen.go +++ b/macos/coreaudio/aliastypes.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package coreaudio diff --git a/macos/coreaudio/doc.gen.go b/macos/coreaudio/doc.gen.go index d32be34f..1a68f86b 100644 --- a/macos/coreaudio/doc.gen.go +++ b/macos/coreaudio/doc.gen.go @@ -1,8 +1,8 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. // Use the Core Audio framework to interact with device’s audio hardware. // -// [Full Documentation] +// [Apple Documentation] // -// [Full Documentation]: https://developer.apple.com/documentation/coreaudio?language=objc +// [Apple Documentation]: https://developer.apple.com/documentation/coreaudio?language=objc package coreaudio diff --git a/macos/coreaudio/enumtypes.gen.go b/macos/coreaudio/enumtypes.gen.go index ba36dd50..1b064d93 100644 --- a/macos/coreaudio/enumtypes.gen.go +++ b/macos/coreaudio/enumtypes.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package coreaudio diff --git a/macos/coreaudio/protocols.gen.m b/macos/coreaudio/protocols.gen.m index 7276ea2f..b745d47a 100644 --- a/macos/coreaudio/protocols.gen.m +++ b/macos/coreaudio/protocols.gen.m @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. #import "CoreAudio/CoreAudio.h" diff --git a/macos/coreaudiotypes/doc.gen.go b/macos/coreaudiotypes/doc.gen.go index 1a8e8af4..f440ebe1 100644 --- a/macos/coreaudiotypes/doc.gen.go +++ b/macos/coreaudiotypes/doc.gen.go @@ -1,8 +1,8 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. // Use specialized data types to interact with audio streams, complex buffers, and audiovisual timestamps. // -// [Full Documentation] +// [Apple Documentation] // -// [Full Documentation]: https://developer.apple.com/documentation/coreaudiotypes?language=objc +// [Apple Documentation]: https://developer.apple.com/documentation/coreaudiotypes?language=objc package coreaudiotypes diff --git a/macos/coreaudiotypes/enumtypes.gen.go b/macos/coreaudiotypes/enumtypes.gen.go index 2f2be37b..50cd936e 100644 --- a/macos/coreaudiotypes/enumtypes.gen.go +++ b/macos/coreaudiotypes/enumtypes.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package coreaudiotypes @@ -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 int16 +type SampleType float64 // A unique identifier of an audio session. [Full Topic] // @@ -143,23 +143,23 @@ 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 int32 +type UnitSampleType float64 // Constants that define the type of MPEG-4 audio data. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/coreaudiotypes/mpeg4objectid?language=objc -type MPEG4ObjectID int32 +type EG4ObjectID int32 const ( - kMPEG4Object_AAC_LC MPEG4ObjectID = 2 - kMPEG4Object_AAC_LTP MPEG4ObjectID = 4 - kMPEG4Object_AAC_Main MPEG4ObjectID = 1 - kMPEG4Object_AAC_SBR MPEG4ObjectID = 5 - kMPEG4Object_AAC_SSR MPEG4ObjectID = 3 - kMPEG4Object_AAC_Scalable MPEG4ObjectID = 6 - kMPEG4Object_CELP MPEG4ObjectID = 8 - kMPEG4Object_HVXC MPEG4ObjectID = 9 - kMPEG4Object_TwinVQ MPEG4ObjectID = 7 + kMPEG4Object_AAC_LC EG4ObjectID = 2 + kMPEG4Object_AAC_LTP EG4ObjectID = 4 + kMPEG4Object_AAC_Main EG4ObjectID = 1 + kMPEG4Object_AAC_SBR EG4ObjectID = 5 + kMPEG4Object_AAC_SSR EG4ObjectID = 3 + kMPEG4Object_AAC_Scalable EG4ObjectID = 6 + kMPEG4Object_CELP EG4ObjectID = 8 + kMPEG4Object_HVXC EG4ObjectID = 9 + kMPEG4Object_TwinVQ EG4ObjectID = 7 ) // A structure that defines SMPTE time flags. [Full Topic] diff --git a/macos/coreaudiotypes/protocols.gen.m b/macos/coreaudiotypes/protocols.gen.m index 41f82f0c..19ccd3c6 100644 --- a/macos/coreaudiotypes/protocols.gen.m +++ b/macos/coreaudiotypes/protocols.gen.m @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. #import "CoreAudio/CoreAudioTypes.h" diff --git a/macos/coredata/aliastypes.gen.go b/macos/coredata/aliastypes.gen.go index b648f8d0..6a29b418 100644 --- a/macos/coredata/aliastypes.gen.go +++ b/macos/coredata/aliastypes.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package coredata diff --git a/macos/coredata/asynchronous_fetch_request.gen.go b/macos/coredata/asynchronous_fetch_request.gen.go index bdb0a67b..d0ce6767 100644 --- a/macos/coredata/asynchronous_fetch_request.gen.go +++ b/macos/coredata/asynchronous_fetch_request.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package coredata @@ -56,10 +56,6 @@ func (ac _AsynchronousFetchRequestClass) Alloc() AsynchronousFetchRequest { return rv } -func AsynchronousFetchRequest_Alloc() AsynchronousFetchRequest { - return AsynchronousFetchRequestClass.Alloc() -} - func (ac _AsynchronousFetchRequestClass) New() AsynchronousFetchRequest { rv := objc.Call[AsynchronousFetchRequest](ac, objc.Sel("new")) rv.Autorelease() diff --git a/macos/coredata/asynchronous_fetch_result.gen.go b/macos/coredata/asynchronous_fetch_result.gen.go index 47cc99f3..2c1b5c14 100644 --- a/macos/coredata/asynchronous_fetch_result.gen.go +++ b/macos/coredata/asynchronous_fetch_result.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package coredata @@ -40,10 +40,6 @@ func (ac _AsynchronousFetchResultClass) Alloc() AsynchronousFetchResult { return rv } -func AsynchronousFetchResult_Alloc() AsynchronousFetchResult { - return AsynchronousFetchResultClass.Alloc() -} - func (ac _AsynchronousFetchResultClass) New() AsynchronousFetchResult { rv := objc.Call[AsynchronousFetchResult](ac, objc.Sel("new")) rv.Autorelease() diff --git a/macos/coredata/atomic_store.gen.go b/macos/coredata/atomic_store.gen.go index 4613c4b4..f4a3b045 100644 --- a/macos/coredata/atomic_store.gen.go +++ b/macos/coredata/atomic_store.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package coredata @@ -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 foundation.IError) bool CacheNodeForObjectID(objectID IManagedObjectID) AtomicStoreCacheNode - WillRemoveCacheNodes(cacheNodes foundation.ISet) - ObjectIDForEntityReferenceObject(entity IEntityDescription, data objc.IObject) ManagedObjectID CacheNodes() foundation.Set - NewCacheNodeForManagedObject(managedObject IManagedObject) AtomicStoreCacheNode + ReferenceObjectForObjectID(objectID IManagedObjectID) objc.Object UpdateCacheNodeFromManagedObject(node IAtomicStoreCacheNode, managedObject IManagedObject) + ObjectIDForEntityReferenceObject(entity IEntityDescription, data objc.IObject) ManagedObjectID AddCacheNodes(cacheNodes foundation.ISet) Load(error foundation.IError) bool + NewReferenceObjectForManagedObject(managedObject IManagedObject) objc.Object + WillRemoveCacheNodes(cacheNodes foundation.ISet) + NewCacheNodeForManagedObject(managedObject IManagedObject) AtomicStoreCacheNode + Save(error foundation.IError) bool } // An abstract superclass that you subclass to create a Core Data atomic store. [Full Topic] @@ -64,10 +64,6 @@ func (ac _AtomicStoreClass) Alloc() AtomicStore { return rv } -func AtomicStore_Alloc() AtomicStore { - return AtomicStoreClass.Alloc() -} - func (ac _AtomicStoreClass) New() AtomicStore { rv := objc.Call[AtomicStore](ac, objc.Sel("new")) rv.Autorelease() @@ -83,31 +79,6 @@ 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:"), objc.Ptr(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:"), objc.Ptr(managedObject)) - rv.Autorelease() - 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 foundation.IError) bool { - rv := objc.Call[bool](a_, objc.Sel("save:"), objc.Ptr(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 @@ -116,21 +87,6 @@ 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:"), objc.Ptr(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:"), objc.Ptr(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 @@ -139,12 +95,11 @@ func (a_ AtomicStore) CacheNodes() foundation.Set { return rv } -// Returns a new cache node for a given managed object. [Full Topic] +// Returns the reference object for a given managed object ID. [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:"), objc.Ptr(managedObject)) - rv.Autorelease() +// [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:"), objc.Ptr(objectID)) return rv } @@ -155,6 +110,14 @@ func (a_ AtomicStore) UpdateCacheNodeFromManagedObject(node IAtomicStoreCacheNod objc.Call[objc.Void](a_, objc.Sel("updateCacheNode:fromManagedObject:"), objc.Ptr(node), objc.Ptr(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:"), objc.Ptr(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 @@ -169,3 +132,34 @@ func (a_ AtomicStore) Load(error foundation.IError) bool { rv := objc.Call[bool](a_, objc.Sel("load:"), objc.Ptr(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:"), objc.Ptr(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:"), objc.Ptr(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:"), objc.Ptr(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 foundation.IError) bool { + rv := objc.Call[bool](a_, objc.Sel("save:"), objc.Ptr(error)) + return rv +} diff --git a/macos/coredata/atomic_store_cache_node.gen.go b/macos/coredata/atomic_store_cache_node.gen.go index f760fd1c..dee1d936 100644 --- a/macos/coredata/atomic_store_cache_node.gen.go +++ b/macos/coredata/atomic_store_cache_node.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package coredata @@ -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] @@ -58,10 +58,6 @@ func (ac _AtomicStoreCacheNodeClass) Alloc() AtomicStoreCacheNode { return rv } -func AtomicStoreCacheNode_Alloc() AtomicStoreCacheNode { - return AtomicStoreCacheNodeClass.Alloc() -} - func (ac _AtomicStoreCacheNodeClass) New() AtomicStoreCacheNode { rv := objc.Call[AtomicStoreCacheNode](ac, objc.Sel("new")) rv.Autorelease() @@ -92,6 +88,14 @@ 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 @@ -106,11 +110,3 @@ func (a_ AtomicStoreCacheNode) PropertyCache() foundation.MutableDictionary { func (a_ AtomicStoreCacheNode) SetPropertyCache(value foundation.IMutableDictionary) { objc.Call[objc.Void](a_, objc.Sel("setPropertyCache:"), objc.Ptr(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 0c878efc..9a851b7a 100644 --- a/macos/coredata/attribute_description.gen.go +++ b/macos/coredata/attribute_description.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package coredata @@ -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] @@ -52,10 +52,6 @@ func (ac _AttributeDescriptionClass) Alloc() AttributeDescription { return rv } -func AttributeDescription_Alloc() AttributeDescription { - return AttributeDescriptionClass.Alloc() -} - func (ac _AttributeDescriptionClass) New() AttributeDescription { rv := objc.Call[AttributeDescription](ac, objc.Sel("new")) rv.Autorelease() @@ -71,34 +67,19 @@ func (a_ AttributeDescription) Init() AttributeDescription { return rv } -// A Boolean value that indicates whether the attribute allows external binary storage. [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")) - return rv -} - -// A Boolean value that indicates whether the attribute allows external binary storage. [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) -} - -// The default value of the attribute. [Full Topic] +// The class name that represents the attribute’s value. [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/1498309-attributevalueclassname?language=objc +func (a_ AttributeDescription) AttributeValueClassName() string { + rv := objc.Call[string](a_, objc.Sel("attributeValueClassName")) return rv } -// The default value of the attribute. [Full Topic] +// The class name that represents the attribute’s value. [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/1498309-attributevalueclassname?language=objc +func (a_ AttributeDescription) SetAttributeValueClassName(value string) { + objc.Call[objc.Void](a_, objc.Sel("setAttributeValueClassName:"), value) } // The name of the transformer to use for the attribute value. [Full Topic] @@ -116,19 +97,34 @@ func (a_ AttributeDescription) SetValueTransformerName(value string) { objc.Call[objc.Void](a_, objc.Sel("setValueTransformerName:"), value) } -// The attribute’s type. [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/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/3180042-preservesvalueinhistoryondeletio?language=objc +func (a_ AttributeDescription) PreservesValueInHistoryOnDeletion() bool { + rv := objc.Call[bool](a_, objc.Sel("preservesValueInHistoryOnDeletion")) return rv } -// The attribute’s type. [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/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/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] +// +// [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 +} + +// A Boolean value that indicates whether the attribute allows external binary storage. [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) } // A Boolean value that determines whether to encrypt the attribute’s value. [Full Topic] @@ -146,32 +142,32 @@ func (a_ AttributeDescription) SetAllowsCloudEncryption(value bool) { objc.Call[objc.Void](a_, objc.Sel("setAllowsCloudEncryption:"), 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] +// The default value of the attribute. [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")) +// [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 } -// A Boolean value that indicates whether the attribute records its value in the persistent history transaction for a managed object’s deletion. [Full Topic] +// The default value of the attribute. [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) +// [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 class name that represents the attribute’s value. [Full Topic] +// The attribute’s type. [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/1498291-attributetype?language=objc +func (a_ AttributeDescription) AttributeType() AttributeType { + rv := objc.Call[AttributeType](a_, objc.Sel("attributeType")) return rv } -// The class name that represents the attribute’s value. [Full Topic] +// The attribute’s type. [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/1498291-attributetype?language=objc +func (a_ AttributeDescription) SetAttributeType(value AttributeType) { + objc.Call[objc.Void](a_, objc.Sel("setAttributeType:"), value) } diff --git a/macos/coredata/batch_delete_request.gen.go b/macos/coredata/batch_delete_request.gen.go index b32637ba..bde803d3 100644 --- a/macos/coredata/batch_delete_request.gen.go +++ b/macos/coredata/batch_delete_request.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package coredata @@ -69,10 +69,6 @@ func (bc _BatchDeleteRequestClass) Alloc() BatchDeleteRequest { return rv } -func BatchDeleteRequest_Alloc() BatchDeleteRequest { - return BatchDeleteRequestClass.Alloc() -} - func (bc _BatchDeleteRequestClass) New() BatchDeleteRequest { rv := objc.Call[BatchDeleteRequest](bc, objc.Sel("new")) rv.Autorelease() diff --git a/macos/coredata/batch_delete_result.gen.go b/macos/coredata/batch_delete_result.gen.go index 1027b84c..ad2873c3 100644 --- a/macos/coredata/batch_delete_result.gen.go +++ b/macos/coredata/batch_delete_result.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package coredata @@ -40,10 +40,6 @@ func (bc _BatchDeleteResultClass) Alloc() BatchDeleteResult { return rv } -func BatchDeleteResult_Alloc() BatchDeleteResult { - return BatchDeleteResultClass.Alloc() -} - func (bc _BatchDeleteResultClass) New() BatchDeleteResult { rv := objc.Call[BatchDeleteResult](bc, objc.Sel("new")) rv.Autorelease() diff --git a/macos/coredata/batch_insert_request.gen.go b/macos/coredata/batch_insert_request.gen.go index 5bcdde4b..4869d259 100644 --- a/macos/coredata/batch_insert_request.gen.go +++ b/macos/coredata/batch_insert_request.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package coredata @@ -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,6 +44,46 @@ 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 @@ -58,16 +98,18 @@ func NewBatchInsertRequestWithEntityNameObjects(entityName string, dictionaries return instance } -func (bc _BatchInsertRequestClass) BatchInsertRequestWithEntityNameObjects(entityName string, dictionaries []map[string]objc.IObject) BatchInsertRequest { - rv := objc.Call[BatchInsertRequest](bc, objc.Sel("batchInsertRequestWithEntityName:objects:"), entityName, dictionaries) +func (b_ BatchInsertRequest) InitWithEntityDictionaryHandler(entity IEntityDescription, handler func(obj foundation.MutableDictionary) bool) BatchInsertRequest { + rv := objc.Call[BatchInsertRequest](b_, objc.Sel("initWithEntity:dictionaryHandler:"), objc.Ptr(entity), handler) return rv } -// Creates a batch-insertion request for a named managed entity, and provides an array of data dictionaries for insertion. [Full Topic] +// Creates a batch-insertion request for a managed entity, and specifies a closure that provides 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) +// [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 } func (b_ BatchInsertRequest) InitWithEntityManagedObjectHandler(entity IEntityDescription, handler func(obj ManagedObject) bool) BatchInsertRequest { @@ -84,13 +126,23 @@ func NewBatchInsertRequestWithEntityManagedObjectHandler(entity IEntityDescripti return instance } -func (bc _BatchInsertRequestClass) Alloc() BatchInsertRequest { - rv := objc.Call[BatchInsertRequest](bc, objc.Sel("alloc")) +func (b_ BatchInsertRequest) InitWithEntityObjects(entity IEntityDescription, dictionaries []map[string]objc.IObject) BatchInsertRequest { + rv := objc.Call[BatchInsertRequest](b_, objc.Sel("initWithEntity:objects:"), objc.Ptr(entity), dictionaries) return rv } -func BatchInsertRequest_Alloc() BatchInsertRequest { - return BatchInsertRequestClass.Alloc() +// 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 } func (bc _BatchInsertRequestClass) New() BatchInsertRequest { @@ -116,27 +168,34 @@ func (b_ BatchInsertRequest) EntityName() string { return rv } -// The managed entity to insert data into. [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/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/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) 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) 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] +// +// [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 } -// An array of dictionaries that represents the objects to insert with the keys as attribute names and their assigned values. [Full Topic] +// The type of result that Core Data returns from this request. [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/3333239-resulttype?language=objc +func (b_ BatchInsertRequest) SetResultType(value BatchInsertRequestResultType) { + objc.Call[objc.Void](b_, objc.Sel("setResultType:"), value) } // A closure that provides a dictionary for your app to insert data into. [Full Topic] @@ -154,32 +213,25 @@ func (b_ BatchInsertRequest) SetDictionaryHandler(value func(obj foundation.Muta objc.Call[objc.Void](b_, objc.Sel("setDictionaryHandler:"), value) } -// A closure that provides a managed object for your app to insert data into. [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/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/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 } -// A closure that provides a managed object for your app to insert data into. [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/3618792-managedobjecthandler?language=objc -func (b_ BatchInsertRequest) SetManagedObjectHandler(value func(obj ManagedObject) bool) { - objc.Call[objc.Void](b_, objc.Sel("setManagedObjectHandler:"), 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) } -// The type of result that Core Data returns from this request. [Full Topic] +// The managed entity to insert data into. [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/3333231-entity?language=objc +func (b_ BatchInsertRequest) Entity() EntityDescription { + rv := objc.Call[EntityDescription](b_, objc.Sel("entity")) 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_insert_result.gen.go b/macos/coredata/batch_insert_result.gen.go index 6f83b1e7..d49d213c 100644 --- a/macos/coredata/batch_insert_result.gen.go +++ b/macos/coredata/batch_insert_result.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package coredata @@ -40,10 +40,6 @@ func (bc _BatchInsertResultClass) Alloc() BatchInsertResult { return rv } -func BatchInsertResult_Alloc() BatchInsertResult { - return BatchInsertResultClass.Alloc() -} - func (bc _BatchInsertResultClass) New() BatchInsertResult { rv := objc.Call[BatchInsertResult](bc, objc.Sel("new")) rv.Autorelease() diff --git a/macos/coredata/batch_update_request.gen.go b/macos/coredata/batch_update_request.gen.go index 90f609a1..9777925a 100644 --- a/macos/coredata/batch_update_request.gen.go +++ b/macos/coredata/batch_update_request.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package coredata @@ -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) - Entity() EntityDescription - Predicate() foundation.Predicate - SetPredicate(value foundation.IPredicate) PropertiesToUpdate() foundation.Dictionary SetPropertiesToUpdate(value foundation.Dictionary) - ResultType() BatchUpdateRequestResultType - SetResultType(value BatchUpdateRequestResultType) + Predicate() foundation.Predicate + SetPredicate(value foundation.IPredicate) } // 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,16 +44,18 @@ func BatchUpdateRequestFrom(ptr unsafe.Pointer) BatchUpdateRequest { } } -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:"), objc.Ptr(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 (b_ BatchUpdateRequest) InitWithEntityName(entityName string) BatchUpdateRequest { @@ -70,18 +72,16 @@ func NewBatchUpdateRequestWithEntityName(entityName string) BatchUpdateRequest { return instance } -func (b_ BatchUpdateRequest) InitWithEntity(entity IEntityDescription) BatchUpdateRequest { - rv := objc.Call[BatchUpdateRequest](b_, objc.Sel("initWithEntity:"), objc.Ptr(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 (bc _BatchUpdateRequestClass) Alloc() BatchUpdateRequest { @@ -89,10 +89,6 @@ func (bc _BatchUpdateRequestClass) Alloc() BatchUpdateRequest { return rv } -func BatchUpdateRequest_Alloc() BatchUpdateRequest { - return BatchUpdateRequestClass.Alloc() -} - func (bc _BatchUpdateRequestClass) New() BatchUpdateRequest { rv := objc.Call[BatchUpdateRequest](bc, objc.Sel("new")) rv.Autorelease() @@ -108,6 +104,29 @@ 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 @@ -131,29 +150,6 @@ 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:"), objc.Ptr(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 @@ -169,17 +165,17 @@ func (b_ BatchUpdateRequest) SetPropertiesToUpdate(value foundation.Dictionary) objc.Call[objc.Void](b_, objc.Sel("setPropertiesToUpdate:"), value) } -// The type of result that Core Data returns from the request. [Full Topic] +// A predicate that identifies the objects to update. [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")) +// [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 } -// The type of result that Core Data returns from the request. [Full Topic] +// A predicate that identifies the objects to update. [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) +// [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:"), objc.Ptr(value)) } diff --git a/macos/coredata/batch_update_result.gen.go b/macos/coredata/batch_update_result.gen.go index 04fd2a9d..8628e2c2 100644 --- a/macos/coredata/batch_update_result.gen.go +++ b/macos/coredata/batch_update_result.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package coredata @@ -18,8 +18,8 @@ type _BatchUpdateResultClass struct { // An interface definition for the [BatchUpdateResult] class. type IBatchUpdateResult interface { IPersistentStoreResult - Result() objc.Object ResultType() BatchUpdateRequestResultType + Result() objc.Object } // The result returned when executing a batch update request. [Full Topic] @@ -40,10 +40,6 @@ func (bc _BatchUpdateResultClass) Alloc() BatchUpdateResult { return rv } -func BatchUpdateResult_Alloc() BatchUpdateResult { - return BatchUpdateResultClass.Alloc() -} - func (bc _BatchUpdateResultClass) New() BatchUpdateResult { rv := objc.Call[BatchUpdateResult](bc, objc.Sel("new")) rv.Autorelease() @@ -59,14 +55,6 @@ func (b_ BatchUpdateResult) Init() BatchUpdateResult { 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 -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 @@ -74,3 +62,11 @@ 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 +func (b_ BatchUpdateResult) Result() objc.Object { + rv := objc.Call[objc.Object](b_, objc.Sel("result")) + return rv +} diff --git a/macos/coredata/constraint_conflict.gen.go b/macos/coredata/constraint_conflict.gen.go index 298a274f..444c4065 100644 --- a/macos/coredata/constraint_conflict.gen.go +++ b/macos/coredata/constraint_conflict.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package coredata @@ -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 - DatabaseObject() ManagedObject Constraint() []string - DatabaseSnapshot() map[string]objc.Object - ConflictingSnapshots() []foundation.Dictionary - ConflictingObjects() []ManagedObject + DatabaseObject() ManagedObject } // An encapsulation of conflicts that occur during an attempt to save a managed object. [Full Topic] @@ -59,10 +59,6 @@ func (cc _ConstraintConflictClass) Alloc() ConstraintConflict { return rv } -func ConstraintConflict_Alloc() ConstraintConflict { - return ConstraintConflictClass.Alloc() -} - func (cc _ConstraintConflictClass) New() ConstraintConflict { rv := objc.Call[ConstraintConflict](cc, objc.Sel("new")) rv.Autorelease() @@ -78,27 +74,19 @@ func (c_ ConstraintConflict) Init() ConstraintConflict { return rv } -// The values that the conflicting objects had when the conflict was created. [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")) - 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 } -// 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 } @@ -110,18 +98,26 @@ func (c_ ConstraintConflict) DatabaseSnapshot() map[string]objc.Object { return rv } -// The original property values of objects in violation of the constraint. [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/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/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 managed objects that are in conflict. [Full Topic] +// The constraint that has been violated. [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/1506902-constraint?language=objc +func (c_ ConstraintConflict) Constraint() []string { + rv := objc.Call[[]string](c_, objc.Sel("constraint")) + return rv +} + +// The object whose database row is using constraint values. [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")) 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 2f55a374..0529d015 100644 --- a/macos/coredata/core_data_core_spotlight_delegate.gen.go +++ b/macos/coredata/core_data_core_spotlight_delegate.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package coredata @@ -19,13 +19,14 @@ 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 - DomainIdentifier() string - StopSpotlightIndexing() DeleteSpotlightIndexWithCompletionHandler(completionHandler func(error foundation.Error)) - IndexName() string + SearchableIndexReindexSearchableItemsWithIdentifiersAcknowledgementHandler(searchableIndex objc.IObject, identifiers []string, acknowledgementHandler func()) + DomainIdentifier() string IsIndexingEnabled() bool } @@ -61,10 +62,6 @@ func (cc _CoreDataCoreSpotlightDelegateClass) Alloc() CoreDataCoreSpotlightDeleg return rv } -func CoreDataCoreSpotlightDelegate_Alloc() CoreDataCoreSpotlightDelegate { - return CoreDataCoreSpotlightDelegateClass.Alloc() -} - func (cc _CoreDataCoreSpotlightDelegateClass) New() CoreDataCoreSpotlightDelegate { rv := objc.Call[CoreDataCoreSpotlightDelegate](cc, objc.Sel("new")) rv.Autorelease() @@ -80,6 +77,14 @@ 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 @@ -87,6 +92,13 @@ 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 @@ -102,21 +114,6 @@ 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 @@ -124,11 +121,18 @@ func (c_ CoreDataCoreSpotlightDelegate) DeleteSpotlightIndexWithCompletionHandle objc.Call[objc.Void](c_, objc.Sel("deleteSpotlightIndexWithCompletionHandler:"), completionHandler) } -// Returns the index’s name. [Full Topic] +// Reindexes the searchable items for the specified identifiers. [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")) +// [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:"), objc.Ptr(searchableIndex), identifiers, acknowledgementHandler) +} + +// 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 } diff --git a/macos/coredata/derived_attribute_description.gen.go b/macos/coredata/derived_attribute_description.gen.go index 2d09abd5..a4c7f916 100644 --- a/macos/coredata/derived_attribute_description.gen.go +++ b/macos/coredata/derived_attribute_description.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package coredata @@ -41,10 +41,6 @@ func (dc _DerivedAttributeDescriptionClass) Alloc() DerivedAttributeDescription return rv } -func DerivedAttributeDescription_Alloc() DerivedAttributeDescription { - return DerivedAttributeDescriptionClass.Alloc() -} - func (dc _DerivedAttributeDescriptionClass) New() DerivedAttributeDescription { rv := objc.Call[DerivedAttributeDescription](dc, objc.Sel("new")) rv.Autorelease() diff --git a/macos/coredata/doc.gen.go b/macos/coredata/doc.gen.go index 9d3799cd..0f89c06b 100644 --- a/macos/coredata/doc.gen.go +++ b/macos/coredata/doc.gen.go @@ -1,8 +1,8 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. // Persist or cache data on a single device, or sync data to multiple devices with CloudKit. // -// [Full Documentation] +// [Apple Documentation] // -// [Full Documentation]: https://developer.apple.com/documentation/coredata?language=objc +// [Apple Documentation]: https://developer.apple.com/documentation/coredata?language=objc package coredata diff --git a/macos/coredata/entity_description.gen.go b/macos/coredata/entity_description.gen.go index b2e863bf..ff38f378 100644 --- a/macos/coredata/entity_description.gen.go +++ b/macos/coredata/entity_description.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package coredata @@ -21,35 +21,35 @@ type IEntityDescription interface { objc.IObject RelationshipsWithDestinationEntity(entity IEntityDescription) []RelationshipDescription IsKindOfEntity(entity IEntityDescription) bool - ManagedObjectModel() ManagedObjectModel - PropertiesByName() map[string]PropertyDescription + IsAbstract() bool + SetAbstract(value bool) + Subentities() []EntityDescription + SetSubentities(value []IEntityDescription) 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) - UserInfo() foundation.Dictionary - SetUserInfo(value foundation.Dictionary) - ManagedObjectClassName() string - SetManagedObjectClassName(value string) - Subentities() []EntityDescription - SetSubentities(value []IEntityDescription) + 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) 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] @@ -70,10 +70,6 @@ func (ec _EntityDescriptionClass) Alloc() EntityDescription { return rv } -func EntityDescription_Alloc() EntityDescription { - return EntityDescriptionClass.Alloc() -} - func (ec _EntityDescriptionClass) New() EntityDescription { rv := objc.Call[EntityDescription](ec, objc.Sel("new")) rv.Autorelease() @@ -112,6 +108,14 @@ 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:"), objc.Ptr(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 @@ -127,30 +131,36 @@ func EntityDescription_InsertNewObjectForEntityForNameInManagedObjectContext(ent return EntityDescriptionClass.InsertNewObjectForEntityForNameInManagedObjectContext(entityName, context) } -// Returns a Boolean value that indicates whether the receiver is a sub-entity of another given entity. [Full Topic] +// A Boolean value that indicates whether the receiver represents an abstract 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:"), objc.Ptr(entity)) +// [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 } -// The managed object model with which the receiver is associated. [Full Topic] +// A Boolean value that indicates whether the receiver represents an abstract entity. [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 +// [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) } -// A dictionary containing the properties 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/1425137-propertiesbyname?language=objc -func (e_ EntityDescription) PropertiesByName() map[string]PropertyDescription { - rv := objc.Call[map[string]PropertyDescription](e_, objc.Sel("propertiesByName")) +// [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 } +// An array containing the sub-entities 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) +} + // The entity name of the receiver. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/coredata/nsentitydescription/1425101-name?language=objc @@ -166,6 +176,14 @@ 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 @@ -174,79 +192,96 @@ func (e_ EntityDescription) VersionHash() []byte { return rv } -// An array containing the properties of the receiver. [Full Topic] +// An array of fetch index descriptions for the entity. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coredata/nsentitydescription/1425125-properties?language=objc -func (e_ EntityDescription) Properties() []PropertyDescription { - rv := objc.Call[[]PropertyDescription](e_, objc.Sel("properties")) +// [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 containing the properties of the receiver. [Full Topic] +// An array of fetch index descriptions for the entity. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coredata/nsentitydescription/1425125-properties?language=objc -func (e_ EntityDescription) SetProperties(value []IPropertyDescription) { - objc.Call[objc.Void](e_, objc.Sel("setProperties:"), value) +// [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) } -// 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] +// A dictionary containing the properties of the receiver. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coredata/nsentitydescription/1425095-uniquenessconstraints?language=objc -func (e_ EntityDescription) UniquenessConstraints() [][]objc.Object { - rv := objc.Call[[][]objc.Object](e_, objc.Sel("uniquenessConstraints")) +// [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 } -// 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] +// The renaming identifier for the receiver. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coredata/nsentitydescription/1425095-uniquenessconstraints?language=objc -func (e_ EntityDescription) SetUniquenessConstraints(value [][]objc.IObject) { - objc.Call[objc.Void](e_, objc.Sel("setUniquenessConstraints:"), value) +// [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 user info dictionary of the receiver. [Full Topic] +// The renaming identifier for 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")) - return rv +// [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 user info dictionary 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/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/1425121-managedobjectmodel?language=objc +func (e_ EntityDescription) ManagedObjectModel() ManagedObjectModel { + rv := objc.Call[ManagedObjectModel](e_, objc.Sel("managedObjectModel")) + return rv } -// The name of the class that represents the receiver’s entity. [Full Topic] +// An array containing the properties of the receiver. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coredata/nsentitydescription/1425131-managedobjectclassname?language=objc -func (e_ EntityDescription) ManagedObjectClassName() string { - rv := objc.Call[string](e_, objc.Sel("managedObjectClassName")) +// [Full Topic]: https://developer.apple.com/documentation/coredata/nsentitydescription/1425125-properties?language=objc +func (e_ EntityDescription) Properties() []PropertyDescription { + rv := objc.Call[[]PropertyDescription](e_, objc.Sel("properties")) return rv } -// The name of the class that represents the receiver’s entity. [Full Topic] +// An array containing the properties of the receiver. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coredata/nsentitydescription/1425131-managedobjectclassname?language=objc -func (e_ EntityDescription) SetManagedObjectClassName(value string) { - objc.Call[objc.Void](e_, objc.Sel("setManagedObjectClassName:"), value) +// [Full Topic]: https://developer.apple.com/documentation/coredata/nsentitydescription/1425125-properties?language=objc +func (e_ EntityDescription) SetProperties(value []IPropertyDescription) { + objc.Call[objc.Void](e_, objc.Sel("setProperties:"), value) } -// An array containing the sub-entities of the receiver. [Full Topic] +// The super-entity of the receiver. [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/1425129-superentity?language=objc +func (e_ EntityDescription) Superentity() EntityDescription { + rv := objc.Call[EntityDescription](e_, objc.Sel("superentity")) return rv } -// An array containing the sub-entities of the receiver. [Full Topic] +// 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/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/1425095-uniquenessconstraints?language=objc +func (e_ EntityDescription) UniquenessConstraints() [][]objc.Object { + rv := objc.Call[[][]objc.Object](e_, objc.Sel("uniquenessConstraints")) + 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 +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] @@ -264,34 +299,19 @@ func (e_ EntityDescription) SetCoreSpotlightDisplayNameExpression(value foundati objc.Call[objc.Void](e_, objc.Sel("setCoreSpotlightDisplayNameExpression:"), objc.Ptr(value)) } -// The version hash modifier for the receiver. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/coredata/nsentitydescription/1425119-versionhashmodifier?language=objc -func (e_ EntityDescription) VersionHashModifier() string { - rv := objc.Call[string](e_, objc.Sel("versionHashModifier")) - return rv -} - -// The version hash modifier for the receiver. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/coredata/nsentitydescription/1425119-versionhashmodifier?language=objc -func (e_ EntityDescription) SetVersionHashModifier(value string) { - objc.Call[objc.Void](e_, objc.Sel("setVersionHashModifier:"), value) -} - -// The renaming identifier for the receiver. [Full Topic] +// The name of the class that represents the receiver’s entity. [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")) +// [Full Topic]: https://developer.apple.com/documentation/coredata/nsentitydescription/1425131-managedobjectclassname?language=objc +func (e_ EntityDescription) ManagedObjectClassName() string { + rv := objc.Call[string](e_, objc.Sel("managedObjectClassName")) return rv } -// The renaming identifier for the receiver. [Full Topic] +// The name of the class that represents the receiver’s entity. [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) +// [Full Topic]: https://developer.apple.com/documentation/coredata/nsentitydescription/1425131-managedobjectclassname?language=objc +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] @@ -302,56 +322,32 @@ func (e_ EntityDescription) RelationshipsByName() map[string]RelationshipDescrip 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] +// The user info dictionary of the receiver. [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")) +// [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 } -// An array of fetch index descriptions for the entity. [Full Topic] +// The user info dictionary of the receiver. [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) +// [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 super-entity of the receiver. [Full Topic] +// The version hash modifier for 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")) +// [Full Topic]: https://developer.apple.com/documentation/coredata/nsentitydescription/1425119-versionhashmodifier?language=objc +func (e_ EntityDescription) VersionHashModifier() string { + rv := objc.Call[string](e_, objc.Sel("versionHashModifier")) return rv } -// A dictionary containing the receiver’s sub-entities. [Full Topic] +// The version hash modifier for the receiver. [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 +// [Full Topic]: https://developer.apple.com/documentation/coredata/nsentitydescription/1425119-versionhashmodifier?language=objc +func (e_ EntityDescription) SetVersionHashModifier(value string) { + objc.Call[objc.Void](e_, objc.Sel("setVersionHashModifier:"), value) } diff --git a/macos/coredata/entity_mapping.gen.go b/macos/coredata/entity_mapping.gen.go index 3e64702e..79cde9a1 100644 --- a/macos/coredata/entity_mapping.gen.go +++ b/macos/coredata/entity_mapping.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package coredata @@ -19,28 +19,28 @@ type _EntityMappingClass struct { // An interface definition for the [EntityMapping] class. type IEntityMapping interface { objc.IObject - 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) + 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) + DestinationEntityName() string + SetDestinationEntityName(value string) } // A mapping instance that specifies how to map an entity from a source to a destination managed object model. [Full Topic] @@ -61,10 +61,6 @@ func (ec _EntityMappingClass) Alloc() EntityMapping { return rv } -func EntityMapping_Alloc() EntityMapping { - return EntityMappingClass.Alloc() -} - func (ec _EntityMappingClass) New() EntityMapping { rv := objc.Call[EntityMapping](ec, objc.Sel("new")) rv.Autorelease() @@ -80,64 +76,34 @@ func (e_ EntityMapping) Init() EntityMapping { return rv } -// The array of attribute 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")) - return rv -} - -// The array of attribute 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) -} - -// The class name of the migration policy 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")) - return rv -} - -// The class name of the migration policy 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) -} - -// The name of the entity mapping. [Full Topic] +// The mapping type for the entity mapping. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coredata/nsentitymapping/1443167-name?language=objc -func (e_ EntityMapping) Name() string { - rv := objc.Call[string](e_, objc.Sel("name")) +// [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 name of the entity mapping. [Full Topic] +// The mapping type for the entity mapping. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coredata/nsentitymapping/1443167-name?language=objc -func (e_ EntityMapping) SetName(value string) { - objc.Call[objc.Void](e_, objc.Sel("setName:"), 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 destination entity name for the entity mapping. [Full Topic] +// The source expression 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/1443180-sourceexpression?language=objc +func (e_ EntityMapping) SourceExpression() foundation.Expression { + rv := objc.Call[foundation.Expression](e_, objc.Sel("sourceExpression")) return rv } -// The destination entity name for the entity mapping. [Full Topic] +// The source expression 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/1443180-sourceexpression?language=objc +func (e_ EntityMapping) SetSourceExpression(value foundation.IExpression) { + objc.Call[objc.Void](e_, objc.Sel("setSourceExpression:"), objc.Ptr(value)) } // The user info dictionary for the entity mapping. [Full Topic] @@ -155,49 +121,49 @@ 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] +// The version hash for the destination entity 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/1443169-destinationentityversionhash?language=objc +func (e_ EntityMapping) DestinationEntityVersionHash() []byte { + rv := objc.Call[[]byte](e_, objc.Sel("destinationEntityVersionHash")) return rv } -// The source 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/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/1443169-destinationentityversionhash?language=objc +func (e_ EntityMapping) SetDestinationEntityVersionHash(value []byte) { + objc.Call[objc.Void](e_, objc.Sel("setDestinationEntityVersionHash:"), value) } -// The version hash of the source entity for the entity mapping. [Full Topic] +// The name of the entity mapping. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coredata/nsentitymapping/1443182-sourceentityversionhash?language=objc -func (e_ EntityMapping) SourceEntityVersionHash() []byte { - rv := objc.Call[[]byte](e_, objc.Sel("sourceEntityVersionHash")) +// [Full Topic]: https://developer.apple.com/documentation/coredata/nsentitymapping/1443167-name?language=objc +func (e_ EntityMapping) Name() string { + rv := objc.Call[string](e_, objc.Sel("name")) return rv } -// The version hash of the source entity for the entity mapping. [Full Topic] +// The name of the entity mapping. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coredata/nsentitymapping/1443182-sourceentityversionhash?language=objc -func (e_ EntityMapping) SetSourceEntityVersionHash(value []byte) { - objc.Call[objc.Void](e_, objc.Sel("setSourceEntityVersionHash:"), value) +// [Full Topic]: https://developer.apple.com/documentation/coredata/nsentitymapping/1443167-name?language=objc +func (e_ EntityMapping) SetName(value string) { + objc.Call[objc.Void](e_, objc.Sel("setName:"), value) } -// The mapping type 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/1443194-mappingtype?language=objc -func (e_ EntityMapping) MappingType() EntityMappingType { - rv := objc.Call[EntityMappingType](e_, objc.Sel("mappingType")) +// [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 mapping type 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/1443194-mappingtype?language=objc -func (e_ EntityMapping) SetMappingType(value EntityMappingType) { - objc.Call[objc.Void](e_, objc.Sel("setMappingType:"), 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 array of relationship mappings for the entity mapping. [Full Topic] @@ -215,32 +181,62 @@ func (e_ EntityMapping) SetRelationshipMappings(value []IPropertyMapping) { objc.Call[objc.Void](e_, objc.Sel("setRelationshipMappings:"), value) } -// The version hash for the destination entity for the entity mapping. [Full Topic] +// The version hash of the source entity 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/1443182-sourceentityversionhash?language=objc +func (e_ EntityMapping) SourceEntityVersionHash() []byte { + rv := objc.Call[[]byte](e_, objc.Sel("sourceEntityVersionHash")) return rv } -// The version hash for the destination entity for the entity mapping. [Full Topic] +// The version hash of the source entity 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/1443182-sourceentityversionhash?language=objc +func (e_ EntityMapping) SetSourceEntityVersionHash(value []byte) { + objc.Call[objc.Void](e_, objc.Sel("setSourceEntityVersionHash:"), value) } -// The source expression for the entity mapping. [Full Topic] +// The source entity name 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")) +// [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 expression for the entity mapping. [Full Topic] +// The source entity name 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:"), objc.Ptr(value)) +// [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 array of attribute 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")) + return rv +} + +// The array of attribute 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) +} + +// The destination entity name 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")) + return rv +} + +// The destination entity name 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) } diff --git a/macos/coredata/entity_migration_policy.gen.go b/macos/coredata/entity_migration_policy.gen.go index 1bb91276..bc560c68 100644 --- a/macos/coredata/entity_migration_policy.gen.go +++ b/macos/coredata/entity_migration_policy.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package coredata @@ -19,13 +19,13 @@ type _EntityMigrationPolicyClass struct { // An interface definition for the [EntityMigrationPolicy] class. type IEntityMigrationPolicy interface { objc.IObject - PerformCustomValidationForEntityMappingManagerError(mapping IEntityMapping, manager IMigrationManager, error foundation.IError) bool - CreateDestinationInstancesForSourceInstanceEntityMappingManagerError(sInstance IManagedObject, mapping IEntityMapping, manager IMigrationManager, error foundation.IError) bool - CreateRelationshipsForDestinationInstanceEntityMappingManagerError(dInstance IManagedObject, mapping IEntityMapping, manager IMigrationManager, error foundation.IError) bool + EndInstanceCreationForEntityMappingManagerError(mapping IEntityMapping, manager IMigrationManager, error foundation.IError) bool BeginEntityMappingManagerError(mapping IEntityMapping, manager IMigrationManager, error foundation.IError) bool - EndEntityMappingManagerError(mapping IEntityMapping, manager IMigrationManager, error foundation.IError) bool + CreateDestinationInstancesForSourceInstanceEntityMappingManagerError(sInstance IManagedObject, mapping IEntityMapping, manager IMigrationManager, error foundation.IError) bool EndRelationshipCreationForEntityMappingManagerError(mapping IEntityMapping, manager IMigrationManager, error foundation.IError) bool - EndInstanceCreationForEntityMappingManagerError(mapping IEntityMapping, manager IMigrationManager, error foundation.IError) bool + EndEntityMappingManagerError(mapping IEntityMapping, manager IMigrationManager, error foundation.IError) bool + CreateRelationshipsForDestinationInstanceEntityMappingManagerError(dInstance IManagedObject, mapping IEntityMapping, manager IMigrationManager, error foundation.IError) bool + PerformCustomValidationForEntityMappingManagerError(mapping IEntityMapping, manager IMigrationManager, error foundation.IError) bool } // A policy instance that customizes the migration process for an entity mapping. [Full Topic] @@ -46,10 +46,6 @@ func (ec _EntityMigrationPolicyClass) Alloc() EntityMigrationPolicy { return rv } -func EntityMigrationPolicy_Alloc() EntityMigrationPolicy { - return EntityMigrationPolicyClass.Alloc() -} - func (ec _EntityMigrationPolicyClass) New() EntityMigrationPolicy { rv := objc.Call[EntityMigrationPolicy](ec, objc.Sel("new")) rv.Autorelease() @@ -65,35 +61,35 @@ func (e_ EntityMigrationPolicy) Init() EntityMigrationPolicy { 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 foundation.IError) bool { - rv := objc.Call[bool](e_, objc.Sel("performCustomValidationForEntityMapping:manager:error:"), objc.Ptr(mapping), objc.Ptr(manager), objc.Ptr(error)) +// [Full Topic]: https://developer.apple.com/documentation/coredata/nsentitymigrationpolicy/1423805-endinstancecreationforentitymapp?language=objc +func (e_ EntityMigrationPolicy) EndInstanceCreationForEntityMappingManagerError(mapping IEntityMapping, manager IMigrationManager, error foundation.IError) bool { + rv := objc.Call[bool](e_, objc.Sel("endInstanceCreationForEntityMapping:manager:error:"), objc.Ptr(mapping), objc.Ptr(manager), objc.Ptr(error)) return rv } -// Creates the destination instance(s) for a given source instance. [Full Topic] +// Sets up state information before the start of a given entity mapping. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coredata/nsentitymigrationpolicy/1423801-createdestinationinstancesforsou?language=objc -func (e_ EntityMigrationPolicy) CreateDestinationInstancesForSourceInstanceEntityMappingManagerError(sInstance IManagedObject, mapping IEntityMapping, manager IMigrationManager, error foundation.IError) bool { - rv := objc.Call[bool](e_, objc.Sel("createDestinationInstancesForSourceInstance:entityMapping:manager:error:"), objc.Ptr(sInstance), objc.Ptr(mapping), objc.Ptr(manager), objc.Ptr(error)) +// [Full Topic]: https://developer.apple.com/documentation/coredata/nsentitymigrationpolicy/1423785-beginentitymapping?language=objc +func (e_ EntityMigrationPolicy) BeginEntityMappingManagerError(mapping IEntityMapping, manager IMigrationManager, error foundation.IError) bool { + rv := objc.Call[bool](e_, objc.Sel("beginEntityMapping:manager:error:"), objc.Ptr(mapping), objc.Ptr(manager), objc.Ptr(error)) return rv } -// Constructs the relationships between the newly-created destination instances. [Full Topic] +// Creates the destination instance(s) for a given source instance. [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 foundation.IError) bool { - rv := objc.Call[bool](e_, objc.Sel("createRelationshipsForDestinationInstance:entityMapping:manager:error:"), objc.Ptr(dInstance), objc.Ptr(mapping), objc.Ptr(manager), objc.Ptr(error)) +// [Full Topic]: https://developer.apple.com/documentation/coredata/nsentitymigrationpolicy/1423801-createdestinationinstancesforsou?language=objc +func (e_ EntityMigrationPolicy) CreateDestinationInstancesForSourceInstanceEntityMappingManagerError(sInstance IManagedObject, mapping IEntityMapping, manager IMigrationManager, error foundation.IError) bool { + rv := objc.Call[bool](e_, objc.Sel("createDestinationInstancesForSourceInstance:entityMapping:manager:error:"), objc.Ptr(sInstance), objc.Ptr(mapping), objc.Ptr(manager), objc.Ptr(error)) return rv } -// Sets up state information before the start of a given entity mapping. [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/1423785-beginentitymapping?language=objc -func (e_ EntityMigrationPolicy) BeginEntityMappingManagerError(mapping IEntityMapping, manager IMigrationManager, error foundation.IError) bool { - rv := objc.Call[bool](e_, objc.Sel("beginEntityMapping:manager:error:"), objc.Ptr(mapping), objc.Ptr(manager), objc.Ptr(error)) +// [Full Topic]: https://developer.apple.com/documentation/coredata/nsentitymigrationpolicy/1423793-endrelationshipcreationforentity?language=objc +func (e_ EntityMigrationPolicy) EndRelationshipCreationForEntityMappingManagerError(mapping IEntityMapping, manager IMigrationManager, error foundation.IError) bool { + rv := objc.Call[bool](e_, objc.Sel("endRelationshipCreationForEntityMapping:manager:error:"), objc.Ptr(mapping), objc.Ptr(manager), objc.Ptr(error)) return rv } @@ -105,18 +101,18 @@ func (e_ EntityMigrationPolicy) EndEntityMappingManagerError(mapping IEntityMapp 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 foundation.IError) bool { - rv := objc.Call[bool](e_, objc.Sel("endRelationshipCreationForEntityMapping:manager:error:"), objc.Ptr(mapping), objc.Ptr(manager), objc.Ptr(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 foundation.IError) bool { + rv := objc.Call[bool](e_, objc.Sel("createRelationshipsForDestinationInstance:entityMapping:manager:error:"), objc.Ptr(dInstance), objc.Ptr(mapping), objc.Ptr(manager), objc.Ptr(error)) 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] +// 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/1423805-endinstancecreationforentitymapp?language=objc -func (e_ EntityMigrationPolicy) EndInstanceCreationForEntityMappingManagerError(mapping IEntityMapping, manager IMigrationManager, error foundation.IError) bool { - rv := objc.Call[bool](e_, objc.Sel("endInstanceCreationForEntityMapping:manager:error:"), objc.Ptr(mapping), objc.Ptr(manager), objc.Ptr(error)) +// [Full Topic]: https://developer.apple.com/documentation/coredata/nsentitymigrationpolicy/1423791-performcustomvalidationforentity?language=objc +func (e_ EntityMigrationPolicy) PerformCustomValidationForEntityMappingManagerError(mapping IEntityMapping, manager IMigrationManager, error foundation.IError) bool { + rv := objc.Call[bool](e_, objc.Sel("performCustomValidationForEntityMapping:manager:error:"), objc.Ptr(mapping), objc.Ptr(manager), objc.Ptr(error)) return rv } diff --git a/macos/coredata/enumtypes.gen.go b/macos/coredata/enumtypes.gen.go index 96b2c6d5..a69f7d29 100644 --- a/macos/coredata/enumtypes.gen.go +++ b/macos/coredata/enumtypes.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package coredata diff --git a/macos/coredata/expression_description.gen.go b/macos/coredata/expression_description.gen.go index 52980a0b..a7136ddd 100644 --- a/macos/coredata/expression_description.gen.go +++ b/macos/coredata/expression_description.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package coredata @@ -43,10 +43,6 @@ func (ec _ExpressionDescriptionClass) Alloc() ExpressionDescription { return rv } -func ExpressionDescription_Alloc() ExpressionDescription { - return ExpressionDescriptionClass.Alloc() -} - func (ec _ExpressionDescriptionClass) New() ExpressionDescription { rv := objc.Call[ExpressionDescription](ec, objc.Sel("new")) rv.Autorelease() diff --git a/macos/coredata/fetch_index_description.gen.go b/macos/coredata/fetch_index_description.gen.go index 31200377..00649f85 100644 --- a/macos/coredata/fetch_index_description.gen.go +++ b/macos/coredata/fetch_index_description.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package coredata @@ -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) } @@ -60,10 +60,6 @@ func (fc _FetchIndexDescriptionClass) Alloc() FetchIndexDescription { return rv } -func FetchIndexDescription_Alloc() FetchIndexDescription { - return FetchIndexDescriptionClass.Alloc() -} - func (fc _FetchIndexDescriptionClass) New() FetchIndexDescription { rv := objc.Call[FetchIndexDescription](fc, objc.Sel("new")) rv.Autorelease() @@ -79,6 +75,21 @@ 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 @@ -102,21 +113,6 @@ 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 9df78b82..6de2017e 100644 --- a/macos/coredata/fetch_index_element_description.gen.go +++ b/macos/coredata/fetch_index_element_description.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package coredata @@ -20,11 +20,11 @@ type IFetchIndexElementDescription interface { objc.IObject CollationType() FetchIndexElementType SetCollationType(value FetchIndexElementType) - IndexDescription() FetchIndexDescription - PropertyName() string - Property() PropertyDescription IsAscending() bool SetAscending(value bool) + PropertyName() string + Property() PropertyDescription + IndexDescription() FetchIndexDescription } // Description of an Index Element [Full Topic] @@ -59,10 +59,6 @@ func (fc _FetchIndexElementDescriptionClass) Alloc() FetchIndexElementDescriptio return rv } -func FetchIndexElementDescription_Alloc() FetchIndexElementDescription { - return FetchIndexElementDescriptionClass.Alloc() -} - func (fc _FetchIndexElementDescriptionClass) New() FetchIndexElementDescription { rv := objc.Call[FetchIndexElementDescription](fc, objc.Sel("new")) rv.Autorelease() @@ -93,14 +89,21 @@ func (f_ FetchIndexElementDescription) SetCollationType(value FetchIndexElementT objc.Call[objc.Void](f_, objc.Sel("setCollationType:"), value) } -// [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) +} + // The specified name in the property description. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/coredata/nsfetchindexelementdescription/2887045-propertyname?language=objc @@ -117,17 +120,10 @@ func (f_ FetchIndexElementDescription) Property() PropertyDescription { return rv } -// 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) -} diff --git a/macos/coredata/fetch_request.gen.go b/macos/coredata/fetch_request.gen.go index b100c6cf..7989b1e0 100644 --- a/macos/coredata/fetch_request.gen.go +++ b/macos/coredata/fetch_request.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package coredata @@ -20,41 +20,41 @@ type _FetchRequestClass struct { type IFetchRequest interface { IPersistentStoreRequest Execute(error foundation.IError) []objc.Object - EntityName() string - ShouldRefreshRefetchedObjects() bool - SetShouldRefreshRefetchedObjects(value bool) - IncludesSubentities() bool - SetIncludesSubentities(value bool) + Entity() EntityDescription + SetEntity(value IEntityDescription) + IncludesPropertyValues() bool + SetIncludesPropertyValues(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) - FetchBatchSize() uint - SetFetchBatchSize(value uint) - ReturnsDistinctResults() bool - SetReturnsDistinctResults(value bool) - Predicate() foundation.Predicate - SetPredicate(value foundation.IPredicate) - PropertiesToFetch() []objc.Object - SetPropertiesToFetch(value []objc.IObject) - IncludesPropertyValues() bool - SetIncludesPropertyValues(value bool) - ReturnsObjectsAsFaults() bool - SetReturnsObjectsAsFaults(value bool) + ShouldRefreshRefetchedObjects() bool + SetShouldRefreshRefetchedObjects(value bool) FetchLimit() uint SetFetchLimit(value uint) - HavingPredicate() foundation.Predicate - SetHavingPredicate(value foundation.IPredicate) + 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) + PropertiesToFetch() []objc.Object + SetPropertiesToFetch(value []objc.IObject) } // A description of search criteria used to retrieve data from a persistent store. [Full Topic] @@ -70,16 +70,18 @@ func FetchRequestFrom(ptr unsafe.Pointer) FetchRequest { } } -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 (f_ FetchRequest) Init() FetchRequest { @@ -87,18 +89,16 @@ func (f_ FetchRequest) Init() FetchRequest { return rv } -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 (fc _FetchRequestClass) Alloc() FetchRequest { @@ -106,10 +106,6 @@ func (fc _FetchRequestClass) Alloc() FetchRequest { return rv } -func FetchRequest_Alloc() FetchRequest { - return FetchRequestClass.Alloc() -} - func (fc _FetchRequestClass) New() FetchRequest { rv := objc.Call[FetchRequest](fc, objc.Sel("new")) rv.Autorelease() @@ -128,42 +124,34 @@ func (f_ FetchRequest) Execute(error foundation.IError) []objc.Object { return rv } -// The name of the entity the request is configured to fetch. [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 -} - -// 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 entity specified for 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/1506979-entity?language=objc +func (f_ FetchRequest) Entity() EntityDescription { + rv := objc.Call[EntityDescription](f_, objc.Sel("entity")) 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 entity specified for 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/1506979-entity?language=objc +func (f_ FetchRequest) SetEntity(value IEntityDescription) { + objc.Call[objc.Void](f_, objc.Sel("setEntity:"), objc.Ptr(value)) } -// A Boolean value that indicates whether the fetch request includes subentities in the results. [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/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/1506387-includespropertyvalues?language=objc +func (f_ FetchRequest) IncludesPropertyValues() bool { + rv := objc.Call[bool](f_, objc.Sel("includesPropertyValues")) return rv } -// A Boolean value that indicates whether the fetch request includes subentities in the results. [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/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/1506387-includespropertyvalues?language=objc +func (f_ FetchRequest) SetIncludesPropertyValues(value bool) { + objc.Call[objc.Void](f_, objc.Sel("setIncludesPropertyValues:"), 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] @@ -196,197 +184,205 @@ func (f_ FetchRequest) SetPropertiesToGroupBy(value []objc.IObject) { objc.Call[objc.Void](f_, objc.Sel("setPropertiesToGroupBy:"), value) } -// The entity specified for the fetch request. [Full Topic] +// The sort descriptors of the fetch request. [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/1506262-sortdescriptors?language=objc +func (f_ FetchRequest) SortDescriptors() []foundation.SortDescriptor { + rv := objc.Call[[]foundation.SortDescriptor](f_, objc.Sel("sortDescriptors")) return rv } -// The entity specified for the fetch request. [Full Topic] +// The sort descriptors of the fetch request. [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:"), objc.Ptr(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) } -// The fetch offset of 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/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/1506440-shouldrefreshrefetchedobjects?language=objc +func (f_ FetchRequest) ShouldRefreshRefetchedObjects() bool { + rv := objc.Call[bool](f_, objc.Sel("shouldRefreshRefetchedObjects")) return rv } -// The fetch offset of 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/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/1506440-shouldrefreshrefetchedobjects?language=objc +func (f_ FetchRequest) SetShouldRefreshRefetchedObjects(value bool) { + objc.Call[objc.Void](f_, objc.Sel("setShouldRefreshRefetchedObjects:"), value) } -// The sort descriptors of the fetch request. [Full Topic] +// The fetch limit of 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/1506622-fetchlimit?language=objc +func (f_ FetchRequest) FetchLimit() uint { + rv := objc.Call[uint](f_, objc.Sel("fetchLimit")) return rv } -// The sort descriptors of the fetch request. [Full Topic] +// The fetch limit of 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/1506622-fetchlimit?language=objc +func (f_ FetchRequest) SetFetchLimit(value uint) { + objc.Call[objc.Void](f_, objc.Sel("setFetchLimit:"), value) } -// The batch size of the objects specified in the fetch request. [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/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/1506366-includessubentities?language=objc +func (f_ FetchRequest) IncludesSubentities() bool { + rv := objc.Call[bool](f_, objc.Sel("includesSubentities")) return rv } -// The batch size of the objects specified in the fetch request. [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/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/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 the fetch request returns only distinct values for the fields specified by propertiesToFetch. [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/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/1506756-returnsobjectsasfaults?language=objc +func (f_ FetchRequest) ReturnsObjectsAsFaults() bool { + rv := objc.Call[bool](f_, objc.Sel("returnsObjectsAsFaults")) return rv } -// A Boolean value that indicates whether the fetch request returns only distinct values for the fields specified by propertiesToFetch. [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/1506344-returnsdistinctresults?language=objc -func (f_ FetchRequest) SetReturnsDistinctResults(value bool) { - objc.Call[objc.Void](f_, objc.Sel("setReturnsDistinctResults:"), 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 batch size of the objects specified in 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/1506558-fetchbatchsize?language=objc +func (f_ FetchRequest) FetchBatchSize() uint { + rv := objc.Call[uint](f_, objc.Sel("fetchBatchSize")) return rv } -// The predicate of the fetch request. [Full Topic] +// The batch size of the objects specified in 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:"), objc.Ptr(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 collection of either property descriptions or string property names that specify which properties should be returned by the fetch. [Full Topic] +// The result type of the fetch 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/1506189-resulttype?language=objc +func (f_ FetchRequest) ResultType() FetchRequestResultType { + rv := objc.Call[FetchRequestResultType](f_, objc.Sel("resultType")) 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 result type of the fetch 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/1506189-resulttype?language=objc +func (f_ FetchRequest) SetResultType(value FetchRequestResultType) { + objc.Call[objc.Void](f_, objc.Sel("setResultType:"), value) } -// A Boolean value that indicates whether, when the fetch is executed, property data is obtained from the persistent store. [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/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/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, when the fetch is executed, property data is obtained from the persistent store. [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/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/1506429-havingpredicate?language=objc +func (f_ FetchRequest) SetHavingPredicate(value foundation.IPredicate) { + objc.Call[objc.Void](f_, objc.Sel("setHavingPredicate:"), objc.Ptr(value)) } -// A Boolean value that indicates whether the objects resulting from a fetch request are faults. [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/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/1506813-relationshipkeypathsforprefetchi?language=objc +func (f_ FetchRequest) RelationshipKeyPathsForPrefetching() []string { + rv := objc.Call[[]string](f_, objc.Sel("relationshipKeyPathsForPrefetching")) return rv } -// A Boolean value that indicates whether the objects resulting from a fetch request are faults. [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/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/1506813-relationshipkeypathsforprefetchi?language=objc +func (f_ FetchRequest) SetRelationshipKeyPathsForPrefetching(value []string) { + objc.Call[objc.Void](f_, objc.Sel("setRelationshipKeyPathsForPrefetching:"), value) } -// The fetch limit of the fetch request. [Full Topic] +// The predicate 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/1506638-predicate?language=objc +func (f_ FetchRequest) Predicate() foundation.Predicate { + rv := objc.Call[foundation.Predicate](f_, objc.Sel("predicate")) return rv } -// The fetch limit of the fetch request. [Full Topic] +// The predicate 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/1506638-predicate?language=objc +func (f_ FetchRequest) SetPredicate(value foundation.IPredicate) { + objc.Call[objc.Void](f_, objc.Sel("setPredicate:"), objc.Ptr(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 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/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/1506344-returnsdistinctresults?language=objc +func (f_ FetchRequest) ReturnsDistinctResults() bool { + rv := objc.Call[bool](f_, objc.Sel("returnsDistinctResults")) 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 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/1506429-havingpredicate?language=objc -func (f_ FetchRequest) SetHavingPredicate(value foundation.IPredicate) { - objc.Call[objc.Void](f_, objc.Sel("setHavingPredicate:"), objc.Ptr(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 result type of 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/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/1506233-entityname?language=objc +func (f_ FetchRequest) EntityName() string { + rv := objc.Call[string](f_, objc.Sel("entityName")) return rv } -// The result type of the fetch request. [Full Topic] +// The fetch offset of the fetch request. [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/1506770-fetchoffset?language=objc +func (f_ FetchRequest) FetchOffset() uint { + rv := objc.Call[uint](f_, objc.Sel("fetchOffset")) + return rv } -// The relationship key paths to prefetch along with the entity for the request. [Full Topic] +// The fetch offset of the fetch request. [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/1506770-fetchoffset?language=objc +func (f_ FetchRequest) SetFetchOffset(value uint) { + objc.Call[objc.Void](f_, objc.Sel("setFetchOffset:"), value) +} + +// 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/1506851-propertiestofetch?language=objc +func (f_ FetchRequest) PropertiesToFetch() []objc.Object { + rv := objc.Call[[]objc.Object](f_, objc.Sel("propertiesToFetch")) return rv } -// The relationship key paths to prefetch along with the entity for the 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/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/1506851-propertiestofetch?language=objc +func (f_ FetchRequest) SetPropertiesToFetch(value []objc.IObject) { + objc.Call[objc.Void](f_, objc.Sel("setPropertiesToFetch:"), value) } diff --git a/macos/coredata/fetch_request_expression.gen.go b/macos/coredata/fetch_request_expression.gen.go index d2c4a7cd..3ebcec36 100644 --- a/macos/coredata/fetch_request_expression.gen.go +++ b/macos/coredata/fetch_request_expression.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package coredata @@ -20,8 +20,8 @@ type _FetchRequestExpressionClass struct { type IFetchRequestExpression interface { foundation.IExpression RequestExpression() foundation.Expression - IsCountOnlyRequest() bool ContextExpression() foundation.Expression + IsCountOnlyRequest() bool } // An expression that evaluates the result of a fetch request on a managed object context. [Full Topic] @@ -42,10 +42,6 @@ func (fc _FetchRequestExpressionClass) Alloc() FetchRequestExpression { return rv } -func FetchRequestExpression_Alloc() FetchRequestExpression { - return FetchRequestExpressionClass.Alloc() -} - func (fc _FetchRequestExpressionClass) New() FetchRequestExpression { rv := objc.Call[FetchRequestExpression](fc, objc.Sel("new")) rv.Autorelease() @@ -98,14 +94,6 @@ func (f_ FetchRequestExpression) RequestExpression() foundation.Expression { 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 -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 @@ -113,3 +101,11 @@ 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 +func (f_ FetchRequestExpression) IsCountOnlyRequest() bool { + rv := objc.Call[bool](f_, objc.Sel("isCountOnlyRequest")) + return rv +} diff --git a/macos/coredata/fetch_request_result.gen.go b/macos/coredata/fetch_request_result_protocol.gen.go similarity index 54% rename from macos/coredata/fetch_request_result.gen.go rename to macos/coredata/fetch_request_result_protocol.gen.go index e2ce3e41..361e1611 100644 --- a/macos/coredata/fetch_request_result.gen.go +++ b/macos/coredata/fetch_request_result_protocol.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package coredata @@ -12,7 +12,10 @@ import ( type PFetchRequestResult interface { } -// A concrete type wrapper for the [PFetchRequestResult] protocol. -type FetchRequestResultWrapper struct { +// ensure impl type implements protocol interface +var _ PFetchRequestResult = (*FetchRequestResultObject)(nil) + +// A concrete type for the [PFetchRequestResult] protocol. +type FetchRequestResultObject struct { objc.Object } diff --git a/macos/coredata/fetched_property_description.gen.go b/macos/coredata/fetched_property_description.gen.go index c25e8409..e26995c7 100644 --- a/macos/coredata/fetched_property_description.gen.go +++ b/macos/coredata/fetched_property_description.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package coredata @@ -40,10 +40,6 @@ func (fc _FetchedPropertyDescriptionClass) Alloc() FetchedPropertyDescription { return rv } -func FetchedPropertyDescription_Alloc() FetchedPropertyDescription { - return FetchedPropertyDescriptionClass.Alloc() -} - func (fc _FetchedPropertyDescriptionClass) New() FetchedPropertyDescription { rv := objc.Call[FetchedPropertyDescription](fc, objc.Sel("new")) rv.Autorelease() diff --git a/macos/coredata/fetched_results_controller.gen.go b/macos/coredata/fetched_results_controller.gen.go index e66e0e04..3012680a 100644 --- a/macos/coredata/fetched_results_controller.gen.go +++ b/macos/coredata/fetched_results_controller.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package coredata @@ -20,19 +20,19 @@ type _FetchedResultsControllerClass struct { type IFetchedResultsController interface { objc.IObject PerformFetch(error foundation.IError) bool - SectionIndexTitleForSectionName(sectionName string) string + ObjectAtIndexPath(indexPath foundation.IIndexPath) objc.Object IndexPathForObject(object objc.IObject) foundation.IndexPath SectionForSectionIndexTitleAtIndex(title string, sectionIndex int) int - ObjectAtIndexPath(indexPath foundation.IIndexPath) objc.Object - CacheName() string + SectionIndexTitleForSectionName(sectionName string) string FetchRequest() FetchRequest + SectionIndexTitles() []string + FetchedObjects() []objc.Object SectionNameKeyPath() string - Delegate() FetchedResultsControllerDelegateWrapper + Delegate() FetchedResultsControllerDelegateObject SetDelegate(value PFetchedResultsControllerDelegate) SetDelegateObject(valueObject objc.IObject) - SectionIndexTitles() []string - FetchedObjects() []objc.Object - Sections() []FetchedResultsSectionInfoWrapper + CacheName() string + Sections() []FetchedResultsSectionInfoObject ManagedObjectContext() ManagedObjectContext } @@ -68,10 +68,6 @@ func (fc _FetchedResultsControllerClass) Alloc() FetchedResultsController { return rv } -func FetchedResultsController_Alloc() FetchedResultsController { - return FetchedResultsControllerClass.Alloc() -} - func (fc _FetchedResultsControllerClass) New() FetchedResultsController { rv := objc.Call[FetchedResultsController](fc, objc.Sel("new")) rv.Autorelease() @@ -95,28 +91,14 @@ func (f_ FetchedResultsController) PerformFetch(error foundation.IError) bool { 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:"), objc.Ptr(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] -// -// [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 @@ -133,20 +115,26 @@ func (f_ FetchedResultsController) SectionForSectionIndexTitleAtIndex(title stri 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:"), objc.Ptr(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 } -// The name of the file used to cache section information. [Full Topic] +// Deletes the cached section information with the given name. [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")) - return rv +// [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) } // The fetch request used to do the fetching. [Full Topic] @@ -157,6 +145,22 @@ 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 @@ -168,8 +172,8 @@ func (f_ FetchedResultsController) SectionNameKeyPath() string { // The object that is notified when the fetched results changed. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/coredata/nsfetchedresultscontroller/1622291-delegate?language=objc -func (f_ FetchedResultsController) Delegate() FetchedResultsControllerDelegateWrapper { - rv := objc.Call[FetchedResultsControllerDelegateWrapper](f_, objc.Sel("delegate")) +func (f_ FetchedResultsController) Delegate() FetchedResultsControllerDelegateObject { + rv := objc.Call[FetchedResultsControllerDelegateObject](f_, objc.Sel("delegate")) return rv } @@ -188,27 +192,19 @@ func (f_ FetchedResultsController) SetDelegateObject(valueObject objc.IObject) { objc.Call[objc.Void](f_, objc.Sel("setDelegate:"), objc.Ptr(valueObject)) } -// 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] +// The name of the file used to cache section information. [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")) +// [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 sections for the fetch results. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/coredata/nsfetchedresultscontroller/1622303-sections?language=objc -func (f_ FetchedResultsController) Sections() []FetchedResultsSectionInfoWrapper { - rv := objc.Call[[]FetchedResultsSectionInfoWrapper](f_, objc.Sel("sections")) +func (f_ FetchedResultsController) Sections() []FetchedResultsSectionInfoObject { + rv := objc.Call[[]FetchedResultsSectionInfoObject](f_, objc.Sel("sections")) return rv } diff --git a/macos/coredata/fetched_results_controller_delegate.gen.go b/macos/coredata/fetched_results_controller_delegate.gen.go index bfc6de0b..ea9074b1 100644 --- a/macos/coredata/fetched_results_controller_delegate.gen.go +++ b/macos/coredata/fetched_results_controller_delegate.gen.go @@ -1,8 +1,9 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package coredata import ( + "github.com/progrium/macdriver/macos/foundation" "github.com/progrium/macdriver/objc" ) @@ -10,6 +11,22 @@ 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 @@ -21,10 +38,82 @@ type PFetchedResultsControllerDelegate interface { // A delegate implementation builder for the [PFetchedResultsControllerDelegate] protocol. type FetchedResultsControllerDelegate struct { - _ControllerWillChangeContent func(controller FetchedResultsController) - _ControllerDidChangeContent func(controller FetchedResultsController) + _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 +} + +// 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 } @@ -60,29 +149,78 @@ func (di *FetchedResultsControllerDelegate) ControllerDidChangeContent(controlle di._ControllerDidChangeContent(controller) } -// A concrete type wrapper for the [PFetchedResultsControllerDelegate] protocol. -type FetchedResultsControllerDelegateWrapper struct { +// ensure impl type implements protocol interface +var _ PFetchedResultsControllerDelegate = (*FetchedResultsControllerDelegateObject)(nil) + +// A concrete type for the [PFetchedResultsControllerDelegate] protocol. +type FetchedResultsControllerDelegateObject struct { objc.Object } -func (f_ FetchedResultsControllerDelegateWrapper) HasControllerWillChangeContent() bool { +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:"), objc.Ptr(controller), objc.Ptr(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:"), objc.Ptr(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:"), objc.Ptr(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:"), objc.Ptr(controller), anObject, objc.Ptr(indexPath), type_, objc.Ptr(newIndexPath)) +} + +func (f_ FetchedResultsControllerDelegateObject) HasControllerWillChangeContent() bool { return f_.RespondsToSelector(objc.Sel("controllerWillChangeContent:")) } // Notifies the receiver that the fetched results controller is about to start processing of one or more changes due to an add, remove, move, or update. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/coredata/nsfetchedresultscontrollerdelegate/1622295-controllerwillchangecontent?language=objc -func (f_ FetchedResultsControllerDelegateWrapper) ControllerWillChangeContent(controller IFetchedResultsController) { +func (f_ FetchedResultsControllerDelegateObject) ControllerWillChangeContent(controller FetchedResultsController) { objc.Call[objc.Void](f_, objc.Sel("controllerWillChangeContent:"), objc.Ptr(controller)) } -func (f_ FetchedResultsControllerDelegateWrapper) HasControllerDidChangeContent() bool { +func (f_ FetchedResultsControllerDelegateObject) HasControllerDidChangeContent() bool { return f_.RespondsToSelector(objc.Sel("controllerDidChangeContent:")) } // Notifies the receiver that the fetched results controller has completed processing of one or more changes due to an add, remove, move, or update. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/coredata/nsfetchedresultscontrollerdelegate/1622290-controllerdidchangecontent?language=objc -func (f_ FetchedResultsControllerDelegateWrapper) ControllerDidChangeContent(controller IFetchedResultsController) { +func (f_ FetchedResultsControllerDelegateObject) ControllerDidChangeContent(controller FetchedResultsController) { objc.Call[objc.Void](f_, objc.Sel("controllerDidChangeContent:"), objc.Ptr(controller)) } diff --git a/macos/coredata/fetched_results_section_info.gen.go b/macos/coredata/fetched_results_section_info_protocol.gen.go similarity index 68% rename from macos/coredata/fetched_results_section_info.gen.go rename to macos/coredata/fetched_results_section_info_protocol.gen.go index af861b3c..be7c8c93 100644 --- a/macos/coredata/fetched_results_section_info.gen.go +++ b/macos/coredata/fetched_results_section_info_protocol.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package coredata @@ -10,72 +10,75 @@ import ( // // [Full Topic]: https://developer.apple.com/documentation/coredata/nsfetchedresultssectioninfo?language=objc type PFetchedResultsSectionInfo interface { - // optional - IndexTitle() string - HasIndexTitle() bool - // optional Name() string HasName() bool // optional - NumberOfObjects() uint - HasNumberOfObjects() bool + IndexTitle() string + HasIndexTitle() bool // optional - Objects() []objc.IObject + Objects() []objc.Object HasObjects() bool -} -// A concrete type wrapper for the [PFetchedResultsSectionInfo] protocol. -type FetchedResultsSectionInfoWrapper struct { - objc.Object + // optional + NumberOfObjects() uint + HasNumberOfObjects() bool } -func (f_ FetchedResultsSectionInfoWrapper) HasIndexTitle() bool { - return f_.RespondsToSelector(objc.Sel("indexTitle")) -} +// ensure impl type implements protocol interface +var _ PFetchedResultsSectionInfo = (*FetchedResultsSectionInfoObject)(nil) -// The index title of the section. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/coredata/nsfetchedresultssectioninfo/1622300-indextitle?language=objc -func (f_ FetchedResultsSectionInfoWrapper) IndexTitle() string { - rv := objc.Call[string](f_, objc.Sel("indexTitle")) - return rv +// A concrete type for the [PFetchedResultsSectionInfo] protocol. +type FetchedResultsSectionInfoObject struct { + objc.Object } -func (f_ FetchedResultsSectionInfoWrapper) HasName() bool { +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_ FetchedResultsSectionInfoWrapper) Name() string { +func (f_ FetchedResultsSectionInfoObject) Name() string { rv := objc.Call[string](f_, objc.Sel("name")) return rv } -func (f_ FetchedResultsSectionInfoWrapper) HasNumberOfObjects() bool { - return f_.RespondsToSelector(objc.Sel("numberOfObjects")) +func (f_ FetchedResultsSectionInfoObject) HasIndexTitle() bool { + return f_.RespondsToSelector(objc.Sel("indexTitle")) } -// The number of objects (rows) in the section. [Full Topic] +// The index title of the section. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coredata/nsfetchedresultssectioninfo/1622289-numberofobjects?language=objc -func (f_ FetchedResultsSectionInfoWrapper) NumberOfObjects() uint { - rv := objc.Call[uint](f_, objc.Sel("numberOfObjects")) +// [Full Topic]: https://developer.apple.com/documentation/coredata/nsfetchedresultssectioninfo/1622300-indextitle?language=objc +func (f_ FetchedResultsSectionInfoObject) IndexTitle() string { + rv := objc.Call[string](f_, objc.Sel("indexTitle")) return rv } -func (f_ FetchedResultsSectionInfoWrapper) HasObjects() bool { +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_ FetchedResultsSectionInfoWrapper) Objects() []objc.Object { +func (f_ FetchedResultsSectionInfoObject) Objects() []objc.Object { rv := objc.Call[[]objc.Object](f_, objc.Sel("objects")) return rv } + +func (f_ FetchedResultsSectionInfoObject) HasNumberOfObjects() bool { + return f_.RespondsToSelector(objc.Sel("numberOfObjects")) +} + +// The number of objects (rows) in the section. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/coredata/nsfetchedresultssectioninfo/1622289-numberofobjects?language=objc +func (f_ FetchedResultsSectionInfoObject) NumberOfObjects() uint { + rv := objc.Call[uint](f_, objc.Sel("numberOfObjects")) + return rv +} diff --git a/macos/coredata/incremental_store.gen.go b/macos/coredata/incremental_store.gen.go index 042d0aa3..828ea280 100644 --- a/macos/coredata/incremental_store.gen.go +++ b/macos/coredata/incremental_store.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package coredata @@ -19,14 +19,14 @@ type _IncrementalStoreClass struct { // An interface definition for the [IncrementalStore] class. type IIncrementalStore interface { IPersistentStore + ObtainPermanentIDsForObjectsError(array []IManagedObject, error foundation.IError) []ManagedObjectID + ManagedObjectContextDidRegisterObjectsWithIDs(objectIDs []IManagedObjectID) ReferenceObjectForObjectID(objectID IManagedObjectID) objc.Object - NewObjectIDForEntityReferenceObject(entity IEntityDescription, data objc.IObject) ManagedObjectID ManagedObjectContextDidUnregisterObjectsWithIDs(objectIDs []IManagedObjectID) - ManagedObjectContextDidRegisterObjectsWithIDs(objectIDs []IManagedObjectID) - ExecuteRequestWithContextError(request IPersistentStoreRequest, context IManagedObjectContext, error foundation.IError) objc.Object - NewValueForRelationshipForObjectWithIDWithContextError(relationship IRelationshipDescription, objectID IManagedObjectID, context IManagedObjectContext, error foundation.IError) objc.Object + NewObjectIDForEntityReferenceObject(entity IEntityDescription, data objc.IObject) ManagedObjectID NewValuesForObjectWithIDWithContextError(objectID IManagedObjectID, context IManagedObjectContext, error foundation.IError) IncrementalStoreNode - ObtainPermanentIDsForObjectsError(array []IManagedObject, error foundation.IError) []ManagedObjectID + NewValueForRelationshipForObjectWithIDWithContextError(relationship IRelationshipDescription, objectID IManagedObjectID, context IManagedObjectContext, error foundation.IError) objc.Object + ExecuteRequestWithContextError(request IPersistentStoreRequest, context IManagedObjectContext, error foundation.IError) objc.Object } // An abstract superclass defining the API through which Core Data communicates with a store. [Full Topic] @@ -47,10 +47,6 @@ func (ic _IncrementalStoreClass) Alloc() IncrementalStore { return rv } -func IncrementalStore_Alloc() IncrementalStore { - return IncrementalStoreClass.Alloc() -} - func (ic _IncrementalStoreClass) New() IncrementalStore { rv := objc.Call[IncrementalStore](ic, objc.Sel("new")) rv.Autorelease() @@ -80,6 +76,21 @@ 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 foundation.IError) []ManagedObjectID { + rv := objc.Call[[]ManagedObjectID](i_, objc.Sel("obtainPermanentIDsForObjects:error:"), array, objc.Ptr(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 @@ -88,15 +99,21 @@ func (i_ IncrementalStore) ReferenceObjectForObjectID(objectID IManagedObjectID) return rv } -// Returns a new object ID that uses given data as the key. [Full Topic] +// Returns the identifier for the store at a given URL. [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:"), objc.Ptr(entity), data) - rv.Autorelease() +// [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:"), objc.Ptr(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) +} + // 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 @@ -104,27 +121,11 @@ func (i_ IncrementalStore) ManagedObjectContextDidUnregisterObjectsWithIDs(objec objc.Call[objc.Void](i_, objc.Sel("managedObjectContextDidUnregisterObjectsWithIDs:"), objectIDs) } -// 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 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 foundation.IError) objc.Object { - rv := objc.Call[objc.Object](i_, objc.Sel("executeRequest:withContext:error:"), objc.Ptr(request), objc.Ptr(context), objc.Ptr(error)) - return rv -} - -// Returns the relationship for the given relationship of the object with a given object ID. [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/1506438-newvalueforrelationship?language=objc -func (i_ IncrementalStore) NewValueForRelationshipForObjectWithIDWithContextError(relationship IRelationshipDescription, objectID IManagedObjectID, context IManagedObjectContext, error foundation.IError) objc.Object { - rv := objc.Call[objc.Object](i_, objc.Sel("newValueForRelationship:forObjectWithID:withContext:error:"), objc.Ptr(relationship), objc.Ptr(objectID), objc.Ptr(context), objc.Ptr(error)) - rv.Autorelease() +// [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:"), objc.Ptr(entity), data) return rv } @@ -133,29 +134,21 @@ func (i_ IncrementalStore) NewValueForRelationshipForObjectWithIDWithContextErro // [Full Topic]: https://developer.apple.com/documentation/coredata/nsincrementalstore/1506729-newvaluesforobjectwithid?language=objc func (i_ IncrementalStore) NewValuesForObjectWithIDWithContextError(objectID IManagedObjectID, context IManagedObjectContext, error foundation.IError) IncrementalStoreNode { rv := objc.Call[IncrementalStoreNode](i_, objc.Sel("newValuesForObjectWithID:withContext:error:"), objc.Ptr(objectID), objc.Ptr(context), objc.Ptr(error)) - rv.Autorelease() return rv } -// Returns an array containing the object IDs for a given array of newly-inserted objects. [Full Topic] +// 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/1506348-obtainpermanentidsforobjects?language=objc -func (i_ IncrementalStore) ObtainPermanentIDsForObjectsError(array []IManagedObject, error foundation.IError) []ManagedObjectID { - rv := objc.Call[[]ManagedObjectID](i_, objc.Sel("obtainPermanentIDsForObjects:error:"), array, objc.Ptr(error)) +// [Full Topic]: https://developer.apple.com/documentation/coredata/nsincrementalstore/1506438-newvalueforrelationship?language=objc +func (i_ IncrementalStore) NewValueForRelationshipForObjectWithIDWithContextError(relationship IRelationshipDescription, objectID IManagedObjectID, context IManagedObjectContext, error foundation.IError) objc.Object { + rv := objc.Call[objc.Object](i_, objc.Sel("newValueForRelationship:forObjectWithID:withContext:error:"), objc.Ptr(relationship), objc.Ptr(objectID), objc.Ptr(context), objc.Ptr(error)) return rv } -// Returns the identifier for the store at a given URL. [Full Topic] +// 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/1506781-identifierfornewstoreaturl?language=objc -func (ic _IncrementalStoreClass) IdentifierForNewStoreAtURL(storeURL foundation.IURL) objc.Object { - rv := objc.Call[objc.Object](ic, objc.Sel("identifierForNewStoreAtURL:"), objc.Ptr(storeURL)) +// [Full Topic]: https://developer.apple.com/documentation/coredata/nsincrementalstore/1506653-executerequest?language=objc +func (i_ IncrementalStore) ExecuteRequestWithContextError(request IPersistentStoreRequest, context IManagedObjectContext, error foundation.IError) objc.Object { + rv := objc.Call[objc.Object](i_, objc.Sel("executeRequest:withContext:error:"), objc.Ptr(request), objc.Ptr(context), objc.Ptr(error)) 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 cafd5a9b..5d322ff7 100644 --- a/macos/coredata/incremental_store_node.gen.go +++ b/macos/coredata/incremental_store_node.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package coredata @@ -18,10 +18,10 @@ type _IncrementalStoreNodeClass struct { // An interface definition for the [IncrementalStoreNode] class. type IIncrementalStoreNode interface { objc.IObject - ValueForPropertyDescription(prop IPropertyDescription) objc.Object UpdateWithValuesVersion(values map[string]objc.IObject, version uint64) - Version() uint64 + ValueForPropertyDescription(prop IPropertyDescription) objc.Object ObjectID() ManagedObjectID + Version() uint64 } // A concrete class used to represent basic nodes in a Core Data incremental store. [Full Topic] @@ -56,10 +56,6 @@ func (ic _IncrementalStoreNodeClass) Alloc() IncrementalStoreNode { return rv } -func IncrementalStoreNode_Alloc() IncrementalStoreNode { - return IncrementalStoreNodeClass.Alloc() -} - func (ic _IncrementalStoreNodeClass) New() IncrementalStoreNode { rv := objc.Call[IncrementalStoreNode](ic, objc.Sel("new")) rv.Autorelease() @@ -75,14 +71,6 @@ func (i_ IncrementalStoreNode) Init() IncrementalStoreNode { return rv } -// Returns the value for the given property. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/coredata/nsincrementalstorenode/1506442-valueforpropertydescription?language=objc -func (i_ IncrementalStoreNode) ValueForPropertyDescription(prop IPropertyDescription) objc.Object { - rv := objc.Call[objc.Object](i_, objc.Sel("valueForPropertyDescription:"), objc.Ptr(prop)) - 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 @@ -90,11 +78,11 @@ func (i_ IncrementalStoreNode) UpdateWithValuesVersion(values map[string]objc.IO objc.Call[objc.Void](i_, objc.Sel("updateWithValues:version:"), values, version) } -// The version of data in the receiver. [Full Topic] +// Returns the value for the given property. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coredata/nsincrementalstorenode/1506769-version?language=objc -func (i_ IncrementalStoreNode) Version() uint64 { - rv := objc.Call[uint64](i_, objc.Sel("version")) +// [Full Topic]: https://developer.apple.com/documentation/coredata/nsincrementalstorenode/1506442-valueforpropertydescription?language=objc +func (i_ IncrementalStoreNode) ValueForPropertyDescription(prop IPropertyDescription) objc.Object { + rv := objc.Call[objc.Object](i_, objc.Sel("valueForPropertyDescription:"), objc.Ptr(prop)) return rv } @@ -105,3 +93,11 @@ func (i_ IncrementalStoreNode) ObjectID() ManagedObjectID { rv := objc.Call[ManagedObjectID](i_, objc.Sel("objectID")) return rv } + +// The version of data in the receiver. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/coredata/nsincrementalstorenode/1506769-version?language=objc +func (i_ IncrementalStoreNode) Version() uint64 { + rv := objc.Call[uint64](i_, objc.Sel("version")) + return rv +} diff --git a/macos/coredata/managed_object.gen.go b/macos/coredata/managed_object.gen.go index 7501d1a8..760f6109 100644 --- a/macos/coredata/managed_object.gen.go +++ b/macos/coredata/managed_object.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package coredata @@ -19,44 +19,45 @@ type _ManagedObjectClass struct { // An interface definition for the [ManagedObject] class. type IManagedObject interface { objc.IObject - PrimitiveValueForKey(key string) objc.Object - DidChangeValueForKey(key string) + WillTurnIntoFault() + AwakeFromFetch() + ValueForKey(key string) objc.Object + WillChangeValueForKey(key string) + ChangedValues() map[string]objc.Object + PrepareForDeletion() + InitWithEntityInsertIntoManagedObjectContext(entity IEntityDescription, context IManagedObjectContext) ManagedObject + ValidateForDelete(error foundation.IError) bool ValidateValueForKeyError(value objc.IObject, key string, error foundation.IError) bool DidAccessValueForKey(key string) - ObservationInfo() unsafe.Pointer - ChangedValues() map[string]objc.Object + HasFaultForRelationshipNamed(key string) bool + WillSave() + SetObservationInfo(inObservationInfo unsafe.Pointer) + DidTurnIntoFault() AwakeFromInsert() + DidChangeValueForKeyWithSetMutationUsingObjects(inKey string, inMutationKind foundation.KeyValueSetMutationKind, inObjects foundation.ISet) + ObservationInfo() unsafe.Pointer ObjectIDsForRelationshipNamed(key string) []ManagedObjectID - WillSave() - DidSave() - ValidateForDelete(error foundation.IError) bool + WillAccessValueForKey(key string) SetPrimitiveValueForKey(value objc.IObject, key string) - WillTurnIntoFault() - AwakeFromFetch() + WillChangeValueForKeyWithSetMutationUsingObjects(inKey string, inMutationKind foundation.KeyValueSetMutationKind, inObjects foundation.ISet) ValidateForInsert(error foundation.IError) bool - PrepareForDeletion() - ValidateForUpdate(error foundation.IError) bool + PrimitiveValueForKey(key string) objc.Object AwakeFromSnapshotEvents(flags SnapshotEventType) CommittedValuesForKeys(keys []string) map[string]objc.Object - HasFaultForRelationshipNamed(key string) bool - WillAccessValueForKey(key string) - DidTurnIntoFault() - SetValueForKey(value objc.IObject, key string) + DidChangeValueForKey(key string) 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 + SetValueForKey(value objc.IObject, key string) + DidSave() + ValidateForUpdate(error foundation.IError) bool HasPersistentChangedValues() bool FaultingState() uint - IsUpdated() bool + HasChanges() bool + ManagedObjectContext() ManagedObjectContext + IsInserted() 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] @@ -91,10 +92,6 @@ func (mc _ManagedObjectClass) Alloc() ManagedObject { return rv } -func ManagedObject_Alloc() ManagedObject { - return ManagedObjectClass.Alloc() -} - func (mc _ManagedObjectClass) New() ManagedObject { rv := objc.Call[ManagedObject](mc, objc.Sel("new")) rv.Autorelease() @@ -110,19 +107,64 @@ func (m_ ManagedObject) Init() ManagedObject { 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 converting it to a fault. [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/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 has changed. [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/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/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] +// +// [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:"), objc.Ptr(entity), objc.Ptr(context)) + return rv +} + +// Determines whether the managed object can be deleted in its current state. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/coredata/nsmanagedobject/1506195-validatefordelete?language=objc +func (m_ ManagedObject) ValidateForDelete(error foundation.IError) bool { + rv := objc.Call[bool](m_, objc.Sel("validateForDelete:"), objc.Ptr(error)) + return rv } // Validates a property value for a given key. [Full Topic] @@ -140,35 +182,33 @@ func (m_ ManagedObject) DidAccessValueForKey(key string) { objc.Call[objc.Void](m_, objc.Sel("didAccessValueForKey:"), key) } -// Returns the observation info of the managed object. [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/1506210-observationinfo?language=objc -func (m_ ManagedObject) ObservationInfo() unsafe.Pointer { - rv := objc.Call[unsafe.Pointer](m_, objc.Sel("observationInfo")) +// [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 an initialized fetch request with the entity this subclass represents. [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/1640605-fetchrequest?language=objc -func (mc _ManagedObjectClass) FetchRequest() FetchRequest { - rv := objc.Call[FetchRequest](mc, objc.Sel("fetchRequest")) - 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 an initialized fetch request with the entity this subclass represents. [Full Topic] +// Sets the observation info of the managed object. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coredata/nsmanagedobject/1640605-fetchrequest?language=objc -func ManagedObject_FetchRequest() FetchRequest { - return ManagedObjectClass.FetchRequest() +// [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) } -// 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 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/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 +// [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")) } // Provides an opportunity to add code into the life cycle of the managed object when initially creating it. [Full Topic] @@ -178,34 +218,34 @@ func (m_ ManagedObject) AwakeFromInsert() { objc.Call[objc.Void](m_, objc.Sel("awakeFromInsert")) } -// Returns the object IDs for all of the managed objects that are in the named relationship. [Full Topic] +// Provides an opportunity to respond when a change was made to a specified to-many relationship. [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/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, objc.Ptr(inObjects)) } -// Provides an opportunity to add code into the life cycle of the managed object before saving it. [Full Topic] +// Returns the observation info of the managed object. [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/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 after the managed object’s context completes a save operation. [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/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/1506201-objectidsforrelationshipnamed?language=objc +func (m_ ManagedObject) ObjectIDsForRelationshipNamed(key string) []ManagedObjectID { + rv := objc.Call[[]ManagedObjectID](m_, objc.Sel("objectIDsForRelationshipNamed:"), key) + return rv } -// Determines whether the managed object can be deleted in its current state. [Full Topic] +// Provides support for key-value observing access notification. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coredata/nsmanagedobject/1506195-validatefordelete?language=objc -func (m_ ManagedObject) ValidateForDelete(error foundation.IError) bool { - rv := objc.Call[bool](m_, objc.Sel("validateForDelete:"), objc.Ptr(error)) - 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) } // Sets the value of a given property in the managed object's private internal storage. [Full Topic] @@ -215,18 +255,11 @@ func (m_ ManagedObject) SetPrimitiveValueForKey(value objc.IObject, key string) objc.Call[objc.Void](m_, objc.Sel("setPrimitiveValue:forKey:"), value, key) } -// 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] +// Provides an opportunity to respond when a change is about to be made to a specified to-many relationship. [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")) +// [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, objc.Ptr(inObjects)) } // Determines whether the managed object can be inserted in its current state. [Full Topic] @@ -237,18 +270,11 @@ func (m_ ManagedObject) ValidateForInsert(error foundation.IError) bool { 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")) -} - -// Determines whether the managed object's current state is valid. [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/1506998-validateforupdate?language=objc -func (m_ ManagedObject) ValidateForUpdate(error foundation.IError) bool { - rv := objc.Call[bool](m_, objc.Sel("validateForUpdate:"), objc.Ptr(error)) +// [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 } @@ -259,41 +285,34 @@ func (m_ ManagedObject) AwakeFromSnapshotEvents(flags SnapshotEventType) { objc.Call[objc.Void](m_, objc.Sel("awakeFromSnapshotEvents:"), flags) } -// 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 -func (m_ ManagedObject) CommittedValuesForKeys(keys []string) map[string]objc.Object { - rv := objc.Call[map[string]objc.Object](m_, objc.Sel("committedValuesForKeys:"), keys) - return rv -} - -// Returns a Boolean value that indicates whether the relationship for a given key is a fault. [Full Topic] +// Returns an initialized fetch request with the entity this subclass represents. [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/1640605-fetchrequest?language=objc +func (mc _ManagedObjectClass) FetchRequest() FetchRequest { + rv := objc.Call[FetchRequest](mc, objc.Sel("fetchRequest")) return rv } -// Provides support for key-value observing access notification. [Full Topic] +// Returns an initialized fetch request with the entity this subclass represents. [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/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 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/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/1506771-committedvaluesforkeys?language=objc +func (m_ ManagedObject) CommittedValuesForKeys(keys []string) map[string]objc.Object { + rv := objc.Call[map[string]objc.Object](m_, objc.Sel("committedValuesForKeys:"), keys) + return rv } -// Sets the specified property of the managed object to the specified value. [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/1506397-setvalue?language=objc -func (m_ ManagedObject) SetValueForKey(value objc.IObject, key string) { - objc.Call[objc.Void](m_, objc.Sel("setValue:forKey:"), value, key) +// [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) } // 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] @@ -304,49 +323,40 @@ func (m_ ManagedObject) ChangedValuesForCurrentEvent() map[string]objc.Object { 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) -} - -// Sets the observation info of the managed object. [Full Topic] +// Sets the specified property of the managed object to the specified value. [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/1506397-setvalue?language=objc +func (m_ ManagedObject) SetValueForKey(value objc.IObject, key string) { + objc.Call[objc.Void](m_, objc.Sel("setValue:forKey:"), value, key) } -// Returns the value for the property specified by key. [Full Topic] +// Returns the entity description that is associated with this subclass. [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) +// [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")) return rv } -// Initializes a managed object from an entity description and inserts it into the specified managed object context. [Full Topic] +// Returns the entity description that is associated with this subclass. [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:"), objc.Ptr(entity), objc.Ptr(context)) - return rv +// [Full Topic]: https://developer.apple.com/documentation/coredata/nsmanagedobject/1640588-entity?language=objc +func ManagedObject_Entity() EntityDescription { + return ManagedObjectClass.Entity() } -// The entity description of the managed object. [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/1506562-entity?language=objc -func (m_ ManagedObject) Entity() EntityDescription { - rv := objc.Call[EntityDescription](m_, objc.Sel("entity")) - 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")) } -// A Boolean value that indicates whether the managed object has been inserted in a managed object context. [Full Topic] +// Determines whether the managed object's current state is valid. [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/1506998-validateforupdate?language=objc +func (m_ ManagedObject) ValidateForUpdate(error foundation.IError) bool { + rv := objc.Call[bool](m_, objc.Sel("validateForUpdate:"), objc.Ptr(error)) return rv } @@ -358,14 +368,6 @@ func (m_ ManagedObject) HasPersistentChangedValues() bool { return rv } -// The faulting state of the managed object. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/coredata/nsmanagedobject/1506720-faultingstate?language=objc -func (m_ ManagedObject) FaultingState() uint { - rv := objc.Call[uint](m_, objc.Sel("faultingState")) - return rv -} - // 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/1506727-contextshouldignoreunmodeledprop?language=objc @@ -381,27 +383,19 @@ func ManagedObject_ContextShouldIgnoreUnmodeledPropertyChanges() bool { return ManagedObjectClass.ContextShouldIgnoreUnmodeledPropertyChanges() } -// A Boolean value that indicates whether the managed object 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")) - return rv -} - -// A Boolean value that indicates whether the managed object will be deleted during the next save. [Full Topic] +// The faulting state of the managed object. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coredata/nsmanagedobject/1506681-deleted?language=objc -func (m_ ManagedObject) IsDeleted() bool { - rv := objc.Call[bool](m_, objc.Sel("isDeleted")) +// [Full Topic]: https://developer.apple.com/documentation/coredata/nsmanagedobject/1506720-faultingstate?language=objc +func (m_ ManagedObject) FaultingState() uint { + rv := objc.Call[uint](m_, objc.Sel("faultingState")) return rv } -// The object ID of the managed object. [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/1506848-objectid?language=objc -func (m_ ManagedObject) ObjectID() ManagedObjectID { - rv := objc.Call[ManagedObjectID](m_, objc.Sel("objectID")) +// [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 } @@ -413,11 +407,27 @@ func (m_ ManagedObject) ManagedObjectContext() ManagedObjectContext { 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 the managed object has been inserted in a managed object context. [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/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 will be deleted during the next save. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/coredata/nsmanagedobject/1506681-deleted?language=objc +func (m_ ManagedObject) IsDeleted() bool { + rv := objc.Call[bool](m_, objc.Sel("isDeleted")) + return rv +} + +// The object ID of the managed object. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/coredata/nsmanagedobject/1506848-objectid?language=objc +func (m_ ManagedObject) ObjectID() ManagedObjectID { + rv := objc.Call[ManagedObjectID](m_, objc.Sel("objectID")) return rv } @@ -428,3 +438,11 @@ func (m_ ManagedObject) IsFault() bool { rv := objc.Call[bool](m_, objc.Sel("isFault")) return rv } + +// A Boolean value that indicates whether the managed object 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")) + return rv +} diff --git a/macos/coredata/managed_object_context.gen.go b/macos/coredata/managed_object_context.gen.go index 3b2a1f66..9bdd027f 100644 --- a/macos/coredata/managed_object_context.gen.go +++ b/macos/coredata/managed_object_context.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package coredata @@ -19,61 +19,61 @@ type _ManagedObjectContextClass struct { // An interface definition for the [ManagedObjectContext] class. type IManagedObjectContext interface { objc.IObject - ExistingObjectWithIDError(objectID IManagedObjectID, error foundation.IError) 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 foundation.IError) []objc.Object - CountForFetchRequestError(request IFetchRequest, error foundation.IError) uint - Save(error foundation.IError) bool - InsertObject(object IManagedObject) - ProcessPendingChanges() Rollback() - RefreshObjectMergeChanges(object IManagedObject, flag bool) + ObserveValueForKeyPathOfObjectChangeContext(keyPath string, object objc.IObject, change map[string]objc.IObject, context unsafe.Pointer) ExecuteRequestError(request IPersistentStoreRequest, error foundation.IError) PersistentStoreResult - SetQueryGenerationFromTokenError(generation IQueryGenerationToken, error foundation.IError) bool - DeleteObject(object IManagedObject) - PerformBlock(block func()) + RefreshObjectMergeChanges(object IManagedObject, flag bool) ObjectWithID(objectID IManagedObjectID) ManagedObject + SetQueryGenerationFromTokenError(generation IQueryGenerationToken, error foundation.IError) bool + DetectConflictsForObject(object IManagedObject) + CountForFetchRequestError(request IFetchRequest, error foundation.IError) uint + ExecuteFetchRequestError(request IFetchRequest, error foundation.IError) []objc.Object + ShouldHandleInaccessibleFaultForObjectIDTriggeredByProperty(fault IManagedObject, oid IManagedObjectID, property IPropertyDescription) bool RefreshAllObjects() - Undo() + DeleteObject(object IManagedObject) + ExistingObjectWithIDError(objectID IManagedObjectID, error foundation.IError) ManagedObject ObtainPermanentIDsForObjectsError(objects []IManagedObject, error foundation.IError) bool - Redo() - ObserveValueForKeyPathOfObjectChangeContext(keyPath string, object objc.IObject, change map[string]objc.IObject, context unsafe.Pointer) + Undo() + InsertObject(object IManagedObject) + Save(error foundation.IError) bool Reset() - UndoManager() foundation.UndoManager - SetUndoManager(value foundation.IUndoManager) + ObjectRegisteredForID(objectID IManagedObjectID) ManagedObject + MergeChangesFromContextDidSaveNotification(notification foundation.INotification) + PerformBlock(block func()) + PerformBlockAndWait(block func()) + Redo() + ProcessPendingChanges() + HasChanges() bool + ConcurrencyType() ManagedObjectContextConcurrencyType + RegisteredObjects() foundation.Set + RetainsRegisteredObjects() bool + SetRetainsRegisteredObjects(value bool) 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) - HasChanges() bool + PropagatesDeletesAtEndOfEvent() bool + SetPropagatesDeletesAtEndOfEvent(value bool) + UndoManager() foundation.UndoManager + SetUndoManager(value foundation.IUndoManager) ParentContext() ManagedObjectContext SetParentContext(value IManagedObjectContext) - UpdatedObjects() foundation.Set - StalenessInterval() foundation.TimeInterval - SetStalenessInterval(value foundation.TimeInterval) + AutomaticallyMergesChangesFromParent() bool + SetAutomaticallyMergesChangesFromParent(value bool) + DeletedObjects() foundation.Set } // An object space to manipulate and track changes to managed objects. [Full Topic] @@ -94,10 +94,6 @@ func (mc _ManagedObjectContextClass) Alloc() ManagedObjectContext { return rv } -func ManagedObjectContext_Alloc() ManagedObjectContext { - return ManagedObjectContextClass.Alloc() -} - func (mc _ManagedObjectContextClass) New() ManagedObjectContext { rv := objc.Call[ManagedObjectContext](mc, objc.Sel("new")) rv.Autorelease() @@ -113,43 +109,6 @@ 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 foundation.IError) ManagedObject { - rv := objc.Call[ManagedObject](m_, objc.Sel("existingObjectWithID:error:"), objc.Ptr(objectID), objc.Ptr(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:"), objc.Ptr(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:"), objc.Ptr(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:"), objc.Ptr(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 @@ -157,43 +116,41 @@ func (m_ ManagedObjectContext) AssignObjectToPersistentStore(object objc.IObject objc.Call[objc.Void](m_, objc.Sel("assignObject:toPersistentStore:"), object, objc.Ptr(store)) } -// Creates a log of the inaccessible fault. [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/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:"), objc.Ptr(fault), objc.Ptr(oid), objc.Ptr(property)) - return rv +// [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 an array of objects that meet the criteria of the specified fetch request. [Full Topic] +// 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/1506672-executefetchrequest?language=objc -func (m_ ManagedObjectContext) ExecuteFetchRequestError(request IFetchRequest, error foundation.IError) []objc.Object { - rv := objc.Call[[]objc.Object](m_, objc.Sel("executeFetchRequest:error:"), objc.Ptr(request), objc.Ptr(error)) - return rv +// [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 number of objects the specified request fetches when it executes. [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/1506868-countforfetchrequest?language=objc -func (m_ ManagedObjectContext) CountForFetchRequestError(request IFetchRequest, error foundation.IError) uint { - rv := objc.Call[uint](m_, objc.Sel("countForFetchRequest:error:"), objc.Ptr(request), objc.Ptr(error)) +// [Full Topic]: https://developer.apple.com/documentation/coredata/nsmanagedobjectcontext/1506834-executerequest?language=objc +func (m_ ManagedObjectContext) ExecuteRequestError(request IPersistentStoreRequest, error foundation.IError) PersistentStoreResult { + rv := objc.Call[PersistentStoreResult](m_, objc.Sel("executeRequest:error:"), objc.Ptr(request), objc.Ptr(error)) return rv } -// Attempts to commit unsaved changes to registered objects to the context’s parent store. [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/1506866-save?language=objc -func (m_ ManagedObjectContext) Save(error foundation.IError) bool { - rv := objc.Call[bool](m_, objc.Sel("save:"), objc.Ptr(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:"), objc.Ptr(object), flag) } -// Registers an object to be inserted in the context’s persistent store the next time changes are saved. [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/1506794-insertobject?language=objc -func (m_ ManagedObjectContext) InsertObject(object IManagedObject) { - objc.Call[objc.Void](m_, objc.Sel("insertObject:"), objc.Ptr(object)) +// [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:"), objc.Ptr(objectID)) + return rv } // Handles changes from other processes or from a serialized state. [Full Topic] @@ -210,43 +167,52 @@ func ManagedObjectContext_MergeChangesFromRemoteContextSaveIntoContexts(changeNo ManagedObjectContextClass.MergeChangesFromRemoteContextSaveIntoContexts(changeNotificationData, contexts) } -// Forces the context to process changes to the object graph. [Full Topic] +// Sets the query generation this context should use. [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/1640469-setquerygenerationfromtoken?language=objc +func (m_ ManagedObjectContext) SetQueryGenerationFromTokenError(generation IQueryGenerationToken, error foundation.IError) bool { + rv := objc.Call[bool](m_, objc.Sel("setQueryGenerationFromToken:error:"), objc.Ptr(generation), objc.Ptr(error)) + return rv } -// Removes everything from the undo stack, discards all insertions and deletions, and restores updated objects to their last committed values. [Full Topic] +// Marks an object for conflict detection. [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/1506843-detectconflictsforobject?language=objc +func (m_ ManagedObjectContext) DetectConflictsForObject(object IManagedObject) { + objc.Call[objc.Void](m_, objc.Sel("detectConflictsForObject:"), objc.Ptr(object)) } -// Updates the persistent properties of a managed object to use the latest values from the persistent store. [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/1506224-refreshobject?language=objc -func (m_ ManagedObjectContext) RefreshObjectMergeChanges(object IManagedObject, flag bool) { - objc.Call[objc.Void](m_, objc.Sel("refreshObject:mergeChanges:"), objc.Ptr(object), flag) +// [Full Topic]: https://developer.apple.com/documentation/coredata/nsmanagedobjectcontext/1506868-countforfetchrequest?language=objc +func (m_ ManagedObjectContext) CountForFetchRequestError(request IFetchRequest, error foundation.IError) uint { + rv := objc.Call[uint](m_, objc.Sel("countForFetchRequest:error:"), objc.Ptr(request), objc.Ptr(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 an array of objects that meet the criteria of the specified fetch request. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coredata/nsmanagedobjectcontext/1506834-executerequest?language=objc -func (m_ ManagedObjectContext) ExecuteRequestError(request IPersistentStoreRequest, error foundation.IError) PersistentStoreResult { - rv := objc.Call[PersistentStoreResult](m_, objc.Sel("executeRequest:error:"), objc.Ptr(request), objc.Ptr(error)) +// [Full Topic]: https://developer.apple.com/documentation/coredata/nsmanagedobjectcontext/1506672-executefetchrequest?language=objc +func (m_ ManagedObjectContext) ExecuteFetchRequestError(request IFetchRequest, error foundation.IError) []objc.Object { + rv := objc.Call[[]objc.Object](m_, objc.Sel("executeFetchRequest:error:"), objc.Ptr(request), objc.Ptr(error)) return rv } -// Sets the query generation this context should use. [Full Topic] +// Creates a log of the inaccessible fault. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coredata/nsmanagedobjectcontext/1640469-setquerygenerationfromtoken?language=objc -func (m_ ManagedObjectContext) SetQueryGenerationFromTokenError(generation IQueryGenerationToken, error foundation.IError) bool { - rv := objc.Call[bool](m_, objc.Sel("setQueryGenerationFromToken:error:"), objc.Ptr(generation), objc.Ptr(error)) +// [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:"), objc.Ptr(fault), objc.Ptr(oid), objc.Ptr(property)) 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 @@ -254,26 +220,20 @@ func (m_ ManagedObjectContext) DeleteObject(object IManagedObject) { objc.Call[objc.Void](m_, objc.Sel("deleteObject:"), objc.Ptr(object)) } -// Asynchronously performs the specified block on the context’s queue. [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) -} - -// Returns either an existing object from the context or a fault that represents that object. [Full Topic] +// Returns an existing object from either the context or the persistent store. [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:"), objc.Ptr(objectID)) +// [Full Topic]: https://developer.apple.com/documentation/coredata/nsmanagedobjectcontext/1506686-existingobjectwithid?language=objc +func (m_ ManagedObjectContext) ExistingObjectWithIDError(objectID IManagedObjectID, error foundation.IError) ManagedObject { + rv := objc.Call[ManagedObject](m_, objc.Sel("existingObjectWithID:error:"), objc.Ptr(objectID), objc.Ptr(error)) return rv } -// Refreshes all of the registered managed objects in the context. [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/1506217-refreshallobjects?language=objc -func (m_ ManagedObjectContext) RefreshAllObjects() { - objc.Call[objc.Void](m_, objc.Sel("refreshAllObjects")) +// [Full Topic]: https://developer.apple.com/documentation/coredata/nsmanagedobjectcontext/1506793-obtainpermanentidsforobjects?language=objc +func (m_ ManagedObjectContext) ObtainPermanentIDsForObjectsError(objects []IManagedObject, error foundation.IError) bool { + rv := objc.Call[bool](m_, objc.Sel("obtainPermanentIDsForObjects:error:"), objects, objc.Ptr(error)) + return rv } // 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] @@ -283,26 +243,19 @@ func (m_ ManagedObjectContext) Undo() { objc.Call[objc.Void](m_, objc.Sel("undo")) } -// 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/1506793-obtainpermanentidsforobjects?language=objc -func (m_ ManagedObjectContext) ObtainPermanentIDsForObjectsError(objects []IManagedObject, error foundation.IError) bool { - rv := objc.Call[bool](m_, objc.Sel("obtainPermanentIDsForObjects:error:"), objects, objc.Ptr(error)) - return rv -} - -// 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] +// 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/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/1506794-insertobject?language=objc +func (m_ ManagedObjectContext) InsertObject(object IManagedObject) { + objc.Call[objc.Void](m_, objc.Sel("insertObject:"), objc.Ptr(object)) } -// Allows a context that has registered as an observer of a value to be notified of a change to that value. [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/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/1506866-save?language=objc +func (m_ ManagedObjectContext) Save(error foundation.IError) bool { + rv := objc.Call[bool](m_, objc.Sel("save:"), objc.Ptr(error)) + return rv } // Returns the context to its base state. [Full Topic] @@ -312,64 +265,63 @@ func (m_ ManagedObjectContext) Reset() { objc.Call[objc.Void](m_, objc.Sel("reset")) } -// The object that provides undo support for the context. [Full Topic] +// Returns an object that exists in the context. [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/1506789-objectregisteredforid?language=objc +func (m_ ManagedObjectContext) ObjectRegisteredForID(objectID IManagedObjectID) ManagedObject { + rv := objc.Call[ManagedObject](m_, objc.Sel("objectRegisteredForID:"), objc.Ptr(objectID)) return rv } -// The object that provides undo support for the context. [Full Topic] +// Merges the changes specified in a given notification. [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:"), objc.Ptr(value)) +// [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:"), objc.Ptr(notification)) } -// The merge policy of the context. [Full Topic] +// Asynchronously performs the specified block on the context’s queue. [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")) - 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) } -// The merge policy of the context. [Full Topic] +// Synchronously performs the specified block on the context’s queue. [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) +// [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) } -// The persistent store coordinator of the context. [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/1506618-persistentstorecoordinator?language=objc -func (m_ ManagedObjectContext) PersistentStoreCoordinator() PersistentStoreCoordinator { - rv := objc.Call[PersistentStoreCoordinator](m_, objc.Sel("persistentStoreCoordinator")) - 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")) } -// The persistent store coordinator of the context. [Full Topic] +// Forces the context to process changes to the object graph. [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:"), objc.Ptr(value)) +// [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")) } -// The developer-provided name of 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/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/1506954-haschanges?language=objc +func (m_ ManagedObjectContext) HasChanges() bool { + rv := objc.Call[bool](m_, objc.Sel("hasChanges")) return rv } -// 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) SetName(value string) { - objc.Call[objc.Void](m_, objc.Sel("setName:"), value) +// [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 set of registered managed objects in the context. [Full Topic] @@ -380,21 +332,6 @@ 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 @@ -410,35 +347,49 @@ func (m_ ManagedObjectContext) SetRetainsRegisteredObjects(value bool) { objc.Call[objc.Void](m_, objc.Sel("setRetainsRegisteredObjects:"), value) } -// The set of objects that will be removed from their persistent store during the next save operation. [Full Topic] +// The merge policy of the context. [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")) +// [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 } -// The user information for the context. [Full Topic] +// The merge policy of the context. [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/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] +// +// [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 } -// A Boolean value that indicates whether the context automatically merges changes saved to its persistent store coordinator or parent 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/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/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] +// +// [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 } -// 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) SetStalenessInterval(value foundation.TimeInterval) { + objc.Call[objc.Void](m_, objc.Sel("setStalenessInterval:"), value) } // Returns the token associated with the query generation currently in use by this context. [Full Topic] @@ -449,34 +400,57 @@ func (m_ ManagedObjectContext) QueryGenerationToken() QueryGenerationToken { return rv } -// The author for the context that is used as an identifier in persistent history transactions. [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/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/1506192-insertedobjects?language=objc +func (m_ ManagedObjectContext) InsertedObjects() foundation.Set { + rv := objc.Call[foundation.Set](m_, objc.Sel("insertedObjects")) return rv } -// The author for the context that is used as an identifier in persistent history transactions. [Full Topic] +// The persistent store coordinator of the context. [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) +// [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 } -// The concurrency type for the context. [Full Topic] +// The persistent store coordinator 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")) +// [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:"), objc.Ptr(value)) +} + +// The set of objects registered with the context that have uncommitted changes. [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 } -// The set of objects that have been inserted into the context but not yet saved in a persistent store. [Full Topic] +// The developer-provided name of the context. [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")) +// [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 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] +// +// [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 } @@ -495,14 +469,36 @@ func (m_ ManagedObjectContext) SetShouldDeleteInaccessibleFaults(value bool) { objc.Call[objc.Void](m_, objc.Sel("setShouldDeleteInaccessibleFaults:"), value) } -// A Boolean value that indicates whether the context has uncommitted changes. [Full Topic] +// 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/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/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] +// +// [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 +} + +// 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:"), objc.Ptr(value)) +} + // The parent of the context. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/coredata/nsmanagedobjectcontext/1506529-parentcontext?language=objc @@ -518,25 +514,25 @@ func (m_ ManagedObjectContext) SetParentContext(value IManagedObjectContext) { objc.Call[objc.Void](m_, objc.Sel("setParentContext:"), objc.Ptr(value)) } -// The set of objects registered with the context that have uncommitted changes. [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/1506985-updatedobjects?language=objc -func (m_ ManagedObjectContext) UpdatedObjects() foundation.Set { - rv := objc.Call[foundation.Set](m_, objc.Sel("updatedObjects")) +// [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) StalenessInterval() foundation.TimeInterval { - rv := objc.Call[foundation.TimeInterval](m_, objc.Sel("stalenessInterval")) - return rv +// [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) } -// 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] +// 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/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/1506699-deletedobjects?language=objc +func (m_ ManagedObjectContext) DeletedObjects() foundation.Set { + rv := objc.Call[foundation.Set](m_, objc.Sel("deletedObjects")) + return rv } diff --git a/macos/coredata/managed_object_id.gen.go b/macos/coredata/managed_object_id.gen.go index 3ff7b2eb..d6237dd2 100644 --- a/macos/coredata/managed_object_id.gen.go +++ b/macos/coredata/managed_object_id.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package coredata @@ -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] @@ -43,10 +43,6 @@ func (mc _ManagedObjectIDClass) Alloc() ManagedObjectID { return rv } -func ManagedObjectID_Alloc() ManagedObjectID { - return ManagedObjectIDClass.Alloc() -} - func (mc _ManagedObjectIDClass) New() ManagedObjectID { rv := objc.Call[ManagedObjectID](mc, objc.Sel("new")) rv.Autorelease() @@ -70,14 +66,6 @@ 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 @@ -93,3 +81,11 @@ 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 cc4c4e6e..47d546fa 100644 --- a/macos/coredata/managed_object_model.gen.go +++ b/macos/coredata/managed_object_model.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package coredata @@ -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 - SetEntitiesForConfiguration(entities []IEntityDescription, configuration string) + EntityVersionHashesByName() map[string][]byte + Entities() []EntityDescription + SetEntities(value []IEntityDescription) VersionIdentifiers() foundation.Set SetVersionIdentifiers(value foundation.ISet) + Configurations() []string LocalizationDictionary() map[string]string SetLocalizationDictionary(value map[string]string) - FetchRequestTemplatesByName() map[string]FetchRequest - Entities() []EntityDescription - SetEntities(value []IEntityDescription) EntitiesByName() map[string]EntityDescription - EntityVersionHashesByName() map[string][]byte - Configurations() []string + FetchRequestTemplatesByName() map[string]FetchRequest } // A programmatic representation of the .xcdatamodeld file describing your objects. [Full Topic] @@ -50,6 +50,11 @@ 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:"), objc.Ptr(url)) return rv @@ -64,20 +69,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 } -func ManagedObjectModel_Alloc() ManagedObjectModel { - return ManagedObjectModelClass.Alloc() -} - func (mc _ManagedObjectModelClass) New() ManagedObjectModel { rv := objc.Call[ManagedObjectModel](mc, objc.Sel("new")) rv.Autorelease() @@ -88,14 +84,6 @@ func NewManagedObjectModel() ManagedObjectModel { return ManagedObjectModelClass.New() } -// 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 the entities of the model for a specified configuration. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/coredata/nsmanagedobjectmodel/1506693-entitiesforconfiguration?language=objc @@ -104,6 +92,21 @@ func (m_ ManagedObjectModel) EntitiesForConfiguration(configuration string) []En 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 (mc _ManagedObjectModelClass) MergedModelFromBundles(bundles []foundation.IBundle) ManagedObjectModel { + rv := objc.Call[ManagedObjectModel](mc, objc.Sel("mergedModelFromBundles:"), bundles) + 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 @@ -111,6 +114,21 @@ func (m_ ManagedObjectModel) SetFetchRequestTemplateForName(fetchRequestTemplate objc.Call[objc.Void](m_, objc.Sel("setFetchRequestTemplate:forName:"), objc.Ptr(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 @@ -119,19 +137,19 @@ func (m_ ManagedObjectModel) IsConfigurationCompatibleWithStoreMetadata(configur return rv } -// Returns the fetch request with a specified name. [Full Topic] +// Returns a merged model from a specified array for the version information in provided metadata. [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) +// [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) return rv } -// Associates the specified entities with the model using the given configuration name. [Full Topic] +// Returns a merged model from a specified array for the version information in provided metadata. [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) +// [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) } // Returns, for the version information in given metadata, a model merged from a given array of models. [Full Topic] @@ -149,19 +167,50 @@ func ManagedObjectModel_ModelByMergingModelsForStoreMetadata(models []IManagedOb return ManagedObjectModelClass.ModelByMergingModelsForStoreMetadata(models, metadata) } -// Returns a model created by merging all the models found in given bundles. [Full Topic] +// Creates a single model from an array of existing models. [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/1506450-modelbymergingmodels?language=objc +func (mc _ManagedObjectModelClass) ModelByMergingModels(models []IManagedObjectModel) ManagedObjectModel { + rv := objc.Call[ManagedObjectModel](mc, objc.Sel("modelByMergingModels:"), models) return rv } -// Returns a model created by merging all the models found in given bundles. [Full Topic] +// Creates a single model from an array of existing models. [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) +// [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] +// +// [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 set of developer-defined version identifiers for the object model. [Full Topic] @@ -179,6 +228,14 @@ func (m_ ManagedObjectModel) SetVersionIdentifiers(value foundation.ISet) { objc.Call[objc.Void](m_, objc.Sel("setVersionIdentifiers:"), objc.Ptr(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 @@ -194,29 +251,6 @@ 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 @@ -225,18 +259,10 @@ func (m_ ManagedObjectModel) EntitiesByName() map[string]EntityDescription { 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 -} - -// All the available configuration names of the model. [Full Topic] +// A dictionary of the receiver’s fetch request templates, keyed by name. [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")) +// [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 } diff --git a/macos/coredata/mapping_model.gen.go b/macos/coredata/mapping_model.gen.go index a67491e8..7ebfe99a 100644 --- a/macos/coredata/mapping_model.gen.go +++ b/macos/coredata/mapping_model.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package coredata @@ -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] @@ -56,10 +56,6 @@ func (mc _MappingModelClass) Alloc() MappingModel { return rv } -func MappingModel_Alloc() MappingModel { - return MappingModelClass.Alloc() -} - func (mc _MappingModelClass) New() MappingModel { rv := objc.Call[MappingModel](mc, objc.Sel("new")) rv.Autorelease() @@ -105,14 +101,6 @@ 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 @@ -127,3 +115,11 @@ 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 4b169252..02dac803 100644 --- a/macos/coredata/merge_conflict.gen.go +++ b/macos/coredata/merge_conflict.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package coredata @@ -19,11 +19,11 @@ type _MergeConflictClass struct { type IMergeConflict interface { objc.IObject CachedSnapshot() map[string]objc.Object - OldVersionNumber() uint SourceObject() ManagedObject + OldVersionNumber() uint + PersistedSnapshot() map[string]objc.Object 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] @@ -58,10 +58,6 @@ func (mc _MergeConflictClass) Alloc() MergeConflict { return rv } -func MergeConflict_Alloc() MergeConflict { - return MergeConflictClass.Alloc() -} - func (mc _MergeConflictClass) New() MergeConflict { rv := objc.Call[MergeConflict](mc, objc.Sel("new")) rv.Autorelease() @@ -85,6 +81,14 @@ 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 @@ -93,11 +97,11 @@ func (m_ MergeConflict) OldVersionNumber() uint { return rv } -// The source object for the conflict. [Full Topic] +// 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/1506809-sourceobject?language=objc -func (m_ MergeConflict) SourceObject() ManagedObject { - rv := objc.Call[ManagedObject](m_, objc.Sel("sourceObject")) +// [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 } @@ -116,11 +120,3 @@ 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 f62bde35..2a8d247b 100644 --- a/macos/coredata/merge_policy.gen.go +++ b/macos/coredata/merge_policy.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package coredata @@ -19,10 +19,10 @@ type _MergePolicyClass struct { // An interface definition for the [MergePolicy] class. type IMergePolicy interface { objc.IObject - ResolveConstraintConflictsError(list []IConstraintConflict, error foundation.IError) bool - ResolveConflictsError(list []objc.IObject, error foundation.IError) bool InitWithMergeType(ty MergePolicyType) objc.Object + ResolveConstraintConflictsError(list []IConstraintConflict, error foundation.IError) bool ResolveOptimisticLockingVersionConflictsError(list []IMergeConflict, error foundation.IError) bool + ResolveConflictsError(list []objc.IObject, error foundation.IError) bool MergeType() MergePolicyType } @@ -44,10 +44,6 @@ func (mc _MergePolicyClass) Alloc() MergePolicy { return rv } -func MergePolicy_Alloc() MergePolicy { - return MergePolicyClass.Alloc() -} - func (mc _MergePolicyClass) New() MergePolicy { rv := objc.Call[MergePolicy](mc, objc.Sel("new")) rv.Autorelease() @@ -63,6 +59,14 @@ 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 @@ -71,6 +75,14 @@ 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 foundation.IError) bool { + rv := objc.Call[bool](m_, objc.Sel("resolveOptimisticLockingVersionConflicts:error:"), list, objc.Ptr(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 @@ -79,20 +91,19 @@ func (m_ MergePolicy) ResolveConflictsError(list []objc.IObject, error foundatio return rv } -// Returns a merge policy initialized with a given policy type. [Full Topic] +// The default merge policy for all managed object contexts. [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) +// [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 } -// Resolves the conflicts in a given list. [Full Topic] +// The default merge policy for all managed object contexts. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coredata/nsmergepolicy/1506787-resolveoptimisticlockingversionc?language=objc -func (m_ MergePolicy) ResolveOptimisticLockingVersionConflictsError(list []IMergeConflict, error foundation.IError) bool { - rv := objc.Call[bool](m_, objc.Sel("resolveOptimisticLockingVersionConflicts:error:"), list, objc.Ptr(error)) - return rv +// [Full Topic]: https://developer.apple.com/documentation/coredata/nsmergepolicy/1690612-errormergepolicy?language=objc +func MergePolicy_ErrorMergePolicy() MergePolicy { + return MergePolicyClass.ErrorMergePolicy() } // A property-based merge policy that applies in-memory changes. [Full Topic] @@ -110,6 +121,21 @@ 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 @@ -147,33 +173,3 @@ 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 01328813..8851a7aa 100644 --- a/macos/coredata/migration_manager.gen.go +++ b/macos/coredata/migration_manager.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package coredata @@ -19,24 +19,24 @@ type _MigrationManagerClass struct { // An interface definition for the [MigrationManager] class. type IMigrationManager interface { objc.IObject - 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 + DestinationInstancesForEntityMappingNamedSourceInstances(mappingName string, sourceInstances []IManagedObject) []ManagedObject + SourceInstancesForEntityMappingNamedDestinationInstances(mappingName string, destinationInstances []IManagedObject) []ManagedObject + SourceEntityForEntityMapping(mEntity IEntityMapping) EntityDescription + DestinationEntityForEntityMapping(mEntity IEntityMapping) EntityDescription + AssociateSourceInstanceWithDestinationInstanceForEntityMapping(sourceInstance IManagedObject, destinationInstance IManagedObject, entityMapping IEntityMapping) UsesStoreSpecificMigrationManager() bool SetUsesStoreSpecificMigrationManager(value bool) - MigrationProgress() float64 UserInfo() foundation.Dictionary SetUserInfo(value foundation.Dictionary) CurrentEntityMapping() EntityMapping MappingModel() MappingModel + MigrationProgress() float64 + 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] @@ -71,10 +71,6 @@ func (mc _MigrationManagerClass) Alloc() MigrationManager { return rv } -func MigrationManager_Alloc() MigrationManager { - return MigrationManagerClass.Alloc() -} - func (mc _MigrationManagerClass) New() MigrationManager { rv := objc.Call[MigrationManager](mc, objc.Sel("new")) rv.Autorelease() @@ -90,45 +86,6 @@ 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:"), objc.Ptr(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:"), objc.Ptr(sourceInstance), objc.Ptr(destinationInstance), objc.Ptr(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:"), objc.Ptr(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 @@ -143,38 +100,45 @@ func (m_ MigrationManager) Reset() { objc.Call[objc.Void](m_, objc.Sel("reset")) } -// The source model for the migration manager. [Full Topic] +// 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/1417592-sourcemodel?language=objc -func (m_ MigrationManager) SourceModel() ManagedObjectModel { - rv := objc.Call[ManagedObjectModel](m_, objc.Sel("sourceModel")) +// [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 } -// The managed object context the migration manager uses for writing the destination persistent store. [Full Topic] +// 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/1417578-destinationcontext?language=objc -func (m_ MigrationManager) DestinationContext() ManagedObjectContext { - rv := objc.Call[ManagedObjectContext](m_, objc.Sel("destinationContext")) +// [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 } -// The managed object context the migration manager uses for reading the source persistent store. [Full Topic] +// Returns the entity description for the source entity of a given entity mapping. [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")) +// [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:"), objc.Ptr(mEntity)) return rv } -// The destination model for the migration manager. [Full Topic] +// Returns the entity description for the destination entity of a given entity mapping. [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")) +// [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:"), objc.Ptr(mEntity)) 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:"), objc.Ptr(sourceInstance), objc.Ptr(destinationInstance), objc.Ptr(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 @@ -190,14 +154,6 @@ 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() float64 { - rv := objc.Call[float64](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 @@ -228,3 +184,43 @@ 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() float64 { + rv := objc.Call[float64](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 531dadba..80697b08 100644 --- a/macos/coredata/persistent_cloud_kit_container.gen.go +++ b/macos/coredata/persistent_cloud_kit_container.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package coredata @@ -20,20 +20,20 @@ type _PersistentCloudKitContainerClass struct { // An interface definition for the [PersistentCloudKitContainer] class. type IPersistentCloudKitContainer interface { IPersistentContainer + FetchSharesInPersistentStoreError(persistentStore IPersistentStore, error foundation.IError) []cloudkit.Share CanDeleteRecordForManagedObjectWithID(objectID IManagedObjectID) bool RecordsForManagedObjectIDs(managedObjectIDs []IManagedObjectID) foundation.Dictionary - RecordIDForManagedObjectID(managedObjectID IManagedObjectID) cloudkit.RecordID - PersistUpdatedShareInPersistentStoreCompletion(share cloudkit.IShare, persistentStore IPersistentStore, completion func(persistedShare cloudkit.Share, persistedShareError foundation.Error)) + CanUpdateRecordForManagedObjectWithID(objectID IManagedObjectID) bool + CanModifyManagedObjectsInStore(store IPersistentStore) bool + InitializeCloudKitSchemaWithOptionsError(options PersistentCloudKitContainerSchemaInitializationOptions, error foundation.IError) bool RecordForManagedObjectID(managedObjectID IManagedObjectID) cloudkit.Record - FetchParticipantsMatchingLookupInfosIntoPersistentStoreCompletion(lookupInfos []cloudkit.IUserIdentityLookupInfo, persistentStore IPersistentStore, completion func(fetchedParticipants []cloudkit.ShareParticipant, fetchError foundation.Error)) + 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)) + FetchParticipantsMatchingLookupInfosIntoPersistentStoreCompletion(lookupInfos []cloudkit.IUserIdentityLookupInfo, persistentStore IPersistentStore, completion func(fetchedParticipants []cloudkit.ShareParticipant, fetchError foundation.Error)) AcceptShareInvitationsFromMetadataIntoPersistentStoreCompletion(metadata []cloudkit.IShareMetadata, persistentStore IPersistentStore, completion func(acceptedShareMetadatas []cloudkit.ShareMetadata, acceptOperationError foundation.Error)) - FetchSharesInPersistentStoreError(persistentStore IPersistentStore, error foundation.IError) []cloudkit.Share - InitializeCloudKitSchemaWithOptionsError(options PersistentCloudKitContainerSchemaInitializationOptions, error foundation.IError) bool - RecordIDsForManagedObjectIDs(managedObjectIDs []IManagedObjectID) foundation.Dictionary - CanUpdateRecordForManagedObjectWithID(objectID IManagedObjectID) bool - CanModifyManagedObjectsInStore(store IPersistentStore) bool FetchSharesMatchingObjectIDsError(objectIDs []IManagedObjectID, error foundation.IError) foundation.Dictionary + RecordIDsForManagedObjectIDs(managedObjectIDs []IManagedObjectID) 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] @@ -54,10 +54,6 @@ func (pc _PersistentCloudKitContainerClass) Alloc() PersistentCloudKitContainer return rv } -func PersistentCloudKitContainer_Alloc() PersistentCloudKitContainer { - return PersistentCloudKitContainerClass.Alloc() -} - func (pc _PersistentCloudKitContainerClass) New() PersistentCloudKitContainer { rv := objc.Call[PersistentCloudKitContainer](pc, objc.Sel("new")) rv.Autorelease() @@ -73,20 +69,32 @@ func (p_ PersistentCloudKitContainer) Init() PersistentCloudKitContainer { return rv } -func (p_ PersistentCloudKitContainer) InitWithName(name string) PersistentCloudKitContainer { - rv := objc.Call[PersistentCloudKitContainer](p_, objc.Sel("initWithName:"), name) +func (p_ PersistentCloudKitContainer) InitWithNameManagedObjectModel(name string, model IManagedObjectModel) PersistentCloudKitContainer { + rv := objc.Call[PersistentCloudKitContainer](p_, objc.Sel("initWithName:managedObjectModel:"), name, objc.Ptr(model)) return rv } -// Creates a container with the specified name. [Full Topic] +// Create a container with the specified name and managed object model. [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) +// [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) instance.Autorelease() return instance } +func (pc _PersistentCloudKitContainerClass) PersistentContainerWithNameManagedObjectModel(name string, model IManagedObjectModel) PersistentCloudKitContainer { + rv := objc.Call[PersistentCloudKitContainer](pc, objc.Sel("persistentContainerWithName:managedObjectModel:"), name, objc.Ptr(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 @@ -99,6 +107,28 @@ 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 foundation.IError) []cloudkit.Share { + rv := objc.Call[[]cloudkit.Share](p_, objc.Sel("fetchSharesInPersistentStore:error:"), objc.Ptr(persistentStore), objc.Ptr(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 @@ -115,19 +145,28 @@ func (p_ PersistentCloudKitContainer) RecordsForManagedObjectIDs(managedObjectID return rv } -// Returns the CloudKit record ID for the specified managed object ID. [Full Topic] +// 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/3141669-recordidformanagedobjectid?language=objc -func (p_ PersistentCloudKitContainer) RecordIDForManagedObjectID(managedObjectID IManagedObjectID) cloudkit.RecordID { - rv := objc.Call[cloudkit.RecordID](p_, objc.Sel("recordIDForManagedObjectID:"), objc.Ptr(managedObjectID)) +// [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:"), objc.Ptr(objectID)) return rv } -// Saves the share record and schedules it for export to iCloud. [Full Topic] +// 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/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:"), objc.Ptr(share), objc.Ptr(persistentStore), completion) +// [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:"), objc.Ptr(store)) + 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 foundation.IError) bool { + rv := objc.Call[bool](p_, objc.Sel("initializeCloudKitSchemaWithOptions:error:"), options, objc.Ptr(error)) + return rv } // Returns the CloudKit record for the specified managed object ID. [Full Topic] @@ -138,11 +177,19 @@ func (p_ PersistentCloudKitContainer) RecordForManagedObjectID(managedObjectID I return rv } -// Fetches all participants that match the specified critieria. [Full Topic] +// Saves the share record and schedules it for export to iCloud. [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, objc.Ptr(persistentStore), completion) +// [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:"), objc.Ptr(share), objc.Ptr(persistentStore), completion) +} + +// Returns the CloudKit record ID for the specified managed object ID. [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:"), objc.Ptr(managedObjectID)) + return rv } // Deletes all CloudKit records in the specified record zone, along with their corresponding managed objects. [Full Topic] @@ -152,6 +199,13 @@ func (p_ PersistentCloudKitContainer) PurgeObjectsAndRecordsInZoneWithIDInPersis objc.Call[objc.Void](p_, objc.Sel("purgeObjectsAndRecordsInZoneWithID:inPersistentStore:completion:"), objc.Ptr(zoneID), objc.Ptr(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, objc.Ptr(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 @@ -159,19 +213,11 @@ func (p_ PersistentCloudKitContainer) AcceptShareInvitationsFromMetadataIntoPers objc.Call[objc.Void](p_, objc.Sel("acceptShareInvitationsFromMetadata:intoPersistentStore:completion:"), metadata, objc.Ptr(persistentStore), completion) } -// 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 foundation.IError) []cloudkit.Share { - rv := objc.Call[[]cloudkit.Share](p_, objc.Sel("fetchSharesInPersistentStore:error:"), objc.Ptr(persistentStore), objc.Ptr(error)) - return rv -} - -// Creates the CloudKit schema for all stores in the container that manage a CloudKit database. [Full Topic] +// 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/3343548-initializecloudkitschemawithopti?language=objc -func (p_ PersistentCloudKitContainer) InitializeCloudKitSchemaWithOptionsError(options PersistentCloudKitContainerSchemaInitializationOptions, error foundation.IError) bool { - rv := objc.Call[bool](p_, objc.Sel("initializeCloudKitSchemaWithOptions:error:"), options, objc.Ptr(error)) +// [Full Topic]: https://developer.apple.com/documentation/coredata/nspersistentcloudkitcontainer/3746831-fetchsharesmatchingobjectids?language=objc +func (p_ PersistentCloudKitContainer) FetchSharesMatchingObjectIDsError(objectIDs []IManagedObjectID, error foundation.IError) foundation.Dictionary { + rv := objc.Call[foundation.Dictionary](p_, objc.Sel("fetchSharesMatchingObjectIDs:error:"), objectIDs, objc.Ptr(error)) return rv } @@ -182,27 +228,3 @@ 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:"), objc.Ptr(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:"), objc.Ptr(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 foundation.IError) foundation.Dictionary { - rv := objc.Call[foundation.Dictionary](p_, objc.Sel("fetchSharesMatchingObjectIDs:error:"), objectIDs, objc.Ptr(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 5260990a..be9bb0bd 100644 --- a/macos/coredata/persistent_cloud_kit_container_event.gen.go +++ b/macos/coredata/persistent_cloud_kit_container_event.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package coredata @@ -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 - EndDate() foundation.Date Identifier() foundation.UUID + EndDate() foundation.Date + Succeeded() bool } // An object that represents activity in a persistent CloudKit container. [Full Topic] @@ -46,10 +46,6 @@ func (pc _PersistentCloudKitContainerEventClass) Alloc() PersistentCloudKitConta return rv } -func PersistentCloudKitContainerEvent_Alloc() PersistentCloudKitContainerEvent { - return PersistentCloudKitContainerEventClass.Alloc() -} - func (pc _PersistentCloudKitContainerEventClass) New() PersistentCloudKitContainerEvent { rv := objc.Call[PersistentCloudKitContainerEvent](pc, objc.Sel("new")) rv.Autorelease() @@ -65,6 +61,14 @@ 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 @@ -81,22 +85,6 @@ func (p_ PersistentCloudKitContainerEvent) StoreIdentifier() string { return rv } -// A Boolean value that indicates whether the operation the event represents is successful. [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")) - 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 -} - // The type of event, either setup, import, or export. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/coredata/nspersistentcloudkitcontainerevent/3618807-type?language=objc @@ -105,6 +93,14 @@ func (p_ PersistentCloudKitContainerEvent) Type() PersistentCloudKitContainerEve return rv } +// A unique identifier for the event in a container. [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")) + return rv +} + // The end date of the operation that the event represents. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/coredata/nspersistentcloudkitcontainerevent/3618801-enddate?language=objc @@ -113,10 +109,10 @@ func (p_ PersistentCloudKitContainerEvent) EndDate() foundation.Date { return rv } -// A unique identifier for the event in a container. [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/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/3618806-succeeded?language=objc +func (p_ PersistentCloudKitContainerEvent) Succeeded() bool { + rv := objc.Call[bool](p_, objc.Sel("succeeded")) 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 de525247..54cde342 100644 --- a/macos/coredata/persistent_cloud_kit_container_event_request.gen.go +++ b/macos/coredata/persistent_cloud_kit_container_event_request.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package coredata @@ -36,16 +36,16 @@ func PersistentCloudKitContainerEventRequestFrom(ptr unsafe.Pointer) PersistentC } } -func (pc _PersistentCloudKitContainerEventRequestClass) FetchEventsAfterDate(date foundation.IDate) PersistentCloudKitContainerEventRequest { - rv := objc.Call[PersistentCloudKitContainerEventRequest](pc, objc.Sel("fetchEventsAfterDate:"), objc.Ptr(date)) +func (pc _PersistentCloudKitContainerEventRequestClass) FetchEventsAfterEvent(event IPersistentCloudKitContainerEvent) PersistentCloudKitContainerEventRequest { + rv := objc.Call[PersistentCloudKitContainerEventRequest](pc, objc.Sel("fetchEventsAfterEvent:"), objc.Ptr(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) FetchEventsMatchingFetchRequest(fetchRequest IFetchRequest) PersistentCloudKitContainerEventRequest { @@ -60,16 +60,16 @@ func PersistentCloudKitContainerEventRequest_FetchEventsMatchingFetchRequest(fet return PersistentCloudKitContainerEventRequestClass.FetchEventsMatchingFetchRequest(fetchRequest) } -func (pc _PersistentCloudKitContainerEventRequestClass) FetchEventsAfterEvent(event IPersistentCloudKitContainerEvent) PersistentCloudKitContainerEventRequest { - rv := objc.Call[PersistentCloudKitContainerEventRequest](pc, objc.Sel("fetchEventsAfterEvent:"), objc.Ptr(event)) +func (pc _PersistentCloudKitContainerEventRequestClass) FetchEventsAfterDate(date foundation.IDate) PersistentCloudKitContainerEventRequest { + rv := objc.Call[PersistentCloudKitContainerEventRequest](pc, objc.Sel("fetchEventsAfterDate:"), objc.Ptr(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) Alloc() PersistentCloudKitContainerEventRequest { @@ -77,10 +77,6 @@ func (pc _PersistentCloudKitContainerEventRequestClass) Alloc() PersistentCloudK return rv } -func PersistentCloudKitContainerEventRequest_Alloc() PersistentCloudKitContainerEventRequest { - return PersistentCloudKitContainerEventRequestClass.Alloc() -} - func (pc _PersistentCloudKitContainerEventRequestClass) New() PersistentCloudKitContainerEventRequest { rv := objc.Call[PersistentCloudKitContainerEventRequest](pc, objc.Sel("new")) rv.Autorelease() 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 25040073..282940f0 100644 --- a/macos/coredata/persistent_cloud_kit_container_event_result.gen.go +++ b/macos/coredata/persistent_cloud_kit_container_event_result.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package coredata @@ -18,8 +18,8 @@ type _PersistentCloudKitContainerEventResultClass struct { // An interface definition for the [PersistentCloudKitContainerEventResult] class. type IPersistentCloudKitContainerEventResult interface { IPersistentStoreResult - Result() objc.Object ResultType() PersistentCloudKitContainerEventResultType + Result() objc.Object } // The result of a request to fetch persistent CloudKit container events. [Full Topic] @@ -40,10 +40,6 @@ func (pc _PersistentCloudKitContainerEventResultClass) Alloc() PersistentCloudKi return rv } -func PersistentCloudKitContainerEventResult_Alloc() PersistentCloudKitContainerEventResult { - return PersistentCloudKitContainerEventResultClass.Alloc() -} - func (pc _PersistentCloudKitContainerEventResultClass) New() PersistentCloudKitContainerEventResult { rv := objc.Call[PersistentCloudKitContainerEventResult](pc, objc.Sel("new")) rv.Autorelease() @@ -59,14 +55,6 @@ func (p_ PersistentCloudKitContainerEventResult) Init() PersistentCloudKitContai 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 -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 @@ -74,3 +62,11 @@ func (p_ PersistentCloudKitContainerEventResult) ResultType() PersistentCloudKit 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 +func (p_ PersistentCloudKitContainerEventResult) Result() objc.Object { + rv := objc.Call[objc.Object](p_, objc.Sel("result")) + 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 c70fe96d..7e8c02eb 100644 --- a/macos/coredata/persistent_cloud_kit_container_options.gen.go +++ b/macos/coredata/persistent_cloud_kit_container_options.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package coredata @@ -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] @@ -56,10 +56,6 @@ func (pc _PersistentCloudKitContainerOptionsClass) Alloc() PersistentCloudKitCon return rv } -func PersistentCloudKitContainerOptions_Alloc() PersistentCloudKitContainerOptions { - return PersistentCloudKitContainerOptionsClass.Alloc() -} - func (pc _PersistentCloudKitContainerOptionsClass) New() PersistentCloudKitContainerOptions { rv := objc.Call[PersistentCloudKitContainerOptions](pc, objc.Sel("new")) rv.Autorelease() @@ -75,6 +71,14 @@ 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 @@ -89,11 +93,3 @@ 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 7a07bf19..c81835e7 100644 --- a/macos/coredata/persistent_container.gen.go +++ b/macos/coredata/persistent_container.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package coredata @@ -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) - ManagedObjectModel() ManagedObjectModel - PersistentStoreCoordinator() PersistentStoreCoordinator Name() string + ManagedObjectModel() ManagedObjectModel ViewContext() ManagedObjectContext + PersistentStoreCoordinator() PersistentStoreCoordinator } // A container that encapsulates the Core Data stack in your app. [Full Topic] @@ -43,20 +43,32 @@ func PersistentContainerFrom(ptr unsafe.Pointer) PersistentContainer { } } -func (p_ PersistentContainer) InitWithName(name string) PersistentContainer { - rv := objc.Call[PersistentContainer](p_, objc.Sel("initWithName:"), name) +func (p_ PersistentContainer) InitWithNameManagedObjectModel(name string, model IManagedObjectModel) PersistentContainer { + rv := objc.Call[PersistentContainer](p_, objc.Sel("initWithName:managedObjectModel:"), name, objc.Ptr(model)) return rv } -// Creates a container with the specified name. [Full Topic] +// Create a container with the specified name and managed object model. [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) +// [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) instance.Autorelease() return instance } +func (pc _PersistentContainerClass) PersistentContainerWithNameManagedObjectModel(name string, model IManagedObjectModel) PersistentContainer { + rv := objc.Call[PersistentContainer](pc, objc.Sel("persistentContainerWithName:managedObjectModel:"), name, objc.Ptr(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 @@ -69,13 +81,23 @@ func PersistentContainer_PersistentContainerWithName(name string) PersistentCont return PersistentContainerClass.PersistentContainerWithName(name) } -func (pc _PersistentContainerClass) Alloc() PersistentContainer { - rv := objc.Call[PersistentContainer](pc, objc.Sel("alloc")) +func (p_ PersistentContainer) InitWithName(name string) PersistentContainer { + rv := objc.Call[PersistentContainer](p_, objc.Sel("initWithName:"), name) return rv } -func PersistentContainer_Alloc() PersistentContainer { - return PersistentContainerClass.Alloc() +// 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 } func (pc _PersistentContainerClass) New() PersistentContainer { @@ -93,20 +115,11 @@ func (p_ PersistentContainer) Init() PersistentContainer { return rv } -// 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")) - rv.Autorelease() - 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) } // Returns the location of the directory that contains the persistent stores. [Full Topic] @@ -124,11 +137,19 @@ func PersistentContainer_DefaultDirectoryURL() foundation.URL { return PersistentContainerClass.DefaultDirectoryURL() } -// 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) } // The descriptions of the container’s persistent stores. [Full Topic] @@ -146,22 +167,6 @@ func (p_ PersistentContainer) SetPersistentStoreDescriptions(value []IPersistent objc.Call[objc.Void](p_, objc.Sel("setPersistentStoreDescriptions:"), value) } -// The container’s managed object model. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/coredata/nspersistentcontainer/1640561-managedobjectmodel?language=objc -func (p_ PersistentContainer) ManagedObjectModel() ManagedObjectModel { - rv := objc.Call[ManagedObjectModel](p_, objc.Sel("managedObjectModel")) - return rv -} - -// The container’s persistent store coordinator. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/coredata/nspersistentcontainer/1640567-persistentstorecoordinator?language=objc -func (p_ PersistentContainer) PersistentStoreCoordinator() PersistentStoreCoordinator { - 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 @@ -170,6 +175,14 @@ func (p_ PersistentContainer) Name() string { return rv } +// The container’s managed object model. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/coredata/nspersistentcontainer/1640561-managedobjectmodel?language=objc +func (p_ PersistentContainer) ManagedObjectModel() ManagedObjectModel { + rv := objc.Call[ManagedObjectModel](p_, objc.Sel("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 @@ -177,3 +190,11 @@ 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 +func (p_ PersistentContainer) PersistentStoreCoordinator() PersistentStoreCoordinator { + rv := objc.Call[PersistentStoreCoordinator](p_, objc.Sel("persistentStoreCoordinator")) + return rv +} diff --git a/macos/coredata/persistent_history_change.gen.go b/macos/coredata/persistent_history_change.gen.go index a5d0beaa..996d8fdd 100644 --- a/macos/coredata/persistent_history_change.gen.go +++ b/macos/coredata/persistent_history_change.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package coredata @@ -19,12 +19,12 @@ type _PersistentHistoryChangeClass struct { // An interface definition for the [PersistentHistoryChange] class. type IPersistentHistoryChange interface { objc.IObject - Transaction() PersistentHistoryTransaction - UpdatedProperties() foundation.Set + ChangeID() int64 ChangedObjectID() ManagedObjectID Tombstone() foundation.Dictionary + Transaction() PersistentHistoryTransaction + UpdatedProperties() foundation.Set ChangeType() PersistentHistoryChangeType - ChangeID() int64 } // A change representing the insertion, update, or deletion of a managed object in the persistent store. [Full Topic] @@ -45,10 +45,6 @@ func (pc _PersistentHistoryChangeClass) Alloc() PersistentHistoryChange { return rv } -func PersistentHistoryChange_Alloc() PersistentHistoryChange { - return PersistentHistoryChangeClass.Alloc() -} - func (pc _PersistentHistoryChangeClass) New() PersistentHistoryChange { rv := objc.Call[PersistentHistoryChange](pc, objc.Sel("new")) rv.Autorelease() @@ -79,34 +75,11 @@ func PersistentHistoryChange_EntityDescriptionWithContext(context IManagedObject return PersistentHistoryChangeClass.EntityDescriptionWithContext(context) } -// 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 -} - -// 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] +// The change’s numeric identifier. [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")) +// [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 } @@ -141,18 +114,41 @@ func PersistentHistoryChange_EntityDescription() EntityDescription { return PersistentHistoryChangeClass.EntityDescription() } -// The type of change to the managed object in the persistent store. [Full Topic] +// The persistent history transaction containing this change. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coredata/nspersistenthistorychange/2892563-changetype?language=objc -func (p_ PersistentHistoryChange) ChangeType() PersistentHistoryChangeType { - rv := objc.Call[PersistentHistoryChangeType](p_, objc.Sel("changeType")) +// [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 change’s numeric identifier. [Full Topic] +// The set of properties that were updated on the managed object. [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/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 +func (p_ PersistentHistoryChange) ChangeType() PersistentHistoryChangeType { + rv := objc.Call[PersistentHistoryChangeType](p_, objc.Sel("changeType")) return rv } diff --git a/macos/coredata/persistent_history_change_request.gen.go b/macos/coredata/persistent_history_change_request.gen.go index 04a61b76..6f58dacc 100644 --- a/macos/coredata/persistent_history_change_request.gen.go +++ b/macos/coredata/persistent_history_change_request.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package coredata @@ -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) DeleteHistoryBeforeDate(date foundation.IDate) PersistentHistoryChangeRequest { - rv := objc.Call[PersistentHistoryChangeRequest](pc, objc.Sel("deleteHistoryBeforeDate:"), objc.Ptr(date)) - return rv -} - -// Purges history older than a given date. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/coredata/nspersistenthistorychangerequest/2892338-deletehistorybeforedate?language=objc -func PersistentHistoryChangeRequest_DeleteHistoryBeforeDate(date foundation.IDate) PersistentHistoryChangeRequest { - return PersistentHistoryChangeRequestClass.DeleteHistoryBeforeDate(date) -} - func (pc _PersistentHistoryChangeRequestClass) FetchHistoryAfterTransaction(transaction IPersistentHistoryTransaction) PersistentHistoryChangeRequest { rv := objc.Call[PersistentHistoryChangeRequest](pc, objc.Sel("fetchHistoryAfterTransaction:"), objc.Ptr(transaction)) return rv @@ -63,28 +51,28 @@ func PersistentHistoryChangeRequest_FetchHistoryAfterTransaction(transaction IPe return PersistentHistoryChangeRequestClass.FetchHistoryAfterTransaction(transaction) } -func (pc _PersistentHistoryChangeRequestClass) FetchHistoryWithFetchRequest(fetchRequest IFetchRequest) PersistentHistoryChangeRequest { - rv := objc.Call[PersistentHistoryChangeRequest](pc, objc.Sel("fetchHistoryWithFetchRequest:"), objc.Ptr(fetchRequest)) +func (pc _PersistentHistoryChangeRequestClass) DeleteHistoryBeforeDate(date foundation.IDate) PersistentHistoryChangeRequest { + rv := objc.Call[PersistentHistoryChangeRequest](pc, objc.Sel("deleteHistoryBeforeDate:"), objc.Ptr(date)) return rv } -// Retrieves history based on a fetch request. [Full Topic] +// Purges history older than 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/2892338-deletehistorybeforedate?language=objc +func PersistentHistoryChangeRequest_DeleteHistoryBeforeDate(date foundation.IDate) PersistentHistoryChangeRequest { + return PersistentHistoryChangeRequestClass.DeleteHistoryBeforeDate(date) } -func (pc _PersistentHistoryChangeRequestClass) DeleteHistoryBeforeTransaction(transaction IPersistentHistoryTransaction) PersistentHistoryChangeRequest { - rv := objc.Call[PersistentHistoryChangeRequest](pc, objc.Sel("deleteHistoryBeforeTransaction:"), objc.Ptr(transaction)) +func (pc _PersistentHistoryChangeRequestClass) FetchHistoryAfterToken(token IPersistentHistoryToken) PersistentHistoryChangeRequest { + rv := objc.Call[PersistentHistoryChangeRequest](pc, objc.Sel("fetchHistoryAfterToken:"), objc.Ptr(token)) return rv } -// Purges history older than a given transaction. [Full Topic] +// Retrieves the request history after a given token. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coredata/nspersistenthistorychangerequest/2892345-deletehistorybeforetransaction?language=objc -func PersistentHistoryChangeRequest_DeleteHistoryBeforeTransaction(transaction IPersistentHistoryTransaction) PersistentHistoryChangeRequest { - return PersistentHistoryChangeRequestClass.DeleteHistoryBeforeTransaction(transaction) +// [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) FetchHistoryAfterDate(date foundation.IDate) PersistentHistoryChangeRequest { @@ -99,16 +87,28 @@ func PersistentHistoryChangeRequest_FetchHistoryAfterDate(date foundation.IDate) return PersistentHistoryChangeRequestClass.FetchHistoryAfterDate(date) } -func (pc _PersistentHistoryChangeRequestClass) FetchHistoryAfterToken(token IPersistentHistoryToken) PersistentHistoryChangeRequest { - rv := objc.Call[PersistentHistoryChangeRequest](pc, objc.Sel("fetchHistoryAfterToken:"), objc.Ptr(token)) +func (pc _PersistentHistoryChangeRequestClass) DeleteHistoryBeforeTransaction(transaction IPersistentHistoryTransaction) PersistentHistoryChangeRequest { + rv := objc.Call[PersistentHistoryChangeRequest](pc, objc.Sel("deleteHistoryBeforeTransaction:"), objc.Ptr(transaction)) return rv } -// Retrieves the request history after a given token. [Full Topic] +// Purges history older than 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/2892345-deletehistorybeforetransaction?language=objc +func PersistentHistoryChangeRequest_DeleteHistoryBeforeTransaction(transaction IPersistentHistoryTransaction) PersistentHistoryChangeRequest { + return PersistentHistoryChangeRequestClass.DeleteHistoryBeforeTransaction(transaction) +} + +func (pc _PersistentHistoryChangeRequestClass) FetchHistoryWithFetchRequest(fetchRequest IFetchRequest) PersistentHistoryChangeRequest { + rv := objc.Call[PersistentHistoryChangeRequest](pc, objc.Sel("fetchHistoryWithFetchRequest:"), objc.Ptr(fetchRequest)) + return rv +} + +// Retrieves history based on a fetch request. [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) } func (pc _PersistentHistoryChangeRequestClass) DeleteHistoryBeforeToken(token IPersistentHistoryToken) PersistentHistoryChangeRequest { @@ -128,10 +128,6 @@ func (pc _PersistentHistoryChangeRequestClass) Alloc() PersistentHistoryChangeRe return rv } -func PersistentHistoryChangeRequest_Alloc() PersistentHistoryChangeRequest { - return PersistentHistoryChangeRequestClass.Alloc() -} - func (pc _PersistentHistoryChangeRequestClass) New() PersistentHistoryChangeRequest { rv := objc.Call[PersistentHistoryChangeRequest](pc, objc.Sel("new")) rv.Autorelease() @@ -147,21 +143,6 @@ 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:"), objc.Ptr(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 @@ -184,3 +165,18 @@ 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:"), objc.Ptr(value)) +} diff --git a/macos/coredata/persistent_history_result.gen.go b/macos/coredata/persistent_history_result.gen.go index d389e34a..87e795c9 100644 --- a/macos/coredata/persistent_history_result.gen.go +++ b/macos/coredata/persistent_history_result.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package coredata @@ -40,10 +40,6 @@ func (pc _PersistentHistoryResultClass) Alloc() PersistentHistoryResult { return rv } -func PersistentHistoryResult_Alloc() PersistentHistoryResult { - return PersistentHistoryResultClass.Alloc() -} - func (pc _PersistentHistoryResultClass) New() PersistentHistoryResult { rv := objc.Call[PersistentHistoryResult](pc, objc.Sel("new")) rv.Autorelease() diff --git a/macos/coredata/persistent_history_token.gen.go b/macos/coredata/persistent_history_token.gen.go index e3741cde..66ceff65 100644 --- a/macos/coredata/persistent_history_token.gen.go +++ b/macos/coredata/persistent_history_token.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package coredata @@ -38,10 +38,6 @@ func (pc _PersistentHistoryTokenClass) Alloc() PersistentHistoryToken { return rv } -func PersistentHistoryToken_Alloc() PersistentHistoryToken { - return PersistentHistoryTokenClass.Alloc() -} - func (pc _PersistentHistoryTokenClass) New() PersistentHistoryToken { rv := objc.Call[PersistentHistoryToken](pc, objc.Sel("new")) rv.Autorelease() diff --git a/macos/coredata/persistent_history_transaction.gen.go b/macos/coredata/persistent_history_transaction.gen.go index 2a358b66..57c93d8d 100644 --- a/macos/coredata/persistent_history_transaction.gen.go +++ b/macos/coredata/persistent_history_transaction.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package coredata @@ -20,15 +20,15 @@ type _PersistentHistoryTransactionClass struct { type IPersistentHistoryTransaction interface { objc.IObject ObjectIDNotification() foundation.Notification - Token() PersistentHistoryToken - BundleID() string - TransactionNumber() int64 - StoreID() string - Author() string ProcessID() string + ContextName() string + StoreID() string Changes() []PersistentHistoryChange + Author() string Timestamp() foundation.Date - ContextName() string + Token() PersistentHistoryToken + BundleID() string + TransactionNumber() int64 } // A set of changes in the persistent history based on a context save or batch operation. [Full Topic] @@ -49,10 +49,6 @@ func (pc _PersistentHistoryTransactionClass) Alloc() PersistentHistoryTransactio return rv } -func PersistentHistoryTransaction_Alloc() PersistentHistoryTransaction { - return PersistentHistoryTransactionClass.Alloc() -} - func (pc _PersistentHistoryTransactionClass) New() PersistentHistoryTransaction { rv := objc.Call[PersistentHistoryTransaction](pc, objc.Sel("new")) rv.Autorelease() @@ -68,14 +64,6 @@ 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 @@ -91,42 +79,27 @@ func PersistentHistoryTransaction_EntityDescriptionWithContext(context IManagedO return PersistentHistoryTransactionClass.EntityDescriptionWithContext(context) } -// A fetch request that has the persistent history transaction as the entity. [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")) - return rv -} - -// A fetch request that has the persistent history transaction as the entity. [Full Topic] -// -// [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] +// 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/2894938-token?language=objc -func (p_ PersistentHistoryTransaction) Token() PersistentHistoryToken { - rv := objc.Call[PersistentHistoryToken](p_, objc.Sel("token")) +// [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 } -// 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 } -// The transaction’s numeric identifier. [Full Topic] +// The originating context’s name. [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/2894944-contextname?language=objc +func (p_ PersistentHistoryTransaction) ContextName() string { + rv := objc.Call[string](p_, objc.Sel("contextName")) return rv } @@ -138,6 +111,14 @@ func (p_ PersistentHistoryTransaction) StoreID() string { return rv } +// The array of persistent history changes. [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")) + return rv +} + // A granular description of the context that made the persistent history change, if available. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/coredata/nspersistenthistorytransaction/2894947-author?language=objc @@ -146,11 +127,27 @@ func (p_ PersistentHistoryTransaction) Author() string { return rv } -// The originating process’s identifier. [Full Topic] +// The date of the persistent history change. [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/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] +// +// [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 } @@ -169,26 +166,25 @@ func PersistentHistoryTransaction_EntityDescription() EntityDescription { return PersistentHistoryTransactionClass.EntityDescription() } -// The array of persistent history changes. [Full Topic] +// The transaction’s numeric 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/2894945-transactionnumber?language=objc +func (p_ PersistentHistoryTransaction) TransactionNumber() int64 { + rv := objc.Call[int64](p_, objc.Sel("transactionNumber")) return rv } -// The date of the persistent history change. [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/2894940-timestamp?language=objc -func (p_ PersistentHistoryTransaction) Timestamp() foundation.Date { - rv := objc.Call[foundation.Date](p_, objc.Sel("timestamp")) +// [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 context’s name. [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/2894944-contextname?language=objc -func (p_ PersistentHistoryTransaction) ContextName() string { - rv := objc.Call[string](p_, objc.Sel("contextName")) - return rv +// [Full Topic]: https://developer.apple.com/documentation/coredata/nspersistenthistorytransaction/3240596-fetchrequest?language=objc +func PersistentHistoryTransaction_FetchRequest() FetchRequest { + return PersistentHistoryTransactionClass.FetchRequest() } diff --git a/macos/coredata/persistent_store.gen.go b/macos/coredata/persistent_store.gen.go index 24665c4e..73bba746 100644 --- a/macos/coredata/persistent_store.gen.go +++ b/macos/coredata/persistent_store.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package coredata @@ -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 foundation.IError) bool - IsReadOnly() bool - SetReadOnly(value bool) - PersistentStoreCoordinator() PersistentStoreCoordinator - Options() foundation.Dictionary + WillRemoveFromPersistentStoreCoordinator(coordinator IPersistentStoreCoordinator) Metadata() map[string]objc.Object SetMetadata(value map[string]objc.IObject) + ConfigurationName() string URL() foundation.URL SetURL(value foundation.IURL) CoreSpotlightExporter() CoreDataCoreSpotlightDelegate - ConfigurationName() string + Options() foundation.Dictionary + PersistentStoreCoordinator() PersistentStoreCoordinator Type() string Identifier() string SetIdentifier(value string) + IsReadOnly() bool + SetReadOnly(value bool) } // The abstract base class for all Core Data persistent stores. [Full Topic] @@ -69,10 +69,6 @@ func (pc _PersistentStoreClass) Alloc() PersistentStore { return rv } -func PersistentStore_Alloc() PersistentStore { - return PersistentStoreClass.Alloc() -} - func (pc _PersistentStoreClass) New() PersistentStore { rv := objc.Call[PersistentStore](pc, objc.Sel("new")) rv.Autorelease() @@ -88,26 +84,11 @@ func (p_ PersistentStore) Init() PersistentStore { return rv } -// Invoked before the persistent store is removed from the persistent store coordinator. [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:"), objc.Ptr(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 foundation.IError) bool { - rv := objc.Call[bool](pc, objc.Sel("setMetadata:forPersistentStoreWithURL:error:"), metadata, objc.Ptr(url), objc.Ptr(error)) - return rv -} - -// Sets the metadata for the store at a given URL. [Full Topic] +// Invoked after the persistent store has been added to the persistent store coordinator. [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 foundation.IError) bool { - return PersistentStoreClass.SetMetadataForPersistentStoreWithURLError(metadata, url, error) +// [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:"), objc.Ptr(coordinator)) } // Returns the metadata from the persistent store at the given URL. [Full Topic] @@ -125,13 +106,6 @@ 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:"), objc.Ptr(coordinator)) -} - // Instructs the persistent store to load its metadata. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/coredata/nspersistentstore/1506273-loadmetadata?language=objc @@ -155,35 +129,26 @@ func PersistentStore_MigrationManagerClass() objc.Class { return PersistentStoreClass.MigrationManagerClass() } -// A Boolean value that indicates whether the persistent store is read-only. [Full Topic] +// Sets the metadata for the store at a given URL. [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")) +// [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 foundation.IError) bool { + rv := objc.Call[bool](pc, objc.Sel("setMetadata:forPersistentStoreWithURL:error:"), metadata, objc.Ptr(url), objc.Ptr(error)) 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) -} - -// The persistent store coordinator that loads the persistent store. [Full Topic] +// Sets the metadata for the store at a given URL. [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")) - return rv +// [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 foundation.IError) bool { + return PersistentStoreClass.SetMetadataForPersistentStoreWithURLError(metadata, url, error) } -// The options that Core Data uses to create the store. [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/1506821-options?language=objc -func (p_ PersistentStore) Options() foundation.Dictionary { - rv := objc.Call[foundation.Dictionary](p_, objc.Sel("options")) - return rv +// [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:"), objc.Ptr(coordinator)) } // The metadata for the persistent store. [Full Topic] @@ -201,6 +166,14 @@ 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 @@ -224,11 +197,19 @@ func (p_ PersistentStore) CoreSpotlightExporter() CoreDataCoreSpotlightDelegate return rv } -// The name of the managed object model configuration that creates the persistent store. [Full Topic] +// The options that Core Data uses to create the 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")) +// [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] +// +// [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 } @@ -254,3 +235,18 @@ 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 eeb020c6..ab4cb4e7 100644 --- a/macos/coredata/persistent_store_asynchronous_result.gen.go +++ b/macos/coredata/persistent_store_asynchronous_result.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package coredata @@ -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] @@ -43,10 +43,6 @@ func (pc _PersistentStoreAsynchronousResultClass) Alloc() PersistentStoreAsynchr return rv } -func PersistentStoreAsynchronousResult_Alloc() PersistentStoreAsynchronousResult { - return PersistentStoreAsynchronousResultClass.Alloc() -} - func (pc _PersistentStoreAsynchronousResultClass) New() PersistentStoreAsynchronousResult { rv := objc.Call[PersistentStoreAsynchronousResult](pc, objc.Sel("new")) rv.Autorelease() @@ -69,14 +65,6 @@ 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 @@ -92,3 +80,11 @@ 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 286cc200..500b646d 100644 --- a/macos/coredata/persistent_store_coordinator.gen.go +++ b/macos/coredata/persistent_store_coordinator.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package coredata @@ -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()) - SetMetadataForPersistentStore(metadata map[string]objc.IObject, store IPersistentStore) - PersistentStoreForURL(URL foundation.IURL) PersistentStore + PerformBlock(block func()) + RemovePersistentStoreError(store IPersistentStore, error foundation.IError) bool CurrentPersistentHistoryTokenFromStores(stores []objc.IObject) PersistentHistoryToken + ManagedObjectIDForURIRepresentation(url foundation.IURL) ManagedObjectID MetadataForPersistentStore(store IPersistentStore) map[string]objc.Object - RemovePersistentStoreError(store IPersistentStore, error foundation.IError) bool - URLForPersistentStore(store IPersistentStore) foundation.URL - ExecuteRequestWithContextError(request IPersistentStoreRequest, context IManagedObjectContext, error foundation.IError) objc.Object - AddPersistentStoreWithTypeConfigurationURLOptionsError(storeType string, configuration string, storeURL foundation.IURL, options foundation.Dictionary, error foundation.IError) 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 + SetMetadataForPersistentStore(metadata map[string]objc.IObject, store IPersistentStore) + AddPersistentStoreWithTypeConfigurationURLOptionsError(storeType string, configuration string, storeURL foundation.IURL, options foundation.Dictionary, error foundation.IError) PersistentStore + PersistentStoreForURL(URL foundation.IURL) PersistentStore + ExecuteRequestWithContextError(request IPersistentStoreRequest, context IManagedObjectContext, error foundation.IError) objc.Object + URLForPersistentStore(store IPersistentStore) foundation.URL 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] @@ -70,10 +70,6 @@ func (pc _PersistentStoreCoordinatorClass) Alloc() PersistentStoreCoordinator { return rv } -func PersistentStoreCoordinator_Alloc() PersistentStoreCoordinator { - return PersistentStoreCoordinatorClass.Alloc() -} - func (pc _PersistentStoreCoordinatorClass) New() PersistentStoreCoordinator { rv := objc.Call[PersistentStoreCoordinator](pc, objc.Sel("new")) rv.Autorelease() @@ -89,6 +85,14 @@ 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:"), objc.Ptr(url), objc.Ptr(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 @@ -96,35 +100,26 @@ func (p_ PersistentStoreCoordinator) PerformBlockAndWait(block func()) { objc.Call[objc.Void](p_, objc.Sel("performBlockAndWait:"), block) } -// 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, objc.Ptr(store)) -} - -// Returns the persistent store for the specified file URL. [Full Topic] +// Updates the metadata of a specific type of persistent store at the provided location. [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:"), objc.Ptr(URL)) +// [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 foundation.IError) bool { + rv := objc.Call[bool](pc, objc.Sel("setMetadata:forPersistentStoreOfType:URL:options:error:"), metadata, storeType, objc.Ptr(url), options, objc.Ptr(error)) return rv } -// Returns a single persistent history token representing all of the specified stores. [Full Topic] +// Updates the metadata of a specific type of persistent store at the provided location. [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) - return rv +// [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 foundation.IError) bool { + return PersistentStoreCoordinatorClass.SetMetadataForPersistentStoreOfTypeURLOptionsError(metadata, storeType, url, options, error) } -// Returns the metadata of the specified persistent store. [Full Topic] +// Executes the provided closure asynchronously on the coordinator’s queue. [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:"), objc.Ptr(store)) - return rv +// [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) } // Removes the specified persistent store from the coordinator. [Full Topic] @@ -135,57 +130,57 @@ func (p_ PersistentStoreCoordinator) RemovePersistentStoreError(store IPersisten return rv } -// Returns the location of the provided persistent store. [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/1468865-urlforpersistentstore?language=objc -func (p_ PersistentStoreCoordinator) URLForPersistentStore(store IPersistentStore) foundation.URL { - rv := objc.Call[foundation.URL](p_, objc.Sel("URLForPersistentStore:"), objc.Ptr(store)) +// [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 specified request on each of the coordinator’s persistent stores. [Full Topic] +// Returns the object identifier for the specified URI representation. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coredata/nspersistentstorecoordinator/1468872-executerequest?language=objc -func (p_ PersistentStoreCoordinator) ExecuteRequestWithContextError(request IPersistentStoreRequest, context IManagedObjectContext, error foundation.IError) objc.Object { - rv := objc.Call[objc.Object](p_, objc.Sel("executeRequest:withContext:error:"), objc.Ptr(request), objc.Ptr(context), objc.Ptr(error)) +// [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:"), objc.Ptr(url)) return rv } -// Adds a specific type of persistent store at the provided location. [Full Topic] +// Returns the metadata of the specified persistent store. [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 foundation.IError) PersistentStore { - rv := objc.Call[PersistentStore](p_, objc.Sel("addPersistentStoreWithType:configuration:URL:options:error:"), storeType, configuration, objc.Ptr(storeURL), options, objc.Ptr(error)) +// [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:"), objc.Ptr(store)) return rv } -// Executes the provided closure asynchronously on the coordinator’s queue. [Full Topic] +// Adds a persistent store using the provided description. [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/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:"), objc.Ptr(storeDescription), block) } -// Changes the location of the specified persistent store. [Full Topic] +// Updates the metadata for 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:"), objc.Ptr(url), objc.Ptr(store)) - return rv +// [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, objc.Ptr(store)) } -// Adds a persistent store using the provided description. [Full Topic] +// Adds a specific type of persistent store at the provided location. [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:"), objc.Ptr(storeDescription), block) +// [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 foundation.IError) PersistentStore { + rv := objc.Call[PersistentStore](p_, objc.Sel("addPersistentStoreWithType:configuration:URL:options:error:"), storeType, configuration, objc.Ptr(storeURL), options, objc.Ptr(error)) + return rv } -// Returns the object identifier for the specified URI representation. [Full Topic] +// Returns the persistent store for the specified file URL. [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:"), objc.Ptr(url)) +// [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:"), objc.Ptr(URL)) return rv } @@ -204,26 +199,19 @@ func PersistentStoreCoordinator_MetadataForPersistentStoreOfTypeURLOptionsError( return PersistentStoreCoordinatorClass.MetadataForPersistentStoreOfTypeURLOptionsError(storeType, url, options, error) } -// The coordinator’s registered store types. [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/1468870-registeredstoretypes?language=objc -func (pc _PersistentStoreCoordinatorClass) RegisteredStoreTypes() map[string]foundation.Value { - rv := objc.Call[map[string]foundation.Value](pc, objc.Sel("registeredStoreTypes")) +// [Full Topic]: https://developer.apple.com/documentation/coredata/nspersistentstorecoordinator/1468872-executerequest?language=objc +func (p_ PersistentStoreCoordinator) ExecuteRequestWithContextError(request IPersistentStoreRequest, context IManagedObjectContext, error foundation.IError) objc.Object { + rv := objc.Call[objc.Object](p_, objc.Sel("executeRequest:withContext:error:"), objc.Ptr(request), objc.Ptr(context), objc.Ptr(error)) 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 managed object model. [Full Topic] +// Returns the location of the provided persistent store. [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")) +// [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:"), objc.Ptr(store)) return rv } @@ -242,6 +230,21 @@ 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 @@ -249,3 +252,11 @@ 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 3fb560be..71837dcb 100644 --- a/macos/coredata/persistent_store_description.gen.go +++ b/macos/coredata/persistent_store_description.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package coredata @@ -21,26 +21,26 @@ type IPersistentStoreDescription interface { objc.IObject SetOptionForKey(option objc.IObject, key string) SetValueForPragmaNamed(value objc.IObject, name string) - 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) + ShouldInferMappingModelAutomatically() bool + SetShouldInferMappingModelAutomatically(value bool) 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] @@ -87,10 +87,6 @@ func (pc _PersistentStoreDescriptionClass) Alloc() PersistentStoreDescription { return rv } -func PersistentStoreDescription_Alloc() PersistentStoreDescription { - return PersistentStoreDescriptionClass.Alloc() -} - func (pc _PersistentStoreDescriptionClass) New() PersistentStoreDescription { rv := objc.Call[PersistentStoreDescription](pc, objc.Sel("new")) rv.Autorelease() @@ -120,42 +116,19 @@ func (p_ PersistentStoreDescription) SetValueForPragmaNamed(value objc.IObject, objc.Call[objc.Void](p_, objc.Sel("setValue:forPragmaNamed:"), objc.Ptr(value), name) } -// 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) -} - -// 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) ShouldAddStoreAsynchronously() bool { - rv := objc.Call[bool](p_, objc.Sel("shouldAddStoreAsynchronously")) +// [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] -// -// [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] +// The URL that the store will use for its location. [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 +// [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:"), objc.Ptr(value)) } // A flag indicating whether a mapping model should be created automatically. [Full Topic] @@ -173,59 +146,44 @@ func (p_ PersistentStoreDescription) SetShouldInferMappingModelAutomatically(val objc.Call[objc.Void](p_, objc.Sel("setShouldInferMappingModelAutomatically:"), value) } -// The SQLite pragmas set for the associated persistent store. (read-only) [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")) - return rv -} - -// The connection timeout for the associated store. [Full Topic] +// The name of the configuration used by this 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")) +// [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 connection timeout for the associated store. [Full Topic] +// The name of the configuration used by this 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) +// [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) } -// The URL that the store will use for its location. [Full Topic] +// A flag that determines whether the store is added asynchronously. [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/1640599-shouldaddstoreasynchronously?language=objc +func (p_ PersistentStoreDescription) ShouldAddStoreAsynchronously() bool { + rv := objc.Call[bool](p_, objc.Sel("shouldAddStoreAsynchronously")) return rv } -// The URL that the store will use for its location. [Full Topic] +// A flag that determines whether the store is added asynchronously. [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:"), objc.Ptr(value)) +// [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) } -// 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] -// -// [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 @@ -270,3 +228,41 @@ 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/persistent_store_request.gen.go b/macos/coredata/persistent_store_request.gen.go index f0c1c2c9..8b700e24 100644 --- a/macos/coredata/persistent_store_request.gen.go +++ b/macos/coredata/persistent_store_request.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package coredata @@ -41,10 +41,6 @@ func (pc _PersistentStoreRequestClass) Alloc() PersistentStoreRequest { return rv } -func PersistentStoreRequest_Alloc() PersistentStoreRequest { - return PersistentStoreRequestClass.Alloc() -} - func (pc _PersistentStoreRequestClass) New() PersistentStoreRequest { rv := objc.Call[PersistentStoreRequest](pc, objc.Sel("new")) rv.Autorelease() diff --git a/macos/coredata/persistent_store_result.gen.go b/macos/coredata/persistent_store_result.gen.go index cdb6bc4f..8cdb31e4 100644 --- a/macos/coredata/persistent_store_result.gen.go +++ b/macos/coredata/persistent_store_result.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package coredata @@ -38,10 +38,6 @@ func (pc _PersistentStoreResultClass) Alloc() PersistentStoreResult { return rv } -func PersistentStoreResult_Alloc() PersistentStoreResult { - return PersistentStoreResultClass.Alloc() -} - func (pc _PersistentStoreResultClass) New() PersistentStoreResult { rv := objc.Call[PersistentStoreResult](pc, objc.Sel("new")) rv.Autorelease() diff --git a/macos/coredata/property_description.gen.go b/macos/coredata/property_description.gen.go index 2e709915..e3cf5f46 100644 --- a/macos/coredata/property_description.gen.go +++ b/macos/coredata/property_description.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package coredata @@ -20,24 +20,24 @@ type _PropertyDescriptionClass struct { type IPropertyDescription interface { objc.IObject SetValidationPredicatesWithValidationWarnings(validationPredicates []foundation.IPredicate, validationWarnings []string) - Entity() EntityDescription - Name() string - SetName(value string) - VersionHash() []byte IsTransient() bool SetTransient(value bool) - ValidationPredicates() []foundation.Predicate - UserInfo() foundation.Dictionary - SetUserInfo(value foundation.Dictionary) - ValidationWarnings() []objc.Object - VersionHashModifier() string - SetVersionHashModifier(value string) + IsIndexedBySpotlight() bool + SetIndexedBySpotlight(value bool) RenamingIdentifier() string SetRenamingIdentifier(value string) + VersionHashModifier() string + SetVersionHashModifier(value string) + Name() string + SetName(value string) + Entity() EntityDescription + ValidationWarnings() []objc.Object + UserInfo() foundation.Dictionary + SetUserInfo(value foundation.Dictionary) + ValidationPredicates() []foundation.Predicate IsOptional() bool SetOptional(value bool) - IsIndexedBySpotlight() bool - SetIndexedBySpotlight(value bool) + VersionHash() []byte } // A description of a single property belonging to an entity. [Full Topic] @@ -58,10 +58,6 @@ func (pc _PropertyDescriptionClass) Alloc() PropertyDescription { return rv } -func PropertyDescription_Alloc() PropertyDescription { - return PropertyDescriptionClass.Alloc() -} - func (pc _PropertyDescriptionClass) New() PropertyDescription { rv := objc.Call[PropertyDescription](pc, objc.Sel("new")) rv.Autorelease() @@ -84,73 +80,87 @@ func (p_ PropertyDescription) SetValidationPredicatesWithValidationWarnings(vali objc.Call[objc.Void](p_, objc.Sel("setValidationPredicates:withValidationWarnings:"), validationPredicates, validationWarnings) } -// The entity description of 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/1506745-entity?language=objc -func (p_ PropertyDescription) Entity() EntityDescription { - rv := objc.Call[EntityDescription](p_, objc.Sel("entity")) +// [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 name of 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/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/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] +// +// [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 } -// The name of 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/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/1506784-indexedbyspotlight?language=objc +func (p_ PropertyDescription) SetIndexedBySpotlight(value bool) { + objc.Call[objc.Void](p_, objc.Sel("setIndexedBySpotlight:"), value) } -// The version hash for the receiver. [Full Topic] +// The renaming identifier for the receiver. [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/1506641-renamingidentifier?language=objc +func (p_ PropertyDescription) RenamingIdentifier() string { + rv := objc.Call[string](p_, objc.Sel("renamingIdentifier")) return rv } -// A Boolean value that indicates whether the receiver is transient. [Full Topic] +// The renaming identifier for 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/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] +// +// [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 } -// A Boolean value that indicates whether the receiver is transient. [Full Topic] +// The version hash modifier for the receiver. [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) +// [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 name of 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/1506759-name?language=objc +func (p_ PropertyDescription) Name() string { + rv := objc.Call[string](p_, objc.Sel("name")) return rv } -// The user info dictionary of the receiver. [Full Topic] +// The name of 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")) - return rv +// [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 user info dictionary of the receiver. [Full Topic] +// The entity description of 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/1506745-entity?language=objc +func (p_ PropertyDescription) Entity() EntityDescription { + rv := objc.Call[EntityDescription](p_, objc.Sel("entity")) + return rv } // The error strings associated with the receiver’s validation predicates. [Full Topic] @@ -161,36 +171,29 @@ func (p_ PropertyDescription) ValidationWarnings() []objc.Object { return rv } -// The version hash modifier for the receiver. [Full Topic] +// The user info dictionary of the receiver. [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/1506833-userinfo?language=objc +func (p_ PropertyDescription) UserInfo() foundation.Dictionary { + rv := objc.Call[foundation.Dictionary](p_, objc.Sel("userInfo")) return rv } -// The version hash modifier for the receiver. [Full Topic] +// The user info dictionary of the receiver. [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/1506833-userinfo?language=objc +func (p_ PropertyDescription) SetUserInfo(value foundation.Dictionary) { + objc.Call[objc.Void](p_, objc.Sel("setUserInfo:"), value) } -// The renaming identifier for the receiver. [Full Topic] +// The validation predicates of 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/1506842-validationpredicates?language=objc +func (p_ PropertyDescription) ValidationPredicates() []foundation.Predicate { + rv := objc.Call[[]foundation.Predicate](p_, objc.Sel("validationPredicates")) 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 @@ -206,17 +209,10 @@ func (p_ PropertyDescription) SetOptional(value bool) { objc.Call[objc.Void](p_, objc.Sel("setOptional:"), value) } -// A Boolean value that indicates whether Core Data adds the property’s value to the Core Spotlight index. [Full Topic] +// The version hash for 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/1506198-versionhash?language=objc +func (p_ PropertyDescription) VersionHash() []byte { + rv := objc.Call[[]byte](p_, objc.Sel("versionHash")) 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 d0e35f8c..f1daee0c 100644 --- a/macos/coredata/property_mapping.gen.go +++ b/macos/coredata/property_mapping.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package coredata @@ -21,10 +21,10 @@ type IPropertyMapping interface { objc.IObject Name() string SetName(value string) - ValueExpression() foundation.Expression - SetValueExpression(value foundation.IExpression) UserInfo() foundation.Dictionary SetUserInfo(value foundation.Dictionary) + ValueExpression() foundation.Expression + SetValueExpression(value foundation.IExpression) } // 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] @@ -45,10 +45,6 @@ func (pc _PropertyMappingClass) Alloc() PropertyMapping { return rv } -func PropertyMapping_Alloc() PropertyMapping { - return PropertyMappingClass.Alloc() -} - func (pc _PropertyMappingClass) New() PropertyMapping { rv := objc.Call[PropertyMapping](pc, objc.Sel("new")) rv.Autorelease() @@ -79,21 +75,6 @@ func (p_ PropertyMapping) SetName(value string) { objc.Call[objc.Void](p_, objc.Sel("setName:"), value) } -// The value expression for the property mapping. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/coredata/nspropertymapping/1506819-valueexpression?language=objc -func (p_ PropertyMapping) ValueExpression() foundation.Expression { - rv := objc.Call[foundation.Expression](p_, objc.Sel("valueExpression")) - return rv -} - -// The value expression for the property mapping. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/coredata/nspropertymapping/1506819-valueexpression?language=objc -func (p_ PropertyMapping) SetValueExpression(value foundation.IExpression) { - objc.Call[objc.Void](p_, objc.Sel("setValueExpression:"), objc.Ptr(value)) -} - // The user info for the property mapping. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/coredata/nspropertymapping/1506516-userinfo?language=objc @@ -108,3 +89,18 @@ func (p_ PropertyMapping) UserInfo() foundation.Dictionary { 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 +func (p_ PropertyMapping) ValueExpression() foundation.Expression { + rv := objc.Call[foundation.Expression](p_, objc.Sel("valueExpression")) + return rv +} + +// The value expression for the property mapping. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/coredata/nspropertymapping/1506819-valueexpression?language=objc +func (p_ PropertyMapping) SetValueExpression(value foundation.IExpression) { + objc.Call[objc.Void](p_, objc.Sel("setValueExpression:"), objc.Ptr(value)) +} diff --git a/macos/coredata/protocols.gen.m b/macos/coredata/protocols.gen.m index 05e8910a..e5a0f5d9 100644 --- a/macos/coredata/protocols.gen.m +++ b/macos/coredata/protocols.gen.m @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. #import "CoreData/CoreData.h" diff --git a/macos/coredata/query_generation_token.gen.go b/macos/coredata/query_generation_token.gen.go index 3a346c4c..7b63487b 100644 --- a/macos/coredata/query_generation_token.gen.go +++ b/macos/coredata/query_generation_token.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package coredata @@ -38,10 +38,6 @@ func (qc _QueryGenerationTokenClass) Alloc() QueryGenerationToken { return rv } -func QueryGenerationToken_Alloc() QueryGenerationToken { - return QueryGenerationTokenClass.Alloc() -} - func (qc _QueryGenerationTokenClass) New() QueryGenerationToken { rv := objc.Call[QueryGenerationToken](qc, objc.Sel("new")) rv.Autorelease() diff --git a/macos/coredata/relationship_description.gen.go b/macos/coredata/relationship_description.gen.go index 372e6d55..96f05557 100644 --- a/macos/coredata/relationship_description.gen.go +++ b/macos/coredata/relationship_description.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package coredata @@ -22,15 +22,15 @@ type IRelationshipDescription interface { SetOrdered(value bool) DestinationEntity() EntityDescription SetDestinationEntity(value IEntityDescription) - DeleteRule() DeleteRule - SetDeleteRule(value DeleteRule) MaxCount() uint SetMaxCount(value uint) - IsToMany() bool + DeleteRule() DeleteRule + SetDeleteRule(value DeleteRule) MinCount() uint SetMinCount(value uint) InverseRelationship() RelationshipDescription SetInverseRelationship(value IRelationshipDescription) + IsToMany() bool } // A description of a relationship between two entities. [Full Topic] @@ -51,10 +51,6 @@ func (rc _RelationshipDescriptionClass) Alloc() RelationshipDescription { return rv } -func RelationshipDescription_Alloc() RelationshipDescription { - return RelationshipDescriptionClass.Alloc() -} - func (rc _RelationshipDescriptionClass) New() RelationshipDescription { rv := objc.Call[RelationshipDescription](rc, objc.Sel("new")) rv.Autorelease() @@ -100,21 +96,6 @@ func (r_ RelationshipDescription) SetDestinationEntity(value IEntityDescription) objc.Call[objc.Void](r_, objc.Sel("setDestinationEntity:"), objc.Ptr(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 @@ -130,14 +111,21 @@ func (r_ RelationshipDescription) SetMaxCount(value uint) { objc.Call[objc.Void](r_, objc.Sel("setMaxCount:"), value) } -// Returns a Boolean value that indicates whether the relationship can contain many managed objects. [Full Topic] +// The rule to apply when you delete the relationship’s owning managed object. [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")) +// [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 minimum number of managed objects the relationship can reference. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/coredata/nsrelationshipdescription/1506599-mincount?language=objc @@ -167,3 +155,11 @@ func (r_ RelationshipDescription) InverseRelationship() RelationshipDescription func (r_ RelationshipDescription) SetInverseRelationship(value IRelationshipDescription) { objc.Call[objc.Void](r_, objc.Sel("setInverseRelationship:"), objc.Ptr(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 634d6638..5e43bd97 100644 --- a/macos/coredata/save_changes_request.gen.go +++ b/macos/coredata/save_changes_request.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package coredata @@ -19,10 +19,10 @@ type _SaveChangesRequestClass struct { // An interface definition for the [SaveChangesRequest] class. type ISaveChangesRequest interface { IPersistentStoreRequest - DeletedObjects() foundation.Set - InsertedObjects() foundation.Set - UpdatedObjects() foundation.Set LockedObjects() foundation.Set + UpdatedObjects() foundation.Set + InsertedObjects() foundation.Set + DeletedObjects() 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] @@ -57,10 +57,6 @@ func (sc _SaveChangesRequestClass) Alloc() SaveChangesRequest { return rv } -func SaveChangesRequest_Alloc() SaveChangesRequest { - return SaveChangesRequestClass.Alloc() -} - func (sc _SaveChangesRequestClass) New() SaveChangesRequest { rv := objc.Call[SaveChangesRequest](sc, objc.Sel("new")) rv.Autorelease() @@ -76,19 +72,11 @@ func (s_ SaveChangesRequest) Init() SaveChangesRequest { return rv } -// The objects that were deleted 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")) - return rv -} - -// The objects that were inserted into the calling context. [Full Topic] +// The objects that were flagged for optimistic locking on the calling context. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coredata/nssavechangesrequest/1500416-insertedobjects?language=objc -func (s_ SaveChangesRequest) InsertedObjects() foundation.Set { - rv := objc.Call[foundation.Set](s_, objc.Sel("insertedObjects")) +// [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 } @@ -100,10 +88,18 @@ func (s_ SaveChangesRequest) UpdatedObjects() foundation.Set { return rv } -// The objects that were flagged for optimistic locking on the calling context. [Full Topic] +// The objects that were inserted into 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")) +// [Full Topic]: https://developer.apple.com/documentation/coredata/nssavechangesrequest/1500416-insertedobjects?language=objc +func (s_ SaveChangesRequest) InsertedObjects() foundation.Set { + rv := objc.Call[foundation.Set](s_, objc.Sel("insertedObjects")) + return rv +} + +// The objects that were deleted 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")) return rv } diff --git a/macos/corefoundation/aliastypes.gen.go b/macos/corefoundation/aliastypes.gen.go index 25d8dcfb..394321a5 100644 --- a/macos/corefoundation/aliastypes.gen.go +++ b/macos/corefoundation/aliastypes.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package corefoundation diff --git a/macos/corefoundation/doc.gen.go b/macos/corefoundation/doc.gen.go index 3418566f..a17507f5 100644 --- a/macos/corefoundation/doc.gen.go +++ b/macos/corefoundation/doc.gen.go @@ -1,8 +1,8 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. // Access low-level functions, primitive data types, and various collection types that are bridged seamlessly with the Foundation framework. // -// [Full Documentation] +// [Apple Documentation] // -// [Full Documentation]: https://developer.apple.com/documentation/corefoundation?language=objc +// [Apple Documentation]: https://developer.apple.com/documentation/corefoundation?language=objc package corefoundation diff --git a/macos/corefoundation/enumtypes.gen.go b/macos/corefoundation/enumtypes.gen.go index 42d8c0fa..7cd2ace6 100644 --- a/macos/corefoundation/enumtypes.gen.go +++ b/macos/corefoundation/enumtypes.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package corefoundation @@ -171,7 +171,7 @@ const ( KNotFound Index = -1 ) -// These constants describe the text direction for a language. They are returned by the functions CFLocaleGetLanguageCharacterDirection and CFLocaleGetLanguageLineDirection. [Full Topic] +// These constants describe the text direction for a language. They are returned by the functions [corefoundation/cflocalegetlanguagecharacterdire] and [corefoundation/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 CFStringTokenizerGoToTokenAtIndex and CFStringTokenizerAdvanceToNextToken. [Full Topic] +// Token types returned by [corefoundation/cfstringtokenizergototokenatinde] and [corefoundation/cfstringtokenizeradvancetonextto]. [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 CFURLEnumeratorGetNextURL function. [Full Topic] +// Result codes from the [corefoundation/cfurlenumeratorgetnexturl] function. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/corefoundation/cfurlenumeratorresult?language=objc type URLEnumeratorResult Index diff --git a/macos/corefoundation/protocols.gen.m b/macos/corefoundation/protocols.gen.m index 84e112f5..76fbb732 100644 --- a/macos/corefoundation/protocols.gen.m +++ b/macos/corefoundation/protocols.gen.m @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. #import "CoreFoundation/CoreFoundation.h" diff --git a/macos/coregraphics/aliastypes.gen.go b/macos/coregraphics/aliastypes.gen.go index 5b3efc50..533c40ce 100644 --- a/macos/coregraphics/aliastypes.gen.go +++ b/macos/coregraphics/aliastypes.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package coregraphics @@ -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 CGDataProviderCreateWithData. [Full Topic] +// A callback function that releases data you supply to the function [coregraphics/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/doc.gen.go b/macos/coregraphics/doc.gen.go index f8f95956..8ef8687e 100644 --- a/macos/coregraphics/doc.gen.go +++ b/macos/coregraphics/doc.gen.go @@ -1,8 +1,8 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. // Harness the power of Quartz technology to perform lightweight 2D rendering with high-fidelity output. Handle path-based drawing, antialiased rendering, gradients, images, color management, PDF documents, and more. // -// [Full Documentation] +// [Apple Documentation] // -// [Full Documentation]: https://developer.apple.com/documentation/coregraphics?language=objc +// [Apple Documentation]: https://developer.apple.com/documentation/coregraphics?language=objc package coregraphics diff --git a/macos/coregraphics/enumtypes.gen.go b/macos/coregraphics/enumtypes.gen.go index 6c03c9e9..482d3af4 100644 --- a/macos/coregraphics/enumtypes.gen.go +++ b/macos/coregraphics/enumtypes.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package coregraphics @@ -320,7 +320,7 @@ const ( // [Full Topic]: https://developer.apple.com/documentation/coregraphics/cgeventmask?language=objc type EventMask uint64 -// Constants used with the [coregraphics/cgeventfield/kcgmouseeventsubtype] event field. [Full Topic] +// Constants used with the kCGMouseEventSubtype event field. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/coregraphics/cgeventmousesubtype?language=objc type EventMouseSubtype uint32 diff --git a/macos/coregraphics/protocols.gen.m b/macos/coregraphics/protocols.gen.m index e82fa3e9..67fea647 100644 --- a/macos/coregraphics/protocols.gen.m +++ b/macos/coregraphics/protocols.gen.m @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. #import "CoreGraphics/CoreGraphics.h" diff --git a/macos/coreimage/accordion_fold_transition.gen.go b/macos/coreimage/accordion_fold_transition_protocol.gen.go similarity index 72% rename from macos/coreimage/accordion_fold_transition.gen.go rename to macos/coreimage/accordion_fold_transition_protocol.gen.go index f64f782c..8aaa6c5d 100644 --- a/macos/coreimage/accordion_fold_transition.gen.go +++ b/macos/coreimage/accordion_fold_transition_protocol.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package coreimage @@ -11,12 +11,12 @@ import ( // [Full Topic]: https://developer.apple.com/documentation/coreimage/ciaccordionfoldtransition?language=objc type PAccordionFoldTransition interface { // optional - SetBottomHeight(value float64) - HasSetBottomHeight() bool + SetNumberOfFolds(value float64) + HasSetNumberOfFolds() bool // optional - BottomHeight() float64 - HasBottomHeight() bool + NumberOfFolds() float64 + HasNumberOfFolds() bool // optional SetFoldShadowAmount(value float64) @@ -27,84 +27,87 @@ type PAccordionFoldTransition interface { HasFoldShadowAmount() bool // optional - SetNumberOfFolds(value float64) - HasSetNumberOfFolds() bool + SetBottomHeight(value float64) + HasSetBottomHeight() bool // optional - NumberOfFolds() float64 - HasNumberOfFolds() bool + BottomHeight() float64 + HasBottomHeight() bool } -// A concrete type wrapper for the [PAccordionFoldTransition] protocol. -type AccordionFoldTransitionWrapper struct { +// ensure impl type implements protocol interface +var _ PAccordionFoldTransition = (*AccordionFoldTransitionObject)(nil) + +// A concrete type for the [PAccordionFoldTransition] protocol. +type AccordionFoldTransitionObject struct { objc.Object } -func (a_ AccordionFoldTransitionWrapper) 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_ AccordionFoldTransitionWrapper) SetBottomHeight(value float64) { - 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 float64) { + objc.Call[objc.Void](a_, objc.Sel("setNumberOfFolds:"), value) } -func (a_ AccordionFoldTransitionWrapper) 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_ AccordionFoldTransitionWrapper) BottomHeight() float64 { - rv := objc.Call[float64](a_, objc.Sel("bottomHeight")) +// [Full Topic]: https://developer.apple.com/documentation/coreimage/ciaccordionfoldtransition/3228052-numberoffolds?language=objc +func (a_ AccordionFoldTransitionObject) NumberOfFolds() float64 { + rv := objc.Call[float64](a_, objc.Sel("numberOfFolds")) return rv } -func (a_ AccordionFoldTransitionWrapper) HasSetFoldShadowAmount() bool { +func (a_ AccordionFoldTransitionObject) HasSetFoldShadowAmount() bool { return a_.RespondsToSelector(objc.Sel("setFoldShadowAmount:")) } // A value that specifies the intensity of the shadow in the transtion. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/coreimage/ciaccordionfoldtransition/3228051-foldshadowamount?language=objc -func (a_ AccordionFoldTransitionWrapper) SetFoldShadowAmount(value float64) { +func (a_ AccordionFoldTransitionObject) SetFoldShadowAmount(value float64) { objc.Call[objc.Void](a_, objc.Sel("setFoldShadowAmount:"), value) } -func (a_ AccordionFoldTransitionWrapper) HasFoldShadowAmount() bool { +func (a_ AccordionFoldTransitionObject) HasFoldShadowAmount() bool { return a_.RespondsToSelector(objc.Sel("foldShadowAmount")) } // A value that specifies the intensity of the shadow in the transtion. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/coreimage/ciaccordionfoldtransition/3228051-foldshadowamount?language=objc -func (a_ AccordionFoldTransitionWrapper) FoldShadowAmount() float64 { +func (a_ AccordionFoldTransitionObject) FoldShadowAmount() float64 { rv := objc.Call[float64](a_, objc.Sel("foldShadowAmount")) return rv } -func (a_ AccordionFoldTransitionWrapper) 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_ AccordionFoldTransitionWrapper) SetNumberOfFolds(value float64) { - 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 float64) { + objc.Call[objc.Void](a_, objc.Sel("setBottomHeight:"), value) } -func (a_ AccordionFoldTransitionWrapper) 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_ AccordionFoldTransitionWrapper) NumberOfFolds() float64 { - rv := objc.Call[float64](a_, objc.Sel("numberOfFolds")) +// [Full Topic]: https://developer.apple.com/documentation/coreimage/ciaccordionfoldtransition/3228050-bottomheight?language=objc +func (a_ AccordionFoldTransitionObject) BottomHeight() float64 { + rv := objc.Call[float64](a_, objc.Sel("bottomHeight")) return rv } diff --git a/macos/coreimage/affine_clamp.gen.go b/macos/coreimage/affine_clamp_protocol.gen.go similarity index 71% rename from macos/coreimage/affine_clamp.gen.go rename to macos/coreimage/affine_clamp_protocol.gen.go index 79367f44..4fd0bdd5 100644 --- a/macos/coreimage/affine_clamp.gen.go +++ b/macos/coreimage/affine_clamp_protocol.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package coreimage @@ -11,14 +11,6 @@ import ( // // [Full Topic]: https://developer.apple.com/documentation/coreimage/ciaffineclamp?language=objc type PAffineClamp interface { - // optional - SetInputImage(value Image) - HasSetInputImage() bool - - // optional - InputImage() IImage - HasInputImage() bool - // optional SetTransform(value coregraphics.AffineTransform) HasSetTransform() bool @@ -26,55 +18,66 @@ type PAffineClamp interface { // optional Transform() coregraphics.AffineTransform HasTransform() bool + + // optional + SetInputImage(value Image) + HasSetInputImage() bool + + // optional + InputImage() Image + HasInputImage() bool } -// A concrete type wrapper for the [PAffineClamp] protocol. -type AffineClampWrapper struct { +// ensure impl type implements protocol interface +var _ PAffineClamp = (*AffineClampObject)(nil) + +// A concrete type for the [PAffineClamp] protocol. +type AffineClampObject struct { objc.Object } -func (a_ AffineClampWrapper) HasSetInputImage() bool { - return a_.RespondsToSelector(objc.Sel("setInputImage:")) +func (a_ AffineClampObject) HasSetTransform() bool { + return a_.RespondsToSelector(objc.Sel("setTransform:")) } -// The image to use as an input image. [Full Topic] +// The transform to apply to the image. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/ciaffineclamp/3228054-inputimage?language=objc -func (a_ AffineClampWrapper) SetInputImage(value IImage) { - objc.Call[objc.Void](a_, objc.Sel("setInputImage:"), objc.Ptr(value)) +// [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_ AffineClampWrapper) HasInputImage() bool { - return a_.RespondsToSelector(objc.Sel("inputImage")) +func (a_ AffineClampObject) HasTransform() bool { + return a_.RespondsToSelector(objc.Sel("transform")) } -// The image to use as an input image. [Full Topic] +// The transform to apply to the image. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/ciaffineclamp/3228054-inputimage?language=objc -func (a_ AffineClampWrapper) InputImage() Image { - rv := objc.Call[Image](a_, objc.Sel("inputImage")) +// [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_ AffineClampWrapper) HasSetTransform() bool { - return a_.RespondsToSelector(objc.Sel("setTransform:")) +func (a_ AffineClampObject) HasSetInputImage() bool { + return a_.RespondsToSelector(objc.Sel("setInputImage:")) } -// The transform to apply to the image. [Full Topic] +// The image to use as an input image. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/ciaffineclamp/3228055-transform?language=objc -func (a_ AffineClampWrapper) SetTransform(value coregraphics.AffineTransform) { - objc.Call[objc.Void](a_, objc.Sel("setTransform:"), value) +// [Full Topic]: https://developer.apple.com/documentation/coreimage/ciaffineclamp/3228054-inputimage?language=objc +func (a_ AffineClampObject) SetInputImage(value Image) { + objc.Call[objc.Void](a_, objc.Sel("setInputImage:"), objc.Ptr(value)) } -func (a_ AffineClampWrapper) HasTransform() bool { - return a_.RespondsToSelector(objc.Sel("transform")) +func (a_ AffineClampObject) HasInputImage() bool { + return a_.RespondsToSelector(objc.Sel("inputImage")) } -// The transform to apply to the image. [Full Topic] +// The image to use as an input image. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/ciaffineclamp/3228055-transform?language=objc -func (a_ AffineClampWrapper) Transform() coregraphics.AffineTransform { - rv := objc.Call[coregraphics.AffineTransform](a_, objc.Sel("transform")) +// [Full Topic]: https://developer.apple.com/documentation/coreimage/ciaffineclamp/3228054-inputimage?language=objc +func (a_ AffineClampObject) InputImage() Image { + rv := objc.Call[Image](a_, objc.Sel("inputImage")) return rv } diff --git a/macos/coreimage/affine_tile.gen.go b/macos/coreimage/affine_tile_protocol.gen.go similarity index 72% rename from macos/coreimage/affine_tile.gen.go rename to macos/coreimage/affine_tile_protocol.gen.go index c7dea539..42d0e862 100644 --- a/macos/coreimage/affine_tile.gen.go +++ b/macos/coreimage/affine_tile_protocol.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package coreimage @@ -11,14 +11,6 @@ import ( // // [Full Topic]: https://developer.apple.com/documentation/coreimage/ciaffinetile?language=objc type PAffineTile interface { - // optional - SetInputImage(value Image) - HasSetInputImage() bool - - // optional - InputImage() IImage - HasInputImage() bool - // optional SetTransform(value coregraphics.AffineTransform) HasSetTransform() bool @@ -26,55 +18,66 @@ type PAffineTile interface { // optional Transform() coregraphics.AffineTransform HasTransform() bool + + // optional + SetInputImage(value Image) + HasSetInputImage() bool + + // optional + InputImage() Image + HasInputImage() bool } -// A concrete type wrapper for the [PAffineTile] protocol. -type AffineTileWrapper struct { +// ensure impl type implements protocol interface +var _ PAffineTile = (*AffineTileObject)(nil) + +// A concrete type for the [PAffineTile] protocol. +type AffineTileObject struct { objc.Object } -func (a_ AffineTileWrapper) HasSetInputImage() bool { - return a_.RespondsToSelector(objc.Sel("setInputImage:")) +func (a_ AffineTileObject) HasSetTransform() bool { + return a_.RespondsToSelector(objc.Sel("setTransform:")) } -// The image to use as an input image. [Full Topic] +// The transform to apply to the image. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/ciaffinetile/3228057-inputimage?language=objc -func (a_ AffineTileWrapper) SetInputImage(value IImage) { - objc.Call[objc.Void](a_, objc.Sel("setInputImage:"), objc.Ptr(value)) +// [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_ AffineTileWrapper) HasInputImage() bool { - return a_.RespondsToSelector(objc.Sel("inputImage")) +func (a_ AffineTileObject) HasTransform() bool { + return a_.RespondsToSelector(objc.Sel("transform")) } -// The image to use as an input image. [Full Topic] +// The transform to apply to the image. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/ciaffinetile/3228057-inputimage?language=objc -func (a_ AffineTileWrapper) InputImage() Image { - rv := objc.Call[Image](a_, objc.Sel("inputImage")) +// [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_ AffineTileWrapper) HasSetTransform() bool { - return a_.RespondsToSelector(objc.Sel("setTransform:")) +func (a_ AffineTileObject) HasSetInputImage() bool { + return a_.RespondsToSelector(objc.Sel("setInputImage:")) } -// The transform to apply to the image. [Full Topic] +// The image to use as an input image. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/ciaffinetile/3228058-transform?language=objc -func (a_ AffineTileWrapper) SetTransform(value coregraphics.AffineTransform) { - objc.Call[objc.Void](a_, objc.Sel("setTransform:"), value) +// [Full Topic]: https://developer.apple.com/documentation/coreimage/ciaffinetile/3228057-inputimage?language=objc +func (a_ AffineTileObject) SetInputImage(value Image) { + objc.Call[objc.Void](a_, objc.Sel("setInputImage:"), objc.Ptr(value)) } -func (a_ AffineTileWrapper) HasTransform() bool { - return a_.RespondsToSelector(objc.Sel("transform")) +func (a_ AffineTileObject) HasInputImage() bool { + return a_.RespondsToSelector(objc.Sel("inputImage")) } -// The transform to apply to the image. [Full Topic] +// The image to use as an input image. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/ciaffinetile/3228058-transform?language=objc -func (a_ AffineTileWrapper) Transform() coregraphics.AffineTransform { - rv := objc.Call[coregraphics.AffineTransform](a_, objc.Sel("transform")) +// [Full Topic]: https://developer.apple.com/documentation/coreimage/ciaffinetile/3228057-inputimage?language=objc +func (a_ AffineTileObject) InputImage() Image { + rv := objc.Call[Image](a_, objc.Sel("inputImage")) return rv } diff --git a/macos/coreimage/aliastypes.gen.go b/macos/coreimage/aliastypes.gen.go index 0de2ba02..2d50f55a 100644 --- a/macos/coreimage/aliastypes.gen.go +++ b/macos/coreimage/aliastypes.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package coreimage @@ -6,7 +6,7 @@ import ( "github.com/progrium/macdriver/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 applyWithExtent:roiCallback:arguments: 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 [coreimage/cikernel/applywithextent] 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_average.gen.go b/macos/coreimage/area_average_protocol.gen.go similarity index 50% rename from macos/coreimage/area_average.gen.go rename to macos/coreimage/area_average_protocol.gen.go index 48c62d09..06f14aa1 100644 --- a/macos/coreimage/area_average.gen.go +++ b/macos/coreimage/area_average_protocol.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package coreimage @@ -12,7 +12,10 @@ import ( type PAreaAverage interface { } -// A concrete type wrapper for the [PAreaAverage] protocol. -type AreaAverageWrapper struct { +// ensure impl type implements protocol interface +var _ PAreaAverage = (*AreaAverageObject)(nil) + +// A concrete type for the [PAreaAverage] protocol. +type AreaAverageObject struct { objc.Object } diff --git a/macos/coreimage/area_histogram.gen.go b/macos/coreimage/area_histogram_protocol.gen.go similarity index 69% rename from macos/coreimage/area_histogram.gen.go rename to macos/coreimage/area_histogram_protocol.gen.go index 8527f7dc..bb8d91d4 100644 --- a/macos/coreimage/area_histogram.gen.go +++ b/macos/coreimage/area_histogram_protocol.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package coreimage @@ -27,53 +27,56 @@ type PAreaHistogram interface { HasCount() bool } -// A concrete type wrapper for the [PAreaHistogram] protocol. -type AreaHistogramWrapper struct { +// ensure impl type implements protocol interface +var _ PAreaHistogram = (*AreaHistogramObject)(nil) + +// A concrete type for the [PAreaHistogram] protocol. +type AreaHistogramObject struct { objc.Object } -func (a_ AreaHistogramWrapper) HasSetScale() bool { +func (a_ AreaHistogramObject) HasSetScale() bool { return a_.RespondsToSelector(objc.Sel("setScale:")) } // [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/coreimage/ciareahistogram/3547093-scale?language=objc -func (a_ AreaHistogramWrapper) SetScale(value float64) { +func (a_ AreaHistogramObject) SetScale(value float64) { objc.Call[objc.Void](a_, objc.Sel("setScale:"), value) } -func (a_ AreaHistogramWrapper) HasScale() bool { +func (a_ AreaHistogramObject) HasScale() bool { return a_.RespondsToSelector(objc.Sel("scale")) } // [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/coreimage/ciareahistogram/3547093-scale?language=objc -func (a_ AreaHistogramWrapper) Scale() float64 { +func (a_ AreaHistogramObject) Scale() float64 { rv := objc.Call[float64](a_, objc.Sel("scale")) return rv } -func (a_ AreaHistogramWrapper) HasSetCount() bool { +func (a_ AreaHistogramObject) HasSetCount() bool { return a_.RespondsToSelector(objc.Sel("setCount:")) } // [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/coreimage/ciareahistogram/3547092-count?language=objc -func (a_ AreaHistogramWrapper) SetCount(value int) { +func (a_ AreaHistogramObject) SetCount(value int) { objc.Call[objc.Void](a_, objc.Sel("setCount:"), value) } -func (a_ AreaHistogramWrapper) HasCount() bool { +func (a_ AreaHistogramObject) HasCount() bool { return a_.RespondsToSelector(objc.Sel("count")) } // [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/coreimage/ciareahistogram/3547092-count?language=objc -func (a_ AreaHistogramWrapper) Count() int { +func (a_ AreaHistogramObject) Count() int { rv := objc.Call[int](a_, objc.Sel("count")) return rv } diff --git a/macos/coreimage/area_maximum_alpha.gen.go b/macos/coreimage/area_maximum_alpha.gen.go deleted file mode 100644 index fc8dd969..00000000 --- a/macos/coreimage/area_maximum_alpha.gen.go +++ /dev/null @@ -1,18 +0,0 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY - -package coreimage - -import ( - "github.com/progrium/macdriver/objc" -) - -// [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/coreimage/ciareamaximumalpha?language=objc -type PAreaMaximumAlpha interface { -} - -// A concrete type wrapper for the [PAreaMaximumAlpha] protocol. -type AreaMaximumAlphaWrapper struct { - objc.Object -} diff --git a/macos/coreimage/area_maximum_alpha_protocol.gen.go b/macos/coreimage/area_maximum_alpha_protocol.gen.go new file mode 100644 index 00000000..7b149b16 --- /dev/null +++ b/macos/coreimage/area_maximum_alpha_protocol.gen.go @@ -0,0 +1,21 @@ +// Code generated by DarwinKit. DO NOT EDIT. + +package coreimage + +import ( + "github.com/progrium/macdriver/objc" +) + +// [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/coreimage/ciareamaximumalpha?language=objc +type PAreaMaximumAlpha interface { +} + +// ensure impl type implements protocol interface +var _ PAreaMaximumAlpha = (*AreaMaximumAlphaObject)(nil) + +// A concrete type for the [PAreaMaximumAlpha] protocol. +type AreaMaximumAlphaObject struct { + objc.Object +} diff --git a/macos/coreimage/area_maximum.gen.go b/macos/coreimage/area_maximum_protocol.gen.go similarity index 50% rename from macos/coreimage/area_maximum.gen.go rename to macos/coreimage/area_maximum_protocol.gen.go index 47b28f83..f032eb1c 100644 --- a/macos/coreimage/area_maximum.gen.go +++ b/macos/coreimage/area_maximum_protocol.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package coreimage @@ -12,7 +12,10 @@ import ( type PAreaMaximum interface { } -// A concrete type wrapper for the [PAreaMaximum] protocol. -type AreaMaximumWrapper struct { +// ensure impl type implements protocol interface +var _ PAreaMaximum = (*AreaMaximumObject)(nil) + +// A concrete type for the [PAreaMaximum] protocol. +type AreaMaximumObject struct { objc.Object } diff --git a/macos/coreimage/area_min_max.gen.go b/macos/coreimage/area_min_max_protocol.gen.go similarity index 50% rename from macos/coreimage/area_min_max.gen.go rename to macos/coreimage/area_min_max_protocol.gen.go index 17b8a0f3..de96e478 100644 --- a/macos/coreimage/area_min_max.gen.go +++ b/macos/coreimage/area_min_max_protocol.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package coreimage @@ -12,7 +12,10 @@ import ( type PAreaMinMax interface { } -// A concrete type wrapper for the [PAreaMinMax] protocol. -type AreaMinMaxWrapper struct { +// ensure impl type implements protocol interface +var _ PAreaMinMax = (*AreaMinMaxObject)(nil) + +// A concrete type for the [PAreaMinMax] protocol. +type AreaMinMaxObject struct { objc.Object } diff --git a/macos/coreimage/area_min_max_red.gen.go b/macos/coreimage/area_min_max_red_protocol.gen.go similarity index 50% rename from macos/coreimage/area_min_max_red.gen.go rename to macos/coreimage/area_min_max_red_protocol.gen.go index 7af0e947..c083fa0f 100644 --- a/macos/coreimage/area_min_max_red.gen.go +++ b/macos/coreimage/area_min_max_red_protocol.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package coreimage @@ -12,7 +12,10 @@ import ( type PAreaMinMaxRed interface { } -// A concrete type wrapper for the [PAreaMinMaxRed] protocol. -type AreaMinMaxRedWrapper struct { +// ensure impl type implements protocol interface +var _ PAreaMinMaxRed = (*AreaMinMaxRedObject)(nil) + +// A concrete type for the [PAreaMinMaxRed] protocol. +type AreaMinMaxRedObject struct { objc.Object } diff --git a/macos/coreimage/area_minimum_alpha.gen.go b/macos/coreimage/area_minimum_alpha.gen.go deleted file mode 100644 index 35f4e9d6..00000000 --- a/macos/coreimage/area_minimum_alpha.gen.go +++ /dev/null @@ -1,18 +0,0 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY - -package coreimage - -import ( - "github.com/progrium/macdriver/objc" -) - -// [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/coreimage/ciareaminimumalpha?language=objc -type PAreaMinimumAlpha interface { -} - -// A concrete type wrapper for the [PAreaMinimumAlpha] protocol. -type AreaMinimumAlphaWrapper struct { - objc.Object -} diff --git a/macos/coreimage/area_minimum_alpha_protocol.gen.go b/macos/coreimage/area_minimum_alpha_protocol.gen.go new file mode 100644 index 00000000..f68422f3 --- /dev/null +++ b/macos/coreimage/area_minimum_alpha_protocol.gen.go @@ -0,0 +1,21 @@ +// Code generated by DarwinKit. DO NOT EDIT. + +package coreimage + +import ( + "github.com/progrium/macdriver/objc" +) + +// [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/coreimage/ciareaminimumalpha?language=objc +type PAreaMinimumAlpha interface { +} + +// ensure impl type implements protocol interface +var _ PAreaMinimumAlpha = (*AreaMinimumAlphaObject)(nil) + +// A concrete type for the [PAreaMinimumAlpha] protocol. +type AreaMinimumAlphaObject struct { + objc.Object +} diff --git a/macos/coreimage/area_minimum.gen.go b/macos/coreimage/area_minimum_protocol.gen.go similarity index 50% rename from macos/coreimage/area_minimum.gen.go rename to macos/coreimage/area_minimum_protocol.gen.go index 901517c5..8190f03b 100644 --- a/macos/coreimage/area_minimum.gen.go +++ b/macos/coreimage/area_minimum_protocol.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package coreimage @@ -12,7 +12,10 @@ import ( type PAreaMinimum interface { } -// A concrete type wrapper for the [PAreaMinimum] protocol. -type AreaMinimumWrapper struct { +// ensure impl type implements protocol interface +var _ PAreaMinimum = (*AreaMinimumObject)(nil) + +// A concrete type for the [PAreaMinimum] protocol. +type AreaMinimumObject struct { objc.Object } diff --git a/macos/coreimage/area_reduction_filter.gen.go b/macos/coreimage/area_reduction_filter_protocol.gen.go similarity index 67% rename from macos/coreimage/area_reduction_filter.gen.go rename to macos/coreimage/area_reduction_filter_protocol.gen.go index fe5645c5..43403d13 100644 --- a/macos/coreimage/area_reduction_filter.gen.go +++ b/macos/coreimage/area_reduction_filter_protocol.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package coreimage @@ -11,14 +11,6 @@ import ( // // [Full Topic]: https://developer.apple.com/documentation/coreimage/ciareareductionfilter?language=objc type PAreaReductionFilter interface { - // optional - SetInputImage(value Image) - HasSetInputImage() bool - - // optional - InputImage() IImage - HasInputImage() bool - // optional SetExtent(value coregraphics.Rect) HasSetExtent() bool @@ -26,55 +18,66 @@ type PAreaReductionFilter interface { // optional Extent() coregraphics.Rect HasExtent() bool + + // optional + SetInputImage(value Image) + HasSetInputImage() bool + + // optional + InputImage() Image + HasInputImage() bool } -// A concrete type wrapper for the [PAreaReductionFilter] protocol. -type AreaReductionFilterWrapper struct { +// ensure impl type implements protocol interface +var _ PAreaReductionFilter = (*AreaReductionFilterObject)(nil) + +// A concrete type for the [PAreaReductionFilter] protocol. +type AreaReductionFilterObject struct { objc.Object } -func (a_ AreaReductionFilterWrapper) 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_ AreaReductionFilterWrapper) SetInputImage(value IImage) { - objc.Call[objc.Void](a_, objc.Sel("setInputImage:"), objc.Ptr(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_ AreaReductionFilterWrapper) 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_ AreaReductionFilterWrapper) 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 } -func (a_ AreaReductionFilterWrapper) 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_ AreaReductionFilterWrapper) 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:"), objc.Ptr(value)) } -func (a_ AreaReductionFilterWrapper) 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_ AreaReductionFilterWrapper) 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 } diff --git a/macos/coreimage/attributed_text_image_generator.gen.go b/macos/coreimage/attributed_text_image_generator_protocol.gen.go similarity index 66% rename from macos/coreimage/attributed_text_image_generator.gen.go rename to macos/coreimage/attributed_text_image_generator_protocol.gen.go index bf180686..cb293fec 100644 --- a/macos/coreimage/attributed_text_image_generator.gen.go +++ b/macos/coreimage/attributed_text_image_generator_protocol.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package coreimage @@ -24,57 +24,60 @@ type PAttributedTextImageGenerator interface { HasSetText() bool // optional - Text() foundation.IAttributedString + Text() foundation.AttributedString HasText() bool } -// A concrete type wrapper for the [PAttributedTextImageGenerator] protocol. -type AttributedTextImageGeneratorWrapper struct { +// ensure impl type implements protocol interface +var _ PAttributedTextImageGenerator = (*AttributedTextImageGeneratorObject)(nil) + +// A concrete type for the [PAttributedTextImageGenerator] protocol. +type AttributedTextImageGeneratorObject struct { objc.Object } -func (a_ AttributedTextImageGeneratorWrapper) HasSetScaleFactor() bool { +func (a_ AttributedTextImageGeneratorObject) HasSetScaleFactor() bool { return a_.RespondsToSelector(objc.Sel("setScaleFactor:")) } // The scale at which to render the text. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/coreimage/ciattributedtextimagegenerator/3228060-scalefactor?language=objc -func (a_ AttributedTextImageGeneratorWrapper) SetScaleFactor(value float64) { +func (a_ AttributedTextImageGeneratorObject) SetScaleFactor(value float64) { objc.Call[objc.Void](a_, objc.Sel("setScaleFactor:"), value) } -func (a_ AttributedTextImageGeneratorWrapper) HasScaleFactor() bool { +func (a_ AttributedTextImageGeneratorObject) HasScaleFactor() bool { return a_.RespondsToSelector(objc.Sel("scaleFactor")) } // The scale at which to render the text. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/coreimage/ciattributedtextimagegenerator/3228060-scalefactor?language=objc -func (a_ AttributedTextImageGeneratorWrapper) ScaleFactor() float64 { +func (a_ AttributedTextImageGeneratorObject) ScaleFactor() float64 { rv := objc.Call[float64](a_, objc.Sel("scaleFactor")) return rv } -func (a_ AttributedTextImageGeneratorWrapper) HasSetText() bool { +func (a_ AttributedTextImageGeneratorObject) HasSetText() bool { return a_.RespondsToSelector(objc.Sel("setText:")) } // The text to render. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/coreimage/ciattributedtextimagegenerator/3228061-text?language=objc -func (a_ AttributedTextImageGeneratorWrapper) SetText(value foundation.IAttributedString) { +func (a_ AttributedTextImageGeneratorObject) SetText(value foundation.AttributedString) { objc.Call[objc.Void](a_, objc.Sel("setText:"), objc.Ptr(value)) } -func (a_ AttributedTextImageGeneratorWrapper) HasText() bool { +func (a_ AttributedTextImageGeneratorObject) HasText() bool { return a_.RespondsToSelector(objc.Sel("text")) } // The text to render. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/coreimage/ciattributedtextimagegenerator/3228061-text?language=objc -func (a_ AttributedTextImageGeneratorWrapper) Text() foundation.AttributedString { +func (a_ AttributedTextImageGeneratorObject) Text() foundation.AttributedString { rv := objc.Call[foundation.AttributedString](a_, objc.Sel("text")) return rv } diff --git a/macos/coreimage/aztec_code_descriptor.gen.go b/macos/coreimage/aztec_code_descriptor.gen.go index a6f6014f..aef89d44 100644 --- a/macos/coreimage/aztec_code_descriptor.gen.go +++ b/macos/coreimage/aztec_code_descriptor.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package coreimage @@ -18,10 +18,10 @@ type _AztecCodeDescriptorClass struct { // An interface definition for the [AztecCodeDescriptor] class. type IAztecCodeDescriptor interface { IBarcodeDescriptor - IsCompact() bool - DataCodewordCount() int ErrorCorrectedPayload() []byte LayerCount() int + IsCompact() bool + DataCodewordCount() int } // A concrete subclass of CIBarcodeDescriptor that represents an Aztec code symbol. [Full Topic] @@ -68,10 +68,6 @@ func (ac _AztecCodeDescriptorClass) Alloc() AztecCodeDescriptor { return rv } -func AztecCodeDescriptor_Alloc() AztecCodeDescriptor { - return AztecCodeDescriptorClass.Alloc() -} - func (ac _AztecCodeDescriptorClass) New() AztecCodeDescriptor { rv := objc.Call[AztecCodeDescriptor](ac, objc.Sel("new")) rv.Autorelease() @@ -87,22 +83,6 @@ func (a_ AztecCodeDescriptor) Init() AztecCodeDescriptor { 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 -func (a_ AztecCodeDescriptor) IsCompact() bool { - rv := objc.Call[bool](a_, objc.Sel("isCompact")) - return rv -} - -// The number of data codewords in the Aztec code. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/coreimage/ciazteccodedescriptor/2875166-datacodewordcount?language=objc -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 @@ -118,3 +98,19 @@ 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 +func (a_ AztecCodeDescriptor) IsCompact() bool { + rv := objc.Call[bool](a_, objc.Sel("isCompact")) + return rv +} + +// The number of data codewords in the Aztec code. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/coreimage/ciazteccodedescriptor/2875166-datacodewordcount?language=objc +func (a_ AztecCodeDescriptor) DataCodewordCount() int { + rv := objc.Call[int](a_, objc.Sel("dataCodewordCount")) + return rv +} diff --git a/macos/coreimage/aztec_code_generator.gen.go b/macos/coreimage/aztec_code_generator_protocol.gen.go similarity index 73% rename from macos/coreimage/aztec_code_generator.gen.go rename to macos/coreimage/aztec_code_generator_protocol.gen.go index d7bdec61..d2950976 100644 --- a/macos/coreimage/aztec_code_generator.gen.go +++ b/macos/coreimage/aztec_code_generator_protocol.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package coreimage @@ -10,14 +10,6 @@ import ( // // [Full Topic]: https://developer.apple.com/documentation/coreimage/ciazteccodegenerator?language=objc type PAztecCodeGenerator interface { - // optional - SetLayers(value float64) - HasSetLayers() bool - - // optional - Layers() float64 - HasLayers() bool - // optional SetCompactStyle(value float64) HasSetCompactStyle() bool @@ -26,14 +18,6 @@ type PAztecCodeGenerator interface { CompactStyle() float64 HasCompactStyle() bool - // optional - SetMessage(value []byte) - HasSetMessage() bool - - // optional - Message() []byte - HasMessage() bool - // optional SetCorrectionLevel(value float64) HasSetCorrectionLevel() bool @@ -41,101 +25,120 @@ type PAztecCodeGenerator interface { // optional CorrectionLevel() float64 HasCorrectionLevel() bool -} -// A concrete type wrapper for the [PAztecCodeGenerator] protocol. -type AztecCodeGeneratorWrapper struct { - objc.Object -} + // optional + SetLayers(value float64) + HasSetLayers() bool -func (a_ AztecCodeGeneratorWrapper) HasSetLayers() bool { - return a_.RespondsToSelector(objc.Sel("setLayers:")) -} + // optional + Layers() float64 + HasLayers() bool -// The number of Aztec layers, a value from 1 to 32. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/coreimage/ciazteccodegenerator/3228065-layers?language=objc -func (a_ AztecCodeGeneratorWrapper) SetLayers(value float64) { - objc.Call[objc.Void](a_, objc.Sel("setLayers:"), value) -} + // optional + SetMessage(value []byte) + HasSetMessage() bool -func (a_ AztecCodeGeneratorWrapper) HasLayers() bool { - return a_.RespondsToSelector(objc.Sel("layers")) + // optional + Message() []byte + HasMessage() bool } -// The number of Aztec layers, a value from 1 to 32. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/coreimage/ciazteccodegenerator/3228065-layers?language=objc -func (a_ AztecCodeGeneratorWrapper) Layers() float64 { - rv := objc.Call[float64](a_, objc.Sel("layers")) - return rv +// ensure impl type implements protocol interface +var _ PAztecCodeGenerator = (*AztecCodeGeneratorObject)(nil) + +// A concrete type for the [PAztecCodeGenerator] protocol. +type AztecCodeGeneratorObject struct { + objc.Object } -func (a_ AztecCodeGeneratorWrapper) HasSetCompactStyle() bool { +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_ AztecCodeGeneratorWrapper) SetCompactStyle(value float64) { +func (a_ AztecCodeGeneratorObject) SetCompactStyle(value float64) { objc.Call[objc.Void](a_, objc.Sel("setCompactStyle:"), value) } -func (a_ AztecCodeGeneratorWrapper) HasCompactStyle() bool { +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_ AztecCodeGeneratorWrapper) CompactStyle() float64 { +func (a_ AztecCodeGeneratorObject) CompactStyle() float64 { rv := objc.Call[float64](a_, objc.Sel("compactStyle")) return rv } -func (a_ AztecCodeGeneratorWrapper) HasSetMessage() bool { - return a_.RespondsToSelector(objc.Sel("setMessage:")) +func (a_ AztecCodeGeneratorObject) HasSetCorrectionLevel() bool { + return a_.RespondsToSelector(objc.Sel("setCorrectionLevel:")) } -// The message to encode in the Aztec barcode. [Full Topic] +// The Aztec error correction, a value from 5 to 95. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/ciazteccodegenerator/3228066-message?language=objc -func (a_ AztecCodeGeneratorWrapper) SetMessage(value []byte) { - objc.Call[objc.Void](a_, objc.Sel("setMessage:"), value) +// [Full Topic]: https://developer.apple.com/documentation/coreimage/ciazteccodegenerator/3228064-correctionlevel?language=objc +func (a_ AztecCodeGeneratorObject) SetCorrectionLevel(value float64) { + objc.Call[objc.Void](a_, objc.Sel("setCorrectionLevel:"), value) } -func (a_ AztecCodeGeneratorWrapper) HasMessage() bool { - return a_.RespondsToSelector(objc.Sel("message")) +func (a_ AztecCodeGeneratorObject) HasCorrectionLevel() bool { + return a_.RespondsToSelector(objc.Sel("correctionLevel")) } -// The message to encode in the Aztec barcode. [Full Topic] +// The Aztec error correction, a value from 5 to 95. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/ciazteccodegenerator/3228066-message?language=objc -func (a_ AztecCodeGeneratorWrapper) Message() []byte { - rv := objc.Call[[]byte](a_, objc.Sel("message")) +// [Full Topic]: https://developer.apple.com/documentation/coreimage/ciazteccodegenerator/3228064-correctionlevel?language=objc +func (a_ AztecCodeGeneratorObject) CorrectionLevel() float64 { + rv := objc.Call[float64](a_, objc.Sel("correctionLevel")) return rv } -func (a_ AztecCodeGeneratorWrapper) HasSetCorrectionLevel() bool { - return a_.RespondsToSelector(objc.Sel("setCorrectionLevel:")) +func (a_ AztecCodeGeneratorObject) HasSetLayers() bool { + return a_.RespondsToSelector(objc.Sel("setLayers:")) } -// The Aztec error correction, a value from 5 to 95. [Full Topic] +// The number of Aztec layers, a value from 1 to 32. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/ciazteccodegenerator/3228064-correctionlevel?language=objc -func (a_ AztecCodeGeneratorWrapper) SetCorrectionLevel(value float64) { - objc.Call[objc.Void](a_, objc.Sel("setCorrectionLevel:"), value) +// [Full Topic]: https://developer.apple.com/documentation/coreimage/ciazteccodegenerator/3228065-layers?language=objc +func (a_ AztecCodeGeneratorObject) SetLayers(value float64) { + objc.Call[objc.Void](a_, objc.Sel("setLayers:"), value) } -func (a_ AztecCodeGeneratorWrapper) HasCorrectionLevel() bool { - return a_.RespondsToSelector(objc.Sel("correctionLevel")) +func (a_ AztecCodeGeneratorObject) HasLayers() bool { + return a_.RespondsToSelector(objc.Sel("layers")) } -// The Aztec error correction, a value from 5 to 95. [Full Topic] +// The number of Aztec layers, a value from 1 to 32. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/ciazteccodegenerator/3228064-correctionlevel?language=objc -func (a_ AztecCodeGeneratorWrapper) CorrectionLevel() float64 { - rv := objc.Call[float64](a_, objc.Sel("correctionLevel")) +// [Full Topic]: https://developer.apple.com/documentation/coreimage/ciazteccodegenerator/3228065-layers?language=objc +func (a_ AztecCodeGeneratorObject) Layers() float64 { + rv := objc.Call[float64](a_, objc.Sel("layers")) + return rv +} + +func (a_ AztecCodeGeneratorObject) HasSetMessage() bool { + return a_.RespondsToSelector(objc.Sel("setMessage:")) +} + +// The message to encode in the Aztec barcode. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/coreimage/ciazteccodegenerator/3228066-message?language=objc +func (a_ AztecCodeGeneratorObject) SetMessage(value []byte) { + objc.Call[objc.Void](a_, objc.Sel("setMessage:"), value) +} + +func (a_ AztecCodeGeneratorObject) HasMessage() bool { + return a_.RespondsToSelector(objc.Sel("message")) +} + +// The message to encode in the Aztec barcode. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/coreimage/ciazteccodegenerator/3228066-message?language=objc +func (a_ AztecCodeGeneratorObject) Message() []byte { + rv := objc.Call[[]byte](a_, objc.Sel("message")) return rv } diff --git a/macos/coreimage/barcode_descriptor.gen.go b/macos/coreimage/barcode_descriptor.gen.go index 0c513e33..77bc6c2e 100644 --- a/macos/coreimage/barcode_descriptor.gen.go +++ b/macos/coreimage/barcode_descriptor.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package coreimage @@ -38,10 +38,6 @@ func (bc _BarcodeDescriptorClass) Alloc() BarcodeDescriptor { return rv } -func BarcodeDescriptor_Alloc() BarcodeDescriptor { - return BarcodeDescriptorClass.Alloc() -} - func (bc _BarcodeDescriptorClass) New() BarcodeDescriptor { rv := objc.Call[BarcodeDescriptor](bc, objc.Sel("new")) rv.Autorelease() diff --git a/macos/coreimage/barcode_generator.gen.go b/macos/coreimage/barcode_generator_protocol.gen.go similarity index 66% rename from macos/coreimage/barcode_generator.gen.go rename to macos/coreimage/barcode_generator_protocol.gen.go index c4b25efb..614ce0bf 100644 --- a/macos/coreimage/barcode_generator.gen.go +++ b/macos/coreimage/barcode_generator_protocol.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package coreimage @@ -15,34 +15,37 @@ type PBarcodeGenerator interface { HasSetBarcodeDescriptor() bool // optional - BarcodeDescriptor() IBarcodeDescriptor + BarcodeDescriptor() BarcodeDescriptor HasBarcodeDescriptor() bool } -// A concrete type wrapper for the [PBarcodeGenerator] protocol. -type BarcodeGeneratorWrapper struct { +// ensure impl type implements protocol interface +var _ PBarcodeGenerator = (*BarcodeGeneratorObject)(nil) + +// A concrete type for the [PBarcodeGenerator] protocol. +type BarcodeGeneratorObject struct { objc.Object } -func (b_ BarcodeGeneratorWrapper) HasSetBarcodeDescriptor() bool { +func (b_ BarcodeGeneratorObject) HasSetBarcodeDescriptor() bool { return b_.RespondsToSelector(objc.Sel("setBarcodeDescriptor:")) } // The barcode descriptor to generate an image for. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/coreimage/cibarcodegenerator/3228068-barcodedescriptor?language=objc -func (b_ BarcodeGeneratorWrapper) SetBarcodeDescriptor(value IBarcodeDescriptor) { +func (b_ BarcodeGeneratorObject) SetBarcodeDescriptor(value BarcodeDescriptor) { objc.Call[objc.Void](b_, objc.Sel("setBarcodeDescriptor:"), objc.Ptr(value)) } -func (b_ BarcodeGeneratorWrapper) HasBarcodeDescriptor() bool { +func (b_ BarcodeGeneratorObject) HasBarcodeDescriptor() bool { return b_.RespondsToSelector(objc.Sel("barcodeDescriptor")) } // The barcode descriptor to generate an image for. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/coreimage/cibarcodegenerator/3228068-barcodedescriptor?language=objc -func (b_ BarcodeGeneratorWrapper) BarcodeDescriptor() BarcodeDescriptor { +func (b_ BarcodeGeneratorObject) BarcodeDescriptor() BarcodeDescriptor { rv := objc.Call[BarcodeDescriptor](b_, objc.Sel("barcodeDescriptor")) return rv } diff --git a/macos/coreimage/bars_swipe_transition.gen.go b/macos/coreimage/bars_swipe_transition_protocol.gen.go similarity index 71% rename from macos/coreimage/bars_swipe_transition.gen.go rename to macos/coreimage/bars_swipe_transition_protocol.gen.go index ba84e06d..3a0fc80e 100644 --- a/macos/coreimage/bars_swipe_transition.gen.go +++ b/macos/coreimage/bars_swipe_transition_protocol.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package coreimage @@ -11,12 +11,12 @@ import ( // [Full Topic]: https://developer.apple.com/documentation/coreimage/cibarsswipetransition?language=objc type PBarsSwipeTransition interface { // optional - SetWidth(value float64) - HasSetWidth() bool + SetAngle(value float64) + HasSetAngle() bool // optional - Width() float64 - HasWidth() bool + Angle() float64 + HasAngle() bool // optional SetBarOffset(value float64) @@ -27,84 +27,87 @@ type PBarsSwipeTransition interface { HasBarOffset() bool // optional - SetAngle(value float64) - HasSetAngle() bool + SetWidth(value float64) + HasSetWidth() bool // optional - Angle() float64 - HasAngle() bool + Width() float64 + HasWidth() bool } -// A concrete type wrapper for the [PBarsSwipeTransition] protocol. -type BarsSwipeTransitionWrapper struct { +// ensure impl type implements protocol interface +var _ PBarsSwipeTransition = (*BarsSwipeTransitionObject)(nil) + +// A concrete type for the [PBarsSwipeTransition] protocol. +type BarsSwipeTransitionObject struct { objc.Object } -func (b_ BarsSwipeTransitionWrapper) 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_ BarsSwipeTransitionWrapper) SetWidth(value float64) { - 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 float64) { + objc.Call[objc.Void](b_, objc.Sel("setAngle:"), value) } -func (b_ BarsSwipeTransitionWrapper) 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_ BarsSwipeTransitionWrapper) Width() float64 { - rv := objc.Call[float64](b_, objc.Sel("width")) +// [Full Topic]: https://developer.apple.com/documentation/coreimage/cibarsswipetransition/3228070-angle?language=objc +func (b_ BarsSwipeTransitionObject) Angle() float64 { + rv := objc.Call[float64](b_, objc.Sel("angle")) return rv } -func (b_ BarsSwipeTransitionWrapper) HasSetBarOffset() bool { +func (b_ BarsSwipeTransitionObject) HasSetBarOffset() bool { return b_.RespondsToSelector(objc.Sel("setBarOffset:")) } // The offset of one bar with respect to another. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/coreimage/cibarsswipetransition/3228071-baroffset?language=objc -func (b_ BarsSwipeTransitionWrapper) SetBarOffset(value float64) { +func (b_ BarsSwipeTransitionObject) SetBarOffset(value float64) { objc.Call[objc.Void](b_, objc.Sel("setBarOffset:"), value) } -func (b_ BarsSwipeTransitionWrapper) HasBarOffset() bool { +func (b_ BarsSwipeTransitionObject) HasBarOffset() bool { return b_.RespondsToSelector(objc.Sel("barOffset")) } // The offset of one bar with respect to another. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/coreimage/cibarsswipetransition/3228071-baroffset?language=objc -func (b_ BarsSwipeTransitionWrapper) BarOffset() float64 { +func (b_ BarsSwipeTransitionObject) BarOffset() float64 { rv := objc.Call[float64](b_, objc.Sel("barOffset")) return rv } -func (b_ BarsSwipeTransitionWrapper) 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_ BarsSwipeTransitionWrapper) SetAngle(value float64) { - 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 float64) { + objc.Call[objc.Void](b_, objc.Sel("setWidth:"), value) } -func (b_ BarsSwipeTransitionWrapper) 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_ BarsSwipeTransitionWrapper) Angle() float64 { - rv := objc.Call[float64](b_, objc.Sel("angle")) +// [Full Topic]: https://developer.apple.com/documentation/coreimage/cibarsswipetransition/3228072-width?language=objc +func (b_ BarsSwipeTransitionObject) Width() float64 { + rv := objc.Call[float64](b_, objc.Sel("width")) return rv } diff --git a/macos/coreimage/bicubic_scale_transform.gen.go b/macos/coreimage/bicubic_scale_transform_protocol.gen.go similarity index 72% rename from macos/coreimage/bicubic_scale_transform.gen.go rename to macos/coreimage/bicubic_scale_transform_protocol.gen.go index c9d6d43c..a450d2d9 100644 --- a/macos/coreimage/bicubic_scale_transform.gen.go +++ b/macos/coreimage/bicubic_scale_transform_protocol.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package coreimage @@ -11,28 +11,28 @@ import ( // [Full Topic]: https://developer.apple.com/documentation/coreimage/cibicubicscaletransform?language=objc type PBicubicScaleTransform interface { // optional - SetScale(value float64) - HasSetScale() bool + SetParameterC(value float64) + HasSetParameterC() bool // optional - Scale() float64 - HasScale() bool + ParameterC() float64 + HasParameterC() bool // optional - SetInputImage(value Image) - HasSetInputImage() bool + SetParameterB(value float64) + HasSetParameterB() bool // optional - InputImage() IImage - HasInputImage() bool + ParameterB() float64 + HasParameterB() bool // optional - SetParameterC(value float64) - HasSetParameterC() bool + SetInputImage(value Image) + HasSetInputImage() bool // optional - ParameterC() float64 - HasParameterC() bool + InputImage() Image + HasInputImage() bool // optional SetAspectRatio(value float64) @@ -43,130 +43,133 @@ type PBicubicScaleTransform interface { HasAspectRatio() bool // optional - SetParameterB(value float64) - HasSetParameterB() bool + SetScale(value float64) + HasSetScale() bool // optional - ParameterB() float64 - HasParameterB() bool + Scale() float64 + HasScale() bool } -// A concrete type wrapper for the [PBicubicScaleTransform] protocol. -type BicubicScaleTransformWrapper struct { +// ensure impl type implements protocol interface +var _ PBicubicScaleTransform = (*BicubicScaleTransformObject)(nil) + +// A concrete type for the [PBicubicScaleTransform] protocol. +type BicubicScaleTransformObject struct { objc.Object } -func (b_ BicubicScaleTransformWrapper) HasSetScale() bool { - return b_.RespondsToSelector(objc.Sel("setScale:")) +func (b_ BicubicScaleTransformObject) HasSetParameterC() bool { + return b_.RespondsToSelector(objc.Sel("setParameterC:")) } -// The scaling factor to use on the image. [Full Topic] +// The value of C to use for the cubic resampling function. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/cibicubicscaletransform/3228078-scale?language=objc -func (b_ BicubicScaleTransformWrapper) SetScale(value float64) { - objc.Call[objc.Void](b_, objc.Sel("setScale:"), value) +// [Full Topic]: https://developer.apple.com/documentation/coreimage/cibicubicscaletransform/3228077-parameterc?language=objc +func (b_ BicubicScaleTransformObject) SetParameterC(value float64) { + objc.Call[objc.Void](b_, objc.Sel("setParameterC:"), value) } -func (b_ BicubicScaleTransformWrapper) HasScale() bool { - return b_.RespondsToSelector(objc.Sel("scale")) +func (b_ BicubicScaleTransformObject) HasParameterC() bool { + return b_.RespondsToSelector(objc.Sel("parameterC")) } -// The scaling factor to use on the image. [Full Topic] +// The value of C to use for the cubic resampling function. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/cibicubicscaletransform/3228078-scale?language=objc -func (b_ BicubicScaleTransformWrapper) Scale() float64 { - rv := objc.Call[float64](b_, objc.Sel("scale")) +// [Full Topic]: https://developer.apple.com/documentation/coreimage/cibicubicscaletransform/3228077-parameterc?language=objc +func (b_ BicubicScaleTransformObject) ParameterC() float64 { + rv := objc.Call[float64](b_, objc.Sel("parameterC")) return rv } -func (b_ BicubicScaleTransformWrapper) HasSetInputImage() bool { - return b_.RespondsToSelector(objc.Sel("setInputImage:")) +func (b_ BicubicScaleTransformObject) HasSetParameterB() bool { + return b_.RespondsToSelector(objc.Sel("setParameterB:")) } -// The image to use as an input 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/3228075-inputimage?language=objc -func (b_ BicubicScaleTransformWrapper) SetInputImage(value IImage) { - objc.Call[objc.Void](b_, objc.Sel("setInputImage:"), objc.Ptr(value)) +// [Full Topic]: https://developer.apple.com/documentation/coreimage/cibicubicscaletransform/3228076-parameterb?language=objc +func (b_ BicubicScaleTransformObject) SetParameterB(value float64) { + objc.Call[objc.Void](b_, objc.Sel("setParameterB:"), value) } -func (b_ BicubicScaleTransformWrapper) HasInputImage() bool { - return b_.RespondsToSelector(objc.Sel("inputImage")) +func (b_ BicubicScaleTransformObject) HasParameterB() bool { + return b_.RespondsToSelector(objc.Sel("parameterB")) } -// The image to use as an input 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/3228075-inputimage?language=objc -func (b_ BicubicScaleTransformWrapper) InputImage() Image { - rv := objc.Call[Image](b_, objc.Sel("inputImage")) +// [Full Topic]: https://developer.apple.com/documentation/coreimage/cibicubicscaletransform/3228076-parameterb?language=objc +func (b_ BicubicScaleTransformObject) ParameterB() float64 { + rv := objc.Call[float64](b_, objc.Sel("parameterB")) return rv } -func (b_ BicubicScaleTransformWrapper) HasSetParameterC() bool { - return b_.RespondsToSelector(objc.Sel("setParameterC:")) +func (b_ BicubicScaleTransformObject) HasSetInputImage() bool { + return b_.RespondsToSelector(objc.Sel("setInputImage:")) } -// The value of C to use for the cubic resampling function. [Full Topic] +// The image to use as an input image. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/cibicubicscaletransform/3228077-parameterc?language=objc -func (b_ BicubicScaleTransformWrapper) SetParameterC(value float64) { - objc.Call[objc.Void](b_, objc.Sel("setParameterC:"), value) +// [Full Topic]: https://developer.apple.com/documentation/coreimage/cibicubicscaletransform/3228075-inputimage?language=objc +func (b_ BicubicScaleTransformObject) SetInputImage(value Image) { + objc.Call[objc.Void](b_, objc.Sel("setInputImage:"), objc.Ptr(value)) } -func (b_ BicubicScaleTransformWrapper) HasParameterC() bool { - return b_.RespondsToSelector(objc.Sel("parameterC")) +func (b_ BicubicScaleTransformObject) HasInputImage() bool { + return b_.RespondsToSelector(objc.Sel("inputImage")) } -// The value of C to use for the cubic resampling function. [Full Topic] +// The image to use as an input image. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/cibicubicscaletransform/3228077-parameterc?language=objc -func (b_ BicubicScaleTransformWrapper) ParameterC() float64 { - rv := objc.Call[float64](b_, objc.Sel("parameterC")) +// [Full Topic]: https://developer.apple.com/documentation/coreimage/cibicubicscaletransform/3228075-inputimage?language=objc +func (b_ BicubicScaleTransformObject) InputImage() Image { + rv := objc.Call[Image](b_, objc.Sel("inputImage")) return rv } -func (b_ BicubicScaleTransformWrapper) HasSetAspectRatio() bool { +func (b_ BicubicScaleTransformObject) HasSetAspectRatio() bool { return b_.RespondsToSelector(objc.Sel("setAspectRatio:")) } // The additional horizontal scaling factor to use on the image. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/coreimage/cibicubicscaletransform/3228074-aspectratio?language=objc -func (b_ BicubicScaleTransformWrapper) SetAspectRatio(value float64) { +func (b_ BicubicScaleTransformObject) SetAspectRatio(value float64) { objc.Call[objc.Void](b_, objc.Sel("setAspectRatio:"), value) } -func (b_ BicubicScaleTransformWrapper) HasAspectRatio() bool { +func (b_ BicubicScaleTransformObject) HasAspectRatio() bool { return b_.RespondsToSelector(objc.Sel("aspectRatio")) } // The additional horizontal scaling factor to use on the image. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/coreimage/cibicubicscaletransform/3228074-aspectratio?language=objc -func (b_ BicubicScaleTransformWrapper) AspectRatio() float64 { +func (b_ BicubicScaleTransformObject) AspectRatio() float64 { rv := objc.Call[float64](b_, objc.Sel("aspectRatio")) return rv } -func (b_ BicubicScaleTransformWrapper) 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_ BicubicScaleTransformWrapper) SetParameterB(value float64) { - 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 float64) { + objc.Call[objc.Void](b_, objc.Sel("setScale:"), value) } -func (b_ BicubicScaleTransformWrapper) 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_ BicubicScaleTransformWrapper) ParameterB() float64 { - rv := objc.Call[float64](b_, objc.Sel("parameterB")) +// [Full Topic]: https://developer.apple.com/documentation/coreimage/cibicubicscaletransform/3228078-scale?language=objc +func (b_ BicubicScaleTransformObject) Scale() float64 { + rv := objc.Call[float64](b_, objc.Sel("scale")) return rv } diff --git a/macos/coreimage/blend_kernel.gen.go b/macos/coreimage/blend_kernel.gen.go index a47ea586..2a064555 100644 --- a/macos/coreimage/blend_kernel.gen.go +++ b/macos/coreimage/blend_kernel.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package coreimage @@ -21,6 +21,7 @@ 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] @@ -41,10 +42,6 @@ func (bc _BlendKernelClass) Alloc() BlendKernel { return rv } -func BlendKernel_Alloc() BlendKernel { - return BlendKernelClass.Alloc() -} - func (bc _BlendKernelClass) New() BlendKernel { rv := objc.Call[BlendKernel](bc, objc.Sel("new")) rv.Autorelease() @@ -60,6 +57,18 @@ func (b_ BlendKernel) Init() BlendKernel { return rv } +func (bc _BlendKernelClass) KernelWithFunctionNameFromMetalLibraryDataError(name string, data []byte, error foundation.IError) BlendKernel { + rv := objc.Call[BlendKernel](bc, objc.Sel("kernelWithFunctionName:fromMetalLibraryData:error:"), name, data, objc.Ptr(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 foundation.IError) BlendKernel { + return BlendKernelClass.KernelWithFunctionNameFromMetalLibraryDataError(name, data, error) +} + func (bc _BlendKernelClass) KernelWithFunctionNameFromMetalLibraryDataOutputPixelFormatError(name string, data []byte, format Format, error foundation.IError) BlendKernel { rv := objc.Call[BlendKernel](bc, objc.Sel("kernelWithFunctionName:fromMetalLibraryData:outputPixelFormat:error:"), name, data, format, objc.Ptr(error)) return rv @@ -80,124 +89,102 @@ func (b_ BlendKernel) ApplyWithForegroundBackgroundColorSpace(foreground IImage, return rv } -// 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/2867415-sourceout?language=objc -func (bc _BlendKernelClass) SourceOut() BlendKernel { - rv := objc.Call[BlendKernel](bc, objc.Sel("sourceOut")) - return rv -} - -// 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/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] +// Creates a new image using the blend kernel and specified foreground and background images. [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/2919728-applywithforeground?language=objc +func (b_ BlendKernel) ApplyWithForegroundBackground(foreground IImage, background IImage) Image { + rv := objc.Call[Image](b_, objc.Sel("applyWithForeground:background:"), objc.Ptr(foreground), objc.Ptr(background)) 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] -// -// [Full Topic]: https://developer.apple.com/documentation/coreimage/ciblendkernel/2867420-pinlight?language=objc -func BlendKernel_PinLight() BlendKernel { - return BlendKernelClass.PinLight() -} - -// A blend kernel that uses the luminance values of the background with the hue and saturation values of the foreground image. [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/2867350-color?language=objc -func (bc _BlendKernelClass) Color() BlendKernel { - rv := objc.Call[BlendKernel](bc, objc.Sel("color")) +// [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 uses the luminance values of the background with the hue and saturation values of the foreground image. [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/2867350-color?language=objc -func BlendKernel_Color() BlendKernel { - return BlendKernelClass.Color() +// [Full Topic]: https://developer.apple.com/documentation/coreimage/ciblendkernel/2867409-linearburn?language=objc +func BlendKernel_LinearBurn() BlendKernel { + return BlendKernelClass.LinearBurn() } -// A blend kernel that creates an image using the maximum values of two input images. [Full Topic] +// A blend kernel that returns the foreground input image. [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/2867407-source?language=objc +func (bc _BlendKernelClass) Source() BlendKernel { + rv := objc.Call[BlendKernel](bc, objc.Sel("source")) return rv } -// A blend kernel that creates an image using the maximum values of two input images. [Full Topic] +// A blend kernel that returns the foreground input image. [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/2867407-source?language=objc +func BlendKernel_Source() BlendKernel { + return BlendKernelClass.Source() } -// A blend kernel that places the foreground image over the input background image. [Full Topic] +// 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/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/2867411-overlay?language=objc +func (bc _BlendKernelClass) Overlay() BlendKernel { + rv := objc.Call[BlendKernel](bc, objc.Sel("overlay")) return rv } -// A blend kernel that places the foreground image over the input background image. [Full Topic] +// 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/2867413-sourceover?language=objc -func BlendKernel_SourceOver() BlendKernel { - return BlendKernelClass.SourceOver() +// [Full Topic]: https://developer.apple.com/documentation/coreimage/ciblendkernel/2867411-overlay?language=objc +func BlendKernel_Overlay() BlendKernel { + return BlendKernelClass.Overlay() } -// 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 brightens the background image samples to reflect the foreground image samples. [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/2867417-colordodge?language=objc +func (bc _BlendKernelClass) ColorDodge() BlendKernel { + rv := objc.Call[BlendKernel](bc, objc.Sel("colorDodge")) 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 brightens the background image samples to reflect the foreground image samples. [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/2867417-colordodge?language=objc +func BlendKernel_ColorDodge() BlendKernel { + return BlendKernelClass.ColorDodge() } -// A blend kernel that creates an image using the darker values of two input images. [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/2867348-darken?language=objc -func (bc _BlendKernelClass) Darken() BlendKernel { - rv := objc.Call[BlendKernel](bc, objc.Sel("darken")) +// [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 creates an image using the darker values of two input images. [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/2867348-darken?language=objc -func BlendKernel_Darken() BlendKernel { - return BlendKernelClass.Darken() +// [Full Topic]: https://developer.apple.com/documentation/coreimage/ciblendkernel/2867343-exclusion?language=objc +func BlendKernel_Exclusion() BlendKernel { + return BlendKernelClass.Exclusion() } -// A blend kernel that creates an image using the minimum values of two input 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/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/2867415-sourceout?language=objc +func (bc _BlendKernelClass) SourceOut() BlendKernel { + rv := objc.Call[BlendKernel](bc, objc.Sel("sourceOut")) return rv } -// A blend kernel that creates an image using the minimum values of two input 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/2867425-componentmin?language=objc -func BlendKernel_ComponentMin() BlendKernel { - return BlendKernelClass.ComponentMin() +// [Full Topic]: https://developer.apple.com/documentation/coreimage/ciblendkernel/2867415-sourceout?language=objc +func BlendKernel_SourceOut() BlendKernel { + return BlendKernelClass.SourceOut() } // A blend kernel that uses the hue and saturation of the background image with the luminance of the foreground image. [Full Topic] @@ -215,79 +202,49 @@ func BlendKernel_Luminosity() BlendKernel { return BlendKernelClass.Luminosity() } -// 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/2867343-exclusion?language=objc -func (bc _BlendKernelClass) Exclusion() BlendKernel { - rv := objc.Call[BlendKernel](bc, objc.Sel("exclusion")) - return rv -} - -// 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/2867343-exclusion?language=objc -func BlendKernel_Exclusion() BlendKernel { - return BlendKernelClass.Exclusion() -} - -// 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 returns the foreground input image. [Full Topic] +// A blend kernel that places the background image over the input 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/2867432-destinationover?language=objc +func (bc _BlendKernelClass) DestinationOver() BlendKernel { + rv := objc.Call[BlendKernel](bc, objc.Sel("destinationOver")) return rv } -// A blend kernel that returns the foreground input image. [Full Topic] +// A blend kernel that places the background image over the input 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/2867432-destinationover?language=objc +func BlendKernel_DestinationOver() BlendKernel { + return BlendKernelClass.DestinationOver() } -// 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 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/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/2867368-destinationout?language=objc +func (bc _BlendKernelClass) DestinationOut() BlendKernel { + rv := objc.Call[BlendKernel](bc, objc.Sel("destinationOut")) 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 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/2867411-overlay?language=objc -func BlendKernel_Overlay() BlendKernel { - return BlendKernelClass.Overlay() +// [Full Topic]: https://developer.apple.com/documentation/coreimage/ciblendkernel/2867368-destinationout?language=objc +func BlendKernel_DestinationOut() BlendKernel { + return BlendKernelClass.DestinationOut() } -// A blend kernel that places the background image over the input foreground image. [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/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/2867428-sourcein?language=objc +func (bc _BlendKernelClass) SourceIn() BlendKernel { + rv := objc.Call[BlendKernel](bc, objc.Sel("sourceIn")) return rv } -// A blend kernel that places the background image over the input foreground image. [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/2867432-destinationover?language=objc -func BlendKernel_DestinationOver() BlendKernel { - return BlendKernelClass.DestinationOver() +// [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 a clear color. [Full Topic] @@ -305,169 +262,169 @@ func BlendKernel_Clear() BlendKernel { return BlendKernelClass.Clear() } -// A blend kernel that creates an image using the lighter color of two input images. [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/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/2867370-subtract?language=objc +func (bc _BlendKernelClass) Subtract() BlendKernel { + rv := objc.Call[BlendKernel](bc, objc.Sel("subtract")) return rv } -// A blend kernel that creates an image using the lighter color of two input images. [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/2867427-lightercolor?language=objc -func BlendKernel_LighterColor() BlendKernel { - return BlendKernelClass.LighterColor() +// [Full Topic]: https://developer.apple.com/documentation/coreimage/ciblendkernel/2867370-subtract?language=objc +func BlendKernel_Subtract() BlendKernel { + return BlendKernelClass.Subtract() } -// A blend kernel that divides the background image sample color with the foreground image sample color. [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/2867410-divide?language=objc -func (bc _BlendKernelClass) Divide() BlendKernel { - rv := objc.Call[BlendKernel](bc, objc.Sel("divide")) +// [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 divides the background image sample color with the foreground image sample color. [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/2867410-divide?language=objc -func BlendKernel_Divide() BlendKernel { - return BlendKernelClass.Divide() +// [Full Topic]: https://developer.apple.com/documentation/coreimage/ciblendkernel/2867406-componentmultiply?language=objc +func BlendKernel_ComponentMultiply() BlendKernel { + return BlendKernelClass.ComponentMultiply() } -// A blend kernel that burns or dodges colors by changing brightness, depending on the blend 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/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/2867433-componentmax?language=objc +func (bc _BlendKernelClass) ComponentMax() BlendKernel { + rv := objc.Call[BlendKernel](bc, objc.Sel("componentMax")) return rv } -// A blend kernel that burns or dodges colors by changing brightness, depending on the blend 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/2867435-linearlight?language=objc -func BlendKernel_LinearLight() BlendKernel { - return BlendKernelClass.LinearLight() +// [Full Topic]: https://developer.apple.com/documentation/coreimage/ciblendkernel/2867433-componentmax?language=objc +func BlendKernel_ComponentMax() BlendKernel { + return BlendKernelClass.ComponentMax() } -// A blend kernel that either darkens or lightens colors, depending on the foreground image sample color. [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/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/2867356-screen?language=objc +func (bc _BlendKernelClass) Screen() BlendKernel { + rv := objc.Call[BlendKernel](bc, objc.Sel("screen")) return rv } -// A blend kernel that either darkens or lightens colors, depending on the foreground image sample color. [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/2867434-softlight?language=objc -func BlendKernel_SoftLight() BlendKernel { - return BlendKernelClass.SoftLight() +// [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 background image to define what to take out of the foreground image. [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/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/2867420-pinlight?language=objc +func (bc _BlendKernelClass) PinLight() BlendKernel { + rv := objc.Call[BlendKernel](bc, objc.Sel("pinLight")) 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 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/2867368-destinationout?language=objc -func BlendKernel_DestinationOut() BlendKernel { - return BlendKernelClass.DestinationOut() +// [Full Topic]: https://developer.apple.com/documentation/coreimage/ciblendkernel/2867420-pinlight?language=objc +func BlendKernel_PinLight() BlendKernel { + return BlendKernelClass.PinLight() } -// A blend kernel that creates an image using the lighter values of two input images. [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/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/2867421-exclusiveor?language=objc +func (bc _BlendKernelClass) ExclusiveOr() BlendKernel { + rv := objc.Call[BlendKernel](bc, objc.Sel("exclusiveOr")) return rv } -// A blend kernel that creates an image using the lighter values of two input images. [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/2867424-lighten?language=objc -func BlendKernel_Lighten() BlendKernel { - return BlendKernelClass.Lighten() +// [Full Topic]: https://developer.apple.com/documentation/coreimage/ciblendkernel/2867421-exclusiveor?language=objc +func BlendKernel_ExclusiveOr() BlendKernel { + return BlendKernelClass.ExclusiveOr() } -// A blend kernel that brightens the background image samples to reflect the foreground image samples. [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/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/2867391-colorburn?language=objc +func (bc _BlendKernelClass) ColorBurn() BlendKernel { + rv := objc.Call[BlendKernel](bc, objc.Sel("colorBurn")) return rv } -// A blend kernel that brightens the background image samples to reflect the foreground image samples. [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/2867417-colordodge?language=objc -func BlendKernel_ColorDodge() BlendKernel { - return BlendKernelClass.ColorDodge() +// [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 two images together, setting each color channel value to either 0 or 1. [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/2867347-hardmix?language=objc -func (bc _BlendKernelClass) HardMix() BlendKernel { - rv := objc.Call[BlendKernel](bc, objc.Sel("hardMix")) +// [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 adds two images together, setting each color channel value to either 0 or 1. [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/2867347-hardmix?language=objc -func BlendKernel_HardMix() BlendKernel { - return BlendKernelClass.HardMix() +// [Full Topic]: https://developer.apple.com/documentation/coreimage/ciblendkernel/2867435-linearlight?language=objc +func BlendKernel_LinearLight() BlendKernel { + return BlendKernelClass.LinearLight() } -// A blend kernel that subtracts the background image sample color from the foreground image sample color. [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/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/2867419-multiply?language=objc +func (bc _BlendKernelClass) Multiply() BlendKernel { + rv := objc.Call[BlendKernel](bc, objc.Sel("multiply")) return rv } -// A blend kernel that subtracts the background image sample color from the foreground image sample color. [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/2867370-subtract?language=objc -func BlendKernel_Subtract() BlendKernel { - return BlendKernelClass.Subtract() +// [Full Topic]: https://developer.apple.com/documentation/coreimage/ciblendkernel/2867419-multiply?language=objc +func BlendKernel_Multiply() BlendKernel { + return BlendKernelClass.Multiply() } -// 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 creates an image using the difference between the background and foreground images. [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/2867416-difference?language=objc +func (bc _BlendKernelClass) Difference() BlendKernel { + rv := objc.Call[BlendKernel](bc, objc.Sel("difference")) 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 creates an image using the difference between the background and foreground images. [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/2867416-difference?language=objc +func BlendKernel_Difference() BlendKernel { + return BlendKernelClass.Difference() } -// A blend kernel that places the foreground over the background and crops based on the visibility of both. [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/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/2867434-softlight?language=objc +func (bc _BlendKernelClass) SoftLight() BlendKernel { + rv := objc.Call[BlendKernel](bc, objc.Sel("softLight")) 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 either darkens or lightens colors, depending on the foreground image sample color. [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/2867434-softlight?language=objc +func BlendKernel_SoftLight() BlendKernel { + return BlendKernelClass.SoftLight() } // A blend kernel that returns the background input image. [Full Topic] @@ -485,49 +442,19 @@ func BlendKernel_Destination() BlendKernel { return BlendKernelClass.Destination() } -// A blend kernel that multiplies the color components of its input images. [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")) - return rv -} - -// A blend kernel that multiplies the color components of its input images. [Full Topic] -// -// [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] +// 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/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/2867424-lighten?language=objc +func (bc _BlendKernelClass) Lighten() BlendKernel { + rv := objc.Call[BlendKernel](bc, objc.Sel("lighten")) 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 creates an image using the lighter values of two input images. [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/2867424-lighten?language=objc +func BlendKernel_Lighten() BlendKernel { + return BlendKernelClass.Lighten() } // A blend kernel that places the foreground over the background and crops based on the visibility of the background. [Full Topic] @@ -545,34 +472,34 @@ func BlendKernel_SourceAtop() BlendKernel { return BlendKernelClass.SourceAtop() } -// A blend kernel that returns either the foreground or background image if the other contains a clear color. [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/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/2867354-lineardodge?language=objc +func (bc _BlendKernelClass) LinearDodge() BlendKernel { + rv := objc.Call[BlendKernel](bc, objc.Sel("linearDodge")) 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 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/2867421-exclusiveor?language=objc -func BlendKernel_ExclusiveOr() BlendKernel { - return BlendKernelClass.ExclusiveOr() +// [Full Topic]: https://developer.apple.com/documentation/coreimage/ciblendkernel/2867354-lineardodge?language=objc +func BlendKernel_LinearDodge() BlendKernel { + return BlendKernelClass.LinearDodge() } -// A blend kernel that darkens the background image samples to reflect the foreground image samples. [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/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/2867418-hardlight?language=objc +func (bc _BlendKernelClass) HardLight() BlendKernel { + rv := objc.Call[BlendKernel](bc, objc.Sel("hardLight")) return rv } -// A blend kernel that darkens the background image samples to reflect the foreground image samples. [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/2867391-colorburn?language=objc -func BlendKernel_ColorBurn() BlendKernel { - return BlendKernelClass.ColorBurn() +// [Full Topic]: https://developer.apple.com/documentation/coreimage/ciblendkernel/2867418-hardlight?language=objc +func BlendKernel_HardLight() BlendKernel { + return BlendKernelClass.HardLight() } // A blend kernel that adds color components to achieve a brightening effect. [Full Topic] @@ -590,34 +517,124 @@ func BlendKernel_ComponentAdd() BlendKernel { return BlendKernelClass.ComponentAdd() } -// A blend kernel that places the background over the foreground and crops based on the visibility of both. [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/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/2867410-divide?language=objc +func (bc _BlendKernelClass) Divide() BlendKernel { + rv := objc.Call[BlendKernel](bc, objc.Sel("divide")) 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 divides the background image sample color with the foreground image sample color. [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/2867410-divide?language=objc +func BlendKernel_Divide() BlendKernel { + return BlendKernelClass.Divide() } -// 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 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/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/2867350-color?language=objc +func (bc _BlendKernelClass) Color() BlendKernel { + rv := objc.Call[BlendKernel](bc, objc.Sel("color")) 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 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/2867354-lineardodge?language=objc -func BlendKernel_LinearDodge() BlendKernel { - return BlendKernelClass.LinearDodge() +// [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] +// +// [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 places the foreground image over the input background image. [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")) + return rv +} + +// A blend kernel that places the foreground image over the input background image. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/coreimage/ciblendkernel/2867413-sourceover?language=objc +func BlendKernel_SourceOver() BlendKernel { + return BlendKernelClass.SourceOver() } // A blend kernel that creates an image using the darker color of two input images. [Full Topic] @@ -635,62 +652,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 the foreground. [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/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/2867352-destinationin?language=objc +func (bc _BlendKernelClass) DestinationIn() BlendKernel { + rv := objc.Call[BlendKernel](bc, objc.Sel("destinationIn")) 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 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/2867385-destinationatop?language=objc -func BlendKernel_DestinationAtop() BlendKernel { - return BlendKernelClass.DestinationAtop() +// [Full Topic]: https://developer.apple.com/documentation/coreimage/ciblendkernel/2867352-destinationin?language=objc +func BlendKernel_DestinationIn() BlendKernel { + return BlendKernelClass.DestinationIn() } -// A blend kernel that either multiplies or screens colors, depending on the source image sample color. [Full Topic] +// 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/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/2867408-hue?language=objc +func (bc _BlendKernelClass) Hue() BlendKernel { + rv := objc.Call[BlendKernel](bc, objc.Sel("hue")) return rv } -// A blend kernel that either multiplies or screens colors, depending on the source image sample color. [Full Topic] +// 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/2867418-hardlight?language=objc -func BlendKernel_HardLight() BlendKernel { - return BlendKernelClass.HardLight() +// [Full Topic]: https://developer.apple.com/documentation/coreimage/ciblendkernel/2867408-hue?language=objc +func BlendKernel_Hue() BlendKernel { + return BlendKernelClass.Hue() } -// A blend kernel that multiplies the background image sample color with 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/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/2867427-lightercolor?language=objc +func (bc _BlendKernelClass) LighterColor() BlendKernel { + rv := objc.Call[BlendKernel](bc, objc.Sel("lighterColor")) return rv } -// A blend kernel that multiplies the background image sample color with 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/2867419-multiply?language=objc -func BlendKernel_Multiply() BlendKernel { - return BlendKernelClass.Multiply() +// [Full Topic]: https://developer.apple.com/documentation/coreimage/ciblendkernel/2867427-lightercolor?language=objc +func BlendKernel_LighterColor() BlendKernel { + return BlendKernelClass.LighterColor() } -// A blend kernel that burns or dodges colors by changing contrast, depending on the blend color. [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/2867358-vividlight?language=objc -func (bc _BlendKernelClass) VividLight() BlendKernel { - rv := objc.Call[BlendKernel](bc, objc.Sel("vividLight")) +// [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 burns or dodges colors by changing contrast, depending on the blend color. [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/2867358-vividlight?language=objc -func BlendKernel_VividLight() BlendKernel { - return BlendKernelClass.VividLight() +// [Full Topic]: https://developer.apple.com/documentation/coreimage/ciblendkernel/2867385-destinationatop?language=objc +func BlendKernel_DestinationAtop() BlendKernel { + return BlendKernelClass.DestinationAtop() } diff --git a/macos/coreimage/blend_with_mask.gen.go b/macos/coreimage/blend_with_mask_protocol.gen.go similarity index 71% rename from macos/coreimage/blend_with_mask.gen.go rename to macos/coreimage/blend_with_mask_protocol.gen.go index ee6c78c1..8c7711b0 100644 --- a/macos/coreimage/blend_with_mask.gen.go +++ b/macos/coreimage/blend_with_mask_protocol.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package coreimage @@ -10,20 +10,12 @@ import ( // // [Full Topic]: https://developer.apple.com/documentation/coreimage/ciblendwithmask?language=objc type PBlendWithMask interface { - // optional - SetInputImage(value Image) - HasSetInputImage() bool - - // optional - InputImage() IImage - HasInputImage() bool - // optional SetMaskImage(value Image) HasSetMaskImage() bool // optional - MaskImage() IImage + MaskImage() Image HasMaskImage() bool // optional @@ -31,80 +23,91 @@ type PBlendWithMask interface { HasSetBackgroundImage() bool // optional - BackgroundImage() IImage + BackgroundImage() Image HasBackgroundImage() bool -} - -// A concrete type wrapper for the [PBlendWithMask] protocol. -type BlendWithMaskWrapper struct { - objc.Object -} -func (b_ BlendWithMaskWrapper) HasSetInputImage() bool { - return b_.RespondsToSelector(objc.Sel("setInputImage:")) -} + // optional + SetInputImage(value Image) + HasSetInputImage() bool -// 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_ BlendWithMaskWrapper) SetInputImage(value IImage) { - objc.Call[objc.Void](b_, objc.Sel("setInputImage:"), objc.Ptr(value)) + // optional + InputImage() Image + HasInputImage() bool } -func (b_ BlendWithMaskWrapper) HasInputImage() bool { - return b_.RespondsToSelector(objc.Sel("inputImage")) -} +// ensure impl type implements protocol interface +var _ PBlendWithMask = (*BlendWithMaskObject)(nil) -// 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_ BlendWithMaskWrapper) InputImage() Image { - rv := objc.Call[Image](b_, objc.Sel("inputImage")) - return rv +// A concrete type for the [PBlendWithMask] protocol. +type BlendWithMaskObject struct { + objc.Object } -func (b_ BlendWithMaskWrapper) HasSetMaskImage() bool { +func (b_ BlendWithMaskObject) HasSetMaskImage() bool { return b_.RespondsToSelector(objc.Sel("setMaskImage:")) } // A grayscale mask that defines the blend. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/coreimage/ciblendwithmask/3228082-maskimage?language=objc -func (b_ BlendWithMaskWrapper) SetMaskImage(value IImage) { +func (b_ BlendWithMaskObject) SetMaskImage(value Image) { objc.Call[objc.Void](b_, objc.Sel("setMaskImage:"), objc.Ptr(value)) } -func (b_ BlendWithMaskWrapper) HasMaskImage() bool { +func (b_ BlendWithMaskObject) HasMaskImage() bool { return b_.RespondsToSelector(objc.Sel("maskImage")) } // A grayscale mask that defines the blend. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/coreimage/ciblendwithmask/3228082-maskimage?language=objc -func (b_ BlendWithMaskWrapper) MaskImage() Image { +func (b_ BlendWithMaskObject) MaskImage() Image { rv := objc.Call[Image](b_, objc.Sel("maskImage")) return rv } -func (b_ BlendWithMaskWrapper) HasSetBackgroundImage() bool { +func (b_ BlendWithMaskObject) HasSetBackgroundImage() bool { return b_.RespondsToSelector(objc.Sel("setBackgroundImage:")) } // The image to use as a background image. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/coreimage/ciblendwithmask/3228080-backgroundimage?language=objc -func (b_ BlendWithMaskWrapper) SetBackgroundImage(value IImage) { +func (b_ BlendWithMaskObject) SetBackgroundImage(value Image) { objc.Call[objc.Void](b_, objc.Sel("setBackgroundImage:"), objc.Ptr(value)) } -func (b_ BlendWithMaskWrapper) HasBackgroundImage() bool { +func (b_ BlendWithMaskObject) HasBackgroundImage() bool { return b_.RespondsToSelector(objc.Sel("backgroundImage")) } // The image to use as a background image. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/coreimage/ciblendwithmask/3228080-backgroundimage?language=objc -func (b_ BlendWithMaskWrapper) BackgroundImage() Image { +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:"), objc.Ptr(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.gen.go b/macos/coreimage/bloom_protocol.gen.go similarity index 75% rename from macos/coreimage/bloom.gen.go rename to macos/coreimage/bloom_protocol.gen.go index 95abc4a2..f73b5461 100644 --- a/macos/coreimage/bloom.gen.go +++ b/macos/coreimage/bloom_protocol.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package coreimage @@ -10,14 +10,6 @@ import ( // // [Full Topic]: https://developer.apple.com/documentation/coreimage/cibloom?language=objc type PBloom interface { - // optional - SetInputImage(value Image) - HasSetInputImage() bool - - // optional - InputImage() IImage - HasInputImage() bool - // optional SetIntensity(value float64) HasSetIntensity() bool @@ -26,6 +18,14 @@ type PBloom interface { Intensity() float64 HasIntensity() bool + // optional + SetInputImage(value Image) + HasSetInputImage() bool + + // optional + InputImage() Image + HasInputImage() bool + // optional SetRadius(value float64) HasSetRadius() bool @@ -35,76 +35,79 @@ type PBloom interface { HasRadius() bool } -// A concrete type wrapper for the [PBloom] protocol. -type BloomWrapper struct { +// ensure impl type implements protocol interface +var _ PBloom = (*BloomObject)(nil) + +// A concrete type for the [PBloom] protocol. +type BloomObject struct { objc.Object } -func (b_ BloomWrapper) HasSetInputImage() bool { - return b_.RespondsToSelector(objc.Sel("setInputImage:")) +func (b_ BloomObject) HasSetIntensity() bool { + return b_.RespondsToSelector(objc.Sel("setIntensity:")) } -// The image to use as an input image. [Full Topic] +// The intensity of the effect. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/cibloom/3228084-inputimage?language=objc -func (b_ BloomWrapper) SetInputImage(value IImage) { - objc.Call[objc.Void](b_, objc.Sel("setInputImage:"), objc.Ptr(value)) +// [Full Topic]: https://developer.apple.com/documentation/coreimage/cibloom/3228085-intensity?language=objc +func (b_ BloomObject) SetIntensity(value float64) { + objc.Call[objc.Void](b_, objc.Sel("setIntensity:"), value) } -func (b_ BloomWrapper) HasInputImage() bool { - return b_.RespondsToSelector(objc.Sel("inputImage")) +func (b_ BloomObject) HasIntensity() bool { + return b_.RespondsToSelector(objc.Sel("intensity")) } -// The image to use as an input image. [Full Topic] +// The intensity of the effect. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/cibloom/3228084-inputimage?language=objc -func (b_ BloomWrapper) InputImage() Image { - rv := objc.Call[Image](b_, objc.Sel("inputImage")) +// [Full Topic]: https://developer.apple.com/documentation/coreimage/cibloom/3228085-intensity?language=objc +func (b_ BloomObject) Intensity() float64 { + rv := objc.Call[float64](b_, objc.Sel("intensity")) return rv } -func (b_ BloomWrapper) HasSetIntensity() bool { - return b_.RespondsToSelector(objc.Sel("setIntensity:")) +func (b_ BloomObject) HasSetInputImage() bool { + return b_.RespondsToSelector(objc.Sel("setInputImage:")) } -// The intensity of the effect. [Full Topic] +// The image to use as an input image. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/cibloom/3228085-intensity?language=objc -func (b_ BloomWrapper) SetIntensity(value float64) { - objc.Call[objc.Void](b_, objc.Sel("setIntensity:"), value) +// [Full Topic]: https://developer.apple.com/documentation/coreimage/cibloom/3228084-inputimage?language=objc +func (b_ BloomObject) SetInputImage(value Image) { + objc.Call[objc.Void](b_, objc.Sel("setInputImage:"), objc.Ptr(value)) } -func (b_ BloomWrapper) HasIntensity() bool { - return b_.RespondsToSelector(objc.Sel("intensity")) +func (b_ BloomObject) HasInputImage() bool { + return b_.RespondsToSelector(objc.Sel("inputImage")) } -// The intensity of the effect. [Full Topic] +// The image to use as an input image. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/cibloom/3228085-intensity?language=objc -func (b_ BloomWrapper) Intensity() float64 { - rv := objc.Call[float64](b_, objc.Sel("intensity")) +// [Full Topic]: https://developer.apple.com/documentation/coreimage/cibloom/3228084-inputimage?language=objc +func (b_ BloomObject) InputImage() Image { + rv := objc.Call[Image](b_, objc.Sel("inputImage")) return rv } -func (b_ BloomWrapper) HasSetRadius() bool { +func (b_ BloomObject) HasSetRadius() bool { return b_.RespondsToSelector(objc.Sel("setRadius:")) } // The radius, in pixels, of the effect. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/coreimage/cibloom/3228086-radius?language=objc -func (b_ BloomWrapper) SetRadius(value float64) { +func (b_ BloomObject) SetRadius(value float64) { objc.Call[objc.Void](b_, objc.Sel("setRadius:"), value) } -func (b_ BloomWrapper) HasRadius() bool { +func (b_ BloomObject) HasRadius() bool { return b_.RespondsToSelector(objc.Sel("radius")) } // The radius, in pixels, of the effect. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/coreimage/cibloom/3228086-radius?language=objc -func (b_ BloomWrapper) Radius() float64 { +func (b_ BloomObject) Radius() float64 { rv := objc.Call[float64](b_, objc.Sel("radius")) return rv } diff --git a/macos/coreimage/bokeh_blur.gen.go b/macos/coreimage/bokeh_blur_protocol.gen.go similarity index 75% rename from macos/coreimage/bokeh_blur.gen.go rename to macos/coreimage/bokeh_blur_protocol.gen.go index a4e34e53..a4774bfe 100644 --- a/macos/coreimage/bokeh_blur.gen.go +++ b/macos/coreimage/bokeh_blur_protocol.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package coreimage @@ -11,20 +11,12 @@ import ( // [Full Topic]: https://developer.apple.com/documentation/coreimage/cibokehblur?language=objc type PBokehBlur interface { // optional - SetInputImage(value Image) - HasSetInputImage() bool - - // optional - InputImage() IImage - HasInputImage() bool - - // optional - SetRingSize(value float64) - HasSetRingSize() bool + SetSoftness(value float64) + HasSetSoftness() bool // optional - RingSize() float64 - HasRingSize() bool + Softness() float64 + HasSoftness() bool // optional SetRadius(value float64) @@ -43,130 +35,141 @@ type PBokehBlur interface { HasRingAmount() bool // optional - SetSoftness(value float64) - HasSetSoftness() bool + SetRingSize(value float64) + HasSetRingSize() bool // optional - Softness() float64 - HasSoftness() bool -} - -// A concrete type wrapper for the [PBokehBlur] protocol. -type BokehBlurWrapper struct { - objc.Object -} + RingSize() float64 + HasRingSize() bool -func (b_ BokehBlurWrapper) HasSetInputImage() bool { - return b_.RespondsToSelector(objc.Sel("setInputImage:")) -} + // optional + SetInputImage(value Image) + HasSetInputImage() bool -// The image to use as an input image. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/coreimage/cibokehblur/3228088-inputimage?language=objc -func (b_ BokehBlurWrapper) SetInputImage(value IImage) { - objc.Call[objc.Void](b_, objc.Sel("setInputImage:"), objc.Ptr(value)) + // optional + InputImage() Image + HasInputImage() bool } -func (b_ BokehBlurWrapper) HasInputImage() bool { - return b_.RespondsToSelector(objc.Sel("inputImage")) -} +// ensure impl type implements protocol interface +var _ PBokehBlur = (*BokehBlurObject)(nil) -// The image to use as an input image. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/coreimage/cibokehblur/3228088-inputimage?language=objc -func (b_ BokehBlurWrapper) InputImage() Image { - rv := objc.Call[Image](b_, objc.Sel("inputImage")) - return rv +// A concrete type for the [PBokehBlur] protocol. +type BokehBlurObject struct { + objc.Object } -func (b_ BokehBlurWrapper) HasSetRingSize() bool { - return b_.RespondsToSelector(objc.Sel("setRingSize:")) +func (b_ BokehBlurObject) HasSetSoftness() bool { + return b_.RespondsToSelector(objc.Sel("setSoftness:")) } -// The radius of the extra emphasis at the ring of the bokeh. [Full Topic] +// The softness of the bokeh effect. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/cibokehblur/3228091-ringsize?language=objc -func (b_ BokehBlurWrapper) SetRingSize(value float64) { - objc.Call[objc.Void](b_, objc.Sel("setRingSize:"), value) +// [Full Topic]: https://developer.apple.com/documentation/coreimage/cibokehblur/3228092-softness?language=objc +func (b_ BokehBlurObject) SetSoftness(value float64) { + objc.Call[objc.Void](b_, objc.Sel("setSoftness:"), value) } -func (b_ BokehBlurWrapper) HasRingSize() bool { - return b_.RespondsToSelector(objc.Sel("ringSize")) +func (b_ BokehBlurObject) HasSoftness() bool { + return b_.RespondsToSelector(objc.Sel("softness")) } -// The radius of the extra emphasis at the ring of the bokeh. [Full Topic] +// The softness of the bokeh effect. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/cibokehblur/3228091-ringsize?language=objc -func (b_ BokehBlurWrapper) RingSize() float64 { - rv := objc.Call[float64](b_, objc.Sel("ringSize")) +// [Full Topic]: https://developer.apple.com/documentation/coreimage/cibokehblur/3228092-softness?language=objc +func (b_ BokehBlurObject) Softness() float64 { + rv := objc.Call[float64](b_, objc.Sel("softness")) return rv } -func (b_ BokehBlurWrapper) HasSetRadius() bool { +func (b_ BokehBlurObject) 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/cibokehblur/3228089-radius?language=objc -func (b_ BokehBlurWrapper) SetRadius(value float64) { +func (b_ BokehBlurObject) SetRadius(value float64) { objc.Call[objc.Void](b_, objc.Sel("setRadius:"), value) } -func (b_ BokehBlurWrapper) HasRadius() bool { +func (b_ BokehBlurObject) 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/cibokehblur/3228089-radius?language=objc -func (b_ BokehBlurWrapper) Radius() float64 { +func (b_ BokehBlurObject) Radius() float64 { rv := objc.Call[float64](b_, objc.Sel("radius")) return rv } -func (b_ BokehBlurWrapper) HasSetRingAmount() bool { +func (b_ BokehBlurObject) HasSetRingAmount() bool { return b_.RespondsToSelector(objc.Sel("setRingAmount:")) } // The amount of extra emphasis at the ring of the bokeh. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/coreimage/cibokehblur/3228090-ringamount?language=objc -func (b_ BokehBlurWrapper) SetRingAmount(value float64) { +func (b_ BokehBlurObject) SetRingAmount(value float64) { objc.Call[objc.Void](b_, objc.Sel("setRingAmount:"), value) } -func (b_ BokehBlurWrapper) HasRingAmount() bool { +func (b_ BokehBlurObject) HasRingAmount() bool { return b_.RespondsToSelector(objc.Sel("ringAmount")) } // The amount of extra emphasis at the ring of the bokeh. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/coreimage/cibokehblur/3228090-ringamount?language=objc -func (b_ BokehBlurWrapper) RingAmount() float64 { +func (b_ BokehBlurObject) RingAmount() float64 { rv := objc.Call[float64](b_, objc.Sel("ringAmount")) return rv } -func (b_ BokehBlurWrapper) HasSetSoftness() bool { - return b_.RespondsToSelector(objc.Sel("setSoftness:")) +func (b_ BokehBlurObject) HasSetRingSize() bool { + return b_.RespondsToSelector(objc.Sel("setRingSize:")) } -// The softness of the bokeh effect. [Full Topic] +// The radius of the extra emphasis at the ring of the bokeh. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/cibokehblur/3228092-softness?language=objc -func (b_ BokehBlurWrapper) SetSoftness(value float64) { - objc.Call[objc.Void](b_, objc.Sel("setSoftness:"), value) +// [Full Topic]: https://developer.apple.com/documentation/coreimage/cibokehblur/3228091-ringsize?language=objc +func (b_ BokehBlurObject) SetRingSize(value float64) { + objc.Call[objc.Void](b_, objc.Sel("setRingSize:"), value) } -func (b_ BokehBlurWrapper) HasSoftness() bool { - return b_.RespondsToSelector(objc.Sel("softness")) +func (b_ BokehBlurObject) HasRingSize() bool { + return b_.RespondsToSelector(objc.Sel("ringSize")) } -// The softness of the bokeh effect. [Full Topic] +// The radius of the extra emphasis at the ring of the bokeh. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/cibokehblur/3228092-softness?language=objc -func (b_ BokehBlurWrapper) Softness() float64 { - rv := objc.Call[float64](b_, objc.Sel("softness")) +// [Full Topic]: https://developer.apple.com/documentation/coreimage/cibokehblur/3228091-ringsize?language=objc +func (b_ BokehBlurObject) RingSize() float64 { + rv := objc.Call[float64](b_, objc.Sel("ringSize")) + return rv +} + +func (b_ BokehBlurObject) HasSetInputImage() bool { + return b_.RespondsToSelector(objc.Sel("setInputImage:")) +} + +// The image to use as an input image. [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:"), objc.Ptr(value)) +} + +func (b_ BokehBlurObject) HasInputImage() bool { + return b_.RespondsToSelector(objc.Sel("inputImage")) +} + +// The image to use as an input image. [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")) return rv } diff --git a/macos/coreimage/box_blur.gen.go b/macos/coreimage/box_blur_protocol.gen.go similarity index 72% rename from macos/coreimage/box_blur.gen.go rename to macos/coreimage/box_blur_protocol.gen.go index 4f2cdb11..8207b18f 100644 --- a/macos/coreimage/box_blur.gen.go +++ b/macos/coreimage/box_blur_protocol.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package coreimage @@ -10,14 +10,6 @@ import ( // // [Full Topic]: https://developer.apple.com/documentation/coreimage/ciboxblur?language=objc type PBoxBlur interface { - // optional - SetInputImage(value Image) - HasSetInputImage() bool - - // optional - InputImage() IImage - HasInputImage() bool - // optional SetRadius(value float64) HasSetRadius() bool @@ -25,55 +17,66 @@ type PBoxBlur interface { // optional Radius() float64 HasRadius() bool + + // optional + SetInputImage(value Image) + HasSetInputImage() bool + + // optional + InputImage() Image + HasInputImage() bool } -// A concrete type wrapper for the [PBoxBlur] protocol. -type BoxBlurWrapper struct { +// ensure impl type implements protocol interface +var _ PBoxBlur = (*BoxBlurObject)(nil) + +// A concrete type for the [PBoxBlur] protocol. +type BoxBlurObject struct { objc.Object } -func (b_ BoxBlurWrapper) HasSetInputImage() bool { - return b_.RespondsToSelector(objc.Sel("setInputImage:")) +func (b_ BoxBlurObject) HasSetRadius() bool { + return b_.RespondsToSelector(objc.Sel("setRadius:")) } -// The image to use as an input image. [Full Topic] +// The radius of the blur, in pixels. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/ciboxblur/3228094-inputimage?language=objc -func (b_ BoxBlurWrapper) SetInputImage(value IImage) { - objc.Call[objc.Void](b_, objc.Sel("setInputImage:"), objc.Ptr(value)) +// [Full Topic]: https://developer.apple.com/documentation/coreimage/ciboxblur/3228095-radius?language=objc +func (b_ BoxBlurObject) SetRadius(value float64) { + objc.Call[objc.Void](b_, objc.Sel("setRadius:"), value) } -func (b_ BoxBlurWrapper) HasInputImage() bool { - return b_.RespondsToSelector(objc.Sel("inputImage")) +func (b_ BoxBlurObject) HasRadius() bool { + return b_.RespondsToSelector(objc.Sel("radius")) } -// The image to use as an input image. [Full Topic] +// The radius of the blur, in pixels. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/ciboxblur/3228094-inputimage?language=objc -func (b_ BoxBlurWrapper) InputImage() Image { - rv := objc.Call[Image](b_, objc.Sel("inputImage")) +// [Full Topic]: https://developer.apple.com/documentation/coreimage/ciboxblur/3228095-radius?language=objc +func (b_ BoxBlurObject) Radius() float64 { + rv := objc.Call[float64](b_, objc.Sel("radius")) return rv } -func (b_ BoxBlurWrapper) HasSetRadius() bool { - return b_.RespondsToSelector(objc.Sel("setRadius:")) +func (b_ BoxBlurObject) HasSetInputImage() bool { + return b_.RespondsToSelector(objc.Sel("setInputImage:")) } -// The radius of the blur, in pixels. [Full Topic] +// The image to use as an input image. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/ciboxblur/3228095-radius?language=objc -func (b_ BoxBlurWrapper) SetRadius(value float64) { - objc.Call[objc.Void](b_, objc.Sel("setRadius:"), value) +// [Full Topic]: https://developer.apple.com/documentation/coreimage/ciboxblur/3228094-inputimage?language=objc +func (b_ BoxBlurObject) SetInputImage(value Image) { + objc.Call[objc.Void](b_, objc.Sel("setInputImage:"), objc.Ptr(value)) } -func (b_ BoxBlurWrapper) HasRadius() bool { - return b_.RespondsToSelector(objc.Sel("radius")) +func (b_ BoxBlurObject) HasInputImage() bool { + return b_.RespondsToSelector(objc.Sel("inputImage")) } -// The radius of the blur, in pixels. [Full Topic] +// The image to use as an input image. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/ciboxblur/3228095-radius?language=objc -func (b_ BoxBlurWrapper) Radius() float64 { - rv := objc.Call[float64](b_, objc.Sel("radius")) +// [Full Topic]: https://developer.apple.com/documentation/coreimage/ciboxblur/3228094-inputimage?language=objc +func (b_ BoxBlurObject) InputImage() Image { + rv := objc.Call[Image](b_, objc.Sel("inputImage")) return rv } diff --git a/macos/coreimage/bump_distortion_linear.gen.go b/macos/coreimage/bump_distortion_linear_protocol.gen.go similarity index 70% rename from macos/coreimage/bump_distortion_linear.gen.go rename to macos/coreimage/bump_distortion_linear_protocol.gen.go index 9cd8e1cd..f5249d2b 100644 --- a/macos/coreimage/bump_distortion_linear.gen.go +++ b/macos/coreimage/bump_distortion_linear_protocol.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package coreimage @@ -19,22 +19,6 @@ type PBumpDistortionLinear interface { Scale() float64 HasScale() bool - // optional - SetInputImage(value Image) - HasSetInputImage() bool - - // optional - InputImage() IImage - HasInputImage() bool - - // optional - SetRadius(value float64) - HasSetRadius() bool - - // optional - Radius() float64 - HasRadius() bool - // optional SetAngle(value float64) HasSetAngle() bool @@ -43,6 +27,14 @@ type PBumpDistortionLinear interface { Angle() float64 HasAngle() bool + // optional + SetInputImage(value Image) + HasSetInputImage() bool + + // optional + InputImage() Image + HasInputImage() bool + // optional SetCenter(value coregraphics.Point) HasSetCenter() bool @@ -50,124 +42,135 @@ type PBumpDistortionLinear interface { // optional Center() coregraphics.Point HasCenter() bool + + // optional + SetRadius(value float64) + HasSetRadius() bool + + // optional + Radius() float64 + HasRadius() bool } -// A concrete type wrapper for the [PBumpDistortionLinear] protocol. -type BumpDistortionLinearWrapper struct { +// ensure impl type implements protocol interface +var _ PBumpDistortionLinear = (*BumpDistortionLinearObject)(nil) + +// A concrete type for the [PBumpDistortionLinear] protocol. +type BumpDistortionLinearObject struct { objc.Object } -func (b_ BumpDistortionLinearWrapper) HasSetScale() bool { +func (b_ BumpDistortionLinearObject) HasSetScale() bool { return b_.RespondsToSelector(objc.Sel("setScale:")) } // [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/coreimage/cibumpdistortionlinear/3600116-scale?language=objc -func (b_ BumpDistortionLinearWrapper) SetScale(value float64) { +func (b_ BumpDistortionLinearObject) SetScale(value float64) { objc.Call[objc.Void](b_, objc.Sel("setScale:"), value) } -func (b_ BumpDistortionLinearWrapper) HasScale() bool { +func (b_ BumpDistortionLinearObject) HasScale() bool { return b_.RespondsToSelector(objc.Sel("scale")) } // [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/coreimage/cibumpdistortionlinear/3600116-scale?language=objc -func (b_ BumpDistortionLinearWrapper) Scale() float64 { +func (b_ BumpDistortionLinearObject) Scale() float64 { rv := objc.Call[float64](b_, objc.Sel("scale")) return rv } -func (b_ BumpDistortionLinearWrapper) HasSetInputImage() bool { - return b_.RespondsToSelector(objc.Sel("setInputImage:")) +func (b_ BumpDistortionLinearObject) HasSetAngle() bool { + return b_.RespondsToSelector(objc.Sel("setAngle:")) } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/cibumpdistortionlinear/3600114-inputimage?language=objc -func (b_ BumpDistortionLinearWrapper) SetInputImage(value IImage) { - objc.Call[objc.Void](b_, objc.Sel("setInputImage:"), objc.Ptr(value)) +// [Full Topic]: https://developer.apple.com/documentation/coreimage/cibumpdistortionlinear/3600112-angle?language=objc +func (b_ BumpDistortionLinearObject) SetAngle(value float64) { + objc.Call[objc.Void](b_, objc.Sel("setAngle:"), value) } -func (b_ BumpDistortionLinearWrapper) HasInputImage() bool { - return b_.RespondsToSelector(objc.Sel("inputImage")) +func (b_ BumpDistortionLinearObject) HasAngle() bool { + return b_.RespondsToSelector(objc.Sel("angle")) } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/cibumpdistortionlinear/3600114-inputimage?language=objc -func (b_ BumpDistortionLinearWrapper) InputImage() Image { - rv := objc.Call[Image](b_, objc.Sel("inputImage")) +// [Full Topic]: https://developer.apple.com/documentation/coreimage/cibumpdistortionlinear/3600112-angle?language=objc +func (b_ BumpDistortionLinearObject) Angle() float64 { + rv := objc.Call[float64](b_, objc.Sel("angle")) return rv } -func (b_ BumpDistortionLinearWrapper) HasSetRadius() bool { - return b_.RespondsToSelector(objc.Sel("setRadius:")) +func (b_ BumpDistortionLinearObject) HasSetInputImage() bool { + return b_.RespondsToSelector(objc.Sel("setInputImage:")) } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/cibumpdistortionlinear/3600115-radius?language=objc -func (b_ BumpDistortionLinearWrapper) SetRadius(value float64) { - objc.Call[objc.Void](b_, objc.Sel("setRadius:"), 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:"), objc.Ptr(value)) } -func (b_ BumpDistortionLinearWrapper) HasRadius() bool { - return b_.RespondsToSelector(objc.Sel("radius")) +func (b_ BumpDistortionLinearObject) HasInputImage() bool { + return b_.RespondsToSelector(objc.Sel("inputImage")) } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/cibumpdistortionlinear/3600115-radius?language=objc -func (b_ BumpDistortionLinearWrapper) Radius() float64 { - rv := objc.Call[float64](b_, objc.Sel("radius")) +// [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_ BumpDistortionLinearWrapper) HasSetAngle() bool { - return b_.RespondsToSelector(objc.Sel("setAngle:")) +func (b_ BumpDistortionLinearObject) HasSetCenter() bool { + return b_.RespondsToSelector(objc.Sel("setCenter:")) } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/cibumpdistortionlinear/3600112-angle?language=objc -func (b_ BumpDistortionLinearWrapper) SetAngle(value float64) { - objc.Call[objc.Void](b_, objc.Sel("setAngle:"), 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_ BumpDistortionLinearWrapper) HasAngle() bool { - return b_.RespondsToSelector(objc.Sel("angle")) +func (b_ BumpDistortionLinearObject) HasCenter() bool { + return b_.RespondsToSelector(objc.Sel("center")) } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/cibumpdistortionlinear/3600112-angle?language=objc -func (b_ BumpDistortionLinearWrapper) Angle() float64 { - rv := objc.Call[float64](b_, objc.Sel("angle")) +// [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 } -func (b_ BumpDistortionLinearWrapper) HasSetCenter() bool { - return b_.RespondsToSelector(objc.Sel("setCenter:")) +func (b_ BumpDistortionLinearObject) HasSetRadius() bool { + return b_.RespondsToSelector(objc.Sel("setRadius:")) } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/cibumpdistortionlinear/3600113-center?language=objc -func (b_ BumpDistortionLinearWrapper) SetCenter(value coregraphics.Point) { - objc.Call[objc.Void](b_, objc.Sel("setCenter:"), value) +// [Full Topic]: https://developer.apple.com/documentation/coreimage/cibumpdistortionlinear/3600115-radius?language=objc +func (b_ BumpDistortionLinearObject) SetRadius(value float64) { + objc.Call[objc.Void](b_, objc.Sel("setRadius:"), value) } -func (b_ BumpDistortionLinearWrapper) HasCenter() bool { - return b_.RespondsToSelector(objc.Sel("center")) +func (b_ BumpDistortionLinearObject) HasRadius() bool { + return b_.RespondsToSelector(objc.Sel("radius")) } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/cibumpdistortionlinear/3600113-center?language=objc -func (b_ BumpDistortionLinearWrapper) Center() coregraphics.Point { - rv := objc.Call[coregraphics.Point](b_, objc.Sel("center")) +// [Full Topic]: https://developer.apple.com/documentation/coreimage/cibumpdistortionlinear/3600115-radius?language=objc +func (b_ BumpDistortionLinearObject) Radius() float64 { + rv := objc.Call[float64](b_, objc.Sel("radius")) return rv } diff --git a/macos/coreimage/bump_distortion.gen.go b/macos/coreimage/bump_distortion_protocol.gen.go similarity index 71% rename from macos/coreimage/bump_distortion.gen.go rename to macos/coreimage/bump_distortion_protocol.gen.go index 85661a46..92a51967 100644 --- a/macos/coreimage/bump_distortion.gen.go +++ b/macos/coreimage/bump_distortion_protocol.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package coreimage @@ -12,19 +12,19 @@ import ( // [Full Topic]: https://developer.apple.com/documentation/coreimage/cibumpdistortion?language=objc type PBumpDistortion interface { // optional - SetScale(value float64) - HasSetScale() bool + SetCenter(value coregraphics.Point) + HasSetCenter() bool // optional - Scale() float64 - HasScale() bool + Center() coregraphics.Point + HasCenter() bool // optional SetInputImage(value Image) HasSetInputImage() bool // optional - InputImage() IImage + InputImage() Image HasInputImage() bool // optional @@ -36,107 +36,110 @@ type PBumpDistortion interface { HasRadius() bool // optional - SetCenter(value coregraphics.Point) - HasSetCenter() bool + SetScale(value float64) + HasSetScale() bool // optional - Center() coregraphics.Point - HasCenter() bool + Scale() float64 + HasScale() bool } -// A concrete type wrapper for the [PBumpDistortion] protocol. -type BumpDistortionWrapper struct { +// ensure impl type implements protocol interface +var _ PBumpDistortion = (*BumpDistortionObject)(nil) + +// A concrete type for the [PBumpDistortion] protocol. +type BumpDistortionObject struct { objc.Object } -func (b_ BumpDistortionWrapper) 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_ BumpDistortionWrapper) SetScale(value float64) { - 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_ BumpDistortionWrapper) 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_ BumpDistortionWrapper) Scale() float64 { - rv := objc.Call[float64](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 } -func (b_ BumpDistortionWrapper) HasSetInputImage() bool { +func (b_ BumpDistortionObject) HasSetInputImage() bool { return b_.RespondsToSelector(objc.Sel("setInputImage:")) } // [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/coreimage/cibumpdistortion/3600108-inputimage?language=objc -func (b_ BumpDistortionWrapper) SetInputImage(value IImage) { +func (b_ BumpDistortionObject) SetInputImage(value Image) { objc.Call[objc.Void](b_, objc.Sel("setInputImage:"), objc.Ptr(value)) } -func (b_ BumpDistortionWrapper) HasInputImage() bool { +func (b_ BumpDistortionObject) HasInputImage() bool { return b_.RespondsToSelector(objc.Sel("inputImage")) } // [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/coreimage/cibumpdistortion/3600108-inputimage?language=objc -func (b_ BumpDistortionWrapper) InputImage() Image { +func (b_ BumpDistortionObject) InputImage() Image { rv := objc.Call[Image](b_, objc.Sel("inputImage")) return rv } -func (b_ BumpDistortionWrapper) HasSetRadius() bool { +func (b_ BumpDistortionObject) HasSetRadius() bool { return b_.RespondsToSelector(objc.Sel("setRadius:")) } // [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/coreimage/cibumpdistortion/3600109-radius?language=objc -func (b_ BumpDistortionWrapper) SetRadius(value float64) { +func (b_ BumpDistortionObject) SetRadius(value float64) { objc.Call[objc.Void](b_, objc.Sel("setRadius:"), value) } -func (b_ BumpDistortionWrapper) HasRadius() bool { +func (b_ BumpDistortionObject) HasRadius() bool { return b_.RespondsToSelector(objc.Sel("radius")) } // [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/coreimage/cibumpdistortion/3600109-radius?language=objc -func (b_ BumpDistortionWrapper) Radius() float64 { +func (b_ BumpDistortionObject) Radius() float64 { rv := objc.Call[float64](b_, objc.Sel("radius")) return rv } -func (b_ BumpDistortionWrapper) 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_ BumpDistortionWrapper) 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 float64) { + objc.Call[objc.Void](b_, objc.Sel("setScale:"), value) } -func (b_ BumpDistortionWrapper) 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_ BumpDistortionWrapper) 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() float64 { + rv := objc.Call[float64](b_, objc.Sel("scale")) return rv } diff --git a/macos/coreimage/checkerboard_generator.gen.go b/macos/coreimage/checkerboard_generator_protocol.gen.go similarity index 72% rename from macos/coreimage/checkerboard_generator.gen.go rename to macos/coreimage/checkerboard_generator_protocol.gen.go index 1c733362..f2e90a92 100644 --- a/macos/coreimage/checkerboard_generator.gen.go +++ b/macos/coreimage/checkerboard_generator_protocol.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package coreimage @@ -12,162 +12,165 @@ import ( // [Full Topic]: https://developer.apple.com/documentation/coreimage/cicheckerboardgenerator?language=objc type PCheckerboardGenerator interface { // optional - SetWidth(value float64) - HasSetWidth() bool + SetCenter(value coregraphics.Point) + HasSetCenter() bool // optional - Width() float64 - HasWidth() bool + Center() coregraphics.Point + HasCenter() bool // optional - SetSharpness(value float64) - HasSetSharpness() bool + SetColor0(value Color) + HasSetColor0() bool // optional - Sharpness() float64 - HasSharpness() bool + Color0() Color + HasColor0() bool // optional - SetColor0(value Color) - HasSetColor0() bool + SetWidth(value float64) + HasSetWidth() bool // optional - Color0() IColor - HasColor0() bool + Width() float64 + HasWidth() bool // optional SetColor1(value Color) HasSetColor1() bool // optional - Color1() IColor + Color1() Color HasColor1() bool // optional - SetCenter(value coregraphics.Point) - HasSetCenter() bool + SetSharpness(value float64) + HasSetSharpness() bool // optional - Center() coregraphics.Point - HasCenter() bool + Sharpness() float64 + HasSharpness() bool } -// A concrete type wrapper for the [PCheckerboardGenerator] protocol. -type CheckerboardGeneratorWrapper struct { +// ensure impl type implements protocol interface +var _ PCheckerboardGenerator = (*CheckerboardGeneratorObject)(nil) + +// A concrete type for the [PCheckerboardGenerator] protocol. +type CheckerboardGeneratorObject struct { objc.Object } -func (c_ CheckerboardGeneratorWrapper) HasSetWidth() bool { - return c_.RespondsToSelector(objc.Sel("setWidth:")) +func (c_ CheckerboardGeneratorObject) HasSetCenter() bool { + return c_.RespondsToSelector(objc.Sel("setCenter:")) } -// The width of the squares 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/3228109-width?language=objc -func (c_ CheckerboardGeneratorWrapper) SetWidth(value float64) { - objc.Call[objc.Void](c_, objc.Sel("setWidth:"), 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_ CheckerboardGeneratorWrapper) HasWidth() bool { - return c_.RespondsToSelector(objc.Sel("width")) +func (c_ CheckerboardGeneratorObject) HasCenter() bool { + return c_.RespondsToSelector(objc.Sel("center")) } -// The width of the squares 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/3228109-width?language=objc -func (c_ CheckerboardGeneratorWrapper) Width() float64 { - rv := objc.Call[float64](c_, objc.Sel("width")) +// [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 } -func (c_ CheckerboardGeneratorWrapper) HasSetSharpness() bool { - return c_.RespondsToSelector(objc.Sel("setSharpness:")) +func (c_ CheckerboardGeneratorObject) HasSetColor0() bool { + return c_.RespondsToSelector(objc.Sel("setColor0:")) } -// The sharpness of the edges in the pattern. [Full Topic] +// A color to use for the first set of squares. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/cicheckerboardgenerator/3228108-sharpness?language=objc -func (c_ CheckerboardGeneratorWrapper) SetSharpness(value float64) { - objc.Call[objc.Void](c_, objc.Sel("setSharpness:"), value) +// [Full Topic]: https://developer.apple.com/documentation/coreimage/cicheckerboardgenerator/3228106-color0?language=objc +func (c_ CheckerboardGeneratorObject) SetColor0(value Color) { + objc.Call[objc.Void](c_, objc.Sel("setColor0:"), objc.Ptr(value)) } -func (c_ CheckerboardGeneratorWrapper) HasSharpness() bool { - return c_.RespondsToSelector(objc.Sel("sharpness")) +func (c_ CheckerboardGeneratorObject) HasColor0() bool { + return c_.RespondsToSelector(objc.Sel("color0")) } -// The sharpness of the edges in the pattern. [Full Topic] +// A color to use for the first set of squares. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/cicheckerboardgenerator/3228108-sharpness?language=objc -func (c_ CheckerboardGeneratorWrapper) Sharpness() float64 { - rv := objc.Call[float64](c_, objc.Sel("sharpness")) +// [Full Topic]: https://developer.apple.com/documentation/coreimage/cicheckerboardgenerator/3228106-color0?language=objc +func (c_ CheckerboardGeneratorObject) Color0() Color { + rv := objc.Call[Color](c_, objc.Sel("color0")) return rv } -func (c_ CheckerboardGeneratorWrapper) HasSetColor0() bool { - return c_.RespondsToSelector(objc.Sel("setColor0:")) +func (c_ CheckerboardGeneratorObject) HasSetWidth() bool { + return c_.RespondsToSelector(objc.Sel("setWidth:")) } -// A color to use for the first set of squares. [Full Topic] +// The width of the squares in the pattern. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/cicheckerboardgenerator/3228106-color0?language=objc -func (c_ CheckerboardGeneratorWrapper) SetColor0(value IColor) { - objc.Call[objc.Void](c_, objc.Sel("setColor0:"), objc.Ptr(value)) +// [Full Topic]: https://developer.apple.com/documentation/coreimage/cicheckerboardgenerator/3228109-width?language=objc +func (c_ CheckerboardGeneratorObject) SetWidth(value float64) { + objc.Call[objc.Void](c_, objc.Sel("setWidth:"), value) } -func (c_ CheckerboardGeneratorWrapper) HasColor0() bool { - return c_.RespondsToSelector(objc.Sel("color0")) +func (c_ CheckerboardGeneratorObject) HasWidth() bool { + return c_.RespondsToSelector(objc.Sel("width")) } -// A color to use for the first set of squares. [Full Topic] +// The width of the squares in the pattern. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/cicheckerboardgenerator/3228106-color0?language=objc -func (c_ CheckerboardGeneratorWrapper) Color0() Color { - rv := objc.Call[Color](c_, objc.Sel("color0")) +// [Full Topic]: https://developer.apple.com/documentation/coreimage/cicheckerboardgenerator/3228109-width?language=objc +func (c_ CheckerboardGeneratorObject) Width() float64 { + rv := objc.Call[float64](c_, objc.Sel("width")) return rv } -func (c_ CheckerboardGeneratorWrapper) HasSetColor1() bool { +func (c_ CheckerboardGeneratorObject) HasSetColor1() bool { return c_.RespondsToSelector(objc.Sel("setColor1:")) } // A color to use for the second set of squares. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/coreimage/cicheckerboardgenerator/3228107-color1?language=objc -func (c_ CheckerboardGeneratorWrapper) SetColor1(value IColor) { +func (c_ CheckerboardGeneratorObject) SetColor1(value Color) { objc.Call[objc.Void](c_, objc.Sel("setColor1:"), objc.Ptr(value)) } -func (c_ CheckerboardGeneratorWrapper) HasColor1() bool { +func (c_ CheckerboardGeneratorObject) HasColor1() bool { return c_.RespondsToSelector(objc.Sel("color1")) } // A color to use for the second set of squares. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/coreimage/cicheckerboardgenerator/3228107-color1?language=objc -func (c_ CheckerboardGeneratorWrapper) Color1() Color { +func (c_ CheckerboardGeneratorObject) Color1() Color { rv := objc.Call[Color](c_, objc.Sel("color1")) return rv } -func (c_ CheckerboardGeneratorWrapper) HasSetCenter() bool { - return c_.RespondsToSelector(objc.Sel("setCenter:")) +func (c_ CheckerboardGeneratorObject) HasSetSharpness() bool { + return c_.RespondsToSelector(objc.Sel("setSharpness:")) } -// The center of the effect as x and y coordinates. [Full Topic] +// The sharpness of the edges in the pattern. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/cicheckerboardgenerator/3228105-center?language=objc -func (c_ CheckerboardGeneratorWrapper) SetCenter(value coregraphics.Point) { - objc.Call[objc.Void](c_, objc.Sel("setCenter:"), value) +// [Full Topic]: https://developer.apple.com/documentation/coreimage/cicheckerboardgenerator/3228108-sharpness?language=objc +func (c_ CheckerboardGeneratorObject) SetSharpness(value float64) { + objc.Call[objc.Void](c_, objc.Sel("setSharpness:"), value) } -func (c_ CheckerboardGeneratorWrapper) HasCenter() bool { - return c_.RespondsToSelector(objc.Sel("center")) +func (c_ CheckerboardGeneratorObject) HasSharpness() bool { + return c_.RespondsToSelector(objc.Sel("sharpness")) } -// The center of the effect as x and y coordinates. [Full Topic] +// The sharpness of the edges in the pattern. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/cicheckerboardgenerator/3228105-center?language=objc -func (c_ CheckerboardGeneratorWrapper) Center() coregraphics.Point { - rv := objc.Call[coregraphics.Point](c_, objc.Sel("center")) +// [Full Topic]: https://developer.apple.com/documentation/coreimage/cicheckerboardgenerator/3228108-sharpness?language=objc +func (c_ CheckerboardGeneratorObject) Sharpness() float64 { + rv := objc.Call[float64](c_, objc.Sel("sharpness")) return rv } diff --git a/macos/coreimage/circle_splash_distortion.gen.go b/macos/coreimage/circle_splash_distortion_protocol.gen.go similarity index 68% rename from macos/coreimage/circle_splash_distortion.gen.go rename to macos/coreimage/circle_splash_distortion_protocol.gen.go index 6a0387d6..85431c62 100644 --- a/macos/coreimage/circle_splash_distortion.gen.go +++ b/macos/coreimage/circle_splash_distortion_protocol.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package coreimage @@ -11,12 +11,20 @@ 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 // optional - InputImage() IImage + InputImage() Image HasInputImage() bool // optional @@ -26,86 +34,81 @@ type PCircleSplashDistortion interface { // optional Radius() float64 HasRadius() bool - - // optional - SetCenter(value coregraphics.Point) - HasSetCenter() bool - - // optional - Center() coregraphics.Point - HasCenter() bool } -// A concrete type wrapper for the [PCircleSplashDistortion] protocol. -type CircleSplashDistortionWrapper struct { +// ensure impl type implements protocol interface +var _ PCircleSplashDistortion = (*CircleSplashDistortionObject)(nil) + +// A concrete type for the [PCircleSplashDistortion] protocol. +type CircleSplashDistortionObject struct { objc.Object } -func (c_ CircleSplashDistortionWrapper) HasSetInputImage() bool { - return c_.RespondsToSelector(objc.Sel("setInputImage:")) +func (c_ CircleSplashDistortionObject) HasSetCenter() bool { + return c_.RespondsToSelector(objc.Sel("setCenter:")) } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/cicirclesplashdistortion/3600119-inputimage?language=objc -func (c_ CircleSplashDistortionWrapper) SetInputImage(value IImage) { - objc.Call[objc.Void](c_, objc.Sel("setInputImage:"), objc.Ptr(value)) +// [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_ CircleSplashDistortionWrapper) HasInputImage() bool { - return c_.RespondsToSelector(objc.Sel("inputImage")) +func (c_ CircleSplashDistortionObject) HasCenter() bool { + return c_.RespondsToSelector(objc.Sel("center")) } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/cicirclesplashdistortion/3600119-inputimage?language=objc -func (c_ CircleSplashDistortionWrapper) InputImage() Image { - rv := objc.Call[Image](c_, objc.Sel("inputImage")) +// [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_ CircleSplashDistortionWrapper) HasSetRadius() bool { - return c_.RespondsToSelector(objc.Sel("setRadius:")) +func (c_ CircleSplashDistortionObject) HasSetInputImage() bool { + return c_.RespondsToSelector(objc.Sel("setInputImage:")) } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/cicirclesplashdistortion/3600120-radius?language=objc -func (c_ CircleSplashDistortionWrapper) SetRadius(value float64) { - objc.Call[objc.Void](c_, objc.Sel("setRadius:"), value) +// [Full Topic]: https://developer.apple.com/documentation/coreimage/cicirclesplashdistortion/3600119-inputimage?language=objc +func (c_ CircleSplashDistortionObject) SetInputImage(value Image) { + objc.Call[objc.Void](c_, objc.Sel("setInputImage:"), objc.Ptr(value)) } -func (c_ CircleSplashDistortionWrapper) HasRadius() bool { - return c_.RespondsToSelector(objc.Sel("radius")) +func (c_ CircleSplashDistortionObject) HasInputImage() bool { + return c_.RespondsToSelector(objc.Sel("inputImage")) } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/cicirclesplashdistortion/3600120-radius?language=objc -func (c_ CircleSplashDistortionWrapper) Radius() float64 { - rv := objc.Call[float64](c_, objc.Sel("radius")) +// [Full Topic]: https://developer.apple.com/documentation/coreimage/cicirclesplashdistortion/3600119-inputimage?language=objc +func (c_ CircleSplashDistortionObject) InputImage() Image { + rv := objc.Call[Image](c_, objc.Sel("inputImage")) return rv } -func (c_ CircleSplashDistortionWrapper) HasSetCenter() bool { - return c_.RespondsToSelector(objc.Sel("setCenter:")) +func (c_ CircleSplashDistortionObject) HasSetRadius() bool { + return c_.RespondsToSelector(objc.Sel("setRadius:")) } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/cicirclesplashdistortion/3600118-center?language=objc -func (c_ CircleSplashDistortionWrapper) SetCenter(value coregraphics.Point) { - objc.Call[objc.Void](c_, objc.Sel("setCenter:"), value) +// [Full Topic]: https://developer.apple.com/documentation/coreimage/cicirclesplashdistortion/3600120-radius?language=objc +func (c_ CircleSplashDistortionObject) SetRadius(value float64) { + objc.Call[objc.Void](c_, objc.Sel("setRadius:"), value) } -func (c_ CircleSplashDistortionWrapper) HasCenter() bool { - return c_.RespondsToSelector(objc.Sel("center")) +func (c_ CircleSplashDistortionObject) HasRadius() bool { + return c_.RespondsToSelector(objc.Sel("radius")) } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/cicirclesplashdistortion/3600118-center?language=objc -func (c_ CircleSplashDistortionWrapper) Center() coregraphics.Point { - rv := objc.Call[coregraphics.Point](c_, objc.Sel("center")) +// [Full Topic]: https://developer.apple.com/documentation/coreimage/cicirclesplashdistortion/3600120-radius?language=objc +func (c_ CircleSplashDistortionObject) Radius() float64 { + rv := objc.Call[float64](c_, objc.Sel("radius")) return rv } diff --git a/macos/coreimage/circular_screen.gen.go b/macos/coreimage/circular_screen_protocol.gen.go similarity index 74% rename from macos/coreimage/circular_screen.gen.go rename to macos/coreimage/circular_screen_protocol.gen.go index 2717faa6..0ca24439 100644 --- a/macos/coreimage/circular_screen.gen.go +++ b/macos/coreimage/circular_screen_protocol.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package coreimage @@ -19,12 +19,20 @@ type PCircularScreen interface { Width() float64 HasWidth() bool + // optional + SetCenter(value coregraphics.Point) + HasSetCenter() bool + + // optional + Center() coregraphics.Point + HasCenter() bool + // optional SetInputImage(value Image) HasSetInputImage() bool // optional - InputImage() IImage + InputImage() Image HasInputImage() bool // optional @@ -34,109 +42,104 @@ type PCircularScreen interface { // optional Sharpness() float64 HasSharpness() bool - - // optional - SetCenter(value coregraphics.Point) - HasSetCenter() bool - - // optional - Center() coregraphics.Point - HasCenter() bool } -// A concrete type wrapper for the [PCircularScreen] protocol. -type CircularScreenWrapper struct { +// ensure impl type implements protocol interface +var _ PCircularScreen = (*CircularScreenObject)(nil) + +// A concrete type for the [PCircularScreen] protocol. +type CircularScreenObject struct { objc.Object } -func (c_ CircularScreenWrapper) HasSetWidth() bool { +func (c_ CircularScreenObject) HasSetWidth() bool { return c_.RespondsToSelector(objc.Sel("setWidth:")) } // The distance between each circle in the pattern. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/coreimage/cicircularscreen/3228114-width?language=objc -func (c_ CircularScreenWrapper) SetWidth(value float64) { +func (c_ CircularScreenObject) SetWidth(value float64) { objc.Call[objc.Void](c_, objc.Sel("setWidth:"), value) } -func (c_ CircularScreenWrapper) HasWidth() bool { +func (c_ CircularScreenObject) HasWidth() bool { return c_.RespondsToSelector(objc.Sel("width")) } // The distance between each circle in the pattern. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/coreimage/cicircularscreen/3228114-width?language=objc -func (c_ CircularScreenWrapper) Width() float64 { +func (c_ CircularScreenObject) Width() float64 { rv := objc.Call[float64](c_, objc.Sel("width")) return rv } -func (c_ CircularScreenWrapper) HasSetInputImage() bool { +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:")) } // The image to use as an input image. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/coreimage/cicircularscreen/3228112-inputimage?language=objc -func (c_ CircularScreenWrapper) SetInputImage(value IImage) { +func (c_ CircularScreenObject) SetInputImage(value Image) { objc.Call[objc.Void](c_, objc.Sel("setInputImage:"), objc.Ptr(value)) } -func (c_ CircularScreenWrapper) HasInputImage() bool { +func (c_ CircularScreenObject) 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/cicircularscreen/3228112-inputimage?language=objc -func (c_ CircularScreenWrapper) InputImage() Image { +func (c_ CircularScreenObject) InputImage() Image { rv := objc.Call[Image](c_, objc.Sel("inputImage")) return rv } -func (c_ CircularScreenWrapper) HasSetSharpness() bool { +func (c_ CircularScreenObject) HasSetSharpness() bool { return c_.RespondsToSelector(objc.Sel("setSharpness:")) } // The sharpness of the circles. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/coreimage/cicircularscreen/3228113-sharpness?language=objc -func (c_ CircularScreenWrapper) SetSharpness(value float64) { +func (c_ CircularScreenObject) SetSharpness(value float64) { objc.Call[objc.Void](c_, objc.Sel("setSharpness:"), value) } -func (c_ CircularScreenWrapper) HasSharpness() bool { +func (c_ CircularScreenObject) HasSharpness() bool { return c_.RespondsToSelector(objc.Sel("sharpness")) } // The sharpness of the circles. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/coreimage/cicircularscreen/3228113-sharpness?language=objc -func (c_ CircularScreenWrapper) Sharpness() float64 { +func (c_ CircularScreenObject) Sharpness() float64 { rv := objc.Call[float64](c_, objc.Sel("sharpness")) return rv } - -func (c_ CircularScreenWrapper) 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_ CircularScreenWrapper) SetCenter(value coregraphics.Point) { - objc.Call[objc.Void](c_, objc.Sel("setCenter:"), value) -} - -func (c_ CircularScreenWrapper) 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_ CircularScreenWrapper) Center() coregraphics.Point { - rv := objc.Call[coregraphics.Point](c_, objc.Sel("center")) - return rv -} diff --git a/macos/coreimage/circular_wrap.gen.go b/macos/coreimage/circular_wrap_protocol.gen.go similarity index 71% rename from macos/coreimage/circular_wrap.gen.go rename to macos/coreimage/circular_wrap_protocol.gen.go index 736d0a85..0b9daab6 100644 --- a/macos/coreimage/circular_wrap.gen.go +++ b/macos/coreimage/circular_wrap_protocol.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package coreimage @@ -11,22 +11,6 @@ import ( // // [Full Topic]: https://developer.apple.com/documentation/coreimage/cicircularwrap?language=objc type PCircularWrap interface { - // optional - SetInputImage(value Image) - HasSetInputImage() bool - - // optional - InputImage() IImage - HasInputImage() bool - - // optional - SetRadius(value float64) - HasSetRadius() bool - - // optional - Radius() float64 - HasRadius() bool - // optional SetAngle(value float64) HasSetAngle() bool @@ -35,6 +19,14 @@ type PCircularWrap interface { Angle() float64 HasAngle() bool + // optional + SetInputImage(value Image) + HasSetInputImage() bool + + // optional + InputImage() Image + HasInputImage() bool + // optional SetCenter(value coregraphics.Point) HasSetCenter() bool @@ -42,101 +34,112 @@ type PCircularWrap interface { // optional Center() coregraphics.Point HasCenter() bool + + // optional + SetRadius(value float64) + HasSetRadius() bool + + // optional + Radius() float64 + HasRadius() bool } -// A concrete type wrapper for the [PCircularWrap] protocol. -type CircularWrapWrapper struct { +// ensure impl type implements protocol interface +var _ PCircularWrap = (*CircularWrapObject)(nil) + +// A concrete type for the [PCircularWrap] protocol. +type CircularWrapObject struct { objc.Object } -func (c_ CircularWrapWrapper) HasSetInputImage() bool { - return c_.RespondsToSelector(objc.Sel("setInputImage:")) +func (c_ CircularWrapObject) HasSetAngle() bool { + return c_.RespondsToSelector(objc.Sel("setAngle:")) } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/cicircularwrap/3600124-inputimage?language=objc -func (c_ CircularWrapWrapper) SetInputImage(value IImage) { - objc.Call[objc.Void](c_, objc.Sel("setInputImage:"), objc.Ptr(value)) +// [Full Topic]: https://developer.apple.com/documentation/coreimage/cicircularwrap/3600122-angle?language=objc +func (c_ CircularWrapObject) SetAngle(value float64) { + objc.Call[objc.Void](c_, objc.Sel("setAngle:"), value) } -func (c_ CircularWrapWrapper) HasInputImage() bool { - return c_.RespondsToSelector(objc.Sel("inputImage")) +func (c_ CircularWrapObject) HasAngle() bool { + return c_.RespondsToSelector(objc.Sel("angle")) } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/cicircularwrap/3600124-inputimage?language=objc -func (c_ CircularWrapWrapper) InputImage() Image { - rv := objc.Call[Image](c_, objc.Sel("inputImage")) +// [Full Topic]: https://developer.apple.com/documentation/coreimage/cicircularwrap/3600122-angle?language=objc +func (c_ CircularWrapObject) Angle() float64 { + rv := objc.Call[float64](c_, objc.Sel("angle")) return rv } -func (c_ CircularWrapWrapper) HasSetRadius() bool { - return c_.RespondsToSelector(objc.Sel("setRadius:")) +func (c_ CircularWrapObject) HasSetInputImage() bool { + return c_.RespondsToSelector(objc.Sel("setInputImage:")) } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/cicircularwrap/3600125-radius?language=objc -func (c_ CircularWrapWrapper) SetRadius(value float64) { - objc.Call[objc.Void](c_, objc.Sel("setRadius:"), 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:"), objc.Ptr(value)) } -func (c_ CircularWrapWrapper) HasRadius() bool { - return c_.RespondsToSelector(objc.Sel("radius")) +func (c_ CircularWrapObject) HasInputImage() bool { + return c_.RespondsToSelector(objc.Sel("inputImage")) } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/cicircularwrap/3600125-radius?language=objc -func (c_ CircularWrapWrapper) Radius() float64 { - rv := objc.Call[float64](c_, objc.Sel("radius")) +// [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_ CircularWrapWrapper) HasSetAngle() bool { - return c_.RespondsToSelector(objc.Sel("setAngle:")) +func (c_ CircularWrapObject) HasSetCenter() bool { + return c_.RespondsToSelector(objc.Sel("setCenter:")) } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/cicircularwrap/3600122-angle?language=objc -func (c_ CircularWrapWrapper) SetAngle(value float64) { - objc.Call[objc.Void](c_, objc.Sel("setAngle:"), 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_ CircularWrapWrapper) HasAngle() bool { - return c_.RespondsToSelector(objc.Sel("angle")) +func (c_ CircularWrapObject) HasCenter() bool { + return c_.RespondsToSelector(objc.Sel("center")) } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/cicircularwrap/3600122-angle?language=objc -func (c_ CircularWrapWrapper) Angle() float64 { - rv := objc.Call[float64](c_, objc.Sel("angle")) +// [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 } -func (c_ CircularWrapWrapper) HasSetCenter() bool { - return c_.RespondsToSelector(objc.Sel("setCenter:")) +func (c_ CircularWrapObject) HasSetRadius() bool { + return c_.RespondsToSelector(objc.Sel("setRadius:")) } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/cicircularwrap/3600123-center?language=objc -func (c_ CircularWrapWrapper) SetCenter(value coregraphics.Point) { - objc.Call[objc.Void](c_, objc.Sel("setCenter:"), value) +// [Full Topic]: https://developer.apple.com/documentation/coreimage/cicircularwrap/3600125-radius?language=objc +func (c_ CircularWrapObject) SetRadius(value float64) { + objc.Call[objc.Void](c_, objc.Sel("setRadius:"), value) } -func (c_ CircularWrapWrapper) HasCenter() bool { - return c_.RespondsToSelector(objc.Sel("center")) +func (c_ CircularWrapObject) HasRadius() bool { + return c_.RespondsToSelector(objc.Sel("radius")) } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/cicircularwrap/3600123-center?language=objc -func (c_ CircularWrapWrapper) Center() coregraphics.Point { - rv := objc.Call[coregraphics.Point](c_, objc.Sel("center")) +// [Full Topic]: https://developer.apple.com/documentation/coreimage/cicircularwrap/3600125-radius?language=objc +func (c_ CircularWrapObject) Radius() float64 { + rv := objc.Call[float64](c_, objc.Sel("radius")) return rv } diff --git a/macos/coreimage/cmyk_halftone.gen.go b/macos/coreimage/cmyk_halftone_protocol.gen.go similarity index 75% rename from macos/coreimage/cmyk_halftone.gen.go rename to macos/coreimage/cmyk_halftone_protocol.gen.go index 638c0fb0..ccb973cc 100644 --- a/macos/coreimage/cmyk_halftone.gen.go +++ b/macos/coreimage/cmyk_halftone_protocol.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package coreimage @@ -11,22 +11,6 @@ import ( // // [Full Topic]: https://developer.apple.com/documentation/coreimage/cicmykhalftone?language=objc type PCMYKHalftone interface { - // optional - SetWidth(value float64) - HasSetWidth() bool - - // optional - Width() float64 - HasWidth() bool - - // optional - SetInputImage(value Image) - HasSetInputImage() bool - - // optional - InputImage() IImage - HasInputImage() bool - // optional SetGrayComponentReplacement(value float64) HasSetGrayComponentReplacement() bool @@ -36,28 +20,28 @@ type PCMYKHalftone interface { HasGrayComponentReplacement() bool // optional - SetSharpness(value float64) - HasSetSharpness() bool + SetUnderColorRemoval(value float64) + HasSetUnderColorRemoval() bool // optional - Sharpness() float64 - HasSharpness() bool + UnderColorRemoval() float64 + HasUnderColorRemoval() bool // optional - SetAngle(value float64) - HasSetAngle() bool + SetInputImage(value Image) + HasSetInputImage() bool // optional - Angle() float64 - HasAngle() bool + InputImage() Image + HasInputImage() bool // optional - SetUnderColorRemoval(value float64) - HasSetUnderColorRemoval() bool + SetAngle(value float64) + HasSetAngle() bool // optional - UnderColorRemoval() float64 - HasUnderColorRemoval() bool + Angle() float64 + HasAngle() bool // optional SetCenter(value coregraphics.Point) @@ -66,170 +50,189 @@ type PCMYKHalftone interface { // optional Center() coregraphics.Point HasCenter() bool -} -// A concrete type wrapper for the [PCMYKHalftone] protocol. -type CMYKHalftoneWrapper struct { - objc.Object -} + // optional + SetSharpness(value float64) + HasSetSharpness() bool -func (c_ CMYKHalftoneWrapper) HasSetWidth() bool { - return c_.RespondsToSelector(objc.Sel("setWidth:")) -} + // optional + Sharpness() float64 + HasSharpness() bool -// The distance between dots in the pattern. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/coreimage/cicmykhalftone/3228103-width?language=objc -func (c_ CMYKHalftoneWrapper) SetWidth(value float64) { - objc.Call[objc.Void](c_, objc.Sel("setWidth:"), value) -} + // optional + SetWidth(value float64) + HasSetWidth() bool -func (c_ CMYKHalftoneWrapper) HasWidth() bool { - return c_.RespondsToSelector(objc.Sel("width")) + // optional + Width() float64 + HasWidth() bool } -// The distance between dots in the pattern. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/coreimage/cicmykhalftone/3228103-width?language=objc -func (c_ CMYKHalftoneWrapper) Width() float64 { - rv := objc.Call[float64](c_, objc.Sel("width")) - return rv +// ensure impl type implements protocol interface +var _ PCMYKHalftone = (*CMYKHalftoneObject)(nil) + +// A concrete type for the [PCMYKHalftone] protocol. +type CMYKHalftoneObject struct { + objc.Object } -func (c_ CMYKHalftoneWrapper) HasSetInputImage() bool { - return c_.RespondsToSelector(objc.Sel("setInputImage:")) +func (c_ CMYKHalftoneObject) HasSetGrayComponentReplacement() bool { + return c_.RespondsToSelector(objc.Sel("setGrayComponentReplacement:")) } -// The image to use as an input image. [Full Topic] +// The gray component replacement value. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/cicmykhalftone/3228100-inputimage?language=objc -func (c_ CMYKHalftoneWrapper) SetInputImage(value IImage) { - objc.Call[objc.Void](c_, objc.Sel("setInputImage:"), objc.Ptr(value)) +// [Full Topic]: https://developer.apple.com/documentation/coreimage/cicmykhalftone/3228099-graycomponentreplacement?language=objc +func (c_ CMYKHalftoneObject) SetGrayComponentReplacement(value float64) { + objc.Call[objc.Void](c_, objc.Sel("setGrayComponentReplacement:"), value) } -func (c_ CMYKHalftoneWrapper) HasInputImage() bool { - return c_.RespondsToSelector(objc.Sel("inputImage")) +func (c_ CMYKHalftoneObject) HasGrayComponentReplacement() bool { + return c_.RespondsToSelector(objc.Sel("grayComponentReplacement")) } -// The image to use as an input image. [Full Topic] +// The gray component replacement value. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/cicmykhalftone/3228100-inputimage?language=objc -func (c_ CMYKHalftoneWrapper) InputImage() Image { - rv := objc.Call[Image](c_, objc.Sel("inputImage")) +// [Full Topic]: https://developer.apple.com/documentation/coreimage/cicmykhalftone/3228099-graycomponentreplacement?language=objc +func (c_ CMYKHalftoneObject) GrayComponentReplacement() float64 { + rv := objc.Call[float64](c_, objc.Sel("grayComponentReplacement")) return rv } -func (c_ CMYKHalftoneWrapper) HasSetGrayComponentReplacement() bool { - return c_.RespondsToSelector(objc.Sel("setGrayComponentReplacement:")) +func (c_ CMYKHalftoneObject) HasSetUnderColorRemoval() bool { + return c_.RespondsToSelector(objc.Sel("setUnderColorRemoval:")) } -// The gray component replacement value. [Full Topic] +// The under color removal value. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/cicmykhalftone/3228099-graycomponentreplacement?language=objc -func (c_ CMYKHalftoneWrapper) SetGrayComponentReplacement(value float64) { - objc.Call[objc.Void](c_, objc.Sel("setGrayComponentReplacement:"), value) +// [Full Topic]: https://developer.apple.com/documentation/coreimage/cicmykhalftone/3228102-undercolorremoval?language=objc +func (c_ CMYKHalftoneObject) SetUnderColorRemoval(value float64) { + objc.Call[objc.Void](c_, objc.Sel("setUnderColorRemoval:"), value) } -func (c_ CMYKHalftoneWrapper) HasGrayComponentReplacement() bool { - return c_.RespondsToSelector(objc.Sel("grayComponentReplacement")) +func (c_ CMYKHalftoneObject) HasUnderColorRemoval() bool { + return c_.RespondsToSelector(objc.Sel("underColorRemoval")) } -// The gray component replacement value. [Full Topic] +// The under color removal value. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/cicmykhalftone/3228099-graycomponentreplacement?language=objc -func (c_ CMYKHalftoneWrapper) GrayComponentReplacement() float64 { - rv := objc.Call[float64](c_, objc.Sel("grayComponentReplacement")) +// [Full Topic]: https://developer.apple.com/documentation/coreimage/cicmykhalftone/3228102-undercolorremoval?language=objc +func (c_ CMYKHalftoneObject) UnderColorRemoval() float64 { + rv := objc.Call[float64](c_, objc.Sel("underColorRemoval")) return rv } -func (c_ CMYKHalftoneWrapper) HasSetSharpness() bool { - return c_.RespondsToSelector(objc.Sel("setSharpness:")) +func (c_ CMYKHalftoneObject) HasSetInputImage() bool { + return c_.RespondsToSelector(objc.Sel("setInputImage:")) } -// The sharpness of the pattern. [Full Topic] +// The image to use as an input image. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/cicmykhalftone/3228101-sharpness?language=objc -func (c_ CMYKHalftoneWrapper) SetSharpness(value float64) { - objc.Call[objc.Void](c_, objc.Sel("setSharpness:"), value) +// [Full Topic]: https://developer.apple.com/documentation/coreimage/cicmykhalftone/3228100-inputimage?language=objc +func (c_ CMYKHalftoneObject) SetInputImage(value Image) { + objc.Call[objc.Void](c_, objc.Sel("setInputImage:"), objc.Ptr(value)) } -func (c_ CMYKHalftoneWrapper) HasSharpness() bool { - return c_.RespondsToSelector(objc.Sel("sharpness")) +func (c_ CMYKHalftoneObject) HasInputImage() bool { + return c_.RespondsToSelector(objc.Sel("inputImage")) } -// The sharpness of the pattern. [Full Topic] +// The image to use as an input image. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/cicmykhalftone/3228101-sharpness?language=objc -func (c_ CMYKHalftoneWrapper) Sharpness() float64 { - rv := objc.Call[float64](c_, objc.Sel("sharpness")) +// [Full Topic]: https://developer.apple.com/documentation/coreimage/cicmykhalftone/3228100-inputimage?language=objc +func (c_ CMYKHalftoneObject) InputImage() Image { + rv := objc.Call[Image](c_, objc.Sel("inputImage")) return rv } -func (c_ CMYKHalftoneWrapper) HasSetAngle() bool { +func (c_ CMYKHalftoneObject) HasSetAngle() bool { return c_.RespondsToSelector(objc.Sel("setAngle:")) } // The angle of the pattern. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/coreimage/cicmykhalftone/3228097-angle?language=objc -func (c_ CMYKHalftoneWrapper) SetAngle(value float64) { +func (c_ CMYKHalftoneObject) SetAngle(value float64) { objc.Call[objc.Void](c_, objc.Sel("setAngle:"), value) } -func (c_ CMYKHalftoneWrapper) HasAngle() bool { +func (c_ CMYKHalftoneObject) HasAngle() bool { return c_.RespondsToSelector(objc.Sel("angle")) } // The angle of the pattern. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/coreimage/cicmykhalftone/3228097-angle?language=objc -func (c_ CMYKHalftoneWrapper) Angle() float64 { +func (c_ CMYKHalftoneObject) Angle() float64 { rv := objc.Call[float64](c_, objc.Sel("angle")) return rv } -func (c_ CMYKHalftoneWrapper) HasSetUnderColorRemoval() bool { - return c_.RespondsToSelector(objc.Sel("setUnderColorRemoval:")) +func (c_ CMYKHalftoneObject) HasSetCenter() bool { + return c_.RespondsToSelector(objc.Sel("setCenter:")) } -// The under color removal value. [Full Topic] +// The x and y position to use as the center of the halftone pattern. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/cicmykhalftone/3228102-undercolorremoval?language=objc -func (c_ CMYKHalftoneWrapper) SetUnderColorRemoval(value float64) { - objc.Call[objc.Void](c_, objc.Sel("setUnderColorRemoval:"), value) +// [Full Topic]: https://developer.apple.com/documentation/coreimage/cicmykhalftone/3228098-center?language=objc +func (c_ CMYKHalftoneObject) SetCenter(value coregraphics.Point) { + objc.Call[objc.Void](c_, objc.Sel("setCenter:"), value) } -func (c_ CMYKHalftoneWrapper) HasUnderColorRemoval() bool { - return c_.RespondsToSelector(objc.Sel("underColorRemoval")) +func (c_ CMYKHalftoneObject) HasCenter() bool { + return c_.RespondsToSelector(objc.Sel("center")) } -// The under color removal value. [Full Topic] +// The x and y position to use as the center of the halftone pattern. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/cicmykhalftone/3228102-undercolorremoval?language=objc -func (c_ CMYKHalftoneWrapper) UnderColorRemoval() float64 { - rv := objc.Call[float64](c_, objc.Sel("underColorRemoval")) +// [Full Topic]: https://developer.apple.com/documentation/coreimage/cicmykhalftone/3228098-center?language=objc +func (c_ CMYKHalftoneObject) Center() coregraphics.Point { + rv := objc.Call[coregraphics.Point](c_, objc.Sel("center")) return rv } -func (c_ CMYKHalftoneWrapper) HasSetCenter() bool { - return c_.RespondsToSelector(objc.Sel("setCenter:")) +func (c_ CMYKHalftoneObject) HasSetSharpness() bool { + return c_.RespondsToSelector(objc.Sel("setSharpness:")) } -// The x and y position to use as the center of the halftone pattern. [Full Topic] +// The sharpness of the pattern. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/cicmykhalftone/3228098-center?language=objc -func (c_ CMYKHalftoneWrapper) SetCenter(value coregraphics.Point) { - objc.Call[objc.Void](c_, objc.Sel("setCenter:"), value) +// [Full Topic]: https://developer.apple.com/documentation/coreimage/cicmykhalftone/3228101-sharpness?language=objc +func (c_ CMYKHalftoneObject) SetSharpness(value float64) { + objc.Call[objc.Void](c_, objc.Sel("setSharpness:"), value) } -func (c_ CMYKHalftoneWrapper) HasCenter() bool { - return c_.RespondsToSelector(objc.Sel("center")) +func (c_ CMYKHalftoneObject) HasSharpness() bool { + return c_.RespondsToSelector(objc.Sel("sharpness")) } -// The x and y position to use as the center of the halftone pattern. [Full Topic] +// The sharpness of the pattern. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/cicmykhalftone/3228098-center?language=objc -func (c_ CMYKHalftoneWrapper) Center() coregraphics.Point { - rv := objc.Call[coregraphics.Point](c_, objc.Sel("center")) +// [Full Topic]: https://developer.apple.com/documentation/coreimage/cicmykhalftone/3228101-sharpness?language=objc +func (c_ CMYKHalftoneObject) Sharpness() float64 { + rv := objc.Call[float64](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 float64) { + 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() float64 { + rv := objc.Call[float64](c_, objc.Sel("width")) return rv } diff --git a/macos/coreimage/code128_barcode_generator.gen.go b/macos/coreimage/code128_barcode_generator_protocol.gen.go similarity index 71% rename from macos/coreimage/code128_barcode_generator.gen.go rename to macos/coreimage/code128_barcode_generator_protocol.gen.go index f0adeb34..ee1fa37d 100644 --- a/macos/coreimage/code128_barcode_generator.gen.go +++ b/macos/coreimage/code128_barcode_generator_protocol.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package coreimage @@ -10,14 +10,6 @@ import ( // // [Full Topic]: https://developer.apple.com/documentation/coreimage/cicode128barcodegenerator?language=objc type PCode128BarcodeGenerator interface { - // optional - SetQuietSpace(value float64) - HasSetQuietSpace() bool - - // optional - QuietSpace() float64 - HasQuietSpace() bool - // optional SetBarcodeHeight(value float64) HasSetBarcodeHeight() bool @@ -26,6 +18,14 @@ type PCode128BarcodeGenerator interface { BarcodeHeight() float64 HasBarcodeHeight() bool + // optional + SetQuietSpace(value float64) + HasSetQuietSpace() bool + + // optional + QuietSpace() float64 + HasQuietSpace() bool + // optional SetMessage(value []byte) HasSetMessage() bool @@ -35,76 +35,79 @@ type PCode128BarcodeGenerator interface { HasMessage() bool } -// A concrete type wrapper for the [PCode128BarcodeGenerator] protocol. -type Code128BarcodeGeneratorWrapper struct { +// ensure impl type implements protocol interface +var _ PCode128BarcodeGenerator = (*Code128BarcodeGeneratorObject)(nil) + +// A concrete type for the [PCode128BarcodeGenerator] protocol. +type Code128BarcodeGeneratorObject struct { objc.Object } -func (c_ Code128BarcodeGeneratorWrapper) HasSetQuietSpace() bool { - return c_.RespondsToSelector(objc.Sel("setQuietSpace:")) +func (c_ Code128BarcodeGeneratorObject) HasSetBarcodeHeight() bool { + return c_.RespondsToSelector(objc.Sel("setBarcodeHeight:")) } -// The number of empty white pixels that should surround the barcode. [Full Topic] +// The height, in pixels, of the generated barcode. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/cicode128barcodegenerator/3228118-quietspace?language=objc -func (c_ Code128BarcodeGeneratorWrapper) SetQuietSpace(value float64) { - objc.Call[objc.Void](c_, objc.Sel("setQuietSpace:"), value) +// [Full Topic]: https://developer.apple.com/documentation/coreimage/cicode128barcodegenerator/3228116-barcodeheight?language=objc +func (c_ Code128BarcodeGeneratorObject) SetBarcodeHeight(value float64) { + objc.Call[objc.Void](c_, objc.Sel("setBarcodeHeight:"), value) } -func (c_ Code128BarcodeGeneratorWrapper) HasQuietSpace() bool { - return c_.RespondsToSelector(objc.Sel("quietSpace")) +func (c_ Code128BarcodeGeneratorObject) HasBarcodeHeight() bool { + return c_.RespondsToSelector(objc.Sel("barcodeHeight")) } -// The number of empty white pixels that should surround the barcode. [Full Topic] +// The height, in pixels, of the generated barcode. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/cicode128barcodegenerator/3228118-quietspace?language=objc -func (c_ Code128BarcodeGeneratorWrapper) QuietSpace() float64 { - rv := objc.Call[float64](c_, objc.Sel("quietSpace")) +// [Full Topic]: https://developer.apple.com/documentation/coreimage/cicode128barcodegenerator/3228116-barcodeheight?language=objc +func (c_ Code128BarcodeGeneratorObject) BarcodeHeight() float64 { + rv := objc.Call[float64](c_, objc.Sel("barcodeHeight")) return rv } -func (c_ Code128BarcodeGeneratorWrapper) HasSetBarcodeHeight() bool { - return c_.RespondsToSelector(objc.Sel("setBarcodeHeight:")) +func (c_ Code128BarcodeGeneratorObject) HasSetQuietSpace() bool { + return c_.RespondsToSelector(objc.Sel("setQuietSpace:")) } -// The height, in pixels, of the generated barcode. [Full Topic] +// The number of empty white pixels that should surround the barcode. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/cicode128barcodegenerator/3228116-barcodeheight?language=objc -func (c_ Code128BarcodeGeneratorWrapper) SetBarcodeHeight(value float64) { - objc.Call[objc.Void](c_, objc.Sel("setBarcodeHeight:"), value) +// [Full Topic]: https://developer.apple.com/documentation/coreimage/cicode128barcodegenerator/3228118-quietspace?language=objc +func (c_ Code128BarcodeGeneratorObject) SetQuietSpace(value float64) { + objc.Call[objc.Void](c_, objc.Sel("setQuietSpace:"), value) } -func (c_ Code128BarcodeGeneratorWrapper) HasBarcodeHeight() bool { - return c_.RespondsToSelector(objc.Sel("barcodeHeight")) +func (c_ Code128BarcodeGeneratorObject) HasQuietSpace() bool { + return c_.RespondsToSelector(objc.Sel("quietSpace")) } -// The height, in pixels, of the generated barcode. [Full Topic] +// The number of empty white pixels that should surround the barcode. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/cicode128barcodegenerator/3228116-barcodeheight?language=objc -func (c_ Code128BarcodeGeneratorWrapper) BarcodeHeight() float64 { - rv := objc.Call[float64](c_, objc.Sel("barcodeHeight")) +// [Full Topic]: https://developer.apple.com/documentation/coreimage/cicode128barcodegenerator/3228118-quietspace?language=objc +func (c_ Code128BarcodeGeneratorObject) QuietSpace() float64 { + rv := objc.Call[float64](c_, objc.Sel("quietSpace")) return rv } -func (c_ Code128BarcodeGeneratorWrapper) HasSetMessage() bool { +func (c_ Code128BarcodeGeneratorObject) HasSetMessage() bool { return c_.RespondsToSelector(objc.Sel("setMessage:")) } // The message to encode in the Code 128 barcode. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/coreimage/cicode128barcodegenerator/3228117-message?language=objc -func (c_ Code128BarcodeGeneratorWrapper) SetMessage(value []byte) { +func (c_ Code128BarcodeGeneratorObject) SetMessage(value []byte) { objc.Call[objc.Void](c_, objc.Sel("setMessage:"), value) } -func (c_ Code128BarcodeGeneratorWrapper) HasMessage() bool { +func (c_ Code128BarcodeGeneratorObject) HasMessage() bool { return c_.RespondsToSelector(objc.Sel("message")) } // The message to encode in the Code 128 barcode. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/coreimage/cicode128barcodegenerator/3228117-message?language=objc -func (c_ Code128BarcodeGeneratorWrapper) Message() []byte { +func (c_ Code128BarcodeGeneratorObject) Message() []byte { rv := objc.Call[[]byte](c_, objc.Sel("message")) return rv } diff --git a/macos/coreimage/color.gen.go b/macos/coreimage/color.gen.go index 5070deb8..5b32d0d1 100644 --- a/macos/coreimage/color.gen.go +++ b/macos/coreimage/color.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package coreimage @@ -19,12 +19,12 @@ type _ColorClass struct { // An interface definition for the [Color] class. type IColor interface { objc.IObject - Red() float64 - Green() float64 - ColorSpace() coregraphics.ColorSpaceRef - Blue() float64 Alpha() float64 + Blue() float64 + Green() float64 + Red() float64 Components() *float64 + ColorSpace() coregraphics.ColorSpaceRef NumberOfComponents() uint StringRepresentation() string } @@ -42,6 +42,30 @@ 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 @@ -54,18 +78,16 @@ func Color_ColorWithCGColor(c coregraphics.ColorRef) Color { return ColorClass.ColorWithCGColor(c) } -func (c_ Color) InitWithColor(color objc.IObject) Color { - rv := objc.Call[Color](c_, objc.Sel("initWithColor:"), objc.Ptr(color)) +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) return rv } -// Initializes a Core Image color object using a UIKit (or AppKit) color object. [Full Topic] +// Creates a color object using the specified RGBA color component values. [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 +// [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) } func (c_ Color) InitWithCGColor(c coregraphics.ColorRef) Color { @@ -82,16 +104,18 @@ func NewColorWithCGColor(c coregraphics.ColorRef) Color { return instance } -func (cc _ColorClass) ColorWithString(representation string) Color { - rv := objc.Call[Color](cc, objc.Sel("colorWithString:"), representation) +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) return rv } -// Creates a color object using the RGBA color component values specified by a string. [Full Topic] +// Initializes a Core Image color object with the specified red, green, blue, and alpha component values. [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) +// [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 } func (cc _ColorClass) ColorWithRedGreenBlue(r float64, g float64, b float64) Color { @@ -120,81 +144,94 @@ func NewColorWithRedGreenBlue(r float64, g float64, b float64) Color { return instance } -func (cc _ColorClass) Alloc() Color { - rv := objc.Call[Color](cc, objc.Sel("alloc")) +func (c_ Color) InitWithColor(color objc.IObject) Color { + rv := objc.Call[Color](c_, objc.Sel("initWithColor:"), objc.Ptr(color)) return rv } -func Color_Alloc() Color { - return ColorClass.Alloc() +// 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 (cc _ColorClass) New() Color { - rv := objc.Call[Color](cc, objc.Sel("new")) - rv.Autorelease() +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) return rv } -func NewColor() Color { - return ColorClass.New() +// 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 (c_ Color) Init() Color { - rv := objc.Call[Color](c_, objc.Sel("init")) +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) return rv } -// Returns a color object whose RGB values are all 1.0 and whose alpha value is 1.0. [Full Topic] +// Initializes a Core Image color object with the specified red, green, and blue component values as measured in the specified color space. [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/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) return rv } -// Returns a color object whose RGB values are all 1.0 and whose alpha value is 1.0. [Full Topic] +// Initializes a Core Image color object with the specified red, green, and blue component values as measured in the specified color space. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/cicolor/1643571-whitecolor?language=objc -func Color_WhiteColor() Color { - return ColorClass.WhiteColor() +// [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 } -// 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")) +func (cc _ColorClass) Alloc() Color { + rv := objc.Call[Color](cc, objc.Sel("alloc")) 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] -// -// [Full Topic]: https://developer.apple.com/documentation/coreimage/cicolor/1643574-magentacolor?language=objc -func Color_MagentaColor() Color { - return ColorClass.MagentaColor() +func (cc _ColorClass) New() Color { + rv := objc.Call[Color](cc, objc.Sel("new")) + rv.Autorelease() + return rv } -// 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")) +func NewColor() Color { + return ColorClass.New() +} + +func (c_ Color) Init() Color { + rv := objc.Call[Color](c_, objc.Sel("init")) return rv } -// Returns a color object whose RGB values are all 0.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/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/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 all 0.0 and whose alpha value is 1.0. [Full Topic] +// The unpremultiplied blue component of 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/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 all 0.5 and whose alpha value is 1.0. [Full Topic] @@ -212,73 +249,66 @@ func Color_GrayColor() Color { return ColorClass.GrayColor() } -// Returns a color object whose RGB and alpha values are all 0.0. [Full Topic] +// The unpremultiplied green component 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/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 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 0.0, 1.0, and 0.0 and whose alpha value is 1.0. [Full Topic] +// The unpremultiplied red component of the color. [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")) +// [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 } -// Returns a color object whose RGB values are 0.0, 1.0, and 0.0 and whose alpha value is 1.0. [Full Topic] +// The color components of the color. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/cicolor/1643580-greencolor?language=objc -func Color_GreenColor() Color { - return ColorClass.GreenColor() +// [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 values are 1.0, 1.0, and 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/1643582-yellowcolor?language=objc -func (cc _ColorClass) YellowColor() Color { - rv := objc.Call[Color](cc, objc.Sel("yellowColor")) +// [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 } -// Returns a color object whose RGB values are 1.0, 1.0, and 0.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/1643582-yellowcolor?language=objc -func Color_YellowColor() Color { - return ColorClass.YellowColor() +// [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 } -// The unpremultiplied green component of 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/1437607-green?language=objc -func (c_ Color) Green() float64 { - rv := objc.Call[float64](c_, objc.Sel("green")) - return rv +// [Full Topic]: https://developer.apple.com/documentation/coreimage/cicolor/1643581-cyancolor?language=objc +func Color_CyanColor() Color { + return ColorClass.CyanColor() } -// The Quartz 2D color space associated with 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/1437917-colorspace?language=objc -func (c_ Color) ColorSpace() coregraphics.ColorSpaceRef { - rv := objc.Call[coregraphics.ColorSpaceRef](c_, objc.Sel("colorSpace")) +// [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 1.0, 0.0, and 0.0 and whose alpha value is 1.0. [Full Topic] @@ -296,27 +326,27 @@ func Color_RedColor() Color { return ColorClass.RedColor() } -// The alpha value of the color. [Full Topic] +// 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/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/1643574-magentacolor?language=objc +func (cc _ColorClass) MagentaColor() Color { + rv := objc.Call[Color](cc, objc.Sel("magentaColor")) 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, 0.0, and 1.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")) - return rv +// [Full Topic]: https://developer.apple.com/documentation/coreimage/cicolor/1643574-magentacolor?language=objc +func Color_MagentaColor() Color { + return ColorClass.MagentaColor() } -// 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 the number of color components in the color. [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/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 0.0, 0.0, and 1.0 and whose alpha value is 1.0. [Full Topic] @@ -334,22 +364,51 @@ func Color_BlueColor() Color { return ColorClass.BlueColor() } -// 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 } -// Returns the number of color components in 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/1438151-numberofcomponents?language=objc -func (c_ Color) NumberOfComponents() uint { - rv := objc.Call[uint](c_, objc.Sel("numberOfComponents")) +// [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] +// +// [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 +} + +// 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] +// +// [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 } +// 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 @@ -357,3 +416,18 @@ 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.gen.go b/macos/coreimage/color_absolute_difference_protocol.gen.go similarity index 65% rename from macos/coreimage/color_absolute_difference.gen.go rename to macos/coreimage/color_absolute_difference_protocol.gen.go index 695205d7..99c6cd87 100644 --- a/macos/coreimage/color_absolute_difference.gen.go +++ b/macos/coreimage/color_absolute_difference_protocol.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package coreimage @@ -11,69 +11,72 @@ import ( // [Full Topic]: https://developer.apple.com/documentation/coreimage/cicolorabsolutedifference?language=objc type PColorAbsoluteDifference interface { // optional - SetInputImage(value Image) - HasSetInputImage() bool + SetInputImage2(value Image) + HasSetInputImage2() bool // optional - InputImage() IImage - HasInputImage() bool + InputImage2() Image + HasInputImage2() bool // optional - SetInputImage2(value Image) - HasSetInputImage2() bool + SetInputImage(value Image) + HasSetInputImage() bool // optional - InputImage2() IImage - HasInputImage2() bool + InputImage() Image + HasInputImage() bool } -// A concrete type wrapper for the [PColorAbsoluteDifference] protocol. -type ColorAbsoluteDifferenceWrapper struct { +// ensure impl type implements protocol interface +var _ PColorAbsoluteDifference = (*ColorAbsoluteDifferenceObject)(nil) + +// A concrete type for the [PColorAbsoluteDifference] protocol. +type ColorAbsoluteDifferenceObject struct { objc.Object } -func (c_ ColorAbsoluteDifferenceWrapper) 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_ ColorAbsoluteDifferenceWrapper) SetInputImage(value IImage) { - objc.Call[objc.Void](c_, objc.Sel("setInputImage:"), objc.Ptr(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:"), objc.Ptr(value)) } -func (c_ ColorAbsoluteDifferenceWrapper) 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_ ColorAbsoluteDifferenceWrapper) 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 } -func (c_ ColorAbsoluteDifferenceWrapper) 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_ ColorAbsoluteDifferenceWrapper) SetInputImage2(value IImage) { - objc.Call[objc.Void](c_, objc.Sel("setInputImage2:"), objc.Ptr(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:"), objc.Ptr(value)) } -func (c_ ColorAbsoluteDifferenceWrapper) 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_ ColorAbsoluteDifferenceWrapper) 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 } diff --git a/macos/coreimage/color_clamp.gen.go b/macos/coreimage/color_clamp_protocol.gen.go similarity index 72% rename from macos/coreimage/color_clamp.gen.go rename to macos/coreimage/color_clamp_protocol.gen.go index b8a23790..4f8c3302 100644 --- a/macos/coreimage/color_clamp.gen.go +++ b/macos/coreimage/color_clamp_protocol.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package coreimage @@ -11,100 +11,103 @@ import ( // [Full Topic]: https://developer.apple.com/documentation/coreimage/cicolorclamp?language=objc type PColorClamp interface { // optional - SetInputImage(value Image) - HasSetInputImage() bool + SetMinComponents(value Vector) + HasSetMinComponents() bool // optional - InputImage() IImage - HasInputImage() bool + MinComponents() Vector + HasMinComponents() bool // optional SetMaxComponents(value Vector) HasSetMaxComponents() bool // optional - MaxComponents() IVector + MaxComponents() Vector HasMaxComponents() bool // optional - SetMinComponents(value Vector) - HasSetMinComponents() bool + SetInputImage(value Image) + HasSetInputImage() bool // optional - MinComponents() IVector - HasMinComponents() bool + InputImage() Image + HasInputImage() bool } -// A concrete type wrapper for the [PColorClamp] protocol. -type ColorClampWrapper struct { +// ensure impl type implements protocol interface +var _ PColorClamp = (*ColorClampObject)(nil) + +// A concrete type for the [PColorClamp] protocol. +type ColorClampObject struct { objc.Object } -func (c_ ColorClampWrapper) 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_ ColorClampWrapper) SetInputImage(value IImage) { - objc.Call[objc.Void](c_, objc.Sel("setInputImage:"), objc.Ptr(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:"), objc.Ptr(value)) } -func (c_ ColorClampWrapper) 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_ ColorClampWrapper) 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 } -func (c_ ColorClampWrapper) HasSetMaxComponents() bool { +func (c_ ColorClampObject) HasSetMaxComponents() bool { return c_.RespondsToSelector(objc.Sel("setMaxComponents:")) } // A vector containing the higher clamping values. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/coreimage/cicolorclamp/3228121-maxcomponents?language=objc -func (c_ ColorClampWrapper) SetMaxComponents(value IVector) { +func (c_ ColorClampObject) SetMaxComponents(value Vector) { objc.Call[objc.Void](c_, objc.Sel("setMaxComponents:"), objc.Ptr(value)) } -func (c_ ColorClampWrapper) HasMaxComponents() bool { +func (c_ ColorClampObject) HasMaxComponents() bool { return c_.RespondsToSelector(objc.Sel("maxComponents")) } // A vector containing the higher clamping values. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/coreimage/cicolorclamp/3228121-maxcomponents?language=objc -func (c_ ColorClampWrapper) MaxComponents() Vector { +func (c_ ColorClampObject) MaxComponents() Vector { rv := objc.Call[Vector](c_, objc.Sel("maxComponents")) return rv } -func (c_ ColorClampWrapper) 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_ ColorClampWrapper) SetMinComponents(value IVector) { - objc.Call[objc.Void](c_, objc.Sel("setMinComponents:"), objc.Ptr(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:"), objc.Ptr(value)) } -func (c_ ColorClampWrapper) 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_ ColorClampWrapper) 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 } diff --git a/macos/coreimage/color_controls.gen.go b/macos/coreimage/color_controls_protocol.gen.go similarity index 73% rename from macos/coreimage/color_controls.gen.go rename to macos/coreimage/color_controls_protocol.gen.go index f2d5e06c..8683bc60 100644 --- a/macos/coreimage/color_controls.gen.go +++ b/macos/coreimage/color_controls_protocol.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package coreimage @@ -15,17 +15,9 @@ type PColorControls interface { HasSetInputImage() bool // optional - InputImage() IImage + InputImage() Image HasInputImage() bool - // optional - SetSaturation(value float64) - HasSetSaturation() bool - - // optional - Saturation() float64 - HasSaturation() bool - // optional SetContrast(value float64) HasSetContrast() bool @@ -41,101 +33,112 @@ type PColorControls interface { // optional Brightness() float64 HasBrightness() bool + + // optional + SetSaturation(value float64) + HasSetSaturation() bool + + // optional + Saturation() float64 + HasSaturation() bool } -// A concrete type wrapper for the [PColorControls] protocol. -type ColorControlsWrapper struct { +// ensure impl type implements protocol interface +var _ PColorControls = (*ColorControlsObject)(nil) + +// A concrete type for the [PColorControls] protocol. +type ColorControlsObject struct { objc.Object } -func (c_ ColorControlsWrapper) HasSetInputImage() bool { +func (c_ ColorControlsObject) 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/cicolorcontrols/3228126-inputimage?language=objc -func (c_ ColorControlsWrapper) SetInputImage(value IImage) { +func (c_ ColorControlsObject) SetInputImage(value Image) { objc.Call[objc.Void](c_, objc.Sel("setInputImage:"), objc.Ptr(value)) } -func (c_ ColorControlsWrapper) HasInputImage() bool { +func (c_ ColorControlsObject) 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/cicolorcontrols/3228126-inputimage?language=objc -func (c_ ColorControlsWrapper) InputImage() Image { +func (c_ ColorControlsObject) InputImage() Image { rv := objc.Call[Image](c_, objc.Sel("inputImage")) return rv } -func (c_ ColorControlsWrapper) 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_ ColorControlsWrapper) SetSaturation(value float64) { - objc.Call[objc.Void](c_, objc.Sel("setSaturation:"), value) -} - -func (c_ ColorControlsWrapper) 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_ ColorControlsWrapper) Saturation() float64 { - rv := objc.Call[float64](c_, objc.Sel("saturation")) - return rv -} - -func (c_ ColorControlsWrapper) HasSetContrast() bool { +func (c_ ColorControlsObject) HasSetContrast() bool { return c_.RespondsToSelector(objc.Sel("setContrast:")) } // The amount of contrast to apply. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/coreimage/cicolorcontrols/3228125-contrast?language=objc -func (c_ ColorControlsWrapper) SetContrast(value float64) { +func (c_ ColorControlsObject) SetContrast(value float64) { objc.Call[objc.Void](c_, objc.Sel("setContrast:"), value) } -func (c_ ColorControlsWrapper) HasContrast() bool { +func (c_ ColorControlsObject) HasContrast() bool { return c_.RespondsToSelector(objc.Sel("contrast")) } // The amount of contrast to apply. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/coreimage/cicolorcontrols/3228125-contrast?language=objc -func (c_ ColorControlsWrapper) Contrast() float64 { +func (c_ ColorControlsObject) Contrast() float64 { rv := objc.Call[float64](c_, objc.Sel("contrast")) return rv } -func (c_ ColorControlsWrapper) HasSetBrightness() bool { +func (c_ ColorControlsObject) HasSetBrightness() bool { return c_.RespondsToSelector(objc.Sel("setBrightness:")) } // The amount of brightness to apply. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/coreimage/cicolorcontrols/3228124-brightness?language=objc -func (c_ ColorControlsWrapper) SetBrightness(value float64) { +func (c_ ColorControlsObject) SetBrightness(value float64) { objc.Call[objc.Void](c_, objc.Sel("setBrightness:"), value) } -func (c_ ColorControlsWrapper) HasBrightness() bool { +func (c_ ColorControlsObject) HasBrightness() bool { return c_.RespondsToSelector(objc.Sel("brightness")) } // The amount of brightness to apply. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/coreimage/cicolorcontrols/3228124-brightness?language=objc -func (c_ ColorControlsWrapper) Brightness() float64 { +func (c_ ColorControlsObject) Brightness() float64 { rv := objc.Call[float64](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 float64) { + 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() float64 { + rv := objc.Call[float64](c_, objc.Sel("saturation")) + return rv +} diff --git a/macos/coreimage/color_cross_polynomial.gen.go b/macos/coreimage/color_cross_polynomial_protocol.gen.go similarity index 71% rename from macos/coreimage/color_cross_polynomial.gen.go rename to macos/coreimage/color_cross_polynomial_protocol.gen.go index 94a23430..24eef9fc 100644 --- a/macos/coreimage/color_cross_polynomial.gen.go +++ b/macos/coreimage/color_cross_polynomial_protocol.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package coreimage @@ -11,131 +11,134 @@ import ( // [Full Topic]: https://developer.apple.com/documentation/coreimage/cicolorcrosspolynomial?language=objc type PColorCrossPolynomial interface { // optional - SetRedCoefficients(value Vector) - HasSetRedCoefficients() bool + SetBlueCoefficients(value Vector) + HasSetBlueCoefficients() bool // optional - RedCoefficients() IVector - HasRedCoefficients() bool + BlueCoefficients() Vector + HasBlueCoefficients() bool // optional - SetInputImage(value Image) - HasSetInputImage() bool + SetRedCoefficients(value Vector) + HasSetRedCoefficients() bool // optional - InputImage() IImage - HasInputImage() bool + RedCoefficients() Vector + HasRedCoefficients() bool // optional SetGreenCoefficients(value Vector) HasSetGreenCoefficients() bool // optional - GreenCoefficients() IVector + GreenCoefficients() Vector HasGreenCoefficients() bool // optional - SetBlueCoefficients(value Vector) - HasSetBlueCoefficients() bool + SetInputImage(value Image) + HasSetInputImage() bool // optional - BlueCoefficients() IVector - HasBlueCoefficients() bool + InputImage() Image + HasInputImage() bool } -// A concrete type wrapper for the [PColorCrossPolynomial] protocol. -type ColorCrossPolynomialWrapper struct { +// ensure impl type implements protocol interface +var _ PColorCrossPolynomial = (*ColorCrossPolynomialObject)(nil) + +// A concrete type for the [PColorCrossPolynomial] protocol. +type ColorCrossPolynomialObject struct { objc.Object } -func (c_ ColorCrossPolynomialWrapper) HasSetRedCoefficients() bool { - return c_.RespondsToSelector(objc.Sel("setRedCoefficients:")) +func (c_ ColorCrossPolynomialObject) HasSetBlueCoefficients() bool { + return c_.RespondsToSelector(objc.Sel("setBlueCoefficients:")) } -// Polynomial coefficients for the red channel. [Full Topic] +// Polynomial coefficients for the blue channel. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/cicolorcrosspolynomial/3228132-redcoefficients?language=objc -func (c_ ColorCrossPolynomialWrapper) SetRedCoefficients(value IVector) { - objc.Call[objc.Void](c_, objc.Sel("setRedCoefficients:"), objc.Ptr(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:"), objc.Ptr(value)) } -func (c_ ColorCrossPolynomialWrapper) HasRedCoefficients() bool { - return c_.RespondsToSelector(objc.Sel("redCoefficients")) +func (c_ ColorCrossPolynomialObject) HasBlueCoefficients() bool { + return c_.RespondsToSelector(objc.Sel("blueCoefficients")) } -// Polynomial coefficients for the red channel. [Full Topic] +// Polynomial coefficients for the blue channel. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/cicolorcrosspolynomial/3228132-redcoefficients?language=objc -func (c_ ColorCrossPolynomialWrapper) RedCoefficients() Vector { - rv := objc.Call[Vector](c_, objc.Sel("redCoefficients")) +// [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_ ColorCrossPolynomialWrapper) HasSetInputImage() bool { - return c_.RespondsToSelector(objc.Sel("setInputImage:")) +func (c_ ColorCrossPolynomialObject) HasSetRedCoefficients() bool { + return c_.RespondsToSelector(objc.Sel("setRedCoefficients:")) } -// The image to use as an input image. [Full Topic] +// Polynomial coefficients for the red channel. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/cicolorcrosspolynomial/3228131-inputimage?language=objc -func (c_ ColorCrossPolynomialWrapper) SetInputImage(value IImage) { - objc.Call[objc.Void](c_, objc.Sel("setInputImage:"), objc.Ptr(value)) +// [Full Topic]: https://developer.apple.com/documentation/coreimage/cicolorcrosspolynomial/3228132-redcoefficients?language=objc +func (c_ ColorCrossPolynomialObject) SetRedCoefficients(value Vector) { + objc.Call[objc.Void](c_, objc.Sel("setRedCoefficients:"), objc.Ptr(value)) } -func (c_ ColorCrossPolynomialWrapper) HasInputImage() bool { - return c_.RespondsToSelector(objc.Sel("inputImage")) +func (c_ ColorCrossPolynomialObject) HasRedCoefficients() bool { + return c_.RespondsToSelector(objc.Sel("redCoefficients")) } -// The image to use as an input image. [Full Topic] +// Polynomial coefficients for the red channel. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/cicolorcrosspolynomial/3228131-inputimage?language=objc -func (c_ ColorCrossPolynomialWrapper) InputImage() Image { - rv := objc.Call[Image](c_, objc.Sel("inputImage")) +// [Full Topic]: https://developer.apple.com/documentation/coreimage/cicolorcrosspolynomial/3228132-redcoefficients?language=objc +func (c_ ColorCrossPolynomialObject) RedCoefficients() Vector { + rv := objc.Call[Vector](c_, objc.Sel("redCoefficients")) return rv } -func (c_ ColorCrossPolynomialWrapper) HasSetGreenCoefficients() bool { +func (c_ ColorCrossPolynomialObject) HasSetGreenCoefficients() bool { return c_.RespondsToSelector(objc.Sel("setGreenCoefficients:")) } // Polynomial coefficients for the green channel. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/coreimage/cicolorcrosspolynomial/3228130-greencoefficients?language=objc -func (c_ ColorCrossPolynomialWrapper) SetGreenCoefficients(value IVector) { +func (c_ ColorCrossPolynomialObject) SetGreenCoefficients(value Vector) { objc.Call[objc.Void](c_, objc.Sel("setGreenCoefficients:"), objc.Ptr(value)) } -func (c_ ColorCrossPolynomialWrapper) HasGreenCoefficients() bool { +func (c_ ColorCrossPolynomialObject) HasGreenCoefficients() bool { return c_.RespondsToSelector(objc.Sel("greenCoefficients")) } // Polynomial coefficients for the green channel. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/coreimage/cicolorcrosspolynomial/3228130-greencoefficients?language=objc -func (c_ ColorCrossPolynomialWrapper) GreenCoefficients() Vector { +func (c_ ColorCrossPolynomialObject) GreenCoefficients() Vector { rv := objc.Call[Vector](c_, objc.Sel("greenCoefficients")) return rv } -func (c_ ColorCrossPolynomialWrapper) HasSetBlueCoefficients() bool { - return c_.RespondsToSelector(objc.Sel("setBlueCoefficients:")) +func (c_ ColorCrossPolynomialObject) HasSetInputImage() bool { + return c_.RespondsToSelector(objc.Sel("setInputImage:")) } -// Polynomial coefficients for the blue channel. [Full Topic] +// The image to use as an input image. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/cicolorcrosspolynomial/3228129-bluecoefficients?language=objc -func (c_ ColorCrossPolynomialWrapper) SetBlueCoefficients(value IVector) { - objc.Call[objc.Void](c_, objc.Sel("setBlueCoefficients:"), objc.Ptr(value)) +// [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:"), objc.Ptr(value)) } -func (c_ ColorCrossPolynomialWrapper) HasBlueCoefficients() bool { - return c_.RespondsToSelector(objc.Sel("blueCoefficients")) +func (c_ ColorCrossPolynomialObject) HasInputImage() bool { + return c_.RespondsToSelector(objc.Sel("inputImage")) } -// Polynomial coefficients for the blue channel. [Full Topic] +// The image to use as an input image. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/cicolorcrosspolynomial/3228129-bluecoefficients?language=objc -func (c_ ColorCrossPolynomialWrapper) BlueCoefficients() Vector { - rv := objc.Call[Vector](c_, objc.Sel("blueCoefficients")) +// [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 } diff --git a/macos/coreimage/color_cube.gen.go b/macos/coreimage/color_cube_protocol.gen.go similarity index 74% rename from macos/coreimage/color_cube.gen.go rename to macos/coreimage/color_cube_protocol.gen.go index 9a923180..6dc7cb93 100644 --- a/macos/coreimage/color_cube.gen.go +++ b/macos/coreimage/color_cube_protocol.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package coreimage @@ -11,12 +11,12 @@ import ( // [Full Topic]: https://developer.apple.com/documentation/coreimage/cicolorcube?language=objc type PColorCube interface { // optional - SetInputImage(value Image) - HasSetInputImage() bool + SetCubeData(value []byte) + HasSetCubeData() bool // optional - InputImage() IImage - HasInputImage() bool + CubeData() []byte + HasCubeData() bool // optional SetCubeDimension(value float64) @@ -27,84 +27,87 @@ type PColorCube interface { HasCubeDimension() bool // optional - SetCubeData(value []byte) - HasSetCubeData() bool + SetInputImage(value Image) + HasSetInputImage() bool // optional - CubeData() []byte - HasCubeData() bool + InputImage() Image + HasInputImage() bool } -// A concrete type wrapper for the [PColorCube] protocol. -type ColorCubeWrapper struct { +// ensure impl type implements protocol interface +var _ PColorCube = (*ColorCubeObject)(nil) + +// A concrete type for the [PColorCube] protocol. +type ColorCubeObject struct { objc.Object } -func (c_ ColorCubeWrapper) 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_ ColorCubeWrapper) SetInputImage(value IImage) { - objc.Call[objc.Void](c_, objc.Sel("setInputImage:"), objc.Ptr(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_ ColorCubeWrapper) 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_ ColorCubeWrapper) 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 } -func (c_ ColorCubeWrapper) HasSetCubeDimension() bool { +func (c_ ColorCubeObject) HasSetCubeDimension() bool { return c_.RespondsToSelector(objc.Sel("setCubeDimension:")) } // The length, in texels, of each side of the cube texture. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/coreimage/cicolorcube/3228135-cubedimension?language=objc -func (c_ ColorCubeWrapper) SetCubeDimension(value float64) { +func (c_ ColorCubeObject) SetCubeDimension(value float64) { objc.Call[objc.Void](c_, objc.Sel("setCubeDimension:"), value) } -func (c_ ColorCubeWrapper) HasCubeDimension() bool { +func (c_ ColorCubeObject) HasCubeDimension() bool { return c_.RespondsToSelector(objc.Sel("cubeDimension")) } // The length, in texels, of each side of the cube texture. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/coreimage/cicolorcube/3228135-cubedimension?language=objc -func (c_ ColorCubeWrapper) CubeDimension() float64 { +func (c_ ColorCubeObject) CubeDimension() float64 { rv := objc.Call[float64](c_, objc.Sel("cubeDimension")) return rv } -func (c_ ColorCubeWrapper) 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_ ColorCubeWrapper) 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:"), objc.Ptr(value)) } -func (c_ ColorCubeWrapper) 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_ ColorCubeWrapper) 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 } diff --git a/macos/coreimage/color_cube_with_color_space.gen.go b/macos/coreimage/color_cube_with_color_space_protocol.gen.go similarity index 71% rename from macos/coreimage/color_cube_with_color_space.gen.go rename to macos/coreimage/color_cube_with_color_space_protocol.gen.go index 6c8f513a..60947a92 100644 --- a/macos/coreimage/color_cube_with_color_space.gen.go +++ b/macos/coreimage/color_cube_with_color_space_protocol.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package coreimage @@ -11,12 +11,20 @@ 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 // optional - InputImage() IImage + InputImage() Image HasInputImage() bool // optional @@ -27,14 +35,6 @@ type PColorCubeWithColorSpace interface { CubeDimension() float64 HasCubeDimension() bool - // optional - SetCubeData(value []byte) - HasSetCubeData() bool - - // optional - CubeData() []byte - HasCubeData() bool - // optional SetColorSpace(value coregraphics.ColorSpaceRef) HasSetColorSpace() bool @@ -44,99 +44,102 @@ type PColorCubeWithColorSpace interface { HasColorSpace() bool } -// A concrete type wrapper for the [PColorCubeWithColorSpace] protocol. -type ColorCubeWithColorSpaceWrapper struct { +// ensure impl type implements protocol interface +var _ PColorCubeWithColorSpace = (*ColorCubeWithColorSpaceObject)(nil) + +// A concrete type for the [PColorCubeWithColorSpace] protocol. +type ColorCubeWithColorSpaceObject struct { objc.Object } -func (c_ ColorCubeWithColorSpaceWrapper) HasSetInputImage() bool { +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:")) } // The image to use as an input image. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/coreimage/cicolorcubewithcolorspace/3228141-inputimage?language=objc -func (c_ ColorCubeWithColorSpaceWrapper) SetInputImage(value IImage) { +func (c_ ColorCubeWithColorSpaceObject) SetInputImage(value Image) { objc.Call[objc.Void](c_, objc.Sel("setInputImage:"), objc.Ptr(value)) } -func (c_ ColorCubeWithColorSpaceWrapper) HasInputImage() bool { +func (c_ ColorCubeWithColorSpaceObject) 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/cicolorcubewithcolorspace/3228141-inputimage?language=objc -func (c_ ColorCubeWithColorSpaceWrapper) InputImage() Image { +func (c_ ColorCubeWithColorSpaceObject) InputImage() Image { rv := objc.Call[Image](c_, objc.Sel("inputImage")) return rv } -func (c_ ColorCubeWithColorSpaceWrapper) HasSetCubeDimension() bool { +func (c_ ColorCubeWithColorSpaceObject) HasSetCubeDimension() bool { return c_.RespondsToSelector(objc.Sel("setCubeDimension:")) } // The length, in texels, of each side of the cube texture. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/coreimage/cicolorcubewithcolorspace/3228140-cubedimension?language=objc -func (c_ ColorCubeWithColorSpaceWrapper) SetCubeDimension(value float64) { +func (c_ ColorCubeWithColorSpaceObject) SetCubeDimension(value float64) { objc.Call[objc.Void](c_, objc.Sel("setCubeDimension:"), value) } -func (c_ ColorCubeWithColorSpaceWrapper) HasCubeDimension() bool { +func (c_ ColorCubeWithColorSpaceObject) HasCubeDimension() bool { return c_.RespondsToSelector(objc.Sel("cubeDimension")) } // The length, in texels, of each side of the cube texture. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/coreimage/cicolorcubewithcolorspace/3228140-cubedimension?language=objc -func (c_ ColorCubeWithColorSpaceWrapper) CubeDimension() float64 { +func (c_ ColorCubeWithColorSpaceObject) CubeDimension() float64 { rv := objc.Call[float64](c_, objc.Sel("cubeDimension")) return rv } -func (c_ ColorCubeWithColorSpaceWrapper) 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_ ColorCubeWithColorSpaceWrapper) SetCubeData(value []byte) { - objc.Call[objc.Void](c_, objc.Sel("setCubeData:"), value) -} - -func (c_ ColorCubeWithColorSpaceWrapper) 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_ ColorCubeWithColorSpaceWrapper) CubeData() []byte { - rv := objc.Call[[]byte](c_, objc.Sel("cubeData")) - return rv -} - -func (c_ ColorCubeWithColorSpaceWrapper) HasSetColorSpace() bool { +func (c_ ColorCubeWithColorSpaceObject) HasSetColorSpace() bool { return c_.RespondsToSelector(objc.Sel("setColorSpace:")) } // The working color space. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/coreimage/cicolorcubewithcolorspace/3228138-colorspace?language=objc -func (c_ ColorCubeWithColorSpaceWrapper) SetColorSpace(value coregraphics.ColorSpaceRef) { +func (c_ ColorCubeWithColorSpaceObject) SetColorSpace(value coregraphics.ColorSpaceRef) { objc.Call[objc.Void](c_, objc.Sel("setColorSpace:"), value) } -func (c_ ColorCubeWithColorSpaceWrapper) HasColorSpace() bool { +func (c_ ColorCubeWithColorSpaceObject) HasColorSpace() bool { return c_.RespondsToSelector(objc.Sel("colorSpace")) } // The working color space. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/coreimage/cicolorcubewithcolorspace/3228138-colorspace?language=objc -func (c_ ColorCubeWithColorSpaceWrapper) ColorSpace() coregraphics.ColorSpaceRef { +func (c_ ColorCubeWithColorSpaceObject) ColorSpace() coregraphics.ColorSpaceRef { rv := objc.Call[coregraphics.ColorSpaceRef](c_, objc.Sel("colorSpace")) return rv } diff --git a/macos/coreimage/color_cubes_mixed_with_mask.gen.go b/macos/coreimage/color_cubes_mixed_with_mask_protocol.gen.go similarity index 72% rename from macos/coreimage/color_cubes_mixed_with_mask.gen.go rename to macos/coreimage/color_cubes_mixed_with_mask_protocol.gen.go index e01a5f16..0cd23317 100644 --- a/macos/coreimage/color_cubes_mixed_with_mask.gen.go +++ b/macos/coreimage/color_cubes_mixed_with_mask_protocol.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package coreimage @@ -11,12 +11,28 @@ 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 // optional - InputImage() IImage + InputImage() Image HasInputImage() bool // optional @@ -32,7 +48,7 @@ type PColorCubesMixedWithMask interface { HasSetMaskImage() bool // optional - MaskImage() IImage + MaskImage() Image HasMaskImage() bool // optional @@ -42,163 +58,150 @@ type PColorCubesMixedWithMask interface { // optional ColorSpace() coregraphics.ColorSpaceRef HasColorSpace() bool +} - // optional - SetCube0Data(value []byte) - HasSetCube0Data() bool +// ensure impl type implements protocol interface +var _ PColorCubesMixedWithMask = (*ColorCubesMixedWithMaskObject)(nil) - // optional - Cube0Data() []byte - HasCube0Data() bool +// A concrete type for the [PColorCubesMixedWithMask] protocol. +type ColorCubesMixedWithMaskObject struct { + objc.Object +} - // optional - SetCube1Data(value []byte) - HasSetCube1Data() bool +func (c_ ColorCubesMixedWithMaskObject) HasSetCube1Data() bool { + return c_.RespondsToSelector(objc.Sel("setCube1Data:")) +} - // optional - Cube1Data() []byte - HasCube1Data() bool +// 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) } -// A concrete type wrapper for the [PColorCubesMixedWithMask] protocol. -type ColorCubesMixedWithMaskWrapper struct { - objc.Object +func (c_ ColorCubesMixedWithMaskObject) HasCube1Data() bool { + return c_.RespondsToSelector(objc.Sel("cube1Data")) } -func (c_ ColorCubesMixedWithMaskWrapper) HasSetInputImage() bool { +// 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:")) } // The image to use as an input image. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/coreimage/cicolorcubesmixedwithmask/3228147-inputimage?language=objc -func (c_ ColorCubesMixedWithMaskWrapper) SetInputImage(value IImage) { +func (c_ ColorCubesMixedWithMaskObject) SetInputImage(value Image) { objc.Call[objc.Void](c_, objc.Sel("setInputImage:"), objc.Ptr(value)) } -func (c_ ColorCubesMixedWithMaskWrapper) HasInputImage() bool { +func (c_ ColorCubesMixedWithMaskObject) 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/cicolorcubesmixedwithmask/3228147-inputimage?language=objc -func (c_ ColorCubesMixedWithMaskWrapper) InputImage() Image { +func (c_ ColorCubesMixedWithMaskObject) InputImage() Image { rv := objc.Call[Image](c_, objc.Sel("inputImage")) return rv } -func (c_ ColorCubesMixedWithMaskWrapper) HasSetCubeDimension() bool { +func (c_ ColorCubesMixedWithMaskObject) HasSetCubeDimension() bool { return c_.RespondsToSelector(objc.Sel("setCubeDimension:")) } // The length, in texels, of each side of the cube texture. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/coreimage/cicolorcubesmixedwithmask/3228146-cubedimension?language=objc -func (c_ ColorCubesMixedWithMaskWrapper) SetCubeDimension(value float64) { +func (c_ ColorCubesMixedWithMaskObject) SetCubeDimension(value float64) { objc.Call[objc.Void](c_, objc.Sel("setCubeDimension:"), value) } -func (c_ ColorCubesMixedWithMaskWrapper) HasCubeDimension() bool { +func (c_ ColorCubesMixedWithMaskObject) HasCubeDimension() bool { return c_.RespondsToSelector(objc.Sel("cubeDimension")) } // The length, in texels, of each side of the cube texture. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/coreimage/cicolorcubesmixedwithmask/3228146-cubedimension?language=objc -func (c_ ColorCubesMixedWithMaskWrapper) CubeDimension() float64 { +func (c_ ColorCubesMixedWithMaskObject) CubeDimension() float64 { rv := objc.Call[float64](c_, objc.Sel("cubeDimension")) return rv } -func (c_ ColorCubesMixedWithMaskWrapper) HasSetMaskImage() bool { +func (c_ ColorCubesMixedWithMaskObject) HasSetMaskImage() bool { return c_.RespondsToSelector(objc.Sel("setMaskImage:")) } // A masking image. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/coreimage/cicolorcubesmixedwithmask/3228148-maskimage?language=objc -func (c_ ColorCubesMixedWithMaskWrapper) SetMaskImage(value IImage) { +func (c_ ColorCubesMixedWithMaskObject) SetMaskImage(value Image) { objc.Call[objc.Void](c_, objc.Sel("setMaskImage:"), objc.Ptr(value)) } -func (c_ ColorCubesMixedWithMaskWrapper) HasMaskImage() bool { +func (c_ ColorCubesMixedWithMaskObject) HasMaskImage() bool { return c_.RespondsToSelector(objc.Sel("maskImage")) } // A masking image. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/coreimage/cicolorcubesmixedwithmask/3228148-maskimage?language=objc -func (c_ ColorCubesMixedWithMaskWrapper) MaskImage() Image { +func (c_ ColorCubesMixedWithMaskObject) MaskImage() Image { rv := objc.Call[Image](c_, objc.Sel("maskImage")) return rv } -func (c_ ColorCubesMixedWithMaskWrapper) HasSetColorSpace() bool { +func (c_ ColorCubesMixedWithMaskObject) HasSetColorSpace() bool { return c_.RespondsToSelector(objc.Sel("setColorSpace:")) } // The working color space. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/coreimage/cicolorcubesmixedwithmask/3228143-colorspace?language=objc -func (c_ ColorCubesMixedWithMaskWrapper) SetColorSpace(value coregraphics.ColorSpaceRef) { +func (c_ ColorCubesMixedWithMaskObject) SetColorSpace(value coregraphics.ColorSpaceRef) { objc.Call[objc.Void](c_, objc.Sel("setColorSpace:"), value) } -func (c_ ColorCubesMixedWithMaskWrapper) HasColorSpace() bool { +func (c_ ColorCubesMixedWithMaskObject) HasColorSpace() bool { return c_.RespondsToSelector(objc.Sel("colorSpace")) } // The working color space. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/coreimage/cicolorcubesmixedwithmask/3228143-colorspace?language=objc -func (c_ ColorCubesMixedWithMaskWrapper) ColorSpace() coregraphics.ColorSpaceRef { +func (c_ ColorCubesMixedWithMaskObject) ColorSpace() coregraphics.ColorSpaceRef { rv := objc.Call[coregraphics.ColorSpaceRef](c_, objc.Sel("colorSpace")) return rv } - -func (c_ ColorCubesMixedWithMaskWrapper) 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_ ColorCubesMixedWithMaskWrapper) SetCube0Data(value []byte) { - objc.Call[objc.Void](c_, objc.Sel("setCube0Data:"), value) -} - -func (c_ ColorCubesMixedWithMaskWrapper) 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_ ColorCubesMixedWithMaskWrapper) Cube0Data() []byte { - rv := objc.Call[[]byte](c_, objc.Sel("cube0Data")) - return rv -} - -func (c_ ColorCubesMixedWithMaskWrapper) 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_ ColorCubesMixedWithMaskWrapper) SetCube1Data(value []byte) { - objc.Call[objc.Void](c_, objc.Sel("setCube1Data:"), value) -} - -func (c_ ColorCubesMixedWithMaskWrapper) 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_ ColorCubesMixedWithMaskWrapper) Cube1Data() []byte { - rv := objc.Call[[]byte](c_, objc.Sel("cube1Data")) - return rv -} diff --git a/macos/coreimage/color_curves.gen.go b/macos/coreimage/color_curves_protocol.gen.go similarity index 74% rename from macos/coreimage/color_curves.gen.go rename to macos/coreimage/color_curves_protocol.gen.go index 916f6c1b..89f12216 100644 --- a/macos/coreimage/color_curves.gen.go +++ b/macos/coreimage/color_curves_protocol.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package coreimage @@ -11,14 +11,6 @@ import ( // // [Full Topic]: https://developer.apple.com/documentation/coreimage/cicolorcurves?language=objc type PColorCurves interface { - // optional - SetInputImage(value Image) - HasSetInputImage() bool - - // optional - InputImage() IImage - HasInputImage() bool - // optional SetColorSpace(value coregraphics.ColorSpaceRef) HasSetColorSpace() bool @@ -28,115 +20,126 @@ type PColorCurves interface { HasColorSpace() bool // optional - SetCurvesData(value []byte) - HasSetCurvesData() bool + SetCurvesDomain(value Vector) + HasSetCurvesDomain() bool // optional - CurvesData() []byte - HasCurvesData() bool + CurvesDomain() Vector + HasCurvesDomain() bool // optional - SetCurvesDomain(value Vector) - HasSetCurvesDomain() bool + SetInputImage(value Image) + HasSetInputImage() bool // optional - CurvesDomain() IVector - HasCurvesDomain() bool + InputImage() Image + HasInputImage() bool + + // optional + SetCurvesData(value []byte) + HasSetCurvesData() bool + + // optional + CurvesData() []byte + HasCurvesData() bool } -// A concrete type wrapper for the [PColorCurves] protocol. -type ColorCurvesWrapper struct { +// ensure impl type implements protocol interface +var _ PColorCurves = (*ColorCurvesObject)(nil) + +// A concrete type for the [PColorCurves] protocol. +type ColorCurvesObject struct { objc.Object } -func (c_ ColorCurvesWrapper) HasSetInputImage() bool { - return c_.RespondsToSelector(objc.Sel("setInputImage:")) +func (c_ ColorCurvesObject) HasSetColorSpace() bool { + return c_.RespondsToSelector(objc.Sel("setColorSpace:")) } -// The image to use as an input image. [Full Topic] +// The working color space. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/cicolorcurves/3228153-inputimage?language=objc -func (c_ ColorCurvesWrapper) SetInputImage(value IImage) { - objc.Call[objc.Void](c_, objc.Sel("setInputImage:"), objc.Ptr(value)) +// [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_ ColorCurvesWrapper) HasInputImage() bool { - return c_.RespondsToSelector(objc.Sel("inputImage")) +func (c_ ColorCurvesObject) HasColorSpace() bool { + return c_.RespondsToSelector(objc.Sel("colorSpace")) } -// The image to use as an input image. [Full Topic] +// The working color space. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/cicolorcurves/3228153-inputimage?language=objc -func (c_ ColorCurvesWrapper) InputImage() Image { - rv := objc.Call[Image](c_, objc.Sel("inputImage")) +// [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_ ColorCurvesWrapper) HasSetColorSpace() bool { - return c_.RespondsToSelector(objc.Sel("setColorSpace:")) +func (c_ ColorCurvesObject) HasSetCurvesDomain() bool { + return c_.RespondsToSelector(objc.Sel("setCurvesDomain:")) } -// The working color space. [Full Topic] +// 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/3228150-colorspace?language=objc -func (c_ ColorCurvesWrapper) SetColorSpace(value coregraphics.ColorSpaceRef) { - objc.Call[objc.Void](c_, objc.Sel("setColorSpace:"), value) +// [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:"), objc.Ptr(value)) } -func (c_ ColorCurvesWrapper) HasColorSpace() bool { - return c_.RespondsToSelector(objc.Sel("colorSpace")) +func (c_ ColorCurvesObject) HasCurvesDomain() bool { + return c_.RespondsToSelector(objc.Sel("curvesDomain")) } -// The working color space. [Full Topic] +// 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/3228150-colorspace?language=objc -func (c_ ColorCurvesWrapper) ColorSpace() coregraphics.ColorSpaceRef { - rv := objc.Call[coregraphics.ColorSpaceRef](c_, objc.Sel("colorSpace")) +// [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_ ColorCurvesWrapper) HasSetCurvesData() bool { - return c_.RespondsToSelector(objc.Sel("setCurvesData:")) +func (c_ ColorCurvesObject) HasSetInputImage() bool { + return c_.RespondsToSelector(objc.Sel("setInputImage:")) } -// Color values that determine the color curves transform. [Full Topic] +// The image to use as an input image. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/cicolorcurves/3228151-curvesdata?language=objc -func (c_ ColorCurvesWrapper) SetCurvesData(value []byte) { - objc.Call[objc.Void](c_, objc.Sel("setCurvesData:"), value) +// [Full Topic]: https://developer.apple.com/documentation/coreimage/cicolorcurves/3228153-inputimage?language=objc +func (c_ ColorCurvesObject) SetInputImage(value Image) { + objc.Call[objc.Void](c_, objc.Sel("setInputImage:"), objc.Ptr(value)) } -func (c_ ColorCurvesWrapper) HasCurvesData() bool { - return c_.RespondsToSelector(objc.Sel("curvesData")) +func (c_ ColorCurvesObject) HasInputImage() bool { + return c_.RespondsToSelector(objc.Sel("inputImage")) } -// Color values that determine the color curves transform. [Full Topic] +// The image to use as an input image. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/cicolorcurves/3228151-curvesdata?language=objc -func (c_ ColorCurvesWrapper) CurvesData() []byte { - rv := objc.Call[[]byte](c_, objc.Sel("curvesData")) +// [Full Topic]: https://developer.apple.com/documentation/coreimage/cicolorcurves/3228153-inputimage?language=objc +func (c_ ColorCurvesObject) InputImage() Image { + rv := objc.Call[Image](c_, objc.Sel("inputImage")) return rv } -func (c_ ColorCurvesWrapper) HasSetCurvesDomain() bool { - return c_.RespondsToSelector(objc.Sel("setCurvesDomain:")) +func (c_ ColorCurvesObject) HasSetCurvesData() bool { + return c_.RespondsToSelector(objc.Sel("setCurvesData:")) } -// A two-element vector that defines the minimum and maximum values of the curve data. [Full Topic] +// Color values that determine the color curves transform. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/cicolorcurves/3228152-curvesdomain?language=objc -func (c_ ColorCurvesWrapper) SetCurvesDomain(value IVector) { - objc.Call[objc.Void](c_, objc.Sel("setCurvesDomain:"), objc.Ptr(value)) +// [Full Topic]: https://developer.apple.com/documentation/coreimage/cicolorcurves/3228151-curvesdata?language=objc +func (c_ ColorCurvesObject) SetCurvesData(value []byte) { + objc.Call[objc.Void](c_, objc.Sel("setCurvesData:"), value) } -func (c_ ColorCurvesWrapper) HasCurvesDomain() bool { - return c_.RespondsToSelector(objc.Sel("curvesDomain")) +func (c_ ColorCurvesObject) HasCurvesData() bool { + return c_.RespondsToSelector(objc.Sel("curvesData")) } -// A two-element vector that defines the minimum and maximum values of the curve data. [Full Topic] +// Color values that determine the color curves transform. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/cicolorcurves/3228152-curvesdomain?language=objc -func (c_ ColorCurvesWrapper) CurvesDomain() Vector { - rv := objc.Call[Vector](c_, objc.Sel("curvesDomain")) +// [Full Topic]: https://developer.apple.com/documentation/coreimage/cicolorcurves/3228151-curvesdata?language=objc +func (c_ ColorCurvesObject) CurvesData() []byte { + rv := objc.Call[[]byte](c_, objc.Sel("curvesData")) return rv } diff --git a/macos/coreimage/color_invert.gen.go b/macos/coreimage/color_invert_protocol.gen.go similarity index 68% rename from macos/coreimage/color_invert.gen.go rename to macos/coreimage/color_invert_protocol.gen.go index db578cbf..3bc2438c 100644 --- a/macos/coreimage/color_invert.gen.go +++ b/macos/coreimage/color_invert_protocol.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package coreimage @@ -15,34 +15,37 @@ type PColorInvert interface { HasSetInputImage() bool // optional - InputImage() IImage + InputImage() Image HasInputImage() bool } -// A concrete type wrapper for the [PColorInvert] protocol. -type ColorInvertWrapper struct { +// ensure impl type implements protocol interface +var _ PColorInvert = (*ColorInvertObject)(nil) + +// A concrete type for the [PColorInvert] protocol. +type ColorInvertObject struct { objc.Object } -func (c_ ColorInvertWrapper) HasSetInputImage() bool { +func (c_ ColorInvertObject) 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/cicolorinvert/3228155-inputimage?language=objc -func (c_ ColorInvertWrapper) SetInputImage(value IImage) { +func (c_ ColorInvertObject) SetInputImage(value Image) { objc.Call[objc.Void](c_, objc.Sel("setInputImage:"), objc.Ptr(value)) } -func (c_ ColorInvertWrapper) HasInputImage() bool { +func (c_ ColorInvertObject) 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/cicolorinvert/3228155-inputimage?language=objc -func (c_ ColorInvertWrapper) InputImage() Image { +func (c_ ColorInvertObject) InputImage() Image { rv := objc.Call[Image](c_, objc.Sel("inputImage")) return rv } diff --git a/macos/coreimage/color_kernel.gen.go b/macos/coreimage/color_kernel.gen.go index 015123f6..a421e0bf 100644 --- a/macos/coreimage/color_kernel.gen.go +++ b/macos/coreimage/color_kernel.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package coreimage @@ -41,10 +41,6 @@ func (cc _ColorKernelClass) Alloc() ColorKernel { return rv } -func ColorKernel_Alloc() ColorKernel { - return ColorKernelClass.Alloc() -} - func (cc _ColorKernelClass) New() ColorKernel { rv := objc.Call[ColorKernel](cc, objc.Sel("new")) rv.Autorelease() @@ -60,6 +56,18 @@ func (c_ ColorKernel) Init() ColorKernel { return rv } +func (cc _ColorKernelClass) KernelWithFunctionNameFromMetalLibraryDataError(name string, data []byte, error foundation.IError) ColorKernel { + rv := objc.Call[ColorKernel](cc, objc.Sel("kernelWithFunctionName:fromMetalLibraryData:error:"), name, data, objc.Ptr(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 foundation.IError) ColorKernel { + return ColorKernelClass.KernelWithFunctionNameFromMetalLibraryDataError(name, data, error) +} + func (cc _ColorKernelClass) KernelWithFunctionNameFromMetalLibraryDataOutputPixelFormatError(name string, data []byte, format Format, error foundation.IError) ColorKernel { rv := objc.Call[ColorKernel](cc, objc.Sel("kernelWithFunctionName:fromMetalLibraryData:outputPixelFormat:error:"), name, data, format, objc.Ptr(error)) return rv diff --git a/macos/coreimage/color_map.gen.go b/macos/coreimage/color_map_protocol.gen.go similarity index 72% rename from macos/coreimage/color_map.gen.go rename to macos/coreimage/color_map_protocol.gen.go index 95838b52..d93337e5 100644 --- a/macos/coreimage/color_map.gen.go +++ b/macos/coreimage/color_map_protocol.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package coreimage @@ -15,7 +15,7 @@ type PColorMap interface { HasSetInputImage() bool // optional - InputImage() IImage + InputImage() Image HasInputImage() bool // optional @@ -23,57 +23,60 @@ type PColorMap interface { HasSetGradientImage() bool // optional - GradientImage() IImage + GradientImage() Image HasGradientImage() bool } -// A concrete type wrapper for the [PColorMap] protocol. -type ColorMapWrapper struct { +// ensure impl type implements protocol interface +var _ PColorMap = (*ColorMapObject)(nil) + +// A concrete type for the [PColorMap] protocol. +type ColorMapObject struct { objc.Object } -func (c_ ColorMapWrapper) HasSetInputImage() bool { +func (c_ ColorMapObject) 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/cicolormap/3228158-inputimage?language=objc -func (c_ ColorMapWrapper) SetInputImage(value IImage) { +func (c_ ColorMapObject) SetInputImage(value Image) { objc.Call[objc.Void](c_, objc.Sel("setInputImage:"), objc.Ptr(value)) } -func (c_ ColorMapWrapper) HasInputImage() bool { +func (c_ ColorMapObject) 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/cicolormap/3228158-inputimage?language=objc -func (c_ ColorMapWrapper) InputImage() Image { +func (c_ ColorMapObject) InputImage() Image { rv := objc.Call[Image](c_, objc.Sel("inputImage")) return rv } -func (c_ ColorMapWrapper) HasSetGradientImage() bool { +func (c_ ColorMapObject) HasSetGradientImage() bool { return c_.RespondsToSelector(objc.Sel("setGradientImage:")) } // The image data that transforms the source image values. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/coreimage/cicolormap/3228157-gradientimage?language=objc -func (c_ ColorMapWrapper) SetGradientImage(value IImage) { +func (c_ ColorMapObject) SetGradientImage(value Image) { objc.Call[objc.Void](c_, objc.Sel("setGradientImage:"), objc.Ptr(value)) } -func (c_ ColorMapWrapper) HasGradientImage() bool { +func (c_ ColorMapObject) HasGradientImage() bool { return c_.RespondsToSelector(objc.Sel("gradientImage")) } // The image data that transforms the source image values. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/coreimage/cicolormap/3228157-gradientimage?language=objc -func (c_ ColorMapWrapper) GradientImage() Image { +func (c_ ColorMapObject) GradientImage() Image { rv := objc.Call[Image](c_, objc.Sel("gradientImage")) return rv } diff --git a/macos/coreimage/color_matrix.gen.go b/macos/coreimage/color_matrix_protocol.gen.go similarity index 74% rename from macos/coreimage/color_matrix.gen.go rename to macos/coreimage/color_matrix_protocol.gen.go index 4d5ff267..a3cffca8 100644 --- a/macos/coreimage/color_matrix.gen.go +++ b/macos/coreimage/color_matrix_protocol.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package coreimage @@ -15,23 +15,15 @@ type PColorMatrix interface { HasSetInputImage() bool // optional - InputImage() IImage + InputImage() Image HasInputImage() bool - // optional - SetGVector(value Vector) - HasSetGVector() bool - - // optional - GVector() IVector - HasGVector() bool - // optional SetBiasVector(value Vector) HasSetBiasVector() bool // optional - BiasVector() IVector + BiasVector() Vector HasBiasVector() bool // optional @@ -39,7 +31,7 @@ type PColorMatrix interface { HasSetBVector() bool // optional - BVector() IVector + BVector() Vector HasBVector() bool // optional @@ -47,157 +39,168 @@ type PColorMatrix interface { HasSetRVector() bool // optional - RVector() IVector + RVector() Vector HasRVector() bool + // optional + SetGVector(value Vector) + HasSetGVector() bool + + // optional + GVector() Vector + HasGVector() bool + // optional SetAVector(value Vector) HasSetAVector() bool // optional - AVector() IVector + AVector() Vector HasAVector() bool } -// A concrete type wrapper for the [PColorMatrix] protocol. -type ColorMatrixWrapper struct { +// ensure impl type implements protocol interface +var _ PColorMatrix = (*ColorMatrixObject)(nil) + +// A concrete type for the [PColorMatrix] protocol. +type ColorMatrixObject struct { objc.Object } -func (c_ ColorMatrixWrapper) HasSetInputImage() bool { +func (c_ ColorMatrixObject) 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/cicolormatrix/3228165-inputimage?language=objc -func (c_ ColorMatrixWrapper) SetInputImage(value IImage) { +func (c_ ColorMatrixObject) SetInputImage(value Image) { objc.Call[objc.Void](c_, objc.Sel("setInputImage:"), objc.Ptr(value)) } -func (c_ ColorMatrixWrapper) HasInputImage() bool { +func (c_ ColorMatrixObject) 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/cicolormatrix/3228165-inputimage?language=objc -func (c_ ColorMatrixWrapper) InputImage() Image { +func (c_ ColorMatrixObject) InputImage() Image { rv := objc.Call[Image](c_, objc.Sel("inputImage")) return rv } -func (c_ ColorMatrixWrapper) 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_ ColorMatrixWrapper) SetGVector(value IVector) { - objc.Call[objc.Void](c_, objc.Sel("setGVector:"), objc.Ptr(value)) -} - -func (c_ ColorMatrixWrapper) 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_ ColorMatrixWrapper) GVector() Vector { - rv := objc.Call[Vector](c_, objc.Sel("GVector")) - return rv -} - -func (c_ ColorMatrixWrapper) HasSetBiasVector() bool { +func (c_ ColorMatrixObject) HasSetBiasVector() bool { return c_.RespondsToSelector(objc.Sel("setBiasVector:")) } // A vector that’s added to each color component. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/coreimage/cicolormatrix/3228164-biasvector?language=objc -func (c_ ColorMatrixWrapper) SetBiasVector(value IVector) { +func (c_ ColorMatrixObject) SetBiasVector(value Vector) { objc.Call[objc.Void](c_, objc.Sel("setBiasVector:"), objc.Ptr(value)) } -func (c_ ColorMatrixWrapper) HasBiasVector() bool { +func (c_ ColorMatrixObject) HasBiasVector() bool { return c_.RespondsToSelector(objc.Sel("biasVector")) } // A vector that’s added to each color component. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/coreimage/cicolormatrix/3228164-biasvector?language=objc -func (c_ ColorMatrixWrapper) BiasVector() Vector { +func (c_ ColorMatrixObject) BiasVector() Vector { rv := objc.Call[Vector](c_, objc.Sel("biasVector")) return rv } -func (c_ ColorMatrixWrapper) HasSetBVector() bool { +func (c_ ColorMatrixObject) HasSetBVector() bool { return c_.RespondsToSelector(objc.Sel("setBVector:")) } // The amount of blue to multiply the source color values by. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/coreimage/cicolormatrix/3228161-bvector?language=objc -func (c_ ColorMatrixWrapper) SetBVector(value IVector) { +func (c_ ColorMatrixObject) SetBVector(value Vector) { objc.Call[objc.Void](c_, objc.Sel("setBVector:"), objc.Ptr(value)) } -func (c_ ColorMatrixWrapper) HasBVector() bool { +func (c_ ColorMatrixObject) HasBVector() bool { return c_.RespondsToSelector(objc.Sel("BVector")) } // The amount of blue to multiply the source color values by. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/coreimage/cicolormatrix/3228161-bvector?language=objc -func (c_ ColorMatrixWrapper) BVector() Vector { +func (c_ ColorMatrixObject) BVector() Vector { rv := objc.Call[Vector](c_, objc.Sel("BVector")) return rv } -func (c_ ColorMatrixWrapper) HasSetRVector() bool { +func (c_ ColorMatrixObject) HasSetRVector() bool { return c_.RespondsToSelector(objc.Sel("setRVector:")) } // The amount of red to multiply the source color values by. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/coreimage/cicolormatrix/3228163-rvector?language=objc -func (c_ ColorMatrixWrapper) SetRVector(value IVector) { +func (c_ ColorMatrixObject) SetRVector(value Vector) { objc.Call[objc.Void](c_, objc.Sel("setRVector:"), objc.Ptr(value)) } -func (c_ ColorMatrixWrapper) HasRVector() bool { +func (c_ ColorMatrixObject) HasRVector() bool { return c_.RespondsToSelector(objc.Sel("RVector")) } // The amount of red to multiply the source color values by. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/coreimage/cicolormatrix/3228163-rvector?language=objc -func (c_ ColorMatrixWrapper) RVector() Vector { +func (c_ ColorMatrixObject) RVector() Vector { rv := objc.Call[Vector](c_, objc.Sel("RVector")) return rv } -func (c_ ColorMatrixWrapper) HasSetAVector() bool { +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:"), objc.Ptr(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:")) } // The amount of alpha to multiply the source color values by. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/coreimage/cicolormatrix/3228160-avector?language=objc -func (c_ ColorMatrixWrapper) SetAVector(value IVector) { +func (c_ ColorMatrixObject) SetAVector(value Vector) { objc.Call[objc.Void](c_, objc.Sel("setAVector:"), objc.Ptr(value)) } -func (c_ ColorMatrixWrapper) HasAVector() bool { +func (c_ ColorMatrixObject) HasAVector() bool { return c_.RespondsToSelector(objc.Sel("AVector")) } // The amount of alpha to multiply the source color values by. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/coreimage/cicolormatrix/3228160-avector?language=objc -func (c_ ColorMatrixWrapper) AVector() Vector { +func (c_ ColorMatrixObject) AVector() Vector { rv := objc.Call[Vector](c_, objc.Sel("AVector")) return rv } diff --git a/macos/coreimage/color_monochrome.gen.go b/macos/coreimage/color_monochrome_protocol.gen.go similarity index 72% rename from macos/coreimage/color_monochrome.gen.go rename to macos/coreimage/color_monochrome_protocol.gen.go index 59b4b887..7b54a0e9 100644 --- a/macos/coreimage/color_monochrome.gen.go +++ b/macos/coreimage/color_monochrome_protocol.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package coreimage @@ -15,17 +15,9 @@ type PColorMonochrome interface { HasSetColor() bool // optional - Color() IColor + Color() Color HasColor() bool - // optional - SetInputImage(value Image) - HasSetInputImage() bool - - // optional - InputImage() IImage - HasInputImage() bool - // optional SetIntensity(value float64) HasSetIntensity() bool @@ -33,78 +25,89 @@ type PColorMonochrome interface { // optional Intensity() float64 HasIntensity() bool + + // optional + SetInputImage(value Image) + HasSetInputImage() bool + + // optional + InputImage() Image + HasInputImage() bool } -// A concrete type wrapper for the [PColorMonochrome] protocol. -type ColorMonochromeWrapper struct { +// ensure impl type implements protocol interface +var _ PColorMonochrome = (*ColorMonochromeObject)(nil) + +// A concrete type for the [PColorMonochrome] protocol. +type ColorMonochromeObject struct { objc.Object } -func (c_ ColorMonochromeWrapper) HasSetColor() bool { +func (c_ ColorMonochromeObject) HasSetColor() bool { return c_.RespondsToSelector(objc.Sel("setColor:")) } // The monochrome color to apply to the image. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/coreimage/cicolormonochrome/3228167-color?language=objc -func (c_ ColorMonochromeWrapper) SetColor(value IColor) { +func (c_ ColorMonochromeObject) SetColor(value Color) { objc.Call[objc.Void](c_, objc.Sel("setColor:"), objc.Ptr(value)) } -func (c_ ColorMonochromeWrapper) HasColor() bool { +func (c_ ColorMonochromeObject) HasColor() bool { return c_.RespondsToSelector(objc.Sel("color")) } // The monochrome color to apply to the image. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/coreimage/cicolormonochrome/3228167-color?language=objc -func (c_ ColorMonochromeWrapper) Color() Color { +func (c_ ColorMonochromeObject) Color() Color { rv := objc.Call[Color](c_, objc.Sel("color")) return rv } -func (c_ ColorMonochromeWrapper) HasSetInputImage() bool { - return c_.RespondsToSelector(objc.Sel("setInputImage:")) +func (c_ ColorMonochromeObject) HasSetIntensity() bool { + return c_.RespondsToSelector(objc.Sel("setIntensity:")) } -// The image to use as an input image. [Full Topic] +// The intensity of the monochrome effect. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/cicolormonochrome/3228168-inputimage?language=objc -func (c_ ColorMonochromeWrapper) SetInputImage(value IImage) { - objc.Call[objc.Void](c_, objc.Sel("setInputImage:"), objc.Ptr(value)) +// [Full Topic]: https://developer.apple.com/documentation/coreimage/cicolormonochrome/3228169-intensity?language=objc +func (c_ ColorMonochromeObject) SetIntensity(value float64) { + objc.Call[objc.Void](c_, objc.Sel("setIntensity:"), value) } -func (c_ ColorMonochromeWrapper) HasInputImage() bool { - return c_.RespondsToSelector(objc.Sel("inputImage")) +func (c_ ColorMonochromeObject) HasIntensity() bool { + return c_.RespondsToSelector(objc.Sel("intensity")) } -// The image to use as an input image. [Full Topic] +// The intensity of the monochrome effect. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/cicolormonochrome/3228168-inputimage?language=objc -func (c_ ColorMonochromeWrapper) InputImage() Image { - rv := objc.Call[Image](c_, objc.Sel("inputImage")) +// [Full Topic]: https://developer.apple.com/documentation/coreimage/cicolormonochrome/3228169-intensity?language=objc +func (c_ ColorMonochromeObject) Intensity() float64 { + rv := objc.Call[float64](c_, objc.Sel("intensity")) return rv } -func (c_ ColorMonochromeWrapper) HasSetIntensity() bool { - return c_.RespondsToSelector(objc.Sel("setIntensity:")) +func (c_ ColorMonochromeObject) HasSetInputImage() bool { + return c_.RespondsToSelector(objc.Sel("setInputImage:")) } -// The intensity of the monochrome effect. [Full Topic] +// The image to use as an input image. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/cicolormonochrome/3228169-intensity?language=objc -func (c_ ColorMonochromeWrapper) SetIntensity(value float64) { - objc.Call[objc.Void](c_, objc.Sel("setIntensity:"), value) +// [Full Topic]: https://developer.apple.com/documentation/coreimage/cicolormonochrome/3228168-inputimage?language=objc +func (c_ ColorMonochromeObject) SetInputImage(value Image) { + objc.Call[objc.Void](c_, objc.Sel("setInputImage:"), objc.Ptr(value)) } -func (c_ ColorMonochromeWrapper) HasIntensity() bool { - return c_.RespondsToSelector(objc.Sel("intensity")) +func (c_ ColorMonochromeObject) HasInputImage() bool { + return c_.RespondsToSelector(objc.Sel("inputImage")) } -// The intensity of the monochrome effect. [Full Topic] +// The image to use as an input image. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/cicolormonochrome/3228169-intensity?language=objc -func (c_ ColorMonochromeWrapper) Intensity() float64 { - rv := objc.Call[float64](c_, objc.Sel("intensity")) +// [Full Topic]: https://developer.apple.com/documentation/coreimage/cicolormonochrome/3228168-inputimage?language=objc +func (c_ ColorMonochromeObject) InputImage() Image { + rv := objc.Call[Image](c_, objc.Sel("inputImage")) return rv } diff --git a/macos/coreimage/color_polynomial.gen.go b/macos/coreimage/color_polynomial_protocol.gen.go similarity index 72% rename from macos/coreimage/color_polynomial.gen.go rename to macos/coreimage/color_polynomial_protocol.gen.go index d5cef38a..fa76418e 100644 --- a/macos/coreimage/color_polynomial.gen.go +++ b/macos/coreimage/color_polynomial_protocol.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package coreimage @@ -11,27 +11,35 @@ import ( // [Full Topic]: https://developer.apple.com/documentation/coreimage/cicolorpolynomial?language=objc type PColorPolynomial interface { // optional - SetRedCoefficients(value Vector) - HasSetRedCoefficients() bool + SetInputImage(value Image) + HasSetInputImage() bool // optional - RedCoefficients() IVector - HasRedCoefficients() bool + InputImage() Image + HasInputImage() bool // optional - SetInputImage(value Image) - HasSetInputImage() bool + SetAlphaCoefficients(value Vector) + HasSetAlphaCoefficients() bool // optional - InputImage() IImage - HasInputImage() bool + AlphaCoefficients() Vector + HasAlphaCoefficients() bool + + // optional + SetRedCoefficients(value Vector) + HasSetRedCoefficients() bool + + // optional + RedCoefficients() Vector + HasRedCoefficients() bool // optional SetGreenCoefficients(value Vector) HasSetGreenCoefficients() bool // optional - GreenCoefficients() IVector + GreenCoefficients() Vector HasGreenCoefficients() bool // optional @@ -39,134 +47,129 @@ type PColorPolynomial interface { HasSetBlueCoefficients() bool // optional - BlueCoefficients() IVector + BlueCoefficients() Vector HasBlueCoefficients() bool +} - // optional - SetAlphaCoefficients(value Vector) - HasSetAlphaCoefficients() bool +// ensure impl type implements protocol interface +var _ PColorPolynomial = (*ColorPolynomialObject)(nil) - // optional - AlphaCoefficients() IVector - HasAlphaCoefficients() bool +// A concrete type for the [PColorPolynomial] protocol. +type ColorPolynomialObject struct { + objc.Object } -// A concrete type wrapper for the [PColorPolynomial] protocol. -type ColorPolynomialWrapper struct { - objc.Object +func (c_ ColorPolynomialObject) HasSetInputImage() bool { + return c_.RespondsToSelector(objc.Sel("setInputImage:")) } -func (c_ ColorPolynomialWrapper) HasSetRedCoefficients() bool { - return c_.RespondsToSelector(objc.Sel("setRedCoefficients:")) +// 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:"), objc.Ptr(value)) } -// Polynomial coefficients for the red channel. [Full Topic] +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/3228175-redcoefficients?language=objc -func (c_ ColorPolynomialWrapper) SetRedCoefficients(value IVector) { - objc.Call[objc.Void](c_, objc.Sel("setRedCoefficients:"), objc.Ptr(value)) +// [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_ ColorPolynomialWrapper) HasRedCoefficients() bool { - return c_.RespondsToSelector(objc.Sel("redCoefficients")) +func (c_ ColorPolynomialObject) HasSetAlphaCoefficients() bool { + return c_.RespondsToSelector(objc.Sel("setAlphaCoefficients:")) } -// Polynomial coefficients for the red channel. [Full Topic] +// Polynomial coefficients for the alpha channel. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/cicolorpolynomial/3228175-redcoefficients?language=objc -func (c_ ColorPolynomialWrapper) RedCoefficients() Vector { - rv := objc.Call[Vector](c_, objc.Sel("redCoefficients")) +// [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:"), objc.Ptr(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_ ColorPolynomialWrapper) HasSetInputImage() bool { - return c_.RespondsToSelector(objc.Sel("setInputImage:")) +func (c_ ColorPolynomialObject) HasSetRedCoefficients() bool { + return c_.RespondsToSelector(objc.Sel("setRedCoefficients:")) } -// The image to use as an input image. [Full Topic] +// Polynomial coefficients for the red channel. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/cicolorpolynomial/3228174-inputimage?language=objc -func (c_ ColorPolynomialWrapper) SetInputImage(value IImage) { - objc.Call[objc.Void](c_, objc.Sel("setInputImage:"), objc.Ptr(value)) +// [Full Topic]: https://developer.apple.com/documentation/coreimage/cicolorpolynomial/3228175-redcoefficients?language=objc +func (c_ ColorPolynomialObject) SetRedCoefficients(value Vector) { + objc.Call[objc.Void](c_, objc.Sel("setRedCoefficients:"), objc.Ptr(value)) } -func (c_ ColorPolynomialWrapper) HasInputImage() bool { - return c_.RespondsToSelector(objc.Sel("inputImage")) +func (c_ ColorPolynomialObject) HasRedCoefficients() bool { + return c_.RespondsToSelector(objc.Sel("redCoefficients")) } -// The image to use as an input image. [Full Topic] +// Polynomial coefficients for the red channel. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/cicolorpolynomial/3228174-inputimage?language=objc -func (c_ ColorPolynomialWrapper) InputImage() Image { - rv := objc.Call[Image](c_, objc.Sel("inputImage")) +// [Full Topic]: https://developer.apple.com/documentation/coreimage/cicolorpolynomial/3228175-redcoefficients?language=objc +func (c_ ColorPolynomialObject) RedCoefficients() Vector { + rv := objc.Call[Vector](c_, objc.Sel("redCoefficients")) return rv } -func (c_ ColorPolynomialWrapper) HasSetGreenCoefficients() bool { +func (c_ ColorPolynomialObject) HasSetGreenCoefficients() bool { return c_.RespondsToSelector(objc.Sel("setGreenCoefficients:")) } // Polynomial coefficients for the green channel. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/coreimage/cicolorpolynomial/3228173-greencoefficients?language=objc -func (c_ ColorPolynomialWrapper) SetGreenCoefficients(value IVector) { +func (c_ ColorPolynomialObject) SetGreenCoefficients(value Vector) { objc.Call[objc.Void](c_, objc.Sel("setGreenCoefficients:"), objc.Ptr(value)) } -func (c_ ColorPolynomialWrapper) HasGreenCoefficients() bool { +func (c_ ColorPolynomialObject) HasGreenCoefficients() bool { return c_.RespondsToSelector(objc.Sel("greenCoefficients")) } // Polynomial coefficients for the green channel. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/coreimage/cicolorpolynomial/3228173-greencoefficients?language=objc -func (c_ ColorPolynomialWrapper) GreenCoefficients() Vector { +func (c_ ColorPolynomialObject) GreenCoefficients() Vector { rv := objc.Call[Vector](c_, objc.Sel("greenCoefficients")) return rv } -func (c_ ColorPolynomialWrapper) HasSetBlueCoefficients() bool { +func (c_ ColorPolynomialObject) HasSetBlueCoefficients() bool { return c_.RespondsToSelector(objc.Sel("setBlueCoefficients:")) } // Polynomial coefficients for the blue channel. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/coreimage/cicolorpolynomial/3228172-bluecoefficients?language=objc -func (c_ ColorPolynomialWrapper) SetBlueCoefficients(value IVector) { +func (c_ ColorPolynomialObject) SetBlueCoefficients(value Vector) { objc.Call[objc.Void](c_, objc.Sel("setBlueCoefficients:"), objc.Ptr(value)) } -func (c_ ColorPolynomialWrapper) HasBlueCoefficients() bool { +func (c_ ColorPolynomialObject) HasBlueCoefficients() bool { return c_.RespondsToSelector(objc.Sel("blueCoefficients")) } // Polynomial coefficients for the blue channel. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/coreimage/cicolorpolynomial/3228172-bluecoefficients?language=objc -func (c_ ColorPolynomialWrapper) BlueCoefficients() Vector { +func (c_ ColorPolynomialObject) BlueCoefficients() Vector { rv := objc.Call[Vector](c_, objc.Sel("blueCoefficients")) return rv } - -func (c_ ColorPolynomialWrapper) 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_ ColorPolynomialWrapper) SetAlphaCoefficients(value IVector) { - objc.Call[objc.Void](c_, objc.Sel("setAlphaCoefficients:"), objc.Ptr(value)) -} - -func (c_ ColorPolynomialWrapper) 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_ ColorPolynomialWrapper) AlphaCoefficients() Vector { - rv := objc.Call[Vector](c_, objc.Sel("alphaCoefficients")) - return rv -} diff --git a/macos/coreimage/color_posterize.gen.go b/macos/coreimage/color_posterize_protocol.gen.go similarity index 71% rename from macos/coreimage/color_posterize.gen.go rename to macos/coreimage/color_posterize_protocol.gen.go index 7011da3f..6a95856b 100644 --- a/macos/coreimage/color_posterize.gen.go +++ b/macos/coreimage/color_posterize_protocol.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package coreimage @@ -10,14 +10,6 @@ import ( // // [Full Topic]: https://developer.apple.com/documentation/coreimage/cicolorposterize?language=objc type PColorPosterize interface { - // optional - SetInputImage(value Image) - HasSetInputImage() bool - - // optional - InputImage() IImage - HasInputImage() bool - // optional SetLevels(value float64) HasSetLevels() bool @@ -25,55 +17,66 @@ type PColorPosterize interface { // optional Levels() float64 HasLevels() bool + + // optional + SetInputImage(value Image) + HasSetInputImage() bool + + // optional + InputImage() Image + HasInputImage() bool } -// A concrete type wrapper for the [PColorPosterize] protocol. -type ColorPosterizeWrapper struct { +// ensure impl type implements protocol interface +var _ PColorPosterize = (*ColorPosterizeObject)(nil) + +// A concrete type for the [PColorPosterize] protocol. +type ColorPosterizeObject struct { objc.Object } -func (c_ ColorPosterizeWrapper) HasSetInputImage() bool { - return c_.RespondsToSelector(objc.Sel("setInputImage:")) +func (c_ ColorPosterizeObject) HasSetLevels() bool { + return c_.RespondsToSelector(objc.Sel("setLevels:")) } -// The image to use as an input image. [Full Topic] +// The number of brightness levels to use for each color component. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/cicolorposterize/3228177-inputimage?language=objc -func (c_ ColorPosterizeWrapper) SetInputImage(value IImage) { - objc.Call[objc.Void](c_, objc.Sel("setInputImage:"), objc.Ptr(value)) +// [Full Topic]: https://developer.apple.com/documentation/coreimage/cicolorposterize/3228178-levels?language=objc +func (c_ ColorPosterizeObject) SetLevels(value float64) { + objc.Call[objc.Void](c_, objc.Sel("setLevels:"), value) } -func (c_ ColorPosterizeWrapper) HasInputImage() bool { - return c_.RespondsToSelector(objc.Sel("inputImage")) +func (c_ ColorPosterizeObject) HasLevels() bool { + return c_.RespondsToSelector(objc.Sel("levels")) } -// The image to use as an input image. [Full Topic] +// The number of brightness levels to use for each color component. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/cicolorposterize/3228177-inputimage?language=objc -func (c_ ColorPosterizeWrapper) InputImage() Image { - rv := objc.Call[Image](c_, objc.Sel("inputImage")) +// [Full Topic]: https://developer.apple.com/documentation/coreimage/cicolorposterize/3228178-levels?language=objc +func (c_ ColorPosterizeObject) Levels() float64 { + rv := objc.Call[float64](c_, objc.Sel("levels")) return rv } -func (c_ ColorPosterizeWrapper) HasSetLevels() bool { - return c_.RespondsToSelector(objc.Sel("setLevels:")) +func (c_ ColorPosterizeObject) HasSetInputImage() bool { + return c_.RespondsToSelector(objc.Sel("setInputImage:")) } -// The number of brightness levels to use for each color component. [Full Topic] +// The image to use as an input image. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/cicolorposterize/3228178-levels?language=objc -func (c_ ColorPosterizeWrapper) SetLevels(value float64) { - objc.Call[objc.Void](c_, objc.Sel("setLevels:"), value) +// [Full Topic]: https://developer.apple.com/documentation/coreimage/cicolorposterize/3228177-inputimage?language=objc +func (c_ ColorPosterizeObject) SetInputImage(value Image) { + objc.Call[objc.Void](c_, objc.Sel("setInputImage:"), objc.Ptr(value)) } -func (c_ ColorPosterizeWrapper) HasLevels() bool { - return c_.RespondsToSelector(objc.Sel("levels")) +func (c_ ColorPosterizeObject) HasInputImage() bool { + return c_.RespondsToSelector(objc.Sel("inputImage")) } -// The number of brightness levels to use for each color component. [Full Topic] +// The image to use as an input image. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/cicolorposterize/3228178-levels?language=objc -func (c_ ColorPosterizeWrapper) Levels() float64 { - rv := objc.Call[float64](c_, objc.Sel("levels")) +// [Full Topic]: https://developer.apple.com/documentation/coreimage/cicolorposterize/3228177-inputimage?language=objc +func (c_ ColorPosterizeObject) InputImage() Image { + rv := objc.Call[Image](c_, objc.Sel("inputImage")) return rv } diff --git a/macos/coreimage/color_threshold_otsu.gen.go b/macos/coreimage/color_threshold_otsu_protocol.gen.go similarity index 63% rename from macos/coreimage/color_threshold_otsu.gen.go rename to macos/coreimage/color_threshold_otsu_protocol.gen.go index 9bdfbb7d..92d40d52 100644 --- a/macos/coreimage/color_threshold_otsu.gen.go +++ b/macos/coreimage/color_threshold_otsu_protocol.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package coreimage @@ -15,34 +15,37 @@ type PColorThresholdOtsu interface { HasSetInputImage() bool // optional - InputImage() IImage + InputImage() Image HasInputImage() bool } -// A concrete type wrapper for the [PColorThresholdOtsu] protocol. -type ColorThresholdOtsuWrapper struct { +// ensure impl type implements protocol interface +var _ PColorThresholdOtsu = (*ColorThresholdOtsuObject)(nil) + +// A concrete type for the [PColorThresholdOtsu] protocol. +type ColorThresholdOtsuObject struct { objc.Object } -func (c_ ColorThresholdOtsuWrapper) HasSetInputImage() bool { +func (c_ ColorThresholdOtsuObject) HasSetInputImage() bool { return c_.RespondsToSelector(objc.Sel("setInputImage:")) } // [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/coreimage/cicolorthresholdotsu/3584769-inputimage?language=objc -func (c_ ColorThresholdOtsuWrapper) SetInputImage(value IImage) { +func (c_ ColorThresholdOtsuObject) SetInputImage(value Image) { objc.Call[objc.Void](c_, objc.Sel("setInputImage:"), objc.Ptr(value)) } -func (c_ ColorThresholdOtsuWrapper) HasInputImage() bool { +func (c_ ColorThresholdOtsuObject) HasInputImage() bool { return c_.RespondsToSelector(objc.Sel("inputImage")) } // [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/coreimage/cicolorthresholdotsu/3584769-inputimage?language=objc -func (c_ ColorThresholdOtsuWrapper) InputImage() Image { +func (c_ ColorThresholdOtsuObject) InputImage() Image { rv := objc.Call[Image](c_, objc.Sel("inputImage")) return rv } diff --git a/macos/coreimage/color_threshold.gen.go b/macos/coreimage/color_threshold_protocol.gen.go similarity index 68% rename from macos/coreimage/color_threshold.gen.go rename to macos/coreimage/color_threshold_protocol.gen.go index cd92adb5..d8806441 100644 --- a/macos/coreimage/color_threshold.gen.go +++ b/macos/coreimage/color_threshold_protocol.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package coreimage @@ -10,14 +10,6 @@ import ( // // [Full Topic]: https://developer.apple.com/documentation/coreimage/cicolorthreshold?language=objc type PColorThreshold interface { - // optional - SetInputImage(value Image) - HasSetInputImage() bool - - // optional - InputImage() IImage - HasInputImage() bool - // optional SetThreshold(value float64) HasSetThreshold() bool @@ -25,55 +17,66 @@ type PColorThreshold interface { // optional Threshold() float64 HasThreshold() bool + + // optional + SetInputImage(value Image) + HasSetInputImage() bool + + // optional + InputImage() Image + HasInputImage() bool } -// A concrete type wrapper for the [PColorThreshold] protocol. -type ColorThresholdWrapper struct { +// ensure impl type implements protocol interface +var _ PColorThreshold = (*ColorThresholdObject)(nil) + +// A concrete type for the [PColorThreshold] protocol. +type ColorThresholdObject struct { objc.Object } -func (c_ ColorThresholdWrapper) 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_ ColorThresholdWrapper) SetInputImage(value IImage) { - objc.Call[objc.Void](c_, objc.Sel("setInputImage:"), objc.Ptr(value)) +// [Full Topic]: https://developer.apple.com/documentation/coreimage/cicolorthreshold/3547108-threshold?language=objc +func (c_ ColorThresholdObject) SetThreshold(value float64) { + objc.Call[objc.Void](c_, objc.Sel("setThreshold:"), value) } -func (c_ ColorThresholdWrapper) 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_ ColorThresholdWrapper) 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() float64 { + rv := objc.Call[float64](c_, objc.Sel("threshold")) return rv } -func (c_ ColorThresholdWrapper) 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_ ColorThresholdWrapper) SetThreshold(value float64) { - 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:"), objc.Ptr(value)) } -func (c_ ColorThresholdWrapper) 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_ ColorThresholdWrapper) Threshold() float64 { - rv := objc.Call[float64](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 } diff --git a/macos/coreimage/column_average.gen.go b/macos/coreimage/column_average_protocol.gen.go similarity index 50% rename from macos/coreimage/column_average.gen.go rename to macos/coreimage/column_average_protocol.gen.go index 0d1963a7..85a83912 100644 --- a/macos/coreimage/column_average.gen.go +++ b/macos/coreimage/column_average_protocol.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package coreimage @@ -12,7 +12,10 @@ import ( type PColumnAverage interface { } -// A concrete type wrapper for the [PColumnAverage] protocol. -type ColumnAverageWrapper struct { +// ensure impl type implements protocol interface +var _ PColumnAverage = (*ColumnAverageObject)(nil) + +// A concrete type for the [PColumnAverage] protocol. +type ColumnAverageObject struct { objc.Object } diff --git a/macos/coreimage/comic_effect.gen.go b/macos/coreimage/comic_effect_protocol.gen.go similarity index 68% rename from macos/coreimage/comic_effect.gen.go rename to macos/coreimage/comic_effect_protocol.gen.go index 29acfb00..cf393cc5 100644 --- a/macos/coreimage/comic_effect.gen.go +++ b/macos/coreimage/comic_effect_protocol.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package coreimage @@ -15,34 +15,37 @@ type PComicEffect interface { HasSetInputImage() bool // optional - InputImage() IImage + InputImage() Image HasInputImage() bool } -// A concrete type wrapper for the [PComicEffect] protocol. -type ComicEffectWrapper struct { +// ensure impl type implements protocol interface +var _ PComicEffect = (*ComicEffectObject)(nil) + +// A concrete type for the [PComicEffect] protocol. +type ComicEffectObject struct { objc.Object } -func (c_ ComicEffectWrapper) HasSetInputImage() bool { +func (c_ ComicEffectObject) 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/cicomiceffect/3228180-inputimage?language=objc -func (c_ ComicEffectWrapper) SetInputImage(value IImage) { +func (c_ ComicEffectObject) SetInputImage(value Image) { objc.Call[objc.Void](c_, objc.Sel("setInputImage:"), objc.Ptr(value)) } -func (c_ ComicEffectWrapper) HasInputImage() bool { +func (c_ ComicEffectObject) 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/cicomiceffect/3228180-inputimage?language=objc -func (c_ ComicEffectWrapper) InputImage() Image { +func (c_ ComicEffectObject) InputImage() Image { rv := objc.Call[Image](c_, objc.Sel("inputImage")) return rv } diff --git a/macos/coreimage/composite_operation.gen.go b/macos/coreimage/composite_operation_protocol.gen.go similarity index 69% rename from macos/coreimage/composite_operation.gen.go rename to macos/coreimage/composite_operation_protocol.gen.go index e27396f0..924b5753 100644 --- a/macos/coreimage/composite_operation.gen.go +++ b/macos/coreimage/composite_operation_protocol.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package coreimage @@ -15,7 +15,7 @@ type PCompositeOperation interface { HasSetInputImage() bool // optional - InputImage() IImage + InputImage() Image HasInputImage() bool // optional @@ -23,57 +23,60 @@ type PCompositeOperation interface { HasSetBackgroundImage() bool // optional - BackgroundImage() IImage + BackgroundImage() Image HasBackgroundImage() bool } -// A concrete type wrapper for the [PCompositeOperation] protocol. -type CompositeOperationWrapper struct { +// ensure impl type implements protocol interface +var _ PCompositeOperation = (*CompositeOperationObject)(nil) + +// A concrete type for the [PCompositeOperation] protocol. +type CompositeOperationObject struct { objc.Object } -func (c_ CompositeOperationWrapper) HasSetInputImage() bool { +func (c_ CompositeOperationObject) HasSetInputImage() bool { return c_.RespondsToSelector(objc.Sel("setInputImage:")) } // The image to use as a foreground image. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/coreimage/cicompositeoperation/3228183-inputimage?language=objc -func (c_ CompositeOperationWrapper) SetInputImage(value IImage) { +func (c_ CompositeOperationObject) SetInputImage(value Image) { objc.Call[objc.Void](c_, objc.Sel("setInputImage:"), objc.Ptr(value)) } -func (c_ CompositeOperationWrapper) HasInputImage() bool { +func (c_ CompositeOperationObject) HasInputImage() bool { return c_.RespondsToSelector(objc.Sel("inputImage")) } // The image to use as a foreground image. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/coreimage/cicompositeoperation/3228183-inputimage?language=objc -func (c_ CompositeOperationWrapper) InputImage() Image { +func (c_ CompositeOperationObject) InputImage() Image { rv := objc.Call[Image](c_, objc.Sel("inputImage")) return rv } -func (c_ CompositeOperationWrapper) HasSetBackgroundImage() bool { +func (c_ CompositeOperationObject) HasSetBackgroundImage() bool { return c_.RespondsToSelector(objc.Sel("setBackgroundImage:")) } // The image to use as a background image. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/coreimage/cicompositeoperation/3228182-backgroundimage?language=objc -func (c_ CompositeOperationWrapper) SetBackgroundImage(value IImage) { +func (c_ CompositeOperationObject) SetBackgroundImage(value Image) { objc.Call[objc.Void](c_, objc.Sel("setBackgroundImage:"), objc.Ptr(value)) } -func (c_ CompositeOperationWrapper) HasBackgroundImage() bool { +func (c_ CompositeOperationObject) HasBackgroundImage() bool { return c_.RespondsToSelector(objc.Sel("backgroundImage")) } // The image to use as a background image. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/coreimage/cicompositeoperation/3228182-backgroundimage?language=objc -func (c_ CompositeOperationWrapper) BackgroundImage() Image { +func (c_ CompositeOperationObject) BackgroundImage() Image { rv := objc.Call[Image](c_, objc.Sel("backgroundImage")) return rv } diff --git a/macos/coreimage/context.gen.go b/macos/coreimage/context.gen.go index 00b1793c..3e33821a 100644 --- a/macos/coreimage/context.gen.go +++ b/macos/coreimage/context.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package coreimage @@ -9,6 +9,7 @@ import ( "github.com/progrium/macdriver/macos/corevideo" "github.com/progrium/macdriver/macos/foundation" "github.com/progrium/macdriver/macos/imageio" + "github.com/progrium/macdriver/macos/iosurface" "github.com/progrium/macdriver/macos/metal" "github.com/progrium/macdriver/objc" ) @@ -23,28 +24,38 @@ type _ContextClass struct { // An interface definition for the [Context] class. type IContext interface { objc.IObject - WriteJPEGRepresentationOfImageToURLColorSpaceOptionsError(image IImage, url foundation.IURL, colorSpace coregraphics.ColorSpaceRef, options map[ImageRepresentationOption]objc.IObject, errorPtr foundation.IError) 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 + RenderToIOSurfaceBoundsColorSpace(image IImage, surface iosurface.Ref, bounds coregraphics.Rect, colorSpace coregraphics.ColorSpaceRef) ReclaimResources() - StartTaskToClearError(destination IRenderDestination, error foundation.IError) RenderTask + 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 foundation.IError) bool + DepthBlurEffectFilterForImageDisparityImagePortraitEffectsMatteHairSemanticSegmentationGlassesMatteGainMapOrientationOptions(image IImage, disparityImage IImage, portraitEffectsMatte IImage, hairSemanticSegmentation IImage, glassesMatte IImage, gainMap IImage, orientation imageio.ImagePropertyOrientation, options foundation.Dictionary) Filter WritePNGRepresentationOfImageToURLFormatColorSpaceOptionsError(image IImage, url foundation.IURL, format Format, colorSpace coregraphics.ColorSpaceRef, options map[ImageRepresentationOption]objc.IObject, errorPtr foundation.IError) bool + WriteJPEGRepresentationOfImageToURLColorSpaceOptionsError(image IImage, url foundation.IURL, colorSpace coregraphics.ColorSpaceRef, options map[ImageRepresentationOption]objc.IObject, errorPtr foundation.IError) bool + StartTaskToRenderFromRectToDestinationAtPointError(image IImage, fromRect coregraphics.Rect, destination IRenderDestination, atPoint coregraphics.Point, error foundation.IError) RenderTask + CreateCGImageFromRectFormatColorSpace(image IImage, fromRect coregraphics.Rect, format Format, colorSpace coregraphics.ColorSpaceRef) coregraphics.ImageRef DepthBlurEffectFilterForImageDataOptions(data []byte, options foundation.Dictionary) Filter - DepthBlurEffectFilterForImageURLOptions(url foundation.IURL, options foundation.Dictionary) Filter - PNGRepresentationOfImageFormatColorSpaceOptions(image IImage, format Format, colorSpace coregraphics.ColorSpaceRef, options map[ImageRepresentationOption]objc.IObject) []byte + StartTaskToClearError(destination IRenderDestination, error foundation.IError) 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 CreateCGImageFromRectFormatColorSpaceDeferred(image IImage, fromRect coregraphics.Rect, format Format, colorSpace coregraphics.ColorSpaceRef, deferred bool) coregraphics.ImageRef - WriteHEIF10RepresentationOfImageToURLColorSpaceOptionsError(image IImage, url foundation.IURL, colorSpace coregraphics.ColorSpaceRef, options map[ImageRepresentationOption]objc.IObject, errorPtr foundation.IError) bool + RenderToCVPixelBuffer(image IImage, buffer corevideo.PixelBufferRef) PrepareRenderFromRectToDestinationAtPointError(image IImage, fromRect coregraphics.Rect, destination IRenderDestination, atPoint coregraphics.Point, error foundation.IError) bool + WriteHEIFRepresentationOfImageToURLFormatColorSpaceOptionsError(image IImage, url foundation.IURL, format Format, colorSpace coregraphics.ColorSpaceRef, options map[ImageRepresentationOption]objc.IObject, errorPtr foundation.IError) 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 foundation.IError) RenderTask ClearCaches() + WriteHEIF10RepresentationOfImageToURLColorSpaceOptionsError(image IImage, url foundation.IURL, colorSpace coregraphics.ColorSpaceRef, options map[ImageRepresentationOption]objc.IObject, errorPtr foundation.IError) bool HEIF10RepresentationOfImageColorSpaceOptionsError(image IImage, colorSpace coregraphics.ColorSpaceRef, options map[ImageRepresentationOption]objc.IObject, errorPtr foundation.IError) []byte - HEIFRepresentationOfImageFormatColorSpaceOptions(image IImage, format Format, colorSpace coregraphics.ColorSpaceRef, options map[ImageRepresentationOption]objc.IObject) []byte - StartTaskToRenderToDestinationError(image IImage, destination IRenderDestination, error foundation.IError) RenderTask - WriteHEIFRepresentationOfImageToURLFormatColorSpaceOptionsError(image IImage, url foundation.IURL, format Format, colorSpace coregraphics.ColorSpaceRef, options map[ImageRepresentationOption]objc.IObject, errorPtr foundation.IError) 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 foundation.IError) bool - WorkingColorSpace() coregraphics.ColorSpaceRef + DrawImageInRectFromRect(image IImage, inRect coregraphics.Rect, fromRect coregraphics.Rect) WorkingFormat() Format + WorkingColorSpace() coregraphics.ColorSpaceRef } // An evaluation context for rendering image processing results and performing image analysis. [Full Topic] @@ -65,13 +76,23 @@ func (c_ Context) Init() Context { return rv } -func (cc _ContextClass) Alloc() Context { - rv := objc.Call[Context](cc, objc.Sel("alloc")) +func (c_ Context) InitWithOptions(options map[ContextOption]objc.IObject) Context { + rv := objc.Call[Context](c_, objc.Sel("initWithOptions:"), options) return rv } -func Context_Alloc() Context { - return ContextClass.Alloc() +// 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 } func (cc _ContextClass) New() Context { @@ -84,66 +105,73 @@ func NewContext() Context { return ContextClass.New() } -// Renders the image and exports the resulting image data as a file in JPEG format. [Full Topic] +// Renders a region of an image into an IOSurface object. [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 foundation.IError) bool { - rv := objc.Call[bool](c_, objc.Sel("writeJPEGRepresentationOfImage:toURL:colorSpace:options:error:"), objc.Ptr(image), objc.Ptr(url), colorSpace, options, objc.Ptr(errorPtr)) - return rv +// [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:"), objc.Ptr(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] // -// [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:"), objc.Ptr(image), objc.Ptr(disparityImage), objc.Ptr(portraitEffectsMatte), objc.Ptr(hairSemanticSegmentation), objc.Ptr(glassesMatte), objc.Ptr(gainMap), orientation, options) +// [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:"), objc.Ptr(image), objc.Ptr(disparityImage), objc.Ptr(portraitEffectsMatte), orientation, options) return rv } -// Renders an image into a pixel buffer. [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/1437853-render?language=objc -func (c_ Context) RenderToCVPixelBuffer(image IImage, buffer corevideo.PixelBufferRef) { - objc.Call[objc.Void](c_, objc.Sel("render:toCVPixelBuffer:"), objc.Ptr(image), buffer) +// [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 } -// Renders the image and exports the resulting image data in JPEG format. [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/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:"), objc.Ptr(image), colorSpace, options) - return rv +// [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) } -// Runs the garbage collector to reclaim any resources that the context no longer requires. [Full Topic] +// Renders a region of an image to a Metal texture. [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]: 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:"), objc.Ptr(image), po1, po2, bounds, colorSpace) } -// Fills the entire destination with black or clear depending on its alphaMode. [Full Topic] +// Renders a region of an image to a Metal texture. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/cicontext/2875450-starttasktoclear?language=objc -func (c_ Context) StartTaskToClearError(destination IRenderDestination, error foundation.IError) RenderTask { - rv := objc.Call[RenderTask](c_, objc.Sel("startTaskToClear:error:"), objc.Ptr(destination), objc.Ptr(error)) - return rv +// [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:"), objc.Ptr(image), objc.Ptr(textureObject), objc.Ptr(commandBufferObject), bounds, colorSpace) } -// Renders the image and exports the resulting image data as a file in PNG format. [Full Topic] +// Creates a Core Image context using the specified Metal device and options. [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 foundation.IError) bool { - rv := objc.Call[bool](c_, objc.Sel("writePNGRepresentationOfImage:toURL:format:colorSpace:options:error:"), objc.Ptr(image), objc.Ptr(url), format, colorSpace, options, objc.Ptr(errorPtr)) +// [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) return rv } -// [Full Topic] +// Creates a Core Image context using the specified Metal device and options. [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 +// [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] @@ -154,50 +182,99 @@ func (c_ Context) DepthBlurEffectFilterForImageURLOptions(url foundation.IURL, o return rv } -// Renders the image and exports the resulting image data in PNG format. [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/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:"), objc.Ptr(image), format, colorSpace, options) +// [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 foundation.IError) bool { + rv := objc.Call[bool](c_, objc.Sel("writeTIFFRepresentationOfImage:toURL:format:colorSpace:options:error:"), objc.Ptr(image), objc.Ptr(url), format, colorSpace, options, objc.Ptr(errorPtr)) return rv } -// Creates a Quartz 2D image from a region of a Core Image image object with deferred rendering. [Full Topic] +// [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:"), objc.Ptr(image), fromRect, format, colorSpace, deferred) +// [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:"), objc.Ptr(image), objc.Ptr(disparityImage), objc.Ptr(portraitEffectsMatte), objc.Ptr(hairSemanticSegmentation), objc.Ptr(glassesMatte), objc.Ptr(gainMap), orientation, options) return rv } // [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 foundation.IError) bool { - rv := objc.Call[bool](c_, objc.Sel("writeHEIF10RepresentationOfImage:toURL:colorSpace:options:error:"), objc.Ptr(image), objc.Ptr(url), colorSpace, options, objc.Ptr(errorPtr)) +// [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) return rv } -// 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] // -// [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 foundation.IError) bool { - rv := objc.Call[bool](c_, objc.Sel("prepareRender:fromRect:toDestination:atPoint:error:"), objc.Ptr(image), fromRect, objc.Ptr(destination), atPoint, objc.Ptr(error)) +// [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] +// +// [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 foundation.IError) bool { + rv := objc.Call[bool](c_, objc.Sel("writePNGRepresentationOfImage:toURL:format:colorSpace:options:error:"), objc.Ptr(image), objc.Ptr(url), format, colorSpace, options, objc.Ptr(errorPtr)) return rv } -// Frees any cached data, such as temporary images, associated with the context and runs the garbage collector. [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/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/1642218-writejpegrepresentationofimage?language=objc +func (c_ Context) WriteJPEGRepresentationOfImageToURLColorSpaceOptionsError(image IImage, url foundation.IURL, colorSpace coregraphics.ColorSpaceRef, options map[ImageRepresentationOption]objc.IObject, errorPtr foundation.IError) bool { + rv := objc.Call[bool](c_, objc.Sel("writeJPEGRepresentationOfImage:toURL:colorSpace:options:error:"), objc.Ptr(image), objc.Ptr(url), colorSpace, options, objc.Ptr(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 (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 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] +// +// [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 foundation.IError) RenderTask { + rv := objc.Call[RenderTask](c_, objc.Sel("startTaskToRender:fromRect:toDestination:atPoint:error:"), objc.Ptr(image), fromRect, objc.Ptr(destination), atPoint, objc.Ptr(error)) + return rv +} + +// Creates a Quartz 2D image from a region of a Core Image image object. [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:"), objc.Ptr(image), fromRect, format, colorSpace) + return rv } // [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 foundation.IError) []byte { - rv := objc.Call[[]byte](c_, objc.Sel("HEIF10RepresentationOfImage:colorSpace:options:error:"), objc.Ptr(image), colorSpace, options, objc.Ptr(errorPtr)) +// [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 foundation.IError) RenderTask { + rv := objc.Call[RenderTask](c_, objc.Sel("startTaskToClear:error:"), objc.Ptr(destination), objc.Ptr(error)) return rv } @@ -209,59 +286,91 @@ func (c_ Context) HEIFRepresentationOfImageFormatColorSpaceOptions(image IImage, return rv } -// Creates a context without a specific rendering destination, using default options. [Full Topic] +// [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/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:"), objc.Ptr(image), objc.Ptr(disparityImage), objc.Ptr(portraitEffectsMatte), objc.Ptr(hairSemanticSegmentation), orientation, options) return rv } -// Creates a context without a specific rendering destination, using default 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/1642219-context?language=objc -func Context_Context() Context { - return ContextClass.Context() +// [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:"), objc.Ptr(image), colorSpace, options) + 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] +// Renders the image and exports the resulting image data in TIFF format. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/cicontext/2875429-starttasktorender?language=objc -func (c_ Context) StartTaskToRenderToDestinationError(image IImage, destination IRenderDestination, error foundation.IError) RenderTask { - rv := objc.Call[RenderTask](c_, objc.Sel("startTaskToRender:toDestination:error:"), objc.Ptr(image), objc.Ptr(destination), objc.Ptr(error)) +// [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:"), objc.Ptr(image), format, colorSpace, options) return rv } -// Renders the image and exports the resulting image data as a file in HEIF format. [Full Topic] +// Creates a Quartz 2D image from a region of a Core Image image object. [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 foundation.IError) bool { - rv := objc.Call[bool](c_, objc.Sel("writeHEIFRepresentationOfImage:toURL:format:colorSpace:options:error:"), objc.Ptr(image), objc.Ptr(url), format, colorSpace, options, objc.Ptr(errorPtr)) +// [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:"), objc.Ptr(image), fromRect) return rv } -// Renders the image and exports the resulting image data in TIFF 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/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:"), objc.Ptr(image), format, colorSpace, options) +// [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:"), objc.Ptr(image), fromRect, format, colorSpace, deferred) 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 { +// [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 { po0 := objc.WrapAsProtocol("MTLCommandQueue", commandQueue) - rv := objc.Call[Context](cc, objc.Sel("contextWithMTLCommandQueue:"), po0) + rv := objc.Call[Context](cc, objc.Sel("contextWithMTLCommandQueue:options:"), po0, 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) +// [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:"), objc.Ptr(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 foundation.IError) bool { + rv := objc.Call[bool](c_, objc.Sel("prepareRender:fromRect:toDestination:atPoint:error:"), objc.Ptr(image), fromRect, objc.Ptr(destination), atPoint, objc.Ptr(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 foundation.IError) bool { + rv := objc.Call[bool](c_, objc.Sel("writeHEIFRepresentationOfImage:toURL:format:colorSpace:options:error:"), objc.Ptr(image), objc.Ptr(url), format, colorSpace, options, objc.Ptr(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:"), objc.Ptr(image), format, colorSpace, options) + return rv } // Returns the number of GPUs not currently driving a display. [Full Topic] @@ -279,66 +388,64 @@ func Context_OfflineGPUCount() int { return ContextClass.OfflineGPUCount() } -// Renders the image and exports the resulting image data as a file in TIFF format. [Full Topic] +// Renders a region of an image into a pixel buffer. [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 foundation.IError) bool { - rv := objc.Call[bool](c_, objc.Sel("writeTIFFRepresentationOfImage:toURL:format:colorSpace:options:error:"), objc.Ptr(image), objc.Ptr(url), format, colorSpace, options, objc.Ptr(errorPtr)) - return rv +// [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:"), objc.Ptr(image), buffer, bounds, colorSpace) } -// Creates a Core Image context from a Quartz context, using the specified options. [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/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/2875429-starttasktorender?language=objc +func (c_ Context) StartTaskToRenderToDestinationError(image IImage, destination IRenderDestination, error foundation.IError) RenderTask { + rv := objc.Call[RenderTask](c_, objc.Sel("startTaskToRender:toDestination:error:"), objc.Ptr(image), objc.Ptr(destination), objc.Ptr(error)) return rv } -// Creates a Core Image context from a Quartz context, using the specified options. [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/1437864-contextwithcgcontext?language=objc -func Context_ContextWithCGContextOptions(cgctx coregraphics.ContextRef, options map[ContextOption]objc.IObject) Context { - return ContextClass.ContextWithCGContextOptions(cgctx, options) +// [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")) } -// Initializes a context without a specific rendering destination, using the specified options. [Full Topic] +// [Full Topic] // -// [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) +// [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 foundation.IError) bool { + rv := objc.Call[bool](c_, objc.Sel("writeHEIF10RepresentationOfImage:toURL:colorSpace:options:error:"), objc.Ptr(image), objc.Ptr(url), colorSpace, options, objc.Ptr(errorPtr)) return rv } -// Initializes a context without a specific rendering destination, using the specified options. [Full Topic] +// [Full Topic] // -// [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) +// [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 foundation.IError) []byte { + rv := objc.Call[[]byte](c_, objc.Sel("HEIF10RepresentationOfImage:colorSpace:options:error:"), objc.Ptr(image), colorSpace, options, objc.Ptr(errorPtr)) + return rv } -// Creates a Core Image context using the specified Metal device. [Full Topic] +// Creates a context without a specific rendering destination, using default options. [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/1642219-context?language=objc +func (cc _ContextClass) Context() Context { + rv := objc.Call[Context](cc, objc.Sel("context")) return rv } -// Creates a Core Image context using the specified Metal device. [Full Topic] +// Creates a context without a specific rendering destination, using default options. [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) +// [Full Topic]: https://developer.apple.com/documentation/coreimage/cicontext/1642219-context?language=objc +func Context_Context() Context { + return ContextClass.Context() } -// The working color space of the Core Image context. [Full Topic] +// Renders a region of an image to a rectangle in the context destination. [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 +// [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:"), objc.Ptr(image), inRect, fromRect) } // The working pixel format of the Core Image context. [Full Topic] @@ -348,3 +455,11 @@ 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.gen.go b/macos/coreimage/convolution_protocol.gen.go similarity index 72% rename from macos/coreimage/convolution.gen.go rename to macos/coreimage/convolution_protocol.gen.go index 58223e4c..88de85ba 100644 --- a/macos/coreimage/convolution.gen.go +++ b/macos/coreimage/convolution_protocol.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package coreimage @@ -10,20 +10,12 @@ import ( // // [Full Topic]: https://developer.apple.com/documentation/coreimage/ciconvolution?language=objc type PConvolution interface { - // optional - SetInputImage(value Image) - HasSetInputImage() bool - - // optional - InputImage() IImage - HasInputImage() bool - // optional SetWeights(value Vector) HasSetWeights() bool // optional - Weights() IVector + Weights() Vector HasWeights() bool // optional @@ -33,78 +25,89 @@ type PConvolution interface { // optional Bias() float64 HasBias() bool -} - -// A concrete type wrapper for the [PConvolution] protocol. -type ConvolutionWrapper struct { - objc.Object -} -func (c_ ConvolutionWrapper) HasSetInputImage() bool { - return c_.RespondsToSelector(objc.Sel("setInputImage:")) -} + // optional + SetInputImage(value Image) + HasSetInputImage() bool -// 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_ ConvolutionWrapper) SetInputImage(value IImage) { - objc.Call[objc.Void](c_, objc.Sel("setInputImage:"), objc.Ptr(value)) + // optional + InputImage() Image + HasInputImage() bool } -func (c_ ConvolutionWrapper) HasInputImage() bool { - return c_.RespondsToSelector(objc.Sel("inputImage")) -} +// ensure impl type implements protocol interface +var _ PConvolution = (*ConvolutionObject)(nil) -// 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_ ConvolutionWrapper) InputImage() Image { - rv := objc.Call[Image](c_, objc.Sel("inputImage")) - return rv +// A concrete type for the [PConvolution] protocol. +type ConvolutionObject struct { + objc.Object } -func (c_ ConvolutionWrapper) HasSetWeights() bool { +func (c_ ConvolutionObject) HasSetWeights() bool { return c_.RespondsToSelector(objc.Sel("setWeights:")) } // The convolution kernel. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/coreimage/ciconvolution/3228187-weights?language=objc -func (c_ ConvolutionWrapper) SetWeights(value IVector) { +func (c_ ConvolutionObject) SetWeights(value Vector) { objc.Call[objc.Void](c_, objc.Sel("setWeights:"), objc.Ptr(value)) } -func (c_ ConvolutionWrapper) HasWeights() bool { +func (c_ ConvolutionObject) HasWeights() bool { return c_.RespondsToSelector(objc.Sel("weights")) } // The convolution kernel. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/coreimage/ciconvolution/3228187-weights?language=objc -func (c_ ConvolutionWrapper) Weights() Vector { +func (c_ ConvolutionObject) Weights() Vector { rv := objc.Call[Vector](c_, objc.Sel("weights")) return rv } -func (c_ ConvolutionWrapper) HasSetBias() bool { +func (c_ ConvolutionObject) HasSetBias() bool { return c_.RespondsToSelector(objc.Sel("setBias:")) } // A value that’s added to each output pixel. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/coreimage/ciconvolution/3228185-bias?language=objc -func (c_ ConvolutionWrapper) SetBias(value float64) { +func (c_ ConvolutionObject) SetBias(value float64) { objc.Call[objc.Void](c_, objc.Sel("setBias:"), value) } -func (c_ ConvolutionWrapper) HasBias() bool { +func (c_ ConvolutionObject) HasBias() bool { return c_.RespondsToSelector(objc.Sel("bias")) } // A value that’s added to each output pixel. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/coreimage/ciconvolution/3228185-bias?language=objc -func (c_ ConvolutionWrapper) Bias() float64 { +func (c_ ConvolutionObject) Bias() float64 { rv := objc.Call[float64](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:"), objc.Ptr(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.gen.go b/macos/coreimage/copy_machine_transition_protocol.gen.go similarity index 72% rename from macos/coreimage/copy_machine_transition.gen.go rename to macos/coreimage/copy_machine_transition_protocol.gen.go index c16a4266..f8f45d44 100644 --- a/macos/coreimage/copy_machine_transition.gen.go +++ b/macos/coreimage/copy_machine_transition_protocol.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package coreimage @@ -16,16 +16,16 @@ type PCopyMachineTransition interface { HasSetColor() bool // optional - Color() IColor + Color() Color HasColor() bool // optional - SetWidth(value float64) - HasSetWidth() bool + SetExtent(value coregraphics.Rect) + HasSetExtent() bool // optional - Width() float64 - HasWidth() bool + Extent() coregraphics.Rect + HasExtent() bool // optional SetOpacity(value float64) @@ -36,12 +36,12 @@ type PCopyMachineTransition interface { HasOpacity() bool // optional - SetExtent(value coregraphics.Rect) - HasSetExtent() bool + SetWidth(value float64) + HasSetWidth() bool // optional - Extent() coregraphics.Rect - HasExtent() bool + Width() float64 + HasWidth() bool // optional SetAngle(value float64) @@ -52,122 +52,125 @@ type PCopyMachineTransition interface { HasAngle() bool } -// A concrete type wrapper for the [PCopyMachineTransition] protocol. -type CopyMachineTransitionWrapper struct { +// ensure impl type implements protocol interface +var _ PCopyMachineTransition = (*CopyMachineTransitionObject)(nil) + +// A concrete type for the [PCopyMachineTransition] protocol. +type CopyMachineTransitionObject struct { objc.Object } -func (c_ CopyMachineTransitionWrapper) HasSetColor() bool { +func (c_ CopyMachineTransitionObject) HasSetColor() bool { return c_.RespondsToSelector(objc.Sel("setColor:")) } // The color of the copier light. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/coreimage/cicopymachinetransition/3228190-color?language=objc -func (c_ CopyMachineTransitionWrapper) SetColor(value IColor) { +func (c_ CopyMachineTransitionObject) SetColor(value Color) { objc.Call[objc.Void](c_, objc.Sel("setColor:"), objc.Ptr(value)) } -func (c_ CopyMachineTransitionWrapper) HasColor() bool { +func (c_ CopyMachineTransitionObject) HasColor() bool { return c_.RespondsToSelector(objc.Sel("color")) } // The color of the copier light. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/coreimage/cicopymachinetransition/3228190-color?language=objc -func (c_ CopyMachineTransitionWrapper) Color() Color { +func (c_ CopyMachineTransitionObject) Color() Color { rv := objc.Call[Color](c_, objc.Sel("color")) return rv } -func (c_ CopyMachineTransitionWrapper) 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_ CopyMachineTransitionWrapper) SetWidth(value float64) { - 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_ CopyMachineTransitionWrapper) 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_ CopyMachineTransitionWrapper) Width() float64 { - rv := objc.Call[float64](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 } -func (c_ CopyMachineTransitionWrapper) HasSetOpacity() bool { +func (c_ CopyMachineTransitionObject) HasSetOpacity() bool { return c_.RespondsToSelector(objc.Sel("setOpacity:")) } // The opacity of the copier light. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/coreimage/cicopymachinetransition/3228192-opacity?language=objc -func (c_ CopyMachineTransitionWrapper) SetOpacity(value float64) { +func (c_ CopyMachineTransitionObject) SetOpacity(value float64) { objc.Call[objc.Void](c_, objc.Sel("setOpacity:"), value) } -func (c_ CopyMachineTransitionWrapper) HasOpacity() bool { +func (c_ CopyMachineTransitionObject) HasOpacity() bool { return c_.RespondsToSelector(objc.Sel("opacity")) } // The opacity of the copier light. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/coreimage/cicopymachinetransition/3228192-opacity?language=objc -func (c_ CopyMachineTransitionWrapper) Opacity() float64 { +func (c_ CopyMachineTransitionObject) Opacity() float64 { rv := objc.Call[float64](c_, objc.Sel("opacity")) return rv } -func (c_ CopyMachineTransitionWrapper) 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_ CopyMachineTransitionWrapper) 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 float64) { + objc.Call[objc.Void](c_, objc.Sel("setWidth:"), value) } -func (c_ CopyMachineTransitionWrapper) 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_ CopyMachineTransitionWrapper) 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() float64 { + rv := objc.Call[float64](c_, objc.Sel("width")) return rv } -func (c_ CopyMachineTransitionWrapper) HasSetAngle() bool { +func (c_ CopyMachineTransitionObject) HasSetAngle() bool { return c_.RespondsToSelector(objc.Sel("setAngle:")) } // The angle of the copier light. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/coreimage/cicopymachinetransition/3228189-angle?language=objc -func (c_ CopyMachineTransitionWrapper) SetAngle(value float64) { +func (c_ CopyMachineTransitionObject) SetAngle(value float64) { objc.Call[objc.Void](c_, objc.Sel("setAngle:"), value) } -func (c_ CopyMachineTransitionWrapper) HasAngle() bool { +func (c_ CopyMachineTransitionObject) HasAngle() bool { return c_.RespondsToSelector(objc.Sel("angle")) } // The angle of the copier light. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/coreimage/cicopymachinetransition/3228189-angle?language=objc -func (c_ CopyMachineTransitionWrapper) Angle() float64 { +func (c_ CopyMachineTransitionObject) Angle() float64 { rv := objc.Call[float64](c_, objc.Sel("angle")) return rv } diff --git a/macos/coreimage/core_ml_model.gen.go b/macos/coreimage/core_ml_model_protocol.gen.go similarity index 75% rename from macos/coreimage/core_ml_model.gen.go rename to macos/coreimage/core_ml_model_protocol.gen.go index 3381a3e6..f295e9a4 100644 --- a/macos/coreimage/core_ml_model.gen.go +++ b/macos/coreimage/core_ml_model_protocol.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package coreimage @@ -12,20 +12,12 @@ import ( // [Full Topic]: https://developer.apple.com/documentation/coreimage/cicoremlmodel?language=objc type PCoreMLModel interface { // optional - SetModel(value coreml.Model) - HasSetModel() bool - - // optional - Model() coreml.IModel - HasModel() bool - - // optional - SetInputImage(value Image) - HasSetInputImage() bool + SetSoftmaxNormalization(value bool) + HasSetSoftmaxNormalization() bool // optional - InputImage() IImage - HasInputImage() bool + SoftmaxNormalization() bool + HasSoftmaxNormalization() bool // optional SetHeadIndex(value float64) @@ -36,107 +28,118 @@ type PCoreMLModel interface { HasHeadIndex() bool // optional - SetSoftmaxNormalization(value bool) - HasSetSoftmaxNormalization() bool + SetModel(value coreml.Model) + HasSetModel() bool // optional - SoftmaxNormalization() bool - HasSoftmaxNormalization() bool + Model() coreml.Model + HasModel() bool + + // optional + SetInputImage(value Image) + HasSetInputImage() bool + + // optional + InputImage() Image + HasInputImage() bool } -// A concrete type wrapper for the [PCoreMLModel] protocol. -type CoreMLModelWrapper struct { +// ensure impl type implements protocol interface +var _ PCoreMLModel = (*CoreMLModelObject)(nil) + +// A concrete type for the [PCoreMLModel] protocol. +type CoreMLModelObject struct { objc.Object } -func (c_ CoreMLModelWrapper) HasSetModel() bool { - return c_.RespondsToSelector(objc.Sel("setModel:")) +func (c_ CoreMLModelObject) HasSetSoftmaxNormalization() bool { + return c_.RespondsToSelector(objc.Sel("setSoftmaxNormalization:")) } -// The Core ML model used to apply the effect on the image. [Full Topic] +// 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/3228197-model?language=objc -func (c_ CoreMLModelWrapper) SetModel(value coreml.IModel) { - objc.Call[objc.Void](c_, objc.Sel("setModel:"), objc.Ptr(value)) +// [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_ CoreMLModelWrapper) HasModel() bool { - return c_.RespondsToSelector(objc.Sel("model")) +func (c_ CoreMLModelObject) HasSoftmaxNormalization() bool { + return c_.RespondsToSelector(objc.Sel("softmaxNormalization")) } -// The Core ML model used to apply the effect on the image. [Full Topic] +// 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/3228197-model?language=objc -func (c_ CoreMLModelWrapper) Model() coreml.Model { - rv := objc.Call[coreml.Model](c_, objc.Sel("model")) +// [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_ CoreMLModelWrapper) HasSetInputImage() bool { - return c_.RespondsToSelector(objc.Sel("setInputImage:")) +func (c_ CoreMLModelObject) HasSetHeadIndex() bool { + return c_.RespondsToSelector(objc.Sel("setHeadIndex:")) } -// The image to use as an input image. [Full Topic] +// 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/3228196-inputimage?language=objc -func (c_ CoreMLModelWrapper) SetInputImage(value IImage) { - objc.Call[objc.Void](c_, objc.Sel("setInputImage:"), objc.Ptr(value)) +// [Full Topic]: https://developer.apple.com/documentation/coreimage/cicoremlmodel/3228195-headindex?language=objc +func (c_ CoreMLModelObject) SetHeadIndex(value float64) { + objc.Call[objc.Void](c_, objc.Sel("setHeadIndex:"), value) } -func (c_ CoreMLModelWrapper) HasInputImage() bool { - return c_.RespondsToSelector(objc.Sel("inputImage")) +func (c_ CoreMLModelObject) HasHeadIndex() bool { + return c_.RespondsToSelector(objc.Sel("headIndex")) } -// The image to use as an input image. [Full Topic] +// 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/3228196-inputimage?language=objc -func (c_ CoreMLModelWrapper) InputImage() Image { - rv := objc.Call[Image](c_, objc.Sel("inputImage")) +// [Full Topic]: https://developer.apple.com/documentation/coreimage/cicoremlmodel/3228195-headindex?language=objc +func (c_ CoreMLModelObject) HeadIndex() float64 { + rv := objc.Call[float64](c_, objc.Sel("headIndex")) return rv } -func (c_ CoreMLModelWrapper) HasSetHeadIndex() bool { - return c_.RespondsToSelector(objc.Sel("setHeadIndex:")) +func (c_ CoreMLModelObject) HasSetModel() bool { + return c_.RespondsToSelector(objc.Sel("setModel:")) } -// A number that specifies which output of a multihead Core ML model applies the effect on the image. [Full Topic] +// The Core ML model used to apply the effect on the image. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/cicoremlmodel/3228195-headindex?language=objc -func (c_ CoreMLModelWrapper) SetHeadIndex(value float64) { - objc.Call[objc.Void](c_, objc.Sel("setHeadIndex:"), value) +// [Full Topic]: https://developer.apple.com/documentation/coreimage/cicoremlmodel/3228197-model?language=objc +func (c_ CoreMLModelObject) SetModel(value coreml.Model) { + objc.Call[objc.Void](c_, objc.Sel("setModel:"), objc.Ptr(value)) } -func (c_ CoreMLModelWrapper) HasHeadIndex() bool { - return c_.RespondsToSelector(objc.Sel("headIndex")) +func (c_ CoreMLModelObject) HasModel() bool { + return c_.RespondsToSelector(objc.Sel("model")) } -// A number that specifies which output of a multihead Core ML model applies the effect on the image. [Full Topic] +// The Core ML model used to apply the effect on the image. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/cicoremlmodel/3228195-headindex?language=objc -func (c_ CoreMLModelWrapper) HeadIndex() float64 { - rv := objc.Call[float64](c_, objc.Sel("headIndex")) +// [Full Topic]: https://developer.apple.com/documentation/coreimage/cicoremlmodel/3228197-model?language=objc +func (c_ CoreMLModelObject) Model() coreml.Model { + rv := objc.Call[coreml.Model](c_, objc.Sel("model")) return rv } -func (c_ CoreMLModelWrapper) HasSetSoftmaxNormalization() bool { - return c_.RespondsToSelector(objc.Sel("setSoftmaxNormalization:")) +func (c_ CoreMLModelObject) HasSetInputImage() bool { + return c_.RespondsToSelector(objc.Sel("setInputImage:")) } -// A Boolean value that specifies whether to apply Softmax normalization to the output of the model. [Full Topic] +// The image to use as an input image. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/cicoremlmodel/3228198-softmaxnormalization?language=objc -func (c_ CoreMLModelWrapper) SetSoftmaxNormalization(value bool) { - objc.Call[objc.Void](c_, objc.Sel("setSoftmaxNormalization:"), value) +// [Full Topic]: https://developer.apple.com/documentation/coreimage/cicoremlmodel/3228196-inputimage?language=objc +func (c_ CoreMLModelObject) SetInputImage(value Image) { + objc.Call[objc.Void](c_, objc.Sel("setInputImage:"), objc.Ptr(value)) } -func (c_ CoreMLModelWrapper) HasSoftmaxNormalization() bool { - return c_.RespondsToSelector(objc.Sel("softmaxNormalization")) +func (c_ CoreMLModelObject) HasInputImage() bool { + return c_.RespondsToSelector(objc.Sel("inputImage")) } -// A Boolean value that specifies whether to apply Softmax normalization to the output of the model. [Full Topic] +// The image to use as an input image. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/cicoremlmodel/3228198-softmaxnormalization?language=objc -func (c_ CoreMLModelWrapper) SoftmaxNormalization() bool { - rv := objc.Call[bool](c_, objc.Sel("softmaxNormalization")) +// [Full Topic]: https://developer.apple.com/documentation/coreimage/cicoremlmodel/3228196-inputimage?language=objc +func (c_ CoreMLModelObject) InputImage() Image { + rv := objc.Call[Image](c_, objc.Sel("inputImage")) return rv } diff --git a/macos/coreimage/crystallize.gen.go b/macos/coreimage/crystallize_protocol.gen.go similarity index 73% rename from macos/coreimage/crystallize.gen.go rename to macos/coreimage/crystallize_protocol.gen.go index 5c812c0e..f422325f 100644 --- a/macos/coreimage/crystallize.gen.go +++ b/macos/coreimage/crystallize_protocol.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package coreimage @@ -11,12 +11,20 @@ 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 // optional - InputImage() IImage + InputImage() Image HasInputImage() bool // optional @@ -26,86 +34,81 @@ type PCrystallize interface { // optional Radius() float64 HasRadius() bool +} - // optional - SetCenter(value coregraphics.Point) - HasSetCenter() bool +// ensure impl type implements protocol interface +var _ PCrystallize = (*CrystallizeObject)(nil) - // optional - Center() coregraphics.Point - HasCenter() bool +// A concrete type for the [PCrystallize] protocol. +type CrystallizeObject struct { + objc.Object } -// A concrete type wrapper for the [PCrystallize] protocol. -type CrystallizeWrapper 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")) } -func (c_ CrystallizeWrapper) HasSetInputImage() bool { +// 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:")) } // The image to use as an input image. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/coreimage/cicrystallize/3228201-inputimage?language=objc -func (c_ CrystallizeWrapper) SetInputImage(value IImage) { +func (c_ CrystallizeObject) SetInputImage(value Image) { objc.Call[objc.Void](c_, objc.Sel("setInputImage:"), objc.Ptr(value)) } -func (c_ CrystallizeWrapper) HasInputImage() bool { +func (c_ CrystallizeObject) 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/cicrystallize/3228201-inputimage?language=objc -func (c_ CrystallizeWrapper) InputImage() Image { +func (c_ CrystallizeObject) InputImage() Image { rv := objc.Call[Image](c_, objc.Sel("inputImage")) return rv } -func (c_ CrystallizeWrapper) HasSetRadius() bool { +func (c_ CrystallizeObject) HasSetRadius() bool { return c_.RespondsToSelector(objc.Sel("setRadius:")) } // The radius, in pixels, of the effect. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/coreimage/cicrystallize/3228202-radius?language=objc -func (c_ CrystallizeWrapper) SetRadius(value float64) { +func (c_ CrystallizeObject) SetRadius(value float64) { objc.Call[objc.Void](c_, objc.Sel("setRadius:"), value) } -func (c_ CrystallizeWrapper) HasRadius() bool { +func (c_ CrystallizeObject) HasRadius() bool { return c_.RespondsToSelector(objc.Sel("radius")) } // The radius, in pixels, of the effect. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/coreimage/cicrystallize/3228202-radius?language=objc -func (c_ CrystallizeWrapper) Radius() float64 { +func (c_ CrystallizeObject) Radius() float64 { rv := objc.Call[float64](c_, objc.Sel("radius")) return rv } - -func (c_ CrystallizeWrapper) 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_ CrystallizeWrapper) SetCenter(value coregraphics.Point) { - objc.Call[objc.Void](c_, objc.Sel("setCenter:"), value) -} - -func (c_ CrystallizeWrapper) 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_ CrystallizeWrapper) Center() coregraphics.Point { - rv := objc.Call[coregraphics.Point](c_, objc.Sel("center")) - return rv -} diff --git a/macos/coreimage/data_matrix_code_descriptor.gen.go b/macos/coreimage/data_matrix_code_descriptor.gen.go index cc81280b..27965e78 100644 --- a/macos/coreimage/data_matrix_code_descriptor.gen.go +++ b/macos/coreimage/data_matrix_code_descriptor.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package coreimage @@ -68,10 +68,6 @@ func (dc _DataMatrixCodeDescriptorClass) Alloc() DataMatrixCodeDescriptor { return rv } -func DataMatrixCodeDescriptor_Alloc() DataMatrixCodeDescriptor { - return DataMatrixCodeDescriptorClass.Alloc() -} - func (dc _DataMatrixCodeDescriptorClass) New() DataMatrixCodeDescriptor { rv := objc.Call[DataMatrixCodeDescriptor](dc, objc.Sel("new")) rv.Autorelease() diff --git a/macos/coreimage/depth_of_field.gen.go b/macos/coreimage/depth_of_field_protocol.gen.go similarity index 75% rename from macos/coreimage/depth_of_field.gen.go rename to macos/coreimage/depth_of_field_protocol.gen.go index 0ac66f28..693d1dc4 100644 --- a/macos/coreimage/depth_of_field.gen.go +++ b/macos/coreimage/depth_of_field_protocol.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package coreimage @@ -11,14 +11,6 @@ import ( // // [Full Topic]: https://developer.apple.com/documentation/coreimage/cidepthoffield?language=objc type PDepthOfField interface { - // optional - SetInputImage(value Image) - HasSetInputImage() bool - - // optional - InputImage() IImage - HasInputImage() bool - // optional SetSaturation(value float64) HasSetSaturation() bool @@ -27,22 +19,6 @@ type PDepthOfField interface { Saturation() float64 HasSaturation() bool - // optional - SetUnsharpMaskIntensity(value float64) - HasSetUnsharpMaskIntensity() bool - - // optional - UnsharpMaskIntensity() float64 - HasUnsharpMaskIntensity() bool - - // optional - SetRadius(value float64) - HasSetRadius() bool - - // optional - Radius() float64 - HasRadius() bool - // optional SetPoint1(value coregraphics.Point) HasSetPoint1() bool @@ -51,6 +27,14 @@ type PDepthOfField interface { Point1() coregraphics.Point HasPoint1() bool + // optional + SetUnsharpMaskRadius(value float64) + HasSetUnsharpMaskRadius() bool + + // optional + UnsharpMaskRadius() float64 + HasUnsharpMaskRadius() bool + // optional SetPoint0(value coregraphics.Point) HasSetPoint0() bool @@ -60,176 +44,195 @@ type PDepthOfField interface { HasPoint0() bool // optional - SetUnsharpMaskRadius(value float64) - HasSetUnsharpMaskRadius() bool + SetRadius(value float64) + HasSetRadius() bool // optional - UnsharpMaskRadius() float64 - HasUnsharpMaskRadius() bool -} + Radius() float64 + HasRadius() bool -// A concrete type wrapper for the [PDepthOfField] protocol. -type DepthOfFieldWrapper struct { - objc.Object -} + // optional + SetInputImage(value Image) + HasSetInputImage() bool -func (d_ DepthOfFieldWrapper) HasSetInputImage() bool { - return d_.RespondsToSelector(objc.Sel("setInputImage:")) -} + // optional + InputImage() Image + HasInputImage() bool -// 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_ DepthOfFieldWrapper) SetInputImage(value IImage) { - objc.Call[objc.Void](d_, objc.Sel("setInputImage:"), objc.Ptr(value)) -} + // optional + SetUnsharpMaskIntensity(value float64) + HasSetUnsharpMaskIntensity() bool -func (d_ DepthOfFieldWrapper) HasInputImage() bool { - return d_.RespondsToSelector(objc.Sel("inputImage")) + // optional + UnsharpMaskIntensity() float64 + HasUnsharpMaskIntensity() bool } -// 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_ DepthOfFieldWrapper) InputImage() Image { - rv := objc.Call[Image](d_, objc.Sel("inputImage")) - return rv +// ensure impl type implements protocol interface +var _ PDepthOfField = (*DepthOfFieldObject)(nil) + +// A concrete type for the [PDepthOfField] protocol. +type DepthOfFieldObject struct { + objc.Object } -func (d_ DepthOfFieldWrapper) HasSetSaturation() bool { +func (d_ DepthOfFieldObject) HasSetSaturation() bool { return d_.RespondsToSelector(objc.Sel("setSaturation:")) } // The amount to adjust the saturation by. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/coreimage/cidepthoffield/3228208-saturation?language=objc -func (d_ DepthOfFieldWrapper) SetSaturation(value float64) { +func (d_ DepthOfFieldObject) SetSaturation(value float64) { objc.Call[objc.Void](d_, objc.Sel("setSaturation:"), value) } -func (d_ DepthOfFieldWrapper) HasSaturation() bool { +func (d_ DepthOfFieldObject) HasSaturation() bool { return d_.RespondsToSelector(objc.Sel("saturation")) } // The amount to adjust the saturation by. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/coreimage/cidepthoffield/3228208-saturation?language=objc -func (d_ DepthOfFieldWrapper) Saturation() float64 { +func (d_ DepthOfFieldObject) Saturation() float64 { rv := objc.Call[float64](d_, objc.Sel("saturation")) return rv } -func (d_ DepthOfFieldWrapper) HasSetUnsharpMaskIntensity() bool { - return d_.RespondsToSelector(objc.Sel("setUnsharpMaskIntensity:")) +func (d_ DepthOfFieldObject) HasSetPoint1() bool { + return d_.RespondsToSelector(objc.Sel("setPoint1:")) } -// The intensity of the unsharp mask effect applied to the in-focus area. [Full Topic] +// The second point in the focused region of the output image. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/cidepthoffield/3228209-unsharpmaskintensity?language=objc -func (d_ DepthOfFieldWrapper) SetUnsharpMaskIntensity(value float64) { - objc.Call[objc.Void](d_, objc.Sel("setUnsharpMaskIntensity:"), value) +// [Full Topic]: https://developer.apple.com/documentation/coreimage/cidepthoffield/3228206-point1?language=objc +func (d_ DepthOfFieldObject) SetPoint1(value coregraphics.Point) { + objc.Call[objc.Void](d_, objc.Sel("setPoint1:"), value) } -func (d_ DepthOfFieldWrapper) HasUnsharpMaskIntensity() bool { - return d_.RespondsToSelector(objc.Sel("unsharpMaskIntensity")) +func (d_ DepthOfFieldObject) HasPoint1() bool { + return d_.RespondsToSelector(objc.Sel("point1")) } -// The intensity of the unsharp mask effect applied to the in-focus area. [Full Topic] +// The second point in the focused region of the output image. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/cidepthoffield/3228209-unsharpmaskintensity?language=objc -func (d_ DepthOfFieldWrapper) UnsharpMaskIntensity() float64 { - rv := objc.Call[float64](d_, objc.Sel("unsharpMaskIntensity")) +// [Full Topic]: https://developer.apple.com/documentation/coreimage/cidepthoffield/3228206-point1?language=objc +func (d_ DepthOfFieldObject) Point1() coregraphics.Point { + rv := objc.Call[coregraphics.Point](d_, objc.Sel("point1")) return rv } -func (d_ DepthOfFieldWrapper) HasSetRadius() bool { - return d_.RespondsToSelector(objc.Sel("setRadius:")) +func (d_ DepthOfFieldObject) HasSetUnsharpMaskRadius() bool { + return d_.RespondsToSelector(objc.Sel("setUnsharpMaskRadius:")) } -// The distance from the center of the effect. [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/3228207-radius?language=objc -func (d_ DepthOfFieldWrapper) SetRadius(value float64) { - objc.Call[objc.Void](d_, objc.Sel("setRadius:"), value) +// [Full Topic]: https://developer.apple.com/documentation/coreimage/cidepthoffield/3228210-unsharpmaskradius?language=objc +func (d_ DepthOfFieldObject) SetUnsharpMaskRadius(value float64) { + objc.Call[objc.Void](d_, objc.Sel("setUnsharpMaskRadius:"), value) } -func (d_ DepthOfFieldWrapper) HasRadius() bool { - return d_.RespondsToSelector(objc.Sel("radius")) +func (d_ DepthOfFieldObject) HasUnsharpMaskRadius() bool { + return d_.RespondsToSelector(objc.Sel("unsharpMaskRadius")) } -// The distance from the center of the effect. [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/3228207-radius?language=objc -func (d_ DepthOfFieldWrapper) Radius() float64 { - rv := objc.Call[float64](d_, objc.Sel("radius")) +// [Full Topic]: https://developer.apple.com/documentation/coreimage/cidepthoffield/3228210-unsharpmaskradius?language=objc +func (d_ DepthOfFieldObject) UnsharpMaskRadius() float64 { + rv := objc.Call[float64](d_, objc.Sel("unsharpMaskRadius")) return rv } -func (d_ DepthOfFieldWrapper) HasSetPoint1() bool { - return d_.RespondsToSelector(objc.Sel("setPoint1:")) +func (d_ DepthOfFieldObject) HasSetPoint0() bool { + return d_.RespondsToSelector(objc.Sel("setPoint0:")) } -// The second point in the focused region of the output image. [Full Topic] +// The first point in the focused region of the output image. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/cidepthoffield/3228206-point1?language=objc -func (d_ DepthOfFieldWrapper) SetPoint1(value coregraphics.Point) { - objc.Call[objc.Void](d_, objc.Sel("setPoint1:"), value) +// [Full Topic]: https://developer.apple.com/documentation/coreimage/cidepthoffield/3228205-point0?language=objc +func (d_ DepthOfFieldObject) SetPoint0(value coregraphics.Point) { + objc.Call[objc.Void](d_, objc.Sel("setPoint0:"), value) } -func (d_ DepthOfFieldWrapper) HasPoint1() bool { - return d_.RespondsToSelector(objc.Sel("point1")) +func (d_ DepthOfFieldObject) HasPoint0() bool { + return d_.RespondsToSelector(objc.Sel("point0")) } -// The second point in the focused region of the output image. [Full Topic] +// The first point in the focused region of the output image. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/cidepthoffield/3228206-point1?language=objc -func (d_ DepthOfFieldWrapper) Point1() coregraphics.Point { - rv := objc.Call[coregraphics.Point](d_, objc.Sel("point1")) +// [Full Topic]: https://developer.apple.com/documentation/coreimage/cidepthoffield/3228205-point0?language=objc +func (d_ DepthOfFieldObject) Point0() coregraphics.Point { + rv := objc.Call[coregraphics.Point](d_, objc.Sel("point0")) return rv } -func (d_ DepthOfFieldWrapper) HasSetPoint0() bool { - return d_.RespondsToSelector(objc.Sel("setPoint0:")) +func (d_ DepthOfFieldObject) HasSetRadius() bool { + return d_.RespondsToSelector(objc.Sel("setRadius:")) } -// The first point in the focused region of the output image. [Full Topic] +// The distance from the center of the effect. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/cidepthoffield/3228205-point0?language=objc -func (d_ DepthOfFieldWrapper) SetPoint0(value coregraphics.Point) { - objc.Call[objc.Void](d_, objc.Sel("setPoint0:"), value) +// [Full Topic]: https://developer.apple.com/documentation/coreimage/cidepthoffield/3228207-radius?language=objc +func (d_ DepthOfFieldObject) SetRadius(value float64) { + objc.Call[objc.Void](d_, objc.Sel("setRadius:"), value) } -func (d_ DepthOfFieldWrapper) HasPoint0() bool { - return d_.RespondsToSelector(objc.Sel("point0")) +func (d_ DepthOfFieldObject) HasRadius() bool { + return d_.RespondsToSelector(objc.Sel("radius")) } -// The first point in the focused region of the output image. [Full Topic] +// The distance from the center of the effect. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/cidepthoffield/3228205-point0?language=objc -func (d_ DepthOfFieldWrapper) Point0() coregraphics.Point { - rv := objc.Call[coregraphics.Point](d_, objc.Sel("point0")) +// [Full Topic]: https://developer.apple.com/documentation/coreimage/cidepthoffield/3228207-radius?language=objc +func (d_ DepthOfFieldObject) Radius() float64 { + rv := objc.Call[float64](d_, objc.Sel("radius")) return rv } -func (d_ DepthOfFieldWrapper) HasSetUnsharpMaskRadius() bool { - return d_.RespondsToSelector(objc.Sel("setUnsharpMaskRadius:")) +func (d_ DepthOfFieldObject) HasSetInputImage() bool { + return d_.RespondsToSelector(objc.Sel("setInputImage:")) } -// The radius of the unsharp mask effect applied to the in-focus area. [Full Topic] +// The image to use as an input image. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/cidepthoffield/3228210-unsharpmaskradius?language=objc -func (d_ DepthOfFieldWrapper) SetUnsharpMaskRadius(value float64) { - objc.Call[objc.Void](d_, objc.Sel("setUnsharpMaskRadius:"), value) +// [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:"), objc.Ptr(value)) } -func (d_ DepthOfFieldWrapper) HasUnsharpMaskRadius() bool { - return d_.RespondsToSelector(objc.Sel("unsharpMaskRadius")) +func (d_ DepthOfFieldObject) HasInputImage() bool { + return d_.RespondsToSelector(objc.Sel("inputImage")) } -// The radius of the unsharp mask effect applied to the in-focus area. [Full Topic] +// The image to use as an input image. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/cidepthoffield/3228210-unsharpmaskradius?language=objc -func (d_ DepthOfFieldWrapper) UnsharpMaskRadius() float64 { - rv := objc.Call[float64](d_, objc.Sel("unsharpMaskRadius")) +// [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:")) +} + +// 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 float64) { + 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() float64 { + rv := objc.Call[float64](d_, objc.Sel("unsharpMaskIntensity")) return rv } diff --git a/macos/coreimage/depth_to_disparity.gen.go b/macos/coreimage/depth_to_disparity_protocol.gen.go similarity index 67% rename from macos/coreimage/depth_to_disparity.gen.go rename to macos/coreimage/depth_to_disparity_protocol.gen.go index c56350ce..118bb17b 100644 --- a/macos/coreimage/depth_to_disparity.gen.go +++ b/macos/coreimage/depth_to_disparity_protocol.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package coreimage @@ -15,34 +15,37 @@ type PDepthToDisparity interface { HasSetInputImage() bool // optional - InputImage() IImage + InputImage() Image HasInputImage() bool } -// A concrete type wrapper for the [PDepthToDisparity] protocol. -type DepthToDisparityWrapper struct { +// ensure impl type implements protocol interface +var _ PDepthToDisparity = (*DepthToDisparityObject)(nil) + +// A concrete type for the [PDepthToDisparity] protocol. +type DepthToDisparityObject struct { objc.Object } -func (d_ DepthToDisparityWrapper) HasSetInputImage() bool { +func (d_ DepthToDisparityObject) 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/cidepthtodisparity/3228212-inputimage?language=objc -func (d_ DepthToDisparityWrapper) SetInputImage(value IImage) { +func (d_ DepthToDisparityObject) SetInputImage(value Image) { objc.Call[objc.Void](d_, objc.Sel("setInputImage:"), objc.Ptr(value)) } -func (d_ DepthToDisparityWrapper) HasInputImage() bool { +func (d_ DepthToDisparityObject) 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/cidepthtodisparity/3228212-inputimage?language=objc -func (d_ DepthToDisparityWrapper) InputImage() Image { +func (d_ DepthToDisparityObject) InputImage() Image { rv := objc.Call[Image](d_, objc.Sel("inputImage")) return rv } diff --git a/macos/coreimage/detector.gen.go b/macos/coreimage/detector.gen.go index b0befcae..e98160be 100644 --- a/macos/coreimage/detector.gen.go +++ b/macos/coreimage/detector.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package coreimage @@ -19,6 +19,7 @@ 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] @@ -39,10 +40,6 @@ func (dc _DetectorClass) Alloc() Detector { return rv } -func Detector_Alloc() Detector { - return DetectorClass.Alloc() -} - func (dc _DetectorClass) New() Detector { rv := objc.Call[Detector](dc, objc.Sel("new")) rv.Autorelease() @@ -58,14 +55,6 @@ 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:"), objc.Ptr(image)) - return rv -} - // Creates and returns a configured detector. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/coreimage/cidetector/1437884-detectoroftype?language=objc @@ -80,3 +69,19 @@ 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:"), objc.Ptr(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:"), objc.Ptr(image), options) + return rv +} diff --git a/macos/coreimage/disc_blur.gen.go b/macos/coreimage/disc_blur_protocol.gen.go similarity index 72% rename from macos/coreimage/disc_blur.gen.go rename to macos/coreimage/disc_blur_protocol.gen.go index 4797a1bf..feb9de8b 100644 --- a/macos/coreimage/disc_blur.gen.go +++ b/macos/coreimage/disc_blur_protocol.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package coreimage @@ -10,14 +10,6 @@ import ( // // [Full Topic]: https://developer.apple.com/documentation/coreimage/cidiscblur?language=objc type PDiscBlur interface { - // optional - SetInputImage(value Image) - HasSetInputImage() bool - - // optional - InputImage() IImage - HasInputImage() bool - // optional SetRadius(value float64) HasSetRadius() bool @@ -25,55 +17,66 @@ type PDiscBlur interface { // optional Radius() float64 HasRadius() bool + + // optional + SetInputImage(value Image) + HasSetInputImage() bool + + // optional + InputImage() Image + HasInputImage() bool } -// A concrete type wrapper for the [PDiscBlur] protocol. -type DiscBlurWrapper struct { +// ensure impl type implements protocol interface +var _ PDiscBlur = (*DiscBlurObject)(nil) + +// A concrete type for the [PDiscBlur] protocol. +type DiscBlurObject struct { objc.Object } -func (d_ DiscBlurWrapper) HasSetInputImage() bool { - return d_.RespondsToSelector(objc.Sel("setInputImage:")) +func (d_ DiscBlurObject) HasSetRadius() bool { + return d_.RespondsToSelector(objc.Sel("setRadius:")) } -// The image to use as an input image. [Full Topic] +// The radius of the blur, in pixels. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/cidiscblur/3228214-inputimage?language=objc -func (d_ DiscBlurWrapper) SetInputImage(value IImage) { - objc.Call[objc.Void](d_, objc.Sel("setInputImage:"), objc.Ptr(value)) +// [Full Topic]: https://developer.apple.com/documentation/coreimage/cidiscblur/3228215-radius?language=objc +func (d_ DiscBlurObject) SetRadius(value float64) { + objc.Call[objc.Void](d_, objc.Sel("setRadius:"), value) } -func (d_ DiscBlurWrapper) HasInputImage() bool { - return d_.RespondsToSelector(objc.Sel("inputImage")) +func (d_ DiscBlurObject) HasRadius() bool { + return d_.RespondsToSelector(objc.Sel("radius")) } -// The image to use as an input image. [Full Topic] +// The radius of the blur, in pixels. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/cidiscblur/3228214-inputimage?language=objc -func (d_ DiscBlurWrapper) InputImage() Image { - rv := objc.Call[Image](d_, objc.Sel("inputImage")) +// [Full Topic]: https://developer.apple.com/documentation/coreimage/cidiscblur/3228215-radius?language=objc +func (d_ DiscBlurObject) Radius() float64 { + rv := objc.Call[float64](d_, objc.Sel("radius")) return rv } -func (d_ DiscBlurWrapper) HasSetRadius() bool { - return d_.RespondsToSelector(objc.Sel("setRadius:")) +func (d_ DiscBlurObject) HasSetInputImage() bool { + return d_.RespondsToSelector(objc.Sel("setInputImage:")) } -// The radius of the blur, in pixels. [Full Topic] +// The image to use as an input image. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/cidiscblur/3228215-radius?language=objc -func (d_ DiscBlurWrapper) SetRadius(value float64) { - objc.Call[objc.Void](d_, objc.Sel("setRadius:"), value) +// [Full Topic]: https://developer.apple.com/documentation/coreimage/cidiscblur/3228214-inputimage?language=objc +func (d_ DiscBlurObject) SetInputImage(value Image) { + objc.Call[objc.Void](d_, objc.Sel("setInputImage:"), objc.Ptr(value)) } -func (d_ DiscBlurWrapper) HasRadius() bool { - return d_.RespondsToSelector(objc.Sel("radius")) +func (d_ DiscBlurObject) HasInputImage() bool { + return d_.RespondsToSelector(objc.Sel("inputImage")) } -// The radius of the blur, in pixels. [Full Topic] +// The image to use as an input image. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/cidiscblur/3228215-radius?language=objc -func (d_ DiscBlurWrapper) Radius() float64 { - rv := objc.Call[float64](d_, objc.Sel("radius")) +// [Full Topic]: https://developer.apple.com/documentation/coreimage/cidiscblur/3228214-inputimage?language=objc +func (d_ DiscBlurObject) InputImage() Image { + rv := objc.Call[Image](d_, objc.Sel("inputImage")) return rv } diff --git a/macos/coreimage/disintegrate_with_mask_transition.gen.go b/macos/coreimage/disintegrate_with_mask_transition_protocol.gen.go similarity index 71% rename from macos/coreimage/disintegrate_with_mask_transition.gen.go rename to macos/coreimage/disintegrate_with_mask_transition_protocol.gen.go index 5e3af88c..4d0b25b3 100644 --- a/macos/coreimage/disintegrate_with_mask_transition.gen.go +++ b/macos/coreimage/disintegrate_with_mask_transition_protocol.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package coreimage @@ -12,131 +12,134 @@ import ( // [Full Topic]: https://developer.apple.com/documentation/coreimage/cidisintegratewithmasktransition?language=objc type PDisintegrateWithMaskTransition interface { // optional - SetShadowDensity(value float64) - HasSetShadowDensity() bool + SetShadowRadius(value float64) + HasSetShadowRadius() bool // optional - ShadowDensity() float64 - HasShadowDensity() bool + ShadowRadius() float64 + HasShadowRadius() bool // optional - SetShadowOffset(value coregraphics.Point) - HasSetShadowOffset() bool + SetShadowDensity(value float64) + HasSetShadowDensity() bool // optional - ShadowOffset() coregraphics.Point - HasShadowOffset() bool + ShadowDensity() float64 + HasShadowDensity() bool // optional SetMaskImage(value Image) HasSetMaskImage() bool // optional - MaskImage() IImage + MaskImage() Image HasMaskImage() bool // optional - SetShadowRadius(value float64) - HasSetShadowRadius() bool + SetShadowOffset(value coregraphics.Point) + HasSetShadowOffset() bool // optional - ShadowRadius() float64 - HasShadowRadius() bool + ShadowOffset() coregraphics.Point + HasShadowOffset() bool } -// A concrete type wrapper for the [PDisintegrateWithMaskTransition] protocol. -type DisintegrateWithMaskTransitionWrapper struct { +// ensure impl type implements protocol interface +var _ PDisintegrateWithMaskTransition = (*DisintegrateWithMaskTransitionObject)(nil) + +// A concrete type for the [PDisintegrateWithMaskTransition] protocol. +type DisintegrateWithMaskTransitionObject struct { objc.Object } -func (d_ DisintegrateWithMaskTransitionWrapper) HasSetShadowDensity() bool { - return d_.RespondsToSelector(objc.Sel("setShadowDensity:")) +func (d_ DisintegrateWithMaskTransitionObject) HasSetShadowRadius() bool { + return d_.RespondsToSelector(objc.Sel("setShadowRadius:")) } -// The density 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/3228218-shadowdensity?language=objc -func (d_ DisintegrateWithMaskTransitionWrapper) SetShadowDensity(value float64) { - objc.Call[objc.Void](d_, objc.Sel("setShadowDensity:"), value) +// [Full Topic]: https://developer.apple.com/documentation/coreimage/cidisintegratewithmasktransition/3228220-shadowradius?language=objc +func (d_ DisintegrateWithMaskTransitionObject) SetShadowRadius(value float64) { + objc.Call[objc.Void](d_, objc.Sel("setShadowRadius:"), value) } -func (d_ DisintegrateWithMaskTransitionWrapper) HasShadowDensity() bool { - return d_.RespondsToSelector(objc.Sel("shadowDensity")) +func (d_ DisintegrateWithMaskTransitionObject) HasShadowRadius() bool { + return d_.RespondsToSelector(objc.Sel("shadowRadius")) } -// The density 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/3228218-shadowdensity?language=objc -func (d_ DisintegrateWithMaskTransitionWrapper) ShadowDensity() float64 { - rv := objc.Call[float64](d_, objc.Sel("shadowDensity")) +// [Full Topic]: https://developer.apple.com/documentation/coreimage/cidisintegratewithmasktransition/3228220-shadowradius?language=objc +func (d_ DisintegrateWithMaskTransitionObject) ShadowRadius() float64 { + rv := objc.Call[float64](d_, objc.Sel("shadowRadius")) return rv } -func (d_ DisintegrateWithMaskTransitionWrapper) HasSetShadowOffset() bool { - return d_.RespondsToSelector(objc.Sel("setShadowOffset:")) +func (d_ DisintegrateWithMaskTransitionObject) HasSetShadowDensity() bool { + return d_.RespondsToSelector(objc.Sel("setShadowDensity:")) } -// The offset of the shadow the mask creates. [Full Topic] +// The density of the shadow the mask creates. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/cidisintegratewithmasktransition/3228219-shadowoffset?language=objc -func (d_ DisintegrateWithMaskTransitionWrapper) SetShadowOffset(value coregraphics.Point) { - objc.Call[objc.Void](d_, objc.Sel("setShadowOffset:"), value) +// [Full Topic]: https://developer.apple.com/documentation/coreimage/cidisintegratewithmasktransition/3228218-shadowdensity?language=objc +func (d_ DisintegrateWithMaskTransitionObject) SetShadowDensity(value float64) { + objc.Call[objc.Void](d_, objc.Sel("setShadowDensity:"), value) } -func (d_ DisintegrateWithMaskTransitionWrapper) HasShadowOffset() bool { - return d_.RespondsToSelector(objc.Sel("shadowOffset")) +func (d_ DisintegrateWithMaskTransitionObject) HasShadowDensity() bool { + return d_.RespondsToSelector(objc.Sel("shadowDensity")) } -// The offset of the shadow the mask creates. [Full Topic] +// The density of the shadow the mask creates. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/cidisintegratewithmasktransition/3228219-shadowoffset?language=objc -func (d_ DisintegrateWithMaskTransitionWrapper) ShadowOffset() coregraphics.Point { - rv := objc.Call[coregraphics.Point](d_, objc.Sel("shadowOffset")) +// [Full Topic]: https://developer.apple.com/documentation/coreimage/cidisintegratewithmasktransition/3228218-shadowdensity?language=objc +func (d_ DisintegrateWithMaskTransitionObject) ShadowDensity() float64 { + rv := objc.Call[float64](d_, objc.Sel("shadowDensity")) return rv } -func (d_ DisintegrateWithMaskTransitionWrapper) HasSetMaskImage() bool { +func (d_ DisintegrateWithMaskTransitionObject) HasSetMaskImage() bool { return d_.RespondsToSelector(objc.Sel("setMaskImage:")) } // An image that defines the shape to use when disintegrating from the source to the target image. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/coreimage/cidisintegratewithmasktransition/3228217-maskimage?language=objc -func (d_ DisintegrateWithMaskTransitionWrapper) SetMaskImage(value IImage) { +func (d_ DisintegrateWithMaskTransitionObject) SetMaskImage(value Image) { objc.Call[objc.Void](d_, objc.Sel("setMaskImage:"), objc.Ptr(value)) } -func (d_ DisintegrateWithMaskTransitionWrapper) HasMaskImage() bool { +func (d_ DisintegrateWithMaskTransitionObject) HasMaskImage() bool { return d_.RespondsToSelector(objc.Sel("maskImage")) } // An image that defines the shape to use when disintegrating from the source to the target image. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/coreimage/cidisintegratewithmasktransition/3228217-maskimage?language=objc -func (d_ DisintegrateWithMaskTransitionWrapper) MaskImage() Image { +func (d_ DisintegrateWithMaskTransitionObject) MaskImage() Image { rv := objc.Call[Image](d_, objc.Sel("maskImage")) return rv } -func (d_ DisintegrateWithMaskTransitionWrapper) HasSetShadowRadius() bool { - return d_.RespondsToSelector(objc.Sel("setShadowRadius:")) +func (d_ DisintegrateWithMaskTransitionObject) HasSetShadowOffset() bool { + return d_.RespondsToSelector(objc.Sel("setShadowOffset:")) } -// The radius of the shadow the mask creates. [Full Topic] +// The offset of the shadow the mask creates. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/cidisintegratewithmasktransition/3228220-shadowradius?language=objc -func (d_ DisintegrateWithMaskTransitionWrapper) SetShadowRadius(value float64) { - objc.Call[objc.Void](d_, objc.Sel("setShadowRadius:"), value) +// [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_ DisintegrateWithMaskTransitionWrapper) HasShadowRadius() bool { - return d_.RespondsToSelector(objc.Sel("shadowRadius")) +func (d_ DisintegrateWithMaskTransitionObject) HasShadowOffset() bool { + return d_.RespondsToSelector(objc.Sel("shadowOffset")) } -// The radius of the shadow the mask creates. [Full Topic] +// The offset of the shadow the mask creates. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/cidisintegratewithmasktransition/3228220-shadowradius?language=objc -func (d_ DisintegrateWithMaskTransitionWrapper) ShadowRadius() float64 { - rv := objc.Call[float64](d_, objc.Sel("shadowRadius")) +// [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 } diff --git a/macos/coreimage/disparity_to_depth.gen.go b/macos/coreimage/disparity_to_depth_protocol.gen.go similarity index 67% rename from macos/coreimage/disparity_to_depth.gen.go rename to macos/coreimage/disparity_to_depth_protocol.gen.go index 016a299a..603aeb9e 100644 --- a/macos/coreimage/disparity_to_depth.gen.go +++ b/macos/coreimage/disparity_to_depth_protocol.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package coreimage @@ -15,34 +15,37 @@ type PDisparityToDepth interface { HasSetInputImage() bool // optional - InputImage() IImage + InputImage() Image HasInputImage() bool } -// A concrete type wrapper for the [PDisparityToDepth] protocol. -type DisparityToDepthWrapper struct { +// ensure impl type implements protocol interface +var _ PDisparityToDepth = (*DisparityToDepthObject)(nil) + +// A concrete type for the [PDisparityToDepth] protocol. +type DisparityToDepthObject struct { objc.Object } -func (d_ DisparityToDepthWrapper) HasSetInputImage() bool { +func (d_ DisparityToDepthObject) 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/cidisparitytodepth/3228222-inputimage?language=objc -func (d_ DisparityToDepthWrapper) SetInputImage(value IImage) { +func (d_ DisparityToDepthObject) SetInputImage(value Image) { objc.Call[objc.Void](d_, objc.Sel("setInputImage:"), objc.Ptr(value)) } -func (d_ DisparityToDepthWrapper) HasInputImage() bool { +func (d_ DisparityToDepthObject) 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/cidisparitytodepth/3228222-inputimage?language=objc -func (d_ DisparityToDepthWrapper) InputImage() Image { +func (d_ DisparityToDepthObject) InputImage() Image { rv := objc.Call[Image](d_, objc.Sel("inputImage")) return rv } diff --git a/macos/coreimage/displacement_distortion.gen.go b/macos/coreimage/displacement_distortion_protocol.gen.go similarity index 67% rename from macos/coreimage/displacement_distortion.gen.go rename to macos/coreimage/displacement_distortion_protocol.gen.go index 41ce4d9b..4445bd75 100644 --- a/macos/coreimage/displacement_distortion.gen.go +++ b/macos/coreimage/displacement_distortion_protocol.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package coreimage @@ -19,92 +19,95 @@ type PDisplacementDistortion interface { HasScale() bool // optional - SetInputImage(value Image) - HasSetInputImage() bool + SetDisplacementImage(value Image) + HasSetDisplacementImage() bool // optional - InputImage() IImage - HasInputImage() bool + DisplacementImage() Image + HasDisplacementImage() bool // optional - SetDisplacementImage(value Image) - HasSetDisplacementImage() bool + SetInputImage(value Image) + HasSetInputImage() bool // optional - DisplacementImage() IImage - HasDisplacementImage() bool + InputImage() Image + HasInputImage() bool } -// A concrete type wrapper for the [PDisplacementDistortion] protocol. -type DisplacementDistortionWrapper struct { +// ensure impl type implements protocol interface +var _ PDisplacementDistortion = (*DisplacementDistortionObject)(nil) + +// A concrete type for the [PDisplacementDistortion] protocol. +type DisplacementDistortionObject struct { objc.Object } -func (d_ DisplacementDistortionWrapper) HasSetScale() bool { +func (d_ DisplacementDistortionObject) HasSetScale() bool { return d_.RespondsToSelector(objc.Sel("setScale:")) } // [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/coreimage/cidisplacementdistortion/3600129-scale?language=objc -func (d_ DisplacementDistortionWrapper) SetScale(value float64) { +func (d_ DisplacementDistortionObject) SetScale(value float64) { objc.Call[objc.Void](d_, objc.Sel("setScale:"), value) } -func (d_ DisplacementDistortionWrapper) HasScale() bool { +func (d_ DisplacementDistortionObject) HasScale() bool { return d_.RespondsToSelector(objc.Sel("scale")) } // [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/coreimage/cidisplacementdistortion/3600129-scale?language=objc -func (d_ DisplacementDistortionWrapper) Scale() float64 { +func (d_ DisplacementDistortionObject) Scale() float64 { rv := objc.Call[float64](d_, objc.Sel("scale")) return rv } -func (d_ DisplacementDistortionWrapper) 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_ DisplacementDistortionWrapper) SetInputImage(value IImage) { - objc.Call[objc.Void](d_, objc.Sel("setInputImage:"), objc.Ptr(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:"), objc.Ptr(value)) } -func (d_ DisplacementDistortionWrapper) 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_ DisplacementDistortionWrapper) 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 } -func (d_ DisplacementDistortionWrapper) 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_ DisplacementDistortionWrapper) SetDisplacementImage(value IImage) { - objc.Call[objc.Void](d_, objc.Sel("setDisplacementImage:"), objc.Ptr(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:"), objc.Ptr(value)) } -func (d_ DisplacementDistortionWrapper) 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_ DisplacementDistortionWrapper) 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 } diff --git a/macos/coreimage/dissolve_transition.gen.go b/macos/coreimage/dissolve_transition_protocol.gen.go similarity index 55% rename from macos/coreimage/dissolve_transition.gen.go rename to macos/coreimage/dissolve_transition_protocol.gen.go index 8080c23e..4962b271 100644 --- a/macos/coreimage/dissolve_transition.gen.go +++ b/macos/coreimage/dissolve_transition_protocol.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package coreimage @@ -12,7 +12,10 @@ import ( type PDissolveTransition interface { } -// A concrete type wrapper for the [PDissolveTransition] protocol. -type DissolveTransitionWrapper struct { +// ensure impl type implements protocol interface +var _ PDissolveTransition = (*DissolveTransitionObject)(nil) + +// A concrete type for the [PDissolveTransition] protocol. +type DissolveTransitionObject struct { objc.Object } diff --git a/macos/coreimage/dither.gen.go b/macos/coreimage/dither_protocol.gen.go similarity index 73% rename from macos/coreimage/dither.gen.go rename to macos/coreimage/dither_protocol.gen.go index 6eada0fd..5f3ef16a 100644 --- a/macos/coreimage/dither.gen.go +++ b/macos/coreimage/dither_protocol.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package coreimage @@ -10,14 +10,6 @@ import ( // // [Full Topic]: https://developer.apple.com/documentation/coreimage/cidither?language=objc type PDither interface { - // optional - SetInputImage(value Image) - HasSetInputImage() bool - - // optional - InputImage() IImage - HasInputImage() bool - // optional SetIntensity(value float64) HasSetIntensity() bool @@ -25,55 +17,66 @@ type PDither interface { // optional Intensity() float64 HasIntensity() bool + + // optional + SetInputImage(value Image) + HasSetInputImage() bool + + // optional + InputImage() Image + HasInputImage() bool } -// A concrete type wrapper for the [PDither] protocol. -type DitherWrapper struct { +// ensure impl type implements protocol interface +var _ PDither = (*DitherObject)(nil) + +// A concrete type for the [PDither] protocol. +type DitherObject struct { objc.Object } -func (d_ DitherWrapper) HasSetInputImage() bool { - return d_.RespondsToSelector(objc.Sel("setInputImage:")) +func (d_ DitherObject) HasSetIntensity() bool { + return d_.RespondsToSelector(objc.Sel("setIntensity:")) } -// The image to use as an input image. [Full Topic] +// The intensity of the effect. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/cidither/3228225-inputimage?language=objc -func (d_ DitherWrapper) SetInputImage(value IImage) { - objc.Call[objc.Void](d_, objc.Sel("setInputImage:"), objc.Ptr(value)) +// [Full Topic]: https://developer.apple.com/documentation/coreimage/cidither/3228226-intensity?language=objc +func (d_ DitherObject) SetIntensity(value float64) { + objc.Call[objc.Void](d_, objc.Sel("setIntensity:"), value) } -func (d_ DitherWrapper) HasInputImage() bool { - return d_.RespondsToSelector(objc.Sel("inputImage")) +func (d_ DitherObject) HasIntensity() bool { + return d_.RespondsToSelector(objc.Sel("intensity")) } -// The image to use as an input image. [Full Topic] +// The intensity of the effect. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/cidither/3228225-inputimage?language=objc -func (d_ DitherWrapper) InputImage() Image { - rv := objc.Call[Image](d_, objc.Sel("inputImage")) +// [Full Topic]: https://developer.apple.com/documentation/coreimage/cidither/3228226-intensity?language=objc +func (d_ DitherObject) Intensity() float64 { + rv := objc.Call[float64](d_, objc.Sel("intensity")) return rv } -func (d_ DitherWrapper) HasSetIntensity() bool { - return d_.RespondsToSelector(objc.Sel("setIntensity:")) +func (d_ DitherObject) HasSetInputImage() bool { + return d_.RespondsToSelector(objc.Sel("setInputImage:")) } -// The intensity of the effect. [Full Topic] +// The image to use as an input image. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/cidither/3228226-intensity?language=objc -func (d_ DitherWrapper) SetIntensity(value float64) { - objc.Call[objc.Void](d_, objc.Sel("setIntensity:"), value) +// [Full Topic]: https://developer.apple.com/documentation/coreimage/cidither/3228225-inputimage?language=objc +func (d_ DitherObject) SetInputImage(value Image) { + objc.Call[objc.Void](d_, objc.Sel("setInputImage:"), objc.Ptr(value)) } -func (d_ DitherWrapper) HasIntensity() bool { - return d_.RespondsToSelector(objc.Sel("intensity")) +func (d_ DitherObject) HasInputImage() bool { + return d_.RespondsToSelector(objc.Sel("inputImage")) } -// The intensity of the effect. [Full Topic] +// The image to use as an input image. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/cidither/3228226-intensity?language=objc -func (d_ DitherWrapper) Intensity() float64 { - rv := objc.Call[float64](d_, objc.Sel("intensity")) +// [Full Topic]: https://developer.apple.com/documentation/coreimage/cidither/3228225-inputimage?language=objc +func (d_ DitherObject) InputImage() Image { + rv := objc.Call[Image](d_, objc.Sel("inputImage")) return rv } diff --git a/macos/coreimage/doc.gen.go b/macos/coreimage/doc.gen.go index eb3730bb..8d8aae15 100644 --- a/macos/coreimage/doc.gen.go +++ b/macos/coreimage/doc.gen.go @@ -1,8 +1,8 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. // Use built-in or custom filters to process still and video images. // -// [Full Documentation] +// [Apple Documentation] // -// [Full Documentation]: https://developer.apple.com/documentation/coreimage?language=objc +// [Apple Documentation]: https://developer.apple.com/documentation/coreimage?language=objc package coreimage diff --git a/macos/coreimage/document_enhancer.gen.go b/macos/coreimage/document_enhancer_protocol.gen.go similarity index 70% rename from macos/coreimage/document_enhancer.gen.go rename to macos/coreimage/document_enhancer_protocol.gen.go index 1d5be26a..32bd11d5 100644 --- a/macos/coreimage/document_enhancer.gen.go +++ b/macos/coreimage/document_enhancer_protocol.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package coreimage @@ -10,14 +10,6 @@ import ( // // [Full Topic]: https://developer.apple.com/documentation/coreimage/cidocumentenhancer?language=objc type PDocumentEnhancer interface { - // optional - SetInputImage(value Image) - HasSetInputImage() bool - - // optional - InputImage() IImage - HasInputImage() bool - // optional SetAmount(value float64) HasSetAmount() bool @@ -25,55 +17,66 @@ type PDocumentEnhancer interface { // optional Amount() float64 HasAmount() bool + + // optional + SetInputImage(value Image) + HasSetInputImage() bool + + // optional + InputImage() Image + HasInputImage() bool } -// A concrete type wrapper for the [PDocumentEnhancer] protocol. -type DocumentEnhancerWrapper struct { +// ensure impl type implements protocol interface +var _ PDocumentEnhancer = (*DocumentEnhancerObject)(nil) + +// A concrete type for the [PDocumentEnhancer] protocol. +type DocumentEnhancerObject struct { objc.Object } -func (d_ DocumentEnhancerWrapper) HasSetInputImage() bool { - return d_.RespondsToSelector(objc.Sel("setInputImage:")) +func (d_ DocumentEnhancerObject) HasSetAmount() bool { + return d_.RespondsToSelector(objc.Sel("setAmount:")) } -// The image to use as an input image. [Full Topic] +// The amount of enhancement. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/cidocumentenhancer/3228229-inputimage?language=objc -func (d_ DocumentEnhancerWrapper) SetInputImage(value IImage) { - objc.Call[objc.Void](d_, objc.Sel("setInputImage:"), objc.Ptr(value)) +// [Full Topic]: https://developer.apple.com/documentation/coreimage/cidocumentenhancer/3228228-amount?language=objc +func (d_ DocumentEnhancerObject) SetAmount(value float64) { + objc.Call[objc.Void](d_, objc.Sel("setAmount:"), value) } -func (d_ DocumentEnhancerWrapper) HasInputImage() bool { - return d_.RespondsToSelector(objc.Sel("inputImage")) +func (d_ DocumentEnhancerObject) HasAmount() bool { + return d_.RespondsToSelector(objc.Sel("amount")) } -// The image to use as an input image. [Full Topic] +// The amount of enhancement. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/cidocumentenhancer/3228229-inputimage?language=objc -func (d_ DocumentEnhancerWrapper) InputImage() Image { - rv := objc.Call[Image](d_, objc.Sel("inputImage")) +// [Full Topic]: https://developer.apple.com/documentation/coreimage/cidocumentenhancer/3228228-amount?language=objc +func (d_ DocumentEnhancerObject) Amount() float64 { + rv := objc.Call[float64](d_, objc.Sel("amount")) return rv } -func (d_ DocumentEnhancerWrapper) HasSetAmount() bool { - return d_.RespondsToSelector(objc.Sel("setAmount:")) +func (d_ DocumentEnhancerObject) HasSetInputImage() bool { + return d_.RespondsToSelector(objc.Sel("setInputImage:")) } -// The amount of enhancement. [Full Topic] +// The image to use as an input image. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/cidocumentenhancer/3228228-amount?language=objc -func (d_ DocumentEnhancerWrapper) SetAmount(value float64) { - objc.Call[objc.Void](d_, objc.Sel("setAmount:"), value) +// [Full Topic]: https://developer.apple.com/documentation/coreimage/cidocumentenhancer/3228229-inputimage?language=objc +func (d_ DocumentEnhancerObject) SetInputImage(value Image) { + objc.Call[objc.Void](d_, objc.Sel("setInputImage:"), objc.Ptr(value)) } -func (d_ DocumentEnhancerWrapper) HasAmount() bool { - return d_.RespondsToSelector(objc.Sel("amount")) +func (d_ DocumentEnhancerObject) HasInputImage() bool { + return d_.RespondsToSelector(objc.Sel("inputImage")) } -// The amount of enhancement. [Full Topic] +// The image to use as an input image. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/cidocumentenhancer/3228228-amount?language=objc -func (d_ DocumentEnhancerWrapper) Amount() float64 { - rv := objc.Call[float64](d_, objc.Sel("amount")) +// [Full Topic]: https://developer.apple.com/documentation/coreimage/cidocumentenhancer/3228229-inputimage?language=objc +func (d_ DocumentEnhancerObject) InputImage() Image { + rv := objc.Call[Image](d_, objc.Sel("inputImage")) return rv } diff --git a/macos/coreimage/dot_screen.gen.go b/macos/coreimage/dot_screen_protocol.gen.go similarity index 75% rename from macos/coreimage/dot_screen.gen.go rename to macos/coreimage/dot_screen_protocol.gen.go index 902ca3fe..4f6830c1 100644 --- a/macos/coreimage/dot_screen.gen.go +++ b/macos/coreimage/dot_screen_protocol.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package coreimage @@ -12,28 +12,28 @@ import ( // [Full Topic]: https://developer.apple.com/documentation/coreimage/cidotscreen?language=objc type PDotScreen interface { // optional - SetWidth(value float64) - HasSetWidth() bool + SetCenter(value coregraphics.Point) + HasSetCenter() bool // optional - Width() float64 - HasWidth() bool + Center() coregraphics.Point + HasCenter() bool // optional SetInputImage(value Image) HasSetInputImage() bool // optional - InputImage() IImage + InputImage() Image HasInputImage() bool // optional - SetSharpness(value float64) - HasSetSharpness() bool + SetWidth(value float64) + HasSetWidth() bool // optional - Sharpness() float64 - HasSharpness() bool + Width() float64 + HasWidth() bool // optional SetAngle(value float64) @@ -44,130 +44,133 @@ type PDotScreen interface { HasAngle() bool // optional - SetCenter(value coregraphics.Point) - HasSetCenter() bool + SetSharpness(value float64) + HasSetSharpness() bool // optional - Center() coregraphics.Point - HasCenter() bool + Sharpness() float64 + HasSharpness() bool } -// A concrete type wrapper for the [PDotScreen] protocol. -type DotScreenWrapper struct { +// ensure impl type implements protocol interface +var _ PDotScreen = (*DotScreenObject)(nil) + +// A concrete type for the [PDotScreen] protocol. +type DotScreenObject struct { objc.Object } -func (d_ DotScreenWrapper) HasSetWidth() bool { - return d_.RespondsToSelector(objc.Sel("setWidth:")) +func (d_ DotScreenObject) HasSetCenter() bool { + return d_.RespondsToSelector(objc.Sel("setCenter:")) } -// The distance between dots in 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/3228235-width?language=objc -func (d_ DotScreenWrapper) SetWidth(value float64) { - objc.Call[objc.Void](d_, objc.Sel("setWidth:"), 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_ DotScreenWrapper) HasWidth() bool { - return d_.RespondsToSelector(objc.Sel("width")) +func (d_ DotScreenObject) HasCenter() bool { + return d_.RespondsToSelector(objc.Sel("center")) } -// The distance between dots in 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/3228235-width?language=objc -func (d_ DotScreenWrapper) Width() float64 { - rv := objc.Call[float64](d_, objc.Sel("width")) +// [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 } -func (d_ DotScreenWrapper) HasSetInputImage() bool { +func (d_ DotScreenObject) 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/cidotscreen/3228233-inputimage?language=objc -func (d_ DotScreenWrapper) SetInputImage(value IImage) { +func (d_ DotScreenObject) SetInputImage(value Image) { objc.Call[objc.Void](d_, objc.Sel("setInputImage:"), objc.Ptr(value)) } -func (d_ DotScreenWrapper) HasInputImage() bool { +func (d_ DotScreenObject) 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/cidotscreen/3228233-inputimage?language=objc -func (d_ DotScreenWrapper) InputImage() Image { +func (d_ DotScreenObject) InputImage() Image { rv := objc.Call[Image](d_, objc.Sel("inputImage")) return rv } -func (d_ DotScreenWrapper) HasSetSharpness() bool { - return d_.RespondsToSelector(objc.Sel("setSharpness:")) +func (d_ DotScreenObject) HasSetWidth() bool { + return d_.RespondsToSelector(objc.Sel("setWidth:")) } -// The sharpness of the pattern. [Full Topic] +// The distance between dots in the pattern. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/cidotscreen/3228234-sharpness?language=objc -func (d_ DotScreenWrapper) SetSharpness(value float64) { - objc.Call[objc.Void](d_, objc.Sel("setSharpness:"), value) +// [Full Topic]: https://developer.apple.com/documentation/coreimage/cidotscreen/3228235-width?language=objc +func (d_ DotScreenObject) SetWidth(value float64) { + objc.Call[objc.Void](d_, objc.Sel("setWidth:"), value) } -func (d_ DotScreenWrapper) HasSharpness() bool { - return d_.RespondsToSelector(objc.Sel("sharpness")) +func (d_ DotScreenObject) HasWidth() bool { + return d_.RespondsToSelector(objc.Sel("width")) } -// The sharpness of the pattern. [Full Topic] +// The distance between dots in the pattern. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/cidotscreen/3228234-sharpness?language=objc -func (d_ DotScreenWrapper) Sharpness() float64 { - rv := objc.Call[float64](d_, objc.Sel("sharpness")) +// [Full Topic]: https://developer.apple.com/documentation/coreimage/cidotscreen/3228235-width?language=objc +func (d_ DotScreenObject) Width() float64 { + rv := objc.Call[float64](d_, objc.Sel("width")) return rv } -func (d_ DotScreenWrapper) HasSetAngle() bool { +func (d_ DotScreenObject) HasSetAngle() bool { return d_.RespondsToSelector(objc.Sel("setAngle:")) } // The angle of the pattern. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/coreimage/cidotscreen/3228231-angle?language=objc -func (d_ DotScreenWrapper) SetAngle(value float64) { +func (d_ DotScreenObject) SetAngle(value float64) { objc.Call[objc.Void](d_, objc.Sel("setAngle:"), value) } -func (d_ DotScreenWrapper) HasAngle() bool { +func (d_ DotScreenObject) HasAngle() bool { return d_.RespondsToSelector(objc.Sel("angle")) } // The angle of the pattern. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/coreimage/cidotscreen/3228231-angle?language=objc -func (d_ DotScreenWrapper) Angle() float64 { +func (d_ DotScreenObject) Angle() float64 { rv := objc.Call[float64](d_, objc.Sel("angle")) return rv } -func (d_ DotScreenWrapper) HasSetCenter() bool { - return d_.RespondsToSelector(objc.Sel("setCenter:")) +func (d_ DotScreenObject) HasSetSharpness() bool { + return d_.RespondsToSelector(objc.Sel("setSharpness:")) } -// The x and y position to use as the center of the dot screen pattern. [Full Topic] +// The sharpness of the pattern. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/cidotscreen/3228232-center?language=objc -func (d_ DotScreenWrapper) SetCenter(value coregraphics.Point) { - objc.Call[objc.Void](d_, objc.Sel("setCenter:"), value) +// [Full Topic]: https://developer.apple.com/documentation/coreimage/cidotscreen/3228234-sharpness?language=objc +func (d_ DotScreenObject) SetSharpness(value float64) { + objc.Call[objc.Void](d_, objc.Sel("setSharpness:"), value) } -func (d_ DotScreenWrapper) HasCenter() bool { - return d_.RespondsToSelector(objc.Sel("center")) +func (d_ DotScreenObject) HasSharpness() bool { + return d_.RespondsToSelector(objc.Sel("sharpness")) } -// The x and y position to use as the center of the dot screen pattern. [Full Topic] +// The sharpness of the pattern. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/cidotscreen/3228232-center?language=objc -func (d_ DotScreenWrapper) Center() coregraphics.Point { - rv := objc.Call[coregraphics.Point](d_, objc.Sel("center")) +// [Full Topic]: https://developer.apple.com/documentation/coreimage/cidotscreen/3228234-sharpness?language=objc +func (d_ DotScreenObject) Sharpness() float64 { + rv := objc.Call[float64](d_, objc.Sel("sharpness")) return rv } diff --git a/macos/coreimage/droste.gen.go b/macos/coreimage/droste_protocol.gen.go similarity index 74% rename from macos/coreimage/droste.gen.go rename to macos/coreimage/droste_protocol.gen.go index 43991c74..bb064e3f 100644 --- a/macos/coreimage/droste.gen.go +++ b/macos/coreimage/droste_protocol.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package coreimage @@ -12,12 +12,12 @@ import ( // [Full Topic]: https://developer.apple.com/documentation/coreimage/cidroste?language=objc type PDroste interface { // optional - SetInputImage(value Image) - HasSetInputImage() bool + SetInsetPoint1(value coregraphics.Point) + HasSetInsetPoint1() bool // optional - InputImage() IImage - HasInputImage() bool + InsetPoint1() coregraphics.Point + HasInsetPoint1() bool // optional SetPeriodicity(value float64) @@ -27,14 +27,6 @@ type PDroste interface { Periodicity() float64 HasPeriodicity() bool - // optional - SetRotation(value float64) - HasSetRotation() bool - - // optional - Rotation() float64 - HasRotation() bool - // optional SetInsetPoint0(value coregraphics.Point) HasSetInsetPoint0() bool @@ -44,12 +36,12 @@ type PDroste interface { HasInsetPoint0() bool // optional - SetZoom(value float64) - HasSetZoom() bool + SetRotation(value float64) + HasSetRotation() bool // optional - Zoom() float64 - HasZoom() bool + Rotation() float64 + HasRotation() bool // optional SetStrands(value float64) @@ -60,176 +52,187 @@ type PDroste interface { HasStrands() bool // optional - SetInsetPoint1(value coregraphics.Point) - HasSetInsetPoint1() bool + SetZoom(value float64) + HasSetZoom() bool // optional - InsetPoint1() coregraphics.Point - HasInsetPoint1() bool + Zoom() float64 + HasZoom() bool + + // optional + SetInputImage(value Image) + HasSetInputImage() bool + + // optional + InputImage() Image + HasInputImage() bool } -// A concrete type wrapper for the [PDroste] protocol. -type DrosteWrapper struct { +// ensure impl type implements protocol interface +var _ PDroste = (*DrosteObject)(nil) + +// A concrete type for the [PDroste] protocol. +type DrosteObject struct { objc.Object } -func (d_ DrosteWrapper) HasSetInputImage() bool { - return d_.RespondsToSelector(objc.Sel("setInputImage:")) +func (d_ DrosteObject) HasSetInsetPoint1() bool { + return d_.RespondsToSelector(objc.Sel("setInsetPoint1:")) } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/cidroste/3600131-inputimage?language=objc -func (d_ DrosteWrapper) SetInputImage(value IImage) { - objc.Call[objc.Void](d_, objc.Sel("setInputImage:"), objc.Ptr(value)) +// [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_ DrosteWrapper) HasInputImage() bool { - return d_.RespondsToSelector(objc.Sel("inputImage")) +func (d_ DrosteObject) HasInsetPoint1() bool { + return d_.RespondsToSelector(objc.Sel("insetPoint1")) } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/cidroste/3600131-inputimage?language=objc -func (d_ DrosteWrapper) InputImage() Image { - rv := objc.Call[Image](d_, objc.Sel("inputImage")) +// [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 } -func (d_ DrosteWrapper) HasSetPeriodicity() bool { +func (d_ DrosteObject) HasSetPeriodicity() bool { return d_.RespondsToSelector(objc.Sel("setPeriodicity:")) } // [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/coreimage/cidroste/3600134-periodicity?language=objc -func (d_ DrosteWrapper) SetPeriodicity(value float64) { +func (d_ DrosteObject) SetPeriodicity(value float64) { objc.Call[objc.Void](d_, objc.Sel("setPeriodicity:"), value) } -func (d_ DrosteWrapper) HasPeriodicity() bool { +func (d_ DrosteObject) HasPeriodicity() bool { return d_.RespondsToSelector(objc.Sel("periodicity")) } // [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/coreimage/cidroste/3600134-periodicity?language=objc -func (d_ DrosteWrapper) Periodicity() float64 { +func (d_ DrosteObject) Periodicity() float64 { rv := objc.Call[float64](d_, objc.Sel("periodicity")) return rv } -func (d_ DrosteWrapper) HasSetRotation() bool { - return d_.RespondsToSelector(objc.Sel("setRotation:")) +func (d_ DrosteObject) HasSetInsetPoint0() bool { + return d_.RespondsToSelector(objc.Sel("setInsetPoint0:")) } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/cidroste/3600135-rotation?language=objc -func (d_ DrosteWrapper) SetRotation(value float64) { - objc.Call[objc.Void](d_, objc.Sel("setRotation:"), 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_ DrosteWrapper) HasRotation() bool { - return d_.RespondsToSelector(objc.Sel("rotation")) +func (d_ DrosteObject) HasInsetPoint0() bool { + return d_.RespondsToSelector(objc.Sel("insetPoint0")) } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/cidroste/3600135-rotation?language=objc -func (d_ DrosteWrapper) Rotation() float64 { - rv := objc.Call[float64](d_, objc.Sel("rotation")) +// [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_ DrosteWrapper) HasSetInsetPoint0() bool { - return d_.RespondsToSelector(objc.Sel("setInsetPoint0:")) +func (d_ DrosteObject) HasSetRotation() bool { + return d_.RespondsToSelector(objc.Sel("setRotation:")) } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/cidroste/3600132-insetpoint0?language=objc -func (d_ DrosteWrapper) SetInsetPoint0(value coregraphics.Point) { - objc.Call[objc.Void](d_, objc.Sel("setInsetPoint0:"), value) +// [Full Topic]: https://developer.apple.com/documentation/coreimage/cidroste/3600135-rotation?language=objc +func (d_ DrosteObject) SetRotation(value float64) { + objc.Call[objc.Void](d_, objc.Sel("setRotation:"), value) } -func (d_ DrosteWrapper) HasInsetPoint0() bool { - return d_.RespondsToSelector(objc.Sel("insetPoint0")) +func (d_ DrosteObject) HasRotation() bool { + return d_.RespondsToSelector(objc.Sel("rotation")) } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/cidroste/3600132-insetpoint0?language=objc -func (d_ DrosteWrapper) InsetPoint0() coregraphics.Point { - rv := objc.Call[coregraphics.Point](d_, objc.Sel("insetPoint0")) +// [Full Topic]: https://developer.apple.com/documentation/coreimage/cidroste/3600135-rotation?language=objc +func (d_ DrosteObject) Rotation() float64 { + rv := objc.Call[float64](d_, objc.Sel("rotation")) return rv } -func (d_ DrosteWrapper) HasSetZoom() bool { - return d_.RespondsToSelector(objc.Sel("setZoom:")) +func (d_ DrosteObject) HasSetStrands() bool { + return d_.RespondsToSelector(objc.Sel("setStrands:")) } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/cidroste/3600137-zoom?language=objc -func (d_ DrosteWrapper) SetZoom(value float64) { - objc.Call[objc.Void](d_, objc.Sel("setZoom:"), value) +// [Full Topic]: https://developer.apple.com/documentation/coreimage/cidroste/3600136-strands?language=objc +func (d_ DrosteObject) SetStrands(value float64) { + objc.Call[objc.Void](d_, objc.Sel("setStrands:"), value) } -func (d_ DrosteWrapper) HasZoom() bool { - return d_.RespondsToSelector(objc.Sel("zoom")) +func (d_ DrosteObject) HasStrands() bool { + return d_.RespondsToSelector(objc.Sel("strands")) } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/cidroste/3600137-zoom?language=objc -func (d_ DrosteWrapper) Zoom() float64 { - rv := objc.Call[float64](d_, objc.Sel("zoom")) +// [Full Topic]: https://developer.apple.com/documentation/coreimage/cidroste/3600136-strands?language=objc +func (d_ DrosteObject) Strands() float64 { + rv := objc.Call[float64](d_, objc.Sel("strands")) return rv } -func (d_ DrosteWrapper) HasSetStrands() bool { - return d_.RespondsToSelector(objc.Sel("setStrands:")) +func (d_ DrosteObject) HasSetZoom() bool { + return d_.RespondsToSelector(objc.Sel("setZoom:")) } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/cidroste/3600136-strands?language=objc -func (d_ DrosteWrapper) SetStrands(value float64) { - objc.Call[objc.Void](d_, objc.Sel("setStrands:"), value) +// [Full Topic]: https://developer.apple.com/documentation/coreimage/cidroste/3600137-zoom?language=objc +func (d_ DrosteObject) SetZoom(value float64) { + objc.Call[objc.Void](d_, objc.Sel("setZoom:"), value) } -func (d_ DrosteWrapper) HasStrands() bool { - return d_.RespondsToSelector(objc.Sel("strands")) +func (d_ DrosteObject) HasZoom() bool { + return d_.RespondsToSelector(objc.Sel("zoom")) } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/cidroste/3600136-strands?language=objc -func (d_ DrosteWrapper) Strands() float64 { - rv := objc.Call[float64](d_, objc.Sel("strands")) +// [Full Topic]: https://developer.apple.com/documentation/coreimage/cidroste/3600137-zoom?language=objc +func (d_ DrosteObject) Zoom() float64 { + rv := objc.Call[float64](d_, objc.Sel("zoom")) return rv } -func (d_ DrosteWrapper) 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_ DrosteWrapper) 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:"), objc.Ptr(value)) } -func (d_ DrosteWrapper) 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_ DrosteWrapper) 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 } diff --git a/macos/coreimage/edge_preserve_upsample.gen.go b/macos/coreimage/edge_preserve_upsample_protocol.gen.go similarity index 73% rename from macos/coreimage/edge_preserve_upsample.gen.go rename to macos/coreimage/edge_preserve_upsample_protocol.gen.go index 79bc461b..9b3f566a 100644 --- a/macos/coreimage/edge_preserve_upsample.gen.go +++ b/macos/coreimage/edge_preserve_upsample_protocol.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package coreimage @@ -10,12 +10,20 @@ 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 // optional - InputImage() IImage + InputImage() Image HasInputImage() bool // optional @@ -26,14 +34,6 @@ type PEdgePreserveUpsample interface { SpatialSigma() float64 HasSpatialSigma() bool - // optional - SetSmallImage(value Image) - HasSetSmallImage() bool - - // optional - SmallImage() IImage - HasSmallImage() bool - // optional SetLumaSigma(value float64) HasSetLumaSigma() bool @@ -43,99 +43,102 @@ type PEdgePreserveUpsample interface { HasLumaSigma() bool } -// A concrete type wrapper for the [PEdgePreserveUpsample] protocol. -type EdgePreserveUpsampleWrapper struct { +// ensure impl type implements protocol interface +var _ PEdgePreserveUpsample = (*EdgePreserveUpsampleObject)(nil) + +// A concrete type for the [PEdgePreserveUpsample] protocol. +type EdgePreserveUpsampleObject struct { objc.Object } -func (e_ EdgePreserveUpsampleWrapper) HasSetInputImage() bool { +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:"), objc.Ptr(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:")) } // The image to use as an input image. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/coreimage/ciedgepreserveupsample/3228237-inputimage?language=objc -func (e_ EdgePreserveUpsampleWrapper) SetInputImage(value IImage) { +func (e_ EdgePreserveUpsampleObject) SetInputImage(value Image) { objc.Call[objc.Void](e_, objc.Sel("setInputImage:"), objc.Ptr(value)) } -func (e_ EdgePreserveUpsampleWrapper) HasInputImage() bool { +func (e_ EdgePreserveUpsampleObject) HasInputImage() bool { return e_.RespondsToSelector(objc.Sel("inputImage")) } // The image to use as an input image. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/coreimage/ciedgepreserveupsample/3228237-inputimage?language=objc -func (e_ EdgePreserveUpsampleWrapper) InputImage() Image { +func (e_ EdgePreserveUpsampleObject) InputImage() Image { rv := objc.Call[Image](e_, objc.Sel("inputImage")) return rv } -func (e_ EdgePreserveUpsampleWrapper) HasSetSpatialSigma() bool { +func (e_ EdgePreserveUpsampleObject) HasSetSpatialSigma() bool { return e_.RespondsToSelector(objc.Sel("setSpatialSigma:")) } // A value that specifies the influence of the input image’s spatial information on the upsampling operation. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/coreimage/ciedgepreserveupsample/3228240-spatialsigma?language=objc -func (e_ EdgePreserveUpsampleWrapper) SetSpatialSigma(value float64) { +func (e_ EdgePreserveUpsampleObject) SetSpatialSigma(value float64) { objc.Call[objc.Void](e_, objc.Sel("setSpatialSigma:"), value) } -func (e_ EdgePreserveUpsampleWrapper) HasSpatialSigma() bool { +func (e_ EdgePreserveUpsampleObject) HasSpatialSigma() bool { return e_.RespondsToSelector(objc.Sel("spatialSigma")) } // A value that specifies the influence of the input image’s spatial information on the upsampling operation. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/coreimage/ciedgepreserveupsample/3228240-spatialsigma?language=objc -func (e_ EdgePreserveUpsampleWrapper) SpatialSigma() float64 { +func (e_ EdgePreserveUpsampleObject) SpatialSigma() float64 { rv := objc.Call[float64](e_, objc.Sel("spatialSigma")) return rv } -func (e_ EdgePreserveUpsampleWrapper) 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_ EdgePreserveUpsampleWrapper) SetSmallImage(value IImage) { - objc.Call[objc.Void](e_, objc.Sel("setSmallImage:"), objc.Ptr(value)) -} - -func (e_ EdgePreserveUpsampleWrapper) 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_ EdgePreserveUpsampleWrapper) SmallImage() Image { - rv := objc.Call[Image](e_, objc.Sel("smallImage")) - return rv -} - -func (e_ EdgePreserveUpsampleWrapper) HasSetLumaSigma() bool { +func (e_ EdgePreserveUpsampleObject) HasSetLumaSigma() bool { return e_.RespondsToSelector(objc.Sel("setLumaSigma:")) } // A value that specifies the influence of the input image’s luma information on the upsampling operation. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/coreimage/ciedgepreserveupsample/3228238-lumasigma?language=objc -func (e_ EdgePreserveUpsampleWrapper) SetLumaSigma(value float64) { +func (e_ EdgePreserveUpsampleObject) SetLumaSigma(value float64) { objc.Call[objc.Void](e_, objc.Sel("setLumaSigma:"), value) } -func (e_ EdgePreserveUpsampleWrapper) HasLumaSigma() bool { +func (e_ EdgePreserveUpsampleObject) HasLumaSigma() bool { return e_.RespondsToSelector(objc.Sel("lumaSigma")) } // A value that specifies the influence of the input image’s luma information on the upsampling operation. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/coreimage/ciedgepreserveupsample/3228238-lumasigma?language=objc -func (e_ EdgePreserveUpsampleWrapper) LumaSigma() float64 { +func (e_ EdgePreserveUpsampleObject) LumaSigma() float64 { rv := objc.Call[float64](e_, objc.Sel("lumaSigma")) return rv } diff --git a/macos/coreimage/edge_work.gen.go b/macos/coreimage/edge_work_protocol.gen.go similarity index 72% rename from macos/coreimage/edge_work.gen.go rename to macos/coreimage/edge_work_protocol.gen.go index e4cb6c01..f2f8f562 100644 --- a/macos/coreimage/edge_work.gen.go +++ b/macos/coreimage/edge_work_protocol.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package coreimage @@ -10,14 +10,6 @@ import ( // // [Full Topic]: https://developer.apple.com/documentation/coreimage/ciedgework?language=objc type PEdgeWork interface { - // optional - SetInputImage(value Image) - HasSetInputImage() bool - - // optional - InputImage() IImage - HasInputImage() bool - // optional SetRadius(value float64) HasSetRadius() bool @@ -25,55 +17,66 @@ type PEdgeWork interface { // optional Radius() float64 HasRadius() bool + + // optional + SetInputImage(value Image) + HasSetInputImage() bool + + // optional + InputImage() Image + HasInputImage() bool } -// A concrete type wrapper for the [PEdgeWork] protocol. -type EdgeWorkWrapper struct { +// ensure impl type implements protocol interface +var _ PEdgeWork = (*EdgeWorkObject)(nil) + +// A concrete type for the [PEdgeWork] protocol. +type EdgeWorkObject struct { objc.Object } -func (e_ EdgeWorkWrapper) HasSetInputImage() bool { - return e_.RespondsToSelector(objc.Sel("setInputImage:")) +func (e_ EdgeWorkObject) HasSetRadius() bool { + return e_.RespondsToSelector(objc.Sel("setRadius:")) } -// The image to use as an input image. [Full Topic] +// The thickness of the edges. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/ciedgework/3228242-inputimage?language=objc -func (e_ EdgeWorkWrapper) SetInputImage(value IImage) { - objc.Call[objc.Void](e_, objc.Sel("setInputImage:"), objc.Ptr(value)) +// [Full Topic]: https://developer.apple.com/documentation/coreimage/ciedgework/3228243-radius?language=objc +func (e_ EdgeWorkObject) SetRadius(value float64) { + objc.Call[objc.Void](e_, objc.Sel("setRadius:"), value) } -func (e_ EdgeWorkWrapper) HasInputImage() bool { - return e_.RespondsToSelector(objc.Sel("inputImage")) +func (e_ EdgeWorkObject) HasRadius() bool { + return e_.RespondsToSelector(objc.Sel("radius")) } -// The image to use as an input image. [Full Topic] +// The thickness of the edges. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/ciedgework/3228242-inputimage?language=objc -func (e_ EdgeWorkWrapper) InputImage() Image { - rv := objc.Call[Image](e_, objc.Sel("inputImage")) +// [Full Topic]: https://developer.apple.com/documentation/coreimage/ciedgework/3228243-radius?language=objc +func (e_ EdgeWorkObject) Radius() float64 { + rv := objc.Call[float64](e_, objc.Sel("radius")) return rv } -func (e_ EdgeWorkWrapper) HasSetRadius() bool { - return e_.RespondsToSelector(objc.Sel("setRadius:")) +func (e_ EdgeWorkObject) HasSetInputImage() bool { + return e_.RespondsToSelector(objc.Sel("setInputImage:")) } -// The thickness of the edges. [Full Topic] +// The image to use as an input image. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/ciedgework/3228243-radius?language=objc -func (e_ EdgeWorkWrapper) SetRadius(value float64) { - objc.Call[objc.Void](e_, objc.Sel("setRadius:"), value) +// [Full Topic]: https://developer.apple.com/documentation/coreimage/ciedgework/3228242-inputimage?language=objc +func (e_ EdgeWorkObject) SetInputImage(value Image) { + objc.Call[objc.Void](e_, objc.Sel("setInputImage:"), objc.Ptr(value)) } -func (e_ EdgeWorkWrapper) HasRadius() bool { - return e_.RespondsToSelector(objc.Sel("radius")) +func (e_ EdgeWorkObject) HasInputImage() bool { + return e_.RespondsToSelector(objc.Sel("inputImage")) } -// The thickness of the edges. [Full Topic] +// The image to use as an input image. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/ciedgework/3228243-radius?language=objc -func (e_ EdgeWorkWrapper) Radius() float64 { - rv := objc.Call[float64](e_, objc.Sel("radius")) +// [Full Topic]: https://developer.apple.com/documentation/coreimage/ciedgework/3228242-inputimage?language=objc +func (e_ EdgeWorkObject) InputImage() Image { + rv := objc.Call[Image](e_, objc.Sel("inputImage")) return rv } diff --git a/macos/coreimage/edges.gen.go b/macos/coreimage/edges_protocol.gen.go similarity index 73% rename from macos/coreimage/edges.gen.go rename to macos/coreimage/edges_protocol.gen.go index 71bd2fc3..702f9e11 100644 --- a/macos/coreimage/edges.gen.go +++ b/macos/coreimage/edges_protocol.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package coreimage @@ -10,14 +10,6 @@ import ( // // [Full Topic]: https://developer.apple.com/documentation/coreimage/ciedges?language=objc type PEdges interface { - // optional - SetInputImage(value Image) - HasSetInputImage() bool - - // optional - InputImage() IImage - HasInputImage() bool - // optional SetIntensity(value float64) HasSetIntensity() bool @@ -25,55 +17,66 @@ type PEdges interface { // optional Intensity() float64 HasIntensity() bool + + // optional + SetInputImage(value Image) + HasSetInputImage() bool + + // optional + InputImage() Image + HasInputImage() bool } -// A concrete type wrapper for the [PEdges] protocol. -type EdgesWrapper struct { +// ensure impl type implements protocol interface +var _ PEdges = (*EdgesObject)(nil) + +// A concrete type for the [PEdges] protocol. +type EdgesObject struct { objc.Object } -func (e_ EdgesWrapper) HasSetInputImage() bool { - return e_.RespondsToSelector(objc.Sel("setInputImage:")) +func (e_ EdgesObject) HasSetIntensity() bool { + return e_.RespondsToSelector(objc.Sel("setIntensity:")) } -// The image to use as an input image. [Full Topic] +// The intensity of the edges. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/ciedges/3228245-inputimage?language=objc -func (e_ EdgesWrapper) SetInputImage(value IImage) { - objc.Call[objc.Void](e_, objc.Sel("setInputImage:"), objc.Ptr(value)) +// [Full Topic]: https://developer.apple.com/documentation/coreimage/ciedges/3228246-intensity?language=objc +func (e_ EdgesObject) SetIntensity(value float64) { + objc.Call[objc.Void](e_, objc.Sel("setIntensity:"), value) } -func (e_ EdgesWrapper) HasInputImage() bool { - return e_.RespondsToSelector(objc.Sel("inputImage")) +func (e_ EdgesObject) HasIntensity() bool { + return e_.RespondsToSelector(objc.Sel("intensity")) } -// The image to use as an input image. [Full Topic] +// The intensity of the edges. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/ciedges/3228245-inputimage?language=objc -func (e_ EdgesWrapper) InputImage() Image { - rv := objc.Call[Image](e_, objc.Sel("inputImage")) +// [Full Topic]: https://developer.apple.com/documentation/coreimage/ciedges/3228246-intensity?language=objc +func (e_ EdgesObject) Intensity() float64 { + rv := objc.Call[float64](e_, objc.Sel("intensity")) return rv } -func (e_ EdgesWrapper) HasSetIntensity() bool { - return e_.RespondsToSelector(objc.Sel("setIntensity:")) +func (e_ EdgesObject) HasSetInputImage() bool { + return e_.RespondsToSelector(objc.Sel("setInputImage:")) } -// The intensity of the edges. [Full Topic] +// The image to use as an input image. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/ciedges/3228246-intensity?language=objc -func (e_ EdgesWrapper) SetIntensity(value float64) { - objc.Call[objc.Void](e_, objc.Sel("setIntensity:"), value) +// [Full Topic]: https://developer.apple.com/documentation/coreimage/ciedges/3228245-inputimage?language=objc +func (e_ EdgesObject) SetInputImage(value Image) { + objc.Call[objc.Void](e_, objc.Sel("setInputImage:"), objc.Ptr(value)) } -func (e_ EdgesWrapper) HasIntensity() bool { - return e_.RespondsToSelector(objc.Sel("intensity")) +func (e_ EdgesObject) HasInputImage() bool { + return e_.RespondsToSelector(objc.Sel("inputImage")) } -// The intensity of the edges. [Full Topic] +// The image to use as an input image. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/ciedges/3228246-intensity?language=objc -func (e_ EdgesWrapper) Intensity() float64 { - rv := objc.Call[float64](e_, objc.Sel("intensity")) +// [Full Topic]: https://developer.apple.com/documentation/coreimage/ciedges/3228245-inputimage?language=objc +func (e_ EdgesObject) InputImage() Image { + rv := objc.Call[Image](e_, objc.Sel("inputImage")) return rv } diff --git a/macos/coreimage/eightfold_reflected_tile.gen.go b/macos/coreimage/eightfold_reflected_tile_protocol.gen.go similarity index 71% rename from macos/coreimage/eightfold_reflected_tile.gen.go rename to macos/coreimage/eightfold_reflected_tile_protocol.gen.go index 9558aedf..cd879c3c 100644 --- a/macos/coreimage/eightfold_reflected_tile.gen.go +++ b/macos/coreimage/eightfold_reflected_tile_protocol.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package coreimage @@ -24,7 +24,7 @@ type PEightfoldReflectedTile interface { HasSetInputImage() bool // optional - InputImage() IImage + InputImage() Image HasInputImage() bool // optional @@ -44,99 +44,102 @@ type PEightfoldReflectedTile interface { HasCenter() bool } -// A concrete type wrapper for the [PEightfoldReflectedTile] protocol. -type EightfoldReflectedTileWrapper struct { +// ensure impl type implements protocol interface +var _ PEightfoldReflectedTile = (*EightfoldReflectedTileObject)(nil) + +// A concrete type for the [PEightfoldReflectedTile] protocol. +type EightfoldReflectedTileObject struct { objc.Object } -func (e_ EightfoldReflectedTileWrapper) HasSetWidth() bool { +func (e_ EightfoldReflectedTileObject) HasSetWidth() bool { return e_.RespondsToSelector(objc.Sel("setWidth:")) } // The width of a tile. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/coreimage/cieightfoldreflectedtile/3228251-width?language=objc -func (e_ EightfoldReflectedTileWrapper) SetWidth(value float64) { +func (e_ EightfoldReflectedTileObject) SetWidth(value float64) { objc.Call[objc.Void](e_, objc.Sel("setWidth:"), value) } -func (e_ EightfoldReflectedTileWrapper) HasWidth() bool { +func (e_ EightfoldReflectedTileObject) HasWidth() bool { return e_.RespondsToSelector(objc.Sel("width")) } // The width of a tile. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/coreimage/cieightfoldreflectedtile/3228251-width?language=objc -func (e_ EightfoldReflectedTileWrapper) Width() float64 { +func (e_ EightfoldReflectedTileObject) Width() float64 { rv := objc.Call[float64](e_, objc.Sel("width")) return rv } -func (e_ EightfoldReflectedTileWrapper) HasSetInputImage() bool { +func (e_ EightfoldReflectedTileObject) HasSetInputImage() bool { return e_.RespondsToSelector(objc.Sel("setInputImage:")) } // The image to use as an input image. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/coreimage/cieightfoldreflectedtile/3228250-inputimage?language=objc -func (e_ EightfoldReflectedTileWrapper) SetInputImage(value IImage) { +func (e_ EightfoldReflectedTileObject) SetInputImage(value Image) { objc.Call[objc.Void](e_, objc.Sel("setInputImage:"), objc.Ptr(value)) } -func (e_ EightfoldReflectedTileWrapper) HasInputImage() bool { +func (e_ EightfoldReflectedTileObject) HasInputImage() bool { return e_.RespondsToSelector(objc.Sel("inputImage")) } // The image to use as an input image. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/coreimage/cieightfoldreflectedtile/3228250-inputimage?language=objc -func (e_ EightfoldReflectedTileWrapper) InputImage() Image { +func (e_ EightfoldReflectedTileObject) InputImage() Image { rv := objc.Call[Image](e_, objc.Sel("inputImage")) return rv } -func (e_ EightfoldReflectedTileWrapper) HasSetAngle() bool { +func (e_ EightfoldReflectedTileObject) HasSetAngle() bool { return e_.RespondsToSelector(objc.Sel("setAngle:")) } // The angle, in radians, of the tiled pattern. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/coreimage/cieightfoldreflectedtile/3228248-angle?language=objc -func (e_ EightfoldReflectedTileWrapper) SetAngle(value float64) { +func (e_ EightfoldReflectedTileObject) SetAngle(value float64) { objc.Call[objc.Void](e_, objc.Sel("setAngle:"), value) } -func (e_ EightfoldReflectedTileWrapper) HasAngle() bool { +func (e_ EightfoldReflectedTileObject) HasAngle() bool { return e_.RespondsToSelector(objc.Sel("angle")) } // The angle, in radians, of the tiled pattern. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/coreimage/cieightfoldreflectedtile/3228248-angle?language=objc -func (e_ EightfoldReflectedTileWrapper) Angle() float64 { +func (e_ EightfoldReflectedTileObject) Angle() float64 { rv := objc.Call[float64](e_, objc.Sel("angle")) return rv } -func (e_ EightfoldReflectedTileWrapper) HasSetCenter() bool { +func (e_ EightfoldReflectedTileObject) HasSetCenter() bool { return e_.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/cieightfoldreflectedtile/3228249-center?language=objc -func (e_ EightfoldReflectedTileWrapper) SetCenter(value coregraphics.Point) { +func (e_ EightfoldReflectedTileObject) SetCenter(value coregraphics.Point) { objc.Call[objc.Void](e_, objc.Sel("setCenter:"), value) } -func (e_ EightfoldReflectedTileWrapper) HasCenter() bool { +func (e_ EightfoldReflectedTileObject) HasCenter() bool { return e_.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/cieightfoldreflectedtile/3228249-center?language=objc -func (e_ EightfoldReflectedTileWrapper) Center() coregraphics.Point { +func (e_ EightfoldReflectedTileObject) Center() coregraphics.Point { rv := objc.Call[coregraphics.Point](e_, objc.Sel("center")) return rv } diff --git a/macos/coreimage/enumtypes.gen.go b/macos/coreimage/enumtypes.gen.go index 51858413..5457412b 100644 --- a/macos/coreimage/enumtypes.gen.go +++ b/macos/coreimage/enumtypes.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package coreimage diff --git a/macos/coreimage/exposure_adjust.gen.go b/macos/coreimage/exposure_adjust_protocol.gen.go similarity index 71% rename from macos/coreimage/exposure_adjust.gen.go rename to macos/coreimage/exposure_adjust_protocol.gen.go index 618e71c6..f9c0f995 100644 --- a/macos/coreimage/exposure_adjust.gen.go +++ b/macos/coreimage/exposure_adjust_protocol.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package coreimage @@ -10,14 +10,6 @@ import ( // // [Full Topic]: https://developer.apple.com/documentation/coreimage/ciexposureadjust?language=objc type PExposureAdjust interface { - // optional - SetInputImage(value Image) - HasSetInputImage() bool - - // optional - InputImage() IImage - HasInputImage() bool - // optional SetEV(value float64) HasSetEV() bool @@ -25,55 +17,66 @@ type PExposureAdjust interface { // optional EV() float64 HasEV() bool + + // optional + SetInputImage(value Image) + HasSetInputImage() bool + + // optional + InputImage() Image + HasInputImage() bool } -// A concrete type wrapper for the [PExposureAdjust] protocol. -type ExposureAdjustWrapper struct { +// ensure impl type implements protocol interface +var _ PExposureAdjust = (*ExposureAdjustObject)(nil) + +// A concrete type for the [PExposureAdjust] protocol. +type ExposureAdjustObject struct { objc.Object } -func (e_ ExposureAdjustWrapper) HasSetInputImage() bool { - return e_.RespondsToSelector(objc.Sel("setInputImage:")) +func (e_ ExposureAdjustObject) HasSetEV() bool { + return e_.RespondsToSelector(objc.Sel("setEV:")) } -// The image to use as an input image. [Full Topic] +// The amount to adjust the exposure of the image by. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/ciexposureadjust/3228254-inputimage?language=objc -func (e_ ExposureAdjustWrapper) SetInputImage(value IImage) { - objc.Call[objc.Void](e_, objc.Sel("setInputImage:"), objc.Ptr(value)) +// [Full Topic]: https://developer.apple.com/documentation/coreimage/ciexposureadjust/3228253-ev?language=objc +func (e_ ExposureAdjustObject) SetEV(value float64) { + objc.Call[objc.Void](e_, objc.Sel("setEV:"), value) } -func (e_ ExposureAdjustWrapper) HasInputImage() bool { - return e_.RespondsToSelector(objc.Sel("inputImage")) +func (e_ ExposureAdjustObject) HasEV() bool { + return e_.RespondsToSelector(objc.Sel("EV")) } -// The image to use as an input image. [Full Topic] +// The amount to adjust the exposure of the image by. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/ciexposureadjust/3228254-inputimage?language=objc -func (e_ ExposureAdjustWrapper) InputImage() Image { - rv := objc.Call[Image](e_, objc.Sel("inputImage")) +// [Full Topic]: https://developer.apple.com/documentation/coreimage/ciexposureadjust/3228253-ev?language=objc +func (e_ ExposureAdjustObject) EV() float64 { + rv := objc.Call[float64](e_, objc.Sel("EV")) return rv } -func (e_ ExposureAdjustWrapper) HasSetEV() bool { - return e_.RespondsToSelector(objc.Sel("setEV:")) +func (e_ ExposureAdjustObject) HasSetInputImage() bool { + return e_.RespondsToSelector(objc.Sel("setInputImage:")) } -// The amount to adjust the exposure of the image by. [Full Topic] +// The image to use as an input image. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/ciexposureadjust/3228253-ev?language=objc -func (e_ ExposureAdjustWrapper) SetEV(value float64) { - objc.Call[objc.Void](e_, objc.Sel("setEV:"), value) +// [Full Topic]: https://developer.apple.com/documentation/coreimage/ciexposureadjust/3228254-inputimage?language=objc +func (e_ ExposureAdjustObject) SetInputImage(value Image) { + objc.Call[objc.Void](e_, objc.Sel("setInputImage:"), objc.Ptr(value)) } -func (e_ ExposureAdjustWrapper) HasEV() bool { - return e_.RespondsToSelector(objc.Sel("EV")) +func (e_ ExposureAdjustObject) HasInputImage() bool { + return e_.RespondsToSelector(objc.Sel("inputImage")) } -// The amount to adjust the exposure of the image by. [Full Topic] +// The image to use as an input image. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/ciexposureadjust/3228253-ev?language=objc -func (e_ ExposureAdjustWrapper) EV() float64 { - rv := objc.Call[float64](e_, objc.Sel("EV")) +// [Full Topic]: https://developer.apple.com/documentation/coreimage/ciexposureadjust/3228254-inputimage?language=objc +func (e_ ExposureAdjustObject) InputImage() Image { + rv := objc.Call[Image](e_, objc.Sel("inputImage")) return rv } diff --git a/macos/coreimage/face_feature.gen.go b/macos/coreimage/face_feature.gen.go index 196ce5f1..b43895d9 100644 --- a/macos/coreimage/face_feature.gen.go +++ b/macos/coreimage/face_feature.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package coreimage @@ -19,21 +19,21 @@ type _FaceFeatureClass struct { // An interface definition for the [FaceFeature] class. type IFaceFeature interface { IFeature - FaceAngle() float64 - RightEyeClosed() bool - TrackingID() int HasTrackingFrameCount() bool + LeftEyePosition() coregraphics.Point + RightEyeClosed() bool HasLeftEyePosition() bool + FaceAngle() float64 + TrackingID() int + HasTrackingID() bool + MouthPosition() coregraphics.Point HasMouthPosition() bool RightEyePosition() coregraphics.Point - HasSmile() bool HasFaceAngle() bool - HasTrackingID() bool - TrackingFrameCount() int LeftEyeClosed() bool - LeftEyePosition() coregraphics.Point + HasSmile() bool HasRightEyePosition() bool - MouthPosition() coregraphics.Point + TrackingFrameCount() int } // Information about a face detected in a still or video image. [Full Topic] @@ -54,10 +54,6 @@ func (fc _FaceFeatureClass) Alloc() FaceFeature { return rv } -func FaceFeature_Alloc() FaceFeature { - return FaceFeatureClass.Alloc() -} - func (fc _FaceFeatureClass) New() FaceFeature { rv := objc.Call[FaceFeature](fc, objc.Sel("new")) rv.Autorelease() @@ -73,11 +69,19 @@ func (f_ FaceFeature) Init() FaceFeature { return rv } -// The rotation of the face. [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/1437689-faceangle?language=objc -func (f_ FaceFeature) FaceAngle() float64 { - rv := objc.Call[float64](f_, objc.Sel("faceAngle")) +// [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] +// +// [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 } @@ -89,6 +93,22 @@ 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() float64 { + rv := objc.Call[float64](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 @@ -97,19 +117,19 @@ func (f_ FaceFeature) TrackingID() int { return rv } -// A Boolean value that indicates the face object has a tracking frame count. [Full Topic] +// A Boolean value that indicates whether the face object has a tracking ID. [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")) +// [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 } -// A Boolean value that indicates whether the detector found the face’s left eye. [Full Topic] +// The coordinates of the mouth, in image coordinates [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")) +// [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 } @@ -129,14 +149,6 @@ 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 @@ -145,22 +157,6 @@ 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 @@ -169,11 +165,11 @@ func (f_ FaceFeature) LeftEyeClosed() bool { return rv } -// The coordinates of the left eye, in image coordinates. [Full Topic] +// A Boolean value that indicates whether a smile is detected in 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/1437882-hassmile?language=objc +func (f_ FaceFeature) HasSmile() bool { + rv := objc.Call[bool](f_, objc.Sel("hasSmile")) return rv } @@ -185,10 +181,10 @@ func (f_ FaceFeature) HasRightEyePosition() bool { return rv } -// The coordinates of the mouth, in image coordinates [Full Topic] +// The tracking frame count of the face. [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/1437953-trackingframecount?language=objc +func (f_ FaceFeature) TrackingFrameCount() int { + rv := objc.Call[int](f_, objc.Sel("trackingFrameCount")) return rv } diff --git a/macos/coreimage/false_color.gen.go b/macos/coreimage/false_color_protocol.gen.go similarity index 73% rename from macos/coreimage/false_color.gen.go rename to macos/coreimage/false_color_protocol.gen.go index 3ca6a922..606e8d57 100644 --- a/macos/coreimage/false_color.gen.go +++ b/macos/coreimage/false_color_protocol.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package coreimage @@ -10,12 +10,20 @@ 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 // optional - InputImage() IImage + InputImage() Image HasInputImage() bool // optional @@ -23,88 +31,83 @@ type PFalseColor interface { HasSetColor0() bool // optional - Color0() IColor + Color0() Color HasColor0() bool +} - // optional - SetColor1(value Color) - HasSetColor1() bool +// ensure impl type implements protocol interface +var _ PFalseColor = (*FalseColorObject)(nil) - // optional - Color1() IColor - HasColor1() bool +// A concrete type for the [PFalseColor] protocol. +type FalseColorObject struct { + objc.Object } -// A concrete type wrapper for the [PFalseColor] protocol. -type FalseColorWrapper struct { - objc.Object +func (f_ FalseColorObject) HasSetColor1() bool { + return f_.RespondsToSelector(objc.Sel("setColor1:")) } -func (f_ FalseColorWrapper) HasSetInputImage() bool { +// 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:"), objc.Ptr(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:")) } // The image to use as an input image. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/coreimage/cifalsecolor/3228258-inputimage?language=objc -func (f_ FalseColorWrapper) SetInputImage(value IImage) { +func (f_ FalseColorObject) SetInputImage(value Image) { objc.Call[objc.Void](f_, objc.Sel("setInputImage:"), objc.Ptr(value)) } -func (f_ FalseColorWrapper) HasInputImage() bool { +func (f_ FalseColorObject) HasInputImage() bool { return f_.RespondsToSelector(objc.Sel("inputImage")) } // The image to use as an input image. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/coreimage/cifalsecolor/3228258-inputimage?language=objc -func (f_ FalseColorWrapper) InputImage() Image { +func (f_ FalseColorObject) InputImage() Image { rv := objc.Call[Image](f_, objc.Sel("inputImage")) return rv } -func (f_ FalseColorWrapper) HasSetColor0() bool { +func (f_ FalseColorObject) HasSetColor0() bool { return f_.RespondsToSelector(objc.Sel("setColor0:")) } // The first color to use for the color ramp. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/coreimage/cifalsecolor/3228256-color0?language=objc -func (f_ FalseColorWrapper) SetColor0(value IColor) { +func (f_ FalseColorObject) SetColor0(value Color) { objc.Call[objc.Void](f_, objc.Sel("setColor0:"), objc.Ptr(value)) } -func (f_ FalseColorWrapper) HasColor0() bool { +func (f_ FalseColorObject) HasColor0() bool { return f_.RespondsToSelector(objc.Sel("color0")) } // The first color to use for the color ramp. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/coreimage/cifalsecolor/3228256-color0?language=objc -func (f_ FalseColorWrapper) Color0() Color { +func (f_ FalseColorObject) Color0() Color { rv := objc.Call[Color](f_, objc.Sel("color0")) return rv } - -func (f_ FalseColorWrapper) 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_ FalseColorWrapper) SetColor1(value IColor) { - objc.Call[objc.Void](f_, objc.Sel("setColor1:"), objc.Ptr(value)) -} - -func (f_ FalseColorWrapper) 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_ FalseColorWrapper) Color1() Color { - rv := objc.Call[Color](f_, objc.Sel("color1")) - return rv -} diff --git a/macos/coreimage/feature.gen.go b/macos/coreimage/feature.gen.go index 84fbf966..fd17ce0e 100644 --- a/macos/coreimage/feature.gen.go +++ b/macos/coreimage/feature.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package coreimage @@ -41,10 +41,6 @@ func (fc _FeatureClass) Alloc() Feature { return rv } -func Feature_Alloc() Feature { - return FeatureClass.Alloc() -} - func (fc _FeatureClass) New() Feature { rv := objc.Call[Feature](fc, objc.Sel("new")) rv.Autorelease() diff --git a/macos/coreimage/filter.gen.go b/macos/coreimage/filter.gen.go index 8a8988ca..cac67b9d 100644 --- a/macos/coreimage/filter.gen.go +++ b/macos/coreimage/filter.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package coreimage @@ -19,15 +19,16 @@ type _FilterClass struct { // An interface definition for the [Filter] class. type IFilter interface { objc.IObject - SetDefaults() - Name() string Apply(k IKernel, args ...any) Image - OutputKeys() []string - InputKeys() []string + SetName(aString string) + SetDefaults() + ApplyArgumentsOptions(k IKernel, args []objc.IObject, dict map[string]objc.IObject) Image + OutputImage() Image + Attributes() map[string]objc.Object IsEnabled() bool SetEnabled(value bool) - Attributes() map[string]objc.Object - OutputImage() Image + InputKeys() []string + OutputKeys() []string } // An image processor that produces an image by manipulating one or more input images or by generating new image data. [Full Topic] @@ -48,10 +49,6 @@ func (fc _FilterClass) Alloc() Filter { return rv } -func Filter_Alloc() Filter { - return FilterClass.Alloc() -} - func (fc _FilterClass) New() Filter { rv := objc.Call[Filter](fc, objc.Sel("new")) rv.Autorelease() @@ -67,1324 +64,1330 @@ func (f_ Filter) Init() Filter { return rv } -// Returns a star-shine generator filter. [Full Topic] +// Returns a bloom 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/3228276-bloomfilter?language=objc +func (fc _FilterClass) BloomFilter() Filter { + rv := objc.Call[Filter](fc, objc.Sel("bloomFilter")) return rv } -// Returns a star-shine generator filter. [Full Topic] +// Returns a bloom 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/3228276-bloomfilter?language=objc +func Filter_BloomFilter() Filter { + return FilterClass.BloomFilter() } -// Returns a saturation blend mode filter. [Full Topic] +// Applies a bokeh effect to an image. [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/3228277-bokehblurfilter?language=objc +func (fc _FilterClass) BokehBlurFilter() Filter { + rv := objc.Call[Filter](fc, objc.Sel("bokehBlurFilter")) return rv } -// Returns a saturation blend mode filter. [Full Topic] +// Applies a bokeh effect to an image. [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/3228277-bokehblurfilter?language=objc +func Filter_BokehBlurFilter() Filter { + return FilterClass.BokehBlurFilter() } -// Returns a sunbeams generator filter. [Full Topic] +// Produces a CIImage object by applying a kernel function. [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/1562058-apply?language=objc +func (f_ Filter) Apply(k IKernel, args ...any) Image { + rv := objc.Call[Image](f_, objc.Sel("apply:"), append([]any{objc.Ptr(k)}, args...)...) return rv } -// Returns a sunbeams generator filter. [Full Topic] -// -// [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] +// Returns a sharpen luminance 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")) +// [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 document enhancer filter. [Full Topic] +// Returns a sharpen luminance filter. [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/3228404-sharpenluminancefilter?language=objc +func Filter_SharpenLuminanceFilter() Filter { + return FilterClass.SharpenLuminanceFilter() } -// Returns a ripple transition filter. [Full Topic] +// Returns a dither 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/3228315-ditherfilter?language=objc +func (fc _FilterClass) DitherFilter() Filter { + rv := objc.Call[Filter](fc, objc.Sel("ditherFilter")) return rv } -// Returns a ripple transition filter. [Full Topic] +// Returns a dither 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/3228315-ditherfilter?language=objc +func Filter_DitherFilter() Filter { + return FilterClass.DitherFilter() } -// Publishes a custom filter that is not packaged as an image unit. [Full Topic] +// Returns a color cube with color space filter. [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) +// [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 } -// Publishes a custom filter that is not packaged as an image unit. [Full Topic] +// Returns a color cube with color space filter. [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) +// [Full Topic]: https://developer.apple.com/documentation/coreimage/cifilter/3228288-colorcubewithcolorspacefilter?language=objc +func Filter_ColorCubeWithColorSpaceFilter() Filter { + return FilterClass.ColorCubeWithColorSpaceFilter() } -// Publishes a custom filter that is not packaged as an image unit. [Full Topic] +// [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, objc.Ptr(anObjectObject), attributes) +// [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 } -// Publishes a custom filter that is not packaged as an image unit. [Full Topic] +// [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/3547120-colorthresholdfilter?language=objc +func Filter_ColorThresholdFilter() Filter { + return FilterClass.ColorThresholdFilter() } -// Returns the localized name for the specified filter name. [Full Topic] +// Returns a gamma adjust filter. [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/3228330-gammaadjustfilter?language=objc +func (fc _FilterClass) GammaAdjustFilter() Filter { + rv := objc.Call[Filter](fc, objc.Sel("gammaAdjustFilter")) return rv } -// Returns the localized name for the specified filter name. [Full Topic] +// Returns a gamma adjust filter. [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/3228330-gammaadjustfilter?language=objc +func Filter_GammaAdjustFilter() Filter { + return FilterClass.GammaAdjustFilter() } -// [Full Topic] +// Returns an attributed-text image generator 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/3228267-attributedtextimagegeneratorfilt?language=objc +func (fc _FilterClass) AttributedTextImageGeneratorFilter() Filter { + rv := objc.Call[Filter](fc, objc.Sel("attributedTextImageGeneratorFilter")) return rv } -// [Full Topic] +// Returns an attributed-text image generator 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/3228267-attributedtextimagegeneratorfilt?language=objc +func Filter_AttributedTextImageGeneratorFilter() Filter { + return FilterClass.AttributedTextImageGeneratorFilter() } -// Returns a parallelogram tile filter. [Full Topic] +// Returns a screen blend mode filter. [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/3228401-screenblendmodefilter?language=objc +func (fc _FilterClass) ScreenBlendModeFilter() Filter { + rv := objc.Call[Filter](fc, objc.Sel("screenBlendModeFilter")) return rv } -// Returns a parallelogram tile filter. [Full Topic] +// Returns a screen blend mode filter. [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/3228401-screenblendmodefilter?language=objc +func Filter_ScreenBlendModeFilter() Filter { + return FilterClass.ScreenBlendModeFilter() } -// Returns a color cube mixed with mask filter. [Full Topic] +// Returns a color map 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/3228293-colormapfilter?language=objc +func (fc _FilterClass) ColorMapFilter() Filter { + rv := objc.Call[Filter](fc, objc.Sel("colorMapFilter")) return rv } -// Returns a color cube mixed with mask filter. [Full Topic] +// Returns a color map 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/3228293-colormapfilter?language=objc +func Filter_ColorMapFilter() Filter { + return FilterClass.ColorMapFilter() } -// Returns a kaleidoscope filter. [Full Topic] +// [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/3750386-convolutionrgb5x5filter?language=objc +func (fc _FilterClass) ConvolutionRGB5X5Filter() Filter { + rv := objc.Call[Filter](fc, objc.Sel("convolutionRGB5X5Filter")) return rv } -// Returns a kaleidoscope filter. [Full Topic] +// [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/3750386-convolutionrgb5x5filter?language=objc +func Filter_ConvolutionRGB5X5Filter() Filter { + return FilterClass.ConvolutionRGB5X5Filter() } -// Returns a lighten blend mode filter. [Full Topic] +// Returns a Core ML model 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/3228305-coremlmodelfilter?language=objc +func (fc _FilterClass) CoreMLModelFilter() Filter { + rv := objc.Call[Filter](fc, objc.Sel("coreMLModelFilter")) return rv } -// Returns a lighten blend mode filter. [Full Topic] +// Returns a Core ML model 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/3228305-coremlmodelfilter?language=objc +func Filter_CoreMLModelFilter() Filter { + return FilterClass.CoreMLModelFilter() } -// Returns a fourfold rotated tile filter. [Full Topic] +// Returns a ripple transition filter. [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/3228397-rippletransitionfilter?language=objc +func (fc _FilterClass) RippleTransitionFilter() Filter { + rv := objc.Call[Filter](fc, objc.Sel("rippleTransitionFilter")) return rv } -// Returns a fourfold rotated tile filter. [Full Topic] +// Returns a ripple transition filter. [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/3228397-rippletransitionfilter?language=objc +func Filter_RippleTransitionFilter() Filter { + return FilterClass.RippleTransitionFilter() } // [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/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/3547111-areaaveragefilter?language=objc -func Filter_AreaAverageFilter() Filter { - return FilterClass.AreaAverageFilter() +// [Full Topic]: https://developer.apple.com/documentation/coreimage/cifilter/3750388-convolutionrgb9horizontalfilter?language=objc +func Filter_ConvolutionRGB9HorizontalFilter() Filter { + return FilterClass.ConvolutionRGB9HorizontalFilter() } -// Returns an edge-work filter. [Full Topic] +// [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")) - return rv +// [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 } -// Returns an edge-work filter. [Full Topic] +// [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/3547117-areaminimumalphafilter?language=objc +func Filter_AreaMinimumAlphaFilter() Filter { + return FilterClass.AreaMinimumAlphaFilter() } -// [Full Topic] +// Creates a CIFilter object for a specific kind of filter and initializes the input values. [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/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) return rv } -// [Full Topic] +// Creates a CIFilter object for a specific kind of filter and initializes the input values. [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/1437894-filterwithname?language=objc +func Filter_FilterWithNameWithInputParameters(name string, params map[string]objc.IObject) Filter { + return FilterClass.FilterWithNameWithInputParameters(name, params) } -// Returns a dissolve transition filter. [Full Topic] +// Returns a hue-saturation-value gradient 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/3228342-huesaturationvaluegradientfilter?language=objc +func (fc _FilterClass) HueSaturationValueGradientFilter() Filter { + rv := objc.Call[Filter](fc, objc.Sel("hueSaturationValueGradientFilter")) return rv } -// Returns a dissolve transition filter. [Full Topic] +// Returns a hue-saturation-value gradient 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/3228342-huesaturationvaluegradientfilter?language=objc +func Filter_HueSaturationValueGradientFilter() Filter { + return FilterClass.HueSaturationValueGradientFilter() } -// [Full Topic] +// Returns a hexagonal pixellate 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/3228338-hexagonalpixellatefilter?language=objc +func (fc _FilterClass) HexagonalPixellateFilter() Filter { + rv := objc.Call[Filter](fc, objc.Sel("hexagonalPixellateFilter")) return rv } -// [Full Topic] +// Returns a hexagonal pixellate 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/3228338-hexagonalpixellatefilter?language=objc +func Filter_HexagonalPixellateFilter() Filter { + return FilterClass.HexagonalPixellateFilter() } -// Returns a sixfold reflected tile filter. [Full Topic] +// [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/3600151-stretchcropfilter?language=objc +func (fc _FilterClass) StretchCropFilter() Filter { + rv := objc.Call[Filter](fc, objc.Sel("stretchCropFilter")) return rv } -// Returns a sixfold reflected tile filter. [Full Topic] +// [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/3600151-stretchcropfilter?language=objc +func Filter_StretchCropFilter() Filter { + return FilterClass.StretchCropFilter() } -// Returns a keystone correction horizontal filter. [Full Topic] +// Returns a maximum component 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/3228356-maximumcomponentfilter?language=objc +func (fc _FilterClass) MaximumComponentFilter() Filter { + rv := objc.Call[Filter](fc, objc.Sel("maximumComponentFilter")) return rv } -// Returns a keystone correction horizontal filter. [Full Topic] +// Returns a maximum component 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/3228356-maximumcomponentfilter?language=objc +func Filter_MaximumComponentFilter() Filter { + return FilterClass.MaximumComponentFilter() } -// Returns a convolution 5 x 5 filter. [Full Topic] +// Returns a gloom 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/3228334-gloomfilter?language=objc +func (fc _FilterClass) GloomFilter() Filter { + rv := objc.Call[Filter](fc, objc.Sel("gloomFilter")) return rv } -// Returns a convolution 5 x 5 filter. [Full Topic] +// Returns a gloom 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/3228334-gloomfilter?language=objc +func Filter_GloomFilter() Filter { + return FilterClass.GloomFilter() } -// Blurs a rectangular area by enlarging contrasting pixels. [Full Topic] +// Returns a photo-effect tonal filter. [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/3228390-photoeffecttonalfilter?language=objc +func (fc _FilterClass) PhotoEffectTonalFilter() Filter { + rv := objc.Call[Filter](fc, objc.Sel("photoEffectTonalFilter")) return rv } -// Blurs a rectangular area by enlarging contrasting pixels. [Full Topic] +// Returns a photo-effect tonal filter. [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/3228390-photoeffecttonalfilter?language=objc +func Filter_PhotoEffectTonalFilter() Filter { + return FilterClass.PhotoEffectTonalFilter() } -// Returns a screen blend mode filter. [Full Topic] +// Returns a color cube mixed with mask 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/3228289-colorcubesmixedwithmaskfilter?language=objc +func (fc _FilterClass) ColorCubesMixedWithMaskFilter() Filter { + rv := objc.Call[Filter](fc, objc.Sel("colorCubesMixedWithMaskFilter")) return rv } -// Returns a screen blend mode filter. [Full Topic] +// Returns a color cube mixed with mask 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/3228289-colorcubesmixedwithmaskfilter?language=objc +func Filter_ColorCubesMixedWithMaskFilter() Filter { + return FilterClass.ColorCubesMixedWithMaskFilter() } -// Returns a blend with red mask filter. [Full Topic] +// Returns a text image 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/3228422-textimagegeneratorfilter?language=objc +func (fc _FilterClass) TextImageGeneratorFilter() Filter { + rv := objc.Call[Filter](fc, objc.Sel("textImageGeneratorFilter")) return rv } -// Returns a blend with red mask filter. [Full Topic] +// Returns a text image 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/3228422-textimagegeneratorfilter?language=objc +func Filter_TextImageGeneratorFilter() Filter { + return FilterClass.TextImageGeneratorFilter() } -// Calculates the median of an image to refine detail. [Full Topic] +// Returns a false color filter. [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/3228325-falsecolorfilter?language=objc +func (fc _FilterClass) FalseColorFilter() Filter { + rv := objc.Call[Filter](fc, objc.Sel("falseColorFilter")) return rv } -// Calculates the median of an image to refine detail. [Full Topic] +// Returns a false color filter. [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/3228325-falsecolorfilter?language=objc +func Filter_FalseColorFilter() Filter { + return FilterClass.FalseColorFilter() } -// Returns a color blend mode 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/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/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 a color blend mode 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/3228282-colorblendmodefilter?language=objc -func Filter_ColorBlendModeFilter() Filter { - return FilterClass.ColorBlendModeFilter() +// [Full Topic]: https://developer.apple.com/documentation/coreimage/cifilter/1437642-localizedreferencedocumentationf?language=objc +func Filter_LocalizedReferenceDocumentationForFilterName(filterName string) foundation.URL { + return FilterClass.LocalizedReferenceDocumentationForFilterName(filterName) } -// Applies a bokeh effect to an image. [Full Topic] +// Returns a swipe transition 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/3228420-swipetransitionfilter?language=objc +func (fc _FilterClass) SwipeTransitionFilter() Filter { + rv := objc.Call[Filter](fc, objc.Sel("swipeTransitionFilter")) return rv } -// Applies a bokeh effect to an image. [Full Topic] +// Returns a swipe transition 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/3228420-swipetransitionfilter?language=objc +func Filter_SwipeTransitionFilter() Filter { + return FilterClass.SwipeTransitionFilter() } -// Returns a line screen 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/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/3228311-discblurfilter?language=objc +func (fc _FilterClass) DiscBlurFilter() Filter { + rv := objc.Call[Filter](fc, objc.Sel("discBlurFilter")) return rv } -// Returns a line screen 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/3228348-linescreenfilter?language=objc -func Filter_LineScreenFilter() Filter { - return FilterClass.LineScreenFilter() +// [Full Topic]: https://developer.apple.com/documentation/coreimage/cifilter/3228311-discblurfilter?language=objc +func Filter_DiscBlurFilter() Filter { + return FilterClass.DiscBlurFilter() } -// Returns a Core ML model filter. [Full Topic] +// Returns a convolution 7 x 7 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/3228301-convolution7x7filter?language=objc +func (fc _FilterClass) Convolution7X7Filter() Filter { + rv := objc.Call[Filter](fc, objc.Sel("convolution7X7Filter")) return rv } -// Returns a Core ML model filter. [Full Topic] +// Returns a convolution 7 x 7 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/3228301-convolution7x7filter?language=objc +func Filter_Convolution7X7Filter() Filter { + return FilterClass.Convolution7X7Filter() } -// Returns a keystone correction combined filter. [Full Topic] +// Returns a radial gradient 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/3228395-radialgradientfilter?language=objc +func (fc _FilterClass) RadialGradientFilter() Filter { + rv := objc.Call[Filter](fc, objc.Sel("radialGradientFilter")) return rv } -// Returns a keystone correction combined filter. [Full Topic] +// Returns a radial gradient 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/3228395-radialgradientfilter?language=objc +func Filter_RadialGradientFilter() Filter { + return FilterClass.RadialGradientFilter() } -// Returns a hue adjust filter. [Full Topic] +// Returns a hard-light blend mode 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/3228335-hardlightblendmodefilter?language=objc +func (fc _FilterClass) HardLightBlendModeFilter() Filter { + rv := objc.Call[Filter](fc, objc.Sel("hardLightBlendModeFilter")) return rv } -// Returns a hue adjust filter. [Full Topic] +// Returns a hard-light blend mode 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/3228335-hardlightblendmodefilter?language=objc +func Filter_HardLightBlendModeFilter() Filter { + return FilterClass.HardLightBlendModeFilter() } -// Returns a hue-saturation-value gradient filter. [Full Topic] +// Returns a mask-to-alpha 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/3228354-masktoalphafilter?language=objc +func (fc _FilterClass) MaskToAlphaFilter() Filter { + rv := objc.Call[Filter](fc, objc.Sel("maskToAlphaFilter")) return rv } -// Returns a hue-saturation-value gradient filter. [Full Topic] +// Returns a mask-to-alpha 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/3228354-masktoalphafilter?language=objc +func Filter_MaskToAlphaFilter() Filter { + return FilterClass.MaskToAlphaFilter() } -// Returns a photo-effect mono filter. [Full Topic] +// Returns a perspective tile 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")) +// [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 photo-effect mono filter. [Full Topic] +// Returns a perspective tile filter. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/cifilter/3228387-photoeffectmonofilter?language=objc -func Filter_PhotoEffectMonoFilter() Filter { - return FilterClass.PhotoEffectMonoFilter() +// [Full Topic]: https://developer.apple.com/documentation/coreimage/cifilter/3228381-perspectivetilefilter?language=objc +func Filter_PerspectiveTileFilter() Filter { + return FilterClass.PerspectiveTileFilter() } -// Returns a convolution 9 vertical filter. [Full Topic] +// Returns a bars swipe transition filter. [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/3228270-barsswipetransitionfilter?language=objc +func (fc _FilterClass) BarsSwipeTransitionFilter() Filter { + rv := objc.Call[Filter](fc, objc.Sel("barsSwipeTransitionFilter")) return rv } -// Returns a convolution 9 vertical filter. [Full Topic] +// Returns a bars swipe transition filter. [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/3228270-barsswipetransitionfilter?language=objc +func Filter_BarsSwipeTransitionFilter() Filter { + return FilterClass.BarsSwipeTransitionFilter() } // [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/3600141-circularwrapfilter?language=objc +func (fc _FilterClass) CircularWrapFilter() Filter { + rv := objc.Call[Filter](fc, objc.Sel("circularWrapFilter")) return rv } // [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/3600141-circularwrapfilter?language=objc +func Filter_CircularWrapFilter() Filter { + return FilterClass.CircularWrapFilter() } -// Returns a dither filter. [Full Topic] +// Returns a color curves 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/3228290-colorcurvesfilter?language=objc +func (fc _FilterClass) ColorCurvesFilter() Filter { + rv := objc.Call[Filter](fc, objc.Sel("colorCurvesFilter")) return rv } -// Returns a dither filter. [Full Topic] +// Returns a color curves 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/3228290-colorcurvesfilter?language=objc +func Filter_ColorCurvesFilter() Filter { + return FilterClass.ColorCurvesFilter() } -// Returns a photo-effect transfer filter. [Full Topic] +// Returns a Gaussian gradient 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/3228332-gaussiangradientfilter?language=objc +func (fc _FilterClass) GaussianGradientFilter() Filter { + rv := objc.Call[Filter](fc, objc.Sel("gaussianGradientFilter")) return rv } -// Returns a photo-effect transfer filter. [Full Topic] +// Returns a Gaussian gradient 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/3228332-gaussiangradientfilter?language=objc +func Filter_GaussianGradientFilter() Filter { + return FilterClass.GaussianGradientFilter() } -// Returns a stripes generator filter. [Full Topic] +// Returns a sepia-tone 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/3228402-sepiatonefilter?language=objc +func (fc _FilterClass) SepiaToneFilter() Filter { + rv := objc.Call[Filter](fc, objc.Sel("sepiaToneFilter")) return rv } -// Returns a stripes generator filter. [Full Topic] +// Returns a sepia-tone 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/3228402-sepiatonefilter?language=objc +func Filter_SepiaToneFilter() Filter { + return FilterClass.SepiaToneFilter() } -// Returns a white-point adjust filter. [Full Topic] +// Returns a height-field-from-mask 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/3228337-heightfieldfrommaskfilter?language=objc +func (fc _FilterClass) HeightFieldFromMaskFilter() Filter { + rv := objc.Call[Filter](fc, objc.Sel("heightFieldFromMaskFilter")) return rv } -// Returns a white-point adjust filter. [Full Topic] +// Returns a height-field-from-mask 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/3228337-heightfieldfrommaskfilter?language=objc +func Filter_HeightFieldFromMaskFilter() Filter { + return FilterClass.HeightFieldFromMaskFilter() } -// Returns a Code 128 barcode generator filter. [Full Topic] +// Returns an unsharp mask filter. [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/3228428-unsharpmaskfilter?language=objc +func (fc _FilterClass) UnsharpMaskFilter() Filter { + rv := objc.Call[Filter](fc, objc.Sel("unsharpMaskFilter")) return rv } -// Returns a Code 128 barcode generator filter. [Full Topic] +// Returns an unsharp mask filter. [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/3228428-unsharpmaskfilter?language=objc +func Filter_UnsharpMaskFilter() Filter { + return FilterClass.UnsharpMaskFilter() } -// [Full Topic] +// Returns a random generator filter. [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/3228396-randomgeneratorfilter?language=objc +func (fc _FilterClass) RandomGeneratorFilter() Filter { + rv := objc.Call[Filter](fc, objc.Sel("randomGeneratorFilter")) return rv } -// [Full Topic] +// Returns a random generator filter. [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/3228396-randomgeneratorfilter?language=objc +func Filter_RandomGeneratorFilter() Filter { + return FilterClass.RandomGeneratorFilter() } -// Returns a circular screen filter. [Full Topic] +// [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/3750390-personsegmentationfilter?language=objc +func (fc _FilterClass) PersonSegmentationFilter() Filter { + rv := objc.Call[Filter](fc, objc.Sel("personSegmentationFilter")) return rv } -// Returns a circular screen filter. [Full Topic] +// [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/3750390-personsegmentationfilter?language=objc +func Filter_PersonSegmentationFilter() Filter { + return FilterClass.PersonSegmentationFilter() } -// Returns the location of the localized reference documentation that describes the filter. [Full Topic] +// Returns an affine clamp 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/3228265-affineclampfilter?language=objc +func (fc _FilterClass) AffineClampFilter() Filter { + rv := objc.Call[Filter](fc, objc.Sel("affineClampFilter")) return rv } -// Returns the location of the localized reference documentation that describes the filter. [Full Topic] +// Returns an affine clamp 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/3228265-affineclampfilter?language=objc +func Filter_AffineClampFilter() Filter { + return FilterClass.AffineClampFilter() } -// Returns a gamma adjust filter. [Full Topic] +// Returns a triangle kaleidoscope filter. [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/3228425-trianglekaleidoscopefilter?language=objc +func (fc _FilterClass) TriangleKaleidoscopeFilter() Filter { + rv := objc.Call[Filter](fc, objc.Sel("triangleKaleidoscopeFilter")) return rv } -// Returns a gamma adjust filter. [Full Topic] +// Returns a triangle kaleidoscope filter. [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/3228425-trianglekaleidoscopefilter?language=objc +func Filter_TriangleKaleidoscopeFilter() Filter { + return FilterClass.TriangleKaleidoscopeFilter() } -// Returns a perspective tile filter. [Full Topic] +// Returns a linear-burn blend mode 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/3228349-linearburnblendmodefilter?language=objc +func (fc _FilterClass) LinearBurnBlendModeFilter() Filter { + rv := objc.Call[Filter](fc, objc.Sel("linearBurnBlendModeFilter")) return rv } -// Returns a perspective tile filter. [Full Topic] +// Returns a linear-burn blend mode 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/3228349-linearburnblendmodefilter?language=objc +func Filter_LinearBurnBlendModeFilter() Filter { + return FilterClass.LinearBurnBlendModeFilter() } -// Returns the localized description of a filter for display in the user interface. [Full Topic] +// Returns a photo-effect process filter. [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/3228389-photoeffectprocessfilter?language=objc +func (fc _FilterClass) PhotoEffectProcessFilter() Filter { + rv := objc.Call[Filter](fc, objc.Sel("photoEffectProcessFilter")) return rv } -// Returns the localized description of a filter for display in the user interface. [Full Topic] +// Returns a photo-effect process filter. [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/3228389-photoeffectprocessfilter?language=objc +func Filter_PhotoEffectProcessFilter() Filter { + return FilterClass.PhotoEffectProcessFilter() } -// Returns a comic effect filter. [Full Topic] +// Returns a star-shine generator 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/3228415-starshinegeneratorfilter?language=objc +func (fc _FilterClass) StarShineGeneratorFilter() Filter { + rv := objc.Call[Filter](fc, objc.Sel("starShineGeneratorFilter")) return rv } -// Returns a comic effect filter. [Full Topic] +// Returns a star-shine generator 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/3228415-starshinegeneratorfilter?language=objc +func Filter_StarShineGeneratorFilter() Filter { + return FilterClass.StarShineGeneratorFilter() } -// Returns a vibrance filter. [Full Topic] +// Returns a color cross-polynomial filter. [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/3228286-colorcrosspolynomialfilter?language=objc +func (fc _FilterClass) ColorCrossPolynomialFilter() Filter { + rv := objc.Call[Filter](fc, objc.Sel("colorCrossPolynomialFilter")) return rv } -// Returns a vibrance filter. [Full Topic] +// Returns a color cross-polynomial filter. [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/3228286-colorcrosspolynomialfilter?language=objc +func Filter_ColorCrossPolynomialFilter() Filter { + return FilterClass.ColorCrossPolynomialFilter() } -// Returns a photo-effect instant filter. [Full Topic] +// Returns a color cube 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/3228287-colorcubefilter?language=objc +func (fc _FilterClass) ColorCubeFilter() Filter { + rv := objc.Call[Filter](fc, objc.Sel("colorCubeFilter")) return rv } -// Returns a photo-effect instant filter. [Full Topic] +// Returns a color cube 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/3228287-colorcubefilter?language=objc +func Filter_ColorCubeFilter() Filter { + return FilterClass.ColorCubeFilter() } -// Returns a subtract blend mode filter. [Full Topic] +// A name associated with a 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/1437997-setname?language=objc +func (f_ Filter) SetName(aString string) { + objc.Call[objc.Void](f_, objc.Sel("setName:"), aString) +} + +// Returns a hatched screen 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")) return rv } -// Returns a subtract blend mode filter. [Full Topic] +// Returns a hatched screen 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/3228336-hatchedscreenfilter?language=objc +func Filter_HatchedScreenFilter() Filter { + return FilterClass.HatchedScreenFilter() } -// Returns a hard-light blend mode filter. [Full Topic] +// Returns a palette centroid 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/3228377-palettecentroidfilter?language=objc +func (fc _FilterClass) PaletteCentroidFilter() Filter { + rv := objc.Call[Filter](fc, objc.Sel("paletteCentroidFilter")) return rv } -// Returns a hard-light blend mode filter. [Full Topic] +// Returns a palette centroid 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/3228377-palettecentroidfilter?language=objc +func Filter_PaletteCentroidFilter() Filter { + return FilterClass.PaletteCentroidFilter() } -// Returns a mesh generator filter. [Full Topic] +// Blurs a circular area by enlarging contrasting pixels. [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/3228365-morphologymaximumfilter?language=objc +func (fc _FilterClass) MorphologyMaximumFilter() Filter { + rv := objc.Call[Filter](fc, objc.Sel("morphologyMaximumFilter")) return rv } -// Returns a mesh generator filter. [Full Topic] +// Blurs a circular area by enlarging contrasting pixels. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/cifilter/3228359-meshgeneratorfilter?language=objc -func Filter_MeshGeneratorFilter() Filter { - return FilterClass.MeshGeneratorFilter() +// [Full Topic]: https://developer.apple.com/documentation/coreimage/cifilter/3228365-morphologymaximumfilter?language=objc +func Filter_MorphologyMaximumFilter() Filter { + return FilterClass.MorphologyMaximumFilter() } -// Returns a darken blend mode filter. [Full Topic] +// Returns a sixfold rotated tile 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/3228406-sixfoldrotatedtilefilter?language=objc +func (fc _FilterClass) SixfoldRotatedTileFilter() Filter { + rv := objc.Call[Filter](fc, objc.Sel("sixfoldRotatedTileFilter")) return rv } -// Returns a darken blend mode filter. [Full Topic] +// Returns a sixfold rotated tile 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/3228406-sixfoldrotatedtilefilter?language=objc +func Filter_SixfoldRotatedTileFilter() Filter { + return FilterClass.SixfoldRotatedTileFilter() } -// Returns an accordion fold transition filter. [Full Topic] +// Applies a square-shaped blur to an area of an image. [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/3228278-boxblurfilter?language=objc +func (fc _FilterClass) BoxBlurFilter() Filter { + rv := objc.Call[Filter](fc, objc.Sel("boxBlurFilter")) return rv } -// Returns an accordion fold transition filter. [Full Topic] +// Applies a square-shaped blur to an area of an image. [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/3228278-boxblurfilter?language=objc +func Filter_BoxBlurFilter() Filter { + return FilterClass.BoxBlurFilter() } -// Returns a lenticular halo generator filter. [Full Topic] +// Returns a subtract blend mode 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/3228418-subtractblendmodefilter?language=objc +func (fc _FilterClass) SubtractBlendModeFilter() Filter { + rv := objc.Call[Filter](fc, objc.Sel("subtractBlendModeFilter")) return rv } -// Returns a lenticular halo generator filter. [Full Topic] +// Returns a subtract blend mode 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/3228418-subtractblendmodefilter?language=objc +func Filter_SubtractBlendModeFilter() Filter { + return FilterClass.SubtractBlendModeFilter() } -// Returns a color cross-polynomial filter. [Full Topic] +// [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/3600150-pinchdistortionfilter?language=objc +func (fc _FilterClass) PinchDistortionFilter() Filter { + rv := objc.Call[Filter](fc, objc.Sel("pinchDistortionFilter")) return rv } -// Returns a color cross-polynomial filter. [Full Topic] +// [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/3600150-pinchdistortionfilter?language=objc +func Filter_PinchDistortionFilter() Filter { + return FilterClass.PinchDistortionFilter() } -// Returns a soft-light blend mode filter. [Full Topic] +// [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/3600142-displacementdistortionfilter?language=objc +func (fc _FilterClass) DisplacementDistortionFilter() Filter { + rv := objc.Call[Filter](fc, objc.Sel("displacementDistortionFilter")) return rv } -// Returns a soft-light blend mode filter. [Full Topic] +// [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/3600142-displacementdistortionfilter?language=objc +func Filter_DisplacementDistortionFilter() Filter { + return FilterClass.DisplacementDistortionFilter() } -// Returns a bloom filter. [Full Topic] +// Returns an exclusion blend mode 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/3228323-exclusionblendmodefilter?language=objc +func (fc _FilterClass) ExclusionBlendModeFilter() Filter { + rv := objc.Call[Filter](fc, objc.Sel("exclusionBlendModeFilter")) return rv } -// Returns a bloom filter. [Full Topic] +// Returns an exclusion blend mode 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/3228323-exclusionblendmodefilter?language=objc +func Filter_ExclusionBlendModeFilter() Filter { + return FilterClass.ExclusionBlendModeFilter() } -// Returns a barcode generator filter. [Full Topic] +// Returns a straighten 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/3228416-straightenfilter?language=objc +func (fc _FilterClass) StraightenFilter() Filter { + rv := objc.Call[Filter](fc, objc.Sel("straightenFilter")) return rv } -// Returns a barcode generator filter. [Full Topic] +// Returns a straighten 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/3228416-straightenfilter?language=objc +func Filter_StraightenFilter() Filter { + return FilterClass.StraightenFilter() } -// Returns a PDF417 barcode generator filter. [Full Topic] +// [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/3600147-lighttunnelfilter?language=objc +func (fc _FilterClass) LightTunnelFilter() Filter { + rv := objc.Call[Filter](fc, objc.Sel("lightTunnelFilter")) return rv } -// Returns a PDF417 barcode generator filter. [Full Topic] +// [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/3600147-lighttunnelfilter?language=objc +func Filter_LightTunnelFilter() Filter { + return FilterClass.LightTunnelFilter() } -// Returns a photo-effect noir filter. [Full Topic] +// Returns a mesh generator 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/3228359-meshgeneratorfilter?language=objc +func (fc _FilterClass) MeshGeneratorFilter() Filter { + rv := objc.Call[Filter](fc, objc.Sel("meshGeneratorFilter")) return rv } -// Returns a photo-effect noir filter. [Full Topic] +// Returns a mesh generator 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/3228359-meshgeneratorfilter?language=objc +func Filter_MeshGeneratorFilter() Filter { + return FilterClass.MeshGeneratorFilter() } -// Returns a copy machine 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/3228304-copymachinetransitionfilter?language=objc -func (fc _FilterClass) CopyMachineTransitionFilter() Filter { - rv := objc.Call[Filter](fc, objc.Sel("copyMachineTransitionFilter")) - rv.Autorelease() +// [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 convolution 9 horizontal 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")) return rv } -// Returns a copy machine transition filter. [Full Topic] +// Returns a convolution 9 horizontal 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/3228302-convolution9horizontalfilter?language=objc +func Filter_Convolution9HorizontalFilter() Filter { + return FilterClass.Convolution9HorizontalFilter() } -// Returns a hatched screen filter. [Full Topic] +// Returns a pin-light 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/3228392-pinlightblendmodefilter?language=objc +func (fc _FilterClass) PinLightBlendModeFilter() Filter { + rv := objc.Call[Filter](fc, objc.Sel("pinLightBlendModeFilter")) return rv } -// Returns a hatched screen filter. [Full Topic] +// Returns a pin-light 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/3228392-pinlightblendmodefilter?language=objc +func Filter_PinLightBlendModeFilter() Filter { + return FilterClass.PinLightBlendModeFilter() } -// 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/3801604-linearlightblendmodefilter?language=objc +func (fc _FilterClass) LinearLightBlendModeFilter() Filter { + rv := objc.Call[Filter](fc, objc.Sel("linearLightBlendModeFilter")) 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/3801604-linearlightblendmodefilter?language=objc +func Filter_LinearLightBlendModeFilter() Filter { + return FilterClass.LinearLightBlendModeFilter() } // [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/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/3600154-vortexdistortionfilter?language=objc -func Filter_VortexDistortionFilter() Filter { - return FilterClass.VortexDistortionFilter() +// [Full Topic]: https://developer.apple.com/documentation/coreimage/cifilter/3547112-areahistogramfilter?language=objc +func Filter_AreaHistogramFilter() Filter { + return FilterClass.AreaHistogramFilter() } -// Returns a saliency map filter. [Full Topic] +// Returns a color-dodge blend mode 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/3228291-colordodgeblendmodefilter?language=objc +func (fc _FilterClass) ColorDodgeBlendModeFilter() Filter { + rv := objc.Call[Filter](fc, objc.Sel("colorDodgeBlendModeFilter")) return rv } -// Returns a saliency map filter. [Full Topic] +// Returns a color-dodge blend mode 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/3228291-colordodgeblendmodefilter?language=objc +func Filter_ColorDodgeBlendModeFilter() Filter { + return FilterClass.ColorDodgeBlendModeFilter() } -// Returns a photo-effect fade filter. [Full Topic] +// Returns a photo-effect mono 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/3228387-photoeffectmonofilter?language=objc +func (fc _FilterClass) PhotoEffectMonoFilter() Filter { + rv := objc.Call[Filter](fc, objc.Sel("photoEffectMonoFilter")) return rv } -// Returns a photo-effect fade filter. [Full Topic] +// Returns a photo-effect mono 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/3228387-photoeffectmonofilter?language=objc +func Filter_PhotoEffectMonoFilter() Filter { + return FilterClass.PhotoEffectMonoFilter() } -// Returns a sharpen luminance filter. [Full Topic] +// Returns a perspective correction 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/3228380-perspectivecorrectionfilter?language=objc +func (fc _FilterClass) PerspectiveCorrectionFilter() Filter { + rv := objc.Call[Filter](fc, objc.Sel("perspectiveCorrectionFilter")) return rv } -// Returns a sharpen luminance filter. [Full Topic] +// Returns a perspective correction 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/3228380-perspectivecorrectionfilter?language=objc +func Filter_PerspectiveCorrectionFilter() Filter { + return FilterClass.PerspectiveCorrectionFilter() } -// Returns a triangle kaleidoscope filter. [Full Topic] +// [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/3600140-circlesplashdistortionfilter?language=objc +func (fc _FilterClass) CircleSplashDistortionFilter() Filter { + rv := objc.Call[Filter](fc, objc.Sel("circleSplashDistortionFilter")) return rv } -// Returns a triangle kaleidoscope filter. [Full Topic] +// [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/3600140-circlesplashdistortionfilter?language=objc +func Filter_CircleSplashDistortionFilter() Filter { + return FilterClass.CircleSplashDistortionFilter() } -// Returns an addition compositing filter. [Full Topic] +// Returns a page curl transition 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/3228375-pagecurltransitionfilter?language=objc +func (fc _FilterClass) PageCurlTransitionFilter() Filter { + rv := objc.Call[Filter](fc, objc.Sel("pageCurlTransitionFilter")) return rv } -// Returns an addition compositing filter. [Full Topic] +// Returns a page curl transition 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/3228375-pagecurltransitionfilter?language=objc +func Filter_PageCurlTransitionFilter() Filter { + return FilterClass.PageCurlTransitionFilter() } -// Returns a keystone correction vertical filter. [Full Topic] +// Returns a photo-effect transfer 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/3228391-photoeffecttransferfilter?language=objc +func (fc _FilterClass) PhotoEffectTransferFilter() Filter { + rv := objc.Call[Filter](fc, objc.Sel("photoEffectTransferFilter")) return rv } -// Returns a keystone correction vertical filter. [Full Topic] +// Returns a photo-effect transfer 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/3228391-photoeffecttransferfilter?language=objc +func Filter_PhotoEffectTransferFilter() Filter { + return FilterClass.PhotoEffectTransferFilter() } -// Returns a Lab Delta E filter. [Full Topic] +// [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/3750387-convolutionrgb7x7filter?language=objc +func (fc _FilterClass) ConvolutionRGB7X7Filter() Filter { + rv := objc.Call[Filter](fc, objc.Sel("convolutionRGB7X7Filter")) return rv } -// Returns a Lab Delta E filter. [Full Topic] +// [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/3750387-convolutionrgb7x7filter?language=objc +func Filter_ConvolutionRGB7X7Filter() Filter { + return FilterClass.ConvolutionRGB7X7Filter() } -// [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/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/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 } -// [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/3547121-columnaveragefilter?language=objc -func Filter_ColumnAverageFilter() Filter { - return FilterClass.ColumnAverageFilter() +// [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...) } -// Creates a zoom blur centered around a single point on the image. [Full Topic] +// Returns an edges 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/3228321-edgesfilter?language=objc +func (fc _FilterClass) EdgesFilter() Filter { + rv := objc.Call[Filter](fc, objc.Sel("edgesFilter")) return rv } -// Creates a zoom blur centered around a single point on the image. [Full Topic] +// Returns an edges 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/3228321-edgesfilter?language=objc +func Filter_EdgesFilter() Filter { + return FilterClass.EdgesFilter() } -// Returns a maximum compositing filter. [Full Topic] +// Blurs an image with a Gaussian distribution pattern. [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/3228331-gaussianblurfilter?language=objc +func (fc _FilterClass) GaussianBlurFilter() Filter { + rv := objc.Call[Filter](fc, objc.Sel("gaussianBlurFilter")) return rv } -// Returns a maximum compositing filter. [Full Topic] +// Blurs an image with a Gaussian distribution pattern. [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/3228331-gaussianblurfilter?language=objc +func Filter_GaussianBlurFilter() Filter { + return FilterClass.GaussianBlurFilter() } -// Returns a false color filter. [Full Topic] +// [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/3547115-areaminmaxfilter?language=objc +func (fc _FilterClass) AreaMinMaxFilter() Filter { + rv := objc.Call[Filter](fc, objc.Sel("areaMinMaxFilter")) return rv } -// Returns a false color filter. [Full Topic] +// [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/3547115-areaminmaxfilter?language=objc +func Filter_AreaMinMaxFilter() Filter { + return FilterClass.AreaMinMaxFilter() } -// Returns an unsharp mask filter. [Full Topic] +// Returns a triangle tile 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/3228426-triangletilefilter?language=objc +func (fc _FilterClass) TriangleTileFilter() Filter { + rv := objc.Call[Filter](fc, objc.Sel("triangleTileFilter")) return rv } -// Returns an unsharp mask filter. [Full Topic] +// Returns a triangle tile 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/3228426-triangletilefilter?language=objc +func Filter_TriangleTileFilter() Filter { + return FilterClass.TriangleTileFilter() } -// Returns a gloom filter. [Full Topic] +// Returns a depth-to-disparity 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/3228309-depthtodisparityfilter?language=objc +func (fc _FilterClass) DepthToDisparityFilter() Filter { + rv := objc.Call[Filter](fc, objc.Sel("depthToDisparityFilter")) return rv } -// Returns a gloom filter. [Full Topic] +// Returns a depth-to-disparity 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/3228309-depthtodisparityfilter?language=objc +func Filter_DepthToDisparityFilter() Filter { + return FilterClass.DepthToDisparityFilter() } -// Blurs an image with a Gaussian distribution pattern. [Full Topic] +// Returns a color-burn blend mode 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/3228283-colorburnblendmodefilter?language=objc +func (fc _FilterClass) ColorBurnBlendModeFilter() Filter { + rv := objc.Call[Filter](fc, objc.Sel("colorBurnBlendModeFilter")) return rv } -// Blurs an image with a Gaussian distribution pattern. [Full Topic] +// Returns a color-burn blend mode 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/3228283-colorburnblendmodefilter?language=objc +func Filter_ColorBurnBlendModeFilter() Filter { + return FilterClass.ColorBurnBlendModeFilter() } -// Returns a perspective rotate filter. [Full Topic] +// Returns a temperature and tint 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/3228421-temperatureandtintfilter?language=objc +func (fc _FilterClass) TemperatureAndTintFilter() Filter { + rv := objc.Call[Filter](fc, objc.Sel("temperatureAndTintFilter")) return rv } -// Returns a perspective rotate filter. [Full Topic] +// Returns a temperature and tint 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/3228421-temperatureandtintfilter?language=objc +func Filter_TemperatureAndTintFilter() Filter { + return FilterClass.TemperatureAndTintFilter() } -// [Full Topic] +// Returns an edge-work 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/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/3750387-convolutionrgb7x7filter?language=objc -func Filter_ConvolutionRGB7X7Filter() Filter { - return FilterClass.ConvolutionRGB7X7Filter() +// [Full Topic]: https://developer.apple.com/documentation/coreimage/cifilter/3228320-edgeworkfilter?language=objc +func Filter_EdgeWorkFilter() Filter { + return FilterClass.EdgeWorkFilter() } -// [Full Topic] +// Returns a lenticular halo generator filter. [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/3228345-lenticularhalogeneratorfilter?language=objc +func (fc _FilterClass) LenticularHaloGeneratorFilter() Filter { + rv := objc.Call[Filter](fc, objc.Sel("lenticularHaloGeneratorFilter")) return rv } -// [Full Topic] +// Returns a lenticular halo generator filter. [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/3228345-lenticularhalogeneratorfilter?language=objc +func Filter_LenticularHaloGeneratorFilter() Filter { + return FilterClass.LenticularHaloGeneratorFilter() } -// Returns a checkerboard generator filter. [Full Topic] +// Returns a linear-dodge blend mode 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/3228350-lineardodgeblendmodefilter?language=objc +func (fc _FilterClass) LinearDodgeBlendModeFilter() Filter { + rv := objc.Call[Filter](fc, objc.Sel("linearDodgeBlendModeFilter")) return rv } -// Returns a checkerboard generator filter. [Full Topic] +// Returns a linear-dodge blend mode 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/3228350-lineardodgeblendmodefilter?language=objc +func Filter_LinearDodgeBlendModeFilter() Filter { + return FilterClass.LinearDodgeBlendModeFilter() } -// Detects and highlights edges of objects. [Full Topic] +// Returns an overlay blend mode 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/3228374-overlayblendmodefilter?language=objc +func (fc _FilterClass) OverlayBlendModeFilter() Filter { + rv := objc.Call[Filter](fc, objc.Sel("overlayBlendModeFilter")) return rv } -// Detects and highlights edges of objects. [Full Topic] +// Returns an overlay blend mode 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/3228374-overlayblendmodefilter?language=objc +func Filter_OverlayBlendModeFilter() Filter { + return FilterClass.OverlayBlendModeFilter() } -// Returns a mix 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/3228362-mixfilter?language=objc -func (fc _FilterClass) MixFilter() Filter { - rv := objc.Call[Filter](fc, objc.Sel("mixFilter")) - 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 mix 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/3228362-mixfilter?language=objc -func Filter_MixFilter() Filter { - return FilterClass.MixFilter() +// [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/3600153-twirldistortionfilter?language=objc -func (fc _FilterClass) TwirlDistortionFilter() Filter { - rv := objc.Call[Filter](fc, objc.Sel("twirlDistortionFilter")) - 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, objc.Ptr(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/3600153-twirldistortionfilter?language=objc -func Filter_TwirlDistortionFilter() Filter { - return FilterClass.TwirlDistortionFilter() +// [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] +// Returns a linear-to-sRGB 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/3228352-lineartosrgbtonecurvefilter?language=objc +func (fc _FilterClass) LinearToSRGBToneCurveFilter() Filter { + rv := objc.Call[Filter](fc, objc.Sel("linearToSRGBToneCurveFilter")) return rv } -// [Full Topic] +// Returns a linear-to-sRGB 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/3228352-lineartosrgbtonecurvefilter?language=objc +func Filter_LinearToSRGBToneCurveFilter() Filter { + return FilterClass.LinearToSRGBToneCurveFilter() } // Returns a disparity-to-depth filter. [Full Topic] @@ -1402,64 +1405,49 @@ func Filter_DisparityToDepthFilter() Filter { return FilterClass.DisparityToDepthFilter() } -// Returns a palette centroid 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")) - return rv -} - -// Returns a palette centroid filter. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/coreimage/cifilter/3228377-palettecentroidfilter?language=objc -func Filter_PaletteCentroidFilter() Filter { - return FilterClass.PaletteCentroidFilter() -} - -// Returns a random generator filter. [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")) +// Returns a multiply compositing 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")) return rv } -// Returns a random generator filter. [Full Topic] +// Returns a multiply compositing filter. [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/3228371-multiplycompositingfilter?language=objc +func Filter_MultiplyCompositingFilter() Filter { + return FilterClass.MultiplyCompositingFilter() } -// [Full Topic] +// Calculates the median of an image to refine detail. [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/3228358-medianfilter?language=objc +func (fc _FilterClass) MedianFilter() Filter { + rv := objc.Call[Filter](fc, objc.Sel("medianFilter")) return rv } -// [Full Topic] +// Calculates the median of an image to refine detail. [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/3228358-medianfilter?language=objc +func Filter_MedianFilter() Filter { + return FilterClass.MedianFilter() } -// Returns a bicubic scale transform filter. [Full Topic] +// Returns a hue adjust filter. [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/3228340-hueadjustfilter?language=objc +func (fc _FilterClass) HueAdjustFilter() Filter { + rv := objc.Call[Filter](fc, objc.Sel("hueAdjustFilter")) return rv } -// Returns a bicubic scale transform filter. [Full Topic] +// Returns a hue adjust filter. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/cifilter/3228271-bicubicscaletransformfilter?language=objc -func Filter_BicubicScaleTransformFilter() Filter { - return FilterClass.BicubicScaleTransformFilter() +// [Full Topic]: https://developer.apple.com/documentation/coreimage/cifilter/3228340-hueadjustfilter?language=objc +func Filter_HueAdjustFilter() Filter { + return FilterClass.HueAdjustFilter() } // Returns a crystalize filter. [Full Topic] @@ -1477,64 +1465,79 @@ func Filter_CrystallizeFilter() Filter { return FilterClass.CrystallizeFilter() } -// Returns a fourfold reflected tile filter. [Full Topic] +// Returns a color matrix 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/3228294-colormatrixfilter?language=objc +func (fc _FilterClass) ColorMatrixFilter() Filter { + rv := objc.Call[Filter](fc, objc.Sel("colorMatrixFilter")) return rv } -// Returns a fourfold reflected tile filter. [Full Topic] +// Returns a color matrix 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/3228294-colormatrixfilter?language=objc +func Filter_ColorMatrixFilter() Filter { + return FilterClass.ColorMatrixFilter() } -// Returns a triangle tile filter. [Full Topic] +// [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")) +// [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 triangle tile filter. [Full Topic] +// [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/3547118-areaminimumfilter?language=objc +func Filter_AreaMinimumFilter() Filter { + return FilterClass.AreaMinimumFilter() } -// Returns a fourfold translated tile filter. [Full Topic] +// Returns a lighten 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/3228346-lightenblendmodefilter?language=objc +func (fc _FilterClass) LightenBlendModeFilter() Filter { + rv := objc.Call[Filter](fc, objc.Sel("lightenBlendModeFilter")) return rv } -// Returns a fourfold translated tile filter. [Full Topic] +// Returns a lighten blend mode filter. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/cifilter/3228329-fourfoldtranslatedtilefilter?language=objc -func Filter_FourfoldTranslatedTileFilter() Filter { - return FilterClass.FourfoldTranslatedTileFilter() +// [Full Topic]: https://developer.apple.com/documentation/coreimage/cifilter/3228346-lightenblendmodefilter?language=objc +func Filter_LightenBlendModeFilter() Filter { + return FilterClass.LightenBlendModeFilter() } -// [Full Topic] +// Returns a QR 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/3228262-qrcodegenerator?language=objc +func (fc _FilterClass) QRCodeGenerator() Filter { + rv := objc.Call[Filter](fc, objc.Sel("QRCodeGenerator")) return rv } -// [Full Topic] +// Returns a QR 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/3228262-qrcodegenerator?language=objc +func Filter_QRCodeGenerator() Filter { + return FilterClass.QRCodeGenerator() +} + +// 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 document enhancer filter. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/coreimage/cifilter/3228317-documentenhancerfilter?language=objc +func Filter_DocumentEnhancerFilter() Filter { + return FilterClass.DocumentEnhancerFilter() } // Returns a flash transition filter. [Full Topic] @@ -1552,882 +1555,949 @@ func Filter_FlashTransitionFilter() Filter { return FilterClass.FlashTransitionFilter() } -// Returns a color invert filter. [Full Topic] +// [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/3600144-glassdistortionfilter?language=objc +func (fc _FilterClass) GlassDistortionFilter() Filter { + rv := objc.Call[Filter](fc, objc.Sel("glassDistortionFilter")) return rv } -// Returns a color invert filter. [Full Topic] +// [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/3600144-glassdistortionfilter?language=objc +func Filter_GlassDistortionFilter() Filter { + return FilterClass.GlassDistortionFilter() } -// Returns a color cube with color space filter. [Full Topic] +// Returns a PDF417 barcode generator filter. [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")) +// [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 } -// Returns a color cube with color space filter. [Full Topic] +// Returns a PDF417 barcode generator filter. [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/3228261-pdf417barcodegenerator?language=objc +func Filter_PDF417BarcodeGenerator() Filter { + return FilterClass.PDF417BarcodeGenerator() } -// Sets all input values for a filter to default values. [Full Topic] +// [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/3547116-areaminmaxredfilter?language=objc +func (fc _FilterClass) AreaMinMaxRedFilter() Filter { + rv := objc.Call[Filter](fc, objc.Sel("areaMinMaxRedFilter")) + return rv } -// Returns a color polynomial filter. [Full Topic] +// [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/3547116-areaminmaxredfilter?language=objc +func Filter_AreaMinMaxRedFilter() Filter { + return FilterClass.AreaMinMaxRedFilter() +} + +// Returns a kaleidoscope 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")) return rv } -// Returns a color polynomial filter. [Full Topic] +// Returns a kaleidoscope 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/3228343-kaleidoscopefilter?language=objc +func Filter_KaleidoscopeFilter() Filter { + return FilterClass.KaleidoscopeFilter() } -// Returns a divide blend mode filter. [Full Topic] +// Returns a convolution 9 vertical filter. [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/3228303-convolution9verticalfilter?language=objc +func (fc _FilterClass) Convolution9VerticalFilter() Filter { + rv := objc.Call[Filter](fc, objc.Sel("convolution9VerticalFilter")) return rv } -// Returns a divide blend mode filter. [Full Topic] +// Returns a convolution 9 vertical filter. [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/3228303-convolution9verticalfilter?language=objc +func Filter_Convolution9VerticalFilter() Filter { + return FilterClass.Convolution9VerticalFilter() } -// Returns a twelvefold reflected tile filter. [Full Topic] +// Returns a stripes generator 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/3228417-stripesgeneratorfilter?language=objc +func (fc _FilterClass) StripesGeneratorFilter() Filter { + rv := objc.Call[Filter](fc, objc.Sel("stripesGeneratorFilter")) return rv } -// Returns a twelvefold reflected tile filter. [Full Topic] +// Returns a stripes generator filter. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/cifilter/3228427-twelvefoldreflectedtilefilter?language=objc -func Filter_TwelvefoldReflectedTileFilter() Filter { - return FilterClass.TwelvefoldReflectedTileFilter() +// [Full Topic]: https://developer.apple.com/documentation/coreimage/cifilter/3228417-stripesgeneratorfilter?language=objc +func Filter_StripesGeneratorFilter() Filter { + return FilterClass.StripesGeneratorFilter() } -// Returns a spotlight filter. [Full Topic] +// Returns the localized name for the specified filter category. [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/1438057-localizednameforcategory?language=objc +func (fc _FilterClass) LocalizedNameForCategory(category string) string { + rv := objc.Call[string](fc, objc.Sel("localizedNameForCategory:"), category) + return rv +} + +// Returns the localized name for the specified filter category. [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) +} + +// Reduces noise by sharpening the edges of objects. [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")) + return rv +} + +// Reduces noise by sharpening the edges of objects. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/coreimage/cifilter/3228372-noisereductionfilter?language=objc +func Filter_NoiseReductionFilter() Filter { + return FilterClass.NoiseReductionFilter() +} + +// Returns a page-curl-with-shadow transition filter. [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")) return rv } -// Returns a spotlight filter. [Full Topic] +// Returns a page-curl-with-shadow transition 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/3228376-pagecurlwithshadowtransitionfilt?language=objc +func Filter_PageCurlWithShadowTransitionFilter() Filter { + return FilterClass.PageCurlWithShadowTransitionFilter() } -// Returns a rounded rectangle generator filter. [Full Topic] +// Returns a convolution 5 x 5 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/3228300-convolution5x5filter?language=objc +func (fc _FilterClass) Convolution5X5Filter() Filter { + rv := objc.Call[Filter](fc, objc.Sel("convolution5X5Filter")) return rv } -// Returns a rounded rectangle generator filter. [Full Topic] +// Returns a convolution 5 x 5 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/3228300-convolution5x5filter?language=objc +func Filter_Convolution5X5Filter() Filter { + return FilterClass.Convolution5X5Filter() } -// Returns a perspective transform filter. [Full Topic] +// Returns a mix 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/3228362-mixfilter?language=objc +func (fc _FilterClass) MixFilter() Filter { + rv := objc.Call[Filter](fc, objc.Sel("mixFilter")) return rv } -// Returns a perspective transform filter. [Full Topic] +// Returns a mix 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/3228362-mixfilter?language=objc +func Filter_MixFilter() Filter { + return FilterClass.MixFilter() } -// Returns a perspective correction filter. [Full Topic] +// Returns a saturation blend mode 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")) +// [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 } -// Returns a perspective correction filter. [Full Topic] +// Returns a saturation blend mode 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/3228400-saturationblendmodefilter?language=objc +func Filter_SaturationBlendModeFilter() Filter { + return FilterClass.SaturationBlendModeFilter() } -// A name associated with a filter. [Full Topic] +// [Full Topic] // -// [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")) +// [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 multiply compositing filter. [Full Topic] +// [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/3600138-bumpdistortionfilter?language=objc +func Filter_BumpDistortionFilter() Filter { + return FilterClass.BumpDistortionFilter() +} + +// Returns a palettize 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")) return rv } -// Returns a multiply compositing filter. [Full Topic] +// Returns a palettize 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/3228378-palettizefilter?language=objc +func Filter_PalettizeFilter() Filter { + return FilterClass.PalettizeFilter() } -// Returns a hue blend mode filter. [Full Topic] +// Returns a tone curve 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/3228424-tonecurvefilter?language=objc +func (fc _FilterClass) ToneCurveFilter() Filter { + rv := objc.Call[Filter](fc, objc.Sel("toneCurveFilter")) return rv } -// Returns a hue blend mode filter. [Full Topic] +// Returns a tone curve 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/3228424-tonecurvefilter?language=objc +func Filter_ToneCurveFilter() Filter { + return FilterClass.ToneCurveFilter() } -// Reduces noise by sharpening the edges of objects. [Full Topic] +// Returns a affine tile 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/3228266-affinetilefilter?language=objc +func (fc _FilterClass) AffineTileFilter() Filter { + rv := objc.Call[Filter](fc, objc.Sel("affineTileFilter")) return rv } -// Reduces noise by sharpening the edges of objects. [Full Topic] +// Returns a affine tile 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/3228266-affinetilefilter?language=objc +func Filter_AffineTileFilter() Filter { + return FilterClass.AffineTileFilter() } -// Returns a page-curl-with-shadow transition filter. [Full Topic] +// Returns a linear gradient filter. [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/3228351-lineargradientfilter?language=objc +func (fc _FilterClass) LinearGradientFilter() Filter { + rv := objc.Call[Filter](fc, objc.Sel("linearGradientFilter")) return rv } -// Returns a page-curl-with-shadow transition filter. [Full Topic] +// Returns a linear gradient 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/3228351-lineargradientfilter?language=objc +func Filter_LinearGradientFilter() Filter { + return FilterClass.LinearGradientFilter() } -// Returns a color posterize filter. [Full Topic] +// Returns a color controls filter. [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/3228285-colorcontrolsfilter?language=objc +func (fc _FilterClass) ColorControlsFilter() Filter { + rv := objc.Call[Filter](fc, objc.Sel("colorControlsFilter")) return rv } -// Returns a color posterize filter. [Full Topic] +// Returns a color controls filter. [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/3228285-colorcontrolsfilter?language=objc +func Filter_ColorControlsFilter() Filter { + return FilterClass.ColorControlsFilter() } -// Returns an exclusion blend mode filter. [Full Topic] +// Returns a perspective transform with extent 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/3228383-perspectivetransformwithextentfi?language=objc +func (fc _FilterClass) PerspectiveTransformWithExtentFilter() Filter { + rv := objc.Call[Filter](fc, objc.Sel("perspectiveTransformWithExtentFilter")) return rv } -// Returns an exclusion blend mode filter. [Full Topic] +// Returns a perspective transform with extent 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/3228383-perspectivetransformwithextentfi?language=objc +func Filter_PerspectiveTransformWithExtentFilter() Filter { + return FilterClass.PerspectiveTransformWithExtentFilter() } -// Returns a temperature and tint 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/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/3228434-zoomblurfilter?language=objc +func (fc _FilterClass) ZoomBlurFilter() Filter { + rv := objc.Call[Filter](fc, objc.Sel("zoomBlurFilter")) return rv } -// Returns a temperature and tint 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/3228421-temperatureandtintfilter?language=objc -func Filter_TemperatureAndTintFilter() Filter { - return FilterClass.TemperatureAndTintFilter() +// [Full Topic]: https://developer.apple.com/documentation/coreimage/cifilter/3228434-zoomblurfilter?language=objc +func Filter_ZoomBlurFilter() Filter { + return FilterClass.ZoomBlurFilter() } -// Blurs a circular area by enlarging contrasting pixels. [Full Topic] +// Returns a spot color 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/3228413-spotcolorfilter?language=objc +func (fc _FilterClass) SpotColorFilter() Filter { + rv := objc.Call[Filter](fc, objc.Sel("spotColorFilter")) return rv } -// Blurs a circular area by enlarging contrasting pixels. [Full Topic] +// Returns a spot color 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/3228413-spotcolorfilter?language=objc +func Filter_SpotColorFilter() Filter { + return FilterClass.SpotColorFilter() } -// Returns a pointillize filter. [Full Topic] +// Returns a luminosity blend mode 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/3228353-luminosityblendmodefilter?language=objc +func (fc _FilterClass) LuminosityBlendModeFilter() Filter { + rv := objc.Call[Filter](fc, objc.Sel("luminosityBlendModeFilter")) return rv } -// Returns a pointillize filter. [Full Topic] +// Returns a luminosity blend mode 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/3228353-luminosityblendmodefilter?language=objc +func Filter_LuminosityBlendModeFilter() Filter { + return FilterClass.LuminosityBlendModeFilter() } -// Returns a vignette filter. [Full Topic] +// Returns a divide blend mode 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/3228316-divideblendmodefilter?language=objc +func (fc _FilterClass) DivideBlendModeFilter() Filter { + rv := objc.Call[Filter](fc, objc.Sel("divideBlendModeFilter")) return rv } -// Returns a vignette filter. [Full Topic] +// Returns a divide blend mode 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/3228316-divideblendmodefilter?language=objc +func Filter_DivideBlendModeFilter() Filter { + return FilterClass.DivideBlendModeFilter() } -// Returns a Gabor gradients filter. [Full Topic] +// Returns a blend with alpha mask 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/3228272-blendwithalphamaskfilter?language=objc +func (fc _FilterClass) BlendWithAlphaMaskFilter() Filter { + rv := objc.Call[Filter](fc, objc.Sel("blendWithAlphaMaskFilter")) return rv } -// Returns a Gabor gradients filter. [Full Topic] +// Returns a blend with alpha mask 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/3228272-blendwithalphamaskfilter?language=objc +func Filter_BlendWithAlphaMaskFilter() Filter { + return FilterClass.BlendWithAlphaMaskFilter() } // [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/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/3547114-areamaximumfilter?language=objc -func Filter_AreaMaximumFilter() Filter { - return FilterClass.AreaMaximumFilter() +// [Full Topic]: https://developer.apple.com/documentation/coreimage/cifilter/3600154-vortexdistortionfilter?language=objc +func Filter_VortexDistortionFilter() Filter { + return FilterClass.VortexDistortionFilter() } -// [Full Topic] +// Returns a copy machine transition 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/3228304-copymachinetransitionfilter?language=objc +func (fc _FilterClass) CopyMachineTransitionFilter() Filter { + rv := objc.Call[Filter](fc, objc.Sel("copyMachineTransitionFilter")) return rv } -// [Full Topic] +// Returns a copy machine transition 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/3228304-copymachinetransitionfilter?language=objc +func Filter_CopyMachineTransitionFilter() Filter { + return FilterClass.CopyMachineTransitionFilter() } -// Returns a source-out compositing filter. [Full Topic] +// Creates a CIFilter object for a specific kind of 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/1438255-filterwithname?language=objc +func (fc _FilterClass) FilterWithName(name string) Filter { + rv := objc.Call[Filter](fc, objc.Sel("filterWithName:"), name) return rv } -// Returns a source-out compositing filter. [Full Topic] +// Creates a CIFilter object for a specific kind of 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/1438255-filterwithname?language=objc +func Filter_FilterWithName(name string) Filter { + return FilterClass.FilterWithName(name) } -// Returns the localized name for the specified filter category. [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/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/1437591-localizeddescriptionforfilternam?language=objc +func (fc _FilterClass) LocalizedDescriptionForFilterName(filterName string) string { + rv := objc.Call[string](fc, objc.Sel("localizedDescriptionForFilterName:"), filterName) return rv } -// Returns the localized name for the specified filter category. [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/1438057-localizednameforcategory?language=objc -func Filter_LocalizedNameForCategory(category string) string { - return FilterClass.LocalizedNameForCategory(category) +// [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 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/3547111-areaaveragefilter?language=objc +func (fc _FilterClass) AreaAverageFilter() Filter { + rv := objc.Call[Filter](fc, objc.Sel("areaAverageFilter")) 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/3547111-areaaveragefilter?language=objc +func Filter_AreaAverageFilter() Filter { + return FilterClass.AreaAverageFilter() } -// Returns an edges filter. [Full Topic] +// Returns a source-atop compositing 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/3228409-sourceatopcompositingfilter?language=objc +func (fc _FilterClass) SourceAtopCompositingFilter() Filter { + rv := objc.Call[Filter](fc, objc.Sel("sourceAtopCompositingFilter")) return rv } -// Returns an edges filter. [Full Topic] +// Returns a source-atop compositing 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/3228409-sourceatopcompositingfilter?language=objc +func Filter_SourceAtopCompositingFilter() Filter { + return FilterClass.SourceAtopCompositingFilter() } -// [Full Topic] +// Returns a circular screen 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/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/3600147-lighttunnelfilter?language=objc -func Filter_LightTunnelFilter() Filter { - return FilterClass.LightTunnelFilter() +// [Full Topic]: https://developer.apple.com/documentation/coreimage/cifilter/3228280-circularscreenfilter?language=objc +func Filter_CircularScreenFilter() Filter { + return FilterClass.CircularScreenFilter() } -// Returns a glide reflected tile filter. [Full Topic] +// Returns an edge preserve upsample 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/3228319-edgepreserveupsamplefilter?language=objc +func (fc _FilterClass) EdgePreserveUpsampleFilter() Filter { + rv := objc.Call[Filter](fc, objc.Sel("edgePreserveUpsampleFilter")) return rv } -// Returns a glide reflected tile filter. [Full Topic] +// Returns an edge preserve upsample 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/3228319-edgepreserveupsamplefilter?language=objc +func Filter_EdgePreserveUpsampleFilter() Filter { + return FilterClass.EdgePreserveUpsampleFilter() } -// Returns a photo-effect tonal filter. [Full Topic] +// Returns a Aztec code generator filter. [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/3228268-azteccodegeneratorfilter?language=objc +func (fc _FilterClass) AztecCodeGeneratorFilter() Filter { + rv := objc.Call[Filter](fc, objc.Sel("aztecCodeGeneratorFilter")) return rv } -// Returns a photo-effect tonal filter. [Full Topic] +// Returns a Aztec code generator filter. [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/3228268-azteccodegeneratorfilter?language=objc +func Filter_AztecCodeGeneratorFilter() Filter { + return FilterClass.AztecCodeGeneratorFilter() } -// Returns an overlay blend mode filter. [Full Topic] +// Returns a Gabor gradients 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/3325508-gaborgradientsfilter?language=objc +func (fc _FilterClass) GaborGradientsFilter() Filter { + rv := objc.Call[Filter](fc, objc.Sel("gaborGradientsFilter")) return rv } -// Returns an overlay blend mode filter. [Full Topic] +// Returns a Gabor gradients filter. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/cifilter/3228374-overlayblendmodefilter?language=objc -func Filter_OverlayBlendModeFilter() Filter { - return FilterClass.OverlayBlendModeFilter() +// [Full Topic]: https://developer.apple.com/documentation/coreimage/cifilter/3325508-gaborgradientsfilter?language=objc +func Filter_GaborGradientsFilter() Filter { + return FilterClass.GaborGradientsFilter() } -// [Full Topic] +// Returns a spotlight filter. [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/3228414-spotlightfilter?language=objc +func (fc _FilterClass) SpotLightFilter() Filter { + rv := objc.Call[Filter](fc, objc.Sel("spotLightFilter")) return rv } -// [Full Topic] +// Returns a spotlight filter. [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/3228414-spotlightfilter?language=objc +func Filter_SpotLightFilter() Filter { + return FilterClass.SpotLightFilter() } -// [Full Topic] +// Returns a blend with blue mask 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/3228273-blendwithbluemaskfilter?language=objc +func (fc _FilterClass) BlendWithBlueMaskFilter() Filter { + rv := objc.Call[Filter](fc, objc.Sel("blendWithBlueMaskFilter")) return rv } -// [Full Topic] +// Returns a blend with blue mask 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/3228273-blendwithbluemaskfilter?language=objc +func Filter_BlendWithBlueMaskFilter() Filter { + return FilterClass.BlendWithBlueMaskFilter() } -// Returns an exposure adjust filter. [Full Topic] +// Returns a photo-effect chrome 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/3228384-photoeffectchromefilter?language=objc +func (fc _FilterClass) PhotoEffectChromeFilter() Filter { + rv := objc.Call[Filter](fc, objc.Sel("photoEffectChromeFilter")) return rv } -// Returns an exposure adjust filter. [Full Topic] +// Returns a photo-effect chrome 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/3228384-photoeffectchromefilter?language=objc +func Filter_PhotoEffectChromeFilter() Filter { + return FilterClass.PhotoEffectChromeFilter() } -// Returns a linear-to-sRGB filter. [Full Topic] +// Returns a color posterize filter. [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/3228297-colorposterizefilter?language=objc +func (fc _FilterClass) ColorPosterizeFilter() Filter { + rv := objc.Call[Filter](fc, objc.Sel("colorPosterizeFilter")) return rv } -// Returns a linear-to-sRGB filter. [Full Topic] +// Returns a color posterize filter. [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/3228297-colorposterizefilter?language=objc +func Filter_ColorPosterizeFilter() Filter { + return FilterClass.ColorPosterizeFilter() } -// Returns a multiply blend mode filter. [Full Topic] +// Returns a checkerboard generator 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/3228279-checkerboardgeneratorfilter?language=objc +func (fc _FilterClass) CheckerboardGeneratorFilter() Filter { + rv := objc.Call[Filter](fc, objc.Sel("checkerboardGeneratorFilter")) return rv } -// Returns a multiply blend mode filter. [Full Topic] +// Returns a checkerboard generator 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/3228279-checkerboardgeneratorfilter?language=objc +func Filter_CheckerboardGeneratorFilter() Filter { + return FilterClass.CheckerboardGeneratorFilter() } -// Returns a color map filter. [Full Topic] +// Returns a photo-effect instant 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/3228386-photoeffectinstantfilter?language=objc +func (fc _FilterClass) PhotoEffectInstantFilter() Filter { + rv := objc.Call[Filter](fc, objc.Sel("photoEffectInstantFilter")) return rv } -// Returns a color map filter. [Full Topic] +// Returns a photo-effect instant 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/3228386-photoeffectinstantfilter?language=objc +func Filter_PhotoEffectInstantFilter() Filter { + return FilterClass.PhotoEffectInstantFilter() } -// [Full Topic] +// Returns a depth-of-field filter. [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/3228308-depthoffieldfilter?language=objc +func (fc _FilterClass) DepthOfFieldFilter() Filter { + rv := objc.Call[Filter](fc, objc.Sel("depthOfFieldFilter")) return rv } -// [Full Topic] +// Returns a depth-of-field filter. [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/3228308-depthoffieldfilter?language=objc +func Filter_DepthOfFieldFilter() Filter { + return FilterClass.DepthOfFieldFilter() } -// Returns a color matrix filter. [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] +// +// [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] // -// [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/3600146-holedistortionfilter?language=objc +func (fc _FilterClass) HoleDistortionFilter() Filter { + rv := objc.Call[Filter](fc, objc.Sel("holeDistortionFilter")) 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/3600146-holedistortionfilter?language=objc +func Filter_HoleDistortionFilter() Filter { + return FilterClass.HoleDistortionFilter() } -// Applies a circle-shaped blur to an area of an image. [Full Topic] +// Returns a vignette 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/3228431-vignettefilter?language=objc +func (fc _FilterClass) VignetteFilter() Filter { + rv := objc.Call[Filter](fc, objc.Sel("vignetteFilter")) return rv } -// Applies a circle-shaped blur to an area of an image. [Full Topic] +// Returns a vignette 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/3228431-vignettefilter?language=objc +func Filter_VignetteFilter() Filter { + return FilterClass.VignetteFilter() } -// Returns a color clamp filter. [Full Topic] +// [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/3801605-vividlightblendmodefilter?language=objc +func (fc _FilterClass) VividLightBlendModeFilter() Filter { + rv := objc.Call[Filter](fc, objc.Sel("vividLightBlendModeFilter")) return rv } -// Returns a color clamp filter. [Full Topic] +// [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/3801605-vividlightblendmodefilter?language=objc +func Filter_VividLightBlendModeFilter() Filter { + return FilterClass.VividLightBlendModeFilter() } -// Returns a pin-light blend mode filter. [Full Topic] +// Returns a Lanczos scale transform 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/3228344-lanczosscaletransformfilter?language=objc +func (fc _FilterClass) LanczosScaleTransformFilter() Filter { + rv := objc.Call[Filter](fc, objc.Sel("lanczosScaleTransformFilter")) return rv } -// Returns a pin-light blend mode filter. [Full Topic] +// Returns a Lanczos scale transform 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/3228344-lanczosscaletransformfilter?language=objc +func Filter_LanczosScaleTransformFilter() Filter { + return FilterClass.LanczosScaleTransformFilter() } -// Returns a photo-effect process filter. [Full Topic] +// Returns a source-out compositing filter. [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/3228411-sourceoutcompositingfilter?language=objc +func (fc _FilterClass) SourceOutCompositingFilter() Filter { + rv := objc.Call[Filter](fc, objc.Sel("sourceOutCompositingFilter")) return rv } -// Returns a photo-effect process filter. [Full Topic] +// Returns a source-out compositing filter. [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/3228411-sourceoutcompositingfilter?language=objc +func Filter_SourceOutCompositingFilter() Filter { + return FilterClass.SourceOutCompositingFilter() } -// [Full Topic] +// Returns a Lab Delta E filter. [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/3228260-labdeltae?language=objc +func (fc _FilterClass) LabDeltaE() Filter { + rv := objc.Call[Filter](fc, objc.Sel("LabDeltaE")) return rv } -// [Full Topic] +// Returns a Lab Delta E filter. [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/3228260-labdeltae?language=objc +func Filter_LabDeltaE() Filter { + return FilterClass.LabDeltaE() } -// Returns an X-ray filter. [Full Topic] +// Returns an optical 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/3228373-optilefilter?language=objc +func (fc _FilterClass) OpTileFilter() Filter { + rv := objc.Call[Filter](fc, objc.Sel("opTileFilter")) return rv } -// Returns an X-ray filter. [Full Topic] +// Returns an optical 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/3228373-optilefilter?language=objc +func Filter_OpTileFilter() Filter { + return FilterClass.OpTileFilter() } // [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/3600143-drostefilter?language=objc +func (fc _FilterClass) DrosteFilter() Filter { + rv := objc.Call[Filter](fc, objc.Sel("drosteFilter")) return rv } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/cifilter/3547115-areaminmaxfilter?language=objc -func Filter_AreaMinMaxFilter() Filter { - return FilterClass.AreaMinMaxFilter() +// [Full Topic]: https://developer.apple.com/documentation/coreimage/cifilter/3600143-drostefilter?language=objc +func Filter_DrosteFilter() Filter { + return FilterClass.DrosteFilter() } -// Returns a Gaussian gradient filter. [Full Topic] +// Returns a photo-effect fade 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/3228385-photoeffectfadefilter?language=objc +func (fc _FilterClass) PhotoEffectFadeFilter() Filter { + rv := objc.Call[Filter](fc, objc.Sel("photoEffectFadeFilter")) return rv } -// Returns a Gaussian gradient filter. [Full Topic] +// Returns a photo-effect fade 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/3228385-photoeffectfadefilter?language=objc +func Filter_PhotoEffectFadeFilter() Filter { + return FilterClass.PhotoEffectFadeFilter() } -// 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 7 x 7 filter. [Full Topic] +// Returns a minimum component 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/3228360-minimumcomponentfilter?language=objc +func (fc _FilterClass) MinimumComponentFilter() Filter { + rv := objc.Call[Filter](fc, objc.Sel("minimumComponentFilter")) return rv } -// Returns a convolution 7 x 7 filter. [Full Topic] +// Returns a minimum component 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/3228360-minimumcomponentfilter?language=objc +func Filter_MinimumComponentFilter() Filter { + return FilterClass.MinimumComponentFilter() } -// Returns a blend with blue mask filter. [Full Topic] +// Returns a fourfold reflected tile 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/3228327-fourfoldreflectedtilefilter?language=objc +func (fc _FilterClass) FourfoldReflectedTileFilter() Filter { + rv := objc.Call[Filter](fc, objc.Sel("fourfoldReflectedTileFilter")) return rv } -// Returns a blend with blue mask filter. [Full Topic] +// Returns a fourfold reflected tile 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/3228327-fourfoldreflectedtilefilter?language=objc +func Filter_FourfoldReflectedTileFilter() Filter { + return FilterClass.FourfoldReflectedTileFilter() } -// Returns a pixellate filter. [Full Topic] +// Returns a sixfold reflected tile filter. [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/3228405-sixfoldreflectedtilefilter?language=objc +func (fc _FilterClass) SixfoldReflectedTileFilter() Filter { + rv := objc.Call[Filter](fc, objc.Sel("sixfoldReflectedTileFilter")) return rv } -// Returns a pixellate filter. [Full Topic] +// Returns a sixfold reflected tile filter. [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/3228405-sixfoldreflectedtilefilter?language=objc +func Filter_SixfoldReflectedTileFilter() Filter { + return FilterClass.SixfoldReflectedTileFilter() } -// [Full Topic] +// Returns a CMYK halftone filter. [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/3228259-cmykhalftone?language=objc +func (fc _FilterClass) CMYKHalftone() Filter { + rv := objc.Call[Filter](fc, objc.Sel("CMYKHalftone")) return rv } -// [Full Topic] +// Returns a CMYK halftone filter. [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/3228259-cmykhalftone?language=objc +func Filter_CMYKHalftone() Filter { + return FilterClass.CMYKHalftone() } -// Returns a depth-to-disparity filter. [Full Topic] +// Returns a source-over compositing 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")) +// [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 depth-to-disparity filter. [Full Topic] +// Returns a source-over compositing filter. [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/3228412-sourceovercompositingfilter?language=objc +func Filter_SourceOverCompositingFilter() Filter { + return FilterClass.SourceOverCompositingFilter() +} + +// 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() } -// Returns a thermal filter. [Full Topic] +// [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/3600145-glasslozengefilter?language=objc +func (fc _FilterClass) GlassLozengeFilter() Filter { + rv := objc.Call[Filter](fc, objc.Sel("glassLozengeFilter")) return rv } -// Returns a thermal filter. [Full Topic] +// [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/3600145-glasslozengefilter?language=objc +func Filter_GlassLozengeFilter() Filter { + return FilterClass.GlassLozengeFilter() } -// Produces a CIImage object by applying a kernel function. [Full Topic] +// Returns a bicubic scale transform 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{objc.Ptr(k)}, args...)...) +// [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 sixfold rotated tile filter. [Full Topic] +// Returns a bicubic scale transform 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/3228271-bicubicscaletransformfilter?language=objc +func Filter_BicubicScaleTransformFilter() Filter { + return FilterClass.BicubicScaleTransformFilter() +} + +// Returns an X-ray 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")) return rv } -// Returns a sixfold rotated tile filter. [Full Topic] +// Returns an X-ray 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/3228433-xrayfilter?language=objc +func Filter_XRayFilter() Filter { + return FilterClass.XRayFilter() } -// Returns a line overlay filter. [Full Topic] +// Returns a minimum compositing 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/3228361-minimumcompositingfilter?language=objc +func (fc _FilterClass) MinimumCompositingFilter() Filter { + rv := objc.Call[Filter](fc, objc.Sel("minimumCompositingFilter")) return rv } -// Returns a line overlay filter. [Full Topic] +// Returns a minimum compositing 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/3228361-minimumcompositingfilter?language=objc +func Filter_MinimumCompositingFilter() Filter { + return FilterClass.MinimumCompositingFilter() } -// Returns a color-burn blend mode filter. [Full Topic] +// Returns a white-point adjust 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/3228432-whitepointadjustfilter?language=objc +func (fc _FilterClass) WhitePointAdjustFilter() Filter { + rv := objc.Call[Filter](fc, objc.Sel("whitePointAdjustFilter")) return rv } -// Returns a color-burn blend mode filter. [Full Topic] +// Returns a white-point adjust 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/3228432-whitepointadjustfilter?language=objc +func Filter_WhitePointAdjustFilter() Filter { + return FilterClass.WhitePointAdjustFilter() } // Returns a smooth linear gradient filter. [Full Topic] @@ -2445,604 +2515,589 @@ func Filter_SmoothLinearGradientFilter() Filter { return FilterClass.SmoothLinearGradientFilter() } -// Returns a vignette-effect filter. [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")) - return rv -} - -// Returns a vignette-effect filter. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/coreimage/cifilter/3228430-vignetteeffectfilter?language=objc -func Filter_VignetteEffectFilter() Filter { - return FilterClass.VignetteEffectFilter() -} - -// Returns an eightfold reflected tile 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")) - return rv -} - -// Returns an eightfold reflected tile filter. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/coreimage/cifilter/3228322-eightfoldreflectedtilefilter?language=objc -func Filter_EightfoldReflectedTileFilter() Filter { - return FilterClass.EightfoldReflectedTileFilter() -} - -// Returns a color-dodge blend mode filter. [Full Topic] +// [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")) +// [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 } -// Returns a color-dodge blend mode filter. [Full Topic] +// [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/cifilter/3228291-colordodgeblendmodefilter?language=objc -func Filter_ColorDodgeBlendModeFilter() Filter { - return FilterClass.ColorDodgeBlendModeFilter() +// [Full Topic]: https://developer.apple.com/documentation/coreimage/cifilter/3547121-columnaveragefilter?language=objc +func Filter_ColumnAverageFilter() Filter { + return FilterClass.ColumnAverageFilter() } -// Returns a shaded material filter. [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/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/1438145-filternamesincategory?language=objc +func (fc _FilterClass) FilterNamesInCategory(category string) []string { + rv := objc.Call[[]string](fc, objc.Sel("filterNamesInCategory:"), category) return rv } -// Returns a shaded material filter. [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/3228403-shadedmaterialfilter?language=objc -func Filter_ShadedMaterialFilter() Filter { - return FilterClass.ShadedMaterialFilter() +// [Full Topic]: https://developer.apple.com/documentation/coreimage/cifilter/1438145-filternamesincategory?language=objc +func Filter_FilterNamesInCategory(category string) []string { + return FilterClass.FilterNamesInCategory(category) } -// Blurs a rectangular area by reducing contrasting pixels. [Full Topic] +// Returns a comic effect filter. [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/3228298-comiceffectfilter?language=objc +func (fc _FilterClass) ComicEffectFilter() Filter { + rv := objc.Call[Filter](fc, objc.Sel("comicEffectFilter")) return rv } -// Blurs a rectangular area by reducing contrasting pixels. [Full Topic] +// Returns a comic effect filter. [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/3228298-comiceffectfilter?language=objc +func Filter_ComicEffectFilter() Filter { + return FilterClass.ComicEffectFilter() } -// Returns a sepia-tone filter. [Full Topic] +// Returns a keystone correction horizontal 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/3325510-keystonecorrectionhorizontalfilt?language=objc +func (fc _FilterClass) KeystoneCorrectionHorizontalFilter() Filter { + rv := objc.Call[Filter](fc, objc.Sel("keystoneCorrectionHorizontalFilter")) return rv } -// Returns a sepia-tone filter. [Full Topic] +// Returns a keystone correction horizontal 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/3325510-keystonecorrectionhorizontalfilt?language=objc +func Filter_KeystoneCorrectionHorizontalFilter() Filter { + return FilterClass.KeystoneCorrectionHorizontalFilter() } -// Returns a hexagonal pixellate filter. [Full Topic] +// Returns the localized name for the specified filter name. [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/1437697-localizednameforfiltername?language=objc +func (fc _FilterClass) LocalizedNameForFilterName(filterName string) string { + rv := objc.Call[string](fc, objc.Sel("localizedNameForFilterName:"), filterName) return rv } -// Returns a hexagonal pixellate filter. [Full Topic] +// Returns the localized name for the specified filter name. [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/1437697-localizednameforfiltername?language=objc +func Filter_LocalizedNameForFilterName(filterName string) string { + return FilterClass.LocalizedNameForFilterName(filterName) } -// [Full Topic] +// Returns an exposure adjust filter. [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/3228324-exposureadjustfilter?language=objc +func (fc _FilterClass) ExposureAdjustFilter() Filter { + rv := objc.Call[Filter](fc, objc.Sel("exposureAdjustFilter")) return rv } -// [Full Topic] +// Returns an exposure adjust filter. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/cifilter/3547112-areahistogramfilter?language=objc -func Filter_AreaHistogramFilter() Filter { - return FilterClass.AreaHistogramFilter() +// [Full Topic]: https://developer.apple.com/documentation/coreimage/cifilter/3228324-exposureadjustfilter?language=objc +func Filter_ExposureAdjustFilter() Filter { + return FilterClass.ExposureAdjustFilter() } -// Returns a mod transition filter. [Full Topic] +// Returns an sRGB-to-linear 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")) +// [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 mod transition filter. [Full Topic] +// Returns an sRGB-to-linear 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/3228398-srgbtonecurvetolinearfilter?language=objc +func Filter_SRGBToneCurveToLinearFilter() Filter { + return FilterClass.SRGBToneCurveToLinearFilter() } // [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/3600153-twirldistortionfilter?language=objc +func (fc _FilterClass) TwirlDistortionFilter() Filter { + rv := objc.Call[Filter](fc, objc.Sel("twirlDistortionFilter")) return rv } // [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/3600153-twirldistortionfilter?language=objc +func Filter_TwirlDistortionFilter() Filter { + return FilterClass.TwirlDistortionFilter() } // [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/3547114-areamaximumfilter?language=objc +func (fc _FilterClass) AreaMaximumFilter() Filter { + rv := objc.Call[Filter](fc, objc.Sel("areaMaximumFilter")) return rv } // [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/3547114-areamaximumfilter?language=objc +func Filter_AreaMaximumFilter() Filter { + return FilterClass.AreaMaximumFilter() } -// Returns a convolution 9 horizontal 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/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/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 convolution 9 horizontal 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/3228302-convolution9horizontalfilter?language=objc -func Filter_Convolution9HorizontalFilter() Filter { - return FilterClass.Convolution9HorizontalFilter() +// [Full Topic]: https://developer.apple.com/documentation/coreimage/cifilter/3228047-customattributes?language=objc +func Filter_CustomAttributes() map[string]objc.Object { + return FilterClass.CustomAttributes() } -// Returns a luminosity blend mode filter. [Full Topic] +// Returns a saliency map 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/3228399-saliencymapfilter?language=objc +func (fc _FilterClass) SaliencyMapFilter() Filter { + rv := objc.Call[Filter](fc, objc.Sel("saliencyMapFilter")) return rv } -// Returns a luminosity blend mode filter. [Full Topic] +// Returns a saliency map 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/3228399-saliencymapfilter?language=objc +func Filter_SaliencyMapFilter() Filter { + return FilterClass.SaliencyMapFilter() } -// Returns an optical tile filter. [Full Topic] +// Returns a source-in compositing 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/3228410-sourceincompositingfilter?language=objc +func (fc _FilterClass) SourceInCompositingFilter() Filter { + rv := objc.Call[Filter](fc, objc.Sel("sourceInCompositingFilter")) return rv } -// Returns an optical tile filter. [Full Topic] +// Returns a source-in compositing 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/3228410-sourceincompositingfilter?language=objc +func Filter_SourceInCompositingFilter() Filter { + return FilterClass.SourceInCompositingFilter() } -// Returns a minimum compositing filter. [Full Topic] +// Returns a keystone correction combined 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/3325509-keystonecorrectioncombinedfilter?language=objc +func (fc _FilterClass) KeystoneCorrectionCombinedFilter() Filter { + rv := objc.Call[Filter](fc, objc.Sel("keystoneCorrectionCombinedFilter")) return rv } -// Returns a minimum compositing filter. [Full Topic] +// Returns a keystone correction combined 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/3325509-keystonecorrectioncombinedfilter?language=objc +func Filter_KeystoneCorrectionCombinedFilter() Filter { + return FilterClass.KeystoneCorrectionCombinedFilter() } -// Returns a maximum component filter. [Full Topic] +// Returns a dot screen 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/3228318-dotscreenfilter?language=objc +func (fc _FilterClass) DotScreenFilter() Filter { + rv := objc.Call[Filter](fc, objc.Sel("dotScreenFilter")) return rv } -// Returns a maximum component filter. [Full Topic] +// Returns a dot screen 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/3228318-dotscreenfilter?language=objc +func Filter_DotScreenFilter() Filter { + return FilterClass.DotScreenFilter() } -// Returns an affine clamp filter. [Full Topic] +// Returns a line screen 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/3228348-linescreenfilter?language=objc +func (fc _FilterClass) LineScreenFilter() Filter { + rv := objc.Call[Filter](fc, objc.Sel("lineScreenFilter")) return rv } -// Returns an affine clamp filter. [Full Topic] +// Returns a line screen 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/3228348-linescreenfilter?language=objc +func Filter_LineScreenFilter() Filter { + return FilterClass.LineScreenFilter() } -// Applies a square-shaped blur to an area of an image. [Full Topic] +// Returns a hue blend mode 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/3228341-hueblendmodefilter?language=objc +func (fc _FilterClass) HueBlendModeFilter() Filter { + rv := objc.Call[Filter](fc, objc.Sel("hueBlendModeFilter")) return rv } -// Applies a square-shaped blur to an area of an image. [Full Topic] +// Returns a hue blend mode 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/3228341-hueblendmodefilter?language=objc +func Filter_HueBlendModeFilter() Filter { + return FilterClass.HueBlendModeFilter() } // [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/3600139-bumpdistortionlinearfilter?language=objc +func (fc _FilterClass) BumpDistortionLinearFilter() Filter { + rv := objc.Call[Filter](fc, objc.Sel("bumpDistortionLinearFilter")) return rv } // [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/3600139-bumpdistortionlinearfilter?language=objc +func Filter_BumpDistortionLinearFilter() Filter { + return FilterClass.BumpDistortionLinearFilter() } -// Returns a Lanczos scale transform filter. [Full Topic] +// Returns a vibrance filter. [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/3228429-vibrancefilter?language=objc +func (fc _FilterClass) VibranceFilter() Filter { + rv := objc.Call[Filter](fc, objc.Sel("vibranceFilter")) return rv } -// Returns a Lanczos scale transform filter. [Full Topic] +// Returns a vibrance filter. [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/3228429-vibrancefilter?language=objc +func Filter_VibranceFilter() Filter { + return FilterClass.VibranceFilter() } -// [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/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/1437595-filternamesincategories?language=objc +func (fc _FilterClass) FilterNamesInCategories(categories []string) []string { + rv := objc.Call[[]string](fc, objc.Sel("filterNamesInCategories:"), categories) return rv } -// [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/3750390-personsegmentationfilter?language=objc -func Filter_PersonSegmentationFilter() Filter { - return FilterClass.PersonSegmentationFilter() +// [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] +// Returns a vignette-effect filter. [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")) +// [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/3547120-colorthresholdfilter?language=objc -func Filter_ColorThresholdFilter() Filter { - return FilterClass.ColorThresholdFilter() +// [Full Topic]: https://developer.apple.com/documentation/coreimage/cifilter/3228430-vignetteeffectfilter?language=objc +func Filter_VignetteEffectFilter() Filter { + return FilterClass.VignetteEffectFilter() } -// Returns a tone curve filter. [Full Topic] +// Returns a Code 128 barcode generator 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/3228281-code128barcodegeneratorfilter?language=objc +func (fc _FilterClass) Code128BarcodeGeneratorFilter() Filter { + rv := objc.Call[Filter](fc, objc.Sel("code128BarcodeGeneratorFilter")) return rv } -// Returns a tone curve filter. [Full Topic] +// Returns a Code 128 barcode generator 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/3228281-code128barcodegeneratorfilter?language=objc +func Filter_Code128BarcodeGeneratorFilter() Filter { + return FilterClass.Code128BarcodeGeneratorFilter() } -// Returns a linear-burn blend mode filter. [Full Topic] +// Returns a blend with mask 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/3228274-blendwithmaskfilter?language=objc +func (fc _FilterClass) BlendWithMaskFilter() Filter { + rv := objc.Call[Filter](fc, objc.Sel("blendWithMaskFilter")) return rv } -// Returns a linear-burn blend mode filter. [Full Topic] +// Returns a blend with mask 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/3228274-blendwithmaskfilter?language=objc +func Filter_BlendWithMaskFilter() Filter { + return FilterClass.BlendWithMaskFilter() } -// [Full Topic] +// Returns a dissolve transition filter. [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/3228314-dissolvetransitionfilter?language=objc +func (fc _FilterClass) DissolveTransitionFilter() Filter { + rv := objc.Call[Filter](fc, objc.Sel("dissolveTransitionFilter")) return rv } -// [Full Topic] +// Returns a dissolve transition filter. [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/3228314-dissolvetransitionfilter?language=objc +func Filter_DissolveTransitionFilter() Filter { + return FilterClass.DissolveTransitionFilter() } -// Returns a mask-to-alpha filter. [Full Topic] +// Returns a parallelogram tile 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/3228379-parallelogramtilefilter?language=objc +func (fc _FilterClass) ParallelogramTileFilter() Filter { + rv := objc.Call[Filter](fc, objc.Sel("parallelogramTileFilter")) return rv } -// Returns a mask-to-alpha filter. [Full Topic] +// Returns a parallelogram tile 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/3228379-parallelogramtilefilter?language=objc +func Filter_ParallelogramTileFilter() Filter { + return FilterClass.ParallelogramTileFilter() } -// Returns a linear-dodge blend mode filter. [Full Topic] +// Returns a photo-effect noir filter. [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/3228388-photoeffectnoirfilter?language=objc +func (fc _FilterClass) PhotoEffectNoirFilter() Filter { + rv := objc.Call[Filter](fc, objc.Sel("photoEffectNoirFilter")) return rv } -// Returns a linear-dodge blend mode filter. [Full Topic] +// Returns a photo-effect noir filter. [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/3228388-photoeffectnoirfilter?language=objc +func Filter_PhotoEffectNoirFilter() Filter { + return FilterClass.PhotoEffectNoirFilter() +} + +// Returns a fourfold translated tile 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")) + 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 page curl transition filter. [Full Topic] +// Returns a multiply blend mode 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/3228370-multiplyblendmodefilter?language=objc +func (fc _FilterClass) MultiplyBlendModeFilter() Filter { + rv := objc.Call[Filter](fc, objc.Sel("multiplyBlendModeFilter")) return rv } -// Returns a page curl transition filter. [Full Topic] +// Returns a multiply blend mode 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/3228370-multiplyblendmodefilter?language=objc +func Filter_MultiplyBlendModeFilter() Filter { + return FilterClass.MultiplyBlendModeFilter() } -// [Full Topic] +// Blurs a rectangular area by reducing contrasting pixels. [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/3228368-morphologyrectangleminimumfilter?language=objc +func (fc _FilterClass) MorphologyRectangleMinimumFilter() Filter { + rv := objc.Call[Filter](fc, objc.Sel("morphologyRectangleMinimumFilter")) return rv } -// [Full Topic] +// Blurs a rectangular area by reducing contrasting pixels. [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/3228368-morphologyrectangleminimumfilter?language=objc +func Filter_MorphologyRectangleMinimumFilter() Filter { + return FilterClass.MorphologyRectangleMinimumFilter() } -// [Full Topic] +// Returns a fourfold rotated tile filter. [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/3228328-fourfoldrotatedtilefilter?language=objc +func (fc _FilterClass) FourfoldRotatedTileFilter() Filter { + rv := objc.Call[Filter](fc, objc.Sel("fourfoldRotatedTileFilter")) return rv } -// [Full Topic] +// Returns a fourfold rotated tile filter. [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/3228328-fourfoldrotatedtilefilter?language=objc +func Filter_FourfoldRotatedTileFilter() Filter { + return FilterClass.FourfoldRotatedTileFilter() } -// Returns a dot screen filter. [Full Topic] +// Returns a color monochrome 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/3228295-colormonochromefilter?language=objc +func (fc _FilterClass) ColorMonochromeFilter() Filter { + rv := objc.Call[Filter](fc, objc.Sel("colorMonochromeFilter")) return rv } -// Returns a dot screen filter. [Full Topic] +// Returns a color monochrome 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/3228295-colormonochromefilter?language=objc +func Filter_ColorMonochromeFilter() Filter { + return FilterClass.ColorMonochromeFilter() } -// Returns a affine tile filter. [Full Topic] +// Returns a line overlay 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/3228347-lineoverlayfilter?language=objc +func (fc _FilterClass) LineOverlayFilter() Filter { + rv := objc.Call[Filter](fc, objc.Sel("lineOverlayFilter")) return rv } -// Returns a affine tile filter. [Full Topic] +// Returns a line overlay 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/3228347-lineoverlayfilter?language=objc +func Filter_LineOverlayFilter() Filter { + return FilterClass.LineOverlayFilter() } -// Returns a depth-of-field filter. [Full Topic] +// Returns a perspective rotate 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/3325512-perspectiverotatefilter?language=objc +func (fc _FilterClass) PerspectiveRotateFilter() Filter { + rv := objc.Call[Filter](fc, objc.Sel("perspectiveRotateFilter")) return rv } -// Returns a depth-of-field filter. [Full Topic] +// Returns a perspective rotate 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/3325512-perspectiverotatefilter?language=objc +func Filter_PerspectiveRotateFilter() Filter { + return FilterClass.PerspectiveRotateFilter() } -// Returns a difference blend mode filter. [Full Topic] +// Returns a shaded material 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/3228403-shadedmaterialfilter?language=objc +func (fc _FilterClass) ShadedMaterialFilter() Filter { + rv := objc.Call[Filter](fc, objc.Sel("shadedMaterialFilter")) return rv } -// Returns a difference blend mode filter. [Full Topic] +// Returns a shaded material 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/3228403-shadedmaterialfilter?language=objc +func Filter_ShadedMaterialFilter() Filter { + return FilterClass.ShadedMaterialFilter() } -// Returns a bars swipe transition filter. [Full Topic] +// [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/3750385-convolutionrgb3x3filter?language=objc +func (fc _FilterClass) ConvolutionRGB3X3Filter() Filter { + rv := objc.Call[Filter](fc, objc.Sel("convolutionRGB3X3Filter")) return rv } -// Returns a bars swipe transition filter. [Full Topic] +// [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/3750385-convolutionrgb3x3filter?language=objc +func Filter_ConvolutionRGB3X3Filter() Filter { + return FilterClass.ConvolutionRGB3X3Filter() } -// Returns a radial gradient filter. [Full Topic] +// [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/3750389-convolutionrgb9verticalfilter?language=objc +func (fc _FilterClass) ConvolutionRGB9VerticalFilter() Filter { + rv := objc.Call[Filter](fc, objc.Sel("convolutionRGB9VerticalFilter")) return rv } -// Returns a radial gradient filter. [Full Topic] +// [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/3750389-convolutionrgb9verticalfilter?language=objc +func Filter_ConvolutionRGB9VerticalFilter() Filter { + return FilterClass.ConvolutionRGB9VerticalFilter() } -// Returns an edge preserve upsample filter. [Full Topic] +// [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/3600148-ninepartstretchedfilter?language=objc +func (fc _FilterClass) NinePartStretchedFilter() Filter { + rv := objc.Call[Filter](fc, objc.Sel("ninePartStretchedFilter")) return rv } -// Returns an edge preserve upsample filter. [Full Topic] +// [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/3600148-ninepartstretchedfilter?language=objc +func Filter_NinePartStretchedFilter() Filter { + return FilterClass.NinePartStretchedFilter() } -// Returns a color cube filter. [Full Topic] +// Returns an eightfold reflected tile 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/3228322-eightfoldreflectedtilefilter?language=objc +func (fc _FilterClass) EightfoldReflectedTileFilter() Filter { + rv := objc.Call[Filter](fc, objc.Sel("eightfoldReflectedTileFilter")) return rv } -// Returns a color cube filter. [Full Topic] +// Returns an eightfold reflected tile filter. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/cifilter/3228287-colorcubefilter?language=objc -func Filter_ColorCubeFilter() Filter { - return FilterClass.ColorCubeFilter() +// [Full Topic]: https://developer.apple.com/documentation/coreimage/cifilter/3228322-eightfoldreflectedtilefilter?language=objc +func Filter_EightfoldReflectedTileFilter() Filter { + return FilterClass.EightfoldReflectedTileFilter() } -// Creates motion blur on an image. [Full Topic] +// [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/3600152-toruslensdistortionfilter?language=objc +func (fc _FilterClass) TorusLensDistortionFilter() Filter { + rv := objc.Call[Filter](fc, objc.Sel("torusLensDistortionFilter")) return rv } -// Creates motion blur on an image. [Full Topic] +// [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/3600152-toruslensdistortionfilter?language=objc +func Filter_TorusLensDistortionFilter() Filter { + return FilterClass.TorusLensDistortionFilter() } -// Returns an array of all published filter names that match all the specified categories. [Full Topic] +// Returns a color clamp 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/3228284-colorclampfilter?language=objc +func (fc _FilterClass) ColorClampFilter() Filter { + rv := objc.Call[Filter](fc, objc.Sel("colorClampFilter")) return rv } -// Returns an array of all published filter names that match all the specified categories. [Full Topic] +// Returns a color clamp 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/3228284-colorclampfilter?language=objc +func Filter_ColorClampFilter() Filter { + return FilterClass.ColorClampFilter() } // Blurs a specified portion of an image. [Full Topic] @@ -3060,529 +3115,507 @@ func Filter_MaskedVariableBlurFilter() Filter { return FilterClass.MaskedVariableBlurFilter() } -// Returns a spot color 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")) - return rv -} - -// Returns a spot color filter. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/coreimage/cifilter/3228413-spotcolorfilter?language=objc -func Filter_SpotColorFilter() Filter { - return FilterClass.SpotColorFilter() -} - -// Returns an array of all published filter names in the specified category. [Full Topic] +// Returns an accordion fold transition 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/3228263-accordionfoldtransitionfilter?language=objc +func (fc _FilterClass) AccordionFoldTransitionFilter() Filter { + rv := objc.Call[Filter](fc, objc.Sel("accordionFoldTransitionFilter")) return rv } -// Returns an array of all published filter names in the specified category. [Full Topic] +// Returns an accordion fold transition 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/3228263-accordionfoldtransitionfilter?language=objc +func Filter_AccordionFoldTransitionFilter() Filter { + return FilterClass.AccordionFoldTransitionFilter() } -// Returns a source-atop compositing filter. [Full Topic] +// Creates motion blur on an image. [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/3228369-motionblurfilter?language=objc +func (fc _FilterClass) MotionBlurFilter() Filter { + rv := objc.Call[Filter](fc, objc.Sel("motionBlurFilter")) return rv } -// Returns a source-atop compositing filter. [Full Topic] +// Creates motion blur on an image. [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/3228369-motionblurfilter?language=objc +func Filter_MotionBlurFilter() Filter { + return FilterClass.MotionBlurFilter() } // [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/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/3584770-colorthresholdotsufilter?language=objc -func Filter_ColorThresholdOtsuFilter() Filter { - return FilterClass.ColorThresholdOtsuFilter() +// [Full Topic]: https://developer.apple.com/documentation/coreimage/cifilter/3547113-areamaximumalphafilter?language=objc +func Filter_AreaMaximumAlphaFilter() Filter { + return FilterClass.AreaMaximumAlphaFilter() } -// Blurs a circular area by reducing contrasting pixels. [Full Topic] +// Returns a highlight-shadow adjust filter. [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/3228339-highlightshadowadjustfilter?language=objc +func (fc _FilterClass) HighlightShadowAdjustFilter() Filter { + rv := objc.Call[Filter](fc, objc.Sel("highlightShadowAdjustFilter")) return rv } -// Blurs a circular area by reducing contrasting pixels. [Full Topic] +// Returns a highlight-shadow adjust filter. [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/3228339-highlightshadowadjustfilter?language=objc +func Filter_HighlightShadowAdjustFilter() Filter { + return FilterClass.HighlightShadowAdjustFilter() } -// [Full Topic] +// Returns a convolution 3 x 3 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/3228299-convolution3x3filter?language=objc +func (fc _FilterClass) Convolution3X3Filter() Filter { + rv := objc.Call[Filter](fc, objc.Sel("convolution3X3Filter")) return rv } -// [Full Topic] +// Returns a convolution 3 x 3 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/3228299-convolution3x3filter?language=objc +func Filter_Convolution3X3Filter() Filter { + return FilterClass.Convolution3X3Filter() } -// Returns a dictionary that contains key-value pairs that describe the filter. [Full Topic] +// Returns a disintegrate-with-mask transition filter. [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/3228312-disintegratewithmasktransitionfi?language=objc +func (fc _FilterClass) DisintegrateWithMaskTransitionFilter() Filter { + rv := objc.Call[Filter](fc, objc.Sel("disintegrateWithMaskTransitionFilter")) return rv } -// Returns a dictionary that contains key-value pairs that describe the filter. [Full Topic] +// Returns a disintegrate-with-mask transition filter. [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/3228312-disintegratewithmasktransitionfi?language=objc +func Filter_DisintegrateWithMaskTransitionFilter() Filter { + return FilterClass.DisintegrateWithMaskTransitionFilter() } -// Returns a text image generator filter. [Full Topic] +// Detects and highlights edges of objects. [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/3228364-morphologygradientfilter?language=objc +func (fc _FilterClass) MorphologyGradientFilter() Filter { + rv := objc.Call[Filter](fc, objc.Sel("morphologyGradientFilter")) return rv } -// Returns a text image generator filter. [Full Topic] +// Detects and highlights edges of objects. [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/3228364-morphologygradientfilter?language=objc +func Filter_MorphologyGradientFilter() Filter { + return FilterClass.MorphologyGradientFilter() } -// Returns an sRGB-to-linear filter. [Full Topic] +// Produces a CIImage object by applying arguments to a kernel function and using options to control how the kernel function is evaluated. [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/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:"), objc.Ptr(k), args, dict) return rv } -// Returns an sRGB-to-linear filter. [Full Topic] -// -// [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] +// Returns a color 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/3228282-colorblendmodefilter?language=objc +func (fc _FilterClass) ColorBlendModeFilter() Filter { + rv := objc.Call[Filter](fc, objc.Sel("colorBlendModeFilter")) return rv } -// Returns a source-in compositing filter. [Full Topic] +// Returns a color 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/3228282-colorblendmodefilter?language=objc +func Filter_ColorBlendModeFilter() Filter { + return FilterClass.ColorBlendModeFilter() } -// Returns a minimum component filter. [Full Topic] +// Returns an addition compositing 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/3228264-additioncompositingfilter?language=objc +func (fc _FilterClass) AdditionCompositingFilter() Filter { + rv := objc.Call[Filter](fc, objc.Sel("additionCompositingFilter")) return rv } -// Returns a minimum component filter. [Full Topic] +// Returns an addition compositing 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/3228264-additioncompositingfilter?language=objc +func Filter_AdditionCompositingFilter() Filter { + return FilterClass.AdditionCompositingFilter() } // [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/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/3750389-convolutionrgb9verticalfilter?language=objc -func Filter_ConvolutionRGB9VerticalFilter() Filter { - return FilterClass.ConvolutionRGB9VerticalFilter() +// [Full Topic]: https://developer.apple.com/documentation/coreimage/cifilter/3547110-kmeansfilter?language=objc +func Filter_KMeansFilter() Filter { + return FilterClass.KMeansFilter() } -// Returns a perspective transform with extent filter. [Full Topic] +// Returns a perspective transform 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/3228382-perspectivetransformfilter?language=objc +func (fc _FilterClass) PerspectiveTransformFilter() Filter { + rv := objc.Call[Filter](fc, objc.Sel("perspectiveTransformFilter")) return rv } -// Returns a perspective transform with extent filter. [Full Topic] +// Returns a perspective transform 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/3228382-perspectivetransformfilter?language=objc +func Filter_PerspectiveTransformFilter() Filter { + return FilterClass.PerspectiveTransformFilter() } -// Returns a swipe transition filter. [Full Topic] +// Returns a difference blend mode filter. [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/3228310-differenceblendmodefilter?language=objc +func (fc _FilterClass) DifferenceBlendModeFilter() Filter { + rv := objc.Call[Filter](fc, objc.Sel("differenceBlendModeFilter")) return rv } -// Returns a swipe transition filter. [Full Topic] +// Returns a difference blend mode filter. [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/3228310-differenceblendmodefilter?language=objc +func Filter_DifferenceBlendModeFilter() Filter { + return FilterClass.DifferenceBlendModeFilter() } -// Returns a height-field-from-mask filter. [Full Topic] +// Returns a soft-light blend mode 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/3228408-softlightblendmodefilter?language=objc +func (fc _FilterClass) SoftLightBlendModeFilter() Filter { + rv := objc.Call[Filter](fc, objc.Sel("softLightBlendModeFilter")) return rv } -// Returns a height-field-from-mask filter. [Full Topic] +// Returns a soft-light blend mode 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/3228408-softlightblendmodefilter?language=objc +func Filter_SoftLightBlendModeFilter() Filter { + return FilterClass.SoftLightBlendModeFilter() } -// Returns a color controls filter. [Full Topic] +// [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/3584770-colorthresholdotsufilter?language=objc +func (fc _FilterClass) ColorThresholdOtsuFilter() Filter { + rv := objc.Call[Filter](fc, objc.Sel("colorThresholdOtsuFilter")) return rv } -// Returns a color controls filter. [Full Topic] +// [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/3584770-colorthresholdotsufilter?language=objc +func Filter_ColorThresholdOtsuFilter() Filter { + return FilterClass.ColorThresholdOtsuFilter() } // [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/3547122-histogramdisplayfilter?language=objc +func (fc _FilterClass) HistogramDisplayFilter() Filter { + rv := objc.Call[Filter](fc, objc.Sel("histogramDisplayFilter")) return rv } // [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/3547122-histogramdisplayfilter?language=objc +func Filter_HistogramDisplayFilter() Filter { + return FilterClass.HistogramDisplayFilter() } -// Returns a color monochrome filter. [Full Topic] +// Returns a color polynomial 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/3228296-colorpolynomialfilter?language=objc +func (fc _FilterClass) ColorPolynomialFilter() Filter { + rv := objc.Call[Filter](fc, objc.Sel("colorPolynomialFilter")) return rv } -// Returns a color monochrome filter. [Full Topic] +// Returns a color polynomial 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/3228296-colorpolynomialfilter?language=objc +func Filter_ColorPolynomialFilter() Filter { + return FilterClass.ColorPolynomialFilter() } -// [Full Topic] +// Blurs a rectangular area by enlarging contrasting pixels. [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/3228367-morphologyrectanglemaximumfilter?language=objc +func (fc _FilterClass) MorphologyRectangleMaximumFilter() Filter { + rv := objc.Call[Filter](fc, objc.Sel("morphologyRectangleMaximumFilter")) return rv } -// [Full Topic] +// Blurs a rectangular area by enlarging contrasting pixels. [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/3228367-morphologyrectanglemaximumfilter?language=objc +func Filter_MorphologyRectangleMaximumFilter() Filter { + return FilterClass.MorphologyRectangleMaximumFilter() } -// Returns a blend with alpha mask filter. [Full Topic] +// Returns a twelvefold reflected tile 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/3228427-twelvefoldreflectedtilefilter?language=objc +func (fc _FilterClass) TwelvefoldReflectedTileFilter() Filter { + rv := objc.Call[Filter](fc, objc.Sel("twelvefoldReflectedTileFilter")) return rv } -// 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 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 color curves filter. [Full Topic] +// Returns a pointillize 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/3228394-pointillizefilter?language=objc +func (fc _FilterClass) PointillizeFilter() Filter { + rv := objc.Call[Filter](fc, objc.Sel("pointillizeFilter")) return rv } -// Returns a color curves filter. [Full Topic] +// Returns a pointillize 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/3228394-pointillizefilter?language=objc +func Filter_PointillizeFilter() Filter { + return FilterClass.PointillizeFilter() } -// Returns a source-over compositing filter. [Full Topic] +// Returns a darken blend mode 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/3228307-darkenblendmodefilter?language=objc +func (fc _FilterClass) DarkenBlendModeFilter() Filter { + rv := objc.Call[Filter](fc, objc.Sel("darkenBlendModeFilter")) return rv } -// Returns a source-over compositing filter. [Full Topic] +// Returns a darken blend mode 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/3228307-darkenblendmodefilter?language=objc +func Filter_DarkenBlendModeFilter() Filter { + return FilterClass.DarkenBlendModeFilter() } -// Returns an attributed-text image generator filter. [Full Topic] +// Returns a rounded rectangle generator filter. [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/3335007-roundedrectanglegeneratorfilter?language=objc +func (fc _FilterClass) RoundedRectangleGeneratorFilter() Filter { + rv := objc.Call[Filter](fc, objc.Sel("roundedRectangleGeneratorFilter")) return rv } -// Returns an attributed-text image generator filter. [Full Topic] +// Returns a rounded rectangle generator filter. [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/3335007-roundedrectanglegeneratorfilter?language=objc +func Filter_RoundedRectangleGeneratorFilter() Filter { + return FilterClass.RoundedRectangleGeneratorFilter() } -// Returns a disintegrate-with-mask transition filter. [Full Topic] +// Returns a color invert 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/3228292-colorinvertfilter?language=objc +func (fc _FilterClass) ColorInvertFilter() Filter { + rv := objc.Call[Filter](fc, objc.Sel("colorInvertFilter")) return rv } -// Returns a disintegrate-with-mask transition filter. [Full Topic] +// Returns a color invert 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/3228292-colorinvertfilter?language=objc +func Filter_ColorInvertFilter() Filter { + return FilterClass.ColorInvertFilter() } -// Returns a palettize filter. [Full Topic] +// [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/3547123-rowaveragefilter?language=objc +func (fc _FilterClass) RowAverageFilter() Filter { + rv := objc.Call[Filter](fc, objc.Sel("rowAverageFilter")) return rv } -// Returns a palettize filter. [Full Topic] +// [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/3547123-rowaveragefilter?language=objc +func Filter_RowAverageFilter() Filter { + return FilterClass.RowAverageFilter() } -// Returns a blend with mask filter. [Full Topic] +// Returns a maximum compositing 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/3228357-maximumcompositingfilter?language=objc +func (fc _FilterClass) MaximumCompositingFilter() Filter { + rv := objc.Call[Filter](fc, objc.Sel("maximumCompositingFilter")) return rv } -// Returns a blend with mask filter. [Full Topic] +// Returns a maximum compositing 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/3228357-maximumcompositingfilter?language=objc +func Filter_MaximumCompositingFilter() Filter { + return FilterClass.MaximumCompositingFilter() } -// Returns a straighten filter. [Full Topic] +// Returns a thermal 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/3228423-thermalfilter?language=objc +func (fc _FilterClass) ThermalFilter() Filter { + rv := objc.Call[Filter](fc, objc.Sel("thermalFilter")) return rv } -// Returns a straighten filter. [Full Topic] +// Returns a thermal 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/3228423-thermalfilter?language=objc +func Filter_ThermalFilter() Filter { + return FilterClass.ThermalFilter() } -// Returns a CMYK halftone filter. [Full Topic] +// Returns a keystone correction vertical 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/3325511-keystonecorrectionverticalfilter?language=objc +func (fc _FilterClass) KeystoneCorrectionVerticalFilter() Filter { + rv := objc.Call[Filter](fc, objc.Sel("keystoneCorrectionVerticalFilter")) return rv } -// Returns a CMYK halftone filter. [Full Topic] +// Returns a keystone correction vertical 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/3325511-keystonecorrectionverticalfilter?language=objc +func Filter_KeystoneCorrectionVerticalFilter() Filter { + return FilterClass.KeystoneCorrectionVerticalFilter() } -// Returns a linear gradient filter. [Full Topic] +// Returns a barcode generator 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/3228269-barcodegeneratorfilter?language=objc +func (fc _FilterClass) BarcodeGeneratorFilter() Filter { + rv := objc.Call[Filter](fc, objc.Sel("barcodeGeneratorFilter")) return rv } -// Returns a linear gradient filter. [Full Topic] +// Returns a barcode generator 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/3228269-barcodegeneratorfilter?language=objc +func Filter_BarcodeGeneratorFilter() Filter { + return FilterClass.BarcodeGeneratorFilter() } -// Returns a QR code generator filter. [Full Topic] +// Returns a blend with red mask 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/3228275-blendwithredmaskfilter?language=objc +func (fc _FilterClass) BlendWithRedMaskFilter() Filter { + rv := objc.Call[Filter](fc, objc.Sel("blendWithRedMaskFilter")) return rv } -// Returns a QR code generator filter. [Full Topic] +// Returns a blend with red mask 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/3228275-blendwithredmaskfilter?language=objc +func Filter_BlendWithRedMaskFilter() Filter { + return FilterClass.BlendWithRedMaskFilter() } -// [Full Topic] +// Returns a sunbeams generator 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/3228419-sunbeamsgeneratorfilter?language=objc +func (fc _FilterClass) SunbeamsGeneratorFilter() Filter { + rv := objc.Call[Filter](fc, objc.Sel("sunbeamsGeneratorFilter")) return rv } -// [Full Topic] +// Returns a sunbeams generator 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/3228419-sunbeamsgeneratorfilter?language=objc +func Filter_SunbeamsGeneratorFilter() Filter { + return FilterClass.SunbeamsGeneratorFilter() } // [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/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/3750386-convolutionrgb5x5filter?language=objc -func Filter_ConvolutionRGB5X5Filter() Filter { - return FilterClass.ConvolutionRGB5X5Filter() +// [Full Topic]: https://developer.apple.com/documentation/coreimage/cifilter/3547119-colorabsolutedifferencefilter?language=objc +func Filter_ColorAbsoluteDifferenceFilter() Filter { + return FilterClass.ColorAbsoluteDifferenceFilter() } -// 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 a pixellate 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/3228393-pixellatefilter?language=objc +func (fc _FilterClass) PixellateFilter() Filter { + rv := objc.Call[Filter](fc, objc.Sel("pixellateFilter")) 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 a pixellate 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/3228393-pixellatefilter?language=objc +func Filter_PixellateFilter() Filter { + return FilterClass.PixellateFilter() } -// Returns a convolution 3 x 3 filter. [Full Topic] +// Returns a glide reflected tile filter. [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/3228333-glidereflectedtilefilter?language=objc +func (fc _FilterClass) GlideReflectedTileFilter() Filter { + rv := objc.Call[Filter](fc, objc.Sel("glideReflectedTileFilter")) return rv } -// Returns a convolution 3 x 3 filter. [Full Topic] +// Returns a glide reflected tile filter. [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/3228333-glidereflectedtilefilter?language=objc +func Filter_GlideReflectedTileFilter() Filter { + return FilterClass.GlideReflectedTileFilter() } -// 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 } -// 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 } @@ -3601,18 +3634,18 @@ func (f_ Filter) SetEnabled(value bool) { objc.Call[objc.Void](f_, objc.Sel("setEnabled:"), value) } -// 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 } -// 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 } diff --git a/macos/coreimage/filter_constructor.gen.go b/macos/coreimage/filter_constructor_protocol.gen.go similarity index 61% rename from macos/coreimage/filter_constructor.gen.go rename to macos/coreimage/filter_constructor_protocol.gen.go index 45c1da84..de210fbe 100644 --- a/macos/coreimage/filter_constructor.gen.go +++ b/macos/coreimage/filter_constructor_protocol.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package coreimage @@ -11,23 +11,26 @@ import ( // [Full Topic]: https://developer.apple.com/documentation/coreimage/cifilterconstructor?language=objc type PFilterConstructor interface { // optional - FilterWithName(name string) IFilter + FilterWithName(name string) Filter HasFilterWithName() bool } -// A concrete type wrapper for the [PFilterConstructor] protocol. -type FilterConstructorWrapper struct { +// ensure impl type implements protocol interface +var _ PFilterConstructor = (*FilterConstructorObject)(nil) + +// A concrete type for the [PFilterConstructor] protocol. +type FilterConstructorObject struct { objc.Object } -func (f_ FilterConstructorWrapper) HasFilterWithName() bool { +func (f_ FilterConstructorObject) HasFilterWithName() bool { return f_.RespondsToSelector(objc.Sel("filterWithName:")) } // Returns a filter object specified by name. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/coreimage/cifilterconstructor/1438018-filterwithname?language=objc -func (f_ FilterConstructorWrapper) FilterWithName(name string) Filter { +func (f_ FilterConstructorObject) FilterWithName(name string) Filter { rv := objc.Call[Filter](f_, objc.Sel("filterWithName:"), name) return rv } diff --git a/macos/coreimage/filter_generator.gen.go b/macos/coreimage/filter_generator.gen.go index 71cafa3f..0a8b6b20 100644 --- a/macos/coreimage/filter_generator.gen.go +++ b/macos/coreimage/filter_generator.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package coreimage @@ -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) - Filter() Filter - ExportKeyFromObjectWithName(key string, targetObject objc.IObject, exportedKeyName string) - ConnectObjectWithKeyToObjectWithKey(sourceObject objc.IObject, sourceKey string, targetObject objc.IObject, targetKey string) + WriteToURLAtomically(aURL foundation.IURL, flag bool) bool InitWithContentsOfURL(aURL foundation.IURL) objc.Object - RemoveExportedKey(exportedKeyName string) + ExportKeyFromObjectWithName(key string, targetObject objc.IObject, 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 + Filter() Filter + RemoveExportedKey(exportedKeyName string) + ConnectObjectWithKeyToObjectWithKey(sourceObject objc.IObject, sourceKey string, targetObject objc.IObject, targetKey string) ClassAttributes() foundation.Dictionary SetClassAttributes(value foundation.Dictionary) + ExportedKeys() foundation.Dictionary } // An object that creates and configures chains of individual image filters. [Full Topic] @@ -51,10 +51,6 @@ func (fc _FilterGeneratorClass) Alloc() FilterGenerator { return rv } -func FilterGenerator_Alloc() FilterGenerator { - return FilterGeneratorClass.Alloc() -} - func (fc _FilterGeneratorClass) New() FilterGenerator { rv := objc.Call[FilterGenerator](fc, objc.Sel("new")) rv.Autorelease() @@ -70,6 +66,13 @@ 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 @@ -77,11 +80,34 @@ func (f_ FilterGenerator) RegisterFilterName(name string) { objc.Call[objc.Void](f_, objc.Sel("registerFilterName:"), name) } -// Creates a filter object based on the filter chain. [Full Topic] +// Archives a filter generator object to 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/1438179-writetourl?language=objc +func (f_ FilterGenerator) WriteToURLAtomically(aURL foundation.IURL, flag bool) bool { + rv := objc.Call[bool](f_, objc.Sel("writeToURL:atomically:"), objc.Ptr(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:"), objc.Ptr(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] +// +// [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:"), objc.Ptr(aURL)) return rv } @@ -107,28 +133,6 @@ func FilterGenerator_FilterGenerator() FilterGenerator { return FilterGeneratorClass.FilterGenerator() } -// Adds an object to 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) -} - -// Initializes a filter generator object with the contents of a filter generator file. [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:"), objc.Ptr(aURL)) - return rv -} - -// Removes a key that was previously exported. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/coreimage/cifiltergenerator/1438191-removeexportedkey?language=objc -func (f_ FilterGenerator) RemoveExportedKey(exportedKeyName string) { - objc.Call[objc.Void](f_, objc.Sel("removeExportedKey:"), exportedKeyName) -} - // Removes the connection between two objects in the filter chain. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/coreimage/cifiltergenerator/1438075-disconnectobject?language=objc @@ -136,42 +140,26 @@ func (f_ FilterGenerator) DisconnectObjectWithKeyToObjectWithKey(sourceObject ob objc.Call[objc.Void](f_, objc.Sel("disconnectObject:withKey:toObject:withKey:"), sourceObject, sourceKey, targetObject, targetKey) } -// 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:"), objc.Ptr(aURL), flag) - 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) -} - -// Creates and returns a filter generator object and initializes it 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/1525950-filtergeneratorwithcontentsofurl?language=objc -func (fc _FilterGeneratorClass) FilterGeneratorWithContentsOfURL(aURL foundation.IURL) FilterGenerator { - rv := objc.Call[FilterGenerator](fc, objc.Sel("filterGeneratorWithContentsOfURL:"), objc.Ptr(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 } -// Creates and returns a filter generator object and initializes it with the contents of a filter generator file. [Full Topic] +// Removes a key that was previously exported. [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) +// [Full Topic]: https://developer.apple.com/documentation/coreimage/cifiltergenerator/1438191-removeexportedkey?language=objc +func (f_ FilterGenerator) RemoveExportedKey(exportedKeyName string) { + objc.Call[objc.Void](f_, objc.Sel("removeExportedKey:"), exportedKeyName) } -// Returns an array of the exported keys. [Full Topic] +// Adds an object to the filter chain. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/cifiltergenerator/1437955-exportedkeys?language=objc -func (f_ FilterGenerator) ExportedKeys() foundation.Dictionary { - rv := objc.Call[foundation.Dictionary](f_, objc.Sel("exportedKeys")) - return rv +// [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) } // The class attributes associated with the filter. [Full Topic] @@ -188,3 +176,11 @@ func (f_ FilterGenerator) ClassAttributes() foundation.Dictionary { func (f_ FilterGenerator) SetClassAttributes(value foundation.Dictionary) { objc.Call[objc.Void](f_, objc.Sel("setClassAttributes:"), value) } + +// Returns an array of the exported keys. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/coreimage/cifiltergenerator/1437955-exportedkeys?language=objc +func (f_ FilterGenerator) ExportedKeys() foundation.Dictionary { + rv := objc.Call[foundation.Dictionary](f_, objc.Sel("exportedKeys")) + return rv +} diff --git a/macos/coreimage/filter_protocol.gen.go b/macos/coreimage/filter_protocol.gen.go new file mode 100644 index 00000000..226841b2 --- /dev/null +++ b/macos/coreimage/filter_protocol.gen.go @@ -0,0 +1,177 @@ +// Code generated by DarwinKit. DO NOT EDIT. + +package coreimage + +import ( + "github.com/progrium/macdriver/objc" +) + +// The properties you use to configure a Core Image filter. [Full Topic] +// +// [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 + + // optional + OutputImage() Image + HasOutputImage() bool + + // optional + Attributes() map[string]objc.Object + HasAttributes() bool + + // optional + SetEnabled(value bool) + HasSetEnabled() bool + + // optional + IsEnabled() bool + HasIsEnabled() bool + + // optional + InputKeys() []string + HasInputKeys() bool + + // optional + OutputKeys() []string + HasOutputKeys() bool +} + +// ensure impl type implements protocol interface +var _ PFilter = (*FilterObject)(nil) + +// A concrete type for the [PFilter] protocol. +type FilterObject struct { + objc.Object +} + +func (f_ FilterObject) HasApply() bool { + return f_.RespondsToSelector(objc.Sel("apply:")) +} + +// Produces a CIImage object by applying a kernel function. [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{objc.Ptr(k)}, args...)...) + return rv +} + +func (f_ FilterObject) HasSetName() bool { + return f_.RespondsToSelector(objc.Sel("setName:")) +} + +// 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) HasApplyArgumentsOptions() bool { + return f_.RespondsToSelector(objc.Sel("apply:arguments:options:")) +} + +// Produces a CIImage object by applying arguments to a kernel function and using options to control how the kernel function is evaluated. [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:"), objc.Ptr(k), args, dict) + return rv +} + +func (f_ FilterObject) HasOutputImage() bool { + return f_.RespondsToSelector(objc.Sel("outputImage")) +} + +// A CIImage object that encapsulates the operations configured in 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")) + return rv +} + +func (f_ FilterObject) HasAttributes() bool { + return f_.RespondsToSelector(objc.Sel("attributes")) +} + +// A dictionary of key-value pairs that describe 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")) + return rv +} + +func (f_ FilterObject) HasSetEnabled() bool { + return f_.RespondsToSelector(objc.Sel("setEnabled:")) +} + +// A Boolean value that determines whether the filter is enabled. Animatable. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/coreimage/cifilter/1438276-enabled?language=objc +func (f_ FilterObject) SetEnabled(value bool) { + objc.Call[objc.Void](f_, objc.Sel("setEnabled:"), value) +} + +func (f_ FilterObject) HasIsEnabled() bool { + return f_.RespondsToSelector(objc.Sel("isEnabled")) +} + +// A Boolean value that determines whether the filter is enabled. Animatable. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/coreimage/cifilter/1438276-enabled?language=objc +func (f_ FilterObject) IsEnabled() bool { + rv := objc.Call[bool](f_, objc.Sel("isEnabled")) + return rv +} + +func (f_ FilterObject) HasInputKeys() bool { + return f_.RespondsToSelector(objc.Sel("inputKeys")) +} + +// The names of all input parameters to 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")) + return rv +} + +func (f_ FilterObject) HasOutputKeys() bool { + return f_.RespondsToSelector(objc.Sel("outputKeys")) +} + +// The names of all output parameters from 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")) + return rv +} diff --git a/macos/coreimage/filter_shape.gen.go b/macos/coreimage/filter_shape.gen.go index 5563c4b3..a36996d1 100644 --- a/macos/coreimage/filter_shape.gen.go +++ b/macos/coreimage/filter_shape.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package coreimage @@ -19,12 +19,12 @@ type _FilterShapeClass struct { // An interface definition for the [FilterShape] class. type IFilterShape interface { objc.IObject - IntersectWith(s2 IFilterShape) FilterShape - UnionWithRect(r coregraphics.Rect) FilterShape + TransformByInterior(m coregraphics.AffineTransform, flag bool) FilterShape UnionWith(s2 IFilterShape) FilterShape InsetByXY(dx int, dy int) FilterShape IntersectWithRect(r coregraphics.Rect) FilterShape - TransformByInterior(m coregraphics.AffineTransform, flag bool) FilterShape + IntersectWith(s2 IFilterShape) FilterShape + UnionWithRect(r coregraphics.Rect) FilterShape Extent() coregraphics.Rect } @@ -41,6 +41,18 @@ 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 @@ -55,27 +67,11 @@ 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 } -func FilterShape_Alloc() FilterShape { - return FilterShapeClass.Alloc() -} - func (fc _FilterShapeClass) New() FilterShape { rv := objc.Call[FilterShape](fc, objc.Sel("new")) rv.Autorelease() @@ -91,19 +87,11 @@ func (f_ FilterShape) Init() 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:"), objc.Ptr(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 } @@ -131,11 +119,19 @@ func (f_ FilterShape) IntersectWithRect(r coregraphics.Rect) 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:"), objc.Ptr(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 } diff --git a/macos/coreimage/flash_transition.gen.go b/macos/coreimage/flash_transition_protocol.gen.go similarity index 75% rename from macos/coreimage/flash_transition.gen.go rename to macos/coreimage/flash_transition_protocol.gen.go index bd794470..e311f005 100644 --- a/macos/coreimage/flash_transition.gen.go +++ b/macos/coreimage/flash_transition_protocol.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package coreimage @@ -12,20 +12,12 @@ import ( // [Full Topic]: https://developer.apple.com/documentation/coreimage/ciflashtransition?language=objc type PFlashTransition interface { // optional - SetStriationContrast(value float64) - HasSetStriationContrast() bool - - // optional - StriationContrast() float64 - HasStriationContrast() bool - - // optional - SetColor(value Color) - HasSetColor() bool + SetStriationStrength(value float64) + HasSetStriationStrength() bool // optional - Color() IColor - HasColor() bool + StriationStrength() float64 + HasStriationStrength() bool // optional SetMaxStriationRadius(value float64) @@ -36,12 +28,12 @@ type PFlashTransition interface { HasMaxStriationRadius() bool // optional - SetStriationStrength(value float64) - HasSetStriationStrength() bool + SetCenter(value coregraphics.Point) + HasSetCenter() bool // optional - StriationStrength() float64 - HasStriationStrength() bool + Center() coregraphics.Point + HasCenter() bool // optional SetFadeThreshold(value float64) @@ -60,176 +52,187 @@ type PFlashTransition interface { HasExtent() bool // optional - SetCenter(value coregraphics.Point) - HasSetCenter() bool + SetStriationContrast(value float64) + HasSetStriationContrast() bool // optional - Center() coregraphics.Point - HasCenter() bool -} - -// A concrete type wrapper for the [PFlashTransition] protocol. -type FlashTransitionWrapper struct { - objc.Object -} + StriationContrast() float64 + HasStriationContrast() bool -func (f_ FlashTransitionWrapper) HasSetStriationContrast() bool { - return f_.RespondsToSelector(objc.Sel("setStriationContrast:")) -} + // optional + SetColor(value Color) + HasSetColor() bool -// 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_ FlashTransitionWrapper) SetStriationContrast(value float64) { - objc.Call[objc.Void](f_, objc.Sel("setStriationContrast:"), value) + // optional + Color() Color + HasColor() bool } -func (f_ FlashTransitionWrapper) HasStriationContrast() bool { - return f_.RespondsToSelector(objc.Sel("striationContrast")) -} +// ensure impl type implements protocol interface +var _ PFlashTransition = (*FlashTransitionObject)(nil) -// 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_ FlashTransitionWrapper) StriationContrast() float64 { - rv := objc.Call[float64](f_, objc.Sel("striationContrast")) - return rv +// A concrete type for the [PFlashTransition] protocol. +type FlashTransitionObject struct { + objc.Object } -func (f_ FlashTransitionWrapper) HasSetColor() bool { - return f_.RespondsToSelector(objc.Sel("setColor:")) +func (f_ FlashTransitionObject) HasSetStriationStrength() bool { + return f_.RespondsToSelector(objc.Sel("setStriationStrength:")) } -// The color of the light rays emanating from the flash. [Full Topic] +// The strength 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_ FlashTransitionWrapper) SetColor(value IColor) { - objc.Call[objc.Void](f_, objc.Sel("setColor:"), objc.Ptr(value)) +// [Full Topic]: https://developer.apple.com/documentation/coreimage/ciflashtransition/3228442-striationstrength?language=objc +func (f_ FlashTransitionObject) SetStriationStrength(value float64) { + objc.Call[objc.Void](f_, objc.Sel("setStriationStrength:"), value) } -func (f_ FlashTransitionWrapper) HasColor() bool { - return f_.RespondsToSelector(objc.Sel("color")) +func (f_ FlashTransitionObject) HasStriationStrength() bool { + return f_.RespondsToSelector(objc.Sel("striationStrength")) } -// The color of the light rays emanating from the flash. [Full Topic] +// The strength 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_ FlashTransitionWrapper) Color() Color { - rv := objc.Call[Color](f_, objc.Sel("color")) +// [Full Topic]: https://developer.apple.com/documentation/coreimage/ciflashtransition/3228442-striationstrength?language=objc +func (f_ FlashTransitionObject) StriationStrength() float64 { + rv := objc.Call[float64](f_, objc.Sel("striationStrength")) return rv } -func (f_ FlashTransitionWrapper) HasSetMaxStriationRadius() bool { +func (f_ FlashTransitionObject) HasSetMaxStriationRadius() bool { return f_.RespondsToSelector(objc.Sel("setMaxStriationRadius:")) } // The radius of the light rays emanating from the flash. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/coreimage/ciflashtransition/3228440-maxstriationradius?language=objc -func (f_ FlashTransitionWrapper) SetMaxStriationRadius(value float64) { +func (f_ FlashTransitionObject) SetMaxStriationRadius(value float64) { objc.Call[objc.Void](f_, objc.Sel("setMaxStriationRadius:"), value) } -func (f_ FlashTransitionWrapper) HasMaxStriationRadius() bool { +func (f_ FlashTransitionObject) HasMaxStriationRadius() bool { return f_.RespondsToSelector(objc.Sel("maxStriationRadius")) } // The radius of the light rays emanating from the flash. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/coreimage/ciflashtransition/3228440-maxstriationradius?language=objc -func (f_ FlashTransitionWrapper) MaxStriationRadius() float64 { +func (f_ FlashTransitionObject) MaxStriationRadius() float64 { rv := objc.Call[float64](f_, objc.Sel("maxStriationRadius")) return rv } -func (f_ FlashTransitionWrapper) HasSetStriationStrength() bool { - return f_.RespondsToSelector(objc.Sel("setStriationStrength:")) +func (f_ FlashTransitionObject) HasSetCenter() bool { + return f_.RespondsToSelector(objc.Sel("setCenter:")) } -// The strength 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/3228442-striationstrength?language=objc -func (f_ FlashTransitionWrapper) SetStriationStrength(value float64) { - objc.Call[objc.Void](f_, objc.Sel("setStriationStrength:"), 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_ FlashTransitionWrapper) HasStriationStrength() bool { - return f_.RespondsToSelector(objc.Sel("striationStrength")) +func (f_ FlashTransitionObject) HasCenter() bool { + return f_.RespondsToSelector(objc.Sel("center")) } -// The strength 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/3228442-striationstrength?language=objc -func (f_ FlashTransitionWrapper) StriationStrength() float64 { - rv := objc.Call[float64](f_, objc.Sel("striationStrength")) +// [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 } -func (f_ FlashTransitionWrapper) HasSetFadeThreshold() bool { +func (f_ FlashTransitionObject) HasSetFadeThreshold() bool { return f_.RespondsToSelector(objc.Sel("setFadeThreshold:")) } // The amount of fade between the flash and the target image. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/coreimage/ciflashtransition/3228439-fadethreshold?language=objc -func (f_ FlashTransitionWrapper) SetFadeThreshold(value float64) { +func (f_ FlashTransitionObject) SetFadeThreshold(value float64) { objc.Call[objc.Void](f_, objc.Sel("setFadeThreshold:"), value) } -func (f_ FlashTransitionWrapper) HasFadeThreshold() bool { +func (f_ FlashTransitionObject) HasFadeThreshold() bool { return f_.RespondsToSelector(objc.Sel("fadeThreshold")) } // The amount of fade between the flash and the target image. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/coreimage/ciflashtransition/3228439-fadethreshold?language=objc -func (f_ FlashTransitionWrapper) FadeThreshold() float64 { +func (f_ FlashTransitionObject) FadeThreshold() float64 { rv := objc.Call[float64](f_, objc.Sel("fadeThreshold")) return rv } -func (f_ FlashTransitionWrapper) HasSetExtent() bool { +func (f_ FlashTransitionObject) HasSetExtent() bool { return f_.RespondsToSelector(objc.Sel("setExtent:")) } // The extent of the flash. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/coreimage/ciflashtransition/3228438-extent?language=objc -func (f_ FlashTransitionWrapper) SetExtent(value coregraphics.Rect) { +func (f_ FlashTransitionObject) SetExtent(value coregraphics.Rect) { objc.Call[objc.Void](f_, objc.Sel("setExtent:"), value) } -func (f_ FlashTransitionWrapper) HasExtent() bool { +func (f_ FlashTransitionObject) HasExtent() bool { return f_.RespondsToSelector(objc.Sel("extent")) } // The extent of the flash. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/coreimage/ciflashtransition/3228438-extent?language=objc -func (f_ FlashTransitionWrapper) Extent() coregraphics.Rect { +func (f_ FlashTransitionObject) Extent() coregraphics.Rect { rv := objc.Call[coregraphics.Rect](f_, objc.Sel("extent")) return rv } -func (f_ FlashTransitionWrapper) HasSetCenter() bool { - return f_.RespondsToSelector(objc.Sel("setCenter:")) +func (f_ FlashTransitionObject) HasSetStriationContrast() bool { + return f_.RespondsToSelector(objc.Sel("setStriationContrast:")) } -// The x and y position to use as the center of the effect. [Full Topic] +// The contrast 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_ FlashTransitionWrapper) SetCenter(value coregraphics.Point) { - objc.Call[objc.Void](f_, objc.Sel("setCenter:"), value) +// [Full Topic]: https://developer.apple.com/documentation/coreimage/ciflashtransition/3228441-striationcontrast?language=objc +func (f_ FlashTransitionObject) SetStriationContrast(value float64) { + objc.Call[objc.Void](f_, objc.Sel("setStriationContrast:"), value) } -func (f_ FlashTransitionWrapper) HasCenter() bool { - return f_.RespondsToSelector(objc.Sel("center")) +func (f_ FlashTransitionObject) HasStriationContrast() bool { + return f_.RespondsToSelector(objc.Sel("striationContrast")) } -// The x and y position to use as the center of the effect. [Full Topic] +// The contrast 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_ FlashTransitionWrapper) Center() coregraphics.Point { - rv := objc.Call[coregraphics.Point](f_, objc.Sel("center")) +// [Full Topic]: https://developer.apple.com/documentation/coreimage/ciflashtransition/3228441-striationcontrast?language=objc +func (f_ FlashTransitionObject) StriationContrast() float64 { + rv := objc.Call[float64](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:"), objc.Ptr(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 } diff --git a/macos/coreimage/four_coordinate_geometry_filter.gen.go b/macos/coreimage/four_coordinate_geometry_filter_protocol.gen.go similarity index 70% rename from macos/coreimage/four_coordinate_geometry_filter.gen.go rename to macos/coreimage/four_coordinate_geometry_filter_protocol.gen.go index d93afc86..2780cbba 100644 --- a/macos/coreimage/four_coordinate_geometry_filter.gen.go +++ b/macos/coreimage/four_coordinate_geometry_filter_protocol.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package coreimage @@ -12,36 +12,36 @@ import ( // [Full Topic]: https://developer.apple.com/documentation/coreimage/cifourcoordinategeometryfilter?language=objc type PFourCoordinateGeometryFilter interface { // optional - SetBottomRight(value coregraphics.Point) - HasSetBottomRight() bool + SetTopRight(value coregraphics.Point) + HasSetTopRight() bool // optional - BottomRight() coregraphics.Point - HasBottomRight() bool + TopRight() coregraphics.Point + HasTopRight() bool // optional SetInputImage(value Image) HasSetInputImage() bool // optional - InputImage() IImage + InputImage() Image HasInputImage() bool // optional - SetBottomLeft(value coregraphics.Point) - HasSetBottomLeft() bool + SetBottomRight(value coregraphics.Point) + HasSetBottomRight() bool // optional - BottomLeft() coregraphics.Point - HasBottomLeft() bool + BottomRight() coregraphics.Point + HasBottomRight() bool // optional - SetTopRight(value coregraphics.Point) - HasSetTopRight() bool + SetBottomLeft(value coregraphics.Point) + HasSetBottomLeft() bool // optional - TopRight() coregraphics.Point - HasTopRight() bool + BottomLeft() coregraphics.Point + HasBottomLeft() bool // optional SetTopLeft(value coregraphics.Point) @@ -52,122 +52,125 @@ type PFourCoordinateGeometryFilter interface { HasTopLeft() bool } -// A concrete type wrapper for the [PFourCoordinateGeometryFilter] protocol. -type FourCoordinateGeometryFilterWrapper struct { +// ensure impl type implements protocol interface +var _ PFourCoordinateGeometryFilter = (*FourCoordinateGeometryFilterObject)(nil) + +// A concrete type for the [PFourCoordinateGeometryFilter] protocol. +type FourCoordinateGeometryFilterObject struct { objc.Object } -func (f_ FourCoordinateGeometryFilterWrapper) HasSetBottomRight() bool { - return f_.RespondsToSelector(objc.Sel("setBottomRight:")) +func (f_ FourCoordinateGeometryFilterObject) HasSetTopRight() bool { + return f_.RespondsToSelector(objc.Sel("setTopRight:")) } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/cifourcoordinategeometryfilter/3338732-bottomright?language=objc -func (f_ FourCoordinateGeometryFilterWrapper) SetBottomRight(value coregraphics.Point) { - objc.Call[objc.Void](f_, objc.Sel("setBottomRight:"), 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_ FourCoordinateGeometryFilterWrapper) HasBottomRight() bool { - return f_.RespondsToSelector(objc.Sel("bottomRight")) +func (f_ FourCoordinateGeometryFilterObject) HasTopRight() bool { + return f_.RespondsToSelector(objc.Sel("topRight")) } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/cifourcoordinategeometryfilter/3338732-bottomright?language=objc -func (f_ FourCoordinateGeometryFilterWrapper) BottomRight() coregraphics.Point { - rv := objc.Call[coregraphics.Point](f_, objc.Sel("bottomRight")) +// [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 } -func (f_ FourCoordinateGeometryFilterWrapper) HasSetInputImage() bool { +func (f_ FourCoordinateGeometryFilterObject) HasSetInputImage() bool { return f_.RespondsToSelector(objc.Sel("setInputImage:")) } // [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/coreimage/cifourcoordinategeometryfilter/3338733-inputimage?language=objc -func (f_ FourCoordinateGeometryFilterWrapper) SetInputImage(value IImage) { +func (f_ FourCoordinateGeometryFilterObject) SetInputImage(value Image) { objc.Call[objc.Void](f_, objc.Sel("setInputImage:"), objc.Ptr(value)) } -func (f_ FourCoordinateGeometryFilterWrapper) HasInputImage() bool { +func (f_ FourCoordinateGeometryFilterObject) HasInputImage() bool { return f_.RespondsToSelector(objc.Sel("inputImage")) } // [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/coreimage/cifourcoordinategeometryfilter/3338733-inputimage?language=objc -func (f_ FourCoordinateGeometryFilterWrapper) InputImage() Image { +func (f_ FourCoordinateGeometryFilterObject) InputImage() Image { rv := objc.Call[Image](f_, objc.Sel("inputImage")) return rv } -func (f_ FourCoordinateGeometryFilterWrapper) HasSetBottomLeft() bool { - return f_.RespondsToSelector(objc.Sel("setBottomLeft:")) +func (f_ FourCoordinateGeometryFilterObject) HasSetBottomRight() bool { + return f_.RespondsToSelector(objc.Sel("setBottomRight:")) } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/cifourcoordinategeometryfilter/3338731-bottomleft?language=objc -func (f_ FourCoordinateGeometryFilterWrapper) SetBottomLeft(value coregraphics.Point) { - objc.Call[objc.Void](f_, objc.Sel("setBottomLeft:"), 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_ FourCoordinateGeometryFilterWrapper) HasBottomLeft() bool { - return f_.RespondsToSelector(objc.Sel("bottomLeft")) +func (f_ FourCoordinateGeometryFilterObject) HasBottomRight() bool { + return f_.RespondsToSelector(objc.Sel("bottomRight")) } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/cifourcoordinategeometryfilter/3338731-bottomleft?language=objc -func (f_ FourCoordinateGeometryFilterWrapper) BottomLeft() coregraphics.Point { - rv := objc.Call[coregraphics.Point](f_, objc.Sel("bottomLeft")) +// [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 } -func (f_ FourCoordinateGeometryFilterWrapper) HasSetTopRight() bool { - return f_.RespondsToSelector(objc.Sel("setTopRight:")) +func (f_ FourCoordinateGeometryFilterObject) HasSetBottomLeft() bool { + return f_.RespondsToSelector(objc.Sel("setBottomLeft:")) } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/cifourcoordinategeometryfilter/3338735-topright?language=objc -func (f_ FourCoordinateGeometryFilterWrapper) SetTopRight(value coregraphics.Point) { - objc.Call[objc.Void](f_, objc.Sel("setTopRight:"), 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_ FourCoordinateGeometryFilterWrapper) HasTopRight() bool { - return f_.RespondsToSelector(objc.Sel("topRight")) +func (f_ FourCoordinateGeometryFilterObject) HasBottomLeft() bool { + return f_.RespondsToSelector(objc.Sel("bottomLeft")) } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/cifourcoordinategeometryfilter/3338735-topright?language=objc -func (f_ FourCoordinateGeometryFilterWrapper) TopRight() coregraphics.Point { - rv := objc.Call[coregraphics.Point](f_, objc.Sel("topRight")) +// [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_ FourCoordinateGeometryFilterWrapper) HasSetTopLeft() bool { +func (f_ FourCoordinateGeometryFilterObject) HasSetTopLeft() bool { return f_.RespondsToSelector(objc.Sel("setTopLeft:")) } // [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/coreimage/cifourcoordinategeometryfilter/3338734-topleft?language=objc -func (f_ FourCoordinateGeometryFilterWrapper) SetTopLeft(value coregraphics.Point) { +func (f_ FourCoordinateGeometryFilterObject) SetTopLeft(value coregraphics.Point) { objc.Call[objc.Void](f_, objc.Sel("setTopLeft:"), value) } -func (f_ FourCoordinateGeometryFilterWrapper) HasTopLeft() bool { +func (f_ FourCoordinateGeometryFilterObject) HasTopLeft() bool { return f_.RespondsToSelector(objc.Sel("topLeft")) } // [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/coreimage/cifourcoordinategeometryfilter/3338734-topleft?language=objc -func (f_ FourCoordinateGeometryFilterWrapper) TopLeft() coregraphics.Point { +func (f_ FourCoordinateGeometryFilterObject) TopLeft() coregraphics.Point { rv := objc.Call[coregraphics.Point](f_, objc.Sel("topLeft")) return rv } diff --git a/macos/coreimage/fourfold_reflected_tile.gen.go b/macos/coreimage/fourfold_reflected_tile_protocol.gen.go similarity index 72% rename from macos/coreimage/fourfold_reflected_tile.gen.go rename to macos/coreimage/fourfold_reflected_tile_protocol.gen.go index 4974ae0d..0bbc1c92 100644 --- a/macos/coreimage/fourfold_reflected_tile.gen.go +++ b/macos/coreimage/fourfold_reflected_tile_protocol.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package coreimage @@ -11,6 +11,14 @@ import ( // // [Full Topic]: https://developer.apple.com/documentation/coreimage/cifourfoldreflectedtile?language=objc type PFourfoldReflectedTile interface { + // optional + SetAcuteAngle(value float64) + HasSetAcuteAngle() bool + + // optional + AcuteAngle() float64 + HasAcuteAngle() bool + // optional SetWidth(value float64) HasSetWidth() bool @@ -24,9 +32,17 @@ type PFourfoldReflectedTile interface { HasSetInputImage() bool // optional - InputImage() IImage + InputImage() Image HasInputImage() bool + // optional + SetCenter(value coregraphics.Point) + HasSetCenter() bool + + // optional + Center() coregraphics.Point + HasCenter() bool + // optional SetAngle(value float64) HasSetAngle() bool @@ -34,140 +50,127 @@ type PFourfoldReflectedTile interface { // optional Angle() float64 HasAngle() bool +} - // optional - SetAcuteAngle(value float64) - HasSetAcuteAngle() bool +// ensure impl type implements protocol interface +var _ PFourfoldReflectedTile = (*FourfoldReflectedTileObject)(nil) - // optional - AcuteAngle() float64 - HasAcuteAngle() bool +// A concrete type for the [PFourfoldReflectedTile] protocol. +type FourfoldReflectedTileObject struct { + objc.Object +} - // optional - SetCenter(value coregraphics.Point) - HasSetCenter() bool +func (f_ FourfoldReflectedTileObject) HasSetAcuteAngle() bool { + return f_.RespondsToSelector(objc.Sel("setAcuteAngle:")) +} - // optional - Center() coregraphics.Point - HasCenter() bool +// 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 float64) { + objc.Call[objc.Void](f_, objc.Sel("setAcuteAngle:"), value) } -// A concrete type wrapper for the [PFourfoldReflectedTile] protocol. -type FourfoldReflectedTileWrapper struct { - objc.Object +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() float64 { + rv := objc.Call[float64](f_, objc.Sel("acuteAngle")) + return rv } -func (f_ FourfoldReflectedTileWrapper) HasSetWidth() bool { +func (f_ FourfoldReflectedTileObject) HasSetWidth() bool { return f_.RespondsToSelector(objc.Sel("setWidth:")) } // The width of a tile. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/coreimage/cifourfoldreflectedtile/3228448-width?language=objc -func (f_ FourfoldReflectedTileWrapper) SetWidth(value float64) { +func (f_ FourfoldReflectedTileObject) SetWidth(value float64) { objc.Call[objc.Void](f_, objc.Sel("setWidth:"), value) } -func (f_ FourfoldReflectedTileWrapper) HasWidth() bool { +func (f_ FourfoldReflectedTileObject) HasWidth() bool { return f_.RespondsToSelector(objc.Sel("width")) } // The width of a tile. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/coreimage/cifourfoldreflectedtile/3228448-width?language=objc -func (f_ FourfoldReflectedTileWrapper) Width() float64 { +func (f_ FourfoldReflectedTileObject) Width() float64 { rv := objc.Call[float64](f_, objc.Sel("width")) return rv } -func (f_ FourfoldReflectedTileWrapper) HasSetInputImage() bool { +func (f_ FourfoldReflectedTileObject) HasSetInputImage() bool { return f_.RespondsToSelector(objc.Sel("setInputImage:")) } // The image to use as an input image. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/coreimage/cifourfoldreflectedtile/3228447-inputimage?language=objc -func (f_ FourfoldReflectedTileWrapper) SetInputImage(value IImage) { +func (f_ FourfoldReflectedTileObject) SetInputImage(value Image) { objc.Call[objc.Void](f_, objc.Sel("setInputImage:"), objc.Ptr(value)) } -func (f_ FourfoldReflectedTileWrapper) HasInputImage() bool { +func (f_ FourfoldReflectedTileObject) HasInputImage() bool { return f_.RespondsToSelector(objc.Sel("inputImage")) } // The image to use as an input image. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/coreimage/cifourfoldreflectedtile/3228447-inputimage?language=objc -func (f_ FourfoldReflectedTileWrapper) InputImage() Image { +func (f_ FourfoldReflectedTileObject) InputImage() Image { rv := objc.Call[Image](f_, objc.Sel("inputImage")) return rv } -func (f_ FourfoldReflectedTileWrapper) 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/cifourfoldreflectedtile/3228445-angle?language=objc -func (f_ FourfoldReflectedTileWrapper) SetAngle(value float64) { - objc.Call[objc.Void](f_, objc.Sel("setAngle:"), value) -} - -func (f_ FourfoldReflectedTileWrapper) 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/cifourfoldreflectedtile/3228445-angle?language=objc -func (f_ FourfoldReflectedTileWrapper) Angle() float64 { - rv := objc.Call[float64](f_, objc.Sel("angle")) - return rv -} - -func (f_ FourfoldReflectedTileWrapper) HasSetAcuteAngle() bool { - return f_.RespondsToSelector(objc.Sel("setAcuteAngle:")) +func (f_ FourfoldReflectedTileObject) HasSetCenter() bool { + return f_.RespondsToSelector(objc.Sel("setCenter:")) } -// The primary angle for the repeating reflected 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/cifourfoldreflectedtile/3228444-acuteangle?language=objc -func (f_ FourfoldReflectedTileWrapper) SetAcuteAngle(value float64) { - objc.Call[objc.Void](f_, objc.Sel("setAcuteAngle:"), value) +// [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_ FourfoldReflectedTileWrapper) HasAcuteAngle() bool { - return f_.RespondsToSelector(objc.Sel("acuteAngle")) +func (f_ FourfoldReflectedTileObject) HasCenter() bool { + return f_.RespondsToSelector(objc.Sel("center")) } -// The primary angle for the repeating reflected 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/cifourfoldreflectedtile/3228444-acuteangle?language=objc -func (f_ FourfoldReflectedTileWrapper) AcuteAngle() float64 { - rv := objc.Call[float64](f_, objc.Sel("acuteAngle")) +// [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_ FourfoldReflectedTileWrapper) HasSetCenter() bool { - return f_.RespondsToSelector(objc.Sel("setCenter:")) +func (f_ FourfoldReflectedTileObject) HasSetAngle() bool { + return f_.RespondsToSelector(objc.Sel("setAngle:")) } -// The x and y position to use as the center of the effect. [Full Topic] +// The angle, in radians, of the tiled pattern. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/cifourfoldreflectedtile/3228446-center?language=objc -func (f_ FourfoldReflectedTileWrapper) SetCenter(value coregraphics.Point) { - objc.Call[objc.Void](f_, objc.Sel("setCenter:"), value) +// [Full Topic]: https://developer.apple.com/documentation/coreimage/cifourfoldreflectedtile/3228445-angle?language=objc +func (f_ FourfoldReflectedTileObject) SetAngle(value float64) { + objc.Call[objc.Void](f_, objc.Sel("setAngle:"), value) } -func (f_ FourfoldReflectedTileWrapper) HasCenter() bool { - return f_.RespondsToSelector(objc.Sel("center")) +func (f_ FourfoldReflectedTileObject) HasAngle() bool { + return f_.RespondsToSelector(objc.Sel("angle")) } -// The x and y position to use as the center of the effect. [Full Topic] +// The angle, in radians, of the tiled pattern. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/cifourfoldreflectedtile/3228446-center?language=objc -func (f_ FourfoldReflectedTileWrapper) Center() coregraphics.Point { - rv := objc.Call[coregraphics.Point](f_, objc.Sel("center")) +// [Full Topic]: https://developer.apple.com/documentation/coreimage/cifourfoldreflectedtile/3228445-angle?language=objc +func (f_ FourfoldReflectedTileObject) Angle() float64 { + rv := objc.Call[float64](f_, objc.Sel("angle")) return rv } diff --git a/macos/coreimage/fourfold_rotated_tile.gen.go b/macos/coreimage/fourfold_rotated_tile_protocol.gen.go similarity index 72% rename from macos/coreimage/fourfold_rotated_tile.gen.go rename to macos/coreimage/fourfold_rotated_tile_protocol.gen.go index 6c7d3109..ced4b24c 100644 --- a/macos/coreimage/fourfold_rotated_tile.gen.go +++ b/macos/coreimage/fourfold_rotated_tile_protocol.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package coreimage @@ -11,22 +11,6 @@ import ( // // [Full Topic]: https://developer.apple.com/documentation/coreimage/cifourfoldrotatedtile?language=objc type PFourfoldRotatedTile interface { - // optional - SetWidth(value float64) - HasSetWidth() bool - - // optional - Width() float64 - HasWidth() bool - - // optional - SetInputImage(value Image) - HasSetInputImage() bool - - // optional - InputImage() IImage - HasInputImage() bool - // optional SetAngle(value float64) HasSetAngle() bool @@ -35,6 +19,14 @@ type PFourfoldRotatedTile interface { Angle() float64 HasAngle() bool + // optional + SetWidth(value float64) + HasSetWidth() bool + + // optional + Width() float64 + HasWidth() bool + // optional SetCenter(value coregraphics.Point) HasSetCenter() bool @@ -42,101 +34,112 @@ type PFourfoldRotatedTile interface { // optional Center() coregraphics.Point HasCenter() bool + + // optional + SetInputImage(value Image) + HasSetInputImage() bool + + // optional + InputImage() Image + HasInputImage() bool } -// A concrete type wrapper for the [PFourfoldRotatedTile] protocol. -type FourfoldRotatedTileWrapper struct { +// ensure impl type implements protocol interface +var _ PFourfoldRotatedTile = (*FourfoldRotatedTileObject)(nil) + +// A concrete type for the [PFourfoldRotatedTile] protocol. +type FourfoldRotatedTileObject struct { objc.Object } -func (f_ FourfoldRotatedTileWrapper) HasSetWidth() bool { - return f_.RespondsToSelector(objc.Sel("setWidth:")) +func (f_ FourfoldRotatedTileObject) HasSetAngle() bool { + return f_.RespondsToSelector(objc.Sel("setAngle:")) } -// The width of a tile. [Full Topic] +// The angle, in radians, of the tiled pattern. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/cifourfoldrotatedtile/3228453-width?language=objc -func (f_ FourfoldRotatedTileWrapper) SetWidth(value float64) { - objc.Call[objc.Void](f_, objc.Sel("setWidth:"), value) +// [Full Topic]: https://developer.apple.com/documentation/coreimage/cifourfoldrotatedtile/3228450-angle?language=objc +func (f_ FourfoldRotatedTileObject) SetAngle(value float64) { + objc.Call[objc.Void](f_, objc.Sel("setAngle:"), value) } -func (f_ FourfoldRotatedTileWrapper) HasWidth() bool { - return f_.RespondsToSelector(objc.Sel("width")) +func (f_ FourfoldRotatedTileObject) HasAngle() bool { + return f_.RespondsToSelector(objc.Sel("angle")) } -// The width of a tile. [Full Topic] +// The angle, in radians, of the tiled pattern. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/cifourfoldrotatedtile/3228453-width?language=objc -func (f_ FourfoldRotatedTileWrapper) Width() float64 { - rv := objc.Call[float64](f_, objc.Sel("width")) +// [Full Topic]: https://developer.apple.com/documentation/coreimage/cifourfoldrotatedtile/3228450-angle?language=objc +func (f_ FourfoldRotatedTileObject) Angle() float64 { + rv := objc.Call[float64](f_, objc.Sel("angle")) return rv } -func (f_ FourfoldRotatedTileWrapper) HasSetInputImage() bool { - return f_.RespondsToSelector(objc.Sel("setInputImage:")) +func (f_ FourfoldRotatedTileObject) HasSetWidth() bool { + return f_.RespondsToSelector(objc.Sel("setWidth:")) } -// The image to use as an input image. [Full Topic] +// The width of a tile. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/cifourfoldrotatedtile/3228452-inputimage?language=objc -func (f_ FourfoldRotatedTileWrapper) SetInputImage(value IImage) { - objc.Call[objc.Void](f_, objc.Sel("setInputImage:"), objc.Ptr(value)) +// [Full Topic]: https://developer.apple.com/documentation/coreimage/cifourfoldrotatedtile/3228453-width?language=objc +func (f_ FourfoldRotatedTileObject) SetWidth(value float64) { + objc.Call[objc.Void](f_, objc.Sel("setWidth:"), value) } -func (f_ FourfoldRotatedTileWrapper) HasInputImage() bool { - return f_.RespondsToSelector(objc.Sel("inputImage")) +func (f_ FourfoldRotatedTileObject) HasWidth() bool { + return f_.RespondsToSelector(objc.Sel("width")) } -// The image to use as an input image. [Full Topic] +// The width of a tile. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/cifourfoldrotatedtile/3228452-inputimage?language=objc -func (f_ FourfoldRotatedTileWrapper) InputImage() Image { - rv := objc.Call[Image](f_, objc.Sel("inputImage")) +// [Full Topic]: https://developer.apple.com/documentation/coreimage/cifourfoldrotatedtile/3228453-width?language=objc +func (f_ FourfoldRotatedTileObject) Width() float64 { + rv := objc.Call[float64](f_, objc.Sel("width")) return rv } -func (f_ FourfoldRotatedTileWrapper) HasSetAngle() bool { - return f_.RespondsToSelector(objc.Sel("setAngle:")) +func (f_ FourfoldRotatedTileObject) HasSetCenter() bool { + return f_.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/cifourfoldrotatedtile/3228450-angle?language=objc -func (f_ FourfoldRotatedTileWrapper) SetAngle(value float64) { - objc.Call[objc.Void](f_, objc.Sel("setAngle:"), value) +// [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_ FourfoldRotatedTileWrapper) HasAngle() bool { - return f_.RespondsToSelector(objc.Sel("angle")) +func (f_ FourfoldRotatedTileObject) HasCenter() bool { + return f_.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/cifourfoldrotatedtile/3228450-angle?language=objc -func (f_ FourfoldRotatedTileWrapper) Angle() float64 { - rv := objc.Call[float64](f_, objc.Sel("angle")) +// [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_ FourfoldRotatedTileWrapper) HasSetCenter() bool { - return f_.RespondsToSelector(objc.Sel("setCenter:")) +func (f_ FourfoldRotatedTileObject) HasSetInputImage() bool { + return f_.RespondsToSelector(objc.Sel("setInputImage:")) } -// The x and y position to use as 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/cifourfoldrotatedtile/3228451-center?language=objc -func (f_ FourfoldRotatedTileWrapper) SetCenter(value coregraphics.Point) { - objc.Call[objc.Void](f_, objc.Sel("setCenter:"), value) +// [Full Topic]: https://developer.apple.com/documentation/coreimage/cifourfoldrotatedtile/3228452-inputimage?language=objc +func (f_ FourfoldRotatedTileObject) SetInputImage(value Image) { + objc.Call[objc.Void](f_, objc.Sel("setInputImage:"), objc.Ptr(value)) } -func (f_ FourfoldRotatedTileWrapper) HasCenter() bool { - return f_.RespondsToSelector(objc.Sel("center")) +func (f_ FourfoldRotatedTileObject) HasInputImage() bool { + return f_.RespondsToSelector(objc.Sel("inputImage")) } -// The x and y position to use as 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/cifourfoldrotatedtile/3228451-center?language=objc -func (f_ FourfoldRotatedTileWrapper) Center() coregraphics.Point { - rv := objc.Call[coregraphics.Point](f_, objc.Sel("center")) +// [Full Topic]: https://developer.apple.com/documentation/coreimage/cifourfoldrotatedtile/3228452-inputimage?language=objc +func (f_ FourfoldRotatedTileObject) InputImage() Image { + rv := objc.Call[Image](f_, objc.Sel("inputImage")) return rv } diff --git a/macos/coreimage/fourfold_translated_tile.gen.go b/macos/coreimage/fourfold_translated_tile_protocol.gen.go similarity index 72% rename from macos/coreimage/fourfold_translated_tile.gen.go rename to macos/coreimage/fourfold_translated_tile_protocol.gen.go index 88459554..7b49ea8e 100644 --- a/macos/coreimage/fourfold_translated_tile.gen.go +++ b/macos/coreimage/fourfold_translated_tile_protocol.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package coreimage @@ -11,30 +11,14 @@ import ( // // [Full Topic]: https://developer.apple.com/documentation/coreimage/cifourfoldtranslatedtile?language=objc type PFourfoldTranslatedTile interface { - // optional - SetWidth(value float64) - HasSetWidth() bool - - // optional - Width() float64 - HasWidth() bool - // optional SetInputImage(value Image) HasSetInputImage() bool // optional - InputImage() IImage + InputImage() Image HasInputImage() bool - // optional - SetAngle(value float64) - HasSetAngle() bool - - // optional - Angle() float64 - HasAngle() bool - // optional SetAcuteAngle(value float64) HasSetAcuteAngle() bool @@ -43,6 +27,14 @@ type PFourfoldTranslatedTile interface { AcuteAngle() float64 HasAcuteAngle() bool + // optional + SetWidth(value float64) + HasSetWidth() bool + + // optional + Width() float64 + HasWidth() bool + // optional SetCenter(value coregraphics.Point) HasSetCenter() bool @@ -50,124 +42,135 @@ type PFourfoldTranslatedTile interface { // optional Center() coregraphics.Point HasCenter() bool -} -// A concrete type wrapper for the [PFourfoldTranslatedTile] protocol. -type FourfoldTranslatedTileWrapper struct { - objc.Object -} - -func (f_ FourfoldTranslatedTileWrapper) HasSetWidth() bool { - return f_.RespondsToSelector(objc.Sel("setWidth:")) -} + // optional + SetAngle(value float64) + HasSetAngle() bool -// The width of a tile. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/coreimage/cifourfoldtranslatedtile/3228459-width?language=objc -func (f_ FourfoldTranslatedTileWrapper) SetWidth(value float64) { - objc.Call[objc.Void](f_, objc.Sel("setWidth:"), value) + // optional + Angle() float64 + HasAngle() bool } -func (f_ FourfoldTranslatedTileWrapper) HasWidth() bool { - return f_.RespondsToSelector(objc.Sel("width")) -} +// ensure impl type implements protocol interface +var _ PFourfoldTranslatedTile = (*FourfoldTranslatedTileObject)(nil) -// The width of a tile. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/coreimage/cifourfoldtranslatedtile/3228459-width?language=objc -func (f_ FourfoldTranslatedTileWrapper) Width() float64 { - rv := objc.Call[float64](f_, objc.Sel("width")) - return rv +// A concrete type for the [PFourfoldTranslatedTile] protocol. +type FourfoldTranslatedTileObject struct { + objc.Object } -func (f_ FourfoldTranslatedTileWrapper) HasSetInputImage() bool { +func (f_ FourfoldTranslatedTileObject) HasSetInputImage() bool { return f_.RespondsToSelector(objc.Sel("setInputImage:")) } // The image to use as an input image. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/coreimage/cifourfoldtranslatedtile/3228458-inputimage?language=objc -func (f_ FourfoldTranslatedTileWrapper) SetInputImage(value IImage) { +func (f_ FourfoldTranslatedTileObject) SetInputImage(value Image) { objc.Call[objc.Void](f_, objc.Sel("setInputImage:"), objc.Ptr(value)) } -func (f_ FourfoldTranslatedTileWrapper) HasInputImage() bool { +func (f_ FourfoldTranslatedTileObject) HasInputImage() bool { return f_.RespondsToSelector(objc.Sel("inputImage")) } // The image to use as an input image. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/coreimage/cifourfoldtranslatedtile/3228458-inputimage?language=objc -func (f_ FourfoldTranslatedTileWrapper) InputImage() Image { +func (f_ FourfoldTranslatedTileObject) InputImage() Image { rv := objc.Call[Image](f_, objc.Sel("inputImage")) return rv } -func (f_ FourfoldTranslatedTileWrapper) HasSetAngle() bool { - return f_.RespondsToSelector(objc.Sel("setAngle:")) +func (f_ FourfoldTranslatedTileObject) HasSetAcuteAngle() bool { + return f_.RespondsToSelector(objc.Sel("setAcuteAngle:")) } -// The angle, in radians, of the tiled pattern. [Full Topic] +// The primary angle for the repeating translated tile. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/cifourfoldtranslatedtile/3228456-angle?language=objc -func (f_ FourfoldTranslatedTileWrapper) SetAngle(value float64) { - objc.Call[objc.Void](f_, objc.Sel("setAngle:"), value) +// [Full Topic]: https://developer.apple.com/documentation/coreimage/cifourfoldtranslatedtile/3228455-acuteangle?language=objc +func (f_ FourfoldTranslatedTileObject) SetAcuteAngle(value float64) { + objc.Call[objc.Void](f_, objc.Sel("setAcuteAngle:"), value) } -func (f_ FourfoldTranslatedTileWrapper) HasAngle() bool { - return f_.RespondsToSelector(objc.Sel("angle")) +func (f_ FourfoldTranslatedTileObject) HasAcuteAngle() bool { + return f_.RespondsToSelector(objc.Sel("acuteAngle")) } -// The angle, in radians, of the tiled pattern. [Full Topic] +// The primary angle for the repeating translated tile. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/cifourfoldtranslatedtile/3228456-angle?language=objc -func (f_ FourfoldTranslatedTileWrapper) Angle() float64 { - rv := objc.Call[float64](f_, objc.Sel("angle")) +// [Full Topic]: https://developer.apple.com/documentation/coreimage/cifourfoldtranslatedtile/3228455-acuteangle?language=objc +func (f_ FourfoldTranslatedTileObject) AcuteAngle() float64 { + rv := objc.Call[float64](f_, objc.Sel("acuteAngle")) return rv } -func (f_ FourfoldTranslatedTileWrapper) HasSetAcuteAngle() bool { - return f_.RespondsToSelector(objc.Sel("setAcuteAngle:")) +func (f_ FourfoldTranslatedTileObject) HasSetWidth() bool { + return f_.RespondsToSelector(objc.Sel("setWidth:")) } -// The primary angle for the repeating translated tile. [Full Topic] +// The width of a tile. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/cifourfoldtranslatedtile/3228455-acuteangle?language=objc -func (f_ FourfoldTranslatedTileWrapper) SetAcuteAngle(value float64) { - objc.Call[objc.Void](f_, objc.Sel("setAcuteAngle:"), value) +// [Full Topic]: https://developer.apple.com/documentation/coreimage/cifourfoldtranslatedtile/3228459-width?language=objc +func (f_ FourfoldTranslatedTileObject) SetWidth(value float64) { + objc.Call[objc.Void](f_, objc.Sel("setWidth:"), value) } -func (f_ FourfoldTranslatedTileWrapper) HasAcuteAngle() bool { - return f_.RespondsToSelector(objc.Sel("acuteAngle")) +func (f_ FourfoldTranslatedTileObject) HasWidth() bool { + return f_.RespondsToSelector(objc.Sel("width")) } -// The primary angle for the repeating translated tile. [Full Topic] +// The width of a tile. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/cifourfoldtranslatedtile/3228455-acuteangle?language=objc -func (f_ FourfoldTranslatedTileWrapper) AcuteAngle() float64 { - rv := objc.Call[float64](f_, objc.Sel("acuteAngle")) +// [Full Topic]: https://developer.apple.com/documentation/coreimage/cifourfoldtranslatedtile/3228459-width?language=objc +func (f_ FourfoldTranslatedTileObject) Width() float64 { + rv := objc.Call[float64](f_, objc.Sel("width")) return rv } -func (f_ FourfoldTranslatedTileWrapper) HasSetCenter() bool { +func (f_ FourfoldTranslatedTileObject) 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/cifourfoldtranslatedtile/3228457-center?language=objc -func (f_ FourfoldTranslatedTileWrapper) SetCenter(value coregraphics.Point) { +func (f_ FourfoldTranslatedTileObject) SetCenter(value coregraphics.Point) { objc.Call[objc.Void](f_, objc.Sel("setCenter:"), value) } -func (f_ FourfoldTranslatedTileWrapper) HasCenter() bool { +func (f_ FourfoldTranslatedTileObject) 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/cifourfoldtranslatedtile/3228457-center?language=objc -func (f_ FourfoldTranslatedTileWrapper) Center() coregraphics.Point { +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 float64) { + 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() float64 { + rv := objc.Call[float64](f_, objc.Sel("angle")) + return rv +} diff --git a/macos/coreimage/gabor_gradients.gen.go b/macos/coreimage/gabor_gradients_protocol.gen.go similarity index 67% rename from macos/coreimage/gabor_gradients.gen.go rename to macos/coreimage/gabor_gradients_protocol.gen.go index 626f6b06..c5afaf4c 100644 --- a/macos/coreimage/gabor_gradients.gen.go +++ b/macos/coreimage/gabor_gradients_protocol.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package coreimage @@ -15,34 +15,37 @@ type PGaborGradients interface { HasSetInputImage() bool // optional - InputImage() IImage + InputImage() Image HasInputImage() bool } -// A concrete type wrapper for the [PGaborGradients] protocol. -type GaborGradientsWrapper struct { +// ensure impl type implements protocol interface +var _ PGaborGradients = (*GaborGradientsObject)(nil) + +// A concrete type for the [PGaborGradients] protocol. +type GaborGradientsObject struct { objc.Object } -func (g_ GaborGradientsWrapper) HasSetInputImage() bool { +func (g_ GaborGradientsObject) 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/cigaborgradients/3325514-inputimage?language=objc -func (g_ GaborGradientsWrapper) SetInputImage(value IImage) { +func (g_ GaborGradientsObject) SetInputImage(value Image) { objc.Call[objc.Void](g_, objc.Sel("setInputImage:"), objc.Ptr(value)) } -func (g_ GaborGradientsWrapper) HasInputImage() bool { +func (g_ GaborGradientsObject) 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/cigaborgradients/3325514-inputimage?language=objc -func (g_ GaborGradientsWrapper) InputImage() Image { +func (g_ GaborGradientsObject) InputImage() Image { rv := objc.Call[Image](g_, objc.Sel("inputImage")) return rv } diff --git a/macos/coreimage/gamma_adjust.gen.go b/macos/coreimage/gamma_adjust_protocol.gen.go similarity index 72% rename from macos/coreimage/gamma_adjust.gen.go rename to macos/coreimage/gamma_adjust_protocol.gen.go index a39fc560..b48b9e05 100644 --- a/macos/coreimage/gamma_adjust.gen.go +++ b/macos/coreimage/gamma_adjust_protocol.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package coreimage @@ -15,7 +15,7 @@ type PGammaAdjust interface { HasSetInputImage() bool // optional - InputImage() IImage + InputImage() Image HasInputImage() bool // optional @@ -27,53 +27,56 @@ type PGammaAdjust interface { HasPower() bool } -// A concrete type wrapper for the [PGammaAdjust] protocol. -type GammaAdjustWrapper struct { +// ensure impl type implements protocol interface +var _ PGammaAdjust = (*GammaAdjustObject)(nil) + +// A concrete type for the [PGammaAdjust] protocol. +type GammaAdjustObject struct { objc.Object } -func (g_ GammaAdjustWrapper) HasSetInputImage() bool { +func (g_ GammaAdjustObject) 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/cigammaadjust/3228461-inputimage?language=objc -func (g_ GammaAdjustWrapper) SetInputImage(value IImage) { +func (g_ GammaAdjustObject) SetInputImage(value Image) { objc.Call[objc.Void](g_, objc.Sel("setInputImage:"), objc.Ptr(value)) } -func (g_ GammaAdjustWrapper) HasInputImage() bool { +func (g_ GammaAdjustObject) 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/cigammaadjust/3228461-inputimage?language=objc -func (g_ GammaAdjustWrapper) InputImage() Image { +func (g_ GammaAdjustObject) InputImage() Image { rv := objc.Call[Image](g_, objc.Sel("inputImage")) return rv } -func (g_ GammaAdjustWrapper) HasSetPower() bool { +func (g_ GammaAdjustObject) HasSetPower() bool { return g_.RespondsToSelector(objc.Sel("setPower:")) } // A gamma value to use to correct image brightness. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/coreimage/cigammaadjust/3228462-power?language=objc -func (g_ GammaAdjustWrapper) SetPower(value float64) { +func (g_ GammaAdjustObject) SetPower(value float64) { objc.Call[objc.Void](g_, objc.Sel("setPower:"), value) } -func (g_ GammaAdjustWrapper) HasPower() bool { +func (g_ GammaAdjustObject) HasPower() bool { return g_.RespondsToSelector(objc.Sel("power")) } // A gamma value to use to correct image brightness. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/coreimage/cigammaadjust/3228462-power?language=objc -func (g_ GammaAdjustWrapper) Power() float64 { +func (g_ GammaAdjustObject) Power() float64 { rv := objc.Call[float64](g_, objc.Sel("power")) return rv } diff --git a/macos/coreimage/gaussian_blur.gen.go b/macos/coreimage/gaussian_blur_protocol.gen.go similarity index 71% rename from macos/coreimage/gaussian_blur.gen.go rename to macos/coreimage/gaussian_blur_protocol.gen.go index 17c3af5f..e345cb43 100644 --- a/macos/coreimage/gaussian_blur.gen.go +++ b/macos/coreimage/gaussian_blur_protocol.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package coreimage @@ -15,7 +15,7 @@ type PGaussianBlur interface { HasSetInputImage() bool // optional - InputImage() IImage + InputImage() Image HasInputImage() bool // optional @@ -27,53 +27,56 @@ type PGaussianBlur interface { HasRadius() bool } -// A concrete type wrapper for the [PGaussianBlur] protocol. -type GaussianBlurWrapper struct { +// ensure impl type implements protocol interface +var _ PGaussianBlur = (*GaussianBlurObject)(nil) + +// A concrete type for the [PGaussianBlur] protocol. +type GaussianBlurObject struct { objc.Object } -func (g_ GaussianBlurWrapper) HasSetInputImage() bool { +func (g_ GaussianBlurObject) 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/cigaussianblur/3228464-inputimage?language=objc -func (g_ GaussianBlurWrapper) SetInputImage(value IImage) { +func (g_ GaussianBlurObject) SetInputImage(value Image) { objc.Call[objc.Void](g_, objc.Sel("setInputImage:"), objc.Ptr(value)) } -func (g_ GaussianBlurWrapper) HasInputImage() bool { +func (g_ GaussianBlurObject) 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/cigaussianblur/3228464-inputimage?language=objc -func (g_ GaussianBlurWrapper) InputImage() Image { +func (g_ GaussianBlurObject) InputImage() Image { rv := objc.Call[Image](g_, objc.Sel("inputImage")) return rv } -func (g_ GaussianBlurWrapper) HasSetRadius() bool { +func (g_ GaussianBlurObject) HasSetRadius() bool { return g_.RespondsToSelector(objc.Sel("setRadius:")) } // The radius of the blur, in pixels. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/coreimage/cigaussianblur/3228465-radius?language=objc -func (g_ GaussianBlurWrapper) SetRadius(value float64) { +func (g_ GaussianBlurObject) SetRadius(value float64) { objc.Call[objc.Void](g_, objc.Sel("setRadius:"), value) } -func (g_ GaussianBlurWrapper) HasRadius() bool { +func (g_ GaussianBlurObject) HasRadius() bool { return g_.RespondsToSelector(objc.Sel("radius")) } // The radius of the blur, in pixels. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/coreimage/cigaussianblur/3228465-radius?language=objc -func (g_ GaussianBlurWrapper) Radius() float64 { +func (g_ GaussianBlurObject) Radius() float64 { rv := objc.Call[float64](g_, objc.Sel("radius")) return rv } diff --git a/macos/coreimage/gaussian_gradient.gen.go b/macos/coreimage/gaussian_gradient_protocol.gen.go similarity index 73% rename from macos/coreimage/gaussian_gradient.gen.go rename to macos/coreimage/gaussian_gradient_protocol.gen.go index 2cd793c7..b08a1939 100644 --- a/macos/coreimage/gaussian_gradient.gen.go +++ b/macos/coreimage/gaussian_gradient_protocol.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package coreimage @@ -12,131 +12,134 @@ import ( // [Full Topic]: https://developer.apple.com/documentation/coreimage/cigaussiangradient?language=objc type PGaussianGradient interface { // optional - SetRadius(value float64) - HasSetRadius() bool + SetCenter(value coregraphics.Point) + HasSetCenter() bool // optional - Radius() float64 - HasRadius() bool + Center() coregraphics.Point + HasCenter() bool // optional SetColor0(value Color) HasSetColor0() bool // optional - Color0() IColor + Color0() Color HasColor0() bool // optional - SetColor1(value Color) - HasSetColor1() bool + SetRadius(value float64) + HasSetRadius() bool // optional - Color1() IColor - HasColor1() bool + Radius() float64 + HasRadius() bool // optional - SetCenter(value coregraphics.Point) - HasSetCenter() bool + SetColor1(value Color) + HasSetColor1() bool // optional - Center() coregraphics.Point - HasCenter() bool + Color1() Color + HasColor1() bool } -// A concrete type wrapper for the [PGaussianGradient] protocol. -type GaussianGradientWrapper struct { +// ensure impl type implements protocol interface +var _ PGaussianGradient = (*GaussianGradientObject)(nil) + +// A concrete type for the [PGaussianGradient] protocol. +type GaussianGradientObject struct { objc.Object } -func (g_ GaussianGradientWrapper) HasSetRadius() bool { - return g_.RespondsToSelector(objc.Sel("setRadius:")) +func (g_ GaussianGradientObject) HasSetCenter() bool { + return g_.RespondsToSelector(objc.Sel("setCenter:")) } -// The radius of the Gaussian distribution. [Full Topic] +// The center of the effect as x and y coordinates. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/cigaussiangradient/3228470-radius?language=objc -func (g_ GaussianGradientWrapper) SetRadius(value float64) { - objc.Call[objc.Void](g_, objc.Sel("setRadius:"), value) +// [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_ GaussianGradientWrapper) HasRadius() bool { - return g_.RespondsToSelector(objc.Sel("radius")) +func (g_ GaussianGradientObject) HasCenter() bool { + return g_.RespondsToSelector(objc.Sel("center")) } -// The radius of the Gaussian distribution. [Full Topic] +// The center of the effect as x and y coordinates. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/cigaussiangradient/3228470-radius?language=objc -func (g_ GaussianGradientWrapper) Radius() float64 { - rv := objc.Call[float64](g_, objc.Sel("radius")) +// [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 } -func (g_ GaussianGradientWrapper) HasSetColor0() bool { +func (g_ GaussianGradientObject) HasSetColor0() bool { return g_.RespondsToSelector(objc.Sel("setColor0:")) } // The first color to use in the gradient. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/coreimage/cigaussiangradient/3228468-color0?language=objc -func (g_ GaussianGradientWrapper) SetColor0(value IColor) { +func (g_ GaussianGradientObject) SetColor0(value Color) { objc.Call[objc.Void](g_, objc.Sel("setColor0:"), objc.Ptr(value)) } -func (g_ GaussianGradientWrapper) HasColor0() bool { +func (g_ GaussianGradientObject) HasColor0() bool { return g_.RespondsToSelector(objc.Sel("color0")) } // The first color to use in the gradient. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/coreimage/cigaussiangradient/3228468-color0?language=objc -func (g_ GaussianGradientWrapper) Color0() Color { +func (g_ GaussianGradientObject) Color0() Color { rv := objc.Call[Color](g_, objc.Sel("color0")) return rv } -func (g_ GaussianGradientWrapper) HasSetColor1() bool { - return g_.RespondsToSelector(objc.Sel("setColor1:")) +func (g_ GaussianGradientObject) HasSetRadius() bool { + return g_.RespondsToSelector(objc.Sel("setRadius:")) } -// The second color to use in the gradient. [Full Topic] +// The radius of the Gaussian distribution. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/cigaussiangradient/3228469-color1?language=objc -func (g_ GaussianGradientWrapper) SetColor1(value IColor) { - objc.Call[objc.Void](g_, objc.Sel("setColor1:"), objc.Ptr(value)) +// [Full Topic]: https://developer.apple.com/documentation/coreimage/cigaussiangradient/3228470-radius?language=objc +func (g_ GaussianGradientObject) SetRadius(value float64) { + objc.Call[objc.Void](g_, objc.Sel("setRadius:"), value) } -func (g_ GaussianGradientWrapper) HasColor1() bool { - return g_.RespondsToSelector(objc.Sel("color1")) +func (g_ GaussianGradientObject) HasRadius() bool { + return g_.RespondsToSelector(objc.Sel("radius")) } -// The second color to use in the gradient. [Full Topic] +// The radius of the Gaussian distribution. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/cigaussiangradient/3228469-color1?language=objc -func (g_ GaussianGradientWrapper) Color1() Color { - rv := objc.Call[Color](g_, objc.Sel("color1")) +// [Full Topic]: https://developer.apple.com/documentation/coreimage/cigaussiangradient/3228470-radius?language=objc +func (g_ GaussianGradientObject) Radius() float64 { + rv := objc.Call[float64](g_, objc.Sel("radius")) return rv } -func (g_ GaussianGradientWrapper) HasSetCenter() bool { - return g_.RespondsToSelector(objc.Sel("setCenter:")) +func (g_ GaussianGradientObject) HasSetColor1() bool { + return g_.RespondsToSelector(objc.Sel("setColor1:")) } -// The center of the effect as x and y coordinates. [Full Topic] +// The second color to use in the gradient. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/cigaussiangradient/3228467-center?language=objc -func (g_ GaussianGradientWrapper) SetCenter(value coregraphics.Point) { - objc.Call[objc.Void](g_, objc.Sel("setCenter:"), value) +// [Full Topic]: https://developer.apple.com/documentation/coreimage/cigaussiangradient/3228469-color1?language=objc +func (g_ GaussianGradientObject) SetColor1(value Color) { + objc.Call[objc.Void](g_, objc.Sel("setColor1:"), objc.Ptr(value)) } -func (g_ GaussianGradientWrapper) HasCenter() bool { - return g_.RespondsToSelector(objc.Sel("center")) +func (g_ GaussianGradientObject) HasColor1() bool { + return g_.RespondsToSelector(objc.Sel("color1")) } -// The center of the effect as x and y coordinates. [Full Topic] +// The second color to use in the gradient. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/cigaussiangradient/3228467-center?language=objc -func (g_ GaussianGradientWrapper) Center() coregraphics.Point { - rv := objc.Call[coregraphics.Point](g_, objc.Sel("center")) +// [Full Topic]: https://developer.apple.com/documentation/coreimage/cigaussiangradient/3228469-color1?language=objc +func (g_ GaussianGradientObject) Color1() Color { + rv := objc.Call[Color](g_, objc.Sel("color1")) return rv } diff --git a/macos/coreimage/glass_distortion.gen.go b/macos/coreimage/glass_distortion_protocol.gen.go similarity index 70% rename from macos/coreimage/glass_distortion.gen.go rename to macos/coreimage/glass_distortion_protocol.gen.go index 74862011..4e780b33 100644 --- a/macos/coreimage/glass_distortion.gen.go +++ b/macos/coreimage/glass_distortion_protocol.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package coreimage @@ -11,29 +11,21 @@ import ( // // [Full Topic]: https://developer.apple.com/documentation/coreimage/ciglassdistortion?language=objc type PGlassDistortion interface { - // optional - SetScale(value float64) - HasSetScale() bool - - // optional - Scale() float64 - HasScale() bool - // optional SetInputImage(value Image) HasSetInputImage() bool // optional - InputImage() IImage + InputImage() Image HasInputImage() bool // optional - SetTextureImage(value Image) - HasSetTextureImage() bool + SetScale(value float64) + HasSetScale() bool // optional - TextureImage() IImage - HasTextureImage() bool + Scale() float64 + HasScale() bool // optional SetCenter(value coregraphics.Point) @@ -42,101 +34,112 @@ type PGlassDistortion interface { // optional Center() coregraphics.Point HasCenter() bool -} -// A concrete type wrapper for the [PGlassDistortion] protocol. -type GlassDistortionWrapper struct { - objc.Object -} - -func (g_ GlassDistortionWrapper) HasSetScale() bool { - return g_.RespondsToSelector(objc.Sel("setScale:")) -} + // optional + SetTextureImage(value Image) + HasSetTextureImage() bool -// [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/coreimage/ciglassdistortion/3600158-scale?language=objc -func (g_ GlassDistortionWrapper) SetScale(value float64) { - objc.Call[objc.Void](g_, objc.Sel("setScale:"), value) + // optional + TextureImage() Image + HasTextureImage() bool } -func (g_ GlassDistortionWrapper) HasScale() bool { - return g_.RespondsToSelector(objc.Sel("scale")) -} +// ensure impl type implements protocol interface +var _ PGlassDistortion = (*GlassDistortionObject)(nil) -// [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/coreimage/ciglassdistortion/3600158-scale?language=objc -func (g_ GlassDistortionWrapper) Scale() float64 { - rv := objc.Call[float64](g_, objc.Sel("scale")) - return rv +// A concrete type for the [PGlassDistortion] protocol. +type GlassDistortionObject struct { + objc.Object } -func (g_ GlassDistortionWrapper) HasSetInputImage() bool { +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_ GlassDistortionWrapper) SetInputImage(value IImage) { +func (g_ GlassDistortionObject) SetInputImage(value Image) { objc.Call[objc.Void](g_, objc.Sel("setInputImage:"), objc.Ptr(value)) } -func (g_ GlassDistortionWrapper) HasInputImage() bool { +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_ GlassDistortionWrapper) InputImage() Image { +func (g_ GlassDistortionObject) InputImage() Image { rv := objc.Call[Image](g_, objc.Sel("inputImage")) return rv } -func (g_ GlassDistortionWrapper) HasSetTextureImage() bool { - return g_.RespondsToSelector(objc.Sel("setTextureImage:")) +func (g_ GlassDistortionObject) HasSetScale() bool { + return g_.RespondsToSelector(objc.Sel("setScale:")) } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/ciglassdistortion/3600159-textureimage?language=objc -func (g_ GlassDistortionWrapper) SetTextureImage(value IImage) { - objc.Call[objc.Void](g_, objc.Sel("setTextureImage:"), objc.Ptr(value)) +// [Full Topic]: https://developer.apple.com/documentation/coreimage/ciglassdistortion/3600158-scale?language=objc +func (g_ GlassDistortionObject) SetScale(value float64) { + objc.Call[objc.Void](g_, objc.Sel("setScale:"), value) } -func (g_ GlassDistortionWrapper) HasTextureImage() bool { - return g_.RespondsToSelector(objc.Sel("textureImage")) +func (g_ GlassDistortionObject) HasScale() bool { + return g_.RespondsToSelector(objc.Sel("scale")) } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/ciglassdistortion/3600159-textureimage?language=objc -func (g_ GlassDistortionWrapper) TextureImage() Image { - rv := objc.Call[Image](g_, objc.Sel("textureImage")) +// [Full Topic]: https://developer.apple.com/documentation/coreimage/ciglassdistortion/3600158-scale?language=objc +func (g_ GlassDistortionObject) Scale() float64 { + rv := objc.Call[float64](g_, objc.Sel("scale")) return rv } -func (g_ GlassDistortionWrapper) HasSetCenter() bool { +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_ GlassDistortionWrapper) SetCenter(value coregraphics.Point) { +func (g_ GlassDistortionObject) SetCenter(value coregraphics.Point) { objc.Call[objc.Void](g_, objc.Sel("setCenter:"), value) } -func (g_ GlassDistortionWrapper) HasCenter() bool { +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_ GlassDistortionWrapper) Center() coregraphics.Point { +func (g_ GlassDistortionObject) Center() coregraphics.Point { rv := objc.Call[coregraphics.Point](g_, objc.Sel("center")) return rv } + +func (g_ GlassDistortionObject) HasSetTextureImage() bool { + return g_.RespondsToSelector(objc.Sel("setTextureImage:")) +} + +// [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/coreimage/ciglassdistortion/3600159-textureimage?language=objc +func (g_ GlassDistortionObject) SetTextureImage(value Image) { + objc.Call[objc.Void](g_, objc.Sel("setTextureImage:"), objc.Ptr(value)) +} + +func (g_ GlassDistortionObject) HasTextureImage() bool { + return g_.RespondsToSelector(objc.Sel("textureImage")) +} + +// [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/coreimage/ciglassdistortion/3600159-textureimage?language=objc +func (g_ GlassDistortionObject) TextureImage() Image { + rv := objc.Call[Image](g_, objc.Sel("textureImage")) + return rv +} diff --git a/macos/coreimage/glass_lozenge.gen.go b/macos/coreimage/glass_lozenge_protocol.gen.go similarity index 72% rename from macos/coreimage/glass_lozenge.gen.go rename to macos/coreimage/glass_lozenge_protocol.gen.go index 84fc4590..e734757c 100644 --- a/macos/coreimage/glass_lozenge.gen.go +++ b/macos/coreimage/glass_lozenge_protocol.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package coreimage @@ -12,12 +12,12 @@ import ( // [Full Topic]: https://developer.apple.com/documentation/coreimage/ciglasslozenge?language=objc type PGlassLozenge interface { // optional - SetInputImage(value Image) - HasSetInputImage() bool + SetRadius(value float64) + HasSetRadius() bool // optional - InputImage() IImage - HasInputImage() bool + Radius() float64 + HasRadius() bool // optional SetRefraction(value float64) @@ -28,146 +28,149 @@ type PGlassLozenge interface { HasRefraction() bool // optional - SetRadius(value float64) - HasSetRadius() bool + SetPoint0(value coregraphics.Point) + HasSetPoint0() bool // optional - Radius() float64 - HasRadius() bool + Point0() coregraphics.Point + HasPoint0() bool // optional - SetPoint1(value coregraphics.Point) - HasSetPoint1() bool + SetInputImage(value Image) + HasSetInputImage() bool // optional - Point1() coregraphics.Point - HasPoint1() bool + InputImage() Image + HasInputImage() bool // optional - SetPoint0(value coregraphics.Point) - HasSetPoint0() bool + SetPoint1(value coregraphics.Point) + HasSetPoint1() bool // optional - Point0() coregraphics.Point - HasPoint0() bool + Point1() coregraphics.Point + HasPoint1() bool } -// A concrete type wrapper for the [PGlassLozenge] protocol. -type GlassLozengeWrapper struct { +// ensure impl type implements protocol interface +var _ PGlassLozenge = (*GlassLozengeObject)(nil) + +// A concrete type for the [PGlassLozenge] protocol. +type GlassLozengeObject struct { objc.Object } -func (g_ GlassLozengeWrapper) HasSetInputImage() bool { - return g_.RespondsToSelector(objc.Sel("setInputImage:")) +func (g_ GlassLozengeObject) HasSetRadius() bool { + return g_.RespondsToSelector(objc.Sel("setRadius:")) } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/ciglasslozenge/3600161-inputimage?language=objc -func (g_ GlassLozengeWrapper) SetInputImage(value IImage) { - objc.Call[objc.Void](g_, objc.Sel("setInputImage:"), objc.Ptr(value)) +// [Full Topic]: https://developer.apple.com/documentation/coreimage/ciglasslozenge/3600164-radius?language=objc +func (g_ GlassLozengeObject) SetRadius(value float64) { + objc.Call[objc.Void](g_, objc.Sel("setRadius:"), value) } -func (g_ GlassLozengeWrapper) HasInputImage() bool { - return g_.RespondsToSelector(objc.Sel("inputImage")) +func (g_ GlassLozengeObject) HasRadius() bool { + return g_.RespondsToSelector(objc.Sel("radius")) } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/ciglasslozenge/3600161-inputimage?language=objc -func (g_ GlassLozengeWrapper) InputImage() Image { - rv := objc.Call[Image](g_, objc.Sel("inputImage")) +// [Full Topic]: https://developer.apple.com/documentation/coreimage/ciglasslozenge/3600164-radius?language=objc +func (g_ GlassLozengeObject) Radius() float64 { + rv := objc.Call[float64](g_, objc.Sel("radius")) return rv } -func (g_ GlassLozengeWrapper) HasSetRefraction() bool { +func (g_ GlassLozengeObject) HasSetRefraction() bool { return g_.RespondsToSelector(objc.Sel("setRefraction:")) } // [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/coreimage/ciglasslozenge/3600165-refraction?language=objc -func (g_ GlassLozengeWrapper) SetRefraction(value float64) { +func (g_ GlassLozengeObject) SetRefraction(value float64) { objc.Call[objc.Void](g_, objc.Sel("setRefraction:"), value) } -func (g_ GlassLozengeWrapper) HasRefraction() bool { +func (g_ GlassLozengeObject) HasRefraction() bool { return g_.RespondsToSelector(objc.Sel("refraction")) } // [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/coreimage/ciglasslozenge/3600165-refraction?language=objc -func (g_ GlassLozengeWrapper) Refraction() float64 { +func (g_ GlassLozengeObject) Refraction() float64 { rv := objc.Call[float64](g_, objc.Sel("refraction")) return rv } -func (g_ GlassLozengeWrapper) HasSetRadius() bool { - return g_.RespondsToSelector(objc.Sel("setRadius:")) +func (g_ GlassLozengeObject) HasSetPoint0() bool { + return g_.RespondsToSelector(objc.Sel("setPoint0:")) } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/ciglasslozenge/3600164-radius?language=objc -func (g_ GlassLozengeWrapper) SetRadius(value float64) { - objc.Call[objc.Void](g_, objc.Sel("setRadius:"), 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_ GlassLozengeWrapper) HasRadius() bool { - return g_.RespondsToSelector(objc.Sel("radius")) +func (g_ GlassLozengeObject) HasPoint0() bool { + return g_.RespondsToSelector(objc.Sel("point0")) } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/ciglasslozenge/3600164-radius?language=objc -func (g_ GlassLozengeWrapper) Radius() float64 { - rv := objc.Call[float64](g_, objc.Sel("radius")) +// [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 } -func (g_ GlassLozengeWrapper) HasSetPoint1() bool { - return g_.RespondsToSelector(objc.Sel("setPoint1:")) +func (g_ GlassLozengeObject) HasSetInputImage() bool { + return g_.RespondsToSelector(objc.Sel("setInputImage:")) } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/ciglasslozenge/3600163-point1?language=objc -func (g_ GlassLozengeWrapper) SetPoint1(value coregraphics.Point) { - objc.Call[objc.Void](g_, objc.Sel("setPoint1:"), 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:"), objc.Ptr(value)) } -func (g_ GlassLozengeWrapper) HasPoint1() bool { - return g_.RespondsToSelector(objc.Sel("point1")) +func (g_ GlassLozengeObject) HasInputImage() bool { + return g_.RespondsToSelector(objc.Sel("inputImage")) } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/ciglasslozenge/3600163-point1?language=objc -func (g_ GlassLozengeWrapper) Point1() coregraphics.Point { - rv := objc.Call[coregraphics.Point](g_, objc.Sel("point1")) +// [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 } -func (g_ GlassLozengeWrapper) HasSetPoint0() bool { - return g_.RespondsToSelector(objc.Sel("setPoint0:")) +func (g_ GlassLozengeObject) HasSetPoint1() bool { + return g_.RespondsToSelector(objc.Sel("setPoint1:")) } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/ciglasslozenge/3600162-point0?language=objc -func (g_ GlassLozengeWrapper) SetPoint0(value coregraphics.Point) { - objc.Call[objc.Void](g_, objc.Sel("setPoint0:"), 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_ GlassLozengeWrapper) HasPoint0() bool { - return g_.RespondsToSelector(objc.Sel("point0")) +func (g_ GlassLozengeObject) HasPoint1() bool { + return g_.RespondsToSelector(objc.Sel("point1")) } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/ciglasslozenge/3600162-point0?language=objc -func (g_ GlassLozengeWrapper) Point0() coregraphics.Point { - rv := objc.Call[coregraphics.Point](g_, objc.Sel("point0")) +// [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 } diff --git a/macos/coreimage/glide_reflected_tile.gen.go b/macos/coreimage/glide_reflected_tile_protocol.gen.go similarity index 72% rename from macos/coreimage/glide_reflected_tile.gen.go rename to macos/coreimage/glide_reflected_tile_protocol.gen.go index b4046883..452852e2 100644 --- a/macos/coreimage/glide_reflected_tile.gen.go +++ b/macos/coreimage/glide_reflected_tile_protocol.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package coreimage @@ -12,20 +12,20 @@ import ( // [Full Topic]: https://developer.apple.com/documentation/coreimage/ciglidereflectedtile?language=objc type PGlideReflectedTile interface { // optional - SetWidth(value float64) - HasSetWidth() bool + SetInputImage(value Image) + HasSetInputImage() bool // optional - Width() float64 - HasWidth() bool + InputImage() Image + HasInputImage() bool // optional - SetInputImage(value Image) - HasSetInputImage() bool + SetWidth(value float64) + HasSetWidth() bool // optional - InputImage() IImage - HasInputImage() bool + Width() float64 + HasWidth() bool // optional SetAngle(value float64) @@ -44,99 +44,102 @@ type PGlideReflectedTile interface { HasCenter() bool } -// A concrete type wrapper for the [PGlideReflectedTile] protocol. -type GlideReflectedTileWrapper struct { +// ensure impl type implements protocol interface +var _ PGlideReflectedTile = (*GlideReflectedTileObject)(nil) + +// A concrete type for the [PGlideReflectedTile] protocol. +type GlideReflectedTileObject struct { objc.Object } -func (g_ GlideReflectedTileWrapper) HasSetWidth() bool { - return g_.RespondsToSelector(objc.Sel("setWidth:")) +func (g_ GlideReflectedTileObject) HasSetInputImage() bool { + return g_.RespondsToSelector(objc.Sel("setInputImage:")) } -// The width of a tile. [Full Topic] +// The image to use as an input image. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/ciglidereflectedtile/3228475-width?language=objc -func (g_ GlideReflectedTileWrapper) SetWidth(value float64) { - objc.Call[objc.Void](g_, objc.Sel("setWidth:"), value) +// [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:"), objc.Ptr(value)) } -func (g_ GlideReflectedTileWrapper) HasWidth() bool { - return g_.RespondsToSelector(objc.Sel("width")) +func (g_ GlideReflectedTileObject) HasInputImage() bool { + return g_.RespondsToSelector(objc.Sel("inputImage")) } -// The width of a tile. [Full Topic] +// The image to use as an input image. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/ciglidereflectedtile/3228475-width?language=objc -func (g_ GlideReflectedTileWrapper) Width() float64 { - rv := objc.Call[float64](g_, objc.Sel("width")) +// [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_ GlideReflectedTileWrapper) HasSetInputImage() bool { - return g_.RespondsToSelector(objc.Sel("setInputImage:")) +func (g_ GlideReflectedTileObject) HasSetWidth() bool { + return g_.RespondsToSelector(objc.Sel("setWidth:")) } -// The image to use as an input image. [Full Topic] +// The width of a tile. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/ciglidereflectedtile/3228474-inputimage?language=objc -func (g_ GlideReflectedTileWrapper) SetInputImage(value IImage) { - objc.Call[objc.Void](g_, objc.Sel("setInputImage:"), objc.Ptr(value)) +// [Full Topic]: https://developer.apple.com/documentation/coreimage/ciglidereflectedtile/3228475-width?language=objc +func (g_ GlideReflectedTileObject) SetWidth(value float64) { + objc.Call[objc.Void](g_, objc.Sel("setWidth:"), value) } -func (g_ GlideReflectedTileWrapper) HasInputImage() bool { - return g_.RespondsToSelector(objc.Sel("inputImage")) +func (g_ GlideReflectedTileObject) HasWidth() bool { + return g_.RespondsToSelector(objc.Sel("width")) } -// The image to use as an input image. [Full Topic] +// The width of a tile. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/ciglidereflectedtile/3228474-inputimage?language=objc -func (g_ GlideReflectedTileWrapper) InputImage() Image { - rv := objc.Call[Image](g_, objc.Sel("inputImage")) +// [Full Topic]: https://developer.apple.com/documentation/coreimage/ciglidereflectedtile/3228475-width?language=objc +func (g_ GlideReflectedTileObject) Width() float64 { + rv := objc.Call[float64](g_, objc.Sel("width")) return rv } -func (g_ GlideReflectedTileWrapper) HasSetAngle() bool { +func (g_ GlideReflectedTileObject) HasSetAngle() bool { return g_.RespondsToSelector(objc.Sel("setAngle:")) } // The angle, in radians, of the tiled pattern. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/coreimage/ciglidereflectedtile/3228472-angle?language=objc -func (g_ GlideReflectedTileWrapper) SetAngle(value float64) { +func (g_ GlideReflectedTileObject) SetAngle(value float64) { objc.Call[objc.Void](g_, objc.Sel("setAngle:"), value) } -func (g_ GlideReflectedTileWrapper) HasAngle() bool { +func (g_ GlideReflectedTileObject) HasAngle() bool { return g_.RespondsToSelector(objc.Sel("angle")) } // The angle, in radians, of the tiled pattern. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/coreimage/ciglidereflectedtile/3228472-angle?language=objc -func (g_ GlideReflectedTileWrapper) Angle() float64 { +func (g_ GlideReflectedTileObject) Angle() float64 { rv := objc.Call[float64](g_, objc.Sel("angle")) return rv } -func (g_ GlideReflectedTileWrapper) HasSetCenter() bool { +func (g_ GlideReflectedTileObject) HasSetCenter() bool { return g_.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/ciglidereflectedtile/3228473-center?language=objc -func (g_ GlideReflectedTileWrapper) SetCenter(value coregraphics.Point) { +func (g_ GlideReflectedTileObject) SetCenter(value coregraphics.Point) { objc.Call[objc.Void](g_, objc.Sel("setCenter:"), value) } -func (g_ GlideReflectedTileWrapper) HasCenter() bool { +func (g_ GlideReflectedTileObject) HasCenter() bool { return g_.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/ciglidereflectedtile/3228473-center?language=objc -func (g_ GlideReflectedTileWrapper) Center() coregraphics.Point { +func (g_ GlideReflectedTileObject) Center() coregraphics.Point { rv := objc.Call[coregraphics.Point](g_, objc.Sel("center")) return rv } diff --git a/macos/coreimage/gloom.gen.go b/macos/coreimage/gloom_protocol.gen.go similarity index 75% rename from macos/coreimage/gloom.gen.go rename to macos/coreimage/gloom_protocol.gen.go index f1a268b3..4cb57003 100644 --- a/macos/coreimage/gloom.gen.go +++ b/macos/coreimage/gloom_protocol.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package coreimage @@ -10,14 +10,6 @@ import ( // // [Full Topic]: https://developer.apple.com/documentation/coreimage/cigloom?language=objc type PGloom interface { - // optional - SetInputImage(value Image) - HasSetInputImage() bool - - // optional - InputImage() IImage - HasInputImage() bool - // optional SetIntensity(value float64) HasSetIntensity() bool @@ -26,6 +18,14 @@ type PGloom interface { Intensity() float64 HasIntensity() bool + // optional + SetInputImage(value Image) + HasSetInputImage() bool + + // optional + InputImage() Image + HasInputImage() bool + // optional SetRadius(value float64) HasSetRadius() bool @@ -35,76 +35,79 @@ type PGloom interface { HasRadius() bool } -// A concrete type wrapper for the [PGloom] protocol. -type GloomWrapper struct { +// ensure impl type implements protocol interface +var _ PGloom = (*GloomObject)(nil) + +// A concrete type for the [PGloom] protocol. +type GloomObject struct { objc.Object } -func (g_ GloomWrapper) HasSetInputImage() bool { - return g_.RespondsToSelector(objc.Sel("setInputImage:")) +func (g_ GloomObject) HasSetIntensity() bool { + return g_.RespondsToSelector(objc.Sel("setIntensity:")) } -// The image to use as an input image. [Full Topic] +// The intensity of the effect. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/cigloom/3228477-inputimage?language=objc -func (g_ GloomWrapper) SetInputImage(value IImage) { - objc.Call[objc.Void](g_, objc.Sel("setInputImage:"), objc.Ptr(value)) +// [Full Topic]: https://developer.apple.com/documentation/coreimage/cigloom/3228478-intensity?language=objc +func (g_ GloomObject) SetIntensity(value float64) { + objc.Call[objc.Void](g_, objc.Sel("setIntensity:"), value) } -func (g_ GloomWrapper) HasInputImage() bool { - return g_.RespondsToSelector(objc.Sel("inputImage")) +func (g_ GloomObject) HasIntensity() bool { + return g_.RespondsToSelector(objc.Sel("intensity")) } -// The image to use as an input image. [Full Topic] +// The intensity of the effect. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/cigloom/3228477-inputimage?language=objc -func (g_ GloomWrapper) InputImage() Image { - rv := objc.Call[Image](g_, objc.Sel("inputImage")) +// [Full Topic]: https://developer.apple.com/documentation/coreimage/cigloom/3228478-intensity?language=objc +func (g_ GloomObject) Intensity() float64 { + rv := objc.Call[float64](g_, objc.Sel("intensity")) return rv } -func (g_ GloomWrapper) HasSetIntensity() bool { - return g_.RespondsToSelector(objc.Sel("setIntensity:")) +func (g_ GloomObject) HasSetInputImage() bool { + return g_.RespondsToSelector(objc.Sel("setInputImage:")) } -// The intensity of the effect. [Full Topic] +// The image to use as an input image. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/cigloom/3228478-intensity?language=objc -func (g_ GloomWrapper) SetIntensity(value float64) { - objc.Call[objc.Void](g_, objc.Sel("setIntensity:"), value) +// [Full Topic]: https://developer.apple.com/documentation/coreimage/cigloom/3228477-inputimage?language=objc +func (g_ GloomObject) SetInputImage(value Image) { + objc.Call[objc.Void](g_, objc.Sel("setInputImage:"), objc.Ptr(value)) } -func (g_ GloomWrapper) HasIntensity() bool { - return g_.RespondsToSelector(objc.Sel("intensity")) +func (g_ GloomObject) HasInputImage() bool { + return g_.RespondsToSelector(objc.Sel("inputImage")) } -// The intensity of the effect. [Full Topic] +// The image to use as an input image. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/cigloom/3228478-intensity?language=objc -func (g_ GloomWrapper) Intensity() float64 { - rv := objc.Call[float64](g_, objc.Sel("intensity")) +// [Full Topic]: https://developer.apple.com/documentation/coreimage/cigloom/3228477-inputimage?language=objc +func (g_ GloomObject) InputImage() Image { + rv := objc.Call[Image](g_, objc.Sel("inputImage")) return rv } -func (g_ GloomWrapper) HasSetRadius() bool { +func (g_ GloomObject) HasSetRadius() bool { return g_.RespondsToSelector(objc.Sel("setRadius:")) } // The radius, in pixels, of the effect. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/coreimage/cigloom/3228479-radius?language=objc -func (g_ GloomWrapper) SetRadius(value float64) { +func (g_ GloomObject) SetRadius(value float64) { objc.Call[objc.Void](g_, objc.Sel("setRadius:"), value) } -func (g_ GloomWrapper) HasRadius() bool { +func (g_ GloomObject) HasRadius() bool { return g_.RespondsToSelector(objc.Sel("radius")) } // The radius, in pixels, of the effect. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/coreimage/cigloom/3228479-radius?language=objc -func (g_ GloomWrapper) Radius() float64 { +func (g_ GloomObject) Radius() float64 { rv := objc.Call[float64](g_, objc.Sel("radius")) return rv } diff --git a/macos/coreimage/hatched_screen.gen.go b/macos/coreimage/hatched_screen_protocol.gen.go similarity index 74% rename from macos/coreimage/hatched_screen.gen.go rename to macos/coreimage/hatched_screen_protocol.gen.go index a880e14c..4d54764d 100644 --- a/macos/coreimage/hatched_screen.gen.go +++ b/macos/coreimage/hatched_screen_protocol.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package coreimage @@ -11,30 +11,14 @@ import ( // // [Full Topic]: https://developer.apple.com/documentation/coreimage/cihatchedscreen?language=objc type PHatchedScreen interface { - // optional - SetWidth(value float64) - HasSetWidth() bool - - // optional - Width() float64 - HasWidth() bool - // optional SetInputImage(value Image) HasSetInputImage() bool // optional - InputImage() IImage + InputImage() Image HasInputImage() bool - // optional - SetSharpness(value float64) - HasSetSharpness() bool - - // optional - Sharpness() float64 - HasSharpness() bool - // optional SetAngle(value float64) HasSetAngle() bool @@ -43,6 +27,14 @@ type PHatchedScreen interface { Angle() float64 HasAngle() bool + // optional + SetWidth(value float64) + HasSetWidth() bool + + // optional + Width() float64 + HasWidth() bool + // optional SetCenter(value coregraphics.Point) HasSetCenter() bool @@ -50,124 +42,135 @@ type PHatchedScreen interface { // optional Center() coregraphics.Point HasCenter() bool -} -// A concrete type wrapper for the [PHatchedScreen] protocol. -type HatchedScreenWrapper struct { - objc.Object -} - -func (h_ HatchedScreenWrapper) HasSetWidth() bool { - return h_.RespondsToSelector(objc.Sel("setWidth:")) -} + // optional + SetSharpness(value float64) + HasSetSharpness() bool -// The distance between lines in the pattern. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/coreimage/cihatchedscreen/3228485-width?language=objc -func (h_ HatchedScreenWrapper) SetWidth(value float64) { - objc.Call[objc.Void](h_, objc.Sel("setWidth:"), value) + // optional + Sharpness() float64 + HasSharpness() bool } -func (h_ HatchedScreenWrapper) HasWidth() bool { - return h_.RespondsToSelector(objc.Sel("width")) -} +// ensure impl type implements protocol interface +var _ PHatchedScreen = (*HatchedScreenObject)(nil) -// The distance between lines in the pattern. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/coreimage/cihatchedscreen/3228485-width?language=objc -func (h_ HatchedScreenWrapper) Width() float64 { - rv := objc.Call[float64](h_, objc.Sel("width")) - return rv +// A concrete type for the [PHatchedScreen] protocol. +type HatchedScreenObject struct { + objc.Object } -func (h_ HatchedScreenWrapper) HasSetInputImage() bool { +func (h_ HatchedScreenObject) HasSetInputImage() bool { return h_.RespondsToSelector(objc.Sel("setInputImage:")) } // The image to use as an input image. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/coreimage/cihatchedscreen/3228483-inputimage?language=objc -func (h_ HatchedScreenWrapper) SetInputImage(value IImage) { +func (h_ HatchedScreenObject) SetInputImage(value Image) { objc.Call[objc.Void](h_, objc.Sel("setInputImage:"), objc.Ptr(value)) } -func (h_ HatchedScreenWrapper) HasInputImage() bool { +func (h_ HatchedScreenObject) HasInputImage() bool { return h_.RespondsToSelector(objc.Sel("inputImage")) } // The image to use as an input image. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/coreimage/cihatchedscreen/3228483-inputimage?language=objc -func (h_ HatchedScreenWrapper) InputImage() Image { +func (h_ HatchedScreenObject) InputImage() Image { rv := objc.Call[Image](h_, objc.Sel("inputImage")) return rv } -func (h_ HatchedScreenWrapper) HasSetSharpness() bool { - return h_.RespondsToSelector(objc.Sel("setSharpness:")) +func (h_ HatchedScreenObject) HasSetAngle() bool { + return h_.RespondsToSelector(objc.Sel("setAngle:")) } -// The amount of sharpening to apply. [Full Topic] +// The angle of the pattern. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/cihatchedscreen/3228484-sharpness?language=objc -func (h_ HatchedScreenWrapper) SetSharpness(value float64) { - objc.Call[objc.Void](h_, objc.Sel("setSharpness:"), value) +// [Full Topic]: https://developer.apple.com/documentation/coreimage/cihatchedscreen/3228481-angle?language=objc +func (h_ HatchedScreenObject) SetAngle(value float64) { + objc.Call[objc.Void](h_, objc.Sel("setAngle:"), value) } -func (h_ HatchedScreenWrapper) HasSharpness() bool { - return h_.RespondsToSelector(objc.Sel("sharpness")) +func (h_ HatchedScreenObject) HasAngle() bool { + return h_.RespondsToSelector(objc.Sel("angle")) } -// The amount of sharpening to apply. [Full Topic] +// The angle of the pattern. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/cihatchedscreen/3228484-sharpness?language=objc -func (h_ HatchedScreenWrapper) Sharpness() float64 { - rv := objc.Call[float64](h_, objc.Sel("sharpness")) +// [Full Topic]: https://developer.apple.com/documentation/coreimage/cihatchedscreen/3228481-angle?language=objc +func (h_ HatchedScreenObject) Angle() float64 { + rv := objc.Call[float64](h_, objc.Sel("angle")) return rv } -func (h_ HatchedScreenWrapper) HasSetAngle() bool { - return h_.RespondsToSelector(objc.Sel("setAngle:")) +func (h_ HatchedScreenObject) HasSetWidth() bool { + return h_.RespondsToSelector(objc.Sel("setWidth:")) } -// The angle of the pattern. [Full Topic] +// The distance between lines in the pattern. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/cihatchedscreen/3228481-angle?language=objc -func (h_ HatchedScreenWrapper) SetAngle(value float64) { - objc.Call[objc.Void](h_, objc.Sel("setAngle:"), value) +// [Full Topic]: https://developer.apple.com/documentation/coreimage/cihatchedscreen/3228485-width?language=objc +func (h_ HatchedScreenObject) SetWidth(value float64) { + objc.Call[objc.Void](h_, objc.Sel("setWidth:"), value) } -func (h_ HatchedScreenWrapper) HasAngle() bool { - return h_.RespondsToSelector(objc.Sel("angle")) +func (h_ HatchedScreenObject) HasWidth() bool { + return h_.RespondsToSelector(objc.Sel("width")) } -// The angle of the pattern. [Full Topic] +// The distance between lines in the pattern. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/cihatchedscreen/3228481-angle?language=objc -func (h_ HatchedScreenWrapper) Angle() float64 { - rv := objc.Call[float64](h_, objc.Sel("angle")) +// [Full Topic]: https://developer.apple.com/documentation/coreimage/cihatchedscreen/3228485-width?language=objc +func (h_ HatchedScreenObject) Width() float64 { + rv := objc.Call[float64](h_, objc.Sel("width")) return rv } -func (h_ HatchedScreenWrapper) HasSetCenter() bool { +func (h_ HatchedScreenObject) HasSetCenter() bool { return h_.RespondsToSelector(objc.Sel("setCenter:")) } // The x and y position to use as the center of the hatched screen pattern. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/coreimage/cihatchedscreen/3228482-center?language=objc -func (h_ HatchedScreenWrapper) SetCenter(value coregraphics.Point) { +func (h_ HatchedScreenObject) SetCenter(value coregraphics.Point) { objc.Call[objc.Void](h_, objc.Sel("setCenter:"), value) } -func (h_ HatchedScreenWrapper) HasCenter() bool { +func (h_ HatchedScreenObject) HasCenter() bool { return h_.RespondsToSelector(objc.Sel("center")) } // The x and y position to use as the center of the hatched screen pattern. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/coreimage/cihatchedscreen/3228482-center?language=objc -func (h_ HatchedScreenWrapper) Center() coregraphics.Point { +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 float64) { + 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() float64 { + rv := objc.Call[float64](h_, objc.Sel("sharpness")) + return rv +} diff --git a/macos/coreimage/height_field_from_mask.gen.go b/macos/coreimage/height_field_from_mask_protocol.gen.go similarity index 69% rename from macos/coreimage/height_field_from_mask.gen.go rename to macos/coreimage/height_field_from_mask_protocol.gen.go index 309ac955..c2be52c9 100644 --- a/macos/coreimage/height_field_from_mask.gen.go +++ b/macos/coreimage/height_field_from_mask_protocol.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package coreimage @@ -10,14 +10,6 @@ import ( // // [Full Topic]: https://developer.apple.com/documentation/coreimage/ciheightfieldfrommask?language=objc type PHeightFieldFromMask interface { - // optional - SetInputImage(value Image) - HasSetInputImage() bool - - // optional - InputImage() IImage - HasInputImage() bool - // optional SetRadius(value float64) HasSetRadius() bool @@ -25,55 +17,66 @@ type PHeightFieldFromMask interface { // optional Radius() float64 HasRadius() bool + + // optional + SetInputImage(value Image) + HasSetInputImage() bool + + // optional + InputImage() Image + HasInputImage() bool } -// A concrete type wrapper for the [PHeightFieldFromMask] protocol. -type HeightFieldFromMaskWrapper struct { +// ensure impl type implements protocol interface +var _ PHeightFieldFromMask = (*HeightFieldFromMaskObject)(nil) + +// A concrete type for the [PHeightFieldFromMask] protocol. +type HeightFieldFromMaskObject struct { objc.Object } -func (h_ HeightFieldFromMaskWrapper) HasSetInputImage() bool { - return h_.RespondsToSelector(objc.Sel("setInputImage:")) +func (h_ HeightFieldFromMaskObject) HasSetRadius() bool { + return h_.RespondsToSelector(objc.Sel("setRadius:")) } -// The image to use as an input image. [Full Topic] +// The length of the height-field transition. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/ciheightfieldfrommask/3228487-inputimage?language=objc -func (h_ HeightFieldFromMaskWrapper) SetInputImage(value IImage) { - objc.Call[objc.Void](h_, objc.Sel("setInputImage:"), objc.Ptr(value)) +// [Full Topic]: https://developer.apple.com/documentation/coreimage/ciheightfieldfrommask/3228488-radius?language=objc +func (h_ HeightFieldFromMaskObject) SetRadius(value float64) { + objc.Call[objc.Void](h_, objc.Sel("setRadius:"), value) } -func (h_ HeightFieldFromMaskWrapper) HasInputImage() bool { - return h_.RespondsToSelector(objc.Sel("inputImage")) +func (h_ HeightFieldFromMaskObject) HasRadius() bool { + return h_.RespondsToSelector(objc.Sel("radius")) } -// The image to use as an input image. [Full Topic] +// The length of the height-field transition. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/ciheightfieldfrommask/3228487-inputimage?language=objc -func (h_ HeightFieldFromMaskWrapper) InputImage() Image { - rv := objc.Call[Image](h_, objc.Sel("inputImage")) +// [Full Topic]: https://developer.apple.com/documentation/coreimage/ciheightfieldfrommask/3228488-radius?language=objc +func (h_ HeightFieldFromMaskObject) Radius() float64 { + rv := objc.Call[float64](h_, objc.Sel("radius")) return rv } -func (h_ HeightFieldFromMaskWrapper) HasSetRadius() bool { - return h_.RespondsToSelector(objc.Sel("setRadius:")) +func (h_ HeightFieldFromMaskObject) HasSetInputImage() bool { + return h_.RespondsToSelector(objc.Sel("setInputImage:")) } -// The length of the height-field transition. [Full Topic] +// The image to use as an input image. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/ciheightfieldfrommask/3228488-radius?language=objc -func (h_ HeightFieldFromMaskWrapper) SetRadius(value float64) { - objc.Call[objc.Void](h_, objc.Sel("setRadius:"), value) +// [Full Topic]: https://developer.apple.com/documentation/coreimage/ciheightfieldfrommask/3228487-inputimage?language=objc +func (h_ HeightFieldFromMaskObject) SetInputImage(value Image) { + objc.Call[objc.Void](h_, objc.Sel("setInputImage:"), objc.Ptr(value)) } -func (h_ HeightFieldFromMaskWrapper) HasRadius() bool { - return h_.RespondsToSelector(objc.Sel("radius")) +func (h_ HeightFieldFromMaskObject) HasInputImage() bool { + return h_.RespondsToSelector(objc.Sel("inputImage")) } -// The length of the height-field transition. [Full Topic] +// The image to use as an input image. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/ciheightfieldfrommask/3228488-radius?language=objc -func (h_ HeightFieldFromMaskWrapper) Radius() float64 { - rv := objc.Call[float64](h_, objc.Sel("radius")) +// [Full Topic]: https://developer.apple.com/documentation/coreimage/ciheightfieldfrommask/3228487-inputimage?language=objc +func (h_ HeightFieldFromMaskObject) InputImage() Image { + rv := objc.Call[Image](h_, objc.Sel("inputImage")) return rv } diff --git a/macos/coreimage/hexagonal_pixellate.gen.go b/macos/coreimage/hexagonal_pixellate_protocol.gen.go similarity index 71% rename from macos/coreimage/hexagonal_pixellate.gen.go rename to macos/coreimage/hexagonal_pixellate_protocol.gen.go index 90346980..00cb2361 100644 --- a/macos/coreimage/hexagonal_pixellate.gen.go +++ b/macos/coreimage/hexagonal_pixellate_protocol.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package coreimage @@ -11,6 +11,14 @@ 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 float64) HasSetScale() bool @@ -24,88 +32,83 @@ type PHexagonalPixellate interface { HasSetInputImage() bool // optional - InputImage() IImage + InputImage() Image HasInputImage() bool +} - // optional - SetCenter(value coregraphics.Point) - HasSetCenter() bool +// ensure impl type implements protocol interface +var _ PHexagonalPixellate = (*HexagonalPixellateObject)(nil) - // optional - Center() coregraphics.Point - HasCenter() bool +// A concrete type for the [PHexagonalPixellate] protocol. +type HexagonalPixellateObject struct { + objc.Object } -// A concrete type wrapper for the [PHexagonalPixellate] protocol. -type HexagonalPixellateWrapper 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")) } -func (h_ HexagonalPixellateWrapper) HasSetScale() bool { +// 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:")) } // The size of the hexagons. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/coreimage/cihexagonalpixellate/3228492-scale?language=objc -func (h_ HexagonalPixellateWrapper) SetScale(value float64) { +func (h_ HexagonalPixellateObject) SetScale(value float64) { objc.Call[objc.Void](h_, objc.Sel("setScale:"), value) } -func (h_ HexagonalPixellateWrapper) HasScale() bool { +func (h_ HexagonalPixellateObject) HasScale() bool { return h_.RespondsToSelector(objc.Sel("scale")) } // The size of the hexagons. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/coreimage/cihexagonalpixellate/3228492-scale?language=objc -func (h_ HexagonalPixellateWrapper) Scale() float64 { +func (h_ HexagonalPixellateObject) Scale() float64 { rv := objc.Call[float64](h_, objc.Sel("scale")) return rv } -func (h_ HexagonalPixellateWrapper) HasSetInputImage() bool { +func (h_ HexagonalPixellateObject) HasSetInputImage() bool { return h_.RespondsToSelector(objc.Sel("setInputImage:")) } // The image to use as an input image. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/coreimage/cihexagonalpixellate/3228491-inputimage?language=objc -func (h_ HexagonalPixellateWrapper) SetInputImage(value IImage) { +func (h_ HexagonalPixellateObject) SetInputImage(value Image) { objc.Call[objc.Void](h_, objc.Sel("setInputImage:"), objc.Ptr(value)) } -func (h_ HexagonalPixellateWrapper) HasInputImage() bool { +func (h_ HexagonalPixellateObject) HasInputImage() bool { return h_.RespondsToSelector(objc.Sel("inputImage")) } // The image to use as an input image. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/coreimage/cihexagonalpixellate/3228491-inputimage?language=objc -func (h_ HexagonalPixellateWrapper) InputImage() Image { +func (h_ HexagonalPixellateObject) InputImage() Image { rv := objc.Call[Image](h_, objc.Sel("inputImage")) return rv } - -func (h_ HexagonalPixellateWrapper) 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_ HexagonalPixellateWrapper) SetCenter(value coregraphics.Point) { - objc.Call[objc.Void](h_, objc.Sel("setCenter:"), value) -} - -func (h_ HexagonalPixellateWrapper) 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_ HexagonalPixellateWrapper) Center() coregraphics.Point { - rv := objc.Call[coregraphics.Point](h_, objc.Sel("center")) - return rv -} diff --git a/macos/coreimage/highlight_shadow_adjust.gen.go b/macos/coreimage/highlight_shadow_adjust_protocol.gen.go similarity index 71% rename from macos/coreimage/highlight_shadow_adjust.gen.go rename to macos/coreimage/highlight_shadow_adjust_protocol.gen.go index ca92b86f..77a73299 100644 --- a/macos/coreimage/highlight_shadow_adjust.gen.go +++ b/macos/coreimage/highlight_shadow_adjust_protocol.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package coreimage @@ -11,20 +11,20 @@ import ( // [Full Topic]: https://developer.apple.com/documentation/coreimage/cihighlightshadowadjust?language=objc type PHighlightShadowAdjust interface { // optional - SetInputImage(value Image) - HasSetInputImage() bool + SetHighlightAmount(value float64) + HasSetHighlightAmount() bool // optional - InputImage() IImage - HasInputImage() bool + HighlightAmount() float64 + HasHighlightAmount() bool // optional - SetShadowAmount(value float64) - HasSetShadowAmount() bool + SetInputImage(value Image) + HasSetInputImage() bool // optional - ShadowAmount() float64 - HasShadowAmount() bool + InputImage() Image + HasInputImage() bool // optional SetRadius(value float64) @@ -35,107 +35,110 @@ type PHighlightShadowAdjust interface { HasRadius() bool // optional - SetHighlightAmount(value float64) - HasSetHighlightAmount() bool + SetShadowAmount(value float64) + HasSetShadowAmount() bool // optional - HighlightAmount() float64 - HasHighlightAmount() bool + ShadowAmount() float64 + HasShadowAmount() bool } -// A concrete type wrapper for the [PHighlightShadowAdjust] protocol. -type HighlightShadowAdjustWrapper struct { +// ensure impl type implements protocol interface +var _ PHighlightShadowAdjust = (*HighlightShadowAdjustObject)(nil) + +// A concrete type for the [PHighlightShadowAdjust] protocol. +type HighlightShadowAdjustObject struct { objc.Object } -func (h_ HighlightShadowAdjustWrapper) HasSetInputImage() bool { - return h_.RespondsToSelector(objc.Sel("setInputImage:")) +func (h_ HighlightShadowAdjustObject) HasSetHighlightAmount() bool { + return h_.RespondsToSelector(objc.Sel("setHighlightAmount:")) } -// The image to use as an input image. [Full Topic] +// The amount of adjustment to the highlights in the image. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/cihighlightshadowadjust/3228495-inputimage?language=objc -func (h_ HighlightShadowAdjustWrapper) SetInputImage(value IImage) { - objc.Call[objc.Void](h_, objc.Sel("setInputImage:"), objc.Ptr(value)) +// [Full Topic]: https://developer.apple.com/documentation/coreimage/cihighlightshadowadjust/3228494-highlightamount?language=objc +func (h_ HighlightShadowAdjustObject) SetHighlightAmount(value float64) { + objc.Call[objc.Void](h_, objc.Sel("setHighlightAmount:"), value) } -func (h_ HighlightShadowAdjustWrapper) HasInputImage() bool { - return h_.RespondsToSelector(objc.Sel("inputImage")) +func (h_ HighlightShadowAdjustObject) HasHighlightAmount() bool { + return h_.RespondsToSelector(objc.Sel("highlightAmount")) } -// The image to use as an input image. [Full Topic] +// The amount of adjustment to the highlights in the image. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/cihighlightshadowadjust/3228495-inputimage?language=objc -func (h_ HighlightShadowAdjustWrapper) InputImage() Image { - rv := objc.Call[Image](h_, objc.Sel("inputImage")) +// [Full Topic]: https://developer.apple.com/documentation/coreimage/cihighlightshadowadjust/3228494-highlightamount?language=objc +func (h_ HighlightShadowAdjustObject) HighlightAmount() float64 { + rv := objc.Call[float64](h_, objc.Sel("highlightAmount")) return rv } -func (h_ HighlightShadowAdjustWrapper) HasSetShadowAmount() bool { - return h_.RespondsToSelector(objc.Sel("setShadowAmount:")) +func (h_ HighlightShadowAdjustObject) HasSetInputImage() bool { + return h_.RespondsToSelector(objc.Sel("setInputImage:")) } -// The amount of adjustment to the shadows in the image. [Full Topic] +// The image to use as an input image. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/cihighlightshadowadjust/3228497-shadowamount?language=objc -func (h_ HighlightShadowAdjustWrapper) SetShadowAmount(value float64) { - objc.Call[objc.Void](h_, objc.Sel("setShadowAmount:"), value) +// [Full Topic]: https://developer.apple.com/documentation/coreimage/cihighlightshadowadjust/3228495-inputimage?language=objc +func (h_ HighlightShadowAdjustObject) SetInputImage(value Image) { + objc.Call[objc.Void](h_, objc.Sel("setInputImage:"), objc.Ptr(value)) } -func (h_ HighlightShadowAdjustWrapper) HasShadowAmount() bool { - return h_.RespondsToSelector(objc.Sel("shadowAmount")) +func (h_ HighlightShadowAdjustObject) HasInputImage() bool { + return h_.RespondsToSelector(objc.Sel("inputImage")) } -// The amount of adjustment to the shadows in the image. [Full Topic] +// The image to use as an input image. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/cihighlightshadowadjust/3228497-shadowamount?language=objc -func (h_ HighlightShadowAdjustWrapper) ShadowAmount() float64 { - rv := objc.Call[float64](h_, objc.Sel("shadowAmount")) +// [Full Topic]: https://developer.apple.com/documentation/coreimage/cihighlightshadowadjust/3228495-inputimage?language=objc +func (h_ HighlightShadowAdjustObject) InputImage() Image { + rv := objc.Call[Image](h_, objc.Sel("inputImage")) return rv } -func (h_ HighlightShadowAdjustWrapper) HasSetRadius() bool { +func (h_ HighlightShadowAdjustObject) HasSetRadius() bool { return h_.RespondsToSelector(objc.Sel("setRadius:")) } // The shadow highlight radius. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/coreimage/cihighlightshadowadjust/3228496-radius?language=objc -func (h_ HighlightShadowAdjustWrapper) SetRadius(value float64) { +func (h_ HighlightShadowAdjustObject) SetRadius(value float64) { objc.Call[objc.Void](h_, objc.Sel("setRadius:"), value) } -func (h_ HighlightShadowAdjustWrapper) HasRadius() bool { +func (h_ HighlightShadowAdjustObject) HasRadius() bool { return h_.RespondsToSelector(objc.Sel("radius")) } // The shadow highlight radius. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/coreimage/cihighlightshadowadjust/3228496-radius?language=objc -func (h_ HighlightShadowAdjustWrapper) Radius() float64 { +func (h_ HighlightShadowAdjustObject) Radius() float64 { rv := objc.Call[float64](h_, objc.Sel("radius")) return rv } -func (h_ HighlightShadowAdjustWrapper) HasSetHighlightAmount() bool { - return h_.RespondsToSelector(objc.Sel("setHighlightAmount:")) +func (h_ HighlightShadowAdjustObject) HasSetShadowAmount() bool { + return h_.RespondsToSelector(objc.Sel("setShadowAmount:")) } -// The amount of adjustment to the highlights in the image. [Full Topic] +// The amount of adjustment to the shadows in the image. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/cihighlightshadowadjust/3228494-highlightamount?language=objc -func (h_ HighlightShadowAdjustWrapper) SetHighlightAmount(value float64) { - objc.Call[objc.Void](h_, objc.Sel("setHighlightAmount:"), value) +// [Full Topic]: https://developer.apple.com/documentation/coreimage/cihighlightshadowadjust/3228497-shadowamount?language=objc +func (h_ HighlightShadowAdjustObject) SetShadowAmount(value float64) { + objc.Call[objc.Void](h_, objc.Sel("setShadowAmount:"), value) } -func (h_ HighlightShadowAdjustWrapper) HasHighlightAmount() bool { - return h_.RespondsToSelector(objc.Sel("highlightAmount")) +func (h_ HighlightShadowAdjustObject) HasShadowAmount() bool { + return h_.RespondsToSelector(objc.Sel("shadowAmount")) } -// The amount of adjustment to the highlights in the image. [Full Topic] +// The amount of adjustment to the shadows in the image. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/cihighlightshadowadjust/3228494-highlightamount?language=objc -func (h_ HighlightShadowAdjustWrapper) HighlightAmount() float64 { - rv := objc.Call[float64](h_, objc.Sel("highlightAmount")) +// [Full Topic]: https://developer.apple.com/documentation/coreimage/cihighlightshadowadjust/3228497-shadowamount?language=objc +func (h_ HighlightShadowAdjustObject) ShadowAmount() float64 { + rv := objc.Call[float64](h_, objc.Sel("shadowAmount")) return rv } diff --git a/macos/coreimage/histogram_display.gen.go b/macos/coreimage/histogram_display_protocol.gen.go similarity index 70% rename from macos/coreimage/histogram_display.gen.go rename to macos/coreimage/histogram_display_protocol.gen.go index 4ad0a624..ee92ef84 100644 --- a/macos/coreimage/histogram_display.gen.go +++ b/macos/coreimage/histogram_display_protocol.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package coreimage @@ -11,20 +11,12 @@ import ( // [Full Topic]: https://developer.apple.com/documentation/coreimage/cihistogramdisplay?language=objc type PHistogramDisplay interface { // optional - SetInputImage(value Image) - HasSetInputImage() bool - - // optional - InputImage() IImage - HasInputImage() bool - - // optional - SetHeight(value float64) - HasSetHeight() bool + SetLowLimit(value float64) + HasSetLowLimit() bool // optional - Height() float64 - HasHeight() bool + LowLimit() float64 + HasLowLimit() bool // optional SetHighLimit(value float64) @@ -35,107 +27,118 @@ type PHistogramDisplay interface { HasHighLimit() bool // optional - SetLowLimit(value float64) - HasSetLowLimit() bool + SetInputImage(value Image) + HasSetInputImage() bool // optional - LowLimit() float64 - HasLowLimit() bool + InputImage() Image + HasInputImage() bool + + // optional + SetHeight(value float64) + HasSetHeight() bool + + // optional + Height() float64 + HasHeight() bool } -// A concrete type wrapper for the [PHistogramDisplay] protocol. -type HistogramDisplayWrapper struct { +// ensure impl type implements protocol interface +var _ PHistogramDisplay = (*HistogramDisplayObject)(nil) + +// A concrete type for the [PHistogramDisplay] protocol. +type HistogramDisplayObject struct { objc.Object } -func (h_ HistogramDisplayWrapper) HasSetInputImage() bool { - return h_.RespondsToSelector(objc.Sel("setInputImage:")) +func (h_ HistogramDisplayObject) HasSetLowLimit() bool { + return h_.RespondsToSelector(objc.Sel("setLowLimit:")) } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/cihistogramdisplay/3547127-inputimage?language=objc -func (h_ HistogramDisplayWrapper) SetInputImage(value IImage) { - objc.Call[objc.Void](h_, objc.Sel("setInputImage:"), objc.Ptr(value)) +// [Full Topic]: https://developer.apple.com/documentation/coreimage/cihistogramdisplay/3547128-lowlimit?language=objc +func (h_ HistogramDisplayObject) SetLowLimit(value float64) { + objc.Call[objc.Void](h_, objc.Sel("setLowLimit:"), value) } -func (h_ HistogramDisplayWrapper) HasInputImage() bool { - return h_.RespondsToSelector(objc.Sel("inputImage")) +func (h_ HistogramDisplayObject) HasLowLimit() bool { + return h_.RespondsToSelector(objc.Sel("lowLimit")) } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/cihistogramdisplay/3547127-inputimage?language=objc -func (h_ HistogramDisplayWrapper) InputImage() Image { - rv := objc.Call[Image](h_, objc.Sel("inputImage")) +// [Full Topic]: https://developer.apple.com/documentation/coreimage/cihistogramdisplay/3547128-lowlimit?language=objc +func (h_ HistogramDisplayObject) LowLimit() float64 { + rv := objc.Call[float64](h_, objc.Sel("lowLimit")) return rv } -func (h_ HistogramDisplayWrapper) HasSetHeight() bool { - return h_.RespondsToSelector(objc.Sel("setHeight:")) +func (h_ HistogramDisplayObject) HasSetHighLimit() bool { + return h_.RespondsToSelector(objc.Sel("setHighLimit:")) } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/cihistogramdisplay/3547125-height?language=objc -func (h_ HistogramDisplayWrapper) SetHeight(value float64) { - objc.Call[objc.Void](h_, objc.Sel("setHeight:"), value) +// [Full Topic]: https://developer.apple.com/documentation/coreimage/cihistogramdisplay/3547126-highlimit?language=objc +func (h_ HistogramDisplayObject) SetHighLimit(value float64) { + objc.Call[objc.Void](h_, objc.Sel("setHighLimit:"), value) } -func (h_ HistogramDisplayWrapper) HasHeight() bool { - return h_.RespondsToSelector(objc.Sel("height")) +func (h_ HistogramDisplayObject) HasHighLimit() bool { + return h_.RespondsToSelector(objc.Sel("highLimit")) } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/cihistogramdisplay/3547125-height?language=objc -func (h_ HistogramDisplayWrapper) Height() float64 { - rv := objc.Call[float64](h_, objc.Sel("height")) +// [Full Topic]: https://developer.apple.com/documentation/coreimage/cihistogramdisplay/3547126-highlimit?language=objc +func (h_ HistogramDisplayObject) HighLimit() float64 { + rv := objc.Call[float64](h_, objc.Sel("highLimit")) return rv } -func (h_ HistogramDisplayWrapper) HasSetHighLimit() bool { - return h_.RespondsToSelector(objc.Sel("setHighLimit:")) +func (h_ HistogramDisplayObject) HasSetInputImage() bool { + return h_.RespondsToSelector(objc.Sel("setInputImage:")) } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/cihistogramdisplay/3547126-highlimit?language=objc -func (h_ HistogramDisplayWrapper) SetHighLimit(value float64) { - objc.Call[objc.Void](h_, objc.Sel("setHighLimit:"), 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:"), objc.Ptr(value)) } -func (h_ HistogramDisplayWrapper) HasHighLimit() bool { - return h_.RespondsToSelector(objc.Sel("highLimit")) +func (h_ HistogramDisplayObject) HasInputImage() bool { + return h_.RespondsToSelector(objc.Sel("inputImage")) } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/cihistogramdisplay/3547126-highlimit?language=objc -func (h_ HistogramDisplayWrapper) HighLimit() float64 { - rv := objc.Call[float64](h_, objc.Sel("highLimit")) +// [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_ HistogramDisplayWrapper) HasSetLowLimit() bool { - return h_.RespondsToSelector(objc.Sel("setLowLimit:")) +func (h_ HistogramDisplayObject) HasSetHeight() bool { + return h_.RespondsToSelector(objc.Sel("setHeight:")) } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/cihistogramdisplay/3547128-lowlimit?language=objc -func (h_ HistogramDisplayWrapper) SetLowLimit(value float64) { - objc.Call[objc.Void](h_, objc.Sel("setLowLimit:"), value) +// [Full Topic]: https://developer.apple.com/documentation/coreimage/cihistogramdisplay/3547125-height?language=objc +func (h_ HistogramDisplayObject) SetHeight(value float64) { + objc.Call[objc.Void](h_, objc.Sel("setHeight:"), value) } -func (h_ HistogramDisplayWrapper) HasLowLimit() bool { - return h_.RespondsToSelector(objc.Sel("lowLimit")) +func (h_ HistogramDisplayObject) HasHeight() bool { + return h_.RespondsToSelector(objc.Sel("height")) } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/cihistogramdisplay/3547128-lowlimit?language=objc -func (h_ HistogramDisplayWrapper) LowLimit() float64 { - rv := objc.Call[float64](h_, objc.Sel("lowLimit")) +// [Full Topic]: https://developer.apple.com/documentation/coreimage/cihistogramdisplay/3547125-height?language=objc +func (h_ HistogramDisplayObject) Height() float64 { + rv := objc.Call[float64](h_, objc.Sel("height")) return rv } diff --git a/macos/coreimage/hole_distortion.gen.go b/macos/coreimage/hole_distortion_protocol.gen.go similarity index 70% rename from macos/coreimage/hole_distortion.gen.go rename to macos/coreimage/hole_distortion_protocol.gen.go index 1a7ecfe7..c68e51ae 100644 --- a/macos/coreimage/hole_distortion.gen.go +++ b/macos/coreimage/hole_distortion_protocol.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package coreimage @@ -12,12 +12,12 @@ import ( // [Full Topic]: https://developer.apple.com/documentation/coreimage/ciholedistortion?language=objc type PHoleDistortion interface { // optional - SetInputImage(value Image) - HasSetInputImage() bool + SetCenter(value coregraphics.Point) + HasSetCenter() bool // optional - InputImage() IImage - HasInputImage() bool + Center() coregraphics.Point + HasCenter() bool // optional SetRadius(value float64) @@ -28,84 +28,87 @@ type PHoleDistortion interface { HasRadius() bool // optional - SetCenter(value coregraphics.Point) - HasSetCenter() bool + SetInputImage(value Image) + HasSetInputImage() bool // optional - Center() coregraphics.Point - HasCenter() bool + InputImage() Image + HasInputImage() bool } -// A concrete type wrapper for the [PHoleDistortion] protocol. -type HoleDistortionWrapper struct { +// ensure impl type implements protocol interface +var _ PHoleDistortion = (*HoleDistortionObject)(nil) + +// A concrete type for the [PHoleDistortion] protocol. +type HoleDistortionObject struct { objc.Object } -func (h_ HoleDistortionWrapper) 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_ HoleDistortionWrapper) SetInputImage(value IImage) { - objc.Call[objc.Void](h_, objc.Sel("setInputImage:"), objc.Ptr(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_ HoleDistortionWrapper) 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_ HoleDistortionWrapper) 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 } -func (h_ HoleDistortionWrapper) HasSetRadius() bool { +func (h_ HoleDistortionObject) HasSetRadius() bool { return h_.RespondsToSelector(objc.Sel("setRadius:")) } // [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/coreimage/ciholedistortion/3600169-radius?language=objc -func (h_ HoleDistortionWrapper) SetRadius(value float64) { +func (h_ HoleDistortionObject) SetRadius(value float64) { objc.Call[objc.Void](h_, objc.Sel("setRadius:"), value) } -func (h_ HoleDistortionWrapper) HasRadius() bool { +func (h_ HoleDistortionObject) HasRadius() bool { return h_.RespondsToSelector(objc.Sel("radius")) } // [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/coreimage/ciholedistortion/3600169-radius?language=objc -func (h_ HoleDistortionWrapper) Radius() float64 { +func (h_ HoleDistortionObject) Radius() float64 { rv := objc.Call[float64](h_, objc.Sel("radius")) return rv } -func (h_ HoleDistortionWrapper) 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_ HoleDistortionWrapper) 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:"), objc.Ptr(value)) } -func (h_ HoleDistortionWrapper) 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_ HoleDistortionWrapper) 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 } diff --git a/macos/coreimage/hue_adjust.gen.go b/macos/coreimage/hue_adjust_protocol.gen.go similarity index 72% rename from macos/coreimage/hue_adjust.gen.go rename to macos/coreimage/hue_adjust_protocol.gen.go index e0cae5b8..7f0ae4e8 100644 --- a/macos/coreimage/hue_adjust.gen.go +++ b/macos/coreimage/hue_adjust_protocol.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package coreimage @@ -15,7 +15,7 @@ type PHueAdjust interface { HasSetInputImage() bool // optional - InputImage() IImage + InputImage() Image HasInputImage() bool // optional @@ -27,53 +27,56 @@ type PHueAdjust interface { HasAngle() bool } -// A concrete type wrapper for the [PHueAdjust] protocol. -type HueAdjustWrapper struct { +// ensure impl type implements protocol interface +var _ PHueAdjust = (*HueAdjustObject)(nil) + +// A concrete type for the [PHueAdjust] protocol. +type HueAdjustObject struct { objc.Object } -func (h_ HueAdjustWrapper) HasSetInputImage() bool { +func (h_ HueAdjustObject) HasSetInputImage() bool { return h_.RespondsToSelector(objc.Sel("setInputImage:")) } // The image to use as an input image. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/coreimage/cihueadjust/3228500-inputimage?language=objc -func (h_ HueAdjustWrapper) SetInputImage(value IImage) { +func (h_ HueAdjustObject) SetInputImage(value Image) { objc.Call[objc.Void](h_, objc.Sel("setInputImage:"), objc.Ptr(value)) } -func (h_ HueAdjustWrapper) HasInputImage() bool { +func (h_ HueAdjustObject) HasInputImage() bool { return h_.RespondsToSelector(objc.Sel("inputImage")) } // The image to use as an input image. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/coreimage/cihueadjust/3228500-inputimage?language=objc -func (h_ HueAdjustWrapper) InputImage() Image { +func (h_ HueAdjustObject) InputImage() Image { rv := objc.Call[Image](h_, objc.Sel("inputImage")) return rv } -func (h_ HueAdjustWrapper) HasSetAngle() bool { +func (h_ HueAdjustObject) HasSetAngle() bool { return h_.RespondsToSelector(objc.Sel("setAngle:")) } // An angle, in radians, to use to correct the hue of an image. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/coreimage/cihueadjust/3228499-angle?language=objc -func (h_ HueAdjustWrapper) SetAngle(value float64) { +func (h_ HueAdjustObject) SetAngle(value float64) { objc.Call[objc.Void](h_, objc.Sel("setAngle:"), value) } -func (h_ HueAdjustWrapper) HasAngle() bool { +func (h_ HueAdjustObject) HasAngle() bool { return h_.RespondsToSelector(objc.Sel("angle")) } // An angle, in radians, to use to correct the hue of an image. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/coreimage/cihueadjust/3228499-angle?language=objc -func (h_ HueAdjustWrapper) Angle() float64 { +func (h_ HueAdjustObject) Angle() float64 { rv := objc.Call[float64](h_, objc.Sel("angle")) return rv } diff --git a/macos/coreimage/hue_saturation_value_gradient.gen.go b/macos/coreimage/hue_saturation_value_gradient_protocol.gen.go similarity index 72% rename from macos/coreimage/hue_saturation_value_gradient.gen.go rename to macos/coreimage/hue_saturation_value_gradient_protocol.gen.go index 55f936d0..cca622b0 100644 --- a/macos/coreimage/hue_saturation_value_gradient.gen.go +++ b/macos/coreimage/hue_saturation_value_gradient_protocol.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package coreimage @@ -27,14 +27,6 @@ type PHueSaturationValueGradient interface { Dither() float64 HasDither() bool - // optional - SetColorSpace(value coregraphics.ColorSpaceRef) - HasSetColorSpace() bool - - // optional - ColorSpace() coregraphics.ColorSpaceRef - HasColorSpace() bool - // optional SetRadius(value float64) HasSetRadius() bool @@ -43,6 +35,14 @@ type PHueSaturationValueGradient interface { Radius() float64 HasRadius() bool + // optional + SetColorSpace(value coregraphics.ColorSpaceRef) + HasSetColorSpace() bool + + // optional + ColorSpace() coregraphics.ColorSpaceRef + HasColorSpace() bool + // optional SetSoftness(value float64) HasSetSoftness() bool @@ -52,122 +52,125 @@ type PHueSaturationValueGradient interface { HasSoftness() bool } -// A concrete type wrapper for the [PHueSaturationValueGradient] protocol. -type HueSaturationValueGradientWrapper struct { +// ensure impl type implements protocol interface +var _ PHueSaturationValueGradient = (*HueSaturationValueGradientObject)(nil) + +// A concrete type for the [PHueSaturationValueGradient] protocol. +type HueSaturationValueGradientObject struct { objc.Object } -func (h_ HueSaturationValueGradientWrapper) HasSetValue() bool { +func (h_ HueSaturationValueGradientObject) HasSetValue() bool { return h_.RespondsToSelector(objc.Sel("setValue:")) } // The lightness of the hue-saturation gradient. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/coreimage/cihuesaturationvaluegradient/3228506-value?language=objc -func (h_ HueSaturationValueGradientWrapper) SetValue(value float64) { +func (h_ HueSaturationValueGradientObject) SetValue(value float64) { objc.Call[objc.Void](h_, objc.Sel("setValue:"), value) } -func (h_ HueSaturationValueGradientWrapper) HasValue() bool { +func (h_ HueSaturationValueGradientObject) HasValue() bool { return h_.RespondsToSelector(objc.Sel("value")) } // The lightness of the hue-saturation gradient. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/coreimage/cihuesaturationvaluegradient/3228506-value?language=objc -func (h_ HueSaturationValueGradientWrapper) Value() float64 { +func (h_ HueSaturationValueGradientObject) Value() float64 { rv := objc.Call[float64](h_, objc.Sel("value")) return rv } -func (h_ HueSaturationValueGradientWrapper) HasSetDither() bool { +func (h_ HueSaturationValueGradientObject) HasSetDither() bool { return h_.RespondsToSelector(objc.Sel("setDither:")) } // A Boolean value specifying whether the dither the generated output. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/coreimage/cihuesaturationvaluegradient/3228503-dither?language=objc -func (h_ HueSaturationValueGradientWrapper) SetDither(value float64) { +func (h_ HueSaturationValueGradientObject) SetDither(value float64) { objc.Call[objc.Void](h_, objc.Sel("setDither:"), value) } -func (h_ HueSaturationValueGradientWrapper) HasDither() bool { +func (h_ HueSaturationValueGradientObject) HasDither() bool { return h_.RespondsToSelector(objc.Sel("dither")) } // A Boolean value specifying whether the dither the generated output. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/coreimage/cihuesaturationvaluegradient/3228503-dither?language=objc -func (h_ HueSaturationValueGradientWrapper) Dither() float64 { +func (h_ HueSaturationValueGradientObject) Dither() float64 { rv := objc.Call[float64](h_, objc.Sel("dither")) return rv } -func (h_ HueSaturationValueGradientWrapper) HasSetColorSpace() bool { - return h_.RespondsToSelector(objc.Sel("setColorSpace:")) +func (h_ HueSaturationValueGradientObject) HasSetRadius() bool { + return h_.RespondsToSelector(objc.Sel("setRadius:")) } -// The color space for the generated color wheel. [Full Topic] +// The distance from the center of the effect. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/cihuesaturationvaluegradient/3228502-colorspace?language=objc -func (h_ HueSaturationValueGradientWrapper) SetColorSpace(value coregraphics.ColorSpaceRef) { - objc.Call[objc.Void](h_, objc.Sel("setColorSpace:"), value) +// [Full Topic]: https://developer.apple.com/documentation/coreimage/cihuesaturationvaluegradient/3228504-radius?language=objc +func (h_ HueSaturationValueGradientObject) SetRadius(value float64) { + objc.Call[objc.Void](h_, objc.Sel("setRadius:"), value) } -func (h_ HueSaturationValueGradientWrapper) HasColorSpace() bool { - return h_.RespondsToSelector(objc.Sel("colorSpace")) +func (h_ HueSaturationValueGradientObject) HasRadius() bool { + return h_.RespondsToSelector(objc.Sel("radius")) } -// The color space for the generated color wheel. [Full Topic] +// The distance from the center of the effect. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/cihuesaturationvaluegradient/3228502-colorspace?language=objc -func (h_ HueSaturationValueGradientWrapper) ColorSpace() coregraphics.ColorSpaceRef { - rv := objc.Call[coregraphics.ColorSpaceRef](h_, objc.Sel("colorSpace")) +// [Full Topic]: https://developer.apple.com/documentation/coreimage/cihuesaturationvaluegradient/3228504-radius?language=objc +func (h_ HueSaturationValueGradientObject) Radius() float64 { + rv := objc.Call[float64](h_, objc.Sel("radius")) return rv } -func (h_ HueSaturationValueGradientWrapper) HasSetRadius() bool { - return h_.RespondsToSelector(objc.Sel("setRadius:")) +func (h_ HueSaturationValueGradientObject) HasSetColorSpace() bool { + return h_.RespondsToSelector(objc.Sel("setColorSpace:")) } -// The distance from the center of the effect. [Full Topic] +// The color space for the generated color wheel. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/cihuesaturationvaluegradient/3228504-radius?language=objc -func (h_ HueSaturationValueGradientWrapper) SetRadius(value float64) { - objc.Call[objc.Void](h_, objc.Sel("setRadius:"), value) +// [Full Topic]: https://developer.apple.com/documentation/coreimage/cihuesaturationvaluegradient/3228502-colorspace?language=objc +func (h_ HueSaturationValueGradientObject) SetColorSpace(value coregraphics.ColorSpaceRef) { + objc.Call[objc.Void](h_, objc.Sel("setColorSpace:"), value) } -func (h_ HueSaturationValueGradientWrapper) HasRadius() bool { - return h_.RespondsToSelector(objc.Sel("radius")) +func (h_ HueSaturationValueGradientObject) HasColorSpace() bool { + return h_.RespondsToSelector(objc.Sel("colorSpace")) } -// The distance from the center of the effect. [Full Topic] +// The color space for the generated color wheel. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/cihuesaturationvaluegradient/3228504-radius?language=objc -func (h_ HueSaturationValueGradientWrapper) Radius() float64 { - rv := objc.Call[float64](h_, objc.Sel("radius")) +// [Full Topic]: https://developer.apple.com/documentation/coreimage/cihuesaturationvaluegradient/3228502-colorspace?language=objc +func (h_ HueSaturationValueGradientObject) ColorSpace() coregraphics.ColorSpaceRef { + rv := objc.Call[coregraphics.ColorSpaceRef](h_, objc.Sel("colorSpace")) return rv } -func (h_ HueSaturationValueGradientWrapper) HasSetSoftness() bool { +func (h_ HueSaturationValueGradientObject) HasSetSoftness() bool { return h_.RespondsToSelector(objc.Sel("setSoftness:")) } // The softness of the generated color wheel. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/coreimage/cihuesaturationvaluegradient/3228505-softness?language=objc -func (h_ HueSaturationValueGradientWrapper) SetSoftness(value float64) { +func (h_ HueSaturationValueGradientObject) SetSoftness(value float64) { objc.Call[objc.Void](h_, objc.Sel("setSoftness:"), value) } -func (h_ HueSaturationValueGradientWrapper) HasSoftness() bool { +func (h_ HueSaturationValueGradientObject) HasSoftness() bool { return h_.RespondsToSelector(objc.Sel("softness")) } // The softness of the generated color wheel. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/coreimage/cihuesaturationvaluegradient/3228505-softness?language=objc -func (h_ HueSaturationValueGradientWrapper) Softness() float64 { +func (h_ HueSaturationValueGradientObject) Softness() float64 { rv := objc.Call[float64](h_, objc.Sel("softness")) return rv } diff --git a/macos/coreimage/image.gen.go b/macos/coreimage/image.gen.go index 486f4a40..652b95dd 100644 --- a/macos/coreimage/image.gen.go +++ b/macos/coreimage/image.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package coreimage @@ -24,36 +24,39 @@ type _ImageClass struct { // An interface definition for the [Image] class. type IImage interface { objc.IObject - 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) - ImageByApplyingGaussianBlurWithSigma(sigma float64) Image - ImageByClampingToRect(rect coregraphics.Rect) Image - ImageByUnpremultiplyingAlpha() Image - ImageTransformForOrientation(orientation int) coregraphics.AffineTransform ImageByCompositingOverImage(dest IImage) Image ImageByColorMatchingColorSpaceToWorkingSpace(colorSpace coregraphics.ColorSpaceRef) Image - ImageByClampingToExtent() Image + DrawInRectFromRectOperationFraction(rect foundation.Rect, fromRect foundation.Rect, op objc.IObject, delta float64) + ImageByApplyingCGOrientation(orientation imageio.ImagePropertyOrientation) Image + ImageByUnpremultiplyingAlpha() Image + ImageByClampingToRect(rect coregraphics.Rect) Image ImageByColorMatchingWorkingSpaceToColorSpace(colorSpace coregraphics.ColorSpaceRef) Image + ImageByClampingToExtent() Image + ImageByApplyingTransform(matrix coregraphics.AffineTransform) Image + ImageBySamplingLinear() Image + ImageByApplyingGaussianBlurWithSigma(sigma float64) Image + AutoAdjustmentFiltersWithOptions(options map[ImageAutoAdjustmentOption]objc.IObject) []Filter ImageTransformForCGOrientation(orientation imageio.ImagePropertyOrientation) coregraphics.AffineTransform - ImageByApplyingCGOrientation(orientation imageio.ImagePropertyOrientation) Image - ImageByApplyingFilter(filterName string) Image - ImageByInsertingIntermediate() Image - ImageBySettingProperties(properties foundation.Dictionary) Image - ImageByPremultiplyingAlpha() Image - AutoAdjustmentFilters() []Filter - ImageByCroppingToRect(rect coregraphics.Rect) Image + ImageBySamplingNearest() Image ImageByApplyingTransformHighQualityDownsample(matrix coregraphics.AffineTransform, highQualityDownsample bool) Image - ImageByApplyingOrientation(orientation int) Image + ImageByInsertingIntermediate_(cache bool) Image + ImageByApplyingFilterWithInputParameters(filterName string, params map[string]objc.IObject) Image + AutoAdjustmentFilters() []Filter RegionOfInterestForImageInRect(image IImage, rect coregraphics.Rect) coregraphics.Rect - CGImage() coregraphics.ImageRef + ImageTransformForOrientation(orientation int) coregraphics.AffineTransform + 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 Properties() map[string]objc.Object PixelBuffer() corevideo.PixelBufferRef - ColorSpace() coregraphics.ColorSpaceRef Url() foundation.URL + CGImage() coregraphics.ImageRef Extent() coregraphics.Rect Definition() FilterShape } @@ -71,72 +74,101 @@ func ImageFrom(ptr unsafe.Pointer) Image { } } -func (i_ Image) InitWithCVImageBuffer(imageBuffer corevideo.ImageBufferRef) Image { - rv := objc.Call[Image](i_, objc.Sel("initWithCVImageBuffer:"), imageBuffer) +func (i_ Image) InitWithData(data []byte) Image { + rv := objc.Call[Image](i_, objc.Sel("initWithData:"), data) return rv } -// Initializes an image object from the contents of a Core Video image buffer. [Full Topic] +// Initializes an image object with the supplied image data. [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/1437925-initwithdata?language=objc +func NewImageWithData(data []byte) Image { + instance := ImageClass.Alloc().InitWithData(data) instance.Autorelease() return instance } -func (i_ Image) InitWithIOSurface(surface iosurface.Ref) Image { - rv := objc.Call[Image](i_, objc.Sel("initWithIOSurface:"), surface) +func (i_ Image) InitWithContentsOfURLOptions(url foundation.IURL, options map[ImageOption]objc.IObject) Image { + rv := objc.Call[Image](i_, objc.Sel("initWithContentsOfURL:options:"), objc.Ptr(url), options) return rv } -// Initializes an image with the contents of an IOSurface. [Full Topic] +// 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/1438030-initwithiosurface?language=objc -func NewImageWithIOSurface(surface iosurface.Ref) Image { - instance := ImageClass.Alloc().InitWithIOSurface(surface) +// [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) InitWithBitmapDataBytesPerRowSizeFormatColorSpace(data []byte, bytesPerRow uint, size coregraphics.Size, format Format, colorSpace coregraphics.ColorSpaceRef) Image { - rv := objc.Call[Image](i_, objc.Sel("initWithBitmapData:bytesPerRow:size:format:colorSpace:"), data, bytesPerRow, size, format, colorSpace) +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 with bitmap data. [Full Topic] +// 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/1437857-initwithbitmapdata?language=objc -func NewImageWithBitmapDataBytesPerRowSizeFormatColorSpace(data []byte, bytesPerRow uint, size coregraphics.Size, format Format, colorSpace coregraphics.ColorSpaceRef) Image { - instance := ImageClass.Alloc().InitWithBitmapDataBytesPerRowSizeFormatColorSpace(data, bytesPerRow, size, format, colorSpace) +// [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) InitWithColor(color IColor) Image { - rv := objc.Call[Image](i_, objc.Sel("initWithColor:"), objc.Ptr(color)) +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 of infinite extent whose entire content is the specified color. [Full Topic] +// Initializes an image object with data supplied by a Metal texture. [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/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 } -func (i_ Image) InitWithData(data []byte) Image { - rv := objc.Call[Image](i_, objc.Sel("initWithData:"), data) +func (i_ Image) InitWithCGImage(image coregraphics.ImageRef) Image { + rv := objc.Call[Image](i_, objc.Sel("initWithCGImage:"), image) return rv } -// Initializes an image object with the supplied image data. [Full Topic] +// Initializes an image object with a Quartz 2D image. [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) +// [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) InitWithBitmapDataBytesPerRowSizeFormatColorSpace(data []byte, bytesPerRow uint, size coregraphics.Size, format Format, colorSpace coregraphics.ColorSpaceRef) Image { + rv := objc.Call[Image](i_, objc.Sel("initWithBitmapData:bytesPerRow:size:format:colorSpace:"), data, bytesPerRow, size, format, colorSpace) + return rv +} + +// Initializes an image object with bitmap data. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/coreimage/ciimage/1437857-initwithbitmapdata?language=objc +func NewImageWithBitmapDataBytesPerRowSizeFormatColorSpace(data []byte, bytesPerRow uint, size coregraphics.Size, format Format, colorSpace coregraphics.ColorSpaceRef) Image { + instance := ImageClass.Alloc().InitWithBitmapDataBytesPerRowSizeFormatColorSpace(data, bytesPerRow, size, format, colorSpace) + instance.Autorelease() + 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) + return rv +} + +// Initializes an image object with a Quartz 2D image, using the specified options. [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) instance.Autorelease() return instance } @@ -155,17 +187,30 @@ func NewImageWithBitmapImageRep(bitmapImageRep objc.IObject) Image { 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) 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 data provided by an image provider, using the specified options. [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) instance.Autorelease() return instance } @@ -184,16 +229,58 @@ func NewImageWithContentsOfURL(url foundation.IURL) Image { 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) InitWithCVPixelBuffer(pixelBuffer corevideo.PixelBufferRef) Image { + rv := objc.Call[Image](i_, objc.Sel("initWithCVPixelBuffer:"), pixelBuffer) return rv } -// Initializes an image object with data provided by an image provider, using the specified options. [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/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/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) + return rv +} + +// Initializes an image object with the supplied image data, 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) instance.Autorelease() return instance } @@ -212,30 +299,30 @@ func NewImageWithCGImageSourceIndexOptions(source imageio.ImageSourceRef, index return instance } -func (i_ Image) InitWithCGImage(image coregraphics.ImageRef) Image { - rv := objc.Call[Image](i_, objc.Sel("initWithCGImage:"), image) +func (i_ Image) InitWithCVPixelBufferOptions(pixelBuffer corevideo.PixelBufferRef, options map[ImageOption]objc.IObject) Image { + rv := objc.Call[Image](i_, objc.Sel("initWithCVPixelBuffer:options:"), pixelBuffer, options) return rv } -// Initializes an image object with a Quartz 2D image. [Full Topic] +// Initializes an image object from the contents of a Core Video pixel buffer using the specified options. [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/1438209-initwithcvpixelbuffer?language=objc +func NewImageWithCVPixelBufferOptions(pixelBuffer corevideo.PixelBufferRef, options map[ImageOption]objc.IObject) Image { + instance := ImageClass.Alloc().InitWithCVPixelBufferOptions(pixelBuffer, options) instance.Autorelease() return instance } -func (i_ Image) InitWithCVPixelBuffer(pixelBuffer corevideo.PixelBufferRef) Image { - rv := objc.Call[Image](i_, objc.Sel("initWithCVPixelBuffer:"), pixelBuffer) +func (i_ Image) InitWithColor(color IColor) Image { + rv := objc.Call[Image](i_, objc.Sel("initWithColor:"), objc.Ptr(color)) return rv } -// Initializes an image object from the contents of a Core Video pixel buffer. [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/1438072-initwithcvpixelbuffer?language=objc -func NewImageWithCVPixelBuffer(pixelBuffer corevideo.PixelBufferRef) Image { - instance := ImageClass.Alloc().InitWithCVPixelBuffer(pixelBuffer) +// [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 } @@ -245,10 +332,6 @@ func (ic _ImageClass) Alloc() Image { return rv } -func Image_Alloc() Image { - return ImageClass.Alloc() -} - func (ic _ImageClass) New() Image { rv := objc.Call[Image](ic, objc.Sel("new")) rv.Autorelease() @@ -264,90 +347,135 @@ func (i_ Image) Init() Image { return rv } -// Returns a subset of automatically selected and configured filters for adjusting the image. [Full Topic] +// Creates and returns an image object from bitmap 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) +// [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 from the contents of CVImageBuffer object, using the specified options. [Full Topic] +// Creates and returns an image object from bitmap data. [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) - return rv +// [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) } -// Creates and returns an image object from the contents of CVImageBuffer object, using the specified options. [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/1547028-imagewithcvimagebuffer?language=objc -func Image_ImageWithCVImageBufferOptions(imageBuffer corevideo.ImageBufferRef, options map[ImageOption]objc.IObject) Image { - return ImageClass.ImageWithCVImageBufferOptions(imageBuffer, options) +// [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:"), objc.Ptr(dest)) + 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] +// Creates and returns an image object from a Quartz 2D image using the specified options. [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) +// [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) return rv } -// Creates and returns an image of infinite extent whose entire content is the specified color. [Full Topic] +// Creates and returns an image object from a Quartz 2D image using the specified options. [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:"), objc.Ptr(color)) - return rv +// [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) } -// Creates and returns an image of infinite extent whose entire content is the specified color. [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/1547012-imagewithcolor?language=objc -func Image_ImageWithColor(color IColor) Image { - return ImageClass.ImageWithColor(color) +// [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 } -// Draws all or part of the image at the specified point in the current coordinate system. [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/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, objc.Ptr(op), delta) +// [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, objc.Ptr(op), delta) } -// Samples the image using bilinear interpolation and returns the result. [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/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/2919727-imagebyapplyingcgorientation?language=objc +func (i_ Image) ImageByApplyingCGOrientation(orientation imageio.ImagePropertyOrientation) Image { + rv := objc.Call[Image](i_, objc.Sel("imageByApplyingCGOrientation:"), orientation) return rv } -// Samples the image using nearest-neighbor and returns the result. [Full Topic] +// 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/2867429-imagebysamplingnearest?language=objc -func (i_ Image) ImageBySamplingNearest() Image { - rv := objc.Call[Image](i_, objc.Sel("imageBySamplingNearest")) +// [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 } -// Draws all or part of the image in the specified rectangle in the current coordinate system [Full Topic] +// 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/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, objc.Ptr(op), delta) +// [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) } -// Returns a new image created by applying a Gaussian Blur filter to the image. [Full Topic] +// 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/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/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) 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] +// +// [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) + 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] +// +// [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 +} + +// 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 (ic _ImageClass) ImageWithCGImage(image coregraphics.ImageRef) Image { + rv := objc.Call[Image](ic, objc.Sel("imageWithCGImage:"), image) + 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 @@ -356,53 +484,105 @@ func (i_ Image) ImageByClampingToRect(rect coregraphics.Rect) Image { return rv } -// Creates and returns an image from the contents of an IOSurface. [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/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/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 from the contents of an IOSurface. [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/1547024-imagewithiosurface?language=objc -func Image_ImageWithIOSurface(surface iosurface.Ref) Image { - return ImageClass.ImageWithIOSurface(surface) +// [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 dividing the image’s RGB values by its alpha values. [Full Topic] +// Creates and returns an empty image object. [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")) +// [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 } -// Returns the transformation needed to reorient the image to the specified orientation. [Full Topic] +// Creates and returns an empty image object. [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) +// [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] +// +// [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:"), objc.Ptr(color)) return rv } -// Returns a new image created by compositing the original image over the specified destination image. [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/1437837-imagebycompositingoverimage?language=objc -func (i_ Image) ImageByCompositingOverImage(dest IImage) Image { - rv := objc.Call[Image](i_, objc.Sel("imageByCompositingOverImage:"), objc.Ptr(dest)) +// [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] +// +// [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 } -// Returns a new image created by color matching from the specified color space to the context’s working color space. [Full Topic] +// [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) +// [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] +// +// [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) + 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 (ic _ImageClass) ImageWithIOSurface(surface iosurface.Ref) Image { + rv := objc.Call[Image](ic, objc.Sel("imageWithIOSurface:"), surface) + 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] +// +// [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 } +// 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 @@ -419,111 +599,122 @@ func Image_ImageWithMTLTextureOptions(texture metal.PTexture, options map[ImageO return ImageClass.ImageWithMTLTextureOptions(texture, options) } -// Returns a new image created by making the pixel colors along its edges extend infinitely in all directions. [Full Topic] +// Samples the image using bilinear interpolation and returns the result. [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")) +// [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 initialized with the supplied image data. [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/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/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 initialized with the supplied image 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/1547029-imagewithdata?language=objc -func Image_ImageWithData(data []byte) Image { - return ImageClass.ImageWithData(data) +// [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 the contents of a file. [Full Topic] +// The affine transform for changing the image to the given orientation. [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:"), objc.Ptr(url)) +// [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. [Full Topic] +// Samples the image using nearest-neighbor and returns the result. [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/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 data provided by an image provider. [Full Topic] +// [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/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] +// Returns a new image created by inserting a cacheable intermediate. [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/2966522-imagebyinsertingintermediate?language=objc +func (i_ Image) ImageByInsertingIntermediate_(cache bool) Image { + rv := objc.Call[Image](i_, objc.Sel("imageByInsertingIntermediate:"), cache) + return rv } -// [Full Topic] +// Creates and returns an image object from the contents of CVImageBuffer object. [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/1547007-imagewithcvimagebuffer?language=objc +func (ic _ImageClass) ImageWithCVImageBuffer(imageBuffer corevideo.ImageBufferRef) Image { + rv := objc.Call[Image](ic, objc.Sel("imageWithCVImageBuffer:"), imageBuffer) return rv } -// [Full Topic] +// Creates and returns an image object from the contents of CVImageBuffer object. [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) +// [Full Topic]: https://developer.apple.com/documentation/coreimage/ciimage/1547007-imagewithcvimagebuffer?language=objc +func Image_ImageWithCVImageBuffer(imageBuffer corevideo.ImageBufferRef) Image { + return ImageClass.ImageWithCVImageBuffer(imageBuffer) } -// Returns a new image created by color matching from the context’s working color space to the specified color space. [Full Topic] +// Returns a new image created by applying a filter to the original image with the specified name and parameters. [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) +// [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) return rv } -// 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, using the specified options. [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/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:"), objc.Ptr(url), options) return rv } -// Transforms the original image by a given CGImagePropertyOrientation and returns the result. [Full Topic] +// 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/2919727-imagebyapplyingcgorientation?language=objc -func (i_ Image) ImageByApplyingCGOrientation(orientation imageio.ImagePropertyOrientation) Image { - rv := objc.Call[Image](i_, objc.Sel("imageByApplyingCGOrientation:"), orientation) +// [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] +// +// [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 from a Quartz 2D image. [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/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/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:"), objc.Ptr(image), rect) return rv } -// Creates and returns an image object from a Quartz 2D image. [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/1547025-imagewithcgimage?language=objc -func Image_ImageWithCGImage(image coregraphics.ImageRef) Image { - return ImageClass.ImageWithCGImage(image) +// [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 } // Applies the filter to an image and returns the output. [Full Topic] @@ -534,34 +725,27 @@ func (i_ Image) ImageByApplyingFilter(filterName string) Image { return rv } -// Returns a new image created by inserting an intermediate. [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")) - return rv -} - -// Creates and returns an empty image object. [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/1438023-emptyimage?language=objc -func (ic _ImageClass) EmptyImage() Image { - rv := objc.Call[Image](ic, objc.Sel("emptyImage")) +// [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 } -// Creates and returns an empty image object. [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/1438023-emptyimage?language=objc -func Image_EmptyImage() Image { - return ImageClass.EmptyImage() +// [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 adding the specified metadata properties to the image. [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/1645895-imagebysettingproperties?language=objc -func (i_ Image) ImageBySettingProperties(properties foundation.Dictionary) Image { - rv := objc.Call[Image](i_, objc.Sel("imageBySettingProperties:"), properties) +// [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 } @@ -573,112 +757,140 @@ func (i_ Image) ImageByPremultiplyingAlpha() Image { return rv } -// Returns all possible automatically selected and configured filters for adjusting the image. [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/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/1547005-imagewithcvpixelbuffer?language=objc +func (ic _ImageClass) ImageWithCVPixelBuffer(pixelBuffer corevideo.PixelBufferRef) Image { + rv := objc.Call[Image](ic, objc.Sel("imageWithCVPixelBuffer:"), pixelBuffer) return rv } -// Returns a new image with a cropped portion of the original image. [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/1437833-imagebycroppingtorect?language=objc -func (i_ Image) ImageByCroppingToRect(rect coregraphics.Rect) Image { - rv := objc.Call[Image](i_, objc.Sel("imageByCroppingToRect:"), rect) - return rv +// [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] +// Creates and returns an image object from the contents of a file. [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/1547027-imagewithcontentsofurl?language=objc +func (ic _ImageClass) ImageWithContentsOfURL(url foundation.IURL) Image { + rv := objc.Call[Image](ic, objc.Sel("imageWithContentsOfURL:"), objc.Ptr(url)) return rv } -// Creates and returns an image object from bitmap data. [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/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/1547027-imagewithcontentsofurl?language=objc +func Image_ImageWithContentsOfURL(url foundation.IURL) Image { + return ImageClass.ImageWithContentsOfURL(url) +} + +// Returns a new image created by adding the specified metadata properties to the image. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/coreimage/ciimage/1645895-imagebysettingproperties?language=objc +func (i_ Image) ImageBySettingProperties(properties foundation.Dictionary) Image { + rv := objc.Call[Image](i_, objc.Sel("imageBySettingProperties:"), properties) return rv } -// Creates and returns an image object from bitmap 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/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/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, objc.Ptr(op), delta) } -// Returns a new image created by transforming the original image to the specified EXIF orientation. [Full Topic] +// Returns a new image created by inserting an intermediate. [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) +// [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 } -// Returns the region of interest for the filter chain that generates 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/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:"), objc.Ptr(image), rect) +// [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 } -// Creates and returns an image object from the contents of CVPixelBuffer object. [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/1547005-imagewithcvpixelbuffer?language=objc -func (ic _ImageClass) ImageWithCVPixelBuffer(pixelBuffer corevideo.PixelBufferRef) Image { - rv := objc.Call[Image](ic, objc.Sel("imageWithCVPixelBuffer:"), pixelBuffer) +// [Full Topic]: https://developer.apple.com/documentation/coreimage/ciimage/1547029-imagewithdata?language=objc +func Image_ImageWithData(data []byte) Image { + return ImageClass.ImageWithData(data) +} + +// 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/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 } -// Creates and returns an image object from the contents of CVPixelBuffer object. [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/1547005-imagewithcvpixelbuffer?language=objc -func Image_ImageWithCVPixelBuffer(pixelBuffer corevideo.PixelBufferRef) Image { - return ImageClass.ImageWithCVPixelBuffer(pixelBuffer) +// [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) } -// The CoreGraphics image object this image was created from, if applicable. [Full Topic] +// [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/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/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/3074421-blackimage?language=objc +func Image_BlackImage() Image { + return ImageClass.BlackImage() +} + +// [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/3074424-cyanimage?language=objc -func Image_CyanImage() Image { - return ImageClass.CyanImage() +// [Full Topic]: https://developer.apple.com/documentation/coreimage/ciimage/3074429-whiteimage?language=objc +func Image_WhiteImage() Image { + return ImageClass.WhiteImage() } // [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/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/3074422-blueimage?language=objc -func Image_BlueImage() Image { - return ImageClass.BlueImage() +// [Full Topic]: https://developer.apple.com/documentation/coreimage/ciimage/3074428-redimage?language=objc +func Image_RedImage() Image { + return ImageClass.RedImage() +} + +// 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 } // A dictionary containing metadata about the image. [Full Topic] @@ -691,17 +903,17 @@ func (i_ Image) Properties() map[string]objc.Object { // [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/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/3074428-redimage?language=objc -func Image_RedImage() Image { - return ImageClass.RedImage() +// [Full Topic]: https://developer.apple.com/documentation/coreimage/ciimage/3074430-yellowimage?language=objc +func Image_YellowImage() Image { + return ImageClass.YellowImage() } // The CoreVideo pixel buffer this image was created from, if applicable. [Full Topic] @@ -712,14 +924,6 @@ 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 @@ -730,17 +934,17 @@ func (i_ Image) Url() foundation.URL { // [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/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/3074423-clearimage?language=objc -func Image_ClearImage() Image { - return ImageClass.ClearImage() +// [Full Topic]: https://developer.apple.com/documentation/coreimage/ciimage/3074422-blueimage?language=objc +func Image_BlueImage() Image { + return ImageClass.BlueImage() } // [Full Topic] @@ -760,91 +964,84 @@ func Image_GreenImage() Image { // [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/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/3074430-yellowimage?language=objc -func Image_YellowImage() Image { - return ImageClass.YellowImage() +// [Full Topic]: https://developer.apple.com/documentation/coreimage/ciimage/3074424-cyanimage?language=objc +func Image_CyanImage() Image { + return ImageClass.CyanImage() } -// A rectangle that specifies the extent of the image. [Full Topic] +// The CoreGraphics image object this image was created from, if applicable. [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")) +// [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/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/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/3074421-blackimage?language=objc -func Image_BlackImage() Image { - return ImageClass.BlackImage() +// [Full Topic]: https://developer.apple.com/documentation/coreimage/ciimage/3074423-clearimage?language=objc +func Image_ClearImage() Image { + return ImageClass.ClearImage() } // [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() } -// Returns a filter shape object that represents the domain of definition of the image. [Full Topic] +// A rectangle that specifies the extent of the image. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/ciimage/1437804-definition?language=objc -func (i_ Image) Definition() FilterShape { - rv := objc.Call[FilterShape](i_, objc.Sel("definition")) +// [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] +// Returns a filter shape object that represents the domain of definition of the image. [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/1437804-definition?language=objc +func (i_ Image) Definition() FilterShape { + rv := objc.Call[FilterShape](i_, objc.Sel("definition")) return rv } // [Full Topic] // -// [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")) +// [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/3074429-whiteimage?language=objc -func Image_WhiteImage() Image { - return ImageClass.WhiteImage() +// [Full Topic]: https://developer.apple.com/documentation/coreimage/ciimage/3074425-grayimage?language=objc +func Image_GrayImage() Image { + return ImageClass.GrayImage() } diff --git a/macos/coreimage/image_accumulator.gen.go b/macos/coreimage/image_accumulator.gen.go index 91a4ad5a..a171854c 100644 --- a/macos/coreimage/image_accumulator.gen.go +++ b/macos/coreimage/image_accumulator.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package coreimage @@ -19,11 +19,12 @@ 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() - Image() Image - Extent() coregraphics.Rect Format() Format + Extent() coregraphics.Rect } // An object that manages feedback-based image processing for tasks such as painting or fluid simulation. [Full Topic] @@ -39,20 +40,32 @@ func ImageAccumulatorFrom(ptr unsafe.Pointer) ImageAccumulator { } } -func (i_ ImageAccumulator) InitWithExtentFormat(extent coregraphics.Rect, format Format) ImageAccumulator { - rv := objc.Call[ImageAccumulator](i_, objc.Sel("initWithExtent:format:"), extent, format) +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) return rv } -// Initializes an image accumulator with the specified extent and pixel format. [Full Topic] +// Initializes an image accumulator with the specified extent, pixel format, and color space. [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) +// [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) 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 @@ -65,13 +78,23 @@ func ImageAccumulator_ImageAccumulatorWithExtentFormat(extent coregraphics.Rect, return ImageAccumulatorClass.ImageAccumulatorWithExtentFormat(extent, format) } -func (ic _ImageAccumulatorClass) Alloc() ImageAccumulator { - rv := objc.Call[ImageAccumulator](ic, objc.Sel("alloc")) +func (i_ ImageAccumulator) InitWithExtentFormat(extent coregraphics.Rect, format Format) ImageAccumulator { + rv := objc.Call[ImageAccumulator](i_, objc.Sel("initWithExtent:format:"), extent, format) return rv } -func ImageAccumulator_Alloc() ImageAccumulator { - return ImageAccumulatorClass.Alloc() +// 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 } func (ic _ImageAccumulatorClass) New() ImageAccumulator { @@ -89,6 +112,14 @@ 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 @@ -96,6 +127,13 @@ func (i_ ImageAccumulator) SetImage(image IImage) { objc.Call[objc.Void](i_, objc.Sel("setImage:"), objc.Ptr(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:"), objc.Ptr(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 @@ -103,11 +141,11 @@ func (i_ ImageAccumulator) Clear() { objc.Call[objc.Void](i_, objc.Sel("clear")) } -// Returns the current contents of the image accumulator. [Full Topic] +// The pixel format 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")) +// [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 } @@ -118,11 +156,3 @@ 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.gen.go b/macos/coreimage/image_processor_input_protocol.gen.go similarity index 72% rename from macos/coreimage/image_processor_input.gen.go rename to macos/coreimage/image_processor_input_protocol.gen.go index c0d8230b..576a1faf 100644 --- a/macos/coreimage/image_processor_input.gen.go +++ b/macos/coreimage/image_processor_input_protocol.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package coreimage @@ -17,119 +17,122 @@ import ( // [Full Topic]: https://developer.apple.com/documentation/coreimage/ciimageprocessorinput?language=objc type PImageProcessorInput interface { // optional - Surface() iosurface.Ref - HasSurface() bool + BytesPerRow() uint + HasBytesPerRow() bool + + // optional + Region() coregraphics.Rect + HasRegion() bool // optional - MetalTexture() metal.PTexture + MetalTexture() metal.TextureObject HasMetalTexture() bool // optional - PixelBuffer() corevideo.PixelBufferRef - HasPixelBuffer() bool + Format() Format + HasFormat() bool // optional - BytesPerRow() uint - HasBytesPerRow() bool + PixelBuffer() corevideo.PixelBufferRef + HasPixelBuffer() bool // optional BaseAddress() unsafe.Pointer HasBaseAddress() bool // optional - Region() coregraphics.Rect - HasRegion() bool - - // optional - Format() Format - HasFormat() bool + Surface() iosurface.Ref + HasSurface() bool } -// A concrete type wrapper for the [PImageProcessorInput] protocol. -type ImageProcessorInputWrapper struct { +// ensure impl type implements protocol interface +var _ PImageProcessorInput = (*ImageProcessorInputObject)(nil) + +// A concrete type for the [PImageProcessorInput] protocol. +type ImageProcessorInputObject struct { objc.Object } -func (i_ ImageProcessorInputWrapper) HasSurface() bool { - return i_.RespondsToSelector(objc.Sel("surface")) +func (i_ ImageProcessorInputObject) HasBytesPerRow() bool { + return i_.RespondsToSelector(objc.Sel("bytesPerRow")) } -// An IOSurface object containing the image data to be processed. [Full Topic] +// The number of bytes per row of pixels in the input image data. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/ciimageprocessorinput/1639657-surface?language=objc -func (i_ ImageProcessorInputWrapper) Surface() iosurface.Ref { - rv := objc.Call[iosurface.Ref](i_, objc.Sel("surface")) +// [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_ ImageProcessorInputWrapper) HasMetalTexture() bool { +func (i_ ImageProcessorInputObject) HasRegion() bool { + return i_.RespondsToSelector(objc.Sel("region")) +} + +// The area within the input image 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")) + return rv +} + +func (i_ ImageProcessorInputObject) HasMetalTexture() bool { return i_.RespondsToSelector(objc.Sel("metalTexture")) } // A Metal texture containing the image data to be processed. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/coreimage/ciimageprocessorinput/1639651-metaltexture?language=objc -func (i_ ImageProcessorInputWrapper) MetalTexture() metal.TextureWrapper { - rv := objc.Call[metal.TextureWrapper](i_, objc.Sel("metalTexture")) +func (i_ ImageProcessorInputObject) MetalTexture() metal.TextureObject { + rv := objc.Call[metal.TextureObject](i_, objc.Sel("metalTexture")) return rv } -func (i_ ImageProcessorInputWrapper) HasPixelBuffer() bool { - return i_.RespondsToSelector(objc.Sel("pixelBuffer")) +func (i_ ImageProcessorInputObject) HasFormat() bool { + return i_.RespondsToSelector(objc.Sel("format")) } -// A CoreVideo pixel buffer containing the image data to be processed. [Full Topic] +// The per-pixel data format of the image to be processed. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/ciimageprocessorinput/1639649-pixelbuffer?language=objc -func (i_ ImageProcessorInputWrapper) PixelBuffer() corevideo.PixelBufferRef { - rv := objc.Call[corevideo.PixelBufferRef](i_, objc.Sel("pixelBuffer")) +// [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_ ImageProcessorInputWrapper) HasBytesPerRow() bool { - return i_.RespondsToSelector(objc.Sel("bytesPerRow")) +func (i_ ImageProcessorInputObject) HasPixelBuffer() bool { + return i_.RespondsToSelector(objc.Sel("pixelBuffer")) } -// The number of bytes per row of pixels in the input image data. [Full Topic] +// A CoreVideo pixel buffer containing the image data to be processed. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/ciimageprocessorinput/1639655-bytesperrow?language=objc -func (i_ ImageProcessorInputWrapper) BytesPerRow() uint { - rv := objc.Call[uint](i_, objc.Sel("bytesPerRow")) +// [Full Topic]: https://developer.apple.com/documentation/coreimage/ciimageprocessorinput/1639649-pixelbuffer?language=objc +func (i_ ImageProcessorInputObject) PixelBuffer() corevideo.PixelBufferRef { + rv := objc.Call[corevideo.PixelBufferRef](i_, objc.Sel("pixelBuffer")) return rv } -func (i_ ImageProcessorInputWrapper) HasBaseAddress() bool { +func (i_ ImageProcessorInputObject) HasBaseAddress() bool { return i_.RespondsToSelector(objc.Sel("baseAddress")) } // A pointer to the image data in CPU memory to be processed. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/coreimage/ciimageprocessorinput/1639645-baseaddress?language=objc -func (i_ ImageProcessorInputWrapper) BaseAddress() unsafe.Pointer { +func (i_ ImageProcessorInputObject) BaseAddress() unsafe.Pointer { rv := objc.Call[unsafe.Pointer](i_, objc.Sel("baseAddress")) return rv } -func (i_ ImageProcessorInputWrapper) HasRegion() bool { - return i_.RespondsToSelector(objc.Sel("region")) -} - -// The area within the input image to be processed. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/coreimage/ciimageprocessorinput/1639633-region?language=objc -func (i_ ImageProcessorInputWrapper) Region() coregraphics.Rect { - rv := objc.Call[coregraphics.Rect](i_, objc.Sel("region")) - return rv -} - -func (i_ ImageProcessorInputWrapper) HasFormat() bool { - return i_.RespondsToSelector(objc.Sel("format")) +func (i_ ImageProcessorInputObject) HasSurface() bool { + return i_.RespondsToSelector(objc.Sel("surface")) } -// The per-pixel data format of the 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/1639639-format?language=objc -func (i_ ImageProcessorInputWrapper) Format() Format { - rv := objc.Call[Format](i_, objc.Sel("format")) +// [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 } diff --git a/macos/coreimage/image_processor_kernel.gen.go b/macos/coreimage/image_processor_kernel.gen.go index 0236a5b3..6928ff9d 100644 --- a/macos/coreimage/image_processor_kernel.gen.go +++ b/macos/coreimage/image_processor_kernel.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package coreimage @@ -40,10 +40,6 @@ func (ic _ImageProcessorKernelClass) Alloc() ImageProcessorKernel { return rv } -func ImageProcessorKernel_Alloc() ImageProcessorKernel { - return ImageProcessorKernelClass.Alloc() -} - func (ic _ImageProcessorKernelClass) New() ImageProcessorKernel { rv := objc.Call[ImageProcessorKernel](ic, objc.Sel("new")) rv.Autorelease() @@ -74,6 +70,36 @@ 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 foundation.IError) Image { + rv := objc.Call[Image](ic, objc.Sel("applyWithExtent:inputs:arguments:error:"), extent, inputs, args, objc.Ptr(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 foundation.IError) 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 @@ -105,36 +131,6 @@ 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 foundation.IError) Image { - rv := objc.Call[Image](ic, objc.Sel("applyWithExtent:inputs:arguments:error:"), extent, inputs, args, objc.Ptr(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 foundation.IError) 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.gen.go b/macos/coreimage/image_processor_output_protocol.gen.go similarity index 70% rename from macos/coreimage/image_processor_output.gen.go rename to macos/coreimage/image_processor_output_protocol.gen.go index 63c50006..b52b5dd6 100644 --- a/macos/coreimage/image_processor_output.gen.go +++ b/macos/coreimage/image_processor_output_protocol.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package coreimage @@ -17,135 +17,138 @@ import ( // [Full Topic]: https://developer.apple.com/documentation/coreimage/ciimageprocessoroutput?language=objc type PImageProcessorOutput interface { // optional - Surface() iosurface.Ref - HasSurface() bool + BytesPerRow() uint + HasBytesPerRow() bool // optional - MetalTexture() metal.PTexture - HasMetalTexture() bool + BaseAddress() unsafe.Pointer + HasBaseAddress() bool // optional - MetalCommandBuffer() metal.PCommandBuffer - HasMetalCommandBuffer() bool + Format() Format + HasFormat() bool // optional PixelBuffer() corevideo.PixelBufferRef HasPixelBuffer() bool // optional - BytesPerRow() uint - HasBytesPerRow() bool + MetalCommandBuffer() metal.CommandBufferObject + HasMetalCommandBuffer() bool // optional - BaseAddress() unsafe.Pointer - HasBaseAddress() bool + Surface() iosurface.Ref + HasSurface() bool // optional - Region() coregraphics.Rect - HasRegion() bool + MetalTexture() metal.TextureObject + HasMetalTexture() bool // optional - Format() Format - HasFormat() bool + Region() coregraphics.Rect + HasRegion() bool } -// A concrete type wrapper for the [PImageProcessorOutput] protocol. -type ImageProcessorOutputWrapper struct { +// ensure impl type implements protocol interface +var _ PImageProcessorOutput = (*ImageProcessorOutputObject)(nil) + +// A concrete type for the [PImageProcessorOutput] protocol. +type ImageProcessorOutputObject struct { objc.Object } -func (i_ ImageProcessorOutputWrapper) 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_ ImageProcessorOutputWrapper) 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_ ImageProcessorOutputWrapper) 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_ ImageProcessorOutputWrapper) MetalTexture() metal.TextureWrapper { - rv := objc.Call[metal.TextureWrapper](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 } -func (i_ ImageProcessorOutputWrapper) HasMetalCommandBuffer() bool { - return i_.RespondsToSelector(objc.Sel("metalCommandBuffer")) +func (i_ ImageProcessorOutputObject) HasFormat() bool { + return i_.RespondsToSelector(objc.Sel("format")) } -// A command buffer to use for image processing using Metal. [Full Topic] +// The per-pixel data format expected of the output image. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/ciimageprocessoroutput/1639641-metalcommandbuffer?language=objc -func (i_ ImageProcessorOutputWrapper) MetalCommandBuffer() metal.CommandBufferWrapper { - rv := objc.Call[metal.CommandBufferWrapper](i_, objc.Sel("metalCommandBuffer")) +// [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 } -func (i_ ImageProcessorOutputWrapper) HasPixelBuffer() bool { +func (i_ ImageProcessorOutputObject) HasPixelBuffer() bool { return i_.RespondsToSelector(objc.Sel("pixelBuffer")) } // A CoreVideo pixel buffer to which you can write output pixel data. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/coreimage/ciimageprocessoroutput/1639647-pixelbuffer?language=objc -func (i_ ImageProcessorOutputWrapper) PixelBuffer() corevideo.PixelBufferRef { +func (i_ ImageProcessorOutputObject) PixelBuffer() corevideo.PixelBufferRef { rv := objc.Call[corevideo.PixelBufferRef](i_, objc.Sel("pixelBuffer")) return rv } -func (i_ ImageProcessorOutputWrapper) HasBytesPerRow() bool { - return i_.RespondsToSelector(objc.Sel("bytesPerRow")) +func (i_ ImageProcessorOutputObject) HasMetalCommandBuffer() bool { + return i_.RespondsToSelector(objc.Sel("metalCommandBuffer")) } -// The number of bytes per row of pixels for 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/1639635-bytesperrow?language=objc -func (i_ ImageProcessorOutputWrapper) BytesPerRow() uint { - rv := objc.Call[uint](i_, objc.Sel("bytesPerRow")) +// [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_ ImageProcessorOutputWrapper) HasBaseAddress() bool { - return i_.RespondsToSelector(objc.Sel("baseAddress")) +func (i_ ImageProcessorOutputObject) HasSurface() bool { + return i_.RespondsToSelector(objc.Sel("surface")) } -// A pointer to CPU memory at which to write output pixel data. [Full Topic] +// An IOSurface object 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_ ImageProcessorOutputWrapper) BaseAddress() unsafe.Pointer { - rv := objc.Call[unsafe.Pointer](i_, objc.Sel("baseAddress")) +// [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_ ImageProcessorOutputWrapper) HasRegion() bool { - return i_.RespondsToSelector(objc.Sel("region")) +func (i_ ImageProcessorOutputObject) HasMetalTexture() bool { + return i_.RespondsToSelector(objc.Sel("metalTexture")) } -// The rectangular region of the output image that your processor must provide. [Full Topic] +// A Metal texture to which you can write output pixel data. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/ciimageprocessoroutput/1639629-region?language=objc -func (i_ ImageProcessorOutputWrapper) Region() coregraphics.Rect { - rv := objc.Call[coregraphics.Rect](i_, objc.Sel("region")) +// [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_ ImageProcessorOutputWrapper) HasFormat() bool { - return i_.RespondsToSelector(objc.Sel("format")) +func (i_ ImageProcessorOutputObject) HasRegion() bool { + return i_.RespondsToSelector(objc.Sel("region")) } -// The per-pixel data format expected of the output image. [Full Topic] +// The rectangular region of the output image that your processor must provide. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/ciimageprocessoroutput/1639628-format?language=objc -func (i_ ImageProcessorOutputWrapper) Format() Format { - rv := objc.Call[Format](i_, objc.Sel("format")) +// [Full Topic]: https://developer.apple.com/documentation/coreimage/ciimageprocessoroutput/1639629-region?language=objc +func (i_ ImageProcessorOutputObject) Region() coregraphics.Rect { + rv := objc.Call[coregraphics.Rect](i_, objc.Sel("region")) return rv } diff --git a/macos/coreimage/k_means.gen.go b/macos/coreimage/k_means_protocol.gen.go similarity index 73% rename from macos/coreimage/k_means.gen.go rename to macos/coreimage/k_means_protocol.gen.go index 6c371080..1a49162f 100644 --- a/macos/coreimage/k_means.gen.go +++ b/macos/coreimage/k_means_protocol.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package coreimage @@ -15,7 +15,7 @@ type PKMeans interface { HasSetInputMeans() bool // optional - InputMeans() IImage + InputMeans() Image HasInputMeans() bool // optional @@ -26,14 +26,6 @@ type PKMeans interface { Count() int HasCount() bool - // optional - SetPerceptual(value bool) - HasSetPerceptual() bool - - // optional - Perceptual() bool - HasPerceptual() bool - // optional SetPasses(value float64) HasSetPasses() bool @@ -41,101 +33,112 @@ type PKMeans interface { // optional Passes() float64 HasPasses() bool + + // optional + SetPerceptual(value bool) + HasSetPerceptual() bool + + // optional + Perceptual() bool + HasPerceptual() bool } -// A concrete type wrapper for the [PKMeans] protocol. -type KMeansWrapper struct { +// ensure impl type implements protocol interface +var _ PKMeans = (*KMeansObject)(nil) + +// A concrete type for the [PKMeans] protocol. +type KMeansObject struct { objc.Object } -func (k_ KMeansWrapper) HasSetInputMeans() bool { +func (k_ KMeansObject) HasSetInputMeans() bool { return k_.RespondsToSelector(objc.Sel("setInputMeans:")) } // [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/coreimage/cikmeans/3547131-inputmeans?language=objc -func (k_ KMeansWrapper) SetInputMeans(value IImage) { +func (k_ KMeansObject) SetInputMeans(value Image) { objc.Call[objc.Void](k_, objc.Sel("setInputMeans:"), objc.Ptr(value)) } -func (k_ KMeansWrapper) HasInputMeans() bool { +func (k_ KMeansObject) HasInputMeans() bool { return k_.RespondsToSelector(objc.Sel("inputMeans")) } // [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/coreimage/cikmeans/3547131-inputmeans?language=objc -func (k_ KMeansWrapper) InputMeans() Image { +func (k_ KMeansObject) InputMeans() Image { rv := objc.Call[Image](k_, objc.Sel("inputMeans")) return rv } -func (k_ KMeansWrapper) HasSetCount() bool { +func (k_ KMeansObject) HasSetCount() bool { return k_.RespondsToSelector(objc.Sel("setCount:")) } // [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/coreimage/cikmeans/3547130-count?language=objc -func (k_ KMeansWrapper) SetCount(value int) { +func (k_ KMeansObject) SetCount(value int) { objc.Call[objc.Void](k_, objc.Sel("setCount:"), value) } -func (k_ KMeansWrapper) HasCount() bool { +func (k_ KMeansObject) HasCount() bool { return k_.RespondsToSelector(objc.Sel("count")) } // [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/coreimage/cikmeans/3547130-count?language=objc -func (k_ KMeansWrapper) Count() int { +func (k_ KMeansObject) Count() int { rv := objc.Call[int](k_, objc.Sel("count")) return rv } -func (k_ KMeansWrapper) 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_ KMeansWrapper) 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 float64) { + objc.Call[objc.Void](k_, objc.Sel("setPasses:"), value) } -func (k_ KMeansWrapper) 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_ KMeansWrapper) 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() float64 { + rv := objc.Call[float64](k_, objc.Sel("passes")) return rv } -func (k_ KMeansWrapper) 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_ KMeansWrapper) SetPasses(value float64) { - 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_ KMeansWrapper) 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_ KMeansWrapper) Passes() float64 { - rv := objc.Call[float64](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 } diff --git a/macos/coreimage/kaleidoscope.gen.go b/macos/coreimage/kaleidoscope_protocol.gen.go similarity index 74% rename from macos/coreimage/kaleidoscope.gen.go rename to macos/coreimage/kaleidoscope_protocol.gen.go index 7bb137a8..545cc056 100644 --- a/macos/coreimage/kaleidoscope.gen.go +++ b/macos/coreimage/kaleidoscope_protocol.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package coreimage @@ -12,20 +12,12 @@ import ( // [Full Topic]: https://developer.apple.com/documentation/coreimage/cikaleidoscope?language=objc type PKaleidoscope interface { // optional - SetInputImage(value Image) - HasSetInputImage() bool - - // optional - InputImage() IImage - HasInputImage() bool - - // optional - SetCount(value int) - HasSetCount() bool + SetCenter(value coregraphics.Point) + HasSetCenter() bool // optional - Count() int - HasCount() bool + Center() coregraphics.Point + HasCenter() bool // optional SetAngle(value float64) @@ -36,107 +28,118 @@ type PKaleidoscope interface { HasAngle() bool // optional - SetCenter(value coregraphics.Point) - HasSetCenter() bool + SetInputImage(value Image) + HasSetInputImage() bool // optional - Center() coregraphics.Point - HasCenter() bool + InputImage() Image + HasInputImage() bool + + // optional + SetCount(value int) + HasSetCount() bool + + // optional + Count() int + HasCount() bool } -// A concrete type wrapper for the [PKaleidoscope] protocol. -type KaleidoscopeWrapper struct { +// ensure impl type implements protocol interface +var _ PKaleidoscope = (*KaleidoscopeObject)(nil) + +// A concrete type for the [PKaleidoscope] protocol. +type KaleidoscopeObject struct { objc.Object } -func (k_ KaleidoscopeWrapper) HasSetInputImage() bool { - return k_.RespondsToSelector(objc.Sel("setInputImage:")) +func (k_ KaleidoscopeObject) HasSetCenter() bool { + return k_.RespondsToSelector(objc.Sel("setCenter:")) } -// The image to use as an input image. [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/cikaleidoscope/3228511-inputimage?language=objc -func (k_ KaleidoscopeWrapper) SetInputImage(value IImage) { - objc.Call[objc.Void](k_, objc.Sel("setInputImage:"), objc.Ptr(value)) +// [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_ KaleidoscopeWrapper) HasInputImage() bool { - return k_.RespondsToSelector(objc.Sel("inputImage")) +func (k_ KaleidoscopeObject) HasCenter() bool { + return k_.RespondsToSelector(objc.Sel("center")) } -// The image to use as an input image. [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/cikaleidoscope/3228511-inputimage?language=objc -func (k_ KaleidoscopeWrapper) InputImage() Image { - rv := objc.Call[Image](k_, objc.Sel("inputImage")) +// [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_ KaleidoscopeWrapper) HasSetCount() bool { - return k_.RespondsToSelector(objc.Sel("setCount:")) +func (k_ KaleidoscopeObject) HasSetAngle() bool { + return k_.RespondsToSelector(objc.Sel("setAngle:")) } -// The number of reflections in the pattern. [Full Topic] +// The angle of the reflection. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/cikaleidoscope/3228510-count?language=objc -func (k_ KaleidoscopeWrapper) SetCount(value int) { - objc.Call[objc.Void](k_, objc.Sel("setCount:"), value) +// [Full Topic]: https://developer.apple.com/documentation/coreimage/cikaleidoscope/3228508-angle?language=objc +func (k_ KaleidoscopeObject) SetAngle(value float64) { + objc.Call[objc.Void](k_, objc.Sel("setAngle:"), value) } -func (k_ KaleidoscopeWrapper) HasCount() bool { - return k_.RespondsToSelector(objc.Sel("count")) +func (k_ KaleidoscopeObject) HasAngle() bool { + return k_.RespondsToSelector(objc.Sel("angle")) } -// The number of reflections in the pattern. [Full Topic] +// The angle of the reflection. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/cikaleidoscope/3228510-count?language=objc -func (k_ KaleidoscopeWrapper) Count() int { - rv := objc.Call[int](k_, objc.Sel("count")) +// [Full Topic]: https://developer.apple.com/documentation/coreimage/cikaleidoscope/3228508-angle?language=objc +func (k_ KaleidoscopeObject) Angle() float64 { + rv := objc.Call[float64](k_, objc.Sel("angle")) return rv } -func (k_ KaleidoscopeWrapper) HasSetAngle() bool { - return k_.RespondsToSelector(objc.Sel("setAngle:")) +func (k_ KaleidoscopeObject) HasSetInputImage() bool { + return k_.RespondsToSelector(objc.Sel("setInputImage:")) } -// The angle of the reflection. [Full Topic] +// The image to use as an input image. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/cikaleidoscope/3228508-angle?language=objc -func (k_ KaleidoscopeWrapper) SetAngle(value float64) { - objc.Call[objc.Void](k_, objc.Sel("setAngle:"), value) +// [Full Topic]: https://developer.apple.com/documentation/coreimage/cikaleidoscope/3228511-inputimage?language=objc +func (k_ KaleidoscopeObject) SetInputImage(value Image) { + objc.Call[objc.Void](k_, objc.Sel("setInputImage:"), objc.Ptr(value)) } -func (k_ KaleidoscopeWrapper) HasAngle() bool { - return k_.RespondsToSelector(objc.Sel("angle")) +func (k_ KaleidoscopeObject) HasInputImage() bool { + return k_.RespondsToSelector(objc.Sel("inputImage")) } -// The angle of the reflection. [Full Topic] +// The image to use as an input image. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/cikaleidoscope/3228508-angle?language=objc -func (k_ KaleidoscopeWrapper) Angle() float64 { - rv := objc.Call[float64](k_, objc.Sel("angle")) +// [Full Topic]: https://developer.apple.com/documentation/coreimage/cikaleidoscope/3228511-inputimage?language=objc +func (k_ KaleidoscopeObject) InputImage() Image { + rv := objc.Call[Image](k_, objc.Sel("inputImage")) return rv } -func (k_ KaleidoscopeWrapper) HasSetCenter() bool { - return k_.RespondsToSelector(objc.Sel("setCenter:")) +func (k_ KaleidoscopeObject) HasSetCount() bool { + return k_.RespondsToSelector(objc.Sel("setCount:")) } -// The x and y position to use as the center of the effect. [Full Topic] +// The number of reflections in the pattern. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/cikaleidoscope/3228509-center?language=objc -func (k_ KaleidoscopeWrapper) SetCenter(value coregraphics.Point) { - objc.Call[objc.Void](k_, objc.Sel("setCenter:"), value) +// [Full Topic]: https://developer.apple.com/documentation/coreimage/cikaleidoscope/3228510-count?language=objc +func (k_ KaleidoscopeObject) SetCount(value int) { + objc.Call[objc.Void](k_, objc.Sel("setCount:"), value) } -func (k_ KaleidoscopeWrapper) HasCenter() bool { - return k_.RespondsToSelector(objc.Sel("center")) +func (k_ KaleidoscopeObject) HasCount() bool { + return k_.RespondsToSelector(objc.Sel("count")) } -// The x and y position to use as the center of the effect. [Full Topic] +// The number of reflections in the pattern. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/cikaleidoscope/3228509-center?language=objc -func (k_ KaleidoscopeWrapper) Center() coregraphics.Point { - rv := objc.Call[coregraphics.Point](k_, objc.Sel("center")) +// [Full Topic]: https://developer.apple.com/documentation/coreimage/cikaleidoscope/3228510-count?language=objc +func (k_ KaleidoscopeObject) Count() int { + rv := objc.Call[int](k_, objc.Sel("count")) return rv } diff --git a/macos/coreimage/kernel.gen.go b/macos/coreimage/kernel.gen.go index 33c4eee6..507dcbb7 100644 --- a/macos/coreimage/kernel.gen.go +++ b/macos/coreimage/kernel.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package coreimage @@ -20,8 +20,8 @@ type _KernelClass struct { // An interface definition for the [Kernel] class. type IKernel interface { objc.IObject - SetROISelector(method objc.Selector) ApplyWithExtentRoiCallbackArguments(extent coregraphics.Rect, callback KernelROICallback, args []objc.IObject) Image + SetROISelector(method objc.Selector) Name() string } @@ -38,6 +38,18 @@ func KernelFrom(ptr unsafe.Pointer) Kernel { } } +func (kc _KernelClass) KernelWithFunctionNameFromMetalLibraryDataError(name string, data []byte, error foundation.IError) Kernel { + rv := objc.Call[Kernel](kc, objc.Sel("kernelWithFunctionName:fromMetalLibraryData:error:"), name, data, objc.Ptr(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 foundation.IError) Kernel { + return KernelClass.KernelWithFunctionNameFromMetalLibraryDataError(name, data, error) +} + func (kc _KernelClass) KernelWithFunctionNameFromMetalLibraryDataOutputPixelFormatError(name string, data []byte, format Format, error foundation.IError) Kernel { rv := objc.Call[Kernel](kc, objc.Sel("kernelWithFunctionName:fromMetalLibraryData:outputPixelFormat:error:"), name, data, format, objc.Ptr(error)) return rv @@ -55,10 +67,6 @@ func (kc _KernelClass) Alloc() Kernel { return rv } -func Kernel_Alloc() Kernel { - return KernelClass.Alloc() -} - func (kc _KernelClass) New() Kernel { rv := objc.Call[Kernel](kc, objc.Sel("new")) rv.Autorelease() @@ -74,28 +82,6 @@ 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 foundation.IError) []Kernel { - rv := objc.Call[[]Kernel](kc, objc.Sel("kernelsWithMetalString:error:"), source, objc.Ptr(error)) - return rv -} - -// [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/coreimage/cikernel/3857565-kernelswithmetalstring?language=objc -func Kernel_KernelsWithMetalStringError(source string, error foundation.IError) []Kernel { - return KernelClass.KernelsWithMetalStringError(source, error) -} - // [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/coreimage/cikernel/3577535-kernelnamesfrommetallibrarydata?language=objc @@ -119,6 +105,28 @@ 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 foundation.IError) []Kernel { + rv := objc.Call[[]Kernel](kc, objc.Sel("kernelsWithMetalString:error:"), source, objc.Ptr(error)) + return rv +} + +// [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/coreimage/cikernel/3857565-kernelswithmetalstring?language=objc +func Kernel_KernelsWithMetalStringError(source string, error foundation.IError) []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/keystone_correction_combined.gen.go b/macos/coreimage/keystone_correction_combined_protocol.gen.go similarity index 66% rename from macos/coreimage/keystone_correction_combined.gen.go rename to macos/coreimage/keystone_correction_combined_protocol.gen.go index 25dd3563..af3fe8ad 100644 --- a/macos/coreimage/keystone_correction_combined.gen.go +++ b/macos/coreimage/keystone_correction_combined_protocol.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package coreimage @@ -19,30 +19,33 @@ type PKeystoneCorrectionCombined interface { HasFocalLength() bool } -// A concrete type wrapper for the [PKeystoneCorrectionCombined] protocol. -type KeystoneCorrectionCombinedWrapper struct { +// ensure impl type implements protocol interface +var _ PKeystoneCorrectionCombined = (*KeystoneCorrectionCombinedObject)(nil) + +// A concrete type for the [PKeystoneCorrectionCombined] protocol. +type KeystoneCorrectionCombinedObject struct { objc.Object } -func (k_ KeystoneCorrectionCombinedWrapper) HasSetFocalLength() bool { +func (k_ KeystoneCorrectionCombinedObject) HasSetFocalLength() bool { return k_.RespondsToSelector(objc.Sel("setFocalLength:")) } // The 35mm equivalent focal length of the input image. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/coreimage/cikeystonecorrectioncombined/3325518-focallength?language=objc -func (k_ KeystoneCorrectionCombinedWrapper) SetFocalLength(value float64) { +func (k_ KeystoneCorrectionCombinedObject) SetFocalLength(value float64) { objc.Call[objc.Void](k_, objc.Sel("setFocalLength:"), value) } -func (k_ KeystoneCorrectionCombinedWrapper) HasFocalLength() bool { +func (k_ KeystoneCorrectionCombinedObject) HasFocalLength() bool { return k_.RespondsToSelector(objc.Sel("focalLength")) } // The 35mm equivalent focal length of the input image. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/coreimage/cikeystonecorrectioncombined/3325518-focallength?language=objc -func (k_ KeystoneCorrectionCombinedWrapper) FocalLength() float64 { +func (k_ KeystoneCorrectionCombinedObject) FocalLength() float64 { rv := objc.Call[float64](k_, objc.Sel("focalLength")) return rv } diff --git a/macos/coreimage/keystone_correction_horizontal.gen.go b/macos/coreimage/keystone_correction_horizontal_protocol.gen.go similarity index 66% rename from macos/coreimage/keystone_correction_horizontal.gen.go rename to macos/coreimage/keystone_correction_horizontal_protocol.gen.go index c6e0ef93..c5cd260c 100644 --- a/macos/coreimage/keystone_correction_horizontal.gen.go +++ b/macos/coreimage/keystone_correction_horizontal_protocol.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package coreimage @@ -19,30 +19,33 @@ type PKeystoneCorrectionHorizontal interface { HasFocalLength() bool } -// A concrete type wrapper for the [PKeystoneCorrectionHorizontal] protocol. -type KeystoneCorrectionHorizontalWrapper struct { +// ensure impl type implements protocol interface +var _ PKeystoneCorrectionHorizontal = (*KeystoneCorrectionHorizontalObject)(nil) + +// A concrete type for the [PKeystoneCorrectionHorizontal] protocol. +type KeystoneCorrectionHorizontalObject struct { objc.Object } -func (k_ KeystoneCorrectionHorizontalWrapper) HasSetFocalLength() bool { +func (k_ KeystoneCorrectionHorizontalObject) HasSetFocalLength() bool { return k_.RespondsToSelector(objc.Sel("setFocalLength:")) } // The 35mm equivalent focal length of the input image. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/coreimage/cikeystonecorrectionhorizontal/3325525-focallength?language=objc -func (k_ KeystoneCorrectionHorizontalWrapper) SetFocalLength(value float64) { +func (k_ KeystoneCorrectionHorizontalObject) SetFocalLength(value float64) { objc.Call[objc.Void](k_, objc.Sel("setFocalLength:"), value) } -func (k_ KeystoneCorrectionHorizontalWrapper) HasFocalLength() bool { +func (k_ KeystoneCorrectionHorizontalObject) HasFocalLength() bool { return k_.RespondsToSelector(objc.Sel("focalLength")) } // The 35mm equivalent focal length of the input image. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/coreimage/cikeystonecorrectionhorizontal/3325525-focallength?language=objc -func (k_ KeystoneCorrectionHorizontalWrapper) FocalLength() float64 { +func (k_ KeystoneCorrectionHorizontalObject) FocalLength() float64 { rv := objc.Call[float64](k_, objc.Sel("focalLength")) return rv } diff --git a/macos/coreimage/keystone_correction_vertical.gen.go b/macos/coreimage/keystone_correction_vertical_protocol.gen.go similarity index 66% rename from macos/coreimage/keystone_correction_vertical.gen.go rename to macos/coreimage/keystone_correction_vertical_protocol.gen.go index abc2c4c2..62b76273 100644 --- a/macos/coreimage/keystone_correction_vertical.gen.go +++ b/macos/coreimage/keystone_correction_vertical_protocol.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package coreimage @@ -19,30 +19,33 @@ type PKeystoneCorrectionVertical interface { HasFocalLength() bool } -// A concrete type wrapper for the [PKeystoneCorrectionVertical] protocol. -type KeystoneCorrectionVerticalWrapper struct { +// ensure impl type implements protocol interface +var _ PKeystoneCorrectionVertical = (*KeystoneCorrectionVerticalObject)(nil) + +// A concrete type for the [PKeystoneCorrectionVertical] protocol. +type KeystoneCorrectionVerticalObject struct { objc.Object } -func (k_ KeystoneCorrectionVerticalWrapper) HasSetFocalLength() bool { +func (k_ KeystoneCorrectionVerticalObject) HasSetFocalLength() bool { return k_.RespondsToSelector(objc.Sel("setFocalLength:")) } // The 35mm equivalent focal length of the input image. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/coreimage/cikeystonecorrectionvertical/3325532-focallength?language=objc -func (k_ KeystoneCorrectionVerticalWrapper) SetFocalLength(value float64) { +func (k_ KeystoneCorrectionVerticalObject) SetFocalLength(value float64) { objc.Call[objc.Void](k_, objc.Sel("setFocalLength:"), value) } -func (k_ KeystoneCorrectionVerticalWrapper) HasFocalLength() bool { +func (k_ KeystoneCorrectionVerticalObject) HasFocalLength() bool { return k_.RespondsToSelector(objc.Sel("focalLength")) } // The 35mm equivalent focal length of the input image. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/coreimage/cikeystonecorrectionvertical/3325532-focallength?language=objc -func (k_ KeystoneCorrectionVerticalWrapper) FocalLength() float64 { +func (k_ KeystoneCorrectionVerticalObject) FocalLength() float64 { rv := objc.Call[float64](k_, objc.Sel("focalLength")) return rv } diff --git a/macos/coreimage/lab_delta_e.gen.go b/macos/coreimage/lab_delta_e_protocol.gen.go similarity index 72% rename from macos/coreimage/lab_delta_e.gen.go rename to macos/coreimage/lab_delta_e_protocol.gen.go index 8cd0b8cd..0c3f8145 100644 --- a/macos/coreimage/lab_delta_e.gen.go +++ b/macos/coreimage/lab_delta_e_protocol.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package coreimage @@ -11,69 +11,72 @@ import ( // [Full Topic]: https://developer.apple.com/documentation/coreimage/cilabdeltae?language=objc type PLabDeltaE interface { // optional - SetInputImage(value Image) - HasSetInputImage() bool + SetImage2(value Image) + HasSetImage2() bool // optional - InputImage() IImage - HasInputImage() bool + Image2() Image + HasImage2() bool // optional - SetImage2(value Image) - HasSetImage2() bool + SetInputImage(value Image) + HasSetInputImage() bool // optional - Image2() IImage - HasImage2() bool + InputImage() Image + HasInputImage() bool } -// A concrete type wrapper for the [PLabDeltaE] protocol. -type LabDeltaEWrapper struct { +// ensure impl type implements protocol interface +var _ PLabDeltaE = (*LabDeltaEObject)(nil) + +// A concrete type for the [PLabDeltaE] protocol. +type LabDeltaEObject struct { objc.Object } -func (l_ LabDeltaEWrapper) HasSetInputImage() bool { - return l_.RespondsToSelector(objc.Sel("setInputImage:")) +func (l_ LabDeltaEObject) HasSetImage2() bool { + return l_.RespondsToSelector(objc.Sel("setImage2:")) } -// The first input image for comparison. [Full Topic] +// The second input image for comparison. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/cilabdeltae/3228514-inputimage?language=objc -func (l_ LabDeltaEWrapper) SetInputImage(value IImage) { - objc.Call[objc.Void](l_, objc.Sel("setInputImage:"), objc.Ptr(value)) +// [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:"), objc.Ptr(value)) } -func (l_ LabDeltaEWrapper) HasInputImage() bool { - return l_.RespondsToSelector(objc.Sel("inputImage")) +func (l_ LabDeltaEObject) HasImage2() bool { + return l_.RespondsToSelector(objc.Sel("image2")) } -// The first input image for comparison. [Full Topic] +// The second input image for comparison. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/cilabdeltae/3228514-inputimage?language=objc -func (l_ LabDeltaEWrapper) InputImage() Image { - rv := objc.Call[Image](l_, objc.Sel("inputImage")) +// [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_ LabDeltaEWrapper) HasSetImage2() bool { - return l_.RespondsToSelector(objc.Sel("setImage2:")) +func (l_ LabDeltaEObject) HasSetInputImage() bool { + return l_.RespondsToSelector(objc.Sel("setInputImage:")) } -// The second input image for comparison. [Full Topic] +// The first input image for comparison. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/cilabdeltae/3228513-image2?language=objc -func (l_ LabDeltaEWrapper) SetImage2(value IImage) { - objc.Call[objc.Void](l_, objc.Sel("setImage2:"), objc.Ptr(value)) +// [Full Topic]: https://developer.apple.com/documentation/coreimage/cilabdeltae/3228514-inputimage?language=objc +func (l_ LabDeltaEObject) SetInputImage(value Image) { + objc.Call[objc.Void](l_, objc.Sel("setInputImage:"), objc.Ptr(value)) } -func (l_ LabDeltaEWrapper) HasImage2() bool { - return l_.RespondsToSelector(objc.Sel("image2")) +func (l_ LabDeltaEObject) HasInputImage() bool { + return l_.RespondsToSelector(objc.Sel("inputImage")) } -// The second input image for comparison. [Full Topic] +// The first input image for comparison. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/cilabdeltae/3228513-image2?language=objc -func (l_ LabDeltaEWrapper) Image2() Image { - rv := objc.Call[Image](l_, objc.Sel("image2")) +// [Full Topic]: https://developer.apple.com/documentation/coreimage/cilabdeltae/3228514-inputimage?language=objc +func (l_ LabDeltaEObject) InputImage() Image { + rv := objc.Call[Image](l_, objc.Sel("inputImage")) return rv } diff --git a/macos/coreimage/lanczos_scale_transform.gen.go b/macos/coreimage/lanczos_scale_transform_protocol.gen.go similarity index 71% rename from macos/coreimage/lanczos_scale_transform.gen.go rename to macos/coreimage/lanczos_scale_transform_protocol.gen.go index d9cebffa..9f88fa77 100644 --- a/macos/coreimage/lanczos_scale_transform.gen.go +++ b/macos/coreimage/lanczos_scale_transform_protocol.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package coreimage @@ -11,20 +11,20 @@ import ( // [Full Topic]: https://developer.apple.com/documentation/coreimage/cilanczosscaletransform?language=objc type PLanczosScaleTransform interface { // optional - SetScale(value float64) - HasSetScale() bool + SetInputImage(value Image) + HasSetInputImage() bool // optional - Scale() float64 - HasScale() bool + InputImage() Image + HasInputImage() bool // optional - SetInputImage(value Image) - HasSetInputImage() bool + SetScale(value float64) + HasSetScale() bool // optional - InputImage() IImage - HasInputImage() bool + Scale() float64 + HasScale() bool // optional SetAspectRatio(value float64) @@ -35,76 +35,79 @@ type PLanczosScaleTransform interface { HasAspectRatio() bool } -// A concrete type wrapper for the [PLanczosScaleTransform] protocol. -type LanczosScaleTransformWrapper struct { +// ensure impl type implements protocol interface +var _ PLanczosScaleTransform = (*LanczosScaleTransformObject)(nil) + +// A concrete type for the [PLanczosScaleTransform] protocol. +type LanczosScaleTransformObject struct { objc.Object } -func (l_ LanczosScaleTransformWrapper) HasSetScale() bool { - return l_.RespondsToSelector(objc.Sel("setScale:")) +func (l_ LanczosScaleTransformObject) HasSetInputImage() bool { + return l_.RespondsToSelector(objc.Sel("setInputImage:")) } -// The scaling factor to use on the image. [Full Topic] +// The image to use as an input image. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/cilanczosscaletransform/3228518-scale?language=objc -func (l_ LanczosScaleTransformWrapper) SetScale(value float64) { - objc.Call[objc.Void](l_, objc.Sel("setScale:"), value) +// [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:"), objc.Ptr(value)) } -func (l_ LanczosScaleTransformWrapper) HasScale() bool { - return l_.RespondsToSelector(objc.Sel("scale")) +func (l_ LanczosScaleTransformObject) HasInputImage() bool { + return l_.RespondsToSelector(objc.Sel("inputImage")) } -// The scaling factor to use on the image. [Full Topic] +// The image to use as an input image. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/cilanczosscaletransform/3228518-scale?language=objc -func (l_ LanczosScaleTransformWrapper) Scale() float64 { - rv := objc.Call[float64](l_, objc.Sel("scale")) +// [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_ LanczosScaleTransformWrapper) HasSetInputImage() bool { - return l_.RespondsToSelector(objc.Sel("setInputImage:")) +func (l_ LanczosScaleTransformObject) HasSetScale() bool { + return l_.RespondsToSelector(objc.Sel("setScale:")) } -// The image to use as an input image. [Full Topic] +// The scaling factor to use on the image. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/cilanczosscaletransform/3228517-inputimage?language=objc -func (l_ LanczosScaleTransformWrapper) SetInputImage(value IImage) { - objc.Call[objc.Void](l_, objc.Sel("setInputImage:"), objc.Ptr(value)) +// [Full Topic]: https://developer.apple.com/documentation/coreimage/cilanczosscaletransform/3228518-scale?language=objc +func (l_ LanczosScaleTransformObject) SetScale(value float64) { + objc.Call[objc.Void](l_, objc.Sel("setScale:"), value) } -func (l_ LanczosScaleTransformWrapper) HasInputImage() bool { - return l_.RespondsToSelector(objc.Sel("inputImage")) +func (l_ LanczosScaleTransformObject) HasScale() bool { + return l_.RespondsToSelector(objc.Sel("scale")) } -// The image to use as an input image. [Full Topic] +// The scaling factor to use on the image. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/cilanczosscaletransform/3228517-inputimage?language=objc -func (l_ LanczosScaleTransformWrapper) InputImage() Image { - rv := objc.Call[Image](l_, objc.Sel("inputImage")) +// [Full Topic]: https://developer.apple.com/documentation/coreimage/cilanczosscaletransform/3228518-scale?language=objc +func (l_ LanczosScaleTransformObject) Scale() float64 { + rv := objc.Call[float64](l_, objc.Sel("scale")) return rv } -func (l_ LanczosScaleTransformWrapper) HasSetAspectRatio() bool { +func (l_ LanczosScaleTransformObject) HasSetAspectRatio() bool { return l_.RespondsToSelector(objc.Sel("setAspectRatio:")) } // The additional horizontal scaling factor to use on the image. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/coreimage/cilanczosscaletransform/3228516-aspectratio?language=objc -func (l_ LanczosScaleTransformWrapper) SetAspectRatio(value float64) { +func (l_ LanczosScaleTransformObject) SetAspectRatio(value float64) { objc.Call[objc.Void](l_, objc.Sel("setAspectRatio:"), value) } -func (l_ LanczosScaleTransformWrapper) HasAspectRatio() bool { +func (l_ LanczosScaleTransformObject) HasAspectRatio() bool { return l_.RespondsToSelector(objc.Sel("aspectRatio")) } // The additional horizontal scaling factor to use on the image. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/coreimage/cilanczosscaletransform/3228516-aspectratio?language=objc -func (l_ LanczosScaleTransformWrapper) AspectRatio() float64 { +func (l_ LanczosScaleTransformObject) AspectRatio() float64 { rv := objc.Call[float64](l_, objc.Sel("aspectRatio")) return rv } diff --git a/macos/coreimage/lenticular_halo_generator.gen.go b/macos/coreimage/lenticular_halo_generator_protocol.gen.go similarity index 72% rename from macos/coreimage/lenticular_halo_generator.gen.go rename to macos/coreimage/lenticular_halo_generator_protocol.gen.go index 06ed34e7..a4314f62 100644 --- a/macos/coreimage/lenticular_halo_generator.gen.go +++ b/macos/coreimage/lenticular_halo_generator_protocol.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package coreimage @@ -20,12 +20,12 @@ type PLenticularHaloGenerator interface { HasStriationContrast() bool // optional - SetColor(value Color) - HasSetColor() bool + SetHaloOverlap(value float64) + HasSetHaloOverlap() bool // optional - Color() IColor - HasColor() bool + HaloOverlap() float64 + HasHaloOverlap() bool // optional SetHaloRadius(value float64) @@ -36,12 +36,12 @@ type PLenticularHaloGenerator interface { HasHaloRadius() bool // optional - SetHaloWidth(value float64) - HasSetHaloWidth() bool + SetStriationStrength(value float64) + HasSetStriationStrength() bool // optional - HaloWidth() float64 - HasHaloWidth() bool + StriationStrength() float64 + HasStriationStrength() bool // optional SetTime(value float64) @@ -52,20 +52,20 @@ type PLenticularHaloGenerator interface { HasTime() bool // optional - SetHaloOverlap(value float64) - HasSetHaloOverlap() bool + SetHaloWidth(value float64) + HasSetHaloWidth() bool // optional - HaloOverlap() float64 - HasHaloOverlap() bool + HaloWidth() float64 + HasHaloWidth() bool // optional - SetStriationStrength(value float64) - HasSetStriationStrength() bool + SetColor(value Color) + HasSetColor() bool // optional - StriationStrength() float64 - HasStriationStrength() bool + Color() Color + HasColor() bool // optional SetCenter(value coregraphics.Point) @@ -76,191 +76,194 @@ type PLenticularHaloGenerator interface { HasCenter() bool } -// A concrete type wrapper for the [PLenticularHaloGenerator] protocol. -type LenticularHaloGeneratorWrapper struct { +// ensure impl type implements protocol interface +var _ PLenticularHaloGenerator = (*LenticularHaloGeneratorObject)(nil) + +// A concrete type for the [PLenticularHaloGenerator] protocol. +type LenticularHaloGeneratorObject struct { objc.Object } -func (l_ LenticularHaloGeneratorWrapper) HasSetStriationContrast() bool { +func (l_ LenticularHaloGeneratorObject) HasSetStriationContrast() bool { return l_.RespondsToSelector(objc.Sel("setStriationContrast:")) } // The contrast of the halo colors. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/coreimage/cilenticularhalogenerator/3228525-striationcontrast?language=objc -func (l_ LenticularHaloGeneratorWrapper) SetStriationContrast(value float64) { +func (l_ LenticularHaloGeneratorObject) SetStriationContrast(value float64) { objc.Call[objc.Void](l_, objc.Sel("setStriationContrast:"), value) } -func (l_ LenticularHaloGeneratorWrapper) HasStriationContrast() bool { +func (l_ LenticularHaloGeneratorObject) HasStriationContrast() bool { return l_.RespondsToSelector(objc.Sel("striationContrast")) } // The contrast of the halo colors. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/coreimage/cilenticularhalogenerator/3228525-striationcontrast?language=objc -func (l_ LenticularHaloGeneratorWrapper) StriationContrast() float64 { +func (l_ LenticularHaloGeneratorObject) StriationContrast() float64 { rv := objc.Call[float64](l_, objc.Sel("striationContrast")) return rv } -func (l_ LenticularHaloGeneratorWrapper) HasSetColor() bool { - return l_.RespondsToSelector(objc.Sel("setColor:")) +func (l_ LenticularHaloGeneratorObject) HasSetHaloOverlap() bool { + return l_.RespondsToSelector(objc.Sel("setHaloOverlap:")) } -// The color of the halo. [Full Topic] +// The separation of colors in the halo. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/cilenticularhalogenerator/3228521-color?language=objc -func (l_ LenticularHaloGeneratorWrapper) SetColor(value IColor) { - objc.Call[objc.Void](l_, objc.Sel("setColor:"), objc.Ptr(value)) +// [Full Topic]: https://developer.apple.com/documentation/coreimage/cilenticularhalogenerator/3228522-halooverlap?language=objc +func (l_ LenticularHaloGeneratorObject) SetHaloOverlap(value float64) { + objc.Call[objc.Void](l_, objc.Sel("setHaloOverlap:"), value) } -func (l_ LenticularHaloGeneratorWrapper) HasColor() bool { - return l_.RespondsToSelector(objc.Sel("color")) +func (l_ LenticularHaloGeneratorObject) HasHaloOverlap() bool { + return l_.RespondsToSelector(objc.Sel("haloOverlap")) } -// The color of the halo. [Full Topic] +// The separation of colors in the halo. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/cilenticularhalogenerator/3228521-color?language=objc -func (l_ LenticularHaloGeneratorWrapper) Color() Color { - rv := objc.Call[Color](l_, objc.Sel("color")) +// [Full Topic]: https://developer.apple.com/documentation/coreimage/cilenticularhalogenerator/3228522-halooverlap?language=objc +func (l_ LenticularHaloGeneratorObject) HaloOverlap() float64 { + rv := objc.Call[float64](l_, objc.Sel("haloOverlap")) return rv } -func (l_ LenticularHaloGeneratorWrapper) HasSetHaloRadius() bool { +func (l_ LenticularHaloGeneratorObject) HasSetHaloRadius() bool { return l_.RespondsToSelector(objc.Sel("setHaloRadius:")) } // The radius of the halo. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/coreimage/cilenticularhalogenerator/3228523-haloradius?language=objc -func (l_ LenticularHaloGeneratorWrapper) SetHaloRadius(value float64) { +func (l_ LenticularHaloGeneratorObject) SetHaloRadius(value float64) { objc.Call[objc.Void](l_, objc.Sel("setHaloRadius:"), value) } -func (l_ LenticularHaloGeneratorWrapper) HasHaloRadius() bool { +func (l_ LenticularHaloGeneratorObject) HasHaloRadius() bool { return l_.RespondsToSelector(objc.Sel("haloRadius")) } // The radius of the halo. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/coreimage/cilenticularhalogenerator/3228523-haloradius?language=objc -func (l_ LenticularHaloGeneratorWrapper) HaloRadius() float64 { +func (l_ LenticularHaloGeneratorObject) HaloRadius() float64 { rv := objc.Call[float64](l_, objc.Sel("haloRadius")) return rv } -func (l_ LenticularHaloGeneratorWrapper) HasSetHaloWidth() bool { - return l_.RespondsToSelector(objc.Sel("setHaloWidth:")) +func (l_ LenticularHaloGeneratorObject) HasSetStriationStrength() bool { + return l_.RespondsToSelector(objc.Sel("setStriationStrength:")) } -// The width of the halo, from its inner radius to its outer radius. [Full Topic] +// The intensity of the halo colors. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/cilenticularhalogenerator/3228524-halowidth?language=objc -func (l_ LenticularHaloGeneratorWrapper) SetHaloWidth(value float64) { - objc.Call[objc.Void](l_, objc.Sel("setHaloWidth:"), value) +// [Full Topic]: https://developer.apple.com/documentation/coreimage/cilenticularhalogenerator/3228526-striationstrength?language=objc +func (l_ LenticularHaloGeneratorObject) SetStriationStrength(value float64) { + objc.Call[objc.Void](l_, objc.Sel("setStriationStrength:"), value) } -func (l_ LenticularHaloGeneratorWrapper) HasHaloWidth() bool { - return l_.RespondsToSelector(objc.Sel("haloWidth")) +func (l_ LenticularHaloGeneratorObject) HasStriationStrength() bool { + return l_.RespondsToSelector(objc.Sel("striationStrength")) } -// The width of the halo, from its inner radius to its outer radius. [Full Topic] +// The intensity of the halo colors. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/cilenticularhalogenerator/3228524-halowidth?language=objc -func (l_ LenticularHaloGeneratorWrapper) HaloWidth() float64 { - rv := objc.Call[float64](l_, objc.Sel("haloWidth")) +// [Full Topic]: https://developer.apple.com/documentation/coreimage/cilenticularhalogenerator/3228526-striationstrength?language=objc +func (l_ LenticularHaloGeneratorObject) StriationStrength() float64 { + rv := objc.Call[float64](l_, objc.Sel("striationStrength")) return rv } -func (l_ LenticularHaloGeneratorWrapper) HasSetTime() bool { +func (l_ LenticularHaloGeneratorObject) HasSetTime() bool { return l_.RespondsToSelector(objc.Sel("setTime:")) } // The current time of the effect. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/coreimage/cilenticularhalogenerator/3228527-time?language=objc -func (l_ LenticularHaloGeneratorWrapper) SetTime(value float64) { +func (l_ LenticularHaloGeneratorObject) SetTime(value float64) { objc.Call[objc.Void](l_, objc.Sel("setTime:"), value) } -func (l_ LenticularHaloGeneratorWrapper) HasTime() bool { +func (l_ LenticularHaloGeneratorObject) HasTime() bool { return l_.RespondsToSelector(objc.Sel("time")) } // The current time of the effect. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/coreimage/cilenticularhalogenerator/3228527-time?language=objc -func (l_ LenticularHaloGeneratorWrapper) Time() float64 { +func (l_ LenticularHaloGeneratorObject) Time() float64 { rv := objc.Call[float64](l_, objc.Sel("time")) return rv } -func (l_ LenticularHaloGeneratorWrapper) HasSetHaloOverlap() bool { - return l_.RespondsToSelector(objc.Sel("setHaloOverlap:")) +func (l_ LenticularHaloGeneratorObject) HasSetHaloWidth() bool { + return l_.RespondsToSelector(objc.Sel("setHaloWidth:")) } -// The separation of colors in the halo. [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/3228522-halooverlap?language=objc -func (l_ LenticularHaloGeneratorWrapper) SetHaloOverlap(value float64) { - objc.Call[objc.Void](l_, objc.Sel("setHaloOverlap:"), value) +// [Full Topic]: https://developer.apple.com/documentation/coreimage/cilenticularhalogenerator/3228524-halowidth?language=objc +func (l_ LenticularHaloGeneratorObject) SetHaloWidth(value float64) { + objc.Call[objc.Void](l_, objc.Sel("setHaloWidth:"), value) } -func (l_ LenticularHaloGeneratorWrapper) HasHaloOverlap() bool { - return l_.RespondsToSelector(objc.Sel("haloOverlap")) +func (l_ LenticularHaloGeneratorObject) HasHaloWidth() bool { + return l_.RespondsToSelector(objc.Sel("haloWidth")) } -// The separation of colors in the halo. [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/3228522-halooverlap?language=objc -func (l_ LenticularHaloGeneratorWrapper) HaloOverlap() float64 { - rv := objc.Call[float64](l_, objc.Sel("haloOverlap")) +// [Full Topic]: https://developer.apple.com/documentation/coreimage/cilenticularhalogenerator/3228524-halowidth?language=objc +func (l_ LenticularHaloGeneratorObject) HaloWidth() float64 { + rv := objc.Call[float64](l_, objc.Sel("haloWidth")) return rv } -func (l_ LenticularHaloGeneratorWrapper) HasSetStriationStrength() bool { - return l_.RespondsToSelector(objc.Sel("setStriationStrength:")) +func (l_ LenticularHaloGeneratorObject) HasSetColor() bool { + return l_.RespondsToSelector(objc.Sel("setColor:")) } -// The intensity of the halo colors. [Full Topic] +// The color of the halo. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/cilenticularhalogenerator/3228526-striationstrength?language=objc -func (l_ LenticularHaloGeneratorWrapper) SetStriationStrength(value float64) { - objc.Call[objc.Void](l_, objc.Sel("setStriationStrength:"), 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:"), objc.Ptr(value)) } -func (l_ LenticularHaloGeneratorWrapper) HasStriationStrength() bool { - return l_.RespondsToSelector(objc.Sel("striationStrength")) +func (l_ LenticularHaloGeneratorObject) HasColor() bool { + return l_.RespondsToSelector(objc.Sel("color")) } -// The intensity of the halo colors. [Full Topic] +// The color of the halo. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/cilenticularhalogenerator/3228526-striationstrength?language=objc -func (l_ LenticularHaloGeneratorWrapper) StriationStrength() float64 { - rv := objc.Call[float64](l_, objc.Sel("striationStrength")) +// [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 } -func (l_ LenticularHaloGeneratorWrapper) HasSetCenter() bool { +func (l_ LenticularHaloGeneratorObject) HasSetCenter() bool { return l_.RespondsToSelector(objc.Sel("setCenter:")) } // The x and y position to use as the center of the halo. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/coreimage/cilenticularhalogenerator/3228520-center?language=objc -func (l_ LenticularHaloGeneratorWrapper) SetCenter(value coregraphics.Point) { +func (l_ LenticularHaloGeneratorObject) SetCenter(value coregraphics.Point) { objc.Call[objc.Void](l_, objc.Sel("setCenter:"), value) } -func (l_ LenticularHaloGeneratorWrapper) HasCenter() bool { +func (l_ LenticularHaloGeneratorObject) HasCenter() bool { return l_.RespondsToSelector(objc.Sel("center")) } // The x and y position to use as the center of the halo. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/coreimage/cilenticularhalogenerator/3228520-center?language=objc -func (l_ LenticularHaloGeneratorWrapper) Center() coregraphics.Point { +func (l_ LenticularHaloGeneratorObject) Center() coregraphics.Point { rv := objc.Call[coregraphics.Point](l_, objc.Sel("center")) return rv } diff --git a/macos/coreimage/light_tunnel.gen.go b/macos/coreimage/light_tunnel_protocol.gen.go similarity index 72% rename from macos/coreimage/light_tunnel.gen.go rename to macos/coreimage/light_tunnel_protocol.gen.go index b2e082e5..ce1fc47d 100644 --- a/macos/coreimage/light_tunnel.gen.go +++ b/macos/coreimage/light_tunnel_protocol.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package coreimage @@ -11,14 +11,6 @@ import ( // // [Full Topic]: https://developer.apple.com/documentation/coreimage/cilighttunnel?language=objc type PLightTunnel interface { - // optional - SetInputImage(value Image) - HasSetInputImage() bool - - // optional - InputImage() IImage - HasInputImage() bool - // optional SetRotation(value float64) HasSetRotation() bool @@ -28,12 +20,12 @@ type PLightTunnel interface { HasRotation() bool // optional - SetRadius(value float64) - HasSetRadius() bool + SetInputImage(value Image) + HasSetInputImage() bool // optional - Radius() float64 - HasRadius() bool + InputImage() Image + HasInputImage() bool // optional SetCenter(value coregraphics.Point) @@ -42,101 +34,112 @@ type PLightTunnel interface { // optional Center() coregraphics.Point HasCenter() bool -} - -// A concrete type wrapper for the [PLightTunnel] protocol. -type LightTunnelWrapper struct { - objc.Object -} -func (l_ LightTunnelWrapper) HasSetInputImage() bool { - return l_.RespondsToSelector(objc.Sel("setInputImage:")) -} + // optional + SetRadius(value float64) + HasSetRadius() bool -// [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/coreimage/cilighttunnel/3600172-inputimage?language=objc -func (l_ LightTunnelWrapper) SetInputImage(value IImage) { - objc.Call[objc.Void](l_, objc.Sel("setInputImage:"), objc.Ptr(value)) + // optional + Radius() float64 + HasRadius() bool } -func (l_ LightTunnelWrapper) HasInputImage() bool { - return l_.RespondsToSelector(objc.Sel("inputImage")) -} +// ensure impl type implements protocol interface +var _ PLightTunnel = (*LightTunnelObject)(nil) -// [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/coreimage/cilighttunnel/3600172-inputimage?language=objc -func (l_ LightTunnelWrapper) InputImage() Image { - rv := objc.Call[Image](l_, objc.Sel("inputImage")) - return rv +// A concrete type for the [PLightTunnel] protocol. +type LightTunnelObject struct { + objc.Object } -func (l_ LightTunnelWrapper) HasSetRotation() bool { +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_ LightTunnelWrapper) SetRotation(value float64) { +func (l_ LightTunnelObject) SetRotation(value float64) { objc.Call[objc.Void](l_, objc.Sel("setRotation:"), value) } -func (l_ LightTunnelWrapper) HasRotation() bool { +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_ LightTunnelWrapper) Rotation() float64 { +func (l_ LightTunnelObject) Rotation() float64 { rv := objc.Call[float64](l_, objc.Sel("rotation")) return rv } -func (l_ LightTunnelWrapper) HasSetRadius() bool { - return l_.RespondsToSelector(objc.Sel("setRadius:")) +func (l_ LightTunnelObject) HasSetInputImage() bool { + return l_.RespondsToSelector(objc.Sel("setInputImage:")) } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/cilighttunnel/3600173-radius?language=objc -func (l_ LightTunnelWrapper) SetRadius(value float64) { - objc.Call[objc.Void](l_, objc.Sel("setRadius:"), value) +// [Full Topic]: https://developer.apple.com/documentation/coreimage/cilighttunnel/3600172-inputimage?language=objc +func (l_ LightTunnelObject) SetInputImage(value Image) { + objc.Call[objc.Void](l_, objc.Sel("setInputImage:"), objc.Ptr(value)) } -func (l_ LightTunnelWrapper) HasRadius() bool { - return l_.RespondsToSelector(objc.Sel("radius")) +func (l_ LightTunnelObject) HasInputImage() bool { + return l_.RespondsToSelector(objc.Sel("inputImage")) } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/cilighttunnel/3600173-radius?language=objc -func (l_ LightTunnelWrapper) Radius() float64 { - rv := objc.Call[float64](l_, objc.Sel("radius")) +// [Full Topic]: https://developer.apple.com/documentation/coreimage/cilighttunnel/3600172-inputimage?language=objc +func (l_ LightTunnelObject) InputImage() Image { + rv := objc.Call[Image](l_, objc.Sel("inputImage")) return rv } -func (l_ LightTunnelWrapper) HasSetCenter() bool { +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_ LightTunnelWrapper) SetCenter(value coregraphics.Point) { +func (l_ LightTunnelObject) SetCenter(value coregraphics.Point) { objc.Call[objc.Void](l_, objc.Sel("setCenter:"), value) } -func (l_ LightTunnelWrapper) HasCenter() bool { +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_ LightTunnelWrapper) Center() coregraphics.Point { +func (l_ LightTunnelObject) Center() coregraphics.Point { rv := objc.Call[coregraphics.Point](l_, objc.Sel("center")) return rv } + +func (l_ LightTunnelObject) HasSetRadius() bool { + return l_.RespondsToSelector(objc.Sel("setRadius:")) +} + +// [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/coreimage/cilighttunnel/3600173-radius?language=objc +func (l_ LightTunnelObject) SetRadius(value float64) { + objc.Call[objc.Void](l_, objc.Sel("setRadius:"), value) +} + +func (l_ LightTunnelObject) HasRadius() bool { + return l_.RespondsToSelector(objc.Sel("radius")) +} + +// [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/coreimage/cilighttunnel/3600173-radius?language=objc +func (l_ LightTunnelObject) Radius() float64 { + rv := objc.Call[float64](l_, objc.Sel("radius")) + return rv +} diff --git a/macos/coreimage/line_overlay.gen.go b/macos/coreimage/line_overlay_protocol.gen.go similarity index 76% rename from macos/coreimage/line_overlay.gen.go rename to macos/coreimage/line_overlay_protocol.gen.go index 55db2a3e..5c4972a4 100644 --- a/macos/coreimage/line_overlay.gen.go +++ b/macos/coreimage/line_overlay_protocol.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package coreimage @@ -15,24 +15,24 @@ type PLineOverlay interface { HasSetInputImage() bool // optional - InputImage() IImage + InputImage() Image HasInputImage() bool // optional - SetEdgeIntensity(value float64) - HasSetEdgeIntensity() bool + SetContrast(value float64) + HasSetContrast() bool // optional - EdgeIntensity() float64 - HasEdgeIntensity() bool + Contrast() float64 + HasContrast() bool // optional - SetNRNoiseLevel(value float64) - HasSetNRNoiseLevel() bool + SetThreshold(value float64) + HasSetThreshold() bool // optional - NRNoiseLevel() float64 - HasNRNoiseLevel() bool + Threshold() float64 + HasThreshold() bool // optional SetNRSharpness(value float64) @@ -43,161 +43,164 @@ type PLineOverlay interface { HasNRSharpness() bool // optional - SetContrast(value float64) - HasSetContrast() bool + SetNRNoiseLevel(value float64) + HasSetNRNoiseLevel() bool // optional - Contrast() float64 - HasContrast() bool + NRNoiseLevel() float64 + HasNRNoiseLevel() bool // optional - SetThreshold(value float64) - HasSetThreshold() bool + SetEdgeIntensity(value float64) + HasSetEdgeIntensity() bool // optional - Threshold() float64 - HasThreshold() bool + EdgeIntensity() float64 + HasEdgeIntensity() bool } -// A concrete type wrapper for the [PLineOverlay] protocol. -type LineOverlayWrapper struct { +// ensure impl type implements protocol interface +var _ PLineOverlay = (*LineOverlayObject)(nil) + +// A concrete type for the [PLineOverlay] protocol. +type LineOverlayObject struct { objc.Object } -func (l_ LineOverlayWrapper) HasSetInputImage() bool { +func (l_ LineOverlayObject) 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/cilineoverlay/3228533-inputimage?language=objc -func (l_ LineOverlayWrapper) SetInputImage(value IImage) { +func (l_ LineOverlayObject) SetInputImage(value Image) { objc.Call[objc.Void](l_, objc.Sel("setInputImage:"), objc.Ptr(value)) } -func (l_ LineOverlayWrapper) HasInputImage() bool { +func (l_ LineOverlayObject) 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/cilineoverlay/3228533-inputimage?language=objc -func (l_ LineOverlayWrapper) InputImage() Image { +func (l_ LineOverlayObject) InputImage() Image { rv := objc.Call[Image](l_, objc.Sel("inputImage")) return rv } -func (l_ LineOverlayWrapper) HasSetEdgeIntensity() bool { - return l_.RespondsToSelector(objc.Sel("setEdgeIntensity:")) +func (l_ LineOverlayObject) HasSetContrast() bool { + return l_.RespondsToSelector(objc.Sel("setContrast:")) } -// The accentuation factor of the Sobel gradient information when 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/3228532-edgeintensity?language=objc -func (l_ LineOverlayWrapper) SetEdgeIntensity(value float64) { - objc.Call[objc.Void](l_, objc.Sel("setEdgeIntensity:"), value) +// [Full Topic]: https://developer.apple.com/documentation/coreimage/cilineoverlay/3228531-contrast?language=objc +func (l_ LineOverlayObject) SetContrast(value float64) { + objc.Call[objc.Void](l_, objc.Sel("setContrast:"), value) } -func (l_ LineOverlayWrapper) HasEdgeIntensity() bool { - return l_.RespondsToSelector(objc.Sel("edgeIntensity")) +func (l_ LineOverlayObject) HasContrast() bool { + return l_.RespondsToSelector(objc.Sel("contrast")) } -// The accentuation factor of the Sobel gradient information when 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/3228532-edgeintensity?language=objc -func (l_ LineOverlayWrapper) EdgeIntensity() float64 { - rv := objc.Call[float64](l_, objc.Sel("edgeIntensity")) +// [Full Topic]: https://developer.apple.com/documentation/coreimage/cilineoverlay/3228531-contrast?language=objc +func (l_ LineOverlayObject) Contrast() float64 { + rv := objc.Call[float64](l_, objc.Sel("contrast")) return rv } -func (l_ LineOverlayWrapper) HasSetNRNoiseLevel() bool { - return l_.RespondsToSelector(objc.Sel("setNRNoiseLevel:")) +func (l_ LineOverlayObject) HasSetThreshold() bool { + return l_.RespondsToSelector(objc.Sel("setThreshold:")) } -// The noise level of the image, used with camera data, that's removed before 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/3228529-nrnoiselevel?language=objc -func (l_ LineOverlayWrapper) SetNRNoiseLevel(value float64) { - objc.Call[objc.Void](l_, objc.Sel("setNRNoiseLevel:"), value) +// [Full Topic]: https://developer.apple.com/documentation/coreimage/cilineoverlay/3228534-threshold?language=objc +func (l_ LineOverlayObject) SetThreshold(value float64) { + objc.Call[objc.Void](l_, objc.Sel("setThreshold:"), value) } -func (l_ LineOverlayWrapper) HasNRNoiseLevel() bool { - return l_.RespondsToSelector(objc.Sel("NRNoiseLevel")) +func (l_ LineOverlayObject) HasThreshold() bool { + return l_.RespondsToSelector(objc.Sel("threshold")) } -// The noise level of the image, used with camera data, that's removed before 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/3228529-nrnoiselevel?language=objc -func (l_ LineOverlayWrapper) NRNoiseLevel() float64 { - rv := objc.Call[float64](l_, objc.Sel("NRNoiseLevel")) +// [Full Topic]: https://developer.apple.com/documentation/coreimage/cilineoverlay/3228534-threshold?language=objc +func (l_ LineOverlayObject) Threshold() float64 { + rv := objc.Call[float64](l_, objc.Sel("threshold")) return rv } -func (l_ LineOverlayWrapper) HasSetNRSharpness() bool { +func (l_ LineOverlayObject) HasSetNRSharpness() bool { return l_.RespondsToSelector(objc.Sel("setNRSharpness:")) } // The amount of sharpening done when removing noise in the image before tracing the edges of the image. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/coreimage/cilineoverlay/3228530-nrsharpness?language=objc -func (l_ LineOverlayWrapper) SetNRSharpness(value float64) { +func (l_ LineOverlayObject) SetNRSharpness(value float64) { objc.Call[objc.Void](l_, objc.Sel("setNRSharpness:"), value) } -func (l_ LineOverlayWrapper) HasNRSharpness() bool { +func (l_ LineOverlayObject) HasNRSharpness() bool { return l_.RespondsToSelector(objc.Sel("NRSharpness")) } // The amount of sharpening done when removing noise in the image before tracing the edges of the image. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/coreimage/cilineoverlay/3228530-nrsharpness?language=objc -func (l_ LineOverlayWrapper) NRSharpness() float64 { +func (l_ LineOverlayObject) NRSharpness() float64 { rv := objc.Call[float64](l_, objc.Sel("NRSharpness")) return rv } -func (l_ LineOverlayWrapper) HasSetContrast() bool { - return l_.RespondsToSelector(objc.Sel("setContrast:")) +func (l_ LineOverlayObject) HasSetNRNoiseLevel() bool { + return l_.RespondsToSelector(objc.Sel("setNRNoiseLevel:")) } -// The amount of antialiasing to use on the edges produced by this filter. [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/3228531-contrast?language=objc -func (l_ LineOverlayWrapper) SetContrast(value float64) { - objc.Call[objc.Void](l_, objc.Sel("setContrast:"), value) +// [Full Topic]: https://developer.apple.com/documentation/coreimage/cilineoverlay/3228529-nrnoiselevel?language=objc +func (l_ LineOverlayObject) SetNRNoiseLevel(value float64) { + objc.Call[objc.Void](l_, objc.Sel("setNRNoiseLevel:"), value) } -func (l_ LineOverlayWrapper) HasContrast() bool { - return l_.RespondsToSelector(objc.Sel("contrast")) +func (l_ LineOverlayObject) HasNRNoiseLevel() bool { + return l_.RespondsToSelector(objc.Sel("NRNoiseLevel")) } -// The amount of antialiasing to use on the edges produced by this filter. [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/3228531-contrast?language=objc -func (l_ LineOverlayWrapper) Contrast() float64 { - rv := objc.Call[float64](l_, objc.Sel("contrast")) +// [Full Topic]: https://developer.apple.com/documentation/coreimage/cilineoverlay/3228529-nrnoiselevel?language=objc +func (l_ LineOverlayObject) NRNoiseLevel() float64 { + rv := objc.Call[float64](l_, objc.Sel("NRNoiseLevel")) return rv } -func (l_ LineOverlayWrapper) HasSetThreshold() bool { - return l_.RespondsToSelector(objc.Sel("setThreshold:")) +func (l_ LineOverlayObject) HasSetEdgeIntensity() bool { + return l_.RespondsToSelector(objc.Sel("setEdgeIntensity:")) } -// A value that determines edge visibility. [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/3228534-threshold?language=objc -func (l_ LineOverlayWrapper) SetThreshold(value float64) { - objc.Call[objc.Void](l_, objc.Sel("setThreshold:"), value) +// [Full Topic]: https://developer.apple.com/documentation/coreimage/cilineoverlay/3228532-edgeintensity?language=objc +func (l_ LineOverlayObject) SetEdgeIntensity(value float64) { + objc.Call[objc.Void](l_, objc.Sel("setEdgeIntensity:"), value) } -func (l_ LineOverlayWrapper) HasThreshold() bool { - return l_.RespondsToSelector(objc.Sel("threshold")) +func (l_ LineOverlayObject) HasEdgeIntensity() bool { + return l_.RespondsToSelector(objc.Sel("edgeIntensity")) } -// A value that determines edge visibility. [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/3228534-threshold?language=objc -func (l_ LineOverlayWrapper) Threshold() float64 { - rv := objc.Call[float64](l_, objc.Sel("threshold")) +// [Full Topic]: https://developer.apple.com/documentation/coreimage/cilineoverlay/3228532-edgeintensity?language=objc +func (l_ LineOverlayObject) EdgeIntensity() float64 { + rv := objc.Call[float64](l_, objc.Sel("edgeIntensity")) return rv } diff --git a/macos/coreimage/line_screen.gen.go b/macos/coreimage/line_screen_protocol.gen.go similarity index 75% rename from macos/coreimage/line_screen.gen.go rename to macos/coreimage/line_screen_protocol.gen.go index cefc9701..56e5f5f7 100644 --- a/macos/coreimage/line_screen.gen.go +++ b/macos/coreimage/line_screen_protocol.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package coreimage @@ -12,20 +12,20 @@ import ( // [Full Topic]: https://developer.apple.com/documentation/coreimage/cilinescreen?language=objc type PLineScreen interface { // optional - SetWidth(value float64) - HasSetWidth() bool + SetCenter(value coregraphics.Point) + HasSetCenter() bool // optional - Width() float64 - HasWidth() bool + Center() coregraphics.Point + HasCenter() bool // optional - SetInputImage(value Image) - HasSetInputImage() bool + SetWidth(value float64) + HasSetWidth() bool // optional - InputImage() IImage - HasInputImage() bool + Width() float64 + HasWidth() bool // optional SetSharpness(value float64) @@ -36,138 +36,141 @@ type PLineScreen interface { HasSharpness() bool // optional - SetAngle(value float64) - HasSetAngle() bool + SetInputImage(value Image) + HasSetInputImage() bool // optional - Angle() float64 - HasAngle() bool + InputImage() Image + HasInputImage() bool // optional - SetCenter(value coregraphics.Point) - HasSetCenter() bool + SetAngle(value float64) + HasSetAngle() bool // optional - Center() coregraphics.Point - HasCenter() bool + Angle() float64 + HasAngle() bool } -// A concrete type wrapper for the [PLineScreen] protocol. -type LineScreenWrapper struct { +// ensure impl type implements protocol interface +var _ PLineScreen = (*LineScreenObject)(nil) + +// A concrete type for the [PLineScreen] protocol. +type LineScreenObject struct { objc.Object } -func (l_ LineScreenWrapper) HasSetWidth() bool { - return l_.RespondsToSelector(objc.Sel("setWidth:")) +func (l_ LineScreenObject) HasSetCenter() bool { + return l_.RespondsToSelector(objc.Sel("setCenter:")) } -// The distance between lines in the pattern. [Full Topic] +// 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/3228540-width?language=objc -func (l_ LineScreenWrapper) SetWidth(value float64) { - objc.Call[objc.Void](l_, objc.Sel("setWidth:"), value) +// [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_ LineScreenWrapper) HasWidth() bool { - return l_.RespondsToSelector(objc.Sel("width")) +func (l_ LineScreenObject) HasCenter() bool { + return l_.RespondsToSelector(objc.Sel("center")) } -// The distance between lines in the pattern. [Full Topic] +// 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/3228540-width?language=objc -func (l_ LineScreenWrapper) Width() float64 { - rv := objc.Call[float64](l_, objc.Sel("width")) +// [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_ LineScreenWrapper) HasSetInputImage() bool { - return l_.RespondsToSelector(objc.Sel("setInputImage:")) +func (l_ LineScreenObject) HasSetWidth() bool { + return l_.RespondsToSelector(objc.Sel("setWidth:")) } -// The image to use as an input image. [Full Topic] +// The distance between lines in the pattern. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/cilinescreen/3228538-inputimage?language=objc -func (l_ LineScreenWrapper) SetInputImage(value IImage) { - objc.Call[objc.Void](l_, objc.Sel("setInputImage:"), objc.Ptr(value)) +// [Full Topic]: https://developer.apple.com/documentation/coreimage/cilinescreen/3228540-width?language=objc +func (l_ LineScreenObject) SetWidth(value float64) { + objc.Call[objc.Void](l_, objc.Sel("setWidth:"), value) } -func (l_ LineScreenWrapper) HasInputImage() bool { - return l_.RespondsToSelector(objc.Sel("inputImage")) +func (l_ LineScreenObject) HasWidth() bool { + return l_.RespondsToSelector(objc.Sel("width")) } -// The image to use as an input image. [Full Topic] +// The distance between lines in the pattern. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/cilinescreen/3228538-inputimage?language=objc -func (l_ LineScreenWrapper) InputImage() Image { - rv := objc.Call[Image](l_, objc.Sel("inputImage")) +// [Full Topic]: https://developer.apple.com/documentation/coreimage/cilinescreen/3228540-width?language=objc +func (l_ LineScreenObject) Width() float64 { + rv := objc.Call[float64](l_, objc.Sel("width")) return rv } -func (l_ LineScreenWrapper) HasSetSharpness() bool { +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_ LineScreenWrapper) SetSharpness(value float64) { +func (l_ LineScreenObject) SetSharpness(value float64) { objc.Call[objc.Void](l_, objc.Sel("setSharpness:"), value) } -func (l_ LineScreenWrapper) HasSharpness() bool { +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_ LineScreenWrapper) Sharpness() float64 { +func (l_ LineScreenObject) Sharpness() float64 { rv := objc.Call[float64](l_, objc.Sel("sharpness")) return rv } -func (l_ LineScreenWrapper) HasSetAngle() bool { - return l_.RespondsToSelector(objc.Sel("setAngle:")) +func (l_ LineScreenObject) HasSetInputImage() bool { + return l_.RespondsToSelector(objc.Sel("setInputImage:")) } -// The angle of the pattern. [Full Topic] +// The image to use as an input image. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/cilinescreen/3228536-angle?language=objc -func (l_ LineScreenWrapper) SetAngle(value float64) { - objc.Call[objc.Void](l_, objc.Sel("setAngle:"), value) +// [Full Topic]: https://developer.apple.com/documentation/coreimage/cilinescreen/3228538-inputimage?language=objc +func (l_ LineScreenObject) SetInputImage(value Image) { + objc.Call[objc.Void](l_, objc.Sel("setInputImage:"), objc.Ptr(value)) } -func (l_ LineScreenWrapper) HasAngle() bool { - return l_.RespondsToSelector(objc.Sel("angle")) +func (l_ LineScreenObject) HasInputImage() bool { + return l_.RespondsToSelector(objc.Sel("inputImage")) } -// The angle of the pattern. [Full Topic] +// The image to use as an input image. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/cilinescreen/3228536-angle?language=objc -func (l_ LineScreenWrapper) Angle() float64 { - rv := objc.Call[float64](l_, objc.Sel("angle")) +// [Full Topic]: https://developer.apple.com/documentation/coreimage/cilinescreen/3228538-inputimage?language=objc +func (l_ LineScreenObject) InputImage() Image { + rv := objc.Call[Image](l_, objc.Sel("inputImage")) return rv } -func (l_ LineScreenWrapper) HasSetCenter() bool { - return l_.RespondsToSelector(objc.Sel("setCenter:")) +func (l_ LineScreenObject) HasSetAngle() bool { + return l_.RespondsToSelector(objc.Sel("setAngle:")) } -// The x and y position to use as the center of the line screen pattern. [Full Topic] +// The angle of the pattern. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/cilinescreen/3228537-center?language=objc -func (l_ LineScreenWrapper) SetCenter(value coregraphics.Point) { - objc.Call[objc.Void](l_, objc.Sel("setCenter:"), value) +// [Full Topic]: https://developer.apple.com/documentation/coreimage/cilinescreen/3228536-angle?language=objc +func (l_ LineScreenObject) SetAngle(value float64) { + objc.Call[objc.Void](l_, objc.Sel("setAngle:"), value) } -func (l_ LineScreenWrapper) HasCenter() bool { - return l_.RespondsToSelector(objc.Sel("center")) +func (l_ LineScreenObject) HasAngle() bool { + return l_.RespondsToSelector(objc.Sel("angle")) } -// The x and y position to use as the center of the line screen pattern. [Full Topic] +// The angle of the pattern. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/cilinescreen/3228537-center?language=objc -func (l_ LineScreenWrapper) Center() coregraphics.Point { - rv := objc.Call[coregraphics.Point](l_, objc.Sel("center")) +// [Full Topic]: https://developer.apple.com/documentation/coreimage/cilinescreen/3228536-angle?language=objc +func (l_ LineScreenObject) Angle() float64 { + rv := objc.Call[float64](l_, objc.Sel("angle")) return rv } diff --git a/macos/coreimage/linear_gradient.gen.go b/macos/coreimage/linear_gradient_protocol.gen.go similarity index 73% rename from macos/coreimage/linear_gradient.gen.go rename to macos/coreimage/linear_gradient_protocol.gen.go index faf5d9a5..9616dd5b 100644 --- a/macos/coreimage/linear_gradient.gen.go +++ b/macos/coreimage/linear_gradient_protocol.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package coreimage @@ -12,12 +12,12 @@ import ( // [Full Topic]: https://developer.apple.com/documentation/coreimage/cilineargradient?language=objc type PLinearGradient interface { // optional - SetPoint1(value coregraphics.Point) - HasSetPoint1() bool + SetColor0(value Color) + HasSetColor0() bool // optional - Point1() coregraphics.Point - HasPoint1() bool + Color0() Color + HasColor0() bool // optional SetPoint0(value coregraphics.Point) @@ -28,115 +28,118 @@ type PLinearGradient interface { HasPoint0() bool // optional - SetColor0(value Color) - HasSetColor0() bool + SetColor1(value Color) + HasSetColor1() bool // optional - Color0() IColor - HasColor0() bool + Color1() Color + HasColor1() bool // optional - SetColor1(value Color) - HasSetColor1() bool + SetPoint1(value coregraphics.Point) + HasSetPoint1() bool // optional - Color1() IColor - HasColor1() bool + Point1() coregraphics.Point + HasPoint1() bool } -// A concrete type wrapper for the [PLinearGradient] protocol. -type LinearGradientWrapper struct { +// ensure impl type implements protocol interface +var _ PLinearGradient = (*LinearGradientObject)(nil) + +// A concrete type for the [PLinearGradient] protocol. +type LinearGradientObject struct { objc.Object } -func (l_ LinearGradientWrapper) HasSetPoint1() bool { - return l_.RespondsToSelector(objc.Sel("setPoint1:")) +func (l_ LinearGradientObject) HasSetColor0() bool { + return l_.RespondsToSelector(objc.Sel("setColor0:")) } -// The ending position of the gradient. [Full Topic] +// The first color to use in the gradient. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/cilineargradient/3228545-point1?language=objc -func (l_ LinearGradientWrapper) SetPoint1(value coregraphics.Point) { - objc.Call[objc.Void](l_, objc.Sel("setPoint1:"), value) +// [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:"), objc.Ptr(value)) } -func (l_ LinearGradientWrapper) HasPoint1() bool { - return l_.RespondsToSelector(objc.Sel("point1")) +func (l_ LinearGradientObject) HasColor0() bool { + return l_.RespondsToSelector(objc.Sel("color0")) } -// The ending position of the gradient. [Full Topic] +// The first color to use in the gradient. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/cilineargradient/3228545-point1?language=objc -func (l_ LinearGradientWrapper) Point1() coregraphics.Point { - rv := objc.Call[coregraphics.Point](l_, objc.Sel("point1")) +// [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_ LinearGradientWrapper) HasSetPoint0() bool { +func (l_ LinearGradientObject) HasSetPoint0() bool { return l_.RespondsToSelector(objc.Sel("setPoint0:")) } // The starting position of the gradient. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/coreimage/cilineargradient/3228544-point0?language=objc -func (l_ LinearGradientWrapper) SetPoint0(value coregraphics.Point) { +func (l_ LinearGradientObject) SetPoint0(value coregraphics.Point) { objc.Call[objc.Void](l_, objc.Sel("setPoint0:"), value) } -func (l_ LinearGradientWrapper) HasPoint0() bool { +func (l_ LinearGradientObject) HasPoint0() bool { return l_.RespondsToSelector(objc.Sel("point0")) } // The starting position of the gradient. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/coreimage/cilineargradient/3228544-point0?language=objc -func (l_ LinearGradientWrapper) Point0() coregraphics.Point { +func (l_ LinearGradientObject) Point0() coregraphics.Point { rv := objc.Call[coregraphics.Point](l_, objc.Sel("point0")) return rv } -func (l_ LinearGradientWrapper) HasSetColor0() bool { - return l_.RespondsToSelector(objc.Sel("setColor0:")) +func (l_ LinearGradientObject) HasSetColor1() bool { + return l_.RespondsToSelector(objc.Sel("setColor1:")) } -// The first color to use in the gradient. [Full Topic] +// The second color to use in the gradient. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/cilineargradient/3228542-color0?language=objc -func (l_ LinearGradientWrapper) SetColor0(value IColor) { - objc.Call[objc.Void](l_, objc.Sel("setColor0:"), objc.Ptr(value)) +// [Full Topic]: https://developer.apple.com/documentation/coreimage/cilineargradient/3228543-color1?language=objc +func (l_ LinearGradientObject) SetColor1(value Color) { + objc.Call[objc.Void](l_, objc.Sel("setColor1:"), objc.Ptr(value)) } -func (l_ LinearGradientWrapper) HasColor0() bool { - return l_.RespondsToSelector(objc.Sel("color0")) +func (l_ LinearGradientObject) HasColor1() bool { + return l_.RespondsToSelector(objc.Sel("color1")) } -// The first color to use in the gradient. [Full Topic] +// The second color to use in the gradient. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/cilineargradient/3228542-color0?language=objc -func (l_ LinearGradientWrapper) Color0() Color { - rv := objc.Call[Color](l_, objc.Sel("color0")) +// [Full Topic]: https://developer.apple.com/documentation/coreimage/cilineargradient/3228543-color1?language=objc +func (l_ LinearGradientObject) Color1() Color { + rv := objc.Call[Color](l_, objc.Sel("color1")) return rv } -func (l_ LinearGradientWrapper) HasSetColor1() bool { - return l_.RespondsToSelector(objc.Sel("setColor1:")) +func (l_ LinearGradientObject) HasSetPoint1() bool { + return l_.RespondsToSelector(objc.Sel("setPoint1:")) } -// The second 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/3228543-color1?language=objc -func (l_ LinearGradientWrapper) SetColor1(value IColor) { - objc.Call[objc.Void](l_, objc.Sel("setColor1:"), objc.Ptr(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_ LinearGradientWrapper) HasColor1() bool { - return l_.RespondsToSelector(objc.Sel("color1")) +func (l_ LinearGradientObject) HasPoint1() bool { + return l_.RespondsToSelector(objc.Sel("point1")) } -// The second 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/3228543-color1?language=objc -func (l_ LinearGradientWrapper) Color1() Color { - rv := objc.Call[Color](l_, objc.Sel("color1")) +// [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/linear_to_srgb_tone_curve.gen.go b/macos/coreimage/linear_to_srgb_tone_curve_protocol.gen.go similarity index 65% rename from macos/coreimage/linear_to_srgb_tone_curve.gen.go rename to macos/coreimage/linear_to_srgb_tone_curve_protocol.gen.go index 4b9a6de0..6a881e95 100644 --- a/macos/coreimage/linear_to_srgb_tone_curve.gen.go +++ b/macos/coreimage/linear_to_srgb_tone_curve_protocol.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package coreimage @@ -15,34 +15,37 @@ type PLinearToSRGBToneCurve interface { HasSetInputImage() bool // optional - InputImage() IImage + InputImage() Image HasInputImage() bool } -// A concrete type wrapper for the [PLinearToSRGBToneCurve] protocol. -type LinearToSRGBToneCurveWrapper struct { +// ensure impl type implements protocol interface +var _ PLinearToSRGBToneCurve = (*LinearToSRGBToneCurveObject)(nil) + +// A concrete type for the [PLinearToSRGBToneCurve] protocol. +type LinearToSRGBToneCurveObject struct { objc.Object } -func (l_ LinearToSRGBToneCurveWrapper) HasSetInputImage() bool { +func (l_ LinearToSRGBToneCurveObject) 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/cilineartosrgbtonecurve/3228547-inputimage?language=objc -func (l_ LinearToSRGBToneCurveWrapper) SetInputImage(value IImage) { +func (l_ LinearToSRGBToneCurveObject) SetInputImage(value Image) { objc.Call[objc.Void](l_, objc.Sel("setInputImage:"), objc.Ptr(value)) } -func (l_ LinearToSRGBToneCurveWrapper) HasInputImage() bool { +func (l_ LinearToSRGBToneCurveObject) 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/cilineartosrgbtonecurve/3228547-inputimage?language=objc -func (l_ LinearToSRGBToneCurveWrapper) InputImage() Image { +func (l_ LinearToSRGBToneCurveObject) InputImage() Image { rv := objc.Call[Image](l_, objc.Sel("inputImage")) return rv } diff --git a/macos/coreimage/mask_to_alpha.gen.go b/macos/coreimage/mask_to_alpha_protocol.gen.go similarity index 68% rename from macos/coreimage/mask_to_alpha.gen.go rename to macos/coreimage/mask_to_alpha_protocol.gen.go index c05c07e6..eacf292e 100644 --- a/macos/coreimage/mask_to_alpha.gen.go +++ b/macos/coreimage/mask_to_alpha_protocol.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package coreimage @@ -15,34 +15,37 @@ type PMaskToAlpha interface { HasSetInputImage() bool // optional - InputImage() IImage + InputImage() Image HasInputImage() bool } -// A concrete type wrapper for the [PMaskToAlpha] protocol. -type MaskToAlphaWrapper struct { +// ensure impl type implements protocol interface +var _ PMaskToAlpha = (*MaskToAlphaObject)(nil) + +// A concrete type for the [PMaskToAlpha] protocol. +type MaskToAlphaObject struct { objc.Object } -func (m_ MaskToAlphaWrapper) HasSetInputImage() bool { +func (m_ MaskToAlphaObject) HasSetInputImage() bool { return m_.RespondsToSelector(objc.Sel("setInputImage:")) } // The image to use as an input image. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/coreimage/cimasktoalpha/3228549-inputimage?language=objc -func (m_ MaskToAlphaWrapper) SetInputImage(value IImage) { +func (m_ MaskToAlphaObject) SetInputImage(value Image) { objc.Call[objc.Void](m_, objc.Sel("setInputImage:"), objc.Ptr(value)) } -func (m_ MaskToAlphaWrapper) HasInputImage() bool { +func (m_ MaskToAlphaObject) HasInputImage() bool { return m_.RespondsToSelector(objc.Sel("inputImage")) } // The image to use as an input image. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/coreimage/cimasktoalpha/3228549-inputimage?language=objc -func (m_ MaskToAlphaWrapper) InputImage() Image { +func (m_ MaskToAlphaObject) InputImage() Image { rv := objc.Call[Image](m_, objc.Sel("inputImage")) return rv } diff --git a/macos/coreimage/masked_variable_blur.gen.go b/macos/coreimage/masked_variable_blur_protocol.gen.go similarity index 71% rename from macos/coreimage/masked_variable_blur.gen.go rename to macos/coreimage/masked_variable_blur_protocol.gen.go index 97bb3b1a..82e9d5ab 100644 --- a/macos/coreimage/masked_variable_blur.gen.go +++ b/macos/coreimage/masked_variable_blur_protocol.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package coreimage @@ -10,12 +10,20 @@ 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 // optional - InputImage() IImage + InputImage() Image HasInputImage() bool // optional @@ -25,86 +33,81 @@ type PMaskedVariableBlur interface { // optional Radius() float64 HasRadius() bool +} - // optional - SetMask(value Image) - HasSetMask() bool +// ensure impl type implements protocol interface +var _ PMaskedVariableBlur = (*MaskedVariableBlurObject)(nil) - // optional - Mask() IImage - HasMask() bool +// A concrete type for the [PMaskedVariableBlur] protocol. +type MaskedVariableBlurObject struct { + objc.Object } -// A concrete type wrapper for the [PMaskedVariableBlur] protocol. -type MaskedVariableBlurWrapper struct { - objc.Object +func (m_ MaskedVariableBlurObject) HasSetMask() bool { + return m_.RespondsToSelector(objc.Sel("setMask:")) } -func (m_ MaskedVariableBlurWrapper) HasSetInputImage() bool { +// 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:"), objc.Ptr(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:")) } // The image to use as an input image. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/coreimage/cimaskedvariableblur/3228551-inputimage?language=objc -func (m_ MaskedVariableBlurWrapper) SetInputImage(value IImage) { +func (m_ MaskedVariableBlurObject) SetInputImage(value Image) { objc.Call[objc.Void](m_, objc.Sel("setInputImage:"), objc.Ptr(value)) } -func (m_ MaskedVariableBlurWrapper) HasInputImage() bool { +func (m_ MaskedVariableBlurObject) HasInputImage() bool { return m_.RespondsToSelector(objc.Sel("inputImage")) } // The image to use as an input image. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/coreimage/cimaskedvariableblur/3228551-inputimage?language=objc -func (m_ MaskedVariableBlurWrapper) InputImage() Image { +func (m_ MaskedVariableBlurObject) InputImage() Image { rv := objc.Call[Image](m_, objc.Sel("inputImage")) return rv } -func (m_ MaskedVariableBlurWrapper) HasSetRadius() bool { +func (m_ MaskedVariableBlurObject) HasSetRadius() bool { return m_.RespondsToSelector(objc.Sel("setRadius:")) } // The distance from the center of the effect. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/coreimage/cimaskedvariableblur/3228553-radius?language=objc -func (m_ MaskedVariableBlurWrapper) SetRadius(value float64) { +func (m_ MaskedVariableBlurObject) SetRadius(value float64) { objc.Call[objc.Void](m_, objc.Sel("setRadius:"), value) } -func (m_ MaskedVariableBlurWrapper) HasRadius() bool { +func (m_ MaskedVariableBlurObject) HasRadius() bool { return m_.RespondsToSelector(objc.Sel("radius")) } // The distance from the center of the effect. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/coreimage/cimaskedvariableblur/3228553-radius?language=objc -func (m_ MaskedVariableBlurWrapper) Radius() float64 { +func (m_ MaskedVariableBlurObject) Radius() float64 { rv := objc.Call[float64](m_, objc.Sel("radius")) return rv } - -func (m_ MaskedVariableBlurWrapper) 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_ MaskedVariableBlurWrapper) SetMask(value IImage) { - objc.Call[objc.Void](m_, objc.Sel("setMask:"), objc.Ptr(value)) -} - -func (m_ MaskedVariableBlurWrapper) 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_ MaskedVariableBlurWrapper) Mask() Image { - rv := objc.Call[Image](m_, objc.Sel("mask")) - return rv -} diff --git a/macos/coreimage/maximum_component.gen.go b/macos/coreimage/maximum_component_protocol.gen.go similarity index 67% rename from macos/coreimage/maximum_component.gen.go rename to macos/coreimage/maximum_component_protocol.gen.go index 4654e24b..c1644f32 100644 --- a/macos/coreimage/maximum_component.gen.go +++ b/macos/coreimage/maximum_component_protocol.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package coreimage @@ -15,34 +15,37 @@ type PMaximumComponent interface { HasSetInputImage() bool // optional - InputImage() IImage + InputImage() Image HasInputImage() bool } -// A concrete type wrapper for the [PMaximumComponent] protocol. -type MaximumComponentWrapper struct { +// ensure impl type implements protocol interface +var _ PMaximumComponent = (*MaximumComponentObject)(nil) + +// A concrete type for the [PMaximumComponent] protocol. +type MaximumComponentObject struct { objc.Object } -func (m_ MaximumComponentWrapper) HasSetInputImage() bool { +func (m_ MaximumComponentObject) HasSetInputImage() bool { return m_.RespondsToSelector(objc.Sel("setInputImage:")) } // The image to use as an input image. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/coreimage/cimaximumcomponent/3228555-inputimage?language=objc -func (m_ MaximumComponentWrapper) SetInputImage(value IImage) { +func (m_ MaximumComponentObject) SetInputImage(value Image) { objc.Call[objc.Void](m_, objc.Sel("setInputImage:"), objc.Ptr(value)) } -func (m_ MaximumComponentWrapper) HasInputImage() bool { +func (m_ MaximumComponentObject) HasInputImage() bool { return m_.RespondsToSelector(objc.Sel("inputImage")) } // The image to use as an input image. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/coreimage/cimaximumcomponent/3228555-inputimage?language=objc -func (m_ MaximumComponentWrapper) InputImage() Image { +func (m_ MaximumComponentObject) InputImage() Image { rv := objc.Call[Image](m_, objc.Sel("inputImage")) return rv } diff --git a/macos/coreimage/median.gen.go b/macos/coreimage/median_protocol.gen.go similarity index 69% rename from macos/coreimage/median.gen.go rename to macos/coreimage/median_protocol.gen.go index c06b92a1..19b52df7 100644 --- a/macos/coreimage/median.gen.go +++ b/macos/coreimage/median_protocol.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package coreimage @@ -15,34 +15,37 @@ type PMedian interface { HasSetInputImage() bool // optional - InputImage() IImage + InputImage() Image HasInputImage() bool } -// A concrete type wrapper for the [PMedian] protocol. -type MedianWrapper struct { +// ensure impl type implements protocol interface +var _ PMedian = (*MedianObject)(nil) + +// A concrete type for the [PMedian] protocol. +type MedianObject struct { objc.Object } -func (m_ MedianWrapper) HasSetInputImage() bool { +func (m_ MedianObject) HasSetInputImage() bool { return m_.RespondsToSelector(objc.Sel("setInputImage:")) } // The image to use as an input image. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/coreimage/cimedian/3228557-inputimage?language=objc -func (m_ MedianWrapper) SetInputImage(value IImage) { +func (m_ MedianObject) SetInputImage(value Image) { objc.Call[objc.Void](m_, objc.Sel("setInputImage:"), objc.Ptr(value)) } -func (m_ MedianWrapper) HasInputImage() bool { +func (m_ MedianObject) HasInputImage() bool { return m_.RespondsToSelector(objc.Sel("inputImage")) } // The image to use as an input image. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/coreimage/cimedian/3228557-inputimage?language=objc -func (m_ MedianWrapper) InputImage() Image { +func (m_ MedianObject) InputImage() Image { rv := objc.Call[Image](m_, objc.Sel("inputImage")) return rv } diff --git a/macos/coreimage/mesh_generator.gen.go b/macos/coreimage/mesh_generator_protocol.gen.go similarity index 72% rename from macos/coreimage/mesh_generator.gen.go rename to macos/coreimage/mesh_generator_protocol.gen.go index ec4b8892..5a305178 100644 --- a/macos/coreimage/mesh_generator.gen.go +++ b/macos/coreimage/mesh_generator_protocol.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package coreimage @@ -10,14 +10,6 @@ import ( // // [Full Topic]: https://developer.apple.com/documentation/coreimage/cimeshgenerator?language=objc type PMeshGenerator interface { - // optional - SetColor(value Color) - HasSetColor() bool - - // optional - Color() IColor - HasColor() bool - // optional SetWidth(value float64) HasSetWidth() bool @@ -26,85 +18,96 @@ type PMeshGenerator interface { Width() float64 HasWidth() bool + // optional + SetColor(value Color) + HasSetColor() bool + + // optional + Color() Color + HasColor() bool + // optional SetMesh(value []objc.Object) HasSetMesh() bool // optional - Mesh() []objc.IObject + Mesh() []objc.Object HasMesh() bool } -// A concrete type wrapper for the [PMeshGenerator] protocol. -type MeshGeneratorWrapper struct { +// ensure impl type implements protocol interface +var _ PMeshGenerator = (*MeshGeneratorObject)(nil) + +// A concrete type for the [PMeshGenerator] protocol. +type MeshGeneratorObject struct { objc.Object } -func (m_ MeshGeneratorWrapper) HasSetColor() bool { - return m_.RespondsToSelector(objc.Sel("setColor:")) +func (m_ MeshGeneratorObject) HasSetWidth() bool { + return m_.RespondsToSelector(objc.Sel("setWidth:")) } -// The color of the rendered mesh. [Full Topic] +// The width of the effect. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/cimeshgenerator/3228559-color?language=objc -func (m_ MeshGeneratorWrapper) SetColor(value IColor) { - objc.Call[objc.Void](m_, objc.Sel("setColor:"), objc.Ptr(value)) +// [Full Topic]: https://developer.apple.com/documentation/coreimage/cimeshgenerator/3228561-width?language=objc +func (m_ MeshGeneratorObject) SetWidth(value float64) { + objc.Call[objc.Void](m_, objc.Sel("setWidth:"), value) } -func (m_ MeshGeneratorWrapper) HasColor() bool { - return m_.RespondsToSelector(objc.Sel("color")) +func (m_ MeshGeneratorObject) HasWidth() bool { + return m_.RespondsToSelector(objc.Sel("width")) } -// The color of the rendered mesh. [Full Topic] +// The width of the effect. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/cimeshgenerator/3228559-color?language=objc -func (m_ MeshGeneratorWrapper) Color() Color { - rv := objc.Call[Color](m_, objc.Sel("color")) +// [Full Topic]: https://developer.apple.com/documentation/coreimage/cimeshgenerator/3228561-width?language=objc +func (m_ MeshGeneratorObject) Width() float64 { + rv := objc.Call[float64](m_, objc.Sel("width")) return rv } -func (m_ MeshGeneratorWrapper) HasSetWidth() bool { - return m_.RespondsToSelector(objc.Sel("setWidth:")) +func (m_ MeshGeneratorObject) HasSetColor() bool { + return m_.RespondsToSelector(objc.Sel("setColor:")) } -// The width of the effect. [Full Topic] +// The color of the rendered mesh. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/cimeshgenerator/3228561-width?language=objc -func (m_ MeshGeneratorWrapper) SetWidth(value float64) { - objc.Call[objc.Void](m_, objc.Sel("setWidth:"), value) +// [Full Topic]: https://developer.apple.com/documentation/coreimage/cimeshgenerator/3228559-color?language=objc +func (m_ MeshGeneratorObject) SetColor(value Color) { + objc.Call[objc.Void](m_, objc.Sel("setColor:"), objc.Ptr(value)) } -func (m_ MeshGeneratorWrapper) HasWidth() bool { - return m_.RespondsToSelector(objc.Sel("width")) +func (m_ MeshGeneratorObject) HasColor() bool { + return m_.RespondsToSelector(objc.Sel("color")) } -// The width of the effect. [Full Topic] +// The color of the rendered mesh. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/cimeshgenerator/3228561-width?language=objc -func (m_ MeshGeneratorWrapper) Width() float64 { - rv := objc.Call[float64](m_, objc.Sel("width")) +// [Full Topic]: https://developer.apple.com/documentation/coreimage/cimeshgenerator/3228559-color?language=objc +func (m_ MeshGeneratorObject) Color() Color { + rv := objc.Call[Color](m_, objc.Sel("color")) return rv } -func (m_ MeshGeneratorWrapper) HasSetMesh() bool { +func (m_ MeshGeneratorObject) HasSetMesh() bool { return m_.RespondsToSelector(objc.Sel("setMesh:")) } // An array that describes the mesh to render. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/coreimage/cimeshgenerator/3228560-mesh?language=objc -func (m_ MeshGeneratorWrapper) SetMesh(value []objc.IObject) { +func (m_ MeshGeneratorObject) SetMesh(value []objc.Object) { objc.Call[objc.Void](m_, objc.Sel("setMesh:"), value) } -func (m_ MeshGeneratorWrapper) HasMesh() bool { +func (m_ MeshGeneratorObject) HasMesh() bool { return m_.RespondsToSelector(objc.Sel("mesh")) } // An array that describes the mesh to render. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/coreimage/cimeshgenerator/3228560-mesh?language=objc -func (m_ MeshGeneratorWrapper) Mesh() []objc.Object { +func (m_ MeshGeneratorObject) Mesh() []objc.Object { rv := objc.Call[[]objc.Object](m_, objc.Sel("mesh")) return rv } diff --git a/macos/coreimage/minimum_component.gen.go b/macos/coreimage/minimum_component_protocol.gen.go similarity index 67% rename from macos/coreimage/minimum_component.gen.go rename to macos/coreimage/minimum_component_protocol.gen.go index 7564d7a7..696fd058 100644 --- a/macos/coreimage/minimum_component.gen.go +++ b/macos/coreimage/minimum_component_protocol.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package coreimage @@ -15,34 +15,37 @@ type PMinimumComponent interface { HasSetInputImage() bool // optional - InputImage() IImage + InputImage() Image HasInputImage() bool } -// A concrete type wrapper for the [PMinimumComponent] protocol. -type MinimumComponentWrapper struct { +// ensure impl type implements protocol interface +var _ PMinimumComponent = (*MinimumComponentObject)(nil) + +// A concrete type for the [PMinimumComponent] protocol. +type MinimumComponentObject struct { objc.Object } -func (m_ MinimumComponentWrapper) HasSetInputImage() bool { +func (m_ MinimumComponentObject) HasSetInputImage() bool { return m_.RespondsToSelector(objc.Sel("setInputImage:")) } // The image to use as an input image. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/coreimage/ciminimumcomponent/3228563-inputimage?language=objc -func (m_ MinimumComponentWrapper) SetInputImage(value IImage) { +func (m_ MinimumComponentObject) SetInputImage(value Image) { objc.Call[objc.Void](m_, objc.Sel("setInputImage:"), objc.Ptr(value)) } -func (m_ MinimumComponentWrapper) HasInputImage() bool { +func (m_ MinimumComponentObject) HasInputImage() bool { return m_.RespondsToSelector(objc.Sel("inputImage")) } // The image to use as an input image. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/coreimage/ciminimumcomponent/3228563-inputimage?language=objc -func (m_ MinimumComponentWrapper) InputImage() Image { +func (m_ MinimumComponentObject) InputImage() Image { rv := objc.Call[Image](m_, objc.Sel("inputImage")) return rv } diff --git a/macos/coreimage/mix.gen.go b/macos/coreimage/mix_protocol.gen.go similarity index 74% rename from macos/coreimage/mix.gen.go rename to macos/coreimage/mix_protocol.gen.go index cd1a9064..b6efe0e3 100644 --- a/macos/coreimage/mix.gen.go +++ b/macos/coreimage/mix_protocol.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package coreimage @@ -10,20 +10,12 @@ import ( // // [Full Topic]: https://developer.apple.com/documentation/coreimage/cimix?language=objc type PMix interface { - // optional - SetInputImage(value Image) - HasSetInputImage() bool - - // optional - InputImage() IImage - HasInputImage() bool - // optional SetBackgroundImage(value Image) HasSetBackgroundImage() bool // optional - BackgroundImage() IImage + BackgroundImage() Image HasBackgroundImage() bool // optional @@ -33,78 +25,89 @@ type PMix interface { // optional Amount() float64 HasAmount() bool -} - -// A concrete type wrapper for the [PMix] protocol. -type MixWrapper struct { - objc.Object -} -func (m_ MixWrapper) HasSetInputImage() bool { - return m_.RespondsToSelector(objc.Sel("setInputImage:")) -} + // optional + SetInputImage(value Image) + HasSetInputImage() bool -// 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_ MixWrapper) SetInputImage(value IImage) { - objc.Call[objc.Void](m_, objc.Sel("setInputImage:"), objc.Ptr(value)) + // optional + InputImage() Image + HasInputImage() bool } -func (m_ MixWrapper) HasInputImage() bool { - return m_.RespondsToSelector(objc.Sel("inputImage")) -} +// ensure impl type implements protocol interface +var _ PMix = (*MixObject)(nil) -// 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_ MixWrapper) InputImage() Image { - rv := objc.Call[Image](m_, objc.Sel("inputImage")) - return rv +// A concrete type for the [PMix] protocol. +type MixObject struct { + objc.Object } -func (m_ MixWrapper) HasSetBackgroundImage() bool { +func (m_ MixObject) HasSetBackgroundImage() bool { return m_.RespondsToSelector(objc.Sel("setBackgroundImage:")) } // The image to use as a background image. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/coreimage/cimix/3228566-backgroundimage?language=objc -func (m_ MixWrapper) SetBackgroundImage(value IImage) { +func (m_ MixObject) SetBackgroundImage(value Image) { objc.Call[objc.Void](m_, objc.Sel("setBackgroundImage:"), objc.Ptr(value)) } -func (m_ MixWrapper) HasBackgroundImage() bool { +func (m_ MixObject) HasBackgroundImage() bool { return m_.RespondsToSelector(objc.Sel("backgroundImage")) } // The image to use as a background image. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/coreimage/cimix/3228566-backgroundimage?language=objc -func (m_ MixWrapper) BackgroundImage() Image { +func (m_ MixObject) BackgroundImage() Image { rv := objc.Call[Image](m_, objc.Sel("backgroundImage")) return rv } -func (m_ MixWrapper) HasSetAmount() bool { +func (m_ MixObject) HasSetAmount() bool { return m_.RespondsToSelector(objc.Sel("setAmount:")) } // The amount of the effect. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/coreimage/cimix/3228565-amount?language=objc -func (m_ MixWrapper) SetAmount(value float64) { +func (m_ MixObject) SetAmount(value float64) { objc.Call[objc.Void](m_, objc.Sel("setAmount:"), value) } -func (m_ MixWrapper) HasAmount() bool { +func (m_ MixObject) HasAmount() bool { return m_.RespondsToSelector(objc.Sel("amount")) } // The amount of the effect. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/coreimage/cimix/3228565-amount?language=objc -func (m_ MixWrapper) Amount() float64 { +func (m_ MixObject) Amount() float64 { rv := objc.Call[float64](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:"), objc.Ptr(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.gen.go b/macos/coreimage/mod_transition_protocol.gen.go similarity index 74% rename from macos/coreimage/mod_transition.gen.go rename to macos/coreimage/mod_transition_protocol.gen.go index b58609b8..3104070d 100644 --- a/macos/coreimage/mod_transition.gen.go +++ b/macos/coreimage/mod_transition_protocol.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package coreimage @@ -12,12 +12,12 @@ import ( // [Full Topic]: https://developer.apple.com/documentation/coreimage/cimodtransition?language=objc type PModTransition interface { // optional - SetCompression(value float64) - HasSetCompression() bool + SetCenter(value coregraphics.Point) + HasSetCenter() bool // optional - Compression() float64 - HasCompression() bool + Center() coregraphics.Point + HasCenter() bool // optional SetRadius(value float64) @@ -28,115 +28,118 @@ type PModTransition interface { HasRadius() bool // optional - SetAngle(value float64) - HasSetAngle() bool + SetCompression(value float64) + HasSetCompression() bool // optional - Angle() float64 - HasAngle() bool + Compression() float64 + HasCompression() bool // optional - SetCenter(value coregraphics.Point) - HasSetCenter() bool + SetAngle(value float64) + HasSetAngle() bool // optional - Center() coregraphics.Point - HasCenter() bool + Angle() float64 + HasAngle() bool } -// A concrete type wrapper for the [PModTransition] protocol. -type ModTransitionWrapper struct { +// ensure impl type implements protocol interface +var _ PModTransition = (*ModTransitionObject)(nil) + +// A concrete type for the [PModTransition] protocol. +type ModTransitionObject struct { objc.Object } -func (m_ ModTransitionWrapper) HasSetCompression() bool { - return m_.RespondsToSelector(objc.Sel("setCompression:")) +func (m_ ModTransitionObject) HasSetCenter() bool { + return m_.RespondsToSelector(objc.Sel("setCenter:")) } -// The amount of stretching applied to the mod hole 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/cimodtransition/3228571-compression?language=objc -func (m_ ModTransitionWrapper) SetCompression(value float64) { - objc.Call[objc.Void](m_, objc.Sel("setCompression:"), value) +// [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_ ModTransitionWrapper) HasCompression() bool { - return m_.RespondsToSelector(objc.Sel("compression")) +func (m_ ModTransitionObject) HasCenter() bool { + return m_.RespondsToSelector(objc.Sel("center")) } -// The amount of stretching applied to the mod hole 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/cimodtransition/3228571-compression?language=objc -func (m_ ModTransitionWrapper) Compression() float64 { - rv := objc.Call[float64](m_, objc.Sel("compression")) +// [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 } -func (m_ ModTransitionWrapper) HasSetRadius() bool { +func (m_ ModTransitionObject) HasSetRadius() bool { return m_.RespondsToSelector(objc.Sel("setRadius:")) } // The radius of the undistorted mod holes in the pattern. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/coreimage/cimodtransition/3228572-radius?language=objc -func (m_ ModTransitionWrapper) SetRadius(value float64) { +func (m_ ModTransitionObject) SetRadius(value float64) { objc.Call[objc.Void](m_, objc.Sel("setRadius:"), value) } -func (m_ ModTransitionWrapper) HasRadius() bool { +func (m_ ModTransitionObject) HasRadius() bool { return m_.RespondsToSelector(objc.Sel("radius")) } // The radius of the undistorted mod holes in the pattern. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/coreimage/cimodtransition/3228572-radius?language=objc -func (m_ ModTransitionWrapper) Radius() float64 { +func (m_ ModTransitionObject) Radius() float64 { rv := objc.Call[float64](m_, objc.Sel("radius")) return rv } -func (m_ ModTransitionWrapper) HasSetAngle() bool { - return m_.RespondsToSelector(objc.Sel("setAngle:")) +func (m_ ModTransitionObject) HasSetCompression() bool { + return m_.RespondsToSelector(objc.Sel("setCompression:")) } -// The angle of the mod hole pattern. [Full Topic] +// The amount of stretching applied to the mod hole pattern. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/cimodtransition/3228569-angle?language=objc -func (m_ ModTransitionWrapper) SetAngle(value float64) { - objc.Call[objc.Void](m_, objc.Sel("setAngle:"), value) +// [Full Topic]: https://developer.apple.com/documentation/coreimage/cimodtransition/3228571-compression?language=objc +func (m_ ModTransitionObject) SetCompression(value float64) { + objc.Call[objc.Void](m_, objc.Sel("setCompression:"), value) } -func (m_ ModTransitionWrapper) HasAngle() bool { - return m_.RespondsToSelector(objc.Sel("angle")) +func (m_ ModTransitionObject) HasCompression() bool { + return m_.RespondsToSelector(objc.Sel("compression")) } -// The angle of the mod hole pattern. [Full Topic] +// The amount of stretching applied to the mod hole pattern. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/cimodtransition/3228569-angle?language=objc -func (m_ ModTransitionWrapper) Angle() float64 { - rv := objc.Call[float64](m_, objc.Sel("angle")) +// [Full Topic]: https://developer.apple.com/documentation/coreimage/cimodtransition/3228571-compression?language=objc +func (m_ ModTransitionObject) Compression() float64 { + rv := objc.Call[float64](m_, objc.Sel("compression")) return rv } -func (m_ ModTransitionWrapper) HasSetCenter() bool { - return m_.RespondsToSelector(objc.Sel("setCenter:")) +func (m_ ModTransitionObject) HasSetAngle() bool { + return m_.RespondsToSelector(objc.Sel("setAngle:")) } -// The x and y position to use as the center of the effect. [Full Topic] +// The angle of the mod hole pattern. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/cimodtransition/3228570-center?language=objc -func (m_ ModTransitionWrapper) SetCenter(value coregraphics.Point) { - objc.Call[objc.Void](m_, objc.Sel("setCenter:"), value) +// [Full Topic]: https://developer.apple.com/documentation/coreimage/cimodtransition/3228569-angle?language=objc +func (m_ ModTransitionObject) SetAngle(value float64) { + objc.Call[objc.Void](m_, objc.Sel("setAngle:"), value) } -func (m_ ModTransitionWrapper) HasCenter() bool { - return m_.RespondsToSelector(objc.Sel("center")) +func (m_ ModTransitionObject) HasAngle() bool { + return m_.RespondsToSelector(objc.Sel("angle")) } -// The x and y position to use as the center of the effect. [Full Topic] +// The angle of the mod hole pattern. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/cimodtransition/3228570-center?language=objc -func (m_ ModTransitionWrapper) Center() coregraphics.Point { - rv := objc.Call[coregraphics.Point](m_, objc.Sel("center")) +// [Full Topic]: https://developer.apple.com/documentation/coreimage/cimodtransition/3228569-angle?language=objc +func (m_ ModTransitionObject) Angle() float64 { + rv := objc.Call[float64](m_, objc.Sel("angle")) return rv } diff --git a/macos/coreimage/morphology_gradient.gen.go b/macos/coreimage/morphology_gradient_protocol.gen.go similarity index 70% rename from macos/coreimage/morphology_gradient.gen.go rename to macos/coreimage/morphology_gradient_protocol.gen.go index 18dd10c8..b98a893b 100644 --- a/macos/coreimage/morphology_gradient.gen.go +++ b/macos/coreimage/morphology_gradient_protocol.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package coreimage @@ -15,7 +15,7 @@ type PMorphologyGradient interface { HasSetInputImage() bool // optional - InputImage() IImage + InputImage() Image HasInputImage() bool // optional @@ -27,53 +27,56 @@ type PMorphologyGradient interface { HasRadius() bool } -// A concrete type wrapper for the [PMorphologyGradient] protocol. -type MorphologyGradientWrapper struct { +// ensure impl type implements protocol interface +var _ PMorphologyGradient = (*MorphologyGradientObject)(nil) + +// A concrete type for the [PMorphologyGradient] protocol. +type MorphologyGradientObject struct { objc.Object } -func (m_ MorphologyGradientWrapper) HasSetInputImage() bool { +func (m_ MorphologyGradientObject) HasSetInputImage() bool { return m_.RespondsToSelector(objc.Sel("setInputImage:")) } // The image to use as an input image. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/coreimage/cimorphologygradient/3228574-inputimage?language=objc -func (m_ MorphologyGradientWrapper) SetInputImage(value IImage) { +func (m_ MorphologyGradientObject) SetInputImage(value Image) { objc.Call[objc.Void](m_, objc.Sel("setInputImage:"), objc.Ptr(value)) } -func (m_ MorphologyGradientWrapper) HasInputImage() bool { +func (m_ MorphologyGradientObject) HasInputImage() bool { return m_.RespondsToSelector(objc.Sel("inputImage")) } // The image to use as an input image. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/coreimage/cimorphologygradient/3228574-inputimage?language=objc -func (m_ MorphologyGradientWrapper) InputImage() Image { +func (m_ MorphologyGradientObject) InputImage() Image { rv := objc.Call[Image](m_, objc.Sel("inputImage")) return rv } -func (m_ MorphologyGradientWrapper) HasSetRadius() bool { +func (m_ MorphologyGradientObject) 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/cimorphologygradient/3228575-radius?language=objc -func (m_ MorphologyGradientWrapper) SetRadius(value float64) { +func (m_ MorphologyGradientObject) SetRadius(value float64) { objc.Call[objc.Void](m_, objc.Sel("setRadius:"), value) } -func (m_ MorphologyGradientWrapper) HasRadius() bool { +func (m_ MorphologyGradientObject) 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/cimorphologygradient/3228575-radius?language=objc -func (m_ MorphologyGradientWrapper) Radius() float64 { +func (m_ MorphologyGradientObject) Radius() float64 { rv := objc.Call[float64](m_, objc.Sel("radius")) return rv } diff --git a/macos/coreimage/morphology_maximum.gen.go b/macos/coreimage/morphology_maximum_protocol.gen.go similarity index 70% rename from macos/coreimage/morphology_maximum.gen.go rename to macos/coreimage/morphology_maximum_protocol.gen.go index e5ec6d2e..67215acd 100644 --- a/macos/coreimage/morphology_maximum.gen.go +++ b/macos/coreimage/morphology_maximum_protocol.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package coreimage @@ -15,7 +15,7 @@ type PMorphologyMaximum interface { HasSetInputImage() bool // optional - InputImage() IImage + InputImage() Image HasInputImage() bool // optional @@ -27,53 +27,56 @@ type PMorphologyMaximum interface { HasRadius() bool } -// A concrete type wrapper for the [PMorphologyMaximum] protocol. -type MorphologyMaximumWrapper struct { +// ensure impl type implements protocol interface +var _ PMorphologyMaximum = (*MorphologyMaximumObject)(nil) + +// A concrete type for the [PMorphologyMaximum] protocol. +type MorphologyMaximumObject struct { objc.Object } -func (m_ MorphologyMaximumWrapper) HasSetInputImage() bool { +func (m_ MorphologyMaximumObject) HasSetInputImage() bool { return m_.RespondsToSelector(objc.Sel("setInputImage:")) } // The image to use as an input image. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/coreimage/cimorphologymaximum/3228577-inputimage?language=objc -func (m_ MorphologyMaximumWrapper) SetInputImage(value IImage) { +func (m_ MorphologyMaximumObject) SetInputImage(value Image) { objc.Call[objc.Void](m_, objc.Sel("setInputImage:"), objc.Ptr(value)) } -func (m_ MorphologyMaximumWrapper) HasInputImage() bool { +func (m_ MorphologyMaximumObject) HasInputImage() bool { return m_.RespondsToSelector(objc.Sel("inputImage")) } // The image to use as an input image. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/coreimage/cimorphologymaximum/3228577-inputimage?language=objc -func (m_ MorphologyMaximumWrapper) InputImage() Image { +func (m_ MorphologyMaximumObject) InputImage() Image { rv := objc.Call[Image](m_, objc.Sel("inputImage")) return rv } -func (m_ MorphologyMaximumWrapper) HasSetRadius() bool { +func (m_ MorphologyMaximumObject) 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/cimorphologymaximum/3228578-radius?language=objc -func (m_ MorphologyMaximumWrapper) SetRadius(value float64) { +func (m_ MorphologyMaximumObject) SetRadius(value float64) { objc.Call[objc.Void](m_, objc.Sel("setRadius:"), value) } -func (m_ MorphologyMaximumWrapper) HasRadius() bool { +func (m_ MorphologyMaximumObject) 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/cimorphologymaximum/3228578-radius?language=objc -func (m_ MorphologyMaximumWrapper) Radius() float64 { +func (m_ MorphologyMaximumObject) Radius() float64 { rv := objc.Call[float64](m_, objc.Sel("radius")) return rv } diff --git a/macos/coreimage/morphology_minimum.gen.go b/macos/coreimage/morphology_minimum_protocol.gen.go similarity index 70% rename from macos/coreimage/morphology_minimum.gen.go rename to macos/coreimage/morphology_minimum_protocol.gen.go index 2cddddd8..9beb0ad6 100644 --- a/macos/coreimage/morphology_minimum.gen.go +++ b/macos/coreimage/morphology_minimum_protocol.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package coreimage @@ -10,14 +10,6 @@ import ( // // [Full Topic]: https://developer.apple.com/documentation/coreimage/cimorphologyminimum?language=objc type PMorphologyMinimum interface { - // optional - SetInputImage(value Image) - HasSetInputImage() bool - - // optional - InputImage() IImage - HasInputImage() bool - // optional SetRadius(value float64) HasSetRadius() bool @@ -25,55 +17,66 @@ type PMorphologyMinimum interface { // optional Radius() float64 HasRadius() bool + + // optional + SetInputImage(value Image) + HasSetInputImage() bool + + // optional + InputImage() Image + HasInputImage() bool } -// A concrete type wrapper for the [PMorphologyMinimum] protocol. -type MorphologyMinimumWrapper struct { +// ensure impl type implements protocol interface +var _ PMorphologyMinimum = (*MorphologyMinimumObject)(nil) + +// A concrete type for the [PMorphologyMinimum] protocol. +type MorphologyMinimumObject struct { objc.Object } -func (m_ MorphologyMinimumWrapper) HasSetInputImage() bool { - return m_.RespondsToSelector(objc.Sel("setInputImage:")) +func (m_ MorphologyMinimumObject) HasSetRadius() bool { + return m_.RespondsToSelector(objc.Sel("setRadius:")) } -// The image to use as an input image. [Full Topic] +// The radius of the circular morphological structuring element. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/cimorphologyminimum/3228580-inputimage?language=objc -func (m_ MorphologyMinimumWrapper) SetInputImage(value IImage) { - objc.Call[objc.Void](m_, objc.Sel("setInputImage:"), objc.Ptr(value)) +// [Full Topic]: https://developer.apple.com/documentation/coreimage/cimorphologyminimum/3228581-radius?language=objc +func (m_ MorphologyMinimumObject) SetRadius(value float64) { + objc.Call[objc.Void](m_, objc.Sel("setRadius:"), value) } -func (m_ MorphologyMinimumWrapper) HasInputImage() bool { - return m_.RespondsToSelector(objc.Sel("inputImage")) +func (m_ MorphologyMinimumObject) HasRadius() bool { + return m_.RespondsToSelector(objc.Sel("radius")) } -// The image to use as an input image. [Full Topic] +// The radius of the circular morphological structuring element. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/cimorphologyminimum/3228580-inputimage?language=objc -func (m_ MorphologyMinimumWrapper) InputImage() Image { - rv := objc.Call[Image](m_, objc.Sel("inputImage")) +// [Full Topic]: https://developer.apple.com/documentation/coreimage/cimorphologyminimum/3228581-radius?language=objc +func (m_ MorphologyMinimumObject) Radius() float64 { + rv := objc.Call[float64](m_, objc.Sel("radius")) return rv } -func (m_ MorphologyMinimumWrapper) HasSetRadius() bool { - return m_.RespondsToSelector(objc.Sel("setRadius:")) +func (m_ MorphologyMinimumObject) HasSetInputImage() bool { + return m_.RespondsToSelector(objc.Sel("setInputImage:")) } -// The radius of the circular morphological structuring element. [Full Topic] +// The image to use as an input image. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/cimorphologyminimum/3228581-radius?language=objc -func (m_ MorphologyMinimumWrapper) SetRadius(value float64) { - objc.Call[objc.Void](m_, objc.Sel("setRadius:"), value) +// [Full Topic]: https://developer.apple.com/documentation/coreimage/cimorphologyminimum/3228580-inputimage?language=objc +func (m_ MorphologyMinimumObject) SetInputImage(value Image) { + objc.Call[objc.Void](m_, objc.Sel("setInputImage:"), objc.Ptr(value)) } -func (m_ MorphologyMinimumWrapper) HasRadius() bool { - return m_.RespondsToSelector(objc.Sel("radius")) +func (m_ MorphologyMinimumObject) HasInputImage() bool { + return m_.RespondsToSelector(objc.Sel("inputImage")) } -// The radius of the circular morphological structuring element. [Full Topic] +// The image to use as an input image. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/cimorphologyminimum/3228581-radius?language=objc -func (m_ MorphologyMinimumWrapper) Radius() float64 { - rv := objc.Call[float64](m_, objc.Sel("radius")) +// [Full Topic]: https://developer.apple.com/documentation/coreimage/cimorphologyminimum/3228580-inputimage?language=objc +func (m_ MorphologyMinimumObject) InputImage() Image { + rv := objc.Call[Image](m_, objc.Sel("inputImage")) return rv } diff --git a/macos/coreimage/morphology_rectangle_maximum.gen.go b/macos/coreimage/morphology_rectangle_maximum_protocol.gen.go similarity index 70% rename from macos/coreimage/morphology_rectangle_maximum.gen.go rename to macos/coreimage/morphology_rectangle_maximum_protocol.gen.go index 29acd65c..ead9eb9e 100644 --- a/macos/coreimage/morphology_rectangle_maximum.gen.go +++ b/macos/coreimage/morphology_rectangle_maximum_protocol.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package coreimage @@ -10,20 +10,12 @@ import ( // // [Full Topic]: https://developer.apple.com/documentation/coreimage/cimorphologyrectanglemaximum?language=objc type PMorphologyRectangleMaximum interface { - // optional - SetWidth(value float64) - HasSetWidth() bool - - // optional - Width() float64 - HasWidth() bool - // optional SetInputImage(value Image) HasSetInputImage() bool // optional - InputImage() IImage + InputImage() Image HasInputImage() bool // optional @@ -33,78 +25,89 @@ type PMorphologyRectangleMaximum interface { // optional Height() float64 HasHeight() bool -} - -// A concrete type wrapper for the [PMorphologyRectangleMaximum] protocol. -type MorphologyRectangleMaximumWrapper struct { - objc.Object -} -func (m_ MorphologyRectangleMaximumWrapper) HasSetWidth() bool { - return m_.RespondsToSelector(objc.Sel("setWidth:")) -} + // optional + SetWidth(value float64) + HasSetWidth() bool -// 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_ MorphologyRectangleMaximumWrapper) SetWidth(value float64) { - objc.Call[objc.Void](m_, objc.Sel("setWidth:"), value) + // optional + Width() float64 + HasWidth() bool } -func (m_ MorphologyRectangleMaximumWrapper) HasWidth() bool { - return m_.RespondsToSelector(objc.Sel("width")) -} +// ensure impl type implements protocol interface +var _ PMorphologyRectangleMaximum = (*MorphologyRectangleMaximumObject)(nil) -// 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_ MorphologyRectangleMaximumWrapper) Width() float64 { - rv := objc.Call[float64](m_, objc.Sel("width")) - return rv +// A concrete type for the [PMorphologyRectangleMaximum] protocol. +type MorphologyRectangleMaximumObject struct { + objc.Object } -func (m_ MorphologyRectangleMaximumWrapper) HasSetInputImage() bool { +func (m_ MorphologyRectangleMaximumObject) HasSetInputImage() bool { return m_.RespondsToSelector(objc.Sel("setInputImage:")) } // The image to use as an input image. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/coreimage/cimorphologyrectanglemaximum/3228584-inputimage?language=objc -func (m_ MorphologyRectangleMaximumWrapper) SetInputImage(value IImage) { +func (m_ MorphologyRectangleMaximumObject) SetInputImage(value Image) { objc.Call[objc.Void](m_, objc.Sel("setInputImage:"), objc.Ptr(value)) } -func (m_ MorphologyRectangleMaximumWrapper) HasInputImage() bool { +func (m_ MorphologyRectangleMaximumObject) HasInputImage() bool { return m_.RespondsToSelector(objc.Sel("inputImage")) } // The image to use as an input image. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/coreimage/cimorphologyrectanglemaximum/3228584-inputimage?language=objc -func (m_ MorphologyRectangleMaximumWrapper) InputImage() Image { +func (m_ MorphologyRectangleMaximumObject) InputImage() Image { rv := objc.Call[Image](m_, objc.Sel("inputImage")) return rv } -func (m_ MorphologyRectangleMaximumWrapper) HasSetHeight() bool { +func (m_ MorphologyRectangleMaximumObject) HasSetHeight() bool { return m_.RespondsToSelector(objc.Sel("setHeight:")) } // The height, in pixels, of the morphological structuring element. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/coreimage/cimorphologyrectanglemaximum/3228583-height?language=objc -func (m_ MorphologyRectangleMaximumWrapper) SetHeight(value float64) { +func (m_ MorphologyRectangleMaximumObject) SetHeight(value float64) { objc.Call[objc.Void](m_, objc.Sel("setHeight:"), value) } -func (m_ MorphologyRectangleMaximumWrapper) HasHeight() bool { +func (m_ MorphologyRectangleMaximumObject) HasHeight() bool { return m_.RespondsToSelector(objc.Sel("height")) } // The height, in pixels, of the morphological structuring element. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/coreimage/cimorphologyrectanglemaximum/3228583-height?language=objc -func (m_ MorphologyRectangleMaximumWrapper) Height() float64 { +func (m_ MorphologyRectangleMaximumObject) Height() float64 { rv := objc.Call[float64](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 float64) { + 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() float64 { + rv := objc.Call[float64](m_, objc.Sel("width")) + return rv +} diff --git a/macos/coreimage/morphology_rectangle_minimum.gen.go b/macos/coreimage/morphology_rectangle_minimum_protocol.gen.go similarity index 70% rename from macos/coreimage/morphology_rectangle_minimum.gen.go rename to macos/coreimage/morphology_rectangle_minimum_protocol.gen.go index 7f9e655a..94d4b24a 100644 --- a/macos/coreimage/morphology_rectangle_minimum.gen.go +++ b/macos/coreimage/morphology_rectangle_minimum_protocol.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package coreimage @@ -10,20 +10,12 @@ import ( // // [Full Topic]: https://developer.apple.com/documentation/coreimage/cimorphologyrectangleminimum?language=objc type PMorphologyRectangleMinimum interface { - // optional - SetWidth(value float64) - HasSetWidth() bool - - // optional - Width() float64 - HasWidth() bool - // optional SetInputImage(value Image) HasSetInputImage() bool // optional - InputImage() IImage + InputImage() Image HasInputImage() bool // optional @@ -33,78 +25,89 @@ type PMorphologyRectangleMinimum interface { // optional Height() float64 HasHeight() bool -} - -// A concrete type wrapper for the [PMorphologyRectangleMinimum] protocol. -type MorphologyRectangleMinimumWrapper struct { - objc.Object -} -func (m_ MorphologyRectangleMinimumWrapper) HasSetWidth() bool { - return m_.RespondsToSelector(objc.Sel("setWidth:")) -} + // optional + SetWidth(value float64) + HasSetWidth() bool -// 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_ MorphologyRectangleMinimumWrapper) SetWidth(value float64) { - objc.Call[objc.Void](m_, objc.Sel("setWidth:"), value) + // optional + Width() float64 + HasWidth() bool } -func (m_ MorphologyRectangleMinimumWrapper) HasWidth() bool { - return m_.RespondsToSelector(objc.Sel("width")) -} +// ensure impl type implements protocol interface +var _ PMorphologyRectangleMinimum = (*MorphologyRectangleMinimumObject)(nil) -// 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_ MorphologyRectangleMinimumWrapper) Width() float64 { - rv := objc.Call[float64](m_, objc.Sel("width")) - return rv +// A concrete type for the [PMorphologyRectangleMinimum] protocol. +type MorphologyRectangleMinimumObject struct { + objc.Object } -func (m_ MorphologyRectangleMinimumWrapper) HasSetInputImage() bool { +func (m_ MorphologyRectangleMinimumObject) HasSetInputImage() bool { return m_.RespondsToSelector(objc.Sel("setInputImage:")) } // The image to use as an input image. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/coreimage/cimorphologyrectangleminimum/3228588-inputimage?language=objc -func (m_ MorphologyRectangleMinimumWrapper) SetInputImage(value IImage) { +func (m_ MorphologyRectangleMinimumObject) SetInputImage(value Image) { objc.Call[objc.Void](m_, objc.Sel("setInputImage:"), objc.Ptr(value)) } -func (m_ MorphologyRectangleMinimumWrapper) HasInputImage() bool { +func (m_ MorphologyRectangleMinimumObject) HasInputImage() bool { return m_.RespondsToSelector(objc.Sel("inputImage")) } // The image to use as an input image. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/coreimage/cimorphologyrectangleminimum/3228588-inputimage?language=objc -func (m_ MorphologyRectangleMinimumWrapper) InputImage() Image { +func (m_ MorphologyRectangleMinimumObject) InputImage() Image { rv := objc.Call[Image](m_, objc.Sel("inputImage")) return rv } -func (m_ MorphologyRectangleMinimumWrapper) HasSetHeight() bool { +func (m_ MorphologyRectangleMinimumObject) HasSetHeight() bool { return m_.RespondsToSelector(objc.Sel("setHeight:")) } // The height, in pixels, of the morphological structuring element. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/coreimage/cimorphologyrectangleminimum/3228587-height?language=objc -func (m_ MorphologyRectangleMinimumWrapper) SetHeight(value float64) { +func (m_ MorphologyRectangleMinimumObject) SetHeight(value float64) { objc.Call[objc.Void](m_, objc.Sel("setHeight:"), value) } -func (m_ MorphologyRectangleMinimumWrapper) HasHeight() bool { +func (m_ MorphologyRectangleMinimumObject) HasHeight() bool { return m_.RespondsToSelector(objc.Sel("height")) } // The height, in pixels, of the morphological structuring element. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/coreimage/cimorphologyrectangleminimum/3228587-height?language=objc -func (m_ MorphologyRectangleMinimumWrapper) Height() float64 { +func (m_ MorphologyRectangleMinimumObject) Height() float64 { rv := objc.Call[float64](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 float64) { + 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() float64 { + rv := objc.Call[float64](m_, objc.Sel("width")) + return rv +} diff --git a/macos/coreimage/motion_blur.gen.go b/macos/coreimage/motion_blur_protocol.gen.go similarity index 74% rename from macos/coreimage/motion_blur.gen.go rename to macos/coreimage/motion_blur_protocol.gen.go index 5d92170d..a55b5246 100644 --- a/macos/coreimage/motion_blur.gen.go +++ b/macos/coreimage/motion_blur_protocol.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package coreimage @@ -15,7 +15,7 @@ type PMotionBlur interface { HasSetInputImage() bool // optional - InputImage() IImage + InputImage() Image HasInputImage() bool // optional @@ -35,76 +35,79 @@ type PMotionBlur interface { HasAngle() bool } -// A concrete type wrapper for the [PMotionBlur] protocol. -type MotionBlurWrapper struct { +// ensure impl type implements protocol interface +var _ PMotionBlur = (*MotionBlurObject)(nil) + +// A concrete type for the [PMotionBlur] protocol. +type MotionBlurObject struct { objc.Object } -func (m_ MotionBlurWrapper) HasSetInputImage() bool { +func (m_ MotionBlurObject) HasSetInputImage() bool { return m_.RespondsToSelector(objc.Sel("setInputImage:")) } // The image to use as an input image. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/coreimage/cimotionblur/3228592-inputimage?language=objc -func (m_ MotionBlurWrapper) SetInputImage(value IImage) { +func (m_ MotionBlurObject) SetInputImage(value Image) { objc.Call[objc.Void](m_, objc.Sel("setInputImage:"), objc.Ptr(value)) } -func (m_ MotionBlurWrapper) HasInputImage() bool { +func (m_ MotionBlurObject) HasInputImage() bool { return m_.RespondsToSelector(objc.Sel("inputImage")) } // The image to use as an input image. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/coreimage/cimotionblur/3228592-inputimage?language=objc -func (m_ MotionBlurWrapper) InputImage() Image { +func (m_ MotionBlurObject) InputImage() Image { rv := objc.Call[Image](m_, objc.Sel("inputImage")) return rv } -func (m_ MotionBlurWrapper) HasSetRadius() bool { +func (m_ MotionBlurObject) HasSetRadius() bool { return m_.RespondsToSelector(objc.Sel("setRadius:")) } // The radius of the blur, in pixels. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/coreimage/cimotionblur/3228593-radius?language=objc -func (m_ MotionBlurWrapper) SetRadius(value float64) { +func (m_ MotionBlurObject) SetRadius(value float64) { objc.Call[objc.Void](m_, objc.Sel("setRadius:"), value) } -func (m_ MotionBlurWrapper) HasRadius() bool { +func (m_ MotionBlurObject) HasRadius() bool { return m_.RespondsToSelector(objc.Sel("radius")) } // The radius of the blur, in pixels. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/coreimage/cimotionblur/3228593-radius?language=objc -func (m_ MotionBlurWrapper) Radius() float64 { +func (m_ MotionBlurObject) Radius() float64 { rv := objc.Call[float64](m_, objc.Sel("radius")) return rv } -func (m_ MotionBlurWrapper) HasSetAngle() bool { +func (m_ MotionBlurObject) HasSetAngle() bool { return m_.RespondsToSelector(objc.Sel("setAngle:")) } // The angle of the motion, in radians, that determines which direction the blur smears. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/coreimage/cimotionblur/3228591-angle?language=objc -func (m_ MotionBlurWrapper) SetAngle(value float64) { +func (m_ MotionBlurObject) SetAngle(value float64) { objc.Call[objc.Void](m_, objc.Sel("setAngle:"), value) } -func (m_ MotionBlurWrapper) HasAngle() bool { +func (m_ MotionBlurObject) HasAngle() bool { return m_.RespondsToSelector(objc.Sel("angle")) } // The angle of the motion, in radians, that determines which direction the blur smears. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/coreimage/cimotionblur/3228591-angle?language=objc -func (m_ MotionBlurWrapper) Angle() float64 { +func (m_ MotionBlurObject) Angle() float64 { rv := objc.Call[float64](m_, objc.Sel("angle")) return rv } diff --git a/macos/coreimage/nine_part_stretched.gen.go b/macos/coreimage/nine_part_stretched_protocol.gen.go similarity index 70% rename from macos/coreimage/nine_part_stretched.gen.go rename to macos/coreimage/nine_part_stretched_protocol.gen.go index 1111629a..05567f25 100644 --- a/macos/coreimage/nine_part_stretched.gen.go +++ b/macos/coreimage/nine_part_stretched_protocol.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package coreimage @@ -12,12 +12,12 @@ import ( // [Full Topic]: https://developer.apple.com/documentation/coreimage/cininepartstretched?language=objc type PNinePartStretched interface { // optional - SetInputImage(value Image) - HasSetInputImage() bool + SetBreakpoint1(value coregraphics.Point) + HasSetBreakpoint1() bool // optional - InputImage() IImage - HasInputImage() bool + Breakpoint1() coregraphics.Point + HasBreakpoint1() bool // optional SetGrowAmount(value coregraphics.Point) @@ -28,115 +28,118 @@ type PNinePartStretched interface { HasGrowAmount() bool // optional - SetBreakpoint0(value coregraphics.Point) - HasSetBreakpoint0() bool + SetInputImage(value Image) + HasSetInputImage() bool // optional - Breakpoint0() coregraphics.Point - HasBreakpoint0() bool + InputImage() Image + HasInputImage() bool // optional - SetBreakpoint1(value coregraphics.Point) - HasSetBreakpoint1() bool + SetBreakpoint0(value coregraphics.Point) + HasSetBreakpoint0() bool // optional - Breakpoint1() coregraphics.Point - HasBreakpoint1() bool + Breakpoint0() coregraphics.Point + HasBreakpoint0() bool } -// A concrete type wrapper for the [PNinePartStretched] protocol. -type NinePartStretchedWrapper struct { +// ensure impl type implements protocol interface +var _ PNinePartStretched = (*NinePartStretchedObject)(nil) + +// A concrete type for the [PNinePartStretched] protocol. +type NinePartStretchedObject struct { objc.Object } -func (n_ NinePartStretchedWrapper) HasSetInputImage() bool { - return n_.RespondsToSelector(objc.Sel("setInputImage:")) +func (n_ NinePartStretchedObject) HasSetBreakpoint1() bool { + return n_.RespondsToSelector(objc.Sel("setBreakpoint1:")) } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/cininepartstretched/3600179-inputimage?language=objc -func (n_ NinePartStretchedWrapper) SetInputImage(value IImage) { - objc.Call[objc.Void](n_, objc.Sel("setInputImage:"), objc.Ptr(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_ NinePartStretchedWrapper) HasInputImage() bool { - return n_.RespondsToSelector(objc.Sel("inputImage")) +func (n_ NinePartStretchedObject) HasBreakpoint1() bool { + return n_.RespondsToSelector(objc.Sel("breakpoint1")) } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/cininepartstretched/3600179-inputimage?language=objc -func (n_ NinePartStretchedWrapper) InputImage() Image { - rv := objc.Call[Image](n_, objc.Sel("inputImage")) +// [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 } -func (n_ NinePartStretchedWrapper) HasSetGrowAmount() bool { +func (n_ NinePartStretchedObject) HasSetGrowAmount() bool { return n_.RespondsToSelector(objc.Sel("setGrowAmount:")) } // [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/coreimage/cininepartstretched/3600178-growamount?language=objc -func (n_ NinePartStretchedWrapper) SetGrowAmount(value coregraphics.Point) { +func (n_ NinePartStretchedObject) SetGrowAmount(value coregraphics.Point) { objc.Call[objc.Void](n_, objc.Sel("setGrowAmount:"), value) } -func (n_ NinePartStretchedWrapper) HasGrowAmount() bool { +func (n_ NinePartStretchedObject) HasGrowAmount() bool { return n_.RespondsToSelector(objc.Sel("growAmount")) } // [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/coreimage/cininepartstretched/3600178-growamount?language=objc -func (n_ NinePartStretchedWrapper) GrowAmount() coregraphics.Point { +func (n_ NinePartStretchedObject) GrowAmount() coregraphics.Point { rv := objc.Call[coregraphics.Point](n_, objc.Sel("growAmount")) return rv } -func (n_ NinePartStretchedWrapper) HasSetBreakpoint0() bool { - return n_.RespondsToSelector(objc.Sel("setBreakpoint0:")) +func (n_ NinePartStretchedObject) HasSetInputImage() bool { + return n_.RespondsToSelector(objc.Sel("setInputImage:")) } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/cininepartstretched/3600176-breakpoint0?language=objc -func (n_ NinePartStretchedWrapper) SetBreakpoint0(value coregraphics.Point) { - objc.Call[objc.Void](n_, objc.Sel("setBreakpoint0:"), 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:"), objc.Ptr(value)) } -func (n_ NinePartStretchedWrapper) HasBreakpoint0() bool { - return n_.RespondsToSelector(objc.Sel("breakpoint0")) +func (n_ NinePartStretchedObject) HasInputImage() bool { + return n_.RespondsToSelector(objc.Sel("inputImage")) } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/cininepartstretched/3600176-breakpoint0?language=objc -func (n_ NinePartStretchedWrapper) Breakpoint0() coregraphics.Point { - rv := objc.Call[coregraphics.Point](n_, objc.Sel("breakpoint0")) +// [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 } -func (n_ NinePartStretchedWrapper) HasSetBreakpoint1() bool { - return n_.RespondsToSelector(objc.Sel("setBreakpoint1:")) +func (n_ NinePartStretchedObject) HasSetBreakpoint0() bool { + return n_.RespondsToSelector(objc.Sel("setBreakpoint0:")) } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/cininepartstretched/3600177-breakpoint1?language=objc -func (n_ NinePartStretchedWrapper) SetBreakpoint1(value coregraphics.Point) { - objc.Call[objc.Void](n_, objc.Sel("setBreakpoint1:"), 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_ NinePartStretchedWrapper) HasBreakpoint1() bool { - return n_.RespondsToSelector(objc.Sel("breakpoint1")) +func (n_ NinePartStretchedObject) HasBreakpoint0() bool { + return n_.RespondsToSelector(objc.Sel("breakpoint0")) } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/cininepartstretched/3600177-breakpoint1?language=objc -func (n_ NinePartStretchedWrapper) Breakpoint1() coregraphics.Point { - rv := objc.Call[coregraphics.Point](n_, objc.Sel("breakpoint1")) +// [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 } diff --git a/macos/coreimage/nine_part_tiled.gen.go b/macos/coreimage/nine_part_tiled_protocol.gen.go similarity index 71% rename from macos/coreimage/nine_part_tiled.gen.go rename to macos/coreimage/nine_part_tiled_protocol.gen.go index 776d23f8..c84e3504 100644 --- a/macos/coreimage/nine_part_tiled.gen.go +++ b/macos/coreimage/nine_part_tiled_protocol.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package coreimage @@ -11,14 +11,6 @@ import ( // // [Full Topic]: https://developer.apple.com/documentation/coreimage/cinineparttiled?language=objc type PNinePartTiled interface { - // optional - SetInputImage(value Image) - HasSetInputImage() bool - - // optional - InputImage() IImage - HasInputImage() bool - // optional SetFlipYTiles(value bool) HasSetFlipYTiles() bool @@ -35,14 +27,6 @@ type PNinePartTiled interface { GrowAmount() coregraphics.Point HasGrowAmount() bool - // optional - SetBreakpoint0(value coregraphics.Point) - HasSetBreakpoint0() bool - - // optional - Breakpoint0() coregraphics.Point - HasBreakpoint0() bool - // optional SetBreakpoint1(value coregraphics.Point) HasSetBreakpoint1() bool @@ -50,124 +34,143 @@ type PNinePartTiled interface { // optional Breakpoint1() coregraphics.Point HasBreakpoint1() bool -} -// A concrete type wrapper for the [PNinePartTiled] protocol. -type NinePartTiledWrapper struct { - objc.Object -} + // optional + SetInputImage(value Image) + HasSetInputImage() bool -func (n_ NinePartTiledWrapper) HasSetInputImage() bool { - return n_.RespondsToSelector(objc.Sel("setInputImage:")) -} + // optional + InputImage() Image + HasInputImage() bool -// [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/coreimage/cinineparttiled/3600185-inputimage?language=objc -func (n_ NinePartTiledWrapper) SetInputImage(value IImage) { - objc.Call[objc.Void](n_, objc.Sel("setInputImage:"), objc.Ptr(value)) -} + // optional + SetBreakpoint0(value coregraphics.Point) + HasSetBreakpoint0() bool -func (n_ NinePartTiledWrapper) HasInputImage() bool { - return n_.RespondsToSelector(objc.Sel("inputImage")) + // optional + Breakpoint0() coregraphics.Point + HasBreakpoint0() bool } -// [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/coreimage/cinineparttiled/3600185-inputimage?language=objc -func (n_ NinePartTiledWrapper) InputImage() Image { - rv := objc.Call[Image](n_, objc.Sel("inputImage")) - return rv +// ensure impl type implements protocol interface +var _ PNinePartTiled = (*NinePartTiledObject)(nil) + +// A concrete type for the [PNinePartTiled] protocol. +type NinePartTiledObject struct { + objc.Object } -func (n_ NinePartTiledWrapper) HasSetFlipYTiles() bool { +func (n_ NinePartTiledObject) HasSetFlipYTiles() bool { return n_.RespondsToSelector(objc.Sel("setFlipYTiles:")) } // [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/coreimage/cinineparttiled/3600183-flipytiles?language=objc -func (n_ NinePartTiledWrapper) SetFlipYTiles(value bool) { +func (n_ NinePartTiledObject) SetFlipYTiles(value bool) { objc.Call[objc.Void](n_, objc.Sel("setFlipYTiles:"), value) } -func (n_ NinePartTiledWrapper) HasFlipYTiles() bool { +func (n_ NinePartTiledObject) HasFlipYTiles() bool { return n_.RespondsToSelector(objc.Sel("flipYTiles")) } // [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/coreimage/cinineparttiled/3600183-flipytiles?language=objc -func (n_ NinePartTiledWrapper) FlipYTiles() bool { +func (n_ NinePartTiledObject) FlipYTiles() bool { rv := objc.Call[bool](n_, objc.Sel("flipYTiles")) return rv } -func (n_ NinePartTiledWrapper) HasSetGrowAmount() bool { +func (n_ NinePartTiledObject) HasSetGrowAmount() bool { return n_.RespondsToSelector(objc.Sel("setGrowAmount:")) } // [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/coreimage/cinineparttiled/3600184-growamount?language=objc -func (n_ NinePartTiledWrapper) SetGrowAmount(value coregraphics.Point) { +func (n_ NinePartTiledObject) SetGrowAmount(value coregraphics.Point) { objc.Call[objc.Void](n_, objc.Sel("setGrowAmount:"), value) } -func (n_ NinePartTiledWrapper) HasGrowAmount() bool { +func (n_ NinePartTiledObject) HasGrowAmount() bool { return n_.RespondsToSelector(objc.Sel("growAmount")) } // [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/coreimage/cinineparttiled/3600184-growamount?language=objc -func (n_ NinePartTiledWrapper) GrowAmount() coregraphics.Point { +func (n_ NinePartTiledObject) GrowAmount() coregraphics.Point { rv := objc.Call[coregraphics.Point](n_, objc.Sel("growAmount")) return rv } -func (n_ NinePartTiledWrapper) 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_ NinePartTiledWrapper) 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_ NinePartTiledWrapper) 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_ NinePartTiledWrapper) 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 } -func (n_ NinePartTiledWrapper) HasSetBreakpoint1() bool { - return n_.RespondsToSelector(objc.Sel("setBreakpoint1:")) +func (n_ NinePartTiledObject) HasSetInputImage() bool { + return n_.RespondsToSelector(objc.Sel("setInputImage:")) } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/cinineparttiled/3600182-breakpoint1?language=objc -func (n_ NinePartTiledWrapper) SetBreakpoint1(value coregraphics.Point) { - objc.Call[objc.Void](n_, objc.Sel("setBreakpoint1:"), value) +// [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:"), objc.Ptr(value)) } -func (n_ NinePartTiledWrapper) HasBreakpoint1() bool { - return n_.RespondsToSelector(objc.Sel("breakpoint1")) +func (n_ NinePartTiledObject) HasInputImage() bool { + return n_.RespondsToSelector(objc.Sel("inputImage")) } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/cinineparttiled/3600182-breakpoint1?language=objc -func (n_ NinePartTiledWrapper) Breakpoint1() coregraphics.Point { - rv := objc.Call[coregraphics.Point](n_, objc.Sel("breakpoint1")) +// [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) HasSetBreakpoint0() bool { + return n_.RespondsToSelector(objc.Sel("setBreakpoint0:")) +} + +// [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) +} + +func (n_ NinePartTiledObject) HasBreakpoint0() bool { + return n_.RespondsToSelector(objc.Sel("breakpoint0")) +} + +// [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")) return rv } diff --git a/macos/coreimage/noise_reduction.gen.go b/macos/coreimage/noise_reduction_protocol.gen.go similarity index 72% rename from macos/coreimage/noise_reduction.gen.go rename to macos/coreimage/noise_reduction_protocol.gen.go index 0eee869d..1c718492 100644 --- a/macos/coreimage/noise_reduction.gen.go +++ b/macos/coreimage/noise_reduction_protocol.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package coreimage @@ -15,17 +15,9 @@ type PNoiseReduction interface { HasSetInputImage() bool // optional - InputImage() IImage + InputImage() Image HasInputImage() bool - // optional - SetSharpness(value float64) - HasSetSharpness() bool - - // optional - Sharpness() float64 - HasSharpness() bool - // optional SetNoiseLevel(value float64) HasSetNoiseLevel() bool @@ -33,78 +25,89 @@ type PNoiseReduction interface { // optional NoiseLevel() float64 HasNoiseLevel() bool + + // optional + SetSharpness(value float64) + HasSetSharpness() bool + + // optional + Sharpness() float64 + HasSharpness() bool } -// A concrete type wrapper for the [PNoiseReduction] protocol. -type NoiseReductionWrapper struct { +// ensure impl type implements protocol interface +var _ PNoiseReduction = (*NoiseReductionObject)(nil) + +// A concrete type for the [PNoiseReduction] protocol. +type NoiseReductionObject struct { objc.Object } -func (n_ NoiseReductionWrapper) HasSetInputImage() bool { +func (n_ NoiseReductionObject) HasSetInputImage() bool { return n_.RespondsToSelector(objc.Sel("setInputImage:")) } // The image to use as an input image. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/coreimage/cinoisereduction/3228595-inputimage?language=objc -func (n_ NoiseReductionWrapper) SetInputImage(value IImage) { +func (n_ NoiseReductionObject) SetInputImage(value Image) { objc.Call[objc.Void](n_, objc.Sel("setInputImage:"), objc.Ptr(value)) } -func (n_ NoiseReductionWrapper) HasInputImage() bool { +func (n_ NoiseReductionObject) HasInputImage() bool { return n_.RespondsToSelector(objc.Sel("inputImage")) } // The image to use as an input image. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/coreimage/cinoisereduction/3228595-inputimage?language=objc -func (n_ NoiseReductionWrapper) InputImage() Image { +func (n_ NoiseReductionObject) InputImage() Image { rv := objc.Call[Image](n_, objc.Sel("inputImage")) return rv } -func (n_ NoiseReductionWrapper) HasSetSharpness() bool { - return n_.RespondsToSelector(objc.Sel("setSharpness:")) +func (n_ NoiseReductionObject) HasSetNoiseLevel() bool { + return n_.RespondsToSelector(objc.Sel("setNoiseLevel:")) } -// The sharpness of the final image. [Full Topic] +// The amount of noise reduction. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/cinoisereduction/3228597-sharpness?language=objc -func (n_ NoiseReductionWrapper) SetSharpness(value float64) { - objc.Call[objc.Void](n_, objc.Sel("setSharpness:"), value) +// [Full Topic]: https://developer.apple.com/documentation/coreimage/cinoisereduction/3228596-noiselevel?language=objc +func (n_ NoiseReductionObject) SetNoiseLevel(value float64) { + objc.Call[objc.Void](n_, objc.Sel("setNoiseLevel:"), value) } -func (n_ NoiseReductionWrapper) HasSharpness() bool { - return n_.RespondsToSelector(objc.Sel("sharpness")) +func (n_ NoiseReductionObject) HasNoiseLevel() bool { + return n_.RespondsToSelector(objc.Sel("noiseLevel")) } -// The sharpness of the final image. [Full Topic] +// The amount of noise reduction. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/cinoisereduction/3228597-sharpness?language=objc -func (n_ NoiseReductionWrapper) Sharpness() float64 { - rv := objc.Call[float64](n_, objc.Sel("sharpness")) +// [Full Topic]: https://developer.apple.com/documentation/coreimage/cinoisereduction/3228596-noiselevel?language=objc +func (n_ NoiseReductionObject) NoiseLevel() float64 { + rv := objc.Call[float64](n_, objc.Sel("noiseLevel")) return rv } -func (n_ NoiseReductionWrapper) HasSetNoiseLevel() bool { - return n_.RespondsToSelector(objc.Sel("setNoiseLevel:")) +func (n_ NoiseReductionObject) HasSetSharpness() bool { + return n_.RespondsToSelector(objc.Sel("setSharpness:")) } -// The amount of noise reduction. [Full Topic] +// The sharpness of the final image. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/cinoisereduction/3228596-noiselevel?language=objc -func (n_ NoiseReductionWrapper) SetNoiseLevel(value float64) { - objc.Call[objc.Void](n_, objc.Sel("setNoiseLevel:"), value) +// [Full Topic]: https://developer.apple.com/documentation/coreimage/cinoisereduction/3228597-sharpness?language=objc +func (n_ NoiseReductionObject) SetSharpness(value float64) { + objc.Call[objc.Void](n_, objc.Sel("setSharpness:"), value) } -func (n_ NoiseReductionWrapper) HasNoiseLevel() bool { - return n_.RespondsToSelector(objc.Sel("noiseLevel")) +func (n_ NoiseReductionObject) HasSharpness() bool { + return n_.RespondsToSelector(objc.Sel("sharpness")) } -// The amount of noise reduction. [Full Topic] +// The sharpness of the final image. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/cinoisereduction/3228596-noiselevel?language=objc -func (n_ NoiseReductionWrapper) NoiseLevel() float64 { - rv := objc.Call[float64](n_, objc.Sel("noiseLevel")) +// [Full Topic]: https://developer.apple.com/documentation/coreimage/cinoisereduction/3228597-sharpness?language=objc +func (n_ NoiseReductionObject) Sharpness() float64 { + rv := objc.Call[float64](n_, objc.Sel("sharpness")) return rv } diff --git a/macos/coreimage/op_tile.gen.go b/macos/coreimage/op_tile_protocol.gen.go similarity index 76% rename from macos/coreimage/op_tile.gen.go rename to macos/coreimage/op_tile_protocol.gen.go index 64e6f3e5..7243bd47 100644 --- a/macos/coreimage/op_tile.gen.go +++ b/macos/coreimage/op_tile_protocol.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package coreimage @@ -12,12 +12,12 @@ import ( // [Full Topic]: https://developer.apple.com/documentation/coreimage/cioptile?language=objc type POpTile interface { // optional - SetWidth(value float64) - HasSetWidth() bool + SetCenter(value coregraphics.Point) + HasSetCenter() bool // optional - Width() float64 - HasWidth() bool + Center() coregraphics.Point + HasCenter() bool // optional SetScale(value float64) @@ -32,7 +32,7 @@ type POpTile interface { HasSetInputImage() bool // optional - InputImage() IImage + InputImage() Image HasInputImage() bool // optional @@ -44,130 +44,133 @@ type POpTile interface { HasAngle() bool // optional - SetCenter(value coregraphics.Point) - HasSetCenter() bool + SetWidth(value float64) + HasSetWidth() bool // optional - Center() coregraphics.Point - HasCenter() bool + Width() float64 + HasWidth() bool } -// A concrete type wrapper for the [POpTile] protocol. -type OpTileWrapper struct { +// ensure impl type implements protocol interface +var _ POpTile = (*OpTileObject)(nil) + +// A concrete type for the [POpTile] protocol. +type OpTileObject struct { objc.Object } -func (o_ OpTileWrapper) 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_ OpTileWrapper) SetWidth(value float64) { - 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_ OpTileWrapper) 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_ OpTileWrapper) Width() float64 { - rv := objc.Call[float64](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 } -func (o_ OpTileWrapper) HasSetScale() bool { +func (o_ OpTileObject) HasSetScale() bool { return o_.RespondsToSelector(objc.Sel("setScale:")) } // A value that determines the number of tiles in the effect. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/coreimage/cioptile/3228602-scale?language=objc -func (o_ OpTileWrapper) SetScale(value float64) { +func (o_ OpTileObject) SetScale(value float64) { objc.Call[objc.Void](o_, objc.Sel("setScale:"), value) } -func (o_ OpTileWrapper) HasScale() bool { +func (o_ OpTileObject) HasScale() bool { return o_.RespondsToSelector(objc.Sel("scale")) } // A value that determines the number of tiles in the effect. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/coreimage/cioptile/3228602-scale?language=objc -func (o_ OpTileWrapper) Scale() float64 { +func (o_ OpTileObject) Scale() float64 { rv := objc.Call[float64](o_, objc.Sel("scale")) return rv } -func (o_ OpTileWrapper) HasSetInputImage() bool { +func (o_ OpTileObject) HasSetInputImage() bool { return o_.RespondsToSelector(objc.Sel("setInputImage:")) } // The image to use as an input image. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/coreimage/cioptile/3228601-inputimage?language=objc -func (o_ OpTileWrapper) SetInputImage(value IImage) { +func (o_ OpTileObject) SetInputImage(value Image) { objc.Call[objc.Void](o_, objc.Sel("setInputImage:"), objc.Ptr(value)) } -func (o_ OpTileWrapper) HasInputImage() bool { +func (o_ OpTileObject) HasInputImage() bool { return o_.RespondsToSelector(objc.Sel("inputImage")) } // The image to use as an input image. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/coreimage/cioptile/3228601-inputimage?language=objc -func (o_ OpTileWrapper) InputImage() Image { +func (o_ OpTileObject) InputImage() Image { rv := objc.Call[Image](o_, objc.Sel("inputImage")) return rv } -func (o_ OpTileWrapper) HasSetAngle() bool { +func (o_ OpTileObject) HasSetAngle() bool { return o_.RespondsToSelector(objc.Sel("setAngle:")) } // The angle of a tile. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/coreimage/cioptile/3228599-angle?language=objc -func (o_ OpTileWrapper) SetAngle(value float64) { +func (o_ OpTileObject) SetAngle(value float64) { objc.Call[objc.Void](o_, objc.Sel("setAngle:"), value) } -func (o_ OpTileWrapper) HasAngle() bool { +func (o_ OpTileObject) HasAngle() bool { return o_.RespondsToSelector(objc.Sel("angle")) } // The angle of a tile. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/coreimage/cioptile/3228599-angle?language=objc -func (o_ OpTileWrapper) Angle() float64 { +func (o_ OpTileObject) Angle() float64 { rv := objc.Call[float64](o_, objc.Sel("angle")) return rv } -func (o_ OpTileWrapper) 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_ OpTileWrapper) 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 float64) { + objc.Call[objc.Void](o_, objc.Sel("setWidth:"), value) } -func (o_ OpTileWrapper) 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_ OpTileWrapper) 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() float64 { + rv := objc.Call[float64](o_, objc.Sel("width")) return rv } diff --git a/macos/coreimage/page_curl_transition.gen.go b/macos/coreimage/page_curl_transition_protocol.gen.go similarity index 73% rename from macos/coreimage/page_curl_transition.gen.go rename to macos/coreimage/page_curl_transition_protocol.gen.go index 02432feb..deede6e3 100644 --- a/macos/coreimage/page_curl_transition.gen.go +++ b/macos/coreimage/page_curl_transition_protocol.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package coreimage @@ -19,14 +19,6 @@ type PPageCurlTransition interface { Radius() float64 HasRadius() bool - // optional - SetExtent(value coregraphics.Rect) - HasSetExtent() bool - - // optional - Extent() coregraphics.Rect - HasExtent() bool - // optional SetAngle(value float64) HasSetAngle() bool @@ -40,7 +32,7 @@ type PPageCurlTransition interface { HasSetBacksideImage() bool // optional - BacksideImage() IImage + BacksideImage() Image HasBacksideImage() bool // optional @@ -48,126 +40,137 @@ type PPageCurlTransition interface { HasSetShadingImage() bool // optional - ShadingImage() IImage + ShadingImage() Image HasShadingImage() bool + + // optional + SetExtent(value coregraphics.Rect) + HasSetExtent() bool + + // optional + Extent() coregraphics.Rect + HasExtent() bool } -// A concrete type wrapper for the [PPageCurlTransition] protocol. -type PageCurlTransitionWrapper struct { +// ensure impl type implements protocol interface +var _ PPageCurlTransition = (*PageCurlTransitionObject)(nil) + +// A concrete type for the [PPageCurlTransition] protocol. +type PageCurlTransitionObject struct { objc.Object } -func (p_ PageCurlTransitionWrapper) HasSetRadius() bool { +func (p_ PageCurlTransitionObject) HasSetRadius() bool { return p_.RespondsToSelector(objc.Sel("setRadius:")) } // The radius of the curl. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/coreimage/cipagecurltransition/3228621-radius?language=objc -func (p_ PageCurlTransitionWrapper) SetRadius(value float64) { +func (p_ PageCurlTransitionObject) SetRadius(value float64) { objc.Call[objc.Void](p_, objc.Sel("setRadius:"), value) } -func (p_ PageCurlTransitionWrapper) HasRadius() bool { +func (p_ PageCurlTransitionObject) HasRadius() bool { return p_.RespondsToSelector(objc.Sel("radius")) } // The radius of the curl. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/coreimage/cipagecurltransition/3228621-radius?language=objc -func (p_ PageCurlTransitionWrapper) Radius() float64 { +func (p_ PageCurlTransitionObject) Radius() float64 { rv := objc.Call[float64](p_, objc.Sel("radius")) return rv } -func (p_ PageCurlTransitionWrapper) 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_ PageCurlTransitionWrapper) SetExtent(value coregraphics.Rect) { - objc.Call[objc.Void](p_, objc.Sel("setExtent:"), value) -} - -func (p_ PageCurlTransitionWrapper) 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_ PageCurlTransitionWrapper) Extent() coregraphics.Rect { - rv := objc.Call[coregraphics.Rect](p_, objc.Sel("extent")) - return rv -} - -func (p_ PageCurlTransitionWrapper) HasSetAngle() bool { +func (p_ PageCurlTransitionObject) HasSetAngle() bool { return p_.RespondsToSelector(objc.Sel("setAngle:")) } // The angle of the curling page. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/coreimage/cipagecurltransition/3228618-angle?language=objc -func (p_ PageCurlTransitionWrapper) SetAngle(value float64) { +func (p_ PageCurlTransitionObject) SetAngle(value float64) { objc.Call[objc.Void](p_, objc.Sel("setAngle:"), value) } -func (p_ PageCurlTransitionWrapper) HasAngle() bool { +func (p_ PageCurlTransitionObject) HasAngle() bool { return p_.RespondsToSelector(objc.Sel("angle")) } // The angle of the curling page. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/coreimage/cipagecurltransition/3228618-angle?language=objc -func (p_ PageCurlTransitionWrapper) Angle() float64 { +func (p_ PageCurlTransitionObject) Angle() float64 { rv := objc.Call[float64](p_, objc.Sel("angle")) return rv } -func (p_ PageCurlTransitionWrapper) HasSetBacksideImage() bool { +func (p_ PageCurlTransitionObject) 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/cipagecurltransition/3228619-backsideimage?language=objc -func (p_ PageCurlTransitionWrapper) SetBacksideImage(value IImage) { +func (p_ PageCurlTransitionObject) SetBacksideImage(value Image) { objc.Call[objc.Void](p_, objc.Sel("setBacksideImage:"), objc.Ptr(value)) } -func (p_ PageCurlTransitionWrapper) HasBacksideImage() bool { +func (p_ PageCurlTransitionObject) 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/cipagecurltransition/3228619-backsideimage?language=objc -func (p_ PageCurlTransitionWrapper) BacksideImage() Image { +func (p_ PageCurlTransitionObject) BacksideImage() Image { rv := objc.Call[Image](p_, objc.Sel("backsideImage")) return rv } -func (p_ PageCurlTransitionWrapper) HasSetShadingImage() bool { +func (p_ PageCurlTransitionObject) HasSetShadingImage() bool { return p_.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/cipagecurltransition/3228622-shadingimage?language=objc -func (p_ PageCurlTransitionWrapper) SetShadingImage(value IImage) { +func (p_ PageCurlTransitionObject) SetShadingImage(value Image) { objc.Call[objc.Void](p_, objc.Sel("setShadingImage:"), objc.Ptr(value)) } -func (p_ PageCurlTransitionWrapper) HasShadingImage() bool { +func (p_ PageCurlTransitionObject) HasShadingImage() bool { return p_.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/cipagecurltransition/3228622-shadingimage?language=objc -func (p_ PageCurlTransitionWrapper) ShadingImage() Image { +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.gen.go b/macos/coreimage/page_curl_with_shadow_transition_protocol.gen.go similarity index 71% rename from macos/coreimage/page_curl_with_shadow_transition.gen.go rename to macos/coreimage/page_curl_with_shadow_transition_protocol.gen.go index 2c326abf..2aa3428d 100644 --- a/macos/coreimage/page_curl_with_shadow_transition.gen.go +++ b/macos/coreimage/page_curl_with_shadow_transition_protocol.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package coreimage @@ -12,20 +12,20 @@ import ( // [Full Topic]: https://developer.apple.com/documentation/coreimage/cipagecurlwithshadowtransition?language=objc type PPageCurlWithShadowTransition interface { // optional - SetShadowExtent(value coregraphics.Rect) - HasSetShadowExtent() bool + SetShadowSize(value float64) + HasSetShadowSize() bool // optional - ShadowExtent() coregraphics.Rect - HasShadowExtent() bool + ShadowSize() float64 + HasShadowSize() bool // optional - SetShadowAmount(value float64) - HasSetShadowAmount() bool + SetBacksideImage(value Image) + HasSetBacksideImage() bool // optional - ShadowAmount() float64 - HasShadowAmount() bool + BacksideImage() Image + HasBacksideImage() bool // optional SetRadius(value float64) @@ -35,14 +35,6 @@ type PPageCurlWithShadowTransition interface { Radius() float64 HasRadius() bool - // optional - SetExtent(value coregraphics.Rect) - HasSetExtent() bool - - // optional - Extent() coregraphics.Rect - HasExtent() bool - // optional SetAngle(value float64) HasSetAngle() bool @@ -52,184 +44,195 @@ type PPageCurlWithShadowTransition interface { HasAngle() bool // optional - SetShadowSize(value float64) - HasSetShadowSize() bool + SetExtent(value coregraphics.Rect) + HasSetExtent() bool // optional - ShadowSize() float64 - HasShadowSize() bool + Extent() coregraphics.Rect + HasExtent() bool // optional - SetBacksideImage(value Image) - HasSetBacksideImage() bool + SetShadowAmount(value float64) + HasSetShadowAmount() bool // optional - BacksideImage() IImage - HasBacksideImage() bool + ShadowAmount() float64 + HasShadowAmount() bool + + // optional + SetShadowExtent(value coregraphics.Rect) + HasSetShadowExtent() bool + + // optional + ShadowExtent() coregraphics.Rect + HasShadowExtent() bool } -// A concrete type wrapper for the [PPageCurlWithShadowTransition] protocol. -type PageCurlWithShadowTransitionWrapper struct { +// ensure impl type implements protocol interface +var _ PPageCurlWithShadowTransition = (*PageCurlWithShadowTransitionObject)(nil) + +// A concrete type for the [PPageCurlWithShadowTransition] protocol. +type PageCurlWithShadowTransitionObject struct { objc.Object } -func (p_ PageCurlWithShadowTransitionWrapper) 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_ PageCurlWithShadowTransitionWrapper) 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 float64) { + objc.Call[objc.Void](p_, objc.Sel("setShadowSize:"), value) } -func (p_ PageCurlWithShadowTransitionWrapper) 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_ PageCurlWithShadowTransitionWrapper) 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() float64 { + rv := objc.Call[float64](p_, objc.Sel("shadowSize")) return rv } -func (p_ PageCurlWithShadowTransitionWrapper) HasSetShadowAmount() bool { - return p_.RespondsToSelector(objc.Sel("setShadowAmount:")) +func (p_ PageCurlWithShadowTransitionObject) HasSetBacksideImage() bool { + return p_.RespondsToSelector(objc.Sel("setBacksideImage:")) } -// The strength of the shadow. [Full Topic] +// 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/3228628-shadowamount?language=objc -func (p_ PageCurlWithShadowTransitionWrapper) SetShadowAmount(value float64) { - objc.Call[objc.Void](p_, objc.Sel("setShadowAmount:"), value) +// [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:"), objc.Ptr(value)) } -func (p_ PageCurlWithShadowTransitionWrapper) HasShadowAmount() bool { - return p_.RespondsToSelector(objc.Sel("shadowAmount")) +func (p_ PageCurlWithShadowTransitionObject) HasBacksideImage() bool { + return p_.RespondsToSelector(objc.Sel("backsideImage")) } -// The strength of the shadow. [Full Topic] +// 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/3228628-shadowamount?language=objc -func (p_ PageCurlWithShadowTransitionWrapper) ShadowAmount() float64 { - rv := objc.Call[float64](p_, objc.Sel("shadowAmount")) +// [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 } -func (p_ PageCurlWithShadowTransitionWrapper) HasSetRadius() bool { +func (p_ PageCurlWithShadowTransitionObject) HasSetRadius() bool { return p_.RespondsToSelector(objc.Sel("setRadius:")) } // The radius of the curl. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/coreimage/cipagecurlwithshadowtransition/3228627-radius?language=objc -func (p_ PageCurlWithShadowTransitionWrapper) SetRadius(value float64) { +func (p_ PageCurlWithShadowTransitionObject) SetRadius(value float64) { objc.Call[objc.Void](p_, objc.Sel("setRadius:"), value) } -func (p_ PageCurlWithShadowTransitionWrapper) HasRadius() bool { +func (p_ PageCurlWithShadowTransitionObject) HasRadius() bool { return p_.RespondsToSelector(objc.Sel("radius")) } // The radius of the curl. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/coreimage/cipagecurlwithshadowtransition/3228627-radius?language=objc -func (p_ PageCurlWithShadowTransitionWrapper) Radius() float64 { +func (p_ PageCurlWithShadowTransitionObject) Radius() float64 { rv := objc.Call[float64](p_, objc.Sel("radius")) return rv } -func (p_ PageCurlWithShadowTransitionWrapper) HasSetExtent() bool { - return p_.RespondsToSelector(objc.Sel("setExtent:")) +func (p_ PageCurlWithShadowTransitionObject) HasSetAngle() bool { + return p_.RespondsToSelector(objc.Sel("setAngle:")) } -// The extent of the effect. [Full Topic] +// The angle of the curling page. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/cipagecurlwithshadowtransition/3228626-extent?language=objc -func (p_ PageCurlWithShadowTransitionWrapper) SetExtent(value coregraphics.Rect) { - objc.Call[objc.Void](p_, objc.Sel("setExtent:"), value) +// [Full Topic]: https://developer.apple.com/documentation/coreimage/cipagecurlwithshadowtransition/3228624-angle?language=objc +func (p_ PageCurlWithShadowTransitionObject) SetAngle(value float64) { + objc.Call[objc.Void](p_, objc.Sel("setAngle:"), value) } -func (p_ PageCurlWithShadowTransitionWrapper) HasExtent() bool { - return p_.RespondsToSelector(objc.Sel("extent")) +func (p_ PageCurlWithShadowTransitionObject) HasAngle() bool { + return p_.RespondsToSelector(objc.Sel("angle")) } -// The extent of the effect. [Full Topic] +// The angle of the curling page. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/cipagecurlwithshadowtransition/3228626-extent?language=objc -func (p_ PageCurlWithShadowTransitionWrapper) Extent() coregraphics.Rect { - rv := objc.Call[coregraphics.Rect](p_, objc.Sel("extent")) +// [Full Topic]: https://developer.apple.com/documentation/coreimage/cipagecurlwithshadowtransition/3228624-angle?language=objc +func (p_ PageCurlWithShadowTransitionObject) Angle() float64 { + rv := objc.Call[float64](p_, objc.Sel("angle")) return rv } -func (p_ PageCurlWithShadowTransitionWrapper) HasSetAngle() bool { - return p_.RespondsToSelector(objc.Sel("setAngle:")) +func (p_ PageCurlWithShadowTransitionObject) HasSetExtent() bool { + return p_.RespondsToSelector(objc.Sel("setExtent:")) } -// The angle of the curling page. [Full Topic] +// The extent of the effect. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/cipagecurlwithshadowtransition/3228624-angle?language=objc -func (p_ PageCurlWithShadowTransitionWrapper) SetAngle(value float64) { - objc.Call[objc.Void](p_, objc.Sel("setAngle:"), value) +// [Full Topic]: https://developer.apple.com/documentation/coreimage/cipagecurlwithshadowtransition/3228626-extent?language=objc +func (p_ PageCurlWithShadowTransitionObject) SetExtent(value coregraphics.Rect) { + objc.Call[objc.Void](p_, objc.Sel("setExtent:"), value) } -func (p_ PageCurlWithShadowTransitionWrapper) HasAngle() bool { - return p_.RespondsToSelector(objc.Sel("angle")) +func (p_ PageCurlWithShadowTransitionObject) HasExtent() bool { + return p_.RespondsToSelector(objc.Sel("extent")) } -// The angle of the curling page. [Full Topic] +// The extent of the effect. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/cipagecurlwithshadowtransition/3228624-angle?language=objc -func (p_ PageCurlWithShadowTransitionWrapper) Angle() float64 { - rv := objc.Call[float64](p_, objc.Sel("angle")) +// [Full Topic]: https://developer.apple.com/documentation/coreimage/cipagecurlwithshadowtransition/3228626-extent?language=objc +func (p_ PageCurlWithShadowTransitionObject) Extent() coregraphics.Rect { + rv := objc.Call[coregraphics.Rect](p_, objc.Sel("extent")) return rv } -func (p_ PageCurlWithShadowTransitionWrapper) HasSetShadowSize() bool { - return p_.RespondsToSelector(objc.Sel("setShadowSize:")) +func (p_ PageCurlWithShadowTransitionObject) HasSetShadowAmount() bool { + return p_.RespondsToSelector(objc.Sel("setShadowAmount:")) } -// The maximum size, in pixels, of the shadow. [Full Topic] +// The strength of the shadow. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/cipagecurlwithshadowtransition/3228630-shadowsize?language=objc -func (p_ PageCurlWithShadowTransitionWrapper) SetShadowSize(value float64) { - objc.Call[objc.Void](p_, objc.Sel("setShadowSize:"), value) +// [Full Topic]: https://developer.apple.com/documentation/coreimage/cipagecurlwithshadowtransition/3228628-shadowamount?language=objc +func (p_ PageCurlWithShadowTransitionObject) SetShadowAmount(value float64) { + objc.Call[objc.Void](p_, objc.Sel("setShadowAmount:"), value) } -func (p_ PageCurlWithShadowTransitionWrapper) HasShadowSize() bool { - return p_.RespondsToSelector(objc.Sel("shadowSize")) +func (p_ PageCurlWithShadowTransitionObject) HasShadowAmount() bool { + return p_.RespondsToSelector(objc.Sel("shadowAmount")) } -// The maximum size, in pixels, of the shadow. [Full Topic] +// The strength of the shadow. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/cipagecurlwithshadowtransition/3228630-shadowsize?language=objc -func (p_ PageCurlWithShadowTransitionWrapper) ShadowSize() float64 { - rv := objc.Call[float64](p_, objc.Sel("shadowSize")) +// [Full Topic]: https://developer.apple.com/documentation/coreimage/cipagecurlwithshadowtransition/3228628-shadowamount?language=objc +func (p_ PageCurlWithShadowTransitionObject) ShadowAmount() float64 { + rv := objc.Call[float64](p_, objc.Sel("shadowAmount")) return rv } -func (p_ PageCurlWithShadowTransitionWrapper) HasSetBacksideImage() bool { - return p_.RespondsToSelector(objc.Sel("setBacksideImage:")) +func (p_ PageCurlWithShadowTransitionObject) HasSetShadowExtent() bool { + return p_.RespondsToSelector(objc.Sel("setShadowExtent:")) } -// The image that appears on the back of the source image as the page curls to reveal the target image. [Full Topic] +// The rectagular portion of input image that casts a shadow. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/cipagecurlwithshadowtransition/3228625-backsideimage?language=objc -func (p_ PageCurlWithShadowTransitionWrapper) SetBacksideImage(value IImage) { - objc.Call[objc.Void](p_, objc.Sel("setBacksideImage:"), objc.Ptr(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_ PageCurlWithShadowTransitionWrapper) HasBacksideImage() bool { - return p_.RespondsToSelector(objc.Sel("backsideImage")) +func (p_ PageCurlWithShadowTransitionObject) HasShadowExtent() bool { + return p_.RespondsToSelector(objc.Sel("shadowExtent")) } -// The image that appears on the back of the source image as the page curls to reveal the target image. [Full Topic] +// The rectagular portion of input image that casts a shadow. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/cipagecurlwithshadowtransition/3228625-backsideimage?language=objc -func (p_ PageCurlWithShadowTransitionWrapper) BacksideImage() Image { - rv := objc.Call[Image](p_, objc.Sel("backsideImage")) +// [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 } diff --git a/macos/coreimage/palette_centroid.gen.go b/macos/coreimage/palette_centroid_protocol.gen.go similarity index 73% rename from macos/coreimage/palette_centroid.gen.go rename to macos/coreimage/palette_centroid_protocol.gen.go index 3a99b171..a8d5155f 100644 --- a/macos/coreimage/palette_centroid.gen.go +++ b/macos/coreimage/palette_centroid_protocol.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package coreimage @@ -15,96 +15,99 @@ type PPaletteCentroid interface { HasSetInputImage() bool // optional - InputImage() IImage + InputImage() Image HasInputImage() bool // optional - SetPerceptual(value bool) - HasSetPerceptual() bool + SetPaletteImage(value Image) + HasSetPaletteImage() bool // optional - Perceptual() bool - HasPerceptual() bool + PaletteImage() Image + HasPaletteImage() bool // optional - SetPaletteImage(value Image) - HasSetPaletteImage() bool + SetPerceptual(value bool) + HasSetPerceptual() bool // optional - PaletteImage() IImage - HasPaletteImage() bool + Perceptual() bool + HasPerceptual() bool } -// A concrete type wrapper for the [PPaletteCentroid] protocol. -type PaletteCentroidWrapper struct { +// ensure impl type implements protocol interface +var _ PPaletteCentroid = (*PaletteCentroidObject)(nil) + +// A concrete type for the [PPaletteCentroid] protocol. +type PaletteCentroidObject struct { objc.Object } -func (p_ PaletteCentroidWrapper) HasSetInputImage() bool { +func (p_ PaletteCentroidObject) 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/cipalettecentroid/3228632-inputimage?language=objc -func (p_ PaletteCentroidWrapper) SetInputImage(value IImage) { +func (p_ PaletteCentroidObject) SetInputImage(value Image) { objc.Call[objc.Void](p_, objc.Sel("setInputImage:"), objc.Ptr(value)) } -func (p_ PaletteCentroidWrapper) HasInputImage() bool { +func (p_ PaletteCentroidObject) 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/cipalettecentroid/3228632-inputimage?language=objc -func (p_ PaletteCentroidWrapper) InputImage() Image { +func (p_ PaletteCentroidObject) InputImage() Image { rv := objc.Call[Image](p_, objc.Sel("inputImage")) return rv } -func (p_ PaletteCentroidWrapper) HasSetPerceptual() bool { - return p_.RespondsToSelector(objc.Sel("setPerceptual:")) +func (p_ PaletteCentroidObject) HasSetPaletteImage() bool { + return p_.RespondsToSelector(objc.Sel("setPaletteImage:")) } -// A Boolean value that specifies whether the filter applies the color palette in a perceptual color space. [Full Topic] +// The input color palette, obtained by using a k-means clustering filter. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/cipalettecentroid/3228634-perceptual?language=objc -func (p_ PaletteCentroidWrapper) SetPerceptual(value bool) { - objc.Call[objc.Void](p_, objc.Sel("setPerceptual:"), value) +// [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:"), objc.Ptr(value)) } -func (p_ PaletteCentroidWrapper) HasPerceptual() bool { - return p_.RespondsToSelector(objc.Sel("perceptual")) +func (p_ PaletteCentroidObject) HasPaletteImage() bool { + return p_.RespondsToSelector(objc.Sel("paletteImage")) } -// A Boolean value that specifies whether the filter applies the color palette in a perceptual color space. [Full Topic] +// The input color palette, obtained by using a k-means clustering filter. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/cipalettecentroid/3228634-perceptual?language=objc -func (p_ PaletteCentroidWrapper) Perceptual() bool { - rv := objc.Call[bool](p_, objc.Sel("perceptual")) +// [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_ PaletteCentroidWrapper) HasSetPaletteImage() bool { - return p_.RespondsToSelector(objc.Sel("setPaletteImage:")) +func (p_ PaletteCentroidObject) HasSetPerceptual() bool { + return p_.RespondsToSelector(objc.Sel("setPerceptual:")) } -// The input color palette, obtained by using a k-means clustering filter. [Full Topic] +// A Boolean value that specifies whether the filter applies the color palette in a perceptual color space. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/cipalettecentroid/3228633-paletteimage?language=objc -func (p_ PaletteCentroidWrapper) SetPaletteImage(value IImage) { - objc.Call[objc.Void](p_, objc.Sel("setPaletteImage:"), objc.Ptr(value)) +// [Full Topic]: https://developer.apple.com/documentation/coreimage/cipalettecentroid/3228634-perceptual?language=objc +func (p_ PaletteCentroidObject) SetPerceptual(value bool) { + objc.Call[objc.Void](p_, objc.Sel("setPerceptual:"), value) } -func (p_ PaletteCentroidWrapper) HasPaletteImage() bool { - return p_.RespondsToSelector(objc.Sel("paletteImage")) +func (p_ PaletteCentroidObject) HasPerceptual() bool { + return p_.RespondsToSelector(objc.Sel("perceptual")) } -// The input color palette, obtained by using a k-means clustering filter. [Full Topic] +// A Boolean value that specifies whether the filter applies the color palette in a perceptual color space. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/cipalettecentroid/3228633-paletteimage?language=objc -func (p_ PaletteCentroidWrapper) PaletteImage() Image { - rv := objc.Call[Image](p_, objc.Sel("paletteImage")) +// [Full Topic]: https://developer.apple.com/documentation/coreimage/cipalettecentroid/3228634-perceptual?language=objc +func (p_ PaletteCentroidObject) Perceptual() bool { + rv := objc.Call[bool](p_, objc.Sel("perceptual")) return rv } diff --git a/macos/coreimage/palettize.gen.go b/macos/coreimage/palettize_protocol.gen.go similarity index 74% rename from macos/coreimage/palettize.gen.go rename to macos/coreimage/palettize_protocol.gen.go index c20e4cad..8df21640 100644 --- a/macos/coreimage/palettize.gen.go +++ b/macos/coreimage/palettize_protocol.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package coreimage @@ -10,14 +10,6 @@ import ( // // [Full Topic]: https://developer.apple.com/documentation/coreimage/cipalettize?language=objc type PPalettize interface { - // optional - SetInputImage(value Image) - HasSetInputImage() bool - - // optional - InputImage() IImage - HasInputImage() bool - // optional SetPerceptual(value bool) HasSetPerceptual() bool @@ -31,80 +23,91 @@ type PPalettize interface { HasSetPaletteImage() bool // optional - PaletteImage() IImage + PaletteImage() Image HasPaletteImage() bool -} - -// A concrete type wrapper for the [PPalettize] protocol. -type PalettizeWrapper struct { - objc.Object -} -func (p_ PalettizeWrapper) HasSetInputImage() bool { - return p_.RespondsToSelector(objc.Sel("setInputImage:")) -} + // optional + SetInputImage(value Image) + HasSetInputImage() bool -// 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_ PalettizeWrapper) SetInputImage(value IImage) { - objc.Call[objc.Void](p_, objc.Sel("setInputImage:"), objc.Ptr(value)) + // optional + InputImage() Image + HasInputImage() bool } -func (p_ PalettizeWrapper) HasInputImage() bool { - return p_.RespondsToSelector(objc.Sel("inputImage")) -} +// ensure impl type implements protocol interface +var _ PPalettize = (*PalettizeObject)(nil) -// 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_ PalettizeWrapper) InputImage() Image { - rv := objc.Call[Image](p_, objc.Sel("inputImage")) - return rv +// A concrete type for the [PPalettize] protocol. +type PalettizeObject struct { + objc.Object } -func (p_ PalettizeWrapper) HasSetPerceptual() bool { +func (p_ PalettizeObject) HasSetPerceptual() bool { return p_.RespondsToSelector(objc.Sel("setPerceptual:")) } // A Boolean value that specifies whether the filter applies the color palette in a perceptual color space. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/coreimage/cipalettize/3228638-perceptual?language=objc -func (p_ PalettizeWrapper) SetPerceptual(value bool) { +func (p_ PalettizeObject) SetPerceptual(value bool) { objc.Call[objc.Void](p_, objc.Sel("setPerceptual:"), value) } -func (p_ PalettizeWrapper) HasPerceptual() bool { +func (p_ PalettizeObject) HasPerceptual() bool { return p_.RespondsToSelector(objc.Sel("perceptual")) } // A Boolean value that specifies whether the filter applies the color palette in a perceptual color space. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/coreimage/cipalettize/3228638-perceptual?language=objc -func (p_ PalettizeWrapper) Perceptual() bool { +func (p_ PalettizeObject) Perceptual() bool { rv := objc.Call[bool](p_, objc.Sel("perceptual")) return rv } -func (p_ PalettizeWrapper) HasSetPaletteImage() bool { +func (p_ PalettizeObject) 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/cipalettize/3228637-paletteimage?language=objc -func (p_ PalettizeWrapper) SetPaletteImage(value IImage) { +func (p_ PalettizeObject) SetPaletteImage(value Image) { objc.Call[objc.Void](p_, objc.Sel("setPaletteImage:"), objc.Ptr(value)) } -func (p_ PalettizeWrapper) HasPaletteImage() bool { +func (p_ PalettizeObject) 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/cipalettize/3228637-paletteimage?language=objc -func (p_ PalettizeWrapper) PaletteImage() Image { +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:"), objc.Ptr(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.gen.go b/macos/coreimage/parallelogram_tile_protocol.gen.go similarity index 73% rename from macos/coreimage/parallelogram_tile.gen.go rename to macos/coreimage/parallelogram_tile_protocol.gen.go index e96dddb5..c554cfb4 100644 --- a/macos/coreimage/parallelogram_tile.gen.go +++ b/macos/coreimage/parallelogram_tile_protocol.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package coreimage @@ -20,20 +20,20 @@ type PParallelogramTile interface { HasWidth() bool // optional - SetInputImage(value Image) - HasSetInputImage() bool + SetCenter(value coregraphics.Point) + HasSetCenter() bool // optional - InputImage() IImage - HasInputImage() bool + Center() coregraphics.Point + HasCenter() bool // optional - SetAngle(value float64) - HasSetAngle() bool + SetInputImage(value Image) + HasSetInputImage() bool // optional - Angle() float64 - HasAngle() bool + InputImage() Image + HasInputImage() bool // optional SetAcuteAngle(value float64) @@ -44,130 +44,133 @@ type PParallelogramTile interface { HasAcuteAngle() bool // optional - SetCenter(value coregraphics.Point) - HasSetCenter() bool + SetAngle(value float64) + HasSetAngle() bool // optional - Center() coregraphics.Point - HasCenter() bool + Angle() float64 + HasAngle() bool } -// A concrete type wrapper for the [PParallelogramTile] protocol. -type ParallelogramTileWrapper struct { +// ensure impl type implements protocol interface +var _ PParallelogramTile = (*ParallelogramTileObject)(nil) + +// A concrete type for the [PParallelogramTile] protocol. +type ParallelogramTileObject struct { objc.Object } -func (p_ ParallelogramTileWrapper) HasSetWidth() bool { +func (p_ ParallelogramTileObject) HasSetWidth() bool { return p_.RespondsToSelector(objc.Sel("setWidth:")) } // The width of a tile. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/coreimage/ciparallelogramtile/3228644-width?language=objc -func (p_ ParallelogramTileWrapper) SetWidth(value float64) { +func (p_ ParallelogramTileObject) SetWidth(value float64) { objc.Call[objc.Void](p_, objc.Sel("setWidth:"), value) } -func (p_ ParallelogramTileWrapper) HasWidth() bool { +func (p_ ParallelogramTileObject) HasWidth() bool { return p_.RespondsToSelector(objc.Sel("width")) } // The width of a tile. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/coreimage/ciparallelogramtile/3228644-width?language=objc -func (p_ ParallelogramTileWrapper) Width() float64 { +func (p_ ParallelogramTileObject) Width() float64 { rv := objc.Call[float64](p_, objc.Sel("width")) return rv } -func (p_ ParallelogramTileWrapper) HasSetInputImage() bool { - return p_.RespondsToSelector(objc.Sel("setInputImage:")) +func (p_ ParallelogramTileObject) HasSetCenter() bool { + return p_.RespondsToSelector(objc.Sel("setCenter:")) } -// The image to use as an input image. [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/3228643-inputimage?language=objc -func (p_ ParallelogramTileWrapper) SetInputImage(value IImage) { - objc.Call[objc.Void](p_, objc.Sel("setInputImage:"), objc.Ptr(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_ ParallelogramTileWrapper) HasInputImage() bool { - return p_.RespondsToSelector(objc.Sel("inputImage")) +func (p_ ParallelogramTileObject) HasCenter() bool { + return p_.RespondsToSelector(objc.Sel("center")) } -// The image to use as an input image. [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/3228643-inputimage?language=objc -func (p_ ParallelogramTileWrapper) InputImage() Image { - rv := objc.Call[Image](p_, objc.Sel("inputImage")) +// [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_ ParallelogramTileWrapper) HasSetAngle() bool { - return p_.RespondsToSelector(objc.Sel("setAngle:")) +func (p_ ParallelogramTileObject) HasSetInputImage() bool { + return p_.RespondsToSelector(objc.Sel("setInputImage:")) } -// The angle, in radians, of the tiled pattern. [Full Topic] +// The image to use as an input image. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/ciparallelogramtile/3228641-angle?language=objc -func (p_ ParallelogramTileWrapper) SetAngle(value float64) { - objc.Call[objc.Void](p_, objc.Sel("setAngle:"), value) +// [Full Topic]: https://developer.apple.com/documentation/coreimage/ciparallelogramtile/3228643-inputimage?language=objc +func (p_ ParallelogramTileObject) SetInputImage(value Image) { + objc.Call[objc.Void](p_, objc.Sel("setInputImage:"), objc.Ptr(value)) } -func (p_ ParallelogramTileWrapper) HasAngle() bool { - return p_.RespondsToSelector(objc.Sel("angle")) +func (p_ ParallelogramTileObject) HasInputImage() bool { + return p_.RespondsToSelector(objc.Sel("inputImage")) } -// The angle, in radians, of the tiled pattern. [Full Topic] +// The image to use as an input image. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/ciparallelogramtile/3228641-angle?language=objc -func (p_ ParallelogramTileWrapper) Angle() float64 { - rv := objc.Call[float64](p_, objc.Sel("angle")) +// [Full Topic]: https://developer.apple.com/documentation/coreimage/ciparallelogramtile/3228643-inputimage?language=objc +func (p_ ParallelogramTileObject) InputImage() Image { + rv := objc.Call[Image](p_, objc.Sel("inputImage")) return rv } -func (p_ ParallelogramTileWrapper) HasSetAcuteAngle() bool { +func (p_ ParallelogramTileObject) HasSetAcuteAngle() bool { return p_.RespondsToSelector(objc.Sel("setAcuteAngle:")) } // The primary angle for the repeating parallelogram tile. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/coreimage/ciparallelogramtile/3228640-acuteangle?language=objc -func (p_ ParallelogramTileWrapper) SetAcuteAngle(value float64) { +func (p_ ParallelogramTileObject) SetAcuteAngle(value float64) { objc.Call[objc.Void](p_, objc.Sel("setAcuteAngle:"), value) } -func (p_ ParallelogramTileWrapper) HasAcuteAngle() bool { +func (p_ ParallelogramTileObject) HasAcuteAngle() bool { return p_.RespondsToSelector(objc.Sel("acuteAngle")) } // The primary angle for the repeating parallelogram tile. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/coreimage/ciparallelogramtile/3228640-acuteangle?language=objc -func (p_ ParallelogramTileWrapper) AcuteAngle() float64 { +func (p_ ParallelogramTileObject) AcuteAngle() float64 { rv := objc.Call[float64](p_, objc.Sel("acuteAngle")) return rv } -func (p_ ParallelogramTileWrapper) HasSetCenter() bool { - return p_.RespondsToSelector(objc.Sel("setCenter:")) +func (p_ ParallelogramTileObject) HasSetAngle() bool { + return p_.RespondsToSelector(objc.Sel("setAngle:")) } -// The x and y position to use as the center of the effect. [Full Topic] +// The angle, in radians, of the tiled pattern. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/ciparallelogramtile/3228642-center?language=objc -func (p_ ParallelogramTileWrapper) SetCenter(value coregraphics.Point) { - objc.Call[objc.Void](p_, objc.Sel("setCenter:"), value) +// [Full Topic]: https://developer.apple.com/documentation/coreimage/ciparallelogramtile/3228641-angle?language=objc +func (p_ ParallelogramTileObject) SetAngle(value float64) { + objc.Call[objc.Void](p_, objc.Sel("setAngle:"), value) } -func (p_ ParallelogramTileWrapper) HasCenter() bool { - return p_.RespondsToSelector(objc.Sel("center")) +func (p_ ParallelogramTileObject) HasAngle() bool { + return p_.RespondsToSelector(objc.Sel("angle")) } -// The x and y position to use as the center of the effect. [Full Topic] +// The angle, in radians, of the tiled pattern. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/ciparallelogramtile/3228642-center?language=objc -func (p_ ParallelogramTileWrapper) Center() coregraphics.Point { - rv := objc.Call[coregraphics.Point](p_, objc.Sel("center")) +// [Full Topic]: https://developer.apple.com/documentation/coreimage/ciparallelogramtile/3228641-angle?language=objc +func (p_ ParallelogramTileObject) Angle() float64 { + rv := objc.Call[float64](p_, objc.Sel("angle")) return rv } diff --git a/macos/coreimage/pd_f417_barcode_generator.gen.go b/macos/coreimage/pd_f417_barcode_generator_protocol.gen.go similarity index 74% rename from macos/coreimage/pd_f417_barcode_generator.gen.go rename to macos/coreimage/pd_f417_barcode_generator_protocol.gen.go index 1954f445..49a053ba 100644 --- a/macos/coreimage/pd_f417_barcode_generator.gen.go +++ b/macos/coreimage/pd_f417_barcode_generator_protocol.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package coreimage @@ -11,36 +11,36 @@ import ( // [Full Topic]: https://developer.apple.com/documentation/coreimage/cipdf417barcodegenerator?language=objc type PPDF417BarcodeGenerator interface { // optional - SetMinHeight(value float64) - HasSetMinHeight() bool + SetMessage(value []byte) + HasSetMessage() bool // optional - MinHeight() float64 - HasMinHeight() bool + Message() []byte + HasMessage() bool // optional - SetDataColumns(value float64) - HasSetDataColumns() bool + SetAlwaysSpecifyCompaction(value float64) + HasSetAlwaysSpecifyCompaction() bool // optional - DataColumns() float64 - HasDataColumns() bool + AlwaysSpecifyCompaction() float64 + HasAlwaysSpecifyCompaction() bool // optional - SetMinWidth(value float64) - HasSetMinWidth() bool + SetRows(value float64) + HasSetRows() bool // optional - MinWidth() float64 - HasMinWidth() bool + Rows() float64 + HasRows() bool // optional - SetMaxHeight(value float64) - HasSetMaxHeight() bool + SetMinWidth(value float64) + HasSetMinWidth() bool // optional - MaxHeight() float64 - HasMaxHeight() bool + MinWidth() float64 + HasMinWidth() bool // optional SetMaxWidth(value float64) @@ -51,339 +51,342 @@ type PPDF417BarcodeGenerator interface { HasMaxWidth() bool // optional - SetRows(value float64) - HasSetRows() bool + SetCorrectionLevel(value float64) + HasSetCorrectionLevel() bool // optional - Rows() float64 - HasRows() bool + CorrectionLevel() float64 + HasCorrectionLevel() bool // optional - SetPreferredAspectRatio(value float64) - HasSetPreferredAspectRatio() bool + SetCompactStyle(value float64) + HasSetCompactStyle() bool // optional - PreferredAspectRatio() float64 - HasPreferredAspectRatio() bool + CompactStyle() float64 + HasCompactStyle() bool // optional - SetAlwaysSpecifyCompaction(value float64) - HasSetAlwaysSpecifyCompaction() bool + SetMaxHeight(value float64) + HasSetMaxHeight() bool // optional - AlwaysSpecifyCompaction() float64 - HasAlwaysSpecifyCompaction() bool + MaxHeight() float64 + HasMaxHeight() bool // optional - SetCompactionMode(value float64) - HasSetCompactionMode() bool + SetPreferredAspectRatio(value float64) + HasSetPreferredAspectRatio() bool // optional - CompactionMode() float64 - HasCompactionMode() bool + PreferredAspectRatio() float64 + HasPreferredAspectRatio() bool // optional - SetCompactStyle(value float64) - HasSetCompactStyle() bool + SetMinHeight(value float64) + HasSetMinHeight() bool // optional - CompactStyle() float64 - HasCompactStyle() bool + MinHeight() float64 + HasMinHeight() bool // optional - SetMessage(value []byte) - HasSetMessage() bool + SetDataColumns(value float64) + HasSetDataColumns() bool // optional - Message() []byte - HasMessage() bool + DataColumns() float64 + HasDataColumns() bool // optional - SetCorrectionLevel(value float64) - HasSetCorrectionLevel() bool + SetCompactionMode(value float64) + HasSetCompactionMode() bool // optional - CorrectionLevel() float64 - HasCorrectionLevel() bool + CompactionMode() float64 + HasCompactionMode() bool } -// A concrete type wrapper for the [PPDF417BarcodeGenerator] protocol. -type PDF417BarcodeGeneratorWrapper struct { +// ensure impl type implements protocol interface +var _ PPDF417BarcodeGenerator = (*PDF417BarcodeGeneratorObject)(nil) + +// A concrete type for the [PPDF417BarcodeGenerator] protocol. +type PDF417BarcodeGeneratorObject struct { objc.Object } -func (p_ PDF417BarcodeGeneratorWrapper) HasSetMinHeight() bool { - return p_.RespondsToSelector(objc.Sel("setMinHeight:")) +func (p_ PDF417BarcodeGeneratorObject) HasSetMessage() bool { + return p_.RespondsToSelector(objc.Sel("setMessage:")) } -// The minimum height, in pixels, of the generated barcode. [Full Topic] +// The message to encode in the PDF417 barcode. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/cipdf417barcodegenerator/3228613-minheight?language=objc -func (p_ PDF417BarcodeGeneratorWrapper) SetMinHeight(value float64) { - objc.Call[objc.Void](p_, objc.Sel("setMinHeight:"), 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_ PDF417BarcodeGeneratorWrapper) HasMinHeight() bool { - return p_.RespondsToSelector(objc.Sel("minHeight")) +func (p_ PDF417BarcodeGeneratorObject) HasMessage() bool { + return p_.RespondsToSelector(objc.Sel("message")) } -// The minimum height, in pixels, of the generated barcode. [Full Topic] +// The message to encode in the PDF417 barcode. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/cipdf417barcodegenerator/3228613-minheight?language=objc -func (p_ PDF417BarcodeGeneratorWrapper) MinHeight() float64 { - rv := objc.Call[float64](p_, objc.Sel("minHeight")) +// [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_ PDF417BarcodeGeneratorWrapper) HasSetDataColumns() bool { - return p_.RespondsToSelector(objc.Sel("setDataColumns:")) +func (p_ PDF417BarcodeGeneratorObject) HasSetAlwaysSpecifyCompaction() bool { + return p_.RespondsToSelector(objc.Sel("setAlwaysSpecifyCompaction:")) } -// The number of data columns in 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/3228609-datacolumns?language=objc -func (p_ PDF417BarcodeGeneratorWrapper) SetDataColumns(value float64) { - objc.Call[objc.Void](p_, objc.Sel("setDataColumns:"), value) +// [Full Topic]: https://developer.apple.com/documentation/coreimage/cipdf417barcodegenerator/3228605-alwaysspecifycompaction?language=objc +func (p_ PDF417BarcodeGeneratorObject) SetAlwaysSpecifyCompaction(value float64) { + objc.Call[objc.Void](p_, objc.Sel("setAlwaysSpecifyCompaction:"), value) } -func (p_ PDF417BarcodeGeneratorWrapper) HasDataColumns() bool { - return p_.RespondsToSelector(objc.Sel("dataColumns")) +func (p_ PDF417BarcodeGeneratorObject) HasAlwaysSpecifyCompaction() bool { + return p_.RespondsToSelector(objc.Sel("alwaysSpecifyCompaction")) } -// The number of data columns in 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/3228609-datacolumns?language=objc -func (p_ PDF417BarcodeGeneratorWrapper) DataColumns() float64 { - rv := objc.Call[float64](p_, objc.Sel("dataColumns")) +// [Full Topic]: https://developer.apple.com/documentation/coreimage/cipdf417barcodegenerator/3228605-alwaysspecifycompaction?language=objc +func (p_ PDF417BarcodeGeneratorObject) AlwaysSpecifyCompaction() float64 { + rv := objc.Call[float64](p_, objc.Sel("alwaysSpecifyCompaction")) return rv } -func (p_ PDF417BarcodeGeneratorWrapper) HasSetMinWidth() bool { - return p_.RespondsToSelector(objc.Sel("setMinWidth:")) +func (p_ PDF417BarcodeGeneratorObject) HasSetRows() bool { + return p_.RespondsToSelector(objc.Sel("setRows:")) } -// The minimum width, in pixels, 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/3228614-minwidth?language=objc -func (p_ PDF417BarcodeGeneratorWrapper) SetMinWidth(value float64) { - objc.Call[objc.Void](p_, objc.Sel("setMinWidth:"), value) +// [Full Topic]: https://developer.apple.com/documentation/coreimage/cipdf417barcodegenerator/3228616-rows?language=objc +func (p_ PDF417BarcodeGeneratorObject) SetRows(value float64) { + objc.Call[objc.Void](p_, objc.Sel("setRows:"), value) } -func (p_ PDF417BarcodeGeneratorWrapper) HasMinWidth() bool { - return p_.RespondsToSelector(objc.Sel("minWidth")) +func (p_ PDF417BarcodeGeneratorObject) HasRows() bool { + return p_.RespondsToSelector(objc.Sel("rows")) } -// The minimum width, in pixels, 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/3228614-minwidth?language=objc -func (p_ PDF417BarcodeGeneratorWrapper) MinWidth() float64 { - rv := objc.Call[float64](p_, objc.Sel("minWidth")) +// [Full Topic]: https://developer.apple.com/documentation/coreimage/cipdf417barcodegenerator/3228616-rows?language=objc +func (p_ PDF417BarcodeGeneratorObject) Rows() float64 { + rv := objc.Call[float64](p_, objc.Sel("rows")) return rv } -func (p_ PDF417BarcodeGeneratorWrapper) HasSetMaxHeight() bool { - return p_.RespondsToSelector(objc.Sel("setMaxHeight:")) +func (p_ PDF417BarcodeGeneratorObject) HasSetMinWidth() bool { + return p_.RespondsToSelector(objc.Sel("setMinWidth:")) } -// The maximum height, in pixels, of the generated barcode. [Full Topic] +// The minimum width, in pixels, of the generated barcode. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/cipdf417barcodegenerator/3228610-maxheight?language=objc -func (p_ PDF417BarcodeGeneratorWrapper) SetMaxHeight(value float64) { - objc.Call[objc.Void](p_, objc.Sel("setMaxHeight:"), value) +// [Full Topic]: https://developer.apple.com/documentation/coreimage/cipdf417barcodegenerator/3228614-minwidth?language=objc +func (p_ PDF417BarcodeGeneratorObject) SetMinWidth(value float64) { + objc.Call[objc.Void](p_, objc.Sel("setMinWidth:"), value) } -func (p_ PDF417BarcodeGeneratorWrapper) HasMaxHeight() bool { - return p_.RespondsToSelector(objc.Sel("maxHeight")) +func (p_ PDF417BarcodeGeneratorObject) HasMinWidth() bool { + return p_.RespondsToSelector(objc.Sel("minWidth")) } -// The maximum height, in pixels, of the generated barcode. [Full Topic] +// The minimum width, in pixels, of the generated barcode. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/cipdf417barcodegenerator/3228610-maxheight?language=objc -func (p_ PDF417BarcodeGeneratorWrapper) MaxHeight() float64 { - rv := objc.Call[float64](p_, objc.Sel("maxHeight")) +// [Full Topic]: https://developer.apple.com/documentation/coreimage/cipdf417barcodegenerator/3228614-minwidth?language=objc +func (p_ PDF417BarcodeGeneratorObject) MinWidth() float64 { + rv := objc.Call[float64](p_, objc.Sel("minWidth")) return rv } -func (p_ PDF417BarcodeGeneratorWrapper) HasSetMaxWidth() bool { +func (p_ PDF417BarcodeGeneratorObject) HasSetMaxWidth() bool { return p_.RespondsToSelector(objc.Sel("setMaxWidth:")) } // The maximum width, in pixels, of the generated barcode. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/coreimage/cipdf417barcodegenerator/3228611-maxwidth?language=objc -func (p_ PDF417BarcodeGeneratorWrapper) SetMaxWidth(value float64) { +func (p_ PDF417BarcodeGeneratorObject) SetMaxWidth(value float64) { objc.Call[objc.Void](p_, objc.Sel("setMaxWidth:"), value) } -func (p_ PDF417BarcodeGeneratorWrapper) HasMaxWidth() bool { +func (p_ PDF417BarcodeGeneratorObject) HasMaxWidth() bool { return p_.RespondsToSelector(objc.Sel("maxWidth")) } // The maximum width, in pixels, of the generated barcode. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/coreimage/cipdf417barcodegenerator/3228611-maxwidth?language=objc -func (p_ PDF417BarcodeGeneratorWrapper) MaxWidth() float64 { +func (p_ PDF417BarcodeGeneratorObject) MaxWidth() float64 { rv := objc.Call[float64](p_, objc.Sel("maxWidth")) return rv } -func (p_ PDF417BarcodeGeneratorWrapper) HasSetRows() bool { - return p_.RespondsToSelector(objc.Sel("setRows:")) +func (p_ PDF417BarcodeGeneratorObject) HasSetCorrectionLevel() bool { + return p_.RespondsToSelector(objc.Sel("setCorrectionLevel:")) } -// The number of rows in the generated barcode. [Full Topic] +// The correction level ratio of the generated barcode. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/cipdf417barcodegenerator/3228616-rows?language=objc -func (p_ PDF417BarcodeGeneratorWrapper) SetRows(value float64) { - objc.Call[objc.Void](p_, objc.Sel("setRows:"), value) +// [Full Topic]: https://developer.apple.com/documentation/coreimage/cipdf417barcodegenerator/3228608-correctionlevel?language=objc +func (p_ PDF417BarcodeGeneratorObject) SetCorrectionLevel(value float64) { + objc.Call[objc.Void](p_, objc.Sel("setCorrectionLevel:"), value) } -func (p_ PDF417BarcodeGeneratorWrapper) HasRows() bool { - return p_.RespondsToSelector(objc.Sel("rows")) +func (p_ PDF417BarcodeGeneratorObject) HasCorrectionLevel() bool { + return p_.RespondsToSelector(objc.Sel("correctionLevel")) } -// The number of rows in the generated barcode. [Full Topic] +// The correction level ratio of the generated barcode. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/cipdf417barcodegenerator/3228616-rows?language=objc -func (p_ PDF417BarcodeGeneratorWrapper) Rows() float64 { - rv := objc.Call[float64](p_, objc.Sel("rows")) +// [Full Topic]: https://developer.apple.com/documentation/coreimage/cipdf417barcodegenerator/3228608-correctionlevel?language=objc +func (p_ PDF417BarcodeGeneratorObject) CorrectionLevel() float64 { + rv := objc.Call[float64](p_, objc.Sel("correctionLevel")) return rv } -func (p_ PDF417BarcodeGeneratorWrapper) HasSetPreferredAspectRatio() bool { - return p_.RespondsToSelector(objc.Sel("setPreferredAspectRatio:")) +func (p_ PDF417BarcodeGeneratorObject) HasSetCompactStyle() bool { + return p_.RespondsToSelector(objc.Sel("setCompactStyle:")) } -// The preferred aspect ratio 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/3228615-preferredaspectratio?language=objc -func (p_ PDF417BarcodeGeneratorWrapper) SetPreferredAspectRatio(value float64) { - objc.Call[objc.Void](p_, objc.Sel("setPreferredAspectRatio:"), value) +// [Full Topic]: https://developer.apple.com/documentation/coreimage/cipdf417barcodegenerator/3228606-compactstyle?language=objc +func (p_ PDF417BarcodeGeneratorObject) SetCompactStyle(value float64) { + objc.Call[objc.Void](p_, objc.Sel("setCompactStyle:"), value) } -func (p_ PDF417BarcodeGeneratorWrapper) HasPreferredAspectRatio() bool { - return p_.RespondsToSelector(objc.Sel("preferredAspectRatio")) +func (p_ PDF417BarcodeGeneratorObject) HasCompactStyle() bool { + return p_.RespondsToSelector(objc.Sel("compactStyle")) } -// The preferred aspect ratio 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/3228615-preferredaspectratio?language=objc -func (p_ PDF417BarcodeGeneratorWrapper) PreferredAspectRatio() float64 { - rv := objc.Call[float64](p_, objc.Sel("preferredAspectRatio")) +// [Full Topic]: https://developer.apple.com/documentation/coreimage/cipdf417barcodegenerator/3228606-compactstyle?language=objc +func (p_ PDF417BarcodeGeneratorObject) CompactStyle() float64 { + rv := objc.Call[float64](p_, objc.Sel("compactStyle")) return rv } -func (p_ PDF417BarcodeGeneratorWrapper) HasSetAlwaysSpecifyCompaction() bool { - return p_.RespondsToSelector(objc.Sel("setAlwaysSpecifyCompaction:")) +func (p_ PDF417BarcodeGeneratorObject) HasSetMaxHeight() bool { + return p_.RespondsToSelector(objc.Sel("setMaxHeight:")) } -// A Boolean value specifying whether to force compaction style. [Full Topic] +// The maximum height, in pixels, of the generated barcode. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/cipdf417barcodegenerator/3228605-alwaysspecifycompaction?language=objc -func (p_ PDF417BarcodeGeneratorWrapper) SetAlwaysSpecifyCompaction(value float64) { - objc.Call[objc.Void](p_, objc.Sel("setAlwaysSpecifyCompaction:"), value) +// [Full Topic]: https://developer.apple.com/documentation/coreimage/cipdf417barcodegenerator/3228610-maxheight?language=objc +func (p_ PDF417BarcodeGeneratorObject) SetMaxHeight(value float64) { + objc.Call[objc.Void](p_, objc.Sel("setMaxHeight:"), value) } -func (p_ PDF417BarcodeGeneratorWrapper) HasAlwaysSpecifyCompaction() bool { - return p_.RespondsToSelector(objc.Sel("alwaysSpecifyCompaction")) +func (p_ PDF417BarcodeGeneratorObject) HasMaxHeight() bool { + return p_.RespondsToSelector(objc.Sel("maxHeight")) } -// A Boolean value specifying whether to force compaction style. [Full Topic] +// The maximum height, in pixels, of the generated barcode. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/cipdf417barcodegenerator/3228605-alwaysspecifycompaction?language=objc -func (p_ PDF417BarcodeGeneratorWrapper) AlwaysSpecifyCompaction() float64 { - rv := objc.Call[float64](p_, objc.Sel("alwaysSpecifyCompaction")) +// [Full Topic]: https://developer.apple.com/documentation/coreimage/cipdf417barcodegenerator/3228610-maxheight?language=objc +func (p_ PDF417BarcodeGeneratorObject) MaxHeight() float64 { + rv := objc.Call[float64](p_, objc.Sel("maxHeight")) return rv } -func (p_ PDF417BarcodeGeneratorWrapper) HasSetCompactionMode() bool { - return p_.RespondsToSelector(objc.Sel("setCompactionMode:")) +func (p_ PDF417BarcodeGeneratorObject) HasSetPreferredAspectRatio() bool { + return p_.RespondsToSelector(objc.Sel("setPreferredAspectRatio:")) } -// The compaction mode of the generated barcode. [Full Topic] +// The preferred aspect ratio of the generated barcode. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/cipdf417barcodegenerator/3228607-compactionmode?language=objc -func (p_ PDF417BarcodeGeneratorWrapper) SetCompactionMode(value float64) { - objc.Call[objc.Void](p_, objc.Sel("setCompactionMode:"), value) +// [Full Topic]: https://developer.apple.com/documentation/coreimage/cipdf417barcodegenerator/3228615-preferredaspectratio?language=objc +func (p_ PDF417BarcodeGeneratorObject) SetPreferredAspectRatio(value float64) { + objc.Call[objc.Void](p_, objc.Sel("setPreferredAspectRatio:"), value) } -func (p_ PDF417BarcodeGeneratorWrapper) HasCompactionMode() bool { - return p_.RespondsToSelector(objc.Sel("compactionMode")) +func (p_ PDF417BarcodeGeneratorObject) HasPreferredAspectRatio() bool { + return p_.RespondsToSelector(objc.Sel("preferredAspectRatio")) } -// The compaction mode of the generated barcode. [Full Topic] +// The preferred aspect ratio of the generated barcode. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/cipdf417barcodegenerator/3228607-compactionmode?language=objc -func (p_ PDF417BarcodeGeneratorWrapper) CompactionMode() float64 { - rv := objc.Call[float64](p_, objc.Sel("compactionMode")) +// [Full Topic]: https://developer.apple.com/documentation/coreimage/cipdf417barcodegenerator/3228615-preferredaspectratio?language=objc +func (p_ PDF417BarcodeGeneratorObject) PreferredAspectRatio() float64 { + rv := objc.Call[float64](p_, objc.Sel("preferredAspectRatio")) return rv } -func (p_ PDF417BarcodeGeneratorWrapper) HasSetCompactStyle() bool { - return p_.RespondsToSelector(objc.Sel("setCompactStyle:")) +func (p_ PDF417BarcodeGeneratorObject) HasSetMinHeight() bool { + return p_.RespondsToSelector(objc.Sel("setMinHeight:")) } -// A Boolean value specifying whether to force compact style Aztec code. [Full Topic] +// The minimum height, in pixels, of the generated barcode. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/cipdf417barcodegenerator/3228606-compactstyle?language=objc -func (p_ PDF417BarcodeGeneratorWrapper) SetCompactStyle(value float64) { - objc.Call[objc.Void](p_, objc.Sel("setCompactStyle:"), value) +// [Full Topic]: https://developer.apple.com/documentation/coreimage/cipdf417barcodegenerator/3228613-minheight?language=objc +func (p_ PDF417BarcodeGeneratorObject) SetMinHeight(value float64) { + objc.Call[objc.Void](p_, objc.Sel("setMinHeight:"), value) } -func (p_ PDF417BarcodeGeneratorWrapper) HasCompactStyle() bool { - return p_.RespondsToSelector(objc.Sel("compactStyle")) +func (p_ PDF417BarcodeGeneratorObject) HasMinHeight() bool { + return p_.RespondsToSelector(objc.Sel("minHeight")) } -// A Boolean value specifying whether to force compact style Aztec code. [Full Topic] +// The minimum height, in pixels, of the generated barcode. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/cipdf417barcodegenerator/3228606-compactstyle?language=objc -func (p_ PDF417BarcodeGeneratorWrapper) CompactStyle() float64 { - rv := objc.Call[float64](p_, objc.Sel("compactStyle")) +// [Full Topic]: https://developer.apple.com/documentation/coreimage/cipdf417barcodegenerator/3228613-minheight?language=objc +func (p_ PDF417BarcodeGeneratorObject) MinHeight() float64 { + rv := objc.Call[float64](p_, objc.Sel("minHeight")) return rv } -func (p_ PDF417BarcodeGeneratorWrapper) HasSetMessage() bool { - return p_.RespondsToSelector(objc.Sel("setMessage:")) +func (p_ PDF417BarcodeGeneratorObject) HasSetDataColumns() bool { + return p_.RespondsToSelector(objc.Sel("setDataColumns:")) } -// The message to encode in the PDF417 barcode. [Full Topic] +// The number of data columns in the generated barcode. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/cipdf417barcodegenerator/3228612-message?language=objc -func (p_ PDF417BarcodeGeneratorWrapper) SetMessage(value []byte) { - objc.Call[objc.Void](p_, objc.Sel("setMessage:"), value) +// [Full Topic]: https://developer.apple.com/documentation/coreimage/cipdf417barcodegenerator/3228609-datacolumns?language=objc +func (p_ PDF417BarcodeGeneratorObject) SetDataColumns(value float64) { + objc.Call[objc.Void](p_, objc.Sel("setDataColumns:"), value) } -func (p_ PDF417BarcodeGeneratorWrapper) HasMessage() bool { - return p_.RespondsToSelector(objc.Sel("message")) +func (p_ PDF417BarcodeGeneratorObject) HasDataColumns() bool { + return p_.RespondsToSelector(objc.Sel("dataColumns")) } -// The message to encode in the PDF417 barcode. [Full Topic] +// The number of data columns in the generated barcode. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/cipdf417barcodegenerator/3228612-message?language=objc -func (p_ PDF417BarcodeGeneratorWrapper) Message() []byte { - rv := objc.Call[[]byte](p_, objc.Sel("message")) +// [Full Topic]: https://developer.apple.com/documentation/coreimage/cipdf417barcodegenerator/3228609-datacolumns?language=objc +func (p_ PDF417BarcodeGeneratorObject) DataColumns() float64 { + rv := objc.Call[float64](p_, objc.Sel("dataColumns")) return rv } -func (p_ PDF417BarcodeGeneratorWrapper) HasSetCorrectionLevel() bool { - return p_.RespondsToSelector(objc.Sel("setCorrectionLevel:")) +func (p_ PDF417BarcodeGeneratorObject) HasSetCompactionMode() bool { + return p_.RespondsToSelector(objc.Sel("setCompactionMode:")) } -// The correction level 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/3228608-correctionlevel?language=objc -func (p_ PDF417BarcodeGeneratorWrapper) SetCorrectionLevel(value float64) { - objc.Call[objc.Void](p_, objc.Sel("setCorrectionLevel:"), value) +// [Full Topic]: https://developer.apple.com/documentation/coreimage/cipdf417barcodegenerator/3228607-compactionmode?language=objc +func (p_ PDF417BarcodeGeneratorObject) SetCompactionMode(value float64) { + objc.Call[objc.Void](p_, objc.Sel("setCompactionMode:"), value) } -func (p_ PDF417BarcodeGeneratorWrapper) HasCorrectionLevel() bool { - return p_.RespondsToSelector(objc.Sel("correctionLevel")) +func (p_ PDF417BarcodeGeneratorObject) HasCompactionMode() bool { + return p_.RespondsToSelector(objc.Sel("compactionMode")) } -// The correction level 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/3228608-correctionlevel?language=objc -func (p_ PDF417BarcodeGeneratorWrapper) CorrectionLevel() float64 { - rv := objc.Call[float64](p_, objc.Sel("correctionLevel")) +// [Full Topic]: https://developer.apple.com/documentation/coreimage/cipdf417barcodegenerator/3228607-compactionmode?language=objc +func (p_ PDF417BarcodeGeneratorObject) CompactionMode() float64 { + rv := objc.Call[float64](p_, objc.Sel("compactionMode")) return rv } diff --git a/macos/coreimage/pd_f417_code_descriptor.gen.go b/macos/coreimage/pd_f417_code_descriptor.gen.go index 25c7ea71..bf3b1f27 100644 --- a/macos/coreimage/pd_f417_code_descriptor.gen.go +++ b/macos/coreimage/pd_f417_code_descriptor.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package coreimage @@ -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] @@ -68,10 +68,6 @@ func (pc _PDF417CodeDescriptorClass) Alloc() PDF417CodeDescriptor { return rv } -func PDF417CodeDescriptor_Alloc() PDF417CodeDescriptor { - return PDF417CodeDescriptorClass.Alloc() -} - func (pc _PDF417CodeDescriptorClass) New() PDF417CodeDescriptor { rv := objc.Call[PDF417CodeDescriptor](pc, objc.Sel("new")) rv.Autorelease() @@ -87,19 +83,11 @@ func (p_ PDF417CodeDescriptor) Init() PDF417CodeDescriptor { 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 -func (p_ PDF417CodeDescriptor) IsCompact() bool { - rv := objc.Call[bool](p_, objc.Sel("isCompact")) - return rv -} - -// The number of columns in the PDF417 code. [Full Topic] +// The error-corrected payload containing the data encoded in the PDF417 code. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/cipdf417codedescriptor/2875171-columncount?language=objc -func (p_ PDF417CodeDescriptor) ColumnCount() int { - rv := objc.Call[int](p_, objc.Sel("columnCount")) +// [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 } @@ -111,10 +99,18 @@ func (p_ PDF417CodeDescriptor) RowCount() int { return rv } -// The error-corrected payload containing the data encoded in the PDF417 code. [Full Topic] +// A boolean value telling if the PDF417 code is compact. [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")) +// [Full Topic]: https://developer.apple.com/documentation/coreimage/cipdf417codedescriptor/2875194-iscompact?language=objc +func (p_ PDF417CodeDescriptor) IsCompact() bool { + rv := objc.Call[bool](p_, objc.Sel("isCompact")) + return rv +} + +// The number of columns in the PDF417 code. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/coreimage/cipdf417codedescriptor/2875171-columncount?language=objc +func (p_ PDF417CodeDescriptor) ColumnCount() int { + rv := objc.Call[int](p_, objc.Sel("columnCount")) return rv } diff --git a/macos/coreimage/person_segmentation.gen.go b/macos/coreimage/person_segmentation_protocol.gen.go similarity index 67% rename from macos/coreimage/person_segmentation.gen.go rename to macos/coreimage/person_segmentation_protocol.gen.go index 5ef7dd83..0a9fff02 100644 --- a/macos/coreimage/person_segmentation.gen.go +++ b/macos/coreimage/person_segmentation_protocol.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package coreimage @@ -10,14 +10,6 @@ import ( // // [Full Topic]: https://developer.apple.com/documentation/coreimage/cipersonsegmentation?language=objc type PPersonSegmentation interface { - // optional - SetInputImage(value Image) - HasSetInputImage() bool - - // optional - InputImage() IImage - HasInputImage() bool - // optional SetQualityLevel(value uint) HasSetQualityLevel() bool @@ -25,55 +17,66 @@ type PPersonSegmentation interface { // optional QualityLevel() uint HasQualityLevel() bool + + // optional + SetInputImage(value Image) + HasSetInputImage() bool + + // optional + InputImage() Image + HasInputImage() bool } -// A concrete type wrapper for the [PPersonSegmentation] protocol. -type PersonSegmentationWrapper struct { +// ensure impl type implements protocol interface +var _ PPersonSegmentation = (*PersonSegmentationObject)(nil) + +// A concrete type for the [PPersonSegmentation] protocol. +type PersonSegmentationObject struct { objc.Object } -func (p_ PersonSegmentationWrapper) 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_ PersonSegmentationWrapper) SetInputImage(value IImage) { - objc.Call[objc.Void](p_, objc.Sel("setInputImage:"), objc.Ptr(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_ PersonSegmentationWrapper) 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_ PersonSegmentationWrapper) 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 } -func (p_ PersonSegmentationWrapper) 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_ PersonSegmentationWrapper) 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:"), objc.Ptr(value)) } -func (p_ PersonSegmentationWrapper) 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_ PersonSegmentationWrapper) 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 } diff --git a/macos/coreimage/perspective_correction.gen.go b/macos/coreimage/perspective_correction_protocol.gen.go similarity index 67% rename from macos/coreimage/perspective_correction.gen.go rename to macos/coreimage/perspective_correction_protocol.gen.go index c5a19d71..e786a2a2 100644 --- a/macos/coreimage/perspective_correction.gen.go +++ b/macos/coreimage/perspective_correction_protocol.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package coreimage @@ -19,30 +19,33 @@ type PPerspectiveCorrection interface { HasCrop() bool } -// A concrete type wrapper for the [PPerspectiveCorrection] protocol. -type PerspectiveCorrectionWrapper struct { +// ensure impl type implements protocol interface +var _ PPerspectiveCorrection = (*PerspectiveCorrectionObject)(nil) + +// A concrete type for the [PPerspectiveCorrection] protocol. +type PerspectiveCorrectionObject struct { objc.Object } -func (p_ PerspectiveCorrectionWrapper) HasSetCrop() bool { +func (p_ PerspectiveCorrectionObject) HasSetCrop() bool { return p_.RespondsToSelector(objc.Sel("setCrop:")) } // A rectangle that specifies the extent of the corrected image. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/coreimage/ciperspectivecorrection/3228648-crop?language=objc -func (p_ PerspectiveCorrectionWrapper) SetCrop(value bool) { +func (p_ PerspectiveCorrectionObject) SetCrop(value bool) { objc.Call[objc.Void](p_, objc.Sel("setCrop:"), value) } -func (p_ PerspectiveCorrectionWrapper) HasCrop() bool { +func (p_ PerspectiveCorrectionObject) HasCrop() bool { return p_.RespondsToSelector(objc.Sel("crop")) } // A rectangle that specifies the extent of the corrected image. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/coreimage/ciperspectivecorrection/3228648-crop?language=objc -func (p_ PerspectiveCorrectionWrapper) Crop() bool { +func (p_ PerspectiveCorrectionObject) Crop() bool { rv := objc.Call[bool](p_, objc.Sel("crop")) return rv } diff --git a/macos/coreimage/perspective_rotate.gen.go b/macos/coreimage/perspective_rotate_protocol.gen.go similarity index 72% rename from macos/coreimage/perspective_rotate.gen.go rename to macos/coreimage/perspective_rotate_protocol.gen.go index cc8c662c..bdb54505 100644 --- a/macos/coreimage/perspective_rotate.gen.go +++ b/macos/coreimage/perspective_rotate_protocol.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package coreimage @@ -10,14 +10,6 @@ import ( // // [Full Topic]: https://developer.apple.com/documentation/coreimage/ciperspectiverotate?language=objc type PPerspectiveRotate interface { - // optional - SetInputImage(value Image) - HasSetInputImage() bool - - // optional - InputImage() IImage - HasInputImage() bool - // optional SetRoll(value float64) HasSetRoll() bool @@ -27,12 +19,12 @@ type PPerspectiveRotate interface { HasRoll() bool // optional - SetYaw(value float64) - HasSetYaw() bool + SetInputImage(value Image) + HasSetInputImage() bool // optional - Yaw() float64 - HasYaw() bool + InputImage() Image + HasInputImage() bool // optional SetFocalLength(value float64) @@ -42,6 +34,14 @@ type PPerspectiveRotate interface { FocalLength() float64 HasFocalLength() bool + // optional + SetYaw(value float64) + HasSetYaw() bool + + // optional + Yaw() float64 + HasYaw() bool + // optional SetPitch(value float64) HasSetPitch() bool @@ -51,122 +51,125 @@ type PPerspectiveRotate interface { HasPitch() bool } -// A concrete type wrapper for the [PPerspectiveRotate] protocol. -type PerspectiveRotateWrapper struct { - objc.Object -} - -func (p_ PerspectiveRotateWrapper) HasSetInputImage() bool { - return p_.RespondsToSelector(objc.Sel("setInputImage:")) -} +// ensure impl type implements protocol interface +var _ PPerspectiveRotate = (*PerspectiveRotateObject)(nil) -// The image to process. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/coreimage/ciperspectiverotate/3325538-inputimage?language=objc -func (p_ PerspectiveRotateWrapper) SetInputImage(value IImage) { - objc.Call[objc.Void](p_, objc.Sel("setInputImage:"), objc.Ptr(value)) -} - -func (p_ PerspectiveRotateWrapper) HasInputImage() bool { - return p_.RespondsToSelector(objc.Sel("inputImage")) -} - -// The image to process. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/coreimage/ciperspectiverotate/3325538-inputimage?language=objc -func (p_ PerspectiveRotateWrapper) InputImage() Image { - rv := objc.Call[Image](p_, objc.Sel("inputImage")) - return rv +// A concrete type for the [PPerspectiveRotate] protocol. +type PerspectiveRotateObject struct { + objc.Object } -func (p_ PerspectiveRotateWrapper) HasSetRoll() bool { +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_ PerspectiveRotateWrapper) SetRoll(value float64) { +func (p_ PerspectiveRotateObject) SetRoll(value float64) { objc.Call[objc.Void](p_, objc.Sel("setRoll:"), value) } -func (p_ PerspectiveRotateWrapper) HasRoll() bool { +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_ PerspectiveRotateWrapper) Roll() float64 { +func (p_ PerspectiveRotateObject) Roll() float64 { rv := objc.Call[float64](p_, objc.Sel("roll")) return rv } -func (p_ PerspectiveRotateWrapper) HasSetYaw() bool { - return p_.RespondsToSelector(objc.Sel("setYaw:")) +func (p_ PerspectiveRotateObject) HasSetInputImage() bool { + return p_.RespondsToSelector(objc.Sel("setInputImage:")) } -// The yaw angle, in radians. [Full Topic] +// The image to process. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/ciperspectiverotate/3325541-yaw?language=objc -func (p_ PerspectiveRotateWrapper) SetYaw(value float64) { - objc.Call[objc.Void](p_, objc.Sel("setYaw:"), value) +// [Full Topic]: https://developer.apple.com/documentation/coreimage/ciperspectiverotate/3325538-inputimage?language=objc +func (p_ PerspectiveRotateObject) SetInputImage(value Image) { + objc.Call[objc.Void](p_, objc.Sel("setInputImage:"), objc.Ptr(value)) } -func (p_ PerspectiveRotateWrapper) HasYaw() bool { - return p_.RespondsToSelector(objc.Sel("yaw")) +func (p_ PerspectiveRotateObject) HasInputImage() bool { + return p_.RespondsToSelector(objc.Sel("inputImage")) } -// The yaw angle, in radians. [Full Topic] +// The image to process. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/ciperspectiverotate/3325541-yaw?language=objc -func (p_ PerspectiveRotateWrapper) Yaw() float64 { - rv := objc.Call[float64](p_, objc.Sel("yaw")) +// [Full Topic]: https://developer.apple.com/documentation/coreimage/ciperspectiverotate/3325538-inputimage?language=objc +func (p_ PerspectiveRotateObject) InputImage() Image { + rv := objc.Call[Image](p_, objc.Sel("inputImage")) return rv } -func (p_ PerspectiveRotateWrapper) HasSetFocalLength() bool { +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_ PerspectiveRotateWrapper) SetFocalLength(value float64) { +func (p_ PerspectiveRotateObject) SetFocalLength(value float64) { objc.Call[objc.Void](p_, objc.Sel("setFocalLength:"), value) } -func (p_ PerspectiveRotateWrapper) HasFocalLength() bool { +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_ PerspectiveRotateWrapper) FocalLength() float64 { +func (p_ PerspectiveRotateObject) FocalLength() float64 { rv := objc.Call[float64](p_, objc.Sel("focalLength")) return rv } -func (p_ PerspectiveRotateWrapper) HasSetPitch() bool { +func (p_ PerspectiveRotateObject) HasSetYaw() bool { + return p_.RespondsToSelector(objc.Sel("setYaw:")) +} + +// The yaw angle, in radians. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/coreimage/ciperspectiverotate/3325541-yaw?language=objc +func (p_ PerspectiveRotateObject) SetYaw(value float64) { + objc.Call[objc.Void](p_, objc.Sel("setYaw:"), value) +} + +func (p_ PerspectiveRotateObject) HasYaw() bool { + return p_.RespondsToSelector(objc.Sel("yaw")) +} + +// The yaw angle, in radians. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/coreimage/ciperspectiverotate/3325541-yaw?language=objc +func (p_ PerspectiveRotateObject) Yaw() float64 { + rv := objc.Call[float64](p_, objc.Sel("yaw")) + return rv +} + +func (p_ PerspectiveRotateObject) HasSetPitch() bool { return p_.RespondsToSelector(objc.Sel("setPitch:")) } // The pitch angle, in radians. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/coreimage/ciperspectiverotate/3325539-pitch?language=objc -func (p_ PerspectiveRotateWrapper) SetPitch(value float64) { +func (p_ PerspectiveRotateObject) SetPitch(value float64) { objc.Call[objc.Void](p_, objc.Sel("setPitch:"), value) } -func (p_ PerspectiveRotateWrapper) HasPitch() bool { +func (p_ PerspectiveRotateObject) HasPitch() bool { return p_.RespondsToSelector(objc.Sel("pitch")) } // The pitch angle, in radians. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/coreimage/ciperspectiverotate/3325539-pitch?language=objc -func (p_ PerspectiveRotateWrapper) Pitch() float64 { +func (p_ PerspectiveRotateObject) Pitch() float64 { rv := objc.Call[float64](p_, objc.Sel("pitch")) return rv } diff --git a/macos/coreimage/perspective_tile.gen.go b/macos/coreimage/perspective_tile_protocol.gen.go similarity index 73% rename from macos/coreimage/perspective_tile.gen.go rename to macos/coreimage/perspective_tile_protocol.gen.go index dab5b2bb..d68c213e 100644 --- a/macos/coreimage/perspective_tile.gen.go +++ b/macos/coreimage/perspective_tile_protocol.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package coreimage @@ -19,22 +19,6 @@ type PPerspectiveTile interface { BottomRight() coregraphics.Point HasBottomRight() bool - // optional - SetInputImage(value Image) - HasSetInputImage() bool - - // optional - InputImage() IImage - HasInputImage() bool - - // optional - SetBottomLeft(value coregraphics.Point) - HasSetBottomLeft() bool - - // optional - BottomLeft() coregraphics.Point - HasBottomLeft() bool - // optional SetTopRight(value coregraphics.Point) HasSetTopRight() bool @@ -50,124 +34,143 @@ type PPerspectiveTile interface { // optional TopLeft() coregraphics.Point HasTopLeft() bool + + // optional + SetInputImage(value Image) + HasSetInputImage() bool + + // optional + InputImage() Image + HasInputImage() bool + + // optional + SetBottomLeft(value coregraphics.Point) + HasSetBottomLeft() bool + + // optional + BottomLeft() coregraphics.Point + HasBottomLeft() bool } -// A concrete type wrapper for the [PPerspectiveTile] protocol. -type PerspectiveTileWrapper struct { +// ensure impl type implements protocol interface +var _ PPerspectiveTile = (*PerspectiveTileObject)(nil) + +// A concrete type for the [PPerspectiveTile] protocol. +type PerspectiveTileObject struct { objc.Object } -func (p_ PerspectiveTileWrapper) HasSetBottomRight() bool { +func (p_ PerspectiveTileObject) HasSetBottomRight() bool { return p_.RespondsToSelector(objc.Sel("setBottomRight:")) } // The bottom-right coordinate of a tile. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/coreimage/ciperspectivetile/3228654-bottomright?language=objc -func (p_ PerspectiveTileWrapper) SetBottomRight(value coregraphics.Point) { +func (p_ PerspectiveTileObject) SetBottomRight(value coregraphics.Point) { objc.Call[objc.Void](p_, objc.Sel("setBottomRight:"), value) } -func (p_ PerspectiveTileWrapper) HasBottomRight() bool { +func (p_ PerspectiveTileObject) HasBottomRight() bool { return p_.RespondsToSelector(objc.Sel("bottomRight")) } // The bottom-right coordinate of a tile. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/coreimage/ciperspectivetile/3228654-bottomright?language=objc -func (p_ PerspectiveTileWrapper) BottomRight() coregraphics.Point { +func (p_ PerspectiveTileObject) BottomRight() coregraphics.Point { rv := objc.Call[coregraphics.Point](p_, objc.Sel("bottomRight")) return rv } -func (p_ PerspectiveTileWrapper) HasSetInputImage() bool { - return p_.RespondsToSelector(objc.Sel("setInputImage:")) +func (p_ PerspectiveTileObject) HasSetTopRight() bool { + return p_.RespondsToSelector(objc.Sel("setTopRight:")) } -// The image to use as an input image. [Full Topic] +// The top-right coordinate of a tile. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/ciperspectivetile/3228655-inputimage?language=objc -func (p_ PerspectiveTileWrapper) SetInputImage(value IImage) { - objc.Call[objc.Void](p_, objc.Sel("setInputImage:"), objc.Ptr(value)) +// [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_ PerspectiveTileWrapper) HasInputImage() bool { - return p_.RespondsToSelector(objc.Sel("inputImage")) +func (p_ PerspectiveTileObject) HasTopRight() bool { + return p_.RespondsToSelector(objc.Sel("topRight")) } -// The image to use as an input image. [Full Topic] +// The top-right coordinate of a tile. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/ciperspectivetile/3228655-inputimage?language=objc -func (p_ PerspectiveTileWrapper) InputImage() Image { - rv := objc.Call[Image](p_, objc.Sel("inputImage")) +// [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_ PerspectiveTileWrapper) HasSetBottomLeft() bool { - return p_.RespondsToSelector(objc.Sel("setBottomLeft:")) +func (p_ PerspectiveTileObject) HasSetTopLeft() bool { + return p_.RespondsToSelector(objc.Sel("setTopLeft:")) } -// The bottom-left coordinate of a tile. [Full Topic] +// The top-left coordinate of a tile. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/ciperspectivetile/3228653-bottomleft?language=objc -func (p_ PerspectiveTileWrapper) SetBottomLeft(value coregraphics.Point) { - objc.Call[objc.Void](p_, objc.Sel("setBottomLeft:"), value) +// [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_ PerspectiveTileWrapper) HasBottomLeft() bool { - return p_.RespondsToSelector(objc.Sel("bottomLeft")) +func (p_ PerspectiveTileObject) HasTopLeft() bool { + return p_.RespondsToSelector(objc.Sel("topLeft")) } -// The bottom-left coordinate of a tile. [Full Topic] +// The top-left coordinate of a tile. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/ciperspectivetile/3228653-bottomleft?language=objc -func (p_ PerspectiveTileWrapper) BottomLeft() coregraphics.Point { - rv := objc.Call[coregraphics.Point](p_, objc.Sel("bottomLeft")) +// [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_ PerspectiveTileWrapper) HasSetTopRight() bool { - return p_.RespondsToSelector(objc.Sel("setTopRight:")) +func (p_ PerspectiveTileObject) HasSetInputImage() bool { + return p_.RespondsToSelector(objc.Sel("setInputImage:")) } -// The top-right coordinate of a tile. [Full Topic] +// The image to use as an input image. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/ciperspectivetile/3228657-topright?language=objc -func (p_ PerspectiveTileWrapper) SetTopRight(value coregraphics.Point) { - objc.Call[objc.Void](p_, objc.Sel("setTopRight:"), value) +// [Full Topic]: https://developer.apple.com/documentation/coreimage/ciperspectivetile/3228655-inputimage?language=objc +func (p_ PerspectiveTileObject) SetInputImage(value Image) { + objc.Call[objc.Void](p_, objc.Sel("setInputImage:"), objc.Ptr(value)) } -func (p_ PerspectiveTileWrapper) HasTopRight() bool { - return p_.RespondsToSelector(objc.Sel("topRight")) +func (p_ PerspectiveTileObject) HasInputImage() bool { + return p_.RespondsToSelector(objc.Sel("inputImage")) } -// The top-right coordinate of a tile. [Full Topic] +// The image to use as an input image. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/ciperspectivetile/3228657-topright?language=objc -func (p_ PerspectiveTileWrapper) TopRight() coregraphics.Point { - rv := objc.Call[coregraphics.Point](p_, objc.Sel("topRight")) +// [Full Topic]: https://developer.apple.com/documentation/coreimage/ciperspectivetile/3228655-inputimage?language=objc +func (p_ PerspectiveTileObject) InputImage() Image { + rv := objc.Call[Image](p_, objc.Sel("inputImage")) return rv } -func (p_ PerspectiveTileWrapper) HasSetTopLeft() bool { - return p_.RespondsToSelector(objc.Sel("setTopLeft:")) +func (p_ PerspectiveTileObject) HasSetBottomLeft() bool { + return p_.RespondsToSelector(objc.Sel("setBottomLeft:")) } -// The top-left coordinate of a tile. [Full Topic] +// The bottom-left coordinate of a tile. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/ciperspectivetile/3228656-topleft?language=objc -func (p_ PerspectiveTileWrapper) SetTopLeft(value coregraphics.Point) { - objc.Call[objc.Void](p_, objc.Sel("setTopLeft:"), value) +// [Full Topic]: https://developer.apple.com/documentation/coreimage/ciperspectivetile/3228653-bottomleft?language=objc +func (p_ PerspectiveTileObject) SetBottomLeft(value coregraphics.Point) { + objc.Call[objc.Void](p_, objc.Sel("setBottomLeft:"), value) } -func (p_ PerspectiveTileWrapper) HasTopLeft() bool { - return p_.RespondsToSelector(objc.Sel("topLeft")) +func (p_ PerspectiveTileObject) HasBottomLeft() bool { + return p_.RespondsToSelector(objc.Sel("bottomLeft")) } -// The top-left coordinate of a tile. [Full Topic] +// The bottom-left coordinate of a tile. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/ciperspectivetile/3228656-topleft?language=objc -func (p_ PerspectiveTileWrapper) TopLeft() coregraphics.Point { - rv := objc.Call[coregraphics.Point](p_, objc.Sel("topLeft")) +// [Full Topic]: https://developer.apple.com/documentation/coreimage/ciperspectivetile/3228653-bottomleft?language=objc +func (p_ PerspectiveTileObject) BottomLeft() coregraphics.Point { + rv := objc.Call[coregraphics.Point](p_, objc.Sel("bottomLeft")) return rv } diff --git a/macos/coreimage/perspective_transform.gen.go b/macos/coreimage/perspective_transform_protocol.gen.go similarity index 54% rename from macos/coreimage/perspective_transform.gen.go rename to macos/coreimage/perspective_transform_protocol.gen.go index 72499428..e9da6079 100644 --- a/macos/coreimage/perspective_transform.gen.go +++ b/macos/coreimage/perspective_transform_protocol.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package coreimage @@ -12,7 +12,10 @@ import ( type PPerspectiveTransform interface { } -// A concrete type wrapper for the [PPerspectiveTransform] protocol. -type PerspectiveTransformWrapper struct { +// ensure impl type implements protocol interface +var _ PPerspectiveTransform = (*PerspectiveTransformObject)(nil) + +// A concrete type for the [PPerspectiveTransform] protocol. +type PerspectiveTransformObject struct { objc.Object } diff --git a/macos/coreimage/perspective_transform_with_extent.gen.go b/macos/coreimage/perspective_transform_with_extent_protocol.gen.go similarity index 66% rename from macos/coreimage/perspective_transform_with_extent.gen.go rename to macos/coreimage/perspective_transform_with_extent_protocol.gen.go index 6bb11753..95125bd2 100644 --- a/macos/coreimage/perspective_transform_with_extent.gen.go +++ b/macos/coreimage/perspective_transform_with_extent_protocol.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package coreimage @@ -20,30 +20,33 @@ type PPerspectiveTransformWithExtent interface { HasExtent() bool } -// A concrete type wrapper for the [PPerspectiveTransformWithExtent] protocol. -type PerspectiveTransformWithExtentWrapper struct { +// ensure impl type implements protocol interface +var _ PPerspectiveTransformWithExtent = (*PerspectiveTransformWithExtentObject)(nil) + +// A concrete type for the [PPerspectiveTransformWithExtent] protocol. +type PerspectiveTransformWithExtentObject struct { objc.Object } -func (p_ PerspectiveTransformWithExtentWrapper) HasSetExtent() bool { +func (p_ PerspectiveTransformWithExtentObject) HasSetExtent() bool { return p_.RespondsToSelector(objc.Sel("setExtent:")) } // A rectangle that defines the extent of the effect. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/coreimage/ciperspectivetransformwithextent/3228667-extent?language=objc -func (p_ PerspectiveTransformWithExtentWrapper) SetExtent(value coregraphics.Rect) { +func (p_ PerspectiveTransformWithExtentObject) SetExtent(value coregraphics.Rect) { objc.Call[objc.Void](p_, objc.Sel("setExtent:"), value) } -func (p_ PerspectiveTransformWithExtentWrapper) HasExtent() bool { +func (p_ PerspectiveTransformWithExtentObject) HasExtent() bool { return p_.RespondsToSelector(objc.Sel("extent")) } // A rectangle that defines the extent of the effect. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/coreimage/ciperspectivetransformwithextent/3228667-extent?language=objc -func (p_ PerspectiveTransformWithExtentWrapper) Extent() coregraphics.Rect { +func (p_ PerspectiveTransformWithExtentObject) Extent() coregraphics.Rect { rv := objc.Call[coregraphics.Rect](p_, objc.Sel("extent")) return rv } diff --git a/macos/coreimage/photo_effect.gen.go b/macos/coreimage/photo_effect_protocol.gen.go similarity index 68% rename from macos/coreimage/photo_effect.gen.go rename to macos/coreimage/photo_effect_protocol.gen.go index 136bf3b0..a2a55621 100644 --- a/macos/coreimage/photo_effect.gen.go +++ b/macos/coreimage/photo_effect_protocol.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package coreimage @@ -15,34 +15,37 @@ type PPhotoEffect interface { HasSetInputImage() bool // optional - InputImage() IImage + InputImage() Image HasInputImage() bool } -// A concrete type wrapper for the [PPhotoEffect] protocol. -type PhotoEffectWrapper struct { +// ensure impl type implements protocol interface +var _ PPhotoEffect = (*PhotoEffectObject)(nil) + +// A concrete type for the [PPhotoEffect] protocol. +type PhotoEffectObject struct { objc.Object } -func (p_ PhotoEffectWrapper) HasSetInputImage() bool { +func (p_ PhotoEffectObject) 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/ciphotoeffect/3228672-inputimage?language=objc -func (p_ PhotoEffectWrapper) SetInputImage(value IImage) { +func (p_ PhotoEffectObject) SetInputImage(value Image) { objc.Call[objc.Void](p_, objc.Sel("setInputImage:"), objc.Ptr(value)) } -func (p_ PhotoEffectWrapper) HasInputImage() bool { +func (p_ PhotoEffectObject) 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/ciphotoeffect/3228672-inputimage?language=objc -func (p_ PhotoEffectWrapper) InputImage() Image { +func (p_ PhotoEffectObject) InputImage() Image { rv := objc.Call[Image](p_, objc.Sel("inputImage")) return rv } diff --git a/macos/coreimage/pinch_distortion.gen.go b/macos/coreimage/pinch_distortion_protocol.gen.go similarity index 70% rename from macos/coreimage/pinch_distortion.gen.go rename to macos/coreimage/pinch_distortion_protocol.gen.go index c7d1cc28..38624ab8 100644 --- a/macos/coreimage/pinch_distortion.gen.go +++ b/macos/coreimage/pinch_distortion_protocol.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package coreimage @@ -11,22 +11,6 @@ import ( // // [Full Topic]: https://developer.apple.com/documentation/coreimage/cipinchdistortion?language=objc type PPinchDistortion interface { - // optional - SetScale(value float64) - HasSetScale() bool - - // optional - Scale() float64 - HasScale() bool - - // optional - SetInputImage(value Image) - HasSetInputImage() bool - - // optional - InputImage() IImage - HasInputImage() bool - // optional SetRadius(value float64) HasSetRadius() bool @@ -35,6 +19,14 @@ type PPinchDistortion interface { Radius() float64 HasRadius() bool + // optional + SetScale(value float64) + HasSetScale() bool + + // optional + Scale() float64 + HasScale() bool + // optional SetCenter(value coregraphics.Point) HasSetCenter() bool @@ -42,101 +34,112 @@ type PPinchDistortion interface { // optional Center() coregraphics.Point HasCenter() bool + + // optional + SetInputImage(value Image) + HasSetInputImage() bool + + // optional + InputImage() Image + HasInputImage() bool } -// A concrete type wrapper for the [PPinchDistortion] protocol. -type PinchDistortionWrapper struct { +// ensure impl type implements protocol interface +var _ PPinchDistortion = (*PinchDistortionObject)(nil) + +// A concrete type for the [PPinchDistortion] protocol. +type PinchDistortionObject struct { objc.Object } -func (p_ PinchDistortionWrapper) HasSetScale() bool { - return p_.RespondsToSelector(objc.Sel("setScale:")) +func (p_ PinchDistortionObject) HasSetRadius() bool { + return p_.RespondsToSelector(objc.Sel("setRadius:")) } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/cipinchdistortion/3600190-scale?language=objc -func (p_ PinchDistortionWrapper) SetScale(value float64) { - objc.Call[objc.Void](p_, objc.Sel("setScale:"), value) +// [Full Topic]: https://developer.apple.com/documentation/coreimage/cipinchdistortion/3600189-radius?language=objc +func (p_ PinchDistortionObject) SetRadius(value float64) { + objc.Call[objc.Void](p_, objc.Sel("setRadius:"), value) } -func (p_ PinchDistortionWrapper) HasScale() bool { - return p_.RespondsToSelector(objc.Sel("scale")) +func (p_ PinchDistortionObject) HasRadius() bool { + return p_.RespondsToSelector(objc.Sel("radius")) } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/cipinchdistortion/3600190-scale?language=objc -func (p_ PinchDistortionWrapper) Scale() float64 { - rv := objc.Call[float64](p_, objc.Sel("scale")) +// [Full Topic]: https://developer.apple.com/documentation/coreimage/cipinchdistortion/3600189-radius?language=objc +func (p_ PinchDistortionObject) Radius() float64 { + rv := objc.Call[float64](p_, objc.Sel("radius")) return rv } -func (p_ PinchDistortionWrapper) HasSetInputImage() bool { - return p_.RespondsToSelector(objc.Sel("setInputImage:")) +func (p_ PinchDistortionObject) HasSetScale() bool { + return p_.RespondsToSelector(objc.Sel("setScale:")) } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/cipinchdistortion/3600188-inputimage?language=objc -func (p_ PinchDistortionWrapper) SetInputImage(value IImage) { - objc.Call[objc.Void](p_, objc.Sel("setInputImage:"), objc.Ptr(value)) +// [Full Topic]: https://developer.apple.com/documentation/coreimage/cipinchdistortion/3600190-scale?language=objc +func (p_ PinchDistortionObject) SetScale(value float64) { + objc.Call[objc.Void](p_, objc.Sel("setScale:"), value) } -func (p_ PinchDistortionWrapper) HasInputImage() bool { - return p_.RespondsToSelector(objc.Sel("inputImage")) +func (p_ PinchDistortionObject) HasScale() bool { + return p_.RespondsToSelector(objc.Sel("scale")) } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/cipinchdistortion/3600188-inputimage?language=objc -func (p_ PinchDistortionWrapper) InputImage() Image { - rv := objc.Call[Image](p_, objc.Sel("inputImage")) +// [Full Topic]: https://developer.apple.com/documentation/coreimage/cipinchdistortion/3600190-scale?language=objc +func (p_ PinchDistortionObject) Scale() float64 { + rv := objc.Call[float64](p_, objc.Sel("scale")) return rv } -func (p_ PinchDistortionWrapper) HasSetRadius() bool { - return p_.RespondsToSelector(objc.Sel("setRadius:")) +func (p_ PinchDistortionObject) HasSetCenter() bool { + return p_.RespondsToSelector(objc.Sel("setCenter:")) } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/cipinchdistortion/3600189-radius?language=objc -func (p_ PinchDistortionWrapper) SetRadius(value float64) { - objc.Call[objc.Void](p_, objc.Sel("setRadius:"), 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_ PinchDistortionWrapper) HasRadius() bool { - return p_.RespondsToSelector(objc.Sel("radius")) +func (p_ PinchDistortionObject) HasCenter() bool { + return p_.RespondsToSelector(objc.Sel("center")) } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/cipinchdistortion/3600189-radius?language=objc -func (p_ PinchDistortionWrapper) Radius() float64 { - rv := objc.Call[float64](p_, objc.Sel("radius")) +// [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 } -func (p_ PinchDistortionWrapper) HasSetCenter() bool { - return p_.RespondsToSelector(objc.Sel("setCenter:")) +func (p_ PinchDistortionObject) HasSetInputImage() bool { + return p_.RespondsToSelector(objc.Sel("setInputImage:")) } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/cipinchdistortion/3600187-center?language=objc -func (p_ PinchDistortionWrapper) SetCenter(value coregraphics.Point) { - objc.Call[objc.Void](p_, objc.Sel("setCenter:"), 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:"), objc.Ptr(value)) } -func (p_ PinchDistortionWrapper) HasCenter() bool { - return p_.RespondsToSelector(objc.Sel("center")) +func (p_ PinchDistortionObject) HasInputImage() bool { + return p_.RespondsToSelector(objc.Sel("inputImage")) } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/cipinchdistortion/3600187-center?language=objc -func (p_ PinchDistortionWrapper) Center() coregraphics.Point { - rv := objc.Call[coregraphics.Point](p_, objc.Sel("center")) +// [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 } diff --git a/macos/coreimage/pixellate.gen.go b/macos/coreimage/pixellate_protocol.gen.go similarity index 74% rename from macos/coreimage/pixellate.gen.go rename to macos/coreimage/pixellate_protocol.gen.go index 35e31b6f..94416d76 100644 --- a/macos/coreimage/pixellate.gen.go +++ b/macos/coreimage/pixellate_protocol.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package coreimage @@ -12,20 +12,20 @@ import ( // [Full Topic]: https://developer.apple.com/documentation/coreimage/cipixellate?language=objc type PPixellate interface { // optional - SetScale(value float64) - HasSetScale() bool + SetInputImage(value Image) + HasSetInputImage() bool // optional - Scale() float64 - HasScale() bool + InputImage() Image + HasInputImage() bool // optional - SetInputImage(value Image) - HasSetInputImage() bool + SetScale(value float64) + HasSetScale() bool // optional - InputImage() IImage - HasInputImage() bool + Scale() float64 + HasScale() bool // optional SetCenter(value coregraphics.Point) @@ -36,76 +36,79 @@ type PPixellate interface { HasCenter() bool } -// A concrete type wrapper for the [PPixellate] protocol. -type PixellateWrapper struct { +// ensure impl type implements protocol interface +var _ PPixellate = (*PixellateObject)(nil) + +// A concrete type for the [PPixellate] protocol. +type PixellateObject struct { objc.Object } -func (p_ PixellateWrapper) HasSetScale() bool { - return p_.RespondsToSelector(objc.Sel("setScale:")) +func (p_ PixellateObject) HasSetInputImage() bool { + return p_.RespondsToSelector(objc.Sel("setInputImage:")) } -// A value that determines the size of the squares. [Full Topic] +// The image to use as an input image. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/cipixellate/3228676-scale?language=objc -func (p_ PixellateWrapper) SetScale(value float64) { - objc.Call[objc.Void](p_, objc.Sel("setScale:"), value) +// [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:"), objc.Ptr(value)) } -func (p_ PixellateWrapper) HasScale() bool { - return p_.RespondsToSelector(objc.Sel("scale")) +func (p_ PixellateObject) HasInputImage() bool { + return p_.RespondsToSelector(objc.Sel("inputImage")) } -// A value that determines the size of the squares. [Full Topic] +// The image to use as an input image. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/cipixellate/3228676-scale?language=objc -func (p_ PixellateWrapper) Scale() float64 { - rv := objc.Call[float64](p_, objc.Sel("scale")) +// [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_ PixellateWrapper) HasSetInputImage() bool { - return p_.RespondsToSelector(objc.Sel("setInputImage:")) +func (p_ PixellateObject) HasSetScale() bool { + return p_.RespondsToSelector(objc.Sel("setScale:")) } -// The image to use as an input image. [Full Topic] +// A value that determines the size of the squares. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/cipixellate/3228675-inputimage?language=objc -func (p_ PixellateWrapper) SetInputImage(value IImage) { - objc.Call[objc.Void](p_, objc.Sel("setInputImage:"), objc.Ptr(value)) +// [Full Topic]: https://developer.apple.com/documentation/coreimage/cipixellate/3228676-scale?language=objc +func (p_ PixellateObject) SetScale(value float64) { + objc.Call[objc.Void](p_, objc.Sel("setScale:"), value) } -func (p_ PixellateWrapper) HasInputImage() bool { - return p_.RespondsToSelector(objc.Sel("inputImage")) +func (p_ PixellateObject) HasScale() bool { + return p_.RespondsToSelector(objc.Sel("scale")) } -// The image to use as an input image. [Full Topic] +// A value that determines the size of the squares. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/cipixellate/3228675-inputimage?language=objc -func (p_ PixellateWrapper) InputImage() Image { - rv := objc.Call[Image](p_, objc.Sel("inputImage")) +// [Full Topic]: https://developer.apple.com/documentation/coreimage/cipixellate/3228676-scale?language=objc +func (p_ PixellateObject) Scale() float64 { + rv := objc.Call[float64](p_, objc.Sel("scale")) return rv } -func (p_ PixellateWrapper) HasSetCenter() bool { +func (p_ PixellateObject) 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/cipixellate/3228674-center?language=objc -func (p_ PixellateWrapper) SetCenter(value coregraphics.Point) { +func (p_ PixellateObject) SetCenter(value coregraphics.Point) { objc.Call[objc.Void](p_, objc.Sel("setCenter:"), value) } -func (p_ PixellateWrapper) HasCenter() bool { +func (p_ PixellateObject) 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/cipixellate/3228674-center?language=objc -func (p_ PixellateWrapper) Center() coregraphics.Point { +func (p_ PixellateObject) Center() coregraphics.Point { rv := objc.Call[coregraphics.Point](p_, objc.Sel("center")) return rv } diff --git a/macos/coreimage/plug_in.gen.go b/macos/coreimage/plug_in.gen.go index 2e226963..5b9ae393 100644 --- a/macos/coreimage/plug_in.gen.go +++ b/macos/coreimage/plug_in.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package coreimage @@ -39,10 +39,6 @@ func (pc _PlugInClass) Alloc() PlugIn { return rv } -func PlugIn_Alloc() PlugIn { - return PlugInClass.Alloc() -} - func (pc _PlugInClass) New() PlugIn { rv := objc.Call[PlugIn](pc, objc.Sel("new")) rv.Autorelease() @@ -58,20 +54,6 @@ func (p_ PlugIn) Init() PlugIn { return rv } -// 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 -func (pc _PlugInClass) LoadNonExecutablePlugIns() { - objc.Call[objc.Void](pc, objc.Sel("loadNonExecutablePlugIns")) -} - -// 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 -func PlugIn_LoadNonExecutablePlugIns() { - PlugInClass.LoadNonExecutablePlugIns() -} - // [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/coreimage/ciplugin/3180431-loadnonexecutableplugin?language=objc @@ -85,3 +67,17 @@ func (pc _PlugInClass) LoadNonExecutablePlugIn(url foundation.IURL) { 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 +func (pc _PlugInClass) LoadNonExecutablePlugIns() { + objc.Call[objc.Void](pc, objc.Sel("loadNonExecutablePlugIns")) +} + +// 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 +func PlugIn_LoadNonExecutablePlugIns() { + PlugInClass.LoadNonExecutablePlugIns() +} diff --git a/macos/coreimage/plug_in_registration.gen.go b/macos/coreimage/plug_in_registration_protocol.gen.go similarity index 64% rename from macos/coreimage/plug_in_registration.gen.go rename to macos/coreimage/plug_in_registration_protocol.gen.go index 4c0062ca..ab146767 100644 --- a/macos/coreimage/plug_in_registration.gen.go +++ b/macos/coreimage/plug_in_registration_protocol.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package coreimage @@ -17,19 +17,22 @@ type PPlugInRegistration interface { HasLoad() bool } -// A concrete type wrapper for the [PPlugInRegistration] protocol. -type PlugInRegistrationWrapper struct { +// ensure impl type implements protocol interface +var _ PPlugInRegistration = (*PlugInRegistrationObject)(nil) + +// A concrete type for the [PPlugInRegistration] protocol. +type PlugInRegistrationObject struct { objc.Object } -func (p_ PlugInRegistrationWrapper) HasLoad() bool { +func (p_ PlugInRegistrationObject) HasLoad() bool { return p_.RespondsToSelector(objc.Sel("load:")) } // Loads and initializes an image unit, performing custom tasks as needed. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/coreimage/cipluginregistration/1437823-load?language=objc -func (p_ PlugInRegistrationWrapper) Load(host unsafe.Pointer) bool { +func (p_ PlugInRegistrationObject) Load(host unsafe.Pointer) bool { rv := objc.Call[bool](p_, objc.Sel("load:"), host) return rv } diff --git a/macos/coreimage/pointillize.gen.go b/macos/coreimage/pointillize_protocol.gen.go similarity index 74% rename from macos/coreimage/pointillize.gen.go rename to macos/coreimage/pointillize_protocol.gen.go index 1ccc27f7..c42ab2f9 100644 --- a/macos/coreimage/pointillize.gen.go +++ b/macos/coreimage/pointillize_protocol.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package coreimage @@ -11,12 +11,20 @@ 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 // optional - InputImage() IImage + InputImage() Image HasInputImage() bool // optional @@ -26,86 +34,81 @@ type PPointillize interface { // optional Radius() float64 HasRadius() bool +} - // optional - SetCenter(value coregraphics.Point) - HasSetCenter() bool +// ensure impl type implements protocol interface +var _ PPointillize = (*PointillizeObject)(nil) - // optional - Center() coregraphics.Point - HasCenter() bool +// A concrete type for the [PPointillize] protocol. +type PointillizeObject struct { + objc.Object } -// A concrete type wrapper for the [PPointillize] protocol. -type PointillizeWrapper 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")) } -func (p_ PointillizeWrapper) HasSetInputImage() bool { +// 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:")) } // The image to use as an input image. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/coreimage/cipointillize/3228679-inputimage?language=objc -func (p_ PointillizeWrapper) SetInputImage(value IImage) { +func (p_ PointillizeObject) SetInputImage(value Image) { objc.Call[objc.Void](p_, objc.Sel("setInputImage:"), objc.Ptr(value)) } -func (p_ PointillizeWrapper) HasInputImage() bool { +func (p_ PointillizeObject) 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/cipointillize/3228679-inputimage?language=objc -func (p_ PointillizeWrapper) InputImage() Image { +func (p_ PointillizeObject) InputImage() Image { rv := objc.Call[Image](p_, objc.Sel("inputImage")) return rv } -func (p_ PointillizeWrapper) HasSetRadius() bool { +func (p_ PointillizeObject) HasSetRadius() bool { return p_.RespondsToSelector(objc.Sel("setRadius:")) } // The radius of the circles in the resulting pattern. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/coreimage/cipointillize/3228680-radius?language=objc -func (p_ PointillizeWrapper) SetRadius(value float64) { +func (p_ PointillizeObject) SetRadius(value float64) { objc.Call[objc.Void](p_, objc.Sel("setRadius:"), value) } -func (p_ PointillizeWrapper) HasRadius() bool { +func (p_ PointillizeObject) HasRadius() bool { return p_.RespondsToSelector(objc.Sel("radius")) } // The radius of the circles in the resulting pattern. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/coreimage/cipointillize/3228680-radius?language=objc -func (p_ PointillizeWrapper) Radius() float64 { +func (p_ PointillizeObject) Radius() float64 { rv := objc.Call[float64](p_, objc.Sel("radius")) return rv } - -func (p_ PointillizeWrapper) 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_ PointillizeWrapper) SetCenter(value coregraphics.Point) { - objc.Call[objc.Void](p_, objc.Sel("setCenter:"), value) -} - -func (p_ PointillizeWrapper) 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_ PointillizeWrapper) 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 b5385565..d250a315 100644 --- a/macos/coreimage/qr_code_descriptor.gen.go +++ b/macos/coreimage/qr_code_descriptor.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package coreimage @@ -18,9 +18,9 @@ type _QRCodeDescriptorClass struct { // An interface definition for the [QRCodeDescriptor] class. type IQRCodeDescriptor interface { IBarcodeDescriptor - SymbolVersion() int - MaskPattern() uint8 ErrorCorrectionLevel() QRCodeErrorCorrectionLevel + MaskPattern() uint8 + SymbolVersion() int ErrorCorrectedPayload() []byte } @@ -37,6 +37,18 @@ 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 @@ -51,27 +63,11 @@ 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 } -func QRCodeDescriptor_Alloc() QRCodeDescriptor { - return QRCodeDescriptorClass.Alloc() -} - func (qc _QRCodeDescriptorClass) New() QRCodeDescriptor { rv := objc.Call[QRCodeDescriptor](qc, objc.Sel("new")) rv.Autorelease() @@ -87,11 +83,11 @@ func (q_ QRCodeDescriptor) Init() QRCodeDescriptor { 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 } @@ -103,11 +99,11 @@ func (q_ QRCodeDescriptor) MaskPattern() uint8 { 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 } diff --git a/macos/coreimage/qr_code_feature.gen.go b/macos/coreimage/qr_code_feature.gen.go index ca4089ed..203e4402 100644 --- a/macos/coreimage/qr_code_feature.gen.go +++ b/macos/coreimage/qr_code_feature.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package coreimage @@ -19,12 +19,12 @@ type _QRCodeFeatureClass struct { // An interface definition for the [QRCodeFeature] class. type IQRCodeFeature interface { IFeature - BottomRight() coregraphics.Point - BottomLeft() coregraphics.Point - TopRight() coregraphics.Point - SymbolDescriptor() QRCodeDescriptor TopLeft() coregraphics.Point + SymbolDescriptor() QRCodeDescriptor MessageString() string + BottomLeft() coregraphics.Point + BottomRight() coregraphics.Point + TopRight() coregraphics.Point } // Information about a Quick Response code (a kind of 2D barcode) detected in a still or video image. [Full Topic] @@ -45,10 +45,6 @@ func (qc _QRCodeFeatureClass) Alloc() QRCodeFeature { return rv } -func QRCodeFeature_Alloc() QRCodeFeature { - return QRCodeFeatureClass.Alloc() -} - func (qc _QRCodeFeatureClass) New() QRCodeFeature { rv := objc.Call[QRCodeFeature](qc, objc.Sel("new")) rv.Autorelease() @@ -64,50 +60,50 @@ func (q_ QRCodeFeature) Init() QRCodeFeature { 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 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 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 } -// 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 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 } -// 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 } diff --git a/macos/coreimage/qr_code_generator.gen.go b/macos/coreimage/qr_code_generator_protocol.gen.go similarity index 71% rename from macos/coreimage/qr_code_generator.gen.go rename to macos/coreimage/qr_code_generator_protocol.gen.go index 558b72e4..9753e45d 100644 --- a/macos/coreimage/qr_code_generator.gen.go +++ b/macos/coreimage/qr_code_generator_protocol.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package coreimage @@ -10,14 +10,6 @@ import ( // // [Full Topic]: https://developer.apple.com/documentation/coreimage/ciqrcodegenerator?language=objc type PQRCodeGenerator interface { - // optional - SetMessage(value []byte) - HasSetMessage() bool - - // optional - Message() []byte - HasMessage() bool - // optional SetCorrectionLevel(value string) HasSetCorrectionLevel() bool @@ -25,55 +17,66 @@ type PQRCodeGenerator interface { // optional CorrectionLevel() string HasCorrectionLevel() bool + + // optional + SetMessage(value []byte) + HasSetMessage() bool + + // optional + Message() []byte + HasMessage() bool } -// A concrete type wrapper for the [PQRCodeGenerator] protocol. -type QRCodeGeneratorWrapper struct { +// ensure impl type implements protocol interface +var _ PQRCodeGenerator = (*QRCodeGeneratorObject)(nil) + +// A concrete type for the [PQRCodeGenerator] protocol. +type QRCodeGeneratorObject struct { objc.Object } -func (q_ QRCodeGeneratorWrapper) HasSetMessage() bool { - return q_.RespondsToSelector(objc.Sel("setMessage:")) +func (q_ QRCodeGeneratorObject) HasSetCorrectionLevel() bool { + return q_.RespondsToSelector(objc.Sel("setCorrectionLevel:")) } -// The message to encode in the QR code. [Full Topic] +// The QR code correction level: L, M, Q, or H. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/ciqrcodegenerator/3228683-message?language=objc -func (q_ QRCodeGeneratorWrapper) SetMessage(value []byte) { - objc.Call[objc.Void](q_, objc.Sel("setMessage:"), value) +// [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_ QRCodeGeneratorWrapper) HasMessage() bool { - return q_.RespondsToSelector(objc.Sel("message")) +func (q_ QRCodeGeneratorObject) HasCorrectionLevel() bool { + return q_.RespondsToSelector(objc.Sel("correctionLevel")) } -// The message to encode in the QR code. [Full Topic] +// The QR code correction level: L, M, Q, or H. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/ciqrcodegenerator/3228683-message?language=objc -func (q_ QRCodeGeneratorWrapper) Message() []byte { - rv := objc.Call[[]byte](q_, objc.Sel("message")) +// [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_ QRCodeGeneratorWrapper) HasSetCorrectionLevel() bool { - return q_.RespondsToSelector(objc.Sel("setCorrectionLevel:")) +func (q_ QRCodeGeneratorObject) HasSetMessage() bool { + return q_.RespondsToSelector(objc.Sel("setMessage:")) } -// The QR code correction level: L, M, Q, or H. [Full Topic] +// The message to encode in the QR code. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/ciqrcodegenerator/3228682-correctionlevel?language=objc -func (q_ QRCodeGeneratorWrapper) SetCorrectionLevel(value string) { - objc.Call[objc.Void](q_, objc.Sel("setCorrectionLevel:"), value) +// [Full Topic]: https://developer.apple.com/documentation/coreimage/ciqrcodegenerator/3228683-message?language=objc +func (q_ QRCodeGeneratorObject) SetMessage(value []byte) { + objc.Call[objc.Void](q_, objc.Sel("setMessage:"), value) } -func (q_ QRCodeGeneratorWrapper) HasCorrectionLevel() bool { - return q_.RespondsToSelector(objc.Sel("correctionLevel")) +func (q_ QRCodeGeneratorObject) HasMessage() bool { + return q_.RespondsToSelector(objc.Sel("message")) } -// The QR code correction level: L, M, Q, or H. [Full Topic] +// The message to encode in the QR code. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/ciqrcodegenerator/3228682-correctionlevel?language=objc -func (q_ QRCodeGeneratorWrapper) CorrectionLevel() string { - rv := objc.Call[string](q_, objc.Sel("correctionLevel")) +// [Full Topic]: https://developer.apple.com/documentation/coreimage/ciqrcodegenerator/3228683-message?language=objc +func (q_ QRCodeGeneratorObject) Message() []byte { + rv := objc.Call[[]byte](q_, objc.Sel("message")) return rv } diff --git a/macos/coreimage/radial_gradient.gen.go b/macos/coreimage/radial_gradient_protocol.gen.go similarity index 74% rename from macos/coreimage/radial_gradient.gen.go rename to macos/coreimage/radial_gradient_protocol.gen.go index da01e0af..8ba0e56c 100644 --- a/macos/coreimage/radial_gradient.gen.go +++ b/macos/coreimage/radial_gradient_protocol.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package coreimage @@ -11,6 +11,14 @@ 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 float64) HasSetRadius1() bool @@ -27,147 +35,142 @@ type PRadialGradient interface { Radius0() float64 HasRadius0() bool + // optional + SetCenter(value coregraphics.Point) + HasSetCenter() bool + + // optional + Center() coregraphics.Point + HasCenter() bool + // optional SetColor0(value Color) HasSetColor0() bool // optional - Color0() IColor + Color0() Color HasColor0() bool +} - // optional - SetColor1(value Color) - HasSetColor1() bool +// ensure impl type implements protocol interface +var _ PRadialGradient = (*RadialGradientObject)(nil) - // optional - Color1() IColor - HasColor1() bool +// A concrete type for the [PRadialGradient] protocol. +type RadialGradientObject struct { + objc.Object +} - // optional - SetCenter(value coregraphics.Point) - HasSetCenter() bool +func (r_ RadialGradientObject) HasSetColor1() bool { + return r_.RespondsToSelector(objc.Sel("setColor1:")) +} - // optional - Center() coregraphics.Point - HasCenter() bool +// 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:"), objc.Ptr(value)) } -// A concrete type wrapper for the [PRadialGradient] protocol. -type RadialGradientWrapper struct { - objc.Object +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_ RadialGradientWrapper) HasSetRadius1() bool { +func (r_ RadialGradientObject) HasSetRadius1() bool { return r_.RespondsToSelector(objc.Sel("setRadius1:")) } // The radius of the ending circle to use in the gradient. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/coreimage/ciradialgradient/3228689-radius1?language=objc -func (r_ RadialGradientWrapper) SetRadius1(value float64) { +func (r_ RadialGradientObject) SetRadius1(value float64) { objc.Call[objc.Void](r_, objc.Sel("setRadius1:"), value) } -func (r_ RadialGradientWrapper) HasRadius1() bool { +func (r_ RadialGradientObject) HasRadius1() bool { return r_.RespondsToSelector(objc.Sel("radius1")) } // The radius of the ending circle to use in the gradient. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/coreimage/ciradialgradient/3228689-radius1?language=objc -func (r_ RadialGradientWrapper) Radius1() float64 { +func (r_ RadialGradientObject) Radius1() float64 { rv := objc.Call[float64](r_, objc.Sel("radius1")) return rv } -func (r_ RadialGradientWrapper) HasSetRadius0() bool { +func (r_ RadialGradientObject) HasSetRadius0() bool { return r_.RespondsToSelector(objc.Sel("setRadius0:")) } // The radius of the starting circle to use in the gradient. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/coreimage/ciradialgradient/3228688-radius0?language=objc -func (r_ RadialGradientWrapper) SetRadius0(value float64) { +func (r_ RadialGradientObject) SetRadius0(value float64) { objc.Call[objc.Void](r_, objc.Sel("setRadius0:"), value) } -func (r_ RadialGradientWrapper) HasRadius0() bool { +func (r_ RadialGradientObject) HasRadius0() bool { return r_.RespondsToSelector(objc.Sel("radius0")) } // The radius of the starting circle to use in the gradient. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/coreimage/ciradialgradient/3228688-radius0?language=objc -func (r_ RadialGradientWrapper) Radius0() float64 { +func (r_ RadialGradientObject) Radius0() float64 { rv := objc.Call[float64](r_, objc.Sel("radius0")) return rv } -func (r_ RadialGradientWrapper) HasSetColor0() bool { - return r_.RespondsToSelector(objc.Sel("setColor0:")) -} - -// The first color to use in the gradient. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/coreimage/ciradialgradient/3228686-color0?language=objc -func (r_ RadialGradientWrapper) SetColor0(value IColor) { - objc.Call[objc.Void](r_, objc.Sel("setColor0:"), objc.Ptr(value)) -} - -func (r_ RadialGradientWrapper) HasColor0() bool { - return r_.RespondsToSelector(objc.Sel("color0")) -} - -// The first color to use in the gradient. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/coreimage/ciradialgradient/3228686-color0?language=objc -func (r_ RadialGradientWrapper) Color0() Color { - rv := objc.Call[Color](r_, objc.Sel("color0")) - return rv -} - -func (r_ RadialGradientWrapper) HasSetColor1() bool { - return r_.RespondsToSelector(objc.Sel("setColor1:")) +func (r_ RadialGradientObject) HasSetCenter() bool { + return r_.RespondsToSelector(objc.Sel("setCenter:")) } -// The second color to use in the gradient. [Full Topic] +// The center of the effect as x and y coordinates. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/ciradialgradient/3228687-color1?language=objc -func (r_ RadialGradientWrapper) SetColor1(value IColor) { - objc.Call[objc.Void](r_, objc.Sel("setColor1:"), objc.Ptr(value)) +// [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_ RadialGradientWrapper) HasColor1() bool { - return r_.RespondsToSelector(objc.Sel("color1")) +func (r_ RadialGradientObject) HasCenter() bool { + return r_.RespondsToSelector(objc.Sel("center")) } -// The second color to use in the gradient. [Full Topic] +// The center of the effect as x and y coordinates. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/ciradialgradient/3228687-color1?language=objc -func (r_ RadialGradientWrapper) Color1() Color { - rv := objc.Call[Color](r_, objc.Sel("color1")) +// [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_ RadialGradientWrapper) HasSetCenter() bool { - return r_.RespondsToSelector(objc.Sel("setCenter:")) +func (r_ RadialGradientObject) HasSetColor0() bool { + return r_.RespondsToSelector(objc.Sel("setColor0:")) } -// The center of the effect as x and y coordinates. [Full Topic] +// The first color to use in the gradient. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/ciradialgradient/3228685-center?language=objc -func (r_ RadialGradientWrapper) SetCenter(value coregraphics.Point) { - objc.Call[objc.Void](r_, objc.Sel("setCenter:"), value) +// [Full Topic]: https://developer.apple.com/documentation/coreimage/ciradialgradient/3228686-color0?language=objc +func (r_ RadialGradientObject) SetColor0(value Color) { + objc.Call[objc.Void](r_, objc.Sel("setColor0:"), objc.Ptr(value)) } -func (r_ RadialGradientWrapper) HasCenter() bool { - return r_.RespondsToSelector(objc.Sel("center")) +func (r_ RadialGradientObject) HasColor0() bool { + return r_.RespondsToSelector(objc.Sel("color0")) } -// The center of the effect as x and y coordinates. [Full Topic] +// The first color to use in the gradient. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/ciradialgradient/3228685-center?language=objc -func (r_ RadialGradientWrapper) Center() coregraphics.Point { - rv := objc.Call[coregraphics.Point](r_, objc.Sel("center")) +// [Full Topic]: https://developer.apple.com/documentation/coreimage/ciradialgradient/3228686-color0?language=objc +func (r_ RadialGradientObject) Color0() Color { + rv := objc.Call[Color](r_, objc.Sel("color0")) return rv } diff --git a/macos/coreimage/random_generator.gen.go b/macos/coreimage/random_generator_protocol.gen.go similarity index 55% rename from macos/coreimage/random_generator.gen.go rename to macos/coreimage/random_generator_protocol.gen.go index 932ba578..fb62727c 100644 --- a/macos/coreimage/random_generator.gen.go +++ b/macos/coreimage/random_generator_protocol.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package coreimage @@ -12,7 +12,10 @@ import ( type PRandomGenerator interface { } -// A concrete type wrapper for the [PRandomGenerator] protocol. -type RandomGeneratorWrapper struct { +// ensure impl type implements protocol interface +var _ PRandomGenerator = (*RandomGeneratorObject)(nil) + +// A concrete type for the [PRandomGenerator] protocol. +type RandomGeneratorObject struct { objc.Object } diff --git a/macos/coreimage/raw_filter.gen.go b/macos/coreimage/raw_filter.gen.go index 42c36671..88d901fb 100644 --- a/macos/coreimage/raw_filter.gen.go +++ b/macos/coreimage/raw_filter.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package coreimage @@ -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() float64 - SetScaleFactor(value float64) - IsLocalToneMapSupported() bool - NeutralChromaticity() coregraphics.Point - SetNeutralChromaticity(value coregraphics.Point) - DecoderVersion() RAWDecoderVersion - SetDecoderVersion(value RAWDecoderVersion) - IsLensCorrectionSupported() bool - LocalToneMapAmount() float64 - SetLocalToneMapAmount(value float64) - IsLensCorrectionEnabled() bool - SetLensCorrectionEnabled(value bool) - IsGamutMappingEnabled() bool - SetGamutMappingEnabled(value bool) - IsDetailSupported() bool - IsMoireReductionSupported() bool - SharpnessAmount() float64 - SetSharpnessAmount(value float64) - ContrastAmount() float64 - SetContrastAmount(value float64) - IsLuminanceNoiseReductionSupported() bool - Properties() foundation.Dictionary - IsContrastSupported() bool - DetailAmount() float64 - SetDetailAmount(value float64) - ExtendedDynamicRangeAmount() float64 - SetExtendedDynamicRangeAmount(value float64) - IsColorNoiseReductionSupported() bool IsDraftModeEnabled() bool SetDraftModeEnabled(value bool) + PortraitEffectsMatte() Image + SemanticSegmentationGlassesMatte() Image + SemanticSegmentationTeethMatte() Image Exposure() float64 SetExposure(value float64) - BoostAmount() float64 - SetBoostAmount(value float64) - SemanticSegmentationHairMatte() Image - SemanticSegmentationGlassesMatte() Image - NeutralTint() float64 - SetNeutralTint(value float64) - NativeSize() coregraphics.Size - BoostShadowAmount() float64 - SetBoostShadowAmount(value float64) - ColorNoiseReductionAmount() float64 - SetColorNoiseReductionAmount(value float64) - SemanticSegmentationSkinMatte() Image - NeutralTemperature() float64 - SetNeutralTemperature(value float64) - PreviewImage() Image + SharpnessAmount() float64 + SetSharpnessAmount(value float64) LuminanceNoiseReductionAmount() float64 SetLuminanceNoiseReductionAmount(value float64) - ShadowBias() float64 - SetShadowBias(value float64) + BoostShadowAmount() float64 + SetBoostShadowAmount(value float64) + IsDetailSupported() bool + ExtendedDynamicRangeAmount() float64 + SetExtendedDynamicRangeAmount(value float64) SupportedDecoderVersions() []RAWDecoderVersion NeutralLocation() coregraphics.Point SetNeutralLocation(value coregraphics.Point) + NativeSize() coregraphics.Size + IsColorNoiseReductionSupported() bool + NeutralTint() float64 + SetNeutralTint(value float64) BaselineExposure() float64 SetBaselineExposure(value float64) - PortraitEffectsMatte() Image + ShadowBias() float64 + SetShadowBias(value float64) + IsLuminanceNoiseReductionSupported() bool + IsLocalToneMapSupported() bool + NeutralChromaticity() coregraphics.Point + SetNeutralChromaticity(value coregraphics.Point) + NeutralTemperature() float64 + SetNeutralTemperature(value float64) + SemanticSegmentationSkyMatte() Image + IsGamutMappingEnabled() bool + SetGamutMappingEnabled(value bool) LinearSpaceFilter() Filter SetLinearSpaceFilter(value IFilter) - MoireReductionAmount() float64 - SetMoireReductionAmount(value float64) + LocalToneMapAmount() float64 + SetLocalToneMapAmount(value float64) + BoostAmount() float64 + SetBoostAmount(value float64) + DecoderVersion() RAWDecoderVersion + SetDecoderVersion(value RAWDecoderVersion) + ColorNoiseReductionAmount() float64 + SetColorNoiseReductionAmount(value float64) + IsSharpnessSupported() bool + IsMoireReductionSupported() bool + ScaleFactor() float64 + SetScaleFactor(value float64) + SemanticSegmentationSkinMatte() Image + Properties() foundation.Dictionary + PreviewImage() Image + DetailAmount() float64 + SetDetailAmount(value float64) + IsLensCorrectionSupported() bool Orientation() imageio.ImagePropertyOrientation SetOrientation(value imageio.ImagePropertyOrientation) + IsLensCorrectionEnabled() bool + SetLensCorrectionEnabled(value bool) + SemanticSegmentationHairMatte() Image + MoireReductionAmount() float64 + SetMoireReductionAmount(value float64) + IsContrastSupported() bool + ContrastAmount() float64 + SetContrastAmount(value float64) } // 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) 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) FilterWithImageURL(url foundation.IURL) RAWFilter { @@ -127,16 +127,16 @@ func RAWFilter_FilterWithImageURL(url foundation.IURL) RAWFilter { return RAWFilterClass.FilterWithImageURL(url) } -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) Alloc() RAWFilter { @@ -144,10 +144,6 @@ func (rc _RAWFilterClass) Alloc() RAWFilter { return rv } -func RAWFilter_Alloc() RAWFilter { - return RAWFilterClass.Alloc() -} - func (rc _RAWFilterClass) New() RAWFilter { rv := objc.Call[RAWFilter](rc, objc.Sel("new")) rv.Autorelease() @@ -163,19 +159,34 @@ func (r_ RAWFilter) Init() RAWFilter { return rv } -// An optional auxiliary image that represents the semantic segmentation sky matte of the image. [Full Topic] +// A Boolean that indicates whether to enable draft mode. [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/3801625-draftmodeenabled?language=objc +func (r_ RAWFilter) IsDraftModeEnabled() bool { + rv := objc.Call[bool](r_, objc.Sel("isDraftModeEnabled")) return rv } -// A Boolean that indicates if the current image supports sharpness adjustments. [Full Topic] +// A Boolean that indicates whether to enable draft mode. [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/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] +// +// [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 auxiliary image that represents the semantic segmentation glasses matte of the image. [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")) return rv } @@ -202,156 +213,171 @@ func RAWFilter_SupportedCameraModels() []string { return RAWFilterClass.SupportedCameraModels() } -// A value that indicates the desired scale factor to draw the output 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/3801650-scalefactor?language=objc -func (r_ RAWFilter) ScaleFactor() float64 { - rv := objc.Call[float64](r_, objc.Sel("scaleFactor")) +// [Full Topic]: https://developer.apple.com/documentation/coreimage/cirawfilter/3801626-exposure?language=objc +func (r_ RAWFilter) Exposure() float64 { + rv := objc.Call[float64](r_, objc.Sel("exposure")) return rv } -// A value that indicates the desired scale factor to draw the output 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/3801650-scalefactor?language=objc -func (r_ RAWFilter) SetScaleFactor(value float64) { - objc.Call[objc.Void](r_, objc.Sel("setScaleFactor:"), value) +// [Full Topic]: https://developer.apple.com/documentation/coreimage/cirawfilter/3801626-exposure?language=objc +func (r_ RAWFilter) SetExposure(value float64) { + objc.Call[objc.Void](r_, objc.Sel("setExposure:"), value) } -// A Boolean that indicates if the current image supports local tone curve adjustments. [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/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/3801657-sharpnessamount?language=objc +func (r_ RAWFilter) SharpnessAmount() float64 { + rv := objc.Call[float64](r_, objc.Sel("sharpnessAmount")) return rv } -// A value that indicates the amount of white balance based on chromaticity values 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/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/3801657-sharpnessamount?language=objc +func (r_ RAWFilter) SetSharpnessAmount(value float64) { + 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] +// +// [Full Topic]: https://developer.apple.com/documentation/coreimage/cirawfilter/3801637-luminancenoisereductionamount?language=objc +func (r_ RAWFilter) LuminanceNoiseReductionAmount() float64 { + rv := objc.Call[float64](r_, objc.Sel("luminanceNoiseReductionAmount")) return rv } -// A value that indicates the amount of white balance based on chromaticity values to apply to 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/3801642-neutralchromaticity?language=objc -func (r_ RAWFilter) SetNeutralChromaticity(value coregraphics.Point) { - objc.Call[objc.Void](r_, objc.Sel("setNeutralChromaticity:"), value) +// [Full Topic]: https://developer.apple.com/documentation/coreimage/cirawfilter/3801637-luminancenoisereductionamount?language=objc +func (r_ RAWFilter) SetLuminanceNoiseReductionAmount(value float64) { + objc.Call[objc.Void](r_, objc.Sel("setLuminanceNoiseReductionAmount:"), value) } -// A value that indicates the decoder version to use. [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/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/3801617-boostshadowamount?language=objc +func (r_ RAWFilter) BoostShadowAmount() float64 { + rv := objc.Call[float64](r_, objc.Sel("boostShadowAmount")) return rv } -// A value that indicates the decoder version to use. [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/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/3801617-boostshadowamount?language=objc +func (r_ RAWFilter) SetBoostShadowAmount(value float64) { + objc.Call[objc.Void](r_, objc.Sel("setBoostShadowAmount:"), value) } -// A Boolean that indicates if you can enable lens correction for the current 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/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/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 local tone curve to apply to 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/3801635-localtonemapamount?language=objc -func (r_ RAWFilter) LocalToneMapAmount() float64 { - rv := objc.Call[float64](r_, objc.Sel("localToneMapAmount")) +// [Full Topic]: https://developer.apple.com/documentation/coreimage/cirawfilter/3820998-extendeddynamicrangeamount?language=objc +func (r_ RAWFilter) ExtendedDynamicRangeAmount() float64 { + rv := objc.Call[float64](r_, objc.Sel("extendedDynamicRangeAmount")) 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 extended dynamic range (EDR) 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 float64) { - objc.Call[objc.Void](r_, objc.Sel("setLocalToneMapAmount:"), value) +// [Full Topic]: https://developer.apple.com/documentation/coreimage/cirawfilter/3820998-extendeddynamicrangeamount?language=objc +func (r_ RAWFilter) SetExtendedDynamicRangeAmount(value float64) { + objc.Call[objc.Void](r_, objc.Sel("setExtendedDynamicRangeAmount:"), value) } -// A Boolean that indicates whether to enable lens correction. [Full Topic] +// An array of all supported decoder versions for the given image type. [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/3801660-supporteddecoderversions?language=objc +func (r_ RAWFilter) SupportedDecoderVersions() []RAWDecoderVersion { + rv := objc.Call[[]RAWDecoderVersion](r_, objc.Sel("supportedDecoderVersions")) 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) SetLensCorrectionEnabled(value bool) { - objc.Call[objc.Void](r_, objc.Sel("setLensCorrectionEnabled:"), 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 gamut mapping. [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/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/3801643-neutrallocation?language=objc +func (r_ RAWFilter) SetNeutralLocation(value coregraphics.Point) { + objc.Call[objc.Void](r_, objc.Sel("setNeutralLocation:"), value) } -// A Boolean that indicates whether to enable gamut mapping. [Full Topic] +// The full native size of the unscaled image. [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/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 detail enhancement adjustments. [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/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/3801619-colornoisereductionsupported?language=objc +func (r_ RAWFilter) IsColorNoiseReductionSupported() bool { + rv := objc.Call[bool](r_, objc.Sel("isColorNoiseReductionSupported")) return rv } -// A Boolean that indicates if the current image supports moire artifact reduction adjustments. [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/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/3801645-neutraltint?language=objc +func (r_ RAWFilter) NeutralTint() float64 { + rv := objc.Call[float64](r_, objc.Sel("neutralTint")) return rv } -// A value that indicates the amount of sharpness to apply to the edges of 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/3801657-sharpnessamount?language=objc -func (r_ RAWFilter) SharpnessAmount() float64 { - rv := objc.Call[float64](r_, objc.Sel("sharpnessAmount")) +// [Full Topic]: https://developer.apple.com/documentation/coreimage/cirawfilter/3801645-neutraltint?language=objc +func (r_ RAWFilter) SetNeutralTint(value float64) { + objc.Call[objc.Void](r_, objc.Sel("setNeutralTint:"), 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() float64 { + rv := objc.Call[float64](r_, objc.Sel("baselineExposure")) return rv } -// A value that indicates the amount of sharpness to apply to the edges of the image. [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/3801657-sharpnessamount?language=objc -func (r_ RAWFilter) SetSharpnessAmount(value float64) { - objc.Call[objc.Void](r_, objc.Sel("setSharpnessAmount:"), value) +// [Full Topic]: https://developer.apple.com/documentation/coreimage/cirawfilter/3801615-baselineexposure?language=objc +func (r_ RAWFilter) SetBaselineExposure(value float64) { + objc.Call[objc.Void](r_, objc.Sel("setBaselineExposure:"), value) } -// A value that indicates the amount of local contrast to apply to the edges 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/3801620-contrastamount?language=objc -func (r_ RAWFilter) ContrastAmount() float64 { - rv := objc.Call[float64](r_, objc.Sel("contrastAmount")) +// [Full Topic]: https://developer.apple.com/documentation/coreimage/cirawfilter/3801656-shadowbias?language=objc +func (r_ RAWFilter) ShadowBias() float64 { + rv := objc.Call[float64](r_, objc.Sel("shadowBias")) 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 amount to subtract from the shadows in the image. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/cirawfilter/3801620-contrastamount?language=objc -func (r_ RAWFilter) SetContrastAmount(value float64) { - objc.Call[objc.Void](r_, objc.Sel("setContrastAmount:"), value) +// [Full Topic]: https://developer.apple.com/documentation/coreimage/cirawfilter/3801656-shadowbias?language=objc +func (r_ RAWFilter) SetShadowBias(value float64) { + objc.Call[objc.Void](r_, objc.Sel("setShadowBias:"), value) } // A Boolean that indicates if the current image supports luminance noise reduction adjustments. [Full Topic] @@ -362,88 +388,95 @@ func (r_ RAWFilter) IsLuminanceNoiseReductionSupported() bool { return rv } -// A dictionary that contains properties of the image source. [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/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/3801636-localtonemapsupported?language=objc +func (r_ RAWFilter) IsLocalToneMapSupported() bool { + rv := objc.Call[bool](r_, objc.Sel("isLocalToneMapSupported")) return rv } -// A Boolean that indicates if the current image supports contrast adjustments. [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/3801621-contrastsupported?language=objc -func (r_ RAWFilter) IsContrastSupported() bool { - rv := objc.Call[bool](r_, objc.Sel("isContrastSupported")) +// [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 detail enhancement to apply to the edges of 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/3801623-detailamount?language=objc -func (r_ RAWFilter) DetailAmount() float64 { - rv := objc.Call[float64](r_, objc.Sel("detailAmount")) +// [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] +// +// [Full Topic]: https://developer.apple.com/documentation/coreimage/cirawfilter/3801644-neutraltemperature?language=objc +func (r_ RAWFilter) NeutralTemperature() float64 { + rv := objc.Call[float64](r_, objc.Sel("neutralTemperature")) 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 white balance based on temperature values 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 float64) { - objc.Call[objc.Void](r_, objc.Sel("setDetailAmount:"), value) +// [Full Topic]: https://developer.apple.com/documentation/coreimage/cirawfilter/3801644-neutraltemperature?language=objc +func (r_ RAWFilter) SetNeutralTemperature(value float64) { + objc.Call[objc.Void](r_, objc.Sel("setNeutralTemperature:"), value) } -// A value that indicates the amount of extended dynamic range (EDR) to apply to 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/3820998-extendeddynamicrangeamount?language=objc -func (r_ RAWFilter) ExtendedDynamicRangeAmount() float64 { - rv := objc.Call[float64](r_, objc.Sel("extendedDynamicRangeAmount")) +// [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 } -// A value that indicates the amount of extended dynamic range (EDR) to apply to the image. [Full Topic] +// A Boolean that indicates whether to enable gamut mapping. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/cirawfilter/3820998-extendeddynamicrangeamount?language=objc -func (r_ RAWFilter) SetExtendedDynamicRangeAmount(value float64) { - objc.Call[objc.Void](r_, objc.Sel("setExtendedDynamicRangeAmount:"), value) +// [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 Boolean that indicates whether to enable draft mode. [Full Topic] +// 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/3801625-draftmodeenabled?language=objc -func (r_ RAWFilter) IsDraftModeEnabled() bool { - rv := objc.Call[bool](r_, objc.Sel("isDraftModeEnabled")) +// [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 } -// A Boolean that indicates whether to enable draft mode. [Full Topic] +// 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/3801625-draftmodeenabled?language=objc -func (r_ RAWFilter) SetDraftModeEnabled(value bool) { - objc.Call[objc.Void](r_, objc.Sel("setDraftModeEnabled:"), value) +// [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:"), objc.Ptr(value)) } -// A value that indicates the amount of exposure 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/3801626-exposure?language=objc -func (r_ RAWFilter) Exposure() float64 { - rv := objc.Call[float64](r_, objc.Sel("exposure")) +// [Full Topic]: https://developer.apple.com/documentation/coreimage/cirawfilter/3801635-localtonemapamount?language=objc +func (r_ RAWFilter) LocalToneMapAmount() float64 { + rv := objc.Call[float64](r_, objc.Sel("localToneMapAmount")) return rv } -// A value that indicates the amount of exposure 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/3801626-exposure?language=objc -func (r_ RAWFilter) SetExposure(value float64) { - objc.Call[objc.Void](r_, objc.Sel("setExposure:"), value) +// [Full Topic]: https://developer.apple.com/documentation/coreimage/cirawfilter/3801635-localtonemapamount?language=objc +func (r_ RAWFilter) SetLocalToneMapAmount(value float64) { + objc.Call[objc.Void](r_, objc.Sel("setLocalToneMapAmount:"), value) } // A value that indicates the amount of global tone curve to apply to the image. [Full Topic] @@ -461,73 +494,65 @@ func (r_ RAWFilter) SetBoostAmount(value float64) { objc.Call[objc.Void](r_, objc.Sel("setBoostAmount:"), value) } -// An optional auxiliary image that represents the semantic segmentation hair matte 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/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/3801622-decoderversion?language=objc +func (r_ RAWFilter) DecoderVersion() RAWDecoderVersion { + rv := objc.Call[RAWDecoderVersion](r_, objc.Sel("decoderVersion")) return rv } -// An optional auxiliary image that represents the semantic segmentation glasses matte 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/3801651-semanticsegmentationglassesmatte?language=objc -func (r_ RAWFilter) SemanticSegmentationGlassesMatte() Image { - rv := objc.Call[Image](r_, objc.Sel("semanticSegmentationGlassesMatte")) - return rv +// [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 value that indicates the amount of white balance based on tint values to apply to the 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/3801645-neutraltint?language=objc -func (r_ RAWFilter) NeutralTint() float64 { - rv := objc.Call[float64](r_, objc.Sel("neutralTint")) +// [Full Topic]: https://developer.apple.com/documentation/coreimage/cirawfilter/3801618-colornoisereductionamount?language=objc +func (r_ RAWFilter) ColorNoiseReductionAmount() float64 { + rv := objc.Call[float64](r_, objc.Sel("colorNoiseReductionAmount")) return rv } -// A value that indicates the amount of white balance based on tint values to apply to the 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/3801645-neutraltint?language=objc -func (r_ RAWFilter) SetNeutralTint(value float64) { - objc.Call[objc.Void](r_, objc.Sel("setNeutralTint:"), value) +// [Full Topic]: https://developer.apple.com/documentation/coreimage/cirawfilter/3801618-colornoisereductionamount?language=objc +func (r_ RAWFilter) SetColorNoiseReductionAmount(value float64) { + objc.Call[objc.Void](r_, objc.Sel("setColorNoiseReductionAmount:"), value) } -// The full native size of the unscaled 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/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/3801658-sharpnesssupported?language=objc +func (r_ RAWFilter) IsSharpnessSupported() bool { + rv := objc.Call[bool](r_, objc.Sel("isSharpnessSupported")) return rv } -// A value that indicates the amount to boost the shadow areas of 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/3801617-boostshadowamount?language=objc -func (r_ RAWFilter) BoostShadowAmount() float64 { - rv := objc.Call[float64](r_, objc.Sel("boostShadowAmount")) +// [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 amount to boost the shadow areas of the image. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/coreimage/cirawfilter/3801617-boostshadowamount?language=objc -func (r_ RAWFilter) SetBoostShadowAmount(value float64) { - 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] +// A value that indicates the desired scale factor to draw the output image. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/cirawfilter/3801618-colornoisereductionamount?language=objc -func (r_ RAWFilter) ColorNoiseReductionAmount() float64 { - rv := objc.Call[float64](r_, objc.Sel("colorNoiseReductionAmount")) +// [Full Topic]: https://developer.apple.com/documentation/coreimage/cirawfilter/3801650-scalefactor?language=objc +func (r_ RAWFilter) ScaleFactor() float64 { + rv := objc.Call[float64](r_, objc.Sel("scaleFactor")) return rv } -// A value that indicates the amount of chroma noise reduction 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/3801618-colornoisereductionamount?language=objc -func (r_ RAWFilter) SetColorNoiseReductionAmount(value float64) { - objc.Call[objc.Void](r_, objc.Sel("setColorNoiseReductionAmount:"), value) +// [Full Topic]: https://developer.apple.com/documentation/coreimage/cirawfilter/3801650-scalefactor?language=objc +func (r_ RAWFilter) SetScaleFactor(value float64) { + objc.Call[objc.Void](r_, objc.Sel("setScaleFactor:"), value) } // An optional auxiliary image that represents the semantic segmentation skin matte of the image. [Full Topic] @@ -538,21 +563,14 @@ func (r_ RAWFilter) SemanticSegmentationSkinMatte() Image { return rv } -// A value that indicates the amount of white balance based on temperature values to apply to the image. [Full Topic] +// A dictionary that contains properties of the image source. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/cirawfilter/3801644-neutraltemperature?language=objc -func (r_ RAWFilter) NeutralTemperature() float64 { - rv := objc.Call[float64](r_, objc.Sel("neutralTemperature")) +// [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 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 float64) { - 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 @@ -561,97 +579,67 @@ func (r_ RAWFilter) PreviewImage() Image { return rv } -// 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/3801637-luminancenoisereductionamount?language=objc -func (r_ RAWFilter) LuminanceNoiseReductionAmount() float64 { - rv := objc.Call[float64](r_, objc.Sel("luminanceNoiseReductionAmount")) - return rv -} - -// 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/3801637-luminancenoisereductionamount?language=objc -func (r_ RAWFilter) SetLuminanceNoiseReductionAmount(value float64) { - objc.Call[objc.Void](r_, objc.Sel("setLuminanceNoiseReductionAmount:"), value) -} - -// A value that indicates the amount to subtract from the shadows in 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/3801656-shadowbias?language=objc -func (r_ RAWFilter) ShadowBias() float64 { - rv := objc.Call[float64](r_, objc.Sel("shadowBias")) +// [Full Topic]: https://developer.apple.com/documentation/coreimage/cirawfilter/3801623-detailamount?language=objc +func (r_ RAWFilter) DetailAmount() float64 { + rv := objc.Call[float64](r_, objc.Sel("detailAmount")) 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 detail enhancement 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 float64) { - objc.Call[objc.Void](r_, objc.Sel("setShadowBias:"), value) +// [Full Topic]: https://developer.apple.com/documentation/coreimage/cirawfilter/3801623-detailamount?language=objc +func (r_ RAWFilter) SetDetailAmount(value float64) { + objc.Call[objc.Void](r_, objc.Sel("setDetailAmount:"), value) } -// An array of all supported decoder versions for the given image type. [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/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/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 white balance based on pixel coordinates to apply to the image. [Full Topic] +// A value that indicates the orientation of the image. [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")) +// [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 white balance based on pixel coordinates to apply to the image. [Full Topic] +// A value that indicates the orientation of 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/3801646-orientation?language=objc +func (r_ RAWFilter) SetOrientation(value imageio.ImagePropertyOrientation) { + objc.Call[objc.Void](r_, objc.Sel("setOrientation:"), value) } -// A value that indicates the baseline exposure 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/3801615-baselineexposure?language=objc -func (r_ RAWFilter) BaselineExposure() float64 { - rv := objc.Call[float64](r_, objc.Sel("baselineExposure")) +// [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 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) SetBaselineExposure(value float64) { - objc.Call[objc.Void](r_, objc.Sel("setBaselineExposure:"), value) -} - -// An optional auxiliary image that represents the portrait effects matte of the image. [Full Topic] +// A Boolean that indicates whether to enable lens correction. [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")) - return rv +// [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) } -// An optional filter you can apply to the RAW image while it’s in linear space. [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/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/3801652-semanticsegmentationhairmatte?language=objc +func (r_ RAWFilter) SemanticSegmentationHairMatte() Image { + rv := objc.Call[Image](r_, objc.Sel("semanticSegmentationHairMatte")) 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:"), objc.Ptr(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 @@ -667,17 +655,25 @@ func (r_ RAWFilter) SetMoireReductionAmount(value float64) { objc.Call[objc.Void](r_, objc.Sel("setMoireReductionAmount:"), value) } -// A value that indicates the orientation of 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/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/3801621-contrastsupported?language=objc +func (r_ RAWFilter) IsContrastSupported() bool { + rv := objc.Call[bool](r_, objc.Sel("isContrastSupported")) return rv } -// A value that indicates the orientation of 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/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/3801620-contrastamount?language=objc +func (r_ RAWFilter) ContrastAmount() float64 { + rv := objc.Call[float64](r_, objc.Sel("contrastAmount")) + return rv +} + +// 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/3801620-contrastamount?language=objc +func (r_ RAWFilter) SetContrastAmount(value float64) { + objc.Call[objc.Void](r_, objc.Sel("setContrastAmount:"), value) } diff --git a/macos/coreimage/rectangle_feature.gen.go b/macos/coreimage/rectangle_feature.gen.go index 6491c38e..2f7391e7 100644 --- a/macos/coreimage/rectangle_feature.gen.go +++ b/macos/coreimage/rectangle_feature.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package coreimage @@ -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] @@ -43,10 +43,6 @@ func (rc _RectangleFeatureClass) Alloc() RectangleFeature { return rv } -func RectangleFeature_Alloc() RectangleFeature { - return RectangleFeatureClass.Alloc() -} - func (rc _RectangleFeatureClass) New() RectangleFeature { rv := objc.Call[RectangleFeature](rc, objc.Sel("new")) rv.Autorelease() @@ -70,6 +66,14 @@ 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 @@ -85,11 +89,3 @@ 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 b5b11b72..841ffdad 100644 --- a/macos/coreimage/render_destination.gen.go +++ b/macos/coreimage/render_destination.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package coreimage @@ -22,20 +22,20 @@ type _RenderDestinationClass struct { // An interface definition for the [RenderDestination] class. type IRenderDestination interface { objc.IObject - Width() uint + ColorSpace() coregraphics.ColorSpaceRef + SetColorSpace(value coregraphics.ColorSpaceRef) + Height() uint BlendKernel() BlendKernel SetBlendKernel(value IBlendKernel) - 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) + Width() uint + IsClamped() bool + SetClamped(value bool) + BlendsInDestinationColorSpace() bool + SetBlendsInDestinationColorSpace(value bool) IsDithered() bool SetDithered(value bool) } @@ -53,20 +53,6 @@ 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:"), objc.Ptr(surface)) return rv @@ -95,7 +81,35 @@ func NewRenderDestinationWithBitmapDataWidthHeightBytesPerRowFormat(data unsafe. return instance } -func (r_ RenderDestination) InitWithWidthHeightPixelFormatCommandBufferMtlTextureProvider(width uint, height uint, pixelFormat metal.PixelFormat, commandBuffer metal.PCommandBuffer, block func() metal.TextureWrapper) 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) 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) return rv @@ -104,7 +118,7 @@ func (r_ RenderDestination) InitWithWidthHeightPixelFormatCommandBufferMtlTextur // Creates a render destination based on a Metal texture with specified pixel format. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/coreimage/cirenderdestination/2880274-initwithwidth?language=objc -func NewRenderDestinationWithWidthHeightPixelFormatCommandBufferMtlTextureProvider(width uint, height uint, pixelFormat metal.PixelFormat, commandBuffer metal.PCommandBuffer, block func() metal.TextureWrapper) RenderDestination { +func NewRenderDestinationWithWidthHeightPixelFormatCommandBufferMtlTextureProvider(width uint, height uint, pixelFormat metal.PixelFormat, commandBuffer metal.PCommandBuffer, block func() metal.TextureObject) RenderDestination { instance := RenderDestinationClass.Alloc().InitWithWidthHeightPixelFormatCommandBufferMtlTextureProvider(width, height, pixelFormat, commandBuffer, block) instance.Autorelease() return instance @@ -126,29 +140,11 @@ 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 } -func RenderDestination_Alloc() RenderDestination { - return RenderDestinationClass.Alloc() -} - func (rc _RenderDestinationClass) New() RenderDestination { rv := objc.Call[RenderDestination](rc, objc.Sel("new")) rv.Autorelease() @@ -164,11 +160,26 @@ func (r_ RenderDestination) Init() RenderDestination { return rv } -// The render destination's row width. [Full Topic] +// The destination's color space. [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/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] +// +// [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 } @@ -187,21 +198,6 @@ func (r_ RenderDestination) SetBlendKernel(value IBlendKernel) { objc.Call[objc.Void](r_, objc.Sel("setBlendKernel:"), objc.Ptr(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 @@ -217,27 +213,42 @@ func (r_ RenderDestination) SetAlphaMode(value RenderDestinationAlphaMode) { objc.Call[objc.Void](r_, objc.Sel("setAlphaMode:"), value) } -// The render destination's buffer height. [Full Topic] +// Indicator of whether the destination is flipped. [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/2875442-flipped?language=objc +func (r_ RenderDestination) IsFlipped() bool { + rv := objc.Call[bool](r_, objc.Sel("isFlipped")) return rv } -// The destination's color space. [Full Topic] +// Indicator of whether the destination is flipped. [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")) +// [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] +// +// [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 } -// The destination's color space. [Full Topic] +// Indicator of whether or not the destination clamps. [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) +// [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) } // Indicator of whether to blend in the destination's color space. [Full Topic] @@ -255,21 +266,6 @@ 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 a4afe1b8..5bed85c7 100644 --- a/macos/coreimage/render_info.gen.go +++ b/macos/coreimage/render_info.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package coreimage @@ -19,8 +19,8 @@ type _RenderInfoClass struct { // An interface definition for the [RenderInfo] class. type IRenderInfo interface { objc.IObject - KernelExecutionTime() foundation.TimeInterval PixelsProcessed() int + KernelExecutionTime() foundation.TimeInterval PassCount() int } @@ -42,10 +42,6 @@ func (rc _RenderInfoClass) Alloc() RenderInfo { return rv } -func RenderInfo_Alloc() RenderInfo { - return RenderInfoClass.Alloc() -} - func (rc _RenderInfoClass) New() RenderInfo { rv := objc.Call[RenderInfo](rc, objc.Sel("new")) rv.Autorelease() @@ -61,14 +57,6 @@ func (r_ RenderInfo) Init() RenderInfo { 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 -func (r_ RenderInfo) KernelExecutionTime() foundation.TimeInterval { - rv := objc.Call[foundation.TimeInterval](r_, objc.Sel("kernelExecutionTime")) - 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 @@ -77,6 +65,14 @@ func (r_ RenderInfo) PixelsProcessed() int { 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 +func (r_ RenderInfo) KernelExecutionTime() foundation.TimeInterval { + rv := objc.Call[foundation.TimeInterval](r_, objc.Sel("kernelExecutionTime")) + 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/render_task.gen.go b/macos/coreimage/render_task.gen.go index 35d533df..07c0b587 100644 --- a/macos/coreimage/render_task.gen.go +++ b/macos/coreimage/render_task.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package coreimage @@ -40,10 +40,6 @@ func (rc _RenderTaskClass) Alloc() RenderTask { return rv } -func RenderTask_Alloc() RenderTask { - return RenderTaskClass.Alloc() -} - func (rc _RenderTaskClass) New() RenderTask { rv := objc.Call[RenderTask](rc, objc.Sel("new")) rv.Autorelease() diff --git a/macos/coreimage/ripple_transition.gen.go b/macos/coreimage/ripple_transition_protocol.gen.go similarity index 74% rename from macos/coreimage/ripple_transition.gen.go rename to macos/coreimage/ripple_transition_protocol.gen.go index b75a1ba0..cfc44224 100644 --- a/macos/coreimage/ripple_transition.gen.go +++ b/macos/coreimage/ripple_transition_protocol.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package coreimage @@ -12,162 +12,165 @@ import ( // [Full Topic]: https://developer.apple.com/documentation/coreimage/cirippletransition?language=objc type PRippleTransition interface { // optional - SetWidth(value float64) - HasSetWidth() bool + SetCenter(value coregraphics.Point) + HasSetCenter() bool // optional - Width() float64 - HasWidth() bool + Center() coregraphics.Point + HasCenter() bool // optional - SetScale(value float64) - HasSetScale() bool + SetShadingImage(value Image) + HasSetShadingImage() bool // optional - Scale() float64 - HasScale() bool + ShadingImage() Image + HasShadingImage() bool // optional - SetExtent(value coregraphics.Rect) - HasSetExtent() bool + SetScale(value float64) + HasSetScale() bool // optional - Extent() coregraphics.Rect - HasExtent() bool + Scale() float64 + HasScale() bool // optional - SetShadingImage(value Image) - HasSetShadingImage() bool + SetWidth(value float64) + HasSetWidth() bool // optional - ShadingImage() IImage - HasShadingImage() bool + Width() float64 + HasWidth() bool // optional - SetCenter(value coregraphics.Point) - HasSetCenter() bool + SetExtent(value coregraphics.Rect) + HasSetExtent() bool // optional - Center() coregraphics.Point - HasCenter() bool + Extent() coregraphics.Rect + HasExtent() bool } -// A concrete type wrapper for the [PRippleTransition] protocol. -type RippleTransitionWrapper struct { +// ensure impl type implements protocol interface +var _ PRippleTransition = (*RippleTransitionObject)(nil) + +// A concrete type for the [PRippleTransition] protocol. +type RippleTransitionObject struct { objc.Object } -func (r_ RippleTransitionWrapper) HasSetWidth() bool { - return r_.RespondsToSelector(objc.Sel("setWidth:")) +func (r_ RippleTransitionObject) HasSetCenter() bool { + return r_.RespondsToSelector(objc.Sel("setCenter:")) } -// The width of the ripple. [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/cirippletransition/3228696-width?language=objc -func (r_ RippleTransitionWrapper) SetWidth(value float64) { - objc.Call[objc.Void](r_, objc.Sel("setWidth:"), value) +// [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_ RippleTransitionWrapper) HasWidth() bool { - return r_.RespondsToSelector(objc.Sel("width")) +func (r_ RippleTransitionObject) HasCenter() bool { + return r_.RespondsToSelector(objc.Sel("center")) } -// The width of the ripple. [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/cirippletransition/3228696-width?language=objc -func (r_ RippleTransitionWrapper) Width() float64 { - rv := objc.Call[float64](r_, objc.Sel("width")) +// [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_ RippleTransitionWrapper) HasSetScale() bool { - return r_.RespondsToSelector(objc.Sel("setScale:")) +func (r_ RippleTransitionObject) HasSetShadingImage() bool { + return r_.RespondsToSelector(objc.Sel("setShadingImage:")) } -// A value that determines whether the ripple starts as a bulge (a higher value) or a dimple (a lower value). [Full Topic] +// An image that looks like a shaded sphere enclosed in a square. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/cirippletransition/3228694-scale?language=objc -func (r_ RippleTransitionWrapper) SetScale(value float64) { - objc.Call[objc.Void](r_, objc.Sel("setScale:"), value) +// [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:"), objc.Ptr(value)) } -func (r_ RippleTransitionWrapper) HasScale() bool { - return r_.RespondsToSelector(objc.Sel("scale")) +func (r_ RippleTransitionObject) HasShadingImage() bool { + return r_.RespondsToSelector(objc.Sel("shadingImage")) } -// A value that determines whether the ripple starts as a bulge (a higher value) or a dimple (a lower value). [Full Topic] +// An image that looks like a shaded sphere enclosed in a square. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/cirippletransition/3228694-scale?language=objc -func (r_ RippleTransitionWrapper) Scale() float64 { - rv := objc.Call[float64](r_, objc.Sel("scale")) +// [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_ RippleTransitionWrapper) HasSetExtent() bool { - return r_.RespondsToSelector(objc.Sel("setExtent:")) +func (r_ RippleTransitionObject) HasSetScale() bool { + return r_.RespondsToSelector(objc.Sel("setScale:")) } -// A rectangle that defines the extent of the effect. [Full Topic] +// A value that determines whether the ripple starts as a bulge (a higher value) or a dimple (a lower value). [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/cirippletransition/3228693-extent?language=objc -func (r_ RippleTransitionWrapper) SetExtent(value coregraphics.Rect) { - objc.Call[objc.Void](r_, objc.Sel("setExtent:"), value) +// [Full Topic]: https://developer.apple.com/documentation/coreimage/cirippletransition/3228694-scale?language=objc +func (r_ RippleTransitionObject) SetScale(value float64) { + objc.Call[objc.Void](r_, objc.Sel("setScale:"), value) } -func (r_ RippleTransitionWrapper) HasExtent() bool { - return r_.RespondsToSelector(objc.Sel("extent")) +func (r_ RippleTransitionObject) HasScale() bool { + return r_.RespondsToSelector(objc.Sel("scale")) } -// A rectangle that defines the extent of the effect. [Full Topic] +// A value that determines whether the ripple starts as a bulge (a higher value) or a dimple (a lower value). [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/cirippletransition/3228693-extent?language=objc -func (r_ RippleTransitionWrapper) Extent() coregraphics.Rect { - rv := objc.Call[coregraphics.Rect](r_, objc.Sel("extent")) +// [Full Topic]: https://developer.apple.com/documentation/coreimage/cirippletransition/3228694-scale?language=objc +func (r_ RippleTransitionObject) Scale() float64 { + rv := objc.Call[float64](r_, objc.Sel("scale")) return rv } -func (r_ RippleTransitionWrapper) 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_ RippleTransitionWrapper) SetShadingImage(value IImage) { - objc.Call[objc.Void](r_, objc.Sel("setShadingImage:"), objc.Ptr(value)) +// [Full Topic]: https://developer.apple.com/documentation/coreimage/cirippletransition/3228696-width?language=objc +func (r_ RippleTransitionObject) SetWidth(value float64) { + objc.Call[objc.Void](r_, objc.Sel("setWidth:"), value) } -func (r_ RippleTransitionWrapper) 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_ RippleTransitionWrapper) 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() float64 { + rv := objc.Call[float64](r_, objc.Sel("width")) return rv } -func (r_ RippleTransitionWrapper) HasSetCenter() bool { - return r_.RespondsToSelector(objc.Sel("setCenter:")) +func (r_ RippleTransitionObject) HasSetExtent() bool { + return r_.RespondsToSelector(objc.Sel("setExtent:")) } -// The x and y position to use as the center of the effect. [Full Topic] +// A rectangle that defines the extent of the effect. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/cirippletransition/3228692-center?language=objc -func (r_ RippleTransitionWrapper) SetCenter(value coregraphics.Point) { - objc.Call[objc.Void](r_, objc.Sel("setCenter:"), value) +// [Full Topic]: https://developer.apple.com/documentation/coreimage/cirippletransition/3228693-extent?language=objc +func (r_ RippleTransitionObject) SetExtent(value coregraphics.Rect) { + objc.Call[objc.Void](r_, objc.Sel("setExtent:"), value) } -func (r_ RippleTransitionWrapper) HasCenter() bool { - return r_.RespondsToSelector(objc.Sel("center")) +func (r_ RippleTransitionObject) HasExtent() bool { + return r_.RespondsToSelector(objc.Sel("extent")) } -// The x and y position to use as the center of the effect. [Full Topic] +// A rectangle that defines the extent of the effect. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/cirippletransition/3228692-center?language=objc -func (r_ RippleTransitionWrapper) Center() coregraphics.Point { - rv := objc.Call[coregraphics.Point](r_, objc.Sel("center")) +// [Full Topic]: https://developer.apple.com/documentation/coreimage/cirippletransition/3228693-extent?language=objc +func (r_ RippleTransitionObject) Extent() coregraphics.Rect { + rv := objc.Call[coregraphics.Rect](r_, objc.Sel("extent")) return rv } diff --git a/macos/coreimage/rounded_rectangle_generator.gen.go b/macos/coreimage/rounded_rectangle_generator_protocol.gen.go similarity index 70% rename from macos/coreimage/rounded_rectangle_generator.gen.go rename to macos/coreimage/rounded_rectangle_generator_protocol.gen.go index b2bf250c..84a8fe27 100644 --- a/macos/coreimage/rounded_rectangle_generator.gen.go +++ b/macos/coreimage/rounded_rectangle_generator_protocol.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package coreimage @@ -11,14 +11,6 @@ import ( // // [Full Topic]: https://developer.apple.com/documentation/coreimage/ciroundedrectanglegenerator?language=objc type PRoundedRectangleGenerator interface { - // optional - SetColor(value Color) - HasSetColor() bool - - // optional - Color() IColor - HasColor() bool - // optional SetRadius(value float64) HasSetRadius() bool @@ -27,6 +19,14 @@ type PRoundedRectangleGenerator interface { Radius() float64 HasRadius() bool + // optional + SetColor(value Color) + HasSetColor() bool + + // optional + Color() Color + HasColor() bool + // optional SetExtent(value coregraphics.Rect) HasSetExtent() bool @@ -36,76 +36,79 @@ type PRoundedRectangleGenerator interface { HasExtent() bool } -// A concrete type wrapper for the [PRoundedRectangleGenerator] protocol. -type RoundedRectangleGeneratorWrapper struct { +// ensure impl type implements protocol interface +var _ PRoundedRectangleGenerator = (*RoundedRectangleGeneratorObject)(nil) + +// A concrete type for the [PRoundedRectangleGenerator] protocol. +type RoundedRectangleGeneratorObject struct { objc.Object } -func (r_ RoundedRectangleGeneratorWrapper) HasSetColor() bool { - return r_.RespondsToSelector(objc.Sel("setColor:")) +func (r_ RoundedRectangleGeneratorObject) HasSetRadius() bool { + return r_.RespondsToSelector(objc.Sel("setRadius:")) } -// The color of the rounded rectangle. [Full Topic] +// The distance from the center of the effect. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/ciroundedrectanglegenerator/3338737-color?language=objc -func (r_ RoundedRectangleGeneratorWrapper) SetColor(value IColor) { - objc.Call[objc.Void](r_, objc.Sel("setColor:"), objc.Ptr(value)) +// [Full Topic]: https://developer.apple.com/documentation/coreimage/ciroundedrectanglegenerator/3338739-radius?language=objc +func (r_ RoundedRectangleGeneratorObject) SetRadius(value float64) { + objc.Call[objc.Void](r_, objc.Sel("setRadius:"), value) } -func (r_ RoundedRectangleGeneratorWrapper) HasColor() bool { - return r_.RespondsToSelector(objc.Sel("color")) +func (r_ RoundedRectangleGeneratorObject) HasRadius() bool { + return r_.RespondsToSelector(objc.Sel("radius")) } -// The color of the rounded rectangle. [Full Topic] +// The distance from the center of the effect. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/ciroundedrectanglegenerator/3338737-color?language=objc -func (r_ RoundedRectangleGeneratorWrapper) Color() Color { - rv := objc.Call[Color](r_, objc.Sel("color")) +// [Full Topic]: https://developer.apple.com/documentation/coreimage/ciroundedrectanglegenerator/3338739-radius?language=objc +func (r_ RoundedRectangleGeneratorObject) Radius() float64 { + rv := objc.Call[float64](r_, objc.Sel("radius")) return rv } -func (r_ RoundedRectangleGeneratorWrapper) HasSetRadius() bool { - return r_.RespondsToSelector(objc.Sel("setRadius:")) +func (r_ RoundedRectangleGeneratorObject) HasSetColor() bool { + return r_.RespondsToSelector(objc.Sel("setColor:")) } -// The distance from the center of the effect. [Full Topic] +// The color of the rounded rectangle. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/ciroundedrectanglegenerator/3338739-radius?language=objc -func (r_ RoundedRectangleGeneratorWrapper) SetRadius(value float64) { - objc.Call[objc.Void](r_, objc.Sel("setRadius:"), value) +// [Full Topic]: https://developer.apple.com/documentation/coreimage/ciroundedrectanglegenerator/3338737-color?language=objc +func (r_ RoundedRectangleGeneratorObject) SetColor(value Color) { + objc.Call[objc.Void](r_, objc.Sel("setColor:"), objc.Ptr(value)) } -func (r_ RoundedRectangleGeneratorWrapper) HasRadius() bool { - return r_.RespondsToSelector(objc.Sel("radius")) +func (r_ RoundedRectangleGeneratorObject) HasColor() bool { + return r_.RespondsToSelector(objc.Sel("color")) } -// The distance from the center of the effect. [Full Topic] +// The color of the rounded rectangle. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/ciroundedrectanglegenerator/3338739-radius?language=objc -func (r_ RoundedRectangleGeneratorWrapper) Radius() float64 { - rv := objc.Call[float64](r_, objc.Sel("radius")) +// [Full Topic]: https://developer.apple.com/documentation/coreimage/ciroundedrectanglegenerator/3338737-color?language=objc +func (r_ RoundedRectangleGeneratorObject) Color() Color { + rv := objc.Call[Color](r_, objc.Sel("color")) return rv } -func (r_ RoundedRectangleGeneratorWrapper) HasSetExtent() bool { +func (r_ RoundedRectangleGeneratorObject) HasSetExtent() bool { return r_.RespondsToSelector(objc.Sel("setExtent:")) } // A rectangle that defines the extent of the effect. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/coreimage/ciroundedrectanglegenerator/3338738-extent?language=objc -func (r_ RoundedRectangleGeneratorWrapper) SetExtent(value coregraphics.Rect) { +func (r_ RoundedRectangleGeneratorObject) SetExtent(value coregraphics.Rect) { objc.Call[objc.Void](r_, objc.Sel("setExtent:"), value) } -func (r_ RoundedRectangleGeneratorWrapper) HasExtent() bool { +func (r_ RoundedRectangleGeneratorObject) HasExtent() bool { return r_.RespondsToSelector(objc.Sel("extent")) } // A rectangle that defines the extent of the effect. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/coreimage/ciroundedrectanglegenerator/3338738-extent?language=objc -func (r_ RoundedRectangleGeneratorWrapper) Extent() coregraphics.Rect { +func (r_ RoundedRectangleGeneratorObject) Extent() coregraphics.Rect { rv := objc.Call[coregraphics.Rect](r_, objc.Sel("extent")) return rv } diff --git a/macos/coreimage/row_average.gen.go b/macos/coreimage/row_average_protocol.gen.go similarity index 50% rename from macos/coreimage/row_average.gen.go rename to macos/coreimage/row_average_protocol.gen.go index 746f5f1e..93289654 100644 --- a/macos/coreimage/row_average.gen.go +++ b/macos/coreimage/row_average_protocol.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package coreimage @@ -12,7 +12,10 @@ import ( type PRowAverage interface { } -// A concrete type wrapper for the [PRowAverage] protocol. -type RowAverageWrapper struct { +// ensure impl type implements protocol interface +var _ PRowAverage = (*RowAverageObject)(nil) + +// A concrete type for the [PRowAverage] protocol. +type RowAverageObject struct { objc.Object } diff --git a/macos/coreimage/saliency_map.gen.go b/macos/coreimage/saliency_map_protocol.gen.go similarity index 68% rename from macos/coreimage/saliency_map.gen.go rename to macos/coreimage/saliency_map_protocol.gen.go index 75b2e7d2..0f19354c 100644 --- a/macos/coreimage/saliency_map.gen.go +++ b/macos/coreimage/saliency_map_protocol.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package coreimage @@ -15,34 +15,37 @@ type PSaliencyMap interface { HasSetInputImage() bool // optional - InputImage() IImage + InputImage() Image HasInputImage() bool } -// A concrete type wrapper for the [PSaliencyMap] protocol. -type SaliencyMapWrapper struct { +// ensure impl type implements protocol interface +var _ PSaliencyMap = (*SaliencyMapObject)(nil) + +// A concrete type for the [PSaliencyMap] protocol. +type SaliencyMapObject struct { objc.Object } -func (s_ SaliencyMapWrapper) HasSetInputImage() bool { +func (s_ SaliencyMapObject) HasSetInputImage() bool { return s_.RespondsToSelector(objc.Sel("setInputImage:")) } // The image to use as an input image. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/coreimage/cisaliencymap/3228700-inputimage?language=objc -func (s_ SaliencyMapWrapper) SetInputImage(value IImage) { +func (s_ SaliencyMapObject) SetInputImage(value Image) { objc.Call[objc.Void](s_, objc.Sel("setInputImage:"), objc.Ptr(value)) } -func (s_ SaliencyMapWrapper) HasInputImage() bool { +func (s_ SaliencyMapObject) HasInputImage() bool { return s_.RespondsToSelector(objc.Sel("inputImage")) } // The image to use as an input image. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/coreimage/cisaliencymap/3228700-inputimage?language=objc -func (s_ SaliencyMapWrapper) InputImage() Image { +func (s_ SaliencyMapObject) InputImage() Image { rv := objc.Call[Image](s_, objc.Sel("inputImage")) return rv } diff --git a/macos/coreimage/sampler.gen.go b/macos/coreimage/sampler.gen.go index b81c5d28..cf493608 100644 --- a/macos/coreimage/sampler.gen.go +++ b/macos/coreimage/sampler.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package coreimage @@ -6,6 +6,7 @@ import ( "unsafe" "github.com/progrium/macdriver/macos/coregraphics" + "github.com/progrium/macdriver/macos/foundation" "github.com/progrium/macdriver/objc" ) @@ -36,6 +37,20 @@ 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{objc.Ptr(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:"), objc.Ptr(im)) return rv @@ -62,13 +77,47 @@ func NewSamplerWithImage(im IImage) Sampler { return instance } -func (sc _SamplerClass) Alloc() Sampler { - rv := objc.Call[Sampler](sc, objc.Sel("alloc")) +func (sc _SamplerClass) SamplerWithImageOptions(im IImage, dict foundation.Dictionary) Sampler { + rv := objc.Call[Sampler](sc, objc.Sel("samplerWithImage:options:"), objc.Ptr(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:"), objc.Ptr(im), dict) return rv } -func Sampler_Alloc() Sampler { - return SamplerClass.Alloc() +// 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{objc.Ptr(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 } func (sc _SamplerClass) New() Sampler { diff --git a/macos/coreimage/sepia_tone.gen.go b/macos/coreimage/sepia_tone_protocol.gen.go similarity index 72% rename from macos/coreimage/sepia_tone.gen.go rename to macos/coreimage/sepia_tone_protocol.gen.go index cc585649..490d88c9 100644 --- a/macos/coreimage/sepia_tone.gen.go +++ b/macos/coreimage/sepia_tone_protocol.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package coreimage @@ -10,14 +10,6 @@ import ( // // [Full Topic]: https://developer.apple.com/documentation/coreimage/cisepiatone?language=objc type PSepiaTone interface { - // optional - SetInputImage(value Image) - HasSetInputImage() bool - - // optional - InputImage() IImage - HasInputImage() bool - // optional SetIntensity(value float64) HasSetIntensity() bool @@ -25,55 +17,66 @@ type PSepiaTone interface { // optional Intensity() float64 HasIntensity() bool + + // optional + SetInputImage(value Image) + HasSetInputImage() bool + + // optional + InputImage() Image + HasInputImage() bool } -// A concrete type wrapper for the [PSepiaTone] protocol. -type SepiaToneWrapper struct { +// ensure impl type implements protocol interface +var _ PSepiaTone = (*SepiaToneObject)(nil) + +// A concrete type for the [PSepiaTone] protocol. +type SepiaToneObject struct { objc.Object } -func (s_ SepiaToneWrapper) HasSetInputImage() bool { - return s_.RespondsToSelector(objc.Sel("setInputImage:")) +func (s_ SepiaToneObject) HasSetIntensity() bool { + return s_.RespondsToSelector(objc.Sel("setIntensity:")) } -// The image to use as an input image. [Full Topic] +// The intensity of the sepia effect. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/cisepiatone/3228702-inputimage?language=objc -func (s_ SepiaToneWrapper) SetInputImage(value IImage) { - objc.Call[objc.Void](s_, objc.Sel("setInputImage:"), objc.Ptr(value)) +// [Full Topic]: https://developer.apple.com/documentation/coreimage/cisepiatone/3228703-intensity?language=objc +func (s_ SepiaToneObject) SetIntensity(value float64) { + objc.Call[objc.Void](s_, objc.Sel("setIntensity:"), value) } -func (s_ SepiaToneWrapper) HasInputImage() bool { - return s_.RespondsToSelector(objc.Sel("inputImage")) +func (s_ SepiaToneObject) HasIntensity() bool { + return s_.RespondsToSelector(objc.Sel("intensity")) } -// The image to use as an input image. [Full Topic] +// The intensity of the sepia effect. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/cisepiatone/3228702-inputimage?language=objc -func (s_ SepiaToneWrapper) InputImage() Image { - rv := objc.Call[Image](s_, objc.Sel("inputImage")) +// [Full Topic]: https://developer.apple.com/documentation/coreimage/cisepiatone/3228703-intensity?language=objc +func (s_ SepiaToneObject) Intensity() float64 { + rv := objc.Call[float64](s_, objc.Sel("intensity")) return rv } -func (s_ SepiaToneWrapper) HasSetIntensity() bool { - return s_.RespondsToSelector(objc.Sel("setIntensity:")) +func (s_ SepiaToneObject) HasSetInputImage() bool { + return s_.RespondsToSelector(objc.Sel("setInputImage:")) } -// The intensity of the sepia effect. [Full Topic] +// The image to use as an input image. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/cisepiatone/3228703-intensity?language=objc -func (s_ SepiaToneWrapper) SetIntensity(value float64) { - objc.Call[objc.Void](s_, objc.Sel("setIntensity:"), value) +// [Full Topic]: https://developer.apple.com/documentation/coreimage/cisepiatone/3228702-inputimage?language=objc +func (s_ SepiaToneObject) SetInputImage(value Image) { + objc.Call[objc.Void](s_, objc.Sel("setInputImage:"), objc.Ptr(value)) } -func (s_ SepiaToneWrapper) HasIntensity() bool { - return s_.RespondsToSelector(objc.Sel("intensity")) +func (s_ SepiaToneObject) HasInputImage() bool { + return s_.RespondsToSelector(objc.Sel("inputImage")) } -// The intensity of the sepia effect. [Full Topic] +// The image to use as an input image. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/cisepiatone/3228703-intensity?language=objc -func (s_ SepiaToneWrapper) Intensity() float64 { - rv := objc.Call[float64](s_, objc.Sel("intensity")) +// [Full Topic]: https://developer.apple.com/documentation/coreimage/cisepiatone/3228702-inputimage?language=objc +func (s_ SepiaToneObject) InputImage() Image { + rv := objc.Call[Image](s_, objc.Sel("inputImage")) return rv } diff --git a/macos/coreimage/shaded_material.gen.go b/macos/coreimage/shaded_material_protocol.gen.go similarity index 71% rename from macos/coreimage/shaded_material.gen.go rename to macos/coreimage/shaded_material_protocol.gen.go index be272669..9f99ddd2 100644 --- a/macos/coreimage/shaded_material.gen.go +++ b/macos/coreimage/shaded_material_protocol.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package coreimage @@ -11,100 +11,103 @@ import ( // [Full Topic]: https://developer.apple.com/documentation/coreimage/cishadedmaterial?language=objc type PShadedMaterial interface { // optional - SetScale(value float64) - HasSetScale() bool + SetShadingImage(value Image) + HasSetShadingImage() bool // optional - Scale() float64 - HasScale() bool + ShadingImage() Image + HasShadingImage() bool // optional SetInputImage(value Image) HasSetInputImage() bool // optional - InputImage() IImage + InputImage() Image HasInputImage() bool // optional - SetShadingImage(value Image) - HasSetShadingImage() bool + SetScale(value float64) + HasSetScale() bool // optional - ShadingImage() IImage - HasShadingImage() bool + Scale() float64 + HasScale() bool } -// A concrete type wrapper for the [PShadedMaterial] protocol. -type ShadedMaterialWrapper struct { +// ensure impl type implements protocol interface +var _ PShadedMaterial = (*ShadedMaterialObject)(nil) + +// A concrete type for the [PShadedMaterial] protocol. +type ShadedMaterialObject struct { objc.Object } -func (s_ ShadedMaterialWrapper) 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_ ShadedMaterialWrapper) SetScale(value float64) { - 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:"), objc.Ptr(value)) } -func (s_ ShadedMaterialWrapper) 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_ ShadedMaterialWrapper) Scale() float64 { - rv := objc.Call[float64](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 } -func (s_ ShadedMaterialWrapper) HasSetInputImage() bool { +func (s_ ShadedMaterialObject) HasSetInputImage() bool { return s_.RespondsToSelector(objc.Sel("setInputImage:")) } // The image to use as an input image. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/coreimage/cishadedmaterial/3228705-inputimage?language=objc -func (s_ ShadedMaterialWrapper) SetInputImage(value IImage) { +func (s_ ShadedMaterialObject) SetInputImage(value Image) { objc.Call[objc.Void](s_, objc.Sel("setInputImage:"), objc.Ptr(value)) } -func (s_ ShadedMaterialWrapper) HasInputImage() bool { +func (s_ ShadedMaterialObject) HasInputImage() bool { return s_.RespondsToSelector(objc.Sel("inputImage")) } // The image to use as an input image. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/coreimage/cishadedmaterial/3228705-inputimage?language=objc -func (s_ ShadedMaterialWrapper) InputImage() Image { +func (s_ ShadedMaterialObject) InputImage() Image { rv := objc.Call[Image](s_, objc.Sel("inputImage")) return rv } -func (s_ ShadedMaterialWrapper) 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_ ShadedMaterialWrapper) SetShadingImage(value IImage) { - objc.Call[objc.Void](s_, objc.Sel("setShadingImage:"), objc.Ptr(value)) +// [Full Topic]: https://developer.apple.com/documentation/coreimage/cishadedmaterial/3228706-scale?language=objc +func (s_ ShadedMaterialObject) SetScale(value float64) { + objc.Call[objc.Void](s_, objc.Sel("setScale:"), value) } -func (s_ ShadedMaterialWrapper) 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_ ShadedMaterialWrapper) 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() float64 { + rv := objc.Call[float64](s_, objc.Sel("scale")) return rv } diff --git a/macos/coreimage/sharpen_luminance.gen.go b/macos/coreimage/sharpen_luminance_protocol.gen.go similarity index 72% rename from macos/coreimage/sharpen_luminance.gen.go rename to macos/coreimage/sharpen_luminance_protocol.gen.go index 6d5e2e3b..58f189fd 100644 --- a/macos/coreimage/sharpen_luminance.gen.go +++ b/macos/coreimage/sharpen_luminance_protocol.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package coreimage @@ -10,12 +10,20 @@ import ( // // [Full Topic]: https://developer.apple.com/documentation/coreimage/cisharpenluminance?language=objc type PSharpenLuminance interface { + // optional + SetSharpness(value float64) + HasSetSharpness() bool + + // optional + Sharpness() float64 + HasSharpness() bool + // optional SetInputImage(value Image) HasSetInputImage() bool // optional - InputImage() IImage + InputImage() Image HasInputImage() bool // optional @@ -25,86 +33,81 @@ type PSharpenLuminance interface { // optional Radius() float64 HasRadius() bool +} - // optional - SetSharpness(value float64) - HasSetSharpness() bool +// ensure impl type implements protocol interface +var _ PSharpenLuminance = (*SharpenLuminanceObject)(nil) - // optional - Sharpness() float64 - HasSharpness() bool +// A concrete type for the [PSharpenLuminance] protocol. +type SharpenLuminanceObject struct { + objc.Object } -// A concrete type wrapper for the [PSharpenLuminance] protocol. -type SharpenLuminanceWrapper 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 float64) { + objc.Call[objc.Void](s_, objc.Sel("setSharpness:"), value) +} + +func (s_ SharpenLuminanceObject) HasSharpness() bool { + return s_.RespondsToSelector(objc.Sel("sharpness")) } -func (s_ SharpenLuminanceWrapper) HasSetInputImage() bool { +// 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() float64 { + rv := objc.Call[float64](s_, objc.Sel("sharpness")) + return rv +} + +func (s_ SharpenLuminanceObject) HasSetInputImage() bool { return s_.RespondsToSelector(objc.Sel("setInputImage:")) } // The image to use as an input image. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/coreimage/cisharpenluminance/3228709-inputimage?language=objc -func (s_ SharpenLuminanceWrapper) SetInputImage(value IImage) { +func (s_ SharpenLuminanceObject) SetInputImage(value Image) { objc.Call[objc.Void](s_, objc.Sel("setInputImage:"), objc.Ptr(value)) } -func (s_ SharpenLuminanceWrapper) HasInputImage() bool { +func (s_ SharpenLuminanceObject) HasInputImage() bool { return s_.RespondsToSelector(objc.Sel("inputImage")) } // The image to use as an input image. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/coreimage/cisharpenluminance/3228709-inputimage?language=objc -func (s_ SharpenLuminanceWrapper) InputImage() Image { +func (s_ SharpenLuminanceObject) InputImage() Image { rv := objc.Call[Image](s_, objc.Sel("inputImage")) return rv } -func (s_ SharpenLuminanceWrapper) HasSetRadius() bool { +func (s_ SharpenLuminanceObject) HasSetRadius() bool { return s_.RespondsToSelector(objc.Sel("setRadius:")) } // The distance from the center of the effect. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/coreimage/cisharpenluminance/3228710-radius?language=objc -func (s_ SharpenLuminanceWrapper) SetRadius(value float64) { +func (s_ SharpenLuminanceObject) SetRadius(value float64) { objc.Call[objc.Void](s_, objc.Sel("setRadius:"), value) } -func (s_ SharpenLuminanceWrapper) HasRadius() bool { +func (s_ SharpenLuminanceObject) HasRadius() bool { return s_.RespondsToSelector(objc.Sel("radius")) } // The distance from the center of the effect. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/coreimage/cisharpenluminance/3228710-radius?language=objc -func (s_ SharpenLuminanceWrapper) Radius() float64 { +func (s_ SharpenLuminanceObject) Radius() float64 { rv := objc.Call[float64](s_, objc.Sel("radius")) return rv } - -func (s_ SharpenLuminanceWrapper) 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_ SharpenLuminanceWrapper) SetSharpness(value float64) { - objc.Call[objc.Void](s_, objc.Sel("setSharpness:"), value) -} - -func (s_ SharpenLuminanceWrapper) 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_ SharpenLuminanceWrapper) Sharpness() float64 { - rv := objc.Call[float64](s_, objc.Sel("sharpness")) - return rv -} diff --git a/macos/coreimage/sixfold_reflected_tile.gen.go b/macos/coreimage/sixfold_reflected_tile_protocol.gen.go similarity index 72% rename from macos/coreimage/sixfold_reflected_tile.gen.go rename to macos/coreimage/sixfold_reflected_tile_protocol.gen.go index 46c9b949..11b4413c 100644 --- a/macos/coreimage/sixfold_reflected_tile.gen.go +++ b/macos/coreimage/sixfold_reflected_tile_protocol.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package coreimage @@ -11,6 +11,14 @@ 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 float64) HasSetWidth() bool @@ -24,7 +32,7 @@ type PSixfoldReflectedTile interface { HasSetInputImage() bool // optional - InputImage() IImage + InputImage() Image HasInputImage() bool // optional @@ -34,109 +42,104 @@ type PSixfoldReflectedTile interface { // optional Angle() float64 HasAngle() bool +} - // optional - SetCenter(value coregraphics.Point) - HasSetCenter() bool +// ensure impl type implements protocol interface +var _ PSixfoldReflectedTile = (*SixfoldReflectedTileObject)(nil) - // optional - Center() coregraphics.Point - HasCenter() bool +// A concrete type for the [PSixfoldReflectedTile] protocol. +type SixfoldReflectedTileObject struct { + objc.Object } -// A concrete type wrapper for the [PSixfoldReflectedTile] protocol. -type SixfoldReflectedTileWrapper 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")) } -func (s_ SixfoldReflectedTileWrapper) HasSetWidth() bool { +// 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:")) } // The width of a tile. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/coreimage/cisixfoldreflectedtile/3228716-width?language=objc -func (s_ SixfoldReflectedTileWrapper) SetWidth(value float64) { +func (s_ SixfoldReflectedTileObject) SetWidth(value float64) { objc.Call[objc.Void](s_, objc.Sel("setWidth:"), value) } -func (s_ SixfoldReflectedTileWrapper) HasWidth() bool { +func (s_ SixfoldReflectedTileObject) HasWidth() bool { return s_.RespondsToSelector(objc.Sel("width")) } // The width of a tile. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/coreimage/cisixfoldreflectedtile/3228716-width?language=objc -func (s_ SixfoldReflectedTileWrapper) Width() float64 { +func (s_ SixfoldReflectedTileObject) Width() float64 { rv := objc.Call[float64](s_, objc.Sel("width")) return rv } -func (s_ SixfoldReflectedTileWrapper) HasSetInputImage() bool { +func (s_ SixfoldReflectedTileObject) HasSetInputImage() bool { return s_.RespondsToSelector(objc.Sel("setInputImage:")) } // The image to use as an input image. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/coreimage/cisixfoldreflectedtile/3228715-inputimage?language=objc -func (s_ SixfoldReflectedTileWrapper) SetInputImage(value IImage) { +func (s_ SixfoldReflectedTileObject) SetInputImage(value Image) { objc.Call[objc.Void](s_, objc.Sel("setInputImage:"), objc.Ptr(value)) } -func (s_ SixfoldReflectedTileWrapper) HasInputImage() bool { +func (s_ SixfoldReflectedTileObject) HasInputImage() bool { return s_.RespondsToSelector(objc.Sel("inputImage")) } // The image to use as an input image. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/coreimage/cisixfoldreflectedtile/3228715-inputimage?language=objc -func (s_ SixfoldReflectedTileWrapper) InputImage() Image { +func (s_ SixfoldReflectedTileObject) InputImage() Image { rv := objc.Call[Image](s_, objc.Sel("inputImage")) return rv } -func (s_ SixfoldReflectedTileWrapper) HasSetAngle() bool { +func (s_ SixfoldReflectedTileObject) 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/cisixfoldreflectedtile/3228713-angle?language=objc -func (s_ SixfoldReflectedTileWrapper) SetAngle(value float64) { +func (s_ SixfoldReflectedTileObject) SetAngle(value float64) { objc.Call[objc.Void](s_, objc.Sel("setAngle:"), value) } -func (s_ SixfoldReflectedTileWrapper) HasAngle() bool { +func (s_ SixfoldReflectedTileObject) 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/cisixfoldreflectedtile/3228713-angle?language=objc -func (s_ SixfoldReflectedTileWrapper) Angle() float64 { +func (s_ SixfoldReflectedTileObject) Angle() float64 { rv := objc.Call[float64](s_, objc.Sel("angle")) return rv } - -func (s_ SixfoldReflectedTileWrapper) 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_ SixfoldReflectedTileWrapper) SetCenter(value coregraphics.Point) { - objc.Call[objc.Void](s_, objc.Sel("setCenter:"), value) -} - -func (s_ SixfoldReflectedTileWrapper) 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_ SixfoldReflectedTileWrapper) Center() coregraphics.Point { - rv := objc.Call[coregraphics.Point](s_, objc.Sel("center")) - return rv -} diff --git a/macos/coreimage/sixfold_rotated_tile.gen.go b/macos/coreimage/sixfold_rotated_tile_protocol.gen.go similarity index 72% rename from macos/coreimage/sixfold_rotated_tile.gen.go rename to macos/coreimage/sixfold_rotated_tile_protocol.gen.go index 8d2b0d28..0de9a17c 100644 --- a/macos/coreimage/sixfold_rotated_tile.gen.go +++ b/macos/coreimage/sixfold_rotated_tile_protocol.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package coreimage @@ -19,14 +19,6 @@ type PSixfoldRotatedTile interface { Width() float64 HasWidth() bool - // optional - SetInputImage(value Image) - HasSetInputImage() bool - - // optional - InputImage() IImage - HasInputImage() bool - // optional SetAngle(value float64) HasSetAngle() bool @@ -35,6 +27,14 @@ type PSixfoldRotatedTile interface { Angle() float64 HasAngle() bool + // optional + SetInputImage(value Image) + HasSetInputImage() bool + + // optional + InputImage() Image + HasInputImage() bool + // optional SetCenter(value coregraphics.Point) HasSetCenter() bool @@ -44,99 +44,102 @@ type PSixfoldRotatedTile interface { HasCenter() bool } -// A concrete type wrapper for the [PSixfoldRotatedTile] protocol. -type SixfoldRotatedTileWrapper struct { +// ensure impl type implements protocol interface +var _ PSixfoldRotatedTile = (*SixfoldRotatedTileObject)(nil) + +// A concrete type for the [PSixfoldRotatedTile] protocol. +type SixfoldRotatedTileObject struct { objc.Object } -func (s_ SixfoldRotatedTileWrapper) HasSetWidth() bool { +func (s_ SixfoldRotatedTileObject) HasSetWidth() bool { return s_.RespondsToSelector(objc.Sel("setWidth:")) } // The width of a tile. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/coreimage/cisixfoldrotatedtile/3228721-width?language=objc -func (s_ SixfoldRotatedTileWrapper) SetWidth(value float64) { +func (s_ SixfoldRotatedTileObject) SetWidth(value float64) { objc.Call[objc.Void](s_, objc.Sel("setWidth:"), value) } -func (s_ SixfoldRotatedTileWrapper) HasWidth() bool { +func (s_ SixfoldRotatedTileObject) HasWidth() bool { return s_.RespondsToSelector(objc.Sel("width")) } // The width of a tile. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/coreimage/cisixfoldrotatedtile/3228721-width?language=objc -func (s_ SixfoldRotatedTileWrapper) Width() float64 { +func (s_ SixfoldRotatedTileObject) Width() float64 { rv := objc.Call[float64](s_, objc.Sel("width")) return rv } -func (s_ SixfoldRotatedTileWrapper) HasSetInputImage() bool { - return s_.RespondsToSelector(objc.Sel("setInputImage:")) +func (s_ SixfoldRotatedTileObject) HasSetAngle() bool { + return s_.RespondsToSelector(objc.Sel("setAngle:")) } -// The image to use as an input image. [Full Topic] +// The angle, in radians, of the tiled pattern. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/cisixfoldrotatedtile/3228720-inputimage?language=objc -func (s_ SixfoldRotatedTileWrapper) SetInputImage(value IImage) { - objc.Call[objc.Void](s_, objc.Sel("setInputImage:"), objc.Ptr(value)) +// [Full Topic]: https://developer.apple.com/documentation/coreimage/cisixfoldrotatedtile/3228718-angle?language=objc +func (s_ SixfoldRotatedTileObject) SetAngle(value float64) { + objc.Call[objc.Void](s_, objc.Sel("setAngle:"), value) } -func (s_ SixfoldRotatedTileWrapper) HasInputImage() bool { - return s_.RespondsToSelector(objc.Sel("inputImage")) +func (s_ SixfoldRotatedTileObject) HasAngle() bool { + return s_.RespondsToSelector(objc.Sel("angle")) } -// The image to use as an input image. [Full Topic] +// The angle, in radians, of the tiled pattern. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/cisixfoldrotatedtile/3228720-inputimage?language=objc -func (s_ SixfoldRotatedTileWrapper) InputImage() Image { - rv := objc.Call[Image](s_, objc.Sel("inputImage")) +// [Full Topic]: https://developer.apple.com/documentation/coreimage/cisixfoldrotatedtile/3228718-angle?language=objc +func (s_ SixfoldRotatedTileObject) Angle() float64 { + rv := objc.Call[float64](s_, objc.Sel("angle")) return rv } -func (s_ SixfoldRotatedTileWrapper) HasSetAngle() bool { - return s_.RespondsToSelector(objc.Sel("setAngle:")) +func (s_ SixfoldRotatedTileObject) HasSetInputImage() bool { + return s_.RespondsToSelector(objc.Sel("setInputImage:")) } -// The angle, in radians, of the tiled pattern. [Full Topic] +// The image to use as an input image. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/cisixfoldrotatedtile/3228718-angle?language=objc -func (s_ SixfoldRotatedTileWrapper) SetAngle(value float64) { - objc.Call[objc.Void](s_, objc.Sel("setAngle:"), value) +// [Full Topic]: https://developer.apple.com/documentation/coreimage/cisixfoldrotatedtile/3228720-inputimage?language=objc +func (s_ SixfoldRotatedTileObject) SetInputImage(value Image) { + objc.Call[objc.Void](s_, objc.Sel("setInputImage:"), objc.Ptr(value)) } -func (s_ SixfoldRotatedTileWrapper) HasAngle() bool { - return s_.RespondsToSelector(objc.Sel("angle")) +func (s_ SixfoldRotatedTileObject) HasInputImage() bool { + return s_.RespondsToSelector(objc.Sel("inputImage")) } -// The angle, in radians, of the tiled pattern. [Full Topic] +// The image to use as an input image. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/cisixfoldrotatedtile/3228718-angle?language=objc -func (s_ SixfoldRotatedTileWrapper) Angle() float64 { - rv := objc.Call[float64](s_, objc.Sel("angle")) +// [Full Topic]: https://developer.apple.com/documentation/coreimage/cisixfoldrotatedtile/3228720-inputimage?language=objc +func (s_ SixfoldRotatedTileObject) InputImage() Image { + rv := objc.Call[Image](s_, objc.Sel("inputImage")) return rv } -func (s_ SixfoldRotatedTileWrapper) HasSetCenter() bool { +func (s_ SixfoldRotatedTileObject) 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/cisixfoldrotatedtile/3228719-center?language=objc -func (s_ SixfoldRotatedTileWrapper) SetCenter(value coregraphics.Point) { +func (s_ SixfoldRotatedTileObject) SetCenter(value coregraphics.Point) { objc.Call[objc.Void](s_, objc.Sel("setCenter:"), value) } -func (s_ SixfoldRotatedTileWrapper) HasCenter() bool { +func (s_ SixfoldRotatedTileObject) 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/cisixfoldrotatedtile/3228719-center?language=objc -func (s_ SixfoldRotatedTileWrapper) Center() coregraphics.Point { +func (s_ SixfoldRotatedTileObject) Center() coregraphics.Point { rv := objc.Call[coregraphics.Point](s_, objc.Sel("center")) return rv } diff --git a/macos/coreimage/smooth_linear_gradient.gen.go b/macos/coreimage/smooth_linear_gradient_protocol.gen.go similarity index 71% rename from macos/coreimage/smooth_linear_gradient.gen.go rename to macos/coreimage/smooth_linear_gradient_protocol.gen.go index 36423739..678f63c9 100644 --- a/macos/coreimage/smooth_linear_gradient.gen.go +++ b/macos/coreimage/smooth_linear_gradient_protocol.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package coreimage @@ -20,123 +20,126 @@ type PSmoothLinearGradient interface { HasPoint1() bool // optional - SetPoint0(value coregraphics.Point) - HasSetPoint0() bool + SetColor0(value Color) + HasSetColor0() bool // optional - Point0() coregraphics.Point - HasPoint0() bool + Color0() Color + HasColor0() bool // optional - SetColor0(value Color) - HasSetColor0() bool + SetPoint0(value coregraphics.Point) + HasSetPoint0() bool // optional - Color0() IColor - HasColor0() bool + Point0() coregraphics.Point + HasPoint0() bool // optional SetColor1(value Color) HasSetColor1() bool // optional - Color1() IColor + Color1() Color HasColor1() bool } -// A concrete type wrapper for the [PSmoothLinearGradient] protocol. -type SmoothLinearGradientWrapper struct { +// ensure impl type implements protocol interface +var _ PSmoothLinearGradient = (*SmoothLinearGradientObject)(nil) + +// A concrete type for the [PSmoothLinearGradient] protocol. +type SmoothLinearGradientObject struct { objc.Object } -func (s_ SmoothLinearGradientWrapper) HasSetPoint1() bool { +func (s_ SmoothLinearGradientObject) HasSetPoint1() bool { return s_.RespondsToSelector(objc.Sel("setPoint1:")) } // The ending position of the gradient. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/coreimage/cismoothlineargradient/3228726-point1?language=objc -func (s_ SmoothLinearGradientWrapper) SetPoint1(value coregraphics.Point) { +func (s_ SmoothLinearGradientObject) SetPoint1(value coregraphics.Point) { objc.Call[objc.Void](s_, objc.Sel("setPoint1:"), value) } -func (s_ SmoothLinearGradientWrapper) HasPoint1() bool { +func (s_ SmoothLinearGradientObject) HasPoint1() bool { return s_.RespondsToSelector(objc.Sel("point1")) } // The ending position of the gradient. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/coreimage/cismoothlineargradient/3228726-point1?language=objc -func (s_ SmoothLinearGradientWrapper) Point1() coregraphics.Point { +func (s_ SmoothLinearGradientObject) Point1() coregraphics.Point { rv := objc.Call[coregraphics.Point](s_, objc.Sel("point1")) return rv } -func (s_ SmoothLinearGradientWrapper) HasSetPoint0() bool { - return s_.RespondsToSelector(objc.Sel("setPoint0:")) +func (s_ SmoothLinearGradientObject) HasSetColor0() bool { + return s_.RespondsToSelector(objc.Sel("setColor0:")) } -// The starting position of the gradient. [Full Topic] +// The first color to use in the gradient. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/cismoothlineargradient/3228725-point0?language=objc -func (s_ SmoothLinearGradientWrapper) SetPoint0(value coregraphics.Point) { - objc.Call[objc.Void](s_, objc.Sel("setPoint0:"), value) +// [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:"), objc.Ptr(value)) } -func (s_ SmoothLinearGradientWrapper) HasPoint0() bool { - return s_.RespondsToSelector(objc.Sel("point0")) +func (s_ SmoothLinearGradientObject) HasColor0() bool { + return s_.RespondsToSelector(objc.Sel("color0")) } -// The starting position of the gradient. [Full Topic] +// The first color to use in the gradient. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/cismoothlineargradient/3228725-point0?language=objc -func (s_ SmoothLinearGradientWrapper) Point0() coregraphics.Point { - rv := objc.Call[coregraphics.Point](s_, objc.Sel("point0")) +// [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_ SmoothLinearGradientWrapper) HasSetColor0() bool { - return s_.RespondsToSelector(objc.Sel("setColor0:")) +func (s_ SmoothLinearGradientObject) HasSetPoint0() bool { + return s_.RespondsToSelector(objc.Sel("setPoint0:")) } -// The first color to use in the gradient. [Full Topic] +// The starting position of the gradient. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/cismoothlineargradient/3228723-color0?language=objc -func (s_ SmoothLinearGradientWrapper) SetColor0(value IColor) { - objc.Call[objc.Void](s_, objc.Sel("setColor0:"), objc.Ptr(value)) +// [Full Topic]: https://developer.apple.com/documentation/coreimage/cismoothlineargradient/3228725-point0?language=objc +func (s_ SmoothLinearGradientObject) SetPoint0(value coregraphics.Point) { + objc.Call[objc.Void](s_, objc.Sel("setPoint0:"), value) } -func (s_ SmoothLinearGradientWrapper) HasColor0() bool { - return s_.RespondsToSelector(objc.Sel("color0")) +func (s_ SmoothLinearGradientObject) HasPoint0() bool { + return s_.RespondsToSelector(objc.Sel("point0")) } -// The first color to use in the gradient. [Full Topic] +// The starting position of the gradient. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/cismoothlineargradient/3228723-color0?language=objc -func (s_ SmoothLinearGradientWrapper) Color0() Color { - rv := objc.Call[Color](s_, objc.Sel("color0")) +// [Full Topic]: https://developer.apple.com/documentation/coreimage/cismoothlineargradient/3228725-point0?language=objc +func (s_ SmoothLinearGradientObject) Point0() coregraphics.Point { + rv := objc.Call[coregraphics.Point](s_, objc.Sel("point0")) return rv } -func (s_ SmoothLinearGradientWrapper) HasSetColor1() bool { +func (s_ SmoothLinearGradientObject) HasSetColor1() bool { return s_.RespondsToSelector(objc.Sel("setColor1:")) } // The second color to use in the gradient. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/coreimage/cismoothlineargradient/3228724-color1?language=objc -func (s_ SmoothLinearGradientWrapper) SetColor1(value IColor) { +func (s_ SmoothLinearGradientObject) SetColor1(value Color) { objc.Call[objc.Void](s_, objc.Sel("setColor1:"), objc.Ptr(value)) } -func (s_ SmoothLinearGradientWrapper) HasColor1() bool { +func (s_ SmoothLinearGradientObject) HasColor1() bool { return s_.RespondsToSelector(objc.Sel("color1")) } // The second color to use in the gradient. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/coreimage/cismoothlineargradient/3228724-color1?language=objc -func (s_ SmoothLinearGradientWrapper) Color1() Color { +func (s_ SmoothLinearGradientObject) Color1() Color { rv := objc.Call[Color](s_, objc.Sel("color1")) return rv } diff --git a/macos/coreimage/spot_color.gen.go b/macos/coreimage/spot_color_protocol.gen.go similarity index 76% rename from macos/coreimage/spot_color.gen.go rename to macos/coreimage/spot_color_protocol.gen.go index fe5815bc..09b2644e 100644 --- a/macos/coreimage/spot_color.gen.go +++ b/macos/coreimage/spot_color_protocol.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package coreimage @@ -11,12 +11,12 @@ import ( // [Full Topic]: https://developer.apple.com/documentation/coreimage/cispotcolor?language=objc type PSpotColor interface { // optional - SetInputImage(value Image) - HasSetInputImage() bool + SetReplacementColor3(value Color) + HasSetReplacementColor3() bool // optional - InputImage() IImage - HasInputImage() bool + ReplacementColor3() Color + HasReplacementColor3() bool // optional SetContrast2(value float64) @@ -27,84 +27,76 @@ type PSpotColor interface { HasContrast2() bool // optional - SetCenterColor3(value Color) - HasSetCenterColor3() bool - - // optional - CenterColor3() IColor - HasCenterColor3() bool - - // optional - SetCenterColor2(value Color) - HasSetCenterColor2() bool + SetCenterColor1(value Color) + HasSetCenterColor1() bool // optional - CenterColor2() IColor - HasCenterColor2() bool + CenterColor1() Color + HasCenterColor1() bool // optional - SetContrast3(value float64) - HasSetContrast3() bool + SetCloseness1(value float64) + HasSetCloseness1() bool // optional - Contrast3() float64 - HasContrast3() bool + Closeness1() float64 + HasCloseness1() bool // optional - SetCloseness2(value float64) - HasSetCloseness2() bool + SetCloseness3(value float64) + HasSetCloseness3() bool // optional - Closeness2() float64 - HasCloseness2() bool + Closeness3() float64 + HasCloseness3() bool // optional SetReplacementColor2(value Color) HasSetReplacementColor2() bool // optional - ReplacementColor2() IColor + ReplacementColor2() Color HasReplacementColor2() bool // optional - SetReplacementColor3(value Color) - HasSetReplacementColor3() bool + SetContrast3(value float64) + HasSetContrast3() bool // optional - ReplacementColor3() IColor - HasReplacementColor3() bool + Contrast3() float64 + HasContrast3() bool // optional - SetCloseness3(value float64) - HasSetCloseness3() bool + SetCloseness2(value float64) + HasSetCloseness2() bool // optional - Closeness3() float64 - HasCloseness3() bool + Closeness2() float64 + HasCloseness2() bool // optional - SetCloseness1(value float64) - HasSetCloseness1() bool + SetCenterColor2(value Color) + HasSetCenterColor2() bool // optional - Closeness1() float64 - HasCloseness1() bool + CenterColor2() Color + HasCenterColor2() bool // optional SetReplacementColor1(value Color) HasSetReplacementColor1() bool // optional - ReplacementColor1() IColor + ReplacementColor1() Color HasReplacementColor1() bool // optional - SetCenterColor1(value Color) - HasSetCenterColor1() bool + SetInputImage(value Image) + HasSetInputImage() bool // optional - CenterColor1() IColor - HasCenterColor1() bool + InputImage() Image + HasInputImage() bool // optional SetContrast1(value float64) @@ -113,308 +105,319 @@ type PSpotColor interface { // optional Contrast1() float64 HasContrast1() bool + + // optional + SetCenterColor3(value Color) + HasSetCenterColor3() bool + + // optional + CenterColor3() Color + HasCenterColor3() bool } -// A concrete type wrapper for the [PSpotColor] protocol. -type SpotColorWrapper struct { +// ensure impl type implements protocol interface +var _ PSpotColor = (*SpotColorObject)(nil) + +// A concrete type for the [PSpotColor] protocol. +type SpotColorObject struct { objc.Object } -func (s_ SpotColorWrapper) HasSetInputImage() bool { - return s_.RespondsToSelector(objc.Sel("setInputImage:")) +func (s_ SpotColorObject) HasSetReplacementColor3() bool { + return s_.RespondsToSelector(objc.Sel("setReplacementColor3:")) } -// The image to use as an input image. [Full Topic] +// A replacement color for the third color range. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/cispotcolor/3228737-inputimage?language=objc -func (s_ SpotColorWrapper) SetInputImage(value IImage) { - objc.Call[objc.Void](s_, objc.Sel("setInputImage:"), objc.Ptr(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:"), objc.Ptr(value)) } -func (s_ SpotColorWrapper) HasInputImage() bool { - return s_.RespondsToSelector(objc.Sel("inputImage")) +func (s_ SpotColorObject) HasReplacementColor3() bool { + return s_.RespondsToSelector(objc.Sel("replacementColor3")) } -// The image to use as an input image. [Full Topic] +// A replacement color for the third color range. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/cispotcolor/3228737-inputimage?language=objc -func (s_ SpotColorWrapper) InputImage() Image { - rv := objc.Call[Image](s_, objc.Sel("inputImage")) +// [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_ SpotColorWrapper) HasSetContrast2() bool { +func (s_ SpotColorObject) HasSetContrast2() bool { return s_.RespondsToSelector(objc.Sel("setContrast2:")) } // The contrast of the second replacement color. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/coreimage/cispotcolor/3228735-contrast2?language=objc -func (s_ SpotColorWrapper) SetContrast2(value float64) { +func (s_ SpotColorObject) SetContrast2(value float64) { objc.Call[objc.Void](s_, objc.Sel("setContrast2:"), value) } -func (s_ SpotColorWrapper) HasContrast2() bool { +func (s_ SpotColorObject) HasContrast2() bool { return s_.RespondsToSelector(objc.Sel("contrast2")) } // The contrast of the second replacement color. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/coreimage/cispotcolor/3228735-contrast2?language=objc -func (s_ SpotColorWrapper) Contrast2() float64 { +func (s_ SpotColorObject) Contrast2() float64 { rv := objc.Call[float64](s_, objc.Sel("contrast2")) return rv } -func (s_ SpotColorWrapper) 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_ SpotColorWrapper) SetCenterColor3(value IColor) { - objc.Call[objc.Void](s_, objc.Sel("setCenterColor3:"), objc.Ptr(value)) -} - -func (s_ SpotColorWrapper) 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_ SpotColorWrapper) CenterColor3() Color { - rv := objc.Call[Color](s_, objc.Sel("centerColor3")) - return rv -} - -func (s_ SpotColorWrapper) HasSetCenterColor2() bool { - return s_.RespondsToSelector(objc.Sel("setCenterColor2:")) +func (s_ SpotColorObject) HasSetCenterColor1() bool { + return s_.RespondsToSelector(objc.Sel("setCenterColor1:")) } -// The center value of the second color range to replace. [Full Topic] +// The center value of the first color range to replace. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/cispotcolor/3228729-centercolor2?language=objc -func (s_ SpotColorWrapper) SetCenterColor2(value IColor) { - objc.Call[objc.Void](s_, objc.Sel("setCenterColor2:"), objc.Ptr(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:"), objc.Ptr(value)) } -func (s_ SpotColorWrapper) HasCenterColor2() bool { - return s_.RespondsToSelector(objc.Sel("centerColor2")) +func (s_ SpotColorObject) HasCenterColor1() bool { + return s_.RespondsToSelector(objc.Sel("centerColor1")) } -// The center value of the second color range to replace. [Full Topic] +// The center value of the first color range to replace. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/cispotcolor/3228729-centercolor2?language=objc -func (s_ SpotColorWrapper) CenterColor2() Color { - rv := objc.Call[Color](s_, objc.Sel("centerColor2")) +// [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 } -func (s_ SpotColorWrapper) HasSetContrast3() bool { - return s_.RespondsToSelector(objc.Sel("setContrast3:")) +func (s_ SpotColorObject) HasSetCloseness1() bool { + return s_.RespondsToSelector(objc.Sel("setCloseness1:")) } -// The contrast of the third replacement color. [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/3228736-contrast3?language=objc -func (s_ SpotColorWrapper) SetContrast3(value float64) { - objc.Call[objc.Void](s_, objc.Sel("setContrast3:"), value) +// [Full Topic]: https://developer.apple.com/documentation/coreimage/cispotcolor/3228731-closeness1?language=objc +func (s_ SpotColorObject) SetCloseness1(value float64) { + objc.Call[objc.Void](s_, objc.Sel("setCloseness1:"), value) } -func (s_ SpotColorWrapper) HasContrast3() bool { - return s_.RespondsToSelector(objc.Sel("contrast3")) +func (s_ SpotColorObject) HasCloseness1() bool { + return s_.RespondsToSelector(objc.Sel("closeness1")) } -// The contrast of the third replacement color. [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/3228736-contrast3?language=objc -func (s_ SpotColorWrapper) Contrast3() float64 { - rv := objc.Call[float64](s_, objc.Sel("contrast3")) +// [Full Topic]: https://developer.apple.com/documentation/coreimage/cispotcolor/3228731-closeness1?language=objc +func (s_ SpotColorObject) Closeness1() float64 { + rv := objc.Call[float64](s_, objc.Sel("closeness1")) return rv } -func (s_ SpotColorWrapper) 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_ SpotColorWrapper) SetCloseness2(value float64) { - 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 float64) { + objc.Call[objc.Void](s_, objc.Sel("setCloseness3:"), value) } -func (s_ SpotColorWrapper) 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_ SpotColorWrapper) Closeness2() float64 { - rv := objc.Call[float64](s_, objc.Sel("closeness2")) +// [Full Topic]: https://developer.apple.com/documentation/coreimage/cispotcolor/3228733-closeness3?language=objc +func (s_ SpotColorObject) Closeness3() float64 { + rv := objc.Call[float64](s_, objc.Sel("closeness3")) return rv } -func (s_ SpotColorWrapper) HasSetReplacementColor2() bool { +func (s_ SpotColorObject) HasSetReplacementColor2() bool { return s_.RespondsToSelector(objc.Sel("setReplacementColor2:")) } // A replacement color for the second color range. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/coreimage/cispotcolor/3228739-replacementcolor2?language=objc -func (s_ SpotColorWrapper) SetReplacementColor2(value IColor) { +func (s_ SpotColorObject) SetReplacementColor2(value Color) { objc.Call[objc.Void](s_, objc.Sel("setReplacementColor2:"), objc.Ptr(value)) } -func (s_ SpotColorWrapper) HasReplacementColor2() bool { +func (s_ SpotColorObject) HasReplacementColor2() bool { return s_.RespondsToSelector(objc.Sel("replacementColor2")) } // A replacement color for the second color range. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/coreimage/cispotcolor/3228739-replacementcolor2?language=objc -func (s_ SpotColorWrapper) ReplacementColor2() Color { +func (s_ SpotColorObject) ReplacementColor2() Color { rv := objc.Call[Color](s_, objc.Sel("replacementColor2")) return rv } -func (s_ SpotColorWrapper) HasSetReplacementColor3() bool { - return s_.RespondsToSelector(objc.Sel("setReplacementColor3:")) +func (s_ SpotColorObject) HasSetContrast3() bool { + return s_.RespondsToSelector(objc.Sel("setContrast3:")) } -// A replacement color for the third color range. [Full Topic] +// The contrast of the third replacement color. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/cispotcolor/3228740-replacementcolor3?language=objc -func (s_ SpotColorWrapper) SetReplacementColor3(value IColor) { - objc.Call[objc.Void](s_, objc.Sel("setReplacementColor3:"), objc.Ptr(value)) +// [Full Topic]: https://developer.apple.com/documentation/coreimage/cispotcolor/3228736-contrast3?language=objc +func (s_ SpotColorObject) SetContrast3(value float64) { + objc.Call[objc.Void](s_, objc.Sel("setContrast3:"), value) } -func (s_ SpotColorWrapper) HasReplacementColor3() bool { - return s_.RespondsToSelector(objc.Sel("replacementColor3")) +func (s_ SpotColorObject) HasContrast3() bool { + return s_.RespondsToSelector(objc.Sel("contrast3")) } -// A replacement color for the third color range. [Full Topic] +// The contrast of the third replacement color. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/cispotcolor/3228740-replacementcolor3?language=objc -func (s_ SpotColorWrapper) ReplacementColor3() Color { - rv := objc.Call[Color](s_, objc.Sel("replacementColor3")) +// [Full Topic]: https://developer.apple.com/documentation/coreimage/cispotcolor/3228736-contrast3?language=objc +func (s_ SpotColorObject) Contrast3() float64 { + rv := objc.Call[float64](s_, objc.Sel("contrast3")) return rv } -func (s_ SpotColorWrapper) HasSetCloseness3() bool { - return s_.RespondsToSelector(objc.Sel("setCloseness3:")) +func (s_ SpotColorObject) HasSetCloseness2() bool { + return s_.RespondsToSelector(objc.Sel("setCloseness2:")) } -// A value that indicates how closely the third color must match before it’s replaced. [Full Topic] +// 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/3228733-closeness3?language=objc -func (s_ SpotColorWrapper) SetCloseness3(value float64) { - objc.Call[objc.Void](s_, objc.Sel("setCloseness3:"), value) +// [Full Topic]: https://developer.apple.com/documentation/coreimage/cispotcolor/3228732-closeness2?language=objc +func (s_ SpotColorObject) SetCloseness2(value float64) { + objc.Call[objc.Void](s_, objc.Sel("setCloseness2:"), value) } -func (s_ SpotColorWrapper) HasCloseness3() bool { - return s_.RespondsToSelector(objc.Sel("closeness3")) +func (s_ SpotColorObject) HasCloseness2() bool { + return s_.RespondsToSelector(objc.Sel("closeness2")) } -// A value that indicates how closely the third color must match before it’s replaced. [Full Topic] +// 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/3228733-closeness3?language=objc -func (s_ SpotColorWrapper) Closeness3() float64 { - rv := objc.Call[float64](s_, objc.Sel("closeness3")) +// [Full Topic]: https://developer.apple.com/documentation/coreimage/cispotcolor/3228732-closeness2?language=objc +func (s_ SpotColorObject) Closeness2() float64 { + rv := objc.Call[float64](s_, objc.Sel("closeness2")) return rv } -func (s_ SpotColorWrapper) 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_ SpotColorWrapper) SetCloseness1(value float64) { - 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:"), objc.Ptr(value)) } -func (s_ SpotColorWrapper) 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_ SpotColorWrapper) Closeness1() float64 { - rv := objc.Call[float64](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_ SpotColorWrapper) HasSetReplacementColor1() bool { +func (s_ SpotColorObject) HasSetReplacementColor1() bool { return s_.RespondsToSelector(objc.Sel("setReplacementColor1:")) } // A replacement color for the first color range. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/coreimage/cispotcolor/3228738-replacementcolor1?language=objc -func (s_ SpotColorWrapper) SetReplacementColor1(value IColor) { +func (s_ SpotColorObject) SetReplacementColor1(value Color) { objc.Call[objc.Void](s_, objc.Sel("setReplacementColor1:"), objc.Ptr(value)) } -func (s_ SpotColorWrapper) HasReplacementColor1() bool { +func (s_ SpotColorObject) HasReplacementColor1() bool { return s_.RespondsToSelector(objc.Sel("replacementColor1")) } // A replacement color for the first color range. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/coreimage/cispotcolor/3228738-replacementcolor1?language=objc -func (s_ SpotColorWrapper) ReplacementColor1() Color { +func (s_ SpotColorObject) ReplacementColor1() Color { rv := objc.Call[Color](s_, objc.Sel("replacementColor1")) return rv } -func (s_ SpotColorWrapper) HasSetCenterColor1() bool { - return s_.RespondsToSelector(objc.Sel("setCenterColor1:")) +func (s_ SpotColorObject) HasSetInputImage() bool { + return s_.RespondsToSelector(objc.Sel("setInputImage:")) } -// The center value of the first color range to replace. [Full Topic] +// The image to use as an input image. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/cispotcolor/3228728-centercolor1?language=objc -func (s_ SpotColorWrapper) SetCenterColor1(value IColor) { - objc.Call[objc.Void](s_, objc.Sel("setCenterColor1:"), objc.Ptr(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:"), objc.Ptr(value)) } -func (s_ SpotColorWrapper) HasCenterColor1() bool { - return s_.RespondsToSelector(objc.Sel("centerColor1")) +func (s_ SpotColorObject) HasInputImage() bool { + return s_.RespondsToSelector(objc.Sel("inputImage")) } -// The center value of the first color range to replace. [Full Topic] +// The image to use as an input image. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/cispotcolor/3228728-centercolor1?language=objc -func (s_ SpotColorWrapper) CenterColor1() Color { - rv := objc.Call[Color](s_, objc.Sel("centerColor1")) +// [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 } -func (s_ SpotColorWrapper) HasSetContrast1() bool { +func (s_ SpotColorObject) HasSetContrast1() bool { return s_.RespondsToSelector(objc.Sel("setContrast1:")) } // The contrast of the first replacement color. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/coreimage/cispotcolor/3228734-contrast1?language=objc -func (s_ SpotColorWrapper) SetContrast1(value float64) { +func (s_ SpotColorObject) SetContrast1(value float64) { objc.Call[objc.Void](s_, objc.Sel("setContrast1:"), value) } -func (s_ SpotColorWrapper) HasContrast1() bool { +func (s_ SpotColorObject) HasContrast1() bool { return s_.RespondsToSelector(objc.Sel("contrast1")) } // The contrast of the first replacement color. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/coreimage/cispotcolor/3228734-contrast1?language=objc -func (s_ SpotColorWrapper) Contrast1() float64 { +func (s_ SpotColorObject) Contrast1() float64 { rv := objc.Call[float64](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:"), objc.Ptr(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.gen.go b/macos/coreimage/spot_light_protocol.gen.go similarity index 74% rename from macos/coreimage/spot_light.gen.go rename to macos/coreimage/spot_light_protocol.gen.go index 46e7f339..d1fc88ea 100644 --- a/macos/coreimage/spot_light.gen.go +++ b/macos/coreimage/spot_light_protocol.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package coreimage @@ -11,28 +11,28 @@ import ( // [Full Topic]: https://developer.apple.com/documentation/coreimage/cispotlight?language=objc type PSpotLight interface { // optional - SetColor(value Color) - HasSetColor() bool + SetBrightness(value float64) + HasSetBrightness() bool // optional - Color() IColor - HasColor() bool + Brightness() float64 + HasBrightness() bool // optional - SetInputImage(value Image) - HasSetInputImage() bool + SetColor(value Color) + HasSetColor() bool // optional - InputImage() IImage - HasInputImage() bool + Color() Color + HasColor() bool // optional - SetLightPointsAt(value Vector) - HasSetLightPointsAt() bool + SetLightPosition(value Vector) + HasSetLightPosition() bool // optional - LightPointsAt() IVector - HasLightPointsAt() bool + LightPosition() Vector + HasLightPosition() bool // optional SetConcentration(value float64) @@ -43,161 +43,164 @@ type PSpotLight interface { HasConcentration() bool // optional - SetLightPosition(value Vector) - HasSetLightPosition() bool + SetLightPointsAt(value Vector) + HasSetLightPointsAt() bool // optional - LightPosition() IVector - HasLightPosition() bool + LightPointsAt() Vector + HasLightPointsAt() bool // optional - SetBrightness(value float64) - HasSetBrightness() bool + SetInputImage(value Image) + HasSetInputImage() bool // optional - Brightness() float64 - HasBrightness() bool + InputImage() Image + HasInputImage() bool } -// A concrete type wrapper for the [PSpotLight] protocol. -type SpotLightWrapper struct { +// ensure impl type implements protocol interface +var _ PSpotLight = (*SpotLightObject)(nil) + +// A concrete type for the [PSpotLight] protocol. +type SpotLightObject struct { objc.Object } -func (s_ SpotLightWrapper) HasSetColor() bool { - return s_.RespondsToSelector(objc.Sel("setColor:")) +func (s_ SpotLightObject) HasSetBrightness() bool { + return s_.RespondsToSelector(objc.Sel("setBrightness:")) } -// The color of the spotlight. [Full Topic] +// The brightness of the spotlight. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/cispotlight/3228743-color?language=objc -func (s_ SpotLightWrapper) SetColor(value IColor) { - objc.Call[objc.Void](s_, objc.Sel("setColor:"), objc.Ptr(value)) +// [Full Topic]: https://developer.apple.com/documentation/coreimage/cispotlight/3228742-brightness?language=objc +func (s_ SpotLightObject) SetBrightness(value float64) { + objc.Call[objc.Void](s_, objc.Sel("setBrightness:"), value) } -func (s_ SpotLightWrapper) HasColor() bool { - return s_.RespondsToSelector(objc.Sel("color")) +func (s_ SpotLightObject) HasBrightness() bool { + return s_.RespondsToSelector(objc.Sel("brightness")) } -// The color of the spotlight. [Full Topic] +// The brightness of the spotlight. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/cispotlight/3228743-color?language=objc -func (s_ SpotLightWrapper) Color() Color { - rv := objc.Call[Color](s_, objc.Sel("color")) +// [Full Topic]: https://developer.apple.com/documentation/coreimage/cispotlight/3228742-brightness?language=objc +func (s_ SpotLightObject) Brightness() float64 { + rv := objc.Call[float64](s_, objc.Sel("brightness")) return rv } -func (s_ SpotLightWrapper) HasSetInputImage() bool { - return s_.RespondsToSelector(objc.Sel("setInputImage:")) +func (s_ SpotLightObject) HasSetColor() bool { + return s_.RespondsToSelector(objc.Sel("setColor:")) } -// The image to use as an input image. [Full Topic] +// The color of the spotlight. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/cispotlight/3228745-inputimage?language=objc -func (s_ SpotLightWrapper) SetInputImage(value IImage) { - objc.Call[objc.Void](s_, objc.Sel("setInputImage:"), objc.Ptr(value)) +// [Full Topic]: https://developer.apple.com/documentation/coreimage/cispotlight/3228743-color?language=objc +func (s_ SpotLightObject) SetColor(value Color) { + objc.Call[objc.Void](s_, objc.Sel("setColor:"), objc.Ptr(value)) } -func (s_ SpotLightWrapper) HasInputImage() bool { - return s_.RespondsToSelector(objc.Sel("inputImage")) +func (s_ SpotLightObject) HasColor() bool { + return s_.RespondsToSelector(objc.Sel("color")) } -// The image to use as an input image. [Full Topic] +// The color of the spotlight. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/cispotlight/3228745-inputimage?language=objc -func (s_ SpotLightWrapper) InputImage() Image { - rv := objc.Call[Image](s_, objc.Sel("inputImage")) +// [Full Topic]: https://developer.apple.com/documentation/coreimage/cispotlight/3228743-color?language=objc +func (s_ SpotLightObject) Color() Color { + rv := objc.Call[Color](s_, objc.Sel("color")) return rv } -func (s_ SpotLightWrapper) 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_ SpotLightWrapper) SetLightPointsAt(value IVector) { - objc.Call[objc.Void](s_, objc.Sel("setLightPointsAt:"), objc.Ptr(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:"), objc.Ptr(value)) } -func (s_ SpotLightWrapper) 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_ SpotLightWrapper) 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_ SpotLightWrapper) HasSetConcentration() bool { +func (s_ SpotLightObject) HasSetConcentration() bool { return s_.RespondsToSelector(objc.Sel("setConcentration:")) } // The size of the spotlight. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/coreimage/cispotlight/3228744-concentration?language=objc -func (s_ SpotLightWrapper) SetConcentration(value float64) { +func (s_ SpotLightObject) SetConcentration(value float64) { objc.Call[objc.Void](s_, objc.Sel("setConcentration:"), value) } -func (s_ SpotLightWrapper) HasConcentration() bool { +func (s_ SpotLightObject) HasConcentration() bool { return s_.RespondsToSelector(objc.Sel("concentration")) } // The size of the spotlight. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/coreimage/cispotlight/3228744-concentration?language=objc -func (s_ SpotLightWrapper) Concentration() float64 { +func (s_ SpotLightObject) Concentration() float64 { rv := objc.Call[float64](s_, objc.Sel("concentration")) return rv } -func (s_ SpotLightWrapper) HasSetLightPosition() bool { - return s_.RespondsToSelector(objc.Sel("setLightPosition:")) +func (s_ SpotLightObject) HasSetLightPointsAt() bool { + return s_.RespondsToSelector(objc.Sel("setLightPointsAt:")) } -// The x and y position of the spotlight. [Full Topic] +// The x and y position that the spotlight points at. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/cispotlight/3228747-lightposition?language=objc -func (s_ SpotLightWrapper) SetLightPosition(value IVector) { - objc.Call[objc.Void](s_, objc.Sel("setLightPosition:"), objc.Ptr(value)) +// [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:"), objc.Ptr(value)) } -func (s_ SpotLightWrapper) HasLightPosition() bool { - return s_.RespondsToSelector(objc.Sel("lightPosition")) +func (s_ SpotLightObject) HasLightPointsAt() bool { + return s_.RespondsToSelector(objc.Sel("lightPointsAt")) } -// The x and y position of the spotlight. [Full Topic] +// The x and y position that the spotlight points at. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/cispotlight/3228747-lightposition?language=objc -func (s_ SpotLightWrapper) LightPosition() Vector { - rv := objc.Call[Vector](s_, objc.Sel("lightPosition")) +// [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 } -func (s_ SpotLightWrapper) HasSetBrightness() bool { - return s_.RespondsToSelector(objc.Sel("setBrightness:")) +func (s_ SpotLightObject) HasSetInputImage() bool { + return s_.RespondsToSelector(objc.Sel("setInputImage:")) } -// The brightness of the spotlight. [Full Topic] +// The image to use as an input image. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/cispotlight/3228742-brightness?language=objc -func (s_ SpotLightWrapper) SetBrightness(value float64) { - objc.Call[objc.Void](s_, objc.Sel("setBrightness:"), 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:"), objc.Ptr(value)) } -func (s_ SpotLightWrapper) HasBrightness() bool { - return s_.RespondsToSelector(objc.Sel("brightness")) +func (s_ SpotLightObject) HasInputImage() bool { + return s_.RespondsToSelector(objc.Sel("inputImage")) } -// The brightness of the spotlight. [Full Topic] +// The image to use as an input image. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/cispotlight/3228742-brightness?language=objc -func (s_ SpotLightWrapper) Brightness() float64 { - rv := objc.Call[float64](s_, objc.Sel("brightness")) +// [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 } diff --git a/macos/coreimage/srgb_tone_curve_to_linear.gen.go b/macos/coreimage/srgb_tone_curve_to_linear_protocol.gen.go similarity index 65% rename from macos/coreimage/srgb_tone_curve_to_linear.gen.go rename to macos/coreimage/srgb_tone_curve_to_linear_protocol.gen.go index b20ae8c8..415e178f 100644 --- a/macos/coreimage/srgb_tone_curve_to_linear.gen.go +++ b/macos/coreimage/srgb_tone_curve_to_linear_protocol.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package coreimage @@ -15,34 +15,37 @@ type PSRGBToneCurveToLinear interface { HasSetInputImage() bool // optional - InputImage() IImage + InputImage() Image HasInputImage() bool } -// A concrete type wrapper for the [PSRGBToneCurveToLinear] protocol. -type SRGBToneCurveToLinearWrapper struct { +// ensure impl type implements protocol interface +var _ PSRGBToneCurveToLinear = (*SRGBToneCurveToLinearObject)(nil) + +// A concrete type for the [PSRGBToneCurveToLinear] protocol. +type SRGBToneCurveToLinearObject struct { objc.Object } -func (s_ SRGBToneCurveToLinearWrapper) HasSetInputImage() bool { +func (s_ SRGBToneCurveToLinearObject) HasSetInputImage() bool { return s_.RespondsToSelector(objc.Sel("setInputImage:")) } // The image to use as an input image. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/coreimage/cisrgbtonecurvetolinear/3228698-inputimage?language=objc -func (s_ SRGBToneCurveToLinearWrapper) SetInputImage(value IImage) { +func (s_ SRGBToneCurveToLinearObject) SetInputImage(value Image) { objc.Call[objc.Void](s_, objc.Sel("setInputImage:"), objc.Ptr(value)) } -func (s_ SRGBToneCurveToLinearWrapper) HasInputImage() bool { +func (s_ SRGBToneCurveToLinearObject) HasInputImage() bool { return s_.RespondsToSelector(objc.Sel("inputImage")) } // The image to use as an input image. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/coreimage/cisrgbtonecurvetolinear/3228698-inputimage?language=objc -func (s_ SRGBToneCurveToLinearWrapper) InputImage() Image { +func (s_ SRGBToneCurveToLinearObject) InputImage() Image { rv := objc.Call[Image](s_, objc.Sel("inputImage")) return rv } diff --git a/macos/coreimage/star_shine_generator.gen.go b/macos/coreimage/star_shine_generator_protocol.gen.go similarity index 73% rename from macos/coreimage/star_shine_generator.gen.go rename to macos/coreimage/star_shine_generator_protocol.gen.go index 4cf4844a..c8e80c6d 100644 --- a/macos/coreimage/star_shine_generator.gen.go +++ b/macos/coreimage/star_shine_generator_protocol.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package coreimage @@ -12,20 +12,20 @@ import ( // [Full Topic]: https://developer.apple.com/documentation/coreimage/cistarshinegenerator?language=objc type PStarShineGenerator interface { // optional - SetCrossOpacity(value float64) - HasSetCrossOpacity() bool + SetColor(value Color) + HasSetColor() bool // optional - CrossOpacity() float64 - HasCrossOpacity() bool + Color() Color + HasColor() bool // optional - SetColor(value Color) - HasSetColor() bool + SetCrossScale(value float64) + HasSetCrossScale() bool // optional - Color() IColor - HasColor() bool + CrossScale() float64 + HasCrossScale() bool // optional SetCrossAngle(value float64) @@ -36,12 +36,12 @@ type PStarShineGenerator interface { HasCrossAngle() bool // optional - SetEpsilon(value float64) - HasSetEpsilon() bool + SetCrossWidth(value float64) + HasSetCrossWidth() bool // optional - Epsilon() float64 - HasEpsilon() bool + CrossWidth() float64 + HasCrossWidth() bool // optional SetRadius(value float64) @@ -52,215 +52,218 @@ type PStarShineGenerator interface { HasRadius() bool // optional - SetCrossScale(value float64) - HasSetCrossScale() bool + SetCenter(value coregraphics.Point) + HasSetCenter() bool // optional - CrossScale() float64 - HasCrossScale() bool + Center() coregraphics.Point + HasCenter() bool // optional - SetCrossWidth(value float64) - HasSetCrossWidth() bool + SetEpsilon(value float64) + HasSetEpsilon() bool // optional - CrossWidth() float64 - HasCrossWidth() bool + Epsilon() float64 + HasEpsilon() bool // optional - SetCenter(value coregraphics.Point) - HasSetCenter() bool + SetCrossOpacity(value float64) + HasSetCrossOpacity() bool // optional - Center() coregraphics.Point - HasCenter() bool + CrossOpacity() float64 + HasCrossOpacity() bool } -// A concrete type wrapper for the [PStarShineGenerator] protocol. -type StarShineGeneratorWrapper struct { +// ensure impl type implements protocol interface +var _ PStarShineGenerator = (*StarShineGeneratorObject)(nil) + +// A concrete type for the [PStarShineGenerator] protocol. +type StarShineGeneratorObject struct { objc.Object } -func (s_ StarShineGeneratorWrapper) HasSetCrossOpacity() bool { - return s_.RespondsToSelector(objc.Sel("setCrossOpacity:")) +func (s_ StarShineGeneratorObject) HasSetColor() bool { + return s_.RespondsToSelector(objc.Sel("setColor:")) } -// The opacity of the cross pattern. [Full Topic] +// The color to use for the outer shell of the circular star. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/cistarshinegenerator/3228752-crossopacity?language=objc -func (s_ StarShineGeneratorWrapper) SetCrossOpacity(value float64) { - objc.Call[objc.Void](s_, objc.Sel("setCrossOpacity:"), value) +// [Full Topic]: https://developer.apple.com/documentation/coreimage/cistarshinegenerator/3228750-color?language=objc +func (s_ StarShineGeneratorObject) SetColor(value Color) { + objc.Call[objc.Void](s_, objc.Sel("setColor:"), objc.Ptr(value)) } -func (s_ StarShineGeneratorWrapper) HasCrossOpacity() bool { - return s_.RespondsToSelector(objc.Sel("crossOpacity")) +func (s_ StarShineGeneratorObject) HasColor() bool { + return s_.RespondsToSelector(objc.Sel("color")) } -// The opacity of the cross pattern. [Full Topic] +// The color to use for the outer shell of the circular star. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/cistarshinegenerator/3228752-crossopacity?language=objc -func (s_ StarShineGeneratorWrapper) CrossOpacity() float64 { - rv := objc.Call[float64](s_, objc.Sel("crossOpacity")) +// [Full Topic]: https://developer.apple.com/documentation/coreimage/cistarshinegenerator/3228750-color?language=objc +func (s_ StarShineGeneratorObject) Color() Color { + rv := objc.Call[Color](s_, objc.Sel("color")) return rv } -func (s_ StarShineGeneratorWrapper) HasSetColor() bool { - return s_.RespondsToSelector(objc.Sel("setColor:")) +func (s_ StarShineGeneratorObject) HasSetCrossScale() bool { + return s_.RespondsToSelector(objc.Sel("setCrossScale:")) } -// The color to use for the outer shell of the circular star. [Full Topic] +// The size of the cross pattern. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/cistarshinegenerator/3228750-color?language=objc -func (s_ StarShineGeneratorWrapper) SetColor(value IColor) { - objc.Call[objc.Void](s_, objc.Sel("setColor:"), objc.Ptr(value)) +// [Full Topic]: https://developer.apple.com/documentation/coreimage/cistarshinegenerator/3228753-crossscale?language=objc +func (s_ StarShineGeneratorObject) SetCrossScale(value float64) { + objc.Call[objc.Void](s_, objc.Sel("setCrossScale:"), value) } -func (s_ StarShineGeneratorWrapper) HasColor() bool { - return s_.RespondsToSelector(objc.Sel("color")) +func (s_ StarShineGeneratorObject) HasCrossScale() bool { + return s_.RespondsToSelector(objc.Sel("crossScale")) } -// The color to use for the outer shell of the circular star. [Full Topic] +// The size of the cross pattern. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/cistarshinegenerator/3228750-color?language=objc -func (s_ StarShineGeneratorWrapper) Color() Color { - rv := objc.Call[Color](s_, objc.Sel("color")) +// [Full Topic]: https://developer.apple.com/documentation/coreimage/cistarshinegenerator/3228753-crossscale?language=objc +func (s_ StarShineGeneratorObject) CrossScale() float64 { + rv := objc.Call[float64](s_, objc.Sel("crossScale")) return rv } -func (s_ StarShineGeneratorWrapper) HasSetCrossAngle() bool { +func (s_ StarShineGeneratorObject) HasSetCrossAngle() bool { return s_.RespondsToSelector(objc.Sel("setCrossAngle:")) } // The angle of the cross pattern. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/coreimage/cistarshinegenerator/3228751-crossangle?language=objc -func (s_ StarShineGeneratorWrapper) SetCrossAngle(value float64) { +func (s_ StarShineGeneratorObject) SetCrossAngle(value float64) { objc.Call[objc.Void](s_, objc.Sel("setCrossAngle:"), value) } -func (s_ StarShineGeneratorWrapper) HasCrossAngle() bool { +func (s_ StarShineGeneratorObject) HasCrossAngle() bool { return s_.RespondsToSelector(objc.Sel("crossAngle")) } // The angle of the cross pattern. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/coreimage/cistarshinegenerator/3228751-crossangle?language=objc -func (s_ StarShineGeneratorWrapper) CrossAngle() float64 { +func (s_ StarShineGeneratorObject) CrossAngle() float64 { rv := objc.Call[float64](s_, objc.Sel("crossAngle")) return rv } -func (s_ StarShineGeneratorWrapper) 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_ StarShineGeneratorWrapper) SetEpsilon(value float64) { - 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 float64) { + objc.Call[objc.Void](s_, objc.Sel("setCrossWidth:"), value) } -func (s_ StarShineGeneratorWrapper) 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_ StarShineGeneratorWrapper) Epsilon() float64 { - rv := objc.Call[float64](s_, objc.Sel("epsilon")) +// [Full Topic]: https://developer.apple.com/documentation/coreimage/cistarshinegenerator/3228754-crosswidth?language=objc +func (s_ StarShineGeneratorObject) CrossWidth() float64 { + rv := objc.Call[float64](s_, objc.Sel("crossWidth")) return rv } -func (s_ StarShineGeneratorWrapper) HasSetRadius() bool { +func (s_ StarShineGeneratorObject) HasSetRadius() bool { return s_.RespondsToSelector(objc.Sel("setRadius:")) } // The radius of the star. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/coreimage/cistarshinegenerator/3228756-radius?language=objc -func (s_ StarShineGeneratorWrapper) SetRadius(value float64) { +func (s_ StarShineGeneratorObject) SetRadius(value float64) { objc.Call[objc.Void](s_, objc.Sel("setRadius:"), value) } -func (s_ StarShineGeneratorWrapper) HasRadius() bool { +func (s_ StarShineGeneratorObject) HasRadius() bool { return s_.RespondsToSelector(objc.Sel("radius")) } // The radius of the star. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/coreimage/cistarshinegenerator/3228756-radius?language=objc -func (s_ StarShineGeneratorWrapper) Radius() float64 { +func (s_ StarShineGeneratorObject) Radius() float64 { rv := objc.Call[float64](s_, objc.Sel("radius")) return rv } -func (s_ StarShineGeneratorWrapper) HasSetCrossScale() bool { - return s_.RespondsToSelector(objc.Sel("setCrossScale:")) +func (s_ StarShineGeneratorObject) HasSetCenter() bool { + return s_.RespondsToSelector(objc.Sel("setCenter:")) } -// The size 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/3228753-crossscale?language=objc -func (s_ StarShineGeneratorWrapper) SetCrossScale(value float64) { - objc.Call[objc.Void](s_, objc.Sel("setCrossScale:"), 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_ StarShineGeneratorWrapper) HasCrossScale() bool { - return s_.RespondsToSelector(objc.Sel("crossScale")) +func (s_ StarShineGeneratorObject) HasCenter() bool { + return s_.RespondsToSelector(objc.Sel("center")) } -// The size 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/3228753-crossscale?language=objc -func (s_ StarShineGeneratorWrapper) CrossScale() float64 { - rv := objc.Call[float64](s_, objc.Sel("crossScale")) +// [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 } -func (s_ StarShineGeneratorWrapper) 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_ StarShineGeneratorWrapper) SetCrossWidth(value float64) { - 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 float64) { + objc.Call[objc.Void](s_, objc.Sel("setEpsilon:"), value) } -func (s_ StarShineGeneratorWrapper) 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_ StarShineGeneratorWrapper) CrossWidth() float64 { - rv := objc.Call[float64](s_, objc.Sel("crossWidth")) +// [Full Topic]: https://developer.apple.com/documentation/coreimage/cistarshinegenerator/3228755-epsilon?language=objc +func (s_ StarShineGeneratorObject) Epsilon() float64 { + rv := objc.Call[float64](s_, objc.Sel("epsilon")) return rv } -func (s_ StarShineGeneratorWrapper) HasSetCenter() bool { - return s_.RespondsToSelector(objc.Sel("setCenter:")) +func (s_ StarShineGeneratorObject) HasSetCrossOpacity() bool { + return s_.RespondsToSelector(objc.Sel("setCrossOpacity:")) } -// The x and y position to use as the center of the star. [Full Topic] +// The opacity of the cross pattern. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/cistarshinegenerator/3228749-center?language=objc -func (s_ StarShineGeneratorWrapper) SetCenter(value coregraphics.Point) { - objc.Call[objc.Void](s_, objc.Sel("setCenter:"), value) +// [Full Topic]: https://developer.apple.com/documentation/coreimage/cistarshinegenerator/3228752-crossopacity?language=objc +func (s_ StarShineGeneratorObject) SetCrossOpacity(value float64) { + objc.Call[objc.Void](s_, objc.Sel("setCrossOpacity:"), value) } -func (s_ StarShineGeneratorWrapper) HasCenter() bool { - return s_.RespondsToSelector(objc.Sel("center")) +func (s_ StarShineGeneratorObject) HasCrossOpacity() bool { + return s_.RespondsToSelector(objc.Sel("crossOpacity")) } -// The x and y position to use as the center of the star. [Full Topic] +// The opacity of the cross pattern. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/cistarshinegenerator/3228749-center?language=objc -func (s_ StarShineGeneratorWrapper) Center() coregraphics.Point { - rv := objc.Call[coregraphics.Point](s_, objc.Sel("center")) +// [Full Topic]: https://developer.apple.com/documentation/coreimage/cistarshinegenerator/3228752-crossopacity?language=objc +func (s_ StarShineGeneratorObject) CrossOpacity() float64 { + rv := objc.Call[float64](s_, objc.Sel("crossOpacity")) return rv } diff --git a/macos/coreimage/straighten.gen.go b/macos/coreimage/straighten_protocol.gen.go similarity index 71% rename from macos/coreimage/straighten.gen.go rename to macos/coreimage/straighten_protocol.gen.go index cffa26cf..c5ba9cff 100644 --- a/macos/coreimage/straighten.gen.go +++ b/macos/coreimage/straighten_protocol.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package coreimage @@ -15,7 +15,7 @@ type PStraighten interface { HasSetInputImage() bool // optional - InputImage() IImage + InputImage() Image HasInputImage() bool // optional @@ -27,53 +27,56 @@ type PStraighten interface { HasAngle() bool } -// A concrete type wrapper for the [PStraighten] protocol. -type StraightenWrapper struct { +// ensure impl type implements protocol interface +var _ PStraighten = (*StraightenObject)(nil) + +// A concrete type for the [PStraighten] protocol. +type StraightenObject struct { objc.Object } -func (s_ StraightenWrapper) HasSetInputImage() bool { +func (s_ StraightenObject) HasSetInputImage() bool { return s_.RespondsToSelector(objc.Sel("setInputImage:")) } // The image to use as an input image. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/coreimage/cistraighten/3228759-inputimage?language=objc -func (s_ StraightenWrapper) SetInputImage(value IImage) { +func (s_ StraightenObject) SetInputImage(value Image) { objc.Call[objc.Void](s_, objc.Sel("setInputImage:"), objc.Ptr(value)) } -func (s_ StraightenWrapper) HasInputImage() bool { +func (s_ StraightenObject) HasInputImage() bool { return s_.RespondsToSelector(objc.Sel("inputImage")) } // The image to use as an input image. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/coreimage/cistraighten/3228759-inputimage?language=objc -func (s_ StraightenWrapper) InputImage() Image { +func (s_ StraightenObject) InputImage() Image { rv := objc.Call[Image](s_, objc.Sel("inputImage")) return rv } -func (s_ StraightenWrapper) HasSetAngle() bool { +func (s_ StraightenObject) HasSetAngle() bool { return s_.RespondsToSelector(objc.Sel("setAngle:")) } // The rotation angle, in radians. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/coreimage/cistraighten/3228758-angle?language=objc -func (s_ StraightenWrapper) SetAngle(value float64) { +func (s_ StraightenObject) SetAngle(value float64) { objc.Call[objc.Void](s_, objc.Sel("setAngle:"), value) } -func (s_ StraightenWrapper) HasAngle() bool { +func (s_ StraightenObject) HasAngle() bool { return s_.RespondsToSelector(objc.Sel("angle")) } // The rotation angle, in radians. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/coreimage/cistraighten/3228758-angle?language=objc -func (s_ StraightenWrapper) Angle() float64 { +func (s_ StraightenObject) Angle() float64 { rv := objc.Call[float64](s_, objc.Sel("angle")) return rv } diff --git a/macos/coreimage/stretch_crop.gen.go b/macos/coreimage/stretch_crop_protocol.gen.go similarity index 71% rename from macos/coreimage/stretch_crop.gen.go rename to macos/coreimage/stretch_crop_protocol.gen.go index 4e6a5efa..2187cf45 100644 --- a/macos/coreimage/stretch_crop.gen.go +++ b/macos/coreimage/stretch_crop_protocol.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package coreimage @@ -12,12 +12,12 @@ import ( // [Full Topic]: https://developer.apple.com/documentation/coreimage/cistretchcrop?language=objc type PStretchCrop interface { // optional - SetInputImage(value Image) - HasSetInputImage() bool + SetSize(value coregraphics.Point) + HasSetSize() bool // optional - InputImage() IImage - HasInputImage() bool + Size() coregraphics.Point + HasSize() bool // optional SetCropAmount(value float64) @@ -28,115 +28,118 @@ type PStretchCrop interface { HasCropAmount() bool // optional - SetCenterStretchAmount(value float64) - HasSetCenterStretchAmount() bool + SetInputImage(value Image) + HasSetInputImage() bool // optional - CenterStretchAmount() float64 - HasCenterStretchAmount() bool + InputImage() Image + HasInputImage() bool // optional - SetSize(value coregraphics.Point) - HasSetSize() bool + SetCenterStretchAmount(value float64) + HasSetCenterStretchAmount() bool // optional - Size() coregraphics.Point - HasSize() bool + CenterStretchAmount() float64 + HasCenterStretchAmount() bool } -// A concrete type wrapper for the [PStretchCrop] protocol. -type StretchCropWrapper struct { +// ensure impl type implements protocol interface +var _ PStretchCrop = (*StretchCropObject)(nil) + +// A concrete type for the [PStretchCrop] protocol. +type StretchCropObject struct { objc.Object } -func (s_ StretchCropWrapper) HasSetInputImage() bool { - return s_.RespondsToSelector(objc.Sel("setInputImage:")) +func (s_ StretchCropObject) HasSetSize() bool { + return s_.RespondsToSelector(objc.Sel("setSize:")) } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/cistretchcrop/3600194-inputimage?language=objc -func (s_ StretchCropWrapper) SetInputImage(value IImage) { - objc.Call[objc.Void](s_, objc.Sel("setInputImage:"), objc.Ptr(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_ StretchCropWrapper) HasInputImage() bool { - return s_.RespondsToSelector(objc.Sel("inputImage")) +func (s_ StretchCropObject) HasSize() bool { + return s_.RespondsToSelector(objc.Sel("size")) } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/cistretchcrop/3600194-inputimage?language=objc -func (s_ StretchCropWrapper) InputImage() Image { - rv := objc.Call[Image](s_, objc.Sel("inputImage")) +// [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 } -func (s_ StretchCropWrapper) HasSetCropAmount() bool { +func (s_ StretchCropObject) HasSetCropAmount() bool { return s_.RespondsToSelector(objc.Sel("setCropAmount:")) } // [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/coreimage/cistretchcrop/3600193-cropamount?language=objc -func (s_ StretchCropWrapper) SetCropAmount(value float64) { +func (s_ StretchCropObject) SetCropAmount(value float64) { objc.Call[objc.Void](s_, objc.Sel("setCropAmount:"), value) } -func (s_ StretchCropWrapper) HasCropAmount() bool { +func (s_ StretchCropObject) HasCropAmount() bool { return s_.RespondsToSelector(objc.Sel("cropAmount")) } // [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/coreimage/cistretchcrop/3600193-cropamount?language=objc -func (s_ StretchCropWrapper) CropAmount() float64 { +func (s_ StretchCropObject) CropAmount() float64 { rv := objc.Call[float64](s_, objc.Sel("cropAmount")) return rv } -func (s_ StretchCropWrapper) HasSetCenterStretchAmount() bool { - return s_.RespondsToSelector(objc.Sel("setCenterStretchAmount:")) +func (s_ StretchCropObject) HasSetInputImage() bool { + return s_.RespondsToSelector(objc.Sel("setInputImage:")) } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/cistretchcrop/3600192-centerstretchamount?language=objc -func (s_ StretchCropWrapper) SetCenterStretchAmount(value float64) { - objc.Call[objc.Void](s_, objc.Sel("setCenterStretchAmount:"), 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:"), objc.Ptr(value)) } -func (s_ StretchCropWrapper) HasCenterStretchAmount() bool { - return s_.RespondsToSelector(objc.Sel("centerStretchAmount")) +func (s_ StretchCropObject) HasInputImage() bool { + return s_.RespondsToSelector(objc.Sel("inputImage")) } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/cistretchcrop/3600192-centerstretchamount?language=objc -func (s_ StretchCropWrapper) CenterStretchAmount() float64 { - rv := objc.Call[float64](s_, objc.Sel("centerStretchAmount")) +// [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 } -func (s_ StretchCropWrapper) HasSetSize() bool { - return s_.RespondsToSelector(objc.Sel("setSize:")) +func (s_ StretchCropObject) HasSetCenterStretchAmount() bool { + return s_.RespondsToSelector(objc.Sel("setCenterStretchAmount:")) } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/cistretchcrop/3600195-size?language=objc -func (s_ StretchCropWrapper) SetSize(value coregraphics.Point) { - objc.Call[objc.Void](s_, objc.Sel("setSize:"), value) +// [Full Topic]: https://developer.apple.com/documentation/coreimage/cistretchcrop/3600192-centerstretchamount?language=objc +func (s_ StretchCropObject) SetCenterStretchAmount(value float64) { + objc.Call[objc.Void](s_, objc.Sel("setCenterStretchAmount:"), value) } -func (s_ StretchCropWrapper) HasSize() bool { - return s_.RespondsToSelector(objc.Sel("size")) +func (s_ StretchCropObject) HasCenterStretchAmount() bool { + return s_.RespondsToSelector(objc.Sel("centerStretchAmount")) } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/cistretchcrop/3600195-size?language=objc -func (s_ StretchCropWrapper) Size() coregraphics.Point { - rv := objc.Call[coregraphics.Point](s_, objc.Sel("size")) +// [Full Topic]: https://developer.apple.com/documentation/coreimage/cistretchcrop/3600192-centerstretchamount?language=objc +func (s_ StretchCropObject) CenterStretchAmount() float64 { + rv := objc.Call[float64](s_, objc.Sel("centerStretchAmount")) return rv } diff --git a/macos/coreimage/stripes_generator.gen.go b/macos/coreimage/stripes_generator_protocol.gen.go similarity index 73% rename from macos/coreimage/stripes_generator.gen.go rename to macos/coreimage/stripes_generator_protocol.gen.go index dc69904f..25c531e0 100644 --- a/macos/coreimage/stripes_generator.gen.go +++ b/macos/coreimage/stripes_generator_protocol.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package coreimage @@ -11,6 +11,14 @@ 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 float64) HasSetWidth() bool @@ -20,154 +28,149 @@ type PStripesGenerator interface { HasWidth() bool // optional - SetSharpness(value float64) - HasSetSharpness() bool + SetCenter(value coregraphics.Point) + HasSetCenter() bool // optional - Sharpness() float64 - HasSharpness() bool + Center() coregraphics.Point + HasCenter() bool // optional - SetColor0(value Color) - HasSetColor0() bool + SetSharpness(value float64) + HasSetSharpness() bool // optional - Color0() IColor - HasColor0() bool + Sharpness() float64 + HasSharpness() bool // optional SetColor1(value Color) HasSetColor1() bool // optional - Color1() IColor + Color1() Color HasColor1() bool +} - // optional - SetCenter(value coregraphics.Point) - HasSetCenter() bool +// ensure impl type implements protocol interface +var _ PStripesGenerator = (*StripesGeneratorObject)(nil) - // optional - Center() coregraphics.Point - HasCenter() bool +// A concrete type for the [PStripesGenerator] protocol. +type StripesGeneratorObject struct { + objc.Object } -// A concrete type wrapper for the [PStripesGenerator] protocol. -type StripesGeneratorWrapper 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:"), objc.Ptr(value)) } -func (s_ StripesGeneratorWrapper) HasSetWidth() bool { +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:")) } // The width of a stripe. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/coreimage/cistripesgenerator/3228765-width?language=objc -func (s_ StripesGeneratorWrapper) SetWidth(value float64) { +func (s_ StripesGeneratorObject) SetWidth(value float64) { objc.Call[objc.Void](s_, objc.Sel("setWidth:"), value) } -func (s_ StripesGeneratorWrapper) HasWidth() bool { +func (s_ StripesGeneratorObject) HasWidth() bool { return s_.RespondsToSelector(objc.Sel("width")) } // The width of a stripe. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/coreimage/cistripesgenerator/3228765-width?language=objc -func (s_ StripesGeneratorWrapper) Width() float64 { +func (s_ StripesGeneratorObject) Width() float64 { rv := objc.Call[float64](s_, objc.Sel("width")) return rv } -func (s_ StripesGeneratorWrapper) HasSetSharpness() bool { - return s_.RespondsToSelector(objc.Sel("setSharpness:")) +func (s_ StripesGeneratorObject) HasSetCenter() bool { + return s_.RespondsToSelector(objc.Sel("setCenter:")) } -// The sharpness of the stripe pattern. [Full Topic] +// 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/3228764-sharpness?language=objc -func (s_ StripesGeneratorWrapper) SetSharpness(value float64) { - objc.Call[objc.Void](s_, objc.Sel("setSharpness:"), value) +// [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_ StripesGeneratorWrapper) HasSharpness() bool { - return s_.RespondsToSelector(objc.Sel("sharpness")) +func (s_ StripesGeneratorObject) HasCenter() bool { + return s_.RespondsToSelector(objc.Sel("center")) } -// The sharpness of the stripe pattern. [Full Topic] +// 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/3228764-sharpness?language=objc -func (s_ StripesGeneratorWrapper) Sharpness() float64 { - rv := objc.Call[float64](s_, objc.Sel("sharpness")) +// [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_ StripesGeneratorWrapper) HasSetColor0() bool { - return s_.RespondsToSelector(objc.Sel("setColor0:")) +func (s_ StripesGeneratorObject) HasSetSharpness() bool { + return s_.RespondsToSelector(objc.Sel("setSharpness:")) } -// A color to use for the odd stripes. [Full Topic] +// The sharpness of the stripe pattern. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/cistripesgenerator/3228762-color0?language=objc -func (s_ StripesGeneratorWrapper) SetColor0(value IColor) { - objc.Call[objc.Void](s_, objc.Sel("setColor0:"), objc.Ptr(value)) +// [Full Topic]: https://developer.apple.com/documentation/coreimage/cistripesgenerator/3228764-sharpness?language=objc +func (s_ StripesGeneratorObject) SetSharpness(value float64) { + objc.Call[objc.Void](s_, objc.Sel("setSharpness:"), value) } -func (s_ StripesGeneratorWrapper) HasColor0() bool { - return s_.RespondsToSelector(objc.Sel("color0")) +func (s_ StripesGeneratorObject) HasSharpness() bool { + return s_.RespondsToSelector(objc.Sel("sharpness")) } -// A color to use for the odd stripes. [Full Topic] +// The sharpness of the stripe pattern. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/cistripesgenerator/3228762-color0?language=objc -func (s_ StripesGeneratorWrapper) Color0() Color { - rv := objc.Call[Color](s_, objc.Sel("color0")) +// [Full Topic]: https://developer.apple.com/documentation/coreimage/cistripesgenerator/3228764-sharpness?language=objc +func (s_ StripesGeneratorObject) Sharpness() float64 { + rv := objc.Call[float64](s_, objc.Sel("sharpness")) return rv } -func (s_ StripesGeneratorWrapper) HasSetColor1() bool { +func (s_ StripesGeneratorObject) HasSetColor1() bool { return s_.RespondsToSelector(objc.Sel("setColor1:")) } // A color to use for the even stripes. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/coreimage/cistripesgenerator/3228763-color1?language=objc -func (s_ StripesGeneratorWrapper) SetColor1(value IColor) { +func (s_ StripesGeneratorObject) SetColor1(value Color) { objc.Call[objc.Void](s_, objc.Sel("setColor1:"), objc.Ptr(value)) } -func (s_ StripesGeneratorWrapper) HasColor1() bool { +func (s_ StripesGeneratorObject) HasColor1() bool { return s_.RespondsToSelector(objc.Sel("color1")) } // A color to use for the even stripes. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/coreimage/cistripesgenerator/3228763-color1?language=objc -func (s_ StripesGeneratorWrapper) Color1() Color { +func (s_ StripesGeneratorObject) Color1() Color { rv := objc.Call[Color](s_, objc.Sel("color1")) return rv } - -func (s_ StripesGeneratorWrapper) 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_ StripesGeneratorWrapper) SetCenter(value coregraphics.Point) { - objc.Call[objc.Void](s_, objc.Sel("setCenter:"), value) -} - -func (s_ StripesGeneratorWrapper) 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_ StripesGeneratorWrapper) Center() coregraphics.Point { - rv := objc.Call[coregraphics.Point](s_, objc.Sel("center")) - return rv -} diff --git a/macos/coreimage/sunbeams_generator.gen.go b/macos/coreimage/sunbeams_generator_protocol.gen.go similarity index 73% rename from macos/coreimage/sunbeams_generator.gen.go rename to macos/coreimage/sunbeams_generator_protocol.gen.go index 1ef5acd4..767ebf7a 100644 --- a/macos/coreimage/sunbeams_generator.gen.go +++ b/macos/coreimage/sunbeams_generator_protocol.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package coreimage @@ -20,216 +20,219 @@ type PSunbeamsGenerator interface { HasStriationContrast() bool // optional - SetColor(value Color) - HasSetColor() bool + SetCenter(value coregraphics.Point) + HasSetCenter() bool // optional - Color() IColor - HasColor() bool + Center() coregraphics.Point + HasCenter() bool // optional - SetMaxStriationRadius(value float64) - HasSetMaxStriationRadius() bool + SetSunRadius(value float64) + HasSetSunRadius() bool // optional - MaxStriationRadius() float64 - HasMaxStriationRadius() bool + SunRadius() float64 + HasSunRadius() bool // optional - SetTime(value float64) - HasSetTime() bool + SetColor(value Color) + HasSetColor() bool // optional - Time() float64 - HasTime() bool + Color() Color + HasColor() bool // optional - SetStriationStrength(value float64) - HasSetStriationStrength() bool + SetTime(value float64) + HasSetTime() bool // optional - StriationStrength() float64 - HasStriationStrength() bool + Time() float64 + HasTime() bool // optional - SetSunRadius(value float64) - HasSetSunRadius() bool + SetMaxStriationRadius(value float64) + HasSetMaxStriationRadius() bool // optional - SunRadius() float64 - HasSunRadius() bool + MaxStriationRadius() float64 + HasMaxStriationRadius() bool // optional - SetCenter(value coregraphics.Point) - HasSetCenter() bool + SetStriationStrength(value float64) + HasSetStriationStrength() bool // optional - Center() coregraphics.Point - HasCenter() bool + StriationStrength() float64 + HasStriationStrength() bool } -// A concrete type wrapper for the [PSunbeamsGenerator] protocol. -type SunbeamsGeneratorWrapper struct { +// ensure impl type implements protocol interface +var _ PSunbeamsGenerator = (*SunbeamsGeneratorObject)(nil) + +// A concrete type for the [PSunbeamsGenerator] protocol. +type SunbeamsGeneratorObject struct { objc.Object } -func (s_ SunbeamsGeneratorWrapper) HasSetStriationContrast() bool { +func (s_ SunbeamsGeneratorObject) HasSetStriationContrast() bool { return s_.RespondsToSelector(objc.Sel("setStriationContrast:")) } // The contrast of the sunbeams. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/coreimage/cisunbeamsgenerator/3228770-striationcontrast?language=objc -func (s_ SunbeamsGeneratorWrapper) SetStriationContrast(value float64) { +func (s_ SunbeamsGeneratorObject) SetStriationContrast(value float64) { objc.Call[objc.Void](s_, objc.Sel("setStriationContrast:"), value) } -func (s_ SunbeamsGeneratorWrapper) HasStriationContrast() bool { +func (s_ SunbeamsGeneratorObject) HasStriationContrast() bool { return s_.RespondsToSelector(objc.Sel("striationContrast")) } // The contrast of the sunbeams. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/coreimage/cisunbeamsgenerator/3228770-striationcontrast?language=objc -func (s_ SunbeamsGeneratorWrapper) StriationContrast() float64 { +func (s_ SunbeamsGeneratorObject) StriationContrast() float64 { rv := objc.Call[float64](s_, objc.Sel("striationContrast")) return rv } -func (s_ SunbeamsGeneratorWrapper) HasSetColor() bool { - return s_.RespondsToSelector(objc.Sel("setColor:")) +func (s_ SunbeamsGeneratorObject) HasSetCenter() bool { + return s_.RespondsToSelector(objc.Sel("setCenter:")) } -// The color of the sun. [Full Topic] +// 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/3228768-color?language=objc -func (s_ SunbeamsGeneratorWrapper) SetColor(value IColor) { - objc.Call[objc.Void](s_, objc.Sel("setColor:"), objc.Ptr(value)) +// [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_ SunbeamsGeneratorWrapper) HasColor() bool { - return s_.RespondsToSelector(objc.Sel("color")) +func (s_ SunbeamsGeneratorObject) HasCenter() bool { + return s_.RespondsToSelector(objc.Sel("center")) } -// The color of the sun. [Full Topic] +// 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/3228768-color?language=objc -func (s_ SunbeamsGeneratorWrapper) Color() Color { - rv := objc.Call[Color](s_, objc.Sel("color")) +// [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_ SunbeamsGeneratorWrapper) HasSetMaxStriationRadius() bool { - return s_.RespondsToSelector(objc.Sel("setMaxStriationRadius:")) +func (s_ SunbeamsGeneratorObject) HasSetSunRadius() bool { + return s_.RespondsToSelector(objc.Sel("setSunRadius:")) } -// The radius of the sunbeams. [Full Topic] +// The radius of the sun. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/cisunbeamsgenerator/3228769-maxstriationradius?language=objc -func (s_ SunbeamsGeneratorWrapper) SetMaxStriationRadius(value float64) { - objc.Call[objc.Void](s_, objc.Sel("setMaxStriationRadius:"), value) +// [Full Topic]: https://developer.apple.com/documentation/coreimage/cisunbeamsgenerator/3228772-sunradius?language=objc +func (s_ SunbeamsGeneratorObject) SetSunRadius(value float64) { + objc.Call[objc.Void](s_, objc.Sel("setSunRadius:"), value) } -func (s_ SunbeamsGeneratorWrapper) HasMaxStriationRadius() bool { - return s_.RespondsToSelector(objc.Sel("maxStriationRadius")) +func (s_ SunbeamsGeneratorObject) HasSunRadius() bool { + return s_.RespondsToSelector(objc.Sel("sunRadius")) } -// The radius of the sunbeams. [Full Topic] +// The radius of the sun. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/cisunbeamsgenerator/3228769-maxstriationradius?language=objc -func (s_ SunbeamsGeneratorWrapper) MaxStriationRadius() float64 { - rv := objc.Call[float64](s_, objc.Sel("maxStriationRadius")) +// [Full Topic]: https://developer.apple.com/documentation/coreimage/cisunbeamsgenerator/3228772-sunradius?language=objc +func (s_ SunbeamsGeneratorObject) SunRadius() float64 { + rv := objc.Call[float64](s_, objc.Sel("sunRadius")) return rv } -func (s_ SunbeamsGeneratorWrapper) HasSetTime() bool { - return s_.RespondsToSelector(objc.Sel("setTime:")) +func (s_ SunbeamsGeneratorObject) HasSetColor() bool { + return s_.RespondsToSelector(objc.Sel("setColor:")) } -// The duration of the effect. [Full Topic] +// The color of the sun. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/cisunbeamsgenerator/3228773-time?language=objc -func (s_ SunbeamsGeneratorWrapper) SetTime(value float64) { - objc.Call[objc.Void](s_, objc.Sel("setTime:"), value) +// [Full Topic]: https://developer.apple.com/documentation/coreimage/cisunbeamsgenerator/3228768-color?language=objc +func (s_ SunbeamsGeneratorObject) SetColor(value Color) { + objc.Call[objc.Void](s_, objc.Sel("setColor:"), objc.Ptr(value)) } -func (s_ SunbeamsGeneratorWrapper) HasTime() bool { - return s_.RespondsToSelector(objc.Sel("time")) +func (s_ SunbeamsGeneratorObject) HasColor() bool { + return s_.RespondsToSelector(objc.Sel("color")) } -// The duration of the effect. [Full Topic] +// The color of the sun. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/cisunbeamsgenerator/3228773-time?language=objc -func (s_ SunbeamsGeneratorWrapper) Time() float64 { - rv := objc.Call[float64](s_, objc.Sel("time")) +// [Full Topic]: https://developer.apple.com/documentation/coreimage/cisunbeamsgenerator/3228768-color?language=objc +func (s_ SunbeamsGeneratorObject) Color() Color { + rv := objc.Call[Color](s_, objc.Sel("color")) return rv } -func (s_ SunbeamsGeneratorWrapper) HasSetStriationStrength() bool { - return s_.RespondsToSelector(objc.Sel("setStriationStrength:")) +func (s_ SunbeamsGeneratorObject) HasSetTime() bool { + return s_.RespondsToSelector(objc.Sel("setTime:")) } -// The intensity of the sunbeams. [Full Topic] +// The duration of the effect. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/cisunbeamsgenerator/3228771-striationstrength?language=objc -func (s_ SunbeamsGeneratorWrapper) SetStriationStrength(value float64) { - objc.Call[objc.Void](s_, objc.Sel("setStriationStrength:"), value) +// [Full Topic]: https://developer.apple.com/documentation/coreimage/cisunbeamsgenerator/3228773-time?language=objc +func (s_ SunbeamsGeneratorObject) SetTime(value float64) { + objc.Call[objc.Void](s_, objc.Sel("setTime:"), value) } -func (s_ SunbeamsGeneratorWrapper) HasStriationStrength() bool { - return s_.RespondsToSelector(objc.Sel("striationStrength")) +func (s_ SunbeamsGeneratorObject) HasTime() bool { + return s_.RespondsToSelector(objc.Sel("time")) } -// The intensity of the sunbeams. [Full Topic] +// The duration of the effect. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/cisunbeamsgenerator/3228771-striationstrength?language=objc -func (s_ SunbeamsGeneratorWrapper) StriationStrength() float64 { - rv := objc.Call[float64](s_, objc.Sel("striationStrength")) +// [Full Topic]: https://developer.apple.com/documentation/coreimage/cisunbeamsgenerator/3228773-time?language=objc +func (s_ SunbeamsGeneratorObject) Time() float64 { + rv := objc.Call[float64](s_, objc.Sel("time")) return rv } -func (s_ SunbeamsGeneratorWrapper) HasSetSunRadius() bool { - return s_.RespondsToSelector(objc.Sel("setSunRadius:")) +func (s_ SunbeamsGeneratorObject) HasSetMaxStriationRadius() bool { + return s_.RespondsToSelector(objc.Sel("setMaxStriationRadius:")) } -// The radius of the sun. [Full Topic] +// The radius of the sunbeams. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/cisunbeamsgenerator/3228772-sunradius?language=objc -func (s_ SunbeamsGeneratorWrapper) SetSunRadius(value float64) { - objc.Call[objc.Void](s_, objc.Sel("setSunRadius:"), value) +// [Full Topic]: https://developer.apple.com/documentation/coreimage/cisunbeamsgenerator/3228769-maxstriationradius?language=objc +func (s_ SunbeamsGeneratorObject) SetMaxStriationRadius(value float64) { + objc.Call[objc.Void](s_, objc.Sel("setMaxStriationRadius:"), value) } -func (s_ SunbeamsGeneratorWrapper) HasSunRadius() bool { - return s_.RespondsToSelector(objc.Sel("sunRadius")) +func (s_ SunbeamsGeneratorObject) HasMaxStriationRadius() bool { + return s_.RespondsToSelector(objc.Sel("maxStriationRadius")) } -// The radius of the sun. [Full Topic] +// The radius of the sunbeams. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/cisunbeamsgenerator/3228772-sunradius?language=objc -func (s_ SunbeamsGeneratorWrapper) SunRadius() float64 { - rv := objc.Call[float64](s_, objc.Sel("sunRadius")) +// [Full Topic]: https://developer.apple.com/documentation/coreimage/cisunbeamsgenerator/3228769-maxstriationradius?language=objc +func (s_ SunbeamsGeneratorObject) MaxStriationRadius() float64 { + rv := objc.Call[float64](s_, objc.Sel("maxStriationRadius")) return rv } -func (s_ SunbeamsGeneratorWrapper) HasSetCenter() bool { - return s_.RespondsToSelector(objc.Sel("setCenter:")) +func (s_ SunbeamsGeneratorObject) HasSetStriationStrength() bool { + return s_.RespondsToSelector(objc.Sel("setStriationStrength:")) } -// The x and y position to use as the center of the sunbeam pattern. [Full Topic] +// The intensity of the sunbeams. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/cisunbeamsgenerator/3228767-center?language=objc -func (s_ SunbeamsGeneratorWrapper) SetCenter(value coregraphics.Point) { - objc.Call[objc.Void](s_, objc.Sel("setCenter:"), value) +// [Full Topic]: https://developer.apple.com/documentation/coreimage/cisunbeamsgenerator/3228771-striationstrength?language=objc +func (s_ SunbeamsGeneratorObject) SetStriationStrength(value float64) { + objc.Call[objc.Void](s_, objc.Sel("setStriationStrength:"), value) } -func (s_ SunbeamsGeneratorWrapper) HasCenter() bool { - return s_.RespondsToSelector(objc.Sel("center")) +func (s_ SunbeamsGeneratorObject) HasStriationStrength() bool { + return s_.RespondsToSelector(objc.Sel("striationStrength")) } -// The x and y position to use as the center of the sunbeam pattern. [Full Topic] +// The intensity of the sunbeams. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/cisunbeamsgenerator/3228767-center?language=objc -func (s_ SunbeamsGeneratorWrapper) Center() coregraphics.Point { - rv := objc.Call[coregraphics.Point](s_, objc.Sel("center")) +// [Full Topic]: https://developer.apple.com/documentation/coreimage/cisunbeamsgenerator/3228771-striationstrength?language=objc +func (s_ SunbeamsGeneratorObject) StriationStrength() float64 { + rv := objc.Call[float64](s_, objc.Sel("striationStrength")) return rv } diff --git a/macos/coreimage/swipe_transition.gen.go b/macos/coreimage/swipe_transition_protocol.gen.go similarity index 73% rename from macos/coreimage/swipe_transition.gen.go rename to macos/coreimage/swipe_transition_protocol.gen.go index c3785a37..d447dab5 100644 --- a/macos/coreimage/swipe_transition.gen.go +++ b/macos/coreimage/swipe_transition_protocol.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package coreimage @@ -16,25 +16,9 @@ type PSwipeTransition interface { HasSetColor() bool // optional - Color() IColor + Color() Color HasColor() bool - // optional - SetWidth(value float64) - HasSetWidth() bool - - // optional - Width() float64 - HasWidth() bool - - // optional - SetOpacity(value float64) - HasSetOpacity() bool - - // optional - Opacity() float64 - HasOpacity() bool - // optional SetExtent(value coregraphics.Rect) HasSetExtent() bool @@ -50,124 +34,143 @@ type PSwipeTransition interface { // optional Angle() float64 HasAngle() bool + + // optional + SetWidth(value float64) + HasSetWidth() bool + + // optional + Width() float64 + HasWidth() bool + + // optional + SetOpacity(value float64) + HasSetOpacity() bool + + // optional + Opacity() float64 + HasOpacity() bool } -// A concrete type wrapper for the [PSwipeTransition] protocol. -type SwipeTransitionWrapper struct { +// ensure impl type implements protocol interface +var _ PSwipeTransition = (*SwipeTransitionObject)(nil) + +// A concrete type for the [PSwipeTransition] protocol. +type SwipeTransitionObject struct { objc.Object } -func (s_ SwipeTransitionWrapper) HasSetColor() bool { +func (s_ SwipeTransitionObject) HasSetColor() bool { return s_.RespondsToSelector(objc.Sel("setColor:")) } // The color of the swipe. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/coreimage/ciswipetransition/3228776-color?language=objc -func (s_ SwipeTransitionWrapper) SetColor(value IColor) { +func (s_ SwipeTransitionObject) SetColor(value Color) { objc.Call[objc.Void](s_, objc.Sel("setColor:"), objc.Ptr(value)) } -func (s_ SwipeTransitionWrapper) HasColor() bool { +func (s_ SwipeTransitionObject) HasColor() bool { return s_.RespondsToSelector(objc.Sel("color")) } // The color of the swipe. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/coreimage/ciswipetransition/3228776-color?language=objc -func (s_ SwipeTransitionWrapper) Color() Color { +func (s_ SwipeTransitionObject) Color() Color { rv := objc.Call[Color](s_, objc.Sel("color")) return rv } -func (s_ SwipeTransitionWrapper) HasSetWidth() bool { - return s_.RespondsToSelector(objc.Sel("setWidth:")) +func (s_ SwipeTransitionObject) HasSetExtent() bool { + return s_.RespondsToSelector(objc.Sel("setExtent:")) } -// The width of the swipe. [Full Topic] +// The extent of the effect. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/ciswipetransition/3228779-width?language=objc -func (s_ SwipeTransitionWrapper) SetWidth(value float64) { - objc.Call[objc.Void](s_, objc.Sel("setWidth:"), value) +// [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_ SwipeTransitionWrapper) HasWidth() bool { - return s_.RespondsToSelector(objc.Sel("width")) +func (s_ SwipeTransitionObject) HasExtent() bool { + return s_.RespondsToSelector(objc.Sel("extent")) } -// The width of the swipe. [Full Topic] +// The extent of the effect. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/ciswipetransition/3228779-width?language=objc -func (s_ SwipeTransitionWrapper) Width() float64 { - rv := objc.Call[float64](s_, objc.Sel("width")) +// [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_ SwipeTransitionWrapper) HasSetOpacity() bool { - return s_.RespondsToSelector(objc.Sel("setOpacity:")) +func (s_ SwipeTransitionObject) HasSetAngle() bool { + return s_.RespondsToSelector(objc.Sel("setAngle:")) } -// The opacity of the swipe. [Full Topic] +// The angle of the swipe. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/ciswipetransition/3228778-opacity?language=objc -func (s_ SwipeTransitionWrapper) SetOpacity(value float64) { - objc.Call[objc.Void](s_, objc.Sel("setOpacity:"), value) +// [Full Topic]: https://developer.apple.com/documentation/coreimage/ciswipetransition/3228775-angle?language=objc +func (s_ SwipeTransitionObject) SetAngle(value float64) { + objc.Call[objc.Void](s_, objc.Sel("setAngle:"), value) } -func (s_ SwipeTransitionWrapper) HasOpacity() bool { - return s_.RespondsToSelector(objc.Sel("opacity")) +func (s_ SwipeTransitionObject) HasAngle() bool { + return s_.RespondsToSelector(objc.Sel("angle")) } -// The opacity of the swipe. [Full Topic] +// The angle of the swipe. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/ciswipetransition/3228778-opacity?language=objc -func (s_ SwipeTransitionWrapper) Opacity() float64 { - rv := objc.Call[float64](s_, objc.Sel("opacity")) +// [Full Topic]: https://developer.apple.com/documentation/coreimage/ciswipetransition/3228775-angle?language=objc +func (s_ SwipeTransitionObject) Angle() float64 { + rv := objc.Call[float64](s_, objc.Sel("angle")) return rv } -func (s_ SwipeTransitionWrapper) HasSetExtent() bool { - return s_.RespondsToSelector(objc.Sel("setExtent:")) +func (s_ SwipeTransitionObject) HasSetWidth() bool { + return s_.RespondsToSelector(objc.Sel("setWidth:")) } -// The extent of the effect. [Full Topic] +// The width of the swipe. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/ciswipetransition/3228777-extent?language=objc -func (s_ SwipeTransitionWrapper) SetExtent(value coregraphics.Rect) { - objc.Call[objc.Void](s_, objc.Sel("setExtent:"), value) +// [Full Topic]: https://developer.apple.com/documentation/coreimage/ciswipetransition/3228779-width?language=objc +func (s_ SwipeTransitionObject) SetWidth(value float64) { + objc.Call[objc.Void](s_, objc.Sel("setWidth:"), value) } -func (s_ SwipeTransitionWrapper) HasExtent() bool { - return s_.RespondsToSelector(objc.Sel("extent")) +func (s_ SwipeTransitionObject) HasWidth() bool { + return s_.RespondsToSelector(objc.Sel("width")) } -// The extent of the effect. [Full Topic] +// The width of the swipe. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/ciswipetransition/3228777-extent?language=objc -func (s_ SwipeTransitionWrapper) Extent() coregraphics.Rect { - rv := objc.Call[coregraphics.Rect](s_, objc.Sel("extent")) +// [Full Topic]: https://developer.apple.com/documentation/coreimage/ciswipetransition/3228779-width?language=objc +func (s_ SwipeTransitionObject) Width() float64 { + rv := objc.Call[float64](s_, objc.Sel("width")) return rv } -func (s_ SwipeTransitionWrapper) HasSetAngle() bool { - return s_.RespondsToSelector(objc.Sel("setAngle:")) +func (s_ SwipeTransitionObject) HasSetOpacity() bool { + return s_.RespondsToSelector(objc.Sel("setOpacity:")) } -// The angle of the swipe. [Full Topic] +// The opacity of the swipe. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/ciswipetransition/3228775-angle?language=objc -func (s_ SwipeTransitionWrapper) SetAngle(value float64) { - objc.Call[objc.Void](s_, objc.Sel("setAngle:"), value) +// [Full Topic]: https://developer.apple.com/documentation/coreimage/ciswipetransition/3228778-opacity?language=objc +func (s_ SwipeTransitionObject) SetOpacity(value float64) { + objc.Call[objc.Void](s_, objc.Sel("setOpacity:"), value) } -func (s_ SwipeTransitionWrapper) HasAngle() bool { - return s_.RespondsToSelector(objc.Sel("angle")) +func (s_ SwipeTransitionObject) HasOpacity() bool { + return s_.RespondsToSelector(objc.Sel("opacity")) } -// The angle of the swipe. [Full Topic] +// The opacity of the swipe. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/ciswipetransition/3228775-angle?language=objc -func (s_ SwipeTransitionWrapper) Angle() float64 { - rv := objc.Call[float64](s_, objc.Sel("angle")) +// [Full Topic]: https://developer.apple.com/documentation/coreimage/ciswipetransition/3228778-opacity?language=objc +func (s_ SwipeTransitionObject) Opacity() float64 { + rv := objc.Call[float64](s_, objc.Sel("opacity")) return rv } diff --git a/macos/coreimage/temperature_and_tint.gen.go b/macos/coreimage/temperature_and_tint_protocol.gen.go similarity index 71% rename from macos/coreimage/temperature_and_tint.gen.go rename to macos/coreimage/temperature_and_tint_protocol.gen.go index 564572f5..ce0c3ca8 100644 --- a/macos/coreimage/temperature_and_tint.gen.go +++ b/macos/coreimage/temperature_and_tint_protocol.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package coreimage @@ -11,100 +11,103 @@ import ( // [Full Topic]: https://developer.apple.com/documentation/coreimage/citemperatureandtint?language=objc type PTemperatureAndTint interface { // optional - SetInputImage(value Image) - HasSetInputImage() bool + SetNeutral(value Vector) + HasSetNeutral() bool // optional - InputImage() IImage - HasInputImage() bool + Neutral() Vector + HasNeutral() bool // optional SetTargetNeutral(value Vector) HasSetTargetNeutral() bool // optional - TargetNeutral() IVector + TargetNeutral() Vector HasTargetNeutral() bool // optional - SetNeutral(value Vector) - HasSetNeutral() bool + SetInputImage(value Image) + HasSetInputImage() bool // optional - Neutral() IVector - HasNeutral() bool + InputImage() Image + HasInputImage() bool } -// A concrete type wrapper for the [PTemperatureAndTint] protocol. -type TemperatureAndTintWrapper struct { +// ensure impl type implements protocol interface +var _ PTemperatureAndTint = (*TemperatureAndTintObject)(nil) + +// A concrete type for the [PTemperatureAndTint] protocol. +type TemperatureAndTintObject struct { objc.Object } -func (t_ TemperatureAndTintWrapper) 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_ TemperatureAndTintWrapper) SetInputImage(value IImage) { - objc.Call[objc.Void](t_, objc.Sel("setInputImage:"), objc.Ptr(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:"), objc.Ptr(value)) } -func (t_ TemperatureAndTintWrapper) 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_ TemperatureAndTintWrapper) 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 } -func (t_ TemperatureAndTintWrapper) HasSetTargetNeutral() bool { +func (t_ TemperatureAndTintObject) HasSetTargetNeutral() bool { return t_.RespondsToSelector(objc.Sel("setTargetNeutral:")) } // A vector containing the desired white point defined by color temperature and tint. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/coreimage/citemperatureandtint/3228783-targetneutral?language=objc -func (t_ TemperatureAndTintWrapper) SetTargetNeutral(value IVector) { +func (t_ TemperatureAndTintObject) SetTargetNeutral(value Vector) { objc.Call[objc.Void](t_, objc.Sel("setTargetNeutral:"), objc.Ptr(value)) } -func (t_ TemperatureAndTintWrapper) HasTargetNeutral() bool { +func (t_ TemperatureAndTintObject) HasTargetNeutral() bool { return t_.RespondsToSelector(objc.Sel("targetNeutral")) } // A vector containing the desired white point defined by color temperature and tint. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/coreimage/citemperatureandtint/3228783-targetneutral?language=objc -func (t_ TemperatureAndTintWrapper) TargetNeutral() Vector { +func (t_ TemperatureAndTintObject) TargetNeutral() Vector { rv := objc.Call[Vector](t_, objc.Sel("targetNeutral")) return rv } -func (t_ TemperatureAndTintWrapper) 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_ TemperatureAndTintWrapper) SetNeutral(value IVector) { - objc.Call[objc.Void](t_, objc.Sel("setNeutral:"), objc.Ptr(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:"), objc.Ptr(value)) } -func (t_ TemperatureAndTintWrapper) 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_ TemperatureAndTintWrapper) 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 } diff --git a/macos/coreimage/text_feature.gen.go b/macos/coreimage/text_feature.gen.go index 8979c180..50d6a8ad 100644 --- a/macos/coreimage/text_feature.gen.go +++ b/macos/coreimage/text_feature.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package coreimage @@ -19,11 +19,11 @@ type _TextFeatureClass struct { // An interface definition for the [TextFeature] class. type ITextFeature interface { IFeature - BottomRight() coregraphics.Point - BottomLeft() coregraphics.Point - SubFeatures() []objc.Object TopRight() coregraphics.Point TopLeft() coregraphics.Point + BottomLeft() coregraphics.Point + SubFeatures() []objc.Object + BottomRight() coregraphics.Point } // Information about a region likely to contain text detected in a still or video image. [Full Topic] @@ -44,10 +44,6 @@ func (tc _TextFeatureClass) Alloc() TextFeature { return rv } -func TextFeature_Alloc() TextFeature { - return TextFeatureClass.Alloc() -} - func (tc _TextFeatureClass) New() TextFeature { rv := objc.Call[TextFeature](tc, objc.Sel("new")) rv.Autorelease() @@ -63,11 +59,19 @@ func (t_ TextFeature) Init() TextFeature { 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 } @@ -87,18 +91,10 @@ func (t_ TextFeature) SubFeatures() []objc.Object { 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 } diff --git a/macos/coreimage/text_image_generator.gen.go b/macos/coreimage/text_image_generator_protocol.gen.go similarity index 73% rename from macos/coreimage/text_image_generator.gen.go rename to macos/coreimage/text_image_generator_protocol.gen.go index 87f6bc0a..1c19d016 100644 --- a/macos/coreimage/text_image_generator.gen.go +++ b/macos/coreimage/text_image_generator_protocol.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package coreimage @@ -10,22 +10,6 @@ import ( // // [Full Topic]: https://developer.apple.com/documentation/coreimage/citextimagegenerator?language=objc type PTextImageGenerator interface { - // optional - SetScaleFactor(value float64) - HasSetScaleFactor() bool - - // optional - ScaleFactor() float64 - HasScaleFactor() bool - - // optional - SetFontSize(value float64) - HasSetFontSize() bool - - // optional - FontSize() float64 - HasFontSize() bool - // optional SetFontName(value string) HasSetFontName() bool @@ -34,6 +18,14 @@ type PTextImageGenerator interface { FontName() string HasFontName() bool + // optional + SetScaleFactor(value float64) + HasSetScaleFactor() bool + + // optional + ScaleFactor() float64 + HasScaleFactor() bool + // optional SetText(value string) HasSetText() bool @@ -41,101 +33,112 @@ type PTextImageGenerator interface { // optional Text() string HasText() bool + + // optional + SetFontSize(value float64) + HasSetFontSize() bool + + // optional + FontSize() float64 + HasFontSize() bool } -// A concrete type wrapper for the [PTextImageGenerator] protocol. -type TextImageGeneratorWrapper struct { +// ensure impl type implements protocol interface +var _ PTextImageGenerator = (*TextImageGeneratorObject)(nil) + +// A concrete type for the [PTextImageGenerator] protocol. +type TextImageGeneratorObject struct { objc.Object } -func (t_ TextImageGeneratorWrapper) HasSetScaleFactor() bool { - return t_.RespondsToSelector(objc.Sel("setScaleFactor:")) +func (t_ TextImageGeneratorObject) HasSetFontName() bool { + return t_.RespondsToSelector(objc.Sel("setFontName:")) } -// The scale of the font to use for the generated text. [Full Topic] +// The name of the font to use for the generated text. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/citextimagegenerator/3228787-scalefactor?language=objc -func (t_ TextImageGeneratorWrapper) SetScaleFactor(value float64) { - objc.Call[objc.Void](t_, objc.Sel("setScaleFactor:"), value) +// [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_ TextImageGeneratorWrapper) HasScaleFactor() bool { - return t_.RespondsToSelector(objc.Sel("scaleFactor")) +func (t_ TextImageGeneratorObject) HasFontName() bool { + return t_.RespondsToSelector(objc.Sel("fontName")) } -// The scale of the font to use for the generated text. [Full Topic] +// The name of the font to use for the generated text. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/citextimagegenerator/3228787-scalefactor?language=objc -func (t_ TextImageGeneratorWrapper) ScaleFactor() float64 { - rv := objc.Call[float64](t_, objc.Sel("scaleFactor")) +// [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_ TextImageGeneratorWrapper) HasSetFontSize() bool { - return t_.RespondsToSelector(objc.Sel("setFontSize:")) +func (t_ TextImageGeneratorObject) HasSetScaleFactor() bool { + return t_.RespondsToSelector(objc.Sel("setScaleFactor:")) } -// The size of the font to use for the generated text. [Full Topic] +// The scale of the font to use for the generated text. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/citextimagegenerator/3228786-fontsize?language=objc -func (t_ TextImageGeneratorWrapper) SetFontSize(value float64) { - objc.Call[objc.Void](t_, objc.Sel("setFontSize:"), value) +// [Full Topic]: https://developer.apple.com/documentation/coreimage/citextimagegenerator/3228787-scalefactor?language=objc +func (t_ TextImageGeneratorObject) SetScaleFactor(value float64) { + objc.Call[objc.Void](t_, objc.Sel("setScaleFactor:"), value) } -func (t_ TextImageGeneratorWrapper) HasFontSize() bool { - return t_.RespondsToSelector(objc.Sel("fontSize")) +func (t_ TextImageGeneratorObject) HasScaleFactor() bool { + return t_.RespondsToSelector(objc.Sel("scaleFactor")) } -// The size of the font to use for the generated text. [Full Topic] +// The scale of the font to use for the generated text. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/citextimagegenerator/3228786-fontsize?language=objc -func (t_ TextImageGeneratorWrapper) FontSize() float64 { - rv := objc.Call[float64](t_, objc.Sel("fontSize")) +// [Full Topic]: https://developer.apple.com/documentation/coreimage/citextimagegenerator/3228787-scalefactor?language=objc +func (t_ TextImageGeneratorObject) ScaleFactor() float64 { + rv := objc.Call[float64](t_, objc.Sel("scaleFactor")) return rv } -func (t_ TextImageGeneratorWrapper) HasSetFontName() bool { - return t_.RespondsToSelector(objc.Sel("setFontName:")) +func (t_ TextImageGeneratorObject) HasSetText() bool { + return t_.RespondsToSelector(objc.Sel("setText:")) } -// The name of the font to use for the generated text. [Full Topic] +// The text to render. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/citextimagegenerator/3228785-fontname?language=objc -func (t_ TextImageGeneratorWrapper) SetFontName(value string) { - objc.Call[objc.Void](t_, objc.Sel("setFontName:"), value) +// [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_ TextImageGeneratorWrapper) HasFontName() bool { - return t_.RespondsToSelector(objc.Sel("fontName")) +func (t_ TextImageGeneratorObject) HasText() bool { + return t_.RespondsToSelector(objc.Sel("text")) } -// The name of the font to use for the generated text. [Full Topic] +// The text to render. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/citextimagegenerator/3228785-fontname?language=objc -func (t_ TextImageGeneratorWrapper) FontName() string { - rv := objc.Call[string](t_, objc.Sel("fontName")) +// [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_ TextImageGeneratorWrapper) HasSetText() bool { - return t_.RespondsToSelector(objc.Sel("setText:")) +func (t_ TextImageGeneratorObject) HasSetFontSize() bool { + return t_.RespondsToSelector(objc.Sel("setFontSize:")) } -// The text to render. [Full Topic] +// The size of the font to use for the generated text. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/citextimagegenerator/3228788-text?language=objc -func (t_ TextImageGeneratorWrapper) SetText(value string) { - objc.Call[objc.Void](t_, objc.Sel("setText:"), value) +// [Full Topic]: https://developer.apple.com/documentation/coreimage/citextimagegenerator/3228786-fontsize?language=objc +func (t_ TextImageGeneratorObject) SetFontSize(value float64) { + objc.Call[objc.Void](t_, objc.Sel("setFontSize:"), value) } -func (t_ TextImageGeneratorWrapper) HasText() bool { - return t_.RespondsToSelector(objc.Sel("text")) +func (t_ TextImageGeneratorObject) HasFontSize() bool { + return t_.RespondsToSelector(objc.Sel("fontSize")) } -// The text to render. [Full Topic] +// The size of the font to use for the generated text. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/citextimagegenerator/3228788-text?language=objc -func (t_ TextImageGeneratorWrapper) Text() string { - rv := objc.Call[string](t_, objc.Sel("text")) +// [Full Topic]: https://developer.apple.com/documentation/coreimage/citextimagegenerator/3228786-fontsize?language=objc +func (t_ TextImageGeneratorObject) FontSize() float64 { + rv := objc.Call[float64](t_, objc.Sel("fontSize")) return rv } diff --git a/macos/coreimage/thermal.gen.go b/macos/coreimage/thermal_protocol.gen.go similarity index 69% rename from macos/coreimage/thermal.gen.go rename to macos/coreimage/thermal_protocol.gen.go index 7c1b2654..d3f03309 100644 --- a/macos/coreimage/thermal.gen.go +++ b/macos/coreimage/thermal_protocol.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package coreimage @@ -15,34 +15,37 @@ type PThermal interface { HasSetInputImage() bool // optional - InputImage() IImage + InputImage() Image HasInputImage() bool } -// A concrete type wrapper for the [PThermal] protocol. -type ThermalWrapper struct { +// ensure impl type implements protocol interface +var _ PThermal = (*ThermalObject)(nil) + +// A concrete type for the [PThermal] protocol. +type ThermalObject struct { objc.Object } -func (t_ ThermalWrapper) HasSetInputImage() bool { +func (t_ ThermalObject) HasSetInputImage() bool { return t_.RespondsToSelector(objc.Sel("setInputImage:")) } // The image to use as an input image. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/coreimage/cithermal/3228790-inputimage?language=objc -func (t_ ThermalWrapper) SetInputImage(value IImage) { +func (t_ ThermalObject) SetInputImage(value Image) { objc.Call[objc.Void](t_, objc.Sel("setInputImage:"), objc.Ptr(value)) } -func (t_ ThermalWrapper) HasInputImage() bool { +func (t_ ThermalObject) HasInputImage() bool { return t_.RespondsToSelector(objc.Sel("inputImage")) } // The image to use as an input image. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/coreimage/cithermal/3228790-inputimage?language=objc -func (t_ ThermalWrapper) InputImage() Image { +func (t_ ThermalObject) InputImage() Image { rv := objc.Call[Image](t_, objc.Sel("inputImage")) return rv } diff --git a/macos/coreimage/tone_curve.gen.go b/macos/coreimage/tone_curve_protocol.gen.go similarity index 76% rename from macos/coreimage/tone_curve.gen.go rename to macos/coreimage/tone_curve_protocol.gen.go index 67af3e01..e8db2225 100644 --- a/macos/coreimage/tone_curve.gen.go +++ b/macos/coreimage/tone_curve_protocol.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package coreimage @@ -11,14 +11,6 @@ import ( // // [Full Topic]: https://developer.apple.com/documentation/coreimage/citonecurve?language=objc type PToneCurve interface { - // optional - SetInputImage(value Image) - HasSetInputImage() bool - - // optional - InputImage() IImage - HasInputImage() bool - // optional SetPoint4(value coregraphics.Point) HasSetPoint4() bool @@ -28,20 +20,28 @@ type PToneCurve interface { HasPoint4() bool // optional - SetPoint3(value coregraphics.Point) - HasSetPoint3() bool + SetPoint0(value coregraphics.Point) + HasSetPoint0() bool // optional - Point3() coregraphics.Point - HasPoint3() bool + Point0() coregraphics.Point + HasPoint0() bool // optional - SetPoint2(value coregraphics.Point) - HasSetPoint2() bool + SetInputImage(value Image) + HasSetInputImage() bool // optional - Point2() coregraphics.Point - HasPoint2() bool + InputImage() Image + HasInputImage() bool + + // optional + SetPoint3(value coregraphics.Point) + HasSetPoint3() bool + + // optional + Point3() coregraphics.Point + HasPoint3() bool // optional SetPoint1(value coregraphics.Point) @@ -52,153 +52,156 @@ type PToneCurve interface { HasPoint1() bool // optional - SetPoint0(value coregraphics.Point) - HasSetPoint0() bool + SetPoint2(value coregraphics.Point) + HasSetPoint2() bool // optional - Point0() coregraphics.Point - HasPoint0() bool + Point2() coregraphics.Point + HasPoint2() bool } -// A concrete type wrapper for the [PToneCurve] protocol. -type ToneCurveWrapper struct { +// ensure impl type implements protocol interface +var _ PToneCurve = (*ToneCurveObject)(nil) + +// A concrete type for the [PToneCurve] protocol. +type ToneCurveObject struct { objc.Object } -func (t_ ToneCurveWrapper) HasSetInputImage() bool { - return t_.RespondsToSelector(objc.Sel("setInputImage:")) +func (t_ ToneCurveObject) HasSetPoint4() bool { + return t_.RespondsToSelector(objc.Sel("setPoint4:")) } -// The image to use as an input image. [Full Topic] +// A vector containing the position of the fifth point of the tone curve. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/citonecurve/3228792-inputimage?language=objc -func (t_ ToneCurveWrapper) SetInputImage(value IImage) { - objc.Call[objc.Void](t_, objc.Sel("setInputImage:"), objc.Ptr(value)) +// [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_ ToneCurveWrapper) HasInputImage() bool { - return t_.RespondsToSelector(objc.Sel("inputImage")) +func (t_ ToneCurveObject) HasPoint4() bool { + return t_.RespondsToSelector(objc.Sel("point4")) } -// The image to use as an input image. [Full Topic] +// A vector containing the position of the fifth point of the tone curve. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/citonecurve/3228792-inputimage?language=objc -func (t_ ToneCurveWrapper) InputImage() Image { - rv := objc.Call[Image](t_, objc.Sel("inputImage")) +// [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_ ToneCurveWrapper) HasSetPoint4() bool { - return t_.RespondsToSelector(objc.Sel("setPoint4:")) +func (t_ ToneCurveObject) HasSetPoint0() bool { + return t_.RespondsToSelector(objc.Sel("setPoint0:")) } -// A vector containing the position of the fifth 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/3228797-point4?language=objc -func (t_ ToneCurveWrapper) SetPoint4(value coregraphics.Point) { - objc.Call[objc.Void](t_, objc.Sel("setPoint4:"), 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_ ToneCurveWrapper) HasPoint4() bool { - return t_.RespondsToSelector(objc.Sel("point4")) +func (t_ ToneCurveObject) HasPoint0() bool { + return t_.RespondsToSelector(objc.Sel("point0")) } -// A vector containing the position of the fifth 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/3228797-point4?language=objc -func (t_ ToneCurveWrapper) Point4() coregraphics.Point { - rv := objc.Call[coregraphics.Point](t_, objc.Sel("point4")) +// [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_ ToneCurveWrapper) HasSetPoint3() bool { - return t_.RespondsToSelector(objc.Sel("setPoint3:")) +func (t_ ToneCurveObject) HasSetInputImage() bool { + return t_.RespondsToSelector(objc.Sel("setInputImage:")) } -// A vector containing the position of the fourth point of the tone curve. [Full Topic] +// The image to use as an input image. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/citonecurve/3228796-point3?language=objc -func (t_ ToneCurveWrapper) SetPoint3(value coregraphics.Point) { - objc.Call[objc.Void](t_, objc.Sel("setPoint3:"), value) +// [Full Topic]: https://developer.apple.com/documentation/coreimage/citonecurve/3228792-inputimage?language=objc +func (t_ ToneCurveObject) SetInputImage(value Image) { + objc.Call[objc.Void](t_, objc.Sel("setInputImage:"), objc.Ptr(value)) } -func (t_ ToneCurveWrapper) HasPoint3() bool { - return t_.RespondsToSelector(objc.Sel("point3")) +func (t_ ToneCurveObject) HasInputImage() bool { + return t_.RespondsToSelector(objc.Sel("inputImage")) } -// A vector containing the position of the fourth point of the tone curve. [Full Topic] +// The image to use as an input image. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/citonecurve/3228796-point3?language=objc -func (t_ ToneCurveWrapper) Point3() coregraphics.Point { - rv := objc.Call[coregraphics.Point](t_, objc.Sel("point3")) +// [Full Topic]: https://developer.apple.com/documentation/coreimage/citonecurve/3228792-inputimage?language=objc +func (t_ ToneCurveObject) InputImage() Image { + rv := objc.Call[Image](t_, objc.Sel("inputImage")) return rv } -func (t_ ToneCurveWrapper) HasSetPoint2() bool { - return t_.RespondsToSelector(objc.Sel("setPoint2:")) +func (t_ ToneCurveObject) HasSetPoint3() bool { + return t_.RespondsToSelector(objc.Sel("setPoint3:")) } -// A vector containing the position of the third point of the tone curve. [Full Topic] +// A vector containing the position of the fourth point of the tone curve. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/citonecurve/3228795-point2?language=objc -func (t_ ToneCurveWrapper) SetPoint2(value coregraphics.Point) { - objc.Call[objc.Void](t_, objc.Sel("setPoint2:"), value) +// [Full Topic]: https://developer.apple.com/documentation/coreimage/citonecurve/3228796-point3?language=objc +func (t_ ToneCurveObject) SetPoint3(value coregraphics.Point) { + objc.Call[objc.Void](t_, objc.Sel("setPoint3:"), value) } -func (t_ ToneCurveWrapper) HasPoint2() bool { - return t_.RespondsToSelector(objc.Sel("point2")) +func (t_ ToneCurveObject) HasPoint3() bool { + return t_.RespondsToSelector(objc.Sel("point3")) } -// A vector containing the position of the third point of the tone curve. [Full Topic] +// A vector containing the position of the fourth point of the tone curve. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/citonecurve/3228795-point2?language=objc -func (t_ ToneCurveWrapper) Point2() coregraphics.Point { - rv := objc.Call[coregraphics.Point](t_, objc.Sel("point2")) +// [Full Topic]: https://developer.apple.com/documentation/coreimage/citonecurve/3228796-point3?language=objc +func (t_ ToneCurveObject) Point3() coregraphics.Point { + rv := objc.Call[coregraphics.Point](t_, objc.Sel("point3")) return rv } -func (t_ ToneCurveWrapper) HasSetPoint1() bool { +func (t_ ToneCurveObject) HasSetPoint1() bool { return t_.RespondsToSelector(objc.Sel("setPoint1:")) } // A vector containing the position of the second point of the tone curve. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/coreimage/citonecurve/3228794-point1?language=objc -func (t_ ToneCurveWrapper) SetPoint1(value coregraphics.Point) { +func (t_ ToneCurveObject) SetPoint1(value coregraphics.Point) { objc.Call[objc.Void](t_, objc.Sel("setPoint1:"), value) } -func (t_ ToneCurveWrapper) HasPoint1() bool { +func (t_ ToneCurveObject) HasPoint1() bool { return t_.RespondsToSelector(objc.Sel("point1")) } // A vector containing the position of the second point of the tone curve. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/coreimage/citonecurve/3228794-point1?language=objc -func (t_ ToneCurveWrapper) Point1() coregraphics.Point { +func (t_ ToneCurveObject) Point1() coregraphics.Point { rv := objc.Call[coregraphics.Point](t_, objc.Sel("point1")) return rv } -func (t_ ToneCurveWrapper) HasSetPoint0() bool { - return t_.RespondsToSelector(objc.Sel("setPoint0:")) +func (t_ ToneCurveObject) HasSetPoint2() bool { + return t_.RespondsToSelector(objc.Sel("setPoint2:")) } -// A vector containing the position of the first point of the tone curve. [Full Topic] +// A vector containing the position of the third point of the tone curve. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/citonecurve/3228793-point0?language=objc -func (t_ ToneCurveWrapper) SetPoint0(value coregraphics.Point) { - objc.Call[objc.Void](t_, objc.Sel("setPoint0:"), value) +// [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_ ToneCurveWrapper) HasPoint0() bool { - return t_.RespondsToSelector(objc.Sel("point0")) +func (t_ ToneCurveObject) HasPoint2() bool { + return t_.RespondsToSelector(objc.Sel("point2")) } -// A vector containing the position of the first point of the tone curve. [Full Topic] +// A vector containing the position of the third point of the tone curve. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/citonecurve/3228793-point0?language=objc -func (t_ ToneCurveWrapper) Point0() coregraphics.Point { - rv := objc.Call[coregraphics.Point](t_, objc.Sel("point0")) +// [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 } diff --git a/macos/coreimage/torus_lens_distortion.gen.go b/macos/coreimage/torus_lens_distortion_protocol.gen.go similarity index 70% rename from macos/coreimage/torus_lens_distortion.gen.go rename to macos/coreimage/torus_lens_distortion_protocol.gen.go index 41fb55be..581bb27b 100644 --- a/macos/coreimage/torus_lens_distortion.gen.go +++ b/macos/coreimage/torus_lens_distortion_protocol.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package coreimage @@ -12,20 +12,20 @@ import ( // [Full Topic]: https://developer.apple.com/documentation/coreimage/citoruslensdistortion?language=objc type PTorusLensDistortion interface { // optional - SetWidth(value float64) - HasSetWidth() bool + SetRadius(value float64) + HasSetRadius() bool // optional - Width() float64 - HasWidth() bool + Radius() float64 + HasRadius() bool // optional - SetInputImage(value Image) - HasSetInputImage() bool + SetWidth(value float64) + HasSetWidth() bool // optional - InputImage() IImage - HasInputImage() bool + Width() float64 + HasWidth() bool // optional SetRefraction(value float64) @@ -35,14 +35,6 @@ type PTorusLensDistortion interface { Refraction() float64 HasRefraction() bool - // optional - SetRadius(value float64) - HasSetRadius() bool - - // optional - Radius() float64 - HasRadius() bool - // optional SetCenter(value coregraphics.Point) HasSetCenter() bool @@ -50,124 +42,135 @@ type PTorusLensDistortion interface { // optional Center() coregraphics.Point HasCenter() bool + + // optional + SetInputImage(value Image) + HasSetInputImage() bool + + // optional + InputImage() Image + HasInputImage() bool } -// A concrete type wrapper for the [PTorusLensDistortion] protocol. -type TorusLensDistortionWrapper struct { +// ensure impl type implements protocol interface +var _ PTorusLensDistortion = (*TorusLensDistortionObject)(nil) + +// A concrete type for the [PTorusLensDistortion] protocol. +type TorusLensDistortionObject struct { objc.Object } -func (t_ TorusLensDistortionWrapper) HasSetWidth() bool { - return t_.RespondsToSelector(objc.Sel("setWidth:")) +func (t_ TorusLensDistortionObject) HasSetRadius() bool { + return t_.RespondsToSelector(objc.Sel("setRadius:")) } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/citoruslensdistortion/3600201-width?language=objc -func (t_ TorusLensDistortionWrapper) SetWidth(value float64) { - objc.Call[objc.Void](t_, objc.Sel("setWidth:"), value) +// [Full Topic]: https://developer.apple.com/documentation/coreimage/citoruslensdistortion/3600199-radius?language=objc +func (t_ TorusLensDistortionObject) SetRadius(value float64) { + objc.Call[objc.Void](t_, objc.Sel("setRadius:"), value) } -func (t_ TorusLensDistortionWrapper) HasWidth() bool { - return t_.RespondsToSelector(objc.Sel("width")) +func (t_ TorusLensDistortionObject) HasRadius() bool { + return t_.RespondsToSelector(objc.Sel("radius")) } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/citoruslensdistortion/3600201-width?language=objc -func (t_ TorusLensDistortionWrapper) Width() float64 { - rv := objc.Call[float64](t_, objc.Sel("width")) +// [Full Topic]: https://developer.apple.com/documentation/coreimage/citoruslensdistortion/3600199-radius?language=objc +func (t_ TorusLensDistortionObject) Radius() float64 { + rv := objc.Call[float64](t_, objc.Sel("radius")) return rv } -func (t_ TorusLensDistortionWrapper) HasSetInputImage() bool { - return t_.RespondsToSelector(objc.Sel("setInputImage:")) +func (t_ TorusLensDistortionObject) HasSetWidth() bool { + return t_.RespondsToSelector(objc.Sel("setWidth:")) } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/citoruslensdistortion/3600198-inputimage?language=objc -func (t_ TorusLensDistortionWrapper) SetInputImage(value IImage) { - objc.Call[objc.Void](t_, objc.Sel("setInputImage:"), objc.Ptr(value)) +// [Full Topic]: https://developer.apple.com/documentation/coreimage/citoruslensdistortion/3600201-width?language=objc +func (t_ TorusLensDistortionObject) SetWidth(value float64) { + objc.Call[objc.Void](t_, objc.Sel("setWidth:"), value) } -func (t_ TorusLensDistortionWrapper) HasInputImage() bool { - return t_.RespondsToSelector(objc.Sel("inputImage")) +func (t_ TorusLensDistortionObject) HasWidth() bool { + return t_.RespondsToSelector(objc.Sel("width")) } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/citoruslensdistortion/3600198-inputimage?language=objc -func (t_ TorusLensDistortionWrapper) InputImage() Image { - rv := objc.Call[Image](t_, objc.Sel("inputImage")) +// [Full Topic]: https://developer.apple.com/documentation/coreimage/citoruslensdistortion/3600201-width?language=objc +func (t_ TorusLensDistortionObject) Width() float64 { + rv := objc.Call[float64](t_, objc.Sel("width")) return rv } -func (t_ TorusLensDistortionWrapper) HasSetRefraction() bool { +func (t_ TorusLensDistortionObject) HasSetRefraction() bool { return t_.RespondsToSelector(objc.Sel("setRefraction:")) } // [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/coreimage/citoruslensdistortion/3600200-refraction?language=objc -func (t_ TorusLensDistortionWrapper) SetRefraction(value float64) { +func (t_ TorusLensDistortionObject) SetRefraction(value float64) { objc.Call[objc.Void](t_, objc.Sel("setRefraction:"), value) } -func (t_ TorusLensDistortionWrapper) HasRefraction() bool { +func (t_ TorusLensDistortionObject) HasRefraction() bool { return t_.RespondsToSelector(objc.Sel("refraction")) } // [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/coreimage/citoruslensdistortion/3600200-refraction?language=objc -func (t_ TorusLensDistortionWrapper) Refraction() float64 { +func (t_ TorusLensDistortionObject) Refraction() float64 { rv := objc.Call[float64](t_, objc.Sel("refraction")) return rv } -func (t_ TorusLensDistortionWrapper) HasSetRadius() bool { - return t_.RespondsToSelector(objc.Sel("setRadius:")) +func (t_ TorusLensDistortionObject) HasSetCenter() bool { + return t_.RespondsToSelector(objc.Sel("setCenter:")) } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/citoruslensdistortion/3600199-radius?language=objc -func (t_ TorusLensDistortionWrapper) SetRadius(value float64) { - objc.Call[objc.Void](t_, objc.Sel("setRadius:"), 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_ TorusLensDistortionWrapper) HasRadius() bool { - return t_.RespondsToSelector(objc.Sel("radius")) +func (t_ TorusLensDistortionObject) HasCenter() bool { + return t_.RespondsToSelector(objc.Sel("center")) } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/citoruslensdistortion/3600199-radius?language=objc -func (t_ TorusLensDistortionWrapper) Radius() float64 { - rv := objc.Call[float64](t_, objc.Sel("radius")) +// [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 } -func (t_ TorusLensDistortionWrapper) HasSetCenter() bool { - return t_.RespondsToSelector(objc.Sel("setCenter:")) +func (t_ TorusLensDistortionObject) HasSetInputImage() bool { + return t_.RespondsToSelector(objc.Sel("setInputImage:")) } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/citoruslensdistortion/3600197-center?language=objc -func (t_ TorusLensDistortionWrapper) SetCenter(value coregraphics.Point) { - objc.Call[objc.Void](t_, objc.Sel("setCenter:"), 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:"), objc.Ptr(value)) } -func (t_ TorusLensDistortionWrapper) HasCenter() bool { - return t_.RespondsToSelector(objc.Sel("center")) +func (t_ TorusLensDistortionObject) HasInputImage() bool { + return t_.RespondsToSelector(objc.Sel("inputImage")) } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/citoruslensdistortion/3600197-center?language=objc -func (t_ TorusLensDistortionWrapper) Center() coregraphics.Point { - rv := objc.Call[coregraphics.Point](t_, objc.Sel("center")) +// [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 } diff --git a/macos/coreimage/transition_filter.gen.go b/macos/coreimage/transition_filter_protocol.gen.go similarity index 71% rename from macos/coreimage/transition_filter.gen.go rename to macos/coreimage/transition_filter_protocol.gen.go index 365c86c0..45ea4c73 100644 --- a/macos/coreimage/transition_filter.gen.go +++ b/macos/coreimage/transition_filter_protocol.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package coreimage @@ -11,100 +11,103 @@ import ( // [Full Topic]: https://developer.apple.com/documentation/coreimage/citransitionfilter?language=objc type PTransitionFilter interface { // optional - SetInputImage(value Image) - HasSetInputImage() bool + SetTime(value float64) + HasSetTime() bool // optional - InputImage() IImage - HasInputImage() bool + Time() float64 + HasTime() bool // optional SetTargetImage(value Image) HasSetTargetImage() bool // optional - TargetImage() IImage + TargetImage() Image HasTargetImage() bool // optional - SetTime(value float64) - HasSetTime() bool + SetInputImage(value Image) + HasSetInputImage() bool // optional - Time() float64 - HasTime() bool + InputImage() Image + HasInputImage() bool } -// A concrete type wrapper for the [PTransitionFilter] protocol. -type TransitionFilterWrapper struct { +// ensure impl type implements protocol interface +var _ PTransitionFilter = (*TransitionFilterObject)(nil) + +// A concrete type for the [PTransitionFilter] protocol. +type TransitionFilterObject struct { objc.Object } -func (t_ TransitionFilterWrapper) 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_ TransitionFilterWrapper) SetInputImage(value IImage) { - objc.Call[objc.Void](t_, objc.Sel("setInputImage:"), objc.Ptr(value)) +// [Full Topic]: https://developer.apple.com/documentation/coreimage/citransitionfilter/3228801-time?language=objc +func (t_ TransitionFilterObject) SetTime(value float64) { + objc.Call[objc.Void](t_, objc.Sel("setTime:"), value) } -func (t_ TransitionFilterWrapper) 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_ TransitionFilterWrapper) 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() float64 { + rv := objc.Call[float64](t_, objc.Sel("time")) return rv } -func (t_ TransitionFilterWrapper) HasSetTargetImage() bool { +func (t_ TransitionFilterObject) HasSetTargetImage() bool { return t_.RespondsToSelector(objc.Sel("setTargetImage:")) } // The target image for a transition. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/coreimage/citransitionfilter/3228800-targetimage?language=objc -func (t_ TransitionFilterWrapper) SetTargetImage(value IImage) { +func (t_ TransitionFilterObject) SetTargetImage(value Image) { objc.Call[objc.Void](t_, objc.Sel("setTargetImage:"), objc.Ptr(value)) } -func (t_ TransitionFilterWrapper) HasTargetImage() bool { +func (t_ TransitionFilterObject) HasTargetImage() bool { return t_.RespondsToSelector(objc.Sel("targetImage")) } // The target image for a transition. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/coreimage/citransitionfilter/3228800-targetimage?language=objc -func (t_ TransitionFilterWrapper) TargetImage() Image { +func (t_ TransitionFilterObject) TargetImage() Image { rv := objc.Call[Image](t_, objc.Sel("targetImage")) return rv } -func (t_ TransitionFilterWrapper) 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_ TransitionFilterWrapper) SetTime(value float64) { - 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:"), objc.Ptr(value)) } -func (t_ TransitionFilterWrapper) 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_ TransitionFilterWrapper) Time() float64 { - rv := objc.Call[float64](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 } diff --git a/macos/coreimage/triangle_kaleidoscope.gen.go b/macos/coreimage/triangle_kaleidoscope_protocol.gen.go similarity index 73% rename from macos/coreimage/triangle_kaleidoscope.gen.go rename to macos/coreimage/triangle_kaleidoscope_protocol.gen.go index 7d0e324b..e61f6d6f 100644 --- a/macos/coreimage/triangle_kaleidoscope.gen.go +++ b/macos/coreimage/triangle_kaleidoscope_protocol.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package coreimage @@ -11,14 +11,30 @@ 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 // optional - InputImage() IImage + InputImage() Image HasInputImage() bool + // optional + SetSize(value float64) + HasSetSize() bool + + // optional + Size() float64 + HasSize() bool + // optional SetDecay(value float64) HasSetDecay() bool @@ -34,140 +50,127 @@ type PTriangleKaleidoscope interface { // optional Rotation() float64 HasRotation() bool +} - // optional - SetPoint(value coregraphics.Point) - HasSetPoint() bool +// ensure impl type implements protocol interface +var _ PTriangleKaleidoscope = (*TriangleKaleidoscopeObject)(nil) - // optional - Point() coregraphics.Point - HasPoint() bool +// A concrete type for the [PTriangleKaleidoscope] protocol. +type TriangleKaleidoscopeObject struct { + objc.Object +} - // optional - SetSize(value float64) - HasSetSize() bool +func (t_ TriangleKaleidoscopeObject) HasSetPoint() bool { + return t_.RespondsToSelector(objc.Sel("setPoint:")) +} - // optional - Size() float64 - HasSize() bool +// 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) } -// A concrete type wrapper for the [PTriangleKaleidoscope] protocol. -type TriangleKaleidoscopeWrapper struct { - objc.Object +func (t_ TriangleKaleidoscopeObject) HasPoint() bool { + return t_.RespondsToSelector(objc.Sel("point")) } -func (t_ TriangleKaleidoscopeWrapper) HasSetInputImage() bool { +// 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:")) } // The image to use as an input image. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/coreimage/citrianglekaleidoscope/3228804-inputimage?language=objc -func (t_ TriangleKaleidoscopeWrapper) SetInputImage(value IImage) { +func (t_ TriangleKaleidoscopeObject) SetInputImage(value Image) { objc.Call[objc.Void](t_, objc.Sel("setInputImage:"), objc.Ptr(value)) } -func (t_ TriangleKaleidoscopeWrapper) HasInputImage() bool { +func (t_ TriangleKaleidoscopeObject) HasInputImage() bool { return t_.RespondsToSelector(objc.Sel("inputImage")) } // The image to use as an input image. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/coreimage/citrianglekaleidoscope/3228804-inputimage?language=objc -func (t_ TriangleKaleidoscopeWrapper) InputImage() Image { +func (t_ TriangleKaleidoscopeObject) InputImage() Image { rv := objc.Call[Image](t_, objc.Sel("inputImage")) return rv } -func (t_ TriangleKaleidoscopeWrapper) HasSetDecay() bool { +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 float64) { + 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() float64 { + rv := objc.Call[float64](t_, objc.Sel("size")) + return rv +} + +func (t_ TriangleKaleidoscopeObject) HasSetDecay() bool { return t_.RespondsToSelector(objc.Sel("setDecay:")) } // A value that determines how fast the color fades from the center triangle. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/coreimage/citrianglekaleidoscope/3228803-decay?language=objc -func (t_ TriangleKaleidoscopeWrapper) SetDecay(value float64) { +func (t_ TriangleKaleidoscopeObject) SetDecay(value float64) { objc.Call[objc.Void](t_, objc.Sel("setDecay:"), value) } -func (t_ TriangleKaleidoscopeWrapper) HasDecay() bool { +func (t_ TriangleKaleidoscopeObject) HasDecay() bool { return t_.RespondsToSelector(objc.Sel("decay")) } // A value that determines how fast the color fades from the center triangle. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/coreimage/citrianglekaleidoscope/3228803-decay?language=objc -func (t_ TriangleKaleidoscopeWrapper) Decay() float64 { +func (t_ TriangleKaleidoscopeObject) Decay() float64 { rv := objc.Call[float64](t_, objc.Sel("decay")) return rv } -func (t_ TriangleKaleidoscopeWrapper) HasSetRotation() bool { +func (t_ TriangleKaleidoscopeObject) HasSetRotation() bool { return t_.RespondsToSelector(objc.Sel("setRotation:")) } // The rotation angle of the triangle. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/coreimage/citrianglekaleidoscope/3228806-rotation?language=objc -func (t_ TriangleKaleidoscopeWrapper) SetRotation(value float64) { +func (t_ TriangleKaleidoscopeObject) SetRotation(value float64) { objc.Call[objc.Void](t_, objc.Sel("setRotation:"), value) } -func (t_ TriangleKaleidoscopeWrapper) HasRotation() bool { +func (t_ TriangleKaleidoscopeObject) HasRotation() bool { return t_.RespondsToSelector(objc.Sel("rotation")) } // The rotation angle of the triangle. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/coreimage/citrianglekaleidoscope/3228806-rotation?language=objc -func (t_ TriangleKaleidoscopeWrapper) Rotation() float64 { +func (t_ TriangleKaleidoscopeObject) Rotation() float64 { rv := objc.Call[float64](t_, objc.Sel("rotation")) return rv } - -func (t_ TriangleKaleidoscopeWrapper) 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_ TriangleKaleidoscopeWrapper) SetPoint(value coregraphics.Point) { - objc.Call[objc.Void](t_, objc.Sel("setPoint:"), value) -} - -func (t_ TriangleKaleidoscopeWrapper) 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_ TriangleKaleidoscopeWrapper) Point() coregraphics.Point { - rv := objc.Call[coregraphics.Point](t_, objc.Sel("point")) - return rv -} - -func (t_ TriangleKaleidoscopeWrapper) 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_ TriangleKaleidoscopeWrapper) SetSize(value float64) { - objc.Call[objc.Void](t_, objc.Sel("setSize:"), value) -} - -func (t_ TriangleKaleidoscopeWrapper) 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_ TriangleKaleidoscopeWrapper) Size() float64 { - rv := objc.Call[float64](t_, objc.Sel("size")) - return rv -} diff --git a/macos/coreimage/triangle_tile.gen.go b/macos/coreimage/triangle_tile_protocol.gen.go similarity index 74% rename from macos/coreimage/triangle_tile.gen.go rename to macos/coreimage/triangle_tile_protocol.gen.go index 472c8545..e06a0ebc 100644 --- a/macos/coreimage/triangle_tile.gen.go +++ b/macos/coreimage/triangle_tile_protocol.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package coreimage @@ -19,12 +19,20 @@ type PTriangleTile interface { Width() float64 HasWidth() bool + // optional + SetCenter(value coregraphics.Point) + HasSetCenter() bool + + // optional + Center() coregraphics.Point + HasCenter() bool + // optional SetInputImage(value Image) HasSetInputImage() bool // optional - InputImage() IImage + InputImage() Image HasInputImage() bool // optional @@ -34,109 +42,104 @@ type PTriangleTile interface { // optional Angle() float64 HasAngle() bool - - // optional - SetCenter(value coregraphics.Point) - HasSetCenter() bool - - // optional - Center() coregraphics.Point - HasCenter() bool } -// A concrete type wrapper for the [PTriangleTile] protocol. -type TriangleTileWrapper struct { +// ensure impl type implements protocol interface +var _ PTriangleTile = (*TriangleTileObject)(nil) + +// A concrete type for the [PTriangleTile] protocol. +type TriangleTileObject struct { objc.Object } -func (t_ TriangleTileWrapper) HasSetWidth() bool { +func (t_ TriangleTileObject) HasSetWidth() bool { return t_.RespondsToSelector(objc.Sel("setWidth:")) } // The width of a tile. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/coreimage/citriangletile/3228812-width?language=objc -func (t_ TriangleTileWrapper) SetWidth(value float64) { +func (t_ TriangleTileObject) SetWidth(value float64) { objc.Call[objc.Void](t_, objc.Sel("setWidth:"), value) } -func (t_ TriangleTileWrapper) HasWidth() bool { +func (t_ TriangleTileObject) HasWidth() bool { return t_.RespondsToSelector(objc.Sel("width")) } // The width of a tile. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/coreimage/citriangletile/3228812-width?language=objc -func (t_ TriangleTileWrapper) Width() float64 { +func (t_ TriangleTileObject) Width() float64 { rv := objc.Call[float64](t_, objc.Sel("width")) return rv } -func (t_ TriangleTileWrapper) HasSetInputImage() bool { +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:")) } // The image to use as an input image. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/coreimage/citriangletile/3228811-inputimage?language=objc -func (t_ TriangleTileWrapper) SetInputImage(value IImage) { +func (t_ TriangleTileObject) SetInputImage(value Image) { objc.Call[objc.Void](t_, objc.Sel("setInputImage:"), objc.Ptr(value)) } -func (t_ TriangleTileWrapper) HasInputImage() bool { +func (t_ TriangleTileObject) HasInputImage() bool { return t_.RespondsToSelector(objc.Sel("inputImage")) } // The image to use as an input image. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/coreimage/citriangletile/3228811-inputimage?language=objc -func (t_ TriangleTileWrapper) InputImage() Image { +func (t_ TriangleTileObject) InputImage() Image { rv := objc.Call[Image](t_, objc.Sel("inputImage")) return rv } -func (t_ TriangleTileWrapper) HasSetAngle() bool { +func (t_ TriangleTileObject) 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/citriangletile/3228809-angle?language=objc -func (t_ TriangleTileWrapper) SetAngle(value float64) { +func (t_ TriangleTileObject) SetAngle(value float64) { objc.Call[objc.Void](t_, objc.Sel("setAngle:"), value) } -func (t_ TriangleTileWrapper) HasAngle() bool { +func (t_ TriangleTileObject) 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/citriangletile/3228809-angle?language=objc -func (t_ TriangleTileWrapper) Angle() float64 { +func (t_ TriangleTileObject) Angle() float64 { rv := objc.Call[float64](t_, objc.Sel("angle")) return rv } - -func (t_ TriangleTileWrapper) 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_ TriangleTileWrapper) SetCenter(value coregraphics.Point) { - objc.Call[objc.Void](t_, objc.Sel("setCenter:"), value) -} - -func (t_ TriangleTileWrapper) 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_ TriangleTileWrapper) Center() coregraphics.Point { - rv := objc.Call[coregraphics.Point](t_, objc.Sel("center")) - return rv -} diff --git a/macos/coreimage/twelvefold_reflected_tile.gen.go b/macos/coreimage/twelvefold_reflected_tile_protocol.gen.go similarity index 71% rename from macos/coreimage/twelvefold_reflected_tile.gen.go rename to macos/coreimage/twelvefold_reflected_tile_protocol.gen.go index d01d6c94..a2c88731 100644 --- a/macos/coreimage/twelvefold_reflected_tile.gen.go +++ b/macos/coreimage/twelvefold_reflected_tile_protocol.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package coreimage @@ -11,22 +11,6 @@ import ( // // [Full Topic]: https://developer.apple.com/documentation/coreimage/citwelvefoldreflectedtile?language=objc type PTwelvefoldReflectedTile interface { - // optional - SetWidth(value float64) - HasSetWidth() bool - - // optional - Width() float64 - HasWidth() bool - - // optional - SetInputImage(value Image) - HasSetInputImage() bool - - // optional - InputImage() IImage - HasInputImage() bool - // optional SetAngle(value float64) HasSetAngle() bool @@ -42,101 +26,120 @@ type PTwelvefoldReflectedTile interface { // optional Center() coregraphics.Point HasCenter() bool + + // optional + SetWidth(value float64) + HasSetWidth() bool + + // optional + Width() float64 + HasWidth() bool + + // optional + SetInputImage(value Image) + HasSetInputImage() bool + + // optional + InputImage() Image + HasInputImage() bool } -// A concrete type wrapper for the [PTwelvefoldReflectedTile] protocol. -type TwelvefoldReflectedTileWrapper struct { +// ensure impl type implements protocol interface +var _ PTwelvefoldReflectedTile = (*TwelvefoldReflectedTileObject)(nil) + +// A concrete type for the [PTwelvefoldReflectedTile] protocol. +type TwelvefoldReflectedTileObject struct { objc.Object } -func (t_ TwelvefoldReflectedTileWrapper) HasSetWidth() bool { - return t_.RespondsToSelector(objc.Sel("setWidth:")) +func (t_ TwelvefoldReflectedTileObject) HasSetAngle() bool { + return t_.RespondsToSelector(objc.Sel("setAngle:")) } -// The width of a tile. [Full Topic] +// The angle, in radians, of the tiled pattern. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/citwelvefoldreflectedtile/3228817-width?language=objc -func (t_ TwelvefoldReflectedTileWrapper) SetWidth(value float64) { - objc.Call[objc.Void](t_, objc.Sel("setWidth:"), value) +// [Full Topic]: https://developer.apple.com/documentation/coreimage/citwelvefoldreflectedtile/3228814-angle?language=objc +func (t_ TwelvefoldReflectedTileObject) SetAngle(value float64) { + objc.Call[objc.Void](t_, objc.Sel("setAngle:"), value) } -func (t_ TwelvefoldReflectedTileWrapper) HasWidth() bool { - return t_.RespondsToSelector(objc.Sel("width")) +func (t_ TwelvefoldReflectedTileObject) HasAngle() bool { + return t_.RespondsToSelector(objc.Sel("angle")) } -// The width of a tile. [Full Topic] +// The angle, in radians, of the tiled pattern. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/citwelvefoldreflectedtile/3228817-width?language=objc -func (t_ TwelvefoldReflectedTileWrapper) Width() float64 { - rv := objc.Call[float64](t_, objc.Sel("width")) +// [Full Topic]: https://developer.apple.com/documentation/coreimage/citwelvefoldreflectedtile/3228814-angle?language=objc +func (t_ TwelvefoldReflectedTileObject) Angle() float64 { + rv := objc.Call[float64](t_, objc.Sel("angle")) return rv } -func (t_ TwelvefoldReflectedTileWrapper) HasSetInputImage() bool { - return t_.RespondsToSelector(objc.Sel("setInputImage:")) +func (t_ TwelvefoldReflectedTileObject) HasSetCenter() bool { + return t_.RespondsToSelector(objc.Sel("setCenter:")) } -// The image to use as an input image. [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/citwelvefoldreflectedtile/3228816-inputimage?language=objc -func (t_ TwelvefoldReflectedTileWrapper) SetInputImage(value IImage) { - objc.Call[objc.Void](t_, objc.Sel("setInputImage:"), objc.Ptr(value)) +// [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_ TwelvefoldReflectedTileWrapper) HasInputImage() bool { - return t_.RespondsToSelector(objc.Sel("inputImage")) +func (t_ TwelvefoldReflectedTileObject) HasCenter() bool { + return t_.RespondsToSelector(objc.Sel("center")) } -// The image to use as an input image. [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/citwelvefoldreflectedtile/3228816-inputimage?language=objc -func (t_ TwelvefoldReflectedTileWrapper) InputImage() Image { - rv := objc.Call[Image](t_, objc.Sel("inputImage")) +// [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_ TwelvefoldReflectedTileWrapper) HasSetAngle() bool { - return t_.RespondsToSelector(objc.Sel("setAngle:")) +func (t_ TwelvefoldReflectedTileObject) HasSetWidth() bool { + return t_.RespondsToSelector(objc.Sel("setWidth:")) } -// The angle, in radians, of the tiled pattern. [Full Topic] +// The width of a tile. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/citwelvefoldreflectedtile/3228814-angle?language=objc -func (t_ TwelvefoldReflectedTileWrapper) SetAngle(value float64) { - objc.Call[objc.Void](t_, objc.Sel("setAngle:"), value) +// [Full Topic]: https://developer.apple.com/documentation/coreimage/citwelvefoldreflectedtile/3228817-width?language=objc +func (t_ TwelvefoldReflectedTileObject) SetWidth(value float64) { + objc.Call[objc.Void](t_, objc.Sel("setWidth:"), value) } -func (t_ TwelvefoldReflectedTileWrapper) HasAngle() bool { - return t_.RespondsToSelector(objc.Sel("angle")) +func (t_ TwelvefoldReflectedTileObject) HasWidth() bool { + return t_.RespondsToSelector(objc.Sel("width")) } -// The angle, in radians, of the tiled pattern. [Full Topic] +// The width of a tile. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/citwelvefoldreflectedtile/3228814-angle?language=objc -func (t_ TwelvefoldReflectedTileWrapper) Angle() float64 { - rv := objc.Call[float64](t_, objc.Sel("angle")) +// [Full Topic]: https://developer.apple.com/documentation/coreimage/citwelvefoldreflectedtile/3228817-width?language=objc +func (t_ TwelvefoldReflectedTileObject) Width() float64 { + rv := objc.Call[float64](t_, objc.Sel("width")) return rv } -func (t_ TwelvefoldReflectedTileWrapper) HasSetCenter() bool { - return t_.RespondsToSelector(objc.Sel("setCenter:")) +func (t_ TwelvefoldReflectedTileObject) HasSetInputImage() bool { + return t_.RespondsToSelector(objc.Sel("setInputImage:")) } -// The x and y position to use as 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/citwelvefoldreflectedtile/3228815-center?language=objc -func (t_ TwelvefoldReflectedTileWrapper) SetCenter(value coregraphics.Point) { - objc.Call[objc.Void](t_, objc.Sel("setCenter:"), value) +// [Full Topic]: https://developer.apple.com/documentation/coreimage/citwelvefoldreflectedtile/3228816-inputimage?language=objc +func (t_ TwelvefoldReflectedTileObject) SetInputImage(value Image) { + objc.Call[objc.Void](t_, objc.Sel("setInputImage:"), objc.Ptr(value)) } -func (t_ TwelvefoldReflectedTileWrapper) HasCenter() bool { - return t_.RespondsToSelector(objc.Sel("center")) +func (t_ TwelvefoldReflectedTileObject) HasInputImage() bool { + return t_.RespondsToSelector(objc.Sel("inputImage")) } -// The x and y position to use as 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/citwelvefoldreflectedtile/3228815-center?language=objc -func (t_ TwelvefoldReflectedTileWrapper) Center() coregraphics.Point { - rv := objc.Call[coregraphics.Point](t_, objc.Sel("center")) +// [Full Topic]: https://developer.apple.com/documentation/coreimage/citwelvefoldreflectedtile/3228816-inputimage?language=objc +func (t_ TwelvefoldReflectedTileObject) InputImage() Image { + rv := objc.Call[Image](t_, objc.Sel("inputImage")) return rv } diff --git a/macos/coreimage/twirl_distortion.gen.go b/macos/coreimage/twirl_distortion_protocol.gen.go similarity index 70% rename from macos/coreimage/twirl_distortion.gen.go rename to macos/coreimage/twirl_distortion_protocol.gen.go index da1f2a2b..14e70eef 100644 --- a/macos/coreimage/twirl_distortion.gen.go +++ b/macos/coreimage/twirl_distortion_protocol.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package coreimage @@ -12,20 +12,12 @@ import ( // [Full Topic]: https://developer.apple.com/documentation/coreimage/citwirldistortion?language=objc type PTwirlDistortion interface { // optional - SetInputImage(value Image) - HasSetInputImage() bool - - // optional - InputImage() IImage - HasInputImage() bool - - // optional - SetRadius(value float64) - HasSetRadius() bool + SetCenter(value coregraphics.Point) + HasSetCenter() bool // optional - Radius() float64 - HasRadius() bool + Center() coregraphics.Point + HasCenter() bool // optional SetAngle(value float64) @@ -36,107 +28,118 @@ type PTwirlDistortion interface { HasAngle() bool // optional - SetCenter(value coregraphics.Point) - HasSetCenter() bool + SetRadius(value float64) + HasSetRadius() bool // optional - Center() coregraphics.Point - HasCenter() bool + Radius() float64 + HasRadius() bool + + // optional + SetInputImage(value Image) + HasSetInputImage() bool + + // optional + InputImage() Image + HasInputImage() bool } -// A concrete type wrapper for the [PTwirlDistortion] protocol. -type TwirlDistortionWrapper struct { +// ensure impl type implements protocol interface +var _ PTwirlDistortion = (*TwirlDistortionObject)(nil) + +// A concrete type for the [PTwirlDistortion] protocol. +type TwirlDistortionObject struct { objc.Object } -func (t_ TwirlDistortionWrapper) 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_ TwirlDistortionWrapper) SetInputImage(value IImage) { - objc.Call[objc.Void](t_, objc.Sel("setInputImage:"), objc.Ptr(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_ TwirlDistortionWrapper) 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_ TwirlDistortionWrapper) 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 } -func (t_ TwirlDistortionWrapper) 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_ TwirlDistortionWrapper) SetRadius(value float64) { - 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 float64) { + objc.Call[objc.Void](t_, objc.Sel("setAngle:"), value) } -func (t_ TwirlDistortionWrapper) 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_ TwirlDistortionWrapper) Radius() float64 { - rv := objc.Call[float64](t_, objc.Sel("radius")) +// [Full Topic]: https://developer.apple.com/documentation/coreimage/citwirldistortion/3600203-angle?language=objc +func (t_ TwirlDistortionObject) Angle() float64 { + rv := objc.Call[float64](t_, objc.Sel("angle")) return rv } -func (t_ TwirlDistortionWrapper) 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_ TwirlDistortionWrapper) SetAngle(value float64) { - 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 float64) { + objc.Call[objc.Void](t_, objc.Sel("setRadius:"), value) } -func (t_ TwirlDistortionWrapper) 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_ TwirlDistortionWrapper) Angle() float64 { - rv := objc.Call[float64](t_, objc.Sel("angle")) +// [Full Topic]: https://developer.apple.com/documentation/coreimage/citwirldistortion/3600206-radius?language=objc +func (t_ TwirlDistortionObject) Radius() float64 { + rv := objc.Call[float64](t_, objc.Sel("radius")) return rv } -func (t_ TwirlDistortionWrapper) 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_ TwirlDistortionWrapper) 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:"), objc.Ptr(value)) } -func (t_ TwirlDistortionWrapper) 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_ TwirlDistortionWrapper) 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 } diff --git a/macos/coreimage/unsharp_mask.gen.go b/macos/coreimage/unsharp_mask_protocol.gen.go similarity index 73% rename from macos/coreimage/unsharp_mask.gen.go rename to macos/coreimage/unsharp_mask_protocol.gen.go index 4a62ce77..9f7444f4 100644 --- a/macos/coreimage/unsharp_mask.gen.go +++ b/macos/coreimage/unsharp_mask_protocol.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package coreimage @@ -10,14 +10,6 @@ import ( // // [Full Topic]: https://developer.apple.com/documentation/coreimage/ciunsharpmask?language=objc type PUnsharpMask interface { - // optional - SetInputImage(value Image) - HasSetInputImage() bool - - // optional - InputImage() IImage - HasInputImage() bool - // optional SetIntensity(value float64) HasSetIntensity() bool @@ -33,78 +25,89 @@ type PUnsharpMask interface { // optional Radius() float64 HasRadius() bool -} - -// A concrete type wrapper for the [PUnsharpMask] protocol. -type UnsharpMaskWrapper struct { - objc.Object -} -func (u_ UnsharpMaskWrapper) HasSetInputImage() bool { - return u_.RespondsToSelector(objc.Sel("setInputImage:")) -} + // optional + SetInputImage(value Image) + HasSetInputImage() bool -// 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_ UnsharpMaskWrapper) SetInputImage(value IImage) { - objc.Call[objc.Void](u_, objc.Sel("setInputImage:"), objc.Ptr(value)) + // optional + InputImage() Image + HasInputImage() bool } -func (u_ UnsharpMaskWrapper) HasInputImage() bool { - return u_.RespondsToSelector(objc.Sel("inputImage")) -} +// ensure impl type implements protocol interface +var _ PUnsharpMask = (*UnsharpMaskObject)(nil) -// 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_ UnsharpMaskWrapper) InputImage() Image { - rv := objc.Call[Image](u_, objc.Sel("inputImage")) - return rv +// A concrete type for the [PUnsharpMask] protocol. +type UnsharpMaskObject struct { + objc.Object } -func (u_ UnsharpMaskWrapper) HasSetIntensity() bool { +func (u_ UnsharpMaskObject) HasSetIntensity() bool { return u_.RespondsToSelector(objc.Sel("setIntensity:")) } // The intensity of the effect. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/coreimage/ciunsharpmask/3228820-intensity?language=objc -func (u_ UnsharpMaskWrapper) SetIntensity(value float64) { +func (u_ UnsharpMaskObject) SetIntensity(value float64) { objc.Call[objc.Void](u_, objc.Sel("setIntensity:"), value) } -func (u_ UnsharpMaskWrapper) HasIntensity() bool { +func (u_ UnsharpMaskObject) HasIntensity() bool { return u_.RespondsToSelector(objc.Sel("intensity")) } // The intensity of the effect. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/coreimage/ciunsharpmask/3228820-intensity?language=objc -func (u_ UnsharpMaskWrapper) Intensity() float64 { +func (u_ UnsharpMaskObject) Intensity() float64 { rv := objc.Call[float64](u_, objc.Sel("intensity")) return rv } -func (u_ UnsharpMaskWrapper) HasSetRadius() bool { +func (u_ UnsharpMaskObject) HasSetRadius() bool { return u_.RespondsToSelector(objc.Sel("setRadius:")) } // The radius of the unsharp mask effect. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/coreimage/ciunsharpmask/3228821-radius?language=objc -func (u_ UnsharpMaskWrapper) SetRadius(value float64) { +func (u_ UnsharpMaskObject) SetRadius(value float64) { objc.Call[objc.Void](u_, objc.Sel("setRadius:"), value) } -func (u_ UnsharpMaskWrapper) HasRadius() bool { +func (u_ UnsharpMaskObject) HasRadius() bool { return u_.RespondsToSelector(objc.Sel("radius")) } // The radius of the unsharp mask effect. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/coreimage/ciunsharpmask/3228821-radius?language=objc -func (u_ UnsharpMaskWrapper) Radius() float64 { +func (u_ UnsharpMaskObject) Radius() float64 { rv := objc.Call[float64](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:"), objc.Ptr(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 a5ffae9f..6bdc99ab 100644 --- a/macos/coreimage/vector.gen.go +++ b/macos/coreimage/vector.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package coreimage @@ -20,19 +20,15 @@ type _VectorClass struct { type IVector interface { objc.IObject ValueAtIndex(index uint) float64 - X() float64 - SetX(value float64) + Count() uint Y() float64 - SetY(value float64) + StringRepresentation() string CGRectValue() coregraphics.Rect - Count() uint + W() float64 + Z() float64 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] @@ -48,16 +44,16 @@ func VectorFrom(ptr unsafe.Pointer) Vector { } } -func (v_ Vector) InitWithCGRect(r coregraphics.Rect) Vector { - rv := objc.Call[Vector](v_, objc.Sel("initWithCGRect:"), r) +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) return rv } -// Initializes a vector that is initialized with values provided by a CGRect structure. [Full Topic] +// Initializes four positions of a vector with the provided values. [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) +// [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) instance.Autorelease() return instance } @@ -76,16 +72,44 @@ func NewVectorWithValuesCount(values *float64, count uint) Vector { return instance } -func (vc _VectorClass) VectorWithCGAffineTransform(t coregraphics.AffineTransform) Vector { - rv := objc.Call[Vector](vc, objc.Sel("vectorWithCGAffineTransform:"), t) +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 values provided by a CGAffineTransform structure. [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/1564090-vectorwithcgaffinetransform?language=objc -func Vector_VectorWithCGAffineTransform(t coregraphics.AffineTransform) Vector { - return VectorClass.VectorWithCGAffineTransform(t) +// [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) + return rv +} + +// 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/1564086-vectorwithcgpoint?language=objc +func Vector_VectorWithCGPoint(p coregraphics.Point) Vector { + return VectorClass.VectorWithCGPoint(p) } func (v_ Vector) InitWithString(representation string) Vector { @@ -102,6 +126,18 @@ 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 @@ -116,30 +152,28 @@ func NewVectorWithXY(x float64, y float64) Vector { return instance } -func (vc _VectorClass) VectorWithX(x float64) Vector { - rv := objc.Call[Vector](vc, objc.Sel("vectorWithX:"), x) +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 one value. [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/1564092-vectorwithx?language=objc -func Vector_VectorWithX(x float64) Vector { - return VectorClass.VectorWithX(x) +// [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 (v_ Vector) InitWithCGAffineTransform(r coregraphics.AffineTransform) Vector { - rv := objc.Call[Vector](v_, objc.Sel("initWithCGAffineTransform:"), r) +func (vc _VectorClass) VectorWithX(x float64) Vector { + rv := objc.Call[Vector](vc, objc.Sel("vectorWithX:"), x) return rv } -// Initializes a vector that is initialized with values provided by a CGAffineTransform structure. [Full Topic] +// Creates and returns a vector that is initialized with one value. [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 +// [Full Topic]: https://developer.apple.com/documentation/coreimage/civector/1564092-vectorwithx?language=objc +func Vector_VectorWithX(x float64) Vector { + return VectorClass.VectorWithX(x) } func (vc _VectorClass) VectorWithCGRect(r coregraphics.Rect) Vector { @@ -154,6 +188,30 @@ 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) + return rv +} + +// Creates and returns a vector that is initialized with three values. [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) +} + +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 in a string representation. [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) +} + func (v_ Vector) InitWithCGPoint(p coregraphics.Point) Vector { rv := objc.Call[Vector](v_, objc.Sel("initWithCGPoint:"), p) return rv @@ -168,49 +226,61 @@ func NewVectorWithCGPoint(p coregraphics.Point) Vector { return instance } -func (vc _VectorClass) VectorWithValuesCount(values *float64, count uint) Vector { - rv := objc.Call[Vector](vc, objc.Sel("vectorWithValues:count:"), values, count) +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 the specified values. [Full Topic] +// Creates and returns a vector that is initialized with four 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) +// [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 (vc _VectorClass) VectorWithString(representation string) Vector { - rv := objc.Call[Vector](vc, objc.Sel("vectorWithString:"), representation) +func (v_ Vector) InitWithX(x float64) Vector { + rv := objc.Call[Vector](v_, objc.Sel("initWithX:"), x) return rv } -// Creates and returns a vector that is initialized with values provided in a string representation. [Full Topic] +// Initializes the first position of a vector with the provided values. [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/1437657-initwithx?language=objc +func NewVectorWithX(x float64) Vector { + instance := VectorClass.Alloc().InitWithX(x) + 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 (vc _VectorClass) Alloc() Vector { - rv := objc.Call[Vector](vc, objc.Sel("alloc")) +func (v_ Vector) InitWithXYZ(x float64, y float64, z float64) Vector { + rv := objc.Call[Vector](v_, objc.Sel("initWithX:Y:Z:"), x, y, z) return rv } -func Vector_Alloc() Vector { - return VectorClass.Alloc() +// Initializes the first three positions of a vector with the provided values. [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 +} + +func (vc _VectorClass) Alloc() Vector { + rv := objc.Call[Vector](vc, objc.Sel("alloc")) + return rv } func (vc _VectorClass) New() Vector { @@ -236,21 +306,14 @@ func (v_ Vector) ValueAtIndex(index uint) float64 { return rv } -// The value located in the first position in the vector. [Full Topic] +// The number of items in 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/1438197-count?language=objc +func (v_ Vector) Count() uint { + rv := objc.Call[uint](v_, objc.Sel("count")) 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 @@ -259,11 +322,12 @@ func (v_ Vector) Y() float64 { return rv } -// The value located in the second position in the vector. [Full Topic] +// The string representation of the vector. [Full Topic] // -// [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) +// [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 as a Core Graphics rectangle structure. [Full Topic] @@ -274,27 +338,11 @@ func (v_ Vector) CGRectValue() coregraphics.Rect { return rv } -// The number of items 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")) - 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] +// 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 } @@ -306,32 +354,26 @@ func (v_ Vector) Z() float64 { return rv } -// The value located in the third position in the vector. [Full Topic] -// -// [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 string representation of the vector. [Full Topic] +// The values in the vector as a Core Graphics point structure. [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")) +// [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 value located in the fourth position 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/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/1437738-x?language=objc +func (v_ Vector) X() float64 { + rv := objc.Call[float64](v_, objc.Sel("X")) return rv } -// The value located in the fourth position in the vector. [Full Topic] +// The values in the vector represented as an affine transform. [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) +// [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 } diff --git a/macos/coreimage/vibrance.gen.go b/macos/coreimage/vibrance_protocol.gen.go similarity index 72% rename from macos/coreimage/vibrance.gen.go rename to macos/coreimage/vibrance_protocol.gen.go index 369448db..66e974b9 100644 --- a/macos/coreimage/vibrance.gen.go +++ b/macos/coreimage/vibrance_protocol.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package coreimage @@ -15,7 +15,7 @@ type PVibrance interface { HasSetInputImage() bool // optional - InputImage() IImage + InputImage() Image HasInputImage() bool // optional @@ -27,53 +27,56 @@ type PVibrance interface { HasAmount() bool } -// A concrete type wrapper for the [PVibrance] protocol. -type VibranceWrapper struct { +// ensure impl type implements protocol interface +var _ PVibrance = (*VibranceObject)(nil) + +// A concrete type for the [PVibrance] protocol. +type VibranceObject struct { objc.Object } -func (v_ VibranceWrapper) HasSetInputImage() bool { +func (v_ VibranceObject) 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/civibrance/3228824-inputimage?language=objc -func (v_ VibranceWrapper) SetInputImage(value IImage) { +func (v_ VibranceObject) SetInputImage(value Image) { objc.Call[objc.Void](v_, objc.Sel("setInputImage:"), objc.Ptr(value)) } -func (v_ VibranceWrapper) HasInputImage() bool { +func (v_ VibranceObject) 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/civibrance/3228824-inputimage?language=objc -func (v_ VibranceWrapper) InputImage() Image { +func (v_ VibranceObject) InputImage() Image { rv := objc.Call[Image](v_, objc.Sel("inputImage")) return rv } -func (v_ VibranceWrapper) HasSetAmount() bool { +func (v_ VibranceObject) HasSetAmount() bool { return v_.RespondsToSelector(objc.Sel("setAmount:")) } // The amount to adjust the saturation by. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/coreimage/civibrance/3228823-amount?language=objc -func (v_ VibranceWrapper) SetAmount(value float64) { +func (v_ VibranceObject) SetAmount(value float64) { objc.Call[objc.Void](v_, objc.Sel("setAmount:"), value) } -func (v_ VibranceWrapper) HasAmount() bool { +func (v_ VibranceObject) HasAmount() bool { return v_.RespondsToSelector(objc.Sel("amount")) } // The amount to adjust the saturation by. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/coreimage/civibrance/3228823-amount?language=objc -func (v_ VibranceWrapper) Amount() float64 { +func (v_ VibranceObject) Amount() float64 { rv := objc.Call[float64](v_, objc.Sel("amount")) return rv } diff --git a/macos/coreimage/vignette_effect.gen.go b/macos/coreimage/vignette_effect_protocol.gen.go similarity index 74% rename from macos/coreimage/vignette_effect.gen.go rename to macos/coreimage/vignette_effect_protocol.gen.go index 49eb7849..599db1ab 100644 --- a/macos/coreimage/vignette_effect.gen.go +++ b/macos/coreimage/vignette_effect_protocol.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package coreimage @@ -12,12 +12,12 @@ import ( // [Full Topic]: https://developer.apple.com/documentation/coreimage/civignetteeffect?language=objc type PVignetteEffect interface { // optional - SetInputImage(value Image) - HasSetInputImage() bool + SetRadius(value float64) + HasSetRadius() bool // optional - InputImage() IImage - HasInputImage() bool + Radius() float64 + HasRadius() bool // optional SetIntensity(value float64) @@ -28,20 +28,20 @@ type PVignetteEffect interface { HasIntensity() bool // optional - SetFalloff(value float64) - HasSetFalloff() bool + SetInputImage(value Image) + HasSetInputImage() bool // optional - Falloff() float64 - HasFalloff() bool + InputImage() Image + HasInputImage() bool // optional - SetRadius(value float64) - HasSetRadius() bool + SetFalloff(value float64) + HasSetFalloff() bool // optional - Radius() float64 - HasRadius() bool + Falloff() float64 + HasFalloff() bool // optional SetCenter(value coregraphics.Point) @@ -52,122 +52,125 @@ type PVignetteEffect interface { HasCenter() bool } -// A concrete type wrapper for the [PVignetteEffect] protocol. -type VignetteEffectWrapper struct { +// ensure impl type implements protocol interface +var _ PVignetteEffect = (*VignetteEffectObject)(nil) + +// A concrete type for the [PVignetteEffect] protocol. +type VignetteEffectObject struct { objc.Object } -func (v_ VignetteEffectWrapper) HasSetInputImage() bool { - return v_.RespondsToSelector(objc.Sel("setInputImage:")) +func (v_ VignetteEffectObject) 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/civignetteeffect/3228832-inputimage?language=objc -func (v_ VignetteEffectWrapper) SetInputImage(value IImage) { - objc.Call[objc.Void](v_, objc.Sel("setInputImage:"), objc.Ptr(value)) +// [Full Topic]: https://developer.apple.com/documentation/coreimage/civignetteeffect/3228834-radius?language=objc +func (v_ VignetteEffectObject) SetRadius(value float64) { + objc.Call[objc.Void](v_, objc.Sel("setRadius:"), value) } -func (v_ VignetteEffectWrapper) HasInputImage() bool { - return v_.RespondsToSelector(objc.Sel("inputImage")) +func (v_ VignetteEffectObject) 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/civignetteeffect/3228832-inputimage?language=objc -func (v_ VignetteEffectWrapper) InputImage() Image { - rv := objc.Call[Image](v_, objc.Sel("inputImage")) +// [Full Topic]: https://developer.apple.com/documentation/coreimage/civignetteeffect/3228834-radius?language=objc +func (v_ VignetteEffectObject) Radius() float64 { + rv := objc.Call[float64](v_, objc.Sel("radius")) return rv } -func (v_ VignetteEffectWrapper) HasSetIntensity() bool { +func (v_ VignetteEffectObject) HasSetIntensity() bool { return v_.RespondsToSelector(objc.Sel("setIntensity:")) } // The intensity of the effect. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/coreimage/civignetteeffect/3228833-intensity?language=objc -func (v_ VignetteEffectWrapper) SetIntensity(value float64) { +func (v_ VignetteEffectObject) SetIntensity(value float64) { objc.Call[objc.Void](v_, objc.Sel("setIntensity:"), value) } -func (v_ VignetteEffectWrapper) HasIntensity() bool { +func (v_ VignetteEffectObject) HasIntensity() bool { return v_.RespondsToSelector(objc.Sel("intensity")) } // The intensity of the effect. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/coreimage/civignetteeffect/3228833-intensity?language=objc -func (v_ VignetteEffectWrapper) Intensity() float64 { +func (v_ VignetteEffectObject) Intensity() float64 { rv := objc.Call[float64](v_, objc.Sel("intensity")) return rv } -func (v_ VignetteEffectWrapper) HasSetFalloff() bool { - return v_.RespondsToSelector(objc.Sel("setFalloff:")) +func (v_ VignetteEffectObject) HasSetInputImage() bool { + return v_.RespondsToSelector(objc.Sel("setInputImage:")) } -// The falloff of the effect. [Full Topic] +// The image to use as an input image. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/civignetteeffect/3228831-falloff?language=objc -func (v_ VignetteEffectWrapper) SetFalloff(value float64) { - objc.Call[objc.Void](v_, objc.Sel("setFalloff:"), 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:"), objc.Ptr(value)) } -func (v_ VignetteEffectWrapper) HasFalloff() bool { - return v_.RespondsToSelector(objc.Sel("falloff")) +func (v_ VignetteEffectObject) HasInputImage() bool { + return v_.RespondsToSelector(objc.Sel("inputImage")) } -// The falloff of the effect. [Full Topic] +// The image to use as an input image. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/civignetteeffect/3228831-falloff?language=objc -func (v_ VignetteEffectWrapper) Falloff() float64 { - rv := objc.Call[float64](v_, objc.Sel("falloff")) +// [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_ VignetteEffectWrapper) HasSetRadius() bool { - return v_.RespondsToSelector(objc.Sel("setRadius:")) +func (v_ VignetteEffectObject) HasSetFalloff() bool { + return v_.RespondsToSelector(objc.Sel("setFalloff:")) } -// The distance from the center of the effect. [Full Topic] +// The falloff of the effect. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/civignetteeffect/3228834-radius?language=objc -func (v_ VignetteEffectWrapper) SetRadius(value float64) { - objc.Call[objc.Void](v_, objc.Sel("setRadius:"), value) +// [Full Topic]: https://developer.apple.com/documentation/coreimage/civignetteeffect/3228831-falloff?language=objc +func (v_ VignetteEffectObject) SetFalloff(value float64) { + objc.Call[objc.Void](v_, objc.Sel("setFalloff:"), value) } -func (v_ VignetteEffectWrapper) HasRadius() bool { - return v_.RespondsToSelector(objc.Sel("radius")) +func (v_ VignetteEffectObject) HasFalloff() bool { + return v_.RespondsToSelector(objc.Sel("falloff")) } -// The distance from the center of the effect. [Full Topic] +// The falloff of the effect. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreimage/civignetteeffect/3228834-radius?language=objc -func (v_ VignetteEffectWrapper) Radius() float64 { - rv := objc.Call[float64](v_, objc.Sel("radius")) +// [Full Topic]: https://developer.apple.com/documentation/coreimage/civignetteeffect/3228831-falloff?language=objc +func (v_ VignetteEffectObject) Falloff() float64 { + rv := objc.Call[float64](v_, objc.Sel("falloff")) return rv } -func (v_ VignetteEffectWrapper) HasSetCenter() bool { +func (v_ VignetteEffectObject) HasSetCenter() bool { return v_.RespondsToSelector(objc.Sel("setCenter:")) } // The center of the effect as x and y coordinates. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/coreimage/civignetteeffect/3228830-center?language=objc -func (v_ VignetteEffectWrapper) SetCenter(value coregraphics.Point) { +func (v_ VignetteEffectObject) SetCenter(value coregraphics.Point) { objc.Call[objc.Void](v_, objc.Sel("setCenter:"), value) } -func (v_ VignetteEffectWrapper) HasCenter() bool { +func (v_ VignetteEffectObject) HasCenter() bool { return v_.RespondsToSelector(objc.Sel("center")) } // The center of the effect as x and y coordinates. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/coreimage/civignetteeffect/3228830-center?language=objc -func (v_ VignetteEffectWrapper) Center() coregraphics.Point { +func (v_ VignetteEffectObject) Center() coregraphics.Point { rv := objc.Call[coregraphics.Point](v_, objc.Sel("center")) return rv } diff --git a/macos/coreimage/vignette.gen.go b/macos/coreimage/vignette_protocol.gen.go similarity index 74% rename from macos/coreimage/vignette.gen.go rename to macos/coreimage/vignette_protocol.gen.go index d0eef112..9e1dc464 100644 --- a/macos/coreimage/vignette.gen.go +++ b/macos/coreimage/vignette_protocol.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package coreimage @@ -11,12 +11,12 @@ import ( // [Full Topic]: https://developer.apple.com/documentation/coreimage/civignette?language=objc type PVignette interface { // optional - SetInputImage(value Image) - HasSetInputImage() bool + SetRadius(value float64) + HasSetRadius() bool // optional - InputImage() IImage - HasInputImage() bool + Radius() float64 + HasRadius() bool // optional SetIntensity(value float64) @@ -27,84 +27,87 @@ type PVignette interface { HasIntensity() bool // optional - SetRadius(value float64) - HasSetRadius() bool + SetInputImage(value Image) + HasSetInputImage() bool // optional - Radius() float64 - HasRadius() bool + InputImage() Image + HasInputImage() bool } -// A concrete type wrapper for the [PVignette] protocol. -type VignetteWrapper struct { +// ensure impl type implements protocol interface +var _ PVignette = (*VignetteObject)(nil) + +// A concrete type for the [PVignette] protocol. +type VignetteObject struct { objc.Object } -func (v_ VignetteWrapper) 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_ VignetteWrapper) SetInputImage(value IImage) { - objc.Call[objc.Void](v_, objc.Sel("setInputImage:"), objc.Ptr(value)) +// [Full Topic]: https://developer.apple.com/documentation/coreimage/civignette/3228828-radius?language=objc +func (v_ VignetteObject) SetRadius(value float64) { + objc.Call[objc.Void](v_, objc.Sel("setRadius:"), value) } -func (v_ VignetteWrapper) 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_ VignetteWrapper) 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() float64 { + rv := objc.Call[float64](v_, objc.Sel("radius")) return rv } -func (v_ VignetteWrapper) HasSetIntensity() bool { +func (v_ VignetteObject) HasSetIntensity() bool { return v_.RespondsToSelector(objc.Sel("setIntensity:")) } // The intensity of the effect. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/coreimage/civignette/3228827-intensity?language=objc -func (v_ VignetteWrapper) SetIntensity(value float64) { +func (v_ VignetteObject) SetIntensity(value float64) { objc.Call[objc.Void](v_, objc.Sel("setIntensity:"), value) } -func (v_ VignetteWrapper) HasIntensity() bool { +func (v_ VignetteObject) HasIntensity() bool { return v_.RespondsToSelector(objc.Sel("intensity")) } // The intensity of the effect. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/coreimage/civignette/3228827-intensity?language=objc -func (v_ VignetteWrapper) Intensity() float64 { +func (v_ VignetteObject) Intensity() float64 { rv := objc.Call[float64](v_, objc.Sel("intensity")) return rv } -func (v_ VignetteWrapper) 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_ VignetteWrapper) SetRadius(value float64) { - 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:"), objc.Ptr(value)) } -func (v_ VignetteWrapper) 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_ VignetteWrapper) Radius() float64 { - rv := objc.Call[float64](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 } diff --git a/macos/coreimage/vortex_distortion.gen.go b/macos/coreimage/vortex_distortion_protocol.gen.go similarity index 70% rename from macos/coreimage/vortex_distortion.gen.go rename to macos/coreimage/vortex_distortion_protocol.gen.go index 6e911a7e..753910df 100644 --- a/macos/coreimage/vortex_distortion.gen.go +++ b/macos/coreimage/vortex_distortion_protocol.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package coreimage @@ -11,14 +11,6 @@ import ( // // [Full Topic]: https://developer.apple.com/documentation/coreimage/civortexdistortion?language=objc type PVortexDistortion interface { - // optional - SetInputImage(value Image) - HasSetInputImage() bool - - // optional - InputImage() IImage - HasInputImage() bool - // optional SetRadius(value float64) HasSetRadius() bool @@ -27,6 +19,14 @@ type PVortexDistortion interface { Radius() float64 HasRadius() bool + // optional + SetInputImage(value Image) + HasSetInputImage() bool + + // optional + InputImage() Image + HasInputImage() bool + // optional SetAngle(value float64) HasSetAngle() bool @@ -44,99 +44,102 @@ type PVortexDistortion interface { HasCenter() bool } -// A concrete type wrapper for the [PVortexDistortion] protocol. -type VortexDistortionWrapper struct { +// ensure impl type implements protocol interface +var _ PVortexDistortion = (*VortexDistortionObject)(nil) + +// A concrete type for the [PVortexDistortion] protocol. +type VortexDistortionObject struct { objc.Object } -func (v_ VortexDistortionWrapper) 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_ VortexDistortionWrapper) SetInputImage(value IImage) { - objc.Call[objc.Void](v_, objc.Sel("setInputImage:"), objc.Ptr(value)) +// [Full Topic]: https://developer.apple.com/documentation/coreimage/civortexdistortion/3600211-radius?language=objc +func (v_ VortexDistortionObject) SetRadius(value float64) { + objc.Call[objc.Void](v_, objc.Sel("setRadius:"), value) } -func (v_ VortexDistortionWrapper) 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_ VortexDistortionWrapper) 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() float64 { + rv := objc.Call[float64](v_, objc.Sel("radius")) return rv } -func (v_ VortexDistortionWrapper) 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_ VortexDistortionWrapper) SetRadius(value float64) { - 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:"), objc.Ptr(value)) } -func (v_ VortexDistortionWrapper) 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_ VortexDistortionWrapper) Radius() float64 { - rv := objc.Call[float64](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_ VortexDistortionWrapper) HasSetAngle() bool { +func (v_ VortexDistortionObject) HasSetAngle() bool { return v_.RespondsToSelector(objc.Sel("setAngle:")) } // [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/coreimage/civortexdistortion/3600208-angle?language=objc -func (v_ VortexDistortionWrapper) SetAngle(value float64) { +func (v_ VortexDistortionObject) SetAngle(value float64) { objc.Call[objc.Void](v_, objc.Sel("setAngle:"), value) } -func (v_ VortexDistortionWrapper) HasAngle() bool { +func (v_ VortexDistortionObject) HasAngle() bool { return v_.RespondsToSelector(objc.Sel("angle")) } // [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/coreimage/civortexdistortion/3600208-angle?language=objc -func (v_ VortexDistortionWrapper) Angle() float64 { +func (v_ VortexDistortionObject) Angle() float64 { rv := objc.Call[float64](v_, objc.Sel("angle")) return rv } -func (v_ VortexDistortionWrapper) HasSetCenter() bool { +func (v_ VortexDistortionObject) HasSetCenter() bool { return v_.RespondsToSelector(objc.Sel("setCenter:")) } // [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/coreimage/civortexdistortion/3600209-center?language=objc -func (v_ VortexDistortionWrapper) SetCenter(value coregraphics.Point) { +func (v_ VortexDistortionObject) SetCenter(value coregraphics.Point) { objc.Call[objc.Void](v_, objc.Sel("setCenter:"), value) } -func (v_ VortexDistortionWrapper) HasCenter() bool { +func (v_ VortexDistortionObject) HasCenter() bool { return v_.RespondsToSelector(objc.Sel("center")) } // [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/coreimage/civortexdistortion/3600209-center?language=objc -func (v_ VortexDistortionWrapper) Center() coregraphics.Point { +func (v_ VortexDistortionObject) Center() coregraphics.Point { rv := objc.Call[coregraphics.Point](v_, objc.Sel("center")) return rv } diff --git a/macos/coreimage/warp_kernel.gen.go b/macos/coreimage/warp_kernel.gen.go index 1311c348..cfcc6d53 100644 --- a/macos/coreimage/warp_kernel.gen.go +++ b/macos/coreimage/warp_kernel.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package coreimage @@ -41,10 +41,6 @@ func (wc _WarpKernelClass) Alloc() WarpKernel { return rv } -func WarpKernel_Alloc() WarpKernel { - return WarpKernelClass.Alloc() -} - func (wc _WarpKernelClass) New() WarpKernel { rv := objc.Call[WarpKernel](wc, objc.Sel("new")) rv.Autorelease() @@ -60,6 +56,18 @@ func (w_ WarpKernel) Init() WarpKernel { return rv } +func (wc _WarpKernelClass) KernelWithFunctionNameFromMetalLibraryDataError(name string, data []byte, error foundation.IError) WarpKernel { + rv := objc.Call[WarpKernel](wc, objc.Sel("kernelWithFunctionName:fromMetalLibraryData:error:"), name, data, objc.Ptr(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 foundation.IError) WarpKernel { + return WarpKernelClass.KernelWithFunctionNameFromMetalLibraryDataError(name, data, error) +} + func (wc _WarpKernelClass) KernelWithFunctionNameFromMetalLibraryDataOutputPixelFormatError(name string, data []byte, format Format, error foundation.IError) WarpKernel { rv := objc.Call[WarpKernel](wc, objc.Sel("kernelWithFunctionName:fromMetalLibraryData:outputPixelFormat:error:"), name, data, format, objc.Ptr(error)) return rv diff --git a/macos/coreimage/white_point_adjust.gen.go b/macos/coreimage/white_point_adjust_protocol.gen.go similarity index 70% rename from macos/coreimage/white_point_adjust.gen.go rename to macos/coreimage/white_point_adjust_protocol.gen.go index f51bef55..bfb21f47 100644 --- a/macos/coreimage/white_point_adjust.gen.go +++ b/macos/coreimage/white_point_adjust_protocol.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package coreimage @@ -15,7 +15,7 @@ type PWhitePointAdjust interface { HasSetColor() bool // optional - Color() IColor + Color() Color HasColor() bool // optional @@ -23,57 +23,60 @@ type PWhitePointAdjust interface { HasSetInputImage() bool // optional - InputImage() IImage + InputImage() Image HasInputImage() bool } -// A concrete type wrapper for the [PWhitePointAdjust] protocol. -type WhitePointAdjustWrapper struct { +// ensure impl type implements protocol interface +var _ PWhitePointAdjust = (*WhitePointAdjustObject)(nil) + +// A concrete type for the [PWhitePointAdjust] protocol. +type WhitePointAdjustObject struct { objc.Object } -func (w_ WhitePointAdjustWrapper) HasSetColor() bool { +func (w_ WhitePointAdjustObject) HasSetColor() bool { return w_.RespondsToSelector(objc.Sel("setColor:")) } // A color to use as the white point. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/coreimage/ciwhitepointadjust/3228836-color?language=objc -func (w_ WhitePointAdjustWrapper) SetColor(value IColor) { +func (w_ WhitePointAdjustObject) SetColor(value Color) { objc.Call[objc.Void](w_, objc.Sel("setColor:"), objc.Ptr(value)) } -func (w_ WhitePointAdjustWrapper) HasColor() bool { +func (w_ WhitePointAdjustObject) HasColor() bool { return w_.RespondsToSelector(objc.Sel("color")) } // A color to use as the white point. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/coreimage/ciwhitepointadjust/3228836-color?language=objc -func (w_ WhitePointAdjustWrapper) Color() Color { +func (w_ WhitePointAdjustObject) Color() Color { rv := objc.Call[Color](w_, objc.Sel("color")) return rv } -func (w_ WhitePointAdjustWrapper) HasSetInputImage() bool { +func (w_ WhitePointAdjustObject) HasSetInputImage() bool { return w_.RespondsToSelector(objc.Sel("setInputImage:")) } // The image to use as an input image. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/coreimage/ciwhitepointadjust/3228837-inputimage?language=objc -func (w_ WhitePointAdjustWrapper) SetInputImage(value IImage) { +func (w_ WhitePointAdjustObject) SetInputImage(value Image) { objc.Call[objc.Void](w_, objc.Sel("setInputImage:"), objc.Ptr(value)) } -func (w_ WhitePointAdjustWrapper) HasInputImage() bool { +func (w_ WhitePointAdjustObject) HasInputImage() bool { return w_.RespondsToSelector(objc.Sel("inputImage")) } // The image to use as an input image. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/coreimage/ciwhitepointadjust/3228837-inputimage?language=objc -func (w_ WhitePointAdjustWrapper) InputImage() Image { +func (w_ WhitePointAdjustObject) InputImage() Image { rv := objc.Call[Image](w_, objc.Sel("inputImage")) return rv } diff --git a/macos/coreimage/x_ray.gen.go b/macos/coreimage/x_ray_protocol.gen.go similarity index 70% rename from macos/coreimage/x_ray.gen.go rename to macos/coreimage/x_ray_protocol.gen.go index 29cceb6d..34b5f3cf 100644 --- a/macos/coreimage/x_ray.gen.go +++ b/macos/coreimage/x_ray_protocol.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package coreimage @@ -15,34 +15,37 @@ type PXRay interface { HasSetInputImage() bool // optional - InputImage() IImage + InputImage() Image HasInputImage() bool } -// A concrete type wrapper for the [PXRay] protocol. -type XRayWrapper struct { +// ensure impl type implements protocol interface +var _ PXRay = (*XRayObject)(nil) + +// A concrete type for the [PXRay] protocol. +type XRayObject struct { objc.Object } -func (x_ XRayWrapper) HasSetInputImage() bool { +func (x_ XRayObject) HasSetInputImage() bool { return x_.RespondsToSelector(objc.Sel("setInputImage:")) } // The image to use as an input image. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/coreimage/cixray/3228839-inputimage?language=objc -func (x_ XRayWrapper) SetInputImage(value IImage) { +func (x_ XRayObject) SetInputImage(value Image) { objc.Call[objc.Void](x_, objc.Sel("setInputImage:"), objc.Ptr(value)) } -func (x_ XRayWrapper) HasInputImage() bool { +func (x_ XRayObject) HasInputImage() bool { return x_.RespondsToSelector(objc.Sel("inputImage")) } // The image to use as an input image. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/coreimage/cixray/3228839-inputimage?language=objc -func (x_ XRayWrapper) InputImage() Image { +func (x_ XRayObject) InputImage() Image { rv := objc.Call[Image](x_, objc.Sel("inputImage")) return rv } diff --git a/macos/coreimage/zoom_blur.gen.go b/macos/coreimage/zoom_blur_protocol.gen.go similarity index 74% rename from macos/coreimage/zoom_blur.gen.go rename to macos/coreimage/zoom_blur_protocol.gen.go index f46846d2..d8dbb686 100644 --- a/macos/coreimage/zoom_blur.gen.go +++ b/macos/coreimage/zoom_blur_protocol.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package coreimage @@ -16,7 +16,7 @@ type PZoomBlur interface { HasSetInputImage() bool // optional - InputImage() IImage + InputImage() Image HasInputImage() bool // optional @@ -36,76 +36,79 @@ type PZoomBlur interface { HasCenter() bool } -// A concrete type wrapper for the [PZoomBlur] protocol. -type ZoomBlurWrapper struct { +// ensure impl type implements protocol interface +var _ PZoomBlur = (*ZoomBlurObject)(nil) + +// A concrete type for the [PZoomBlur] protocol. +type ZoomBlurObject struct { objc.Object } -func (z_ ZoomBlurWrapper) HasSetInputImage() bool { +func (z_ ZoomBlurObject) HasSetInputImage() bool { return z_.RespondsToSelector(objc.Sel("setInputImage:")) } // The image to use as an input image. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/coreimage/cizoomblur/3228843-inputimage?language=objc -func (z_ ZoomBlurWrapper) SetInputImage(value IImage) { +func (z_ ZoomBlurObject) SetInputImage(value Image) { objc.Call[objc.Void](z_, objc.Sel("setInputImage:"), objc.Ptr(value)) } -func (z_ ZoomBlurWrapper) HasInputImage() bool { +func (z_ ZoomBlurObject) HasInputImage() bool { return z_.RespondsToSelector(objc.Sel("inputImage")) } // The image to use as an input image. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/coreimage/cizoomblur/3228843-inputimage?language=objc -func (z_ ZoomBlurWrapper) InputImage() Image { +func (z_ ZoomBlurObject) InputImage() Image { rv := objc.Call[Image](z_, objc.Sel("inputImage")) return rv } -func (z_ ZoomBlurWrapper) HasSetAmount() bool { +func (z_ ZoomBlurObject) HasSetAmount() bool { return z_.RespondsToSelector(objc.Sel("setAmount:")) } // The zoom-in amount. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/coreimage/cizoomblur/3228841-amount?language=objc -func (z_ ZoomBlurWrapper) SetAmount(value float64) { +func (z_ ZoomBlurObject) SetAmount(value float64) { objc.Call[objc.Void](z_, objc.Sel("setAmount:"), value) } -func (z_ ZoomBlurWrapper) HasAmount() bool { +func (z_ ZoomBlurObject) HasAmount() bool { return z_.RespondsToSelector(objc.Sel("amount")) } // The zoom-in amount. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/coreimage/cizoomblur/3228841-amount?language=objc -func (z_ ZoomBlurWrapper) Amount() float64 { +func (z_ ZoomBlurObject) Amount() float64 { rv := objc.Call[float64](z_, objc.Sel("amount")) return rv } -func (z_ ZoomBlurWrapper) HasSetCenter() bool { +func (z_ ZoomBlurObject) HasSetCenter() bool { return z_.RespondsToSelector(objc.Sel("setCenter:")) } // The center of the effect, as x and y coordinates. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/coreimage/cizoomblur/3228842-center?language=objc -func (z_ ZoomBlurWrapper) SetCenter(value coregraphics.Point) { +func (z_ ZoomBlurObject) SetCenter(value coregraphics.Point) { objc.Call[objc.Void](z_, objc.Sel("setCenter:"), value) } -func (z_ ZoomBlurWrapper) HasCenter() bool { +func (z_ ZoomBlurObject) HasCenter() bool { return z_.RespondsToSelector(objc.Sel("center")) } // The center of the effect, as x and y coordinates. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/coreimage/cizoomblur/3228842-center?language=objc -func (z_ ZoomBlurWrapper) Center() coregraphics.Point { +func (z_ ZoomBlurObject) Center() coregraphics.Point { rv := objc.Call[coregraphics.Point](z_, objc.Sel("center")) return rv } diff --git a/macos/corelocation/aliastypes.gen.go b/macos/corelocation/aliastypes.gen.go index 93c87411..73d2d7d9 100644 --- a/macos/corelocation/aliastypes.gen.go +++ b/macos/corelocation/aliastypes.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package corelocation diff --git a/macos/corelocation/beacon.gen.go b/macos/corelocation/beacon.gen.go index 9eb52f98..79327861 100644 --- a/macos/corelocation/beacon.gen.go +++ b/macos/corelocation/beacon.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package corelocation @@ -19,13 +19,13 @@ type _BeaconClass struct { // An interface definition for the [Beacon] class. type IBeacon interface { objc.IObject - Major() foundation.Number - Minor() foundation.Number + Timestamp() foundation.Date Rssi() int - Accuracy() LocationAccuracy + Major() foundation.Number UUID() foundation.UUID - Timestamp() foundation.Date Proximity() Proximity + Minor() foundation.Number + Accuracy() LocationAccuracy } // Information about an observed iBeacon device and its relative distance to the user’s device. [Full Topic] @@ -46,10 +46,6 @@ func (bc _BeaconClass) Alloc() Beacon { return rv } -func Beacon_Alloc() Beacon { - return BeaconClass.Alloc() -} - func (bc _BeaconClass) New() Beacon { rv := objc.Call[Beacon](bc, objc.Sel("new")) rv.Autorelease() @@ -65,19 +61,11 @@ func (b_ Beacon) Init() Beacon { return rv } -// The major value that the observed beacon transmitted. [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")) - 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 } @@ -89,11 +77,11 @@ func (b_ Beacon) Rssi() int { return rv } -// The accuracy of the proximity value, measured in meters from the beacon. [Full Topic] +// The major value that the observed beacon transmitted. [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/1621418-major?language=objc +func (b_ Beacon) Major() foundation.Number { + rv := objc.Call[foundation.Number](b_, objc.Sel("major")) return rv } @@ -105,14 +93,6 @@ func (b_ Beacon) UUID() foundation.UUID { return rv } -// A timestamp representing when the beacon was observed. [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")) - return rv -} - // The relative distance to the beacon. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/corelocation/clbeacon/1621554-proximity?language=objc @@ -120,3 +100,19 @@ 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] +// +// [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 +} + +// The accuracy of the proximity value, measured in meters from 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")) + return rv +} diff --git a/macos/corelocation/beacon_region.gen.go b/macos/corelocation/beacon_region.gen.go index f232abee..a78ef841 100644 --- a/macos/corelocation/beacon_region.gen.go +++ b/macos/corelocation/beacon_region.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package corelocation @@ -38,10 +38,6 @@ func (bc _BeaconRegionClass) Alloc() BeaconRegion { return rv } -func BeaconRegion_Alloc() BeaconRegion { - return BeaconRegionClass.Alloc() -} - func (bc _BeaconRegionClass) New() BeaconRegion { rv := objc.Call[BeaconRegion](bc, objc.Sel("new")) rv.Autorelease() diff --git a/macos/corelocation/circular_region.gen.go b/macos/corelocation/circular_region.gen.go index 688b6ccd..ce741fd7 100644 --- a/macos/corelocation/circular_region.gen.go +++ b/macos/corelocation/circular_region.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package corelocation @@ -38,10 +38,6 @@ func (cc _CircularRegionClass) Alloc() CircularRegion { return rv } -func CircularRegion_Alloc() CircularRegion { - return CircularRegionClass.Alloc() -} - func (cc _CircularRegionClass) New() CircularRegion { rv := objc.Call[CircularRegion](cc, objc.Sel("new")) rv.Autorelease() diff --git a/macos/corelocation/doc.gen.go b/macos/corelocation/doc.gen.go index 068f6b34..e4ccf1b8 100644 --- a/macos/corelocation/doc.gen.go +++ b/macos/corelocation/doc.gen.go @@ -1,8 +1,8 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. // Obtain the geographic location and orientation of a device. // -// [Full Documentation] +// [Apple Documentation] // -// [Full Documentation]: https://developer.apple.com/documentation/corelocation?language=objc +// [Apple Documentation]: https://developer.apple.com/documentation/corelocation?language=objc package corelocation diff --git a/macos/corelocation/enumtypes.gen.go b/macos/corelocation/enumtypes.gen.go index 068539b5..7a02ea4b 100644 --- a/macos/corelocation/enumtypes.gen.go +++ b/macos/corelocation/enumtypes.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package corelocation diff --git a/macos/corelocation/floor.gen.go b/macos/corelocation/floor.gen.go index 57a5db1a..d3afe115 100644 --- a/macos/corelocation/floor.gen.go +++ b/macos/corelocation/floor.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package corelocation @@ -39,10 +39,6 @@ func (fc _FloorClass) Alloc() Floor { return rv } -func Floor_Alloc() Floor { - return FloorClass.Alloc() -} - func (fc _FloorClass) New() Floor { rv := objc.Call[Floor](fc, objc.Sel("new")) rv.Autorelease() diff --git a/macos/corelocation/geocoder.gen.go b/macos/corelocation/geocoder.gen.go index 5c932366..926b9a26 100644 --- a/macos/corelocation/geocoder.gen.go +++ b/macos/corelocation/geocoder.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package corelocation @@ -6,6 +6,7 @@ import ( "unsafe" "github.com/progrium/macdriver/macos/contacts" + "github.com/progrium/macdriver/macos/foundation" "github.com/progrium/macdriver/objc" ) @@ -19,10 +20,14 @@ type _GeocoderClass struct { // An interface definition for the [Geocoder] class. type IGeocoder interface { objc.IObject - ReverseGeocodeLocationCompletionHandler(location ILocation, completionHandler GeocodeCompletionHandler) - GeocodeAddressStringCompletionHandler(addressString string, completionHandler GeocodeCompletionHandler) - CancelGeocode() + 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) IsGeocoding() bool } @@ -44,10 +49,6 @@ func (gc _GeocoderClass) Alloc() Geocoder { return rv } -func Geocoder_Alloc() Geocoder { - return GeocoderClass.Alloc() -} - func (gc _GeocoderClass) New() Geocoder { rv := objc.Call[Geocoder](gc, objc.Sel("new")) rv.Autorelease() @@ -63,18 +64,39 @@ func (g_ Geocoder) Init() Geocoder { return rv } -// Submits a reverse-geocoding request for the specified location. [Full Topic] +// Submits a forward-geocoding request using the specified string and region 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:"), objc.Ptr(location), completionHandler) +// [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, objc.Ptr(region), completionHandler) } -// Submits a forward-geocoding request using the specified string. [Full Topic] +// Submits a forward-geocoding requesting using the specified Contacts framework information. [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) +// [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:"), objc.Ptr(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, objc.Ptr(region), objc.Ptr(locale), completionHandler) +} + +// Submits a reverse-geocoding request for the specified location and locale. [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:"), objc.Ptr(location), objc.Ptr(locale), completionHandler) +} + +// Submits a forward-geocoding requesting using the specified locale and Contacts framework information. [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:"), objc.Ptr(postalAddress), objc.Ptr(locale), completionHandler) } // Cancels a pending geocoding request. [Full Topic] @@ -84,11 +106,18 @@ func (g_ Geocoder) CancelGeocode() { objc.Call[objc.Void](g_, objc.Sel("cancelGeocode")) } -// Submits a forward-geocoding requesting using the specified 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/2890752-geocodepostaladdress?language=objc -func (g_ Geocoder) GeocodePostalAddressCompletionHandler(postalAddress contacts.IPostalAddress, completionHandler GeocodeCompletionHandler) { - objc.Call[objc.Void](g_, objc.Sel("geocodePostalAddress:completionHandler:"), objc.Ptr(postalAddress), 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) +} + +// Submits a reverse-geocoding request for the specified location. [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:"), objc.Ptr(location), 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 79971ec0..c3111570 100644 --- a/macos/corelocation/heading.gen.go +++ b/macos/corelocation/heading.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package corelocation @@ -19,16 +19,13 @@ type _HeadingClass struct { // An interface definition for the [Heading] class. type IHeading interface { objc.IObject - MagneticHeading() LocationDirection + Timestamp() foundation.Date X() HeadingComponentValue - SetX(value HeadingComponentValue) Y() HeadingComponentValue - SetY(value HeadingComponentValue) TrueHeading() LocationDirection HeadingAccuracy() LocationDirection - Timestamp() foundation.Date + MagneticHeading() LocationDirection Z() HeadingComponentValue - SetZ(value HeadingComponentValue) } // The azimuth (orientation) of the user’s device, relative to true or magnetic north. [Full Topic] @@ -49,10 +46,6 @@ func (hc _HeadingClass) Alloc() Heading { return rv } -func Heading_Alloc() Heading { - return HeadingClass.Alloc() -} - func (hc _HeadingClass) New() Heading { rv := objc.Call[Heading](hc, objc.Sel("new")) rv.Autorelease() @@ -68,11 +61,11 @@ func (h_ Heading) Init() Heading { 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 } @@ -84,13 +77,6 @@ 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 @@ -99,13 +85,6 @@ 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 @@ -122,11 +101,11 @@ func (h_ Heading) HeadingAccuracy() LocationDirection { 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 } @@ -137,10 +116,3 @@ 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 fe0c2e6e..3de11552 100644 --- a/macos/corelocation/location.gen.go +++ b/macos/corelocation/location.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package corelocation @@ -20,18 +20,18 @@ type _LocationClass struct { type ILocation interface { objc.IObject DistanceFromLocation(location ILocation) LocationDistance - Floor() Floor - HorizontalAccuracy() LocationAccuracy Coordinate() LocationCoordinate2D - CourseAccuracy() LocationDirectionAccuracy - Course() LocationDirection + Floor() Floor Speed() LocationSpeed - EllipsoidalAltitude() LocationDistance + SourceInformation() LocationSourceInformation + Course() LocationDirection SpeedAccuracy() LocationSpeedAccuracy + HorizontalAccuracy() LocationAccuracy + Timestamp() foundation.Date Altitude() LocationDistance VerticalAccuracy() LocationAccuracy - Timestamp() foundation.Date - SourceInformation() LocationSourceInformation + EllipsoidalAltitude() LocationDistance + CourseAccuracy() LocationDirectionAccuracy } // The latitude, longitude, and course information reported by the system. [Full Topic] @@ -47,6 +47,20 @@ 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, objc.Ptr(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 @@ -61,27 +75,51 @@ func NewLocationWithLatitudeLongitude(latitude LocationDegrees, longitude Locati return instance } -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, objc.Ptr(timestamp)) +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, objc.Ptr(timestamp)) return rv } -// Creates a location object with the specified coordinate and altitude information. [Full Topic] +// Creates a location object with the specified coordinate, altitude, course, and accuracy 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) +// [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 (lc _LocationClass) Alloc() Location { - rv := objc.Call[Location](lc, objc.Sel("alloc")) +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, objc.Ptr(timestamp), objc.Ptr(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, objc.Ptr(timestamp)) return rv } -func Location_Alloc() Location { - return LocationClass.Alloc() +// Creates a location object with the specified coordinate, altitude, and course 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) + instance.Autorelease() + return instance +} + +func (lc _LocationClass) Alloc() Location { + rv := objc.Call[Location](lc, objc.Sel("alloc")) + return rv } func (lc _LocationClass) New() Location { @@ -107,35 +145,35 @@ func (l_ Location) DistanceFromLocation(location ILocation) LocationDistance { return rv } -// The logical floor of the building in which the user is located. [Full Topic] +// The geographical coordinate information. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/corelocation/cllocation/1616762-floor?language=objc -func (l_ Location) Floor() Floor { - rv := objc.Call[Floor](l_, objc.Sel("floor")) +// [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 radius of uncertainty for the location, measured in meters. [Full Topic] +// The logical floor of the building in which the user is located. [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/1616762-floor?language=objc +func (l_ Location) Floor() Floor { + rv := objc.Call[Floor](l_, objc.Sel("floor")) return rv } -// The geographical coordinate information. [Full Topic] +// The instantaneous speed of the device, measured in meters per second. [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")) +// [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 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 } @@ -147,27 +185,27 @@ func (l_ Location) Course() LocationDirection { return rv } -// The instantaneous speed of the device, measured in meters per second. [Full Topic] +// The accuracy of the speed value, measured in meters per second. [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/3524340-speedaccuracy?language=objc +func (l_ Location) SpeedAccuracy() LocationSpeedAccuracy { + rv := objc.Call[LocationSpeedAccuracy](l_, objc.Sel("speedAccuracy")) return rv } -// The altitude as a height above the World Geodetic System 1984 (WGS84) ellipsoid, measured in meters. [Full Topic] +// The radius of uncertainty for the location, measured in meters. [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/1423599-horizontalaccuracy?language=objc +func (l_ Location) HorizontalAccuracy() LocationAccuracy { + rv := objc.Call[LocationAccuracy](l_, objc.Sel("horizontalAccuracy")) return rv } -// The accuracy of the speed value, measured in meters per second. [Full Topic] +// The time at which this location was determined. [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/1423589-timestamp?language=objc +func (l_ Location) Timestamp() foundation.Date { + rv := objc.Call[foundation.Date](l_, objc.Sel("timestamp")) return rv } @@ -187,18 +225,18 @@ func (l_ Location) VerticalAccuracy() LocationAccuracy { return rv } -// The time at which this location was determined. [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/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/3861801-ellipsoidalaltitude?language=objc +func (l_ Location) EllipsoidalAltitude() LocationDistance { + rv := objc.Call[LocationDistance](l_, objc.Sel("ellipsoidalAltitude")) return rv } -// Information about the source that provides the location. [Full Topic] +// The accuracy of the course value, measured in degrees. [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/3524338-courseaccuracy?language=objc +func (l_ Location) CourseAccuracy() LocationDirectionAccuracy { + rv := objc.Call[LocationDirectionAccuracy](l_, objc.Sel("courseAccuracy")) return rv } diff --git a/macos/corelocation/location_manager.gen.go b/macos/corelocation/location_manager.gen.go index 8a2c7c84..96348696 100644 --- a/macos/corelocation/location_manager.gen.go +++ b/macos/corelocation/location_manager.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package corelocation @@ -20,41 +20,42 @@ type _LocationManagerClass struct { type ILocationManager interface { objc.IObject StopUpdatingLocation() - RequestAlwaysAuthorization() + DismissHeadingCalibrationDisplay() + StopMonitoringVisits() + RequestWhenInUseAuthorization() StartMonitoringVisits() - StopMonitoringSignificantLocationChanges() - RequestLocation() StartMonitoringSignificantLocationChanges() - DismissHeadingCalibrationDisplay() StartUpdatingHeading() - RequestWhenInUseAuthorization() - StopMonitoringVisits() - StartUpdatingLocation() + RequestAlwaysAuthorization() + StopMonitoringSignificantLocationChanges() RequestTemporaryFullAccuracyAuthorizationWithPurposeKey(purposeKey string) - Location() Location - ActivityType() ActivityType - SetActivityType(value ActivityType) - IsAuthorizedForWidgetUpdates() bool - AuthorizationStatus() AuthorizationStatus - Delegate() LocationManagerDelegateWrapper - SetDelegate(value PLocationManagerDelegate) - SetDelegateObject(valueObject objc.IObject) + RequestTemporaryFullAccuracyAuthorizationWithPurposeKeyCompletion(purposeKey string, completion func(arg0 foundation.Error)) + StartUpdatingLocation() + RequestLocation() + MaximumRegionMonitoringDistance() LocationDistance DistanceFilter() LocationDistance SetDistanceFilter(value LocationDistance) - PausesLocationUpdatesAutomatically() bool - SetPausesLocationUpdatesAutomatically(value bool) + AuthorizationStatus() AuthorizationStatus + IsAuthorizedForWidgetUpdates() bool + HeadingOrientation() DeviceOrientation + SetHeadingOrientation(value DeviceOrientation) + MonitoredRegions() foundation.Set AccuracyAuthorization() AccuracyAuthorization - DesiredAccuracy() LocationAccuracy - SetDesiredAccuracy(value LocationAccuracy) + Location() Location HeadingFilter() LocationDegrees SetHeadingFilter(value LocationDegrees) - MaximumRegionMonitoringDistance() LocationDistance - Heading() Heading AllowsBackgroundLocationUpdates() bool SetAllowsBackgroundLocationUpdates(value bool) - MonitoredRegions() foundation.Set - HeadingOrientation() DeviceOrientation - SetHeadingOrientation(value DeviceOrientation) + 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) } // The object that you use to start and stop the delivery of location-related events to your app. [Full Topic] @@ -75,10 +76,6 @@ func (lc _LocationManagerClass) Alloc() LocationManager { return rv } -func LocationManager_Alloc() LocationManager { - return LocationManagerClass.Alloc() -} - func (lc _LocationManagerClass) New() LocationManager { rv := objc.Call[LocationManager](lc, objc.Sel("new")) rv.Autorelease() @@ -116,76 +113,84 @@ func (l_ LocationManager) StopUpdatingLocation() { objc.Call[objc.Void](l_, objc.Sel("stopUpdatingLocation")) } -// Requests the user’s permission to use location services regardless of whether the app is in use. [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/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/1620549-israngingavailable?language=objc +func (lc _LocationManagerClass) IsRangingAvailable() bool { + rv := objc.Call[bool](lc, objc.Sel("isRangingAvailable")) + return rv } -// Starts the delivery of visit-related events. [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/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/1620549-israngingavailable?language=objc +func LocationManager_IsRangingAvailable() bool { + return LocationManagerClass.IsRangingAvailable() } -// Stops the delivery of location events 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/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/1620563-dismissheadingcalibrationdisplay?language=objc +func (l_ LocationManager) DismissHeadingCalibrationDisplay() { + objc.Call[objc.Void](l_, objc.Sel("dismissHeadingCalibrationDisplay")) } -// Requests the one-time delivery of the user’s current location. [Full Topic] +// Stops the delivery of visit-related events. [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/1618693-stopmonitoringvisits?language=objc +func (l_ LocationManager) StopMonitoringVisits() { + objc.Call[objc.Void](l_, objc.Sel("stopMonitoringVisits")) } -// Starts the generation of updates based on significant location changes. [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/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/1620562-requestwheninuseauthorization?language=objc +func (l_ LocationManager) RequestWhenInUseAuthorization() { + objc.Call[objc.Void](l_, objc.Sel("requestWhenInUseAuthorization")) } -// Returns a Boolean value indicating whether the device supports region monitoring using the specified class. [Full Topic] +// 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/1423654-ismonitoringavailableforclass?language=objc -func (lc _LocationManagerClass) IsMonitoringAvailableForClass(regionClass objc.IClass) bool { - rv := objc.Call[bool](lc, objc.Sel("isMonitoringAvailableForClass:"), objc.Ptr(regionClass)) +// [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")) return rv } -// Returns a Boolean value indicating whether the device supports region monitoring using the specified class. [Full Topic] +// 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/1423654-ismonitoringavailableforclass?language=objc -func LocationManager_IsMonitoringAvailableForClass(regionClass objc.IClass) bool { - return LocationManagerClass.IsMonitoringAvailableForClass(regionClass) +// [Full Topic]: https://developer.apple.com/documentation/corelocation/cllocationmanager/1423502-headingavailable?language=objc +func LocationManager_HeadingAvailable() bool { + return LocationManagerClass.HeadingAvailable() } -// Dismisses the heading calibration view from the screen immediately. [Full Topic] +// Starts the delivery of visit-related events. [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/1618692-startmonitoringvisits?language=objc +func (l_ LocationManager) StartMonitoringVisits() { + objc.Call[objc.Void](l_, objc.Sel("startMonitoringVisits")) } -// Returns a Boolean value indicating whether the device supports ranging of beacons that use the iBeacon protocol. [Full Topic] +// Starts the generation of updates based on significant location changes. [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")) +// [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 location services are enabled on the device. [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")) return rv } -// Returns a Boolean value indicating whether the device supports ranging of beacons that use the iBeacon protocol. [Full Topic] +// Returns a Boolean value indicating whether location services are enabled on the device. [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/1423648-locationservicesenabled?language=objc +func LocationManager_LocationServicesEnabled() bool { + return LocationManagerClass.LocationServicesEnabled() } // Starts the generation of updates that report the user’s current heading. [Full Topic] @@ -195,25 +200,18 @@ func (l_ LocationManager) StartUpdatingHeading() { objc.Call[objc.Void](l_, objc.Sel("startUpdatingHeading")) } -// 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/1620562-requestwheninuseauthorization?language=objc -func (l_ LocationManager) RequestWhenInUseAuthorization() { - objc.Call[objc.Void](l_, objc.Sel("requestWhenInUseAuthorization")) -} - -// Stops the delivery of visit-related events. [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/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/1620551-requestalwaysauthorization?language=objc +func (l_ LocationManager) RequestAlwaysAuthorization() { + objc.Call[objc.Void](l_, objc.Sel("requestAlwaysAuthorization")) } -// Starts the generation of updates that report the user’s current location. [Full Topic] +// Stops the delivery of location events based on significant location changes. [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/1423679-stopmonitoringsignificantlocatio?language=objc +func (l_ LocationManager) StopMonitoringSignificantLocationChanges() { + objc.Call[objc.Void](l_, objc.Sel("stopMonitoringSignificantLocationChanges")) } // Requests permission to temporarily use location services with full accuracy. [Full Topic] @@ -223,67 +221,48 @@ func (l_ LocationManager) RequestTemporaryFullAccuracyAuthorizationWithPurposeKe objc.Call[objc.Void](l_, objc.Sel("requestTemporaryFullAccuracyAuthorizationWithPurposeKey:"), purposeKey) } -// The most recently retrieved user location. [Full Topic] +// Requests permission to temporarily use location services with full accuracy and reports the results to the provided completion handler. [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")) - return rv +// [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) } -// 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/1620567-activitytype?language=objc -func (l_ LocationManager) ActivityType() ActivityType { - rv := objc.Call[ActivityType](l_, objc.Sel("activityType")) - return rv -} - -// 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/1620567-activitytype?language=objc -func (l_ LocationManager) SetActivityType(value ActivityType) { - objc.Call[objc.Void](l_, objc.Sel("setActivityType:"), value) -} - -// A Boolean value that indicates whether a widget is eligible to receive location updates. [Full Topic] +// Starts the generation of updates that report the user’s current location. [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 +// [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")) } -// The current authorization status for the app. [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/3563952-authorizationstatus?language=objc -func (l_ LocationManager) AuthorizationStatus() AuthorizationStatus { - rv := objc.Call[AuthorizationStatus](l_, objc.Sel("authorizationStatus")) +// [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:"), objc.Ptr(regionClass)) return rv } -// The delegate object to receive update 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/1423792-delegate?language=objc -func (l_ LocationManager) Delegate() LocationManagerDelegateWrapper { - rv := objc.Call[LocationManagerDelegateWrapper](l_, objc.Sel("delegate")) - return rv +// [Full Topic]: https://developer.apple.com/documentation/corelocation/cllocationmanager/1423654-ismonitoringavailableforclass?language=objc +func LocationManager_IsMonitoringAvailableForClass(regionClass objc.IClass) bool { + return LocationManagerClass.IsMonitoringAvailableForClass(regionClass) } -// The delegate object to receive update 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/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) +// [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")) } -// The delegate object to receive update events. [Full Topic] +// The largest boundary distance that can be assigned to a region. [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:"), objc.Ptr(valueObject)) +// [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 minimum distance in meters the device must move horizontally before an update event is generated. [Full Topic] @@ -301,19 +280,43 @@ func (l_ LocationManager) SetDistanceFilter(value LocationDistance) { objc.Call[objc.Void](l_, objc.Sel("setDistanceFilter:"), value) } -// A Boolean value that indicates whether the location-manager object may pause location updates. [Full Topic] +// The current authorization status for the app. [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/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 the location-manager object may pause location updates. [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/1620553-pauseslocationupdatesautomatical?language=objc -func (l_ LocationManager) SetPausesLocationUpdatesAutomatically(value bool) { - objc.Call[objc.Void](l_, objc.Sel("setPausesLocationUpdatesAutomatically:"), value) +// [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] +// +// [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 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] +// +// [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 value that indicates the level of location accuracy the app has permission to use. [Full Topic] @@ -324,21 +327,14 @@ func (l_ LocationManager) AccuracyAuthorization() AccuracyAuthorization { return rv } -// The accuracy of the location data that your app wants to receive. [Full Topic] +// The most recently retrieved user location. [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/1423687-location?language=objc +func (l_ LocationManager) Location() Location { + rv := objc.Call[Location](l_, objc.Sel("location")) 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 @@ -354,14 +350,36 @@ func (l_ LocationManager) SetHeadingFilter(value LocationDegrees) { objc.Call[objc.Void](l_, objc.Sel("setHeadingFilter:"), value) } -// The largest boundary distance that can be assigned to a region. [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/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/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] +// +// [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 most recently reported heading. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/corelocation/cllocationmanager/1620555-heading?language=objc @@ -370,40 +388,56 @@ func (l_ LocationManager) Heading() Heading { return rv } -// A Boolean value that indicates whether the app receives location updates when running in the background. [Full Topic] +// The delegate object to receive update events. [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")) +// [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 } -// A Boolean value that indicates whether the app receives location updates when running in the background. [Full Topic] +// The delegate object to receive update events. [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) +// [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 set of shared regions monitored by all location-manager objects. [Full Topic] +// The delegate object to receive update events. [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")) +// [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:"), objc.Ptr(valueObject)) +} + +// 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) PausesLocationUpdatesAutomatically() bool { + rv := objc.Call[bool](l_, objc.Sel("pausesLocationUpdatesAutomatically")) 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) 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] +// +// [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 } -// The device orientation to use when computing heading values. [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/1620556-headingorientation?language=objc -func (l_ LocationManager) SetHeadingOrientation(value DeviceOrientation) { - objc.Call[objc.Void](l_, objc.Sel("setHeadingOrientation:"), value) +// [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) } diff --git a/macos/corelocation/location_manager_delegate.gen.go b/macos/corelocation/location_manager_delegate.gen.go index 87818fe1..39b053ab 100644 --- a/macos/corelocation/location_manager_delegate.gen.go +++ b/macos/corelocation/location_manager_delegate.gen.go @@ -1,8 +1,9 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package corelocation import ( + "github.com/progrium/macdriver/macos/foundation" "github.com/progrium/macdriver/objc" ) @@ -11,8 +12,16 @@ import ( // [Full Topic]: https://developer.apple.com/documentation/corelocation/cllocationmanagerdelegate?language=objc type PLocationManagerDelegate interface { // optional - LocationManagerDidResumeLocationUpdates(manager LocationManager) - HasLocationManagerDidResumeLocationUpdates() bool + LocationManagerDidExitRegion(manager LocationManager, region Region) + HasLocationManagerDidExitRegion() bool + + // optional + LocationManagerDidFailWithError(manager LocationManager, error foundation.Error) + HasLocationManagerDidFailWithError() bool + + // optional + LocationManagerDidUpdateLocations(manager LocationManager, locations []Location) + HasLocationManagerDidUpdateLocations() bool // optional LocationManagerShouldDisplayHeadingCalibration(manager LocationManager) bool @@ -23,39 +32,110 @@ type PLocationManagerDelegate interface { HasLocationManagerDidChangeAuthorization() bool // optional - LocationManagerDidPauseLocationUpdates(manager LocationManager) - HasLocationManagerDidPauseLocationUpdates() bool + 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 } // A delegate implementation builder for the [PLocationManagerDelegate] protocol. type LocationManagerDelegate struct { - _LocationManagerDidResumeLocationUpdates func(manager LocationManager) - _LocationManagerShouldDisplayHeadingCalibration func(manager LocationManager) bool - _LocationManagerDidChangeAuthorization func(manager LocationManager) - _LocationManagerDidPauseLocationUpdates func(manager LocationManager) - _LocationManagerDidStartMonitoringForRegion func(manager LocationManager, region Region) + _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) HasLocationManagerDidResumeLocationUpdates() bool { - return di._LocationManagerDidResumeLocationUpdates != nil +func (di *LocationManagerDelegate) HasLocationManagerDidExitRegion() bool { + return di._LocationManagerDidExitRegion != nil } -// Tells the delegate that the delivery of location updates has resumed. [Full Topic] +// Tells the delegate that the user left the specified region. [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 +// [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 delivery of location updates has resumed. [Full Topic] +// Tells the delegate that the user left the specified region. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/corelocation/cllocationmanagerdelegate/1621512-locationmanagerdidresumelocation?language=objc -func (di *LocationManagerDelegate) LocationManagerDidResumeLocationUpdates(manager LocationManager) { - di._LocationManagerDidResumeLocationUpdates(manager) +// [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 +} + +// 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 +} + +// Tells the delegate that new location data is available. [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 +} + +// Tells the delegate that new location data is available. [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) } func (di *LocationManagerDelegate) HasLocationManagerShouldDisplayHeadingCalibration() bool { return di._LocationManagerShouldDisplayHeadingCalibration != nil @@ -91,22 +171,22 @@ func (di *LocationManagerDelegate) SetLocationManagerDidChangeAuthorization(f fu func (di *LocationManagerDelegate) LocationManagerDidChangeAuthorization(manager LocationManager) { di._LocationManagerDidChangeAuthorization(manager) } -func (di *LocationManagerDelegate) HasLocationManagerDidPauseLocationUpdates() bool { - return di._LocationManagerDidPauseLocationUpdates != nil +func (di *LocationManagerDelegate) HasLocationManagerDidDetermineStateForRegion() bool { + return di._LocationManagerDidDetermineStateForRegion != nil } -// Tells the delegate that location updates were paused. [Full Topic] +// Tells the delegate about the state of the specified region. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/corelocation/cllocationmanagerdelegate/1621553-locationmanagerdidpauselocationu?language=objc -func (di *LocationManagerDelegate) SetLocationManagerDidPauseLocationUpdates(f func(manager LocationManager)) { - di._LocationManagerDidPauseLocationUpdates = f +// [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 that location updates were paused. [Full Topic] +// Tells the delegate about the state of the specified region. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/corelocation/cllocationmanagerdelegate/1621553-locationmanagerdidpauselocationu?language=objc -func (di *LocationManagerDelegate) LocationManagerDidPauseLocationUpdates(manager LocationManager) { - di._LocationManagerDidPauseLocationUpdates(manager) +// [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 @@ -125,64 +205,285 @@ func (di *LocationManagerDelegate) SetLocationManagerDidStartMonitoringForRegion func (di *LocationManagerDelegate) LocationManagerDidStartMonitoringForRegion(manager LocationManager, region Region) { di._LocationManagerDidStartMonitoringForRegion(manager, region) } +func (di *LocationManagerDelegate) HasLocationManagerDidFinishDeferredUpdatesWithError() bool { + return di._LocationManagerDidFinishDeferredUpdatesWithError != nil +} -// A concrete type wrapper for the [PLocationManagerDelegate] protocol. -type LocationManagerDelegateWrapper struct { - objc.Object +// 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 } -func (l_ LocationManagerDelegateWrapper) HasLocationManagerDidResumeLocationUpdates() bool { - return l_.RespondsToSelector(objc.Sel("locationManagerDidResumeLocationUpdates:")) +// 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 +} + +// Tells the delegate that location updates were paused. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/corelocation/cllocationmanagerdelegate/1621553-locationmanagerdidpauselocationu?language=objc +func (di *LocationManagerDelegate) SetLocationManagerDidPauseLocationUpdates(f func(manager LocationManager)) { + di._LocationManagerDidPauseLocationUpdates = f +} + +// Tells the delegate that location updates were paused. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/corelocation/cllocationmanagerdelegate/1621553-locationmanagerdidpauselocationu?language=objc +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 (l_ LocationManagerDelegateWrapper) LocationManagerDidResumeLocationUpdates(manager ILocationManager) { - objc.Call[objc.Void](l_, objc.Sel("locationManagerDidResumeLocationUpdates:"), objc.Ptr(manager)) +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 +} + +// Tells the delegate that the user entered the specified region. [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 +} + +// Tells the delegate that the user entered the specified region. [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) +} + +// ensure impl type implements protocol interface +var _ PLocationManagerDelegate = (*LocationManagerDelegateObject)(nil) + +// A concrete type for the [PLocationManagerDelegate] protocol. +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:"), objc.Ptr(manager), objc.Ptr(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:"), objc.Ptr(manager), objc.Ptr(error)) +} + +func (l_ LocationManagerDelegateObject) HasLocationManagerDidUpdateLocations() bool { + return l_.RespondsToSelector(objc.Sel("locationManager:didUpdateLocations:")) +} + +// Tells the delegate that new location data is available. [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:"), objc.Ptr(manager), locations) } -func (l_ LocationManagerDelegateWrapper) HasLocationManagerShouldDisplayHeadingCalibration() bool { +func (l_ LocationManagerDelegateObject) HasLocationManagerShouldDisplayHeadingCalibration() bool { return l_.RespondsToSelector(objc.Sel("locationManagerShouldDisplayHeadingCalibration:")) } // Asks the delegate whether the heading calibration alert should be displayed. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/corelocation/cllocationmanagerdelegate/1621457-locationmanagershoulddisplayhead?language=objc -func (l_ LocationManagerDelegateWrapper) LocationManagerShouldDisplayHeadingCalibration(manager ILocationManager) bool { +func (l_ LocationManagerDelegateObject) LocationManagerShouldDisplayHeadingCalibration(manager LocationManager) bool { rv := objc.Call[bool](l_, objc.Sel("locationManagerShouldDisplayHeadingCalibration:"), objc.Ptr(manager)) return rv } -func (l_ LocationManagerDelegateWrapper) HasLocationManagerDidChangeAuthorization() bool { +func (l_ LocationManagerDelegateObject) HasLocationManagerDidChangeAuthorization() bool { return l_.RespondsToSelector(objc.Sel("locationManagerDidChangeAuthorization:")) } // Tells the delegate when the app creates the location manager and when the authorization status changes. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/corelocation/cllocationmanagerdelegate/3563956-locationmanagerdidchangeauthoriz?language=objc -func (l_ LocationManagerDelegateWrapper) LocationManagerDidChangeAuthorization(manager ILocationManager) { +func (l_ LocationManagerDelegateObject) LocationManagerDidChangeAuthorization(manager LocationManager) { objc.Call[objc.Void](l_, objc.Sel("locationManagerDidChangeAuthorization:"), objc.Ptr(manager)) } -func (l_ LocationManagerDelegateWrapper) HasLocationManagerDidPauseLocationUpdates() bool { - return l_.RespondsToSelector(objc.Sel("locationManagerDidPauseLocationUpdates:")) +func (l_ LocationManagerDelegateObject) HasLocationManagerDidDetermineStateForRegion() bool { + return l_.RespondsToSelector(objc.Sel("locationManager:didDetermineState:forRegion:")) } -// Tells the delegate that location updates were paused. [Full Topic] +// Tells the delegate about the state of the specified region. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/corelocation/cllocationmanagerdelegate/1621553-locationmanagerdidpauselocationu?language=objc -func (l_ LocationManagerDelegateWrapper) LocationManagerDidPauseLocationUpdates(manager ILocationManager) { - objc.Call[objc.Void](l_, objc.Sel("locationManagerDidPauseLocationUpdates:"), objc.Ptr(manager)) +// [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:"), objc.Ptr(manager), state, objc.Ptr(region)) } -func (l_ LocationManagerDelegateWrapper) HasLocationManagerDidStartMonitoringForRegion() bool { +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_ LocationManagerDelegateWrapper) LocationManagerDidStartMonitoringForRegion(manager ILocationManager, region IRegion) { +func (l_ LocationManagerDelegateObject) LocationManagerDidStartMonitoringForRegion(manager LocationManager, region Region) { objc.Call[objc.Void](l_, objc.Sel("locationManager:didStartMonitoringForRegion:"), objc.Ptr(manager), objc.Ptr(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:"), objc.Ptr(manager), objc.Ptr(error)) +} + +func (l_ LocationManagerDelegateObject) HasLocationManagerDidPauseLocationUpdates() bool { + return l_.RespondsToSelector(objc.Sel("locationManagerDidPauseLocationUpdates:")) +} + +// Tells the delegate that location updates were paused. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/corelocation/cllocationmanagerdelegate/1621553-locationmanagerdidpauselocationu?language=objc +func (l_ LocationManagerDelegateObject) LocationManagerDidPauseLocationUpdates(manager LocationManager) { + objc.Call[objc.Void](l_, objc.Sel("locationManagerDidPauseLocationUpdates:"), objc.Ptr(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:"), objc.Ptr(manager), objc.Ptr(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:"), objc.Ptr(manager), objc.Ptr(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:"), objc.Ptr(manager), objc.Ptr(region), objc.Ptr(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:"), objc.Ptr(manager)) +} + +func (l_ LocationManagerDelegateObject) HasLocationManagerDidEnterRegion() bool { + return l_.RespondsToSelector(objc.Sel("locationManager:didEnterRegion:")) +} + +// Tells the delegate that the user entered the specified region. [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:"), objc.Ptr(manager), objc.Ptr(region)) +} diff --git a/macos/corelocation/location_source_information.gen.go b/macos/corelocation/location_source_information.gen.go index e8d0bcee..de096e03 100644 --- a/macos/corelocation/location_source_information.gen.go +++ b/macos/corelocation/location_source_information.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package corelocation @@ -18,8 +18,8 @@ type _LocationSourceInformationClass struct { // An interface definition for the [LocationSourceInformation] class. type ILocationSourceInformation interface { objc.IObject - IsProducedByAccessory() bool IsSimulatedBySoftware() bool + IsProducedByAccessory() bool } // Information about the source that provides a location. [Full Topic] @@ -54,10 +54,6 @@ func (lc _LocationSourceInformationClass) Alloc() LocationSourceInformation { return rv } -func LocationSourceInformation_Alloc() LocationSourceInformation { - return LocationSourceInformationClass.Alloc() -} - func (lc _LocationSourceInformationClass) New() LocationSourceInformation { rv := objc.Call[LocationSourceInformation](lc, objc.Sel("new")) rv.Autorelease() @@ -73,14 +69,6 @@ func (l_ LocationSourceInformation) Init() LocationSourceInformation { 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 -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 @@ -88,3 +76,11 @@ 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 +func (l_ LocationSourceInformation) IsProducedByAccessory() bool { + rv := objc.Call[bool](l_, objc.Sel("isProducedByAccessory")) + return rv +} diff --git a/macos/corelocation/placemark.gen.go b/macos/corelocation/placemark.gen.go index 7602ba08..fd86f559 100644 --- a/macos/corelocation/placemark.gen.go +++ b/macos/corelocation/placemark.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package corelocation @@ -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 - Location() Location + AdministrativeArea() string + TimeZone() foundation.TimeZone Locality() string - PostalCode() string ISOcountryCode() string - TimeZone() foundation.TimeZone - AdministrativeArea() string - PostalAddress() contacts.PostalAddress - SubThoroughfare() string - Region() Region - SubAdministrativeArea() string - Country() string - Thoroughfare() string + Name() string } // A user-friendly description of a geographic coordinate, often containing the name of the place, its address, and other relevant information. [Full Topic] @@ -83,10 +83,6 @@ func (pc _PlacemarkClass) Alloc() Placemark { return rv } -func Placemark_Alloc() Placemark { - return PlacemarkClass.Alloc() -} - func (pc _PlacemarkClass) New() Placemark { rv := objc.Call[Placemark](pc, objc.Sel("new")) rv.Autorelease() @@ -102,19 +98,19 @@ func (p_ Placemark) Init() Placemark { return rv } -// The name of the inland water body associated with the placemark. [Full Topic] +// The name of the country or region associated with 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/1423800-country?language=objc +func (p_ Placemark) Country() string { + rv := objc.Call[string](p_, objc.Sel("country")) return rv } -// The relevant areas of interest associated with the placemark. [Full Topic] +// Additional administrative area information for the placemark. [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/1423776-subadministrativearea?language=objc +func (p_ Placemark) SubAdministrativeArea() string { + rv := objc.Call[string](p_, objc.Sel("subAdministrativeArea")) return rv } @@ -126,19 +122,27 @@ func (p_ Placemark) Ocean() string { return rv } -// The name of the placemark. [Full Topic] +// Additional street-level 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/1423782-subthoroughfare?language=objc +func (p_ Placemark) SubThoroughfare() string { + rv := objc.Call[string](p_, objc.Sel("subThoroughfare")) return rv } -// Additional city-level information for 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/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/2890749-postaladdress?language=objc +func (p_ Placemark) PostalAddress() contacts.PostalAddress { + rv := objc.Call[contacts.PostalAddress](p_, objc.Sel("postalAddress")) + return rv +} + +// The name of the inland water body associated with 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")) return rv } @@ -150,11 +154,19 @@ func (p_ Placemark) Location() Location { return rv } -// The city associated with the placemark. [Full Topic] +// The geographic region associated with 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/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] +// +// [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 } @@ -166,19 +178,19 @@ func (p_ Placemark) PostalCode() string { return rv } -// The abbreviated country or region name. [Full Topic] +// The relevant areas of interest 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/1423673-areasofinterest?language=objc +func (p_ Placemark) AreasOfInterest() []string { + rv := objc.Call[[]string](p_, objc.Sel("areasOfInterest")) return rv } -// The time zone associated with the placemark. [Full Topic] +// Additional city-level information for the placemark. [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/1423794-sublocality?language=objc +func (p_ Placemark) SubLocality() string { + rv := objc.Call[string](p_, objc.Sel("subLocality")) return rv } @@ -190,50 +202,34 @@ func (p_ Placemark) AdministrativeArea() string { return rv } -// 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/2890749-postaladdress?language=objc -func (p_ Placemark) PostalAddress() contacts.PostalAddress { - rv := objc.Call[contacts.PostalAddress](p_, objc.Sel("postalAddress")) - 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 geographic region associated with the placemark. [Full Topic] +// The time zone 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")) +// [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 } -// Additional administrative area information for the placemark. [Full Topic] +// The city 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/1423507-locality?language=objc +func (p_ Placemark) Locality() string { + rv := objc.Call[string](p_, objc.Sel("locality")) return rv } -// The name of the country or region associated with the placemark. [Full Topic] +// The abbreviated country or region name. [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/1423796-isocountrycode?language=objc +func (p_ Placemark) ISOcountryCode() string { + rv := objc.Call[string](p_, objc.Sel("ISOcountryCode")) return rv } -// The street address associated with the placemark. [Full Topic] +// The name of 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/1423634-name?language=objc +func (p_ Placemark) Name() string { + rv := objc.Call[string](p_, objc.Sel("name")) return rv } diff --git a/macos/corelocation/protocols.gen.m b/macos/corelocation/protocols.gen.m index e40b673a..07dfec74 100644 --- a/macos/corelocation/protocols.gen.m +++ b/macos/corelocation/protocols.gen.m @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. #import "CoreLocation/CoreLocation.h" diff --git a/macos/corelocation/region.gen.go b/macos/corelocation/region.gen.go index 030aaf59..273d32ef 100644 --- a/macos/corelocation/region.gen.go +++ b/macos/corelocation/region.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package corelocation @@ -18,11 +18,11 @@ type _RegionClass struct { // An interface definition for the [Region] class. type IRegion interface { objc.IObject - NotifyOnEntry() bool - SetNotifyOnEntry(value bool) + Identifier() string NotifyOnExit() bool SetNotifyOnExit(value bool) - Identifier() string + NotifyOnEntry() bool + SetNotifyOnEntry(value bool) } // A base class representing an area that can be monitored. [Full Topic] @@ -43,10 +43,6 @@ func (rc _RegionClass) Alloc() Region { return rv } -func Region_Alloc() Region { - return RegionClass.Alloc() -} - func (rc _RegionClass) New() Region { rv := objc.Call[Region](rc, objc.Sel("new")) rv.Autorelease() @@ -62,21 +58,14 @@ func (r_ Region) Init() Region { return rv } -// 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) -} - // 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 @@ -92,10 +81,17 @@ func (r_ Region) SetNotifyOnExit(value bool) { objc.Call[objc.Void](r_, objc.Sel("setNotifyOnExit:"), value) } -// 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) +} diff --git a/macos/corelocation/visit.gen.go b/macos/corelocation/visit.gen.go index 8395f445..f487ad1b 100644 --- a/macos/corelocation/visit.gen.go +++ b/macos/corelocation/visit.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package corelocation @@ -19,10 +19,10 @@ type _VisitClass struct { // An interface definition for the [Visit] class. type IVisit interface { objc.IObject - HorizontalAccuracy() LocationAccuracy - Coordinate() LocationCoordinate2D ArrivalDate() foundation.Date + Coordinate() LocationCoordinate2D DepartureDate() foundation.Date + HorizontalAccuracy() LocationAccuracy } // Information about the user's location during a specific period of time. [Full Topic] @@ -43,10 +43,6 @@ func (vc _VisitClass) Alloc() Visit { return rv } -func Visit_Alloc() Visit { - return VisitClass.Alloc() -} - func (vc _VisitClass) New() Visit { rv := objc.Call[Visit](vc, objc.Sel("new")) rv.Autorelease() @@ -62,11 +58,11 @@ func (v_ Visit) Init() Visit { return rv } -// The horizontal accuracy (in meters) of the specified coordinate. [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/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/1614681-arrivaldate?language=objc +func (v_ Visit) ArrivalDate() foundation.Date { + rv := objc.Call[foundation.Date](v_, objc.Sel("arrivalDate")) return rv } @@ -78,14 +74,6 @@ func (v_ Visit) Coordinate() LocationCoordinate2D { return rv } -// The approximate time at which the user arrived at the specified location. [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")) - return rv -} - // The approximate time at which the user left the specified location. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/corelocation/clvisit/1614685-departuredate?language=objc @@ -93,3 +81,11 @@ func (v_ Visit) DepartureDate() foundation.Date { rv := objc.Call[foundation.Date](v_, objc.Sel("departureDate")) return rv } + +// The horizontal accuracy (in meters) of the specified coordinate. [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")) + return rv +} diff --git a/macos/coremedia/aliastypes.gen.go b/macos/coremedia/aliastypes.gen.go index 1a956443..d853626b 100644 --- a/macos/coremedia/aliastypes.gen.go +++ b/macos/coremedia/aliastypes.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package coremedia @@ -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 CMSampleBufferInvalidate. [Full Topic] +// Client callback called by [coremedia/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 CMSampleBufferInvalidate. [Full Topic] +// Client callback called by [coremedia/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 CMSampleBufferMakeDataReady. [Full Topic] +// Client callback called by [coremedia/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/coremedia/doc.gen.go b/macos/coremedia/doc.gen.go index 91fee23d..2c8cce90 100644 --- a/macos/coremedia/doc.gen.go +++ b/macos/coremedia/doc.gen.go @@ -1,8 +1,8 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. // Represent time-based audio-visual assets with essential data types. // -// [Full Documentation] +// [Apple Documentation] // -// [Full Documentation]: https://developer.apple.com/documentation/coremedia?language=objc +// [Apple Documentation]: https://developer.apple.com/documentation/coremedia?language=objc package coremedia diff --git a/macos/coremedia/enumtypes.gen.go b/macos/coremedia/enumtypes.gen.go index f3d1b6d4..ca4b7dcf 100644 --- a/macos/coremedia/enumtypes.gen.go +++ b/macos/coremedia/enumtypes.gen.go @@ -1,8 +1,10 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package coremedia -import "github.com/progrium/macdriver/macos/corefoundation" +import ( + "github.com/progrium/macdriver/macos/corefoundation" +) // A type for mask bits that represent parts of an audio format description. [Full Topic] // diff --git a/macos/coremedia/protocols.gen.m b/macos/coremedia/protocols.gen.m index be6c2918..c9c18150 100644 --- a/macos/coremedia/protocols.gen.m +++ b/macos/coremedia/protocols.gen.m @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. #import "CoreMedia/CoreMedia.h" diff --git a/macos/coremediaio/aliastypes.gen.go b/macos/coremediaio/aliastypes.gen.go index ce790589..93f40043 100644 --- a/macos/coremediaio/aliastypes.gen.go +++ b/macos/coremediaio/aliastypes.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package coremediaio diff --git a/macos/coremediaio/doc.gen.go b/macos/coremediaio/doc.gen.go index 60013562..068e8ff0 100644 --- a/macos/coremediaio/doc.gen.go +++ b/macos/coremediaio/doc.gen.go @@ -1,8 +1,8 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. // Securely support custom camera devices in macOS. // -// [Full Documentation] +// [Apple Documentation] // -// [Full Documentation]: https://developer.apple.com/documentation/coremediaio?language=objc +// [Apple Documentation]: https://developer.apple.com/documentation/coremediaio?language=objc package coremediaio diff --git a/macos/coremediaio/enumtypes.gen.go b/macos/coremediaio/enumtypes.gen.go index 127f411b..c0d60f90 100644 --- a/macos/coremediaio/enumtypes.gen.go +++ b/macos/coremediaio/enumtypes.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package coremediaio diff --git a/macos/coremediaio/extension_client.gen.go b/macos/coremediaio/extension_client.gen.go index 5acb51ec..e264d402 100644 --- a/macos/coremediaio/extension_client.gen.go +++ b/macos/coremediaio/extension_client.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package coremediaio @@ -40,10 +40,6 @@ func (ec _ExtensionClientClass) Alloc() ExtensionClient { return rv } -func ExtensionClient_Alloc() ExtensionClient { - return ExtensionClientClass.Alloc() -} - func (ec _ExtensionClientClass) New() ExtensionClient { rv := objc.Call[ExtensionClient](ec, objc.Sel("new")) rv.Autorelease() diff --git a/macos/coremediaio/extension_device.gen.go b/macos/coremediaio/extension_device.gen.go index e7f86064..4c63bca1 100644 --- a/macos/coremediaio/extension_device.gen.go +++ b/macos/coremediaio/extension_device.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package coremediaio @@ -19,14 +19,14 @@ type _ExtensionDeviceClass struct { // An interface definition for the [ExtensionDevice] class. type IExtensionDevice interface { objc.IObject - NotifyPropertiesChanged(propertyStates map[ExtensionProperty]IExtensionPropertyState) - RemoveStreamError(stream IExtensionStream, outError foundation.IError) bool AddStreamError(stream IExtensionStream, outError foundation.IError) bool - DeviceID() foundation.UUID - Streams() []ExtensionStream - Source() ExtensionDeviceSourceWrapper + RemoveStreamError(stream IExtensionStream, outError foundation.IError) bool + NotifyPropertiesChanged(propertyStates map[ExtensionProperty]IExtensionPropertyState) LocalizedName() string + Streams() []ExtensionStream LegacyDeviceID() string + DeviceID() foundation.UUID + Source() ExtensionDeviceSourceObject } // An object that represents a physical or virtual device. [Full Topic] @@ -42,13 +42,37 @@ func ExtensionDeviceFrom(ptr unsafe.Pointer) ExtensionDevice { } } -func (ec _ExtensionDeviceClass) Alloc() ExtensionDevice { - rv := objc.Call[ExtensionDevice](ec, objc.Sel("alloc")) +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, objc.Ptr(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, objc.Ptr(deviceID), legacyDeviceID, po3) return rv } -func ExtensionDevice_Alloc() ExtensionDevice { - return ExtensionDeviceClass.Alloc() +// 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 } func (ec _ExtensionDeviceClass) New() ExtensionDevice { @@ -66,11 +90,12 @@ func (e_ ExtensionDevice) Init() ExtensionDevice { 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 foundation.IError) bool { + rv := objc.Call[bool](e_, objc.Sel("addStream:error:"), objc.Ptr(stream), objc.Ptr(outError)) + return rv } // Removes a stream from the device. [Full Topic] @@ -81,19 +106,18 @@ func (e_ ExtensionDevice) RemoveStreamError(stream IExtensionStream, outError fo 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 foundation.IError) bool { - rv := objc.Call[bool](e_, objc.Sel("addStream:error:"), objc.Ptr(stream), objc.Ptr(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) } -// 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 } @@ -105,26 +129,26 @@ func (e_ ExtensionDevice) Streams() []ExtensionStream { 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() ExtensionDeviceSourceWrapper { - rv := objc.Call[ExtensionDeviceSourceWrapper](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 } -// 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 } -// 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 } diff --git a/macos/coremediaio/extension_device_properties.gen.go b/macos/coremediaio/extension_device_properties.gen.go index 917a599a..48d2fc13 100644 --- a/macos/coremediaio/extension_device_properties.gen.go +++ b/macos/coremediaio/extension_device_properties.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package coremediaio @@ -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,6 +45,18 @@ 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 @@ -59,27 +71,11 @@ 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 } -func ExtensionDeviceProperties_Alloc() ExtensionDeviceProperties { - return ExtensionDevicePropertiesClass.Alloc() -} - func (ec _ExtensionDevicePropertiesClass) New() ExtensionDeviceProperties { rv := objc.Call[ExtensionDeviceProperties](ec, objc.Sel("new")) rv.Autorelease() @@ -102,21 +98,6 @@ func (e_ ExtensionDeviceProperties) SetPropertyStateForProperty(propertyState IE objc.Call[objc.Void](e_, objc.Sel("setPropertyState:forProperty:"), objc.Ptr(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 @@ -132,21 +113,6 @@ func (e_ ExtensionDeviceProperties) SetTransportType(value foundation.INumber) { objc.Call[objc.Void](e_, objc.Sel("setTransportType:"), objc.Ptr(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 @@ -176,3 +142,33 @@ 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.gen.go b/macos/coremediaio/extension_device_source_protocol.gen.go similarity index 66% rename from macos/coremediaio/extension_device_source.gen.go rename to macos/coremediaio/extension_device_source_protocol.gen.go index 66e199ff..e0753c81 100644 --- a/macos/coremediaio/extension_device_source.gen.go +++ b/macos/coremediaio/extension_device_source_protocol.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package coremediaio @@ -12,55 +12,58 @@ import ( // [Full Topic]: https://developer.apple.com/documentation/coremediaio/cmioextensiondevicesource?language=objc type PExtensionDeviceSource interface { // optional - SetDevicePropertiesError(deviceProperties ExtensionDeviceProperties, outError foundation.Error) bool - HasSetDevicePropertiesError() bool + DevicePropertiesForPropertiesError(properties foundation.Set, outError foundation.Error) ExtensionDeviceProperties + HasDevicePropertiesForPropertiesError() bool // optional - DevicePropertiesForPropertiesError(properties foundation.Set, outError foundation.Error) IExtensionDeviceProperties - HasDevicePropertiesForPropertiesError() bool + SetDevicePropertiesError(deviceProperties ExtensionDeviceProperties, outError foundation.Error) bool + HasSetDevicePropertiesError() bool // optional - AvailableProperties() foundation.ISet + AvailableProperties() foundation.Set HasAvailableProperties() bool } -// A concrete type wrapper for the [PExtensionDeviceSource] protocol. -type ExtensionDeviceSourceWrapper struct { +// ensure impl type implements protocol interface +var _ PExtensionDeviceSource = (*ExtensionDeviceSourceObject)(nil) + +// A concrete type for the [PExtensionDeviceSource] protocol. +type ExtensionDeviceSourceObject struct { objc.Object } -func (e_ ExtensionDeviceSourceWrapper) HasSetDevicePropertiesError() bool { - return e_.RespondsToSelector(objc.Sel("setDeviceProperties:error:")) +func (e_ ExtensionDeviceSourceObject) HasDevicePropertiesForPropertiesError() bool { + return e_.RespondsToSelector(objc.Sel("devicePropertiesForProperties:error:")) } -// Sets the state of device properties. [Full Topic] +// Retrieves the state of device properties. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coremediaio/cmioextensiondevicesource/3915850-setdeviceproperties?language=objc -func (e_ ExtensionDeviceSourceWrapper) SetDevicePropertiesError(deviceProperties IExtensionDeviceProperties, outError foundation.IError) bool { - rv := objc.Call[bool](e_, objc.Sel("setDeviceProperties:error:"), objc.Ptr(deviceProperties), objc.Ptr(outError)) +// [Full Topic]: https://developer.apple.com/documentation/coremediaio/cmioextensiondevicesource/3915849-devicepropertiesforproperties?language=objc +func (e_ ExtensionDeviceSourceObject) DevicePropertiesForPropertiesError(properties foundation.Set, outError foundation.Error) ExtensionDeviceProperties { + rv := objc.Call[ExtensionDeviceProperties](e_, objc.Sel("devicePropertiesForProperties:error:"), objc.Ptr(properties), objc.Ptr(outError)) return rv } -func (e_ ExtensionDeviceSourceWrapper) HasDevicePropertiesForPropertiesError() bool { - return e_.RespondsToSelector(objc.Sel("devicePropertiesForProperties:error:")) +func (e_ ExtensionDeviceSourceObject) HasSetDevicePropertiesError() bool { + return e_.RespondsToSelector(objc.Sel("setDeviceProperties:error:")) } -// Retrieves the state of device properties. [Full Topic] +// Sets the state of device properties. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coremediaio/cmioextensiondevicesource/3915849-devicepropertiesforproperties?language=objc -func (e_ ExtensionDeviceSourceWrapper) DevicePropertiesForPropertiesError(properties foundation.ISet, outError foundation.IError) ExtensionDeviceProperties { - rv := objc.Call[ExtensionDeviceProperties](e_, objc.Sel("devicePropertiesForProperties:error:"), objc.Ptr(properties), objc.Ptr(outError)) +// [Full Topic]: https://developer.apple.com/documentation/coremediaio/cmioextensiondevicesource/3915850-setdeviceproperties?language=objc +func (e_ ExtensionDeviceSourceObject) SetDevicePropertiesError(deviceProperties ExtensionDeviceProperties, outError foundation.Error) bool { + rv := objc.Call[bool](e_, objc.Sel("setDeviceProperties:error:"), objc.Ptr(deviceProperties), objc.Ptr(outError)) return rv } -func (e_ ExtensionDeviceSourceWrapper) HasAvailableProperties() bool { +func (e_ ExtensionDeviceSourceObject) HasAvailableProperties() bool { return e_.RespondsToSelector(objc.Sel("availableProperties")) } // A set of available properties that a device provides. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/coremediaio/cmioextensiondevicesource/3915848-availableproperties?language=objc -func (e_ ExtensionDeviceSourceWrapper) AvailableProperties() foundation.Set { +func (e_ ExtensionDeviceSourceObject) AvailableProperties() foundation.Set { rv := objc.Call[foundation.Set](e_, objc.Sel("availableProperties")) return rv } diff --git a/macos/coremediaio/extension_property_attributes.gen.go b/macos/coremediaio/extension_property_attributes.gen.go index b7fa95e8..27264e48 100644 --- a/macos/coremediaio/extension_property_attributes.gen.go +++ b/macos/coremediaio/extension_property_attributes.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package coremediaio @@ -18,10 +18,10 @@ type _ExtensionPropertyAttributesClass struct { // An interface definition for the [ExtensionPropertyAttributes] class. type IExtensionPropertyAttributes interface { objc.IObject - IsReadOnly() bool - ValidValues() []objc.Object MinValue() objc.Object MaxValue() objc.Object + IsReadOnly() bool + ValidValues() []objc.Object } // An object that describes the attributes of a property. [Full Topic] @@ -37,18 +37,6 @@ 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:"), objc.Ptr(minValue), objc.Ptr(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:"), objc.Ptr(minValue), objc.Ptr(maxValue), validValues, readOnly) return rv @@ -63,13 +51,21 @@ func NewExtensionPropertyAttributesWithMinValueMaxValueValidValuesReadOnly(minVa return instance } -func (ec _ExtensionPropertyAttributesClass) Alloc() ExtensionPropertyAttributes { - rv := objc.Call[ExtensionPropertyAttributes](ec, objc.Sel("alloc")) +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:"), objc.Ptr(minValue), objc.Ptr(maxValue), validValues, readOnly) return rv } -func ExtensionPropertyAttributes_Alloc() ExtensionPropertyAttributes { - return ExtensionPropertyAttributesClass.Alloc() +// 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 } func (ec _ExtensionPropertyAttributesClass) New() ExtensionPropertyAttributes { @@ -87,22 +83,6 @@ 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 @@ -133,3 +113,19 @@ 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 6e70e189..1525665a 100644 --- a/macos/coremediaio/extension_property_state.gen.go +++ b/macos/coremediaio/extension_property_state.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package coremediaio @@ -35,6 +35,32 @@ func ExtensionPropertyStateFrom(ptr unsafe.Pointer) ExtensionPropertyState { } } +func (ec _ExtensionPropertyStateClass) PropertyStateWithValue(value objc.IObject) ExtensionPropertyState { + rv := objc.Call[ExtensionPropertyState](ec, objc.Sel("propertyStateWithValue:"), objc.Ptr(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:"), objc.Ptr(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:"), objc.Ptr(value), objc.Ptr(attributes)) return rv @@ -49,16 +75,16 @@ func NewExtensionPropertyStateWithValueAttributes(value objc.IObject, attributes return instance } -func (ec _ExtensionPropertyStateClass) PropertyStateWithValue(value objc.IObject) ExtensionPropertyState { - rv := objc.Call[ExtensionPropertyState](ec, objc.Sel("propertyStateWithValue:"), objc.Ptr(value)) +func (ec _ExtensionPropertyStateClass) PropertyStateWithValueAttributes(value objc.IObject, attributes IExtensionPropertyAttributes) ExtensionPropertyState { + rv := objc.Call[ExtensionPropertyState](ec, objc.Sel("propertyStateWithValue:attributes:"), objc.Ptr(value), objc.Ptr(attributes)) return rv } -// Returns a new property state with a value. [Full Topic] +// Returns a new property state with a value and attributes. [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) +// [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) } func (ec _ExtensionPropertyStateClass) Alloc() ExtensionPropertyState { @@ -66,10 +92,6 @@ func (ec _ExtensionPropertyStateClass) Alloc() ExtensionPropertyState { return rv } -func ExtensionPropertyState_Alloc() ExtensionPropertyState { - return ExtensionPropertyStateClass.Alloc() -} - func (ec _ExtensionPropertyStateClass) New() ExtensionPropertyState { rv := objc.Call[ExtensionPropertyState](ec, objc.Sel("new")) rv.Autorelease() diff --git a/macos/coremediaio/extension_provider.gen.go b/macos/coremediaio/extension_provider.gen.go index 49072d19..e68843ca 100644 --- a/macos/coremediaio/extension_provider.gen.go +++ b/macos/coremediaio/extension_provider.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package coremediaio @@ -23,10 +23,10 @@ type IExtensionProvider interface { NotifyPropertiesChanged(propertyStates map[ExtensionProperty]IExtensionPropertyState) AddDeviceError(device IExtensionDevice, outError foundation.IError) bool RemoveDeviceError(device IExtensionDevice, outError foundation.IError) bool - Source() ExtensionProviderSourceWrapper - ConnectedClients() []ExtensionClient - ClientQueue() dispatch.Queue + Source() ExtensionProviderSourceObject Devices() []ExtensionDevice + ClientQueue() dispatch.Queue + ConnectedClients() []ExtensionClient } // An object that manages device connections for a provider. [Full Topic] @@ -75,10 +75,6 @@ func (ec _ExtensionProviderClass) Alloc() ExtensionProvider { return rv } -func ExtensionProvider_Alloc() ExtensionProvider { - return ExtensionProviderClass.Alloc() -} - func (ec _ExtensionProviderClass) New() ExtensionProvider { rv := objc.Call[ExtensionProvider](ec, objc.Sel("new")) rv.Autorelease() @@ -101,6 +97,14 @@ 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 foundation.IError) bool { + rv := objc.Call[bool](e_, objc.Sel("addDevice:error:"), objc.Ptr(device), objc.Ptr(outError)) + return rv +} + // Starts the system extension. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/coremediaio/cmioextensionprovider/3915915-startservicewithprovider?language=objc @@ -115,14 +119,6 @@ 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 foundation.IError) bool { - rv := objc.Call[bool](e_, objc.Sel("addDevice:error:"), objc.Ptr(device), objc.Ptr(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,16 +130,16 @@ func (e_ ExtensionProvider) RemoveDeviceError(device IExtensionDevice, outError // The source for the provider. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/coremediaio/cmioextensionprovider/3915914-source?language=objc -func (e_ ExtensionProvider) Source() ExtensionProviderSourceWrapper { - rv := objc.Call[ExtensionProviderSourceWrapper](e_, objc.Sel("source")) +func (e_ ExtensionProvider) Source() ExtensionProviderSourceObject { + rv := objc.Call[ExtensionProviderSourceObject](e_, objc.Sel("source")) 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 } @@ -155,10 +151,10 @@ func (e_ ExtensionProvider) ClientQueue() dispatch.Queue { 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 } diff --git a/macos/coremediaio/extension_provider_properties.gen.go b/macos/coremediaio/extension_provider_properties.gen.go index f2d9c0b1..ad13fb5e 100644 --- a/macos/coremediaio/extension_provider_properties.gen.go +++ b/macos/coremediaio/extension_provider_properties.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package coremediaio @@ -40,18 +40,6 @@ 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 @@ -66,13 +54,21 @@ func NewExtensionProviderPropertiesWithDictionary(propertiesDictionary map[Exten return instance } -func (ec _ExtensionProviderPropertiesClass) Alloc() ExtensionProviderProperties { - rv := objc.Call[ExtensionProviderProperties](ec, objc.Sel("alloc")) +func (ec _ExtensionProviderPropertiesClass) ProviderPropertiesWithDictionary(propertiesDictionary map[ExtensionProperty]IExtensionPropertyState) ExtensionProviderProperties { + rv := objc.Call[ExtensionProviderProperties](ec, objc.Sel("providerPropertiesWithDictionary:"), propertiesDictionary) return rv } -func ExtensionProviderProperties_Alloc() ExtensionProviderProperties { - return ExtensionProviderPropertiesClass.Alloc() +// 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 } func (ec _ExtensionProviderPropertiesClass) New() ExtensionProviderProperties { diff --git a/macos/coremediaio/extension_provider_source.gen.go b/macos/coremediaio/extension_provider_source_protocol.gen.go similarity index 68% rename from macos/coremediaio/extension_provider_source.gen.go rename to macos/coremediaio/extension_provider_source_protocol.gen.go index 9a47fd57..4078191c 100644 --- a/macos/coremediaio/extension_provider_source.gen.go +++ b/macos/coremediaio/extension_provider_source_protocol.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package coremediaio @@ -15,10 +15,6 @@ type PExtensionProviderSource interface { SetProviderPropertiesError(providerProperties ExtensionProviderProperties, outError foundation.Error) bool HasSetProviderPropertiesError() bool - // optional - ProviderPropertiesForPropertiesError(properties foundation.Set, outError foundation.Error) IExtensionProviderProperties - HasProviderPropertiesForPropertiesError() bool - // optional ConnectClientError(client ExtensionClient, outError foundation.Error) bool HasConnectClientError() bool @@ -28,70 +24,77 @@ type PExtensionProviderSource interface { HasDisconnectClient() bool // optional - AvailableProperties() foundation.ISet + ProviderPropertiesForPropertiesError(properties foundation.Set, outError foundation.Error) ExtensionProviderProperties + HasProviderPropertiesForPropertiesError() bool + + // optional + AvailableProperties() foundation.Set HasAvailableProperties() bool } -// A concrete type wrapper for the [PExtensionProviderSource] protocol. -type ExtensionProviderSourceWrapper struct { +// ensure impl type implements protocol interface +var _ PExtensionProviderSource = (*ExtensionProviderSourceObject)(nil) + +// A concrete type for the [PExtensionProviderSource] protocol. +type ExtensionProviderSourceObject struct { objc.Object } -func (e_ ExtensionProviderSourceWrapper) HasSetProviderPropertiesError() bool { +func (e_ ExtensionProviderSourceObject) HasSetProviderPropertiesError() bool { return e_.RespondsToSelector(objc.Sel("setProviderProperties:error:")) } // Set the state of provider properties. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/coremediaio/cmioextensionprovidersource/3915928-setproviderproperties?language=objc -func (e_ ExtensionProviderSourceWrapper) SetProviderPropertiesError(providerProperties IExtensionProviderProperties, outError foundation.IError) bool { +func (e_ ExtensionProviderSourceObject) SetProviderPropertiesError(providerProperties ExtensionProviderProperties, outError foundation.Error) bool { rv := objc.Call[bool](e_, objc.Sel("setProviderProperties:error:"), objc.Ptr(providerProperties), objc.Ptr(outError)) return rv } -func (e_ ExtensionProviderSourceWrapper) 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_ ExtensionProviderSourceWrapper) ProviderPropertiesForPropertiesError(properties foundation.ISet, outError foundation.IError) ExtensionProviderProperties { - rv := objc.Call[ExtensionProviderProperties](e_, objc.Sel("providerPropertiesForProperties:error:"), objc.Ptr(properties), objc.Ptr(outError)) - return rv -} - -func (e_ ExtensionProviderSourceWrapper) HasConnectClientError() bool { +func (e_ ExtensionProviderSourceObject) HasConnectClientError() bool { return e_.RespondsToSelector(objc.Sel("connectClient:error:")) } // Connects a client to a source’s provider. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/coremediaio/cmioextensionprovidersource/3915925-connectclient?language=objc -func (e_ ExtensionProviderSourceWrapper) ConnectClientError(client IExtensionClient, outError foundation.IError) bool { +func (e_ ExtensionProviderSourceObject) ConnectClientError(client ExtensionClient, outError foundation.Error) bool { rv := objc.Call[bool](e_, objc.Sel("connectClient:error:"), objc.Ptr(client), objc.Ptr(outError)) return rv } -func (e_ ExtensionProviderSourceWrapper) HasDisconnectClient() bool { +func (e_ ExtensionProviderSourceObject) HasDisconnectClient() bool { return e_.RespondsToSelector(objc.Sel("disconnectClient:")) } // Disconnects a client from a source’s provider. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/coremediaio/cmioextensionprovidersource/3915926-disconnectclient?language=objc -func (e_ ExtensionProviderSourceWrapper) DisconnectClient(client IExtensionClient) { +func (e_ ExtensionProviderSourceObject) DisconnectClient(client ExtensionClient) { objc.Call[objc.Void](e_, objc.Sel("disconnectClient:"), objc.Ptr(client)) } -func (e_ ExtensionProviderSourceWrapper) HasAvailableProperties() bool { +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 foundation.Error) ExtensionProviderProperties { + rv := objc.Call[ExtensionProviderProperties](e_, objc.Sel("providerPropertiesForProperties:error:"), objc.Ptr(properties), objc.Ptr(outError)) + return rv +} + +func (e_ ExtensionProviderSourceObject) HasAvailableProperties() bool { return e_.RespondsToSelector(objc.Sel("availableProperties")) } // A set of available properties for a provider. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/coremediaio/cmioextensionprovidersource/3915924-availableproperties?language=objc -func (e_ ExtensionProviderSourceWrapper) AvailableProperties() foundation.Set { +func (e_ ExtensionProviderSourceObject) AvailableProperties() foundation.Set { rv := objc.Call[foundation.Set](e_, objc.Sel("availableProperties")) return rv } diff --git a/macos/coremediaio/extension_scheduled_output.gen.go b/macos/coremediaio/extension_scheduled_output.gen.go index 4e3c0548..520117d8 100644 --- a/macos/coremediaio/extension_scheduled_output.gen.go +++ b/macos/coremediaio/extension_scheduled_output.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package coremediaio @@ -66,10 +66,6 @@ func (ec _ExtensionScheduledOutputClass) Alloc() ExtensionScheduledOutput { return rv } -func ExtensionScheduledOutput_Alloc() ExtensionScheduledOutput { - return ExtensionScheduledOutputClass.Alloc() -} - func (ec _ExtensionScheduledOutputClass) New() ExtensionScheduledOutput { rv := objc.Call[ExtensionScheduledOutput](ec, objc.Sel("new")) rv.Autorelease() diff --git a/macos/coremediaio/extension_stream.gen.go b/macos/coremediaio/extension_stream.gen.go index c7faf072..ff94bad5 100644 --- a/macos/coremediaio/extension_stream.gen.go +++ b/macos/coremediaio/extension_stream.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package coremediaio @@ -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) - SendSampleBufferDiscontinuityHostTimeInNanoseconds(sampleBuffer coremedia.SampleBufferRef, discontinuity ExtensionStreamDiscontinuityFlags, hostTimeInNanoseconds uint64) ConsumeSampleBufferFromClientCompletionHandler(client IExtensionClient, completionHandler func(sampleBuffer coremedia.SampleBufferRef, sampleBufferSequenceNumber uint64, discontinuity ExtensionStreamDiscontinuityFlags, hasMoreSampleBuffers bool, error foundation.Error)) - StreamID() foundation.UUID - Direction() ExtensionStreamDirection - Source() ExtensionStreamSourceWrapper + SendSampleBufferDiscontinuityHostTimeInNanoseconds(sampleBuffer coremedia.SampleBufferRef, discontinuity ExtensionStreamDiscontinuityFlags, hostTimeInNanoseconds uint64) + NotifyPropertiesChanged(propertyStates map[ExtensionProperty]IExtensionPropertyState) LocalizedName() string + StreamingClients() []ExtensionClient + Source() ExtensionStreamSourceObject + StreamID() foundation.UUID ClockType() ExtensionStreamClockType + Direction() ExtensionStreamDirection CustomClockConfiguration() ExtensionStreamCustomClockConfiguration - StreamingClients() []ExtensionClient } // An object that represents a stream of media data. [Full Topic] @@ -61,6 +61,34 @@ 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, objc.Ptr(streamID), direction, objc.Ptr(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, objc.Ptr(streamID), direction, objc.Ptr(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, objc.Ptr(streamID), direction, clockType, po4) @@ -79,10 +107,6 @@ func (ec _ExtensionStreamClass) Alloc() ExtensionStream { return rv } -func ExtensionStream_Alloc() ExtensionStream { - return ExtensionStreamClass.Alloc() -} - func (ec _ExtensionStreamClass) New() ExtensionStream { rv := objc.Call[ExtensionStream](ec, objc.Sel("new")) rv.Autorelease() @@ -98,13 +122,6 @@ 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 @@ -112,6 +129,13 @@ func (e_ ExtensionStream) NotifyScheduledOutputChanged(scheduledOutput IExtensio objc.Call[objc.Void](e_, objc.Sel("notifyScheduledOutputChanged:"), objc.Ptr(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:"), objc.Ptr(client), completionHandler) +} + // Sends a media sample to stream client. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/coremediaio/cmioextensionstream/3915939-sendsamplebuffer?language=objc @@ -119,42 +143,42 @@ func (e_ ExtensionStream) SendSampleBufferDiscontinuityHostTimeInNanoseconds(sam objc.Call[objc.Void](e_, objc.Sel("sendSampleBuffer:discontinuity:hostTimeInNanoseconds:"), sampleBuffer, discontinuity, hostTimeInNanoseconds) } -// Consumes a sample buffer from a client. [Full Topic] +// Notifies clients about stream property changes. [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:"), objc.Ptr(client), completionHandler) +// [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) } -// 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 } -// The data-flow direction of the stream. [Full Topic] +// An array of clients 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")) +// [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 } // The source object for the stream. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/coremediaio/cmioextensionstream/3915940-source?language=objc -func (e_ ExtensionStream) Source() ExtensionStreamSourceWrapper { - rv := objc.Call[ExtensionStreamSourceWrapper](e_, objc.Sel("source")) +func (e_ ExtensionStream) Source() ExtensionStreamSourceObject { + rv := objc.Call[ExtensionStreamSourceObject](e_, objc.Sel("source")) return rv } -// 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 } @@ -166,18 +190,18 @@ func (e_ ExtensionStream) ClockType() ExtensionStreamClockType { return rv } -// An optional custom clock configuration for a stream. [Full Topic] +// The data-flow direction of the stream. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coremediaio/cmioextensionstream/3915932-customclockconfiguration?language=objc -func (e_ ExtensionStream) CustomClockConfiguration() ExtensionStreamCustomClockConfiguration { - rv := objc.Call[ExtensionStreamCustomClockConfiguration](e_, objc.Sel("customClockConfiguration")) +// [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 array of clients of the stream. [Full Topic] +// An optional custom clock configuration for a 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/3915932-customclockconfiguration?language=objc +func (e_ ExtensionStream) CustomClockConfiguration() ExtensionStreamCustomClockConfiguration { + rv := objc.Call[ExtensionStreamCustomClockConfiguration](e_, objc.Sel("customClockConfiguration")) 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 7de2fa47..246b5a02 100644 --- a/macos/coremediaio/extension_stream_custom_clock_configuration.gen.go +++ b/macos/coremediaio/extension_stream_custom_clock_configuration.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package coremediaio @@ -20,11 +20,11 @@ type _ExtensionStreamCustomClockConfigurationClass struct { // An interface definition for the [ExtensionStreamCustomClockConfiguration] class. type IExtensionStreamCustomClockConfiguration interface { objc.IObject - NumberOfEventsForRateSmoothing() uint32 - NumberOfAveragesForRateSmoothing() uint32 SourceIdentifier() foundation.UUID + NumberOfEventsForRateSmoothing() uint32 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,6 +40,18 @@ 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, objc.Ptr(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, objc.Ptr(sourceIdentifier), getTimeCallMinimumInterval, numberOfEventsForRateSmoothing, numberOfAveragesForRateSmoothing) return rv @@ -54,27 +66,11 @@ 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, objc.Ptr(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 } -func ExtensionStreamCustomClockConfiguration_Alloc() ExtensionStreamCustomClockConfiguration { - return ExtensionStreamCustomClockConfigurationClass.Alloc() -} - func (ec _ExtensionStreamCustomClockConfigurationClass) New() ExtensionStreamCustomClockConfiguration { rv := objc.Call[ExtensionStreamCustomClockConfiguration](ec, objc.Sel("new")) rv.Autorelease() @@ -90,22 +86,6 @@ func (e_ ExtensionStreamCustomClockConfiguration) Init() ExtensionStreamCustomCl 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 -func (e_ ExtensionStreamCustomClockConfiguration) NumberOfEventsForRateSmoothing() uint32 { - rv := objc.Call[uint32](e_, objc.Sel("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 @@ -114,6 +94,14 @@ func (e_ ExtensionStreamCustomClockConfiguration) SourceIdentifier() foundation. 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 +func (e_ ExtensionStreamCustomClockConfiguration) NumberOfEventsForRateSmoothing() uint32 { + rv := objc.Call[uint32](e_, objc.Sel("numberOfEventsForRateSmoothing")) + 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 @@ -129,3 +117,11 @@ 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 6a0cc9b6..df261a55 100644 --- a/macos/coremediaio/extension_stream_format.gen.go +++ b/macos/coremediaio/extension_stream_format.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package coremediaio @@ -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,18 +39,6 @@ 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 @@ -65,13 +53,21 @@ func NewExtensionStreamFormatWithFormatDescriptionMaxFrameDurationMinFrameDurati return instance } -func (ec _ExtensionStreamFormatClass) Alloc() ExtensionStreamFormat { - rv := objc.Call[ExtensionStreamFormat](ec, objc.Sel("alloc")) +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 } -func ExtensionStreamFormat_Alloc() ExtensionStreamFormat { - return ExtensionStreamFormatClass.Alloc() +// 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 } func (ec _ExtensionStreamFormatClass) New() ExtensionStreamFormat { @@ -89,14 +85,6 @@ 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 @@ -120,3 +108,11 @@ 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 48478d58..5590c86e 100644 --- a/macos/coremediaio/extension_stream_properties.gen.go +++ b/macos/coremediaio/extension_stream_properties.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package coremediaio @@ -20,10 +20,12 @@ 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 @@ -32,10 +34,8 @@ type IExtensionStreamProperties interface { SetFrameDuration(value foundation.Dictionary) SinkEndOfData() foundation.Number SetSinkEndOfData(value foundation.INumber) - SinkBufferQueueSize() foundation.Number - SetSinkBufferQueueSize(value foundation.INumber) - PropertiesDictionary() map[ExtensionProperty]ExtensionPropertyState - SetPropertiesDictionary(value map[ExtensionProperty]IExtensionPropertyState) + SinkBufferUnderrunCount() foundation.Number + SetSinkBufferUnderrunCount(value foundation.INumber) } // An object that describes the properties of an extension stream. [Full Topic] @@ -51,6 +51,18 @@ 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 @@ -65,27 +77,11 @@ 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 } -func ExtensionStreamProperties_Alloc() ExtensionStreamProperties { - return ExtensionStreamPropertiesClass.Alloc() -} - func (ec _ExtensionStreamPropertiesClass) New() ExtensionStreamProperties { rv := objc.Call[ExtensionStreamProperties](ec, objc.Sel("new")) rv.Autorelease() @@ -108,6 +104,36 @@ func (e_ ExtensionStreamProperties) SetPropertyStateForProperty(propertyState IE objc.Call[objc.Void](e_, objc.Sel("setPropertyState:forProperty:"), objc.Ptr(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:"), objc.Ptr(value)) +} + // The maximum duration of a frame. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/coremediaio/cmioextensionstreamproperties/3915961-maxframeduration?language=objc @@ -123,21 +149,6 @@ 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:"), objc.Ptr(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 @@ -198,32 +209,17 @@ func (e_ ExtensionStreamProperties) SetSinkEndOfData(value foundation.INumber) { objc.Call[objc.Void](e_, objc.Sel("setSinkEndOfData:"), objc.Ptr(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:"), objc.Ptr(value)) -} - -// A dictionary representation of the property state. [Full Topic] +// The buffer underrun count. [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")) +// [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 } -// A dictionary representation of the property state. [Full Topic] +// The buffer underrun count. [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) +// [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:"), objc.Ptr(value)) } diff --git a/macos/coremediaio/extension_stream_source.gen.go b/macos/coremediaio/extension_stream_source_protocol.gen.go similarity index 69% rename from macos/coremediaio/extension_stream_source.gen.go rename to macos/coremediaio/extension_stream_source_protocol.gen.go index 9d75f0e9..489c7bae 100644 --- a/macos/coremediaio/extension_stream_source.gen.go +++ b/macos/coremediaio/extension_stream_source_protocol.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package coremediaio @@ -12,16 +12,12 @@ import ( // [Full Topic]: https://developer.apple.com/documentation/coremediaio/cmioextensionstreamsource?language=objc type PExtensionStreamSource interface { // optional - AuthorizedToStartStreamForClient(client ExtensionClient) bool - HasAuthorizedToStartStreamForClient() bool - - // optional - StopStreamAndReturnError(outError foundation.Error) bool - HasStopStreamAndReturnError() bool + StreamPropertiesForPropertiesError(properties foundation.Set, outError foundation.Error) ExtensionStreamProperties + HasStreamPropertiesForPropertiesError() bool // optional - StreamPropertiesForPropertiesError(properties foundation.Set, outError foundation.Error) IExtensionStreamProperties - HasStreamPropertiesForPropertiesError() bool + AuthorizedToStartStreamForClient(client ExtensionClient) bool + HasAuthorizedToStartStreamForClient() bool // optional SetStreamPropertiesError(streamProperties ExtensionStreamProperties, outError foundation.Error) bool @@ -32,99 +28,106 @@ type PExtensionStreamSource interface { HasStartStreamAndReturnError() bool // optional - Formats() []IExtensionStreamFormat + StopStreamAndReturnError(outError foundation.Error) bool + HasStopStreamAndReturnError() bool + + // optional + Formats() []ExtensionStreamFormat HasFormats() bool // optional - AvailableProperties() foundation.ISet + AvailableProperties() foundation.Set HasAvailableProperties() bool } -// A concrete type wrapper for the [PExtensionStreamSource] protocol. -type ExtensionStreamSourceWrapper struct { - objc.Object -} +// ensure impl type implements protocol interface +var _ PExtensionStreamSource = (*ExtensionStreamSourceObject)(nil) -func (e_ ExtensionStreamSourceWrapper) HasAuthorizedToStartStreamForClient() bool { - return e_.RespondsToSelector(objc.Sel("authorizedToStartStreamForClient:")) -} - -// Determines whether to authorize an app to use this stream. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/coremediaio/cmioextensionstreamsource/3915970-authorizedtostartstreamforclient?language=objc -func (e_ ExtensionStreamSourceWrapper) AuthorizedToStartStreamForClient(client IExtensionClient) bool { - rv := objc.Call[bool](e_, objc.Sel("authorizedToStartStreamForClient:"), objc.Ptr(client)) - return rv +// A concrete type for the [PExtensionStreamSource] protocol. +type ExtensionStreamSourceObject struct { + objc.Object } -func (e_ ExtensionStreamSourceWrapper) HasStopStreamAndReturnError() bool { - return e_.RespondsToSelector(objc.Sel("stopStreamAndReturnError:")) +func (e_ ExtensionStreamSourceObject) HasStreamPropertiesForPropertiesError() bool { + return e_.RespondsToSelector(objc.Sel("streamPropertiesForProperties:error:")) } -// Stops the stream of media data. [Full Topic] +// Gets the states of specified properties. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coremediaio/cmioextensionstreamsource/3915975-stopstreamandreturnerror?language=objc -func (e_ ExtensionStreamSourceWrapper) StopStreamAndReturnError(outError foundation.IError) bool { - rv := objc.Call[bool](e_, objc.Sel("stopStreamAndReturnError:"), objc.Ptr(outError)) +// [Full Topic]: https://developer.apple.com/documentation/coremediaio/cmioextensionstreamsource/3915976-streampropertiesforproperties?language=objc +func (e_ ExtensionStreamSourceObject) StreamPropertiesForPropertiesError(properties foundation.Set, outError foundation.Error) ExtensionStreamProperties { + rv := objc.Call[ExtensionStreamProperties](e_, objc.Sel("streamPropertiesForProperties:error:"), objc.Ptr(properties), objc.Ptr(outError)) return rv } -func (e_ ExtensionStreamSourceWrapper) HasStreamPropertiesForPropertiesError() bool { - return e_.RespondsToSelector(objc.Sel("streamPropertiesForProperties:error:")) +func (e_ ExtensionStreamSourceObject) HasAuthorizedToStartStreamForClient() bool { + return e_.RespondsToSelector(objc.Sel("authorizedToStartStreamForClient:")) } -// Gets the states of specified properties. [Full Topic] +// Determines whether to authorize an app to use this stream. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coremediaio/cmioextensionstreamsource/3915976-streampropertiesforproperties?language=objc -func (e_ ExtensionStreamSourceWrapper) StreamPropertiesForPropertiesError(properties foundation.ISet, outError foundation.IError) ExtensionStreamProperties { - rv := objc.Call[ExtensionStreamProperties](e_, objc.Sel("streamPropertiesForProperties:error:"), objc.Ptr(properties), objc.Ptr(outError)) +// [Full Topic]: https://developer.apple.com/documentation/coremediaio/cmioextensionstreamsource/3915970-authorizedtostartstreamforclient?language=objc +func (e_ ExtensionStreamSourceObject) AuthorizedToStartStreamForClient(client ExtensionClient) bool { + rv := objc.Call[bool](e_, objc.Sel("authorizedToStartStreamForClient:"), objc.Ptr(client)) return rv } -func (e_ ExtensionStreamSourceWrapper) HasSetStreamPropertiesError() bool { +func (e_ ExtensionStreamSourceObject) HasSetStreamPropertiesError() bool { return e_.RespondsToSelector(objc.Sel("setStreamProperties:error:")) } // Sets the property state of a stream. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/coremediaio/cmioextensionstreamsource/3915973-setstreamproperties?language=objc -func (e_ ExtensionStreamSourceWrapper) SetStreamPropertiesError(streamProperties IExtensionStreamProperties, outError foundation.IError) bool { +func (e_ ExtensionStreamSourceObject) SetStreamPropertiesError(streamProperties ExtensionStreamProperties, outError foundation.Error) bool { rv := objc.Call[bool](e_, objc.Sel("setStreamProperties:error:"), objc.Ptr(streamProperties), objc.Ptr(outError)) return rv } -func (e_ ExtensionStreamSourceWrapper) HasStartStreamAndReturnError() bool { +func (e_ ExtensionStreamSourceObject) HasStartStreamAndReturnError() bool { return e_.RespondsToSelector(objc.Sel("startStreamAndReturnError:")) } // Starts the stream of media data. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/coremediaio/cmioextensionstreamsource/3915974-startstreamandreturnerror?language=objc -func (e_ ExtensionStreamSourceWrapper) StartStreamAndReturnError(outError foundation.IError) bool { +func (e_ ExtensionStreamSourceObject) StartStreamAndReturnError(outError foundation.Error) bool { rv := objc.Call[bool](e_, objc.Sel("startStreamAndReturnError:"), objc.Ptr(outError)) return rv } -func (e_ ExtensionStreamSourceWrapper) HasFormats() bool { +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 foundation.Error) bool { + rv := objc.Call[bool](e_, objc.Sel("stopStreamAndReturnError:"), objc.Ptr(outError)) + return rv +} + +func (e_ ExtensionStreamSourceObject) HasFormats() bool { return e_.RespondsToSelector(objc.Sel("formats")) } // An array of formats that a stream supports. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/coremediaio/cmioextensionstreamsource/3915972-formats?language=objc -func (e_ ExtensionStreamSourceWrapper) Formats() []ExtensionStreamFormat { +func (e_ ExtensionStreamSourceObject) Formats() []ExtensionStreamFormat { rv := objc.Call[[]ExtensionStreamFormat](e_, objc.Sel("formats")) return rv } -func (e_ ExtensionStreamSourceWrapper) HasAvailableProperties() bool { +func (e_ ExtensionStreamSourceObject) HasAvailableProperties() bool { return e_.RespondsToSelector(objc.Sel("availableProperties")) } // A set of properties available for the stream. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/coremediaio/cmioextensionstreamsource/3915971-availableproperties?language=objc -func (e_ ExtensionStreamSourceWrapper) AvailableProperties() foundation.Set { +func (e_ ExtensionStreamSourceObject) AvailableProperties() foundation.Set { rv := objc.Call[foundation.Set](e_, objc.Sel("availableProperties")) return rv } diff --git a/macos/coremidi/aliastypes.gen.go b/macos/coremidi/aliastypes.gen.go index 793e2450..6dd501a9 100644 --- a/macos/coremidi/aliastypes.gen.go +++ b/macos/coremidi/aliastypes.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package coremidi diff --git a/macos/coremidi/ci_device_info.gen.go b/macos/coremidi/ci_device_info.gen.go index 3a69c02c..4e242497 100644 --- a/macos/coremidi/ci_device_info.gen.go +++ b/macos/coremidi/ci_device_info.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package coremidi @@ -18,10 +18,10 @@ type _CIDeviceInfoClass struct { // An interface definition for the [CIDeviceInfo] class. type ICIDeviceInfo interface { objc.IObject - ManufacturerID() []byte - RevisionLevel() []byte Family() []byte + ManufacturerID() []byte MidiDestination() EndpointRef + RevisionLevel() []byte ModelNumber() []byte } @@ -57,10 +57,6 @@ func (cc _CIDeviceInfoClass) Alloc() CIDeviceInfo { return rv } -func CIDeviceInfo_Alloc() CIDeviceInfo { - return CIDeviceInfoClass.Alloc() -} - func (cc _CIDeviceInfoClass) New() CIDeviceInfo { rv := objc.Call[CIDeviceInfo](cc, objc.Sel("new")) rv.Autorelease() @@ -76,22 +72,6 @@ func (c_ CIDeviceInfo) Init() CIDeviceInfo { 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 -func (c_ CIDeviceInfo) ManufacturerID() []byte { - rv := objc.Call[[]byte](c_, objc.Sel("manufacturerID")) - 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 -func (c_ CIDeviceInfo) RevisionLevel() []byte { - rv := objc.Call[[]byte](c_, objc.Sel("revisionLevel")) - return rv -} - // The family to which the device belongs. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/coremidi/midicideviceinfo/3553235-family?language=objc @@ -100,6 +80,14 @@ func (c_ CIDeviceInfo) Family() []byte { 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 +func (c_ CIDeviceInfo) ManufacturerID() []byte { + rv := objc.Call[[]byte](c_, objc.Sel("manufacturerID")) + 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 @@ -108,6 +96,14 @@ func (c_ CIDeviceInfo) MidiDestination() EndpointRef { 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 +func (c_ CIDeviceInfo) RevisionLevel() []byte { + rv := objc.Call[[]byte](c_, objc.Sel("revisionLevel")) + 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 963d1d9b..982b3564 100644 --- a/macos/coremidi/ci_discovered_node.gen.go +++ b/macos/coremidi/ci_discovered_node.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package coremidi @@ -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] @@ -44,10 +44,6 @@ func (cc _CIDiscoveredNodeClass) Alloc() CIDiscoveredNode { return rv } -func CIDiscoveredNode_Alloc() CIDiscoveredNode { - return CIDiscoveredNodeClass.Alloc() -} - func (cc _CIDiscoveredNodeClass) New() CIDiscoveredNode { rv := objc.Call[CIDiscoveredNode](cc, objc.Sel("new")) rv.Autorelease() @@ -63,6 +59,22 @@ 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 @@ -79,14 +91,6 @@ 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 @@ -94,11 +98,3 @@ 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_discovery_manager.gen.go b/macos/coremidi/ci_discovery_manager.gen.go index 712aeff4..e21e3848 100644 --- a/macos/coremidi/ci_discovery_manager.gen.go +++ b/macos/coremidi/ci_discovery_manager.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package coremidi @@ -39,10 +39,6 @@ func (cc _CIDiscoveryManagerClass) Alloc() CIDiscoveryManager { return rv } -func CIDiscoveryManager_Alloc() CIDiscoveryManager { - return CIDiscoveryManagerClass.Alloc() -} - func (cc _CIDiscoveryManagerClass) New() CIDiscoveryManager { rv := objc.Call[CIDiscoveryManager](cc, objc.Sel("new")) rv.Autorelease() diff --git a/macos/coremidi/ci_profile.gen.go b/macos/coremidi/ci_profile.gen.go index f50bcf75..522ac780 100644 --- a/macos/coremidi/ci_profile.gen.go +++ b/macos/coremidi/ci_profile.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package coremidi @@ -49,13 +49,23 @@ func NewCIProfileWithData(data []byte) CIProfile { return instance } -func (cc _CIProfileClass) Alloc() CIProfile { - rv := objc.Call[CIProfile](cc, objc.Sel("alloc")) +func (c_ CIProfile) InitWithDataName(data []byte, inName string) CIProfile { + rv := objc.Call[CIProfile](c_, objc.Sel("initWithData:name:"), data, inName) return rv } -func CIProfile_Alloc() CIProfile { - return CIProfileClass.Alloc() +// 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 } func (cc _CIProfileClass) New() CIProfile { diff --git a/macos/coremidi/ci_profile_responder_delegate.gen.go b/macos/coremidi/ci_profile_responder_delegate.gen.go index 3f14856b..bbf3f0a5 100644 --- a/macos/coremidi/ci_profile_responder_delegate.gen.go +++ b/macos/coremidi/ci_profile_responder_delegate.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package coremidi @@ -10,48 +10,31 @@ import ( // // [Full Topic]: https://developer.apple.com/documentation/coremidi/midiciprofileresponderdelegate?language=objc type PCIProfileResponderDelegate interface { - // 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 + + // optional + WillSetProfileOnChannelEnabled(aProfile CIProfile, channel ChannelNumber, shouldEnable bool) bool + HasWillSetProfileOnChannelEnabled() bool + + // optional + HandleDataForProfileOnChannelData(aProfile CIProfile, channel ChannelNumber, inData []byte) + HasHandleDataForProfileOnChannelData() bool } // A delegate implementation builder for the [PCIProfileResponderDelegate] protocol. type CIProfileResponderDelegate struct { - _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 + _WillSetProfileOnChannelEnabled func(aProfile CIProfile, channel ChannelNumber, shouldEnable bool) bool + _HandleDataForProfileOnChannelData func(aProfile CIProfile, channel ChannelNumber, inData []byte) } -func (di *CIProfileResponderDelegate) HasWillSetProfileOnChannelEnabled() bool { - return di._WillSetProfileOnChannelEnabled != nil -} - -// Provides an opportunity to perform an action before the system sets the profile. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/coremidi/midiciprofileresponderdelegate/3580331-willsetprofile?language=objc -func (di *CIProfileResponderDelegate) SetWillSetProfileOnChannelEnabled(f func(aProfile CIProfile, channel ChannelNumber, shouldEnable bool) bool) { - di._WillSetProfileOnChannelEnabled = f -} - -// Provides an opportunity to perform an action before the system sets the profile. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/coremidi/midiciprofileresponderdelegate/3580331-willsetprofile?language=objc -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 } @@ -69,23 +52,6 @@ func (di *CIProfileResponderDelegate) SetInitiatorDisconnected(f func(initiatorM func (di *CIProfileResponderDelegate) InitiatorDisconnected(initiatorMUID CIInitiatiorMUID) { di._InitiatorDisconnected(initiatorMUID) } -func (di *CIProfileResponderDelegate) HasHandleDataForProfileOnChannelData() bool { - return di._HandleDataForProfileOnChannelData != nil -} - -// Processes MIDI data for a profile and channel. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/coremidi/midiciprofileresponderdelegate/3580329-handledataforprofile?language=objc -func (di *CIProfileResponderDelegate) SetHandleDataForProfileOnChannelData(f func(aProfile CIProfile, channel ChannelNumber, inData []byte)) { - di._HandleDataForProfileOnChannelData = f -} - -// Processes MIDI data for a profile and channel. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/coremidi/midiciprofileresponderdelegate/3580329-handledataforprofile?language=objc -func (di *CIProfileResponderDelegate) HandleDataForProfileOnChannelData(aProfile CIProfile, channel ChannelNumber, inData []byte) { - di._HandleDataForProfileOnChannelData(aProfile, channel, inData) -} func (di *CIProfileResponderDelegate) HasConnectInitiatorWithDeviceInfo() bool { return di._ConnectInitiatorWithDeviceInfo != nil } @@ -103,54 +69,91 @@ func (di *CIProfileResponderDelegate) SetConnectInitiatorWithDeviceInfo(f func(i func (di *CIProfileResponderDelegate) ConnectInitiatorWithDeviceInfo(initiatorMUID CIInitiatiorMUID, deviceInfo CIDeviceInfo) bool { return di._ConnectInitiatorWithDeviceInfo(initiatorMUID, deviceInfo) } - -// A concrete type wrapper for the [PCIProfileResponderDelegate] protocol. -type CIProfileResponderDelegateWrapper struct { - objc.Object +func (di *CIProfileResponderDelegate) HasWillSetProfileOnChannelEnabled() bool { + return di._WillSetProfileOnChannelEnabled != nil } -func (c_ CIProfileResponderDelegateWrapper) HasWillSetProfileOnChannelEnabled() bool { - return c_.RespondsToSelector(objc.Sel("willSetProfile:onChannel:enabled:")) +// Provides an opportunity to perform an action before the system sets the profile. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/coremidi/midiciprofileresponderdelegate/3580331-willsetprofile?language=objc +func (di *CIProfileResponderDelegate) SetWillSetProfileOnChannelEnabled(f func(aProfile CIProfile, channel ChannelNumber, shouldEnable bool) bool) { + di._WillSetProfileOnChannelEnabled = f } // Provides an opportunity to perform an action before the system sets the profile. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/coremidi/midiciprofileresponderdelegate/3580331-willsetprofile?language=objc -func (c_ CIProfileResponderDelegateWrapper) WillSetProfileOnChannelEnabled(aProfile ICIProfile, channel ChannelNumber, shouldEnable bool) bool { - rv := objc.Call[bool](c_, objc.Sel("willSetProfile:onChannel:enabled:"), objc.Ptr(aProfile), channel, shouldEnable) - return rv +func (di *CIProfileResponderDelegate) WillSetProfileOnChannelEnabled(aProfile CIProfile, channel ChannelNumber, shouldEnable bool) bool { + return di._WillSetProfileOnChannelEnabled(aProfile, channel, shouldEnable) +} +func (di *CIProfileResponderDelegate) HasHandleDataForProfileOnChannelData() bool { + return di._HandleDataForProfileOnChannelData != nil } -func (c_ CIProfileResponderDelegateWrapper) HasInitiatorDisconnected() bool { - return c_.RespondsToSelector(objc.Sel("initiatorDisconnected:")) +// Processes MIDI data for a profile and channel. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/coremidi/midiciprofileresponderdelegate/3580329-handledataforprofile?language=objc +func (di *CIProfileResponderDelegate) SetHandleDataForProfileOnChannelData(f func(aProfile CIProfile, channel ChannelNumber, inData []byte)) { + di._HandleDataForProfileOnChannelData = f } -// Provides an opportunity to perform an action after the system disconnects the initiator. [Full Topic] +// Processes MIDI data for a profile and channel. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coremidi/midiciprofileresponderdelegate/3580330-initiatordisconnected?language=objc -func (c_ CIProfileResponderDelegateWrapper) InitiatorDisconnected(initiatorMUID CIInitiatiorMUID) { - objc.Call[objc.Void](c_, objc.Sel("initiatorDisconnected:"), initiatorMUID) +// [Full Topic]: https://developer.apple.com/documentation/coremidi/midiciprofileresponderdelegate/3580329-handledataforprofile?language=objc +func (di *CIProfileResponderDelegate) HandleDataForProfileOnChannelData(aProfile CIProfile, channel ChannelNumber, inData []byte) { + di._HandleDataForProfileOnChannelData(aProfile, channel, inData) } -func (c_ CIProfileResponderDelegateWrapper) HasHandleDataForProfileOnChannelData() bool { - return c_.RespondsToSelector(objc.Sel("handleDataForProfile:onChannel:data:")) +// ensure impl type implements protocol interface +var _ PCIProfileResponderDelegate = (*CIProfileResponderDelegateObject)(nil) + +// A concrete type for the [PCIProfileResponderDelegate] protocol. +type CIProfileResponderDelegateObject struct { + objc.Object } -// Processes MIDI data for a profile and channel. [Full Topic] +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/3580329-handledataforprofile?language=objc -func (c_ CIProfileResponderDelegateWrapper) HandleDataForProfileOnChannelData(aProfile ICIProfile, channel ChannelNumber, inData []byte) { - objc.Call[objc.Void](c_, objc.Sel("handleDataForProfile:onChannel:data:"), objc.Ptr(aProfile), channel, inData) +// [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_ CIProfileResponderDelegateWrapper) HasConnectInitiatorWithDeviceInfo() bool { +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_ CIProfileResponderDelegateWrapper) ConnectInitiatorWithDeviceInfo(initiatorMUID CIInitiatiorMUID, deviceInfo ICIDeviceInfo) bool { +func (c_ CIProfileResponderDelegateObject) ConnectInitiatorWithDeviceInfo(initiatorMUID CIInitiatiorMUID, deviceInfo CIDeviceInfo) bool { rv := objc.Call[bool](c_, objc.Sel("connectInitiator:withDeviceInfo:"), initiatorMUID, objc.Ptr(deviceInfo)) return rv } + +func (c_ CIProfileResponderDelegateObject) HasWillSetProfileOnChannelEnabled() bool { + return c_.RespondsToSelector(objc.Sel("willSetProfile:onChannel:enabled:")) +} + +// Provides an opportunity to perform an action before the system sets the profile. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/coremidi/midiciprofileresponderdelegate/3580331-willsetprofile?language=objc +func (c_ CIProfileResponderDelegateObject) WillSetProfileOnChannelEnabled(aProfile CIProfile, channel ChannelNumber, shouldEnable bool) bool { + rv := objc.Call[bool](c_, objc.Sel("willSetProfile:onChannel:enabled:"), objc.Ptr(aProfile), channel, shouldEnable) + return rv +} + +func (c_ CIProfileResponderDelegateObject) HasHandleDataForProfileOnChannelData() bool { + return c_.RespondsToSelector(objc.Sel("handleDataForProfile:onChannel:data:")) +} + +// Processes MIDI data for a profile and channel. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/coremidi/midiciprofileresponderdelegate/3580329-handledataforprofile?language=objc +func (c_ CIProfileResponderDelegateObject) HandleDataForProfileOnChannelData(aProfile CIProfile, channel ChannelNumber, inData []byte) { + objc.Call[objc.Void](c_, objc.Sel("handleDataForProfile:onChannel:data:"), objc.Ptr(aProfile), channel, inData) +} diff --git a/macos/coremidi/ci_profile_state.gen.go b/macos/coremidi/ci_profile_state.gen.go index 382c95fc..4424bb7c 100644 --- a/macos/coremidi/ci_profile_state.gen.go +++ b/macos/coremidi/ci_profile_state.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package coremidi @@ -19,8 +19,8 @@ type _CIProfileStateClass struct { type ICIProfileState interface { objc.IObject MidiChannel() ChannelNumber - EnabledProfiles() []CIProfile DisabledProfiles() []CIProfile + EnabledProfiles() []CIProfile } // An object that provides the enabled and disabled profiles for a MIDI channel or port on a device. [Full Topic] @@ -55,10 +55,6 @@ func (cc _CIProfileStateClass) Alloc() CIProfileState { return rv } -func CIProfileState_Alloc() CIProfileState { - return CIProfileStateClass.Alloc() -} - func (cc _CIProfileStateClass) New() CIProfileState { rv := objc.Call[CIProfileState](cc, objc.Sel("new")) rv.Autorelease() @@ -82,14 +78,6 @@ func (c_ CIProfileState) MidiChannel() ChannelNumber { return rv } -// The object’s enabled profiles. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/coremidi/midiciprofilestate/2977110-enabledprofiles?language=objc -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 @@ -97,3 +85,11 @@ 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 +func (c_ CIProfileState) EnabledProfiles() []CIProfile { + rv := objc.Call[[]CIProfile](c_, objc.Sel("enabledProfiles")) + return rv +} diff --git a/macos/coremidi/ci_responder.gen.go b/macos/coremidi/ci_responder.gen.go index b3d316b1..2235f022 100644 --- a/macos/coremidi/ci_responder.gen.go +++ b/macos/coremidi/ci_responder.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package coremidi @@ -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() CIProfileResponderDelegateWrapper } // 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] @@ -61,10 +61,6 @@ func (cc _CIResponderClass) Alloc() CIResponder { return rv } -func CIResponder_Alloc() CIResponder { - return CIResponderClass.Alloc() -} - func (cc _CIResponderClass) New() CIResponder { rv := objc.Call[CIResponder](cc, objc.Sel("new")) rv.Autorelease() @@ -80,14 +76,6 @@ 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:"), objc.Ptr(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 @@ -111,6 +99,14 @@ 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:"), objc.Ptr(aProfile), channel, enabledState) + return rv +} + // An array of initiators. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/coremidi/midiciresponder/3580333-initiators?language=objc @@ -119,18 +115,18 @@ func (c_ CIResponder) Initiators() []CIInitiatiorMUID { return rv } -// The MIDI-CI device’s information. [Full Topic] +// The profile delegate. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coremidi/midiciresponder/3553255-deviceinfo?language=objc -func (c_ CIResponder) DeviceInfo() CIDeviceInfo { - rv := objc.Call[CIDeviceInfo](c_, objc.Sel("deviceInfo")) +// [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 profile delegate. [Full Topic] +// The MIDI-CI device’s information. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coremidi/midiciresponder/3580334-profiledelegate?language=objc -func (c_ CIResponder) ProfileDelegate() CIProfileResponderDelegateWrapper { - rv := objc.Call[CIProfileResponderDelegateWrapper](c_, objc.Sel("profileDelegate")) +// [Full Topic]: https://developer.apple.com/documentation/coremidi/midiciresponder/3553255-deviceinfo?language=objc +func (c_ CIResponder) DeviceInfo() CIDeviceInfo { + rv := objc.Call[CIDeviceInfo](c_, objc.Sel("deviceInfo")) return rv } diff --git a/macos/coremidi/ci_session.gen.go b/macos/coremidi/ci_session.gen.go index 1639498d..b8373b05 100644 --- a/macos/coremidi/ci_session.gen.go +++ b/macos/coremidi/ci_session.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package coremidi @@ -19,20 +19,20 @@ type _CISessionClass struct { // An interface definition for the [CISession] class. type ICISession interface { objc.IObject - EnableProfileOnChannelError(profile ICIProfile, channel ChannelNumber, outError foundation.IError) bool - ProfileStateForChannel(channel ChannelNumber) CIProfileState DisableProfileOnChannelError(profile ICIProfile, channel ChannelNumber, outError foundation.IError) bool SendProfileOnChannelProfileData(profile ICIProfile, channel ChannelNumber, profileSpecificData []byte) bool + EnableProfileOnChannelError(profile ICIProfile, channel ChannelNumber, outError foundation.IError) bool + ProfileStateForChannel(channel ChannelNumber) CIProfileState + DeviceInfo() CIDeviceInfo + MidiDestination() EntityRef + SupportsProfileCapability() bool + SupportsPropertyCapability() 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] @@ -67,10 +67,6 @@ func (cc _CISessionClass) Alloc() CISession { return rv } -func CISession_Alloc() CISession { - return CISessionClass.Alloc() -} - func (cc _CISessionClass) New() CISession { rv := objc.Call[CISession](cc, objc.Sel("new")) rv.Autorelease() @@ -86,6 +82,22 @@ 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 foundation.IError) bool { + rv := objc.Call[bool](c_, objc.Sel("disableProfile:onChannel:error:"), objc.Ptr(profile), channel, objc.Ptr(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:"), objc.Ptr(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 @@ -102,19 +114,35 @@ func (c_ CISession) ProfileStateForChannel(channel ChannelNumber) CIProfileState return rv } -// Performs an asynchronous request to disable a profile for a specific MIDI channel number. [Full Topic] +// Information about a MIDI-CI device. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coremidi/midicisession/2977116-disableprofile?language=objc -func (c_ CISession) DisableProfileOnChannelError(profile ICIProfile, channel ChannelNumber, outError foundation.IError) bool { - rv := objc.Call[bool](c_, objc.Sel("disableProfile:onChannel:error:"), objc.Ptr(profile), channel, objc.Ptr(outError)) +// [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 } -// Sends profile-specific data to the MIDI-CI session. [Full Topic] +// The MIDI destination with which the session is communicating. [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:"), objc.Ptr(profile), channel, profileSpecificData) +// [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] +// +// [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 +} + +// 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 } @@ -134,14 +162,6 @@ 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 @@ -157,22 +177,6 @@ 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 @@ -187,11 +191,3 @@ 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/doc.gen.go b/macos/coremidi/doc.gen.go index 9bcfaacf..10ef8f31 100644 --- a/macos/coremidi/doc.gen.go +++ b/macos/coremidi/doc.gen.go @@ -1,8 +1,8 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. // Communicate with MIDI devices such as hardware keyboards and synthesizers. // -// [Full Documentation] +// [Apple Documentation] // -// [Full Documentation]: https://developer.apple.com/documentation/coremidi?language=objc +// [Apple Documentation]: https://developer.apple.com/documentation/coremidi?language=objc package coremidi diff --git a/macos/coremidi/enumtypes.gen.go b/macos/coremidi/enumtypes.gen.go index a24d5c60..26054ddc 100644 --- a/macos/coremidi/enumtypes.gen.go +++ b/macos/coremidi/enumtypes.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package coremidi @@ -269,3 +269,12 @@ 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_connection.gen.go b/macos/coremidi/network_connection.gen.go index 531c4373..5b124e86 100644 --- a/macos/coremidi/network_connection.gen.go +++ b/macos/coremidi/network_connection.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package coremidi @@ -51,10 +51,6 @@ func (nc _NetworkConnectionClass) Alloc() NetworkConnection { return rv } -func NetworkConnection_Alloc() NetworkConnection { - return NetworkConnectionClass.Alloc() -} - func (nc _NetworkConnectionClass) New() NetworkConnection { rv := objc.Call[NetworkConnection](nc, objc.Sel("new")) rv.Autorelease() diff --git a/macos/coremidi/network_host.gen.go b/macos/coremidi/network_host.gen.go index 9361e796..5af81fb0 100644 --- a/macos/coremidi/network_host.gen.go +++ b/macos/coremidi/network_host.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package coremidi @@ -20,11 +20,11 @@ type _NetworkHostClass struct { type INetworkHost interface { objc.IObject HasSameAddressAs(other INetworkHost) bool - Name() string NetServiceName() string Address() string - NetServiceDomain() string Port() uint + NetServiceDomain() string + Name() string } // An object that represents the host’s network address. [Full Topic] @@ -52,13 +52,33 @@ func NetworkHost_HostWithNameNetService(name string, netService foundation.INetS return NetworkHostClass.HostWithNameNetService(name, netService) } -func (nc _NetworkHostClass) Alloc() NetworkHost { - rv := objc.Call[NetworkHost](nc, objc.Sel("alloc")) +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 } -func NetworkHost_Alloc() NetworkHost { - return NetworkHostClass.Alloc() +// 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 } func (nc _NetworkHostClass) New() NetworkHost { @@ -84,14 +104,6 @@ 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 @@ -108,6 +120,14 @@ 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 @@ -116,10 +136,10 @@ func (n_ NetworkHost) NetServiceDomain() string { return rv } -// The host port. [Full Topic] +// The host name. [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")) +// [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 } diff --git a/macos/coremidi/network_session.gen.go b/macos/coremidi/network_session.gen.go index 4b56c062..cda4fcd3 100644 --- a/macos/coremidi/network_session.gen.go +++ b/macos/coremidi/network_session.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package coremidi @@ -19,21 +19,21 @@ type _NetworkSessionClass struct { // An interface definition for the [NetworkSession] class. type INetworkSession interface { objc.IObject - Connections() foundation.Set - AddConnection(connection INetworkConnection) bool RemoveConnection(connection INetworkConnection) bool - RemoveContact(contact INetworkHost) bool - DestinationEndpoint() EndpointRef - AddContact(contact INetworkHost) bool + AddConnection(connection INetworkConnection) bool SourceEndpoint() EndpointRef + Connections() foundation.Set Contacts() foundation.Set - LocalName() string - NetworkName() string + DestinationEndpoint() EndpointRef + AddContact(contact INetworkHost) bool + RemoveContact(contact INetworkHost) bool ConnectionPolicy() NetworkConnectionPolicy SetConnectionPolicy(value NetworkConnectionPolicy) - NetworkPort() uint + NetworkName() string IsEnabled() bool SetEnabled(value bool) + LocalName() string + NetworkPort() uint } // An object that represents a pairing of a source and destination. [Full Topic] @@ -54,10 +54,6 @@ func (nc _NetworkSessionClass) Alloc() NetworkSession { return rv } -func NetworkSession_Alloc() NetworkSession { - return NetworkSessionClass.Alloc() -} - func (nc _NetworkSessionClass) New() NetworkSession { rv := objc.Call[NetworkSession](nc, objc.Sel("new")) rv.Autorelease() @@ -73,11 +69,11 @@ func (n_ NetworkSession) Init() NetworkSession { return rv } -// Returns the session’s set of MIDI network connections. [Full Topic] +// Removes a connection from this session. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coremidi/midinetworksession/1619366-connections?language=objc -func (n_ NetworkSession) Connections() foundation.Set { - rv := objc.Call[foundation.Set](n_, objc.Sel("connections")) +// [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:"), objc.Ptr(connection)) return rv } @@ -89,37 +85,45 @@ func (n_ NetworkSession) AddConnection(connection INetworkConnection) bool { return rv } -// Returns the default singleton session. [Full Topic] +// Returns the session’s source endpoint. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coremidi/midinetworksession/1619363-defaultsession?language=objc -func (nc _NetworkSessionClass) DefaultSession() NetworkSession { - rv := objc.Call[NetworkSession](nc, objc.Sel("defaultSession")) +// [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 default singleton session. [Full Topic] +// Returns the session’s set of MIDI network connections. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coremidi/midinetworksession/1619363-defaultsession?language=objc -func NetworkSession_DefaultSession() NetworkSession { - return NetworkSessionClass.DefaultSession() +// [Full Topic]: https://developer.apple.com/documentation/coremidi/midinetworksession/1619366-connections?language=objc +func (n_ NetworkSession) Connections() foundation.Set { + rv := objc.Call[foundation.Set](n_, objc.Sel("connections")) + return rv } -// Removes a connection from this session. [Full Topic] +// Returns the array of network hosts. [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:"), objc.Ptr(connection)) +// [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 } -// Removes a host as a contact. [Full Topic] +// Returns the default singleton session. [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:"), objc.Ptr(contact)) +// [Full Topic]: https://developer.apple.com/documentation/coremidi/midinetworksession/1619363-defaultsession?language=objc +func (nc _NetworkSessionClass) DefaultSession() NetworkSession { + rv := objc.Call[NetworkSession](nc, objc.Sel("defaultSession")) return rv } +// Returns the default singleton session. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/coremidi/midinetworksession/1619363-defaultsession?language=objc +func NetworkSession_DefaultSession() NetworkSession { + return NetworkSessionClass.DefaultSession() +} + // Returns the session’s destination endpoint. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/coremidi/midinetworksession/1619367-destinationendpoint?language=objc @@ -136,35 +140,11 @@ func (n_ NetworkSession) AddContact(contact INetworkHost) bool { 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 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] +// Removes a host as a contact. [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/1619332-removecontact?language=objc +func (n_ NetworkSession) RemoveContact(contact INetworkHost) bool { + rv := objc.Call[bool](n_, objc.Sel("removeContact:"), objc.Ptr(contact)) return rv } @@ -183,11 +163,11 @@ func (n_ NetworkSession) SetConnectionPolicy(value NetworkConnectionPolicy) { objc.Call[objc.Void](n_, objc.Sel("setConnectionPolicy:"), value) } -// The session’s UDP port. [Full Topic] +// The name with which this session advertises itself over Bonjour. [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")) +// [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 } @@ -205,3 +185,19 @@ 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/coremidi/protocols.gen.m b/macos/coremidi/protocols.gen.m index 9dd606c8..de5f05e3 100644 --- a/macos/coremidi/protocols.gen.m +++ b/macos/coremidi/protocols.gen.m @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. #import "CoreMIDI/CoreMIDI.h" diff --git a/macos/coreml/array_batch_provider.gen.go b/macos/coreml/array_batch_provider.gen.go index 96706e39..902a7c99 100644 --- a/macos/coreml/array_batch_provider.gen.go +++ b/macos/coreml/array_batch_provider.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package coreml @@ -19,7 +19,7 @@ type _ArrayBatchProviderClass struct { // An interface definition for the [ArrayBatchProvider] class. type IArrayBatchProvider interface { objc.IObject - Array() []FeatureProviderWrapper + Array() []FeatureProviderObject } // A convenience wrapper for batches of feature providers. [Full Topic] @@ -68,10 +68,6 @@ func (ac _ArrayBatchProviderClass) Alloc() ArrayBatchProvider { return rv } -func ArrayBatchProvider_Alloc() ArrayBatchProvider { - return ArrayBatchProviderClass.Alloc() -} - func (ac _ArrayBatchProviderClass) New() ArrayBatchProvider { rv := objc.Call[ArrayBatchProvider](ac, objc.Sel("new")) rv.Autorelease() @@ -90,7 +86,7 @@ func (a_ ArrayBatchProvider) Init() ArrayBatchProvider { // The array of feature providers. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/coreml/mlarraybatchprovider/2962852-array?language=objc -func (a_ ArrayBatchProvider) Array() []FeatureProviderWrapper { - rv := objc.Call[[]FeatureProviderWrapper](a_, objc.Sel("array")) +func (a_ ArrayBatchProvider) Array() []FeatureProviderObject { + rv := objc.Call[[]FeatureProviderObject](a_, objc.Sel("array")) return rv } diff --git a/macos/coreml/batch_provider.gen.go b/macos/coreml/batch_provider_protocol.gen.go similarity index 60% rename from macos/coreml/batch_provider.gen.go rename to macos/coreml/batch_provider_protocol.gen.go index 3b96432f..0d7abbb9 100644 --- a/macos/coreml/batch_provider.gen.go +++ b/macos/coreml/batch_provider_protocol.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package coreml @@ -11,7 +11,7 @@ import ( // [Full Topic]: https://developer.apple.com/documentation/coreml/mlbatchprovider?language=objc type PBatchProvider interface { // optional - FeaturesAtIndex(index int) PFeatureProvider + FeaturesAtIndex(index int) FeatureProviderObject HasFeaturesAtIndex() bool // optional @@ -19,31 +19,34 @@ type PBatchProvider interface { HasCount() bool } -// A concrete type wrapper for the [PBatchProvider] protocol. -type BatchProviderWrapper struct { +// ensure impl type implements protocol interface +var _ PBatchProvider = (*BatchProviderObject)(nil) + +// A concrete type for the [PBatchProvider] protocol. +type BatchProviderObject struct { objc.Object } -func (b_ BatchProviderWrapper) HasFeaturesAtIndex() bool { +func (b_ BatchProviderObject) HasFeaturesAtIndex() bool { return b_.RespondsToSelector(objc.Sel("featuresAtIndex:")) } // Returns the feature provider at the given index. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/coreml/mlbatchprovider/2994294-featuresatindex?language=objc -func (b_ BatchProviderWrapper) FeaturesAtIndex(index int) FeatureProviderWrapper { - rv := objc.Call[FeatureProviderWrapper](b_, objc.Sel("featuresAtIndex:"), index) +func (b_ BatchProviderObject) FeaturesAtIndex(index int) FeatureProviderObject { + rv := objc.Call[FeatureProviderObject](b_, objc.Sel("featuresAtIndex:"), index) return rv } -func (b_ BatchProviderWrapper) HasCount() bool { +func (b_ BatchProviderObject) HasCount() bool { return b_.RespondsToSelector(objc.Sel("count")) } // The number of feature providers in this batch. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/coreml/mlbatchprovider/2994293-count?language=objc -func (b_ BatchProviderWrapper) Count() int { +func (b_ BatchProviderObject) Count() int { rv := objc.Call[int](b_, objc.Sel("count")) return rv } diff --git a/macos/coreml/custom_layer.gen.go b/macos/coreml/custom_layer_protocol.gen.go similarity index 67% rename from macos/coreml/custom_layer.gen.go rename to macos/coreml/custom_layer_protocol.gen.go index 646d2404..12bdd5dc 100644 --- a/macos/coreml/custom_layer.gen.go +++ b/macos/coreml/custom_layer_protocol.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package coreml @@ -13,88 +13,91 @@ import ( // [Full Topic]: https://developer.apple.com/documentation/coreml/mlcustomlayer?language=objc type PCustomLayer interface { // optional - InitWithParameterDictionaryError(parameters map[string]objc.Object, error foundation.Error) objc.IObject - HasInitWithParameterDictionaryError() bool + EvaluateOnCPUWithInputsOutputsError(inputs []MultiArray, outputs []MultiArray, error foundation.Error) bool + HasEvaluateOnCPUWithInputsOutputsError() bool // optional - SetWeightDataError(weights [][]byte, error foundation.Error) bool - HasSetWeightDataError() bool + OutputShapesForInputShapesError(inputShapes [][]foundation.Number, error foundation.Error) [][]foundation.Number + HasOutputShapesForInputShapesError() bool // optional - EncodeToCommandBufferInputsOutputsError(commandBuffer metal.CommandBufferWrapper, inputs []metal.TextureWrapper, outputs []metal.TextureWrapper, error foundation.Error) bool - HasEncodeToCommandBufferInputsOutputsError() bool + InitWithParameterDictionaryError(parameters map[string]objc.Object, error foundation.Error) objc.Object + HasInitWithParameterDictionaryError() bool // optional - EvaluateOnCPUWithInputsOutputsError(inputs []MultiArray, outputs []MultiArray, error foundation.Error) bool - HasEvaluateOnCPUWithInputsOutputsError() bool + EncodeToCommandBufferInputsOutputsError(commandBuffer metal.CommandBufferObject, inputs []metal.TextureObject, outputs []metal.TextureObject, error foundation.Error) bool + HasEncodeToCommandBufferInputsOutputsError() bool // optional - OutputShapesForInputShapesError(inputShapes [][]foundation.Number, error foundation.Error) [][]foundation.INumber - HasOutputShapesForInputShapesError() bool + SetWeightDataError(weights [][]byte, error foundation.Error) bool + HasSetWeightDataError() bool } -// A concrete type wrapper for the [PCustomLayer] protocol. -type CustomLayerWrapper struct { +// ensure impl type implements protocol interface +var _ PCustomLayer = (*CustomLayerObject)(nil) + +// A concrete type for the [PCustomLayer] protocol. +type CustomLayerObject struct { objc.Object } -func (c_ CustomLayerWrapper) HasInitWithParameterDictionaryError() bool { - return c_.RespondsToSelector(objc.Sel("initWithParameterDictionary:error:")) +func (c_ CustomLayerObject) HasEvaluateOnCPUWithInputsOutputsError() bool { + return c_.RespondsToSelector(objc.Sel("evaluateOnCPUWithInputs:outputs:error:")) } -// Initializes the custom layer implementation. [Full Topic] +// Evaluates the custom layer with the given inputs. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreml/mlcustomlayer/2935523-initwithparameterdictionary?language=objc -func (c_ CustomLayerWrapper) InitWithParameterDictionaryError(parameters map[string]objc.IObject, error foundation.IError) objc.Object { - rv := objc.Call[objc.Object](c_, objc.Sel("initWithParameterDictionary:error:"), parameters, objc.Ptr(error)) +// [Full Topic]: https://developer.apple.com/documentation/coreml/mlcustomlayer/2935520-evaluateoncpuwithinputs?language=objc +func (c_ CustomLayerObject) EvaluateOnCPUWithInputsOutputsError(inputs []MultiArray, outputs []MultiArray, error foundation.Error) bool { + rv := objc.Call[bool](c_, objc.Sel("evaluateOnCPUWithInputs:outputs:error:"), inputs, outputs, objc.Ptr(error)) return rv } -func (c_ CustomLayerWrapper) HasSetWeightDataError() bool { - return c_.RespondsToSelector(objc.Sel("setWeightData:error:")) +func (c_ CustomLayerObject) HasOutputShapesForInputShapesError() bool { + return c_.RespondsToSelector(objc.Sel("outputShapesForInputShapes:error:")) } -// Assigns the weights for the connections within the layer. [Full Topic] +// 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/2936860-setweightdata?language=objc -func (c_ CustomLayerWrapper) SetWeightDataError(weights [][]byte, error foundation.IError) bool { - rv := objc.Call[bool](c_, objc.Sel("setWeightData:error:"), weights, objc.Ptr(error)) +// [Full Topic]: https://developer.apple.com/documentation/coreml/mlcustomlayer/2935525-outputshapesforinputshapes?language=objc +func (c_ CustomLayerObject) OutputShapesForInputShapesError(inputShapes [][]foundation.Number, error foundation.Error) [][]foundation.Number { + rv := objc.Call[[][]foundation.Number](c_, objc.Sel("outputShapesForInputShapes:error:"), inputShapes, objc.Ptr(error)) return rv } -func (c_ CustomLayerWrapper) HasEncodeToCommandBufferInputsOutputsError() bool { - return c_.RespondsToSelector(objc.Sel("encodeToCommandBuffer:inputs:outputs:error:")) +func (c_ CustomLayerObject) HasInitWithParameterDictionaryError() bool { + return c_.RespondsToSelector(objc.Sel("initWithParameterDictionary:error:")) } -// Encodes GPU commands to evaluate the custom layer. [Full Topic] +// Initializes the custom layer implementation. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreml/mlcustomlayer/2936859-encodetocommandbuffer?language=objc -func (c_ CustomLayerWrapper) EncodeToCommandBufferInputsOutputsError(commandBuffer metal.PCommandBuffer, inputs []metal.PTexture, outputs []metal.PTexture, error foundation.IError) bool { - po0 := objc.WrapAsProtocol("MTLCommandBuffer", commandBuffer) - rv := objc.Call[bool](c_, objc.Sel("encodeToCommandBuffer:inputs:outputs:error:"), po0, inputs, outputs, objc.Ptr(error)) +// [Full Topic]: https://developer.apple.com/documentation/coreml/mlcustomlayer/2935523-initwithparameterdictionary?language=objc +func (c_ CustomLayerObject) InitWithParameterDictionaryError(parameters map[string]objc.Object, error foundation.Error) objc.Object { + rv := objc.Call[objc.Object](c_, objc.Sel("initWithParameterDictionary:error:"), parameters, objc.Ptr(error)) return rv } -func (c_ CustomLayerWrapper) HasEvaluateOnCPUWithInputsOutputsError() bool { - return c_.RespondsToSelector(objc.Sel("evaluateOnCPUWithInputs:outputs:error:")) +func (c_ CustomLayerObject) HasEncodeToCommandBufferInputsOutputsError() bool { + return c_.RespondsToSelector(objc.Sel("encodeToCommandBuffer:inputs:outputs:error:")) } -// Evaluates the custom layer with the given inputs. [Full Topic] +// Encodes GPU commands to evaluate the custom layer. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreml/mlcustomlayer/2935520-evaluateoncpuwithinputs?language=objc -func (c_ CustomLayerWrapper) EvaluateOnCPUWithInputsOutputsError(inputs []IMultiArray, outputs []IMultiArray, error foundation.IError) bool { - rv := objc.Call[bool](c_, objc.Sel("evaluateOnCPUWithInputs:outputs:error:"), inputs, outputs, objc.Ptr(error)) +// [Full Topic]: https://developer.apple.com/documentation/coreml/mlcustomlayer/2936859-encodetocommandbuffer?language=objc +func (c_ CustomLayerObject) EncodeToCommandBufferInputsOutputsError(commandBuffer metal.CommandBufferObject, inputs []metal.TextureObject, outputs []metal.TextureObject, error foundation.Error) bool { + po0 := objc.WrapAsProtocol("MTLCommandBuffer", commandBuffer) + rv := objc.Call[bool](c_, objc.Sel("encodeToCommandBuffer:inputs:outputs:error:"), po0, inputs, outputs, objc.Ptr(error)) return rv } -func (c_ CustomLayerWrapper) HasOutputShapesForInputShapesError() bool { - return c_.RespondsToSelector(objc.Sel("outputShapesForInputShapes:error:")) +func (c_ CustomLayerObject) HasSetWeightDataError() bool { + return c_.RespondsToSelector(objc.Sel("setWeightData:error:")) } -// Calculates the shapes of the output of this layer for the given input shapes. [Full Topic] +// Assigns the weights for the connections within the layer. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreml/mlcustomlayer/2935525-outputshapesforinputshapes?language=objc -func (c_ CustomLayerWrapper) OutputShapesForInputShapesError(inputShapes [][]foundation.INumber, error foundation.IError) [][]foundation.Number { - rv := objc.Call[[][]foundation.Number](c_, objc.Sel("outputShapesForInputShapes:error:"), inputShapes, objc.Ptr(error)) +// [Full Topic]: https://developer.apple.com/documentation/coreml/mlcustomlayer/2936860-setweightdata?language=objc +func (c_ CustomLayerObject) SetWeightDataError(weights [][]byte, error foundation.Error) bool { + rv := objc.Call[bool](c_, objc.Sel("setWeightData:error:"), weights, objc.Ptr(error)) return rv } diff --git a/macos/coreml/custom_model.gen.go b/macos/coreml/custom_model_protocol.gen.go similarity index 54% rename from macos/coreml/custom_model.gen.go rename to macos/coreml/custom_model_protocol.gen.go index 206e4795..3019adb5 100644 --- a/macos/coreml/custom_model.gen.go +++ b/macos/coreml/custom_model_protocol.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package coreml @@ -12,57 +12,60 @@ 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 foundation.Error) objc.IObject - HasInitWithModelDescriptionParameterDictionaryError() bool - - // optional - PredictionsFromBatchOptionsError(inputBatch BatchProviderWrapper, options PredictionOptions, error foundation.Error) PBatchProvider + PredictionsFromBatchOptionsError(inputBatch BatchProviderObject, options PredictionOptions, error foundation.Error) BatchProviderObject HasPredictionsFromBatchOptionsError() bool // optional - PredictionFromFeaturesOptionsError(input FeatureProviderWrapper, options PredictionOptions, error foundation.Error) PFeatureProvider + PredictionFromFeaturesOptionsError(input FeatureProviderObject, options PredictionOptions, error foundation.Error) FeatureProviderObject HasPredictionFromFeaturesOptionsError() bool -} -// A concrete type wrapper for the [PCustomModel] protocol. -type CustomModelWrapper struct { - objc.Object + // optional + InitWithModelDescriptionParameterDictionaryError(modelDescription ModelDescription, parameters map[string]objc.Object, error foundation.Error) objc.Object + HasInitWithModelDescriptionParameterDictionaryError() bool } -func (c_ CustomModelWrapper) HasInitWithModelDescriptionParameterDictionaryError() bool { - return c_.RespondsToSelector(objc.Sel("initWithModelDescription:parameterDictionary:error:")) -} +// ensure impl type implements protocol interface +var _ PCustomModel = (*CustomModelObject)(nil) -// 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_ CustomModelWrapper) InitWithModelDescriptionParameterDictionaryError(modelDescription IModelDescription, parameters map[string]objc.IObject, error foundation.IError) objc.Object { - rv := objc.Call[objc.Object](c_, objc.Sel("initWithModelDescription:parameterDictionary:error:"), objc.Ptr(modelDescription), parameters, objc.Ptr(error)) - return rv +// A concrete type for the [PCustomModel] protocol. +type CustomModelObject struct { + objc.Object } -func (c_ CustomModelWrapper) HasPredictionsFromBatchOptionsError() bool { +func (c_ CustomModelObject) HasPredictionsFromBatchOptionsError() bool { return c_.RespondsToSelector(objc.Sel("predictionsFromBatch:options:error:")) } // Predicts output values from the given batch of input features. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/coreml/mlcustommodel/2994298-predictionsfrombatch?language=objc -func (c_ CustomModelWrapper) PredictionsFromBatchOptionsError(inputBatch PBatchProvider, options IPredictionOptions, error foundation.IError) BatchProviderWrapper { +func (c_ CustomModelObject) PredictionsFromBatchOptionsError(inputBatch BatchProviderObject, options PredictionOptions, error foundation.Error) BatchProviderObject { po0 := objc.WrapAsProtocol("MLBatchProvider", inputBatch) - rv := objc.Call[BatchProviderWrapper](c_, objc.Sel("predictionsFromBatch:options:error:"), po0, objc.Ptr(options), objc.Ptr(error)) + rv := objc.Call[BatchProviderObject](c_, objc.Sel("predictionsFromBatch:options:error:"), po0, objc.Ptr(options), objc.Ptr(error)) return rv } -func (c_ CustomModelWrapper) HasPredictionFromFeaturesOptionsError() bool { +func (c_ CustomModelObject) HasPredictionFromFeaturesOptionsError() bool { return c_.RespondsToSelector(objc.Sel("predictionFromFeatures:options:error:")) } // Predicts output values from the given input features. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/coreml/mlcustommodel/2994297-predictionfromfeatures?language=objc -func (c_ CustomModelWrapper) PredictionFromFeaturesOptionsError(input PFeatureProvider, options IPredictionOptions, error foundation.IError) FeatureProviderWrapper { +func (c_ CustomModelObject) PredictionFromFeaturesOptionsError(input FeatureProviderObject, options PredictionOptions, error foundation.Error) FeatureProviderObject { po0 := objc.WrapAsProtocol("MLFeatureProvider", input) - rv := objc.Call[FeatureProviderWrapper](c_, objc.Sel("predictionFromFeatures:options:error:"), po0, objc.Ptr(options), objc.Ptr(error)) + rv := objc.Call[FeatureProviderObject](c_, objc.Sel("predictionFromFeatures:options:error:"), po0, objc.Ptr(options), objc.Ptr(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 foundation.Error) objc.Object { + rv := objc.Call[objc.Object](c_, objc.Sel("initWithModelDescription:parameterDictionary:error:"), objc.Ptr(modelDescription), parameters, objc.Ptr(error)) return rv } diff --git a/macos/coreml/dictionary_constraint.gen.go b/macos/coreml/dictionary_constraint.gen.go index 40c9eff3..072b1302 100644 --- a/macos/coreml/dictionary_constraint.gen.go +++ b/macos/coreml/dictionary_constraint.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package coreml @@ -39,10 +39,6 @@ func (dc _DictionaryConstraintClass) Alloc() DictionaryConstraint { return rv } -func DictionaryConstraint_Alloc() DictionaryConstraint { - return DictionaryConstraintClass.Alloc() -} - func (dc _DictionaryConstraintClass) New() DictionaryConstraint { rv := objc.Call[DictionaryConstraint](dc, objc.Sel("new")) rv.Autorelease() diff --git a/macos/coreml/dictionary_feature_provider.gen.go b/macos/coreml/dictionary_feature_provider.gen.go index d2e73a89..ae6bd8a6 100644 --- a/macos/coreml/dictionary_feature_provider.gen.go +++ b/macos/coreml/dictionary_feature_provider.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package coreml @@ -55,10 +55,6 @@ func (dc _DictionaryFeatureProviderClass) Alloc() DictionaryFeatureProvider { return rv } -func DictionaryFeatureProvider_Alloc() DictionaryFeatureProvider { - return DictionaryFeatureProviderClass.Alloc() -} - func (dc _DictionaryFeatureProviderClass) New() DictionaryFeatureProvider { rv := objc.Call[DictionaryFeatureProvider](dc, objc.Sel("new")) rv.Autorelease() diff --git a/macos/coreml/doc.gen.go b/macos/coreml/doc.gen.go index bf22447e..3808e7e6 100644 --- a/macos/coreml/doc.gen.go +++ b/macos/coreml/doc.gen.go @@ -1,8 +1,8 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. // Integrate machine learning models into your app. // -// [Full Documentation] +// [Apple Documentation] // -// [Full Documentation]: https://developer.apple.com/documentation/coreml?language=objc +// [Apple Documentation]: https://developer.apple.com/documentation/coreml?language=objc package coreml diff --git a/macos/coreml/enumtypes.gen.go b/macos/coreml/enumtypes.gen.go index 3b01a7a4..f2952025 100644 --- a/macos/coreml/enumtypes.gen.go +++ b/macos/coreml/enumtypes.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package coreml diff --git a/macos/coreml/feature_description.gen.go b/macos/coreml/feature_description.gen.go index a77dbd51..9f958df7 100644 --- a/macos/coreml/feature_description.gen.go +++ b/macos/coreml/feature_description.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package coreml @@ -19,13 +19,13 @@ type _FeatureDescriptionClass struct { type IFeatureDescription interface { objc.IObject IsAllowedValue(value IFeatureValue) bool - DictionaryConstraint() DictionaryConstraint - MultiArrayConstraint() MultiArrayConstraint - Name() string - SequenceConstraint() SequenceConstraint ImageConstraint() ImageConstraint - IsOptional() bool + Name() string Type() FeatureType + IsOptional() bool + MultiArrayConstraint() MultiArrayConstraint + SequenceConstraint() SequenceConstraint + DictionaryConstraint() DictionaryConstraint } // The name, type, and constraints of an input or output feature. [Full Topic] @@ -46,10 +46,6 @@ func (fc _FeatureDescriptionClass) Alloc() FeatureDescription { return rv } -func FeatureDescription_Alloc() FeatureDescription { - return FeatureDescriptionClass.Alloc() -} - func (fc _FeatureDescriptionClass) New() FeatureDescription { rv := objc.Call[FeatureDescription](fc, objc.Sel("new")) rv.Autorelease() @@ -73,19 +69,11 @@ func (f_ FeatureDescription) IsAllowedValue(value IFeatureValue) bool { return rv } -// The constraint for a dictionary 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")) - 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 } @@ -97,19 +85,11 @@ func (f_ FeatureDescription) Name() string { return rv } -// The constraints for a sequence feature. [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")) - return rv -} - -// The size and format constraints for an image feature. [Full Topic] +// The type of this 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/2879374-type?language=objc +func (f_ FeatureDescription) Type() FeatureType { + rv := objc.Call[FeatureType](f_, objc.Sel("type")) return rv } @@ -121,10 +101,26 @@ func (f_ FeatureDescription) IsOptional() bool { return rv } -// The type of this feature. [Full Topic] +// The constraints on a multidimensional array 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/2921264-multiarrayconstraint?language=objc +func (f_ FeatureDescription) MultiArrayConstraint() MultiArrayConstraint { + rv := objc.Call[MultiArrayConstraint](f_, objc.Sel("multiArrayConstraint")) + return rv +} + +// The constraints for a sequence feature. [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")) + return rv +} + +// The constraint for a dictionary 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")) return rv } diff --git a/macos/coreml/feature_provider.gen.go b/macos/coreml/feature_provider_protocol.gen.go similarity index 65% rename from macos/coreml/feature_provider.gen.go rename to macos/coreml/feature_provider_protocol.gen.go index fc0cac54..eb9f0813 100644 --- a/macos/coreml/feature_provider.gen.go +++ b/macos/coreml/feature_provider_protocol.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package coreml @@ -12,39 +12,42 @@ import ( // [Full Topic]: https://developer.apple.com/documentation/coreml/mlfeatureprovider?language=objc type PFeatureProvider interface { // optional - FeatureValueForName(featureName string) IFeatureValue + FeatureValueForName(featureName string) FeatureValue HasFeatureValueForName() bool // optional - FeatureNames() foundation.ISet + FeatureNames() foundation.Set HasFeatureNames() bool } -// A concrete type wrapper for the [PFeatureProvider] protocol. -type FeatureProviderWrapper struct { +// ensure impl type implements protocol interface +var _ PFeatureProvider = (*FeatureProviderObject)(nil) + +// A concrete type for the [PFeatureProvider] protocol. +type FeatureProviderObject struct { objc.Object } -func (f_ FeatureProviderWrapper) HasFeatureValueForName() bool { +func (f_ FeatureProviderObject) HasFeatureValueForName() bool { return f_.RespondsToSelector(objc.Sel("featureValueForName:")) } // Accesses the feature value given the feature's name. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/coreml/mlfeatureprovider/2879185-featurevalueforname?language=objc -func (f_ FeatureProviderWrapper) FeatureValueForName(featureName string) FeatureValue { +func (f_ FeatureProviderObject) FeatureValueForName(featureName string) FeatureValue { rv := objc.Call[FeatureValue](f_, objc.Sel("featureValueForName:"), featureName) return rv } -func (f_ FeatureProviderWrapper) HasFeatureNames() bool { +func (f_ FeatureProviderObject) HasFeatureNames() bool { return f_.RespondsToSelector(objc.Sel("featureNames")) } // The set of valid feature names. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/coreml/mlfeatureprovider/2879184-featurenames?language=objc -func (f_ FeatureProviderWrapper) FeatureNames() foundation.Set { +func (f_ FeatureProviderObject) FeatureNames() foundation.Set { rv := objc.Call[foundation.Set](f_, objc.Sel("featureNames")) return rv } diff --git a/macos/coreml/feature_value.gen.go b/macos/coreml/feature_value.gen.go index e6606dbc..7c2ce0fd 100644 --- a/macos/coreml/feature_value.gen.go +++ b/macos/coreml/feature_value.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package coreml @@ -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,64 +47,64 @@ func FeatureValueFrom(ptr unsafe.Pointer) FeatureValue { } } -func (fc _FeatureValueClass) FeatureValueWithString(value string) FeatureValue { - rv := objc.Call[FeatureValue](fc, objc.Sel("featureValueWithString:"), 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 string. [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/2879343-featurevaluewithstring?language=objc -func FeatureValue_FeatureValueWithString(value string) FeatureValue { - return FeatureValueClass.FeatureValueWithString(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) FeatureValueWithSequence(sequence ISequence) FeatureValue { - rv := objc.Call[FeatureValue](fc, objc.Sel("featureValueWithSequence:"), objc.Ptr(sequence)) +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 sequence. [Full Topic] +// Creates a feature value that contains a double. [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) +// [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) FeatureValueWithDictionaryError(value foundation.Dictionary, error foundation.IError) FeatureValue { - rv := objc.Call[FeatureValue](fc, objc.Sel("featureValueWithDictionary:error:"), value, objc.Ptr(error)) +func (fc _FeatureValueClass) FeatureValueWithImageAtURLOrientationConstraintOptionsError(url foundation.IURL, orientation imageio.ImagePropertyOrientation, constraint IImageConstraint, options map[FeatureValueImageOption]objc.IObject, error foundation.IError) FeatureValue { + rv := objc.Call[FeatureValue](fc, objc.Sel("featureValueWithImageAtURL:orientation:constraint:options:error:"), objc.Ptr(url), orientation, objc.Ptr(constraint), options, objc.Ptr(error)) return rv } -// Creates a feature value that contains a dictionary of numbers. [Full Topic] +// 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/2879393-featurevaluewithdictionary?language=objc -func FeatureValue_FeatureValueWithDictionaryError(value foundation.Dictionary, error foundation.IError) FeatureValue { - return FeatureValueClass.FeatureValueWithDictionaryError(value, error) +// [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 foundation.IError) FeatureValue { + return FeatureValueClass.FeatureValueWithImageAtURLOrientationConstraintOptionsError(url, orientation, constraint, options, error) } -func (fc _FeatureValueClass) FeatureValueWithMultiArray(value IMultiArray) FeatureValue { - rv := objc.Call[FeatureValue](fc, objc.Sel("featureValueWithMultiArray:"), objc.Ptr(value)) +func (fc _FeatureValueClass) FeatureValueWithCGImageConstraintOptionsError(cgImage coregraphics.ImageRef, constraint IImageConstraint, options map[FeatureValueImageOption]objc.IObject, error foundation.IError) FeatureValue { + rv := objc.Call[FeatureValue](fc, objc.Sel("featureValueWithCGImage:constraint:options:error:"), cgImage, objc.Ptr(constraint), options, objc.Ptr(error)) return rv } -// Creates a feature value that contains a multidimensional array. [Full Topic] +// 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/2879356-featurevaluewithmultiarray?language=objc -func FeatureValue_FeatureValueWithMultiArray(value IMultiArray) FeatureValue { - return FeatureValueClass.FeatureValueWithMultiArray(value) +// [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 foundation.IError) FeatureValue { + return FeatureValueClass.FeatureValueWithCGImageConstraintOptionsError(cgImage, constraint, options, error) } -func (fc _FeatureValueClass) FeatureValueWithCGImageOrientationConstraintOptionsError(cgImage coregraphics.ImageRef, orientation imageio.ImagePropertyOrientation, constraint IImageConstraint, options map[FeatureValueImageOption]objc.IObject, error foundation.IError) FeatureValue { - rv := objc.Call[FeatureValue](fc, objc.Sel("featureValueWithCGImage:orientation:constraint:options:error:"), cgImage, orientation, objc.Ptr(constraint), options, objc.Ptr(error)) +func (fc _FeatureValueClass) FeatureValueWithCGImageOrientationPixelsWidePixelsHighPixelFormatTypeOptionsError(cgImage coregraphics.ImageRef, orientation imageio.ImagePropertyOrientation, pixelsWide int, pixelsHigh int, pixelFormatType uint, options map[FeatureValueImageOption]objc.IObject, error foundation.IError) FeatureValue { + rv := objc.Call[FeatureValue](fc, objc.Sel("featureValueWithCGImage:orientation:pixelsWide:pixelsHigh:pixelFormatType:options:error:"), cgImage, orientation, pixelsWide, pixelsHigh, pixelFormatType, options, objc.Ptr(error)) return rv } -// Creates a feature value that contains an image defined by a core graphics image, an orientation, and a constraint. [Full Topic] +// Creates a feature value that contains an image defined by a core graphics image and its orientation, size, and pixel format. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreml/mlfeaturevalue/3362522-featurevaluewithcgimage?language=objc -func FeatureValue_FeatureValueWithCGImageOrientationConstraintOptionsError(cgImage coregraphics.ImageRef, orientation imageio.ImagePropertyOrientation, constraint IImageConstraint, options map[FeatureValueImageOption]objc.IObject, error foundation.IError) FeatureValue { - return FeatureValueClass.FeatureValueWithCGImageOrientationConstraintOptionsError(cgImage, orientation, constraint, options, error) +// [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 foundation.IError) FeatureValue { + return FeatureValueClass.FeatureValueWithCGImageOrientationPixelsWidePixelsHighPixelFormatTypeOptionsError(cgImage, orientation, pixelsWide, pixelsHigh, pixelFormatType, options, error) } func (fc _FeatureValueClass) FeatureValueWithImageAtURLConstraintOptionsError(url foundation.IURL, constraint IImageConstraint, options map[FeatureValueImageOption]objc.IObject, error foundation.IError) FeatureValue { @@ -119,6 +119,66 @@ func FeatureValue_FeatureValueWithImageAtURLConstraintOptionsError(url foundatio return FeatureValueClass.FeatureValueWithImageAtURLConstraintOptionsError(url, constraint, options, error) } +func (fc _FeatureValueClass) UndefinedFeatureValueWithType(type_ FeatureType) FeatureValue { + rv := objc.Call[FeatureValue](fc, objc.Sel("undefinedFeatureValueWithType:"), type_) + return rv +} + +// 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/2879362-undefinedfeaturevaluewithtype?language=objc +func FeatureValue_UndefinedFeatureValueWithType(type_ FeatureType) FeatureValue { + return FeatureValueClass.UndefinedFeatureValueWithType(type_) +} + +func (fc _FeatureValueClass) FeatureValueWithString(value string) FeatureValue { + rv := objc.Call[FeatureValue](fc, objc.Sel("featureValueWithString:"), value) + return rv +} + +// Creates a feature value that contains a string. [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) +} + +func (fc _FeatureValueClass) FeatureValueWithCGImageOrientationConstraintOptionsError(cgImage coregraphics.ImageRef, orientation imageio.ImagePropertyOrientation, constraint IImageConstraint, options map[FeatureValueImageOption]objc.IObject, error foundation.IError) FeatureValue { + rv := objc.Call[FeatureValue](fc, objc.Sel("featureValueWithCGImage:orientation:constraint:options:error:"), cgImage, orientation, objc.Ptr(constraint), options, objc.Ptr(error)) + return rv +} + +// Creates a feature value that contains an image defined by a core graphics image, an orientation, and a constraint. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/coreml/mlfeaturevalue/3362522-featurevaluewithcgimage?language=objc +func FeatureValue_FeatureValueWithCGImageOrientationConstraintOptionsError(cgImage coregraphics.ImageRef, orientation imageio.ImagePropertyOrientation, constraint IImageConstraint, options map[FeatureValueImageOption]objc.IObject, error foundation.IError) FeatureValue { + return FeatureValueClass.FeatureValueWithCGImageOrientationConstraintOptionsError(cgImage, orientation, constraint, options, error) +} + +func (fc _FeatureValueClass) FeatureValueWithDictionaryError(value foundation.Dictionary, error foundation.IError) FeatureValue { + rv := objc.Call[FeatureValue](fc, objc.Sel("featureValueWithDictionary:error:"), value, objc.Ptr(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 foundation.IError) 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 foundation.IError) FeatureValue { + rv := objc.Call[FeatureValue](fc, objc.Sel("featureValueWithImageAtURL:pixelsWide:pixelsHigh:pixelFormatType:options:error:"), objc.Ptr(url), pixelsWide, pixelsHigh, pixelFormatType, options, objc.Ptr(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] +// +// [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 foundation.IError) FeatureValue { + return FeatureValueClass.FeatureValueWithImageAtURLPixelsWidePixelsHighPixelFormatTypeOptionsError(url, pixelsWide, pixelsHigh, pixelFormatType, options, error) +} + func (fc _FeatureValueClass) FeatureValueWithInt64(value int64) FeatureValue { rv := objc.Call[FeatureValue](fc, objc.Sel("featureValueWithInt64:"), value) return rv @@ -131,49 +191,57 @@ func FeatureValue_FeatureValueWithInt64(value int64) FeatureValue { return FeatureValueClass.FeatureValueWithInt64(value) } -func (fc _FeatureValueClass) FeatureValueWithPixelBuffer(value corevideo.PixelBufferRef) FeatureValue { - rv := objc.Call[FeatureValue](fc, objc.Sel("featureValueWithPixelBuffer:"), value) +func (fc _FeatureValueClass) FeatureValueWithSequence(sequence ISequence) FeatureValue { + rv := objc.Call[FeatureValue](fc, objc.Sel("featureValueWithSequence:"), objc.Ptr(sequence)) return rv } -// Creates a feature value that contains an image from a pixel buffer. [Full Topic] +// Creates a feature value that contains a sequence. [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) +// [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) FeatureValueWithDouble(value float64) FeatureValue { - rv := objc.Call[FeatureValue](fc, objc.Sel("featureValueWithDouble:"), value) +func (fc _FeatureValueClass) FeatureValueWithMultiArray(value IMultiArray) FeatureValue { + rv := objc.Call[FeatureValue](fc, objc.Sel("featureValueWithMultiArray:"), objc.Ptr(value)) return rv } -// Creates a feature value that contains a double. [Full Topic] +// Creates a feature value that contains a multidimensional array. [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) +// [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) UndefinedFeatureValueWithType(type_ FeatureType) FeatureValue { - rv := objc.Call[FeatureValue](fc, objc.Sel("undefinedFeatureValueWithType:"), type_) +func (fc _FeatureValueClass) FeatureValueWithCGImagePixelsWidePixelsHighPixelFormatTypeOptionsError(cgImage coregraphics.ImageRef, pixelsWide int, pixelsHigh int, pixelFormatType uint, options map[FeatureValueImageOption]objc.IObject, error foundation.IError) FeatureValue { + rv := objc.Call[FeatureValue](fc, objc.Sel("featureValueWithCGImage:pixelsWide:pixelsHigh:pixelFormatType:options:error:"), cgImage, pixelsWide, pixelsHigh, pixelFormatType, options, objc.Ptr(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 an image defined by a core graphics image and its size and pixel format. [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/3200161-featurevaluewithcgimage?language=objc +func FeatureValue_FeatureValueWithCGImagePixelsWidePixelsHighPixelFormatTypeOptionsError(cgImage coregraphics.ImageRef, pixelsWide int, pixelsHigh int, pixelFormatType uint, options map[FeatureValueImageOption]objc.IObject, error foundation.IError) FeatureValue { + return FeatureValueClass.FeatureValueWithCGImagePixelsWidePixelsHighPixelFormatTypeOptionsError(cgImage, pixelsWide, pixelsHigh, pixelFormatType, options, error) } -func (fc _FeatureValueClass) Alloc() FeatureValue { - rv := objc.Call[FeatureValue](fc, objc.Sel("alloc")) +func (fc _FeatureValueClass) FeatureValueWithImageAtURLOrientationPixelsWidePixelsHighPixelFormatTypeOptionsError(url foundation.IURL, orientation imageio.ImagePropertyOrientation, pixelsWide int, pixelsHigh int, pixelFormatType uint, options map[FeatureValueImageOption]objc.IObject, error foundation.IError) FeatureValue { + rv := objc.Call[FeatureValue](fc, objc.Sel("featureValueWithImageAtURL:orientation:pixelsWide:pixelsHigh:pixelFormatType:options:error:"), objc.Ptr(url), orientation, pixelsWide, pixelsHigh, pixelFormatType, options, objc.Ptr(error)) return rv } -func FeatureValue_Alloc() FeatureValue { - return FeatureValueClass.Alloc() +// Creates a feature value that contains an image defined by an image URL and the image’s orientation, size, and pixel format. [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 foundation.IError) FeatureValue { + return FeatureValueClass.FeatureValueWithImageAtURLOrientationPixelsWidePixelsHighPixelFormatTypeOptionsError(url, orientation, pixelsWide, pixelsHigh, pixelFormatType, options, error) +} + +func (fc _FeatureValueClass) Alloc() FeatureValue { + rv := objc.Call[FeatureValue](fc, objc.Sel("alloc")) + return rv } func (fc _FeatureValueClass) New() FeatureValue { @@ -199,19 +267,11 @@ func (f_ FeatureValue) IsEqualToFeatureValue(value IFeatureValue) bool { return rv } -// The underlying integer 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")) - return rv -} - -// The underlying string of the feature value. [Full Topic] +// The underlying image of the feature value as a pixel buffer. [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/2879400-imagebuffervalue?language=objc +func (f_ FeatureValue) ImageBufferValue() corevideo.PixelBufferRef { + rv := objc.Call[corevideo.PixelBufferRef](f_, objc.Sel("imageBufferValue")) return rv } @@ -223,27 +283,19 @@ func (f_ FeatureValue) MultiArrayValue() MultiArray { 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 -} - -// 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 } -// 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 } @@ -255,11 +307,19 @@ func (f_ FeatureValue) IsUndefined() bool { return rv } -// The type of the feature value. [Full Topic] +// The underlying string 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/2879349-stringvalue?language=objc +func (f_ FeatureValue) StringValue() string { + rv := objc.Call[string](f_, objc.Sel("stringValue")) + return rv +} + +// The underlying sequence 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")) return rv } @@ -270,3 +330,11 @@ 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 3bdb6675..e875d1d9 100644 --- a/macos/coreml/image_constraint.gen.go +++ b/macos/coreml/image_constraint.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package coreml @@ -18,10 +18,10 @@ type _ImageConstraintClass struct { // An interface definition for the [ImageConstraint] class. type IImageConstraint interface { objc.IObject - SizeConstraint() ImageSizeConstraint - PixelFormatType() uint PixelsWide() int + PixelFormatType() uint PixelsHigh() int + SizeConstraint() ImageSizeConstraint } // The width, height, and pixel format constraints of an image feature. [Full Topic] @@ -42,10 +42,6 @@ func (ic _ImageConstraintClass) Alloc() ImageConstraint { return rv } -func ImageConstraint_Alloc() ImageConstraint { - return ImageConstraintClass.Alloc() -} - func (ic _ImageConstraintClass) New() ImageConstraint { rv := objc.Call[ImageConstraint](ic, objc.Sel("new")) rv.Autorelease() @@ -61,11 +57,11 @@ func (i_ ImageConstraint) Init() ImageConstraint { return rv } -// Additional sizes this image feature supports. [Full Topic] +// The model's default width 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/2921270-pixelswide?language=objc +func (i_ ImageConstraint) PixelsWide() int { + rv := objc.Call[int](i_, objc.Sel("pixelsWide")) return rv } @@ -77,14 +73,6 @@ func (i_ ImageConstraint) PixelFormatType() uint { return rv } -// The model's default width for an image feature. [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")) - return rv -} - // The model's default height for an image feature. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/coreml/mlimageconstraint/2921268-pixelshigh?language=objc @@ -92,3 +80,11 @@ func (i_ ImageConstraint) PixelsHigh() int { rv := objc.Call[int](i_, objc.Sel("pixelsHigh")) return rv } + +// Additional sizes this image feature supports. [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")) + return rv +} diff --git a/macos/coreml/image_size.gen.go b/macos/coreml/image_size.gen.go index dd9594a2..898043c9 100644 --- a/macos/coreml/image_size.gen.go +++ b/macos/coreml/image_size.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package coreml @@ -40,10 +40,6 @@ func (ic _ImageSizeClass) Alloc() ImageSize { return rv } -func ImageSize_Alloc() ImageSize { - return ImageSizeClass.Alloc() -} - func (ic _ImageSizeClass) New() ImageSize { rv := objc.Call[ImageSize](ic, objc.Sel("new")) rv.Autorelease() diff --git a/macos/coreml/image_size_constraint.gen.go b/macos/coreml/image_size_constraint.gen.go index 59888dcc..88be7809 100644 --- a/macos/coreml/image_size_constraint.gen.go +++ b/macos/coreml/image_size_constraint.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package coreml @@ -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 } @@ -43,10 +43,6 @@ func (ic _ImageSizeConstraintClass) Alloc() ImageSizeConstraint { return rv } -func ImageSizeConstraint_Alloc() ImageSizeConstraint { - return ImageSizeConstraintClass.Alloc() -} - func (ic _ImageSizeConstraintClass) New() ImageSizeConstraint { rv := objc.Call[ImageSizeConstraint](ic, objc.Sel("new")) rv.Autorelease() @@ -62,14 +58,6 @@ 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 @@ -86,6 +74,14 @@ 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/key.gen.go b/macos/coreml/key.gen.go index 64176c0c..0304534f 100644 --- a/macos/coreml/key.gen.go +++ b/macos/coreml/key.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package coreml @@ -40,10 +40,6 @@ func (kc _KeyClass) Alloc() Key { return rv } -func Key_Alloc() Key { - return KeyClass.Alloc() -} - func (kc _KeyClass) New() Key { rv := objc.Call[Key](kc, objc.Sel("new")) rv.Autorelease() diff --git a/macos/coreml/metric_key.gen.go b/macos/coreml/metric_key.gen.go index ac9eccbe..87785cfa 100644 --- a/macos/coreml/metric_key.gen.go +++ b/macos/coreml/metric_key.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package coreml @@ -38,10 +38,6 @@ func (mc _MetricKeyClass) Alloc() MetricKey { return rv } -func MetricKey_Alloc() MetricKey { - return MetricKeyClass.Alloc() -} - func (mc _MetricKeyClass) New() MetricKey { rv := objc.Call[MetricKey](mc, objc.Sel("new")) rv.Autorelease() @@ -72,21 +68,6 @@ func MetricKey_EpochIndex() MetricKey { return MetricKeyClass.EpochIndex() } -// 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 -func (mc _MetricKeyClass) MiniBatchIndex() MetricKey { - rv := objc.Call[MetricKey](mc, objc.Sel("miniBatchIndex")) - return rv -} - -// 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 -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 @@ -101,3 +82,18 @@ func (mc _MetricKeyClass) LossValue() MetricKey { 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 +func (mc _MetricKeyClass) MiniBatchIndex() MetricKey { + rv := objc.Call[MetricKey](mc, objc.Sel("miniBatchIndex")) + return rv +} + +// 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 +func MetricKey_MiniBatchIndex() MetricKey { + return MetricKeyClass.MiniBatchIndex() +} diff --git a/macos/coreml/model.gen.go b/macos/coreml/model.gen.go index dd009d45..bcbcddbc 100644 --- a/macos/coreml/model.gen.go +++ b/macos/coreml/model.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package coreml @@ -19,13 +19,17 @@ type _ModelClass struct { // An interface definition for the [Model] class. type IModel interface { objc.IObject + PredictionsFromBatchError(inputBatch PBatchProvider, error foundation.IError) BatchProviderObject + PredictionsFromBatchObjectError(inputBatchObject objc.IObject, error foundation.IError) BatchProviderObject + PredictionFromFeaturesOptionsError(input PFeatureProvider, options IPredictionOptions, error foundation.IError) FeatureProviderObject + PredictionFromFeaturesObjectOptionsError(inputObject objc.IObject, options IPredictionOptions, error foundation.IError) FeatureProviderObject + PredictionFromFeaturesError(input PFeatureProvider, error foundation.IError) FeatureProviderObject + PredictionFromFeaturesObjectError(inputObject objc.IObject, error foundation.IError) FeatureProviderObject + PredictionsFromBatchOptionsError(inputBatch PBatchProvider, options IPredictionOptions, error foundation.IError) BatchProviderObject + PredictionsFromBatchObjectOptionsError(inputBatchObject objc.IObject, options IPredictionOptions, error foundation.IError) BatchProviderObject ParameterValueForKeyError(key IParameterKey, error foundation.IError) objc.Object - PredictionsFromBatchError(inputBatch PBatchProvider, error foundation.IError) BatchProviderWrapper - PredictionsFromBatchObjectError(inputBatchObject objc.IObject, error foundation.IError) BatchProviderWrapper - PredictionFromFeaturesError(input PFeatureProvider, error foundation.IError) FeatureProviderWrapper - PredictionFromFeaturesObjectError(inputObject objc.IObject, error foundation.IError) FeatureProviderWrapper - Configuration() ModelConfiguration ModelDescription() ModelDescription + Configuration() ModelConfiguration } // An encapsulation of all the details of your machine learning model. [Full Topic] @@ -53,13 +57,21 @@ func Model_ModelWithContentsOfURLError(url foundation.IURL, error foundation.IEr return ModelClass.ModelWithContentsOfURLError(url, error) } -func (mc _ModelClass) Alloc() Model { - rv := objc.Call[Model](mc, objc.Sel("alloc")) +func (mc _ModelClass) ModelWithContentsOfURLConfigurationError(url foundation.IURL, configuration IModelConfiguration, error foundation.IError) Model { + rv := objc.Call[Model](mc, objc.Sel("modelWithContentsOfURL:configuration:error:"), objc.Ptr(url), objc.Ptr(configuration), objc.Ptr(error)) return rv } -func Model_Alloc() Model { - return ModelClass.Alloc() +// 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 foundation.IError) Model { + return ModelClass.ModelWithContentsOfURLConfigurationError(url, configuration, error) +} + +func (mc _ModelClass) Alloc() Model { + rv := objc.Call[Model](mc, objc.Sel("alloc")) + return rv } func (mc _ModelClass) New() Model { @@ -77,11 +89,20 @@ func (m_ Model) Init() Model { return rv } -// Returns a model parameter value for a key. [Full Topic] +// Generates predictions for each input feature provider within the batch provider. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreml/mlmodel/3362526-parametervalueforkey?language=objc -func (m_ Model) ParameterValueForKeyError(key IParameterKey, error foundation.IError) objc.Object { - rv := objc.Call[objc.Object](m_, objc.Sel("parameterValueForKey:error:"), objc.Ptr(key), objc.Ptr(error)) +// [Full Topic]: https://developer.apple.com/documentation/coreml/mlmodel/3088750-predictionsfrombatch?language=objc +func (m_ Model) PredictionsFromBatchError(inputBatch PBatchProvider, error foundation.IError) BatchProviderObject { + po0 := objc.WrapAsProtocol("MLBatchProvider", inputBatch) + rv := objc.Call[BatchProviderObject](m_, objc.Sel("predictionsFromBatch:error:"), po0, objc.Ptr(error)) + 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) PredictionsFromBatchObjectError(inputBatchObject objc.IObject, error foundation.IError) BatchProviderObject { + rv := objc.Call[BatchProviderObject](m_, objc.Sel("predictionsFromBatch:error:"), objc.Ptr(inputBatchObject), objc.Ptr(error)) return rv } @@ -99,45 +120,62 @@ func Model_LoadContentsOfURLConfigurationCompletionHandler(url foundation.IURL, ModelClass.LoadContentsOfURLConfigurationCompletionHandler(url, configuration, handler) } -// Generates predictions for each input feature provider within the batch provider. [Full Topic] +// Generates a prediction from the feature values within the input feature provider using the prediction options. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreml/mlmodel/3088750-predictionsfrombatch?language=objc -func (m_ Model) PredictionsFromBatchError(inputBatch PBatchProvider, error foundation.IError) BatchProviderWrapper { - po0 := objc.WrapAsProtocol("MLBatchProvider", inputBatch) - rv := objc.Call[BatchProviderWrapper](m_, objc.Sel("predictionsFromBatch:error:"), po0, objc.Ptr(error)) +// [Full Topic]: https://developer.apple.com/documentation/coreml/mlmodel/2921292-predictionfromfeatures?language=objc +func (m_ Model) PredictionFromFeaturesOptionsError(input PFeatureProvider, options IPredictionOptions, error foundation.IError) FeatureProviderObject { + po0 := objc.WrapAsProtocol("MLFeatureProvider", input) + rv := objc.Call[FeatureProviderObject](m_, objc.Sel("predictionFromFeatures:options:error:"), po0, objc.Ptr(options), objc.Ptr(error)) return rv } -// Generates predictions for each input feature provider within the batch provider. [Full Topic] +// Generates a prediction from the feature values within the input feature provider using the prediction options. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/coreml/mlmodel/3088750-predictionsfrombatch?language=objc -func (m_ Model) PredictionsFromBatchObjectError(inputBatchObject objc.IObject, error foundation.IError) BatchProviderWrapper { - rv := objc.Call[BatchProviderWrapper](m_, objc.Sel("predictionsFromBatch:error:"), objc.Ptr(inputBatchObject), objc.Ptr(error)) +// [Full Topic]: https://developer.apple.com/documentation/coreml/mlmodel/2921292-predictionfromfeatures?language=objc +func (m_ Model) PredictionFromFeaturesObjectOptionsError(inputObject objc.IObject, options IPredictionOptions, error foundation.IError) FeatureProviderObject { + rv := objc.Call[FeatureProviderObject](m_, objc.Sel("predictionFromFeatures:options:error:"), objc.Ptr(inputObject), objc.Ptr(options), objc.Ptr(error)) return rv } // Generates a prediction from the feature values within the input feature provider. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/coreml/mlmodel/2880280-predictionfromfeatures?language=objc -func (m_ Model) PredictionFromFeaturesError(input PFeatureProvider, error foundation.IError) FeatureProviderWrapper { +func (m_ Model) PredictionFromFeaturesError(input PFeatureProvider, error foundation.IError) FeatureProviderObject { po0 := objc.WrapAsProtocol("MLFeatureProvider", input) - rv := objc.Call[FeatureProviderWrapper](m_, objc.Sel("predictionFromFeatures:error:"), po0, objc.Ptr(error)) + rv := objc.Call[FeatureProviderObject](m_, objc.Sel("predictionFromFeatures:error:"), po0, objc.Ptr(error)) return rv } // Generates a prediction from the feature values within the input feature provider. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/coreml/mlmodel/2880280-predictionfromfeatures?language=objc -func (m_ Model) PredictionFromFeaturesObjectError(inputObject objc.IObject, error foundation.IError) FeatureProviderWrapper { - rv := objc.Call[FeatureProviderWrapper](m_, objc.Sel("predictionFromFeatures:error:"), objc.Ptr(inputObject), objc.Ptr(error)) +func (m_ Model) PredictionFromFeaturesObjectError(inputObject objc.IObject, error foundation.IError) FeatureProviderObject { + rv := objc.Call[FeatureProviderObject](m_, objc.Sel("predictionFromFeatures:error:"), objc.Ptr(inputObject), objc.Ptr(error)) return rv } -// The configuration of the model set during initialization. [Full Topic] +// 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/3022228-configuration?language=objc -func (m_ Model) Configuration() ModelConfiguration { - rv := objc.Call[ModelConfiguration](m_, objc.Sel("configuration")) +// [Full Topic]: https://developer.apple.com/documentation/coreml/mlmodel/2962866-predictionsfrombatch?language=objc +func (m_ Model) PredictionsFromBatchOptionsError(inputBatch PBatchProvider, options IPredictionOptions, error foundation.IError) BatchProviderObject { + po0 := objc.WrapAsProtocol("MLBatchProvider", inputBatch) + rv := objc.Call[BatchProviderObject](m_, objc.Sel("predictionsFromBatch:options:error:"), po0, objc.Ptr(options), objc.Ptr(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 foundation.IError) BatchProviderObject { + rv := objc.Call[BatchProviderObject](m_, objc.Sel("predictionsFromBatch:options:error:"), objc.Ptr(inputBatchObject), objc.Ptr(options), objc.Ptr(error)) + return rv +} + +// Returns a model parameter value for a key. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/coreml/mlmodel/3362526-parametervalueforkey?language=objc +func (m_ Model) ParameterValueForKeyError(key IParameterKey, error foundation.IError) objc.Object { + rv := objc.Call[objc.Object](m_, objc.Sel("parameterValueForKey:error:"), objc.Ptr(key), objc.Ptr(error)) return rv } @@ -148,3 +186,11 @@ 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_collection.gen.go b/macos/coreml/model_collection.gen.go index 072e29bc..bdf128ca 100644 --- a/macos/coreml/model_collection.gen.go +++ b/macos/coreml/model_collection.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package coreml @@ -38,10 +38,6 @@ func (mc _ModelCollectionClass) Alloc() ModelCollection { return rv } -func ModelCollection_Alloc() ModelCollection { - return ModelCollectionClass.Alloc() -} - func (mc _ModelCollectionClass) New() ModelCollection { rv := objc.Call[ModelCollection](mc, objc.Sel("new")) rv.Autorelease() diff --git a/macos/coreml/model_collection_entry.gen.go b/macos/coreml/model_collection_entry.gen.go index bd849388..47aced13 100644 --- a/macos/coreml/model_collection_entry.gen.go +++ b/macos/coreml/model_collection_entry.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package coreml @@ -38,10 +38,6 @@ func (mc _ModelCollectionEntryClass) Alloc() ModelCollectionEntry { return rv } -func ModelCollectionEntry_Alloc() ModelCollectionEntry { - return ModelCollectionEntryClass.Alloc() -} - func (mc _ModelCollectionEntryClass) New() ModelCollectionEntry { rv := objc.Call[ModelCollectionEntry](mc, objc.Sel("new")) rv.Autorelease() diff --git a/macos/coreml/model_configuration.gen.go b/macos/coreml/model_configuration.gen.go index 12014e2a..cc7a8a13 100644 --- a/macos/coreml/model_configuration.gen.go +++ b/macos/coreml/model_configuration.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package coreml @@ -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.DeviceWrapper + 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] @@ -49,10 +49,6 @@ func (mc _ModelConfigurationClass) Alloc() ModelConfiguration { return rv } -func ModelConfiguration_Alloc() ModelConfiguration { - return ModelConfigurationClass.Alloc() -} - func (mc _ModelConfigurationClass) New() ModelConfiguration { rv := objc.Call[ModelConfiguration](mc, objc.Sel("new")) rv.Autorelease() @@ -68,19 +64,27 @@ func (m_ ModelConfiguration) Init() ModelConfiguration { return rv } -// The processing unit or units the model uses to make predictions. [Full Topic] +// 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/3022235-computeunits?language=objc -func (m_ ModelConfiguration) ComputeUnits() ComputeUnits { - rv := objc.Call[ComputeUnits](m_, objc.Sel("computeUnits")) +// [Full Topic]: https://developer.apple.com/documentation/coreml/mlmodelconfiguration/3222915-preferredmetaldevice?language=objc +func (m_ ModelConfiguration) PreferredMetalDevice() metal.DeviceObject { + rv := objc.Call[metal.DeviceObject](m_, objc.Sel("preferredMetalDevice")) return rv } -// The processing unit or units the model uses to make predictions. [Full Topic] +// 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/3022235-computeunits?language=objc -func (m_ ModelConfiguration) SetComputeUnits(value ComputeUnits) { - objc.Call[objc.Void](m_, objc.Sel("setComputeUnits:"), value) +// [Full Topic]: https://developer.apple.com/documentation/coreml/mlmodelconfiguration/3222915-preferredmetaldevice?language=objc +func (m_ ModelConfiguration) SetPreferredMetalDevice(value metal.PDevice) { + po0 := objc.WrapAsProtocol("MTLDevice", value) + objc.Call[objc.Void](m_, objc.Sel("setPreferredMetalDevice:"), po0) +} + +// 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 +func (m_ ModelConfiguration) SetPreferredMetalDeviceObject(valueObject objc.IObject) { + objc.Call[objc.Void](m_, objc.Sel("setPreferredMetalDevice:"), objc.Ptr(valueObject)) } // A dictionary of configuration settings your app can override when loading a model. [Full Topic] @@ -98,29 +102,6 @@ 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 -func (m_ ModelConfiguration) PreferredMetalDevice() metal.DeviceWrapper { - rv := objc.Call[metal.DeviceWrapper](m_, objc.Sel("preferredMetalDevice")) - return rv -} - -// 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 -func (m_ ModelConfiguration) SetPreferredMetalDevice(value metal.PDevice) { - po0 := objc.WrapAsProtocol("MTLDevice", value) - objc.Call[objc.Void](m_, objc.Sel("setPreferredMetalDevice:"), po0) -} - -// 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 -func (m_ ModelConfiguration) SetPreferredMetalDeviceObject(valueObject objc.IObject) { - objc.Call[objc.Void](m_, objc.Sel("setPreferredMetalDevice:"), objc.Ptr(valueObject)) -} - // 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 @@ -135,3 +116,18 @@ 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 e896f0bd..e23c92eb 100644 --- a/macos/coreml/model_description.gen.go +++ b/macos/coreml/model_description.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package coreml @@ -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 - ParameterDescriptionsByKey() foundation.Dictionary IsUpdatable() bool - Metadata() map[ModelMetadataKey]objc.Object + ParameterDescriptionsByKey() foundation.Dictionary PredictedFeatureName() string - InputDescriptionsByName() map[string]FeatureDescription - ClassLabels() []objc.Object PredictedProbabilitiesName() string - OutputDescriptionsByName() map[string]FeatureDescription + Metadata() map[ModelMetadataKey]objc.Object + ClassLabels() []objc.Object } // Information about a model, primarily the input and output format for each feature the model expects, and optional metadata. [Full Topic] @@ -48,10 +48,6 @@ func (mc _ModelDescriptionClass) Alloc() ModelDescription { return rv } -func ModelDescription_Alloc() ModelDescription { - return ModelDescriptionClass.Alloc() -} - func (mc _ModelDescriptionClass) New() ModelDescription { rv := objc.Call[ModelDescription](mc, objc.Sel("new")) rv.Autorelease() @@ -67,19 +63,27 @@ func (m_ ModelDescription) Init() ModelDescription { return rv } -// A dictionary of the training input feature descriptions, which the model keys by the input’s name. [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/3180060-traininginputdescriptionsbyname?language=objc -func (m_ ModelDescription) TrainingInputDescriptionsByName() map[string]FeatureDescription { - rv := objc.Call[map[string]FeatureDescription](m_, objc.Sel("trainingInputDescriptionsByName")) +// [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 the descriptions for the model’s parameters. [Full Topic] +// 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/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/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 +func (m_ ModelDescription) TrainingInputDescriptionsByName() map[string]FeatureDescription { + rv := objc.Call[map[string]FeatureDescription](m_, objc.Sel("trainingInputDescriptionsByName")) return rv } @@ -91,11 +95,11 @@ func (m_ ModelDescription) IsUpdatable() bool { return rv } -// A dictionary of the model’s creation information, such as its description, author, version, and license. [Full Topic] +// A dictionary of the descriptions for the model’s parameters. [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/3333250-parameterdescriptionsbykey?language=objc +func (m_ ModelDescription) ParameterDescriptionsByKey() foundation.Dictionary { + rv := objc.Call[foundation.Dictionary](m_, objc.Sel("parameterDescriptionsByKey")) return rv } @@ -107,22 +111,6 @@ func (m_ ModelDescription) PredictedFeatureName() string { 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 -} - -// An array of labels, which can be either strings or a numbers, for classifier models. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/coreml/mlmodeldescription/3649657-classlabels?language=objc -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 @@ -131,10 +119,18 @@ func (m_ ModelDescription) PredictedProbabilitiesName() string { return rv } -// A dictionary of output feature descriptions, which the model keys by the output’s name. [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/2879361-outputdescriptionsbyname?language=objc -func (m_ ModelDescription) OutputDescriptionsByName() map[string]FeatureDescription { - rv := objc.Call[map[string]FeatureDescription](m_, objc.Sel("outputDescriptionsByName")) +// [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 +} + +// An array of labels, which can be either strings or a numbers, for classifier models. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/coreml/mlmodeldescription/3649657-classlabels?language=objc +func (m_ ModelDescription) ClassLabels() []objc.Object { + rv := objc.Call[[]objc.Object](m_, objc.Sel("classLabels")) return rv } diff --git a/macos/coreml/multi_array.gen.go b/macos/coreml/multi_array.gen.go index d8960d6c..8428c398 100644 --- a/macos/coreml/multi_array.gen.go +++ b/macos/coreml/multi_array.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package coreml @@ -20,14 +20,15 @@ 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 - SetObjectAtIndexedSubscript(obj foundation.INumber, idx int) - Shape() []foundation.Number + Strides() []foundation.Number PixelBuffer() corevideo.PixelBufferRef - Count() int + Shape() []foundation.Number DataType() MultiArrayDataType - Strides() []foundation.Number + Count() int } // A machine learning collection type that stores numeric values in an array with multiple dimensions. [Full Topic] @@ -69,30 +70,30 @@ func NewMultiArrayWithShapeDataTypeError(shape []foundation.INumber, dataType Mu return instance } -func (m_ MultiArray) InitWithDataPointerShapeDataTypeStridesDeallocatorError(dataPointer unsafe.Pointer, shape []foundation.INumber, dataType MultiArrayDataType, strides []foundation.INumber, deallocator func(bytes unsafe.Pointer), error foundation.IError) MultiArray { - rv := objc.Call[MultiArray](m_, objc.Sel("initWithDataPointer:shape:dataType:strides:deallocator:error:"), dataPointer, shape, dataType, strides, deallocator, objc.Ptr(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 foundation.IError) 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 } -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 foundation.IError) MultiArray { + rv := objc.Call[MultiArray](m_, objc.Sel("initWithDataPointer:shape:dataType:strides:deallocator:error:"), dataPointer, shape, dataType, strides, deallocator, objc.Ptr(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 foundation.IError) MultiArray { + instance := MultiArrayClass.Alloc().InitWithDataPointerShapeDataTypeStridesDeallocatorError(dataPointer, shape, dataType, strides, deallocator, error) instance.Autorelease() return instance } @@ -102,10 +103,6 @@ func (mc _MultiArrayClass) Alloc() MultiArray { return rv } -func MultiArray_Alloc() MultiArray { - return MultiArrayClass.Alloc() -} - func (mc _MultiArrayClass) New() MultiArray { rv := objc.Call[MultiArray](mc, objc.Sel("new")) rv.Autorelease() @@ -121,6 +118,20 @@ 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:"), objc.Ptr(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:"), objc.Ptr(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 @@ -137,18 +148,11 @@ func (m_ MultiArray) ObjectForKeyedSubscript(key []foundation.INumber) foundatio return rv } -// 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:"), objc.Ptr(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] +// 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/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/2879222-strides?language=objc +func (m_ MultiArray) Strides() []foundation.Number { + rv := objc.Call[[]foundation.Number](m_, objc.Sel("strides")) return rv } @@ -160,11 +164,11 @@ func (m_ MultiArray) PixelBuffer() corevideo.PixelBufferRef { return rv } -// The total number of elements in the multiarray. [Full Topic] +// 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/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/2879229-shape?language=objc +func (m_ MultiArray) Shape() []foundation.Number { + rv := objc.Call[[]foundation.Number](m_, objc.Sel("shape")) return rv } @@ -176,10 +180,10 @@ func (m_ MultiArray) DataType() MultiArrayDataType { 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] +// The total number of elements in the multiarray. [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/2879233-count?language=objc +func (m_ MultiArray) Count() int { + rv := objc.Call[int](m_, objc.Sel("count")) return rv } diff --git a/macos/coreml/multi_array_constraint.gen.go b/macos/coreml/multi_array_constraint.gen.go index 2b5fcc01..3babfc05 100644 --- a/macos/coreml/multi_array_constraint.gen.go +++ b/macos/coreml/multi_array_constraint.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package coreml @@ -19,9 +19,9 @@ type _MultiArrayConstraintClass struct { // An interface definition for the [MultiArrayConstraint] class. type IMultiArrayConstraint interface { objc.IObject - Shape() []foundation.Number - ShapeConstraint() MultiArrayShapeConstraint DataType() MultiArrayDataType + ShapeConstraint() MultiArrayShapeConstraint + Shape() []foundation.Number } // The shape and data type constraints for a multidimensional array feature. [Full Topic] @@ -42,10 +42,6 @@ func (mc _MultiArrayConstraintClass) Alloc() MultiArrayConstraint { return rv } -func MultiArrayConstraint_Alloc() MultiArrayConstraint { - return MultiArrayConstraintClass.Alloc() -} - func (mc _MultiArrayConstraintClass) New() MultiArrayConstraint { rv := objc.Call[MultiArrayConstraint](mc, objc.Sel("new")) rv.Autorelease() @@ -61,11 +57,11 @@ func (m_ MultiArrayConstraint) Init() MultiArrayConstraint { 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 } @@ -77,10 +73,10 @@ func (m_ MultiArrayConstraint) ShapeConstraint() MultiArrayShapeConstraint { 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 } diff --git a/macos/coreml/multi_array_shape_constraint.gen.go b/macos/coreml/multi_array_shape_constraint.gen.go index 1d67d9bb..b87aa12a 100644 --- a/macos/coreml/multi_array_shape_constraint.gen.go +++ b/macos/coreml/multi_array_shape_constraint.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package coreml @@ -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] @@ -42,10 +42,6 @@ func (mc _MultiArrayShapeConstraintClass) Alloc() MultiArrayShapeConstraint { return rv } -func MultiArrayShapeConstraint_Alloc() MultiArrayShapeConstraint { - return MultiArrayShapeConstraintClass.Alloc() -} - func (mc _MultiArrayShapeConstraintClass) New() MultiArrayShapeConstraint { rv := objc.Call[MultiArrayShapeConstraint](mc, objc.Sel("new")) rv.Autorelease() @@ -61,6 +57,14 @@ 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 @@ -76,11 +80,3 @@ 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/numeric_constraint.gen.go b/macos/coreml/numeric_constraint.gen.go index 556885d4..e7e0f31d 100644 --- a/macos/coreml/numeric_constraint.gen.go +++ b/macos/coreml/numeric_constraint.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package coreml @@ -42,10 +42,6 @@ func (nc _NumericConstraintClass) Alloc() NumericConstraint { return rv } -func NumericConstraint_Alloc() NumericConstraint { - return NumericConstraintClass.Alloc() -} - func (nc _NumericConstraintClass) New() NumericConstraint { rv := objc.Call[NumericConstraint](nc, objc.Sel("new")) rv.Autorelease() diff --git a/macos/coreml/parameter_description.gen.go b/macos/coreml/parameter_description.gen.go index 9c2d48c0..b9a9bef7 100644 --- a/macos/coreml/parameter_description.gen.go +++ b/macos/coreml/parameter_description.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package coreml @@ -18,9 +18,9 @@ type _ParameterDescriptionClass struct { // An interface definition for the [ParameterDescription] class. type IParameterDescription interface { objc.IObject - Key() ParameterKey - DefaultValue() objc.Object NumericConstraint() NumericConstraint + DefaultValue() objc.Object + Key() ParameterKey } // A description of a model parameter that includes a default value and a constraint, if applicable. [Full Topic] @@ -41,10 +41,6 @@ func (pc _ParameterDescriptionClass) Alloc() ParameterDescription { return rv } -func ParameterDescription_Alloc() ParameterDescription { - return ParameterDescriptionClass.Alloc() -} - func (pc _ParameterDescriptionClass) New() ParameterDescription { rv := objc.Call[ParameterDescription](pc, objc.Sel("new")) rv.Autorelease() @@ -60,11 +56,11 @@ func (p_ ParameterDescription) Init() ParameterDescription { 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 } @@ -76,10 +72,10 @@ func (p_ ParameterDescription) DefaultValue() objc.Object { 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 } diff --git a/macos/coreml/parameter_key.gen.go b/macos/coreml/parameter_key.gen.go index 5c03bab7..03a56760 100644 --- a/macos/coreml/parameter_key.gen.go +++ b/macos/coreml/parameter_key.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package coreml @@ -39,10 +39,6 @@ func (pc _ParameterKeyClass) Alloc() ParameterKey { return rv } -func ParameterKey_Alloc() ParameterKey { - return ParameterKeyClass.Alloc() -} - func (pc _ParameterKeyClass) New() ParameterKey { rv := objc.Call[ParameterKey](pc, objc.Sel("new")) rv.Autorelease() @@ -66,49 +62,19 @@ func (p_ ParameterKey) ScopedTo(scope string) ParameterKey { 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 (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 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] +// 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/3362529-numberofneighbors?language=objc -func (pc _ParameterKeyClass) NumberOfNeighbors() ParameterKey { - rv := objc.Call[ParameterKey](pc, objc.Sel("numberOfNeighbors")) +// [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 number of neighbors that adjusts the affinity of a k-nearest-neighbor 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/3362529-numberofneighbors?language=objc -func ParameterKey_NumberOfNeighbors() ParameterKey { - return ParameterKeyClass.NumberOfNeighbors() +// [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 weights of a layer in a neural network model. [Full Topic] @@ -126,19 +92,19 @@ func ParameterKey_Weights() ParameterKey { return ParameterKeyClass.Weights() } -// 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 first beta parameter. [Full Topic] @@ -156,49 +122,34 @@ func ParameterKey_Beta1() ParameterKey { return ParameterKeyClass.Beta1() } -// 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/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 biases of a layer in a neural network model. [Full Topic] -// -// [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 optimizer’s learning rate 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/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/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 optimizer’s learning rate 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/3180073-learningrate?language=objc -func ParameterKey_LearningRate() ParameterKey { - return ParameterKeyClass.LearningRate() +// [Full Topic]: https://developer.apple.com/documentation/coreml/mlparameterkey/3180072-epochs?language=objc +func ParameterKey_Epochs() ParameterKey { + return ParameterKeyClass.Epochs() } -// The key you use to access the Adam optimizer’s epsilon 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/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/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 Adam optimizer’s epsilon 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/3194198-eps?language=objc -func ParameterKey_Eps() ParameterKey { - return ParameterKeyClass.Eps() +// [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 linked model’s search path. [Full Topic] @@ -216,6 +167,36 @@ 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 @@ -231,6 +212,21 @@ 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 @@ -246,32 +242,32 @@ func ParameterKey_Shuffle() ParameterKey { return ParameterKeyClass.Shuffle() } -// 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 biases of a layer in a neural network model. [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/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 seed parameter that initializes the random number generator for the shuffle option. [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/3333252-seed?language=objc -func ParameterKey_Seed() ParameterKey { - return ParameterKeyClass.Seed() +// [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 optimizer’s epochs parameter. [Full Topic] +// The key you use to access the Adam optimizer’s epsilon parameter. [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/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 optimizer’s epochs parameter. [Full Topic] +// The key you use to access the Adam optimizer’s epsilon parameter. [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/3194198-eps?language=objc +func ParameterKey_Eps() ParameterKey { + return ParameterKeyClass.Eps() } diff --git a/macos/coreml/prediction_options.gen.go b/macos/coreml/prediction_options.gen.go index ca0111fb..78f22f3f 100644 --- a/macos/coreml/prediction_options.gen.go +++ b/macos/coreml/prediction_options.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package coreml @@ -40,10 +40,6 @@ func (pc _PredictionOptionsClass) Alloc() PredictionOptions { return rv } -func PredictionOptions_Alloc() PredictionOptions { - return PredictionOptionsClass.Alloc() -} - func (pc _PredictionOptionsClass) New() PredictionOptions { rv := objc.Call[PredictionOptions](pc, objc.Sel("new")) rv.Autorelease() diff --git a/macos/coreml/protocols.gen.m b/macos/coreml/protocols.gen.m index 4ff5dcce..83e3c957 100644 --- a/macos/coreml/protocols.gen.m +++ b/macos/coreml/protocols.gen.m @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. #import "CoreML/CoreML.h" diff --git a/macos/coreml/sequence.gen.go b/macos/coreml/sequence.gen.go index b16ed183..30bbca46 100644 --- a/macos/coreml/sequence.gen.go +++ b/macos/coreml/sequence.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package coreml @@ -20,8 +20,8 @@ type _SequenceClass struct { type ISequence interface { objc.IObject StringValues() []string - Int64Values() []foundation.Number Type() FeatureType + Int64Values() []foundation.Number } // A machine learning collection type that stores a series of strings or integers. [Full Topic] @@ -78,10 +78,6 @@ func (sc _SequenceClass) Alloc() Sequence { return rv } -func Sequence_Alloc() Sequence { - return SequenceClass.Alloc() -} - func (sc _SequenceClass) New() Sequence { rv := objc.Call[Sequence](sc, objc.Sel("new")) rv.Autorelease() @@ -105,14 +101,6 @@ func (s_ Sequence) StringValues() []string { 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 -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 @@ -120,3 +108,11 @@ 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 +func (s_ Sequence) Int64Values() []foundation.Number { + rv := objc.Call[[]foundation.Number](s_, objc.Sel("int64Values")) + return rv +} diff --git a/macos/coreml/sequence_constraint.gen.go b/macos/coreml/sequence_constraint.gen.go index b56c4807..37688862 100644 --- a/macos/coreml/sequence_constraint.gen.go +++ b/macos/coreml/sequence_constraint.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package coreml @@ -19,8 +19,8 @@ type _SequenceConstraintClass struct { // An interface definition for the [SequenceConstraint] class. type ISequenceConstraint interface { objc.IObject - ValueDescription() FeatureDescription CountRange() foundation.Range + ValueDescription() FeatureDescription } // The constraints for a sequence feature. [Full Topic] @@ -41,10 +41,6 @@ func (sc _SequenceConstraintClass) Alloc() SequenceConstraint { return rv } -func SequenceConstraint_Alloc() SequenceConstraint { - return SequenceConstraintClass.Alloc() -} - func (sc _SequenceConstraintClass) New() SequenceConstraint { rv := objc.Call[SequenceConstraint](sc, objc.Sel("new")) rv.Autorelease() @@ -60,14 +56,6 @@ func (s_ SequenceConstraint) Init() SequenceConstraint { 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 -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 @@ -75,3 +63,11 @@ 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 +func (s_ SequenceConstraint) ValueDescription() FeatureDescription { + rv := objc.Call[FeatureDescription](s_, objc.Sel("valueDescription")) + return rv +} diff --git a/macos/coreml/task.gen.go b/macos/coreml/task.gen.go index e2439f7d..52d3e94c 100644 --- a/macos/coreml/task.gen.go +++ b/macos/coreml/task.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package coreml @@ -19,8 +19,8 @@ type _TaskClass struct { // An interface definition for the [Task] class. type ITask interface { objc.IObject - Resume() Cancel() + Resume() Error() foundation.Error State() TaskState TaskIdentifier() string @@ -44,10 +44,6 @@ func (tc _TaskClass) Alloc() Task { return rv } -func Task_Alloc() Task { - return TaskClass.Alloc() -} - func (tc _TaskClass) New() Task { rv := objc.Call[Task](tc, objc.Sel("new")) rv.Autorelease() @@ -63,13 +59,6 @@ func (t_ Task) Init() Task { return rv } -// Begins or resumes a machine learning task. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/coreml/mltask/3180080-resume?language=objc -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 @@ -77,6 +66,13 @@ 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 +func (t_ Task) Resume() { + objc.Call[objc.Void](t_, objc.Sel("resume")) +} + // 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 d5e2a120..8a4b4d73 100644 --- a/macos/coreml/update_context.gen.go +++ b/macos/coreml/update_context.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package coreml @@ -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 } @@ -44,10 +44,6 @@ func (uc _UpdateContextClass) Alloc() UpdateContext { return rv } -func UpdateContext_Alloc() UpdateContext { - return UpdateContextClass.Alloc() -} - func (uc _UpdateContextClass) New() UpdateContext { rv := objc.Call[UpdateContext](uc, objc.Sel("new")) rv.Autorelease() @@ -63,6 +59,14 @@ 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 @@ -79,14 +83,6 @@ 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_progress_handlers.gen.go b/macos/coreml/update_progress_handlers.gen.go index fd94c394..d2e23496 100644 --- a/macos/coreml/update_progress_handlers.gen.go +++ b/macos/coreml/update_progress_handlers.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package coreml @@ -52,10 +52,6 @@ func (uc _UpdateProgressHandlersClass) Alloc() UpdateProgressHandlers { return rv } -func UpdateProgressHandlers_Alloc() UpdateProgressHandlers { - return UpdateProgressHandlersClass.Alloc() -} - func (uc _UpdateProgressHandlersClass) New() UpdateProgressHandlers { rv := objc.Call[UpdateProgressHandlers](uc, objc.Sel("new")) rv.Autorelease() diff --git a/macos/coreml/update_task.gen.go b/macos/coreml/update_task.gen.go index f8ce80e7..f809f2a2 100644 --- a/macos/coreml/update_task.gen.go +++ b/macos/coreml/update_task.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package coreml @@ -48,13 +48,48 @@ func UpdateTask_UpdateTaskForModelAtURLTrainingDataProgressHandlersError(modelUR return UpdateTaskClass.UpdateTaskForModelAtURLTrainingDataProgressHandlersError(modelURL, trainingData, progressHandlers, error) } -func (uc _UpdateTaskClass) Alloc() UpdateTask { - rv := objc.Call[UpdateTask](uc, objc.Sel("alloc")) +func (uc _UpdateTaskClass) UpdateTaskForModelAtURLTrainingDataCompletionHandlerError(modelURL foundation.IURL, trainingData PBatchProvider, completionHandler func(arg0 UpdateContext), error foundation.IError) UpdateTask { + po1 := objc.WrapAsProtocol("MLBatchProvider", trainingData) + rv := objc.Call[UpdateTask](uc, objc.Sel("updateTaskForModelAtURL:trainingData:completionHandler:error:"), objc.Ptr(modelURL), po1, completionHandler, objc.Ptr(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 foundation.IError) UpdateTask { + return UpdateTaskClass.UpdateTaskForModelAtURLTrainingDataCompletionHandlerError(modelURL, trainingData, completionHandler, error) +} + +func (uc _UpdateTaskClass) UpdateTaskForModelAtURLTrainingDataConfigurationCompletionHandlerError(modelURL foundation.IURL, trainingData PBatchProvider, configuration IModelConfiguration, completionHandler func(context UpdateContext), error foundation.IError) UpdateTask { + po1 := objc.WrapAsProtocol("MLBatchProvider", trainingData) + rv := objc.Call[UpdateTask](uc, objc.Sel("updateTaskForModelAtURL:trainingData:configuration:completionHandler:error:"), objc.Ptr(modelURL), po1, objc.Ptr(configuration), completionHandler, objc.Ptr(error)) return rv } -func UpdateTask_Alloc() UpdateTask { - return UpdateTaskClass.Alloc() +// 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 foundation.IError) UpdateTask { + return UpdateTaskClass.UpdateTaskForModelAtURLTrainingDataConfigurationCompletionHandlerError(modelURL, trainingData, configuration, completionHandler, error) +} + +func (uc _UpdateTaskClass) UpdateTaskForModelAtURLTrainingDataConfigurationProgressHandlersError(modelURL foundation.IURL, trainingData PBatchProvider, configuration IModelConfiguration, progressHandlers IUpdateProgressHandlers, error foundation.IError) UpdateTask { + po1 := objc.WrapAsProtocol("MLBatchProvider", trainingData) + rv := objc.Call[UpdateTask](uc, objc.Sel("updateTaskForModelAtURL:trainingData:configuration:progressHandlers:error:"), objc.Ptr(modelURL), po1, objc.Ptr(configuration), objc.Ptr(progressHandlers), objc.Ptr(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 foundation.IError) UpdateTask { + return UpdateTaskClass.UpdateTaskForModelAtURLTrainingDataConfigurationProgressHandlersError(modelURL, trainingData, configuration, progressHandlers, error) +} + +func (uc _UpdateTaskClass) Alloc() UpdateTask { + rv := objc.Call[UpdateTask](uc, objc.Sel("alloc")) + return rv } func (uc _UpdateTaskClass) New() UpdateTask { diff --git a/macos/coreml/writable.gen.go b/macos/coreml/writable_protocol.gen.go similarity index 68% rename from macos/coreml/writable.gen.go rename to macos/coreml/writable_protocol.gen.go index b5ca1a4f..3b313673 100644 --- a/macos/coreml/writable.gen.go +++ b/macos/coreml/writable_protocol.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package coreml @@ -16,19 +16,22 @@ type PWritable interface { HasWriteToURLError() bool } -// A concrete type wrapper for the [PWritable] protocol. -type WritableWrapper struct { +// ensure impl type implements protocol interface +var _ PWritable = (*WritableObject)(nil) + +// A concrete type for the [PWritable] protocol. +type WritableObject struct { objc.Object } -func (w_ WritableWrapper) HasWriteToURLError() bool { +func (w_ WritableObject) HasWriteToURLError() bool { return w_.RespondsToSelector(objc.Sel("writeToURL:error:")) } // Exports a machine learning file to the file system. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/coreml/mlwritable/3197650-writetourl?language=objc -func (w_ WritableWrapper) WriteToURLError(url foundation.IURL, error foundation.IError) bool { +func (w_ WritableObject) WriteToURLError(url foundation.URL, error foundation.Error) bool { rv := objc.Call[bool](w_, objc.Sel("writeToURL:error:"), objc.Ptr(url), objc.Ptr(error)) return rv } diff --git a/macos/corespotlight/custom_attribute_key.gen.go b/macos/corespotlight/custom_attribute_key.gen.go index 6b94aaac..275de37e 100644 --- a/macos/corespotlight/custom_attribute_key.gen.go +++ b/macos/corespotlight/custom_attribute_key.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package corespotlight @@ -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,13 +52,23 @@ func NewCustomAttributeKeyWithKeyName(keyName string) CustomAttributeKey { return instance } -func (cc _CustomAttributeKeyClass) Alloc() CustomAttributeKey { - rv := objc.Call[CustomAttributeKey](cc, objc.Sel("alloc")) +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 } -func CustomAttributeKey_Alloc() CustomAttributeKey { - return CustomAttributeKeyClass.Alloc() +// 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 } func (cc _CustomAttributeKeyClass) New() CustomAttributeKey { @@ -76,6 +86,22 @@ 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 @@ -92,14 +118,6 @@ 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 @@ -107,11 +125,3 @@ 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/doc.gen.go b/macos/corespotlight/doc.gen.go index c0398217..7c6e1a09 100644 --- a/macos/corespotlight/doc.gen.go +++ b/macos/corespotlight/doc.gen.go @@ -1,8 +1,8 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. // Index your app so users can search the content from Spotlight and Safari. // -// [Full Documentation] +// [Apple Documentation] // -// [Full Documentation]: https://developer.apple.com/documentation/corespotlight?language=objc +// [Apple Documentation]: https://developer.apple.com/documentation/corespotlight?language=objc package corespotlight diff --git a/macos/corespotlight/enumtypes.gen.go b/macos/corespotlight/enumtypes.gen.go index 5adee58e..e85dbf2d 100644 --- a/macos/corespotlight/enumtypes.gen.go +++ b/macos/corespotlight/enumtypes.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package corespotlight diff --git a/macos/corespotlight/import_extension.gen.go b/macos/corespotlight/import_extension.gen.go index bef2500a..01523d6b 100644 --- a/macos/corespotlight/import_extension.gen.go +++ b/macos/corespotlight/import_extension.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package corespotlight @@ -40,10 +40,6 @@ func (ic _ImportExtensionClass) Alloc() ImportExtension { return rv } -func ImportExtension_Alloc() ImportExtension { - return ImportExtensionClass.Alloc() -} - func (ic _ImportExtensionClass) New() ImportExtension { rv := objc.Call[ImportExtension](ic, objc.Sel("new")) rv.Autorelease() diff --git a/macos/corespotlight/index_extension_request_handler.gen.go b/macos/corespotlight/index_extension_request_handler.gen.go index aefe73e0..5fc7eea3 100644 --- a/macos/corespotlight/index_extension_request_handler.gen.go +++ b/macos/corespotlight/index_extension_request_handler.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package corespotlight @@ -38,10 +38,6 @@ func (ic _IndexExtensionRequestHandlerClass) Alloc() IndexExtensionRequestHandle return rv } -func IndexExtensionRequestHandler_Alloc() IndexExtensionRequestHandler { - return IndexExtensionRequestHandlerClass.Alloc() -} - func (ic _IndexExtensionRequestHandlerClass) New() IndexExtensionRequestHandler { rv := objc.Call[IndexExtensionRequestHandler](ic, objc.Sel("new")) rv.Autorelease() diff --git a/macos/corespotlight/localized_string.gen.go b/macos/corespotlight/localized_string.gen.go index e0cc841f..273a80b3 100644 --- a/macos/corespotlight/localized_string.gen.go +++ b/macos/corespotlight/localized_string.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package corespotlight @@ -54,10 +54,6 @@ func (lc _LocalizedStringClass) Alloc() LocalizedString { return rv } -func LocalizedString_Alloc() LocalizedString { - return LocalizedStringClass.Alloc() -} - func (lc _LocalizedStringClass) New() LocalizedString { rv := objc.Call[LocalizedString](lc, objc.Sel("new")) rv.Autorelease() @@ -73,16 +69,40 @@ func (l_ LocalizedString) Init() LocalizedString { return rv } -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) +func (lc _LocalizedStringClass) StringWithContentsOfURLUsedEncodingError(url foundation.IURL, enc *foundation.StringEncoding, error foundation.IError) LocalizedString { + rv := objc.Call[LocalizedString](lc, objc.Sel("stringWithContentsOfURL:usedEncoding:error:"), objc.Ptr(url), enc, objc.Ptr(error)) return rv } -// [Full Topic] +// 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/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) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsstring/1497408-stringwithcontentsofurl?language=objc +func LocalizedString_StringWithContentsOfURLUsedEncodingError(url foundation.IURL, enc *foundation.StringEncoding, error foundation.IError) 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 foundation.IError) LocalizedString { + rv := objc.Call[LocalizedString](l_, objc.Sel("initWithContentsOfURL:usedEncoding:error:"), objc.Ptr(url), enc, objc.Ptr(error)) + 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]: https://developer.apple.com/documentation/foundation/nsstring/1414472-initwithcontentsofurl?language=objc +func NewLocalizedStringWithContentsOfURLUsedEncodingError(url foundation.IURL, enc *foundation.StringEncoding, error foundation.IError) LocalizedString { + instance := LocalizedStringClass.Alloc().InitWithContentsOfURLUsedEncodingError(url, enc, error) instance.Autorelease() return instance } @@ -99,30 +119,44 @@ func LocalizedString_StringWithString(string_ string) LocalizedString { return LocalizedStringClass.StringWithString(string_) } -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...)...) +func (l_ LocalizedString) InitWithString(aString string) LocalizedString { + rv := objc.Call[LocalizedString](l_, 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 NewLocalizedStringWithFormatLocale(format string, locale objc.IObject, args ...any) LocalizedString { - instance := LocalizedStringClass.Alloc().InitWithFormatLocale(format, locale, args...) +// [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) InitWithDataEncoding(data []byte, encoding foundation.StringEncoding) LocalizedString { - rv := objc.Call[LocalizedString](l_, objc.Sel("initWithData:encoding:"), data, encoding) +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 NSString object initialized by converting given data into UTF-16 code units using a given encoding. [Full Topic] +// 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/1416374-initwithdata?language=objc -func NewLocalizedStringWithDataEncoding(data []byte, encoding foundation.StringEncoding) LocalizedString { - instance := LocalizedStringClass.Alloc().InitWithDataEncoding(data, encoding) +// [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 } @@ -139,44 +173,96 @@ func LocalizedString_StringWithFormat(format string, args ...any) LocalizedStrin return LocalizedStringClass.StringWithFormat(format, args...) } -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 (lc _LocalizedStringClass) StringWithContentsOfFileEncodingError(path string, enc foundation.StringEncoding, error foundation.IError) LocalizedString { + rv := objc.Call[LocalizedString](lc, objc.Sel("stringWithContentsOfFile:encoding:error:"), path, enc, objc.Ptr(error)) return rv } -// [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/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/1497327-stringwithcontentsoffile?language=objc +func LocalizedString_StringWithContentsOfFileEncodingError(path string, enc foundation.StringEncoding, error foundation.IError) LocalizedString { + return LocalizedStringClass.StringWithContentsOfFileEncodingError(path, enc, error) +} + +func (l_ LocalizedString) InitWithContentsOfURLEncodingError(url foundation.IURL, enc foundation.StringEncoding, error foundation.IError) LocalizedString { + rv := objc.Call[LocalizedString](l_, objc.Sel("initWithContentsOfURL:encoding:error:"), objc.Ptr(url), enc, objc.Ptr(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 foundation.IError) LocalizedString { + instance := LocalizedStringClass.Alloc().InitWithContentsOfURLEncodingError(url, enc, error) instance.Autorelease() return instance } -func (l_ LocalizedString) InitWithString(aString string) LocalizedString { - rv := objc.Call[LocalizedString](l_, objc.Sel("initWithString:"), aString) +func (lc _LocalizedStringClass) StringWithContentsOfFileUsedEncodingError(path string, enc *foundation.StringEncoding, error foundation.IError) LocalizedString { + rv := objc.Call[LocalizedString](lc, objc.Sel("stringWithContentsOfFile:usedEncoding:error:"), path, enc, objc.Ptr(error)) return rv } -// Returns an NSString object initialized by copying the characters from another given string. [Full Topic] +// 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/1411293-initwithstring?language=objc -func NewLocalizedStringWithString(aString string) LocalizedString { - instance := LocalizedStringClass.Alloc().InitWithString(aString) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsstring/1497254-stringwithcontentsoffile?language=objc +func LocalizedString_StringWithContentsOfFileUsedEncodingError(path string, enc *foundation.StringEncoding, error foundation.IError) 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 +} + +// 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/1497317-initwithformat?language=objc +func NewLocalizedStringWithFormatLocale(format string, locale objc.IObject, args ...any) LocalizedString { + instance := LocalizedStringClass.Alloc().InitWithFormatLocale(format, locale, args...) instance.Autorelease() return instance } -func (lc _LocalizedStringClass) String() LocalizedString { - rv := objc.Call[LocalizedString](lc, objc.Sel("string")) +func (lc _LocalizedStringClass) StringWithContentsOfURLEncodingError(url foundation.IURL, enc foundation.StringEncoding, error foundation.IError) LocalizedString { + rv := objc.Call[LocalizedString](lc, objc.Sel("stringWithContentsOfURL:encoding:error:"), objc.Ptr(url), enc, objc.Ptr(error)) return rv } -// Returns an empty string. [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/1497312-string?language=objc -func LocalizedString_String() LocalizedString { - return LocalizedStringClass.String() +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsstring/1497360-stringwithcontentsofurl?language=objc +func LocalizedString_StringWithContentsOfURLEncodingError(url foundation.IURL, enc foundation.StringEncoding, error foundation.IError) 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 +} + +// 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/1416374-initwithdata?language=objc +func NewLocalizedStringWithDataEncoding(data []byte, encoding foundation.StringEncoding) LocalizedString { + instance := LocalizedStringClass.Alloc().InitWithDataEncoding(data, encoding) + instance.Autorelease() + return instance +} + +func (l_ LocalizedString) InitWithCharactersLength(characters *foundation.Unichar, length uint) LocalizedString { + rv := objc.Call[LocalizedString](l_, objc.Sel("initWithCharacters:length:"), characters, length) + 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/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) InitWithBytesLengthEncoding(bytes unsafe.Pointer, len uint, encoding foundation.StringEncoding) LocalizedString { @@ -193,6 +279,46 @@ func NewLocalizedStringWithBytesLengthEncoding(bytes unsafe.Pointer, len uint, e return instance } +func (l_ LocalizedString) InitWithUTF8String(nullTerminatedCString *uint8) LocalizedString { + rv := objc.Call[LocalizedString](l_, objc.Sel("initWithUTF8String:"), nullTerminatedCString) + return rv +} + +// 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/1412128-initwithutf8string?language=objc +func NewLocalizedStringWithUTF8String(nullTerminatedCString *uint8) LocalizedString { + instance := LocalizedStringClass.Alloc().InitWithUTF8String(nullTerminatedCString) + 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) + 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 LocalizedString_StringWithCStringEncoding(cString *uint8, enc foundation.StringEncoding) LocalizedString { + return LocalizedStringClass.StringWithCStringEncoding(cString, enc) +} + +func (l_ LocalizedString) InitWithContentsOfFileUsedEncodingError(path string, enc *foundation.StringEncoding, error foundation.IError) LocalizedString { + rv := objc.Call[LocalizedString](l_, objc.Sel("initWithContentsOfFile:usedEncoding:error:"), path, enc, objc.Ptr(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 NewLocalizedStringWithContentsOfFileUsedEncodingError(path string, enc *foundation.StringEncoding, error foundation.IError) LocalizedString { + instance := LocalizedStringClass.Alloc().InitWithContentsOfFileUsedEncodingError(path, enc, error) + instance.Autorelease() + return instance +} + func (lc _LocalizedStringClass) StringWithCharactersLength(characters *foundation.Unichar, length uint) LocalizedString { rv := objc.Call[LocalizedString](lc, objc.Sel("stringWithCharacters:length:"), characters, length) return rv @@ -205,44 +331,60 @@ func LocalizedString_StringWithCharactersLength(characters *foundation.Unichar, return LocalizedStringClass.StringWithCharactersLength(characters, length) } -func (l_ LocalizedString) InitWithCharactersLength(characters *foundation.Unichar, length uint) LocalizedString { - rv := objc.Call[LocalizedString](l_, objc.Sel("initWithCharacters:length:"), 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 } -// 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] // -// [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) +// [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) InitWithUTF8String(nullTerminatedCString *uint8) LocalizedString { - rv := objc.Call[LocalizedString](l_, objc.Sel("initWithUTF8String:"), nullTerminatedCString) +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 NSString object initialized by copying the characters from a given C array of UTF8-encoded bytes. [Full Topic] +// [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/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 (lc _LocalizedStringClass) LocalizedStringWithFormat(format string, args ...any) LocalizedString { - rv := objc.Call[LocalizedString](lc, objc.Sel("localizedStringWithFormat:"), append([]any{format}, args...)...) +func (l_ LocalizedString) InitWithContentsOfFileEncodingError(path string, enc foundation.StringEncoding, error foundation.IError) LocalizedString { + rv := objc.Call[LocalizedString](l_, objc.Sel("initWithContentsOfFile:encoding:error:"), path, enc, objc.Ptr(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 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/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/1412610-initwithcontentsoffile?language=objc +func NewLocalizedStringWithContentsOfFileEncodingError(path string, enc foundation.StringEncoding, error foundation.IError) LocalizedString { + instance := LocalizedStringClass.Alloc().InitWithContentsOfFileEncodingError(path, enc, error) + 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...)...) + 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 NewLocalizedStringWithFormat(format string, args ...any) LocalizedString { + instance := LocalizedStringClass.Alloc().InitWithFormat(format, args...) + instance.Autorelease() + return instance } func (lc _LocalizedStringClass) StringWithUTF8String(nullTerminatedCString *uint8) LocalizedString { @@ -257,28 +399,30 @@ func LocalizedString_StringWithUTF8String(nullTerminatedCString *uint8) Localize return LocalizedStringClass.StringWithUTF8String(nullTerminatedCString) } -func (lc _LocalizedStringClass) StringWithContentsOfURLEncodingError(url foundation.IURL, enc foundation.StringEncoding, error foundation.IError) LocalizedString { - rv := objc.Call[LocalizedString](lc, objc.Sel("stringWithContentsOfURL:encoding:error:"), objc.Ptr(url), enc, objc.Ptr(error)) +func (l_ LocalizedString) InitWithCStringEncoding(nullTerminatedCString *uint8, encoding foundation.StringEncoding) LocalizedString { + rv := objc.Call[LocalizedString](l_, objc.Sel("initWithCString:encoding:"), nullTerminatedCString, encoding) return rv } -// Returns a string created by reading data from a given URL interpreted using a given encoding. [Full Topic] +// Returns an NSString object initialized using the characters in a given C array, interpreted according to 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 foundation.IError) LocalizedString { - return LocalizedStringClass.StringWithContentsOfURLEncodingError(url, enc, error) +// [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 } -func (lc _LocalizedStringClass) StringWithContentsOfFileEncodingError(path string, enc foundation.StringEncoding, error foundation.IError) LocalizedString { - rv := objc.Call[LocalizedString](lc, objc.Sel("stringWithContentsOfFile:encoding:error:"), path, enc, objc.Ptr(error)) +func (lc _LocalizedStringClass) LocalizedStringWithFormat(format string, args ...any) LocalizedString { + rv := objc.Call[LocalizedString](lc, objc.Sel("localizedStringWithFormat:"), append([]any{format}, args...)...) return rv } -// Returns a string created by reading data from the file at a given path interpreted using 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/1497327-stringwithcontentsoffile?language=objc -func LocalizedString_StringWithContentsOfFileEncodingError(path string, enc foundation.StringEncoding, error foundation.IError) LocalizedString { - return LocalizedStringClass.StringWithContentsOfFileEncodingError(path, enc, error) +// [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...) } // 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 8587ce5f..d378f537 100644 --- a/macos/corespotlight/person.gen.go +++ b/macos/corespotlight/person.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package corespotlight @@ -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] @@ -57,10 +57,6 @@ func (pc _PersonClass) Alloc() Person { return rv } -func Person_Alloc() Person { - return PersonClass.Alloc() -} - func (pc _PersonClass) New() Person { rv := objc.Call[Person](pc, objc.Sel("new")) rv.Autorelease() @@ -76,6 +72,14 @@ 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 @@ -84,6 +88,14 @@ 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 @@ -98,19 +110,3 @@ 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/protocols.gen.m b/macos/corespotlight/protocols.gen.m index 5c3ba926..6540887e 100644 --- a/macos/corespotlight/protocols.gen.m +++ b/macos/corespotlight/protocols.gen.m @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. #import "CoreSpotlight/CoreSpotlight.h" diff --git a/macos/corespotlight/search_query.gen.go b/macos/corespotlight/search_query.gen.go index e8346c15..17686455 100644 --- a/macos/corespotlight/search_query.gen.go +++ b/macos/corespotlight/search_query.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package corespotlight @@ -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)) - FoundItemsHandler() func(items []SearchableItem) - SetFoundItemsHandler(value func(items []SearchableItem)) + FoundItemCount() uint ProtectionClasses() []foundation.FileProtectionType SetProtectionClasses(value []foundation.FileProtectionType) + IsCancelled() bool + FoundItemsHandler() func(items []SearchableItem) + SetFoundItemsHandler(value func(items []SearchableItem)) } // The criteria to apply when searching previously indexed app content. [Full Topic] @@ -63,10 +63,6 @@ func (sc _SearchQueryClass) Alloc() SearchQuery { return rv } -func SearchQuery_Alloc() SearchQuery { - return SearchQueryClass.Alloc() -} - func (sc _SearchQueryClass) New() SearchQuery { rv := objc.Call[SearchQuery](sc, objc.Sel("new")) rv.Autorelease() @@ -96,22 +92,6 @@ func (s_ SearchQuery) Cancel() { objc.Call[objc.Void](s_, objc.Sel("cancel")) } -// A Boolean value that indicates if the system has canceled the query. [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 -} - -// The number of items found so far. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/corespotlight/cssearchquery/1649300-founditemcount?language=objc -func (s_ SearchQuery) FoundItemCount() uint { - rv := objc.Call[uint](s_, objc.Sel("foundItemCount")) - 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 @@ -127,21 +107,14 @@ 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] +// The number of items found so far. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/corespotlight/cssearchquery/1649306-founditemshandler?language=objc -func (s_ SearchQuery) FoundItemsHandler() func(items []SearchableItem) { - rv := objc.Call[func(items []SearchableItem)](s_, objc.Sel("foundItemsHandler")) +// [Full Topic]: https://developer.apple.com/documentation/corespotlight/cssearchquery/1649300-founditemcount?language=objc +func (s_ SearchQuery) FoundItemCount() uint { + rv := objc.Call[uint](s_, objc.Sel("foundItemCount")) return rv } -// The block to execute when the query finds a new batch of matching items. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/corespotlight/cssearchquery/1649306-founditemshandler?language=objc -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 @@ -156,3 +129,26 @@ func (s_ SearchQuery) ProtectionClasses() []foundation.FileProtectionType { 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] +// +// [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 finds a new batch of matching items. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/corespotlight/cssearchquery/1649306-founditemshandler?language=objc +func (s_ SearchQuery) FoundItemsHandler() func(items []SearchableItem) { + rv := objc.Call[func(items []SearchableItem)](s_, objc.Sel("foundItemsHandler")) + return rv +} + +// The block to execute when the query finds a new batch of matching items. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/corespotlight/cssearchquery/1649306-founditemshandler?language=objc +func (s_ SearchQuery) SetFoundItemsHandler(value func(items []SearchableItem)) { + objc.Call[objc.Void](s_, objc.Sel("setFoundItemsHandler:"), value) +} diff --git a/macos/corespotlight/searchable_index.gen.go b/macos/corespotlight/searchable_index.gen.go index d9e331a0..59c299f1 100644 --- a/macos/corespotlight/searchable_index.gen.go +++ b/macos/corespotlight/searchable_index.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package corespotlight @@ -19,14 +19,14 @@ 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)) - IndexDelegate() SearchableIndexDelegateWrapper + 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,6 +56,20 @@ 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 @@ -75,10 +89,6 @@ func (sc _SearchableIndexClass) Alloc() SearchableIndex { return rv } -func SearchableIndex_Alloc() SearchableIndex { - return SearchableIndexClass.Alloc() -} - func (sc _SearchableIndexClass) New() SearchableIndex { rv := objc.Call[SearchableIndex](sc, objc.Sel("new")) rv.Autorelease() @@ -94,26 +104,25 @@ func (s_ SearchableIndex) Init() SearchableIndex { return rv } -// 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] +// Ends a batch of index updates and stores the specified state information. [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/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) } -// Gets the app’s most recently stored state information. [Full Topic] +// Removes from the index all searchable items associated with the specified domain. [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) +// [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) } // Removes from the index all items with the specified identifiers. [Full Topic] @@ -123,18 +132,26 @@ func (s_ SearchableIndex) DeleteSearchableItemsWithIdentifiersCompletionHandler( objc.Call[objc.Void](s_, objc.Sel("deleteSearchableItemsWithIdentifiers:completionHandler:"), identifiers, completionHandler) } -// Begins a batch of updates to an index. [Full Topic] +// Gets the app’s most recently stored state information. [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/1620346-fetchlastclientstatewithcompleti?language=objc +func (s_ SearchableIndex) FetchLastClientStateWithCompletionHandler(completionHandler func(clientState []byte, error foundation.Error)) { + objc.Call[objc.Void](s_, objc.Sel("fetchLastClientStateWithCompletionHandler:"), completionHandler) } -// Deletes all searchable items from the 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/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/1620350-isindexingavailable?language=objc +func (sc _SearchableIndexClass) IsIndexingAvailable() bool { + rv := objc.Call[bool](sc, objc.Sel("isIndexingAvailable")) + return rv +} + +// 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/1620350-isindexingavailable?language=objc +func SearchableIndex_IsIndexingAvailable() bool { + return SearchableIndexClass.IsIndexingAvailable() } // Adds or updates items in the index. [Full Topic] @@ -144,25 +161,18 @@ func (s_ SearchableIndex) IndexSearchableItemsCompletionHandler(items []ISearcha objc.Call[objc.Void](s_, objc.Sel("indexSearchableItems:completionHandler:"), items, completionHandler) } -// Ends a batch of index updates and stores the specified state information. [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) -} - -// Removes from the index all searchable items associated with the specified domain. [Full Topic] +// Deletes all searchable items from the index. [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/1620342-deleteallsearchableitemswithcomp?language=objc +func (s_ SearchableIndex) DeleteAllSearchableItemsWithCompletionHandler(completionHandler func(error foundation.Error)) { + objc.Call[objc.Void](s_, objc.Sel("deleteAllSearchableItemsWithCompletionHandler:"), completionHandler) } // The delegate object that can handle index-management tasks. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/corespotlight/cssearchableindex/1620354-indexdelegate?language=objc -func (s_ SearchableIndex) IndexDelegate() SearchableIndexDelegateWrapper { - rv := objc.Call[SearchableIndexDelegateWrapper](s_, objc.Sel("indexDelegate")) +func (s_ SearchableIndex) IndexDelegate() SearchableIndexDelegateObject { + rv := objc.Call[SearchableIndexDelegateObject](s_, objc.Sel("indexDelegate")) return rv } diff --git a/macos/corespotlight/searchable_index_delegate.gen.go b/macos/corespotlight/searchable_index_delegate.gen.go index b9cb0085..5265cddc 100644 --- a/macos/corespotlight/searchable_index_delegate.gen.go +++ b/macos/corespotlight/searchable_index_delegate.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package corespotlight @@ -12,68 +12,56 @@ import ( // [Full Topic]: https://developer.apple.com/documentation/corespotlight/cssearchableindexdelegate?language=objc type PSearchableIndexDelegate interface { // optional - SearchableIndexReindexAllSearchableItemsWithAcknowledgementHandler(searchableIndex SearchableIndex, acknowledgementHandler func()) - HasSearchableIndexReindexAllSearchableItemsWithAcknowledgementHandler() bool - - // optional - SearchableIndexDidThrottle(searchableIndex SearchableIndex) - HasSearchableIndexDidThrottle() bool + SearchableIndexReindexSearchableItemsWithIdentifiersAcknowledgementHandler(searchableIndex SearchableIndex, identifiers []string, acknowledgementHandler func()) + HasSearchableIndexReindexSearchableItemsWithIdentifiersAcknowledgementHandler() bool // optional SearchableIndexDidFinishThrottle(searchableIndex SearchableIndex) HasSearchableIndexDidFinishThrottle() bool + // optional + FileURLForSearchableIndexItemIdentifierTypeIdentifierInPlaceError(searchableIndex SearchableIndex, itemIdentifier string, typeIdentifier string, inPlace bool, outError foundation.Error) foundation.URL + HasFileURLForSearchableIndexItemIdentifierTypeIdentifierInPlaceError() bool + // optional DataForSearchableIndexItemIdentifierTypeIdentifierError(searchableIndex SearchableIndex, itemIdentifier string, typeIdentifier string, outError foundation.Error) []byte HasDataForSearchableIndexItemIdentifierTypeIdentifierError() bool // optional - FileURLForSearchableIndexItemIdentifierTypeIdentifierInPlaceError(searchableIndex SearchableIndex, itemIdentifier string, typeIdentifier string, inPlace bool, outError foundation.Error) foundation.IURL - HasFileURLForSearchableIndexItemIdentifierTypeIdentifierInPlaceError() bool + SearchableIndexReindexAllSearchableItemsWithAcknowledgementHandler(searchableIndex SearchableIndex, acknowledgementHandler func()) + HasSearchableIndexReindexAllSearchableItemsWithAcknowledgementHandler() bool + + // optional + SearchableIndexDidThrottle(searchableIndex SearchableIndex) + HasSearchableIndexDidThrottle() bool } // A delegate implementation builder for the [PSearchableIndexDelegate] protocol. type SearchableIndexDelegate struct { - _SearchableIndexReindexAllSearchableItemsWithAcknowledgementHandler func(searchableIndex SearchableIndex, acknowledgementHandler func()) - _SearchableIndexDidThrottle func(searchableIndex SearchableIndex) - _SearchableIndexDidFinishThrottle func(searchableIndex SearchableIndex) - _DataForSearchableIndexItemIdentifierTypeIdentifierError func(searchableIndex SearchableIndex, itemIdentifier string, typeIdentifier string, outError foundation.Error) []byte - _FileURLForSearchableIndexItemIdentifierTypeIdentifierInPlaceError func(searchableIndex SearchableIndex, itemIdentifier string, typeIdentifier string, inPlace bool, outError foundation.Error) foundation.IURL + _SearchableIndexReindexSearchableItemsWithIdentifiersAcknowledgementHandler func(searchableIndex SearchableIndex, identifiers []string, acknowledgementHandler func()) + _SearchableIndexDidFinishThrottle func(searchableIndex SearchableIndex) + _FileURLForSearchableIndexItemIdentifierTypeIdentifierInPlaceError func(searchableIndex SearchableIndex, itemIdentifier string, typeIdentifier string, inPlace bool, outError foundation.Error) foundation.URL + _DataForSearchableIndexItemIdentifierTypeIdentifierError func(searchableIndex SearchableIndex, itemIdentifier string, typeIdentifier string, outError foundation.Error) []byte + _SearchableIndexReindexAllSearchableItemsWithAcknowledgementHandler func(searchableIndex SearchableIndex, acknowledgementHandler func()) + _SearchableIndexDidThrottle func(searchableIndex SearchableIndex) } -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] +// Tells the delegate to reindex the searchable items associated with the specified identifiers. [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 +// [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 } -// Tells the delegate to reindex all searchable data and clear all local state information. [Full Topic] +// Tells the delegate to reindex the searchable items associated with the specified identifiers. [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/1620353-searchableindexdidthrottle?language=objc -func (di *SearchableIndexDelegate) SetSearchableIndexDidThrottle(f func(searchableIndex SearchableIndex)) { - di._SearchableIndexDidThrottle = f -} - -// Tells the delegate that indexing is being throttled. [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/1620338-searchableindex?language=objc +func (di *SearchableIndexDelegate) SearchableIndexReindexSearchableItemsWithIdentifiersAcknowledgementHandler(searchableIndex SearchableIndex, identifiers []string, acknowledgementHandler func()) { + di._SearchableIndexReindexSearchableItemsWithIdentifiersAcknowledgementHandler(searchableIndex, identifiers, acknowledgementHandler) } func (di *SearchableIndexDelegate) HasSearchableIndexDidFinishThrottle() bool { return di._SearchableIndexDidFinishThrottle != nil @@ -92,6 +80,23 @@ 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 foundation.Error) 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 foundation.Error) foundation.URL { + return di._FileURLForSearchableIndexItemIdentifierTypeIdentifierInPlaceError(searchableIndex, itemIdentifier, typeIdentifier, inPlace, outError) +} func (di *SearchableIndexDelegate) HasDataForSearchableIndexItemIdentifierTypeIdentifierError() bool { return di._DataForSearchableIndexItemIdentifierTypeIdentifierError != nil } @@ -109,82 +114,113 @@ func (di *SearchableIndexDelegate) SetDataForSearchableIndexItemIdentifierTypeId func (di *SearchableIndexDelegate) DataForSearchableIndexItemIdentifierTypeIdentifierError(searchableIndex SearchableIndex, itemIdentifier string, typeIdentifier string, outError foundation.Error) []byte { return di._DataForSearchableIndexItemIdentifierTypeIdentifierError(searchableIndex, itemIdentifier, typeIdentifier, outError) } -func (di *SearchableIndexDelegate) HasFileURLForSearchableIndexItemIdentifierTypeIdentifierInPlaceError() bool { - return di._FileURLForSearchableIndexItemIdentifierTypeIdentifierInPlaceError != nil +func (di *SearchableIndexDelegate) HasSearchableIndexReindexAllSearchableItemsWithAcknowledgementHandler() bool { + return di._SearchableIndexReindexAllSearchableItemsWithAcknowledgementHandler != nil } -// [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/2867898-fileurlforsearchableindex?language=objc -func (di *SearchableIndexDelegate) SetFileURLForSearchableIndexItemIdentifierTypeIdentifierInPlaceError(f func(searchableIndex SearchableIndex, itemIdentifier string, typeIdentifier string, inPlace bool, outError foundation.Error) foundation.IURL) { - di._FileURLForSearchableIndexItemIdentifierTypeIdentifierInPlaceError = f +// [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 } -// [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/2867898-fileurlforsearchableindex?language=objc -func (di *SearchableIndexDelegate) FileURLForSearchableIndexItemIdentifierTypeIdentifierInPlaceError(searchableIndex SearchableIndex, itemIdentifier string, typeIdentifier string, inPlace bool, outError foundation.Error) foundation.IURL { - return di._FileURLForSearchableIndexItemIdentifierTypeIdentifierInPlaceError(searchableIndex, itemIdentifier, typeIdentifier, inPlace, outError) +// [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) } - -// A concrete type wrapper for the [PSearchableIndexDelegate] protocol. -type SearchableIndexDelegateWrapper struct { - objc.Object +func (di *SearchableIndexDelegate) HasSearchableIndexDidThrottle() bool { + return di._SearchableIndexDidThrottle != nil } -func (s_ SearchableIndexDelegateWrapper) HasSearchableIndexReindexAllSearchableItemsWithAcknowledgementHandler() bool { - return s_.RespondsToSelector(objc.Sel("searchableIndex:reindexAllSearchableItemsWithAcknowledgementHandler:")) +// Tells the delegate that indexing is being throttled. [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 } -// Tells the delegate to reindex all searchable data and clear all local state information. [Full Topic] +// Tells the delegate that indexing is being throttled. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/corespotlight/cssearchableindexdelegate/1620348-searchableindex?language=objc -func (s_ SearchableIndexDelegateWrapper) SearchableIndexReindexAllSearchableItemsWithAcknowledgementHandler(searchableIndex ISearchableIndex, acknowledgementHandler func()) { - objc.Call[objc.Void](s_, objc.Sel("searchableIndex:reindexAllSearchableItemsWithAcknowledgementHandler:"), objc.Ptr(searchableIndex), acknowledgementHandler) +// [Full Topic]: https://developer.apple.com/documentation/corespotlight/cssearchableindexdelegate/1620353-searchableindexdidthrottle?language=objc +func (di *SearchableIndexDelegate) SearchableIndexDidThrottle(searchableIndex SearchableIndex) { + di._SearchableIndexDidThrottle(searchableIndex) } -func (s_ SearchableIndexDelegateWrapper) HasSearchableIndexDidThrottle() bool { - return s_.RespondsToSelector(objc.Sel("searchableIndexDidThrottle:")) +// ensure impl type implements protocol interface +var _ PSearchableIndexDelegate = (*SearchableIndexDelegateObject)(nil) + +// A concrete type for the [PSearchableIndexDelegate] protocol. +type SearchableIndexDelegateObject struct { + objc.Object } -// Tells the delegate that indexing is being throttled. [Full Topic] +func (s_ SearchableIndexDelegateObject) HasSearchableIndexReindexSearchableItemsWithIdentifiersAcknowledgementHandler() bool { + return s_.RespondsToSelector(objc.Sel("searchableIndex:reindexSearchableItemsWithIdentifiers:acknowledgementHandler:")) +} + +// Tells the delegate to reindex the searchable items associated with the specified identifiers. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/corespotlight/cssearchableindexdelegate/1620353-searchableindexdidthrottle?language=objc -func (s_ SearchableIndexDelegateWrapper) SearchableIndexDidThrottle(searchableIndex ISearchableIndex) { - objc.Call[objc.Void](s_, objc.Sel("searchableIndexDidThrottle:"), objc.Ptr(searchableIndex)) +// [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:"), objc.Ptr(searchableIndex), identifiers, acknowledgementHandler) } -func (s_ SearchableIndexDelegateWrapper) HasSearchableIndexDidFinishThrottle() bool { +func (s_ SearchableIndexDelegateObject) HasSearchableIndexDidFinishThrottle() bool { return s_.RespondsToSelector(objc.Sel("searchableIndexDidFinishThrottle:")) } // Tells the delegate that the index throttling has finished. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/corespotlight/cssearchableindexdelegate/1620343-searchableindexdidfinishthrottle?language=objc -func (s_ SearchableIndexDelegateWrapper) SearchableIndexDidFinishThrottle(searchableIndex ISearchableIndex) { +func (s_ SearchableIndexDelegateObject) SearchableIndexDidFinishThrottle(searchableIndex SearchableIndex) { objc.Call[objc.Void](s_, objc.Sel("searchableIndexDidFinishThrottle:"), objc.Ptr(searchableIndex)) } -func (s_ SearchableIndexDelegateWrapper) HasDataForSearchableIndexItemIdentifierTypeIdentifierError() bool { +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 foundation.Error) foundation.URL { + rv := objc.Call[foundation.URL](s_, objc.Sel("fileURLForSearchableIndex:itemIdentifier:typeIdentifier:inPlace:error:"), objc.Ptr(searchableIndex), itemIdentifier, typeIdentifier, inPlace, objc.Ptr(outError)) + return rv +} + +func (s_ SearchableIndexDelegateObject) HasDataForSearchableIndexItemIdentifierTypeIdentifierError() bool { return s_.RespondsToSelector(objc.Sel("dataForSearchableIndex:itemIdentifier:typeIdentifier:error:")) } // [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/corespotlight/cssearchableindexdelegate/2867899-dataforsearchableindex?language=objc -func (s_ SearchableIndexDelegateWrapper) DataForSearchableIndexItemIdentifierTypeIdentifierError(searchableIndex ISearchableIndex, itemIdentifier string, typeIdentifier string, outError foundation.IError) []byte { +func (s_ SearchableIndexDelegateObject) DataForSearchableIndexItemIdentifierTypeIdentifierError(searchableIndex SearchableIndex, itemIdentifier string, typeIdentifier string, outError foundation.Error) []byte { rv := objc.Call[[]byte](s_, objc.Sel("dataForSearchableIndex:itemIdentifier:typeIdentifier:error:"), objc.Ptr(searchableIndex), itemIdentifier, typeIdentifier, objc.Ptr(outError)) return rv } -func (s_ SearchableIndexDelegateWrapper) HasFileURLForSearchableIndexItemIdentifierTypeIdentifierInPlaceError() bool { - return s_.RespondsToSelector(objc.Sel("fileURLForSearchableIndex:itemIdentifier:typeIdentifier:inPlace:error:")) +func (s_ SearchableIndexDelegateObject) HasSearchableIndexReindexAllSearchableItemsWithAcknowledgementHandler() bool { + return s_.RespondsToSelector(objc.Sel("searchableIndex:reindexAllSearchableItemsWithAcknowledgementHandler:")) } -// [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/2867898-fileurlforsearchableindex?language=objc -func (s_ SearchableIndexDelegateWrapper) FileURLForSearchableIndexItemIdentifierTypeIdentifierInPlaceError(searchableIndex ISearchableIndex, itemIdentifier string, typeIdentifier string, inPlace bool, outError foundation.IError) foundation.URL { - rv := objc.Call[foundation.URL](s_, objc.Sel("fileURLForSearchableIndex:itemIdentifier:typeIdentifier:inPlace:error:"), objc.Ptr(searchableIndex), itemIdentifier, typeIdentifier, inPlace, objc.Ptr(outError)) - return rv +// [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:"), objc.Ptr(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:"), objc.Ptr(searchableIndex)) } diff --git a/macos/corespotlight/searchable_item.gen.go b/macos/corespotlight/searchable_item.gen.go index 4b015cbb..086ca020 100644 --- a/macos/corespotlight/searchable_item.gen.go +++ b/macos/corespotlight/searchable_item.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package corespotlight @@ -19,14 +19,14 @@ type _SearchableItemClass struct { // An interface definition for the [SearchableItem] class. type ISearchableItem interface { objc.IObject - AttributeSet() SearchableItemAttributeSet - SetAttributeSet(value ISearchableItemAttributeSet) + DomainIdentifier() string + SetDomainIdentifier(value string) UniqueIdentifier() string SetUniqueIdentifier(value string) ExpirationDate() foundation.Date SetExpirationDate(value foundation.IDate) - DomainIdentifier() string - SetDomainIdentifier(value string) + AttributeSet() SearchableItemAttributeSet + SetAttributeSet(value ISearchableItemAttributeSet) } // An item that can be indexed and made available to users when they search on their devices. [Full Topic] @@ -61,10 +61,6 @@ func (sc _SearchableItemClass) Alloc() SearchableItem { return rv } -func SearchableItem_Alloc() SearchableItem { - return SearchableItemClass.Alloc() -} - func (sc _SearchableItemClass) New() SearchableItem { rv := objc.Call[SearchableItem](sc, objc.Sel("new")) rv.Autorelease() @@ -80,19 +76,19 @@ func (s_ SearchableItem) Init() SearchableItem { 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) 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:"), objc.Ptr(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) } // The value that uniquely identifies the searchable item within your app. [Full Topic] @@ -125,17 +121,17 @@ func (s_ SearchableItem) SetExpirationDate(value foundation.IDate) { objc.Call[objc.Void](s_, objc.Sel("setExpirationDate:"), objc.Ptr(value)) } -// 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:"), objc.Ptr(value)) } diff --git a/macos/corespotlight/searchable_item_attribute_set.gen.go b/macos/corespotlight/searchable_item_attribute_set.gen.go index 02843313..8cb53332 100644 --- a/macos/corespotlight/searchable_item_attribute_set.gen.go +++ b/macos/corespotlight/searchable_item_attribute_set.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package corespotlight @@ -20,378 +20,378 @@ type _SearchableItemAttributeSetClass struct { // An interface definition for the [SearchableItemAttributeSet] class. type ISearchableItemAttributeSet interface { objc.IObject - ValueForCustomKey(key ICustomAttributeKey) objc.Object SetValueForCustomKey(value objc.IObject, key ICustomAttributeKey) - GPSMapDatum() string - SetGPSMapDatum(value string) - 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) + ValueForCustomKey(key ICustomAttributeKey) objc.Object + AddedDate() foundation.Date + SetAddedDate(value foundation.IDate) + IsLikelyJunk() foundation.Number + SetLikelyJunk(value foundation.INumber) Version() string SetVersion(value string) - OriginalFormat() string - SetOriginalFormat(value string) - PageHeight() foundation.Number - SetPageHeight(value foundation.INumber) + 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) + GPSMapDatum() string + SetGPSMapDatum(value string) + AllDay() foundation.Number + SetAllDay(value foundation.INumber) MusicalInstrumentCategory() string SetMusicalInstrumentCategory(value string) - GPSDifferental() foundation.Number - SetGPSDifferental(value foundation.INumber) - FontNames() []string - SetFontNames(value []string) - ThumbnailURL() foundation.URL - SetThumbnailURL(value foundation.IURL) - Languages() []string - SetLanguages(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) ProfileName() string SetProfileName(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) - HasAlphaChannel() foundation.Number - SetHasAlphaChannel(value foundation.INumber) - ResolutionWidthDPI() foundation.Number - SetResolutionWidthDPI(value foundation.INumber) - Aperture() foundation.Number - SetAperture(value foundation.INumber) - FullyFormattedAddress() string - SetFullyFormattedAddress(value string) - ContentURL() foundation.URL - SetContentURL(value foundation.IURL) + Rights() string + SetRights(value string) AudioEncodingApplication() string SetAudioEncodingApplication(value string) + ContentSources() []string + SetContentSources(value []string) + PixelHeight() foundation.Number + SetPixelHeight(value foundation.INumber) + Country() string + SetCountry(value string) + Keywords() []string + SetKeywords(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) - 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) + 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) + 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) - 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) + 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) + AudioChannelCount() foundation.Number + SetAudioChannelCount(value foundation.INumber) + IsRedEyeOn() foundation.Number + SetRedEyeOn(value foundation.INumber) + Composer() string + SetComposer(value string) 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) - AcquisitionModel() string - SetAcquisitionModel(value string) - MailboxIdentifiers() []string - SetMailboxIdentifiers(value []string) + FontNames() []string + SetFontNames(value []string) ISOSpeed() foundation.Number SetISOSpeed(value foundation.INumber) - MediaTypes() []string - SetMediaTypes(value []string) - ContentCreationDate() foundation.Date - SetContentCreationDate(value foundation.IDate) - PostalCode() string - SetPostalCode(value string) - TimeSignature() string - SetTimeSignature(value string) - 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) + 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) - ContainerDisplayName() string - SetContainerDisplayName(value string) + 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) + 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) ProviderDataTypeIdentifiers() []string SetProviderDataTypeIdentifiers(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) + Organizations() []string + SetOrganizations(value []string) Longitude() foundation.Number SetLongitude(value foundation.INumber) - 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) + 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) Lyricist() string SetLyricist(value string) - GPSProcessingMethod() string - SetGPSProcessingMethod(value string) - ExposureTime() foundation.Number - SetExposureTime(value foundation.INumber) - URL() foundation.URL - SetURL(value foundation.IURL) - RatingDescription() string - SetRatingDescription(value string) - Kind() string - SetKind(value string) - ContentType() string - SetContentType(value string) - DueDate() foundation.Date - SetDueDate(value foundation.IDate) + 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) - 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) - 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) + 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) - IsUserCreated() foundation.Number - SetUserCreated(value foundation.INumber) - Title() string - SetTitle(value string) + 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) + URL() foundation.URL + SetURL(value foundation.IURL) + AuthorEmailAddresses() []string + SetAuthorEmailAddresses(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) + 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) + 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) + PrimaryRecipients() []Person + SetPrimaryRecipients(value []IPerson) + FullyFormattedAddress() string + SetFullyFormattedAddress(value string) + 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) ResolutionHeightDPI() foundation.Number SetResolutionHeightDPI(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) + ContainerTitle() string + SetContainerTitle(value string) + HasAlphaChannel() foundation.Number + SetHasAlphaChannel(value foundation.INumber) + RatingDescription() string + SetRatingDescription(value string) + MaxAperture() foundation.Number + SetMaxAperture(value foundation.INumber) MeteringMode() string SetMeteringMode(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) + 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) 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) - 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) + IsFocalLength35mm() foundation.Number + SetFocalLength35mm(value foundation.INumber) + Copyright() string + SetCopyright(value string) + ProviderInPlaceFileTypeIdentifiers() []string + SetProviderInPlaceFileTypeIdentifiers(value []string) } // The set of properties to display for a searchable item. [Full Topic] @@ -426,10 +426,6 @@ func (sc _SearchableItemAttributeSetClass) Alloc() SearchableItemAttributeSet { return rv } -func SearchableItemAttributeSet_Alloc() SearchableItemAttributeSet { - return SearchableItemAttributeSetClass.Alloc() -} - func (sc _SearchableItemAttributeSetClass) New() SearchableItemAttributeSet { rv := objc.Call[SearchableItemAttributeSet](sc, objc.Sel("new")) rv.Autorelease() @@ -445,14 +441,6 @@ 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:"), objc.Ptr(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 @@ -460,529 +448,492 @@ func (s_ SearchableItemAttributeSet) SetValueForCustomKey(value objc.IObject, ke objc.Call[objc.Void](s_, objc.Sel("setValue:forCustomKey:"), value, objc.Ptr(key)) } -// The geodetic data that the GPS receiver 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")) - return rv -} - -// The geodetic data that the GPS receiver 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) -} - -// 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 -} - -// 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) SetAuthorAddresses(value []string) { - objc.Call[objc.Void](s_, objc.Sel("setAuthorAddresses:"), value) -} - -// The complete path to the item. [Full Topic] +// Returns the value associated with the specified custom attribute key. [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/1616407-valueforcustomkey?language=objc +func (s_ SearchableItemAttributeSet) ValueForCustomKey(key ICustomAttributeKey) objc.Object { + rv := objc.Call[objc.Object](s_, objc.Sel("valueForCustomKey:"), objc.Ptr(key)) return rv } -// The complete path to the item. [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) -} - -// The musical key of the song or audio composition that the file contains, such as C, Dm, or F#m. [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/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/1616029-addeddate?language=objc +func (s_ SearchableItemAttributeSet) AddedDate() foundation.Date { + rv := objc.Call[foundation.Date](s_, objc.Sel("addedDate")) return rv } -// The musical key of the song or audio composition that the file contains, such as C, Dm, or F#m. [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/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/1616029-addeddate?language=objc +func (s_ SearchableItemAttributeSet) SetAddedDate(value foundation.IDate) { + objc.Call[objc.Void](s_, objc.Sel("setAddedDate:"), objc.Ptr(value)) } -// A list of people, organizations, services, or other entities responsible for making the media available. [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/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/1621646-likelyjunk?language=objc +func (s_ SearchableItemAttributeSet) IsLikelyJunk() foundation.Number { + rv := objc.Call[foundation.Number](s_, objc.Sel("isLikelyJunk")) return rv } -// A list of people, organizations, services, or other entities responsible for making the media available. [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/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/1621646-likelyjunk?language=objc +func (s_ SearchableItemAttributeSet) SetLikelyJunk(value foundation.INumber) { + objc.Call[objc.Void](s_, objc.Sel("setLikelyJunk:"), objc.Ptr(value)) } -// A value that indicates whether the MIDI sequence the file contains is set up for use with a general MIDI device. [Full Topic] +// A version string associated with the file. [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/1616093-version?language=objc +func (s_ SearchableItemAttributeSet) Version() string { + rv := objc.Call[string](s_, objc.Sel("version")) 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] +// A version string associated with the file. [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:"), objc.Ptr(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) } -// A publishable string that provides a synopsis of the contents of the item. [Full Topic] +// The producer of the content. [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/1616092-producer?language=objc +func (s_ SearchableItemAttributeSet) Producer() string { + rv := objc.Call[string](s_, objc.Sel("producer")) return rv } -// A publishable string that provides a synopsis of the contents of the item. [Full Topic] +// The producer of the content. [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/1616092-producer?language=objc +func (s_ SearchableItemAttributeSet) SetProducer(value string) { + objc.Call[objc.Void](s_, objc.Sel("setProducer:"), value) } -// The order of the item within the container. [Full Topic] +// The subject of the document. [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/1621598-subject?language=objc +func (s_ SearchableItemAttributeSet) Subject() string { + rv := objc.Call[string](s_, objc.Sel("subject")) return rv } -// The order of the item within the container. [Full Topic] +// The subject of the document. [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:"), objc.Ptr(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 latitude of the item, in degrees north of the equator, expressed using the WGS84 datum. [Full Topic] +// The total bit rate of the media, combining audio and video. [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/1616058-totalbitrate?language=objc +func (s_ SearchableItemAttributeSet) TotalBitRate() foundation.Number { + rv := objc.Call[foundation.Number](s_, objc.Sel("totalBitRate")) return rv } -// The latitude of the item, in degrees north of the equator, expressed using the WGS84 datum. [Full Topic] +// The total bit rate of the media, combining audio and video. [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:"), objc.Ptr(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:"), objc.Ptr(value)) } -// The width of the item, such as image or video frame width, in pixels. [Full Topic] +// Information about the GPS area. [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/1620581-gpsareainformation?language=objc +func (s_ SearchableItemAttributeSet) GPSAreaInformation() string { + rv := objc.Call[string](s_, objc.Sel("GPSAreaInformation")) return rv } -// The width of the item, such as image or video frame width, in pixels. [Full Topic] +// Information about the GPS area. [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:"), objc.Ptr(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) } -// An array of important dates associated with the item. [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/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/1616035-downloadeddate?language=objc +func (s_ SearchableItemAttributeSet) DownloadedDate() foundation.Date { + rv := objc.Call[foundation.Date](s_, objc.Sel("downloadedDate")) return rv } -// An array of important dates associated with the item. [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/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/1616035-downloadeddate?language=objc +func (s_ SearchableItemAttributeSet) SetDownloadedDate(value foundation.IDate) { + objc.Call[objc.Void](s_, objc.Sel("setDownloadedDate:"), objc.Ptr(value)) } -// An array of phone numbers associated with the message. [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/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/1621571-audiences?language=objc +func (s_ SearchableItemAttributeSet) Audiences() []string { + rv := objc.Call[[]string](s_, objc.Sel("audiences")) return rv } -// An array of phone numbers associated with the message. [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/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/1621571-audiences?language=objc +func (s_ SearchableItemAttributeSet) SetAudiences(value []string) { + objc.Call[objc.Void](s_, objc.Sel("setAudiences:"), value) } -// An array of CSPerson objects representing the content of the Bcc: field in an email message. [Full Topic] +// The measurement precision mode in use by the GPS receiver. [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/1620573-gpsmeasuremode?language=objc +func (s_ SearchableItemAttributeSet) GPSMeasureMode() string { + rv := objc.Call[string](s_, objc.Sel("GPSMeasureMode")) return rv } -// An array of CSPerson objects representing the content of the Bcc: field in an email message. [Full Topic] +// The measurement precision mode in use by the GPS receiver. [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/1620573-gpsmeasuremode?language=objc +func (s_ SearchableItemAttributeSet) SetGPSMeasureMode(value string) { + objc.Call[objc.Void](s_, objc.Sel("setGPSMeasureMode:"), value) } -// The name of the app that created the content. [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/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/1621543-exifgpsversion?language=objc +func (s_ SearchableItemAttributeSet) EXIFGPSVersion() string { + rv := objc.Call[string](s_, objc.Sel("EXIFGPSVersion")) return rv } -// The name of the app that created the content. [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/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/1621543-exifgpsversion?language=objc +func (s_ SearchableItemAttributeSet) SetEXIFGPSVersion(value string) { + objc.Call[objc.Void](s_, objc.Sel("setEXIFGPSVersion:"), value) } -// A version string associated with the file. [Full Topic] +// A user-supplied play count for the media. [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/1616041-playcount?language=objc +func (s_ SearchableItemAttributeSet) PlayCount() foundation.Number { + rv := objc.Call[foundation.Number](s_, objc.Sel("playCount")) return rv } -// A version string associated with the file. [Full Topic] +// A user-supplied play count for the media. [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/1616041-playcount?language=objc +func (s_ SearchableItemAttributeSet) SetPlayCount(value foundation.INumber) { + objc.Call[objc.Void](s_, objc.Sel("setPlayCount:"), objc.Ptr(value)) } -// The original format of the media. [Full Topic] +// The user-supplied rating of the media. [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/1616011-rating?language=objc +func (s_ SearchableItemAttributeSet) Rating() foundation.Number { + rv := objc.Call[foundation.Number](s_, objc.Sel("rating")) return rv } -// The original format of the media. [Full Topic] +// The user-supplied rating of the media. [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/1616011-rating?language=objc +func (s_ SearchableItemAttributeSet) SetRating(value foundation.INumber) { + objc.Call[objc.Void](s_, objc.Sel("setRating:"), objc.Ptr(value)) } -// The height of the document page, in points (72 points per inch). [Full Topic] +// An array of names representing the recipients of this message. [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/1621667-recipientnames?language=objc +func (s_ SearchableItemAttributeSet) RecipientNames() []string { + rv := objc.Call[[]string](s_, objc.Sel("recipientNames")) return rv } -// The height of the document page, in points (72 points per inch). [Full Topic] +// An array of names representing the recipients of this message. [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:"), objc.Ptr(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) } -// The category of the instrument associated with the audio file. [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/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/1621521-exposuretimestring?language=objc +func (s_ SearchableItemAttributeSet) ExposureTimeString() string { + rv := objc.Call[string](s_, objc.Sel("exposureTimeString")) return rv } -// The category of the instrument associated with the audio file. [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/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/1621521-exposuretimestring?language=objc +func (s_ SearchableItemAttributeSet) SetExposureTimeString(value string) { + objc.Call[objc.Void](s_, objc.Sel("setExposureTimeString:"), value) } -// The differential correction applied to the GPS receiver. [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/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/1621527-pixelwidth?language=objc +func (s_ SearchableItemAttributeSet) PixelWidth() foundation.Number { + rv := objc.Call[foundation.Number](s_, objc.Sel("pixelWidth")) return rv } -// The differential correction applied to the GPS receiver. [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/1620592-gpsdifferental?language=objc -func (s_ SearchableItemAttributeSet) SetGPSDifferental(value foundation.INumber) { - objc.Call[objc.Void](s_, objc.Sel("setGPSDifferental:"), objc.Ptr(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:"), objc.Ptr(value)) } -// An array of font names the document uses. [Full Topic] +// The geodetic data that the GPS receiver uses. [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/1620583-gpsmapdatum?language=objc +func (s_ SearchableItemAttributeSet) GPSMapDatum() string { + rv := objc.Call[string](s_, objc.Sel("GPSMapDatum")) return rv } -// An array of font names the document uses. [Full Topic] +// The geodetic data that the GPS receiver uses. [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/1620583-gpsmapdatum?language=objc +func (s_ SearchableItemAttributeSet) SetGPSMapDatum(value string) { + objc.Call[objc.Void](s_, objc.Sel("setGPSMapDatum:"), value) } -// The local file URL of the thumbnail image for the item. [Full Topic] +// A value that indicates if the event covers an entire day. [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/1616636-allday?language=objc +func (s_ SearchableItemAttributeSet) AllDay() foundation.Number { + rv := objc.Call[foundation.Number](s_, objc.Sel("allDay")) return rv } -// The local file URL of the thumbnail image for the item. [Full Topic] +// A value that indicates if the event covers an entire day. [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:"), objc.Ptr(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:"), objc.Ptr(value)) } -// A list of the included languages for the intellectual content of the media. [Full Topic] +// The category of the instrument associated with the audio file. [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/1616099-musicalinstrumentcategory?language=objc +func (s_ SearchableItemAttributeSet) MusicalInstrumentCategory() string { + rv := objc.Call[string](s_, objc.Sel("musicalInstrumentCategory")) return rv } -// A list of the included languages for the intellectual content of the media. [Full Topic] +// The category of the instrument associated with the audio file. [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/1616099-musicalinstrumentcategory?language=objc +func (s_ SearchableItemAttributeSet) SetMusicalInstrumentCategory(value string) { + objc.Call[objc.Void](s_, objc.Sel("setMusicalInstrumentCategory:"), value) } -// The name of the color profile the camera used for the image. [Full Topic] +// Image data that represents the thumbnail of the item. [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/1621582-thumbnaildata?language=objc +func (s_ SearchableItemAttributeSet) ThumbnailData() []byte { + rv := objc.Call[[]byte](s_, objc.Sel("thumbnailData")) return rv } -// The name of the color profile the camera used for the image. [Full Topic] +// Image data that represents the thumbnail of the item. [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/1621582-thumbnaildata?language=objc +func (s_ SearchableItemAttributeSet) SetThumbnailData(value []byte) { + objc.Call[objc.Void](s_, objc.Sel("setThumbnailData:"), value) } -// A class of entity for which the item is intended or useful. [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/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/1621653-supportsphonecall?language=objc +func (s_ SearchableItemAttributeSet) SupportsPhoneCall() foundation.Number { + rv := objc.Call[foundation.Number](s_, objc.Sel("supportsPhoneCall")) return rv } -// A class of entity for which the item is intended or useful. [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/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/1621653-supportsphonecall?language=objc +func (s_ SearchableItemAttributeSet) SetSupportsPhoneCall(value foundation.INumber) { + objc.Call[objc.Void](s_, objc.Sel("setSupportsPhoneCall:"), objc.Ptr(value)) } -// The GPS dilution of precision value. [Full Topic] +// The owner of the camera that captured the image. [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/1621522-cameraowner?language=objc +func (s_ SearchableItemAttributeSet) CameraOwner() string { + rv := objc.Call[string](s_, objc.Sel("cameraOwner")) return rv } -// The GPS dilution of precision value. [Full Topic] +// The owner of the camera that captured the image. [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:"), objc.Ptr(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) } -// The textual content of the message. [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/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/1649290-subthoroughfare?language=objc +func (s_ SearchableItemAttributeSet) SubThoroughfare() string { + rv := objc.Call[string](s_, objc.Sel("subThoroughfare")) return rv } -// The textual content of the message. [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/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/1649290-subthoroughfare?language=objc +func (s_ SearchableItemAttributeSet) SetSubThoroughfare(value string) { + objc.Call[objc.Void](s_, objc.Sel("setSubThoroughfare:"), value) } -// The date on which the item was completed. [Full Topic] +// The original source of the media. [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/1616022-originalsource?language=objc +func (s_ SearchableItemAttributeSet) OriginalSource() string { + rv := objc.Call[string](s_, objc.Sel("originalSource")) return rv } -// The date on which the item was completed. [Full Topic] +// The original source of the media. [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:"), objc.Ptr(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) } -// The theme of the document. [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/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/1621664-additionalrecipients?language=objc +func (s_ SearchableItemAttributeSet) AdditionalRecipients() []Person { + rv := objc.Call[[]Person](s_, objc.Sel("additionalRecipients")) return rv } -// The theme of the document. [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/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/1621664-additionalrecipients?language=objc +func (s_ SearchableItemAttributeSet) SetAdditionalRecipients(value []IPerson) { + objc.Call[objc.Void](s_, objc.Sel("setAdditionalRecipients:"), value) } -// The height of the item, such as image or video frame height, in pixels. [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/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/1621531-profilename?language=objc +func (s_ SearchableItemAttributeSet) ProfileName() string { + rv := objc.Call[string](s_, objc.Sel("profileName")) return rv } -// The height of the item, such as image or video frame height, in pixels. [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/1621535-pixelheight?language=objc -func (s_ SearchableItemAttributeSet) SetPixelHeight(value foundation.INumber) { - objc.Call[objc.Void](s_, objc.Sel("setPixelHeight:"), objc.Ptr(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) } -// Indicates if the image file has an alpha channel. [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/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/1616076-rights?language=objc +func (s_ SearchableItemAttributeSet) Rights() string { + rv := objc.Call[string](s_, objc.Sel("rights")) return rv } -// Indicates if the image file has an alpha channel. [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/1621518-hasalphachannel?language=objc -func (s_ SearchableItemAttributeSet) SetHasAlphaChannel(value foundation.INumber) { - objc.Call[objc.Void](s_, objc.Sel("setHasAlphaChannel:"), objc.Ptr(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 resolution width of the image, in DPI. [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/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/1616039-audioencodingapplication?language=objc +func (s_ SearchableItemAttributeSet) AudioEncodingApplication() string { + rv := objc.Call[string](s_, objc.Sel("audioEncodingApplication")) return rv } -// The resolution width of the image, in DPI. [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/1621544-resolutionwidthdpi?language=objc -func (s_ SearchableItemAttributeSet) SetResolutionWidthDPI(value foundation.INumber) { - objc.Call[objc.Void](s_, objc.Sel("setResolutionWidthDPI:"), objc.Ptr(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 size of the lens aperture at the time the camera captured the image, as a log-scale APEX value. [Full Topic] +// An array of sources from which the media was obtained. [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/1616024-contentsources?language=objc +func (s_ SearchableItemAttributeSet) ContentSources() []string { + rv := objc.Call[[]string](s_, objc.Sel("contentSources")) return rv } -// The size of the lens aperture at the time the camera captured the image, as a log-scale APEX value. [Full Topic] +// An array of sources from which the media was obtained. [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:"), objc.Ptr(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) } -// The fully formatted address of the item, received from MapKit. [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/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/1621535-pixelheight?language=objc +func (s_ SearchableItemAttributeSet) PixelHeight() foundation.Number { + rv := objc.Call[foundation.Number](s_, objc.Sel("pixelHeight")) return rv } -// The fully formatted address of the item, received from MapKit. [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/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/1621535-pixelheight?language=objc +func (s_ SearchableItemAttributeSet) SetPixelHeight(value foundation.INumber) { + objc.Call[objc.Void](s_, objc.Sel("setPixelHeight:"), objc.Ptr(value)) } -// The file URL of the content to index. [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/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/1620578-country?language=objc +func (s_ SearchableItemAttributeSet) Country() string { + rv := objc.Call[string](s_, objc.Sel("country")) return rv } -// The file URL of the content to index. [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/1621651-contenturl?language=objc -func (s_ SearchableItemAttributeSet) SetContentURL(value foundation.IURL) { - objc.Call[objc.Void](s_, objc.Sel("setContentURL:"), objc.Ptr(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 name of the application that encoded the data the audio file contains. [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/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/1621652-keywords?language=objc +func (s_ SearchableItemAttributeSet) Keywords() []string { + rv := objc.Call[[]string](s_, objc.Sel("keywords")) return rv } -// The name of the application that encoded the data the audio file contains. [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/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/1621652-keywords?language=objc +func (s_ SearchableItemAttributeSet) SetKeywords(value []string) { + objc.Call[objc.Void](s_, objc.Sel("setKeywords:"), value) } // The version of the EXIF header that was used to generate the metadata for the image. [Full Topic] @@ -1000,964 +951,979 @@ func (s_ SearchableItemAttributeSet) SetEXIFVersion(value string) { objc.Call[objc.Void](s_, objc.Sel("setEXIFVersion:"), value) } -// A number that indicates the relative importance of the item among other items from the app. [Full Topic] +// The location finding method that the GPS receiver uses. [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/1620575-gpsprocessingmethod?language=objc +func (s_ SearchableItemAttributeSet) GPSProcessingMethod() string { + rv := objc.Call[string](s_, objc.Sel("GPSProcessingMethod")) return rv } -// A number that indicates the relative importance of the item among other items from the app. [Full Topic] +// The location finding method that the GPS receiver uses. [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:"), objc.Ptr(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 date on which the file was last used. [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/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/3752013-darkthumbnailurl?language=objc +func (s_ SearchableItemAttributeSet) DarkThumbnailURL() foundation.URL { + rv := objc.Call[foundation.URL](s_, objc.Sel("darkThumbnailURL")) return rv } -// The date on which the file was last used. [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/1616018-lastuseddate?language=objc -func (s_ SearchableItemAttributeSet) SetLastUsedDate(value foundation.IDate) { - objc.Call[objc.Void](s_, objc.Sel("setLastUsedDate:"), objc.Ptr(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:"), objc.Ptr(value)) } -// The date on which the contents of the file was last modified. [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/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/1649310-thoroughfare?language=objc +func (s_ SearchableItemAttributeSet) Thoroughfare() string { + rv := objc.Call[string](s_, objc.Sel("thoroughfare")) return rv } -// The date on which the contents of the file was last modified. [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/1616085-contentmodificationdate?language=objc -func (s_ SearchableItemAttributeSet) SetContentModificationDate(value foundation.IDate) { - objc.Call[objc.Void](s_, objc.Sel("setContentModificationDate:"), objc.Ptr(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 name of the apps that converted the original content into a PDF stream. [Full Topic] +// An array of instant message addresses for the message. [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/1621575-instantmessageaddresses?language=objc +func (s_ SearchableItemAttributeSet) InstantMessageAddresses() []string { + rv := objc.Call[[]string](s_, objc.Sel("instantMessageAddresses")) return rv } -// The name of the apps that converted the original content into a PDF stream. [Full Topic] +// An array of instant message addresses for the message. [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/1621575-instantmessageaddresses?language=objc +func (s_ SearchableItemAttributeSet) SetInstantMessageAddresses(value []string) { + objc.Call[objc.Void](s_, objc.Sel("setInstantMessageAddresses:"), value) } -// The measurement precision mode in use by the GPS receiver. [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/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/1621528-aperture?language=objc +func (s_ SearchableItemAttributeSet) Aperture() foundation.Number { + rv := objc.Call[foundation.Number](s_, objc.Sel("aperture")) return rv } -// The measurement precision mode in use by the GPS receiver. [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/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/1621528-aperture?language=objc +func (s_ SearchableItemAttributeSet) SetAperture(value foundation.INumber) { + objc.Call[objc.Void](s_, objc.Sel("setAperture:"), objc.Ptr(value)) +} + +// The resolution width of the image, in DPI. [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")) + return rv +} + +// The resolution width of the image, in DPI. [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:"), objc.Ptr(value)) } -// Indicates the role of the content creator. [Full Topic] +// The date on which the item is due. [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/1616641-duedate?language=objc +func (s_ SearchableItemAttributeSet) DueDate() foundation.Date { + rv := objc.Call[foundation.Date](s_, objc.Sel("dueDate")) return rv } -// Indicates the role of the content creator. [Full Topic] +// The date on which the item is due. [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/1616641-duedate?language=objc +func (s_ SearchableItemAttributeSet) SetDueDate(value foundation.IDate) { + objc.Call[objc.Void](s_, objc.Sel("setDueDate:"), objc.Ptr(value)) } -// A value that indicates whether the item contains information sufficient to provide navigation to the location it represents. [Full Topic] +// An array of email addresses associated with the recipient. [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/1621580-recipientemailaddresses?language=objc +func (s_ SearchableItemAttributeSet) RecipientEmailAddresses() []string { + rv := objc.Call[[]string](s_, objc.Sel("recipientEmailAddresses")) return rv } -// A value that indicates whether the item contains information sufficient to provide navigation to the location it represents. [Full Topic] +// An array of email addresses associated with the recipient. [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:"), objc.Ptr(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 province or state of origin according to guidelines the provider establishes. [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/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/1621676-displayname?language=objc +func (s_ SearchableItemAttributeSet) DisplayName() string { + rv := objc.Call[string](s_, objc.Sel("displayName")) return rv } -// The province or state of origin according to guidelines the provider establishes. [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/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/1621676-displayname?language=objc +func (s_ SearchableItemAttributeSet) SetDisplayName(value string) { + objc.Call[objc.Void](s_, objc.Sel("setDisplayName:"), value) } -// An array of CSPerson objects representing the content of the Cc: field in an email message. [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/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/1616020-keysignature?language=objc +func (s_ SearchableItemAttributeSet) KeySignature() string { + rv := objc.Call[string](s_, objc.Sel("keySignature")) return rv } -// An array of CSPerson objects representing the content of the Cc: field in an email message. [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/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/1616020-keysignature?language=objc +func (s_ SearchableItemAttributeSet) SetKeySignature(value string) { + objc.Call[objc.Void](s_, objc.Sel("setKeySignature:"), value) } -// An array of localized strings that represent alternate display names for the item. [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/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/1616070-musicalgenre?language=objc +func (s_ SearchableItemAttributeSet) MusicalGenre() string { + rv := objc.Call[string](s_, objc.Sel("musicalGenre")) return rv } -// An array of localized strings that represent alternate display names for the item. [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/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/1616070-musicalgenre?language=objc +func (s_ SearchableItemAttributeSet) SetMusicalGenre(value string) { + objc.Call[objc.Void](s_, objc.Sel("setMusicalGenre:"), value) } -// An array of identifiers that corresponds to file representations the delegate provides. [Full Topic] +// The time that the lens was open during exposure, in seconds. [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/1621532-exposuretime?language=objc +func (s_ SearchableItemAttributeSet) ExposureTime() foundation.Number { + rv := objc.Call[foundation.Number](s_, objc.Sel("exposureTime")) return rv } -// An array of identifiers that corresponds to file representations the delegate provides. [Full Topic] +// The time that the lens was open during exposure, in seconds. [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/1621532-exposuretime?language=objc +func (s_ SearchableItemAttributeSet) SetExposureTime(value foundation.INumber) { + objc.Call[objc.Void](s_, objc.Sel("setExposureTime:"), objc.Ptr(value)) } -// The number of channels in the audio data that the file contains. [Full Topic] +// The distance to the destination point. [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/1620582-gpsdestdistance?language=objc +func (s_ SearchableItemAttributeSet) GPSDestDistance() foundation.Number { + rv := objc.Call[foundation.Number](s_, objc.Sel("GPSDestDistance")) return rv } -// The number of channels in the audio data that the file contains. [Full Topic] +// The distance to the destination point. [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:"), objc.Ptr(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:"), objc.Ptr(value)) } -// The user-supplied rating of the media. [Full Topic] +// The audio bit rate 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/1616103-audiobitrate?language=objc +func (s_ SearchableItemAttributeSet) AudioBitRate() foundation.Number { + rv := objc.Call[foundation.Number](s_, objc.Sel("audioBitRate")) return rv } -// The user-supplied rating of the media. [Full Topic] +// The audio bit rate 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:"), objc.Ptr(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:"), objc.Ptr(value)) } -// A value that indicates if the content is prepared for streaming. [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/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/1621670-pagewidth?language=objc +func (s_ SearchableItemAttributeSet) PageWidth() foundation.Number { + rv := objc.Call[foundation.Number](s_, objc.Sel("pageWidth")) return rv } -// A value that indicates if the content is prepared for streaming. [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/1616054-streamable?language=objc -func (s_ SearchableItemAttributeSet) SetStreamable(value foundation.INumber) { - objc.Call[objc.Void](s_, objc.Sel("setStreamable:"), objc.Ptr(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:"), objc.Ptr(value)) } -// The track number of a song or audio composition when part of an album. [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/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/1616072-audiochannelcount?language=objc +func (s_ SearchableItemAttributeSet) AudioChannelCount() foundation.Number { + rv := objc.Call[foundation.Number](s_, objc.Sel("audioChannelCount")) return rv } -// The track number of a song or audio composition when part of an album. [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/1616095-audiotracknumber?language=objc -func (s_ SearchableItemAttributeSet) SetAudioTrackNumber(value foundation.INumber) { - objc.Call[objc.Void](s_, objc.Sel("setAudioTrackNumber:"), objc.Ptr(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:"), objc.Ptr(value)) } -// An attribute type that identifies a custom hierarchy of types to describe the attributes of your item. [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/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/1621520-redeyeon?language=objc +func (s_ SearchableItemAttributeSet) IsRedEyeOn() foundation.Number { + rv := objc.Call[foundation.Number](s_, objc.Sel("isRedEyeOn")) return rv } -// An attribute type that identifies a custom hierarchy of types to describe the attributes of your item. [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/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/1621520-redeyeon?language=objc +func (s_ SearchableItemAttributeSet) SetRedEyeOn(value foundation.INumber) { + objc.Call[objc.Void](s_, objc.Sel("setRedEyeOn:"), objc.Ptr(value)) } -// The musical genre of the song or audio composition that the file contains, such as jazz, pop, rock, or classical. [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/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/1616074-composer?language=objc +func (s_ SearchableItemAttributeSet) Composer() string { + rv := objc.Call[string](s_, objc.Sel("composer")) return rv } -// The musical genre of the song or audio composition that the file contains, such as jazz, pop, rock, or classical. [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/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/1616074-composer?language=objc +func (s_ SearchableItemAttributeSet) SetComposer(value string) { + objc.Call[objc.Void](s_, objc.Sel("setComposer:"), value) } -// The status of the GPS receiver. [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/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/1620576-imagedirection?language=objc +func (s_ SearchableItemAttributeSet) ImageDirection() foundation.Number { + rv := objc.Call[foundation.Number](s_, objc.Sel("imageDirection")) return rv } -// The status of the GPS receiver. [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/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/1620576-imagedirection?language=objc +func (s_ SearchableItemAttributeSet) SetImageDirection(value foundation.INumber) { + objc.Call[objc.Void](s_, objc.Sel("setImageDirection:"), objc.Ptr(value)) } -// The genre of 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/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/1620588-gpstrack?language=objc +func (s_ SearchableItemAttributeSet) GPSTrack() foundation.Number { + rv := objc.Call[foundation.Number](s_, objc.Sel("GPSTrack")) return rv } -// The genre of 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/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/1620588-gpstrack?language=objc +func (s_ SearchableItemAttributeSet) SetGPSTrack(value foundation.INumber) { + objc.Call[objc.Void](s_, objc.Sel("setGPSTrack:"), objc.Ptr(value)) } -// The security method (a type of encryption) that protects the document file. [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/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/1620590-instructions?language=objc +func (s_ SearchableItemAttributeSet) Instructions() string { + rv := objc.Call[string](s_, objc.Sel("instructions")) return rv } -// The security method (a type of encryption) that protects the document file. [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/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/1620590-instructions?language=objc +func (s_ SearchableItemAttributeSet) SetInstructions(value string) { + objc.Call[objc.Void](s_, objc.Sel("setInstructions:"), value) } -// The bearing to the destination point. [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/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/1621567-accounthandles?language=objc +func (s_ SearchableItemAttributeSet) AccountHandles() []string { + rv := objc.Call[[]string](s_, objc.Sel("accountHandles")) return rv } -// The bearing to the destination point. [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/1620577-gpsdestbearing?language=objc -func (s_ SearchableItemAttributeSet) SetGPSDestBearing(value foundation.INumber) { - objc.Call[objc.Void](s_, objc.Sel("setGPSDestBearing:"), objc.Ptr(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) } -// The manufacturer of the device that captured the image. [Full Topic] +// An array of font names the document uses. [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/1621566-fontnames?language=objc +func (s_ SearchableItemAttributeSet) FontNames() []string { + rv := objc.Call[[]string](s_, objc.Sel("fontNames")) return rv } -// The manufacturer of the device that captured the image. [Full Topic] +// An array of font names the document uses. [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/1621566-fontnames?language=objc +func (s_ SearchableItemAttributeSet) SetFontNames(value []string) { + objc.Call[objc.Void](s_, objc.Sel("setFontNames:"), value) } -// A value that indicates the user selected the item. [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/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/1621548-isospeed?language=objc +func (s_ SearchableItemAttributeSet) ISOSpeed() foundation.Number { + rv := objc.Call[foundation.Number](s_, objc.Sel("ISOSpeed")) return rv } -// A value that indicates the user selected the item. [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/2887562-usercurated?language=objc -func (s_ SearchableItemAttributeSet) SetUserCurated(value foundation.INumber) { - objc.Call[objc.Void](s_, objc.Sel("setUserCurated:"), objc.Ptr(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:"), objc.Ptr(value)) } -// The codecs used to encode/decode the media. [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/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/1620594-city?language=objc +func (s_ SearchableItemAttributeSet) City() string { + rv := objc.Call[string](s_, objc.Sel("city")) return rv } -// The codecs used to encode/decode the media. [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/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/1620594-city?language=objc +func (s_ SearchableItemAttributeSet) SetCity(value string) { + objc.Call[objc.Void](s_, objc.Sel("setCity:"), value) } -// The delivery type of the file. [Full Topic] +// The white balance setting when the camera captured the image. [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/1621539-whitebalance?language=objc +func (s_ SearchableItemAttributeSet) WhiteBalance() foundation.Number { + rv := objc.Call[foundation.Number](s_, objc.Sel("whiteBalance")) return rv } -// The delivery type of the file. [Full Topic] +// The white balance setting when the camera captured the image. [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:"), objc.Ptr(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:"), objc.Ptr(value)) } -// The direction of the item's image in degrees from true north. [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/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/1621573-accountidentifier?language=objc +func (s_ SearchableItemAttributeSet) AccountIdentifier() string { + rv := objc.Call[string](s_, objc.Sel("accountIdentifier")) return rv } -// The direction of the item's image in degrees from true north. [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/1620576-imagedirection?language=objc -func (s_ SearchableItemAttributeSet) SetImageDirection(value foundation.INumber) { - objc.Call[objc.Void](s_, objc.Sel("setImageDirection:"), objc.Ptr(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) } -// The artist associated with the media. [Full Topic] +// The number of pages in the document. [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/1621627-pagecount?language=objc +func (s_ SearchableItemAttributeSet) PageCount() foundation.Number { + rv := objc.Call[foundation.Number](s_, objc.Sel("pageCount")) return rv } -// The artist associated with the media. [Full Topic] +// The number of pages in the document. [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/1621627-pagecount?language=objc +func (s_ SearchableItemAttributeSet) SetPageCount(value foundation.INumber) { + objc.Call[objc.Void](s_, objc.Sel("setPageCount:"), objc.Ptr(value)) } -// The city of the item’s origin according to guidelines that the provider establishes. [Full Topic] +// The total number of pixels in the image. [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/1621517-pixelcount?language=objc +func (s_ SearchableItemAttributeSet) PixelCount() foundation.Number { + rv := objc.Call[foundation.Number](s_, objc.Sel("pixelCount")) return rv } -// The city of the item’s origin according to guidelines that the provider establishes. [Full Topic] +// The total number of pixels in the image. [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/1621517-pixelcount?language=objc +func (s_ SearchableItemAttributeSet) SetPixelCount(value foundation.INumber) { + objc.Call[objc.Void](s_, objc.Sel("setPixelCount:"), objc.Ptr(value)) } -// The time that the lens was open during exposure, in a string, such as "1/250 seconds". [Full Topic] +// 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/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/1620586-latitude?language=objc +func (s_ SearchableItemAttributeSet) Latitude() foundation.Number { + rv := objc.Call[foundation.Number](s_, objc.Sel("latitude")) return rv } -// The time that the lens was open during exposure, in a string, such as "1/250 seconds". [Full Topic] +// 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/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/1620586-latitude?language=objc +func (s_ SearchableItemAttributeSet) SetLatitude(value foundation.INumber) { + objc.Call[objc.Void](s_, objc.Sel("setLatitude:"), objc.Ptr(value)) } -// An array of identifiers that corresponds to in-place file representations the delegate provides. [Full Topic] +// An array of addresses associated with the recipients of the message. [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/1621648-recipientaddresses?language=objc +func (s_ SearchableItemAttributeSet) RecipientAddresses() []string { + rv := objc.Call[[]string](s_, objc.Sel("recipientAddresses")) return rv } -// An array of identifiers that corresponds to in-place file representations the delegate provides. [Full Topic] +// An array of addresses associated with the recipients of the message. [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/1621648-recipientaddresses?language=objc +func (s_ SearchableItemAttributeSet) SetRecipientAddresses(value []string) { + objc.Call[objc.Void](s_, objc.Sel("setRecipientAddresses:"), value) } -// The title of the container to which the item belongs. [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/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/1616008-audiosamplerate?language=objc +func (s_ SearchableItemAttributeSet) AudioSampleRate() foundation.Number { + rv := objc.Call[foundation.Number](s_, objc.Sel("audioSampleRate")) return rv } -// The title of the container to which the item belongs. [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/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/1616008-audiosamplerate?language=objc +func (s_ SearchableItemAttributeSet) SetAudioSampleRate(value foundation.INumber) { + objc.Call[objc.Void](s_, objc.Sel("setAudioSampleRate:"), objc.Ptr(value)) } -// The white balance setting when the camera captured the image. [Full Topic] +// The status of the GPS receiver. [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/1620589-gpsstatus?language=objc +func (s_ SearchableItemAttributeSet) GPSStatus() string { + rv := objc.Call[string](s_, objc.Sel("GPSStatus")) return rv } -// The white balance setting when the camera captured the image. [Full Topic] +// The status of the GPS receiver. [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:"), objc.Ptr(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 producer of the content. [Full Topic] +// The GPS dilution of precision value. [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/1620593-gpsdop?language=objc +func (s_ SearchableItemAttributeSet) GPSDOP() foundation.Number { + rv := objc.Call[foundation.Number](s_, objc.Sel("GPSDOP")) return rv } -// The producer of the content. [Full Topic] +// The GPS dilution of precision value. [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/1620593-gpsdop?language=objc +func (s_ SearchableItemAttributeSet) SetGPSDOP(value foundation.INumber) { + objc.Call[objc.Void](s_, objc.Sel("setGPSDOP:"), objc.Ptr(value)) } -// A list of people, organizations, or services that made contributions to the media content. [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/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/1620579-altitude?language=objc +func (s_ SearchableItemAttributeSet) Altitude() foundation.Number { + rv := objc.Call[foundation.Number](s_, objc.Sel("altitude")) return rv } -// A list of people, organizations, or services that made contributions to the media content. [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/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/1620579-altitude?language=objc +func (s_ SearchableItemAttributeSet) SetAltitude(value foundation.INumber) { + objc.Call[objc.Void](s_, objc.Sel("setAltitude:"), objc.Ptr(value)) } -// A comment related to the media file. [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/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/1616014-contactkeywords?language=objc +func (s_ SearchableItemAttributeSet) ContactKeywords() []string { + rv := objc.Call[[]string](s_, objc.Sel("contactKeywords")) return rv } -// A comment related to the media file. [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/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/1616014-contactkeywords?language=objc +func (s_ SearchableItemAttributeSet) SetContactKeywords(value []string) { + objc.Call[objc.Void](s_, objc.Sel("setContactKeywords:"), value) } -// The direction of travel of the item in degrees from true north. [Full Topic] +// Information about 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/1616101-information?language=objc +func (s_ SearchableItemAttributeSet) Information() string { + rv := objc.Call[string](s_, objc.Sel("information")) return rv } -// The direction of travel of the item in degrees from true north. [Full Topic] +// Information about 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:"), objc.Ptr(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) } -// A description of the item’s content. [Full Topic] +// The manufacturer of the device that captured the image. [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/1621542-acquisitionmake?language=objc +func (s_ SearchableItemAttributeSet) AcquisitionMake() string { + rv := objc.Call[string](s_, objc.Sel("acquisitionMake")) return rv } -// A description of the item’s content. [Full Topic] +// The manufacturer of the device that captured the image. [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/1621542-acquisitionmake?language=objc +func (s_ SearchableItemAttributeSet) SetAcquisitionMake(value string) { + objc.Call[objc.Void](s_, objc.Sel("setAcquisitionMake:"), value) } -// A list of companies or organizations that created the content. [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/1616026-organizations?language=objc -func (s_ SearchableItemAttributeSet) Organizations() []string { - rv := objc.Call[[]string](s_, objc.Sel("organizations")) +// [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 } -// A list of companies or organizations that created the content. [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/1616026-organizations?language=objc -func (s_ SearchableItemAttributeSet) SetOrganizations(value []string) { - objc.Call[objc.Void](s_, objc.Sel("setOrganizations:"), 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 CSPerson objects representing the content of the From: field in an item. [Full Topic] +// The bearing to the destination point. [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/1620577-gpsdestbearing?language=objc +func (s_ SearchableItemAttributeSet) GPSDestBearing() foundation.Number { + rv := objc.Call[foundation.Number](s_, objc.Sel("GPSDestBearing")) return rv } -// An array of CSPerson objects representing the content of the From: field in an item. [Full Topic] +// The bearing to the destination point. [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/1620577-gpsdestbearing?language=objc +func (s_ SearchableItemAttributeSet) SetGPSDestBearing(value foundation.INumber) { + objc.Call[objc.Void](s_, objc.Sel("setGPSDestBearing:"), objc.Ptr(value)) } -// A list of performers in the media. [Full Topic] +// A description of the item’s content. [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/1621584-contentdescription?language=objc +func (s_ SearchableItemAttributeSet) ContentDescription() string { + rv := objc.Call[string](s_, objc.Sel("contentDescription")) return rv } -// A list of performers in the media. [Full Topic] +// A description of the item’s content. [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/1621584-contentdescription?language=objc +func (s_ SearchableItemAttributeSet) SetContentDescription(value string) { + objc.Call[objc.Void](s_, objc.Sel("setContentDescription:"), value) } -// The speed of the item, in kilometers per hour. [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/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/1620585-headline?language=objc +func (s_ SearchableItemAttributeSet) Headline() string { + rv := objc.Call[string](s_, objc.Sel("headline")) return rv } -// The speed of the item, in kilometers per hour. [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/1620591-speed?language=objc -func (s_ SearchableItemAttributeSet) SetSpeed(value foundation.INumber) { - objc.Call[objc.Void](s_, objc.Sel("setSpeed:"), objc.Ptr(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) } -// Instructions that concern the use of the item, such as an embargo or warning. [Full Topic] +// The textual content of the message. [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/1621674-textcontent?language=objc +func (s_ SearchableItemAttributeSet) TextContent() string { + rv := objc.Call[string](s_, objc.Sel("textContent")) return rv } -// Instructions that concern the use of the item, such as an embargo or warning. [Full Topic] +// The textual content of the message. [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/1621674-textcontent?language=objc +func (s_ SearchableItemAttributeSet) SetTextContent(value string) { + objc.Call[objc.Void](s_, objc.Sel("setTextContent:"), value) } -// The number of pages in the document. [Full Topic] +// The media types present in the content. [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/1616064-mediatypes?language=objc +func (s_ SearchableItemAttributeSet) MediaTypes() []string { + rv := objc.Call[[]string](s_, objc.Sel("mediaTypes")) return rv } -// The number of pages in the document. [Full Topic] +// The media types present in the content. [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:"), objc.Ptr(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) } -// The latitude of the destination point. [Full Topic] +// The title of the item. [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/1621615-title?language=objc +func (s_ SearchableItemAttributeSet) Title() string { + rv := objc.Call[string](s_, objc.Sel("title")) return rv } -// The latitude of the destination point. [Full Topic] +// The title of the item. [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:"), objc.Ptr(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 focal length of the lens, divided by the diameter of the aperture when the camera captured the image. [Full Topic] +// An array of addresses associated with the author of the message. [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/1621671-authoraddresses?language=objc +func (s_ SearchableItemAttributeSet) AuthorAddresses() []string { + rv := objc.Call[[]string](s_, objc.Sel("authorAddresses")) return rv } -// The focal length of the lens, divided by the diameter of the aperture when the camera captured the image. [Full Topic] +// An array of addresses associated with the author of the message. [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:"), objc.Ptr(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) } -// The name of the director of the media (for example, a movie director). [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/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/1616079-timesignature?language=objc +func (s_ SearchableItemAttributeSet) TimeSignature() string { + rv := objc.Call[string](s_, objc.Sel("timeSignature")) return rv } -// The name of the director of the media (for example, a movie director). [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/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/1616079-timesignature?language=objc +func (s_ SearchableItemAttributeSet) SetTimeSignature(value string) { + objc.Call[objc.Void](s_, objc.Sel("setTimeSignature:"), value) } -// Information about the media. [Full Topic] +// The differential correction applied to the GPS receiver. [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/1620592-gpsdifferental?language=objc +func (s_ SearchableItemAttributeSet) GPSDifferental() foundation.Number { + rv := objc.Call[foundation.Number](s_, objc.Sel("GPSDifferental")) return rv } -// Information about the media. [Full Topic] +// The differential correction applied to the GPS receiver. [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/1620592-gpsdifferental?language=objc +func (s_ SearchableItemAttributeSet) SetGPSDifferental(value foundation.INumber) { + objc.Call[objc.Void](s_, objc.Sel("setGPSDifferental:"), objc.Ptr(value)) } -// The date and time related to the GPS value. [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/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/1616095-audiotracknumber?language=objc +func (s_ SearchableItemAttributeSet) AudioTrackNumber() foundation.Number { + rv := objc.Call[foundation.Number](s_, objc.Sel("audioTrackNumber")) return rv } -// The date and time related to the GPS value. [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/1620587-gpsdatestamp?language=objc -func (s_ SearchableItemAttributeSet) SetGPSDateStamp(value foundation.IDate) { - objc.Call[objc.Void](s_, objc.Sel("setGPSDateStamp:"), objc.Ptr(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:"), objc.Ptr(value)) } -// The color space model the image uses, such as RGB, CMYK, YUV, or YCbCr. [Full Topic] +// A list of editors who have worked on the file. [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/1616088-editors?language=objc +func (s_ SearchableItemAttributeSet) Editors() []string { + rv := objc.Call[[]string](s_, objc.Sel("editors")) return rv } -// The color space model the image uses, such as RGB, CMYK, YUV, or YCbCr. [Full Topic] +// A list of editors who have worked on the file. [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/1616088-editors?language=objc +func (s_ SearchableItemAttributeSet) SetEditors(value []string) { + objc.Call[objc.Void](s_, objc.Sel("setEditors:"), value) } -// The total bit rate of the media, combining audio and video. [Full Topic] +// The order of the item within the container. [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/1621586-containerorder?language=objc +func (s_ SearchableItemAttributeSet) ContainerOrder() foundation.Number { + rv := objc.Call[foundation.Number](s_, objc.Sel("containerOrder")) return rv } -// The total bit rate of the media, combining audio and video. [Full Topic] +// The order of the item within the container. [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:"), objc.Ptr(value)) +// [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:"), objc.Ptr(value)) } -// An array of the canonical handles for the account with which the message is associated. [Full Topic] +// The artist associated with the media. [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/1616077-artist?language=objc +func (s_ SearchableItemAttributeSet) Artist() string { + rv := objc.Call[string](s_, objc.Sel("artist")) return rv } -// An array of the canonical handles for the account with which the message is associated. [Full Topic] +// The artist associated with the media. [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/1616077-artist?language=objc +func (s_ SearchableItemAttributeSet) SetArtist(value string) { + objc.Call[objc.Void](s_, objc.Sel("setArtist:"), value) } -// The model of the device that captured the image. [Full Topic] +// Indicates the role of the content creator. [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/1616105-role?language=objc +func (s_ SearchableItemAttributeSet) Role() string { + rv := objc.Call[string](s_, objc.Sel("role")) return rv } -// The model of the device that captured the image. [Full Topic] +// Indicates the role of the content creator. [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/1616105-role?language=objc +func (s_ SearchableItemAttributeSet) SetRole(value string) { + objc.Call[objc.Void](s_, objc.Sel("setRole:"), value) } -// An array of mailbox identifiers associated with the message. [Full Topic] +// The model of the lens that captured the image. [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/1621537-lensmodel?language=objc +func (s_ SearchableItemAttributeSet) LensModel() string { + rv := objc.Call[string](s_, objc.Sel("lensModel")) return rv } -// 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 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) } -// The ISO speed setting at the time the camera captured the image. [Full Topic] +// The latitude of the destination point. [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/1620572-gpsdestlatitude?language=objc +func (s_ SearchableItemAttributeSet) GPSDestLatitude() foundation.Number { + rv := objc.Call[foundation.Number](s_, objc.Sel("GPSDestLatitude")) return rv } -// The ISO speed setting at the time the camera captured the image. [Full Topic] +// The latitude of the destination point. [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:"), objc.Ptr(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:"), objc.Ptr(value)) } -// The media types present in the content. [Full Topic] +// The actual focal length of the lens, in millimeters. [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/1621533-focallength?language=objc +func (s_ SearchableItemAttributeSet) FocalLength() foundation.Number { + rv := objc.Call[foundation.Number](s_, objc.Sel("focalLength")) return rv } -// The media types present in the content. [Full Topic] +// The actual focal length of the lens, in millimeters. [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/1621533-focallength?language=objc +func (s_ SearchableItemAttributeSet) SetFocalLength(value foundation.INumber) { + objc.Call[objc.Void](s_, objc.Sel("setFocalLength:"), objc.Ptr(value)) } -// The creation date of an edited or optimized version of the song or composition. [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/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/1621519-layernames?language=objc +func (s_ SearchableItemAttributeSet) LayerNames() []string { + rv := objc.Call[[]string](s_, objc.Sel("layerNames")) return rv } -// The creation date of an edited or optimized version of the song or composition. [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/1616001-contentcreationdate?language=objc -func (s_ SearchableItemAttributeSet) SetContentCreationDate(value foundation.IDate) { - objc.Call[objc.Void](s_, objc.Sel("setContentCreationDate:"), objc.Ptr(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) } -// The postal code for the item according to guidelines the provider establishes. [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/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/2867861-providerfiletypeidentifiers?language=objc +func (s_ SearchableItemAttributeSet) ProviderFileTypeIdentifiers() []string { + rv := objc.Call[[]string](s_, objc.Sel("providerFileTypeIdentifiers")) return rv } -// The postal code for the item according to guidelines the provider establishes. [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/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/2867861-providerfiletypeidentifiers?language=objc +func (s_ SearchableItemAttributeSet) SetProviderFileTypeIdentifiers(value []string) { + objc.Call[objc.Void](s_, objc.Sel("setProviderFileTypeIdentifiers:"), 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] +// A list of the included languages for the intellectual content of the media. [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/1616068-languages?language=objc +func (s_ SearchableItemAttributeSet) Languages() []string { + rv := objc.Call[[]string](s_, objc.Sel("languages")) 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] +// A list of the included languages for the intellectual content of the media. [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/1616068-languages?language=objc +func (s_ SearchableItemAttributeSet) SetLanguages(value []string) { + objc.Call[objc.Void](s_, objc.Sel("setLanguages:"), value) } -// The local file URL of the thumbnail image for the item when Dark Mode is active. [Full Topic] +// The name of the app that created the content. [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/1621677-creator?language=objc +func (s_ SearchableItemAttributeSet) Creator() string { + rv := objc.Call[string](s_, objc.Sel("creator")) return rv } -// The local file URL of the thumbnail image for the item when Dark Mode is active. [Full Topic] +// The name of the app that created the content. [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:"), objc.Ptr(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) } -// An identifier that represents the domain or owner of the item. [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/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/1616003-publishers?language=objc +func (s_ SearchableItemAttributeSet) Publishers() []string { + rv := objc.Call[[]string](s_, objc.Sel("publishers")) return rv } -// An identifier that represents the domain or owner of the item. [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/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/1616003-publishers?language=objc +func (s_ SearchableItemAttributeSet) SetPublishers(value []string) { + objc.Call[objc.Void](s_, objc.Sel("setPublishers:"), value) } -// A value that indicates if the camera used a flash to capture the image. [Full Topic] +// The uniform type identifier (UTI) of the item. [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/1621561-contenttype?language=objc +func (s_ SearchableItemAttributeSet) ContentType() string { + rv := objc.Call[string](s_, objc.Sel("contentType")) return rv } -// A value that indicates if the camera used a flash to capture the image. [Full Topic] +// The uniform type identifier (UTI) of the item. [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:"), objc.Ptr(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) } -// A value that indicates if the media contains explicit content. [Full Topic] +// An array of phone numbers associated with the 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/1621650-phonenumbers?language=objc +func (s_ SearchableItemAttributeSet) PhoneNumbers() []string { + rv := objc.Call[[]string](s_, objc.Sel("phoneNumbers")) return rv } -// A value that indicates if the media contains explicit content. [Full Topic] +// An array of phone numbers associated with the 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:"), objc.Ptr(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 altitude of the item in meters above sea level, expressed using the WGS84 datum. [Full Topic] +// An array of important dates associated with the item. [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/1616639-importantdates?language=objc +func (s_ SearchableItemAttributeSet) ImportantDates() []foundation.Date { + rv := objc.Call[[]foundation.Date](s_, objc.Sel("importantDates")) return rv } -// The altitude of the item in meters above sea level, expressed using the WGS84 datum. [Full Topic] +// An array of important dates associated with the item. [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:"), objc.Ptr(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 localized string that specifies the name of a container to which the item belongs, suitable to display in the user interface. [Full Topic] +// The recording date of the song or composition. [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/1616051-recordingdate?language=objc +func (s_ SearchableItemAttributeSet) RecordingDate() foundation.Date { + rv := objc.Call[foundation.Date](s_, objc.Sel("recordingDate")) 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 recording date of the song or composition. [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/1616051-recordingdate?language=objc +func (s_ SearchableItemAttributeSet) SetRecordingDate(value foundation.IDate) { + objc.Call[objc.Void](s_, objc.Sel("setRecordingDate:"), objc.Ptr(value)) } // An array of identifiers that corresponds to data representations the delegate provides. [Full Topic] @@ -1975,844 +1941,874 @@ func (s_ SearchableItemAttributeSet) SetProviderDataTypeIdentifiers(value []stri objc.Call[objc.Void](s_, objc.Sel("setProviderDataTypeIdentifiers:"), value) } -// A list of projects of which this file is a part. [Full Topic] +// A list of companies or organizations that created the content. [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/1616026-organizations?language=objc +func (s_ SearchableItemAttributeSet) Organizations() []string { + rv := objc.Call[[]string](s_, objc.Sel("organizations")) return rv } -// A list of projects of which this file is a part. [Full Topic] +// A list of companies or organizations that created the content. [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/1616026-organizations?language=objc +func (s_ SearchableItemAttributeSet) SetOrganizations(value []string) { + objc.Call[objc.Void](s_, objc.Sel("setOrganizations:"), value) } -// The name of the location or point of interest associated with the item. [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/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/1620571-longitude?language=objc +func (s_ SearchableItemAttributeSet) Longitude() foundation.Number { + rv := objc.Call[foundation.Number](s_, objc.Sel("longitude")) return rv } -// The name of the location or point of interest associated with the item. [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/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/1620571-longitude?language=objc +func (s_ SearchableItemAttributeSet) SetLongitude(value foundation.INumber) { + objc.Call[objc.Void](s_, objc.Sel("setLongitude:"), objc.Ptr(value)) } -// The most recent date on which the file was downloaded or received. [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/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/1621673-pageheight?language=objc +func (s_ SearchableItemAttributeSet) PageHeight() foundation.Number { + rv := objc.Call[foundation.Number](s_, objc.Sel("pageHeight")) return rv } -// The most recent date on which the file was downloaded or received. [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/1616035-downloadeddate?language=objc -func (s_ SearchableItemAttributeSet) SetDownloadedDate(value foundation.IDate) { - objc.Call[objc.Void](s_, objc.Sel("setDownloadedDate:"), objc.Ptr(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:"), objc.Ptr(value)) +} + +// The identifier of the container to which the item belongs. [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")) + return rv +} + +// The identifier of the container to which the item belongs. [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) +} + +// The province or state of origin according to guidelines the provider establishes. [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")) + return rv +} + +// The province or state of origin according to guidelines the provider establishes. [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) } -// An array of names representing the recipients of this message. [Full Topic] +// A value that indicates if the media contains explicit content. [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/1616027-contentrating?language=objc +func (s_ SearchableItemAttributeSet) ContentRating() foundation.Number { + rv := objc.Call[foundation.Number](s_, objc.Sel("contentRating")) return rv } -// An array of names representing the recipients of this message. [Full Topic] +// A value that indicates if the media contains explicit content. [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/1616027-contentrating?language=objc +func (s_ SearchableItemAttributeSet) SetContentRating(value foundation.INumber) { + objc.Call[objc.Void](s_, objc.Sel("setContentRating:"), objc.Ptr(value)) } -// An array of addresses associated with the recipients of the message. [Full Topic] +// A value that indicates if the content is prepared for streaming. [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/1616054-streamable?language=objc +func (s_ SearchableItemAttributeSet) IsStreamable() foundation.Number { + rv := objc.Call[foundation.Number](s_, objc.Sel("isStreamable")) return rv } -// An array of addresses associated with the recipients of the message. [Full Topic] +// A value that indicates if the content is prepared for streaming. [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/1616054-streamable?language=objc +func (s_ SearchableItemAttributeSet) SetStreamable(value foundation.INumber) { + objc.Call[objc.Void](s_, objc.Sel("setStreamable:"), objc.Ptr(value)) } -// The longitude of the item, in degrees east of the prime meridian, expressed using the WGS84 datum. [Full Topic] +// The date on which the last metadata attribute was changed. [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")) +// [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 } -// The longitude of the item, in degrees east of the prime meridian, expressed using the WGS84 datum. [Full Topic] +// The date on which the last metadata attribute was changed. [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:"), objc.Ptr(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:"), objc.Ptr(value)) } -// An array of email addresses associated with the message. [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/1621572-emailaddresses?language=objc -func (s_ SearchableItemAttributeSet) EmailAddresses() []string { - rv := objc.Call[[]string](s_, objc.Sel("emailAddresses")) +// [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 } -// An array of email addresses associated with the message. [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/1621572-emailaddresses?language=objc -func (s_ SearchableItemAttributeSet) SetEmailAddresses(value []string) { - objc.Call[objc.Void](s_, objc.Sel("setEmailAddresses:"), 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) } -// An array of instant message addresses for the message. [Full Topic] +// The original format of the media. [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/1616097-originalformat?language=objc +func (s_ SearchableItemAttributeSet) OriginalFormat() string { + rv := objc.Call[string](s_, objc.Sel("originalFormat")) return rv } -// An array of instant message addresses for the message. [Full Topic] +// The original format of the media. [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/1616097-originalformat?language=objc +func (s_ SearchableItemAttributeSet) SetOriginalFormat(value string) { + objc.Call[objc.Void](s_, objc.Sel("setOriginalFormat:"), value) } -// A user-supplied play count for the media. [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/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/1616009-director?language=objc +func (s_ SearchableItemAttributeSet) Director() string { + rv := objc.Call[string](s_, objc.Sel("director")) return rv } -// A user-supplied play count for the media. [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/1616041-playcount?language=objc -func (s_ SearchableItemAttributeSet) SetPlayCount(value foundation.INumber) { - objc.Call[objc.Void](s_, objc.Sel("setPlayCount:"), objc.Ptr(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) } -// A value that indicates if the event covers an entire day. [Full Topic] +// The orientation of the data. [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/1621524-orientation?language=objc +func (s_ SearchableItemAttributeSet) Orientation() foundation.Number { + rv := objc.Call[foundation.Number](s_, objc.Sel("orientation")) return rv } -// A value that indicates if the event covers an entire day. [Full Topic] +// The orientation of the data. [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:"), objc.Ptr(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:"), objc.Ptr(value)) } -// The total number of pixels in the image. [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/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/1616045-participants?language=objc +func (s_ SearchableItemAttributeSet) Participants() []string { + rv := objc.Call[[]string](s_, objc.Sel("participants")) return rv } -// The total number of pixels in the image. [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/1621517-pixelcount?language=objc -func (s_ SearchableItemAttributeSet) SetPixelCount(value foundation.INumber) { - objc.Call[objc.Void](s_, objc.Sel("setPixelCount:"), objc.Ptr(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 lyricist or text writer for the song or audio composition that the file contains. [Full Topic] +// The complete path to the item. [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/1621559-path?language=objc +func (s_ SearchableItemAttributeSet) Path() string { + rv := objc.Call[string](s_, objc.Sel("path")) return rv } -// The lyricist or text writer for the song or audio composition that the file contains. [Full Topic] +// The complete path to the item. [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/1621559-path?language=objc +func (s_ SearchableItemAttributeSet) SetPath(value string) { + objc.Call[objc.Void](s_, objc.Sel("setPath:"), value) } -// The location finding method that the GPS receiver uses. [Full Topic] +// A dictionary that contains all the headers of the message. [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")) +// [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 location finding method that the GPS receiver uses. [Full Topic] +// A dictionary that contains all the headers of the message. [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) +// [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) } -// The time that the lens was open during exposure, in seconds. [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/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/1621541-colorspace?language=objc +func (s_ SearchableItemAttributeSet) ColorSpace() string { + rv := objc.Call[string](s_, objc.Sel("colorSpace")) return rv } -// The time that the lens was open during exposure, in seconds. [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/1621532-exposuretime?language=objc -func (s_ SearchableItemAttributeSet) SetExposureTime(value foundation.INumber) { - objc.Call[objc.Void](s_, objc.Sel("setExposureTime:"), objc.Ptr(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 URL associated with the media. [Full Topic] +// The video bit rate 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/1616090-videobitrate?language=objc +func (s_ SearchableItemAttributeSet) VideoBitRate() foundation.Number { + rv := objc.Call[foundation.Number](s_, objc.Sel("videoBitRate")) return rv } -// The URL associated with the media. [Full Topic] +// The video bit rate 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:"), objc.Ptr(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:"), objc.Ptr(value)) } -// A description of the rating. [Full Topic] +// The delivery type of the file. [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/1616062-deliverytype?language=objc +func (s_ SearchableItemAttributeSet) DeliveryType() foundation.Number { + rv := objc.Call[foundation.Number](s_, objc.Sel("deliveryType")) return rv } -// A description of the rating. [Full Topic] +// The delivery type of the file. [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/1616062-deliverytype?language=objc +func (s_ SearchableItemAttributeSet) SetDeliveryType(value foundation.INumber) { + objc.Call[objc.Void](s_, objc.Sel("setDeliveryType:"), objc.Ptr(value)) } -// A description of the kind of document the item represents. [Full Topic] +// The genre of the media. [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/1616031-genre?language=objc +func (s_ SearchableItemAttributeSet) Genre() string { + rv := objc.Call[string](s_, objc.Sel("genre")) return rv } -// A description of the kind of document the item represents. [Full Topic] +// The genre of the media. [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/1616031-genre?language=objc +func (s_ SearchableItemAttributeSet) SetGenre(value string) { + objc.Call[objc.Void](s_, objc.Sel("setGenre:"), value) } -// The uniform type identifier (UTI) of the item. [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/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/1621620-authornames?language=objc +func (s_ SearchableItemAttributeSet) AuthorNames() []string { + rv := objc.Call[[]string](s_, objc.Sel("authorNames")) return rv } -// The uniform type identifier (UTI) of the item. [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/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/1621620-authornames?language=objc +func (s_ SearchableItemAttributeSet) SetAuthorNames(value []string) { + objc.Call[objc.Void](s_, objc.Sel("setAuthorNames:"), value) } -// The date on which the item is due. [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/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/1621662-alternatenames?language=objc +func (s_ SearchableItemAttributeSet) AlternateNames() []string { + rv := objc.Call[[]string](s_, objc.Sel("alternateNames")) return rv } -// The date on which the item is due. [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/1616641-duedate?language=objc -func (s_ SearchableItemAttributeSet) SetDueDate(value foundation.IDate) { - objc.Call[objc.Void](s_, objc.Sel("setDueDate:"), objc.Ptr(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 name of an instrument within the context of an instrument category. [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/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/1616085-contentmodificationdate?language=objc +func (s_ SearchableItemAttributeSet) ContentModificationDate() foundation.Date { + rv := objc.Call[foundation.Date](s_, objc.Sel("contentModificationDate")) return rv } -// The name of an instrument within the context of an instrument category. [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/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/1616085-contentmodificationdate?language=objc +func (s_ SearchableItemAttributeSet) SetContentModificationDate(value foundation.IDate) { + objc.Call[objc.Void](s_, objc.Sel("setContentModificationDate:"), objc.Ptr(value)) } -// A link to information about the rights held in and over the media. [Full Topic] +// A formal identifier that references the document the item represents. [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/1621577-identifier?language=objc +func (s_ SearchableItemAttributeSet) Identifier() string { + rv := objc.Call[string](s_, objc.Sel("identifier")) return rv } -// A link to information about the rights held in and over the media. [Full Topic] +// A formal identifier that references the document the item represents. [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/1621577-identifier?language=objc +func (s_ SearchableItemAttributeSet) SetIdentifier(value string) { + objc.Call[objc.Void](s_, objc.Sel("setIdentifier:"), value) } -// An array of email addresses associated with the author of the message. [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/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/1621669-htmlcontentdata?language=objc +func (s_ SearchableItemAttributeSet) HTMLContentData() []byte { + rv := objc.Call[[]byte](s_, objc.Sel("HTMLContentData")) return rv } -// An array of email addresses associated with the author of the message. [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/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/1621669-htmlcontentdata?language=objc +func (s_ SearchableItemAttributeSet) SetHTMLContentData(value []byte) { + objc.Call[objc.Void](s_, objc.Sel("setHTMLContentData:"), 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] +// A value that indicates the user purchased or owns the item. [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/2887564-userowned?language=objc +func (s_ SearchableItemAttributeSet) IsUserOwned() foundation.Number { + rv := objc.Call[foundation.Number](s_, objc.Sel("isUserOwned")) 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] +// A value that indicates the user purchased or owns the item. [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:"), objc.Ptr(value)) +// [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:"), objc.Ptr(value)) } -// The date on which the last metadata attribute was changed. [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/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/1621525-flashon?language=objc +func (s_ SearchableItemAttributeSet) IsFlashOn() foundation.Number { + rv := objc.Call[foundation.Number](s_, objc.Sel("isFlashOn")) return rv } -// The date on which the last metadata attribute was changed. [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/1621657-metadatamodificationdate?language=objc -func (s_ SearchableItemAttributeSet) SetMetadataModificationDate(value foundation.IDate) { - objc.Call[objc.Void](s_, objc.Sel("setMetadataModificationDate:"), objc.Ptr(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:"), objc.Ptr(value)) } -// An array of CSPerson objects representing the content of the To: field in an email message. [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/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/1616081-generalmidisequence?language=objc +func (s_ SearchableItemAttributeSet) IsGeneralMIDISequence() foundation.Number { + rv := objc.Call[foundation.Number](s_, objc.Sel("isGeneralMIDISequence")) return rv } -// An array of CSPerson objects representing the content of the To: field in an email message. [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/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/1616081-generalmidisequence?language=objc +func (s_ SearchableItemAttributeSet) SetGeneralMIDISequence(value foundation.INumber) { + objc.Call[objc.Void](s_, objc.Sel("setGeneralMIDISequence:"), objc.Ptr(value)) } -// The audio bit rate of the media. [Full Topic] +// The speed of the item, in kilometers per hour. [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/1620591-speed?language=objc +func (s_ SearchableItemAttributeSet) Speed() foundation.Number { + rv := objc.Call[foundation.Number](s_, objc.Sel("speed")) return rv } -// The audio bit rate of the media. [Full Topic] +// The speed of the item, in kilometers per hour. [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:"), objc.Ptr(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:"), objc.Ptr(value)) } -// A value that indicates if the focal length is 35mm. [Full Topic] +// The timestamp on the item. [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/1620574-timestamp?language=objc +func (s_ SearchableItemAttributeSet) Timestamp() foundation.Date { + rv := objc.Call[foundation.Date](s_, objc.Sel("timestamp")) return rv } -// A value that indicates if the focal length is 35mm. [Full Topic] +// The timestamp on the item. [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:"), objc.Ptr(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:"), objc.Ptr(value)) } -// The version of GPS Info IFD header that was used to generate the metadata for the image. [Full Topic] +// A comment related to the media file. [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/1616083-comment?language=objc +func (s_ SearchableItemAttributeSet) Comment() string { + rv := objc.Call[string](s_, objc.Sel("comment")) return rv } -// The version of GPS Info IFD header that was used to generate the metadata for the image. [Full Topic] +// A comment related to the media file. [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/1616083-comment?language=objc +func (s_ SearchableItemAttributeSet) SetComment(value string) { + objc.Call[objc.Void](s_, objc.Sel("setComment:"), value) } -// The smallest F number of the lens. [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/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/1616033-musicalinstrumentname?language=objc +func (s_ SearchableItemAttributeSet) MusicalInstrumentName() string { + rv := objc.Call[string](s_, objc.Sel("musicalInstrumentName")) return rv } -// The smallest F number of the lens. [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/1621545-maxaperture?language=objc -func (s_ SearchableItemAttributeSet) SetMaxAperture(value foundation.INumber) { - objc.Call[objc.Void](s_, objc.Sel("setMaxAperture:"), objc.Ptr(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 value that indicates if the message is likely to be considered junk. [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/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/1621608-authors?language=objc +func (s_ SearchableItemAttributeSet) Authors() []Person { + rv := objc.Call[[]Person](s_, objc.Sel("authors")) return rv } -// A value that indicates if the message is likely to be considered junk. [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/1621646-likelyjunk?language=objc -func (s_ SearchableItemAttributeSet) SetLikelyJunk(value foundation.INumber) { - objc.Call[objc.Void](s_, objc.Sel("setLikelyJunk:"), objc.Ptr(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 list of descriptors that specify the extent or scope of the media. [Full Topic] +// The title for a collection of audio media. [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/1616016-album?language=objc +func (s_ SearchableItemAttributeSet) Album() string { + rv := objc.Call[string](s_, objc.Sel("album")) return rv } -// A list of descriptors that specify the extent or scope of the media. [Full Topic] +// The title for a collection of audio media. [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/1616016-album?language=objc +func (s_ SearchableItemAttributeSet) SetAlbum(value string) { + objc.Call[objc.Void](s_, objc.Sel("setAlbum:"), value) } -// The start date for the item. [Full Topic] +// The codecs used to encode/decode the media. [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/1616047-codecs?language=objc +func (s_ SearchableItemAttributeSet) Codecs() []string { + rv := objc.Call[[]string](s_, objc.Sel("codecs")) return rv } -// The start date for the item. [Full Topic] +// The codecs used to encode/decode the media. [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:"), objc.Ptr(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 size of the document file. [Full Topic] +// The local file URL of the thumbnail image for 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/1621560-thumbnailurl?language=objc +func (s_ SearchableItemAttributeSet) ThumbnailURL() foundation.URL { + rv := objc.Call[foundation.URL](s_, objc.Sel("thumbnailURL")) return rv } -// The size of the document file. [Full Topic] +// The local file URL of the thumbnail image for 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:"), objc.Ptr(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:"), objc.Ptr(value)) } -// A value that indicates the user created the item. [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/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/1620584-namedlocation?language=objc +func (s_ SearchableItemAttributeSet) NamedLocation() string { + rv := objc.Call[string](s_, objc.Sel("namedLocation")) return rv } -// A value that indicates the user created the item. [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/2887561-usercreated?language=objc -func (s_ SearchableItemAttributeSet) SetUserCreated(value foundation.INumber) { - objc.Call[objc.Void](s_, objc.Sel("setUserCreated:"), objc.Ptr(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 title of the item. [Full Topic] +// The longitude 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/1620580-gpsdestlongitude?language=objc +func (s_ SearchableItemAttributeSet) GPSDestLongitude() foundation.Number { + rv := objc.Call[foundation.Number](s_, objc.Sel("GPSDestLongitude")) return rv } -// The title of the item. [Full Topic] +// The longitude 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/1620580-gpsdestlongitude?language=objc +func (s_ SearchableItemAttributeSet) SetGPSDestLongitude(value foundation.INumber) { + objc.Call[objc.Void](s_, objc.Sel("setGPSDestLongitude:"), objc.Ptr(value)) } -// The mode the camera used for the exposure of the image. [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/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/1649284-postalcode?language=objc +func (s_ SearchableItemAttributeSet) PostalCode() string { + rv := objc.Call[string](s_, objc.Sel("postalCode")) return rv } -// The mode the camera used for the exposure of the image. [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/1621540-exposuremode?language=objc -func (s_ SearchableItemAttributeSet) SetExposureMode(value foundation.INumber) { - objc.Call[objc.Void](s_, objc.Sel("setExposureMode:"), objc.Ptr(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) } -// Image data that represents the thumbnail of the item. [Full Topic] +// The size of the document file. [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/1621565-filesize?language=objc +func (s_ SearchableItemAttributeSet) FileSize() foundation.Number { + rv := objc.Call[foundation.Number](s_, objc.Sel("fileSize")) return rv } -// Image data that represents the thumbnail of the item. [Full Topic] +// The size of the document file. [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/1621565-filesize?language=objc +func (s_ SearchableItemAttributeSet) SetFileSize(value foundation.INumber) { + objc.Call[objc.Void](s_, objc.Sel("setFileSize:"), objc.Ptr(value)) } -// The unique identifier for the item to which the activity is related. [Full Topic] +// An array of mailbox identifiers associated with the message. [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/1621654-mailboxidentifiers?language=objc +func (s_ SearchableItemAttributeSet) MailboxIdentifiers() []string { + rv := objc.Call[[]string](s_, objc.Sel("mailboxIdentifiers")) return rv } -// The unique identifier for the item to which the activity is related. [Full Topic] +// An array of mailbox identifiers associated with the message. [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/1621654-mailboxidentifiers?language=objc +func (s_ SearchableItemAttributeSet) SetMailboxIdentifiers(value []string) { + objc.Call[objc.Void](s_, objc.Sel("setMailboxIdentifiers:"), value) } -// A list of people who are visible in an image or movie or written about in a document. [Full Topic] +// The start date for the item. [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/1616640-startdate?language=objc +func (s_ SearchableItemAttributeSet) StartDate() foundation.Date { + rv := objc.Call[foundation.Date](s_, objc.Sel("startDate")) return rv } -// A list of people who are visible in an image or movie or written about in a document. [Full Topic] +// The start date for the item. [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/1616640-startdate?language=objc +func (s_ SearchableItemAttributeSet) SetStartDate(value foundation.IDate) { + objc.Call[objc.Void](s_, objc.Sel("setStartDate:"), objc.Ptr(value)) } -// The unique identifier for the account with which the message is associated, if any. [Full Topic] +// The number of bits per sample. [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/1621530-bitspersample?language=objc +func (s_ SearchableItemAttributeSet) BitsPerSample() foundation.Number { + rv := objc.Call[foundation.Number](s_, objc.Sel("bitsPerSample")) return rv } -// The unique identifier for the account with which the message is associated, if any. [Full Topic] +// The number of bits per sample. [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/1621530-bitspersample?language=objc +func (s_ SearchableItemAttributeSet) SetBitsPerSample(value foundation.INumber) { + objc.Call[objc.Void](s_, objc.Sel("setBitsPerSample:"), objc.Ptr(value)) } -// The title for a collection of audio media. [Full Topic] +// A value that indicates the user selected the item. [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/2887562-usercurated?language=objc +func (s_ SearchableItemAttributeSet) IsUserCurated() foundation.Number { + rv := objc.Call[foundation.Number](s_, objc.Sel("isUserCurated")) return rv } -// The title for a collection of audio media. [Full Topic] +// A value that indicates the user selected the item. [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/2887562-usercurated?language=objc +func (s_ SearchableItemAttributeSet) SetUserCurated(value foundation.INumber) { + objc.Call[objc.Void](s_, objc.Sel("setUserCurated:"), objc.Ptr(value)) } -// The original source of the media. [Full Topic] +// The URL associated with the media. [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/1616087-url?language=objc +func (s_ SearchableItemAttributeSet) URL() foundation.URL { + rv := objc.Call[foundation.URL](s_, objc.Sel("URL")) return rv } -// The original source of the media. [Full Topic] +// The URL associated with the media. [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/1616087-url?language=objc +func (s_ SearchableItemAttributeSet) SetURL(value foundation.IURL) { + objc.Call[objc.Void](s_, objc.Sel("setURL:"), objc.Ptr(value)) } -// A list of editors who have worked on the file. [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/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/1621625-authoremailaddresses?language=objc +func (s_ SearchableItemAttributeSet) AuthorEmailAddresses() []string { + rv := objc.Call[[]string](s_, objc.Sel("authorEmailAddresses")) return rv } -// A list of editors who have worked on the file. [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/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/1621625-authoremailaddresses?language=objc +func (s_ SearchableItemAttributeSet) SetAuthorEmailAddresses(value []string) { + objc.Call[objc.Void](s_, objc.Sel("setAuthorEmailAddresses:"), value) } -// The subject of the document. [Full Topic] +// The mode the camera used for the exposure of the image. [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/1621540-exposuremode?language=objc +func (s_ SearchableItemAttributeSet) ExposureMode() foundation.Number { + rv := objc.Call[foundation.Number](s_, objc.Sel("exposureMode")) return rv } -// The subject of the document. [Full Topic] +// The mode the camera used for the exposure of the image. [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/1621540-exposuremode?language=objc +func (s_ SearchableItemAttributeSet) SetExposureMode(value foundation.INumber) { + objc.Call[objc.Void](s_, objc.Sel("setExposureMode:"), objc.Ptr(value)) } -// The timestamp on the item. [Full Topic] +// The model of the device that captured the image. [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/1621523-acquisitionmodel?language=objc +func (s_ SearchableItemAttributeSet) AcquisitionModel() string { + rv := objc.Call[string](s_, objc.Sel("acquisitionModel")) return rv } -// The timestamp on the item. [Full Topic] +// The model of the device that captured the image. [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:"), objc.Ptr(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 recording date of the song or composition. [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/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/1616060-contributors?language=objc +func (s_ SearchableItemAttributeSet) Contributors() []string { + rv := objc.Call[[]string](s_, objc.Sel("contributors")) return rv } -// The recording date of the song or composition. [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/1616051-recordingdate?language=objc -func (s_ SearchableItemAttributeSet) SetRecordingDate(value foundation.IDate) { - objc.Call[objc.Void](s_, objc.Sel("setRecordingDate:"), objc.Ptr(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) } -// The resolution height of the image, in DPI. [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/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/1616005-tempo?language=objc +func (s_ SearchableItemAttributeSet) Tempo() foundation.Number { + rv := objc.Call[foundation.Number](s_, objc.Sel("tempo")) return rv } -// The resolution height of the image, in DPI. [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/1621526-resolutionheightdpi?language=objc -func (s_ SearchableItemAttributeSet) SetResolutionHeightDPI(value foundation.INumber) { - objc.Call[objc.Void](s_, objc.Sel("setResolutionHeightDPI:"), objc.Ptr(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:"), objc.Ptr(value)) } -// A list of contacts who are associated with the content in some way, not including the author. [Full Topic] +// The date on which the item was completed. [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/1616637-completiondate?language=objc +func (s_ SearchableItemAttributeSet) CompletionDate() foundation.Date { + rv := objc.Call[foundation.Date](s_, objc.Sel("completionDate")) return rv } -// A list of contacts who are associated with the content in some way, not including the author. [Full Topic] +// The date on which the item was completed. [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/1616637-completiondate?language=objc +func (s_ SearchableItemAttributeSet) SetCompletionDate(value foundation.IDate) { + objc.Call[objc.Void](s_, objc.Sel("setCompletionDate:"), objc.Ptr(value)) } -// An array that contains the names of the various layers in the file. [Full Topic] +// An identifier that represents the domain or owner of the item. [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/1649285-domainidentifier?language=objc +func (s_ SearchableItemAttributeSet) DomainIdentifier() string { + rv := objc.Call[string](s_, objc.Sel("domainIdentifier")) return rv } -// An array that contains the names of the various layers in the file. [Full Topic] +// An identifier that represents the domain or owner of the item. [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/1649285-domainidentifier?language=objc +func (s_ SearchableItemAttributeSet) SetDomainIdentifier(value string) { + objc.Call[objc.Void](s_, objc.Sel("setDomainIdentifier:"), value) } -// The class of the program the camera used to set exposure when capturing the image. [Full Topic] +// A list of projects of which this file is a part. [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/1616066-projects?language=objc +func (s_ SearchableItemAttributeSet) Projects() []string { + rv := objc.Call[[]string](s_, objc.Sel("projects")) return rv } -// The class of the program the camera used to set exposure when capturing the image. [Full Topic] +// A list of projects of which this file is a part. [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/1616066-projects?language=objc +func (s_ SearchableItemAttributeSet) SetProjects(value []string) { + objc.Call[objc.Void](s_, objc.Sel("setProjects:"), value) } -// The date on which the item was moved into its current location. [Full Topic] +// The end date for the item. [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/1616638-enddate?language=objc +func (s_ SearchableItemAttributeSet) EndDate() foundation.Date { + rv := objc.Call[foundation.Date](s_, objc.Sel("endDate")) return rv } -// The date on which the item was moved into its current location. [Full Topic] +// The end date for the item. [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:"), objc.Ptr(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:"), objc.Ptr(value)) } -// The identifier of the container to which the item belongs. [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/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/1621622-containerdisplayname?language=objc +func (s_ SearchableItemAttributeSet) ContainerDisplayName() string { + rv := objc.Call[string](s_, objc.Sel("containerDisplayName")) return rv } -// The identifier of the container to which the item belongs. [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/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/1621622-containerdisplayname?language=objc +func (s_ SearchableItemAttributeSet) SetContainerDisplayName(value string) { + objc.Call[objc.Void](s_, objc.Sel("setContainerDisplayName:"), value) } -// The distance to the destination point. [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/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/1621549-fnumber?language=objc +func (s_ SearchableItemAttributeSet) FNumber() foundation.Number { + rv := objc.Call[foundation.Number](s_, objc.Sel("fNumber")) return rv } -// The distance to the destination point. [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/1620582-gpsdestdistance?language=objc -func (s_ SearchableItemAttributeSet) SetGPSDestDistance(value foundation.INumber) { - objc.Call[objc.Void](s_, objc.Sel("setGPSDestDistance:"), objc.Ptr(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:"), objc.Ptr(value)) } -// The owner of the camera that captured the image. [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/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/1621645-hiddenadditionalrecipients?language=objc +func (s_ SearchableItemAttributeSet) HiddenAdditionalRecipients() []Person { + rv := objc.Call[[]Person](s_, objc.Sel("hiddenAdditionalRecipients")) return rv } -// The owner of the camera that captured the image. [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/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/1621645-hiddenadditionalrecipients?language=objc +func (s_ SearchableItemAttributeSet) SetHiddenAdditionalRecipients(value []IPerson) { + objc.Call[objc.Void](s_, objc.Sel("setHiddenAdditionalRecipients:"), value) } -// The copyright date of the content. [Full Topic] +// A description of the kind of document the item represents. [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/1621642-kind?language=objc +func (s_ SearchableItemAttributeSet) Kind() string { + rv := objc.Call[string](s_, objc.Sel("kind")) return rv } -// The copyright date of the content. [Full Topic] +// A description of the kind of document the item represents. [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/1621642-kind?language=objc +func (s_ SearchableItemAttributeSet) SetKind(value string) { + objc.Call[objc.Void](s_, objc.Sel("setKind:"), value) } -// The metering mode. [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/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/1621547-exposureprogram?language=objc +func (s_ SearchableItemAttributeSet) ExposureProgram() string { + rv := objc.Call[string](s_, objc.Sel("exposureProgram")) return rv } -// The metering mode. [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/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/1621547-exposureprogram?language=objc +func (s_ SearchableItemAttributeSet) SetExposureProgram(value string) { + objc.Call[objc.Void](s_, objc.Sel("setExposureProgram:"), value) } // The duration (if appropriate) of the content of the file, in seconds. [Full Topic] @@ -2830,334 +2826,349 @@ func (s_ SearchableItemAttributeSet) SetDuration(value foundation.INumber) { objc.Call[objc.Void](s_, objc.Sel("setDuration:"), objc.Ptr(value)) } -// The end date for the item. [Full Topic] +// An array of email addresses associated with the message. [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/1621572-emailaddresses?language=objc +func (s_ SearchableItemAttributeSet) EmailAddresses() []string { + rv := objc.Call[[]string](s_, objc.Sel("emailAddresses")) return rv } -// The end date for the item. [Full Topic] +// An array of email addresses associated with the message. [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:"), objc.Ptr(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 sublocation, such as a street number, for the item according to guidelines the provider establishes. [Full Topic] +// A list of performers in the media. [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/1616043-performers?language=objc +func (s_ SearchableItemAttributeSet) Performers() []string { + rv := objc.Call[[]string](s_, objc.Sel("performers")) return rv } -// The sublocation, such as a street number, for the item according to guidelines the provider establishes. [Full Topic] +// A list of performers in the media. [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/1616043-performers?language=objc +func (s_ SearchableItemAttributeSet) SetPerformers(value []string) { + objc.Call[objc.Void](s_, objc.Sel("setPerformers:"), value) } -// An array of email addresses associated with the recipient. [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/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/1616006-coverage?language=objc +func (s_ SearchableItemAttributeSet) Coverage() []string { + rv := objc.Call[[]string](s_, objc.Sel("coverage")) return rv } -// An array of email addresses associated with the recipient. [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/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/1616006-coverage?language=objc +func (s_ SearchableItemAttributeSet) SetCoverage(value []string) { + objc.Call[objc.Void](s_, objc.Sel("setCoverage:"), value) } -// The actual focal length of the lens, in millimeters. [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/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/1616001-contentcreationdate?language=objc +func (s_ SearchableItemAttributeSet) ContentCreationDate() foundation.Date { + rv := objc.Call[foundation.Date](s_, objc.Sel("contentCreationDate")) return rv } -// The actual focal length of the lens, in millimeters. [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/1621533-focallength?language=objc -func (s_ SearchableItemAttributeSet) SetFocalLength(value foundation.INumber) { - objc.Call[objc.Void](s_, objc.Sel("setFocalLength:"), objc.Ptr(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:"), objc.Ptr(value)) } -// The longitude of the destination point. [Full Topic] +// The theme of the document. [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/1621574-theme?language=objc +func (s_ SearchableItemAttributeSet) Theme() string { + rv := objc.Call[string](s_, objc.Sel("theme")) return rv } -// The longitude of the destination point. [Full Topic] +// The theme of the document. [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:"), objc.Ptr(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 video bit rate of the media. [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/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/1621675-primaryrecipients?language=objc +func (s_ SearchableItemAttributeSet) PrimaryRecipients() []Person { + rv := objc.Call[[]Person](s_, objc.Sel("primaryRecipients")) return rv } -// The video bit rate of the media. [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/1616090-videobitrate?language=objc -func (s_ SearchableItemAttributeSet) SetVideoBitRate(value foundation.INumber) { - objc.Call[objc.Void](s_, objc.Sel("setVideoBitRate:"), objc.Ptr(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) } -// A value that indicates whether the item contains information sufficient to allow a phone call to a number associated with the item. [Full Topic] +// The fully formatted address of the item, received from MapKit. [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/1649301-fullyformattedaddress?language=objc +func (s_ SearchableItemAttributeSet) FullyFormattedAddress() string { + rv := objc.Call[string](s_, objc.Sel("fullyFormattedAddress")) 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] +// The fully formatted address of the item, received from MapKit. [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:"), objc.Ptr(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 model of the lens that captured the image. [Full Topic] +// A value that indicates the user created the item. [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/2887561-usercreated?language=objc +func (s_ SearchableItemAttributeSet) IsUserCreated() foundation.Number { + rv := objc.Call[foundation.Number](s_, objc.Sel("isUserCreated")) return rv } -// The model of the lens that captured the image. [Full Topic] +// A value that indicates the user created the item. [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) +// [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:"), objc.Ptr(value)) } -// A dictionary that contains all the headers of 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/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/1621569-relateduniqueidentifier?language=objc +func (s_ SearchableItemAttributeSet) RelatedUniqueIdentifier() string { + rv := objc.Call[string](s_, objc.Sel("relatedUniqueIdentifier")) return rv } -// A dictionary that contains all the headers of 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/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/1621569-relateduniqueidentifier?language=objc +func (s_ SearchableItemAttributeSet) SetRelatedUniqueIdentifier(value string) { + objc.Call[objc.Void](s_, objc.Sel("setRelatedUniqueIdentifier:"), value) } -// A localized string that contains the name of the item, suitable to display in the user interface. [Full Topic] +// The date and time related to the GPS value. [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/1620587-gpsdatestamp?language=objc +func (s_ SearchableItemAttributeSet) GPSDateStamp() foundation.Date { + rv := objc.Call[foundation.Date](s_, objc.Sel("GPSDateStamp")) return rv } -// A localized string that contains the name of the item, suitable to display in the user interface. [Full Topic] +// The date and time related to the GPS value. [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/1620587-gpsdatestamp?language=objc +func (s_ SearchableItemAttributeSet) SetGPSDateStamp(value foundation.IDate) { + objc.Call[objc.Void](s_, objc.Sel("setGPSDateStamp:"), objc.Ptr(value)) +} + +// 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/1621660-contenttypetree?language=objc +func (s_ SearchableItemAttributeSet) ContentTypeTree() []string { + rv := objc.Call[[]string](s_, objc.Sel("contentTypeTree")) + return rv +} + +// 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/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 file URL of the content to index. [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/1621651-contenturl?language=objc +func (s_ SearchableItemAttributeSet) ContentURL() foundation.URL { + rv := objc.Call[foundation.URL](s_, objc.Sel("contentURL")) return rv } -// The composer of the song or audio composition that the audio file contains. [Full Topic] +// The file URL of the content to index. [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/1621651-contenturl?language=objc +func (s_ SearchableItemAttributeSet) SetContentURL(value foundation.IURL) { + objc.Call[objc.Void](s_, objc.Sel("setContentURL:"), objc.Ptr(value)) } -// The HTML content of the document encoded as an NSData object representing a UTF-8 encoded string. [Full Topic] +// The resolution height of the image, in DPI. [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/1621526-resolutionheightdpi?language=objc +func (s_ SearchableItemAttributeSet) ResolutionHeightDPI() foundation.Number { + rv := objc.Call[foundation.Number](s_, objc.Sel("resolutionHeightDPI")) return rv } -// The HTML content of the document encoded as an NSData object representing a UTF-8 encoded string. [Full Topic] +// The resolution height of the image, in DPI. [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/1621526-resolutionheightdpi?language=objc +func (s_ SearchableItemAttributeSet) SetResolutionHeightDPI(value foundation.INumber) { + objc.Call[objc.Void](s_, objc.Sel("setResolutionHeightDPI:"), objc.Ptr(value)) } -// A formal identifier that references the document the item represents. [Full Topic] +// The title of the container to which the item belongs. [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/1621661-containertitle?language=objc +func (s_ SearchableItemAttributeSet) ContainerTitle() string { + rv := objc.Call[string](s_, objc.Sel("containerTitle")) return rv } -// A formal identifier that references the document the item represents. [Full Topic] +// The title of the container to which the item belongs. [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/1621661-containertitle?language=objc +func (s_ SearchableItemAttributeSet) SetContainerTitle(value string) { + objc.Call[objc.Void](s_, objc.Sel("setContainerTitle:"), value) } -// The number of bits per sample. [Full Topic] +// Indicates if the image file has an alpha channel. [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/1621518-hasalphachannel?language=objc +func (s_ SearchableItemAttributeSet) HasAlphaChannel() foundation.Number { + rv := objc.Call[foundation.Number](s_, objc.Sel("hasAlphaChannel")) return rv } -// The number of bits per sample. [Full Topic] +// Indicates if the image file has an alpha channel. [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:"), objc.Ptr(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:"), objc.Ptr(value)) } -// An array of keywords associated with the item, such as work, birthday, important, and so on. [Full Topic] +// A description of the rating. [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/1616037-ratingdescription?language=objc +func (s_ SearchableItemAttributeSet) RatingDescription() string { + rv := objc.Call[string](s_, objc.Sel("ratingDescription")) return rv } -// An array of keywords associated with the item, such as work, birthday, important, and so on. [Full Topic] +// A description of the rating. [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/1616037-ratingdescription?language=objc +func (s_ SearchableItemAttributeSet) SetRatingDescription(value string) { + objc.Call[objc.Void](s_, objc.Sel("setRatingDescription:"), 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 smallest F number of the lens. [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/1621545-maxaperture?language=objc +func (s_ SearchableItemAttributeSet) MaxAperture() foundation.Number { + rv := objc.Call[foundation.Number](s_, objc.Sel("maxAperture")) 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 smallest F number of the lens. [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/1621545-maxaperture?language=objc +func (s_ SearchableItemAttributeSet) SetMaxAperture(value foundation.INumber) { + objc.Call[objc.Void](s_, objc.Sel("setMaxAperture:"), objc.Ptr(value)) } -// An array of names representing the authors who have worked on the message. [Full Topic] +// The metering mode. [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/1621538-meteringmode?language=objc +func (s_ SearchableItemAttributeSet) MeteringMode() string { + rv := objc.Call[string](s_, objc.Sel("meteringMode")) return rv } -// An array of names representing the authors who have worked on the message. [Full Topic] +// The metering mode. [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/1621538-meteringmode?language=objc +func (s_ SearchableItemAttributeSet) SetMeteringMode(value string) { + objc.Call[objc.Void](s_, objc.Sel("setMeteringMode:"), value) } -// A value that indicates if the media is local. [Full Topic] +// The date on which the file was last used. [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/1616018-lastuseddate?language=objc +func (s_ SearchableItemAttributeSet) LastUsedDate() foundation.Date { + rv := objc.Call[foundation.Date](s_, objc.Sel("lastUsedDate")) return rv } -// A value that indicates if the media is local. [Full Topic] +// The date on which the file was last used. [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:"), objc.Ptr(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:"), objc.Ptr(value)) } -// The tempo of the music that the audio file contains, in beats per minute. [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/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/1621564-supportsnavigation?language=objc +func (s_ SearchableItemAttributeSet) SupportsNavigation() foundation.Number { + rv := objc.Call[foundation.Number](s_, objc.Sel("supportsNavigation")) return rv } -// The tempo of the music that the audio file contains, in beats per minute. [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/1616005-tempo?language=objc -func (s_ SearchableItemAttributeSet) SetTempo(value foundation.INumber) { - objc.Call[objc.Void](s_, objc.Sel("setTempo:"), objc.Ptr(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:"), objc.Ptr(value)) } -// Information about the GPS area. [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/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/2887563-rankinghint?language=objc +func (s_ SearchableItemAttributeSet) RankingHint() foundation.Number { + rv := objc.Call[foundation.Number](s_, objc.Sel("rankingHint")) return rv } -// Information about the GPS area. [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/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/2887563-rankinghint?language=objc +func (s_ SearchableItemAttributeSet) SetRankingHint(value foundation.INumber) { + objc.Call[objc.Void](s_, objc.Sel("setRankingHint:"), objc.Ptr(value)) } -// An array of sources from which the media was obtained. [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/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/1621659-encodingapplications?language=objc +func (s_ SearchableItemAttributeSet) EncodingApplications() []string { + rv := objc.Call[[]string](s_, objc.Sel("encodingApplications")) return rv } -// An array of sources from which the media was obtained. [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/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/1621659-encodingapplications?language=objc +func (s_ SearchableItemAttributeSet) SetEncodingApplications(value []string) { + objc.Call[objc.Void](s_, objc.Sel("setEncodingApplications:"), value) } -// A value that indicates if the camera used red-eye reduction when capturing the image. [Full Topic] +// A value that indicates if the media is local. [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/1616049-local?language=objc +func (s_ SearchableItemAttributeSet) IsLocal() foundation.Number { + rv := objc.Call[foundation.Number](s_, objc.Sel("isLocal")) return rv } -// A value that indicates if the camera used red-eye reduction when capturing the image. [Full Topic] +// A value that indicates if the media is local. [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:"), objc.Ptr(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:"), objc.Ptr(value)) } // The unique identifier for the item to which the activity is related, but not linked. [Full Topic] @@ -3175,62 +3186,47 @@ func (s_ SearchableItemAttributeSet) SetWeakRelatedUniqueIdentifier(value string objc.Call[objc.Void](s_, objc.Sel("setWeakRelatedUniqueIdentifier:"), value) } -// 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/1649310-thoroughfare?language=objc -func (s_ SearchableItemAttributeSet) Thoroughfare() string { - rv := objc.Call[string](s_, objc.Sel("thoroughfare")) - return rv -} - -// 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/1649310-thoroughfare?language=objc -func (s_ SearchableItemAttributeSet) SetThoroughfare(value string) { - objc.Call[objc.Void](s_, objc.Sel("setThoroughfare:"), value) -} - -// The orientation of the data. [Full Topic] +// A value that indicates if the focal length is 35mm. [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/1621546-focallength35mm?language=objc +func (s_ SearchableItemAttributeSet) IsFocalLength35mm() foundation.Number { + rv := objc.Call[foundation.Number](s_, objc.Sel("isFocalLength35mm")) return rv } -// The orientation of the data. [Full Topic] +// A value that indicates if the focal length is 35mm. [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:"), objc.Ptr(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:"), objc.Ptr(value)) } -// The width of the document page, in points (72 points per inch). [Full Topic] +// The copyright date of the content. [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/1616012-copyright?language=objc +func (s_ SearchableItemAttributeSet) Copyright() string { + rv := objc.Call[string](s_, objc.Sel("copyright")) return rv } -// The width of the document page, in points (72 points per inch). [Full Topic] +// The copyright date of the content. [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:"), objc.Ptr(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) } -// A value that indicates the user purchased or owns the item. [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/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/2908990-providerinplacefiletypeidentifie?language=objc +func (s_ SearchableItemAttributeSet) ProviderInPlaceFileTypeIdentifiers() []string { + rv := objc.Call[[]string](s_, objc.Sel("providerInPlaceFileTypeIdentifiers")) return rv } -// A value that indicates the user purchased or owns the item. [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/2887564-userowned?language=objc -func (s_ SearchableItemAttributeSet) SetUserOwned(value foundation.INumber) { - objc.Call[objc.Void](s_, objc.Sel("setUserOwned:"), objc.Ptr(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) } diff --git a/macos/corevideo/aliastypes.gen.go b/macos/corevideo/aliastypes.gen.go index dc6b3869..bd5df48b 100644 --- a/macos/corevideo/aliastypes.gen.go +++ b/macos/corevideo/aliastypes.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package corevideo @@ -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 CVPixelBufferCreateWithPlanarBytes is released. [Full Topic] +// 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] // // [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/doc.gen.go b/macos/corevideo/doc.gen.go index a187f2b0..6115fb16 100644 --- a/macos/corevideo/doc.gen.go +++ b/macos/corevideo/doc.gen.go @@ -1,8 +1,8 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. // Process digital video, including manipulation of individual frames, using a pipeline-based API and support for both Metal and OpenGL. // -// [Full Documentation] +// [Apple Documentation] // -// [Full Documentation]: https://developer.apple.com/documentation/corevideo?language=objc +// [Apple Documentation]: https://developer.apple.com/documentation/corevideo?language=objc package corevideo diff --git a/macos/corevideo/enumtypes.gen.go b/macos/corevideo/enumtypes.gen.go index 7fc697fb..f78e303b 100644 --- a/macos/corevideo/enumtypes.gen.go +++ b/macos/corevideo/enumtypes.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package corevideo @@ -17,7 +17,7 @@ const ( // [Full Topic]: https://developer.apple.com/documentation/corevideo/cvoptionflags?language=objc type OptionFlags uint64 -// The flags to pass to CVPixelBufferLockBaseAddress and CVPixelBufferUnlockBaseAddress. [Full Topic] +// The flags to pass to [corevideo/cvpixelbufferlockbaseaddress] and [corevideo/cvpixelbufferunlockbaseaddress]. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/corevideo/cvpixelbufferlockflags?language=objc type PixelBufferLockFlags OptionFlags diff --git a/macos/corevideo/protocols.gen.m b/macos/corevideo/protocols.gen.m index 8881c3c6..4b7ad33f 100644 --- a/macos/corevideo/protocols.gen.m +++ b/macos/corevideo/protocols.gen.m @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. #import "CoreVideo/CoreVideo.h" diff --git a/macos/fileprovider/doc.gen.go b/macos/fileprovider/doc.gen.go index 6c89d04b..ad24b758 100644 --- a/macos/fileprovider/doc.gen.go +++ b/macos/fileprovider/doc.gen.go @@ -1,8 +1,8 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. // An extension other apps use to access files and folders managed by your app and synced with a remote storage. // -// [Full Documentation] +// [Apple Documentation] // -// [Full Documentation]: https://developer.apple.com/documentation/fileprovider?language=objc +// [Apple Documentation]: https://developer.apple.com/documentation/fileprovider?language=objc package fileprovider diff --git a/macos/fileprovider/enumtypes.gen.go b/macos/fileprovider/enumtypes.gen.go index fae0bd94..a1dc9af1 100644 --- a/macos/fileprovider/enumtypes.gen.go +++ b/macos/fileprovider/enumtypes.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package fileprovider diff --git a/macos/fileprovider/file_provider_change_observer.gen.go b/macos/fileprovider/file_provider_change_observer_protocol.gen.go similarity index 70% rename from macos/fileprovider/file_provider_change_observer.gen.go rename to macos/fileprovider/file_provider_change_observer_protocol.gen.go index 17d8b3e8..f881468d 100644 --- a/macos/fileprovider/file_provider_change_observer.gen.go +++ b/macos/fileprovider/file_provider_change_observer_protocol.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package fileprovider @@ -12,8 +12,8 @@ import ( // [Full Topic]: https://developer.apple.com/documentation/fileprovider/nsfileproviderchangeobserver?language=objc type PFileProviderChangeObserver interface { // optional - FinishEnumeratingWithError(error foundation.Error) - HasFinishEnumeratingWithError() bool + DidDeleteItemsWithIdentifiers(deletedItemIdentifiers []FileProviderItemIdentifier) + HasDidDeleteItemsWithIdentifiers() bool // optional FinishEnumeratingChangesUpToSyncAnchorMoreComing(anchor FileProviderSyncAnchor, moreComing bool) @@ -24,71 +24,74 @@ type PFileProviderChangeObserver interface { HasDidUpdateItems() bool // optional - DidDeleteItemsWithIdentifiers(deletedItemIdentifiers []FileProviderItemIdentifier) - HasDidDeleteItemsWithIdentifiers() bool + FinishEnumeratingWithError(error foundation.Error) + HasFinishEnumeratingWithError() bool // optional SuggestedBatchSize() int HasSuggestedBatchSize() bool } -// A concrete type wrapper for the [PFileProviderChangeObserver] protocol. -type FileProviderChangeObserverWrapper struct { +// ensure impl type implements protocol interface +var _ PFileProviderChangeObserver = (*FileProviderChangeObserverObject)(nil) + +// A concrete type for the [PFileProviderChangeObserver] protocol. +type FileProviderChangeObserverObject struct { objc.Object } -func (f_ FileProviderChangeObserverWrapper) 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_ FileProviderChangeObserverWrapper) FinishEnumeratingWithError(error foundation.IError) { - objc.Call[objc.Void](f_, objc.Sel("finishEnumeratingWithError:"), objc.Ptr(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_ FileProviderChangeObserverWrapper) HasFinishEnumeratingChangesUpToSyncAnchorMoreComing() bool { +func (f_ FileProviderChangeObserverObject) HasFinishEnumeratingChangesUpToSyncAnchorMoreComing() bool { return f_.RespondsToSelector(objc.Sel("finishEnumeratingChangesUpToSyncAnchor:moreComing:")) } // Tells the observer that all of the changes have been enumerated up to the specified sync anchor. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/fileprovider/nsfileproviderchangeobserver/2880220-finishenumeratingchangesuptosync?language=objc -func (f_ FileProviderChangeObserverWrapper) FinishEnumeratingChangesUpToSyncAnchorMoreComing(anchor FileProviderSyncAnchor, moreComing bool) { +func (f_ FileProviderChangeObserverObject) FinishEnumeratingChangesUpToSyncAnchorMoreComing(anchor FileProviderSyncAnchor, moreComing bool) { objc.Call[objc.Void](f_, objc.Sel("finishEnumeratingChangesUpToSyncAnchor:moreComing:"), anchor, moreComing) } -func (f_ FileProviderChangeObserverWrapper) HasDidUpdateItems() bool { +func (f_ FileProviderChangeObserverObject) HasDidUpdateItems() bool { return f_.RespondsToSelector(objc.Sel("didUpdateItems:")) } // Tells the observer that the specified items have been updated. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/fileprovider/nsfileproviderchangeobserver/2879607-didupdateitems?language=objc -func (f_ FileProviderChangeObserverWrapper) DidUpdateItems(updatedItems []objc.IObject) { +func (f_ FileProviderChangeObserverObject) DidUpdateItems(updatedItems []objc.Object) { objc.Call[objc.Void](f_, objc.Sel("didUpdateItems:"), updatedItems) } -func (f_ FileProviderChangeObserverWrapper) 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_ FileProviderChangeObserverWrapper) 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:"), objc.Ptr(error)) } -func (f_ FileProviderChangeObserverWrapper) HasSuggestedBatchSize() bool { +func (f_ FileProviderChangeObserverObject) HasSuggestedBatchSize() bool { return f_.RespondsToSelector(objc.Sel("suggestedBatchSize")) } // The batch size that the system recommends. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/fileprovider/nsfileproviderchangeobserver/3656525-suggestedbatchsize?language=objc -func (f_ FileProviderChangeObserverWrapper) SuggestedBatchSize() int { +func (f_ FileProviderChangeObserverObject) SuggestedBatchSize() int { rv := objc.Call[int](f_, objc.Sel("suggestedBatchSize")) return rv } diff --git a/macos/fileprovider/file_provider_custom_action.gen.go b/macos/fileprovider/file_provider_custom_action_protocol.gen.go similarity index 61% rename from macos/fileprovider/file_provider_custom_action.gen.go rename to macos/fileprovider/file_provider_custom_action_protocol.gen.go index cb3462ca..420d963f 100644 --- a/macos/fileprovider/file_provider_custom_action.gen.go +++ b/macos/fileprovider/file_provider_custom_action_protocol.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package fileprovider @@ -12,23 +12,26 @@ import ( // [Full Topic]: https://developer.apple.com/documentation/fileprovider/nsfileprovidercustomaction?language=objc type PFileProviderCustomAction interface { // optional - PerformActionWithIdentifierOnItemsWithIdentifiersCompletionHandler(actionIdentifier FileProviderExtensionActionIdentifier, itemIdentifiers []FileProviderItemIdentifier, completionHandler func(error foundation.Error)) foundation.IProgress + PerformActionWithIdentifierOnItemsWithIdentifiersCompletionHandler(actionIdentifier FileProviderExtensionActionIdentifier, itemIdentifiers []FileProviderItemIdentifier, completionHandler func(error foundation.Error)) foundation.Progress HasPerformActionWithIdentifierOnItemsWithIdentifiersCompletionHandler() bool } -// A concrete type wrapper for the [PFileProviderCustomAction] protocol. -type FileProviderCustomActionWrapper struct { +// ensure impl type implements protocol interface +var _ PFileProviderCustomAction = (*FileProviderCustomActionObject)(nil) + +// A concrete type for the [PFileProviderCustomAction] protocol. +type FileProviderCustomActionObject struct { objc.Object } -func (f_ FileProviderCustomActionWrapper) HasPerformActionWithIdentifierOnItemsWithIdentifiersCompletionHandler() bool { +func (f_ FileProviderCustomActionObject) HasPerformActionWithIdentifierOnItemsWithIdentifiersCompletionHandler() bool { return f_.RespondsToSelector(objc.Sel("performActionWithIdentifier:onItemsWithIdentifiers:completionHandler:")) } // Tells the File Provider extension to perform a custom action. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/fileprovider/nsfileprovidercustomaction/3553293-performactionwithidentifier?language=objc -func (f_ FileProviderCustomActionWrapper) PerformActionWithIdentifierOnItemsWithIdentifiersCompletionHandler(actionIdentifier FileProviderExtensionActionIdentifier, itemIdentifiers []FileProviderItemIdentifier, completionHandler func(error foundation.Error)) foundation.Progress { +func (f_ FileProviderCustomActionObject) PerformActionWithIdentifierOnItemsWithIdentifiersCompletionHandler(actionIdentifier FileProviderExtensionActionIdentifier, itemIdentifiers []FileProviderItemIdentifier, completionHandler func(error foundation.Error)) foundation.Progress { rv := objc.Call[foundation.Progress](f_, objc.Sel("performActionWithIdentifier:onItemsWithIdentifiers:completionHandler:"), actionIdentifier, itemIdentifiers, completionHandler) return rv } diff --git a/macos/fileprovider/file_provider_domain.gen.go b/macos/fileprovider/file_provider_domain.gen.go index d34bf057..822190cb 100644 --- a/macos/fileprovider/file_provider_domain.gen.go +++ b/macos/fileprovider/file_provider_domain.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package fileprovider @@ -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) - DisplayName() string + UserEnabled() bool Identifier() FileProviderDomainIdentifier + DisplayName() string + IsHidden() bool + SetHidden(value bool) BackingStoreIdentity() []byte } @@ -61,10 +61,6 @@ func (fc _FileProviderDomainClass) Alloc() FileProviderDomain { return rv } -func FileProviderDomain_Alloc() FileProviderDomain { - return FileProviderDomainClass.Alloc() -} - func (fc _FileProviderDomainClass) New() FileProviderDomain { rv := objc.Call[FileProviderDomain](fc, objc.Sel("new")) rv.Autorelease() @@ -80,29 +76,6 @@ 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 @@ -126,11 +99,11 @@ func (f_ FileProviderDomain) SetTestingModes(value FileProviderDomainTestingMode objc.Call[objc.Void](f_, objc.Sel("setTestingModes:"), value) } -// The name of the domain displayed in the user interface. [Full Topic] +// 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/2882119-displayname?language=objc -func (f_ FileProviderDomain) DisplayName() string { - rv := objc.Call[string](f_, objc.Sel("displayName")) +// [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 } @@ -142,6 +115,29 @@ func (f_ FileProviderDomain) Identifier() FileProviderDomainIdentifier { 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 +func (f_ FileProviderDomain) DisplayName() string { + rv := objc.Call[string](f_, objc.Sel("displayName")) + 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 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_domain_state.gen.go b/macos/fileprovider/file_provider_domain_state_protocol.gen.go similarity index 66% rename from macos/fileprovider/file_provider_domain_state.gen.go rename to macos/fileprovider/file_provider_domain_state_protocol.gen.go index 3e69db56..aaa32205 100644 --- a/macos/fileprovider/file_provider_domain_state.gen.go +++ b/macos/fileprovider/file_provider_domain_state_protocol.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package fileprovider @@ -16,35 +16,38 @@ type PFileProviderDomainState interface { HasUserInfo() bool // optional - DomainVersion() IFileProviderDomainVersion + DomainVersion() FileProviderDomainVersion HasDomainVersion() bool } -// A concrete type wrapper for the [PFileProviderDomainState] protocol. -type FileProviderDomainStateWrapper struct { +// ensure impl type implements protocol interface +var _ PFileProviderDomainState = (*FileProviderDomainStateObject)(nil) + +// A concrete type for the [PFileProviderDomainState] protocol. +type FileProviderDomainStateObject struct { objc.Object } -func (f_ FileProviderDomainStateWrapper) HasUserInfo() bool { +func (f_ FileProviderDomainStateObject) HasUserInfo() bool { return f_.RespondsToSelector(objc.Sel("userInfo")) } // Global state information about the current domain version. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/fileprovider/nsfileproviderdomainstate/3727820-userinfo?language=objc -func (f_ FileProviderDomainStateWrapper) UserInfo() foundation.Dictionary { +func (f_ FileProviderDomainStateObject) UserInfo() foundation.Dictionary { rv := objc.Call[foundation.Dictionary](f_, objc.Sel("userInfo")) return rv } -func (f_ FileProviderDomainStateWrapper) HasDomainVersion() bool { +func (f_ FileProviderDomainStateObject) HasDomainVersion() bool { return f_.RespondsToSelector(objc.Sel("domainVersion")) } // An opaque object that uniquely identifies the domain’s version. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/fileprovider/nsfileproviderdomainstate/3727819-domainversion?language=objc -func (f_ FileProviderDomainStateWrapper) DomainVersion() FileProviderDomainVersion { +func (f_ FileProviderDomainStateObject) DomainVersion() FileProviderDomainVersion { rv := objc.Call[FileProviderDomainVersion](f_, objc.Sel("domainVersion")) return rv } diff --git a/macos/fileprovider/file_provider_domain_version.gen.go b/macos/fileprovider/file_provider_domain_version.gen.go index 0700637d..d9c15a6b 100644 --- a/macos/fileprovider/file_provider_domain_version.gen.go +++ b/macos/fileprovider/file_provider_domain_version.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package fileprovider @@ -41,10 +41,6 @@ func (fc _FileProviderDomainVersionClass) Alloc() FileProviderDomainVersion { return rv } -func FileProviderDomainVersion_Alloc() FileProviderDomainVersion { - return FileProviderDomainVersionClass.Alloc() -} - func (fc _FileProviderDomainVersionClass) New() FileProviderDomainVersion { rv := objc.Call[FileProviderDomainVersion](fc, objc.Sel("new")) rv.Autorelease() diff --git a/macos/fileprovider/file_provider_enumerating.gen.go b/macos/fileprovider/file_provider_enumerating_protocol.gen.go similarity index 52% rename from macos/fileprovider/file_provider_enumerating.gen.go rename to macos/fileprovider/file_provider_enumerating_protocol.gen.go index d246affa..c098f39c 100644 --- a/macos/fileprovider/file_provider_enumerating.gen.go +++ b/macos/fileprovider/file_provider_enumerating_protocol.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package fileprovider @@ -12,23 +12,26 @@ import ( // [Full Topic]: https://developer.apple.com/documentation/fileprovider/nsfileproviderenumerating?language=objc type PFileProviderEnumerating interface { // optional - EnumeratorForContainerItemIdentifierRequestError(containerItemIdentifier FileProviderItemIdentifier, request FileProviderRequest, error foundation.Error) PFileProviderEnumerator + EnumeratorForContainerItemIdentifierRequestError(containerItemIdentifier FileProviderItemIdentifier, request FileProviderRequest, error foundation.Error) FileProviderEnumeratorObject HasEnumeratorForContainerItemIdentifierRequestError() bool } -// A concrete type wrapper for the [PFileProviderEnumerating] protocol. -type FileProviderEnumeratingWrapper struct { +// ensure impl type implements protocol interface +var _ PFileProviderEnumerating = (*FileProviderEnumeratingObject)(nil) + +// A concrete type for the [PFileProviderEnumerating] protocol. +type FileProviderEnumeratingObject struct { objc.Object } -func (f_ FileProviderEnumeratingWrapper) HasEnumeratorForContainerItemIdentifierRequestError() bool { +func (f_ FileProviderEnumeratingObject) HasEnumeratorForContainerItemIdentifierRequestError() bool { return f_.RespondsToSelector(objc.Sel("enumeratorForContainerItemIdentifier:request:error:")) } // Tells the file provider to return an enumerator for the provided directory. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/fileprovider/nsfileproviderenumerating/3553295-enumeratorforcontaineritemidenti?language=objc -func (f_ FileProviderEnumeratingWrapper) EnumeratorForContainerItemIdentifierRequestError(containerItemIdentifier FileProviderItemIdentifier, request IFileProviderRequest, error foundation.IError) FileProviderEnumeratorWrapper { - rv := objc.Call[FileProviderEnumeratorWrapper](f_, objc.Sel("enumeratorForContainerItemIdentifier:request:error:"), containerItemIdentifier, objc.Ptr(request), objc.Ptr(error)) +func (f_ FileProviderEnumeratingObject) EnumeratorForContainerItemIdentifierRequestError(containerItemIdentifier FileProviderItemIdentifier, request FileProviderRequest, error foundation.Error) FileProviderEnumeratorObject { + rv := objc.Call[FileProviderEnumeratorObject](f_, objc.Sel("enumeratorForContainerItemIdentifier:request:error:"), containerItemIdentifier, objc.Ptr(request), objc.Ptr(error)) return rv } diff --git a/macos/fileprovider/file_provider_enumeration_observer.gen.go b/macos/fileprovider/file_provider_enumeration_observer_protocol.gen.go similarity index 69% rename from macos/fileprovider/file_provider_enumeration_observer.gen.go rename to macos/fileprovider/file_provider_enumeration_observer_protocol.gen.go index e20fcbcc..6e75adf6 100644 --- a/macos/fileprovider/file_provider_enumeration_observer.gen.go +++ b/macos/fileprovider/file_provider_enumeration_observer_protocol.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package fileprovider @@ -11,10 +11,6 @@ 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 @@ -23,57 +19,64 @@ type PFileProviderEnumerationObserver interface { FinishEnumeratingUpToPage(nextPage FileProviderPage) HasFinishEnumeratingUpToPage() bool + // optional + FinishEnumeratingWithError(error foundation.Error) + HasFinishEnumeratingWithError() bool + // optional SuggestedPageSize() int HasSuggestedPageSize() bool } -// A concrete type wrapper for the [PFileProviderEnumerationObserver] protocol. -type FileProviderEnumerationObserverWrapper struct { - objc.Object -} +// ensure impl type implements protocol interface +var _ PFileProviderEnumerationObserver = (*FileProviderEnumerationObserverObject)(nil) -func (f_ FileProviderEnumerationObserverWrapper) 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_ FileProviderEnumerationObserverWrapper) FinishEnumeratingWithError(error foundation.IError) { - objc.Call[objc.Void](f_, objc.Sel("finishEnumeratingWithError:"), objc.Ptr(error)) +// A concrete type for the [PFileProviderEnumerationObserver] protocol. +type FileProviderEnumerationObserverObject struct { + objc.Object } -func (f_ FileProviderEnumerationObserverWrapper) HasDidEnumerateItems() bool { +func (f_ FileProviderEnumerationObserverObject) HasDidEnumerateItems() bool { return f_.RespondsToSelector(objc.Sel("didEnumerateItems:")) } // Provides a batch of enumerated items. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/fileprovider/nsfileproviderenumerationobserver/2879615-didenumerateitems?language=objc -func (f_ FileProviderEnumerationObserverWrapper) DidEnumerateItems(updatedItems []objc.IObject) { +func (f_ FileProviderEnumerationObserverObject) DidEnumerateItems(updatedItems []objc.Object) { objc.Call[objc.Void](f_, objc.Sel("didEnumerateItems:"), updatedItems) } -func (f_ FileProviderEnumerationObserverWrapper) HasFinishEnumeratingUpToPage() bool { +func (f_ FileProviderEnumerationObserverObject) HasFinishEnumeratingUpToPage() bool { return f_.RespondsToSelector(objc.Sel("finishEnumeratingUpToPage:")) } // Tells the observer that all of the items have been enumerated up to the specified page. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/fileprovider/nsfileproviderenumerationobserver/2879602-finishenumeratinguptopage?language=objc -func (f_ FileProviderEnumerationObserverWrapper) FinishEnumeratingUpToPage(nextPage FileProviderPage) { +func (f_ FileProviderEnumerationObserverObject) FinishEnumeratingUpToPage(nextPage FileProviderPage) { objc.Call[objc.Void](f_, objc.Sel("finishEnumeratingUpToPage:"), nextPage) } -func (f_ FileProviderEnumerationObserverWrapper) HasSuggestedPageSize() bool { +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:"), objc.Ptr(error)) +} + +func (f_ FileProviderEnumerationObserverObject) HasSuggestedPageSize() bool { return f_.RespondsToSelector(objc.Sel("suggestedPageSize")) } // The page size that the system recommends. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/fileprovider/nsfileproviderenumerationobserver/3656526-suggestedpagesize?language=objc -func (f_ FileProviderEnumerationObserverWrapper) SuggestedPageSize() int { +func (f_ FileProviderEnumerationObserverObject) SuggestedPageSize() int { rv := objc.Call[int](f_, objc.Sel("suggestedPageSize")) return rv } diff --git a/macos/fileprovider/file_provider_enumerator.gen.go b/macos/fileprovider/file_provider_enumerator_protocol.gen.go similarity index 66% rename from macos/fileprovider/file_provider_enumerator.gen.go rename to macos/fileprovider/file_provider_enumerator_protocol.gen.go index b3562a93..d767fe93 100644 --- a/macos/fileprovider/file_provider_enumerator.gen.go +++ b/macos/fileprovider/file_provider_enumerator_protocol.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package fileprovider @@ -11,12 +11,12 @@ import ( // [Full Topic]: https://developer.apple.com/documentation/fileprovider/nsfileproviderenumerator?language=objc type PFileProviderEnumerator interface { // optional - EnumerateChangesForObserverFromSyncAnchor(observer FileProviderChangeObserverWrapper, syncAnchor FileProviderSyncAnchor) - HasEnumerateChangesForObserverFromSyncAnchor() bool + EnumerateItemsForObserverStartingAtPage(observer FileProviderEnumerationObserverObject, page FileProviderPage) + HasEnumerateItemsForObserverStartingAtPage() bool // optional - EnumerateItemsForObserverStartingAtPage(observer FileProviderEnumerationObserverWrapper, page FileProviderPage) - HasEnumerateItemsForObserverStartingAtPage() bool + EnumerateChangesForObserverFromSyncAnchor(observer FileProviderChangeObserverObject, syncAnchor FileProviderSyncAnchor) + HasEnumerateChangesForObserverFromSyncAnchor() bool // optional CurrentSyncAnchorWithCompletionHandler(completionHandler func(currentAnchor FileProviderSyncAnchor)) @@ -27,53 +27,56 @@ type PFileProviderEnumerator interface { HasInvalidate() bool } -// A concrete type wrapper for the [PFileProviderEnumerator] protocol. -type FileProviderEnumeratorWrapper struct { - objc.Object -} +// ensure impl type implements protocol interface +var _ PFileProviderEnumerator = (*FileProviderEnumeratorObject)(nil) -func (f_ FileProviderEnumeratorWrapper) HasEnumerateChangesForObserverFromSyncAnchor() bool { - return f_.RespondsToSelector(objc.Sel("enumerateChangesForObserver:fromSyncAnchor:")) -} - -// Requests the next batch of changes after the specified sync anchor. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/fileprovider/nsfileproviderenumerator/2879608-enumeratechangesforobserver?language=objc -func (f_ FileProviderEnumeratorWrapper) EnumerateChangesForObserverFromSyncAnchor(observer PFileProviderChangeObserver, syncAnchor FileProviderSyncAnchor) { - po0 := objc.WrapAsProtocol("NSFileProviderChangeObserver", observer) - objc.Call[objc.Void](f_, objc.Sel("enumerateChangesForObserver:fromSyncAnchor:"), po0, syncAnchor) +// A concrete type for the [PFileProviderEnumerator] protocol. +type FileProviderEnumeratorObject struct { + objc.Object } -func (f_ FileProviderEnumeratorWrapper) HasEnumerateItemsForObserverStartingAtPage() bool { +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_ FileProviderEnumeratorWrapper) EnumerateItemsForObserverStartingAtPage(observer PFileProviderEnumerationObserver, page FileProviderPage) { +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_ FileProviderEnumeratorWrapper) HasCurrentSyncAnchorWithCompletionHandler() bool { +func (f_ FileProviderEnumeratorObject) HasEnumerateChangesForObserverFromSyncAnchor() bool { + return f_.RespondsToSelector(objc.Sel("enumerateChangesForObserver:fromSyncAnchor:")) +} + +// Requests the next batch of changes after the specified sync anchor. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/fileprovider/nsfileproviderenumerator/2879608-enumeratechangesforobserver?language=objc +func (f_ FileProviderEnumeratorObject) EnumerateChangesForObserverFromSyncAnchor(observer FileProviderChangeObserverObject, syncAnchor FileProviderSyncAnchor) { + po0 := objc.WrapAsProtocol("NSFileProviderChangeObserver", observer) + objc.Call[objc.Void](f_, objc.Sel("enumerateChangesForObserver:fromSyncAnchor:"), po0, syncAnchor) +} + +func (f_ FileProviderEnumeratorObject) HasCurrentSyncAnchorWithCompletionHandler() bool { return f_.RespondsToSelector(objc.Sel("currentSyncAnchorWithCompletionHandler:")) } // Returns the current sync anchor. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/fileprovider/nsfileproviderenumerator/2890930-currentsyncanchorwithcompletionh?language=objc -func (f_ FileProviderEnumeratorWrapper) CurrentSyncAnchorWithCompletionHandler(completionHandler func(currentAnchor FileProviderSyncAnchor)) { +func (f_ FileProviderEnumeratorObject) CurrentSyncAnchorWithCompletionHandler(completionHandler func(currentAnchor FileProviderSyncAnchor)) { objc.Call[objc.Void](f_, objc.Sel("currentSyncAnchorWithCompletionHandler:"), completionHandler) } -func (f_ FileProviderEnumeratorWrapper) HasInvalidate() bool { +func (f_ FileProviderEnumeratorObject) HasInvalidate() bool { return f_.RespondsToSelector(objc.Sel("invalidate")) } // Stops the enumeration of items and changes. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/fileprovider/nsfileproviderenumerator/2879609-invalidate?language=objc -func (f_ FileProviderEnumeratorWrapper) Invalidate() { +func (f_ FileProviderEnumeratorObject) Invalidate() { objc.Call[objc.Void](f_, objc.Sel("invalidate")) } diff --git a/macos/fileprovider/file_provider_incremental_content_fetching.gen.go b/macos/fileprovider/file_provider_incremental_content_fetching_protocol.gen.go similarity index 62% rename from macos/fileprovider/file_provider_incremental_content_fetching.gen.go rename to macos/fileprovider/file_provider_incremental_content_fetching_protocol.gen.go index d6ed056d..878f1a76 100644 --- a/macos/fileprovider/file_provider_incremental_content_fetching.gen.go +++ b/macos/fileprovider/file_provider_incremental_content_fetching_protocol.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package fileprovider @@ -12,23 +12,26 @@ import ( // [Full Topic]: https://developer.apple.com/documentation/fileprovider/nsfileproviderincrementalcontentfetching?language=objc type PFileProviderIncrementalContentFetching interface { // optional - FetchContentsForItemWithIdentifierVersionUsingExistingContentsAtURLExistingVersionRequestCompletionHandler(itemIdentifier FileProviderItemIdentifier, requestedVersion FileProviderItemVersion, existingContents foundation.URL, existingVersion FileProviderItemVersion, request FileProviderRequest, completionHandler func(fileContents foundation.URL, item objc.Object, error foundation.Error)) foundation.IProgress + FetchContentsForItemWithIdentifierVersionUsingExistingContentsAtURLExistingVersionRequestCompletionHandler(itemIdentifier FileProviderItemIdentifier, requestedVersion FileProviderItemVersion, existingContents foundation.URL, existingVersion FileProviderItemVersion, request FileProviderRequest, completionHandler func(fileContents foundation.URL, item objc.Object, error foundation.Error)) foundation.Progress HasFetchContentsForItemWithIdentifierVersionUsingExistingContentsAtURLExistingVersionRequestCompletionHandler() bool } -// A concrete type wrapper for the [PFileProviderIncrementalContentFetching] protocol. -type FileProviderIncrementalContentFetchingWrapper struct { +// ensure impl type implements protocol interface +var _ PFileProviderIncrementalContentFetching = (*FileProviderIncrementalContentFetchingObject)(nil) + +// A concrete type for the [PFileProviderIncrementalContentFetching] protocol. +type FileProviderIncrementalContentFetchingObject struct { objc.Object } -func (f_ FileProviderIncrementalContentFetchingWrapper) HasFetchContentsForItemWithIdentifierVersionUsingExistingContentsAtURLExistingVersionRequestCompletionHandler() bool { +func (f_ FileProviderIncrementalContentFetchingObject) HasFetchContentsForItemWithIdentifierVersionUsingExistingContentsAtURLExistingVersionRequestCompletionHandler() bool { return f_.RespondsToSelector(objc.Sel("fetchContentsForItemWithIdentifier:version:usingExistingContentsAtURL:existingVersion:request:completionHandler:")) } // Asks the file provider for an update of the specified item. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/fileprovider/nsfileproviderincrementalcontentfetching/3553297-fetchcontentsforitemwithidentifi?language=objc -func (f_ FileProviderIncrementalContentFetchingWrapper) FetchContentsForItemWithIdentifierVersionUsingExistingContentsAtURLExistingVersionRequestCompletionHandler(itemIdentifier FileProviderItemIdentifier, requestedVersion IFileProviderItemVersion, existingContents foundation.IURL, existingVersion IFileProviderItemVersion, request IFileProviderRequest, completionHandler func(fileContents foundation.URL, item objc.Object, error foundation.Error)) foundation.Progress { +func (f_ FileProviderIncrementalContentFetchingObject) FetchContentsForItemWithIdentifierVersionUsingExistingContentsAtURLExistingVersionRequestCompletionHandler(itemIdentifier FileProviderItemIdentifier, requestedVersion FileProviderItemVersion, existingContents foundation.URL, existingVersion FileProviderItemVersion, request FileProviderRequest, completionHandler func(fileContents foundation.URL, item objc.Object, error foundation.Error)) foundation.Progress { rv := objc.Call[foundation.Progress](f_, objc.Sel("fetchContentsForItemWithIdentifier:version:usingExistingContentsAtURL:existingVersion:request:completionHandler:"), itemIdentifier, objc.Ptr(requestedVersion), objc.Ptr(existingContents), objc.Ptr(existingVersion), objc.Ptr(request), completionHandler) return rv } diff --git a/macos/fileprovider/file_provider_item_decorating.gen.go b/macos/fileprovider/file_provider_item_decorating_protocol.gen.go similarity index 62% rename from macos/fileprovider/file_provider_item_decorating.gen.go rename to macos/fileprovider/file_provider_item_decorating_protocol.gen.go index 5f0b72ee..b28752ae 100644 --- a/macos/fileprovider/file_provider_item_decorating.gen.go +++ b/macos/fileprovider/file_provider_item_decorating_protocol.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package fileprovider @@ -15,19 +15,22 @@ type PFileProviderItemDecorating interface { HasDecorations() bool } -// A concrete type wrapper for the [PFileProviderItemDecorating] protocol. -type FileProviderItemDecoratingWrapper struct { +// ensure impl type implements protocol interface +var _ PFileProviderItemDecorating = (*FileProviderItemDecoratingObject)(nil) + +// A concrete type for the [PFileProviderItemDecorating] protocol. +type FileProviderItemDecoratingObject struct { objc.Object } -func (f_ FileProviderItemDecoratingWrapper) HasDecorations() bool { +func (f_ FileProviderItemDecoratingObject) HasDecorations() bool { return f_.RespondsToSelector(objc.Sel("decorations")) } // Asks the item for an array of decorations. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/fileprovider/nsfileprovideritemdecorating/3172722-decorations?language=objc -func (f_ FileProviderItemDecoratingWrapper) Decorations() []FileProviderItemDecorationIdentifier { +func (f_ FileProviderItemDecoratingObject) Decorations() []FileProviderItemDecorationIdentifier { rv := objc.Call[[]FileProviderItemDecorationIdentifier](f_, objc.Sel("decorations")) return rv } diff --git a/macos/fileprovider/file_provider_item_version.gen.go b/macos/fileprovider/file_provider_item_version.gen.go index 02b0c4b1..bb70c62e 100644 --- a/macos/fileprovider/file_provider_item_version.gen.go +++ b/macos/fileprovider/file_provider_item_version.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package fileprovider @@ -18,8 +18,8 @@ type _FileProviderItemVersionClass struct { // An interface definition for the [FileProviderItemVersion] class. type IFileProviderItemVersion interface { objc.IObject - MetadataVersion() []byte ContentVersion() []byte + MetadataVersion() []byte } // The version of the item’s content and its metadata. [Full Topic] @@ -54,10 +54,6 @@ func (fc _FileProviderItemVersionClass) Alloc() FileProviderItemVersion { return rv } -func FileProviderItemVersion_Alloc() FileProviderItemVersion { - return FileProviderItemVersionClass.Alloc() -} - func (fc _FileProviderItemVersionClass) New() FileProviderItemVersion { rv := objc.Call[FileProviderItemVersion](fc, objc.Sel("new")) rv.Autorelease() @@ -73,6 +69,14 @@ 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 @@ -95,11 +99,3 @@ 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 8ff64349..765dae3a 100644 --- a/macos/fileprovider/file_provider_manager.gen.go +++ b/macos/fileprovider/file_provider_manager.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package fileprovider @@ -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)) - 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 foundation.IError) []FileProviderTestingOperationWrapper - WaitForChangesOnItemsBelowItemWithIdentifierCompletionHandler(itemIdentifier FileProviderItemIdentifier, completionHandler func(error foundation.Error)) GlobalProgressForKind(kind foundation.ProgressFileOperationKind) foundation.Progress - EnumeratorForMaterializedItems() FileProviderEnumeratorWrapper GetUserVisibleURLForItemIdentifierCompletionHandler(itemIdentifier FileProviderItemIdentifier, completionHandler func(userVisibleFile foundation.URL, error foundation.Error)) + ListAvailableTestingOperationsWithError(error foundation.IError) []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 foundation.IError) foundation.Dictionary 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 foundation.IError) foundation.URL - RunTestingOperationsError(operations []PFileProviderTestingOperation, error foundation.IError) foundation.Dictionary - EnumeratorForPendingItems() FileProviderPendingSetEnumeratorWrapper + 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] @@ -67,10 +67,6 @@ func (fc _FileProviderManagerClass) Alloc() FileProviderManager { return rv } -func FileProviderManager_Alloc() FileProviderManager { - return FileProviderManagerClass.Alloc() -} - func (fc _FileProviderManagerClass) New() FileProviderManager { rv := objc.Call[FileProviderManager](fc, objc.Sel("new")) rv.Autorelease() @@ -86,20 +82,6 @@ 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:"), objc.Ptr(error), completionHandler) -} - // Requests a notification after the domain stabilizes. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/fileprovider/nsfileprovidermanager/3567073-waitforstabilizationwithcompleti?language=objc @@ -107,53 +89,56 @@ func (f_ FileProviderManager) WaitForStabilizationWithCompletionHandler(completi objc.Call[objc.Void](f_, objc.Sel("waitForStabilizationWithCompletionHandler:"), completionHandler) } -// Returns all of the File Provider extension's domains. [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/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/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 } -// Returns all of the File Provider extension's domains. [Full Topic] +// Returns the user-visible URL for an item. [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/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 all domains from the File Provider extension. [Full Topic] +// Lists all the operations that are ready for scheduling. [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/3727823-listavailabletestingoperationswi?language=objc +func (f_ FileProviderManager) ListAvailableTestingOperationsWithError(error foundation.IError) []FileProviderTestingOperationObject { + rv := objc.Call[[]FileProviderTestingOperationObject](f_, objc.Sel("listAvailableTestingOperationsWithError:"), objc.Ptr(error)) + return rv } -// Removes all domains from the File Provider extension. [Full Topic] +// Adds a domain to 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/2890934-adddomain?language=objc +func (fc _FileProviderManagerClass) AddDomainCompletionHandler(domain IFileProviderDomain, completionHandler func(error foundation.Error)) { + objc.Call[objc.Void](fc, objc.Sel("addDomain:completionHandler:"), objc.Ptr(domain), completionHandler) } -// 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 FileProviderManager_AddDomainCompletionHandler(domain IFileProviderDomain, completionHandler func(error foundation.Error)) { + FileProviderManagerClass.AddDomainCompletionHandler(domain, completionHandler) } -// Registers the URL session task responsible for the specified item. [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/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:"), objc.Ptr(task), identifier, completion) +// [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 } -// Disconnects the domain from the 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/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/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) } // Alerts the system to changes in the specified folder’s content. [Full Topic] @@ -163,62 +148,89 @@ func (f_ FileProviderManager) SignalEnumeratorForContainerItemIdentifierCompleti objc.Call[objc.Void](f_, objc.Sel("signalEnumeratorForContainerItemIdentifier:completionHandler:"), containerItemIdentifier, completion) } -// Lists all the operations that are ready for scheduling. [Full Topic] +// Indicates a resolved error. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/fileprovider/nsfileprovidermanager/3727823-listavailabletestingoperationswi?language=objc -func (f_ FileProviderManager) ListAvailableTestingOperationsWithError(error foundation.IError) []FileProviderTestingOperationWrapper { - rv := objc.Call[[]FileProviderTestingOperationWrapper](f_, objc.Sel("listAvailableTestingOperationsWithError:"), objc.Ptr(error)) +// [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:"), objc.Ptr(error), completionHandler) +} + +// Asks the system to schedule and execute the specified operations. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/fileprovider/nsfileprovidermanager/3727824-runtestingoperations?language=objc +func (f_ FileProviderManager) RunTestingOperationsError(operations []PFileProviderTestingOperation, error foundation.IError) foundation.Dictionary { + rv := objc.Call[foundation.Dictionary](f_, objc.Sel("runTestingOperations:error:"), operations, objc.Ptr(error)) return rv } -// Requests a notification after the system completes all the specified changes. [Full Topic] +// Returns the identifier and domain for a user-visible URL. [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/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:"), objc.Ptr(url), 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 the identifier and domain for a user-visible URL. [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/3074519-getidentifierforuservisiblefilea?language=objc +func FileProviderManager_GetIdentifierForUserVisibleFileAtURLCompletionHandler(url foundation.IURL, completionHandler func(itemIdentifier FileProviderItemIdentifier, domainIdentifier FileProviderDomainIdentifier, error foundation.Error)) { + FileProviderManagerClass.GetIdentifierForUserVisibleFileAtURLCompletionHandler(url, completionHandler) } -// Adds a domain to the File Provider extension. [Full Topic] +// Reconnects the domain with the 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:"), objc.Ptr(domain), 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) } -// Adds a domain to 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/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/2890933-removedomain?language=objc +func (fc _FileProviderManagerClass) RemoveDomainCompletionHandler(domain IFileProviderDomain, completionHandler func(error foundation.Error)) { + objc.Call[objc.Void](fc, objc.Sel("removeDomain:completionHandler:"), objc.Ptr(domain), completionHandler) } -// Returns the identifier and domain for a user-visible URL. [Full Topic] +// Removes a domain from the File Provider extension. [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:"), objc.Ptr(url), 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 the identifier and domain for a user-visible URL. [Full Topic] +// Asks the system to remove an item from its cache. [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) +// [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] +// Disconnects the domain from the extension. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/fileprovider/nsfileprovidermanager/3181167-enumeratorformaterializeditems?language=objc -func (f_ FileProviderManager) EnumeratorForMaterializedItems() FileProviderEnumeratorWrapper { - rv := objc.Call[FileProviderEnumeratorWrapper](f_, objc.Sel("enumeratorForMaterializedItems")) +// [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) +} + +// Returns all of the File Provider extension's domains. [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) +} + +// Returns all of the File Provider extension's domains. [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) +} + +// 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/3656535-temporarydirectoryurlwitherror?language=objc +func (f_ FileProviderManager) TemporaryDirectoryURLWithError(error foundation.IError) foundation.URL { + rv := objc.Call[foundation.URL](f_, objc.Sel("temporaryDirectoryURLWithError:"), objc.Ptr(error)) return rv } @@ -236,54 +248,52 @@ func FileProviderManager_ImportDomainFromDirectoryAtURLCompletionHandler(domain FileProviderManagerClass.ImportDomainFromDirectoryAtURLCompletionHandler(domain, url, completionHandler) } -// Returns the user-visible URL for an item. [Full Topic] +// Removes a domain from the File Provider extension using the specified options. [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/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:"), objc.Ptr(domain), mode, completionHandler) } -// Reconnects the domain with the extension. [Full Topic] +// Removes a domain from the File Provider extension using the specified options. [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) +// [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) } -// Removes a domain from 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/2890933-removedomain?language=objc -func (fc _FileProviderManagerClass) RemoveDomainCompletionHandler(domain IFileProviderDomain, completionHandler func(error foundation.Error)) { - objc.Call[objc.Void](fc, objc.Sel("removeDomain:completionHandler:"), objc.Ptr(domain), completionHandler) +// [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) } -// Removes a domain from 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/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/2882044-removealldomainswithcompletionha?language=objc +func FileProviderManager_RemoveAllDomainsWithCompletionHandler(completionHandler func(error foundation.Error)) { + FileProviderManagerClass.RemoveAllDomainsWithCompletionHandler(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 the set of pending items. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/fileprovider/nsfileprovidermanager/3656535-temporarydirectoryurlwitherror?language=objc -func (f_ FileProviderManager) TemporaryDirectoryURLWithError(error foundation.IError) foundation.URL { - rv := objc.Call[foundation.URL](f_, objc.Sel("temporaryDirectoryURLWithError:"), objc.Ptr(error)) +// [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 } -// Asks the system to schedule and execute the specified operations. [Full Topic] +// Tells the system to reimport the item and its content recursively. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/fileprovider/nsfileprovidermanager/3727824-runtestingoperations?language=objc -func (f_ FileProviderManager) RunTestingOperationsError(operations []PFileProviderTestingOperation, error foundation.IError) foundation.Dictionary { - rv := objc.Call[foundation.Dictionary](f_, objc.Sel("runTestingOperations:error:"), operations, objc.Ptr(error)) - return rv +// [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) } -// Returns an enumerator for the set of pending items. [Full Topic] +// Registers the URL session task responsible for the specified item. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/fileprovider/nsfileprovidermanager/3727809-enumeratorforpendingitems?language=objc -func (f_ FileProviderManager) EnumeratorForPendingItems() FileProviderPendingSetEnumeratorWrapper { - rv := objc.Call[FileProviderPendingSetEnumeratorWrapper](f_, objc.Sel("enumeratorForPendingItems")) - 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:"), objc.Ptr(task), identifier, completion) } diff --git a/macos/fileprovider/file_provider_partial_content_fetching.gen.go b/macos/fileprovider/file_provider_partial_content_fetching_protocol.gen.go similarity index 60% rename from macos/fileprovider/file_provider_partial_content_fetching.gen.go rename to macos/fileprovider/file_provider_partial_content_fetching_protocol.gen.go index d710712c..32f7b7e0 100644 --- a/macos/fileprovider/file_provider_partial_content_fetching.gen.go +++ b/macos/fileprovider/file_provider_partial_content_fetching_protocol.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package fileprovider @@ -12,23 +12,26 @@ import ( // [Full Topic]: https://developer.apple.com/documentation/fileprovider/nsfileproviderpartialcontentfetching?language=objc type PFileProviderPartialContentFetching interface { // optional - FetchPartialContentsForItemWithIdentifierVersionRequestMinimalRangeAligningToOptionsCompletionHandler(itemIdentifier FileProviderItemIdentifier, requestedVersion FileProviderItemVersion, request FileProviderRequest, requestedRange foundation.Range, alignment uint, options FileProviderFetchContentsOptions, completionHandler func(fileContents foundation.URL, item objc.Object, retrievedRange foundation.Range, flags FileProviderMaterializationFlags, error foundation.Error)) foundation.IProgress + FetchPartialContentsForItemWithIdentifierVersionRequestMinimalRangeAligningToOptionsCompletionHandler(itemIdentifier FileProviderItemIdentifier, requestedVersion FileProviderItemVersion, request FileProviderRequest, requestedRange foundation.Range, alignment uint, options FileProviderFetchContentsOptions, completionHandler func(fileContents foundation.URL, item objc.Object, retrievedRange foundation.Range, flags FileProviderMaterializationFlags, error foundation.Error)) foundation.Progress HasFetchPartialContentsForItemWithIdentifierVersionRequestMinimalRangeAligningToOptionsCompletionHandler() bool } -// A concrete type wrapper for the [PFileProviderPartialContentFetching] protocol. -type FileProviderPartialContentFetchingWrapper struct { +// ensure impl type implements protocol interface +var _ PFileProviderPartialContentFetching = (*FileProviderPartialContentFetchingObject)(nil) + +// A concrete type for the [PFileProviderPartialContentFetching] protocol. +type FileProviderPartialContentFetchingObject struct { objc.Object } -func (f_ FileProviderPartialContentFetchingWrapper) HasFetchPartialContentsForItemWithIdentifierVersionRequestMinimalRangeAligningToOptionsCompletionHandler() bool { +func (f_ FileProviderPartialContentFetchingObject) HasFetchPartialContentsForItemWithIdentifierVersionRequestMinimalRangeAligningToOptionsCompletionHandler() bool { return f_.RespondsToSelector(objc.Sel("fetchPartialContentsForItemWithIdentifier:version:request:minimalRange:aligningTo:options:completionHandler:")) } // Tells the file provider to download the requested item from remote storage. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/fileprovider/nsfileproviderpartialcontentfetching/3923718-fetchpartialcontentsforitemwithi?language=objc -func (f_ FileProviderPartialContentFetchingWrapper) FetchPartialContentsForItemWithIdentifierVersionRequestMinimalRangeAligningToOptionsCompletionHandler(itemIdentifier FileProviderItemIdentifier, requestedVersion IFileProviderItemVersion, request IFileProviderRequest, requestedRange foundation.Range, alignment uint, options FileProviderFetchContentsOptions, completionHandler func(fileContents foundation.URL, item objc.Object, retrievedRange foundation.Range, flags FileProviderMaterializationFlags, error foundation.Error)) foundation.Progress { +func (f_ FileProviderPartialContentFetchingObject) FetchPartialContentsForItemWithIdentifierVersionRequestMinimalRangeAligningToOptionsCompletionHandler(itemIdentifier FileProviderItemIdentifier, requestedVersion FileProviderItemVersion, request FileProviderRequest, requestedRange foundation.Range, alignment uint, options FileProviderFetchContentsOptions, completionHandler func(fileContents foundation.URL, item objc.Object, retrievedRange foundation.Range, flags FileProviderMaterializationFlags, error foundation.Error)) foundation.Progress { rv := objc.Call[foundation.Progress](f_, objc.Sel("fetchPartialContentsForItemWithIdentifier:version:request:minimalRange:aligningTo:options:completionHandler:"), itemIdentifier, objc.Ptr(requestedVersion), objc.Ptr(request), requestedRange, alignment, options, completionHandler) return rv } diff --git a/macos/fileprovider/file_provider_pending_set_enumerator.gen.go b/macos/fileprovider/file_provider_pending_set_enumerator_protocol.gen.go similarity index 64% rename from macos/fileprovider/file_provider_pending_set_enumerator.gen.go rename to macos/fileprovider/file_provider_pending_set_enumerator_protocol.gen.go index 694561dc..657babff 100644 --- a/macos/fileprovider/file_provider_pending_set_enumerator.gen.go +++ b/macos/fileprovider/file_provider_pending_set_enumerator_protocol.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package fileprovider @@ -12,7 +12,7 @@ import ( // [Full Topic]: https://developer.apple.com/documentation/fileprovider/nsfileproviderpendingsetenumerator?language=objc type PFileProviderPendingSetEnumerator interface { // optional - DomainVersion() IFileProviderDomainVersion + DomainVersion() FileProviderDomainVersion HasDomainVersion() bool // optional @@ -20,31 +20,34 @@ type PFileProviderPendingSetEnumerator interface { HasRefreshInterval() bool } -// A concrete type wrapper for the [PFileProviderPendingSetEnumerator] protocol. -type FileProviderPendingSetEnumeratorWrapper struct { +// ensure impl type implements protocol interface +var _ PFileProviderPendingSetEnumerator = (*FileProviderPendingSetEnumeratorObject)(nil) + +// A concrete type for the [PFileProviderPendingSetEnumerator] protocol. +type FileProviderPendingSetEnumeratorObject struct { objc.Object } -func (f_ FileProviderPendingSetEnumeratorWrapper) HasDomainVersion() bool { +func (f_ FileProviderPendingSetEnumeratorObject) HasDomainVersion() bool { return f_.RespondsToSelector(objc.Sel("domainVersion")) } // The domain version when the system last refreshed the pending set. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/fileprovider/nsfileproviderpendingsetenumerator/3727815-domainversion?language=objc -func (f_ FileProviderPendingSetEnumeratorWrapper) DomainVersion() FileProviderDomainVersion { +func (f_ FileProviderPendingSetEnumeratorObject) DomainVersion() FileProviderDomainVersion { rv := objc.Call[FileProviderDomainVersion](f_, objc.Sel("domainVersion")) return rv } -func (f_ FileProviderPendingSetEnumeratorWrapper) HasRefreshInterval() bool { +func (f_ FileProviderPendingSetEnumeratorObject) HasRefreshInterval() bool { return f_.RespondsToSelector(objc.Sel("refreshInterval")) } // The amount of time, in seconds, between updates to the pending set. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/fileprovider/nsfileproviderpendingsetenumerator/3727816-refreshinterval?language=objc -func (f_ FileProviderPendingSetEnumeratorWrapper) RefreshInterval() foundation.TimeInterval { +func (f_ FileProviderPendingSetEnumeratorObject) RefreshInterval() foundation.TimeInterval { rv := objc.Call[foundation.TimeInterval](f_, objc.Sel("refreshInterval")) return rv } diff --git a/macos/fileprovider/file_provider_replicated_extension.gen.go b/macos/fileprovider/file_provider_replicated_extension_protocol.gen.go similarity index 65% rename from macos/fileprovider/file_provider_replicated_extension.gen.go rename to macos/fileprovider/file_provider_replicated_extension_protocol.gen.go index 243c63cf..b1d3a373 100644 --- a/macos/fileprovider/file_provider_replicated_extension.gen.go +++ b/macos/fileprovider/file_provider_replicated_extension_protocol.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package fileprovider @@ -12,163 +12,166 @@ import ( // [Full Topic]: https://developer.apple.com/documentation/fileprovider/nsfileproviderreplicatedextension?language=objc type PFileProviderReplicatedExtension interface { // 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.IProgress - HasCreateItemBasedOnTemplateFieldsContentsOptionsRequestCompletionHandler() bool - - // optional - ImportDidFinishWithCompletionHandler(completionHandler func()) - HasImportDidFinishWithCompletionHandler() bool + ItemForIdentifierRequestCompletionHandler(identifier FileProviderItemIdentifier, request FileProviderRequest, completionHandler func(arg0 objc.Object, arg1 foundation.Error)) foundation.Progress + HasItemForIdentifierRequestCompletionHandler() bool // optional MaterializedItemsDidChangeWithCompletionHandler(completionHandler func()) HasMaterializedItemsDidChangeWithCompletionHandler() bool // optional - DeleteItemWithIdentifierBaseVersionOptionsRequestCompletionHandler(identifier FileProviderItemIdentifier, version FileProviderItemVersion, options FileProviderDeleteItemOptions, request FileProviderRequest, completionHandler func(arg0 foundation.Error)) foundation.IProgress - HasDeleteItemWithIdentifierBaseVersionOptionsRequestCompletionHandler() bool + Invalidate() + HasInvalidate() bool // optional - ItemForIdentifierRequestCompletionHandler(identifier FileProviderItemIdentifier, request FileProviderRequest, completionHandler func(arg0 objc.Object, arg1 foundation.Error)) foundation.IProgress - HasItemForIdentifierRequestCompletionHandler() bool + PendingItemsDidChangeWithCompletionHandler(completionHandler func()) + HasPendingItemsDidChangeWithCompletionHandler() bool // optional - InitWithDomain(domain FileProviderDomain) objc.IObject - 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 - PendingItemsDidChangeWithCompletionHandler(completionHandler func()) - HasPendingItemsDidChangeWithCompletionHandler() 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 - Invalidate() - HasInvalidate() 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.IProgress - HasModifyItemBaseVersionChangedFieldsContentsOptionsRequestCompletionHandler() bool + ImportDidFinishWithCompletionHandler(completionHandler func()) + HasImportDidFinishWithCompletionHandler() bool + + // optional + InitWithDomain(domain FileProviderDomain) objc.Object + HasInitWithDomain() bool // optional - FetchContentsForItemWithIdentifierVersionRequestCompletionHandler(itemIdentifier FileProviderItemIdentifier, requestedVersion FileProviderItemVersion, request FileProviderRequest, completionHandler func(fileContents foundation.URL, item objc.Object, error foundation.Error)) foundation.IProgress + FetchContentsForItemWithIdentifierVersionRequestCompletionHandler(itemIdentifier FileProviderItemIdentifier, requestedVersion FileProviderItemVersion, request FileProviderRequest, completionHandler func(fileContents foundation.URL, item objc.Object, error foundation.Error)) foundation.Progress HasFetchContentsForItemWithIdentifierVersionRequestCompletionHandler() bool } -// A concrete type wrapper for the [PFileProviderReplicatedExtension] protocol. -type FileProviderReplicatedExtensionWrapper struct { +// ensure impl type implements protocol interface +var _ PFileProviderReplicatedExtension = (*FileProviderReplicatedExtensionObject)(nil) + +// A concrete type for the [PFileProviderReplicatedExtension] protocol. +type FileProviderReplicatedExtensionObject struct { objc.Object } -func (f_ FileProviderReplicatedExtensionWrapper) HasCreateItemBasedOnTemplateFieldsContentsOptionsRequestCompletionHandler() bool { - return f_.RespondsToSelector(objc.Sel("createItemBasedOnTemplate:fields:contents:options:request:completionHandler:")) +func (f_ FileProviderReplicatedExtensionObject) HasItemForIdentifierRequestCompletionHandler() bool { + return f_.RespondsToSelector(objc.Sel("itemForIdentifier:request:completionHandler:")) } -// Tells the file provider to create or import an item based on a template. [Full Topic] +// Asks the file provider for the metadata of the provided item. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/fileprovider/nsfileproviderreplicatedextension/3656549-createitembasedontemplate?language=objc -func (f_ FileProviderReplicatedExtensionWrapper) CreateItemBasedOnTemplateFieldsContentsOptionsRequestCompletionHandler(itemTemplate objc.IObject, fields FileProviderItemFields, url foundation.IURL, options FileProviderCreateItemOptions, request IFileProviderRequest, 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:"), objc.Ptr(itemTemplate), fields, objc.Ptr(url), options, objc.Ptr(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, objc.Ptr(request), completionHandler) return rv } -func (f_ FileProviderReplicatedExtensionWrapper) HasImportDidFinishWithCompletionHandler() bool { - return f_.RespondsToSelector(objc.Sel("importDidFinishWithCompletionHandler:")) +func (f_ FileProviderReplicatedExtensionObject) HasMaterializedItemsDidChangeWithCompletionHandler() bool { + return f_.RespondsToSelector(objc.Sel("materializedItemsDidChangeWithCompletionHandler:")) } -// Tells the File Provider extension that the system finished importing items. [Full Topic] +// Tells the file provider that the set of materialized items changed. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/fileprovider/nsfileproviderreplicatedextension/3553304-importdidfinishwithcompletionhan?language=objc -func (f_ FileProviderReplicatedExtensionWrapper) ImportDidFinishWithCompletionHandler(completionHandler func()) { - objc.Call[objc.Void](f_, objc.Sel("importDidFinishWithCompletionHandler:"), completionHandler) +// [Full Topic]: https://developer.apple.com/documentation/fileprovider/nsfileproviderreplicatedextension/3553308-materializeditemsdidchangewithco?language=objc +func (f_ FileProviderReplicatedExtensionObject) MaterializedItemsDidChangeWithCompletionHandler(completionHandler func()) { + objc.Call[objc.Void](f_, objc.Sel("materializedItemsDidChangeWithCompletionHandler:"), completionHandler) } -func (f_ FileProviderReplicatedExtensionWrapper) HasMaterializedItemsDidChangeWithCompletionHandler() bool { - return f_.RespondsToSelector(objc.Sel("materializedItemsDidChangeWithCompletionHandler:")) +func (f_ FileProviderReplicatedExtensionObject) HasInvalidate() bool { + return f_.RespondsToSelector(objc.Sel("invalidate")) } -// Tells the file provider that the set of materialized items changed. [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/3553308-materializeditemsdidchangewithco?language=objc -func (f_ FileProviderReplicatedExtensionWrapper) MaterializedItemsDidChangeWithCompletionHandler(completionHandler func()) { - objc.Call[objc.Void](f_, objc.Sel("materializedItemsDidChangeWithCompletionHandler:"), 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_ FileProviderReplicatedExtensionWrapper) 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_ FileProviderReplicatedExtensionWrapper) DeleteItemWithIdentifierBaseVersionOptionsRequestCompletionHandler(identifier FileProviderItemIdentifier, version IFileProviderItemVersion, options FileProviderDeleteItemOptions, request IFileProviderRequest, completionHandler func(arg0 foundation.Error)) foundation.Progress { - rv := objc.Call[foundation.Progress](f_, objc.Sel("deleteItemWithIdentifier:baseVersion:options:request:completionHandler:"), identifier, objc.Ptr(version), options, objc.Ptr(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_ FileProviderReplicatedExtensionWrapper) HasItemForIdentifierRequestCompletionHandler() bool { - return f_.RespondsToSelector(objc.Sel("itemForIdentifier:request:completionHandler:")) +func (f_ FileProviderReplicatedExtensionObject) HasModifyItemBaseVersionChangedFieldsContentsOptionsRequestCompletionHandler() bool { + return f_.RespondsToSelector(objc.Sel("modifyItem:baseVersion:changedFields:contents:options:request:completionHandler:")) } -// Asks the file provider for the metadata of the provided item. [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/3656551-itemforidentifier?language=objc -func (f_ FileProviderReplicatedExtensionWrapper) ItemForIdentifierRequestCompletionHandler(identifier FileProviderItemIdentifier, request IFileProviderRequest, completionHandler func(arg0 objc.Object, arg1 foundation.Error)) foundation.Progress { - rv := objc.Call[foundation.Progress](f_, objc.Sel("itemForIdentifier:request:completionHandler:"), identifier, objc.Ptr(request), completionHandler) +// [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:"), objc.Ptr(item), objc.Ptr(version), changedFields, objc.Ptr(newContents), options, objc.Ptr(request), completionHandler) return rv } -func (f_ FileProviderReplicatedExtensionWrapper) HasInitWithDomain() bool { - return f_.RespondsToSelector(objc.Sel("initWithDomain:")) +func (f_ FileProviderReplicatedExtensionObject) HasCreateItemBasedOnTemplateFieldsContentsOptionsRequestCompletionHandler() bool { + return f_.RespondsToSelector(objc.Sel("createItemBasedOnTemplate:fields:contents:options:request:completionHandler:")) } -// Creates an instance of the file provider for the specified domain. [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/3553305-initwithdomain?language=objc -func (f_ FileProviderReplicatedExtensionWrapper) InitWithDomain(domain IFileProviderDomain) objc.Object { - rv := objc.Call[objc.Object](f_, objc.Sel("initWithDomain:"), objc.Ptr(domain)) +// [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:"), objc.Ptr(itemTemplate), fields, objc.Ptr(url), options, objc.Ptr(request), completionHandler) return rv } -func (f_ FileProviderReplicatedExtensionWrapper) 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_ FileProviderReplicatedExtensionWrapper) 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, objc.Ptr(version), options, objc.Ptr(request), completionHandler) + return rv } -func (f_ FileProviderReplicatedExtensionWrapper) HasInvalidate() bool { - return f_.RespondsToSelector(objc.Sel("invalidate")) +func (f_ FileProviderReplicatedExtensionObject) HasImportDidFinishWithCompletionHandler() bool { + return f_.RespondsToSelector(objc.Sel("importDidFinishWithCompletionHandler:")) } -// Tells the file provider to perform any necessary cleanup so that the system can deallocate it. [Full Topic] +// Tells the File Provider extension that the system finished importing items. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/fileprovider/nsfileproviderreplicatedextension/3553306-invalidate?language=objc -func (f_ FileProviderReplicatedExtensionWrapper) Invalidate() { - objc.Call[objc.Void](f_, objc.Sel("invalidate")) +// [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_ FileProviderReplicatedExtensionWrapper) HasModifyItemBaseVersionChangedFieldsContentsOptionsRequestCompletionHandler() bool { - return f_.RespondsToSelector(objc.Sel("modifyItem:baseVersion:changedFields:contents:options:request:completionHandler:")) +func (f_ FileProviderReplicatedExtensionObject) HasInitWithDomain() bool { + return f_.RespondsToSelector(objc.Sel("initWithDomain:")) } -// Tells the file provider that an item’s content or metadata changed. [Full Topic] +// Creates an instance of the file provider for the specified domain. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/fileprovider/nsfileproviderreplicatedextension/3656552-modifyitem?language=objc -func (f_ FileProviderReplicatedExtensionWrapper) ModifyItemBaseVersionChangedFieldsContentsOptionsRequestCompletionHandler(item objc.IObject, version IFileProviderItemVersion, changedFields FileProviderItemFields, newContents foundation.IURL, options FileProviderModifyItemOptions, request IFileProviderRequest, 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:"), objc.Ptr(item), objc.Ptr(version), changedFields, objc.Ptr(newContents), options, objc.Ptr(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:"), objc.Ptr(domain)) return rv } -func (f_ FileProviderReplicatedExtensionWrapper) HasFetchContentsForItemWithIdentifierVersionRequestCompletionHandler() bool { +func (f_ FileProviderReplicatedExtensionObject) HasFetchContentsForItemWithIdentifierVersionRequestCompletionHandler() bool { return f_.RespondsToSelector(objc.Sel("fetchContentsForItemWithIdentifier:version:request:completionHandler:")) } // Tells the file provider to download the requested item from remote storage. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/fileprovider/nsfileproviderreplicatedextension/3553303-fetchcontentsforitemwithidentifi?language=objc -func (f_ FileProviderReplicatedExtensionWrapper) FetchContentsForItemWithIdentifierVersionRequestCompletionHandler(itemIdentifier FileProviderItemIdentifier, requestedVersion IFileProviderItemVersion, request IFileProviderRequest, completionHandler func(fileContents foundation.URL, item objc.Object, error foundation.Error)) foundation.Progress { +func (f_ FileProviderReplicatedExtensionObject) FetchContentsForItemWithIdentifierVersionRequestCompletionHandler(itemIdentifier FileProviderItemIdentifier, requestedVersion FileProviderItemVersion, request FileProviderRequest, completionHandler func(fileContents foundation.URL, item objc.Object, error foundation.Error)) foundation.Progress { rv := objc.Call[foundation.Progress](f_, objc.Sel("fetchContentsForItemWithIdentifier:version:request:completionHandler:"), itemIdentifier, objc.Ptr(requestedVersion), objc.Ptr(request), completionHandler) return rv } diff --git a/macos/fileprovider/file_provider_request.gen.go b/macos/fileprovider/file_provider_request.gen.go index 96e29bb5..6cd12fbb 100644 --- a/macos/fileprovider/file_provider_request.gen.go +++ b/macos/fileprovider/file_provider_request.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package fileprovider @@ -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] @@ -43,10 +43,6 @@ func (fc _FileProviderRequestClass) Alloc() FileProviderRequest { return rv } -func FileProviderRequest_Alloc() FileProviderRequest { - return FileProviderRequestClass.Alloc() -} - func (fc _FileProviderRequestClass) New() FileProviderRequest { rv := objc.Call[FileProviderRequest](fc, objc.Sel("new")) rv.Autorelease() @@ -62,14 +58,6 @@ 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 @@ -93,3 +81,11 @@ 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_service_source.gen.go b/macos/fileprovider/file_provider_service_source_protocol.gen.go similarity index 68% rename from macos/fileprovider/file_provider_service_source.gen.go rename to macos/fileprovider/file_provider_service_source_protocol.gen.go index 0acebf1a..5ae93ea7 100644 --- a/macos/fileprovider/file_provider_service_source.gen.go +++ b/macos/fileprovider/file_provider_service_source_protocol.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package fileprovider @@ -12,7 +12,7 @@ import ( // [Full Topic]: https://developer.apple.com/documentation/fileprovider/nsfileproviderservicesource?language=objc type PFileProviderServiceSource interface { // optional - MakeListenerEndpointAndReturnError(error foundation.Error) foundation.IXPCListenerEndpoint + MakeListenerEndpointAndReturnError(error foundation.Error) foundation.XPCListenerEndpoint HasMakeListenerEndpointAndReturnError() bool // optional @@ -20,31 +20,34 @@ type PFileProviderServiceSource interface { HasServiceName() bool } -// A concrete type wrapper for the [PFileProviderServiceSource] protocol. -type FileProviderServiceSourceWrapper struct { +// ensure impl type implements protocol interface +var _ PFileProviderServiceSource = (*FileProviderServiceSourceObject)(nil) + +// A concrete type for the [PFileProviderServiceSource] protocol. +type FileProviderServiceSourceObject struct { objc.Object } -func (f_ FileProviderServiceSourceWrapper) HasMakeListenerEndpointAndReturnError() bool { +func (f_ FileProviderServiceSourceObject) HasMakeListenerEndpointAndReturnError() bool { return f_.RespondsToSelector(objc.Sel("makeListenerEndpointAndReturnError:")) } // Returns an endpoint object that lets the host app communicate with the File Provider extension. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/fileprovider/nsfileproviderservicesource/2915876-makelistenerendpointandreturnerr?language=objc -func (f_ FileProviderServiceSourceWrapper) MakeListenerEndpointAndReturnError(error foundation.IError) foundation.XPCListenerEndpoint { +func (f_ FileProviderServiceSourceObject) MakeListenerEndpointAndReturnError(error foundation.Error) foundation.XPCListenerEndpoint { rv := objc.Call[foundation.XPCListenerEndpoint](f_, objc.Sel("makeListenerEndpointAndReturnError:"), objc.Ptr(error)) return rv } -func (f_ FileProviderServiceSourceWrapper) HasServiceName() bool { +func (f_ FileProviderServiceSourceObject) HasServiceName() bool { return f_.RespondsToSelector(objc.Sel("serviceName")) } // A name that uniquely identifies the service (reverse domain name notation is recommended). [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/fileprovider/nsfileproviderservicesource/2915879-servicename?language=objc -func (f_ FileProviderServiceSourceWrapper) ServiceName() foundation.FileProviderServiceName { +func (f_ FileProviderServiceSourceObject) ServiceName() foundation.FileProviderServiceName { rv := objc.Call[foundation.FileProviderServiceName](f_, objc.Sel("serviceName")) return rv } diff --git a/macos/fileprovider/file_provider_servicing.gen.go b/macos/fileprovider/file_provider_servicing_protocol.gen.go similarity index 60% rename from macos/fileprovider/file_provider_servicing.gen.go rename to macos/fileprovider/file_provider_servicing_protocol.gen.go index 0fc0ec5e..10d030ac 100644 --- a/macos/fileprovider/file_provider_servicing.gen.go +++ b/macos/fileprovider/file_provider_servicing_protocol.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package fileprovider @@ -12,23 +12,26 @@ import ( // [Full Topic]: https://developer.apple.com/documentation/fileprovider/nsfileproviderservicing?language=objc type PFileProviderServicing interface { // optional - SupportedServiceSourcesForItemIdentifierCompletionHandler(itemIdentifier FileProviderItemIdentifier, completionHandler func(arg0 []FileProviderServiceSourceWrapper, arg1 foundation.Error)) foundation.IProgress + SupportedServiceSourcesForItemIdentifierCompletionHandler(itemIdentifier FileProviderItemIdentifier, completionHandler func(arg0 []FileProviderServiceSourceObject, arg1 foundation.Error)) foundation.Progress HasSupportedServiceSourcesForItemIdentifierCompletionHandler() bool } -// A concrete type wrapper for the [PFileProviderServicing] protocol. -type FileProviderServicingWrapper struct { +// ensure impl type implements protocol interface +var _ PFileProviderServicing = (*FileProviderServicingObject)(nil) + +// A concrete type for the [PFileProviderServicing] protocol. +type FileProviderServicingObject struct { objc.Object } -func (f_ FileProviderServicingWrapper) HasSupportedServiceSourcesForItemIdentifierCompletionHandler() bool { +func (f_ FileProviderServicingObject) HasSupportedServiceSourcesForItemIdentifierCompletionHandler() bool { return f_.RespondsToSelector(objc.Sel("supportedServiceSourcesForItemIdentifier:completionHandler:")) } // Asks the File Provider extension for an array of custom communication channels. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/fileprovider/nsfileproviderservicing/3553311-supportedservicesourcesforitemid?language=objc -func (f_ FileProviderServicingWrapper) SupportedServiceSourcesForItemIdentifierCompletionHandler(itemIdentifier FileProviderItemIdentifier, completionHandler func(arg0 []FileProviderServiceSourceWrapper, arg1 foundation.Error)) foundation.Progress { +func (f_ FileProviderServicingObject) SupportedServiceSourcesForItemIdentifierCompletionHandler(itemIdentifier FileProviderItemIdentifier, completionHandler func(arg0 []FileProviderServiceSourceObject, arg1 foundation.Error)) foundation.Progress { rv := objc.Call[foundation.Progress](f_, objc.Sel("supportedServiceSourcesForItemIdentifier:completionHandler:"), itemIdentifier, completionHandler) return rv } diff --git a/macos/fileprovider/file_provider_testing_children_enumeration.gen.go b/macos/fileprovider/file_provider_testing_children_enumeration_protocol.gen.go similarity index 63% rename from macos/fileprovider/file_provider_testing_children_enumeration.gen.go rename to macos/fileprovider/file_provider_testing_children_enumeration_protocol.gen.go index ebcb3d12..6164ac6a 100644 --- a/macos/fileprovider/file_provider_testing_children_enumeration.gen.go +++ b/macos/fileprovider/file_provider_testing_children_enumeration_protocol.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package fileprovider @@ -19,31 +19,34 @@ type PFileProviderTestingChildrenEnumeration interface { HasSide() bool } -// A concrete type wrapper for the [PFileProviderTestingChildrenEnumeration] protocol. -type FileProviderTestingChildrenEnumerationWrapper struct { +// ensure impl type implements protocol interface +var _ PFileProviderTestingChildrenEnumeration = (*FileProviderTestingChildrenEnumerationObject)(nil) + +// A concrete type for the [PFileProviderTestingChildrenEnumeration] protocol. +type FileProviderTestingChildrenEnumerationObject struct { objc.Object } -func (f_ FileProviderTestingChildrenEnumerationWrapper) HasItemIdentifier() bool { +func (f_ FileProviderTestingChildrenEnumerationObject) HasItemIdentifier() bool { return f_.RespondsToSelector(objc.Sel("itemIdentifier")) } // The containing identifier’s unique identifier. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/fileprovider/nsfileprovidertestingchildrenenumeration/3727829-itemidentifier?language=objc -func (f_ FileProviderTestingChildrenEnumerationWrapper) ItemIdentifier() FileProviderItemIdentifier { +func (f_ FileProviderTestingChildrenEnumerationObject) ItemIdentifier() FileProviderItemIdentifier { rv := objc.Call[FileProviderItemIdentifier](f_, objc.Sel("itemIdentifier")) return rv } -func (f_ FileProviderTestingChildrenEnumerationWrapper) HasSide() bool { +func (f_ FileProviderTestingChildrenEnumerationObject) HasSide() bool { return f_.RespondsToSelector(objc.Sel("side")) } // The item’s location. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/fileprovider/nsfileprovidertestingchildrenenumeration/3727830-side?language=objc -func (f_ FileProviderTestingChildrenEnumerationWrapper) Side() FileProviderTestingOperationSide { +func (f_ FileProviderTestingChildrenEnumerationObject) Side() FileProviderTestingOperationSide { rv := objc.Call[FileProviderTestingOperationSide](f_, objc.Sel("side")) return rv } diff --git a/macos/fileprovider/file_provider_testing_collision_resolution.gen.go b/macos/fileprovider/file_provider_testing_collision_resolution_protocol.gen.go similarity index 61% rename from macos/fileprovider/file_provider_testing_collision_resolution.gen.go rename to macos/fileprovider/file_provider_testing_collision_resolution_protocol.gen.go index da398964..868bb82e 100644 --- a/macos/fileprovider/file_provider_testing_collision_resolution.gen.go +++ b/macos/fileprovider/file_provider_testing_collision_resolution_protocol.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package fileprovider @@ -10,40 +10,43 @@ import ( // // [Full Topic]: https://developer.apple.com/documentation/fileprovider/nsfileprovidertestingcollisionresolution?language=objc type PFileProviderTestingCollisionResolution interface { - // optional - RenamedItem() objc.IObject - HasRenamedItem() bool - // optional Side() FileProviderTestingOperationSide HasSide() bool + + // optional + RenamedItem() objc.Object + HasRenamedItem() bool } -// A concrete type wrapper for the [PFileProviderTestingCollisionResolution] protocol. -type FileProviderTestingCollisionResolutionWrapper struct { +// ensure impl type implements protocol interface +var _ PFileProviderTestingCollisionResolution = (*FileProviderTestingCollisionResolutionObject)(nil) + +// A concrete type for the [PFileProviderTestingCollisionResolution] protocol. +type FileProviderTestingCollisionResolutionObject struct { objc.Object } -func (f_ FileProviderTestingCollisionResolutionWrapper) HasRenamedItem() bool { - return f_.RespondsToSelector(objc.Sel("renamedItem")) +func (f_ FileProviderTestingCollisionResolutionObject) HasSide() bool { + return f_.RespondsToSelector(objc.Sel("side")) } -// A description of the renamed item. [Full Topic] +// The item’s location. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/fileprovider/nsfileprovidertestingcollisionresolution/3736228-renameditem?language=objc -func (f_ FileProviderTestingCollisionResolutionWrapper) RenamedItem() objc.Object { - rv := objc.Call[objc.Object](f_, objc.Sel("renamedItem")) +// [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_ FileProviderTestingCollisionResolutionWrapper) HasSide() bool { - return f_.RespondsToSelector(objc.Sel("side")) +func (f_ FileProviderTestingCollisionResolutionObject) HasRenamedItem() bool { + return f_.RespondsToSelector(objc.Sel("renamedItem")) } -// The item’s location. [Full Topic] +// A description of the renamed item. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/fileprovider/nsfileprovidertestingcollisionresolution/3736229-side?language=objc -func (f_ FileProviderTestingCollisionResolutionWrapper) Side() FileProviderTestingOperationSide { - rv := objc.Call[FileProviderTestingOperationSide](f_, objc.Sel("side")) +// [Full Topic]: https://developer.apple.com/documentation/fileprovider/nsfileprovidertestingcollisionresolution/3736228-renameditem?language=objc +func (f_ FileProviderTestingCollisionResolutionObject) RenamedItem() objc.Object { + rv := objc.Call[objc.Object](f_, objc.Sel("renamedItem")) return rv } diff --git a/macos/fileprovider/file_provider_testing_content_fetch.gen.go b/macos/fileprovider/file_provider_testing_content_fetch_protocol.gen.go similarity index 64% rename from macos/fileprovider/file_provider_testing_content_fetch.gen.go rename to macos/fileprovider/file_provider_testing_content_fetch_protocol.gen.go index 3f057b73..6a1ef2cc 100644 --- a/macos/fileprovider/file_provider_testing_content_fetch.gen.go +++ b/macos/fileprovider/file_provider_testing_content_fetch_protocol.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package fileprovider @@ -19,31 +19,34 @@ type PFileProviderTestingContentFetch interface { HasSide() bool } -// A concrete type wrapper for the [PFileProviderTestingContentFetch] protocol. -type FileProviderTestingContentFetchWrapper struct { +// ensure impl type implements protocol interface +var _ PFileProviderTestingContentFetch = (*FileProviderTestingContentFetchObject)(nil) + +// A concrete type for the [PFileProviderTestingContentFetch] protocol. +type FileProviderTestingContentFetchObject struct { objc.Object } -func (f_ FileProviderTestingContentFetchWrapper) HasItemIdentifier() bool { +func (f_ FileProviderTestingContentFetchObject) HasItemIdentifier() bool { return f_.RespondsToSelector(objc.Sel("itemIdentifier")) } // The containing item’s unique identifier. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/fileprovider/nsfileprovidertestingcontentfetch/3727832-itemidentifier?language=objc -func (f_ FileProviderTestingContentFetchWrapper) ItemIdentifier() FileProviderItemIdentifier { +func (f_ FileProviderTestingContentFetchObject) ItemIdentifier() FileProviderItemIdentifier { rv := objc.Call[FileProviderItemIdentifier](f_, objc.Sel("itemIdentifier")) return rv } -func (f_ FileProviderTestingContentFetchWrapper) HasSide() bool { +func (f_ FileProviderTestingContentFetchObject) HasSide() bool { return f_.RespondsToSelector(objc.Sel("side")) } // The item’s location. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/fileprovider/nsfileprovidertestingcontentfetch/3727833-side?language=objc -func (f_ FileProviderTestingContentFetchWrapper) Side() FileProviderTestingOperationSide { +func (f_ FileProviderTestingContentFetchObject) Side() FileProviderTestingOperationSide { rv := objc.Call[FileProviderTestingOperationSide](f_, objc.Sel("side")) return rv } diff --git a/macos/fileprovider/file_provider_testing_creation.gen.go b/macos/fileprovider/file_provider_testing_creation_protocol.gen.go similarity index 65% rename from macos/fileprovider/file_provider_testing_creation.gen.go rename to macos/fileprovider/file_provider_testing_creation_protocol.gen.go index 6fc6124c..6993c299 100644 --- a/macos/fileprovider/file_provider_testing_creation.gen.go +++ b/macos/fileprovider/file_provider_testing_creation_protocol.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package fileprovider @@ -15,51 +15,54 @@ type PFileProviderTestingCreation interface { HasTargetSide() bool // optional - DomainVersion() IFileProviderDomainVersion + DomainVersion() FileProviderDomainVersion HasDomainVersion() bool // optional - SourceItem() objc.IObject + SourceItem() objc.Object HasSourceItem() bool } -// A concrete type wrapper for the [PFileProviderTestingCreation] protocol. -type FileProviderTestingCreationWrapper struct { +// ensure impl type implements protocol interface +var _ PFileProviderTestingCreation = (*FileProviderTestingCreationObject)(nil) + +// A concrete type for the [PFileProviderTestingCreation] protocol. +type FileProviderTestingCreationObject struct { objc.Object } -func (f_ FileProviderTestingCreationWrapper) HasTargetSide() bool { +func (f_ FileProviderTestingCreationObject) HasTargetSide() bool { return f_.RespondsToSelector(objc.Sel("targetSide")) } // The target location for the new item. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/fileprovider/nsfileprovidertestingcreation/3736233-targetside?language=objc -func (f_ FileProviderTestingCreationWrapper) TargetSide() FileProviderTestingOperationSide { +func (f_ FileProviderTestingCreationObject) TargetSide() FileProviderTestingOperationSide { rv := objc.Call[FileProviderTestingOperationSide](f_, objc.Sel("targetSide")) return rv } -func (f_ FileProviderTestingCreationWrapper) HasDomainVersion() bool { +func (f_ FileProviderTestingCreationObject) HasDomainVersion() bool { return f_.RespondsToSelector(objc.Sel("domainVersion")) } // The domain’s version when the system discovered the item at the source location. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/fileprovider/nsfileprovidertestingcreation/3736231-domainversion?language=objc -func (f_ FileProviderTestingCreationWrapper) DomainVersion() FileProviderDomainVersion { +func (f_ FileProviderTestingCreationObject) DomainVersion() FileProviderDomainVersion { rv := objc.Call[FileProviderDomainVersion](f_, objc.Sel("domainVersion")) return rv } -func (f_ FileProviderTestingCreationWrapper) HasSourceItem() bool { +func (f_ FileProviderTestingCreationObject) HasSourceItem() bool { return f_.RespondsToSelector(objc.Sel("sourceItem")) } // A description of the item stored at the source. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/fileprovider/nsfileprovidertestingcreation/3736232-sourceitem?language=objc -func (f_ FileProviderTestingCreationWrapper) SourceItem() objc.Object { +func (f_ FileProviderTestingCreationObject) SourceItem() objc.Object { rv := objc.Call[objc.Object](f_, objc.Sel("sourceItem")) return rv } diff --git a/macos/fileprovider/file_provider_testing_deletion.gen.go b/macos/fileprovider/file_provider_testing_deletion_protocol.gen.go similarity index 67% rename from macos/fileprovider/file_provider_testing_deletion.gen.go rename to macos/fileprovider/file_provider_testing_deletion_protocol.gen.go index bf1e8a42..548beac4 100644 --- a/macos/fileprovider/file_provider_testing_deletion.gen.go +++ b/macos/fileprovider/file_provider_testing_deletion_protocol.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package fileprovider @@ -11,87 +11,90 @@ import ( // [Full Topic]: https://developer.apple.com/documentation/fileprovider/nsfileprovidertestingdeletion?language=objc type PFileProviderTestingDeletion interface { // optional - TargetSide() FileProviderTestingOperationSide - HasTargetSide() bool + SourceItemIdentifier() FileProviderItemIdentifier + HasSourceItemIdentifier() bool // optional - TargetItemIdentifier() FileProviderItemIdentifier - HasTargetItemIdentifier() bool + TargetItemBaseVersion() FileProviderItemVersion + HasTargetItemBaseVersion() bool // optional - DomainVersion() IFileProviderDomainVersion - HasDomainVersion() bool + TargetItemIdentifier() FileProviderItemIdentifier + HasTargetItemIdentifier() bool // optional - TargetItemBaseVersion() IFileProviderItemVersion - HasTargetItemBaseVersion() bool + TargetSide() FileProviderTestingOperationSide + HasTargetSide() bool // optional - SourceItemIdentifier() FileProviderItemIdentifier - HasSourceItemIdentifier() bool + DomainVersion() FileProviderDomainVersion + HasDomainVersion() bool } -// A concrete type wrapper for the [PFileProviderTestingDeletion] protocol. -type FileProviderTestingDeletionWrapper struct { +// ensure impl type implements protocol interface +var _ PFileProviderTestingDeletion = (*FileProviderTestingDeletionObject)(nil) + +// A concrete type for the [PFileProviderTestingDeletion] protocol. +type FileProviderTestingDeletionObject struct { objc.Object } -func (f_ FileProviderTestingDeletionWrapper) HasTargetSide() bool { - return f_.RespondsToSelector(objc.Sel("targetSide")) +func (f_ FileProviderTestingDeletionObject) HasSourceItemIdentifier() bool { + return f_.RespondsToSelector(objc.Sel("sourceItemIdentifier")) } -// The target location for the delete operation. [Full Topic] +// The unique identifier for the source item. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/fileprovider/nsfileprovidertestingdeletion/3736239-targetside?language=objc -func (f_ FileProviderTestingDeletionWrapper) TargetSide() FileProviderTestingOperationSide { - rv := objc.Call[FileProviderTestingOperationSide](f_, objc.Sel("targetSide")) +// [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_ FileProviderTestingDeletionWrapper) HasTargetItemIdentifier() bool { - return f_.RespondsToSelector(objc.Sel("targetItemIdentifier")) +func (f_ FileProviderTestingDeletionObject) HasTargetItemBaseVersion() bool { + return f_.RespondsToSelector(objc.Sel("targetItemBaseVersion")) } -// The unique identifier for the target item. [Full Topic] +// The version of the deleted item. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/fileprovider/nsfileprovidertestingdeletion/3736238-targetitemidentifier?language=objc -func (f_ FileProviderTestingDeletionWrapper) TargetItemIdentifier() FileProviderItemIdentifier { - rv := objc.Call[FileProviderItemIdentifier](f_, objc.Sel("targetItemIdentifier")) +// [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_ FileProviderTestingDeletionWrapper) HasDomainVersion() bool { - return f_.RespondsToSelector(objc.Sel("domainVersion")) +func (f_ FileProviderTestingDeletionObject) HasTargetItemIdentifier() bool { + return f_.RespondsToSelector(objc.Sel("targetItemIdentifier")) } -// The domain’s version when the source location deleted the item. [Full Topic] +// The unique identifier for the target item. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/fileprovider/nsfileprovidertestingdeletion/3736235-domainversion?language=objc -func (f_ FileProviderTestingDeletionWrapper) DomainVersion() FileProviderDomainVersion { - rv := objc.Call[FileProviderDomainVersion](f_, objc.Sel("domainVersion")) +// [Full Topic]: https://developer.apple.com/documentation/fileprovider/nsfileprovidertestingdeletion/3736238-targetitemidentifier?language=objc +func (f_ FileProviderTestingDeletionObject) TargetItemIdentifier() FileProviderItemIdentifier { + rv := objc.Call[FileProviderItemIdentifier](f_, objc.Sel("targetItemIdentifier")) return rv } -func (f_ FileProviderTestingDeletionWrapper) 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_ FileProviderTestingDeletionWrapper) 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 } -func (f_ FileProviderTestingDeletionWrapper) HasSourceItemIdentifier() bool { - return f_.RespondsToSelector(objc.Sel("sourceItemIdentifier")) +func (f_ FileProviderTestingDeletionObject) HasDomainVersion() bool { + return f_.RespondsToSelector(objc.Sel("domainVersion")) } -// The unique identifier for the source item. [Full Topic] +// The domain’s version when the source location deleted the item. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/fileprovider/nsfileprovidertestingdeletion/3736236-sourceitemidentifier?language=objc -func (f_ FileProviderTestingDeletionWrapper) SourceItemIdentifier() FileProviderItemIdentifier { - rv := objc.Call[FileProviderItemIdentifier](f_, objc.Sel("sourceItemIdentifier")) +// [Full Topic]: https://developer.apple.com/documentation/fileprovider/nsfileprovidertestingdeletion/3736235-domainversion?language=objc +func (f_ FileProviderTestingDeletionObject) DomainVersion() FileProviderDomainVersion { + rv := objc.Call[FileProviderDomainVersion](f_, objc.Sel("domainVersion")) return rv } diff --git a/macos/fileprovider/file_provider_testing_ingestion.gen.go b/macos/fileprovider/file_provider_testing_ingestion_protocol.gen.go similarity index 66% rename from macos/fileprovider/file_provider_testing_ingestion.gen.go rename to macos/fileprovider/file_provider_testing_ingestion_protocol.gen.go index b4c3c361..8180d57c 100644 --- a/macos/fileprovider/file_provider_testing_ingestion.gen.go +++ b/macos/fileprovider/file_provider_testing_ingestion_protocol.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package fileprovider @@ -10,10 +10,6 @@ import ( // // [Full Topic]: https://developer.apple.com/documentation/fileprovider/nsfileprovidertestingingestion?language=objc type PFileProviderTestingIngestion interface { - // optional - Item() objc.IObject - HasItem() bool - // optional ItemIdentifier() FileProviderItemIdentifier HasItemIdentifier() bool @@ -21,45 +17,52 @@ type PFileProviderTestingIngestion interface { // optional Side() FileProviderTestingOperationSide HasSide() bool -} -// A concrete type wrapper for the [PFileProviderTestingIngestion] protocol. -type FileProviderTestingIngestionWrapper struct { - objc.Object + // optional + Item() objc.Object + HasItem() bool } -func (f_ FileProviderTestingIngestionWrapper) HasItem() bool { - return f_.RespondsToSelector(objc.Sel("item")) -} +// ensure impl type implements protocol interface +var _ PFileProviderTestingIngestion = (*FileProviderTestingIngestionObject)(nil) -// A description of the item that changed. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/fileprovider/nsfileprovidertestingingestion/3727835-item?language=objc -func (f_ FileProviderTestingIngestionWrapper) Item() objc.Object { - rv := objc.Call[objc.Object](f_, objc.Sel("item")) - return rv +// A concrete type for the [PFileProviderTestingIngestion] protocol. +type FileProviderTestingIngestionObject struct { + objc.Object } -func (f_ FileProviderTestingIngestionWrapper) HasItemIdentifier() bool { +func (f_ FileProviderTestingIngestionObject) HasItemIdentifier() bool { return f_.RespondsToSelector(objc.Sel("itemIdentifier")) } // The unique identifier for the item that changed. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/fileprovider/nsfileprovidertestingingestion/3727836-itemidentifier?language=objc -func (f_ FileProviderTestingIngestionWrapper) ItemIdentifier() FileProviderItemIdentifier { +func (f_ FileProviderTestingIngestionObject) ItemIdentifier() FileProviderItemIdentifier { rv := objc.Call[FileProviderItemIdentifier](f_, objc.Sel("itemIdentifier")) return rv } -func (f_ FileProviderTestingIngestionWrapper) HasSide() bool { +func (f_ FileProviderTestingIngestionObject) HasSide() bool { return f_.RespondsToSelector(objc.Sel("side")) } // The location where the change occurred. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/fileprovider/nsfileprovidertestingingestion/3727837-side?language=objc -func (f_ FileProviderTestingIngestionWrapper) Side() FileProviderTestingOperationSide { +func (f_ FileProviderTestingIngestionObject) Side() FileProviderTestingOperationSide { 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_lookup.gen.go b/macos/fileprovider/file_provider_testing_lookup_protocol.gen.go similarity index 65% rename from macos/fileprovider/file_provider_testing_lookup.gen.go rename to macos/fileprovider/file_provider_testing_lookup_protocol.gen.go index baa7daca..5a106773 100644 --- a/macos/fileprovider/file_provider_testing_lookup.gen.go +++ b/macos/fileprovider/file_provider_testing_lookup_protocol.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package fileprovider @@ -19,31 +19,34 @@ type PFileProviderTestingLookup interface { HasSide() bool } -// A concrete type wrapper for the [PFileProviderTestingLookup] protocol. -type FileProviderTestingLookupWrapper struct { +// ensure impl type implements protocol interface +var _ PFileProviderTestingLookup = (*FileProviderTestingLookupObject)(nil) + +// A concrete type for the [PFileProviderTestingLookup] protocol. +type FileProviderTestingLookupObject struct { objc.Object } -func (f_ FileProviderTestingLookupWrapper) HasItemIdentifier() bool { +func (f_ FileProviderTestingLookupObject) HasItemIdentifier() bool { return f_.RespondsToSelector(objc.Sel("itemIdentifier")) } // The unique identifier for the item. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/fileprovider/nsfileprovidertestinglookup/3727839-itemidentifier?language=objc -func (f_ FileProviderTestingLookupWrapper) ItemIdentifier() FileProviderItemIdentifier { +func (f_ FileProviderTestingLookupObject) ItemIdentifier() FileProviderItemIdentifier { rv := objc.Call[FileProviderItemIdentifier](f_, objc.Sel("itemIdentifier")) return rv } -func (f_ FileProviderTestingLookupWrapper) HasSide() bool { +func (f_ FileProviderTestingLookupObject) HasSide() bool { return f_.RespondsToSelector(objc.Sel("side")) } // The location where the lookup occurs. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/fileprovider/nsfileprovidertestinglookup/3727840-side?language=objc -func (f_ FileProviderTestingLookupWrapper) Side() FileProviderTestingOperationSide { +func (f_ FileProviderTestingLookupObject) Side() FileProviderTestingOperationSide { rv := objc.Call[FileProviderTestingOperationSide](f_, objc.Sel("side")) return rv } diff --git a/macos/fileprovider/file_provider_testing_modification.gen.go b/macos/fileprovider/file_provider_testing_modification_protocol.gen.go similarity index 66% rename from macos/fileprovider/file_provider_testing_modification.gen.go rename to macos/fileprovider/file_provider_testing_modification_protocol.gen.go index 472731dc..7533633d 100644 --- a/macos/fileprovider/file_provider_testing_modification.gen.go +++ b/macos/fileprovider/file_provider_testing_modification_protocol.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package fileprovider @@ -11,103 +11,106 @@ import ( // [Full Topic]: https://developer.apple.com/documentation/fileprovider/nsfileprovidertestingmodification?language=objc type PFileProviderTestingModification interface { // optional - TargetSide() FileProviderTestingOperationSide - HasTargetSide() bool + ChangedFields() FileProviderItemFields + HasChangedFields() bool // optional TargetItemIdentifier() FileProviderItemIdentifier HasTargetItemIdentifier() bool // optional - DomainVersion() IFileProviderDomainVersion - HasDomainVersion() bool + SourceItem() objc.Object + HasSourceItem() bool // optional - TargetItemBaseVersion() IFileProviderItemVersion - HasTargetItemBaseVersion() bool + TargetSide() FileProviderTestingOperationSide + HasTargetSide() bool // optional - SourceItem() objc.IObject - HasSourceItem() bool + DomainVersion() FileProviderDomainVersion + HasDomainVersion() bool // optional - ChangedFields() FileProviderItemFields - HasChangedFields() bool + TargetItemBaseVersion() FileProviderItemVersion + HasTargetItemBaseVersion() bool } -// A concrete type wrapper for the [PFileProviderTestingModification] protocol. -type FileProviderTestingModificationWrapper struct { +// ensure impl type implements protocol interface +var _ PFileProviderTestingModification = (*FileProviderTestingModificationObject)(nil) + +// A concrete type for the [PFileProviderTestingModification] protocol. +type FileProviderTestingModificationObject struct { objc.Object } -func (f_ FileProviderTestingModificationWrapper) HasTargetSide() bool { - return f_.RespondsToSelector(objc.Sel("targetSide")) +func (f_ FileProviderTestingModificationObject) HasChangedFields() bool { + return f_.RespondsToSelector(objc.Sel("changedFields")) } -// The target location for the modification operation. [Full Topic] +// A list of the fields that changed. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/fileprovider/nsfileprovidertestingmodification/3736246-targetside?language=objc -func (f_ FileProviderTestingModificationWrapper) TargetSide() FileProviderTestingOperationSide { - rv := objc.Call[FileProviderTestingOperationSide](f_, objc.Sel("targetSide")) +// [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 } -func (f_ FileProviderTestingModificationWrapper) HasTargetItemIdentifier() bool { +func (f_ FileProviderTestingModificationObject) HasTargetItemIdentifier() bool { return f_.RespondsToSelector(objc.Sel("targetItemIdentifier")) } // The unique identifier for the target item. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/fileprovider/nsfileprovidertestingmodification/3736245-targetitemidentifier?language=objc -func (f_ FileProviderTestingModificationWrapper) TargetItemIdentifier() FileProviderItemIdentifier { +func (f_ FileProviderTestingModificationObject) TargetItemIdentifier() FileProviderItemIdentifier { rv := objc.Call[FileProviderItemIdentifier](f_, objc.Sel("targetItemIdentifier")) return rv } -func (f_ FileProviderTestingModificationWrapper) HasDomainVersion() bool { - return f_.RespondsToSelector(objc.Sel("domainVersion")) +func (f_ FileProviderTestingModificationObject) HasSourceItem() bool { + return f_.RespondsToSelector(objc.Sel("sourceItem")) } -// The domain’s version when the change occurred. [Full Topic] +// A description of the source item. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/fileprovider/nsfileprovidertestingmodification/3736242-domainversion?language=objc -func (f_ FileProviderTestingModificationWrapper) DomainVersion() FileProviderDomainVersion { - rv := objc.Call[FileProviderDomainVersion](f_, objc.Sel("domainVersion")) +// [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_ FileProviderTestingModificationWrapper) HasTargetItemBaseVersion() bool { - return f_.RespondsToSelector(objc.Sel("targetItemBaseVersion")) +func (f_ FileProviderTestingModificationObject) HasTargetSide() bool { + return f_.RespondsToSelector(objc.Sel("targetSide")) } -// The version of the changed item. [Full Topic] +// The target location for the modification operation. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/fileprovider/nsfileprovidertestingmodification/3736244-targetitembaseversion?language=objc -func (f_ FileProviderTestingModificationWrapper) TargetItemBaseVersion() FileProviderItemVersion { - rv := objc.Call[FileProviderItemVersion](f_, objc.Sel("targetItemBaseVersion")) +// [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_ FileProviderTestingModificationWrapper) HasSourceItem() bool { - return f_.RespondsToSelector(objc.Sel("sourceItem")) +func (f_ FileProviderTestingModificationObject) HasDomainVersion() bool { + return f_.RespondsToSelector(objc.Sel("domainVersion")) } -// A description of the source item. [Full Topic] +// The domain’s version when the change occurred. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/fileprovider/nsfileprovidertestingmodification/3736243-sourceitem?language=objc -func (f_ FileProviderTestingModificationWrapper) SourceItem() objc.Object { - rv := objc.Call[objc.Object](f_, objc.Sel("sourceItem")) +// [Full Topic]: https://developer.apple.com/documentation/fileprovider/nsfileprovidertestingmodification/3736242-domainversion?language=objc +func (f_ FileProviderTestingModificationObject) DomainVersion() FileProviderDomainVersion { + rv := objc.Call[FileProviderDomainVersion](f_, objc.Sel("domainVersion")) return rv } -func (f_ FileProviderTestingModificationWrapper) HasChangedFields() bool { - return f_.RespondsToSelector(objc.Sel("changedFields")) +func (f_ FileProviderTestingModificationObject) HasTargetItemBaseVersion() bool { + return f_.RespondsToSelector(objc.Sel("targetItemBaseVersion")) } -// A list of the fields that changed. [Full Topic] +// The version of the changed item. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/fileprovider/nsfileprovidertestingmodification/3736241-changedfields?language=objc -func (f_ FileProviderTestingModificationWrapper) ChangedFields() FileProviderItemFields { - rv := objc.Call[FileProviderItemFields](f_, objc.Sel("changedFields")) +// [Full Topic]: https://developer.apple.com/documentation/fileprovider/nsfileprovidertestingmodification/3736244-targetitembaseversion?language=objc +func (f_ FileProviderTestingModificationObject) TargetItemBaseVersion() FileProviderItemVersion { + rv := objc.Call[FileProviderItemVersion](f_, objc.Sel("targetItemBaseVersion")) return rv } diff --git a/macos/fileprovider/file_provider_testing_operation.gen.go b/macos/fileprovider/file_provider_testing_operation_protocol.gen.go similarity index 53% rename from macos/fileprovider/file_provider_testing_operation.gen.go rename to macos/fileprovider/file_provider_testing_operation_protocol.gen.go index 9fab1237..52804d0a 100644 --- a/macos/fileprovider/file_provider_testing_operation.gen.go +++ b/macos/fileprovider/file_provider_testing_operation_protocol.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package fileprovider @@ -11,35 +11,35 @@ import ( // [Full Topic]: https://developer.apple.com/documentation/fileprovider/nsfileprovidertestingoperation?language=objc type PFileProviderTestingOperation interface { // optional - AsModification() PFileProviderTestingModification - HasAsModification() bool + AsContentFetch() FileProviderTestingContentFetchObject + HasAsContentFetch() bool // optional - AsCreation() PFileProviderTestingCreation - HasAsCreation() bool + AsDeletion() FileProviderTestingDeletionObject + HasAsDeletion() bool // optional - AsDeletion() PFileProviderTestingDeletion - HasAsDeletion() bool + AsIngestion() FileProviderTestingIngestionObject + HasAsIngestion() bool // optional - AsLookup() PFileProviderTestingLookup - HasAsLookup() bool + AsCreation() FileProviderTestingCreationObject + HasAsCreation() bool // optional - AsContentFetch() PFileProviderTestingContentFetch - HasAsContentFetch() bool + AsCollisionResolution() FileProviderTestingCollisionResolutionObject + HasAsCollisionResolution() bool // optional - AsIngestion() PFileProviderTestingIngestion - HasAsIngestion() bool + AsModification() FileProviderTestingModificationObject + HasAsModification() bool // optional - AsCollisionResolution() PFileProviderTestingCollisionResolution - HasAsCollisionResolution() bool + AsLookup() FileProviderTestingLookupObject + HasAsLookup() bool // optional - AsChildrenEnumeration() PFileProviderTestingChildrenEnumeration + AsChildrenEnumeration() FileProviderTestingChildrenEnumerationObject HasAsChildrenEnumeration() bool // optional @@ -47,115 +47,118 @@ type PFileProviderTestingOperation interface { HasType() bool } -// A concrete type wrapper for the [PFileProviderTestingOperation] protocol. -type FileProviderTestingOperationWrapper struct { +// ensure impl type implements protocol interface +var _ PFileProviderTestingOperation = (*FileProviderTestingOperationObject)(nil) + +// A concrete type for the [PFileProviderTestingOperation] protocol. +type FileProviderTestingOperationObject struct { objc.Object } -func (f_ FileProviderTestingOperationWrapper) HasAsModification() bool { - return f_.RespondsToSelector(objc.Sel("asModification")) +func (f_ FileProviderTestingOperationObject) HasAsContentFetch() bool { + return f_.RespondsToSelector(objc.Sel("asContentFetch")) } -// Returns the operation if it propagates a change. [Full Topic] +// Returns the operation if it fetches an item’s content. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/fileprovider/nsfileprovidertestingoperation/3736254-asmodification?language=objc -func (f_ FileProviderTestingOperationWrapper) AsModification() FileProviderTestingModificationWrapper { - rv := objc.Call[FileProviderTestingModificationWrapper](f_, objc.Sel("asModification")) +// [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_ FileProviderTestingOperationWrapper) HasAsCreation() bool { - return f_.RespondsToSelector(objc.Sel("asCreation")) +func (f_ FileProviderTestingOperationObject) HasAsDeletion() bool { + return f_.RespondsToSelector(objc.Sel("asDeletion")) } -// Returns the operation if it propagates the creation of an item. [Full Topic] +// Returns the operation if it propagates the deletion of an item. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/fileprovider/nsfileprovidertestingoperation/3736250-ascreation?language=objc -func (f_ FileProviderTestingOperationWrapper) AsCreation() FileProviderTestingCreationWrapper { - rv := objc.Call[FileProviderTestingCreationWrapper](f_, objc.Sel("asCreation")) +// [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_ FileProviderTestingOperationWrapper) HasAsDeletion() bool { - return f_.RespondsToSelector(objc.Sel("asDeletion")) +func (f_ FileProviderTestingOperationObject) HasAsIngestion() bool { + return f_.RespondsToSelector(objc.Sel("asIngestion")) } -// Returns the operation if it propagates the deletion of an item. [Full Topic] +// Returns the operation if it alerts the system to changes. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/fileprovider/nsfileprovidertestingoperation/3736251-asdeletion?language=objc -func (f_ FileProviderTestingOperationWrapper) AsDeletion() FileProviderTestingDeletionWrapper { - rv := objc.Call[FileProviderTestingDeletionWrapper](f_, objc.Sel("asDeletion")) +// [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_ FileProviderTestingOperationWrapper) HasAsLookup() bool { - return f_.RespondsToSelector(objc.Sel("asLookup")) +func (f_ FileProviderTestingOperationObject) HasAsCreation() bool { + return f_.RespondsToSelector(objc.Sel("asCreation")) } -// Returns the operation if it looks up 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/3736253-aslookup?language=objc -func (f_ FileProviderTestingOperationWrapper) AsLookup() FileProviderTestingLookupWrapper { - rv := objc.Call[FileProviderTestingLookupWrapper](f_, objc.Sel("asLookup")) +// [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_ FileProviderTestingOperationWrapper) HasAsContentFetch() bool { - return f_.RespondsToSelector(objc.Sel("asContentFetch")) +func (f_ FileProviderTestingOperationObject) HasAsCollisionResolution() bool { + return f_.RespondsToSelector(objc.Sel("asCollisionResolution")) } -// Returns the operation if it fetches an item’s content. [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/3736249-ascontentfetch?language=objc -func (f_ FileProviderTestingOperationWrapper) AsContentFetch() FileProviderTestingContentFetchWrapper { - rv := objc.Call[FileProviderTestingContentFetchWrapper](f_, objc.Sel("asContentFetch")) +// [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 } -func (f_ FileProviderTestingOperationWrapper) HasAsIngestion() bool { - return f_.RespondsToSelector(objc.Sel("asIngestion")) +func (f_ FileProviderTestingOperationObject) HasAsModification() bool { + return f_.RespondsToSelector(objc.Sel("asModification")) } -// Returns the operation if it alerts the system to changes. [Full Topic] +// Returns the operation if it propagates a change. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/fileprovider/nsfileprovidertestingoperation/3736252-asingestion?language=objc -func (f_ FileProviderTestingOperationWrapper) AsIngestion() FileProviderTestingIngestionWrapper { - rv := objc.Call[FileProviderTestingIngestionWrapper](f_, objc.Sel("asIngestion")) +// [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_ FileProviderTestingOperationWrapper) HasAsCollisionResolution() bool { - return f_.RespondsToSelector(objc.Sel("asCollisionResolution")) +func (f_ FileProviderTestingOperationObject) HasAsLookup() bool { + return f_.RespondsToSelector(objc.Sel("asLookup")) } -// Returns the operation if it resolves a collision by renaming the new item. [Full Topic] +// Returns the operation if it looks up an item. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/fileprovider/nsfileprovidertestingoperation/3736248-ascollisionresolution?language=objc -func (f_ FileProviderTestingOperationWrapper) AsCollisionResolution() FileProviderTestingCollisionResolutionWrapper { - rv := objc.Call[FileProviderTestingCollisionResolutionWrapper](f_, objc.Sel("asCollisionResolution")) +// [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_ FileProviderTestingOperationWrapper) HasAsChildrenEnumeration() bool { +func (f_ FileProviderTestingOperationObject) HasAsChildrenEnumeration() bool { return f_.RespondsToSelector(objc.Sel("asChildrenEnumeration")) } // Returns the operation if it enumerates contained items. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/fileprovider/nsfileprovidertestingoperation/3736247-aschildrenenumeration?language=objc -func (f_ FileProviderTestingOperationWrapper) AsChildrenEnumeration() FileProviderTestingChildrenEnumerationWrapper { - rv := objc.Call[FileProviderTestingChildrenEnumerationWrapper](f_, objc.Sel("asChildrenEnumeration")) +func (f_ FileProviderTestingOperationObject) AsChildrenEnumeration() FileProviderTestingChildrenEnumerationObject { + rv := objc.Call[FileProviderTestingChildrenEnumerationObject](f_, objc.Sel("asChildrenEnumeration")) return rv } -func (f_ FileProviderTestingOperationWrapper) HasType() bool { +func (f_ FileProviderTestingOperationObject) HasType() bool { return f_.RespondsToSelector(objc.Sel("type")) } // The operation’s type. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/fileprovider/nsfileprovidertestingoperation/3736255-type?language=objc -func (f_ FileProviderTestingOperationWrapper) Type() FileProviderTestingOperationType { +func (f_ FileProviderTestingOperationObject) Type() FileProviderTestingOperationType { rv := objc.Call[FileProviderTestingOperationType](f_, objc.Sel("type")) return rv } diff --git a/macos/fileprovider/file_provider_thumbnailing.gen.go b/macos/fileprovider/file_provider_thumbnailing_protocol.gen.go similarity index 63% rename from macos/fileprovider/file_provider_thumbnailing.gen.go rename to macos/fileprovider/file_provider_thumbnailing_protocol.gen.go index 42e0ad34..80628800 100644 --- a/macos/fileprovider/file_provider_thumbnailing.gen.go +++ b/macos/fileprovider/file_provider_thumbnailing_protocol.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package fileprovider @@ -13,23 +13,26 @@ import ( // [Full Topic]: https://developer.apple.com/documentation/fileprovider/nsfileproviderthumbnailing?language=objc type PFileProviderThumbnailing interface { // optional - FetchThumbnailsForItemIdentifiersRequestedSizePerThumbnailCompletionHandlerCompletionHandler(itemIdentifiers []FileProviderItemIdentifier, size coregraphics.Size, perThumbnailCompletionHandler func(identifier FileProviderItemIdentifier, imageData []byte, error foundation.Error), completionHandler func(error foundation.Error)) foundation.IProgress + FetchThumbnailsForItemIdentifiersRequestedSizePerThumbnailCompletionHandlerCompletionHandler(itemIdentifiers []FileProviderItemIdentifier, size coregraphics.Size, perThumbnailCompletionHandler func(identifier FileProviderItemIdentifier, imageData []byte, error foundation.Error), completionHandler func(error foundation.Error)) foundation.Progress HasFetchThumbnailsForItemIdentifiersRequestedSizePerThumbnailCompletionHandlerCompletionHandler() bool } -// A concrete type wrapper for the [PFileProviderThumbnailing] protocol. -type FileProviderThumbnailingWrapper struct { +// ensure impl type implements protocol interface +var _ PFileProviderThumbnailing = (*FileProviderThumbnailingObject)(nil) + +// A concrete type for the [PFileProviderThumbnailing] protocol. +type FileProviderThumbnailingObject struct { objc.Object } -func (f_ FileProviderThumbnailingWrapper) HasFetchThumbnailsForItemIdentifiersRequestedSizePerThumbnailCompletionHandlerCompletionHandler() bool { +func (f_ FileProviderThumbnailingObject) HasFetchThumbnailsForItemIdentifiersRequestedSizePerThumbnailCompletionHandlerCompletionHandler() bool { return f_.RespondsToSelector(objc.Sel("fetchThumbnailsForItemIdentifiers:requestedSize:perThumbnailCompletionHandler:completionHandler:")) } // Asks the file provider for a thumbnail of the specified items. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/fileprovider/nsfileproviderthumbnailing/3553313-fetchthumbnailsforitemidentifier?language=objc -func (f_ FileProviderThumbnailingWrapper) FetchThumbnailsForItemIdentifiersRequestedSizePerThumbnailCompletionHandlerCompletionHandler(itemIdentifiers []FileProviderItemIdentifier, size coregraphics.Size, perThumbnailCompletionHandler func(identifier FileProviderItemIdentifier, imageData []byte, error foundation.Error), completionHandler func(error foundation.Error)) foundation.Progress { +func (f_ FileProviderThumbnailingObject) FetchThumbnailsForItemIdentifiersRequestedSizePerThumbnailCompletionHandlerCompletionHandler(itemIdentifiers []FileProviderItemIdentifier, size coregraphics.Size, perThumbnailCompletionHandler func(identifier FileProviderItemIdentifier, imageData []byte, error foundation.Error), completionHandler func(error foundation.Error)) foundation.Progress { rv := objc.Call[foundation.Progress](f_, objc.Sel("fetchThumbnailsForItemIdentifiers:requestedSize:perThumbnailCompletionHandler:completionHandler:"), itemIdentifiers, size, perThumbnailCompletionHandler, completionHandler) return rv } diff --git a/macos/fileprovider/file_provider_user_interaction_suppressing.gen.go b/macos/fileprovider/file_provider_user_interaction_suppressing_protocol.gen.go similarity index 67% rename from macos/fileprovider/file_provider_user_interaction_suppressing.gen.go rename to macos/fileprovider/file_provider_user_interaction_suppressing_protocol.gen.go index cd322c0e..54fbb221 100644 --- a/macos/fileprovider/file_provider_user_interaction_suppressing.gen.go +++ b/macos/fileprovider/file_provider_user_interaction_suppressing_protocol.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package fileprovider @@ -19,30 +19,33 @@ type PFileProviderUserInteractionSuppressing interface { HasSetInteractionSuppressedForIdentifier() bool } -// A concrete type wrapper for the [PFileProviderUserInteractionSuppressing] protocol. -type FileProviderUserInteractionSuppressingWrapper struct { +// ensure impl type implements protocol interface +var _ PFileProviderUserInteractionSuppressing = (*FileProviderUserInteractionSuppressingObject)(nil) + +// A concrete type for the [PFileProviderUserInteractionSuppressing] protocol. +type FileProviderUserInteractionSuppressingObject struct { objc.Object } -func (f_ FileProviderUserInteractionSuppressingWrapper) HasIsInteractionSuppressedForIdentifier() bool { +func (f_ FileProviderUserInteractionSuppressingObject) HasIsInteractionSuppressedForIdentifier() bool { return f_.RespondsToSelector(objc.Sel("isInteractionSuppressedForIdentifier:")) } // Asks the File Provider extension if the user suppressed the specified interaction. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/fileprovider/nsfileprovideruserinteractionsuppressing/3762902-isinteractionsuppressedforidenti?language=objc -func (f_ FileProviderUserInteractionSuppressingWrapper) IsInteractionSuppressedForIdentifier(suppressionIdentifier string) bool { +func (f_ FileProviderUserInteractionSuppressingObject) IsInteractionSuppressedForIdentifier(suppressionIdentifier string) bool { rv := objc.Call[bool](f_, objc.Sel("isInteractionSuppressedForIdentifier:"), suppressionIdentifier) return rv } -func (f_ FileProviderUserInteractionSuppressingWrapper) HasSetInteractionSuppressedForIdentifier() bool { +func (f_ FileProviderUserInteractionSuppressingObject) HasSetInteractionSuppressedForIdentifier() bool { return f_.RespondsToSelector(objc.Sel("setInteractionSuppressed:forIdentifier:")) } // Tells the File Provider extension that the user wants to suppress the user interaction. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/fileprovider/nsfileprovideruserinteractionsuppressing/3762903-setinteractionsuppressed?language=objc -func (f_ FileProviderUserInteractionSuppressingWrapper) SetInteractionSuppressedForIdentifier(suppression bool, suppressionIdentifier string) { +func (f_ FileProviderUserInteractionSuppressingObject) SetInteractionSuppressedForIdentifier(suppression bool, suppressionIdentifier string) { objc.Call[objc.Void](f_, objc.Sel("setInteractionSuppressed:forIdentifier:"), suppression, suppressionIdentifier) } diff --git a/macos/foundation/affine_transform.gen.go b/macos/foundation/affine_transform.gen.go index 854a3600..19c10689 100644 --- a/macos/foundation/affine_transform.gen.go +++ b/macos/foundation/affine_transform.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package foundation @@ -18,19 +18,19 @@ type _AffineTransformClass struct { // An interface definition for the [AffineTransform] class. type IAffineTransform interface { objc.IObject - TransformPoint(aPoint Point) Point - Set() - Invert() + PrependTransform(transform IAffineTransform) Concat() + ScaleXByYBy(scaleX float64, scaleY float64) TransformBezierPath(path objc.IObject) objc.Object + Invert() + Set() + RotateByDegrees(angle float64) TransformSize(aSize Size) Size - ScaleXByYBy(scaleX float64, scaleY float64) - AppendTransform(transform IAffineTransform) - ScaleBy(scale float64) - PrependTransform(transform IAffineTransform) RotateByRadians(angle float64) - RotateByDegrees(angle float64) + ScaleBy(scale float64) + AppendTransform(transform IAffineTransform) TranslateXByYBy(deltaX float64, deltaY float64) + TransformPoint(aPoint Point) Point TransformStruct() AffineTransformStruct SetTransformStruct(value AffineTransformStruct) } @@ -48,6 +48,11 @@ 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:"), objc.Ptr(transform)) return rv @@ -62,20 +67,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 } -func AffineTransform_Alloc() AffineTransform { - return AffineTransformClass.Alloc() -} - func (ac _AffineTransformClass) New() AffineTransform { rv := objc.Call[AffineTransform](ac, objc.Sel("new")) rv.Autorelease() @@ -86,26 +82,11 @@ func NewAffineTransform() AffineTransform { return AffineTransformClass.New() } -// Applies the receiver’s transform to the specified point and returns the result. [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) - 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] +// Prepends the specified matrix to the receiver’s 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/1409793-prependtransform?language=objc +func (a_ AffineTransform) PrependTransform(transform IAffineTransform) { + objc.Call[objc.Void](a_, objc.Sel("prependTransform:"), objc.Ptr(transform)) } // 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] @@ -115,6 +96,13 @@ 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 @@ -123,40 +111,48 @@ func (a_ AffineTransform) TransformBezierPath(path objc.IObject) objc.Object { return rv } -// Applies the receiver’s transform to the specified size and returns the results. [Full Topic] +// Creates a new affine transform initialized to the identity 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) +// [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 } -// Applies scaling factors to each axis of the receiver’s transformation matrix. [Full Topic] +// Creates a new affine transform initialized to the identity 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) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsaffinetransform/1589057-transform?language=objc +func AffineTransform_Transform() AffineTransform { + return AffineTransformClass.Transform() } -// Appends the specified matrix to the receiver’s matrix. [Full Topic] +// Replaces the receiver’s matrix with its inverse 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:"), objc.Ptr(transform)) +// [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")) } -// Applies the specified scaling factor along both x and y axes to the receiver’s transformation matrix. [Full Topic] +// Sets the current transformation matrix 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) +// [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")) } -// Prepends 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/1409793-prependtransform?language=objc -func (a_ AffineTransform) PrependTransform(transform IAffineTransform) { - objc.Call[objc.Void](a_, objc.Sel("prependTransform:"), objc.Ptr(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 receiver’s transform to the specified size and returns the results. [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 } // Applies a rotation factor (measured in radians) to the receiver’s transformation matrix. [Full Topic] @@ -166,11 +162,18 @@ func (a_ AffineTransform) RotateByRadians(angle float64) { objc.Call[objc.Void](a_, objc.Sel("rotateByRadians:"), angle) } -// 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) +} + +// Appends the specified matrix to the receiver’s 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:"), objc.Ptr(transform)) } // Applies the specified translation factors to the receiver’s transformation matrix. [Full Topic] @@ -180,21 +183,14 @@ func (a_ AffineTransform) TranslateXByYBy(deltaX float64, deltaY float64) { objc.Call[objc.Void](a_, objc.Sel("translateXBy:yBy:"), deltaX, deltaY) } -// Creates a new affine transform initialized to the identity 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/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/1411619-transformpoint?language=objc +func (a_ AffineTransform) TransformPoint(aPoint Point) Point { + rv := objc.Call[Point](a_, objc.Sel("transformPoint:"), aPoint) 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 9fef0457..8e374cf6 100644 --- a/macos/foundation/aliastypes.gen.go +++ b/macos/foundation/aliastypes.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package foundation @@ -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 executeWithAppleEvent:completionHandler:. [Full Topic] +// Implement this block to retrieve the result of the AppleScript executed by [foundation/nsuserapplescripttask/executewithappleevent]. [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 executeWithCompletionHandler:. [Full Topic] +// Implement this block to retrieve the error of the script executed by [foundation/nsuserscripttask/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 executeWithInput:completionHandler:. [Full Topic] +// Implement this block to retrieve the output of the Automator workflow executed by [foundation/nsuserautomatortask/executewithinput]. [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 executeWithArguments:completionHandler:. [Full Topic] +// Implement this block to retrieve an error from the Unix scripted executed by [foundation/nsuserunixtask/executewitharguments]. [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 9c626b41..632a2408 100644 --- a/macos/foundation/apple_event_descriptor.gen.go +++ b/macos/foundation/apple_event_descriptor.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package foundation @@ -18,21 +18,21 @@ type _AppleEventDescriptorClass struct { // An interface definition for the [AppleEventDescriptor] class. type IAppleEventDescriptor interface { objc.IObject - InsertDescriptorAtIndex(descriptor IAppleEventDescriptor, index int) - RemoveDescriptorAtIndex(index int) DescriptorAtIndex(index int) AppleEventDescriptor + RemoveDescriptorAtIndex(index int) + InsertDescriptorAtIndex(descriptor IAppleEventDescriptor, index int) SendEventWithOptionsTimeoutError(sendOptions AppleEventSendOptions, timeoutInSeconds TimeInterval, error IError) AppleEventDescriptor - Int32Value() int32 - TypeCodeValue() uint - StringValue() string - EnumCodeValue() uint FileURLValue() URL - BooleanValue() bool + StringValue() string + IsRecordDescriptor() bool + NumberOfItems() int Data() []byte DoubleValue() float64 + EnumCodeValue() uint + Int32Value() int32 DateValue() Date - NumberOfItems() int - IsRecordDescriptor() bool + BooleanValue() bool + TypeCodeValue() uint } // A wrapper for the Apple event descriptor data type. [Full Topic] @@ -81,10 +81,6 @@ func (ac _AppleEventDescriptorClass) Alloc() AppleEventDescriptor { return rv } -func AppleEventDescriptor_Alloc() AppleEventDescriptor { - return AppleEventDescriptorClass.Alloc() -} - func (ac _AppleEventDescriptorClass) New() AppleEventDescriptor { rv := objc.Call[AppleEventDescriptor](ac, objc.Sel("new")) rv.Autorelease() @@ -100,49 +96,57 @@ func (a_ AppleEventDescriptor) Init() AppleEventDescriptor { return rv } -// Creates a descriptor initialized with type typeUnicodeText that stores the text from the specified string. [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/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/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 typeUnicodeText that stores the text from the specified string. [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/1415227-descriptorwithstring?language=objc -func AppleEventDescriptor_DescriptorWithString(string_ string) AppleEventDescriptor { - return AppleEventDescriptorClass.DescriptorWithString(string_) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsappleeventdescriptor/1413358-descriptorwithenumcode?language=objc +func AppleEventDescriptor_DescriptorWithEnumCode(enumerator uint) AppleEventDescriptor { + return AppleEventDescriptorClass.DescriptorWithEnumCode(enumerator) } -// Creates a descriptor initialized with Apple event type typeSInt32 that stores the specified integer value. [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/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/1414380-recorddescriptor?language=objc +func (ac _AppleEventDescriptorClass) RecordDescriptor() AppleEventDescriptor { + rv := objc.Call[AppleEventDescriptor](ac, objc.Sel("recordDescriptor")) return rv } -// Creates a descriptor initialized with Apple event type typeSInt32 that stores the specified integer value. [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/1411435-descriptorwithint32?language=objc -func AppleEventDescriptor_DescriptorWithInt32(signedInt int32) AppleEventDescriptor { - return AppleEventDescriptorClass.DescriptorWithInt32(signedInt) +// [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 typeType that stores the specified type value. [Full Topic] +// [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/1416614-currentprocessdescriptor?language=objc +func (ac _AppleEventDescriptorClass) CurrentProcessDescriptor() AppleEventDescriptor { + rv := objc.Call[AppleEventDescriptor](ac, objc.Sel("currentProcessDescriptor")) return rv } -// Creates a descriptor initialized with type typeType that stores the specified type value. [Full Topic] +// [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]: 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] +// +// [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] @@ -160,64 +164,63 @@ func AppleEventDescriptor_DescriptorWithFileURL(fileURL IURL) AppleEventDescript return AppleEventDescriptorClass.DescriptorWithFileURL(fileURL) } -// Creates and initializes an empty list descriptor. [Full Topic] +// 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/1412854-listdescriptor?language=objc -func (ac _AppleEventDescriptorClass) ListDescriptor() AppleEventDescriptor { - rv := objc.Call[AppleEventDescriptor](ac, objc.Sel("listDescriptor")) - return rv +// [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) } -// Creates and initializes an empty list descriptor. [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/1412854-listdescriptor?language=objc -func AppleEventDescriptor_ListDescriptor() AppleEventDescriptor { - return AppleEventDescriptorClass.ListDescriptor() +// [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] +// 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/1415521-descriptorwithbundleidentifier?language=objc -func (ac _AppleEventDescriptorClass) DescriptorWithBundleIdentifier(bundleIdentifier string) AppleEventDescriptor { - rv := objc.Call[AppleEventDescriptor](ac, objc.Sel("descriptorWithBundleIdentifier:"), bundleIdentifier) - 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 and initializes an empty list descriptor. [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/1412854-listdescriptor?language=objc +func (ac _AppleEventDescriptorClass) ListDescriptor() AppleEventDescriptor { + rv := objc.Call[AppleEventDescriptor](ac, objc.Sel("listDescriptor")) + return rv } -// Creates a descriptor initialized with type typeEnumerated that stores the specified enumerator data type value. [Full Topic] +// Creates and initializes an empty list descriptor. [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 +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsappleeventdescriptor/1412854-listdescriptor?language=objc +func AppleEventDescriptor_ListDescriptor() AppleEventDescriptor { + return AppleEventDescriptorClass.ListDescriptor() } -// Creates a descriptor initialized with type typeEnumerated that stores the specified enumerator data type value. [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/1413358-descriptorwithenumcode?language=objc -func AppleEventDescriptor_DescriptorWithEnumCode(enumerator uint) AppleEventDescriptor { - return AppleEventDescriptorClass.DescriptorWithEnumCode(enumerator) +// [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:"), objc.Ptr(descriptor), index) } // [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:"), objc.Ptr(date)) +// [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:"), objc.Ptr(applicationURL)) 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/1412834-descriptorwithapplicationurl?language=objc +func AppleEventDescriptor_DescriptorWithApplicationURL(applicationURL IURL) AppleEventDescriptor { + return AppleEventDescriptorClass.DescriptorWithApplicationURL(applicationURL) } // Creates a descriptor initialized with type typeBoolean that stores the specified Boolean value. [Full Topic] @@ -235,48 +238,34 @@ func AppleEventDescriptor_DescriptorWithBoolean(boolean bool) AppleEventDescript return AppleEventDescriptorClass.DescriptorWithBoolean(boolean) } -// 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/1409452-insertdescriptor?language=objc -func (a_ AppleEventDescriptor) InsertDescriptorAtIndex(descriptor IAppleEventDescriptor, index int) { - objc.Call[objc.Void](a_, objc.Sel("insertDescriptor:atIndex:"), objc.Ptr(descriptor), index) -} - -// Creates and initializes a descriptor for an Apple event record whose data has yet to be set. [Full Topic] +// [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/1415521-descriptorwithbundleidentifier?language=objc +func (ac _AppleEventDescriptorClass) DescriptorWithBundleIdentifier(bundleIdentifier string) AppleEventDescriptor { + rv := objc.Call[AppleEventDescriptor](ac, objc.Sel("descriptorWithBundleIdentifier:"), bundleIdentifier) return rv } -// Creates and initializes a descriptor for an Apple event record whose data has yet to be set. [Full Topic] +// [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/1415521-descriptorwithbundleidentifier?language=objc +func AppleEventDescriptor_DescriptorWithBundleIdentifier(bundleIdentifier string) AppleEventDescriptor { + return AppleEventDescriptorClass.DescriptorWithBundleIdentifier(bundleIdentifier) } -// Creates and initializes a descriptor with no parameter or attribute values 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/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/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 with no parameter or attribute values set. [Full Topic] -// -// [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] +// 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/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/1415227-descriptorwithstring?language=objc +func AppleEventDescriptor_DescriptorWithString(string_ string) AppleEventDescriptor { + return AppleEventDescriptorClass.DescriptorWithString(string_) } // [Full Topic] @@ -296,42 +285,49 @@ func AppleEventDescriptor_DescriptorWithDouble(doubleValue float64) AppleEventDe // [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/1409710-descriptorwithdate?language=objc +func (ac _AppleEventDescriptorClass) DescriptorWithDate(date IDate) AppleEventDescriptor { + rv := objc.Call[AppleEventDescriptor](ac, objc.Sel("descriptorWithDate:"), objc.Ptr(date)) return rv } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsappleeventdescriptor/1416614-currentprocessdescriptor?language=objc -func AppleEventDescriptor_CurrentProcessDescriptor() AppleEventDescriptor { - return AppleEventDescriptorClass.CurrentProcessDescriptor() +// [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] +// Creates and initializes a descriptor with no parameter or attribute values set. [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:"), objc.Ptr(applicationURL)) +// [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 } -// [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/1412834-descriptorwithapplicationurl?language=objc -func AppleEventDescriptor_DescriptorWithApplicationURL(applicationURL IURL) AppleEventDescriptor { - return AppleEventDescriptorClass.DescriptorWithApplicationURL(applicationURL) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsappleeventdescriptor/1412488-nulldescriptor?language=objc +func AppleEventDescriptor_NullDescriptor() AppleEventDescriptor { + return AppleEventDescriptorClass.NullDescriptor() } -// Returns the descriptor at the specified (one-based) position in the receiving descriptor list. [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/1408027-descriptoratindex?language=objc -func (a_ AppleEventDescriptor) DescriptorAtIndex(index int) AppleEventDescriptor { - rv := objc.Call[AppleEventDescriptor](a_, objc.Sel("descriptorAtIndex:"), index) +// [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 } +// 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 @@ -340,19 +336,11 @@ func (a_ AppleEventDescriptor) SendEventWithOptionsTimeoutError(sendOptions Appl 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 -} - -// 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/1409448-fileurlvalue?language=objc +func (a_ AppleEventDescriptor) FileURLValue() URL { + rv := objc.Call[URL](a_, objc.Sel("fileURLValue")) return rv } @@ -364,27 +352,19 @@ 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/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/1410136-isrecorddescriptor?language=objc +func (a_ AppleEventDescriptor) IsRecordDescriptor() bool { + rv := objc.Call[bool](a_, objc.Sel("isRecordDescriptor")) 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 } @@ -404,6 +384,22 @@ 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 @@ -412,18 +408,18 @@ func (a_ AppleEventDescriptor) DateValue() Date { 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 } -// [Full Topic] +// The contents of the receiver as a type, coercing to typeType if necessary. [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/1409662-typecodevalue?language=objc +func (a_ AppleEventDescriptor) TypeCodeValue() uint { + rv := objc.Call[uint](a_, objc.Sel("typeCodeValue")) return rv } diff --git a/macos/foundation/apple_event_manager.gen.go b/macos/foundation/apple_event_manager.gen.go index fe2c7fa6..364d957c 100644 --- a/macos/foundation/apple_event_manager.gen.go +++ b/macos/foundation/apple_event_manager.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package foundation @@ -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 - SuspendCurrentAppleEvent() AppleEventManagerSuspensionID SetCurrentAppleEventAndReplyEventWithSuspensionID(suspensionID AppleEventManagerSuspensionID) - AppleEventForSuspensionID(suspensionID AppleEventManagerSuspensionID) AppleEventDescriptor + SuspendCurrentAppleEvent() AppleEventManagerSuspensionID ResumeWithSuspensionID(suspensionID AppleEventManagerSuspensionID) - CurrentAppleEvent() AppleEventDescriptor CurrentReplyAppleEvent() AppleEventDescriptor + CurrentAppleEvent() AppleEventDescriptor } // A mechanism for registering handler routines for specific types of Apple events and dispatching events to those handlers. [Full Topic] @@ -45,10 +45,6 @@ func (ac _AppleEventManagerClass) Alloc() AppleEventManager { return rv } -func AppleEventManager_Alloc() AppleEventManager { - return AppleEventManagerClass.Alloc() -} - func (ac _AppleEventManagerClass) New() AppleEventManager { rv := objc.Call[AppleEventManager](ac, objc.Sel("new")) rv.Autorelease() @@ -64,19 +60,19 @@ func (a_ AppleEventManager) Init() AppleEventManager { return rv } -// Given a nonzero suspensionID returned by an invocation of suspendCurrentAppleEvent, returns the corresponding reply event descriptor. [Full Topic] +// Given a nonzero suspensionID returned by an invocation of [foundation/nsappleeventmanager/suspendcurrentappleevent], returns the descriptor for the event whose handling was suspended. [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/1410477-appleeventforsuspensionid?language=objc +func (a_ AppleEventManager) AppleEventForSuspensionID(suspensionID AppleEventManagerSuspensionID) AppleEventDescriptor { + rv := objc.Call[AppleEventDescriptor](a_, objc.Sel("appleEventForSuspensionID:"), suspensionID) return rv } -// 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 [foundation/nsappleeventmanager/suspendcurrentappleevent], returns the corresponding reply event descriptor. [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/1415286-replyappleeventforsuspensionid?language=objc +func (a_ AppleEventManager) ReplyAppleEventForSuspensionID(suspensionID AppleEventManagerSuspensionID) AppleEventDescriptor { + rv := objc.Call[AppleEventDescriptor](a_, objc.Sel("replyAppleEventForSuspensionID:"), suspensionID) return rv } @@ -95,36 +91,28 @@ func AppleEventManager_SharedAppleEventManager() AppleEventManager { return AppleEventManagerClass.SharedAppleEventManager() } -// 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] +// 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] // // [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) } -// Given a nonzero suspensionID returned by an invocation of suspendCurrentAppleEvent, returns the descriptor for the event whose handling was suspended. [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/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/1413501-suspendcurrentappleevent?language=objc +func (a_ AppleEventManager) SuspendCurrentAppleEvent() AppleEventManagerSuspensionID { + rv := objc.Call[AppleEventManagerSuspensionID](a_, objc.Sel("suspendCurrentAppleEvent")) return rv } -// Given a nonzero suspensionID returned by an invocation of suspendCurrentAppleEvent, signal that handling of the suspended event may now continue. [Full Topic] +// Given a nonzero suspensionID returned by an invocation of [foundation/nsappleeventmanager/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 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 -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 @@ -132,3 +120,11 @@ 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 +func (a_ AppleEventManager) CurrentAppleEvent() AppleEventDescriptor { + rv := objc.Call[AppleEventDescriptor](a_, objc.Sel("currentAppleEvent")) + return rv +} diff --git a/macos/foundation/apple_script.gen.go b/macos/foundation/apple_script.gen.go index 71aede44..73a40bf7 100644 --- a/macos/foundation/apple_script.gen.go +++ b/macos/foundation/apple_script.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package foundation @@ -18,12 +18,12 @@ type _AppleScriptClass struct { // An interface definition for the [AppleScript] class. type IAppleScript interface { objc.IObject - CompileAndReturnError(errorInfo map[string]objc.IObject) bool ExecuteAndReturnError(errorInfo map[string]objc.IObject) AppleEventDescriptor + CompileAndReturnError(errorInfo map[string]objc.IObject) bool ExecuteAppleEventError(event IAppleEventDescriptor, errorInfo map[string]objc.IObject) AppleEventDescriptor + IsCompiled() bool RichTextSource() AttributedString Source() string - IsCompiled() bool } // An object that provides the ability to load, compile, and execute scripts. [Full Topic] @@ -72,10 +72,6 @@ func (ac _AppleScriptClass) Alloc() AppleScript { return rv } -func AppleScript_Alloc() AppleScript { - return AppleScriptClass.Alloc() -} - func (ac _AppleScriptClass) New() AppleScript { rv := objc.Call[AppleScript](ac, objc.Sel("new")) rv.Autorelease() @@ -91,14 +87,6 @@ func (a_ AppleScript) Init() AppleScript { 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 -func (a_ AppleScript) CompileAndReturnError(errorInfo map[string]objc.IObject) bool { - rv := objc.Call[bool](a_, objc.Sel("compileAndReturnError:"), errorInfo) - 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 @@ -107,6 +95,14 @@ func (a_ AppleScript) ExecuteAndReturnError(errorInfo map[string]objc.IObject) A 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 +func (a_ AppleScript) CompileAndReturnError(errorInfo map[string]objc.IObject) bool { + rv := objc.Call[bool](a_, objc.Sel("compileAndReturnError:"), errorInfo) + 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] // // [Full Topic]: https://developer.apple.com/documentation/foundation/nsapplescript/1410807-executeappleevent?language=objc @@ -115,6 +111,14 @@ func (a_ AppleScript) ExecuteAppleEventError(event IAppleEventDescriptor, errorI 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 +} + // Returns the syntax-highlighted source code of the receiver if the receiver has been compiled and its source code is available. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/foundation/nsapplescript/1387495-richtextsource?language=objc @@ -130,11 +134,3 @@ 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/archiver.gen.go b/macos/foundation/archiver.gen.go index a7ecbcdc..9c0d27c6 100644 --- a/macos/foundation/archiver.gen.go +++ b/macos/foundation/archiver.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package foundation @@ -38,10 +38,6 @@ func (ac _ArchiverClass) Alloc() Archiver { return rv } -func Archiver_Alloc() Archiver { - return ArchiverClass.Alloc() -} - func (ac _ArchiverClass) New() Archiver { rv := objc.Call[Archiver](ac, objc.Sel("new")) rv.Autorelease() diff --git a/macos/foundation/array.gen.go b/macos/foundation/array.gen.go index b462bdef..a4a56cae 100644 --- a/macos/foundation/array.gen.go +++ b/macos/foundation/array.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package foundation @@ -18,54 +18,66 @@ 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 objc.IObject, 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 - 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 + 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 ObjectsAtIndexes(indexes IIndexSet) []objc.Object - ShuffledArray() []objc.Object - EnumerateObjectsUsingBlock(block func(obj objc.Object, idx uint, stop *bool)) - SortedArrayUsingDescriptors(sortDescriptors []ISortDescriptor) []objc.Object - ArrayByAddingObjectsFromArray(otherArray []objc.IObject) []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 - IndexOfObjectPassingTest(predicate func(obj objc.Object, idx uint, stop *bool) bool) uint - SortedArrayUsingSelector(comparator objc.Selector) []objc.Object - IndexOfObjectIdenticalToInRange(anObject objc.IObject, range_ Range) uint - ObjectAtIndex(index uint) objc.Object + FirstObjectCommonWithArray(otherArray []objc.IObject) objc.Object + ArrayByAddingObject(anObject objc.IObject) []objc.Object + WriteToURLError(url IURL, error IError) bool FilteredArrayUsingPredicate(predicate IPredicate) []objc.Object - ObjectAtIndexedSubscript(idx uint) objc.Object - ArrayByApplyingDifference(difference IOrderedCollectionDifference) []objc.Object - EnumerateObjectsWithOptionsUsingBlock(opts EnumerationOptions, block func(obj objc.Object, idx uint, stop *bool)) - GetObjectsRange(objects objc.IObject, range_ Range) + ShuffledArray() []objc.Object InitWithContentsOfURLError(url IURL, error IError) []objc.Object - ContainsObject(anObject objc.IObject) bool - MakeObjectsPerformSelector(aSelector objc.Selector) - ReverseObjectEnumerator() Enumerator - WriteToURLError(url IURL, error IError) 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 - 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 - ArrayByAddingObject(anObject objc.IObject) []objc.Object + RemoveObserverForKeyPathContext(observer objc.IObject, keyPath string, context unsafe.Pointer) 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 + 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)) - ShuffledArrayWithRandomSource(randomSource objc.IObject) []objc.Object + 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 - 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 + IndexOfObjectIdenticalToInRange(anObject objc.IObject, range_ Range) uint + IndexOfObjectPassingTest(predicate func(obj objc.Object, idx uint, stop *bool) bool) uint + DescriptionWithLocaleIndent(locale objc.IObject, level uint) string + 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 + 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 + 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) 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] @@ -81,6 +93,63 @@ 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 objc.IObject, cnt uint) Array { + rv := objc.Call[Array](a_, objc.Sel("initWithObjects:count:"), objc.Ptr(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 objc.IObject, 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:"), objc.Ptr(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{objc.Ptr(firstObj)}, args...)...) return rv @@ -107,18 +176,6 @@ 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{objc.Ptr(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 @@ -133,33 +190,28 @@ func NewArrayWithArray(array []objc.IObject) Array { return instance } -func (ac _ArrayClass) ArrayWithArray(array []objc.IObject) Array { - rv := objc.Call[Array](ac, objc.Sel("arrayWithArray:"), array) +func (ac _ArrayClass) ArrayWithObjectsCount(objects objc.IObject, cnt uint) Array { + rv := objc.Call[Array](ac, objc.Sel("arrayWithObjects:count:"), objc.Ptr(objects), cnt) return rv } -// Creates and returns an array containing the objects in another given array. [Full Topic] +// Creates and returns an array that includes a given number of objects from a given C 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) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsarray/1460096-arraywithobjects?language=objc +func Array_ArrayWithObjectsCount(objects objc.IObject, cnt uint) Array { + return ArrayClass.ArrayWithObjectsCount(objects, cnt) } -func (ac _ArrayClass) ArrayWithObject(anObject objc.IObject) Array { - rv := objc.Call[Array](ac, objc.Sel("arrayWithObject:"), objc.Ptr(anObject)) +func (ac _ArrayClass) ArrayWithObjects(firstObj objc.IObject, args ...any) Array { + rv := objc.Call[Array](ac, objc.Sel("arrayWithObjects:"), append([]any{objc.Ptr(firstObj)}, args...)...) return rv } -// Creates and returns an array containing a given object. [Full Topic] +// Creates and returns an array containing the objects in the argument list. [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) Init() Array { - rv := objc.Call[Array](a_, objc.Sel("init")) - return rv +// [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 (ac _ArrayClass) Alloc() Array { @@ -167,10 +219,6 @@ func (ac _ArrayClass) Alloc() Array { return rv } -func Array_Alloc() Array { - return ArrayClass.Alloc() -} - func (ac _ArrayClass) New() Array { rv := objc.Call[Array](ac, objc.Sel("new")) rv.Autorelease() @@ -181,6 +229,67 @@ 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:"), objc.Ptr(observer), objc.Ptr(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 objc.IObject, range_ Range) { + objc.Call[objc.Void](a_, objc.Sel("getObjects:range:"), objc.Ptr(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:"), objc.Ptr(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:"), objc.Ptr(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:"), objc.Ptr(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 @@ -189,27 +298,50 @@ func (a_ Array) ObjectEnumerator() Enumerator { 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] +// 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/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) +// [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 } -// Compares the receiving array to another array. [Full Topic] +// 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/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/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 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 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/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/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:"), objc.Ptr(s), opts, predicate) + 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] +// +// [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:"), objc.Ptr(s), opts, predicate) + return rv +} + +// 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/1415734-reverseobjectenumerator?language=objc +func (a_ Array) ReverseObjectEnumerator() Enumerator { + rv := objc.Call[Enumerator](a_, objc.Sel("reverseObjectEnumerator")) return rv } @@ -221,34 +353,41 @@ func (a_ Array) ObjectsAtIndexes(indexes IIndexSet) []objc.Object { return rv } -// Returns a new array that lists this array’s elements in a random order. [Full Topic] +// Returns the lowest index whose corresponding array value is identical to a given object. [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/1410847-indexofobjectidenticalto?language=objc +func (a_ Array) IndexOfObjectIdenticalTo(anObject objc.IObject) uint { + rv := objc.Call[uint](a_, objc.Sel("indexOfObjectIdenticalTo:"), objc.Ptr(anObject)) 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] +// 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/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/1460115-makeobjectsperformselector?language=objc +func (a_ Array) MakeObjectsPerformSelector(aSelector objc.Selector) { + objc.Call[objc.Void](a_, objc.Sel("makeObjectsPerformSelector:"), aSelector) } -// Returns a copy of the receiving array sorted as specified by a given array of sort descriptors. [Full Topic] +// Compares two arrays, with options, to create a difference object that represents the changes between them. [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) +// [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) 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] +// Raises an exception. [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) +// [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:"), objc.Ptr(observer), objc.Ptr(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] +// +// [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 } @@ -260,35 +399,27 @@ func (a_ Array) IndexesOfObjectsWithOptionsPassingTest(opts EnumerationOptions, return rv } -// 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/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 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 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/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/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 the lowest index within a specified range whose corresponding array value is equal to a given object . [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/1415805-indexofobjectidenticalto?language=objc -func (a_ Array) IndexOfObjectIdenticalToInRange(anObject objc.IObject, range_ Range) uint { - rv := objc.Call[uint](a_, objc.Sel("indexOfObjectIdenticalTo:inRange:"), objc.Ptr(anObject), range_) +// [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:"), objc.Ptr(anObject)) return rv } -// Returns the object located at the specified index. [Full Topic] +// [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/2879138-writetourl?language=objc +func (a_ Array) WriteToURLError(url IURL, error IError) bool { + rv := objc.Call[bool](a_, objc.Sel("writeToURL:error:"), objc.Ptr(url), objc.Ptr(error)) return rv } @@ -300,157 +431,157 @@ func (a_ Array) FilteredArrayUsingPredicate(predicate IPredicate) []objc.Object return rv } -// Returns the object at the specified index. [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/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/1640855-shuffledarray?language=objc +func (a_ Array) ShuffledArray() []objc.Object { + rv := objc.Call[[]objc.Object](a_, objc.Sel("shuffledArray")) return rv } -// Creates a new array by applying a difference object to an existing array. [Full Topic] +// [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:"), objc.Ptr(difference)) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsarray/2879134-initwithcontentsofurl?language=objc +func (a_ Array) InitWithContentsOfURLError(url IURL, error IError) []objc.Object { + rv := objc.Call[[]objc.Object](a_, objc.Sel("initWithContentsOfURL:error:"), objc.Ptr(url), objc.Ptr(error)) return rv } -// [Full Topic] +// Raises an exception. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsarray/2879153-arraywithcontentsofurl?language=objc -func (ac _ArrayClass) ArrayWithContentsOfURLError(url IURL, error IError) []objc.Object { - rv := objc.Call[[]objc.Object](ac, objc.Sel("arrayWithContentsOfURL:error:"), objc.Ptr(url), objc.Ptr(error)) - return rv +// [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:"), objc.Ptr(observer), keyPath, context) } -// [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/2879153-arraywithcontentsofurl?language=objc -func Array_ArrayWithContentsOfURLError(url IURL, error IError) []objc.Object { - return ArrayClass.ArrayWithContentsOfURLError(url, error) +// [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:"), objc.Ptr(anObject)) + return rv } -// Executes a given block using each object in the array with the specified 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/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/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 } -// Copies references to objects contained in the array that fall within the specified range to aBuffer. [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/1414725-getobjects?language=objc -func (a_ Array) GetObjectsRange(objects objc.IObject, range_ Range) { - objc.Call[objc.Void](a_, objc.Sel("getObjects:range:"), objc.Ptr(objects), range_) +// [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:"), objc.Ptr(s), opts, block) } -// [Full Topic] +// Invokes [foundation/nsarray/setvalue] on each of the array's items using the specified value and key. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsarray/2879134-initwithcontentsofurl?language=objc -func (a_ Array) InitWithContentsOfURLError(url IURL, error IError) []objc.Object { - rv := objc.Call[[]objc.Object](a_, objc.Sel("initWithContentsOfURL:error:"), objc.Ptr(url), objc.Ptr(error)) - 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 a Boolean value that indicates whether a given object is present in the array. [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/1407477-containsobject?language=objc -func (a_ Array) ContainsObject(anObject objc.IObject) bool { - rv := objc.Call[bool](a_, objc.Sel("containsObject:"), objc.Ptr(anObject)) - 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) } -// 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] +// 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/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/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 } -// Returns an enumerator object that lets you access each object in the array, in reverse order. [Full Topic] +// Returns the index, within a specified range, of an object compared with elements in the array using 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/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:"), objc.Ptr(obj), r, opts, cmp) return rv } -// [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/2879138-writetourl?language=objc -func (a_ Array) WriteToURLError(url IURL, error IError) bool { - rv := objc.Call[bool](a_, objc.Sel("writeToURL:error:"), objc.Ptr(url), objc.Ptr(error)) - return rv +// [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) } -// 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 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/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:"), objc.Ptr(s), opts, predicate) +// [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 } -// Raises an exception. [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/1414976-removeobserver?language=objc -func (a_ Array) RemoveObserverForKeyPath(observer objc.IObject, keyPath string) { - objc.Call[objc.Void](a_, objc.Sel("removeObserver:forKeyPath:"), objc.Ptr(observer), keyPath) +// [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 } -// Returns a string that represents the contents of the array, formatted as a property list. [Full Topic] +// [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/2879153-arraywithcontentsofurl?language=objc +func (ac _ArrayClass) ArrayWithContentsOfURLError(url IURL, error IError) []objc.Object { + rv := objc.Call[[]objc.Object](ac, objc.Sel("arrayWithContentsOfURL:error:"), objc.Ptr(url), objc.Ptr(error)) return rv } -// Returns a new array containing the receiving array’s elements that fall within the limits specified by a given range. [Full Topic] +// [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 +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsarray/2879153-arraywithcontentsofurl?language=objc +func Array_ArrayWithContentsOfURLError(url IURL, error IError) []objc.Object { + return ArrayClass.ArrayWithContentsOfURLError(url, error) } -// Compares two arrays to create a difference object that represents the changes between them. [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/3152166-differencefromarray?language=objc -func (a_ Array) DifferenceFromArray(other []objc.IObject) OrderedCollectionDifference { - rv := objc.Call[OrderedCollectionDifference](a_, objc.Sel("differenceFromArray:"), other) +// [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 } -// Invokes setValue:forKey: on each of the array's items using the specified value and key. [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/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/1415805-indexofobjectidenticalto?language=objc +func (a_ Array) IndexOfObjectIdenticalToInRange(anObject objc.IObject, range_ Range) uint { + rv := objc.Call[uint](a_, objc.Sel("indexOfObjectIdenticalTo:inRange:"), objc.Ptr(anObject), range_) + return rv } -// Returns the indexes of objects in the array that pass a test in a given block. [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/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/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 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/1408534-arraybyaddingobject?language=objc -func (a_ Array) ArrayByAddingObject(anObject objc.IObject) []objc.Object { - rv := objc.Call[[]objc.Object](a_, objc.Sel("arrayByAddingObject:"), objc.Ptr(anObject)) +// [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) return rv } -// Returns the lowest index whose corresponding array value is equal to a given object. [Full Topic] +// Returns the object at the specified index. [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:"), objc.Ptr(anObject)) +// [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 } @@ -461,98 +592,90 @@ func (a_ Array) AddObserverForKeyPathOptionsContext(observer objc.IObject, keyPa objc.Call[objc.Void](a_, objc.Sel("addObserver:forKeyPath:options:context:"), objc.Ptr(observer), keyPath, options, 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 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/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/1411195-sortedarrayusingcomparator?language=objc +func (a_ Array) SortedArrayUsingComparator(cmptr Comparator) []objc.Object { + rv := objc.Call[[]objc.Object](a_, objc.Sel("sortedArrayUsingComparator:"), cmptr) return rv } -// 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/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:"), objc.Ptr(s), opts, block) -} - -// Returns a new array that lists this array’s elements in a random order, using the specified random source. [Full Topic] +// Compares the receiving array to another array. [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:"), objc.Ptr(randomSource)) +// [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 array containing all the pathname elements in the receiving array that have filename extensions from a given array. [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/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/1415248-indexofobject?language=objc +func (a_ Array) IndexOfObjectInRange(anObject objc.IObject, range_ Range) uint { + rv := objc.Call[uint](a_, objc.Sel("indexOfObject:inRange:"), objc.Ptr(anObject), range_) return rv } -// Constructs and returns an NSString object that is the result of interposing a given separator between the elements of the array. [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/1412075-componentsjoinedbystring?language=objc -func (a_ Array) ComponentsJoinedByString(separator string) string { - rv := objc.Call[string](a_, objc.Sel("componentsJoinedByString:"), separator) +// [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 } -// Returns an array containing the results of invoking valueForKey: using key on each of the array's objects. [Full Topic] +// Returns the object located at the specified index. [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) +// [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 } -// 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 two arrays, using the provided block and with options, to create a difference object that represents the changes between them. [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:"), objc.Ptr(s), opts, predicate) +// [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) return rv } -// Returns the first object contained in the receiving array that’s equal to an object in another given array. [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/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/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 } -// 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 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/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/1640687-shuffledarraywithrandomsource?language=objc +func (a_ Array) ShuffledArrayWithRandomSource(randomSource objc.IObject) []objc.Object { + rv := objc.Call[[]objc.Object](a_, objc.Sel("shuffledArrayWithRandomSource:"), objc.Ptr(randomSource)) return rv } -// 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] +// 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/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/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 } -// The last object in the array. [Full Topic] +// Registers an observer to receive key value observer notifications for the specified key-path relative to the objects at the indexes. [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 +// [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:"), objc.Ptr(observer), objc.Ptr(indexes), keyPath, options, context) } -// A string that represents the contents of the array, formatted as a property list. [Full Topic] +// 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] // -// [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")) +// [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 } @@ -571,3 +694,19 @@ 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/assertion_handler.gen.go b/macos/foundation/assertion_handler.gen.go index 806c6297..e99827b2 100644 --- a/macos/foundation/assertion_handler.gen.go +++ b/macos/foundation/assertion_handler.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package foundation @@ -40,10 +40,6 @@ func (ac _AssertionHandlerClass) Alloc() AssertionHandler { return rv } -func AssertionHandler_Alloc() AssertionHandler { - return AssertionHandlerClass.Alloc() -} - func (ac _AssertionHandlerClass) New() AssertionHandler { rv := objc.Call[AssertionHandler](ac, objc.Sel("new")) rv.Autorelease() diff --git a/macos/foundation/attributed_string.gen.go b/macos/foundation/attributed_string.gen.go index 8f7fcbb8..70519f08 100644 --- a/macos/foundation/attributed_string.gen.go +++ b/macos/foundation/attributed_string.gen.go @@ -1,11 +1,10 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package foundation import ( "unsafe" - "github.com/progrium/macdriver/macos/coregraphics" "github.com/progrium/macdriver/objc" ) @@ -19,33 +18,37 @@ type _AttributedStringClass struct { // An interface definition for the [AttributedString] class. type IAttributedString interface { objc.IObject - LineBreakBeforeIndexWithinRange(location uint, aRange Range) uint - FontAttributesInRange(range_ Range) map[AttributedStringKey]objc.Object + Size() Size + AttributedStringByInflectingString() AttributedString ContainsAttachmentsInRange(range_ Range) bool - DrawAtPoint(point coregraphics.Point) + RulerAttributesInRange(range_ Range) map[AttributedStringKey]objc.Object RTFDFileWrapperFromRangeDocumentAttributes(range_ Range, dict Dictionary) FileWrapper + DataFromRangeDocumentAttributesError(range_ Range, dict Dictionary, error IError) []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 IError) FileWrapper DoubleClickAtIndex(location uint) Range - RTFFromRangeDocumentAttributes(range_ Range, dict Dictionary) []byte RangeOfTextListAtIndex(list objc.IObject, location uint) Range - RTFDFromRangeDocumentAttributes(range_ Range, dict Dictionary) []byte - AttributedSubstringFromRange(range_ Range) AttributedString - RangeOfTextTableAtIndex(table objc.IObject, location uint) Range + FileWrapperFromRangeDocumentAttributesError(range_ Range, dict Dictionary, error IError) FileWrapper + BoundingRectWithSizeOptionsContext(size Size, options objc.IObject, context objc.IObject) Rect + DrawInRect(rect Rect) 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 - 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 IError) []byte + 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 String() string Length() uint } @@ -63,16 +66,44 @@ func AttributedStringFrom(ptr unsafe.Pointer) AttributedString { } } -func (a_ AttributedString) InitWithHTMLOptionsDocumentAttributes(data []byte, options Dictionary, dict Dictionary) AttributedString { - rv := objc.Call[AttributedString](a_, objc.Sel("initWithHTML:options:documentAttributes:"), data, options, dict) +func (a_ AttributedString) InitWithHTMLBaseURLDocumentAttributes(data []byte, base IURL, dict Dictionary) AttributedString { + rv := objc.Call[AttributedString](a_, objc.Sel("initWithHTML:baseURL:documentAttributes:"), data, objc.Ptr(base), dict) return rv } -// Creates an attributed string from the HTML in the specified data object. [Full Topic] +// 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/1535412-initwithhtml?language=objc -func NewAttributedStringWithHTMLOptionsDocumentAttributes(data []byte, options Dictionary, dict Dictionary) AttributedString { - instance := AttributedStringClass.Alloc().InitWithHTMLOptionsDocumentAttributes(data, options, dict) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsattributedstring/1524624-initwithhtml?language=objc +func NewAttributedStringWithHTMLBaseURLDocumentAttributes(data []byte, base IURL, dict Dictionary) AttributedString { + instance := AttributedStringClass.Alloc().InitWithHTMLBaseURLDocumentAttributes(data, base, dict) + instance.Autorelease() + return instance +} + +func (a_ AttributedString) InitWithContentsOfMarkdownFileAtURLOptionsBaseURLError(markdownFile IURL, options IAttributedStringMarkdownParsingOptions, baseURL IURL, error IError) AttributedString { + rv := objc.Call[AttributedString](a_, objc.Sel("initWithContentsOfMarkdownFileAtURL:options:baseURL:error:"), objc.Ptr(markdownFile), objc.Ptr(options), objc.Ptr(baseURL), objc.Ptr(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 IError) 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) + return rv +} + +// Creates an attributed string with the specified string and attributes. [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) instance.Autorelease() return instance } @@ -103,16 +134,30 @@ func NewAttributedStringWithAttributedString(attrStr IAttributedString) Attribut return instance } -func (a_ AttributedString) InitWithContentsOfMarkdownFileAtURLOptionsBaseURLError(markdownFile IURL, options IAttributedStringMarkdownParsingOptions, baseURL IURL, error IError) AttributedString { - rv := objc.Call[AttributedString](a_, objc.Sel("initWithContentsOfMarkdownFileAtURL:options:baseURL:error:"), objc.Ptr(markdownFile), objc.Ptr(options), objc.Ptr(baseURL), objc.Ptr(error)) +func (a_ AttributedString) InitWithDataOptionsDocumentAttributesError(data []byte, options Dictionary, dict Dictionary, error IError) AttributedString { + rv := objc.Call[AttributedString](a_, objc.Sel("initWithData:options:documentAttributes:error:"), data, options, dict, objc.Ptr(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] +// Creates an attributed string from the data in the specified data object. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsattributedstring/3746872-initwithcontentsofmarkdownfileat?language=objc -func NewAttributedStringWithContentsOfMarkdownFileAtURLOptionsBaseURLError(markdownFile IURL, options IAttributedStringMarkdownParsingOptions, baseURL IURL, error IError) AttributedString { - instance := AttributedStringClass.Alloc().InitWithContentsOfMarkdownFileAtURLOptionsBaseURLError(markdownFile, options, baseURL, error) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsattributedstring/1524613-initwithdata?language=objc +func NewAttributedStringWithDataOptionsDocumentAttributesError(data []byte, options Dictionary, dict Dictionary, error IError) AttributedString { + instance := AttributedStringClass.Alloc().InitWithDataOptionsDocumentAttributesError(data, options, dict, error) + instance.Autorelease() + return instance +} + +func (a_ AttributedString) InitWithRTFDocumentAttributes(data []byte, dict Dictionary) AttributedString { + rv := objc.Call[AttributedString](a_, objc.Sel("initWithRTF:documentAttributes:"), data, dict) + return rv +} + +// 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/1532912-initwithrtf?language=objc +func NewAttributedStringWithRTFDocumentAttributes(data []byte, dict Dictionary) AttributedString { + instance := AttributedStringClass.Alloc().InitWithRTFDocumentAttributes(data, dict) instance.Autorelease() return instance } @@ -131,60 +176,58 @@ func NewAttributedStringWithFormatOptionsLocale(format IAttributedString, option return instance } -func (a_ AttributedString) InitWithDataOptionsDocumentAttributesError(data []byte, options Dictionary, dict Dictionary, error IError) AttributedString { - rv := objc.Call[AttributedString](a_, objc.Sel("initWithData:options:documentAttributes:error:"), data, options, dict, objc.Ptr(error)) +func (a_ AttributedString) InitWithRTFDFileWrapperDocumentAttributes(wrapper IFileWrapper, dict Dictionary) AttributedString { + rv := objc.Call[AttributedString](a_, objc.Sel("initWithRTFDFileWrapper:documentAttributes:"), objc.Ptr(wrapper), dict) return rv } -// Creates an attributed string from the data 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/1524613-initwithdata?language=objc -func NewAttributedStringWithDataOptionsDocumentAttributesError(data []byte, options Dictionary, dict Dictionary, error IError) AttributedString { - instance := AttributedStringClass.Alloc().InitWithDataOptionsDocumentAttributesError(data, options, dict, error) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsattributedstring/1533594-initwithrtfdfilewrapper?language=objc +func NewAttributedStringWithRTFDFileWrapperDocumentAttributes(wrapper IFileWrapper, dict Dictionary) AttributedString { + instance := AttributedStringClass.Alloc().InitWithRTFDFileWrapperDocumentAttributes(wrapper, dict) instance.Autorelease() return instance } -func (a_ AttributedString) InitWithString(str string) AttributedString { - rv := objc.Call[AttributedString](a_, objc.Sel("initWithString:"), str) +func (a_ AttributedString) InitWithMarkdownOptionsBaseURLError(markdown []byte, options IAttributedStringMarkdownParsingOptions, baseURL IURL, error IError) AttributedString { + rv := objc.Call[AttributedString](a_, objc.Sel("initWithMarkdown:options:baseURL:error:"), markdown, objc.Ptr(options), objc.Ptr(baseURL), objc.Ptr(error)) return rv } -// Creates an attributed string with the characters of the specified string and no attribute information. [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/1407481-initwithstring?language=objc -func NewAttributedStringWithString(str string) AttributedString { - instance := AttributedStringClass.Alloc().InitWithString(str) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsattributedstring/3746875-initwithmarkdown?language=objc +func NewAttributedStringWithMarkdownOptionsBaseURLError(markdown []byte, options IAttributedStringMarkdownParsingOptions, baseURL IURL, error IError) AttributedString { + instance := AttributedStringClass.Alloc().InitWithMarkdownOptionsBaseURLError(markdown, options, baseURL, error) instance.Autorelease() return instance } -func (a_ AttributedString) InitWithMarkdownStringOptionsBaseURLError(markdownString string, options IAttributedStringMarkdownParsingOptions, baseURL IURL, error IError) AttributedString { - rv := objc.Call[AttributedString](a_, objc.Sel("initWithMarkdownString:options:baseURL:error:"), markdownString, objc.Ptr(options), objc.Ptr(baseURL), objc.Ptr(error)) +func (a_ AttributedString) InitWithHTMLOptionsDocumentAttributes(data []byte, options Dictionary, dict Dictionary) AttributedString { + rv := objc.Call[AttributedString](a_, objc.Sel("initWithHTML:options:documentAttributes:"), data, options, dict) return rv } -// Creates an attributed string from a Markdown-formatted string using the provided options. [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/3746876-initwithmarkdownstring?language=objc -func NewAttributedStringWithMarkdownStringOptionsBaseURLError(markdownString string, options IAttributedStringMarkdownParsingOptions, baseURL IURL, error IError) AttributedString { - instance := AttributedStringClass.Alloc().InitWithMarkdownStringOptionsBaseURLError(markdownString, options, baseURL, error) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsattributedstring/1535412-initwithhtml?language=objc +func NewAttributedStringWithHTMLOptionsDocumentAttributes(data []byte, options Dictionary, dict Dictionary) AttributedString { + instance := AttributedStringClass.Alloc().InitWithHTMLOptionsDocumentAttributes(data, options, dict) instance.Autorelease() return instance } -func (a_ AttributedString) InitWithMarkdownOptionsBaseURLError(markdown []byte, options IAttributedStringMarkdownParsingOptions, baseURL IURL, error IError) AttributedString { - rv := objc.Call[AttributedString](a_, objc.Sel("initWithMarkdown:options:baseURL:error:"), markdown, objc.Ptr(options), objc.Ptr(baseURL), objc.Ptr(error)) +func (ac _AttributedStringClass) LocalizedAttributedStringWithFormatOptions(format IAttributedString, options AttributedStringFormattingOptions, args ...any) AttributedString { + rv := objc.Call[AttributedString](ac, objc.Sel("localizedAttributedStringWithFormat:options:"), append([]any{objc.Ptr(format), options}, args...)...) return rv } -// Creates an attributed string from Markdown-formatted data using the provided options. [Full Topic] +// [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsattributedstring/3746875-initwithmarkdown?language=objc -func NewAttributedStringWithMarkdownOptionsBaseURLError(markdown []byte, options IAttributedStringMarkdownParsingOptions, baseURL IURL, error IError) AttributedString { - instance := AttributedStringClass.Alloc().InitWithMarkdownOptionsBaseURLError(markdown, options, baseURL, error) - instance.Autorelease() - return instance +// [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 Dictionary) AttributedString { @@ -201,55 +244,79 @@ func NewAttributedStringWithDocFormatDocumentAttributes(data []byte, dict Dictio return instance } -func (a_ AttributedString) InitWithRTFDDocumentAttributes(data []byte, dict Dictionary) AttributedString { - rv := objc.Call[AttributedString](a_, objc.Sel("initWithRTFD:documentAttributes:"), data, dict) +func (a_ AttributedString) InitWithMarkdownStringOptionsBaseURLError(markdownString string, options IAttributedStringMarkdownParsingOptions, baseURL IURL, error IError) AttributedString { + rv := objc.Call[AttributedString](a_, objc.Sel("initWithMarkdownString:options:baseURL:error:"), markdownString, objc.Ptr(options), objc.Ptr(baseURL), objc.Ptr(error)) return rv } -// Creates an attributed string by decoding the stream of RTFD commands and data 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/1530987-initwithrtfd?language=objc -func NewAttributedStringWithRTFDDocumentAttributes(data []byte, dict Dictionary) AttributedString { - instance := AttributedStringClass.Alloc().InitWithRTFDDocumentAttributes(data, dict) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsattributedstring/3746876-initwithmarkdownstring?language=objc +func NewAttributedStringWithMarkdownStringOptionsBaseURLError(markdownString string, options IAttributedStringMarkdownParsingOptions, baseURL IURL, error IError) AttributedString { + instance := AttributedStringClass.Alloc().InitWithMarkdownStringOptionsBaseURLError(markdownString, options, baseURL, error) instance.Autorelease() return instance } -func (a_ AttributedString) InitWithRTFDocumentAttributes(data []byte, dict Dictionary) AttributedString { - rv := objc.Call[AttributedString](a_, objc.Sel("initWithRTF:documentAttributes:"), data, dict) +func (a_ AttributedString) InitWithURLOptionsDocumentAttributesError(url IURL, options Dictionary, dict Dictionary, error IError) AttributedString { + rv := objc.Call[AttributedString](a_, objc.Sel("initWithURL:options:documentAttributes:error:"), objc.Ptr(url), options, dict, objc.Ptr(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 the specified URL. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsattributedstring/1532912-initwithrtf?language=objc -func NewAttributedStringWithRTFDocumentAttributes(data []byte, dict Dictionary) AttributedString { - instance := AttributedStringClass.Alloc().InitWithRTFDocumentAttributes(data, dict) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsattributedstring/1530490-initwithurl?language=objc +func NewAttributedStringWithURLOptionsDocumentAttributesError(url IURL, options Dictionary, dict Dictionary, error IError) AttributedString { + instance := AttributedStringClass.Alloc().InitWithURLOptionsDocumentAttributesError(url, options, dict, error) instance.Autorelease() return instance } -func (a_ AttributedString) InitWithRTFDFileWrapperDocumentAttributes(wrapper IFileWrapper, dict Dictionary) AttributedString { - rv := objc.Call[AttributedString](a_, objc.Sel("initWithRTFDFileWrapper:documentAttributes:"), objc.Ptr(wrapper), dict) +func (a_ AttributedString) InitWithHTMLDocumentAttributes(data []byte, dict Dictionary) AttributedString { + rv := objc.Call[AttributedString](a_, objc.Sel("initWithHTML:documentAttributes:"), data, dict) return rv } -// Creates an attributed string from the specified file wrapper that contains an RTFD document. [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/1533594-initwithrtfdfilewrapper?language=objc -func NewAttributedStringWithRTFDFileWrapperDocumentAttributes(wrapper IFileWrapper, dict Dictionary) AttributedString { - instance := AttributedStringClass.Alloc().InitWithRTFDFileWrapperDocumentAttributes(wrapper, dict) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsattributedstring/1525953-initwithhtml?language=objc +func NewAttributedStringWithHTMLDocumentAttributes(data []byte, dict Dictionary) AttributedString { + instance := AttributedStringClass.Alloc().InitWithHTMLDocumentAttributes(data, dict) instance.Autorelease() return instance } -func (ac _AttributedStringClass) Alloc() AttributedString { - rv := objc.Call[AttributedString](ac, objc.Sel("alloc")) +func (a_ AttributedString) InitWithRTFDDocumentAttributes(data []byte, dict Dictionary) AttributedString { + rv := objc.Call[AttributedString](a_, objc.Sel("initWithRTFD:documentAttributes:"), data, dict) return rv } -func AttributedString_Alloc() AttributedString { - return AttributedStringClass.Alloc() +// 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/1530987-initwithrtfd?language=objc +func NewAttributedStringWithRTFDDocumentAttributes(data []byte, dict Dictionary) AttributedString { + instance := AttributedStringClass.Alloc().InitWithRTFDDocumentAttributes(data, dict) + instance.Autorelease() + return instance +} + +func (a_ AttributedString) InitWithString(str string) AttributedString { + rv := objc.Call[AttributedString](a_, objc.Sel("initWithString:"), str) + return rv +} + +// 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/1407481-initwithstring?language=objc +func NewAttributedStringWithString(str string) AttributedString { + instance := AttributedStringClass.Alloc().InitWithString(str) + instance.Autorelease() + return instance +} + +func (ac _AttributedStringClass) Alloc() AttributedString { + rv := objc.Call[AttributedString](ac, objc.Sel("alloc")) + return rv } func (ac _AttributedStringClass) New() AttributedString { @@ -267,37 +334,22 @@ func (a_ AttributedString) Init() AttributedString { 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 the font attributes in effect for the character at the specified location. [Full Topic] +// Returns the size necessary to draw the string. [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_) +// [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")) return rv } -// Creates an attributed string with an attachment. [Full Topic] +// [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:"), objc.Ptr(attachment)) +// [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 } -// 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 @@ -306,11 +358,12 @@ func (a_ AttributedString) ContainsAttachmentsInRange(range_ Range) bool { return rv } -// Draws the attributed string starting at the specified point in the current graphics context. [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/1529478-drawatpoint?language=objc -func (a_ AttributedString) DrawAtPoint(point coregraphics.Point) { - objc.Call[objc.Void](a_, objc.Sel("drawAtPoint:"), point) +// [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 a file wrapper object that contains an RTFD document corresponding to the characters and attributes within the specified range. [Full Topic] @@ -321,6 +374,54 @@ 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 IError) []byte { + rv := objc.Call[[]byte](a_, objc.Sel("dataFromRange:documentAttributes:error:"), range_, dict, objc.Ptr(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:"), objc.Ptr(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 @@ -329,13 +430,6 @@ 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 @@ -359,30 +453,6 @@ 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:"), objc.Ptr(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 IError) FileWrapper { - rv := objc.Call[FileWrapper](a_, objc.Sel("fileWrapperFromRange:documentAttributes:error:"), range_, dict, objc.Ptr(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 @@ -391,14 +461,6 @@ 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 @@ -407,28 +469,27 @@ func (a_ AttributedString) RangeOfTextListAtIndex(list objc.IObject, location ui return rv } -// Returns a data object that contains an RTFD stream corresponding to the characters and attributes within the specified range. [Full Topic] +// 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/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/1530461-filewrapperfromrange?language=objc +func (a_ AttributedString) FileWrapperFromRangeDocumentAttributesError(range_ Range, dict Dictionary, error IError) FileWrapper { + rv := objc.Call[FileWrapper](a_, objc.Sel("fileWrapperFromRange:documentAttributes:error:"), range_, dict, objc.Ptr(error)) return rv } -// Returns an attributed string consisting of the characters and attributes within the specified range in the attributed string. [Full Topic] +// Returns the bounding rectangle necessary to draw the string. [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/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, objc.Ptr(options), objc.Ptr(context)) return rv } -// Returns the range of the specified text table that contains the specified location. [Full Topic] +// 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/1534365-rangeoftexttable?language=objc -func (a_ AttributedString) RangeOfTextTableAtIndex(table objc.IObject, location uint) Range { - rv := objc.Call[Range](a_, objc.Sel("rangeOfTextTable:atIndex:"), objc.Ptr(table), location) - return rv +// [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) } // Executes the specified block for each range of a particular attribute in the attributed string. [Full Topic] @@ -438,6 +499,13 @@ 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 @@ -446,6 +514,21 @@ 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:"), objc.Ptr(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 @@ -462,35 +545,50 @@ func (a_ AttributedString) RangeOfTextBlockAtIndex(block objc.IObject, location return rv } -// Returns the ruler (paragraph) attributes in effect for the characters within the specified range. [Full Topic] +// 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/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_) +// [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 size necessary to draw the string. [Full Topic] +// Draws the attributed string in the specified bounding rectangle using the provided options. [Full Topic] // -// [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")) +// [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, objc.Ptr(options), objc.Ptr(context)) +} + +// 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/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 attributes for the character at the specified index. [Full Topic] +// Returns the index of the item at the specified location within the list. [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_) +// [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:"), objc.Ptr(list), location) return rv } -// Returns a data object that contains a text stream corresponding to the characters and attributes within the specified range. [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/1534090-datafromrange?language=objc -func (a_ AttributedString) DataFromRangeDocumentAttributesError(range_ Range, dict Dictionary, error IError) []byte { - rv := objc.Call[[]byte](a_, objc.Sel("dataFromRange:documentAttributes:error:"), range_, dict, objc.Ptr(error)) +// [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 +} + +// 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] +// +// [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) return rv } @@ -517,14 +615,6 @@ 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 @@ -539,3 +629,11 @@ 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 ba3d1a11..14c415dc 100644 --- a/macos/foundation/attributed_string_markdown_parsing_options.gen.go +++ b/macos/foundation/attributed_string_markdown_parsing_options.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package foundation @@ -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) } @@ -51,10 +51,6 @@ func (ac _AttributedStringMarkdownParsingOptionsClass) Alloc() AttributedStringM return rv } -func AttributedStringMarkdownParsingOptions_Alloc() AttributedStringMarkdownParsingOptions { - return AttributedStringMarkdownParsingOptionsClass.Alloc() -} - func (ac _AttributedStringMarkdownParsingOptionsClass) New() AttributedStringMarkdownParsingOptions { rv := objc.Call[AttributedStringMarkdownParsingOptions](ac, objc.Sel("new")) rv.Autorelease() @@ -65,6 +61,21 @@ 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 @@ -95,21 +106,6 @@ 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 f6a338b9..9aae0373 100644 --- a/macos/foundation/autorelease_pool.gen.go +++ b/macos/foundation/autorelease_pool.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package foundation @@ -19,7 +19,6 @@ 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] @@ -40,10 +39,6 @@ func (ac _AutoreleasePoolClass) Alloc() AutoreleasePool { return rv } -func AutoreleasePool_Alloc() AutoreleasePool { - return AutoreleasePoolClass.Alloc() -} - func (ac _AutoreleasePoolClass) New() AutoreleasePool { rv := objc.Call[AutoreleasePool](ac, objc.Sel("new")) rv.Autorelease() @@ -66,13 +61,6 @@ 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 @@ -86,3 +74,17 @@ 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 acb638fa..901d4547 100644 --- a/macos/foundation/background_activity_scheduler.gen.go +++ b/macos/foundation/background_activity_scheduler.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package foundation @@ -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) - Identifier() string + Tolerance() TimeInterval + SetTolerance(value TimeInterval) + QualityOfService() QualityOfService + SetQualityOfService(value QualityOfService) } // A task scheduler suitable for low priority operations that can run in the background. [Full Topic] @@ -64,10 +64,6 @@ func (bc _BackgroundActivitySchedulerClass) Alloc() BackgroundActivityScheduler return rv } -func BackgroundActivityScheduler_Alloc() BackgroundActivityScheduler { - return BackgroundActivitySchedulerClass.Alloc() -} - func (bc _BackgroundActivitySchedulerClass) New() BackgroundActivityScheduler { rv := objc.Call[BackgroundActivityScheduler](bc, objc.Sel("new")) rv.Autorelease() @@ -97,34 +93,19 @@ func (b_ BackgroundActivityScheduler) Invalidate() { objc.Call[objc.Void](b_, objc.Sel("invalidate")) } -// 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) QualityOfService() QualityOfService { - rv := objc.Call[QualityOfService](b_, objc.Sel("qualityOfService")) - 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) -} - -// A value of type NSTimeInterval, which specifies a range of time during which the background activity may occur. [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/1408138-tolerance?language=objc -func (b_ BackgroundActivityScheduler) Tolerance() TimeInterval { - rv := objc.Call[TimeInterval](b_, objc.Sel("tolerance")) +// [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 value of type NSTimeInterval, which specifies a range of time during which the background activity may occur. [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/1408138-tolerance?language=objc -func (b_ BackgroundActivityScheduler) SetTolerance(value TimeInterval) { - objc.Call[objc.Void](b_, objc.Sel("setTolerance:"), value) +// [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) } // A Boolean value indicating whether your app should stop performing background activity and resume at a more optimal time. [Full Topic] @@ -135,21 +116,14 @@ func (b_ BackgroundActivityScheduler) ShouldDefer() bool { return rv } -// A Boolean value indicating whether the activity should be rescheduled after it completes. [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/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/1412285-identifier?language=objc +func (b_ BackgroundActivityScheduler) Identifier() string { + rv := objc.Call[string](b_, objc.Sel("identifier")) 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 @@ -165,10 +139,32 @@ func (b_ BackgroundActivityScheduler) SetInterval(value TimeInterval) { objc.Call[objc.Void](b_, objc.Sel("setInterval:"), value) } -// A unique reverse DNS notation string, such as com.example.MyApp.updatecheck, that identifies the activity. [Full Topic] +// 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/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/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] +// +// [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 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/block_operation.gen.go b/macos/foundation/block_operation.gen.go index c38ce50b..f06d578e 100644 --- a/macos/foundation/block_operation.gen.go +++ b/macos/foundation/block_operation.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package foundation @@ -52,10 +52,6 @@ func (bc _BlockOperationClass) Alloc() BlockOperation { return rv } -func BlockOperation_Alloc() BlockOperation { - return BlockOperationClass.Alloc() -} - func (bc _BlockOperationClass) New() BlockOperation { rv := objc.Call[BlockOperation](bc, objc.Sel("new")) rv.Autorelease() diff --git a/macos/foundation/bundle.gen.go b/macos/foundation/bundle.gen.go index bd9b5f77..1efb80b9 100644 --- a/macos/foundation/bundle.gen.go +++ b/macos/foundation/bundle.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package foundation @@ -18,48 +18,54 @@ type _BundleClass struct { // An interface definition for the [Bundle] class. type IBundle interface { objc.IObject - URLsForResourcesWithExtensionSubdirectoryLocalization(ext string, subpath string, localizationName string) []URL - URLForImageResource(name objc.IObject) URL + LoadNibNamedOwnerTopLevelObjects(nibName objc.IObject, owner objc.IObject, topLevelObjects []objc.IObject) bool + PathForResourceOfType(name string, ext string) string + URLForResourceWithExtensionSubdirectoryLocalization(name string, ext string, subpath string, localizationName string) URL + LoadAndReturnError(error IError) bool + LocalizedStringForKeyValueTable(key string, value string, tableName string) string PathForResourceOfTypeInDirectoryForLocalization(name string, ext string, subpath string, localizationName string) string - URLForAuxiliaryExecutable(executableName string) URL Unload() bool - ImageForResource(name objc.IObject) objc.Object - ContextHelpForKey(key objc.IObject) AttributedString - LocalizedAttributedStringForKeyValueTable(key string, value string, tableName string) AttributedString + PreflightAndReturnError(error IError) bool + Load() bool + URLForImageResource(name objc.IObject) URL + 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 + ImageForResource(name objc.IObject) objc.Object ClassNamed(className string) objc.Class - ObjectForInfoDictionaryKey(key string) objc.Object - LocalizedStringForKeyValueTable(key string, value string, tableName string) string + URLForResourceWithExtension(name string, ext string) URL + URLsForResourcesWithExtensionSubdirectory(ext string, subpath string) []URL PathForAuxiliaryExecutable(executableName string) string PathForSoundResource(name objc.IObject) string - LoadAndReturnError(error IError) bool - Load() bool - PreflightAndReturnError(error IError) bool - PathForImageResource(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 DevelopmentLocalization() string - PreferredLocalizations() []string BuiltInPlugInsPath() string - PrincipalClass() objc.Class - BundlePath() string - AppStoreReceiptURL() URL + SharedSupportPath() string BundleIdentifier() string - Localizations() []string + PrivateFrameworksPath() string + SharedSupportURL() URL + PreferredLocalizations() []string + AppStoreReceiptURL() URL + ResourceURL() URL + PrincipalClass() objc.Class 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 - InfoDictionary() map[string]objc.Object - ResourceURL() URL - ResourcePath() string - BundleURL() URL + BundlePath() string BuiltInPlugInsURL() URL - SharedSupportURL() URL + ResourcePath() string + Localizations() []string + PrivateFrameworksURL() URL } // A representation of the code and resources stored in a bundle directory on disk. [Full Topic] @@ -75,16 +81,16 @@ func BundleFrom(ptr unsafe.Pointer) Bundle { } } -func (bc _BundleClass) BundleWithURL(url IURL) Bundle { - rv := objc.Call[Bundle](bc, objc.Sel("bundleWithURL:"), objc.Ptr(url)) +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 file URL. [Full Topic] +// Returns an NSBundle object that corresponds to the specified directory. [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) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsbundle/1495012-bundlewithpath?language=objc +func Bundle_BundleWithPath(path string) Bundle { + return BundleClass.BundleWithPath(path) } func (b_ Bundle) InitWithURL(url IURL) Bundle { @@ -101,6 +107,18 @@ func NewBundleWithURL(url IURL) Bundle { return instance } +func (bc _BundleClass) BundleWithURL(url IURL) Bundle { + rv := objc.Call[Bundle](bc, objc.Sel("bundleWithURL:"), objc.Ptr(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 @@ -115,27 +133,11 @@ 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 } -func Bundle_Alloc() Bundle { - return BundleClass.Alloc() -} - func (bc _BundleClass) New() Bundle { rv := objc.Call[Bundle](bc, objc.Sel("new")) rv.Autorelease() @@ -151,60 +153,50 @@ func (b_ Bundle) Init() Bundle { 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] -// -// [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 location of the specified image resource as an NSURL. [Full Topic] +// Loads a nib from the bundle with the specified file name and owner. [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:"), objc.Ptr(name)) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsbundle/1402909-loadnibnamed?language=objc +func (b_ Bundle) LoadNibNamedOwnerTopLevelObjects(nibName objc.IObject, owner objc.IObject, topLevelObjects []objc.IObject) bool { + rv := objc.Call[bool](b_, objc.Sel("loadNibNamed:owner:topLevelObjects:"), objc.Ptr(nibName), owner, topLevelObjects) 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] +// Returns the full pathname for the resource identified by the specified name and file extension. [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) +// [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) return rv } -// Returns the file URL of the executable with the specified name in the receiver’s bundle. [Full Topic] +// 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] // -// [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) +// [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, objc.Ptr(bundleURL)) return rv } -// Unloads the code associated with the receiver. [Full Topic] +// 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] // -// [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 +// [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) } -// 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] +// 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] // -// [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:"), objc.Ptr(name)) +// [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) return rv } -// Returns the context-sensitive help for the specified key from the bundle's help file. [Full Topic] +// 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] // -// [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:"), objc.Ptr(key)) - return rv +// [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) } // Returns the NSBundle object with which the specified class is associated. [Full Topic] @@ -222,43 +214,98 @@ func Bundle_BundleForClass(aClass objc.IClass) Bundle { return BundleClass.BundleForClass(aClass) } -// [Full Topic] +// 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/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/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 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 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/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/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 } -// Returns the Class object for the specified name. [Full Topic] +// Loads the bundle’s executable code and returns any errors. [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/1411819-loadandreturnerror?language=objc +func (b_ Bundle) LoadAndReturnError(error IError) bool { + rv := objc.Call[bool](b_, objc.Sel("loadAndReturnError:"), objc.Ptr(error)) 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 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/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/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 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 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/1417249-preferredlocalizationsfromarray?language=objc -func Bundle_PreferredLocalizationsFromArray(localizationsArray []string) []string { - return BundleClass.PreferredLocalizationsFromArray(localizationsArray) +// [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]: 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 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 (bc _BundleClass) BundleWithIdentifier(identifier string) Bundle { + rv := objc.Call[Bundle](bc, objc.Sel("bundleWithIdentifier:"), identifier) + 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] +// +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsbundle/1415083-preflightandreturnerror?language=objc +func (b_ Bundle) PreflightAndReturnError(error IError) bool { + rv := objc.Call[bool](b_, objc.Sel("preflightAndReturnError:"), objc.Ptr(error)) + return rv +} + +// 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/1415927-load?language=objc +func (b_ Bundle) Load() bool { + rv := objc.Call[bool](b_, objc.Sel("load")) + return rv +} + +// Returns the location of the specified image resource as an NSURL. [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:"), objc.Ptr(name)) + return rv } // Creates and returns a file URL for the resource with the specified name and extension in the specified bundle. [Full Topic] @@ -276,6 +323,14 @@ 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 @@ -284,146 +339,137 @@ func (b_ Bundle) ObjectForInfoDictionaryKey(key string) objc.Object { return rv } -// Returns a localized version of the string designated by the specified key and residing in the specified table. [Full Topic] +// Returns the location of the specified image resource file. [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) +// [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:"), objc.Ptr(name)) return rv } -// Returns the full pathname of the executable with the specified name in the receiver’s bundle. [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/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/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 location of the specified sound resource file. [Full Topic] +// [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:"), objc.Ptr(name)) +// [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 } -// Loads the bundle’s executable code and returns any errors. [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/1411819-loadandreturnerror?language=objc -func (b_ Bundle) LoadAndReturnError(error IError) bool { - rv := objc.Call[bool](b_, objc.Sel("loadAndReturnError:"), objc.Ptr(error)) +// [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:"), objc.Ptr(name)) return rv } -// Dynamically loads the bundle’s executable code into a running program, if the code has not already been loaded. [Full Topic] +// Returns the Class object for the specified name. [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/1407299-classnamed?language=objc +func (b_ Bundle) ClassNamed(className string) objc.Class { + rv := objc.Call[objc.Class](b_, objc.Sel("classNamed:"), className) return rv } -// Returns a Boolean value indicating whether the bundle’s executable code could be loaded successfully. [Full Topic] +// Returns the file URL for the resource identified by the specified name and file extension. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsbundle/1415083-preflightandreturnerror?language=objc -func (b_ Bundle) PreflightAndReturnError(error IError) bool { - rv := objc.Call[bool](b_, objc.Sel("preflightAndReturnError:"), objc.Ptr(error)) +// [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) return rv } -// Returns the location of the specified image resource file. [Full Topic] +// Returns an array of file URLs for all resources identified by the specified file extension and located in the specified bundle subdirectory. [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:"), objc.Ptr(name)) +// [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) return rv } -// Returns the NSBundle instance that has the specified bundle identifier. [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/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/1417249-preferredlocalizationsfromarray?language=objc +func (bc _BundleClass) PreferredLocalizationsFromArray(localizationsArray []string) []string { + rv := objc.Call[[]string](bc, objc.Sel("preferredLocalizationsFromArray:"), localizationsArray) 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) -} - -// The localization for the development language. [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/1417526-developmentlocalization?language=objc -func (b_ Bundle) DevelopmentLocalization() string { - rv := objc.Call[string](b_, objc.Sel("developmentLocalization")) - 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) } -// An ordered list of preferred localizations contained in the bundle. [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/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/1415214-pathforauxiliaryexecutable?language=objc +func (b_ Bundle) PathForAuxiliaryExecutable(executableName string) string { + rv := objc.Call[string](b_, objc.Sel("pathForAuxiliaryExecutable:"), executableName) return rv } -// The full pathname of the receiver's subdirectory containing plug-ins. [Full Topic] +// Returns the location of the specified sound resource file. [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")) +// [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:"), objc.Ptr(name)) return rv } -// The bundle’s principal class. [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/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/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 } -// The full pathname of the receiver’s bundle directory. [Full Topic] +// Returns the file URL for the resource file identified by the specified name and extension and residing in a given 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/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) return rv } -// The file URL for the bundle’s App Store receipt. [Full Topic] +// Returns the full pathname for the resource file identified by the specified name and extension and residing in a given bundle directory. [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/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) return rv } -// The receiver’s bundle identifier. [Full Topic] +// Returns the full pathname for the resource file identified by the specified name and extension and residing in a given bundle directory. [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")) - return rv +// [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) } -// A list of all the localizations contained in the bundle. [Full Topic] +// 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/1417415-localizations?language=objc -func (b_ Bundle) Localizations() []string { - rv := objc.Call[[]string](b_, objc.Sel("localizations")) +// [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:"), objc.Ptr(key)) return rv } -// The file URL of the receiver's executable file. [Full Topic] +// The localization for the development language. [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/1417526-developmentlocalization?language=objc +func (b_ Bundle) DevelopmentLocalization() string { + rv := objc.Call[string](b_, objc.Sel("developmentLocalization")) return rv } @@ -442,11 +488,27 @@ func Bundle_AllFrameworks() []Bundle { return BundleClass.AllFrameworks() } -// The full pathname of the bundle’s subdirectory containing shared frameworks. [Full Topic] +// The full pathname of the receiver's subdirectory containing plug-ins. [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/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] +// +// [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 } @@ -458,43 +520,51 @@ func (b_ Bundle) PrivateFrameworksPath() string { return rv } -// The full pathname of the receiver's executable file. [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/1409078-executablepath?language=objc -func (b_ Bundle) ExecutablePath() string { - rv := objc.Call[string](b_, objc.Sel("executablePath")) +// [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 } -// The load status of a bundle. [Full Topic] +// An ordered list of preferred localizations contained in the 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")) +// [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 } -// The full pathname of the bundle’s subdirectory containing shared support files. [Full Topic] +// The file URL for the bundle’s App Store receipt. [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")) +// [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 } -// An array of numbers indicating the architecture types supported by the bundle’s executable. [Full Topic] +// The file URL of the bundle’s subdirectory containing resource files. [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")) +// [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 } -// The file URL of the bundle’s subdirectory containing private frameworks. [Full Topic] +// The bundle’s principal class. [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/1409048-principalclass?language=objc +func (b_ Bundle) PrincipalClass() objc.Class { + rv := objc.Call[objc.Class](b_, objc.Sel("principalClass")) + 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 } @@ -506,14 +576,37 @@ func (b_ Bundle) LocalizedInfoDictionary() map[string]objc.Object { return rv } -// The file URL of the receiver's subdirectory containing shared frameworks. [Full Topic] +// The full URL of the receiver’s bundle directory. [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/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] +// +// [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 } +// 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 @@ -522,11 +615,11 @@ func (b_ Bundle) InfoDictionary() map[string]objc.Object { 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 frameworks. [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/1417226-sharedframeworkspath?language=objc +func (b_ Bundle) SharedFrameworksPath() string { + rv := objc.Call[string](b_, objc.Sel("sharedFrameworksPath")) return rv } @@ -545,19 +638,35 @@ func Bundle_MainBundle() Bundle { return BundleClass.MainBundle() } -// The full pathname of the bundle’s subdirectory containing resources. [Full Topic] +// The full pathname of the receiver's executable file. [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/1409078-executablepath?language=objc +func (b_ Bundle) ExecutablePath() string { + rv := objc.Call[string](b_, objc.Sel("executablePath")) return rv } -// The full URL of the receiver’s bundle directory. [Full Topic] +// The load status of a bundle. [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")) +// [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] +// +// [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 +} + +// The full pathname 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")) return rv } @@ -569,25 +678,26 @@ func (b_ Bundle) BuiltInPlugInsURL() URL { return rv } -// Returns an array of all the application’s non-framework bundles. [Full Topic] +// The full pathname of the bundle’s subdirectory containing resources. [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/1417723-resourcepath?language=objc +func (b_ Bundle) ResourcePath() string { + rv := objc.Call[string](b_, objc.Sel("resourcePath")) return rv } -// Returns an array of all the application’s non-framework bundles. [Full Topic] +// A list of all the localizations contained in the bundle. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsbundle/1413705-allbundles?language=objc -func Bundle_AllBundles() []Bundle { - return BundleClass.AllBundles() +// [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 bundle’s subdirectory containing shared support files. [Full Topic] +// The file URL of the bundle’s subdirectory containing private frameworks. [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")) +// [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 } diff --git a/macos/foundation/byte_count_formatter.gen.go b/macos/foundation/byte_count_formatter.gen.go index 095fea0b..ce88ec03 100644 --- a/macos/foundation/byte_count_formatter.gen.go +++ b/macos/foundation/byte_count_formatter.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package foundation @@ -22,22 +22,22 @@ type IByteCountFormatter interface { StringFromByteCount(byteCount int64) string IsAdaptive() bool SetAdaptive(value bool) - ZeroPadsFractionDigits() bool - SetZeroPadsFractionDigits(value bool) - IncludesCount() bool - SetIncludesCount(value bool) - AllowsNonnumericFormatting() bool - SetAllowsNonnumericFormatting(value bool) - AllowedUnits() ByteCountFormatterUnits - SetAllowedUnits(value ByteCountFormatterUnits) FormattingContext() FormattingContext SetFormattingContext(value FormattingContext) - CountStyle() ByteCountFormatterCountStyle - SetCountStyle(value ByteCountFormatterCountStyle) + 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) } // 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] @@ -58,10 +58,6 @@ func (bc _ByteCountFormatterClass) Alloc() ByteCountFormatter { return rv } -func ByteCountFormatter_Alloc() ByteCountFormatter { - return ByteCountFormatterClass.Alloc() -} - func (bc _ByteCountFormatterClass) New() ByteCountFormatter { rv := objc.Call[ByteCountFormatter](bc, objc.Sel("new")) rv.Autorelease() @@ -85,6 +81,36 @@ 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:"), objc.Ptr(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 @@ -108,19 +134,19 @@ func (b_ ByteCountFormatter) SetAdaptive(value bool) { objc.Call[objc.Void](b_, objc.Sel("setAdaptive:"), value) } -// Determines whether to zero pad fraction digits so a consistent number of characters is displayed in a representation. [Full Topic] +// Specify the formatting context for 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/1412185-formattingcontext?language=objc +func (b_ ByteCountFormatter) FormattingContext() FormattingContext { + rv := objc.Call[FormattingContext](b_, objc.Sel("formattingContext")) return rv } -// Determines whether to zero pad fraction digits so a consistent number of characters is displayed in a representation. [Full Topic] +// Specify the formatting context for 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/1412185-formattingcontext?language=objc +func (b_ ByteCountFormatter) SetFormattingContext(value FormattingContext) { + objc.Call[objc.Void](b_, objc.Sel("setFormattingContext:"), value) } // Determines whether to include the count in the resulting formatted string. [Full Topic] @@ -138,49 +164,19 @@ func (b_ ByteCountFormatter) SetIncludesCount(value bool) { objc.Call[objc.Void](b_, objc.Sel("setIncludesCount:"), 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) -} - -// 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] +// Determines whether to include the number of bytes after 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")) +// [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 } -// Specify the formatting context for the formatted string. [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/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/1411068-includesactualbytecount?language=objc +func (b_ ByteCountFormatter) SetIncludesActualByteCount(value bool) { + objc.Call[objc.Void](b_, objc.Sel("setIncludesActualByteCount:"), value) } // Specify the number of bytes to be used for kilobytes. [Full Topic] @@ -198,19 +194,34 @@ func (b_ ByteCountFormatter) SetCountStyle(value ByteCountFormatterCountStyle) { objc.Call[objc.Void](b_, objc.Sel("setCountStyle:"), 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) +} + +// 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/1409630-zeropadsfractiondigits?language=objc +func (b_ ByteCountFormatter) ZeroPadsFractionDigits() bool { + rv := objc.Call[bool](b_, objc.Sel("zeroPadsFractionDigits")) + return rv +} + +// 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/1409630-zeropadsfractiondigits?language=objc +func (b_ ByteCountFormatter) SetZeroPadsFractionDigits(value bool) { + objc.Call[objc.Void](b_, objc.Sel("setZeroPadsFractionDigits:"), value) } // Determines whether to include the units in the resulting formatted string. [Full Topic] @@ -227,3 +238,18 @@ 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 633f35c6..aa4dfe7d 100644 --- a/macos/foundation/cache.gen.go +++ b/macos/foundation/cache.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package foundation @@ -18,21 +18,22 @@ 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) - RemoveObjectForKey(key objc.IObject) RemoveAllObjects() - EvictsObjectsWithDiscardedContent() bool - SetEvictsObjectsWithDiscardedContent(value bool) + RemoveObjectForKey(key objc.IObject) + ObjectForKey(key objc.IObject) objc.Object + SetObjectForKeyCost(obj objc.IObject, key objc.IObject, g uint) + TotalCostLimit() uint + SetTotalCostLimit(value uint) CountLimit() uint SetCountLimit(value uint) Name() string SetName(value string) - Delegate() CacheDelegateWrapper + 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] @@ -53,10 +54,6 @@ func (cc _CacheClass) Alloc() Cache { return rv } -func Cache_Alloc() Cache { - return CacheClass.Alloc() -} - func (cc _CacheClass) New() Cache { rv := objc.Call[Cache](cc, objc.Sel("new")) rv.Autorelease() @@ -72,14 +69,6 @@ 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:"), objc.Ptr(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 @@ -87,6 +76,13 @@ func (c_ Cache) SetObjectForKey(obj objc.IObject, key objc.IObject) { objc.Call[objc.Void](c_, objc.Sel("setObject:forKey:"), objc.Ptr(obj), objc.Ptr(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 @@ -94,26 +90,34 @@ func (c_ Cache) RemoveObjectForKey(key objc.IObject) { objc.Call[objc.Void](c_, objc.Sel("removeObjectForKey:"), objc.Ptr(key)) } -// Empties the cache. [Full Topic] +// Returns the value associated with a given key. [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")) +// [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:"), objc.Ptr(key)) + return rv } -// Whether the cache will automatically evict discardable-content objects whose content has been discarded. [Full Topic] +// Sets the value of the specified key in the cache, and associates the key-value pair with the specified cost. [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")) +// [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:"), objc.Ptr(obj), objc.Ptr(key), g) +} + +// 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 } -// Whether the cache will automatically evict discardable-content objects whose content has been discarded. [Full Topic] +// 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/1408469-evictsobjectswithdiscardedconten?language=objc -func (c_ Cache) SetEvictsObjectsWithDiscardedContent(value bool) { - objc.Call[objc.Void](c_, objc.Sel("setEvictsObjectsWithDiscardedContent:"), value) +// [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) } // The maximum number of objects the cache should hold. [Full Topic] @@ -146,11 +150,26 @@ 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 -func (c_ Cache) Delegate() CacheDelegateWrapper { - rv := objc.Call[CacheDelegateWrapper](c_, objc.Sel("delegate")) +func (c_ Cache) Delegate() CacheDelegateObject { + rv := objc.Call[CacheDelegateObject](c_, objc.Sel("delegate")) return rv } @@ -168,18 +187,3 @@ func (c_ Cache) SetDelegate(value PCacheDelegate) { func (c_ Cache) SetDelegateObject(valueObject objc.IObject) { objc.Call[objc.Void](c_, objc.Sel("setDelegate:"), objc.Ptr(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/cache_delegate.gen.go b/macos/foundation/cache_delegate.gen.go index 88e6bbe5..b36c7b7a 100644 --- a/macos/foundation/cache_delegate.gen.go +++ b/macos/foundation/cache_delegate.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package foundation @@ -38,18 +38,21 @@ func (di *CacheDelegate) CacheWillEvictObject(cache Cache, obj objc.Object) { di._CacheWillEvictObject(cache, obj) } -// A concrete type wrapper for the [PCacheDelegate] protocol. -type CacheDelegateWrapper struct { +// ensure impl type implements protocol interface +var _ PCacheDelegate = (*CacheDelegateObject)(nil) + +// A concrete type for the [PCacheDelegate] protocol. +type CacheDelegateObject struct { objc.Object } -func (c_ CacheDelegateWrapper) HasCacheWillEvictObject() bool { +func (c_ CacheDelegateObject) HasCacheWillEvictObject() bool { return c_.RespondsToSelector(objc.Sel("cache:willEvictObject:")) } // Called when an object is about to be evicted or removed from the cache. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/foundation/nscachedelegate/1416107-cache?language=objc -func (c_ CacheDelegateWrapper) CacheWillEvictObject(cache ICache, obj objc.IObject) { +func (c_ CacheDelegateObject) CacheWillEvictObject(cache Cache, obj objc.Object) { objc.Call[objc.Void](c_, objc.Sel("cache:willEvictObject:"), objc.Ptr(cache), obj) } diff --git a/macos/foundation/cached_url_response.gen.go b/macos/foundation/cached_url_response.gen.go index b283c755..8b9e88ca 100644 --- a/macos/foundation/cached_url_response.gen.go +++ b/macos/foundation/cached_url_response.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package foundation @@ -18,10 +18,10 @@ type _CachedURLResponseClass struct { // An interface definition for the [CachedURLResponse] class. type ICachedURLResponse interface { objc.IObject - UserInfo() Dictionary - Data() []byte Response() URLResponse + UserInfo() Dictionary StoragePolicy() URLCacheStoragePolicy + Data() []byte } // A cached response to a URL request. [Full Topic] @@ -51,13 +51,23 @@ func NewCachedURLResponseWithResponseData(response IURLResponse, data []byte) Ca return instance } -func (cc _CachedURLResponseClass) Alloc() CachedURLResponse { - rv := objc.Call[CachedURLResponse](cc, objc.Sel("alloc")) +func (c_ CachedURLResponse) InitWithResponseDataUserInfoStoragePolicy(response IURLResponse, data []byte, userInfo Dictionary, storagePolicy URLCacheStoragePolicy) CachedURLResponse { + rv := objc.Call[CachedURLResponse](c_, objc.Sel("initWithResponse:data:userInfo:storagePolicy:"), objc.Ptr(response), data, userInfo, storagePolicy) return rv } -func CachedURLResponse_Alloc() CachedURLResponse { - return CachedURLResponseClass.Alloc() +// 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 } func (cc _CachedURLResponseClass) New() CachedURLResponse { @@ -75,22 +85,6 @@ func (c_ CachedURLResponse) Init() CachedURLResponse { return rv } -// The cached response’s user info dictionary. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/foundation/nscachedurlresponse/1411900-userinfo?language=objc -func (c_ CachedURLResponse) UserInfo() Dictionary { - rv := objc.Call[Dictionary](c_, objc.Sel("userInfo")) - return rv -} - -// The cached response’s data. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/foundation/nscachedurlresponse/1414011-data?language=objc -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 @@ -99,6 +93,14 @@ func (c_ CachedURLResponse) Response() URLResponse { return rv } +// The cached response’s user info dictionary. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/foundation/nscachedurlresponse/1411900-userinfo?language=objc +func (c_ CachedURLResponse) UserInfo() Dictionary { + rv := objc.Call[Dictionary](c_, objc.Sel("userInfo")) + return rv +} + // The cached response’s storage policy. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/foundation/nscachedurlresponse/1412269-storagepolicy?language=objc @@ -106,3 +108,11 @@ 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 +func (c_ CachedURLResponse) Data() []byte { + rv := objc.Call[[]byte](c_, objc.Sel("data")) + return rv +} diff --git a/macos/foundation/calendar.gen.go b/macos/foundation/calendar.gen.go index f5261c5c..6fac02d4 100644 --- a/macos/foundation/calendar.gen.go +++ b/macos/foundation/calendar.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package foundation @@ -18,63 +18,71 @@ 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 IDate, tip *TimeInterval, date IDate) bool IsDateInWeekend(date IDate) 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)) + StartOfDayForDate(date IDate) Date InitWithCalendarIdentifier(ident CalendarIdentifier) objc.Object + DateByAddingComponentsToDateOptions(comps IDateComponents, date IDate, opts CalendarOptions) Date NextWeekendStartDateIntervalOptionsAfterDate(datep IDate, tip *TimeInterval, options CalendarOptions, date IDate) bool + RangeOfUnitStartDateIntervalForDate(unit CalendarUnit, datep IDate, 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 - IsDateInTomorrow(date IDate) bool + DateBySettingUnitValueOfDateOptions(unit CalendarUnit, v int, date IDate, opts CalendarOptions) Date + DateByAddingUnitValueToDateOptions(unit CalendarUnit, value int, date IDate, options CalendarOptions) Date + RangeOfWeekendStartDateIntervalContainingDate(datep IDate, tip *TimeInterval, date IDate) bool + ComponentFromDate(unit CalendarUnit, date IDate) int + NextDateAfterDateMatchingHourMinuteSecondOptions(date IDate, hourValue int, minuteValue int, secondValue int, options CalendarOptions) Date DateBySettingHourMinuteSecondOfDateOptions(h int, m int, s int, date IDate, opts CalendarOptions) Date - IsDateInYesterday(date IDate) bool - CompareDateToDateToUnitGranularity(date1 IDate, date2 IDate, unit CalendarUnit) ComparisonResult - FirstWeekday() uint - SetFirstWeekday(value uint) + 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 VeryShortStandaloneMonthSymbols() []string - ShortStandaloneWeekdaySymbols() []string - WeekdaySymbols() []string - PMSymbol() string - StandaloneQuarterSymbols() []string - MonthSymbols() []string - ShortWeekdaySymbols() []string + VeryShortMonthSymbols() []string + StandaloneWeekdaySymbols() []string + CalendarIdentifier() CalendarIdentifier + ShortStandaloneMonthSymbols() []string MinimumDaysInFirstWeek() uint SetMinimumDaysInFirstWeek(value uint) - CalendarIdentifier() CalendarIdentifier + ShortMonthSymbols() []string + ShortQuarterSymbols() []string + VeryShortStandaloneWeekdaySymbols() []string Locale() Locale SetLocale(value ILocale) - EraSymbols() []string - StandaloneWeekdaySymbols() []string - TimeZone() TimeZone - SetTimeZone(value ITimeZone) - VeryShortMonthSymbols() []string + FirstWeekday() uint + SetFirstWeekday(value uint) + StandaloneQuarterSymbols() []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 - ShortQuarterSymbols() []string - StandaloneMonthSymbols() []string + TimeZone() TimeZone + SetTimeZone(value ITimeZone) } // A definition of the relationships between calendar units and absolute points in time, providing features for calculation and comparison of dates. [Full Topic] @@ -95,10 +103,6 @@ func (cc _CalendarClass) Alloc() Calendar { return rv } -func Calendar_Alloc() Calendar { - return CalendarClass.Alloc() -} - func (cc _CalendarClass) New() Calendar { rv := objc.Call[Calendar](cc, objc.Sel("new")) rv.Autorelease() @@ -114,81 +118,74 @@ func (c_ Calendar) Init() Calendar { 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] +// 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/1413194-componentsintimezone?language=objc -func (c_ Calendar) ComponentsInTimeZoneFromDate(timezone ITimeZone, date IDate) DateComponents { - rv := objc.Call[DateComponents](c_, objc.Sel("componentsInTimeZone:fromDate:"), objc.Ptr(timezone), objc.Ptr(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:"), objc.Ptr(date)) return rv } -// Returns a date representing the absolute time calculated by adding the value of a given component to 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/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, objc.Ptr(date), options) - return rv +// [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:"), objc.Ptr(start), objc.Ptr(comps), opts, block) } -// Returns whether a given date matches all of the given date 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/1407954-date?language=objc -func (c_ Calendar) DateMatchesComponents(date IDate, components IDateComponents) bool { - rv := objc.Call[bool](c_, objc.Sel("date:matchesComponents:"), objc.Ptr(date), objc.Ptr(components)) +// [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:"), objc.Ptr(date)) 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, objc.Ptr(date)) -} - -// Indicates whether the given date is in “today.” [Full Topic] +// Initializes a calendar according to a given identifier. [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:"), objc.Ptr(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 a date representing the absolute time calculated from given components. [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/1407609-datefromcomponents?language=objc -func (c_ Calendar) DateFromComponents(comps IDateComponents) Date { - rv := objc.Call[Date](c_, objc.Sel("dateFromComponents:"), objc.Ptr(comps)) +// [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:"), objc.Ptr(comps), objc.Ptr(date), opts) return rv } -// Creates a new calendar specified by a given identifier. [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/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/1409905-nextweekendstartdate?language=objc +func (c_ Calendar) NextWeekendStartDateIntervalOptionsAfterDate(datep IDate, tip *TimeInterval, options CalendarOptions, date IDate) bool { + rv := objc.Call[bool](c_, objc.Sel("nextWeekendStartDate:interval:options:afterDate:"), objc.Ptr(datep), tip, options, objc.Ptr(date)) return rv } -// Creates a new calendar specified by a given identifier. [Full Topic] +// Returns by reference the starting time and duration of a given calendar unit that contains a given date. [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/1408013-rangeofunit?language=objc +func (c_ Calendar) RangeOfUnitStartDateIntervalForDate(unit CalendarUnit, datep IDate, tip *TimeInterval, date IDate) bool { + rv := objc.Call[bool](c_, objc.Sel("rangeOfUnit:startDate:interval:forDate:"), unit, objc.Ptr(datep), tip, objc.Ptr(date)) + return rv } -// Returns the maximum range limits of the values that a given unit can take on. [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/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/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:"), objc.Ptr(date1), objc.Ptr(date2), unit) return rv } -// 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:"), objc.Ptr(comps), objc.Ptr(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:"), objc.Ptr(date)) return rv } @@ -200,51 +197,51 @@ func (c_ Calendar) OrdinalityOfUnitInUnitForDate(smaller CalendarUnit, larger Ca 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] +// Returns whether a given date matches all of the given date components. [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, objc.Ptr(date), opts) +// [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:"), objc.Ptr(date), objc.Ptr(components)) 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 the difference between two supplied dates as date components. [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, objc.Ptr(date)) +// [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, objc.Ptr(startingDate), objc.Ptr(resultDate), opts) return rv } -// Returns the next date after a given date matching the given calendar unit value. [Full Topic] +// 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/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:"), objc.Ptr(date), unit, value, options) +// [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 } -// Returns the specified date component from a given date. [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/1416505-component?language=objc -func (c_ Calendar) ComponentFromDate(unit CalendarUnit, date IDate) int { - rv := objc.Call[int](c_, objc.Sel("component:fromDate:"), unit, objc.Ptr(date)) +// [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 } -// 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] +// Returns the difference between start and end dates given as date components. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nscalendar/1413286-rangeofweekendstartdate?language=objc -func (c_ Calendar) RangeOfWeekendStartDateIntervalContainingDate(datep IDate, tip *TimeInterval, date IDate) bool { - rv := objc.Call[bool](c_, objc.Sel("rangeOfWeekendStartDate:interval:containingDate:"), objc.Ptr(datep), tip, objc.Ptr(date)) +// [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, objc.Ptr(startingDateComp), objc.Ptr(resultDateComp), options) return rv } -// Indicates whether a given date falls within a weekend period, as defined by the calendar and the calendar's locale. [Full Topic] +// Indicates whether the given date is in “yesterday.” [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:"), objc.Ptr(date)) +// [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:"), objc.Ptr(date)) return rv } @@ -256,49 +253,56 @@ func (c_ Calendar) ComponentsFromDate(unitFlags CalendarUnit, date IDate) DateCo return rv } -// Returns the first moment of a given date as a date instance. [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/1417161-startofdayfordate?language=objc -func (c_ Calendar) StartOfDayForDate(date IDate) Date { - rv := objc.Call[Date](c_, objc.Sel("startOfDayForDate:"), objc.Ptr(date)) +// [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, objc.Ptr(date)) +} + +// Returns a date representing the absolute time calculated from given components. [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:"), objc.Ptr(comps)) return rv } -// Returns by reference the era, year, week of year, and weekday component values for a given date. [Full Topic] +// Indicates whether the given date is in “tomorrow.” [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, objc.Ptr(date)) +// [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:"), objc.Ptr(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 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/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:"), objc.Ptr(start), objc.Ptr(comps), opts, block) +// [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, objc.Ptr(date)) } -// Initializes a calendar according to a given identifier. [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/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/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, objc.Ptr(date)) } -// Returns by reference the starting date and time interval range of the next weekend period after a given date. [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/1409905-nextweekendstartdate?language=objc -func (c_ Calendar) NextWeekendStartDateIntervalOptionsAfterDate(datep IDate, tip *TimeInterval, options CalendarOptions, date IDate) bool { - rv := objc.Call[bool](c_, objc.Sel("nextWeekendStartDate:interval:options:afterDate:"), objc.Ptr(datep), tip, options, objc.Ptr(date)) +// [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, objc.Ptr(date)) return rv } -// Returns the minimum range limits of the values that a given unit can take on. [Full Topic] +// Returns a new date created with the given components base on a week-of-year value. [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/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) return rv } @@ -310,19 +314,59 @@ func (c_ Calendar) IsDateInSameDayAsDate(date1 IDate, date2 IDate) bool { return rv } -// Returns a date created with the given components. [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/1415254-datewithera?language=objc -func (c_ Calendar) DateWithEraYearMonthDayHourMinuteSecondNanosecond(eraValue int, yearValue int, monthValue int, dayValue int, hourValue int, minuteValue int, secondValue int, nanosecondValue int) Date { - rv := objc.Call[Date](c_, objc.Sel("dateWithEra:year:month:day:hour:minute:second:nanosecond:"), eraValue, yearValue, monthValue, dayValue, hourValue, minuteValue, secondValue, nanosecondValue) - return rv -} +// [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:"), objc.Ptr(timezone), objc.Ptr(date)) + return rv +} -// Indicates whether the given date is in “tomorrow.” [Full Topic] +// Returns a date created with the given components. [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:"), objc.Ptr(date)) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nscalendar/1415254-datewithera?language=objc +func (c_ Calendar) DateWithEraYearMonthDayHourMinuteSecondNanosecond(eraValue int, yearValue int, monthValue int, dayValue int, hourValue int, minuteValue int, secondValue int, nanosecondValue int) Date { + rv := objc.Call[Date](c_, objc.Sel("dateWithEra:year:month:day:hour:minute:second:nanosecond:"), eraValue, yearValue, monthValue, dayValue, hourValue, minuteValue, secondValue, nanosecondValue) + 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, objc.Ptr(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, objc.Ptr(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 IDate, tip *TimeInterval, date IDate) bool { + rv := objc.Call[bool](c_, objc.Sel("rangeOfWeekendStartDate:interval:containingDate:"), objc.Ptr(datep), tip, objc.Ptr(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, objc.Ptr(date)) + return rv +} + +// Returns the next date after a given date that matches the given hour, minute, and second, component values. [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:"), objc.Ptr(date), hourValue, minuteValue, secondValue, options) return rv } @@ -334,90 +378,90 @@ func (c_ Calendar) DateBySettingHourMinuteSecondOfDateOptions(h int, m int, s in return rv } -// Indicates whether the given date is in “yesterday.” [Full Topic] +// Creates a new calendar specified by a given identifier. [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:"), objc.Ptr(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:"), objc.Ptr(date1), objc.Ptr(date2), unit) - return rv +// [Full Topic]: https://developer.apple.com/documentation/foundation/nscalendar/1412400-calendarwithidentifier?language=objc +func Calendar_CalendarWithIdentifier(calendarIdentifierConstant CalendarIdentifier) Calendar { + return CalendarClass.CalendarWithIdentifier(calendarIdentifierConstant) } -// The index of the first weekday of the receiver. [Full Topic] +// Returns the next date after a given date matching the given components. [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/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:"), objc.Ptr(date), objc.Ptr(comps), options) return rv } -// The index of the first weekday of the receiver. [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/1408310-firstweekday?language=objc -func (c_ Calendar) SetFirstWeekday(value uint) { - objc.Call[objc.Void](c_, objc.Sel("setFirstWeekday:"), value) +// [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:"), objc.Ptr(date), unit, value, options) + return rv } -// A list of very short month symbols for this calendar. [Full Topic] +// Indicates whether two dates are equal to a given unit of granularity. [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/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:"), objc.Ptr(date1), objc.Ptr(date2), unit) return rv } -// A list of short standalone weekday symbols for this calendar. [Full Topic] +// A list of era symbols for this 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")) +// [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 } -// A list of weekdays in 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/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/1408035-veryshortstandalonemonthsymbols?language=objc +func (c_ Calendar) VeryShortStandaloneMonthSymbols() []string { + rv := objc.Call[[]string](c_, objc.Sel("veryShortStandaloneMonthSymbols")) return rv } -// 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 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 month symbols for this calendar. [Full Topic] +// An identifier for the 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/1408268-calendaridentifier?language=objc +func (c_ Calendar) CalendarIdentifier() CalendarIdentifier { + rv := objc.Call[CalendarIdentifier](c_, objc.Sel("calendarIdentifier")) return rv } -// A list of shorter-named weekdays in 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/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/1418180-shortstandalonemonthsymbols?language=objc +func (c_ Calendar) ShortStandaloneMonthSymbols() []string { + rv := objc.Call[[]string](c_, objc.Sel("shortStandaloneMonthSymbols")) return rv } @@ -436,26 +480,42 @@ func (c_ Calendar) SetMinimumDaysInFirstWeek(value uint) { objc.Call[objc.Void](c_, objc.Sel("setMinimumDaysInFirstWeek:"), value) } -// The user’s current calendar. [Full Topic] +// A list of short month symbols for this 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")) +// [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 } -// The user’s current calendar. [Full Topic] +// A list of short 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/1414864-shortquartersymbols?language=objc +func (c_ Calendar) ShortQuarterSymbols() []string { + rv := objc.Call[[]string](c_, objc.Sel("shortQuarterSymbols")) + return rv } -// An identifier for the calendar. [Full Topic] +// A calendar that tracks changes to user’s preferred 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/1413771-autoupdatingcurrentcalendar?language=objc +func (cc _CalendarClass) AutoupdatingCurrentCalendar() Calendar { + rv := objc.Call[Calendar](cc, objc.Sel("autoupdatingCurrentCalendar")) + return rv +} + +// A calendar that tracks changes to user’s preferred calendar. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/foundation/nscalendar/1413771-autoupdatingcurrentcalendar?language=objc +func Calendar_AutoupdatingCurrentCalendar() Calendar { + return CalendarClass.AutoupdatingCurrentCalendar() +} + +// A list of very short standalone weekday symbols for this 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")) return rv } @@ -474,97 +534,89 @@ func (c_ Calendar) SetLocale(value ILocale) { objc.Call[objc.Void](c_, objc.Sel("setLocale:"), objc.Ptr(value)) } -// A list of era symbols for this calendar. [Full Topic] +// The index of the first weekday of the receiver. [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/1408310-firstweekday?language=objc +func (c_ Calendar) FirstWeekday() uint { + rv := objc.Call[uint](c_, objc.Sel("firstWeekday")) return rv } -// A list of standalone weekday symbols for this calendar. [Full Topic] +// The index of the first weekday of the receiver. [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")) - 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) } -// The time zone for the calendar. [Full Topic] +// A list of standalone 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/1407159-standalonequartersymbols?language=objc +func (c_ Calendar) StandaloneQuarterSymbols() []string { + rv := objc.Call[[]string](c_, objc.Sel("standaloneQuarterSymbols")) return rv } -// The time zone for the 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:"), objc.Ptr(value)) -} - -// A list of very short month symbols for this calendar. [Full Topic] +// A list of quarter symbols 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/1411517-quartersymbols?language=objc +func (c_ Calendar) QuarterSymbols() []string { + rv := objc.Call[[]string](c_, objc.Sel("quarterSymbols")) return rv } -// A calendar that tracks changes to user’s preferred calendar. [Full Topic] +// A list of short standalone weekday symbols for this 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/1413871-shortstandaloneweekdaysymbols?language=objc +func (c_ Calendar) ShortStandaloneWeekdaySymbols() []string { + rv := objc.Call[[]string](c_, objc.Sel("shortStandaloneWeekdaySymbols")) return rv } -// A calendar that tracks changes to user’s preferred calendar. [Full Topic] +// The symbol used to represent “PM” for this 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/1416343-pmsymbol?language=objc +func (c_ Calendar) PMSymbol() string { + rv := objc.Call[string](c_, objc.Sel("PMSymbol")) + return rv } -// A list of quarter symbols for this calendar. [Full Topic] +// A list of weekdays in this 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/1412939-weekdaysymbols?language=objc +func (c_ Calendar) WeekdaySymbols() []string { + rv := objc.Call[[]string](c_, objc.Sel("weekdaySymbols")) return rv } -// A list of short standalone quarter symbols for this calendar. [Full Topic] +// The user’s current 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/1408501-currentcalendar?language=objc +func (cc _CalendarClass) CurrentCalendar() Calendar { + rv := objc.Call[Calendar](cc, objc.Sel("currentCalendar")) return rv } -// The symbol used to represent “AM” for this calendar. [Full Topic] +// The user’s current 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")) - return rv +// [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] +// A list of shorter-named weekdays in this 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/1407268-shortweekdaysymbols?language=objc +func (c_ Calendar) ShortWeekdaySymbols() []string { + rv := objc.Call[[]string](c_, objc.Sel("shortWeekdaySymbols")) return rv } -// A list of short standalone month symbols for this calendar. [Full Topic] +// A list of standalone month symbols for 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/1409598-standalonemonthsymbols?language=objc +func (c_ Calendar) StandaloneMonthSymbols() []string { + rv := objc.Call[[]string](c_, objc.Sel("standaloneMonthSymbols")) return rv } @@ -576,11 +628,27 @@ func (c_ Calendar) LongEraSymbols() []string { return rv } -// A list of short month symbols for 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/1408952-shortmonthsymbols?language=objc -func (c_ Calendar) ShortMonthSymbols() []string { - rv := objc.Call[[]string](c_, objc.Sel("shortMonthSymbols")) +// [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 month 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")) + return rv +} + +// The symbol used to represent “AM” 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")) return rv } @@ -592,18 +660,17 @@ func (c_ Calendar) VeryShortWeekdaySymbols() []string { return rv } -// A list of short quarter symbols for this calendar. [Full Topic] +// The time zone for the 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")) +// [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 standalone month symbols for this calendar. [Full Topic] +// The time zone for the 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")) - 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:"), objc.Ptr(value)) } diff --git a/macos/foundation/calendar_date.gen.go b/macos/foundation/calendar_date.gen.go index 4154bedc..ddf087d4 100644 --- a/macos/foundation/calendar_date.gen.go +++ b/macos/foundation/calendar_date.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package foundation @@ -38,10 +38,6 @@ func (cc _CalendarDateClass) Alloc() CalendarDate { return rv } -func CalendarDate_Alloc() CalendarDate { - return CalendarDateClass.Alloc() -} - func (cc _CalendarDateClass) New() CalendarDate { rv := objc.Call[CalendarDate](cc, objc.Sel("new")) rv.Autorelease() @@ -57,6 +53,18 @@ 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 @@ -69,16 +77,16 @@ func CalendarDate_Date() CalendarDate { return CalendarDateClass.Date() } -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 } @@ -95,30 +103,6 @@ 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 @@ -147,18 +131,6 @@ 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, objc.Ptr(date)) return rv @@ -173,16 +145,40 @@ func NewCalendarDateWithTimeIntervalSinceDate(secsToBeAdded TimeInterval, date I return instance } -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 } + +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 a3d1b3ed..30101c54 100644 --- a/macos/foundation/character_set.gen.go +++ b/macos/foundation/character_set.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package foundation @@ -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 @@ -44,10 +44,6 @@ func (cc _CharacterSetClass) Alloc() CharacterSet { return rv } -func CharacterSet_Alloc() CharacterSet { - return CharacterSetClass.Alloc() -} - func (cc _CharacterSetClass) New() CharacterSet { rv := objc.Call[CharacterSet](cc, objc.Sel("new")) rv.Autorelease() @@ -63,19 +59,26 @@ func (c_ CharacterSet) Init() CharacterSet { return rv } -// Returns a Boolean value that indicates whether the receiver has at least one member in a given character plane. [Full Topic] +// Returns a character set containing the characters in a given string. [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) +// [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 } -// Returns a Boolean value that indicates whether a given character is in the receiver. [Full Topic] +// Returns a character set containing the characters in a given string. [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) +// [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] +// +// [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:"), objc.Ptr(theLongChar)) return rv } @@ -94,11 +97,42 @@ func CharacterSet_CharacterSetWithContentsOfFile(fName string) CharacterSet { return CharacterSetClass.CharacterSetWithContentsOfFile(fName) } -// 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 the receiver has at least one member in a given character plane. [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:"), objc.Ptr(theLongChar)) +// [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] +// +// [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:"), objc.Ptr(theOtherSet)) return rv } @@ -117,58 +151,49 @@ func CharacterSet_CharacterSetWithRange(aRange Range) CharacterSet { return CharacterSetClass.CharacterSetWithRange(aRange) } -// Returns a character set containing characters determined by a given bitmap representation. [Full Topic] +// A character set containing the characters in Unicode General Category Ll. [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) +// [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 a character set containing characters determined by a given bitmap representation. [Full Topic] +// A character set containing the characters in Unicode General Category Ll. [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) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nscharacterset/1417123-lowercaselettercharacterset?language=objc +func CharacterSet_LowercaseLetterCharacterSet() CharacterSet { + return CharacterSetClass.LowercaseLetterCharacterSet() } -// Returns a character set containing the characters in a given string. [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/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/1417569-uppercaselettercharacterset?language=objc +func (cc _CharacterSetClass) UppercaseLetterCharacterSet() CharacterSet { + rv := objc.Call[CharacterSet](cc, objc.Sel("uppercaseLetterCharacterSet")) 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 the receiver is a superset of another given character set. [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/1415606-issupersetofset?language=objc -func (c_ CharacterSet) IsSupersetOfSet(theOtherSet ICharacterSet) bool { - rv := objc.Call[bool](c_, objc.Sel("isSupersetOfSet:"), objc.Ptr(theOtherSet)) - return rv +// [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 newline characters (U+000A ~ U+000D, U+0085, U+2028, and U+2029). [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/1416730-newlinecharacterset?language=objc -func (cc _CharacterSetClass) NewlineCharacterSet() CharacterSet { - rv := objc.Call[CharacterSet](cc, objc.Sel("newlineCharacterSet")) - rv.Autorelease() +// [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 } -// A character set containing the newline characters (U+000A ~ U+000D, U+0085, U+2028, and U+2029). [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/1416730-newlinecharacterset?language=objc -func CharacterSet_NewlineCharacterSet() CharacterSet { - return CharacterSetClass.NewlineCharacterSet() +// [Full Topic]: https://developer.apple.com/documentation/foundation/nscharacterset/1416321-illegalcharacterset?language=objc +func CharacterSet_IllegalCharacterSet() CharacterSet { + return CharacterSetClass.IllegalCharacterSet() } // An NSData object encoding the receiver in binary format. [Full Topic] @@ -194,34 +219,34 @@ func CharacterSet_AlphanumericCharacterSet() CharacterSet { return CharacterSetClass.AlphanumericCharacterSet() } -// A character set containing the characters in Unicode General Category Lt. [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/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/1416371-controlcharacterset?language=objc +func (cc _CharacterSetClass) ControlCharacterSet() CharacterSet { + rv := objc.Call[CharacterSet](cc, objc.Sel("controlCharacterSet")) return rv } -// A character set containing the characters in Unicode General Category Lt. [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/1414409-capitalizedlettercharacterset?language=objc -func CharacterSet_CapitalizedLetterCharacterSet() CharacterSet { - return CharacterSetClass.CapitalizedLetterCharacterSet() +// [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 Ll. [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/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/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 Ll. [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/1417123-lowercaselettercharacterset?language=objc -func CharacterSet_LowercaseLetterCharacterSet() CharacterSet { - return CharacterSetClass.LowercaseLetterCharacterSet() +// [Full Topic]: https://developer.apple.com/documentation/foundation/nscharacterset/1416426-urlhostallowedcharacterset?language=objc +func CharacterSet_URLHostAllowedCharacterSet() CharacterSet { + return CharacterSetClass.URLHostAllowedCharacterSet() } // Returns the character set for characters allowed in a query URL component. [Full Topic] @@ -239,66 +264,44 @@ func CharacterSet_URLQueryAllowedCharacterSet() CharacterSet { return CharacterSetClass.URLQueryAllowedCharacterSet() } -// A character set containing the characters in Unicode General Category L* & M*. [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")) - return rv -} - -// A character set containing the characters in Unicode General Category L* & M*. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/foundation/nscharacterset/1408569-lettercharacterset?language=objc -func CharacterSet_LetterCharacterSet() CharacterSet { - return CharacterSetClass.LetterCharacterSet() -} - -// 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] +// Returns the character set for characters allowed in a path URL component. [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")) +// [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 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] +// Returns the character set for characters allowed in a path URL component. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nscharacterset/1416868-decomposablecharacterset?language=objc -func CharacterSet_DecomposableCharacterSet() CharacterSet { - return CharacterSetClass.DecomposableCharacterSet() +// [Full Topic]: https://developer.apple.com/documentation/foundation/nscharacterset/1416804-urlpathallowedcharacterset?language=objc +func CharacterSet_URLPathAllowedCharacterSet() CharacterSet { + return CharacterSetClass.URLPathAllowedCharacterSet() } -// A character set containing the characters in the category of Decimal Numbers. [Full Topic] +// A character set containing the characters in Unicode General Category S*. [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/1410965-symbolcharacterset?language=objc +func (cc _CharacterSetClass) SymbolCharacterSet() CharacterSet { + rv := objc.Call[CharacterSet](cc, objc.Sel("symbolCharacterSet")) return rv } -// A character set containing the characters in the category of Decimal Numbers. [Full Topic] +// A character set containing the characters in Unicode General Category S*. [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/1410965-symbolcharacterset?language=objc +func CharacterSet_SymbolCharacterSet() CharacterSet { + return CharacterSetClass.SymbolCharacterSet() } -// Returns the character set for characters allowed in a fragment URL component. [Full Topic] +// A character set containing only characters that don’t exist in the receiver. [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/1414025-invertedset?language=objc +func (c_ CharacterSet) InvertedSet() CharacterSet { + rv := objc.Call[CharacterSet](c_, objc.Sel("invertedSet")) 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 @@ -314,64 +317,79 @@ func CharacterSet_PunctuationCharacterSet() CharacterSet { return CharacterSetClass.PunctuationCharacterSet() } -// A character set containing the characters in Unicode General Category Zs and CHARACTER TABULATION (U+0009). [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/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/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 Zs and CHARACTER TABULATION (U+0009). [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/1416393-whitespacecharacterset?language=objc -func CharacterSet_WhitespaceCharacterSet() CharacterSet { - return CharacterSetClass.WhitespaceCharacterSet() +// [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 host URL subcomponent. [Full Topic] +// Returns the character set for characters allowed in a fragment URL component. [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/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 host URL subcomponent. [Full Topic] +// Returns the character set for characters allowed in a fragment URL component. [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/1412537-urlfragmentallowedcharacterset?language=objc +func CharacterSet_URLFragmentAllowedCharacterSet() CharacterSet { + return CharacterSetClass.URLFragmentAllowedCharacterSet() } -// 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 path URL component. [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/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/1413732-whitespaceandnewlinecharacterset?language=objc +func (cc _CharacterSetClass) WhitespaceAndNewlineCharacterSet() CharacterSet { + rv := objc.Call[CharacterSet](cc, objc.Sel("whitespaceAndNewlineCharacterSet")) return rv } -// Returns the character set for characters allowed in a path URL component. [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/1416804-urlpathallowedcharacterset?language=objc -func CharacterSet_URLPathAllowedCharacterSet() CharacterSet { - return CharacterSetClass.URLPathAllowedCharacterSet() +// [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 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() } // Returns the character set for characters allowed in a user URL subcomponent. [Full Topic] @@ -389,100 +407,77 @@ func CharacterSet_URLUserAllowedCharacterSet() CharacterSet { return CharacterSetClass.URLUserAllowedCharacterSet() } -// 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/1416321-illegalcharacterset?language=objc -func (cc _CharacterSetClass) IllegalCharacterSet() CharacterSet { - rv := objc.Call[CharacterSet](cc, objc.Sel("illegalCharacterSet")) - 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] -// -// [Full Topic]: https://developer.apple.com/documentation/foundation/nscharacterset/1416321-illegalcharacterset?language=objc -func CharacterSet_IllegalCharacterSet() CharacterSet { - return CharacterSetClass.IllegalCharacterSet() -} - -// A character set containing characters in Unicode General Category Z*, U+000A ~ U+000D, and U+0085. [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/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/1417313-urlpasswordallowedcharacterset?language=objc +func (cc _CharacterSetClass) URLPasswordAllowedCharacterSet() CharacterSet { + rv := objc.Call[CharacterSet](cc, objc.Sel("URLPasswordAllowedCharacterSet")) return rv } -// A character set containing characters in Unicode General Category Z*, U+000A ~ U+000D, and U+0085. [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/1413732-whitespaceandnewlinecharacterset?language=objc -func CharacterSet_WhitespaceAndNewlineCharacterSet() CharacterSet { - return CharacterSetClass.WhitespaceAndNewlineCharacterSet() +// [Full Topic]: https://developer.apple.com/documentation/foundation/nscharacterset/1417313-urlpasswordallowedcharacterset?language=objc +func CharacterSet_URLPasswordAllowedCharacterSet() CharacterSet { + return CharacterSetClass.URLPasswordAllowedCharacterSet() } -// A character set containing the characters in Unicode General Category S*. [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/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/1408569-lettercharacterset?language=objc +func (cc _CharacterSetClass) LetterCharacterSet() CharacterSet { + rv := objc.Call[CharacterSet](cc, objc.Sel("letterCharacterSet")) return rv } -// A character set containing the characters in Unicode General Category S*. [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/1410965-symbolcharacterset?language=objc -func CharacterSet_SymbolCharacterSet() CharacterSet { - return CharacterSetClass.SymbolCharacterSet() +// [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 Lu and Lt. [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/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/1416730-newlinecharacterset?language=objc +func (cc _CharacterSetClass) NewlineCharacterSet() CharacterSet { + rv := objc.Call[CharacterSet](cc, objc.Sel("newlineCharacterSet")) return rv } -// A character set containing the characters in Unicode General Category Lu and Lt. [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/1417569-uppercaselettercharacterset?language=objc -func CharacterSet_UppercaseLetterCharacterSet() CharacterSet { - return CharacterSetClass.UppercaseLetterCharacterSet() +// [Full Topic]: https://developer.apple.com/documentation/foundation/nscharacterset/1416730-newlinecharacterset?language=objc +func CharacterSet_NewlineCharacterSet() CharacterSet { + return CharacterSetClass.NewlineCharacterSet() } -// Returns the character set for characters allowed in a password URL subcomponent. [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/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/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 password URL subcomponent. [Full Topic] -// -// [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] +// 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/1414025-invertedset?language=objc -func (c_ CharacterSet) InvertedSet() CharacterSet { - rv := objc.Call[CharacterSet](c_, objc.Sel("invertedSet")) - return rv +// [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 M*. [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/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/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 Unicode General Category M*. [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/1407836-nonbasecharacterset?language=objc -func CharacterSet_NonBaseCharacterSet() CharacterSet { - return CharacterSetClass.NonBaseCharacterSet() +// [Full Topic]: https://developer.apple.com/documentation/foundation/nscharacterset/1408239-decimaldigitcharacterset?language=objc +func CharacterSet_DecimalDigitCharacterSet() CharacterSet { + return CharacterSetClass.DecimalDigitCharacterSet() } diff --git a/macos/foundation/class_description.gen.go b/macos/foundation/class_description.gen.go index b0ab0763..b84baffb 100644 --- a/macos/foundation/class_description.gen.go +++ b/macos/foundation/class_description.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package foundation @@ -19,9 +19,9 @@ type _ClassDescriptionClass struct { type IClassDescription interface { objc.IObject InverseForRelationshipKey(relationshipKey string) string - AttributeKeys() []string - ToManyRelationshipKeys() []string ToOneRelationshipKeys() []string + ToManyRelationshipKeys() []string + AttributeKeys() []string } // An abstract class that provides the interface for querying the relationships and properties of a class. [Full Topic] @@ -42,10 +42,6 @@ func (cc _ClassDescriptionClass) Alloc() ClassDescription { return rv } -func ClassDescription_Alloc() ClassDescription { - return ClassDescriptionClass.Alloc() -} - func (cc _ClassDescriptionClass) New() ClassDescription { rv := objc.Call[ClassDescription](cc, objc.Sel("new")) rv.Autorelease() @@ -61,20 +57,6 @@ func (c_ ClassDescription) Init() ClassDescription { return rv } -// 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 -func (cc _ClassDescriptionClass) RegisterClassDescriptionForClass(description IClassDescription, aClass objc.IClass) { - objc.Call[objc.Void](cc, objc.Sel("registerClassDescription:forClass:"), objc.Ptr(description), objc.Ptr(aClass)) -} - -// 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 -func ClassDescription_RegisterClassDescriptionForClass(description IClassDescription, aClass objc.IClass) { - 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 @@ -89,6 +71,20 @@ 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 +func (cc _ClassDescriptionClass) RegisterClassDescriptionForClass(description IClassDescription, aClass objc.IClass) { + objc.Call[objc.Void](cc, objc.Sel("registerClassDescription:forClass:"), objc.Ptr(description), objc.Ptr(aClass)) +} + +// 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 +func ClassDescription_RegisterClassDescriptionForClass(description IClassDescription, aClass objc.IClass) { + ClassDescriptionClass.RegisterClassDescriptionForClass(description, aClass) +} + // 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 @@ -112,11 +108,11 @@ func ClassDescription_ClassDescriptionForClass(aClass objc.IClass) ClassDescript return ClassDescriptionClass.ClassDescriptionForClass(aClass) } -// 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 } @@ -128,10 +124,10 @@ func (c_ ClassDescription) ToManyRelationshipKeys() []string { return rv } -// 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 } diff --git a/macos/foundation/clone_command.gen.go b/macos/foundation/clone_command.gen.go index f4ae6a55..1a3d7365 100644 --- a/macos/foundation/clone_command.gen.go +++ b/macos/foundation/clone_command.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package foundation @@ -39,10 +39,6 @@ func (cc _CloneCommandClass) Alloc() CloneCommand { return rv } -func CloneCommand_Alloc() CloneCommand { - return CloneCommandClass.Alloc() -} - func (cc _CloneCommandClass) New() CloneCommand { rv := objc.Call[CloneCommand](cc, objc.Sel("new")) rv.Autorelease() diff --git a/macos/foundation/close_command.gen.go b/macos/foundation/close_command.gen.go index 5a7109d3..ab2df754 100644 --- a/macos/foundation/close_command.gen.go +++ b/macos/foundation/close_command.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package foundation @@ -39,10 +39,6 @@ func (cc _CloseCommandClass) Alloc() CloseCommand { return rv } -func CloseCommand_Alloc() CloseCommand { - return CloseCommandClass.Alloc() -} - func (cc _CloseCommandClass) New() CloseCommand { rv := objc.Call[CloseCommand](cc, objc.Sel("new")) rv.Autorelease() diff --git a/macos/foundation/coder.gen.go b/macos/foundation/coder.gen.go index 36ad2085..fd67276e 100644 --- a/macos/foundation/coder.gen.go +++ b/macos/foundation/coder.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package foundation @@ -19,77 +19,83 @@ type _CoderClass struct { // An interface definition for the [Coder] class. type ICoder interface { objc.IObject - DecodeDataObject() []byte - DecodeSizeForKey(key string) Size - EncodeCMTimeMappingForKey(timeMapping coremedia.TimeMapping, key string) - DecodeFloatForKey(key string) float64 - 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 - DecodeBytesForKeyReturnedLength(key string, lengthp *uint) *uint8 - DecodeCMTimeForKey(key string) coremedia.Time + EncodeDoubleForKey(value float64, key string) + DecodePropertyListForKey(key string) objc.Object + DecodeBytesWithReturnedLength(lengthp *uint) unsafe.Pointer DecodePoint() Point - EncodeBycopyObject(anObject objc.IObject) - EncodeBoolForKey(value bool, key string) - DecodeTopLevelObjectForKeyError(key string, error IError) objc.Object - DecodeTopLevelObjectOfClassForKeyError(aClass objc.IClass, key string, error IError) objc.Object - DecodeObjectOfClassesForKey(classes ISet, key string) objc.Object - DecodeArrayOfObjectsOfClassForKey(cls objc.IClass, key string) []objc.Object - DecodeTopLevelObjectAndReturnError(error IError) objc.Object - DecodeArrayOfObjCTypeCountAt(itemType *uint8, count uint, array unsafe.Pointer) - EncodeDataObject(data []byte) - DecodeValueOfObjCTypeAtSize(type_ *uint8, data unsafe.Pointer, size uint) + EncodeCMTimeRangeForKey(timeRange coremedia.TimeRange, key string) + DecodePointForKey(key string) Point + EncodeConditionalObjectForKey(object objc.IObject, key string) EncodeCMTimeForKey(time coremedia.Time, key string) - ObjectZone() unsafe.Pointer + DecodeArrayOfObjCTypeCountAt(itemType *uint8, count uint, array unsafe.Pointer) + EncodeObject(object objc.IObject) + DecodeTopLevelObjectAndReturnError(error IError) objc.Object + DecodeObjectOfClassesForKey(classes ISet, key string) objc.Object DecodeInt32ForKey(key string) int32 + DecodeTopLevelObjectOfClassesForKeyError(classes ISet, key string, error IError) objc.Object + DecodeCMTimeRangeForKey(key string) coremedia.TimeRange + DecodeTopLevelObjectOfClassForKeyError(aClass objc.IClass, key string, error IError) 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 + EncodeCMTimeMappingForKey(timeMapping coremedia.TimeMapping, key string) + DecodeIntForKey(key string) int + SetObjectZone(zone unsafe.Pointer) + EncodeDataObject(data []byte) + DecodeObject() objc.Object + DecodeFloatForKey(key string) float64 + EncodePoint(point Point) + DecodeArrayOfObjectsOfClassForKey(cls objc.IClass, key string) []objc.Object + 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 + DecodeTopLevelObjectForKeyError(key string, error IError) objc.Object + EncodeValuesOfObjCTypes(types *uint8, args ...any) EncodeRootObject(rootObject objc.IObject) + DecodeSize() Size DecodeRectForKey(key string) Rect - DecodeRect() Rect - SetObjectZone(zone unsafe.Pointer) - DecodeIntForKey(key string) int - EncodeSizeForKey(size Size, key string) + VersionForClassName(className string) int DecodeIntegerForKey(key string) int - EncodeIntegerForKey(value int, key string) + EncodeFloatForKey(value float64, 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) - 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 IError) objc.Object + 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) DecodeBoolForKey(key string) bool DecodeArrayOfObjectsOfClassesForKey(classes ISet, key string) []objc.Object - DecodeCMTimeRangeForKey(key string) coremedia.TimeRange - EncodeFloatForKey(value float64, key string) - EncodeValuesOfObjCTypes(types *uint8, args ...any) + EncodeValueOfObjCTypeAt(type_ *uint8, addr unsafe.Pointer) + EncodeSizeForKey(size Size, key string) + DecodePropertyList() objc.Object ContainsValueForKey(key string) bool - EncodeDoubleForKey(value float64, key string) - EncodeIntForKey(value int, key string) - DecodeCMTimeMappingForKey(key string) coremedia.TimeMapping - DecodeBytesWithReturnedLength(lengthp *uint) unsafe.Pointer + FailWithError(error IError) + EncodeSize(size Size) + EncodePointForKey(point Point, key string) + DecodeRect() Rect EncodeInt64ForKey(value int64, key string) - Error() Error - DecodingFailurePolicy() DecodingFailurePolicy - AllowedClasses() Set + 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) 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] @@ -110,10 +116,6 @@ func (cc _CoderClass) Alloc() Coder { return rv } -func Coder_Alloc() Coder { - return CoderClass.Alloc() -} - func (cc _CoderClass) New() Coder { rv := objc.Call[Coder](cc, objc.Sel("new")) rv.Autorelease() @@ -129,65 +131,71 @@ func (c_ Coder) Init() Coder { return rv } -// Decodes and returns an NSData object that was previously encoded with encodeDataObject:. Subclasses must override this method. [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/1409876-decodedataobject?language=objc -func (c_ Coder) DecodeDataObject() []byte { - rv := objc.Call[[]byte](c_, objc.Sel("decodeDataObject")) - return rv +// [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) } -// Decodes and returns an NSSize structure that was previously encoded with encodeSize:forKey:. [Full Topic] +// Returns a decoded property list for the specified key. [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/1416284-decodepropertylistforkey?language=objc +func (c_ Coder) DecodePropertyListForKey(key string) objc.Object { + rv := objc.Call[objc.Object](c_, objc.Sel("decodePropertyListForKey:"), 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 whose types are unspecified. [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/1415441-decodebyteswithreturnedlength?language=objc +func (c_ Coder) DecodeBytesWithReturnedLength(lengthp *uint) unsafe.Pointer { + rv := objc.Call[unsafe.Pointer](c_, objc.Sel("decodeBytesWithReturnedLength:"), lengthp) + return rv } -// Decodes and returns a float value that was previously encoded with encodeFloat:forKey: or encodeDouble:forKey: and associated with the string key. [Full Topic] +// Decodes and returns an NSPoint structure that was previously encoded with [foundation/nscoder/encodepoint]. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nscoder/1408104-decodefloatforkey?language=objc -func (c_ Coder) DecodeFloatForKey(key string) float64 { - rv := objc.Call[float64](c_, objc.Sel("decodeFloatForKey:"), key) +// [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 } -// Decodes and returns an NSSize structure that was previously encoded with encodeSize:forKey:. [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/1391144-decodesize?language=objc -func (c_ Coder) DecodeSize() Size { - rv := objc.Call[Size](c_, objc.Sel("decodeSize")) +// [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) +} + +// Decodes and returns an NSPoint structure that was previously encoded with [foundation/nscoder/encodepoint]. [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) return rv } -// Encodes a rectangle structure and associates it with the string key. [Full Topic] +// 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] // -// [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/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] +// 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/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:"), objc.Ptr(keyClasses), objc.Ptr(objectClasses), key) - return rv +// [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) } -// Encodes a property list. [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/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/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) } // Encodes an object. [Full Topic] @@ -197,148 +205,135 @@ func (c_ Coder) EncodeObject(object objc.IObject) { objc.Call[objc.Void](c_, objc.Sel("encodeObject:"), object) } -// 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] +// Decodes a previously-encoded object, populating an error if decoding fails. [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) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nscoder/1442553-decodetoplevelobjectandreturnerr?language=objc +func (c_ Coder) DecodeTopLevelObjectAndReturnError(error IError) objc.Object { + rv := objc.Call[objc.Object](c_, objc.Sel("decodeTopLevelObjectAndReturnError:"), objc.Ptr(error)) return rv } -// This method is present for historical reasons and is not used with keyed archivers. [Full Topic] +// Decodes an object for the key, restricted to the specified classes. [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) +// [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:"), objc.Ptr(classes), key) return rv } -// 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/1386649-encodecmtimerange?language=objc -func (c_ Coder) EncodeCMTimeRangeForKey(timeRange coremedia.TimeRange, key string) { - objc.Call[objc.Void](c_, objc.Sel("encodeCMTimeRange:forKey:"), timeRange, key) -} - -// 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/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) -} - -// Encodes a value of the given type at the given address. [Full Topic] +// 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] // -// [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/1408918-decodeint32forkey?language=objc +func (c_ Coder) DecodeInt32ForKey(key string) int32 { + rv := objc.Call[int32](c_, objc.Sel("decodeInt32ForKey:"), key) + return rv } -// An encoding method for subclasses to override to conditionally encode an object, preserving common references to it. [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/1415196-encodeconditionalobject?language=objc -func (c_ Coder) EncodeConditionalObject(object objc.IObject) { - objc.Call[objc.Void](c_, objc.Sel("encodeConditionalObject:"), object) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nscoder/1442539-decodetoplevelobjectofclasses?language=objc +func (c_ Coder) DecodeTopLevelObjectOfClassesForKeyError(classes ISet, key string, error IError) objc.Object { + rv := objc.Call[objc.Object](c_, objc.Sel("decodeTopLevelObjectOfClasses:forKey:error:"), objc.Ptr(classes), key, objc.Ptr(error)) + return rv } -// Decodes a series of potentially different Objective-C types. [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/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/1385718-decodecmtimerangeforkey?language=objc +func (c_ Coder) DecodeCMTimeRangeForKey(key string) coremedia.TimeRange { + rv := objc.Call[coremedia.TimeRange](c_, objc.Sel("decodeCMTimeRangeForKey:"), key) + return rv } -// Decodes and returns an object that was previously encoded with any of the encode…Object methods. [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/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/1442575-decodetoplevelobjectofclass?language=objc +func (c_ Coder) DecodeTopLevelObjectOfClassForKeyError(aClass objc.IClass, key string, error IError) objc.Object { + rv := objc.Call[objc.Object](c_, objc.Sel("decodeTopLevelObjectOfClass:forKey:error:"), objc.Ptr(aClass), key, objc.Ptr(error)) return rv } -// Decodes an object for the key, restricted to the specified class. [Full Topic] +// [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:"), objc.Ptr(aClass), 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:"), objc.Ptr(keyClasses), objc.Ptr(objectClasses), key) return rv } -// Signals to this coder that the decode operation has failed. [Full Topic] +// 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] // -// [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:"), objc.Ptr(error)) +// [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 } -// 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] +// Encodes a rectangle structure and associates it with the string key. [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) - return rv +// [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) } -// Decodes a buffer of data that was previously encoded with encodeBytes:length: and associated 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/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/1389860-decodecmtimemappingforkey?language=objc +func (c_ Coder) DecodeCMTimeMappingForKey(key string) coremedia.TimeMapping { + rv := objc.Call[coremedia.TimeMapping](c_, objc.Sel("decodeCMTimeMappingForKey:"), key) return rv } -// Returns the Core Media time structure associated with a given key. [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/1389544-decodecmtimeforkey?language=objc -func (c_ Coder) DecodeCMTimeForKey(key string) coremedia.Time { - rv := objc.Call[coremedia.Time](c_, objc.Sel("decodeCMTimeForKey:"), key) - 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) } -// Decodes and returns an NSPoint structure that was previously encoded with encodePoint:forKey:. [Full Topic] +// 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] // -// [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")) +// [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 } -// An encoding method for subclasses to override such that it creates a copy, rather than a proxy, when decoded. [Full Topic] +// This method is present for historical reasons and has no effect. [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/1442547-setobjectzone?language=objc +func (c_ Coder) SetObjectZone(zone unsafe.Pointer) { + objc.Call[objc.Void](c_, objc.Sel("setObjectZone:"), zone) } -// Encodes a Boolean value and associates it with the string key. [Full Topic] +// Encodes a given data object. [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/1411473-encodedataobject?language=objc +func (c_ Coder) EncodeDataObject(data []byte) { + objc.Call[objc.Void](c_, objc.Sel("encodeDataObject:"), data) } -// Decodes the previously-encoded object associated by a key, populating an error if decoding fails. [Full Topic] +// 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/1442541-decodetoplevelobjectforkey?language=objc -func (c_ Coder) DecodeTopLevelObjectForKeyError(key string, error IError) objc.Object { - rv := objc.Call[objc.Object](c_, objc.Sel("decodeTopLevelObjectForKey:error:"), key, objc.Ptr(error)) +// [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 } -// Decode an object as an expected type, failing if the archived type does not match. [Full Topic] +// 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] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nscoder/1442575-decodetoplevelobjectofclass?language=objc -func (c_ Coder) DecodeTopLevelObjectOfClassForKeyError(aClass objc.IClass, key string, error IError) objc.Object { - rv := objc.Call[objc.Object](c_, objc.Sel("decodeTopLevelObjectOfClass:forKey:error:"), objc.Ptr(aClass), key, objc.Ptr(error)) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nscoder/1408104-decodefloatforkey?language=objc +func (c_ Coder) DecodeFloatForKey(key string) float64 { + rv := objc.Call[float64](c_, objc.Sel("decodeFloatForKey:"), key) return rv } -// Decodes an object for the key, restricted to the specified classes. [Full Topic] +// Encodes a point. [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:"), objc.Ptr(classes), key) - return rv +// [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] @@ -349,64 +344,65 @@ func (c_ Coder) DecodeArrayOfObjectsOfClassForKey(cls objc.IClass, key string) [ return rv } -// Decodes a previously-encoded object, populating an error if decoding fails. [Full Topic] +// 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] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nscoder/1442553-decodetoplevelobjectandreturnerr?language=objc -func (c_ Coder) DecodeTopLevelObjectAndReturnError(error IError) objc.Object { - rv := objc.Call[objc.Object](c_, objc.Sel("decodeTopLevelObjectAndReturnError:"), objc.Ptr(error)) +// [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 } -// Decodes an array of count items, whose Objective-C type is given by itemType. [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/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/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 given data object. [Full Topic] +// This method is present for historical reasons and has no effect. [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/1442570-objectzone?language=objc +func (c_ Coder) ObjectZone() unsafe.Pointer { + rv := objc.Call[unsafe.Pointer](c_, objc.Sel("objectZone")) + return rv } -// Decodes a single value of a known type from the specified data buffer. [Full Topic] +// [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/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:"), objc.Ptr(keyCls), objc.Ptr(objectCls), key) + return rv } -// Encodes a given Core Media time structure and associates it with a specified key. [Full Topic] +// Encodes a buffer of data of an unspecified type. [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/1411664-encodebytes?language=objc +func (c_ Coder) EncodeBytesLength(byteaddr unsafe.Pointer, length uint) { + objc.Call[objc.Void](c_, objc.Sel("encodeBytes:length:"), byteaddr, length) } -// This method is present for historical reasons and has no effect. [Full Topic] +// Decodes and returns an NSData object that was previously encoded with [foundation/nscoder/encodedataobject]. Subclasses must override this method. [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")) +// [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 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] +// 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/1408918-decodeint32forkey?language=objc -func (c_ Coder) DecodeInt32ForKey(key string) int32 { - rv := objc.Call[int32](c_, objc.Sel("decodeInt32ForKey:"), key) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nscoder/1442541-decodetoplevelobjectforkey?language=objc +func (c_ Coder) DecodeTopLevelObjectForKeyError(key string, error IError) objc.Object { + rv := objc.Call[objc.Object](c_, objc.Sel("decodeTopLevelObjectForKey:error:"), key, objc.Ptr(error)) return rv } -// Decodes and returns a previously-encoded object that was previously encoded with encodeObject: or encodeConditionalObject: and associated with the string key. [Full Topic] +// Encodes a series of values of potentially differing Objective-C types. [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) - 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...)...) } // An encoding method for subclasses to override to encode an interconnected group of objects, starting with the provided root object. [Full Topic] @@ -416,7 +412,15 @@ func (c_ Coder) EncodeRootObject(rootObject objc.IObject) { objc.Call[objc.Void](c_, objc.Sel("encodeRootObject:"), rootObject) } -// Decodes and returns an NSRect structure that was previously encoded with encodeRect:forKey:. [Full Topic] +// 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] // // [Full Topic]: https://developer.apple.com/documentation/foundation/nscoder/1391116-decoderectforkey?language=objc func (c_ Coder) DecodeRectForKey(key string) Rect { @@ -424,120 +428,126 @@ func (c_ Coder) DecodeRectForKey(key string) Rect { return rv } -// Decodes and returns an NSRect structure that was previously encoded with encodeRect:forKey:. [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/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/1417703-versionforclassname?language=objc +func (c_ Coder) VersionForClassName(className string) int { + rv := objc.Call[int](c_, objc.Sel("versionForClassName:"), className) return rv } -// This method is present for historical reasons and has no effect. [Full Topic] +// 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] // -// [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/1409246-decodeintegerforkey?language=objc +func (c_ Coder) DecodeIntegerForKey(key string) int { + rv := objc.Call[int](c_, objc.Sel("decodeIntegerForKey:"), key) + return rv } -// 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] +// Encodes a floating point value and associates it with the string 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) - return rv +// [Full Topic]: https://developer.apple.com/documentation/foundation/nscoder/1414384-encodefloat?language=objc +func (c_ Coder) EncodeFloatForKey(value float64, key string) { + objc.Call[objc.Void](c_, objc.Sel("encodeFloat:forKey:"), value, key) } -// Encodes a size structure and associates it with the given string key. [Full Topic] +// Encodes an object 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/1411568-encodeobject?language=objc +func (c_ Coder) EncodeObjectForKey(object objc.IObject, key string) { + objc.Call[objc.Void](c_, objc.Sel("encodeObject:forKey:"), object, key) } -// 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] +// Decodes a single value of a known type from the specified data buffer. [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/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) +} + +// Returns the Core Media time structure associated with a given 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) return rv } -// Encodes an integer value and associates it with the string key. [Full Topic] +// Encodes a property list. [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/1410643-encodepropertylist?language=objc +func (c_ Coder) EncodePropertyList(aPropertyList objc.IObject) { + objc.Call[objc.Void](c_, objc.Sel("encodePropertyList:"), aPropertyList) } -// An encoding method for subclasses to override such that it creates a proxy, rather than a copy, when decoded. [Full Topic] +// 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] // -// [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/1409374-decodedoubleforkey?language=objc +func (c_ Coder) DecodeDoubleForKey(key string) float64 { + rv := objc.Call[float64](c_, objc.Sel("decodeDoubleForKey:"), key) + return rv } -// Encodes a 32-bit integer value and associates it 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/1412395-encodeint32?language=objc -func (c_ Coder) EncodeInt32ForKey(value int32, key string) { - objc.Call[objc.Void](c_, objc.Sel("encodeInt32:forKey:"), value, 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:"), objc.Ptr(aClass), key) + return rv } -// Encodes a point and associates it with the string key. [Full Topic] +// Encodes a rectangle structure. [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/1391263-encoderect?language=objc +func (c_ Coder) EncodeRect(rect Rect) { + objc.Call[objc.Void](c_, objc.Sel("encodeRect:"), rect) } -// Decodes a property list that was previously encoded with encodePropertyList:. [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/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/1416279-encodebyrefobject?language=objc +func (c_ Coder) EncodeByrefObject(anObject objc.IObject) { + objc.Call[objc.Void](c_, objc.Sel("encodeByrefObject:"), anObject) } -// Decodes and returns an NSPoint structure that was previously encoded with encodePoint:forKey:. [Full Topic] +// 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/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/1391253-decodesizeforkey?language=objc +func (c_ Coder) DecodeSizeForKey(key string) Size { + rv := objc.Call[Size](c_, objc.Sel("decodeSizeForKey:"), key) return rv } -// [Full Topic] +// Encodes a buffer of data, given its length and a pointer, and associates it with a string key. [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:"), objc.Ptr(keyCls), objc.Ptr(objectCls), key) - return rv +// [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) } -// Encodes a buffer of data of an unspecified type. [Full Topic] +// Encodes an integer value and associates it with the string 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/1411551-encodeinteger?language=objc +func (c_ Coder) EncodeIntegerForKey(value int, key string) { + objc.Call[objc.Void](c_, objc.Sel("encodeInteger:forKey:"), value, key) } -// Returns a decoded property list for the specified key. [Full Topic] +// Decodes a buffer of data that was previously encoded with [foundation/nscoder/encodebytes] and associated with the string key. [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/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 } -// Decode an object as one of several expected types, failing if the archived type does not match. [Full Topic] +// Decodes a series of potentially different Objective-C types. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nscoder/1442539-decodetoplevelobjectofclasses?language=objc -func (c_ Coder) DecodeTopLevelObjectOfClassesForKeyError(classes ISet, key string, error IError) objc.Object { - rv := objc.Call[objc.Object](c_, objc.Sel("decodeTopLevelObjectOfClasses:forKey:error:"), objc.Ptr(classes), key, objc.Ptr(error)) - return rv +// [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 a boolean value that was previously encoded with encodeBool:forKey: and associated with the string key. [Full Topic] +// Decodes and returns a boolean value that was previously encoded with [foundation/nscoder/encodebool] 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 { @@ -553,26 +563,26 @@ func (c_ Coder) DecodeArrayOfObjectsOfClassesForKey(classes ISet, key string) [] return rv } -// 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) } -// Encodes a floating point value and associates it with the string key. [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/1414384-encodefloat?language=objc -func (c_ Coder) EncodeFloatForKey(value float64, key string) { - objc.Call[objc.Void](c_, objc.Sel("encodeFloat:forKey:"), value, key) +// [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) } -// Encodes a series of values of potentially differing Objective-C types. [Full Topic] +// Decodes a property list that was previously encoded with [foundation/nscoder/encodepropertylist]. [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/1411916-decodepropertylist?language=objc +func (c_ Coder) DecodePropertyList() objc.Object { + rv := objc.Call[objc.Object](c_, objc.Sel("decodePropertyList")) + return rv } // Returns a Boolean value that indicates whether an encoded value is available for a string. [Full Topic] @@ -583,33 +593,32 @@ func (c_ Coder) ContainsValueForKey(key string) bool { return rv } -// Encodes a double-precision floating point value 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/1409008-encodedouble?language=objc -func (c_ Coder) EncodeDoubleForKey(value float64, key string) { - objc.Call[objc.Void](c_, objc.Sel("encodeDouble:forKey:"), value, 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:"), objc.Ptr(error)) } -// Encodes a C integer value and associates it with the string key. [Full Topic] +// Encodes a size structure. [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/1391291-encodesize?language=objc +func (c_ Coder) EncodeSize(size Size) { + objc.Call[objc.Void](c_, objc.Sel("encodeSize:"), size) } -// Returns the Core Media time mapping structure associated with a given key. [Full Topic] +// Encodes a point and associates it 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) - return rv +// [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) } -// Decodes a buffer of data whose types are unspecified. [Full Topic] +// Decodes and returns an NSRect structure that was previously encoded with [foundation/nscoder/encoderect]. [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/1391269-decoderect?language=objc +func (c_ Coder) DecodeRect() Rect { + rv := objc.Call[Rect](c_, objc.Sel("decodeRect")) return rv } @@ -620,28 +629,39 @@ func (c_ Coder) EncodeInt64ForKey(value int64, key string) { objc.Call[objc.Void](c_, objc.Sel("encodeInt64:forKey:"), value, key) } -// An error in the top-level encode. [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/1643263-error?language=objc -func (c_ Coder) Error() Error { - rv := objc.Call[Error](c_, objc.Sel("error")) - 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) } -// The action the coder should take when decoding fails. [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/1642984-decodingfailurepolicy?language=objc -func (c_ Coder) DecodingFailurePolicy() DecodingFailurePolicy { - rv := objc.Call[DecodingFailurePolicy](c_, objc.Sel("decodingFailurePolicy")) - 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) } -// The set of coded classes allowed for secure coding. [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/1412486-allowedclasses?language=objc -func (c_ Coder) AllowedClasses() Set { - rv := objc.Call[Set](c_, objc.Sel("allowedClasses")) - 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) +} + +// 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/1418225-encodebycopyobject?language=objc +func (c_ Coder) EncodeBycopyObject(anObject objc.IObject) { + objc.Call[objc.Void](c_, objc.Sel("encodeBycopyObject:"), anObject) +} + +// Encodes a Boolean value and associates it with the string key. [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) } // A Boolean value that indicates whether the receiver supports keyed coding of objects. [Full Topic] @@ -660,6 +680,14 @@ 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 @@ -667,3 +695,19 @@ 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/coding.gen.go b/macos/foundation/coding_protocol.gen.go similarity index 70% rename from macos/foundation/coding.gen.go rename to macos/foundation/coding_protocol.gen.go index c48625a4..e8d83135 100644 --- a/macos/foundation/coding.gen.go +++ b/macos/foundation/coding_protocol.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package foundation @@ -15,34 +15,37 @@ type PCoding interface { HasEncodeWithCoder() bool // optional - InitWithCoder(coder Coder) objc.IObject + InitWithCoder(coder Coder) objc.Object HasInitWithCoder() bool } -// A concrete type wrapper for the [PCoding] protocol. -type CodingWrapper struct { +// ensure impl type implements protocol interface +var _ PCoding = (*CodingObject)(nil) + +// A concrete type for the [PCoding] protocol. +type CodingObject struct { objc.Object } -func (c_ CodingWrapper) HasEncodeWithCoder() bool { +func (c_ CodingObject) HasEncodeWithCoder() bool { return c_.RespondsToSelector(objc.Sel("encodeWithCoder:")) } // Encodes the receiver using a given archiver. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/foundation/nscoding/1413933-encodewithcoder?language=objc -func (c_ CodingWrapper) EncodeWithCoder(coder ICoder) { +func (c_ CodingObject) EncodeWithCoder(coder Coder) { objc.Call[objc.Void](c_, objc.Sel("encodeWithCoder:"), objc.Ptr(coder)) } -func (c_ CodingWrapper) HasInitWithCoder() bool { +func (c_ CodingObject) HasInitWithCoder() bool { return c_.RespondsToSelector(objc.Sel("initWithCoder:")) } // Returns an object initialized from data in a given unarchiver. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/foundation/nscoding/1416145-initwithcoder?language=objc -func (c_ CodingWrapper) InitWithCoder(coder ICoder) objc.Object { +func (c_ CodingObject) InitWithCoder(coder Coder) objc.Object { rv := objc.Call[objc.Object](c_, objc.Sel("initWithCoder:"), objc.Ptr(coder)) return rv } diff --git a/macos/foundation/comparison_predicate.gen.go b/macos/foundation/comparison_predicate.gen.go index 6276f035..57bdbb93 100644 --- a/macos/foundation/comparison_predicate.gen.go +++ b/macos/foundation/comparison_predicate.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package foundation @@ -18,9 +18,9 @@ type _ComparisonPredicateClass struct { // An interface definition for the [ComparisonPredicate] class. type IComparisonPredicate interface { IPredicate - Options() ComparisonPredicateOptions - CustomSelector() objc.Selector ComparisonPredicateModifier() ComparisonPredicateModifier + CustomSelector() objc.Selector + Options() ComparisonPredicateOptions RightExpression() Expression LeftExpression() Expression PredicateOperatorType() PredicateOperatorType @@ -39,6 +39,20 @@ 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:"), objc.Ptr(lhs), objc.Ptr(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:"), objc.Ptr(lhs), objc.Ptr(rhs), selector) return rv @@ -58,10 +72,6 @@ func (cc _ComparisonPredicateClass) Alloc() ComparisonPredicate { return rv } -func ComparisonPredicate_Alloc() ComparisonPredicate { - return ComparisonPredicateClass.Alloc() -} - func (cc _ComparisonPredicateClass) New() ComparisonPredicate { rv := objc.Call[ComparisonPredicate](cc, objc.Sel("new")) rv.Autorelease() @@ -106,11 +116,26 @@ func ComparisonPredicate_PredicateWithLeftExpressionRightExpressionCustomSelecto return ComparisonPredicateClass.PredicateWithLeftExpressionRightExpressionCustomSelector(lhs, rhs, selector) } -// The options to use for the receiver. [Full Topic] +// 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/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/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:"), objc.Ptr(lhs), objc.Ptr(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] +// +// [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 } @@ -122,11 +147,11 @@ func (c_ ComparisonPredicate) CustomSelector() objc.Selector { return rv } -// 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 } diff --git a/macos/foundation/compound_predicate.gen.go b/macos/foundation/compound_predicate.gen.go index cc984f9f..e7e619a8 100644 --- a/macos/foundation/compound_predicate.gen.go +++ b/macos/foundation/compound_predicate.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package foundation @@ -18,8 +18,8 @@ type _CompoundPredicateClass struct { // An interface definition for the [CompoundPredicate] class. type ICompoundPredicate interface { IPredicate - Subpredicates() []objc.Object CompoundPredicateType() CompoundPredicateType + Subpredicates() []objc.Object } // A specialized predicate that evaluates logical combinations of other predicates. [Full Topic] @@ -54,10 +54,6 @@ func (cc _CompoundPredicateClass) Alloc() CompoundPredicate { return rv } -func CompoundPredicate_Alloc() CompoundPredicate { - return CompoundPredicateClass.Alloc() -} - func (cc _CompoundPredicateClass) New() CompoundPredicate { rv := objc.Call[CompoundPredicate](cc, objc.Sel("new")) rv.Autorelease() @@ -87,21 +83,6 @@ 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:"), objc.Ptr(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 @@ -132,14 +113,21 @@ func CompoundPredicate_OrPredicateWithSubpredicates(subpredicates []IPredicate) return CompoundPredicateClass.OrPredicateWithSubpredicates(subpredicates) } -// The receiver’s subpredicates. [Full Topic] +// 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/1410273-subpredicates?language=objc -func (c_ CompoundPredicate) Subpredicates() []objc.Object { - rv := objc.Call[[]objc.Object](c_, objc.Sel("subpredicates")) +// [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:"), objc.Ptr(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) +} + // The predicate type for the receiver. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/foundation/nscompoundpredicate/1412973-compoundpredicatetype?language=objc @@ -147,3 +135,11 @@ 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 034b1877..49eb7500 100644 --- a/macos/foundation/condition.gen.go +++ b/macos/foundation/condition.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package foundation @@ -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) @@ -44,10 +44,6 @@ func (cc _ConditionClass) Alloc() Condition { return rv } -func Condition_Alloc() Condition { - return ConditionClass.Alloc() -} - func (cc _ConditionClass) New() Condition { rv := objc.Call[Condition](cc, objc.Sel("new")) rv.Autorelease() @@ -63,6 +59,13 @@ 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 @@ -77,13 +80,6 @@ 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 d0ac41ea..28176907 100644 --- a/macos/foundation/condition_lock.gen.go +++ b/macos/foundation/condition_lock.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package foundation @@ -18,11 +18,12 @@ 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 @@ -60,10 +61,6 @@ func (cc _ConditionLockClass) Alloc() ConditionLock { return rv } -func ConditionLock_Alloc() ConditionLock { - return ConditionLockClass.Alloc() -} - func (cc _ConditionLockClass) New() ConditionLock { rv := objc.Call[ConditionLock](cc, objc.Sel("new")) rv.Autorelease() @@ -79,6 +76,22 @@ 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, objc.Ptr(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 @@ -86,13 +99,6 @@ 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 @@ -101,14 +107,6 @@ 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 @@ -117,6 +115,13 @@ 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/connection.gen.go b/macos/foundation/connection.gen.go index 832eecdb..0301d055 100644 --- a/macos/foundation/connection.gen.go +++ b/macos/foundation/connection.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package foundation @@ -38,10 +38,6 @@ func (cc _ConnectionClass) Alloc() Connection { return rv } -func Connection_Alloc() Connection { - return ConnectionClass.Alloc() -} - func (cc _ConnectionClass) New() Connection { rv := objc.Call[Connection](cc, objc.Sel("new")) rv.Autorelease() diff --git a/macos/foundation/connection_delegate.gen.go b/macos/foundation/connection_delegate.gen.go index 08271465..43eae2de 100644 --- a/macos/foundation/connection_delegate.gen.go +++ b/macos/foundation/connection_delegate.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package foundation @@ -16,7 +16,10 @@ type PConnectionDelegate interface { type ConnectionDelegate struct { } -// A concrete type wrapper for the [PConnectionDelegate] protocol. -type ConnectionDelegateWrapper struct { +// ensure impl type implements protocol interface +var _ PConnectionDelegate = (*ConnectionDelegateObject)(nil) + +// A concrete type for the [PConnectionDelegate] protocol. +type ConnectionDelegateObject struct { objc.Object } diff --git a/macos/foundation/copying.gen.go b/macos/foundation/copying_protocol.gen.go similarity index 64% rename from macos/foundation/copying.gen.go rename to macos/foundation/copying_protocol.gen.go index d265581c..5e46bb0d 100644 --- a/macos/foundation/copying.gen.go +++ b/macos/foundation/copying_protocol.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package foundation @@ -13,24 +13,26 @@ import ( // [Full Topic]: https://developer.apple.com/documentation/foundation/nscopying?language=objc type PCopying interface { // optional - CopyWithZone(zone unsafe.Pointer) objc.IObject + CopyWithZone(zone unsafe.Pointer) objc.Object HasCopyWithZone() bool } -// A concrete type wrapper for the [PCopying] protocol. -type CopyingWrapper struct { +// ensure impl type implements protocol interface +var _ PCopying = (*CopyingObject)(nil) + +// A concrete type for the [PCopying] protocol. +type CopyingObject struct { objc.Object } -func (c_ CopyingWrapper) HasCopyWithZone() bool { +func (c_ CopyingObject) HasCopyWithZone() bool { return c_.RespondsToSelector(objc.Sel("copyWithZone:")) } // Returns a new instance that’s a copy of the receiver. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/foundation/nscopying/1410311-copywithzone?language=objc -func (c_ CopyingWrapper) CopyWithZone(zone unsafe.Pointer) objc.Object { +func (c_ CopyingObject) CopyWithZone(zone unsafe.Pointer) objc.Object { rv := objc.Call[objc.Object](c_, objc.Sel("copyWithZone:"), zone) - rv.Autorelease() return rv } diff --git a/macos/foundation/count_command.gen.go b/macos/foundation/count_command.gen.go index f9546b5d..779e3a38 100644 --- a/macos/foundation/count_command.gen.go +++ b/macos/foundation/count_command.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package foundation @@ -38,10 +38,6 @@ func (cc _CountCommandClass) Alloc() CountCommand { return rv } -func CountCommand_Alloc() CountCommand { - return CountCommandClass.Alloc() -} - func (cc _CountCommandClass) New() CountCommand { rv := objc.Call[CountCommand](cc, objc.Sel("new")) rv.Autorelease() diff --git a/macos/foundation/counted_set.gen.go b/macos/foundation/counted_set.gen.go index b6dbe888..a3de7ca8 100644 --- a/macos/foundation/counted_set.gen.go +++ b/macos/foundation/counted_set.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package foundation @@ -34,30 +34,30 @@ func CountedSetFrom(ptr unsafe.Pointer) CountedSet { } } -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 } -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 } @@ -81,10 +81,6 @@ func (cc _CountedSetClass) Alloc() CountedSet { return rv } -func CountedSet_Alloc() CountedSet { - return CountedSetClass.Alloc() -} - func (cc _CountedSetClass) New() CountedSet { rv := objc.Call[CountedSet](cc, objc.Sel("new")) rv.Autorelease() @@ -112,16 +108,18 @@ func CountedSet_SetWithCapacity(numItems uint) CountedSet { return CountedSetClass.SetWithCapacity(numItems) } -func (cc _CountedSetClass) Set() CountedSet { - rv := objc.Call[CountedSet](cc, objc.Sel("set")) +func (c_ CountedSet) InitWithSetCopyItems(set ISet, flag bool) CountedSet { + rv := objc.Call[CountedSet](c_, objc.Sel("initWithSet:copyItems:"), objc.Ptr(set), flag) return rv } -// Creates and returns an empty set. [Full Topic] +// Initializes a newly allocated set and adds to it members of another given 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/1408407-initwithset?language=objc +func NewCountedSetWithSetCopyItems(set ISet, flag bool) CountedSet { + instance := CountedSetClass.Alloc().InitWithSetCopyItems(set, flag) + instance.Autorelease() + return instance } func (c_ CountedSet) InitWithObjects(firstObj objc.IObject, args ...any) CountedSet { @@ -138,18 +136,6 @@ func NewCountedSetWithObjects(firstObj objc.IObject, args ...any) CountedSet { return instance } -func (cc _CountedSetClass) SetWithSet(set ISet) CountedSet { - rv := objc.Call[CountedSet](cc, objc.Sel("setWithSet:"), objc.Ptr(set)) - return rv -} - -// Creates and returns a set containing the objects from another set. [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) -} - func (cc _CountedSetClass) SetWithObject(object objc.IObject) CountedSet { rv := objc.Call[CountedSet](cc, objc.Sel("setWithObject:"), objc.Ptr(object)) return rv @@ -162,6 +148,44 @@ 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{objc.Ptr(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 objc.IObject, cnt uint) CountedSet { + rv := objc.Call[CountedSet](cc, objc.Sel("setWithObjects:count:"), objc.Ptr(objects), cnt) + return rv +} + +// 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/1574824-setwithobjects?language=objc +func CountedSet_SetWithObjectsCount(objects objc.IObject, cnt uint) CountedSet { + return CountedSetClass.SetWithObjectsCount(objects, cnt) +} + +func (c_ CountedSet) InitWithObjectsCount(objects objc.IObject, cnt uint) CountedSet { + rv := objc.Call[CountedSet](c_, objc.Sel("initWithObjects:count:"), objc.Ptr(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/nsset/1407458-initwithobjects?language=objc +func NewCountedSetWithObjectsCount(objects objc.IObject, cnt uint) CountedSet { + instance := CountedSetClass.Alloc().InitWithObjectsCount(objects, cnt) + instance.Autorelease() + return instance +} + func (cc _CountedSetClass) SetWithArray(array []objc.IObject) CountedSet { rv := objc.Call[CountedSet](cc, objc.Sel("setWithArray:"), array) return rv @@ -174,40 +198,52 @@ func CountedSet_SetWithArray(array []objc.IObject) CountedSet { return CountedSetClass.SetWithArray(array) } -func (cc _CountedSetClass) SetWithCollectionViewIndexPath(indexPath IIndexPath) CountedSet { - rv := objc.Call[CountedSet](cc, objc.Sel("setWithCollectionViewIndexPath:"), objc.Ptr(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) } -func (cc _CountedSetClass) SetWithObjectsCount(objects objc.IObject, cnt uint) CountedSet { - rv := objc.Call[CountedSet](cc, objc.Sel("setWithObjects:count:"), objc.Ptr(objects), cnt) +func (cc _CountedSetClass) Set() CountedSet { + rv := objc.Call[CountedSet](cc, objc.Sel("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 empty set. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsset/1574824-setwithobjects?language=objc -func CountedSet_SetWithObjectsCount(objects objc.IObject, cnt uint) CountedSet { - return CountedSetClass.SetWithObjectsCount(objects, cnt) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsset/1574818-set?language=objc +func CountedSet_Set() CountedSet { + return CountedSetClass.Set() } -func (cc _CountedSetClass) SetWithCollectionViewIndexPaths(indexPaths []IIndexPath) CountedSet { - rv := objc.Call[CountedSet](cc, objc.Sel("setWithCollectionViewIndexPaths:"), indexPaths) +func (cc _CountedSetClass) SetWithSet(set ISet) CountedSet { + rv := objc.Call[CountedSet](cc, objc.Sel("setWithSet:"), objc.Ptr(set)) + return rv +} + +// Creates and returns a set containing the objects from another set. [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) +} + +func (cc _CountedSetClass) SetWithCollectionViewIndexPath(indexPath IIndexPath) CountedSet { + rv := objc.Call[CountedSet](cc, objc.Sel("setWithCollectionViewIndexPath:"), objc.Ptr(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) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsset/1528161-setwithcollectionviewindexpath?language=objc +func CountedSet_SetWithCollectionViewIndexPath(indexPath IIndexPath) CountedSet { + return CountedSetClass.SetWithCollectionViewIndexPath(indexPath) } // 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 bb2acea2..b03dd66d 100644 --- a/macos/foundation/create_command.gen.go +++ b/macos/foundation/create_command.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package foundation @@ -18,8 +18,8 @@ type _CreateCommandClass struct { // An interface definition for the [CreateCommand] class. type ICreateCommand interface { IScriptCommand - ResolvedKeyDictionary() map[string]objc.Object CreateClassDescription() ScriptClassDescription + ResolvedKeyDictionary() map[string]objc.Object } // A command that creates a scriptable object. [Full Topic] @@ -40,10 +40,6 @@ func (cc _CreateCommandClass) Alloc() CreateCommand { return rv } -func CreateCommand_Alloc() CreateCommand { - return CreateCommandClass.Alloc() -} - func (cc _CreateCommandClass) New() CreateCommand { rv := objc.Call[CreateCommand](cc, objc.Sel("new")) rv.Autorelease() @@ -73,14 +69,6 @@ func NewCreateCommandWithCommandDescription(commandDef IScriptCommandDescription return instance } -// 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 -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 @@ -88,3 +76,11 @@ 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 +func (c_ CreateCommand) ResolvedKeyDictionary() map[string]objc.Object { + rv := objc.Call[map[string]objc.Object](c_, objc.Sel("resolvedKeyDictionary")) + return rv +} diff --git a/macos/foundation/data.gen.go b/macos/foundation/data.gen.go index 947398ad..711efb43 100644 --- a/macos/foundation/data.gen.go +++ b/macos/foundation/data.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package foundation @@ -18,15 +18,18 @@ type _DataClass struct { // An interface definition for the [Data] class. type IData interface { objc.IObject - WriteToFileOptionsError(path string, writeOptionsMask DataWritingOptions, errorPtr IError) bool + GetBytesRange(buffer unsafe.Pointer, range_ Range) SubdataWithRange(range_ Range) []byte + WriteToURLOptionsError(url IURL, writeOptionsMask DataWritingOptions, errorPtr IError) 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 - 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)) + GetBytesLength(buffer unsafe.Pointer, length uint) + WriteToFileOptionsError(path string, writeOptionsMask DataWritingOptions, errorPtr IError) bool + Base64EncodedDataWithOptions(options DataBase64EncodingOptions) []byte Description() string Length() uint Bytes() unsafe.Pointer @@ -45,56 +48,92 @@ func DataFrom(ptr unsafe.Pointer) Data { } } -func (d_ Data) InitWithContentsOfFileOptionsError(path string, readOptionsMask DataReadingOptions, errorPtr IError) Data { - rv := objc.Call[Data](d_, objc.Sel("initWithContentsOfFile:options:error:"), path, readOptionsMask, objc.Ptr(errorPtr)) +func (dc _DataClass) DataWithContentsOfFileOptionsError(path string, readOptionsMask DataReadingOptions, errorPtr IError) Data { + rv := objc.Call[Data](dc, objc.Sel("dataWithContentsOfFile:options:error:"), path, readOptionsMask, objc.Ptr(errorPtr)) return rv } -// Initializes a data object with the content of the file at a given path. [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/1411145-initwithcontentsoffile?language=objc -func NewDataWithContentsOfFileOptionsError(path string, readOptionsMask DataReadingOptions, errorPtr IError) Data { - instance := DataClass.Alloc().InitWithContentsOfFileOptionsError(path, readOptionsMask, errorPtr) - instance.Autorelease() - return instance +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsdata/1547244-datawithcontentsoffile?language=objc +func Data_DataWithContentsOfFileOptionsError(path string, readOptionsMask DataReadingOptions, errorPtr IError) Data { + return DataClass.DataWithContentsOfFileOptionsError(path, readOptionsMask, errorPtr) } -func (d_ Data) CompressedDataUsingAlgorithmError(algorithm DataCompressionAlgorithm, error IError) Data { - rv := objc.Call[Data](d_, objc.Sel("compressedDataUsingAlgorithm:error:"), algorithm, objc.Ptr(error)) +func (d_ Data) InitWithBytesNoCopyLength(bytes unsafe.Pointer, length uint) Data { + rv := objc.Call[Data](d_, objc.Sel("initWithBytesNoCopy:length:"), bytes, length) return rv } -// Returns a new data object by compressing the data object’s bytes. [Full Topic] +// Initializes a data object filled with a given number of bytes of data from a given buffer. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsdata/3174960-compresseddatausingalgorithm?language=objc -func Data_CompressedDataUsingAlgorithmError(algorithm DataCompressionAlgorithm, error IError) Data { - instance := DataClass.Alloc().CompressedDataUsingAlgorithmError(algorithm, error) +// [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) instance.Autorelease() return instance } -func (dc _DataClass) DataWithContentsOfURL(url IURL) Data { - rv := objc.Call[Data](dc, objc.Sel("dataWithContentsOfURL:"), objc.Ptr(url)) +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) + return rv +} + +// Creates a data object containing the contents of another data object. [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) +} + +func (dc _DataClass) DataWithContentsOfURLOptionsError(url IURL, readOptionsMask DataReadingOptions, errorPtr IError) Data { + rv := objc.Call[Data](dc, objc.Sel("dataWithContentsOfURL:options:error:"), objc.Ptr(url), readOptionsMask, objc.Ptr(errorPtr)) 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) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsdata/1547238-datawithcontentsofurl?language=objc +func Data_DataWithContentsOfURLOptionsError(url IURL, readOptionsMask DataReadingOptions, errorPtr IError) Data { + return DataClass.DataWithContentsOfURLOptionsError(url, readOptionsMask, errorPtr) } -func (d_ Data) InitWithData(data []byte) Data { - rv := objc.Call[Data](d_, objc.Sel("initWithData:"), data) +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 contents of another data object. [Full Topic] +// Initializes a data object with the given Base64 encoded string. [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/1410081-initwithbase64encodedstring?language=objc +func NewDataWithBase64EncodedStringOptions(base64String string, options DataBase64DecodingOptions) Data { + instance := DataClass.Alloc().InitWithBase64EncodedStringOptions(base64String, options) + instance.Autorelease() + return instance +} + +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 filled with a given number of bytes copied from a given buffer. [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) instance.Autorelease() return instance } @@ -113,40 +152,70 @@ func NewDataWithBytesNoCopyLengthFreeWhenDone(bytes unsafe.Pointer, length uint, 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) +func (d_ Data) InitWithContentsOfURLOptionsError(url IURL, readOptionsMask DataReadingOptions, errorPtr IError) Data { + rv := objc.Call[Data](d_, objc.Sel("initWithContentsOfURL:options:error:"), objc.Ptr(url), readOptionsMask, objc.Ptr(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 IError) Data { + instance := DataClass.Alloc().InitWithContentsOfURLOptionsError(url, readOptionsMask, errorPtr) + instance.Autorelease() + return instance +} + +func (d_ Data) InitWithContentsOfFileOptionsError(path string, readOptionsMask DataReadingOptions, errorPtr IError) Data { + rv := objc.Call[Data](d_, objc.Sel("initWithContentsOfFile:options:error:"), path, readOptionsMask, objc.Ptr(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 IError) 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) 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) +// [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) } -func (dc _DataClass) DataWithData(data []byte) Data { - rv := objc.Call[Data](dc, objc.Sel("dataWithData:"), data) +func (d_ Data) InitWithContentsOfURL(url IURL) Data { + rv := objc.Call[Data](d_, objc.Sel("initWithContentsOfURL:"), objc.Ptr(url)) return rv } -// Creates a data object containing the contents of another data object. [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/1547230-datawithdata?language=objc -func Data_DataWithData(data []byte) Data { - return DataClass.DataWithData(data) +// [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 (dc _DataClass) DataWithContentsOfFileOptionsError(path string, readOptionsMask DataReadingOptions, errorPtr IError) Data { - rv := objc.Call[Data](dc, objc.Sel("dataWithContentsOfFile:options:error:"), path, readOptionsMask, objc.Ptr(errorPtr)) +func (dc _DataClass) DataWithBytesLength(bytes unsafe.Pointer, length uint) Data { + rv := objc.Call[Data](dc, objc.Sel("dataWithBytes:length:"), bytes, length) return rv } -// Creates a data object by reading every byte from the file at a given path. [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/1547244-datawithcontentsoffile?language=objc -func Data_DataWithContentsOfFileOptionsError(path string, readOptionsMask DataReadingOptions, errorPtr IError) Data { - return DataClass.DataWithContentsOfFileOptionsError(path, readOptionsMask, errorPtr) +// [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) Data() Data { @@ -161,86 +230,112 @@ func Data_Data() Data { return DataClass.Data() } -func (d_ Data) InitWithBytesLength(bytes unsafe.Pointer, length uint) Data { - rv := objc.Call[Data](d_, objc.Sel("initWithBytes:length:"), bytes, length) +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 filled with a given number of bytes copied from a given buffer. [Full Topic] +// Initializes a data object with the given Base64 encoded data. [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/1417833-initwithbase64encodeddata?language=objc +func NewDataWithBase64EncodedDataOptions(base64Data []byte, options DataBase64DecodingOptions) Data { + instance := DataClass.Alloc().InitWithBase64EncodedDataOptions(base64Data, options) instance.Autorelease() return instance } -func (d_ Data) InitWithContentsOfURL(url IURL) Data { - rv := objc.Call[Data](d_, objc.Sel("initWithContentsOfURL:"), objc.Ptr(url)) +func (d_ Data) InitWithContentsOfFile(path string) Data { + rv := objc.Call[Data](d_, objc.Sel("initWithContentsOfFile:"), path) return rv } -// Initializes a data object with the data from the location specified by a given URL. [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/1413892-initwithcontentsofurl?language=objc -func NewDataWithContentsOfURL(url IURL) Data { - instance := DataClass.Alloc().InitWithContentsOfURL(url) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsdata/1408672-initwithcontentsoffile?language=objc +func NewDataWithContentsOfFile(path string) Data { + instance := DataClass.Alloc().InitWithContentsOfFile(path) instance.Autorelease() return instance } -func (d_ Data) DecompressedDataUsingAlgorithmError(algorithm DataCompressionAlgorithm, error IError) Data { - rv := objc.Call[Data](d_, objc.Sel("decompressedDataUsingAlgorithm:error:"), algorithm, objc.Ptr(error)) +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) return rv } -// Returns a new data object by decompressing data object’s bytes. [Full Topic] +// Initializes a data object filled with a given number of bytes of data from a given buffer, with a custom deallocator block. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsdata/3174961-decompresseddatausingalgorithm?language=objc -func Data_DecompressedDataUsingAlgorithmError(algorithm DataCompressionAlgorithm, error IError) Data { - instance := DataClass.Alloc().DecompressedDataUsingAlgorithmError(algorithm, error) +// [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) instance.Autorelease() return instance } -func (d_ Data) InitWithBase64EncodedDataOptions(base64Data []byte, options DataBase64DecodingOptions) Data { - rv := objc.Call[Data](d_, objc.Sel("initWithBase64EncodedData:options:"), base64Data, options) +func (dc _DataClass) DataWithContentsOfFile(path string) Data { + rv := objc.Call[Data](dc, objc.Sel("dataWithContentsOfFile:"), path) return rv } -// Initializes a data object with the given Base64 encoded data. [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/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/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) + return rv +} + +// Initializes a data object with the contents of another data object. [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) instance.Autorelease() return instance } -func (d_ Data) InitWithBase64EncodedStringOptions(base64String string, options DataBase64DecodingOptions) Data { - rv := objc.Call[Data](d_, objc.Sel("initWithBase64EncodedString:options:"), base64String, options) +func (dc _DataClass) DataWithContentsOfURL(url IURL) Data { + rv := objc.Call[Data](dc, objc.Sel("dataWithContentsOfURL:"), objc.Ptr(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 NewDataWithBase64EncodedStringOptions(base64String string, options DataBase64DecodingOptions) Data { - instance := DataClass.Alloc().InitWithBase64EncodedStringOptions(base64String, options) +// [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 IError) Data { + rv := objc.Call[Data](d_, objc.Sel("compressedDataUsingAlgorithm:error:"), algorithm, objc.Ptr(error)) + return rv +} + +// Returns a new data object by compressing the data object’s bytes. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsdata/3174960-compresseddatausingalgorithm?language=objc +func Data_CompressedDataUsingAlgorithmError(algorithm DataCompressionAlgorithm, error IError) Data { + instance := DataClass.Alloc().CompressedDataUsingAlgorithmError(algorithm, error) instance.Autorelease() return instance } -func (dc _DataClass) DataWithBytesLength(bytes unsafe.Pointer, length uint) Data { - rv := objc.Call[Data](dc, objc.Sel("dataWithBytes:length:"), bytes, length) +func (d_ Data) DecompressedDataUsingAlgorithmError(algorithm DataCompressionAlgorithm, error IError) Data { + rv := objc.Call[Data](d_, objc.Sel("decompressedDataUsingAlgorithm:error:"), algorithm, objc.Ptr(error)) return rv } -// Creates a data object containing a given number of bytes copied from a given buffer. [Full Topic] +// Returns a new data object by decompressing data object’s bytes. [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/3174961-decompresseddatausingalgorithm?language=objc +func Data_DecompressedDataUsingAlgorithmError(algorithm DataCompressionAlgorithm, error IError) Data { + instance := DataClass.Alloc().DecompressedDataUsingAlgorithmError(algorithm, error) + instance.Autorelease() + return instance } func (dc _DataClass) Alloc() Data { @@ -248,10 +343,6 @@ func (dc _DataClass) Alloc() Data { return rv } -func Data_Alloc() Data { - return DataClass.Alloc() -} - func (dc _DataClass) New() Data { rv := objc.Call[Data](dc, objc.Sel("new")) rv.Autorelease() @@ -267,12 +358,11 @@ func (d_ Data) Init() Data { return rv } -// Writes the data object’s bytes to the file specified by a given path. [Full Topic] +// Copies a range of bytes from the data object into a given buffer. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsdata/1414800-writetofile?language=objc -func (d_ Data) WriteToFileOptionsError(path string, writeOptionsMask DataWritingOptions, errorPtr IError) bool { - rv := objc.Call[bool](d_, objc.Sel("writeToFile:options:error:"), path, writeOptionsMask, objc.Ptr(errorPtr)) - return rv +// [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_) } // Returns a new data object containing the data object's bytes that fall within the limits specified by a given range. [Full Topic] @@ -283,6 +373,22 @@ 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 IError) bool { + rv := objc.Call[bool](d_, objc.Sel("writeToURL:options:error:"), objc.Ptr(url), writeOptionsMask, objc.Ptr(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 @@ -291,6 +397,14 @@ 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:"), objc.Ptr(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 @@ -307,12 +421,11 @@ func (d_ Data) Base64EncodedStringWithOptions(options DataBase64EncodingOptions) 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) } // Copies a number of bytes from the start of the data object into a given buffer. [Full Topic] @@ -322,19 +435,20 @@ 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 location specified by a given URL. [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/1415134-writetourl?language=objc -func (d_ Data) WriteToURLAtomically(url IURL, atomically bool) bool { - rv := objc.Call[bool](d_, objc.Sel("writeToURL:atomically:"), objc.Ptr(url), atomically) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsdata/1414800-writetofile?language=objc +func (d_ Data) WriteToFileOptionsError(path string, writeOptionsMask DataWritingOptions, errorPtr IError) bool { + rv := objc.Call[bool](d_, objc.Sel("writeToFile:options:error:"), path, writeOptionsMask, objc.Ptr(errorPtr)) 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 } // 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/data_detector.gen.go b/macos/foundation/data_detector.gen.go index ac6bb6c0..2708683c 100644 --- a/macos/foundation/data_detector.gen.go +++ b/macos/foundation/data_detector.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package foundation @@ -53,10 +53,6 @@ func (dc _DataDetectorClass) Alloc() DataDetector { return rv } -func DataDetector_Alloc() DataDetector { - return DataDetectorClass.Alloc() -} - func (dc _DataDetectorClass) New() DataDetector { rv := objc.Call[DataDetector](dc, objc.Sel("new")) rv.Autorelease() diff --git a/macos/foundation/date.gen.go b/macos/foundation/date.gen.go index 9d14204a..0ee816b1 100644 --- a/macos/foundation/date.gen.go +++ b/macos/foundation/date.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package foundation @@ -19,15 +19,14 @@ type _DateClass struct { type IDate interface { objc.IObject TimeIntervalSinceDate(anotherDate IDate) TimeInterval - DescriptionWithLocale(locale objc.IObject) string - IsEqualToDate(otherDate IDate) bool + EarlierDate(anotherDate IDate) Date LaterDate(anotherDate IDate) Date + IsEqualToDate(otherDate IDate) bool Compare(other IDate) ComparisonResult - EarlierDate(anotherDate IDate) Date - TimeIntervalSince1970() TimeInterval + DescriptionWithLocale(locale objc.IObject) string Description() string + TimeIntervalSince1970() TimeInterval TimeIntervalSinceNow() TimeInterval - TimeIntervalSinceReferenceDate() TimeInterval } // A representation of a specific point in time, independent of any calendar or time zone. [Full Topic] @@ -43,6 +42,18 @@ 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 @@ -55,16 +66,16 @@ func Date_Date() Date { return DateClass.Date() } -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 } @@ -81,30 +92,6 @@ 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 @@ -133,18 +120,6 @@ 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, objc.Ptr(date)) return rv @@ -164,27 +139,47 @@ func (d_ Date) Init() Date { return rv } -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 } -func (dc _DateClass) Alloc() Date { - rv := objc.Call[Date](dc, objc.Sel("alloc")) +func (dc _DateClass) DateWithTimeIntervalSinceNow(secs TimeInterval) Date { + rv := objc.Call[Date](dc, objc.Sel("dateWithTimeIntervalSinceNow:"), secs) return rv } -func Date_Alloc() Date { - return DateClass.Alloc() +// 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 } func (dc _DateClass) New() Date { @@ -205,19 +200,11 @@ func (d_ Date) TimeIntervalSinceDate(anotherDate IDate) TimeInterval { 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 -} - -// Returns a Boolean value that indicates whether a given object is a date that is exactly equal the receiver. [Full Topic] +// Returns the earlier of the receiver and another given date. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsdate/1416400-isequaltodate?language=objc -func (d_ Date) IsEqualToDate(otherDate IDate) bool { - rv := objc.Call[bool](d_, objc.Sel("isEqualToDate:"), objc.Ptr(otherDate)) +// [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:"), objc.Ptr(anotherDate)) return rv } @@ -229,6 +216,14 @@ func (d_ Date) LaterDate(anotherDate IDate) Date { return rv } +// Returns a Boolean value that indicates whether a given object is a date that is exactly equal the receiver. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsdate/1416400-isequaltodate?language=objc +func (d_ Date) IsEqualToDate(otherDate IDate) bool { + rv := objc.Call[bool](d_, objc.Sel("isEqualToDate:"), objc.Ptr(otherDate)) + 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 @@ -237,14 +232,45 @@ func (d_ Date) Compare(other IDate) ComparisonResult { return rv } -// Returns the earlier 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/1412791-earlierdate?language=objc -func (d_ Date) EarlierDate(anotherDate IDate) Date { - rv := objc.Call[Date](d_, objc.Sel("earlierDate:"), objc.Ptr(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 +} + +// 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 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 +} + +// 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 (dc _DateClass) TimeIntervalSinceReferenceDate() TimeInterval { + rv := objc.Call[TimeInterval](dc, objc.Sel("timeIntervalSinceReferenceDate")) + 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 @@ -260,14 +286,6 @@ 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 @@ -283,14 +301,6 @@ 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 @@ -299,14 +309,6 @@ 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 3c8ae77d..111d12af 100644 --- a/macos/foundation/date_components.gen.go +++ b/macos/foundation/date_components.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package foundation @@ -18,45 +18,45 @@ type _DateComponentsClass struct { // An interface definition for the [DateComponents] class. type IDateComponents interface { objc.IObject - IsValidDateInCalendar(calendar ICalendar) bool ValueForComponent(unit CalendarUnit) int + IsValidDateInCalendar(calendar ICalendar) bool SetValueForComponent(value int, unit CalendarUnit) - IsValidDate() bool + 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) WeekOfYear() int SetWeekOfYear(value int) - Month() int - SetMonth(value int) - Second() int - SetSecond(value int) - Date() Date + WeekdayOrdinal() int + SetWeekdayOrdinal(value int) 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) - WeekdayOrdinal() int - SetWeekdayOrdinal(value int) - Calendar() Calendar - SetCalendar(value ICalendar) + Month() int + SetMonth(value int) + Second() int + SetSecond(value int) 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] @@ -77,10 +77,6 @@ func (dc _DateComponentsClass) Alloc() DateComponents { return rv } -func DateComponents_Alloc() DateComponents { - return DateComponentsClass.Alloc() -} - func (dc _DateComponentsClass) New() DateComponents { rv := objc.Call[DateComponents](dc, objc.Sel("new")) rv.Autorelease() @@ -96,14 +92,6 @@ func (d_ DateComponents) Init() DateComponents { 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 -func (d_ DateComponents) IsValidDateInCalendar(calendar ICalendar) bool { - rv := objc.Call[bool](d_, objc.Sel("isValidDateInCalendar:"), objc.Ptr(calendar)) - 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 @@ -112,6 +100,14 @@ func (d_ DateComponents) ValueForComponent(unit CalendarUnit) int { 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 +func (d_ DateComponents) IsValidDateInCalendar(calendar ICalendar) bool { + rv := objc.Call[bool](d_, objc.Sel("isValidDateInCalendar:"), objc.Ptr(calendar)) + 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 @@ -119,95 +115,94 @@ func (d_ DateComponents) SetValueForComponent(value int, unit CalendarUnit) { objc.Call[objc.Void](d_, objc.Sel("setValue:forComponent:"), value, unit) } -// 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 ISO 8601 week date of the year. [Full Topic] +// The number of years. [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/1412462-year?language=objc +func (d_ DateComponents) Year() int { + rv := objc.Call[int](d_, objc.Sel("year")) return rv } -// The ISO 8601 week date of the year. [Full Topic] +// The number of years. [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/1412462-year?language=objc +func (d_ DateComponents) SetYear(value int) { + objc.Call[objc.Void](d_, objc.Sel("setYear:"), value) } -// The number of months. [Full Topic] +// The time zone used to interpret the date components. [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/1408233-timezone?language=objc +func (d_ DateComponents) TimeZone() TimeZone { + rv := objc.Call[TimeZone](d_, objc.Sel("timeZone")) return rv } -// The number of months. [Full Topic] +// The time zone used to interpret the date components. [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/1408233-timezone?language=objc +func (d_ DateComponents) SetTimeZone(value ITimeZone) { + objc.Call[objc.Void](d_, objc.Sel("setTimeZone:"), objc.Ptr(value)) } -// The number of second units for the receiver. [Full Topic] +// The number of quarters. [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/1416503-quarter?language=objc +func (d_ DateComponents) Quarter() int { + rv := objc.Call[int](d_, objc.Sel("quarter")) return rv } -// The number of second units for the receiver. [Full Topic] +// The number of quarters. [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/1416503-quarter?language=objc +func (d_ DateComponents) SetQuarter(value int) { + objc.Call[objc.Void](d_, objc.Sel("setQuarter:"), value) } -// The date calculated from the current components using the stored calendar. [Full Topic] +// The calendar used to interpret the date components. [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")) +// [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 the weekdays. [Full Topic] +// The calendar used to interpret the date components. [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/1415799-calendar?language=objc +func (d_ DateComponents) SetCalendar(value ICalendar) { + objc.Call[objc.Void](d_, objc.Sel("setCalendar:"), objc.Ptr(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 number of the weekdays. [Full Topic] +// The ISO 8601 week-numbering year. [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) +// [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) } -// The number of hour units for the receiver. [Full Topic] +// The week number of the months. [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/1413168-weekofmonth?language=objc +func (d_ DateComponents) WeekOfMonth() int { + rv := objc.Call[int](d_, objc.Sel("weekOfMonth")) return rv } -// The number of hour units for the receiver. [Full Topic] +// The week number of the months. [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/1413168-weekofmonth?language=objc +func (d_ DateComponents) SetWeekOfMonth(value int) { + objc.Call[objc.Void](d_, objc.Sel("setWeekOfMonth:"), value) } // A Boolean value that indicates whether the month is a leap month. [Full Topic] @@ -225,64 +220,87 @@ func (d_ DateComponents) SetLeapMonth(value bool) { objc.Call[objc.Void](d_, objc.Sel("setLeapMonth:"), value) } -// The number of quarters. [Full Topic] +// The number of minute units for the receiver. [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/1409443-minute?language=objc +func (d_ DateComponents) Minute() int { + rv := objc.Call[int](d_, objc.Sel("minute")) return rv } -// The number of quarters. [Full Topic] +// The number of minute units for the receiver. [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/1409443-minute?language=objc +func (d_ DateComponents) SetMinute(value int) { + objc.Call[objc.Void](d_, objc.Sel("setMinute:"), value) } -// The number of years. [Full Topic] +// The ISO 8601 week date of the year. [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/1416908-weekofyear?language=objc +func (d_ DateComponents) WeekOfYear() int { + rv := objc.Call[int](d_, objc.Sel("weekOfYear")) return rv } -// The number of years. [Full Topic] +// The ISO 8601 week date of the year. [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) +// [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 week number of the months. [Full Topic] +// The ordinal number of 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/1409476-weekdayordinal?language=objc +func (d_ DateComponents) WeekdayOrdinal() int { + rv := objc.Call[int](d_, objc.Sel("weekdayOrdinal")) return rv } -// The week number of the months. [Full Topic] +// The ordinal number of weekdays. [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/1409476-weekdayordinal?language=objc +func (d_ DateComponents) SetWeekdayOrdinal(value int) { + objc.Call[objc.Void](d_, objc.Sel("setWeekdayOrdinal:"), value) } -// The time zone used to interpret the date components. [Full Topic] +// The number of the weekdays. [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/1410442-weekday?language=objc +func (d_ DateComponents) Weekday() int { + rv := objc.Call[int](d_, objc.Sel("weekday")) return rv } -// The time zone used to interpret the date components. [Full Topic] +// The number of the weekdays. [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:"), objc.Ptr(value)) +// [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] +// +// [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 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 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) SetHour(value int) { + objc.Call[objc.Void](d_, objc.Sel("setHour:"), value) } // The number of nanosecond units for the receiver. [Full Topic] @@ -300,6 +318,14 @@ 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 @@ -315,34 +341,34 @@ func (d_ DateComponents) SetDay(value int) { objc.Call[objc.Void](d_, objc.Sel("setDay:"), value) } -// The ordinal number of weekdays. [Full Topic] +// The number of months. [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/1408724-month?language=objc +func (d_ DateComponents) Month() int { + rv := objc.Call[int](d_, objc.Sel("month")) return rv } -// The ordinal number of weekdays. [Full Topic] +// The number of months. [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/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:"), objc.Ptr(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 number of eras. [Full Topic] @@ -359,33 +385,3 @@ 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 770a85a1..b8d48054 100644 --- a/macos/foundation/date_components_formatter.gen.go +++ b/macos/foundation/date_components_formatter.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package foundation @@ -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] @@ -63,10 +63,6 @@ func (dc _DateComponentsFormatterClass) Alloc() DateComponentsFormatter { return rv } -func DateComponentsFormatter_Alloc() DateComponentsFormatter { - return DateComponentsFormatterClass.Alloc() -} - func (dc _DateComponentsFormatterClass) New() DateComponentsFormatter { rv := objc.Call[DateComponentsFormatter](dc, objc.Sel("new")) rv.Autorelease() @@ -82,6 +78,14 @@ 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:"), objc.Ptr(startDate), objc.Ptr(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 @@ -113,72 +117,79 @@ func (d_ DateComponentsFormatter) StringFromDateComponents(components IDateCompo return rv } -// Returns a formatted string based on the time difference between two dates. [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/1415967-stringfromdate?language=objc -func (d_ DateComponentsFormatter) StringFromDateToDate(startDate IDate, endDate IDate) string { - rv := objc.Call[string](d_, objc.Sel("stringFromDate:toDate:"), objc.Ptr(startDate), objc.Ptr(endDate)) +// [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 formatting style for unit names. [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/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/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] +// +// [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 formatting style for unit names. [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/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/1416387-includesapproximationphrase?language=objc +func (d_ DateComponentsFormatter) SetIncludesApproximationPhrase(value bool) { + objc.Call[objc.Void](d_, objc.Sel("setIncludesApproximationPhrase:"), value) } -// A Boolean value indicating whether output strings reflect the amount of time remaining. [Full Topic] +// The default calendar to use when formatting date components. [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/1407359-calendar?language=objc +func (d_ DateComponentsFormatter) Calendar() Calendar { + rv := objc.Call[Calendar](d_, objc.Sel("calendar")) return rv } -// A Boolean value indicating whether output strings reflect the amount of time remaining. [Full Topic] +// The default calendar to use when formatting date components. [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/1407359-calendar?language=objc +func (d_ DateComponentsFormatter) SetCalendar(value ICalendar) { + objc.Call[objc.Void](d_, objc.Sel("setCalendar:"), objc.Ptr(value)) } -// A Boolean indicating whether non-integer units may be used for values. [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/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/1410216-allowedunits?language=objc +func (d_ DateComponentsFormatter) AllowedUnits() CalendarUnit { + rv := objc.Call[CalendarUnit](d_, objc.Sel("allowedUnits")) return rv } -// A Boolean indicating whether non-integer units may be used for values. [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/1413084-allowsfractionalunits?language=objc -func (d_ DateComponentsFormatter) SetAllowsFractionalUnits(value bool) { - objc.Call[objc.Void](d_, objc.Sel("setAllowsFractionalUnits:"), 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 maximum number of time units to include in the output string. [Full Topic] +// [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/2878110-referencedate?language=objc +func (d_ DateComponentsFormatter) ReferenceDate() Date { + rv := objc.Call[Date](d_, objc.Sel("referenceDate")) return rv } -// The maximum number of time units to include in the output string. [Full Topic] +// [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/2878110-referencedate?language=objc +func (d_ DateComponentsFormatter) SetReferenceDate(value IDate) { + objc.Call[objc.Void](d_, objc.Sel("setReferenceDate:"), objc.Ptr(value)) } // A Boolean value indicating whether to collapse the largest unit into smaller units when a certain threshold is met. [Full Topic] @@ -196,64 +207,64 @@ func (d_ DateComponentsFormatter) SetCollapsesLargestUnit(value bool) { objc.Call[objc.Void](d_, objc.Sel("setCollapsesLargestUnit:"), value) } -// The formatting style for units whose value is 0. [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/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/1416416-includestimeremainingphrase?language=objc +func (d_ DateComponentsFormatter) IncludesTimeRemainingPhrase() bool { + rv := objc.Call[bool](d_, objc.Sel("includesTimeRemainingPhrase")) return rv } -// The formatting style for units whose value is 0. [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/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/1416416-includestimeremainingphrase?language=objc +func (d_ DateComponentsFormatter) SetIncludesTimeRemainingPhrase(value bool) { + objc.Call[objc.Void](d_, objc.Sel("setIncludesTimeRemainingPhrase:"), value) } -// A Boolean value indicating whether the resulting phrase reflects an inexact time 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/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/1416214-maximumunitcount?language=objc +func (d_ DateComponentsFormatter) MaximumUnitCount() int { + rv := objc.Call[int](d_, objc.Sel("maximumUnitCount")) return rv } -// A Boolean value indicating whether the resulting phrase reflects an inexact time 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/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/1416214-maximumunitcount?language=objc +func (d_ DateComponentsFormatter) SetMaximumUnitCount(value int) { + objc.Call[objc.Void](d_, objc.Sel("setMaximumUnitCount:"), value) } -// The bitmask of calendrical units such as day and month to include in the output string. [Full Topic] +// The formatting style for units whose value is 0. [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/1413749-zeroformattingbehavior?language=objc +func (d_ DateComponentsFormatter) ZeroFormattingBehavior() DateComponentsFormatterZeroFormattingBehavior { + rv := objc.Call[DateComponentsFormatterZeroFormattingBehavior](d_, objc.Sel("zeroFormattingBehavior")) return rv } -// The bitmask of calendrical units such as day and month to include in the output string. [Full Topic] +// The formatting style for units whose value is 0. [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/1413749-zeroformattingbehavior?language=objc +func (d_ DateComponentsFormatter) SetZeroFormattingBehavior(value DateComponentsFormatterZeroFormattingBehavior) { + objc.Call[objc.Void](d_, objc.Sel("setZeroFormattingBehavior:"), value) } -// [Full Topic] +// The formatting style for unit names. [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/1413441-unitsstyle?language=objc +func (d_ DateComponentsFormatter) UnitsStyle() DateComponentsFormatterUnitsStyle { + rv := objc.Call[DateComponentsFormatterUnitsStyle](d_, objc.Sel("unitsStyle")) return rv } -// [Full Topic] +// The formatting style for unit names. [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:"), objc.Ptr(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) } // [Full Topic] @@ -270,18 +281,3 @@ 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:"), objc.Ptr(value)) -} diff --git a/macos/foundation/date_formatter.gen.go b/macos/foundation/date_formatter.gen.go index f47278d0..8fc2dbee 100644 --- a/macos/foundation/date_formatter.gen.go +++ b/macos/foundation/date_formatter.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package foundation @@ -18,78 +18,78 @@ type _DateFormatterClass struct { // An interface definition for the [DateFormatter] class. type IDateFormatter interface { IFormatter - DateFromString(string_ string) Date - GetObjectValueForStringRangeError(obj objc.IObject, string_ string, rangep *Range, error IError) bool 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) - MonthSymbols() []string - SetMonthSymbols(value []string) - FormatterBehavior() DateFormatterBehavior - SetFormatterBehavior(value DateFormatterBehavior) - DateFormat() string - SetDateFormat(value string) - ShortWeekdaySymbols() []string - SetShortWeekdaySymbols(value []string) + DateFromString(string_ string) Date + GetObjectValueForStringRangeError(obj objc.IObject, string_ string, rangep *Range, error IError) bool + ShortStandaloneQuarterSymbols() []string + SetShortStandaloneQuarterSymbols(value []string) + QuarterSymbols() []string + SetQuarterSymbols(value []string) Locale() Locale SetLocale(value ILocale) - EraSymbols() []string - SetEraSymbols(value []string) + StandaloneQuarterSymbols() []string + SetStandaloneQuarterSymbols(value []string) StandaloneWeekdaySymbols() []string SetStandaloneWeekdaySymbols(value []string) - DefaultDate() Date - SetDefaultDate(value IDate) - TimeZone() TimeZone - SetTimeZone(value ITimeZone) - TimeStyle() DateFormatterStyle - SetTimeStyle(value DateFormatterStyle) - VeryShortMonthSymbols() []string - SetVeryShortMonthSymbols(value []string) - QuarterSymbols() []string - SetQuarterSymbols(value []string) - ShortStandaloneQuarterSymbols() []string - SetShortStandaloneQuarterSymbols(value []string) TwoDigitStartDate() Date SetTwoDigitStartDate(value IDate) + VeryShortStandaloneWeekdaySymbols() []string + SetVeryShortStandaloneWeekdaySymbols(value []string) + 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) + DefaultDate() Date + SetDefaultDate(value IDate) AMSymbol() string SetAMSymbol(value string) - DateStyle() DateFormatterStyle - SetDateStyle(value DateFormatterStyle) - VeryShortStandaloneWeekdaySymbols() []string - SetVeryShortStandaloneWeekdaySymbols(value []string) + 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) 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) - VeryShortWeekdaySymbols() []string - SetVeryShortWeekdaySymbols(value []string) - ShortQuarterSymbols() []string - SetShortQuarterSymbols(value []string) + DateStyle() DateFormatterStyle + SetDateStyle(value DateFormatterStyle) StandaloneMonthSymbols() []string SetStandaloneMonthSymbols(value []string) - GeneratesCalendarDates() bool - SetGeneratesCalendarDates(value bool) + DoesRelativeDateFormatting() bool + SetDoesRelativeDateFormatting(value bool) + VeryShortStandaloneMonthSymbols() []string + SetVeryShortStandaloneMonthSymbols(value []string) } // A formatter that converts between dates and their textual representations. [Full Topic] @@ -110,10 +110,6 @@ func (dc _DateFormatterClass) Alloc() DateFormatter { return rv } -func DateFormatter_Alloc() DateFormatter { - return DateFormatterClass.Alloc() -} - func (dc _DateFormatterClass) New() DateFormatter { rv := objc.Call[DateFormatter](dc, objc.Sel("new")) rv.Autorelease() @@ -129,6 +125,14 @@ 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:"), objc.Ptr(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 @@ -144,19 +148,11 @@ func DateFormatter_LocalizedStringFromDateDateStyleTimeStyle(date IDate, dstyle return DateFormatterClass.LocalizedStringFromDateDateStyleTimeStyle(date, dstyle, tstyle) } -// 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 (dc _DateFormatterClass) DateFormatFromTemplateOptionsLocale(tmplate string, opts uint, locale ILocale) string { - rv := objc.Call[string](dc, objc.Sel("dateFormatFromTemplate:options:locale:"), tmplate, opts, objc.Ptr(locale)) - 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) } // Returns a date representation of a specified string that the system interprets using the receiver’s current settings. [Full Topic] @@ -175,154 +171,153 @@ func (d_ DateFormatter) GetObjectValueForStringRangeError(obj objc.IObject, stri return rv } -// Returns a string representation of a specified date that the system formats using the receiver’s current settings. [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/1415810-stringfromdate?language=objc -func (d_ DateFormatter) StringFromDate(date IDate) string { - rv := objc.Call[string](d_, objc.Sel("stringFromDate:"), objc.Ptr(date)) +// [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, objc.Ptr(locale)) return rv } -// 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 DateFormatter_DateFormatFromTemplateOptionsLocale(tmplate string, opts uint, locale ILocale) string { + return DateFormatterClass.DateFormatFromTemplateOptionsLocale(tmplate, opts, locale) } -// 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 very short month symbols for the receiver. [Full Topic] +// The quarter symbols for the receiver. [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/1417587-quartersymbols?language=objc +func (d_ DateFormatter) QuarterSymbols() []string { + rv := objc.Call[[]string](d_, objc.Sel("quarterSymbols")) return rv } -// The very short month symbols for the receiver. [Full Topic] +// The quarter symbols for the receiver. [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/1417587-quartersymbols?language=objc +func (d_ DateFormatter) SetQuarterSymbols(value []string) { + objc.Call[objc.Void](d_, objc.Sel("setQuarterSymbols:"), value) } -// The array of short standalone weekday symbols for the receiver. [Full Topic] +// The locale 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/1411973-locale?language=objc +func (d_ DateFormatter) Locale() Locale { + rv := objc.Call[Locale](d_, objc.Sel("locale")) return rv } -// The array of short standalone weekday symbols for the receiver. [Full Topic] +// The locale 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/1411973-locale?language=objc +func (d_ DateFormatter) SetLocale(value ILocale) { + objc.Call[objc.Void](d_, objc.Sel("setLocale:"), objc.Ptr(value)) } -// A Boolean value that indicates whether the receiver uses phrases such as “today” and “tomorrow” for the date component. [Full Topic] +// The standalone quarter symbols for the receiver. [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")) +// [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 } -// A Boolean value that indicates whether the receiver uses phrases such as “today” and “tomorrow” for the date component. [Full Topic] +// The standalone quarter symbols for the receiver. [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) +// [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) } -// The array of weekday symbols for the receiver. [Full Topic] +// The array of standalone weekday 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/1413618-standaloneweekdaysymbols?language=objc +func (d_ DateFormatter) StandaloneWeekdaySymbols() []string { + rv := objc.Call[[]string](d_, objc.Sel("standaloneWeekdaySymbols")) return rv } -// The array of weekday symbols for the receiver. [Full Topic] +// The array of standalone weekday 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/1413618-standaloneweekdaysymbols?language=objc +func (d_ DateFormatter) SetStandaloneWeekdaySymbols(value []string) { + objc.Call[objc.Void](d_, objc.Sel("setStandaloneWeekdaySymbols:"), value) } -// The PM symbol 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/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/1417203-twodigitstartdate?language=objc +func (d_ DateFormatter) TwoDigitStartDate() Date { + rv := objc.Call[Date](d_, objc.Sel("twoDigitStartDate")) return rv } -// The PM symbol 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/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/1417203-twodigitstartdate?language=objc +func (d_ DateFormatter) SetTwoDigitStartDate(value IDate) { + objc.Call[objc.Void](d_, objc.Sel("setTwoDigitStartDate:"), objc.Ptr(value)) } -// The standalone 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/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/1418238-veryshortstandaloneweekdaysymbol?language=objc +func (d_ DateFormatter) VeryShortStandaloneWeekdaySymbols() []string { + rv := objc.Call[[]string](d_, objc.Sel("veryShortStandaloneWeekdaySymbols")) return rv } -// The standalone 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/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/1418238-veryshortstandaloneweekdaysymbol?language=objc +func (d_ DateFormatter) SetVeryShortStandaloneWeekdaySymbols(value []string) { + objc.Call[objc.Void](d_, objc.Sel("setVeryShortStandaloneWeekdaySymbols:"), value) +} -// The month 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/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/1409266-defaultformatterbehavior?language=objc +func (dc _DateFormatterClass) DefaultFormatterBehavior() DateFormatterBehavior { + rv := objc.Call[DateFormatterBehavior](dc, objc.Sel("defaultFormatterBehavior")) return rv } -// The month 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/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/1409266-defaultformatterbehavior?language=objc +func DateFormatter_DefaultFormatterBehavior() DateFormatterBehavior { + return DateFormatterClass.DefaultFormatterBehavior() } -// 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")) - 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 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_SetDefaultFormatterBehavior(value DateFormatterBehavior) { + DateFormatterClass.SetDefaultFormatterBehavior(value) } // The date format string used by the receiver. [Full Topic] @@ -340,64 +335,79 @@ func (d_ DateFormatter) SetDateFormat(value string) { objc.Call[objc.Void](d_, objc.Sel("setDateFormat:"), value) } -// The array of short weekday 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/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/1408066-formattingcontext?language=objc +func (d_ DateFormatter) FormattingContext() FormattingContext { + rv := objc.Call[FormattingContext](d_, objc.Sel("formattingContext")) return rv } -// The array of short weekday 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/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/1408066-formattingcontext?language=objc +func (d_ DateFormatter) SetFormattingContext(value FormattingContext) { + objc.Call[objc.Void](d_, objc.Sel("setFormattingContext:"), value) } -// The locale for the receiver. [Full Topic] +// The time zone 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/1411406-timezone?language=objc +func (d_ DateFormatter) TimeZone() TimeZone { + rv := objc.Call[TimeZone](d_, objc.Sel("timeZone")) return rv } -// The locale for the receiver. [Full Topic] +// The time zone 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:"), objc.Ptr(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:"), objc.Ptr(value)) } -// The era symbols for the receiver. [Full Topic] +// The calendar for the receiver. [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/1413675-calendar?language=objc +func (d_ DateFormatter) Calendar() Calendar { + rv := objc.Call[Calendar](d_, objc.Sel("calendar")) return rv } -// The era symbols for the receiver. [Full Topic] +// The calendar for the receiver. [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/1413675-calendar?language=objc +func (d_ DateFormatter) SetCalendar(value ICalendar) { + objc.Call[objc.Void](d_, objc.Sel("setCalendar:"), objc.Ptr(value)) } -// The array of standalone weekday symbols 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/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/1416121-shortweekdaysymbols?language=objc +func (d_ DateFormatter) ShortWeekdaySymbols() []string { + rv := objc.Call[[]string](d_, objc.Sel("shortWeekdaySymbols")) return rv } -// The array of standalone weekday symbols 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/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/1416121-shortweekdaysymbols?language=objc +func (d_ DateFormatter) SetShortWeekdaySymbols(value []string) { + objc.Call[objc.Void](d_, objc.Sel("setShortWeekdaySymbols:"), value) +} + +// Indicates whether the formatter generates the deprecated calendar date type. [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")) + return rv +} + +// Indicates whether the formatter generates the deprecated calendar date type. [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) } // The default date for the receiver. [Full Topic] @@ -415,34 +425,19 @@ func (d_ DateFormatter) SetDefaultDate(value IDate) { objc.Call[objc.Void](d_, objc.Sel("setDefaultDate:"), objc.Ptr(value)) } -// The time zone 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")) - return rv -} - -// The time zone 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:"), objc.Ptr(value)) -} - -// The time style of the receiver. [Full Topic] +// The AM symbol 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/1409506-amsymbol?language=objc +func (d_ DateFormatter) AMSymbol() string { + rv := objc.Call[string](d_, objc.Sel("AMSymbol")) return rv } -// The time style of the receiver. [Full Topic] +// The AM symbol 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/1409506-amsymbol?language=objc +func (d_ DateFormatter) SetAMSymbol(value string) { + objc.Call[objc.Void](d_, objc.Sel("setAMSymbol:"), value) } // The very short month symbols for the receiver. [Full Topic] @@ -460,198 +455,199 @@ func (d_ DateFormatter) SetVeryShortMonthSymbols(value []string) { objc.Call[objc.Void](d_, objc.Sel("setVeryShortMonthSymbols:"), value) } -// The quarter symbols for the receiver. [Full Topic] +// The 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/1412049-monthsymbols?language=objc +func (d_ DateFormatter) MonthSymbols() []string { + rv := objc.Call[[]string](d_, objc.Sel("monthSymbols")) return rv } -// The quarter symbols for the receiver. [Full Topic] +// The 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/1412049-monthsymbols?language=objc +func (d_ DateFormatter) SetMonthSymbols(value []string) { + objc.Call[objc.Void](d_, objc.Sel("setMonthSymbols:"), value) } -// 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 earliest date that can be denoted by a two-digit year specifier. [Full Topic] +// The era symbols 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/1418282-erasymbols?language=objc +func (d_ DateFormatter) EraSymbols() []string { + rv := objc.Call[[]string](d_, objc.Sel("eraSymbols")) return rv } -// The earliest date that can be denoted by a two-digit year specifier. [Full Topic] +// The era symbols 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:"), objc.Ptr(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) } -// 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) DefaultFormatterBehavior() DateFormatterBehavior { - rv := objc.Call[DateFormatterBehavior](dc, objc.Sel("defaultFormatterBehavior")) +// [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_DefaultFormatterBehavior() DateFormatterBehavior { - return DateFormatterClass.DefaultFormatterBehavior() +// [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) } -// Returns the default formatting behavior for instances of the class. [Full Topic] +// The array of very short weekday symbols 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/1415109-veryshortweekdaysymbols?language=objc +func (d_ DateFormatter) VeryShortWeekdaySymbols() []string { + rv := objc.Call[[]string](d_, objc.Sel("veryShortWeekdaySymbols")) + return rv } -// Returns the default formatting behavior for instances of the class. [Full Topic] +// The array of very short weekday symbols 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/1415109-veryshortweekdaysymbols?language=objc +func (d_ DateFormatter) SetVeryShortWeekdaySymbols(value []string) { + objc.Call[objc.Void](d_, objc.Sel("setVeryShortWeekdaySymbols:"), value) } -// The capitalization formatting context used when formatting a date. [Full Topic] +// The long era symbols for the receiver [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")) +// [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 capitalization formatting context used when formatting a date. [Full Topic] +// The long era symbols for the receiver [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) +// [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 AM symbol for the receiver. [Full Topic] +// The short standalone month symbols 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/1414771-shortstandalonemonthsymbols?language=objc +func (d_ DateFormatter) ShortStandaloneMonthSymbols() []string { + rv := objc.Call[[]string](d_, objc.Sel("shortStandaloneMonthSymbols")) return rv } -// The AM symbol for the receiver. [Full Topic] +// The short standalone month symbols 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/1414771-shortstandalonemonthsymbols?language=objc +func (d_ DateFormatter) SetShortStandaloneMonthSymbols(value []string) { + objc.Call[objc.Void](d_, objc.Sel("setShortStandaloneMonthSymbols:"), value) } -// The date style of the receiver. [Full Topic] +// The PM symbol 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/1412367-pmsymbol?language=objc +func (d_ DateFormatter) PMSymbol() string { + rv := objc.Call[string](d_, objc.Sel("PMSymbol")) return rv } -// The date style of the receiver. [Full Topic] +// The PM symbol 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/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 short 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/1409851-shortquartersymbols?language=objc +func (d_ DateFormatter) ShortQuarterSymbols() []string { + rv := objc.Call[[]string](d_, objc.Sel("shortQuarterSymbols")) return rv } -// The array of very short standalone weekday symbols for the receiver. [Full Topic] +// The short 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/1409851-shortquartersymbols?language=objc +func (d_ DateFormatter) SetShortQuarterSymbols(value []string) { + objc.Call[objc.Void](d_, objc.Sel("setShortQuarterSymbols:"), value) } -// The short standalone month 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/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/1412405-weekdaysymbols?language=objc +func (d_ DateFormatter) WeekdaySymbols() []string { + rv := objc.Call[[]string](d_, objc.Sel("weekdaySymbols")) return rv } -// The short standalone month 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/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/1412405-weekdaysymbols?language=objc +func (d_ DateFormatter) SetWeekdaySymbols(value []string) { + objc.Call[objc.Void](d_, objc.Sel("setWeekdaySymbols:"), value) } -// The start date of the Gregorian calendar 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/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/1409119-shortstandaloneweekdaysymbols?language=objc +func (d_ DateFormatter) ShortStandaloneWeekdaySymbols() []string { + rv := objc.Call[[]string](d_, objc.Sel("shortStandaloneWeekdaySymbols")) return rv } -// The start date of the Gregorian calendar 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/1416389-gregorianstartdate?language=objc -func (d_ DateFormatter) SetGregorianStartDate(value IDate) { - objc.Call[objc.Void](d_, objc.Sel("setGregorianStartDate:"), objc.Ptr(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 calendar for the receiver. [Full Topic] +// The time style of 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/1413467-timestyle?language=objc +func (d_ DateFormatter) TimeStyle() DateFormatterStyle { + rv := objc.Call[DateFormatterStyle](d_, objc.Sel("timeStyle")) return rv } -// The calendar for the receiver. [Full Topic] +// The time style of 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:"), objc.Ptr(value)) +// [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 long era 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/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/1416389-gregorianstartdate?language=objc +func (d_ DateFormatter) GregorianStartDate() Date { + rv := objc.Call[Date](d_, objc.Sel("gregorianStartDate")) return rv } -// The long era 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/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/1416389-gregorianstartdate?language=objc +func (d_ DateFormatter) SetGregorianStartDate(value IDate) { + objc.Call[objc.Void](d_, objc.Sel("setGregorianStartDate:"), objc.Ptr(value)) } // The array of short month symbols for the receiver. [Full Topic] @@ -669,34 +665,19 @@ func (d_ DateFormatter) SetShortMonthSymbols(value []string) { objc.Call[objc.Void](d_, objc.Sel("setShortMonthSymbols:"), value) } -// The array of very short weekday symbols for the receiver. [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 -} - -// The array of very short weekday symbols for the receiver. [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) -} - -// The short quarter symbols for the receiver. [Full Topic] +// The date style of 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/1415411-datestyle?language=objc +func (d_ DateFormatter) DateStyle() DateFormatterStyle { + rv := objc.Call[DateFormatterStyle](d_, objc.Sel("dateStyle")) return rv } -// The short quarter symbols for the receiver. [Full Topic] +// The date style of 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/1415411-datestyle?language=objc +func (d_ DateFormatter) SetDateStyle(value DateFormatterStyle) { + objc.Call[objc.Void](d_, objc.Sel("setDateStyle:"), value) } // The standalone month symbols for the receiver. [Full Topic] @@ -714,17 +695,32 @@ func (d_ DateFormatter) SetStandaloneMonthSymbols(value []string) { objc.Call[objc.Void](d_, objc.Sel("setStandaloneMonthSymbols:"), value) } -// Indicates whether the formatter generates the deprecated calendar date type. [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/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/1415848-doesrelativedateformatting?language=objc +func (d_ DateFormatter) DoesRelativeDateFormatting() bool { + rv := objc.Call[bool](d_, objc.Sel("doesRelativeDateFormatting")) return rv } -// Indicates whether the formatter generates the deprecated calendar date type. [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/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/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] +// +// [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 very short month symbols for the receiver. [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) } diff --git a/macos/foundation/date_interval.gen.go b/macos/foundation/date_interval.gen.go index b3bfd0ed..04e91489 100644 --- a/macos/foundation/date_interval.gen.go +++ b/macos/foundation/date_interval.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package foundation @@ -18,14 +18,14 @@ type _DateIntervalClass struct { // An interface definition for the [DateInterval] class. type IDateInterval interface { objc.IObject - IsEqualToDateInterval(dateInterval IDateInterval) bool - IntersectionWithDateInterval(dateInterval IDateInterval) DateInterval + Compare(dateInterval IDateInterval) ComparisonResult ContainsDate(date IDate) bool IntersectsDateInterval(dateInterval IDateInterval) bool - Compare(dateInterval IDateInterval) ComparisonResult - StartDate() Date + IsEqualToDateInterval(dateInterval IDateInterval) bool + IntersectionWithDateInterval(dateInterval IDateInterval) DateInterval Duration() TimeInterval EndDate() Date + StartDate() Date } // An object representing the span of time between a specific start date and end date. [Full Topic] @@ -60,13 +60,23 @@ func (d_ DateInterval) Init() DateInterval { return rv } -func (dc _DateIntervalClass) Alloc() DateInterval { - rv := objc.Call[DateInterval](dc, objc.Sel("alloc")) +func (d_ DateInterval) InitWithStartDateDuration(startDate IDate, duration TimeInterval) DateInterval { + rv := objc.Call[DateInterval](d_, objc.Sel("initWithStartDate:duration:"), objc.Ptr(startDate), duration) return rv } -func DateInterval_Alloc() DateInterval { - return DateIntervalClass.Alloc() +// 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 } func (dc _DateIntervalClass) New() DateInterval { @@ -79,19 +89,11 @@ func NewDateInterval() DateInterval { return DateIntervalClass.New() } -// Indicates whether the receiver is equal to 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:"), objc.Ptr(dateInterval)) - return rv -} - -// Returns the intersection between the receiver and 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/1641645-intersectionwithdateinterval?language=objc -func (d_ DateInterval) IntersectionWithDateInterval(dateInterval IDateInterval) DateInterval { - rv := objc.Call[DateInterval](d_, objc.Sel("intersectionWithDateInterval:"), objc.Ptr(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:"), objc.Ptr(dateInterval)) return rv } @@ -111,19 +113,19 @@ func (d_ DateInterval) IntersectsDateInterval(dateInterval IDateInterval) bool { return rv } -// 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:"), objc.Ptr(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:"), objc.Ptr(dateInterval)) return rv } -// The start date of the date interval. [Full Topic] +// Returns the intersection between the receiver and the specified 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")) +// [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:"), objc.Ptr(dateInterval)) return rv } @@ -142,3 +144,11 @@ 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 54b0f1a4..c8c1a6f9 100644 --- a/macos/foundation/date_interval_formatter.gen.go +++ b/macos/foundation/date_interval_formatter.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package foundation @@ -18,20 +18,20 @@ type _DateIntervalFormatterClass struct { // An interface definition for the [DateIntervalFormatter] class. type IDateIntervalFormatter interface { IFormatter - StringFromDateInterval(dateInterval IDateInterval) string StringFromDateToDate(fromDate IDate, toDate IDate) string - Locale() Locale - SetLocale(value ILocale) + StringFromDateInterval(dateInterval IDateInterval) string TimeZone() TimeZone SetTimeZone(value ITimeZone) - TimeStyle() DateIntervalFormatterStyle - SetTimeStyle(value DateIntervalFormatterStyle) + DateTemplate() string + SetDateTemplate(value string) + Locale() Locale + SetLocale(value ILocale) DateStyle() DateIntervalFormatterStyle SetDateStyle(value DateIntervalFormatterStyle) Calendar() Calendar SetCalendar(value ICalendar) - DateTemplate() string - SetDateTemplate(value string) + TimeStyle() DateIntervalFormatterStyle + SetTimeStyle(value DateIntervalFormatterStyle) } // A formatter that creates string representations of time intervals. [Full Topic] @@ -52,10 +52,6 @@ func (dc _DateIntervalFormatterClass) Alloc() DateIntervalFormatter { return rv } -func DateIntervalFormatter_Alloc() DateIntervalFormatter { - return DateIntervalFormatterClass.Alloc() -} - func (dc _DateIntervalFormatterClass) New() DateIntervalFormatter { rv := objc.Call[DateIntervalFormatter](dc, objc.Sel("new")) rv.Autorelease() @@ -71,14 +67,6 @@ 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:"), objc.Ptr(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 @@ -87,21 +75,14 @@ func (d_ DateIntervalFormatter) StringFromDateToDate(fromDate IDate, toDate IDat return rv } -// The locale to use when formatting date and time values. [Full Topic] +// [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/1642848-stringfromdateinterval?language=objc +func (d_ DateIntervalFormatter) StringFromDateInterval(dateInterval IDateInterval) string { + rv := objc.Call[string](d_, objc.Sel("stringFromDateInterval:"), objc.Ptr(dateInterval)) 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:"), objc.Ptr(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 @@ -117,19 +98,34 @@ func (d_ DateIntervalFormatter) SetTimeZone(value ITimeZone) { objc.Call[objc.Void](d_, objc.Sel("setTimeZone:"), objc.Ptr(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) +} + +// 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) 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:"), objc.Ptr(value)) } // The style to use when formatting day, month, and year information. [Full Topic] @@ -162,17 +158,17 @@ func (d_ DateIntervalFormatter) SetCalendar(value ICalendar) { objc.Call[objc.Void](d_, objc.Sel("setCalendar:"), objc.Ptr(value)) } -// The template for formatting one date and time value. [Full Topic] +// The style to use when formatting hour, minute, and second information. [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")) +// [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 template for formatting one date and time value. [Full Topic] +// The style to use when formatting hour, minute, and second information. [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) +// [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) } diff --git a/macos/foundation/decimal_number.gen.go b/macos/foundation/decimal_number.gen.go index 22cc4816..21a2cf4c 100644 --- a/macos/foundation/decimal_number.gen.go +++ b/macos/foundation/decimal_number.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package foundation @@ -18,15 +18,23 @@ type _DecimalNumberClass struct { // An interface definition for the [DecimalNumber] class. type IDecimalNumber interface { INumber - DecimalNumberByMultiplyingByWithBehavior(decimalNumber IDecimalNumber, behavior PDecimalNumberBehaviors) DecimalNumber - DecimalNumberByMultiplyingByWithBehaviorObject(decimalNumber IDecimalNumber, behaviorObject objc.IObject) DecimalNumber + DecimalNumberBySubtractingWithBehavior(decimalNumber IDecimalNumber, behavior PDecimalNumberBehaviors) DecimalNumber + DecimalNumberBySubtractingWithBehaviorObject(decimalNumber IDecimalNumber, behaviorObject objc.IObject) DecimalNumber + DecimalNumberByDividingBy(decimalNumber IDecimalNumber) DecimalNumber DecimalNumberByRoundingAccordingToBehavior(behavior PDecimalNumberBehaviors) DecimalNumber DecimalNumberByRoundingAccordingToBehaviorObject(behaviorObject objc.IObject) DecimalNumber DecimalNumberBySubtracting(decimalNumber IDecimalNumber) DecimalNumber - DecimalNumberByMultiplyingByPowerOf10WithBehavior(power int, behavior PDecimalNumberBehaviors) DecimalNumber - DecimalNumberByMultiplyingByPowerOf10WithBehaviorObject(power int, behaviorObject objc.IObject) 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 DecimalNumberByDividingByWithBehavior(decimalNumber IDecimalNumber, behavior PDecimalNumberBehaviors) DecimalNumber DecimalNumberByDividingByWithBehaviorObject(decimalNumber IDecimalNumber, behaviorObject objc.IObject) DecimalNumber DecimalNumberByRaisingToPower(power uint) DecimalNumber @@ -45,16 +53,16 @@ func DecimalNumberFrom(ptr unsafe.Pointer) DecimalNumber { } } -func (d_ DecimalNumber) InitWithString(numberValue string) DecimalNumber { - rv := objc.Call[DecimalNumber](d_, objc.Sel("initWithString:"), numberValue) +func (d_ DecimalNumber) InitWithStringLocale(numberValue string, locale objc.IObject) DecimalNumber { + rv := objc.Call[DecimalNumber](d_, objc.Sel("initWithString:locale:"), numberValue, locale) return rv } -// Initializes a decimal number so that its value is equivalent to that in a given numeric string. [Full Topic] +// Initializes a decimal number so that its 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/1409902-initwithstring?language=objc -func NewDecimalNumberWithString(numberValue string) DecimalNumber { - instance := DecimalNumberClass.Alloc().InitWithString(numberValue) +// [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) instance.Autorelease() return instance } @@ -87,13 +95,23 @@ func NewDecimalNumberWithMantissaExponentIsNegative(mantissa int64, exponent int return instance } -func (dc _DecimalNumberClass) Alloc() DecimalNumber { - rv := objc.Call[DecimalNumber](dc, objc.Sel("alloc")) +func (d_ DecimalNumber) InitWithString(numberValue string) DecimalNumber { + rv := objc.Call[DecimalNumber](d_, objc.Sel("initWithString:"), numberValue) return rv } -func DecimalNumber_Alloc() DecimalNumber { - return DecimalNumberClass.Alloc() +// 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 } func (dc _DecimalNumberClass) New() DecimalNumber { @@ -125,48 +143,61 @@ func NewDecimalNumberWithBytesObjCType(value unsafe.Pointer, type_ *uint8) Decim return instance } -// Multiplies this number by another given number using the specified behavior. [Full Topic] +// 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/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("decimalNumberByMultiplyingBy:withBehavior:"), objc.Ptr(decimalNumber), po1) +// [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 } -// Multiplies this number by another given number using the specified behavior. [Full Topic] +// 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/1414874-decimalnumberbymultiplyingby?language=objc -func (d_ DecimalNumber) DecimalNumberByMultiplyingByWithBehaviorObject(decimalNumber IDecimalNumber, behaviorObject objc.IObject) DecimalNumber { - rv := objc.Call[DecimalNumber](d_, objc.Sel("decimalNumberByMultiplyingBy:withBehavior:"), objc.Ptr(decimalNumber), objc.Ptr(behaviorObject)) +// [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] +// +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsdecimalnumber/1409890-decimalnumberbysubtracting?language=objc +func (d_ DecimalNumber) DecimalNumberBySubtractingWithBehavior(decimalNumber IDecimalNumber, behavior PDecimalNumberBehaviors) DecimalNumber { + po1 := objc.WrapAsProtocol("NSDecimalNumberBehaviors", behavior) + rv := objc.Call[DecimalNumber](d_, objc.Sel("decimalNumberBySubtracting:withBehavior:"), objc.Ptr(decimalNumber), po1) return rv } -// Returns a rounded version of the decimal number using the specified rounding behavior. [Full Topic] +// Subtracts this a given number from this one using the specified 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) +// [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:"), objc.Ptr(decimalNumber), objc.Ptr(behaviorObject)) return rv } -// Returns a rounded version of the decimal number using the specified rounding behavior. [Full Topic] +// Divides the number by another given number. [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:"), objc.Ptr(behaviorObject)) +// [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:"), objc.Ptr(decimalNumber)) 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:"), objc.Ptr(decimalNumber)) +// [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 } +// 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/1578294-decimalnumberwithmantissa?language=objc +func DecimalNumber_DecimalNumberWithMantissaExponentIsNegative(mantissa int64, exponent int, flag bool) DecimalNumber { + return DecimalNumberClass.DecimalNumberWithMantissaExponentIsNegative(mantissa, exponent, flag) +} + // Creates and returns a decimal number equivalent to a given decimal structure. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/foundation/nsdecimalnumber/1578293-decimalnumberwithdecimal?language=objc @@ -182,19 +213,29 @@ func DecimalNumber_DecimalNumberWithDecimal(dcm Decimal) DecimalNumber { return DecimalNumberClass.DecimalNumberWithDecimal(dcm) } -// 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) 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 DecimalNumber_DecimalNumberWithMantissaExponentIsNegative(mantissa int64, exponent int, flag bool) DecimalNumber { - return DecimalNumberClass.DecimalNumberWithMantissaExponentIsNegative(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:"), objc.Ptr(behaviorObject)) + return rv +} + +// Subtracts another given number from this one. [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:"), objc.Ptr(decimalNumber)) + return rv } // Creates a decimal number whose value is equivalent to that in a given numeric string. [Full Topic] @@ -212,20 +253,28 @@ func DecimalNumber_DecimalNumberWithString(numberValue string) DecimalNumber { return DecimalNumberClass.DecimalNumberWithString(numberValue) } -// Multiplies the number by 10 raised to the given power using the specified behavior. [Full Topic] +// Multiplies the number by 10 raised to the given power. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsdecimalnumber/1414279-decimalnumberbymultiplyingbypowe?language=objc -func (d_ DecimalNumber) DecimalNumberByMultiplyingByPowerOf10WithBehavior(power int, behavior PDecimalNumberBehaviors) DecimalNumber { +// [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("decimalNumberByMultiplyingByPowerOf10:withBehavior:"), power, po1) + rv := objc.Call[DecimalNumber](d_, objc.Sel("decimalNumberByRaisingToPower:withBehavior:"), power, po1) return rv } -// Multiplies the number by 10 raised to the given power using the specified behavior. [Full Topic] +// Raises the number to a given power using the specified behavior. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsdecimalnumber/1414279-decimalnumberbymultiplyingbypowe?language=objc -func (d_ DecimalNumber) DecimalNumberByMultiplyingByPowerOf10WithBehaviorObject(power int, behaviorObject objc.IObject) DecimalNumber { - rv := objc.Call[DecimalNumber](d_, objc.Sel("decimalNumberByMultiplyingByPowerOf10:withBehavior:"), power, objc.Ptr(behaviorObject)) +// [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, objc.Ptr(behaviorObject)) return rv } @@ -246,6 +295,56 @@ func (d_ DecimalNumber) DecimalNumberByAddingWithBehaviorObject(decimalNumber ID 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:"), objc.Ptr(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:"), objc.Ptr(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 +func (d_ DecimalNumber) DecimalNumberByMultiplyingByPowerOf10WithBehavior(power int, behavior PDecimalNumberBehaviors) DecimalNumber { + po1 := objc.WrapAsProtocol("NSDecimalNumberBehaviors", behavior) + rv := objc.Call[DecimalNumber](d_, objc.Sel("decimalNumberByMultiplyingByPowerOf10:withBehavior:"), power, po1) + 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 +func (d_ DecimalNumber) DecimalNumberByMultiplyingByPowerOf10WithBehaviorObject(power int, behaviorObject objc.IObject) DecimalNumber { + rv := objc.Call[DecimalNumber](d_, objc.Sel("decimalNumberByMultiplyingByPowerOf10:withBehavior:"), power, objc.Ptr(behaviorObject)) + return rv +} + +// Multiplies this number by 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 { + po1 := objc.WrapAsProtocol("NSDecimalNumberBehaviors", behavior) + rv := objc.Call[DecimalNumber](d_, objc.Sel("decimalNumberByMultiplyingBy:withBehavior:"), objc.Ptr(decimalNumber), po1) + return rv +} + +// Multiplies this number by 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:"), objc.Ptr(decimalNumber), objc.Ptr(behaviorObject)) + return rv +} + // Divides this number by another given number using the specified behavior. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/foundation/nsdecimalnumber/1415619-decimalnumberbydividingby?language=objc @@ -286,19 +385,19 @@ func DecimalNumber_MaximumDecimalNumber() DecimalNumber { return DecimalNumberClass.MaximumDecimalNumber() } -// A decimal number equivalent to the number 0.0. [Full Topic] +// Returns the smallest possible value of a decimal number. [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")) +// [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 } -// A decimal number equivalent to the number 0.0. [Full Topic] +// Returns the smallest possible value of a decimal number. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsdecimalnumber/1413127-zero?language=objc -func DecimalNumber_Zero() DecimalNumber { - return DecimalNumberClass.Zero() +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsdecimalnumber/1413371-minimumdecimalnumber?language=objc +func DecimalNumber_MinimumDecimalNumber() DecimalNumber { + return DecimalNumberClass.MinimumDecimalNumber() } // A decimal number equivalent to the number 1.0. [Full Topic] @@ -316,48 +415,18 @@ 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 -func (dc _DecimalNumberClass) DefaultBehavior() DecimalNumberBehaviorsWrapper { - rv := objc.Call[DecimalNumberBehaviorsWrapper](dc, objc.Sel("defaultBehavior")) +func (dc _DecimalNumberClass) DefaultBehavior() DecimalNumberBehaviorsObject { + rv := objc.Call[DecimalNumberBehaviorsObject](dc, objc.Sel("defaultBehavior")) return rv } // 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 -func DecimalNumber_DefaultBehavior() DecimalNumberBehaviorsWrapper { +func DecimalNumber_DefaultBehavior() DecimalNumberBehaviorsObject { return DecimalNumberClass.DefaultBehavior() } @@ -375,3 +444,33 @@ 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.gen.go b/macos/foundation/decimal_number_behaviors_protocol.gen.go similarity index 68% rename from macos/foundation/decimal_number_behaviors.gen.go rename to macos/foundation/decimal_number_behaviors_protocol.gen.go index 5952f53d..65278174 100644 --- a/macos/foundation/decimal_number_behaviors.gen.go +++ b/macos/foundation/decimal_number_behaviors_protocol.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package foundation @@ -14,52 +14,55 @@ type PDecimalNumberBehaviors interface { Scale() int HasScale() bool - // optional - ExceptionDuringOperationErrorLeftOperandRightOperand(operation objc.Selector, error CalculationError, leftOperand DecimalNumber, rightOperand DecimalNumber) IDecimalNumber - HasExceptionDuringOperationErrorLeftOperandRightOperand() bool - // optional RoundingMode() RoundingMode HasRoundingMode() bool + + // optional + ExceptionDuringOperationErrorLeftOperandRightOperand(operation objc.Selector, error CalculationError, leftOperand DecimalNumber, rightOperand DecimalNumber) DecimalNumber + HasExceptionDuringOperationErrorLeftOperandRightOperand() bool } -// A concrete type wrapper for the [PDecimalNumberBehaviors] protocol. -type DecimalNumberBehaviorsWrapper struct { +// ensure impl type implements protocol interface +var _ PDecimalNumberBehaviors = (*DecimalNumberBehaviorsObject)(nil) + +// A concrete type for the [PDecimalNumberBehaviors] protocol. +type DecimalNumberBehaviorsObject struct { objc.Object } -func (d_ DecimalNumberBehaviorsWrapper) HasScale() bool { +func (d_ DecimalNumberBehaviorsObject) HasScale() bool { return d_.RespondsToSelector(objc.Sel("scale")) } // Returns the number of digits allowed after the decimal separator. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/foundation/nsdecimalnumberbehaviors/1411642-scale?language=objc -func (d_ DecimalNumberBehaviorsWrapper) Scale() int { +func (d_ DecimalNumberBehaviorsObject) Scale() int { rv := objc.Call[int](d_, objc.Sel("scale")) return rv } -func (d_ DecimalNumberBehaviorsWrapper) HasExceptionDuringOperationErrorLeftOperandRightOperand() bool { - return d_.RespondsToSelector(objc.Sel("exceptionDuringOperation:error:leftOperand:rightOperand:")) +func (d_ DecimalNumberBehaviorsObject) HasRoundingMode() bool { + return d_.RespondsToSelector(objc.Sel("roundingMode")) } -// Specifies what an NSDecimalNumber object will do when it encounters an error. [Full Topic] +// Returns the way that NSDecimalNumber's decimalNumberBy... methods round their return values. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsdecimalnumberbehaviors/1411766-exceptionduringoperation?language=objc -func (d_ DecimalNumberBehaviorsWrapper) ExceptionDuringOperationErrorLeftOperandRightOperand(operation objc.Selector, error CalculationError, leftOperand IDecimalNumber, rightOperand IDecimalNumber) DecimalNumber { - rv := objc.Call[DecimalNumber](d_, objc.Sel("exceptionDuringOperation:error:leftOperand:rightOperand:"), operation, error, objc.Ptr(leftOperand), objc.Ptr(rightOperand)) +// [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_ DecimalNumberBehaviorsWrapper) HasRoundingMode() bool { - return d_.RespondsToSelector(objc.Sel("roundingMode")) +func (d_ DecimalNumberBehaviorsObject) HasExceptionDuringOperationErrorLeftOperandRightOperand() bool { + return d_.RespondsToSelector(objc.Sel("exceptionDuringOperation:error:leftOperand:rightOperand:")) } -// Returns the way that NSDecimalNumber's decimalNumberBy... methods round their return values. [Full Topic] +// Specifies what an NSDecimalNumber object will do when it encounters an error. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsdecimalnumberbehaviors/1409414-roundingmode?language=objc -func (d_ DecimalNumberBehaviorsWrapper) RoundingMode() RoundingMode { - rv := objc.Call[RoundingMode](d_, objc.Sel("roundingMode")) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsdecimalnumberbehaviors/1411766-exceptionduringoperation?language=objc +func (d_ DecimalNumberBehaviorsObject) ExceptionDuringOperationErrorLeftOperandRightOperand(operation objc.Selector, error CalculationError, leftOperand DecimalNumber, rightOperand DecimalNumber) DecimalNumber { + rv := objc.Call[DecimalNumber](d_, objc.Sel("exceptionDuringOperation:error:leftOperand:rightOperand:"), operation, error, objc.Ptr(leftOperand), objc.Ptr(rightOperand)) return rv } diff --git a/macos/foundation/decimal_number_handler.gen.go b/macos/foundation/decimal_number_handler.gen.go index 1fbdd1db..a25b94bf 100644 --- a/macos/foundation/decimal_number_handler.gen.go +++ b/macos/foundation/decimal_number_handler.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package foundation @@ -64,10 +64,6 @@ func (dc _DecimalNumberHandlerClass) Alloc() DecimalNumberHandler { return rv } -func DecimalNumberHandler_Alloc() DecimalNumberHandler { - return DecimalNumberHandlerClass.Alloc() -} - func (dc _DecimalNumberHandlerClass) New() DecimalNumberHandler { rv := objc.Call[DecimalNumberHandler](dc, objc.Sel("new")) rv.Autorelease() diff --git a/macos/foundation/delete_command.gen.go b/macos/foundation/delete_command.gen.go index 97427062..ca3a2a4e 100644 --- a/macos/foundation/delete_command.gen.go +++ b/macos/foundation/delete_command.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package foundation @@ -39,10 +39,6 @@ func (dc _DeleteCommandClass) Alloc() DeleteCommand { return rv } -func DeleteCommand_Alloc() DeleteCommand { - return DeleteCommandClass.Alloc() -} - func (dc _DeleteCommandClass) New() DeleteCommand { rv := objc.Call[DeleteCommand](dc, objc.Sel("new")) rv.Autorelease() diff --git a/macos/foundation/dictionary.gen.go b/macos/foundation/dictionary.gen.go index c68285fb..09550ebc 100644 --- a/macos/foundation/dictionary.gen.go +++ b/macos/foundation/dictionary.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package foundation @@ -18,46 +18,48 @@ type _DictionaryClass struct { // An interface definition for the [Dictionary] class. type IDictionary interface { objc.IObject - ObjectEnumerator() Enumerator - ObjectForKey(aKey objc.IObject) objc.Object + 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 FileGroupOwnerAccountID() Number + FileModificationDate() Date FileOwnerAccountID() Number + EnumerateKeysAndObjectsUsingBlock(block func(key objc.Object, obj objc.Object, stop *bool)) + WriteToURLError(url IURL, error IError) bool + DescriptionWithLocaleIndent(locale objc.IObject, level uint) string + FileIsAppendOnly() bool + InitWithContentsOfURLError(url IURL, error IError) map[string]objc.Object ObjectsForKeysNotFoundMarker(keys []objc.IObject, marker objc.IObject) []objc.Object - FileSystemNumber() int - FileHFSCreatorCode() uint - KeysOfEntriesPassingTest(predicate func(key objc.Object, obj objc.Object, stop *bool) bool) Set - KeysSortedByValueWithOptionsUsingComparator(opts SortOptions, cmptr Comparator) []objc.Object - ObjectForKeyedSubscript(key objc.IObject) objc.Object - KeysSortedByValueUsingSelector(comparator objc.Selector) []objc.Object - FileHFSTypeCode() uint - GetObjectsAndKeysCount(objects objc.IObject, keys objc.IObject, count uint) - CountByEnumeratingWithStateObjectsCount(state *FastEnumerationState, buffer objc.IObject, len uint) uint KeysSortedByValueUsingComparator(cmptr Comparator) []objc.Object FileCreationDate() Date - FilePosixPermissions() uint - FileExtensionHidden() bool - FileType() string - FileSystemFileNumber() uint - FileIsAppendOnly() bool - FileIsImmutable() bool - FileModificationDate() Date + ValueForKey(key string) objc.Object + FileHFSCreatorCode() uint FileOwnerAccountName() string - FileSize() int64 - WriteToURLError(url IURL, error IError) 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 + GetObjectsAndKeysCount(objects objc.IObject, keys objc.IObject, count uint) + ObjectForKeyedSubscript(key objc.IObject) objc.Object + FileType() string FileGroupOwnerAccountName() string - ValueForKey(key string) objc.Object + 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)) + CountByEnumeratingWithStateObjectsCount(state *FastEnumerationState, buffer objc.IObject, len uint) uint + FilePosixPermissions() uint + FileIsImmutable() bool + FileSize() int64 AllKeysForObject(anObject objc.IObject) []objc.Object - Description() string + ObjectForKey(aKey objc.IObject) objc.Object + KeysSortedByValueWithOptionsUsingComparator(opts SortOptions, cmptr Comparator) []objc.Object Count() uint + DescriptionInStringsFileFormat() string AllValues() []objc.Object AllKeys() []objc.Object - DescriptionInStringsFileFormat() string + Description() string } // A static collection of objects associated with unique keys. [Full Topic] @@ -73,16 +75,30 @@ func DictionaryFrom(ptr unsafe.Pointer) Dictionary { } } -func (dc _DictionaryClass) DictionaryWithObjectsForKeys(objects []objc.IObject, keys []PCopying) Dictionary { - rv := objc.Call[Dictionary](dc, objc.Sel("dictionaryWithObjects:forKeys:"), objects, keys) +func (d_ Dictionary) InitWithDictionary(otherDictionary Dictionary) Dictionary { + rv := objc.Call[Dictionary](d_, objc.Sel("initWithDictionary:"), otherDictionary) return rv } -// Creates a dictionary containing entries constructed from the contents of an array of keys and an array of values. [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/1574183-dictionarywithobjects?language=objc -func Dictionary_DictionaryWithObjectsForKeys(objects []objc.IObject, keys []PCopying) Dictionary { - return DictionaryClass.DictionaryWithObjectsForKeys(objects, keys) +// [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...)...) + return rv +} + +// 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/1574181-dictionarywithobjectsandkeys?language=objc +func Dictionary_DictionaryWithObjectsAndKeys(firstObject objc.IObject, args ...any) Dictionary { + return DictionaryClass.DictionaryWithObjectsAndKeys(firstObject, args...) } func (d_ Dictionary) InitWithObjectsAndKeys(firstObject objc.IObject, args ...any) Dictionary { @@ -99,6 +115,36 @@ 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 objc.IObject, keys PCopying, cnt uint) Dictionary { + po1 := objc.WrapAsProtocol("NSCopying", keys) + rv := objc.Call[Dictionary](dc, objc.Sel("dictionaryWithObjects:forKeys:count:"), objc.Ptr(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 objc.IObject, keys PCopying, 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 @@ -113,19 +159,6 @@ func NewDictionaryWithObjectsForKeys(objects []objc.IObject, keys []PCopying) Di return instance } -func (dc _DictionaryClass) DictionaryWithObjectForKey(object objc.IObject, key PCopying) Dictionary { - po1 := objc.WrapAsProtocol("NSCopying", key) - rv := objc.Call[Dictionary](dc, objc.Sel("dictionaryWithObject:forKey:"), objc.Ptr(object), po1) - return rv -} - -// Creates a dictionary containing a given key and value. [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) -} - func (dc _DictionaryClass) Dictionary() Dictionary { rv := objc.Call[Dictionary](dc, objc.Sel("dictionary")) return rv @@ -138,16 +171,33 @@ func Dictionary_Dictionary() Dictionary { return DictionaryClass.Dictionary() } -func (dc _DictionaryClass) DictionaryWithObjectsAndKeys(firstObject objc.IObject, args ...any) Dictionary { - rv := objc.Call[Dictionary](dc, objc.Sel("dictionaryWithObjectsAndKeys:"), append([]any{firstObject}, args...)...) +func (d_ Dictionary) InitWithDictionaryCopyItems(otherDictionary Dictionary, flag bool) Dictionary { + rv := objc.Call[Dictionary](d_, objc.Sel("initWithDictionary:copyItems:"), otherDictionary, flag) return rv } -// Creates a dictionary containing entries constructed from the specified set of values and keys. [Full Topic] +// Initializes a newly allocated dictionary using the objects contained in another given dictionary. [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/1410124-initwithdictionary?language=objc +func NewDictionaryWithDictionaryCopyItems(otherDictionary Dictionary, flag bool) Dictionary { + instance := DictionaryClass.Alloc().InitWithDictionaryCopyItems(otherDictionary, flag) + instance.Autorelease() + return instance +} + +func (d_ Dictionary) InitWithObjectsForKeysCount(objects objc.IObject, keys PCopying, cnt uint) Dictionary { + po1 := objc.WrapAsProtocol("NSCopying", keys) + rv := objc.Call[Dictionary](d_, objc.Sel("initWithObjects:forKeys:count:"), objc.Ptr(objects), po1, cnt) + 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] +// +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsdictionary/1412631-initwithobjects?language=objc +func NewDictionaryWithObjectsForKeysCount(objects objc.IObject, keys PCopying, cnt uint) Dictionary { + instance := DictionaryClass.Alloc().InitWithObjectsForKeysCount(objects, keys, cnt) + instance.Autorelease() + return instance } func (dc _DictionaryClass) DictionaryWithDictionary(dict Dictionary) Dictionary { @@ -162,23 +212,17 @@ func Dictionary_DictionaryWithDictionary(dict Dictionary) Dictionary { return DictionaryClass.DictionaryWithDictionary(dict) } -func (d_ Dictionary) InitWithDictionary(otherDictionary Dictionary) Dictionary { - rv := objc.Call[Dictionary](d_, objc.Sel("initWithDictionary:"), otherDictionary) +func (dc _DictionaryClass) DictionaryWithObjectForKey(object objc.IObject, key PCopying) Dictionary { + po1 := objc.WrapAsProtocol("NSCopying", key) + rv := objc.Call[Dictionary](dc, objc.Sel("dictionaryWithObject:forKey:"), objc.Ptr(object), po1) return rv } -// Initializes a newly allocated dictionary by placing in it the keys and values contained in another given dictionary. [Full Topic] +// Creates a dictionary containing a given key and value. [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 (d_ Dictionary) Init() Dictionary { - rv := objc.Call[Dictionary](d_, objc.Sel("init")) - return rv +// [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 (dc _DictionaryClass) Alloc() Dictionary { @@ -186,10 +230,6 @@ func (dc _DictionaryClass) Alloc() Dictionary { return rv } -func Dictionary_Alloc() Dictionary { - return DictionaryClass.Alloc() -} - func (dc _DictionaryClass) New() Dictionary { rv := objc.Call[Dictionary](dc, objc.Sel("new")) rv.Autorelease() @@ -200,129 +240,145 @@ func NewDictionary() Dictionary { return DictionaryClass.New() } -// Returns an enumerator object that lets you access each value in the dictionary. [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/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/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 } -// Creates a shared key set object for the specified keys. [Full Topic] +// Returns the filesystem number. [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/1415329-filesystemnumber?language=objc +func (d_ Dictionary) FileSystemNumber() int { + rv := objc.Call[int](d_, objc.Sel("fileSystemNumber")) return rv } -// Creates a shared key set object for the specified keys. [Full Topic] +// Creates a dictionary using the keys and values found in a resource specified by a given URL. [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/2879163-dictionarywithcontentsofurl?language=objc +func (dc _DictionaryClass) DictionaryWithContentsOfURLError(url IURL, error IError) map[string]objc.Object { + rv := objc.Call[map[string]objc.Object](dc, objc.Sel("dictionaryWithContentsOfURL:error:"), objc.Ptr(url), objc.Ptr(error)) + return rv } -// Returns the value associated with a given key. [Full Topic] +// Creates a dictionary using the keys and values found in a resource specified by a given URL. [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:"), objc.Ptr(aKey)) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsdictionary/2879163-dictionarywithcontentsofurl?language=objc +func Dictionary_DictionaryWithContentsOfURLError(url IURL, error IError) map[string]objc.Object { + return DictionaryClass.DictionaryWithContentsOfURLError(url, error) +} + +// Returns file’s HFS type code. [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")) return rv } -// Returns file’s group owner account ID. [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/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/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 file’s owner account ID. [Full Topic] +// Returns a Boolean value indicating whether the file hides its extension. [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/1413177-fileextensionhidden?language=objc +func (d_ Dictionary) FileExtensionHidden() bool { + rv := objc.Call[bool](d_, objc.Sel("fileExtensionHidden")) return rv } -// Returns as a static array the set of objects from the dictionary that corresponds to the specified keys. [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/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, objc.Ptr(marker)) +// [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 the filesystem number. [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/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/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 the file’s HFS creator code. [Full Topic] +// Returns file’s group owner account ID. [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/1413626-filegroupowneraccountid?language=objc +func (d_ Dictionary) FileGroupOwnerAccountID() Number { + rv := objc.Call[Number](d_, objc.Sel("fileGroupOwnerAccountID")) return rv } -// Returns the set of keys whose corresponding value satisfies a constraint described by a block object. [Full Topic] +// Returns file’s modification date. [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/1408811-filemodificationdate?language=objc +func (d_ Dictionary) FileModificationDate() Date { + rv := objc.Call[Date](d_, objc.Sel("fileModificationDate")) 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] +// Returns the file’s owner account ID. [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/1412281-fileowneraccountid?language=objc +func (d_ Dictionary) FileOwnerAccountID() Number { + rv := objc.Call[Number](d_, objc.Sel("fileOwnerAccountID")) return rv } -// Returns the value associated with a given key. [Full Topic] +// Applies a given block object to the entries of the dictionary. [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:"), objc.Ptr(key)) +// [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] +// +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsdictionary/2879139-writetourl?language=objc +func (d_ Dictionary) WriteToURLError(url IURL, error IError) bool { + rv := objc.Call[bool](d_, objc.Sel("writeToURL:error:"), objc.Ptr(url), objc.Ptr(error)) 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 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/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/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) return rv } -// Returns file’s HFS type code. [Full Topic] +// Returns a Boolean value indicating whether the file is append only. [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/1416083-fileisappendonly?language=objc +func (d_ Dictionary) FileIsAppendOnly() bool { + rv := objc.Call[bool](d_, objc.Sel("fileIsAppendOnly")) return rv } -// Returns by reference C arrays of the keys and values in the dictionary. [Full Topic] +// Initializes a newly allocated dictionary using the keys and values found at a given URL. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsdictionary/1409973-getobjects?language=objc -func (d_ Dictionary) GetObjectsAndKeysCount(objects objc.IObject, keys objc.IObject, count uint) { - objc.Call[objc.Void](d_, objc.Sel("getObjects:andKeys:count:"), objc.Ptr(objects), objc.Ptr(keys), count) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsdictionary/2879140-initwithcontentsofurl?language=objc +func (d_ Dictionary) InitWithContentsOfURLError(url IURL, error IError) map[string]objc.Object { + rv := objc.Call[map[string]objc.Object](d_, objc.Sel("initWithContentsOfURL:error:"), objc.Ptr(url), objc.Ptr(error)) + return rv } -// Returns by reference a C array of objects over which the sender should iterate. [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/2865769-countbyenumeratingwithstate?language=objc -func (d_ Dictionary) CountByEnumeratingWithStateObjectsCount(state *FastEnumerationState, buffer objc.IObject, len uint) uint { - rv := objc.Call[uint](d_, objc.Sel("countByEnumeratingWithState:objects:count:"), state, objc.Ptr(buffer), len) +// [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, objc.Ptr(marker)) return rv } @@ -334,154 +390,153 @@ func (d_ Dictionary) KeysSortedByValueUsingComparator(cmptr Comparator) []objc.O return rv } -// Returns the file’s creation date. [Full Topic] +// Creates a shared key set object for the specified keys. [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/1408190-sharedkeysetforkeys?language=objc +func (dc _DictionaryClass) SharedKeySetForKeys(keys []PCopying) objc.Object { + rv := objc.Call[objc.Object](dc, objc.Sel("sharedKeySetForKeys:"), keys) return rv } -// Returns the file’s POSIX permissions. [Full Topic] +// Creates a shared key set object for the specified keys. [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")) - return rv +// [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 a Boolean value indicating whether the file hides its extension. [Full Topic] +// Returns the file’s creation date. [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/1417071-filecreationdate?language=objc +func (d_ Dictionary) FileCreationDate() Date { + rv := objc.Call[Date](d_, objc.Sel("fileCreationDate")) return rv } -// Returns the file type. [Full Topic] +// Returns the value associated with a given key. [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/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 filesystem file number. [Full Topic] +// Returns the file’s HFS creator code. [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")) +// [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 a Boolean value indicating whether the file is append only. [Full Topic] +// Returns the file’s owner account name. [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/1417533-fileowneraccountname?language=objc +func (d_ Dictionary) FileOwnerAccountName() string { + rv := objc.Call[string](d_, objc.Sel("fileOwnerAccountName")) return rv } -// Returns a Boolean value indicating whether the file is immutable. [Full Topic] +// Provides an enumerator to access the keys in the dictionary. [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/1411011-keyenumerator?language=objc +func (d_ Dictionary) KeyEnumerator() Enumerator { + rv := objc.Call[Enumerator](d_, objc.Sel("keyEnumerator")) return rv } -// Returns file’s modification date. [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/1408811-filemodificationdate?language=objc -func (d_ Dictionary) FileModificationDate() Date { - rv := objc.Call[Date](d_, objc.Sel("fileModificationDate")) - return rv +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsdictionary/1409973-getobjects?language=objc +func (d_ Dictionary) GetObjectsAndKeysCount(objects objc.IObject, keys objc.IObject, count uint) { + objc.Call[objc.Void](d_, objc.Sel("getObjects:andKeys:count:"), objc.Ptr(objects), objc.Ptr(keys), count) } -// Returns the file’s owner account name. [Full Topic] +// Returns the value associated with a given key. [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/1415430-objectforkeyedsubscript?language=objc +func (d_ Dictionary) ObjectForKeyedSubscript(key objc.IObject) objc.Object { + rv := objc.Call[objc.Object](d_, objc.Sel("objectForKeyedSubscript:"), objc.Ptr(key)) return rv } -// Returns the file’s size, in bytes. [Full Topic] +// Returns the file type. [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")) +// [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 } -// Writes a property list representation of the contents of the dictionary to a given URL. [Full Topic] +// Returns the file’s group owner account name. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsdictionary/2879139-writetourl?language=objc -func (d_ Dictionary) WriteToURLError(url IURL, error IError) bool { - rv := objc.Call[bool](d_, objc.Sel("writeToURL:error:"), objc.Ptr(url), objc.Ptr(error)) +// [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 } -// Provides an enumerator to access the keys in the dictionary. [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/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/1409600-objectenumerator?language=objc +func (d_ Dictionary) ObjectEnumerator() Enumerator { + rv := objc.Call[Enumerator](d_, objc.Sel("objectEnumerator")) return rv } -// Returns a string object that represents the contents of the dictionary, formatted as a property list. [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/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/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 } -// Applies a given block object to the entries of the dictionary. [Full Topic] +// Returns the filesystem file number. [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) +// [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 a Boolean value that indicates whether the contents of the receiving dictionary are equal to the contents of another given dictionary. [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/1415445-isequaltodictionary?language=objc -func (d_ Dictionary) IsEqualToDictionary(otherDictionary Dictionary) bool { - rv := objc.Call[bool](d_, objc.Sel("isEqualToDictionary:"), otherDictionary) - 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 the set of keys whose corresponding value satisfies a constraint described by a block object. [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/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) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsdictionary/2865769-countbyenumeratingwithstate?language=objc +func (d_ Dictionary) CountByEnumeratingWithStateObjectsCount(state *FastEnumerationState, buffer objc.IObject, len uint) uint { + rv := objc.Call[uint](d_, objc.Sel("countByEnumeratingWithState:objects:count:"), state, objc.Ptr(buffer), len) return rv } -// Returns the file’s group owner account name. [Full Topic] +// Returns the file’s POSIX permissions. [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/1409446-fileposixpermissions?language=objc +func (d_ Dictionary) FilePosixPermissions() uint { + rv := objc.Call[uint](d_, objc.Sel("filePosixPermissions")) return rv } -// Returns the value associated with a given key. [Full Topic] +// Returns a Boolean value indicating whether the file is immutable. [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/1416500-fileisimmutable?language=objc +func (d_ Dictionary) FileIsImmutable() bool { + rv := objc.Call[bool](d_, objc.Sel("fileIsImmutable")) return rv } -// Applies a given block object to the entries of the dictionary, with options specifying how the enumeration is performed. [Full Topic] +// Returns the file’s size, in bytes. [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/1413465-filesize?language=objc +func (d_ Dictionary) FileSize() int64 { + rv := objc.Call[int64](d_, objc.Sel("fileSize")) + return rv } // Returns a new array containing the keys corresponding to all occurrences of a given object in the dictionary. [Full Topic] @@ -492,11 +547,19 @@ func (d_ Dictionary) AllKeysForObject(anObject objc.IObject) []objc.Object { return rv } -// A string that represents the contents of the dictionary, formatted as a property list. [Full Topic] +// Returns the value associated with a given key. [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/1414347-objectforkey?language=objc +func (d_ Dictionary) ObjectForKey(aKey objc.IObject) objc.Object { + rv := objc.Call[objc.Object](d_, objc.Sel("objectForKey:"), objc.Ptr(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] +// +// [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 } @@ -508,6 +571,14 @@ 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 @@ -524,10 +595,10 @@ func (d_ Dictionary) AllKeys() []objc.Object { return rv } -// A string that represents the contents of the dictionary, formatted in .strings file format. [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/1413282-descriptioninstringsfileformat?language=objc -func (d_ Dictionary) DescriptionInStringsFileFormat() string { - rv := objc.Call[string](d_, objc.Sel("descriptionInStringsFileFormat")) +// [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 } diff --git a/macos/foundation/dimension.gen.go b/macos/foundation/dimension.gen.go index d73d6c84..c9671598 100644 --- a/macos/foundation/dimension.gen.go +++ b/macos/foundation/dimension.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package foundation @@ -34,18 +34,6 @@ 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, objc.Ptr(converter)) return rv @@ -60,13 +48,21 @@ func NewDimensionWithSymbolConverter(symbol string, converter IUnitConverter) Di return instance } -func (dc _DimensionClass) Alloc() Dimension { - rv := objc.Call[Dimension](dc, objc.Sel("alloc")) +func (dc _DimensionClass) BaseUnit() Dimension { + rv := objc.Call[Dimension](dc, objc.Sel("baseUnit")) return rv } -func Dimension_Alloc() Dimension { - return DimensionClass.Alloc() +// 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 } func (dc _DimensionClass) New() Dimension { diff --git a/macos/foundation/directory_enumerator.gen.go b/macos/foundation/directory_enumerator.gen.go index b960b48a..7bd75868 100644 --- a/macos/foundation/directory_enumerator.gen.go +++ b/macos/foundation/directory_enumerator.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package foundation @@ -18,12 +18,12 @@ type _DirectoryEnumeratorClass struct { // An interface definition for the [DirectoryEnumerator] class. type IDirectoryEnumerator interface { IEnumerator - SkipDescendents() SkipDescendants() + SkipDescendents() Level() uint IsEnumeratingDirectoryPostOrder() bool - DirectoryAttributes() map[FileAttributeKey]objc.Object FileAttributes() map[FileAttributeKey]objc.Object + DirectoryAttributes() map[FileAttributeKey]objc.Object } // An object that enumerates the contents of a directory. [Full Topic] @@ -44,10 +44,6 @@ func (dc _DirectoryEnumeratorClass) Alloc() DirectoryEnumerator { return rv } -func DirectoryEnumerator_Alloc() DirectoryEnumerator { - return DirectoryEnumeratorClass.Alloc() -} - func (dc _DirectoryEnumeratorClass) New() DirectoryEnumerator { rv := objc.Call[DirectoryEnumerator](dc, objc.Sel("new")) rv.Autorelease() @@ -65,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/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")) } // 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")) } // The number of levels deep the current object is in the directory hierarchy being enumerated. [Full Topic] @@ -93,14 +89,6 @@ func (d_ DirectoryEnumerator) IsEnumeratingDirectoryPostOrder() bool { 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 -func (d_ DirectoryEnumerator) DirectoryAttributes() map[FileAttributeKey]objc.Object { - 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 @@ -108,3 +96,11 @@ 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 +func (d_ DirectoryEnumerator) DirectoryAttributes() map[FileAttributeKey]objc.Object { + rv := objc.Call[map[FileAttributeKey]objc.Object](d_, objc.Sel("directoryAttributes")) + return rv +} diff --git a/macos/foundation/discardable_content.gen.go b/macos/foundation/discardable_content_protocol.gen.go similarity index 74% rename from macos/foundation/discardable_content.gen.go rename to macos/foundation/discardable_content_protocol.gen.go index 9fb852b2..793efac5 100644 --- a/macos/foundation/discardable_content.gen.go +++ b/macos/foundation/discardable_content_protocol.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package foundation @@ -10,6 +10,10 @@ import ( // // [Full Topic]: https://developer.apple.com/documentation/foundation/nsdiscardablecontent?language=objc type PDiscardableContent interface { + // optional + EndContentAccess() + HasEndContentAccess() bool + // optional IsContentDiscarded() bool HasIsContentDiscarded() bool @@ -18,62 +22,61 @@ type PDiscardableContent interface { DiscardContentIfPossible() HasDiscardContentIfPossible() bool - // optional - EndContentAccess() - HasEndContentAccess() bool - // optional BeginContentAccess() bool HasBeginContentAccess() bool } -// A concrete type wrapper for the [PDiscardableContent] protocol. -type DiscardableContentWrapper struct { +// ensure impl type implements protocol interface +var _ PDiscardableContent = (*DiscardableContentObject)(nil) + +// A concrete type for the [PDiscardableContent] protocol. +type DiscardableContentObject struct { objc.Object } -func (d_ DiscardableContentWrapper) HasIsContentDiscarded() bool { +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")) } // Returns a Boolean value indicating whether the content has been discarded. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/foundation/nsdiscardablecontent/1417470-iscontentdiscarded?language=objc -func (d_ DiscardableContentWrapper) IsContentDiscarded() bool { +func (d_ DiscardableContentObject) IsContentDiscarded() bool { rv := objc.Call[bool](d_, objc.Sel("isContentDiscarded")) return rv } -func (d_ DiscardableContentWrapper) HasDiscardContentIfPossible() bool { +func (d_ DiscardableContentObject) HasDiscardContentIfPossible() bool { return d_.RespondsToSelector(objc.Sel("discardContentIfPossible")) } // Called to discard the contents of the receiver if the value of the accessed counter is 0. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/foundation/nsdiscardablecontent/1408998-discardcontentifpossible?language=objc -func (d_ DiscardableContentWrapper) DiscardContentIfPossible() { +func (d_ DiscardableContentObject) DiscardContentIfPossible() { objc.Call[objc.Void](d_, objc.Sel("discardContentIfPossible")) } -func (d_ DiscardableContentWrapper) 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_ DiscardableContentWrapper) EndContentAccess() { - objc.Call[objc.Void](d_, objc.Sel("endContentAccess")) -} - -func (d_ DiscardableContentWrapper) HasBeginContentAccess() bool { +func (d_ DiscardableContentObject) HasBeginContentAccess() bool { return d_.RespondsToSelector(objc.Sel("beginContentAccess")) } // Returns a Boolean value indicating whether the discardable contents are still available and have been successfully accessed. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/foundation/nsdiscardablecontent/1412187-begincontentaccess?language=objc -func (d_ DiscardableContentWrapper) BeginContentAccess() bool { +func (d_ DiscardableContentObject) BeginContentAccess() bool { rv := objc.Call[bool](d_, objc.Sel("beginContentAccess")) return rv } diff --git a/macos/foundation/distant_object_request.gen.go b/macos/foundation/distant_object_request.gen.go index 0543c2cc..56133e8a 100644 --- a/macos/foundation/distant_object_request.gen.go +++ b/macos/foundation/distant_object_request.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package foundation @@ -38,10 +38,6 @@ func (dc _DistantObjectRequestClass) Alloc() DistantObjectRequest { return rv } -func DistantObjectRequest_Alloc() DistantObjectRequest { - return DistantObjectRequestClass.Alloc() -} - func (dc _DistantObjectRequestClass) New() DistantObjectRequest { rv := objc.Call[DistantObjectRequest](dc, objc.Sel("new")) rv.Autorelease() diff --git a/macos/foundation/distributed_lock.gen.go b/macos/foundation/distributed_lock.gen.go index caf2599b..8f178aef 100644 --- a/macos/foundation/distributed_lock.gen.go +++ b/macos/foundation/distributed_lock.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package foundation @@ -18,8 +18,8 @@ type _DistributedLockClass struct { // An interface definition for the [DistributedLock] class. type IDistributedLock interface { objc.IObject - TryLock() bool Unlock() + TryLock() bool BreakLock() LockDate() Date } @@ -56,10 +56,6 @@ func (dc _DistributedLockClass) Alloc() DistributedLock { return rv } -func DistributedLock_Alloc() DistributedLock { - return DistributedLockClass.Alloc() -} - func (dc _DistributedLockClass) New() DistributedLock { rv := objc.Call[DistributedLock](dc, objc.Sel("new")) rv.Autorelease() @@ -75,19 +71,11 @@ func (d_ DistributedLock) Init() DistributedLock { 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 (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] +// Relinquishes the receiver. [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) +// [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")) } // Attempts to acquire the receiver and immediately returns a Boolean value that indicates whether the attempt was successful. [Full Topic] @@ -98,13 +86,6 @@ 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 @@ -112,6 +93,21 @@ 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 5e04bd5e..3fe5b339 100644 --- a/macos/foundation/distributed_notification_center.gen.go +++ b/macos/foundation/distributed_notification_center.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package foundation @@ -18,7 +18,9 @@ type _DistributedNotificationCenterClass struct { // An interface definition for the [DistributedNotificationCenter] class. type IDistributedNotificationCenter interface { INotificationCenter - PostNotificationNameObject(aName NotificationName, anObject string) + 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) Suspended() bool SetSuspended(value bool) } @@ -41,10 +43,6 @@ func (dc _DistributedNotificationCenterClass) Alloc() DistributedNotificationCen return rv } -func DistributedNotificationCenter_Alloc() DistributedNotificationCenter { - return DistributedNotificationCenterClass.Alloc() -} - func (dc _DistributedNotificationCenterClass) New() DistributedNotificationCenter { rv := objc.Call[DistributedNotificationCenter](dc, objc.Sel("new")) rv.Autorelease() @@ -60,11 +58,25 @@ func (d_ DistributedNotificationCenter) Init() DistributedNotificationCenter { return rv } -// Creates a notification, and posts it to the receiver. [Full Topic] +// Creates a notification with information and an immediate-delivery specifier, 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/1410991-postnotificationname?language=objc -func (d_ DistributedNotificationCenter) PostNotificationNameObject(aName NotificationName, anObject string) { - objc.Call[objc.Void](d_, objc.Sel("postNotificationName:object:"), aName, anObject) +// [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) } // Returns the distributed notification center for a particular notification center type. [Full Topic] diff --git a/macos/foundation/doc.gen.go b/macos/foundation/doc.gen.go index 70e3b214..8a494a4d 100644 --- a/macos/foundation/doc.gen.go +++ b/macos/foundation/doc.gen.go @@ -1,8 +1,8 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. // Access essential data types, collections, and operating-system services to define the base layer of functionality for your app. // -// [Full Documentation] +// [Apple Documentation] // -// [Full Documentation]: https://developer.apple.com/documentation/foundation?language=objc +// [Apple Documentation]: https://developer.apple.com/documentation/foundation?language=objc package foundation diff --git a/macos/foundation/energy_formatter.gen.go b/macos/foundation/energy_formatter.gen.go index 87cd9cc2..98c2272f 100644 --- a/macos/foundation/energy_formatter.gen.go +++ b/macos/foundation/energy_formatter.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package foundation @@ -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 @@ -48,10 +48,6 @@ func (ec _EnergyFormatterClass) Alloc() EnergyFormatter { return rv } -func EnergyFormatter_Alloc() EnergyFormatter { - return EnergyFormatterClass.Alloc() -} - func (ec _EnergyFormatterClass) New() EnergyFormatter { rv := objc.Call[EnergyFormatter](ec, objc.Sel("new")) rv.Autorelease() @@ -67,6 +63,14 @@ 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 @@ -91,14 +95,6 @@ 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/enumerator.gen.go b/macos/foundation/enumerator.gen.go index 406ca7b8..fc0e5b91 100644 --- a/macos/foundation/enumerator.gen.go +++ b/macos/foundation/enumerator.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package foundation @@ -40,10 +40,6 @@ func (ec _EnumeratorClass) Alloc() Enumerator { return rv } -func Enumerator_Alloc() Enumerator { - return EnumeratorClass.Alloc() -} - func (ec _EnumeratorClass) New() Enumerator { rv := objc.Call[Enumerator](ec, objc.Sel("new")) rv.Autorelease() diff --git a/macos/foundation/enumtypes.gen.go b/macos/foundation/enumtypes.gen.go index c66c569e..cb134d39 100644 --- a/macos/foundation/enumtypes.gen.go +++ b/macos/foundation/enumtypes.gen.go @@ -1,8 +1,8 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package foundation -// Option flags used with beginActivityWithOptions:reason: and performActivityWithOptions:reason:usingBlock:. [Full Topic] +// Option flags used with [foundation/nsprocessinfo/beginactivitywithoptions] and [foundation/nsprocessinfo/performactivitywithoptions]. [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 indexOfObject:. [Full Topic] +// Options for searches and insertions using [foundation/nsarray/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 exceptionDuringOperation:error:leftOperand:rightOperand:. [Full Topic] +// Calculation error constants used to describe an error in [foundation/nsdecimalnumberbehaviors/exceptionduringoperation]. [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 postNotificationName:object: method. [Full Topic] +// These constants specify the behavior of notifications posted using the [foundation/nsdistributednotificationcenter/postnotificationname] 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 initWithURL:options:error: and readFromURL:options:error: methods. [Full Topic] +// Reading options that can be set by the [foundation/nsfilewrapper/initwithurl] and [foundation/nsfilewrapper/readfromurl] 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 writeToURL:options:originalContentsURL:error: method. [Full Topic] +// Writing options that can be set by the [foundation/nsfilewrapper/writetourl] 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 enumerateMatchesInString:options:range:usingBlock:. [Full Topic] +// Set by the Block as the matching progresses, completes, or fails. Used by the method [foundation/nsregularexpression/enumeratematchesinstring]. [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 defaultFormatterBehavior class method and the formatterBehavior property. [Full Topic] +// 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] // // [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 paddingPosition property. [Full Topic] +// These constants are used to specify how numbers should be padded. These constants are used by the [foundation/nsnumberformatter/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 roundingMode property. [Full Topic] +// These constants are used to specify how numbers should be rounded. These constants are used by the [foundation/nsnumberformatter/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 numberStyle property. [Full Topic] +// The predefined number format styles used by the [foundation/nsnumberformatter/numberstyle] property. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/foundation/nsnumberformatterstyle?language=objc type NumberFormatterStyle uint @@ -1422,6 +1422,15 @@ 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 @@ -1667,7 +1676,7 @@ const ( RectEdgeMinY RectEdge = 1 ) -// These constants define the regular expression options. These constants are used by the property options, regularExpressionWithPattern:options:error:, and initWithPattern:options:error:. [Full Topic] +// 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] // // [Full Topic]: https://developer.apple.com/documentation/foundation/nsregularexpressionoptions?language=objc type RegularExpressionOptions uint @@ -1704,7 +1713,7 @@ const ( RelativeDateTimeFormatterUnitsStyleSpellOut RelativeDateTimeFormatterUnitsStyle = 1 ) -// These constants are used by relativePosition and relativePosition. [Full Topic] +// These constants are used by [foundation/nsrelativespecifier/relativeposition] and [foundation/nsrelativespecifier/relativeposition]. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/foundation/nsrelativeposition?language=objc type RelativePosition uint @@ -1736,7 +1745,7 @@ const ( RunLoopCommonModes RunLoopMode = "kCFRunLoopCommonModes" ) -// The saveOptions method returns one of the following constants to indicate how to deal with saving any modified documents: [Full Topic] +// The [foundation/nsclosecommand/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 @@ -1810,7 +1819,7 @@ const ( SortStable SortOptions = 16 ) -// 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] +// 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] // // [Full Topic]: https://developer.apple.com/documentation/foundation/nsstreamevent?language=objc type StreamEvent uint @@ -1837,7 +1846,7 @@ const ( StreamNetworkServiceTypeVoice StreamNetworkServiceTypeValue = "kCFStreamNetworkServiceTypeVoice" ) -// NSStream defines these string constants as keys for accessing stream properties using propertyForKey: and setting properties with setProperty:forKey:: [Full Topic] +// NSStream defines these string constants as keys for accessing stream properties using [foundation/nsstream/propertyforkey] and setting properties with [foundation/nsstream/setproperty]: [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/foundation/nsstreampropertykey?language=objc type StreamPropertyKey string @@ -2001,7 +2010,7 @@ const ( TaskTerminationReasonUncaughtSignal TaskTerminationReason = 2 ) -// These are passed to initWithObjectSpecifier:comparisonOperator:testObject: to specify the comparison operator. [Full Topic] +// These are passed to [foundation/nsspecifiertest/initwithobjectspecifier] to specify the comparison operator. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/foundation/nstestcomparisonoperation?language=objc type TestComparisonOperation uint @@ -2036,7 +2045,7 @@ const ( TextCheckingZIPKey TextCheckingKey = "ZIP" ) -// These constants specify the type of checking the methods should do. They are returned by resultType. [Full Topic] +// These constants specify the type of checking the methods should do. They are returned by [foundation/nstextcheckingresult/resulttype]. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/foundation/nstextcheckingtype?language=objc type TextCheckingType uint64 @@ -2174,7 +2183,7 @@ const ( URLFileResourceTypeUnknown URLFileResourceType = "NSURLFileResourceTypeUnknown" ) -// These following constants are defined by NSURLHandle and are returned by status. [Full Topic] +// These following constants are defined by NSURLHandle and are returned by [foundation/nsurlhandle/status]. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/foundation/nsurlhandlestatus?language=objc type URLHandleStatus uint @@ -2542,7 +2551,7 @@ const ( UnarchiveFromDataTransformerName ValueTransformerName = "NSUnarchiveFromData" ) -// Options for enumerating mounted volumes with the mountedVolumeURLsIncludingResourceValuesForKeys:options: method. [Full Topic] +// Options for enumerating mounted volumes with the [foundation/nsfilemanager/mountedvolumeurlsincludingresour] method. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/foundation/nsvolumeenumerationoptions?language=objc type VolumeEnumerationOptions uint @@ -2565,7 +2574,16 @@ const ( RandomSubelement WhoseSubelementIdentifier = 3 ) -// 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] +// 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] // // [Full Topic]: https://developer.apple.com/documentation/foundation/nsxmldtdnodekind?language=objc type XMLDTDNodeKind uint @@ -2605,7 +2623,7 @@ const ( XMLDocumentXMLKind XMLDocumentContentKind = 0 ) -// 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] +// 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] // // [Full Topic]: https://developer.apple.com/documentation/foundation/nsxmlnodekind?language=objc type XMLNodeKind uint @@ -2626,7 +2644,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 initWithKind:options: and 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 [foundation/nsxmlnode/initwithkind] and [foundation/nsxmlnode/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 b5fc2886..8a3bef49 100644 --- a/macos/foundation/error.gen.go +++ b/macos/foundation/error.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package foundation @@ -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) FileProviderErrorForCollisionWithItem(existingItem objc.IObject) Error { - rv := objc.Call[Error](ec, objc.Sel("fileProviderErrorForCollisionWithItem:"), objc.Ptr(existingItem)) - return rv -} - -// Returns a properly formatted error object with a NSFileProviderItemCollisionError error code. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/foundation/nserror/2882067-fileprovidererrorforcollisionwit?language=objc -func Error_FileProviderErrorForCollisionWithItem(existingItem objc.IObject) Error { - return ErrorClass.FileProviderErrorForCollisionWithItem(existingItem) -} - func (ec _ErrorClass) FileProviderErrorForNonExistentItemWithIdentifier(itemIdentifier objc.IObject) Error { rv := objc.Call[Error](ec, objc.Sel("fileProviderErrorForNonExistentItemWithIdentifier:"), objc.Ptr(itemIdentifier)) return rv @@ -79,6 +67,18 @@ func Error_FileProviderErrorForNonExistentItemWithIdentifier(itemIdentifier objc return ErrorClass.FileProviderErrorForNonExistentItemWithIdentifier(itemIdentifier) } +func (ec _ErrorClass) FileProviderErrorForCollisionWithItem(existingItem objc.IObject) Error { + rv := objc.Call[Error](ec, objc.Sel("fileProviderErrorForCollisionWithItem:"), objc.Ptr(existingItem)) + return rv +} + +// Returns a properly formatted error object with a NSFileProviderItemCollisionError error code. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/foundation/nserror/2882067-fileprovidererrorforcollisionwit?language=objc +func Error_FileProviderErrorForCollisionWithItem(existingItem objc.IObject) Error { + return ErrorClass.FileProviderErrorForCollisionWithItem(existingItem) +} + 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 @@ -110,10 +110,6 @@ func (ec _ErrorClass) Alloc() Error { return rv } -func Error_Alloc() Error { - return ErrorClass.Alloc() -} - func (ec _ErrorClass) New() Error { rv := objc.Call[Error](ec, objc.Sel("new")) rv.Autorelease() @@ -166,35 +162,19 @@ func (e_ Error) Domain() ErrorDomain { 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 -func (e_ Error) LocalizedDescription() string { - rv := objc.Call[string](e_, objc.Sel("localizedDescription")) - 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] +// The user info dictionary. [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")) +// [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 } -// The error code. [Full Topic] +// A string containing the localized description of the error. [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")) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nserror/1414418-localizeddescription?language=objc +func (e_ Error) LocalizedDescription() string { + rv := objc.Call[string](e_, objc.Sel("localizedDescription")) return rv } @@ -206,14 +186,6 @@ 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 @@ -237,3 +209,27 @@ 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 cc9545eb..933561d7 100644 --- a/macos/foundation/exception.gen.go +++ b/macos/foundation/exception.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package foundation @@ -19,11 +19,11 @@ type _ExceptionClass struct { type IException interface { objc.IObject Raise() - CallStackReturnAddresses() []Number - Name() ExceptionName - Reason() string UserInfo() Dictionary CallStackSymbols() []string + CallStackReturnAddresses() []Number + Reason() string + Name() ExceptionName } // An object that represents a special condition that interrupts the normal flow of program execution. [Full Topic] @@ -58,10 +58,6 @@ func (ec _ExceptionClass) Alloc() Exception { return rv } -func Exception_Alloc() Exception { - return ExceptionClass.Alloc() -} - func (ec _ExceptionClass) New() Exception { rv := objc.Call[Exception](ec, objc.Sel("new")) rv.Autorelease() @@ -77,13 +73,6 @@ 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 @@ -99,28 +88,25 @@ func Exception_ExceptionWithNameReasonUserInfo(name ExceptionName, reason string return ExceptionClass.ExceptionWithNameReasonUserInfo(name, reason, userInfo) } -// The call return addresses related to a raised exception. [Full Topic] +// Raises the receiver, causing program flow to jump to the local exception handler. [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 +// [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")) } -// A string used to uniquely identify the receiver. [Full Topic] +// A convenience method that creates and raises an exception. [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 +// [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...)...) } -// A string containing a “human-readable” reason for the receiver. [Full Topic] +// A convenience method that creates and raises an exception. [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 +// [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...) } // A dictionary containing application-specific data pertaining to the receiver. [Full Topic] @@ -138,3 +124,27 @@ 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/exists_command.gen.go b/macos/foundation/exists_command.gen.go index b95af848..40652a4c 100644 --- a/macos/foundation/exists_command.gen.go +++ b/macos/foundation/exists_command.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package foundation @@ -38,10 +38,6 @@ func (ec _ExistsCommandClass) Alloc() ExistsCommand { return rv } -func ExistsCommand_Alloc() ExistsCommand { - return ExistsCommandClass.Alloc() -} - func (ec _ExistsCommandClass) New() ExistsCommand { rv := objc.Call[ExistsCommand](ec, objc.Sel("new")) rv.Autorelease() diff --git a/macos/foundation/expression.gen.go b/macos/foundation/expression.gen.go index d3b97d83..ab3d7c7a 100644 --- a/macos/foundation/expression.gen.go +++ b/macos/foundation/expression.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package foundation @@ -20,20 +20,20 @@ type IExpression interface { objc.IObject AllowEvaluation() ExpressionValueWithObjectContext(object objc.IObject, context IMutableDictionary) objc.Object - ExpressionType() ExpressionType - Function() string - Arguments() []Expression - ExpressionBlock() func(arg0 objc.Object, arg1 []Expression, arg2 MutableDictionary) objc.Object - ConstantValue() objc.Object - Variable() string - Predicate() Predicate + LeftExpression() Expression FalseExpression() Expression - KeyPath() string + ConstantValue() objc.Object RightExpression() Expression - LeftExpression() Expression - Operand() Expression + ExpressionBlock() func(arg0 objc.Object, arg1 []Expression, arg2 MutableDictionary) objc.Object + KeyPath() string Collection() objc.Object + Operand() Expression + Predicate() Predicate + Variable() string + ExpressionType() ExpressionType + Function() string TrueExpression() Expression + Arguments() []Expression } // An expression for use in a comparison predicate. [Full Topic] @@ -68,10 +68,6 @@ func (ec _ExpressionClass) Alloc() Expression { return rv } -func Expression_Alloc() Expression { - return ExpressionClass.Alloc() -} - func (ec _ExpressionClass) New() Expression { rv := objc.Call[Expression](ec, objc.Sel("new")) rv.Autorelease() @@ -102,49 +98,26 @@ func Expression_ExpressionForConditionalTrueExpressionFalseExpression(predicate return ExpressionClass.ExpressionForConditionalTrueExpressionFalseExpression(predicate, trueExpression, falseExpression) } -// Creates an expression that represents the object you’re evaluating. [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")) - return rv -} - -// Creates an expression that represents the object you’re evaluating. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsexpression/1411845-expressionforevaluatedobject?language=objc -func Expression_ExpressionForEvaluatedObject() Expression { - return ExpressionClass.ExpressionForEvaluatedObject() -} - -// Creates an expression that invokes the value function with a specified key path. [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) - return rv -} - -// Creates an expression that invokes the value function with a specified key path. [Full Topic] +// Forces a securely decoded expression to allow evaluation. [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/1409244-allowevaluation?language=objc +func (e_ Expression) AllowEvaluation() { + objc.Call[objc.Void](e_, objc.Sel("allowEvaluation")) } -// Creates an expression object that uses the block for evaluating objects. [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/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/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 object that uses the block for evaluating objects. [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/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/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] @@ -162,26 +135,49 @@ func Expression_ExpressionForAnyKey() Expression { return ExpressionClass.ExpressionForAnyKey() } -// Forces a securely decoded expression to allow evaluation. [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/1409244-allowevaluation?language=objc -func (e_ Expression) AllowEvaluation() { - objc.Call[objc.Void](e_, objc.Sel("allowEvaluation")) +// [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:"), objc.Ptr(left), objc.Ptr(right)) + return rv } -// Creates an expression object that represents the subtraction of a specified collection from a specified set. [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/1417659-expressionforminusset?language=objc -func (ec _ExpressionClass) ExpressionForMinusSetWith(left IExpression, right IExpression) Expression { - rv := objc.Call[Expression](ec, objc.Sel("expressionForMinusSet:with:"), objc.Ptr(left), objc.Ptr(right)) +// [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 format and array of arguments. [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) return rv } -// Creates an expression object that represents the subtraction of a specified collection from a specified set. [Full Topic] +// Creates the expression with the specified expression format and array of arguments. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsexpression/1417659-expressionforminusset?language=objc -func Expression_ExpressionForMinusSetWith(left IExpression, right IExpression) Expression { - return ExpressionClass.ExpressionForMinusSetWith(left, right) +// [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) +} + +// 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 (ec _ExpressionClass) ExpressionForFunctionArguments(name string, parameters []objc.IObject) Expression { + rv := objc.Call[Expression](ec, objc.Sel("expressionForFunction:arguments:"), name, parameters) + 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] @@ -199,6 +195,29 @@ func Expression_ExpressionForAggregate(subexpressions []IExpression) Expression return ExpressionClass.ExpressionForAggregate(subexpressions) } +// Creates an expression object that represents the subtraction of a specified collection from a specified set. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsexpression/1417659-expressionforminusset?language=objc +func (ec _ExpressionClass) ExpressionForMinusSetWith(left IExpression, right IExpression) Expression { + rv := objc.Call[Expression](ec, objc.Sel("expressionForMinusSet:with:"), objc.Ptr(left), objc.Ptr(right)) + return rv +} + +// Creates an expression object that represents the subtraction of a specified collection from a specified set. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsexpression/1417659-expressionforminusset?language=objc +func Expression_ExpressionForMinusSetWith(left IExpression, right IExpression) Expression { + return ExpressionClass.ExpressionForMinusSetWith(left, right) +} + +// Evaluates an expression using a specified object and context. [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, objc.Ptr(context)) + return rv +} + // 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 @@ -214,6 +233,21 @@ 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:"), objc.Ptr(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 @@ -229,72 +263,34 @@ func Expression_ExpressionForSubqueryUsingIteratorVariablePredicate(expression I return ExpressionClass.ExpressionForSubqueryUsingIteratorVariablePredicate(expression, variable, predicate) } -// 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 object that represents the intersection of a specified set and collection. [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:"), objc.Ptr(left), objc.Ptr(right)) - return rv -} - -// 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/1409706-expressionforintersectset?language=objc -func Expression_ExpressionForIntersectSetWith(left IExpression, right IExpression) Expression { - return ExpressionClass.ExpressionForIntersectSetWith(left, right) -} - -// Creates an expression that represents a specified constant value. [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/1415818-expressionforconstantvalue?language=objc -func (ec _ExpressionClass) ExpressionForConstantValue(obj objc.IObject) Expression { - rv := objc.Call[Expression](ec, objc.Sel("expressionForConstantValue:"), obj) +// [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 that represents a specified constant value. [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) -} - -// Evaluates an expression using a specified object and context. [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/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, objc.Ptr(context)) - return rv +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsexpression/1408892-expressionforkeypath?language=objc +func Expression_ExpressionForKeyPath(keyPath string) Expression { + return ExpressionClass.ExpressionForKeyPath(keyPath) } -// Creates an expression that returns the result of invoking a selector with a specified name using specified arguments. [Full Topic] +// Creates an expression that represents the object you’re evaluating. [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:"), objc.Ptr(target), name, parameters) +// [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 returns the result of invoking a selector with a specified name using specified arguments. [Full Topic] +// Creates an expression that represents the object you’re evaluating. [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) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsexpression/1411845-expressionforevaluatedobject?language=objc +func Expression_ExpressionForEvaluatedObject() Expression { + return ExpressionClass.ExpressionForEvaluatedObject() } // Creates the expression with the specified expression arguments. [Full Topic] @@ -312,35 +308,49 @@ func Expression_ExpressionWithFormat(expressionFormat string, args ...any) Expre return ExpressionClass.ExpressionWithFormat(expressionFormat, args...) } -// The expression type for the expression. [Full Topic] +// Creates an expression object that uses the block for evaluating objects. [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/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 } -// The function for the expression. [Full Topic] +// Creates an expression object that uses the block for evaluating objects. [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/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 represents a specified constant value. [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 } -// The arguments for the expression. [Full Topic] +// Creates an expression that represents a specified constant value. [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/1415818-expressionforconstantvalue?language=objc +func Expression_ExpressionForConstantValue(obj objc.IObject) Expression { + return ExpressionClass.ExpressionForConstantValue(obj) +} + +// The left expression of an aggregate expression. [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 } -// The block that executes to evaluate 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/1409139-expressionblock?language=objc -func (e_ Expression) ExpressionBlock() func(arg0 objc.Object, arg1 []Expression, arg2 MutableDictionary) objc.Object { - rv := objc.Call[func(arg0 objc.Object, arg1 []Expression, arg2 MutableDictionary) objc.Object](e_, objc.Sel("expressionBlock")) +// [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 } @@ -352,27 +362,19 @@ func (e_ Expression) ConstantValue() objc.Object { return rv } -// The variable for the expression. [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")) - return rv -} - -// The predicate of a subquery expression. [Full Topic] +// The right expression of an aggregate expression. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsexpression/1407531-predicate?language=objc -func (e_ Expression) Predicate() Predicate { - rv := objc.Call[Predicate](e_, objc.Sel("predicate")) +// [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 false. [Full Topic] +// The block that executes to evaluate 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/1409139-expressionblock?language=objc +func (e_ Expression) ExpressionBlock() func(arg0 objc.Object, arg1 []Expression, arg2 MutableDictionary) objc.Object { + rv := objc.Call[func(arg0 objc.Object, arg1 []Expression, arg2 MutableDictionary) objc.Object](e_, objc.Sel("expressionBlock")) return rv } @@ -384,19 +386,11 @@ func (e_ Expression) KeyPath() string { return rv } -// The right expression of an aggregate 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")) - return rv -} - -// The left expression of an aggregate expression. [Full Topic] +// 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/1415792-leftexpression?language=objc -func (e_ Expression) LeftExpression() Expression { - rv := objc.Call[Expression](e_, objc.Sel("leftExpression")) +// [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 } @@ -408,11 +402,35 @@ func (e_ Expression) Operand() Expression { return rv } -// The collection of expressions in an aggregate expression, or the collection element of a subquery expression. [Full Topic] +// The predicate 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")) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsexpression/1407531-predicate?language=objc +func (e_ Expression) Predicate() Predicate { + rv := objc.Call[Predicate](e_, objc.Sel("predicate")) + return rv +} + +// The variable for the expression. [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")) + return rv +} + +// The expression type 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")) + return rv +} + +// The function for the 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")) return rv } @@ -423,3 +441,11 @@ func (e_ Expression) TrueExpression() Expression { rv := objc.Call[Expression](e_, objc.Sel("trueExpression")) return rv } + +// The arguments 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")) + return rv +} diff --git a/macos/foundation/extension_context.gen.go b/macos/foundation/extension_context.gen.go index 92461e58..2bbe4cc1 100644 --- a/macos/foundation/extension_context.gen.go +++ b/macos/foundation/extension_context.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package foundation @@ -18,15 +18,15 @@ type _ExtensionContextClass struct { // An interface definition for the [ExtensionContext] class. type IExtensionContext interface { objc.IObject - DismissNotificationContentExtension() CompleteRequestReturningItemsCompletionHandler(items []objc.IObject, completionHandler func(expired bool)) - PerformNotificationDefaultAction() - OpenURLCompletionHandler(URL IURL, completionHandler func(success bool)) - MediaPlayingStarted() CompleteRequestWithBroadcastURLSetupInfo(broadcastURL IURL, setupInfo map[string]objc.IObject) + DismissNotificationContentExtension() MediaPlayingPaused() - CancelRequestWithError(error IError) + PerformNotificationDefaultAction() + MediaPlayingStarted() LoadBroadcastingApplicationInfoWithCompletion(handler func(bundleID string, displayName string, appIcon objc.Object)) + CancelRequestWithError(error IError) + OpenURLCompletionHandler(URL IURL, completionHandler func(success bool)) InputItems() []objc.Object } @@ -48,10 +48,6 @@ func (ec _ExtensionContextClass) Alloc() ExtensionContext { return rv } -func ExtensionContext_Alloc() ExtensionContext { - return ExtensionContextClass.Alloc() -} - func (ec _ExtensionContextClass) New() ExtensionContext { rv := objc.Call[ExtensionContext](ec, objc.Sel("new")) rv.Autorelease() @@ -67,6 +63,20 @@ 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:"), objc.Ptr(broadcastURL), setupInfo) +} + // [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/foundation/nsextensioncontext/2977624-dismissnotificationcontentextens?language=objc @@ -74,11 +84,11 @@ func (e_ ExtensionContext) DismissNotificationContentExtension() { objc.Call[objc.Void](e_, objc.Sel("dismissNotificationContentExtension")) } -// Tells the host app to complete the app extension request with an array of result items. [Full Topic] +// 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/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]: 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] @@ -88,13 +98,6 @@ 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:"), objc.Ptr(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 @@ -104,16 +107,9 @@ func (e_ ExtensionContext) MediaPlayingStarted() { // [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:"), objc.Ptr(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")) +// [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) } // Tells the host app to cancel the app extension request, with a supplied error. [Full Topic] @@ -123,11 +119,11 @@ func (e_ ExtensionContext) CancelRequestWithError(error IError) { objc.Call[objc.Void](e_, objc.Sel("cancelRequestWithError:"), objc.Ptr(error)) } -// [Full Topic] +// 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/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/1416791-openurl?language=objc +func (e_ ExtensionContext) OpenURLCompletionHandler(URL IURL, completionHandler func(success bool)) { + objc.Call[objc.Void](e_, objc.Sel("openURL:completionHandler:"), objc.Ptr(URL), completionHandler) } // 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 c35fc419..11df5944 100644 --- a/macos/foundation/extension_item.gen.go +++ b/macos/foundation/extension_item.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package foundation @@ -18,14 +18,14 @@ type _ExtensionItemClass struct { // An interface definition for the [ExtensionItem] class. type IExtensionItem interface { objc.IObject - Attachments() []ItemProvider - SetAttachments(value []IItemProvider) - UserInfo() Dictionary - SetUserInfo(value Dictionary) AttributedTitle() AttributedString SetAttributedTitle(value IAttributedString) + Attachments() []ItemProvider + SetAttachments(value []IItemProvider) AttributedContentText() AttributedString SetAttributedContentText(value IAttributedString) + UserInfo() Dictionary + SetUserInfo(value Dictionary) } // An immutable collection of values representing different aspects of an item for an extension to act upon. [Full Topic] @@ -46,10 +46,6 @@ func (ec _ExtensionItemClass) Alloc() ExtensionItem { return rv } -func ExtensionItem_Alloc() ExtensionItem { - return ExtensionItemClass.Alloc() -} - func (ec _ExtensionItemClass) New() ExtensionItem { rv := objc.Call[ExtensionItem](ec, objc.Sel("new")) rv.Autorelease() @@ -65,36 +61,6 @@ func (e_ ExtensionItem) Init() ExtensionItem { return rv } -// 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 -func (e_ ExtensionItem) Attachments() []ItemProvider { - rv := objc.Call[[]ItemProvider](e_, objc.Sel("attachments")) - return rv -} - -// 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 -func (e_ ExtensionItem) SetAttachments(value []IItemProvider) { - objc.Call[objc.Void](e_, objc.Sel("setAttachments:"), 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 -func (e_ ExtensionItem) UserInfo() Dictionary { - rv := objc.Call[Dictionary](e_, objc.Sel("userInfo")) - return rv -} - -// 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 -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 @@ -110,6 +76,21 @@ func (e_ ExtensionItem) SetAttributedTitle(value IAttributedString) { objc.Call[objc.Void](e_, objc.Sel("setAttributedTitle:"), objc.Ptr(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 +func (e_ ExtensionItem) Attachments() []ItemProvider { + rv := objc.Call[[]ItemProvider](e_, objc.Sel("attachments")) + return rv +} + +// 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 +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 @@ -124,3 +105,18 @@ func (e_ ExtensionItem) AttributedContentText() AttributedString { func (e_ ExtensionItem) SetAttributedContentText(value IAttributedString) { objc.Call[objc.Void](e_, objc.Sel("setAttributedContentText:"), objc.Ptr(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 +func (e_ ExtensionItem) UserInfo() Dictionary { + rv := objc.Call[Dictionary](e_, objc.Sel("userInfo")) + return rv +} + +// 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 +func (e_ ExtensionItem) SetUserInfo(value Dictionary) { + objc.Call[objc.Void](e_, objc.Sel("setUserInfo:"), value) +} diff --git a/macos/foundation/extension_request_handling.gen.go b/macos/foundation/extension_request_handling_protocol.gen.go similarity index 64% rename from macos/foundation/extension_request_handling.gen.go rename to macos/foundation/extension_request_handling_protocol.gen.go index 2c7e02fe..e891fad9 100644 --- a/macos/foundation/extension_request_handling.gen.go +++ b/macos/foundation/extension_request_handling_protocol.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package foundation @@ -15,18 +15,21 @@ type PExtensionRequestHandling interface { HasBeginRequestWithExtensionContext() bool } -// A concrete type wrapper for the [PExtensionRequestHandling] protocol. -type ExtensionRequestHandlingWrapper struct { +// ensure impl type implements protocol interface +var _ PExtensionRequestHandling = (*ExtensionRequestHandlingObject)(nil) + +// A concrete type for the [PExtensionRequestHandling] protocol. +type ExtensionRequestHandlingObject struct { objc.Object } -func (e_ ExtensionRequestHandlingWrapper) HasBeginRequestWithExtensionContext() bool { +func (e_ ExtensionRequestHandlingObject) HasBeginRequestWithExtensionContext() bool { return e_.RespondsToSelector(objc.Sel("beginRequestWithExtensionContext:")) } // Tells the extension to prepare for a host app’s request. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/foundation/nsextensionrequesthandling/1413395-beginrequestwithextensioncontext?language=objc -func (e_ ExtensionRequestHandlingWrapper) BeginRequestWithExtensionContext(context IExtensionContext) { +func (e_ ExtensionRequestHandlingObject) BeginRequestWithExtensionContext(context ExtensionContext) { objc.Call[objc.Void](e_, objc.Sel("beginRequestWithExtensionContext:"), objc.Ptr(context)) } diff --git a/macos/foundation/fast_enumeration.gen.go b/macos/foundation/fast_enumeration_protocol.gen.go similarity index 67% rename from macos/foundation/fast_enumeration.gen.go rename to macos/foundation/fast_enumeration_protocol.gen.go index 640b31ae..e56cc785 100644 --- a/macos/foundation/fast_enumeration.gen.go +++ b/macos/foundation/fast_enumeration_protocol.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package foundation @@ -15,19 +15,22 @@ type PFastEnumeration interface { HasCountByEnumeratingWithStateObjectsCount() bool } -// A concrete type wrapper for the [PFastEnumeration] protocol. -type FastEnumerationWrapper struct { +// ensure impl type implements protocol interface +var _ PFastEnumeration = (*FastEnumerationObject)(nil) + +// A concrete type for the [PFastEnumeration] protocol. +type FastEnumerationObject struct { objc.Object } -func (f_ FastEnumerationWrapper) HasCountByEnumeratingWithStateObjectsCount() bool { +func (f_ FastEnumerationObject) HasCountByEnumeratingWithStateObjectsCount() bool { return f_.RespondsToSelector(objc.Sel("countByEnumeratingWithState:objects:count:")) } // Returns by reference a C array of objects over which the sender should iterate, and as the return value the number of objects in the array. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/foundation/nsfastenumeration/1412867-countbyenumeratingwithstate?language=objc -func (f_ FastEnumerationWrapper) CountByEnumeratingWithStateObjectsCount(state *FastEnumerationState, buffer objc.IObject, len uint) uint { +func (f_ FastEnumerationObject) CountByEnumeratingWithStateObjectsCount(state *FastEnumerationState, buffer objc.Object, len uint) uint { rv := objc.Call[uint](f_, objc.Sel("countByEnumeratingWithState:objects:count:"), state, buffer, len) return rv } diff --git a/macos/foundation/file_access_intent.gen.go b/macos/foundation/file_access_intent.gen.go index 8eda53c3..ef5ceebf 100644 --- a/macos/foundation/file_access_intent.gen.go +++ b/macos/foundation/file_access_intent.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package foundation @@ -63,10 +63,6 @@ func (fc _FileAccessIntentClass) Alloc() FileAccessIntent { return rv } -func FileAccessIntent_Alloc() FileAccessIntent { - return FileAccessIntentClass.Alloc() -} - func (fc _FileAccessIntentClass) New() FileAccessIntent { rv := objc.Call[FileAccessIntent](fc, objc.Sel("new")) rv.Autorelease() diff --git a/macos/foundation/file_coordinator.gen.go b/macos/foundation/file_coordinator.gen.go index d5ebc2ce..b7da2a48 100644 --- a/macos/foundation/file_coordinator.gen.go +++ b/macos/foundation/file_coordinator.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package foundation @@ -18,12 +18,16 @@ 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 IError, batchAccessor func(arg0 func())) - CoordinateAccessWithIntentsQueueByAccessor(intents []IFileAccessIntent, queue IOperationQueue, accessor func(error Error)) CoordinateWritingItemAtURLOptionsWritingItemAtURLOptionsErrorByAccessor(url1 IURL, options1 FileCoordinatorWritingOptions, url2 IURL, options2 FileCoordinatorWritingOptions, outError IError, writer func(newURL1 URL, newURL2 URL)) - CoordinateReadingItemAtURLOptionsWritingItemAtURLOptionsErrorByAccessor(readingURL IURL, readingOptions FileCoordinatorReadingOptions, writingURL IURL, writingOptions FileCoordinatorWritingOptions, outError IError, 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 IError, readerWriter func(newReadingURL URL, newWritingURL URL)) + PrepareForReadingItemsAtURLsOptionsWritingItemsAtURLsOptionsErrorByAccessor(readingURLs []IURL, readingOptions FileCoordinatorReadingOptions, writingURLs []IURL, writingOptions FileCoordinatorWritingOptions, outError IError, batchAccessor func(arg0 func())) + CoordinateAccessWithIntentsQueueByAccessor(intents []IFileAccessIntent, queue IOperationQueue, accessor func(error Error)) + ItemAtURLDidMoveToURL(oldURL IURL, newURL IURL) + CoordinateWritingItemAtURLOptionsErrorByAccessor(url IURL, options FileCoordinatorWritingOptions, outError IError, writer func(newURL URL)) + CoordinateReadingItemAtURLOptionsErrorByAccessor(url IURL, options FileCoordinatorReadingOptions, outError IError, reader func(newURL URL)) PurposeIdentifier() string SetPurposeIdentifier(value string) } @@ -61,10 +65,6 @@ func (fc _FileCoordinatorClass) Alloc() FileCoordinator { return rv } -func FileCoordinator_Alloc() FileCoordinator { - return FileCoordinatorClass.Alloc() -} - func (fc _FileCoordinatorClass) New() FileCoordinator { rv := objc.Call[FileCoordinator](fc, objc.Sel("new")) rv.Autorelease() @@ -80,25 +80,47 @@ func (f_ FileCoordinator) Init() FileCoordinator { return rv } -// Prepare to read or write from multiple files in a single batch operation. [Full Topic] +// Initiates a write operation that involves a secondary write 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 IError, batchAccessor func(arg0 func())) { - objc.Call[objc.Void](f_, objc.Sel("prepareForReadingItemsAtURLs:options:writingItemsAtURLs:options:error:byAccessor:"), readingURLs, readingOptions, writingURLs, writingOptions, objc.Ptr(outError), batchAccessor) +// [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 IError, writer func(newURL1 URL, newURL2 URL)) { + objc.Call[objc.Void](f_, objc.Sel("coordinateWritingItemAtURL:options:writingItemAtURL:options:error:byAccessor:"), objc.Ptr(url1), options1, objc.Ptr(url2), options2, objc.Ptr(outError), writer) } -// 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, objc.Ptr(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:"), objc.Ptr(url), objc.Ptr(attributes)) } -// Initiates a write operation that involves a secondary write operation. [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/1408970-coordinatewritingitematurl?language=objc -func (f_ FileCoordinator) CoordinateWritingItemAtURLOptionsWritingItemAtURLOptionsErrorByAccessor(url1 IURL, options1 FileCoordinatorWritingOptions, url2 IURL, options2 FileCoordinatorWritingOptions, outError IError, writer func(newURL1 URL, newURL2 URL)) { - objc.Call[objc.Void](f_, objc.Sel("coordinateWritingItemAtURL:options:writingItemAtURL:options:error:byAccessor:"), objc.Ptr(url1), options1, objc.Ptr(url2), options2, objc.Ptr(outError), writer) +// [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] +// +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsfilecoordinator/1417120-addfilepresenter?language=objc +func FileCoordinator_AddFilePresenter(filePresenter PFilePresenter) { + FileCoordinatorClass.AddFilePresenter(filePresenter) +} + +// Announces that your app is moving a file to a new URL. [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:"), objc.Ptr(oldURL), objc.Ptr(newURL)) +} + +// Cancels any active file coordination calls. [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")) } // Initiates a read operation that contains a follow-up write operation. [Full Topic] @@ -108,11 +130,18 @@ func (f_ FileCoordinator) CoordinateReadingItemAtURLOptionsWritingItemAtURLOptio objc.Call[objc.Void](f_, objc.Sel("coordinateReadingItemAtURL:options:writingItemAtURL:options:error:byAccessor:"), objc.Ptr(readingURL), readingOptions, objc.Ptr(writingURL), writingOptions, objc.Ptr(outError), readerWriter) } -// Tells observing file providers that the item's ubiquity attributes have changed. [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/2909000-itematurl?language=objc -func (f_ FileCoordinator) ItemAtURLDidChangeUbiquityAttributes(url IURL, attributes ISet) { - objc.Call[objc.Void](f_, objc.Sel("itemAtURL:didChangeUbiquityAttributes:"), objc.Ptr(url), objc.Ptr(attributes)) +// [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 IError, batchAccessor func(arg0 func())) { + objc.Call[objc.Void](f_, objc.Sel("prepareForReadingItemsAtURLs:options:writingItemsAtURLs:options:error:byAccessor:"), readingURLs, readingOptions, writingURLs, writingOptions, objc.Ptr(outError), batchAccessor) +} + +// Performs a number of coordinated-read or -write operations asynchronously. [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, objc.Ptr(queue), accessor) } // Unregisters the specified file presenter object. [Full Topic] @@ -130,26 +159,40 @@ func FileCoordinator_RemoveFilePresenter(filePresenter PFilePresenter) { FileCoordinatorClass.RemoveFilePresenter(filePresenter) } -// Registers the specified file presenter object so that it can receive notifications. [Full Topic] +// Notifies relevant file presenters that the location of a file or directory changed. [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) +// [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:"), objc.Ptr(oldURL), objc.Ptr(newURL)) } -// Registers the specified file presenter object so that it can receive notifications. [Full Topic] +// 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/1417120-addfilepresenter?language=objc -func FileCoordinator_AddFilePresenter(filePresenter PFilePresenter) { - FileCoordinatorClass.AddFilePresenter(filePresenter) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsfilecoordinator/1413344-coordinatewritingitematurl?language=objc +func (f_ FileCoordinator) CoordinateWritingItemAtURLOptionsErrorByAccessor(url IURL, options FileCoordinatorWritingOptions, outError IError, writer func(newURL URL)) { + objc.Call[objc.Void](f_, objc.Sel("coordinateWritingItemAtURL:options:error:byAccessor:"), objc.Ptr(url), options, objc.Ptr(outError), writer) } -// Cancels any active file coordination calls. [Full Topic] +// Initiates a read operation on a single file or directory using the specified options. [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/1407416-coordinatereadingitematurl?language=objc +func (f_ FileCoordinator) CoordinateReadingItemAtURLOptionsErrorByAccessor(url IURL, options FileCoordinatorReadingOptions, outError IError, reader func(newURL URL)) { + objc.Call[objc.Void](f_, objc.Sel("coordinateReadingItemAtURL:options:error:byAccessor:"), objc.Ptr(url), options, objc.Ptr(outError), reader) +} + +// 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() } // A string that uniquely identifies the file access that was performed by this file coordinator. [Full Topic] @@ -166,18 +209,3 @@ 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() []FilePresenterWrapper { - rv := objc.Call[[]FilePresenterWrapper](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() []FilePresenterWrapper { - return FileCoordinatorClass.FilePresenters() -} diff --git a/macos/foundation/file_handle.gen.go b/macos/foundation/file_handle.gen.go index 0d28e819..e527ec49 100644 --- a/macos/foundation/file_handle.gen.go +++ b/macos/foundation/file_handle.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package foundation @@ -18,26 +18,29 @@ type _FileHandleClass struct { // An interface definition for the [FileHandle] class. type IFileHandle interface { objc.IObject - GetOffsetError(offsetInFile *int64, error IError) bool - ReadInBackgroundAndNotify() - TruncateAtOffsetError(offset int64, error IError) bool ReadDataToEndOfFileAndReturnError(error IError) []byte - WriteDataError(data []byte, error IError) bool SeekToEndReturningOffsetError(offsetInFile *int64, error IError) bool - WaitForDataInBackgroundAndNotifyForModes(modes []RunLoopMode) - AcceptConnectionInBackgroundAndNotifyForModes(modes []RunLoopMode) + ReadInBackgroundAndNotifyForModes(modes []RunLoopMode) + CloseAndReturnError(error IError) bool + WriteDataError(data []byte, error IError) bool + TruncateAtOffsetError(offset int64, error IError) bool + GetOffsetError(offsetInFile *int64, error IError) bool + WaitForDataInBackgroundAndNotify() ReadToEndOfFileInBackgroundAndNotify() + WaitForDataInBackgroundAndNotifyForModes(modes []RunLoopMode) + ReadInBackgroundAndNotify() + ReadToEndOfFileInBackgroundAndNotifyForModes(modes []RunLoopMode) ReadDataUpToLengthError(length uint, error IError) []byte + AcceptConnectionInBackgroundAndNotify() + AcceptConnectionInBackgroundAndNotifyForModes(modes []RunLoopMode) SynchronizeAndReturnError(error IError) bool - CloseAndReturnError(error IError) bool - ReadInBackgroundAndNotifyForModes(modes []RunLoopMode) SeekToOffsetError(offset int64, error IError) 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] @@ -53,40 +56,18 @@ func FileHandleFrom(ptr unsafe.Pointer) FileHandle { } } -func (fc _FileHandleClass) FileHandleForUpdatingURLError(url IURL, error IError) FileHandle { - rv := objc.Call[FileHandle](fc, objc.Sel("fileHandleForUpdatingURL:error:"), objc.Ptr(url), objc.Ptr(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 IError) 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 IError) FileHandle { - rv := objc.Call[FileHandle](fc, objc.Sel("fileHandleForWritingToURL:error:"), objc.Ptr(url), objc.Ptr(error)) +func (f_ FileHandle) InitWithFileDescriptorCloseOnDealloc(fd int, closeopt bool) FileHandle { + rv := objc.Call[FileHandle](f_, objc.Sel("initWithFileDescriptor:closeOnDealloc:"), fd, closeopt) return rv } -// Returns a file handle initialized for writing to the file, device, or named socket at the specified URL. [Full Topic] +// Creates and returns a file handle object associated with the specified file descriptor and deallocation policy. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsfilehandle/1416892-filehandleforwritingtourl?language=objc -func FileHandle_FileHandleForWritingToURLError(url IURL, error IError) FileHandle { - return FileHandleClass.FileHandleForWritingToURLError(url, error) +// [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 } func (f_ FileHandle) InitWithFileDescriptor(fd int) FileHandle { @@ -103,6 +84,18 @@ func NewFileHandleWithFileDescriptor(fd int) FileHandle { return instance } +func (fc _FileHandleClass) FileHandleForUpdatingURLError(url IURL, error IError) FileHandle { + rv := objc.Call[FileHandle](fc, objc.Sel("fileHandleForUpdatingURL:error:"), objc.Ptr(url), objc.Ptr(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 IError) FileHandle { + return FileHandleClass.FileHandleForUpdatingURLError(url, error) +} + func (fc _FileHandleClass) FileHandleForWritingAtPath(path string) FileHandle { rv := objc.Call[FileHandle](fc, objc.Sel("fileHandleForWritingAtPath:"), path) return rv @@ -127,6 +120,18 @@ 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 IError) FileHandle { rv := objc.Call[FileHandle](fc, objc.Sel("fileHandleForReadingFromURL:error:"), objc.Ptr(url), objc.Ptr(error)) return rv @@ -139,13 +144,21 @@ func FileHandle_FileHandleForReadingFromURLError(url IURL, error IError) FileHan return FileHandleClass.FileHandleForReadingFromURLError(url, error) } -func (fc _FileHandleClass) Alloc() FileHandle { - rv := objc.Call[FileHandle](fc, objc.Sel("alloc")) +func (fc _FileHandleClass) FileHandleForWritingToURLError(url IURL, error IError) FileHandle { + rv := objc.Call[FileHandle](fc, objc.Sel("fileHandleForWritingToURL:error:"), objc.Ptr(url), objc.Ptr(error)) return rv } -func FileHandle_Alloc() FileHandle { - return FileHandleClass.Alloc() +// 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 IError) FileHandle { + return FileHandleClass.FileHandleForWritingToURLError(url, error) +} + +func (fc _FileHandleClass) Alloc() FileHandle { + rv := objc.Call[FileHandle](fc, objc.Sel("alloc")) + return rv } func (fc _FileHandleClass) New() FileHandle { @@ -163,34 +176,34 @@ func (f_ FileHandle) Init() FileHandle { 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 IError) bool { - rv := objc.Call[bool](f_, objc.Sel("getOffset:error:"), offsetInFile, objc.Ptr(error)) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsfilehandle/3172527-readdatatoendoffileandreturnerro?language=objc +func (f_ FileHandle) ReadDataToEndOfFileAndReturnError(error IError) []byte { + rv := objc.Call[[]byte](f_, objc.Sel("readDataToEndOfFileAndReturnError:"), objc.Ptr(error)) return rv } -// Reads 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/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/3172529-seektoendreturningoffset?language=objc +func (f_ FileHandle) SeekToEndReturningOffsetError(offsetInFile *int64, error IError) bool { + rv := objc.Call[bool](f_, objc.Sel("seekToEndReturningOffset:error:"), offsetInFile, objc.Ptr(error)) + return rv } -// 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] +// 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/3172532-truncateatoffset?language=objc -func (f_ FileHandle) TruncateAtOffsetError(offset int64, error IError) bool { - rv := objc.Call[bool](f_, objc.Sel("truncateAtOffset:error:"), offset, objc.Ptr(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) } -// Reads the available data synchronously up to the end of file or maximum number of bytes. [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/3172527-readdatatoendoffileandreturnerro?language=objc -func (f_ FileHandle) ReadDataToEndOfFileAndReturnError(error IError) []byte { - rv := objc.Call[[]byte](f_, objc.Sel("readDataToEndOfFileAndReturnError:"), objc.Ptr(error)) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsfilehandle/3172525-closeandreturnerror?language=objc +func (f_ FileHandle) CloseAndReturnError(error IError) bool { + rv := objc.Call[bool](f_, objc.Sel("closeAndReturnError:"), objc.Ptr(error)) return rv } @@ -202,14 +215,36 @@ func (f_ FileHandle) WriteDataError(data []byte, error IError) bool { 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] +// 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] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsfilehandle/3172529-seektoendreturningoffset?language=objc -func (f_ FileHandle) SeekToEndReturningOffsetError(offsetInFile *int64, error IError) bool { - rv := objc.Call[bool](f_, objc.Sel("seekToEndReturningOffset:error:"), offsetInFile, objc.Ptr(error)) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsfilehandle/3172532-truncateatoffset?language=objc +func (f_ FileHandle) TruncateAtOffsetError(offset int64, error IError) bool { + rv := objc.Call[bool](f_, objc.Sel("truncateAtOffset:error:"), offset, objc.Ptr(error)) + return rv +} + +// Get the current position of the file pointer within the file. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsfilehandle/3172526-getoffset?language=objc +func (f_ FileHandle) GetOffsetError(offsetInFile *int64, error IError) bool { + rv := objc.Call[bool](f_, objc.Sel("getOffset:error:"), offsetInFile, objc.Ptr(error)) return rv } +// Asynchronously checks to see if data is available. [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")) +} + +// 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/1415313-readtoendoffileinbackgroundandno?language=objc +func (f_ FileHandle) ReadToEndOfFileInBackgroundAndNotify() { + objc.Call[objc.Void](f_, objc.Sel("readToEndOfFileInBackgroundAndNotify")) +} + // Asynchronously checks to see if data is available. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/foundation/nsfilehandle/1414643-waitfordatainbackgroundandnotify?language=objc @@ -217,18 +252,18 @@ func (f_ FileHandle) WaitForDataInBackgroundAndNotifyForModes(modes []RunLoopMod objc.Call[objc.Void](f_, objc.Sel("waitForDataInBackgroundAndNotifyForModes:"), modes) } -// 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] +// 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/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/1417635-readinbackgroundandnotify?language=objc +func (f_ FileHandle) ReadInBackgroundAndNotify() { + objc.Call[objc.Void](f_, objc.Sel("readInBackgroundAndNotify")) } // 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/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/1417321-readtoendoffileinbackgroundandno?language=objc +func (f_ FileHandle) ReadToEndOfFileInBackgroundAndNotifyForModes(modes []RunLoopMode) { + objc.Call[objc.Void](f_, objc.Sel("readToEndOfFileInBackgroundAndNotifyForModes:"), modes) } // Reads data synchronously up to the specified number of bytes. [Full Topic] @@ -239,27 +274,26 @@ func (f_ FileHandle) ReadDataUpToLengthError(length uint, error IError) []byte { return rv } -// Causes all in-memory data and attributes of the file represented by the file handle to write to permanent storage. [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/3172531-synchronizeandreturnerror?language=objc -func (f_ FileHandle) SynchronizeAndReturnError(error IError) bool { - rv := objc.Call[bool](f_, objc.Sel("synchronizeAndReturnError:"), objc.Ptr(error)) - return rv +// [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")) } -// Disallows further access to the represented file or communications channel and signals end of file on communications channels that permit writing. [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/3172525-closeandreturnerror?language=objc -func (f_ FileHandle) CloseAndReturnError(error IError) bool { - rv := objc.Call[bool](f_, objc.Sel("closeAndReturnError:"), objc.Ptr(error)) - return rv +// [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 from the file or communications channel in the background and posts a notification when finished. [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/1416294-readinbackgroundandnotifyformode?language=objc -func (f_ FileHandle) ReadInBackgroundAndNotifyForModes(modes []RunLoopMode) { - objc.Call[objc.Void](f_, objc.Sel("readInBackgroundAndNotifyForModes:"), modes) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsfilehandle/3172531-synchronizeandreturnerror?language=objc +func (f_ FileHandle) SynchronizeAndReturnError(error IError) bool { + rv := objc.Call[bool](f_, objc.Sel("synchronizeAndReturnError:"), objc.Ptr(error)) + return rv } // Moves the file pointer to the specified offset within the file. [Full Topic] @@ -270,57 +304,50 @@ func (f_ FileHandle) SeekToOffsetError(offset int64, error IError) bool { return rv } -// The file handle associated with a null device. [Full Topic] +// The POSIX file descriptor associated with the receiver. [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/1410326-filedescriptor?language=objc +func (f_ FileHandle) FileDescriptor() int { + rv := objc.Call[int](f_, objc.Sel("fileDescriptor")) return rv } -// The file handle associated with a null device. [Full Topic] +// The data currently available in the receiver. [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/1411463-availabledata?language=objc +func (f_ FileHandle) AvailableData() []byte { + rv := objc.Call[[]byte](f_, objc.Sel("availableData")) + 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 (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 file handle associated with the standard input file. [Full Topic] +// The file handle associated with a null device. [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/1413881-filehandlewithnulldevice?language=objc +func (fc _FileHandleClass) FileHandleWithNullDevice() FileHandle { + rv := objc.Call[FileHandle](fc, objc.Sel("fileHandleWithNullDevice")) 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() -} - -// 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 block to use for reading the contents of the file handle asynchronously. [Full Topic] @@ -338,19 +365,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 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 block to use for writing the contents of the file handle asynchronously. [Full Topic] @@ -368,10 +395,17 @@ func (f_ FileHandle) SetWriteabilityHandler(value func(arg0 FileHandle)) { objc.Call[objc.Void](f_, objc.Sel("setWriteabilityHandler:"), value) } -// The POSIX file descriptor associated with the receiver. [Full Topic] +// The file handle associated with the standard input file. [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/1413686-filehandlewithstandardinput?language=objc +func (fc _FileHandleClass) FileHandleWithStandardInput() FileHandle { + rv := objc.Call[FileHandle](fc, objc.Sel("fileHandleWithStandardInput")) 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 9889adff..01630225 100644 --- a/macos/foundation/file_manager.gen.go +++ b/macos/foundation/file_manager.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package foundation @@ -18,59 +18,63 @@ 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 IError) bool + SetAttributesOfItemAtPathError(attributes map[FileAttributeKey]objc.IObject, path string, error IError) bool + IsWritableFileAtPath(path string) bool RemoveItemAtPathError(path string, error IError) bool - IsExecutableFileAtPath(path string) bool - SetUbiquitousItemAtURLDestinationURLError(flag bool, url IURL, destinationURL IURL, error IError) bool - IsUbiquitousItemAtURL(url IURL) bool - URLForDirectoryInDomainAppropriateForURLCreateError(directory SearchPathDirectory, domain SearchPathDomainMask, url IURL, shouldCreate bool, error IError) URL - CreateFileAtPathContentsAttributes(path string, data []byte, attr map[FileAttributeKey]objc.IObject) bool - EnumeratorAtPath(path string) DirectoryEnumerator + TrashItemAtURLResultingItemURLError(url IURL, outResultingURL IURL, error IError) bool + CopyItemAtURLToURLError(srcURL IURL, dstURL IURL, error IError) bool ContentsOfDirectoryAtURLIncludingPropertiesForKeysOptionsError(url IURL, keys []URLResourceKey, mask DirectoryEnumerationOptions, error IError) []URL - MoveItemAtPathToPathError(srcPath string, dstPath string, error IError) bool - CopyItemAtPathToPathError(srcPath string, dstPath string, error IError) bool - GetRelationshipOfDirectoryInDomainToItemAtURLError(outRelationship *URLRelationship, directory SearchPathDirectory, domainMask SearchPathDomainMask, url IURL, error IError) bool - AttributesOfItemAtPathError(path string, error IError) 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 - CreateDirectoryAtURLWithIntermediateDirectoriesAttributesError(url IURL, createIntermediates bool, attributes map[FileAttributeKey]objc.IObject, error IError) bool - LinkItemAtPathToPathError(srcPath string, dstPath string, error IError) bool - URLForUbiquityContainerIdentifier(containerIdentifier string) URL + IsDeletableFileAtPath(path string) bool + FileExistsAtPathIsDirectory(path string, isDirectory *bool) bool RemoveItemAtURLError(URL IURL, error IError) bool - IsReadableFileAtPath(path string) bool ContainerURLForSecurityApplicationGroupIdentifier(groupIdentifier string) URL - CopyItemAtURLToURLError(srcURL IURL, dstURL IURL, error IError) bool - TrashItemAtURLResultingItemURLError(url IURL, outResultingURL IURL, error IError) bool - MoveItemAtURLToURLError(srcURL IURL, dstURL IURL, error IError) bool - ComponentsToDisplayForPath(path string) []string - StartDownloadingUbiquitousItemAtURLError(url IURL, error IError) bool - IsDeletableFileAtPath(path string) bool - ContentsAtPath(path string) []byte - EvictUbiquitousItemAtURLError(url IURL, error IError) bool - CreateSymbolicLinkAtURLWithDestinationURLError(url IURL, destURL IURL, error IError) bool + DestinationOfSymbolicLinkAtPathError(path string, error IError) string + HomeDirectoryForUser(userName string) URL + FileExistsAtPath(path string) bool + EnumeratorAtPath(path string) DirectoryEnumerator 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 IError) bool - IsWritableFileAtPath(path string) bool - AttributesOfFileSystemForPathError(path string, error IError) map[FileAttributeKey]objc.Object DisplayNameAtPath(path string) string - FileExistsAtPath(path string) bool - SetAttributesOfItemAtPathError(attributes map[FileAttributeKey]objc.IObject, path string, error IError) bool - GetFileProviderServicesForItemAtURLCompletionHandler(url IURL, completionHandler func(services map[FileProviderServiceName]FileProviderService, error Error)) - ReplaceItemAtURLWithItemAtURLBackupItemNameOptionsResultingItemURLError(originalItemURL IURL, newItemURL IURL, backupItemName string, options FileManagerItemReplacementOptions, resultingURL IURL, error IError) bool + GetRelationshipOfDirectoryAtURLToItemAtURLError(outRelationship *URLRelationship, directoryURL IURL, otherURL IURL, error IError) bool + EvictUbiquitousItemAtURLError(url IURL, error IError) bool ContentsOfDirectoryAtPathError(path string, error IError) []string + CreateDirectoryAtPathWithIntermediateDirectoriesAttributesError(path string, createIntermediates bool, attributes map[FileAttributeKey]objc.IObject, error IError) bool + IsUbiquitousItemAtURL(url IURL) bool + URLForPublishingUbiquitousItemAtURLExpirationDateError(url IURL, outDate IDate, error IError) URL + MoveItemAtURLToURLError(srcURL IURL, dstURL IURL, error IError) bool + CreateDirectoryAtURLWithIntermediateDirectoriesAttributesError(url IURL, createIntermediates bool, attributes map[FileAttributeKey]objc.IObject, error IError) bool + IsExecutableFileAtPath(path string) bool + SetUbiquitousItemAtURLDestinationURLError(flag bool, url IURL, destinationURL IURL, error IError) bool + CreateSymbolicLinkAtURLWithDestinationURLError(url IURL, destURL IURL, error IError) bool + AttributesOfItemAtPathError(path string, error IError) map[FileAttributeKey]objc.Object SubpathsAtPath(path string) []string - DestinationOfSymbolicLinkAtPathError(path string, error IError) string + CreateSymbolicLinkAtPathWithDestinationPathError(path string, destPath string, error IError) bool + URLsForDirectoryInDomains(directory SearchPathDirectory, domainMask SearchPathDomainMask) []URL SubpathsOfDirectoryAtPathError(path string, error IError) []string - HomeDirectoryForUser(userName string) URL - URLForPublishingUbiquitousItemAtURLExpirationDateError(url IURL, outDate IDate, error IError) URL + IsReadableFileAtPath(path string) bool + FileSystemRepresentationWithPath(path string) *uint8 + URLForDirectoryInDomainAppropriateForURLCreateError(directory SearchPathDirectory, domain SearchPathDomainMask, url IURL, shouldCreate bool, error IError) URL + UnmountVolumeAtURLOptionsCompletionHandler(url IURL, mask FileManagerUnmountOptions, completionHandler func(errorOrNil Error)) + MoveItemAtPathToPathError(srcPath string, dstPath string, error IError) bool + AttributesOfFileSystemForPathError(path string, error IError) map[FileAttributeKey]objc.Object + StringWithFileSystemRepresentationLength(str *uint8, len uint) string + LinkItemAtPathToPathError(srcPath string, dstPath string, error IError) bool + EnumeratorAtURLIncludingPropertiesForKeysOptionsErrorHandler(url IURL, keys []URLResourceKey, mask DirectoryEnumerationOptions, handler func(url URL, error Error) bool) DirectoryEnumerator + LinkItemAtURLToURLError(srcURL IURL, dstURL IURL, error IError) 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 IURL, error IError) bool + StartDownloadingUbiquitousItemAtURLError(url IURL, error IError) bool + ContentsAtPath(path string) []byte + CopyItemAtPathToPathError(srcPath string, dstPath string, error IError) bool + CreateFileAtPathContentsAttributes(path string, data []byte, attr map[FileAttributeKey]objc.IObject) bool + GetFileProviderServicesForItemAtURLCompletionHandler(url IURL, completionHandler func(services map[FileProviderServiceName]FileProviderService, error Error)) + ComponentsToDisplayForPath(path string) []string + TemporaryDirectory() URL HomeDirectoryForCurrentUser() URL CurrentDirectoryPath() string - TemporaryDirectory() URL - Delegate() FileManagerDelegateWrapper + Delegate() FileManagerDelegateObject SetDelegate(value PFileManagerDelegate) SetDelegateObject(valueObject objc.IObject) UbiquityIdentityToken() objc.Object @@ -106,10 +110,6 @@ func (fc _FileManagerClass) Alloc() FileManager { return rv } -func FileManager_Alloc() FileManager { - return FileManagerClass.Alloc() -} - func (fc _FileManagerClass) New() FileManager { rv := objc.Call[FileManager](fc, objc.Sel("new")) rv.Autorelease() @@ -125,6 +125,30 @@ 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 IError) bool { + rv := objc.Call[bool](f_, objc.Sel("getRelationship:ofDirectory:inDomain:toItemAtURL:error:"), outRelationship, directory, domainMask, objc.Ptr(url), objc.Ptr(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 IError) bool { + rv := objc.Call[bool](f_, objc.Sel("setAttributes:ofItemAtPath:error:"), attributes, path, objc.Ptr(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 @@ -133,251 +157,282 @@ func (f_ FileManager) RemoveItemAtPathError(path string, error IError) bool { 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 IURL, error IError) bool { + rv := objc.Call[bool](f_, objc.Sel("trashItemAtURL:resultingItemURL:error:"), objc.Ptr(url), objc.Ptr(outResultingURL), objc.Ptr(error)) return rv } -// Indicates whether the item at the specified URL should be stored in iCloud. [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/1413989-setubiquitous?language=objc -func (f_ FileManager) SetUbiquitousItemAtURLDestinationURLError(flag bool, url IURL, destinationURL IURL, error IError) bool { - rv := objc.Call[bool](f_, objc.Sel("setUbiquitous:itemAtURL:destinationURL:error:"), flag, objc.Ptr(url), objc.Ptr(destinationURL), objc.Ptr(error)) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsfilemanager/1412957-copyitematurl?language=objc +func (f_ FileManager) CopyItemAtURLToURLError(srcURL IURL, dstURL IURL, error IError) bool { + rv := objc.Call[bool](f_, objc.Sel("copyItemAtURL:toURL:error:"), objc.Ptr(srcURL), objc.Ptr(dstURL), objc.Ptr(error)) return rv } -// Returns a Boolean indicating whether the item is targeted for storage in iCloud. [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/1410218-isubiquitousitematurl?language=objc -func (f_ FileManager) IsUbiquitousItemAtURL(url IURL) bool { - rv := objc.Call[bool](f_, objc.Sel("isUbiquitousItemAtURL:"), objc.Ptr(url)) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsfilemanager/1413768-contentsofdirectoryaturl?language=objc +func (f_ FileManager) ContentsOfDirectoryAtURLIncludingPropertiesForKeysOptionsError(url IURL, keys []URLResourceKey, mask DirectoryEnumerationOptions, error IError) []URL { + rv := objc.Call[[]URL](f_, objc.Sel("contentsOfDirectoryAtURL:includingPropertiesForKeys:options:error:"), objc.Ptr(url), keys, mask, objc.Ptr(error)) return rv } -// Locates and optionally creates the specified common directory in a domain. [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/1407693-urlfordirectory?language=objc -func (f_ FileManager) URLForDirectoryInDomainAppropriateForURLCreateError(directory SearchPathDirectory, domain SearchPathDomainMask, url IURL, shouldCreate bool, error IError) URL { - rv := objc.Call[URL](f_, objc.Sel("URLForDirectory:inDomain:appropriateForURL:create:error:"), directory, domain, objc.Ptr(url), shouldCreate, objc.Ptr(error)) +// [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 file with the specified content and attributes at the given location. [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/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/1410277-fileexistsatpath?language=objc +func (f_ FileManager) FileExistsAtPathIsDirectory(path string, isDirectory *bool) bool { + rv := objc.Call[bool](f_, objc.Sel("fileExistsAtPath:isDirectory:"), path, isDirectory) 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] +// Removes the file or directory at the specified URL. [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/1413590-removeitematurl?language=objc +func (f_ FileManager) RemoveItemAtURLError(URL IURL, error IError) bool { + rv := objc.Call[bool](f_, objc.Sel("removeItemAtURL:error:"), objc.Ptr(URL), objc.Ptr(error)) return rv } -// Performs a shallow search of the specified directory and returns URLs for the contained items. [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/1413768-contentsofdirectoryaturl?language=objc -func (f_ FileManager) ContentsOfDirectoryAtURLIncludingPropertiesForKeysOptionsError(url IURL, keys []URLResourceKey, mask DirectoryEnumerationOptions, error IError) []URL { - rv := objc.Call[[]URL](f_, objc.Sel("contentsOfDirectoryAtURL:includingPropertiesForKeys:options:error:"), objc.Ptr(url), keys, mask, objc.Ptr(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 } -// Moves the file or directory 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/1413529-moveitematpath?language=objc -func (f_ FileManager) MoveItemAtPathToPathError(srcPath string, dstPath string, error IError) bool { - rv := objc.Call[bool](f_, objc.Sel("moveItemAtPath:toPath:error:"), srcPath, dstPath, objc.Ptr(error)) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsfilemanager/1415161-destinationofsymboliclinkatpath?language=objc +func (f_ FileManager) DestinationOfSymbolicLinkAtPathError(path string, error IError) string { + rv := objc.Call[string](f_, objc.Sel("destinationOfSymbolicLinkAtPath:error:"), path, objc.Ptr(error)) return rv } -// Copies the item at the specified path to a new location synchronously. [Full Topic] +// Returns the home directory for the specified user. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsfilemanager/1407903-copyitematpath?language=objc -func (f_ FileManager) CopyItemAtPathToPathError(srcPath string, dstPath string, error IError) bool { - rv := objc.Call[bool](f_, objc.Sel("copyItemAtPath:toPath:error:"), srcPath, dstPath, objc.Ptr(error)) +// [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 } -// Determines the type of relationship that exists between a system directory and the specified item. [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/1411439-getrelationship?language=objc -func (f_ FileManager) GetRelationshipOfDirectoryInDomainToItemAtURLError(outRelationship *URLRelationship, directory SearchPathDirectory, domainMask SearchPathDomainMask, url IURL, error IError) bool { - rv := objc.Call[bool](f_, objc.Sel("getRelationship:ofDirectory:inDomain:toItemAtURL:error:"), outRelationship, directory, domainMask, objc.Ptr(url), objc.Ptr(error)) +// [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 the attributes of the item at a given path. [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/1410452-attributesofitematpath?language=objc -func (f_ FileManager) AttributesOfItemAtPathError(path string, error IError) map[FileAttributeKey]objc.Object { - rv := objc.Call[map[FileAttributeKey]objc.Object](f_, objc.Sel("attributesOfItemAtPath:error:"), path, objc.Ptr(error)) +// [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 an array of URLs for the specified common directory in the requested domains. [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/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/1412020-changecurrentdirectorypath?language=objc +func (f_ FileManager) ChangeCurrentDirectoryPath(path string) bool { + rv := objc.Call[bool](f_, objc.Sel("changeCurrentDirectoryPath:"), 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 the display name of the file or directory at a specified path. [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:"), objc.Ptr(url), keys, mask, handler) +// [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 } -// Creates a directory with the given attributes at the specified URL. [Full Topic] +// Determines the type of relationship that exists between a directory and an item. [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 IError) bool { - rv := objc.Call[bool](f_, objc.Sel("createDirectoryAtURL:withIntermediateDirectories:attributes:error:"), objc.Ptr(url), createIntermediates, attributes, objc.Ptr(error)) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsfilemanager/1407229-getrelationship?language=objc +func (f_ FileManager) GetRelationshipOfDirectoryAtURLToItemAtURLError(outRelationship *URLRelationship, directoryURL IURL, otherURL IURL, error IError) bool { + rv := objc.Call[bool](f_, objc.Sel("getRelationship:ofDirectoryAtURL:toItemAtURL:error:"), outRelationship, objc.Ptr(directoryURL), objc.Ptr(otherURL), objc.Ptr(error)) return rv } -// Creates a hard link between the items at the specified paths. [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/1411206-linkitematpath?language=objc -func (f_ FileManager) LinkItemAtPathToPathError(srcPath string, dstPath string, error IError) bool { - rv := objc.Call[bool](f_, objc.Sel("linkItemAtPath:toPath:error:"), srcPath, dstPath, objc.Ptr(error)) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsfilemanager/1409696-evictubiquitousitematurl?language=objc +func (f_ FileManager) EvictUbiquitousItemAtURLError(url IURL, error IError) bool { + rv := objc.Call[bool](f_, objc.Sel("evictUbiquitousItemAtURL:error:"), objc.Ptr(url), objc.Ptr(error)) return rv } -// Returns the URL for the iCloud container associated with the specified identifier and establishes access to that container. [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/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/1414584-contentsofdirectoryatpath?language=objc +func (f_ FileManager) ContentsOfDirectoryAtPathError(path string, error IError) []string { + rv := objc.Call[[]string](f_, objc.Sel("contentsOfDirectoryAtPath:error:"), path, objc.Ptr(error)) return rv } -// Removes the file or directory at the specified URL. [Full Topic] +// Creates a directory with given attributes at the specified path. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsfilemanager/1413590-removeitematurl?language=objc -func (f_ FileManager) RemoveItemAtURLError(URL IURL, error IError) bool { - rv := objc.Call[bool](f_, objc.Sel("removeItemAtURL:error:"), objc.Ptr(URL), objc.Ptr(error)) +// [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 IError) bool { + rv := objc.Call[bool](f_, objc.Sel("createDirectoryAtPath:withIntermediateDirectories:attributes:error:"), path, createIntermediates, attributes, objc.Ptr(error)) return rv } -// Returns a Boolean value that indicates whether the invoking object appears able to read 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/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/1410218-isubiquitousitematurl?language=objc +func (f_ FileManager) IsUbiquitousItemAtURL(url IURL) bool { + rv := objc.Call[bool](f_, objc.Sel("isUbiquitousItemAtURL:"), objc.Ptr(url)) + 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] +// +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsfilemanager/1411577-urlforpublishingubiquitousitemat?language=objc +func (f_ FileManager) URLForPublishingUbiquitousItemAtURLExpirationDateError(url IURL, outDate IDate, error IError) URL { + rv := objc.Call[URL](f_, objc.Sel("URLForPublishingUbiquitousItemAtURL:expirationDate:error:"), objc.Ptr(url), objc.Ptr(outDate), objc.Ptr(error)) + return rv +} + +// 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/1414750-moveitematurl?language=objc +func (f_ FileManager) MoveItemAtURLToURLError(srcURL IURL, dstURL IURL, error IError) bool { + rv := objc.Call[bool](f_, objc.Sel("moveItemAtURL:toURL:error:"), objc.Ptr(srcURL), objc.Ptr(dstURL), objc.Ptr(error)) + return rv +} + +// Creates a directory with the given attributes at the specified URL. [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 IError) bool { + rv := objc.Call[bool](f_, objc.Sel("createDirectoryAtURL:withIntermediateDirectories:attributes:error:"), objc.Ptr(url), createIntermediates, attributes, objc.Ptr(error)) + return rv +} + +// 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/1414159-isexecutablefileatpath?language=objc +func (f_ FileManager) IsExecutableFileAtPath(path string) bool { + rv := objc.Call[bool](f_, objc.Sel("isExecutableFileAtPath:"), path) return rv } -// Returns the container directory associated with the specified security application group identifier. [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/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/1413989-setubiquitous?language=objc +func (f_ FileManager) SetUbiquitousItemAtURLDestinationURLError(flag bool, url IURL, destinationURL IURL, error IError) bool { + rv := objc.Call[bool](f_, objc.Sel("setUbiquitous:itemAtURL:destinationURL:error:"), flag, objc.Ptr(url), objc.Ptr(destinationURL), objc.Ptr(error)) return rv } -// Copies the file at the specified URL to a new location synchronously. [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/1412957-copyitematurl?language=objc -func (f_ FileManager) CopyItemAtURLToURLError(srcURL IURL, dstURL IURL, error IError) bool { - rv := objc.Call[bool](f_, objc.Sel("copyItemAtURL:toURL:error:"), objc.Ptr(srcURL), objc.Ptr(dstURL), objc.Ptr(error)) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsfilemanager/1414652-createsymboliclinkaturl?language=objc +func (f_ FileManager) CreateSymbolicLinkAtURLWithDestinationURLError(url IURL, destURL IURL, error IError) bool { + rv := objc.Call[bool](f_, objc.Sel("createSymbolicLinkAtURL:withDestinationURL:error:"), objc.Ptr(url), objc.Ptr(destURL), objc.Ptr(error)) return rv } -// Moves an item to the trash. [Full Topic] +// Returns the attributes of the item at a given path. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsfilemanager/1414306-trashitematurl?language=objc -func (f_ FileManager) TrashItemAtURLResultingItemURLError(url IURL, outResultingURL IURL, error IError) bool { - rv := objc.Call[bool](f_, objc.Sel("trashItemAtURL:resultingItemURL:error:"), objc.Ptr(url), objc.Ptr(outResultingURL), objc.Ptr(error)) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsfilemanager/1410452-attributesofitematpath?language=objc +func (f_ FileManager) AttributesOfItemAtPathError(path string, error IError) map[FileAttributeKey]objc.Object { + rv := objc.Call[map[FileAttributeKey]objc.Object](f_, objc.Sel("attributesOfItemAtPath:error:"), path, objc.Ptr(error)) return rv } -// Moves the file or directory at the specified URL to a new location synchronously. [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/1414750-moveitematurl?language=objc -func (f_ FileManager) MoveItemAtURLToURLError(srcURL IURL, dstURL IURL, error IError) bool { - rv := objc.Call[bool](f_, objc.Sel("moveItemAtURL:toURL:error:"), objc.Ptr(srcURL), objc.Ptr(dstURL), objc.Ptr(error)) +// [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 } -// Returns an array of strings representing the user-visible components of a given path. [Full Topic] +// Creates a symbolic link that points to the specified destination. [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/1411007-createsymboliclinkatpath?language=objc +func (f_ FileManager) CreateSymbolicLinkAtPathWithDestinationPathError(path string, destPath string, error IError) bool { + rv := objc.Call[bool](f_, objc.Sel("createSymbolicLinkAtPath:withDestinationPath:error:"), path, destPath, objc.Ptr(error)) return rv } -// Starts downloading (if necessary) the specified item to the local system. [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/1410377-startdownloadingubiquitousitemat?language=objc -func (f_ FileManager) StartDownloadingUbiquitousItemAtURLError(url IURL, error IError) bool { - rv := objc.Call[bool](f_, objc.Sel("startDownloadingUbiquitousItemAtURL:error:"), objc.Ptr(url), objc.Ptr(error)) +// [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 } -// Returns a Boolean value that indicates whether the invoking object appears able to delete a specified file. [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/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/1417353-subpathsofdirectoryatpath?language=objc +func (f_ FileManager) SubpathsOfDirectoryAtPathError(path string, error IError) []string { + rv := objc.Call[[]string](f_, objc.Sel("subpathsOfDirectoryAtPath:error:"), path, objc.Ptr(error)) return rv } -// Returns the contents of the file at the specified path. [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/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/1418292-isreadablefileatpath?language=objc +func (f_ FileManager) IsReadableFileAtPath(path string) bool { + rv := objc.Call[bool](f_, objc.Sel("isReadableFileAtPath:"), path) return rv } -// Removes the local copy of the specified item that’s stored in iCloud. [Full Topic] +// Returns a C-string representation of a given path that properly encodes Unicode strings for use by the file system. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsfilemanager/1409696-evictubiquitousitematurl?language=objc -func (f_ FileManager) EvictUbiquitousItemAtURLError(url IURL, error IError) bool { - rv := objc.Call[bool](f_, objc.Sel("evictUbiquitousItemAtURL:error:"), objc.Ptr(url), objc.Ptr(error)) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsfilemanager/1417057-filesystemrepresentationwithpath?language=objc +func (f_ FileManager) FileSystemRepresentationWithPath(path string) *uint8 { + rv := objc.Call[*uint8](f_, objc.Sel("fileSystemRepresentationWithPath:"), path) return rv } -// Creates a symbolic link at the specified URL that points to an item at the given URL. [Full Topic] +// Locates and optionally creates the specified common directory in a domain. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsfilemanager/1414652-createsymboliclinkaturl?language=objc -func (f_ FileManager) CreateSymbolicLinkAtURLWithDestinationURLError(url IURL, destURL IURL, error IError) bool { - rv := objc.Call[bool](f_, objc.Sel("createSymbolicLinkAtURL:withDestinationURL:error:"), objc.Ptr(url), objc.Ptr(destURL), objc.Ptr(error)) +// [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 IError) URL { + rv := objc.Call[URL](f_, objc.Sel("URLForDirectory:inDomain:appropriateForURL:create:error:"), directory, domain, objc.Ptr(url), shouldCreate, objc.Ptr(error)) return rv } -// Changes the path of the current working directory to the specified path. [Full Topic] +// Starts the process of unmounting the specified volume. [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) - 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:"), objc.Ptr(url), mask, completionHandler) } -// Returns a C-string representation of a given path that properly encodes Unicode strings for use by the file system. [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/1417057-filesystemrepresentationwithpath?language=objc -func (f_ FileManager) FileSystemRepresentationWithPath(path string) *uint8 { - rv := objc.Call[*uint8](f_, objc.Sel("fileSystemRepresentationWithPath:"), path) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsfilemanager/1413529-moveitematpath?language=objc +func (f_ FileManager) MoveItemAtPathToPathError(srcPath string, dstPath string, error IError) bool { + rv := objc.Call[bool](f_, objc.Sel("moveItemAtPath:toPath:error:"), srcPath, dstPath, objc.Ptr(error)) return rv } -// Returns an array of URLs that identify the mounted volumes available on the device. [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/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/1411896-attributesoffilesystemforpath?language=objc +func (f_ FileManager) AttributesOfFileSystemForPathError(path string, error IError) map[FileAttributeKey]objc.Object { + rv := objc.Call[map[FileAttributeKey]objc.Object](f_, objc.Sel("attributesOfFileSystemForPath:error:"), path, objc.Ptr(error)) return rv } @@ -389,11 +444,20 @@ func (f_ FileManager) StringWithFileSystemRepresentationLength(str *uint8, len u return rv } -// Starts the process of unmounting the specified volume. [Full Topic] +// Creates a hard link between the items at the specified paths. [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:"), objc.Ptr(url), mask, completionHandler) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsfilemanager/1411206-linkitematpath?language=objc +func (f_ FileManager) LinkItemAtPathToPathError(srcPath string, dstPath string, error IError) bool { + rv := objc.Call[bool](f_, objc.Sel("linkItemAtPath:toPath:error:"), srcPath, dstPath, objc.Ptr(error)) + 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] +// +// [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:"), objc.Ptr(url), keys, mask, handler) + return rv } // Creates a hard link between the items at the specified URLs. [Full Topic] @@ -404,115 +468,106 @@ func (f_ FileManager) LinkItemAtURLToURLError(srcURL IURL, dstURL IURL, error IE return rv } -// Returns a Boolean value that indicates whether the invoking object appears able to write to a specified file. [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/1416680-iswritablefileatpath?language=objc -func (f_ FileManager) IsWritableFileAtPath(path string) bool { - rv := objc.Call[bool](f_, objc.Sel("isWritableFileAtPath:"), path) +// [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 dictionary that describes the attributes of the mounted file system on which a given path resides. [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/1411896-attributesoffilesystemforpath?language=objc -func (f_ FileManager) AttributesOfFileSystemForPathError(path string, error IError) map[FileAttributeKey]objc.Object { - rv := objc.Call[map[FileAttributeKey]objc.Object](f_, objc.Sel("attributesOfFileSystemForPath:error:"), path, objc.Ptr(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 } -// Returns the display name of the file or directory at a specified path. [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/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/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 } -// Returns a Boolean value that indicates whether a file or directory exists at a specified path. [Full Topic] +// Replaces the contents of the item at the specified URL in a manner that ensures no data loss occurs. [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/1412432-replaceitematurl?language=objc +func (f_ FileManager) ReplaceItemAtURLWithItemAtURLBackupItemNameOptionsResultingItemURLError(originalItemURL IURL, newItemURL IURL, backupItemName string, options FileManagerItemReplacementOptions, resultingURL IURL, error IError) bool { + rv := objc.Call[bool](f_, objc.Sel("replaceItemAtURL:withItemAtURL:backupItemName:options:resultingItemURL:error:"), objc.Ptr(originalItemURL), objc.Ptr(newItemURL), backupItemName, options, objc.Ptr(resultingURL), objc.Ptr(error)) return rv } -// Sets the attributes of the specified file or directory. [Full Topic] +// Starts downloading (if necessary) the specified item to the local system. [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 IError) bool { - rv := objc.Call[bool](f_, objc.Sel("setAttributes:ofItemAtPath:error:"), attributes, path, objc.Ptr(error)) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsfilemanager/1410377-startdownloadingubiquitousitemat?language=objc +func (f_ FileManager) StartDownloadingUbiquitousItemAtURLError(url IURL, error IError) bool { + rv := objc.Call[bool](f_, objc.Sel("startDownloadingUbiquitousItemAtURL:error:"), objc.Ptr(url), objc.Ptr(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:"), objc.Ptr(url), completionHandler) -} - -// Replaces the contents of the item at the specified URL in a manner that ensures no data loss occurs. [Full Topic] +// Returns the contents of the file at the specified path. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsfilemanager/1412432-replaceitematurl?language=objc -func (f_ FileManager) ReplaceItemAtURLWithItemAtURLBackupItemNameOptionsResultingItemURLError(originalItemURL IURL, newItemURL IURL, backupItemName string, options FileManagerItemReplacementOptions, resultingURL IURL, error IError) bool { - rv := objc.Call[bool](f_, objc.Sel("replaceItemAtURL:withItemAtURL:backupItemName:options:resultingItemURL:error:"), objc.Ptr(originalItemURL), objc.Ptr(newItemURL), backupItemName, options, objc.Ptr(resultingURL), objc.Ptr(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 } -// Performs a shallow search of the specified directory and returns the paths of any contained items. [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/1414584-contentsofdirectoryatpath?language=objc -func (f_ FileManager) ContentsOfDirectoryAtPathError(path string, error IError) []string { - rv := objc.Call[[]string](f_, objc.Sel("contentsOfDirectoryAtPath:error:"), path, objc.Ptr(error)) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsfilemanager/1407903-copyitematpath?language=objc +func (f_ FileManager) CopyItemAtPathToPathError(srcPath string, dstPath string, error IError) bool { + rv := objc.Call[bool](f_, objc.Sel("copyItemAtPath:toPath:error:"), srcPath, dstPath, objc.Ptr(error)) return rv } -// Returns an array of strings identifying the paths for all items in the specified directory. [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/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/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 path of the item pointed to by a symbolic link. [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/1415161-destinationofsymboliclinkatpath?language=objc -func (f_ FileManager) DestinationOfSymbolicLinkAtPathError(path string, error IError) string { - rv := objc.Call[string](f_, objc.Sel("destinationOfSymbolicLinkAtPath:error:"), path, objc.Ptr(error)) - 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:"), objc.Ptr(url), completionHandler) } -// Performs a deep enumeration of the specified directory and returns the paths of all of the contained subdirectories. [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/1417353-subpathsofdirectoryatpath?language=objc -func (f_ FileManager) SubpathsOfDirectoryAtPathError(path string, error IError) []string { - rv := objc.Call[[]string](f_, objc.Sel("subpathsOfDirectoryAtPath:error:"), path, objc.Ptr(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 home directory for the specified user. [Full Topic] +// The temporary directory for the current user. [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/1642996-temporarydirectory?language=objc +func (f_ FileManager) TemporaryDirectory() URL { + rv := objc.Call[URL](f_, objc.Sel("temporaryDirectory")) 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] +// The shared file manager object for the process. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsfilemanager/1411577-urlforpublishingubiquitousitemat?language=objc -func (f_ FileManager) URLForPublishingUbiquitousItemAtURLExpirationDateError(url IURL, outDate IDate, error IError) URL { - rv := objc.Call[URL](f_, objc.Sel("URLForPublishingUbiquitousItemAtURL:expirationDate:error:"), objc.Ptr(url), objc.Ptr(outDate), objc.Ptr(error)) +// [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 } -// Returns a Boolean value that indicates whether the files or directories in specified paths have the same contents. [Full Topic] +// The shared file manager object for the process. [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/1409234-defaultmanager?language=objc +func FileManager_DefaultManager() FileManager { + return FileManagerClass.DefaultManager() } // The home directory for the current user. [Full Topic] @@ -531,19 +586,11 @@ 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 -func (f_ FileManager) Delegate() FileManagerDelegateWrapper { - rv := objc.Call[FileManagerDelegateWrapper](f_, objc.Sel("delegate")) +func (f_ FileManager) Delegate() FileManagerDelegateObject { + rv := objc.Call[FileManagerDelegateObject](f_, objc.Sel("delegate")) return rv } @@ -569,18 +616,3 @@ 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 6ab47292..0f71cae5 100644 --- a/macos/foundation/file_manager_delegate.gen.go +++ b/macos/foundation/file_manager_delegate.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package foundation @@ -10,6 +10,66 @@ 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 @@ -17,9 +77,279 @@ type PFileManagerDelegate interface { // A delegate implementation builder for the [PFileManagerDelegate] protocol. type FileManagerDelegate struct { - _FileManagerShouldRemoveItemAtURL func(fileManager FileManager, URL URL) bool + _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 +} + +// 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 } @@ -38,19 +368,202 @@ func (di *FileManagerDelegate) FileManagerShouldRemoveItemAtURL(fileManager File return di._FileManagerShouldRemoveItemAtURL(fileManager, URL) } -// A concrete type wrapper for the [PFileManagerDelegate] protocol. -type FileManagerDelegateWrapper struct { +// ensure impl type implements protocol interface +var _ PFileManagerDelegate = (*FileManagerDelegateObject)(nil) + +// A concrete type for the [PFileManagerDelegate] protocol. +type FileManagerDelegateObject struct { objc.Object } -func (f_ FileManagerDelegateWrapper) HasFileManagerShouldRemoveItemAtURL() bool { +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:"), objc.Ptr(fileManager), objc.Ptr(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:"), objc.Ptr(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:"), objc.Ptr(fileManager), objc.Ptr(error), objc.Ptr(srcURL), objc.Ptr(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:"), objc.Ptr(fileManager), objc.Ptr(error), objc.Ptr(srcURL), objc.Ptr(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:"), objc.Ptr(fileManager), objc.Ptr(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:"), objc.Ptr(fileManager), objc.Ptr(srcURL), objc.Ptr(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:"), objc.Ptr(fileManager), objc.Ptr(error), objc.Ptr(srcURL), objc.Ptr(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:"), objc.Ptr(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:"), objc.Ptr(fileManager), objc.Ptr(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:"), objc.Ptr(fileManager), objc.Ptr(srcURL), objc.Ptr(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:"), objc.Ptr(fileManager), objc.Ptr(error), objc.Ptr(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:"), objc.Ptr(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:"), objc.Ptr(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:"), objc.Ptr(fileManager), objc.Ptr(srcURL), objc.Ptr(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:"), objc.Ptr(fileManager), objc.Ptr(error), srcPath, dstPath) + return rv +} + +func (f_ FileManagerDelegateObject) HasFileManagerShouldRemoveItemAtURL() bool { return f_.RespondsToSelector(objc.Sel("fileManager:shouldRemoveItemAtURL:")) } // Asks the delegate whether the item at the specified URL should be deleted. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/foundation/nsfilemanagerdelegate/1411918-filemanager?language=objc -func (f_ FileManagerDelegateWrapper) FileManagerShouldRemoveItemAtURL(fileManager IFileManager, URL IURL) bool { +func (f_ FileManagerDelegateObject) FileManagerShouldRemoveItemAtURL(fileManager FileManager, URL URL) bool { rv := objc.Call[bool](f_, objc.Sel("fileManager:shouldRemoveItemAtURL:"), objc.Ptr(fileManager), objc.Ptr(URL)) return rv } diff --git a/macos/foundation/file_presenter.gen.go b/macos/foundation/file_presenter_protocol.gen.go similarity index 63% rename from macos/foundation/file_presenter.gen.go rename to macos/foundation/file_presenter_protocol.gen.go index 66173262..b542c3da 100644 --- a/macos/foundation/file_presenter.gen.go +++ b/macos/foundation/file_presenter_protocol.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package foundation @@ -15,277 +15,325 @@ type PFilePresenter interface { HasAccommodatePresentedItemDeletionWithCompletionHandler() bool // optional - PresentedItemDidMoveToURL(newURL URL) - HasPresentedItemDidMoveToURL() bool + PresentedItemDidChangeUbiquityAttributes(attributes Set) + HasPresentedItemDidChangeUbiquityAttributes() bool // optional - PresentedSubitemAtURLDidGainVersion(url URL, version FileVersion) - HasPresentedSubitemAtURLDidGainVersion() bool + PresentedSubitemAtURLDidResolveConflictVersion(url URL, version FileVersion) + HasPresentedSubitemAtURLDidResolveConflictVersion() bool // optional - SavePresentedItemChangesWithCompletionHandler(completionHandler func(errorOrNil Error)) - HasSavePresentedItemChangesWithCompletionHandler() bool + PresentedItemDidResolveConflictVersion(version FileVersion) + HasPresentedItemDidResolveConflictVersion() bool // optional - PresentedItemDidChange() - HasPresentedItemDidChange() bool + AccommodatePresentedSubitemDeletionAtURLCompletionHandler(url URL, completionHandler func(errorOrNil Error)) + HasAccommodatePresentedSubitemDeletionAtURLCompletionHandler() bool // optional - PresentedItemDidLoseVersion(version FileVersion) - HasPresentedItemDidLoseVersion() bool + PresentedSubitemDidChangeAtURL(url URL) + HasPresentedSubitemDidChangeAtURL() bool // optional - RelinquishPresentedItemToReader(reader func(arg0 func())) - HasRelinquishPresentedItemToReader() bool + PresentedSubitemAtURLDidGainVersion(url URL, version FileVersion) + HasPresentedSubitemAtURLDidGainVersion() bool + + // optional + PresentedSubitemAtURLDidLoseVersion(url URL, version FileVersion) + HasPresentedSubitemAtURLDidLoseVersion() bool // optional PresentedItemDidGainVersion(version FileVersion) HasPresentedItemDidGainVersion() bool // optional - PresentedItemDidResolveConflictVersion(version FileVersion) - HasPresentedItemDidResolveConflictVersion() bool + PresentedSubitemAtURLDidMoveToURL(oldURL URL, newURL URL) + HasPresentedSubitemAtURLDidMoveToURL() bool // optional - PresentedItemDidChangeUbiquityAttributes(attributes Set) - HasPresentedItemDidChangeUbiquityAttributes() bool + SavePresentedItemChangesWithCompletionHandler(completionHandler func(errorOrNil Error)) + HasSavePresentedItemChangesWithCompletionHandler() bool // optional - RelinquishPresentedItemToWriter(writer func(arg0 func())) - HasRelinquishPresentedItemToWriter() bool + PresentedItemDidLoseVersion(version FileVersion) + HasPresentedItemDidLoseVersion() bool + + // optional + PresentedItemDidMoveToURL(newURL URL) + HasPresentedItemDidMoveToURL() bool // optional PresentedSubitemDidAppearAtURL(url URL) HasPresentedSubitemDidAppearAtURL() bool // optional - PresentedSubitemDidChangeAtURL(url URL) - HasPresentedSubitemDidChangeAtURL() bool + PresentedItemDidChange() + HasPresentedItemDidChange() bool // optional - AccommodatePresentedSubitemDeletionAtURLCompletionHandler(url URL, completionHandler func(errorOrNil Error)) - HasAccommodatePresentedSubitemDeletionAtURLCompletionHandler() bool + RelinquishPresentedItemToWriter(writer func(arg0 func())) + HasRelinquishPresentedItemToWriter() bool // optional - PresentedItemOperationQueue() IOperationQueue - HasPresentedItemOperationQueue() bool + RelinquishPresentedItemToReader(reader func(arg0 func())) + HasRelinquishPresentedItemToReader() bool // optional - PresentedItemURL() IURL - HasPresentedItemURL() bool + ObservedPresentedItemUbiquityAttributes() Set + HasObservedPresentedItemUbiquityAttributes() bool // optional - ObservedPresentedItemUbiquityAttributes() ISet - HasObservedPresentedItemUbiquityAttributes() bool + PresentedItemURL() URL + HasPresentedItemURL() bool // optional - PrimaryPresentedItemURL() IURL + PrimaryPresentedItemURL() URL HasPrimaryPresentedItemURL() bool + + // optional + PresentedItemOperationQueue() OperationQueue + HasPresentedItemOperationQueue() bool } -// A concrete type wrapper for the [PFilePresenter] protocol. -type FilePresenterWrapper struct { +// ensure impl type implements protocol interface +var _ PFilePresenter = (*FilePresenterObject)(nil) + +// A concrete type for the [PFilePresenter] protocol. +type FilePresenterObject struct { objc.Object } -func (f_ FilePresenterWrapper) HasAccommodatePresentedItemDeletionWithCompletionHandler() bool { +func (f_ FilePresenterObject) HasAccommodatePresentedItemDeletionWithCompletionHandler() bool { return f_.RespondsToSelector(objc.Sel("accommodatePresentedItemDeletionWithCompletionHandler:")) } // Tells your object that its presented item is about to be deleted. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/foundation/nsfilepresenter/1414732-accommodatepresenteditemdeletion?language=objc -func (f_ FilePresenterWrapper) AccommodatePresentedItemDeletionWithCompletionHandler(completionHandler func(errorOrNil Error)) { +func (f_ FilePresenterObject) AccommodatePresentedItemDeletionWithCompletionHandler(completionHandler func(errorOrNil Error)) { objc.Call[objc.Void](f_, objc.Sel("accommodatePresentedItemDeletionWithCompletionHandler:"), completionHandler) } -func (f_ FilePresenterWrapper) HasPresentedItemDidMoveToURL() bool { - return f_.RespondsToSelector(objc.Sel("presentedItemDidMoveToURL:")) +func (f_ FilePresenterObject) HasPresentedItemDidChangeUbiquityAttributes() bool { + return f_.RespondsToSelector(objc.Sel("presentedItemDidChangeUbiquityAttributes:")) } -// Tells your object that the presented item moved or was renamed. [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/1417861-presenteditemdidmovetourl?language=objc -func (f_ FilePresenterWrapper) PresentedItemDidMoveToURL(newURL IURL) { - objc.Call[objc.Void](f_, objc.Sel("presentedItemDidMoveToURL:"), objc.Ptr(newURL)) +// [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:"), objc.Ptr(attributes)) } -func (f_ FilePresenterWrapper) HasPresentedSubitemAtURLDidGainVersion() bool { - return f_.RespondsToSelector(objc.Sel("presentedSubitemAtURL:didGainVersion:")) +func (f_ FilePresenterObject) HasPresentedSubitemAtURLDidResolveConflictVersion() bool { + return f_.RespondsToSelector(objc.Sel("presentedSubitemAtURL:didResolveConflictVersion:")) } -// Tells the delegate that the item inside the presented directory gained a new version. [Full Topic] +// Tells the delegate that the item inside the presented directory had a version conflict resolved by an outside entity. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsfilepresenter/1415472-presentedsubitematurl?language=objc -func (f_ FilePresenterWrapper) PresentedSubitemAtURLDidGainVersion(url IURL, version IFileVersion) { - objc.Call[objc.Void](f_, objc.Sel("presentedSubitemAtURL:didGainVersion:"), objc.Ptr(url), objc.Ptr(version)) +// [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:"), objc.Ptr(url), objc.Ptr(version)) } -func (f_ FilePresenterWrapper) 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_ FilePresenterWrapper) 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:"), objc.Ptr(version)) } -func (f_ FilePresenterWrapper) HasPresentedItemDidChange() bool { - return f_.RespondsToSelector(objc.Sel("presentedItemDidChange")) +func (f_ FilePresenterObject) HasAccommodatePresentedSubitemDeletionAtURLCompletionHandler() bool { + return f_.RespondsToSelector(objc.Sel("accommodatePresentedSubitemDeletionAtURL:completionHandler:")) } -// Tells your object that the presented item’s contents or attributes changed. [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/1416103-presenteditemdidchange?language=objc -func (f_ FilePresenterWrapper) PresentedItemDidChange() { - objc.Call[objc.Void](f_, objc.Sel("presentedItemDidChange")) +// [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:"), objc.Ptr(url), completionHandler) } -func (f_ FilePresenterWrapper) HasPresentedItemDidLoseVersion() bool { - return f_.RespondsToSelector(objc.Sel("presentedItemDidLoseVersion:")) +func (f_ FilePresenterObject) HasPresentedSubitemDidChangeAtURL() bool { + return f_.RespondsToSelector(objc.Sel("presentedSubitemDidChangeAtURL:")) } -// Tells the delegate that a version of the file or file package was removed. [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/1417258-presenteditemdidloseversion?language=objc -func (f_ FilePresenterWrapper) PresentedItemDidLoseVersion(version IFileVersion) { - objc.Call[objc.Void](f_, objc.Sel("presentedItemDidLoseVersion:"), objc.Ptr(version)) +// [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:"), objc.Ptr(url)) } -func (f_ FilePresenterWrapper) HasRelinquishPresentedItemToReader() bool { - return f_.RespondsToSelector(objc.Sel("relinquishPresentedItemToReader:")) +func (f_ FilePresenterObject) HasPresentedSubitemAtURLDidGainVersion() bool { + return f_.RespondsToSelector(objc.Sel("presentedSubitemAtURL:didGainVersion:")) } -// Notifies your object that another object or process wants to read the presented file or directory. [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/1410743-relinquishpresenteditemtoreader?language=objc -func (f_ FilePresenterWrapper) RelinquishPresentedItemToReader(reader func(arg0 func())) { - objc.Call[objc.Void](f_, objc.Sel("relinquishPresentedItemToReader:"), reader) +// [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:"), objc.Ptr(url), objc.Ptr(version)) } -func (f_ FilePresenterWrapper) HasPresentedItemDidGainVersion() bool { +func (f_ FilePresenterObject) HasPresentedSubitemAtURLDidLoseVersion() bool { + return f_.RespondsToSelector(objc.Sel("presentedSubitemAtURL:didLoseVersion:")) +} + +// Tells the delegate that the item inside the presented directory lost an existing version. [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:"), objc.Ptr(url), objc.Ptr(version)) +} + +func (f_ FilePresenterObject) HasPresentedItemDidGainVersion() bool { return f_.RespondsToSelector(objc.Sel("presentedItemDidGainVersion:")) } // Tells the delegate that a new version of the file or file package was added. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/foundation/nsfilepresenter/1415018-presenteditemdidgainversion?language=objc -func (f_ FilePresenterWrapper) PresentedItemDidGainVersion(version IFileVersion) { +func (f_ FilePresenterObject) PresentedItemDidGainVersion(version FileVersion) { objc.Call[objc.Void](f_, objc.Sel("presentedItemDidGainVersion:"), objc.Ptr(version)) } -func (f_ FilePresenterWrapper) HasPresentedItemDidResolveConflictVersion() bool { - return f_.RespondsToSelector(objc.Sel("presentedItemDidResolveConflictVersion:")) +func (f_ FilePresenterObject) HasPresentedSubitemAtURLDidMoveToURL() bool { + return f_.RespondsToSelector(objc.Sel("presentedSubitemAtURL:didMoveToURL:")) } -// 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 an item in the presented directory moved to a new location. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsfilepresenter/1418445-presenteditemdidresolveconflictv?language=objc -func (f_ FilePresenterWrapper) PresentedItemDidResolveConflictVersion(version IFileVersion) { - objc.Call[objc.Void](f_, objc.Sel("presentedItemDidResolveConflictVersion:"), objc.Ptr(version)) +// [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:"), objc.Ptr(oldURL), objc.Ptr(newURL)) } -func (f_ FilePresenterWrapper) HasPresentedItemDidChangeUbiquityAttributes() bool { - return f_.RespondsToSelector(objc.Sel("presentedItemDidChangeUbiquityAttributes:")) +func (f_ FilePresenterObject) HasSavePresentedItemChangesWithCompletionHandler() bool { + return f_.RespondsToSelector(objc.Sel("savePresentedItemChangesWithCompletionHandler:")) } -// Tells your object that the file or file package's ubiquity attributes have changed. [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/2909021-presenteditemdidchangeubiquityat?language=objc -func (f_ FilePresenterWrapper) PresentedItemDidChangeUbiquityAttributes(attributes ISet) { - objc.Call[objc.Void](f_, objc.Sel("presentedItemDidChangeUbiquityAttributes:"), objc.Ptr(attributes)) +// [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_ FilePresenterWrapper) HasRelinquishPresentedItemToWriter() bool { - return f_.RespondsToSelector(objc.Sel("relinquishPresentedItemToWriter:")) +func (f_ FilePresenterObject) HasPresentedItemDidLoseVersion() bool { + return f_.RespondsToSelector(objc.Sel("presentedItemDidLoseVersion:")) } -// Notifies your object that another object or process wants to write to the presented file or directory. [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/1413688-relinquishpresenteditemtowriter?language=objc -func (f_ FilePresenterWrapper) RelinquishPresentedItemToWriter(writer func(arg0 func())) { - objc.Call[objc.Void](f_, objc.Sel("relinquishPresentedItemToWriter:"), writer) +// [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:"), objc.Ptr(version)) } -func (f_ FilePresenterWrapper) HasPresentedSubitemDidAppearAtURL() bool { +func (f_ FilePresenterObject) HasPresentedItemDidMoveToURL() bool { + return f_.RespondsToSelector(objc.Sel("presentedItemDidMoveToURL:")) +} + +// Tells your object that the presented item moved or was renamed. [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:"), objc.Ptr(newURL)) +} + +func (f_ FilePresenterObject) HasPresentedSubitemDidAppearAtURL() bool { return f_.RespondsToSelector(objc.Sel("presentedSubitemDidAppearAtURL:")) } // Tells the delegate that an item was added to the presented directory. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/foundation/nsfilepresenter/1408642-presentedsubitemdidappearaturl?language=objc -func (f_ FilePresenterWrapper) PresentedSubitemDidAppearAtURL(url IURL) { +func (f_ FilePresenterObject) PresentedSubitemDidAppearAtURL(url URL) { objc.Call[objc.Void](f_, objc.Sel("presentedSubitemDidAppearAtURL:"), objc.Ptr(url)) } -func (f_ FilePresenterWrapper) 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_ FilePresenterWrapper) PresentedSubitemDidChangeAtURL(url IURL) { - objc.Call[objc.Void](f_, objc.Sel("presentedSubitemDidChangeAtURL:"), objc.Ptr(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_ FilePresenterWrapper) HasAccommodatePresentedSubitemDeletionAtURLCompletionHandler() bool { - return f_.RespondsToSelector(objc.Sel("accommodatePresentedSubitemDeletionAtURL:completionHandler:")) +func (f_ FilePresenterObject) HasRelinquishPresentedItemToWriter() bool { + return f_.RespondsToSelector(objc.Sel("relinquishPresentedItemToWriter:")) } -// Tells the delegate that some entity wants to delete an item that is inside of a presented directory. [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/1415657-accommodatepresentedsubitemdelet?language=objc -func (f_ FilePresenterWrapper) AccommodatePresentedSubitemDeletionAtURLCompletionHandler(url IURL, completionHandler func(errorOrNil Error)) { - objc.Call[objc.Void](f_, objc.Sel("accommodatePresentedSubitemDeletionAtURL:completionHandler:"), objc.Ptr(url), completionHandler) +// [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_ FilePresenterWrapper) HasPresentedItemOperationQueue() bool { - return f_.RespondsToSelector(objc.Sel("presentedItemOperationQueue")) +func (f_ FilePresenterObject) HasRelinquishPresentedItemToReader() bool { + return f_.RespondsToSelector(objc.Sel("relinquishPresentedItemToReader:")) } -// The operation queue in which to execute presenter-related messages. [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/1415250-presenteditemoperationqueue?language=objc -func (f_ FilePresenterWrapper) PresentedItemOperationQueue() OperationQueue { - rv := objc.Call[OperationQueue](f_, objc.Sel("presentedItemOperationQueue")) +// [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) HasObservedPresentedItemUbiquityAttributes() bool { + return f_.RespondsToSelector(objc.Sel("observedPresentedItemUbiquityAttributes")) +} + +// 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/2909022-observedpresenteditemubiquityatt?language=objc +func (f_ FilePresenterObject) ObservedPresentedItemUbiquityAttributes() Set { + rv := objc.Call[Set](f_, objc.Sel("observedPresentedItemUbiquityAttributes")) return rv } -func (f_ FilePresenterWrapper) HasPresentedItemURL() bool { +func (f_ FilePresenterObject) HasPresentedItemURL() bool { return f_.RespondsToSelector(objc.Sel("presentedItemURL")) } // The URL of the presented file or directory. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/foundation/nsfilepresenter/1414861-presenteditemurl?language=objc -func (f_ FilePresenterWrapper) PresentedItemURL() URL { +func (f_ FilePresenterObject) PresentedItemURL() URL { rv := objc.Call[URL](f_, objc.Sel("presentedItemURL")) return rv } -func (f_ FilePresenterWrapper) HasObservedPresentedItemUbiquityAttributes() bool { - return f_.RespondsToSelector(objc.Sel("observedPresentedItemUbiquityAttributes")) +func (f_ FilePresenterObject) HasPrimaryPresentedItemURL() bool { + return f_.RespondsToSelector(objc.Sel("primaryPresentedItemURL")) } -// A list of ubiquity attributes used to generate and send notifications whenever an attribute in the list changes. [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/2909022-observedpresenteditemubiquityatt?language=objc -func (f_ FilePresenterWrapper) ObservedPresentedItemUbiquityAttributes() Set { - rv := objc.Call[Set](f_, objc.Sel("observedPresentedItemUbiquityAttributes")) +// [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 } -func (f_ FilePresenterWrapper) HasPrimaryPresentedItemURL() bool { - return f_.RespondsToSelector(objc.Sel("primaryPresentedItemURL")) +func (f_ FilePresenterObject) HasPresentedItemOperationQueue() bool { + return f_.RespondsToSelector(objc.Sel("presentedItemOperationQueue")) } -// The URL of a secondary item’s primary presented file or directory. [Full Topic] +// The operation queue in which to execute presenter-related messages. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsfilepresenter/1415415-primarypresenteditemurl?language=objc -func (f_ FilePresenterWrapper) PrimaryPresentedItemURL() URL { - rv := objc.Call[URL](f_, objc.Sel("primaryPresentedItemURL")) +// [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 } diff --git a/macos/foundation/file_provider_service.gen.go b/macos/foundation/file_provider_service.gen.go index 39ece9b2..999c44e6 100644 --- a/macos/foundation/file_provider_service.gen.go +++ b/macos/foundation/file_provider_service.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package foundation @@ -40,10 +40,6 @@ func (fc _FileProviderServiceClass) Alloc() FileProviderService { return rv } -func FileProviderService_Alloc() FileProviderService { - return FileProviderServiceClass.Alloc() -} - func (fc _FileProviderServiceClass) New() FileProviderService { rv := objc.Call[FileProviderService](fc, objc.Sel("new")) rv.Autorelease() diff --git a/macos/foundation/file_security.gen.go b/macos/foundation/file_security.gen.go index e64288bb..1a159b07 100644 --- a/macos/foundation/file_security.gen.go +++ b/macos/foundation/file_security.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package foundation @@ -38,10 +38,6 @@ func (fc _FileSecurityClass) Alloc() FileSecurity { return rv } -func FileSecurity_Alloc() FileSecurity { - return FileSecurityClass.Alloc() -} - func (fc _FileSecurityClass) New() FileSecurity { rv := objc.Call[FileSecurity](fc, objc.Sel("new")) rv.Autorelease() diff --git a/macos/foundation/file_version.gen.go b/macos/foundation/file_version.gen.go index 488e2343..73719d4f 100644 --- a/macos/foundation/file_version.gen.go +++ b/macos/foundation/file_version.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package foundation @@ -18,20 +18,20 @@ type _FileVersionClass struct { // An interface definition for the [FileVersion] class. type IFileVersion interface { objc.IObject - ReplaceItemAtURLOptionsError(url IURL, options FileVersionReplacingOptions, error IError) URL RemoveAndReturnError(outError IError) bool - IsResolved() bool - SetResolved(value bool) + ReplaceItemAtURLOptionsError(url IURL, options FileVersionReplacingOptions, error IError) URL + URL() URL + ModificationDate() Date IsDiscardable() bool SetDiscardable(value bool) - ModificationDate() Date - OriginatorNameComponents() PersonNameComponents - LocalizedName() string - LocalizedNameOfSavingComputer() string - URL() URL IsConflict() bool - PersistentIdentifier() CodingWrapper + LocalizedName() string HasThumbnail() bool + IsResolved() bool + SetResolved(value bool) + OriginatorNameComponents() PersonNameComponents + LocalizedNameOfSavingComputer() string + PersistentIdentifier() CodingObject HasLocalContents() bool } @@ -53,10 +53,6 @@ func (fc _FileVersionClass) Alloc() FileVersion { return rv } -func FileVersion_Alloc() FileVersion { - return FileVersionClass.Alloc() -} - func (fc _FileVersionClass) New() FileVersion { rv := objc.Call[FileVersion](fc, objc.Sel("new")) rv.Autorelease() @@ -87,21 +83,6 @@ 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:"), objc.Ptr(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 @@ -147,12 +128,18 @@ func FileVersion_OtherVersionsOfItemAtURL(url IURL) []FileVersion { return FileVersionClass.OtherVersionsOfItemAtURL(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 IError) URL { - rv := objc.Call[URL](f_, objc.Sel("replaceItemAtURL:options:error:"), objc.Ptr(url), options, objc.Ptr(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:"), objc.Ptr(url), completionHandler) +} + +// [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) } // Creates a version of the file at the specified location. [Full Topic] @@ -170,6 +157,21 @@ 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:"), objc.Ptr(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 @@ -193,33 +195,28 @@ func FileVersion_UnresolvedConflictVersionsOfItemAtURL(url IURL) []FileVersion { return FileVersionClass.UnresolvedConflictVersionsOfItemAtURL(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:"), objc.Ptr(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 IError) URL { + rv := objc.Call[URL](f_, objc.Sel("replaceItemAtURL:options:error:"), objc.Ptr(url), options, objc.Ptr(error)) + return rv } -// A Boolean value that indicates the version object is not in conflict (YES) or is in conflict (NO). [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/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/1418131-url?language=objc +func (f_ FileVersion) URL() URL { + rv := objc.Call[URL](f_, objc.Sel("URL")) return rv } -// A Boolean value that indicates the version object is not in conflict (YES) or is in conflict (NO). [Full Topic] +// The modification date of the version. [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/1411506-modificationdate?language=objc +func (f_ FileVersion) ModificationDate() Date { + rv := objc.Call[Date](f_, objc.Sel("modificationDate")) + return rv } // A Boolean value that specifies whether the system can delete the associated file at some future time. [Full Topic] @@ -237,19 +234,11 @@ func (f_ FileVersion) SetDiscardable(value bool) { objc.Call[objc.Void](f_, objc.Sel("setDiscardable:"), value) } -// The modification date of the version. [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")) - return rv -} - -// [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/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/1409277-conflict?language=objc +func (f_ FileVersion) IsConflict() bool { + rv := objc.Call[bool](f_, objc.Sel("isConflict")) return rv } @@ -261,43 +250,50 @@ func (f_ FileVersion) LocalizedName() string { return rv } -// The user-presentable name of the computer on which the revision was saved. [Full Topic] +// [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/1409471-hasthumbnail?language=objc +func (f_ FileVersion) HasThumbnail() bool { + rv := objc.Call[bool](f_, objc.Sel("hasThumbnail")) return rv } -// The URL identifying the location of the file associated with the file version object. [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/1418131-url?language=objc -func (f_ FileVersion) URL() URL { - rv := objc.Call[URL](f_, objc.Sel("URL")) +// [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 indicating whether the contents of the version are in conflict with the contents of another 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/1409277-conflict?language=objc -func (f_ FileVersion) IsConflict() bool { - rv := objc.Call[bool](f_, objc.Sel("isConflict")) +// [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] +// +// [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 } -// The identifier for this version of the file. [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/1407948-persistentidentifier?language=objc -func (f_ FileVersion) PersistentIdentifier() CodingWrapper { - rv := objc.Call[CodingWrapper](f_, objc.Sel("persistentIdentifier")) +// [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 identifier for this version of the file. [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/1407948-persistentidentifier?language=objc +func (f_ FileVersion) PersistentIdentifier() CodingObject { + rv := objc.Call[CodingObject](f_, objc.Sel("persistentIdentifier")) return rv } diff --git a/macos/foundation/file_wrapper.gen.go b/macos/foundation/file_wrapper.gen.go index a869df6c..8292a3a0 100644 --- a/macos/foundation/file_wrapper.gen.go +++ b/macos/foundation/file_wrapper.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package foundation @@ -18,28 +18,28 @@ type _FileWrapperClass struct { // An interface definition for the [FileWrapper] class. type IFileWrapper interface { objc.IObject - AddRegularFileWithContentsPreferredFilename(data []byte, fileName string) string - KeyForFileWrapper(child IFileWrapper) string MatchesContentsOfURL(url IURL) bool - RemoveFileWrapper(child IFileWrapper) - ReadFromURLOptionsError(url IURL, options FileWrapperReadingOptions, outError IError) bool + KeyForFileWrapper(child IFileWrapper) string WriteToURLOptionsOriginalContentsURLError(url IURL, options FileWrapperWritingOptions, originalContentsURL IURL, outError IError) bool + RemoveFileWrapper(child IFileWrapper) AddFileWrapper(child IFileWrapper) string + AddRegularFileWithContentsPreferredFilename(data []byte, fileName string) string + ReadFromURLOptionsError(url IURL, options FileWrapperReadingOptions, outError IError) bool + SerializedRepresentation() []byte + FileWrappers() map[string]FileWrapper + RegularFileContents() []byte Filename() string SetFilename(value string) - IsSymbolicLink() bool - FileWrappers() map[string]FileWrapper + SymbolicLinkDestinationURL() URL 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) 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:"), objc.Ptr(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) InitSymbolicLinkWithDestinationURL(url IURL) FileWrapper { - rv := objc.Call[FileWrapper](f_, objc.Sel("initSymbolicLinkWithDestinationURL:"), objc.Ptr(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) InitWithSerializedRepresentation(serializeRepresentation []byte) FileWrapper { - rv := objc.Call[FileWrapper](f_, objc.Sel("initWithSerializedRepresentation:"), serializeRepresentation) +func (f_ FileWrapper) InitWithURLOptionsError(url IURL, options FileWrapperReadingOptions, outError IError) FileWrapper { + rv := objc.Call[FileWrapper](f_, objc.Sel("initWithURL:options:error:"), objc.Ptr(url), options, objc.Ptr(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 IError) FileWrapper { + instance := FileWrapperClass.Alloc().InitWithURLOptionsError(url, options, outError) instance.Autorelease() return instance } @@ -111,16 +111,16 @@ func NewFileWrapperDirectoryWithFileWrappers(childrenByPreferredName map[string] return instance } -func (f_ FileWrapper) InitWithURLOptionsError(url IURL, options FileWrapperReadingOptions, outError IError) FileWrapper { - rv := objc.Call[FileWrapper](f_, objc.Sel("initWithURL:options:error:"), objc.Ptr(url), options, objc.Ptr(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 IError) 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 } @@ -130,10 +130,6 @@ func (fc _FileWrapperClass) Alloc() FileWrapper { return rv } -func FileWrapper_Alloc() FileWrapper { - return FileWrapperClass.Alloc() -} - func (fc _FileWrapperClass) New() FileWrapper { rv := objc.Call[FileWrapper](fc, objc.Sel("new")) rv.Autorelease() @@ -149,11 +145,11 @@ func (f_ FileWrapper) Init() FileWrapper { 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] +// 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/1418374-addregularfilewithcontents?language=objc -func (f_ FileWrapper) AddRegularFileWithContentsPreferredFilename(data []byte, fileName string) string { - rv := objc.Call[string](f_, objc.Sel("addRegularFileWithContents:preferredFilename:"), data, fileName) +// [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:"), objc.Ptr(url)) return rv } @@ -165,11 +161,11 @@ func (f_ FileWrapper) KeyForFileWrapper(child IFileWrapper) string { return rv } -// Indicates whether the contents of a file wrapper matches a directory, regular file, or symbolic link on disk. [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/1408360-matchescontentsofurl?language=objc -func (f_ FileWrapper) MatchesContentsOfURL(url IURL) bool { - rv := objc.Call[bool](f_, objc.Sel("matchesContentsOfURL:"), objc.Ptr(url)) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsfilewrapper/1415981-writetourl?language=objc +func (f_ FileWrapper) WriteToURLOptionsOriginalContentsURLError(url IURL, options FileWrapperWritingOptions, originalContentsURL IURL, outError IError) bool { + rv := objc.Call[bool](f_, objc.Sel("writeToURL:options:originalContentsURL:error:"), objc.Ptr(url), options, objc.Ptr(originalContentsURL), objc.Ptr(outError)) return rv } @@ -180,6 +176,22 @@ func (f_ FileWrapper) RemoveFileWrapper(child IFileWrapper) { objc.Call[objc.Void](f_, objc.Sel("removeFileWrapper:"), objc.Ptr(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:"), objc.Ptr(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 @@ -188,19 +200,27 @@ func (f_ FileWrapper) ReadFromURLOptionsError(url IURL, options FileWrapperReadi return rv } -// Recursively writes the entire contents of a file wrapper to a given file-system URL. [Full Topic] +// The contents of the file wrapper as an opaque data object. [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 IError) bool { - rv := objc.Call[bool](f_, objc.Sel("writeToURL:options:originalContentsURL:error:"), objc.Ptr(url), options, objc.Ptr(originalContentsURL), objc.Ptr(outError)) +// [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 } -// Adds a child file wrapper to the receiver, which must be a directory file wrapper. [Full Topic] +// The file wrappers contained by 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:"), objc.Ptr(child)) +// [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 +} + +// 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 } @@ -219,19 +239,11 @@ func (f_ FileWrapper) SetFilename(value string) { objc.Call[objc.Void](f_, objc.Sel("setFilename:"), value) } -// 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 -} - -// The file wrappers contained by a directory file wrapper. [Full Topic] +// 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/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/1408364-symboliclinkdestinationurl?language=objc +func (f_ FileWrapper) SymbolicLinkDestinationURL() URL { + rv := objc.Call[URL](f_, objc.Sel("symbolicLinkDestinationURL")) return rv } @@ -250,14 +262,6 @@ func (f_ FileWrapper) SetIcon(value objc.IObject) { objc.Call[objc.Void](f_, objc.Sel("setIcon:"), objc.Ptr(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 @@ -273,19 +277,27 @@ func (f_ FileWrapper) SetPreferredFilename(value string) { objc.Call[objc.Void](f_, objc.Sel("setPreferredFilename:"), value) } -// This property contains a boolean value that indicates whether the file wrapper object is a regular-file. [Full Topic] +// 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/1415680-regularfile?language=objc -func (f_ FileWrapper) IsRegularFile() bool { - rv := objc.Call[bool](f_, objc.Sel("isRegularFile")) +// [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 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 +} + +// 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 +func (f_ FileWrapper) IsRegularFile() bool { + rv := objc.Call[bool](f_, objc.Sel("isRegularFile")) return rv } @@ -303,19 +315,3 @@ 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 5862166a..3c4de9c0 100644 --- a/macos/foundation/formatter.gen.go +++ b/macos/foundation/formatter.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package foundation @@ -18,11 +18,12 @@ type _FormatterClass struct { // An interface definition for the [Formatter] class. type IFormatter interface { objc.IObject - EditingStringForObjectValue(obj objc.IObject) string StringForObjectValue(obj objc.IObject) string - GetObjectValueForStringErrorDescription(obj objc.IObject, string_ string, error string) bool + EditingStringForObjectValue(obj objc.IObject) string + IsPartialStringValidProposedSelectedRangeOriginalStringOriginalSelectedRangeErrorDescription(partialStringPtr string, proposedSelRangePtr RangePointer, origString string, origSelRange Range, error string) bool IsPartialStringValidNewEditingStringErrorDescription(partialString string, newString string, error string) bool AttributedStringForObjectValueWithDefaultAttributes(obj objc.IObject, attrs map[AttributedStringKey]objc.IObject) AttributedString + GetObjectValueForStringErrorDescription(obj objc.IObject, string_ string, error string) bool } // An abstract class that declares an interface for objects that create, interpret, and validate the textual representation of values. [Full Topic] @@ -43,10 +44,6 @@ func (fc _FormatterClass) Alloc() Formatter { return rv } -func Formatter_Alloc() Formatter { - return FormatterClass.Alloc() -} - func (fc _FormatterClass) New() Formatter { rv := objc.Call[Formatter](fc, objc.Sel("new")) rv.Autorelease() @@ -62,14 +59,6 @@ func (f_ Formatter) Init() Formatter { return rv } -// The default implementation of this method invokes stringForObjectValue:. [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) - return rv -} - // The default implementation of this method raises an exception. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/foundation/nsformatter/1415993-stringforobjectvalue?language=objc @@ -78,11 +67,19 @@ func (f_ Formatter) StringForObjectValue(obj objc.IObject) string { return rv } -// The default implementation of this method raises an exception. [Full Topic] +// The default implementation of this method invokes [foundation/nsformatter/stringforobjectvalue]. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsformatter/1408927-getobjectvalue?language=objc -func (f_ Formatter) GetObjectValueForStringErrorDescription(obj objc.IObject, string_ string, error string) bool { - rv := objc.Call[bool](f_, objc.Sel("getObjectValue:forString:errorDescription:"), obj, string_, error) +// [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 +} + +// 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] +// +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsformatter/1415263-ispartialstringvalid?language=objc +func (f_ Formatter) IsPartialStringValidProposedSelectedRangeOriginalStringOriginalSelectedRangeErrorDescription(partialStringPtr string, proposedSelRangePtr RangePointer, origString string, origSelRange Range, error string) bool { + rv := objc.Call[bool](f_, objc.Sel("isPartialStringValid:proposedSelectedRange:originalString:originalSelectedRange:errorDescription:"), partialStringPtr, proposedSelRangePtr, origString, origSelRange, error) return rv } @@ -101,3 +98,11 @@ 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 objc.IObject, string_ string, error string) bool { + rv := objc.Call[bool](f_, objc.Sel("getObjectValue:forString:errorDescription:"), obj, string_, error) + return rv +} diff --git a/macos/foundation/garbage_collector.gen.go b/macos/foundation/garbage_collector.gen.go index 78d7ff55..55992ce9 100644 --- a/macos/foundation/garbage_collector.gen.go +++ b/macos/foundation/garbage_collector.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package foundation @@ -38,10 +38,6 @@ func (gc _GarbageCollectorClass) Alloc() GarbageCollector { return rv } -func GarbageCollector_Alloc() GarbageCollector { - return GarbageCollectorClass.Alloc() -} - func (gc _GarbageCollectorClass) New() GarbageCollector { rv := objc.Call[GarbageCollector](gc, objc.Sel("new")) rv.Autorelease() diff --git a/macos/foundation/get_command.gen.go b/macos/foundation/get_command.gen.go index 9f6b4667..36329765 100644 --- a/macos/foundation/get_command.gen.go +++ b/macos/foundation/get_command.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package foundation @@ -38,10 +38,6 @@ func (gc _GetCommandClass) Alloc() GetCommand { return rv } -func GetCommand_Alloc() GetCommand { - return GetCommandClass.Alloc() -} - func (gc _GetCommandClass) New() GetCommand { rv := objc.Call[GetCommand](gc, objc.Sel("new")) rv.Autorelease() diff --git a/macos/foundation/hash_table.gen.go b/macos/foundation/hash_table.gen.go new file mode 100644 index 00000000..854f3a87 --- /dev/null +++ b/macos/foundation/hash_table.gen.go @@ -0,0 +1,259 @@ +// Code generated by DarwinKit. DO NOT EDIT. + +package foundation + +import ( + "unsafe" + + "github.com/progrium/macdriver/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:"), objc.Ptr(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:"), objc.Ptr(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:"), objc.Ptr(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:"), objc.Ptr(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:"), objc.Ptr(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:"), objc.Ptr(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:"), objc.Ptr(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:"), objc.Ptr(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:"), objc.Ptr(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:"), objc.Ptr(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:"), objc.Ptr(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/host.gen.go b/macos/foundation/host.gen.go index b454d7ae..db657686 100644 --- a/macos/foundation/host.gen.go +++ b/macos/foundation/host.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package foundation @@ -38,10 +38,6 @@ func (hc _HostClass) Alloc() Host { return rv } -func Host_Alloc() Host { - return HostClass.Alloc() -} - func (hc _HostClass) New() Host { rv := objc.Call[Host](hc, objc.Sel("new")) rv.Autorelease() diff --git a/macos/foundation/http_cookie.gen.go b/macos/foundation/http_cookie.gen.go index 7bd88e18..e1698392 100644 --- a/macos/foundation/http_cookie.gen.go +++ b/macos/foundation/http_cookie.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package foundation @@ -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] @@ -66,10 +66,6 @@ func (hc _HTTPCookieClass) Alloc() HTTPCookie { return rv } -func HTTPCookie_Alloc() HTTPCookie { - return HTTPCookieClass.Alloc() -} - func (hc _HTTPCookieClass) New() HTTPCookie { rv := objc.Call[HTTPCookie](hc, objc.Sel("new")) rv.Autorelease() @@ -100,21 +96,6 @@ 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 @@ -130,35 +111,42 @@ func HTTPCookie_CookieWithProperties(properties map[HTTPCookiePropertyKey]objc.I return HTTPCookieClass.CookieWithProperties(properties) } -// The domain of the cookie. [Full Topic] +// Converts an array of cookies to a dictionary of header fields. [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/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 } -// The cookie’s path. [Full Topic] +// Converts an array of cookies to a dictionary of header fields. [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/1393021-requestheaderfieldswithcookies?language=objc +func HTTPCookie_RequestHeaderFieldsWithCookies(cookies []IHTTPCookie) map[string]string { + return HTTPCookieClass.RequestHeaderFieldsWithCookies(cookies) +} + +// The cookie’s name. [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")) return rv } -// The cookie’s version. [Full Topic] +// The cookie’s properties. [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/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 comment URL. [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/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/1393025-secure?language=objc +func (h_ HTTPCookie) IsSecure() bool { + rv := objc.Call[bool](h_, objc.Sel("isSecure")) return rv } @@ -170,51 +158,43 @@ func (h_ HTTPCookie) Value() string { return rv } -// The cookie’s name. [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")) - return rv -} - -// A Boolean value that indicates whether the cookie should only be sent to HTTP servers. [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/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/3042420-samesitepolicy?language=objc +func (h_ HTTPCookie) SameSitePolicy() HTTPCookieStringPolicy { + rv := objc.Call[HTTPCookieStringPolicy](h_, objc.Sel("sameSitePolicy")) return rv } -// The cookie’s comment string. [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/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/1392991-sessiononly?language=objc +func (h_ HTTPCookie) IsSessionOnly() bool { + rv := objc.Call[bool](h_, objc.Sel("isSessionOnly")) return rv } -// The cookie’s properties. [Full Topic] +// The cookie’s path. [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/1392981-path?language=objc +func (h_ HTTPCookie) Path() string { + rv := objc.Call[string](h_, objc.Sel("path")) return rv } -// A Boolean value that indicates whether the cookie may only be sent over secure channels. [Full Topic] +// The cookie’s version. [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/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 should be discarded at the end of the session (regardless of expiration date). [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/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/1392969-httponly?language=objc +func (h_ HTTPCookie) IsHTTPOnly() bool { + rv := objc.Call[bool](h_, objc.Sel("isHTTPOnly")) return rv } @@ -226,14 +206,6 @@ func (h_ HTTPCookie) ExpiresDate() Date { 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 -} - // The cookie’s port list. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/foundation/nshttpcookie/1393027-portlist?language=objc @@ -241,3 +213,27 @@ func (h_ HTTPCookie) PortList() []Number { rv := objc.Call[[]Number](h_, objc.Sel("portList")) return rv } + +// The cookie’s comment URL. [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")) + return rv +} + +// The cookie’s comment string. [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")) + return rv +} + +// The domain of the cookie. [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")) + return rv +} diff --git a/macos/foundation/http_cookie_storage.gen.go b/macos/foundation/http_cookie_storage.gen.go index 8f58e082..b3a83376 100644 --- a/macos/foundation/http_cookie_storage.gen.go +++ b/macos/foundation/http_cookie_storage.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package foundation @@ -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) - GetCookiesForTaskCompletionHandler(task IURLSessionTask, completionHandler func(cookies []HTTPCookie)) + SetCookie(cookie IHTTPCookie) StoreCookiesForTask(cookies []IHTTPCookie, task IURLSessionTask) + SetCookiesForURLMainDocumentURL(cookies []IHTTPCookie, URL IURL, mainDocumentURL IURL) SortedCookiesUsingDescriptors(sortOrder []ISortDescriptor) []HTTPCookie - CookiesForURL(URL IURL) []HTTPCookie RemoveCookiesSinceDate(date IDate) - SetCookie(cookie IHTTPCookie) - SetCookiesForURLMainDocumentURL(cookies []IHTTPCookie, URL IURL, mainDocumentURL IURL) + GetCookiesForTaskCompletionHandler(task IURLSessionTask, completionHandler func(cookies []HTTPCookie)) Cookies() []HTTPCookie CookieAcceptPolicy() HTTPCookieAcceptPolicy SetCookieAcceptPolicy(value HTTPCookieAcceptPolicy) @@ -49,10 +49,6 @@ func (hc _HTTPCookieStorageClass) Alloc() HTTPCookieStorage { return rv } -func HTTPCookieStorage_Alloc() HTTPCookieStorage { - return HTTPCookieStorageClass.Alloc() -} - func (hc _HTTPCookieStorageClass) New() HTTPCookieStorage { rv := objc.Call[HTTPCookieStorage](hc, objc.Sel("new")) rv.Autorelease() @@ -68,6 +64,14 @@ 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:"), objc.Ptr(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 @@ -75,11 +79,11 @@ func (h_ HTTPCookieStorage) DeleteCookie(cookie IHTTPCookie) { objc.Call[objc.Void](h_, objc.Sel("deleteCookie:"), objc.Ptr(cookie)) } -// 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:"), objc.Ptr(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:"), objc.Ptr(cookie)) } // Stores an array of cookies in the cookie storage, on behalf of the provided task, if the cookie accept policy permits. [Full Topic] @@ -89,6 +93,13 @@ func (h_ HTTPCookieStorage) StoreCookiesForTask(cookies []IHTTPCookie, task IURL objc.Call[objc.Void](h_, objc.Sel("storeCookies:forTask:"), cookies, objc.Ptr(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, objc.Ptr(URL), objc.Ptr(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 @@ -112,14 +123,6 @@ 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:"), objc.Ptr(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 @@ -127,18 +130,11 @@ func (h_ HTTPCookieStorage) RemoveCookiesSinceDate(date IDate) { objc.Call[objc.Void](h_, objc.Sel("removeCookiesSinceDate:"), objc.Ptr(date)) } -// 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/1418356-setcookie?language=objc -func (h_ HTTPCookieStorage) SetCookie(cookie IHTTPCookie) { - objc.Call[objc.Void](h_, objc.Sel("setCookie:"), objc.Ptr(cookie)) -} - -// Adds an array of cookies to the cookie storage if the storage’s cookie acceptance 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/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, objc.Ptr(URL), objc.Ptr(mainDocumentURL)) +// [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:"), objc.Ptr(task), completionHandler) } // The cookie storage’s cookies. [Full Topic] @@ -149,21 +145,6 @@ func (h_ HTTPCookieStorage) Cookies() []HTTPCookie { return rv } -// The cookie storage’s cookie accept policy. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/foundation/nshttpcookiestorage/1410415-cookieacceptpolicy?language=objc -func (h_ HTTPCookieStorage) CookieAcceptPolicy() HTTPCookieAcceptPolicy { - rv := objc.Call[HTTPCookieAcceptPolicy](h_, objc.Sel("cookieAcceptPolicy")) - return rv -} - -// The cookie storage’s cookie accept policy. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/foundation/nshttpcookiestorage/1410415-cookieacceptpolicy?language=objc -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 @@ -178,3 +159,18 @@ func (hc _HTTPCookieStorageClass) SharedHTTPCookieStorage() HTTPCookieStorage { 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 +func (h_ HTTPCookieStorage) CookieAcceptPolicy() HTTPCookieAcceptPolicy { + rv := objc.Call[HTTPCookieAcceptPolicy](h_, objc.Sel("cookieAcceptPolicy")) + return rv +} + +// The cookie storage’s cookie accept policy. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/foundation/nshttpcookiestorage/1410415-cookieacceptpolicy?language=objc +func (h_ HTTPCookieStorage) SetCookieAcceptPolicy(value HTTPCookieAcceptPolicy) { + objc.Call[objc.Void](h_, objc.Sel("setCookieAcceptPolicy:"), value) +} diff --git a/macos/foundation/httpurl_response.gen.go b/macos/foundation/httpurl_response.gen.go index 9899f6f9..23d372a9 100644 --- a/macos/foundation/httpurl_response.gen.go +++ b/macos/foundation/httpurl_response.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package foundation @@ -55,10 +55,6 @@ func (hc _HTTPURLResponseClass) Alloc() HTTPURLResponse { return rv } -func HTTPURLResponse_Alloc() HTTPURLResponse { - return HTTPURLResponseClass.Alloc() -} - func (hc _HTTPURLResponseClass) New() HTTPURLResponse { rv := objc.Call[HTTPURLResponse](hc, objc.Sel("new")) rv.Autorelease() diff --git a/macos/foundation/index_path.gen.go b/macos/foundation/index_path.gen.go index 601fcb9d..7508e091 100644 --- a/macos/foundation/index_path.gen.go +++ b/macos/foundation/index_path.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package foundation @@ -18,13 +18,14 @@ type _IndexPathClass struct { // An interface definition for the [IndexPath] class. type IIndexPath interface { objc.IObject - IndexPathByAddingIndex(index uint) IndexPath - IndexAtPosition(position uint) uint IndexPathByRemovingLastIndex() IndexPath + GetIndexesRange(indexes *uint, positionRange Range) Compare(otherObject IIndexPath) ComparisonResult + IndexPathByAddingIndex(index uint) IndexPath + IndexAtPosition(position uint) uint + Length() uint 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] @@ -40,6 +41,32 @@ 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 @@ -66,65 +93,61 @@ func NewIndexPathWithIndexesLength(indexes *uint, length uint) IndexPath { return instance } -func (ic _IndexPathClass) IndexPathForItemInSection(item int, section int) IndexPath { - rv := objc.Call[IndexPath](ic, objc.Sel("indexPathForItem:inSection:"), item, section) +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 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) +func (ic _IndexPathClass) New() IndexPath { + rv := objc.Call[IndexPath](ic, objc.Sel("new")) + rv.Autorelease() 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 NewIndexPath() IndexPath { + return IndexPathClass.New() } -func (i_ IndexPath) InitWithIndex(index uint) IndexPath { - rv := objc.Call[IndexPath](i_, objc.Sel("initWithIndex:"), index) +func (i_ IndexPath) Init() IndexPath { + rv := objc.Call[IndexPath](i_, objc.Sel("init")) return rv } -// Initializes an index path with a single node. [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/1416855-initwithindex?language=objc -func NewIndexPathWithIndex(index uint) IndexPath { - instance := IndexPathClass.Alloc().InitWithIndex(index) - instance.Autorelease() - return instance -} - -func (ic _IndexPathClass) Alloc() IndexPath { - rv := objc.Call[IndexPath](ic, objc.Sel("alloc")) +// [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 } -func IndexPath_Alloc() IndexPath { - return IndexPathClass.Alloc() +// 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) 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 (ic _IndexPathClass) IndexPathForItemInSection(item int, section int) IndexPath { + rv := objc.Call[IndexPath](ic, objc.Sel("indexPathForItem:inSection:"), item, section) return rv } -func NewIndexPath() IndexPath { - return IndexPathClass.New() +// 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 (i_ IndexPath) Init() IndexPath { - rv := objc.Call[IndexPath](i_, objc.Sel("init")) +// 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:"), objc.Ptr(otherObject)) return rv } @@ -144,19 +167,11 @@ func (i_ IndexPath) IndexAtPosition(position uint) uint { return rv } -// 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/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] +// The number of nodes in the 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:"), objc.Ptr(otherObject)) +// [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 } @@ -175,11 +190,3 @@ 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 da2fda18..dad57181 100644 --- a/macos/foundation/index_set.gen.go +++ b/macos/foundation/index_set.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package foundation @@ -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 - EnumerateIndexesUsingBlock(block func(idx uint, stop *bool)) + 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 GetIndexesMaxCountInIndexRange(indexBuffer *uint, bufferSize uint, range_ RangePointer) uint - IndexLessThanOrEqualToIndex(value uint) uint - 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 + IndexWithOptionsPassingTest(opts EnumerationOptions, predicate func(idx uint, stop *bool) bool) uint 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)) + 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 + IndexInRangeOptionsPassingTest(range_ Range, opts EnumerationOptions, predicate func(idx uint, stop *bool) bool) uint IsEqualToIndexSet(indexSet IIndexSet) bool - EnumerateRangesWithOptionsUsingBlock(opts EnumerationOptions, block func(range_ Range, stop *bool)) - CountOfIndexesInRange(range_ Range) uint - LastIndex() uint - Count() uint + EnumerateRangesUsingBlock(block func(range_ Range, stop *bool)) + IntersectsIndexesInRange(range_ Range) bool FirstIndex() uint + Count() uint + LastIndex() uint } // An immutable collection of unique integer values that represent indexes in another collection. [Full Topic] @@ -59,6 +59,20 @@ 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 @@ -71,16 +85,16 @@ func IndexSet_IndexSetWithIndex(value uint) IndexSet { return IndexSetClass.IndexSetWithIndex(value) } -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) InitWithIndexesInRange(range_ Range) IndexSet { @@ -111,30 +125,16 @@ func NewIndexSetWithIndexSet(indexSet IIndexSet) IndexSet { return instance } -func (ic _IndexSetClass) IndexSetWithIndexesInRange(range_ Range) IndexSet { - rv := objc.Call[IndexSet](ic, objc.Sel("indexSetWithIndexesInRange:"), range_) - return rv -} - -// Creates an index set with an index range. [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_) -} - -func (i_ IndexSet) InitWithIndex(value uint) IndexSet { - rv := objc.Call[IndexSet](i_, objc.Sel("initWithIndex:"), value) +func (ic _IndexSetClass) IndexSet() IndexSet { + rv := objc.Call[IndexSet](ic, objc.Sel("indexSet")) return rv } -// Initializes an allocated NSIndexSet object with an index. [Full Topic] +// Creates an empty index set. [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 +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsindexset/1427281-indexset?language=objc +func IndexSet_IndexSet() IndexSet { + return IndexSetClass.IndexSet() } func (ic _IndexSetClass) Alloc() IndexSet { @@ -142,10 +142,6 @@ func (ic _IndexSetClass) Alloc() IndexSet { return rv } -func IndexSet_Alloc() IndexSet { - return IndexSetClass.Alloc() -} - func (ic _IndexSetClass) New() IndexSet { rv := objc.Call[IndexSet](ic, objc.Sel("new")) rv.Autorelease() @@ -161,14 +157,6 @@ 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 @@ -177,34 +165,35 @@ func (i_ IndexSet) ContainsIndex(value uint) bool { return rv } -// Executes a given block using each object in the index set, in the specified ranges. [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/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/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 } -// Returns an NSIndexSet containing the receiving index set’s objects that pass the Block test using the specified enumeration options. [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/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 +// [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) } -// Returns an NSIndexSet containing the receiving index set’s objects in the specified range that pass the Block test. [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/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) +// [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 } -// Executes a given Block using each object in the index set. [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/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/1408511-containsindexesinrange?language=objc +func (i_ IndexSet) ContainsIndexesInRange(range_ Range) bool { + rv := objc.Call[bool](i_, objc.Sel("containsIndexesInRange:"), range_) + return rv } // Returns either the closest index in the index set that is less than a specific index or the not-found indicator. [Full Topic] @@ -215,44 +204,36 @@ func (i_ IndexSet) IndexLessThanIndex(value uint) uint { 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] +// 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/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 +// [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) } -// 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 the index of the first object that passes the predicate Block test. [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/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 } -// Enumerates over the ranges in the range of objects using the block [Full Topic] +// Executes a given Block using each object in the index set. [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) +// [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) } -// 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 } -// 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 @@ -261,19 +242,26 @@ func (i_ IndexSet) IndexesPassingTest(predicate func(idx uint, stop *bool) bool) return rv } -// Returns the index of the first object in the specified range that passes the predicate Block test. [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/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) +// [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 } -// Indicates whether the receiving index set contains a superset of the indexes in another index set. [Full Topic] +// 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/1414823-containsindexes?language=objc -func (i_ IndexSet) ContainsIndexes(indexSet IIndexSet) bool { - rv := objc.Call[bool](i_, objc.Sel("containsIndexes:"), objc.Ptr(indexSet)) +// [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] +// +// [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 } @@ -285,35 +273,43 @@ func (i_ IndexSet) IndexGreaterThanIndex(value uint) uint { 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] +// Enumerates over the ranges in the range of objects using the block [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/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] +// +// [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 } -// Returns the index of the first object that passes the predicate Block test. [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/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/1414823-containsindexes?language=objc +func (i_ IndexSet) ContainsIndexes(indexSet IIndexSet) bool { + rv := objc.Call[bool](i_, objc.Sel("containsIndexes:"), objc.Ptr(indexSet)) return rv } -// Indicates whether the index set contains the indexes represented by an index range. [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/1408511-containsindexesinrange?language=objc -func (i_ IndexSet) ContainsIndexesInRange(range_ Range) bool { - rv := objc.Call[bool](i_, objc.Sel("containsIndexesInRange:"), range_) +// [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 } -// Executes a given Block over the index set’s indexes, using the specified enumeration options. [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/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/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 } // Indicates whether the indexes in the receiving index set are the same indexes contained in another index set. [Full Topic] @@ -326,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/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/1409668-enumeraterangesusingblock?language=objc +func (i_ IndexSet) EnumerateRangesUsingBlock(block func(range_ Range, stop *bool)) { + objc.Call[objc.Void](i_, objc.Sel("enumerateRangesUsingBlock:"), 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 } -// 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 } @@ -355,10 +351,10 @@ func (i_ IndexSet) Count() uint { 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 } diff --git a/macos/foundation/index_specifier.gen.go b/macos/foundation/index_specifier.gen.go index 5e58f9ce..93af3208 100644 --- a/macos/foundation/index_specifier.gen.go +++ b/macos/foundation/index_specifier.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package foundation @@ -54,10 +54,6 @@ func (ic _IndexSpecifierClass) Alloc() IndexSpecifier { return rv } -func IndexSpecifier_Alloc() IndexSpecifier { - return IndexSpecifierClass.Alloc() -} - func (ic _IndexSpecifierClass) New() IndexSpecifier { rv := objc.Call[IndexSpecifier](ic, objc.Sel("new")) rv.Autorelease() diff --git a/macos/foundation/inflection_rule.gen.go b/macos/foundation/inflection_rule.gen.go index c234fb91..91f18f51 100644 --- a/macos/foundation/inflection_rule.gen.go +++ b/macos/foundation/inflection_rule.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package foundation @@ -38,10 +38,6 @@ func (ic _InflectionRuleClass) Alloc() InflectionRule { return rv } -func InflectionRule_Alloc() InflectionRule { - return InflectionRuleClass.Alloc() -} - func (ic _InflectionRuleClass) New() InflectionRule { rv := objc.Call[InflectionRule](ic, objc.Sel("new")) rv.Autorelease() @@ -72,21 +68,6 @@ func InflectionRule_CanInflectLanguage(language string) bool { return InflectionRuleClass.CanInflectLanguage(language) } -// 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 -func (ic _InflectionRuleClass) AutomaticRule() InflectionRule { - rv := objc.Call[InflectionRule](ic, objc.Sel("automaticRule")) - return rv -} - -// 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 -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 @@ -101,3 +82,18 @@ func (ic _InflectionRuleClass) CanInflectPreferredLocalization() bool { 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 +func (ic _InflectionRuleClass) AutomaticRule() InflectionRule { + rv := objc.Call[InflectionRule](ic, objc.Sel("automaticRule")) + return rv +} + +// 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 +func InflectionRule_AutomaticRule() InflectionRule { + return InflectionRuleClass.AutomaticRule() +} diff --git a/macos/foundation/inflection_rule_explicit.gen.go b/macos/foundation/inflection_rule_explicit.gen.go index 8056e657..f23e8ec7 100644 --- a/macos/foundation/inflection_rule_explicit.gen.go +++ b/macos/foundation/inflection_rule_explicit.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package foundation @@ -53,10 +53,6 @@ func (ic _InflectionRuleExplicitClass) Alloc() InflectionRuleExplicit { return rv } -func InflectionRuleExplicit_Alloc() InflectionRuleExplicit { - return InflectionRuleExplicitClass.Alloc() -} - func (ic _InflectionRuleExplicitClass) New() InflectionRuleExplicit { rv := objc.Call[InflectionRuleExplicit](ic, objc.Sel("new")) rv.Autorelease() diff --git a/macos/foundation/input_stream.gen.go b/macos/foundation/input_stream.gen.go index 73003b66..8377ab4f 100644 --- a/macos/foundation/input_stream.gen.go +++ b/macos/foundation/input_stream.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package foundation @@ -36,18 +36,6 @@ 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 @@ -76,6 +64,30 @@ 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 @@ -90,18 +102,6 @@ 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:"), objc.Ptr(url)) return rv @@ -119,10 +119,6 @@ func (ic _InputStreamClass) Alloc() InputStream { return rv } -func InputStream_Alloc() InputStream { - return InputStreamClass.Alloc() -} - func (ic _InputStreamClass) New() InputStream { rv := objc.Call[InputStream](ic, objc.Sel("new")) rv.Autorelease() diff --git a/macos/foundation/invocation.gen.go b/macos/foundation/invocation.gen.go index 520d981c..6b7088b8 100644 --- a/macos/foundation/invocation.gen.go +++ b/macos/foundation/invocation.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package foundation @@ -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] @@ -51,10 +51,6 @@ func (ic _InvocationClass) Alloc() Invocation { return rv } -func Invocation_Alloc() Invocation { - return InvocationClass.Alloc() -} - func (ic _InvocationClass) New() Invocation { rv := objc.Call[Invocation](ic, objc.Sel("new")) rv.Autorelease() @@ -70,18 +66,18 @@ func (i_ Invocation) Init() Invocation { return rv } -// Returns by indirection the receiver's argument at a specified index. [Full Topic] +// Gets the receiver's return value. [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/1437832-getreturnvalue?language=objc +func (i_ Invocation) GetReturnValue(retLoc unsafe.Pointer) { + objc.Call[objc.Void](i_, objc.Sel("getReturnValue:"), retLoc) } -// Sets the receiver’s return value. [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/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/1437850-invoke?language=objc +func (i_ Invocation) Invoke() { + objc.Call[objc.Void](i_, objc.Sel("invoke")) } // 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] @@ -91,11 +87,11 @@ func (i_ Invocation) RetainArguments() { objc.Call[objc.Void](i_, objc.Sel("retainArguments")) } -// Sets an argument of the receiver. [Full Topic] +// Returns by indirection the receiver's argument at a specified index. [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/1437830-getargument?language=objc +func (i_ Invocation) GetArgumentAtIndex(argumentLocation unsafe.Pointer, idx int) { + objc.Call[objc.Void](i_, objc.Sel("getArgument:atIndex:"), argumentLocation, idx) } // Returns an NSInvocation object able to construct messages using a given method signature. [Full Topic] @@ -113,18 +109,18 @@ func Invocation_InvocationWithMethodSignature(sig IMethodSignature) Invocation { return InvocationClass.InvocationWithMethodSignature(sig) } -// Gets the receiver's return value. [Full Topic] +// Sets the receiver’s return value. [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/1437848-setreturnvalue?language=objc +func (i_ Invocation) SetReturnValue(retLoc unsafe.Pointer) { + objc.Call[objc.Void](i_, objc.Sel("setReturnValue:"), retLoc) } -// Sends the receiver’s message (with arguments) to its target and sets the return value. [Full Topic] +// Sets an argument of the receiver. [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/1437834-setargument?language=objc +func (i_ Invocation) SetArgumentAtIndex(argumentLocation unsafe.Pointer, idx int) { + objc.Call[objc.Void](i_, objc.Sel("setArgument:atIndex:"), argumentLocation, idx) } // Sets the receiver’s target, sends the receiver’s message (with arguments) to that target, and sets the return value. [Full Topic] @@ -149,21 +145,14 @@ func (i_ Invocation) SetTarget(value objc.IObject) { objc.Call[objc.Void](i_, objc.Sel("setTarget:"), value) } -// 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) -} - // 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 @@ -172,10 +161,17 @@ func (i_ Invocation) ArgumentsRetained() bool { return rv } -// 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) +} diff --git a/macos/foundation/invocation_operation.gen.go b/macos/foundation/invocation_operation.gen.go index bcc9b298..622460f7 100644 --- a/macos/foundation/invocation_operation.gen.go +++ b/macos/foundation/invocation_operation.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package foundation @@ -35,30 +35,30 @@ func InvocationOperationFrom(ptr unsafe.Pointer) InvocationOperation { } } -func (i_ InvocationOperation) InitWithInvocation(inv IInvocation) InvocationOperation { - rv := objc.Call[InvocationOperation](i_, objc.Sel("initWithInvocation:"), objc.Ptr(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 } -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:"), objc.Ptr(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 } @@ -68,10 +68,6 @@ func (ic _InvocationOperationClass) Alloc() InvocationOperation { return rv } -func InvocationOperation_Alloc() InvocationOperation { - return InvocationOperationClass.Alloc() -} - func (ic _InvocationOperationClass) New() InvocationOperation { rv := objc.Call[InvocationOperation](ic, objc.Sel("new")) rv.Autorelease() diff --git a/macos/foundation/is_o8601_date_formatter.gen.go b/macos/foundation/is_o8601_date_formatter.gen.go index 1792ecac..d045cee9 100644 --- a/macos/foundation/is_o8601_date_formatter.gen.go +++ b/macos/foundation/is_o8601_date_formatter.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package foundation @@ -49,10 +49,6 @@ func (ic _ISO8601DateFormatterClass) Alloc() ISO8601DateFormatter { return rv } -func ISO8601DateFormatter_Alloc() ISO8601DateFormatter { - return ISO8601DateFormatterClass.Alloc() -} - func (ic _ISO8601DateFormatterClass) New() ISO8601DateFormatter { rv := objc.Call[ISO8601DateFormatter](ic, objc.Sel("new")) rv.Autorelease() @@ -63,6 +59,21 @@ 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:"), objc.Ptr(date), objc.Ptr(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 2ce3a9d1..06521da6 100644 --- a/macos/foundation/item_provider.gen.go +++ b/macos/foundation/item_provider.gen.go @@ -1,11 +1,10 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package foundation import ( "unsafe" - "github.com/progrium/macdriver/macos/coregraphics" "github.com/progrium/macdriver/objc" ) @@ -19,31 +18,30 @@ type _ItemProviderClass struct { // An interface definition for the [ItemProvider] class. type IItemProvider interface { objc.IObject - 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 ItemProviderWritingWrapper, 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 + HasItemConformingToTypeIdentifier(typeIdentifier string) 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 - PreferredPresentationSize() coregraphics.Size - SetPreferredPresentationSize(value coregraphics.Size) + 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 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] @@ -59,31 +57,36 @@ func ItemProviderFrom(ptr unsafe.Pointer) ItemProvider { } } -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:"), objc.Ptr(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 } -func (i_ ItemProvider) InitWithContentsOfURL(fileURL IURL) ItemProvider { - rv := objc.Call[ItemProvider](i_, objc.Sel("initWithContentsOfURL:"), objc.Ptr(fileURL)) +func (i_ ItemProvider) Init() ItemProvider { + rv := objc.Call[ItemProvider](i_, objc.Sel("init")) return rv } -// Provides data-backed content from an existing file. [Full Topic] +func (i_ ItemProvider) InitWithObject(object PItemProviderWriting) ItemProvider { + po0 := objc.WrapAsProtocol("NSItemProviderWriting", object) + rv := objc.Call[ItemProvider](i_, objc.Sel("initWithObject:"), po0) + 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] // -// [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 } @@ -102,20 +105,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 } -func ItemProvider_Alloc() ItemProvider { - return ItemProviderClass.Alloc() -} - func (ic _ItemProviderClass) New() ItemProvider { rv := objc.Call[ItemProvider](ic, objc.Sel("new")) rv.Autorelease() @@ -126,56 +120,50 @@ func NewItemProvider() ItemProvider { return ItemProviderClass.New() } -// Asynchronously opens a file in place, if possible, 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/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) +// [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 } -// 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 and to specified open-in-place behavior. [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:"), objc.Ptr(aClass), 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 } -// Registers a file-backed representation for an item, specifying file options, item visibility, and a load handler. [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/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) +// [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 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 can load objects of a specified class. [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/2888333-canloadobjectofclass?language=objc +func (i_ ItemProvider) CanLoadObjectOfClass(aClass objc.IClass) bool { + rv := objc.Call[bool](i_, objc.Sel("canLoadObjectOfClass:"), objc.Ptr(aClass)) return rv } -// Loads the preview image for the item that the item provider represents. [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) -} - -// 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] +// 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/2888329-registerobjectofclass?language=objc -func (i_ ItemProvider) RegisterObjectOfClassVisibilityLoadHandler(aClass objc.IClass, visibility ItemProviderRepresentationVisibility, loadHandler func(arg0 func(object ItemProviderWritingWrapper, error Error)) Progress) { - objc.Call[objc.Void](i_, objc.Sel("registerObjectOfClass:visibility:loadHandler:"), objc.Ptr(aClass), visibility, loadHandler) +// [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) } -// Loads the item’s data and coerces it to the specified type. [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/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/2888334-registeredtypeidentifierswithfil?language=objc +func (i_ ItemProvider) RegisteredTypeIdentifiersWithFileOptions(fileOptions ItemProviderFileOptions) []string { + rv := objc.Call[[]string](i_, objc.Sel("registeredTypeIdentifiersWithFileOptions:"), fileOptions) + return rv } // Asynchronously writes a copy of the provided, typed data to a temporary file, returning a progress object. [Full Topic] @@ -186,19 +174,18 @@ func (i_ ItemProvider) LoadFileRepresentationForTypeIdentifierCompletionHandler( return rv } -// Returns a Boolean value indicating whether an item provider can load objects of a specified class. [Full Topic] +// Loads the item’s data and coerces it to the specified type. [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:"), objc.Ptr(aClass)) - return rv +// [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) } -// 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 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/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/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 } @@ -217,49 +204,72 @@ func (i_ ItemProvider) RegisterObjectObjectVisibility(objectObject objc.IObject, objc.Call[objc.Void](i_, objc.Sel("registerObject:visibility:"), objc.Ptr(objectObject), visibility) } -// 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) } -// 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 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 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] +// 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/2888334-registeredtypeidentifierswithfil?language=objc -func (i_ ItemProvider) RegisteredTypeIdentifiersWithFileOptions(fileOptions ItemProviderFileOptions) []string { - rv := objc.Call[[]string](i_, objc.Sel("registeredTypeIdentifiersWithFileOptions:"), 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:"), objc.Ptr(aClass), completionHandler) return rv } -// The ideal presentation size of the item. [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/1528574-preferredpresentationsize?language=objc -func (i_ ItemProvider) PreferredPresentationSize() coregraphics.Size { - rv := objc.Call[coregraphics.Size](i_, objc.Sel("preferredPresentationSize")) +// [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:"), objc.Ptr(aClass), visibility, loadHandler) +} + +// 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 +} + +// 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 ideal presentation size of the item. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/foundation/nsitemprovider/1528574-preferredpresentationsize?language=objc -func (i_ ItemProvider) SetPreferredPresentationSize(value coregraphics.Size) { - objc.Call[objc.Void](i_, objc.Sel("setPreferredPresentationSize:"), value) +func (i_ ItemProvider) PreferredPresentationSize() Size { + rv := objc.Call[Size](i_, objc.Sel("preferredPresentationSize")) + return rv } // The custom preview image handler block for the item provider. [Full Topic] @@ -285,21 +295,6 @@ 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 @@ -307,11 +302,3 @@ 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.gen.go b/macos/foundation/item_provider_writing_protocol.gen.go similarity index 50% rename from macos/foundation/item_provider_writing.gen.go rename to macos/foundation/item_provider_writing_protocol.gen.go index 668656b3..8c791641 100644 --- a/macos/foundation/item_provider_writing.gen.go +++ b/macos/foundation/item_provider_writing_protocol.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package foundation @@ -11,55 +11,42 @@ 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)) IProgress + LoadDataWithTypeIdentifierForItemProviderCompletionHandler(typeIdentifier string, completionHandler func(data []byte, error Error)) Progress HasLoadDataWithTypeIdentifierForItemProviderCompletionHandler() bool // optional - WritableTypeIdentifiersForItemProvider() []string - HasWritableTypeIdentifiersForItemProvider() bool + ItemProviderVisibilityForRepresentationWithTypeIdentifier_(typeIdentifier string) ItemProviderRepresentationVisibility + HasItemProviderVisibilityForRepresentationWithTypeIdentifier_() bool } -// A concrete type wrapper for the [PItemProviderWriting] protocol. -type ItemProviderWritingWrapper struct { - objc.Object -} +// ensure impl type implements protocol interface +var _ PItemProviderWriting = (*ItemProviderWritingObject)(nil) -func (i_ ItemProviderWritingWrapper) 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_ ItemProviderWritingWrapper) ItemProviderVisibilityForRepresentationWithTypeIdentifier(typeIdentifier string) ItemProviderRepresentationVisibility { - rv := objc.Call[ItemProviderRepresentationVisibility](i_, objc.Sel("itemProviderVisibilityForRepresentationWithTypeIdentifier:"), typeIdentifier) - return rv +// A concrete type for the [PItemProviderWriting] protocol. +type ItemProviderWritingObject struct { + objc.Object } -func (i_ ItemProviderWritingWrapper) HasLoadDataWithTypeIdentifierForItemProviderCompletionHandler() bool { +func (i_ ItemProviderWritingObject) HasLoadDataWithTypeIdentifierForItemProviderCompletionHandler() bool { return i_.RespondsToSelector(objc.Sel("loadDataWithTypeIdentifier:forItemProviderCompletionHandler:")) } // Loads data of a particular type, identified by the given UTI. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/foundation/nsitemproviderwriting/2888302-loaddatawithtypeidentifier?language=objc -func (i_ ItemProviderWritingWrapper) LoadDataWithTypeIdentifierForItemProviderCompletionHandler(typeIdentifier string, completionHandler func(data []byte, error Error)) Progress { +func (i_ ItemProviderWritingObject) LoadDataWithTypeIdentifierForItemProviderCompletionHandler(typeIdentifier string, completionHandler func(data []byte, error Error)) Progress { rv := objc.Call[Progress](i_, objc.Sel("loadDataWithTypeIdentifier:forItemProviderCompletionHandler:"), typeIdentifier, completionHandler) return rv } -func (i_ ItemProviderWritingWrapper) HasWritableTypeIdentifiersForItemProvider() bool { - return i_.RespondsToSelector(objc.Sel("writableTypeIdentifiersForItemProvider")) +func (i_ ItemProviderWritingObject) HasItemProviderVisibilityForRepresentationWithTypeIdentifier_() bool { + return i_.RespondsToSelector(objc.Sel("itemProviderVisibilityForRepresentationWithTypeIdentifier:")) } -// An array of UTI strings representing the types of data that can be loaded for an item provider. [Full Topic] +// Asks the item provider for the representation visibility specification for the given UTI. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsitemproviderwriting/2888299-writabletypeidentifiersforitempr?language=objc -func (i_ ItemProviderWritingWrapper) WritableTypeIdentifiersForItemProvider() []string { - rv := objc.Call[[]string](i_, objc.Sel("writableTypeIdentifiersForItemProvider")) +// [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 } diff --git a/macos/foundation/json_serialization.gen.go b/macos/foundation/json_serialization.gen.go index f7c49c5a..ff8b1d1d 100644 --- a/macos/foundation/json_serialization.gen.go +++ b/macos/foundation/json_serialization.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package foundation @@ -38,10 +38,6 @@ func (jc _JSONSerializationClass) Alloc() JSONSerialization { return rv } -func JSONSerialization_Alloc() JSONSerialization { - return JSONSerializationClass.Alloc() -} - func (jc _JSONSerializationClass) New() JSONSerialization { rv := objc.Call[JSONSerialization](jc, objc.Sel("new")) rv.Autorelease() @@ -57,21 +53,6 @@ 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 IError) objc.Object { - rv := objc.Call[objc.Object](jc, objc.Sel("JSONObjectWithStream:options:error:"), objc.Ptr(stream), opt, objc.Ptr(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 IError) 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 @@ -87,21 +68,6 @@ func JSONSerialization_JSONObjectWithDataOptionsError(data []byte, opt JSONReadi return JSONSerializationClass.JSONObjectWithDataOptionsError(data, opt, error) } -// Writes a given JSON object to a stream. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsjsonserialization/1417433-writejsonobject?language=objc -func (jc _JSONSerializationClass) WriteJSONObjectToStreamOptionsError(obj objc.IObject, stream IOutputStream, opt JSONWritingOptions, error IError) int { - rv := objc.Call[int](jc, objc.Sel("writeJSONObject:toStream:options:error:"), obj, objc.Ptr(stream), opt, objc.Ptr(error)) - return rv -} - -// Writes a given JSON object to a stream. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsjsonserialization/1417433-writejsonobject?language=objc -func JSONSerialization_WriteJSONObjectToStreamOptionsError(obj objc.IObject, stream IOutputStream, opt JSONWritingOptions, error IError) int { - 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 @@ -117,6 +83,21 @@ 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 +func (jc _JSONSerializationClass) WriteJSONObjectToStreamOptionsError(obj objc.IObject, stream IOutputStream, opt JSONWritingOptions, error IError) int { + rv := objc.Call[int](jc, objc.Sel("writeJSONObject:toStream:options:error:"), obj, objc.Ptr(stream), opt, objc.Ptr(error)) + return rv +} + +// Writes a given JSON object to a stream. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsjsonserialization/1417433-writejsonobject?language=objc +func JSONSerialization_WriteJSONObjectToStreamOptionsError(obj objc.IObject, stream IOutputStream, opt JSONWritingOptions, error IError) int { + return JSONSerializationClass.WriteJSONObjectToStreamOptionsError(obj, stream, opt, error) +} + // Returns JSON data from a Foundation object. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/foundation/nsjsonserialization/1413636-datawithjsonobject?language=objc @@ -131,3 +112,18 @@ func (jc _JSONSerializationClass) DataWithJSONObjectOptionsError(obj objc.IObjec func JSONSerialization_DataWithJSONObjectOptionsError(obj objc.IObject, opt JSONWritingOptions, error IError) []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 IError) objc.Object { + rv := objc.Call[objc.Object](jc, objc.Sel("JSONObjectWithStream:options:error:"), objc.Ptr(stream), opt, objc.Ptr(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 IError) 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 e2e1622f..0ad0330b 100644 --- a/macos/foundation/keyed_archiver.gen.go +++ b/macos/foundation/keyed_archiver.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package foundation @@ -18,15 +18,12 @@ type _KeyedArchiverClass struct { // An interface definition for the [KeyedArchiver] class. type IKeyedArchiver interface { ICoder - EncodeObjectForKey(object objc.IObject, key string) - EncodeConditionalObjectForKey(object objc.IObject, key string) + ClassNameForClass_(cls objc.IClass) string + SetClassNameForClass_(codedName string, cls objc.IClass) 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() KeyedArchiverDelegateWrapper + Delegate() KeyedArchiverDelegateObject SetDelegate(value PKeyedArchiverDelegate) SetDelegateObject(valueObject objc.IObject) EncodedData() []byte @@ -65,10 +62,6 @@ func (kc _KeyedArchiverClass) Alloc() KeyedArchiver { return rv } -func KeyedArchiver_Alloc() KeyedArchiver { - return KeyedArchiverClass.Alloc() -} - func (kc _KeyedArchiverClass) New() KeyedArchiver { rv := objc.Call[KeyedArchiver](kc, objc.Sel("new")) rv.Autorelease() @@ -84,31 +77,10 @@ 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:"), objc.Ptr(cls)) return rv } @@ -116,15 +88,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, objc.Ptr(cls)) } -// Encodes a given number of bytes from a given C array of bytes and associates them with a key. [Full Topic] +// Instructs the receiver to construct the final data stream. [Full Topic] // -// [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) +// [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")) } // Encodes an object graph with the given root object into a data representation, optionally requiring secure coding. [Full Topic] @@ -160,8 +132,8 @@ func (k_ KeyedArchiver) SetOutputFormat(value PropertyListFormat) { // The archiver’s delegate. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/foundation/nskeyedarchiver/1412809-delegate?language=objc -func (k_ KeyedArchiver) Delegate() KeyedArchiverDelegateWrapper { - rv := objc.Call[KeyedArchiverDelegateWrapper](k_, objc.Sel("delegate")) +func (k_ KeyedArchiver) Delegate() KeyedArchiverDelegateObject { + rv := objc.Call[KeyedArchiverDelegateObject](k_, objc.Sel("delegate")) return rv } diff --git a/macos/foundation/keyed_archiver_delegate.gen.go b/macos/foundation/keyed_archiver_delegate.gen.go index 09ad5d9d..975d768c 100644 --- a/macos/foundation/keyed_archiver_delegate.gen.go +++ b/macos/foundation/keyed_archiver_delegate.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package foundation @@ -11,41 +11,68 @@ import ( // [Full Topic]: https://developer.apple.com/documentation/foundation/nskeyedarchiverdelegate?language=objc type PKeyedArchiverDelegate interface { // optional - ArchiverWillReplaceObjectWithObject(archiver KeyedArchiver, object objc.Object, newObject objc.Object) - HasArchiverWillReplaceObjectWithObject() bool + ArchiverDidEncodeObject(archiver KeyedArchiver, object objc.Object) + HasArchiverDidEncodeObject() bool + + // optional + ArchiverWillFinish(archiver KeyedArchiver) + HasArchiverWillFinish() bool // optional ArchiverDidFinish(archiver KeyedArchiver) HasArchiverDidFinish() bool // optional - ArchiverWillFinish(archiver KeyedArchiver) - HasArchiverWillFinish() bool + ArchiverWillEncodeObject(archiver KeyedArchiver, object objc.Object) objc.Object + HasArchiverWillEncodeObject() bool + + // optional + ArchiverWillReplaceObjectWithObject(archiver KeyedArchiver, object objc.Object, newObject objc.Object) + HasArchiverWillReplaceObjectWithObject() bool } // A delegate implementation builder for the [PKeyedArchiverDelegate] protocol. type KeyedArchiverDelegate struct { - _ArchiverWillReplaceObjectWithObject func(archiver KeyedArchiver, object objc.Object, newObject objc.Object) - _ArchiverDidFinish func(archiver KeyedArchiver) + _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) } -func (di *KeyedArchiverDelegate) HasArchiverWillReplaceObjectWithObject() bool { - return di._ArchiverWillReplaceObjectWithObject != nil +func (di *KeyedArchiverDelegate) HasArchiverDidEncodeObject() bool { + return di._ArchiverDidEncodeObject != nil } -// Informs the delegate that one given object is being substituted for another given object. [Full Topic] +// Informs the delegate that a given object has been encoded. [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/1416193-archiver?language=objc +func (di *KeyedArchiverDelegate) SetArchiverDidEncodeObject(f func(archiver KeyedArchiver, object objc.Object)) { + di._ArchiverDidEncodeObject = f } -// Informs the delegate that one given object is being substituted for another given object. [Full Topic] +// Informs the delegate that a given object has been encoded. [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/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 +} + +// Notifies the delegate that encoding is about to finish. [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 +} + +// Notifies the delegate that encoding is about to finish. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/foundation/nskeyedarchiverdelegate/1411119-archiverwillfinish?language=objc +func (di *KeyedArchiverDelegate) ArchiverWillFinish(archiver KeyedArchiver) { + di._ArchiverWillFinish(archiver) } func (di *KeyedArchiverDelegate) HasArchiverDidFinish() bool { return di._ArchiverDidFinish != nil @@ -64,58 +91,101 @@ func (di *KeyedArchiverDelegate) SetArchiverDidFinish(f func(archiver KeyedArchi func (di *KeyedArchiverDelegate) ArchiverDidFinish(archiver KeyedArchiver) { di._ArchiverDidFinish(archiver) } -func (di *KeyedArchiverDelegate) HasArchiverWillFinish() bool { - return di._ArchiverWillFinish != nil +func (di *KeyedArchiverDelegate) HasArchiverWillEncodeObject() bool { + return di._ArchiverWillEncodeObject != nil } -// Notifies the delegate that encoding is about to finish. [Full Topic] +// Informs the delegate that object is about to be encoded. [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/1409228-archiver?language=objc +func (di *KeyedArchiverDelegate) SetArchiverWillEncodeObject(f func(archiver KeyedArchiver, object objc.Object) objc.Object) { + di._ArchiverWillEncodeObject = f } -// Notifies the delegate that encoding is about to finish. [Full Topic] +// Informs the delegate that object is about to be encoded. [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/1409228-archiver?language=objc +func (di *KeyedArchiverDelegate) ArchiverWillEncodeObject(archiver KeyedArchiver, object objc.Object) objc.Object { + return di._ArchiverWillEncodeObject(archiver, object) } - -// A concrete type wrapper for the [PKeyedArchiverDelegate] protocol. -type KeyedArchiverDelegateWrapper struct { - objc.Object +func (di *KeyedArchiverDelegate) HasArchiverWillReplaceObjectWithObject() bool { + return di._ArchiverWillReplaceObjectWithObject != nil } -func (k_ KeyedArchiverDelegateWrapper) HasArchiverWillReplaceObjectWithObject() bool { - return k_.RespondsToSelector(objc.Sel("archiver:willReplaceObject:withObject:")) +// 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/1409389-archiver?language=objc +func (di *KeyedArchiverDelegate) SetArchiverWillReplaceObjectWithObject(f func(archiver KeyedArchiver, object objc.Object, newObject objc.Object)) { + di._ArchiverWillReplaceObjectWithObject = f } // 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/1409389-archiver?language=objc -func (k_ KeyedArchiverDelegateWrapper) ArchiverWillReplaceObjectWithObject(archiver IKeyedArchiver, object objc.IObject, newObject objc.IObject) { - objc.Call[objc.Void](k_, objc.Sel("archiver:willReplaceObject:withObject:"), objc.Ptr(archiver), object, newObject) +func (di *KeyedArchiverDelegate) ArchiverWillReplaceObjectWithObject(archiver KeyedArchiver, object objc.Object, newObject objc.Object) { + di._ArchiverWillReplaceObjectWithObject(archiver, object, newObject) } -func (k_ KeyedArchiverDelegateWrapper) HasArchiverDidFinish() bool { - return k_.RespondsToSelector(objc.Sel("archiverDidFinish:")) +// ensure impl type implements protocol interface +var _ PKeyedArchiverDelegate = (*KeyedArchiverDelegateObject)(nil) + +// A concrete type for the [PKeyedArchiverDelegate] protocol. +type KeyedArchiverDelegateObject struct { + objc.Object } -// Notifies the delegate that encoding has finished. [Full Topic] +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/1412480-archiverdidfinish?language=objc -func (k_ KeyedArchiverDelegateWrapper) ArchiverDidFinish(archiver IKeyedArchiver) { - objc.Call[objc.Void](k_, objc.Sel("archiverDidFinish:"), objc.Ptr(archiver)) +// [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:"), objc.Ptr(archiver), object) } -func (k_ KeyedArchiverDelegateWrapper) HasArchiverWillFinish() bool { +func (k_ KeyedArchiverDelegateObject) HasArchiverWillFinish() bool { return k_.RespondsToSelector(objc.Sel("archiverWillFinish:")) } // Notifies the delegate that encoding is about to finish. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/foundation/nskeyedarchiverdelegate/1411119-archiverwillfinish?language=objc -func (k_ KeyedArchiverDelegateWrapper) ArchiverWillFinish(archiver IKeyedArchiver) { +func (k_ KeyedArchiverDelegateObject) ArchiverWillFinish(archiver KeyedArchiver) { objc.Call[objc.Void](k_, objc.Sel("archiverWillFinish:"), objc.Ptr(archiver)) } + +func (k_ KeyedArchiverDelegateObject) HasArchiverDidFinish() bool { + return k_.RespondsToSelector(objc.Sel("archiverDidFinish:")) +} + +// Notifies the delegate that encoding has finished. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/foundation/nskeyedarchiverdelegate/1412480-archiverdidfinish?language=objc +func (k_ KeyedArchiverDelegateObject) ArchiverDidFinish(archiver KeyedArchiver) { + objc.Call[objc.Void](k_, objc.Sel("archiverDidFinish:"), objc.Ptr(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:"), objc.Ptr(archiver), object) + return rv +} + +func (k_ KeyedArchiverDelegateObject) HasArchiverWillReplaceObjectWithObject() bool { + return k_.RespondsToSelector(objc.Sel("archiver:willReplaceObject:withObject:")) +} + +// 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/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:"), objc.Ptr(archiver), object, newObject) +} diff --git a/macos/foundation/keyed_unarchiver.gen.go b/macos/foundation/keyed_unarchiver.gen.go index cebc35b9..1045b7e2 100644 --- a/macos/foundation/keyed_unarchiver.gen.go +++ b/macos/foundation/keyed_unarchiver.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package foundation @@ -18,12 +18,12 @@ type _KeyedUnarchiverClass struct { // An interface definition for the [KeyedUnarchiver] class. type IKeyedUnarchiver interface { ICoder - SetClassForClassName(cls objc.IClass, codedName string) + ClassForClassName_(codedName string) objc.Class FinishDecoding() - SetDecodingFailurePolicy(value DecodingFailurePolicy) - Delegate() KeyedUnarchiverDelegateWrapper + Delegate() KeyedUnarchiverDelegateObject SetDelegate(value PKeyedUnarchiverDelegate) SetDelegateObject(valueObject objc.IObject) + SetDecodingFailurePolicy(value DecodingFailurePolicy) SetRequiresSecureCoding(value bool) } @@ -59,10 +59,6 @@ func (kc _KeyedUnarchiverClass) Alloc() KeyedUnarchiver { return rv } -func KeyedUnarchiver_Alloc() KeyedUnarchiver { - return KeyedUnarchiverClass.Alloc() -} - func (kc _KeyedUnarchiverClass) New() KeyedUnarchiver { rv := objc.Call[KeyedUnarchiver](kc, objc.Sel("new")) rv.Autorelease() @@ -78,34 +74,27 @@ func (k_ KeyedUnarchiver) Init() KeyedUnarchiver { return rv } -// Decodes a previously-archived object graph, that returns the root object as the specified type. [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/2962884-unarchivedobjectofclass?language=objc -func (kc _KeyedUnarchiverClass) UnarchivedObjectOfClassFromDataError(cls objc.IClass, data []byte, error IError) objc.Object { - rv := objc.Call[objc.Object](kc, objc.Sel("unarchivedObjectOfClass:fromData:error:"), objc.Ptr(cls), data, objc.Ptr(error)) +// [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) return rv } -// 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 IError) 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] // -// [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) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nskeyedunarchiver/3563984-unarchiveddictionarywithkeysofcl?language=objc +func (kc _KeyedUnarchiverClass) UnarchivedDictionaryWithKeysOfClassesObjectsOfClassesFromDataError(keyClasses ISet, valueClasses ISet, data []byte, error IError) Dictionary { + rv := objc.Call[Dictionary](kc, objc.Sel("unarchivedDictionaryWithKeysOfClasses:objectsOfClasses:fromData:error:"), objc.Ptr(keyClasses), objc.Ptr(valueClasses), data, objc.Ptr(error)) return rv } -// Returns the class from which this unarchiver instantiates an encoded object with a given class name. [Full Topic] +// [Full Topic] // -// [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]: https://developer.apple.com/documentation/foundation/nskeyedunarchiver/3563984-unarchiveddictionarywithkeysofcl?language=objc +func KeyedUnarchiver_UnarchivedDictionaryWithKeysOfClassesObjectsOfClassesFromDataError(keyClasses ISet, valueClasses ISet, data []byte, error IError) Dictionary { + return KeyedUnarchiverClass.UnarchivedDictionaryWithKeysOfClassesObjectsOfClassesFromDataError(keyClasses, valueClasses, data, error) } // [Full Topic] @@ -123,41 +112,40 @@ func KeyedUnarchiver_UnarchivedDictionaryWithKeysOfClassObjectsOfClassFromDataEr return KeyedUnarchiverClass.UnarchivedDictionaryWithKeysOfClassObjectsOfClassFromDataError(keyCls, valueCls, data, error) } -// 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] +// 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/1414659-setclass?language=objc -func (k_ KeyedUnarchiver) SetClassForClassName(cls objc.IClass, codedName string) { - objc.Call[objc.Void](k_, objc.Sel("setClass:forClassName:"), objc.Ptr(cls), codedName) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nskeyedunarchiver/2962884-unarchivedobjectofclass?language=objc +func (kc _KeyedUnarchiverClass) UnarchivedObjectOfClassFromDataError(cls objc.IClass, data []byte, error IError) objc.Object { + rv := objc.Call[objc.Object](kc, objc.Sel("unarchivedObjectOfClass:fromData:error:"), objc.Ptr(cls), data, objc.Ptr(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/3563981-unarchivedarrayofobjectsofclass?language=objc -func (kc _KeyedUnarchiverClass) UnarchivedArrayOfObjectsOfClassFromDataError(cls objc.IClass, data []byte, error IError) []objc.Object { - rv := objc.Call[[]objc.Object](kc, objc.Sel("unarchivedArrayOfObjectsOfClass:fromData:error:"), objc.Ptr(cls), data, objc.Ptr(error)) - return rv +// [Full Topic]: https://developer.apple.com/documentation/foundation/nskeyedunarchiver/2962884-unarchivedobjectofclass?language=objc +func KeyedUnarchiver_UnarchivedObjectOfClassFromDataError(cls objc.IClass, data []byte, error IError) objc.Object { + return KeyedUnarchiverClass.UnarchivedObjectOfClassFromDataError(cls, data, error) } -// [Full Topic] +// Tells the receiver that you are finished decoding objects. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nskeyedunarchiver/3563981-unarchivedarrayofobjectsofclass?language=objc -func KeyedUnarchiver_UnarchivedArrayOfObjectsOfClassFromDataError(cls objc.IClass, data []byte, error IError) []objc.Object { - return KeyedUnarchiverClass.UnarchivedArrayOfObjectsOfClassFromDataError(cls, data, error) +// [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] +// Sets a global translation mapping 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/2962885-unarchivedobjectofclasses?language=objc -func (kc _KeyedUnarchiverClass) UnarchivedObjectOfClassesFromDataError(classes ISet, data []byte, error IError) objc.Object { - rv := objc.Call[objc.Object](kc, objc.Sel("unarchivedObjectOfClasses:fromData:error:"), objc.Ptr(classes), data, objc.Ptr(error)) - return rv +// [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:"), objc.Ptr(cls), codedName) } -// Decodes a previously-archived object graph, returning the root object as one of the specified classes. [Full Topic] +// Sets a global translation mapping 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/2962885-unarchivedobjectofclasses?language=objc -func KeyedUnarchiver_UnarchivedObjectOfClassesFromDataError(classes ISet, data []byte, error IError) objc.Object { - return KeyedUnarchiverClass.UnarchivedObjectOfClassesFromDataError(classes, data, error) +// [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] @@ -175,25 +163,41 @@ func KeyedUnarchiver_UnarchivedArrayOfObjectsOfClassesFromDataError(classes ISet return KeyedUnarchiverClass.UnarchivedArrayOfObjectsOfClassesFromDataError(classes, data, error) } -// 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 (kc _KeyedUnarchiverClass) UnarchivedArrayOfObjectsOfClassFromDataError(cls objc.IClass, data []byte, error IError) []objc.Object { + rv := objc.Call[[]objc.Object](kc, objc.Sel("unarchivedArrayOfObjectsOfClass:fromData:error:"), objc.Ptr(cls), data, objc.Ptr(error)) + return rv } -// The action to take when this unarchiver fails to decode an entry. [Full Topic] +// [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) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nskeyedunarchiver/3563981-unarchivedarrayofobjectsofclass?language=objc +func KeyedUnarchiver_UnarchivedArrayOfObjectsOfClassFromDataError(cls objc.IClass, data []byte, error IError) []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] +// +// [Full Topic]: https://developer.apple.com/documentation/foundation/nskeyedunarchiver/2962885-unarchivedobjectofclasses?language=objc +func (kc _KeyedUnarchiverClass) UnarchivedObjectOfClassesFromDataError(classes ISet, data []byte, error IError) objc.Object { + rv := objc.Call[objc.Object](kc, objc.Sel("unarchivedObjectOfClasses:fromData:error:"), objc.Ptr(classes), data, objc.Ptr(error)) + return rv +} + +// 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/2962885-unarchivedobjectofclasses?language=objc +func KeyedUnarchiver_UnarchivedObjectOfClassesFromDataError(classes ISet, data []byte, error IError) objc.Object { + return KeyedUnarchiverClass.UnarchivedObjectOfClassesFromDataError(classes, data, error) } // The receiver’s delegate. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/foundation/nskeyedunarchiver/1415688-delegate?language=objc -func (k_ KeyedUnarchiver) Delegate() KeyedUnarchiverDelegateWrapper { - rv := objc.Call[KeyedUnarchiverDelegateWrapper](k_, objc.Sel("delegate")) +func (k_ KeyedUnarchiver) Delegate() KeyedUnarchiverDelegateObject { + rv := objc.Call[KeyedUnarchiverDelegateObject](k_, objc.Sel("delegate")) return rv } @@ -212,6 +216,13 @@ func (k_ KeyedUnarchiver) SetDelegateObject(valueObject objc.IObject) { objc.Call[objc.Void](k_, objc.Sel("setDelegate:"), objc.Ptr(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 d6c648bb..0b1dcddb 100644 --- a/macos/foundation/keyed_unarchiver_delegate.gen.go +++ b/macos/foundation/keyed_unarchiver_delegate.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package foundation @@ -10,13 +10,21 @@ 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 - UnarchiverDidFinish(unarchiver KeyedUnarchiver) - HasUnarchiverDidFinish() bool + UnarchiverDidDecodeObject(unarchiver KeyedUnarchiver, object objc.Object) objc.Object + HasUnarchiverDidDecodeObject() bool // optional UnarchiverWillReplaceObjectWithObject(unarchiver KeyedUnarchiver, object objc.Object, newObject objc.Object) @@ -25,11 +33,47 @@ type PKeyedUnarchiverDelegate interface { // A delegate implementation builder for the [PKeyedUnarchiverDelegate] protocol. type KeyedUnarchiverDelegate struct { - _UnarchiverWillFinish func(unarchiver KeyedUnarchiver) - _UnarchiverDidFinish func(unarchiver KeyedUnarchiver) - _UnarchiverWillReplaceObjectWithObject func(unarchiver KeyedUnarchiver, object objc.Object, newObject objc.Object) + _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 +} + +// 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 } @@ -47,22 +91,22 @@ func (di *KeyedUnarchiverDelegate) SetUnarchiverWillFinish(f func(unarchiver Key func (di *KeyedUnarchiverDelegate) UnarchiverWillFinish(unarchiver KeyedUnarchiver) { di._UnarchiverWillFinish(unarchiver) } -func (di *KeyedUnarchiverDelegate) HasUnarchiverDidFinish() bool { - return di._UnarchiverDidFinish != nil +func (di *KeyedUnarchiverDelegate) HasUnarchiverDidDecodeObject() bool { + return di._UnarchiverDidDecodeObject != nil } -// Notifies the delegate that decoding has finished. [Full Topic] +// Informs the delegate that a given object has been decoded. [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 +// [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 } -// Notifies the delegate that decoding has finished. [Full Topic] +// Informs the delegate that a given object has been decoded. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nskeyedunarchiverdelegate/1418067-unarchiverdidfinish?language=objc -func (di *KeyedUnarchiverDelegate) UnarchiverDidFinish(unarchiver KeyedUnarchiver) { - di._UnarchiverDidFinish(unarchiver) +// [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) } func (di *KeyedUnarchiverDelegate) HasUnarchiverWillReplaceObjectWithObject() bool { return di._UnarchiverWillReplaceObjectWithObject != nil @@ -82,40 +126,67 @@ func (di *KeyedUnarchiverDelegate) UnarchiverWillReplaceObjectWithObject(unarchi di._UnarchiverWillReplaceObjectWithObject(unarchiver, object, newObject) } -// A concrete type wrapper for the [PKeyedUnarchiverDelegate] protocol. -type KeyedUnarchiverDelegateWrapper struct { +// ensure impl type implements protocol interface +var _ PKeyedUnarchiverDelegate = (*KeyedUnarchiverDelegateObject)(nil) + +// A concrete type for the [PKeyedUnarchiverDelegate] protocol. +type KeyedUnarchiverDelegateObject struct { objc.Object } -func (k_ KeyedUnarchiverDelegateWrapper) HasUnarchiverWillFinish() bool { +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:"), objc.Ptr(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:"), objc.Ptr(unarchiver), name, classNames) + return rv +} + +func (k_ KeyedUnarchiverDelegateObject) HasUnarchiverWillFinish() bool { return k_.RespondsToSelector(objc.Sel("unarchiverWillFinish:")) } // Notifies the delegate that decoding is about to finish. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/foundation/nskeyedunarchiverdelegate/1415305-unarchiverwillfinish?language=objc -func (k_ KeyedUnarchiverDelegateWrapper) UnarchiverWillFinish(unarchiver IKeyedUnarchiver) { +func (k_ KeyedUnarchiverDelegateObject) UnarchiverWillFinish(unarchiver KeyedUnarchiver) { objc.Call[objc.Void](k_, objc.Sel("unarchiverWillFinish:"), objc.Ptr(unarchiver)) } -func (k_ KeyedUnarchiverDelegateWrapper) HasUnarchiverDidFinish() bool { - return k_.RespondsToSelector(objc.Sel("unarchiverDidFinish:")) +func (k_ KeyedUnarchiverDelegateObject) HasUnarchiverDidDecodeObject() bool { + return k_.RespondsToSelector(objc.Sel("unarchiver:didDecodeObject:")) } -// Notifies the delegate that decoding has finished. [Full Topic] +// Informs the delegate that a given object has been decoded. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nskeyedunarchiverdelegate/1418067-unarchiverdidfinish?language=objc -func (k_ KeyedUnarchiverDelegateWrapper) UnarchiverDidFinish(unarchiver IKeyedUnarchiver) { - objc.Call[objc.Void](k_, objc.Sel("unarchiverDidFinish:"), objc.Ptr(unarchiver)) +// [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:"), objc.Ptr(unarchiver), object) + return rv } -func (k_ KeyedUnarchiverDelegateWrapper) HasUnarchiverWillReplaceObjectWithObject() bool { +func (k_ KeyedUnarchiverDelegateObject) HasUnarchiverWillReplaceObjectWithObject() bool { return k_.RespondsToSelector(objc.Sel("unarchiver:willReplaceObject:withObject:")) } // Informs the delegate that one object is being substituted for another. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/foundation/nskeyedunarchiverdelegate/1413012-unarchiver?language=objc -func (k_ KeyedUnarchiverDelegateWrapper) UnarchiverWillReplaceObjectWithObject(unarchiver IKeyedUnarchiver, object objc.IObject, newObject objc.IObject) { +func (k_ KeyedUnarchiverDelegateObject) UnarchiverWillReplaceObjectWithObject(unarchiver KeyedUnarchiver, object objc.Object, newObject objc.Object) { objc.Call[objc.Void](k_, objc.Sel("unarchiver:willReplaceObject:withObject:"), objc.Ptr(unarchiver), object, newObject) } diff --git a/macos/foundation/length_formatter.gen.go b/macos/foundation/length_formatter.gen.go index 608014a4..918397d6 100644 --- a/macos/foundation/length_formatter.gen.go +++ b/macos/foundation/length_formatter.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package foundation @@ -18,16 +18,16 @@ type _LengthFormatterClass struct { // An interface definition for the [LengthFormatter] class. type ILengthFormatter interface { IFormatter - StringFromValueUnit(value float64, unit LengthFormatterUnit) string StringFromMeters(numberInMeters float64) string - UnitStringFromValueUnit(value float64, unit LengthFormatterUnit) string UnitStringFromMetersUsedUnit(numberInMeters float64, unitp *LengthFormatterUnit) string + StringFromValueUnit(value float64, unit LengthFormatterUnit) string + UnitStringFromValueUnit(value float64, unit LengthFormatterUnit) string IsForPersonHeightUse() bool SetForPersonHeightUse(value bool) - UnitStyle() FormattingUnitStyle - SetUnitStyle(value FormattingUnitStyle) NumberFormatter() NumberFormatter SetNumberFormatter(value INumberFormatter) + UnitStyle() FormattingUnitStyle + SetUnitStyle(value FormattingUnitStyle) } // A formatter that provides localized descriptions of linear distances, such as length and height measurements. [Full Topic] @@ -48,10 +48,6 @@ func (lc _LengthFormatterClass) Alloc() LengthFormatter { return rv } -func LengthFormatter_Alloc() LengthFormatter { - return LengthFormatterClass.Alloc() -} - func (lc _LengthFormatterClass) New() LengthFormatter { rv := objc.Call[LengthFormatter](lc, objc.Sel("new")) rv.Autorelease() @@ -67,14 +63,6 @@ func (l_ LengthFormatter) Init() LengthFormatter { 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 -func (l_ LengthFormatter) StringFromValueUnit(value float64, unit LengthFormatterUnit) string { - rv := objc.Call[string](l_, objc.Sel("stringFromValue:unit:"), value, unit) - 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 @@ -83,14 +71,6 @@ func (l_ LengthFormatter) StringFromMeters(numberInMeters 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/nslengthformatter/1416076-unitstringfromvalue?language=objc -func (l_ LengthFormatter) UnitStringFromValueUnit(value float64, unit LengthFormatterUnit) string { - rv := objc.Call[string](l_, 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/nslengthformatter/1407661-unitstringfrommeters?language=objc @@ -99,6 +79,22 @@ func (l_ LengthFormatter) UnitStringFromMetersUsedUnit(numberInMeters float64, u 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 +func (l_ LengthFormatter) StringFromValueUnit(value float64, unit LengthFormatterUnit) string { + rv := objc.Call[string](l_, objc.Sel("stringFromValue:unit:"), value, unit) + 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 +func (l_ LengthFormatter) UnitStringFromValueUnit(value float64, unit LengthFormatterUnit) string { + rv := objc.Call[string](l_, objc.Sel("unitStringFromValue:unit:"), value, unit) + 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 @@ -114,21 +110,6 @@ func (l_ LengthFormatter) SetForPersonHeightUse(value bool) { objc.Call[objc.Void](l_, objc.Sel("setForPersonHeightUse:"), value) } -// The unit style used by this formatter. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/foundation/nslengthformatter/1409965-unitstyle?language=objc -func (l_ LengthFormatter) UnitStyle() FormattingUnitStyle { - rv := objc.Call[FormattingUnitStyle](l_, objc.Sel("unitStyle")) - return rv -} - -// The unit style used by this formatter. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/foundation/nslengthformatter/1409965-unitstyle?language=objc -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 @@ -143,3 +124,18 @@ func (l_ LengthFormatter) NumberFormatter() NumberFormatter { func (l_ LengthFormatter) SetNumberFormatter(value INumberFormatter) { objc.Call[objc.Void](l_, objc.Sel("setNumberFormatter:"), objc.Ptr(value)) } + +// The unit style used by this formatter. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/foundation/nslengthformatter/1409965-unitstyle?language=objc +func (l_ LengthFormatter) UnitStyle() FormattingUnitStyle { + rv := objc.Call[FormattingUnitStyle](l_, objc.Sel("unitStyle")) + return rv +} + +// The unit style used by this formatter. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/foundation/nslengthformatter/1409965-unitstyle?language=objc +func (l_ LengthFormatter) SetUnitStyle(value FormattingUnitStyle) { + objc.Call[objc.Void](l_, objc.Sel("setUnitStyle:"), value) +} diff --git a/macos/foundation/linguistic_tagger.gen.go b/macos/foundation/linguistic_tagger.gen.go index 7b291650..628054c3 100644 --- a/macos/foundation/linguistic_tagger.gen.go +++ b/macos/foundation/linguistic_tagger.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package foundation @@ -38,10 +38,6 @@ func (lc _LinguisticTaggerClass) Alloc() LinguisticTagger { return rv } -func LinguisticTagger_Alloc() LinguisticTagger { - return LinguisticTaggerClass.Alloc() -} - func (lc _LinguisticTaggerClass) New() LinguisticTagger { rv := objc.Call[LinguisticTagger](lc, objc.Sel("new")) rv.Autorelease() diff --git a/macos/foundation/list_formatter.gen.go b/macos/foundation/list_formatter.gen.go index bd3fd329..9b893dc1 100644 --- a/macos/foundation/list_formatter.gen.go +++ b/macos/foundation/list_formatter.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package foundation @@ -19,10 +19,10 @@ type _ListFormatterClass struct { type IListFormatter interface { IFormatter StringFromItems(items []objc.IObject) string - Locale() Locale - SetLocale(value ILocale) ItemFormatter() Formatter SetItemFormatter(value IFormatter) + Locale() Locale + SetLocale(value ILocale) } // An object that provides locale-correct formatting of a list of items using the appropriate separator and conjunction. [Full Topic] @@ -43,10 +43,6 @@ func (lc _ListFormatterClass) Alloc() ListFormatter { return rv } -func ListFormatter_Alloc() ListFormatter { - return ListFormatterClass.Alloc() -} - func (lc _ListFormatterClass) New() ListFormatter { rv := objc.Call[ListFormatter](lc, objc.Sel("new")) rv.Autorelease() @@ -62,14 +58,6 @@ 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 @@ -85,21 +73,14 @@ func ListFormatter_LocalizedStringByJoiningStrings(strings []string) string { return ListFormatterClass.LocalizedStringByJoiningStrings(strings) } -// The locale to use when formatting items in the list. [Full Topic] +// Creates a formatted string for an array of items. [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")) +// [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 } -// 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:"), objc.Ptr(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 @@ -114,3 +95,18 @@ func (l_ ListFormatter) ItemFormatter() Formatter { func (l_ ListFormatter) SetItemFormatter(value IFormatter) { objc.Call[objc.Void](l_, objc.Sel("setItemFormatter:"), objc.Ptr(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:"), objc.Ptr(value)) +} diff --git a/macos/foundation/locale.gen.go b/macos/foundation/locale.gen.go index 1ba6ea32..b08e6429 100644 --- a/macos/foundation/locale.gen.go +++ b/macos/foundation/locale.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package foundation @@ -18,34 +18,34 @@ type _LocaleClass struct { // An interface definition for the [Locale] class. type ILocale interface { objc.IObject - ObjectForKey(key LocaleKey) objc.Object - LocalizedStringForCollatorIdentifier(collatorIdentifier string) string + LocalizedStringForCollationIdentifier(collationIdentifier string) string + LocalizedStringForVariantCode(variantCode string) string DisplayNameForKeyValue(key LocaleKey, value objc.IObject) string - LocalizedStringForScriptCode(scriptCode string) string + LocalizedStringForCountryCode(countryCode 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 - LocalizedStringForCurrencyCode(currencyCode string) string - LocalizedStringForCollationIdentifier(collationIdentifier string) string - LocalizedStringForVariantCode(variantCode string) string - LocalizedStringForCountryCode(countryCode string) string - AlternateQuotationEndDelimiter() string - CurrencyCode() string - UsesMetricSystem() bool - CalendarIdentifier() string - AlternateQuotationBeginDelimiter() string - QuotationEndDelimiter() string - CollatorIdentifier() string - VariantCode() string - ExemplarCharacterSet() CharacterSet CollationIdentifier() string + CollatorIdentifier() string + DecimalSeparator() string CurrencySymbol() string - ScriptCode() string + CurrencyCode() string QuotationBeginDelimiter() string - LocaleIdentifier() string - DecimalSeparator() string + AlternateQuotationBeginDelimiter() string LanguageCode() string + ScriptCode() string + CalendarIdentifier() string + VariantCode() string + QuotationEndDelimiter() string + ExemplarCharacterSet() CharacterSet GroupingSeparator() string + LocaleIdentifier() string + UsesMetricSystem() bool + AlternateQuotationEndDelimiter() string } // Information about linguistic, cultural, and technological conventions for use in formatting data for presentation. [Full Topic] @@ -92,10 +92,6 @@ func (lc _LocaleClass) Alloc() Locale { return rv } -func Locale_Alloc() Locale { - return LocaleClass.Alloc() -} - func (lc _LocaleClass) New() Locale { rv := objc.Call[Locale](lc, objc.Sel("new")) rv.Autorelease() @@ -111,19 +107,34 @@ func (l_ Locale) Init() Locale { return rv } -// Returns the value of the component corresponding to the specified key. [Full Topic] +// Returns the localized string for the specified collation identifier. [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/1642875-localizedstringforcollationident?language=objc +func (l_ Locale) LocalizedStringForCollationIdentifier(collationIdentifier string) string { + rv := objc.Call[string](l_, objc.Sel("localizedStringForCollationIdentifier:"), collationIdentifier) return rv } -// Returns the localized string for the specified collator identifier. [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/1643004-localizedstringforcollatoridenti?language=objc -func (l_ Locale) LocalizedStringForCollatorIdentifier(collatorIdentifier string) string { - rv := objc.Call[string](l_, objc.Sel("localizedStringForCollatorIdentifier:"), collatorIdentifier) +// [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 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] +// +// [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 } @@ -135,27 +146,27 @@ func (l_ Locale) DisplayNameForKeyValue(key LocaleKey, value objc.IObject) strin return rv } -// Returns a locale identifier from the components specified in a given dictionary. [Full Topic] +// Returns the localized string for a country or region 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/1642920-localizedstringforcountrycode?language=objc +func (l_ Locale) LocalizedStringForCountryCode(countryCode string) string { + rv := objc.Call[string](l_, objc.Sel("localizedStringForCountryCode:"), countryCode) return rv } -// Returns a locale identifier from the components specified in a given dictionary. [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/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/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 localized string for the specified script 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/1643126-localizedstringforscriptcode?language=objc -func (l_ Locale) LocalizedStringForScriptCode(scriptCode string) string { - rv := objc.Call[string](l_, objc.Sel("localizedStringForScriptCode:"), scriptCode) - return rv +// [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 language code. [Full Topic] @@ -166,6 +177,22 @@ 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 @@ -181,20 +208,19 @@ func Locale_LineDirectionForLanguage(isoLangCode string) LocaleLanguageDirection return LocaleClass.LineDirectionForLanguage(isoLangCode) } -// Returns the localized string for the specified locale identifier. [Full Topic] +// Returns a Window locale code from the 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) +// [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) } // Returns the canonical identifier for a given locale identification string. [Full Topic] @@ -212,75 +238,52 @@ func Locale_CanonicalLocaleIdentifierFromString(string_ string) string { return LocaleClass.CanonicalLocaleIdentifierFromString(string_) } -// 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 (lc _LocaleClass) CanonicalLanguageIdentifierFromString(string_ string) string { - rv := objc.Call[string](lc, objc.Sel("canonicalLanguageIdentifierFromString:"), string_) - 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 currency code. [Full Topic] +// Returns the localized string for the specified locale identifier. [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) +// [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 the localized string for the specified collation identifier. [Full Topic] +// Returns a locale identifier from a Windows locale code. [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) +// [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 } -// Returns the localized string for the specified variant code. [Full Topic] +// Returns a locale identifier from a Windows locale code. [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) - 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) } -// 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_) +// [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 Locale_ComponentsFromLocaleIdentifier(string_ string) map[string]string { - return LocaleClass.ComponentsFromLocaleIdentifier(string_) +// [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 Window locale code from the locale 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/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/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 Window locale code from the locale 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) -} - // 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/1417681-characterdirectionforlanguage?language=objc @@ -296,52 +299,84 @@ func Locale_CharacterDirectionForLanguage(isoLangCode string) LocaleLanguageDire return LocaleClass.CharacterDirectionForLanguage(isoLangCode) } -// Returns a locale identifier from a Windows locale code. [Full Topic] +// Returns the localized string for the specified script code. [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/1643126-localizedstringforscriptcode?language=objc +func (l_ Locale) LocalizedStringForScriptCode(scriptCode string) string { + rv := objc.Call[string](l_, objc.Sel("localizedStringForScriptCode:"), scriptCode) return rv } -// Returns a locale identifier from a Windows locale code. [Full Topic] +// Returns the localized string for the specified calendar 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/2242780-localizedstringforcalendaridenti?language=objc +func (l_ Locale) LocalizedStringForCalendarIdentifier(calendarIdentifier string) string { + rv := objc.Call[string](l_, objc.Sel("localizedStringForCalendarIdentifier:"), calendarIdentifier) + return rv } -// Returns the localized string for a country or region code. [Full Topic] +// The collation identifier for the locale. [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/1643092-collationidentifier?language=objc +func (l_ Locale) CollationIdentifier() string { + rv := objc.Call[string](l_, objc.Sel("collationIdentifier")) return rv } -// The list of locale identifiers available on the system. [Full Topic] +// A locale which tracks the user’s current preferences. [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/1414388-autoupdatingcurrentlocale?language=objc +func (lc _LocaleClass) AutoupdatingCurrentLocale() Locale { + rv := objc.Call[Locale](lc, objc.Sel("autoupdatingCurrentLocale")) return rv } -// The list of locale identifiers available on the system. [Full Topic] +// A locale which tracks the user’s current preferences. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nslocale/1410448-availablelocaleidentifiers?language=objc -func Locale_AvailableLocaleIdentifiers() []string { - return LocaleClass.AvailableLocaleIdentifiers() +// [Full Topic]: https://developer.apple.com/documentation/foundation/nslocale/1414388-autoupdatingcurrentlocale?language=objc +func Locale_AutoupdatingCurrentLocale() Locale { + return LocaleClass.AutoupdatingCurrentLocale() } -// The alternate end quotation symbol for the locale. [Full Topic] +// The collator identifier 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/1643195-collatoridentifier?language=objc +func (l_ Locale) CollatorIdentifier() string { + rv := objc.Call[string](l_, objc.Sel("collatorIdentifier")) + 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 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 +} + +// 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() +} + // The currency code for the locale. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/foundation/nslocale/1642836-currencycode?language=objc @@ -350,6 +385,14 @@ 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 @@ -365,14 +408,45 @@ func Locale_PreferredLanguages() []string { return LocaleClass.PreferredLanguages() } -// A Boolean value that indicates whether the locale uses the metric system. [Full Topic] +// The alternate begin quotation symbol 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/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] +// +// [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 +} + +// 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 @@ -396,27 +470,27 @@ func Locale_SystemLocale() Locale { return LocaleClass.SystemLocale() } -// The alternate begin quotation symbol for the locale. [Full Topic] +// The list of known currency codes. [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")) +// [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 } -// A locale which tracks the user’s current preferences. [Full Topic] +// The list of known currency codes. [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/1417834-isocurrencycodes?language=objc +func Locale_ISOCurrencyCodes() []string { + return LocaleClass.ISOCurrencyCodes() } -// A locale which tracks the user’s current preferences. [Full Topic] +// The variant code for the locale. [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/1643152-variantcode?language=objc +func (l_ Locale) VariantCode() string { + rv := objc.Call[string](l_, objc.Sel("variantCode")) + return rv } // The end quotation symbol for the locale. [Full Topic] @@ -427,19 +501,35 @@ func (l_ Locale) QuotationEndDelimiter() string { return rv } -// The collator identifier for the locale. [Full Topic] +// The exemplar character set for the locale. [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")) +// [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 variant code for the locale. [Full Topic] +// The grouping separator for the locale. [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")) +// [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] +// +// [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 +} + +// A Boolean value that indicates whether the locale uses the metric system. [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")) return rv } @@ -473,19 +563,11 @@ func Locale_CurrentLocale() Locale { return LocaleClass.CurrentLocale() } -// 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 collation identifier for the locale. [Full Topic] +// The alternate end quotation symbol 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")) +// [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 } @@ -503,89 +585,3 @@ 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 ee459fa4..0460725c 100644 --- a/macos/foundation/lock.gen.go +++ b/macos/foundation/lock.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package foundation @@ -18,8 +18,8 @@ type _LockClass struct { // An interface definition for the [Lock] class. type ILock interface { objc.IObject - TryLock() bool LockBeforeDate(limit IDate) bool + TryLock() bool Name() string SetName(value string) } @@ -42,10 +42,6 @@ func (lc _LockClass) Alloc() Lock { return rv } -func Lock_Alloc() Lock { - return LockClass.Alloc() -} - func (lc _LockClass) New() Lock { rv := objc.Call[Lock](lc, objc.Sel("new")) rv.Autorelease() @@ -61,14 +57,6 @@ func (l_ Lock) Init() Lock { 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 -func (l_ Lock) TryLock() bool { - rv := objc.Call[bool](l_, objc.Sel("tryLock")) - 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 @@ -77,6 +65,14 @@ func (l_ Lock) LockBeforeDate(limit IDate) bool { 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 +func (l_ Lock) TryLock() bool { + rv := objc.Call[bool](l_, objc.Sel("tryLock")) + 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.gen.go b/macos/foundation/locking_protocol.gen.go similarity index 72% rename from macos/foundation/locking.gen.go rename to macos/foundation/locking_protocol.gen.go index fba5d724..470c5e98 100644 --- a/macos/foundation/locking.gen.go +++ b/macos/foundation/locking_protocol.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package foundation @@ -10,38 +10,41 @@ import ( // // [Full Topic]: https://developer.apple.com/documentation/foundation/nslocking?language=objc type PLocking interface { - // optional - Lock() - HasLock() bool - // optional Unlock() HasUnlock() bool -} -// A concrete type wrapper for the [PLocking] protocol. -type LockingWrapper struct { - objc.Object + // optional + Lock() + HasLock() bool } -func (l_ LockingWrapper) HasLock() bool { - return l_.RespondsToSelector(objc.Sel("lock")) -} +// ensure impl type implements protocol interface +var _ PLocking = (*LockingObject)(nil) -// Attempts to acquire a lock, blocking a thread’s execution until the lock can be acquired. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/foundation/nslocking/1416318-lock?language=objc -func (l_ LockingWrapper) Lock() { - objc.Call[objc.Void](l_, objc.Sel("lock")) +// A concrete type for the [PLocking] protocol. +type LockingObject struct { + objc.Object } -func (l_ LockingWrapper) HasUnlock() bool { +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_ LockingWrapper) Unlock() { +func (l_ LockingObject) Unlock() { objc.Call[objc.Void](l_, objc.Sel("unlock")) } + +func (l_ LockingObject) HasLock() bool { + return l_.RespondsToSelector(objc.Sel("lock")) +} + +// Attempts to acquire a lock, blocking a thread’s execution until the lock can be acquired. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/foundation/nslocking/1416318-lock?language=objc +func (l_ LockingObject) Lock() { + objc.Call[objc.Void](l_, objc.Sel("lock")) +} diff --git a/macos/foundation/logical_test.gen.go b/macos/foundation/logical_test.gen.go index 1a3276ff..cd6e2fa4 100644 --- a/macos/foundation/logical_test.gen.go +++ b/macos/foundation/logical_test.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package foundation @@ -33,6 +33,20 @@ func LogicalTestFrom(ptr unsafe.Pointer) LogicalTest { } } +func (l_ LogicalTest) InitNotTestWithTest(subTest IScriptWhoseTest) LogicalTest { + rv := objc.Call[LogicalTest](l_, objc.Sel("initNotTestWithTest:"), objc.Ptr(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 @@ -61,29 +75,11 @@ func NewLogicalTestOrTestWithTests(subTests []ISpecifierTest) LogicalTest { return instance } -func (l_ LogicalTest) InitNotTestWithTest(subTest IScriptWhoseTest) LogicalTest { - rv := objc.Call[LogicalTest](l_, objc.Sel("initNotTestWithTest:"), objc.Ptr(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 } -func LogicalTest_Alloc() LogicalTest { - return LogicalTestClass.Alloc() -} - func (lc _LogicalTestClass) New() LogicalTest { rv := objc.Call[LogicalTest](lc, objc.Sel("new")) rv.Autorelease() diff --git a/macos/foundation/mach_bootstrap_server.gen.go b/macos/foundation/mach_bootstrap_server.gen.go index af56e689..38f2815d 100644 --- a/macos/foundation/mach_bootstrap_server.gen.go +++ b/macos/foundation/mach_bootstrap_server.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package foundation @@ -38,10 +38,6 @@ func (mc _MachBootstrapServerClass) Alloc() MachBootstrapServer { return rv } -func MachBootstrapServer_Alloc() MachBootstrapServer { - return MachBootstrapServerClass.Alloc() -} - func (mc _MachBootstrapServerClass) New() MachBootstrapServer { rv := objc.Call[MachBootstrapServer](mc, objc.Sel("new")) rv.Autorelease() diff --git a/macos/foundation/mach_port.gen.go b/macos/foundation/mach_port.gen.go index 3a16b60a..5e3e60b6 100644 --- a/macos/foundation/mach_port.gen.go +++ b/macos/foundation/mach_port.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package foundation @@ -34,6 +34,20 @@ 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 @@ -53,10 +67,6 @@ func (mc _MachPortClass) Alloc() MachPort { return rv } -func MachPort_Alloc() MachPort { - return MachPortClass.Alloc() -} - func (mc _MachPortClass) New() MachPort { rv := objc.Call[MachPort](mc, objc.Sel("new")) rv.Autorelease() @@ -72,6 +82,21 @@ 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/mach_port_delegate.gen.go b/macos/foundation/mach_port_delegate.gen.go index 0f7fe849..ecaccc58 100644 --- a/macos/foundation/mach_port_delegate.gen.go +++ b/macos/foundation/mach_port_delegate.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package foundation @@ -40,18 +40,21 @@ func (di *MachPortDelegate) HandleMachMessage(msg unsafe.Pointer) { di._HandleMachMessage(msg) } -// A concrete type wrapper for the [PMachPortDelegate] protocol. -type MachPortDelegateWrapper struct { +// ensure impl type implements protocol interface +var _ PMachPortDelegate = (*MachPortDelegateObject)(nil) + +// A concrete type for the [PMachPortDelegate] protocol. +type MachPortDelegateObject struct { objc.Object } -func (m_ MachPortDelegateWrapper) HasHandleMachMessage() bool { +func (m_ MachPortDelegateObject) HasHandleMachMessage() bool { return m_.RespondsToSelector(objc.Sel("handleMachMessage:")) } // Process an incoming Mach message. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/foundation/nsmachportdelegate/1399509-handlemachmessage?language=objc -func (m_ MachPortDelegateWrapper) HandleMachMessage(msg unsafe.Pointer) { +func (m_ MachPortDelegateObject) HandleMachMessage(msg unsafe.Pointer) { objc.Call[objc.Void](m_, objc.Sel("handleMachMessage:"), msg) } diff --git a/macos/foundation/map_table.gen.go b/macos/foundation/map_table.gen.go new file mode 100644 index 00000000..1c5a6dc8 --- /dev/null +++ b/macos/foundation/map_table.gen.go @@ -0,0 +1,244 @@ +// Code generated by DarwinKit. DO NOT EDIT. + +package foundation + +import ( + "unsafe" + + "github.com/progrium/macdriver/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:"), objc.Ptr(keyFunctions), objc.Ptr(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:"), objc.Ptr(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:"), objc.Ptr(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:"), objc.Ptr(anObject), objc.Ptr(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 7514ed1c..5102c723 100644 --- a/macos/foundation/mass_formatter.gen.go +++ b/macos/foundation/mass_formatter.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package foundation @@ -18,14 +18,14 @@ type _MassFormatterClass struct { // An interface definition for the [MassFormatter] class. type IMassFormatter interface { IFormatter - StringFromValueUnit(value float64, unit MassFormatterUnit) string StringFromKilograms(numberInKilograms float64) string - UnitStringFromValueUnit(value float64, unit MassFormatterUnit) string UnitStringFromKilogramsUsedUnit(numberInKilograms float64, unitp *MassFormatterUnit) string - UnitStyle() FormattingUnitStyle - SetUnitStyle(value FormattingUnitStyle) + StringFromValueUnit(value float64, unit MassFormatterUnit) string + UnitStringFromValueUnit(value float64, unit MassFormatterUnit) string IsForPersonMassUse() bool SetForPersonMassUse(value bool) + UnitStyle() FormattingUnitStyle + SetUnitStyle(value FormattingUnitStyle) NumberFormatter() NumberFormatter SetNumberFormatter(value INumberFormatter) } @@ -48,10 +48,6 @@ func (mc _MassFormatterClass) Alloc() MassFormatter { return rv } -func MassFormatter_Alloc() MassFormatter { - return MassFormatterClass.Alloc() -} - func (mc _MassFormatterClass) New() MassFormatter { rv := objc.Call[MassFormatter](mc, objc.Sel("new")) rv.Autorelease() @@ -67,14 +63,6 @@ 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 @@ -83,14 +71,6 @@ 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 @@ -99,19 +79,20 @@ func (m_ MassFormatter) UnitStringFromKilogramsUsedUnit(numberInKilograms float6 return rv } -// The unit style used by this formatter. [Full Topic] +// Returns a properly formatted mass string for the given value and unit. [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")) +// [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 } -// The unit style used by this formatter. [Full Topic] +// Returns the unit string based on the provided value and unit. [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) +// [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 } // A Boolean value that indicates whether the resulting string represents a person’s mass. [Full Topic] @@ -129,6 +110,21 @@ 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 8f646347..d0690d35 100644 --- a/macos/foundation/measurement.gen.go +++ b/macos/foundation/measurement.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package foundation @@ -19,8 +19,8 @@ type _MeasurementClass struct { type IMeasurement interface { objc.IObject MeasurementByConvertingToUnit(unit IUnit) Measurement - CanBeConvertedToUnit(unit IUnit) bool MeasurementBySubtractingMeasurement(measurement IMeasurement) Measurement + CanBeConvertedToUnit(unit IUnit) bool MeasurementByAddingMeasurement(measurement IMeasurement) Measurement DoubleValue() float64 Unit() objc.Object @@ -58,10 +58,6 @@ func (mc _MeasurementClass) Alloc() Measurement { return rv } -func Measurement_Alloc() Measurement { - return MeasurementClass.Alloc() -} - func (mc _MeasurementClass) New() Measurement { rv := objc.Call[Measurement](mc, objc.Sel("new")) rv.Autorelease() @@ -85,14 +81,6 @@ func (m_ Measurement) MeasurementByConvertingToUnit(unit IUnit) 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 -func (m_ Measurement) CanBeConvertedToUnit(unit IUnit) bool { - rv := objc.Call[bool](m_, objc.Sel("canBeConvertedToUnit:"), objc.Ptr(unit)) - 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 @@ -101,6 +89,14 @@ func (m_ Measurement) MeasurementBySubtractingMeasurement(measurement IMeasureme 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 +func (m_ Measurement) CanBeConvertedToUnit(unit IUnit) bool { + rv := objc.Call[bool](m_, objc.Sel("canBeConvertedToUnit:"), objc.Ptr(unit)) + 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 4a2b72a1..e929c7b7 100644 --- a/macos/foundation/measurement_formatter.gen.go +++ b/macos/foundation/measurement_formatter.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package foundation @@ -22,10 +22,10 @@ type IMeasurementFormatter interface { StringFromMeasurement(measurement IMeasurement) string UnitOptions() MeasurementFormatterUnitOptions SetUnitOptions(value MeasurementFormatterUnitOptions) - Locale() Locale - SetLocale(value ILocale) UnitStyle() FormattingUnitStyle SetUnitStyle(value FormattingUnitStyle) + Locale() Locale + SetLocale(value ILocale) NumberFormatter() NumberFormatter SetNumberFormatter(value INumberFormatter) } @@ -48,10 +48,6 @@ func (mc _MeasurementFormatterClass) Alloc() MeasurementFormatter { return rv } -func MeasurementFormatter_Alloc() MeasurementFormatter { - return MeasurementFormatterClass.Alloc() -} - func (mc _MeasurementFormatterClass) New() MeasurementFormatter { rv := objc.Call[MeasurementFormatter](mc, objc.Sel("new")) rv.Autorelease() @@ -98,21 +94,6 @@ func (m_ MeasurementFormatter) SetUnitOptions(value MeasurementFormatterUnitOpti objc.Call[objc.Void](m_, objc.Sel("setUnitOptions:"), value) } -// The locale of the formatter. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsmeasurementformatter/1642061-locale?language=objc -func (m_ MeasurementFormatter) Locale() Locale { - rv := objc.Call[Locale](m_, objc.Sel("locale")) - return rv -} - -// The locale of the formatter. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsmeasurementformatter/1642061-locale?language=objc -func (m_ MeasurementFormatter) SetLocale(value ILocale) { - objc.Call[objc.Void](m_, objc.Sel("setLocale:"), objc.Ptr(value)) -} - // The unit style. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/foundation/nsmeasurementformatter/1642067-unitstyle?language=objc @@ -128,6 +109,21 @@ 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 +func (m_ MeasurementFormatter) Locale() Locale { + rv := objc.Call[Locale](m_, objc.Sel("locale")) + return rv +} + +// The locale of the formatter. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsmeasurementformatter/1642061-locale?language=objc +func (m_ MeasurementFormatter) SetLocale(value ILocale) { + objc.Call[objc.Void](m_, objc.Sel("setLocale:"), objc.Ptr(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/message_port.gen.go b/macos/foundation/message_port.gen.go index 23b09f14..9738bb78 100644 --- a/macos/foundation/message_port.gen.go +++ b/macos/foundation/message_port.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package foundation @@ -38,10 +38,6 @@ func (mc _MessagePortClass) Alloc() MessagePort { return rv } -func MessagePort_Alloc() MessagePort { - return MessagePortClass.Alloc() -} - func (mc _MessagePortClass) New() MessagePort { rv := objc.Call[MessagePort](mc, objc.Sel("new")) rv.Autorelease() diff --git a/macos/foundation/message_port_name_server.gen.go b/macos/foundation/message_port_name_server.gen.go index a4edc251..418136b4 100644 --- a/macos/foundation/message_port_name_server.gen.go +++ b/macos/foundation/message_port_name_server.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package foundation @@ -38,10 +38,6 @@ func (mc _MessagePortNameServerClass) Alloc() MessagePortNameServer { return rv } -func MessagePortNameServer_Alloc() MessagePortNameServer { - return MessagePortNameServerClass.Alloc() -} - func (mc _MessagePortNameServerClass) New() MessagePortNameServer { rv := objc.Call[MessagePortNameServer](mc, objc.Sel("new")) rv.Autorelease() diff --git a/macos/foundation/metadata_item.gen.go b/macos/foundation/metadata_item.gen.go index e501cc48..9a8ea1cc 100644 --- a/macos/foundation/metadata_item.gen.go +++ b/macos/foundation/metadata_item.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package foundation @@ -55,10 +55,6 @@ func (mc _MetadataItemClass) Alloc() MetadataItem { return rv } -func MetadataItem_Alloc() MetadataItem { - return MetadataItemClass.Alloc() -} - func (mc _MetadataItemClass) New() MetadataItem { rv := objc.Call[MetadataItem](mc, objc.Sel("new")) rv.Autorelease() diff --git a/macos/foundation/metadata_query.gen.go b/macos/foundation/metadata_query.gen.go index b89d9ce2..7c5fe917 100644 --- a/macos/foundation/metadata_query.gen.go +++ b/macos/foundation/metadata_query.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package foundation @@ -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 - EnableUpdates() - EnumerateResultsWithOptionsUsingBlock(opts EnumerationOptions, block func(result objc.Object, idx uint, stop *bool)) - ValueListAttributes() []string - SetValueListAttributes(value []string) - 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() MetadataQueryDelegateWrapper - SetDelegate(value PMetadataQueryDelegate) - SetDelegateObject(valueObject objc.IObject) Predicate() Predicate SetPredicate(value IPredicate) - IsStarted() bool - IsGathering() bool 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 + ValueListAttributes() []string + SetValueListAttributes(value []string) + IsStopped() bool + SortDescriptors() []SortDescriptor + SetSortDescriptors(value []ISortDescriptor) + ValueLists() map[string][]MetadataQueryAttributeValueTuple + NotificationBatchingInterval() TimeInterval + SetNotificationBatchingInterval(value TimeInterval) + Delegate() MetadataQueryDelegateObject + SetDelegate(value PMetadataQueryDelegate) + SetDelegateObject(valueObject objc.IObject) + GroupedResults() []MetadataQueryResultGroup + IsStarted() bool + GroupingAttributes() []string + SetGroupingAttributes(value []string) } // A query that you perform against Spotlight metadata. [Full Topic] @@ -73,10 +73,6 @@ func (mc _MetadataQueryClass) Alloc() MetadataQuery { return rv } -func MetadataQuery_Alloc() MetadataQuery { - return MetadataQueryClass.Alloc() -} - func (mc _MetadataQueryClass) New() MetadataQuery { rv := objc.Call[MetadataQuery](mc, objc.Sel("new")) rv.Autorelease() @@ -92,6 +88,34 @@ 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 @@ -123,20 +147,6 @@ 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 @@ -145,89 +155,105 @@ func (m_ MetadataQuery) ValueOfAttributeForResultAtIndex(attrName string, idx ui return rv } -// Enables updates to the query results. [Full Topic] +// The predicate used to filter 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")) +// [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 } -// Enumerates the current set of results using the given options and block. [Full Topic] +// The predicate used to filter query results. [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) +// [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:"), objc.Ptr(value)) } -// An array of attributes whose values are gathered by the query. [Full Topic] +// An array containing the search scopes. [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/1412155-searchscopes?language=objc +func (m_ MetadataQuery) SearchScopes() []objc.Object { + rv := objc.Call[[]objc.Object](m_, objc.Sel("searchScopes")) return rv } -// An array of attributes whose values are gathered by the query. [Full Topic] +// An array containing the search scopes. [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) +// [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 interval at which notification of updated results occurs. [Full Topic] +// An array of objects that define the query’s scope. [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/1411307-searchitems?language=objc +func (m_ MetadataQuery) SearchItems() []objc.Object { + rv := objc.Call[[]objc.Object](m_, objc.Sel("searchItems")) return rv } -// The interval at which notification of updated results occurs. [Full Topic] +// An array of objects that define the query’s scope. [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/1411307-searchitems?language=objc +func (m_ MetadataQuery) SetSearchItems(value []objc.IObject) { + objc.Call[objc.Void](m_, objc.Sel("setSearchItems:"), value) } -// A dictionary containing the value lists generated by the query. [Full Topic] +// The number of results returned by the query. (read-only) [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")) +// [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 } -// An array containing hierarchical groups of query results. (read-only) [Full Topic] +// An array containing the query’s 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/1408872-results?language=objc +func (m_ MetadataQuery) Results() []objc.Object { + rv := objc.Call[[]objc.Object](m_, objc.Sel("results")) return rv } -// An array of sort descriptor objects. [Full Topic] +// The queue on which query result notifications are posted. [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/1410953-operationqueue?language=objc +func (m_ MetadataQuery) OperationQueue() OperationQueue { + rv := objc.Call[OperationQueue](m_, objc.Sel("operationQueue")) return rv } -// An array of sort descriptor objects. [Full Topic] +// The queue on which query result notifications are posted. [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) +// [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:"), objc.Ptr(value)) } -// An array containing the query’s results. [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/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/1407539-gathering?language=objc +func (m_ MetadataQuery) IsGathering() bool { + rv := objc.Call[bool](m_, objc.Sel("isGathering")) + 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) ValueListAttributes() []string { + rv := objc.Call[[]string](m_, objc.Sel("valueListAttributes")) 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 @@ -236,41 +262,49 @@ func (m_ MetadataQuery) IsStopped() bool { return rv } -// An array of objects that define the query’s scope. [Full Topic] +// An array of sort descriptor objects. [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/1411847-sortdescriptors?language=objc +func (m_ MetadataQuery) SortDescriptors() []SortDescriptor { + rv := objc.Call[[]SortDescriptor](m_, objc.Sel("sortDescriptors")) return rv } -// An array of objects that define the query’s scope. [Full Topic] +// An array of sort descriptor objects. [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/1411847-sortdescriptors?language=objc +func (m_ MetadataQuery) SetSortDescriptors(value []ISortDescriptor) { + objc.Call[objc.Void](m_, objc.Sel("setSortDescriptors:"), value) } -// An array of grouping attributes. (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/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/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 of grouping attributes. (read-only) [Full Topic] +// The interval at which notification of updated results occurs. [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/1411884-notificationbatchinginterval?language=objc +func (m_ MetadataQuery) NotificationBatchingInterval() TimeInterval { + rv := objc.Call[TimeInterval](m_, objc.Sel("notificationBatchingInterval")) + return rv +} + +// The interval at which notification of updated results occurs. [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) } // The query’s delegate. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/foundation/nsmetadataquery/1413181-delegate?language=objc -func (m_ MetadataQuery) Delegate() MetadataQueryDelegateWrapper { - rv := objc.Call[MetadataQueryDelegateWrapper](m_, objc.Sel("delegate")) +func (m_ MetadataQuery) Delegate() MetadataQueryDelegateObject { + rv := objc.Call[MetadataQueryDelegateObject](m_, objc.Sel("delegate")) return rv } @@ -289,21 +323,14 @@ func (m_ MetadataQuery) SetDelegateObject(valueObject objc.IObject) { objc.Call[objc.Void](m_, objc.Sel("setDelegate:"), objc.Ptr(valueObject)) } -// The predicate used to filter query results. [Full Topic] +// An array containing hierarchical groups of query results. (read-only) [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")) +// [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 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:"), objc.Ptr(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 @@ -312,48 +339,17 @@ func (m_ MetadataQuery) IsStarted() bool { return rv } -// 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/1407539-gathering?language=objc -func (m_ MetadataQuery) IsGathering() bool { - rv := objc.Call[bool](m_, objc.Sel("isGathering")) - 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) 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] +// An array of grouping attributes. (read-only) [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/1409191-groupingattributes?language=objc +func (m_ MetadataQuery) GroupingAttributes() []string { + rv := objc.Call[[]string](m_, objc.Sel("groupingAttributes")) return rv } -// The queue on which query result notifications are posted. [Full Topic] +// An array of grouping attributes. (read-only) [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:"), objc.Ptr(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) } diff --git a/macos/foundation/metadata_query_attribute_value_tuple.gen.go b/macos/foundation/metadata_query_attribute_value_tuple.gen.go index ff5b5a14..f2f6a601 100644 --- a/macos/foundation/metadata_query_attribute_value_tuple.gen.go +++ b/macos/foundation/metadata_query_attribute_value_tuple.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package foundation @@ -41,10 +41,6 @@ func (mc _MetadataQueryAttributeValueTupleClass) Alloc() MetadataQueryAttributeV return rv } -func MetadataQueryAttributeValueTuple_Alloc() MetadataQueryAttributeValueTuple { - return MetadataQueryAttributeValueTupleClass.Alloc() -} - func (mc _MetadataQueryAttributeValueTupleClass) New() MetadataQueryAttributeValueTuple { rv := objc.Call[MetadataQueryAttributeValueTuple](mc, objc.Sel("new")) rv.Autorelease() diff --git a/macos/foundation/metadata_query_delegate.gen.go b/macos/foundation/metadata_query_delegate.gen.go index 56d43a5e..4133814e 100644 --- a/macos/foundation/metadata_query_delegate.gen.go +++ b/macos/foundation/metadata_query_delegate.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package foundation @@ -11,15 +11,37 @@ import ( // [Full Topic]: https://developer.apple.com/documentation/foundation/nsmetadataquerydelegate?language=objc type PMetadataQueryDelegate interface { // optional - MetadataQueryReplacementValueForAttributeValue(query MetadataQuery, attrName string, attrValue objc.Object) objc.IObject + MetadataQueryReplacementObjectForResultObject(query MetadataQuery, result MetadataItem) objc.Object + HasMetadataQueryReplacementObjectForResultObject() bool + + // optional + MetadataQueryReplacementValueForAttributeValue(query MetadataQuery, attrName string, attrValue objc.Object) objc.Object HasMetadataQueryReplacementValueForAttributeValue() bool } // A delegate implementation builder for the [PMetadataQueryDelegate] protocol. type MetadataQueryDelegate struct { - _MetadataQueryReplacementValueForAttributeValue func(query MetadataQuery, attrName string, attrValue objc.Object) objc.IObject + _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 } @@ -27,30 +49,45 @@ func (di *MetadataQueryDelegate) HasMetadataQueryReplacementValueForAttributeVal // Returns a different value for a given attribute and value. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/foundation/nsmetadataquerydelegate/1414215-metadataquery?language=objc -func (di *MetadataQueryDelegate) SetMetadataQueryReplacementValueForAttributeValue(f func(query MetadataQuery, attrName string, attrValue objc.Object) objc.IObject) { +func (di *MetadataQueryDelegate) SetMetadataQueryReplacementValueForAttributeValue(f func(query MetadataQuery, attrName string, attrValue objc.Object) objc.Object) { di._MetadataQueryReplacementValueForAttributeValue = f } // Returns a different value for a given attribute and value. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/foundation/nsmetadataquerydelegate/1414215-metadataquery?language=objc -func (di *MetadataQueryDelegate) MetadataQueryReplacementValueForAttributeValue(query MetadataQuery, attrName string, attrValue objc.Object) objc.IObject { +func (di *MetadataQueryDelegate) MetadataQueryReplacementValueForAttributeValue(query MetadataQuery, attrName string, attrValue objc.Object) objc.Object { return di._MetadataQueryReplacementValueForAttributeValue(query, attrName, attrValue) } -// A concrete type wrapper for the [PMetadataQueryDelegate] protocol. -type MetadataQueryDelegateWrapper struct { +// ensure impl type implements protocol interface +var _ PMetadataQueryDelegate = (*MetadataQueryDelegateObject)(nil) + +// A concrete type for the [PMetadataQueryDelegate] protocol. +type MetadataQueryDelegateObject struct { objc.Object } -func (m_ MetadataQueryDelegateWrapper) HasMetadataQueryReplacementValueForAttributeValue() bool { +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:"), objc.Ptr(query), objc.Ptr(result)) + return rv +} + +func (m_ MetadataQueryDelegateObject) HasMetadataQueryReplacementValueForAttributeValue() bool { return m_.RespondsToSelector(objc.Sel("metadataQuery:replacementValueForAttribute:value:")) } // Returns a different value for a given attribute and value. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/foundation/nsmetadataquerydelegate/1414215-metadataquery?language=objc -func (m_ MetadataQueryDelegateWrapper) MetadataQueryReplacementValueForAttributeValue(query IMetadataQuery, attrName string, attrValue objc.IObject) objc.Object { +func (m_ MetadataQueryDelegateObject) MetadataQueryReplacementValueForAttributeValue(query MetadataQuery, attrName string, attrValue objc.Object) objc.Object { rv := objc.Call[objc.Object](m_, objc.Sel("metadataQuery:replacementValueForAttribute:value:"), objc.Ptr(query), attrName, attrValue) return rv } diff --git a/macos/foundation/metadata_query_result_group.gen.go b/macos/foundation/metadata_query_result_group.gen.go index 32ac52ec..ceab21c7 100644 --- a/macos/foundation/metadata_query_result_group.gen.go +++ b/macos/foundation/metadata_query_result_group.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package foundation @@ -20,10 +20,10 @@ type IMetadataQueryResultGroup interface { objc.IObject ResultAtIndex(idx uint) objc.Object Subgroups() []MetadataQueryResultGroup + ResultCount() uint Value() objc.Object - Attribute() string Results() []objc.Object - ResultCount() uint + Attribute() string } // The NSMetadataQueryResultGroup class represents a collection of grouped attribute results returned by an NSMetadataQuery object. [Full Topic] @@ -44,10 +44,6 @@ func (mc _MetadataQueryResultGroupClass) Alloc() MetadataQueryResultGroup { return rv } -func MetadataQueryResultGroup_Alloc() MetadataQueryResultGroup { - return MetadataQueryResultGroupClass.Alloc() -} - func (mc _MetadataQueryResultGroupClass) New() MetadataQueryResultGroup { rv := objc.Call[MetadataQueryResultGroup](mc, objc.Sel("new")) rv.Autorelease() @@ -79,19 +75,19 @@ func (m_ MetadataQueryResultGroup) Subgroups() []MetadataQueryResultGroup { return rv } -// The result group’s value. [Full Topic] +// The number of results returned by the result group. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsmetadataqueryresultgroup/1417674-value?language=objc -func (m_ MetadataQueryResultGroup) Value() objc.Object { - rv := objc.Call[objc.Object](m_, objc.Sel("value")) +// [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 attribute name. [Full Topic] +// The result group’s value. [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/1417674-value?language=objc +func (m_ MetadataQueryResultGroup) Value() objc.Object { + rv := objc.Call[objc.Object](m_, objc.Sel("value")) return rv } @@ -103,10 +99,10 @@ func (m_ MetadataQueryResultGroup) Results() []objc.Object { return rv } -// The number of results returned by the result group. [Full Topic] +// The result group’s attribute name. [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")) +// [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 } diff --git a/macos/foundation/method_signature.gen.go b/macos/foundation/method_signature.gen.go index 6dc00a4f..5fa8d555 100644 --- a/macos/foundation/method_signature.gen.go +++ b/macos/foundation/method_signature.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package foundation @@ -18,12 +18,12 @@ type _MethodSignatureClass struct { // An interface definition for the [MethodSignature] class. type IMethodSignature interface { objc.IObject - IsOneway() bool GetArgumentTypeAtIndex(idx uint) *uint8 - MethodReturnLength() uint - FrameLength() uint - NumberOfArguments() uint + IsOneway() bool MethodReturnType() *uint8 + NumberOfArguments() uint + FrameLength() uint + MethodReturnLength() uint } // A record of the type information for the return value and parameters of a method. [Full Topic] @@ -44,10 +44,6 @@ func (mc _MethodSignatureClass) Alloc() MethodSignature { return rv } -func MethodSignature_Alloc() MethodSignature { - return MethodSignatureClass.Alloc() -} - func (mc _MethodSignatureClass) New() MethodSignature { rv := objc.Call[MethodSignature](mc, objc.Sel("new")) rv.Autorelease() @@ -63,14 +59,6 @@ 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 @@ -94,19 +82,19 @@ func (m_ MethodSignature) GetArgumentTypeAtIndex(idx uint) *uint8 { return rv } -// The number of bytes required for the return value. [Full Topic] +// Whether the receiver is asynchronous when invoked through distributed objects. [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/1519664-isoneway?language=objc +func (m_ MethodSignature) IsOneway() bool { + rv := objc.Call[bool](m_, objc.Sel("isOneway")) return rv } -// The number of bytes that the arguments, taken together, occupy on the stack. [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/1519658-framelength?language=objc -func (m_ MethodSignature) FrameLength() uint { - rv := objc.Call[uint](m_, objc.Sel("frameLength")) +// [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 } @@ -118,10 +106,18 @@ func (m_ MethodSignature) NumberOfArguments() uint { 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 +} + +// The number of bytes required for the return value. [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")) return rv } diff --git a/macos/foundation/middle_specifier.gen.go b/macos/foundation/middle_specifier.gen.go index fb3c7219..b8b02ac4 100644 --- a/macos/foundation/middle_specifier.gen.go +++ b/macos/foundation/middle_specifier.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package foundation @@ -38,10 +38,6 @@ func (mc _MiddleSpecifierClass) Alloc() MiddleSpecifier { return rv } -func MiddleSpecifier_Alloc() MiddleSpecifier { - return MiddleSpecifierClass.Alloc() -} - func (mc _MiddleSpecifierClass) New() MiddleSpecifier { rv := objc.Call[MiddleSpecifier](mc, objc.Sel("new")) rv.Autorelease() diff --git a/macos/foundation/morphology.gen.go b/macos/foundation/morphology.gen.go index d366d8e2..0885fd0a 100644 --- a/macos/foundation/morphology.gen.go +++ b/macos/foundation/morphology.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package foundation @@ -19,10 +19,10 @@ type _MorphologyClass struct { type IMorphology interface { objc.IObject IsUnspecified() bool - PartOfSpeech() GrammaticalPartOfSpeech - SetPartOfSpeech(value GrammaticalPartOfSpeech) GrammaticalGender() GrammaticalGender SetGrammaticalGender(value GrammaticalGender) + PartOfSpeech() GrammaticalPartOfSpeech + SetPartOfSpeech(value GrammaticalPartOfSpeech) Number() GrammaticalNumber SetNumber(value GrammaticalNumber) } @@ -45,10 +45,6 @@ func (mc _MorphologyClass) Alloc() Morphology { return rv } -func Morphology_Alloc() Morphology { - return MorphologyClass.Alloc() -} - func (mc _MorphologyClass) New() Morphology { rv := objc.Call[Morphology](mc, objc.Sel("new")) rv.Autorelease() @@ -72,21 +68,6 @@ func (m_ Morphology) IsUnspecified() bool { return rv } -// 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 -func (m_ Morphology) PartOfSpeech() GrammaticalPartOfSpeech { - rv := objc.Call[GrammaticalPartOfSpeech](m_, objc.Sel("partOfSpeech")) - return rv -} - -// 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 -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 @@ -102,21 +83,6 @@ 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 -func (m_ Morphology) Number() GrammaticalNumber { - rv := objc.Call[GrammaticalNumber](m_, objc.Sel("number")) - return rv -} - -// 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 -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 @@ -131,3 +97,33 @@ func (mc _MorphologyClass) UserMorphology() Morphology { 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 +func (m_ Morphology) PartOfSpeech() GrammaticalPartOfSpeech { + rv := objc.Call[GrammaticalPartOfSpeech](m_, objc.Sel("partOfSpeech")) + return rv +} + +// 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 +func (m_ Morphology) SetPartOfSpeech(value GrammaticalPartOfSpeech) { + objc.Call[objc.Void](m_, objc.Sel("setPartOfSpeech:"), 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 +func (m_ Morphology) Number() GrammaticalNumber { + rv := objc.Call[GrammaticalNumber](m_, objc.Sel("number")) + return rv +} + +// 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 +func (m_ Morphology) SetNumber(value GrammaticalNumber) { + objc.Call[objc.Void](m_, objc.Sel("setNumber:"), value) +} diff --git a/macos/foundation/morphology_custom_pronoun.gen.go b/macos/foundation/morphology_custom_pronoun.gen.go index 85050a97..5da1c771 100644 --- a/macos/foundation/morphology_custom_pronoun.gen.go +++ b/macos/foundation/morphology_custom_pronoun.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package foundation @@ -38,10 +38,6 @@ func (mc _MorphologyCustomPronounClass) Alloc() MorphologyCustomPronoun { return rv } -func MorphologyCustomPronoun_Alloc() MorphologyCustomPronoun { - return MorphologyCustomPronounClass.Alloc() -} - func (mc _MorphologyCustomPronounClass) New() MorphologyCustomPronoun { rv := objc.Call[MorphologyCustomPronoun](mc, objc.Sel("new")) rv.Autorelease() diff --git a/macos/foundation/move_command.gen.go b/macos/foundation/move_command.gen.go index 4a3d6924..7614c5f8 100644 --- a/macos/foundation/move_command.gen.go +++ b/macos/foundation/move_command.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package foundation @@ -39,10 +39,6 @@ func (mc _MoveCommandClass) Alloc() MoveCommand { return rv } -func MoveCommand_Alloc() MoveCommand { - return MoveCommandClass.Alloc() -} - func (mc _MoveCommandClass) New() MoveCommand { rv := objc.Call[MoveCommand](mc, objc.Sel("new")) rv.Autorelease() diff --git a/macos/foundation/mutable_array.gen.go b/macos/foundation/mutable_array.gen.go index cb812fda..af1fa944 100644 --- a/macos/foundation/mutable_array.gen.go +++ b/macos/foundation/mutable_array.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package foundation @@ -18,33 +18,36 @@ type _MutableArrayClass struct { // An interface definition for the [MutableArray] class. type IMutableArray interface { IArray - 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) + ApplyDifference(difference IOrderedCollectionDifference) SetArray(otherArray []objc.IObject) InitWithContentsOfURL(url IURL) MutableArray - RemoveObjectsInRange(range_ Range) ReplaceObjectsAtIndexesWithObjects(indexes IIndexSet, objects []objc.IObject) + RemoveLastObject() RemoveObjectsAtIndexes(indexes IIndexSet) - SortUsingComparator(cmptr Comparator) - InsertObjectsAtIndexes(objects []objc.IObject, indexes IIndexSet) SortWithOptionsUsingComparator(opts SortOptions, cmptr Comparator) - RemoveAllObjects() + 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) + 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) } // A dynamic ordered collection of objects. [Full Topic] @@ -60,18 +63,6 @@ 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 @@ -91,13 +82,21 @@ func (m_ MutableArray) Init() MutableArray { return rv } -func (mc _MutableArrayClass) Alloc() MutableArray { - rv := objc.Call[MutableArray](mc, objc.Sel("alloc")) +func (mc _MutableArrayClass) ArrayWithCapacity(numItems uint) MutableArray { + rv := objc.Call[MutableArray](mc, objc.Sel("arrayWithCapacity:"), numItems) return rv } -func MutableArray_Alloc() MutableArray { - return MutableArrayClass.Alloc() +// 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 } func (mc _MutableArrayClass) New() MutableArray { @@ -110,6 +109,58 @@ 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 objc.IObject, cnt uint) MutableArray { + rv := objc.Call[MutableArray](m_, objc.Sel("initWithObjects:count:"), objc.Ptr(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 objc.IObject, 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:"), objc.Ptr(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{objc.Ptr(firstObj)}, args...)...) return rv @@ -136,18 +187,6 @@ 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{objc.Ptr(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 @@ -162,64 +201,64 @@ func NewMutableArrayWithArray(array []objc.IObject) MutableArray { return instance } -func (mc _MutableArrayClass) ArrayWithArray(array []objc.IObject) MutableArray { - rv := objc.Call[MutableArray](mc, objc.Sel("arrayWithArray:"), array) +func (mc _MutableArrayClass) ArrayWithObjectsCount(objects objc.IObject, cnt uint) MutableArray { + rv := objc.Call[MutableArray](mc, objc.Sel("arrayWithObjects:count:"), objc.Ptr(objects), cnt) return rv } -// Creates and returns an array containing the objects in another given array. [Full Topic] +// Creates and returns an array that includes a given number of objects from a given C 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) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsarray/1460096-arraywithobjects?language=objc +func MutableArray_ArrayWithObjectsCount(objects objc.IObject, cnt uint) MutableArray { + return MutableArrayClass.ArrayWithObjectsCount(objects, cnt) } -func (mc _MutableArrayClass) ArrayWithObject(anObject objc.IObject) MutableArray { - rv := objc.Call[MutableArray](mc, objc.Sel("arrayWithObject:"), objc.Ptr(anObject)) +func (mc _MutableArrayClass) ArrayWithObjects(firstObj objc.IObject, args ...any) MutableArray { + rv := objc.Call[MutableArray](mc, objc.Sel("arrayWithObjects:"), append([]any{objc.Ptr(firstObj)}, args...)...) return rv } -// Creates and returns an array containing a given object. [Full Topic] +// Creates and returns an array containing the objects in the argument list. [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) +// [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...) } -// Sorts the receiver using a given array of sort descriptors. [Full Topic] +// Removes from the receiving array the objects in another given array. [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/1413942-removeobjectsinarray?language=objc +func (m_ MutableArray) RemoveObjectsInArray(otherArray []objc.IObject) { + objc.Call[objc.Void](m_, objc.Sel("removeObjectsInArray:"), otherArray) } -// Adds the objects contained in another given array to the end of the receiving array’s content. [Full Topic] +// [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/3152169-applydifference?language=objc +func (m_ MutableArray) ApplyDifference(difference IOrderedCollectionDifference) { + objc.Call[objc.Void](m_, objc.Sel("applyDifference:"), objc.Ptr(difference)) } -// Removes all occurrences of a given object in the array. [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/1417759-removeobjectidenticalto?language=objc -func (m_ MutableArray) RemoveObjectIdenticalTo(anObject objc.IObject) { - objc.Call[objc.Void](m_, objc.Sel("removeObjectIdenticalTo:"), objc.Ptr(anObject)) +// [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) } -// Initializes a newly allocated mutable array with the contents of the file specified by a given path [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/1414670-initwithcontentsoffile?language=objc -func (m_ MutableArray) InitWithContentsOfFile(path string) MutableArray { - rv := objc.Call[MutableArray](m_, objc.Sel("initWithContentsOfFile:"), path) +// [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:"), objc.Ptr(url)) return rv } -// Sorts the receiver in ascending order as defined by the comparison function compare. [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/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/1418287-replaceobjectsatindexes?language=objc +func (m_ MutableArray) ReplaceObjectsAtIndexesWithObjects(indexes IIndexSet, objects []objc.IObject) { + objc.Call[objc.Void](m_, objc.Sel("replaceObjectsAtIndexes:withObjects:"), objc.Ptr(indexes), objects) } // Removes the object with the highest-valued index in the array [Full Topic] @@ -229,39 +268,67 @@ func (m_ MutableArray) RemoveLastObject() { objc.Call[objc.Void](m_, objc.Sel("removeLastObject")) } -// Evaluates a given predicate against the array’s content and leaves only objects that match. [Full Topic] +// Removes the objects at the specified indexes from the array. [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:"), objc.Ptr(predicate)) +// [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:"), objc.Ptr(indexes)) } -// Replaces the objects in the receiving array specified by a given range with all of the objects from a given array. [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/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/1414396-sortwithoptions?language=objc +func (m_ MutableArray) SortWithOptionsUsingComparator(opts SortOptions, cmptr Comparator) { + objc.Call[objc.Void](m_, objc.Sel("sortWithOptions:usingComparator:"), opts, cmptr) } -// Inserts a given object at the end of the array. [Full Topic] +// 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/1411274-addobject?language=objc -func (m_ MutableArray) AddObject(anObject objc.IObject) { - objc.Call[objc.Void](m_, objc.Sel("addObject:"), objc.Ptr(anObject)) +// [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:"), objc.Ptr(anObject), range_) } -// Exchanges the objects in the array at given indexes. [Full Topic] +// Removes all occurrences of a given object in the array. [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/1417759-removeobjectidenticalto?language=objc +func (m_ MutableArray) RemoveObjectIdenticalTo(anObject objc.IObject) { + objc.Call[objc.Void](m_, objc.Sel("removeObjectIdenticalTo:"), objc.Ptr(anObject)) } -// Inserts a given object into the array’s contents at a given index. [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/1416682-insertobject?language=objc -func (m_ MutableArray) InsertObjectAtIndex(anObject objc.IObject, index uint) { - objc.Call[objc.Void](m_, objc.Sel("insertObject:atIndex:"), objc.Ptr(anObject), index) +// [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, objc.Ptr(indexes)) +} + +// Removes the object at index . [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) +} + +// 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/1408963-addobjectsfromarray?language=objc +func (m_ MutableArray) AddObjectsFromArray(otherArray []objc.IObject) { + objc.Call[objc.Void](m_, objc.Sel("addObjectsFromArray:"), otherArray) +} + +// 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, objc.Ptr(anObject)) +} + +// 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/1414904-sortusingcomparator?language=objc +func (m_ MutableArray) SortUsingComparator(cmptr Comparator) { + objc.Call[objc.Void](m_, objc.Sel("sortUsingComparator:"), cmptr) } // Creates and returns a mutable array containing the contents specified by a given URL. [Full Topic] @@ -279,61 +346,62 @@ func MutableArray_ArrayWithContentsOfURL(url IURL) MutableArray { return MutableArrayClass.ArrayWithContentsOfURL(url) } -// [Full Topic] +// Removes all occurrences in the array of a given object. [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:"), objc.Ptr(difference)) +// [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:"), objc.Ptr(anObject)) } -// Replaces the object at the index with the new object, possibly adding the object. [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/1460093-setobject?language=objc -func (m_ MutableArray) SetObjectAtIndexedSubscript(obj objc.IObject, idx uint) { - objc.Call[objc.Void](m_, objc.Sel("setObject:atIndexedSubscript:"), objc.Ptr(obj), idx) +// [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 } -// Sorts the receiver in ascending order, as determined by the comparison method specified by a given selector. [Full Topic] +// Exchanges the objects in the array at given indexes. [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/1411160-exchangeobjectatindex?language=objc +func (m_ MutableArray) ExchangeObjectAtIndexWithObjectAtIndex(idx1 uint, idx2 uint) { + objc.Call[objc.Void](m_, objc.Sel("exchangeObjectAtIndex:withObjectAtIndex:"), idx1, idx2) } -// Removes all occurrences in the array of a given object. [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/1410689-removeobject?language=objc -func (m_ MutableArray) RemoveObject(anObject objc.IObject) { - objc.Call[objc.Void](m_, objc.Sel("removeObject:"), objc.Ptr(anObject)) +// [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:"), objc.Ptr(predicate)) } -// Removes the object at index . [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/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/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 from the receiving array the objects in another 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/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/1460079-arraywithcontentsoffile?language=objc +func (mc _MutableArrayClass) ArrayWithContentsOfFile(path string) MutableArray { + rv := objc.Call[MutableArray](mc, objc.Sel("arrayWithContentsOfFile:"), path) + return rv } -// Sets the receiving array’s elements to those in another 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/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/1460079-arraywithcontentsoffile?language=objc +func MutableArray_ArrayWithContentsOfFile(path string) MutableArray { + return MutableArrayClass.ArrayWithContentsOfFile(path) } -// Initialized a newly allocated mutable array with the contents of the location specified by a given URL. [Full Topic] +// Empties the array of all its elements. [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:"), objc.Ptr(url)) - return rv +// [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")) } // Removes from the array each of the objects within a given range. [Full Topic] @@ -343,66 +411,58 @@ func (m_ MutableArray) RemoveObjectsInRange(range_ Range) { objc.Call[objc.Void](m_, objc.Sel("removeObjectsInRange:"), range_) } -// 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/1418287-replaceobjectsatindexes?language=objc -func (m_ MutableArray) ReplaceObjectsAtIndexesWithObjects(indexes IIndexSet, objects []objc.IObject) { - objc.Call[objc.Void](m_, objc.Sel("replaceObjectsAtIndexes:withObjects:"), objc.Ptr(indexes), objects) -} - -// Removes the objects at the specified indexes from the array. [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/1410154-removeobjectsatindexes?language=objc -func (m_ MutableArray) RemoveObjectsAtIndexes(indexes IIndexSet) { - objc.Call[objc.Void](m_, objc.Sel("removeObjectsAtIndexes:"), objc.Ptr(indexes)) +// [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:"), objc.Ptr(obj), idx) } -// Sorts the receiver in ascending order using the comparison method specified by a given NSComparator block. [Full Topic] +// Inserts a given object at the end of the array. [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/1411274-addobject?language=objc +func (m_ MutableArray) AddObject(anObject objc.IObject) { + objc.Call[objc.Void](m_, objc.Sel("addObject:"), objc.Ptr(anObject)) } -// Inserts the objects in the provided array into the receiving array at the specified indexes. [Full Topic] +// Sorts the receiver using a given array of sort descriptors. [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, objc.Ptr(indexes)) +// [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) } -// Creates and returns a mutable array containing the contents of the file specified by the given path. [Full Topic] +// Removes all occurrences of anObject within the specified range in the 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/1415225-removeobjectidenticalto?language=objc +func (m_ MutableArray) RemoveObjectIdenticalToInRange(anObject objc.IObject, range_ Range) { + objc.Call[objc.Void](m_, objc.Sel("removeObjectIdenticalTo:inRange:"), objc.Ptr(anObject), range_) } -// Creates and returns a mutable array containing the contents of the file specified by the given path. [Full Topic] +// Replaces the objects in the receiving array specified by one given range with the objects in another array specified by another range. [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/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) } -// Sorts the receiver in ascending order using the specified options and the comparison method specified by a given NSComparator block. [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/1414396-sortwithoptions?language=objc -func (m_ MutableArray) SortWithOptionsUsingComparator(opts SortOptions, cmptr Comparator) { - objc.Call[objc.Void](m_, objc.Sel("sortWithOptions:usingComparator:"), opts, cmptr) +// [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) } -// Empties the array of all its elements. [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/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/1416682-insertobject?language=objc +func (m_ MutableArray) InsertObjectAtIndex(anObject objc.IObject, index uint) { + objc.Call[objc.Void](m_, objc.Sel("insertObject:atIndex:"), objc.Ptr(anObject), index) } -// Replaces the object at index with anObject. [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/1414510-replaceobjectatindex?language=objc -func (m_ MutableArray) ReplaceObjectAtIndexWithObject(index uint, anObject objc.IObject) { - objc.Call[objc.Void](m_, objc.Sel("replaceObjectAtIndex:withObject:"), index, objc.Ptr(anObject)) +// [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) } diff --git a/macos/foundation/mutable_attributed_string.gen.go b/macos/foundation/mutable_attributed_string.gen.go index 8c4f8c55..4dc1ee48 100644 --- a/macos/foundation/mutable_attributed_string.gen.go +++ b/macos/foundation/mutable_attributed_string.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package foundation @@ -18,30 +18,32 @@ type _MutableAttributedStringClass struct { // An interface definition for the [MutableAttributedString] class. type IMutableAttributedString interface { IAttributedString - AppendLocalizedFormat(format IAttributedString, args ...any) - AppendAttributedString(attrString IAttributedString) - DeleteCharactersInRange(range_ Range) - SetAlignmentRange(alignment objc.IObject, range_ Range) - InsertAttributedStringAtIndex(attrString IAttributedString, loc uint) - FixFontAttributeInRange(range_ Range) - ApplyFontTraitsRange(traitMask objc.IObject, range_ Range) + SetAttributedString(attrString IAttributedString) UnscriptRange(range_ Range) - BeginEditing() - ReadFromDataOptionsDocumentAttributesError(data []byte, opts Dictionary, dict Dictionary, error IError) bool - FixAttributesInRange(range_ Range) - AddAttributesRange(attrs map[AttributedStringKey]objc.IObject, range_ Range) + AddAttributeValueRange(name AttributedStringKey, value 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) 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) - AddAttributeValueRange(name AttributedStringKey, value objc.IObject, range_ Range) - SetAttributesRange(attrs map[AttributedStringKey]objc.IObject, range_ Range) - SuperscriptRange(range_ Range) - FixParagraphStyleAttributeInRange(range_ Range) + ReadFromURLOptionsDocumentAttributesError(url IURL, opts Dictionary, dict Dictionary, error IError) bool + AddAttributesRange(attrs map[AttributedStringKey]objc.IObject, range_ Range) SubscriptRange(range_ Range) - SetBaseWritingDirectionRange(writingDirection objc.IObject, range_ Range) + FixParagraphStyleAttributeInRange(range_ Range) + AppendLocalizedFormat(format IAttributedString, args ...any) + DeleteCharactersInRange(range_ Range) + ReadFromDataOptionsDocumentAttributesError(data []byte, opts Dictionary, dict Dictionary, error IError) bool + ApplyFontTraitsRange(traitMask objc.IObject, range_ Range) + AppendAttributedString(attrString IAttributedString) FixAttachmentAttributeInRange(range_ Range) + BeginEditing() MutableString() MutableString } @@ -63,10 +65,6 @@ func (mc _MutableAttributedStringClass) Alloc() MutableAttributedString { return rv } -func MutableAttributedString_Alloc() MutableAttributedString { - return MutableAttributedStringClass.Alloc() -} - func (mc _MutableAttributedStringClass) New() MutableAttributedString { rv := objc.Call[MutableAttributedString](mc, objc.Sel("new")) rv.Autorelease() @@ -82,16 +80,44 @@ func (m_ MutableAttributedString) Init() MutableAttributedString { return rv } -func (m_ MutableAttributedString) InitWithHTMLOptionsDocumentAttributes(data []byte, options Dictionary, dict Dictionary) MutableAttributedString { - rv := objc.Call[MutableAttributedString](m_, objc.Sel("initWithHTML:options:documentAttributes:"), data, options, dict) +func (m_ MutableAttributedString) InitWithHTMLBaseURLDocumentAttributes(data []byte, base IURL, dict Dictionary) MutableAttributedString { + rv := objc.Call[MutableAttributedString](m_, objc.Sel("initWithHTML:baseURL:documentAttributes:"), data, objc.Ptr(base), dict) return rv } -// Creates an attributed string from the HTML in the specified data object. [Full Topic] +// 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/1535412-initwithhtml?language=objc -func NewMutableAttributedStringWithHTMLOptionsDocumentAttributes(data []byte, options Dictionary, dict Dictionary) MutableAttributedString { - instance := MutableAttributedStringClass.Alloc().InitWithHTMLOptionsDocumentAttributes(data, options, dict) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsattributedstring/1524624-initwithhtml?language=objc +func NewMutableAttributedStringWithHTMLBaseURLDocumentAttributes(data []byte, base IURL, dict Dictionary) MutableAttributedString { + instance := MutableAttributedStringClass.Alloc().InitWithHTMLBaseURLDocumentAttributes(data, base, dict) + instance.Autorelease() + return instance +} + +func (m_ MutableAttributedString) InitWithContentsOfMarkdownFileAtURLOptionsBaseURLError(markdownFile IURL, options IAttributedStringMarkdownParsingOptions, baseURL IURL, error IError) MutableAttributedString { + rv := objc.Call[MutableAttributedString](m_, objc.Sel("initWithContentsOfMarkdownFileAtURL:options:baseURL:error:"), objc.Ptr(markdownFile), objc.Ptr(options), objc.Ptr(baseURL), objc.Ptr(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 IError) 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) + return rv +} + +// Creates an attributed string with the specified string and attributes. [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) instance.Autorelease() return instance } @@ -122,16 +148,30 @@ func NewMutableAttributedStringWithAttributedString(attrStr IAttributedString) M return instance } -func (m_ MutableAttributedString) InitWithContentsOfMarkdownFileAtURLOptionsBaseURLError(markdownFile IURL, options IAttributedStringMarkdownParsingOptions, baseURL IURL, error IError) MutableAttributedString { - rv := objc.Call[MutableAttributedString](m_, objc.Sel("initWithContentsOfMarkdownFileAtURL:options:baseURL:error:"), objc.Ptr(markdownFile), objc.Ptr(options), objc.Ptr(baseURL), objc.Ptr(error)) +func (m_ MutableAttributedString) InitWithDataOptionsDocumentAttributesError(data []byte, options Dictionary, dict Dictionary, error IError) MutableAttributedString { + rv := objc.Call[MutableAttributedString](m_, objc.Sel("initWithData:options:documentAttributes:error:"), data, options, dict, objc.Ptr(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] +// Creates an attributed string from the data in the specified data object. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsattributedstring/3746872-initwithcontentsofmarkdownfileat?language=objc -func NewMutableAttributedStringWithContentsOfMarkdownFileAtURLOptionsBaseURLError(markdownFile IURL, options IAttributedStringMarkdownParsingOptions, baseURL IURL, error IError) MutableAttributedString { - instance := MutableAttributedStringClass.Alloc().InitWithContentsOfMarkdownFileAtURLOptionsBaseURLError(markdownFile, options, baseURL, error) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsattributedstring/1524613-initwithdata?language=objc +func NewMutableAttributedStringWithDataOptionsDocumentAttributesError(data []byte, options Dictionary, dict Dictionary, error IError) MutableAttributedString { + instance := MutableAttributedStringClass.Alloc().InitWithDataOptionsDocumentAttributesError(data, options, dict, error) + instance.Autorelease() + return instance +} + +func (m_ MutableAttributedString) InitWithRTFDocumentAttributes(data []byte, dict Dictionary) MutableAttributedString { + rv := objc.Call[MutableAttributedString](m_, objc.Sel("initWithRTF:documentAttributes:"), data, dict) + return rv +} + +// 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/1532912-initwithrtf?language=objc +func NewMutableAttributedStringWithRTFDocumentAttributes(data []byte, dict Dictionary) MutableAttributedString { + instance := MutableAttributedStringClass.Alloc().InitWithRTFDocumentAttributes(data, dict) instance.Autorelease() return instance } @@ -150,60 +190,58 @@ func NewMutableAttributedStringWithFormatOptionsLocale(format IAttributedString, return instance } -func (m_ MutableAttributedString) InitWithDataOptionsDocumentAttributesError(data []byte, options Dictionary, dict Dictionary, error IError) MutableAttributedString { - rv := objc.Call[MutableAttributedString](m_, objc.Sel("initWithData:options:documentAttributes:error:"), data, options, dict, objc.Ptr(error)) +func (m_ MutableAttributedString) InitWithRTFDFileWrapperDocumentAttributes(wrapper IFileWrapper, dict Dictionary) MutableAttributedString { + rv := objc.Call[MutableAttributedString](m_, objc.Sel("initWithRTFDFileWrapper:documentAttributes:"), objc.Ptr(wrapper), dict) return rv } -// Creates an attributed string from the data 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/1524613-initwithdata?language=objc -func NewMutableAttributedStringWithDataOptionsDocumentAttributesError(data []byte, options Dictionary, dict Dictionary, error IError) MutableAttributedString { - instance := MutableAttributedStringClass.Alloc().InitWithDataOptionsDocumentAttributesError(data, options, dict, error) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsattributedstring/1533594-initwithrtfdfilewrapper?language=objc +func NewMutableAttributedStringWithRTFDFileWrapperDocumentAttributes(wrapper IFileWrapper, dict Dictionary) MutableAttributedString { + instance := MutableAttributedStringClass.Alloc().InitWithRTFDFileWrapperDocumentAttributes(wrapper, dict) instance.Autorelease() return instance } -func (m_ MutableAttributedString) InitWithString(str string) MutableAttributedString { - rv := objc.Call[MutableAttributedString](m_, objc.Sel("initWithString:"), str) +func (m_ MutableAttributedString) InitWithMarkdownOptionsBaseURLError(markdown []byte, options IAttributedStringMarkdownParsingOptions, baseURL IURL, error IError) MutableAttributedString { + rv := objc.Call[MutableAttributedString](m_, objc.Sel("initWithMarkdown:options:baseURL:error:"), markdown, objc.Ptr(options), objc.Ptr(baseURL), objc.Ptr(error)) return rv } -// Creates an attributed string with the characters of the specified string and no attribute information. [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/1407481-initwithstring?language=objc -func NewMutableAttributedStringWithString(str string) MutableAttributedString { - instance := MutableAttributedStringClass.Alloc().InitWithString(str) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsattributedstring/3746875-initwithmarkdown?language=objc +func NewMutableAttributedStringWithMarkdownOptionsBaseURLError(markdown []byte, options IAttributedStringMarkdownParsingOptions, baseURL IURL, error IError) MutableAttributedString { + instance := MutableAttributedStringClass.Alloc().InitWithMarkdownOptionsBaseURLError(markdown, options, baseURL, error) instance.Autorelease() return instance } -func (m_ MutableAttributedString) InitWithMarkdownStringOptionsBaseURLError(markdownString string, options IAttributedStringMarkdownParsingOptions, baseURL IURL, error IError) MutableAttributedString { - rv := objc.Call[MutableAttributedString](m_, objc.Sel("initWithMarkdownString:options:baseURL:error:"), markdownString, objc.Ptr(options), objc.Ptr(baseURL), objc.Ptr(error)) +func (m_ MutableAttributedString) InitWithHTMLOptionsDocumentAttributes(data []byte, options Dictionary, dict Dictionary) MutableAttributedString { + rv := objc.Call[MutableAttributedString](m_, objc.Sel("initWithHTML:options:documentAttributes:"), data, options, dict) return rv } -// Creates an attributed string from a Markdown-formatted string using the provided options. [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/3746876-initwithmarkdownstring?language=objc -func NewMutableAttributedStringWithMarkdownStringOptionsBaseURLError(markdownString string, options IAttributedStringMarkdownParsingOptions, baseURL IURL, error IError) MutableAttributedString { - instance := MutableAttributedStringClass.Alloc().InitWithMarkdownStringOptionsBaseURLError(markdownString, options, baseURL, error) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsattributedstring/1535412-initwithhtml?language=objc +func NewMutableAttributedStringWithHTMLOptionsDocumentAttributes(data []byte, options Dictionary, dict Dictionary) MutableAttributedString { + instance := MutableAttributedStringClass.Alloc().InitWithHTMLOptionsDocumentAttributes(data, options, dict) instance.Autorelease() return instance } -func (m_ MutableAttributedString) InitWithMarkdownOptionsBaseURLError(markdown []byte, options IAttributedStringMarkdownParsingOptions, baseURL IURL, error IError) MutableAttributedString { - rv := objc.Call[MutableAttributedString](m_, objc.Sel("initWithMarkdown:options:baseURL:error:"), markdown, objc.Ptr(options), objc.Ptr(baseURL), objc.Ptr(error)) +func (mc _MutableAttributedStringClass) LocalizedAttributedStringWithFormatOptions(format IAttributedString, options AttributedStringFormattingOptions, args ...any) MutableAttributedString { + rv := objc.Call[MutableAttributedString](mc, objc.Sel("localizedAttributedStringWithFormat:options:"), append([]any{objc.Ptr(format), options}, args...)...) return rv } -// Creates an attributed string from Markdown-formatted data using the provided options. [Full Topic] +// [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsattributedstring/3746875-initwithmarkdown?language=objc -func NewMutableAttributedStringWithMarkdownOptionsBaseURLError(markdown []byte, options IAttributedStringMarkdownParsingOptions, baseURL IURL, error IError) MutableAttributedString { - instance := MutableAttributedStringClass.Alloc().InitWithMarkdownOptionsBaseURLError(markdown, options, baseURL, error) - instance.Autorelease() - return instance +// [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...) } func (m_ MutableAttributedString) InitWithDocFormatDocumentAttributes(data []byte, dict Dictionary) MutableAttributedString { @@ -220,117 +258,116 @@ func NewMutableAttributedStringWithDocFormatDocumentAttributes(data []byte, dict return instance } -func (m_ MutableAttributedString) InitWithRTFDDocumentAttributes(data []byte, dict Dictionary) MutableAttributedString { - rv := objc.Call[MutableAttributedString](m_, objc.Sel("initWithRTFD:documentAttributes:"), data, dict) +func (m_ MutableAttributedString) InitWithMarkdownStringOptionsBaseURLError(markdownString string, options IAttributedStringMarkdownParsingOptions, baseURL IURL, error IError) MutableAttributedString { + rv := objc.Call[MutableAttributedString](m_, objc.Sel("initWithMarkdownString:options:baseURL:error:"), markdownString, objc.Ptr(options), objc.Ptr(baseURL), objc.Ptr(error)) return rv } -// Creates an attributed string by decoding the stream of RTFD commands and data 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/1530987-initwithrtfd?language=objc -func NewMutableAttributedStringWithRTFDDocumentAttributes(data []byte, dict Dictionary) MutableAttributedString { - instance := MutableAttributedStringClass.Alloc().InitWithRTFDDocumentAttributes(data, dict) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsattributedstring/3746876-initwithmarkdownstring?language=objc +func NewMutableAttributedStringWithMarkdownStringOptionsBaseURLError(markdownString string, options IAttributedStringMarkdownParsingOptions, baseURL IURL, error IError) MutableAttributedString { + instance := MutableAttributedStringClass.Alloc().InitWithMarkdownStringOptionsBaseURLError(markdownString, options, baseURL, error) instance.Autorelease() return instance } -func (m_ MutableAttributedString) InitWithRTFDocumentAttributes(data []byte, dict Dictionary) MutableAttributedString { - rv := objc.Call[MutableAttributedString](m_, objc.Sel("initWithRTF:documentAttributes:"), data, dict) +func (m_ MutableAttributedString) InitWithURLOptionsDocumentAttributesError(url IURL, options Dictionary, dict Dictionary, error IError) MutableAttributedString { + rv := objc.Call[MutableAttributedString](m_, objc.Sel("initWithURL:options:documentAttributes:error:"), objc.Ptr(url), options, dict, objc.Ptr(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 the specified URL. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsattributedstring/1532912-initwithrtf?language=objc -func NewMutableAttributedStringWithRTFDocumentAttributes(data []byte, dict Dictionary) MutableAttributedString { - instance := MutableAttributedStringClass.Alloc().InitWithRTFDocumentAttributes(data, dict) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsattributedstring/1530490-initwithurl?language=objc +func NewMutableAttributedStringWithURLOptionsDocumentAttributesError(url IURL, options Dictionary, dict Dictionary, error IError) MutableAttributedString { + instance := MutableAttributedStringClass.Alloc().InitWithURLOptionsDocumentAttributesError(url, options, dict, error) instance.Autorelease() return instance } -func (m_ MutableAttributedString) InitWithRTFDFileWrapperDocumentAttributes(wrapper IFileWrapper, dict Dictionary) MutableAttributedString { - rv := objc.Call[MutableAttributedString](m_, objc.Sel("initWithRTFDFileWrapper:documentAttributes:"), objc.Ptr(wrapper), dict) +func (m_ MutableAttributedString) InitWithHTMLDocumentAttributes(data []byte, dict Dictionary) MutableAttributedString { + rv := objc.Call[MutableAttributedString](m_, objc.Sel("initWithHTML:documentAttributes:"), data, dict) return rv } -// Creates an attributed string from the specified file wrapper that contains an RTFD document. [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/1533594-initwithrtfdfilewrapper?language=objc -func NewMutableAttributedStringWithRTFDFileWrapperDocumentAttributes(wrapper IFileWrapper, dict Dictionary) MutableAttributedString { - instance := MutableAttributedStringClass.Alloc().InitWithRTFDFileWrapperDocumentAttributes(wrapper, dict) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsattributedstring/1525953-initwithhtml?language=objc +func NewMutableAttributedStringWithHTMLDocumentAttributes(data []byte, dict Dictionary) MutableAttributedString { + instance := MutableAttributedStringClass.Alloc().InitWithHTMLDocumentAttributes(data, dict) instance.Autorelease() return instance } -// [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{objc.Ptr(format)}, args...)...) +func (m_ MutableAttributedString) InitWithRTFDDocumentAttributes(data []byte, dict Dictionary) MutableAttributedString { + rv := objc.Call[MutableAttributedString](m_, objc.Sel("initWithRTFD:documentAttributes:"), data, dict) + return rv } -// Adds the characters and attributes of a given attributed string to the end of the receiver. [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/nsmutableattributedstring/1417879-appendattributedstring?language=objc -func (m_ MutableAttributedString) AppendAttributedString(attrString IAttributedString) { - objc.Call[objc.Void](m_, objc.Sel("appendAttributedString:"), objc.Ptr(attrString)) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsattributedstring/1530987-initwithrtfd?language=objc +func NewMutableAttributedStringWithRTFDDocumentAttributes(data []byte, dict Dictionary) MutableAttributedString { + instance := MutableAttributedStringClass.Alloc().InitWithRTFDDocumentAttributes(data, dict) + instance.Autorelease() + return instance } -// 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_) +func (m_ MutableAttributedString) InitWithString(str string) MutableAttributedString { + rv := objc.Call[MutableAttributedString](m_, objc.Sel("initWithString:"), str) + return rv } -// Sets the alignment characteristic of the paragraph style attribute for the characters in aRange to alignment. [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/nsmutableattributedstring/1530762-setalignment?language=objc -func (m_ MutableAttributedString) SetAlignmentRange(alignment objc.IObject, range_ Range) { - objc.Call[objc.Void](m_, objc.Sel("setAlignment:range:"), objc.Ptr(alignment), range_) +// [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 } -// Inserts the characters and attributes of the given attributed string into the receiver at the given index. [Full Topic] +// 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/1414947-insertattributedstring?language=objc -func (m_ MutableAttributedString) InsertAttributedStringAtIndex(attrString IAttributedString, loc uint) { - objc.Call[objc.Void](m_, objc.Sel("insertAttributedString:atIndex:"), objc.Ptr(attrString), loc) +// [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:"), objc.Ptr(attrString)) } -// 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] +// Removes the superscript attribute from the characters in aRange. [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/1530210-unscriptrange?language=objc +func (m_ MutableAttributedString) UnscriptRange(range_ Range) { + objc.Call[objc.Void](m_, objc.Sel("unscriptRange:"), range_) } -// Applies the font attributes specified by mask to the characters in aRange. [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/1532734-applyfonttraits?language=objc -func (m_ MutableAttributedString) ApplyFontTraitsRange(traitMask objc.IObject, range_ Range) { - objc.Call[objc.Void](m_, objc.Sel("applyFontTraits:range:"), objc.Ptr(traitMask), range_) +// [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_) } -// Removes the superscript attribute from the characters in aRange. [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/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/1414947-insertattributedstring?language=objc +func (m_ MutableAttributedString) InsertAttributedStringAtIndex(attrString IAttributedString, loc uint) { + objc.Call[objc.Void](m_, objc.Sel("insertAttributedString:atIndex:"), objc.Ptr(attrString), loc) } -// 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] +// 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/1411853-beginediting?language=objc -func (m_ MutableAttributedString) BeginEditing() { - objc.Call[objc.Void](m_, objc.Sel("beginEditing")) +// [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) } -// Sets the contents of the receiver from the stream at data. [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/1535465-readfromdata?language=objc -func (m_ MutableAttributedString) ReadFromDataOptionsDocumentAttributesError(data []byte, opts Dictionary, dict Dictionary, error IError) bool { - rv := objc.Call[bool](m_, objc.Sel("readFromData:options:documentAttributes:error:"), data, opts, dict, objc.Ptr(error)) - return rv +// [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_) } // Cleans up font, paragraph style, and attachment attributes within the given range. [Full Topic] @@ -340,18 +377,25 @@ func (m_ MutableAttributedString) FixAttributesInRange(range_ Range) { objc.Call[objc.Void](m_, objc.Sel("fixAttributesInRange:"), range_) } -// Adds the given collection of attributes to the characters in the specified range. [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/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/1533592-superscriptrange?language=objc +func (m_ MutableAttributedString) SuperscriptRange(range_ Range) { + objc.Call[objc.Void](m_, objc.Sel("superscriptRange:"), range_) } -// Updates all attachments based on files contained in the RTFD file package at path. [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/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/1534303-fixfontattributeinrange?language=objc +func (m_ MutableAttributedString) FixFontAttributeInRange(range_ Range) { + objc.Call[objc.Void](m_, objc.Sel("fixFontAttributeInRange:"), range_) +} + +// 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/nsmutableattributedstring/1530762-setalignment?language=objc +func (m_ MutableAttributedString) SetAlignmentRange(alignment objc.IObject, range_ Range) { + objc.Call[objc.Void](m_, objc.Sel("setAlignment:range:"), objc.Ptr(alignment), range_) } // Replaces the characters and attributes in a given range with the characters and attributes of the given attributed string. [Full Topic] @@ -361,18 +405,25 @@ func (m_ MutableAttributedString) ReplaceCharactersInRangeWithAttributedString(r objc.Call[objc.Void](m_, objc.Sel("replaceCharactersInRange:withAttributedString:"), range_, objc.Ptr(attrString)) } -// Overridden by subclasses to consolidate changes made since a previous beginEditing message and to notify any observers of the changes. [Full Topic] +// 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/1416707-endediting?language=objc -func (m_ MutableAttributedString) EndEditing() { - objc.Call[objc.Void](m_, objc.Sel("endEditing")) +// [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) } -// Replaces the receiver’s entire contents with the characters and attributes of the given attributed string. [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/1411894-setattributedstring?language=objc -func (m_ MutableAttributedString) SetAttributedString(attrString IAttributedString) { - objc.Call[objc.Void](m_, objc.Sel("setAttributedString:"), objc.Ptr(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:"), objc.Ptr(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] +// +// [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")) } // Removes the named attribute from the characters in the specified range. [Full Topic] @@ -382,25 +433,26 @@ func (m_ MutableAttributedString) RemoveAttributeRange(name AttributedStringKey, objc.Call[objc.Void](m_, objc.Sel("removeAttribute:range:"), name, range_) } -// Adds an attribute with the given name and value to the characters in the specified range. [Full Topic] +// Sets the contents of attributed string to the contents of the specified file. [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/1524892-readfromurl?language=objc +func (m_ MutableAttributedString) ReadFromURLOptionsDocumentAttributesError(url IURL, opts Dictionary, dict Dictionary, error IError) bool { + rv := objc.Call[bool](m_, objc.Sel("readFromURL:options:documentAttributes:error:"), objc.Ptr(url), opts, dict, objc.Ptr(error)) + return rv } -// Sets the attributes for the characters in the specified range to the specified attributes. [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/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/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_) } -// Increments the value of the superscript attribute for characters in aRange by 1. [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/1533592-superscriptrange?language=objc -func (m_ MutableAttributedString) SuperscriptRange(range_ Range) { - objc.Call[objc.Void](m_, objc.Sel("superscriptRange:"), 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_) } // 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] @@ -410,18 +462,40 @@ func (m_ MutableAttributedString) FixParagraphStyleAttributeInRange(range_ Range objc.Call[objc.Void](m_, objc.Sel("fixParagraphStyleAttributeInRange:"), range_) } -// Decrements the value of the superscript attribute for characters in aRange by 1. [Full Topic] +// [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/3746902-appendlocalizedformat?language=objc +func (m_ MutableAttributedString) AppendLocalizedFormat(format IAttributedString, args ...any) { + objc.Call[objc.Void](m_, objc.Sel("appendLocalizedFormat:"), append([]any{objc.Ptr(format)}, args...)...) } -// Sets the base writing direction for the characters in range to writingDirection. [Full Topic] +// Deletes the characters in the given range along with their associated attributes. [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:"), objc.Ptr(writingDirection), range_) +// [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 Dictionary, error IError) bool { + rv := objc.Call[bool](m_, objc.Sel("readFromData:options:documentAttributes:error:"), data, opts, dict, objc.Ptr(error)) + return rv +} + +// Applies the font attributes specified by mask to the characters in aRange. [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:"), objc.Ptr(traitMask), range_) +} + +// 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/nsmutableattributedstring/1417879-appendattributedstring?language=objc +func (m_ MutableAttributedString) AppendAttributedString(attrString IAttributedString) { + objc.Call[objc.Void](m_, objc.Sel("appendAttributedString:"), objc.Ptr(attrString)) } // Cleans up attachment attributes in aRange, removing all attachment attributes assigned to characters other than NSAttachmentCharacter. [Full Topic] @@ -431,6 +505,13 @@ 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 c76073ad..9f8b2528 100644 --- a/macos/foundation/mutable_character_set.gen.go +++ b/macos/foundation/mutable_character_set.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package foundation @@ -18,13 +18,13 @@ type _MutableCharacterSetClass struct { // An interface definition for the [MutableCharacterSet] class. type IMutableCharacterSet interface { ICharacterSet + RemoveCharactersInRange(aRange Range) AddCharactersInRange(aRange Range) - Invert() - FormUnionWithCharacterSet(otherSet ICharacterSet) AddCharactersInString(aString string) RemoveCharactersInString(aString string) + Invert() + FormUnionWithCharacterSet(otherSet ICharacterSet) FormIntersectionWithCharacterSet(otherSet ICharacterSet) - RemoveCharactersInRange(aRange Range) } // An object representing a mutable set of Unicode character values for use in search operations. [Full Topic] @@ -45,10 +45,6 @@ func (mc _MutableCharacterSetClass) Alloc() MutableCharacterSet { return rv } -func MutableCharacterSet_Alloc() MutableCharacterSet { - return MutableCharacterSetClass.Alloc() -} - func (mc _MutableCharacterSetClass) New() MutableCharacterSet { rv := objc.Call[MutableCharacterSet](mc, objc.Sel("new")) rv.Autorelease() @@ -64,6 +60,13 @@ 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 @@ -71,20 +74,6 @@ func (m_ MutableCharacterSet) AddCharactersInRange(aRange Range) { objc.Call[objc.Void](m_, objc.Sel("addCharactersInRange:"), aRange) } -// 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 -func (m_ MutableCharacterSet) Invert() { - objc.Call[objc.Void](m_, objc.Sel("invert")) -} - -// Modifies the receiver so it contains all characters that exist in either the receiver or another set. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsmutablecharacterset/1408380-formunionwithcharacterset?language=objc -func (m_ MutableCharacterSet) FormUnionWithCharacterSet(otherSet ICharacterSet) { - objc.Call[objc.Void](m_, objc.Sel("formUnionWithCharacterSet:"), objc.Ptr(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 @@ -99,16 +88,23 @@ 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 +func (m_ MutableCharacterSet) Invert() { + objc.Call[objc.Void](m_, objc.Sel("invert")) +} + +// Modifies the receiver so it contains all characters that exist in either the receiver or another set. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsmutablecharacterset/1408380-formunionwithcharacterset?language=objc +func (m_ MutableCharacterSet) FormUnionWithCharacterSet(otherSet ICharacterSet) { + objc.Call[objc.Void](m_, objc.Sel("formUnionWithCharacterSet:"), objc.Ptr(otherSet)) +} + // 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:"), objc.Ptr(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_copying.gen.go b/macos/foundation/mutable_copying_protocol.gen.go similarity index 62% rename from macos/foundation/mutable_copying.gen.go rename to macos/foundation/mutable_copying_protocol.gen.go index 8ff3a615..288c43f0 100644 --- a/macos/foundation/mutable_copying.gen.go +++ b/macos/foundation/mutable_copying_protocol.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package foundation @@ -13,24 +13,26 @@ import ( // [Full Topic]: https://developer.apple.com/documentation/foundation/nsmutablecopying?language=objc type PMutableCopying interface { // optional - MutableCopyWithZone(zone unsafe.Pointer) objc.IObject + MutableCopyWithZone(zone unsafe.Pointer) objc.Object HasMutableCopyWithZone() bool } -// A concrete type wrapper for the [PMutableCopying] protocol. -type MutableCopyingWrapper struct { +// ensure impl type implements protocol interface +var _ PMutableCopying = (*MutableCopyingObject)(nil) + +// A concrete type for the [PMutableCopying] protocol. +type MutableCopyingObject struct { objc.Object } -func (m_ MutableCopyingWrapper) HasMutableCopyWithZone() bool { +func (m_ MutableCopyingObject) HasMutableCopyWithZone() bool { return m_.RespondsToSelector(objc.Sel("mutableCopyWithZone:")) } // Returns a new instance that’s a mutable copy of the receiver. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/foundation/nsmutablecopying/1414175-mutablecopywithzone?language=objc -func (m_ MutableCopyingWrapper) MutableCopyWithZone(zone unsafe.Pointer) objc.Object { +func (m_ MutableCopyingObject) MutableCopyWithZone(zone unsafe.Pointer) objc.Object { rv := objc.Call[objc.Object](m_, objc.Sel("mutableCopyWithZone:"), zone) - rv.Autorelease() return rv } diff --git a/macos/foundation/mutable_data.gen.go b/macos/foundation/mutable_data.gen.go index efb4b0a6..30213199 100644 --- a/macos/foundation/mutable_data.gen.go +++ b/macos/foundation/mutable_data.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package foundation @@ -18,16 +18,17 @@ type _MutableDataClass struct { // An interface definition for the [MutableData] class. type IMutableData interface { IData - AppendBytesLength(bytes unsafe.Pointer, length uint) - CompressUsingAlgorithmError(algorithm DataCompressionAlgorithm, error IError) bool - ReplaceBytesInRangeWithBytes(range_ Range, bytes unsafe.Pointer) SetData(data []byte) - AppendData(other []byte) - DecompressUsingAlgorithmError(algorithm DataCompressionAlgorithm, error IError) bool - IncreaseLengthBy(extraLength uint) + CompressUsingAlgorithmError(algorithm DataCompressionAlgorithm, error IError) bool ResetBytesInRange(range_ Range) - MutableBytes() unsafe.Pointer + IncreaseLengthBy(extraLength uint) + DecompressUsingAlgorithmError(algorithm DataCompressionAlgorithm, error IError) bool + AppendBytesLength(bytes unsafe.Pointer, length uint) + ReplaceBytesInRangeWithBytesLength(range_ Range, replacementBytes unsafe.Pointer, replacementLength uint) + AppendData(other []byte) + ReplaceBytesInRangeWithBytes(range_ Range, bytes unsafe.Pointer) SetLength(value uint) + MutableBytes() unsafe.Pointer } // An object representing a dynamic byte buffer in memory. [Full Topic] @@ -43,56 +44,56 @@ func MutableDataFrom(ptr unsafe.Pointer) MutableData { } } -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 (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 (mc _MutableDataClass) Alloc() MutableData { @@ -100,10 +101,6 @@ func (mc _MutableDataClass) Alloc() MutableData { return rv } -func MutableData_Alloc() MutableData { - return MutableDataClass.Alloc() -} - func (mc _MutableDataClass) New() MutableData { rv := objc.Call[MutableData](mc, objc.Sel("new")) rv.Autorelease() @@ -119,56 +116,92 @@ func (m_ MutableData) Init() MutableData { return rv } -func (m_ MutableData) InitWithContentsOfFileOptionsError(path string, readOptionsMask DataReadingOptions, errorPtr IError) MutableData { - rv := objc.Call[MutableData](m_, objc.Sel("initWithContentsOfFile:options:error:"), path, readOptionsMask, objc.Ptr(errorPtr)) +func (mc _MutableDataClass) DataWithContentsOfFileOptionsError(path string, readOptionsMask DataReadingOptions, errorPtr IError) MutableData { + rv := objc.Call[MutableData](mc, objc.Sel("dataWithContentsOfFile:options:error:"), path, readOptionsMask, objc.Ptr(errorPtr)) return rv } -// Initializes a data object with the content of the file at a given path. [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/1411145-initwithcontentsoffile?language=objc -func NewMutableDataWithContentsOfFileOptionsError(path string, readOptionsMask DataReadingOptions, errorPtr IError) MutableData { - instance := MutableDataClass.Alloc().InitWithContentsOfFileOptionsError(path, readOptionsMask, errorPtr) - instance.Autorelease() - return instance +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsdata/1547244-datawithcontentsoffile?language=objc +func MutableData_DataWithContentsOfFileOptionsError(path string, readOptionsMask DataReadingOptions, errorPtr IError) MutableData { + return MutableDataClass.DataWithContentsOfFileOptionsError(path, readOptionsMask, errorPtr) } -func (m_ MutableData) CompressedDataUsingAlgorithmError(algorithm DataCompressionAlgorithm, error IError) MutableData { - rv := objc.Call[MutableData](m_, objc.Sel("compressedDataUsingAlgorithm:error:"), algorithm, objc.Ptr(error)) +func (m_ MutableData) InitWithBytesNoCopyLength(bytes unsafe.Pointer, length uint) MutableData { + rv := objc.Call[MutableData](m_, objc.Sel("initWithBytesNoCopy:length:"), bytes, length) return rv } -// Returns a new data object by compressing the data object’s bytes. [Full Topic] +// Initializes a data object filled with a given number of bytes of data from a given buffer. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsdata/3174960-compresseddatausingalgorithm?language=objc -func MutableData_CompressedDataUsingAlgorithmError(algorithm DataCompressionAlgorithm, error IError) MutableData { - instance := MutableDataClass.Alloc().CompressedDataUsingAlgorithmError(algorithm, error) +// [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) instance.Autorelease() return instance } -func (mc _MutableDataClass) DataWithContentsOfURL(url IURL) MutableData { - rv := objc.Call[MutableData](mc, objc.Sel("dataWithContentsOfURL:"), objc.Ptr(url)) +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) + return rv +} + +// Creates a data object containing the contents of another data object. [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) +} + +func (mc _MutableDataClass) DataWithContentsOfURLOptionsError(url IURL, readOptionsMask DataReadingOptions, errorPtr IError) MutableData { + rv := objc.Call[MutableData](mc, objc.Sel("dataWithContentsOfURL:options:error:"), objc.Ptr(url), readOptionsMask, objc.Ptr(errorPtr)) 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) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsdata/1547238-datawithcontentsofurl?language=objc +func MutableData_DataWithContentsOfURLOptionsError(url IURL, readOptionsMask DataReadingOptions, errorPtr IError) MutableData { + return MutableDataClass.DataWithContentsOfURLOptionsError(url, readOptionsMask, errorPtr) } -func (m_ MutableData) InitWithData(data []byte) MutableData { - rv := objc.Call[MutableData](m_, objc.Sel("initWithData:"), data) +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 contents of another data object. [Full Topic] +// Initializes a data object with the given Base64 encoded string. [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/1410081-initwithbase64encodedstring?language=objc +func NewMutableDataWithBase64EncodedStringOptions(base64String string, options DataBase64DecodingOptions) MutableData { + instance := MutableDataClass.Alloc().InitWithBase64EncodedStringOptions(base64String, options) + instance.Autorelease() + return instance +} + +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 filled with a given number of bytes copied from a given buffer. [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) instance.Autorelease() return instance } @@ -187,40 +220,70 @@ func NewMutableDataWithBytesNoCopyLengthFreeWhenDone(bytes unsafe.Pointer, lengt 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) +func (m_ MutableData) InitWithContentsOfURLOptionsError(url IURL, readOptionsMask DataReadingOptions, errorPtr IError) MutableData { + rv := objc.Call[MutableData](m_, objc.Sel("initWithContentsOfURL:options:error:"), objc.Ptr(url), readOptionsMask, objc.Ptr(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 IError) MutableData { + instance := MutableDataClass.Alloc().InitWithContentsOfURLOptionsError(url, readOptionsMask, errorPtr) + instance.Autorelease() + return instance +} + +func (m_ MutableData) InitWithContentsOfFileOptionsError(path string, readOptionsMask DataReadingOptions, errorPtr IError) MutableData { + rv := objc.Call[MutableData](m_, objc.Sel("initWithContentsOfFile:options:error:"), path, readOptionsMask, objc.Ptr(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 IError) 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) 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) +// [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) } -func (mc _MutableDataClass) DataWithData(data []byte) MutableData { - rv := objc.Call[MutableData](mc, objc.Sel("dataWithData:"), data) +func (m_ MutableData) InitWithContentsOfURL(url IURL) MutableData { + rv := objc.Call[MutableData](m_, objc.Sel("initWithContentsOfURL:"), objc.Ptr(url)) return rv } -// Creates a data object containing the contents of another data object. [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/1547230-datawithdata?language=objc -func MutableData_DataWithData(data []byte) MutableData { - return MutableDataClass.DataWithData(data) +// [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 (mc _MutableDataClass) DataWithContentsOfFileOptionsError(path string, readOptionsMask DataReadingOptions, errorPtr IError) MutableData { - rv := objc.Call[MutableData](mc, objc.Sel("dataWithContentsOfFile:options:error:"), path, readOptionsMask, objc.Ptr(errorPtr)) +func (mc _MutableDataClass) DataWithBytesLength(bytes unsafe.Pointer, length uint) MutableData { + rv := objc.Call[MutableData](mc, objc.Sel("dataWithBytes:length:"), bytes, length) return rv } -// Creates a data object by reading every byte from the file at a given path. [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/1547244-datawithcontentsoffile?language=objc -func MutableData_DataWithContentsOfFileOptionsError(path string, readOptionsMask DataReadingOptions, errorPtr IError) MutableData { - return MutableDataClass.DataWithContentsOfFileOptionsError(path, readOptionsMask, errorPtr) +// [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) } func (mc _MutableDataClass) Data() MutableData { @@ -235,108 +298,112 @@ func MutableData_Data() MutableData { return MutableDataClass.Data() } -func (m_ MutableData) InitWithBytesLength(bytes unsafe.Pointer, length uint) MutableData { - rv := objc.Call[MutableData](m_, objc.Sel("initWithBytes:length:"), bytes, length) +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 filled with a given number of bytes copied from a given buffer. [Full Topic] +// Initializes a data object with the given Base64 encoded data. [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/1417833-initwithbase64encodeddata?language=objc +func NewMutableDataWithBase64EncodedDataOptions(base64Data []byte, options DataBase64DecodingOptions) MutableData { + instance := MutableDataClass.Alloc().InitWithBase64EncodedDataOptions(base64Data, options) instance.Autorelease() return instance } -func (m_ MutableData) InitWithContentsOfURL(url IURL) MutableData { - rv := objc.Call[MutableData](m_, objc.Sel("initWithContentsOfURL:"), objc.Ptr(url)) +func (m_ MutableData) InitWithContentsOfFile(path string) MutableData { + rv := objc.Call[MutableData](m_, objc.Sel("initWithContentsOfFile:"), path) return rv } -// Initializes a data object with the data from the location specified by a given URL. [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/1413892-initwithcontentsofurl?language=objc -func NewMutableDataWithContentsOfURL(url IURL) MutableData { - instance := MutableDataClass.Alloc().InitWithContentsOfURL(url) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsdata/1408672-initwithcontentsoffile?language=objc +func NewMutableDataWithContentsOfFile(path string) MutableData { + instance := MutableDataClass.Alloc().InitWithContentsOfFile(path) instance.Autorelease() return instance } -func (m_ MutableData) DecompressedDataUsingAlgorithmError(algorithm DataCompressionAlgorithm, error IError) MutableData { - rv := objc.Call[MutableData](m_, objc.Sel("decompressedDataUsingAlgorithm:error:"), algorithm, objc.Ptr(error)) +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) return rv } -// Returns a new data object by decompressing data object’s bytes. [Full Topic] +// Initializes a data object filled with a given number of bytes of data from a given buffer, with a custom deallocator block. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsdata/3174961-decompresseddatausingalgorithm?language=objc -func MutableData_DecompressedDataUsingAlgorithmError(algorithm DataCompressionAlgorithm, error IError) MutableData { - instance := MutableDataClass.Alloc().DecompressedDataUsingAlgorithmError(algorithm, error) +// [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) instance.Autorelease() return instance } -func (m_ MutableData) InitWithBase64EncodedDataOptions(base64Data []byte, options DataBase64DecodingOptions) MutableData { - rv := objc.Call[MutableData](m_, objc.Sel("initWithBase64EncodedData:options:"), base64Data, options) +func (mc _MutableDataClass) DataWithContentsOfFile(path string) MutableData { + rv := objc.Call[MutableData](mc, objc.Sel("dataWithContentsOfFile:"), path) return rv } -// Initializes a data object with the given Base64 encoded data. [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/1417833-initwithbase64encodeddata?language=objc -func NewMutableDataWithBase64EncodedDataOptions(base64Data []byte, options DataBase64DecodingOptions) MutableData { - instance := MutableDataClass.Alloc().InitWithBase64EncodedDataOptions(base64Data, options) - instance.Autorelease() - return instance +// [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) InitWithBase64EncodedStringOptions(base64String string, options DataBase64DecodingOptions) MutableData { - rv := objc.Call[MutableData](m_, objc.Sel("initWithBase64EncodedString:options:"), base64String, options) +func (m_ MutableData) InitWithData(data []byte) MutableData { + rv := objc.Call[MutableData](m_, objc.Sel("initWithData:"), data) return rv } -// Initializes a data object with the given Base64 encoded string. [Full Topic] +// Initializes a data object with the contents of another data object. [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) +// [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 } -func (mc _MutableDataClass) DataWithBytesLength(bytes unsafe.Pointer, length uint) MutableData { - rv := objc.Call[MutableData](mc, objc.Sel("dataWithBytes:length:"), bytes, length) +func (mc _MutableDataClass) DataWithContentsOfURL(url IURL) MutableData { + rv := objc.Call[MutableData](mc, objc.Sel("dataWithContentsOfURL:"), objc.Ptr(url)) return rv } -// Creates a data object containing a given number of bytes copied from a given buffer. [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/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/1547245-datawithcontentsofurl?language=objc +func MutableData_DataWithContentsOfURL(url IURL) MutableData { + return MutableDataClass.DataWithContentsOfURL(url) } -// 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) +func (m_ MutableData) CompressedDataUsingAlgorithmError(algorithm DataCompressionAlgorithm, error IError) MutableData { + rv := objc.Call[MutableData](m_, objc.Sel("compressedDataUsingAlgorithm:error:"), algorithm, objc.Ptr(error)) + return rv } -// Compresses the data object’s bytes using an algorithm that you specify. [Full Topic] +// Returns a new data object by compressing the data object’s bytes. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsmutabledata/3174967-compressusingalgorithm?language=objc -func (m_ MutableData) CompressUsingAlgorithmError(algorithm DataCompressionAlgorithm, error IError) bool { - rv := objc.Call[bool](m_, objc.Sel("compressUsingAlgorithm:error:"), algorithm, objc.Ptr(error)) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsdata/3174960-compresseddatausingalgorithm?language=objc +func MutableData_CompressedDataUsingAlgorithmError(algorithm DataCompressionAlgorithm, error IError) MutableData { + instance := MutableDataClass.Alloc().CompressedDataUsingAlgorithmError(algorithm, error) + instance.Autorelease() + return instance +} + +func (m_ MutableData) DecompressedDataUsingAlgorithmError(algorithm DataCompressionAlgorithm, error IError) MutableData { + rv := objc.Call[MutableData](m_, objc.Sel("decompressedDataUsingAlgorithm:error:"), algorithm, objc.Ptr(error)) return rv } -// Replaces with a given set of bytes a given range within the contents of the receiver. [Full Topic] +// Returns a new data object by decompressing data object’s bytes. [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/nsdata/3174961-decompresseddatausingalgorithm?language=objc +func MutableData_DecompressedDataUsingAlgorithmError(algorithm DataCompressionAlgorithm, error IError) MutableData { + instance := MutableDataClass.Alloc().DecompressedDataUsingAlgorithmError(algorithm, error) + instance.Autorelease() + return instance } // Replaces the entire contents of the receiver with the contents of another data object. [Full Topic] @@ -346,11 +413,26 @@ 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] +// Compresses the data object’s bytes using an algorithm that you specify. [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/3174967-compressusingalgorithm?language=objc +func (m_ MutableData) CompressUsingAlgorithmError(algorithm DataCompressionAlgorithm, error IError) bool { + rv := objc.Call[bool](m_, objc.Sel("compressUsingAlgorithm:error:"), algorithm, objc.Ptr(error)) + return rv +} + +// Replaces with zeroes the contents of the receiver in a given range. [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_) +} + +// Increases the length of the receiver by a given number of bytes. [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) } // Decompresses the data object’s bytes. [Full Topic] @@ -361,26 +443,32 @@ func (m_ MutableData) DecompressUsingAlgorithmError(algorithm DataCompressionAlg return rv } -// Increases the length of the receiver by a given number of bytes. [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/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/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 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/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) } -// A pointer to the data contained by the mutable data object. [Full Topic] +// Appends the content of another data object to the receiver. [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 +// [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) +} + +// 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/1414281-replacebytesinrange?language=objc +func (m_ MutableData) ReplaceBytesInRangeWithBytes(range_ Range, bytes unsafe.Pointer) { + objc.Call[objc.Void](m_, objc.Sel("replaceBytesInRange:withBytes:"), range_, bytes) } // The number of bytes contained in the mutable data object. [Full Topic] @@ -389,3 +477,11 @@ func (m_ MutableData) MutableBytes() unsafe.Pointer { 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 f68d3207..8f813dce 100644 --- a/macos/foundation/mutable_dictionary.gen.go +++ b/macos/foundation/mutable_dictionary.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package foundation @@ -18,37 +18,39 @@ type _MutableDictionaryClass struct { // An interface definition for the [MutableDictionary] class. type IMutableDictionary interface { IDictionary - 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 + AddLengthHeader(length uint32) objc.Object + AddTypeHeader(type_ string) 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 - AddImageHandleHeader(type_ string) objc.Object + AddByteSequenceHeaderLength(inHeaderData unsafe.Pointer, inHeaderDataLength uint32) objc.Object + AddWhoHeaderLength(inHeaderData unsafe.Pointer, inHeaderDataLength uint32) objc.Object AddImageDescriptorHeaderLength(inHeaderData unsafe.Pointer, inHeaderDataLength uint32) objc.Object - AddLengthHeader(length uint32) objc.Object - AddEntriesFromDictionary(otherDictionary Dictionary) - 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 - AddTypeHeader(type_ string) objc.Object - RemoveObjectsForKeys(keyArray []objc.IObject) - AddAuthorizationChallengeHeaderLength(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 - AddTime4ByteHeader(time4Byte uint32) objc.Object - AddDescriptionHeader(inDescriptionString string) objc.Object - RemoveObjectForKey(aKey objc.IObject) + AddAuthorizationChallengeHeaderLength(inHeaderData unsafe.Pointer, inHeaderDataLength uint32) objc.Object + AddEntriesFromDictionary(otherDictionary Dictionary) + AddHTTPHeaderLength(inHeaderData unsafe.Pointer, inHeaderDataLength uint32) objc.Object AddUserDefinedHeaderLength(inHeaderData unsafe.Pointer, inHeaderDataLength uint32) objc.Object - AddNameHeader(inNameString string) objc.Object - 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 + 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) + 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 + AddNameHeader(inNameString string) objc.Object + SetDictionary(otherDictionary Dictionary) } // A dynamic collection of objects associated with unique keys. [Full Topic] @@ -64,6 +66,18 @@ 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 @@ -78,16 +92,16 @@ func NewMutableDictionaryWithCapacity(numItems uint) MutableDictionary { return instance } -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 (m_ MutableDictionary) Init() MutableDictionary { @@ -95,16 +109,16 @@ func (m_ MutableDictionary) Init() MutableDictionary { return rv } -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 (mc _MutableDictionaryClass) Alloc() MutableDictionary { @@ -112,10 +126,6 @@ func (mc _MutableDictionaryClass) Alloc() MutableDictionary { return rv } -func MutableDictionary_Alloc() MutableDictionary { - return MutableDictionaryClass.Alloc() -} - func (mc _MutableDictionaryClass) New() MutableDictionary { rv := objc.Call[MutableDictionary](mc, objc.Sel("new")) rv.Autorelease() @@ -126,16 +136,30 @@ func NewMutableDictionary() MutableDictionary { return MutableDictionaryClass.New() } -func (mc _MutableDictionaryClass) DictionaryWithObjectsForKeys(objects []objc.IObject, keys []PCopying) MutableDictionary { - rv := objc.Call[MutableDictionary](mc, objc.Sel("dictionaryWithObjects:forKeys:"), objects, keys) +func (m_ MutableDictionary) InitWithDictionary(otherDictionary Dictionary) MutableDictionary { + rv := objc.Call[MutableDictionary](m_, objc.Sel("initWithDictionary:"), otherDictionary) return rv } -// Creates a dictionary containing entries constructed from the contents of an array of keys and an array of values. [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/1574183-dictionarywithobjects?language=objc -func MutableDictionary_DictionaryWithObjectsForKeys(objects []objc.IObject, keys []PCopying) MutableDictionary { - return MutableDictionaryClass.DictionaryWithObjectsForKeys(objects, keys) +// [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...)...) + return rv +} + +// 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/1574181-dictionarywithobjectsandkeys?language=objc +func MutableDictionary_DictionaryWithObjectsAndKeys(firstObject objc.IObject, args ...any) MutableDictionary { + return MutableDictionaryClass.DictionaryWithObjectsAndKeys(firstObject, args...) } func (m_ MutableDictionary) InitWithObjectsAndKeys(firstObject objc.IObject, args ...any) MutableDictionary { @@ -152,6 +176,31 @@ 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 objc.IObject, keys PCopying, cnt uint) MutableDictionary { + po1 := objc.WrapAsProtocol("NSCopying", keys) + rv := objc.Call[MutableDictionary](mc, objc.Sel("dictionaryWithObjects:forKeys:count:"), objc.Ptr(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 objc.IObject, keys PCopying, 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 @@ -166,19 +215,6 @@ func NewMutableDictionaryWithObjectsForKeys(objects []objc.IObject, keys []PCopy return instance } -func (mc _MutableDictionaryClass) DictionaryWithObjectForKey(object objc.IObject, key PCopying) MutableDictionary { - po1 := objc.WrapAsProtocol("NSCopying", key) - rv := objc.Call[MutableDictionary](mc, objc.Sel("dictionaryWithObject:forKey:"), objc.Ptr(object), po1) - return rv -} - -// Creates a dictionary containing a given key and value. [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) -} - func (mc _MutableDictionaryClass) Dictionary() MutableDictionary { rv := objc.Call[MutableDictionary](mc, objc.Sel("dictionary")) return rv @@ -191,73 +227,73 @@ func MutableDictionary_Dictionary() MutableDictionary { return MutableDictionaryClass.Dictionary() } -func (mc _MutableDictionaryClass) DictionaryWithObjectsAndKeys(firstObject objc.IObject, args ...any) MutableDictionary { - rv := objc.Call[MutableDictionary](mc, objc.Sel("dictionaryWithObjectsAndKeys:"), append([]any{firstObject}, args...)...) +func (m_ MutableDictionary) InitWithDictionaryCopyItems(otherDictionary Dictionary, flag bool) MutableDictionary { + rv := objc.Call[MutableDictionary](m_, objc.Sel("initWithDictionary:copyItems:"), otherDictionary, flag) return rv } -// Creates a dictionary containing entries constructed from the specified set of values and keys. [Full Topic] +// Initializes a newly allocated dictionary using the objects contained in another given dictionary. [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/1410124-initwithdictionary?language=objc +func NewMutableDictionaryWithDictionaryCopyItems(otherDictionary Dictionary, flag bool) MutableDictionary { + instance := MutableDictionaryClass.Alloc().InitWithDictionaryCopyItems(otherDictionary, flag) + instance.Autorelease() + return instance } -func (mc _MutableDictionaryClass) DictionaryWithDictionary(dict Dictionary) MutableDictionary { - rv := objc.Call[MutableDictionary](mc, objc.Sel("dictionaryWithDictionary:"), dict) +func (m_ MutableDictionary) InitWithObjectsForKeysCount(objects objc.IObject, keys PCopying, cnt uint) MutableDictionary { + po1 := objc.WrapAsProtocol("NSCopying", keys) + rv := objc.Call[MutableDictionary](m_, objc.Sel("initWithObjects:forKeys:count:"), objc.Ptr(objects), po1, cnt) return rv } -// Creates a dictionary containing the keys and values from another given dictionary. [Full Topic] +// 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] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsdictionary/1574191-dictionarywithdictionary?language=objc -func MutableDictionary_DictionaryWithDictionary(dict Dictionary) MutableDictionary { - return MutableDictionaryClass.DictionaryWithDictionary(dict) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsdictionary/1412631-initwithobjects?language=objc +func NewMutableDictionaryWithObjectsForKeysCount(objects objc.IObject, keys PCopying, cnt uint) MutableDictionary { + instance := MutableDictionaryClass.Alloc().InitWithObjectsForKeysCount(objects, keys, cnt) + instance.Autorelease() + return instance } -func (m_ MutableDictionary) InitWithDictionary(otherDictionary Dictionary) MutableDictionary { - rv := objc.Call[MutableDictionary](m_, objc.Sel("initWithDictionary:"), otherDictionary) +func (mc _MutableDictionaryClass) DictionaryWithDictionary(dict Dictionary) MutableDictionary { + rv := objc.Call[MutableDictionary](mc, objc.Sel("dictionaryWithDictionary:"), dict) return rv } -// Initializes a newly allocated dictionary by placing in it the keys and values contained in another given dictionary. [Full Topic] +// Creates a dictionary containing the keys and values from 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 +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsdictionary/1574191-dictionarywithdictionary?language=objc +func MutableDictionary_DictionaryWithDictionary(dict Dictionary) MutableDictionary { + return MutableDictionaryClass.DictionaryWithDictionary(dict) } -// [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) +func (mc _MutableDictionaryClass) DictionaryWithObjectForKey(object objc.IObject, key PCopying) MutableDictionary { + po1 := objc.WrapAsProtocol("NSCopying", key) + rv := objc.Call[MutableDictionary](mc, objc.Sel("dictionaryWithObject:forKey:"), objc.Ptr(object), po1) return rv } -// [Full Topic] +// Creates a dictionary containing a given key and value. [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 +// [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] // -// [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) +// [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 } // [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/1433211-addtypeheader?language=objc +func (m_ MutableDictionary) AddTypeHeader(type_ string) objc.Object { + rv := objc.Call[objc.Object](m_, objc.Sel("addTypeHeader:"), type_) return rv } @@ -279,88 +315,51 @@ func (m_ MutableDictionary) AddTargetHeaderLength(inHeaderData unsafe.Pointer, i // [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) - return rv -} - -// [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_) +// [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/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/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] +// Adds a given key-value pair to the dictionary. [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 +// [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:"), objc.Ptr(obj), po1) } -// Adds to the receiving dictionary the entries from another dictionary. [Full Topic] +// Adds a given key-value pair to the 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]: 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:"), objc.Ptr(obj), objc.Ptr(keyObject)) } // [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/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/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] -// -// [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:"), objc.Ptr(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:"), objc.Ptr(anObject), objc.Ptr(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 @@ -378,32 +377,25 @@ func MutableDictionary_DictionaryWithSharedKeySet(keyset objc.IObject) MutableDi // [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/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/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 } -// 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/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) +// [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 } @@ -425,27 +417,65 @@ func (m_ MutableDictionary) AddBodyHeaderLengthEndOfBody(inHeaderData unsafe.Poi // [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:"), objc.Ptr(url)) +// [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/1574182-dictionarywithcontentsofurl?language=objc -func MutableDictionary_DictionaryWithContentsOfURL(url IURL) MutableDictionary { - return MutableDictionaryClass.DictionaryWithContentsOfURL(url) +// [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 } // [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/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:"), objc.Ptr(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] +// +// [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 +} + +// 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 @@ -454,6 +484,21 @@ 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 @@ -461,56 +506,78 @@ func (m_ MutableDictionary) RemoveObjectForKey(aKey objc.IObject) { objc.Call[objc.Void](m_, objc.Sel("removeObjectForKey:"), objc.Ptr(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:"), objc.Ptr(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:"), objc.Ptr(anObject), objc.Ptr(aKeyObject)) +} + // [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) +// [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/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]: 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/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/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/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/1574182-dictionarywithcontentsofurl?language=objc +func (mc _MutableDictionaryClass) DictionaryWithContentsOfURL(url IURL) MutableDictionary { + rv := objc.Call[MutableDictionary](mc, objc.Sel("dictionaryWithContentsOfURL:"), objc.Ptr(url)) return rv } -// Adds a given key-value pair to the dictionary. [Full Topic] +// [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:"), objc.Ptr(value), key) +// [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/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/1430878-addimagehandleheader?language=objc +func (m_ MutableDictionary) AddImageHandleHeader(type_ string) objc.Object { + rv := objc.Call[objc.Object](m_, objc.Sel("addImageHandleHeader:"), type_) return rv } -// Empties the dictionary of its entries. [Full Topic] +// [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]: 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 +} + +// 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) } diff --git a/macos/foundation/mutable_index_set.gen.go b/macos/foundation/mutable_index_set.gen.go index 268923a4..bff766e8 100644 --- a/macos/foundation/mutable_index_set.gen.go +++ b/macos/foundation/mutable_index_set.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package foundation @@ -18,14 +18,14 @@ type _MutableIndexSetClass struct { // An interface definition for the [MutableIndexSet] class. type IMutableIndexSet interface { IIndexSet - ShiftIndexesStartingAtIndexBy(index uint, delta int) RemoveIndex(value uint) - RemoveIndexesInRange(range_ Range) - RemoveIndexes(indexSet IIndexSet) + ShiftIndexesStartingAtIndexBy(index uint, delta int) 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] @@ -46,10 +46,6 @@ func (mc _MutableIndexSetClass) Alloc() MutableIndexSet { return rv } -func MutableIndexSet_Alloc() MutableIndexSet { - return MutableIndexSetClass.Alloc() -} - func (mc _MutableIndexSetClass) New() MutableIndexSet { rv := objc.Call[MutableIndexSet](mc, objc.Sel("new")) rv.Autorelease() @@ -65,6 +61,20 @@ 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 @@ -77,16 +87,16 @@ func MutableIndexSet_IndexSetWithIndex(value uint) MutableIndexSet { return MutableIndexSetClass.IndexSetWithIndex(value) } -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_) } func (m_ MutableIndexSet) InitWithIndexesInRange(range_ Range) MutableIndexSet { @@ -117,30 +127,23 @@ func NewMutableIndexSetWithIndexSet(indexSet IIndexSet) MutableIndexSet { return instance } -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_) -} - -func (m_ MutableIndexSet) InitWithIndex(value uint) MutableIndexSet { - rv := objc.Call[MutableIndexSet](m_, objc.Sel("initWithIndex:"), value) - return rv +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsindexset/1427281-indexset?language=objc +func MutableIndexSet_IndexSet() MutableIndexSet { + return MutableIndexSetClass.IndexSet() } -// Initializes an allocated NSIndexSet object with an index. [Full Topic] +// Removes an index from the receiver. [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 +// [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) } // Shifts a group of indexes to the left or the right within the receiver. [Full Topic] @@ -150,32 +153,25 @@ func (m_ MutableIndexSet) ShiftIndexesStartingAtIndexBy(index uint, delta int) { objc.Call[objc.Void](m_, objc.Sel("shiftIndexesStartingAtIndex:by:"), index, delta) } -// Removes an index from the receiver. [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) -} - -// Removes the indexes in an index range from the receiver. [Full Topic] +// Removes the receiver’s indexes. [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/1408738-removeallindexes?language=objc +func (m_ MutableIndexSet) RemoveAllIndexes() { + objc.Call[objc.Void](m_, objc.Sel("removeAllIndexes")) } -// 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:"), objc.Ptr(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:"), objc.Ptr(indexSet)) } -// Removes the receiver’s indexes. [Full Topic] +// Adds the indexes in an index range to 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/1408251-addindexesinrange?language=objc +func (m_ MutableIndexSet) AddIndexesInRange(range_ Range) { + objc.Call[objc.Void](m_, objc.Sel("addIndexesInRange:"), range_) } // Adds an index to the receiver. [Full Topic] @@ -185,16 +181,16 @@ func (m_ MutableIndexSet) AddIndex(value uint) { objc.Call[objc.Void](m_, objc.Sel("addIndex:"), value) } -// Adds the indexes in an index set 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/1414594-addindexes?language=objc -func (m_ MutableIndexSet) AddIndexes(indexSet IIndexSet) { - objc.Call[objc.Void](m_, objc.Sel("addIndexes:"), objc.Ptr(indexSet)) +// [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:"), objc.Ptr(indexSet)) } -// Adds the indexes in an index range 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/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/1415791-removeindexesinrange?language=objc +func (m_ MutableIndexSet) RemoveIndexesInRange(range_ Range) { + objc.Call[objc.Void](m_, objc.Sel("removeIndexesInRange:"), range_) } diff --git a/macos/foundation/mutable_ordered_set.gen.go b/macos/foundation/mutable_ordered_set.gen.go index 3c92cd9a..3a335563 100644 --- a/macos/foundation/mutable_ordered_set.gen.go +++ b/macos/foundation/mutable_ordered_set.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package foundation @@ -18,35 +18,36 @@ type _MutableOrderedSetClass struct { // An interface definition for the [MutableOrderedSet] class. type IMutableOrderedSet interface { IOrderedSet - SortUsingDescriptors(sortDescriptors []ISortDescriptor) - AddObjectsFromArray(array []objc.IObject) - MoveObjectsAtIndexesToIndex(indexes IIndexSet, idx uint) - IntersectSet(other ISet) - FilterUsingPredicate(p IPredicate) + AddObject(object objc.IObject) + RemoveObject(object objc.IObject) MinusOrderedSet(other IOrderedSet) + UnionOrderedSet(other IOrderedSet) ReplaceObjectsInRangeWithObjectsCount(range_ Range, objects objc.IObject, count uint) - AddObject(object objc.IObject) + ReplaceObjectsAtIndexesWithObjects(indexes IIndexSet, objects []objc.IObject) ExchangeObjectAtIndexWithObjectAtIndex(idx1 uint, idx2 uint) - InsertObjectAtIndex(object objc.IObject, idx uint) ApplyDifference(difference IOrderedCollectionDifference) SetObjectAtIndexedSubscript(obj objc.IObject, idx uint) - RemoveObject(object objc.IObject) - RemoveObjectAtIndex(idx uint) - RemoveObjectsInArray(array []objc.IObject) - MinusSet(other ISet) - RemoveObjectsInRange(range_ Range) + IntersectSet(other ISet) IntersectOrderedSet(other IOrderedSet) - ReplaceObjectsAtIndexesWithObjects(indexes IIndexSet, objects []objc.IObject) - RemoveObjectsAtIndexes(indexes IIndexSet) - UnionSet(other ISet) + RemoveObjectAtIndex(idx uint) SortUsingComparator(cmptr Comparator) - AddObjectsCount(objects objc.IObject, count uint) + RemoveObjectsAtIndexes(indexes IIndexSet) + SortRangeOptionsUsingComparator(range_ Range, opts SortOptions, cmptr Comparator) + RemoveAllObjects() InsertObjectsAtIndexes(objects []objc.IObject, indexes IIndexSet) + SetObjectAtIndex(obj objc.IObject, idx uint) SortWithOptionsUsingComparator(opts SortOptions, cmptr Comparator) - RemoveAllObjects() + SortUsingDescriptors(sortDescriptors []ISortDescriptor) + UnionSet(other ISet) + MoveObjectsAtIndexesToIndex(indexes IIndexSet, idx uint) ReplaceObjectAtIndexWithObject(idx uint, object objc.IObject) - SortRangeOptionsUsingComparator(range_ Range, opts SortOptions, cmptr Comparator) - UnionOrderedSet(other IOrderedSet) + FilterUsingPredicate(p IPredicate) + AddObjectsFromArray(array []objc.IObject) + RemoveObjectsInArray(array []objc.IObject) + RemoveObjectsInRange(range_ Range) + MinusSet(other ISet) + AddObjectsCount(objects objc.IObject, count uint) + InsertObjectAtIndex(object objc.IObject, idx uint) } // A dynamic, ordered collection of unique objects. [Full Topic] @@ -62,18 +63,6 @@ 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 @@ -88,6 +77,18 @@ 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 @@ -98,10 +99,6 @@ func (mc _MutableOrderedSetClass) Alloc() MutableOrderedSet { return rv } -func MutableOrderedSet_Alloc() MutableOrderedSet { - return MutableOrderedSetClass.Alloc() -} - func (mc _MutableOrderedSetClass) New() MutableOrderedSet { rv := objc.Call[MutableOrderedSet](mc, objc.Sel("new")) rv.Autorelease() @@ -112,56 +109,42 @@ func NewMutableOrderedSet() MutableOrderedSet { return MutableOrderedSetClass.New() } -func (mc _MutableOrderedSetClass) OrderedSetWithOrderedSet(set IOrderedSet) MutableOrderedSet { - rv := objc.Call[MutableOrderedSet](mc, objc.Sel("orderedSetWithOrderedSet:"), objc.Ptr(set)) +func (mc _MutableOrderedSetClass) OrderedSetWithObjectsCount(objects objc.IObject, cnt uint) MutableOrderedSet { + rv := objc.Call[MutableOrderedSet](mc, objc.Sel("orderedSetWithObjects:count:"), objc.Ptr(objects), cnt) return rv } -// Creates and returns an ordered set containing the objects from another ordered 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/nsorderedset/1543280-orderedsetwithorderedset?language=objc -func MutableOrderedSet_OrderedSetWithOrderedSet(set IOrderedSet) MutableOrderedSet { - return MutableOrderedSetClass.OrderedSetWithOrderedSet(set) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsorderedset/1543334-orderedsetwithobjects?language=objc +func MutableOrderedSet_OrderedSetWithObjectsCount(objects objc.IObject, cnt uint) MutableOrderedSet { + return MutableOrderedSetClass.OrderedSetWithObjectsCount(objects, cnt) } -func (m_ MutableOrderedSet) InitWithObjects(firstObj objc.IObject, args ...any) MutableOrderedSet { - rv := objc.Call[MutableOrderedSet](m_, objc.Sel("initWithObjects:"), append([]any{objc.Ptr(firstObj)}, args...)...) +func (m_ MutableOrderedSet) InitWithSetCopyItems(set ISet, flag bool) MutableOrderedSet { + rv := objc.Call[MutableOrderedSet](m_, objc.Sel("initWithSet:copyItems:"), objc.Ptr(set), flag) return rv } -// Initializes a newly allocated set with members taken from the specified list of objects. [Full Topic] +// Initializes a new ordered set with the contents of a set, optionally copying the objects in the set. [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/1411246-initwithset?language=objc +func NewMutableOrderedSetWithSetCopyItems(set ISet, flag bool) MutableOrderedSet { + instance := MutableOrderedSetClass.Alloc().InitWithSetCopyItems(set, flag) instance.Autorelease() return instance } -func (mc _MutableOrderedSetClass) OrderedSetWithObjects(firstObj objc.IObject, args ...any) MutableOrderedSet { - rv := objc.Call[MutableOrderedSet](mc, objc.Sel("orderedSetWithObjects:"), append([]any{objc.Ptr(firstObj)}, args...)...) +func (mc _MutableOrderedSetClass) OrderedSetWithSetCopyItems(set ISet, flag bool) MutableOrderedSet { + rv := objc.Call[MutableOrderedSet](mc, objc.Sel("orderedSetWithSet:copyItems:"), objc.Ptr(set), flag) return rv } -// Creates and returns a ordered set containing the objects in a given argument list. [Full Topic] +// Creates and returns an ordered set with the contents of a set, optionally copying the items. [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:"), objc.Ptr(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 +// [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) } func (m_ MutableOrderedSet) InitWithObject(object objc.IObject) MutableOrderedSet { @@ -204,6 +187,32 @@ 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:"), objc.Ptr(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:"), objc.Ptr(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:"), objc.Ptr(object)) return rv @@ -216,6 +225,20 @@ 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:"), objc.Ptr(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 @@ -228,20 +251,112 @@ func MutableOrderedSet_OrderedSet() MutableOrderedSet { return MutableOrderedSetClass.OrderedSet() } -func (m_ MutableOrderedSet) InitWithSet(set ISet) MutableOrderedSet { - rv := objc.Call[MutableOrderedSet](m_, objc.Sel("initWithSet:"), objc.Ptr(set)) +func (mc _MutableOrderedSetClass) OrderedSetWithOrderedSetRangeCopyItems(set IOrderedSet, range_ Range, flag bool) MutableOrderedSet { + rv := objc.Call[MutableOrderedSet](mc, objc.Sel("orderedSetWithOrderedSet:range:copyItems:"), objc.Ptr(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:"), objc.Ptr(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) +// [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:"), objc.Ptr(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{objc.Ptr(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...) + instance.Autorelease() + return instance +} + +func (mc _MutableOrderedSetClass) OrderedSetWithObjects(firstObj objc.IObject, args ...any) MutableOrderedSet { + rv := objc.Call[MutableOrderedSet](mc, objc.Sel("orderedSetWithObjects:"), append([]any{objc.Ptr(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:"), objc.Ptr(set)) return rv @@ -254,39 +369,32 @@ func MutableOrderedSet_OrderedSetWithSet(set ISet) MutableOrderedSet { return MutableOrderedSetClass.OrderedSetWithSet(set) } -// 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) -} - -// 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/nsmutableorderedset/1417200-addobjectsfromarray?language=objc -func (m_ MutableOrderedSet) AddObjectsFromArray(array []objc.IObject) { - objc.Call[objc.Void](m_, objc.Sel("addObjectsFromArray:"), array) +func (m_ MutableOrderedSet) InitWithObjectsCount(objects objc.IObject, cnt uint) MutableOrderedSet { + rv := objc.Call[MutableOrderedSet](m_, objc.Sel("initWithObjects:count:"), objc.Ptr(objects), cnt) + return rv } -// Moves the objects at the specified indexes to the new location. [Full Topic] +// 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/nsmutableorderedset/1417677-moveobjectsatindexes?language=objc -func (m_ MutableOrderedSet) MoveObjectsAtIndexesToIndex(indexes IIndexSet, idx uint) { - objc.Call[objc.Void](m_, objc.Sel("moveObjectsAtIndexes:toIndex:"), objc.Ptr(indexes), idx) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsorderedset/1411910-initwithobjects?language=objc +func NewMutableOrderedSetWithObjectsCount(objects objc.IObject, cnt uint) MutableOrderedSet { + instance := MutableOrderedSetClass.Alloc().InitWithObjectsCount(objects, cnt) + instance.Autorelease() + return instance } -// Removes from the receiving ordered set each object that isn’t a member of another set. [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/1415257-intersectset?language=objc -func (m_ MutableOrderedSet) IntersectSet(other ISet) { - objc.Call[objc.Void](m_, objc.Sel("intersectSet:"), objc.Ptr(other)) +// [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:"), objc.Ptr(object)) } -// Evaluates a given predicate against the mutable ordered set’s content and leaves only objects that match. [Full Topic] +// Removes a given object from 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:"), objc.Ptr(p)) +// [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:"), objc.Ptr(object)) } // Removes each object in another given ordered set from the receiving mutable ordered set, if present. [Full Topic] @@ -296,6 +404,13 @@ func (m_ MutableOrderedSet) MinusOrderedSet(other IOrderedSet) { objc.Call[objc.Void](m_, objc.Sel("minusOrderedSet:"), objc.Ptr(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:"), objc.Ptr(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 @@ -303,11 +418,11 @@ func (m_ MutableOrderedSet) ReplaceObjectsInRangeWithObjectsCount(range_ Range, objc.Call[objc.Void](m_, objc.Sel("replaceObjectsInRange:withObjects:count:"), range_, objc.Ptr(objects), count) } -// Appends a given object to the end of the mutable ordered set, if it is not already a member. [Full Topic] +// Replaces the objects at the specified indexes with the new objects. [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:"), objc.Ptr(object)) +// [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:"), objc.Ptr(indexes), objects) } // Exchanges the object at the specified index with the object at the other index. [Full Topic] @@ -317,13 +432,6 @@ 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:"), objc.Ptr(object), idx) -} - // [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/foundation/nsmutableorderedset/3152194-applydifference?language=objc @@ -338,11 +446,18 @@ func (m_ MutableOrderedSet) SetObjectAtIndexedSubscript(obj objc.IObject, idx ui objc.Call[objc.Void](m_, objc.Sel("setObject:atIndexedSubscript:"), objc.Ptr(obj), 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:"), objc.Ptr(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:"), objc.Ptr(other)) +} + +// 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/1408541-intersectorderedset?language=objc +func (m_ MutableOrderedSet) IntersectOrderedSet(other IOrderedSet) { + objc.Call[objc.Void](m_, objc.Sel("intersectOrderedSet:"), objc.Ptr(other)) } // Removes a the object at the specified index from the mutable ordered set. [Full Topic] @@ -352,46 +467,60 @@ func (m_ MutableOrderedSet) RemoveObjectAtIndex(idx uint) { objc.Call[objc.Void](m_, objc.Sel("removeObjectAtIndex:"), idx) } -// Removes the objects in the array from the mutable ordered set. [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/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/1414566-sortusingcomparator?language=objc +func (m_ MutableOrderedSet) SortUsingComparator(cmptr Comparator) { + objc.Call[objc.Void](m_, objc.Sel("sortUsingComparator:"), cmptr) } -// Removes each object in another given set from the receiving mutable ordered set, if present. [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/1411229-minusset?language=objc -func (m_ MutableOrderedSet) MinusSet(other ISet) { - objc.Call[objc.Void](m_, objc.Sel("minusSet:"), objc.Ptr(other)) +// [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:"), objc.Ptr(indexes)) } -// Removes from the mutable ordered set each of the objects within a given range. [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/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/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) } -// Removes from the receiving ordered set each object that isn’t a member of another ordered set. [Full Topic] +// Removes all the objects 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:"), objc.Ptr(other)) +// [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")) } -// Replaces the objects at the specified indexes with the new objects. [Full Topic] +// Inserts the objects in the array at the specified indexes. [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:"), objc.Ptr(indexes), objects) +// [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, objc.Ptr(indexes)) } -// Removes the objects at the specified indexes from the mutable ordered set. [Full Topic] +// Appends or replaces the object at the specified index. [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:"), objc.Ptr(indexes)) +// [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:"), objc.Ptr(obj), idx) +} + +// 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/1411561-sortwithoptions?language=objc +func (m_ MutableOrderedSet) SortWithOptionsUsingComparator(opts SortOptions, cmptr Comparator) { + objc.Call[objc.Void](m_, objc.Sel("sortWithOptions:usingComparator:"), opts, cmptr) +} + +// 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) } // Adds each object in another given set to the receiving mutable ordered set, if not present. [Full Topic] @@ -401,58 +530,65 @@ func (m_ MutableOrderedSet) UnionSet(other ISet) { objc.Call[objc.Void](m_, objc.Sel("unionSet:"), objc.Ptr(other)) } -// Sorts the mutable ordered set using the comparison method specified by the comparator block. [Full Topic] +// Moves the objects at the specified indexes to the new location. [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) +// [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:"), objc.Ptr(indexes), idx) } -// Appends the given number of objects from a given C array to the end of the mutable ordered set. [Full Topic] +// Replaces the object at the specified index with the new object. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsmutableorderedset/1413840-addobjects?language=objc -func (m_ MutableOrderedSet) AddObjectsCount(objects objc.IObject, count uint) { - objc.Call[objc.Void](m_, objc.Sel("addObjects:count:"), objc.Ptr(objects), count) +// [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, objc.Ptr(object)) } -// Inserts the objects in the array at the specified indexes. [Full Topic] +// 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/1410287-insertobjects?language=objc -func (m_ MutableOrderedSet) InsertObjectsAtIndexes(objects []objc.IObject, indexes IIndexSet) { - objc.Call[objc.Void](m_, objc.Sel("insertObjects:atIndexes:"), objects, objc.Ptr(indexes)) +// [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:"), objc.Ptr(p)) } -// Sorts the mutable ordered set using the specified options and the comparison method specified by a given comparator block. [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/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/1417200-addobjectsfromarray?language=objc +func (m_ MutableOrderedSet) AddObjectsFromArray(array []objc.IObject) { + objc.Call[objc.Void](m_, objc.Sel("addObjectsFromArray:"), array) } -// Removes all the objects from the mutable ordered set. [Full Topic] +// Removes the objects in the array from the mutable ordered set. [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/1411635-removeobjectsinarray?language=objc +func (m_ MutableOrderedSet) RemoveObjectsInArray(array []objc.IObject) { + objc.Call[objc.Void](m_, objc.Sel("removeObjectsInArray:"), array) } -// Replaces the object at the specified index with the new object. [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/1412115-replaceobjectatindex?language=objc -func (m_ MutableOrderedSet) ReplaceObjectAtIndexWithObject(idx uint, object objc.IObject) { - objc.Call[objc.Void](m_, objc.Sel("replaceObjectAtIndex:withObject:"), idx, objc.Ptr(object)) +// [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_) } -// 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 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/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/1411229-minusset?language=objc +func (m_ MutableOrderedSet) MinusSet(other ISet) { + objc.Call[objc.Void](m_, objc.Sel("minusSet:"), objc.Ptr(other)) } -// Adds each object in another given ordered set to the receiving mutable ordered set, if not present. [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/1410973-unionorderedset?language=objc -func (m_ MutableOrderedSet) UnionOrderedSet(other IOrderedSet) { - objc.Call[objc.Void](m_, objc.Sel("unionOrderedSet:"), objc.Ptr(other)) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsmutableorderedset/1413840-addobjects?language=objc +func (m_ MutableOrderedSet) AddObjectsCount(objects objc.IObject, count uint) { + objc.Call[objc.Void](m_, objc.Sel("addObjects:count:"), objc.Ptr(objects), count) +} + +// 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:"), objc.Ptr(object), idx) } diff --git a/macos/foundation/mutable_set.gen.go b/macos/foundation/mutable_set.gen.go index 129ea091..b2e81535 100644 --- a/macos/foundation/mutable_set.gen.go +++ b/macos/foundation/mutable_set.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package foundation @@ -18,15 +18,15 @@ type _MutableSetClass struct { // An interface definition for the [MutableSet] class. type IMutableSet interface { ISet - AddObjectsFromArray(array []objc.IObject) + SetSet(otherSet ISet) IntersectSet(otherSet ISet) + RemoveAllObjects() FilterUsingPredicate(predicate IPredicate) - SetSet(otherSet ISet) - AddObject(object objc.IObject) RemoveObject(object objc.IObject) - MinusSet(otherSet ISet) + AddObjectsFromArray(array []objc.IObject) + AddObject(object objc.IObject) UnionSet(otherSet ISet) - RemoveAllObjects() + MinusSet(otherSet ISet) } // A dynamic unordered collection of unique objects. [Full Topic] @@ -42,20 +42,6 @@ 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 @@ -73,13 +59,23 @@ func (m_ MutableSet) Init() MutableSet { return rv } -func (mc _MutableSetClass) Alloc() MutableSet { - rv := objc.Call[MutableSet](mc, objc.Sel("alloc")) +func (m_ MutableSet) InitWithCapacity(numItems uint) MutableSet { + rv := objc.Call[MutableSet](m_, objc.Sel("initWithCapacity:"), numItems) return rv } -func MutableSet_Alloc() MutableSet { - return MutableSetClass.Alloc() +// 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 } func (mc _MutableSetClass) New() MutableSet { @@ -92,16 +88,18 @@ func NewMutableSet() MutableSet { return MutableSetClass.New() } -func (mc _MutableSetClass) Set() MutableSet { - rv := objc.Call[MutableSet](mc, objc.Sel("set")) +func (m_ MutableSet) InitWithSetCopyItems(set ISet, flag bool) MutableSet { + rv := objc.Call[MutableSet](m_, objc.Sel("initWithSet:copyItems:"), objc.Ptr(set), flag) return rv } -// Creates and returns an empty set. [Full Topic] +// Initializes a newly allocated set and adds to it members of another given set. [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/1408407-initwithset?language=objc +func NewMutableSetWithSetCopyItems(set ISet, flag bool) MutableSet { + instance := MutableSetClass.Alloc().InitWithSetCopyItems(set, flag) + instance.Autorelease() + return instance } func (m_ MutableSet) InitWithObjects(firstObj objc.IObject, args ...any) MutableSet { @@ -118,18 +116,6 @@ func NewMutableSetWithObjects(firstObj objc.IObject, args ...any) MutableSet { return instance } -func (mc _MutableSetClass) SetWithSet(set ISet) MutableSet { - rv := objc.Call[MutableSet](mc, objc.Sel("setWithSet:"), objc.Ptr(set)) - return rv -} - -// Creates and returns a set containing the objects from another set. [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) -} - func (mc _MutableSetClass) SetWithObject(object objc.IObject) MutableSet { rv := objc.Call[MutableSet](mc, objc.Sel("setWithObject:"), objc.Ptr(object)) return rv @@ -142,6 +128,44 @@ 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{objc.Ptr(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 objc.IObject, cnt uint) MutableSet { + rv := objc.Call[MutableSet](mc, objc.Sel("setWithObjects:count:"), objc.Ptr(objects), cnt) + return rv +} + +// 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/1574824-setwithobjects?language=objc +func MutableSet_SetWithObjectsCount(objects objc.IObject, cnt uint) MutableSet { + return MutableSetClass.SetWithObjectsCount(objects, cnt) +} + +func (m_ MutableSet) InitWithObjectsCount(objects objc.IObject, cnt uint) MutableSet { + rv := objc.Call[MutableSet](m_, objc.Sel("initWithObjects:count:"), objc.Ptr(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/nsset/1407458-initwithobjects?language=objc +func NewMutableSetWithObjectsCount(objects objc.IObject, cnt uint) MutableSet { + instance := MutableSetClass.Alloc().InitWithObjectsCount(objects, cnt) + instance.Autorelease() + return instance +} + func (m_ MutableSet) InitWithArray(array []objc.IObject) MutableSet { rv := objc.Call[MutableSet](m_, objc.Sel("initWithArray:"), array) return rv @@ -156,6 +180,20 @@ func NewMutableSetWithArray(array []objc.IObject) MutableSet { return instance } +func (m_ MutableSet) InitWithSet(set ISet) MutableSet { + rv := objc.Call[MutableSet](m_, objc.Sel("initWithSet:"), objc.Ptr(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 @@ -168,61 +206,59 @@ func MutableSet_SetWithArray(array []objc.IObject) MutableSet { return MutableSetClass.SetWithArray(array) } -func (mc _MutableSetClass) SetWithCollectionViewIndexPath(indexPath IIndexPath) MutableSet { - rv := objc.Call[MutableSet](mc, objc.Sel("setWithCollectionViewIndexPath:"), objc.Ptr(indexPath)) +func (mc _MutableSetClass) SetWithCollectionViewIndexPaths(indexPaths []IIndexPath) MutableSet { + rv := objc.Call[MutableSet](mc, objc.Sel("setWithCollectionViewIndexPaths:"), indexPaths) return rv } // [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/1528255-setwithcollectionviewindexpaths?language=objc +func MutableSet_SetWithCollectionViewIndexPaths(indexPaths []IIndexPath) MutableSet { + return MutableSetClass.SetWithCollectionViewIndexPaths(indexPaths) } -func (mc _MutableSetClass) SetWithObjectsCount(objects objc.IObject, cnt uint) MutableSet { - rv := objc.Call[MutableSet](mc, objc.Sel("setWithObjects:count:"), objc.Ptr(objects), cnt) +func (mc _MutableSetClass) Set() MutableSet { + rv := objc.Call[MutableSet](mc, objc.Sel("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 empty set. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsset/1574824-setwithobjects?language=objc -func MutableSet_SetWithObjectsCount(objects objc.IObject, cnt uint) MutableSet { - return MutableSetClass.SetWithObjectsCount(objects, cnt) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsset/1574818-set?language=objc +func MutableSet_Set() MutableSet { + return MutableSetClass.Set() } -func (mc _MutableSetClass) SetWithCollectionViewIndexPaths(indexPaths []IIndexPath) MutableSet { - rv := objc.Call[MutableSet](mc, objc.Sel("setWithCollectionViewIndexPaths:"), indexPaths) +func (mc _MutableSetClass) SetWithSet(set ISet) MutableSet { + rv := objc.Call[MutableSet](mc, objc.Sel("setWithSet:"), objc.Ptr(set)) return rv } -// [Full Topic] +// Creates and returns a set containing the objects from another set. [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/1574817-setwithset?language=objc +func MutableSet_SetWithSet(set ISet) MutableSet { + return MutableSetClass.SetWithSet(set) } -func (m_ MutableSet) InitWithSet(set ISet) MutableSet { - rv := objc.Call[MutableSet](m_, objc.Sel("initWithSet:"), objc.Ptr(set)) +func (mc _MutableSetClass) SetWithCollectionViewIndexPath(indexPath IIndexPath) MutableSet { + rv := objc.Call[MutableSet](mc, objc.Sel("setWithCollectionViewIndexPath:"), objc.Ptr(indexPath)) return rv } -// Initializes a newly allocated set and adds to it objects from another given set. [Full Topic] +// [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 +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsset/1528161-setwithcollectionviewindexpath?language=objc +func MutableSet_SetWithCollectionViewIndexPath(indexPath IIndexPath) MutableSet { + return MutableSetClass.SetWithCollectionViewIndexPath(indexPath) } -// 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:"), objc.Ptr(otherSet)) } // Removes from the receiving set each object that isn’t a member of another given set. [Full Topic] @@ -232,6 +268,13 @@ func (m_ MutableSet) IntersectSet(otherSet ISet) { objc.Call[objc.Void](m_, objc.Sel("intersectSet:"), objc.Ptr(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 @@ -239,20 +282,6 @@ func (m_ MutableSet) FilterUsingPredicate(predicate IPredicate) { objc.Call[objc.Void](m_, objc.Sel("filterUsingPredicate:"), objc.Ptr(predicate)) } -// Empties the receiving set, then adds each object contained in another given set. [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:"), objc.Ptr(otherSet)) -} - -// Adds a given object to the set, if it is not already a member. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsmutableset/1407460-addobject?language=objc -func (m_ MutableSet) AddObject(object objc.IObject) { - objc.Call[objc.Void](m_, objc.Sel("addObject:"), objc.Ptr(object)) -} - // Removes a given object from the set. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/foundation/nsmutableset/1416085-removeobject?language=objc @@ -260,11 +289,18 @@ func (m_ MutableSet) RemoveObject(object objc.IObject) { objc.Call[objc.Void](m_, objc.Sel("removeObject:"), objc.Ptr(object)) } -// Removes each object in another given set from the receiving set, if present. [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/1416710-minusset?language=objc -func (m_ MutableSet) MinusSet(otherSet ISet) { - objc.Call[objc.Void](m_, objc.Sel("minusSet:"), objc.Ptr(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) +} + +// Adds a given object to the set, if it is not already a member. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsmutableset/1407460-addobject?language=objc +func (m_ MutableSet) AddObject(object objc.IObject) { + objc.Call[objc.Void](m_, objc.Sel("addObject:"), objc.Ptr(object)) } // Adds each object in another given set to the receiving set, if not present. [Full Topic] @@ -274,9 +310,9 @@ func (m_ MutableSet) UnionSet(otherSet ISet) { objc.Call[objc.Void](m_, objc.Sel("unionSet:"), objc.Ptr(otherSet)) } -// Empties the set of all of its members. [Full Topic] +// Removes each object in another given set from the receiving set, if present. [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")) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsmutableset/1416710-minusset?language=objc +func (m_ MutableSet) MinusSet(otherSet ISet) { + objc.Call[objc.Void](m_, objc.Sel("minusSet:"), objc.Ptr(otherSet)) } diff --git a/macos/foundation/mutable_string.gen.go b/macos/foundation/mutable_string.gen.go index 4038d2c6..6bfc1587 100644 --- a/macos/foundation/mutable_string.gen.go +++ b/macos/foundation/mutable_string.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package foundation @@ -19,14 +19,14 @@ type _MutableStringClass struct { type IMutableString interface { IString AppendFormat(format string, args ...any) - DeleteCharactersInRange(range_ Range) - ApplyTransformReverseRangeUpdatedRange(transform StringTransform, reverse bool, range_ Range, resultingRange RangePointer) bool - InitWithCapacity(capacity uint) MutableString InsertStringAtIndex(aString string, loc uint) - AppendString(aString string) + ApplyTransformReverseRangeUpdatedRange(transform StringTransform, reverse bool, range_ Range, resultingRange RangePointer) bool SetString(aString string) - ReplaceCharactersInRangeWithString(range_ Range, aString string) ReplaceOccurrencesOfStringWithStringOptionsRange(target string, replacement string, options StringCompareOptions, searchRange Range) uint + DeleteCharactersInRange(range_ Range) + InitWithCapacity(capacity uint) MutableString + ReplaceCharactersInRangeWithString(range_ Range, aString string) + AppendString(aString string) } // A dynamic plain-text Unicode string object. [Full Topic] @@ -47,10 +47,6 @@ func (mc _MutableStringClass) Alloc() MutableString { return rv } -func MutableString_Alloc() MutableString { - return MutableStringClass.Alloc() -} - func (mc _MutableStringClass) New() MutableString { rv := objc.Call[MutableString](mc, objc.Sel("new")) rv.Autorelease() @@ -66,16 +62,28 @@ func (m_ MutableString) Init() MutableString { return rv } -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) +func (mc _MutableStringClass) StringWithContentsOfURLUsedEncodingError(url IURL, enc *StringEncoding, error IError) MutableString { + rv := objc.Call[MutableString](mc, objc.Sel("stringWithContentsOfURL:usedEncoding:error:"), objc.Ptr(url), enc, objc.Ptr(error)) return rv } -// [Full Topic] +// 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/3547180-initwithcharactersnocopy?language=objc -func NewMutableStringWithCharactersNoCopyLengthDeallocator(chars *Unichar, len uint, deallocator func(arg0 *Unichar, arg1 uint)) MutableString { - instance := MutableStringClass.Alloc().InitWithCharactersNoCopyLengthDeallocator(chars, len, deallocator) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsstring/1497408-stringwithcontentsofurl?language=objc +func MutableString_StringWithContentsOfURLUsedEncodingError(url IURL, enc *StringEncoding, error IError) MutableString { + return MutableStringClass.StringWithContentsOfURLUsedEncodingError(url, enc, error) +} + +func (m_ MutableString) InitWithContentsOfURLUsedEncodingError(url IURL, enc *StringEncoding, error IError) MutableString { + rv := objc.Call[MutableString](m_, objc.Sel("initWithContentsOfURL:usedEncoding:error:"), objc.Ptr(url), enc, objc.Ptr(error)) + 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]: https://developer.apple.com/documentation/foundation/nsstring/1414472-initwithcontentsofurl?language=objc +func NewMutableStringWithContentsOfURLUsedEncodingError(url IURL, enc *StringEncoding, error IError) MutableString { + instance := MutableStringClass.Alloc().InitWithContentsOfURLUsedEncodingError(url, enc, error) instance.Autorelease() return instance } @@ -92,30 +100,44 @@ func MutableString_StringWithString(string_ string) MutableString { return MutableStringClass.StringWithString(string_) } -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...)...) +func (m_ MutableString) InitWithString(aString string) MutableString { + rv := objc.Call[MutableString](m_, 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 NewMutableStringWithFormatLocale(format string, locale objc.IObject, args ...any) MutableString { - instance := MutableStringClass.Alloc().InitWithFormatLocale(format, locale, args...) +// [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) InitWithDataEncoding(data []byte, encoding StringEncoding) MutableString { - rv := objc.Call[MutableString](m_, objc.Sel("initWithData:encoding:"), data, encoding) +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 NSString object initialized by converting given data into UTF-16 code units using a given encoding. [Full Topic] +// 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/1416374-initwithdata?language=objc -func NewMutableStringWithDataEncoding(data []byte, encoding StringEncoding) MutableString { - instance := MutableStringClass.Alloc().InitWithDataEncoding(data, encoding) +// [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 } @@ -132,30 +154,94 @@ func MutableString_StringWithFormat(format string, args ...any) MutableString { return MutableStringClass.StringWithFormat(format, args...) } -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 (mc _MutableStringClass) StringWithContentsOfFileEncodingError(path string, enc StringEncoding, error IError) MutableString { + rv := objc.Call[MutableString](mc, objc.Sel("stringWithContentsOfFile:encoding:error:"), path, enc, objc.Ptr(error)) return rv } -// [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/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/1497327-stringwithcontentsoffile?language=objc +func MutableString_StringWithContentsOfFileEncodingError(path string, enc StringEncoding, error IError) MutableString { + return MutableStringClass.StringWithContentsOfFileEncodingError(path, enc, error) +} + +func (m_ MutableString) InitWithContentsOfURLEncodingError(url IURL, enc StringEncoding, error IError) MutableString { + rv := objc.Call[MutableString](m_, objc.Sel("initWithContentsOfURL:encoding:error:"), objc.Ptr(url), enc, objc.Ptr(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 IError) MutableString { + instance := MutableStringClass.Alloc().InitWithContentsOfURLEncodingError(url, enc, error) instance.Autorelease() return instance } -func (m_ MutableString) InitWithString(aString string) MutableString { - rv := objc.Call[MutableString](m_, objc.Sel("initWithString:"), aString) +func (mc _MutableStringClass) StringWithContentsOfFileUsedEncodingError(path string, enc *StringEncoding, error IError) MutableString { + rv := objc.Call[MutableString](mc, objc.Sel("stringWithContentsOfFile:usedEncoding:error:"), path, enc, objc.Ptr(error)) return rv } -// Returns an NSString object initialized by copying the characters from another given string. [Full Topic] +// 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/1411293-initwithstring?language=objc -func NewMutableStringWithString(aString string) MutableString { - instance := MutableStringClass.Alloc().InitWithString(aString) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsstring/1497254-stringwithcontentsoffile?language=objc +func MutableString_StringWithContentsOfFileUsedEncodingError(path string, enc *StringEncoding, error IError) 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 +} + +// 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/1497317-initwithformat?language=objc +func NewMutableStringWithFormatLocale(format string, locale objc.IObject, args ...any) MutableString { + instance := MutableStringClass.Alloc().InitWithFormatLocale(format, locale, args...) + instance.Autorelease() + return instance +} + +func (mc _MutableStringClass) StringWithContentsOfURLEncodingError(url IURL, enc StringEncoding, error IError) MutableString { + rv := objc.Call[MutableString](mc, objc.Sel("stringWithContentsOfURL:encoding:error:"), objc.Ptr(url), enc, objc.Ptr(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 IError) 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 +} + +// 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/1416374-initwithdata?language=objc +func NewMutableStringWithDataEncoding(data []byte, encoding StringEncoding) MutableString { + instance := MutableStringClass.Alloc().InitWithDataEncoding(data, encoding) + instance.Autorelease() + return instance +} + +func (m_ MutableString) InitWithCharactersLength(characters *Unichar, length uint) MutableString { + rv := objc.Call[MutableString](m_, objc.Sel("initWithCharacters:length:"), characters, length) + 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/1410997-initwithcharacters?language=objc +func NewMutableStringWithCharactersLength(characters *Unichar, length uint) MutableString { + instance := MutableStringClass.Alloc().InitWithCharactersLength(characters, length) instance.Autorelease() return instance } @@ -174,6 +260,46 @@ func NewMutableStringWithBytesLengthEncoding(bytes unsafe.Pointer, len uint, enc return instance } +func (m_ MutableString) InitWithUTF8String(nullTerminatedCString *uint8) MutableString { + rv := objc.Call[MutableString](m_, objc.Sel("initWithUTF8String:"), nullTerminatedCString) + return rv +} + +// 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/1412128-initwithutf8string?language=objc +func NewMutableStringWithUTF8String(nullTerminatedCString *uint8) MutableString { + instance := MutableStringClass.Alloc().InitWithUTF8String(nullTerminatedCString) + 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 IError) MutableString { + rv := objc.Call[MutableString](m_, objc.Sel("initWithContentsOfFile:usedEncoding:error:"), path, enc, objc.Ptr(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 NewMutableStringWithContentsOfFileUsedEncodingError(path string, enc *StringEncoding, error IError) MutableString { + instance := MutableStringClass.Alloc().InitWithContentsOfFileUsedEncodingError(path, enc, error) + instance.Autorelease() + return instance +} + func (mc _MutableStringClass) StringWithCharactersLength(characters *Unichar, length uint) MutableString { rv := objc.Call[MutableString](mc, objc.Sel("stringWithCharacters:length:"), characters, length) return rv @@ -186,95 +312,98 @@ func MutableString_StringWithCharactersLength(characters *Unichar, length uint) return MutableStringClass.StringWithCharactersLength(characters, length) } -func (m_ MutableString) InitWithCharactersLength(characters *Unichar, length uint) MutableString { - rv := objc.Call[MutableString](m_, objc.Sel("initWithCharacters:length:"), 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 } -// 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] // -// [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) +// [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) InitWithUTF8String(nullTerminatedCString *uint8) MutableString { - rv := objc.Call[MutableString](m_, objc.Sel("initWithUTF8String:"), nullTerminatedCString) +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 NSString object initialized by copying the characters from a given C array of UTF8-encoded bytes. [Full Topic] +// [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/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 (mc _MutableStringClass) LocalizedStringWithFormat(format string, args ...any) MutableString { - rv := objc.Call[MutableString](mc, objc.Sel("localizedStringWithFormat:"), append([]any{format}, args...)...) +func (m_ MutableString) InitWithContentsOfFileEncodingError(path string, enc StringEncoding, error IError) MutableString { + rv := objc.Call[MutableString](m_, objc.Sel("initWithContentsOfFile:encoding:error:"), path, enc, objc.Ptr(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 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/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/1412610-initwithcontentsoffile?language=objc +func NewMutableStringWithContentsOfFileEncodingError(path string, enc StringEncoding, error IError) MutableString { + instance := MutableStringClass.Alloc().InitWithContentsOfFileEncodingError(path, enc, error) + instance.Autorelease() + return instance } -func (mc _MutableStringClass) StringWithUTF8String(nullTerminatedCString *uint8) MutableString { - rv := objc.Call[MutableString](mc, objc.Sel("stringWithUTF8String:"), nullTerminatedCString) +func (m_ MutableString) InitWithFormat(format string, args ...any) MutableString { + rv := objc.Call[MutableString](m_, objc.Sel("initWithFormat:"), append([]any{format}, args...)...) return rv } -// Returns a string created by copying the data from a given C array of UTF8-encoded bytes. [Full Topic] +// 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/1497379-stringwithutf8string?language=objc -func MutableString_StringWithUTF8String(nullTerminatedCString *uint8) MutableString { - return MutableStringClass.StringWithUTF8String(nullTerminatedCString) +// [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 } -func (mc _MutableStringClass) StringWithContentsOfURLEncodingError(url IURL, enc StringEncoding, error IError) MutableString { - rv := objc.Call[MutableString](mc, objc.Sel("stringWithContentsOfURL:encoding:error:"), objc.Ptr(url), enc, objc.Ptr(error)) +func (mc _MutableStringClass) StringWithUTF8String(nullTerminatedCString *uint8) MutableString { + rv := objc.Call[MutableString](mc, objc.Sel("stringWithUTF8String:"), nullTerminatedCString) return rv } -// Returns a string created by reading data from a given URL interpreted using a given encoding. [Full Topic] +// Returns a string created by copying the data from a given C array of UTF8-encoded bytes. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsstring/1497360-stringwithcontentsofurl?language=objc -func MutableString_StringWithContentsOfURLEncodingError(url IURL, enc StringEncoding, error IError) MutableString { - return MutableStringClass.StringWithContentsOfURLEncodingError(url, enc, error) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsstring/1497379-stringwithutf8string?language=objc +func MutableString_StringWithUTF8String(nullTerminatedCString *uint8) MutableString { + return MutableStringClass.StringWithUTF8String(nullTerminatedCString) } -func (mc _MutableStringClass) StringWithContentsOfFileEncodingError(path string, enc StringEncoding, error IError) MutableString { - rv := objc.Call[MutableString](mc, objc.Sel("stringWithContentsOfFile:encoding:error:"), path, enc, objc.Ptr(error)) +func (m_ MutableString) InitWithCStringEncoding(nullTerminatedCString *uint8, encoding StringEncoding) MutableString { + rv := objc.Call[MutableString](m_, objc.Sel("initWithCString:encoding:"), nullTerminatedCString, encoding) return rv } -// Returns a string created by reading data from the file at a given path interpreted using a given encoding. [Full Topic] +// Returns an NSString object initialized using the characters in a given C array, interpreted according to 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 IError) MutableString { - return MutableStringClass.StringWithContentsOfFileEncodingError(path, enc, error) +// [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 } -// 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) +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 empty NSMutableString object with initial storage for a given number of characters. [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/nsmutablestring/1497396-stringwithcapacity?language=objc -func MutableString_StringWithCapacity(capacity uint) MutableString { - return MutableStringClass.StringWithCapacity(capacity) +// [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...) } // Adds a constructed string to the receiver. [Full Topic] @@ -284,11 +413,11 @@ func (m_ MutableString) AppendFormat(format string, args ...any) { objc.Call[objc.Void](m_, objc.Sel("appendFormat:"), append([]any{format}, args...)...) } -// Removes from the receiver the characters in a given range. [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/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/1410999-insertstring?language=objc +func (m_ MutableString) InsertStringAtIndex(aString string, loc uint) { + objc.Call[objc.Void](m_, objc.Sel("insertString:atIndex:"), aString, loc) } // Transliterates the receiver by applying a specified ICU string transform. [Full Topic] @@ -299,33 +428,49 @@ func (m_ MutableString) ApplyTransformReverseRangeUpdatedRange(transform StringT return rv } -// 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) +// [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 } -// Inserts into the receiver the characters of a given string at a given location. [Full Topic] +// 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/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/1497396-stringwithcapacity?language=objc +func (mc _MutableStringClass) StringWithCapacity(capacity uint) MutableString { + rv := objc.Call[MutableString](mc, objc.Sel("stringWithCapacity:"), capacity) + return rv } -// Adds to the end of the receiver the characters of a given string. [Full Topic] +// 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/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/1497396-stringwithcapacity?language=objc +func MutableString_StringWithCapacity(capacity uint) MutableString { + return MutableStringClass.StringWithCapacity(capacity) } -// Replaces the characters of the receiver with those in a given string. [Full Topic] +// Removes from the receiver the characters in a given range. [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) +// [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_) +} + +// 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/1416610-initwithcapacity?language=objc +func (m_ MutableString) InitWithCapacity(capacity uint) MutableString { + rv := objc.Call[MutableString](m_, objc.Sel("initWithCapacity:"), capacity) + return rv } // Replaces the characters from aRange with those in aString. [Full Topic] @@ -335,10 +480,9 @@ func (m_ MutableString) ReplaceCharactersInRangeWithString(range_ Range, aString objc.Call[objc.Void](m_, objc.Sel("replaceCharactersInRange:withString:"), range_, aString) } -// Replaces all occurrences of a given string in a given range with another given string, returning the number of replacements. [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/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 +// [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) } diff --git a/macos/foundation/mutable_url_request.gen.go b/macos/foundation/mutable_url_request.gen.go index 1e328381..682eaa35 100644 --- a/macos/foundation/mutable_url_request.gen.go +++ b/macos/foundation/mutable_url_request.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package foundation @@ -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) - SetAllowsConstrainedNetworkAccess(value bool) - SetTimeoutInterval(value TimeInterval) - SetAttribution(value URLRequestAttribution) - SetHTTPBody(value []byte) + SetAllowsCellularAccess(value bool) SetCachePolicy(value URLRequestCachePolicy) - SetNetworkServiceType(value URLRequestNetworkServiceType) + SetHTTPBody(value []byte) + SetMainDocumentURL(value IURL) + SetTimeoutInterval(value TimeInterval) + SetHTTPMethod(value string) SetHTTPShouldUsePipelining(value bool) + SetAttribution(value URLRequestAttribution) + SetAllHTTPHeaderFields(value map[string]string) + SetAllowsConstrainedNetworkAccess(value bool) + SetHTTPBodyStream(value IInputStream) } // A mutable URL load request that is independent of protocol or URL scheme. [Full Topic] @@ -56,10 +56,6 @@ func (mc _MutableURLRequestClass) Alloc() MutableURLRequest { return rv } -func MutableURLRequest_Alloc() MutableURLRequest { - return MutableURLRequestClass.Alloc() -} - func (mc _MutableURLRequestClass) New() MutableURLRequest { rv := objc.Call[MutableURLRequest](mc, objc.Sel("new")) rv.Autorelease() @@ -75,6 +71,18 @@ 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:"), objc.Ptr(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:"), objc.Ptr(URL)) return rv @@ -101,6 +109,20 @@ 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:"), objc.Ptr(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 @@ -115,20 +137,6 @@ 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:"), objc.Ptr(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 @@ -136,20 +144,6 @@ 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 @@ -157,13 +151,6 @@ func (m_ MutableURLRequest) SetURL(value IURL) { objc.Call[objc.Void](m_, objc.Sel("setURL:"), objc.Ptr(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:"), objc.Ptr(value)) -} - // [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/foundation/nsmutableurlrequest/3735879-assumeshttp3capable?language=objc @@ -171,6 +158,13 @@ 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 @@ -178,25 +172,18 @@ func (m_ MutableURLRequest) SetAllowsExpensiveNetworkAccess(value bool) { objc.Call[objc.Void](m_, objc.Sel("setAllowsExpensiveNetworkAccess:"), value) } -// 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/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] +// 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/1414063-timeoutinterval?language=objc -func (m_ MutableURLRequest) SetTimeoutInterval(value TimeInterval) { - objc.Call[objc.Void](m_, objc.Sel("setTimeoutInterval:"), value) +// [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 entity that initiates the network request. [Full Topic] +// The request’s cache policy. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsmutableurlrequest/3746972-attribution?language=objc -func (m_ MutableURLRequest) SetAttribution(value URLRequestAttribution) { - objc.Call[objc.Void](m_, objc.Sel("setAttribution:"), 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. [Full Topic] @@ -206,18 +193,25 @@ func (m_ MutableURLRequest) SetHTTPBody(value []byte) { objc.Call[objc.Void](m_, objc.Sel("setHTTPBody:"), value) } -// The request’s cache policy. [Full Topic] +// The main document URL. [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) +// [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:"), objc.Ptr(value)) } -// The network service type of the connection. [Full Topic] +// The request’s timeout interval, in seconds. [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) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsmutableurlrequest/1414063-timeoutinterval?language=objc +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] @@ -226,3 +220,31 @@ func (m_ MutableURLRequest) SetNetworkServiceType(value URLRequestNetworkService 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 +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] +// +// [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) +} + +// 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/3325676-allowsconstrainednetworkaccess?language=objc +func (m_ MutableURLRequest) SetAllowsConstrainedNetworkAccess(value bool) { + objc.Call[objc.Void](m_, objc.Sel("setAllowsConstrainedNetworkAccess:"), 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:"), objc.Ptr(value)) +} diff --git a/macos/foundation/name_specifier.gen.go b/macos/foundation/name_specifier.gen.go index dfd2b36a..463daf33 100644 --- a/macos/foundation/name_specifier.gen.go +++ b/macos/foundation/name_specifier.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package foundation @@ -40,7 +40,7 @@ func (n_ NameSpecifier) InitWithContainerClassDescriptionContainerSpecifierKeyNa return rv } -// Invokes the super class’s initWithContainerClassDescription:containerSpecifier:key: method and then sets the name instance variable to name. [Full Topic] +// Invokes the super class’s [foundation/nsscriptobjectspecifier/initwithcontainerclassdescriptio] 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 { @@ -54,10 +54,6 @@ func (nc _NameSpecifierClass) Alloc() NameSpecifier { return rv } -func NameSpecifier_Alloc() NameSpecifier { - return NameSpecifierClass.Alloc() -} - func (nc _NameSpecifierClass) New() NameSpecifier { rv := objc.Call[NameSpecifier](nc, objc.Sel("new")) rv.Autorelease() diff --git a/macos/foundation/net_service.gen.go b/macos/foundation/net_service.gen.go index 5f5a290a..b0d34f5c 100644 --- a/macos/foundation/net_service.gen.go +++ b/macos/foundation/net_service.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package foundation @@ -38,10 +38,6 @@ func (nc _NetServiceClass) Alloc() NetService { return rv } -func NetService_Alloc() NetService { - return NetServiceClass.Alloc() -} - func (nc _NetServiceClass) New() NetService { rv := objc.Call[NetService](nc, objc.Sel("new")) rv.Autorelease() diff --git a/macos/foundation/net_service_browser.gen.go b/macos/foundation/net_service_browser.gen.go index 81d85534..808ee6c8 100644 --- a/macos/foundation/net_service_browser.gen.go +++ b/macos/foundation/net_service_browser.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package foundation @@ -38,10 +38,6 @@ func (nc _NetServiceBrowserClass) Alloc() NetServiceBrowser { return rv } -func NetServiceBrowser_Alloc() NetServiceBrowser { - return NetServiceBrowserClass.Alloc() -} - func (nc _NetServiceBrowserClass) New() NetServiceBrowser { rv := objc.Call[NetServiceBrowser](nc, objc.Sel("new")) rv.Autorelease() diff --git a/macos/foundation/net_service_browser_delegate.gen.go b/macos/foundation/net_service_browser_delegate.gen.go index bed48bc2..73010d77 100644 --- a/macos/foundation/net_service_browser_delegate.gen.go +++ b/macos/foundation/net_service_browser_delegate.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package foundation @@ -11,41 +11,61 @@ import ( // [Full Topic]: https://developer.apple.com/documentation/foundation/nsnetservicebrowserdelegate?language=objc type PNetServiceBrowserDelegate interface { // optional - NetServiceBrowserWillSearch(browser NetServiceBrowser) - HasNetServiceBrowserWillSearch() bool + 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 + // 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 { - _NetServiceBrowserWillSearch func(browser NetServiceBrowser) - _NetServiceBrowserDidNotSearch func(browser NetServiceBrowser, errorDict map[string]Number) - _NetServiceBrowserDidStopSearch func(browser NetServiceBrowser) + _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) HasNetServiceBrowserWillSearch() bool { - return di._NetServiceBrowserWillSearch != nil +func (di *NetServiceBrowserDelegate) HasNetServiceBrowserDidRemoveServiceMoreComing() bool { + return di._NetServiceBrowserDidRemoveServiceMoreComing != nil } -// Tells the delegate that a search is commencing. [Full Topic] +// Tells the delegate a service has disappeared or has become unavailable. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsnetservicebrowserdelegate/1408173-netservicebrowserwillsearch?language=objc -func (di *NetServiceBrowserDelegate) SetNetServiceBrowserWillSearch(f func(browser NetServiceBrowser)) { - di._NetServiceBrowserWillSearch = f +// [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 that a search is commencing. [Full Topic] +// Tells the delegate a service has disappeared or has become unavailable. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsnetservicebrowserdelegate/1408173-netservicebrowserwillsearch?language=objc -func (di *NetServiceBrowserDelegate) NetServiceBrowserWillSearch(browser NetServiceBrowser) { - di._NetServiceBrowserWillSearch(browser) +// [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 @@ -64,6 +84,40 @@ func (di *NetServiceBrowserDelegate) SetNetServiceBrowserDidNotSearch(f func(bro func (di *NetServiceBrowserDelegate) NetServiceBrowserDidNotSearch(browser NetServiceBrowser, errorDict map[string]Number) { di._NetServiceBrowserDidNotSearch(browser, errorDict) } +func (di *NetServiceBrowserDelegate) HasNetServiceBrowserWillSearch() bool { + return di._NetServiceBrowserWillSearch != nil +} + +// Tells the delegate that a search is commencing. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsnetservicebrowserdelegate/1408173-netservicebrowserwillsearch?language=objc +func (di *NetServiceBrowserDelegate) SetNetServiceBrowserWillSearch(f func(browser NetServiceBrowser)) { + di._NetServiceBrowserWillSearch = f +} + +// Tells the delegate that a search is commencing. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsnetservicebrowserdelegate/1408173-netservicebrowserwillsearch?language=objc +func (di *NetServiceBrowserDelegate) NetServiceBrowserWillSearch(browser NetServiceBrowser) { + di._NetServiceBrowserWillSearch(browser) +} +func (di *NetServiceBrowserDelegate) HasNetServiceBrowserDidFindDomainMoreComing() bool { + return di._NetServiceBrowserDidFindDomainMoreComing != nil +} + +// Tells the delegate the sender found a domain. [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 +} + +// Tells the delegate the sender found a domain. [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) +} func (di *NetServiceBrowserDelegate) HasNetServiceBrowserDidStopSearch() bool { return di._NetServiceBrowserDidStopSearch != nil } @@ -81,41 +135,122 @@ 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) -// A concrete type wrapper for the [PNetServiceBrowserDelegate] protocol. -type NetServiceBrowserDelegateWrapper struct { +// A concrete type for the [PNetServiceBrowserDelegate] protocol. +type NetServiceBrowserDelegateObject struct { objc.Object } -func (n_ NetServiceBrowserDelegateWrapper) HasNetServiceBrowserWillSearch() bool { - return n_.RespondsToSelector(objc.Sel("netServiceBrowserWillSearch:")) +func (n_ NetServiceBrowserDelegateObject) HasNetServiceBrowserDidRemoveServiceMoreComing() bool { + return n_.RespondsToSelector(objc.Sel("netServiceBrowser:didRemoveService:moreComing:")) } -// Tells the delegate that a search is commencing. [Full Topic] +// Tells the delegate a service has disappeared or has become unavailable. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsnetservicebrowserdelegate/1408173-netservicebrowserwillsearch?language=objc -func (n_ NetServiceBrowserDelegateWrapper) NetServiceBrowserWillSearch(browser INetServiceBrowser) { - objc.Call[objc.Void](n_, objc.Sel("netServiceBrowserWillSearch:"), objc.Ptr(browser)) +// [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:"), objc.Ptr(browser), objc.Ptr(service), moreComing) } -func (n_ NetServiceBrowserDelegateWrapper) HasNetServiceBrowserDidNotSearch() bool { +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_ NetServiceBrowserDelegateWrapper) NetServiceBrowserDidNotSearch(browser INetServiceBrowser, errorDict map[string]INumber) { +func (n_ NetServiceBrowserDelegateObject) NetServiceBrowserDidNotSearch(browser NetServiceBrowser, errorDict map[string]Number) { objc.Call[objc.Void](n_, objc.Sel("netServiceBrowser:didNotSearch:"), objc.Ptr(browser), errorDict) } -func (n_ NetServiceBrowserDelegateWrapper) HasNetServiceBrowserDidStopSearch() bool { +func (n_ NetServiceBrowserDelegateObject) HasNetServiceBrowserWillSearch() bool { + return n_.RespondsToSelector(objc.Sel("netServiceBrowserWillSearch:")) +} + +// Tells the delegate that a search is commencing. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsnetservicebrowserdelegate/1408173-netservicebrowserwillsearch?language=objc +func (n_ NetServiceBrowserDelegateObject) NetServiceBrowserWillSearch(browser NetServiceBrowser) { + objc.Call[objc.Void](n_, objc.Sel("netServiceBrowserWillSearch:"), objc.Ptr(browser)) +} + +func (n_ NetServiceBrowserDelegateObject) HasNetServiceBrowserDidFindDomainMoreComing() bool { + return n_.RespondsToSelector(objc.Sel("netServiceBrowser:didFindDomain:moreComing:")) +} + +// Tells the delegate the sender found a domain. [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:"), objc.Ptr(browser), domainString, moreComing) +} + +func (n_ NetServiceBrowserDelegateObject) HasNetServiceBrowserDidStopSearch() bool { return n_.RespondsToSelector(objc.Sel("netServiceBrowserDidStopSearch:")) } // Tells the delegate that a search was stopped. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/foundation/nsnetservicebrowserdelegate/1418341-netservicebrowserdidstopsearch?language=objc -func (n_ NetServiceBrowserDelegateWrapper) NetServiceBrowserDidStopSearch(browser INetServiceBrowser) { +func (n_ NetServiceBrowserDelegateObject) NetServiceBrowserDidStopSearch(browser NetServiceBrowser) { objc.Call[objc.Void](n_, objc.Sel("netServiceBrowserDidStopSearch:"), objc.Ptr(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:"), objc.Ptr(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:"), objc.Ptr(browser), objc.Ptr(service), moreComing) +} diff --git a/macos/foundation/net_service_delegate.gen.go b/macos/foundation/net_service_delegate.gen.go index 98b2f4ac..cad5c76d 100644 --- a/macos/foundation/net_service_delegate.gen.go +++ b/macos/foundation/net_service_delegate.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package foundation @@ -10,41 +10,73 @@ 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 - NetServiceWillResolve(sender NetService) - HasNetServiceWillResolve() bool + NetServiceDidStop(sender NetService) + HasNetServiceDidStop() bool + + // optional + NetServiceDidAcceptConnectionWithInputStreamOutputStream(sender NetService, inputStream InputStream, outputStream OutputStream) + HasNetServiceDidAcceptConnectionWithInputStreamOutputStream() bool // optional NetServiceDidPublish(sender NetService) HasNetServiceDidPublish() bool + // optional + NetServiceDidUpdateTXTRecordData(sender NetService, data []byte) + HasNetServiceDidUpdateTXTRecordData() bool + // optional NetServiceWillPublish(sender NetService) HasNetServiceWillPublish() bool // optional - NetServiceDidStop(sender NetService) - HasNetServiceDidStop() bool + NetServiceDidNotPublish(sender NetService, errorDict map[string]Number) + HasNetServiceDidNotPublish() bool // optional - NetServiceDidUpdateTXTRecordData(sender NetService, data []byte) - HasNetServiceDidUpdateTXTRecordData() bool + NetServiceWillResolve(sender NetService) + HasNetServiceWillResolve() bool } // A delegate implementation builder for the [PNetServiceDelegate] protocol. type NetServiceDelegate struct { - _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) + _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) +} + +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 } @@ -62,22 +94,39 @@ func (di *NetServiceDelegate) SetNetServiceDidResolveAddress(f func(sender NetSe func (di *NetServiceDelegate) NetServiceDidResolveAddress(sender NetService) { di._NetServiceDidResolveAddress(sender) } -func (di *NetServiceDelegate) HasNetServiceWillResolve() bool { - return di._NetServiceWillResolve != nil +func (di *NetServiceDelegate) HasNetServiceDidStop() bool { + return di._NetServiceDidStop != nil } -// Notifies the delegate that the network is ready to resolve the service. [Full Topic] +// 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/1416022-netservicewillresolve?language=objc -func (di *NetServiceDelegate) SetNetServiceWillResolve(f func(sender NetService)) { - di._NetServiceWillResolve = 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 the network is ready to resolve the service. [Full Topic] +// 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/1416022-netservicewillresolve?language=objc -func (di *NetServiceDelegate) NetServiceWillResolve(sender NetService) { - di._NetServiceWillResolve(sender) +// [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 +} + +// Called when a client connects to a service managed by Bonjour. [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 +} + +// Called when a client connects to a service managed by Bonjour. [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) } func (di *NetServiceDelegate) HasNetServiceDidPublish() bool { return di._NetServiceDidPublish != nil @@ -96,6 +145,23 @@ 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 } @@ -113,108 +179,144 @@ func (di *NetServiceDelegate) SetNetServiceWillPublish(f func(sender NetService) func (di *NetServiceDelegate) NetServiceWillPublish(sender NetService) { di._NetServiceWillPublish(sender) } -func (di *NetServiceDelegate) HasNetServiceDidStop() bool { - return di._NetServiceDidStop != nil +func (di *NetServiceDelegate) HasNetServiceDidNotPublish() bool { + return di._NetServiceDidNotPublish != nil } -// Informs the delegate that a publish or resolveWithTimeout: request was stopped. [Full Topic] +// Notifies the delegate that a service could not be published. [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 +// [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 } -// Informs the delegate that a publish or resolveWithTimeout: request was stopped. [Full Topic] +// Notifies the delegate that a service could not be published. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsnetservicedelegate/1409726-netservicedidstop?language=objc -func (di *NetServiceDelegate) NetServiceDidStop(sender NetService) { - di._NetServiceDidStop(sender) +// [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) } -func (di *NetServiceDelegate) HasNetServiceDidUpdateTXTRecordData() bool { - return di._NetServiceDidUpdateTXTRecordData != nil +func (di *NetServiceDelegate) HasNetServiceWillResolve() bool { + return di._NetServiceWillResolve != nil } -// Notifies the delegate that the TXT record for a given service has been updated. [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/1413199-netservice?language=objc -func (di *NetServiceDelegate) SetNetServiceDidUpdateTXTRecordData(f func(sender NetService, data []byte)) { - di._NetServiceDidUpdateTXTRecordData = 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 } -// Notifies the delegate that the TXT record for a given service has been updated. [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/1413199-netservice?language=objc -func (di *NetServiceDelegate) NetServiceDidUpdateTXTRecordData(sender NetService, data []byte) { - di._NetServiceDidUpdateTXTRecordData(sender, data) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsnetservicedelegate/1416022-netservicewillresolve?language=objc +func (di *NetServiceDelegate) NetServiceWillResolve(sender NetService) { + di._NetServiceWillResolve(sender) } -// A concrete type wrapper for the [PNetServiceDelegate] protocol. -type NetServiceDelegateWrapper struct { +// ensure impl type implements protocol interface +var _ PNetServiceDelegate = (*NetServiceDelegateObject)(nil) + +// A concrete type for the [PNetServiceDelegate] protocol. +type NetServiceDelegateObject struct { objc.Object } -func (n_ NetServiceDelegateWrapper) HasNetServiceDidResolveAddress() bool { +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:"), objc.Ptr(sender), errorDict) +} + +func (n_ NetServiceDelegateObject) HasNetServiceDidResolveAddress() bool { return n_.RespondsToSelector(objc.Sel("netServiceDidResolveAddress:")) } // Informs the delegate that the address for a given service was resolved. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/foundation/nsnetservicedelegate/1408457-netservicedidresolveaddress?language=objc -func (n_ NetServiceDelegateWrapper) NetServiceDidResolveAddress(sender INetService) { +func (n_ NetServiceDelegateObject) NetServiceDidResolveAddress(sender NetService) { objc.Call[objc.Void](n_, objc.Sel("netServiceDidResolveAddress:"), objc.Ptr(sender)) } -func (n_ NetServiceDelegateWrapper) HasNetServiceWillResolve() bool { - return n_.RespondsToSelector(objc.Sel("netServiceWillResolve:")) +func (n_ NetServiceDelegateObject) HasNetServiceDidStop() bool { + return n_.RespondsToSelector(objc.Sel("netServiceDidStop:")) } -// Notifies the delegate that the network is ready to resolve the service. [Full Topic] +// 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/1416022-netservicewillresolve?language=objc -func (n_ NetServiceDelegateWrapper) NetServiceWillResolve(sender INetService) { - objc.Call[objc.Void](n_, objc.Sel("netServiceWillResolve:"), objc.Ptr(sender)) +// [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:"), objc.Ptr(sender)) } -func (n_ NetServiceDelegateWrapper) HasNetServiceDidPublish() bool { +func (n_ NetServiceDelegateObject) HasNetServiceDidAcceptConnectionWithInputStreamOutputStream() bool { + return n_.RespondsToSelector(objc.Sel("netService:didAcceptConnectionWithInputStream:outputStream:")) +} + +// Called when a client connects to a service managed by Bonjour. [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:"), objc.Ptr(sender), objc.Ptr(inputStream), objc.Ptr(outputStream)) +} + +func (n_ NetServiceDelegateObject) HasNetServiceDidPublish() bool { return n_.RespondsToSelector(objc.Sel("netServiceDidPublish:")) } // Notifies the delegate that a service was successfully published. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/foundation/nsnetservicedelegate/1416802-netservicedidpublish?language=objc -func (n_ NetServiceDelegateWrapper) NetServiceDidPublish(sender INetService) { +func (n_ NetServiceDelegateObject) NetServiceDidPublish(sender NetService) { objc.Call[objc.Void](n_, objc.Sel("netServiceDidPublish:"), objc.Ptr(sender)) } -func (n_ NetServiceDelegateWrapper) HasNetServiceWillPublish() bool { +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:"), objc.Ptr(sender), data) +} + +func (n_ NetServiceDelegateObject) HasNetServiceWillPublish() bool { return n_.RespondsToSelector(objc.Sel("netServiceWillPublish:")) } // Notifies the delegate that the network is ready to publish the service. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/foundation/nsnetservicedelegate/1414277-netservicewillpublish?language=objc -func (n_ NetServiceDelegateWrapper) NetServiceWillPublish(sender INetService) { +func (n_ NetServiceDelegateObject) NetServiceWillPublish(sender NetService) { objc.Call[objc.Void](n_, objc.Sel("netServiceWillPublish:"), objc.Ptr(sender)) } -func (n_ NetServiceDelegateWrapper) HasNetServiceDidStop() bool { - return n_.RespondsToSelector(objc.Sel("netServiceDidStop:")) +func (n_ NetServiceDelegateObject) HasNetServiceDidNotPublish() bool { + return n_.RespondsToSelector(objc.Sel("netService:didNotPublish:")) } -// Informs the delegate that a publish or resolveWithTimeout: request was stopped. [Full Topic] +// Notifies the delegate that a service could not be published. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsnetservicedelegate/1409726-netservicedidstop?language=objc -func (n_ NetServiceDelegateWrapper) NetServiceDidStop(sender INetService) { - objc.Call[objc.Void](n_, objc.Sel("netServiceDidStop:"), objc.Ptr(sender)) +// [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:"), objc.Ptr(sender), errorDict) } -func (n_ NetServiceDelegateWrapper) HasNetServiceDidUpdateTXTRecordData() bool { - return n_.RespondsToSelector(objc.Sel("netService:didUpdateTXTRecordData:")) +func (n_ NetServiceDelegateObject) HasNetServiceWillResolve() bool { + return n_.RespondsToSelector(objc.Sel("netServiceWillResolve:")) } -// Notifies the delegate that the TXT record for a given service has been updated. [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/1413199-netservice?language=objc -func (n_ NetServiceDelegateWrapper) NetServiceDidUpdateTXTRecordData(sender INetService, data []byte) { - objc.Call[objc.Void](n_, objc.Sel("netService:didUpdateTXTRecordData:"), objc.Ptr(sender), data) +// [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:"), objc.Ptr(sender)) } diff --git a/macos/foundation/notification.gen.go b/macos/foundation/notification.gen.go index 805fb447..5b873038 100644 --- a/macos/foundation/notification.gen.go +++ b/macos/foundation/notification.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package foundation @@ -36,20 +36,11 @@ func NotificationFrom(ptr unsafe.Pointer) Notification { } } -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) NotificationWithNameObject(aName NotificationName, anObject objc.IObject) Notification { rv := objc.Call[Notification](nc, objc.Sel("notificationWithName:object:"), aName, anObject) return rv @@ -62,18 +53,35 @@ func Notification_NotificationWithNameObject(aName NotificationName, anObject ob return NotificationClass.NotificationWithNameObject(aName, anObject) } -func (n_ Notification) Init() Notification { - rv := objc.Call[Notification](n_, objc.Sel("init")) +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 } -func (nc _NotificationClass) Alloc() Notification { - rv := objc.Call[Notification](nc, objc.Sel("alloc")) +// 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) return rv } -func Notification_Alloc() Notification { - return NotificationClass.Alloc() +// 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 } func (nc _NotificationClass) New() Notification { diff --git a/macos/foundation/notification_center.gen.go b/macos/foundation/notification_center.gen.go index c1f06b4b..1f985cbf 100644 --- a/macos/foundation/notification_center.gen.go +++ b/macos/foundation/notification_center.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package foundation @@ -18,11 +18,13 @@ 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] @@ -43,10 +45,6 @@ func (nc _NotificationCenterClass) Alloc() NotificationCenter { return rv } -func NotificationCenter_Alloc() NotificationCenter { - return NotificationCenterClass.Alloc() -} - func (nc _NotificationCenterClass) New() NotificationCenter { rv := objc.Call[NotificationCenter](nc, objc.Sel("new")) rv.Autorelease() @@ -62,19 +60,18 @@ func (n_ NotificationCenter) Init() NotificationCenter { return rv } -// Creates a notification with a given name, sender, and information 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/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/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) } -// Adds an entry to the notification center to receive notifications that passed to the provided block. [Full Topic] +// Posts a given notification to the notification center. [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, objc.Ptr(queue), block) - return rv +// [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:"), objc.Ptr(notification)) } // Removes matching entries from the notification center's dispatch table. [Full Topic] @@ -84,18 +81,33 @@ func (n_ NotificationCenter) RemoveObserverNameObject(observer objc.IObject, aNa objc.Call[objc.Void](n_, objc.Sel("removeObserver:name:object:"), observer, aName, anObject) } -// Adds an entry to the notification center to call the provided selector with the notification. [Full Topic] +// Removes all entries specifying an observer from the notification center's dispatch table. [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/1413994-removeobserver?language=objc +func (n_ NotificationCenter) RemoveObserver(observer objc.IObject) { + objc.Call[objc.Void](n_, objc.Sel("removeObserver:"), observer) } -// 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:"), objc.Ptr(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, objc.Ptr(queue), block) + return rv +} + +// Creates a notification with a given name and sender and posts it to the notification center. [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) +} + +// 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/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) } // 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 aa0bcf4e..c684c097 100644 --- a/macos/foundation/notification_queue.gen.go +++ b/macos/foundation/notification_queue.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package foundation @@ -18,8 +18,9 @@ type _NotificationQueueClass struct { // An interface definition for the [NotificationQueue] class. type INotificationQueue interface { objc.IObject - DequeueNotificationsMatchingCoalesceMask(notification INotification, coalesceMask uint) + EnqueueNotificationPostingStyleCoalesceMaskForModes(notification INotification, postingStyle PostingStyle, coalesceMask NotificationCoalescing, modes []RunLoopMode) EnqueueNotificationPostingStyle(notification INotification, postingStyle PostingStyle) + DequeueNotificationsMatchingCoalesceMask(notification INotification, coalesceMask uint) } // A notification center buffer. [Full Topic] @@ -54,10 +55,6 @@ func (nc _NotificationQueueClass) Alloc() NotificationQueue { return rv } -func NotificationQueue_Alloc() NotificationQueue { - return NotificationQueueClass.Alloc() -} - func (nc _NotificationQueueClass) New() NotificationQueue { rv := objc.Call[NotificationQueue](nc, objc.Sel("new")) rv.Autorelease() @@ -73,11 +70,11 @@ func (n_ NotificationQueue) Init() NotificationQueue { return rv } -// Removes all notifications from the queue that match a provided notification using provided matching criteria. [Full Topic] +// Adds a notification to the notification queue with a specified posting style, criteria for coalescing, and run loop mode. [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:"), objc.Ptr(notification), coalesceMask) +// [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:"), objc.Ptr(notification), postingStyle, coalesceMask, modes) } // Adds a notification to the notification queue with a specified posting style. [Full Topic] @@ -87,6 +84,13 @@ func (n_ NotificationQueue) EnqueueNotificationPostingStyle(notification INotifi objc.Call[objc.Void](n_, objc.Sel("enqueueNotification:postingStyle:"), objc.Ptr(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:"), objc.Ptr(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/null.gen.go b/macos/foundation/null.gen.go index 5958fc8d..80c07dcd 100644 --- a/macos/foundation/null.gen.go +++ b/macos/foundation/null.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package foundation @@ -38,10 +38,6 @@ func (nc _NullClass) Alloc() Null { return rv } -func Null_Alloc() Null { - return NullClass.Alloc() -} - func (nc _NullClass) New() Null { rv := objc.Call[Null](nc, objc.Sel("new")) rv.Autorelease() diff --git a/macos/foundation/number.gen.go b/macos/foundation/number.gen.go index 09bac825..e0e84980 100644 --- a/macos/foundation/number.gen.go +++ b/macos/foundation/number.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package foundation @@ -18,41 +18,41 @@ type _NumberClass struct { // An interface definition for the [Number] class. type INumber interface { IValue - InitWithUnsignedLong(value int32) Number + 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 InitWithInteger(value int) Number + InitWithLongLong(value int64) Number + Compare(otherNumber INumber) ComparisonResult InitWithUnsignedShort(value int) Number - InitWithLong(value int32) Number + InitWithBool(value bool) Number InitWithUnsignedLongLong(value int64) Number - InitWithInt(value int) Number - InitWithLongLong(value int64) Number - InitWithShort(value int) Number - InitWithChar(value uint8) Number InitWithFloat(value float64) Number - InitWithDouble(value float64) Number + InitWithShort(value int) Number + InitWithUnsignedLong(value int32) Number DescriptionWithLocale(locale objc.IObject) string - 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 + InitWithLong(value int32) Number IntValue() int - ShortValue() int - UnsignedIntValue() int + UnsignedLongLongValue() int64 StringValue() string - LongLongValue() int64 - UnsignedShortValue() int - DoubleValue() float64 - UnsignedLongValue() int32 CharValue() uint8 - DecimalValue() Decimal - BoolValue() bool + ShortValue() int FloatValue() float64 - UnsignedIntegerValue() uint + BoolValue() bool + DecimalValue() Decimal + UnsignedShortValue() int + LongLongValue() int64 + IntegerValue() int + UnsignedIntValue() int + UnsignedLongValue() int32 UnsignedCharValue() uint8 + UnsignedIntegerValue() uint LongValue() int32 + DoubleValue() float64 } // An object wrapper for primitive scalar numeric values. [Full Topic] @@ -73,10 +73,6 @@ func (nc _NumberClass) Alloc() Number { return rv } -func Number_Alloc() Number { - return NumberClass.Alloc() -} - func (nc _NumberClass) New() Number { rv := objc.Call[Number](nc, objc.Sel("new")) rv.Autorelease() @@ -106,67 +102,45 @@ func NewNumberWithBytesObjCType(value unsafe.Pointer, type_ *uint8) Number { return instance } -// 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/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 a signed char. [Full Topic] +// 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/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/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 a signed char. [Full Topic] +// 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/1551464-numberwithchar?language=objc -func Number_NumberWithChar(value uint8) Number { - return NumberClass.NumberWithChar(value) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsnumber/1551465-numberwithunsignedlonglong?language=objc +func Number_NumberWithUnsignedLongLong(value int64) Number { + return NumberClass.NumberWithUnsignedLongLong(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 an unsigned char. [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/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 a double. [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/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/1411315-isequaltonumber?language=objc +func (n_ Number) IsEqualToNumber(number INumber) bool { + rv := objc.Call[bool](n_, objc.Sel("isEqualToNumber:"), objc.Ptr(number)) 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 an unsigned long 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/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/1412531-initwithunsignedinteger?language=objc +func (n_ Number) InitWithUnsignedInteger(value uint) Number { + rv := objc.Call[Number](n_, objc.Sel("initWithUnsignedInteger:"), 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 @@ -182,88 +156,72 @@ func Number_NumberWithInteger(value int) Number { return NumberClass.NumberWithInteger(value) } -// 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 -} - -// Creates and returns an NSNumber object containing value, treating it as a signed short. [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/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/1407580-initwithint?language=objc +func (n_ Number) InitWithInt(value int) Number { + rv := objc.Call[Number](n_, objc.Sel("initWithInt:"), value) return rv } -// 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/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 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 (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 Number_NumberWithUnsignedLong(value int32) Number { - return NumberClass.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) } -// Returns an NSNumber object initialized to contain a given value, treated as a signed long. [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/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/1551470-numberwithint?language=objc +func (nc _NumberClass) NumberWithInt(value int) Number { + rv := objc.Call[Number](nc, objc.Sel("numberWithInt:"), value) return rv } -// Returns an NSNumber object initialized to contain a given value, treated as an unsigned long long. [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/1416550-initwithunsignedlonglong?language=objc -func (n_ Number) InitWithUnsignedLongLong(value int64) Number { - rv := objc.Call[Number](n_, objc.Sel("initWithUnsignedLongLong:"), value) - return rv +// [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 a given value, treated as a signed int. [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/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/1414598-initwithunsignedint?language=objc +func (n_ Number) InitWithUnsignedInt(value int) Number { + rv := objc.Call[Number](n_, objc.Sel("initWithUnsignedInt:"), 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 a signed char. [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/1551464-numberwithchar?language=objc +func (nc _NumberClass) NumberWithChar(value uint8) Number { + rv := objc.Call[Number](nc, objc.Sel("numberWithChar:"), 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 a signed char. [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/1551464-numberwithchar?language=objc +func Number_NumberWithChar(value uint8) Number { + return NumberClass.NumberWithChar(value) } -// Returns an NSNumber object initialized to contain value, treated as a signed long long. [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/1408171-initwithlonglong?language=objc -func (n_ Number) InitWithLongLong(value int64) Number { - rv := objc.Call[Number](n_, objc.Sel("initWithLongLong:"), 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 } @@ -282,41 +240,34 @@ func Number_NumberWithFloat(value float64) Number { return NumberClass.NumberWithFloat(value) } -// Creates and returns an NSNumber object containing a given value, treating it as an unsigned short. [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/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/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 unsigned 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) -} - -// Creates and returns an NSNumber object containing a given value, treating it as a BOOL. [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/1551475-numberwithbool?language=objc -func (nc _NumberClass) NumberWithBool(value bool) Number { - rv := objc.Call[Number](nc, objc.Sel("numberWithBool:"), 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 BOOL. [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/1551475-numberwithbool?language=objc -func Number_NumberWithBool(value bool) Number { - return NumberClass.NumberWithBool(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 a signed short. [Full Topic] +// 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/1411886-initwithshort?language=objc -func (n_ Number) InitWithShort(value int) Number { - rv := objc.Call[Number](n_, objc.Sel("initWithShort:"), value) +// [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 } @@ -335,45 +286,83 @@ func Number_NumberWithUnsignedChar(value uint8) Number { return NumberClass.NumberWithUnsignedChar(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 NSUInteger. [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/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 a given value, treating it as an unsigned int. [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/1551472-numberwithunsignedint?language=objc -func (nc _NumberClass) NumberWithUnsignedInt(value int) Number { - rv := objc.Call[Number](nc, objc.Sel("numberWithUnsignedInt:"), value) - return rv +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsnumber/1551469-numberwithunsignedinteger?language=objc +func Number_NumberWithUnsignedInteger(value uint) Number { + return NumberClass.NumberWithUnsignedInteger(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 value, treated as a signed long long. [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/1408171-initwithlonglong?language=objc +func (n_ Number) InitWithLongLong(value int64) Number { + rv := objc.Call[Number](n_, objc.Sel("initWithLongLong:"), value) + return rv } -// Returns an NSNumber object initialized to contain a given value, treated as a float. [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/1412999-initwithfloat?language=objc -func (n_ Number) InitWithFloat(value float64) Number { - rv := objc.Call[Number](n_, objc.Sel("initWithFloat:"), value) +// [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 } -// 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 BOOL. [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/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:"), objc.Ptr(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 +} + +// 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/1415728-initwithbool?language=objc +func (n_ Number) InitWithBool(value bool) Number { + rv := objc.Call[Number](n_, objc.Sel("initWithBool:"), 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 (nc _NumberClass) NumberWithDouble(value float64) Number { + rv := objc.Call[Number](nc, objc.Sel("numberWithDouble:"), 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 @@ -389,97 +378,104 @@ func Number_NumberWithLongLong(value int64) Number { return NumberClass.NumberWithLongLong(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 an unsigned long long. [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/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 an NSUInteger. [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/1551469-numberwithunsignedinteger?language=objc -func Number_NumberWithUnsignedInteger(value uint) Number { - return NumberClass.NumberWithUnsignedInteger(value) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsnumber/1412999-initwithfloat?language=objc +func (n_ Number) InitWithFloat(value float64) Number { + rv := objc.Call[Number](n_, objc.Sel("initWithFloat:"), value) + 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 signed short. [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/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 a given value, treating it as a signed long. [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/1551474-numberwithlong?language=objc -func (nc _NumberClass) NumberWithLong(value int32) Number { - rv := objc.Call[Number](nc, objc.Sel("numberWithLong:"), 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 a signed long. [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/1551474-numberwithlong?language=objc -func Number_NumberWithLong(value int32) Number { - return NumberClass.NumberWithLong(value) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsnumber/1551476-numberwithshort?language=objc +func Number_NumberWithShort(value int) Number { + return NumberClass.NumberWithShort(value) } -// Returns an NSNumber object initialized to contain a given value, treated as an unsigned char. [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/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/1410728-initwithunsignedlong?language=objc +func (n_ Number) InitWithUnsignedLong(value int32) Number { + rv := objc.Call[Number](n_, objc.Sel("initWithUnsignedLong:"), value) return rv } -// 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] +// Creates and returns an NSNumber object containing a given value, treating it as a signed long. [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:"), objc.Ptr(otherNumber)) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsnumber/1551474-numberwithlong?language=objc +func (nc _NumberClass) NumberWithLong(value int32) Number { + rv := objc.Call[Number](nc, objc.Sel("numberWithLong:"), value) return rv } -// Returns an NSNumber object initialized to contain a given value, treated as a BOOL. [Full Topic] +// Creates and returns an NSNumber object containing a given value, treating it as a signed long. [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) - return rv +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsnumber/1551474-numberwithlong?language=objc +func Number_NumberWithLong(value int32) Number { + return NumberClass.NumberWithLong(value) } -// 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 an unsigned int. [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/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 a given value, treated as an unsigned int. [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/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/1551472-numberwithunsignedint?language=objc +func Number_NumberWithUnsignedInt(value int) Number { + return NumberClass.NumberWithUnsignedInt(value) +} + +// 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/1409984-descriptionwithlocale?language=objc +func (n_ Number) DescriptionWithLocale(locale objc.IObject) string { + rv := objc.Call[string](n_, objc.Sel("descriptionWithLocale:"), locale) return rv } -// Returns a Boolean value that indicates whether the number object’s value and a given number are equal. [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/1411315-isequaltonumber?language=objc -func (n_ Number) IsEqualToNumber(number INumber) bool { - rv := objc.Call[bool](n_, objc.Sel("isEqualToNumber:"), objc.Ptr(number)) +// [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 } -// The number object's value expressed as an NSInteger object, converted as necessary. [Full Topic] +// The number object's value expressed as an int, 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/1407153-intvalue?language=objc +func (n_ Number) IntValue() int { + rv := objc.Call[int](n_, objc.Sel("intValue")) return rv } @@ -491,11 +487,19 @@ func (n_ Number) UnsignedLongLongValue() int64 { return rv } -// The number object's value expressed as an int, converted as necessary. [Full Topic] +// The number object's value expressed as a human-readable string. [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/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 a char. [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")) return rv } @@ -507,27 +511,27 @@ func (n_ Number) ShortValue() int { 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 float, converted as necessary. [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/1418317-floatvalue?language=objc +func (n_ Number) FloatValue() float64 { + rv := objc.Call[float64](n_, objc.Sel("floatValue")) return rv } -// The number object's value expressed as a human-readable string. [Full Topic] +// The number object's value expressed as a Boolean value. [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/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 long 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/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/1407409-decimalvalue?language=objc +func (n_ Number) DecimalValue() Decimal { + rv := objc.Call[Decimal](n_, objc.Sel("decimalValue")) return rv } @@ -539,51 +543,43 @@ func (n_ Number) UnsignedShortValue() int { return rv } -// The number object's value expressed as a double, 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")) - return rv -} - -// The number object's value expressed as an unsigned long, converted as necessary. [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/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/1416870-longlongvalue?language=objc +func (n_ Number) LongLongValue() int64 { + rv := objc.Call[int64](n_, objc.Sel("longLongValue")) return rv } -// The number object's value expressed as a char. [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/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/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 an NSDecimal structure. [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/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/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 an unsigned long, converted as necessary. [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/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 a float, 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/1418317-floatvalue?language=objc -func (n_ Number) FloatValue() float64 { - rv := objc.Call[float64](n_, objc.Sel("floatValue")) +// [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 } @@ -595,14 +591,6 @@ func (n_ Number) UnsignedIntegerValue() uint { return rv } -// The number object's value expressed as an unsigned char, converted as necessary. [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")) - return rv -} - // The number object's value expressed as a long, converted as necessary. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/foundation/nsnumber/1412566-longvalue?language=objc @@ -610,3 +598,11 @@ func (n_ Number) LongValue() int32 { rv := objc.Call[int32](n_, objc.Sel("longValue")) return rv } + +// The number object's value expressed as a double, 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")) + return rv +} diff --git a/macos/foundation/number_formatter.gen.go b/macos/foundation/number_formatter.gen.go index 19771d60..b068a75d 100644 --- a/macos/foundation/number_formatter.gen.go +++ b/macos/foundation/number_formatter.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package foundation @@ -21,136 +21,136 @@ type INumberFormatter interface { GetObjectValueForStringRangeError(obj objc.IObject, string_ string, rangep *Range, error IError) bool StringFromNumber(number INumber) string NumberFromString(string_ string) Number - IsLenient() bool - SetLenient(value bool) + Minimum() Number + SetMinimum(value INumber) + GroupingSeparator() string + SetGroupingSeparator(value string) + GeneratesDecimalNumbers() bool + SetGeneratesDecimalNumbers(value bool) + MinimumFractionDigits() uint + SetMinimumFractionDigits(value uint) AlwaysShowsDecimalSeparator() bool SetAlwaysShowsDecimalSeparator(value bool) - LocalizesFormat() bool - SetLocalizesFormat(value bool) - PlusSign() string - SetPlusSign(value string) - CurrencyGroupingSeparator() string - SetCurrencyGroupingSeparator(value string) - 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) - PositiveInfinitySymbol() string - SetPositiveInfinitySymbol(value string) - Multiplier() Number - SetMultiplier(value INumber) - ExponentSymbol() string - SetExponentSymbol(value string) - FormatterBehavior() NumberFormatterBehavior - SetFormatterBehavior(value NumberFormatterBehavior) - NumberStyle() NumberFormatterStyle - SetNumberStyle(value NumberFormatterStyle) - AttributedStringForNotANumber() AttributedString - SetAttributedStringForNotANumber(value IAttributedString) + DecimalSeparator() string + SetDecimalSeparator(value string) + NegativeSuffix() string + SetNegativeSuffix(value string) InternationalCurrencySymbol() string SetInternationalCurrencySymbol(value string) - MaximumIntegerDigits() uint - SetMaximumIntegerDigits(value uint) - 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) - 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) + 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) + CurrencyGroupingSeparator() string + SetCurrencyGroupingSeparator(value string) + RoundingBehavior() DecimalNumberHandler + SetRoundingBehavior(value IDecimalNumberHandler) + GroupingSize() uint + SetGroupingSize(value uint) NilSymbol() string SetNilSymbol(value string) - MinusSign() string - SetMinusSign(value string) - NotANumberSymbol() string - SetNotANumberSymbol(value string) - CurrencySymbol() string - SetCurrencySymbol(value string) - FormattingContext() FormattingContext - SetFormattingContext(value FormattingContext) - DecimalSeparator() string - SetDecimalSeparator(value string) - UsesGroupingSeparator() bool - SetUsesGroupingSeparator(value bool) - IsPartialStringValidationEnabled() bool - SetPartialStringValidationEnabled(value bool) + 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) + PaddingCharacter() string + SetPaddingCharacter(value string) + UsesGroupingSeparator() bool + SetUsesGroupingSeparator(value bool) + 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) + MaximumIntegerDigits() uint + SetMaximumIntegerDigits(value uint) + FormattingContext() FormattingContext + SetFormattingContext(value FormattingContext) + TextAttributesForNegativeInfinity() map[string]objc.Object + SetTextAttributesForNegativeInfinity(value map[string]objc.IObject) + AllowsFloats() bool + SetAllowsFloats(value bool) + ZeroSymbol() string + SetZeroSymbol(value string) + FormatWidth() uint + SetFormatWidth(value uint) + 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) 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) - 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) + 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) + MinimumIntegerDigits() uint + SetMinimumIntegerDigits(value uint) Maximum() Number SetMaximum(value INumber) - 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) + 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) } // A formatter that converts between numeric values and their textual representations. [Full Topic] @@ -171,10 +171,6 @@ func (nc _NumberFormatterClass) Alloc() NumberFormatter { return rv } -func NumberFormatter_Alloc() NumberFormatter { - return NumberFormatterClass.Alloc() -} - func (nc _NumberFormatterClass) New() NumberFormatter { rv := objc.Call[NumberFormatter](nc, objc.Sel("new")) rv.Autorelease() @@ -190,35 +186,6 @@ 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:"), objc.Ptr(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 @@ -243,6 +210,20 @@ 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 @@ -258,184 +239,184 @@ func NumberFormatter_DefaultFormatterBehavior() NumberFormatterBehavior { return NumberFormatterClass.DefaultFormatterBehavior() } -// Determines whether the receiver will use heuristics to guess at the number which is intended by a string. [Full Topic] +// Returns a localized number string with the specified style. [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/1416418-localizedstringfromnumber?language=objc +func (nc _NumberFormatterClass) LocalizedStringFromNumberNumberStyle(num INumber, nstyle NumberFormatterStyle) string { + rv := objc.Call[string](nc, objc.Sel("localizedStringFromNumber:numberStyle:"), objc.Ptr(num), nstyle) return rv } -// Determines whether the receiver will use heuristics to guess at the number which is intended by a string. [Full Topic] +// Returns a localized number string with the specified style. [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/1416418-localizedstringfromnumber?language=objc +func NumberFormatter_LocalizedStringFromNumberNumberStyle(num INumber, nstyle NumberFormatterStyle) string { + return NumberFormatterClass.LocalizedStringFromNumberNumberStyle(num, nstyle) } -// Determines whether the receiver always shows the decimal separator, even for integer numbers. [Full Topic] +// The lowest number allowed as input by the receiver. [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/1417228-minimum?language=objc +func (n_ NumberFormatter) Minimum() Number { + rv := objc.Call[Number](n_, objc.Sel("minimum")) return rv } -// Determines whether the receiver always shows the decimal separator, even for integer numbers. [Full Topic] +// The lowest number allowed as input by the receiver. [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/1417228-minimum?language=objc +func (n_ NumberFormatter) SetMinimum(value INumber) { + objc.Call[objc.Void](n_, objc.Sel("setMinimum:"), objc.Ptr(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 string used by the receiver for a grouping separator. [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/1412157-groupingseparator?language=objc +func (n_ NumberFormatter) GroupingSeparator() string { + rv := objc.Call[string](n_, objc.Sel("groupingSeparator")) 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 string used by the receiver for a grouping separator. [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/1412157-groupingseparator?language=objc +func (n_ NumberFormatter) SetGroupingSeparator(value string) { + objc.Call[objc.Void](n_, objc.Sel("setGroupingSeparator:"), value) } -// The string used to represent a plus sign. [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/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/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 plus sign. [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/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/1410503-generatesdecimalnumbers?language=objc +func (n_ NumberFormatter) SetGeneratesDecimalNumbers(value bool) { + objc.Call[objc.Void](n_, objc.Sel("setGeneratesDecimalNumbers:"), value) } -// The currency grouping separator for the receiver. [Full Topic] +// The minimum number of digits after the decimal separator. [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/1410459-minimumfractiondigits?language=objc +func (n_ NumberFormatter) MinimumFractionDigits() uint { + rv := objc.Call[uint](n_, objc.Sel("minimumFractionDigits")) return rv } -// The currency grouping separator for the receiver. [Full Topic] +// The minimum number of digits after the decimal separator. [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/1410459-minimumfractiondigits?language=objc +func (n_ NumberFormatter) SetMinimumFractionDigits(value uint) { + objc.Call[objc.Void](n_, objc.Sel("setMinimumFractionDigits:"), value) } -// A Boolean value indicating whether the formatter uses minimum and maximum significant digits when formatting numbers. [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/1417793-usessignificantdigits?language=objc -func (n_ NumberFormatter) UsesSignificantDigits() bool { - rv := objc.Call[bool](n_, objc.Sel("usesSignificantDigits")) +// [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 } -// A Boolean value indicating whether the formatter uses minimum and maximum significant digits when formatting numbers. [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/1417793-usessignificantdigits?language=objc -func (n_ NumberFormatter) SetUsesSignificantDigits(value bool) { - objc.Call[objc.Void](n_, objc.Sel("setUsesSignificantDigits:"), 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 the receiver uses as a prefix for negative values. [Full Topic] +// The character the receiver uses as a 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/1408029-decimalseparator?language=objc +func (n_ NumberFormatter) DecimalSeparator() string { + rv := objc.Call[string](n_, objc.Sel("decimalSeparator")) return rv } -// The string the receiver uses as a prefix for negative values. [Full Topic] +// The character the receiver uses as a 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/1408029-decimalseparator?language=objc +func (n_ NumberFormatter) SetDecimalSeparator(value string) { + objc.Call[objc.Void](n_, objc.Sel("setDecimalSeparator:"), value) } -// Determines whether the receiver allows as input floating-point values (that is, values that include the period character [.]). [Full Topic] +// The string the receiver uses as a suffix for negative values. [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/1413927-negativesuffix?language=objc +func (n_ NumberFormatter) NegativeSuffix() string { + rv := objc.Call[string](n_, objc.Sel("negativeSuffix")) return rv } -// Determines whether the receiver allows as input floating-point values (that is, values that include the period character [.]). [Full Topic] +// The string the receiver uses as a suffix for negative values. [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/1413927-negativesuffix?language=objc +func (n_ NumberFormatter) SetNegativeSuffix(value string) { + objc.Call[objc.Void](n_, objc.Sel("setNegativeSuffix:"), value) } -// The format the receiver uses to display positive values. [Full Topic] +// The international currency symbol 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/1412755-internationalcurrencysymbol?language=objc +func (n_ NumberFormatter) InternationalCurrencySymbol() string { + rv := objc.Call[string](n_, objc.Sel("internationalCurrencySymbol")) return rv } -// The format the receiver uses to display positive values. [Full Topic] +// The international currency symbol 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/1412755-internationalcurrencysymbol?language=objc +func (n_ NumberFormatter) SetInternationalCurrencySymbol(value string) { + objc.Call[objc.Void](n_, objc.Sel("setInternationalCurrencySymbol:"), value) } -// The string the receiver uses as the prefix for positive values. [Full Topic] +// The text attributes used to display a zero value. [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/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 the receiver uses as the prefix for positive values. [Full Topic] +// The text attributes used to display a zero value. [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/1415971-textattributesforzero?language=objc +func (n_ NumberFormatter) SetTextAttributesForZero(value map[string]objc.IObject) { + objc.Call[objc.Void](n_, objc.Sel("setTextAttributesForZero:"), value) } -// The secondary grouping size 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/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/1415364-maximumfractiondigits?language=objc +func (n_ NumberFormatter) MaximumFractionDigits() uint { + rv := objc.Call[uint](n_, objc.Sel("maximumFractionDigits")) return rv } -// The secondary grouping size 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/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/1415364-maximumfractiondigits?language=objc +func (n_ NumberFormatter) SetMaximumFractionDigits(value uint) { + objc.Call[objc.Void](n_, objc.Sel("setMaximumFractionDigits:"), value) } -// The receiver’s currency code. [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/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/1416819-attributedstringfornotanumber?language=objc +func (n_ NumberFormatter) AttributedStringForNotANumber() AttributedString { + rv := objc.Call[AttributedString](n_, objc.Sel("attributedStringForNotANumber")) return rv } -// The receiver’s currency code. [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/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/1416819-attributedstringfornotanumber?language=objc +func (n_ NumberFormatter) SetAttributedStringForNotANumber(value IAttributedString) { + objc.Call[objc.Void](n_, objc.Sel("setAttributedStringForNotANumber:"), objc.Ptr(value)) } // The format the receiver uses to display negative values. [Full Topic] @@ -447,70 +428,55 @@ func (n_ NumberFormatter) NegativeFormat() string { } // The format the receiver uses to display negative values. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsnumberformatter/1414039-negativeformat?language=objc -func (n_ NumberFormatter) SetNegativeFormat(value string) { - objc.Call[objc.Void](n_, objc.Sel("setNegativeFormat:"), value) -} - -// 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) +// +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsnumberformatter/1414039-negativeformat?language=objc +func (n_ NumberFormatter) SetNegativeFormat(value string) { + objc.Call[objc.Void](n_, objc.Sel("setNegativeFormat:"), 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) } -// The string used to represent a positive infinity symbol. [Full Topic] +// The receiver’s currency code. [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/1410463-currencycode?language=objc +func (n_ NumberFormatter) CurrencyCode() string { + rv := objc.Call[string](n_, objc.Sel("currencyCode")) return rv } -// The string used to represent a positive infinity symbol. [Full Topic] +// The receiver’s currency code. [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/1410463-currencycode?language=objc +func (n_ NumberFormatter) SetCurrencyCode(value string) { + objc.Call[objc.Void](n_, objc.Sel("setCurrencyCode:"), value) } -// The multiplier of the receiver. [Full Topic] +// The string used to represent a negative infinity symbol. [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/1417968-negativeinfinitysymbol?language=objc +func (n_ NumberFormatter) NegativeInfinitySymbol() string { + rv := objc.Call[string](n_, objc.Sel("negativeInfinitySymbol")) return rv } -// The multiplier of the receiver. [Full Topic] +// The string used to represent a negative infinity symbol. [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:"), objc.Ptr(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 an exponent symbol. [Full Topic] @@ -528,379 +494,409 @@ func (n_ NumberFormatter) SetExponentSymbol(value string) { objc.Call[objc.Void](n_, objc.Sel("setExponentSymbol:"), value) } -// The formatter behavior of the receiver. [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/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/1417793-usessignificantdigits?language=objc +func (n_ NumberFormatter) UsesSignificantDigits() bool { + rv := objc.Call[bool](n_, objc.Sel("usesSignificantDigits")) return rv } -// The formatter behavior of the receiver. [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/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/1417793-usessignificantdigits?language=objc +func (n_ NumberFormatter) SetUsesSignificantDigits(value bool) { + objc.Call[objc.Void](n_, objc.Sel("setUsesSignificantDigits:"), value) } -// The number style used by the receiver. [Full Topic] +// The string used to represent a percent 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/1407789-percentsymbol?language=objc +func (n_ NumberFormatter) PercentSymbol() string { + rv := objc.Call[string](n_, objc.Sel("percentSymbol")) return rv } -// The number style used by the receiver. [Full Topic] +// The string used to represent a percent 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/1407789-percentsymbol?language=objc +func (n_ NumberFormatter) SetPercentSymbol(value string) { + objc.Call[objc.Void](n_, objc.Sel("setPercentSymbol:"), value) } -// The attributed string the receiver uses to display “not a number” values. [Full Topic] +// The padding position used by the receiver. [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/1411127-paddingposition?language=objc +func (n_ NumberFormatter) PaddingPosition() NumberFormatterPadPosition { + rv := objc.Call[NumberFormatterPadPosition](n_, objc.Sel("paddingPosition")) return rv } -// The attributed string the receiver uses to display “not a number” values. [Full Topic] +// The padding position used by the receiver. [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:"), objc.Ptr(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 international currency symbol used by the receiver. [Full Topic] +// The currency grouping separator for the receiver. [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/1416213-currencygroupingseparator?language=objc +func (n_ NumberFormatter) CurrencyGroupingSeparator() string { + rv := objc.Call[string](n_, objc.Sel("currencyGroupingSeparator")) return rv } -// The international currency symbol used by the receiver. [Full Topic] +// The currency grouping separator for the receiver. [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/1416213-currencygroupingseparator?language=objc +func (n_ NumberFormatter) SetCurrencyGroupingSeparator(value string) { + objc.Call[objc.Void](n_, objc.Sel("setCurrencyGroupingSeparator:"), value) } -// The maximum number of digits before the decimal separator. [Full Topic] +// The rounding behavior used by the receiver. [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/1415880-roundingbehavior?language=objc +func (n_ NumberFormatter) RoundingBehavior() DecimalNumberHandler { + rv := objc.Call[DecimalNumberHandler](n_, objc.Sel("roundingBehavior")) return rv } -// The maximum number of digits before the decimal separator. [Full Topic] +// The rounding behavior used by the receiver. [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/1415880-roundingbehavior?language=objc +func (n_ NumberFormatter) SetRoundingBehavior(value IDecimalNumberHandler) { + objc.Call[objc.Void](n_, objc.Sel("setRoundingBehavior:"), objc.Ptr(value)) } -// The text attributes used to display the positive infinity symbol. [Full Topic] +// The grouping size of the receiver. [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")) +// [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 used to display the positive infinity symbol. [Full Topic] +// The grouping size of the receiver. [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) +// [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) } -// The rounding increment used by the receiver. [Full Topic] +// The string used to represent a nil value. [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/1412699-nilsymbol?language=objc +func (n_ NumberFormatter) NilSymbol() string { + rv := objc.Call[string](n_, objc.Sel("nilSymbol")) return rv } -// The rounding increment used by the receiver. [Full Topic] +// The string used to represent a nil value. [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:"), objc.Ptr(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 text attributes used to display the negative infinity symbol. [Full Topic] +// The number style used by the receiver. [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/1416915-numberstyle?language=objc +func (n_ NumberFormatter) NumberStyle() NumberFormatterStyle { + rv := objc.Call[NumberFormatterStyle](n_, objc.Sel("numberStyle")) return rv } -// The text attributes used to display the negative infinity symbol. [Full Topic] +// The number style used by the receiver. [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/1416915-numberstyle?language=objc +func (n_ NumberFormatter) SetNumberStyle(value NumberFormatterStyle) { + objc.Call[objc.Void](n_, objc.Sel("setNumberStyle:"), value) } -// The string used to represent a negative infinity symbol. [Full Topic] +// The attributed string the receiver uses to display nil values. [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/1416184-attributedstringfornil?language=objc +func (n_ NumberFormatter) AttributedStringForNil() AttributedString { + rv := objc.Call[AttributedString](n_, objc.Sel("attributedStringForNil")) return rv } -// The string used to represent a negative infinity symbol. [Full Topic] +// The attributed string the receiver uses to display nil values. [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/1416184-attributedstringfornil?language=objc +func (n_ NumberFormatter) SetAttributedStringForNil(value IAttributedString) { + objc.Call[objc.Void](n_, objc.Sel("setAttributedStringForNil:"), objc.Ptr(value)) } -// Determines whether the receiver creates instances of NSDecimalNumber when it converts strings to number objects. [Full Topic] +// The receiver’s format. [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/1410565-format?language=objc +func (n_ NumberFormatter) Format() string { + rv := objc.Call[string](n_, objc.Sel("format")) return rv } -// Determines whether the receiver creates instances of NSDecimalNumber when it converts strings to number objects. [Full Topic] +// The receiver’s format. [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/1410565-format?language=objc +func (n_ NumberFormatter) SetFormat(value string) { + objc.Call[objc.Void](n_, objc.Sel("setFormat:"), value) } -// The text attributes used to display a zero value. [Full Topic] +// The character the receiver uses as a thousand separator. [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/1412771-thousandseparator?language=objc +func (n_ NumberFormatter) ThousandSeparator() string { + rv := objc.Call[string](n_, objc.Sel("thousandSeparator")) return rv } -// The text attributes used to display a zero value. [Full Topic] +// The character the receiver uses as a thousand separator. [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/1412771-thousandseparator?language=objc +func (n_ NumberFormatter) SetThousandSeparator(value string) { + objc.Call[objc.Void](n_, objc.Sel("setThousandSeparator:"), value) +} + +// The string used to represent a positive infinity symbol. [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")) + return rv +} + +// The string used to represent a positive infinity symbol. [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) +} + +// The string used to represent a per-mill (per-thousand) symbol. [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")) + return rv +} + +// The string used to represent a per-mill (per-thousand) symbol. [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) } -// The minimum number of significant digits for the number formatter. [Full Topic] +// The text attributes to be used in displaying negative 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/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 } -// The minimum number of significant digits for the number formatter. [Full Topic] +// The text attributes to be used in displaying negative 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/1414530-textattributesfornegativevalues?language=objc +func (n_ NumberFormatter) SetTextAttributesForNegativeValues(value map[string]objc.IObject) { + objc.Call[objc.Void](n_, objc.Sel("setTextAttributesForNegativeValues:"), value) } -// The locale of the receiver. [Full Topic] +// The maximum number of significant digits for the number formatter. [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/1412008-maximumsignificantdigits?language=objc +func (n_ NumberFormatter) MaximumSignificantDigits() uint { + rv := objc.Call[uint](n_, objc.Sel("maximumSignificantDigits")) return rv } -// The locale of the receiver. [Full Topic] +// The maximum number of significant digits for the number formatter. [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:"), objc.Ptr(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) } -// 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) 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 string used by the receiver as a currency decimal separator. [Full Topic] +// Determines whether the receiver displays the group separator. [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/1409880-usesgroupingseparator?language=objc +func (n_ NumberFormatter) UsesGroupingSeparator() bool { + rv := objc.Call[bool](n_, objc.Sel("usesGroupingSeparator")) return rv } -// The string used by the receiver as a currency decimal separator. [Full Topic] +// Determines whether the receiver displays the group separator. [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/1409880-usesgroupingseparator?language=objc +func (n_ NumberFormatter) SetUsesGroupingSeparator(value bool) { + objc.Call[objc.Void](n_, objc.Sel("setUsesGroupingSeparator:"), value) } -// The maximum number of digits after the decimal separator. [Full Topic] +// The multiplier 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/1408601-multiplier?language=objc +func (n_ NumberFormatter) Multiplier() Number { + rv := objc.Call[Number](n_, objc.Sel("multiplier")) return rv } -// The maximum number of digits after the decimal separator. [Full Topic] +// The multiplier 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/1408601-multiplier?language=objc +func (n_ NumberFormatter) SetMultiplier(value INumber) { + objc.Call[objc.Void](n_, objc.Sel("setMultiplier:"), objc.Ptr(value)) } -// The lowest number allowed as input by the receiver. [Full Topic] +// The string used to represent a minus sign. [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/1409416-minussign?language=objc +func (n_ NumberFormatter) MinusSign() string { + rv := objc.Call[string](n_, objc.Sel("minusSign")) return rv } -// The lowest number allowed as input by the receiver. [Full Topic] +// The string used to represent a minus sign. [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:"), objc.Ptr(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 attributed string that the receiver uses to display zero values. [Full Topic] +// The text attributes used to display the nil symbol. [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/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 attributed string that the receiver uses to display zero values. [Full Topic] +// The text attributes used to display the nil symbol. [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:"), objc.Ptr(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 string used to represent a per-mill (per-thousand) symbol. [Full Topic] +// The rounding increment used by the receiver. [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/1412561-roundingincrement?language=objc +func (n_ NumberFormatter) RoundingIncrement() Number { + rv := objc.Call[Number](n_, objc.Sel("roundingIncrement")) return rv } -// The string used to represent a per-mill (per-thousand) symbol. [Full Topic] +// The rounding increment used by the receiver. [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/1412561-roundingincrement?language=objc +func (n_ NumberFormatter) SetRoundingIncrement(value INumber) { + objc.Call[objc.Void](n_, objc.Sel("setRoundingIncrement:"), objc.Ptr(value)) } -// The maximum number of significant digits for the number formatter. [Full Topic] +// The maximum number of digits before the decimal separator. [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/1407284-maximumintegerdigits?language=objc +func (n_ NumberFormatter) MaximumIntegerDigits() uint { + rv := objc.Call[uint](n_, objc.Sel("maximumIntegerDigits")) return rv } -// The maximum number of significant digits for the number formatter. [Full Topic] +// The maximum number of digits before the decimal separator. [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/1407284-maximumintegerdigits?language=objc +func (n_ NumberFormatter) SetMaximumIntegerDigits(value uint) { + objc.Call[objc.Void](n_, objc.Sel("setMaximumIntegerDigits:"), value) } -// The string used to represent a zero value. [Full Topic] +// The capitalization formatting context used when formatting a number. [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/1408543-formattingcontext?language=objc +func (n_ NumberFormatter) FormattingContext() FormattingContext { + rv := objc.Call[FormattingContext](n_, objc.Sel("formattingContext")) return rv } -// The string used to represent a zero value. [Full Topic] +// The capitalization formatting context used when formatting a number. [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/1408543-formattingcontext?language=objc +func (n_ NumberFormatter) SetFormattingContext(value FormattingContext) { + objc.Call[objc.Void](n_, objc.Sel("setFormattingContext:"), value) } -// The string used to represent a percent symbol. [Full Topic] +// The text attributes used to display the negative infinity 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")) +// [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 string used to represent a percent symbol. [Full Topic] +// The text attributes used to display the negative infinity 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) +// [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 string used to represent a nil value. [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/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/1416119-allowsfloats?language=objc +func (n_ NumberFormatter) AllowsFloats() bool { + rv := objc.Call[bool](n_, objc.Sel("allowsFloats")) return rv } -// The string used to represent a nil value. [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/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/1416119-allowsfloats?language=objc +func (n_ NumberFormatter) SetAllowsFloats(value bool) { + objc.Call[objc.Void](n_, objc.Sel("setAllowsFloats:"), value) } -// The string used to represent a minus sign. [Full Topic] +// The string used to represent a zero value. [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/1410405-zerosymbol?language=objc +func (n_ NumberFormatter) ZeroSymbol() string { + rv := objc.Call[string](n_, objc.Sel("zeroSymbol")) return rv } -// The string used to represent a minus sign. [Full Topic] +// The string used to represent a zero value. [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/1410405-zerosymbol?language=objc +func (n_ NumberFormatter) SetZeroSymbol(value string) { + objc.Call[objc.Void](n_, objc.Sel("setZeroSymbol:"), value) } -// The string used to represent a NaN (“not a number”) value. [Full Topic] +// The format width used by the receiver. [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/1411919-formatwidth?language=objc +func (n_ NumberFormatter) FormatWidth() uint { + rv := objc.Call[uint](n_, objc.Sel("formatWidth")) return rv } -// The string used to represent a NaN (“not a number”) value. [Full Topic] +// The format width used by the receiver. [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/1411919-formatwidth?language=objc +func (n_ NumberFormatter) SetFormatWidth(value uint) { + objc.Call[objc.Void](n_, objc.Sel("setFormatWidth:"), value) } // The string used by the receiver as a local currency symbol. [Full Topic] @@ -918,94 +914,94 @@ func (n_ NumberFormatter) SetCurrencySymbol(value string) { objc.Call[objc.Void](n_, objc.Sel("setCurrencySymbol:"), value) } -// The capitalization formatting context used when formatting a number. [Full Topic] +// The string used by the receiver as a currency decimal separator. [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/1407247-currencydecimalseparator?language=objc +func (n_ NumberFormatter) CurrencyDecimalSeparator() string { + rv := objc.Call[string](n_, objc.Sel("currencyDecimalSeparator")) return rv } -// The capitalization formatting context used when formatting a number. [Full Topic] +// The string used by the receiver as a currency decimal separator. [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/1407247-currencydecimalseparator?language=objc +func (n_ NumberFormatter) SetCurrencyDecimalSeparator(value string) { + objc.Call[objc.Void](n_, objc.Sel("setCurrencyDecimalSeparator:"), value) } -// The character the receiver uses as a decimal separator. [Full Topic] +// The secondary grouping size of the receiver. [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/1413348-secondarygroupingsize?language=objc +func (n_ NumberFormatter) SecondaryGroupingSize() uint { + rv := objc.Call[uint](n_, objc.Sel("secondaryGroupingSize")) return rv } -// The character the receiver uses as a decimal separator. [Full Topic] +// The secondary grouping size of the receiver. [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/1413348-secondarygroupingsize?language=objc +func (n_ NumberFormatter) SetSecondaryGroupingSize(value uint) { + objc.Call[objc.Void](n_, objc.Sel("setSecondaryGroupingSize:"), value) } -// Determines whether the receiver displays the group separator. [Full Topic] +// The string used to represent a plus sign. [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/1416423-plussign?language=objc +func (n_ NumberFormatter) PlusSign() string { + rv := objc.Call[string](n_, objc.Sel("plusSign")) return rv } -// Determines whether the receiver displays the group separator. [Full Topic] +// The string used to represent a plus sign. [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/1416423-plussign?language=objc +func (n_ NumberFormatter) SetPlusSign(value string) { + objc.Call[objc.Void](n_, objc.Sel("setPlusSign:"), value) } -// Determines whether partial string validation is enabled for the receiver. [Full Topic] +// The locale of the receiver. [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/1416967-locale?language=objc +func (n_ NumberFormatter) Locale() Locale { + rv := objc.Call[Locale](n_, objc.Sel("locale")) return rv } -// Determines whether partial string validation is enabled for the receiver. [Full Topic] +// The locale of the receiver. [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/1416967-locale?language=objc +func (n_ NumberFormatter) SetLocale(value ILocale) { + objc.Call[objc.Void](n_, objc.Sel("setLocale:"), objc.Ptr(value)) } -// The attributed string the receiver uses to display nil values. [Full Topic] +// The minimum number of significant digits for the number formatter. [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/1410174-minimumsignificantdigits?language=objc +func (n_ NumberFormatter) MinimumSignificantDigits() uint { + rv := objc.Call[uint](n_, objc.Sel("minimumSignificantDigits")) return rv } -// The attributed string the receiver uses to display nil values. [Full Topic] +// The minimum number of significant digits for the number formatter. [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:"), objc.Ptr(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 character the receiver uses as a thousand separator. [Full Topic] +// The formatter behavior of the receiver. [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/1417642-formatterbehavior?language=objc +func (n_ NumberFormatter) FormatterBehavior() NumberFormatterBehavior { + rv := objc.Call[NumberFormatterBehavior](n_, objc.Sel("formatterBehavior")) return rv } -// The character the receiver uses as a thousand separator. [Full Topic] +// The formatter behavior of the receiver. [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/1417642-formatterbehavior?language=objc +func (n_ NumberFormatter) SetFormatterBehavior(value NumberFormatterBehavior) { + objc.Call[objc.Void](n_, objc.Sel("setFormatterBehavior:"), value) } // The text attributes used to display the NaN (“not a number”) string. [Full Topic] @@ -1023,6 +1019,21 @@ 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 @@ -1038,94 +1049,94 @@ func (n_ NumberFormatter) SetPositiveSuffix(value string) { objc.Call[objc.Void](n_, objc.Sel("setPositiveSuffix:"), value) } -// The text attributes to be used in displaying positive values. [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/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/1416953-lenient?language=objc +func (n_ NumberFormatter) IsLenient() bool { + rv := objc.Call[bool](n_, objc.Sel("isLenient")) return rv } -// The text attributes to be used in displaying positive values. [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/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/1416953-lenient?language=objc +func (n_ NumberFormatter) SetLenient(value bool) { + objc.Call[objc.Void](n_, objc.Sel("setLenient:"), value) } -// The rounding behavior 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/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/1410737-positiveformat?language=objc +func (n_ NumberFormatter) PositiveFormat() string { + rv := objc.Call[string](n_, objc.Sel("positiveFormat")) return rv } -// The rounding behavior 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/1415880-roundingbehavior?language=objc -func (n_ NumberFormatter) SetRoundingBehavior(value IDecimalNumberHandler) { - objc.Call[objc.Void](n_, objc.Sel("setRoundingBehavior:"), objc.Ptr(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 string used by the receiver for a grouping separator. [Full Topic] +// The rounding mode used by the receiver. [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/1411156-roundingmode?language=objc +func (n_ NumberFormatter) RoundingMode() NumberFormatterRoundingMode { + rv := objc.Call[NumberFormatterRoundingMode](n_, objc.Sel("roundingMode")) return rv } -// The string used by the receiver for a grouping separator. [Full Topic] +// The rounding mode used by the receiver. [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/1411156-roundingmode?language=objc +func (n_ NumberFormatter) SetRoundingMode(value NumberFormatterRoundingMode) { + objc.Call[objc.Void](n_, objc.Sel("setRoundingMode:"), value) } -// The minimum number of digits after the 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/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/1408096-negativeprefix?language=objc +func (n_ NumberFormatter) NegativePrefix() string { + rv := objc.Call[string](n_, objc.Sel("negativePrefix")) return rv } -// The minimum number of digits after the 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/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/1408096-negativeprefix?language=objc +func (n_ NumberFormatter) SetNegativePrefix(value string) { + objc.Call[objc.Void](n_, objc.Sel("setNegativePrefix:"), value) } -// The receiver’s format. [Full Topic] +// The string used to represent a NaN (“not a number”) value. [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/1416993-notanumbersymbol?language=objc +func (n_ NumberFormatter) NotANumberSymbol() string { + rv := objc.Call[string](n_, objc.Sel("notANumberSymbol")) return rv } -// The receiver’s format. [Full Topic] +// The string used to represent a NaN (“not a number”) value. [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/1416993-notanumbersymbol?language=objc +func (n_ NumberFormatter) SetNotANumberSymbol(value string) { + objc.Call[objc.Void](n_, objc.Sel("setNotANumberSymbol:"), value) } -// The text attributes used to display the nil symbol. [Full Topic] +// The string the receiver uses as the prefix for positive 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/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 the nil symbol. [Full Topic] +// The string the receiver uses as the prefix for positive 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/1414204-positiveprefix?language=objc +func (n_ NumberFormatter) SetPositivePrefix(value string) { + objc.Call[objc.Void](n_, objc.Sel("setPositivePrefix:"), value) } // The minimum number of digits before the decimal separator. [Full Topic] @@ -1143,21 +1154,6 @@ 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 @@ -1173,62 +1169,62 @@ func (n_ NumberFormatter) SetMaximum(value INumber) { objc.Call[objc.Void](n_, objc.Sel("setMaximum:"), objc.Ptr(value)) } -// The padding position used by the receiver. [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/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/1408133-localizesformat?language=objc +func (n_ NumberFormatter) LocalizesFormat() bool { + rv := objc.Call[bool](n_, objc.Sel("localizesFormat")) return rv } -// The padding position used by the receiver. [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/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/1408133-localizesformat?language=objc +func (n_ NumberFormatter) SetLocalizesFormat(value bool) { + objc.Call[objc.Void](n_, objc.Sel("setLocalizesFormat:"), value) } -// The string the receiver uses as a suffix for negative values. [Full Topic] +// The attributed string that the receiver uses to display zero values. [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/1415516-attributedstringforzero?language=objc +func (n_ NumberFormatter) AttributedStringForZero() AttributedString { + rv := objc.Call[AttributedString](n_, objc.Sel("attributedStringForZero")) return rv } -// The string the receiver uses as a suffix for negative values. [Full Topic] +// The attributed string that the receiver uses to display zero values. [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/1415516-attributedstringforzero?language=objc +func (n_ NumberFormatter) SetAttributedStringForZero(value IAttributedString) { + objc.Call[objc.Void](n_, objc.Sel("setAttributedStringForZero:"), objc.Ptr(value)) } -// The text attributes to be used in displaying negative values. [Full Topic] +// Determines whether partial string validation is enabled for the receiver. [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/1412244-partialstringvalidationenabled?language=objc +func (n_ NumberFormatter) IsPartialStringValidationEnabled() bool { + rv := objc.Call[bool](n_, objc.Sel("isPartialStringValidationEnabled")) return rv } -// The text attributes to be used in displaying negative values. [Full Topic] +// Determines whether partial string validation is enabled for the receiver. [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/1412244-partialstringvalidationenabled?language=objc +func (n_ NumberFormatter) SetPartialStringValidationEnabled(value bool) { + objc.Call[objc.Void](n_, objc.Sel("setPartialStringValidationEnabled:"), value) } -// The grouping size of the receiver. [Full Topic] +// The text attributes to be used in displaying positive values. [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/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 } -// The grouping size of the receiver. [Full Topic] +// The text attributes to be used in displaying positive values. [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/1409563-textattributesforpositivevalues?language=objc +func (n_ NumberFormatter) SetTextAttributesForPositiveValues(value map[string]objc.IObject) { + objc.Call[objc.Void](n_, objc.Sel("setTextAttributesForPositiveValues:"), value) } diff --git a/macos/foundation/operation.gen.go b/macos/foundation/operation.gen.go index d0dd0896..e101d156 100644 --- a/macos/foundation/operation.gen.go +++ b/macos/foundation/operation.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package foundation @@ -18,26 +18,26 @@ type _OperationClass struct { // An interface definition for the [Operation] class. type IOperation interface { objc.IObject - RemoveDependency(op IOperation) - AddDependency(op IOperation) Main() - Start() + AddDependency(op IOperation) WaitUntilFinished() Cancel() - IsCancelled() bool + Start() + RemoveDependency(op IOperation) + CompletionBlock() func() + SetCompletionBlock(value func()) IsExecuting() bool Dependencies() []Operation - Name() string - SetName(value string) + IsAsynchronous() bool + IsCancelled() bool QualityOfService() QualityOfService SetQualityOfService(value QualityOfService) - IsConcurrent() bool + IsFinished() bool + Name() string + SetName(value string) QueuePriority() OperationQueuePriority SetQueuePriority(value OperationQueuePriority) - CompletionBlock() func() - SetCompletionBlock(value func()) - IsAsynchronous() bool - IsFinished() bool + IsConcurrent() bool IsReady() bool } @@ -59,10 +59,6 @@ func (oc _OperationClass) Alloc() Operation { return rv } -func Operation_Alloc() Operation { - return OperationClass.Alloc() -} - func (oc _OperationClass) New() Operation { rv := objc.Call[Operation](oc, objc.Sel("new")) rv.Autorelease() @@ -78,11 +74,11 @@ func (o_ Operation) Init() Operation { return rv } -// Removes the receiver’s dependence on the specified operation. [Full Topic] +// Performs the receiver’s non-concurrent 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:"), objc.Ptr(op)) +// [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")) } // Makes the receiver dependent on the completion of the specified operation. [Full Topic] @@ -92,11 +88,18 @@ func (o_ Operation) AddDependency(op IOperation) { objc.Call[objc.Void](o_, objc.Sel("addDependency:"), objc.Ptr(op)) } -// Performs the receiver’s non-concurrent task. [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/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/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] +// +// [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")) } // Begins the execution of the operation. [Full Topic] @@ -106,26 +109,26 @@ func (o_ Operation) Start() { objc.Call[objc.Void](o_, objc.Sel("start")) } -// Blocks execution of the current thread until the operation object finishes its task. [Full Topic] +// Removes the receiver’s dependence on the specified operation. [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")) +// [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:"), objc.Ptr(op)) } -// Advises the operation object that it should stop executing its task. [Full Topic] +// The block to execute after the operation’s main task is completed. [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/1408085-completionblock?language=objc +func (o_ Operation) CompletionBlock() func() { + rv := objc.Call[func()](o_, objc.Sel("completionBlock")) + return rv } -// A Boolean value indicating whether the operation has been cancelled [Full Topic] +// The block to execute after the operation’s main task is completed. [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/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 is currently executing. [Full Topic] @@ -144,19 +147,20 @@ func (o_ Operation) Dependencies() []Operation { 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/1408275-asynchronous?language=objc +func (o_ Operation) IsAsynchronous() bool { + rv := objc.Call[bool](o_, objc.Sel("isAsynchronous")) return rv } -// The name of the operation. [Full Topic] +// A Boolean value indicating whether the operation has been cancelled [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) +// [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 } // The relative amount of importance for granting system resources to the operation. [Full Topic] @@ -174,14 +178,29 @@ func (o_ Operation) SetQualityOfService(value QualityOfService) { objc.Call[objc.Void](o_, objc.Sel("setQualityOfService:"), value) } -// A Boolean value indicating whether the operation executes its task asynchronously. [Full Topic] +// A Boolean value indicating whether the operation has finished executing its task. [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/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] +// +// [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 +} + +// 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 @@ -197,34 +216,11 @@ 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/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")) +// [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 } diff --git a/macos/foundation/operation_queue.gen.go b/macos/foundation/operation_queue.gen.go index b2706c6d..681425c4 100644 --- a/macos/foundation/operation_queue.gen.go +++ b/macos/foundation/operation_queue.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package foundation @@ -20,22 +20,22 @@ type _OperationQueueClass struct { type IOperationQueue interface { objc.IObject AddOperation(op IOperation) - AddBarrierBlock(barrier func()) - WaitUntilAllOperationsAreFinished() AddOperationsWaitUntilFinished(ops []IOperation, wait bool) - AddOperationWithBlock(block func()) CancelAllOperations() - Name() string - SetName(value string) + AddBarrierBlock(barrier func()) + AddOperationWithBlock(block func()) + WaitUntilAllOperationsAreFinished() QualityOfService() QualityOfService SetQualityOfService(value QualityOfService) IsSuspended() bool SetSuspended(value bool) - UnderlyingQueue() dispatch.Queue - SetUnderlyingQueue(value dispatch.Queue) - Progress() Progress MaxConcurrentOperationCount() int SetMaxConcurrentOperationCount(value int) + Name() string + SetName(value string) + Progress() Progress + UnderlyingQueue() dispatch.Queue + SetUnderlyingQueue(value dispatch.Queue) } // A queue that regulates the execution of operations. [Full Topic] @@ -56,10 +56,6 @@ func (oc _OperationQueueClass) Alloc() OperationQueue { return rv } -func OperationQueue_Alloc() OperationQueue { - return OperationQueueClass.Alloc() -} - func (oc _OperationQueueClass) New() OperationQueue { rv := objc.Call[OperationQueue](oc, objc.Sel("new")) rv.Autorelease() @@ -82,20 +78,6 @@ func (o_ OperationQueue) AddOperation(op IOperation) { objc.Call[objc.Void](o_, objc.Sel("addOperation:"), objc.Ptr(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 @@ -103,13 +85,6 @@ 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 @@ -117,19 +92,25 @@ func (o_ OperationQueue) CancelAllOperations() { objc.Call[objc.Void](o_, objc.Sel("cancelAllOperations")) } -// The name of the operation queue. [Full Topic] +// 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/1418063-name?language=objc -func (o_ OperationQueue) Name() string { - rv := objc.Call[string](o_, objc.Sel("name")) - return rv +// [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) } -// The name of the operation queue. [Full Topic] +// Wraps the specified block in an operation and adds it to the receiver. [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) +// [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) +} + +// 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")) } // The default service level to apply to operations that the queue invokes. [Full Topic] @@ -177,29 +158,6 @@ 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 @@ -215,6 +173,21 @@ 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 @@ -229,3 +202,26 @@ 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 897c60c8..26f032ed 100644 --- a/macos/foundation/ordered_collection_change.gen.go +++ b/macos/foundation/ordered_collection_change.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package foundation @@ -19,9 +19,9 @@ type _OrderedCollectionChangeClass struct { type IOrderedCollectionChange interface { objc.IObject AssociatedIndex() uint - Object_() objc.Object - Index() uint ChangeType() CollectionChangeType + Index() uint + Object_() objc.Object } // An object that represents an indexed change within an ordered collection. [Full Topic] @@ -37,6 +37,20 @@ 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:"), objc.Ptr(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:"), objc.Ptr(anObject), type_, index, associatedIndex) return rv @@ -56,10 +70,6 @@ func (oc _OrderedCollectionChangeClass) Alloc() OrderedCollectionChange { return rv } -func OrderedCollectionChange_Alloc() OrderedCollectionChange { - return OrderedCollectionChangeClass.Alloc() -} - func (oc _OrderedCollectionChangeClass) New() OrderedCollectionChange { rv := objc.Call[OrderedCollectionChange](oc, objc.Sel("new")) rv.Autorelease() @@ -90,6 +100,21 @@ 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:"), objc.Ptr(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 @@ -98,11 +123,11 @@ func (o_ OrderedCollectionChange) AssociatedIndex() 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 } @@ -114,10 +139,10 @@ func (o_ OrderedCollectionChange) Index() 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 } diff --git a/macos/foundation/ordered_collection_difference.gen.go b/macos/foundation/ordered_collection_difference.gen.go index b43e01bc..c5f1e834 100644 --- a/macos/foundation/ordered_collection_difference.gen.go +++ b/macos/foundation/ordered_collection_difference.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package foundation @@ -19,8 +19,8 @@ type _OrderedCollectionDifferenceClass struct { type IOrderedCollectionDifference interface { objc.IObject DifferenceByTransformingChangesWithBlock(block func(arg0 OrderedCollectionChange) OrderedCollectionChange) OrderedCollectionDifference - Removals() []OrderedCollectionChange Insertions() []OrderedCollectionChange + Removals() []OrderedCollectionChange HasChanges() bool } @@ -37,6 +37,20 @@ 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:"), objc.Ptr(inserts), insertedObjects, objc.Ptr(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 @@ -84,10 +98,6 @@ func (oc _OrderedCollectionDifferenceClass) Alloc() OrderedCollectionDifference return rv } -func OrderedCollectionDifference_Alloc() OrderedCollectionDifference { - return OrderedCollectionDifferenceClass.Alloc() -} - func (oc _OrderedCollectionDifferenceClass) New() OrderedCollectionDifference { rv := objc.Call[OrderedCollectionDifference](oc, objc.Sel("new")) rv.Autorelease() @@ -111,14 +121,6 @@ func (o_ OrderedCollectionDifference) DifferenceByTransformingChangesWithBlock(b return rv } -// A collection of removal change objects. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsorderedcollectiondifference/3152189-removals?language=objc -func (o_ OrderedCollectionDifference) Removals() []OrderedCollectionChange { - rv := objc.Call[[]OrderedCollectionChange](o_, objc.Sel("removals")) - return rv -} - // A collection of insertion change objects. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/foundation/nsorderedcollectiondifference/3152188-insertions?language=objc @@ -127,6 +129,14 @@ func (o_ OrderedCollectionDifference) Insertions() []OrderedCollectionChange { return rv } +// A collection of removal change objects. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsorderedcollectiondifference/3152189-removals?language=objc +func (o_ OrderedCollectionDifference) Removals() []OrderedCollectionChange { + rv := objc.Call[[]OrderedCollectionChange](o_, objc.Sel("removals")) + 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 e25d8dc5..c63a8581 100644 --- a/macos/foundation/ordered_set.gen.go +++ b/macos/foundation/ordered_set.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package foundation @@ -18,44 +18,49 @@ type _OrderedSetClass struct { // An interface definition for the [OrderedSet] class. type IOrderedSet interface { objc.IObject - ObjectEnumerator() Enumerator + ObjectAtIndexedSubscript(idx uint) objc.Object + FilteredOrderedSetUsingPredicate(p IPredicate) OrderedSet IsEqualToOrderedSet(other IOrderedSet) bool - 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 + DescriptionWithLocale(locale objc.IObject) string 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 + SetValueForKey(value objc.IObject, key string) + IsSubsetOfOrderedSet(other IOrderedSet) bool ObjectAtIndex(idx uint) objc.Object - ObjectAtIndexedSubscript(idx uint) objc.Object - EnumerateObjectsWithOptionsUsingBlock(opts EnumerationOptions, block func(obj objc.Object, idx uint, stop *bool)) + EnumerateObjectsAtIndexesOptionsUsingBlock(s IIndexSet, opts EnumerationOptions, block func(obj objc.Object, idx uint, stop *bool)) + DescriptionWithLocaleIndent(locale objc.IObject, level uint) string GetObjectsRange(objects objc.IObject, 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 - FilteredOrderedSetUsingPredicate(p IPredicate) OrderedSet + 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) ReverseObjectEnumerator() Enumerator - 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) - 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 + 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 + RemoveObserverForKeyPath(observer objc.IObject, keyPath string) + EnumerateObjectsWithOptionsUsingBlock(opts EnumerationOptions, block func(obj objc.Object, idx uint, stop *bool)) 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 - 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 + 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 Array() []objc.Object Description() string - Count() uint + LastObject() objc.Object + Set() Set ReversedOrderedSet() OrderedSet FirstObject() objc.Object } @@ -73,56 +78,42 @@ func OrderedSetFrom(ptr unsafe.Pointer) OrderedSet { } } -func (oc _OrderedSetClass) OrderedSetWithOrderedSet(set IOrderedSet) OrderedSet { - rv := objc.Call[OrderedSet](oc, objc.Sel("orderedSetWithOrderedSet:"), objc.Ptr(set)) +func (oc _OrderedSetClass) OrderedSetWithObjectsCount(objects objc.IObject, cnt uint) OrderedSet { + rv := objc.Call[OrderedSet](oc, objc.Sel("orderedSetWithObjects:count:"), objc.Ptr(objects), cnt) return rv } -// Creates and returns an ordered set containing the objects from another ordered 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/nsorderedset/1543280-orderedsetwithorderedset?language=objc -func OrderedSet_OrderedSetWithOrderedSet(set IOrderedSet) OrderedSet { - return OrderedSetClass.OrderedSetWithOrderedSet(set) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsorderedset/1543334-orderedsetwithobjects?language=objc +func OrderedSet_OrderedSetWithObjectsCount(objects objc.IObject, cnt uint) OrderedSet { + return OrderedSetClass.OrderedSetWithObjectsCount(objects, cnt) } -func (o_ OrderedSet) InitWithObjects(firstObj objc.IObject, args ...any) OrderedSet { - rv := objc.Call[OrderedSet](o_, objc.Sel("initWithObjects:"), append([]any{objc.Ptr(firstObj)}, args...)...) +func (o_ OrderedSet) InitWithSetCopyItems(set ISet, flag bool) OrderedSet { + rv := objc.Call[OrderedSet](o_, objc.Sel("initWithSet:copyItems:"), objc.Ptr(set), flag) return rv } -// Initializes a newly allocated set with members taken from the specified list of objects. [Full Topic] +// Initializes a new ordered set with the contents of a set, optionally copying the objects in the set. [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/1411246-initwithset?language=objc +func NewOrderedSetWithSetCopyItems(set ISet, flag bool) OrderedSet { + instance := OrderedSetClass.Alloc().InitWithSetCopyItems(set, flag) instance.Autorelease() return instance } -func (oc _OrderedSetClass) OrderedSetWithObjects(firstObj objc.IObject, args ...any) OrderedSet { - rv := objc.Call[OrderedSet](oc, objc.Sel("orderedSetWithObjects:"), append([]any{objc.Ptr(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:"), objc.Ptr(set), range_, flag) +func (oc _OrderedSetClass) OrderedSetWithSetCopyItems(set ISet, flag bool) OrderedSet { + rv := objc.Call[OrderedSet](oc, objc.Sel("orderedSetWithSet:copyItems:"), objc.Ptr(set), flag) return rv } -// Initializes a new ordered set with the contents of an ordered set, optionally copying the items. [Full Topic] +// Creates and returns an ordered set with the contents of a 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 +// [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) } func (o_ OrderedSet) InitWithObject(object objc.IObject) OrderedSet { @@ -165,6 +156,37 @@ 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:"), objc.Ptr(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:"), objc.Ptr(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:"), objc.Ptr(object)) return rv @@ -177,6 +199,20 @@ 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:"), objc.Ptr(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 @@ -189,25 +225,112 @@ func OrderedSet_OrderedSet() OrderedSet { return OrderedSetClass.OrderedSet() } -func (o_ OrderedSet) InitWithSet(set ISet) OrderedSet { - rv := objc.Call[OrderedSet](o_, objc.Sel("initWithSet:"), objc.Ptr(set)) +func (oc _OrderedSetClass) OrderedSetWithOrderedSetRangeCopyItems(set IOrderedSet, range_ Range, flag bool) OrderedSet { + rv := objc.Call[OrderedSet](oc, objc.Sel("orderedSetWithOrderedSet:range:copyItems:"), objc.Ptr(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:"), objc.Ptr(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) +// [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) Init() OrderedSet { - rv := objc.Call[OrderedSet](o_, objc.Sel("init")) +func (o_ OrderedSet) InitWithOrderedSetCopyItems(set IOrderedSet, flag bool) OrderedSet { + rv := objc.Call[OrderedSet](o_, objc.Sel("initWithOrderedSet:copyItems:"), objc.Ptr(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{objc.Ptr(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...) + instance.Autorelease() + return instance +} + +func (oc _OrderedSetClass) OrderedSetWithObjects(firstObj objc.IObject, args ...any) OrderedSet { + rv := objc.Call[OrderedSet](oc, objc.Sel("orderedSetWithObjects:"), append([]any{objc.Ptr(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 (oc _OrderedSetClass) OrderedSetWithSet(set ISet) OrderedSet { rv := objc.Call[OrderedSet](oc, objc.Sel("orderedSetWithSet:"), objc.Ptr(set)) return rv @@ -220,13 +343,23 @@ func OrderedSet_OrderedSetWithSet(set ISet) OrderedSet { return OrderedSetClass.OrderedSetWithSet(set) } -func (oc _OrderedSetClass) Alloc() OrderedSet { - rv := objc.Call[OrderedSet](oc, objc.Sel("alloc")) +func (o_ OrderedSet) InitWithObjectsCount(objects objc.IObject, cnt uint) OrderedSet { + rv := objc.Call[OrderedSet](o_, objc.Sel("initWithObjects:count:"), objc.Ptr(objects), cnt) return rv } -func OrderedSet_Alloc() OrderedSet { - return OrderedSetClass.Alloc() +// 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 objc.IObject, 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 } func (oc _OrderedSetClass) New() OrderedSet { @@ -239,11 +372,19 @@ func NewOrderedSet() OrderedSet { return OrderedSetClass.New() } -// Returns an enumerator object that lets you access each object 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/1409430-objectenumerator?language=objc -func (o_ OrderedSet) ObjectEnumerator() Enumerator { - rv := objc.Call[Enumerator](o_, objc.Sel("objectEnumerator")) +// [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] +// +// [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:"), objc.Ptr(p)) return rv } @@ -255,35 +396,27 @@ func (o_ OrderedSet) IsEqualToOrderedSet(other IOrderedSet) bool { 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] +// 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/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/1417325-descriptionwithlocale?language=objc +func (o_ OrderedSet) DescriptionWithLocale(locale objc.IObject) string { + rv := objc.Call[string](o_, objc.Sel("descriptionWithLocale:"), locale) return rv } -// Returns the objects in the ordered set at the specified indexes. [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/1414943-objectsatindexes?language=objc -func (o_ OrderedSet) ObjectsAtIndexes(indexes IIndexSet) []objc.Object { - rv := objc.Call[[]objc.Object](o_, objc.Sel("objectsAtIndexes:"), objc.Ptr(indexes)) +// [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:"), objc.Ptr(difference)) 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 an array of the ordered set’s elements sorted as specified by a given array of sort descriptors. [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/1409953-sortedarrayusingdescriptors?language=objc -func (o_ OrderedSet) SortedArrayUsingDescriptors(sortDescriptors []ISortDescriptor) []objc.Object { - rv := objc.Call[[]objc.Object](o_, objc.Sel("sortedArrayUsingDescriptors:"), sortDescriptors) - 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) } // Returns a Boolean value that indicates whether every object in the receiving ordered set is also present in another given ordered set. [Full Topic] @@ -294,36 +427,34 @@ func (o_ OrderedSet) IsSubsetOfOrderedSet(other IOrderedSet) bool { return rv } -// Creates a new ordered set by applying a difference object to an existing 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/3152198-orderedsetbyapplyingdifference?language=objc -func (o_ OrderedSet) OrderedSetByApplyingDifference(difference IOrderedCollectionDifference) OrderedSet { - rv := objc.Call[OrderedSet](o_, objc.Sel("orderedSetByApplyingDifference:"), objc.Ptr(difference)) +// [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 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] +// 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/1414364-intersectsorderedset?language=objc -func (o_ OrderedSet) IntersectsOrderedSet(other IOrderedSet) bool { - rv := objc.Call[bool](o_, objc.Sel("intersectsOrderedSet:"), objc.Ptr(other)) - return rv +// [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:"), objc.Ptr(s), opts, block) } -// Compares two ordered sets to create a difference object that represents the changes between them. [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/3152195-differencefromorderedset?language=objc -func (o_ OrderedSet) DifferenceFromOrderedSet(other IOrderedSet) OrderedCollectionDifference { - rv := objc.Call[OrderedCollectionDifference](o_, objc.Sel("differenceFromOrderedSet:"), objc.Ptr(other)) +// [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) 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] +// 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/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 +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsorderedset/1411401-getobjects?language=objc +func (o_ OrderedSet) GetObjectsRange(objects objc.IObject, range_ Range) { + objc.Call[objc.Void](o_, objc.Sel("getObjects:range:"), objc.Ptr(objects), range_) } // Returns the index of the object in the ordered set that passes a test in a given block. [Full Topic] @@ -334,44 +465,53 @@ func (o_ OrderedSet) IndexOfObjectPassingTest(predicate func(obj objc.Object, id return rv } -// Returns the object at the specified index of the 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/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/1408681-containsobject?language=objc +func (o_ OrderedSet) ContainsObject(object objc.IObject) bool { + rv := objc.Call[bool](o_, objc.Sel("containsObject:"), objc.Ptr(object)) return rv } -// Returns the object at the specified index of the set. [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/1414253-objectatindexedsubscript?language=objc -func (o_ OrderedSet) ObjectAtIndexedSubscript(idx uint) objc.Object { - rv := objc.Call[objc.Object](o_, objc.Sel("objectAtIndexedSubscript:"), idx) +// [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:"), objc.Ptr(s), opts, predicate) return rv } -// Executes a given block using each object in the set, using the specified enumeration options. [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/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/1418464-issubsetofset?language=objc +func (o_ OrderedSet) IsSubsetOfSet(set ISet) bool { + rv := objc.Call[bool](o_, objc.Sel("isSubsetOfSet:"), objc.Ptr(set)) + return rv } -// Copies the objects contained in the ordered set that fall within the specified range to objects. [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/1411401-getobjects?language=objc -func (o_ OrderedSet) GetObjectsRange(objects objc.IObject, range_ Range) { - objc.Call[objc.Void](o_, objc.Sel("getObjects:range:"), objc.Ptr(objects), range_) +// [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 } -// Returns a Boolean value that indicates whether a given object is present in the ordered set. [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/1408681-containsobject?language=objc -func (o_ OrderedSet) ContainsObject(object objc.IObject) bool { - rv := objc.Call[bool](o_, objc.Sel("containsObject:"), objc.Ptr(object)) +// [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:"), objc.Ptr(other)) 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 @@ -380,14 +520,53 @@ func (o_ OrderedSet) IntersectsSet(set ISet) bool { 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] +// 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/1415807-filteredorderedsetusingpredicate?language=objc -func (o_ OrderedSet) FilteredOrderedSetUsingPredicate(p IPredicate) OrderedSet { - rv := objc.Call[OrderedSet](o_, objc.Sel("filteredOrderedSetUsingPredicate:"), objc.Ptr(p)) +// [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:"), objc.Ptr(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:"), objc.Ptr(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:"), objc.Ptr(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:"), objc.Ptr(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] +// +// [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 +} + +// 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:"), objc.Ptr(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 @@ -396,58 +575,58 @@ func (o_ OrderedSet) ReverseObjectEnumerator() Enumerator { 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] +// Returns the index of the specified object. [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:"), objc.Ptr(set)) +// [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:"), objc.Ptr(object)) 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 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/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:"), objc.Ptr(s), opts, predicate) +// [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 } -// Raises an exception. [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/1412955-removeobserver?language=objc -func (o_ OrderedSet) RemoveObserverForKeyPath(observer objc.IObject, keyPath string) { - objc.Call[objc.Void](o_, objc.Sel("removeObserver:forKeyPath:"), objc.Ptr(observer), keyPath) +// [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 } -// Returns a string that represents the contents of the ordered set, formatted as a property list. [Full Topic] +// Returns the objects in the ordered set at the specified indexes. [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/1414943-objectsatindexes?language=objc +func (o_ OrderedSet) ObjectsAtIndexes(indexes IIndexSet) []objc.Object { + rv := objc.Call[[]objc.Object](o_, objc.Sel("objectsAtIndexes:"), objc.Ptr(indexes)) return rv } -// Invokes setValue:forKey: on each of the receiver's members using the specified value and key [Full Topic] +// Compares two ordered sets, using the provided block and with options, to create a difference object that represents the changes between them. [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/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:"), objc.Ptr(other), options, block) + return rv } -// Returns the index of the object in the ordered set that passes a test in a given block. [Full Topic] +// Raises an exception. [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) - 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:"), objc.Ptr(observer), keyPath) } -// Returns the index of the specified object. [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/1411856-indexofobject?language=objc -func (o_ OrderedSet) IndexOfObject(object objc.IObject) uint { - rv := objc.Call[uint](o_, objc.Sel("indexOfObject:"), objc.Ptr(object)) - 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) } // Raises an exception. [Full Topic] @@ -465,13 +644,6 @@ 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:"), objc.Ptr(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 @@ -480,35 +652,27 @@ func (o_ OrderedSet) ValueForKey(key string) objc.Object { 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:"), objc.Ptr(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] +// 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/1413383-sortedarrayusingcomparator?language=objc -func (o_ OrderedSet) SortedArrayUsingComparator(cmptr Comparator) []objc.Object { - rv := objc.Call[[]objc.Object](o_, objc.Sel("sortedArrayUsingComparator:"), cmptr) +// [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 } -// A representation of the set containing the contents of the ordered set. [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/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/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 } -// The last object in the ordered set. [Full Topic] +// The number of members in the 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")) +// [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 } @@ -528,11 +692,19 @@ func (o_ OrderedSet) Description() string { return rv } -// The number of members in the set. [Full Topic] +// The last object in 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/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] +// +// [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 } diff --git a/macos/foundation/orthography.gen.go b/macos/foundation/orthography.gen.go index 1cc8a7d2..bb4beccb 100644 --- a/macos/foundation/orthography.gen.go +++ b/macos/foundation/orthography.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package foundation @@ -18,12 +18,12 @@ type _OrthographyClass struct { // An interface definition for the [Orthography] class. type IOrthography interface { objc.IObject - LanguagesForScript(script string) []string DominantLanguageForScript(script string) string - AllLanguages() []string + LanguagesForScript(script string) []string DominantScript() string AllScripts() []string DominantLanguage() string + AllLanguages() []string LanguageMap() map[string][]string } @@ -83,10 +83,6 @@ func (oc _OrthographyClass) Alloc() Orthography { return rv } -func Orthography_Alloc() Orthography { - return OrthographyClass.Alloc() -} - func (oc _OrthographyClass) New() Orthography { rv := objc.Call[Orthography](oc, objc.Sel("new")) rv.Autorelease() @@ -102,14 +98,6 @@ 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 @@ -118,11 +106,11 @@ func (o_ Orthography) DominantLanguageForScript(script string) string { return rv } -// The languages appearing in values of the language map. [Full Topic] +// Returns the list of languages for the specified script. [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")) +// [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 } @@ -150,6 +138,14 @@ 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 cacc7b7d..5fd48029 100644 --- a/macos/foundation/output_stream.gen.go +++ b/macos/foundation/output_stream.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package foundation @@ -35,30 +35,42 @@ func OutputStreamFrom(ptr unsafe.Pointer) OutputStream { } } -func (o_ OutputStream) InitWithURLAppend(url IURL, shouldAppend bool) OutputStream { - rv := objc.Call[OutputStream](o_, objc.Sel("initWithURL:append:"), objc.Ptr(url), shouldAppend) +func (oc _OutputStreamClass) OutputStreamToFileAtPathAppend(path string, shouldAppend bool) OutputStream { + rv := objc.Call[OutputStream](oc, objc.Sel("outputStreamToFileAtPath:append:"), path, shouldAppend) return rv } -// Returns an initialized output stream for writing to a specified URL. [Full Topic] +// Creates and 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/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) + return rv +} + +// Returns an initialized output stream for writing to a specified file. [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) instance.Autorelease() return instance } -func (o_ OutputStream) InitToBufferCapacity(buffer *uint8, capacity uint) OutputStream { - rv := objc.Call[OutputStream](o_, objc.Sel("initToBuffer:capacity:"), buffer, capacity) +func (o_ OutputStream) InitToMemory() OutputStream { + rv := objc.Call[OutputStream](o_, objc.Sel("initToMemory")) return rv } -// Returns an initialized output stream that can write to a provided buffer. [Full Topic] +// Returns an initialized output stream that will write to memory. [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) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsoutputstream/1409909-inittomemory?language=objc +func NewOutputStreamToMemory() OutputStream { + instance := OutputStreamClass.Alloc().InitToMemory() instance.Autorelease() return instance } @@ -75,68 +87,56 @@ func OutputStream_OutputStreamWithURLAppend(url IURL, shouldAppend bool) OutputS return OutputStreamClass.OutputStreamWithURLAppend(url, shouldAppend) } -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 (o_ OutputStream) InitToFileAtPathAppend(path string, shouldAppend bool) OutputStream { - rv := objc.Call[OutputStream](o_, objc.Sel("initToFileAtPath:append:"), path, shouldAppend) +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 for writing to a specified file. [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/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/1410805-inittobuffer?language=objc +func NewOutputStreamToBufferCapacity(buffer *uint8, capacity uint) OutputStream { + instance := OutputStreamClass.Alloc().InitToBufferCapacity(buffer, capacity) instance.Autorelease() return instance } -func (oc _OutputStreamClass) OutputStreamToMemory() OutputStream { - rv := objc.Call[OutputStream](oc, objc.Sel("outputStreamToMemory")) +func (o_ OutputStream) InitWithURLAppend(url IURL, shouldAppend bool) OutputStream { + rv := objc.Call[OutputStream](o_, objc.Sel("initWithURL:append:"), objc.Ptr(url), shouldAppend) return rv } -// Creates and returns an initialized output stream that will write stream data to memory. [Full Topic] +// Returns an initialized output stream for writing to a specified URL. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsoutputstream/1411948-outputstreamtomemory?language=objc -func OutputStream_OutputStreamToMemory() OutputStream { - return OutputStreamClass.OutputStreamToMemory() +// [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 (oc _OutputStreamClass) OutputStreamToFileAtPathAppend(path string, shouldAppend bool) OutputStream { - rv := objc.Call[OutputStream](oc, objc.Sel("outputStreamToFileAtPath:append:"), path, shouldAppend) +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 for writing to a specified file. [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/1564841-outputstreamtofileatpath?language=objc -func OutputStream_OutputStreamToFileAtPathAppend(path string, shouldAppend bool) OutputStream { - return OutputStreamClass.OutputStreamToFileAtPathAppend(path, shouldAppend) +// [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) InitToMemory() OutputStream { - rv := objc.Call[OutputStream](o_, objc.Sel("initToMemory")) +func (oc _OutputStreamClass) OutputStreamToMemory() OutputStream { + rv := objc.Call[OutputStream](oc, objc.Sel("outputStreamToMemory")) return rv } -// Returns an initialized output stream that will write to memory. [Full Topic] +// Creates and returns an initialized output stream that will write stream data 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 +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsoutputstream/1411948-outputstreamtomemory?language=objc +func OutputStream_OutputStreamToMemory() OutputStream { + return OutputStreamClass.OutputStreamToMemory() } func (oc _OutputStreamClass) Alloc() OutputStream { @@ -144,10 +144,6 @@ func (oc _OutputStreamClass) Alloc() OutputStream { return rv } -func OutputStream_Alloc() OutputStream { - return OutputStreamClass.Alloc() -} - func (oc _OutputStreamClass) New() OutputStream { rv := objc.Call[OutputStream](oc, objc.Sel("new")) rv.Autorelease() diff --git a/macos/foundation/person_name_components.gen.go b/macos/foundation/person_name_components.gen.go index 08bb56e0..184058c7 100644 --- a/macos/foundation/person_name_components.gen.go +++ b/macos/foundation/person_name_components.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package foundation @@ -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] @@ -52,10 +52,6 @@ func (pc _PersonNameComponentsClass) Alloc() PersonNameComponents { return rv } -func PersonNameComponents_Alloc() PersonNameComponents { - return PersonNameComponentsClass.Alloc() -} - func (pc _PersonNameComponentsClass) New() PersonNameComponents { rv := objc.Call[PersonNameComponents](pc, objc.Sel("new")) rv.Autorelease() @@ -71,6 +67,21 @@ 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 @@ -86,21 +97,6 @@ func (p_ PersonNameComponents) SetPhoneticRepresentation(value IPersonNameCompon objc.Call[objc.Void](p_, objc.Sel("setPhoneticRepresentation:"), objc.Ptr(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 @@ -116,21 +112,6 @@ 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 @@ -175,3 +156,18 @@ 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 76d80b78..c6a8604a 100644 --- a/macos/foundation/person_name_components_formatter.gen.go +++ b/macos/foundation/person_name_components_formatter.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package foundation @@ -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 - Style() PersonNameComponentsFormatterStyle - SetStyle(value PersonNameComponentsFormatterStyle) + AnnotatedStringFromPersonNameComponents(components IPersonNameComponents) AttributedString Locale() Locale SetLocale(value ILocale) + Style() PersonNameComponentsFormatterStyle + SetStyle(value PersonNameComponentsFormatterStyle) IsPhonetic() bool SetPhonetic(value bool) } @@ -47,10 +47,6 @@ func (pc _PersonNameComponentsFormatterClass) Alloc() PersonNameComponentsFormat return rv } -func PersonNameComponentsFormatter_Alloc() PersonNameComponentsFormatter { - return PersonNameComponentsFormatterClass.Alloc() -} - func (pc _PersonNameComponentsFormatterClass) New() PersonNameComponentsFormatter { rv := objc.Call[PersonNameComponentsFormatter](pc, objc.Sel("new")) rv.Autorelease() @@ -66,14 +62,6 @@ 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:"), objc.Ptr(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 @@ -105,21 +93,14 @@ func (p_ PersonNameComponentsFormatter) PersonNameComponentsFromString(string_ s return rv } -// The formatting style of the receiver. [Full Topic] +// 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/1408260-style?language=objc -func (p_ PersonNameComponentsFormatter) Style() PersonNameComponentsFormatterStyle { - rv := objc.Call[PersonNameComponentsFormatterStyle](p_, objc.Sel("style")) +// [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:"), objc.Ptr(components)) 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 @@ -135,6 +116,21 @@ func (p_ PersonNameComponentsFormatter) SetLocale(value ILocale) { objc.Call[objc.Void](p_, objc.Sel("setLocale:"), objc.Ptr(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/pipe.gen.go b/macos/foundation/pipe.gen.go index 6f936089..c1055a24 100644 --- a/macos/foundation/pipe.gen.go +++ b/macos/foundation/pipe.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package foundation @@ -40,10 +40,6 @@ func (pc _PipeClass) Alloc() Pipe { return rv } -func Pipe_Alloc() Pipe { - return PipeClass.Alloc() -} - func (pc _PipeClass) New() Pipe { rv := objc.Call[Pipe](pc, objc.Sel("new")) rv.Autorelease() diff --git a/macos/foundation/pointer_array.gen.go b/macos/foundation/pointer_array.gen.go index 41bc36fa..15e993fc 100644 --- a/macos/foundation/pointer_array.gen.go +++ b/macos/foundation/pointer_array.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package foundation @@ -18,12 +18,12 @@ type _PointerArrayClass struct { // An interface definition for the [PointerArray] class. type IPointerArray interface { objc.IObject - RemovePointerAtIndex(index uint) + AddPointer(pointer unsafe.Pointer) + ReplacePointerAtIndexWithPointer(index uint, item unsafe.Pointer) PointerAtIndex(index uint) unsafe.Pointer - Compact() InsertPointerAtIndex(item unsafe.Pointer, index uint) - ReplacePointerAtIndexWithPointer(index uint, item unsafe.Pointer) - AddPointer(pointer unsafe.Pointer) + RemovePointerAtIndex(index uint) + Compact() PointerFunctions() PointerFunctions Count() uint SetCount(value uint) @@ -76,10 +76,6 @@ func (pc _PointerArrayClass) Alloc() PointerArray { return rv } -func PointerArray_Alloc() PointerArray { - return PointerArrayClass.Alloc() -} - func (pc _PointerArrayClass) New() PointerArray { rv := objc.Call[PointerArray](pc, objc.Sel("new")) rv.Autorelease() @@ -95,11 +91,18 @@ func (p_ PointerArray) Init() PointerArray { return rv } -// Removes the pointer at a given index. [Full Topic] +// Adds a given pointer to the receiver. [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/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] +// +// [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 initialized to use the given options. [Full Topic] @@ -125,13 +128,6 @@ 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 @@ -154,11 +150,11 @@ func (p_ PointerArray) InsertPointerAtIndex(item unsafe.Pointer, index uint) { objc.Call[objc.Void](p_, objc.Sel("insertPointer:atIndex:"), item, index) } -// 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 that maintains weak references to its elements. [Full Topic] @@ -191,11 +187,11 @@ func PointerArray_StrongObjectsPointerArray() PointerArray { return PointerArrayClass.StrongObjectsPointerArray() } -// Adds a given pointer to the receiver. [Full Topic] +// Removes NULL values from 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) +// [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")) } // 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 58f2bcda..62a4a188 100644 --- a/macos/foundation/pointer_functions.gen.go +++ b/macos/foundation/pointer_functions.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package foundation @@ -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) - 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) + 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) } // An instance of NSPointerFunctions defines callout functions appropriate for managing a pointer reference held somewhere else. [Full Topic] @@ -64,10 +64,6 @@ func (pc _PointerFunctionsClass) Alloc() PointerFunctions { return rv } -func PointerFunctions_Alloc() PointerFunctions { - return PointerFunctionsClass.Alloc() -} - func (pc _PointerFunctionsClass) New() PointerFunctions { rv := objc.Call[PointerFunctions](pc, objc.Sel("new")) rv.Autorelease() @@ -98,6 +94,21 @@ 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 @@ -113,6 +124,21 @@ 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 @@ -128,21 +154,6 @@ 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 @@ -158,32 +169,17 @@ func (p_ PointerFunctions) SetSizeFunction(value func(item unsafe.Pointer) uint) objc.Call[objc.Void](p_, objc.Sel("setSizeFunction:"), value) } -// 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 acquire memory. [Full Topic] +// The hash function. [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")) +// [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 function used to acquire memory. [Full Topic] +// The hash function. [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) +// [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) } diff --git a/macos/foundation/port.gen.go b/macos/foundation/port.gen.go index d5215c02..554741e7 100644 --- a/macos/foundation/port.gen.go +++ b/macos/foundation/port.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package foundation @@ -18,12 +18,13 @@ type _PortClass struct { // An interface definition for the [Port] class. type IPort interface { objc.IObject - ScheduleInRunLoopForMode(runLoop IRunLoop, mode RunLoopMode) - RemoveFromRunLoopForMode(runLoop IRunLoop, mode RunLoopMode) + Delegate() PortDelegateObject SetDelegate(anObject PPortDelegate) SetDelegateObject(anObjectObject objc.IObject) + ScheduleInRunLoopForMode(runLoop IRunLoop, mode RunLoopMode) + RemoveFromRunLoopForMode(runLoop IRunLoop, mode RunLoopMode) SendBeforeDateComponentsFromReserved(limitDate IDate, components IMutableArray, receivePort IPort, headerSpaceReserved uint) bool - Delegate() PortDelegateWrapper + SendBeforeDateMsgidComponentsFromReserved(limitDate IDate, msgID uint, components IMutableArray, receivePort IPort, headerSpaceReserved uint) bool Invalidate() IsValid() bool ReservedSpaceLength() uint @@ -47,10 +48,6 @@ func (pc _PortClass) Alloc() Port { return rv } -func Port_Alloc() Port { - return PortClass.Alloc() -} - func (pc _PortClass) New() Port { rv := objc.Call[Port](pc, objc.Sel("new")) rv.Autorelease() @@ -66,18 +63,12 @@ func (p_ Port) Init() Port { return rv } -// 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:"), objc.Ptr(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] +// Returns the receiver’s delegate. [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:"), objc.Ptr(runLoop), mode) +// [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 } // Sets the receiver’s delegate to a given object. [Full Topic] @@ -95,6 +86,20 @@ func (p_ Port) SetDelegateObject(anObjectObject objc.IObject) { objc.Call[objc.Void](p_, objc.Sel("setDelegate:"), objc.Ptr(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:"), objc.Ptr(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:"), objc.Ptr(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 @@ -103,11 +108,11 @@ func (p_ Port) SendBeforeDateComponentsFromReserved(limitDate IDate, components return rv } -// Returns the receiver’s delegate. [Full Topic] +// This method is provided for subclasses that have custom types of NSPort. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsport/1399545-delegate?language=objc -func (p_ Port) Delegate() PortDelegateWrapper { - rv := objc.Call[PortDelegateWrapper](p_, objc.Sel("delegate")) +// [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:"), objc.Ptr(limitDate), msgID, objc.Ptr(components), objc.Ptr(receivePort), headerSpaceReserved) return rv } diff --git a/macos/foundation/port_coder.gen.go b/macos/foundation/port_coder.gen.go index 87838e65..4c17275f 100644 --- a/macos/foundation/port_coder.gen.go +++ b/macos/foundation/port_coder.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package foundation @@ -38,10 +38,6 @@ func (pc _PortCoderClass) Alloc() PortCoder { return rv } -func PortCoder_Alloc() PortCoder { - return PortCoderClass.Alloc() -} - func (pc _PortCoderClass) New() PortCoder { rv := objc.Call[PortCoder](pc, objc.Sel("new")) rv.Autorelease() diff --git a/macos/foundation/port_delegate.gen.go b/macos/foundation/port_delegate.gen.go index 1b5fd1f6..08f694d9 100644 --- a/macos/foundation/port_delegate.gen.go +++ b/macos/foundation/port_delegate.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package foundation @@ -38,18 +38,21 @@ func (di *PortDelegate) HandlePortMessage(message PortMessage) { di._HandlePortMessage(message) } -// A concrete type wrapper for the [PPortDelegate] protocol. -type PortDelegateWrapper struct { +// ensure impl type implements protocol interface +var _ PPortDelegate = (*PortDelegateObject)(nil) + +// A concrete type for the [PPortDelegate] protocol. +type PortDelegateObject struct { objc.Object } -func (p_ PortDelegateWrapper) HasHandlePortMessage() bool { +func (p_ PortDelegateObject) HasHandlePortMessage() bool { return p_.RespondsToSelector(objc.Sel("handlePortMessage:")) } // Processes a given incoming message on the port. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/foundation/nsportdelegate/1399513-handleportmessage?language=objc -func (p_ PortDelegateWrapper) HandlePortMessage(message IPortMessage) { +func (p_ PortDelegateObject) HandlePortMessage(message PortMessage) { objc.Call[objc.Void](p_, objc.Sel("handlePortMessage:"), objc.Ptr(message)) } diff --git a/macos/foundation/port_message.gen.go b/macos/foundation/port_message.gen.go index 566846fd..4359bc9d 100644 --- a/macos/foundation/port_message.gen.go +++ b/macos/foundation/port_message.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package foundation @@ -19,11 +19,11 @@ type _PortMessageClass struct { type IPortMessage interface { objc.IObject SendBeforeDate(date IDate) bool - Components() []objc.Object + ReceivePort() Port SendPort() Port + Components() []objc.Object Msgid() uint32 SetMsgid(value uint32) - ReceivePort() Port } // A low-level, operating system-independent type for inter-application (and inter-thread) messages. [Full Topic] @@ -58,10 +58,6 @@ func (pc _PortMessageClass) Alloc() PortMessage { return rv } -func PortMessage_Alloc() PortMessage { - return PortMessageClass.Alloc() -} - func (pc _PortMessageClass) New() PortMessage { rv := objc.Call[PortMessage](pc, objc.Sel("new")) rv.Autorelease() @@ -85,11 +81,11 @@ func (p_ PortMessage) SendBeforeDate(date IDate) bool { return rv } -// Returns the data components of the receiver. [Full Topic] +// 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/1407377-components?language=objc -func (p_ PortMessage) Components() []objc.Object { - rv := objc.Call[[]objc.Object](p_, objc.Sel("components")) +// [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 } @@ -101,6 +97,14 @@ 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 @@ -115,11 +119,3 @@ 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/port_name_server.gen.go b/macos/foundation/port_name_server.gen.go index 48abb247..5382cae5 100644 --- a/macos/foundation/port_name_server.gen.go +++ b/macos/foundation/port_name_server.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package foundation @@ -38,10 +38,6 @@ func (pc _PortNameServerClass) Alloc() PortNameServer { return rv } -func PortNameServer_Alloc() PortNameServer { - return PortNameServerClass.Alloc() -} - func (pc _PortNameServerClass) New() PortNameServer { rv := objc.Call[PortNameServer](pc, objc.Sel("new")) rv.Autorelease() diff --git a/macos/foundation/positional_specifier.gen.go b/macos/foundation/positional_specifier.gen.go index dc683882..c90e55bf 100644 --- a/macos/foundation/positional_specifier.gen.go +++ b/macos/foundation/positional_specifier.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package foundation @@ -18,14 +18,14 @@ type _PositionalSpecifierClass struct { // An interface definition for the [PositionalSpecifier] class. type IPositionalSpecifier interface { objc.IObject - SetInsertionClassDescription(classDescription IScriptClassDescription) Evaluate() + SetInsertionClassDescription(classDescription IScriptClassDescription) ObjectSpecifier() ScriptObjectSpecifier InsertionContainer() objc.Object - InsertionIndex() int - Position() InsertionPosition InsertionReplaces() bool InsertionKey() string + InsertionIndex() int + Position() InsertionPosition } // A specifier for an insertion point in a container relative to another object in the container. [Full Topic] @@ -60,10 +60,6 @@ func (pc _PositionalSpecifierClass) Alloc() PositionalSpecifier { return rv } -func PositionalSpecifier_Alloc() PositionalSpecifier { - return PositionalSpecifierClass.Alloc() -} - func (pc _PositionalSpecifierClass) New() PositionalSpecifier { rv := objc.Call[PositionalSpecifier](pc, objc.Sel("new")) rv.Autorelease() @@ -79,13 +75,6 @@ func (p_ PositionalSpecifier) Init() PositionalSpecifier { return rv } -// 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 -func (p_ PositionalSpecifier) SetInsertionClassDescription(classDescription IScriptClassDescription) { - objc.Call[objc.Void](p_, objc.Sel("setInsertionClassDescription:"), objc.Ptr(classDescription)) -} - // Causes the receiver to evaluate its position. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/foundation/nspositionalspecifier/1417035-evaluate?language=objc @@ -93,6 +82,13 @@ 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 +func (p_ PositionalSpecifier) SetInsertionClassDescription(classDescription IScriptClassDescription) { + objc.Call[objc.Void](p_, objc.Sel("setInsertionClassDescription:"), objc.Ptr(classDescription)) +} + // Returns the object specifier specified at initialization time. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/foundation/nspositionalspecifier/1412839-objectspecifier?language=objc @@ -109,22 +105,6 @@ func (p_ PositionalSpecifier) InsertionContainer() objc.Object { 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 -func (p_ PositionalSpecifier) InsertionIndex() int { - rv := objc.Call[int](p_, objc.Sel("insertionIndex")) - return rv -} - -// Returns the insertion position specified at initialization time. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/foundation/nspositionalspecifier/1413865-position?language=objc -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 @@ -140,3 +120,19 @@ 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 +func (p_ PositionalSpecifier) InsertionIndex() int { + rv := objc.Call[int](p_, objc.Sel("insertionIndex")) + return rv +} + +// Returns the insertion position specified at initialization time. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/foundation/nspositionalspecifier/1413865-position?language=objc +func (p_ PositionalSpecifier) Position() InsertionPosition { + rv := objc.Call[InsertionPosition](p_, objc.Sel("position")) + return rv +} diff --git a/macos/foundation/predicate.gen.go b/macos/foundation/predicate.gen.go index 5b831b61..940f7e63 100644 --- a/macos/foundation/predicate.gen.go +++ b/macos/foundation/predicate.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package foundation @@ -18,8 +18,9 @@ type _PredicateClass struct { // An interface definition for the [Predicate] class. type IPredicate interface { objc.IObject - AllowEvaluation() EvaluateWithObject(object objc.IObject) bool + AllowEvaluation() + EvaluateWithObjectSubstitutionVariables(object objc.IObject, bindings map[string]objc.IObject) bool PredicateFormat() string } @@ -55,10 +56,6 @@ func (pc _PredicateClass) Alloc() Predicate { return rv } -func Predicate_Alloc() Predicate { - return PredicateClass.Alloc() -} - func (pc _PredicateClass) New() Predicate { rv := objc.Call[Predicate](pc, objc.Sel("new")) rv.Autorelease() @@ -74,6 +71,29 @@ 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 @@ -89,11 +109,19 @@ func Predicate_PredicateWithBlock(block func(evaluatedObject objc.Object, bindin return PredicateClass.PredicateWithBlock(block) } -// Forces a securely decoded predicate to allow evaluation. [Full Topic] +// Creates a predicate with a metadata query string. [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")) +// [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] +// +// [Full Topic]: https://developer.apple.com/documentation/foundation/nspredicate/1417831-predicatefrommetadataquerystring?language=objc +func Predicate_PredicateFromMetadataQueryString(queryString string) Predicate { + return PredicateClass.PredicateFromMetadataQueryString(queryString) } // Creates and returns a predicate that always evaluates to a specified Boolean value. [Full Topic] @@ -111,27 +139,34 @@ func Predicate_PredicateWithValue(value bool) Predicate { return PredicateClass.PredicateWithValue(value) } -// Returns a Boolean value that indicates whether the specified object matches the conditions that the predicate specifies. [Full Topic] +// Forces a securely decoded predicate to allow evaluation. [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) +// [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] +// +// [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) return rv } -// Creates a predicate with a metadata query string. [Full Topic] +// Creates a predicate by substituting the values in a specified array into a format string and parsing the result. [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) +// [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) return rv } -// Creates a predicate with a metadata query string. [Full Topic] +// Creates a predicate by substituting the values in a specified array into a format string and parsing the result. [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/1410334-predicatewithformat?language=objc +func Predicate_PredicateWithFormatArgumentArray(predicateFormat string, arguments []objc.IObject) Predicate { + return PredicateClass.PredicateWithFormatArgumentArray(predicateFormat, arguments) } // The predicate's format string. [Full Topic] diff --git a/macos/foundation/presentation_intent.gen.go b/macos/foundation/presentation_intent.gen.go index cdc3a0e6..4d2db421 100644 --- a/macos/foundation/presentation_intent.gen.go +++ b/macos/foundation/presentation_intent.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package foundation @@ -19,17 +19,17 @@ type _PresentationIntentClass struct { type IPresentationIntent interface { objc.IObject IsEquivalentToPresentationIntent(other IPresentationIntent) bool - IntentKind() PresentationIntentKind - Ordinal() int + LanguageHint() string + Row() int IndentationLevel() int ColumnCount() int - Column() int + IntentKind() PresentationIntentKind + ColumnAlignments() []Number 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] @@ -50,10 +50,6 @@ func (pc _PresentationIntentClass) Alloc() PresentationIntent { return rv } -func PresentationIntent_Alloc() PresentationIntent { - return PresentationIntentClass.Alloc() -} - func (pc _PresentationIntentClass) New() PresentationIntent { rv := objc.Call[PresentationIntent](pc, objc.Sel("new")) rv.Autorelease() @@ -71,32 +67,47 @@ func (p_ PresentationIntent) Init() PresentationIntent { // [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, objc.Ptr(parent)) +// [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, objc.Ptr(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/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/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, objc.Ptr(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, objc.Ptr(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/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/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, objc.Ptr(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] @@ -116,47 +127,47 @@ func PresentationIntent_CodeBlockIntentWithIdentityLanguageHintNestedInsideInten // [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, objc.Ptr(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, objc.Ptr(parent)) 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]: 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] // -// [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, objc.Ptr(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, objc.Ptr(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/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/3793757-thematicbreakintentwithidentity?language=objc -func (pc _PresentationIntentClass) ThematicBreakIntentWithIdentityNestedInsideIntent(identity int, parent IPresentationIntent) PresentationIntent { - rv := objc.Call[PresentationIntent](pc, objc.Sel("thematicBreakIntentWithIdentity:nestedInsideIntent:"), identity, objc.Ptr(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, objc.Ptr(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/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] @@ -176,40 +187,47 @@ func PresentationIntent_ParagraphIntentWithIdentityNestedInsideIntent(identity i // [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, objc.Ptr(parent)) +// [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, objc.Ptr(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/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/3793745-isequivalenttopresentationintent?language=objc -func (p_ PresentationIntent) IsEquivalentToPresentationIntent(other IPresentationIntent) bool { - rv := objc.Call[bool](p_, objc.Sel("isEquivalentToPresentationIntent:"), objc.Ptr(other)) +// [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, objc.Ptr(parent)) return rv } // [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, objc.Ptr(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/3793757-thematicbreakintentwithidentity?language=objc +func (pc _PresentationIntentClass) ThematicBreakIntentWithIdentityNestedInsideIntent(identity int, parent IPresentationIntent) PresentationIntent { + rv := objc.Call[PresentationIntent](pc, objc.Sel("thematicBreakIntentWithIdentity:nestedInsideIntent:"), identity, objc.Ptr(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/3793757-thematicbreakintentwithidentity?language=objc +func PresentationIntent_ThematicBreakIntentWithIdentityNestedInsideIntent(identity int, parent IPresentationIntent) PresentationIntent { + return PresentationIntentClass.ThematicBreakIntentWithIdentityNestedInsideIntent(identity, parent) } // [Full Topic] @@ -229,47 +247,25 @@ func PresentationIntent_TableRowIntentWithIdentityRowNestedInsideIntent(identity // [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, objc.Ptr(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] -// -// [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, objc.Ptr(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:"), objc.Ptr(other)) 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/3793744-intentkind?language=objc -func (p_ PresentationIntent) IntentKind() PresentationIntentKind { - rv := objc.Call[PresentationIntentKind](p_, objc.Sel("intentKind")) +// [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/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/3793752-row?language=objc +func (p_ PresentationIntent) Row() int { + rv := objc.Call[int](p_, objc.Sel("row")) return rv } @@ -291,9 +287,17 @@ func (p_ PresentationIntent) ColumnCount() int { // [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/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")) return rv } @@ -315,32 +319,24 @@ func (p_ PresentationIntent) Identity() int { // [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")) - 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/3793751-parentintent?language=objc +func (p_ PresentationIntent) ParentIntent() PresentationIntent { + rv := objc.Call[PresentationIntent](p_, objc.Sel("parentIntent")) 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/3793749-ordinal?language=objc +func (p_ PresentationIntent) Ordinal() int { + rv := objc.Call[int](p_, objc.Sel("ordinal")) 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")) +// [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 } diff --git a/macos/foundation/process_info.gen.go b/macos/foundation/process_info.gen.go index b32825fe..b0b8f38d 100644 --- a/macos/foundation/process_info.gen.go +++ b/macos/foundation/process_info.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package foundation @@ -18,35 +18,35 @@ type _ProcessInfoClass struct { // An interface definition for the [ProcessInfo] class. type IProcessInfo interface { objc.IObject - EndActivity(activity objc.IObject) - BeginActivityWithOptionsReason(options ActivityOptions, reason string) objc.Object + EnableSuddenTermination() + DisableSuddenTermination() DisableAutomaticTermination(reason string) - IsOperatingSystemAtLeastVersion(version OperatingSystemVersion) bool + EndActivity(activity objc.IObject) EnableAutomaticTermination(reason string) + IsOperatingSystemAtLeastVersion(version OperatingSystemVersion) bool + BeginActivityWithOptionsReason(options ActivityOptions, reason string) objc.Object PerformActivityWithOptionsReasonUsingBlock(options ActivityOptions, reason string, block func()) - EnableSuddenTermination() - DisableSuddenTermination() + UserName() string + OperatingSystemVersion() OperatingSystemVersion 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] @@ -67,10 +67,6 @@ func (pc _ProcessInfoClass) Alloc() ProcessInfo { return rv } -func ProcessInfo_Alloc() ProcessInfo { - return ProcessInfoClass.Alloc() -} - func (pc _ProcessInfoClass) New() ProcessInfo { rv := objc.Call[ProcessInfo](pc, objc.Sel("new")) rv.Autorelease() @@ -86,19 +82,18 @@ func (p_ ProcessInfo) Init() ProcessInfo { return rv } -// Ends the given activity. [Full Topic] +// Enables the application for quick killing using sudden termination. [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) +// [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")) } -// Begin an activity using the given options and reason. [Full Topic] +// Disables the application for quickly killing using sudden termination. [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/1412841-disablesuddentermination?language=objc +func (p_ ProcessInfo) DisableSuddenTermination() { + objc.Call[objc.Void](p_, objc.Sel("disableSuddenTermination")) } // Disables automatic termination for the application. [Full Topic] @@ -108,6 +103,20 @@ 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 @@ -116,11 +125,12 @@ func (p_ ProcessInfo) IsOperatingSystemAtLeastVersion(version OperatingSystemVer return rv } -// Enables automatic termination for the application. [Full Topic] +// Begin an activity using the given options and reason. [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) +// [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 } // Synchronously perform an activity defined by a given block using the given options. [Full Topic] @@ -130,18 +140,20 @@ func (p_ ProcessInfo) PerformActivityWithOptionsReasonUsingBlock(options Activit objc.Call[objc.Void](p_, objc.Sel("performActivityWithOptions:reason:usingBlock:"), options, reason, block) } -// Enables the application for quick killing using sudden termination. [Full Topic] +// Returns the account name of the current user. [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/1643193-username?language=objc +func (p_ ProcessInfo) UserName() string { + rv := objc.Call[string](p_, objc.Sel("userName")) + return rv } -// Disables the application for quickly killing using sudden termination. [Full Topic] +// The version of the operating system on which the process is executing. [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/1410906-operatingsystemversion?language=objc +func (p_ ProcessInfo) OperatingSystemVersion() OperatingSystemVersion { + rv := objc.Call[OperatingSystemVersion](p_, objc.Sel("operatingSystemVersion")) + return rv } // A Boolean value indicating whether the app supports automatic termination. [Full Topic] @@ -159,6 +171,14 @@ 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 @@ -167,43 +187,43 @@ func (p_ ProcessInfo) Arguments() []string { return rv } -// A string containing the version of the operating system on which the process is executing. [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/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/1414553-systemuptime?language=objc +func (p_ ProcessInfo) SystemUptime() TimeInterval { + rv := objc.Call[TimeInterval](p_, objc.Sel("systemUptime")) return rv } -// The current thermal state of the system. [Full Topic] +// The identifier of the process (often called process ID). [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/1415929-processidentifier?language=objc +func (p_ ProcessInfo) ProcessIdentifier() int { + rv := objc.Call[int](p_, objc.Sel("processIdentifier")) return rv } -// A Boolean value that indicates whether the process originated as an iOS app and runs on macOS. [Full Topic] +// 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/3362531-maccatalystapp?language=objc -func (p_ ProcessInfo) IsMacCatalystApp() bool { - rv := objc.Call[bool](p_, objc.Sel("isMacCatalystApp")) +// [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 } -// The amount of time the system has been awake since the last time it was restarted. [Full Topic] +// A Boolean value that indicates whether the process originated as an iOS app and runs on macOS. [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")) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsprocessinfo/3362531-maccatalystapp?language=objc +func (p_ ProcessInfo) IsMacCatalystApp() bool { + rv := objc.Call[bool](p_, objc.Sel("isMacCatalystApp")) return rv } -// A Boolean value that indicates whether the process is an iPhone or iPad app running on a Mac. [Full Topic] +// 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/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/1417911-environment?language=objc +func (p_ ProcessInfo) Environment() map[string]string { + rv := objc.Call[map[string]string](p_, objc.Sel("environment")) return rv } @@ -215,26 +235,19 @@ func (p_ ProcessInfo) ActiveProcessorCount() uint { 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) ProcessName() string { - rv := objc.Call[string](p_, objc.Sel("processName")) +// [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 name of the process. [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) -} - -// The version of the operating system on which the process is executing. [Full Topic] +// Global unique identifier for the process. [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")) +// [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 } @@ -253,27 +266,27 @@ func ProcessInfo_ProcessInfo() ProcessInfo { return ProcessInfoClass.ProcessInfo() } -// Returns the account name of the current user. [Full Topic] +// The number of processing cores available on the computer. [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")) +// [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 } -// A Boolean value that indicates the current state of Low Power Mode. [Full Topic] +// The current thermal state of the system. [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")) +// [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 } -// The amount of physical memory on the computer in bytes. [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/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/1408730-operatingsystemversionstring?language=objc +func (p_ ProcessInfo) OperatingSystemVersionString() string { + rv := objc.Call[string](p_, objc.Sel("operatingSystemVersionString")) return rv } @@ -285,42 +298,25 @@ func (p_ ProcessInfo) FullUserName() string { return rv } -// Global unique identifier for 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")) - return rv -} - -// The name of the host computer on which the process is executing. [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")) - return rv -} - -// The number of processing cores available on the computer. [Full Topic] +// The name of the process. [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/1416428-processname?language=objc +func (p_ ProcessInfo) ProcessName() string { + rv := objc.Call[string](p_, objc.Sel("processName")) return rv } -// The identifier of the process (often called process ID). [Full Topic] +// The name of the process. [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 +// [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 variable names (keys) and their values in the environment from which the process was launched. [Full Topic] +// The amount of physical memory on the computer in bytes. [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/1408211-physicalmemory?language=objc +func (p_ ProcessInfo) PhysicalMemory() int64 { + rv := objc.Call[int64](p_, objc.Sel("physicalMemory")) return rv } diff --git a/macos/foundation/progress.gen.go b/macos/foundation/progress.gen.go index 3f1d41f0..ca3fc143 100644 --- a/macos/foundation/progress.gen.go +++ b/macos/foundation/progress.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package foundation @@ -18,55 +18,55 @@ type _ProgressClass struct { // An interface definition for the [Progress] class. type IProgress interface { objc.IObject - Unpublish() + AddChildWithPendingUnitCount(child IProgress, inUnitCount int64) BecomeCurrentWithPendingUnitCount(unitCount int64) Publish() - AddChildWithPendingUnitCount(child IProgress, inUnitCount int64) - ResignCurrent() - SetUserInfoObjectForKey(objectOrNil objc.IObject, key ProgressUserInfoKey) 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) + Cancel() + ResignCurrent() + Resume() + SetUserInfoObjectForKey(objectOrNil objc.IObject, key ProgressUserInfoKey) + Unpublish() FileTotalCount() Number SetFileTotalCount(value INumber) - IsOld() bool + Kind() ProgressKind + SetKind(value ProgressKind) 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()) - IsCancellable() bool - SetCancellable(value bool) + EstimatedTimeRemaining() Number + SetEstimatedTimeRemaining(value INumber) CompletedUnitCount() int64 SetCompletedUnitCount(value int64) - FileCompletedCount() Number - SetFileCompletedCount(value INumber) - CancellationHandler() func() - SetCancellationHandler(value func()) - Kind() ProgressKind - SetKind(value ProgressKind) + IsOld() bool IsPausable() bool SetPausable(value bool) - IsPaused() bool - IsFinished() bool + FileOperationKind() ProgressFileOperationKind + SetFileOperationKind(value ProgressFileOperationKind) IsIndeterminate() bool + LocalizedDescription() string + SetLocalizedDescription(value string) + LocalizedAdditionalDescription() string + SetLocalizedAdditionalDescription(value string) + IsFinished() bool + ResumingHandler() func() + SetResumingHandler(value func()) + UserInfo() map[ProgressUserInfoKey]objc.Object + CancellationHandler() func() + SetCancellationHandler(value func()) + IsCancelled() bool + FileCompletedCount() Number + SetFileCompletedCount(value INumber) } // An object that conveys ongoing progress to the user for a specified task. [Full Topic] @@ -101,10 +101,6 @@ func (pc _ProgressClass) Alloc() Progress { return rv } -func Progress_Alloc() Progress { - return ProgressClass.Alloc() -} - func (pc _ProgressClass) New() Progress { rv := objc.Call[Progress](pc, objc.Sel("new")) rv.Autorelease() @@ -120,11 +116,25 @@ func (p_ Progress) Init() Progress { return rv } -// Removes a progress object from publication, making it unobservable by other processes. [Full Topic] +// Adds a process object as a suboperation of a progress tree. [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/1417260-addchild?language=objc +func (p_ Progress) AddChildWithPendingUnitCount(child IProgress, inUnitCount int64) { + objc.Call[objc.Void](p_, objc.Sel("addChild:withPendingUnitCount:"), objc.Ptr(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] +// +// [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")) } // Returns the progress instance, if any. [Full Topic] @@ -142,13 +152,6 @@ 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 @@ -179,63 +182,6 @@ func Progress_ProgressWithTotalUnitCount(unitCount int64) Progress { return ProgressClass.ProgressWithTotalUnitCount(unitCount) } -// Registers a file URL to hear about the progress of a file operation. [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:"), objc.Ptr(url), publishingHandler) - return rv -} - -// Registers a file URL to hear about the progress of a file operation. [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) -} - -// Publishes the progress object for other processes to observe it. [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")) -} - -// 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:"), objc.Ptr(child), inUnitCount) -} - -// Restores the previous progress object to become the current progress object on the thread. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsprogress/1407180-resigncurrent?language=objc -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 @@ -243,20 +189,6 @@ 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 -func (p_ Progress) Resume() { - objc.Call[objc.Void](p_, objc.Sel("resume")) -} - -// Cancels progress tracking. [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")) -} - // 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/2865587-performascurrentwithpendingunitc?language=objc @@ -264,87 +196,83 @@ func (p_ Progress) PerformAsCurrentWithPendingUnitCountUsingBlock(unitCount int6 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] +// Cancels progress tracking. [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 +// [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")) } -// A more specific localized description of tracked progress for the receiver. [Full Topic] +// Restores the previous progress object to become the current progress object on the thread. [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/1407180-resigncurrent?language=objc +func (p_ Progress) ResignCurrent() { + objc.Call[objc.Void](p_, objc.Sel("resignCurrent")) } -// A more specific localized description of tracked progress for the receiver. [Full Topic] +// Resumes progress tracking. [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/1413616-resume?language=objc +func (p_ Progress) Resume() { + objc.Call[objc.Void](p_, objc.Sel("resume")) } -// A localized description of tracked progress for the receiver. [Full Topic] +// Removes a proxy progress object that the add subscriber method returns. [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/1410457-removesubscriber?language=objc +func (pc _ProgressClass) RemoveSubscriber(subscriber objc.IObject) { + objc.Call[objc.Void](pc, objc.Sel("removeSubscriber:"), subscriber) } -// A localized description of tracked progress for the receiver. [Full Topic] +// Removes a proxy progress object that the add subscriber method returns. [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/1410457-removesubscriber?language=objc +func Progress_RemoveSubscriber(subscriber objc.IObject) { + ProgressClass.RemoveSubscriber(subscriber) } -// The kind of file operation for the progress object. [Full Topic] +// 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] // -// [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/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, objc.Ptr(parent), portionOfParentTotalUnitCount) return rv } -// The kind of file operation for the progress object. [Full Topic] +// 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] // -// [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/1409014-progresswithtotalunitcount?language=objc +func Progress_ProgressWithTotalUnitCountParentPendingUnitCount(unitCount int64, parent IProgress, portionOfParentTotalUnitCount int64) Progress { + return ProgressClass.ProgressWithTotalUnitCountParentPendingUnitCount(unitCount, parent, portionOfParentTotalUnitCount) } -// The block to invoke when progress resumes. [Full Topic] +// Sets a value in the user info dictionary. [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 +// [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) } -// The block to invoke when progress resumes. [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/1410158-resuminghandler?language=objc -func (p_ Progress) SetResumingHandler(value func()) { - objc.Call[objc.Void](p_, objc.Sel("setResumingHandler:"), value) +// [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")) } -// A value that indicates the estimated amount of time remaining to complete the progress. [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/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/1418475-addsubscriberforfileurl?language=objc +func (pc _ProgressClass) AddSubscriberForFileURLWithPublishingHandler(url IURL, publishingHandler ProgressPublishingHandler) objc.Object { + rv := objc.Call[objc.Object](pc, objc.Sel("addSubscriberForFileURL:withPublishingHandler:"), objc.Ptr(url), publishingHandler) return rv } -// A value that indicates the estimated amount of time remaining to complete the progress. [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/2868041-estimatedtimeremaining?language=objc -func (p_ Progress) SetEstimatedTimeRemaining(value INumber) { - objc.Call[objc.Void](p_, objc.Sel("setEstimatedTimeRemaining:"), objc.Ptr(value)) +// [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) } // The total number of files for a file progress object. [Full Topic] @@ -362,14 +290,21 @@ func (p_ Progress) SetFileTotalCount(value INumber) { objc.Call[objc.Void](p_, objc.Sel("setFileTotalCount:"), objc.Ptr(value)) } -// A Boolean value that indicates when the observed progress object invokes the publish method before you subscribe to it. [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/1407931-old?language=objc -func (p_ Progress) IsOld() bool { - rv := objc.Call[bool](p_, objc.Sel("isOld")) +// [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 } +// 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 @@ -400,6 +335,29 @@ func (p_ Progress) SetThroughput(value INumber) { objc.Call[objc.Void](p_, objc.Sel("setThroughput:"), objc.Ptr(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 @@ -423,14 +381,6 @@ 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 @@ -446,19 +396,19 @@ func (p_ Progress) SetPausingHandler(value func()) { objc.Call[objc.Void](p_, objc.Sel("setPausingHandler:"), value) } -// A Boolean value that indicates whether the receiver is tracking work that you can cancel. [Full Topic] +// 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/1409348-cancellable?language=objc -func (p_ Progress) IsCancellable() bool { - rv := objc.Call[bool](p_, objc.Sel("isCancellable")) +// [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 Boolean value that indicates whether the receiver is tracking work that you can cancel. [Full Topic] +// 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/1409348-cancellable?language=objc -func (p_ Progress) SetCancellable(value bool) { - objc.Call[objc.Void](p_, objc.Sel("setCancellable:"), value) +// [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:"), objc.Ptr(value)) } // The number of completed units of work for the current job. [Full Topic] @@ -476,74 +426,82 @@ func (p_ Progress) SetCompletedUnitCount(value int64) { objc.Call[objc.Void](p_, objc.Sel("setCompletedUnitCount:"), value) } -// The number of completed files for a file 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/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/1407931-old?language=objc +func (p_ Progress) IsOld() bool { + rv := objc.Call[bool](p_, objc.Sel("isOld")) return rv } -// The number of completed files for a file progress object. [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/2868050-filecompletedcount?language=objc -func (p_ Progress) SetFileCompletedCount(value INumber) { - objc.Call[objc.Void](p_, objc.Sel("setFileCompletedCount:"), objc.Ptr(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 } -// The block to invoke when canceling progress. [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/1408913-cancellationhandler?language=objc -func (p_ Progress) CancellationHandler() func() { - rv := objc.Call[func()](p_, objc.Sel("cancellationHandler")) - 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) } -// The block to invoke when canceling progress. [Full Topic] +// The kind of file operation for the progress object. [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) +// [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 } -// An object that represents the kind of progress for the progress object. [Full Topic] +// The kind of file operation for the progress object. [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")) - return rv +// [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) } -// An object that represents the kind of progress for the 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/1416139-kind?language=objc -func (p_ Progress) SetKind(value ProgressKind) { - objc.Call[objc.Void](p_, objc.Sel("setKind:"), value) +// [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 } -// A Boolean value that indicates whether the receiver is tracking work that you can pause. [Full Topic] +// A localized description of tracked progress for the receiver. [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/1417251-localizeddescription?language=objc +func (p_ Progress) LocalizedDescription() string { + rv := objc.Call[string](p_, objc.Sel("localizedDescription")) return rv } -// A Boolean value that indicates whether the receiver is tracking work that you can pause. [Full Topic] +// A localized description of tracked progress for the receiver. [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/1417251-localizeddescription?language=objc +func (p_ Progress) SetLocalizedDescription(value string) { + objc.Call[objc.Void](p_, objc.Sel("setLocalizedDescription:"), value) } -// A Boolean value that indicates whether the receiver is tracking paused work. [Full Topic] +// A more specific localized description of tracked progress for the receiver. [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")) +// [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 } +// A more specific localized description of tracked progress for the receiver. [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) +} + // A Boolean value that indicates the progress object is complete. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/foundation/nsprogress/2865603-finished?language=objc @@ -552,10 +510,63 @@ func (p_ Progress) IsFinished() bool { return rv } -// A Boolean value that indicates whether the tracked progress is indeterminate. [Full Topic] +// The block to invoke when progress resumes. [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/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] +// +// [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 } + +// 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:"), objc.Ptr(value)) +} diff --git a/macos/foundation/progress_reporting.gen.go b/macos/foundation/progress_reporting_protocol.gen.go similarity index 63% rename from macos/foundation/progress_reporting.gen.go rename to macos/foundation/progress_reporting_protocol.gen.go index 4ed493dc..edafab2d 100644 --- a/macos/foundation/progress_reporting.gen.go +++ b/macos/foundation/progress_reporting_protocol.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package foundation @@ -11,23 +11,26 @@ import ( // [Full Topic]: https://developer.apple.com/documentation/foundation/nsprogressreporting?language=objc type PProgressReporting interface { // optional - Progress() IProgress + Progress() Progress HasProgress() bool } -// A concrete type wrapper for the [PProgressReporting] protocol. -type ProgressReportingWrapper struct { +// ensure impl type implements protocol interface +var _ PProgressReporting = (*ProgressReportingObject)(nil) + +// A concrete type for the [PProgressReporting] protocol. +type ProgressReportingObject struct { objc.Object } -func (p_ ProgressReportingWrapper) HasProgress() bool { +func (p_ ProgressReportingObject) HasProgress() bool { return p_.RespondsToSelector(objc.Sel("progress")) } // The progress object returned by the class. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/foundation/nsprogressreporting/1412781-progress?language=objc -func (p_ ProgressReportingWrapper) Progress() Progress { +func (p_ ProgressReportingObject) Progress() Progress { rv := objc.Call[Progress](p_, objc.Sel("progress")) return rv } diff --git a/macos/foundation/property_list_serialization.gen.go b/macos/foundation/property_list_serialization.gen.go index 70edda1a..9bc5b2e6 100644 --- a/macos/foundation/property_list_serialization.gen.go +++ b/macos/foundation/property_list_serialization.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package foundation @@ -38,10 +38,6 @@ func (pc _PropertyListSerializationClass) Alloc() PropertyListSerialization { return rv } -func PropertyListSerialization_Alloc() PropertyListSerialization { - return PropertyListSerializationClass.Alloc() -} - func (pc _PropertyListSerializationClass) New() PropertyListSerialization { rv := objc.Call[PropertyListSerialization](pc, objc.Sel("new")) rv.Autorelease() @@ -57,6 +53,36 @@ 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 IError) objc.Object { + rv := objc.Call[objc.Object](pc, objc.Sel("propertyListWithData:options:format:error:"), data, opt, format, objc.Ptr(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 IError) 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 IError) int { + rv := objc.Call[int](pc, objc.Sel("writePropertyList:toStream:format:options:error:"), plist, objc.Ptr(stream), format, opt, objc.Ptr(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 IError) 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 @@ -72,21 +98,6 @@ 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 @@ -102,32 +113,17 @@ func PropertyListSerialization_PropertyListWithStreamOptionsFormatError(stream I return PropertyListSerializationClass.PropertyListWithStreamOptionsFormatError(stream, opt, format, error) } -// 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 IError) objc.Object { - rv := objc.Call[objc.Object](pc, objc.Sel("propertyListWithData:options:format:error:"), data, opt, format, objc.Ptr(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 IError) objc.Object { - return PropertyListSerializationClass.PropertyListWithDataOptionsFormatError(data, opt, format, error) -} - -// Writes a property list to the specified stream. [Full Topic] +// 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/1407862-writepropertylist?language=objc -func (pc _PropertyListSerializationClass) WritePropertyListToStreamFormatOptionsError(plist objc.IObject, stream IOutputStream, format PropertyListFormat, opt PropertyListWriteOptions, error IError) int { - rv := objc.Call[int](pc, objc.Sel("writePropertyList:toStream:format:options:error:"), plist, objc.Ptr(stream), format, opt, objc.Ptr(error)) +// [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 } -// Writes a property list to the specified stream. [Full Topic] +// 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/1407862-writepropertylist?language=objc -func PropertyListSerialization_WritePropertyListToStreamFormatOptionsError(plist objc.IObject, stream IOutputStream, format PropertyListFormat, opt PropertyListWriteOptions, error IError) int { - return PropertyListSerializationClass.WritePropertyListToStreamFormatOptionsError(plist, stream, format, opt, error) +// [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) } diff --git a/macos/foundation/property_specifier.gen.go b/macos/foundation/property_specifier.gen.go index 1ad57cb8..e7b36533 100644 --- a/macos/foundation/property_specifier.gen.go +++ b/macos/foundation/property_specifier.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package foundation @@ -38,10 +38,6 @@ func (pc _PropertySpecifierClass) Alloc() PropertySpecifier { return rv } -func PropertySpecifier_Alloc() PropertySpecifier { - return PropertySpecifierClass.Alloc() -} - func (pc _PropertySpecifierClass) New() PropertySpecifier { rv := objc.Call[PropertySpecifier](pc, objc.Sel("new")) rv.Autorelease() diff --git a/macos/foundation/protocols.gen.m b/macos/foundation/protocols.gen.m index 9d5a3584..36e18aec 100644 --- a/macos/foundation/protocols.gen.m +++ b/macos/foundation/protocols.gen.m @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. #import "Foundation/Foundation.h" diff --git a/macos/foundation/purgeable_data.gen.go b/macos/foundation/purgeable_data.gen.go index 7f36a646..dfc132ad 100644 --- a/macos/foundation/purgeable_data.gen.go +++ b/macos/foundation/purgeable_data.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package foundation @@ -38,10 +38,6 @@ func (pc _PurgeableDataClass) Alloc() PurgeableData { return rv } -func PurgeableData_Alloc() PurgeableData { - return PurgeableDataClass.Alloc() -} - func (pc _PurgeableDataClass) New() PurgeableData { rv := objc.Call[PurgeableData](pc, objc.Sel("new")) rv.Autorelease() @@ -57,6 +53,32 @@ 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 @@ -83,82 +105,92 @@ func PurgeableData_DataWithLength(length uint) PurgeableData { return PurgeableDataClass.DataWithLength(length) } -func (p_ PurgeableData) InitWithCapacity(capacity uint) PurgeableData { - rv := objc.Call[PurgeableData](p_, objc.Sel("initWithCapacity:"), capacity) +func (pc _PurgeableDataClass) DataWithContentsOfFileOptionsError(path string, readOptionsMask DataReadingOptions, errorPtr IError) PurgeableData { + rv := objc.Call[PurgeableData](pc, objc.Sel("dataWithContentsOfFile:options:error:"), path, readOptionsMask, objc.Ptr(errorPtr)) return rv } -// Returns an initialized mutable data object capable of holding the specified number of bytes. [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/nsmutabledata/1413350-initwithcapacity?language=objc -func NewPurgeableDataWithCapacity(capacity uint) PurgeableData { - instance := PurgeableDataClass.Alloc().InitWithCapacity(capacity) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsdata/1547244-datawithcontentsoffile?language=objc +func PurgeableData_DataWithContentsOfFileOptionsError(path string, readOptionsMask DataReadingOptions, errorPtr IError) 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) + return rv +} + +// Initializes a data object filled with a given number of bytes of data from a given buffer. [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) instance.Autorelease() return instance } -func (pc _PurgeableDataClass) DataWithCapacity(aNumItems uint) PurgeableData { - rv := objc.Call[PurgeableData](pc, objc.Sel("dataWithCapacity:"), aNumItems) +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 and returns a mutable data object capable of holding the specified number of bytes. [Full Topic] +// 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/nsmutabledata/1547236-datawithcapacity?language=objc -func PurgeableData_DataWithCapacity(aNumItems uint) PurgeableData { - return PurgeableDataClass.DataWithCapacity(aNumItems) +// [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) InitWithContentsOfFileOptionsError(path string, readOptionsMask DataReadingOptions, errorPtr IError) PurgeableData { - rv := objc.Call[PurgeableData](p_, objc.Sel("initWithContentsOfFile:options:error:"), path, readOptionsMask, objc.Ptr(errorPtr)) +func (pc _PurgeableDataClass) DataWithData(data []byte) PurgeableData { + rv := objc.Call[PurgeableData](pc, objc.Sel("dataWithData:"), data) return rv } -// Initializes a data object with the content of the file at a given path. [Full Topic] +// Creates a data object containing the contents of another data object. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsdata/1411145-initwithcontentsoffile?language=objc -func NewPurgeableDataWithContentsOfFileOptionsError(path string, readOptionsMask DataReadingOptions, errorPtr IError) PurgeableData { - instance := PurgeableDataClass.Alloc().InitWithContentsOfFileOptionsError(path, readOptionsMask, errorPtr) - 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 (p_ PurgeableData) CompressedDataUsingAlgorithmError(algorithm DataCompressionAlgorithm, error IError) PurgeableData { - rv := objc.Call[PurgeableData](p_, objc.Sel("compressedDataUsingAlgorithm:error:"), algorithm, objc.Ptr(error)) +func (pc _PurgeableDataClass) DataWithContentsOfURLOptionsError(url IURL, readOptionsMask DataReadingOptions, errorPtr IError) PurgeableData { + rv := objc.Call[PurgeableData](pc, objc.Sel("dataWithContentsOfURL:options:error:"), objc.Ptr(url), readOptionsMask, objc.Ptr(errorPtr)) return rv } -// Returns a new data object by compressing the data object’s bytes. [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/3174960-compresseddatausingalgorithm?language=objc -func PurgeableData_CompressedDataUsingAlgorithmError(algorithm DataCompressionAlgorithm, error IError) PurgeableData { - instance := PurgeableDataClass.Alloc().CompressedDataUsingAlgorithmError(algorithm, error) - instance.Autorelease() - return instance +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsdata/1547238-datawithcontentsofurl?language=objc +func PurgeableData_DataWithContentsOfURLOptionsError(url IURL, readOptionsMask DataReadingOptions, errorPtr IError) PurgeableData { + return PurgeableDataClass.DataWithContentsOfURLOptionsError(url, readOptionsMask, errorPtr) } -func (pc _PurgeableDataClass) DataWithContentsOfURL(url IURL) PurgeableData { - rv := objc.Call[PurgeableData](pc, objc.Sel("dataWithContentsOfURL:"), objc.Ptr(url)) +func (p_ PurgeableData) InitWithBase64EncodedStringOptions(base64String string, options DataBase64DecodingOptions) PurgeableData { + rv := objc.Call[PurgeableData](p_, objc.Sel("initWithBase64EncodedString:options:"), base64String, options) return rv } -// Creates a data object containing the data from the location specified by a given URL. [Full Topic] +// Initializes a data object with the given Base64 encoded string. [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) +// [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) InitWithData(data []byte) PurgeableData { - rv := objc.Call[PurgeableData](p_, objc.Sel("initWithData:"), data) +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 contents of another data object. [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/1417055-initwithdata?language=objc -func NewPurgeableDataWithData(data []byte) PurgeableData { - instance := PurgeableDataClass.Alloc().InitWithData(data) +// [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 } @@ -177,40 +209,70 @@ func NewPurgeableDataWithBytesNoCopyLengthFreeWhenDone(bytes unsafe.Pointer, len 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 (p_ PurgeableData) InitWithContentsOfURLOptionsError(url IURL, readOptionsMask DataReadingOptions, errorPtr IError) PurgeableData { + rv := objc.Call[PurgeableData](p_, objc.Sel("initWithContentsOfURL:options:error:"), objc.Ptr(url), readOptionsMask, objc.Ptr(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 IError) PurgeableData { + instance := PurgeableDataClass.Alloc().InitWithContentsOfURLOptionsError(url, readOptionsMask, errorPtr) + instance.Autorelease() + return instance +} + +func (p_ PurgeableData) InitWithContentsOfFileOptionsError(path string, readOptionsMask DataReadingOptions, errorPtr IError) PurgeableData { + rv := objc.Call[PurgeableData](p_, objc.Sel("initWithContentsOfFile:options:error:"), path, readOptionsMask, objc.Ptr(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 IError) 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) 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 PurgeableData_DataWithBytesNoCopyLengthFreeWhenDone(bytes unsafe.Pointer, length uint, b bool) PurgeableData { - return PurgeableDataClass.DataWithBytesNoCopyLengthFreeWhenDone(bytes, length, b) +// [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) } -func (pc _PurgeableDataClass) DataWithData(data []byte) PurgeableData { - rv := objc.Call[PurgeableData](pc, objc.Sel("dataWithData:"), data) +func (p_ PurgeableData) InitWithContentsOfURL(url IURL) PurgeableData { + rv := objc.Call[PurgeableData](p_, objc.Sel("initWithContentsOfURL:"), objc.Ptr(url)) return rv } -// Creates a data object containing the contents of another data object. [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/1547230-datawithdata?language=objc -func PurgeableData_DataWithData(data []byte) PurgeableData { - return PurgeableDataClass.DataWithData(data) +// [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 (pc _PurgeableDataClass) DataWithContentsOfFileOptionsError(path string, readOptionsMask DataReadingOptions, errorPtr IError) PurgeableData { - rv := objc.Call[PurgeableData](pc, objc.Sel("dataWithContentsOfFile:options:error:"), path, readOptionsMask, objc.Ptr(errorPtr)) +func (pc _PurgeableDataClass) DataWithBytesLength(bytes unsafe.Pointer, length uint) PurgeableData { + rv := objc.Call[PurgeableData](pc, objc.Sel("dataWithBytes:length:"), bytes, length) return rv } -// Creates a data object by reading every byte from the file at a given path. [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/1547244-datawithcontentsoffile?language=objc -func PurgeableData_DataWithContentsOfFileOptionsError(path string, readOptionsMask DataReadingOptions, errorPtr IError) PurgeableData { - return PurgeableDataClass.DataWithContentsOfFileOptionsError(path, readOptionsMask, errorPtr) +// [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) } func (pc _PurgeableDataClass) Data() PurgeableData { @@ -225,84 +287,110 @@ func PurgeableData_Data() PurgeableData { return PurgeableDataClass.Data() } -func (p_ PurgeableData) InitWithBytesLength(bytes unsafe.Pointer, length uint) PurgeableData { - rv := objc.Call[PurgeableData](p_, objc.Sel("initWithBytes:length:"), bytes, length) +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 filled with a given number of bytes copied from a given buffer. [Full Topic] +// Initializes a data object with the given Base64 encoded data. [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/1417833-initwithbase64encodeddata?language=objc +func NewPurgeableDataWithBase64EncodedDataOptions(base64Data []byte, options DataBase64DecodingOptions) PurgeableData { + instance := PurgeableDataClass.Alloc().InitWithBase64EncodedDataOptions(base64Data, options) instance.Autorelease() return instance } -func (p_ PurgeableData) InitWithContentsOfURL(url IURL) PurgeableData { - rv := objc.Call[PurgeableData](p_, objc.Sel("initWithContentsOfURL:"), objc.Ptr(url)) +func (p_ PurgeableData) InitWithContentsOfFile(path string) PurgeableData { + rv := objc.Call[PurgeableData](p_, objc.Sel("initWithContentsOfFile:"), path) return rv } -// Initializes a data object with the data from the location specified by a given URL. [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/1413892-initwithcontentsofurl?language=objc -func NewPurgeableDataWithContentsOfURL(url IURL) PurgeableData { - instance := PurgeableDataClass.Alloc().InitWithContentsOfURL(url) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsdata/1408672-initwithcontentsoffile?language=objc +func NewPurgeableDataWithContentsOfFile(path string) PurgeableData { + instance := PurgeableDataClass.Alloc().InitWithContentsOfFile(path) instance.Autorelease() return instance } -func (p_ PurgeableData) DecompressedDataUsingAlgorithmError(algorithm DataCompressionAlgorithm, error IError) PurgeableData { - rv := objc.Call[PurgeableData](p_, objc.Sel("decompressedDataUsingAlgorithm:error:"), algorithm, objc.Ptr(error)) +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) return rv } -// Returns a new data object by decompressing data object’s bytes. [Full Topic] +// Initializes a data object filled with a given number of bytes of data from a given buffer, with a custom deallocator block. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsdata/3174961-decompresseddatausingalgorithm?language=objc -func PurgeableData_DecompressedDataUsingAlgorithmError(algorithm DataCompressionAlgorithm, error IError) PurgeableData { - instance := PurgeableDataClass.Alloc().DecompressedDataUsingAlgorithmError(algorithm, error) +// [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) instance.Autorelease() return instance } -func (p_ PurgeableData) InitWithBase64EncodedDataOptions(base64Data []byte, options DataBase64DecodingOptions) PurgeableData { - rv := objc.Call[PurgeableData](p_, objc.Sel("initWithBase64EncodedData:options:"), base64Data, options) +func (pc _PurgeableDataClass) DataWithContentsOfFile(path string) PurgeableData { + rv := objc.Call[PurgeableData](pc, objc.Sel("dataWithContentsOfFile:"), path) return rv } -// Initializes a data object with the given Base64 encoded data. [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/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/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) + return rv +} + +// Initializes a data object with the contents of another data object. [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) 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:"), objc.Ptr(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) +// [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 IError) PurgeableData { + rv := objc.Call[PurgeableData](p_, objc.Sel("compressedDataUsingAlgorithm:error:"), algorithm, objc.Ptr(error)) + return rv +} + +// Returns a new data object by compressing the data object’s bytes. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsdata/3174960-compresseddatausingalgorithm?language=objc +func PurgeableData_CompressedDataUsingAlgorithmError(algorithm DataCompressionAlgorithm, error IError) PurgeableData { + instance := PurgeableDataClass.Alloc().CompressedDataUsingAlgorithmError(algorithm, error) instance.Autorelease() return instance } -func (pc _PurgeableDataClass) DataWithBytesLength(bytes unsafe.Pointer, length uint) PurgeableData { - rv := objc.Call[PurgeableData](pc, objc.Sel("dataWithBytes:length:"), bytes, length) +func (p_ PurgeableData) DecompressedDataUsingAlgorithmError(algorithm DataCompressionAlgorithm, error IError) PurgeableData { + rv := objc.Call[PurgeableData](p_, objc.Sel("decompressedDataUsingAlgorithm:error:"), algorithm, objc.Ptr(error)) return rv } -// Creates a data object containing a given number of bytes copied from a given buffer. [Full Topic] +// Returns a new data object by decompressing data object’s bytes. [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/3174961-decompresseddatausingalgorithm?language=objc +func PurgeableData_DecompressedDataUsingAlgorithmError(algorithm DataCompressionAlgorithm, error IError) PurgeableData { + instance := PurgeableDataClass.Alloc().DecompressedDataUsingAlgorithmError(algorithm, error) + instance.Autorelease() + return instance } diff --git a/macos/foundation/quit_command.gen.go b/macos/foundation/quit_command.gen.go index 1a0c0359..d0464c4c 100644 --- a/macos/foundation/quit_command.gen.go +++ b/macos/foundation/quit_command.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package foundation @@ -39,10 +39,6 @@ func (qc _QuitCommandClass) Alloc() QuitCommand { return rv } -func QuitCommand_Alloc() QuitCommand { - return QuitCommandClass.Alloc() -} - func (qc _QuitCommandClass) New() QuitCommand { rv := objc.Call[QuitCommand](qc, objc.Sel("new")) rv.Autorelease() diff --git a/macos/foundation/random_specifier.gen.go b/macos/foundation/random_specifier.gen.go index 2296cc8b..777a2498 100644 --- a/macos/foundation/random_specifier.gen.go +++ b/macos/foundation/random_specifier.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package foundation @@ -38,10 +38,6 @@ func (rc _RandomSpecifierClass) Alloc() RandomSpecifier { return rv } -func RandomSpecifier_Alloc() RandomSpecifier { - return RandomSpecifierClass.Alloc() -} - func (rc _RandomSpecifierClass) New() RandomSpecifier { rv := objc.Call[RandomSpecifier](rc, objc.Sel("new")) rv.Autorelease() diff --git a/macos/foundation/range_specifier.gen.go b/macos/foundation/range_specifier.gen.go index bc64828b..1397940b 100644 --- a/macos/foundation/range_specifier.gen.go +++ b/macos/foundation/range_specifier.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package foundation @@ -56,10 +56,6 @@ func (rc _RangeSpecifierClass) Alloc() RangeSpecifier { return rv } -func RangeSpecifier_Alloc() RangeSpecifier { - return RangeSpecifierClass.Alloc() -} - func (rc _RangeSpecifierClass) New() RangeSpecifier { rv := objc.Call[RangeSpecifier](rc, objc.Sel("new")) rv.Autorelease() diff --git a/macos/foundation/recursive_lock.gen.go b/macos/foundation/recursive_lock.gen.go index 2f7df00d..912ac201 100644 --- a/macos/foundation/recursive_lock.gen.go +++ b/macos/foundation/recursive_lock.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package foundation @@ -42,10 +42,6 @@ func (rc _RecursiveLockClass) Alloc() RecursiveLock { return rv } -func RecursiveLock_Alloc() RecursiveLock { - return RecursiveLockClass.Alloc() -} - func (rc _RecursiveLockClass) New() RecursiveLock { rv := objc.Call[RecursiveLock](rc, objc.Sel("new")) rv.Autorelease() diff --git a/macos/foundation/regular_expression.gen.go b/macos/foundation/regular_expression.gen.go index c41b424c..d0f8bade 100644 --- a/macos/foundation/regular_expression.gen.go +++ b/macos/foundation/regular_expression.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package foundation @@ -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 - RangeOfFirstMatchInStringOptionsRange(string_ string, options MatchingOptions, range_ Range) Range - ReplacementStringForResultInStringOffsetTemplate(result ITextCheckingResult, string_ string, offset int, templ string) 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)) + RangeOfFirstMatchInStringOptionsRange(string_ string, options MatchingOptions, range_ Range) Range + ReplacementStringForResultInStringOffsetTemplate(result ITextCheckingResult, string_ string, offset int, templ string) string + Pattern() string Options() RegularExpressionOptions NumberOfCaptureGroups() uint - Pattern() string } // An immutable representation of a compiled regular expression that you apply to Unicode strings. [Full Topic] @@ -63,10 +63,6 @@ func (rc _RegularExpressionClass) Alloc() RegularExpression { return rv } -func RegularExpression_Alloc() RegularExpression { - return RegularExpressionClass.Alloc() -} - func (rc _RegularExpressionClass) New() RegularExpression { rv := objc.Call[RegularExpression](rc, objc.Sel("new")) rv.Autorelease() @@ -82,42 +78,34 @@ func (r_ RegularExpression) Init() RegularExpression { return rv } -// Replaces regular expression matches within the mutable string using the template string. [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/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:"), objc.Ptr(string_), options, range_, templ) +// [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 the range of the first match of the regular expression within the specified range of the string. [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/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 +// [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 a string by adding backslash escapes as necessary to protect any characters that would match as pattern metacharacters. [Full Topic] +// Returns a new string containing matching regular expressions replaced with the template 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/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 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_) -} - -// Used to perform template substitution for a single result for clients implementing their own replace functionality. [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/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:"), objc.Ptr(result), string_, offset, templ) +// [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:"), objc.Ptr(string_), options, range_, templ) return rv } @@ -137,14 +125,6 @@ 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 @@ -160,14 +140,37 @@ func RegularExpression_EscapedTemplateForString(string_ string) string { return RegularExpressionClass.EscapedTemplateForString(string_) } -// Returns an array containing all the matches of the regular expression in the string. [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/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/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:"), objc.Ptr(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] +// +// [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 +} + +// 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 @@ -183,11 +186,12 @@ func RegularExpression_RegularExpressionWithPatternOptionsError(pattern string, return RegularExpressionClass.RegularExpressionWithPatternOptionsError(pattern, options, error) } -// Enumerates the string allowing the Block to handle each regular expression match. [Full Topic] +// Returns the regular expression pattern. [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/1414932-pattern?language=objc +func (r_ RegularExpression) Pattern() string { + rv := objc.Call[string](r_, objc.Sel("pattern")) + return rv } // Returns the options used when the regular expression option was created. [Full Topic] @@ -205,11 +209,3 @@ 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 d0f5f307..47959517 100644 --- a/macos/foundation/relative_date_time_formatter.gen.go +++ b/macos/foundation/relative_date_time_formatter.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package foundation @@ -18,19 +18,19 @@ type _RelativeDateTimeFormatterClass struct { // An interface definition for the [RelativeDateTimeFormatter] class. type IRelativeDateTimeFormatter interface { IFormatter - LocalizedStringFromTimeInterval(timeInterval TimeInterval) string - 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) + LocalizedStringFromDateComponents(dateComponents IDateComponents) string + LocalizedStringFromTimeInterval(timeInterval TimeInterval) string FormattingContext() FormattingContext SetFormattingContext(value FormattingContext) + DateTimeStyle() RelativeDateTimeFormatterStyle + SetDateTimeStyle(value RelativeDateTimeFormatterStyle) Calendar() Calendar SetCalendar(value ICalendar) + UnitsStyle() RelativeDateTimeFormatterUnitsStyle + SetUnitsStyle(value RelativeDateTimeFormatterUnitsStyle) + Locale() Locale + SetLocale(value ILocale) } // A formatter that creates locale-aware string representations of a relative date or time. [Full Topic] @@ -51,10 +51,6 @@ func (rc _RelativeDateTimeFormatterClass) Alloc() RelativeDateTimeFormatter { return rv } -func RelativeDateTimeFormatter_Alloc() RelativeDateTimeFormatter { - return RelativeDateTimeFormatterClass.Alloc() -} - func (rc _RelativeDateTimeFormatterClass) New() RelativeDateTimeFormatter { rv := objc.Call[RelativeDateTimeFormatter](rc, objc.Sel("new")) rv.Autorelease() @@ -70,11 +66,11 @@ func (r_ RelativeDateTimeFormatter) Init() RelativeDateTimeFormatter { 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:"), objc.Ptr(date), objc.Ptr(referenceDate)) return rv } @@ -86,42 +82,27 @@ func (r_ RelativeDateTimeFormatter) LocalizedStringFromDateComponents(dateCompon return rv } -// 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/3130998-localizedstringfordate?language=objc -func (r_ RelativeDateTimeFormatter) LocalizedStringForDateRelativeToDate(date IDate, referenceDate IDate) string { - rv := objc.Call[string](r_, objc.Sel("localizedStringForDate:relativeToDate:"), objc.Ptr(date), objc.Ptr(referenceDate)) - 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] +// Formats the specified time interval using the formatter’s calendar. [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")) +// [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 } -// 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] +// 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/3130997-locale?language=objc -func (r_ RelativeDateTimeFormatter) Locale() Locale { - rv := objc.Call[Locale](r_, objc.Sel("locale")) +// [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 } -// The locale to use when formatting the date. [Full Topic] +// 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/3130997-locale?language=objc -func (r_ RelativeDateTimeFormatter) SetLocale(value ILocale) { - objc.Call[objc.Void](r_, objc.Sel("setLocale:"), objc.Ptr(value)) +// [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 style to use when describing a relative date, for example “yesterday” or “1 day ago”. [Full Topic] @@ -139,21 +120,6 @@ 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 @@ -168,3 +134,33 @@ func (r_ RelativeDateTimeFormatter) Calendar() Calendar { func (r_ RelativeDateTimeFormatter) SetCalendar(value ICalendar) { objc.Call[objc.Void](r_, objc.Sel("setCalendar:"), objc.Ptr(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:"), objc.Ptr(value)) +} diff --git a/macos/foundation/relative_specifier.gen.go b/macos/foundation/relative_specifier.gen.go index 7ae152f5..98eb0cb5 100644 --- a/macos/foundation/relative_specifier.gen.go +++ b/macos/foundation/relative_specifier.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package foundation @@ -18,10 +18,10 @@ type _RelativeSpecifierClass struct { // An interface definition for the [RelativeSpecifier] class. type IRelativeSpecifier interface { IScriptObjectSpecifier - RelativePosition() RelativePosition - SetRelativePosition(value RelativePosition) BaseSpecifier() ScriptObjectSpecifier SetBaseSpecifier(value IScriptObjectSpecifier) + RelativePosition() RelativePosition + SetRelativePosition(value RelativePosition) } // 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 initWithContainerClassDescription:containerSpecifier:key: method and initializes the relative position and base specifier to relPos and baseSpecifier. [Full Topic] +// Invokes the super class’s [foundation/nsscriptobjectspecifier/initwithcontainerclassdescriptio] 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 { @@ -56,10 +56,6 @@ func (rc _RelativeSpecifierClass) Alloc() RelativeSpecifier { return rv } -func RelativeSpecifier_Alloc() RelativeSpecifier { - return RelativeSpecifierClass.Alloc() -} - func (rc _RelativeSpecifierClass) New() RelativeSpecifier { rv := objc.Call[RelativeSpecifier](rc, objc.Sel("new")) rv.Autorelease() @@ -103,21 +99,6 @@ func NewRelativeSpecifierWithContainerSpecifierKey(container IScriptObjectSpecif return instance } -// Sets the relative position encapsulated by the receiver. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsrelativespecifier/1416001-relativeposition?language=objc -func (r_ RelativeSpecifier) RelativePosition() RelativePosition { - rv := objc.Call[RelativePosition](r_, objc.Sel("relativePosition")) - return rv -} - -// Sets the relative position encapsulated by the receiver. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsrelativespecifier/1416001-relativeposition?language=objc -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 @@ -132,3 +113,18 @@ func (r_ RelativeSpecifier) BaseSpecifier() ScriptObjectSpecifier { func (r_ RelativeSpecifier) SetBaseSpecifier(value IScriptObjectSpecifier) { objc.Call[objc.Void](r_, objc.Sel("setBaseSpecifier:"), objc.Ptr(value)) } + +// Sets the relative position encapsulated by the receiver. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsrelativespecifier/1416001-relativeposition?language=objc +func (r_ RelativeSpecifier) RelativePosition() RelativePosition { + rv := objc.Call[RelativePosition](r_, objc.Sel("relativePosition")) + return rv +} + +// Sets the relative position encapsulated by the receiver. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsrelativespecifier/1416001-relativeposition?language=objc +func (r_ RelativeSpecifier) SetRelativePosition(value RelativePosition) { + objc.Call[objc.Void](r_, objc.Sel("setRelativePosition:"), value) +} diff --git a/macos/foundation/run_loop.gen.go b/macos/foundation/run_loop.gen.go index 3fa89905..992c5b15 100644 --- a/macos/foundation/run_loop.gen.go +++ b/macos/foundation/run_loop.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package foundation @@ -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) - GetCFRunLoop() corefoundation.RunLoopRef - RunModeBeforeDate(mode RunLoopMode, limitDate IDate) bool - CancelPerformSelectorsWithTarget(target 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) + RunModeBeforeDate(mode RunLoopMode, limitDate IDate) bool PerformInModesBlock(modes []RunLoopMode, block func()) - AddPortForMode(aPort IPort, mode RunLoopMode) + CancelPerformSelectorsWithTarget(target objc.IObject) + AcceptInputForModeBeforeDate(mode RunLoopMode, limitDate IDate) + RemovePortForMode(aPort IPort, mode RunLoopMode) + GetCFRunLoop() corefoundation.RunLoopRef 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 } @@ -54,10 +54,6 @@ func (rc _RunLoopClass) Alloc() RunLoop { return rv } -func RunLoop_Alloc() RunLoop { - return RunLoopClass.Alloc() -} - func (rc _RunLoopClass) New() RunLoop { rv := objc.Call[RunLoop](rc, objc.Sel("new")) rv.Autorelease() @@ -73,13 +69,6 @@ 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, objc.Ptr(limitDate)) -} - // Cancels the sending of a previously scheduled message. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/foundation/nsrunloop/1418077-cancelperformselector?language=objc @@ -87,27 +76,26 @@ func (r_ RunLoop) CancelPerformSelectorTargetArgument(aSelector objc.Selector, t objc.Call[objc.Void](r_, objc.Sel("cancelPerformSelector:target:argument:"), aSelector, target, arg) } -// 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 } -// Runs the loop once, blocking for input in the specified mode until a given date. [Full Topic] +// 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/1411525-runmode?language=objc -func (r_ RunLoop) RunModeBeforeDate(mode RunLoopMode, limitDate IDate) bool { - rv := objc.Call[bool](r_, objc.Sel("runMode:beforeDate:"), mode, objc.Ptr(limitDate)) - return rv +// [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")) } -// Cancels all outstanding ordered performs scheduled with a given target. [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/1414208-cancelperformselectorswithtarget?language=objc -func (r_ RunLoop) CancelPerformSelectorsWithTarget(target objc.IObject) { - objc.Call[objc.Void](r_, objc.Sel("cancelPerformSelectorsWithTarget:"), target) +// [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:"), objc.Ptr(aPort), mode) } // Registers a given timer with a given input mode. [Full Topic] @@ -117,6 +105,21 @@ func (r_ RunLoop) AddTimerForMode(timer ITimer, mode RunLoopMode) { objc.Call[objc.Void](r_, objc.Sel("addTimer:forMode:"), objc.Ptr(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, objc.Ptr(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 @@ -124,33 +127,40 @@ func (r_ RunLoop) PerformInModesBlock(modes []RunLoopMode, block func()) { objc.Call[objc.Void](r_, objc.Sel("performInModes:block:"), modes, block) } -// 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:"), objc.Ptr(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) } -// Schedules a block that the run loop invokes. [Full Topic] +// 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/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/1417143-acceptinputformode?language=objc +func (r_ RunLoop) AcceptInputForModeBeforeDate(mode RunLoopMode, limitDate IDate) { + objc.Call[objc.Void](r_, objc.Sel("acceptInputForMode:beforeDate:"), mode, objc.Ptr(limitDate)) } -// 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] +// Removes a port from the specified input mode of the run loop. [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/1414332-removeport?language=objc +func (r_ RunLoop) RemovePortForMode(aPort IPort, mode RunLoopMode) { + objc.Call[objc.Void](r_, objc.Sel("removePort:forMode:"), objc.Ptr(aPort), mode) +} + +// Returns the receiver's underlying [corefoundation/cfrunloop] object. [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")) return rv } -// Schedules the sending of a message on the receiver. [Full Topic] +// Schedules a block that the run loop invokes. [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) +// [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) } // Runs the loop until the specified date, during which time it processes data from all attached input sources. [Full Topic] @@ -160,20 +170,6 @@ func (r_ RunLoop) RunUntilDate(limitDate IDate) { objc.Call[objc.Void](r_, objc.Sel("runUntilDate:"), objc.Ptr(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:"), objc.Ptr(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 503ecbbb..7905211f 100644 --- a/macos/foundation/scanner.gen.go +++ b/macos/foundation/scanner.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package foundation @@ -18,31 +18,31 @@ type _ScannerClass struct { // An interface definition for the [Scanner] class. type IScanner interface { objc.IObject - ScanInteger(result *int) bool - ScanCharactersFromSetIntoString(set ICharacterSet, result string) bool - ScanUnsignedLongLong(result *int64) bool + ScanUpToStringIntoString(string_ string, result string) bool + ScanStringIntoString(string_ string, result string) bool + ScanInt(result *int) bool + ScanUpToCharactersFromSetIntoString(set ICharacterSet, result string) bool ScanDouble(result *float64) bool - ScanDecimal(dcm *Decimal) bool - ScanLongLong(result *int64) bool ScanFloat(result *float64) bool - ScanUpToCharactersFromSetIntoString(set ICharacterSet, result string) bool ScanHexLongLong(result *int64) bool + ScanLongLong(result *int64) bool + ScanCharactersFromSetIntoString(set ICharacterSet, result string) bool + ScanInteger(result *int) bool ScanHexInt(result *int) bool - ScanHexDouble(result *float64) bool - ScanStringIntoString(string_ string, result string) bool + ScanUnsignedLongLong(result *int64) bool ScanHexFloat(result *float64) bool - ScanUpToStringIntoString(string_ string, result string) bool - ScanInt(result *int) bool - CharactersToBeSkipped() CharacterSet - SetCharactersToBeSkipped(value ICharacterSet) + ScanDecimal(dcm *Decimal) bool + ScanHexDouble(result *float64) bool + String() string + CaseSensitive() bool + SetCaseSensitive(value bool) ScanLocation() uint SetScanLocation(value uint) + IsAtEnd() bool Locale() objc.Object SetLocale(value objc.IObject) - IsAtEnd() bool - String() string - CaseSensitive() bool - SetCaseSensitive(value bool) + CharactersToBeSkipped() CharacterSet + SetCharactersToBeSkipped(value ICharacterSet) } // 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,6 +58,18 @@ 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 @@ -72,27 +84,11 @@ 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 } -func Scanner_Alloc() Scanner { - return ScannerClass.Alloc() -} - func (sc _ScannerClass) New() Scanner { rv := objc.Call[Scanner](sc, objc.Sel("new")) rv.Autorelease() @@ -108,43 +104,35 @@ func (s_ Scanner) Init() Scanner { return rv } -// 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/1411082-scaninteger?language=objc -func (s_ Scanner) ScanInteger(result *int) bool { - rv := objc.Call[bool](s_, objc.Sel("scanInteger:"), 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 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/1417575-scancharactersfromset?language=objc -func (s_ Scanner) ScanCharactersFromSetIntoString(set ICharacterSet, result string) bool { - rv := objc.Call[bool](s_, objc.Sel("scanCharactersFromSet:intoString:"), objc.Ptr(set), result) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsscanner/1411971-scanuptostring?language=objc +func (s_ Scanner) ScanUpToStringIntoString(string_ string, result string) bool { + rv := objc.Call[bool](s_, objc.Sel("scanUpToString:intoString:"), string_, result) return rv } -// Scans for an unsigned long long value from a decimal 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/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/1407591-scanstring?language=objc +func (s_ Scanner) ScanStringIntoString(string_ string, result string) bool { + rv := objc.Call[bool](s_, objc.Sel("scanString:intoString:"), string_, result) return rv } -// Scans for a double value, returning a found value by reference. [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/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/1410914-scanint?language=objc +func (s_ Scanner) ScanInt(result *int) bool { + rv := objc.Call[bool](s_, objc.Sel("scanInt:"), result) return rv } -// Scans for an NSDecimal value, returning a found value 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/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/1413598-scanuptocharactersfromset?language=objc +func (s_ Scanner) ScanUpToCharactersFromSetIntoString(set ICharacterSet, result string) bool { + rv := objc.Call[bool](s_, objc.Sel("scanUpToCharactersFromSet:intoString:"), objc.Ptr(set), result) return rv } @@ -163,11 +151,11 @@ func Scanner_LocalizedScannerWithString(string_ string) objc.Object { return ScannerClass.LocalizedScannerWithString(string_) } -// Scans for a long long value from a decimal representation, returning a found value 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/1412629-scanlonglong?language=objc -func (s_ Scanner) ScanLongLong(result *int64) bool { - rv := objc.Call[bool](s_, objc.Sel("scanLongLong:"), 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 } @@ -179,14 +167,6 @@ func (s_ Scanner) ScanFloat(result *float64) bool { 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] -// -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsscanner/1413598-scanuptocharactersfromset?language=objc -func (s_ Scanner) ScanUpToCharactersFromSetIntoString(set ICharacterSet, result string) bool { - rv := objc.Call[bool](s_, objc.Sel("scanUpToCharactersFromSet:intoString:"), objc.Ptr(set), result) - 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 @@ -195,27 +175,43 @@ func (s_ Scanner) ScanHexLongLong(result *int64) bool { return rv } -// Scans for an unsigned value from a hexadecimal representation, 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/1413857-scanhexint?language=objc -func (s_ Scanner) ScanHexInt(result *int) bool { - rv := objc.Call[bool](s_, objc.Sel("scanHexInt:"), 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 } -// Scans for a double value from a hexadecimal representation, returning a found value by reference. [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/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/1417575-scancharactersfromset?language=objc +func (s_ Scanner) ScanCharactersFromSetIntoString(set ICharacterSet, result string) bool { + rv := objc.Call[bool](s_, objc.Sel("scanCharactersFromSet:intoString:"), objc.Ptr(set), result) return rv } -// Scans a given string, returning an equivalent string object by reference if a match is found. [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/1407591-scanstring?language=objc -func (s_ Scanner) ScanStringIntoString(string_ string, result string) bool { - rv := objc.Call[bool](s_, objc.Sel("scanString: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 for an unsigned value from a hexadecimal representation, returning a found value by reference. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsscanner/1413857-scanhexint?language=objc +func (s_ Scanner) ScanHexInt(result *int) bool { + rv := objc.Call[bool](s_, objc.Sel("scanHexInt:"), result) + return rv +} + +// 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/1408559-scanunsignedlonglong?language=objc +func (s_ Scanner) ScanUnsignedLongLong(result *int64) bool { + rv := objc.Call[bool](s_, objc.Sel("scanUnsignedLongLong:"), result) return rv } @@ -227,35 +223,43 @@ func (s_ Scanner) ScanHexFloat(result *float64) bool { 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 NSDecimal value, 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 string) bool { - rv := objc.Call[bool](s_, objc.Sel("scanUpToString:intoString:"), string_, result) +// [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 } -// Scans for an int 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/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/1411780-scanhexdouble?language=objc +func (s_ Scanner) ScanHexDouble(result *float64) bool { + rv := objc.Call[bool](s_, objc.Sel("scanHexDouble:"), result) 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) CharactersToBeSkipped() CharacterSet { - rv := objc.Call[CharacterSet](s_, objc.Sel("charactersToBeSkipped")) +// [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 } -// Character set containing the characters the scanner ignores when looking for a scannable element. [Full Topic] +// Flag that indicates whether the receiver distinguishes case in the characters it scans. [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:"), objc.Ptr(value)) +// [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) } // The character position at which the receiver will begin its next scanning operation. [Full Topic] @@ -273,6 +277,14 @@ 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 @@ -288,33 +300,17 @@ func (s_ Scanner) SetLocale(value objc.IObject) { objc.Call[objc.Void](s_, objc.Sel("setLocale:"), 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 string the scanner will scan. [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")) - 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:"), objc.Ptr(value)) } diff --git a/macos/foundation/script_class_description.gen.go b/macos/foundation/script_class_description.gen.go index 5c6a6350..7e593bf0 100644 --- a/macos/foundation/script_class_description.gen.go +++ b/macos/foundation/script_class_description.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package foundation @@ -18,24 +18,24 @@ type _ScriptClassDescriptionClass struct { // An interface definition for the [ScriptClassDescription] class. type IScriptClassDescription interface { IClassDescription - SelectorForCommand(commandDescription IScriptCommandDescription) objc.Selector - MatchesAppleEventCode(appleEventCode uint) bool - SupportsCommand(commandDescription IScriptCommandDescription) bool + KeyWithAppleEventCode(appleEventCode uint) string HasReadablePropertyForKey(key string) bool + HasOrderedToManyRelationshipForKey(key string) bool + IsLocationRequiredToCreateForKey(toManyRelationshipKey string) bool + HasWritablePropertyForKey(key string) bool HasPropertyForKey(key string) bool ClassDescriptionForKey(key string) ScriptClassDescription - HasWritablePropertyForKey(key string) bool + MatchesAppleEventCode(appleEventCode uint) bool + SelectorForCommand(commandDescription IScriptCommandDescription) objc.Selector TypeForKey(key string) string - KeyWithAppleEventCode(appleEventCode uint) string - IsLocationRequiredToCreateForKey(toManyRelationshipKey string) bool AppleEventCodeForKey(key string) uint - HasOrderedToManyRelationshipForKey(key string) bool - AppleEventCode() uint - SuperclassDescription() ScriptClassDescription - DefaultSubcontainerAttributeKey() string + SupportsCommand(commandDescription IScriptCommandDescription) bool SuiteName() string - ClassName() string + DefaultSubcontainerAttributeKey() string ImplementationClassName() string + SuperclassDescription() ScriptClassDescription + ClassName() string + AppleEventCode() uint } // A scriptable class that a macOS app supports. [Full Topic] @@ -70,10 +70,6 @@ func (sc _ScriptClassDescriptionClass) Alloc() ScriptClassDescription { return rv } -func ScriptClassDescription_Alloc() ScriptClassDescription { - return ScriptClassDescriptionClass.Alloc() -} - func (sc _ScriptClassDescriptionClass) New() ScriptClassDescription { rv := objc.Call[ScriptClassDescription](sc, objc.Sel("new")) rv.Autorelease() @@ -89,35 +85,43 @@ func (s_ ScriptClassDescription) Init() ScriptClassDescription { return rv } -// Returns the selector associated with the receiver for the specified command description. [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/1409327-selectorforcommand?language=objc -func (s_ ScriptClassDescription) SelectorForCommand(commandDescription IScriptCommandDescription) objc.Selector { - rv := objc.Call[objc.Selector](s_, objc.Sel("selectorForCommand:"), objc.Ptr(commandDescription)) +// [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 a primary or secondary Apple event code in the receiver matches the passed code. [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/1411166-matchesappleeventcode?language=objc -func (s_ ScriptClassDescription) MatchesAppleEventCode(appleEventCode uint) bool { - rv := objc.Call[bool](s_, objc.Sel("matchesAppleEventCode:"), appleEventCode) +// [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 } -// Returns a Boolean value indicating whether the receiver or any superclass supports the specified command. [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/1411902-supportscommand?language=objc -func (s_ ScriptClassDescription) SupportsCommand(commandDescription IScriptCommandDescription) bool { - rv := objc.Call[bool](s_, objc.Sel("supportsCommand:"), objc.Ptr(commandDescription)) +// [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 a Boolean value indicating whether the described class has a readable property identified by the specified key. [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/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/1416531-islocationrequiredtocreateforkey?language=objc +func (s_ ScriptClassDescription) IsLocationRequiredToCreateForKey(toManyRelationshipKey string) bool { + rv := objc.Call[bool](s_, objc.Sel("isLocationRequiredToCreateForKey:"), toManyRelationshipKey) + return rv +} + +// 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/1411935-haswritablepropertyforkey?language=objc +func (s_ ScriptClassDescription) HasWritablePropertyForKey(key string) bool { + rv := objc.Call[bool](s_, objc.Sel("hasWritablePropertyForKey:"), key) return rv } @@ -137,35 +141,27 @@ func (s_ ScriptClassDescription) ClassDescriptionForKey(key string) ScriptClassD return rv } -// 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/1411935-haswritablepropertyforkey?language=objc -func (s_ ScriptClassDescription) HasWritablePropertyForKey(key string) bool { - rv := objc.Call[bool](s_, objc.Sel("hasWritablePropertyForKey:"), key) - return rv -} - -// Returns the name of the declared type of the attribute or relationship identified by the passed 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/1417186-typeforkey?language=objc -func (s_ ScriptClassDescription) TypeForKey(key string) string { - rv := objc.Call[string](s_, objc.Sel("typeForKey:"), 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 } -// 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] +// Returns the selector associated with the receiver for the specified command description. [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) +// [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:"), objc.Ptr(commandDescription)) 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 the name of the declared type of the attribute or relationship identified by the passed key. [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/1417186-typeforkey?language=objc +func (s_ ScriptClassDescription) TypeForKey(key string) string { + rv := objc.Call[string](s_, objc.Sel("typeForKey:"), key) return rv } @@ -177,27 +173,19 @@ func (s_ ScriptClassDescription) AppleEventCodeForKey(key string) uint { return rv } -// 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/1413542-hasorderedtomanyrelationshipfork?language=objc -func (s_ ScriptClassDescription) HasOrderedToManyRelationshipForKey(key string) bool { - rv := objc.Call[bool](s_, objc.Sel("hasOrderedToManyRelationshipForKey:"), key) - return rv -} - -// Returns the Apple event code associated with the receiver’s class. [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/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/1411902-supportscommand?language=objc +func (s_ ScriptClassDescription) SupportsCommand(commandDescription IScriptCommandDescription) bool { + rv := objc.Call[bool](s_, objc.Sel("supportsCommand:"), objc.Ptr(commandDescription)) return rv } -// Returns the class description instance for the superclass of the receiver’s class. [Full Topic] +// Returns the name of the receiver’s suite. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsscriptclassdescription/1416243-superclassdescription?language=objc -func (s_ ScriptClassDescription) SuperclassDescription() ScriptClassDescription { - rv := objc.Call[ScriptClassDescription](s_, objc.Sel("superclassDescription")) +// [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 } @@ -209,11 +197,19 @@ func (s_ ScriptClassDescription) DefaultSubcontainerAttributeKey() string { return rv } -// Returns the name of the receiver’s suite. [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/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/1409575-implementationclassname?language=objc +func (s_ ScriptClassDescription) ImplementationClassName() string { + rv := objc.Call[string](s_, objc.Sel("implementationClassName")) + return rv +} + +// Returns the class description instance for the superclass of the receiver’s class. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsscriptclassdescription/1416243-superclassdescription?language=objc +func (s_ ScriptClassDescription) SuperclassDescription() ScriptClassDescription { + rv := objc.Call[ScriptClassDescription](s_, objc.Sel("superclassDescription")) return rv } @@ -225,10 +221,10 @@ func (s_ ScriptClassDescription) ClassName() string { 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 } diff --git a/macos/foundation/script_coercion_handler.gen.go b/macos/foundation/script_coercion_handler.gen.go index 1d1ea836..b823ec69 100644 --- a/macos/foundation/script_coercion_handler.gen.go +++ b/macos/foundation/script_coercion_handler.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package foundation @@ -18,8 +18,8 @@ type _ScriptCoercionHandlerClass struct { // An interface definition for the [ScriptCoercionHandler] class. type IScriptCoercionHandler interface { objc.IObject - CoerceValueToClass(value objc.IObject, toClass objc.IClass) objc.Object RegisterCoercerSelectorToConvertFromClassToClass(coercer objc.IObject, selector objc.Selector, fromClass objc.IClass, toClass objc.IClass) + CoerceValueToClass(value objc.IObject, toClass objc.IClass) objc.Object } // A mechanism for converting one kind of scripting data to another. [Full Topic] @@ -40,10 +40,6 @@ func (sc _ScriptCoercionHandlerClass) Alloc() ScriptCoercionHandler { return rv } -func ScriptCoercionHandler_Alloc() ScriptCoercionHandler { - return ScriptCoercionHandlerClass.Alloc() -} - func (sc _ScriptCoercionHandlerClass) New() ScriptCoercionHandler { rv := objc.Call[ScriptCoercionHandler](sc, objc.Sel("new")) rv.Autorelease() @@ -59,12 +55,11 @@ func (s_ ScriptCoercionHandler) Init() ScriptCoercionHandler { return rv } -// 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, objc.Ptr(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, objc.Ptr(fromClass), objc.Ptr(toClass)) } // Returns the shared NSScriptCoercionHandler for the application. [Full Topic] @@ -82,9 +77,10 @@ func ScriptCoercionHandler_SharedCoercionHandler() ScriptCoercionHandler { return ScriptCoercionHandlerClass.SharedCoercionHandler() } -// 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, objc.Ptr(fromClass), objc.Ptr(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, objc.Ptr(toClass)) + return rv } diff --git a/macos/foundation/script_command.gen.go b/macos/foundation/script_command.gen.go index 0a18ab57..c1594b46 100644 --- a/macos/foundation/script_command.gen.go +++ b/macos/foundation/script_command.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package foundation @@ -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 - ResumeExecutionWithResult(result objc.IObject) - SuspendExecution() - Arguments() map[string]objc.Object - SetArguments(value map[string]objc.IObject) - ReceiversSpecifier() ScriptObjectSpecifier - SetReceiversSpecifier(value IScriptObjectSpecifier) - ScriptErrorString() string - SetScriptErrorString(value string) DirectParameter() objc.Object SetDirectParameter(value objc.IObject) - CommandDescription() ScriptCommandDescription - EvaluatedArguments() map[string]objc.Object - EvaluatedReceivers() objc.Object - ScriptErrorNumber() int - SetScriptErrorNumber(value int) - IsWellFormed() bool - AppleEvent() AppleEventDescriptor ScriptErrorOffendingObjectDescriptor() AppleEventDescriptor SetScriptErrorOffendingObjectDescriptor(value IAppleEventDescriptor) + ScriptErrorString() string + SetScriptErrorString(value string) + ScriptErrorNumber() int + SetScriptErrorNumber(value int) + 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 + CommandDescription() ScriptCommandDescription + AppleEvent() AppleEventDescriptor + IsWellFormed() bool } // A self-contained scripting statement. [Full Topic] @@ -75,10 +75,6 @@ func (sc _ScriptCommandClass) Alloc() ScriptCommand { return rv } -func ScriptCommand_Alloc() ScriptCommand { - return ScriptCommandClass.Alloc() -} - func (sc _ScriptCommandClass) New() ScriptCommand { rv := objc.Call[ScriptCommand](sc, objc.Sel("new")) rv.Autorelease() @@ -94,12 +90,11 @@ func (s_ ScriptCommand) Init() ScriptCommand { return rv } -// Executes the command if it is valid and returns the result, if any. [Full Topic] +// Suspends the execution of the receiver. [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/1417785-suspendexecution?language=objc +func (s_ ScriptCommand) SuspendExecution() { + objc.Call[objc.Void](s_, objc.Sel("suspendExecution")) } // If a command is being executed in the current thread by Cocoa scripting's built-in Apple event handling, return the command. [Full Topic] @@ -117,56 +112,57 @@ func ScriptCommand_CurrentCommand() ScriptCommand { return ScriptCommandClass.CurrentCommand() } -// 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/1413379-performdefaultimplementation?language=objc -func (s_ ScriptCommand) PerformDefaultImplementation() objc.Object { - rv := objc.Call[objc.Object](s_, objc.Sel("performDefaultImplementation")) - return rv -} - -// If a successful, unmatched, invocation of suspendExecution has been made, resume the execution of the command. [Full Topic] +// If a successful, unmatched, invocation of [foundation/nsscriptcommand/suspendexecution] has been made, resume the execution of the command. [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) } -// 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 } -// Sets the arguments of the command to args. [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/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/1413379-performdefaultimplementation?language=objc +func (s_ ScriptCommand) PerformDefaultImplementation() objc.Object { + rv := objc.Call[objc.Object](s_, objc.Sel("performDefaultImplementation")) return rv } -// Sets the arguments of the command to args. [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/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/1410675-directparameter?language=objc +func (s_ ScriptCommand) DirectParameter() objc.Object { + rv := objc.Call[objc.Object](s_, objc.Sel("directParameter")) + return rv } -// Sets the object specifier to receiversSpec that, when evaluated, indicates the receiver or receivers of the command. [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/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/1410675-directparameter?language=objc +func (s_ ScriptCommand) SetDirectParameter(value objc.IObject) { + objc.Call[objc.Void](s_, objc.Sel("setDirectParameter:"), 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] +// +// [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 } -// Sets the object specifier to receiversSpec that, when evaluated, indicates the receiver or receivers of 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/1417016-receiversspecifier?language=objc -func (s_ ScriptCommand) SetReceiversSpecifier(value IScriptObjectSpecifier) { - objc.Call[objc.Void](s_, objc.Sel("setReceiversSpecifier:"), objc.Ptr(value)) +// [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:"), objc.Ptr(value)) } // Sets a script error string that is associated with execution of the command. [Full Topic] @@ -184,35 +180,34 @@ func (s_ ScriptCommand) SetScriptErrorString(value string) { objc.Call[objc.Void](s_, objc.Sel("setScriptErrorString:"), value) } -// Sets the object that corresponds to the direct parameter of the Apple event from which the receiver derives. [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/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/1411484-scripterrornumber?language=objc +func (s_ ScriptCommand) ScriptErrorNumber() int { + rv := objc.Call[int](s_, objc.Sel("scriptErrorNumber")) return rv } -// Sets the object that corresponds to the direct parameter of the Apple event from which the receiver derives. [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/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/1411484-scripterrornumber?language=objc +func (s_ ScriptCommand) SetScriptErrorNumber(value int) { + objc.Call[objc.Void](s_, objc.Sel("setScriptErrorNumber:"), value) } -// Returns the command description for the command. [Full Topic] +// Sets the arguments of the command to args. [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")) +// [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 } -// 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 the arguments of the command to args. [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")) - return rv +// [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) } // Returns the object or objects to which the command is to be sent (called both the “receivers” or “targets” of script commands). [Full Topic] @@ -223,63 +218,64 @@ func (s_ ScriptCommand) EvaluatedReceivers() objc.Object { 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 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/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/1417016-receiversspecifier?language=objc +func (s_ ScriptCommand) ReceiversSpecifier() ScriptObjectSpecifier { + rv := objc.Call[ScriptObjectSpecifier](s_, objc.Sel("receiversSpecifier")) 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 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/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/1417016-receiversspecifier?language=objc +func (s_ ScriptCommand) SetReceiversSpecifier(value IScriptObjectSpecifier) { + objc.Call[objc.Void](s_, objc.Sel("setReceiversSpecifier:"), objc.Ptr(value)) } -// [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")) +// [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 } -// 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")) - 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:"), objc.Ptr(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] +// 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/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/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 } -// 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] +// Returns the command description for 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:"), objc.Ptr(value)) +// [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 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) ScriptErrorExpectedTypeDescriptor() AppleEventDescriptor { - rv := objc.Call[AppleEventDescriptor](s_, objc.Sel("scriptErrorExpectedTypeDescriptor")) +// [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 } -// 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) SetScriptErrorExpectedTypeDescriptor(value IAppleEventDescriptor) { - objc.Call[objc.Void](s_, objc.Sel("setScriptErrorExpectedTypeDescriptor:"), objc.Ptr(value)) +// [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 } diff --git a/macos/foundation/script_command_description.gen.go b/macos/foundation/script_command_description.gen.go index 91db7666..749a1ca6 100644 --- a/macos/foundation/script_command_description.gen.go +++ b/macos/foundation/script_command_description.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package foundation @@ -18,19 +18,19 @@ type _ScriptCommandDescriptionClass struct { // An interface definition for the [ScriptCommandDescription] class. type IScriptCommandDescription interface { objc.IObject - IsOptionalArgumentWithName(argumentName string) bool CreateCommandInstance() ScriptCommand - CreateCommandInstanceWithZone(zone unsafe.Pointer) ScriptCommand + IsOptionalArgumentWithName(argumentName string) bool TypeForArgumentWithName(argumentName string) string + CreateCommandInstanceWithZone(zone unsafe.Pointer) ScriptCommand AppleEventCodeForArgumentWithName(argumentName string) uint - ArgumentNames() []string - AppleEventCode() uint AppleEventClassCode() uint + AppleEventCode() 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] @@ -65,10 +65,6 @@ func (sc _ScriptCommandDescriptionClass) Alloc() ScriptCommandDescription { return rv } -func ScriptCommandDescription_Alloc() ScriptCommandDescription { - return ScriptCommandDescriptionClass.Alloc() -} - func (sc _ScriptCommandDescriptionClass) New() ScriptCommandDescription { rv := objc.Call[ScriptCommandDescription](sc, objc.Sel("new")) rv.Autorelease() @@ -84,14 +80,6 @@ func (s_ ScriptCommandDescription) Init() ScriptCommandDescription { 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 -func (s_ ScriptCommandDescription) IsOptionalArgumentWithName(argumentName string) bool { - rv := objc.Call[bool](s_, objc.Sel("isOptionalArgumentWithName:"), argumentName) - 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 @@ -100,11 +88,11 @@ func (s_ ScriptCommandDescription) CreateCommandInstance() ScriptCommand { return rv } -// Creates and returns an instance of the command object described by the receiver in the specified memory zone. [Full Topic] +// 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/1413755-createcommandinstancewithzone?language=objc -func (s_ ScriptCommandDescription) CreateCommandInstanceWithZone(zone unsafe.Pointer) ScriptCommand { - rv := objc.Call[ScriptCommand](s_, objc.Sel("createCommandInstanceWithZone:"), zone) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsscriptcommanddescription/1415798-isoptionalargumentwithname?language=objc +func (s_ ScriptCommandDescription) IsOptionalArgumentWithName(argumentName string) bool { + rv := objc.Call[bool](s_, objc.Sel("isOptionalArgumentWithName:"), argumentName) return rv } @@ -116,6 +104,14 @@ func (s_ ScriptCommandDescription) TypeForArgumentWithName(argumentName string) return rv } +// Creates and returns an instance of the command object described by the receiver in the specified memory zone. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsscriptcommanddescription/1413755-createcommandinstancewithzone?language=objc +func (s_ ScriptCommandDescription) CreateCommandInstanceWithZone(zone unsafe.Pointer) ScriptCommand { + rv := objc.Call[ScriptCommand](s_, objc.Sel("createCommandInstanceWithZone:"), zone) + 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 @@ -124,11 +120,11 @@ func (s_ ScriptCommandDescription) AppleEventCodeForArgumentWithName(argumentNam return rv } -// Returns the names (or keys) for all arguments of the receiver’s command. [Full Topic] +// 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/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/1416191-appleeventclasscode?language=objc +func (s_ ScriptCommandDescription) AppleEventClassCode() uint { + rv := objc.Call[uint](s_, objc.Sel("appleEventClassCode")) return rv } @@ -140,14 +136,6 @@ 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 @@ -156,19 +144,19 @@ func (s_ ScriptCommandDescription) AppleEventCodeForReturnType() uint { return rv } -// Returns the name of the suite that contains the command described by the receiver. [Full Topic] +// Returns the return type of the command. [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")) +// [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 } -// Returns the name of the class that will be instantiated to handle the 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/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/1409125-argumentnames?language=objc +func (s_ ScriptCommandDescription) ArgumentNames() []string { + rv := objc.Call[[]string](s_, objc.Sel("argumentNames")) return rv } @@ -180,10 +168,18 @@ func (s_ ScriptCommandDescription) CommandName() string { 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 name of the class that will be instantiated to handle 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")) return rv } diff --git a/macos/foundation/script_execution_context.gen.go b/macos/foundation/script_execution_context.gen.go index 097e2741..c3453d4e 100644 --- a/macos/foundation/script_execution_context.gen.go +++ b/macos/foundation/script_execution_context.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package foundation @@ -44,10 +44,6 @@ func (sc _ScriptExecutionContextClass) Alloc() ScriptExecutionContext { return rv } -func ScriptExecutionContext_Alloc() ScriptExecutionContext { - return ScriptExecutionContextClass.Alloc() -} - func (sc _ScriptExecutionContextClass) New() ScriptExecutionContext { rv := objc.Call[ScriptExecutionContext](sc, objc.Sel("new")) rv.Autorelease() diff --git a/macos/foundation/script_object_specifier.gen.go b/macos/foundation/script_object_specifier.gen.go index 3763915a..46fa0ba4 100644 --- a/macos/foundation/script_object_specifier.gen.go +++ b/macos/foundation/script_object_specifier.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package foundation @@ -18,26 +18,26 @@ type _ScriptObjectSpecifierClass struct { // An interface definition for the [ScriptObjectSpecifier] class. type IScriptObjectSpecifier interface { objc.IObject - ObjectsByEvaluatingWithContainers(containers objc.IObject) objc.Object IndicesOfObjectsByEvaluatingWithContainerCount(container objc.IObject, count *int) *int - ContainerIsObjectBeingTested() bool - SetContainerIsObjectBeingTested(value bool) - ContainerSpecifier() ScriptObjectSpecifier - SetContainerSpecifier(value IScriptObjectSpecifier) + ObjectsByEvaluatingWithContainers(containers objc.IObject) objc.Object + EvaluationErrorSpecifier() ScriptObjectSpecifier + Descriptor() AppleEventDescriptor + ChildSpecifier() ScriptObjectSpecifier + SetChildSpecifier(value IScriptObjectSpecifier) ContainerIsRangeContainerObject() bool SetContainerIsRangeContainerObject(value bool) + ContainerClassDescription() ScriptClassDescription + SetContainerClassDescription(value IScriptClassDescription) Key() string SetKey(value string) KeyClassDescription() ScriptClassDescription - ContainerClassDescription() ScriptClassDescription - SetContainerClassDescription(value IScriptClassDescription) - EvaluationErrorSpecifier() ScriptObjectSpecifier - ObjectsByEvaluatingSpecifier() objc.Object - ChildSpecifier() ScriptObjectSpecifier - SetChildSpecifier(value IScriptObjectSpecifier) - Descriptor() AppleEventDescriptor + ContainerSpecifier() ScriptObjectSpecifier + SetContainerSpecifier(value IScriptObjectSpecifier) + ContainerIsObjectBeingTested() bool + SetContainerIsObjectBeingTested(value bool) EvaluationErrorNumber() int SetEvaluationErrorNumber(value int) + ObjectsByEvaluatingSpecifier() objc.Object } // An abstract class used to represent natural language expressions. [Full Topic] @@ -86,10 +86,6 @@ func (sc _ScriptObjectSpecifierClass) Alloc() ScriptObjectSpecifier { return rv } -func ScriptObjectSpecifier_Alloc() ScriptObjectSpecifier { - return ScriptObjectSpecifierClass.Alloc() -} - func (sc _ScriptObjectSpecifierClass) New() ScriptObjectSpecifier { rv := objc.Call[ScriptObjectSpecifier](sc, objc.Sel("new")) rv.Autorelease() @@ -105,14 +101,6 @@ 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 @@ -136,34 +124,43 @@ func (s_ ScriptObjectSpecifier) IndicesOfObjectsByEvaluatingWithContainerCount(c 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 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/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/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 } -// 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) SetContainerIsObjectBeingTested(value bool) { - objc.Call[objc.Void](s_, objc.Sel("setContainerIsObjectBeingTested:"), value) +// [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 the container specifier of the receiver. [Full Topic] +// Returns an Apple event descriptor that represents the receiver. [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/1410018-descriptor?language=objc +func (s_ ScriptObjectSpecifier) Descriptor() AppleEventDescriptor { + rv := objc.Call[AppleEventDescriptor](s_, objc.Sel("descriptor")) return rv } -// Sets the container specifier of the receiver. [Full Topic] +// Sets the receiver’s child reference. [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:"), objc.Ptr(value)) +// [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:"), objc.Ptr(value)) } // Sets whether the receiver’s container is to be the container for a range specifier or a top-level object. [Full Topic] @@ -181,6 +178,21 @@ 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:"), objc.Ptr(value)) +} + // Sets the key of the receiver. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/foundation/nsscriptobjectspecifier/1412986-key?language=objc @@ -204,58 +216,34 @@ func (s_ ScriptObjectSpecifier) KeyClassDescription() ScriptClassDescription { 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) 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:"), objc.Ptr(value)) -} - -// Returns the object specifier in which an evaluation error occurred. [Full Topic] +// Sets the container specifier of the receiver. [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/1414424-containerspecifier?language=objc +func (s_ ScriptObjectSpecifier) ContainerSpecifier() ScriptObjectSpecifier { + rv := objc.Call[ScriptObjectSpecifier](s_, objc.Sel("containerSpecifier")) return rv } -// Returns the actual object represented by the nested series of object specifiers. [Full Topic] +// Sets the container specifier of the receiver. [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 +// [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:"), objc.Ptr(value)) } -// Sets the receiver’s child reference. [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/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/1410887-containerisobjectbeingtested?language=objc +func (s_ ScriptObjectSpecifier) ContainerIsObjectBeingTested() bool { + rv := objc.Call[bool](s_, objc.Sel("containerIsObjectBeingTested")) 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:"), objc.Ptr(value)) -} - -// 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 value of the evaluation error. [Full Topic] @@ -272,3 +260,11 @@ 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 749e282c..df1fa08f 100644 --- a/macos/foundation/script_suite_registry.gen.go +++ b/macos/foundation/script_suite_registry.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package foundation @@ -18,18 +18,18 @@ type _ScriptSuiteRegistryClass struct { // An interface definition for the [ScriptSuiteRegistry] class. type IScriptSuiteRegistry interface { objc.IObject - RegisterClassDescription(classDescription IScriptClassDescription) - RegisterCommandDescription(commandDescription IScriptCommandDescription) - SuiteForAppleEventCode(appleEventCode uint) string - LoadSuitesFromBundle(bundle IBundle) - CommandDescriptionsInSuite(suiteName string) map[string]ScriptCommandDescription - ClassDescriptionsInSuite(suiteName string) map[string]ScriptClassDescription + 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) - AppleEventCodeForSuite(suiteName string) uint - BundleForSuite(suiteName string) Bundle + CommandDescriptionsInSuite(suiteName string) map[string]ScriptCommandDescription + SuiteForAppleEventCode(appleEventCode uint) string + RegisterClassDescription(classDescription IScriptClassDescription) AeteResource(languageName string) []byte - CommandDescriptionWithAppleEventClassAndAppleEventCode(appleEventClassCode uint, appleEventIDCode uint) ScriptCommandDescription + LoadSuitesFromBundle(bundle IBundle) + BundleForSuite(suiteName string) Bundle + RegisterCommandDescription(commandDescription IScriptCommandDescription) SuiteNames() []string } @@ -51,10 +51,6 @@ func (sc _ScriptSuiteRegistryClass) Alloc() ScriptSuiteRegistry { return rv } -func ScriptSuiteRegistry_Alloc() ScriptSuiteRegistry { - return ScriptSuiteRegistryClass.Alloc() -} - func (sc _ScriptSuiteRegistryClass) New() ScriptSuiteRegistry { rv := objc.Call[ScriptSuiteRegistry](sc, objc.Sel("new")) rv.Autorelease() @@ -70,6 +66,14 @@ 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 @@ -85,40 +89,33 @@ func ScriptSuiteRegistry_SharedScriptSuiteRegistry() ScriptSuiteRegistry { return ScriptSuiteRegistryClass.SharedScriptSuiteRegistry() } -// 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:"), objc.Ptr(classDescription)) -} - -// 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] +// 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/1408858-registercommanddescription?language=objc -func (s_ ScriptSuiteRegistry) RegisterCommandDescription(commandDescription IScriptCommandDescription) { - objc.Call[objc.Void](s_, objc.Sel("registerCommandDescription:"), objc.Ptr(commandDescription)) +// [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 } -// Returns the name of the suite definition associated with the given four-character Apple event code, code. [Full Topic] +// Sets the single, shared instance of NSScriptSuiteRegistry to registry. [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) - 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:"), objc.Ptr(registry)) } -// Loads the suite definitions in bundle aBundle, invoking loadSuiteWithDictionary:fromBundle: for each suite found. [Full Topic] +// Sets the single, shared instance of NSScriptSuiteRegistry to registry. [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:"), objc.Ptr(bundle)) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsscriptsuiteregistry/1409955-setsharedscriptsuiteregistry?language=objc +func ScriptSuiteRegistry_SetSharedScriptSuiteRegistry(registry IScriptSuiteRegistry) { + ScriptSuiteRegistryClass.SetSharedScriptSuiteRegistry(registry) } -// Returns the command descriptions contained in the suite identified by suiteName. [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/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/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 } @@ -130,14 +127,6 @@ 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 @@ -145,22 +134,29 @@ func (s_ ScriptSuiteRegistry) LoadSuiteWithDictionaryFromBundle(suiteDeclaration objc.Call[objc.Void](s_, objc.Sel("loadSuiteWithDictionary:fromBundle:"), suiteDeclaration, objc.Ptr(bundle)) } -// Returns the Apple event code associated with the suite named suiteName, such as ‘core’ for the Core suite. [Full Topic] +// Returns the command descriptions contained in the suite identified by suiteName. [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) +// [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 } -// Returns the bundle containing the suite-definition property list (extension .scriptSuite) identified by suiteName. [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/1414868-bundleforsuite?language=objc -func (s_ ScriptSuiteRegistry) BundleForSuite(suiteName string) Bundle { - rv := objc.Call[Bundle](s_, objc.Sel("bundleForSuite:"), suiteName) +// [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 } +// 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:"), objc.Ptr(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 @@ -169,26 +165,26 @@ func (s_ ScriptSuiteRegistry) AeteResource(languageName string) []byte { 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 [foundation/nsscriptsuiteregistry/loadsuitewithdictionary] 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) - return rv +// [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:"), objc.Ptr(bundle)) } -// Sets the single, shared instance of NSScriptSuiteRegistry to registry. [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/1409955-setsharedscriptsuiteregistry?language=objc -func (sc _ScriptSuiteRegistryClass) SetSharedScriptSuiteRegistry(registry IScriptSuiteRegistry) { - objc.Call[objc.Void](sc, objc.Sel("setSharedScriptSuiteRegistry:"), objc.Ptr(registry)) +// [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 } -// 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 ScriptSuiteRegistry_SetSharedScriptSuiteRegistry(registry IScriptSuiteRegistry) { - ScriptSuiteRegistryClass.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:"), objc.Ptr(commandDescription)) } // Returns the names of the suite definitions currently loaded by the application. [Full Topic] diff --git a/macos/foundation/script_whose_test.gen.go b/macos/foundation/script_whose_test.gen.go index ff98d43d..193502ff 100644 --- a/macos/foundation/script_whose_test.gen.go +++ b/macos/foundation/script_whose_test.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package foundation @@ -44,10 +44,6 @@ func (sc _ScriptWhoseTestClass) Alloc() ScriptWhoseTest { return rv } -func ScriptWhoseTest_Alloc() ScriptWhoseTest { - return ScriptWhoseTestClass.Alloc() -} - func (sc _ScriptWhoseTestClass) New() ScriptWhoseTest { rv := objc.Call[ScriptWhoseTest](sc, objc.Sel("new")) rv.Autorelease() diff --git a/macos/foundation/secure_unarchive_from_data_transformer.gen.go b/macos/foundation/secure_unarchive_from_data_transformer.gen.go index b30b2f9e..5521f0f4 100644 --- a/macos/foundation/secure_unarchive_from_data_transformer.gen.go +++ b/macos/foundation/secure_unarchive_from_data_transformer.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package foundation @@ -38,10 +38,6 @@ func (sc _SecureUnarchiveFromDataTransformerClass) Alloc() SecureUnarchiveFromDa return rv } -func SecureUnarchiveFromDataTransformer_Alloc() SecureUnarchiveFromDataTransformer { - return SecureUnarchiveFromDataTransformerClass.Alloc() -} - func (sc _SecureUnarchiveFromDataTransformerClass) New() SecureUnarchiveFromDataTransformer { rv := objc.Call[SecureUnarchiveFromDataTransformer](sc, objc.Sel("new")) rv.Autorelease() diff --git a/macos/foundation/set.gen.go b/macos/foundation/set.gen.go index 9d08cfcf..9b2f0b2a 100644 --- a/macos/foundation/set.gen.go +++ b/macos/foundation/set.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package foundation @@ -18,32 +18,34 @@ 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 - IsEqualToSet(otherSet ISet) bool - SetByAddingObjectsFromArray(other []objc.IObject) Set - EnumerateObjectsWithOptionsUsingBlock(opts EnumerationOptions, block func(obj objc.Object, stop *bool)) + 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 + 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) ContainsObject(anObject objc.IObject) bool - IntersectsSet(otherSet ISet) bool - MakeObjectsPerformSelector(aSelector objc.Selector) - ObjectsWithOptionsPassingTest(opts EnumerationOptions, predicate func(obj objc.Object, stop *bool) bool) Set + ObjectEnumerator() Enumerator + SetValueForKey(value objc.IObject, key string) IsSubsetOfSet(otherSet ISet) bool - SetByAddingObjectsFromSet(other ISet) Set - RemoveObserverForKeyPathContext(observer objc.IObject, keyPath string, context unsafe.Pointer) - DescriptionWithLocale(locale objc.IObject) string + SetByAddingObjectsFromArray(other []objc.IObject) Set + ObjectsWithOptionsPassingTest(opts EnumerationOptions, predicate func(obj objc.Object, stop *bool) bool) Set AnyObject() objc.Object - SetValueForKey(value objc.IObject, key string) - AddObserverForKeyPathOptionsContext(observer objc.IObject, keyPath string, options KeyValueObservingOptions, context unsafe.Pointer) - ValueForKey(key string) objc.Object + IntersectsSet(otherSet ISet) bool + AllObjects() []objc.Object Description() string Count() uint - AllObjects() []objc.Object } // A static, unordered collection of unique objects. [Full Topic] @@ -59,16 +61,18 @@ func SetFrom(ptr unsafe.Pointer) Set { } } -func (sc _SetClass) Set() Set { - rv := objc.Call[Set](sc, objc.Sel("set")) +func (s_ Set) InitWithSetCopyItems(set ISet, flag bool) Set { + rv := objc.Call[Set](s_, objc.Sel("initWithSet:copyItems:"), objc.Ptr(set), flag) return rv } -// Creates and returns an empty set. [Full Topic] +// Initializes a newly allocated set and adds to it members of another given set. [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/1408407-initwithset?language=objc +func NewSetWithSetCopyItems(set ISet, flag bool) Set { + instance := SetClass.Alloc().InitWithSetCopyItems(set, flag) + instance.Autorelease() + return instance } func (s_ Set) InitWithObjects(firstObj objc.IObject, args ...any) Set { @@ -85,18 +89,6 @@ func NewSetWithObjects(firstObj objc.IObject, args ...any) Set { return instance } -func (sc _SetClass) SetWithSet(set ISet) Set { - rv := objc.Call[Set](sc, objc.Sel("setWithSet:"), objc.Ptr(set)) - return rv -} - -// Creates and returns a set containing the objects from another set. [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) -} - func (sc _SetClass) SetWithObject(object objc.IObject) Set { rv := objc.Call[Set](sc, objc.Sel("setWithObject:"), objc.Ptr(object)) return rv @@ -109,6 +101,44 @@ 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{objc.Ptr(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 objc.IObject, cnt uint) Set { + rv := objc.Call[Set](sc, objc.Sel("setWithObjects:count:"), objc.Ptr(objects), cnt) + return rv +} + +// 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/1574824-setwithobjects?language=objc +func Set_SetWithObjectsCount(objects objc.IObject, cnt uint) Set { + return SetClass.SetWithObjectsCount(objects, cnt) +} + +func (s_ Set) InitWithObjectsCount(objects objc.IObject, cnt uint) Set { + rv := objc.Call[Set](s_, objc.Sel("initWithObjects:count:"), objc.Ptr(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/nsset/1407458-initwithobjects?language=objc +func NewSetWithObjectsCount(objects objc.IObject, cnt uint) Set { + instance := SetClass.Alloc().InitWithObjectsCount(objects, cnt) + instance.Autorelease() + return instance +} + func (s_ Set) InitWithArray(array []objc.IObject) Set { rv := objc.Call[Set](s_, objc.Sel("initWithArray:"), array) return rv @@ -123,6 +153,20 @@ func NewSetWithArray(array []objc.IObject) Set { return instance } +func (s_ Set) InitWithSet(set ISet) Set { + rv := objc.Call[Set](s_, objc.Sel("initWithSet:"), objc.Ptr(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 @@ -135,59 +179,57 @@ func Set_SetWithArray(array []objc.IObject) Set { return SetClass.SetWithArray(array) } -func (sc _SetClass) SetWithCollectionViewIndexPath(indexPath IIndexPath) Set { - rv := objc.Call[Set](sc, objc.Sel("setWithCollectionViewIndexPath:"), objc.Ptr(indexPath)) +func (sc _SetClass) SetWithCollectionViewIndexPaths(indexPaths []IIndexPath) Set { + rv := objc.Call[Set](sc, objc.Sel("setWithCollectionViewIndexPaths:"), indexPaths) return rv } // [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) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsset/1528255-setwithcollectionviewindexpaths?language=objc +func Set_SetWithCollectionViewIndexPaths(indexPaths []IIndexPath) Set { + return SetClass.SetWithCollectionViewIndexPaths(indexPaths) } -func (sc _SetClass) SetWithObjectsCount(objects objc.IObject, cnt uint) Set { - rv := objc.Call[Set](sc, objc.Sel("setWithObjects:count:"), objc.Ptr(objects), cnt) +func (sc _SetClass) Set() Set { + rv := objc.Call[Set](sc, objc.Sel("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 empty set. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsset/1574824-setwithobjects?language=objc -func Set_SetWithObjectsCount(objects objc.IObject, cnt uint) Set { - return SetClass.SetWithObjectsCount(objects, cnt) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsset/1574818-set?language=objc +func Set_Set() Set { + return SetClass.Set() } -func (sc _SetClass) SetWithCollectionViewIndexPaths(indexPaths []IIndexPath) Set { - rv := objc.Call[Set](sc, objc.Sel("setWithCollectionViewIndexPaths:"), indexPaths) +func (sc _SetClass) SetWithSet(set ISet) Set { + rv := objc.Call[Set](sc, objc.Sel("setWithSet:"), objc.Ptr(set)) return rv } -// [Full Topic] +// Creates and returns a set containing the objects from another set. [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/1574817-setwithset?language=objc +func Set_SetWithSet(set ISet) Set { + return SetClass.SetWithSet(set) } -func (s_ Set) InitWithSet(set ISet) Set { - rv := objc.Call[Set](s_, objc.Sel("initWithSet:"), objc.Ptr(set)) +func (s_ Set) Init() Set { + rv := objc.Call[Set](s_, objc.Sel("init")) 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) SetWithCollectionViewIndexPath(indexPath IIndexPath) Set { + rv := objc.Call[Set](sc, objc.Sel("setWithCollectionViewIndexPath:"), objc.Ptr(indexPath)) + return rv } -func (s_ Set) Init() Set { - rv := objc.Call[Set](s_, objc.Sel("init")) - return rv +// [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 (sc _SetClass) Alloc() Set { @@ -195,10 +237,6 @@ func (sc _SetClass) Alloc() Set { return rv } -func Set_Alloc() Set { - return SetClass.Alloc() -} - func (sc _SetClass) New() Set { rv := objc.Call[Set](sc, objc.Sel("new")) rv.Autorelease() @@ -209,19 +247,41 @@ func NewSet() Set { return SetClass.New() } -// Returns an enumerator object that lets you access each object in the 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/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/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 set of objects that pass a test in a given block. [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/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) +// [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:"), objc.Ptr(object)) + 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] +// +// [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:"), objc.Ptr(other)) return rv } @@ -232,43 +292,49 @@ func (s_ Set) EnumerateObjectsUsingBlock(block func(obj objc.Object, stop *bool) objc.Call[objc.Void](s_, objc.Sel("enumerateObjectsUsingBlock:"), block) } -// Returns an array of the set’s content sorted as specified by a given array of sort descriptors. [Full Topic] +// Compares the receiving set to another set. [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) +// [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:"), objc.Ptr(otherSet)) return rv } -// 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 string that represents the contents of the set, formatted as a property list. [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:"), objc.Ptr(predicate)) +// [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 } -// Determines whether a given object is present in the set, and returns that object if it is. [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/1412896-member?language=objc -func (s_ Set) Member(object objc.IObject) objc.Object { - rv := objc.Call[objc.Object](s_, objc.Sel("member:"), objc.Ptr(object)) +// [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:"), objc.Ptr(anObject)) return rv } -// Compares the receiving set to another set. [Full Topic] +// Raises an exception. [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:"), objc.Ptr(otherSet)) - return rv +// [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:"), objc.Ptr(observer), keyPath) } -// Returns a new set formed by adding the objects in a given array to the receiving set. [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/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/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) +} + +// 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 } @@ -279,21 +345,36 @@ func (s_ Set) EnumerateObjectsWithOptionsUsingBlock(opts EnumerationOptions, blo objc.Call[objc.Void](s_, objc.Sel("enumerateObjectsWithOptions:usingBlock:"), opts, block) } -// [Full Topic] +// Raises an exception. [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) +// [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:"), objc.Ptr(observer), keyPath, context) } -// Returns a new set formed by adding a given object 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/1416316-setbyaddingobject?language=objc -func (s_ Set) SetByAddingObject(anObject objc.IObject) Set { - rv := objc.Call[Set](s_, objc.Sel("setByAddingObject:"), objc.Ptr(anObject)) +// [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 +} + +// 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/1416324-filteredsetusingpredicate?language=objc +func (s_ Set) FilteredSetUsingPredicate(predicate IPredicate) Set { + rv := objc.Call[Set](s_, objc.Sel("filteredSetUsingPredicate:"), objc.Ptr(predicate)) 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:"), objc.Ptr(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 @@ -302,27 +383,19 @@ func (s_ Set) ContainsObject(anObject objc.IObject) bool { 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] +// Returns an enumerator object that lets you access each object in the set. [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:"), objc.Ptr(otherSet)) +// [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) -} - -// Returns a set of objects that pass a test in a given block, using the specified enumeration options. [Full Topic] +// Invokes setValue:forKey: on each of the set’s members. [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 +// [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) } // Returns a Boolean value that indicates whether every object in the receiving set is also present in another given set. [Full Topic] @@ -333,26 +406,19 @@ func (s_ Set) IsSubsetOfSet(otherSet ISet) bool { return rv } -// Returns a new set formed by adding the objects in a given set to the receiving set. [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/1408217-setbyaddingobjectsfromset?language=objc -func (s_ Set) SetByAddingObjectsFromSet(other ISet) Set { - rv := objc.Call[Set](s_, objc.Sel("setByAddingObjectsFromSet:"), objc.Ptr(other)) +// [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 } -// 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:"), objc.Ptr(observer), keyPath, context) -} - -// Returns a string that represents the contents of the set, formatted as a property list. [Full Topic] +// 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/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/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 } @@ -364,25 +430,19 @@ func (s_ Set) AnyObject() objc.Object { return rv } -// Invokes setValue:forKey: on each of the set’s members. [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) -} - -// Raises an exception. [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/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:"), objc.Ptr(observer), keyPath, options, context) +// [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:"), objc.Ptr(otherSet)) + return rv } -// Return a set containing the results of invoking valueForKey: on each of the receiving set's members. [Full Topic] +// 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/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/1417653-allobjects?language=objc +func (s_ Set) AllObjects() []objc.Object { + rv := objc.Call[[]objc.Object](s_, objc.Sel("allObjects")) return rv } @@ -401,11 +461,3 @@ 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/set_command.gen.go b/macos/foundation/set_command.gen.go index 5d5f959e..a6f610cd 100644 --- a/macos/foundation/set_command.gen.go +++ b/macos/foundation/set_command.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package foundation @@ -39,10 +39,6 @@ func (sc _SetCommandClass) Alloc() SetCommand { return rv } -func SetCommand_Alloc() SetCommand { - return SetCommandClass.Alloc() -} - func (sc _SetCommandClass) New() SetCommand { rv := objc.Call[SetCommand](sc, objc.Sel("new")) rv.Autorelease() diff --git a/macos/foundation/socket_port.gen.go b/macos/foundation/socket_port.gen.go index 01884539..44f62fd2 100644 --- a/macos/foundation/socket_port.gen.go +++ b/macos/foundation/socket_port.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package foundation @@ -18,11 +18,11 @@ type _SocketPortClass struct { // An interface definition for the [SocketPort] class. type ISocketPort interface { IPort - Socket() SocketNativeHandle - Address() []byte ProtocolFamily() int - SocketType() int Protocol() int + Address() []byte + SocketType() int + Socket() SocketNativeHandle } // A port that represents a BSD socket. [Full Topic] @@ -38,63 +38,77 @@ func SocketPortFrom(ptr unsafe.Pointer) SocketPort { } } -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) 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) Init() SocketPort { + rv := objc.Call[SocketPort](s_, objc.Sel("init")) return rv } -// Initializes the receiver as a remote socket with the provided arguments. [Full Topic] +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 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 } -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")) +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) return rv } -func (s_ SocketPort) InitRemoteWithTCPPortHost(port int, hostName string) SocketPort { - rv := objc.Call[SocketPort](s_, objc.Sel("initRemoteWithTCPPort:host:"), port, hostName) +// 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) 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 } @@ -104,10 +118,6 @@ func (sc _SocketPortClass) Alloc() SocketPort { return rv } -func SocketPort_Alloc() SocketPort { - return SocketPortClass.Alloc() -} - func (sc _SocketPortClass) New() SocketPort { rv := objc.Call[SocketPort](sc, objc.Sel("new")) rv.Autorelease() @@ -118,27 +128,27 @@ func NewSocketPort() SocketPort { return SocketPortClass.New() } -// The receiver’s native socket identifier on the platform. [Full Topic] +// The protocol family 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/1399543-protocolfamily?language=objc +func (s_ SocketPort) ProtocolFamily() int { + rv := objc.Call[int](s_, objc.Sel("protocolFamily")) return rv } -// The receiver’s socket address structure stored inside an NSData object. [Full Topic] +// The protocol that the receiver uses for communication. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nssocketport/1399480-address?language=objc -func (s_ SocketPort) Address() []byte { - rv := objc.Call[[]byte](s_, objc.Sel("address")) +// [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 } -// The protocol family that the receiver uses for communication. [Full Topic] +// The receiver’s socket address structure stored inside an NSData object. [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")) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nssocketport/1399480-address?language=objc +func (s_ SocketPort) Address() []byte { + rv := objc.Call[[]byte](s_, objc.Sel("address")) return rv } @@ -150,10 +160,10 @@ func (s_ SocketPort) SocketType() int { 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 } diff --git a/macos/foundation/socket_port_name_server.gen.go b/macos/foundation/socket_port_name_server.gen.go index b02398a2..55f7b81c 100644 --- a/macos/foundation/socket_port_name_server.gen.go +++ b/macos/foundation/socket_port_name_server.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package foundation @@ -38,10 +38,6 @@ func (sc _SocketPortNameServerClass) Alloc() SocketPortNameServer { return rv } -func SocketPortNameServer_Alloc() SocketPortNameServer { - return SocketPortNameServerClass.Alloc() -} - func (sc _SocketPortNameServerClass) New() SocketPortNameServer { rv := objc.Call[SocketPortNameServer](sc, objc.Sel("new")) rv.Autorelease() diff --git a/macos/foundation/sort_descriptor.gen.go b/macos/foundation/sort_descriptor.gen.go index 228df42b..20fb079d 100644 --- a/macos/foundation/sort_descriptor.gen.go +++ b/macos/foundation/sort_descriptor.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package foundation @@ -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 - Ascending() bool + Comparator() Comparator } // An immutable description of how to order a collection of objects according to a property common to all the objects. [Full Topic] @@ -40,6 +40,58 @@ 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 @@ -71,10 +123,6 @@ func (sc _SortDescriptorClass) Alloc() SortDescriptor { return rv } -func SortDescriptor_Alloc() SortDescriptor { - return SortDescriptorClass.Alloc() -} - func (sc _SortDescriptorClass) New() SortDescriptor { rv := objc.Call[SortDescriptor](sc, objc.Sel("new")) rv.Autorelease() @@ -105,14 +153,6 @@ func (s_ SortDescriptor) CompareObjectToObject(object1 objc.IObject, object2 obj return rv } -// The comparator for the sort descriptor. [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")) - return rv -} - // The key that specifies the property to compare during sorting. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/foundation/nssortdescriptor/1415022-key?language=objc @@ -121,6 +161,14 @@ func (s_ SortDescriptor) Key() string { return rv } +// A Boolean value that indicates whether the receiver specifies sorting in ascending order. [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")) + return rv +} + // The selector for comparing objects. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/foundation/nssortdescriptor/1418337-selector?language=objc @@ -137,10 +185,10 @@ func (s_ SortDescriptor) ReversedSortDescriptor() objc.Object { return rv } -// A Boolean value that indicates whether the receiver specifies sorting in ascending order. [Full Topic] +// The comparator for the sort descriptor. [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/1411426-comparator?language=objc +func (s_ SortDescriptor) Comparator() Comparator { + rv := objc.Call[Comparator](s_, objc.Sel("comparator")) return rv } diff --git a/macos/foundation/specifier_test.gen.go b/macos/foundation/specifier_test.gen.go index 0c6274d3..e3d7f76e 100644 --- a/macos/foundation/specifier_test.gen.go +++ b/macos/foundation/specifier_test.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package foundation @@ -52,10 +52,6 @@ func (sc _SpecifierTestClass) Alloc() SpecifierTest { return rv } -func SpecifierTest_Alloc() SpecifierTest { - return SpecifierTestClass.Alloc() -} - func (sc _SpecifierTestClass) New() SpecifierTest { rv := objc.Call[SpecifierTest](sc, objc.Sel("new")) rv.Autorelease() diff --git a/macos/foundation/spell_server.gen.go b/macos/foundation/spell_server.gen.go index dfb41c97..db7a1aa3 100644 --- a/macos/foundation/spell_server.gen.go +++ b/macos/foundation/spell_server.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package foundation @@ -21,7 +21,7 @@ type ISpellServer interface { RegisterLanguageByVendor(language string, vendor string) bool IsWordInUserDictionariesCaseSensitive(word string, flag bool) bool Run() - Delegate() SpellServerDelegateWrapper + Delegate() SpellServerDelegateObject SetDelegate(value PSpellServerDelegate) SetDelegateObject(valueObject objc.IObject) } @@ -44,10 +44,6 @@ func (sc _SpellServerClass) Alloc() SpellServer { return rv } -func SpellServer_Alloc() SpellServer { - return SpellServerClass.Alloc() -} - func (sc _SpellServerClass) New() SpellServer { rv := objc.Call[SpellServer](sc, objc.Sel("new")) rv.Autorelease() @@ -89,8 +85,8 @@ func (s_ SpellServer) Run() { // Returns the receiver’s delegate. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/foundation/nsspellserver/1414240-delegate?language=objc -func (s_ SpellServer) Delegate() SpellServerDelegateWrapper { - rv := objc.Call[SpellServerDelegateWrapper](s_, objc.Sel("delegate")) +func (s_ SpellServer) Delegate() SpellServerDelegateObject { + rv := objc.Call[SpellServerDelegateObject](s_, objc.Sel("delegate")) return rv } diff --git a/macos/foundation/spell_server_delegate.gen.go b/macos/foundation/spell_server_delegate.gen.go index 0c0ad01d..a6e07c34 100644 --- a/macos/foundation/spell_server_delegate.gen.go +++ b/macos/foundation/spell_server_delegate.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package foundation @@ -10,16 +10,136 @@ 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 []map[string]objc.Object) 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 { - _SpellServerDidLearnWordInLanguage func(sender SpellServer, word string, language string) + _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 []map[string]objc.Object) 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 +} + +// 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 []map[string]objc.Object) 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 []map[string]objc.Object) Range { + return di._SpellServerCheckGrammarInStringLanguageDetails(sender, stringToCheck, language, details) +} func (di *SpellServerDelegate) HasSpellServerDidLearnWordInLanguage() bool { return di._SpellServerDidLearnWordInLanguage != nil } @@ -37,19 +157,138 @@ 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 +} -// A concrete type wrapper for the [PSpellServerDelegate] protocol. -type SpellServerDelegateWrapper struct { +// 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) + +// A concrete type for the [PSpellServerDelegate] protocol. +type SpellServerDelegateObject struct { objc.Object } -func (s_ SpellServerDelegateWrapper) HasSpellServerDidLearnWordInLanguage() bool { +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:"), objc.Ptr(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:"), objc.Ptr(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:"), objc.Ptr(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:"), objc.Ptr(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 []map[string]objc.Object) Range { + rv := objc.Call[Range](s_, objc.Sel("spellServer:checkGrammarInString:language:details:"), objc.Ptr(sender), stringToCheck, language, details) + return rv +} + +func (s_ SpellServerDelegateObject) HasSpellServerDidLearnWordInLanguage() bool { return s_.RespondsToSelector(objc.Sel("spellServer:didLearnWord:inLanguage:")) } // Notifies the delegate that the sender has added the specified word to the user’s list of acceptable words in the specified language. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/foundation/nsspellserverdelegate/1407851-spellserver?language=objc -func (s_ SpellServerDelegateWrapper) SpellServerDidLearnWordInLanguage(sender ISpellServer, word string, language string) { +func (s_ SpellServerDelegateObject) SpellServerDidLearnWordInLanguage(sender SpellServer, word string, language string) { objc.Call[objc.Void](s_, objc.Sel("spellServer:didLearnWord:inLanguage:"), objc.Ptr(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:"), objc.Ptr(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:"), objc.Ptr(sender), stringToCheck, offset, checkingTypes, options, objc.Ptr(orthography), wordCount) + return rv +} diff --git a/macos/foundation/stream.gen.go b/macos/foundation/stream.gen.go index 6b4a88fa..dfa0d53f 100644 --- a/macos/foundation/stream.gen.go +++ b/macos/foundation/stream.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package foundation @@ -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() StreamDelegateWrapper + Delegate() StreamDelegateObject SetDelegate(value PStreamDelegate) SetDelegateObject(valueObject objc.IObject) - StreamStatus() StreamStatus } // An abstract class representing a stream. [Full Topic] @@ -49,10 +49,6 @@ func (sc _StreamClass) Alloc() Stream { return rv } -func Stream_Alloc() Stream { - return StreamClass.Alloc() -} - func (sc _StreamClass) New() Stream { rv := objc.Call[Stream](sc, objc.Sel("new")) rv.Autorelease() @@ -68,27 +64,6 @@ 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:"), objc.Ptr(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:"), objc.Ptr(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 @@ -112,6 +87,13 @@ 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 @@ -126,6 +108,28 @@ 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:"), objc.Ptr(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:"), objc.Ptr(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 @@ -137,8 +141,8 @@ func (s_ Stream) StreamError() Error { // Sets the receiver’s delegate. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/foundation/nsstream/1418423-delegate?language=objc -func (s_ Stream) Delegate() StreamDelegateWrapper { - rv := objc.Call[StreamDelegateWrapper](s_, objc.Sel("delegate")) +func (s_ Stream) Delegate() StreamDelegateObject { + rv := objc.Call[StreamDelegateObject](s_, objc.Sel("delegate")) return rv } @@ -156,11 +160,3 @@ func (s_ Stream) SetDelegate(value PStreamDelegate) { func (s_ Stream) SetDelegateObject(valueObject objc.IObject) { objc.Call[objc.Void](s_, objc.Sel("setDelegate:"), objc.Ptr(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/stream_delegate.gen.go b/macos/foundation/stream_delegate.gen.go index 90bedf9d..b551b0c0 100644 --- a/macos/foundation/stream_delegate.gen.go +++ b/macos/foundation/stream_delegate.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package foundation @@ -38,18 +38,21 @@ func (di *StreamDelegate) StreamHandleEvent(aStream Stream, eventCode StreamEven di._StreamHandleEvent(aStream, eventCode) } -// A concrete type wrapper for the [PStreamDelegate] protocol. -type StreamDelegateWrapper struct { +// ensure impl type implements protocol interface +var _ PStreamDelegate = (*StreamDelegateObject)(nil) + +// A concrete type for the [PStreamDelegate] protocol. +type StreamDelegateObject struct { objc.Object } -func (s_ StreamDelegateWrapper) HasStreamHandleEvent() bool { +func (s_ StreamDelegateObject) HasStreamHandleEvent() bool { return s_.RespondsToSelector(objc.Sel("stream:handleEvent:")) } // The delegate receives this message when a given event has occurred on a given stream. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/foundation/nsstreamdelegate/1410079-stream?language=objc -func (s_ StreamDelegateWrapper) StreamHandleEvent(aStream IStream, eventCode StreamEvent) { +func (s_ StreamDelegateObject) StreamHandleEvent(aStream Stream, eventCode StreamEvent) { objc.Call[objc.Void](s_, objc.Sel("stream:handleEvent:"), objc.Ptr(aStream), eventCode) } diff --git a/macos/foundation/string.gen.go b/macos/foundation/string.gen.go index aef2fd11..b4983373 100644 --- a/macos/foundation/string.gen.go +++ b/macos/foundation/string.gen.go @@ -1,11 +1,10 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package foundation import ( "unsafe" - "github.com/progrium/macdriver/macos/coregraphics" "github.com/progrium/macdriver/objc" ) @@ -19,96 +18,116 @@ type _StringClass struct { // An interface definition for the [String] class. type IString interface { objc.IObject - 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 string, flag bool, outputArray []string, 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 + CapitalizedStringWithLocale(locale ILocale) string 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 - RangeOfStringOptions(searchString string, mask StringCompareOptions) Range + CompletePathIntoStringCaseSensitiveMatchesIntoArrayFilterTypes(outputName string, flag bool, outputArray []string, filterTypes []string) uint + RangeOfCharacterFromSetOptionsRange(searchSet ICharacterSet, mask StringCompareOptions, rangeOfReceiverToSearch Range) Range StringByAppendingPathExtension(str string) string + UppercaseStringWithLocale(locale ILocale) string GetLineStartEndContentsEndForRange(startPtr *uint, lineEndPtr *uint, contentsEndPtr *uint, range_ Range) - GetFileSystemRepresentationMaxLength(cname *uint8, max uint) bool - ContainsString(str string) bool + 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 CaseInsensitiveCompare(string_ string) ComparisonResult - PropertyListFromStringsFileFormat() Dictionary - ComponentsSeparatedByString(separator string) []string + 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 EnumerateLinesUsingBlock(block func(line string, stop *bool)) - LocalizedStandardRangeOfString(str string) Range - GetBytesMaxLengthUsedLengthEncodingOptionsRangeRemainingRange(buffer unsafe.Pointer, maxBufferCount uint, usedBufferCount *uint, encoding StringEncoding, options StringEncodingConversionOptions, range_ Range, leftover RangePointer) bool - UppercaseStringWithLocale(locale ILocale) string - StringByAppendingPathExtensionForType(contentType objc.IObject) string - CanBeConvertedToEncoding(encoding StringEncoding) bool CStringUsingEncoding(encoding StringEncoding) *uint8 - EnumerateSubstringsInRangeOptionsUsingBlock(range_ Range, opts StringEnumerationOptions, block func(substring string, substringRange Range, enclosingRange Range, stop *bool)) + VariantFittingPresentationWidth(width int) string + SubstringWithRange(range_ Range) string + 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 + CanBeConvertedToEncoding(encoding StringEncoding) bool + PropertyListFromStringsFileFormat() Dictionary + StringByReplacingOccurrencesOfStringWithString(target string, replacement string) string LocalizedCompare(string_ string) ComparisonResult - StringsByAppendingPaths(paths []string) []string - StringByAppendingPathComponentConformingToType(partialName string, contentType objc.IObject) string + StringByAppendingPathExtensionForType(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 + WriteToFileAtomicallyEncodingError(path string, useAuxiliaryFile bool, enc StringEncoding, error IError) 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 IError) 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 + StringByAppendingPathComponentConformingToType(partialName string, contentType objc.IObject) string IntValue() int - UppercaseString() string - UTF8String() *uint8 + DoubleValue() float64 PrecomposedStringWithCanonicalMapping() string - PathComponents() []string - StringByExpandingTildeInPath() string - IsAbsolutePath() bool + Description() string CapitalizedString() string - LongLongValue() int64 - PrecomposedStringWithCompatibilityMapping() string + FastestEncoding() StringEncoding + StringByExpandingTildeInPath() string + StringByResolvingSymlinksInPath() string + LocalizedCapitalizedString() string LocalizedLowercaseString() string - LocalizedUppercaseString() string - Description() string - DoubleValue() float64 - SmallestEncoding() StringEncoding - Length() uint - StringByDeletingLastPathComponent() string - Hash() uint - DecomposedStringWithCanonicalMapping() string PathExtension() string - StringByResolvingSymlinksInPath() string + Hash() uint StringByAbbreviatingWithTildeInPath() string - BoolValue() bool - FastestEncoding() StringEncoding + PathComponents() []string + PrecomposedStringWithCompatibilityMapping() string FloatValue() float64 + IntegerValue() int + BoolValue() bool + SmallestEncoding() StringEncoding LastPathComponent() string - DecomposedStringWithCompatibilityMapping() string - LowercaseString() string - FileSystemRepresentation() *uint8 + UTF8String() *uint8 + Length() uint StringByStandardizingPath() string StringByRemovingPercentEncoding() string - LocalizedCapitalizedString() string + FileSystemRepresentation() *uint8 + StringByDeletingLastPathComponent() string + DecomposedStringWithCompatibilityMapping() string + StringByDeletingPathExtension() string + LongLongValue() int64 + IsAbsolutePath() bool + LowercaseString() string + UppercaseString() string + LocalizedUppercaseString() string + DecomposedStringWithCanonicalMapping() string } // A static, plain-text Unicode string object. [Full Topic] @@ -124,16 +143,28 @@ func StringFrom(ptr unsafe.Pointer) String { } } -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) +func (sc _StringClass) StringWithContentsOfURLUsedEncodingError(url IURL, enc *StringEncoding, error IError) String { + rv := objc.Call[String](sc, objc.Sel("stringWithContentsOfURL:usedEncoding:error:"), objc.Ptr(url), enc, objc.Ptr(error)) return rv } -// [Full Topic] +// 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/3547180-initwithcharactersnocopy?language=objc -func NewStringWithCharactersNoCopyLengthDeallocator(chars *Unichar, len uint, deallocator func(arg0 *Unichar, arg1 uint)) String { - instance := StringClass.Alloc().InitWithCharactersNoCopyLengthDeallocator(chars, len, deallocator) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsstring/1497408-stringwithcontentsofurl?language=objc +func String_StringWithContentsOfURLUsedEncodingError(url IURL, enc *StringEncoding, error IError) String { + return StringClass.StringWithContentsOfURLUsedEncodingError(url, enc, error) +} + +func (s_ String) InitWithContentsOfURLUsedEncodingError(url IURL, enc *StringEncoding, error IError) String { + rv := objc.Call[String](s_, objc.Sel("initWithContentsOfURL:usedEncoding:error:"), objc.Ptr(url), enc, objc.Ptr(error)) + 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]: https://developer.apple.com/documentation/foundation/nsstring/1414472-initwithcontentsofurl?language=objc +func NewStringWithContentsOfURLUsedEncodingError(url IURL, enc *StringEncoding, error IError) String { + instance := StringClass.Alloc().InitWithContentsOfURLUsedEncodingError(url, enc, error) instance.Autorelease() return instance } @@ -150,30 +181,44 @@ func String_StringWithString(string_ string) String { return StringClass.StringWithString(string_) } -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 (s_ String) InitWithDataEncoding(data []byte, encoding StringEncoding) String { - rv := objc.Call[String](s_, objc.Sel("initWithData:encoding:"), data, encoding) +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) return rv } -// Returns an NSString object initialized by converting given data into UTF-16 code units using a given encoding. [Full Topic] +// 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/1416374-initwithdata?language=objc -func NewStringWithDataEncoding(data []byte, encoding StringEncoding) String { - instance := StringClass.Alloc().InitWithDataEncoding(data, encoding) +// [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) + 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) + 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 NewStringWithCharactersNoCopyLengthFreeWhenDone(characters *Unichar, length uint, freeBuffer bool) String { + instance := StringClass.Alloc().InitWithCharactersNoCopyLengthFreeWhenDone(characters, length, freeBuffer) instance.Autorelease() return instance } @@ -190,58 +235,82 @@ func String_StringWithFormat(format string, args ...any) String { return StringClass.StringWithFormat(format, args...) } -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) +func (sc _StringClass) StringWithContentsOfFileEncodingError(path string, enc StringEncoding, error IError) String { + rv := objc.Call[String](sc, objc.Sel("stringWithContentsOfFile:encoding:error:"), path, enc, objc.Ptr(error)) return rv } -// [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/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 +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsstring/1497327-stringwithcontentsoffile?language=objc +func String_StringWithContentsOfFileEncodingError(path string, enc StringEncoding, error IError) String { + return StringClass.StringWithContentsOfFileEncodingError(path, enc, error) } -func (s_ String) InitWithString(aString string) String { - rv := objc.Call[String](s_, objc.Sel("initWithString:"), aString) +func (s_ String) InitWithContentsOfURLEncodingError(url IURL, enc StringEncoding, error IError) String { + rv := objc.Call[String](s_, objc.Sel("initWithContentsOfURL:encoding:error:"), objc.Ptr(url), enc, objc.Ptr(error)) return rv } -// Returns an NSString object initialized by copying the characters from another given string. [Full Topic] +// 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/1411293-initwithstring?language=objc -func NewStringWithString(aString string) String { - instance := StringClass.Alloc().InitWithString(aString) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsstring/1414463-initwithcontentsofurl?language=objc +func NewStringWithContentsOfURLEncodingError(url IURL, enc StringEncoding, error IError) String { + instance := StringClass.Alloc().InitWithContentsOfURLEncodingError(url, enc, error) instance.Autorelease() 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) +func (sc _StringClass) StringWithContentsOfFileUsedEncodingError(path string, enc *StringEncoding, error IError) String { + rv := objc.Call[String](sc, objc.Sel("stringWithContentsOfFile:usedEncoding:error:"), path, enc, objc.Ptr(error)) 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] +// 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/1407339-initwithbytes?language=objc -func NewStringWithBytesLengthEncoding(bytes unsafe.Pointer, len uint, encoding StringEncoding) String { - instance := StringClass.Alloc().InitWithBytesLengthEncoding(bytes, len, encoding) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsstring/1497254-stringwithcontentsoffile?language=objc +func String_StringWithContentsOfFileUsedEncodingError(path string, enc *StringEncoding, error IError) 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...)...) + 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] +// +// [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 (sc _StringClass) StringWithCharactersLength(characters *Unichar, length uint) String { - rv := objc.Call[String](sc, objc.Sel("stringWithCharacters:length:"), characters, length) +func (sc _StringClass) StringWithContentsOfURLEncodingError(url IURL, enc StringEncoding, error IError) String { + rv := objc.Call[String](sc, objc.Sel("stringWithContentsOfURL:encoding:error:"), objc.Ptr(url), enc, objc.Ptr(error)) return rv } -// Returns a string containing a given number of characters taken from a given C array of UTF-16 code units. [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/1497248-stringwithcharacters?language=objc -func String_StringWithCharactersLength(characters *Unichar, length uint) String { - return StringClass.StringWithCharactersLength(characters, length) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsstring/1497360-stringwithcontentsofurl?language=objc +func String_StringWithContentsOfURLEncodingError(url IURL, enc StringEncoding, error IError) String { + return StringClass.StringWithContentsOfURLEncodingError(url, enc, error) +} + +func (s_ String) InitWithDataEncoding(data []byte, encoding StringEncoding) String { + rv := objc.Call[String](s_, objc.Sel("initWithData:encoding:"), data, encoding) + return rv +} + +// 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/1416374-initwithdata?language=objc +func NewStringWithDataEncoding(data []byte, encoding StringEncoding) String { + instance := StringClass.Alloc().InitWithDataEncoding(data, encoding) + instance.Autorelease() + return instance } func (s_ String) InitWithCharactersLength(characters *Unichar, length uint) String { @@ -258,6 +327,20 @@ 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 @@ -272,16 +355,30 @@ func NewStringWithUTF8String(nullTerminatedCString *uint8) String { return instance } -func (sc _StringClass) LocalizedStringWithFormat(format string, args ...any) String { - rv := objc.Call[String](sc, objc.Sel("localizedStringWithFormat:"), append([]any{format}, args...)...) +func (sc _StringClass) StringWithCStringEncoding(cString *uint8, enc StringEncoding) String { + rv := objc.Call[String](sc, objc.Sel("stringWithCString:encoding:"), cString, enc) 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 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/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/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 IError) String { + rv := objc.Call[String](s_, objc.Sel("initWithContentsOfFile:usedEncoding:error:"), path, enc, objc.Ptr(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 IError) String { + instance := StringClass.Alloc().InitWithContentsOfFileUsedEncodingError(path, enc, error) + instance.Autorelease() + return instance } func (s_ String) Init() String { @@ -289,122 +386,132 @@ func (s_ String) Init() String { return rv } -func (sc _StringClass) StringWithUTF8String(nullTerminatedCString *uint8) String { - rv := objc.Call[String](sc, objc.Sel("stringWithUTF8String:"), nullTerminatedCString) +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 created by copying the data from a given C array of UTF8-encoded bytes. [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/1497379-stringwithutf8string?language=objc -func String_StringWithUTF8String(nullTerminatedCString *uint8) String { - return StringClass.StringWithUTF8String(nullTerminatedCString) +// [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 (sc _StringClass) StringWithContentsOfURLEncodingError(url IURL, enc StringEncoding, error IError) String { - rv := objc.Call[String](sc, objc.Sel("stringWithContentsOfURL:encoding:error:"), objc.Ptr(url), enc, objc.Ptr(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 a string created 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/1497360-stringwithcontentsofurl?language=objc -func String_StringWithContentsOfURLEncodingError(url IURL, enc StringEncoding, error IError) String { - return StringClass.StringWithContentsOfURLEncodingError(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 } -func (sc _StringClass) StringWithContentsOfFileEncodingError(path string, enc StringEncoding, error IError) String { - rv := objc.Call[String](sc, objc.Sel("stringWithContentsOfFile:encoding:error:"), path, enc, objc.Ptr(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 a string created by reading data from the file at a given path interpreted using a given encoding. [Full Topic] +// [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsstring/1497327-stringwithcontentsoffile?language=objc -func String_StringWithContentsOfFileEncodingError(path string, enc StringEncoding, error IError) String { - return StringClass.StringWithContentsOfFileEncodingError(path, 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) Alloc() String { - rv := objc.Call[String](sc, objc.Sel("alloc")) +func (s_ String) InitWithContentsOfFileEncodingError(path string, enc StringEncoding, error IError) String { + rv := objc.Call[String](s_, objc.Sel("initWithContentsOfFile:encoding:error:"), path, enc, objc.Ptr(error)) return rv } -func String_Alloc() String { - return StringClass.Alloc() +// 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 IError) String { + instance := StringClass.Alloc().InitWithContentsOfFileEncodingError(path, enc, error) + instance.Autorelease() + return instance } -func (sc _StringClass) New() String { - rv := objc.Call[String](sc, objc.Sel("new")) - rv.Autorelease() +func (s_ String) InitWithFormat(format string, args ...any) String { + rv := objc.Call[String](s_, objc.Sel("initWithFormat:"), append([]any{format}, args...)...) return rv } -func NewString() String { - return StringClass.New() +// 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 } -// 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/1407803-isequaltostring?language=objc -func (s_ String) IsEqualToString(aString string) bool { - rv := objc.Call[bool](s_, objc.Sel("isEqualToString:"), aString) +func (sc _StringClass) StringWithUTF8String(nullTerminatedCString *uint8) String { + rv := objc.Call[String](sc, objc.Sel("stringWithUTF8String:"), nullTerminatedCString) return rv } -// Returns a Boolean value that indicates whether a given string matches the beginning characters of the receiver. [Full Topic] +// Returns a string created by copying the data from a given C array of UTF8-encoded bytes. [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 +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsstring/1497379-stringwithutf8string?language=objc +func String_StringWithUTF8String(nullTerminatedCString *uint8) String { + return StringClass.StringWithUTF8String(nullTerminatedCString) } -// 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/1411611-maximumlengthofbytesusingencodin?language=objc -func (s_ String) MaximumLengthOfBytesUsingEncoding(enc StringEncoding) uint { - rv := objc.Call[uint](s_, objc.Sel("maximumLengthOfBytesUsingEncoding:"), enc) +func (s_ String) InitWithCStringEncoding(nullTerminatedCString *uint8, encoding StringEncoding) String { + rv := objc.Call[String](s_, objc.Sel("initWithCString:encoding:"), nullTerminatedCString, encoding) return rv } -// Compares strings as sorted by the Finder. [Full Topic] +// Returns an NSString object initialized using the characters in a given C array, interpreted according to a given encoding. [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_) - return rv +// [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 } -// 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) +func (sc _StringClass) LocalizedStringWithFormat(format string, args ...any) String { + rv := objc.Call[String](sc, objc.Sel("localizedStringWithFormat:"), append([]any{format}, args...)...) return rv } -// Returns an array containing substrings from the receiver that have been divided by characters in a given set. [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/1410120-componentsseparatedbycharactersi?language=objc -func (s_ String) ComponentsSeparatedByCharactersInSet(separator ICharacterSet) []string { - rv := objc.Call[[]string](s_, objc.Sel("componentsSeparatedByCharactersInSet:"), objc.Ptr(separator)) +// [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 (sc _StringClass) Alloc() String { + rv := objc.Call[String](sc, objc.Sel("alloc")) return rv } -// 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/1416036-rangeofcomposedcharactersequence?language=objc -func (s_ String) RangeOfComposedCharacterSequenceAtIndex(index uint) Range { - rv := objc.Call[Range](s_, objc.Sel("rangeOfComposedCharacterSequenceAtIndex:"), index) +func (sc _StringClass) New() String { + rv := objc.Call[String](sc, objc.Sel("new")) + rv.Autorelease() return rv } -// Returns a Boolean value indicating whether the string contains a given string by performing a case-insensitive, locale-aware search. [Full Topic] +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] // -// [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/1411946-stringbyaddingpercentencodingwit?language=objc +func (s_ String) StringByAddingPercentEncodingWithAllowedCharacters(allowedCharacters ICharacterSet) string { + rv := objc.Call[string](s_, objc.Sel("stringByAddingPercentEncodingWithAllowedCharacters:"), objc.Ptr(allowedCharacters)) return rv } @@ -416,90 +523,106 @@ func (s_ String) CapitalizedStringWithLocale(locale ILocale) string { 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 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/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/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 } -// 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 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/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/1415462-stringbytrimmingcharactersinset?language=objc +func (s_ String) StringByTrimmingCharactersInSet(set ICharacterSet) string { + rv := objc.Call[string](s_, objc.Sel("stringByTrimmingCharactersInSet:"), objc.Ptr(set)) return rv } -// Returns a new string in which the characters in a specified range of the receiver are replaced by a given string. [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/1410029-stringbyreplacingcharactersinran?language=objc -func (s_ String) StringByReplacingCharactersInRangeWithString(range_ Range, replacement string) string { - rv := objc.Call[string](s_, objc.Sel("stringByReplacingCharactersInRange:withString:"), range_, replacement) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsstring/1411841-completepathintostring?language=objc +func (s_ String) CompletePathIntoStringCaseSensitiveMatchesIntoArrayFilterTypes(outputName string, flag bool, outputArray []string, filterTypes []string) uint { + rv := objc.Call[uint](s_, objc.Sel("completePathIntoString:caseSensitive:matchesIntoArray:filterTypes:"), outputName, flag, outputArray, filterTypes) return rv } -// Compares the string with a given string using a case-insensitive, localized, comparison. [Full Topic] +// 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] // -// [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/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:"), objc.Ptr(searchSet), mask, rangeOfReceiverToSearch) return rv } -// Returns a new string made by appending a given string to the receiver. [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/1412307-stringbyappendingstring?language=objc -func (s_ String) StringByAppendingString(aString string) string { - rv := objc.Call[string](s_, objc.Sel("stringByAppendingString:"), aString) +// [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 } -// Finds and returns the range in the string of the first character, using given options, from a given character set. [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/1416898-rangeofcharacterfromset?language=objc -func (s_ String) RangeOfCharacterFromSetOptions(searchSet ICharacterSet, mask StringCompareOptions) Range { - rv := objc.Call[Range](s_, objc.Sel("rangeOfCharacterFromSet:options:"), objc.Ptr(searchSet), mask) +// [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:"), objc.Ptr(locale)) return rv } -// Returns a string object containing the characters of the receiver that lie within a given range. [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/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/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_) +} + +// Converts the string to a given encoding and stores it in a buffer. [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) return rv } -// 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 new string in which the characters in a specified range of the receiver are replaced by a given string. [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:"), objc.Ptr(allowedCharacters)) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsstring/1410029-stringbyreplacingcharactersinran?language=objc +func (s_ String) StringByReplacingCharactersInRangeWithString(range_ Range, replacement string) string { + rv := objc.Call[string](s_, objc.Sel("stringByReplacingCharactersInRange:withString:"), range_, replacement) return rv } -// Returns a localized string intended for display in a notification alert. [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/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/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 } -// Returns a localized string intended for display in a notification alert. [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/1649585-localizedusernotificationstringf?language=objc -func String_LocalizedUserNotificationStringForKeyArguments(key string, arguments []objc.IObject) string { - return StringClass.LocalizedUserNotificationStringForKeyArguments(key, arguments) +// [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 } -// Returns a string variation suitable for the specified presentation width. [Full Topic] +// Finds and returns the range in the string of the first character from a given character set. [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) +// [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:"), objc.Ptr(searchSet)) + return rv +} + +// 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/1415100-stringsbyappendingpaths?language=objc +func (s_ String) StringsByAppendingPaths(paths []string) []string { + rv := objc.Call[[]string](s_, objc.Sel("stringsByAppendingPaths:"), paths) return rv } @@ -511,113 +634,145 @@ func (s_ String) LowercaseStringWithLocale(locale ILocale) string { return rv } -// Returns the range of characters representing the line or lines containing a given range. [Full Topic] +// Returns the character at a given UTF-16 code unit index. [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_) +// [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] +// 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/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/1416898-rangeofcharacterfromset?language=objc +func (s_ String) RangeOfCharacterFromSetOptions(searchSet ICharacterSet, mask StringCompareOptions) Range { + rv := objc.Call[Range](s_, objc.Sel("rangeOfCharacterFromSet:options:"), objc.Ptr(searchSet), mask) 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] +// 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] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsstring/1411841-completepathintostring?language=objc -func (s_ String) CompletePathIntoStringCaseSensitiveMatchesIntoArrayFilterTypes(outputName string, flag bool, outputArray []string, 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/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, objc.Ptr(options), attributes, objc.Ptr(context)) return rv } -// Returns the range of characters representing the paragraph or paragraphs containing a given range. [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/1408548-paragraphrangeforrange?language=objc -func (s_ String) ParagraphRangeForRange(range_ Range) Range { - rv := objc.Call[Range](s_, objc.Sel("paragraphRangeForRange:"), range_) +// [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 string built from the strings in a given array by concatenating them with a path separator between each pair. [Full Topic] +// Returns the result of invoking [foundation/nsstring/compare] with NSCaseInsensitiveSearch as the only option. [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) - return rv +// [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 } -// Returns a string built from the strings in a given array by concatenating them with a path separator between each pair. [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/1417198-pathwithcomponents?language=objc -func String_PathWithComponents(components []string) string { - return StringClass.PathWithComponents(components) +// [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 made by appending to the receiver a string constructed from a given format string and the following arguments. [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/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/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 } -// Returns an NSData object containing a representation of the receiver encoded using a given encoding. [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/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/1416529-hassuffix?language=objc +func (s_ String) HasSuffix(str string) bool { + rv := objc.Call[bool](s_, objc.Sel("hasSuffix:"), str) return rv } -// [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/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/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 } -// [Full Topic] +// 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/2990401-deferredlocalizedintentsstringwi?language=objc -func String_DeferredLocalizedIntentsStringWithFormat(format string, args ...any) string { - return StringClass.DeferredLocalizedIntentsStringWithFormat(format, args...) +// [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 } -// Returns the bounding box size the receiver occupies when drawn with the given attributes. [Full Topic] +// Enumerates all the lines in the string. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsstring/1531844-sizewithattributes?language=objc -func (s_ String) SizeWithAttributes(attrs map[AttributedStringKey]objc.IObject) coregraphics.Size { - rv := objc.Call[coregraphics.Size](s_, objc.Sel("sizeWithAttributes:"), attrs) +// [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 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 a string variation suitable for the specified presentation width. [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/1413104-variantfittingpresentationwidth?language=objc +func (s_ String) VariantFittingPresentationWidth(width int) string { + rv := objc.Call[string](s_, objc.Sel("variantFittingPresentationWidth:"), width) 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] +// 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/1413576-stringencodingfordata?language=objc -func (sc _StringClass) StringEncodingForDataEncodingOptionsConvertedStringUsedLossyConversion(data []byte, opts map[StringEncodingDetectionOptionsKey]objc.IObject, string_ string, 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/1418469-substringwithrange?language=objc +func (s_ String) SubstringWithRange(range_ Range) string { + rv := objc.Call[string](s_, objc.Sel("substringWithRange:"), range_) 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] +// Gets a given range of characters as bytes in a specified encoding. [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_ string, usedLossyConversion *bool) StringEncoding { - return StringClass.StringEncodingForDataEncodingOptionsConvertedStringUsedLossyConversion(data, opts, string_, usedLossyConversion) +// [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 +} + +// Finds and returns the range of the first occurrence of a given string within the string. [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) + return rv +} + +// 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/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 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] @@ -628,74 +783,136 @@ func (s_ String) StringByPaddingToLengthWithStringStartingAtIndex(newLength uint 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] +// Compares the string using the specified options and returns the lexical ordering for the range. [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/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) return rv } -// Returns the number of bytes required to store the receiver in a given encoding. [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/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/1414563-containsstring?language=objc +func (s_ String) ContainsString(str string) bool { + rv := objc.Call[bool](s_, objc.Sel("containsString:"), str) return rv } -// Returns a new string made by removing from both ends of the receiver characters contained in a given character set. [Full Topic] +// Draws the attributed string in the specified bounding rectangle using the provided options. [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:"), objc.Ptr(set)) +// [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, objc.Ptr(options), attributes, objc.Ptr(context)) +} + +// 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) return rv } -// Finds and returns the range of the first occurrence of a given string within the string, subject to given options. [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/1416849-rangeofstring?language=objc -func (s_ String) RangeOfStringOptions(searchString string, mask StringCompareOptions) Range { - rv := objc.Call[Range](s_, objc.Sel("rangeOfString:options:"), searchString, mask) +// [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 new string made by appending to the receiver an extension separator followed by a given extension. [Full Topic] +// 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] // -// [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/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) 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 the range of characters representing the paragraph or paragraphs containing a given range. [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/1408548-paragraphrangeforrange?language=objc +func (s_ String) ParagraphRangeForRange(range_ Range) Range { + rv := objc.Call[Range](s_, objc.Sel("paragraphRangeForRange:"), range_) + return rv } -// 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 a new string by applying a specified transform to the string. [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/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 Boolean value indicating whether the string contains a given string by performing a case-sensitive, locale-unaware search. [Full Topic] +// Draws the attributed string inside the specified bounding rectangle. [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/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) +} + +// 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/1413779-stringbyfoldingwithoptions?language=objc +func (s_ String) StringByFoldingWithOptionsLocale(options StringCompareOptions, locale ILocale) string { + rv := objc.Call[string](s_, objc.Sel("stringByFoldingWithOptions:locale:"), options, objc.Ptr(locale)) return rv } -// Returns the result of invoking compare: with NSCaseInsensitiveSearch as the only option. [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/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/1416696-datausingencoding?language=objc +func (s_ String) DataUsingEncoding(encoding StringEncoding) []byte { + rv := objc.Call[[]byte](s_, objc.Sel("dataUsingEncoding:"), encoding) + return rv +} + +// Copies characters from a given range in the receiver into a given buffer. [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_) +} + +// 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/1416036-rangeofcomposedcharactersequence?language=objc +func (s_ String) RangeOfComposedCharacterSequenceAtIndex(index uint) Range { + rv := objc.Call[Range](s_, objc.Sel("rangeOfComposedCharacterSequenceAtIndex:"), index) + 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:"), objc.Ptr(separator)) + return rv +} + +// Compares the string with a given string using a case-insensitive, localized, comparison. [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_) + return rv +} + +// 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/1414368-substringfromindex?language=objc +func (s_ String) SubstringFromIndex(from uint) string { + rv := objc.Call[string](s_, objc.Sel("substringFromIndex:"), from) + return rv +} + +// 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/1409496-canbeconvertedtoencoding?language=objc +func (s_ String) CanBeConvertedToEncoding(encoding StringEncoding) bool { + rv := objc.Call[bool](s_, objc.Sel("canBeConvertedToEncoding:"), encoding) return rv } @@ -707,19 +924,59 @@ func (s_ String) PropertyListFromStringsFileFormat() Dictionary { return rv } -// Returns an array containing substrings from the receiver that have been divided by a given separator. [Full Topic] +// 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/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/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 } -// Enumerates all the lines in the string. [Full Topic] +// Compares the string and a given string using a localized comparison. [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) +// [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:"), objc.Ptr(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] +// +// [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 +} + +// Writes the contents of the receiver to a file at a given path using a given encoding. [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 IError) bool { + rv := objc.Call[bool](s_, objc.Sel("writeToFile:atomically:encoding:error:"), path, useAuxiliaryFile, enc, objc.Ptr(error)) + return rv } // 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] @@ -730,176 +987,229 @@ func (s_ String) LocalizedStandardRangeOfString(str string) Range { return rv } -// Gets a given range of characters as bytes in a specified encoding. [Full Topic] +// Returns a new string made by appending to the receiver a given string. [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/1417069-stringbyappendingpathcomponent?language=objc +func (s_ String) StringByAppendingPathComponent(str string) string { + rv := objc.Call[string](s_, objc.Sel("stringByAppendingPathComponent:"), 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 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/1413316-uppercasestringwithlocale?language=objc -func (s_ String) UppercaseStringWithLocale(locale ILocale) string { - rv := objc.Call[string](s_, objc.Sel("uppercaseStringWithLocale:"), objc.Ptr(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 } -// [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/3564809-stringbyappendingpathextensionfo?language=objc -func (s_ String) StringByAppendingPathExtensionForType(contentType objc.IObject) string { - rv := objc.Call[string](s_, objc.Sel("stringByAppendingPathExtensionForType:"), objc.Ptr(contentType)) +// [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 a Boolean value that indicates whether the receiver can be converted to a given encoding without loss of information. [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/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/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] +// +// [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_ string, usedLossyConversion *bool) StringEncoding { + rv := objc.Call[StringEncoding](sc, objc.Sel("stringEncodingForData:encodingOptions:convertedString:usedLossyConversion:"), data, opts, string_, usedLossyConversion) return rv } -// Returns a representation of the string as a C string using a given encoding. [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/1408489-cstringusingencoding?language=objc -func (s_ String) CStringUsingEncoding(encoding StringEncoding) *uint8 { - rv := objc.Call[*uint8](s_, objc.Sel("cStringUsingEncoding:"), encoding) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsstring/1413576-stringencodingfordata?language=objc +func String_StringEncodingForDataEncodingOptionsConvertedStringUsedLossyConversion(data []byte, opts map[StringEncodingDetectionOptionsKey]objc.IObject, string_ string, usedLossyConversion *bool) StringEncoding { + return StringClass.StringEncodingForDataEncodingOptionsConvertedStringUsedLossyConversion(data, opts, string_, usedLossyConversion) +} + +// Compares strings as sorted by the Finder. [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_) return rv } -// Enumerates the substrings of the specified type in the specified range of the string. [Full Topic] +// 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] // -// [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) +// [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, objc.Ptr(locale)) + 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, objc.Ptr(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 } -// Compares the string and a given string using a localized comparison. [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/1416999-localizedcompare?language=objc -func (s_ String) LocalizedCompare(string_ string) ComparisonResult { - rv := objc.Call[ComparisonResult](s_, objc.Sel("localizedCompare:"), 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 } -// Returns an array of strings made by separately appending to the receiver each string in a given array. [Full Topic] +// Returns the result of invoking [foundation/nsstring/compare] with a nil locale. [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/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) + return rv +} + +// 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/1413692-datausingencoding?language=objc +func (s_ String) DataUsingEncodingAllowLossyConversion(encoding StringEncoding, lossy bool) []byte { + rv := objc.Call[[]byte](s_, objc.Sel("dataUsingEncoding:allowLossyConversion:"), encoding, lossy) return rv } // [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, objc.Ptr(contentType)) +// [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 } -// Returns the result of invoking compare: with no options and the receiver’s full extent as the range. [Full Topic] +// [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/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) return rv } -// Returns a human-readable string giving the name of a given encoding. [Full Topic] +// 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] // -// [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) +// [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 IError) bool { + rv := objc.Call[bool](s_, objc.Sel("writeToURL:atomically:encoding:error:"), objc.Ptr(url), useAuxiliaryFile, enc, objc.Ptr(error)) return rv } -// Returns a human-readable string giving the name of a given encoding. [Full Topic] +// [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]: 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...)...) + return rv } -// Returns the character at a given UTF-16 code unit index. [Full Topic] +// [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/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] +// +// [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 } -// Returns a Boolean value that indicates whether a given string matches the ending characters of the receiver. [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/1416529-hassuffix?language=objc -func (s_ String) HasSuffix(str string) bool { - rv := objc.Call[bool](s_, objc.Sel("hasSuffix:"), str) +// [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 by applying a specified transform to the string. [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/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/1408017-substringtoindex?language=objc +func (s_ String) SubstringToIndex(to uint) string { + rv := objc.Call[string](s_, objc.Sel("substringToIndex:"), to) 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] +// Returns a localized string intended for display in a notification alert. [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_) +// [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 } -// The NSInteger value of the string. [Full Topic] +// Returns a localized string intended for display in a notification alert. [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/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] +// +// [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 } -// A new string made by deleting the extension (if any, and only the last) from the receiver. [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/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/1413214-componentsseparatedbystring?language=objc +func (s_ String) ComponentsSeparatedByString(separator string) []string { + rv := objc.Call[[]string](s_, objc.Sel("componentsSeparatedByString:"), separator) return rv } -// The integer value of the string. [Full Topic] +// [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsstring/1414988-intvalue?language=objc -func (s_ String) IntValue() int { - rv := objc.Call[int](s_, objc.Sel("intValue")) +// [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, objc.Ptr(contentType)) return rv } -// An uppercase representation of the string. [Full Topic] +// The integer value of the string. [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/1414988-intvalue?language=objc +func (s_ String) IntValue() int { + rv := objc.Call[int](s_, objc.Sel("intValue")) return rv } -// A null-terminated UTF8 representation of the string. [Full Topic] +// The floating-point value of the string as a double. [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/1414031-doublevalue?language=objc +func (s_ String) DoubleValue() float64 { + rv := objc.Call[float64](s_, objc.Sel("doubleValue")) return rv } @@ -911,19 +1221,27 @@ func (s_ String) PrecomposedStringWithCanonicalMapping() string { return rv } -// The file-system path components of the receiver. [Full Topic] +// This NSString object. [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/1410889-description?language=objc +func (s_ String) Description() string { + rv := objc.Call[string](s_, objc.Sel("description")) return rv } -// A new string made by expanding the initial component of the receiver to its full path value. [Full Topic] +// A capitalized representation of the string. [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")) +// [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 fastest encoding to which the receiver may be converted without loss of information. [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")) return rv } @@ -942,186 +1260,195 @@ func String_DefaultCStringEncoding() StringEncoding { return StringClass.DefaultCStringEncoding() } -// Returns a zero-terminated list of the encodings string objects support in the application’s environment. [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/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/1407716-stringbyexpandingtildeinpath?language=objc +func (s_ String) StringByExpandingTildeInPath() string { + rv := objc.Call[string](s_, objc.Sel("stringByExpandingTildeInPath")) return rv } -// Returns a zero-terminated list of the encodings string objects support in the application’s environment. [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/1417579-availablestringencodings?language=objc -func String_AvailableStringEncodings() *StringEncoding { - return StringClass.AvailableStringEncodings() +// [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 Boolean value that indicates whether the receiver represents an absolute path. [Full Topic] +// Returns a capitalized representation of the receiver using the current locale. [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/1414885-localizedcapitalizedstring?language=objc +func (s_ String) LocalizedCapitalizedString() string { + rv := objc.Call[string](s_, objc.Sel("localizedCapitalizedString")) return rv } -// A capitalized representation of the string. [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/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/1414125-localizedlowercasestring?language=objc +func (s_ String) LocalizedLowercaseString() string { + rv := objc.Call[string](s_, objc.Sel("localizedLowercaseString")) return rv } -// The long long value of the string. [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/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/1407801-pathextension?language=objc +func (s_ String) PathExtension() string { + rv := objc.Call[string](s_, objc.Sel("pathExtension")) return rv } -// A string made by normalizing the receiver’s contents using the Unicode Normalization Form KC. [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/1412625-precomposedstringwithcompatibili?language=objc -func (s_ String) PrecomposedStringWithCompatibilityMapping() string { - rv := objc.Call[string](s_, objc.Sel("precomposedStringWithCompatibilityMapping")) +// [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 } -// Returns a version of the string with all letters converted to lowercase, taking into account the current locale. [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/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/1407943-stringbyabbreviatingwithtildeinp?language=objc +func (s_ String) StringByAbbreviatingWithTildeInPath() string { + rv := objc.Call[string](s_, objc.Sel("stringByAbbreviatingWithTildeInPath")) return rv } -// Returns a version of the string with all letters converted to uppercase, taking into account the current locale. [Full Topic] +// The file-system path components of the receiver. [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/1414489-pathcomponents?language=objc +func (s_ String) PathComponents() []string { + rv := objc.Call[[]string](s_, objc.Sel("pathComponents")) return rv } -// This NSString object. [Full Topic] +// A string made by normalizing the receiver’s contents using the Unicode Normalization Form KC. [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")) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsstring/1412625-precomposedstringwithcompatibili?language=objc +func (s_ String) PrecomposedStringWithCompatibilityMapping() string { + rv := objc.Call[string](s_, objc.Sel("precomposedStringWithCompatibilityMapping")) return rv } -// The floating-point value of the string as a double. [Full Topic] +// The floating-point value of the string as a float. [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/1412321-floatvalue?language=objc +func (s_ String) FloatValue() float64 { + rv := objc.Call[float64](s_, objc.Sel("floatValue")) return rv } -// The smallest encoding to which the receiver can be converted without loss of information. [Full Topic] +// The NSInteger value of the string. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsstring/1418037-smallestencoding?language=objc -func (s_ String) SmallestEncoding() StringEncoding { - rv := objc.Call[StringEncoding](s_, objc.Sel("smallestEncoding")) +// [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 } -// The number of UTF-16 code units in the receiver. [Full Topic] +// The Boolean value of the string. [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/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 last path component from the receiver, along with any final path separator. [Full Topic] +// The smallest encoding to which the receiver can be converted without loss of information. [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/1418037-smallestencoding?language=objc +func (s_ String) SmallestEncoding() StringEncoding { + rv := objc.Call[StringEncoding](s_, objc.Sel("smallestEncoding")) return rv } -// An unsigned integer that can be used as a hash table address. [Full Topic] +// The last path component of the receiver. [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/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 string’s contents using the Unicode Normalization Form D. [Full Topic] +// A null-terminated UTF8 representation of the string. [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/1411189-utf8string?language=objc +func (s_ String) UTF8String() *uint8 { + rv := objc.Call[*uint8](s_, objc.Sel("UTF8String")) return rv } -// The path extension, if any, of the string as interpreted as a path. [Full Topic] +// The number of UTF-16 code units in the receiver. [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")) +// [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 new string made from the receiver by resolving all symbolic links and standardizing path. [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/1417783-stringbyresolvingsymlinksinpath?language=objc -func (s_ String) StringByResolvingSymlinksInPath() string { - rv := objc.Call[string](s_, objc.Sel("stringByResolvingSymlinksInPath")) +// [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 } -// A new string that replaces the current home directory portion of the current path with a tilde (~) character. [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/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/1409569-stringbyremovingpercentencoding?language=objc +func (s_ String) StringByRemovingPercentEncoding() string { + rv := objc.Call[string](s_, objc.Sel("stringByRemovingPercentEncoding")) return rv } -// The Boolean value of the string. [Full Topic] +// A file system-specific representation of the receiver. [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/1414559-filesystemrepresentation?language=objc +func (s_ String) FileSystemRepresentation() *uint8 { + rv := objc.Call[*uint8](s_, objc.Sel("fileSystemRepresentation")) return rv } -// The fastest encoding to which the receiver may be converted without loss of information. [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/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/1411141-stringbydeletinglastpathcomponen?language=objc +func (s_ String) StringByDeletingLastPathComponent() string { + rv := objc.Call[string](s_, objc.Sel("stringByDeletingLastPathComponent")) return rv } -// The floating-point value of the string as a float. [Full Topic] +// 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/1412321-floatvalue?language=objc -func (s_ String) FloatValue() float64 { - rv := objc.Call[float64](s_, objc.Sel("floatValue")) +// [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 } -// The last path component of the receiver. [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/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/1418214-stringbydeletingpathextension?language=objc +func (s_ String) StringByDeletingPathExtension() string { + rv := objc.Call[string](s_, objc.Sel("stringByDeletingPathExtension")) return rv } -// A string made by normalizing the receiver’s contents using the Unicode Normalization Form KD. [Full Topic] +// The long long 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/1417731-longlongvalue?language=objc +func (s_ String) LongLongValue() int64 { + rv := objc.Call[int64](s_, objc.Sel("longLongValue")) + return rv +} + +// A Boolean value that indicates whether the receiver represents an absolute path. [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")) return rv } @@ -1133,34 +1460,41 @@ func (s_ String) LowercaseString() string { return rv } -// A file system-specific representation of the receiver. [Full Topic] +// An uppercase representation of the string. [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/1409855-uppercasestring?language=objc +func (s_ String) UppercaseString() string { + rv := objc.Call[string](s_, objc.Sel("uppercaseString")) return rv } -// A new string made by removing extraneous path components from the receiver. [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/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/1417579-availablestringencodings?language=objc +func (sc _StringClass) AvailableStringEncodings() *StringEncoding { + rv := objc.Call[*StringEncoding](sc, objc.Sel("availableStringEncodings")) return rv } -// Returns a new string made from the receiver by replacing all percent encoded sequences with the matching UTF-8 characters. [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/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/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] +// +// [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 } -// Returns a capitalized representation of the receiver using the current locale. [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/1414885-localizedcapitalizedstring?language=objc -func (s_ String) LocalizedCapitalizedString() string { - rv := objc.Call[string](s_, objc.Sel("localizedCapitalizedString")) +// [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 } diff --git a/macos/foundation/task.gen.go b/macos/foundation/task.gen.go index 48f331b7..6d5f19d2 100644 --- a/macos/foundation/task.gen.go +++ b/macos/foundation/task.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package foundation @@ -18,34 +18,34 @@ type _TaskClass struct { // An interface definition for the [Task] class. type ITask interface { objc.IObject - LaunchAndReturnError(error IError) bool Suspend() bool Interrupt() - WaitUntilExit() Resume() bool Terminate() - Arguments() []string - SetArguments(value []string) - TerminationStatus() int - IsRunning() bool - ExecutableURL() URL - SetExecutableURL(value IURL) - QualityOfService() QualityOfService - SetQualityOfService(value QualityOfService) + WaitUntilExit() + LaunchAndReturnError(error IError) bool + StandardInput() objc.Object + SetStandardInput(value objc.IObject) + TerminationReason() TaskTerminationReason StandardOutput() objc.Object SetStandardOutput(value objc.IObject) - TerminationReason() TaskTerminationReason + TerminationStatus() int 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) - StandardInput() objc.Object - SetStandardInput(value objc.IObject) + 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) } // An object that represents a subprocess of the current process. [Full Topic] @@ -71,10 +71,6 @@ func (tc _TaskClass) Alloc() Task { return rv } -func Task_Alloc() Task { - return TaskClass.Alloc() -} - func (tc _TaskClass) New() Task { rv := objc.Call[Task](tc, objc.Sel("new")) rv.Autorelease() @@ -85,14 +81,21 @@ func NewTask() Task { return TaskClass.New() } -// Runs the process with the current environment. [Full Topic] +// Creates and runs a task with a specified executable and arguments. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nstask/2890105-launchandreturnerror?language=objc -func (t_ Task) LaunchAndReturnError(error IError) bool { - rv := objc.Call[bool](t_, objc.Sel("launchAndReturnError:"), objc.Ptr(error)) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nstask/2890108-launchedtaskwithexecutableurl?language=objc +func (tc _TaskClass) LaunchedTaskWithExecutableURLArgumentsErrorTerminationHandler(url IURL, arguments []string, error IError, terminationHandler func(arg0 Task)) Task { + rv := objc.Call[Task](tc, objc.Sel("launchedTaskWithExecutableURL:arguments:error:terminationHandler:"), objc.Ptr(url), arguments, objc.Ptr(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 IError, 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 @@ -108,28 +111,6 @@ 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 IError, terminationHandler func(arg0 Task)) Task { - rv := objc.Call[Task](tc, objc.Sel("launchedTaskWithExecutableURL:arguments:error:terminationHandler:"), objc.Ptr(url), arguments, objc.Ptr(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 IError, 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 @@ -145,67 +126,44 @@ func (t_ Task) Terminate() { objc.Call[objc.Void](t_, objc.Sel("terminate")) } -// 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 exit status the receiver’s executable returns. [Full Topic] +// Blocks the process until the receiver is finished. [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 +// [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")) } -// A status that indicates whether the receiver is still running. [Full Topic] +// Runs the process with the current environment. [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")) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nstask/2890105-launchandreturnerror?language=objc +func (t_ Task) LaunchAndReturnError(error IError) bool { + rv := objc.Call[bool](t_, objc.Sel("launchAndReturnError:"), objc.Ptr(error)) return rv } -// The receiver’s executable. [Full Topic] +// The standard input 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/1411576-standardinput?language=objc +func (t_ Task) StandardInput() objc.Object { + rv := objc.Call[objc.Object](t_, objc.Sel("standardInput")) return rv } -// The receiver’s executable. [Full Topic] +// The standard input 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:"), objc.Ptr(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) } -// The default quality of service level the system applies to operations the task executes. [Full Topic] +// The reason the system terminated the task. [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/1415605-terminationreason?language=objc +func (t_ Task) TerminationReason() TaskTerminationReason { + rv := objc.Call[TaskTerminationReason](t_, objc.Sel("terminationReason")) 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 @@ -221,11 +179,11 @@ func (t_ Task) SetStandardOutput(value objc.IObject) { objc.Call[objc.Void](t_, objc.Sel("setStandardOutput:"), value) } -// The reason the system terminated the task. [Full Topic] +// The exit status the receiver’s executable returns. [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/1415801-terminationstatus?language=objc +func (t_ Task) TerminationStatus() int { + rv := objc.Call[int](t_, objc.Sel("terminationStatus")) return rv } @@ -244,19 +202,65 @@ func (t_ Task) SetStandardError(value objc.IObject) { objc.Call[objc.Void](t_, objc.Sel("setStandardError:"), 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] +// A status that indicates whether the receiver is still running. [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:"), objc.Ptr(value)) +// [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] +// +// [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 receiver’s executable. [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:"), objc.Ptr(value)) } // A completion block the system invokes when the task completes. [Full Topic] @@ -274,40 +278,32 @@ func (t_ Task) SetTerminationHandler(value func(arg0 Task)) { objc.Call[objc.Void](t_, objc.Sel("setTerminationHandler:"), 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 -} - -// The environment for the receiver. [Full Topic] +// The current directory 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")) +// [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 environment for the receiver. [Full Topic] +// The current directory 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) +// [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:"), objc.Ptr(value)) } -// The standard input for the receiver. [Full Topic] +// 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/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/1415794-qualityofservice?language=objc +func (t_ Task) QualityOfService() QualityOfService { + rv := objc.Call[QualityOfService](t_, objc.Sel("qualityOfService")) return rv } -// The standard input for the receiver. [Full Topic] +// 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/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/1415794-qualityofservice?language=objc +func (t_ Task) SetQualityOfService(value QualityOfService) { + objc.Call[objc.Void](t_, objc.Sel("setQualityOfService:"), value) } diff --git a/macos/foundation/text_checking_result.gen.go b/macos/foundation/text_checking_result.gen.go index e5fbf40e..8bed8ad5 100644 --- a/macos/foundation/text_checking_result.gen.go +++ b/macos/foundation/text_checking_result.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package foundation @@ -19,23 +19,23 @@ type _TextCheckingResultClass struct { type ITextCheckingResult interface { objc.IObject RangeWithName(name string) Range - ResultByAdjustingRangesWithOffset(offset int) TextCheckingResult RangeAtIndex(idx uint) Range - PhoneNumber() string + ResultByAdjustingRangesWithOffset(offset int) TextCheckingResult + URL() URL + ReplacementString() string + Components() map[TextCheckingKey]string RegularExpression() RegularExpression - Date() Date - GrammarDetails() []map[string]objc.Object - NumberOfRanges() uint + Duration() TimeInterval + ResultType() TextCheckingType Range() Range + PhoneNumber() string + AlternativeStrings() []string AddressComponents() map[TextCheckingKey]string Orthography() Orthography TimeZone() TimeZone - URL() URL - AlternativeStrings() []string - Components() map[TextCheckingKey]string - ReplacementString() string - Duration() TimeInterval - ResultType() TextCheckingType + Date() Date + NumberOfRanges() uint + GrammarDetails() []map[string]objc.Object } // An occurrence of textual content found during the analysis of a block of text, such as when matching a regular expression. [Full Topic] @@ -56,10 +56,6 @@ func (tc _TextCheckingResultClass) Alloc() TextCheckingResult { return rv } -func TextCheckingResult_Alloc() TextCheckingResult { - return TextCheckingResultClass.Alloc() -} - func (tc _TextCheckingResultClass) New() TextCheckingResult { rv := objc.Call[TextCheckingResult](tc, objc.Sel("new")) rv.Autorelease() @@ -75,89 +71,89 @@ func (t_ TextCheckingResult) Init() TextCheckingResult { return rv } -// Creates and returns a text checking result with the specified orthography. [Full Topic] +// [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_, objc.Ptr(orthography)) +// [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 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] +// Creates and returns a text checking result after detecting a possible correction. [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/1415946-correctioncheckingresultwithrang?language=objc +func (tc _TextCheckingResultClass) CorrectionCheckingResultWithRangeReplacementString(range_ Range, replacementString string) TextCheckingResult { + rv := objc.Call[TextCheckingResult](tc, objc.Sel("correctionCheckingResultWithRange:replacementString:"), range_, replacementString) return rv } -// Creates and returns a text checking result with the specified transit information. [Full Topic] +// Creates and returns a text checking result after detecting a possible correction. [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/1415946-correctioncheckingresultwithrang?language=objc +func TextCheckingResult_CorrectionCheckingResultWithRangeReplacementString(range_ Range, replacementString string) TextCheckingResult { + return TextCheckingResultClass.CorrectionCheckingResultWithRangeReplacementString(range_, replacementString) } -// Creates and returns a text checking result with the specified URL. [Full Topic] +// Creates and returns a text checking result with the specified date. [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_, objc.Ptr(url)) +// [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_, objc.Ptr(date)) return rv } -// Creates and returns a text checking result with the specified URL. [Full Topic] +// Creates and returns a text checking result with the specified date. [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/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 array of grammatical errors. [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/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) +// [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 array of grammatical errors. [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/1407190-grammarcheckingresultwithrange?language=objc -func TextCheckingResult_GrammarCheckingResultWithRangeDetails(range_ Range, details []map[string]objc.IObject) TextCheckingResult { - return TextCheckingResultClass.GrammarCheckingResultWithRangeDetails(range_, details) +// [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 quote-balanced replacement string. [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/1413783-quotecheckingresultwithrange?language=objc -func (tc _TextCheckingResultClass) QuoteCheckingResultWithRangeReplacementString(range_ Range, replacementString string) TextCheckingResult { - rv := objc.Call[TextCheckingResult](tc, objc.Sel("quoteCheckingResultWithRange:replacementString:"), range_, replacementString) +// [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 quote-balanced replacement string. [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/1413783-quotecheckingresultwithrange?language=objc -func TextCheckingResult_QuoteCheckingResultWithRangeReplacementString(range_ Range, replacementString string) TextCheckingResult { - return TextCheckingResultClass.QuoteCheckingResultWithRangeReplacementString(range_, replacementString) +// [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] +// Creates and returns a text checking result with the specified replacement string. [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/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 } +// 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 @@ -173,14 +169,21 @@ func TextCheckingResult_CorrectionCheckingResultWithRangeReplacementStringAltern return TextCheckingResultClass.CorrectionCheckingResultWithRangeReplacementStringAlternativeStrings(range_, replacementString, alternativeStrings) } -// Returns a new text checking result after adjusting the ranges as specified by the offset. [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/1417597-resultbyadjustingrangeswithoffse?language=objc -func (t_ TextCheckingResult) ResultByAdjustingRangesWithOffset(offset int) TextCheckingResult { - rv := objc.Call[TextCheckingResult](t_, objc.Sel("resultByAdjustingRangesWithOffset:"), offset) +// [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, objc.Ptr(regularExpression)) 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 @@ -189,49 +192,72 @@ func (t_ TextCheckingResult) RangeAtIndex(idx uint) Range { 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 (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] +// 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/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/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 range of a misspelled word. [Full Topic] +// Creates and returns a text checking result with the specified date, time zone, and duration. [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/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_, objc.Ptr(date), objc.Ptr(timeZone), duration) + 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 date, time zone, and duration. [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_, objc.Ptr(date)) +// [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) +} + +// Creates and returns a text checking result with the specified address components. [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) 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 address components. [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/1413828-addresscheckingresultwithrange?language=objc +func TextCheckingResult_AddressCheckingResultWithRangeComponents(range_ Range, components map[TextCheckingKey]string) TextCheckingResult { + return TextCheckingResultClass.AddressCheckingResultWithRangeComponents(range_, components) +} + +// 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 (tc _TextCheckingResultClass) OrthographyCheckingResultWithRangeOrthography(range_ Range, orthography IOrthography) TextCheckingResult { + rv := objc.Call[TextCheckingResult](tc, objc.Sel("orthographyCheckingResultWithRange:orthography:"), range_, objc.Ptr(orthography)) + return rv +} + +// 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 phone number. [Full Topic] @@ -249,88 +275,96 @@ func TextCheckingResult_PhoneNumberCheckingResultWithRangePhoneNumber(range_ Ran return TextCheckingResultClass.PhoneNumberCheckingResultWithRangePhoneNumber(range_, phoneNumber) } -// Creates and returns a type checking result with the specified regular expression data. [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/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, objc.Ptr(regularExpression)) +// [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 type checking result with the specified regular expression data. [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/1412104-regularexpressioncheckingresultw?language=objc -func TextCheckingResult_RegularExpressionCheckingResultWithRangesCountRegularExpression(ranges RangePointer, count uint, regularExpression IRegularExpression) TextCheckingResult { - return TextCheckingResultClass.RegularExpressionCheckingResultWithRangesCountRegularExpression(ranges, count, regularExpression) +// [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 address components. [Full Topic] +// Creates and returns a text checking result with the specified URL. [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/1413056-linkcheckingresultwithrange?language=objc +func (tc _TextCheckingResultClass) LinkCheckingResultWithRangeURL(range_ Range, url IURL) TextCheckingResult { + rv := objc.Call[TextCheckingResult](tc, objc.Sel("linkCheckingResultWithRange:URL:"), range_, objc.Ptr(url)) 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 specified URL. [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/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 replacement string. [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/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/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 with the specified replacement string. [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/1416651-replacementcheckingresultwithran?language=objc -func TextCheckingResult_ReplacementCheckingResultWithRangeReplacementString(range_ Range, replacementString string) TextCheckingResult { - return TextCheckingResultClass.ReplacementCheckingResultWithRangeReplacementString(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) } -// The phone number 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/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/1417843-url?language=objc +func (t_ TextCheckingResult) URL() URL { + rv := objc.Call[URL](t_, objc.Sel("URL")) return rv } -// The regular expression of a type checking result. [Full Topic] +// A replacement string from one of a number of replacement checking results. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nstextcheckingresult/1417393-regularexpression?language=objc -func (t_ TextCheckingResult) RegularExpression() RegularExpression { - rv := objc.Call[RegularExpression](t_, objc.Sel("regularExpression")) +// [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 date component of a 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/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/1407367-components?language=objc +func (t_ TextCheckingResult) Components() map[TextCheckingKey]string { + rv := objc.Call[map[TextCheckingKey]string](t_, objc.Sel("components")) return rv } -// The details of a located grammatical type checking result. [Full Topic] +// The regular expression 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/1417393-regularexpression?language=objc +func (t_ TextCheckingResult) RegularExpression() RegularExpression { + rv := objc.Call[RegularExpression](t_, objc.Sel("regularExpression")) return rv } -// Returns the number of ranges. [Full Topic] +// The duration component of a type checking result. [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/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 } @@ -342,6 +376,22 @@ func (t_ TextCheckingResult) Range() Range { return rv } +// The phone number of a type checking result. [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")) + return rv +} + +// [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")) + return rv +} + // The address dictionary of a type checking result. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/foundation/nstextcheckingresult/1413728-addresscomponents?language=objc @@ -366,50 +416,26 @@ func (t_ TextCheckingResult) TimeZone() TimeZone { return rv } -// The URL of a type checking result. [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")) - return rv -} - -// [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")) - return rv -} - -// A dictionary containing the components 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")) - return rv -} - -// A replacement string from one of a number of replacement checking results. [Full Topic] +// The date component of a type checking result. [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")) +// [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 } -// The duration component of a type checking result. [Full Topic] +// Returns the number of ranges. [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")) +// [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 } -// Returns the text checking result type 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/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/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 } diff --git a/macos/foundation/thread.gen.go b/macos/foundation/thread.gen.go index c4648c6d..3979a46e 100644 --- a/macos/foundation/thread.gen.go +++ b/macos/foundation/thread.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package foundation @@ -21,17 +21,16 @@ type IThread interface { Main() Start() Cancel() - IsCancelled() bool - IsExecuting() bool - Name() string - SetName(value string) QualityOfService() QualityOfService SetQualityOfService(value QualityOfService) IsMainThread() bool - ThreadPriority() float64 + IsExecuting() bool + IsFinished() bool StackSize() uint SetStackSize(value uint) - IsFinished() bool + IsCancelled() bool + Name() string + SetName(value string) ThreadDictionary() MutableDictionary } @@ -48,20 +47,6 @@ 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 @@ -81,13 +66,23 @@ func NewThreadWithTargetSelectorObject(target objc.IObject, selector objc.Select return instance } -func (tc _ThreadClass) Alloc() Thread { - rv := objc.Call[Thread](tc, objc.Sel("alloc")) +func (t_ Thread) InitWithBlock(block func()) Thread { + rv := objc.Call[Thread](t_, objc.Sel("initWithBlock:"), block) return rv } -func Thread_Alloc() Thread { - return ThreadClass.Alloc() +// [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 } func (tc _ThreadClass) New() Thread { @@ -100,6 +95,13 @@ 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 @@ -128,11 +130,55 @@ func Thread_SleepUntilDate(date IDate) { ThreadClass.SleepUntilDate(date) } -// The main entry point routine for the thread. [Full Topic] +// Sets the current thread’s priority. [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")) +// [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] +// +// [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) } // Sleeps the thread for a given time interval. [Full Topic] @@ -149,13 +195,6 @@ 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 @@ -170,6 +209,13 @@ 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 @@ -185,47 +231,41 @@ func Thread_IsMultiThreaded() bool { return ThreadClass.IsMultiThreaded() } -// Detaches a new thread and uses the specified selector as the thread entry point. [Full Topic] +// [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) +// [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 } -// Detaches a new thread and uses the specified selector as the thread entry point. [Full Topic] +// [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/1409426-qualityofservice?language=objc +func (t_ Thread) SetQualityOfService(value QualityOfService) { + objc.Call[objc.Void](t_, objc.Sel("setQualityOfService:"), value) } -// Sets the current thread’s priority. [Full Topic] +// Returns an array containing the call stack symbols. [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) +// [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 } -// 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) -} - -// Changes the cancelled state of the receiver to indicate that it should exit. [Full Topic] +// Returns an array containing the call stack symbols. [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")) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsthread/1414836-callstacksymbols?language=objc +func Thread_CallStackSymbols() []string { + return ThreadClass.CallStackSymbols() } -// A Boolean value that indicates whether the receiver is cancelled. [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/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/1408455-ismainthread?language=objc +func (t_ Thread) IsMainThread() bool { + rv := objc.Call[bool](t_, objc.Sel("isMainThread")) return rv } @@ -237,95 +277,80 @@ func (t_ Thread) IsExecuting() bool { return rv } -// Returns an array containing the call stack return addresses. [Full Topic] +// A Boolean value that indicates whether the receiver has finished execution. [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/1409297-finished?language=objc +func (t_ Thread) IsFinished() bool { + rv := objc.Call[bool](t_, objc.Sel("isFinished")) return rv } -// Returns an array containing the call stack return addresses. [Full Topic] -// -// [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] +// 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) Name() string { - rv := objc.Call[string](t_, objc.Sel("name")) +// [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) } -// [Full Topic] +// Returns the thread object representing the current thread of execution. [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")) +// [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 } -// [Full Topic] +// Returns the thread object representing the current thread of execution. [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/1410679-currentthread?language=objc +func Thread_CurrentThread() Thread { + return ThreadClass.CurrentThread() } -// A Boolean value that indicates whether the receiver is the main thread. [Full Topic] +// Returns an array containing the call stack return addresses. [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/1409565-callstackreturnaddresses?language=objc +func (tc _ThreadClass) CallStackReturnAddresses() []Number { + rv := objc.Call[[]Number](tc, objc.Sel("callStackReturnAddresses")) return rv } -// The receiver’s priority [Full Topic] +// Returns an array containing the call stack return addresses. [Full Topic] // -// [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 +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsthread/1409565-callstackreturnaddresses?language=objc +func Thread_CallStackReturnAddresses() []Number { + return ThreadClass.CallStackReturnAddresses() } -// Returns an array containing the call stack symbols. [Full Topic] +// A Boolean value that indicates whether the receiver is cancelled. [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/1417366-cancelled?language=objc +func (t_ Thread) IsCancelled() bool { + rv := objc.Call[bool](t_, objc.Sel("isCancelled")) return rv } -// Returns an array containing the call stack symbols. [Full Topic] -// -// [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] +// The name of the receiver. [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/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 NSThread object representing the main thread. [Full Topic] @@ -343,29 +368,6 @@ 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 0c616559..50ddef7b 100644 --- a/macos/foundation/time_zone.gen.go +++ b/macos/foundation/time_zone.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package foundation @@ -18,20 +18,23 @@ type _TimeZoneClass struct { // An interface definition for the [TimeZone] class. type ITimeZone interface { objc.IObject - IsDaylightSavingTimeForDate(aDate IDate) bool - DaylightSavingTimeOffsetForDate(aDate IDate) TimeInterval - LocalizedNameLocale(style TimeZoneNameStyle, locale ILocale) string SecondsFromGMTForDate(aDate IDate) int + DaylightSavingTimeOffsetForDate(aDate IDate) TimeInterval AbbreviationForDate(aDate IDate) string + NextDaylightSavingTimeTransitionAfterDate(aDate IDate) Date + IsDaylightSavingTimeForDate(aDate IDate) bool + LocalizedNameLocale(style TimeZoneNameStyle, locale ILocale) string IsEqualToTimeZone(aTimeZone ITimeZone) bool - IsDaylightSavingTime() bool - DaylightSavingTimeOffset() TimeInterval - Name() string - SecondsFromGMT() int NextDaylightSavingTimeTransition() Date - Data() []byte Description() string + Data() []byte 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] @@ -47,6 +50,20 @@ 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 @@ -59,16 +76,28 @@ func TimeZone_TimeZoneWithAbbreviation(abbreviation string) TimeZone { return TimeZoneClass.TimeZoneWithAbbreviation(abbreviation) } -func (tc _TimeZoneClass) TimeZoneWithName(tzName string) TimeZone { - rv := objc.Call[TimeZone](tc, objc.Sel("timeZoneWithName:"), tzName) +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 object identified by a given identifier. [Full Topic] +// 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/1387227-timezonewithname?language=objc -func TimeZone_TimeZoneWithName(tzName string) TimeZone { - return TimeZoneClass.TimeZoneWithName(tzName) +// [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) + return rv +} + +// 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/1387199-timezoneforsecondsfromgmt?language=objc +func TimeZone_TimeZoneForSecondsFromGMT(seconds int) TimeZone { + return TimeZoneClass.TimeZoneForSecondsFromGMT(seconds) } func (t_ TimeZone) InitWithNameData(tzName string, aData []byte) TimeZone { @@ -85,16 +114,16 @@ func NewTimeZoneWithNameData(tzName string, aData []byte) TimeZone { return instance } -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 (tc _TimeZoneClass) Alloc() TimeZone { @@ -102,10 +131,6 @@ func (tc _TimeZoneClass) Alloc() TimeZone { return rv } -func TimeZone_Alloc() TimeZone { - return TimeZoneClass.Alloc() -} - func (tc _TimeZoneClass) New() TimeZone { rv := objc.Call[TimeZone](tc, objc.Sel("new")) rv.Autorelease() @@ -121,14 +146,28 @@ func (t_ TimeZone) Init() TimeZone { return rv } -// Indicates whether the receiver uses daylight saving time on a given date. [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/1387201-isdaylightsavingtimefordate?language=objc -func (t_ TimeZone) IsDaylightSavingTimeForDate(aDate IDate) bool { - rv := objc.Call[bool](t_, objc.Sel("isDaylightSavingTimeForDate:"), objc.Ptr(aDate)) +// [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:"), objc.Ptr(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 @@ -137,6 +176,30 @@ 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:"), objc.Ptr(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:"), objc.Ptr(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:"), objc.Ptr(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 @@ -145,41 +208,59 @@ func (t_ TimeZone) LocalizedNameLocale(style TimeZoneNameStyle, locale ILocale) return rv } -// Returns the difference in seconds between the receiver and Greenwich Mean Time at a given date. [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/1387242-secondsfromgmtfordate?language=objc -func (t_ TimeZone) SecondsFromGMTForDate(aDate IDate) int { - rv := objc.Call[int](t_, objc.Sel("secondsFromGMTForDate:"), objc.Ptr(aDate)) +// [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:"), objc.Ptr(aTimeZone)) return rv } -// Clears any time zone value cached for the systemTimeZone property. [Full Topic] +// The date of the next daylight saving time transition for the receiver. [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")) +// [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 } -// Clears any time zone value cached for the systemTimeZone property. [Full Topic] +// 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/1387189-resetsystemtimezone?language=objc -func TimeZone_ResetSystemTimeZone() { - TimeZoneClass.ResetSystemTimeZone() +// [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 } -// Returns the abbreviation for the receiver at a given date. [Full Topic] +// The data that stores the information used by the receiver. [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:"), objc.Ptr(aDate)) +// [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 } -// Indicates whether the receiver has the same name and data as the specified time zone. [Full Topic] +// The abbreviation for the receiver, such as “EDT” (Eastern Daylight Time). [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:"), objc.Ptr(aTimeZone)) +// [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 +} + +// 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 +} + +// 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 } @@ -212,6 +293,14 @@ 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 @@ -227,30 +316,6 @@ 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 @@ -266,59 +331,6 @@ 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 @@ -334,14 +346,6 @@ 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 @@ -357,10 +361,25 @@ func TimeZone_SystemTimeZone() TimeZone { return TimeZoneClass.SystemTimeZone() } -// The abbreviation for the receiver, such as “EDT” (Eastern Daylight Time). [Full Topic] +// The current daylight saving time offset of the receiver. [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")) +// [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] +// +// [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")) 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 d6c89269..cc407746 100644 --- a/macos/foundation/timer.gen.go +++ b/macos/foundation/timer.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package foundation @@ -18,15 +18,15 @@ type _TimerClass struct { // An interface definition for the [Timer] class. type ITimer interface { objc.IObject - Fire() Invalidate() + Fire() + IsValid() bool + Tolerance() TimeInterval + SetTolerance(value TimeInterval) 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,13 +56,23 @@ func NewTimerWithFireDateIntervalRepeatsBlock(date IDate, interval TimeInterval, return instance } -func (tc _TimerClass) Alloc() Timer { - rv := objc.Call[Timer](tc, objc.Sel("alloc")) +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:"), objc.Ptr(date), ti, t, s, ui, rep) return rv } -func Timer_Alloc() Timer { - return TimerClass.Alloc() +// 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 } func (tc _TimerClass) New() Timer { @@ -80,6 +90,88 @@ 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, objc.Ptr(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, objc.Ptr(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 @@ -102,26 +194,27 @@ func (t_ Timer) Fire() { objc.Call[objc.Void](t_, objc.Sel("fire")) } -// Initializes a timer object with the specified time interval and block. [Full Topic] +// A Boolean value that indicates whether the timer is currently valid. [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) +// [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 } -// Initializes a timer object with the specified time interval and block. [Full Topic] +// 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/2091888-timerwithtimeinterval?language=objc -func Timer_TimerWithTimeIntervalRepeatsBlock(interval TimeInterval, repeats bool, block func(timer Timer)) Timer { - return TimerClass.TimerWithTimeIntervalRepeatsBlock(interval, repeats, block) +// [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 } -// Stops the timer from ever firing again and requests its removal from its run loop. [Full Topic] +// 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/1415405-invalidate?language=objc -func (t_ Timer) Invalidate() { - objc.Call[objc.Void](t_, objc.Sel("invalidate")) +// [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 timer’s time interval, in seconds. [Full Topic] @@ -147,21 +240,6 @@ func (t_ Timer) SetFireDate(value IDate) { objc.Call[objc.Void](t_, objc.Sel("setFireDate:"), objc.Ptr(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 @@ -169,11 +247,3 @@ 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 1e9a146e..47643ca7 100644 --- a/macos/foundation/ubiquitous_key_value_store.gen.go +++ b/macos/foundation/ubiquitous_key_value_store.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package foundation @@ -18,24 +18,24 @@ type _UbiquitousKeyValueStoreClass struct { // An interface definition for the [UbiquitousKeyValueStore] class. type IUbiquitousKeyValueStore interface { objc.IObject - ObjectForKey(aKey string) objc.Object + SetArrayForKey(anArray []objc.IObject, aKey string) SetLongLongForKey(value int64, aKey string) - SetBoolForKey(value bool, aKey string) - ArrayForKey(aKey string) []objc.Object - StringForKey(aKey string) string BoolForKey(aKey string) bool - 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) + ObjectForKey(aKey string) objc.Object DataForKey(aKey string) []byte - DoubleForKey(aKey string) float64 + SetDoubleForKey(value float64, aKey string) + SetBoolForKey(value bool, aKey string) + LongLongForKey(aKey string) int64 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) - LongLongForKey(aKey string) int64 + DictionaryForKey(aKey string) map[string]objc.Object + SetStringForKey(aString string, aKey string) + ArrayForKey(aKey string) []objc.Object + StringForKey(aKey string) string DictionaryRepresentation() map[string]objc.Object } @@ -57,10 +57,6 @@ func (uc _UbiquitousKeyValueStoreClass) Alloc() UbiquitousKeyValueStore { return rv } -func UbiquitousKeyValueStore_Alloc() UbiquitousKeyValueStore { - return UbiquitousKeyValueStoreClass.Alloc() -} - func (uc _UbiquitousKeyValueStoreClass) New() UbiquitousKeyValueStore { rv := objc.Call[UbiquitousKeyValueStore](uc, objc.Sel("new")) rv.Autorelease() @@ -76,12 +72,11 @@ func (u_ UbiquitousKeyValueStore) Init() UbiquitousKeyValueStore { return rv } -// Returns the object associated with the specified key. [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/1407436-objectforkey?language=objc -func (u_ UbiquitousKeyValueStore) ObjectForKey(aKey string) objc.Object { - rv := objc.Call[objc.Object](u_, objc.Sel("objectForKey:"), aKey) - 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 a long long value for the specified key in the key-value store. [Full Topic] @@ -91,78 +86,79 @@ func (u_ UbiquitousKeyValueStore) SetLongLongForKey(value int64, aKey string) { objc.Call[objc.Void](u_, objc.Sel("setLongLong:forKey:"), value, aKey) } -// Sets a Boolean 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/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/1417350-boolforkey?language=objc +func (u_ UbiquitousKeyValueStore) BoolForKey(aKey string) bool { + rv := objc.Call[bool](u_, objc.Sel("boolForKey:"), aKey) + return rv } -// Returns the array associated with the specified key. [Full Topic] +// Returns the object associated with the specified key. [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/1407436-objectforkey?language=objc +func (u_ UbiquitousKeyValueStore) ObjectForKey(aKey string) objc.Object { + rv := objc.Call[objc.Object](u_, objc.Sel("objectForKey:"), aKey) return rv } -// Returns the string 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/nsubiquitouskeyvaluestore/1418249-stringforkey?language=objc -func (u_ UbiquitousKeyValueStore) StringForKey(aKey string) string { - rv := objc.Call[string](u_, objc.Sel("stringForKey:"), 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 Boolean value associated with the specified key. [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/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/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] +// Sets a Boolean value for the specified key in the key-value store. [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/1415054-setbool?language=objc +func (u_ UbiquitousKeyValueStore) SetBoolForKey(value bool, aKey string) { + objc.Call[objc.Void](u_, objc.Sel("setBool:forKey:"), value, aKey) } -// Sets a string object for the specified key 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/1414610-setstring?language=objc -func (u_ UbiquitousKeyValueStore) SetStringForKey(aString string, aKey string) { - objc.Call[objc.Void](u_, objc.Sel("setString:forKey:"), aString, aKey) +// [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 } -// Sets an object for the specified key in 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/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/1416218-setdata?language=objc +func (u_ UbiquitousKeyValueStore) SetDataForKey(aData []byte, aKey string) { + objc.Call[objc.Void](u_, objc.Sel("setData:forKey:"), aData, aKey) } -// Sets an array object for the specified key in the key-value store. [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/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/1415989-synchronize?language=objc +func (u_ UbiquitousKeyValueStore) Synchronize() bool { + rv := objc.Call[bool](u_, objc.Sel("synchronize")) + return rv } -// Sets a double value 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/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/1416434-setobject?language=objc +func (u_ UbiquitousKeyValueStore) SetObjectForKey(anObject objc.IObject, aKey string) { + objc.Call[objc.Void](u_, objc.Sel("setObject:forKey:"), anObject, aKey) } -// Returns the data object associated with the specified key. [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/1417800-dataforkey?language=objc -func (u_ UbiquitousKeyValueStore) DataForKey(aKey string) []byte { - rv := objc.Call[[]byte](u_, objc.Sel("dataForKey:"), aKey) - return rv +// [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 double value associated with the specified key. [Full Topic] @@ -173,11 +169,11 @@ func (u_ UbiquitousKeyValueStore) DoubleForKey(aKey string) float64 { return rv } -// Sets a data object for the specified key in the key-value store. [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/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/1410916-removeobjectforkey?language=objc +func (u_ UbiquitousKeyValueStore) RemoveObjectForKey(aKey string) { + objc.Call[objc.Void](u_, objc.Sel("removeObjectForKey:"), aKey) } // Returns the dictionary object associated with the specified key. [Full Topic] @@ -188,26 +184,34 @@ func (u_ UbiquitousKeyValueStore) DictionaryForKey(aKey string) map[string]objc. return rv } -// Explicitly synchronizes in-memory keys and values with those stored on disk. [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/1415989-synchronize?language=objc -func (u_ UbiquitousKeyValueStore) Synchronize() bool { - rv := objc.Call[bool](u_, objc.Sel("synchronize")) +// [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] +// +// [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 } -// Removes the value associated with the specified key from the key-value store. [Full Topic] +// Returns the string associated with the specified key. [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/1418249-stringforkey?language=objc +func (u_ UbiquitousKeyValueStore) StringForKey(aKey string) string { + rv := objc.Call[string](u_, objc.Sel("stringForKey:"), aKey) + return rv } -// Returns the long long value associated with the specified key. [Full Topic] +// 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/1413240-longlongforkey?language=objc -func (u_ UbiquitousKeyValueStore) LongLongForKey(aKey string) int64 { - rv := objc.Call[int64](u_, objc.Sel("longLongForKey:"), aKey) +// [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 } @@ -225,11 +229,3 @@ 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/unarchiver.gen.go b/macos/foundation/unarchiver.gen.go index 213fd956..88c9c38e 100644 --- a/macos/foundation/unarchiver.gen.go +++ b/macos/foundation/unarchiver.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package foundation @@ -38,10 +38,6 @@ func (uc _UnarchiverClass) Alloc() Unarchiver { return rv } -func Unarchiver_Alloc() Unarchiver { - return UnarchiverClass.Alloc() -} - func (uc _UnarchiverClass) New() Unarchiver { rv := objc.Call[Unarchiver](uc, objc.Sel("new")) rv.Autorelease() diff --git a/macos/foundation/undo_manager.gen.go b/macos/foundation/undo_manager.gen.go index 0de459bd..daa29158 100644 --- a/macos/foundation/undo_manager.gen.go +++ b/macos/foundation/undo_manager.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package foundation @@ -18,39 +18,40 @@ type _UndoManagerClass struct { // An interface definition for the [UndoManager] class. type IUndoManager interface { objc.IObject - 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) + DisableUndoRegistration() UndoMenuTitleForUndoActionName(actionName string) string + RegisterUndoWithTargetSelectorObject(target objc.IObject, selector objc.Selector, anObject objc.IObject) Undo() - DisableUndoRegistration() - RemoveAllActions() + EndUndoGrouping() PrepareWithInvocationTarget(target objc.IObject) objc.Object + SetActionIsDiscardable(discardable bool) Redo() - LevelsOfUndo() uint - SetLevelsOfUndo(value uint) + 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 GroupsByEvent() bool SetGroupsByEvent(value bool) - CanUndo() bool - RedoActionIsDiscardable() bool RedoActionName() string + RedoActionIsDiscardable() bool + UndoActionIsDiscardable() bool + RedoMenuItemTitle() string + LevelsOfUndo() uint + SetLevelsOfUndo(value uint) + GroupingLevel() int + CanRedo() bool 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] @@ -71,10 +72,6 @@ func (uc _UndoManagerClass) Alloc() UndoManager { return rv } -func UndoManager_Alloc() UndoManager { - return UndoManagerClass.Alloc() -} - func (uc _UndoManagerClass) New() UndoManager { rv := objc.Call[UndoManager](uc, objc.Sel("new")) rv.Autorelease() @@ -90,54 +87,33 @@ func (u_ UndoManager) Init() UndoManager { return rv } -// Sets the name of the action associated with the Undo or Redo command. [Full Topic] +// Disables the recording of undo operations, whether by [foundation/nsundomanager/registerundowithtarget] or by invocation-based undo. [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) -} - -// 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")) -} - -// 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) +// [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")) } -// Returns the complete, localized title of the Redo menu command for the action identified by the given name. [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/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/1413122-undomenutitleforundoactionname?language=objc +func (u_ UndoManager) UndoMenuTitleForUndoActionName(actionName string) string { + rv := objc.Call[string](u_, objc.Sel("undoMenuTitleForUndoActionName:"), actionName) return rv } -// Marks the beginning of an undo group. [Full Topic] +// Registers the selector of the specified target to implement a single undo operation that the target receives. [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")) -} - -// 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")) +// [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) } -// 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 [foundation/nsundomanager/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")) } // Marks the end of an undo group. [Full Topic] @@ -147,6 +123,14 @@ 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 @@ -154,26 +138,18 @@ func (u_ UndoManager) SetActionIsDiscardable(discardable bool) { objc.Call[objc.Void](u_, objc.Sel("setActionIsDiscardable:"), discardable) } -// 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/1413122-undomenutitleforundoactionname?language=objc -func (u_ UndoManager) UndoMenuTitleForUndoActionName(actionName string) string { - rv := objc.Call[string](u_, objc.Sel("undoMenuTitleForUndoActionName:"), actionName) - return rv -} - -// Closes the top-level undo group if necessary and invokes undoNestedGroup. [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/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/1417030-redo?language=objc +func (u_ UndoManager) Redo() { + objc.Call[objc.Void](u_, objc.Sel("redo")) } -// Disables the recording of undo operations, whether by registerUndoWithTarget:handler: or by invocation-based undo. [Full Topic] +// 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/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/1409896-removeallactionswithtarget?language=objc +func (u_ UndoManager) RemoveAllActionsWithTarget(target objc.IObject) { + objc.Call[objc.Void](u_, objc.Sel("removeAllActionsWithTarget:"), target) } // Clears the undo and redo stacks and re-enables the receiver. [Full Topic] @@ -183,34 +159,55 @@ func (u_ UndoManager) RemoveAllActions() { objc.Call[objc.Void](u_, objc.Sel("removeAllActions")) } -// Prepares the undo manager for invocation-based undo with the given target as the subject of the next undo operation. [Full Topic] +// 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/1409564-preparewithinvocationtarget?language=objc -func (u_ UndoManager) PrepareWithInvocationTarget(target objc.IObject) objc.Object { - rv := objc.Call[objc.Object](u_, objc.Sel("prepareWithInvocationTarget:"), target) +// [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 } -// 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] +// Enables the recording of undo operations. [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/1408957-enableundoregistration?language=objc +func (u_ UndoManager) EnableUndoRegistration() { + objc.Call[objc.Void](u_, objc.Sel("enableUndoRegistration")) } -// The maximum number of top-level undo groups the receiver holds. [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/1409753-levelsofundo?language=objc -func (u_ UndoManager) LevelsOfUndo() uint { - rv := objc.Call[uint](u_, objc.Sel("levelsOfUndo")) - return rv +// [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")) } -// The maximum number of top-level undo groups the receiver holds. [Full Topic] +// Marks the beginning of an undo group. [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) +// [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] +// +// [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) +} + +// 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 a Boolean value that indicates whether the receiver is in the process of performing its [foundation/nsundomanager/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 } // A Boolean value that indicates whether the receiver automatically creates undo groups around each pass of the run loop. [Full Topic] @@ -228,11 +225,11 @@ func (u_ UndoManager) SetGroupsByEvent(value bool) { objc.Call[objc.Void](u_, objc.Sel("setGroupsByEvent:"), value) } -// A Boolean value that indicates whether the receiver has any actions to undo. [Full Topic] +// The name identifying the redo action. [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/1417487-redoactionname?language=objc +func (u_ UndoManager) RedoActionName() string { + rv := objc.Call[string](u_, objc.Sel("redoActionName")) return rv } @@ -244,35 +241,42 @@ func (u_ UndoManager) RedoActionIsDiscardable() bool { return rv } -// The name identifying the redo 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/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/1415261-undoactionisdiscardable?language=objc +func (u_ UndoManager) UndoActionIsDiscardable() bool { + rv := objc.Call[bool](u_, objc.Sel("undoActionIsDiscardable")) return rv } -// The complete title of the Undo menu command, for example, “Undo Paste.” [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/1412953-undomenuitemtitle?language=objc -func (u_ UndoManager) UndoMenuItemTitle() string { - rv := objc.Call[string](u_, objc.Sel("undoMenuItemTitle")) +// [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 } -// A Boolean value that indicates whether the recording of undo operations is enabled. [Full Topic] +// The maximum number of top-level undo groups the receiver holds. [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/1409753-levelsofundo?language=objc +func (u_ UndoManager) LevelsOfUndo() uint { + rv := objc.Call[uint](u_, objc.Sel("levelsOfUndo")) return rv } -// The name identifying the undo action. [Full Topic] +// The maximum number of top-level undo groups the receiver holds. [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/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] +// +// [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 } @@ -284,11 +288,19 @@ func (u_ UndoManager) CanRedo() bool { 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 +} + +// A Boolean value that indicates whether the recording of undo operations is enabled. [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")) return rv } @@ -307,34 +319,26 @@ func (u_ UndoManager) SetRunLoopModes(value []RunLoopMode) { objc.Call[objc.Void](u_, objc.Sel("setRunLoopModes:"), value) } -// 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/1407345-undoing?language=objc -func (u_ UndoManager) IsUndoing() bool { - rv := objc.Call[bool](u_, objc.Sel("isUndoing")) - return rv -} - -// Boolean value that indicates whether the next undo action is discardable. [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/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/1412394-canundo?language=objc +func (u_ UndoManager) CanUndo() bool { + rv := objc.Call[bool](u_, objc.Sel("canUndo")) return rv } -// 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 } -// Returns a Boolean value that indicates whether the receiver is in the process of performing its redo method. [Full Topic] +// 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] // -// [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")) +// [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 } diff --git a/macos/foundation/unique_id_specifier.gen.go b/macos/foundation/unique_id_specifier.gen.go index 89df0636..f7cb3b99 100644 --- a/macos/foundation/unique_id_specifier.gen.go +++ b/macos/foundation/unique_id_specifier.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package foundation @@ -54,10 +54,6 @@ func (uc _UniqueIDSpecifierClass) Alloc() UniqueIDSpecifier { return rv } -func UniqueIDSpecifier_Alloc() UniqueIDSpecifier { - return UniqueIDSpecifierClass.Alloc() -} - func (uc _UniqueIDSpecifierClass) New() UniqueIDSpecifier { rv := objc.Call[UniqueIDSpecifier](uc, objc.Sel("new")) rv.Autorelease() diff --git a/macos/foundation/unit.gen.go b/macos/foundation/unit.gen.go index 5b3b65ad..455c3203 100644 --- a/macos/foundation/unit.gen.go +++ b/macos/foundation/unit.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package foundation @@ -53,10 +53,6 @@ func (uc _UnitClass) Alloc() Unit { return rv } -func Unit_Alloc() Unit { - return UnitClass.Alloc() -} - func (uc _UnitClass) New() Unit { rv := objc.Call[Unit](uc, objc.Sel("new")) rv.Autorelease() diff --git a/macos/foundation/unit_acceleration.gen.go b/macos/foundation/unit_acceleration.gen.go index 2c1443c8..d62ab6ba 100644 --- a/macos/foundation/unit_acceleration.gen.go +++ b/macos/foundation/unit_acceleration.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package foundation @@ -38,10 +38,6 @@ func (uc _UnitAccelerationClass) Alloc() UnitAcceleration { return rv } -func UnitAcceleration_Alloc() UnitAcceleration { - return UnitAccelerationClass.Alloc() -} - func (uc _UnitAccelerationClass) New() UnitAcceleration { rv := objc.Call[UnitAcceleration](uc, objc.Sel("new")) rv.Autorelease() @@ -57,18 +53,6 @@ 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, objc.Ptr(converter)) return rv @@ -83,6 +67,18 @@ 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 @@ -97,21 +93,6 @@ func NewUnitAccelerationWithSymbol(symbol string) UnitAcceleration { return instance } -// Returns the meter per second squared unit of acceleration. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsunitacceleration/1856015-meterspersecondsquared?language=objc -func (uc _UnitAccelerationClass) MetersPerSecondSquared() UnitAcceleration { - rv := objc.Call[UnitAcceleration](uc, objc.Sel("metersPerSecondSquared")) - return rv -} - -// Returns the meter per second squared unit of acceleration. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsunitacceleration/1856015-meterspersecondsquared?language=objc -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 @@ -126,3 +107,18 @@ func (uc _UnitAccelerationClass) Gravity() UnitAcceleration { 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 +func (uc _UnitAccelerationClass) MetersPerSecondSquared() UnitAcceleration { + rv := objc.Call[UnitAcceleration](uc, objc.Sel("metersPerSecondSquared")) + return rv +} + +// Returns the meter per second squared unit of acceleration. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsunitacceleration/1856015-meterspersecondsquared?language=objc +func UnitAcceleration_MetersPerSecondSquared() UnitAcceleration { + return UnitAccelerationClass.MetersPerSecondSquared() +} diff --git a/macos/foundation/unit_angle.gen.go b/macos/foundation/unit_angle.gen.go index f11b786a..ac840209 100644 --- a/macos/foundation/unit_angle.gen.go +++ b/macos/foundation/unit_angle.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package foundation @@ -38,10 +38,6 @@ func (uc _UnitAngleClass) Alloc() UnitAngle { return rv } -func UnitAngle_Alloc() UnitAngle { - return UnitAngleClass.Alloc() -} - func (uc _UnitAngleClass) New() UnitAngle { rv := objc.Call[UnitAngle](uc, objc.Sel("new")) rv.Autorelease() @@ -57,18 +53,6 @@ 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, objc.Ptr(converter)) return rv @@ -83,6 +67,18 @@ 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 @@ -97,36 +93,6 @@ 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 @@ -157,6 +123,21 @@ 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 @@ -186,3 +167,18 @@ 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 98e96e31..a5a83ac6 100644 --- a/macos/foundation/unit_area.gen.go +++ b/macos/foundation/unit_area.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package foundation @@ -38,10 +38,6 @@ func (uc _UnitAreaClass) Alloc() UnitArea { return rv } -func UnitArea_Alloc() UnitArea { - return UnitAreaClass.Alloc() -} - func (uc _UnitAreaClass) New() UnitArea { rv := objc.Call[UnitArea](uc, objc.Sel("new")) rv.Autorelease() @@ -57,18 +53,6 @@ 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, objc.Ptr(converter)) return rv @@ -83,6 +67,18 @@ 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 @@ -97,64 +93,64 @@ func NewUnitAreaWithSymbol(symbol string) UnitArea { return instance } -// The ares unit of area. [Full Topic] +// The square megameters 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")) +// [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 ares unit of area. [Full Topic] +// The square megameters 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() +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsunitarea/1856008-squaremegameters?language=objc +func UnitArea_SquareMegameters() UnitArea { + return UnitAreaClass.SquareMegameters() } -// The square inches unit of area. [Full Topic] +// The square nanometers 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/1856072-squarenanometers?language=objc +func (uc _UnitAreaClass) SquareNanometers() UnitArea { + rv := objc.Call[UnitArea](uc, objc.Sel("squareNanometers")) return rv } -// The square inches unit of area. [Full Topic] +// The square nanometers 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/1856072-squarenanometers?language=objc +func UnitArea_SquareNanometers() UnitArea { + return UnitAreaClass.SquareNanometers() } -// The square feet unit of area. [Full Topic] +// The square centimeters 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")) +// [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 feet unit of area. [Full Topic] +// The square centimeters 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() +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsunitarea/1856030-squarecentimeters?language=objc +func UnitArea_SquareCentimeters() UnitArea { + return UnitAreaClass.SquareCentimeters() } -// The square millimeters unit of area. [Full Topic] +// The hectares 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/1856066-hectares?language=objc +func (uc _UnitAreaClass) Hectares() UnitArea { + rv := objc.Call[UnitArea](uc, objc.Sel("hectares")) return rv } -// The square millimeters unit of area. [Full Topic] +// The hectares 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/1856066-hectares?language=objc +func UnitArea_Hectares() UnitArea { + return UnitAreaClass.Hectares() } // The square kilometers unit of area. [Full Topic] @@ -172,34 +168,49 @@ func UnitArea_SquareKilometers() UnitArea { return UnitAreaClass.SquareKilometers() } -// The hectares unit of area. [Full Topic] +// The ares 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/1856064-ares?language=objc +func (uc _UnitAreaClass) Ares() UnitArea { + rv := objc.Call[UnitArea](uc, objc.Sel("ares")) return rv } -// The hectares unit of area. [Full Topic] +// The ares 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/1856064-ares?language=objc +func UnitArea_Ares() UnitArea { + return UnitAreaClass.Ares() } -// The square miles unit of area. [Full Topic] +// The acres 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/1856099-acres?language=objc +func (uc _UnitAreaClass) Acres() UnitArea { + rv := objc.Call[UnitArea](uc, objc.Sel("acres")) return rv } -// The square miles unit of area. [Full Topic] +// The acres 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/1856099-acres?language=objc +func UnitArea_Acres() UnitArea { + return UnitAreaClass.Acres() +} + +// 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 square yards unit of area. [Full Topic] @@ -217,34 +228,49 @@ func UnitArea_SquareYards() UnitArea { return UnitAreaClass.SquareYards() } -// The square nanometers unit of area. [Full Topic] +// The square feet 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/1856014-squarefeet?language=objc +func (uc _UnitAreaClass) SquareFeet() UnitArea { + rv := objc.Call[UnitArea](uc, objc.Sel("squareFeet")) return rv } -// The square nanometers unit of area. [Full Topic] +// The square feet 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/1856014-squarefeet?language=objc +func UnitArea_SquareFeet() UnitArea { + return UnitAreaClass.SquareFeet() } -// The square megameters unit of area. [Full Topic] +// The square millimeters 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/1856039-squaremillimeters?language=objc +func (uc _UnitAreaClass) SquareMillimeters() UnitArea { + rv := objc.Call[UnitArea](uc, objc.Sel("squareMillimeters")) return rv } -// The square megameters unit of area. [Full Topic] +// The square millimeters 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/1856039-squaremillimeters?language=objc +func UnitArea_SquareMillimeters() UnitArea { + return UnitAreaClass.SquareMillimeters() +} + +// The square inches 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")) + return rv +} + +// The square inches 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() } // The square meters unit of area. [Full Topic] @@ -262,47 +288,17 @@ func UnitArea_SquareMeters() UnitArea { return UnitAreaClass.SquareMeters() } -// The square centimeters 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")) - return rv -} - -// The square centimeters 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() -} - -// 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] +// The square miles 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/1856097-squaremiles?language=objc +func (uc _UnitAreaClass) SquareMiles() UnitArea { + rv := objc.Call[UnitArea](uc, objc.Sel("squareMiles")) return rv } -// The acres unit of area. [Full Topic] +// The square miles 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/1856097-squaremiles?language=objc +func UnitArea_SquareMiles() UnitArea { + return UnitAreaClass.SquareMiles() } diff --git a/macos/foundation/unit_concentration_mass.gen.go b/macos/foundation/unit_concentration_mass.gen.go index 4992849c..f36af00c 100644 --- a/macos/foundation/unit_concentration_mass.gen.go +++ b/macos/foundation/unit_concentration_mass.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package foundation @@ -38,10 +38,6 @@ func (uc _UnitConcentrationMassClass) Alloc() UnitConcentrationMass { return rv } -func UnitConcentrationMass_Alloc() UnitConcentrationMass { - return UnitConcentrationMassClass.Alloc() -} - func (uc _UnitConcentrationMassClass) New() UnitConcentrationMass { rv := objc.Call[UnitConcentrationMass](uc, objc.Sel("new")) rv.Autorelease() @@ -57,18 +53,6 @@ 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, objc.Ptr(converter)) return rv @@ -83,6 +67,18 @@ 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 @@ -112,21 +108,6 @@ func UnitConcentrationMass_MillimolesPerLiterWithGramsPerMole(gramsPerMole float return UnitConcentrationMassClass.MillimolesPerLiterWithGramsPerMole(gramsPerMole) } -// The grams per liter unit of concentration. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsunitconcentrationmass/1856019-gramsperliter?language=objc -func (uc _UnitConcentrationMassClass) GramsPerLiter() UnitConcentrationMass { - rv := objc.Call[UnitConcentrationMass](uc, objc.Sel("gramsPerLiter")) - return rv -} - -// The grams per liter unit of concentration. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsunitconcentrationmass/1856019-gramsperliter?language=objc -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 @@ -141,3 +122,18 @@ func (uc _UnitConcentrationMassClass) MilligramsPerDeciliter() UnitConcentration 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 +func (uc _UnitConcentrationMassClass) GramsPerLiter() UnitConcentrationMass { + rv := objc.Call[UnitConcentrationMass](uc, objc.Sel("gramsPerLiter")) + return rv +} + +// The grams per liter unit of concentration. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsunitconcentrationmass/1856019-gramsperliter?language=objc +func UnitConcentrationMass_GramsPerLiter() UnitConcentrationMass { + return UnitConcentrationMassClass.GramsPerLiter() +} diff --git a/macos/foundation/unit_converter.gen.go b/macos/foundation/unit_converter.gen.go index 293a3cdb..d0f99841 100644 --- a/macos/foundation/unit_converter.gen.go +++ b/macos/foundation/unit_converter.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package foundation @@ -18,8 +18,8 @@ type _UnitConverterClass struct { // An interface definition for the [UnitConverter] class. type IUnitConverter interface { objc.IObject - BaseUnitValueFromValue(value float64) float64 ValueFromBaseUnitValue(baseUnitValue float64) float64 + BaseUnitValueFromValue(value 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] @@ -40,10 +40,6 @@ func (uc _UnitConverterClass) Alloc() UnitConverter { return rv } -func UnitConverter_Alloc() UnitConverter { - return UnitConverterClass.Alloc() -} - func (uc _UnitConverterClass) New() UnitConverter { rv := objc.Call[UnitConverter](uc, objc.Sel("new")) rv.Autorelease() @@ -59,14 +55,6 @@ func (u_ UnitConverter) Init() UnitConverter { 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 -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 @@ -74,3 +62,11 @@ 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 +func (u_ UnitConverter) BaseUnitValueFromValue(value float64) float64 { + rv := objc.Call[float64](u_, objc.Sel("baseUnitValueFromValue:"), value) + return rv +} diff --git a/macos/foundation/unit_converter_linear.gen.go b/macos/foundation/unit_converter_linear.gen.go index c67e103c..bc9f7395 100644 --- a/macos/foundation/unit_converter_linear.gen.go +++ b/macos/foundation/unit_converter_linear.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package foundation @@ -35,13 +35,37 @@ func UnitConverterLinearFrom(ptr unsafe.Pointer) UnitConverterLinear { } } -func (uc _UnitConverterLinearClass) Alloc() UnitConverterLinear { - rv := objc.Call[UnitConverterLinear](uc, objc.Sel("alloc")) +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 } -func UnitConverterLinear_Alloc() UnitConverterLinear { - return UnitConverterLinearClass.Alloc() +// 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 } func (uc _UnitConverterLinearClass) New() UnitConverterLinear { diff --git a/macos/foundation/unit_dispersion.gen.go b/macos/foundation/unit_dispersion.gen.go index 3e1c3bcc..46912003 100644 --- a/macos/foundation/unit_dispersion.gen.go +++ b/macos/foundation/unit_dispersion.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package foundation @@ -38,10 +38,6 @@ func (uc _UnitDispersionClass) Alloc() UnitDispersion { return rv } -func UnitDispersion_Alloc() UnitDispersion { - return UnitDispersionClass.Alloc() -} - func (uc _UnitDispersionClass) New() UnitDispersion { rv := objc.Call[UnitDispersion](uc, objc.Sel("new")) rv.Autorelease() @@ -57,18 +53,6 @@ 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, objc.Ptr(converter)) return rv @@ -83,6 +67,18 @@ 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 d65cdafa..74d6d591 100644 --- a/macos/foundation/unit_duration.gen.go +++ b/macos/foundation/unit_duration.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package foundation @@ -38,10 +38,6 @@ func (uc _UnitDurationClass) Alloc() UnitDuration { return rv } -func UnitDuration_Alloc() UnitDuration { - return UnitDurationClass.Alloc() -} - func (uc _UnitDurationClass) New() UnitDuration { rv := objc.Call[UnitDuration](uc, objc.Sel("new")) rv.Autorelease() @@ -57,18 +53,6 @@ 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, objc.Ptr(converter)) return rv @@ -83,6 +67,18 @@ 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 @@ -97,34 +93,19 @@ func NewUnitDurationWithSymbol(symbol string) UnitDuration { return instance } -// 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() -} - -// The microsecond unit of duration. [Full Topic] +// The nanosecond 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")) +// [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 microsecond unit of duration. [Full Topic] +// The nanosecond 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() +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsunitduration/3172540-nanoseconds?language=objc +func UnitDuration_Nanoseconds() UnitDuration { + return UnitDurationClass.Nanoseconds() } // The picosecond unit of duration. [Full Topic] @@ -142,21 +123,6 @@ 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 @@ -172,19 +138,34 @@ func UnitDuration_Milliseconds() UnitDuration { return UnitDurationClass.Milliseconds() } -// The nanosecond unit of duration. [Full Topic] +// The microsecond 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/3172538-microseconds?language=objc +func (uc _UnitDurationClass) Microseconds() UnitDuration { + rv := objc.Call[UnitDuration](uc, objc.Sel("microseconds")) return rv } -// The nanosecond unit of duration. [Full Topic] +// The microsecond 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/3172538-microseconds?language=objc +func UnitDuration_Microseconds() UnitDuration { + return UnitDurationClass.Microseconds() +} + +// 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 minute unit of duration. [Full Topic] @@ -201,3 +182,18 @@ 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 61dcb28d..475241c5 100644 --- a/macos/foundation/unit_electric_charge.gen.go +++ b/macos/foundation/unit_electric_charge.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package foundation @@ -38,10 +38,6 @@ func (uc _UnitElectricChargeClass) Alloc() UnitElectricCharge { return rv } -func UnitElectricCharge_Alloc() UnitElectricCharge { - return UnitElectricChargeClass.Alloc() -} - func (uc _UnitElectricChargeClass) New() UnitElectricCharge { rv := objc.Call[UnitElectricCharge](uc, objc.Sel("new")) rv.Autorelease() @@ -57,18 +53,6 @@ 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, objc.Ptr(converter)) return rv @@ -83,6 +67,18 @@ 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 @@ -97,19 +93,19 @@ func NewUnitElectricChargeWithSymbol(symbol string) UnitElectricCharge { return instance } -// The kiloampere hours unit of electric charge. [Full Topic] +// The ampere 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")) +// [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 kiloampere hours unit of electric charge. [Full Topic] +// The ampere 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() +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsunitelectriccharge/1856117-amperehours?language=objc +func UnitElectricCharge_AmpereHours() UnitElectricCharge { + return UnitElectricChargeClass.AmpereHours() } // The milliampere hours unit of electric charge. [Full Topic] @@ -142,21 +138,6 @@ 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 @@ -186,3 +167,18 @@ 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 97597012..0bf364c9 100644 --- a/macos/foundation/unit_electric_current.gen.go +++ b/macos/foundation/unit_electric_current.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package foundation @@ -38,10 +38,6 @@ func (uc _UnitElectricCurrentClass) Alloc() UnitElectricCurrent { return rv } -func UnitElectricCurrent_Alloc() UnitElectricCurrent { - return UnitElectricCurrentClass.Alloc() -} - func (uc _UnitElectricCurrentClass) New() UnitElectricCurrent { rv := objc.Call[UnitElectricCurrent](uc, objc.Sel("new")) rv.Autorelease() @@ -57,18 +53,6 @@ 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, objc.Ptr(converter)) return rv @@ -83,6 +67,18 @@ 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 @@ -97,21 +93,6 @@ 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 @@ -142,6 +123,21 @@ 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 2b68cd7e..d58b2498 100644 --- a/macos/foundation/unit_electric_potential_difference.gen.go +++ b/macos/foundation/unit_electric_potential_difference.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package foundation @@ -38,10 +38,6 @@ func (uc _UnitElectricPotentialDifferenceClass) Alloc() UnitElectricPotentialDif return rv } -func UnitElectricPotentialDifference_Alloc() UnitElectricPotentialDifference { - return UnitElectricPotentialDifferenceClass.Alloc() -} - func (uc _UnitElectricPotentialDifferenceClass) New() UnitElectricPotentialDifference { rv := objc.Call[UnitElectricPotentialDifference](uc, objc.Sel("new")) rv.Autorelease() @@ -57,18 +53,6 @@ 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, objc.Ptr(converter)) return rv @@ -83,6 +67,18 @@ 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 @@ -127,21 +123,6 @@ 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 @@ -171,3 +152,18 @@ 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 780cd1ab..afceeb78 100644 --- a/macos/foundation/unit_electric_resistance.gen.go +++ b/macos/foundation/unit_electric_resistance.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package foundation @@ -38,10 +38,6 @@ func (uc _UnitElectricResistanceClass) Alloc() UnitElectricResistance { return rv } -func UnitElectricResistance_Alloc() UnitElectricResistance { - return UnitElectricResistanceClass.Alloc() -} - func (uc _UnitElectricResistanceClass) New() UnitElectricResistance { rv := objc.Call[UnitElectricResistance](uc, objc.Sel("new")) rv.Autorelease() @@ -57,18 +53,6 @@ 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, objc.Ptr(converter)) return rv @@ -83,6 +67,18 @@ 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 @@ -97,6 +93,21 @@ 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 @@ -112,6 +123,21 @@ 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 @@ -141,33 +167,3 @@ 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 718fb3e4..bf9337b9 100644 --- a/macos/foundation/unit_energy.gen.go +++ b/macos/foundation/unit_energy.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package foundation @@ -38,10 +38,6 @@ func (uc _UnitEnergyClass) Alloc() UnitEnergy { return rv } -func UnitEnergy_Alloc() UnitEnergy { - return UnitEnergyClass.Alloc() -} - func (uc _UnitEnergyClass) New() UnitEnergy { rv := objc.Call[UnitEnergy](uc, objc.Sel("new")) rv.Autorelease() @@ -57,18 +53,6 @@ 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, objc.Ptr(converter)) return rv @@ -83,6 +67,18 @@ 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 @@ -97,19 +93,19 @@ func NewUnitEnergyWithSymbol(symbol string) UnitEnergy { return instance } -// The kilowatt hours unit of energy. [Full Topic] +// The kilocalories 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")) +// [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 kilowatt hours unit of energy. [Full Topic] +// The kilocalories 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() +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsunitenergy/1856028-kilocalories?language=objc +func UnitEnergy_Kilocalories() UnitEnergy { + return UnitEnergyClass.Kilocalories() } // The calories unit of energy. [Full Topic] @@ -127,21 +123,6 @@ 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 @@ -157,6 +138,21 @@ 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 509ad250..1743997d 100644 --- a/macos/foundation/unit_frequency.gen.go +++ b/macos/foundation/unit_frequency.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package foundation @@ -38,10 +38,6 @@ func (uc _UnitFrequencyClass) Alloc() UnitFrequency { return rv } -func UnitFrequency_Alloc() UnitFrequency { - return UnitFrequencyClass.Alloc() -} - func (uc _UnitFrequencyClass) New() UnitFrequency { rv := objc.Call[UnitFrequency](uc, objc.Sel("new")) rv.Autorelease() @@ -57,18 +53,6 @@ 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, objc.Ptr(converter)) return rv @@ -83,6 +67,18 @@ 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 @@ -97,34 +93,49 @@ func NewUnitFrequencyWithSymbol(symbol string) UnitFrequency { return instance } -// The frames per second unit of frequency. [Full Topic] +// The nanohertz 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/1690663-nanohertz?language=objc +func (uc _UnitFrequencyClass) Nanohertz() UnitFrequency { + rv := objc.Call[UnitFrequency](uc, objc.Sel("nanohertz")) return rv } -// The frames per second unit of frequency. [Full Topic] +// The nanohertz 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/1690663-nanohertz?language=objc +func UnitFrequency_Nanohertz() UnitFrequency { + return UnitFrequencyClass.Nanohertz() } -// 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 kilohertz 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")) + return rv +} + +// The kilohertz 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() } // The millihertz unit of frequency. [Full Topic] @@ -142,21 +153,6 @@ 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 @@ -172,49 +168,49 @@ func UnitFrequency_Megahertz() UnitFrequency { return UnitFrequencyClass.Megahertz() } -// The nanohertz unit of frequency. [Full Topic] +// The hertz 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")) +// [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 nanohertz unit of frequency. [Full Topic] +// The hertz 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() +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsunitfrequency/1690670-hertz?language=objc +func UnitFrequency_Hertz() UnitFrequency { + return UnitFrequencyClass.Hertz() } -// The kilohertz unit of frequency. [Full Topic] +// The frames per second 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/3172542-framespersecond?language=objc +func (uc _UnitFrequencyClass) FramesPerSecond() UnitFrequency { + rv := objc.Call[UnitFrequency](uc, objc.Sel("framesPerSecond")) return rv } -// The kilohertz unit of frequency. [Full Topic] +// The frames per second 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/3172542-framespersecond?language=objc +func UnitFrequency_FramesPerSecond() UnitFrequency { + return UnitFrequencyClass.FramesPerSecond() } -// The gigahertz unit of frequency. [Full Topic] +// The terahertz 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/1690717-terahertz?language=objc +func (uc _UnitFrequencyClass) Terahertz() UnitFrequency { + rv := objc.Call[UnitFrequency](uc, objc.Sel("terahertz")) return rv } -// The gigahertz unit of frequency. [Full Topic] +// The terahertz 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/1690717-terahertz?language=objc +func UnitFrequency_Terahertz() UnitFrequency { + return UnitFrequencyClass.Terahertz() } // 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 da0bde9f..65405a1a 100644 --- a/macos/foundation/unit_fuel_efficiency.gen.go +++ b/macos/foundation/unit_fuel_efficiency.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package foundation @@ -38,10 +38,6 @@ func (uc _UnitFuelEfficiencyClass) Alloc() UnitFuelEfficiency { return rv } -func UnitFuelEfficiency_Alloc() UnitFuelEfficiency { - return UnitFuelEfficiencyClass.Alloc() -} - func (uc _UnitFuelEfficiencyClass) New() UnitFuelEfficiency { rv := objc.Call[UnitFuelEfficiency](uc, objc.Sel("new")) rv.Autorelease() @@ -57,18 +53,6 @@ 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, objc.Ptr(converter)) return rv @@ -83,6 +67,18 @@ 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 @@ -97,21 +93,6 @@ 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 @@ -141,3 +122,18 @@ 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 a8491d1f..58dd5e60 100644 --- a/macos/foundation/unit_illuminance.gen.go +++ b/macos/foundation/unit_illuminance.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package foundation @@ -38,10 +38,6 @@ func (uc _UnitIlluminanceClass) Alloc() UnitIlluminance { return rv } -func UnitIlluminance_Alloc() UnitIlluminance { - return UnitIlluminanceClass.Alloc() -} - func (uc _UnitIlluminanceClass) New() UnitIlluminance { rv := objc.Call[UnitIlluminance](uc, objc.Sel("new")) rv.Autorelease() @@ -57,18 +53,6 @@ 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, objc.Ptr(converter)) return rv @@ -83,6 +67,18 @@ 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 e60e5941..e2df5a16 100644 --- a/macos/foundation/unit_information_storage.gen.go +++ b/macos/foundation/unit_information_storage.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package foundation @@ -38,10 +38,6 @@ func (uc _UnitInformationStorageClass) Alloc() UnitInformationStorage { return rv } -func UnitInformationStorage_Alloc() UnitInformationStorage { - return UnitInformationStorageClass.Alloc() -} - func (uc _UnitInformationStorageClass) New() UnitInformationStorage { rv := objc.Call[UnitInformationStorage](uc, objc.Sel("new")) rv.Autorelease() @@ -57,18 +53,6 @@ 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, objc.Ptr(converter)) return rv @@ -83,6 +67,18 @@ 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 @@ -97,49 +93,64 @@ func NewUnitInformationStorageWithSymbol(symbol string) UnitInformationStorage { return instance } -// The gibibytes unit of information. [Full Topic] +// The mebibytes 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/3172559-mebibytes?language=objc +func (uc _UnitInformationStorageClass) Mebibytes() UnitInformationStorage { + rv := objc.Call[UnitInformationStorage](uc, objc.Sel("mebibytes")) return rv } -// The gibibytes unit of information. [Full Topic] +// The mebibytes 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/3172559-mebibytes?language=objc +func UnitInformationStorage_Mebibytes() UnitInformationStorage { + return UnitInformationStorageClass.Mebibytes() } -// The zebibits unit of information. [Full Topic] +// The gigabits 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/3172552-gigabits?language=objc +func (uc _UnitInformationStorageClass) Gigabits() UnitInformationStorage { + rv := objc.Call[UnitInformationStorage](uc, objc.Sel("gigabits")) return rv } -// The zebibits unit of information. [Full Topic] +// The gigabits 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() +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsunitinformationstorage/3172552-gigabits?language=objc +func UnitInformationStorage_Gigabits() UnitInformationStorage { + return UnitInformationStorageClass.Gigabits() } -// The petabits unit of information. [Full Topic] +// The zettabytes 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")) +// [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 petabits unit of information. [Full Topic] +// The zettabytes 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() +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsunitinformationstorage/3172578-zettabytes?language=objc +func UnitInformationStorage_Zettabytes() UnitInformationStorage { + return UnitInformationStorageClass.Zettabytes() +} + +// The pebibytes 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")) + return rv +} + +// The pebibytes 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() } // The exbibytes unit of information. [Full Topic] @@ -157,79 +168,94 @@ func UnitInformationStorage_Exbibytes() UnitInformationStorage { return UnitInformationStorageClass.Exbibytes() } -// The nibbles unit of information. [Full Topic] +// The petabits 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")) +// [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 nibbles unit of information. [Full Topic] +// The petabits 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() +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsunitinformationstorage/3172565-petabits?language=objc +func UnitInformationStorage_Petabits() UnitInformationStorage { + return UnitInformationStorageClass.Petabits() } -// The yobibits unit of information. [Full Topic] +// The megabits 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/3172560-megabits?language=objc +func (uc _UnitInformationStorageClass) Megabits() UnitInformationStorage { + rv := objc.Call[UnitInformationStorage](uc, objc.Sel("megabits")) return rv } -// The yobibits unit of information. [Full Topic] +// The megabits 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/3172560-megabits?language=objc +func UnitInformationStorage_Megabits() UnitInformationStorage { + return UnitInformationStorageClass.Megabits() } -// The zettabits unit of information. [Full Topic] +// The terabits 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/3172569-terabits?language=objc +func (uc _UnitInformationStorageClass) Terabits() UnitInformationStorage { + rv := objc.Call[UnitInformationStorage](uc, objc.Sel("terabits")) return rv } -// The zettabits unit of information. [Full Topic] +// The terabits 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/3172569-terabits?language=objc +func UnitInformationStorage_Terabits() UnitInformationStorage { + return UnitInformationStorageClass.Terabits() } -// The bits unit of information. [Full Topic] +// The gibibytes 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/3172551-gibibytes?language=objc +func (uc _UnitInformationStorageClass) Gibibytes() UnitInformationStorage { + rv := objc.Call[UnitInformationStorage](uc, objc.Sel("gibibytes")) return rv } -// The bits unit of information. [Full Topic] +// The gibibytes 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/3172551-gibibytes?language=objc +func UnitInformationStorage_Gibibytes() UnitInformationStorage { + return UnitInformationStorageClass.Gibibytes() } -// The gigabits unit of information. [Full Topic] +// The yottabits 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/3172573-yottabits?language=objc +func (uc _UnitInformationStorageClass) Yottabits() UnitInformationStorage { + rv := objc.Call[UnitInformationStorage](uc, objc.Sel("yottabits")) return rv } -// The gigabits unit of information. [Full Topic] +// The yottabits 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/3172573-yottabits?language=objc +func UnitInformationStorage_Yottabits() UnitInformationStorage { + return UnitInformationStorageClass.Yottabits() +} + +// The zebibytes 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")) + return rv +} + +// The zebibytes 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() } // The kibibytes unit of information. [Full Topic] @@ -247,94 +273,139 @@ func UnitInformationStorage_Kibibytes() UnitInformationStorage { return UnitInformationStorageClass.Kibibytes() } -// The mebibytes unit of information. [Full Topic] +// The megabytes 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")) +// [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 mebibytes unit of information. [Full Topic] +// The megabytes 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() +// [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 bytes 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/3172545-bytes?language=objc +func (uc _UnitInformationStorageClass) Bytes() UnitInformationStorage { + rv := objc.Call[UnitInformationStorage](uc, objc.Sel("bytes")) return rv } -// The kibibits unit of information. [Full Topic] +// The bytes 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/3172545-bytes?language=objc +func UnitInformationStorage_Bytes() UnitInformationStorage { + return UnitInformationStorageClass.Bytes() } -// The terrabytes unit of information. [Full Topic] +// The yobibits 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/3172571-yobibits?language=objc +func (uc _UnitInformationStorageClass) Yobibits() UnitInformationStorage { + rv := objc.Call[UnitInformationStorage](uc, objc.Sel("yobibits")) return rv } -// The terrabytes unit of information. [Full Topic] +// The yobibits 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/3172571-yobibits?language=objc +func UnitInformationStorage_Yobibits() UnitInformationStorage { + return UnitInformationStorageClass.Yobibits() } -// The tebibytes unit of information. [Full Topic] +// The tebibits 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/3172567-tebibits?language=objc +func (uc _UnitInformationStorageClass) Tebibits() UnitInformationStorage { + rv := objc.Call[UnitInformationStorage](uc, objc.Sel("tebibits")) return rv } -// The tebibytes unit of information. [Full Topic] +// The tebibits 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/3172567-tebibits?language=objc +func UnitInformationStorage_Tebibits() UnitInformationStorage { + return UnitInformationStorageClass.Tebibits() } -// The pebibits unit of information. [Full Topic] +// The zebibits 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/3172575-zebibits?language=objc +func (uc _UnitInformationStorageClass) Zebibits() UnitInformationStorage { + rv := objc.Call[UnitInformationStorage](uc, objc.Sel("zebibits")) return rv } -// The pebibits unit of information. [Full Topic] +// The zebibits 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/3172575-zebibits?language=objc +func UnitInformationStorage_Zebibits() UnitInformationStorage { + return UnitInformationStorageClass.Zebibits() } -// The yobibytes unit of information. [Full Topic] +// The exabytes 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/3172547-exabytes?language=objc +func (uc _UnitInformationStorageClass) Exabytes() UnitInformationStorage { + rv := objc.Call[UnitInformationStorage](uc, objc.Sel("exabytes")) return rv } -// The yobibytes unit of information. [Full Topic] +// The exabytes 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/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() +} + +// 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 petabytes unit of information. [Full Topic] @@ -367,139 +438,109 @@ func UnitInformationStorage_Gibibits() UnitInformationStorage { return UnitInformationStorageClass.Gibibits() } -// The kilobytes 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")) - return rv -} - -// The kilobytes 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() -} - -// 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 megabytes unit of information. [Full Topic] +// The yobibytes 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/3172572-yobibytes?language=objc +func (uc _UnitInformationStorageClass) Yobibytes() UnitInformationStorage { + rv := objc.Call[UnitInformationStorage](uc, objc.Sel("yobibytes")) return rv } -// The megabytes unit of information. [Full Topic] +// The yobibytes 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/3172572-yobibytes?language=objc +func UnitInformationStorage_Yobibytes() UnitInformationStorage { + return UnitInformationStorageClass.Yobibytes() } -// The mebibits unit of information. [Full Topic] +// The zettabits 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/3172577-zettabits?language=objc +func (uc _UnitInformationStorageClass) Zettabits() UnitInformationStorage { + rv := objc.Call[UnitInformationStorage](uc, objc.Sel("zettabits")) return rv } -// The mebibits unit of information. [Full Topic] +// The zettabits 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/3172577-zettabits?language=objc +func UnitInformationStorage_Zettabits() UnitInformationStorage { + return UnitInformationStorageClass.Zettabits() } -// The pebibytes unit of information. [Full Topic] +// The tebibytes 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/3172568-tebibytes?language=objc +func (uc _UnitInformationStorageClass) Tebibytes() UnitInformationStorage { + rv := objc.Call[UnitInformationStorage](uc, objc.Sel("tebibytes")) return rv } -// The pebibytes unit of information. [Full Topic] +// The tebibytes 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/3172568-tebibytes?language=objc +func UnitInformationStorage_Tebibytes() UnitInformationStorage { + return UnitInformationStorageClass.Tebibytes() } -// The terabits unit of information. [Full Topic] +// The kibibits 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/3172554-kibibits?language=objc +func (uc _UnitInformationStorageClass) Kibibits() UnitInformationStorage { + rv := objc.Call[UnitInformationStorage](uc, objc.Sel("kibibits")) return rv } -// The terabits unit of information. [Full Topic] +// The kibibits 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/3172554-kibibits?language=objc +func UnitInformationStorage_Kibibits() UnitInformationStorage { + return UnitInformationStorageClass.Kibibits() } -// The bytes unit of information. [Full Topic] +// The terrabytes 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/3172570-terabytes?language=objc +func (uc _UnitInformationStorageClass) Terabytes() UnitInformationStorage { + rv := objc.Call[UnitInformationStorage](uc, objc.Sel("terabytes")) return rv } -// The bytes unit of information. [Full Topic] +// The terrabytes 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/3172570-terabytes?language=objc +func UnitInformationStorage_Terabytes() UnitInformationStorage { + return UnitInformationStorageClass.Terabytes() } -// The yottabytes unit of information. [Full Topic] +// The kilobits 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/3172556-kilobits?language=objc +func (uc _UnitInformationStorageClass) Kilobits() UnitInformationStorage { + rv := objc.Call[UnitInformationStorage](uc, objc.Sel("kilobits")) return rv } -// The yottabytes unit of information. [Full Topic] +// The kilobits 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/3172556-kilobits?language=objc +func UnitInformationStorage_Kilobits() UnitInformationStorage { + return UnitInformationStorageClass.Kilobits() } -// The yottabits unit of information. [Full Topic] +// The mebibits 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/3172558-mebibits?language=objc +func (uc _UnitInformationStorageClass) Mebibits() UnitInformationStorage { + rv := objc.Call[UnitInformationStorage](uc, objc.Sel("mebibits")) return rv } -// The yottabits unit of information. [Full Topic] +// The mebibits 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/3172558-mebibits?language=objc +func UnitInformationStorage_Mebibits() UnitInformationStorage { + return UnitInformationStorageClass.Mebibits() } // The gigabytes unit of information. [Full Topic] @@ -517,107 +558,62 @@ func UnitInformationStorage_Gigabytes() UnitInformationStorage { return UnitInformationStorageClass.Gigabytes() } -// The zebibytes 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")) - return rv -} - -// The zebibytes 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() -} - -// The kilobits 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")) - return rv -} - -// The kilobits 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() -} - -// The tebibits 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")) - return rv -} - -// The tebibits 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() -} - -// The megabits unit of information. [Full Topic] +// The yottabytes 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/3172574-yottabytes?language=objc +func (uc _UnitInformationStorageClass) Yottabytes() UnitInformationStorage { + rv := objc.Call[UnitInformationStorage](uc, objc.Sel("yottabytes")) return rv } -// The megabits unit of information. [Full Topic] +// The yottabytes 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/3172574-yottabytes?language=objc +func UnitInformationStorage_Yottabytes() UnitInformationStorage { + return UnitInformationStorageClass.Yottabytes() } -// The exbibits unit of information. [Full Topic] +// The bits 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")) +// [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 exbibits unit of information. [Full Topic] +// The bits 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/3172544-bits?language=objc +func UnitInformationStorage_Bits() UnitInformationStorage { + return UnitInformationStorageClass.Bits() } -// The exabits unit of information. [Full Topic] +// The pebibits 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/3172563-pebibits?language=objc +func (uc _UnitInformationStorageClass) Pebibits() UnitInformationStorage { + rv := objc.Call[UnitInformationStorage](uc, objc.Sel("pebibits")) return rv } -// The exabits unit of information. [Full Topic] +// The pebibits 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/3172563-pebibits?language=objc +func UnitInformationStorage_Pebibits() UnitInformationStorage { + return UnitInformationStorageClass.Pebibits() } -// The zettabytes unit of information. [Full Topic] +// The kilobytes 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/3172557-kilobytes?language=objc +func (uc _UnitInformationStorageClass) Kilobytes() UnitInformationStorage { + rv := objc.Call[UnitInformationStorage](uc, objc.Sel("kilobytes")) return rv } -// The zettabytes unit of information. [Full Topic] +// The kilobytes 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/3172557-kilobytes?language=objc +func UnitInformationStorage_Kilobytes() UnitInformationStorage { + return UnitInformationStorageClass.Kilobytes() } diff --git a/macos/foundation/unit_length.gen.go b/macos/foundation/unit_length.gen.go index f360a1e5..cf3f683b 100644 --- a/macos/foundation/unit_length.gen.go +++ b/macos/foundation/unit_length.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package foundation @@ -38,10 +38,6 @@ func (uc _UnitLengthClass) Alloc() UnitLength { return rv } -func UnitLength_Alloc() UnitLength { - return UnitLengthClass.Alloc() -} - func (uc _UnitLengthClass) New() UnitLength { rv := objc.Call[UnitLength](uc, objc.Sel("new")) rv.Autorelease() @@ -57,18 +53,6 @@ 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, objc.Ptr(converter)) return rv @@ -83,6 +67,18 @@ 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 @@ -97,94 +93,109 @@ func NewUnitLengthWithSymbol(symbol string) UnitLength { return instance } -// The parsecs unit of length. [Full Topic] +// The meters 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/1855995-meters?language=objc +func (uc _UnitLengthClass) Meters() UnitLength { + rv := objc.Call[UnitLength](uc, objc.Sel("meters")) return rv } -// The parsecs unit of length. [Full Topic] +// The meters 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/1855995-meters?language=objc +func UnitLength_Meters() UnitLength { + return UnitLengthClass.Meters() } -// The astronomical units unit of length. [Full Topic] +// The furlongs 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/1856065-furlongs?language=objc +func (uc _UnitLengthClass) Furlongs() UnitLength { + rv := objc.Call[UnitLength](uc, objc.Sel("furlongs")) return rv } -// The astronomical units unit of length. [Full Topic] +// The furlongs 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/1856065-furlongs?language=objc +func UnitLength_Furlongs() UnitLength { + return UnitLengthClass.Furlongs() } -// The inches unit of length. [Full Topic] +// The fathoms 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/1856090-fathoms?language=objc +func (uc _UnitLengthClass) Fathoms() UnitLength { + rv := objc.Call[UnitLength](uc, objc.Sel("fathoms")) return rv } -// The inches unit of length. [Full Topic] +// The fathoms 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/1856090-fathoms?language=objc +func UnitLength_Fathoms() UnitLength { + return UnitLengthClass.Fathoms() } -// The nanometers unit of length. [Full Topic] +// The centimeters 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/1856082-centimeters?language=objc +func (uc _UnitLengthClass) Centimeters() UnitLength { + rv := objc.Call[UnitLength](uc, objc.Sel("centimeters")) return rv } -// The nanometers unit of length. [Full Topic] +// The centimeters 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/1856082-centimeters?language=objc +func UnitLength_Centimeters() UnitLength { + return UnitLengthClass.Centimeters() } -// The hectometers unit of length. [Full Topic] +// The decameters 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/1856042-decameters?language=objc +func (uc _UnitLengthClass) Decameters() UnitLength { + rv := objc.Call[UnitLength](uc, objc.Sel("decameters")) return rv } -// The hectometers unit of length. [Full Topic] +// The decameters 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/1856042-decameters?language=objc +func UnitLength_Decameters() UnitLength { + return UnitLengthClass.Decameters() } -// The megameters unit of length. [Full Topic] +// The feet 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/1855972-feet?language=objc +func (uc _UnitLengthClass) Feet() UnitLength { + rv := objc.Call[UnitLength](uc, objc.Sel("feet")) return rv } -// The megameters unit of length. [Full Topic] +// The feet 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/1855972-feet?language=objc +func UnitLength_Feet() UnitLength { + return UnitLengthClass.Feet() +} + +// The picometers 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")) + return rv +} + +// The picometers 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() } // The millimeters unit of length. [Full Topic] @@ -202,49 +213,34 @@ func UnitLength_Millimeters() UnitLength { return UnitLengthClass.Millimeters() } -// The feet 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")) - return rv -} - -// The feet 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() -} - -// The furlongs unit of length. [Full Topic] +// The hectometers 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/1855970-hectometers?language=objc +func (uc _UnitLengthClass) Hectometers() UnitLength { + rv := objc.Call[UnitLength](uc, objc.Sel("hectometers")) return rv } -// The furlongs unit of length. [Full Topic] +// The hectometers 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/1855970-hectometers?language=objc +func UnitLength_Hectometers() UnitLength { + return UnitLengthClass.Hectometers() } -// The fathoms unit of length. [Full Topic] +// The Scandinavian miles 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/1856061-scandinavianmiles?language=objc +func (uc _UnitLengthClass) ScandinavianMiles() UnitLength { + rv := objc.Call[UnitLength](uc, objc.Sel("scandinavianMiles")) return rv } -// The fathoms unit of length. [Full Topic] +// The Scandinavian miles 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/1856061-scandinavianmiles?language=objc +func UnitLength_ScandinavianMiles() UnitLength { + return UnitLengthClass.ScandinavianMiles() } // The light years unit of length. [Full Topic] @@ -262,167 +258,167 @@ func UnitLength_Lightyears() UnitLength { return UnitLengthClass.Lightyears() } -// The nautical miles unit of length. [Full Topic] +// The micrometers 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/1855998-micrometers?language=objc +func (uc _UnitLengthClass) Micrometers() UnitLength { + rv := objc.Call[UnitLength](uc, objc.Sel("micrometers")) return rv } -// The nautical miles unit of length. [Full Topic] +// The micrometers 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/1855998-micrometers?language=objc +func UnitLength_Micrometers() UnitLength { + return UnitLengthClass.Micrometers() } -// The miles unit of length. [Full Topic] +// The kilometers 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/1856106-kilometers?language=objc +func (uc _UnitLengthClass) Kilometers() UnitLength { + rv := objc.Call[UnitLength](uc, objc.Sel("kilometers")) return rv } -// The miles unit of length. [Full Topic] +// The kilometers 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/1856106-kilometers?language=objc +func UnitLength_Kilometers() UnitLength { + return UnitLengthClass.Kilometers() } -// The yards unit of length. [Full Topic] +// The decimeters 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/1856007-decimeters?language=objc +func (uc _UnitLengthClass) Decimeters() UnitLength { + rv := objc.Call[UnitLength](uc, objc.Sel("decimeters")) return rv } -// The yards unit of length. [Full Topic] +// The decimeters 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/1856007-decimeters?language=objc +func UnitLength_Decimeters() UnitLength { + return UnitLengthClass.Decimeters() } -// The kilometers unit of length. [Full Topic] +// The inches 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/1856018-inches?language=objc +func (uc _UnitLengthClass) Inches() UnitLength { + rv := objc.Call[UnitLength](uc, objc.Sel("inches")) return rv } -// The kilometers unit of length. [Full Topic] +// The inches 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/1856018-inches?language=objc +func UnitLength_Inches() UnitLength { + return UnitLengthClass.Inches() } -// The meters unit of length. [Full Topic] +// The astronomical units 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")) +// [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 meters unit of length. [Full Topic] +// The astronomical units 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() +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsunitlength/1856087-astronomicalunits?language=objc +func UnitLength_AstronomicalUnits() UnitLength { + return UnitLengthClass.AstronomicalUnits() } -// The picometers unit of length. [Full Topic] +// The miles 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/1856016-miles?language=objc +func (uc _UnitLengthClass) Miles() UnitLength { + rv := objc.Call[UnitLength](uc, objc.Sel("miles")) return rv } -// The picometers unit of length. [Full Topic] +// The miles 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/1856016-miles?language=objc +func UnitLength_Miles() UnitLength { + return UnitLengthClass.Miles() } -// The micrometers unit of length. [Full Topic] +// The yards 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/1855993-yards?language=objc +func (uc _UnitLengthClass) Yards() UnitLength { + rv := objc.Call[UnitLength](uc, objc.Sel("yards")) return rv } -// The micrometers unit of length. [Full Topic] +// The yards 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/1855993-yards?language=objc +func UnitLength_Yards() UnitLength { + return UnitLengthClass.Yards() } -// The centimeters unit of length. [Full Topic] +// The parsecs 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/1856021-parsecs?language=objc +func (uc _UnitLengthClass) Parsecs() UnitLength { + rv := objc.Call[UnitLength](uc, objc.Sel("parsecs")) return rv } -// The centimeters unit of length. [Full Topic] +// The parsecs 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/1856021-parsecs?language=objc +func UnitLength_Parsecs() UnitLength { + return UnitLengthClass.Parsecs() } -// The decimeters unit of length. [Full Topic] +// The nautical miles 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/1855986-nauticalmiles?language=objc +func (uc _UnitLengthClass) NauticalMiles() UnitLength { + rv := objc.Call[UnitLength](uc, objc.Sel("nauticalMiles")) return rv } -// The decimeters unit of length. [Full Topic] +// The nautical miles 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/1855986-nauticalmiles?language=objc +func UnitLength_NauticalMiles() UnitLength { + return UnitLengthClass.NauticalMiles() } -// The Scandinavian miles unit of length. [Full Topic] +// The nanometers 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/1856004-nanometers?language=objc +func (uc _UnitLengthClass) Nanometers() UnitLength { + rv := objc.Call[UnitLength](uc, objc.Sel("nanometers")) return rv } -// The Scandinavian miles unit of length. [Full Topic] +// The nanometers 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/1856004-nanometers?language=objc +func UnitLength_Nanometers() UnitLength { + return UnitLengthClass.Nanometers() } -// The decameters unit of length. [Full Topic] +// The megameters 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/1856036-megameters?language=objc +func (uc _UnitLengthClass) Megameters() UnitLength { + rv := objc.Call[UnitLength](uc, objc.Sel("megameters")) return rv } -// The decameters unit of length. [Full Topic] +// The megameters 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/1856036-megameters?language=objc +func UnitLength_Megameters() UnitLength { + return UnitLengthClass.Megameters() } diff --git a/macos/foundation/unit_mass.gen.go b/macos/foundation/unit_mass.gen.go index 1e0b68bc..0c8700fe 100644 --- a/macos/foundation/unit_mass.gen.go +++ b/macos/foundation/unit_mass.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package foundation @@ -38,10 +38,6 @@ func (uc _UnitMassClass) Alloc() UnitMass { return rv } -func UnitMass_Alloc() UnitMass { - return UnitMassClass.Alloc() -} - func (uc _UnitMassClass) New() UnitMass { rv := objc.Call[UnitMass](uc, objc.Sel("new")) rv.Autorelease() @@ -57,18 +53,6 @@ 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, objc.Ptr(converter)) return rv @@ -83,6 +67,18 @@ 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 @@ -97,124 +93,139 @@ func NewUnitMassWithSymbol(symbol string) UnitMass { return instance } -// The micrograms unit of mass. [Full Topic] +// The kilograms 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/1855996-kilograms?language=objc +func (uc _UnitMassClass) Kilograms() UnitMass { + rv := objc.Call[UnitMass](uc, objc.Sel("kilograms")) return rv } -// The micrograms unit of mass. [Full Topic] +// The kilograms 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/1855996-kilograms?language=objc +func UnitMass_Kilograms() UnitMass { + return UnitMassClass.Kilograms() } -// The milligrams unit of mass. [Full Topic] +// The centigrams 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/1856116-centigrams?language=objc +func (uc _UnitMassClass) Centigrams() UnitMass { + rv := objc.Call[UnitMass](uc, objc.Sel("centigrams")) return rv } -// The milligrams unit of mass. [Full Topic] +// The centigrams 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/1856116-centigrams?language=objc +func UnitMass_Centigrams() UnitMass { + return UnitMassClass.Centigrams() } -// 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 carats unit of mass. [Full Topic] +// The micrograms 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/1856010-micrograms?language=objc +func (uc _UnitMassClass) Micrograms() UnitMass { + rv := objc.Call[UnitMass](uc, objc.Sel("micrograms")) return rv } -// The carats unit of mass. [Full Topic] +// The micrograms 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/1856010-micrograms?language=objc +func UnitMass_Micrograms() UnitMass { + return UnitMassClass.Micrograms() } -// 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 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 centigrams unit of mass. [Full Topic] +// The decigrams 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/1856063-decigrams?language=objc +func (uc _UnitMassClass) Decigrams() UnitMass { + rv := objc.Call[UnitMass](uc, objc.Sel("decigrams")) return rv } -// The centigrams unit of mass. [Full Topic] +// The decigrams 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/1856063-decigrams?language=objc +func UnitMass_Decigrams() UnitMass { + return UnitMassClass.Decigrams() } -// The kilograms unit of mass. [Full Topic] +// The carats 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")) +// [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 kilograms unit of mass. [Full Topic] +// The carats 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() +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsunitmass/1856037-carats?language=objc +func UnitMass_Carats() UnitMass { + return UnitMassClass.Carats() +} + +// 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 ounces troy unit of mass. [Full Topic] @@ -232,34 +243,19 @@ func UnitMass_OuncesTroy() UnitMass { return UnitMassClass.OuncesTroy() } -// The decigrams 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")) - return rv -} - -// The decigrams 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() -} - -// The slugs unit of mass. [Full Topic] +// The milligrams 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/1856060-milligrams?language=objc +func (uc _UnitMassClass) Milligrams() UnitMass { + rv := objc.Call[UnitMass](uc, objc.Sel("milligrams")) return rv } -// The slugs unit of mass. [Full Topic] +// The milligrams 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/1856060-milligrams?language=objc +func UnitMass_Milligrams() UnitMass { + return UnitMassClass.Milligrams() } // The pounds unit of mass. [Full Topic] @@ -277,49 +273,49 @@ func UnitMass_PoundsMass() UnitMass { return UnitMassClass.PoundsMass() } -// The ounces unit of mass. [Full Topic] +// The nanograms 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/1856078-nanograms?language=objc +func (uc _UnitMassClass) Nanograms() UnitMass { + rv := objc.Call[UnitMass](uc, objc.Sel("nanograms")) return rv } -// The ounces unit of mass. [Full Topic] +// The nanograms 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/1856078-nanograms?language=objc +func UnitMass_Nanograms() UnitMass { + return UnitMassClass.Nanograms() } -// The stone unit of mass. [Full Topic] +// The short tons 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/1856081-shorttons?language=objc +func (uc _UnitMassClass) ShortTons() UnitMass { + rv := objc.Call[UnitMass](uc, objc.Sel("shortTons")) return rv } -// The stone unit of mass. [Full Topic] +// The short tons 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/1856081-shorttons?language=objc +func UnitMass_ShortTons() UnitMass { + return UnitMassClass.ShortTons() } -// The metric tons unit of mass. [Full Topic] +// The grams 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/1855976-grams?language=objc +func (uc _UnitMassClass) Grams() UnitMass { + rv := objc.Call[UnitMass](uc, objc.Sel("grams")) return rv } -// The metric tons unit of mass. [Full Topic] +// The grams 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/1855976-grams?language=objc +func UnitMass_Grams() UnitMass { + return UnitMassClass.Grams() } // The picograms unit of mass. [Full Topic] diff --git a/macos/foundation/unit_power.gen.go b/macos/foundation/unit_power.gen.go index d5f1b5bf..b6dd4fcb 100644 --- a/macos/foundation/unit_power.gen.go +++ b/macos/foundation/unit_power.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package foundation @@ -38,10 +38,6 @@ func (uc _UnitPowerClass) Alloc() UnitPower { return rv } -func UnitPower_Alloc() UnitPower { - return UnitPowerClass.Alloc() -} - func (uc _UnitPowerClass) New() UnitPower { rv := objc.Call[UnitPower](uc, objc.Sel("new")) rv.Autorelease() @@ -57,18 +53,6 @@ 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, objc.Ptr(converter)) return rv @@ -83,6 +67,18 @@ 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 @@ -97,49 +93,34 @@ func NewUnitPowerWithSymbol(symbol string) UnitPower { return instance } -// The femtowatts 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")) - return rv -} - -// The femtowatts 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() -} - -// The picowatts unit of power. [Full Topic] +// The kilowatts 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/1856084-kilowatts?language=objc +func (uc _UnitPowerClass) Kilowatts() UnitPower { + rv := objc.Call[UnitPower](uc, objc.Sel("kilowatts")) return rv } -// The picowatts unit of power. [Full Topic] +// The kilowatts 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/1856084-kilowatts?language=objc +func UnitPower_Kilowatts() UnitPower { + return UnitPowerClass.Kilowatts() } -// The terawatts unit of power. [Full Topic] +// The megawatts 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/1856073-megawatts?language=objc +func (uc _UnitPowerClass) Megawatts() UnitPower { + rv := objc.Call[UnitPower](uc, objc.Sel("megawatts")) return rv } -// The terawatts unit of power. [Full Topic] +// The megawatts 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/1856073-megawatts?language=objc +func UnitPower_Megawatts() UnitPower { + return UnitPowerClass.Megawatts() } // The milliwatts unit of power. [Full Topic] @@ -157,6 +138,21 @@ 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 @@ -172,6 +168,21 @@ 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 @@ -187,34 +198,34 @@ func UnitPower_Nanowatts() UnitPower { return UnitPowerClass.Nanowatts() } -// 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 horsepower unit of power. [Full Topic] @@ -232,32 +243,17 @@ func UnitPower_Horsepower() UnitPower { return UnitPowerClass.Horsepower() } -// 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 gigawatts unit of power. [Full Topic] +// The terawatts 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")) +// [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 gigawatts unit of power. [Full Topic] +// The terawatts 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() +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsunitpower/1856100-terawatts?language=objc +func UnitPower_Terawatts() UnitPower { + return UnitPowerClass.Terawatts() } diff --git a/macos/foundation/unit_pressure.gen.go b/macos/foundation/unit_pressure.gen.go index ee4ead25..21b3f8a1 100644 --- a/macos/foundation/unit_pressure.gen.go +++ b/macos/foundation/unit_pressure.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package foundation @@ -38,10 +38,6 @@ func (uc _UnitPressureClass) Alloc() UnitPressure { return rv } -func UnitPressure_Alloc() UnitPressure { - return UnitPressureClass.Alloc() -} - func (uc _UnitPressureClass) New() UnitPressure { rv := objc.Call[UnitPressure](uc, objc.Sel("new")) rv.Autorelease() @@ -57,18 +53,6 @@ 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, objc.Ptr(converter)) return rv @@ -83,6 +67,18 @@ 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 @@ -112,21 +108,6 @@ 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 @@ -142,22 +123,6 @@ 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")) - rv.Autorelease() - 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 @@ -173,21 +138,6 @@ func UnitPressure_Millibars() UnitPressure { return UnitPressureClass.Millibars() } -// The hectopascals unit of pressure. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsunitpressure/1856111-hectopascals?language=objc -func (uc _UnitPressureClass) Hectopascals() UnitPressure { - rv := objc.Call[UnitPressure](uc, objc.Sel("hectopascals")) - return rv -} - -// The hectopascals unit of pressure. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsunitpressure/1856111-hectopascals?language=objc -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 @@ -203,6 +153,21 @@ 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 +func (uc _UnitPressureClass) Hectopascals() UnitPressure { + rv := objc.Call[UnitPressure](uc, objc.Sel("hectopascals")) + return rv +} + +// The hectopascals unit of pressure. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsunitpressure/1856111-hectopascals?language=objc +func UnitPressure_Hectopascals() UnitPressure { + return UnitPressureClass.Hectopascals() +} + // The kilopascals unit of pressure. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/foundation/nsunitpressure/1856057-kilopascals?language=objc @@ -218,6 +183,36 @@ 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 711a43e4..1b5683c3 100644 --- a/macos/foundation/unit_speed.gen.go +++ b/macos/foundation/unit_speed.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package foundation @@ -38,10 +38,6 @@ func (uc _UnitSpeedClass) Alloc() UnitSpeed { return rv } -func UnitSpeed_Alloc() UnitSpeed { - return UnitSpeedClass.Alloc() -} - func (uc _UnitSpeedClass) New() UnitSpeed { rv := objc.Call[UnitSpeed](uc, objc.Sel("new")) rv.Autorelease() @@ -57,18 +53,6 @@ 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, objc.Ptr(converter)) return rv @@ -83,6 +67,18 @@ 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 @@ -97,6 +93,21 @@ 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 @@ -141,18 +152,3 @@ 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 f5e71b07..cef01567 100644 --- a/macos/foundation/unit_temperature.gen.go +++ b/macos/foundation/unit_temperature.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package foundation @@ -38,10 +38,6 @@ func (uc _UnitTemperatureClass) Alloc() UnitTemperature { return rv } -func UnitTemperature_Alloc() UnitTemperature { - return UnitTemperatureClass.Alloc() -} - func (uc _UnitTemperatureClass) New() UnitTemperature { rv := objc.Call[UnitTemperature](uc, objc.Sel("new")) rv.Autorelease() @@ -57,18 +53,6 @@ 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, objc.Ptr(converter)) return rv @@ -83,6 +67,18 @@ 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 @@ -112,21 +108,6 @@ func UnitTemperature_Kelvin() UnitTemperature { return UnitTemperatureClass.Kelvin() } -// The degree Celsius unit of temperature. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsunittemperature/1690835-celsius?language=objc -func (uc _UnitTemperatureClass) Celsius() UnitTemperature { - rv := objc.Call[UnitTemperature](uc, objc.Sel("celsius")) - return rv -} - -// The degree Celsius unit of temperature. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsunittemperature/1690835-celsius?language=objc -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 @@ -141,3 +122,18 @@ func (uc _UnitTemperatureClass) Fahrenheit() UnitTemperature { 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 +func (uc _UnitTemperatureClass) Celsius() UnitTemperature { + rv := objc.Call[UnitTemperature](uc, objc.Sel("celsius")) + return rv +} + +// The degree Celsius unit of temperature. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsunittemperature/1690835-celsius?language=objc +func UnitTemperature_Celsius() UnitTemperature { + return UnitTemperatureClass.Celsius() +} diff --git a/macos/foundation/unit_volume.gen.go b/macos/foundation/unit_volume.gen.go index 227cdfb0..16c8fa49 100644 --- a/macos/foundation/unit_volume.gen.go +++ b/macos/foundation/unit_volume.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package foundation @@ -38,10 +38,6 @@ func (uc _UnitVolumeClass) Alloc() UnitVolume { return rv } -func UnitVolume_Alloc() UnitVolume { - return UnitVolumeClass.Alloc() -} - func (uc _UnitVolumeClass) New() UnitVolume { rv := objc.Call[UnitVolume](uc, objc.Sel("new")) rv.Autorelease() @@ -57,18 +53,6 @@ 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, objc.Ptr(converter)) return rv @@ -83,6 +67,18 @@ 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 @@ -97,259 +93,259 @@ func NewUnitVolumeWithSymbol(symbol string) UnitVolume { return instance } -// The megaliters unit of volume. [Full Topic] +// The cubic miles 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/1856002-cubicmiles?language=objc +func (uc _UnitVolumeClass) CubicMiles() UnitVolume { + rv := objc.Call[UnitVolume](uc, objc.Sel("cubicMiles")) return rv } -// The megaliters unit of volume. [Full Topic] +// The cubic miles 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/1856002-cubicmiles?language=objc +func UnitVolume_CubicMiles() UnitVolume { + return UnitVolumeClass.CubicMiles() } -// The gallons unit of volume. [Full Topic] +// The cups 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/1855982-cups?language=objc +func (uc _UnitVolumeClass) Cups() UnitVolume { + rv := objc.Call[UnitVolume](uc, objc.Sel("cups")) return rv } -// The gallons unit of volume. [Full Topic] +// The cups 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/1855982-cups?language=objc +func UnitVolume_Cups() UnitVolume { + return UnitVolumeClass.Cups() } -// The imperial gallons unit of volume. [Full Topic] +// The teaspoons 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/1855977-teaspoons?language=objc +func (uc _UnitVolumeClass) Teaspoons() UnitVolume { + rv := objc.Call[UnitVolume](uc, objc.Sel("teaspoons")) return rv } -// The imperial gallons unit of volume. [Full Topic] +// The teaspoons 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/1855977-teaspoons?language=objc +func UnitVolume_Teaspoons() UnitVolume { + return UnitVolumeClass.Teaspoons() } -// The cubic kilometers unit of volume. [Full Topic] +// The cubic decimeters 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/1856048-cubicdecimeters?language=objc +func (uc _UnitVolumeClass) CubicDecimeters() UnitVolume { + rv := objc.Call[UnitVolume](uc, objc.Sel("cubicDecimeters")) return rv } -// The cubic kilometers unit of volume. [Full Topic] +// The cubic decimeters 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/1856048-cubicdecimeters?language=objc +func UnitVolume_CubicDecimeters() UnitVolume { + return UnitVolumeClass.CubicDecimeters() } -// The teaspoons unit of volume. [Full Topic] +// The acre feet 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/1855978-acrefeet?language=objc +func (uc _UnitVolumeClass) AcreFeet() UnitVolume { + rv := objc.Call[UnitVolume](uc, objc.Sel("acreFeet")) return rv } -// The teaspoons unit of volume. [Full Topic] +// The acre feet 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/1855978-acrefeet?language=objc +func UnitVolume_AcreFeet() UnitVolume { + return UnitVolumeClass.AcreFeet() } -// The cubic centimeters unit of volume. [Full Topic] +// The cubic inches 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/1856026-cubicinches?language=objc +func (uc _UnitVolumeClass) CubicInches() UnitVolume { + rv := objc.Call[UnitVolume](uc, objc.Sel("cubicInches")) return rv } -// The cubic centimeters unit of volume. [Full Topic] +// The cubic inches 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/1856026-cubicinches?language=objc +func UnitVolume_CubicInches() UnitVolume { + return UnitVolumeClass.CubicInches() } -// The cups unit of volume. [Full Topic] +// The liters 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/1856011-liters?language=objc +func (uc _UnitVolumeClass) Liters() UnitVolume { + rv := objc.Call[UnitVolume](uc, objc.Sel("liters")) return rv } -// The cups unit of volume. [Full Topic] +// The liters 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/1856011-liters?language=objc +func UnitVolume_Liters() UnitVolume { + return UnitVolumeClass.Liters() } -// The cubic decimeters unit of volume. [Full Topic] +// The cubic centimeters 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/1856112-cubiccentimeters?language=objc +func (uc _UnitVolumeClass) CubicCentimeters() UnitVolume { + rv := objc.Call[UnitVolume](uc, objc.Sel("cubicCentimeters")) return rv } -// The cubic decimeters unit of volume. [Full Topic] +// The cubic centimeters 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/1856112-cubiccentimeters?language=objc +func UnitVolume_CubicCentimeters() UnitVolume { + return UnitVolumeClass.CubicCentimeters() } -// The imperial quarts unit of volume. [Full Topic] +// The deciliters 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/1856091-deciliters?language=objc +func (uc _UnitVolumeClass) Deciliters() UnitVolume { + rv := objc.Call[UnitVolume](uc, objc.Sel("deciliters")) return rv } -// The imperial quarts unit of volume. [Full Topic] +// The deciliters 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/1856091-deciliters?language=objc +func UnitVolume_Deciliters() UnitVolume { + return UnitVolumeClass.Deciliters() } -// The quarts unit of volume. [Full Topic] +// The 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/1855991-tablespoons?language=objc +func (uc _UnitVolumeClass) Tablespoons() UnitVolume { + rv := objc.Call[UnitVolume](uc, objc.Sel("tablespoons")) return rv } -// The quarts unit of volume. [Full Topic] +// The 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/1855991-tablespoons?language=objc +func UnitVolume_Tablespoons() UnitVolume { + return UnitVolumeClass.Tablespoons() } -// The cubic inches unit of volume. [Full Topic] +// The cubic kilometers 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/1856034-cubickilometers?language=objc +func (uc _UnitVolumeClass) CubicKilometers() UnitVolume { + rv := objc.Call[UnitVolume](uc, objc.Sel("cubicKilometers")) return rv } -// The cubic inches unit of volume. [Full Topic] +// The cubic kilometers 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/1856034-cubickilometers?language=objc +func UnitVolume_CubicKilometers() UnitVolume { + return UnitVolumeClass.CubicKilometers() } -// The cubic feet unit of volume. [Full Topic] +// The kiloliters 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/1856068-kiloliters?language=objc +func (uc _UnitVolumeClass) Kiloliters() UnitVolume { + rv := objc.Call[UnitVolume](uc, objc.Sel("kiloliters")) return rv } -// The cubic feet unit of volume. [Full Topic] +// The kiloliters 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/1856068-kiloliters?language=objc +func UnitVolume_Kiloliters() UnitVolume { + return UnitVolumeClass.Kiloliters() } -// The milliliters unit of volume. [Full Topic] +// The centiliters 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/1856040-centiliters?language=objc +func (uc _UnitVolumeClass) Centiliters() UnitVolume { + rv := objc.Call[UnitVolume](uc, objc.Sel("centiliters")) return rv } -// The milliliters unit of volume. [Full Topic] +// The centiliters 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/1856040-centiliters?language=objc +func UnitVolume_Centiliters() UnitVolume { + return UnitVolumeClass.Centiliters() } -// The imperial pints unit of volume. [Full Topic] +// The pints 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/1856059-pints?language=objc +func (uc _UnitVolumeClass) Pints() UnitVolume { + rv := objc.Call[UnitVolume](uc, objc.Sel("pints")) return rv } -// The imperial pints unit of volume. [Full Topic] +// The pints 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/1856059-pints?language=objc +func UnitVolume_Pints() UnitVolume { + return UnitVolumeClass.Pints() } -// The cubic miles unit of volume. [Full Topic] +// The imperial teaspoons 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/1856103-imperialteaspoons?language=objc +func (uc _UnitVolumeClass) ImperialTeaspoons() UnitVolume { + rv := objc.Call[UnitVolume](uc, objc.Sel("imperialTeaspoons")) return rv } -// The cubic miles unit of volume. [Full Topic] +// The imperial teaspoons 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/1856103-imperialteaspoons?language=objc +func UnitVolume_ImperialTeaspoons() UnitVolume { + return UnitVolumeClass.ImperialTeaspoons() } -// The cubic yards unit of volume. [Full Topic] +// The cubic millimeters 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/1856013-cubicmillimeters?language=objc +func (uc _UnitVolumeClass) CubicMillimeters() UnitVolume { + rv := objc.Call[UnitVolume](uc, objc.Sel("cubicMillimeters")) return rv } -// The cubic yards unit of volume. [Full Topic] +// The cubic millimeters 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/1856013-cubicmillimeters?language=objc +func UnitVolume_CubicMillimeters() UnitVolume { + return UnitVolumeClass.CubicMillimeters() } -// The liters unit of volume. [Full Topic] +// The megaliters 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/1856080-megaliters?language=objc +func (uc _UnitVolumeClass) Megaliters() UnitVolume { + rv := objc.Call[UnitVolume](uc, objc.Sel("megaliters")) return rv } -// The liters unit of volume. [Full Topic] +// The megaliters 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/1856080-megaliters?language=objc +func UnitVolume_Megaliters() UnitVolume { + return UnitVolumeClass.Megaliters() } // The fluid ounces unit of volume. [Full Topic] @@ -367,197 +363,197 @@ func UnitVolume_FluidOunces() UnitVolume { return UnitVolumeClass.FluidOunces() } -// The kiloliters unit of volume. [Full Topic] +// The metric cups 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/1856000-metriccups?language=objc +func (uc _UnitVolumeClass) MetricCups() UnitVolume { + rv := objc.Call[UnitVolume](uc, objc.Sel("metricCups")) return rv } -// The kiloliters unit of volume. [Full Topic] +// The metric cups 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/1856000-metriccups?language=objc +func UnitVolume_MetricCups() UnitVolume { + return UnitVolumeClass.MetricCups() } -// The imperial tablespoons unit of volume. [Full Topic] +// The quarts 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/1856055-quarts?language=objc +func (uc _UnitVolumeClass) Quarts() UnitVolume { + rv := objc.Call[UnitVolume](uc, objc.Sel("quarts")) return rv } -// The imperial tablespoons unit of volume. [Full Topic] +// The quarts 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/1856055-quarts?language=objc +func UnitVolume_Quarts() UnitVolume { + return UnitVolumeClass.Quarts() } -// The acre feet unit of volume. [Full Topic] +// The imperial pints 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/1855979-imperialpints?language=objc +func (uc _UnitVolumeClass) ImperialPints() UnitVolume { + rv := objc.Call[UnitVolume](uc, objc.Sel("imperialPints")) return rv } -// The acre feet unit of volume. [Full Topic] +// The imperial pints 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/1855979-imperialpints?language=objc +func UnitVolume_ImperialPints() UnitVolume { + return UnitVolumeClass.ImperialPints() } -// The tablespoons unit of volume. [Full Topic] +// The cubic meters 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/1856029-cubicmeters?language=objc +func (uc _UnitVolumeClass) CubicMeters() UnitVolume { + rv := objc.Call[UnitVolume](uc, objc.Sel("cubicMeters")) return rv } -// The tablespoons unit of volume. [Full Topic] +// The cubic meters 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/1856029-cubicmeters?language=objc +func UnitVolume_CubicMeters() UnitVolume { + return UnitVolumeClass.CubicMeters() } -// The imperial teaspoons unit of volume. [Full Topic] +// The gallons 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/1856105-gallons?language=objc +func (uc _UnitVolumeClass) Gallons() UnitVolume { + rv := objc.Call[UnitVolume](uc, objc.Sel("gallons")) return rv } -// The imperial teaspoons unit of volume. [Full Topic] +// The gallons 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/1856105-gallons?language=objc +func UnitVolume_Gallons() UnitVolume { + return UnitVolumeClass.Gallons() } -// The metric cups unit of volume. [Full Topic] +// The imperial fluid ounces 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/1856101-imperialfluidounces?language=objc +func (uc _UnitVolumeClass) ImperialFluidOunces() UnitVolume { + rv := objc.Call[UnitVolume](uc, objc.Sel("imperialFluidOunces")) return rv } -// The metric cups unit of volume. [Full Topic] +// The imperial fluid ounces 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/1856101-imperialfluidounces?language=objc +func UnitVolume_ImperialFluidOunces() UnitVolume { + return UnitVolumeClass.ImperialFluidOunces() } -// The cubic millimeters unit of volume. [Full Topic] +// The milliliters 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/1856071-milliliters?language=objc +func (uc _UnitVolumeClass) Milliliters() UnitVolume { + rv := objc.Call[UnitVolume](uc, objc.Sel("milliliters")) return rv } -// The cubic millimeters unit of volume. [Full Topic] +// The milliliters 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/1856071-milliliters?language=objc +func UnitVolume_Milliliters() UnitVolume { + return UnitVolumeClass.Milliliters() } -// The cubic meters unit of volume. [Full Topic] +// The cubic yards 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/1856107-cubicyards?language=objc +func (uc _UnitVolumeClass) CubicYards() UnitVolume { + rv := objc.Call[UnitVolume](uc, objc.Sel("cubicYards")) return rv } -// The cubic meters unit of volume. [Full Topic] +// The cubic yards 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/1856107-cubicyards?language=objc +func UnitVolume_CubicYards() UnitVolume { + return UnitVolumeClass.CubicYards() } -// The bushels unit of volume. [Full Topic] +// The imperial gallons 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/1855997-imperialgallons?language=objc +func (uc _UnitVolumeClass) ImperialGallons() UnitVolume { + rv := objc.Call[UnitVolume](uc, objc.Sel("imperialGallons")) return rv } -// The bushels unit of volume. [Full Topic] +// The imperial gallons 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/1855997-imperialgallons?language=objc +func UnitVolume_ImperialGallons() UnitVolume { + return UnitVolumeClass.ImperialGallons() } -// The centiliters unit of volume. [Full Topic] +// The imperial tablespoons 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/1855989-imperialtablespoons?language=objc +func (uc _UnitVolumeClass) ImperialTablespoons() UnitVolume { + rv := objc.Call[UnitVolume](uc, objc.Sel("imperialTablespoons")) return rv } -// The centiliters unit of volume. [Full Topic] +// The imperial tablespoons 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/1855989-imperialtablespoons?language=objc +func UnitVolume_ImperialTablespoons() UnitVolume { + return UnitVolumeClass.ImperialTablespoons() } -// The pints unit of volume. [Full Topic] +// The bushels 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/1856025-bushels?language=objc +func (uc _UnitVolumeClass) Bushels() UnitVolume { + rv := objc.Call[UnitVolume](uc, objc.Sel("bushels")) return rv } -// The pints unit of volume. [Full Topic] +// The bushels 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/1856025-bushels?language=objc +func UnitVolume_Bushels() UnitVolume { + return UnitVolumeClass.Bushels() } -// The deciliters unit of volume. [Full Topic] +// The cubic feet 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/1856017-cubicfeet?language=objc +func (uc _UnitVolumeClass) CubicFeet() UnitVolume { + rv := objc.Call[UnitVolume](uc, objc.Sel("cubicFeet")) return rv } -// The deciliters unit of volume. [Full Topic] +// The cubic feet 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/1856017-cubicfeet?language=objc +func UnitVolume_CubicFeet() UnitVolume { + return UnitVolumeClass.CubicFeet() } -// The imperial fluid ounces unit of volume. [Full Topic] +// The imperial quarts 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/1855971-imperialquarts?language=objc +func (uc _UnitVolumeClass) ImperialQuarts() UnitVolume { + rv := objc.Call[UnitVolume](uc, objc.Sel("imperialQuarts")) return rv } -// The imperial fluid ounces unit of volume. [Full Topic] +// The imperial quarts 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/1855971-imperialquarts?language=objc +func UnitVolume_ImperialQuarts() UnitVolume { + return UnitVolumeClass.ImperialQuarts() } diff --git a/macos/foundation/url.gen.go b/macos/foundation/url.gen.go index 63318d05..aedb0e56 100644 --- a/macos/foundation/url.gen.go +++ b/macos/foundation/url.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package foundation @@ -18,53 +18,56 @@ type _URLClass struct { // An interface definition for the [URL] class. type IURL interface { objc.IObject - CheckPromisedItemIsReachableAndReturnError(error IError) bool - GetPromisedItemResourceValueForKeyError(value objc.IObject, key URLResourceKey, error IError) bool - IsFileReferenceURL() bool - WriteToPasteboard(pasteBoard objc.IObject) - FileReferenceURL() URL - StopAccessingSecurityScopedResource() CheckResourceIsReachableAndReturnError(error IError) bool - RemoveAllCachedResourceValues() GetFileSystemRepresentationMaxLength(buffer *uint8, maxBufferLength uint) bool - URLByAppendingPathComponentConformingToType(partialName string, contentType objc.IObject) URL - RemoveCachedResourceValueForKey(key URLResourceKey) + StopAccessingSecurityScopedResource() SetResourceValueForKeyError(value objc.IObject, key URLResourceKey, error IError) bool + FileReferenceURL() URL + URLByAppendingPathComponentIsDirectory(pathComponent string, isDirectory bool) URL + GetPromisedItemResourceValueForKeyError(value objc.IObject, key URLResourceKey, error IError) bool + URLByAppendingPathComponent(pathComponent string) URL + PromisedItemResourceValuesForKeysError(keys []URLResourceKey, error IError) map[URLResourceKey]objc.Object URLByAppendingPathExtensionForType(contentType objc.IObject) URL - GetResourceValueForKeyError(value objc.IObject, key URLResourceKey, error IError) bool + SetResourceValuesError(keyedValues map[URLResourceKey]objc.IObject, error IError) bool + URLByAppendingPathComponentConformingToType(partialName string, contentType objc.IObject) URL BookmarkDataWithOptionsIncludingResourceValuesForKeysRelativeToURLError(options URLBookmarkCreationOptions, keys []URLResourceKey, relativeURL IURL, error IError) []byte - StartAccessingSecurityScopedResource() bool + GetResourceValueForKeyError(value objc.IObject, key URLResourceKey, error IError) bool + WriteToPasteboard(pasteBoard objc.IObject) SetTemporaryResourceValueForKey(value objc.IObject, key URLResourceKey) - SetResourceValuesError(keyedValues map[URLResourceKey]objc.IObject, error IError) bool + RemoveAllCachedResourceValues() + StartAccessingSecurityScopedResource() bool + ResourceValuesForKeysError(keys []URLResourceKey, error IError) map[URLResourceKey]objc.Object URLByAppendingPathExtension(pathExtension string) URL - PromisedItemResourceValuesForKeysError(keys []URLResourceKey, error IError) map[URLResourceKey]objc.Object - Password() string - Path() string - BaseURL() URL - ResourceSpecifier() string - Host() string - Scheme() string + RemoveCachedResourceValueForKey(key URLResourceKey) + CheckPromisedItemIsReachableAndReturnError(error IError) bool + IsFileReferenceURL() bool PathComponents() []string - AbsoluteString() string - IsFileURL() bool - Query() string - URLByResolvingSymlinksInPath() URL + Path() string HasDirectoryPath() bool - Fragment() string + URLByResolvingSymlinksInPath() URL RelativeString() string + Scheme() string + FileSystemRepresentation() *uint8 User() string - URLByStandardizingPath() URL - Port() Number - DataRepresentation() []byte - URLByDeletingLastPathComponent() URL PathExtension() string - URLByDeletingPathExtension() URL + Port() Number + FilePathURL() URL AbsoluteURL() URL + Host() string StandardizedURL() URL + DataRepresentation() []byte LastPathComponent() string - FileSystemRepresentation() *uint8 - FilePathURL() URL + ResourceSpecifier() string + URLByStandardizingPath() URL + URLByDeletingLastPathComponent() 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] @@ -80,16 +83,16 @@ func URLFrom(ptr unsafe.Pointer) URL { } } -func (u_ URL) InitAbsoluteURLWithDataRepresentationRelativeToURL(data []byte, baseURL IURL) URL { - rv := objc.Call[URL](u_, objc.Sel("initAbsoluteURLWithDataRepresentation:relativeToURL:"), data, objc.Ptr(baseURL)) +func (u_ URL) InitWithStringRelativeToURL(URLString string, baseURL IURL) URL { + rv := objc.Call[URL](u_, objc.Sel("initWithString:relativeToURL:"), URLString, objc.Ptr(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/1410750-initabsoluteurlwithdatarepresent?language=objc -func NewURLAbsoluteURLWithDataRepresentationRelativeToURL(data []byte, baseURL IURL) URL { - instance := URLClass.Alloc().InitAbsoluteURLWithDataRepresentationRelativeToURL(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 } @@ -108,16 +111,44 @@ func NewURLFileURLWithFileSystemRepresentationIsDirectoryRelativeToURL(path *uin return instance } -func (u_ URL) InitWithDataRepresentationRelativeToURL(data []byte, baseURL IURL) URL { - rv := objc.Call[URL](u_, objc.Sel("initWithDataRepresentation:relativeToURL:"), data, objc.Ptr(baseURL)) +func (u_ URL) InitAbsoluteURLWithDataRepresentationRelativeToURL(data []byte, baseURL IURL) URL { + rv := objc.Call[URL](u_, objc.Sel("initAbsoluteURLWithDataRepresentation:relativeToURL:"), data, objc.Ptr(baseURL)) return rv } // [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/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, objc.Ptr(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) instance.Autorelease() return instance } @@ -136,16 +167,16 @@ func NewURLByResolvingBookmarkDataOptionsRelativeToURLBookmarkDataIsStaleError(b return instance } -func (u_ URL) InitWithStringRelativeToURL(URLString string, baseURL IURL) URL { - rv := objc.Call[URL](u_, objc.Sel("initWithString:relativeToURL:"), URLString, objc.Ptr(baseURL)) +func (u_ URL) InitWithDataRepresentationRelativeToURL(data []byte, baseURL IURL) URL { + rv := objc.Call[URL](u_, objc.Sel("initWithDataRepresentation:relativeToURL:"), data, objc.Ptr(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/1416851-initwithdatarepresentation?language=objc +func NewURLWithDataRepresentationRelativeToURL(data []byte, baseURL IURL) URL { + instance := URLClass.Alloc().InitWithDataRepresentationRelativeToURL(data, baseURL) instance.Autorelease() return instance } @@ -162,16 +193,44 @@ func URL_URLByResolvingBookmarkDataOptionsRelativeToURLBookmarkDataIsStaleError( return URLClass.URLByResolvingBookmarkDataOptionsRelativeToURLBookmarkDataIsStaleError(bookmarkData, options, relativeURL, isStale, error) } -func (uc _URLClass) URLByResolvingAliasFileAtURLOptionsError(url IURL, options URLBookmarkResolutionOptions, error IError) URL { - rv := objc.Call[URL](uc, objc.Sel("URLByResolvingAliasFileAtURL:options:error:"), objc.Ptr(url), options, objc.Ptr(error)) +func (u_ URL) InitWithString(URLString string) URL { + rv := objc.Call[URL](u_, objc.Sel("initWithString:"), URLString) return rv } -// Returns a new URL made by resolving the alias file at url. [Full Topic] +// Initializes an NSURL object with a provided URL string. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsurl/1416404-urlbyresolvingaliasfileaturl?language=objc -func URL_URLByResolvingAliasFileAtURLOptionsError(url IURL, options URLBookmarkResolutionOptions, error IError) URL { - return URLClass.URLByResolvingAliasFileAtURLOptionsError(url, options, error) +// [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, objc.Ptr(baseURL)) + return rv +} + +// Creates and returns an NSURL object initialized with a base URL and a relative string. [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) } func (uc _URLClass) URLWithString(URLString string) URL { @@ -186,16 +245,28 @@ func URL_URLWithString(URLString string) URL { return URLClass.URLWithString(URLString) } -func (u_ URL) InitFileURLWithPathIsDirectoryRelativeToURL(path string, isDir bool, baseURL IURL) URL { - rv := objc.Call[URL](u_, objc.Sel("initFileURLWithPath:isDirectory:relativeToURL:"), path, isDir, objc.Ptr(baseURL)) +func (uc _URLClass) URLByResolvingAliasFileAtURLOptionsError(url IURL, options URLBookmarkResolutionOptions, error IError) URL { + rv := objc.Call[URL](uc, objc.Sel("URLByResolvingAliasFileAtURL:options:error:"), objc.Ptr(url), options, objc.Ptr(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 IError) 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, objc.Ptr(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) +// [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) instance.Autorelease() return instance } @@ -205,10 +276,6 @@ func (uc _URLClass) Alloc() URL { return rv } -func URL_Alloc() URL { - return URLClass.Alloc() -} - func (uc _URLClass) New() URL { rv := objc.Call[URL](uc, objc.Sel("new")) rv.Autorelease() @@ -224,80 +291,80 @@ func (u_ URL) Init() URL { return rv } -// Creates an alias file on disk at a specified location with specified bookmark data. [Full Topic] +// Returns whether the resource pointed to by a file URL can be reached. [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 IError) bool { - rv := objc.Call[bool](uc, objc.Sel("writeBookmarkData:toURL:options:error:"), bookmarkData, objc.Ptr(bookmarkFileURL), options, objc.Ptr(error)) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsurl/1410597-checkresourceisreachableandretur?language=objc +func (u_ URL) CheckResourceIsReachableAndReturnError(error IError) bool { + rv := objc.Call[bool](u_, objc.Sel("checkResourceIsReachableAndReturnError:"), objc.Ptr(error)) return rv } -// Creates an alias file on disk at a specified location with specified bookmark data. [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/1408532-writebookmarkdata?language=objc -func URL_WriteBookmarkDataToURLOptionsError(bookmarkData []byte, bookmarkFileURL IURL, options URLBookmarkFileCreationOptions, error IError) bool { - return URLClass.WriteBookmarkDataToURLOptionsError(bookmarkData, bookmarkFileURL, options, error) +// [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 whether the promised item can be reached. [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/1410411-checkpromiseditemisreachableandr?language=objc -func (u_ URL) CheckPromisedItemIsReachableAndReturnError(error IError) bool { - rv := objc.Call[bool](u_, objc.Sel("checkPromisedItemIsReachableAndReturnError:"), objc.Ptr(error)) - 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 a new URL object initialized with a C string representing a local file system path. [Full Topic] +// Initializes and returns a newly created NSURL object as a file URL with a specified path. [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, objc.Ptr(baseURL)) +// [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) return rv } -// Returns a new URL object initialized with a C string representing a local file system path. [Full Topic] +// Initializes and returns a newly created NSURL object as a file URL with a specified path. [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/1410828-fileurlwithpath?language=objc +func URL_FileURLWithPath(path string) URL { + return URLClass.FileURLWithPath(path) } -// Returns the value of the resource property for the specified key. [Full Topic] +// Reads an NSURL object off of the specified pasteboard. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsurl/1414238-getpromiseditemresourcevalue?language=objc -func (u_ URL) GetPromisedItemResourceValueForKeyError(value objc.IObject, key URLResourceKey, error IError) bool { - rv := objc.Call[bool](u_, objc.Sel("getPromisedItemResourceValue:forKey:error:"), value, key, objc.Ptr(error)) +// [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:"), objc.Ptr(pasteBoard)) return rv } -// Returns whether the URL is a file reference URL. [Full Topic] +// Reads an NSURL object off of the specified pasteboard. [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")) - return rv +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsurl/1525106-urlfrompasteboard?language=objc +func URL_URLFromPasteboard(pasteBoard objc.IObject) URL { + return URLClass.URLFromPasteboard(pasteBoard) } -// Writes the URL to the specified pasteboard. [Full Topic] +// Initializes and returns a newly created NSURL object as a file URL with a specified path. [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:"), objc.Ptr(pasteBoard)) +// [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 } -// Returns the resource values for properties identified by a specified array of keys contained in specified bookmark data. [Full Topic] +// Initializes and returns a newly created NSURL object as a file URL with a specified path. [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/1414650-fileurlwithpath?language=objc +func URL_FileURLWithPathIsDirectory(path string, isDir bool) URL { + return URLClass.FileURLWithPathIsDirectory(path, isDir) } -// 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 IError) bool { + rv := objc.Call[bool](u_, objc.Sel("setResourceValue:forKey:error:"), value, key, objc.Ptr(error)) + return rv } // Returns a new file reference URL that points to the same resource as the receiver. [Full Topic] @@ -308,87 +375,81 @@ func (u_ URL) FileReferenceURL() URL { return rv } -// [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/1413201-fileurlwithpath?language=objc -func (uc _URLClass) FileURLWithPathRelativeToURL(path string, baseURL IURL) URL { - rv := objc.Call[URL](uc, objc.Sel("fileURLWithPath:relativeToURL:"), path, objc.Ptr(baseURL)) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsurl/1408532-writebookmarkdata?language=objc +func (uc _URLClass) WriteBookmarkDataToURLOptionsError(bookmarkData []byte, bookmarkFileURL IURL, options URLBookmarkFileCreationOptions, error IError) bool { + rv := objc.Call[bool](uc, objc.Sel("writeBookmarkData:toURL:options:error:"), bookmarkData, objc.Ptr(bookmarkFileURL), options, objc.Ptr(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) -} - -// In an app that adopts App Sandbox, revokes access to the resource pointed to by a security-scoped URL. [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/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/1408532-writebookmarkdata?language=objc +func URL_WriteBookmarkDataToURLOptionsError(bookmarkData []byte, bookmarkFileURL IURL, options URLBookmarkFileCreationOptions, error IError) bool { + return URLClass.WriteBookmarkDataToURLOptionsError(bookmarkData, bookmarkFileURL, options, error) } -// [Full Topic] +// 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] // -// [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, objc.Ptr(baseURL)) +// [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] +// Returns the value of the resource property for the specified key. [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) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsurl/1414238-getpromiseditemresourcevalue?language=objc +func (u_ URL) GetPromisedItemResourceValueForKeyError(value objc.IObject, key URLResourceKey, error IError) bool { + rv := objc.Call[bool](u_, objc.Sel("getPromisedItemResourceValue:forKey:error:"), value, key, objc.Ptr(error)) + return rv } -// Returns whether the resource pointed to by a file URL can be reached. [Full Topic] +// [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsurl/1410597-checkresourceisreachableandretur?language=objc -func (u_ URL) CheckResourceIsReachableAndReturnError(error IError) bool { - rv := objc.Call[bool](u_, objc.Sel("checkResourceIsReachableAndReturnError:"), objc.Ptr(error)) +// [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, objc.Ptr(baseURL)) return rv } -// Removes all cached resource values and temporary resource values from the URL object. [Full Topic] +// [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")) +// [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) } -// Fills the provided buffer with a C string representing a local file system path. [Full Topic] +// Returns a new URL by appending a path component to the original URL. [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) +// [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) return rv } -// Returns a URL by appending the specified path component with the file extension for a uniform type identifier. [Full Topic] +// Returns the resource values for the properties identified by specified array of keys. [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, objc.Ptr(contentType)) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsurl/1407746-promiseditemresourcevaluesforkey?language=objc +func (u_ URL) PromisedItemResourceValuesForKeysError(keys []URLResourceKey, error IError) map[URLResourceKey]objc.Object { + rv := objc.Call[map[URLResourceKey]objc.Object](u_, objc.Sel("promisedItemResourceValuesForKeys:error:"), keys, objc.Ptr(error)) return rv } -// Removes the cached resource value identified by a given key from the URL object. [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/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/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 IError) bool { - rv := objc.Call[bool](u_, objc.Sel("setResourceValue:forKey:error:"), value, key, objc.Ptr(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 URL by appending the path extension for a uniform type identifier. [Full Topic] @@ -399,75 +460,90 @@ func (u_ URL) URLByAppendingPathExtensionForType(contentType objc.IObject) URL { return rv } -// Returns the value of the resource property for the specified 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/1408874-getresourcevalue?language=objc -func (u_ URL) GetResourceValueForKeyError(value objc.IObject, key URLResourceKey, error IError) bool { - rv := objc.Call[bool](u_, objc.Sel("getResourceValue:forKey:error:"), value, key, objc.Ptr(error)) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsurl/1408208-setresourcevalues?language=objc +func (u_ URL) SetResourceValuesError(keyedValues map[URLResourceKey]objc.IObject, error IError) bool { + rv := objc.Call[bool](u_, objc.Sel("setResourceValues:error:"), keyedValues, objc.Ptr(error)) return rv } -// Initializes and returns bookmark data derived from an alias file pointed to by a specified URL. [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/1408344-bookmarkdatawithcontentsofurl?language=objc -func (uc _URLClass) BookmarkDataWithContentsOfURLError(bookmarkFileURL IURL, error IError) []byte { - rv := objc.Call[[]byte](uc, objc.Sel("bookmarkDataWithContentsOfURL:error:"), objc.Ptr(bookmarkFileURL), objc.Ptr(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, objc.Ptr(contentType)) return rv } -// Initializes and returns bookmark data derived from an alias file pointed to by a specified URL. [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/1408344-bookmarkdatawithcontentsofurl?language=objc -func URL_BookmarkDataWithContentsOfURLError(bookmarkFileURL IURL, error IError) []byte { - return URLClass.BookmarkDataWithContentsOfURLError(bookmarkFileURL, 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 IError) []byte { + rv := objc.Call[[]byte](u_, objc.Sel("bookmarkDataWithOptions:includingResourceValuesForKeys:relativeToURL:error:"), options, keys, objc.Ptr(relativeURL), objc.Ptr(error)) + return rv } -// Reads an NSURL object off of the specified pasteboard. [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/1525106-urlfrompasteboard?language=objc -func (uc _URLClass) URLFromPasteboard(pasteBoard objc.IObject) URL { - rv := objc.Call[URL](uc, objc.Sel("URLFromPasteboard:"), objc.Ptr(pasteBoard)) +// [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 } -// Reads an NSURL object off of the specified pasteboard. [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/1525106-urlfrompasteboard?language=objc -func URL_URLFromPasteboard(pasteBoard objc.IObject) URL { - return URLClass.URLFromPasteboard(pasteBoard) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsurl/1414206-fileurlwithpathcomponents?language=objc +func URL_FileURLWithPathComponents(components []string) URL { + return URLClass.FileURLWithPathComponents(components) } -// Returns a bookmark for the URL, created with specified options and resource 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/1417795-bookmarkdatawithoptions?language=objc -func (u_ URL) BookmarkDataWithOptionsIncludingResourceValuesForKeysRelativeToURLError(options URLBookmarkCreationOptions, keys []URLResourceKey, relativeURL IURL, error IError) []byte { - rv := objc.Call[[]byte](u_, objc.Sel("bookmarkDataWithOptions:includingResourceValuesForKeys:relativeToURL:error:"), options, keys, objc.Ptr(relativeURL), objc.Ptr(error)) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsurl/1408874-getresourcevalue?language=objc +func (u_ URL) GetResourceValueForKeyError(value objc.IObject, key URLResourceKey, error IError) bool { + rv := objc.Call[bool](u_, objc.Sel("getResourceValue:forKey:error:"), value, key, objc.Ptr(error)) 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, objc.Ptr(baseURL)) +// [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, objc.Ptr(baseURL)) return rv } // [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/1413020-fileurlwithpath?language=objc +func URL_FileURLWithPathIsDirectoryRelativeToURL(path string, isDir bool, baseURL IURL) URL { + return URLClass.FileURLWithPathIsDirectoryRelativeToURL(path, isDir, baseURL) } -// 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] // -// [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/1412404-absoluteurlwithdatarepresentatio?language=objc +func (uc _URLClass) AbsoluteURLWithDataRepresentationRelativeToURL(data []byte, baseURL IURL) URL { + rv := objc.Call[URL](uc, objc.Sel("absoluteURLWithDataRepresentation:relativeToURL:"), data, objc.Ptr(baseURL)) 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:"), objc.Ptr(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 @@ -475,91 +551,103 @@ func (u_ URL) SetTemporaryResourceValueForKey(value objc.IObject, key URLResourc objc.Call[objc.Void](u_, objc.Sel("setTemporaryResourceValue:forKey:"), value, key) } -// Sets the URL’s resource properties for a given set of keys to a given set of values. [Full Topic] +// [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 IError) bool { - rv := objc.Call[bool](u_, objc.Sel("setResourceValues:error:"), keyedValues, objc.Ptr(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, objc.Ptr(baseURL)) return rv } -// Initializes and returns a newly created NSURL object as a file URL with specified path components. [Full Topic] +// [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/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] +// +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsurl/1408344-bookmarkdatawithcontentsofurl?language=objc +func (uc _URLClass) BookmarkDataWithContentsOfURLError(bookmarkFileURL IURL, error IError) []byte { + rv := objc.Call[[]byte](uc, objc.Sel("bookmarkDataWithContentsOfURL:error:"), objc.Ptr(bookmarkFileURL), objc.Ptr(error)) return rv } -// Initializes and returns a newly created NSURL object as a file URL with specified path components. [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/1414206-fileurlwithpathcomponents?language=objc -func URL_FileURLWithPathComponents(components []string) URL { - return URLClass.FileURLWithPathComponents(components) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsurl/1408344-bookmarkdatawithcontentsofurl?language=objc +func URL_BookmarkDataWithContentsOfURLError(bookmarkFileURL IURL, error IError) []byte { + return URLClass.BookmarkDataWithContentsOfURLError(bookmarkFileURL, error) } -// Returns a new URL by appending a path extension to the original URL. [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/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/1417051-startaccessingsecurityscopedreso?language=objc +func (u_ URL) StartAccessingSecurityScopedResource() bool { + rv := objc.Call[bool](u_, objc.Sel("startAccessingSecurityScopedResource")) 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/1407746-promiseditemresourcevaluesforkey?language=objc -func (u_ URL) PromisedItemResourceValuesForKeysError(keys []URLResourceKey, error IError) map[URLResourceKey]objc.Object { - rv := objc.Call[map[URLResourceKey]objc.Object](u_, objc.Sel("promisedItemResourceValuesForKeys:error:"), keys, objc.Ptr(error)) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsurl/1417657-resourcevaluesforkeys?language=objc +func (u_ URL) ResourceValuesForKeysError(keys []URLResourceKey, error IError) map[URLResourceKey]objc.Object { + rv := objc.Call[map[URLResourceKey]objc.Object](u_, objc.Sel("resourceValuesForKeys:error:"), keys, objc.Ptr(error)) return rv } -// The password conforming to RFC 1808. (read-only) [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/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/1417082-urlbyappendingpathextension?language=objc +func (u_ URL) URLByAppendingPathExtension(pathExtension string) URL { + rv := objc.Call[URL](u_, objc.Sel("URLByAppendingPathExtension:"), pathExtension) return rv } -// The path, conforming to RFC 1808. (read-only) [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/1408809-path?language=objc -func (u_ URL) Path() string { - rv := objc.Call[string](u_, objc.Sel("path")) - 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) } -// The base URL. (read-only) [Full Topic] +// Returns whether the promised item can be reached. [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/1410411-checkpromiseditemisreachableandr?language=objc +func (u_ URL) CheckPromisedItemIsReachableAndReturnError(error IError) bool { + rv := objc.Call[bool](u_, objc.Sel("checkPromisedItemIsReachableAndReturnError:"), objc.Ptr(error)) return rv } -// The resource specifier. (read-only) [Full Topic] +// Returns whether the URL is a file reference URL. [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")) +// [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 } -// The host, conforming to RFC 1808. (read-only) [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/1413640-host?language=objc -func (u_ URL) Host() string { - rv := objc.Call[string](u_, objc.Sel("host")) +// [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, objc.Ptr(baseURL)) return rv } -// The scheme. (read-only) [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/1413437-scheme?language=objc -func (u_ URL) Scheme() string { - rv := objc.Call[string](u_, objc.Sel("scheme")) - return rv +// [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) } // An array containing the path components. (read-only) [Full Topic] @@ -570,27 +658,19 @@ func (u_ URL) PathComponents() []string { return rv } -// The URL string for the receiver as an absolute URL. (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")) - return rv -} - -// A boolean value that determines whether the receiver is a file URL. [Full Topic] +// The path, conforming to RFC 1808. (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/1408809-path?language=objc +func (u_ URL) Path() string { + rv := objc.Call[string](u_, objc.Sel("path")) return rv } -// The query string, conforming to RFC 1808. [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/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/1411475-hasdirectorypath?language=objc +func (u_ URL) HasDirectoryPath() bool { + rv := objc.Call[bool](u_, objc.Sel("hasDirectoryPath")) return rv } @@ -602,27 +682,27 @@ func (u_ URL) URLByResolvingSymlinksInPath() URL { return rv } -// A Boolean value that indicates whether the URL string’s path represents a directory. [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/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/1411417-relativestring?language=objc +func (u_ URL) RelativeString() string { + rv := objc.Call[string](u_, objc.Sel("relativeString")) return rv } -// The fragment identifier, conforming to RFC 1808. (read-only) [Full Topic] +// The scheme. (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/1413437-scheme?language=objc +func (u_ URL) Scheme() string { + rv := objc.Call[string](u_, objc.Sel("scheme")) return rv } -// A string representation of the relative portion of the URL. (read-only) [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/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/1412925-filesystemrepresentation?language=objc +func (u_ URL) FileSystemRepresentation() *uint8 { + rv := objc.Call[*uint8](u_, objc.Sel("fileSystemRepresentation")) return rv } @@ -634,11 +714,11 @@ func (u_ URL) User() string { return rv } -// A URL that points to the same resource as the original URL using an absolute path. (read-only) [Full Topic] +// The path extension. (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")) +// [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 } @@ -650,6 +730,38 @@ 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 @@ -658,6 +770,30 @@ 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 @@ -666,66 +802,66 @@ func (u_ URL) URLByDeletingLastPathComponent() URL { return rv } -// The path extension. (read-only) [Full Topic] +// The relative path, conforming to RFC 1808. (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/1410263-relativepath?language=objc +func (u_ URL) RelativePath() string { + rv := objc.Call[string](u_, objc.Sel("relativePath")) return rv } -// A URL you create by removing the path extension from the receiver, if any. (read-only) [Full Topic] +// The fragment identifier, 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/1413775-fragment?language=objc +func (u_ URL) Fragment() string { + rv := objc.Call[string](u_, objc.Sel("fragment")) return rv } -// An absolute URL that refers to the same resource as the receiver. (read-only) [Full Topic] +// The password conforming to RFC 1808. (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")) +// [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 } -// A copy of the URL with any instances of ".." or "." removed from its path. (read-only) [Full Topic] +// The query string, conforming to RFC 1808. [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")) +// [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 } -// The last path component. (read-only) [Full Topic] +// The base URL. (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")) +// [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 } -// A C string containing the URL’s file system path. (read-only) [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/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/1408782-fileurl?language=objc +func (u_ URL) IsFileURL() bool { + rv := objc.Call[bool](u_, objc.Sel("isFileURL")) return rv } -// A file path URL that points to the same resource as the URL object. (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/1408442-filepathurl?language=objc -func (u_ URL) FilePathURL() URL { - rv := objc.Call[URL](u_, objc.Sel("filePathURL")) +// [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 } -// The relative path, 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/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/1412357-urlbydeletingpathextension?language=objc +func (u_ URL) URLByDeletingPathExtension() URL { + rv := objc.Call[URL](u_, objc.Sel("URLByDeletingPathExtension")) return rv } diff --git a/macos/foundation/url_authentication_challenge.gen.go b/macos/foundation/url_authentication_challenge.gen.go index 95c94709..08e37f66 100644 --- a/macos/foundation/url_authentication_challenge.gen.go +++ b/macos/foundation/url_authentication_challenge.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package foundation @@ -18,12 +18,12 @@ type _URLAuthenticationChallengeClass struct { // An interface definition for the [URLAuthenticationChallenge] class. type IURLAuthenticationChallenge interface { objc.IObject - Error() Error - FailureResponse() URLResponse - ProposedCredential() URLCredential - Sender() URLAuthenticationChallengeSenderWrapper ProtectionSpace() URLProtectionSpace + Sender() URLAuthenticationChallengeSenderObject + ProposedCredential() URLCredential + Error() Error PreviousFailureCount() int + FailureResponse() URLResponse } // A challenge from a server requiring authentication from the client. [Full Topic] @@ -74,10 +74,6 @@ func (uc _URLAuthenticationChallengeClass) Alloc() URLAuthenticationChallenge { return rv } -func URLAuthenticationChallenge_Alloc() URLAuthenticationChallenge { - return URLAuthenticationChallengeClass.Alloc() -} - func (uc _URLAuthenticationChallengeClass) New() URLAuthenticationChallenge { rv := objc.Call[URLAuthenticationChallenge](uc, objc.Sel("new")) rv.Autorelease() @@ -93,19 +89,19 @@ func (u_ URLAuthenticationChallenge) Init() URLAuthenticationChallenge { return rv } -// The error object representing the last authentication failure. [Full Topic] +// The receiver’s protection space. [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/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 sender of the challenge. [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/1407533-sender?language=objc +func (u_ URLAuthenticationChallenge) Sender() URLAuthenticationChallengeSenderObject { + rv := objc.Call[URLAuthenticationChallengeSenderObject](u_, objc.Sel("sender")) return rv } @@ -117,19 +113,11 @@ func (u_ URLAuthenticationChallenge) ProposedCredential() URLCredential { return rv } -// The sender of the challenge. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsurlauthenticationchallenge/1407533-sender?language=objc -func (u_ URLAuthenticationChallenge) Sender() URLAuthenticationChallengeSenderWrapper { - rv := objc.Call[URLAuthenticationChallengeSenderWrapper](u_, objc.Sel("sender")) - 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 } @@ -140,3 +128,11 @@ func (u_ URLAuthenticationChallenge) PreviousFailureCount() int { rv := objc.Call[int](u_, objc.Sel("previousFailureCount")) return rv } + +// The URL response object representing the last authentication failure. [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")) + return rv +} diff --git a/macos/foundation/url_authentication_challenge_sender.gen.go b/macos/foundation/url_authentication_challenge_sender_protocol.gen.go similarity index 69% rename from macos/foundation/url_authentication_challenge_sender.gen.go rename to macos/foundation/url_authentication_challenge_sender_protocol.gen.go index 57a928dd..09273635 100644 --- a/macos/foundation/url_authentication_challenge_sender.gen.go +++ b/macos/foundation/url_authentication_challenge_sender_protocol.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package foundation @@ -18,6 +18,10 @@ type PURLAuthenticationChallengeSender interface { ContinueWithoutCredentialForAuthenticationChallenge(challenge URLAuthenticationChallenge) HasContinueWithoutCredentialForAuthenticationChallenge() bool + // optional + UseCredentialForAuthenticationChallenge(credential URLCredential, challenge URLAuthenticationChallenge) + HasUseCredentialForAuthenticationChallenge() bool + // optional PerformDefaultHandlingForAuthenticationChallenge(challenge URLAuthenticationChallenge) HasPerformDefaultHandlingForAuthenticationChallenge() bool @@ -25,68 +29,67 @@ type PURLAuthenticationChallengeSender interface { // optional RejectProtectionSpaceAndContinueWithChallenge(challenge URLAuthenticationChallenge) HasRejectProtectionSpaceAndContinueWithChallenge() bool - - // optional - UseCredentialForAuthenticationChallenge(credential URLCredential, challenge URLAuthenticationChallenge) - HasUseCredentialForAuthenticationChallenge() bool } -// A concrete type wrapper for the [PURLAuthenticationChallengeSender] protocol. -type URLAuthenticationChallengeSenderWrapper struct { +// ensure impl type implements protocol interface +var _ PURLAuthenticationChallengeSender = (*URLAuthenticationChallengeSenderObject)(nil) + +// A concrete type for the [PURLAuthenticationChallengeSender] protocol. +type URLAuthenticationChallengeSenderObject struct { objc.Object } -func (u_ URLAuthenticationChallengeSenderWrapper) HasCancelAuthenticationChallenge() bool { +func (u_ URLAuthenticationChallengeSenderObject) HasCancelAuthenticationChallenge() bool { return u_.RespondsToSelector(objc.Sel("cancelAuthenticationChallenge:")) } // Cancels a given authentication challenge. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/foundation/nsurlauthenticationchallengesender/1414474-cancelauthenticationchallenge?language=objc -func (u_ URLAuthenticationChallengeSenderWrapper) CancelAuthenticationChallenge(challenge IURLAuthenticationChallenge) { +func (u_ URLAuthenticationChallengeSenderObject) CancelAuthenticationChallenge(challenge URLAuthenticationChallenge) { objc.Call[objc.Void](u_, objc.Sel("cancelAuthenticationChallenge:"), objc.Ptr(challenge)) } -func (u_ URLAuthenticationChallengeSenderWrapper) HasContinueWithoutCredentialForAuthenticationChallenge() bool { +func (u_ URLAuthenticationChallengeSenderObject) HasContinueWithoutCredentialForAuthenticationChallenge() bool { return u_.RespondsToSelector(objc.Sel("continueWithoutCredentialForAuthenticationChallenge:")) } // Attempt to continue downloading a request without providing a credential for a given challenge. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/foundation/nsurlauthenticationchallengesender/1413016-continuewithoutcredentialforauth?language=objc -func (u_ URLAuthenticationChallengeSenderWrapper) ContinueWithoutCredentialForAuthenticationChallenge(challenge IURLAuthenticationChallenge) { +func (u_ URLAuthenticationChallengeSenderObject) ContinueWithoutCredentialForAuthenticationChallenge(challenge URLAuthenticationChallenge) { objc.Call[objc.Void](u_, objc.Sel("continueWithoutCredentialForAuthenticationChallenge:"), objc.Ptr(challenge)) } -func (u_ URLAuthenticationChallengeSenderWrapper) HasPerformDefaultHandlingForAuthenticationChallenge() bool { +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:"), objc.Ptr(credential), objc.Ptr(challenge)) +} + +func (u_ URLAuthenticationChallengeSenderObject) HasPerformDefaultHandlingForAuthenticationChallenge() bool { return u_.RespondsToSelector(objc.Sel("performDefaultHandlingForAuthenticationChallenge:")) } // Causes the system-provided default behavior to be used. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/foundation/nsurlauthenticationchallengesender/1414590-performdefaulthandlingforauthent?language=objc -func (u_ URLAuthenticationChallengeSenderWrapper) PerformDefaultHandlingForAuthenticationChallenge(challenge IURLAuthenticationChallenge) { +func (u_ URLAuthenticationChallengeSenderObject) PerformDefaultHandlingForAuthenticationChallenge(challenge URLAuthenticationChallenge) { objc.Call[objc.Void](u_, objc.Sel("performDefaultHandlingForAuthenticationChallenge:"), objc.Ptr(challenge)) } -func (u_ URLAuthenticationChallengeSenderWrapper) HasRejectProtectionSpaceAndContinueWithChallenge() bool { +func (u_ URLAuthenticationChallengeSenderObject) HasRejectProtectionSpaceAndContinueWithChallenge() bool { return u_.RespondsToSelector(objc.Sel("rejectProtectionSpaceAndContinueWithChallenge:")) } // Rejects the currently supplied protection space. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/foundation/nsurlauthenticationchallengesender/1417331-rejectprotectionspaceandcontinue?language=objc -func (u_ URLAuthenticationChallengeSenderWrapper) RejectProtectionSpaceAndContinueWithChallenge(challenge IURLAuthenticationChallenge) { +func (u_ URLAuthenticationChallengeSenderObject) RejectProtectionSpaceAndContinueWithChallenge(challenge URLAuthenticationChallenge) { objc.Call[objc.Void](u_, objc.Sel("rejectProtectionSpaceAndContinueWithChallenge:"), objc.Ptr(challenge)) } - -func (u_ URLAuthenticationChallengeSenderWrapper) 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_ URLAuthenticationChallengeSenderWrapper) UseCredentialForAuthenticationChallenge(credential IURLCredential, challenge IURLAuthenticationChallenge) { - objc.Call[objc.Void](u_, objc.Sel("useCredential:forAuthenticationChallenge:"), objc.Ptr(credential), objc.Ptr(challenge)) -} diff --git a/macos/foundation/url_cache.gen.go b/macos/foundation/url_cache.gen.go index da23631b..57d06079 100644 --- a/macos/foundation/url_cache.gen.go +++ b/macos/foundation/url_cache.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package foundation @@ -18,19 +18,20 @@ type _URLCacheClass struct { // An interface definition for the [URLCache] class. type IURLCache interface { objc.IObject - GetCachedResponseForDataTaskCompletionHandler(dataTask IURLSessionDataTask, completionHandler func(cachedResponse CachedURLResponse)) - CachedResponseForRequest(request IURLRequest) CachedURLResponse - RemoveCachedResponseForDataTask(dataTask IURLSessionDataTask) RemoveCachedResponsesSinceDate(date IDate) - RemoveCachedResponseForRequest(request IURLRequest) StoreCachedResponseForDataTask(cachedResponse ICachedURLResponse, dataTask IURLSessionDataTask) + GetCachedResponseForDataTaskCompletionHandler(dataTask IURLSessionDataTask, completionHandler func(cachedResponse CachedURLResponse)) + StoreCachedResponseForRequest(cachedResponse ICachedURLResponse, request IURLRequest) + CachedResponseForRequest(request IURLRequest) CachedURLResponse RemoveAllCachedResponses() - DiskCapacity() uint - SetDiskCapacity(value uint) + RemoveCachedResponseForRequest(request IURLRequest) + RemoveCachedResponseForDataTask(dataTask IURLSessionDataTask) MemoryCapacity() uint SetMemoryCapacity(value uint) - CurrentMemoryUsage() uint + DiskCapacity() uint + SetDiskCapacity(value uint) CurrentDiskUsage() uint + CurrentMemoryUsage() uint } // An object that maps URL requests to cached response objects. [Full Topic] @@ -65,10 +66,6 @@ func (uc _URLCacheClass) Alloc() URLCache { return rv } -func URLCache_Alloc() URLCache { - return URLCacheClass.Alloc() -} - func (uc _URLCacheClass) New() URLCache { rv := objc.Call[URLCache](uc, objc.Sel("new")) rv.Autorelease() @@ -84,6 +81,20 @@ 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:"), objc.Ptr(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:"), objc.Ptr(cachedResponse), objc.Ptr(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 @@ -91,6 +102,13 @@ func (u_ URLCache) GetCachedResponseForDataTaskCompletionHandler(dataTask IURLSe objc.Call[objc.Void](u_, objc.Sel("getCachedResponseForDataTask:completionHandler:"), objc.Ptr(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:"), objc.Ptr(cachedResponse), objc.Ptr(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 @@ -99,18 +117,11 @@ func (u_ URLCache) CachedResponseForRequest(request IURLRequest) CachedURLRespon return rv } -// 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:"), objc.Ptr(dataTask)) -} - -// Clears the given cache of any cached responses since the provided date. [Full Topic] +// Clears the receiver’s cache, removing all stored cached URL responses. [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:"), objc.Ptr(date)) +// [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")) } // Removes the cached URL response for a specified URL request. [Full Topic] @@ -120,18 +131,26 @@ func (u_ URLCache) RemoveCachedResponseForRequest(request IURLRequest) { objc.Call[objc.Void](u_, objc.Sel("removeCachedResponseForRequest:"), objc.Ptr(request)) } -// Stores a cached URL response for a specified data task. [Full Topic] +// Removes the 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:"), objc.Ptr(cachedResponse), objc.Ptr(dataTask)) +// [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:"), objc.Ptr(dataTask)) } -// Clears the receiver’s cache, removing all stored cached URL responses. [Full Topic] +// The capacity of the in-memory cache, in bytes. [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/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 capacity of the on-disk cache, in bytes. [Full Topic] @@ -149,6 +168,14 @@ 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 @@ -178,21 +205,6 @@ 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 @@ -200,11 +212,3 @@ 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 4f636b13..27bb02ed 100644 --- a/macos/foundation/url_components.gen.go +++ b/macos/foundation/url_components.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package foundation @@ -19,46 +19,46 @@ type _URLComponentsClass struct { type IURLComponents interface { objc.IObject URLRelativeToURL(baseURL IURL) URL - 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) + PercentEncodedPassword() string + SetPercentEncodedPassword(value string) RangeOfUser() Range - QueryItems() []URLQueryItem - SetQueryItems(value []IURLQueryItem) Query() string SetQuery(value string) - RangeOfFragment() Range - PercentEncodedQuery() string - SetPercentEncodedQuery(value string) - PercentEncodedFragment() string - SetPercentEncodedFragment(value string) - Fragment() string - SetFragment(value string) + RangeOfPassword() Range PercentEncodedQueryItems() []URLQueryItem SetPercentEncodedQueryItems(value []IURLQueryItem) - String() string - PercentEncodedPath() string - SetPercentEncodedPath(value string) - RangeOfQuery() Range + RangeOfFragment() Range User() string SetUser(value string) - URL() URL + 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 Port() Number SetPort(value INumber) - RangeOfPath() Range + 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) } // An object that parses URLs into and constructs URLs from their constituent parts. [Full Topic] @@ -74,18 +74,11 @@ func URLComponentsFrom(ptr unsafe.Pointer) URLComponents { } } -func (uc _URLComponentsClass) ComponentsWithURLResolvingAgainstBaseURL(url IURL, resolve bool) URLComponents { - rv := objc.Call[URLComponents](uc, objc.Sel("componentsWithURL:resolvingAgainstBaseURL:"), objc.Ptr(url), resolve) +func (u_ URLComponents) Init() URLComponents { + rv := objc.Call[URLComponents](u_, objc.Sel("init")) 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 @@ -98,6 +91,18 @@ 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:"), objc.Ptr(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:"), objc.Ptr(url), resolve) return rv @@ -126,20 +131,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 } -func URLComponents_Alloc() URLComponents { - return URLComponentsClass.Alloc() -} - func (uc _URLComponentsClass) New() URLComponents { rv := objc.Call[URLComponents](uc, objc.Sel("new")) rv.Autorelease() @@ -158,57 +154,19 @@ func (u_ URLComponents) URLRelativeToURL(baseURL IURL) URL { 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) Password() string { - rv := objc.Call[string](u_, objc.Sel("password")) - 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) -} - -// 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] +// The scheme URL component, 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/1407517-scheme?language=objc +func (u_ URLComponents) Scheme() string { + rv := objc.Call[string](u_, objc.Sel("scheme")) return rv } -// The username URL subcomponent expressed as a URL-encoded string, 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/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/1407517-scheme?language=objc +func (u_ URLComponents) SetScheme(value string) { + objc.Call[objc.Void](u_, objc.Sel("setScheme:"), value) } // The password URL subcomponent expressed as a URL-encoded string, or nil if not present. [Full Topic] @@ -226,19 +184,27 @@ func (u_ URLComponents) SetPercentEncodedPassword(value string) { objc.Call[objc.Void](u_, objc.Sel("setPercentEncodedPassword:"), value) } -// The host URL subcomponent, or nil if not present. [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/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/1414961-rangeofuser?language=objc +func (u_ URLComponents) RangeOfUser() Range { + rv := objc.Call[Range](u_, objc.Sel("rangeOfUser")) 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) Query() string { + rv := objc.Call[string](u_, objc.Sel("query")) + return rv +} + +// The query URL component as a string, 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) } // Returns the character range of the password in the string returned by the string property. [Full Topic] @@ -249,133 +215,126 @@ func (u_ URLComponents) RangeOfPassword() Range { return rv } -// 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/1410099-rangeofscheme?language=objc -func (u_ URLComponents) RangeOfScheme() Range { - rv := objc.Call[Range](u_, objc.Sel("rangeOfScheme")) - return rv -} - -// The scheme URL component, or nil if not present. [Full Topic] +// [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/2865531-percentencodedqueryitems?language=objc +func (u_ URLComponents) PercentEncodedQueryItems() []URLQueryItem { + rv := objc.Call[[]URLQueryItem](u_, objc.Sel("percentEncodedQueryItems")) return rv } -// The scheme URL component, or nil if not present. [Full Topic] +// [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/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 user 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/1414961-rangeofuser?language=objc -func (u_ URLComponents) RangeOfUser() Range { - rv := objc.Call[Range](u_, objc.Sel("rangeOfUser")) +// [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 query URL component as an array of name/value pairs. [Full Topic] +// The username URL subcomponent, 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")) +// [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 query URL component as an array of name/value pairs. [Full Topic] +// The username URL subcomponent, 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/1415026-user?language=objc +func (u_ URLComponents) SetUser(value string) { + objc.Call[objc.Void](u_, objc.Sel("setUser:"), value) } -// The query URL component as a 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/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/1418459-rangeofpath?language=objc +func (u_ URLComponents) RangeOfPath() Range { + rv := objc.Call[Range](u_, objc.Sel("rangeOfPath")) return rv } -// The query URL component as a string, or nil if not present. [Full Topic] +// The path URL component, 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/1409650-path?language=objc +func (u_ URLComponents) Path() string { + rv := objc.Call[string](u_, objc.Sel("path")) + return rv } -// Returns the character range of the fragment in the string returned by the string property. [Full Topic] +// The path URL component, or nil if not present. [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")) - return rv +// [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) } -// The query URL component expressed as a URL-encoded 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/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/1411178-host?language=objc +func (u_ URLComponents) Host() string { + rv := objc.Call[string](u_, objc.Sel("host")) return rv } -// The query URL component expressed as a URL-encoded 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/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/1411178-host?language=objc +func (u_ URLComponents) SetHost(value string) { + objc.Call[objc.Void](u_, objc.Sel("setHost:"), 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 host 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/1408894-rangeofhost?language=objc +func (u_ URLComponents) RangeOfHost() Range { + rv := objc.Call[Range](u_, objc.Sel("rangeOfHost")) return rv } -// The fragment URL component (the part after a # symbol) expressed as a URL-encoded string, or nil if not present. [Full Topic] +// 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/1418392-percentencodedfragment?language=objc -func (u_ URLComponents) SetPercentEncodedFragment(value string) { - objc.Call[objc.Void](u_, objc.Sel("setPercentEncodedFragment:"), value) +// [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 fragment URL component (the part after a # symbol), or nil if not present. [Full Topic] +// 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/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/1417767-percentencodeduser?language=objc +func (u_ URLComponents) SetPercentEncodedUser(value string) { + objc.Call[objc.Void](u_, objc.Sel("setPercentEncodedUser:"), 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 } -// [Full Topic] +// The query URL component as an array of name/value pairs. [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")) +// [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] +// The query URL component as an array of name/value pairs. [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) +// [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) } // A URL derived from the components object, in string form. [Full Topic] @@ -386,6 +345,29 @@ func (u_ URLComponents) String() string { return rv } +// 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/1409456-rangeofquery?language=objc +func (u_ URLComponents) RangeOfQuery() Range { + rv := objc.Call[Range](u_, objc.Sel("rangeOfQuery")) + return rv +} + +// The port number URL component, or nil if not present. [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 +} + +// The port number URL component, or nil if not present. [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:"), objc.Ptr(value)) +} + // The path URL component expressed as a URL-encoded string, or nil if not present. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/foundation/nsurlcomponents/1408161-percentencodedpath?language=objc @@ -401,64 +383,78 @@ func (u_ URLComponents) SetPercentEncodedPath(value string) { objc.Call[objc.Void](u_, objc.Sel("setPercentEncodedPath:"), value) } -// Returns the character range of the query in the string returned by the string property. [Full Topic] +// The password URL subcomponent, or nil if not present. [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/1415604-password?language=objc +func (u_ URLComponents) Password() string { + rv := objc.Call[string](u_, objc.Sel("password")) return rv } -// The username URL subcomponent, 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/1415026-user?language=objc -func (u_ URLComponents) User() string { - rv := objc.Call[string](u_, objc.Sel("user")) - return rv +// [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 username URL subcomponent, or nil if not present. [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/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/1410099-rangeofscheme?language=objc +func (u_ URLComponents) RangeOfScheme() Range { + rv := objc.Call[Range](u_, objc.Sel("rangeOfScheme")) + return rv } -// A URL object derived from the components object. [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/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/1417638-fragment?language=objc +func (u_ URLComponents) Fragment() string { + rv := objc.Call[string](u_, objc.Sel("fragment")) return rv } -// Returns the character range of the host in the string returned by the string property. [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/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/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 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 port number URL component, 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/1413451-port?language=objc -func (u_ URLComponents) Port() Number { - rv := objc.Call[Number](u_, objc.Sel("port")) +// [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 port number URL component, 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/1413451-port?language=objc -func (u_ URLComponents) SetPort(value INumber) { - objc.Call[objc.Void](u_, objc.Sel("setPort:"), objc.Ptr(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) } -// Returns the character range of the path in the string returned by the string property. [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/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/1418392-percentencodedfragment?language=objc +func (u_ URLComponents) PercentEncodedFragment() string { + rv := objc.Call[string](u_, objc.Sel("percentEncodedFragment")) 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 c9aab4d2..bbeb9eca 100644 --- a/macos/foundation/url_connection.gen.go +++ b/macos/foundation/url_connection.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package foundation @@ -19,10 +19,10 @@ type _URLConnectionClass struct { type IURLConnection interface { objc.IObject ScheduleInRunLoopForMode(aRunLoop IRunLoop, mode RunLoopMode) + Cancel() Start() - SetDelegateQueue(queue IOperationQueue) UnscheduleFromRunLoopForMode(aRunLoop IRunLoop, mode RunLoopMode) - Cancel() + SetDelegateQueue(queue IOperationQueue) CurrentRequest() URLRequest OriginalRequest() URLRequest } @@ -45,10 +45,6 @@ func (uc _URLConnectionClass) Alloc() URLConnection { return rv } -func URLConnection_Alloc() URLConnection { - return URLConnectionClass.Alloc() -} - func (uc _URLConnectionClass) New() URLConnection { rv := objc.Call[URLConnection](uc, objc.Sel("new")) rv.Autorelease() @@ -64,13 +60,6 @@ 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:"), objc.Ptr(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 @@ -86,6 +75,20 @@ 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:"), objc.Ptr(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 @@ -93,13 +96,6 @@ 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:"), objc.Ptr(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 @@ -107,11 +103,11 @@ func (u_ URLConnection) UnscheduleFromRunLoopForMode(aRunLoop IRunLoop, mode Run objc.Call[objc.Void](u_, objc.Sel("unscheduleFromRunLoop:forMode:"), objc.Ptr(aRunLoop), mode) } -// Cancels an asynchronous load of a request. [Full Topic] +// 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/1407797-cancel?language=objc -func (u_ URLConnection) Cancel() { - objc.Call[objc.Void](u_, objc.Sel("cancel")) +// [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:"), objc.Ptr(queue)) } // 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 8789ac52..146fe67a 100644 --- a/macos/foundation/url_connection_data_delegate.gen.go +++ b/macos/foundation/url_connection_data_delegate.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package foundation @@ -10,21 +10,97 @@ 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 - ConnectionDidFinishLoading(connection URLConnection) - HasConnectionDidFinishLoading() bool + 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 } // A delegate implementation builder for the [PURLConnectionDataDelegate] protocol. type URLConnectionDataDelegate struct { - _ConnectionDidReceiveData func(connection URLConnection, data []byte) - _ConnectionDidFinishLoading func(connection URLConnection) + _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 } +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 } @@ -42,47 +118,142 @@ func (di *URLConnectionDataDelegate) SetConnectionDidReceiveData(f func(connecti func (di *URLConnectionDataDelegate) ConnectionDidReceiveData(connection URLConnection, data []byte) { di._ConnectionDidReceiveData(connection, data) } -func (di *URLConnectionDataDelegate) HasConnectionDidFinishLoading() bool { - return di._ConnectionDidFinishLoading != nil +func (di *URLConnectionDataDelegate) HasConnectionDidReceiveResponse() bool { + return di._ConnectionDidReceiveResponse != nil } -// Sent when a connection has finished loading successfully. [Full Topic] +// 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/1416409-connectiondidfinishloading?language=objc -func (di *URLConnectionDataDelegate) SetConnectionDidFinishLoading(f func(connection URLConnection)) { - di._ConnectionDidFinishLoading = f +// [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 +} + +// Called when an NSURLConnection needs to retransmit a request that has a body stream to provide a new, unopened stream. [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 +} + +// Called when an NSURLConnection needs to retransmit a request that has a body stream to provide a new, unopened stream. [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) +} + +// ensure impl type implements protocol interface +var _ PURLConnectionDataDelegate = (*URLConnectionDataDelegateObject)(nil) + +// A concrete type for the [PURLConnectionDataDelegate] protocol. +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 (di *URLConnectionDataDelegate) ConnectionDidFinishLoading(connection URLConnection) { - di._ConnectionDidFinishLoading(connection) +func (u_ URLConnectionDataDelegateObject) ConnectionDidFinishLoading(connection URLConnection) { + objc.Call[objc.Void](u_, objc.Sel("connectionDidFinishLoading:"), objc.Ptr(connection)) } -// A concrete type wrapper for the [PURLConnectionDataDelegate] protocol. -type URLConnectionDataDelegateWrapper struct { - objc.Object +func (u_ URLConnectionDataDelegateObject) HasConnectionDidSendBodyDataTotalBytesWrittenTotalBytesExpectedToWrite() bool { + return u_.RespondsToSelector(objc.Sel("connection:didSendBodyData:totalBytesWritten:totalBytesExpectedToWrite:")) } -func (u_ URLConnectionDataDelegateWrapper) HasConnectionDidReceiveData() bool { +// 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:"), objc.Ptr(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:"), objc.Ptr(connection), objc.Ptr(cachedResponse)) + return rv +} + +func (u_ URLConnectionDataDelegateObject) HasConnectionDidReceiveData() bool { return u_.RespondsToSelector(objc.Sel("connection:didReceiveData:")) } // Sent as a connection loads data incrementally. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/foundation/nsurlconnectiondatadelegate/1414090-connection?language=objc -func (u_ URLConnectionDataDelegateWrapper) ConnectionDidReceiveData(connection IURLConnection, data []byte) { +func (u_ URLConnectionDataDelegateObject) ConnectionDidReceiveData(connection URLConnection, data []byte) { objc.Call[objc.Void](u_, objc.Sel("connection:didReceiveData:"), objc.Ptr(connection), data) } -func (u_ URLConnectionDataDelegateWrapper) HasConnectionDidFinishLoading() bool { - return u_.RespondsToSelector(objc.Sel("connectionDidFinishLoading:")) +func (u_ URLConnectionDataDelegateObject) HasConnectionDidReceiveResponse() bool { + return u_.RespondsToSelector(objc.Sel("connection:didReceiveResponse:")) } -// Sent when a connection has finished loading successfully. [Full Topic] +// 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/1416409-connectiondidfinishloading?language=objc -func (u_ URLConnectionDataDelegateWrapper) ConnectionDidFinishLoading(connection IURLConnection) { - objc.Call[objc.Void](u_, objc.Sel("connectionDidFinishLoading:"), objc.Ptr(connection)) +// [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:"), objc.Ptr(connection), objc.Ptr(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:"), objc.Ptr(connection), objc.Ptr(request), objc.Ptr(response)) + return rv +} + +func (u_ URLConnectionDataDelegateObject) HasConnectionNeedNewBodyStream() bool { + return u_.RespondsToSelector(objc.Sel("connection:needNewBodyStream:")) +} + +// Called when an NSURLConnection needs to retransmit a request that has a body stream to provide a new, unopened stream. [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:"), objc.Ptr(connection), objc.Ptr(request)) + return rv } diff --git a/macos/foundation/url_connection_delegate.gen.go b/macos/foundation/url_connection_delegate.gen.go index b27b6c6d..1ec6ebc8 100644 --- a/macos/foundation/url_connection_delegate.gen.go +++ b/macos/foundation/url_connection_delegate.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package foundation @@ -17,12 +17,17 @@ 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) + _ConnectionShouldUseCredentialStorage func(connection URLConnection) bool + _ConnectionDidFailWithError func(connection URLConnection, error Error) + _ConnectionWillSendRequestForAuthenticationChallenge func(connection URLConnection, challenge URLAuthenticationChallenge) } func (di *URLConnectionDelegate) HasConnectionShouldUseCredentialStorage() bool { @@ -59,31 +64,62 @@ 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 +} -// A concrete type wrapper for the [PURLConnectionDelegate] protocol. -type URLConnectionDelegateWrapper struct { +// 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) + +// A concrete type for the [PURLConnectionDelegate] protocol. +type URLConnectionDelegateObject struct { objc.Object } -func (u_ URLConnectionDelegateWrapper) HasConnectionShouldUseCredentialStorage() bool { +func (u_ URLConnectionDelegateObject) HasConnectionShouldUseCredentialStorage() bool { return u_.RespondsToSelector(objc.Sel("connectionShouldUseCredentialStorage:")) } // Sent to determine whether the URL loader should use the credential storage for authenticating the connection. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/foundation/nsurlconnectiondelegate/1414890-connectionshouldusecredentialsto?language=objc -func (u_ URLConnectionDelegateWrapper) ConnectionShouldUseCredentialStorage(connection IURLConnection) bool { +func (u_ URLConnectionDelegateObject) ConnectionShouldUseCredentialStorage(connection URLConnection) bool { rv := objc.Call[bool](u_, objc.Sel("connectionShouldUseCredentialStorage:"), objc.Ptr(connection)) return rv } -func (u_ URLConnectionDelegateWrapper) HasConnectionDidFailWithError() bool { +func (u_ URLConnectionDelegateObject) HasConnectionDidFailWithError() bool { return u_.RespondsToSelector(objc.Sel("connection:didFailWithError:")) } // Sent when a connection fails to load its request successfully. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/foundation/nsurlconnectiondelegate/1418443-connection?language=objc -func (u_ URLConnectionDelegateWrapper) ConnectionDidFailWithError(connection IURLConnection, error IError) { +func (u_ URLConnectionDelegateObject) ConnectionDidFailWithError(connection URLConnection, error Error) { objc.Call[objc.Void](u_, objc.Sel("connection:didFailWithError:"), objc.Ptr(connection), objc.Ptr(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:"), objc.Ptr(connection), objc.Ptr(challenge)) +} diff --git a/macos/foundation/url_connection_download_delegate.gen.go b/macos/foundation/url_connection_download_delegate.gen.go index b52eeadf..8fb46485 100644 --- a/macos/foundation/url_connection_download_delegate.gen.go +++ b/macos/foundation/url_connection_download_delegate.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package foundation @@ -11,41 +11,41 @@ import ( // [Full Topic]: https://developer.apple.com/documentation/foundation/nsurlconnectiondownloaddelegate?language=objc type PURLConnectionDownloadDelegate interface { // optional - ConnectionDidFinishDownloadingDestinationURL(connection URLConnection, destinationURL URL) - HasConnectionDidFinishDownloadingDestinationURL() bool + ConnectionDidWriteDataTotalBytesWrittenExpectedTotalBytes(connection URLConnection, bytesWritten int64, totalBytesWritten int64, expectedTotalBytes int64) + HasConnectionDidWriteDataTotalBytesWrittenExpectedTotalBytes() bool // optional ConnectionDidResumeDownloadingTotalBytesWrittenExpectedTotalBytes(connection URLConnection, totalBytesWritten int64, expectedTotalBytes int64) HasConnectionDidResumeDownloadingTotalBytesWrittenExpectedTotalBytes() bool // optional - ConnectionDidWriteDataTotalBytesWrittenExpectedTotalBytes(connection URLConnection, bytesWritten int64, totalBytesWritten int64, expectedTotalBytes int64) - HasConnectionDidWriteDataTotalBytesWrittenExpectedTotalBytes() bool + ConnectionDidFinishDownloadingDestinationURL(connection URLConnection, destinationURL URL) + HasConnectionDidFinishDownloadingDestinationURL() bool } // A delegate implementation builder for the [PURLConnectionDownloadDelegate] protocol. type URLConnectionDownloadDelegate struct { - _ConnectionDidFinishDownloadingDestinationURL func(connection URLConnection, destinationURL URL) - _ConnectionDidResumeDownloadingTotalBytesWrittenExpectedTotalBytes func(connection URLConnection, totalBytesWritten int64, expectedTotalBytes int64) _ConnectionDidWriteDataTotalBytesWrittenExpectedTotalBytes func(connection URLConnection, bytesWritten int64, totalBytesWritten int64, expectedTotalBytes int64) + _ConnectionDidResumeDownloadingTotalBytesWrittenExpectedTotalBytes func(connection URLConnection, totalBytesWritten int64, expectedTotalBytes int64) + _ConnectionDidFinishDownloadingDestinationURL func(connection URLConnection, destinationURL URL) } -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) } func (di *URLConnectionDownloadDelegate) HasConnectionDidResumeDownloadingTotalBytesWrittenExpectedTotalBytes() bool { return di._ConnectionDidResumeDownloadingTotalBytesWrittenExpectedTotalBytes != nil @@ -64,58 +64,61 @@ func (di *URLConnectionDownloadDelegate) SetConnectionDidResumeDownloadingTotalB func (di *URLConnectionDownloadDelegate) ConnectionDidResumeDownloadingTotalBytesWrittenExpectedTotalBytes(connection URLConnection, totalBytesWritten int64, expectedTotalBytes int64) { di._ConnectionDidResumeDownloadingTotalBytesWrittenExpectedTotalBytes(connection, totalBytesWritten, expectedTotalBytes) } -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) } -// A concrete type wrapper for the [PURLConnectionDownloadDelegate] protocol. -type URLConnectionDownloadDelegateWrapper struct { +// ensure impl type implements protocol interface +var _ PURLConnectionDownloadDelegate = (*URLConnectionDownloadDelegateObject)(nil) + +// A concrete type for the [PURLConnectionDownloadDelegate] protocol. +type URLConnectionDownloadDelegateObject struct { objc.Object } -func (u_ URLConnectionDownloadDelegateWrapper) 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_ URLConnectionDownloadDelegateWrapper) ConnectionDidFinishDownloadingDestinationURL(connection IURLConnection, destinationURL IURL) { - objc.Call[objc.Void](u_, objc.Sel("connectionDidFinishDownloading:destinationURL:"), objc.Ptr(connection), objc.Ptr(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:"), objc.Ptr(connection), bytesWritten, totalBytesWritten, expectedTotalBytes) } -func (u_ URLConnectionDownloadDelegateWrapper) HasConnectionDidResumeDownloadingTotalBytesWrittenExpectedTotalBytes() bool { +func (u_ URLConnectionDownloadDelegateObject) HasConnectionDidResumeDownloadingTotalBytesWrittenExpectedTotalBytes() bool { return u_.RespondsToSelector(objc.Sel("connectionDidResumeDownloading:totalBytesWritten:expectedTotalBytes:")) } // Sent to the delegate when an URL connection resumes downloading a URL asset that was earlier suspended. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/foundation/nsurlconnectiondownloaddelegate/1418157-connectiondidresumedownloading?language=objc -func (u_ URLConnectionDownloadDelegateWrapper) ConnectionDidResumeDownloadingTotalBytesWrittenExpectedTotalBytes(connection IURLConnection, totalBytesWritten int64, expectedTotalBytes int64) { +func (u_ URLConnectionDownloadDelegateObject) ConnectionDidResumeDownloadingTotalBytesWrittenExpectedTotalBytes(connection URLConnection, totalBytesWritten int64, expectedTotalBytes int64) { objc.Call[objc.Void](u_, objc.Sel("connectionDidResumeDownloading:totalBytesWritten:expectedTotalBytes:"), objc.Ptr(connection), totalBytesWritten, expectedTotalBytes) } -func (u_ URLConnectionDownloadDelegateWrapper) 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_ URLConnectionDownloadDelegateWrapper) ConnectionDidWriteDataTotalBytesWrittenExpectedTotalBytes(connection IURLConnection, bytesWritten int64, totalBytesWritten int64, expectedTotalBytes int64) { - objc.Call[objc.Void](u_, objc.Sel("connection:didWriteData:totalBytesWritten:expectedTotalBytes:"), objc.Ptr(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:"), objc.Ptr(connection), objc.Ptr(destinationURL)) } diff --git a/macos/foundation/url_credential.gen.go b/macos/foundation/url_credential.gen.go index fb898252..3b3d5d8b 100644 --- a/macos/foundation/url_credential.gen.go +++ b/macos/foundation/url_credential.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package foundation @@ -18,11 +18,11 @@ type _URLCredentialClass struct { // An interface definition for the [URLCredential] class. type IURLCredential interface { objc.IObject - Password() string Certificates() []objc.Object + Persistence() URLCredentialPersistence + Password() string 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] @@ -57,10 +57,6 @@ func (uc _URLCredentialClass) Alloc() URLCredential { return rv } -func URLCredential_Alloc() URLCredential { - return URLCredentialClass.Alloc() -} - func (uc _URLCredentialClass) New() URLCredential { rv := objc.Call[URLCredential](uc, objc.Sel("new")) rv.Autorelease() @@ -91,14 +87,6 @@ func URLCredential_CredentialWithUserPasswordPersistence(user string, password s return URLCredentialClass.CredentialWithUserPasswordPersistence(user, password, persistence) } -// The credential’s password. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsurlcredential/1417913-password?language=objc -func (u_ URLCredential) Password() string { - rv := objc.Call[string](u_, objc.Sel("password")) - 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 @@ -107,6 +95,22 @@ func (u_ URLCredential) Certificates() []objc.Object { 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 +func (u_ URLCredential) Password() string { + rv := objc.Call[string](u_, objc.Sel("password")) + return rv +} + // The credential’s user name. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/foundation/nsurlcredential/1408654-user?language=objc @@ -122,11 +126,3 @@ 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 7dc2f121..d8e6e8dd 100644 --- a/macos/foundation/url_credential_storage.gen.go +++ b/macos/foundation/url_credential_storage.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package foundation @@ -18,13 +18,17 @@ type _URLCredentialStorageClass struct { // An interface definition for the [URLCredentialStorage] class. type IURLCredentialStorage interface { objc.IObject - DefaultCredentialForProtectionSpace(space IURLProtectionSpace) URLCredential + GetCredentialsForProtectionSpaceTaskCompletionHandler(protectionSpace IURLProtectionSpace, task IURLSessionTask, completionHandler func(credentials map[string]URLCredential)) + SetDefaultCredentialForProtectionSpaceTask(credential IURLCredential, protectionSpace IURLProtectionSpace, task IURLSessionTask) 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) - GetCredentialsForProtectionSpaceTaskCompletionHandler(protectionSpace IURLProtectionSpace, task IURLSessionTask, completionHandler func(credentials map[string]URLCredential)) + GetDefaultCredentialForProtectionSpaceTaskCompletionHandler(space IURLProtectionSpace, task IURLSessionTask, completionHandler func(credential URLCredential)) AllCredentials() Dictionary } @@ -46,10 +50,6 @@ func (uc _URLCredentialStorageClass) Alloc() URLCredentialStorage { return rv } -func URLCredentialStorage_Alloc() URLCredentialStorage { - return URLCredentialStorageClass.Alloc() -} - func (uc _URLCredentialStorageClass) New() URLCredentialStorage { rv := objc.Call[URLCredentialStorage](uc, objc.Sel("new")) rv.Autorelease() @@ -65,12 +65,18 @@ func (u_ URLCredentialStorage) Init() URLCredentialStorage { return rv } -// Returns the default credential for the specified protection space. [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/1412650-defaultcredentialforprotectionsp?language=objc -func (u_ URLCredentialStorage) DefaultCredentialForProtectionSpace(space IURLProtectionSpace) URLCredential { - rv := objc.Call[URLCredential](u_, objc.Sel("defaultCredentialForProtectionSpace:"), objc.Ptr(space)) - 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:"), objc.Ptr(protectionSpace), objc.Ptr(task), completionHandler) +} + +// Sets the default credential for a given protection space, which is being accessed by the given task. [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:"), objc.Ptr(credential), objc.Ptr(protectionSpace), objc.Ptr(task)) } // Sets the default credential for a specified protection space. [Full Topic] @@ -80,13 +86,6 @@ func (u_ URLCredentialStorage) SetDefaultCredentialForProtectionSpace(credential objc.Call[objc.Void](u_, objc.Sel("setDefaultCredential:forProtectionSpace:"), objc.Ptr(credential), objc.Ptr(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:"), objc.Ptr(space), objc.Ptr(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 @@ -94,6 +93,28 @@ func (u_ URLCredentialStorage) RemoveCredentialForProtectionSpace(credential IUR objc.Call[objc.Void](u_, objc.Sel("removeCredential:forProtectionSpace:"), objc.Ptr(credential), objc.Ptr(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:"), objc.Ptr(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:"), objc.Ptr(credential), objc.Ptr(protectionSpace), options, objc.Ptr(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:"), objc.Ptr(credential), objc.Ptr(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 @@ -102,6 +123,13 @@ 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:"), objc.Ptr(credential), objc.Ptr(protectionSpace), objc.Ptr(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 @@ -109,11 +137,19 @@ func (u_ URLCredentialStorage) SetCredentialForProtectionSpace(credential IURLCr objc.Call[objc.Void](u_, objc.Sel("setCredential:forProtectionSpace:"), objc.Ptr(credential), objc.Ptr(space)) } -// 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] +// 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/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:"), objc.Ptr(protectionSpace), objc.Ptr(task), completionHandler) +// [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:"), objc.Ptr(space), objc.Ptr(task), completionHandler) +} + +// 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 } // The shared URL credential storage instance. [Full Topic] @@ -130,11 +166,3 @@ 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 13cd9ef3..6d38361a 100644 --- a/macos/foundation/url_download.gen.go +++ b/macos/foundation/url_download.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package foundation @@ -44,10 +44,6 @@ func (uc _URLDownloadClass) Alloc() URLDownload { return rv } -func URLDownload_Alloc() URLDownload { - return URLDownloadClass.Alloc() -} - func (uc _URLDownloadClass) New() URLDownload { rv := objc.Call[URLDownload](uc, objc.Sel("new")) rv.Autorelease() @@ -63,13 +59,6 @@ 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 @@ -85,6 +74,13 @@ 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 c2b0f241..6ddce4d7 100644 --- a/macos/foundation/url_download_delegate.gen.go +++ b/macos/foundation/url_download_delegate.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package foundation @@ -10,31 +10,217 @@ 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 - DownloadDidBegin(download URLDownload) - HasDownloadDidBegin() bool + DownloadDidReceiveAuthenticationChallenge(download URLDownload, challenge URLAuthenticationChallenge) + HasDownloadDidReceiveAuthenticationChallenge() bool // optional - DownloadShouldUseCredentialStorage(download URLDownload) bool - HasDownloadShouldUseCredentialStorage() bool + DownloadWillResumeWithResponseFromByte(download URLDownload, response URLResponse, startingByte int64) + HasDownloadWillResumeWithResponseFromByte() bool + + // optional + DownloadDidCreateDestination(download URLDownload, path string) + HasDownloadDidCreateDestination() bool } // A delegate implementation builder for the [PURLDownloadDelegate] protocol. type URLDownloadDelegate struct { - _DownloadCanAuthenticateAgainstProtectionSpace func(connection URLDownload, protectionSpace URLProtectionSpace) bool - _DownloadDidFinish func(download URLDownload) - _DownloadDidBegin func(download URLDownload) - _DownloadShouldUseCredentialStorage func(download URLDownload) bool + _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 +} + +// 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 } @@ -52,6 +238,23 @@ 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 } @@ -69,88 +272,220 @@ func (di *URLDownloadDelegate) SetDownloadDidFinish(f func(download URLDownload) func (di *URLDownloadDelegate) DownloadDidFinish(download URLDownload) { di._DownloadDidFinish(download) } -func (di *URLDownloadDelegate) HasDownloadDidBegin() bool { - return di._DownloadDidBegin != nil +func (di *URLDownloadDelegate) HasDownloadDidReceiveAuthenticationChallenge() bool { + return di._DownloadDidReceiveAuthenticationChallenge != nil } -// Sent immediately after a download object begins a download. [Full Topic] +// 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/1409618-downloaddidbegin?language=objc -func (di *URLDownloadDelegate) SetDownloadDidBegin(f func(download URLDownload)) { - di._DownloadDidBegin = f +// [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 immediately after a download object begins a download. [Full Topic] +// 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/1409618-downloaddidbegin?language=objc -func (di *URLDownloadDelegate) DownloadDidBegin(download URLDownload) { - di._DownloadDidBegin(download) +// [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) HasDownloadShouldUseCredentialStorage() bool { - return di._DownloadShouldUseCredentialStorage != nil +func (di *URLDownloadDelegate) HasDownloadWillResumeWithResponseFromByte() bool { + return di._DownloadWillResumeWithResponseFromByte != nil } -// Sent to determine whether the URL loader should consult the credential storage to authenticate the download. [Full Topic] +// Sent when a download object has received a response from the server after attempting to resume a 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 +// [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 +} + +// Sent when a download object has received a response from the server after attempting to resume 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) +} +func (di *URLDownloadDelegate) HasDownloadDidCreateDestination() bool { + return di._DownloadDidCreateDestination != nil +} + +// Sent when the destination file is created. [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 +} + +// Sent when the destination file is created. [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) +} + +// ensure impl type implements protocol interface +var _ PURLDownloadDelegate = (*URLDownloadDelegateObject)(nil) + +// A concrete type for the [PURLDownloadDelegate] protocol. +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:"), objc.Ptr(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:"), objc.Ptr(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 (di *URLDownloadDelegate) DownloadShouldUseCredentialStorage(download URLDownload) bool { - return di._DownloadShouldUseCredentialStorage(download) +func (u_ URLDownloadDelegateObject) DownloadShouldUseCredentialStorage(download URLDownload) bool { + rv := objc.Call[bool](u_, objc.Sel("downloadShouldUseCredentialStorage:"), objc.Ptr(download)) + return rv } -// A concrete type wrapper for the [PURLDownloadDelegate] protocol. -type URLDownloadDelegateWrapper struct { - objc.Object +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:"), objc.Ptr(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:"), objc.Ptr(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:"), objc.Ptr(download), objc.Ptr(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:"), objc.Ptr(download), objc.Ptr(challenge)) } -func (u_ URLDownloadDelegateWrapper) HasDownloadCanAuthenticateAgainstProtectionSpace() bool { +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:"), objc.Ptr(download), objc.Ptr(request), objc.Ptr(redirectResponse)) + return rv +} + +func (u_ URLDownloadDelegateObject) HasDownloadCanAuthenticateAgainstProtectionSpace() bool { return u_.RespondsToSelector(objc.Sel("download:canAuthenticateAgainstProtectionSpace:")) } // Sent to determine whether the delegate is able to respond to a protection space’s form of authentication. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/foundation/nsurldownloaddelegate/1417213-download?language=objc -func (u_ URLDownloadDelegateWrapper) DownloadCanAuthenticateAgainstProtectionSpace(connection IURLDownload, protectionSpace IURLProtectionSpace) bool { +func (u_ URLDownloadDelegateObject) DownloadCanAuthenticateAgainstProtectionSpace(connection URLDownload, protectionSpace URLProtectionSpace) bool { rv := objc.Call[bool](u_, objc.Sel("download:canAuthenticateAgainstProtectionSpace:"), objc.Ptr(connection), objc.Ptr(protectionSpace)) return rv } -func (u_ URLDownloadDelegateWrapper) HasDownloadDidFinish() bool { +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:"), objc.Ptr(download), objc.Ptr(error)) +} + +func (u_ URLDownloadDelegateObject) HasDownloadDidFinish() bool { return u_.RespondsToSelector(objc.Sel("downloadDidFinish:")) } // Sent when a download object has completed downloading successfully and has written its results to disk. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/foundation/nsurldownloaddelegate/1408884-downloaddidfinish?language=objc -func (u_ URLDownloadDelegateWrapper) DownloadDidFinish(download IURLDownload) { +func (u_ URLDownloadDelegateObject) DownloadDidFinish(download URLDownload) { objc.Call[objc.Void](u_, objc.Sel("downloadDidFinish:"), objc.Ptr(download)) } -func (u_ URLDownloadDelegateWrapper) HasDownloadDidBegin() bool { - return u_.RespondsToSelector(objc.Sel("downloadDidBegin:")) +func (u_ URLDownloadDelegateObject) HasDownloadDidReceiveAuthenticationChallenge() bool { + return u_.RespondsToSelector(objc.Sel("download:didReceiveAuthenticationChallenge:")) } -// Sent immediately after a download object begins a download. [Full Topic] +// 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/1409618-downloaddidbegin?language=objc -func (u_ URLDownloadDelegateWrapper) DownloadDidBegin(download IURLDownload) { - objc.Call[objc.Void](u_, objc.Sel("downloadDidBegin:"), objc.Ptr(download)) +// [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:"), objc.Ptr(download), objc.Ptr(challenge)) } -func (u_ URLDownloadDelegateWrapper) HasDownloadShouldUseCredentialStorage() bool { - return u_.RespondsToSelector(objc.Sel("downloadShouldUseCredentialStorage:")) +func (u_ URLDownloadDelegateObject) HasDownloadWillResumeWithResponseFromByte() bool { + return u_.RespondsToSelector(objc.Sel("download:willResumeWithResponse:fromByte:")) } -// Sent to determine whether the URL loader should consult the credential storage to authenticate the download. [Full Topic] +// Sent when a download object has received a response from the server after attempting to resume a download. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsurldownloaddelegate/1416506-downloadshouldusecredentialstora?language=objc -func (u_ URLDownloadDelegateWrapper) DownloadShouldUseCredentialStorage(download IURLDownload) bool { - rv := objc.Call[bool](u_, objc.Sel("downloadShouldUseCredentialStorage:"), objc.Ptr(download)) - return rv +// [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:"), objc.Ptr(download), objc.Ptr(response), startingByte) +} + +func (u_ URLDownloadDelegateObject) HasDownloadDidCreateDestination() bool { + return u_.RespondsToSelector(objc.Sel("download:didCreateDestination:")) +} + +// Sent when the destination file is created. [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:"), objc.Ptr(download), path) } diff --git a/macos/foundation/url_handle.gen.go b/macos/foundation/url_handle.gen.go index 08c357a6..d5f77f23 100644 --- a/macos/foundation/url_handle.gen.go +++ b/macos/foundation/url_handle.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package foundation @@ -38,10 +38,6 @@ func (uc _URLHandleClass) Alloc() URLHandle { return rv } -func URLHandle_Alloc() URLHandle { - return URLHandleClass.Alloc() -} - func (uc _URLHandleClass) New() URLHandle { rv := objc.Call[URLHandle](uc, objc.Sel("new")) rv.Autorelease() diff --git a/macos/foundation/url_handle_client.gen.go b/macos/foundation/url_handle_client_protocol.gen.go similarity index 54% rename from macos/foundation/url_handle_client.gen.go rename to macos/foundation/url_handle_client_protocol.gen.go index e1695ebf..1d45d81f 100644 --- a/macos/foundation/url_handle_client.gen.go +++ b/macos/foundation/url_handle_client_protocol.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package foundation @@ -12,7 +12,10 @@ import ( type PURLHandleClient interface { } -// A concrete type wrapper for the [PURLHandleClient] protocol. -type URLHandleClientWrapper struct { +// ensure impl type implements protocol interface +var _ PURLHandleClient = (*URLHandleClientObject)(nil) + +// A concrete type for the [PURLHandleClient] protocol. +type URLHandleClientObject struct { objc.Object } diff --git a/macos/foundation/url_protection_space.gen.go b/macos/foundation/url_protection_space.gen.go index 270b880b..91f36009 100644 --- a/macos/foundation/url_protection_space.gen.go +++ b/macos/foundation/url_protection_space.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package foundation @@ -18,15 +18,15 @@ type _URLProtectionSpaceClass struct { // An interface definition for the [URLProtectionSpace] class. type IURLProtectionSpace interface { objc.IObject - ProxyType() string - Host() string - Realm() string IsProxy() bool - Port() int + ProxyType() string Protocol() string + Realm() string DistinguishedNames() [][]byte - AuthenticationMethod() string + Host() string ReceivesCredentialSecurely() bool + Port() int + AuthenticationMethod() string } // 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) 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 } -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 } @@ -75,10 +75,6 @@ func (uc _URLProtectionSpaceClass) Alloc() URLProtectionSpace { return rv } -func URLProtectionSpace_Alloc() URLProtectionSpace { - return URLProtectionSpaceClass.Alloc() -} - func (uc _URLProtectionSpaceClass) New() URLProtectionSpace { rv := objc.Call[URLProtectionSpace](uc, objc.Sel("new")) rv.Autorelease() @@ -94,6 +90,14 @@ 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 @@ -102,11 +106,11 @@ func (u_ URLProtectionSpace) ProxyType() string { return rv } -// The receiver’s host. [Full Topic] +// The receiver’s protocol. [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/1411191-protocol?language=objc +func (u_ URLProtectionSpace) Protocol() string { + rv := objc.Call[string](u_, objc.Sel("protocol")) return rv } @@ -118,35 +122,35 @@ func (u_ URLProtectionSpace) Realm() string { return rv } -// A Boolean value that indicates whether the receiver represents a proxy server. [Full Topic] +// The acceptable certificate-issuing authorities for client certificate authentication. [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")) +// [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 } -// The receiver’s port. [Full Topic] +// The receiver’s host. [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/1418205-host?language=objc +func (u_ URLProtectionSpace) Host() string { + rv := objc.Call[string](u_, objc.Sel("host")) return rv } -// The receiver’s protocol. [Full Topic] +// 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/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/1415176-receivescredentialsecurely?language=objc +func (u_ URLProtectionSpace) ReceivesCredentialSecurely() bool { + rv := objc.Call[bool](u_, objc.Sel("receivesCredentialSecurely")) return rv } -// The acceptable certificate-issuing authorities for client certificate authentication. [Full Topic] +// The receiver’s port. [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/1408716-port?language=objc +func (u_ URLProtectionSpace) Port() int { + rv := objc.Call[int](u_, objc.Sel("port")) return rv } @@ -157,11 +161,3 @@ 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 1d464c2e..8efde62d 100644 --- a/macos/foundation/url_protocol.gen.go +++ b/macos/foundation/url_protocol.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package foundation @@ -21,9 +21,9 @@ type IURLProtocol interface { StopLoading() StartLoading() Request() URLRequest - CachedResponse() CachedURLResponse Task() URLSessionTask - Client() URLProtocolClientWrapper + CachedResponse() CachedURLResponse + Client() URLProtocolClientObject } // An abstract class that handles the loading of protocol-specific URL data. [Full Topic] @@ -74,10 +74,6 @@ func (uc _URLProtocolClass) Alloc() URLProtocol { return rv } -func URLProtocol_Alloc() URLProtocol { - return URLProtocolClass.Alloc() -} - func (uc _URLProtocolClass) New() URLProtocol { rv := objc.Call[URLProtocol](uc, objc.Sel("new")) rv.Autorelease() @@ -93,56 +89,40 @@ func (u_ URLProtocol) Init() URLProtocol { return rv } -// Stops protocol-specific loading of the request. [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")) -} - -// Fetches the property associated with the specified key in the specified 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/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, objc.Ptr(request)) +// [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:"), objc.Ptr(protocolClass)) 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) -} - -// Returns a canonical version of the specified 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/1408650-canonicalrequestforrequest?language=objc -func (uc _URLProtocolClass) CanonicalRequestForRequest(request IURLRequest) URLRequest { - rv := objc.Call[URLRequest](uc, objc.Sel("canonicalRequestForRequest:"), objc.Ptr(request)) - return rv +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsurlprotocol/1407208-registerclass?language=objc +func URLProtocol_RegisterClass(protocolClass objc.IClass) bool { + return URLProtocolClass.RegisterClass(protocolClass) } -// 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 URLProtocol_CanonicalRequestForRequest(request IURLRequest) URLRequest { - return URLProtocolClass.CanonicalRequestForRequest(request) +// [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, objc.Ptr(request)) } -// Attempts to register a subclass of NSURLProtocol, making it visible to the URL loading system. [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/1407208-registerclass?language=objc -func (uc _URLProtocolClass) RegisterClass(protocolClass objc.IClass) bool { - rv := objc.Call[bool](uc, objc.Sel("registerClass:"), objc.Ptr(protocolClass)) - return rv +// [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) } -// 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 URLProtocol_RegisterClass(protocolClass objc.IClass) bool { - return URLProtocolClass.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")) } // Determines whether the protocol subclass can handle the specified task. [Full Topic] @@ -160,11 +140,33 @@ func URLProtocol_CanInitWithTask(task IURLSessionTask) bool { return URLProtocolClass.CanInitWithTask(task) } -// Starts protocol-specific loading of the 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/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/1410008-requestiscacheequivalent?language=objc +func (uc _URLProtocolClass) RequestIsCacheEquivalentToRequest(a IURLRequest, b IURLRequest) bool { + rv := objc.Call[bool](uc, objc.Sel("requestIsCacheEquivalent:toRequest:"), objc.Ptr(a), objc.Ptr(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, objc.Ptr(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) } // Unregisters the specified subclass of NSURLProtocol. [Full Topic] @@ -181,6 +183,21 @@ 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, objc.Ptr(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 @@ -196,47 +213,26 @@ func URLProtocol_CanInitWithRequest(request IURLRequest) bool { return URLProtocolClass.CanInitWithRequest(request) } -// Sets the property associated with the specified key in 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, objc.Ptr(request)) -} - -// Sets 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/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/1408989-startloading?language=objc +func (u_ URLProtocol) StartLoading() { + objc.Call[objc.Void](u_, objc.Sel("startLoading")) } -// A Boolean value indicating whether two requests are equivalent for cache purposes. [Full Topic] +// Returns a canonical version of the specified request. [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:"), objc.Ptr(a), objc.Ptr(b)) +// [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:"), objc.Ptr(request)) 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, objc.Ptr(request)) -} - -// Removes 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/1407740-removepropertyforkey?language=objc -func URLProtocol_RemovePropertyForKeyInRequest(key string, request IMutableURLRequest) { - URLProtocolClass.RemovePropertyForKeyInRequest(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) } // The protocol’s request. [Full Topic] @@ -247,14 +243,6 @@ func (u_ URLProtocol) Request() URLRequest { return rv } -// The protocol’s cached response. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsurlprotocol/1418409-cachedresponse?language=objc -func (u_ URLProtocol) CachedResponse() CachedURLResponse { - rv := objc.Call[CachedURLResponse](u_, objc.Sel("cachedResponse")) - return rv -} - // The protocol’s task. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/foundation/nsurlprotocol/1407649-task?language=objc @@ -263,10 +251,18 @@ func (u_ URLProtocol) Task() URLSessionTask { return rv } +// The protocol’s cached response. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsurlprotocol/1418409-cachedresponse?language=objc +func (u_ URLProtocol) CachedResponse() CachedURLResponse { + rv := objc.Call[CachedURLResponse](u_, objc.Sel("cachedResponse")) + 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 -func (u_ URLProtocol) Client() URLProtocolClientWrapper { - rv := objc.Call[URLProtocolClientWrapper](u_, objc.Sel("client")) +func (u_ URLProtocol) Client() URLProtocolClientObject { + rv := objc.Call[URLProtocolClientObject](u_, objc.Sel("client")) return rv } diff --git a/macos/foundation/url_protocol_client.gen.go b/macos/foundation/url_protocol_client.gen.go deleted file mode 100644 index ee2aa08c..00000000 --- a/macos/foundation/url_protocol_client.gen.go +++ /dev/null @@ -1,47 +0,0 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY - -package foundation - -import ( - "github.com/progrium/macdriver/objc" -) - -// The interface used by NSURLProtocol subclasses to communicate with the URL Loading System. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsurlprotocolclient?language=objc -type PURLProtocolClient interface { - // optional - URLProtocolDidFailWithError(protocol URLProtocol, error Error) - HasURLProtocolDidFailWithError() bool - - // optional - URLProtocolDidFinishLoading(protocol URLProtocol) - HasURLProtocolDidFinishLoading() bool -} - -// A concrete type wrapper for the [PURLProtocolClient] protocol. -type URLProtocolClientWrapper struct { - objc.Object -} - -func (u_ URLProtocolClientWrapper) HasURLProtocolDidFailWithError() bool { - return u_.RespondsToSelector(objc.Sel("URLProtocol:didFailWithError:")) -} - -// Tells the client that the load request failed due to an error. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsurlprotocolclient/1413131-urlprotocol?language=objc -func (u_ URLProtocolClientWrapper) URLProtocolDidFailWithError(protocol IURLProtocol, error IError) { - objc.Call[objc.Void](u_, objc.Sel("URLProtocol:didFailWithError:"), objc.Ptr(protocol), objc.Ptr(error)) -} - -func (u_ URLProtocolClientWrapper) HasURLProtocolDidFinishLoading() bool { - return u_.RespondsToSelector(objc.Sel("URLProtocolDidFinishLoading:")) -} - -// Tells the client that the protocol implementation has finished loading. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsurlprotocolclient/1411543-urlprotocoldidfinishloading?language=objc -func (u_ URLProtocolClientWrapper) URLProtocolDidFinishLoading(protocol IURLProtocol) { - objc.Call[objc.Void](u_, objc.Sel("URLProtocolDidFinishLoading:"), objc.Ptr(protocol)) -} diff --git a/macos/foundation/url_protocol_client_protocol.gen.go b/macos/foundation/url_protocol_client_protocol.gen.go new file mode 100644 index 00000000..0f3fffd0 --- /dev/null +++ b/macos/foundation/url_protocol_client_protocol.gen.go @@ -0,0 +1,140 @@ +// Code generated by DarwinKit. DO NOT EDIT. + +package foundation + +import ( + "github.com/progrium/macdriver/objc" +) + +// The interface used by NSURLProtocol subclasses to communicate with the URL Loading System. [Full Topic] +// +// [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 +var _ PURLProtocolClient = (*URLProtocolClientObject)(nil) + +// A concrete type for the [PURLProtocolClient] protocol. +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:"), objc.Ptr(protocol), objc.Ptr(cachedResponse)) +} + +func (u_ URLProtocolClientObject) HasURLProtocolDidFailWithError() bool { + return u_.RespondsToSelector(objc.Sel("URLProtocol:didFailWithError:")) +} + +// Tells the client that the load request failed due to an error. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsurlprotocolclient/1413131-urlprotocol?language=objc +func (u_ URLProtocolClientObject) URLProtocolDidFailWithError(protocol URLProtocol, error Error) { + objc.Call[objc.Void](u_, objc.Sel("URLProtocol:didFailWithError:"), objc.Ptr(protocol), objc.Ptr(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:"), objc.Ptr(protocol), objc.Ptr(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:"), objc.Ptr(protocol), objc.Ptr(challenge)) +} + +func (u_ URLProtocolClientObject) HasURLProtocolDidFinishLoading() bool { + return u_.RespondsToSelector(objc.Sel("URLProtocolDidFinishLoading:")) +} + +// Tells the client that the protocol implementation has finished loading. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsurlprotocolclient/1411543-urlprotocoldidfinishloading?language=objc +func (u_ URLProtocolClientObject) URLProtocolDidFinishLoading(protocol URLProtocol) { + objc.Call[objc.Void](u_, objc.Sel("URLProtocolDidFinishLoading:"), objc.Ptr(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:"), objc.Ptr(protocol), objc.Ptr(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:"), objc.Ptr(protocol), objc.Ptr(request), objc.Ptr(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:"), objc.Ptr(protocol), data) +} diff --git a/macos/foundation/url_query_item.gen.go b/macos/foundation/url_query_item.gen.go index e327423e..61904730 100644 --- a/macos/foundation/url_query_item.gen.go +++ b/macos/foundation/url_query_item.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package foundation @@ -18,8 +18,8 @@ type _URLQueryItemClass struct { // An interface definition for the [URLQueryItem] class. type IURLQueryItem interface { objc.IObject - Value() string Name() string + Value() string } // An object representing a single name/value pair for an item in the query portion of a URL. [Full Topic] @@ -66,10 +66,6 @@ func (uc _URLQueryItemClass) Alloc() URLQueryItem { return rv } -func URLQueryItem_Alloc() URLQueryItem { - return URLQueryItemClass.Alloc() -} - func (uc _URLQueryItemClass) New() URLQueryItem { rv := objc.Call[URLQueryItem](uc, objc.Sel("new")) rv.Autorelease() @@ -85,14 +81,6 @@ func (u_ URLQueryItem) Init() URLQueryItem { return rv } -// The value for the query item. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsurlqueryitem/1412041-value?language=objc -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 @@ -100,3 +88,11 @@ 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 +func (u_ URLQueryItem) Value() string { + rv := objc.Call[string](u_, objc.Sel("value")) + return rv +} diff --git a/macos/foundation/url_request.gen.go b/macos/foundation/url_request.gen.go index 572dfed3..0cf5a8a4 100644 --- a/macos/foundation/url_request.gen.go +++ b/macos/foundation/url_request.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package foundation @@ -19,22 +19,22 @@ type _URLRequestClass struct { type IURLRequest interface { objc.IObject ValueForHTTPHeaderField(field string) string - AllHTTPHeaderFields() map[string]string - MainDocumentURL() URL - HTTPShouldHandleCookies() bool - HTTPMethod() string - AllowsCellularAccess() bool - URL() URL - HTTPBodyStream() InputStream AssumesHTTP3Capable() bool + HTTPBodyStream() InputStream + URL() URL + AllHTTPHeaderFields() map[string]string AllowsExpensiveNetworkAccess() bool + NetworkServiceType() URLRequestNetworkServiceType + HTTPShouldUsePipelining() bool + HTTPMethod() string AllowsConstrainedNetworkAccess() bool - TimeoutInterval() TimeInterval + MainDocumentURL() URL + CachePolicy() URLRequestCachePolicy Attribution() URLRequestAttribution + HTTPShouldHandleCookies() bool + TimeoutInterval() TimeInterval HTTPBody() []byte - CachePolicy() URLRequestCachePolicy - NetworkServiceType() URLRequestNetworkServiceType - HTTPShouldUsePipelining() bool + AllowsCellularAccess() bool } // A URL load request that is independent of protocol or URL scheme. [Full Topic] @@ -50,6 +50,18 @@ 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:"), objc.Ptr(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:"), objc.Ptr(URL)) return rv @@ -76,13 +88,23 @@ func URLRequest_RequestWithURL(URL IURL) URLRequest { return URLRequestClass.RequestWithURL(URL) } -func (uc _URLRequestClass) Alloc() URLRequest { - rv := objc.Call[URLRequest](uc, objc.Sel("alloc")) +func (u_ URLRequest) InitWithURLCachePolicyTimeoutInterval(URL IURL, cachePolicy URLRequestCachePolicy, timeoutInterval TimeInterval) URLRequest { + rv := objc.Call[URLRequest](u_, objc.Sel("initWithURL:cachePolicy:timeoutInterval:"), objc.Ptr(URL), cachePolicy, timeoutInterval) return rv } -func URLRequest_Alloc() URLRequest { - return URLRequestClass.Alloc() +// 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 } func (uc _URLRequestClass) New() URLRequest { @@ -108,75 +130,82 @@ func (u_ URLRequest) ValueForHTTPHeaderField(field string) string { return rv } -// A dictionary containing all of the HTTP header fields for a request. [Full Topic] +// [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/3735880-assumeshttp3capable?language=objc +func (u_ URLRequest) AssumesHTTP3Capable() bool { + rv := objc.Call[bool](u_, objc.Sel("assumesHTTP3Capable")) return rv } -// The main document URL associated with the request. [Full Topic] +// The request body as an input stream. [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/1407341-httpbodystream?language=objc +func (u_ URLRequest) HTTPBodyStream() InputStream { + rv := objc.Call[InputStream](u_, objc.Sel("HTTPBodyStream")) return rv } -// A Boolean value that indicates whether the default cookie handling will be used for this request. [Full Topic] +// The URL being requested. [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/1408996-url?language=objc +func (u_ URLRequest) URL() URL { + rv := objc.Call[URL](u_, objc.Sel("URL")) return rv } -// The HTTP request method. [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/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/1418477-allhttpheaderfields?language=objc +func (u_ URLRequest) AllHTTPHeaderFields() map[string]string { + rv := objc.Call[map[string]string](u_, objc.Sel("allHTTPHeaderFields")) 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 connections may use a network interface that the system considers expensive. [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/3325679-allowsexpensivenetworkaccess?language=objc +func (u_ URLRequest) AllowsExpensiveNetworkAccess() bool { + rv := objc.Call[bool](u_, objc.Sel("allowsExpensiveNetworkAccess")) return rv } -// The URL being requested. [Full Topic] +// The network service type of the 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/1418333-networkservicetype?language=objc +func (u_ URLRequest) NetworkServiceType() URLRequestNetworkServiceType { + rv := objc.Call[URLRequestNetworkServiceType](u_, objc.Sel("networkServiceType")) return rv } -// The request body as an input stream. [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/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/1409170-httpshouldusepipelining?language=objc +func (u_ URLRequest) HTTPShouldUsePipelining() bool { + rv := objc.Call[bool](u_, objc.Sel("HTTPShouldUsePipelining")) return rv } -// [Full Topic] +// A Boolean value indicating whether the NSURLRequest implements the NSSecureCoding protocol. [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/1416510-supportssecurecoding?language=objc +func (uc _URLRequestClass) SupportsSecureCoding() bool { + rv := objc.Call[bool](uc, objc.Sel("supportsSecureCoding")) return rv } -// A Boolean value that indicates whether connections may use a network interface that the system considers expensive. [Full Topic] +// A Boolean value indicating whether the NSURLRequest implements the NSSecureCoding protocol. [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/1416510-supportssecurecoding?language=objc +func URLRequest_SupportsSecureCoding() bool { + return URLRequestClass.SupportsSecureCoding() +} + +// The HTTP request method. [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")) return rv } @@ -188,29 +217,22 @@ func (u_ URLRequest) AllowsConstrainedNetworkAccess() bool { return rv } -// The request’s timeout interval, in seconds. [Full Topic] +// The main document URL associated with the request. [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/1414134-maindocumenturl?language=objc +func (u_ URLRequest) MainDocumentURL() URL { + rv := objc.Call[URL](u_, objc.Sel("mainDocumentURL")) return rv } -// A Boolean value indicating whether the NSURLRequest implements the NSSecureCoding protocol. [Full Topic] +// The request’s cache policy. [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/1407944-cachepolicy?language=objc +func (u_ URLRequest) CachePolicy() URLRequestCachePolicy { + rv := objc.Call[URLRequestCachePolicy](u_, objc.Sel("cachePolicy")) 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 @@ -219,34 +241,34 @@ func (u_ URLRequest) Attribution() URLRequestAttribution { return rv } -// The request body. [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/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/1418369-httpshouldhandlecookies?language=objc +func (u_ URLRequest) HTTPShouldHandleCookies() bool { + rv := objc.Call[bool](u_, objc.Sel("HTTPShouldHandleCookies")) return rv } -// The request’s cache policy. [Full Topic] +// The request’s timeout interval, in seconds. [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/1418229-timeoutinterval?language=objc +func (u_ URLRequest) TimeoutInterval() TimeInterval { + rv := objc.Call[TimeInterval](u_, objc.Sel("timeoutInterval")) return rv } -// The network service type of the request. [Full Topic] +// The request body. [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/1411317-httpbody?language=objc +func (u_ URLRequest) HTTPBody() []byte { + rv := objc.Call[[]byte](u_, objc.Sel("HTTPBody")) return rv } -// A Boolean value that indicates whether the request should continue transmitting data before receiving a response from an earlier transmission. [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/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/1412032-allowscellularaccess?language=objc +func (u_ URLRequest) AllowsCellularAccess() bool { + rv := objc.Call[bool](u_, objc.Sel("allowsCellularAccess")) return rv } diff --git a/macos/foundation/url_response.gen.go b/macos/foundation/url_response.gen.go index dc7cfa00..80a4d504 100644 --- a/macos/foundation/url_response.gen.go +++ b/macos/foundation/url_response.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package foundation @@ -19,10 +19,10 @@ type _URLResponseClass struct { type IURLResponse interface { objc.IObject ExpectedContentLength() int64 - MIMEType() string - URL() URL TextEncodingName() string SuggestedFilename() string + MIMEType() string + URL() URL } // The metadata associated with the response to a URL load request, independent of protocol and URL scheme. [Full Topic] @@ -57,10 +57,6 @@ func (uc _URLResponseClass) Alloc() URLResponse { return rv } -func URLResponse_Alloc() URLResponse { - return URLResponseClass.Alloc() -} - func (uc _URLResponseClass) New() URLResponse { rv := objc.Call[URLResponse](uc, objc.Sel("new")) rv.Autorelease() @@ -84,22 +80,6 @@ func (u_ URLResponse) ExpectedContentLength() int64 { return rv } -// The MIME type of the response. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsurlresponse/1411613-mimetype?language=objc -func (u_ URLResponse) MIMEType() string { - rv := objc.Call[string](u_, objc.Sel("MIMEType")) - return rv -} - -// The URL for the response. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsurlresponse/1414219-url?language=objc -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 @@ -115,3 +95,19 @@ 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 +func (u_ URLResponse) MIMEType() string { + rv := objc.Call[string](u_, objc.Sel("MIMEType")) + return rv +} + +// The URL for the response. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsurlresponse/1414219-url?language=objc +func (u_ URLResponse) URL() URL { + rv := objc.Call[URL](u_, objc.Sel("URL")) + return rv +} diff --git a/macos/foundation/url_session.gen.go b/macos/foundation/url_session.gen.go index 342aab1f..882ba816 100644 --- a/macos/foundation/url_session.gen.go +++ b/macos/foundation/url_session.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package foundation @@ -18,27 +18,36 @@ type _URLSessionClass struct { // An interface definition for the [URLSession] class. type IURLSession interface { objc.IObject - ResetWithCompletionHandler(completionHandler func()) - UploadTaskWithRequestFromFile(request IURLRequest, fileURL IURL) URLSessionUploadTask + 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() FlushWithCompletionHandler(completionHandler func()) - WebSocketTaskWithRequest(request IURLRequest) URLSessionWebSocketTask + DataTaskWithURL(url IURL) URLSessionDataTask GetTasksWithCompletionHandler(completionHandler func(dataTasks []URLSessionDataTask, uploadTasks []URLSessionUploadTask, downloadTasks []URLSessionDownloadTask)) - WebSocketTaskWithURL(url IURL) URLSessionWebSocketTask - StreamTaskWithHostNamePort(hostname string, port int) URLSessionStreamTask + 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 UploadTaskWithStreamedRequest(request IURLRequest) URLSessionUploadTask - InvalidateAndCancel() DataTaskWithRequest(request IURLRequest) URLSessionDataTask - DownloadTaskWithURL(url IURL) URLSessionDownloadTask - GetAllTasksWithCompletionHandler(completionHandler func(tasks []URLSessionTask)) - DataTaskWithURL(url IURL) URLSessionDataTask - FinishTasksAndInvalidate() - Delegate() URLSessionDelegateWrapper - Configuration() URLSessionConfiguration + UploadTaskWithRequestFromFileCompletionHandler(request IURLRequest, fileURL IURL, completionHandler func(data []byte, response URLResponse, error Error)) URLSessionUploadTask + Delegate() URLSessionDelegateObject + DelegateQueue() OperationQueue SessionDescription() string SetSessionDescription(value string) - DelegateQueue() OperationQueue + Configuration() URLSessionConfiguration } // An object that coordinates a group of related, network data transfer tasks. [Full Topic] @@ -59,10 +68,6 @@ func (uc _URLSessionClass) Alloc() URLSession { return rv } -func URLSession_Alloc() URLSession { - return URLSessionClass.Alloc() -} - func (uc _URLSessionClass) New() URLSession { rv := objc.Call[URLSession](uc, objc.Sel("new")) rv.Autorelease() @@ -78,21 +83,98 @@ func (u_ URLSession) Init() URLSession { 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] +// Cancels all outstanding tasks and then invalidates the 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/1411538-invalidateandcancel?language=objc +func (u_ URLSession) InvalidateAndCancel() { + objc.Call[objc.Void](u_, objc.Sel("invalidateAndCancel")) } -// Creates a task that performs an HTTP request for uploading the specified file. [Full Topic] +// Creates a session with the specified session configuration, delegate, and operation queue. [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:"), objc.Ptr(request), objc.Ptr(fileURL)) +// [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:"), objc.Ptr(configuration), po1, objc.Ptr(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:"), objc.Ptr(configuration), objc.Ptr(delegateObject), objc.Ptr(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:"), objc.Ptr(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:"), objc.Ptr(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:"), objc.Ptr(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] +// +// [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:"), objc.Ptr(request), completionHandler) + return rv +} + +// 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] +// +// [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:"), objc.Ptr(request), completionHandler) + 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 @@ -100,11 +182,11 @@ func (u_ URLSession) FlushWithCompletionHandler(completionHandler func()) { objc.Call[objc.Void](u_, objc.Sel("flushWithCompletionHandler:"), completionHandler) } -// Creates a WebSocket task for the provided URL request. [Full Topic] +// Creates a task that retrieves the contents of the specified URL. [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:"), objc.Ptr(request)) +// [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:"), objc.Ptr(url)) return rv } @@ -115,19 +197,11 @@ func (u_ URLSession) GetTasksWithCompletionHandler(completionHandler func(dataTa objc.Call[objc.Void](u_, objc.Sel("getTasksWithCompletionHandler:"), completionHandler) } -// Creates a WebSocket task for the provided URL. [Full Topic] +// Creates a task that performs an HTTP request for the specified URL request object and uploads the provided data. [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:"), objc.Ptr(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/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/1409763-uploadtaskwithrequest?language=objc +func (u_ URLSession) UploadTaskWithRequestFromData(request IURLRequest, bodyData []byte) URLSessionUploadTask { + rv := objc.Call[URLSessionUploadTask](u_, objc.Sel("uploadTaskWithRequest:fromData:"), objc.Ptr(request), bodyData) return rv } @@ -147,26 +221,19 @@ func (u_ URLSession) DownloadTaskWithRequest(request IURLRequest) URLSessionDown return rv } -// Creates a task that performs an HTTP request for uploading data based on the specified URL request. [Full Topic] +// 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] // -// [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:"), objc.Ptr(request)) +// [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:"), objc.Ptr(request), bodyData, completionHandler) 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 task that retrieves the contents of a URL based on the specified URL request object. [Full Topic] +// Creates a WebSocket task for the provided URL. [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:"), objc.Ptr(request)) +// [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:"), objc.Ptr(url)) return rv } @@ -185,72 +252,74 @@ func URLSession_SessionWithConfiguration(configuration IURLSessionConfiguration) return URLSessionClass.SessionWithConfiguration(configuration) } -// Creates a download task that retrieves the contents of the specified URL and saves the results to a file. [Full Topic] +// Creates a task that retrieves the contents of the specified URL, then calls a handler upon completion. [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:"), objc.Ptr(url)) +// [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:"), objc.Ptr(url), completionHandler) return rv } -// Asynchronously calls a completion callback with all tasks in a session [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/1411618-getalltaskswithcompletionhandler?language=objc -func (u_ URLSession) GetAllTasksWithCompletionHandler(completionHandler func(tasks []URLSessionTask)) { - objc.Call[objc.Void](u_, objc.Sel("getAllTasksWithCompletionHandler:"), completionHandler) +// [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 the specified URL. [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/1411554-datataskwithurl?language=objc -func (u_ URLSession) DataTaskWithURL(url IURL) URLSessionDataTask { - rv := objc.Call[URLSessionDataTask](u_, objc.Sel("dataTaskWithURL:"), objc.Ptr(url)) +// [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:"), objc.Ptr(request), objc.Ptr(fileURL)) return rv } -// Invalidates the session, allowing any outstanding tasks to finish. [Full Topic] +// Creates a download task to resume a previously canceled or failed download and calls a handler upon completion. [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")) +// [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 } -// The delegate assigned when this object was created. [Full Topic] +// 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/1411530-delegate?language=objc -func (u_ URLSession) Delegate() URLSessionDelegateWrapper { - rv := objc.Call[URLSessionDelegateWrapper](u_, objc.Sel("delegate")) +// [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 } -// A copy of the configuration object for this session. [Full Topic] +// Creates a WebSocket task for the provided URL request. [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")) +// [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:"), objc.Ptr(request)) return rv } -// An app-defined descriptive label for the session. [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/1408277-sessiondescription?language=objc -func (u_ URLSession) SessionDescription() string { - rv := objc.Call[string](u_, objc.Sel("sessionDescription")) +// [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:"), objc.Ptr(request)) return rv } -// An app-defined descriptive label for the session. [Full Topic] +// 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/1408277-sessiondescription?language=objc -func (u_ URLSession) SetSessionDescription(value string) { - objc.Call[objc.Void](u_, objc.Sel("setSessionDescription:"), value) +// [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:"), objc.Ptr(request)) + return rv } -// The operation queue provided when this object was created. [Full Topic] +// Creates a task that performs an HTTP request for uploading the specified file, then calls a handler upon completion. [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")) +// [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:"), objc.Ptr(request), objc.Ptr(fileURL), completionHandler) return rv } @@ -268,3 +337,42 @@ 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 53eeb667..1b81d921 100644 --- a/macos/foundation/url_session_configuration.gen.go +++ b/macos/foundation/url_session_configuration.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package foundation @@ -18,51 +18,51 @@ type _URLSessionConfigurationClass struct { // An interface definition for the [URLSessionConfiguration] class. type IURLSessionConfiguration interface { objc.IObject - SharedContainerIdentifier() string - SetSharedContainerIdentifier(value string) - WaitsForConnectivity() bool - SetWaitsForConnectivity(value bool) - RequestCachePolicy() URLRequestCachePolicy - SetRequestCachePolicy(value URLRequestCachePolicy) - ShouldUseExtendedBackgroundIdleMode() bool - SetShouldUseExtendedBackgroundIdleMode(value bool) - HTTPAdditionalHeaders() Dictionary - SetHTTPAdditionalHeaders(value Dictionary) - AllowsCellularAccess() bool - SetAllowsCellularAccess(value bool) - HTTPCookieStorage() HTTPCookieStorage - SetHTTPCookieStorage(value IHTTPCookieStorage) - HTTPCookieAcceptPolicy() HTTPCookieAcceptPolicy - SetHTTPCookieAcceptPolicy(value HTTPCookieAcceptPolicy) - URLCache() URLCache - SetURLCache(value IURLCache) + URLCredentialStorage() URLCredentialStorage + SetURLCredentialStorage(value IURLCredentialStorage) 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) + 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) + 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) - Identifier() string - TimeoutIntervalForResource() TimeInterval - SetTimeoutIntervalForResource(value TimeInterval) + URLCache() URLCache + SetURLCache(value IURLCache) + HTTPAdditionalHeaders() Dictionary + SetHTTPAdditionalHeaders(value Dictionary) + SharedContainerIdentifier() string + SetSharedContainerIdentifier(value string) + HTTPShouldSetCookies() bool + SetHTTPShouldSetCookies(value bool) + IsDiscretionary() bool + SetDiscretionary(value bool) } // A configuration object that defines behavior and policies for a URL session. [Full Topic] @@ -83,10 +83,6 @@ func (uc _URLSessionConfigurationClass) Alloc() URLSessionConfiguration { return rv } -func URLSessionConfiguration_Alloc() URLSessionConfiguration { - return URLSessionConfigurationClass.Alloc() -} - func (uc _URLSessionConfigurationClass) New() URLSessionConfiguration { rv := objc.Call[URLSessionConfiguration](uc, objc.Sel("new")) rv.Autorelease() @@ -117,19 +113,49 @@ func URLSessionConfiguration_BackgroundSessionConfigurationWithIdentifier(identi return URLSessionConfigurationClass.BackgroundSessionConfigurationWithIdentifier(identifier) } -// The identifier for the shared container into which files in background URL sessions should be downloaded. [Full Topic] +// A credential store that provides credentials for authentication. [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/1410947-urlcredentialstorage?language=objc +func (u_ URLSessionConfiguration) URLCredentialStorage() URLCredentialStorage { + rv := objc.Call[URLCredentialStorage](u_, objc.Sel("URLCredentialStorage")) return rv } -// The identifier for the shared container into which files in background URL sessions should be downloaded. [Full Topic] +// A credential store that provides credentials for authentication. [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/1410947-urlcredentialstorage?language=objc +func (u_ URLSessionConfiguration) SetURLCredentialStorage(value IURLCredentialStorage) { + objc.Call[objc.Void](u_, objc.Sel("setURLCredentialStorage:"), objc.Ptr(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] +// +// [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 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/3235752-allowsexpensivenetworkaccess?language=objc +func (u_ URLSessionConfiguration) SetAllowsExpensiveNetworkAccess(value bool) { + objc.Call[objc.Void](u_, objc.Sel("setAllowsExpensiveNetworkAccess:"), value) } // A Boolean value that indicates whether the session should wait for connectivity to become available, or fail immediately. [Full Topic] @@ -147,21 +173,6 @@ 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 @@ -177,169 +188,177 @@ func (u_ URLSessionConfiguration) SetShouldUseExtendedBackgroundIdleMode(value b objc.Call[objc.Void](u_, objc.Sel("setShouldUseExtendedBackgroundIdleMode:"), value) } -// A dictionary of additional headers to send with requests. [Full Topic] +// The background session identifier of the configuration object. [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/1408987-identifier?language=objc +func (u_ URLSessionConfiguration) Identifier() string { + rv := objc.Call[string](u_, objc.Sel("identifier")) return rv } -// A dictionary of additional headers to send with requests. [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/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/1411050-protocolclasses?language=objc +func (u_ URLSessionConfiguration) ProtocolClasses() []objc.Class { + rv := objc.Call[[]objc.Class](u_, objc.Sel("protocolClasses")) + return rv } -// A Boolean value that determines whether connections should be made over a cellular network. [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/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/1411050-protocolclasses?language=objc +func (u_ URLSessionConfiguration) SetProtocolClasses(value []objc.IClass) { + objc.Call[objc.Void](u_, objc.Sel("setProtocolClasses:"), 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 Boolean value that determines whether connections should be made over a cellular network. [Full Topic] +// A predefined constant that determines when to return a response from the cache. [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/1411655-requestcachepolicy?language=objc +func (u_ URLSessionConfiguration) SetRequestCachePolicy(value URLRequestCachePolicy) { + objc.Call[objc.Void](u_, objc.Sel("setRequestCachePolicy:"), value) } -// A default session configuration object. [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/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/1407597-httpmaximumconnectionsperhost?language=objc +func (u_ URLSessionConfiguration) HTTPMaximumConnectionsPerHost() int { + rv := objc.Call[int](u_, objc.Sel("HTTPMaximumConnectionsPerHost")) return rv } -// A default session configuration object. [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/1411560-defaultsessionconfiguration?language=objc -func URLSessionConfiguration_DefaultSessionConfiguration() URLSessionConfiguration { - return URLSessionConfigurationClass.DefaultSessionConfiguration() +// [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) } -// 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:"), objc.Ptr(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 policy constant that determines when cookies should be accepted. [Full Topic] +// 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/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/1408153-timeoutintervalforresource?language=objc +func (u_ URLSessionConfiguration) TimeoutIntervalForResource() TimeInterval { + rv := objc.Call[TimeInterval](u_, objc.Sel("timeoutIntervalForResource")) return rv } -// A policy constant that determines when cookies should be accepted. [Full Topic] +// 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/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/1408153-timeoutintervalforresource?language=objc +func (u_ URLSessionConfiguration) SetTimeoutIntervalForResource(value TimeInterval) { + objc.Call[objc.Void](u_, objc.Sel("setTimeoutIntervalForResource:"), value) } -// The URL cache for providing cached responses to requests within the session. [Full Topic] +// The type of network service for all tasks within network sessions to enable Cellular Network Slicing. [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/1411606-networkservicetype?language=objc +func (u_ URLSessionConfiguration) NetworkServiceType() URLRequestNetworkServiceType { + rv := objc.Call[URLRequestNetworkServiceType](u_, objc.Sel("networkServiceType")) return rv } -// The URL cache for providing cached responses to requests within the session. [Full Topic] +// The type of network service for all tasks within network sessions to enable Cellular Network Slicing. [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:"), objc.Ptr(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) } -// The timeout interval to use when waiting for additional data. [Full Topic] +// A default session configuration object. [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")) +// [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 timeout interval to use when waiting for additional data. [Full Topic] +// A default session configuration object. [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) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsurlsessionconfiguration/1411560-defaultsessionconfiguration?language=objc +func URLSessionConfiguration_DefaultSessionConfiguration() URLSessionConfiguration { + return URLSessionConfigurationClass.DefaultSessionConfiguration() } -// 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 connections should be made over a cellular network. [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/1409406-allowscellularaccess?language=objc +func (u_ URLSessionConfiguration) AllowsCellularAccess() bool { + rv := objc.Call[bool](u_, objc.Sel("allowsCellularAccess")) 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 connections should be made over a cellular network. [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/1409406-allowscellularaccess?language=objc +func (u_ URLSessionConfiguration) SetAllowsCellularAccess(value bool) { + objc.Call[objc.Void](u_, objc.Sel("setAllowsCellularAccess:"), value) } -// A session configuration that uses no persistent storage for caches, cookies, or credentials. [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/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/1411657-httpshouldusepipelining?language=objc +func (u_ URLSessionConfiguration) HTTPShouldUsePipelining() bool { + rv := objc.Call[bool](u_, objc.Sel("HTTPShouldUsePipelining")) return rv } -// A session configuration that uses no persistent storage for caches, cookies, or credentials. [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/1410529-ephemeralsessionconfiguration?language=objc -func URLSessionConfiguration_EphemeralSessionConfiguration() URLSessionConfiguration { - return URLSessionConfigurationClass.EphemeralSessionConfiguration() +// [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 Boolean value that indicates whether connections may use a network interface that the system considers expensive. [Full Topic] +// A policy constant that determines when cookies should be accepted. [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/1408933-httpcookieacceptpolicy?language=objc +func (u_ URLSessionConfiguration) HTTPCookieAcceptPolicy() HTTPCookieAcceptPolicy { + rv := objc.Call[HTTPCookieAcceptPolicy](u_, objc.Sel("HTTPCookieAcceptPolicy")) return rv } -// A Boolean value that indicates whether connections may use a network interface that the system considers expensive. [Full Topic] +// A policy constant that determines when cookies should be accepted. [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/1408933-httpcookieacceptpolicy?language=objc +func (u_ URLSessionConfiguration) SetHTTPCookieAcceptPolicy(value HTTPCookieAcceptPolicy) { + objc.Call[objc.Void](u_, objc.Sel("setHTTPCookieAcceptPolicy:"), value) } -// 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:"), objc.Ptr(value)) } // A dictionary containing information about the proxy to use within this session. [Full Topic] @@ -357,130 +376,107 @@ func (u_ URLSessionConfiguration) SetConnectionProxyDictionary(value Dictionary) objc.Call[objc.Void](u_, objc.Sel("setConnectionProxyDictionary:"), value) } -// 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/1411589-httpshouldsetcookies?language=objc -func (u_ URLSessionConfiguration) HTTPShouldSetCookies() bool { - rv := objc.Call[bool](u_, objc.Sel("HTTPShouldSetCookies")) - return rv -} - -// 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/1411589-httpshouldsetcookies?language=objc -func (u_ URLSessionConfiguration) SetHTTPShouldSetCookies(value bool) { - objc.Call[objc.Void](u_, objc.Sel("setHTTPShouldSetCookies:"), value) -} - -// The maximum number of simultaneous connections to make to a given host. [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/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/1617174-sessionsendslaunchevents?language=objc +func (u_ URLSessionConfiguration) SessionSendsLaunchEvents() bool { + rv := objc.Call[bool](u_, objc.Sel("sessionSendsLaunchEvents")) return rv } -// The maximum number of simultaneous connections to make to a given host. [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/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/1617174-sessionsendslaunchevents?language=objc +func (u_ URLSessionConfiguration) SetSessionSendsLaunchEvents(value bool) { + objc.Call[objc.Void](u_, objc.Sel("setSessionSendsLaunchEvents:"), value) } -// A credential store that provides credentials for authentication. [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/1410947-urlcredentialstorage?language=objc -func (u_ URLSessionConfiguration) URLCredentialStorage() URLCredentialStorage { - rv := objc.Call[URLCredentialStorage](u_, objc.Sel("URLCredentialStorage")) +// [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 } -// A credential store that provides credentials for authentication. [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/1410947-urlcredentialstorage?language=objc -func (u_ URLSessionConfiguration) SetURLCredentialStorage(value IURLCredentialStorage) { - objc.Call[objc.Void](u_, objc.Sel("setURLCredentialStorage:"), objc.Ptr(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:"), objc.Ptr(value)) } -// 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) } -// The type of network service for all tasks within sessions based on this configuration. [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/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/1409450-sharedcontaineridentifier?language=objc +func (u_ URLSessionConfiguration) SharedContainerIdentifier() string { + rv := objc.Call[string](u_, objc.Sel("sharedContainerIdentifier")) return rv } -// The type of network service for all tasks within sessions based on this configuration. [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/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/1409450-sharedcontaineridentifier?language=objc +func (u_ URLSessionConfiguration) SetSharedContainerIdentifier(value string) { + objc.Call[objc.Void](u_, objc.Sel("setSharedContainerIdentifier:"), value) } -// A Boolean value that determines whether the session should use HTTP pipelining. [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/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/1411589-httpshouldsetcookies?language=objc +func (u_ URLSessionConfiguration) HTTPShouldSetCookies() bool { + rv := objc.Call[bool](u_, objc.Sel("HTTPShouldSetCookies")) return rv } -// A Boolean value that determines whether the session should use HTTP pipelining. [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/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/1411589-httpshouldsetcookies?language=objc +func (u_ URLSessionConfiguration) SetHTTPShouldSetCookies(value bool) { + objc.Call[objc.Void](u_, objc.Sel("setHTTPShouldSetCookies:"), 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 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/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/1411552-discretionary?language=objc +func (u_ URLSessionConfiguration) IsDiscretionary() bool { + rv := objc.Call[bool](u_, objc.Sel("isDiscretionary")) return rv } -// 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/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] +// 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/1408987-identifier?language=objc -func (u_ URLSessionConfiguration) Identifier() string { - rv := objc.Call[string](u_, objc.Sel("identifier")) - return rv +// [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) } -// The maximum amount of time that a resource request should be allowed to take. [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/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/1410529-ephemeralsessionconfiguration?language=objc +func (uc _URLSessionConfigurationClass) EphemeralSessionConfiguration() URLSessionConfiguration { + rv := objc.Call[URLSessionConfiguration](uc, objc.Sel("ephemeralSessionConfiguration")) return rv } -// The maximum amount of time that a resource request should be allowed to take. [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/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/1410529-ephemeralsessionconfiguration?language=objc +func URLSessionConfiguration_EphemeralSessionConfiguration() URLSessionConfiguration { + return URLSessionConfigurationClass.EphemeralSessionConfiguration() } diff --git a/macos/foundation/url_session_data_delegate.gen.go b/macos/foundation/url_session_data_delegate.gen.go index e59b14d0..fd14f968 100644 --- a/macos/foundation/url_session_data_delegate.gen.go +++ b/macos/foundation/url_session_data_delegate.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package foundation @@ -10,16 +10,53 @@ 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 { - _URLSessionDataTaskDidReceiveData func(session URLSession, dataTask URLSessionDataTask, data []byte) + _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 +} + +// 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 } @@ -37,19 +74,117 @@ 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 +} -// A concrete type wrapper for the [PURLSessionDataDelegate] protocol. -type URLSessionDataDelegateWrapper struct { +// 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) + +// A concrete type for the [PURLSessionDataDelegate] protocol. +type URLSessionDataDelegateObject struct { objc.Object } -func (u_ URLSessionDataDelegateWrapper) HasURLSessionDataTaskDidReceiveData() bool { +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:"), objc.Ptr(session), objc.Ptr(dataTask), objc.Ptr(proposedResponse), completionHandler) +} + +func (u_ URLSessionDataDelegateObject) HasURLSessionDataTaskDidReceiveData() bool { return u_.RespondsToSelector(objc.Sel("URLSession:dataTask:didReceiveData:")) } // Tells the delegate that the data task has received some of the expected data. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/foundation/nsurlsessiondatadelegate/1411528-urlsession?language=objc -func (u_ URLSessionDataDelegateWrapper) URLSessionDataTaskDidReceiveData(session IURLSession, dataTask IURLSessionDataTask, data []byte) { +func (u_ URLSessionDataDelegateObject) URLSessionDataTaskDidReceiveData(session URLSession, dataTask URLSessionDataTask, data []byte) { objc.Call[objc.Void](u_, objc.Sel("URLSession:dataTask:didReceiveData:"), objc.Ptr(session), objc.Ptr(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:"), objc.Ptr(session), objc.Ptr(dataTask), objc.Ptr(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:"), objc.Ptr(session), objc.Ptr(dataTask), objc.Ptr(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:"), objc.Ptr(session), objc.Ptr(dataTask), objc.Ptr(downloadTask)) +} diff --git a/macos/foundation/url_session_data_task.gen.go b/macos/foundation/url_session_data_task.gen.go index e6e8465e..e3688496 100644 --- a/macos/foundation/url_session_data_task.gen.go +++ b/macos/foundation/url_session_data_task.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package foundation @@ -38,10 +38,6 @@ func (uc _URLSessionDataTaskClass) Alloc() URLSessionDataTask { return rv } -func URLSessionDataTask_Alloc() URLSessionDataTask { - return URLSessionDataTaskClass.Alloc() -} - func (uc _URLSessionDataTaskClass) New() URLSessionDataTask { rv := objc.Call[URLSessionDataTask](uc, objc.Sel("new")) rv.Autorelease() diff --git a/macos/foundation/url_session_delegate.gen.go b/macos/foundation/url_session_delegate.gen.go index d22db140..cd98e7d3 100644 --- a/macos/foundation/url_session_delegate.gen.go +++ b/macos/foundation/url_session_delegate.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package foundation @@ -10,21 +10,60 @@ import ( // // [Full Topic]: https://developer.apple.com/documentation/foundation/nsurlsessiondelegate?language=objc type PURLSessionDelegate interface { - // optional - URLSessionDidFinishEventsForBackgroundURLSession(session URLSession) - HasURLSessionDidFinishEventsForBackgroundURLSession() bool - // 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 } // A delegate implementation builder for the [PURLSessionDelegate] protocol. type URLSessionDelegate struct { - _URLSessionDidFinishEventsForBackgroundURLSession func(session URLSession) _URLSessionDidBecomeInvalidWithError func(session URLSession, error Error) + _URLSessionDidReceiveChallengeCompletionHandler func(session URLSession, challenge URLAuthenticationChallenge, completionHandler func(disposition URLSessionAuthChallengeDisposition, credential URLCredential)) + _URLSessionDidFinishEventsForBackgroundURLSession func(session URLSession) +} + +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 } @@ -42,47 +81,44 @@ func (di *URLSessionDelegate) SetURLSessionDidFinishEventsForBackgroundURLSessio func (di *URLSessionDelegate) URLSessionDidFinishEventsForBackgroundURLSession(session URLSession) { di._URLSessionDidFinishEventsForBackgroundURLSession(session) } -func (di *URLSessionDelegate) HasURLSessionDidBecomeInvalidWithError() bool { - return di._URLSessionDidBecomeInvalidWithError != nil + +// ensure impl type implements protocol interface +var _ PURLSessionDelegate = (*URLSessionDelegateObject)(nil) + +// A concrete type for the [PURLSessionDelegate] protocol. +type URLSessionDelegateObject struct { + objc.Object } -// 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 +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) URLSessionDidBecomeInvalidWithError(session URLSession, error Error) { - di._URLSessionDidBecomeInvalidWithError(session, error) +func (u_ URLSessionDelegateObject) URLSessionDidBecomeInvalidWithError(session URLSession, error Error) { + objc.Call[objc.Void](u_, objc.Sel("URLSession:didBecomeInvalidWithError:"), objc.Ptr(session), objc.Ptr(error)) } -// A concrete type wrapper for the [PURLSessionDelegate] protocol. -type URLSessionDelegateWrapper struct { - objc.Object +func (u_ URLSessionDelegateObject) HasURLSessionDidReceiveChallengeCompletionHandler() bool { + return u_.RespondsToSelector(objc.Sel("URLSession:didReceiveChallenge:completionHandler:")) +} + +// 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:"), objc.Ptr(session), objc.Ptr(challenge), completionHandler) } -func (u_ URLSessionDelegateWrapper) HasURLSessionDidFinishEventsForBackgroundURLSession() bool { +func (u_ URLSessionDelegateObject) HasURLSessionDidFinishEventsForBackgroundURLSession() bool { return u_.RespondsToSelector(objc.Sel("URLSessionDidFinishEventsForBackgroundURLSession:")) } // Tells the delegate that all messages enqueued for a session have been delivered. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/foundation/nsurlsessiondelegate/1617185-urlsessiondidfinisheventsforback?language=objc -func (u_ URLSessionDelegateWrapper) URLSessionDidFinishEventsForBackgroundURLSession(session IURLSession) { +func (u_ URLSessionDelegateObject) URLSessionDidFinishEventsForBackgroundURLSession(session URLSession) { objc.Call[objc.Void](u_, objc.Sel("URLSessionDidFinishEventsForBackgroundURLSession:"), objc.Ptr(session)) } - -func (u_ URLSessionDelegateWrapper) 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_ URLSessionDelegateWrapper) URLSessionDidBecomeInvalidWithError(session IURLSession, error IError) { - objc.Call[objc.Void](u_, objc.Sel("URLSession:didBecomeInvalidWithError:"), objc.Ptr(session), objc.Ptr(error)) -} diff --git a/macos/foundation/url_session_download_delegate.gen.go b/macos/foundation/url_session_download_delegate.gen.go index ab368d72..b50bd077 100644 --- a/macos/foundation/url_session_download_delegate.gen.go +++ b/macos/foundation/url_session_download_delegate.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package foundation @@ -10,6 +10,14 @@ 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 @@ -17,9 +25,45 @@ type PURLSessionDownloadDelegate interface { // A delegate implementation builder for the [PURLSessionDownloadDelegate] protocol. type URLSessionDownloadDelegate struct { - _URLSessionDownloadTaskDidFinishDownloadingToURL func(session URLSession, downloadTask URLSessionDownloadTask, location URL) + _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 +} + +// 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 } @@ -38,18 +82,43 @@ func (di *URLSessionDownloadDelegate) URLSessionDownloadTaskDidFinishDownloading di._URLSessionDownloadTaskDidFinishDownloadingToURL(session, downloadTask, location) } -// A concrete type wrapper for the [PURLSessionDownloadDelegate] protocol. -type URLSessionDownloadDelegateWrapper struct { +// ensure impl type implements protocol interface +var _ PURLSessionDownloadDelegate = (*URLSessionDownloadDelegateObject)(nil) + +// A concrete type for the [PURLSessionDownloadDelegate] protocol. +type URLSessionDownloadDelegateObject struct { objc.Object } -func (u_ URLSessionDownloadDelegateWrapper) HasURLSessionDownloadTaskDidFinishDownloadingToURL() bool { +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:"), objc.Ptr(session), objc.Ptr(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:"), objc.Ptr(session), objc.Ptr(downloadTask), fileOffset, expectedTotalBytes) +} + +func (u_ URLSessionDownloadDelegateObject) HasURLSessionDownloadTaskDidFinishDownloadingToURL() bool { return u_.RespondsToSelector(objc.Sel("URLSession:downloadTask:didFinishDownloadingToURL:")) } // Tells the delegate that a download task has finished downloading. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/foundation/nsurlsessiondownloaddelegate/1411575-urlsession?language=objc -func (u_ URLSessionDownloadDelegateWrapper) URLSessionDownloadTaskDidFinishDownloadingToURL(session IURLSession, downloadTask IURLSessionDownloadTask, location IURL) { +func (u_ URLSessionDownloadDelegateObject) URLSessionDownloadTaskDidFinishDownloadingToURL(session URLSession, downloadTask URLSessionDownloadTask, location URL) { objc.Call[objc.Void](u_, objc.Sel("URLSession:downloadTask:didFinishDownloadingToURL:"), objc.Ptr(session), objc.Ptr(downloadTask), objc.Ptr(location)) } diff --git a/macos/foundation/url_session_download_task.gen.go b/macos/foundation/url_session_download_task.gen.go index db5c4b39..dc28777b 100644 --- a/macos/foundation/url_session_download_task.gen.go +++ b/macos/foundation/url_session_download_task.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package foundation @@ -39,10 +39,6 @@ func (uc _URLSessionDownloadTaskClass) Alloc() URLSessionDownloadTask { return rv } -func URLSessionDownloadTask_Alloc() URLSessionDownloadTask { - return URLSessionDownloadTaskClass.Alloc() -} - func (uc _URLSessionDownloadTaskClass) New() URLSessionDownloadTask { rv := objc.Call[URLSessionDownloadTask](uc, objc.Sel("new")) rv.Autorelease() diff --git a/macos/foundation/url_session_stream_delegate.gen.go b/macos/foundation/url_session_stream_delegate.gen.go index 7299598a..949628c1 100644 --- a/macos/foundation/url_session_stream_delegate.gen.go +++ b/macos/foundation/url_session_stream_delegate.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package foundation @@ -10,6 +10,18 @@ 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 @@ -17,9 +29,63 @@ type PURLSessionStreamDelegate interface { // A delegate implementation builder for the [PURLSessionStreamDelegate] protocol. type URLSessionStreamDelegate struct { - _URLSessionWriteClosedForStreamTask func(session URLSession, streamTask URLSessionStreamTask) + _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 +} + +// 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 } @@ -38,18 +104,54 @@ func (di *URLSessionStreamDelegate) URLSessionWriteClosedForStreamTask(session U di._URLSessionWriteClosedForStreamTask(session, streamTask) } -// A concrete type wrapper for the [PURLSessionStreamDelegate] protocol. -type URLSessionStreamDelegateWrapper struct { +// ensure impl type implements protocol interface +var _ PURLSessionStreamDelegate = (*URLSessionStreamDelegateObject)(nil) + +// A concrete type for the [PURLSessionStreamDelegate] protocol. +type URLSessionStreamDelegateObject struct { objc.Object } -func (u_ URLSessionStreamDelegateWrapper) HasURLSessionWriteClosedForStreamTask() bool { +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:"), objc.Ptr(session), objc.Ptr(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:"), objc.Ptr(session), objc.Ptr(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:"), objc.Ptr(session), objc.Ptr(streamTask), objc.Ptr(inputStream), objc.Ptr(outputStream)) +} + +func (u_ URLSessionStreamDelegateObject) HasURLSessionWriteClosedForStreamTask() bool { return u_.RespondsToSelector(objc.Sel("URLSession:writeClosedForStreamTask:")) } // Tells the delegate that the write side of the underlying socket has been closed. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/foundation/nsurlsessionstreamdelegate/1411507-urlsession?language=objc -func (u_ URLSessionStreamDelegateWrapper) URLSessionWriteClosedForStreamTask(session IURLSession, streamTask IURLSessionStreamTask) { +func (u_ URLSessionStreamDelegateObject) URLSessionWriteClosedForStreamTask(session URLSession, streamTask URLSessionStreamTask) { objc.Call[objc.Void](u_, objc.Sel("URLSession:writeClosedForStreamTask:"), objc.Ptr(session), objc.Ptr(streamTask)) } diff --git a/macos/foundation/url_session_stream_task.gen.go b/macos/foundation/url_session_stream_task.gen.go index 51362096..0e031b9e 100644 --- a/macos/foundation/url_session_stream_task.gen.go +++ b/macos/foundation/url_session_stream_task.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package foundation @@ -18,12 +18,12 @@ type _URLSessionStreamTaskClass struct { // An interface definition for the [URLSessionStreamTask] class. type IURLSessionStreamTask interface { IURLSessionTask - CloseWrite() - 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)) + 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)) } // A URL session task that is stream-based. [Full Topic] @@ -44,10 +44,6 @@ func (uc _URLSessionStreamTaskClass) Alloc() URLSessionStreamTask { return rv } -func URLSessionStreamTask_Alloc() URLSessionStreamTask { - return URLSessionStreamTaskClass.Alloc() -} - func (uc _URLSessionStreamTaskClass) New() URLSessionStreamTask { rv := objc.Call[URLSessionStreamTask](uc, objc.Sel("new")) rv.Autorelease() @@ -63,6 +59,13 @@ 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 @@ -70,25 +73,11 @@ func (u_ URLSessionStreamTask) CloseWrite() { objc.Call[objc.Void](u_, objc.Sel("closeWrite")) } -// 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/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] -// -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsurlsessionstreamtask/1411558-closeread?language=objc -func (u_ URLSessionStreamTask) CloseRead() { - objc.Call[objc.Void](u_, objc.Sel("closeRead")) -} - -// Completes any enqueued reads and writes, and establishes a secure connection. [Full Topic] +// 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/1411567-startsecureconnection?language=objc -func (u_ URLSessionStreamTask) StartSecureConnection() { - objc.Call[objc.Void](u_, objc.Sel("startSecureConnection")) +// [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] @@ -98,9 +87,16 @@ func (u_ URLSessionStreamTask) ReadDataOfMinLengthMaxLengthTimeoutCompletionHand 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] +// Completes any enqueued reads and writes, and then closes the read side of the underlying socket. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsurlsessionstreamtask/1411558-closeread?language=objc +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] // -// [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")) +// [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) } diff --git a/macos/foundation/url_session_task.gen.go b/macos/foundation/url_session_task.gen.go index cc17f9e4..6aa98cab 100644 --- a/macos/foundation/url_session_task.gen.go +++ b/macos/foundation/url_session_task.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package foundation @@ -18,35 +18,35 @@ type _URLSessionTaskClass struct { // An interface definition for the [URLSessionTask] class. type IURLSessionTask interface { objc.IObject - Suspend() Resume() + Suspend() Cancel() - CountOfBytesExpectedToSend() int64 - Priority() float64 - SetPriority(value float64) Error() Error - State() URLSessionTaskState - TaskIdentifier() uint + CurrentRequest() URLRequest CountOfBytesClientExpectsToReceive() int64 SetCountOfBytesClientExpectsToReceive(value int64) - CountOfBytesSent() int64 - TaskDescription() string - SetTaskDescription(value string) - PrefersIncrementalDelivery() bool - SetPrefersIncrementalDelivery(value bool) - EarliestBeginDate() Date - SetEarliestBeginDate(value IDate) - CountOfBytesExpectedToReceive() int64 - Delegate() URLSessionTaskDelegateWrapper + Response() URLResponse + Progress() Progress + Delegate() URLSessionTaskDelegateObject SetDelegate(value PURLSessionTaskDelegate) SetDelegateObject(valueObject objc.IObject) - CountOfBytesReceived() int64 - Progress() Progress - Response() URLResponse + CountOfBytesExpectedToReceive() int64 CountOfBytesClientExpectsToSend() int64 SetCountOfBytesClientExpectsToSend(value int64) - CurrentRequest() URLRequest + Priority() float64 + SetPriority(value float64) + State() URLSessionTaskState + PrefersIncrementalDelivery() bool + SetPrefersIncrementalDelivery(value bool) + TaskIdentifier() uint + TaskDescription() string + SetTaskDescription(value string) + CountOfBytesReceived() int64 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] @@ -67,10 +67,6 @@ func (uc _URLSessionTaskClass) Alloc() URLSessionTask { return rv } -func URLSessionTask_Alloc() URLSessionTask { - return URLSessionTaskClass.Alloc() -} - func (uc _URLSessionTaskClass) New() URLSessionTask { rv := objc.Call[URLSessionTask](uc, objc.Sel("new")) rv.Autorelease() @@ -86,13 +82,6 @@ func (u_ URLSessionTask) Init() URLSessionTask { return rv } -// Temporarily suspends a task. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsurlsessiontask/1411565-suspend?language=objc -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 @@ -100,6 +89,13 @@ 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 +func (u_ URLSessionTask) Suspend() { + objc.Call[objc.Void](u_, objc.Sel("suspend")) +} + // Cancels the task. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/foundation/nsurlsessiontask/1411591-cancel?language=objc @@ -107,29 +103,6 @@ func (u_ URLSessionTask) Cancel() { objc.Call[objc.Void](u_, objc.Sel("cancel")) } -// 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/1411534-countofbytesexpectedtosend?language=objc -func (u_ URLSessionTask) CountOfBytesExpectedToSend() int64 { - rv := objc.Call[int64](u_, objc.Sel("countOfBytesExpectedToSend")) - 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] -// -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsurlsessiontask/1410569-priority?language=objc -func (u_ URLSessionTask) Priority() float64 { - rv := objc.Call[float64](u_, objc.Sel("priority")) - 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] -// -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsurlsessiontask/1410569-priority?language=objc -func (u_ URLSessionTask) SetPriority(value float64) { - objc.Call[objc.Void](u_, objc.Sel("setPriority:"), value) -} - // An error object that indicates why the task failed. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/foundation/nsurlsessiontask/1408145-error?language=objc @@ -138,19 +111,11 @@ func (u_ URLSessionTask) Error() Error { return rv } -// 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/1409888-state?language=objc -func (u_ URLSessionTask) State() URLSessionTaskState { - rv := objc.Call[URLSessionTaskState](u_, objc.Sel("state")) - return rv -} - -// An identifier uniquely identifying the task within a given session. [Full Topic] +// The URL request object currently being handled by 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/1411649-currentrequest?language=objc +func (u_ URLSessionTask) CurrentRequest() URLRequest { + rv := objc.Call[URLRequest](u_, objc.Sel("currentRequest")) return rv } @@ -169,57 +134,43 @@ func (u_ URLSessionTask) SetCountOfBytesClientExpectsToReceive(value int64) { objc.Call[objc.Void](u_, objc.Sel("setCountOfBytesClientExpectsToReceive:"), value) } -// 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 } -// An app-provided string value for the current task. [Full Topic] +// A representation of the overall task progress. [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")) +// [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 } -// An app-provided string value for the current 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) -} - -// A Boolean value that determines whether to deliver a partial response body in increments. [Full Topic] +// A delegate specific to the task. [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")) +// [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 } -// 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/3735881-prefersincrementaldelivery?language=objc -func (u_ URLSessionTask) SetPrefersIncrementalDelivery(value bool) { - objc.Call[objc.Void](u_, objc.Sel("setPrefersIncrementalDelivery:"), value) -} - -// The earliest date at which the network load should begin. [Full Topic] +// A delegate specific to the task. [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")) - 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) } -// The earliest date at which the network load should begin. [Full Topic] +// A delegate specific to the task. [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:"), objc.Ptr(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:"), objc.Ptr(valueObject)) } // The number of bytes that the task expects to receive in the response body. [Full Topic] @@ -230,73 +181,87 @@ func (u_ URLSessionTask) CountOfBytesExpectedToReceive() int64 { return rv } -// A delegate specific to the task. [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/3746977-delegate?language=objc -func (u_ URLSessionTask) Delegate() URLSessionTaskDelegateWrapper { - rv := objc.Call[URLSessionTaskDelegateWrapper](u_, objc.Sel("delegate")) +// [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 } -// A delegate specific to the task. [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/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/2873401-countofbytesclientexpectstosend?language=objc +func (u_ URLSessionTask) SetCountOfBytesClientExpectsToSend(value int64) { + objc.Call[objc.Void](u_, objc.Sel("setCountOfBytesClientExpectsToSend:"), value) } -// A delegate specific to the task. [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/3746977-delegate?language=objc -func (u_ URLSessionTask) SetDelegateObject(valueObject objc.IObject) { - objc.Call[objc.Void](u_, objc.Sel("setDelegate:"), objc.Ptr(valueObject)) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsurlsessiontask/1410569-priority?language=objc +func (u_ URLSessionTask) Priority() float64 { + rv := objc.Call[float64](u_, objc.Sel("priority")) + return rv } -// The number of bytes that the task has received from the server in the response body. [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/1411581-countofbytesreceived?language=objc -func (u_ URLSessionTask) CountOfBytesReceived() int64 { - rv := objc.Call[int64](u_, objc.Sel("countOfBytesReceived")) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsurlsessiontask/1410569-priority?language=objc +func (u_ URLSessionTask) SetPriority(value float64) { + objc.Call[objc.Void](u_, objc.Sel("setPriority:"), value) +} + +// 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/1409888-state?language=objc +func (u_ URLSessionTask) State() URLSessionTaskState { + rv := objc.Call[URLSessionTaskState](u_, objc.Sel("state")) return rv } -// A representation of the overall task progress. [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/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/3735881-prefersincrementaldelivery?language=objc +func (u_ URLSessionTask) PrefersIncrementalDelivery() bool { + rv := objc.Call[bool](u_, objc.Sel("prefersIncrementalDelivery")) return rv } -// The server’s response to the currently active request. [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/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/3735881-prefersincrementaldelivery?language=objc +func (u_ URLSessionTask) SetPrefersIncrementalDelivery(value bool) { + objc.Call[objc.Void](u_, objc.Sel("setPrefersIncrementalDelivery:"), value) +} + +// An identifier uniquely identifying the task within a given session. [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")) 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 URL request object currently being handled by the task. [Full Topic] +// The number of bytes that the task has received from the server in the response 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/1411581-countofbytesreceived?language=objc +func (u_ URLSessionTask) CountOfBytesReceived() int64 { + rv := objc.Call[int64](u_, objc.Sel("countOfBytesReceived")) return rv } @@ -307,3 +272,34 @@ func (u_ URLSessionTask) OriginalRequest() URLRequest { rv := objc.Call[URLRequest](u_, objc.Sel("originalRequest")) return rv } + +// 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/1410444-countofbytessent?language=objc +func (u_ URLSessionTask) CountOfBytesSent() int64 { + rv := objc.Call[int64](u_, objc.Sel("countOfBytesSent")) + return rv +} + +// The earliest date at which the network load should begin. [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")) + return rv +} + +// The earliest date at which the network load should begin. [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:"), objc.Ptr(value)) +} + +// 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/1411534-countofbytesexpectedtosend?language=objc +func (u_ URLSessionTask) CountOfBytesExpectedToSend() int64 { + rv := objc.Call[int64](u_, objc.Sel("countOfBytesExpectedToSend")) + return rv +} diff --git a/macos/foundation/url_session_task_delegate.gen.go b/macos/foundation/url_session_task_delegate.gen.go index 98347be4..a377fa55 100644 --- a/macos/foundation/url_session_task_delegate.gen.go +++ b/macos/foundation/url_session_task_delegate.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package foundation @@ -10,16 +10,102 @@ 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 { - _URLSessionTaskDidFinishCollectingMetrics func(session URLSession, task URLSessionTask, metrics URLSessionTaskMetrics) + _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 +} + +// 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 } @@ -37,19 +123,167 @@ 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 +} -// A concrete type wrapper for the [PURLSessionTaskDelegate] protocol. -type URLSessionTaskDelegateWrapper struct { +// 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) + +// A concrete type for the [PURLSessionTaskDelegate] protocol. +type URLSessionTaskDelegateObject struct { objc.Object } -func (u_ URLSessionTaskDelegateWrapper) HasURLSessionTaskDidFinishCollectingMetrics() bool { +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:"), objc.Ptr(session), objc.Ptr(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:"), objc.Ptr(session), objc.Ptr(task), objc.Ptr(response), objc.Ptr(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:"), objc.Ptr(session), objc.Ptr(task), objc.Ptr(challenge), completionHandler) +} + +func (u_ URLSessionTaskDelegateObject) HasURLSessionTaskDidFinishCollectingMetrics() bool { return u_.RespondsToSelector(objc.Sel("URLSession:task:didFinishCollectingMetrics:")) } // Tells the delegate that the session finished collecting metrics for the task. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/foundation/nsurlsessiontaskdelegate/1643148-urlsession?language=objc -func (u_ URLSessionTaskDelegateWrapper) URLSessionTaskDidFinishCollectingMetrics(session IURLSession, task IURLSessionTask, metrics IURLSessionTaskMetrics) { +func (u_ URLSessionTaskDelegateObject) URLSessionTaskDidFinishCollectingMetrics(session URLSession, task URLSessionTask, metrics URLSessionTaskMetrics) { objc.Call[objc.Void](u_, objc.Sel("URLSession:task:didFinishCollectingMetrics:"), objc.Ptr(session), objc.Ptr(task), objc.Ptr(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:"), objc.Ptr(session), objc.Ptr(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:"), objc.Ptr(session), objc.Ptr(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:"), objc.Ptr(session), objc.Ptr(task), objc.Ptr(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:"), objc.Ptr(session), objc.Ptr(task), objc.Ptr(error)) +} diff --git a/macos/foundation/url_session_task_metrics.gen.go b/macos/foundation/url_session_task_metrics.gen.go index bc0a65c4..10f71c23 100644 --- a/macos/foundation/url_session_task_metrics.gen.go +++ b/macos/foundation/url_session_task_metrics.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package foundation @@ -19,8 +19,8 @@ type _URLSessionTaskMetricsClass struct { type IURLSessionTaskMetrics interface { objc.IObject RedirectCount() uint - TransactionMetrics() []URLSessionTaskTransactionMetrics TaskInterval() DateInterval + TransactionMetrics() []URLSessionTaskTransactionMetrics } // An object encapsulating the metrics for a session task. [Full Topic] @@ -41,10 +41,6 @@ func (uc _URLSessionTaskMetricsClass) Alloc() URLSessionTaskMetrics { return rv } -func URLSessionTaskMetrics_Alloc() URLSessionTaskMetrics { - return URLSessionTaskMetricsClass.Alloc() -} - func (uc _URLSessionTaskMetricsClass) New() URLSessionTaskMetrics { rv := objc.Call[URLSessionTaskMetrics](uc, objc.Sel("new")) rv.Autorelease() @@ -68,14 +64,6 @@ func (u_ URLSessionTaskMetrics) RedirectCount() uint { 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 -func (u_ URLSessionTaskMetrics) TransactionMetrics() []URLSessionTaskTransactionMetrics { - 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 @@ -83,3 +71,11 @@ 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 +func (u_ URLSessionTaskMetrics) TransactionMetrics() []URLSessionTaskTransactionMetrics { + rv := objc.Call[[]URLSessionTaskTransactionMetrics](u_, objc.Sel("transactionMetrics")) + 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 ce6ac212..1ccd7edc 100644 --- a/macos/foundation/url_session_task_transaction_metrics.gen.go +++ b/macos/foundation/url_session_task_transaction_metrics.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package foundation @@ -18,40 +18,40 @@ type _URLSessionTaskTransactionMetricsClass struct { // An interface definition for the [URLSessionTaskTransactionMetrics] class. type IURLSessionTaskTransactionMetrics interface { objc.IObject - IsCellular() bool - DomainResolutionProtocol() URLSessionTaskMetricsDomainResolutionProtocol - Request() URLRequest - IsExpensive() bool - NegotiatedTLSCipherSuite() Number - ConnectStartDate() Date - CountOfRequestBodyBytesSent() int64 - RemoteAddress() string + ResourceFetchType() URLSessionTaskMetricsResourceFetchType + ResponseStartDate() Date + IsReusedConnection() bool + SecureConnectionStartDate() Date RequestStartDate() Date - DomainLookupStartDate() Date - CountOfRequestBodyBytesBeforeEncoding() int64 + IsMultipath() bool CountOfRequestHeaderBytesSent() int64 - RemotePort() Number - CountOfResponseBodyBytesReceived() int64 - ConnectEndDate() Date - CountOfResponseHeaderBytesReceived() int64 - SecureConnectionStartDate() Date CountOfResponseBodyBytesAfterDecoding() int64 - LocalAddress() string - DomainLookupEndDate() Date - IsReusedConnection() bool - ResourceFetchType() URLSessionTaskMetricsResourceFetchType - IsMultipath() bool - ResponseStartDate() Date - NetworkProtocolName() string - LocalPort() Number - FetchStartDate() Date NegotiatedTLSProtocolVersion() Number ResponseEndDate() Date + CountOfResponseHeaderBytesReceived() int64 + NegotiatedTLSCipherSuite() Number + LocalPort() Number + ConnectStartDate() Date + FetchStartDate() Date + RequestEndDate() Date + RemoteAddress() string + RemotePort() Number IsConstrained() bool - IsProxyConnection() bool + CountOfRequestBodyBytesBeforeEncoding() int64 + ConnectEndDate() Date + IsCellular() bool + NetworkProtocolName() string + DomainResolutionProtocol() URLSessionTaskMetricsDomainResolutionProtocol Response() URLResponse + LocalAddress() string + CountOfRequestBodyBytesSent() int64 + CountOfResponseBodyBytesReceived() int64 + IsProxyConnection() bool + DomainLookupEndDate() Date + DomainLookupStartDate() Date + Request() URLRequest + IsExpensive() bool 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] @@ -72,10 +72,6 @@ func (uc _URLSessionTaskTransactionMetricsClass) Alloc() URLSessionTaskTransacti return rv } -func URLSessionTaskTransactionMetrics_Alloc() URLSessionTaskTransactionMetrics { - return URLSessionTaskTransactionMetricsClass.Alloc() -} - func (uc _URLSessionTaskTransactionMetricsClass) New() URLSessionTaskTransactionMetrics { rv := objc.Call[URLSessionTaskTransactionMetrics](uc, objc.Sel("new")) rv.Autorelease() @@ -91,67 +87,35 @@ func (u_ URLSessionTaskTransactionMetrics) Init() URLSessionTaskTransactionMetri return rv } -// A Boolean value that indicates whether the connection operates over a cellular interface. [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")) - return rv -} - -// [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")) - return rv -} - -// The transaction request. [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")) - return rv -} - -// A Boolean value that indicates whether the connection operates over an expensive interface. [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")) - return rv -} - -// The TLS cipher suite the task negotiated with the endpoint for the connection. [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/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/1642919-resourcefetchtype?language=objc +func (u_ URLSessionTaskTransactionMetrics) ResourceFetchType() URLSessionTaskMetricsResourceFetchType { + rv := objc.Call[URLSessionTaskMetricsResourceFetchType](u_, objc.Sel("resourceFetchType")) return rv } -// The time immediately before the task started establishing a TCP connection to the server. [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/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/1642966-responsestartdate?language=objc +func (u_ URLSessionTaskTransactionMetrics) ResponseStartDate() Date { + rv := objc.Call[Date](u_, objc.Sel("responseStartDate")) return rv } -// The number of bytes transferred for the request body. [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/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/1643233-reusedconnection?language=objc +func (u_ URLSessionTaskTransactionMetrics) IsReusedConnection() bool { + rv := objc.Call[bool](u_, objc.Sel("isReusedConnection")) return rv } -// The IP address string 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/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/1643219-secureconnectionstartdate?language=objc +func (u_ URLSessionTaskTransactionMetrics) SecureConnectionStartDate() Date { + rv := objc.Call[Date](u_, objc.Sel("secureConnectionStartDate")) return rv } @@ -163,19 +127,11 @@ func (u_ URLSessionTaskTransactionMetrics) RequestStartDate() Date { return rv } -// The time immediately before the task started the name lookup for the resource. [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")) - return rv -} - -// The size of the upload body data, file, or stream, in bytes. [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/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/3240638-multipath?language=objc +func (u_ URLSessionTaskTransactionMetrics) IsMultipath() bool { + rv := objc.Call[bool](u_, objc.Sel("isMultipath")) return rv } @@ -187,27 +143,27 @@ func (u_ URLSessionTaskTransactionMetrics) CountOfRequestHeaderBytesSent() int64 return rv } -// The port number of the remote interface for the connection. [Full Topic] +// The size of data delivered to your delegate or completion handler. [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/3240632-countofresponsebodybytesafterdec?language=objc +func (u_ URLSessionTaskTransactionMetrics) CountOfResponseBodyBytesAfterDecoding() int64 { + rv := objc.Call[int64](u_, objc.Sel("countOfResponseBodyBytesAfterDecoding")) return rv } -// The number of bytes transferred for the response body. [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/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/3240640-negotiatedtlsprotocolversion?language=objc +func (u_ URLSessionTaskTransactionMetrics) NegotiatedTLSProtocolVersion() Number { + rv := objc.Call[Number](u_, objc.Sel("negotiatedTLSProtocolVersion")) return rv } -// The time immediately after the task finished establishing the connection to the server. [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/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/1643300-responseenddate?language=objc +func (u_ URLSessionTaskTransactionMetrics) ResponseEndDate() Date { + rv := objc.Call[Date](u_, objc.Sel("responseEndDate")) return rv } @@ -219,67 +175,91 @@ func (u_ URLSessionTaskTransactionMetrics) CountOfResponseHeaderBytesReceived() return rv } -// The time immediately before the task started the TLS security handshake to secure the current connection. [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/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/3240639-negotiatedtlsciphersuite?language=objc +func (u_ URLSessionTaskTransactionMetrics) NegotiatedTLSCipherSuite() Number { + rv := objc.Call[Number](u_, objc.Sel("negotiatedTLSCipherSuite")) return rv } -// The size of data delivered to your delegate or completion handler. [Full Topic] +// The port number of the local interface for the connection. [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/3240637-localport?language=objc +func (u_ URLSessionTaskTransactionMetrics) LocalPort() Number { + rv := objc.Call[Number](u_, objc.Sel("localPort")) return rv } -// The IP address string of the local interface for the connection. [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/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/1642815-connectstartdate?language=objc +func (u_ URLSessionTaskTransactionMetrics) ConnectStartDate() Date { + rv := objc.Call[Date](u_, objc.Sel("connectStartDate")) return rv } -// The time after the name lookup was completed. [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/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/1643009-fetchstartdate?language=objc +func (u_ URLSessionTaskTransactionMetrics) FetchStartDate() Date { + rv := objc.Call[Date](u_, objc.Sel("fetchStartDate")) return rv } -// A Boolean value that indicates whether the task used a persistent connection to fetch the resource. [Full Topic] +// 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/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/1643056-requestenddate?language=objc +func (u_ URLSessionTaskTransactionMetrics) RequestEndDate() Date { + rv := objc.Call[Date](u_, objc.Sel("requestEndDate")) return rv } -// A value that indicates whether the resource was loaded, pushed, or retrieved from the local cache. [Full Topic] +// The IP address string of the remote interface for the connection. [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")) +// [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 } -// A Boolean value that indicates whether the connection uses a successfully negotiated multipath protocol. [Full Topic] +// The port number of the remote interface 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/3240643-remoteport?language=objc +func (u_ URLSessionTaskTransactionMetrics) RemotePort() Number { + rv := objc.Call[Number](u_, objc.Sel("remotePort")) 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 an interface marked as constrained. [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/3240628-constrained?language=objc +func (u_ URLSessionTaskTransactionMetrics) IsConstrained() bool { + rv := objc.Call[bool](u_, objc.Sel("isConstrained")) + return rv +} + +// The size of the upload body data, file, or stream, in bytes. [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")) + return rv +} + +// The time immediately after the task finished establishing the connection to the server. [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")) + return rv +} + +// A Boolean value that indicates whether the connection operates over a cellular interface. [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")) return rv } @@ -291,43 +271,43 @@ func (u_ URLSessionTaskTransactionMetrics) NetworkProtocolName() string { return rv } -// The port number of the local interface for the connection. [Full Topic] +// [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/3674827-domainresolutionprotocol?language=objc +func (u_ URLSessionTaskTransactionMetrics) DomainResolutionProtocol() URLSessionTaskMetricsDomainResolutionProtocol { + rv := objc.Call[URLSessionTaskMetricsDomainResolutionProtocol](u_, objc.Sel("domainResolutionProtocol")) return rv } -// The time when the task started fetching the resource, from the server or locally. [Full Topic] +// The transaction response. [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/1643172-response?language=objc +func (u_ URLSessionTaskTransactionMetrics) Response() URLResponse { + rv := objc.Call[URLResponse](u_, objc.Sel("response")) return rv } -// The TLS protocol version the task negotiated with the endpoint for the connection. [Full Topic] +// The IP address string of the local 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/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 received the last byte of the resource. [Full Topic] +// The number of bytes transferred for the request body. [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/3240630-countofrequestbodybytessent?language=objc +func (u_ URLSessionTaskTransactionMetrics) CountOfRequestBodyBytesSent() int64 { + rv := objc.Call[int64](u_, objc.Sel("countOfRequestBodyBytesSent")) return rv } -// A Boolean value that indicates whether the connection operates over an interface marked as constrained. [Full Topic] +// The number of bytes transferred for the response body. [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/3240633-countofresponsebodybytesreceived?language=objc +func (u_ URLSessionTaskTransactionMetrics) CountOfResponseBodyBytesReceived() int64 { + rv := objc.Call[int64](u_, objc.Sel("countOfResponseBodyBytesReceived")) return rv } @@ -339,26 +319,42 @@ func (u_ URLSessionTaskTransactionMetrics) IsProxyConnection() bool { return rv } -// The transaction response. [Full Topic] +// The time after the name lookup was completed. [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/1643173-domainlookupenddate?language=objc +func (u_ URLSessionTaskTransactionMetrics) DomainLookupEndDate() Date { + rv := objc.Call[Date](u_, objc.Sel("domainLookupEndDate")) return rv } -// The time immediately after the security handshake completed. [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/1643255-secureconnectionenddate?language=objc -func (u_ URLSessionTaskTransactionMetrics) SecureConnectionEndDate() Date { - rv := objc.Call[Date](u_, objc.Sel("secureConnectionEndDate")) +// [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 time immediately after the task finished requesting the resource, regardless of whether it was retrieved from the server or local resources. [Full Topic] +// The transaction request. [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/1643144-request?language=objc +func (u_ URLSessionTaskTransactionMetrics) Request() URLRequest { + rv := objc.Call[URLRequest](u_, objc.Sel("request")) + return rv +} + +// A Boolean value that indicates whether the connection operates over an expensive interface. [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")) + return rv +} + +// The time immediately after the security handshake completed. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsurlsessiontasktransactionmetrics/1643255-secureconnectionenddate?language=objc +func (u_ URLSessionTaskTransactionMetrics) SecureConnectionEndDate() Date { + rv := objc.Call[Date](u_, objc.Sel("secureConnectionEndDate")) return rv } diff --git a/macos/foundation/url_session_upload_task.gen.go b/macos/foundation/url_session_upload_task.gen.go index a710257d..a42514ed 100644 --- a/macos/foundation/url_session_upload_task.gen.go +++ b/macos/foundation/url_session_upload_task.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package foundation @@ -38,10 +38,6 @@ func (uc _URLSessionUploadTaskClass) Alloc() URLSessionUploadTask { return rv } -func URLSessionUploadTask_Alloc() URLSessionUploadTask { - return URLSessionUploadTaskClass.Alloc() -} - func (uc _URLSessionUploadTaskClass) New() URLSessionUploadTask { rv := objc.Call[URLSessionUploadTask](uc, objc.Sel("new")) rv.Autorelease() diff --git a/macos/foundation/url_session_web_socket_delegate.gen.go b/macos/foundation/url_session_web_socket_delegate.gen.go index 95f0b84e..a68862b9 100644 --- a/macos/foundation/url_session_web_socket_delegate.gen.go +++ b/macos/foundation/url_session_web_socket_delegate.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package foundation @@ -13,11 +13,16 @@ 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) + _URLSessionWebSocketTaskDidOpenWithProtocol func(session URLSession, webSocketTask URLSessionWebSocketTask, protocol string) + _URLSessionWebSocketTaskDidCloseWithCodeReason func(session URLSession, webSocketTask URLSessionWebSocketTask, closeCode URLSessionWebSocketCloseCode, reason []byte) } func (di *URLSessionWebSocketDelegate) HasURLSessionWebSocketTaskDidOpenWithProtocol() bool { @@ -37,19 +42,50 @@ 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 +} -// A concrete type wrapper for the [PURLSessionWebSocketDelegate] protocol. -type URLSessionWebSocketDelegateWrapper struct { +// 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) + +// A concrete type for the [PURLSessionWebSocketDelegate] protocol. +type URLSessionWebSocketDelegateObject struct { objc.Object } -func (u_ URLSessionWebSocketDelegateWrapper) HasURLSessionWebSocketTaskDidOpenWithProtocol() bool { +func (u_ URLSessionWebSocketDelegateObject) HasURLSessionWebSocketTaskDidOpenWithProtocol() bool { return u_.RespondsToSelector(objc.Sel("URLSession:webSocketTask:didOpenWithProtocol:")) } // Tells the delegate that the WebSocket task successfully negotiated the handshake with the endpoint, indicating the negotiated protocol. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/foundation/nsurlsessionwebsocketdelegate/3181189-urlsession?language=objc -func (u_ URLSessionWebSocketDelegateWrapper) URLSessionWebSocketTaskDidOpenWithProtocol(session IURLSession, webSocketTask IURLSessionWebSocketTask, protocol string) { +func (u_ URLSessionWebSocketDelegateObject) URLSessionWebSocketTaskDidOpenWithProtocol(session URLSession, webSocketTask URLSessionWebSocketTask, protocol string) { objc.Call[objc.Void](u_, objc.Sel("URLSession:webSocketTask:didOpenWithProtocol:"), objc.Ptr(session), objc.Ptr(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:"), objc.Ptr(session), objc.Ptr(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 f53dbf6e..87c34906 100644 --- a/macos/foundation/url_session_web_socket_message.gen.go +++ b/macos/foundation/url_session_web_socket_message.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package foundation @@ -18,8 +18,8 @@ type _URLSessionWebSocketMessageClass struct { // An interface definition for the [URLSessionWebSocketMessage] class. type IURLSessionWebSocketMessage interface { objc.IObject - Data() []byte String() string + Data() []byte Type() URLSessionWebSocketMessageType } @@ -36,30 +36,30 @@ func URLSessionWebSocketMessageFrom(ptr unsafe.Pointer) URLSessionWebSocketMessa } } -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 } -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 } @@ -69,10 +69,6 @@ func (uc _URLSessionWebSocketMessageClass) Alloc() URLSessionWebSocketMessage { return rv } -func URLSessionWebSocketMessage_Alloc() URLSessionWebSocketMessage { - return URLSessionWebSocketMessageClass.Alloc() -} - func (uc _URLSessionWebSocketMessageClass) New() URLSessionWebSocketMessage { rv := objc.Call[URLSessionWebSocketMessage](uc, objc.Sel("new")) rv.Autorelease() @@ -90,17 +86,17 @@ func (u_ URLSessionWebSocketMessage) Init() URLSessionWebSocketMessage { // [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 } // [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 } diff --git a/macos/foundation/url_session_web_socket_task.gen.go b/macos/foundation/url_session_web_socket_task.gen.go index 196503dd..0330b552 100644 --- a/macos/foundation/url_session_web_socket_task.gen.go +++ b/macos/foundation/url_session_web_socket_task.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package foundation @@ -18,14 +18,14 @@ type _URLSessionWebSocketTaskClass struct { // An interface definition for the [URLSessionWebSocketTask] class. type IURLSessionWebSocketTask interface { IURLSessionTask - 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 + ReceiveMessageWithCompletionHandler(completionHandler func(message URLSessionWebSocketMessage, error Error)) + CancelWithCloseCodeReason(closeCode URLSessionWebSocketCloseCode, reason []byte) MaximumMessageSize() int SetMaximumMessageSize(value int) CloseCode() URLSessionWebSocketCloseCode + CloseReason() []byte } // A URL session task that communicates over the WebSockets protocol standard. [Full Topic] @@ -46,10 +46,6 @@ func (uc _URLSessionWebSocketTaskClass) Alloc() URLSessionWebSocketTask { return rv } -func URLSessionWebSocketTask_Alloc() URLSessionWebSocketTask { - return URLSessionWebSocketTaskClass.Alloc() -} - func (uc _URLSessionWebSocketTaskClass) New() URLSessionWebSocketTask { rv := objc.Call[URLSessionWebSocketTask](uc, objc.Sel("new")) rv.Autorelease() @@ -65,13 +61,6 @@ 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 @@ -79,13 +68,6 @@ func (u_ URLSessionWebSocketTask) SendMessageCompletionHandler(message IURLSessi objc.Call[objc.Void](u_, objc.Sel("sendMessage:completionHandler:"), objc.Ptr(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 @@ -93,12 +75,18 @@ func (u_ URLSessionWebSocketTask) SendPingWithPongReceiveHandler(pongReceiveHand objc.Call[objc.Void](u_, objc.Sel("sendPingWithPongReceiveHandler:"), pongReceiveHandler) } -// A block of data that provides further information about why a connection closed. [Full Topic] +// Reads a WebSocket message once all the frames of the message are available. [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 +// [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] +// +// [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) } // The maximum number of bytes to buffer before the receive call fails with an error. [Full Topic] @@ -123,3 +111,11 @@ 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 3a984eb8..6f30735a 100644 --- a/macos/foundation/user_activity.gen.go +++ b/macos/foundation/user_activity.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package foundation @@ -18,50 +18,50 @@ type _UserActivityClass struct { // An interface definition for the [UserActivity] class. type IUserActivity interface { objc.IObject - BecomeCurrent() - AddUserInfoEntriesFromDictionary(otherDictionary Dictionary) + Invalidate() GetContinuationStreamsWithCompletionHandler(completionHandler func(inputStream InputStream, outputStream OutputStream, error Error)) + BecomeCurrent() ResignCurrent() - Invalidate() - SupportsContinuationStreams() bool - SetSupportsContinuationStreams(value bool) - IsClassKitDeepLink() bool - ActivityType() string - IsEligibleForHandoff() bool - SetEligibleForHandoff(value bool) + AddUserInfoEntriesFromDictionary(otherDictionary Dictionary) + ContextIdentifierPath() []string UserInfo() Dictionary SetUserInfo(value Dictionary) + NeedsSave() bool + SetNeedsSave(value bool) + ContentAttributeSet() objc.Object + SetContentAttributeSet(value objc.IObject) ExpirationDate() Date SetExpirationDate(value IDate) - Delegate() UserActivityDelegateWrapper - SetDelegate(value PUserActivityDelegate) - SetDelegateObject(valueObject objc.IObject) - DetectedBarcodeDescriptor() objc.Object TargetContentIdentifier() string SetTargetContentIdentifier(value string) - ContentAttributeSet() objc.Object - SetContentAttributeSet(value objc.IObject) - ContextIdentifierPath() []string - SuggestedInvocationPhrase() string - SetSuggestedInvocationPhrase(value string) - PersistentIdentifier() UserActivityPersistentIdentifier - SetPersistentIdentifier(value UserActivityPersistentIdentifier) - Title() string - SetTitle(value string) + DetectedBarcodeDescriptor() objc.Object RequiredUserInfoKeys() Set SetRequiredUserInfoKeys(value ISet) - WebpageURL() URL - SetWebpageURL(value IURL) IsEligibleForPublicIndexing() bool SetEligibleForPublicIndexing(value bool) + ActivityType() string IsEligibleForSearch() bool SetEligibleForSearch(value bool) - NeedsSave() bool - SetNeedsSave(value bool) + Title() string + SetTitle(value string) + SuggestedInvocationPhrase() string + SetSuggestedInvocationPhrase(value string) 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] @@ -96,10 +96,6 @@ func (uc _UserActivityClass) Alloc() UserActivity { return rv } -func UserActivity_Alloc() UserActivity { - return UserActivityClass.Alloc() -} - func (uc _UserActivityClass) New() UserActivity { rv := objc.Call[UserActivity](uc, objc.Sel("new")) rv.Autorelease() @@ -115,18 +111,11 @@ func (u_ UserActivity) Init() UserActivity { return rv } -// Marks the activity as currently in use by the user. [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")) -} - -// Adds the contents of the specified dictionary to the user info dictionary. [Full Topic] +// Invalidates an activity and marks it as no longer eligible for continuation. [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/1416401-invalidate?language=objc +func (u_ UserActivity) Invalidate() { + objc.Call[objc.Void](u_, objc.Sel("invalidate")) } // Requests streams back to the originating app. [Full Topic] @@ -136,18 +125,11 @@ func (u_ UserActivity) GetContinuationStreamsWithCompletionHandler(completionHan objc.Call[objc.Void](u_, objc.Sel("getContinuationStreamsWithCompletionHandler:"), completionHandler) } -// 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 (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] +// Marks the activity as currently in use by the user. [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/1413665-becomecurrent?language=objc +func (u_ UserActivity) BecomeCurrent() { + objc.Call[objc.Void](u_, objc.Sel("becomeCurrent")) } // Marks this activity object as inactive without invalidating it. [Full Topic] @@ -157,13 +139,6 @@ 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 @@ -178,52 +153,35 @@ func UserActivity_DeleteAllSavedUserActivitiesWithCompletionHandler(handler func UserActivityClass.DeleteAllSavedUserActivitiesWithCompletionHandler(handler) } -// 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/1409195-supportscontinuationstreams?language=objc -func (u_ UserActivity) SupportsContinuationStreams() bool { - rv := objc.Call[bool](u_, objc.Sel("supportsContinuationStreams")) - return rv -} - -// A Boolean value that determines whether the continuing app can request streams to be opened back to the originating app. [Full Topic] +// Adds the contents of the specified dictionary to the user info dictionary. [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/1410066-adduserinfoentriesfromdictionary?language=objc +func (u_ UserActivity) AddUserInfoEntriesFromDictionary(otherDictionary Dictionary) { + objc.Call[objc.Void](u_, objc.Sel("addUserInfoEntriesFromDictionary:"), otherDictionary) } -// A Boolean value that indicates whether a user activity represents a ClassKit context. [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/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/2980673-deletesaveduseractivitieswithper?language=objc +func (uc _UserActivityClass) DeleteSavedUserActivitiesWithPersistentIdentifiersCompletionHandler(persistentIdentifiers []UserActivityPersistentIdentifier, handler func()) { + objc.Call[objc.Void](uc, objc.Sel("deleteSavedUserActivitiesWithPersistentIdentifiers:completionHandler:"), persistentIdentifiers, handler) } -// The user activity object’s activity type. [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/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/2980673-deletesaveduseractivitieswithper?language=objc +func UserActivity_DeleteSavedUserActivitiesWithPersistentIdentifiersCompletionHandler(persistentIdentifiers []UserActivityPersistentIdentifier, handler func()) { + UserActivityClass.DeleteSavedUserActivitiesWithPersistentIdentifiersCompletionHandler(persistentIdentifiers, handler) } -// A Boolean value that indicates whether the activity can be continued on another device using Handoff. [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/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/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 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 @@ -239,51 +197,49 @@ func (u_ UserActivity) SetUserInfo(value Dictionary) { objc.Call[objc.Void](u_, objc.Sel("setUserInfo:"), value) } -// The date after which the activity is no longer eligible for Handoff or indexing. [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/1413745-expirationdate?language=objc -func (u_ UserActivity) ExpirationDate() Date { - rv := objc.Call[Date](u_, objc.Sel("expirationDate")) +// [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 } -// The date after which the activity is no longer eligible for Handoff or indexing. [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/1413745-expirationdate?language=objc -func (u_ UserActivity) SetExpirationDate(value IDate) { - objc.Call[objc.Void](u_, objc.Sel("setExpirationDate:"), objc.Ptr(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) } -// The user activity object’s delegate. [Full Topic] +// A set of properties that describe the activity. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsuseractivity/1412329-delegate?language=objc -func (u_ UserActivity) Delegate() UserActivityDelegateWrapper { - rv := objc.Call[UserActivityDelegateWrapper](u_, objc.Sel("delegate")) +// [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 } -// The user activity object’s delegate. [Full Topic] +// A set of properties that describe the activity. [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) +// [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:"), objc.Ptr(value)) } -// The user activity object’s delegate. [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/1412329-delegate?language=objc -func (u_ UserActivity) SetDelegateObject(valueObject objc.IObject) { - objc.Call[objc.Void](u_, objc.Sel("setDelegate:"), objc.Ptr(valueObject)) +// [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 } -// The barcode that the system scanner passes in. [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/2935570-detectedbarcodedescriptor?language=objc -func (u_ UserActivity) DetectedBarcodeDescriptor() objc.Object { - rv := objc.Call[objc.Object](u_, objc.Sel("detectedBarcodeDescriptor")) - return rv +// [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:"), objc.Ptr(value)) } // A string that identifies the user activity’s content. [Full Topic] @@ -301,57 +257,65 @@ func (u_ UserActivity) SetTargetContentIdentifier(value string) { objc.Call[objc.Void](u_, objc.Sel("setTargetContentIdentifier:"), value) } -// A set of properties that describe the activity. [Full Topic] +// The barcode that the system scanner passes in. [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/2935570-detectedbarcodedescriptor?language=objc +func (u_ UserActivity) DetectedBarcodeDescriptor() objc.Object { + rv := objc.Call[objc.Object](u_, objc.Sel("detectedBarcodeDescriptor")) return rv } -// A set of properties that describe the activity. [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/1616398-contentattributeset?language=objc -func (u_ UserActivity) SetContentAttributeSet(value objc.IObject) { - objc.Call[objc.Void](u_, objc.Sel("setContentAttributeSet:"), objc.Ptr(value)) +// [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 } -// The identifier path associated with a user activity generated by an app that adopts ClassKit. [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/2866826-contextidentifierpath?language=objc -func (u_ UserActivity) ContextIdentifierPath() []string { - rv := objc.Call[[]string](u_, objc.Sel("contextIdentifierPath")) - return rv +// [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:"), objc.Ptr(value)) } -// A phrase suggested to the user when they create a shortcut. [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/2976237-suggestedinvocationphrase?language=objc -func (u_ UserActivity) SuggestedInvocationPhrase() string { - rv := objc.Call[string](u_, objc.Sel("suggestedInvocationPhrase")) +// [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 } -// A phrase suggested to the user when they create a shortcut. [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/2976237-suggestedinvocationphrase?language=objc -func (u_ UserActivity) SetSuggestedInvocationPhrase(value string) { - objc.Call[objc.Void](u_, objc.Sel("setSuggestedInvocationPhrase:"), 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) } -// A value used to identify the user activity. [Full Topic] +// The user activity object’s activity type. [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/1409611-activitytype?language=objc +func (u_ UserActivity) ActivityType() string { + rv := objc.Call[string](u_, objc.Sel("activityType")) return rv } -// A value used to identify the user activity. [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/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/1417761-eligibleforsearch?language=objc +func (u_ UserActivity) IsEligibleForSearch() bool { + rv := objc.Call[bool](u_, objc.Sel("isEligibleForSearch")) + return rv +} + +// 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/1417761-eligibleforsearch?language=objc +func (u_ UserActivity) SetEligibleForSearch(value bool) { + objc.Call[objc.Void](u_, objc.Sel("setEligibleForSearch:"), value) } // An optional, user-visible title for this activity, such as a document name or web page title. [Full Topic] @@ -369,107 +333,139 @@ func (u_ UserActivity) SetTitle(value string) { objc.Call[objc.Void](u_, objc.Sel("setTitle:"), value) } -// A set of keys that represent the minimal information about the activity that should be stored for later restoration. [Full Topic] +// A phrase suggested to the user when they create a shortcut. [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/2976237-suggestedinvocationphrase?language=objc +func (u_ UserActivity) SuggestedInvocationPhrase() string { + rv := objc.Call[string](u_, objc.Sel("suggestedInvocationPhrase")) return rv } -// A set of keys that represent the minimal information about the activity that should be stored for later restoration. [Full Topic] +// A phrase suggested to the user when they create a shortcut. [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:"), objc.Ptr(value)) +// [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) } -// The URL of the webpage to load in a browser to continue the 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/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/1408023-keywords?language=objc +func (u_ UserActivity) Keywords() Set { + rv := objc.Call[Set](u_, objc.Sel("keywords")) return rv } -// The URL of the webpage to load in a browser to continue the 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/1418086-webpageurl?language=objc -func (u_ UserActivity) SetWebpageURL(value IURL) { - objc.Call[objc.Void](u_, objc.Sel("setWebpageURL:"), objc.Ptr(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:"), objc.Ptr(value)) } -// A Boolean value that indicates whether the activity can be publicly accessed by all iOS users. [Full Topic] +// 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/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/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 publicly accessed by all iOS users. [Full Topic] +// 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/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/1410971-eligibleforhandoff?language=objc +func (u_ UserActivity) SetEligibleForHandoff(value bool) { + objc.Call[objc.Void](u_, objc.Sel("setEligibleForHandoff:"), value) } -// A Boolean value that indicates whether the activity should be added to the on-device index. [Full Topic] +// The URL of the webpage that linked to the webpage URL. [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/2875762-referrerurl?language=objc +func (u_ UserActivity) ReferrerURL() URL { + rv := objc.Call[URL](u_, objc.Sel("referrerURL")) return rv } -// A Boolean value that indicates whether the activity should be added to the on-device index. [Full Topic] +// The URL of the webpage that linked to the webpage URL. [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/2875762-referrerurl?language=objc +func (u_ UserActivity) SetReferrerURL(value IURL) { + objc.Call[objc.Void](u_, objc.Sel("setReferrerURL:"), objc.Ptr(value)) } -// A Boolean value that indicates whether the state of the activity needs to be updated. [Full Topic] +// The user activity object’s delegate. [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/1412329-delegate?language=objc +func (u_ UserActivity) Delegate() UserActivityDelegateObject { + rv := objc.Call[UserActivityDelegateObject](u_, objc.Sel("delegate")) return rv } -// A Boolean value that indicates whether the state of the activity needs to be updated. [Full Topic] +// The user activity object’s delegate. [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/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) } -// A set of localized keywords that can help users find the activity in search results. [Full Topic] +// The user activity object’s delegate. [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/1412329-delegate?language=objc +func (u_ UserActivity) SetDelegateObject(valueObject objc.IObject) { + objc.Call[objc.Void](u_, objc.Sel("setDelegate:"), objc.Ptr(valueObject)) +} + +// A Boolean value that indicates whether a user activity represents a ClassKit context. [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 } -// A set of localized keywords that can help users find the activity in search results. [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/1408023-keywords?language=objc -func (u_ UserActivity) SetKeywords(value ISet) { - objc.Call[objc.Void](u_, objc.Sel("setKeywords:"), objc.Ptr(value)) +// [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 } -// The URL of the webpage that linked to the webpage URL. [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/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/1409195-supportscontinuationstreams?language=objc +func (u_ UserActivity) SetSupportsContinuationStreams(value bool) { + objc.Call[objc.Void](u_, objc.Sel("setSupportsContinuationStreams:"), value) +} + +// A value used to identify the user activity. [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")) return rv } -// The URL of the webpage that linked to the webpage URL. [Full Topic] +// A value used to identify the user activity. [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:"), objc.Ptr(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) +} + +// 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/1418086-webpageurl?language=objc +func (u_ UserActivity) WebpageURL() URL { + rv := objc.Call[URL](u_, objc.Sel("webpageURL")) + return rv +} + +// 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/1418086-webpageurl?language=objc +func (u_ UserActivity) SetWebpageURL(value IURL) { + objc.Call[objc.Void](u_, objc.Sel("setWebpageURL:"), objc.Ptr(value)) } diff --git a/macos/foundation/user_activity_delegate.gen.go b/macos/foundation/user_activity_delegate.gen.go index cf711640..22168583 100644 --- a/macos/foundation/user_activity_delegate.gen.go +++ b/macos/foundation/user_activity_delegate.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package foundation @@ -14,20 +14,20 @@ type PUserActivityDelegate interface { UserActivityWasContinued(userActivity UserActivity) HasUserActivityWasContinued() bool - // optional - UserActivityWillSave(userActivity UserActivity) - HasUserActivityWillSave() bool - // optional UserActivityDidReceiveInputStreamOutputStream(userActivity UserActivity, inputStream InputStream, outputStream OutputStream) HasUserActivityDidReceiveInputStreamOutputStream() bool + + // optional + UserActivityWillSave(userActivity UserActivity) + HasUserActivityWillSave() bool } // A delegate implementation builder for the [PUserActivityDelegate] protocol. type UserActivityDelegate struct { _UserActivityWasContinued func(userActivity UserActivity) - _UserActivityWillSave func(userActivity UserActivity) _UserActivityDidReceiveInputStreamOutputStream func(userActivity UserActivity, inputStream InputStream, outputStream OutputStream) + _UserActivityWillSave func(userActivity UserActivity) } func (di *UserActivityDelegate) HasUserActivityWasContinued() bool { @@ -47,6 +47,23 @@ 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 } @@ -64,58 +81,44 @@ 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 -} +// ensure impl type implements protocol interface +var _ PUserActivityDelegate = (*UserActivityDelegateObject)(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) UserActivityDidReceiveInputStreamOutputStream(userActivity UserActivity, inputStream InputStream, outputStream OutputStream) { - di._UserActivityDidReceiveInputStreamOutputStream(userActivity, inputStream, outputStream) -} - -// A concrete type wrapper for the [PUserActivityDelegate] protocol. -type UserActivityDelegateWrapper struct { +// A concrete type for the [PUserActivityDelegate] protocol. +type UserActivityDelegateObject struct { objc.Object } -func (u_ UserActivityDelegateWrapper) HasUserActivityWasContinued() bool { +func (u_ UserActivityDelegateObject) HasUserActivityWasContinued() bool { return u_.RespondsToSelector(objc.Sel("userActivityWasContinued:")) } // Notifies the delegate that the user activity was continued on another device. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/foundation/nsuseractivitydelegate/1413276-useractivitywascontinued?language=objc -func (u_ UserActivityDelegateWrapper) UserActivityWasContinued(userActivity IUserActivity) { +func (u_ UserActivityDelegateObject) UserActivityWasContinued(userActivity UserActivity) { objc.Call[objc.Void](u_, objc.Sel("userActivityWasContinued:"), objc.Ptr(userActivity)) } -func (u_ UserActivityDelegateWrapper) HasUserActivityWillSave() bool { - return u_.RespondsToSelector(objc.Sel("userActivityWillSave:")) +func (u_ UserActivityDelegateObject) HasUserActivityDidReceiveInputStreamOutputStream() bool { + return u_.RespondsToSelector(objc.Sel("userActivity:didReceiveInputStream:outputStream:")) } -// Notifies the delegate that the user activity will be saved to be continued or persisted. [Full Topic] +// 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/1414848-useractivitywillsave?language=objc -func (u_ UserActivityDelegateWrapper) UserActivityWillSave(userActivity IUserActivity) { - objc.Call[objc.Void](u_, objc.Sel("userActivityWillSave:"), objc.Ptr(userActivity)) +// [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:"), objc.Ptr(userActivity), objc.Ptr(inputStream), objc.Ptr(outputStream)) } -func (u_ UserActivityDelegateWrapper) HasUserActivityDidReceiveInputStreamOutputStream() bool { - return u_.RespondsToSelector(objc.Sel("userActivity:didReceiveInputStream:outputStream:")) +func (u_ UserActivityDelegateObject) HasUserActivityWillSave() bool { + return u_.RespondsToSelector(objc.Sel("userActivityWillSave:")) } -// Notifies the user activity delegate that an input and output streams are available to open. [Full Topic] +// Notifies the delegate that the user activity will be saved to be continued or persisted. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsuseractivitydelegate/1407386-useractivity?language=objc -func (u_ UserActivityDelegateWrapper) UserActivityDidReceiveInputStreamOutputStream(userActivity IUserActivity, inputStream IInputStream, outputStream IOutputStream) { - objc.Call[objc.Void](u_, objc.Sel("userActivity:didReceiveInputStream:outputStream:"), objc.Ptr(userActivity), objc.Ptr(inputStream), objc.Ptr(outputStream)) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsuseractivitydelegate/1414848-useractivitywillsave?language=objc +func (u_ UserActivityDelegateObject) UserActivityWillSave(userActivity UserActivity) { + objc.Call[objc.Void](u_, objc.Sel("userActivityWillSave:"), objc.Ptr(userActivity)) } diff --git a/macos/foundation/user_apple_script_task.gen.go b/macos/foundation/user_apple_script_task.gen.go index 97e105b8..62a2be87 100644 --- a/macos/foundation/user_apple_script_task.gen.go +++ b/macos/foundation/user_apple_script_task.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package foundation @@ -39,10 +39,6 @@ func (uc _UserAppleScriptTaskClass) Alloc() UserAppleScriptTask { return rv } -func UserAppleScriptTask_Alloc() UserAppleScriptTask { - return UserAppleScriptTaskClass.Alloc() -} - func (uc _UserAppleScriptTaskClass) New() UserAppleScriptTask { rv := objc.Call[UserAppleScriptTask](uc, objc.Sel("new")) rv.Autorelease() diff --git a/macos/foundation/user_automator_task.gen.go b/macos/foundation/user_automator_task.gen.go index a4c3d485..67ad06e5 100644 --- a/macos/foundation/user_automator_task.gen.go +++ b/macos/foundation/user_automator_task.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package foundation @@ -41,10 +41,6 @@ func (uc _UserAutomatorTaskClass) Alloc() UserAutomatorTask { return rv } -func UserAutomatorTask_Alloc() UserAutomatorTask { - return UserAutomatorTaskClass.Alloc() -} - func (uc _UserAutomatorTaskClass) New() UserAutomatorTask { rv := objc.Call[UserAutomatorTask](uc, objc.Sel("new")) rv.Autorelease() diff --git a/macos/foundation/user_defaults.gen.go b/macos/foundation/user_defaults.gen.go index 23f795ea..6aeb7f2a 100644 --- a/macos/foundation/user_defaults.gen.go +++ b/macos/foundation/user_defaults.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package foundation @@ -18,36 +18,37 @@ type _UserDefaultsClass struct { // An interface definition for the [UserDefaults] class. type IUserDefaults interface { objc.IObject - URLForKey(defaultName string) URL - ObjectForKey(defaultName string) objc.Object - SetBoolForKey(value bool, defaultName string) - ArrayForKey(defaultName string) []objc.Object + Synchronize() bool StringArrayForKey(defaultName string) []string - SetFloatForKey(value float64, defaultName string) - StringForKey(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) float64 + 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 - RemovePersistentDomainForName(domainName string) - SetObjectForKey(value objc.IObject, defaultName string) - IntegerForKey(defaultName string) int + ObjectIsForcedForKeyInDomain(key string, domain string) bool 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 + ArrayForKey(defaultName string) []objc.Object DoubleForKey(defaultName string) float64 - DictionaryForKey(defaultName string) map[string]objc.Object - RegisterDefaults(registrationDictionary map[string]objc.IObject) - SetIntegerForKey(value int, defaultName string) - RemoveSuiteNamed(suiteName string) - SetURLForKey(url IURL, defaultName string) - RemoveVolatileDomainForName(domainName string) - DictionaryRepresentation() map[string]objc.Object - Synchronize() bool + SetFloatForKey(value float64, defaultName string) RemoveObjectForKey(defaultName string) - SetVolatileDomainForName(domain map[string]objc.IObject, domainName string) - PersistentDomainForName(domainName string) map[string]objc.Object AddSuiteNamed(suiteName string) + RemoveVolatileDomainForName(domainName string) + RemovePersistentDomainForName(domainName string) + SetPersistentDomainForName(domain map[string]objc.IObject, domainName string) + DictionaryForKey(defaultName string) map[string]objc.Object + StringForKey(defaultName string) string + IntegerForKey(defaultName string) int + SetIntegerForKey(value int, defaultName string) + SetDoubleForKey(value float64, defaultName string) + ObjectForKey(defaultName string) objc.Object VolatileDomainNames() []string } @@ -64,6 +65,11 @@ 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 @@ -78,20 +84,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 } -func UserDefaults_Alloc() UserDefaults { - return UserDefaultsClass.Alloc() -} - func (uc _UserDefaultsClass) New() UserDefaults { rv := objc.Call[UserDefaults](uc, objc.Sel("new")) rv.Autorelease() @@ -102,19 +99,27 @@ func NewUserDefaults() UserDefaults { return UserDefaultsClass.New() } -// Returns the URL associated with the specified key. [Full Topic] +// 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/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/1414005-synchronize?language=objc +func (u_ UserDefaults) Synchronize() bool { + rv := objc.Call[bool](u_, objc.Sel("synchronize")) return rv } -// Returns the object 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/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/1416414-stringarrayforkey?language=objc +func (u_ UserDefaults) StringArrayForKey(defaultName string) []string { + rv := objc.Call[[]string](u_, objc.Sel("stringArrayForKey:"), defaultName) + return rv +} + +// 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/1408635-objectisforcedforkey?language=objc +func (u_ UserDefaults) ObjectIsForcedForKey(key string) bool { + rv := objc.Call[bool](u_, objc.Sel("objectIsForcedForKey:"), key) return rv } @@ -125,35 +130,27 @@ func (u_ UserDefaults) SetBoolForKey(value bool, defaultName string) { objc.Call[objc.Void](u_, objc.Sel("setBool:forKey:"), value, defaultName) } -// Returns the array associated with the specified key. [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/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/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 } -// 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 } -// Sets the value of the specified default key to the specified float value. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsuserdefaults/1413320-setfloat?language=objc -func (u_ UserDefaults) SetFloatForKey(value float64, defaultName string) { - objc.Call[objc.Void](u_, objc.Sel("setFloat:forKey:"), value, defaultName) -} - -// Returns the string associated with the specified key. [Full Topic] +// Sets the value of the specified default 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 +// [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) } // Returns the float value associated with the specified key. [Full Topic] @@ -164,71 +161,79 @@ func (u_ UserDefaults) FloatForKey(defaultName string) float64 { return rv } -// Returns the Boolean value associated with the specified key. [Full Topic] +// Sets the value of the specified default key to the specified URL. [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) - return rv +// [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:"), objc.Ptr(url), defaultName) } -// Removes the contents of the specified persistent domain from the user’s defaults. [Full Topic] +// Returns the data object associated with the specified key. [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/1409590-dataforkey?language=objc +func (u_ UserDefaults) DataForKey(defaultName string) []byte { + rv := objc.Call[[]byte](u_, objc.Sel("dataForKey:"), defaultName) + return rv } -// Sets the value of the specified default key. [Full Topic] +// Removes the specified domain name from the receiver’s search list. [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/1408047-removesuitenamed?language=objc +func (u_ UserDefaults) RemoveSuiteNamed(suiteName string) { + objc.Call[objc.Void](u_, objc.Sel("removeSuiteNamed:"), suiteName) } -// Returns the integer value 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/1407405-integerforkey?language=objc -func (u_ UserDefaults) IntegerForKey(defaultName string) int { - rv := objc.Call[int](u_, objc.Sel("integerForKey:"), 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 } -// Returns the dictionary for the specified volatile domain. [Full Topic] +// Adds the contents of the specified dictionary to the registration domain. [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/1417065-registerdefaults?language=objc +func (u_ UserDefaults) RegisterDefaults(registrationDictionary map[string]objc.IObject) { + objc.Call[objc.Void](u_, objc.Sel("registerDefaults:"), registrationDictionary) } -// Returns a Boolean value indicating whether the specified key is managed by an administrator. [Full Topic] +// Sets the dictionary for the specified volatile domain. [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/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 Boolean value associated with the specified key. [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) return rv } -// Sets a dictionary for the specified persistent domain. [Full Topic] +// Returns a Boolean value indicating whether the key in the specified domain is managed by an administrator. [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) +// [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 } -// Sets the value of the specified default key to the double value. [Full Topic] +// Returns 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/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 data 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/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/1414792-arrayforkey?language=objc +func (u_ UserDefaults) ArrayForKey(defaultName string) []objc.Object { + rv := objc.Call[[]objc.Object](u_, objc.Sel("arrayForKey:"), defaultName) return rv } @@ -240,40 +245,25 @@ func (u_ UserDefaults) DoubleForKey(defaultName string) float64 { return rv } -// 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 -} - -// Adds the contents of the specified dictionary to the registration domain. [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) -} - -// Sets the value of the specified default key to the specified integer value. [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/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/1413320-setfloat?language=objc +func (u_ UserDefaults) SetFloatForKey(value float64, defaultName string) { + objc.Call[objc.Void](u_, objc.Sel("setFloat:forKey:"), value, defaultName) } -// Removes the specified domain name from the receiver’s search list. [Full Topic] +// Removes the value of the specified default key. [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/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 specified URL. [Full Topic] +// Inserts the specified domain name into the receiver’s search list. [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:"), objc.Ptr(url), defaultName) +// [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) } // Removes the specified volatile domain from the user’s defaults. [Full Topic] @@ -283,20 +273,11 @@ func (u_ UserDefaults) RemoveVolatileDomainForName(domainName string) { objc.Call[objc.Void](u_, objc.Sel("removeVolatileDomainForName:"), domainName) } -// 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/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] +// Removes the contents of the specified persistent domain from the user’s defaults. [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 +// [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) } // This method has no effect and shouldn't be used. [Full Topic] @@ -313,33 +294,65 @@ func UserDefaults_ResetStandardUserDefaults() { UserDefaultsClass.ResetStandardUserDefaults() } -// Removes the value of the specified default key. [Full Topic] +// Sets a dictionary for the specified persistent 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/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) } -// Sets the dictionary for the specified volatile domain. [Full Topic] +// Returns the dictionary object associated with the specified key. [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/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 a dictionary representation of the defaults for the specified domain. [Full Topic] +// Returns the string associated with the specified 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) +// [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 } -// Inserts the specified domain name into the receiver’s search list. [Full Topic] +// Returns the integer value associated with the specified key. [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/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] +// +// [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) +} + +// Sets the value of the specified default key to the double value. [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) +} + +// Returns the object associated with the specified key. [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) + return rv +} + +// 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 } // Returns the shared defaults object. [Full Topic] @@ -356,11 +369,3 @@ 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_notification.gen.go b/macos/foundation/user_notification.gen.go index 23660d93..dde8acf7 100644 --- a/macos/foundation/user_notification.gen.go +++ b/macos/foundation/user_notification.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package foundation @@ -38,10 +38,6 @@ func (uc _UserNotificationClass) Alloc() UserNotification { return rv } -func UserNotification_Alloc() UserNotification { - return UserNotificationClass.Alloc() -} - func (uc _UserNotificationClass) New() UserNotification { rv := objc.Call[UserNotification](uc, objc.Sel("new")) rv.Autorelease() diff --git a/macos/foundation/user_notification_action.gen.go b/macos/foundation/user_notification_action.gen.go index 4e20eb2b..60a204b4 100644 --- a/macos/foundation/user_notification_action.gen.go +++ b/macos/foundation/user_notification_action.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package foundation @@ -38,10 +38,6 @@ func (uc _UserNotificationActionClass) Alloc() UserNotificationAction { return rv } -func UserNotificationAction_Alloc() UserNotificationAction { - return UserNotificationActionClass.Alloc() -} - func (uc _UserNotificationActionClass) New() UserNotificationAction { rv := objc.Call[UserNotificationAction](uc, objc.Sel("new")) rv.Autorelease() diff --git a/macos/foundation/user_notification_center.gen.go b/macos/foundation/user_notification_center.gen.go index 3a7fe5e2..9d9454a1 100644 --- a/macos/foundation/user_notification_center.gen.go +++ b/macos/foundation/user_notification_center.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package foundation @@ -38,10 +38,6 @@ func (uc _UserNotificationCenterClass) Alloc() UserNotificationCenter { return rv } -func UserNotificationCenter_Alloc() UserNotificationCenter { - return UserNotificationCenterClass.Alloc() -} - func (uc _UserNotificationCenterClass) New() UserNotificationCenter { rv := objc.Call[UserNotificationCenter](uc, objc.Sel("new")) rv.Autorelease() diff --git a/macos/foundation/user_notification_center_delegate.gen.go b/macos/foundation/user_notification_center_delegate.gen.go index 96207147..492cc3b7 100644 --- a/macos/foundation/user_notification_center_delegate.gen.go +++ b/macos/foundation/user_notification_center_delegate.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package foundation @@ -16,7 +16,10 @@ type PUserNotificationCenterDelegate interface { type UserNotificationCenterDelegate struct { } -// A concrete type wrapper for the [PUserNotificationCenterDelegate] protocol. -type UserNotificationCenterDelegateWrapper struct { +// ensure impl type implements protocol interface +var _ PUserNotificationCenterDelegate = (*UserNotificationCenterDelegateObject)(nil) + +// A concrete type for the [PUserNotificationCenterDelegate] protocol. +type UserNotificationCenterDelegateObject struct { objc.Object } diff --git a/macos/foundation/user_script_task.gen.go b/macos/foundation/user_script_task.gen.go index d8eb267b..1e4e8fe8 100644 --- a/macos/foundation/user_script_task.gen.go +++ b/macos/foundation/user_script_task.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package foundation @@ -54,10 +54,6 @@ func (uc _UserScriptTaskClass) Alloc() UserScriptTask { return rv } -func UserScriptTask_Alloc() UserScriptTask { - return UserScriptTaskClass.Alloc() -} - func (uc _UserScriptTaskClass) New() UserScriptTask { rv := objc.Call[UserScriptTask](uc, objc.Sel("new")) rv.Autorelease() diff --git a/macos/foundation/user_unix_task.gen.go b/macos/foundation/user_unix_task.gen.go index 9b82effe..f420a23f 100644 --- a/macos/foundation/user_unix_task.gen.go +++ b/macos/foundation/user_unix_task.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package foundation @@ -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] @@ -45,10 +45,6 @@ func (uc _UserUnixTaskClass) Alloc() UserUnixTask { return rv } -func UserUnixTask_Alloc() UserUnixTask { - return UserUnixTaskClass.Alloc() -} - func (uc _UserUnixTaskClass) New() UserUnixTask { rv := objc.Call[UserUnixTask](uc, objc.Sel("new")) rv.Autorelease() @@ -85,6 +81,21 @@ 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:"), objc.Ptr(value)) +} + // The standard output stream. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/foundation/nsuserunixtask/1418151-standardoutput?language=objc @@ -114,18 +125,3 @@ func (u_ UserUnixTask) StandardError() FileHandle { func (u_ UserUnixTask) SetStandardError(value IFileHandle) { objc.Call[objc.Void](u_, objc.Sel("setStandardError:"), objc.Ptr(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:"), objc.Ptr(value)) -} diff --git a/macos/foundation/uuid.gen.go b/macos/foundation/uuid.gen.go index de3a92ba..9519ec06 100644 --- a/macos/foundation/uuid.gen.go +++ b/macos/foundation/uuid.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package foundation @@ -50,16 +50,18 @@ func NewUUIDWithUUIDBytes(bytes *uint8) UUID { return instance } -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 (u_ UUID) Init() UUID { @@ -67,18 +69,16 @@ func (u_ UUID) Init() UUID { return rv } -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 (uc _UUIDClass) Alloc() UUID { @@ -86,10 +86,6 @@ func (uc _UUIDClass) Alloc() UUID { return rv } -func UUID_Alloc() UUID { - return UUIDClass.Alloc() -} - func (uc _UUIDClass) New() UUID { rv := objc.Call[UUID](uc, objc.Sel("new")) rv.Autorelease() diff --git a/macos/foundation/value.gen.go b/macos/foundation/value.gen.go index 44848eca..b677f7cc 100644 --- a/macos/foundation/value.gen.go +++ b/macos/foundation/value.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package foundation @@ -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 - CMTimeRangeValue() coremedia.TimeRange - SizeValue() Size EdgeInsetsValue() EdgeInsets - RangeValue() Range - CMTimeMappingValue() coremedia.TimeMapping - RectValue() Rect + SizeValue() Size NonretainedObjectValue() objc.Object + RectValue() Rect + CMTimeRangeValue() coremedia.TimeRange } // A simple container for a single C or Objective-C data item. [Full Topic] @@ -66,10 +66,6 @@ func (vc _ValueClass) Alloc() Value { return rv } -func Value_Alloc() Value { - return ValueClass.Alloc() -} - func (vc _ValueClass) New() Value { rv := objc.Call[Value](vc, objc.Sel("new")) rv.Autorelease() @@ -85,6 +81,51 @@ 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 @@ -115,21 +156,6 @@ 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 @@ -137,19 +163,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 rectangle structure. [Full Topic] +// Creates a new value object containing the specified Foundation range structure. [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/1410315-valuewithrange?language=objc +func (vc _ValueClass) ValueWithRange(range_ Range) Value { + rv := objc.Call[Value](vc, objc.Sel("valueWithRange:"), range_) return rv } -// Creates a new value object containing the specified Foundation rectangle structure. [Full Topic] +// Creates a new value object containing the specified Foundation range structure. [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/1410315-valuewithrange?language=objc +func Value_ValueWithRange(range_ Range) Value { + return ValueClass.ValueWithRange(range_) } // Returns a Boolean value that indicates whether the value object and another value object are equal. [Full Topic] @@ -160,36 +186,6 @@ 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 @@ -205,34 +201,34 @@ func Value_ValueWithPoint(point Point) Value { return ValueClass.ValueWithPoint(point) } -// Creates a new value object containing the specified Foundation range structure. [Full Topic] +// 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/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/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 new value object containing the specified Foundation range structure. [Full Topic] +// 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/1410315-valuewithrange?language=objc -func Value_ValueWithRange(range_ Range) Value { - return ValueClass.ValueWithRange(range_) +// [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_) } -// Creates a value object containing the specified pointer. [Full Topic] +// Creates a new value object containing the specified CoreMedia time mapping structure. [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) +// [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 value object containing the specified pointer. [Full Topic] +// Creates a new value object containing the specified CoreMedia time mapping structure. [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) +// [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 CoreMedia time range structure. [Full Topic] @@ -250,21 +246,6 @@ 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 @@ -280,20 +261,19 @@ func Value_ValueWithSize(size Size) Value { return ValueClass.ValueWithSize(size) } -// A C string containing the Objective-C type of the data contained in the value object. [Full Topic] +// Creates a new value object containing the specified Foundation rectangle structure. [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")) +// [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 } -// The CoreMedia time structure representation of the value. [Full Topic] +// Creates a new value object containing the specified Foundation rectangle structure. [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")) - return rv +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsvalue/1391281-valuewithrect?language=objc +func Value_ValueWithRect(rect Rect) Value { + return ValueClass.ValueWithRect(rect) } // The Foundation point structure representation of the value. [Full Topic] @@ -304,27 +284,43 @@ func (v_ Value) PointValue() Point { return rv } -// Returns the value as an untyped pointer. [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/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/1412365-objctype?language=objc +func (v_ Value) ObjCType() *uint8 { + rv := objc.Call[*uint8](v_, objc.Sel("objCType")) return rv } -// The CoreMedia time range structure representation of the value. [Full Topic] +// The CoreMedia time mapping structure representation of the value. [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/1387277-cmtimemappingvalue?language=objc +func (v_ Value) CMTimeMappingValue() coremedia.TimeMapping { + rv := objc.Call[coremedia.TimeMapping](v_, objc.Sel("CMTimeMappingValue")) 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 CoreMedia time 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")) + return rv +} + +// Returns the value as an untyped pointer. [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")) return rv } @@ -336,19 +332,19 @@ func (v_ Value) EdgeInsetsValue() EdgeInsets { return rv } -// The Foundation range structure representation of the value. [Full Topic] +// The Foundation size structure representation of the value. [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/1391301-sizevalue?language=objc +func (v_ Value) SizeValue() Size { + rv := objc.Call[Size](v_, objc.Sel("sizeValue")) return rv } -// The CoreMedia time mapping 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/1387277-cmtimemappingvalue?language=objc -func (v_ Value) CMTimeMappingValue() coremedia.TimeMapping { - rv := objc.Call[coremedia.TimeMapping](v_, objc.Sel("CMTimeMappingValue")) +// [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 } @@ -360,10 +356,10 @@ func (v_ Value) RectValue() Rect { return rv } -// The value as a non-retained pointer to an object. [Full Topic] +// The CoreMedia time range 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/1385930-cmtimerangevalue?language=objc +func (v_ Value) CMTimeRangeValue() coremedia.TimeRange { + rv := objc.Call[coremedia.TimeRange](v_, objc.Sel("CMTimeRangeValue")) return rv } diff --git a/macos/foundation/value_transformer.gen.go b/macos/foundation/value_transformer.gen.go index 4e211233..b8919865 100644 --- a/macos/foundation/value_transformer.gen.go +++ b/macos/foundation/value_transformer.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package foundation @@ -40,10 +40,6 @@ func (vc _ValueTransformerClass) Alloc() ValueTransformer { return rv } -func ValueTransformer_Alloc() ValueTransformer { - return ValueTransformerClass.Alloc() -} - func (vc _ValueTransformerClass) New() ValueTransformer { rv := objc.Call[ValueTransformer](vc, objc.Sel("new")) rv.Autorelease() @@ -59,14 +55,6 @@ 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 @@ -82,6 +70,21 @@ 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 @@ -97,27 +100,35 @@ func ValueTransformer_ValueTransformerForName(name ValueTransformerName) ValueTr return ValueTransformerClass.ValueTransformerForName(name) } -// Returns the result of the reverse transformation of a given value. [Full Topic] +// Returns a Boolean value that indicates whether the receiver can reverse a transformation. [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) +// [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 an array of all the registered value transformers. [Full Topic] +// Returns a Boolean value that indicates whether the receiver can reverse a transformation. [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")) +// [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] +// +// [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 an array of all the registered value transformers. [Full Topic] +// Returns the result of the reverse transformation of a given value. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsvaluetransformer/1402012-valuetransformernames?language=objc -func ValueTransformer_ValueTransformerNames() []ValueTransformerName { - return ValueTransformerClass.ValueTransformerNames() +// [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 } // Registers the provided value transformer with a given identifier. [Full Topic] @@ -133,18 +144,3 @@ 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 c1bbf539..1385bd69 100644 --- a/macos/foundation/whose_specifier.gen.go +++ b/macos/foundation/whose_specifier.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package foundation @@ -18,16 +18,16 @@ type _WhoseSpecifierClass struct { // An interface definition for the [WhoseSpecifier] class. type IWhoseSpecifier interface { IScriptObjectSpecifier - StartSubelementIndex() int - SetStartSubelementIndex(value int) + StartSubelementIdentifier() WhoseSubelementIdentifier + SetStartSubelementIdentifier(value WhoseSubelementIdentifier) EndSubelementIdentifier() WhoseSubelementIdentifier SetEndSubelementIdentifier(value WhoseSubelementIdentifier) - Test() ScriptWhoseTest - SetTest(value IScriptWhoseTest) + StartSubelementIndex() int + SetStartSubelementIndex(value int) EndSubelementIndex() int SetEndSubelementIndex(value int) - StartSubelementIdentifier() WhoseSubelementIdentifier - SetStartSubelementIdentifier(value WhoseSubelementIdentifier) + Test() ScriptWhoseTest + SetTest(value IScriptWhoseTest) } // A specifier that indicates every object in a collection matching a condition. [Full Topic] @@ -62,10 +62,6 @@ func (wc _WhoseSpecifierClass) Alloc() WhoseSpecifier { return rv } -func WhoseSpecifier_Alloc() WhoseSpecifier { - return WhoseSpecifierClass.Alloc() -} - func (wc _WhoseSpecifierClass) New() WhoseSpecifier { rv := objc.Call[WhoseSpecifier](wc, objc.Sel("new")) rv.Autorelease() @@ -109,19 +105,19 @@ func NewWhoseSpecifierWithContainerSpecifierKey(container IScriptObjectSpecifier return instance } -// 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 start sub-element identifier for 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/1413408-startsubelementidentifier?language=objc +func (w_ WhoseSpecifier) StartSubelementIdentifier() WhoseSubelementIdentifier { + rv := objc.Call[WhoseSubelementIdentifier](w_, objc.Sel("startSubelementIdentifier")) 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 start sub-element identifier for 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/1413408-startsubelementidentifier?language=objc +func (w_ WhoseSpecifier) SetStartSubelementIdentifier(value WhoseSubelementIdentifier) { + objc.Call[objc.Void](w_, objc.Sel("setStartSubelementIdentifier:"), value) } // Sets the end sub-element identifier for the specifier to the value of a given sub-element. [Full Topic] @@ -139,19 +135,19 @@ func (w_ WhoseSpecifier) SetEndSubelementIdentifier(value WhoseSubelementIdentif objc.Call[objc.Void](w_, objc.Sel("setEndSubelementIdentifier:"), value) } -// Returns the test object encapsulated by 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/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/1417856-startsubelementindex?language=objc +func (w_ WhoseSpecifier) StartSubelementIndex() int { + rv := objc.Call[int](w_, objc.Sel("startSubelementIndex")) return rv } -// Returns the test object encapsulated by 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/1412482-test?language=objc -func (w_ WhoseSpecifier) SetTest(value IScriptWhoseTest) { - objc.Call[objc.Void](w_, objc.Sel("setTest:"), objc.Ptr(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 index position of the last sub-element within the range of objects being tested that pass the specifier’s test. [Full Topic] @@ -169,17 +165,17 @@ func (w_ WhoseSpecifier) SetEndSubelementIndex(value int) { objc.Call[objc.Void](w_, objc.Sel("setEndSubelementIndex:"), value) } -// Returns the start sub-element identifier for the receiver. [Full Topic] +// Returns the test object encapsulated by the receiver. [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/1412482-test?language=objc +func (w_ WhoseSpecifier) Test() ScriptWhoseTest { + rv := objc.Call[ScriptWhoseTest](w_, objc.Sel("test")) return rv } -// Returns the start sub-element identifier for the receiver. [Full Topic] +// Returns the test object encapsulated by the receiver. [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/1412482-test?language=objc +func (w_ WhoseSpecifier) SetTest(value IScriptWhoseTest) { + objc.Call[objc.Void](w_, objc.Sel("setTest:"), objc.Ptr(value)) } diff --git a/macos/foundation/xml_document.gen.go b/macos/foundation/xml_document.gen.go index c4e4d038..a5338197 100644 --- a/macos/foundation/xml_document.gen.go +++ b/macos/foundation/xml_document.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package foundation @@ -18,31 +18,31 @@ type _XMLDocumentClass struct { // An interface definition for the [XMLDocument] class. type IXMLDocument interface { IXMLNode - ObjectByApplyingXSLTStringArgumentsError(xslt string, arguments map[string]string, error IError) objc.Object - RootElement() XMLElement - RemoveChildAtIndex(index uint) - ValidateAndReturnError(error IError) bool - InsertChildrenAtIndex(children []IXMLNode, index uint) - ObjectByApplyingXSLTArgumentsError(xslt []byte, arguments map[string]string, error IError) objc.Object - XMLDataWithOptions(options XMLNodeOptions) []byte - SetRootElement(root IXMLElement) + AddChild(child IXMLNode) + SetChildren(children []IXMLNode) InsertChildAtIndex(child IXMLNode, index uint) + SetRootElement(root IXMLElement) + ObjectByApplyingXSLTArgumentsError(xslt []byte, arguments map[string]string, error IError) objc.Object ObjectByApplyingXSLTAtURLArgumentsError(xsltURL IURL, argument map[string]string, error IError) objc.Object - SetChildren(children []IXMLNode) - AddChild(child IXMLNode) + ValidateAndReturnError(error IError) bool + XMLDataWithOptions(options XMLNodeOptions) []byte + ObjectByApplyingXSLTStringArgumentsError(xslt string, arguments map[string]string, error IError) objc.Object + RootElement() XMLElement ReplaceChildAtIndexWithNode(index uint, node IXMLNode) + InsertChildrenAtIndex(children []IXMLNode, index uint) + RemoveChildAtIndex(index uint) + CharacterEncoding() string + SetCharacterEncoding(value string) 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,16 +59,21 @@ func XMLDocumentFrom(ptr unsafe.Pointer) XMLDocument { } } -func (x_ XMLDocument) InitWithDataOptionsError(data []byte, mask XMLNodeOptions, error IError) XMLDocument { - rv := objc.Call[XMLDocument](x_, objc.Sel("initWithData:options:error:"), data, mask, objc.Ptr(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] +func (x_ XMLDocument) InitWithXMLStringOptionsError(string_ string, mask XMLNodeOptions, error IError) XMLDocument { + rv := objc.Call[XMLDocument](x_, objc.Sel("initWithXMLString:options:error:"), string_, mask, objc.Ptr(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/1413086-initwithdata?language=objc -func NewXMLDocumentWithDataOptionsError(data []byte, mask XMLNodeOptions, error IError) XMLDocument { - instance := XMLDocumentClass.Alloc().InitWithDataOptionsError(data, mask, error) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsxmldocument/1416228-initwithxmlstring?language=objc +func NewXMLDocumentWithXMLStringOptionsError(string_ string, mask XMLNodeOptions, error IError) XMLDocument { + instance := XMLDocumentClass.Alloc().InitWithXMLStringOptionsError(string_, mask, error) instance.Autorelease() return instance } @@ -87,20 +92,6 @@ func NewXMLDocumentWithContentsOfURLOptionsError(url IURL, mask XMLNodeOptions, return instance } -func (x_ XMLDocument) InitWithXMLStringOptionsError(string_ string, mask XMLNodeOptions, error IError) XMLDocument { - rv := objc.Call[XMLDocument](x_, objc.Sel("initWithXMLString:options:error:"), string_, mask, objc.Ptr(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 IError) 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:"), objc.Ptr(element)) return rv @@ -115,20 +106,25 @@ func NewXMLDocumentWithRootElement(element IXMLElement) XMLDocument { return instance } -func (x_ XMLDocument) Init() XMLDocument { - rv := objc.Call[XMLDocument](x_, objc.Sel("init")) +func (x_ XMLDocument) InitWithDataOptionsError(data []byte, mask XMLNodeOptions, error IError) XMLDocument { + rv := objc.Call[XMLDocument](x_, objc.Sel("initWithData:options:error:"), data, mask, objc.Ptr(error)) 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 IError) 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 } -func XMLDocument_Alloc() XMLDocument { - return XMLDocumentClass.Alloc() -} - func (xc _XMLDocumentClass) New() XMLDocument { rv := objc.Call[XMLDocument](xc, objc.Sel("new")) rv.Autorelease() @@ -139,6 +135,20 @@ 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 @@ -153,42 +163,32 @@ func NewXMLDocumentWithKindOptions(kind XMLNodeKind, options XMLNodeOptions) XML return instance } -// 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 IError) objc.Object { - rv := objc.Call[objc.Object](x_, objc.Sel("objectByApplyingXSLTString:arguments:error:"), xslt, arguments, objc.Ptr(error)) - return rv -} - -// Returns the root element of the receiver. [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/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/1415740-addchild?language=objc +func (x_ XMLDocument) AddChild(child IXMLNode) { + objc.Call[objc.Void](x_, objc.Sel("addChild:"), objc.Ptr(child)) } -// 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) } -// Validates the document against the governing schema and returns whether the document conforms to the schema. [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/1408561-validateandreturnerror?language=objc -func (x_ XMLDocument) ValidateAndReturnError(error IError) bool { - rv := objc.Call[bool](x_, objc.Sel("validateAndReturnError:"), objc.Ptr(error)) - return rv +// [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:"), objc.Ptr(child), index) } -// Inserts an array of children at a specified position in the receiver’s array of children. [Full Topic] +// Set the root element of the receiver. [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/1415610-setrootelement?language=objc +func (x_ XMLDocument) SetRootElement(root IXMLElement) { + objc.Call[objc.Void](x_, objc.Sel("setRootElement:"), objc.Ptr(root)) } // 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] @@ -199,6 +199,22 @@ func (x_ XMLDocument) ObjectByApplyingXSLTArgumentsError(xslt []byte, arguments 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] +// +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsxmldocument/1410606-objectbyapplyingxsltaturl?language=objc +func (x_ XMLDocument) ObjectByApplyingXSLTAtURLArgumentsError(xsltURL IURL, argument map[string]string, error IError) objc.Object { + rv := objc.Call[objc.Object](x_, objc.Sel("objectByApplyingXSLTAtURL:arguments:error:"), objc.Ptr(xsltURL), argument, objc.Ptr(error)) + return rv +} + +// 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/1408561-validateandreturnerror?language=objc +func (x_ XMLDocument) ValidateAndReturnError(error IError) bool { + rv := objc.Call[bool](x_, objc.Sel("validateAndReturnError:"), objc.Ptr(error)) + return rv +} + // 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/1412424-xmldatawithoptions?language=objc @@ -207,33 +223,41 @@ func (x_ XMLDocument) XMLDataWithOptions(options XMLNodeOptions) []byte { return rv } -// Set the root element 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/1415610-setrootelement?language=objc -func (x_ XMLDocument) SetRootElement(root IXMLElement) { - objc.Call[objc.Void](x_, objc.Sel("setRootElement:"), objc.Ptr(root)) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsxmldocument/1409737-objectbyapplyingxsltstring?language=objc +func (x_ XMLDocument) ObjectByApplyingXSLTStringArgumentsError(xslt string, arguments map[string]string, error IError) objc.Object { + rv := objc.Call[objc.Object](x_, objc.Sel("objectByApplyingXSLTString:arguments:error:"), xslt, arguments, objc.Ptr(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:"), objc.Ptr(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 } -// 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] +// 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/1410606-objectbyapplyingxsltaturl?language=objc -func (x_ XMLDocument) ObjectByApplyingXSLTAtURLArgumentsError(xsltURL IURL, argument map[string]string, error IError) objc.Object { - rv := objc.Call[objc.Object](x_, objc.Sel("objectByApplyingXSLTAtURL:arguments:error:"), objc.Ptr(xsltURL), argument, objc.Ptr(error)) - return rv +// [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, objc.Ptr(node)) } -// Sets the child nodes of the receiver. [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/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/1415612-insertchildren?language=objc +func (x_ XMLDocument) InsertChildrenAtIndex(children []IXMLNode, index uint) { + objc.Call[objc.Void](x_, objc.Sel("insertChildren:atIndex:"), children, index) +} + +// 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/1410060-removechildatindex?language=objc +func (x_ XMLDocument) RemoveChildAtIndex(index uint) { + objc.Call[objc.Void](x_, objc.Sel("removeChildAtIndex:"), index) } // Overridden by subclasses to substitute a custom class for an NSXML class that the parser uses to create node instances. [Full Topic] @@ -251,18 +275,19 @@ func XMLDocument_ReplacementClassForClass(cls objc.IClass) objc.Class { return XMLDocumentClass.ReplacementClassForClass(cls) } -// Adds a child node after the last of the receiver’s existing children. [Full Topic] +// Sets the character encoding of the receiver to encoding, [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:"), objc.Ptr(child)) +// [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 } -// Replaces the child node of the receiver located at a specified position in its array of children with another node. [Full Topic] +// Sets the character encoding of the receiver to encoding, [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, objc.Ptr(node)) +// [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) } // Returns the MIME type for the receiver. [Full Topic] @@ -280,6 +305,36 @@ 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:"), objc.Ptr(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 @@ -295,21 +350,6 @@ 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 @@ -325,36 +365,6 @@ 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:"), objc.Ptr(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 530acb12..10b5127a 100644 --- a/macos/foundation/xml_element.gen.go +++ b/macos/foundation/xml_element.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package foundation @@ -18,29 +18,29 @@ type _XMLElementClass struct { // An interface definition for the [XMLElement] class. type IXMLElement interface { IXMLNode - RemoveNamespaceForPrefix(name string) + SetAttributesWithDictionary(attributes map[string]string) + RemoveAttributeForName(name string) + AttributeForLocalNameURI(localName string, URI string) XMLNode 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 - AddNamespace(aNamespace IXMLNode) + NormalizeAdjacentTextNodesPreservingCDATA(preserve bool) RemoveChildAtIndex(index uint) - ElementsForLocalNameURI(localName string, URI string) []XMLElement - AttributeForLocalNameURI(localName string, URI string) XMLNode + AddAttribute(attribute IXMLNode) + ReplaceChildAtIndexWithNode(index uint, node IXMLNode) + RemoveNamespaceForPrefix(name string) + AddNamespace(aNamespace IXMLNode) 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 - ReplaceChildAtIndexWithNode(index uint, node IXMLNode) - Namespaces() []XMLNode - SetNamespaces(value []IXMLNode) Attributes() []XMLNode SetAttributes(value []IXMLNode) + Namespaces() []XMLNode + SetNamespaces(value []IXMLNode) } // The element nodes in an XML tree structure. [Full Topic] @@ -56,6 +56,20 @@ 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 @@ -70,6 +84,20 @@ func NewXMLElementWithKindOptions(kind XMLNodeKind, options XMLNodeOptions) XMLE return instance } +func (x_ XMLElement) InitWithXMLStringError(string_ string, error IError) XMLElement { + rv := objc.Call[XMLElement](x_, objc.Sel("initWithXMLString:error:"), string_, objc.Ptr(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 IError) 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 @@ -84,16 +112,16 @@ func NewXMLElementWithNameStringValue(name string, string_ string) XMLElement { return instance } -func (x_ XMLElement) InitWithXMLStringError(string_ string, error IError) XMLElement { - rv := objc.Call[XMLElement](x_, objc.Sel("initWithXMLString:error:"), string_, objc.Ptr(error)) +func (x_ XMLElement) InitWithName(name string) XMLElement { + rv := objc.Call[XMLElement](x_, objc.Sel("initWithName:"), name) return rv } -// Returns an NSXMLElement object created from a specified string containing XML markup. [Full Topic] +// Returns an NSXMLElement object initialized with the specified name. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsxmlelement/1388325-initwithxmlstring?language=objc -func NewXMLElementWithXMLStringError(string_ string, error IError) XMLElement { - instance := XMLElementClass.Alloc().InitWithXMLStringError(string_, error) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsxmlelement/1388319-initwithname?language=objc +func NewXMLElementWithName(name string) XMLElement { + instance := XMLElementClass.Alloc().InitWithName(name) instance.Autorelease() return instance } @@ -103,10 +131,6 @@ func (xc _XMLElementClass) Alloc() XMLElement { return rv } -func XMLElement_Alloc() XMLElement { - return XMLElementClass.Alloc() -} - func (xc _XMLElementClass) New() XMLElement { rv := objc.Call[XMLElement](xc, objc.Sel("new")) rv.Autorelease() @@ -122,41 +146,48 @@ func (x_ XMLElement) Init() XMLElement { return rv } -// Removes a namespace node that is identified by a given prefix. [Full Topic] +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] // -// [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) +// [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 } -// Returns the namespace node with a specified prefix. [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/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/1388354-setattributeswithdictionary?language=objc +func (x_ XMLElement) SetAttributesWithDictionary(attributes map[string]string) { + objc.Call[objc.Void](x_, objc.Sel("setAttributesWithDictionary:"), attributes) } -// Returns the attribute node of the receiver with the specified name. [Full Topic] +// Removes an attribute node identified by 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) - return rv +// [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) } -// Adds a namespace node to the receiver. [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/1388358-addnamespace?language=objc -func (x_ XMLElement) AddNamespace(aNamespace IXMLNode) { - objc.Call[objc.Void](x_, objc.Sel("addNamespace:"), objc.Ptr(aNamespace)) +// [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 } -// Removes the child node of the receiver identified by a given index. [Full Topic] +// Returns the namespace node with a specified prefix. [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/1388307-namespaceforprefix?language=objc +func (x_ XMLElement) NamespaceForPrefix(name string) XMLNode { + rv := objc.Call[XMLNode](x_, objc.Sel("namespaceForPrefix:"), name) + return rv } // Returns the child element nodes (as NSXMLElement objects) of the receiver that are matched with the specified local name and URI. [Full Topic] @@ -167,33 +198,25 @@ func (x_ XMLElement) ElementsForLocalNameURI(localName string, URI string) []XML return rv } -// 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/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 -} - -// 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:"), objc.Ptr(child)) } -// Removes an attribute node identified by name. [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/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/1388350-setchildren?language=objc +func (x_ XMLElement) SetChildren(children []IXMLNode) { + objc.Call[objc.Void](x_, objc.Sel("setChildren:"), children) } -// Returns the prefix associated with the specified URI. [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/1388309-resolveprefixfornamespaceuri?language=objc -func (x_ XMLElement) ResolvePrefixForNamespaceURI(namespaceURI string) string { - rv := objc.Call[string](x_, objc.Sel("resolvePrefixForNamespaceURI:"), namespaceURI) +// [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 } @@ -204,19 +227,26 @@ func (x_ XMLElement) InsertChildAtIndex(child IXMLNode, index uint) { objc.Call[objc.Void](x_, objc.Sel("insertChild:atIndex:"), objc.Ptr(child), index) } -// Returns the namespace node with the prefix matching the given qualified 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/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/1388305-attributeforname?language=objc +func (x_ XMLElement) AttributeForName(name string) XMLNode { + rv := objc.Call[XMLNode](x_, objc.Sel("attributeForName:"), name) return rv } -// Sets all child nodes of the receiver at once, replacing any existing children. [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/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/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] +// +// [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) } // Adds an attribute node to the receiver. [Full Topic] @@ -226,25 +256,40 @@ func (x_ XMLElement) AddAttribute(attribute IXMLNode) { objc.Call[objc.Void](x_, objc.Sel("addAttribute:"), objc.Ptr(attribute)) } -// Sets the attributes of the receiver based on the key-value pairs specified in the passed dictionary. [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/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/1388317-replacechildatindex?language=objc +func (x_ XMLElement) ReplaceChildAtIndexWithNode(index uint, node IXMLNode) { + objc.Call[objc.Void](x_, objc.Sel("replaceChildAtIndex:withNode:"), index, objc.Ptr(node)) } -// Adds a child node at the end of the receiver’s current list of children. [Full Topic] +// Removes a namespace node that is identified by a given prefix. [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:"), objc.Ptr(child)) +// [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) } -// Coalesces adjacent text nodes of the receiver that you have explicitly added, optionally including CDATA sections. [Full Topic] +// Adds a namespace node to the receiver. [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) +// [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:"), objc.Ptr(aNamespace)) +} + +// 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/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 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 } // Returns the child element nodes (as NSXMLElement objects) of the receiver that have a specified name. [Full Topic] @@ -255,11 +300,19 @@ func (x_ XMLElement) ElementsForName(name string) []XMLElement { return rv } -// Replaces a child node at a specified location with another child node. [Full Topic] +// Sets all attributes of the receiver at once, replacing any existing attribute nodes. [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, objc.Ptr(node)) +// [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) } // Sets all of the namespace nodes of the receiver at once, replacing any existing namespace nodes. [Full Topic] @@ -276,18 +329,3 @@ 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 105f66a9..6c987424 100644 --- a/macos/foundation/xml_node.gen.go +++ b/macos/foundation/xml_node.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package foundation @@ -18,37 +18,38 @@ type _XMLNodeClass struct { // An interface definition for the [XMLNode] class. type IXMLNode interface { objc.IObject - CanonicalXMLStringPreservingComments(comments bool) string - NodesForXPathError(xpath string, error IError) []XMLNode - Detach() - XMLStringWithOptions(options XMLNodeOptions) string SetStringValueResolvingEntities(string_ string, resolve bool) ChildAtIndex(index uint) XMLNode + NodesForXPathError(xpath string, error IError) []XMLNode + CanonicalXMLStringPreservingComments(comments bool) string + XMLStringWithOptions(options XMLNodeOptions) string ObjectsForXQueryError(xquery string, error IError) []objc.Object + Detach() + ObjectsForXQueryConstantsError(xquery string, constants map[string]objc.IObject, error IError) []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) - XMLString() string - PreviousSibling() XMLNode + Children() []XMLNode Description() string - ObjectValue() objc.Object - SetObjectValue(value objc.IObject) + Prefix() string + URI() string + SetURI(value string) Kind() XMLNodeKind - XPath() string + PreviousNode() XMLNode + XMLString() string + Level() uint NextSibling() XMLNode - Prefix() string + Name() string + SetName(value string) Index() uint - ChildCount() uint - PreviousNode() XMLNode - Children() []XMLNode + Parent() XMLNode } // The nodes in the abstract, logical tree structure that represents an XML document. [Full Topic] @@ -64,6 +65,25 @@ 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 @@ -78,20 +98,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 } -func XMLNode_Alloc() XMLNode { - return XMLNodeClass.Alloc() -} - func (xc _XMLNodeClass) New() XMLNode { rv := objc.Call[XMLNode](xc, objc.Sel("new")) rv.Autorelease() @@ -102,50 +113,11 @@ func NewXMLNode() XMLNode { return XMLNodeClass.New() } -// 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 -func (xc _XMLNodeClass) ElementWithName(name string) objc.Object { - rv := objc.Call[objc.Object](xc, objc.Sel("elementWithName:"), name) - return rv -} - -// 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 -func XMLNode_ElementWithName(name string) objc.Object { - return XMLNodeClass.ElementWithName(name) -} - -// 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 an NSXMLNode object representing a processing instruction with a specified name and value. [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 -} - -// 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/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] +// 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/1409813-nodesforxpath?language=objc -func (x_ XMLNode) NodesForXPathError(xpath string, error IError) []XMLNode { - rv := objc.Call[[]XMLNode](x_, objc.Sel("nodesForXPath:error:"), xpath, objc.Ptr(error)) - return rv +// [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] @@ -163,49 +135,34 @@ 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] +// Returns an NSXMLElement object with a given tag identifier, or name [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/1409760-elementwithname?language=objc +func (xc _XMLNodeClass) ElementWithName(name string) objc.Object { + rv := objc.Call[objc.Object](xc, objc.Sel("elementWithName:"), 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] -// -// [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/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] +// Returns an NSXMLElement object with a given tag identifier, or 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) - return rv +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsxmlnode/1409760-elementwithname?language=objc +func XMLNode_ElementWithName(name string) objc.Object { + return XMLNodeClass.ElementWithName(name) } -// Returns an NSXMLNode object representing a namespace with a specified name and URI. [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/1409738-namespacewithname?language=objc -func (xc _XMLNodeClass) NamespaceWithNameStringValue(name string, stringValue string) objc.Object { - rv := objc.Call[objc.Object](xc, objc.Sel("namespaceWithName:stringValue:"), name, stringValue) +// [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 a namespace with a specified name and URI. [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/1409738-namespacewithname?language=objc -func XMLNode_NamespaceWithNameStringValue(name string, stringValue string) objc.Object { - return XMLNodeClass.NamespaceWithNameStringValue(name, stringValue) +// [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 a comment node containing given text. [Full Topic] @@ -223,49 +180,49 @@ func XMLNode_CommentWithStringValue(stringValue string) objc.Object { return XMLNodeClass.CommentWithStringValue(stringValue) } -// Returns an empty document node. [Full Topic] +// Returns an element whose fully qualified name is specified. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsxmlnode/1409821-document?language=objc -func (xc _XMLNodeClass) Document() objc.Object { - rv := objc.Call[objc.Object](xc, objc.Sel("document")) +// [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) return rv } -// Returns an empty document node. [Full Topic] +// Returns an element whose fully qualified name is specified. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsxmlnode/1409821-document?language=objc -func XMLNode_Document() objc.Object { - return XMLNodeClass.Document() +// [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) } -// Returns an NSXMLNode object representing a text node with specified content. [Full Topic] +// Returns an NSXMLNode object representing a namespace with a specified name and URI. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsxmlnode/1409754-textwithstringvalue?language=objc -func (xc _XMLNodeClass) TextWithStringValue(stringValue string) objc.Object { - rv := objc.Call[objc.Object](xc, objc.Sel("textWithStringValue:"), stringValue) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsxmlnode/1409738-namespacewithname?language=objc +func (xc _XMLNodeClass) NamespaceWithNameStringValue(name string, stringValue string) objc.Object { + rv := objc.Call[objc.Object](xc, objc.Sel("namespaceWithName:stringValue:"), name, stringValue) return rv } -// Returns an NSXMLNode object representing a text node with specified content. [Full Topic] +// Returns an NSXMLNode object representing a namespace with a specified name and URI. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsxmlnode/1409754-textwithstringvalue?language=objc -func XMLNode_TextWithStringValue(stringValue string) objc.Object { - return XMLNodeClass.TextWithStringValue(stringValue) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsxmlnode/1409738-namespacewithname?language=objc +func XMLNode_NamespaceWithNameStringValue(name string, stringValue string) objc.Object { + return XMLNodeClass.NamespaceWithNameStringValue(name, stringValue) } -// Returns an NSXMLNode object representing one of the predefined namespaces with the specified prefix. [Full Topic] +// 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/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/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 NSXMLNode object representing one of the predefined namespaces with the specified prefix. [Full Topic] +// 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/1409745-predefinednamespaceforprefix?language=objc -func XMLNode_PredefinedNamespaceForPrefix(name string) XMLNode { - return XMLNodeClass.PredefinedNamespaceForPrefix(name) +// [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] @@ -283,6 +240,21 @@ func XMLNode_LocalNameForName(name string) string { return XMLNodeClass.LocalNameForName(name) } +// Returns an empty document node. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsxmlnode/1409821-document?language=objc +func (xc _XMLNodeClass) Document() objc.Object { + rv := objc.Call[objc.Object](xc, objc.Sel("document")) + return rv +} + +// Returns an empty document node. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsxmlnode/1409821-document?language=objc +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 @@ -298,26 +270,19 @@ func XMLNode_DocumentWithRootElement(element IXMLElement) objc.Object { return XMLNodeClass.DocumentWithRootElement(element) } -// 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] +// Returns an NSXMLElement object with the given tag (name), attributes, and children. [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 an NSXMLNode object representing an attribute node with a given name and string. [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/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 NSXMLNode object representing an attribute node with a given name and string. [Full Topic] +// Returns an NSXMLElement object with the given tag (name), attributes, and children. [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/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] @@ -328,104 +293,133 @@ func (x_ XMLNode) ChildAtIndex(index uint) XMLNode { return rv } -// Returns the objects resulting from executing an XQuery query upon the receiver. [Full Topic] +// Returns the nodes resulting from executing an XPath query upon the receiver. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsxmlnode/1409768-objectsforxquery?language=objc -func (x_ XMLNode) ObjectsForXQueryError(xquery string, error IError) []objc.Object { - rv := objc.Call[[]objc.Object](x_, objc.Sel("objectsForXQuery:error:"), xquery, objc.Ptr(error)) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsxmlnode/1409813-nodesforxpath?language=objc +func (x_ XMLNode) NodesForXPathError(xpath string, error IError) []XMLNode { + rv := objc.Call[[]XMLNode](x_, objc.Sel("nodesForXPath:error:"), xpath, objc.Ptr(error)) return rv } -// Returns the NSXMLDocument object containing the root element and representing the XML document as a whole. [Full Topic] +// Returns an NSXMLNode object representing a text node with specified content. [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/1409754-textwithstringvalue?language=objc +func (xc _XMLNodeClass) TextWithStringValue(stringValue string) objc.Object { + rv := objc.Call[objc.Object](xc, objc.Sel("textWithStringValue:"), stringValue) return rv } -// Returns the next NSXMLNode object in document order. [Full Topic] +// Returns an NSXMLNode object representing a text node with specified content. [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")) - return rv +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsxmlnode/1409754-textwithstringvalue?language=objc +func XMLNode_TextWithStringValue(stringValue string) objc.Object { + return XMLNodeClass.TextWithStringValue(stringValue) } -// Returns the nesting level of the receiver within the tree hierarchy. [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/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/1409817-canonicalxmlstringpreservingcomm?language=objc +func (x_ XMLNode) CanonicalXMLStringPreservingComments(comments bool) string { + rv := objc.Call[string](x_, objc.Sel("canonicalXMLStringPreservingComments:"), comments) return rv } -// Returns the URI associated with the receiver. [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/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/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 the URI associated with the receiver. [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/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/1409145-dtdnodewithxmlstring?language=objc +func XMLNode_DTDNodeWithXMLString(string_ string) objc.Object { + return XMLNodeClass.DTDNodeWithXMLString(string_) } -// Returns the parent node of the receiver. [Full Topic] +// 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/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/1409778-xmlstringwithoptions?language=objc +func (x_ XMLNode) XMLStringWithOptions(options XMLNodeOptions) string { + rv := objc.Call[string](x_, objc.Sel("XMLStringWithOptions:"), options) return rv } -// Returns the name of the receiver. [Full Topic] +// Returns the objects resulting from executing an XQuery query upon the receiver. [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/1409768-objectsforxquery?language=objc +func (x_ XMLNode) ObjectsForXQueryError(xquery string, error IError) []objc.Object { + rv := objc.Call[[]objc.Object](x_, objc.Sel("objectsForXQuery:error:"), xquery, objc.Ptr(error)) return rv } -// Returns the name of the receiver. [Full Topic] +// Detaches the receiver from its parent node. [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) +// [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 local name of the receiver. [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/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/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 the content of the receiver as a string value. [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/1409818-stringvalue?language=objc -func (x_ XMLNode) StringValue() string { - rv := objc.Call[string](x_, objc.Sel("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 an NSXMLNode object representing one of the predefined namespaces with the specified prefix. [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) return rv } -// Returns the content of the receiver as a string value. [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/1409818-stringvalue?language=objc -func (x_ XMLNode) SetStringValue(value string) { - objc.Call[objc.Void](x_, objc.Sel("setStringValue:"), value) +// [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. [Full Topic] +// 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/1409772-xmlstring?language=objc -func (x_ XMLNode) XMLString() string { - rv := objc.Call[string](x_, objc.Sel("XMLString")) +// [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) + 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 IError) []objc.Object { + rv := objc.Call[[]objc.Object](x_, objc.Sel("objectsForXQuery:constants:error:"), xquery, constants, objc.Ptr(error)) + return rv +} + +// 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 } @@ -437,11 +431,11 @@ func (x_ XMLNode) PreviousSibling() XMLNode { return rv } -// Returns a description of the receiver. [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/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/1409826-xpath?language=objc +func (x_ XMLNode) XPath() string { + rv := objc.Call[string](x_, objc.Sel("XPath")) return rv } @@ -460,27 +454,58 @@ 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] +// 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/1408882-kind?language=objc -func (x_ XMLNode) Kind() XMLNodeKind { - rv := objc.Call[XMLNodeKind](x_, objc.Sel("kind")) +// [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 XPath expression identifying the receiver’s location in the document tree. [Full Topic] +// Returns the number of child nodes the receiver has. [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/1409808-childcount?language=objc +func (x_ XMLNode) ChildCount() uint { + rv := objc.Call[uint](x_, objc.Sel("childCount")) return rv } -// Returns the next 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/1409750-nextsibling?language=objc -func (x_ XMLNode) NextSibling() XMLNode { - rv := objc.Call[XMLNode](x_, objc.Sel("nextSibling")) +// [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 content of the receiver as a string value. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsxmlnode/1409818-stringvalue?language=objc +func (x_ XMLNode) StringValue() string { + rv := objc.Call[string](x_, objc.Sel("stringValue")) + return rv +} + +// Returns the content of the receiver as a string value. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsxmlnode/1409818-stringvalue?language=objc +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] +// +// [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 +} + +// Returns a description of 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")) return rv } @@ -492,19 +517,26 @@ func (x_ XMLNode) Prefix() string { return rv } -// Returns the index of the receiver identifying its position relative to its sibling nodes. [Full Topic] +// Returns the URI associated with the receiver. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsxmlnode/1409743-index?language=objc -func (x_ XMLNode) Index() uint { - rv := objc.Call[uint](x_, objc.Sel("index")) +// [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 number of child nodes the receiver has. [Full Topic] +// Returns the URI associated with 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/1409774-uri?language=objc +func (x_ XMLNode) SetURI(value string) { + objc.Call[objc.Void](x_, objc.Sel("setURI:"), value) +} + +// Returns the kind of node the receiver is as a constant of type NSXMLNodeKind. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsxmlnode/1408882-kind?language=objc +func (x_ XMLNode) Kind() XMLNodeKind { + rv := objc.Call[XMLNodeKind](x_, objc.Sel("kind")) return rv } @@ -516,10 +548,57 @@ func (x_ XMLNode) PreviousNode() XMLNode { return rv } -// 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 the nesting level of the receiver within the tree hierarchy. [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")) + return rv +} + +// Returns the next NSXMLNode object that is a sibling node to the receiver. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsxmlnode/1409750-nextsibling?language=objc +func (x_ XMLNode) NextSibling() XMLNode { + rv := objc.Call[XMLNode](x_, objc.Sel("nextSibling")) + 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) Name() string { + rv := objc.Call[string](x_, objc.Sel("name")) + 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 +func (x_ XMLNode) Index() uint { + rv := objc.Call[uint](x_, objc.Sel("index")) + return rv +} + +// Returns the parent node of the receiver. [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")) return rv } diff --git a/macos/foundation/xml_parser.gen.go b/macos/foundation/xml_parser.gen.go index ec640d32..2c5b5738 100644 --- a/macos/foundation/xml_parser.gen.go +++ b/macos/foundation/xml_parser.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package foundation @@ -18,26 +18,26 @@ type _XMLParserClass struct { // An interface definition for the [XMLParser] class. type IXMLParser interface { objc.IObject - AbortParsing() Parse() bool - ColumnNumber() int - ExternalEntityResolvingPolicy() XMLParserExternalEntityResolvingPolicy - SetExternalEntityResolvingPolicy(value XMLParserExternalEntityResolvingPolicy) - SystemID() string + AbortParsing() ShouldProcessNamespaces() bool SetShouldProcessNamespaces(value bool) - ShouldReportNamespacePrefixes() bool - SetShouldReportNamespacePrefixes(value bool) - Delegate() XMLParserDelegateWrapper + ExternalEntityResolvingPolicy() XMLParserExternalEntityResolvingPolicy + SetExternalEntityResolvingPolicy(value XMLParserExternalEntityResolvingPolicy) + ShouldResolveExternalEntities() bool + SetShouldResolveExternalEntities(value bool) + ParserError() Error + PublicID() string + Delegate() XMLParserDelegateObject SetDelegate(value PXMLParserDelegate) SetDelegateObject(valueObject objc.IObject) - PublicID() string AllowedExternalEntityURLs() Set SetAllowedExternalEntityURLs(value ISet) - ParserError() Error - ShouldResolveExternalEntities() bool - SetShouldResolveExternalEntities(value bool) + SystemID() string LineNumber() int + ShouldReportNamespacePrefixes() bool + SetShouldReportNamespacePrefixes(value bool) + ColumnNumber() int } // An event driven parser of XML documents (including DTD declarations). [Full Topic] @@ -53,20 +53,6 @@ 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:"), objc.Ptr(url)) return rv @@ -95,13 +81,23 @@ func NewXMLParserWithStream(stream IInputStream) XMLParser { return instance } -func (xc _XMLParserClass) Alloc() XMLParser { - rv := objc.Call[XMLParser](xc, objc.Sel("alloc")) +func (x_ XMLParser) InitWithData(data []byte) XMLParser { + rv := objc.Call[XMLParser](x_, objc.Sel("initWithData:"), data) return rv } -func XMLParser_Alloc() XMLParser { - return XMLParserClass.Alloc() +// 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 } func (xc _XMLParserClass) New() XMLParser { @@ -119,6 +115,14 @@ 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 @@ -126,20 +130,19 @@ func (x_ XMLParser) AbortParsing() { objc.Call[objc.Void](x_, objc.Sel("abortParsing")) } -// Starts the event-driven parsing operation. [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/1411778-parse?language=objc -func (x_ XMLParser) Parse() bool { - rv := objc.Call[bool](x_, objc.Sel("parse")) +// [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 } -// The column number of the XML document being processed by the parser. [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/1416983-columnnumber?language=objc -func (x_ XMLParser) ColumnNumber() int { - rv := objc.Call[int](x_, objc.Sel("columnNumber")) - 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) } // [Full Topic] @@ -157,49 +160,42 @@ func (x_ XMLParser) SetExternalEntityResolvingPolicy(value XMLParserExternalEnti objc.Call[objc.Void](x_, objc.Sel("setExternalEntityResolvingPolicy:"), 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 -} - -// A Boolean value that determines whether the parser reports the namespaces and qualified names of elements. [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/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/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 namespaces and qualified names of elements. [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/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/1414143-shouldresolveexternalentities?language=objc +func (x_ XMLParser) SetShouldResolveExternalEntities(value bool) { + objc.Call[objc.Void](x_, objc.Sel("setShouldResolveExternalEntities:"), value) } -// A Boolean value that determines whether the parser reports the prefixes indicating the scope of namespace declarations. [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/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/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] +// The public identifier of the external entity referenced in the XML document. [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/1414516-publicid?language=objc +func (x_ XMLParser) PublicID() string { + rv := objc.Call[string](x_, objc.Sel("publicID")) + return rv } // 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 -func (x_ XMLParser) Delegate() XMLParserDelegateWrapper { - rv := objc.Call[XMLParserDelegateWrapper](x_, objc.Sel("delegate")) +func (x_ XMLParser) Delegate() XMLParserDelegateObject { + rv := objc.Call[XMLParserDelegateObject](x_, objc.Sel("delegate")) return rv } @@ -218,14 +214,6 @@ func (x_ XMLParser) SetDelegateObject(valueObject objc.IObject) { objc.Call[objc.Void](x_, objc.Sel("setDelegate:"), objc.Ptr(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 @@ -241,33 +229,41 @@ func (x_ XMLParser) SetAllowedExternalEntityURLs(value ISet) { objc.Call[objc.Void](x_, objc.Sel("setAllowedExternalEntityURLs:"), objc.Ptr(value)) } -// An NSError object from which you can obtain information about a parsing error. [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/1417446-parsererror?language=objc -func (x_ XMLParser) ParserError() Error { - rv := objc.Call[Error](x_, objc.Sel("parserError")) +// [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] +// The line number of the XML document being processed by the parser. [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/1413404-linenumber?language=objc +func (x_ XMLParser) LineNumber() int { + rv := objc.Call[int](x_, objc.Sel("lineNumber")) 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 prefixes indicating the scope of namespace declarations. [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/1410809-shouldreportnamespaceprefixes?language=objc +func (x_ XMLParser) ShouldReportNamespacePrefixes() bool { + rv := objc.Call[bool](x_, objc.Sel("shouldReportNamespacePrefixes")) + return rv } -// The line number of the XML document being processed by the parser. [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/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/1410809-shouldreportnamespaceprefixes?language=objc +func (x_ XMLParser) SetShouldReportNamespacePrefixes(value bool) { + objc.Call[objc.Void](x_, objc.Sel("setShouldReportNamespacePrefixes:"), value) +} + +// The column 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")) return rv } diff --git a/macos/foundation/xml_parser_delegate.gen.go b/macos/foundation/xml_parser_delegate.gen.go index 2958f996..cf5e77d9 100644 --- a/macos/foundation/xml_parser_delegate.gen.go +++ b/macos/foundation/xml_parser_delegate.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package foundation @@ -11,58 +11,143 @@ import ( // [Full Topic]: https://developer.apple.com/documentation/foundation/nsxmlparserdelegate?language=objc type PXMLParserDelegate interface { // optional - ParserDidStartDocument(parser XMLParser) - HasParserDidStartDocument() bool + ParserFoundNotationDeclarationWithNamePublicIDSystemID(parser XMLParser, name string, publicID string, systemID string) + HasParserFoundNotationDeclarationWithNamePublicIDSystemID() bool // optional - ParserDidEndDocument(parser XMLParser) - HasParserDidEndDocument() bool + 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 + + // optional + ParserFoundCharacters(parser XMLParser, string_ string) + HasParserFoundCharacters() bool } // A delegate implementation builder for the [PXMLParserDelegate] protocol. type XMLParserDelegate struct { - _ParserDidStartDocument func(parser XMLParser) - _ParserDidEndDocument func(parser XMLParser) - _ParserFoundComment func(parser XMLParser, comment string) + _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) HasParserDidStartDocument() bool { - return di._ParserDidStartDocument != nil +func (di *XMLParserDelegate) HasParserFoundNotationDeclarationWithNamePublicIDSystemID() bool { + return di._ParserFoundNotationDeclarationWithNamePublicIDSystemID != nil } -// Sent by the parser object to the delegate when it begins parsing a document. [Full Topic] +// 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/1412065-parserdidstartdocument?language=objc -func (di *XMLParserDelegate) SetParserDidStartDocument(f func(parser XMLParser)) { - di._ParserDidStartDocument = f +// [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 the parser object to the delegate when it begins parsing a document. [Full Topic] +// 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/1412065-parserdidstartdocument?language=objc -func (di *XMLParserDelegate) ParserDidStartDocument(parser XMLParser) { - di._ParserDidStartDocument(parser) +// [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) HasParserDidEndDocument() bool { - return di._ParserDidEndDocument != nil +func (di *XMLParserDelegate) HasParserResolveExternalEntityNameSystemID() bool { + return di._ParserResolveExternalEntityNameSystemID != nil } -// Sent by the parser object to the delegate when it has successfully completed parsing. [Full Topic] +// 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/1418172-parserdidenddocument?language=objc -func (di *XMLParserDelegate) SetParserDidEndDocument(f func(parser XMLParser)) { - di._ParserDidEndDocument = f +// [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 the parser object to the delegate when it has successfully completed parsing. [Full Topic] +// 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/1418172-parserdidenddocument?language=objc -func (di *XMLParserDelegate) ParserDidEndDocument(parser XMLParser) { - di._ParserDidEndDocument(parser) +// [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 @@ -81,41 +166,521 @@ func (di *XMLParserDelegate) SetParserFoundComment(f func(parser XMLParser, comm func (di *XMLParserDelegate) ParserFoundComment(parser XMLParser, comment string) { di._ParserFoundComment(parser, comment) } +func (di *XMLParserDelegate) HasParserFoundInternalEntityDeclarationWithNameValue() bool { + return di._ParserFoundInternalEntityDeclarationWithNameValue != nil +} -// A concrete type wrapper for the [PXMLParserDelegate] protocol. -type XMLParserDelegateWrapper struct { - objc.Object +// 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 } -func (x_ XMLParserDelegateWrapper) HasParserDidStartDocument() bool { - return x_.RespondsToSelector(objc.Sel("parserDidStartDocument:")) +// 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 the parser object to the delegate when it begins parsing a document. [Full Topic] +// 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/1412065-parserdidstartdocument?language=objc -func (x_ XMLParserDelegateWrapper) ParserDidStartDocument(parser IXMLParser) { - objc.Call[objc.Void](x_, objc.Sel("parserDidStartDocument:"), objc.Ptr(parser)) +// [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 } -func (x_ XMLParserDelegateWrapper) HasParserDidEndDocument() bool { - return x_.RespondsToSelector(objc.Sel("parserDidEndDocument:")) +// 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 (x_ XMLParserDelegateWrapper) ParserDidEndDocument(parser IXMLParser) { - objc.Call[objc.Void](x_, objc.Sel("parserDidEndDocument:"), objc.Ptr(parser)) +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 } -func (x_ XMLParserDelegateWrapper) HasParserFoundComment() bool { +// 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 +} + +// 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 +} + +// Sent by the parser object to the delegate when it begins parsing a document. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsxmlparserdelegate/1412065-parserdidstartdocument?language=objc +func (di *XMLParserDelegate) SetParserDidStartDocument(f func(parser XMLParser)) { + di._ParserDidStartDocument = f +} + +// Sent by the parser object to the delegate when it begins parsing a document. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsxmlparserdelegate/1412065-parserdidstartdocument?language=objc +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 +} + +// 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] +// +// [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 +} + +// 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] +// +// [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) +} +func (di *XMLParserDelegate) HasParserFoundCharacters() bool { + return di._ParserFoundCharacters != 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] +// +// [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 +} + +// 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] +// +// [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_) +} + +// ensure impl type implements protocol interface +var _ PXMLParserDelegate = (*XMLParserDelegateObject)(nil) + +// A concrete type for the [PXMLParserDelegate] protocol. +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:"), objc.Ptr(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:"), objc.Ptr(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_ XMLParserDelegateWrapper) ParserFoundComment(parser IXMLParser, comment string) { +func (x_ XMLParserDelegateObject) ParserFoundComment(parser XMLParser, comment string) { objc.Call[objc.Void](x_, objc.Sel("parser:foundComment:"), objc.Ptr(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:"), objc.Ptr(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:"), objc.Ptr(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:"), objc.Ptr(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:"), objc.Ptr(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:"), objc.Ptr(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:"), objc.Ptr(parser), objc.Ptr(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:"), objc.Ptr(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:"), objc.Ptr(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:"), objc.Ptr(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:"), objc.Ptr(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:"), objc.Ptr(parser), name, publicID, systemID) +} + +func (x_ XMLParserDelegateObject) HasParserDidStartDocument() bool { + return x_.RespondsToSelector(objc.Sel("parserDidStartDocument:")) +} + +// Sent by the parser object to the delegate when it begins parsing a document. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsxmlparserdelegate/1412065-parserdidstartdocument?language=objc +func (x_ XMLParserDelegateObject) ParserDidStartDocument(parser XMLParser) { + objc.Call[objc.Void](x_, objc.Sel("parserDidStartDocument:"), objc.Ptr(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:"), objc.Ptr(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:"), objc.Ptr(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:"), objc.Ptr(parser), objc.Ptr(parseError)) +} + +func (x_ XMLParserDelegateObject) HasParserFoundAttributeDeclarationWithNameForElementTypeDefaultValue() bool { + return x_.RespondsToSelector(objc.Sel("parser:foundAttributeDeclarationWithName:forElement:type:defaultValue:")) +} + +// 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] +// +// [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:"), objc.Ptr(parser), attributeName, elementName, type_, defaultValue) +} + +func (x_ XMLParserDelegateObject) HasParserFoundCharacters() bool { + return x_.RespondsToSelector(objc.Sel("parser:foundCharacters:")) +} + +// 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] +// +// [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:"), objc.Ptr(parser), string_) +} diff --git a/macos/foundation/xmldtd.gen.go b/macos/foundation/xmldtd.gen.go index a6c63f3a..17462a33 100644 --- a/macos/foundation/xmldtd.gen.go +++ b/macos/foundation/xmldtd.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package foundation @@ -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) - SetChildren(children []IXMLNode) + NotationDeclarationForName(name string) XMLDTDNode + AttributeDeclarationForNameElementName(name string, elementName string) XMLDTDNode AddChild(child IXMLNode) + SetChildren(children []IXMLNode) + RemoveChildAtIndex(index uint) ReplaceChildAtIndexWithNode(index uint, node IXMLNode) - SystemID() string - SetSystemID(value string) + ElementDeclarationForName(name string) XMLDTDNode PublicID() string SetPublicID(value string) + SystemID() string + SetSystemID(value string) } // A representation of a Document Type Definition. [Full Topic] @@ -47,6 +47,11 @@ 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 IError) XMLDTD { rv := objc.Call[XMLDTD](x_, objc.Sel("initWithData:options:error:"), data, mask, objc.Ptr(error)) return rv @@ -75,20 +80,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 } -func XMLDTD_Alloc() XMLDTD { - return XMLDTDClass.Alloc() -} - func (xc _XMLDTDClass) New() XMLDTD { rv := objc.Call[XMLDTD](xc, objc.Sel("new")) rv.Autorelease() @@ -99,41 +95,32 @@ func NewXMLDTD() XMLDTD { return XMLDTDClass.New() } -func (x_ XMLDTD) InitWithKindOptions(kind XMLNodeKind, options XMLNodeOptions) XMLDTD { - rv := objc.Call[XMLDTD](x_, objc.Sel("initWithKind:options:"), kind, options) +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 and one or more initialization options. [Full Topic] +// Returns an NSXMLNode instance initialized with the constant indicating node kind. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsxmlnode/1409747-initwithkind?language=objc -func NewXMLDTDWithKindOptions(kind XMLNodeKind, options XMLNodeOptions) XMLDTD { - instance := XMLDTDClass.Alloc().InitWithKindOptions(kind, options) +// [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 } -// 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) +func (x_ XMLDTD) InitWithKindOptions(kind XMLNodeKind, options XMLNodeOptions) XMLDTD { + rv := objc.Call[XMLDTD](x_, objc.Sel("initWithKind:options:"), kind, options) 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] +// Returns an NSXMLNode instance initialized with the constant indicating node kind and one or more initialization options. [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/nsxmlnode/1409747-initwithkind?language=objc +func NewXMLDTDWithKindOptions(kind XMLNodeKind, options XMLNodeOptions) XMLDTD { + instance := XMLDTDClass.Alloc().InitWithKindOptions(kind, options) + instance.Autorelease() + return instance } // Returns the DTD node representing the entity declaration for a specified entity. [Full Topic] @@ -144,14 +131,6 @@ 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 @@ -166,18 +145,20 @@ func (x_ XMLDTD) InsertChildAtIndex(child IXMLNode, index uint) { objc.Call[objc.Void](x_, objc.Sel("insertChild:atIndex:"), objc.Ptr(child), index) } -// Removes all existing children of the receiver and replaces them with an array of new child nodes. [Full Topic] +// 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/1415145-setchildren?language=objc -func (x_ XMLDTD) SetChildren(children []IXMLNode) { - objc.Call[objc.Void](x_, objc.Sel("setChildren:"), children) +// [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 } -// Adds a child node to the end of the list of existing children. [Full Topic] +// 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/1412988-addchild?language=objc -func (x_ XMLDTD) AddChild(child IXMLNode) { - objc.Call[objc.Void](x_, objc.Sel("addChild:"), objc.Ptr(child)) +// [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 a DTD node representing the predefined entity declaration with the specified name. [Full Topic] @@ -195,6 +176,27 @@ 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:"), objc.Ptr(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 @@ -202,21 +204,14 @@ func (x_ XMLDTD) ReplaceChildAtIndexWithNode(index uint, node IXMLNode) { objc.Call[objc.Void](x_, objc.Sel("replaceChildAtIndex:withNode:"), index, objc.Ptr(node)) } -// Returns the receiver’s system identifier. [Full Topic] +// Returns the DTD node representing an element declaration for a specified element. [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")) +// [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 } -// 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 @@ -231,3 +226,18 @@ 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 5afc8fdb..6006f407 100644 --- a/macos/foundation/xmldtd_node.gen.go +++ b/macos/foundation/xmldtd_node.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package foundation @@ -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] @@ -80,10 +80,6 @@ func (xc _XMLDTDNodeClass) Alloc() XMLDTDNode { return rv } -func XMLDTDNode_Alloc() XMLDTDNode { - return XMLDTDNodeClass.Alloc() -} - func (xc _XMLDTDNodeClass) New() XMLDTDNode { rv := objc.Call[XMLDTDNode](xc, objc.Sel("new")) rv.Autorelease() @@ -94,6 +90,43 @@ 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 @@ -138,26 +171,3 @@ 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 cb77e589..96902551 100644 --- a/macos/foundation/xpc_coder.gen.go +++ b/macos/foundation/xpc_coder.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package foundation @@ -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] @@ -41,10 +41,6 @@ func (xc _XPCCoderClass) Alloc() XPCCoder { return rv } -func XPCCoder_Alloc() XPCCoder { - return XPCCoderClass.Alloc() -} - func (xc _XPCCoderClass) New() XPCCoder { rv := objc.Call[XPCCoder](xc, objc.Sel("new")) rv.Autorelease() @@ -60,14 +56,6 @@ 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 @@ -82,3 +70,11 @@ 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 db631ed0..9f6dfe04 100644 --- a/macos/foundation/xpc_connection.gen.go +++ b/macos/foundation/xpc_connection.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package foundation @@ -18,25 +18,25 @@ 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 - Resume() + Suspend() Invalidate() + Resume() + SynchronousRemoteObjectProxyWithErrorHandler(handler func(error Error)) objc.Object InterruptionHandler() func() SetInterruptionHandler(value func()) - ExportedObject() objc.Object - SetExportedObject(value objc.IObject) - RemoteObjectProxy() objc.Object - Endpoint() XPCListenerEndpoint RemoteObjectInterface() XPCInterface SetRemoteObjectInterface(value IXPCInterface) - ServiceName() string ExportedInterface() XPCInterface SetExportedInterface(value IXPCInterface) + Endpoint() XPCListenerEndpoint + RemoteObjectProxy() objc.Object InvalidationHandler() func() SetInvalidationHandler(value func()) + ServiceName() string + ExportedObject() objc.Object + SetExportedObject(value objc.IObject) } // A bidirectional communication channel between two processes. [Full Topic] @@ -99,10 +99,6 @@ func (xc _XPCConnectionClass) Alloc() XPCConnection { return rv } -func XPCConnection_Alloc() XPCConnection { - return XPCConnectionClass.Alloc() -} - func (xc _XPCConnectionClass) New() XPCConnection { rv := objc.Call[XPCConnection](xc, objc.Sel("new")) rv.Autorelease() @@ -118,19 +114,19 @@ func (x_ XPCConnection) Init() XPCConnection { return rv } -// [Full Topic] +// 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/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/3172582-currentconnection?language=objc +func (xc _XPCConnectionClass) CurrentConnection() XPCConnection { + rv := objc.Call[XPCConnection](xc, objc.Sel("currentConnection")) return rv } -// Suspends the connection. [Full Topic] +// 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/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/3172582-currentconnection?language=objc +func XPCConnection_CurrentConnection() XPCConnection { + return XPCConnectionClass.CurrentConnection() } // Add a barrier block to execute on the connection. [Full Topic] @@ -140,27 +136,26 @@ 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] +// 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/3172582-currentconnection?language=objc -func (xc _XPCConnectionClass) CurrentConnection() XPCConnection { - rv := objc.Call[XPCConnection](xc, objc.Sel("currentConnection")) +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsxpcconnection/1407905-remoteobjectproxywitherrorhandle?language=objc +func (x_ XPCConnection) RemoteObjectProxyWithErrorHandler(handler func(error Error)) objc.Object { + rv := objc.Call[objc.Object](x_, objc.Sel("remoteObjectProxyWithErrorHandler:"), handler) return rv } -// Returns the current connection, in the context of a call to a method on your exported object. [Full Topic] +// Suspends the connection. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsxpcconnection/3172582-currentconnection?language=objc -func XPCConnection_CurrentConnection() XPCConnection { - return XPCConnectionClass.CurrentConnection() +// [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")) } -// 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] +// Invalidates the connection. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsxpcconnection/1407905-remoteobjectproxywitherrorhandle?language=objc -func (x_ XPCConnection) RemoteObjectProxyWithErrorHandler(handler func(error Error)) objc.Object { - rv := objc.Call[objc.Object](x_, objc.Sel("remoteObjectProxyWithErrorHandler:"), handler) - return rv +// [Full Topic]: https://developer.apple.com/documentation/foundation/nsxpcconnection/1412618-invalidate?language=objc +func (x_ XPCConnection) Invalidate() { + objc.Call[objc.Void](x_, objc.Sel("invalidate")) } // Starts or resumes handling of messages on a connection. [Full Topic] @@ -170,11 +165,12 @@ func (x_ XPCConnection) Resume() { objc.Call[objc.Void](x_, objc.Sel("resume")) } -// Invalidates the connection. [Full Topic] +// [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsxpcconnection/1412618-invalidate?language=objc -func (x_ XPCConnection) Invalidate() { - objc.Call[objc.Void](x_, objc.Sel("invalidate")) +// [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 } // An interruption handler that is called if the remote process exits or crashes. [Full Topic] @@ -192,37 +188,6 @@ 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 -} - -// 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 -} - // 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 @@ -238,14 +203,6 @@ func (x_ XPCConnection) SetRemoteObjectInterface(value IXPCInterface) { objc.Call[objc.Void](x_, objc.Sel("setRemoteObjectInterface:"), objc.Ptr(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 @@ -261,6 +218,22 @@ func (x_ XPCConnection) SetExportedInterface(value IXPCInterface) { objc.Call[objc.Void](x_, objc.Sel("setExportedInterface:"), objc.Ptr(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 +} + // An invalidation handler that is called if the connection can not be formed or the connection has terminated and may not be re-established. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/foundation/nsxpcconnection/1414358-invalidationhandler?language=objc @@ -275,3 +248,26 @@ 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 3e3698ca..e3dab2bc 100644 --- a/macos/foundation/xpc_interface.gen.go +++ b/macos/foundation/xpc_interface.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package foundation @@ -18,10 +18,10 @@ type _XPCInterfaceClass struct { // An interface definition for the [XPCInterface] class. type IXPCInterface interface { objc.IObject - SetClassesForSelectorArgumentIndexOfReply(classes ISet, 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 + SetClassesForSelectorArgumentIndexOfReply(classes ISet, sel objc.Selector, arg uint, ofReply bool) SetInterfaceForSelectorArgumentIndexOfReply(ifc IXPCInterface, sel objc.Selector, arg uint, ofReply bool) + InterfaceForSelectorArgumentIndexOfReply(sel objc.Selector, arg uint, ofReply bool) XPCInterface Protocol() objc.Protocol SetProtocol(value objc.IProtocol) } @@ -44,10 +44,6 @@ func (xc _XPCInterfaceClass) Alloc() XPCInterface { return rv } -func XPCInterface_Alloc() XPCInterface { - return XPCInterfaceClass.Alloc() -} - func (xc _XPCInterfaceClass) New() XPCInterface { rv := objc.Call[XPCInterface](xc, objc.Sel("new")) rv.Autorelease() @@ -63,6 +59,14 @@ 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 @@ -70,6 +74,21 @@ func (x_ XPCInterface) SetClassesForSelectorArgumentIndexOfReply(classes ISet, s objc.Call[objc.Void](x_, objc.Sel("setClasses:forSelector:argumentIndex:ofReply:"), objc.Ptr(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:"), objc.Ptr(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 @@ -85,29 +104,6 @@ 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:"), objc.Ptr(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 d4622135..1a5565f9 100644 --- a/macos/foundation/xpc_listener.gen.go +++ b/macos/foundation/xpc_listener.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package foundation @@ -18,13 +18,13 @@ type _XPCListenerClass struct { // An interface definition for the [XPCListener] class. type IXPCListener interface { objc.IObject - Suspend() Resume() + Suspend() Invalidate() - Endpoint() XPCListenerEndpoint - Delegate() XPCListenerDelegateWrapper + 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] @@ -59,10 +59,6 @@ func (xc _XPCListenerClass) Alloc() XPCListener { return rv } -func XPCListener_Alloc() XPCListener { - return XPCListenerClass.Alloc() -} - func (xc _XPCListenerClass) New() XPCListener { rv := objc.Call[XPCListener](xc, objc.Sel("new")) rv.Autorelease() @@ -78,19 +74,11 @@ func (x_ XPCListener) Init() XPCListener { return rv } -// 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")) } // Suspends the listener. [Full Topic] @@ -115,11 +103,19 @@ func XPCListener_ServiceListener() XPCListener { return XPCListenerClass.ServiceListener() } -// 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() } // Invalidates the listener. [Full Topic] @@ -129,19 +125,11 @@ 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 -func (x_ XPCListener) Delegate() XPCListenerDelegateWrapper { - rv := objc.Call[XPCListenerDelegateWrapper](x_, objc.Sel("delegate")) +func (x_ XPCListener) Delegate() XPCListenerDelegateObject { + rv := objc.Call[XPCListenerDelegateObject](x_, objc.Sel("delegate")) return rv } @@ -160,3 +148,11 @@ func (x_ XPCListener) SetDelegate(value PXPCListenerDelegate) { func (x_ XPCListener) SetDelegateObject(valueObject objc.IObject) { objc.Call[objc.Void](x_, objc.Sel("setDelegate:"), objc.Ptr(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_listener_delegate.gen.go b/macos/foundation/xpc_listener_delegate.gen.go index 2f73409c..76e6566c 100644 --- a/macos/foundation/xpc_listener_delegate.gen.go +++ b/macos/foundation/xpc_listener_delegate.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package foundation @@ -38,19 +38,22 @@ func (di *XPCListenerDelegate) ListenerShouldAcceptNewConnection(listener XPCLis return di._ListenerShouldAcceptNewConnection(listener, newConnection) } -// A concrete type wrapper for the [PXPCListenerDelegate] protocol. -type XPCListenerDelegateWrapper struct { +// ensure impl type implements protocol interface +var _ PXPCListenerDelegate = (*XPCListenerDelegateObject)(nil) + +// A concrete type for the [PXPCListenerDelegate] protocol. +type XPCListenerDelegateObject struct { objc.Object } -func (x_ XPCListenerDelegateWrapper) HasListenerShouldAcceptNewConnection() bool { +func (x_ XPCListenerDelegateObject) HasListenerShouldAcceptNewConnection() bool { return x_.RespondsToSelector(objc.Sel("listener:shouldAcceptNewConnection:")) } // Accepts or rejects a new connection to the listener. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/foundation/nsxpclistenerdelegate/1410381-listener?language=objc -func (x_ XPCListenerDelegateWrapper) ListenerShouldAcceptNewConnection(listener IXPCListener, newConnection IXPCConnection) bool { +func (x_ XPCListenerDelegateObject) ListenerShouldAcceptNewConnection(listener XPCListener, newConnection XPCConnection) bool { rv := objc.Call[bool](x_, objc.Sel("listener:shouldAcceptNewConnection:"), objc.Ptr(listener), objc.Ptr(newConnection)) return rv } diff --git a/macos/foundation/xpc_listener_endpoint.gen.go b/macos/foundation/xpc_listener_endpoint.gen.go index e4c96e9e..52dfca6a 100644 --- a/macos/foundation/xpc_listener_endpoint.gen.go +++ b/macos/foundation/xpc_listener_endpoint.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package foundation @@ -38,10 +38,6 @@ func (xc _XPCListenerEndpointClass) Alloc() XPCListenerEndpoint { return rv } -func XPCListenerEndpoint_Alloc() XPCListenerEndpoint { - return XPCListenerEndpointClass.Alloc() -} - func (xc _XPCListenerEndpointClass) New() XPCListenerEndpoint { rv := objc.Call[XPCListenerEndpoint](xc, objc.Sel("new")) rv.Autorelease() diff --git a/macos/foundation/xpc_proxy_creating.gen.go b/macos/foundation/xpc_proxy_creating_protocol.gen.go similarity index 67% rename from macos/foundation/xpc_proxy_creating.gen.go rename to macos/foundation/xpc_proxy_creating_protocol.gen.go index 225b34c0..df43fe04 100644 --- a/macos/foundation/xpc_proxy_creating.gen.go +++ b/macos/foundation/xpc_proxy_creating_protocol.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package foundation @@ -11,55 +11,58 @@ import ( // [Full Topic]: https://developer.apple.com/documentation/foundation/nsxpcproxycreating?language=objc type PXPCProxyCreating interface { // optional - SynchronousRemoteObjectProxyWithErrorHandler(handler func(error Error)) objc.IObject - HasSynchronousRemoteObjectProxyWithErrorHandler() bool - - // optional - RemoteObjectProxy() objc.IObject + RemoteObjectProxy() objc.Object HasRemoteObjectProxy() bool // optional - RemoteObjectProxyWithErrorHandler(handler func(error Error)) objc.IObject + RemoteObjectProxyWithErrorHandler(handler func(error Error)) objc.Object HasRemoteObjectProxyWithErrorHandler() bool -} -// A concrete type wrapper for the [PXPCProxyCreating] protocol. -type XPCProxyCreatingWrapper struct { - objc.Object + // optional + SynchronousRemoteObjectProxyWithErrorHandler(handler func(error Error)) objc.Object + HasSynchronousRemoteObjectProxyWithErrorHandler() bool } -func (x_ XPCProxyCreatingWrapper) HasSynchronousRemoteObjectProxyWithErrorHandler() bool { - return x_.RespondsToSelector(objc.Sel("synchronousRemoteObjectProxyWithErrorHandler:")) -} +// ensure impl type implements protocol interface +var _ PXPCProxyCreating = (*XPCProxyCreatingObject)(nil) -// [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/foundation/nsxpcproxycreating/2879411-synchronousremoteobjectproxywith?language=objc -func (x_ XPCProxyCreatingWrapper) SynchronousRemoteObjectProxyWithErrorHandler(handler func(error Error)) objc.Object { - rv := objc.Call[objc.Object](x_, objc.Sel("synchronousRemoteObjectProxyWithErrorHandler:"), handler) - return rv +// A concrete type for the [PXPCProxyCreating] protocol. +type XPCProxyCreatingObject struct { + objc.Object } -func (x_ XPCProxyCreatingWrapper) HasRemoteObjectProxy() bool { +func (x_ XPCProxyCreatingObject) HasRemoteObjectProxy() bool { return x_.RespondsToSelector(objc.Sel("remoteObjectProxy")) } // Returns a proxy object with no error handling block. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/foundation/nsxpcproxycreating/1418403-remoteobjectproxy?language=objc -func (x_ XPCProxyCreatingWrapper) RemoteObjectProxy() objc.Object { +func (x_ XPCProxyCreatingObject) RemoteObjectProxy() objc.Object { rv := objc.Call[objc.Object](x_, objc.Sel("remoteObjectProxy")) return rv } -func (x_ XPCProxyCreatingWrapper) HasRemoteObjectProxyWithErrorHandler() bool { +func (x_ XPCProxyCreatingObject) HasRemoteObjectProxyWithErrorHandler() bool { return x_.RespondsToSelector(objc.Sel("remoteObjectProxyWithErrorHandler:")) } // Returns a proxy object that invokes the error handling block if an error occurs on the connection. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/foundation/nsxpcproxycreating/1415611-remoteobjectproxywitherrorhandle?language=objc -func (x_ XPCProxyCreatingWrapper) RemoteObjectProxyWithErrorHandler(handler func(error Error)) objc.Object { +func (x_ XPCProxyCreatingObject) RemoteObjectProxyWithErrorHandler(handler func(error Error)) objc.Object { 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/imageio/aliastypes.gen.go b/macos/imageio/aliastypes.gen.go index 26784fb1..d9c19314 100644 --- a/macos/imageio/aliastypes.gen.go +++ b/macos/imageio/aliastypes.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package imageio diff --git a/macos/imageio/doc.gen.go b/macos/imageio/doc.gen.go index 0f3b8450..e528b981 100644 --- a/macos/imageio/doc.gen.go +++ b/macos/imageio/doc.gen.go @@ -1,8 +1,8 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. // Read and write most image file formats, and access an image’s metadata. // -// [Full Documentation] +// [Apple Documentation] // -// [Full Documentation]: https://developer.apple.com/documentation/imageio?language=objc +// [Apple Documentation]: https://developer.apple.com/documentation/imageio?language=objc package imageio diff --git a/macos/imageio/enumtypes.gen.go b/macos/imageio/enumtypes.gen.go index 6054affe..b2b665fb 100644 --- a/macos/imageio/enumtypes.gen.go +++ b/macos/imageio/enumtypes.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package imageio diff --git a/macos/imageio/protocols.gen.m b/macos/imageio/protocols.gen.m index a2a21e73..8e306d7c 100644 --- a/macos/imageio/protocols.gen.m +++ b/macos/imageio/protocols.gen.m @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. #import "ImageIO/ImageIO.h" diff --git a/macos/iosurface/doc.gen.go b/macos/iosurface/doc.gen.go index e9c86ac9..3fd060d0 100644 --- a/macos/iosurface/doc.gen.go +++ b/macos/iosurface/doc.gen.go @@ -1,8 +1,8 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. // Share hardware-accelerated buffer data (framebuffers and textures) across multiple processes. Manage image memory more efficiently. // -// [Full Documentation] +// [Apple Documentation] // -// [Full Documentation]: https://developer.apple.com/documentation/iosurface?language=objc +// [Apple Documentation]: https://developer.apple.com/documentation/iosurface?language=objc package iosurface diff --git a/macos/iosurface/enumtypes.gen.go b/macos/iosurface/enumtypes.gen.go index 5de0db2e..b6787b2f 100644 --- a/macos/iosurface/enumtypes.gen.go +++ b/macos/iosurface/enumtypes.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package iosurface diff --git a/macos/iosurface/io_surface.gen.go b/macos/iosurface/io_surface.gen.go index 03d1c0ad..0c5fcdb0 100644 --- a/macos/iosurface/io_surface.gen.go +++ b/macos/iosurface/io_surface.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package iosurface @@ -18,38 +18,38 @@ type _IOSurfaceClass struct { // An interface definition for the [IOSurface] class. type IIOSurface interface { objc.IObject - 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 + WidthOfPlaneAtIndex(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 + 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 + SetAttachmentForKey(anObject objc.IObject, key string) + RemoveAllAttachments() BytesPerRowOfPlaneAtIndex(planeIndex uint) int + IncrementUseCount() + ElementHeightOfPlaneAtIndex(planeIndex uint) int AttachmentForKey(key string) objc.Object - ElementWidthOfPlaneAtIndex(planeIndex uint) int - WidthOfPlaneAtIndex(planeIndex uint) int + HeightOfPlaneAtIndex(planeIndex uint) int + LockWithOptionsSeed(options LockOptions, seed *uint32) int BytesPerElementOfPlaneAtIndex(planeIndex uint) int - IsInUse() bool Width() int - LocalUseCount() int32 - PlaneCount() uint - ElementHeight() int ElementWidth() int - Height() int - BytesPerRow() int - BaseAddress() unsafe.Pointer + Seed() uint32 + ElementHeight() int PixelFormat() uint - AllowsPixelSizeCasting() bool + Height() int + LocalUseCount() int32 BytesPerElement() int + AllowsPixelSizeCasting() bool AllocationSize() int - Seed() uint32 + BaseAddress() unsafe.Pointer + BytesPerRow() int + PlaneCount() uint + IsInUse() bool } // Data type representing an IOSurface opaque object. [Full Topic] @@ -84,10 +84,6 @@ func (ic _IOSurfaceClass) Alloc() IOSurface { return rv } -func IOSurface_Alloc() IOSurface { - return IOSurfaceClass.Alloc() -} - func (ic _IOSurfaceClass) New() IOSurface { rv := objc.Call[IOSurface](ic, objc.Sel("new")) rv.Autorelease() @@ -105,26 +101,31 @@ func (i_ IOSurface) Init() IOSurface { // [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")) +// [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 } // [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) - 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/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]: 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/2092532-setallattachments?language=objc +func (i_ IOSurface) SetAllAttachments(dict map[string]objc.IObject) { + objc.Call[objc.Void](i_, objc.Sel("setAllAttachments:"), dict) } // [Full Topic] @@ -137,38 +138,41 @@ func (i_ IOSurface) SetPurgeableOldState(newState PurgeabilityState, oldState *P // [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/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/2092541-removeattachmentforkey?language=objc -func (i_ IOSurface) RemoveAttachmentForKey(key string) { - objc.Call[objc.Void](i_, objc.Sel("removeAttachmentForKey:"), key) +// [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/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/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/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/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/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] @@ -180,32 +184,24 @@ func (i_ IOSurface) RemoveAllAttachments() { // [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] -// -// [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) +// [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 } // [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) - 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/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/2092515-elementheightofplaneatindex?language=objc +func (i_ IOSurface) ElementHeightOfPlaneAtIndex(planeIndex uint) int { + rv := objc.Call[int](i_, objc.Sel("elementHeightOfPlaneAtIndex:"), planeIndex) return rv } @@ -219,17 +215,17 @@ func (i_ IOSurface) AttachmentForKey(key string) objc.Object { // [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) +// [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/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/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 } @@ -241,14 +237,6 @@ 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 @@ -259,17 +247,17 @@ func (i_ IOSurface) Width() 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")) +// [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 } // [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/2092533-seed?language=objc +func (i_ IOSurface) Seed() uint32 { + rv := objc.Call[uint32](i_, objc.Sel("seed")) return rv } @@ -283,9 +271,9 @@ func (i_ IOSurface) ElementHeight() 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/2092537-pixelformat?language=objc +func (i_ IOSurface) PixelFormat() uint { + rv := objc.Call[uint](i_, objc.Sel("pixelFormat")) return rv } @@ -299,56 +287,64 @@ func (i_ IOSurface) Height() int { // [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/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/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/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/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/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/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/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/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/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/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/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 +} + +// [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 } diff --git a/macos/iosurface/protocols.gen.m b/macos/iosurface/protocols.gen.m index 8c8bb0c4..34a51f08 100644 --- a/macos/iosurface/protocols.gen.m +++ b/macos/iosurface/protocols.gen.m @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. #import "IOSurface/IOSurface.h" diff --git a/macos/mediaplayer/change_language_option_command_event.gen.go b/macos/mediaplayer/change_language_option_command_event.gen.go index b4063027..0d5cefd5 100644 --- a/macos/mediaplayer/change_language_option_command_event.gen.go +++ b/macos/mediaplayer/change_language_option_command_event.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package mediaplayer @@ -39,10 +39,6 @@ func (cc _ChangeLanguageOptionCommandEventClass) Alloc() ChangeLanguageOptionCom return rv } -func ChangeLanguageOptionCommandEvent_Alloc() ChangeLanguageOptionCommandEvent { - return ChangeLanguageOptionCommandEventClass.Alloc() -} - func (cc _ChangeLanguageOptionCommandEventClass) New() ChangeLanguageOptionCommandEvent { rv := objc.Call[ChangeLanguageOptionCommandEvent](cc, objc.Sel("new")) rv.Autorelease() diff --git a/macos/mediaplayer/change_playback_position_command.gen.go b/macos/mediaplayer/change_playback_position_command.gen.go index b4b5d925..3acf5c01 100644 --- a/macos/mediaplayer/change_playback_position_command.gen.go +++ b/macos/mediaplayer/change_playback_position_command.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package mediaplayer @@ -38,10 +38,6 @@ func (cc _ChangePlaybackPositionCommandClass) Alloc() ChangePlaybackPositionComm return rv } -func ChangePlaybackPositionCommand_Alloc() ChangePlaybackPositionCommand { - return ChangePlaybackPositionCommandClass.Alloc() -} - func (cc _ChangePlaybackPositionCommandClass) New() ChangePlaybackPositionCommand { rv := objc.Call[ChangePlaybackPositionCommand](cc, objc.Sel("new")) rv.Autorelease() diff --git a/macos/mediaplayer/change_playback_position_command_event.gen.go b/macos/mediaplayer/change_playback_position_command_event.gen.go index 4920a35d..d7bf7cff 100644 --- a/macos/mediaplayer/change_playback_position_command_event.gen.go +++ b/macos/mediaplayer/change_playback_position_command_event.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package mediaplayer @@ -40,10 +40,6 @@ func (cc _ChangePlaybackPositionCommandEventClass) Alloc() ChangePlaybackPositio return rv } -func ChangePlaybackPositionCommandEvent_Alloc() ChangePlaybackPositionCommandEvent { - return ChangePlaybackPositionCommandEventClass.Alloc() -} - func (cc _ChangePlaybackPositionCommandEventClass) New() ChangePlaybackPositionCommandEvent { rv := objc.Call[ChangePlaybackPositionCommandEvent](cc, objc.Sel("new")) rv.Autorelease() diff --git a/macos/mediaplayer/change_playback_rate_command.gen.go b/macos/mediaplayer/change_playback_rate_command.gen.go index c269a91f..278e46cb 100644 --- a/macos/mediaplayer/change_playback_rate_command.gen.go +++ b/macos/mediaplayer/change_playback_rate_command.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package mediaplayer @@ -41,10 +41,6 @@ func (cc _ChangePlaybackRateCommandClass) Alloc() ChangePlaybackRateCommand { return rv } -func ChangePlaybackRateCommand_Alloc() ChangePlaybackRateCommand { - return ChangePlaybackRateCommandClass.Alloc() -} - func (cc _ChangePlaybackRateCommandClass) New() ChangePlaybackRateCommand { rv := objc.Call[ChangePlaybackRateCommand](cc, objc.Sel("new")) rv.Autorelease() diff --git a/macos/mediaplayer/change_playback_rate_command_event.gen.go b/macos/mediaplayer/change_playback_rate_command_event.gen.go index be294e9c..dcbe8689 100644 --- a/macos/mediaplayer/change_playback_rate_command_event.gen.go +++ b/macos/mediaplayer/change_playback_rate_command_event.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package mediaplayer @@ -39,10 +39,6 @@ func (cc _ChangePlaybackRateCommandEventClass) Alloc() ChangePlaybackRateCommand return rv } -func ChangePlaybackRateCommandEvent_Alloc() ChangePlaybackRateCommandEvent { - return ChangePlaybackRateCommandEventClass.Alloc() -} - func (cc _ChangePlaybackRateCommandEventClass) New() ChangePlaybackRateCommandEvent { rv := objc.Call[ChangePlaybackRateCommandEvent](cc, objc.Sel("new")) rv.Autorelease() diff --git a/macos/mediaplayer/change_repeat_mode_command.gen.go b/macos/mediaplayer/change_repeat_mode_command.gen.go index 77f59d0a..1df8e79e 100644 --- a/macos/mediaplayer/change_repeat_mode_command.gen.go +++ b/macos/mediaplayer/change_repeat_mode_command.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package mediaplayer @@ -40,10 +40,6 @@ func (cc _ChangeRepeatModeCommandClass) Alloc() ChangeRepeatModeCommand { return rv } -func ChangeRepeatModeCommand_Alloc() ChangeRepeatModeCommand { - return ChangeRepeatModeCommandClass.Alloc() -} - func (cc _ChangeRepeatModeCommandClass) New() ChangeRepeatModeCommand { rv := objc.Call[ChangeRepeatModeCommand](cc, objc.Sel("new")) rv.Autorelease() diff --git a/macos/mediaplayer/change_repeat_mode_command_event.gen.go b/macos/mediaplayer/change_repeat_mode_command_event.gen.go index 5c0dc6fc..5422d5b9 100644 --- a/macos/mediaplayer/change_repeat_mode_command_event.gen.go +++ b/macos/mediaplayer/change_repeat_mode_command_event.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package mediaplayer @@ -40,10 +40,6 @@ func (cc _ChangeRepeatModeCommandEventClass) Alloc() ChangeRepeatModeCommandEven return rv } -func ChangeRepeatModeCommandEvent_Alloc() ChangeRepeatModeCommandEvent { - return ChangeRepeatModeCommandEventClass.Alloc() -} - func (cc _ChangeRepeatModeCommandEventClass) New() ChangeRepeatModeCommandEvent { rv := objc.Call[ChangeRepeatModeCommandEvent](cc, objc.Sel("new")) rv.Autorelease() diff --git a/macos/mediaplayer/change_shuffle_mode_command.gen.go b/macos/mediaplayer/change_shuffle_mode_command.gen.go index 317a4780..97351f16 100644 --- a/macos/mediaplayer/change_shuffle_mode_command.gen.go +++ b/macos/mediaplayer/change_shuffle_mode_command.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package mediaplayer @@ -40,10 +40,6 @@ func (cc _ChangeShuffleModeCommandClass) Alloc() ChangeShuffleModeCommand { return rv } -func ChangeShuffleModeCommand_Alloc() ChangeShuffleModeCommand { - return ChangeShuffleModeCommandClass.Alloc() -} - func (cc _ChangeShuffleModeCommandClass) New() ChangeShuffleModeCommand { rv := objc.Call[ChangeShuffleModeCommand](cc, objc.Sel("new")) rv.Autorelease() diff --git a/macos/mediaplayer/change_shuffle_mode_command_event.gen.go b/macos/mediaplayer/change_shuffle_mode_command_event.gen.go index 68cff2af..22de4f04 100644 --- a/macos/mediaplayer/change_shuffle_mode_command_event.gen.go +++ b/macos/mediaplayer/change_shuffle_mode_command_event.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package mediaplayer @@ -40,10 +40,6 @@ func (cc _ChangeShuffleModeCommandEventClass) Alloc() ChangeShuffleModeCommandEv return rv } -func ChangeShuffleModeCommandEvent_Alloc() ChangeShuffleModeCommandEvent { - return ChangeShuffleModeCommandEventClass.Alloc() -} - func (cc _ChangeShuffleModeCommandEventClass) New() ChangeShuffleModeCommandEvent { rv := objc.Call[ChangeShuffleModeCommandEvent](cc, objc.Sel("new")) rv.Autorelease() diff --git a/macos/mediaplayer/content_item.gen.go b/macos/mediaplayer/content_item.gen.go index def6f091..742a2807 100644 --- a/macos/mediaplayer/content_item.gen.go +++ b/macos/mediaplayer/content_item.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package mediaplayer @@ -18,23 +18,23 @@ type _ContentItemClass struct { // An interface definition for the [ContentItem] class. type IContentItem interface { objc.IObject - Subtitle() string - SetSubtitle(value string) - PlaybackProgress() float64 - SetPlaybackProgress(value float64) - Artwork() MediaItemArtwork - SetArtwork(value IMediaItemArtwork) IsStreamingContent() bool SetStreamingContent(value bool) IsContainer() bool SetContainer(value bool) - Title() string - SetTitle(value string) + IsPlayable() bool + SetPlayable(value bool) + PlaybackProgress() float64 + SetPlaybackProgress(value float64) + Artwork() MediaItemArtwork + SetArtwork(value IMediaItemArtwork) + Subtitle() string + SetSubtitle(value string) IsExplicitContent() bool SetExplicitContent(value bool) Identifier() string - IsPlayable() bool - SetPlayable(value bool) + Title() string + SetTitle(value string) } // An object that contains the information for a displayed media item. [Full Topic] @@ -69,10 +69,6 @@ func (cc _ContentItemClass) Alloc() ContentItem { return rv } -func ContentItem_Alloc() ContentItem { - return ContentItemClass.Alloc() -} - func (cc _ContentItemClass) New() ContentItem { rv := objc.Call[ContentItem](cc, objc.Sel("new")) rv.Autorelease() @@ -88,19 +84,49 @@ func (c_ ContentItem) Init() ContentItem { 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) 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) +} + +// 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/1620158-playable?language=objc +func (c_ ContentItem) IsPlayable() bool { + rv := objc.Call[bool](c_, objc.Sel("isPlayable")) + return rv +} + +// 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/1620158-playable?language=objc +func (c_ ContentItem) SetPlayable(value bool) { + objc.Call[objc.Void](c_, objc.Sel("setPlayable:"), value) } // The amount of content played for the media item. [Full Topic] @@ -133,49 +159,19 @@ func (c_ ContentItem) SetArtwork(value IMediaItemArtwork) { objc.Call[objc.Void](c_, objc.Sel("setArtwork:"), objc.Ptr(value)) } -// 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) -} - -// The public name of the media item. [Full Topic] +// A secondary designator for 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")) +// [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 } -// The public name of the media item. [Full Topic] +// A secondary designator for 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) +// [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) } // A Boolean value that indicates whether the media item contains explicit content. [Full Topic] @@ -201,17 +197,17 @@ func (c_ ContentItem) Identifier() string { return rv } -// A Boolean value that indicates whether a media item is able to be played. [Full Topic] +// The public name of 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/1620156-title?language=objc +func (c_ ContentItem) Title() string { + rv := objc.Call[string](c_, objc.Sel("title")) return rv } -// A Boolean value that indicates whether a media item is able to be played. [Full Topic] +// The public name of 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/1620156-title?language=objc +func (c_ ContentItem) SetTitle(value string) { + objc.Call[objc.Void](c_, objc.Sel("setTitle:"), value) } diff --git a/macos/mediaplayer/doc.gen.go b/macos/mediaplayer/doc.gen.go index c7237532..4ede7574 100644 --- a/macos/mediaplayer/doc.gen.go +++ b/macos/mediaplayer/doc.gen.go @@ -1,8 +1,8 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. // Find and play songs, audio podcasts, audio books, and more from within your app. // -// [Full Documentation] +// [Apple Documentation] // -// [Full Documentation]: https://developer.apple.com/documentation/mediaplayer?language=objc +// [Apple Documentation]: https://developer.apple.com/documentation/mediaplayer?language=objc package mediaplayer diff --git a/macos/mediaplayer/enumtypes.gen.go b/macos/mediaplayer/enumtypes.gen.go index fc58c9a3..37c29a9b 100644 --- a/macos/mediaplayer/enumtypes.gen.go +++ b/macos/mediaplayer/enumtypes.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package mediaplayer diff --git a/macos/mediaplayer/feedback_command.gen.go b/macos/mediaplayer/feedback_command.gen.go index d09d7126..a39582ad 100644 --- a/macos/mediaplayer/feedback_command.gen.go +++ b/macos/mediaplayer/feedback_command.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package mediaplayer @@ -18,10 +18,10 @@ type _FeedbackCommandClass struct { // An interface definition for the [FeedbackCommand] class. type IFeedbackCommand interface { IRemoteCommand - IsActive() bool - SetActive(value bool) LocalizedTitle() string SetLocalizedTitle(value string) + IsActive() bool + SetActive(value bool) LocalizedShortTitle() string SetLocalizedShortTitle(value string) } @@ -44,10 +44,6 @@ func (fc _FeedbackCommandClass) Alloc() FeedbackCommand { return rv } -func FeedbackCommand_Alloc() FeedbackCommand { - return FeedbackCommandClass.Alloc() -} - func (fc _FeedbackCommandClass) New() FeedbackCommand { rv := objc.Call[FeedbackCommand](fc, objc.Sel("new")) rv.Autorelease() @@ -63,21 +59,6 @@ func (f_ FeedbackCommand) Init() FeedbackCommand { return rv } -// 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 -func (f_ FeedbackCommand) IsActive() bool { - rv := objc.Call[bool](f_, objc.Sel("isActive")) - return rv -} - -// 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 -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 @@ -93,6 +74,21 @@ 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 +func (f_ FeedbackCommand) IsActive() bool { + rv := objc.Call[bool](f_, objc.Sel("isActive")) + return rv +} + +// 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 +func (f_ FeedbackCommand) SetActive(value bool) { + objc.Call[objc.Void](f_, objc.Sel("setActive:"), 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/feedback_command_event.gen.go b/macos/mediaplayer/feedback_command_event.gen.go index fef2c231..3e3bb9a5 100644 --- a/macos/mediaplayer/feedback_command_event.gen.go +++ b/macos/mediaplayer/feedback_command_event.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package mediaplayer @@ -39,10 +39,6 @@ func (fc _FeedbackCommandEventClass) Alloc() FeedbackCommandEvent { return rv } -func FeedbackCommandEvent_Alloc() FeedbackCommandEvent { - return FeedbackCommandEventClass.Alloc() -} - func (fc _FeedbackCommandEventClass) New() FeedbackCommandEvent { rv := objc.Call[FeedbackCommandEvent](fc, objc.Sel("new")) rv.Autorelease() diff --git a/macos/mediaplayer/media_item_artwork.gen.go b/macos/mediaplayer/media_item_artwork.gen.go index 1f963e81..be2120a5 100644 --- a/macos/mediaplayer/media_item_artwork.gen.go +++ b/macos/mediaplayer/media_item_artwork.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package mediaplayer @@ -21,8 +21,8 @@ type _MediaItemArtworkClass struct { type IMediaItemArtwork interface { objc.IObject ImageWithSize(size coregraphics.Size) appkit.Image - Bounds() coregraphics.Rect ImageCropRect() coregraphics.Rect + Bounds() coregraphics.Rect } // A graphical image, such as music album cover art, associated with a media item. [Full Topic] @@ -57,10 +57,6 @@ func (mc _MediaItemArtworkClass) Alloc() MediaItemArtwork { return rv } -func MediaItemArtwork_Alloc() MediaItemArtwork { - return MediaItemArtworkClass.Alloc() -} - func (mc _MediaItemArtworkClass) New() MediaItemArtwork { rv := objc.Call[MediaItemArtwork](mc, objc.Sel("new")) rv.Autorelease() @@ -84,14 +80,6 @@ func (m_ MediaItemArtwork) ImageWithSize(size coregraphics.Size) appkit.Image { 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 -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 @@ -99,3 +87,11 @@ 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 +func (m_ MediaItemArtwork) Bounds() coregraphics.Rect { + rv := objc.Call[coregraphics.Rect](m_, objc.Sel("bounds")) + return rv +} diff --git a/macos/mediaplayer/now_playing_info_center.gen.go b/macos/mediaplayer/now_playing_info_center.gen.go index 04f3c0d9..538e72d2 100644 --- a/macos/mediaplayer/now_playing_info_center.gen.go +++ b/macos/mediaplayer/now_playing_info_center.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package mediaplayer @@ -42,10 +42,6 @@ func (nc _NowPlayingInfoCenterClass) Alloc() NowPlayingInfoCenter { return rv } -func NowPlayingInfoCenter_Alloc() NowPlayingInfoCenter { - return NowPlayingInfoCenterClass.Alloc() -} - func (nc _NowPlayingInfoCenterClass) New() NowPlayingInfoCenter { rv := objc.Call[NowPlayingInfoCenter](nc, objc.Sel("new")) rv.Autorelease() diff --git a/macos/mediaplayer/now_playing_info_language_option.gen.go b/macos/mediaplayer/now_playing_info_language_option.gen.go index eb573140..ef4f7871 100644 --- a/macos/mediaplayer/now_playing_info_language_option.gen.go +++ b/macos/mediaplayer/now_playing_info_language_option.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package mediaplayer @@ -18,13 +18,13 @@ type _NowPlayingInfoLanguageOptionClass struct { // An interface definition for the [NowPlayingInfoLanguageOption] class. type INowPlayingInfoLanguageOption interface { objc.IObject - IsAutomaticLegibleLanguageOption() bool IsAutomaticAudibleLanguageOption() bool - LanguageOptionType() NowPlayingInfoLanguageOptionType + IsAutomaticLegibleLanguageOption() bool + DisplayName() string 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] @@ -59,10 +59,6 @@ func (nc _NowPlayingInfoLanguageOptionClass) Alloc() NowPlayingInfoLanguageOptio return rv } -func NowPlayingInfoLanguageOption_Alloc() NowPlayingInfoLanguageOption { - return NowPlayingInfoLanguageOptionClass.Alloc() -} - func (nc _NowPlayingInfoLanguageOptionClass) New() NowPlayingInfoLanguageOption { rv := objc.Call[NowPlayingInfoLanguageOption](nc, objc.Sel("new")) rv.Autorelease() @@ -78,14 +74,6 @@ func (n_ NowPlayingInfoLanguageOption) Init() NowPlayingInfoLanguageOption { 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 -func (n_ NowPlayingInfoLanguageOption) IsAutomaticLegibleLanguageOption() bool { - rv := objc.Call[bool](n_, objc.Sel("isAutomaticLegibleLanguageOption")) - 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 @@ -94,11 +82,19 @@ func (n_ NowPlayingInfoLanguageOption) IsAutomaticAudibleLanguageOption() bool { return rv } -// The type of language option. [Full Topic] +// 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/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/1623144-isautomaticlegiblelanguageoption?language=objc +func (n_ NowPlayingInfoLanguageOption) IsAutomaticLegibleLanguageOption() bool { + rv := objc.Call[bool](n_, objc.Sel("isAutomaticLegibleLanguageOption")) + return rv +} + +// The display name for a language option. [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")) return rv } @@ -118,14 +114,6 @@ func (n_ NowPlayingInfoLanguageOption) LanguageOptionCharacteristics() []string return rv } -// The display name for a language option. [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")) - return rv -} - // The unique identifier for the language option. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/mediaplayer/mpnowplayinginfolanguageoption/1623135-identifier?language=objc @@ -133,3 +121,11 @@ func (n_ NowPlayingInfoLanguageOption) Identifier() string { rv := objc.Call[string](n_, objc.Sel("identifier")) 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 +} diff --git a/macos/mediaplayer/now_playing_info_language_option_group.gen.go b/macos/mediaplayer/now_playing_info_language_option_group.gen.go index 13126d16..a9148778 100644 --- a/macos/mediaplayer/now_playing_info_language_option_group.gen.go +++ b/macos/mediaplayer/now_playing_info_language_option_group.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package mediaplayer @@ -39,10 +39,6 @@ func (nc _NowPlayingInfoLanguageOptionGroupClass) Alloc() NowPlayingInfoLanguage return rv } -func NowPlayingInfoLanguageOptionGroup_Alloc() NowPlayingInfoLanguageOptionGroup { - return NowPlayingInfoLanguageOptionGroupClass.Alloc() -} - func (nc _NowPlayingInfoLanguageOptionGroupClass) New() NowPlayingInfoLanguageOptionGroup { rv := objc.Call[NowPlayingInfoLanguageOptionGroup](nc, objc.Sel("new")) rv.Autorelease() diff --git a/macos/mediaplayer/protocols.gen.m b/macos/mediaplayer/protocols.gen.m index 894a65eb..eb6f3717 100644 --- a/macos/mediaplayer/protocols.gen.m +++ b/macos/mediaplayer/protocols.gen.m @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. #import "MediaPlayer/MediaPlayer.h" diff --git a/macos/mediaplayer/rating_command.gen.go b/macos/mediaplayer/rating_command.gen.go index 4681f191..52adffa5 100644 --- a/macos/mediaplayer/rating_command.gen.go +++ b/macos/mediaplayer/rating_command.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package mediaplayer @@ -18,10 +18,10 @@ type _RatingCommandClass struct { // An interface definition for the [RatingCommand] class. type IRatingCommand interface { IRemoteCommand - MinimumRating() float64 - SetMinimumRating(value float64) MaximumRating() float64 SetMaximumRating(value float64) + MinimumRating() float64 + SetMinimumRating(value float64) } // An object that provides a detailed rating for the playing item. [Full Topic] @@ -42,10 +42,6 @@ func (rc _RatingCommandClass) Alloc() RatingCommand { return rv } -func RatingCommand_Alloc() RatingCommand { - return RatingCommandClass.Alloc() -} - func (rc _RatingCommandClass) New() RatingCommand { rv := objc.Call[RatingCommand](rc, objc.Sel("new")) rv.Autorelease() @@ -61,21 +57,6 @@ func (r_ RatingCommand) Init() RatingCommand { return rv } -// The minimum rating for a command. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/mediaplayer/mpratingcommand/1622902-minimumrating?language=objc -func (r_ RatingCommand) MinimumRating() float64 { - rv := objc.Call[float64](r_, objc.Sel("minimumRating")) - return rv -} - -// The minimum rating for a command. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/mediaplayer/mpratingcommand/1622902-minimumrating?language=objc -func (r_ RatingCommand) SetMinimumRating(value float64) { - 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 @@ -90,3 +71,18 @@ func (r_ RatingCommand) MaximumRating() float64 { func (r_ RatingCommand) SetMaximumRating(value float64) { 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 +func (r_ RatingCommand) MinimumRating() float64 { + rv := objc.Call[float64](r_, objc.Sel("minimumRating")) + return rv +} + +// The minimum rating for a command. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/mediaplayer/mpratingcommand/1622902-minimumrating?language=objc +func (r_ RatingCommand) SetMinimumRating(value float64) { + objc.Call[objc.Void](r_, objc.Sel("setMinimumRating:"), value) +} diff --git a/macos/mediaplayer/rating_command_event.gen.go b/macos/mediaplayer/rating_command_event.gen.go index 487dd491..0f9c6c05 100644 --- a/macos/mediaplayer/rating_command_event.gen.go +++ b/macos/mediaplayer/rating_command_event.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package mediaplayer @@ -39,10 +39,6 @@ func (rc _RatingCommandEventClass) Alloc() RatingCommandEvent { return rv } -func RatingCommandEvent_Alloc() RatingCommandEvent { - return RatingCommandEventClass.Alloc() -} - func (rc _RatingCommandEventClass) New() RatingCommandEvent { rv := objc.Call[RatingCommandEvent](rc, objc.Sel("new")) rv.Autorelease() diff --git a/macos/mediaplayer/remote_command.gen.go b/macos/mediaplayer/remote_command.gen.go index 1d2c69a4..eac85a6e 100644 --- a/macos/mediaplayer/remote_command.gen.go +++ b/macos/mediaplayer/remote_command.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package mediaplayer @@ -19,8 +19,9 @@ type _RemoteCommandClass struct { type IRemoteCommand interface { objc.IObject AddTargetWithHandler(handler func(event RemoteCommandEvent) RemoteCommandHandlerStatus) objc.Object - RemoveTarget(target objc.IObject) AddTargetAction(target objc.IObject, action objc.Selector) + RemoveTargetAction(target objc.IObject, action objc.Selector) + RemoveTarget(target objc.IObject) IsEnabled() bool SetEnabled(value bool) } @@ -43,10 +44,6 @@ func (rc _RemoteCommandClass) Alloc() RemoteCommand { return rv } -func RemoteCommand_Alloc() RemoteCommand { - return RemoteCommandClass.Alloc() -} - func (rc _RemoteCommandClass) New() RemoteCommand { rv := objc.Call[RemoteCommand](rc, objc.Sel("new")) rv.Autorelease() @@ -70,13 +67,6 @@ func (r_ RemoteCommand) AddTargetWithHandler(handler func(event RemoteCommandEve return rv } -// Removes a target from the remote command object. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/mediaplayer/mpremotecommand/1622903-removetarget?language=objc -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 @@ -84,6 +74,20 @@ func (r_ RemoteCommand) AddTargetAction(target objc.IObject, action objc.Selecto 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 +func (r_ RemoteCommand) RemoveTarget(target objc.IObject) { + objc.Call[objc.Void](r_, objc.Sel("removeTarget:"), target) +} + // 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 0e4f1bda..e5c63473 100644 --- a/macos/mediaplayer/remote_command_center.gen.go +++ b/macos/mediaplayer/remote_command_center.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package mediaplayer @@ -18,25 +18,25 @@ type _RemoteCommandCenterClass struct { // An interface definition for the [RemoteCommandCenter] class. type IRemoteCommandCenter interface { objc.IObject - PlayCommand() RemoteCommand - SkipBackwardCommand() SkipIntervalCommand + StopCommand() RemoteCommand + NextTrackCommand() RemoteCommand DisableLanguageOptionCommand() RemoteCommand - SkipForwardCommand() SkipIntervalCommand + PreviousTrackCommand() RemoteCommand ChangeRepeatModeCommand() ChangeRepeatModeCommand + PauseCommand() RemoteCommand + SeekBackwardCommand() RemoteCommand LikeCommand() FeedbackCommand + SkipBackwardCommand() SkipIntervalCommand + DislikeCommand() FeedbackCommand TogglePlayPauseCommand() RemoteCommand - NextTrackCommand() RemoteCommand - ChangePlaybackPositionCommand() ChangePlaybackPositionCommand BookmarkCommand() FeedbackCommand + ChangePlaybackPositionCommand() ChangePlaybackPositionCommand + SeekForwardCommand() RemoteCommand + SkipForwardCommand() SkipIntervalCommand + ChangeShuffleModeCommand() ChangeShuffleModeCommand ChangePlaybackRateCommand() ChangePlaybackRateCommand - PreviousTrackCommand() RemoteCommand EnableLanguageOptionCommand() RemoteCommand - ChangeShuffleModeCommand() ChangeShuffleModeCommand - PauseCommand() RemoteCommand - DislikeCommand() FeedbackCommand - StopCommand() RemoteCommand - SeekBackwardCommand() RemoteCommand - SeekForwardCommand() RemoteCommand + PlayCommand() RemoteCommand RatingCommand() RatingCommand } @@ -58,10 +58,6 @@ func (rc _RemoteCommandCenterClass) Alloc() RemoteCommandCenter { return rv } -func RemoteCommandCenter_Alloc() RemoteCommandCenter { - return RemoteCommandCenterClass.Alloc() -} - func (rc _RemoteCommandCenterClass) New() RemoteCommandCenter { rv := objc.Call[RemoteCommandCenter](rc, objc.Sel("new")) rv.Autorelease() @@ -92,19 +88,19 @@ func RemoteCommandCenter_SharedCommandCenter() RemoteCommandCenter { return RemoteCommandCenterClass.SharedCommandCenter() } -// 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 playing a previous point in a media item. [Full Topic] +// The command object for selecting the next track. [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/1618999-nexttrackcommand?language=objc +func (r_ RemoteCommandCenter) NextTrackCommand() RemoteCommand { + rv := objc.Call[RemoteCommand](r_, objc.Sel("nextTrackCommand")) return rv } @@ -116,11 +112,11 @@ func (r_ RemoteCommandCenter) DisableLanguageOptionCommand() RemoteCommand { return rv } -// The command object for playing a future point in a media item. [Full Topic] +// The command object for selecting the previous track. [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/1618978-previoustrackcommand?language=objc +func (r_ RemoteCommandCenter) PreviousTrackCommand() RemoteCommand { + rv := objc.Call[RemoteCommand](r_, objc.Sel("previousTrackCommand")) return rv } @@ -132,6 +128,22 @@ 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 @@ -140,27 +152,27 @@ func (r_ RemoteCommandCenter) LikeCommand() FeedbackCommand { return rv } -// The command object for toggling between playing and pausing the current item. [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/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/1618996-skipbackwardcommand?language=objc +func (r_ RemoteCommandCenter) SkipBackwardCommand() SkipIntervalCommand { + rv := objc.Call[SkipIntervalCommand](r_, objc.Sel("skipBackwardCommand")) return rv } -// The command object for selecting the next track. [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/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/1618995-dislikecommand?language=objc +func (r_ RemoteCommandCenter) DislikeCommand() FeedbackCommand { + rv := objc.Call[FeedbackCommand](r_, objc.Sel("dislikeCommand")) return rv } -// The command object for changing the playback position 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/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/1618992-toggleplaypausecommand?language=objc +func (r_ RemoteCommandCenter) TogglePlayPauseCommand() RemoteCommand { + rv := objc.Call[RemoteCommand](r_, objc.Sel("togglePlayPauseCommand")) return rv } @@ -172,27 +184,27 @@ func (r_ RemoteCommandCenter) BookmarkCommand() FeedbackCommand { return rv } -// The command object for changing the playback rate of the current media 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/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/1618997-changeplaybackpositioncommand?language=objc +func (r_ RemoteCommandCenter) ChangePlaybackPositionCommand() ChangePlaybackPositionCommand { + rv := objc.Call[ChangePlaybackPositionCommand](r_, objc.Sel("changePlaybackPositionCommand")) return rv } -// The command object for selecting the previous track. [Full Topic] +// The command object for seeking forward through a single 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/1618981-seekforwardcommand?language=objc +func (r_ RemoteCommandCenter) SeekForwardCommand() RemoteCommand { + rv := objc.Call[RemoteCommand](r_, objc.Sel("seekForwardCommand")) return rv } -// The command object for enabling a language option. [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/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/1618990-skipforwardcommand?language=objc +func (r_ RemoteCommandCenter) SkipForwardCommand() SkipIntervalCommand { + rv := objc.Call[SkipIntervalCommand](r_, objc.Sel("skipForwardCommand")) return rv } @@ -204,43 +216,27 @@ func (r_ RemoteCommandCenter) ChangeShuffleModeCommand() ChangeShuffleModeComman 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 indicating that a user dislikes what is currently playing. [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")) - return rv -} - -// The command object for stopping playback of the current 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/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/1618991-changeplaybackratecommand?language=objc +func (r_ RemoteCommandCenter) ChangePlaybackRateCommand() ChangePlaybackRateCommand { + rv := objc.Call[ChangePlaybackRateCommand](r_, objc.Sel("changePlaybackRateCommand")) return rv } -// The command object for seeking backward through a single media item. [Full Topic] +// The command object for enabling a language option. [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")) +// [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 } -// The command object for seeking forward through a single media item. [Full Topic] +// The command object for starting playback of the current 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")) +// [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 } diff --git a/macos/mediaplayer/remote_command_event.gen.go b/macos/mediaplayer/remote_command_event.gen.go index 0b4f545e..fbda4366 100644 --- a/macos/mediaplayer/remote_command_event.gen.go +++ b/macos/mediaplayer/remote_command_event.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package mediaplayer @@ -41,10 +41,6 @@ func (rc _RemoteCommandEventClass) Alloc() RemoteCommandEvent { return rv } -func RemoteCommandEvent_Alloc() RemoteCommandEvent { - return RemoteCommandEventClass.Alloc() -} - func (rc _RemoteCommandEventClass) New() RemoteCommandEvent { rv := objc.Call[RemoteCommandEvent](rc, objc.Sel("new")) rv.Autorelease() diff --git a/macos/mediaplayer/seek_command_event.gen.go b/macos/mediaplayer/seek_command_event.gen.go index 7c275e1c..100e6171 100644 --- a/macos/mediaplayer/seek_command_event.gen.go +++ b/macos/mediaplayer/seek_command_event.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package mediaplayer @@ -39,10 +39,6 @@ func (sc _SeekCommandEventClass) Alloc() SeekCommandEvent { return rv } -func SeekCommandEvent_Alloc() SeekCommandEvent { - return SeekCommandEventClass.Alloc() -} - func (sc _SeekCommandEventClass) New() SeekCommandEvent { rv := objc.Call[SeekCommandEvent](sc, objc.Sel("new")) rv.Autorelease() diff --git a/macos/mediaplayer/skip_interval_command.gen.go b/macos/mediaplayer/skip_interval_command.gen.go index 8796d2f9..f7fdfe41 100644 --- a/macos/mediaplayer/skip_interval_command.gen.go +++ b/macos/mediaplayer/skip_interval_command.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package mediaplayer @@ -41,10 +41,6 @@ func (sc _SkipIntervalCommandClass) Alloc() SkipIntervalCommand { return rv } -func SkipIntervalCommand_Alloc() SkipIntervalCommand { - return SkipIntervalCommandClass.Alloc() -} - func (sc _SkipIntervalCommandClass) New() SkipIntervalCommand { rv := objc.Call[SkipIntervalCommand](sc, objc.Sel("new")) rv.Autorelease() diff --git a/macos/mediaplayer/skip_interval_command_event.gen.go b/macos/mediaplayer/skip_interval_command_event.gen.go index 23c423ea..e2295ffb 100644 --- a/macos/mediaplayer/skip_interval_command_event.gen.go +++ b/macos/mediaplayer/skip_interval_command_event.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package mediaplayer @@ -40,10 +40,6 @@ func (sc _SkipIntervalCommandEventClass) Alloc() SkipIntervalCommandEvent { return rv } -func SkipIntervalCommandEvent_Alloc() SkipIntervalCommandEvent { - return SkipIntervalCommandEventClass.Alloc() -} - func (sc _SkipIntervalCommandEventClass) New() SkipIntervalCommandEvent { rv := objc.Call[SkipIntervalCommandEvent](sc, objc.Sel("new")) rv.Autorelease() diff --git a/macos/mediaplayer/system_music_player_controller.gen.go b/macos/mediaplayer/system_music_player_controller_protocol.gen.go similarity index 52% rename from macos/mediaplayer/system_music_player_controller.gen.go rename to macos/mediaplayer/system_music_player_controller_protocol.gen.go index ecfabc6b..e108d98c 100644 --- a/macos/mediaplayer/system_music_player_controller.gen.go +++ b/macos/mediaplayer/system_music_player_controller_protocol.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package mediaplayer @@ -12,7 +12,10 @@ import ( type PSystemMusicPlayerController interface { } -// A concrete type wrapper for the [PSystemMusicPlayerController] protocol. -type SystemMusicPlayerControllerWrapper struct { +// ensure impl type implements protocol interface +var _ PSystemMusicPlayerController = (*SystemMusicPlayerControllerObject)(nil) + +// A concrete type for the [PSystemMusicPlayerController] protocol. +type SystemMusicPlayerControllerObject struct { objc.Object } 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 45963d58..9c23ec8f 100644 --- a/macos/metal/acceleration_structure_bounding_box_geometry_descriptor.gen.go +++ b/macos/metal/acceleration_structure_bounding_box_geometry_descriptor.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package metal @@ -20,11 +20,11 @@ type IAccelerationStructureBoundingBoxGeometryDescriptor interface { IAccelerationStructureGeometryDescriptor BoundingBoxBufferOffset() uint SetBoundingBoxBufferOffset(value uint) - BoundingBoxStride() uint - SetBoundingBoxStride(value uint) BoundingBoxCount() uint SetBoundingBoxCount(value uint) - BoundingBoxBuffer() BufferWrapper + BoundingBoxStride() uint + SetBoundingBoxStride(value uint) + BoundingBoxBuffer() BufferObject SetBoundingBoxBuffer(value PBuffer) SetBoundingBoxBufferObject(valueObject objc.IObject) } @@ -59,10 +59,6 @@ func (ac _AccelerationStructureBoundingBoxGeometryDescriptorClass) Alloc() Accel return rv } -func AccelerationStructureBoundingBoxGeometryDescriptor_Alloc() AccelerationStructureBoundingBoxGeometryDescriptor { - return AccelerationStructureBoundingBoxGeometryDescriptorClass.Alloc() -} - func (ac _AccelerationStructureBoundingBoxGeometryDescriptorClass) New() AccelerationStructureBoundingBoxGeometryDescriptor { rv := objc.Call[AccelerationStructureBoundingBoxGeometryDescriptor](ac, objc.Sel("new")) rv.Autorelease() @@ -93,21 +89,6 @@ func (a_ AccelerationStructureBoundingBoxGeometryDescriptor) SetBoundingBoxBuffe objc.Call[objc.Void](a_, objc.Sel("setBoundingBoxBufferOffset:"), 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 -func (a_ AccelerationStructureBoundingBoxGeometryDescriptor) BoundingBoxStride() uint { - rv := objc.Call[uint](a_, objc.Sel("boundingBoxStride")) - return rv -} - -// 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 -func (a_ AccelerationStructureBoundingBoxGeometryDescriptor) SetBoundingBoxStride(value uint) { - 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 @@ -123,11 +104,26 @@ func (a_ AccelerationStructureBoundingBoxGeometryDescriptor) SetBoundingBoxCount 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 +func (a_ AccelerationStructureBoundingBoxGeometryDescriptor) BoundingBoxStride() uint { + rv := objc.Call[uint](a_, objc.Sel("boundingBoxStride")) + return rv +} + +// 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 +func (a_ AccelerationStructureBoundingBoxGeometryDescriptor) SetBoundingBoxStride(value uint) { + objc.Call[objc.Void](a_, objc.Sel("setBoundingBoxStride:"), value) +} + // A buffer that contains bounding box data. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/metal/mtlaccelerationstructureboundingboxgeometrydescriptor/3553860-boundingboxbuffer?language=objc -func (a_ AccelerationStructureBoundingBoxGeometryDescriptor) BoundingBoxBuffer() BufferWrapper { - rv := objc.Call[BufferWrapper](a_, objc.Sel("boundingBoxBuffer")) +func (a_ AccelerationStructureBoundingBoxGeometryDescriptor) BoundingBoxBuffer() BufferObject { + rv := objc.Call[BufferObject](a_, objc.Sel("boundingBoxBuffer")) return rv } diff --git a/macos/metal/acceleration_structure_command_encoder.gen.go b/macos/metal/acceleration_structure_command_encoder_protocol.gen.go similarity index 58% rename from macos/metal/acceleration_structure_command_encoder.gen.go rename to macos/metal/acceleration_structure_command_encoder_protocol.gen.go index 609d4157..1f48ade7 100644 --- a/macos/metal/acceleration_structure_command_encoder.gen.go +++ b/macos/metal/acceleration_structure_command_encoder_protocol.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package metal @@ -11,205 +11,225 @@ import ( // [Full Topic]: https://developer.apple.com/documentation/metal/mtlaccelerationstructurecommandencoder?language=objc type PAccelerationStructureCommandEncoder interface { // optional - UseResourceUsage(resource ResourceWrapper, usage ResourceUsage) - HasUseResourceUsage() bool + RefitAccelerationStructureDescriptorDestinationScratchBufferScratchBufferOffset(sourceAccelerationStructure AccelerationStructureObject, descriptor AccelerationStructureDescriptor, destinationAccelerationStructure AccelerationStructureObject, scratchBuffer BufferObject, scratchBufferOffset uint) + HasRefitAccelerationStructureDescriptorDestinationScratchBufferScratchBufferOffset() bool // optional - CopyAndCompactAccelerationStructureToAccelerationStructure(sourceAccelerationStructure AccelerationStructureWrapper, destinationAccelerationStructure AccelerationStructureWrapper) - HasCopyAndCompactAccelerationStructureToAccelerationStructure() bool + UpdateFence(fence FenceObject) + HasUpdateFence() bool // optional - RefitAccelerationStructureDescriptorDestinationScratchBufferScratchBufferOffset(sourceAccelerationStructure AccelerationStructureWrapper, descriptor AccelerationStructureDescriptor, destinationAccelerationStructure AccelerationStructureWrapper, scratchBuffer BufferWrapper, scratchBufferOffset uint) - HasRefitAccelerationStructureDescriptorDestinationScratchBufferScratchBufferOffset() bool + WriteCompactedAccelerationStructureSizeToBufferOffsetSizeDataType(accelerationStructure AccelerationStructureObject, buffer BufferObject, offset uint, sizeDataType DataType) + HasWriteCompactedAccelerationStructureSizeToBufferOffsetSizeDataType() bool // optional - SampleCountersInBufferAtSampleIndexWithBarrier(sampleBuffer CounterSampleBufferWrapper, sampleIndex uint, barrier bool) - HasSampleCountersInBufferAtSampleIndexWithBarrier() bool + CopyAndCompactAccelerationStructureToAccelerationStructure(sourceAccelerationStructure AccelerationStructureObject, destinationAccelerationStructure AccelerationStructureObject) + HasCopyAndCompactAccelerationStructureToAccelerationStructure() bool // optional - CopyAccelerationStructureToAccelerationStructure(sourceAccelerationStructure AccelerationStructureWrapper, destinationAccelerationStructure AccelerationStructureWrapper) + UseHeapsCount(heaps HeapObject, count uint) + HasUseHeapsCount() bool + + // optional + CopyAccelerationStructureToAccelerationStructure(sourceAccelerationStructure AccelerationStructureObject, destinationAccelerationStructure AccelerationStructureObject) HasCopyAccelerationStructureToAccelerationStructure() bool // optional - WriteCompactedAccelerationStructureSizeToBufferOffset(accelerationStructure AccelerationStructureWrapper, buffer BufferWrapper, offset uint) - HasWriteCompactedAccelerationStructureSizeToBufferOffset() bool + BuildAccelerationStructureDescriptorScratchBufferScratchBufferOffset(accelerationStructure AccelerationStructureObject, descriptor AccelerationStructureDescriptor, scratchBuffer BufferObject, scratchBufferOffset uint) + HasBuildAccelerationStructureDescriptorScratchBufferScratchBufferOffset() bool // optional - UseHeap(heap HeapWrapper) + UseHeap(heap HeapObject) HasUseHeap() bool // optional - UseResourcesCountUsage(resources ResourceWrapper, count uint, usage ResourceUsage) - HasUseResourcesCountUsage() bool + WaitForFence(fence FenceObject) + HasWaitForFence() bool // optional - UseHeapsCount(heaps HeapWrapper, count uint) - HasUseHeapsCount() bool + SampleCountersInBufferAtSampleIndexWithBarrier(sampleBuffer CounterSampleBufferObject, sampleIndex uint, barrier bool) + HasSampleCountersInBufferAtSampleIndexWithBarrier() bool // optional - UpdateFence(fence FenceWrapper) - HasUpdateFence() bool + UseResourceUsage(resource ResourceObject, usage ResourceUsage) + HasUseResourceUsage() bool // optional - BuildAccelerationStructureDescriptorScratchBufferScratchBufferOffset(accelerationStructure AccelerationStructureWrapper, descriptor AccelerationStructureDescriptor, scratchBuffer BufferWrapper, scratchBufferOffset uint) - HasBuildAccelerationStructureDescriptorScratchBufferScratchBufferOffset() bool + UseResourcesCountUsage(resources ResourceObject, count uint, usage ResourceUsage) + HasUseResourcesCountUsage() bool // optional - WaitForFence(fence FenceWrapper) - HasWaitForFence() bool + WriteCompactedAccelerationStructureSizeToBufferOffset(accelerationStructure AccelerationStructureObject, buffer BufferObject, offset uint) + HasWriteCompactedAccelerationStructureSizeToBufferOffset() bool } -// A concrete type wrapper for the [PAccelerationStructureCommandEncoder] protocol. -type AccelerationStructureCommandEncoderWrapper struct { +// ensure impl type implements protocol interface +var _ PAccelerationStructureCommandEncoder = (*AccelerationStructureCommandEncoderObject)(nil) + +// A concrete type for the [PAccelerationStructureCommandEncoder] protocol. +type AccelerationStructureCommandEncoderObject struct { objc.Object } -func (a_ AccelerationStructureCommandEncoderWrapper) HasUseResourceUsage() bool { - return a_.RespondsToSelector(objc.Sel("useResource:usage:")) +func (a_ AccelerationStructureCommandEncoderObject) HasRefitAccelerationStructureDescriptorDestinationScratchBufferScratchBufferOffset() bool { + return a_.RespondsToSelector(objc.Sel("refitAccelerationStructure:descriptor:destination:scratchBuffer:scratchBufferOffset:")) } -// Makes a resource available to 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/3553904-useresource?language=objc -func (a_ AccelerationStructureCommandEncoderWrapper) UseResourceUsage(resource PResource, 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/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, objc.Ptr(descriptor), po2, po3, scratchBufferOffset) } -func (a_ AccelerationStructureCommandEncoderWrapper) HasCopyAndCompactAccelerationStructureToAccelerationStructure() bool { - return a_.RespondsToSelector(objc.Sel("copyAndCompactAccelerationStructure:toAccelerationStructure:")) +func (a_ AccelerationStructureCommandEncoderObject) HasUpdateFence() bool { + return a_.RespondsToSelector(objc.Sel("updateFence:")) } -// Encodes a command to compact an acceleration structure’s data and copy it into a different acceleration structure. [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/3553896-copyandcompactaccelerationstruct?language=objc -func (a_ AccelerationStructureCommandEncoderWrapper) CopyAndCompactAccelerationStructureToAccelerationStructure(sourceAccelerationStructure PAccelerationStructure, destinationAccelerationStructure PAccelerationStructure) { - po0 := objc.WrapAsProtocol("MTLAccelerationStructure", sourceAccelerationStructure) - po1 := objc.WrapAsProtocol("MTLAccelerationStructure", destinationAccelerationStructure) - objc.Call[objc.Void](a_, objc.Sel("copyAndCompactAccelerationStructure:toAccelerationStructure:"), po0, po1) +// [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_ AccelerationStructureCommandEncoderWrapper) HasRefitAccelerationStructureDescriptorDestinationScratchBufferScratchBufferOffset() bool { - return a_.RespondsToSelector(objc.Sel("refitAccelerationStructure:descriptor:destination:scratchBuffer:scratchBufferOffset:")) +func (a_ AccelerationStructureCommandEncoderObject) HasWriteCompactedAccelerationStructureSizeToBufferOffsetSizeDataType() bool { + return a_.RespondsToSelector(objc.Sel("writeCompactedAccelerationStructureSize:toBuffer:offset:sizeDataType:")) } -// Updates an acceleration structure with new geometry or instance data. [Full Topic] +// Encodes a command to calculate the compacted size of an acceleration structure, taking into account the size of the output data. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metal/mtlaccelerationstructurecommandencoder/3553898-refitaccelerationstructure?language=objc -func (a_ AccelerationStructureCommandEncoderWrapper) RefitAccelerationStructureDescriptorDestinationScratchBufferScratchBufferOffset(sourceAccelerationStructure PAccelerationStructure, descriptor IAccelerationStructureDescriptor, destinationAccelerationStructure PAccelerationStructure, scratchBuffer PBuffer, scratchBufferOffset uint) { +// [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) +} + +func (a_ AccelerationStructureCommandEncoderObject) HasCopyAndCompactAccelerationStructureToAccelerationStructure() bool { + return a_.RespondsToSelector(objc.Sel("copyAndCompactAccelerationStructure:toAccelerationStructure:")) +} + +// Encodes a command to compact an acceleration structure’s data and copy it into a different acceleration structure. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/metal/mtlaccelerationstructurecommandencoder/3553896-copyandcompactaccelerationstruct?language=objc +func (a_ AccelerationStructureCommandEncoderObject) CopyAndCompactAccelerationStructureToAccelerationStructure(sourceAccelerationStructure AccelerationStructureObject, destinationAccelerationStructure AccelerationStructureObject) { 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, objc.Ptr(descriptor), po2, po3, scratchBufferOffset) + po1 := objc.WrapAsProtocol("MTLAccelerationStructure", destinationAccelerationStructure) + objc.Call[objc.Void](a_, objc.Sel("copyAndCompactAccelerationStructure:toAccelerationStructure:"), po0, po1) } -func (a_ AccelerationStructureCommandEncoderWrapper) 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_ AccelerationStructureCommandEncoderWrapper) SampleCountersInBufferAtSampleIndexWithBarrier(sampleBuffer PCounterSampleBuffer, 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 HeapObject, count uint) { + po0 := objc.WrapAsProtocol("MTLHeap", heaps) + objc.Call[objc.Void](a_, objc.Sel("useHeaps:count:"), po0, count) } -func (a_ AccelerationStructureCommandEncoderWrapper) HasCopyAccelerationStructureToAccelerationStructure() bool { +func (a_ AccelerationStructureCommandEncoderObject) HasCopyAccelerationStructureToAccelerationStructure() bool { return a_.RespondsToSelector(objc.Sel("copyAccelerationStructure:toAccelerationStructure:")) } // Encodes a command to copy the data from one acceleration structure to another. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/metal/mtlaccelerationstructurecommandencoder/3553895-copyaccelerationstructure?language=objc -func (a_ AccelerationStructureCommandEncoderWrapper) CopyAccelerationStructureToAccelerationStructure(sourceAccelerationStructure PAccelerationStructure, destinationAccelerationStructure PAccelerationStructure) { +func (a_ AccelerationStructureCommandEncoderObject) CopyAccelerationStructureToAccelerationStructure(sourceAccelerationStructure AccelerationStructureObject, destinationAccelerationStructure AccelerationStructureObject) { po0 := objc.WrapAsProtocol("MTLAccelerationStructure", sourceAccelerationStructure) po1 := objc.WrapAsProtocol("MTLAccelerationStructure", destinationAccelerationStructure) objc.Call[objc.Void](a_, objc.Sel("copyAccelerationStructure:toAccelerationStructure:"), po0, po1) } -func (a_ AccelerationStructureCommandEncoderWrapper) HasWriteCompactedAccelerationStructureSizeToBufferOffset() bool { - return a_.RespondsToSelector(objc.Sel("writeCompactedAccelerationStructureSize:toBuffer:offset:")) +func (a_ AccelerationStructureCommandEncoderObject) HasBuildAccelerationStructureDescriptorScratchBufferScratchBufferOffset() bool { + return a_.RespondsToSelector(objc.Sel("buildAccelerationStructure:descriptor:scratchBuffer:scratchBufferOffset:")) } -// Encodes a command to calculate the compacted size of an acceleration structure. [Full Topic] +// Encodes a command to build a new acceleration structure. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metal/mtlaccelerationstructurecommandencoder/3553907-writecompactedaccelerationstruct?language=objc -func (a_ AccelerationStructureCommandEncoderWrapper) WriteCompactedAccelerationStructureSizeToBufferOffset(accelerationStructure PAccelerationStructure, buffer PBuffer, offset uint) { +// [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) - po1 := objc.WrapAsProtocol("MTLBuffer", buffer) - objc.Call[objc.Void](a_, objc.Sel("writeCompactedAccelerationStructureSize:toBuffer:offset:"), po0, po1, offset) + po2 := objc.WrapAsProtocol("MTLBuffer", scratchBuffer) + objc.Call[objc.Void](a_, objc.Sel("buildAccelerationStructure:descriptor:scratchBuffer:scratchBufferOffset:"), po0, objc.Ptr(descriptor), po2, scratchBufferOffset) } -func (a_ AccelerationStructureCommandEncoderWrapper) HasUseHeap() bool { +func (a_ AccelerationStructureCommandEncoderObject) HasUseHeap() bool { return a_.RespondsToSelector(objc.Sel("useHeap:")) } // Makes the resources contained in the specified heap available to the acceleration structure pass. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/metal/mtlaccelerationstructurecommandencoder/3553902-useheap?language=objc -func (a_ AccelerationStructureCommandEncoderWrapper) UseHeap(heap PHeap) { +func (a_ AccelerationStructureCommandEncoderObject) UseHeap(heap HeapObject) { po0 := objc.WrapAsProtocol("MTLHeap", heap) objc.Call[objc.Void](a_, objc.Sel("useHeap:"), po0) } -func (a_ AccelerationStructureCommandEncoderWrapper) HasUseResourcesCountUsage() bool { - return a_.RespondsToSelector(objc.Sel("useResources:count:usage:")) +func (a_ AccelerationStructureCommandEncoderObject) HasWaitForFence() bool { + return a_.RespondsToSelector(objc.Sel("waitForFence:")) } -// Specifies that an array of resources in an argument buffer can be safely used by the acceleration structure pass. [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/3553905-useresources?language=objc -func (a_ AccelerationStructureCommandEncoderWrapper) UseResourcesCountUsage(resources PResource, 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/3553906-waitforfence?language=objc +func (a_ AccelerationStructureCommandEncoderObject) WaitForFence(fence FenceObject) { + po0 := objc.WrapAsProtocol("MTLFence", fence) + objc.Call[objc.Void](a_, objc.Sel("waitForFence:"), po0) } -func (a_ AccelerationStructureCommandEncoderWrapper) HasUseHeapsCount() bool { - return a_.RespondsToSelector(objc.Sel("useHeaps:count:")) +func (a_ AccelerationStructureCommandEncoderObject) HasSampleCountersInBufferAtSampleIndexWithBarrier() bool { + return a_.RespondsToSelector(objc.Sel("sampleCountersInBuffer:atSampleIndex:withBarrier:")) } -// Specifies that an array of heaps containing resources in an argument buffer can be safely used by the acceleration structure pass. [Full Topic] +// 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/3553903-useheaps?language=objc -func (a_ AccelerationStructureCommandEncoderWrapper) UseHeapsCount(heaps PHeap, 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/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_ AccelerationStructureCommandEncoderWrapper) HasUpdateFence() bool { - return a_.RespondsToSelector(objc.Sel("updateFence:")) +func (a_ AccelerationStructureCommandEncoderObject) HasUseResourceUsage() bool { + return a_.RespondsToSelector(objc.Sel("useResource:usage:")) } -// Tells the GPU to update the fence after all commands encoded by the encoder have finished executing. [Full Topic] +// Makes a resource available to the acceleration structure pass. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metal/mtlaccelerationstructurecommandencoder/3553901-updatefence?language=objc -func (a_ AccelerationStructureCommandEncoderWrapper) UpdateFence(fence PFence) { - po0 := objc.WrapAsProtocol("MTLFence", fence) - objc.Call[objc.Void](a_, objc.Sel("updateFence:"), po0) +// [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_ AccelerationStructureCommandEncoderWrapper) HasBuildAccelerationStructureDescriptorScratchBufferScratchBufferOffset() bool { - return a_.RespondsToSelector(objc.Sel("buildAccelerationStructure:descriptor:scratchBuffer:scratchBufferOffset:")) +func (a_ AccelerationStructureCommandEncoderObject) HasUseResourcesCountUsage() bool { + return a_.RespondsToSelector(objc.Sel("useResources:count:usage:")) } -// Encodes a command to build a new acceleration structure. [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/3553894-buildaccelerationstructure?language=objc -func (a_ AccelerationStructureCommandEncoderWrapper) BuildAccelerationStructureDescriptorScratchBufferScratchBufferOffset(accelerationStructure PAccelerationStructure, descriptor IAccelerationStructureDescriptor, scratchBuffer PBuffer, scratchBufferOffset uint) { - po0 := objc.WrapAsProtocol("MTLAccelerationStructure", accelerationStructure) - po2 := objc.WrapAsProtocol("MTLBuffer", scratchBuffer) - objc.Call[objc.Void](a_, objc.Sel("buildAccelerationStructure:descriptor:scratchBuffer:scratchBufferOffset:"), po0, objc.Ptr(descriptor), po2, scratchBufferOffset) +// [Full Topic]: https://developer.apple.com/documentation/metal/mtlaccelerationstructurecommandencoder/3553905-useresources?language=objc +func (a_ AccelerationStructureCommandEncoderObject) UseResourcesCountUsage(resources ResourceObject, count uint, usage ResourceUsage) { + po0 := objc.WrapAsProtocol("MTLResource", resources) + objc.Call[objc.Void](a_, objc.Sel("useResources:count:usage:"), po0, count, usage) } -func (a_ AccelerationStructureCommandEncoderWrapper) HasWaitForFence() bool { - return a_.RespondsToSelector(objc.Sel("waitForFence:")) +func (a_ AccelerationStructureCommandEncoderObject) HasWriteCompactedAccelerationStructureSizeToBufferOffset() bool { + return a_.RespondsToSelector(objc.Sel("writeCompactedAccelerationStructureSize:toBuffer:offset:")) } -// Tells the GPU to wait until the fence is updated before executing any commands encoded by the command encoder. [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/3553906-waitforfence?language=objc -func (a_ AccelerationStructureCommandEncoderWrapper) WaitForFence(fence PFence) { - po0 := objc.WrapAsProtocol("MTLFence", fence) - objc.Call[objc.Void](a_, objc.Sel("waitForFence:"), po0) +// [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) } diff --git a/macos/metal/acceleration_structure_descriptor.gen.go b/macos/metal/acceleration_structure_descriptor.gen.go index 42c7b593..9fb8942f 100644 --- a/macos/metal/acceleration_structure_descriptor.gen.go +++ b/macos/metal/acceleration_structure_descriptor.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package metal @@ -40,10 +40,6 @@ func (ac _AccelerationStructureDescriptorClass) Alloc() AccelerationStructureDes return rv } -func AccelerationStructureDescriptor_Alloc() AccelerationStructureDescriptor { - return AccelerationStructureDescriptorClass.Alloc() -} - func (ac _AccelerationStructureDescriptorClass) New() AccelerationStructureDescriptor { rv := objc.Call[AccelerationStructureDescriptor](ac, objc.Sel("new")) rv.Autorelease() diff --git a/macos/metal/acceleration_structure_geometry_descriptor.gen.go b/macos/metal/acceleration_structure_geometry_descriptor.gen.go index f5aee425..87ea1087 100644 --- a/macos/metal/acceleration_structure_geometry_descriptor.gen.go +++ b/macos/metal/acceleration_structure_geometry_descriptor.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package metal @@ -18,14 +18,14 @@ type _AccelerationStructureGeometryDescriptorClass struct { // An interface definition for the [AccelerationStructureGeometryDescriptor] class. type IAccelerationStructureGeometryDescriptor interface { objc.IObject - AllowDuplicateIntersectionFunctionInvocation() bool - SetAllowDuplicateIntersectionFunctionInvocation(value bool) - Opaque() bool - SetOpaque(value bool) Label() string SetLabel(value string) IntersectionFunctionTableOffset() uint SetIntersectionFunctionTableOffset(value uint) + AllowDuplicateIntersectionFunctionInvocation() bool + SetAllowDuplicateIntersectionFunctionInvocation(value bool) + Opaque() bool + SetOpaque(value bool) } // A base class for descriptors that contain geometry data to convert into a ray-tracing acceleration structure. [Full Topic] @@ -46,10 +46,6 @@ func (ac _AccelerationStructureGeometryDescriptorClass) Alloc() AccelerationStru return rv } -func AccelerationStructureGeometryDescriptor_Alloc() AccelerationStructureGeometryDescriptor { - return AccelerationStructureGeometryDescriptorClass.Alloc() -} - func (ac _AccelerationStructureGeometryDescriptorClass) New() AccelerationStructureGeometryDescriptor { rv := objc.Call[AccelerationStructureGeometryDescriptor](ac, objc.Sel("new")) rv.Autorelease() @@ -65,36 +61,6 @@ func (a_ AccelerationStructureGeometryDescriptor) Init() AccelerationStructureGe return rv } -// 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 -func (a_ AccelerationStructureGeometryDescriptor) AllowDuplicateIntersectionFunctionInvocation() bool { - rv := objc.Call[bool](a_, objc.Sel("allowDuplicateIntersectionFunctionInvocation")) - return rv -} - -// 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 -func (a_ AccelerationStructureGeometryDescriptor) SetAllowDuplicateIntersectionFunctionInvocation(value bool) { - objc.Call[objc.Void](a_, objc.Sel("setAllowDuplicateIntersectionFunctionInvocation:"), value) -} - -// A Boolean value that determines whether the geometry data in the acceleration structure needs to skip triangle-intersection tests. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/metal/mtlaccelerationstructuregeometrydescriptor/3666579-opaque?language=objc -func (a_ AccelerationStructureGeometryDescriptor) Opaque() bool { - rv := objc.Call[bool](a_, objc.Sel("opaque")) - return rv -} - -// A Boolean value that determines whether the geometry data in the acceleration structure needs to skip triangle-intersection tests. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/metal/mtlaccelerationstructuregeometrydescriptor/3666579-opaque?language=objc -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 @@ -124,3 +90,33 @@ func (a_ AccelerationStructureGeometryDescriptor) IntersectionFunctionTableOffse 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 +func (a_ AccelerationStructureGeometryDescriptor) AllowDuplicateIntersectionFunctionInvocation() bool { + rv := objc.Call[bool](a_, objc.Sel("allowDuplicateIntersectionFunctionInvocation")) + return rv +} + +// 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 +func (a_ AccelerationStructureGeometryDescriptor) SetAllowDuplicateIntersectionFunctionInvocation(value bool) { + objc.Call[objc.Void](a_, objc.Sel("setAllowDuplicateIntersectionFunctionInvocation:"), value) +} + +// A Boolean value that determines whether the geometry data in the acceleration structure needs to skip triangle-intersection tests. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/metal/mtlaccelerationstructuregeometrydescriptor/3666579-opaque?language=objc +func (a_ AccelerationStructureGeometryDescriptor) Opaque() bool { + rv := objc.Call[bool](a_, objc.Sel("opaque")) + return rv +} + +// A Boolean value that determines whether the geometry data in the acceleration structure needs to skip triangle-intersection tests. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/metal/mtlaccelerationstructuregeometrydescriptor/3666579-opaque?language=objc +func (a_ AccelerationStructureGeometryDescriptor) SetOpaque(value bool) { + objc.Call[objc.Void](a_, objc.Sel("setOpaque:"), value) +} diff --git a/macos/metal/acceleration_structure_motion_bounding_box_geometry_descriptor.gen.go b/macos/metal/acceleration_structure_motion_bounding_box_geometry_descriptor.gen.go index bf0cc53d..94858819 100644 --- a/macos/metal/acceleration_structure_motion_bounding_box_geometry_descriptor.gen.go +++ b/macos/metal/acceleration_structure_motion_bounding_box_geometry_descriptor.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package metal @@ -56,10 +56,6 @@ func (ac _AccelerationStructureMotionBoundingBoxGeometryDescriptorClass) Alloc() return rv } -func AccelerationStructureMotionBoundingBoxGeometryDescriptor_Alloc() AccelerationStructureMotionBoundingBoxGeometryDescriptor { - return AccelerationStructureMotionBoundingBoxGeometryDescriptorClass.Alloc() -} - func (ac _AccelerationStructureMotionBoundingBoxGeometryDescriptorClass) New() AccelerationStructureMotionBoundingBoxGeometryDescriptor { rv := objc.Call[AccelerationStructureMotionBoundingBoxGeometryDescriptor](ac, objc.Sel("new")) rv.Autorelease() 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 4dc34675..60e2de07 100644 --- a/macos/metal/acceleration_structure_motion_triangle_geometry_descriptor.gen.go +++ b/macos/metal/acceleration_structure_motion_triangle_geometry_descriptor.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package metal @@ -18,17 +18,17 @@ type _AccelerationStructureMotionTriangleGeometryDescriptorClass struct { // An interface definition for the [AccelerationStructureMotionTriangleGeometryDescriptor] class. type IAccelerationStructureMotionTriangleGeometryDescriptor interface { IAccelerationStructureGeometryDescriptor - VertexBuffers() []MotionKeyframeData - SetVertexBuffers(value []IMotionKeyframeData) - TriangleCount() uint - SetTriangleCount(value uint) - IndexBuffer() BufferWrapper + IndexType() IndexType + SetIndexType(value IndexType) + IndexBuffer() BufferObject SetIndexBuffer(value PBuffer) SetIndexBufferObject(valueObject objc.IObject) + TriangleCount() uint + SetTriangleCount(value uint) IndexBufferOffset() uint SetIndexBufferOffset(value uint) - IndexType() IndexType - SetIndexType(value IndexType) + VertexBuffers() []MotionKeyframeData + SetVertexBuffers(value []IMotionKeyframeData) VertexStride() uint SetVertexStride(value uint) } @@ -63,10 +63,6 @@ func (ac _AccelerationStructureMotionTriangleGeometryDescriptorClass) Alloc() Ac return rv } -func AccelerationStructureMotionTriangleGeometryDescriptor_Alloc() AccelerationStructureMotionTriangleGeometryDescriptor { - return AccelerationStructureMotionTriangleGeometryDescriptorClass.Alloc() -} - func (ac _AccelerationStructureMotionTriangleGeometryDescriptorClass) New() AccelerationStructureMotionTriangleGeometryDescriptor { rv := objc.Call[AccelerationStructureMotionTriangleGeometryDescriptor](ac, objc.Sel("new")) rv.Autorelease() @@ -82,41 +78,26 @@ func (a_ AccelerationStructureMotionTriangleGeometryDescriptor) Init() Accelerat return rv } -// An array of motion keyframes, each containing triangle data. [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")) - return rv -} - -// An array of motion keyframes, each containing triangle data. [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) -} - -// The number of triangles in the buffers. [Full Topic] +// The data type of indices in the index buffer. [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")) +// [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 } -// The number of triangles in the buffers. [Full Topic] +// The data type of indices in the index buffer. [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) +// [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) } // A buffer that contains indices for the vertices that compose the triangle list. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/metal/mtlaccelerationstructuremotiontrianglegeometrydescriptor/3750484-indexbuffer?language=objc -func (a_ AccelerationStructureMotionTriangleGeometryDescriptor) IndexBuffer() BufferWrapper { - rv := objc.Call[BufferWrapper](a_, objc.Sel("indexBuffer")) +func (a_ AccelerationStructureMotionTriangleGeometryDescriptor) IndexBuffer() BufferObject { + rv := objc.Call[BufferObject](a_, objc.Sel("indexBuffer")) return rv } @@ -135,6 +116,21 @@ func (a_ AccelerationStructureMotionTriangleGeometryDescriptor) SetIndexBufferOb objc.Call[objc.Void](a_, objc.Sel("setIndexBuffer:"), objc.Ptr(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 @@ -150,19 +146,19 @@ func (a_ AccelerationStructureMotionTriangleGeometryDescriptor) SetIndexBufferOf objc.Call[objc.Void](a_, objc.Sel("setIndexBufferOffset:"), value) } -// 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 stride, in bytes, between vertices in each vertex buffer. [Full Topic] diff --git a/macos/metal/acceleration_structure.gen.go b/macos/metal/acceleration_structure_protocol.gen.go similarity index 64% rename from macos/metal/acceleration_structure.gen.go rename to macos/metal/acceleration_structure_protocol.gen.go index 67d2a3ca..9947c37c 100644 --- a/macos/metal/acceleration_structure.gen.go +++ b/macos/metal/acceleration_structure_protocol.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package metal @@ -15,19 +15,22 @@ type PAccelerationStructure interface { HasSize() bool } -// A concrete type wrapper for the [PAccelerationStructure] protocol. -type AccelerationStructureWrapper struct { +// ensure impl type implements protocol interface +var _ PAccelerationStructure = (*AccelerationStructureObject)(nil) + +// A concrete type for the [PAccelerationStructure] protocol. +type AccelerationStructureObject struct { objc.Object } -func (a_ AccelerationStructureWrapper) HasSize() bool { +func (a_ AccelerationStructureObject) HasSize() bool { return a_.RespondsToSelector(objc.Sel("size")) } // The size of the acceleration structure’s memory allocation, in bytes. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/metal/mtlaccelerationstructure/3553858-size?language=objc -func (a_ AccelerationStructureWrapper) Size() uint { +func (a_ AccelerationStructureObject) Size() uint { rv := objc.Call[uint](a_, objc.Sel("size")) return rv } diff --git a/macos/metal/acceleration_structure_triangle_geometry_descriptor.gen.go b/macos/metal/acceleration_structure_triangle_geometry_descriptor.gen.go index 0a2cc209..c4de5f66 100644 --- a/macos/metal/acceleration_structure_triangle_geometry_descriptor.gen.go +++ b/macos/metal/acceleration_structure_triangle_geometry_descriptor.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package metal @@ -18,22 +18,22 @@ type _AccelerationStructureTriangleGeometryDescriptorClass struct { // An interface definition for the [AccelerationStructureTriangleGeometryDescriptor] class. type IAccelerationStructureTriangleGeometryDescriptor interface { IAccelerationStructureGeometryDescriptor - VertexBuffer() BufferWrapper - SetVertexBuffer(value PBuffer) - SetVertexBufferObject(valueObject objc.IObject) + IndexType() IndexType + SetIndexType(value IndexType) TriangleCount() uint SetTriangleCount(value uint) - IndexBuffer() BufferWrapper + IndexBuffer() BufferObject SetIndexBuffer(value PBuffer) SetIndexBufferObject(valueObject objc.IObject) IndexBufferOffset() uint SetIndexBufferOffset(value uint) - IndexType() IndexType - SetIndexType(value IndexType) - VertexStride() uint - SetVertexStride(value uint) VertexBufferOffset() uint SetVertexBufferOffset(value uint) + VertexStride() uint + SetVertexStride(value uint) + VertexBuffer() BufferObject + SetVertexBuffer(value PBuffer) + SetVertexBufferObject(valueObject objc.IObject) } // A description of a list of triangle primitives to turn into an acceleration structure. [Full Topic] @@ -66,10 +66,6 @@ func (ac _AccelerationStructureTriangleGeometryDescriptorClass) Alloc() Accelera return rv } -func AccelerationStructureTriangleGeometryDescriptor_Alloc() AccelerationStructureTriangleGeometryDescriptor { - return AccelerationStructureTriangleGeometryDescriptorClass.Alloc() -} - func (ac _AccelerationStructureTriangleGeometryDescriptorClass) New() AccelerationStructureTriangleGeometryDescriptor { rv := objc.Call[AccelerationStructureTriangleGeometryDescriptor](ac, objc.Sel("new")) rv.Autorelease() @@ -85,27 +81,19 @@ func (a_ AccelerationStructureTriangleGeometryDescriptor) Init() AccelerationStr return rv } -// A buffer that contains vertex data. [Full Topic] +// The data type of indices in the index buffer. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metal/mtlaccelerationstructuretrianglegeometrydescriptor/3553876-vertexbuffer?language=objc -func (a_ AccelerationStructureTriangleGeometryDescriptor) VertexBuffer() BufferWrapper { - rv := objc.Call[BufferWrapper](a_, objc.Sel("vertexBuffer")) +// [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 } -// 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 data type of indices in the index 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:"), objc.Ptr(valueObject)) +// [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 number of triangles in the buffers. [Full Topic] @@ -126,8 +114,8 @@ func (a_ AccelerationStructureTriangleGeometryDescriptor) SetTriangleCount(value // A buffer that contains indices for the vertices that compose the triangle list. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/metal/mtlaccelerationstructuretrianglegeometrydescriptor/3553870-indexbuffer?language=objc -func (a_ AccelerationStructureTriangleGeometryDescriptor) IndexBuffer() BufferWrapper { - rv := objc.Call[BufferWrapper](a_, objc.Sel("indexBuffer")) +func (a_ AccelerationStructureTriangleGeometryDescriptor) IndexBuffer() BufferObject { + rv := objc.Call[BufferObject](a_, objc.Sel("indexBuffer")) return rv } @@ -161,19 +149,19 @@ func (a_ AccelerationStructureTriangleGeometryDescriptor) SetIndexBufferOffset(v objc.Call[objc.Void](a_, objc.Sel("setIndexBufferOffset:"), value) } -// The data type of indices in the index buffer. [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/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/3553877-vertexbufferoffset?language=objc +func (a_ AccelerationStructureTriangleGeometryDescriptor) VertexBufferOffset() uint { + rv := objc.Call[uint](a_, objc.Sel("vertexBufferOffset")) return rv } -// The data type of indices in the index buffer. [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/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/3553877-vertexbufferoffset?language=objc +func (a_ AccelerationStructureTriangleGeometryDescriptor) SetVertexBufferOffset(value uint) { + objc.Call[objc.Void](a_, objc.Sel("setVertexBufferOffset:"), value) } // The stride, in bytes, between vertices in the vertex buffer. [Full Topic] @@ -191,17 +179,25 @@ func (a_ AccelerationStructureTriangleGeometryDescriptor) SetVertexStride(value objc.Call[objc.Void](a_, objc.Sel("setVertexStride:"), value) } -// The offset, in bytes, for the first vertex in the vertex buffer. [Full Topic] +// A buffer that contains vertex data. [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/3553876-vertexbuffer?language=objc +func (a_ AccelerationStructureTriangleGeometryDescriptor) VertexBuffer() BufferObject { + rv := objc.Call[BufferObject](a_, objc.Sel("vertexBuffer")) return rv } -// The offset, in bytes, for the first vertex in the vertex buffer. [Full Topic] +// A buffer that contains vertex data. [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/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:"), objc.Ptr(valueObject)) } diff --git a/macos/metal/aliastypes.gen.go b/macos/metal/aliastypes.gen.go index 20bd7ed3..d74c8563 100644 --- a/macos/metal/aliastypes.gen.go +++ b/macos/metal/aliastypes.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package metal @@ -9,44 +9,44 @@ import ( // A completion handler signature a method calls when it finishes creating a compute pipeline and reflection information. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/metal/mtlnewcomputepipelinestatewithreflectioncompletionhandler?language=objc -type NewComputePipelineStateWithReflectionCompletionHandler = func(computePipelineState ComputePipelineStateWrapper, reflection ComputePipelineReflection, error foundation.Error) +type NewComputePipelineStateWithReflectionCompletionHandler = func(computePipelineState ComputePipelineStateObject, reflection ComputePipelineReflection, error foundation.Error) // A completion handler signature a method calls when it finishes creating a render pipeline and reflection information. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/metal/mtlnewrenderpipelinestatewithreflectioncompletionhandler?language=objc -type NewRenderPipelineStateWithReflectionCompletionHandler = func(renderPipelineState RenderPipelineStateWrapper, reflection RenderPipelineReflection, error foundation.Error) +type NewRenderPipelineStateWithReflectionCompletionHandler = func(renderPipelineState RenderPipelineStateObject, reflection RenderPipelineReflection, error foundation.Error) // A block of code invoked after a shareable event’s signal value equals or exceeds a given value. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/metal/mtlsharedeventnotificationblock?language=objc -type SharedEventNotificationBlock = func(arg0 SharedEventWrapper, value uint64) +type SharedEventNotificationBlock = func(arg0 SharedEventObject, value uint64) // A completion handler signature a method calls when it finishes creating a render pipeline. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/metal/mtlnewrenderpipelinestatecompletionhandler?language=objc -type NewRenderPipelineStateCompletionHandler = func(renderPipelineState RenderPipelineStateWrapper, error foundation.Error) +type NewRenderPipelineStateCompletionHandler = func(renderPipelineState RenderPipelineStateObject, error foundation.Error) // A completion handler signature a method calls when it finishes creating a compute pipeline. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/metal/mtlnewcomputepipelinestatecompletionhandler?language=objc -type NewComputePipelineStateCompletionHandler = func(computePipelineState ComputePipelineStateWrapper, error foundation.Error) +type NewComputePipelineStateCompletionHandler = func(computePipelineState ComputePipelineStateObject, error foundation.Error) // A completion handler signature a GPU device calls when it finishes scheduling a command buffer, or when the GPU finishes running it. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/metal/mtlcommandbufferhandler?language=objc -type CommandBufferHandler = func(arg0 CommandBufferWrapper) +type CommandBufferHandler = func(arg0 CommandBufferObject) // A completion handler signature a method calls when it finishes creating a Metal library. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/metal/mtlnewlibrarycompletionhandler?language=objc -type NewLibraryCompletionHandler = func(library LibraryWrapper, error foundation.Error) +type NewLibraryCompletionHandler = func(library LibraryObject, error foundation.Error) // A block of code invoked after a drawable is presented. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/metal/mtldrawablepresentedhandler?language=objc -type DrawablePresentedHandler = func(arg0 DrawableWrapper) +type DrawablePresentedHandler = func(arg0 DrawableObject) // A block that Metal calls when the system adds or removes a GPU device. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/metal/mtldevicenotificationhandler?language=objc -type DeviceNotificationHandler = func(device DeviceWrapper, notifyName DeviceNotificationName) +type DeviceNotificationHandler = func(device DeviceObject, notifyName DeviceNotificationName) diff --git a/macos/metal/argument.gen.go b/macos/metal/argument.gen.go index daf75033..af957a2c 100644 --- a/macos/metal/argument.gen.go +++ b/macos/metal/argument.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package metal @@ -38,10 +38,6 @@ func (ac _ArgumentClass) Alloc() Argument { return rv } -func Argument_Alloc() Argument { - return ArgumentClass.Alloc() -} - func (ac _ArgumentClass) New() Argument { rv := objc.Call[Argument](ac, objc.Sel("new")) rv.Autorelease() diff --git a/macos/metal/argument_descriptor.gen.go b/macos/metal/argument_descriptor.gen.go index ca3e79ba..c509ceee 100644 --- a/macos/metal/argument_descriptor.gen.go +++ b/macos/metal/argument_descriptor.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package metal @@ -18,18 +18,18 @@ type _ArgumentDescriptorClass struct { // An interface definition for the [ArgumentDescriptor] class. type IArgumentDescriptor interface { objc.IObject - ArrayLength() uint - SetArrayLength(value uint) + Index() uint + SetIndex(value uint) + DataType() DataType + SetDataType(value DataType) ConstantBlockAlignment() uint SetConstantBlockAlignment(value uint) - TextureType() TextureType - SetTextureType(value TextureType) + ArrayLength() uint + SetArrayLength(value uint) Access() objc.Object SetAccess(value objc.IObject) - DataType() DataType - SetDataType(value DataType) - Index() uint - SetIndex(value uint) + TextureType() TextureType + SetTextureType(value TextureType) } // A representation of an argument within an argument buffer. [Full Topic] @@ -50,10 +50,6 @@ func (ac _ArgumentDescriptorClass) Alloc() ArgumentDescriptor { return rv } -func ArgumentDescriptor_Alloc() ArgumentDescriptor { - return ArgumentDescriptorClass.Alloc() -} - func (ac _ArgumentDescriptorClass) New() ArgumentDescriptor { rv := objc.Call[ArgumentDescriptor](ac, objc.Sel("new")) rv.Autorelease() @@ -84,19 +80,34 @@ func ArgumentDescriptor_ArgumentDescriptor() ArgumentDescriptor { return ArgumentDescriptorClass.ArgumentDescriptor() } -// The length of an array argument. [Full Topic] +// The index ID of the 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/2915732-index?language=objc +func (a_ ArgumentDescriptor) Index() uint { + rv := objc.Call[uint](a_, objc.Sel("index")) return rv } -// The length of an array argument. [Full Topic] +// The index ID of the 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/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] +// +// [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 data type of the 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) } // The alignment of the constant block. [Full Topic] @@ -114,19 +125,19 @@ func (a_ ArgumentDescriptor) SetConstantBlockAlignment(value uint) { objc.Call[objc.Void](a_, objc.Sel("setConstantBlockAlignment:"), value) } -// The texture type of a texture argument. [Full Topic] +// The length of an array 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/2915734-arraylength?language=objc +func (a_ ArgumentDescriptor) ArrayLength() uint { + rv := objc.Call[uint](a_, objc.Sel("arrayLength")) return rv } -// The texture type of a texture argument. [Full Topic] +// The length of an array 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/2915734-arraylength?language=objc +func (a_ ArgumentDescriptor) SetArrayLength(value uint) { + objc.Call[objc.Void](a_, objc.Sel("setArrayLength:"), value) } // The access permissions of the argument. [Full Topic] @@ -144,32 +155,17 @@ func (a_ ArgumentDescriptor) SetAccess(value objc.IObject) { objc.Call[objc.Void](a_, objc.Sel("setAccess:"), objc.Ptr(value)) } -// The data type of the 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")) - return rv -} - -// The data type of the 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) -} - -// The index ID of the argument. [Full Topic] +// The texture type of a texture 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")) +// [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 index ID of the argument. [Full Topic] +// The texture type of a texture 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) +// [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) } diff --git a/macos/metal/argument_encoder.gen.go b/macos/metal/argument_encoder_protocol.gen.go similarity index 65% rename from macos/metal/argument_encoder.gen.go rename to macos/metal/argument_encoder_protocol.gen.go index cf431195..16db15ab 100644 --- a/macos/metal/argument_encoder.gen.go +++ b/macos/metal/argument_encoder_protocol.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package metal @@ -14,96 +14,92 @@ import ( // [Full Topic]: https://developer.apple.com/documentation/metal/mtlargumentencoder?language=objc type PArgumentEncoder interface { // optional - SetSamplerStateAtIndex(sampler SamplerStateWrapper, index uint) - HasSetSamplerStateAtIndex() bool + SetSamplerStatesWithRange(samplers SamplerStateObject, range_ foundation.Range) + HasSetSamplerStatesWithRange() bool // optional - SetComputePipelineStateAtIndex(pipeline ComputePipelineStateWrapper, index uint) - HasSetComputePipelineStateAtIndex() bool + SetTexturesWithRange(textures TextureObject, range_ foundation.Range) + HasSetTexturesWithRange() bool // optional - SetRenderPipelineStatesWithRange(pipelines RenderPipelineStateWrapper, range_ foundation.Range) + SetRenderPipelineStatesWithRange(pipelines RenderPipelineStateObject, range_ foundation.Range) HasSetRenderPipelineStatesWithRange() bool // optional - SetIndirectCommandBufferAtIndex(indirectCommandBuffer IndirectCommandBufferWrapper, index uint) - HasSetIndirectCommandBufferAtIndex() bool - - // optional - NewArgumentEncoderForBufferAtIndex(index uint) PArgumentEncoder - HasNewArgumentEncoderForBufferAtIndex() bool + SetComputePipelineStatesWithRange(pipelines ComputePipelineStateObject, range_ foundation.Range) + HasSetComputePipelineStatesWithRange() bool // optional - SetBuffersOffsetsWithRange(buffers BufferWrapper, offsets *uint, range_ foundation.Range) - HasSetBuffersOffsetsWithRange() bool + SetSamplerStateAtIndex(sampler SamplerStateObject, index uint) + HasSetSamplerStateAtIndex() bool // optional - SetVisibleFunctionTableAtIndex(visibleFunctionTable VisibleFunctionTableWrapper, index uint) - HasSetVisibleFunctionTableAtIndex() bool + SetAccelerationStructureAtIndex(accelerationStructure AccelerationStructureObject, index uint) + HasSetAccelerationStructureAtIndex() bool // optional - SetSamplerStatesWithRange(samplers SamplerStateWrapper, range_ foundation.Range) - HasSetSamplerStatesWithRange() bool + SetComputePipelineStateAtIndex(pipeline ComputePipelineStateObject, index uint) + HasSetComputePipelineStateAtIndex() bool // optional - SetAccelerationStructureAtIndex(accelerationStructure AccelerationStructureWrapper, index uint) - HasSetAccelerationStructureAtIndex() bool + ConstantDataAtIndex(index uint) unsafe.Pointer + HasConstantDataAtIndex() bool // optional - SetRenderPipelineStateAtIndex(pipeline RenderPipelineStateWrapper, index uint) - HasSetRenderPipelineStateAtIndex() bool + SetBuffersOffsetsWithRange(buffers BufferObject, offsets *uint, range_ foundation.Range) + HasSetBuffersOffsetsWithRange() bool // optional - SetArgumentBufferOffset(argumentBuffer BufferWrapper, offset uint) - HasSetArgumentBufferOffset() bool + SetIndirectCommandBufferAtIndex(indirectCommandBuffer IndirectCommandBufferObject, index uint) + HasSetIndirectCommandBufferAtIndex() bool // optional - SetVisibleFunctionTablesWithRange(visibleFunctionTables VisibleFunctionTableWrapper, range_ foundation.Range) - HasSetVisibleFunctionTablesWithRange() bool + SetIndirectCommandBuffersWithRange(buffers IndirectCommandBufferObject, range_ foundation.Range) + HasSetIndirectCommandBuffersWithRange() bool // optional - SetTexturesWithRange(textures TextureWrapper, range_ foundation.Range) - HasSetTexturesWithRange() bool + SetBufferOffsetAtIndex(buffer BufferObject, offset uint, index uint) + HasSetBufferOffsetAtIndex() bool // optional - SetComputePipelineStatesWithRange(pipelines ComputePipelineStateWrapper, range_ foundation.Range) - HasSetComputePipelineStatesWithRange() bool + SetIntersectionFunctionTablesWithRange(intersectionFunctionTables IntersectionFunctionTableObject, range_ foundation.Range) + HasSetIntersectionFunctionTablesWithRange() bool // optional - SetIntersectionFunctionTableAtIndex(intersectionFunctionTable IntersectionFunctionTableWrapper, index uint) - HasSetIntersectionFunctionTableAtIndex() bool + SetVisibleFunctionTableAtIndex(visibleFunctionTable VisibleFunctionTableObject, index uint) + HasSetVisibleFunctionTableAtIndex() bool // optional - SetTextureAtIndex(texture TextureWrapper, index uint) - HasSetTextureAtIndex() bool + SetRenderPipelineStateAtIndex(pipeline RenderPipelineStateObject, index uint) + HasSetRenderPipelineStateAtIndex() bool // optional - SetIntersectionFunctionTablesWithRange(intersectionFunctionTables IntersectionFunctionTableWrapper, range_ foundation.Range) - HasSetIntersectionFunctionTablesWithRange() bool + SetVisibleFunctionTablesWithRange(visibleFunctionTables VisibleFunctionTableObject, range_ foundation.Range) + HasSetVisibleFunctionTablesWithRange() bool // optional - SetBufferOffsetAtIndex(buffer BufferWrapper, offset uint, index uint) - HasSetBufferOffsetAtIndex() bool + SetArgumentBufferOffset(argumentBuffer BufferObject, offset uint) + HasSetArgumentBufferOffset() bool // optional - SetIndirectCommandBuffersWithRange(buffers IndirectCommandBufferWrapper, range_ foundation.Range) - HasSetIndirectCommandBuffersWithRange() bool + SetIntersectionFunctionTableAtIndex(intersectionFunctionTable IntersectionFunctionTableObject, index uint) + HasSetIntersectionFunctionTableAtIndex() bool // optional - ConstantDataAtIndex(index uint) unsafe.Pointer - HasConstantDataAtIndex() bool + SetArgumentBufferStartOffsetArrayElement(argumentBuffer BufferObject, startOffset uint, arrayElement uint) + HasSetArgumentBufferStartOffsetArrayElement() bool // optional - Alignment() uint - HasAlignment() bool + NewArgumentEncoderForBufferAtIndex(index uint) ArgumentEncoderObject + HasNewArgumentEncoderForBufferAtIndex() bool // optional - Device() PDevice - HasDevice() bool + SetTextureAtIndex(texture TextureObject, index uint) + HasSetTextureAtIndex() bool // optional - EncodedLength() uint - HasEncodedLength() bool + Alignment() uint + HasAlignment() bool // optional SetLabel(value string) @@ -112,309 +108,331 @@ type PArgumentEncoder interface { // optional Label() string HasLabel() bool + + // optional + EncodedLength() uint + HasEncodedLength() bool + + // optional + Device() DeviceObject + HasDevice() bool } -// A concrete type wrapper for the [PArgumentEncoder] protocol. -type ArgumentEncoderWrapper struct { +// ensure impl type implements protocol interface +var _ PArgumentEncoder = (*ArgumentEncoderObject)(nil) + +// A concrete type for the [PArgumentEncoder] protocol. +type ArgumentEncoderObject struct { objc.Object } -func (a_ ArgumentEncoderWrapper) HasSetSamplerStateAtIndex() bool { - return a_.RespondsToSelector(objc.Sel("setSamplerState:atIndex:")) +func (a_ ArgumentEncoderObject) HasSetSamplerStatesWithRange() bool { + return a_.RespondsToSelector(objc.Sel("setSamplerStates:withRange:")) } -// Encodes a sampler into the argument buffer. [Full Topic] +// Encodes an array of samplers into the argument buffer. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metal/mtlargumentencoder/2915770-setsamplerstate?language=objc -func (a_ ArgumentEncoderWrapper) SetSamplerStateAtIndex(sampler PSamplerState, index uint) { - po0 := objc.WrapAsProtocol("MTLSamplerState", sampler) - objc.Call[objc.Void](a_, objc.Sel("setSamplerState:atIndex:"), po0, index) +// [Full Topic]: https://developer.apple.com/documentation/metal/mtlargumentencoder/2915778-setsamplerstates?language=objc +func (a_ ArgumentEncoderObject) SetSamplerStatesWithRange(samplers SamplerStateObject, range_ foundation.Range) { + po0 := objc.WrapAsProtocol("MTLSamplerState", samplers) + objc.Call[objc.Void](a_, objc.Sel("setSamplerStates:withRange:"), po0, range_) } -func (a_ ArgumentEncoderWrapper) HasSetComputePipelineStateAtIndex() bool { - return a_.RespondsToSelector(objc.Sel("setComputePipelineState:atIndex:")) +func (a_ ArgumentEncoderObject) HasSetTexturesWithRange() bool { + return a_.RespondsToSelector(objc.Sel("setTextures:withRange:")) } -// Encodes a reference to a compute pipeline state into the argument buffer. [Full Topic] +// Encodes references to an array of textures into the argument buffer. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metal/mtlargumentencoder/2966533-setcomputepipelinestate?language=objc -func (a_ ArgumentEncoderWrapper) SetComputePipelineStateAtIndex(pipeline PComputePipelineState, index uint) { - po0 := objc.WrapAsProtocol("MTLComputePipelineState", pipeline) - objc.Call[objc.Void](a_, objc.Sel("setComputePipelineState:atIndex:"), po0, index) +// [Full Topic]: https://developer.apple.com/documentation/metal/mtlargumentencoder/2915786-settextures?language=objc +func (a_ ArgumentEncoderObject) SetTexturesWithRange(textures TextureObject, range_ foundation.Range) { + po0 := objc.WrapAsProtocol("MTLTexture", textures) + objc.Call[objc.Void](a_, objc.Sel("setTextures:withRange:"), po0, range_) } -func (a_ ArgumentEncoderWrapper) HasSetRenderPipelineStatesWithRange() bool { +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_ ArgumentEncoderWrapper) SetRenderPipelineStatesWithRange(pipelines PRenderPipelineState, range_ foundation.Range) { +func (a_ ArgumentEncoderObject) SetRenderPipelineStatesWithRange(pipelines RenderPipelineStateObject, range_ foundation.Range) { po0 := objc.WrapAsProtocol("MTLRenderPipelineState", pipelines) objc.Call[objc.Void](a_, objc.Sel("setRenderPipelineStates:withRange:"), po0, range_) } -func (a_ ArgumentEncoderWrapper) HasSetIndirectCommandBufferAtIndex() bool { - return a_.RespondsToSelector(objc.Sel("setIndirectCommandBuffer:atIndex:")) +func (a_ ArgumentEncoderObject) HasSetComputePipelineStatesWithRange() bool { + return a_.RespondsToSelector(objc.Sel("setComputePipelineStates:withRange:")) } -// Encodes a reference to an indirect command buffer into the argument buffer. [Full Topic] +// Encodes references to an array of compute pipeline states into the argument buffer. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metal/mtlargumentencoder/2967410-setindirectcommandbuffer?language=objc -func (a_ ArgumentEncoderWrapper) SetIndirectCommandBufferAtIndex(indirectCommandBuffer PIndirectCommandBuffer, index uint) { - po0 := objc.WrapAsProtocol("MTLIndirectCommandBuffer", indirectCommandBuffer) - objc.Call[objc.Void](a_, objc.Sel("setIndirectCommandBuffer:atIndex:"), po0, index) +// [Full Topic]: https://developer.apple.com/documentation/metal/mtlargumentencoder/2966534-setcomputepipelinestates?language=objc +func (a_ ArgumentEncoderObject) SetComputePipelineStatesWithRange(pipelines ComputePipelineStateObject, range_ foundation.Range) { + po0 := objc.WrapAsProtocol("MTLComputePipelineState", pipelines) + objc.Call[objc.Void](a_, objc.Sel("setComputePipelineStates:withRange:"), po0, range_) } -func (a_ ArgumentEncoderWrapper) HasNewArgumentEncoderForBufferAtIndex() bool { - return a_.RespondsToSelector(objc.Sel("newArgumentEncoderForBufferAtIndex:")) +func (a_ ArgumentEncoderObject) HasSetSamplerStateAtIndex() bool { + return a_.RespondsToSelector(objc.Sel("setSamplerState:atIndex:")) } -// Creates a new argument encoder for a nested argument buffer. [Full Topic] +// Encodes a sampler into the argument buffer. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metal/mtlargumentencoder/2915783-newargumentencoderforbufferatind?language=objc -func (a_ ArgumentEncoderWrapper) NewArgumentEncoderForBufferAtIndex(index uint) ArgumentEncoderWrapper { - rv := objc.Call[ArgumentEncoderWrapper](a_, objc.Sel("newArgumentEncoderForBufferAtIndex:"), index) - rv.Autorelease() +// [Full Topic]: https://developer.apple.com/documentation/metal/mtlargumentencoder/2915770-setsamplerstate?language=objc +func (a_ ArgumentEncoderObject) SetSamplerStateAtIndex(sampler SamplerStateObject, index uint) { + po0 := objc.WrapAsProtocol("MTLSamplerState", sampler) + 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:")) +} + +// Encodes a reference to a compute pipeline state into the argument buffer. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/metal/mtlargumentencoder/2966533-setcomputepipelinestate?language=objc +func (a_ ArgumentEncoderObject) SetComputePipelineStateAtIndex(pipeline ComputePipelineStateObject, index uint) { + po0 := objc.WrapAsProtocol("MTLComputePipelineState", pipeline) + 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_ ArgumentEncoderWrapper) HasSetBuffersOffsetsWithRange() bool { +func (a_ ArgumentEncoderObject) HasSetBuffersOffsetsWithRange() bool { return a_.RespondsToSelector(objc.Sel("setBuffers:offsets:withRange:")) } // Encodes references to an array of buffers into the argument buffer. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/metal/mtlargumentencoder/2915772-setbuffers?language=objc -func (a_ ArgumentEncoderWrapper) SetBuffersOffsetsWithRange(buffers PBuffer, offsets *uint, range_ foundation.Range) { +func (a_ ArgumentEncoderObject) SetBuffersOffsetsWithRange(buffers BufferObject, 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_ ArgumentEncoderWrapper) HasSetVisibleFunctionTableAtIndex() bool { - return a_.RespondsToSelector(objc.Sel("setVisibleFunctionTable:atIndex:")) +func (a_ ArgumentEncoderObject) HasSetIndirectCommandBufferAtIndex() bool { + return a_.RespondsToSelector(objc.Sel("setIndirectCommandBuffer:atIndex:")) } -// Encodes a reference to a function table into the argument buffer. [Full Topic] +// Encodes a reference to an indirect command buffer into the argument buffer. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metal/mtlargumentencoder/3608168-setvisiblefunctiontable?language=objc -func (a_ ArgumentEncoderWrapper) SetVisibleFunctionTableAtIndex(visibleFunctionTable PVisibleFunctionTable, index uint) { - po0 := objc.WrapAsProtocol("MTLVisibleFunctionTable", visibleFunctionTable) - objc.Call[objc.Void](a_, objc.Sel("setVisibleFunctionTable:atIndex:"), po0, index) +// [Full Topic]: https://developer.apple.com/documentation/metal/mtlargumentencoder/2967410-setindirectcommandbuffer?language=objc +func (a_ ArgumentEncoderObject) SetIndirectCommandBufferAtIndex(indirectCommandBuffer IndirectCommandBufferObject, index uint) { + po0 := objc.WrapAsProtocol("MTLIndirectCommandBuffer", indirectCommandBuffer) + objc.Call[objc.Void](a_, objc.Sel("setIndirectCommandBuffer:atIndex:"), po0, index) } -func (a_ ArgumentEncoderWrapper) HasSetSamplerStatesWithRange() bool { - return a_.RespondsToSelector(objc.Sel("setSamplerStates:withRange:")) +func (a_ ArgumentEncoderObject) HasSetIndirectCommandBuffersWithRange() bool { + return a_.RespondsToSelector(objc.Sel("setIndirectCommandBuffers:withRange:")) } -// Encodes an array of samplers into the argument buffer. [Full Topic] +// Encodes an array of indirect command buffers into the argument buffer. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metal/mtlargumentencoder/2915778-setsamplerstates?language=objc -func (a_ ArgumentEncoderWrapper) SetSamplerStatesWithRange(samplers PSamplerState, range_ foundation.Range) { - po0 := objc.WrapAsProtocol("MTLSamplerState", samplers) - objc.Call[objc.Void](a_, objc.Sel("setSamplerStates:withRange:"), po0, range_) +// [Full Topic]: https://developer.apple.com/documentation/metal/mtlargumentencoder/2967411-setindirectcommandbuffers?language=objc +func (a_ ArgumentEncoderObject) SetIndirectCommandBuffersWithRange(buffers IndirectCommandBufferObject, range_ foundation.Range) { + po0 := objc.WrapAsProtocol("MTLIndirectCommandBuffer", buffers) + objc.Call[objc.Void](a_, objc.Sel("setIndirectCommandBuffers:withRange:"), po0, range_) } -func (a_ ArgumentEncoderWrapper) HasSetAccelerationStructureAtIndex() bool { - return a_.RespondsToSelector(objc.Sel("setAccelerationStructure:atIndex:")) +func (a_ ArgumentEncoderObject) HasSetBufferOffsetAtIndex() bool { + return a_.RespondsToSelector(objc.Sel("setBuffer:offset:atIndex:")) } -// Encodes a reference to an acceleration structure 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/3553920-setaccelerationstructure?language=objc -func (a_ ArgumentEncoderWrapper) SetAccelerationStructureAtIndex(accelerationStructure PAccelerationStructure, index uint) { - po0 := objc.WrapAsProtocol("MTLAccelerationStructure", accelerationStructure) - objc.Call[objc.Void](a_, objc.Sel("setAccelerationStructure: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_ ArgumentEncoderWrapper) HasSetRenderPipelineStateAtIndex() bool { - return a_.RespondsToSelector(objc.Sel("setRenderPipelineState:atIndex:")) +func (a_ ArgumentEncoderObject) HasSetIntersectionFunctionTablesWithRange() bool { + return a_.RespondsToSelector(objc.Sel("setIntersectionFunctionTables:withRange:")) } -// Encodes a reference to a render pipeline state into the 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/2966535-setrenderpipelinestate?language=objc -func (a_ ArgumentEncoderWrapper) SetRenderPipelineStateAtIndex(pipeline PRenderPipelineState, index uint) { - po0 := objc.WrapAsProtocol("MTLRenderPipelineState", pipeline) - objc.Call[objc.Void](a_, objc.Sel("setRenderPipelineState:atIndex:"), po0, index) +// [Full Topic]: https://developer.apple.com/documentation/metal/mtlargumentencoder/3608167-setintersectionfunctiontables?language=objc +func (a_ ArgumentEncoderObject) SetIntersectionFunctionTablesWithRange(intersectionFunctionTables IntersectionFunctionTableObject, range_ foundation.Range) { + po0 := objc.WrapAsProtocol("MTLIntersectionFunctionTable", intersectionFunctionTables) + objc.Call[objc.Void](a_, objc.Sel("setIntersectionFunctionTables:withRange:"), po0, range_) } -func (a_ ArgumentEncoderWrapper) HasSetArgumentBufferOffset() bool { - return a_.RespondsToSelector(objc.Sel("setArgumentBuffer:offset:")) +func (a_ ArgumentEncoderObject) HasSetVisibleFunctionTableAtIndex() bool { + return a_.RespondsToSelector(objc.Sel("setVisibleFunctionTable:atIndex:")) } -// Specifies the position in a buffer where the encoder writes argument data. [Full Topic] +// Encodes a reference to a function table into the argument buffer. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metal/mtlargumentencoder/2915777-setargumentbuffer?language=objc -func (a_ ArgumentEncoderWrapper) SetArgumentBufferOffset(argumentBuffer PBuffer, 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/3608168-setvisiblefunctiontable?language=objc +func (a_ ArgumentEncoderObject) SetVisibleFunctionTableAtIndex(visibleFunctionTable VisibleFunctionTableObject, index uint) { + po0 := objc.WrapAsProtocol("MTLVisibleFunctionTable", visibleFunctionTable) + objc.Call[objc.Void](a_, objc.Sel("setVisibleFunctionTable:atIndex:"), po0, index) } -func (a_ ArgumentEncoderWrapper) HasSetVisibleFunctionTablesWithRange() bool { - return a_.RespondsToSelector(objc.Sel("setVisibleFunctionTables:withRange:")) +func (a_ ArgumentEncoderObject) HasSetRenderPipelineStateAtIndex() bool { + return a_.RespondsToSelector(objc.Sel("setRenderPipelineState:atIndex:")) } -// Encodes references to an array of visible function tables into the argument buffer. [Full Topic] +// Encodes a reference to a render pipeline state into the argument buffer. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metal/mtlargumentencoder/3608169-setvisiblefunctiontables?language=objc -func (a_ ArgumentEncoderWrapper) SetVisibleFunctionTablesWithRange(visibleFunctionTables PVisibleFunctionTable, range_ foundation.Range) { - po0 := objc.WrapAsProtocol("MTLVisibleFunctionTable", visibleFunctionTables) - objc.Call[objc.Void](a_, objc.Sel("setVisibleFunctionTables:withRange:"), po0, range_) +// [Full Topic]: https://developer.apple.com/documentation/metal/mtlargumentencoder/2966535-setrenderpipelinestate?language=objc +func (a_ ArgumentEncoderObject) SetRenderPipelineStateAtIndex(pipeline RenderPipelineStateObject, index uint) { + po0 := objc.WrapAsProtocol("MTLRenderPipelineState", pipeline) + objc.Call[objc.Void](a_, objc.Sel("setRenderPipelineState:atIndex:"), po0, index) } -func (a_ ArgumentEncoderWrapper) HasSetTexturesWithRange() bool { - return a_.RespondsToSelector(objc.Sel("setTextures:withRange:")) +func (a_ ArgumentEncoderObject) HasSetVisibleFunctionTablesWithRange() bool { + return a_.RespondsToSelector(objc.Sel("setVisibleFunctionTables:withRange:")) } -// Encodes references to an array of textures into the argument buffer. [Full Topic] +// Encodes references to an array of visible function tables into the argument buffer. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metal/mtlargumentencoder/2915786-settextures?language=objc -func (a_ ArgumentEncoderWrapper) SetTexturesWithRange(textures PTexture, range_ foundation.Range) { - po0 := objc.WrapAsProtocol("MTLTexture", textures) - objc.Call[objc.Void](a_, objc.Sel("setTextures:withRange:"), po0, range_) +// [Full Topic]: https://developer.apple.com/documentation/metal/mtlargumentencoder/3608169-setvisiblefunctiontables?language=objc +func (a_ ArgumentEncoderObject) SetVisibleFunctionTablesWithRange(visibleFunctionTables VisibleFunctionTableObject, range_ foundation.Range) { + po0 := objc.WrapAsProtocol("MTLVisibleFunctionTable", visibleFunctionTables) + objc.Call[objc.Void](a_, objc.Sel("setVisibleFunctionTables:withRange:"), po0, range_) } -func (a_ ArgumentEncoderWrapper) HasSetComputePipelineStatesWithRange() bool { - return a_.RespondsToSelector(objc.Sel("setComputePipelineStates:withRange:")) +func (a_ ArgumentEncoderObject) HasSetArgumentBufferOffset() bool { + return a_.RespondsToSelector(objc.Sel("setArgumentBuffer:offset:")) } -// Encodes references to an array of compute pipeline states into the argument buffer. [Full Topic] +// Specifies the position in a buffer where the encoder writes argument data. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metal/mtlargumentencoder/2966534-setcomputepipelinestates?language=objc -func (a_ ArgumentEncoderWrapper) SetComputePipelineStatesWithRange(pipelines PComputePipelineState, range_ foundation.Range) { - po0 := objc.WrapAsProtocol("MTLComputePipelineState", pipelines) - objc.Call[objc.Void](a_, objc.Sel("setComputePipelineStates:withRange:"), po0, range_) +// [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_ ArgumentEncoderWrapper) HasSetIntersectionFunctionTableAtIndex() bool { +func (a_ ArgumentEncoderObject) HasSetIntersectionFunctionTableAtIndex() bool { return a_.RespondsToSelector(objc.Sel("setIntersectionFunctionTable:atIndex:")) } // Encodes a reference to a ray-tracing intersection function table into the argument buffer. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/metal/mtlargumentencoder/3608166-setintersectionfunctiontable?language=objc -func (a_ ArgumentEncoderWrapper) SetIntersectionFunctionTableAtIndex(intersectionFunctionTable PIntersectionFunctionTable, index uint) { +func (a_ ArgumentEncoderObject) SetIntersectionFunctionTableAtIndex(intersectionFunctionTable IntersectionFunctionTableObject, index uint) { po0 := objc.WrapAsProtocol("MTLIntersectionFunctionTable", intersectionFunctionTable) objc.Call[objc.Void](a_, objc.Sel("setIntersectionFunctionTable:atIndex:"), po0, index) } -func (a_ ArgumentEncoderWrapper) HasSetTextureAtIndex() bool { - return a_.RespondsToSelector(objc.Sel("setTexture:atIndex:")) +func (a_ ArgumentEncoderObject) HasSetArgumentBufferStartOffsetArrayElement() bool { + return a_.RespondsToSelector(objc.Sel("setArgumentBuffer:startOffset:arrayElement:")) } -// Encodes a reference to a texture into the argument buffer. [Full Topic] +// Specifies an array element within a buffer where the encoder writes argument data. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metal/mtlargumentencoder/2915776-settexture?language=objc -func (a_ ArgumentEncoderWrapper) SetTextureAtIndex(texture PTexture, index uint) { - po0 := objc.WrapAsProtocol("MTLTexture", texture) - objc.Call[objc.Void](a_, objc.Sel("setTexture:atIndex:"), po0, index) -} - -func (a_ ArgumentEncoderWrapper) HasSetIntersectionFunctionTablesWithRange() bool { - return a_.RespondsToSelector(objc.Sel("setIntersectionFunctionTables:withRange:")) -} - -// Encodes references to an array of intersection function tables into the argument buffer. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/metal/mtlargumentencoder/3608167-setintersectionfunctiontables?language=objc -func (a_ ArgumentEncoderWrapper) SetIntersectionFunctionTablesWithRange(intersectionFunctionTables PIntersectionFunctionTable, 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/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) } -func (a_ ArgumentEncoderWrapper) 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_ ArgumentEncoderWrapper) SetBufferOffsetAtIndex(buffer PBuffer, 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_ ArgumentEncoderWrapper) HasSetIndirectCommandBuffersWithRange() bool { - return a_.RespondsToSelector(objc.Sel("setIndirectCommandBuffers:withRange:")) +func (a_ ArgumentEncoderObject) HasSetTextureAtIndex() bool { + return a_.RespondsToSelector(objc.Sel("setTexture:atIndex:")) } -// Encodes an array of indirect command buffers into the argument buffer. [Full Topic] +// Encodes a reference to a texture into the argument buffer. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metal/mtlargumentencoder/2967411-setindirectcommandbuffers?language=objc -func (a_ ArgumentEncoderWrapper) SetIndirectCommandBuffersWithRange(buffers PIndirectCommandBuffer, range_ foundation.Range) { - po0 := objc.WrapAsProtocol("MTLIndirectCommandBuffer", buffers) - objc.Call[objc.Void](a_, objc.Sel("setIndirectCommandBuffers:withRange:"), po0, range_) +// [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_ ArgumentEncoderWrapper) HasConstantDataAtIndex() bool { - return a_.RespondsToSelector(objc.Sel("constantDataAtIndex:")) +func (a_ ArgumentEncoderObject) HasAlignment() bool { + return a_.RespondsToSelector(objc.Sel("alignment")) } -// Returns a pointer for an inlined constant data argument in the argument buffer. [Full Topic] +// The alignment, in bytes, required for storing the encoded resources of an argument buffer. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metal/mtlargumentencoder/2915771-constantdataatindex?language=objc -func (a_ ArgumentEncoderWrapper) ConstantDataAtIndex(index uint) unsafe.Pointer { - rv := objc.Call[unsafe.Pointer](a_, objc.Sel("constantDataAtIndex:"), index) +// [Full Topic]: https://developer.apple.com/documentation/metal/mtlargumentencoder/2915775-alignment?language=objc +func (a_ ArgumentEncoderObject) Alignment() uint { + rv := objc.Call[uint](a_, objc.Sel("alignment")) return rv } -func (a_ ArgumentEncoderWrapper) HasAlignment() bool { - return a_.RespondsToSelector(objc.Sel("alignment")) +func (a_ ArgumentEncoderObject) HasSetLabel() bool { + return a_.RespondsToSelector(objc.Sel("setLabel:")) } -// The alignment, in bytes, required for storing the encoded resources of an argument buffer. [Full Topic] +// A string that identifies the argument buffer. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metal/mtlargumentencoder/2915775-alignment?language=objc -func (a_ ArgumentEncoderWrapper) Alignment() uint { - rv := objc.Call[uint](a_, objc.Sel("alignment")) - return rv +// [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_ ArgumentEncoderWrapper) HasDevice() bool { - return a_.RespondsToSelector(objc.Sel("device")) +func (a_ ArgumentEncoderObject) HasLabel() bool { + return a_.RespondsToSelector(objc.Sel("label")) } -// 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_ ArgumentEncoderWrapper) Device() DeviceWrapper { - rv := objc.Call[DeviceWrapper](a_, objc.Sel("device")) +// [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 } -func (a_ ArgumentEncoderWrapper) HasEncodedLength() bool { +func (a_ ArgumentEncoderObject) HasEncodedLength() bool { return a_.RespondsToSelector(objc.Sel("encodedLength")) } // The number of bytes required to store the encoded resources of an argument buffer. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/metal/mtlargumentencoder/2915784-encodedlength?language=objc -func (a_ ArgumentEncoderWrapper) EncodedLength() uint { +func (a_ ArgumentEncoderObject) EncodedLength() uint { rv := objc.Call[uint](a_, objc.Sel("encodedLength")) return rv } -func (a_ ArgumentEncoderWrapper) 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_ ArgumentEncoderWrapper) SetLabel(value string) { - objc.Call[objc.Void](a_, objc.Sel("setLabel:"), value) -} - -func (a_ ArgumentEncoderWrapper) 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_ ArgumentEncoderWrapper) 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 } diff --git a/macos/metal/array_type.gen.go b/macos/metal/array_type.gen.go index c3ac0717..eea600a1 100644 --- a/macos/metal/array_type.gen.go +++ b/macos/metal/array_type.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package metal @@ -18,14 +18,14 @@ type _ArrayTypeClass struct { // An interface definition for the [ArrayType] class. type IArrayType interface { IType - ElementPointerType() PointerType - ElementArrayType() ArrayType ElementStructType() StructType + ElementArrayType() ArrayType ElementTextureReferenceType() TextureReferenceType - ArgumentIndexStride() uint - ArrayLength() uint + ElementPointerType() PointerType Stride() uint ElementType() DataType + ArgumentIndexStride() uint + ArrayLength() uint } // A description of an array. [Full Topic] @@ -46,10 +46,6 @@ func (ac _ArrayTypeClass) Alloc() ArrayType { return rv } -func ArrayType_Alloc() ArrayType { - return ArrayTypeClass.Alloc() -} - func (ac _ArrayTypeClass) New() ArrayType { rv := objc.Call[ArrayType](ac, objc.Sel("new")) rv.Autorelease() @@ -65,11 +61,11 @@ func (a_ ArrayType) Init() ArrayType { return rv } -// Provides a description of the underlying pointer type when an array holds pointers as its elements. [Full Topic] +// 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/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/1461901-elementstructtype?language=objc +func (a_ ArrayType) ElementStructType() StructType { + rv := objc.Call[StructType](a_, objc.Sel("elementStructType")) return rv } @@ -81,14 +77,6 @@ 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 @@ -97,19 +85,11 @@ func (a_ ArrayType) ElementTextureReferenceType() TextureReferenceType { 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] +// 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/1462043-arraylength?language=objc -func (a_ ArrayType) ArrayLength() uint { - rv := objc.Call[uint](a_, objc.Sel("arrayLength")) +// [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 } @@ -128,3 +108,19 @@ 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 9b6b6990..c3537acc 100644 --- a/macos/metal/attribute.gen.go +++ b/macos/metal/attribute.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package metal @@ -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] @@ -44,10 +44,6 @@ func (ac _AttributeClass) Alloc() Attribute { return rv } -func Attribute_Alloc() Attribute { - return AttributeClass.Alloc() -} - func (ac _AttributeClass) New() Attribute { rv := objc.Call[Attribute](ac, objc.Sel("new")) rv.Autorelease() @@ -63,19 +59,19 @@ func (a_ Attribute) Init() Attribute { return rv } -// The name of the attribute. [Full Topic] +// The index of the attribute, as declared in Metal shader source code. [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")) +// [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 } -// 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 } @@ -87,26 +83,26 @@ func (a_ Attribute) IsPatchControlPointData() bool { return rv } -// A Boolean value that indicates whether the attribute represents tessellation patch data. [Full Topic] +// The name of the attribute. [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/2097161-name?language=objc +func (a_ Attribute) Name() string { + rv := objc.Call[string](a_, objc.Sel("name")) return rv } -// The data type for the attribute, as declared in Metal shader source code. [Full Topic] +// A Boolean value that indicates whether the attribute is active. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metal/mtlattribute/2097155-attributetype?language=objc -func (a_ Attribute) AttributeType() DataType { - rv := objc.Call[DataType](a_, objc.Sel("attributeType")) +// [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 } -// The index of the attribute, as declared in Metal shader source code. [Full Topic] +// The data type for 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")) +// [Full Topic]: https://developer.apple.com/documentation/metal/mtlattribute/2097155-attributetype?language=objc +func (a_ Attribute) AttributeType() DataType { + rv := objc.Call[DataType](a_, objc.Sel("attributeType")) return rv } diff --git a/macos/metal/attribute_descriptor.gen.go b/macos/metal/attribute_descriptor.gen.go index 94685220..06074cf4 100644 --- a/macos/metal/attribute_descriptor.gen.go +++ b/macos/metal/attribute_descriptor.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package metal @@ -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] @@ -44,10 +44,6 @@ func (ac _AttributeDescriptorClass) Alloc() AttributeDescriptor { return rv } -func AttributeDescriptor_Alloc() AttributeDescriptor { - return AttributeDescriptorClass.Alloc() -} - func (ac _AttributeDescriptorClass) New() AttributeDescriptor { rv := objc.Call[AttributeDescriptor](ac, objc.Sel("new")) rv.Autorelease() @@ -63,6 +59,21 @@ 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 @@ -92,18 +103,3 @@ 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 b7464aa8..65dae302 100644 --- a/macos/metal/attribute_descriptor_array.gen.go +++ b/macos/metal/attribute_descriptor_array.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package metal @@ -18,8 +18,8 @@ type _AttributeDescriptorArrayClass struct { // An interface definition for the [AttributeDescriptorArray] class. type IAttributeDescriptorArray interface { objc.IObject - ObjectAtIndexedSubscript(index uint) AttributeDescriptor SetObjectAtIndexedSubscript(attributeDesc IAttributeDescriptor, index uint) + ObjectAtIndexedSubscript(index uint) AttributeDescriptor } // An array of attribute descriptor objects. [Full Topic] @@ -40,10 +40,6 @@ func (ac _AttributeDescriptorArrayClass) Alloc() AttributeDescriptorArray { return rv } -func AttributeDescriptorArray_Alloc() AttributeDescriptorArray { - return AttributeDescriptorArrayClass.Alloc() -} - func (ac _AttributeDescriptorArrayClass) New() AttributeDescriptorArray { rv := objc.Call[AttributeDescriptorArray](ac, objc.Sel("new")) rv.Autorelease() @@ -59,6 +55,13 @@ 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:"), objc.Ptr(attributeDesc), index) +} + // Returns the state of the specified attribute. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/metal/mtlattributedescriptorarray/2097215-objectatindexedsubscript?language=objc @@ -66,10 +69,3 @@ 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:"), objc.Ptr(attributeDesc), index) -} diff --git a/macos/metal/binary_archive_descriptor.gen.go b/macos/metal/binary_archive_descriptor.gen.go index d235a343..8c13b967 100644 --- a/macos/metal/binary_archive_descriptor.gen.go +++ b/macos/metal/binary_archive_descriptor.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package metal @@ -41,10 +41,6 @@ func (bc _BinaryArchiveDescriptorClass) Alloc() BinaryArchiveDescriptor { return rv } -func BinaryArchiveDescriptor_Alloc() BinaryArchiveDescriptor { - return BinaryArchiveDescriptorClass.Alloc() -} - func (bc _BinaryArchiveDescriptorClass) New() BinaryArchiveDescriptor { rv := objc.Call[BinaryArchiveDescriptor](bc, objc.Sel("new")) rv.Autorelease() diff --git a/macos/metal/binary_archive.gen.go b/macos/metal/binary_archive_protocol.gen.go similarity index 71% rename from macos/metal/binary_archive.gen.go rename to macos/metal/binary_archive_protocol.gen.go index 9ec95ff2..d615da63 100644 --- a/macos/metal/binary_archive.gen.go +++ b/macos/metal/binary_archive_protocol.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package metal @@ -12,8 +12,12 @@ import ( // [Full Topic]: https://developer.apple.com/documentation/metal/mtlbinaryarchive?language=objc type PBinaryArchive interface { // optional - AddFunctionWithDescriptorLibraryError(descriptor FunctionDescriptor, library LibraryWrapper, error foundation.Error) bool - HasAddFunctionWithDescriptorLibraryError() bool + SerializeToURLError(url foundation.URL, error foundation.Error) bool + HasSerializeToURLError() bool + + // optional + AddTileRenderPipelineFunctionsWithDescriptorError(descriptor TileRenderPipelineDescriptor, error foundation.Error) bool + HasAddTileRenderPipelineFunctionsWithDescriptorError() bool // optional AddComputePipelineFunctionsWithDescriptorError(descriptor ComputePipelineDescriptor, error foundation.Error) bool @@ -24,15 +28,11 @@ type PBinaryArchive interface { HasAddRenderPipelineFunctionsWithDescriptorError() bool // optional - AddTileRenderPipelineFunctionsWithDescriptorError(descriptor TileRenderPipelineDescriptor, error foundation.Error) bool - HasAddTileRenderPipelineFunctionsWithDescriptorError() bool - - // optional - SerializeToURLError(url foundation.URL, error foundation.Error) bool - HasSerializeToURLError() bool + AddFunctionWithDescriptorLibraryError(descriptor FunctionDescriptor, library LibraryObject, error foundation.Error) bool + HasAddFunctionWithDescriptorLibraryError() bool // optional - Device() PDevice + Device() DeviceObject HasDevice() bool // optional @@ -44,103 +44,106 @@ type PBinaryArchive interface { HasLabel() bool } -// A concrete type wrapper for the [PBinaryArchive] protocol. -type BinaryArchiveWrapper struct { +// ensure impl type implements protocol interface +var _ PBinaryArchive = (*BinaryArchiveObject)(nil) + +// A concrete type for the [PBinaryArchive] protocol. +type BinaryArchiveObject struct { objc.Object } -func (b_ BinaryArchiveWrapper) HasAddFunctionWithDescriptorLibraryError() bool { - return b_.RespondsToSelector(objc.Sel("addFunctionWithDescriptor:library:error:")) +func (b_ BinaryArchiveObject) HasSerializeToURLError() bool { + return b_.RespondsToSelector(objc.Sel("serializeToURL:error:")) } -// Adds a description of a function to the archive. [Full Topic] +// Writes the contents of the archive to a file. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metal/mtlbinaryarchive/3750523-addfunctionwithdescriptor?language=objc -func (b_ BinaryArchiveWrapper) AddFunctionWithDescriptorLibraryError(descriptor IFunctionDescriptor, library PLibrary, error foundation.IError) bool { - po1 := objc.WrapAsProtocol("MTLLibrary", library) - rv := objc.Call[bool](b_, objc.Sel("addFunctionWithDescriptor:library:error:"), objc.Ptr(descriptor), po1, objc.Ptr(error)) +// [Full Topic]: https://developer.apple.com/documentation/metal/mtlbinaryarchive/3553928-serializetourl?language=objc +func (b_ BinaryArchiveObject) SerializeToURLError(url foundation.URL, error foundation.Error) bool { + rv := objc.Call[bool](b_, objc.Sel("serializeToURL:error:"), objc.Ptr(url), objc.Ptr(error)) return rv } -func (b_ BinaryArchiveWrapper) HasAddComputePipelineFunctionsWithDescriptorError() bool { +func (b_ BinaryArchiveObject) HasAddTileRenderPipelineFunctionsWithDescriptorError() bool { + return b_.RespondsToSelector(objc.Sel("addTileRenderPipelineFunctionsWithDescriptor:error:")) +} + +// Adds a description of a tile renderer pipeline 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 foundation.Error) bool { + rv := objc.Call[bool](b_, objc.Sel("addTileRenderPipelineFunctionsWithDescriptor:error:"), objc.Ptr(descriptor), objc.Ptr(error)) + return rv +} + +func (b_ BinaryArchiveObject) HasAddComputePipelineFunctionsWithDescriptorError() bool { return b_.RespondsToSelector(objc.Sel("addComputePipelineFunctionsWithDescriptor:error:")) } // Adds a description of a compute pipeline to the archive. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/metal/mtlbinaryarchive/3553924-addcomputepipelinefunctionswithd?language=objc -func (b_ BinaryArchiveWrapper) AddComputePipelineFunctionsWithDescriptorError(descriptor IComputePipelineDescriptor, error foundation.IError) bool { +func (b_ BinaryArchiveObject) AddComputePipelineFunctionsWithDescriptorError(descriptor ComputePipelineDescriptor, error foundation.Error) bool { rv := objc.Call[bool](b_, objc.Sel("addComputePipelineFunctionsWithDescriptor:error:"), objc.Ptr(descriptor), objc.Ptr(error)) return rv } -func (b_ BinaryArchiveWrapper) HasAddRenderPipelineFunctionsWithDescriptorError() bool { +func (b_ BinaryArchiveObject) HasAddRenderPipelineFunctionsWithDescriptorError() bool { return b_.RespondsToSelector(objc.Sel("addRenderPipelineFunctionsWithDescriptor:error:")) } // Adds a description of a render pipeline to the archive. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/metal/mtlbinaryarchive/3553925-addrenderpipelinefunctionswithde?language=objc -func (b_ BinaryArchiveWrapper) AddRenderPipelineFunctionsWithDescriptorError(descriptor IRenderPipelineDescriptor, error foundation.IError) bool { +func (b_ BinaryArchiveObject) AddRenderPipelineFunctionsWithDescriptorError(descriptor RenderPipelineDescriptor, error foundation.Error) bool { rv := objc.Call[bool](b_, objc.Sel("addRenderPipelineFunctionsWithDescriptor:error:"), objc.Ptr(descriptor), objc.Ptr(error)) return rv } -func (b_ BinaryArchiveWrapper) HasAddTileRenderPipelineFunctionsWithDescriptorError() bool { - return b_.RespondsToSelector(objc.Sel("addTileRenderPipelineFunctionsWithDescriptor:error:")) -} - -// Adds a description of a tile renderer pipeline to the archive. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/metal/mtlbinaryarchive/3564419-addtilerenderpipelinefunctionswi?language=objc -func (b_ BinaryArchiveWrapper) AddTileRenderPipelineFunctionsWithDescriptorError(descriptor ITileRenderPipelineDescriptor, error foundation.IError) bool { - rv := objc.Call[bool](b_, objc.Sel("addTileRenderPipelineFunctionsWithDescriptor:error:"), objc.Ptr(descriptor), objc.Ptr(error)) - return rv -} - -func (b_ BinaryArchiveWrapper) HasSerializeToURLError() bool { - return b_.RespondsToSelector(objc.Sel("serializeToURL:error:")) +func (b_ BinaryArchiveObject) HasAddFunctionWithDescriptorLibraryError() bool { + return b_.RespondsToSelector(objc.Sel("addFunctionWithDescriptor:library:error:")) } -// Writes the contents of the archive to a file. [Full Topic] +// Adds a description of a function to the archive. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metal/mtlbinaryarchive/3553928-serializetourl?language=objc -func (b_ BinaryArchiveWrapper) SerializeToURLError(url foundation.IURL, error foundation.IError) bool { - rv := objc.Call[bool](b_, objc.Sel("serializeToURL:error:"), objc.Ptr(url), objc.Ptr(error)) +// [Full Topic]: https://developer.apple.com/documentation/metal/mtlbinaryarchive/3750523-addfunctionwithdescriptor?language=objc +func (b_ BinaryArchiveObject) AddFunctionWithDescriptorLibraryError(descriptor FunctionDescriptor, library LibraryObject, error foundation.Error) bool { + po1 := objc.WrapAsProtocol("MTLLibrary", library) + rv := objc.Call[bool](b_, objc.Sel("addFunctionWithDescriptor:library:error:"), objc.Ptr(descriptor), po1, objc.Ptr(error)) return rv } -func (b_ BinaryArchiveWrapper) HasDevice() bool { +func (b_ BinaryArchiveObject) HasDevice() bool { return b_.RespondsToSelector(objc.Sel("device")) } // The Metal device object that created the binary archive. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/metal/mtlbinaryarchive/3553926-device?language=objc -func (b_ BinaryArchiveWrapper) Device() DeviceWrapper { - rv := objc.Call[DeviceWrapper](b_, objc.Sel("device")) +func (b_ BinaryArchiveObject) Device() DeviceObject { + rv := objc.Call[DeviceObject](b_, objc.Sel("device")) return rv } -func (b_ BinaryArchiveWrapper) HasSetLabel() bool { +func (b_ BinaryArchiveObject) HasSetLabel() bool { return b_.RespondsToSelector(objc.Sel("setLabel:")) } // A string that identifies the library. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/metal/mtlbinaryarchive/3553927-label?language=objc -func (b_ BinaryArchiveWrapper) SetLabel(value string) { +func (b_ BinaryArchiveObject) SetLabel(value string) { objc.Call[objc.Void](b_, objc.Sel("setLabel:"), value) } -func (b_ BinaryArchiveWrapper) HasLabel() bool { +func (b_ BinaryArchiveObject) HasLabel() bool { return b_.RespondsToSelector(objc.Sel("label")) } // A string that identifies the library. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/metal/mtlbinaryarchive/3553927-label?language=objc -func (b_ BinaryArchiveWrapper) Label() string { +func (b_ BinaryArchiveObject) Label() string { rv := objc.Call[string](b_, objc.Sel("label")) return rv } diff --git a/macos/metal/blit_command_encoder.gen.go b/macos/metal/blit_command_encoder.gen.go deleted file mode 100644 index c8da84f7..00000000 --- a/macos/metal/blit_command_encoder.gen.go +++ /dev/null @@ -1,295 +0,0 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY - -package metal - -import ( - "github.com/progrium/macdriver/macos/foundation" - "github.com/progrium/macdriver/objc" -) - -// An interface you can use to encode GPU commands that copy and modify the underlying memory of various Metal resources. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/metal/mtlblitcommandencoder?language=objc -type PBlitCommandEncoder interface { - // optional - CopyIndirectCommandBufferSourceRangeDestinationDestinationIndex(source IndirectCommandBufferWrapper, sourceRange foundation.Range, destination IndirectCommandBufferWrapper, destinationIndex uint) - HasCopyIndirectCommandBufferSourceRangeDestinationDestinationIndex() bool - - // optional - SynchronizeTextureSliceLevel(texture TextureWrapper, slice uint, level uint) - HasSynchronizeTextureSliceLevel() bool - - // optional - ResolveCountersInRangeDestinationBufferDestinationOffset(sampleBuffer CounterSampleBufferWrapper, range_ foundation.Range, destinationBuffer BufferWrapper, destinationOffset uint) - HasResolveCountersInRangeDestinationBufferDestinationOffset() bool - - // optional - OptimizeContentsForGPUAccess(texture TextureWrapper) - HasOptimizeContentsForGPUAccess() bool - - // optional - SynchronizeResource(resource ResourceWrapper) - HasSynchronizeResource() bool - - // optional - SampleCountersInBufferAtSampleIndexWithBarrier(sampleBuffer CounterSampleBufferWrapper, sampleIndex uint, barrier bool) - HasSampleCountersInBufferAtSampleIndexWithBarrier() bool - - // optional - ResetTextureAccessCountersRegionMipLevelSlice(texture TextureWrapper, region Region, mipLevel uint, slice uint) - HasResetTextureAccessCountersRegionMipLevelSlice() bool - - // optional - CopyFromBufferSourceOffsetToBufferDestinationOffsetSize(sourceBuffer BufferWrapper, sourceOffset uint, destinationBuffer BufferWrapper, destinationOffset uint, size uint) - HasCopyFromBufferSourceOffsetToBufferDestinationOffsetSize() bool - - // optional - FillBufferRangeValue(buffer BufferWrapper, range_ foundation.Range, value uint8) - HasFillBufferRangeValue() bool - - // optional - OptimizeContentsForCPUAccess(texture TextureWrapper) - HasOptimizeContentsForCPUAccess() bool - - // optional - OptimizeIndirectCommandBufferWithRange(indirectCommandBuffer IndirectCommandBufferWrapper, range_ foundation.Range) - HasOptimizeIndirectCommandBufferWithRange() bool - - // optional - ResetCommandsInBufferWithRange(buffer IndirectCommandBufferWrapper, range_ foundation.Range) - HasResetCommandsInBufferWithRange() bool - - // optional - GetTextureAccessCountersRegionMipLevelSliceResetCountersCountersBufferCountersBufferOffset(texture TextureWrapper, region Region, mipLevel uint, slice uint, resetCounters bool, countersBuffer BufferWrapper, countersBufferOffset uint) - HasGetTextureAccessCountersRegionMipLevelSliceResetCountersCountersBufferCountersBufferOffset() bool - - // optional - GenerateMipmapsForTexture(texture TextureWrapper) - HasGenerateMipmapsForTexture() bool - - // optional - UpdateFence(fence FenceWrapper) - HasUpdateFence() bool - - // optional - CopyFromTextureToTexture(sourceTexture TextureWrapper, destinationTexture TextureWrapper) - HasCopyFromTextureToTexture() bool - - // optional - WaitForFence(fence FenceWrapper) - HasWaitForFence() bool -} - -// A concrete type wrapper for the [PBlitCommandEncoder] protocol. -type BlitCommandEncoderWrapper struct { - objc.Object -} - -func (b_ BlitCommandEncoderWrapper) HasCopyIndirectCommandBufferSourceRangeDestinationDestinationIndex() bool { - return b_.RespondsToSelector(objc.Sel("copyIndirectCommandBuffer:sourceRange:destination:destinationIndex:")) -} - -// Encodes a command that copies commands from one indirect command buffer into another. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/metal/mtlblitcommandencoder/2967412-copyindirectcommandbuffer?language=objc -func (b_ BlitCommandEncoderWrapper) CopyIndirectCommandBufferSourceRangeDestinationDestinationIndex(source PIndirectCommandBuffer, sourceRange foundation.Range, destination PIndirectCommandBuffer, 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_ BlitCommandEncoderWrapper) 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_ BlitCommandEncoderWrapper) SynchronizeTextureSliceLevel(texture PTexture, slice uint, level uint) { - po0 := objc.WrapAsProtocol("MTLTexture", texture) - objc.Call[objc.Void](b_, objc.Sel("synchronizeTexture:slice:level:"), po0, slice, level) -} - -func (b_ BlitCommandEncoderWrapper) HasResolveCountersInRangeDestinationBufferDestinationOffset() bool { - return b_.RespondsToSelector(objc.Sel("resolveCounters:inRange:destinationBuffer:destinationOffset:")) -} - -// 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/3194347-resolvecounters?language=objc -func (b_ BlitCommandEncoderWrapper) ResolveCountersInRangeDestinationBufferDestinationOffset(sampleBuffer PCounterSampleBuffer, range_ foundation.Range, destinationBuffer PBuffer, 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_ BlitCommandEncoderWrapper) 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_ BlitCommandEncoderWrapper) OptimizeContentsForGPUAccess(texture PTexture) { - po0 := objc.WrapAsProtocol("MTLTexture", texture) - objc.Call[objc.Void](b_, objc.Sel("optimizeContentsForGPUAccess:"), po0) -} - -func (b_ BlitCommandEncoderWrapper) HasSynchronizeResource() bool { - return b_.RespondsToSelector(objc.Sel("synchronizeResource:")) -} - -// Encodes a command that synchronizes the CPU’s copy of a managed resource, such as a buffer or texture, so that it matches the GPU’s copy. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/metal/mtlblitcommandencoder/1400775-synchronizeresource?language=objc -func (b_ BlitCommandEncoderWrapper) SynchronizeResource(resource PResource) { - po0 := objc.WrapAsProtocol("MTLResource", resource) - objc.Call[objc.Void](b_, objc.Sel("synchronizeResource:"), po0) -} - -func (b_ BlitCommandEncoderWrapper) HasSampleCountersInBufferAtSampleIndexWithBarrier() bool { - return b_.RespondsToSelector(objc.Sel("sampleCountersInBuffer:atSampleIndex:withBarrier:")) -} - -// 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/3194348-samplecountersinbuffer?language=objc -func (b_ BlitCommandEncoderWrapper) SampleCountersInBufferAtSampleIndexWithBarrier(sampleBuffer PCounterSampleBuffer, sampleIndex uint, barrier bool) { - po0 := objc.WrapAsProtocol("MTLCounterSampleBuffer", sampleBuffer) - objc.Call[objc.Void](b_, objc.Sel("sampleCountersInBuffer:atSampleIndex:withBarrier:"), po0, sampleIndex, barrier) -} - -func (b_ BlitCommandEncoderWrapper) 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_ BlitCommandEncoderWrapper) ResetTextureAccessCountersRegionMipLevelSlice(texture PTexture, 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_ BlitCommandEncoderWrapper) 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_ BlitCommandEncoderWrapper) CopyFromBufferSourceOffsetToBufferDestinationOffsetSize(sourceBuffer PBuffer, sourceOffset uint, destinationBuffer PBuffer, 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_ BlitCommandEncoderWrapper) HasFillBufferRangeValue() bool { - return b_.RespondsToSelector(objc.Sel("fillBuffer:range:value:")) -} - -// 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/1400761-fillbuffer?language=objc -func (b_ BlitCommandEncoderWrapper) FillBufferRangeValue(buffer PBuffer, 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_ BlitCommandEncoderWrapper) HasOptimizeContentsForCPUAccess() bool { - return b_.RespondsToSelector(objc.Sel("optimizeContentsForCPUAccess:")) -} - -// 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/2966537-optimizecontentsforcpuaccess?language=objc -func (b_ BlitCommandEncoderWrapper) OptimizeContentsForCPUAccess(texture PTexture) { - po0 := objc.WrapAsProtocol("MTLTexture", texture) - objc.Call[objc.Void](b_, objc.Sel("optimizeContentsForCPUAccess:"), po0) -} - -func (b_ BlitCommandEncoderWrapper) HasOptimizeIndirectCommandBufferWithRange() bool { - return b_.RespondsToSelector(objc.Sel("optimizeIndirectCommandBuffer:withRange:")) -} - -// 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/2967413-optimizeindirectcommandbuffer?language=objc -func (b_ BlitCommandEncoderWrapper) OptimizeIndirectCommandBufferWithRange(indirectCommandBuffer PIndirectCommandBuffer, range_ foundation.Range) { - po0 := objc.WrapAsProtocol("MTLIndirectCommandBuffer", indirectCommandBuffer) - objc.Call[objc.Void](b_, objc.Sel("optimizeIndirectCommandBuffer:withRange:"), po0, range_) -} - -func (b_ BlitCommandEncoderWrapper) 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_ BlitCommandEncoderWrapper) ResetCommandsInBufferWithRange(buffer PIndirectCommandBuffer, range_ foundation.Range) { - po0 := objc.WrapAsProtocol("MTLIndirectCommandBuffer", buffer) - objc.Call[objc.Void](b_, objc.Sel("resetCommandsInBuffer:withRange:"), po0, range_) -} - -func (b_ BlitCommandEncoderWrapper) HasGetTextureAccessCountersRegionMipLevelSliceResetCountersCountersBufferCountersBufferOffset() bool { - return b_.RespondsToSelector(objc.Sel("getTextureAccessCounters:region:mipLevel:slice:resetCounters:countersBuffer:countersBufferOffset:")) -} - -// 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/3043910-gettextureaccesscounters?language=objc -func (b_ BlitCommandEncoderWrapper) GetTextureAccessCountersRegionMipLevelSliceResetCountersCountersBufferCountersBufferOffset(texture PTexture, region Region, mipLevel uint, slice uint, resetCounters bool, countersBuffer PBuffer, 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_ BlitCommandEncoderWrapper) HasGenerateMipmapsForTexture() bool { - return b_.RespondsToSelector(objc.Sel("generateMipmapsForTexture:")) -} - -// Encodes a command that generates mipmaps for a texture from the base mipmap level up to the highest mipmap level. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/metal/mtlblitcommandencoder/1400748-generatemipmapsfortexture?language=objc -func (b_ BlitCommandEncoderWrapper) GenerateMipmapsForTexture(texture PTexture) { - po0 := objc.WrapAsProtocol("MTLTexture", texture) - objc.Call[objc.Void](b_, objc.Sel("generateMipmapsForTexture:"), po0) -} - -func (b_ BlitCommandEncoderWrapper) 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_ BlitCommandEncoderWrapper) UpdateFence(fence PFence) { - po0 := objc.WrapAsProtocol("MTLFence", fence) - objc.Call[objc.Void](b_, objc.Sel("updateFence:"), po0) -} - -func (b_ BlitCommandEncoderWrapper) HasCopyFromTextureToTexture() bool { - return b_.RespondsToSelector(objc.Sel("copyFromTexture:toTexture:")) -} - -// Encodes a command that copies data from one texture to another. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/metal/mtlblitcommandencoder/3075383-copyfromtexture?language=objc -func (b_ BlitCommandEncoderWrapper) CopyFromTextureToTexture(sourceTexture PTexture, destinationTexture PTexture) { - po0 := objc.WrapAsProtocol("MTLTexture", sourceTexture) - po1 := objc.WrapAsProtocol("MTLTexture", destinationTexture) - objc.Call[objc.Void](b_, objc.Sel("copyFromTexture:toTexture:"), po0, po1) -} - -func (b_ BlitCommandEncoderWrapper) 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_ BlitCommandEncoderWrapper) WaitForFence(fence PFence) { - po0 := objc.WrapAsProtocol("MTLFence", fence) - objc.Call[objc.Void](b_, objc.Sel("waitForFence:"), po0) -} diff --git a/macos/metal/blit_command_encoder_protocol.gen.go b/macos/metal/blit_command_encoder_protocol.gen.go new file mode 100644 index 00000000..66958273 --- /dev/null +++ b/macos/metal/blit_command_encoder_protocol.gen.go @@ -0,0 +1,432 @@ +// Code generated by DarwinKit. DO NOT EDIT. + +package metal + +import ( + "github.com/progrium/macdriver/macos/foundation" + "github.com/progrium/macdriver/objc" +) + +// An interface you can use to encode GPU commands that copy and modify the underlying memory of various Metal resources. [Full Topic] +// +// [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 + + // optional + OptimizeContentsForCPUAccess(texture TextureObject) + HasOptimizeContentsForCPUAccess() 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 + + // optional + OptimizeIndirectCommandBufferWithRange(indirectCommandBuffer IndirectCommandBufferObject, range_ foundation.Range) + HasOptimizeIndirectCommandBufferWithRange() 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 + + // optional + OptimizeContentsForCPUAccessSliceLevel(texture TextureObject, slice uint, level uint) + HasOptimizeContentsForCPUAccessSliceLevel() bool + + // optional + CopyFromTextureSourceSliceSourceLevelSourceOriginSourceSizeToBufferDestinationOffsetDestinationBytesPerRowDestinationBytesPerImage(sourceTexture TextureObject, sourceSlice uint, sourceLevel uint, sourceOrigin Origin, sourceSize Size, destinationBuffer BufferObject, destinationOffset uint, destinationBytesPerRow uint, destinationBytesPerImage uint) + HasCopyFromTextureSourceSliceSourceLevelSourceOriginSourceSizeToBufferDestinationOffsetDestinationBytesPerRowDestinationBytesPerImage() 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 + + // optional + UpdateFence(fence FenceObject) + HasUpdateFence() bool + + // optional + CopyIndirectCommandBufferSourceRangeDestinationDestinationIndex(source IndirectCommandBufferObject, sourceRange foundation.Range, destination IndirectCommandBufferObject, destinationIndex uint) + HasCopyIndirectCommandBufferSourceRangeDestinationDestinationIndex() bool + + // optional + SampleCountersInBufferAtSampleIndexWithBarrier(sampleBuffer CounterSampleBufferObject, sampleIndex uint, barrier bool) + HasSampleCountersInBufferAtSampleIndexWithBarrier() bool + + // optional + FillBufferRangeValue(buffer BufferObject, range_ foundation.Range, value uint8) + HasFillBufferRangeValue() 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 + + // optional + OptimizeContentsForGPUAccess(texture TextureObject) + HasOptimizeContentsForGPUAccess() bool + + // optional + ResolveCountersInRangeDestinationBufferDestinationOffset(sampleBuffer CounterSampleBufferObject, range_ foundation.Range, destinationBuffer BufferObject, destinationOffset uint) + HasResolveCountersInRangeDestinationBufferDestinationOffset() bool +} + +// ensure impl type implements protocol interface +var _ PBlitCommandEncoder = (*BlitCommandEncoderObject)(nil) + +// A concrete type for the [PBlitCommandEncoder] protocol. +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:")) +} + +// Encodes a command that improves the performance of the GPU’s accesses to a specific portion of a texture. [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) +} + +func (b_ BlitCommandEncoderObject) HasOptimizeContentsForCPUAccess() bool { + return b_.RespondsToSelector(objc.Sel("optimizeContentsForCPUAccess:")) +} + +// 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/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) HasCopyFromTextureSourceSliceSourceLevelSourceOriginSourceSizeToBufferDestinationOffsetDestinationBytesPerRowDestinationBytesPerImageOptions() bool { + return b_.RespondsToSelector(objc.Sel("copyFromTexture:sourceSlice:sourceLevel:sourceOrigin:sourceSize:toBuffer:destinationOffset:destinationBytesPerRow:destinationBytesPerImage:options:")) +} + +// Encodes a command that copies image data from a texture slice to a buffer, and provides options for special texture formats. [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) +} + +func (b_ BlitCommandEncoderObject) HasOptimizeIndirectCommandBufferWithRange() bool { + return b_.RespondsToSelector(objc.Sel("optimizeIndirectCommandBuffer:withRange:")) +} + +// 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/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) HasSynchronizeResource() bool { + return b_.RespondsToSelector(objc.Sel("synchronizeResource:")) +} + +// Encodes a command that synchronizes the CPU’s copy of a managed resource, such as a buffer or texture, so that it matches the GPU’s copy. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/metal/mtlblitcommandencoder/1400775-synchronizeresource?language=objc +func (b_ BlitCommandEncoderObject) SynchronizeResource(resource ResourceObject) { + po0 := objc.WrapAsProtocol("MTLResource", resource) + 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:")) +} + +// 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/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) HasOptimizeContentsForCPUAccessSliceLevel() bool { + return b_.RespondsToSelector(objc.Sel("optimizeContentsForCPUAccess:slice:level:")) +} + +// Encodes a command that improves the performance of the CPU’s accesses to a specific portion of a texture. [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) { + po0 := objc.WrapAsProtocol("MTLTexture", texture) + objc.Call[objc.Void](b_, objc.Sel("optimizeContentsForCPUAccess:slice:level:"), po0, slice, level) +} + +func (b_ BlitCommandEncoderObject) HasCopyFromTextureSourceSliceSourceLevelSourceOriginSourceSizeToBufferDestinationOffsetDestinationBytesPerRowDestinationBytesPerImage() bool { + return b_.RespondsToSelector(objc.Sel("copyFromTexture:sourceSlice:sourceLevel:sourceOrigin:sourceSize:toBuffer:destinationOffset:destinationBytesPerRow:destinationBytesPerImage:")) +} + +// Encodes a command that copies image data from a texture slice to a buffer. [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) +} + +func (b_ BlitCommandEncoderObject) HasCopyFromBufferSourceOffsetSourceBytesPerRowSourceBytesPerImageSourceSizeToTextureDestinationSliceDestinationLevelDestinationOriginOptions() bool { + return b_.RespondsToSelector(objc.Sel("copyFromBuffer:sourceOffset:sourceBytesPerRow:sourceBytesPerImage:sourceSize:toTexture:destinationSlice:destinationLevel:destinationOrigin:options:")) +} + +// 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/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) +} + +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) HasCopyIndirectCommandBufferSourceRangeDestinationDestinationIndex() bool { + return b_.RespondsToSelector(objc.Sel("copyIndirectCommandBuffer:sourceRange:destination:destinationIndex:")) +} + +// Encodes a command that copies commands from one indirect command buffer into another. [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) +} + +func (b_ BlitCommandEncoderObject) HasSampleCountersInBufferAtSampleIndexWithBarrier() bool { + return b_.RespondsToSelector(objc.Sel("sampleCountersInBuffer:atSampleIndex:withBarrier:")) +} + +// 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/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) HasFillBufferRangeValue() bool { + return b_.RespondsToSelector(objc.Sel("fillBuffer:range:value:")) +} + +// 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/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) HasGenerateMipmapsForTexture() bool { + return b_.RespondsToSelector(objc.Sel("generateMipmapsForTexture:")) +} + +// Encodes a command that generates mipmaps for a texture from the base mipmap level up to the highest mipmap level. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/metal/mtlblitcommandencoder/1400748-generatemipmapsfortexture?language=objc +func (b_ BlitCommandEncoderObject) GenerateMipmapsForTexture(texture TextureObject) { + po0 := objc.WrapAsProtocol("MTLTexture", texture) + objc.Call[objc.Void](b_, objc.Sel("generateMipmapsForTexture:"), po0) +} + +func (b_ BlitCommandEncoderObject) HasCopyFromTextureToTexture() bool { + return b_.RespondsToSelector(objc.Sel("copyFromTexture:toTexture:")) +} + +// Encodes a command that copies data from one texture to another. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/metal/mtlblitcommandencoder/3075383-copyfromtexture?language=objc +func (b_ BlitCommandEncoderObject) CopyFromTextureToTexture(sourceTexture TextureObject, destinationTexture TextureObject) { + po0 := objc.WrapAsProtocol("MTLTexture", sourceTexture) + po1 := objc.WrapAsProtocol("MTLTexture", destinationTexture) + 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:")) +} + +// 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/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) +} diff --git a/macos/metal/blit_pass_descriptor.gen.go b/macos/metal/blit_pass_descriptor.gen.go index 742590b0..e19956cc 100644 --- a/macos/metal/blit_pass_descriptor.gen.go +++ b/macos/metal/blit_pass_descriptor.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package metal @@ -39,10 +39,6 @@ func (bc _BlitPassDescriptorClass) Alloc() BlitPassDescriptor { return rv } -func BlitPassDescriptor_Alloc() BlitPassDescriptor { - return BlitPassDescriptorClass.Alloc() -} - func (bc _BlitPassDescriptorClass) New() BlitPassDescriptor { rv := objc.Call[BlitPassDescriptor](bc, objc.Sel("new")) rv.Autorelease() 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 fc60bbb7..152a16c9 100644 --- a/macos/metal/blit_pass_sample_buffer_attachment_descriptor.gen.go +++ b/macos/metal/blit_pass_sample_buffer_attachment_descriptor.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package metal @@ -20,11 +20,11 @@ type IBlitPassSampleBufferAttachmentDescriptor interface { objc.IObject StartOfEncoderSampleIndex() uint SetStartOfEncoderSampleIndex(value uint) - EndOfEncoderSampleIndex() uint - SetEndOfEncoderSampleIndex(value uint) - SampleBuffer() CounterSampleBufferWrapper + 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] @@ -45,10 +45,6 @@ func (bc _BlitPassSampleBufferAttachmentDescriptorClass) Alloc() BlitPassSampleB return rv } -func BlitPassSampleBufferAttachmentDescriptor_Alloc() BlitPassSampleBufferAttachmentDescriptor { - return BlitPassSampleBufferAttachmentDescriptorClass.Alloc() -} - func (bc _BlitPassSampleBufferAttachmentDescriptorClass) New() BlitPassSampleBufferAttachmentDescriptor { rv := objc.Call[BlitPassSampleBufferAttachmentDescriptor](bc, objc.Sel("new")) rv.Autorelease() @@ -79,26 +75,11 @@ 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 -func (b_ BlitPassSampleBufferAttachmentDescriptor) SampleBuffer() CounterSampleBufferWrapper { - rv := objc.Call[CounterSampleBufferWrapper](b_, objc.Sel("sampleBuffer")) +func (b_ BlitPassSampleBufferAttachmentDescriptor) SampleBuffer() CounterSampleBufferObject { + rv := objc.Call[CounterSampleBufferObject](b_, objc.Sel("sampleBuffer")) return rv } @@ -116,3 +97,18 @@ func (b_ BlitPassSampleBufferAttachmentDescriptor) SetSampleBuffer(value PCounte func (b_ BlitPassSampleBufferAttachmentDescriptor) SetSampleBufferObject(valueObject objc.IObject) { objc.Call[objc.Void](b_, objc.Sel("setSampleBuffer:"), objc.Ptr(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/blit_pass_sample_buffer_attachment_descriptor_array.gen.go b/macos/metal/blit_pass_sample_buffer_attachment_descriptor_array.gen.go index 0a33df1f..175846bd 100644 --- a/macos/metal/blit_pass_sample_buffer_attachment_descriptor_array.gen.go +++ b/macos/metal/blit_pass_sample_buffer_attachment_descriptor_array.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package metal @@ -40,10 +40,6 @@ func (bc _BlitPassSampleBufferAttachmentDescriptorArrayClass) Alloc() BlitPassSa return rv } -func BlitPassSampleBufferAttachmentDescriptorArray_Alloc() BlitPassSampleBufferAttachmentDescriptorArray { - return BlitPassSampleBufferAttachmentDescriptorArrayClass.Alloc() -} - func (bc _BlitPassSampleBufferAttachmentDescriptorArrayClass) New() BlitPassSampleBufferAttachmentDescriptorArray { rv := objc.Call[BlitPassSampleBufferAttachmentDescriptorArray](bc, objc.Sel("new")) rv.Autorelease() diff --git a/macos/metal/buffer_layout_descriptor.gen.go b/macos/metal/buffer_layout_descriptor.gen.go index a0aae224..e72ecdc7 100644 --- a/macos/metal/buffer_layout_descriptor.gen.go +++ b/macos/metal/buffer_layout_descriptor.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package metal @@ -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] @@ -44,10 +44,6 @@ func (bc _BufferLayoutDescriptorClass) Alloc() BufferLayoutDescriptor { return rv } -func BufferLayoutDescriptor_Alloc() BufferLayoutDescriptor { - return BufferLayoutDescriptorClass.Alloc() -} - func (bc _BufferLayoutDescriptorClass) New() BufferLayoutDescriptor { rv := objc.Call[BufferLayoutDescriptor](bc, objc.Sel("new")) rv.Autorelease() @@ -63,6 +59,21 @@ 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 @@ -92,18 +103,3 @@ 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 ae0de408..1da5bcbd 100644 --- a/macos/metal/buffer_layout_descriptor_array.gen.go +++ b/macos/metal/buffer_layout_descriptor_array.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package metal @@ -18,8 +18,8 @@ type _BufferLayoutDescriptorArrayClass struct { // An interface definition for the [BufferLayoutDescriptorArray] class. type IBufferLayoutDescriptorArray interface { objc.IObject - ObjectAtIndexedSubscript(index uint) BufferLayoutDescriptor SetObjectAtIndexedSubscript(bufferDesc IBufferLayoutDescriptor, index uint) + ObjectAtIndexedSubscript(index uint) BufferLayoutDescriptor } // An array of buffer layout descriptor objects. [Full Topic] @@ -40,10 +40,6 @@ func (bc _BufferLayoutDescriptorArrayClass) Alloc() BufferLayoutDescriptorArray return rv } -func BufferLayoutDescriptorArray_Alloc() BufferLayoutDescriptorArray { - return BufferLayoutDescriptorArrayClass.Alloc() -} - func (bc _BufferLayoutDescriptorArrayClass) New() BufferLayoutDescriptorArray { rv := objc.Call[BufferLayoutDescriptorArray](bc, objc.Sel("new")) rv.Autorelease() @@ -59,6 +55,13 @@ 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:"), objc.Ptr(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 @@ -66,10 +69,3 @@ 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:"), objc.Ptr(bufferDesc), index) -} diff --git a/macos/metal/buffer.gen.go b/macos/metal/buffer_protocol.gen.go similarity index 67% rename from macos/metal/buffer.gen.go rename to macos/metal/buffer_protocol.gen.go index 8631123c..ec00c00f 100644 --- a/macos/metal/buffer.gen.go +++ b/macos/metal/buffer_protocol.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package metal @@ -14,31 +14,31 @@ import ( // [Full Topic]: https://developer.apple.com/documentation/metal/mtlbuffer?language=objc type PBuffer interface { // optional - DidModifyRange(range_ foundation.Range) - HasDidModifyRange() bool + Contents() unsafe.Pointer + HasContents() bool // optional - NewTextureWithDescriptorOffsetBytesPerRow(descriptor TextureDescriptor, offset uint, bytesPerRow uint) PTexture - HasNewTextureWithDescriptorOffsetBytesPerRow() bool + NewRemoteBufferViewForDevice(device DeviceObject) BufferObject + HasNewRemoteBufferViewForDevice() bool // optional AddDebugMarkerRange(marker string, range_ foundation.Range) HasAddDebugMarkerRange() bool // optional - Contents() unsafe.Pointer - HasContents() bool - - // optional - NewRemoteBufferViewForDevice(device DeviceWrapper) PBuffer - HasNewRemoteBufferViewForDevice() bool + NewTextureWithDescriptorOffsetBytesPerRow(descriptor TextureDescriptor, offset uint, bytesPerRow uint) TextureObject + HasNewTextureWithDescriptorOffsetBytesPerRow() bool // optional RemoveAllDebugMarkers() HasRemoveAllDebugMarkers() bool // optional - RemoteStorageBuffer() PBuffer + DidModifyRange(range_ foundation.Range) + HasDidModifyRange() bool + + // optional + RemoteStorageBuffer() BufferObject HasRemoteStorageBuffer() bool // optional @@ -46,103 +46,104 @@ type PBuffer interface { HasLength() bool } -// A concrete type wrapper for the [PBuffer] protocol. -type BufferWrapper struct { +// ensure impl type implements protocol interface +var _ PBuffer = (*BufferObject)(nil) + +// A concrete type for the [PBuffer] protocol. +type BufferObject struct { objc.Object } -func (b_ BufferWrapper) HasDidModifyRange() bool { - return b_.RespondsToSelector(objc.Sel("didModifyRange:")) +func (b_ BufferObject) HasContents() bool { + return b_.RespondsToSelector(objc.Sel("contents")) } -// Informs the GPU that the CPU has modified a section of 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/1516121-didmodifyrange?language=objc -func (b_ BufferWrapper) DidModifyRange(range_ foundation.Range) { - objc.Call[objc.Void](b_, objc.Sel("didModifyRange:"), range_) +// [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_ BufferWrapper) HasNewTextureWithDescriptorOffsetBytesPerRow() bool { - return b_.RespondsToSelector(objc.Sel("newTextureWithDescriptor:offset:bytesPerRow:")) +func (b_ BufferObject) HasNewRemoteBufferViewForDevice() bool { + return b_.RespondsToSelector(objc.Sel("newRemoteBufferViewForDevice:")) } -// Creates a texture that shares its storage with the buffer. [Full Topic] +// 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/1613852-newtexturewithdescriptor?language=objc -func (b_ BufferWrapper) NewTextureWithDescriptorOffsetBytesPerRow(descriptor ITextureDescriptor, offset uint, bytesPerRow uint) TextureWrapper { - rv := objc.Call[TextureWrapper](b_, objc.Sel("newTextureWithDescriptor:offset:bytesPerRow:"), objc.Ptr(descriptor), offset, bytesPerRow) - rv.Autorelease() +// [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 } -func (b_ BufferWrapper) HasAddDebugMarkerRange() bool { +func (b_ BufferObject) HasAddDebugMarkerRange() bool { return b_.RespondsToSelector(objc.Sel("addDebugMarker:range:")) } // Adds a debug marker string to a specific buffer range. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/metal/mtlbuffer/1779576-adddebugmarker?language=objc -func (b_ BufferWrapper) AddDebugMarkerRange(marker string, range_ foundation.Range) { +func (b_ BufferObject) AddDebugMarkerRange(marker string, range_ foundation.Range) { objc.Call[objc.Void](b_, objc.Sel("addDebugMarker:range:"), marker, range_) } -func (b_ BufferWrapper) HasContents() bool { - return b_.RespondsToSelector(objc.Sel("contents")) +func (b_ BufferObject) HasNewTextureWithDescriptorOffsetBytesPerRow() bool { + return b_.RespondsToSelector(objc.Sel("newTextureWithDescriptor:offset:bytesPerRow:")) } -// Gets the system address of the buffer’s storage allocation. [Full Topic] +// Creates a texture that shares its storage with the buffer. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metal/mtlbuffer/1515716-contents?language=objc -func (b_ BufferWrapper) Contents() unsafe.Pointer { - rv := objc.Call[unsafe.Pointer](b_, objc.Sel("contents")) +// [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:"), objc.Ptr(descriptor), offset, bytesPerRow) return rv } -func (b_ BufferWrapper) HasNewRemoteBufferViewForDevice() bool { - return b_.RespondsToSelector(objc.Sel("newRemoteBufferViewForDevice:")) +func (b_ BufferObject) HasRemoveAllDebugMarkers() bool { + return b_.RespondsToSelector(objc.Sel("removeAllDebugMarkers")) } -// Creates a remote view of the buffer for another GPU in the same peer group. [Full Topic] +// Removes all debug marker strings from the buffer. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metal/mtlbuffer/2967415-newremotebufferviewfordevice?language=objc -func (b_ BufferWrapper) NewRemoteBufferViewForDevice(device PDevice) BufferWrapper { - po0 := objc.WrapAsProtocol("MTLDevice", device) - rv := objc.Call[BufferWrapper](b_, objc.Sel("newRemoteBufferViewForDevice:"), po0) - rv.Autorelease() - return rv +// [Full Topic]: https://developer.apple.com/documentation/metal/mtlbuffer/1779577-removealldebugmarkers?language=objc +func (b_ BufferObject) RemoveAllDebugMarkers() { + objc.Call[objc.Void](b_, objc.Sel("removeAllDebugMarkers")) } -func (b_ BufferWrapper) HasRemoveAllDebugMarkers() bool { - return b_.RespondsToSelector(objc.Sel("removeAllDebugMarkers")) +func (b_ BufferObject) HasDidModifyRange() bool { + return b_.RespondsToSelector(objc.Sel("didModifyRange:")) } -// Removes all debug marker strings from the buffer. [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/1779577-removealldebugmarkers?language=objc -func (b_ BufferWrapper) RemoveAllDebugMarkers() { - objc.Call[objc.Void](b_, objc.Sel("removeAllDebugMarkers")) +// [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_ BufferWrapper) HasRemoteStorageBuffer() bool { +func (b_ BufferObject) HasRemoteStorageBuffer() bool { return b_.RespondsToSelector(objc.Sel("remoteStorageBuffer")) } // The buffer on another GPU that the buffer was created from, if any. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/metal/mtlbuffer/2967416-remotestoragebuffer?language=objc -func (b_ BufferWrapper) RemoteStorageBuffer() BufferWrapper { - rv := objc.Call[BufferWrapper](b_, objc.Sel("remoteStorageBuffer")) +func (b_ BufferObject) RemoteStorageBuffer() BufferObject { + rv := objc.Call[BufferObject](b_, objc.Sel("remoteStorageBuffer")) return rv } -func (b_ BufferWrapper) HasLength() bool { +func (b_ BufferObject) HasLength() bool { return b_.RespondsToSelector(objc.Sel("length")) } // The logical size of the buffer, in bytes. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/metal/mtlbuffer/1515373-length?language=objc -func (b_ BufferWrapper) Length() uint { +func (b_ BufferObject) Length() uint { rv := objc.Call[uint](b_, objc.Sel("length")) return rv } diff --git a/macos/metal/capture_descriptor.gen.go b/macos/metal/capture_descriptor.gen.go index 3587d87b..2d09cc31 100644 --- a/macos/metal/capture_descriptor.gen.go +++ b/macos/metal/capture_descriptor.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package metal @@ -45,10 +45,6 @@ func (cc _CaptureDescriptorClass) Alloc() CaptureDescriptor { return rv } -func CaptureDescriptor_Alloc() CaptureDescriptor { - return CaptureDescriptorClass.Alloc() -} - func (cc _CaptureDescriptorClass) New() CaptureDescriptor { rv := objc.Call[CaptureDescriptor](cc, objc.Sel("new")) rv.Autorelease() diff --git a/macos/metal/capture_manager.gen.go b/macos/metal/capture_manager.gen.go index d5770064..dbebc091 100644 --- a/macos/metal/capture_manager.gen.go +++ b/macos/metal/capture_manager.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package metal @@ -19,17 +19,17 @@ type _CaptureManagerClass struct { // An interface definition for the [CaptureManager] class. type ICaptureManager interface { objc.IObject - NewCaptureScopeWithDevice(device PDevice) CaptureScopeWrapper - NewCaptureScopeWithDeviceObject(deviceObject objc.IObject) CaptureScopeWrapper StopCapture() + NewCaptureScopeWithDevice(device PDevice) CaptureScopeObject + NewCaptureScopeWithDeviceObject(deviceObject objc.IObject) CaptureScopeObject + NewCaptureScopeWithCommandQueue(commandQueue PCommandQueue) CaptureScopeObject + NewCaptureScopeWithCommandQueueObject(commandQueueObject objc.IObject) CaptureScopeObject StartCaptureWithDescriptorError(descriptor ICaptureDescriptor, error foundation.IError) bool - NewCaptureScopeWithCommandQueue(commandQueue PCommandQueue) CaptureScopeWrapper - NewCaptureScopeWithCommandQueueObject(commandQueueObject objc.IObject) CaptureScopeWrapper SupportsDestination(destination CaptureDestination) bool - DefaultCaptureScope() CaptureScopeWrapper + 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] @@ -50,10 +50,6 @@ func (cc _CaptureManagerClass) Alloc() CaptureManager { return rv } -func CaptureManager_Alloc() CaptureManager { - return CaptureManagerClass.Alloc() -} - func (cc _CaptureManagerClass) New() CaptureManager { rv := objc.Call[CaptureManager](cc, objc.Sel("new")) rv.Autorelease() @@ -69,22 +65,27 @@ 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 -func (c_ CaptureManager) NewCaptureScopeWithDevice(device PDevice) CaptureScopeWrapper { +func (c_ CaptureManager) NewCaptureScopeWithDevice(device PDevice) CaptureScopeObject { po0 := objc.WrapAsProtocol("MTLDevice", device) - rv := objc.Call[CaptureScopeWrapper](c_, objc.Sel("newCaptureScopeWithDevice:"), po0) - rv.Autorelease() + rv := objc.Call[CaptureScopeObject](c_, objc.Sel("newCaptureScopeWithDevice:"), po0) return rv } // 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 -func (c_ CaptureManager) NewCaptureScopeWithDeviceObject(deviceObject objc.IObject) CaptureScopeWrapper { - rv := objc.Call[CaptureScopeWrapper](c_, objc.Sel("newCaptureScopeWithDevice:"), objc.Ptr(deviceObject)) - rv.Autorelease() +func (c_ CaptureManager) NewCaptureScopeWithDeviceObject(deviceObject objc.IObject) CaptureScopeObject { + rv := objc.Call[CaptureScopeObject](c_, objc.Sel("newCaptureScopeWithDevice:"), objc.Ptr(deviceObject)) return rv } @@ -103,37 +104,28 @@ 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] +// Creates a capture scope for commands submitted to a specific command queue. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metal/mtlcapturemanager/3237259-startcapturewithdescriptor?language=objc -func (c_ CaptureManager) StartCaptureWithDescriptorError(descriptor ICaptureDescriptor, error foundation.IError) bool { - rv := objc.Call[bool](c_, objc.Sel("startCaptureWithDescriptor:error:"), objc.Ptr(descriptor), objc.Ptr(error)) +// [Full Topic]: https://developer.apple.com/documentation/metal/mtlcapturemanager/2869732-newcapturescopewithcommandqueue?language=objc +func (c_ CaptureManager) NewCaptureScopeWithCommandQueue(commandQueue PCommandQueue) CaptureScopeObject { + po0 := objc.WrapAsProtocol("MTLCommandQueue", commandQueue) + rv := objc.Call[CaptureScopeObject](c_, objc.Sel("newCaptureScopeWithCommandQueue:"), po0) 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 -func (c_ CaptureManager) NewCaptureScopeWithCommandQueue(commandQueue PCommandQueue) CaptureScopeWrapper { - po0 := objc.WrapAsProtocol("MTLCommandQueue", commandQueue) - rv := objc.Call[CaptureScopeWrapper](c_, objc.Sel("newCaptureScopeWithCommandQueue:"), po0) - rv.Autorelease() +func (c_ CaptureManager) NewCaptureScopeWithCommandQueueObject(commandQueueObject objc.IObject) CaptureScopeObject { + rv := objc.Call[CaptureScopeObject](c_, objc.Sel("newCaptureScopeWithCommandQueue:"), objc.Ptr(commandQueueObject)) return rv } -// Creates a capture scope for commands submitted to a specific command queue. [Full Topic] +// 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/2869732-newcapturescopewithcommandqueue?language=objc -func (c_ CaptureManager) NewCaptureScopeWithCommandQueueObject(commandQueueObject objc.IObject) CaptureScopeWrapper { - rv := objc.Call[CaptureScopeWrapper](c_, objc.Sel("newCaptureScopeWithCommandQueue:"), objc.Ptr(commandQueueObject)) - rv.Autorelease() +// [Full Topic]: https://developer.apple.com/documentation/metal/mtlcapturemanager/3237259-startcapturewithdescriptor?language=objc +func (c_ CaptureManager) StartCaptureWithDescriptorError(descriptor ICaptureDescriptor, error foundation.IError) bool { + rv := objc.Call[bool](c_, objc.Sel("startCaptureWithDescriptor:error:"), objc.Ptr(descriptor), objc.Ptr(error)) return rv } @@ -145,11 +137,19 @@ 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 -func (c_ CaptureManager) DefaultCaptureScope() CaptureScopeWrapper { - rv := objc.Call[CaptureScopeWrapper](c_, objc.Sel("defaultCaptureScope")) +func (c_ CaptureManager) DefaultCaptureScope() CaptureScopeObject { + rv := objc.Call[CaptureScopeObject](c_, objc.Sel("defaultCaptureScope")) return rv } @@ -167,11 +167,3 @@ func (c_ CaptureManager) SetDefaultCaptureScope(value PCaptureScope) { func (c_ CaptureManager) SetDefaultCaptureScopeObject(valueObject objc.IObject) { objc.Call[objc.Void](c_, objc.Sel("setDefaultCaptureScope:"), objc.Ptr(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.gen.go b/macos/metal/capture_scope_protocol.gen.go similarity index 69% rename from macos/metal/capture_scope.gen.go rename to macos/metal/capture_scope_protocol.gen.go index 6b598d02..90c20d73 100644 --- a/macos/metal/capture_scope.gen.go +++ b/macos/metal/capture_scope_protocol.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package metal @@ -10,22 +10,22 @@ import ( // // [Full Topic]: https://developer.apple.com/documentation/metal/mtlcapturescope?language=objc type PCaptureScope interface { - // optional - BeginScope() - HasBeginScope() bool - // optional EndScope() HasEndScope() bool // optional - CommandQueue() PCommandQueue - HasCommandQueue() bool + BeginScope() + HasBeginScope() bool // optional - Device() PDevice + Device() DeviceObject HasDevice() bool + // optional + CommandQueue() CommandQueueObject + HasCommandQueue() bool + // optional SetLabel(value string) HasSetLabel() bool @@ -35,76 +35,79 @@ type PCaptureScope interface { HasLabel() bool } -// A concrete type wrapper for the [PCaptureScope] protocol. -type CaptureScopeWrapper struct { - objc.Object -} - -func (c_ CaptureScopeWrapper) HasBeginScope() bool { - return c_.RespondsToSelector(objc.Sel("beginScope")) -} +// ensure impl type implements protocol interface +var _ PCaptureScope = (*CaptureScopeObject)(nil) -// Tells Metal to begin recording command information. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/metal/mtlcapturescope/2869571-beginscope?language=objc -func (c_ CaptureScopeWrapper) BeginScope() { - objc.Call[objc.Void](c_, objc.Sel("beginScope")) +// A concrete type for the [PCaptureScope] protocol. +type CaptureScopeObject struct { + objc.Object } -func (c_ CaptureScopeWrapper) HasEndScope() bool { +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_ CaptureScopeWrapper) EndScope() { +func (c_ CaptureScopeObject) EndScope() { objc.Call[objc.Void](c_, objc.Sel("endScope")) } -func (c_ CaptureScopeWrapper) HasCommandQueue() bool { - return c_.RespondsToSelector(objc.Sel("commandQueue")) +func (c_ CaptureScopeObject) HasBeginScope() bool { + return c_.RespondsToSelector(objc.Sel("beginScope")) } -// The command queue that this capture scope uses to limit which commands are recorded. [Full Topic] +// Tells Metal to begin recording command information. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metal/mtlcapturescope/2869573-commandqueue?language=objc -func (c_ CaptureScopeWrapper) CommandQueue() CommandQueueWrapper { - rv := objc.Call[CommandQueueWrapper](c_, objc.Sel("commandQueue")) - return rv +// [Full Topic]: https://developer.apple.com/documentation/metal/mtlcapturescope/2869571-beginscope?language=objc +func (c_ CaptureScopeObject) BeginScope() { + objc.Call[objc.Void](c_, objc.Sel("beginScope")) } -func (c_ CaptureScopeWrapper) HasDevice() bool { +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_ CaptureScopeWrapper) Device() DeviceWrapper { - rv := objc.Call[DeviceWrapper](c_, objc.Sel("device")) +func (c_ CaptureScopeObject) Device() DeviceObject { + rv := objc.Call[DeviceObject](c_, objc.Sel("device")) + return rv +} + +func (c_ CaptureScopeObject) HasCommandQueue() bool { + return c_.RespondsToSelector(objc.Sel("commandQueue")) +} + +// The command queue that this capture scope uses to limit which commands are recorded. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/metal/mtlcapturescope/2869573-commandqueue?language=objc +func (c_ CaptureScopeObject) CommandQueue() CommandQueueObject { + rv := objc.Call[CommandQueueObject](c_, objc.Sel("commandQueue")) return rv } -func (c_ CaptureScopeWrapper) HasSetLabel() bool { +func (c_ CaptureScopeObject) HasSetLabel() bool { return c_.RespondsToSelector(objc.Sel("setLabel:")) } // A string that identifies the capture scope. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/metal/mtlcapturescope/2869572-label?language=objc -func (c_ CaptureScopeWrapper) SetLabel(value string) { +func (c_ CaptureScopeObject) SetLabel(value string) { objc.Call[objc.Void](c_, objc.Sel("setLabel:"), value) } -func (c_ CaptureScopeWrapper) HasLabel() bool { +func (c_ CaptureScopeObject) HasLabel() bool { return c_.RespondsToSelector(objc.Sel("label")) } // A string that identifies the capture scope. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/metal/mtlcapturescope/2869572-label?language=objc -func (c_ CaptureScopeWrapper) Label() string { +func (c_ CaptureScopeObject) Label() string { rv := objc.Call[string](c_, objc.Sel("label")) return rv } diff --git a/macos/metal/command_buffer_descriptor.gen.go b/macos/metal/command_buffer_descriptor.gen.go index d83000a8..75df7dba 100644 --- a/macos/metal/command_buffer_descriptor.gen.go +++ b/macos/metal/command_buffer_descriptor.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package metal @@ -18,10 +18,10 @@ type _CommandBufferDescriptorClass struct { // An interface definition for the [CommandBufferDescriptor] class. type ICommandBufferDescriptor interface { objc.IObject - RetainedReferences() bool - SetRetainedReferences(value bool) ErrorOptions() CommandBufferErrorOption SetErrorOptions(value CommandBufferErrorOption) + RetainedReferences() bool + SetRetainedReferences(value bool) } // A configuration that customizes the behavior for a new command buffer. [Full Topic] @@ -42,10 +42,6 @@ func (cc _CommandBufferDescriptorClass) Alloc() CommandBufferDescriptor { return rv } -func CommandBufferDescriptor_Alloc() CommandBufferDescriptor { - return CommandBufferDescriptorClass.Alloc() -} - func (cc _CommandBufferDescriptorClass) New() CommandBufferDescriptor { rv := objc.Call[CommandBufferDescriptor](cc, objc.Sel("new")) rv.Autorelease() @@ -61,21 +57,6 @@ func (c_ CommandBufferDescriptor) Init() CommandBufferDescriptor { return rv } -// 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 -func (c_ CommandBufferDescriptor) RetainedReferences() bool { - rv := objc.Call[bool](c_, objc.Sel("retainedReferences")) - return rv -} - -// 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 -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 @@ -90,3 +71,18 @@ func (c_ CommandBufferDescriptor) ErrorOptions() CommandBufferErrorOption { 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 +func (c_ CommandBufferDescriptor) RetainedReferences() bool { + rv := objc.Call[bool](c_, objc.Sel("retainedReferences")) + return rv +} + +// 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 +func (c_ CommandBufferDescriptor) SetRetainedReferences(value bool) { + objc.Call[objc.Void](c_, objc.Sel("setRetainedReferences:"), value) +} diff --git a/macos/metal/command_buffer_encoder_info.gen.go b/macos/metal/command_buffer_encoder_info_protocol.gen.go similarity index 70% rename from macos/metal/command_buffer_encoder_info.gen.go rename to macos/metal/command_buffer_encoder_info_protocol.gen.go index 270fb090..1389c904 100644 --- a/macos/metal/command_buffer_encoder_info.gen.go +++ b/macos/metal/command_buffer_encoder_info_protocol.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package metal @@ -23,43 +23,46 @@ type PCommandBufferEncoderInfo interface { HasDebugSignposts() bool } -// A concrete type wrapper for the [PCommandBufferEncoderInfo] protocol. -type CommandBufferEncoderInfoWrapper struct { +// ensure impl type implements protocol interface +var _ PCommandBufferEncoderInfo = (*CommandBufferEncoderInfoObject)(nil) + +// A concrete type for the [PCommandBufferEncoderInfo] protocol. +type CommandBufferEncoderInfoObject struct { objc.Object } -func (c_ CommandBufferEncoderInfoWrapper) HasErrorState() bool { +func (c_ CommandBufferEncoderInfoObject) HasErrorState() bool { return c_.RespondsToSelector(objc.Sel("errorState")) } // The execution status of the command encoder. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/metal/mtlcommandbufferencoderinfo/3553945-errorstate?language=objc -func (c_ CommandBufferEncoderInfoWrapper) ErrorState() CommandEncoderErrorState { +func (c_ CommandBufferEncoderInfoObject) ErrorState() CommandEncoderErrorState { rv := objc.Call[CommandEncoderErrorState](c_, objc.Sel("errorState")) return rv } -func (c_ CommandBufferEncoderInfoWrapper) HasLabel() bool { +func (c_ CommandBufferEncoderInfoObject) HasLabel() bool { return c_.RespondsToSelector(objc.Sel("label")) } // The name of the encoder that generates the error information. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/metal/mtlcommandbufferencoderinfo/3553946-label?language=objc -func (c_ CommandBufferEncoderInfoWrapper) Label() string { +func (c_ CommandBufferEncoderInfoObject) Label() string { rv := objc.Call[string](c_, objc.Sel("label")) return rv } -func (c_ CommandBufferEncoderInfoWrapper) HasDebugSignposts() bool { +func (c_ CommandBufferEncoderInfoObject) HasDebugSignposts() bool { return c_.RespondsToSelector(objc.Sel("debugSignposts")) } // An array of debug signposts that Metal records as the GPU executes the commands of the encoder’s pass. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/metal/mtlcommandbufferencoderinfo/3553944-debugsignposts?language=objc -func (c_ CommandBufferEncoderInfoWrapper) DebugSignposts() []string { +func (c_ CommandBufferEncoderInfoObject) DebugSignposts() []string { rv := objc.Call[[]string](c_, objc.Sel("debugSignposts")) return rv } diff --git a/macos/metal/command_buffer.gen.go b/macos/metal/command_buffer_protocol.gen.go similarity index 62% rename from macos/metal/command_buffer.gen.go rename to macos/metal/command_buffer_protocol.gen.go index efbcde75..186de229 100644 --- a/macos/metal/command_buffer.gen.go +++ b/macos/metal/command_buffer_protocol.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package metal @@ -13,542 +13,577 @@ import ( // [Full Topic]: https://developer.apple.com/documentation/metal/mtlcommandbuffer?language=objc type PCommandBuffer interface { // optional - Enqueue() - HasEnqueue() bool + PresentDrawable(drawable DrawableObject) + HasPresentDrawable() bool // optional - EncodeSignalEventValue(event EventWrapper, value uint64) - HasEncodeSignalEventValue() bool + WaitUntilScheduled() + HasWaitUntilScheduled() bool // optional - WaitUntilCompleted() - HasWaitUntilCompleted() bool + Enqueue() + HasEnqueue() bool // optional - PresentDrawable(drawable DrawableWrapper) - HasPresentDrawable() bool + ComputeCommandEncoderWithDispatchType(dispatchType DispatchType) ComputeCommandEncoderObject + HasComputeCommandEncoderWithDispatchType() bool // optional - PushDebugGroup(string_ string) - HasPushDebugGroup() bool + ComputeCommandEncoder() ComputeCommandEncoderObject + HasComputeCommandEncoder() bool // optional - BlitCommandEncoderWithDescriptor(blitPassDescriptor BlitPassDescriptor) PBlitCommandEncoder - HasBlitCommandEncoderWithDescriptor() bool + EncodeSignalEventValue(event EventObject, value uint64) + HasEncodeSignalEventValue() bool // optional - BlitCommandEncoder() PBlitCommandEncoder - HasBlitCommandEncoder() bool + Commit() + HasCommit() bool // optional - ComputeCommandEncoder() PComputeCommandEncoder - HasComputeCommandEncoder() bool + PopDebugGroup() + HasPopDebugGroup() bool + + // optional + ComputeCommandEncoderWithDescriptor(computePassDescriptor ComputePassDescriptor) ComputeCommandEncoderObject + HasComputeCommandEncoderWithDescriptor() bool // optional - ParallelRenderCommandEncoderWithDescriptor(renderPassDescriptor RenderPassDescriptor) PParallelRenderCommandEncoder + ParallelRenderCommandEncoderWithDescriptor(renderPassDescriptor RenderPassDescriptor) ParallelRenderCommandEncoderObject HasParallelRenderCommandEncoderWithDescriptor() bool // optional - EncodeWaitForEventValue(event EventWrapper, value uint64) + EncodeWaitForEventValue(event EventObject, value uint64) HasEncodeWaitForEventValue() bool // optional - Commit() - HasCommit() bool + BlitCommandEncoder() BlitCommandEncoderObject + HasBlitCommandEncoder() bool // optional - ComputeCommandEncoderWithDescriptor(computePassDescriptor ComputePassDescriptor) PComputeCommandEncoder - HasComputeCommandEncoderWithDescriptor() bool + ResourceStateCommandEncoder() ResourceStateCommandEncoderObject + HasResourceStateCommandEncoder() bool // optional - ResourceStateCommandEncoder() PResourceStateCommandEncoder - HasResourceStateCommandEncoder() bool + RenderCommandEncoderWithDescriptor(renderPassDescriptor RenderPassDescriptor) RenderCommandEncoderObject + HasRenderCommandEncoderWithDescriptor() bool // optional AddCompletedHandler(block CommandBufferHandler) HasAddCompletedHandler() bool // optional - AccelerationStructureCommandEncoder() PAccelerationStructureCommandEncoder - HasAccelerationStructureCommandEncoder() bool + PresentDrawableAfterMinimumDuration(drawable DrawableObject, duration corefoundation.TimeInterval) + HasPresentDrawableAfterMinimumDuration() bool // optional - PopDebugGroup() - HasPopDebugGroup() bool + PresentDrawableAtTime(drawable DrawableObject, presentationTime corefoundation.TimeInterval) + HasPresentDrawableAtTime() bool // optional - ResourceStateCommandEncoderWithDescriptor(resourceStatePassDescriptor ResourceStatePassDescriptor) PResourceStateCommandEncoder + ResourceStateCommandEncoderWithDescriptor(resourceStatePassDescriptor ResourceStatePassDescriptor) ResourceStateCommandEncoderObject HasResourceStateCommandEncoderWithDescriptor() bool // optional - RenderCommandEncoderWithDescriptor(renderPassDescriptor RenderPassDescriptor) PRenderCommandEncoder - HasRenderCommandEncoderWithDescriptor() bool + AccelerationStructureCommandEncoder() AccelerationStructureCommandEncoderObject + HasAccelerationStructureCommandEncoder() bool // optional AddScheduledHandler(block CommandBufferHandler) HasAddScheduledHandler() bool // optional - ComputeCommandEncoderWithDispatchType(dispatchType DispatchType) PComputeCommandEncoder - HasComputeCommandEncoderWithDispatchType() bool + WaitUntilCompleted() + HasWaitUntilCompleted() bool // optional - WaitUntilScheduled() - HasWaitUntilScheduled() bool + PushDebugGroup(string_ string) + HasPushDebugGroup() bool // optional - RetainedReferences() bool - HasRetainedReferences() bool + BlitCommandEncoderWithDescriptor(blitPassDescriptor BlitPassDescriptor) BlitCommandEncoderObject + HasBlitCommandEncoderWithDescriptor() bool // optional - GPUStartTime() corefoundation.TimeInterval - HasGPUStartTime() bool + Logs() LogContainerObject + HasLogs() bool // optional - CommandQueue() PCommandQueue - HasCommandQueue() bool + SetLabel(value string) + HasSetLabel() bool // optional - Error() foundation.IError - HasError() bool + Label() string + HasLabel() bool // optional - GPUEndTime() corefoundation.TimeInterval - HasGPUEndTime() bool + Status() CommandBufferStatus + HasStatus() bool // optional - Logs() PLogContainer - HasLogs() bool + ErrorOptions() CommandBufferErrorOption + HasErrorOptions() bool // optional - KernelStartTime() corefoundation.TimeInterval - HasKernelStartTime() bool + RetainedReferences() bool + HasRetainedReferences() bool // optional - Device() PDevice - HasDevice() bool + GPUStartTime() corefoundation.TimeInterval + HasGPUStartTime() bool // optional - ErrorOptions() CommandBufferErrorOption - HasErrorOptions() bool + Device() DeviceObject + HasDevice() bool // optional KernelEndTime() corefoundation.TimeInterval HasKernelEndTime() bool // optional - SetLabel(value string) - HasSetLabel() bool + CommandQueue() CommandQueueObject + HasCommandQueue() bool // optional - Label() string - HasLabel() bool + KernelStartTime() corefoundation.TimeInterval + HasKernelStartTime() bool // optional - Status() CommandBufferStatus - HasStatus() bool + Error() foundation.Error + HasError() bool + + // optional + GPUEndTime() corefoundation.TimeInterval + HasGPUEndTime() bool } -// A concrete type wrapper for the [PCommandBuffer] protocol. -type CommandBufferWrapper struct { +// ensure impl type implements protocol interface +var _ PCommandBuffer = (*CommandBufferObject)(nil) + +// A concrete type for the [PCommandBuffer] protocol. +type CommandBufferObject struct { objc.Object } -func (c_ CommandBufferWrapper) HasEnqueue() bool { - return c_.RespondsToSelector(objc.Sel("enqueue")) +func (c_ CommandBufferObject) HasPresentDrawable() bool { + return c_.RespondsToSelector(objc.Sel("presentDrawable:")) } -// Reserves the next available place for the command buffer in its command queue. [Full Topic] +// Presents a drawable as early as possible. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metal/mtlcommandbuffer/1443019-enqueue?language=objc -func (c_ CommandBufferWrapper) Enqueue() { - objc.Call[objc.Void](c_, objc.Sel("enqueue")) +// [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_ CommandBufferWrapper) HasEncodeSignalEventValue() bool { - return c_.RespondsToSelector(objc.Sel("encodeSignalEvent:value:")) +func (c_ CommandBufferObject) HasWaitUntilScheduled() bool { + return c_.RespondsToSelector(objc.Sel("waitUntilScheduled")) } -// 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] +// Blocks the current thread until the command queue schedules the buffer. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metal/mtlcommandbuffer/2966542-encodesignalevent?language=objc -func (c_ CommandBufferWrapper) EncodeSignalEventValue(event PEvent, 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/1443036-waituntilscheduled?language=objc +func (c_ CommandBufferObject) WaitUntilScheduled() { + objc.Call[objc.Void](c_, objc.Sel("waitUntilScheduled")) } -func (c_ CommandBufferWrapper) HasWaitUntilCompleted() bool { - return c_.RespondsToSelector(objc.Sel("waitUntilCompleted")) +func (c_ CommandBufferObject) HasEnqueue() bool { + return c_.RespondsToSelector(objc.Sel("enqueue")) } -// Blocks the current thread until the GPU finishes executing the command buffer and all of its completion handlers. [Full Topic] +// Reserves the next available place for the command buffer in its command queue. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metal/mtlcommandbuffer/1443039-waituntilcompleted?language=objc -func (c_ CommandBufferWrapper) WaitUntilCompleted() { - objc.Call[objc.Void](c_, objc.Sel("waitUntilCompleted")) +// [Full Topic]: https://developer.apple.com/documentation/metal/mtlcommandbuffer/1443019-enqueue?language=objc +func (c_ CommandBufferObject) Enqueue() { + objc.Call[objc.Void](c_, objc.Sel("enqueue")) } -func (c_ CommandBufferWrapper) HasPresentDrawable() bool { - return c_.RespondsToSelector(objc.Sel("presentDrawable:")) +func (c_ CommandBufferObject) HasComputeCommandEncoderWithDispatchType() bool { + return c_.RespondsToSelector(objc.Sel("computeCommandEncoderWithDispatchType:")) } -// Presents a drawable as early as possible. [Full Topic] +// Creates a compute command encoder with a dispatch type. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metal/mtlcommandbuffer/1443029-presentdrawable?language=objc -func (c_ CommandBufferWrapper) PresentDrawable(drawable PDrawable) { - po0 := objc.WrapAsProtocol("MTLDrawable", drawable) - objc.Call[objc.Void](c_, objc.Sel("presentDrawable:"), po0) +// [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_ CommandBufferWrapper) HasPushDebugGroup() bool { - return c_.RespondsToSelector(objc.Sel("pushDebugGroup:")) +func (c_ CommandBufferObject) HasComputeCommandEncoder() bool { + return c_.RespondsToSelector(objc.Sel("computeCommandEncoder")) } -// Marks the beginning of a debug group and gives it an identifying label, which temporarily replaces the previous group, if applicable. [Full Topic] +// Creates a compute command encoder that uses default settings. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metal/mtlcommandbuffer/2869550-pushdebuggroup?language=objc -func (c_ CommandBufferWrapper) PushDebugGroup(string_ string) { - objc.Call[objc.Void](c_, objc.Sel("pushDebugGroup:"), string_) +// [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 } -func (c_ CommandBufferWrapper) HasBlitCommandEncoderWithDescriptor() bool { - return c_.RespondsToSelector(objc.Sel("blitCommandEncoderWithDescriptor:")) +func (c_ CommandBufferObject) HasEncodeSignalEventValue() bool { + return c_.RespondsToSelector(objc.Sel("encodeSignalEvent:value:")) } -// Creates a block information transfer (blit) encoder from a descriptor. [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/3564431-blitcommandencoderwithdescriptor?language=objc -func (c_ CommandBufferWrapper) BlitCommandEncoderWithDescriptor(blitPassDescriptor IBlitPassDescriptor) BlitCommandEncoderWrapper { - rv := objc.Call[BlitCommandEncoderWrapper](c_, objc.Sel("blitCommandEncoderWithDescriptor:"), objc.Ptr(blitPassDescriptor)) - 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_ CommandBufferWrapper) 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_ CommandBufferWrapper) BlitCommandEncoder() BlitCommandEncoderWrapper { - rv := objc.Call[BlitCommandEncoderWrapper](c_, objc.Sel("blitCommandEncoder")) - return rv +// [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_ CommandBufferWrapper) HasComputeCommandEncoder() bool { - return c_.RespondsToSelector(objc.Sel("computeCommandEncoder")) +func (c_ CommandBufferObject) HasPopDebugGroup() bool { + return c_.RespondsToSelector(objc.Sel("popDebugGroup")) } -// Creates a compute command encoder that uses default settings. [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/1443044-computecommandencoder?language=objc -func (c_ CommandBufferWrapper) ComputeCommandEncoder() ComputeCommandEncoderWrapper { - rv := objc.Call[ComputeCommandEncoderWrapper](c_, objc.Sel("computeCommandEncoder")) +// [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) 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:"), objc.Ptr(computePassDescriptor)) return rv } -func (c_ CommandBufferWrapper) HasParallelRenderCommandEncoderWithDescriptor() bool { +func (c_ CommandBufferObject) HasParallelRenderCommandEncoderWithDescriptor() bool { return c_.RespondsToSelector(objc.Sel("parallelRenderCommandEncoderWithDescriptor:")) } // Creates a parallel render command encoder from a descriptor. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/metal/mtlcommandbuffer/1443009-parallelrendercommandencoderwith?language=objc -func (c_ CommandBufferWrapper) ParallelRenderCommandEncoderWithDescriptor(renderPassDescriptor IRenderPassDescriptor) ParallelRenderCommandEncoderWrapper { - rv := objc.Call[ParallelRenderCommandEncoderWrapper](c_, objc.Sel("parallelRenderCommandEncoderWithDescriptor:"), objc.Ptr(renderPassDescriptor)) +func (c_ CommandBufferObject) ParallelRenderCommandEncoderWithDescriptor(renderPassDescriptor RenderPassDescriptor) ParallelRenderCommandEncoderObject { + rv := objc.Call[ParallelRenderCommandEncoderObject](c_, objc.Sel("parallelRenderCommandEncoderWithDescriptor:"), objc.Ptr(renderPassDescriptor)) return rv } -func (c_ CommandBufferWrapper) HasEncodeWaitForEventValue() bool { +func (c_ CommandBufferObject) HasEncodeWaitForEventValue() bool { return c_.RespondsToSelector(objc.Sel("encodeWaitForEvent:value:")) } // 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/2966543-encodewaitforevent?language=objc -func (c_ CommandBufferWrapper) EncodeWaitForEventValue(event PEvent, value uint64) { +func (c_ CommandBufferObject) EncodeWaitForEventValue(event EventObject, value uint64) { po0 := objc.WrapAsProtocol("MTLEvent", event) objc.Call[objc.Void](c_, objc.Sel("encodeWaitForEvent:value:"), po0, value) } -func (c_ CommandBufferWrapper) HasCommit() bool { - return c_.RespondsToSelector(objc.Sel("commit")) +func (c_ CommandBufferObject) HasBlitCommandEncoder() bool { + return c_.RespondsToSelector(objc.Sel("blitCommandEncoder")) } -// Submits the command buffer to run on the GPU. [Full Topic] +// Creates a block information transfer (blit) encoder. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metal/mtlcommandbuffer/1443003-commit?language=objc -func (c_ CommandBufferWrapper) Commit() { - objc.Call[objc.Void](c_, objc.Sel("commit")) +// [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_ CommandBufferWrapper) HasComputeCommandEncoderWithDescriptor() bool { - return c_.RespondsToSelector(objc.Sel("computeCommandEncoderWithDescriptor:")) +func (c_ CommandBufferObject) HasResourceStateCommandEncoder() bool { + return c_.RespondsToSelector(objc.Sel("resourceStateCommandEncoder")) } -// Creates a compute command encoder from a descriptor. [Full Topic] +// Creates a resource state command encoder that uses default settings. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metal/mtlcommandbuffer/3564432-computecommandencoderwithdescrip?language=objc -func (c_ CommandBufferWrapper) ComputeCommandEncoderWithDescriptor(computePassDescriptor IComputePassDescriptor) ComputeCommandEncoderWrapper { - rv := objc.Call[ComputeCommandEncoderWrapper](c_, objc.Sel("computeCommandEncoderWithDescriptor:"), objc.Ptr(computePassDescriptor)) +// [Full Topic]: https://developer.apple.com/documentation/metal/mtlcommandbuffer/3043915-resourcestatecommandencoder?language=objc +func (c_ CommandBufferObject) ResourceStateCommandEncoder() ResourceStateCommandEncoderObject { + rv := objc.Call[ResourceStateCommandEncoderObject](c_, objc.Sel("resourceStateCommandEncoder")) return rv } -func (c_ CommandBufferWrapper) HasResourceStateCommandEncoder() bool { - return c_.RespondsToSelector(objc.Sel("resourceStateCommandEncoder")) +func (c_ CommandBufferObject) HasRenderCommandEncoderWithDescriptor() bool { + return c_.RespondsToSelector(objc.Sel("renderCommandEncoderWithDescriptor:")) } -// Creates a resource state 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/3043915-resourcestatecommandencoder?language=objc -func (c_ CommandBufferWrapper) ResourceStateCommandEncoder() ResourceStateCommandEncoderWrapper { - rv := objc.Call[ResourceStateCommandEncoderWrapper](c_, objc.Sel("resourceStateCommandEncoder")) +// [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:"), objc.Ptr(renderPassDescriptor)) return rv } -func (c_ CommandBufferWrapper) HasAddCompletedHandler() bool { +func (c_ CommandBufferObject) HasAddCompletedHandler() bool { return c_.RespondsToSelector(objc.Sel("addCompletedHandler:")) } // Registers a completion handler the GPU device calls immediately after the GPU finishes running the commands in the command buffer. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/metal/mtlcommandbuffer/1442997-addcompletedhandler?language=objc -func (c_ CommandBufferWrapper) AddCompletedHandler(block CommandBufferHandler) { +func (c_ CommandBufferObject) AddCompletedHandler(block CommandBufferHandler) { objc.Call[objc.Void](c_, objc.Sel("addCompletedHandler:"), block) } -func (c_ CommandBufferWrapper) HasAccelerationStructureCommandEncoder() bool { - return c_.RespondsToSelector(objc.Sel("accelerationStructureCommandEncoder")) +func (c_ CommandBufferObject) HasPresentDrawableAfterMinimumDuration() bool { + return c_.RespondsToSelector(objc.Sel("presentDrawable:afterMinimumDuration:")) } -// Creates a ray-tracing acceleration structure command encoder that uses default settings. [Full Topic] +// Presents a drawable after the system presents the previous drawable for an amount of time. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metal/mtlcommandbuffer/3553937-accelerationstructurecommandenco?language=objc -func (c_ CommandBufferWrapper) AccelerationStructureCommandEncoder() AccelerationStructureCommandEncoderWrapper { - rv := objc.Call[AccelerationStructureCommandEncoderWrapper](c_, objc.Sel("accelerationStructureCommandEncoder")) - return rv +// [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) } -func (c_ CommandBufferWrapper) HasPopDebugGroup() bool { - return c_.RespondsToSelector(objc.Sel("popDebugGroup")) +func (c_ CommandBufferObject) HasPresentDrawableAtTime() bool { + return c_.RespondsToSelector(objc.Sel("presentDrawable:atTime:")) } -// Marks the end of a debug group and, if applicable, restores the previous group from a stack. [Full Topic] +// Presents a drawable at a specific time. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metal/mtlcommandbuffer/2869549-popdebuggroup?language=objc -func (c_ CommandBufferWrapper) PopDebugGroup() { - objc.Call[objc.Void](c_, objc.Sel("popDebugGroup")) +// [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) } -func (c_ CommandBufferWrapper) HasResourceStateCommandEncoderWithDescriptor() bool { +func (c_ CommandBufferObject) HasResourceStateCommandEncoderWithDescriptor() bool { return c_.RespondsToSelector(objc.Sel("resourceStateCommandEncoderWithDescriptor:")) } // Creates a resource state command encoder from a descriptor. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/metal/mtlcommandbuffer/3566536-resourcestatecommandencoderwithd?language=objc -func (c_ CommandBufferWrapper) ResourceStateCommandEncoderWithDescriptor(resourceStatePassDescriptor IResourceStatePassDescriptor) ResourceStateCommandEncoderWrapper { - rv := objc.Call[ResourceStateCommandEncoderWrapper](c_, objc.Sel("resourceStateCommandEncoderWithDescriptor:"), objc.Ptr(resourceStatePassDescriptor)) +func (c_ CommandBufferObject) ResourceStateCommandEncoderWithDescriptor(resourceStatePassDescriptor ResourceStatePassDescriptor) ResourceStateCommandEncoderObject { + rv := objc.Call[ResourceStateCommandEncoderObject](c_, objc.Sel("resourceStateCommandEncoderWithDescriptor:"), objc.Ptr(resourceStatePassDescriptor)) return rv } -func (c_ CommandBufferWrapper) HasRenderCommandEncoderWithDescriptor() bool { - return c_.RespondsToSelector(objc.Sel("renderCommandEncoderWithDescriptor:")) +func (c_ CommandBufferObject) HasAccelerationStructureCommandEncoder() bool { + return c_.RespondsToSelector(objc.Sel("accelerationStructureCommandEncoder")) } -// Creates a render command encoder from a descriptor. [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/1442999-rendercommandencoderwithdescript?language=objc -func (c_ CommandBufferWrapper) RenderCommandEncoderWithDescriptor(renderPassDescriptor IRenderPassDescriptor) RenderCommandEncoderWrapper { - rv := objc.Call[RenderCommandEncoderWrapper](c_, objc.Sel("renderCommandEncoderWithDescriptor:"), objc.Ptr(renderPassDescriptor)) +// [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_ CommandBufferWrapper) HasAddScheduledHandler() bool { +func (c_ CommandBufferObject) HasAddScheduledHandler() bool { return c_.RespondsToSelector(objc.Sel("addScheduledHandler:")) } // Registers a completion handler the GPU device calls immediately after it schedules the command buffer to run on the GPU. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/metal/mtlcommandbuffer/1442991-addscheduledhandler?language=objc -func (c_ CommandBufferWrapper) AddScheduledHandler(block CommandBufferHandler) { +func (c_ CommandBufferObject) AddScheduledHandler(block CommandBufferHandler) { objc.Call[objc.Void](c_, objc.Sel("addScheduledHandler:"), block) } -func (c_ CommandBufferWrapper) HasComputeCommandEncoderWithDispatchType() bool { - return c_.RespondsToSelector(objc.Sel("computeCommandEncoderWithDispatchType:")) +func (c_ CommandBufferObject) HasWaitUntilCompleted() bool { + return c_.RespondsToSelector(objc.Sel("waitUntilCompleted")) } -// Creates a compute command encoder with a dispatch type. [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/2966541-computecommandencoderwithdispatc?language=objc -func (c_ CommandBufferWrapper) ComputeCommandEncoderWithDispatchType(dispatchType DispatchType) ComputeCommandEncoderWrapper { - rv := objc.Call[ComputeCommandEncoderWrapper](c_, objc.Sel("computeCommandEncoderWithDispatchType:"), dispatchType) - 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_ CommandBufferWrapper) HasWaitUntilScheduled() bool { - return c_.RespondsToSelector(objc.Sel("waitUntilScheduled")) +func (c_ CommandBufferObject) HasPushDebugGroup() bool { + return c_.RespondsToSelector(objc.Sel("pushDebugGroup:")) } -// Blocks the current thread until the command queue schedules the buffer. [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/1443036-waituntilscheduled?language=objc -func (c_ CommandBufferWrapper) WaitUntilScheduled() { - objc.Call[objc.Void](c_, objc.Sel("waitUntilScheduled")) +// [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_ CommandBufferWrapper) HasRetainedReferences() bool { - return c_.RespondsToSelector(objc.Sel("retainedReferences")) +func (c_ CommandBufferObject) HasBlitCommandEncoderWithDescriptor() bool { + return c_.RespondsToSelector(objc.Sel("blitCommandEncoderWithDescriptor:")) } -// A Boolean value that indicates whether the command buffer maintains strong references to the resources it uses. [Full Topic] +// Creates a block information transfer (blit) encoder from a descriptor. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metal/mtlcommandbuffer/1443011-retainedreferences?language=objc -func (c_ CommandBufferWrapper) RetainedReferences() bool { - rv := objc.Call[bool](c_, objc.Sel("retainedReferences")) +// [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:"), objc.Ptr(blitPassDescriptor)) return rv } -func (c_ CommandBufferWrapper) HasGPUStartTime() bool { - return c_.RespondsToSelector(objc.Sel("GPUStartTime")) +func (c_ CommandBufferObject) HasLogs() bool { + return c_.RespondsToSelector(objc.Sel("logs")) } -// The host time, in seconds, when the GPU starts command buffer execution. [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/1639924-gpustarttime?language=objc -func (c_ CommandBufferWrapper) GPUStartTime() corefoundation.TimeInterval { - rv := objc.Call[corefoundation.TimeInterval](c_, objc.Sel("GPUStartTime")) +// [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_ CommandBufferWrapper) HasCommandQueue() bool { - return c_.RespondsToSelector(objc.Sel("commandQueue")) +func (c_ CommandBufferObject) HasSetLabel() bool { + return c_.RespondsToSelector(objc.Sel("setLabel:")) } -// The command queue that creates 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/1443015-commandqueue?language=objc -func (c_ CommandBufferWrapper) CommandQueue() CommandQueueWrapper { - rv := objc.Call[CommandQueueWrapper](c_, objc.Sel("commandQueue")) - 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_ CommandBufferWrapper) 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_ CommandBufferWrapper) 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_ CommandBufferWrapper) 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_ CommandBufferWrapper) 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 } -func (c_ CommandBufferWrapper) HasLogs() bool { - return c_.RespondsToSelector(objc.Sel("logs")) +func (c_ CommandBufferObject) HasErrorOptions() bool { + return c_.RespondsToSelector(objc.Sel("errorOptions")) } -// The messages the command buffer records as the GPU runs its commands. [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/3553939-logs?language=objc -func (c_ CommandBufferWrapper) Logs() LogContainerWrapper { - rv := objc.Call[LogContainerWrapper](c_, objc.Sel("logs")) +// [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_ CommandBufferWrapper) HasKernelStartTime() bool { - return c_.RespondsToSelector(objc.Sel("kernelStartTime")) +func (c_ CommandBufferObject) HasRetainedReferences() bool { + return c_.RespondsToSelector(objc.Sel("retainedReferences")) } -// The host time, in seconds, when the CPU begins to schedule the command buffer. [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/1639925-kernelstarttime?language=objc -func (c_ CommandBufferWrapper) KernelStartTime() corefoundation.TimeInterval { - rv := objc.Call[corefoundation.TimeInterval](c_, objc.Sel("kernelStartTime")) +// [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_ CommandBufferWrapper) HasDevice() bool { - return c_.RespondsToSelector(objc.Sel("device")) +func (c_ CommandBufferObject) HasGPUStartTime() bool { + return c_.RespondsToSelector(objc.Sel("GPUStartTime")) } -// The GPU device that indirectly owns the command buffer because you create it from a command queue the device also owns. [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/1442995-device?language=objc -func (c_ CommandBufferWrapper) Device() DeviceWrapper { - rv := objc.Call[DeviceWrapper](c_, objc.Sel("device")) +// [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_ CommandBufferWrapper) HasErrorOptions() bool { - return c_.RespondsToSelector(objc.Sel("errorOptions")) +func (c_ CommandBufferObject) HasDevice() bool { + return c_.RespondsToSelector(objc.Sel("device")) } -// Settings that determine which information the command buffer records about execution errors, and how it does it. [Full Topic] +// The GPU device that indirectly owns the command buffer because you create it from a command queue the device also owns. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metal/mtlcommandbuffer/3553938-erroroptions?language=objc -func (c_ CommandBufferWrapper) ErrorOptions() CommandBufferErrorOption { - rv := objc.Call[CommandBufferErrorOption](c_, objc.Sel("errorOptions")) +// [Full Topic]: https://developer.apple.com/documentation/metal/mtlcommandbuffer/1442995-device?language=objc +func (c_ CommandBufferObject) Device() DeviceObject { + rv := objc.Call[DeviceObject](c_, objc.Sel("device")) return rv } -func (c_ CommandBufferWrapper) HasKernelEndTime() bool { +func (c_ CommandBufferObject) HasKernelEndTime() bool { return c_.RespondsToSelector(objc.Sel("kernelEndTime")) } // The host time, in seconds, when the CPU finishes scheduling the command buffer. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/metal/mtlcommandbuffer/1640027-kernelendtime?language=objc -func (c_ CommandBufferWrapper) KernelEndTime() corefoundation.TimeInterval { +func (c_ CommandBufferObject) KernelEndTime() corefoundation.TimeInterval { rv := objc.Call[corefoundation.TimeInterval](c_, objc.Sel("kernelEndTime")) return rv } -func (c_ CommandBufferWrapper) HasSetLabel() bool { - return c_.RespondsToSelector(objc.Sel("setLabel:")) +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_ CommandBufferWrapper) SetLabel(value string) { - objc.Call[objc.Void](c_, objc.Sel("setLabel:"), value) +// [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_ CommandBufferWrapper) HasLabel() bool { - return c_.RespondsToSelector(objc.Sel("label")) +func (c_ CommandBufferObject) HasKernelStartTime() bool { + return c_.RespondsToSelector(objc.Sel("kernelStartTime")) } -// An optional name that can help you identify the command buffer. [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/1443031-label?language=objc -func (c_ CommandBufferWrapper) Label() string { - rv := objc.Call[string](c_, objc.Sel("label")) +// [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 } -func (c_ CommandBufferWrapper) 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_ CommandBufferWrapper) 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) HasGPUEndTime() bool { + return c_.RespondsToSelector(objc.Sel("GPUEndTime")) +} + +// 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/1639926-gpuendtime?language=objc +func (c_ CommandBufferObject) GPUEndTime() corefoundation.TimeInterval { + rv := objc.Call[corefoundation.TimeInterval](c_, objc.Sel("GPUEndTime")) return rv } diff --git a/macos/metal/command_encoder.gen.go b/macos/metal/command_encoder_protocol.gen.go similarity index 72% rename from macos/metal/command_encoder.gen.go rename to macos/metal/command_encoder_protocol.gen.go index 91511f4f..ed27c6fb 100644 --- a/macos/metal/command_encoder.gen.go +++ b/macos/metal/command_encoder_protocol.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package metal @@ -10,6 +10,10 @@ 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 @@ -22,14 +26,6 @@ type PCommandEncoder interface { InsertDebugSignpost(string_ string) HasInsertDebugSignpost() bool - // optional - EndEncoding() - HasEndEncoding() bool - - // optional - Device() PDevice - HasDevice() bool - // optional SetLabel(value string) HasSetLabel() bool @@ -37,88 +33,95 @@ type PCommandEncoder interface { // optional Label() string HasLabel() bool + + // optional + Device() DeviceObject + HasDevice() bool } -// A concrete type wrapper for the [PCommandEncoder] protocol. -type CommandEncoderWrapper struct { +// ensure impl type implements protocol interface +var _ PCommandEncoder = (*CommandEncoderObject)(nil) + +// A concrete type for the [PCommandEncoder] protocol. +type CommandEncoderObject struct { objc.Object } -func (c_ CommandEncoderWrapper) HasPushDebugGroup() bool { +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:")) } // Pushes a specific string onto a stack of debug group strings for the command encoder. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/metal/mtlcommandencoder/1458041-pushdebuggroup?language=objc -func (c_ CommandEncoderWrapper) PushDebugGroup(string_ string) { +func (c_ CommandEncoderObject) PushDebugGroup(string_ string) { objc.Call[objc.Void](c_, objc.Sel("pushDebugGroup:"), string_) } -func (c_ CommandEncoderWrapper) HasPopDebugGroup() bool { +func (c_ CommandEncoderObject) HasPopDebugGroup() bool { return c_.RespondsToSelector(objc.Sel("popDebugGroup")) } // Pops the latest string off of a stack of debug group strings for the command encoder. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/metal/mtlcommandencoder/1458040-popdebuggroup?language=objc -func (c_ CommandEncoderWrapper) PopDebugGroup() { +func (c_ CommandEncoderObject) PopDebugGroup() { objc.Call[objc.Void](c_, objc.Sel("popDebugGroup")) } -func (c_ CommandEncoderWrapper) HasInsertDebugSignpost() bool { +func (c_ CommandEncoderObject) HasInsertDebugSignpost() bool { return c_.RespondsToSelector(objc.Sel("insertDebugSignpost:")) } // Inserts a debug string into the captured frame data. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/metal/mtlcommandencoder/1458034-insertdebugsignpost?language=objc -func (c_ CommandEncoderWrapper) InsertDebugSignpost(string_ string) { +func (c_ CommandEncoderObject) InsertDebugSignpost(string_ string) { objc.Call[objc.Void](c_, objc.Sel("insertDebugSignpost:"), string_) } -func (c_ CommandEncoderWrapper) 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_ CommandEncoderWrapper) EndEncoding() { - objc.Call[objc.Void](c_, objc.Sel("endEncoding")) -} - -func (c_ CommandEncoderWrapper) 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_ CommandEncoderWrapper) Device() DeviceWrapper { - rv := objc.Call[DeviceWrapper](c_, objc.Sel("device")) - return rv -} - -func (c_ CommandEncoderWrapper) HasSetLabel() bool { +func (c_ CommandEncoderObject) HasSetLabel() bool { return c_.RespondsToSelector(objc.Sel("setLabel:")) } // A string that labels the command encoder. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/metal/mtlcommandencoder/1458036-label?language=objc -func (c_ CommandEncoderWrapper) SetLabel(value string) { +func (c_ CommandEncoderObject) SetLabel(value string) { objc.Call[objc.Void](c_, objc.Sel("setLabel:"), value) } -func (c_ CommandEncoderWrapper) HasLabel() bool { +func (c_ CommandEncoderObject) HasLabel() bool { return c_.RespondsToSelector(objc.Sel("label")) } // A string that labels the command encoder. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/metal/mtlcommandencoder/1458036-label?language=objc -func (c_ CommandEncoderWrapper) Label() string { +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.gen.go b/macos/metal/command_queue_protocol.gen.go similarity index 63% rename from macos/metal/command_queue.gen.go rename to macos/metal/command_queue_protocol.gen.go index e9e2e60c..05e20729 100644 --- a/macos/metal/command_queue.gen.go +++ b/macos/metal/command_queue_protocol.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package metal @@ -11,20 +11,16 @@ import ( // [Full Topic]: https://developer.apple.com/documentation/metal/mtlcommandqueue?language=objc type PCommandQueue interface { // optional - CommandBuffer() PCommandBuffer + CommandBuffer() CommandBufferObject HasCommandBuffer() bool // optional - CommandBufferWithDescriptor(descriptor CommandBufferDescriptor) PCommandBuffer - HasCommandBufferWithDescriptor() bool - - // optional - CommandBufferWithUnretainedReferences() PCommandBuffer + CommandBufferWithUnretainedReferences() CommandBufferObject HasCommandBufferWithUnretainedReferences() bool // optional - Device() PDevice - HasDevice() bool + CommandBufferWithDescriptor(descriptor CommandBufferDescriptor) CommandBufferObject + HasCommandBufferWithDescriptor() bool // optional SetLabel(value string) @@ -33,80 +29,87 @@ type PCommandQueue interface { // optional Label() string HasLabel() bool + + // optional + Device() DeviceObject + HasDevice() bool } -// A concrete type wrapper for the [PCommandQueue] protocol. -type CommandQueueWrapper struct { +// ensure impl type implements protocol interface +var _ PCommandQueue = (*CommandQueueObject)(nil) + +// A concrete type for the [PCommandQueue] protocol. +type CommandQueueObject struct { objc.Object } -func (c_ CommandQueueWrapper) HasCommandBuffer() bool { +func (c_ CommandQueueObject) HasCommandBuffer() bool { return c_.RespondsToSelector(objc.Sel("commandBuffer")) } // Returns a command buffer from the command queue that maintains strong references to resources. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/metal/mtlcommandqueue/1508686-commandbuffer?language=objc -func (c_ CommandQueueWrapper) CommandBuffer() CommandBufferWrapper { - rv := objc.Call[CommandBufferWrapper](c_, objc.Sel("commandBuffer")) +func (c_ CommandQueueObject) CommandBuffer() CommandBufferObject { + rv := objc.Call[CommandBufferObject](c_, objc.Sel("commandBuffer")) return rv } -func (c_ CommandQueueWrapper) 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_ CommandQueueWrapper) CommandBufferWithDescriptor(descriptor ICommandBufferDescriptor) CommandBufferWrapper { - rv := objc.Call[CommandBufferWrapper](c_, objc.Sel("commandBufferWithDescriptor:"), objc.Ptr(descriptor)) - return rv -} - -func (c_ CommandQueueWrapper) HasCommandBufferWithUnretainedReferences() bool { +func (c_ CommandQueueObject) HasCommandBufferWithUnretainedReferences() bool { return c_.RespondsToSelector(objc.Sel("commandBufferWithUnretainedReferences")) } // Returns a command buffer from the command queue that doesn’t maintain strong references to resources. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/metal/mtlcommandqueue/1508684-commandbufferwithunretainedrefer?language=objc -func (c_ CommandQueueWrapper) CommandBufferWithUnretainedReferences() CommandBufferWrapper { - rv := objc.Call[CommandBufferWrapper](c_, objc.Sel("commandBufferWithUnretainedReferences")) +func (c_ CommandQueueObject) CommandBufferWithUnretainedReferences() CommandBufferObject { + rv := objc.Call[CommandBufferObject](c_, objc.Sel("commandBufferWithUnretainedReferences")) return rv } -func (c_ CommandQueueWrapper) HasDevice() bool { - return c_.RespondsToSelector(objc.Sel("device")) +func (c_ CommandQueueObject) HasCommandBufferWithDescriptor() bool { + return c_.RespondsToSelector(objc.Sel("commandBufferWithDescriptor:")) } -// The GPU device that creates the command queue. [Full Topic] +// 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/1508687-device?language=objc -func (c_ CommandQueueWrapper) Device() DeviceWrapper { - rv := objc.Call[DeviceWrapper](c_, objc.Sel("device")) +// [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:"), objc.Ptr(descriptor)) return rv } -func (c_ CommandQueueWrapper) HasSetLabel() bool { +func (c_ CommandQueueObject) HasSetLabel() bool { return c_.RespondsToSelector(objc.Sel("setLabel:")) } // An optional name that can help you identify the command queue. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/metal/mtlcommandqueue/1508690-label?language=objc -func (c_ CommandQueueWrapper) SetLabel(value string) { +func (c_ CommandQueueObject) SetLabel(value string) { objc.Call[objc.Void](c_, objc.Sel("setLabel:"), value) } -func (c_ CommandQueueWrapper) HasLabel() bool { +func (c_ CommandQueueObject) HasLabel() bool { return c_.RespondsToSelector(objc.Sel("label")) } // An optional name that can help you identify the command queue. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/metal/mtlcommandqueue/1508690-label?language=objc -func (c_ CommandQueueWrapper) Label() string { +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 cfc9ef30..f2a52df7 100644 --- a/macos/metal/compile_options.gen.go +++ b/macos/metal/compile_options.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package metal @@ -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) - Libraries() []DynamicLibraryWrapper - SetLibraries(value []PDynamicLibrary) + LibraryType() LibraryType + SetLibraryType(value LibraryType) } // Compilation settings for a Metal shader library. [Full Topic] @@ -52,10 +52,6 @@ func (cc _CompileOptionsClass) Alloc() CompileOptions { return rv } -func CompileOptions_Alloc() CompileOptions { - return CompileOptionsClass.Alloc() -} - func (cc _CompileOptionsClass) New() CompileOptions { rv := objc.Call[CompileOptions](cc, objc.Sel("new")) rv.Autorelease() @@ -71,36 +67,6 @@ 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 @@ -116,6 +82,21 @@ 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 @@ -146,6 +127,21 @@ 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 @@ -161,17 +157,17 @@ func (c_ CompileOptions) SetLanguageVersion(value LanguageVersion) { objc.Call[objc.Void](c_, objc.Sel("setLanguageVersion:"), value) } -// An array of dynamic libraries the Metal compiler links against. [Full Topic] +// The kind of library to create. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metal/mtlcompileoptions/3554035-libraries?language=objc -func (c_ CompileOptions) Libraries() []DynamicLibraryWrapper { - rv := objc.Call[[]DynamicLibraryWrapper](c_, objc.Sel("libraries")) +// [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 } -// An array of dynamic libraries the Metal compiler links against. [Full Topic] +// The kind of library to create. [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) +// [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) } diff --git a/macos/metal/compute_command_encoder.gen.go b/macos/metal/compute_command_encoder_protocol.gen.go similarity index 61% rename from macos/metal/compute_command_encoder.gen.go rename to macos/metal/compute_command_encoder_protocol.gen.go index bddc8a75..2ddf4f3d 100644 --- a/macos/metal/compute_command_encoder.gen.go +++ b/macos/metal/compute_command_encoder_protocol.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package metal @@ -14,511 +14,563 @@ import ( // [Full Topic]: https://developer.apple.com/documentation/metal/mtlcomputecommandencoder?language=objc type PComputeCommandEncoder interface { // optional - SetThreadgroupMemoryLengthAtIndex(length uint, index uint) - HasSetThreadgroupMemoryLengthAtIndex() bool - - // optional - SetSamplerStateAtIndex(sampler SamplerStateWrapper, index uint) - HasSetSamplerStateAtIndex() bool + MemoryBarrierWithScope(scope BarrierScope) + HasMemoryBarrierWithScope() bool // optional - SetComputePipelineState(state ComputePipelineStateWrapper) - HasSetComputePipelineState() bool + UseHeapsCount(heaps HeapObject, count uint) + HasUseHeapsCount() bool // optional - SetStageInRegionWithIndirectBufferIndirectBufferOffset(indirectBuffer BufferWrapper, indirectBufferOffset uint) - HasSetStageInRegionWithIndirectBufferIndirectBufferOffset() bool + UseHeap(heap HeapObject) + HasUseHeap() bool // optional - SetBuffersOffsetsWithRange(buffers BufferWrapper, offsets *uint, range_ foundation.Range) - HasSetBuffersOffsetsWithRange() bool + SetBufferOffsetAtIndex_(buffer BufferObject, offset uint, index uint) + HasSetBufferOffsetAtIndex_() bool // optional - UseResourceUsage(resource ResourceWrapper, usage ResourceUsage) - HasUseResourceUsage() bool + SetBytesLengthAtIndex(bytes unsafe.Pointer, length uint, index uint) + HasSetBytesLengthAtIndex() bool // optional - SetVisibleFunctionTableAtBufferIndex(visibleFunctionTable VisibleFunctionTableWrapper, bufferIndex uint) - HasSetVisibleFunctionTableAtBufferIndex() bool + SetIntersectionFunctionTableAtBufferIndex(intersectionFunctionTable IntersectionFunctionTableObject, bufferIndex uint) + HasSetIntersectionFunctionTableAtBufferIndex() bool // optional - SetBytesLengthAtIndex(bytes unsafe.Pointer, length uint, index uint) - HasSetBytesLengthAtIndex() bool + SetIntersectionFunctionTablesWithBufferRange(intersectionFunctionTables IntersectionFunctionTableObject, range_ foundation.Range) + HasSetIntersectionFunctionTablesWithBufferRange() bool // optional - SetSamplerStatesWithRange(samplers SamplerStateWrapper, range_ foundation.Range) - HasSetSamplerStatesWithRange() bool + SetTexturesWithRange(textures TextureObject, range_ foundation.Range) + HasSetTexturesWithRange() bool // optional - MemoryBarrierWithResourcesCount(resources ResourceWrapper, count uint) + MemoryBarrierWithResourcesCount(resources ResourceObject, count uint) HasMemoryBarrierWithResourcesCount() bool // optional - SampleCountersInBufferAtSampleIndexWithBarrier(sampleBuffer CounterSampleBufferWrapper, sampleIndex uint, barrier bool) - HasSampleCountersInBufferAtSampleIndexWithBarrier() bool + DispatchThreadgroupsWithIndirectBufferIndirectBufferOffsetThreadsPerThreadgroup(indirectBuffer BufferObject, indirectBufferOffset uint, threadsPerThreadgroup Size) + HasDispatchThreadgroupsWithIndirectBufferIndirectBufferOffsetThreadsPerThreadgroup() bool // optional - SetAccelerationStructureAtBufferIndex(accelerationStructure AccelerationStructureWrapper, bufferIndex uint) + SetAccelerationStructureAtBufferIndex(accelerationStructure AccelerationStructureObject, bufferIndex uint) HasSetAccelerationStructureAtBufferIndex() bool + // optional + SetSamplerStatesWithRange(samplers SamplerStateObject, range_ foundation.Range) + HasSetSamplerStatesWithRange() bool + // optional SetStageInRegion(region Region) HasSetStageInRegion() bool // optional - SetBufferOffsetAtIndex(offset uint, index uint) - HasSetBufferOffsetAtIndex() bool + SetVisibleFunctionTablesWithBufferRange(visibleFunctionTables VisibleFunctionTableObject, range_ foundation.Range) + HasSetVisibleFunctionTablesWithBufferRange() bool // optional - DispatchThreadgroupsThreadsPerThreadgroup(threadgroupsPerGrid Size, threadsPerThreadgroup Size) - HasDispatchThreadgroupsThreadsPerThreadgroup() bool + WaitForFence(fence FenceObject) + HasWaitForFence() bool // optional - ExecuteCommandsInBufferWithRange(indirectCommandBuffer IndirectCommandBufferWrapper, executionRange foundation.Range) + ExecuteCommandsInBufferWithRange(indirectCommandBuffer IndirectCommandBufferObject, executionRange foundation.Range) HasExecuteCommandsInBufferWithRange() bool // optional - SetVisibleFunctionTablesWithBufferRange(visibleFunctionTables VisibleFunctionTableWrapper, range_ foundation.Range) - HasSetVisibleFunctionTablesWithBufferRange() bool + DispatchThreadsThreadsPerThreadgroup(threadsPerGrid Size, threadsPerThreadgroup Size) + HasDispatchThreadsThreadsPerThreadgroup() bool // optional - SetTexturesWithRange(textures TextureWrapper, range_ foundation.Range) - HasSetTexturesWithRange() bool + SetStageInRegionWithIndirectBufferIndirectBufferOffset(indirectBuffer BufferObject, indirectBufferOffset uint) + HasSetStageInRegionWithIndirectBufferIndirectBufferOffset() bool // optional - MemoryBarrierWithScope(scope BarrierScope) - HasMemoryBarrierWithScope() bool + DispatchThreadgroupsThreadsPerThreadgroup(threadgroupsPerGrid Size, threadsPerThreadgroup Size) + HasDispatchThreadgroupsThreadsPerThreadgroup() bool // optional - DispatchThreadsThreadsPerThreadgroup(threadsPerGrid Size, threadsPerThreadgroup Size) - HasDispatchThreadsThreadsPerThreadgroup() bool + SetSamplerStatesLodMinClampsLodMaxClampsWithRange(samplers SamplerStateObject, lodMinClamps *float64, lodMaxClamps *float64, range_ foundation.Range) + HasSetSamplerStatesLodMinClampsLodMaxClampsWithRange() bool // optional - SetIntersectionFunctionTableAtBufferIndex(intersectionFunctionTable IntersectionFunctionTableWrapper, bufferIndex uint) - HasSetIntersectionFunctionTableAtBufferIndex() bool + SetSamplerStateAtIndex(sampler SamplerStateObject, index uint) + HasSetSamplerStateAtIndex() bool // optional - SetTextureAtIndex(texture TextureWrapper, index uint) + UseResourceUsage(resource ResourceObject, usage ResourceUsage) + HasUseResourceUsage() bool + + // optional + SetSamplerStateLodMinClampLodMaxClampAtIndex(sampler SamplerStateObject, lodMinClamp float64, lodMaxClamp float64, index uint) + HasSetSamplerStateLodMinClampLodMaxClampAtIndex() bool + + // optional + SetTextureAtIndex(texture TextureObject, index uint) HasSetTextureAtIndex() bool // optional - SetIntersectionFunctionTablesWithBufferRange(intersectionFunctionTables IntersectionFunctionTableWrapper, range_ foundation.Range) - HasSetIntersectionFunctionTablesWithBufferRange() bool + SetBufferOffsetAtIndex(offset uint, index uint) + HasSetBufferOffsetAtIndex() bool // optional - DispatchThreadgroupsWithIndirectBufferIndirectBufferOffsetThreadsPerThreadgroup(indirectBuffer BufferWrapper, indirectBufferOffset uint, threadsPerThreadgroup Size) - HasDispatchThreadgroupsWithIndirectBufferIndirectBufferOffsetThreadsPerThreadgroup() bool + ExecuteCommandsInBufferIndirectBufferIndirectBufferOffset(indirectCommandbuffer IndirectCommandBufferObject, indirectRangeBuffer BufferObject, indirectBufferOffset uint) + HasExecuteCommandsInBufferIndirectBufferIndirectBufferOffset() bool // optional - UseHeap(heap HeapWrapper) - HasUseHeap() bool + SetVisibleFunctionTableAtBufferIndex(visibleFunctionTable VisibleFunctionTableObject, bufferIndex uint) + HasSetVisibleFunctionTableAtBufferIndex() bool // optional - SetBufferOffsetAtIndex_(buffer BufferWrapper, offset uint, index uint) - HasSetBufferOffsetAtIndex_() bool + SetBuffersOffsetsWithRange(buffers BufferObject, offsets *uint, range_ foundation.Range) + HasSetBuffersOffsetsWithRange() bool // optional - UseResourcesCountUsage(resources ResourceWrapper, count uint, usage ResourceUsage) - HasUseResourcesCountUsage() bool + SetImageblockWidthHeight(width uint, height uint) + HasSetImageblockWidthHeight() bool // optional - UseHeapsCount(heaps HeapWrapper, count uint) - HasUseHeapsCount() bool + SetComputePipelineState(state ComputePipelineStateObject) + HasSetComputePipelineState() bool + + // optional + UseResourcesCountUsage(resources ResourceObject, count uint, usage ResourceUsage) + HasUseResourcesCountUsage() bool // optional - UpdateFence(fence FenceWrapper) + UpdateFence(fence FenceObject) HasUpdateFence() bool // optional - SetImageblockWidthHeight(width uint, height uint) - HasSetImageblockWidthHeight() bool + SampleCountersInBufferAtSampleIndexWithBarrier(sampleBuffer CounterSampleBufferObject, sampleIndex uint, barrier bool) + HasSampleCountersInBufferAtSampleIndexWithBarrier() bool // optional - WaitForFence(fence FenceWrapper) - HasWaitForFence() bool + SetThreadgroupMemoryLengthAtIndex(length uint, index uint) + HasSetThreadgroupMemoryLengthAtIndex() bool // optional DispatchType() DispatchType HasDispatchType() bool } -// A concrete type wrapper for the [PComputeCommandEncoder] protocol. -type ComputeCommandEncoderWrapper struct { - objc.Object -} +// ensure impl type implements protocol interface +var _ PComputeCommandEncoder = (*ComputeCommandEncoderObject)(nil) -func (c_ ComputeCommandEncoderWrapper) HasSetThreadgroupMemoryLengthAtIndex() bool { - return c_.RespondsToSelector(objc.Sel("setThreadgroupMemoryLength:atIndex:")) -} - -// Sets the size of a block of threadgroup memory. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/metal/mtlcomputecommandencoder/1443142-setthreadgroupmemorylength?language=objc -func (c_ ComputeCommandEncoderWrapper) SetThreadgroupMemoryLengthAtIndex(length uint, index uint) { - objc.Call[objc.Void](c_, objc.Sel("setThreadgroupMemoryLength:atIndex:"), length, index) +// A concrete type for the [PComputeCommandEncoder] protocol. +type ComputeCommandEncoderObject struct { + objc.Object } -func (c_ ComputeCommandEncoderWrapper) 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_ ComputeCommandEncoderWrapper) SetSamplerStateAtIndex(sampler PSamplerState, 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_ ComputeCommandEncoderWrapper) HasSetComputePipelineState() bool { - return c_.RespondsToSelector(objc.Sel("setComputePipelineState:")) +func (c_ ComputeCommandEncoderObject) HasUseHeapsCount() bool { + return c_.RespondsToSelector(objc.Sel("useHeaps:count:")) } -// Sets the current compute pipeline state object. [Full Topic] +// 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/1443140-setcomputepipelinestate?language=objc -func (c_ ComputeCommandEncoderWrapper) SetComputePipelineState(state PComputePipelineState) { - po0 := objc.WrapAsProtocol("MTLComputePipelineState", state) - objc.Call[objc.Void](c_, objc.Sel("setComputePipelineState:"), po0) +// [Full Topic]: https://developer.apple.com/documentation/metal/mtlcomputecommandencoder/2866538-useheaps?language=objc +func (c_ ComputeCommandEncoderObject) UseHeapsCount(heaps HeapObject, count uint) { + po0 := objc.WrapAsProtocol("MTLHeap", heaps) + objc.Call[objc.Void](c_, objc.Sel("useHeaps:count:"), po0, count) } -func (c_ ComputeCommandEncoderWrapper) HasSetStageInRegionWithIndirectBufferIndirectBufferOffset() bool { - return c_.RespondsToSelector(objc.Sel("setStageInRegionWithIndirectBuffer:indirectBufferOffset:")) +func (c_ ComputeCommandEncoderObject) HasUseHeap() bool { + return c_.RespondsToSelector(objc.Sel("useHeap:")) } -// Sets the region of the stage-in attributes to apply to the compute kernel using an indirect buffer. [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/2966554-setstageinregionwithindirectbuff?language=objc -func (c_ ComputeCommandEncoderWrapper) SetStageInRegionWithIndirectBufferIndirectBufferOffset(indirectBuffer PBuffer, indirectBufferOffset uint) { - po0 := objc.WrapAsProtocol("MTLBuffer", indirectBuffer) - objc.Call[objc.Void](c_, objc.Sel("setStageInRegionWithIndirectBuffer:indirectBufferOffset:"), po0, indirectBufferOffset) +// [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_ ComputeCommandEncoderWrapper) HasSetBuffersOffsetsWithRange() bool { - return c_.RespondsToSelector(objc.Sel("setBuffers:offsets:withRange:")) +func (c_ ComputeCommandEncoderObject) HasSetBufferOffsetAtIndex_() bool { + return c_.RespondsToSelector(objc.Sel("setBuffer:offset:atIndex:")) } -// Sets an array of buffers for the compute function. [Full Topic] +// Sets a buffer for the compute function. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metal/mtlcomputecommandencoder/1443134-setbuffers?language=objc -func (c_ ComputeCommandEncoderWrapper) SetBuffersOffsetsWithRange(buffers PBuffer, 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/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_ ComputeCommandEncoderWrapper) HasUseResourceUsage() bool { - return c_.RespondsToSelector(objc.Sel("useResource:usage:")) +func (c_ ComputeCommandEncoderObject) HasSetBytesLengthAtIndex() bool { + return c_.RespondsToSelector(objc.Sel("setBytes:length:atIndex:")) } -// Specifies that a resource in an argument buffer can be safely used by a compute pass. [Full Topic] +// Sets a block of data for the compute shader. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metal/mtlcomputecommandencoder/2866548-useresource?language=objc -func (c_ ComputeCommandEncoderWrapper) UseResourceUsage(resource PResource, 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/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_ ComputeCommandEncoderWrapper) HasSetVisibleFunctionTableAtBufferIndex() bool { - return c_.RespondsToSelector(objc.Sel("setVisibleFunctionTable:atBufferIndex:")) +func (c_ ComputeCommandEncoderObject) HasSetIntersectionFunctionTableAtBufferIndex() bool { + return c_.RespondsToSelector(objc.Sel("setIntersectionFunctionTable:atBufferIndex:")) } -// Sets a visible function table for the compute function. [Full Topic] +// Sets a intersection function table for the compute function. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metal/mtlcomputecommandencoder/3566539-setvisiblefunctiontable?language=objc -func (c_ ComputeCommandEncoderWrapper) SetVisibleFunctionTableAtBufferIndex(visibleFunctionTable PVisibleFunctionTable, 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/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_ ComputeCommandEncoderWrapper) HasSetBytesLengthAtIndex() bool { - return c_.RespondsToSelector(objc.Sel("setBytes:length:atIndex:")) +func (c_ ComputeCommandEncoderObject) HasSetIntersectionFunctionTablesWithBufferRange() bool { + return c_.RespondsToSelector(objc.Sel("setIntersectionFunctionTables:withBufferRange:")) } -// Sets a block of data for the compute shader. [Full Topic] +// Sets an array of intersection function tables for the compute function. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metal/mtlcomputecommandencoder/1443159-setbytes?language=objc -func (c_ ComputeCommandEncoderWrapper) 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/3566538-setintersectionfunctiontables?language=objc +func (c_ ComputeCommandEncoderObject) SetIntersectionFunctionTablesWithBufferRange(intersectionFunctionTables IntersectionFunctionTableObject, range_ foundation.Range) { + po0 := objc.WrapAsProtocol("MTLIntersectionFunctionTable", intersectionFunctionTables) + objc.Call[objc.Void](c_, objc.Sel("setIntersectionFunctionTables:withBufferRange:"), po0, range_) } -func (c_ ComputeCommandEncoderWrapper) HasSetSamplerStatesWithRange() bool { - return c_.RespondsToSelector(objc.Sel("setSamplerStates:withRange:")) +func (c_ ComputeCommandEncoderObject) HasSetTexturesWithRange() bool { + return c_.RespondsToSelector(objc.Sel("setTextures:withRange:")) } -// Sets multiple samplers for the compute function. [Full Topic] +// Sets an array of textures for the compute function. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metal/mtlcomputecommandencoder/1443155-setsamplerstates?language=objc -func (c_ ComputeCommandEncoderWrapper) SetSamplerStatesWithRange(samplers PSamplerState, range_ foundation.Range) { - po0 := objc.WrapAsProtocol("MTLSamplerState", samplers) - objc.Call[objc.Void](c_, objc.Sel("setSamplerStates:withRange:"), po0, range_) +// [Full Topic]: https://developer.apple.com/documentation/metal/mtlcomputecommandencoder/1443148-settextures?language=objc +func (c_ ComputeCommandEncoderObject) SetTexturesWithRange(textures TextureObject, range_ foundation.Range) { + po0 := objc.WrapAsProtocol("MTLTexture", textures) + objc.Call[objc.Void](c_, objc.Sel("setTextures:withRange:"), po0, range_) } -func (c_ ComputeCommandEncoderWrapper) HasMemoryBarrierWithResourcesCount() bool { +func (c_ ComputeCommandEncoderObject) HasMemoryBarrierWithResourcesCount() bool { return c_.RespondsToSelector(objc.Sel("memoryBarrierWithResources:count:")) } // Encodes a barrier so that changes to a set of resources 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/2966552-memorybarrierwithresources?language=objc -func (c_ ComputeCommandEncoderWrapper) MemoryBarrierWithResourcesCount(resources PResource, count uint) { +func (c_ ComputeCommandEncoderObject) MemoryBarrierWithResourcesCount(resources ResourceObject, count uint) { po0 := objc.WrapAsProtocol("MTLResource", resources) objc.Call[objc.Void](c_, objc.Sel("memoryBarrierWithResources:count:"), po0, count) } -func (c_ ComputeCommandEncoderWrapper) HasSampleCountersInBufferAtSampleIndexWithBarrier() bool { - return c_.RespondsToSelector(objc.Sel("sampleCountersInBuffer:atSampleIndex:withBarrier:")) +func (c_ ComputeCommandEncoderObject) HasDispatchThreadgroupsWithIndirectBufferIndirectBufferOffsetThreadsPerThreadgroup() bool { + return c_.RespondsToSelector(objc.Sel("dispatchThreadgroupsWithIndirectBuffer:indirectBufferOffset:threadsPerThreadgroup:")) } -// 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] +// 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/3194349-samplecountersinbuffer?language=objc -func (c_ ComputeCommandEncoderWrapper) SampleCountersInBufferAtSampleIndexWithBarrier(sampleBuffer PCounterSampleBuffer, 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/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_ ComputeCommandEncoderWrapper) HasSetAccelerationStructureAtBufferIndex() bool { +func (c_ ComputeCommandEncoderObject) HasSetAccelerationStructureAtBufferIndex() bool { return c_.RespondsToSelector(objc.Sel("setAccelerationStructure:atBufferIndex:")) } // Sets an acceleration structure for the compute function. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/metal/mtlcomputecommandencoder/3553958-setaccelerationstructure?language=objc -func (c_ ComputeCommandEncoderWrapper) SetAccelerationStructureAtBufferIndex(accelerationStructure PAccelerationStructure, bufferIndex uint) { +func (c_ ComputeCommandEncoderObject) SetAccelerationStructureAtBufferIndex(accelerationStructure AccelerationStructureObject, bufferIndex uint) { po0 := objc.WrapAsProtocol("MTLAccelerationStructure", accelerationStructure) objc.Call[objc.Void](c_, objc.Sel("setAccelerationStructure:atBufferIndex:"), po0, bufferIndex) } -func (c_ ComputeCommandEncoderWrapper) HasSetStageInRegion() bool { +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 SamplerStateObject, 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:")) } // Sets the region of the stage-in attributes to apply to the compute kernel. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/metal/mtlcomputecommandencoder/2097047-setstageinregion?language=objc -func (c_ ComputeCommandEncoderWrapper) SetStageInRegion(region Region) { +func (c_ ComputeCommandEncoderObject) SetStageInRegion(region Region) { objc.Call[objc.Void](c_, objc.Sel("setStageInRegion:"), region) } -func (c_ ComputeCommandEncoderWrapper) HasSetBufferOffsetAtIndex() bool { - return c_.RespondsToSelector(objc.Sel("setBufferOffset:atIndex:")) +func (c_ ComputeCommandEncoderObject) HasSetVisibleFunctionTablesWithBufferRange() bool { + return c_.RespondsToSelector(objc.Sel("setVisibleFunctionTables:withBufferRange:")) } -// Sets where the data begins in a buffer already bound to the compute shader. [Full Topic] +// Sets an array of visible function tables for the compute function. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metal/mtlcomputecommandencoder/1443146-setbufferoffset?language=objc -func (c_ ComputeCommandEncoderWrapper) SetBufferOffsetAtIndex(offset uint, index uint) { - objc.Call[objc.Void](c_, objc.Sel("setBufferOffset:atIndex:"), offset, index) +// [Full Topic]: https://developer.apple.com/documentation/metal/mtlcomputecommandencoder/3566540-setvisiblefunctiontables?language=objc +func (c_ ComputeCommandEncoderObject) SetVisibleFunctionTablesWithBufferRange(visibleFunctionTables VisibleFunctionTableObject, range_ foundation.Range) { + po0 := objc.WrapAsProtocol("MTLVisibleFunctionTable", visibleFunctionTables) + objc.Call[objc.Void](c_, objc.Sel("setVisibleFunctionTables:withBufferRange:"), po0, range_) } -func (c_ ComputeCommandEncoderWrapper) HasDispatchThreadgroupsThreadsPerThreadgroup() bool { - return c_.RespondsToSelector(objc.Sel("dispatchThreadgroups:threadsPerThreadgroup:")) +func (c_ ComputeCommandEncoderObject) HasWaitForFence() bool { + return c_.RespondsToSelector(objc.Sel("waitForFence:")) } -// Encodes a compute command using a grid aligned to threadgroup boundaries. [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/1443138-dispatchthreadgroups?language=objc -func (c_ ComputeCommandEncoderWrapper) 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/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_ ComputeCommandEncoderWrapper) HasExecuteCommandsInBufferWithRange() bool { +func (c_ ComputeCommandEncoderObject) HasExecuteCommandsInBufferWithRange() bool { return c_.RespondsToSelector(objc.Sel("executeCommandsInBuffer:withRange:")) } // Encodes a command to execute commands in an indirect command buffer. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/metal/mtlcomputecommandencoder/2967419-executecommandsinbuffer?language=objc -func (c_ ComputeCommandEncoderWrapper) ExecuteCommandsInBufferWithRange(indirectCommandBuffer PIndirectCommandBuffer, executionRange foundation.Range) { +func (c_ ComputeCommandEncoderObject) ExecuteCommandsInBufferWithRange(indirectCommandBuffer IndirectCommandBufferObject, executionRange foundation.Range) { po0 := objc.WrapAsProtocol("MTLIndirectCommandBuffer", indirectCommandBuffer) objc.Call[objc.Void](c_, objc.Sel("executeCommandsInBuffer:withRange:"), po0, executionRange) } -func (c_ ComputeCommandEncoderWrapper) HasSetVisibleFunctionTablesWithBufferRange() bool { - return c_.RespondsToSelector(objc.Sel("setVisibleFunctionTables:withBufferRange:")) +func (c_ ComputeCommandEncoderObject) HasDispatchThreadsThreadsPerThreadgroup() bool { + return c_.RespondsToSelector(objc.Sel("dispatchThreads:threadsPerThreadgroup:")) } -// Sets an array of visible function tables 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/mtlcomputecommandencoder/3566540-setvisiblefunctiontables?language=objc -func (c_ ComputeCommandEncoderWrapper) SetVisibleFunctionTablesWithBufferRange(visibleFunctionTables PVisibleFunctionTable, 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/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_ ComputeCommandEncoderWrapper) HasSetTexturesWithRange() bool { - return c_.RespondsToSelector(objc.Sel("setTextures:withRange:")) +func (c_ ComputeCommandEncoderObject) HasSetStageInRegionWithIndirectBufferIndirectBufferOffset() bool { + return c_.RespondsToSelector(objc.Sel("setStageInRegionWithIndirectBuffer:indirectBufferOffset:")) } -// Sets an array of textures 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/1443148-settextures?language=objc -func (c_ ComputeCommandEncoderWrapper) SetTexturesWithRange(textures PTexture, 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/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_ ComputeCommandEncoderWrapper) HasMemoryBarrierWithScope() bool { - return c_.RespondsToSelector(objc.Sel("memoryBarrierWithScope:")) +func (c_ ComputeCommandEncoderObject) HasDispatchThreadgroupsThreadsPerThreadgroup() bool { + return c_.RespondsToSelector(objc.Sel("dispatchThreadgroups:threadsPerThreadgroup:")) } -// 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] +// Encodes a compute command using a grid aligned to threadgroup boundaries. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metal/mtlcomputecommandencoder/2966553-memorybarrierwithscope?language=objc -func (c_ ComputeCommandEncoderWrapper) MemoryBarrierWithScope(scope BarrierScope) { - objc.Call[objc.Void](c_, objc.Sel("memoryBarrierWithScope:"), scope) +// [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_ ComputeCommandEncoderWrapper) HasDispatchThreadsThreadsPerThreadgroup() bool { - return c_.RespondsToSelector(objc.Sel("dispatchThreads:threadsPerThreadgroup:")) +func (c_ ComputeCommandEncoderObject) HasSetSamplerStatesLodMinClampsLodMaxClampsWithRange() bool { + return c_.RespondsToSelector(objc.Sel("setSamplerStates:lodMinClamps:lodMaxClamps:withRange:")) } -// Encodes a compute command using an arbitrarily sized grid. [Full Topic] +// Sets multiple samplers for the compute function, specifying clamp values for the level of detail of each sampler. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metal/mtlcomputecommandencoder/2866532-dispatchthreads?language=objc -func (c_ ComputeCommandEncoderWrapper) DispatchThreadsThreadsPerThreadgroup(threadsPerGrid Size, threadsPerThreadgroup Size) { - objc.Call[objc.Void](c_, objc.Sel("dispatchThreads:threadsPerThreadgroup:"), threadsPerGrid, threadsPerThreadgroup) +// [Full Topic]: https://developer.apple.com/documentation/metal/mtlcomputecommandencoder/1443128-setsamplerstates?language=objc +func (c_ ComputeCommandEncoderObject) SetSamplerStatesLodMinClampsLodMaxClampsWithRange(samplers SamplerStateObject, lodMinClamps *float64, lodMaxClamps *float64, range_ foundation.Range) { + po0 := objc.WrapAsProtocol("MTLSamplerState", samplers) + objc.Call[objc.Void](c_, objc.Sel("setSamplerStates:lodMinClamps:lodMaxClamps:withRange:"), po0, lodMinClamps, lodMaxClamps, range_) } -func (c_ ComputeCommandEncoderWrapper) HasSetIntersectionFunctionTableAtBufferIndex() bool { - return c_.RespondsToSelector(objc.Sel("setIntersectionFunctionTable:atBufferIndex:")) +func (c_ ComputeCommandEncoderObject) HasSetSamplerStateAtIndex() bool { + return c_.RespondsToSelector(objc.Sel("setSamplerState:atIndex:")) } -// Sets a intersection function table for the compute function. [Full Topic] +// Sets a sampler for the compute function. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metal/mtlcomputecommandencoder/3566537-setintersectionfunctiontable?language=objc -func (c_ ComputeCommandEncoderWrapper) SetIntersectionFunctionTableAtBufferIndex(intersectionFunctionTable PIntersectionFunctionTable, 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/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) HasUseResourceUsage() bool { + return c_.RespondsToSelector(objc.Sel("useResource:usage:")) } -func (c_ ComputeCommandEncoderWrapper) HasSetTextureAtIndex() bool { +// 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/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) HasSetSamplerStateLodMinClampLodMaxClampAtIndex() bool { + return c_.RespondsToSelector(objc.Sel("setSamplerState:lodMinClamp:lodMaxClamp:atIndex:")) +} + +// Sets a sampler for the compute function, specifying clamp values for the level of detail. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/metal/mtlcomputecommandencoder/1443153-setsamplerstate?language=objc +func (c_ ComputeCommandEncoderObject) SetSamplerStateLodMinClampLodMaxClampAtIndex(sampler SamplerStateObject, lodMinClamp float64, lodMaxClamp float64, index uint) { + po0 := objc.WrapAsProtocol("MTLSamplerState", sampler) + objc.Call[objc.Void](c_, objc.Sel("setSamplerState:lodMinClamp:lodMaxClamp:atIndex:"), po0, lodMinClamp, lodMaxClamp, index) +} + +func (c_ ComputeCommandEncoderObject) HasSetTextureAtIndex() bool { return c_.RespondsToSelector(objc.Sel("setTexture:atIndex:")) } // Sets a texture for the compute function. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/metal/mtlcomputecommandencoder/1443130-settexture?language=objc -func (c_ ComputeCommandEncoderWrapper) SetTextureAtIndex(texture PTexture, index uint) { +func (c_ ComputeCommandEncoderObject) SetTextureAtIndex(texture TextureObject, index uint) { po0 := objc.WrapAsProtocol("MTLTexture", texture) objc.Call[objc.Void](c_, objc.Sel("setTexture:atIndex:"), po0, index) } -func (c_ ComputeCommandEncoderWrapper) HasSetIntersectionFunctionTablesWithBufferRange() bool { - return c_.RespondsToSelector(objc.Sel("setIntersectionFunctionTables:withBufferRange:")) +func (c_ ComputeCommandEncoderObject) HasSetBufferOffsetAtIndex() bool { + return c_.RespondsToSelector(objc.Sel("setBufferOffset:atIndex:")) } -// Sets an array of intersection 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/3566538-setintersectionfunctiontables?language=objc -func (c_ ComputeCommandEncoderWrapper) SetIntersectionFunctionTablesWithBufferRange(intersectionFunctionTables PIntersectionFunctionTable, 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/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_ ComputeCommandEncoderWrapper) HasDispatchThreadgroupsWithIndirectBufferIndirectBufferOffsetThreadsPerThreadgroup() bool { - return c_.RespondsToSelector(objc.Sel("dispatchThreadgroupsWithIndirectBuffer:indirectBufferOffset:threadsPerThreadgroup:")) +func (c_ ComputeCommandEncoderObject) HasExecuteCommandsInBufferIndirectBufferIndirectBufferOffset() bool { + return c_.RespondsToSelector(objc.Sel("executeCommandsInBuffer:indirectBuffer:indirectBufferOffset:")) } -// 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 execute commands in an indirect command buffer, specifying the range indirectly. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metal/mtlcomputecommandencoder/1443157-dispatchthreadgroupswithindirect?language=objc -func (c_ ComputeCommandEncoderWrapper) DispatchThreadgroupsWithIndirectBufferIndirectBufferOffsetThreadsPerThreadgroup(indirectBuffer PBuffer, 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/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_ ComputeCommandEncoderWrapper) HasUseHeap() bool { - return c_.RespondsToSelector(objc.Sel("useHeap:")) +func (c_ ComputeCommandEncoderObject) HasSetVisibleFunctionTableAtBufferIndex() bool { + return c_.RespondsToSelector(objc.Sel("setVisibleFunctionTable:atBufferIndex:")) } -// Specifies that a heap containing resources in an argument buffer can be safely used by a compute pass. [Full Topic] +// Sets a visible function table for the compute function. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metal/mtlcomputecommandencoder/2866530-useheap?language=objc -func (c_ ComputeCommandEncoderWrapper) UseHeap(heap PHeap) { - po0 := objc.WrapAsProtocol("MTLHeap", heap) - objc.Call[objc.Void](c_, objc.Sel("useHeap:"), po0) +// [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_ ComputeCommandEncoderWrapper) HasSetBufferOffsetAtIndex_() bool { - return c_.RespondsToSelector(objc.Sel("setBuffer:offset:atIndex:")) +func (c_ ComputeCommandEncoderObject) HasSetBuffersOffsetsWithRange() bool { + return c_.RespondsToSelector(objc.Sel("setBuffers:offsets:withRange:")) } -// Sets a buffer for the compute function. [Full Topic] +// Sets an array of buffers for the compute function. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metal/mtlcomputecommandencoder/1443126-setbuffer?language=objc -func (c_ ComputeCommandEncoderWrapper) SetBufferOffsetAtIndex_(buffer PBuffer, 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/1443134-setbuffers?language=objc +func (c_ ComputeCommandEncoderObject) SetBuffersOffsetsWithRange(buffers BufferObject, 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_ ComputeCommandEncoderWrapper) HasUseResourcesCountUsage() bool { - return c_.RespondsToSelector(objc.Sel("useResources:count:usage:")) +func (c_ ComputeCommandEncoderObject) HasSetImageblockWidthHeight() bool { + return c_.RespondsToSelector(objc.Sel("setImageblockWidth:height:")) } -// Specifies that an array of resources in an argument buffer can be safely used by a compute pass. [Full Topic] +// Sets the size, in pixels, of the imageblock. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metal/mtlcomputecommandencoder/2866561-useresources?language=objc -func (c_ ComputeCommandEncoderWrapper) UseResourcesCountUsage(resources PResource, count uint, usage ResourceUsage) { - po0 := objc.WrapAsProtocol("MTLResource", resources) - objc.Call[objc.Void](c_, objc.Sel("useResources:count:usage:"), po0, count, usage) +// [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_ ComputeCommandEncoderWrapper) HasUseHeapsCount() bool { - return c_.RespondsToSelector(objc.Sel("useHeaps:count:")) +func (c_ ComputeCommandEncoderObject) HasSetComputePipelineState() bool { + return c_.RespondsToSelector(objc.Sel("setComputePipelineState:")) } -// Specifies that an array of heaps 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/2866538-useheaps?language=objc -func (c_ ComputeCommandEncoderWrapper) UseHeapsCount(heaps PHeap, 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/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) HasUseResourcesCountUsage() bool { + return c_.RespondsToSelector(objc.Sel("useResources:count:usage:")) +} + +// Specifies that an array of resources in an argument buffer can be safely used by a compute pass. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/metal/mtlcomputecommandencoder/2866561-useresources?language=objc +func (c_ ComputeCommandEncoderObject) UseResourcesCountUsage(resources ResourceObject, count uint, usage ResourceUsage) { + po0 := objc.WrapAsProtocol("MTLResource", resources) + objc.Call[objc.Void](c_, objc.Sel("useResources:count:usage:"), po0, count, usage) } -func (c_ ComputeCommandEncoderWrapper) HasUpdateFence() bool { +func (c_ ComputeCommandEncoderObject) HasUpdateFence() bool { return c_.RespondsToSelector(objc.Sel("updateFence:")) } // Tells the GPU to update the fence after all commands encoded by the compute command encoder have finished executing. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/metal/mtlcomputecommandencoder/1649789-updatefence?language=objc -func (c_ ComputeCommandEncoderWrapper) UpdateFence(fence PFence) { +func (c_ ComputeCommandEncoderObject) UpdateFence(fence FenceObject) { po0 := objc.WrapAsProtocol("MTLFence", fence) objc.Call[objc.Void](c_, objc.Sel("updateFence:"), po0) } -func (c_ ComputeCommandEncoderWrapper) HasSetImageblockWidthHeight() bool { - return c_.RespondsToSelector(objc.Sel("setImageblockWidth:height:")) +func (c_ ComputeCommandEncoderObject) HasSampleCountersInBufferAtSampleIndexWithBarrier() bool { + return c_.RespondsToSelector(objc.Sel("sampleCountersInBuffer:atSampleIndex:withBarrier:")) } -// Sets the size, in pixels, of the imageblock. [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/2928282-setimageblockwidth?language=objc -func (c_ ComputeCommandEncoderWrapper) 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/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_ ComputeCommandEncoderWrapper) HasWaitForFence() bool { - return c_.RespondsToSelector(objc.Sel("waitForFence:")) +func (c_ ComputeCommandEncoderObject) HasSetThreadgroupMemoryLengthAtIndex() bool { + return c_.RespondsToSelector(objc.Sel("setThreadgroupMemoryLength:atIndex:")) } -// Tells the GPU to wait until the fence is updated before executing any commands encoded by the compute command encoder. [Full Topic] +// Sets the size of a block of threadgroup memory. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metal/mtlcomputecommandencoder/1649790-waitforfence?language=objc -func (c_ ComputeCommandEncoderWrapper) WaitForFence(fence PFence) { - po0 := objc.WrapAsProtocol("MTLFence", fence) - objc.Call[objc.Void](c_, objc.Sel("waitForFence:"), po0) +// [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_ ComputeCommandEncoderWrapper) HasDispatchType() bool { +func (c_ ComputeCommandEncoderObject) HasDispatchType() bool { return c_.RespondsToSelector(objc.Sel("dispatchType")) } // The strategy to use when dispatching commands encoded by the compute command encoder. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/metal/mtlcomputecommandencoder/2966550-dispatchtype?language=objc -func (c_ ComputeCommandEncoderWrapper) DispatchType() DispatchType { +func (c_ ComputeCommandEncoderObject) DispatchType() DispatchType { rv := objc.Call[DispatchType](c_, objc.Sel("dispatchType")) return rv } diff --git a/macos/metal/compute_pass_descriptor.gen.go b/macos/metal/compute_pass_descriptor.gen.go index 01d15cd9..212bc4c0 100644 --- a/macos/metal/compute_pass_descriptor.gen.go +++ b/macos/metal/compute_pass_descriptor.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package metal @@ -41,10 +41,6 @@ func (cc _ComputePassDescriptorClass) Alloc() ComputePassDescriptor { return rv } -func ComputePassDescriptor_Alloc() ComputePassDescriptor { - return ComputePassDescriptorClass.Alloc() -} - func (cc _ComputePassDescriptorClass) New() ComputePassDescriptor { rv := objc.Call[ComputePassDescriptor](cc, objc.Sel("new")) rv.Autorelease() 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 69af9522..5974e0d9 100644 --- a/macos/metal/compute_pass_sample_buffer_attachment_descriptor.gen.go +++ b/macos/metal/compute_pass_sample_buffer_attachment_descriptor.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package metal @@ -18,11 +18,11 @@ type _ComputePassSampleBufferAttachmentDescriptorClass struct { // An interface definition for the [ComputePassSampleBufferAttachmentDescriptor] class. type IComputePassSampleBufferAttachmentDescriptor interface { objc.IObject - StartOfEncoderSampleIndex() uint - SetStartOfEncoderSampleIndex(value uint) EndOfEncoderSampleIndex() uint SetEndOfEncoderSampleIndex(value uint) - SampleBuffer() CounterSampleBufferWrapper + StartOfEncoderSampleIndex() uint + SetStartOfEncoderSampleIndex(value uint) + SampleBuffer() CounterSampleBufferObject SetSampleBuffer(value PCounterSampleBuffer) SetSampleBufferObject(valueObject objc.IObject) } @@ -45,10 +45,6 @@ func (cc _ComputePassSampleBufferAttachmentDescriptorClass) Alloc() ComputePassS return rv } -func ComputePassSampleBufferAttachmentDescriptor_Alloc() ComputePassSampleBufferAttachmentDescriptor { - return ComputePassSampleBufferAttachmentDescriptorClass.Alloc() -} - func (cc _ComputePassSampleBufferAttachmentDescriptorClass) New() ComputePassSampleBufferAttachmentDescriptor { rv := objc.Call[ComputePassSampleBufferAttachmentDescriptor](cc, objc.Sel("new")) rv.Autorelease() @@ -64,21 +60,6 @@ func (c_ ComputePassSampleBufferAttachmentDescriptor) Init() ComputePassSampleBu return rv } -// 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 -func (c_ ComputePassSampleBufferAttachmentDescriptor) StartOfEncoderSampleIndex() uint { - rv := objc.Call[uint](c_, objc.Sel("startOfEncoderSampleIndex")) - return rv -} - -// 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 -func (c_ ComputePassSampleBufferAttachmentDescriptor) SetStartOfEncoderSampleIndex(value uint) { - 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 @@ -94,11 +75,26 @@ func (c_ ComputePassSampleBufferAttachmentDescriptor) SetEndOfEncoderSampleIndex 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 +func (c_ ComputePassSampleBufferAttachmentDescriptor) StartOfEncoderSampleIndex() uint { + rv := objc.Call[uint](c_, objc.Sel("startOfEncoderSampleIndex")) + return rv +} + +// 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 +func (c_ ComputePassSampleBufferAttachmentDescriptor) SetStartOfEncoderSampleIndex(value uint) { + objc.Call[objc.Void](c_, objc.Sel("setStartOfEncoderSampleIndex:"), 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 -func (c_ ComputePassSampleBufferAttachmentDescriptor) SampleBuffer() CounterSampleBufferWrapper { - rv := objc.Call[CounterSampleBufferWrapper](c_, objc.Sel("sampleBuffer")) +func (c_ ComputePassSampleBufferAttachmentDescriptor) SampleBuffer() CounterSampleBufferObject { + rv := objc.Call[CounterSampleBufferObject](c_, objc.Sel("sampleBuffer")) return rv } diff --git a/macos/metal/compute_pass_sample_buffer_attachment_descriptor_array.gen.go b/macos/metal/compute_pass_sample_buffer_attachment_descriptor_array.gen.go index da117da3..4dd4ff86 100644 --- a/macos/metal/compute_pass_sample_buffer_attachment_descriptor_array.gen.go +++ b/macos/metal/compute_pass_sample_buffer_attachment_descriptor_array.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package metal @@ -40,10 +40,6 @@ func (cc _ComputePassSampleBufferAttachmentDescriptorArrayClass) Alloc() Compute return rv } -func ComputePassSampleBufferAttachmentDescriptorArray_Alloc() ComputePassSampleBufferAttachmentDescriptorArray { - return ComputePassSampleBufferAttachmentDescriptorArrayClass.Alloc() -} - func (cc _ComputePassSampleBufferAttachmentDescriptorArrayClass) New() ComputePassSampleBufferAttachmentDescriptorArray { rv := objc.Call[ComputePassSampleBufferAttachmentDescriptorArray](cc, objc.Sel("new")) rv.Autorelease() diff --git a/macos/metal/compute_pipeline_descriptor.gen.go b/macos/metal/compute_pipeline_descriptor.gen.go index 5d3fa3ed..99a25109 100644 --- a/macos/metal/compute_pipeline_descriptor.gen.go +++ b/macos/metal/compute_pipeline_descriptor.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package metal @@ -19,30 +19,30 @@ type _ComputePipelineDescriptorClass struct { type IComputePipelineDescriptor interface { objc.IObject Reset() - Buffers() PipelineBufferDescriptorArray + 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) SupportAddingBinaryFunctions() bool SetSupportAddingBinaryFunctions(value bool) MaxCallStackDepth() uint SetMaxCallStackDepth(value uint) - LinkedFunctions() LinkedFunctions - SetLinkedFunctions(value ILinkedFunctions) + PreloadedLibraries() []DynamicLibraryObject + SetPreloadedLibraries(value []PDynamicLibrary) StageInputDescriptor() StageInputOutputDescriptor SetStageInputDescriptor(value IStageInputOutputDescriptor) + Buffers() PipelineBufferDescriptorArray MaxTotalThreadsPerThreadgroup() uint SetMaxTotalThreadsPerThreadgroup(value uint) - ThreadGroupSizeIsMultipleOfThreadExecutionWidth() bool - SetThreadGroupSizeIsMultipleOfThreadExecutionWidth(value bool) - PreloadedLibraries() []DynamicLibraryWrapper - SetPreloadedLibraries(value []PDynamicLibrary) Label() string SetLabel(value string) - SupportIndirectCommandBuffers() bool - SetSupportIndirectCommandBuffers(value bool) - BinaryArchives() []BinaryArchiveWrapper - SetBinaryArchives(value []PBinaryArchive) - ComputeFunction() FunctionWrapper - SetComputeFunction(value PFunction) - SetComputeFunctionObject(valueObject objc.IObject) } // An object for customizing the compilation of a new compute pipeline state object. [Full Topic] @@ -63,10 +63,6 @@ func (cc _ComputePipelineDescriptorClass) Alloc() ComputePipelineDescriptor { return rv } -func ComputePipelineDescriptor_Alloc() ComputePipelineDescriptor { - return ComputePipelineDescriptorClass.Alloc() -} - func (cc _ComputePipelineDescriptorClass) New() ComputePipelineDescriptor { rv := objc.Call[ComputePipelineDescriptor](cc, objc.Sel("new")) rv.Autorelease() @@ -89,42 +85,57 @@ func (c_ ComputePipelineDescriptor) Reset() { objc.Call[objc.Void](c_, objc.Sel("reset")) } -// 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 } -// 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] +// 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/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/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] +// +// [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 } -// 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] +// 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/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/1414915-threadgroupsizeismultipleofthrea?language=objc +func (c_ ComputePipelineDescriptor) SetThreadGroupSizeIsMultipleOfThreadExecutionWidth(value bool) { + objc.Call[objc.Void](c_, objc.Sel("setThreadGroupSizeIsMultipleOfThreadExecutionWidth:"), value) } -// The maximum function call depth from the top-most shader function. [Full Topic] +// The compute kernel the pipeline calls. [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/1414917-computefunction?language=objc +func (c_ ComputePipelineDescriptor) ComputeFunction() FunctionObject { + rv := objc.Call[FunctionObject](c_, objc.Sel("computeFunction")) return rv } -// The maximum function call depth from the top-most shader function. [Full Topic] +// The compute kernel the pipeline calls. [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/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:"), objc.Ptr(valueObject)) } // The functions that you can specify as function arguments when encoding commands that use this pipeline. [Full Topic] @@ -142,56 +153,56 @@ func (c_ ComputePipelineDescriptor) SetLinkedFunctions(value ILinkedFunctions) { objc.Call[objc.Void](c_, objc.Sel("setLinkedFunctions:"), objc.Ptr(value)) } -// The organization of input and output data for 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/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/3553961-binaryarchives?language=objc +func (c_ ComputePipelineDescriptor) BinaryArchives() []BinaryArchiveObject { + rv := objc.Call[[]BinaryArchiveObject](c_, objc.Sel("binaryArchives")) return rv } -// The organization of input and output data for 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/2092373-stageinputdescriptor?language=objc -func (c_ ComputePipelineDescriptor) SetStageInputDescriptor(value IStageInputOutputDescriptor) { - objc.Call[objc.Void](c_, objc.Sel("setStageInputDescriptor:"), objc.Ptr(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) } -// 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 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/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/3578132-supportaddingbinaryfunctions?language=objc +func (c_ ComputePipelineDescriptor) SupportAddingBinaryFunctions() bool { + rv := objc.Call[bool](c_, objc.Sel("supportAddingBinaryFunctions")) 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 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/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/3578132-supportaddingbinaryfunctions?language=objc +func (c_ ComputePipelineDescriptor) SetSupportAddingBinaryFunctions(value bool) { + objc.Call[objc.Void](c_, objc.Sel("setSupportAddingBinaryFunctions:"), value) } -// A Boolean value that indicates whether the threadgroup size must always be a multiple of the thread execution width. [Full Topic] +// The maximum function call depth from the top-most shader function. [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/3650409-maxcallstackdepth?language=objc +func (c_ ComputePipelineDescriptor) MaxCallStackDepth() uint { + rv := objc.Call[uint](c_, objc.Sel("maxCallStackDepth")) return rv } -// A Boolean value that indicates whether the threadgroup size must always be a multiple of the thread execution width. [Full Topic] +// The maximum function call depth from the top-most shader function. [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/3650409-maxcallstackdepth?language=objc +func (c_ ComputePipelineDescriptor) SetMaxCallStackDepth(value uint) { + objc.Call[objc.Void](c_, objc.Sel("setMaxCallStackDepth:"), value) } // The dynamic libraries that contain any precompiled shader functions you want to link. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/metal/mtlcomputepipelinedescriptor/3801722-preloadedlibraries?language=objc -func (c_ ComputePipelineDescriptor) PreloadedLibraries() []DynamicLibraryWrapper { - rv := objc.Call[[]DynamicLibraryWrapper](c_, objc.Sel("preloadedLibraries")) +func (c_ ComputePipelineDescriptor) PreloadedLibraries() []DynamicLibraryObject { + rv := objc.Call[[]DynamicLibraryObject](c_, objc.Sel("preloadedLibraries")) return rv } @@ -202,70 +213,55 @@ func (c_ ComputePipelineDescriptor) SetPreloadedLibraries(value []PDynamicLibrar objc.Call[objc.Void](c_, objc.Sel("setPreloadedLibraries:"), value) } -// A string that identifies the object. [Full Topic] +// The organization of input and output data for the compute function. [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/2092373-stageinputdescriptor?language=objc +func (c_ ComputePipelineDescriptor) StageInputDescriptor() StageInputOutputDescriptor { + rv := objc.Call[StageInputOutputDescriptor](c_, objc.Sel("stageInputDescriptor")) return rv } -// A string that identifies the object. [Full Topic] +// The organization of input and output data for the compute function. [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/2092373-stageinputdescriptor?language=objc +func (c_ ComputePipelineDescriptor) SetStageInputDescriptor(value IStageInputOutputDescriptor) { + objc.Call[objc.Void](c_, objc.Sel("setStageInputDescriptor:"), objc.Ptr(value)) } -// 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) -} - -// The binary archives that contain any precompiled shader functions you want to link. [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/3553961-binaryarchives?language=objc -func (c_ ComputePipelineDescriptor) BinaryArchives() []BinaryArchiveWrapper { - rv := objc.Call[[]BinaryArchiveWrapper](c_, objc.Sel("binaryArchives")) +// [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 } -// The binary archives that contain any precompiled shader functions you want to link. [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/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/2966560-maxtotalthreadsperthreadgroup?language=objc +func (c_ ComputePipelineDescriptor) SetMaxTotalThreadsPerThreadgroup(value uint) { + objc.Call[objc.Void](c_, objc.Sel("setMaxTotalThreadsPerThreadgroup:"), value) } -// The compute kernel the pipeline calls. [Full Topic] +// A string that identifies the object. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metal/mtlcomputepipelinedescriptor/1414917-computefunction?language=objc -func (c_ ComputePipelineDescriptor) ComputeFunction() FunctionWrapper { - rv := objc.Call[FunctionWrapper](c_, objc.Sel("computeFunction")) +// [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 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] +// A string that identifies the object. [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:"), objc.Ptr(valueObject)) +// [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) } diff --git a/macos/metal/compute_pipeline_reflection.gen.go b/macos/metal/compute_pipeline_reflection.gen.go index 62aea614..959c0cbd 100644 --- a/macos/metal/compute_pipeline_reflection.gen.go +++ b/macos/metal/compute_pipeline_reflection.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package metal @@ -38,10 +38,6 @@ func (cc _ComputePipelineReflectionClass) Alloc() ComputePipelineReflection { return rv } -func ComputePipelineReflection_Alloc() ComputePipelineReflection { - return ComputePipelineReflectionClass.Alloc() -} - func (cc _ComputePipelineReflectionClass) New() ComputePipelineReflection { rv := objc.Call[ComputePipelineReflection](cc, objc.Sel("new")) rv.Autorelease() diff --git a/macos/metal/compute_pipeline_state.gen.go b/macos/metal/compute_pipeline_state_protocol.gen.go similarity index 63% rename from macos/metal/compute_pipeline_state.gen.go rename to macos/metal/compute_pipeline_state_protocol.gen.go index a526adc0..c1fddfd9 100644 --- a/macos/metal/compute_pipeline_state.gen.go +++ b/macos/metal/compute_pipeline_state_protocol.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package metal @@ -12,28 +12,32 @@ import ( // [Full Topic]: https://developer.apple.com/documentation/metal/mtlcomputepipelinestate?language=objc type PComputePipelineState interface { // optional - NewIntersectionFunctionTableWithDescriptor(descriptor IntersectionFunctionTableDescriptor) PIntersectionFunctionTable - HasNewIntersectionFunctionTableWithDescriptor() bool - - // optional - NewVisibleFunctionTableWithDescriptor(descriptor VisibleFunctionTableDescriptor) PVisibleFunctionTable - HasNewVisibleFunctionTableWithDescriptor() bool + FunctionHandleWithFunction(function FunctionObject) FunctionHandleObject + HasFunctionHandleWithFunction() bool // optional - FunctionHandleWithFunction(function FunctionWrapper) PFunctionHandle - HasFunctionHandleWithFunction() bool + NewIntersectionFunctionTableWithDescriptor(descriptor IntersectionFunctionTableDescriptor) IntersectionFunctionTableObject + HasNewIntersectionFunctionTableWithDescriptor() bool // optional ImageblockMemoryLengthForDimensions(imageblockDimensions Size) uint HasImageblockMemoryLengthForDimensions() bool // optional - NewComputePipelineStateWithAdditionalBinaryFunctionsError(functions []FunctionWrapper, error foundation.Error) PComputePipelineState + NewVisibleFunctionTableWithDescriptor(descriptor VisibleFunctionTableDescriptor) VisibleFunctionTableObject + HasNewVisibleFunctionTableWithDescriptor() bool + + // optional + NewComputePipelineStateWithAdditionalBinaryFunctionsError(functions []FunctionObject, error foundation.Error) ComputePipelineStateObject HasNewComputePipelineStateWithAdditionalBinaryFunctionsError() bool // optional - Device() PDevice - HasDevice() bool + StaticThreadgroupMemoryLength() uint + HasStaticThreadgroupMemoryLength() bool + + // optional + Label() string + HasLabel() bool // optional MaxTotalThreadsPerThreadgroup() uint @@ -43,156 +47,152 @@ type PComputePipelineState interface { ThreadExecutionWidth() uint HasThreadExecutionWidth() bool - // optional - StaticThreadgroupMemoryLength() uint - HasStaticThreadgroupMemoryLength() bool - - // optional - Label() string - HasLabel() bool - // optional SupportIndirectCommandBuffers() bool HasSupportIndirectCommandBuffers() bool + + // optional + Device() DeviceObject + HasDevice() bool } -// A concrete type wrapper for the [PComputePipelineState] protocol. -type ComputePipelineStateWrapper struct { +// ensure impl type implements protocol interface +var _ PComputePipelineState = (*ComputePipelineStateObject)(nil) + +// A concrete type for the [PComputePipelineState] protocol. +type ComputePipelineStateObject struct { objc.Object } -func (c_ ComputePipelineStateWrapper) HasNewIntersectionFunctionTableWithDescriptor() bool { - return c_.RespondsToSelector(objc.Sel("newIntersectionFunctionTableWithDescriptor:")) +func (c_ ComputePipelineStateObject) HasFunctionHandleWithFunction() bool { + return c_.RespondsToSelector(objc.Sel("functionHandleWithFunction:")) } -// Creates a new intersection function table. [Full Topic] +// Creates a function handle for a visible function. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metal/mtlcomputepipelinestate/3580381-newintersectionfunctiontablewith?language=objc -func (c_ ComputePipelineStateWrapper) NewIntersectionFunctionTableWithDescriptor(descriptor IIntersectionFunctionTableDescriptor) IntersectionFunctionTableWrapper { - rv := objc.Call[IntersectionFunctionTableWrapper](c_, objc.Sel("newIntersectionFunctionTableWithDescriptor:"), objc.Ptr(descriptor)) - rv.Autorelease() +// [Full Topic]: https://developer.apple.com/documentation/metal/mtlcomputepipelinestate/3553964-functionhandlewithfunction?language=objc +func (c_ ComputePipelineStateObject) FunctionHandleWithFunction(function FunctionObject) FunctionHandleObject { + po0 := objc.WrapAsProtocol("MTLFunction", function) + rv := objc.Call[FunctionHandleObject](c_, objc.Sel("functionHandleWithFunction:"), po0) return rv } -func (c_ ComputePipelineStateWrapper) HasNewVisibleFunctionTableWithDescriptor() bool { - return c_.RespondsToSelector(objc.Sel("newVisibleFunctionTableWithDescriptor:")) +func (c_ ComputePipelineStateObject) HasNewIntersectionFunctionTableWithDescriptor() bool { + return c_.RespondsToSelector(objc.Sel("newIntersectionFunctionTableWithDescriptor:")) } -// Creates a new visible function table. [Full Topic] +// Creates a new intersection function table. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metal/mtlcomputepipelinestate/3566543-newvisiblefunctiontablewithdescr?language=objc -func (c_ ComputePipelineStateWrapper) NewVisibleFunctionTableWithDescriptor(descriptor IVisibleFunctionTableDescriptor) VisibleFunctionTableWrapper { - rv := objc.Call[VisibleFunctionTableWrapper](c_, objc.Sel("newVisibleFunctionTableWithDescriptor:"), objc.Ptr(descriptor)) - rv.Autorelease() +// [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:"), objc.Ptr(descriptor)) return rv } -func (c_ ComputePipelineStateWrapper) HasFunctionHandleWithFunction() bool { - return c_.RespondsToSelector(objc.Sel("functionHandleWithFunction:")) +func (c_ ComputePipelineStateObject) HasImageblockMemoryLengthForDimensions() bool { + return c_.RespondsToSelector(objc.Sel("imageblockMemoryLengthForDimensions:")) } -// Creates a function handle for a visible function. [Full Topic] +// Returns the imageblock memory length, in bytes, for the specified imageblock dimensions. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metal/mtlcomputepipelinestate/3553964-functionhandlewithfunction?language=objc -func (c_ ComputePipelineStateWrapper) FunctionHandleWithFunction(function PFunction) FunctionHandleWrapper { - po0 := objc.WrapAsProtocol("MTLFunction", function) - rv := objc.Call[FunctionHandleWrapper](c_, objc.Sel("functionHandleWithFunction:"), po0) +// [Full Topic]: https://developer.apple.com/documentation/metal/mtlcomputepipelinestate/2928195-imageblockmemorylengthfordimensi?language=objc +func (c_ ComputePipelineStateObject) ImageblockMemoryLengthForDimensions(imageblockDimensions Size) uint { + rv := objc.Call[uint](c_, objc.Sel("imageblockMemoryLengthForDimensions:"), imageblockDimensions) return rv } -func (c_ ComputePipelineStateWrapper) HasImageblockMemoryLengthForDimensions() bool { - return c_.RespondsToSelector(objc.Sel("imageblockMemoryLengthForDimensions:")) +func (c_ ComputePipelineStateObject) HasNewVisibleFunctionTableWithDescriptor() bool { + return c_.RespondsToSelector(objc.Sel("newVisibleFunctionTableWithDescriptor:")) } -// Returns the imageblock memory length, in bytes, for the specified imageblock dimensions. [Full Topic] +// Creates a new visible function table. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metal/mtlcomputepipelinestate/2928195-imageblockmemorylengthfordimensi?language=objc -func (c_ ComputePipelineStateWrapper) ImageblockMemoryLengthForDimensions(imageblockDimensions Size) uint { - rv := objc.Call[uint](c_, objc.Sel("imageblockMemoryLengthForDimensions:"), imageblockDimensions) +// [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:"), objc.Ptr(descriptor)) return rv } -func (c_ ComputePipelineStateWrapper) HasNewComputePipelineStateWithAdditionalBinaryFunctionsError() bool { +func (c_ ComputePipelineStateObject) HasNewComputePipelineStateWithAdditionalBinaryFunctionsError() bool { return c_.RespondsToSelector(objc.Sel("newComputePipelineStateWithAdditionalBinaryFunctions:error:")) } // Creates a new pipeline state object with additional callable functions. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/metal/mtlcomputepipelinestate/3580380-newcomputepipelinestatewithaddit?language=objc -func (c_ ComputePipelineStateWrapper) NewComputePipelineStateWithAdditionalBinaryFunctionsError(functions []PFunction, error foundation.IError) ComputePipelineStateWrapper { - rv := objc.Call[ComputePipelineStateWrapper](c_, objc.Sel("newComputePipelineStateWithAdditionalBinaryFunctions:error:"), functions, objc.Ptr(error)) - rv.Autorelease() +func (c_ ComputePipelineStateObject) NewComputePipelineStateWithAdditionalBinaryFunctionsError(functions []FunctionObject, error foundation.Error) ComputePipelineStateObject { + rv := objc.Call[ComputePipelineStateObject](c_, objc.Sel("newComputePipelineStateWithAdditionalBinaryFunctions:error:"), functions, objc.Ptr(error)) return rv } -func (c_ ComputePipelineStateWrapper) HasDevice() bool { - return c_.RespondsToSelector(objc.Sel("device")) +func (c_ ComputePipelineStateObject) HasStaticThreadgroupMemoryLength() bool { + return c_.RespondsToSelector(objc.Sel("staticThreadgroupMemoryLength")) } -// The Metal device object that created the pipeline state. [Full Topic] +// The length, in bytes, of statically allocated threadgroup memory. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metal/mtlcomputepipelinestate/1414925-device?language=objc -func (c_ ComputePipelineStateWrapper) Device() DeviceWrapper { - rv := objc.Call[DeviceWrapper](c_, objc.Sel("device")) +// [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")) +} + +// A string that identifies the compute pipeline state object. [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")) return rv } -func (c_ ComputePipelineStateWrapper) HasMaxTotalThreadsPerThreadgroup() bool { +func (c_ ComputePipelineStateObject) HasMaxTotalThreadsPerThreadgroup() bool { return c_.RespondsToSelector(objc.Sel("maxTotalThreadsPerThreadgroup")) } // The maximum number of threads in a threadgroup that you can dispatch to the pipeline. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/metal/mtlcomputepipelinestate/1414927-maxtotalthreadsperthreadgroup?language=objc -func (c_ ComputePipelineStateWrapper) MaxTotalThreadsPerThreadgroup() uint { +func (c_ ComputePipelineStateObject) MaxTotalThreadsPerThreadgroup() uint { rv := objc.Call[uint](c_, objc.Sel("maxTotalThreadsPerThreadgroup")) return rv } -func (c_ ComputePipelineStateWrapper) HasThreadExecutionWidth() bool { +func (c_ ComputePipelineStateObject) HasThreadExecutionWidth() bool { return c_.RespondsToSelector(objc.Sel("threadExecutionWidth")) } // The number of threads that the GPU executes simultaneously. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/metal/mtlcomputepipelinestate/1414911-threadexecutionwidth?language=objc -func (c_ ComputePipelineStateWrapper) ThreadExecutionWidth() uint { +func (c_ ComputePipelineStateObject) ThreadExecutionWidth() uint { rv := objc.Call[uint](c_, objc.Sel("threadExecutionWidth")) return rv } -func (c_ ComputePipelineStateWrapper) 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_ ComputePipelineStateWrapper) StaticThreadgroupMemoryLength() uint { - rv := objc.Call[uint](c_, objc.Sel("staticThreadgroupMemoryLength")) - return rv -} - -func (c_ ComputePipelineStateWrapper) HasLabel() bool { - return c_.RespondsToSelector(objc.Sel("label")) +func (c_ ComputePipelineStateObject) HasSupportIndirectCommandBuffers() bool { + return c_.RespondsToSelector(objc.Sel("supportIndirectCommandBuffers")) } -// A string that identifies the compute pipeline state object. [Full Topic] +// A Boolean value that indicates whether the pipeline supports indirect command buffers. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metal/mtlcomputepipelinestate/2880323-label?language=objc -func (c_ ComputePipelineStateWrapper) Label() string { - rv := objc.Call[string](c_, objc.Sel("label")) +// [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 } -func (c_ ComputePipelineStateWrapper) HasSupportIndirectCommandBuffers() bool { - return c_.RespondsToSelector(objc.Sel("supportIndirectCommandBuffers")) +func (c_ ComputePipelineStateObject) HasDevice() bool { + return c_.RespondsToSelector(objc.Sel("device")) } -// A Boolean value that indicates whether the pipeline supports indirect command buffers. [Full Topic] +// The Metal device object that created the pipeline state. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metal/mtlcomputepipelinestate/2966562-supportindirectcommandbuffers?language=objc -func (c_ ComputePipelineStateWrapper) SupportIndirectCommandBuffers() bool { - rv := objc.Call[bool](c_, objc.Sel("supportIndirectCommandBuffers")) +// [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 } diff --git a/macos/metal/counter.gen.go b/macos/metal/counter_protocol.gen.go similarity index 67% rename from macos/metal/counter.gen.go rename to macos/metal/counter_protocol.gen.go index 7e3fe447..5d1404db 100644 --- a/macos/metal/counter.gen.go +++ b/macos/metal/counter_protocol.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package metal @@ -15,19 +15,22 @@ type PCounter interface { HasName() bool } -// A concrete type wrapper for the [PCounter] protocol. -type CounterWrapper struct { +// ensure impl type implements protocol interface +var _ PCounter = (*CounterObject)(nil) + +// A concrete type for the [PCounter] protocol. +type CounterObject struct { objc.Object } -func (c_ CounterWrapper) HasName() bool { +func (c_ CounterObject) HasName() bool { return c_.RespondsToSelector(objc.Sel("name")) } // The name of a GPU’s counter instance. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/metal/mtlcounter/3081701-name?language=objc -func (c_ CounterWrapper) Name() string { +func (c_ CounterObject) Name() string { rv := objc.Call[string](c_, objc.Sel("name")) return rv } diff --git a/macos/metal/counter_sample_buffer_descriptor.gen.go b/macos/metal/counter_sample_buffer_descriptor.gen.go index fff153b5..464fa54c 100644 --- a/macos/metal/counter_sample_buffer_descriptor.gen.go +++ b/macos/metal/counter_sample_buffer_descriptor.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package metal @@ -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() CounterSetWrapper + CounterSet() CounterSetObject SetCounterSet(value PCounterSet) SetCounterSetObject(valueObject objc.IObject) - StorageMode() StorageMode - SetStorageMode(value StorageMode) + SampleCount() uint + SetSampleCount(value uint) Label() string SetLabel(value string) + StorageMode() StorageMode + SetStorageMode(value StorageMode) } // A group of properties that configures the counter sample buffers you create with it. [Full Topic] @@ -47,10 +47,6 @@ func (cc _CounterSampleBufferDescriptorClass) Alloc() CounterSampleBufferDescrip return rv } -func CounterSampleBufferDescriptor_Alloc() CounterSampleBufferDescriptor { - return CounterSampleBufferDescriptorClass.Alloc() -} - func (cc _CounterSampleBufferDescriptorClass) New() CounterSampleBufferDescriptor { rv := objc.Call[CounterSampleBufferDescriptor](cc, objc.Sel("new")) rv.Autorelease() @@ -66,26 +62,11 @@ 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 -func (c_ CounterSampleBufferDescriptor) CounterSet() CounterSetWrapper { - rv := objc.Call[CounterSetWrapper](c_, objc.Sel("counterSet")) +func (c_ CounterSampleBufferDescriptor) CounterSet() CounterSetObject { + rv := objc.Call[CounterSetObject](c_, objc.Sel("counterSet")) return rv } @@ -104,19 +85,19 @@ func (c_ CounterSampleBufferDescriptor) SetCounterSetObject(valueObject objc.IOb objc.Call[objc.Void](c_, objc.Sel("setCounterSet:"), objc.Ptr(valueObject)) } -// The memory storage mode for the counter sample buffers you create with the descriptor. [Full Topic] +// 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/3081733-storagemode?language=objc -func (c_ CounterSampleBufferDescriptor) StorageMode() StorageMode { - rv := objc.Call[StorageMode](c_, objc.Sel("storageMode")) +// [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 memory storage mode for the counter sample buffers you create with the descriptor. [Full Topic] +// 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/3081733-storagemode?language=objc -func (c_ CounterSampleBufferDescriptor) SetStorageMode(value StorageMode) { - objc.Call[objc.Void](c_, objc.Sel("setStorageMode:"), value) +// [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) } // The name for the counter sample buffer you create with the descriptor. [Full Topic] @@ -133,3 +114,18 @@ 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.gen.go b/macos/metal/counter_sample_buffer_protocol.gen.go similarity index 69% rename from macos/metal/counter_sample_buffer.gen.go rename to macos/metal/counter_sample_buffer_protocol.gen.go index 209f4ed6..07a8db9c 100644 --- a/macos/metal/counter_sample_buffer.gen.go +++ b/macos/metal/counter_sample_buffer_protocol.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package metal @@ -15,10 +15,6 @@ type PCounterSampleBuffer interface { ResolveCounterRange(range_ foundation.Range) []byte HasResolveCounterRange() bool - // optional - Device() PDevice - HasDevice() bool - // optional SampleCount() uint HasSampleCount() bool @@ -26,57 +22,64 @@ type PCounterSampleBuffer interface { // optional Label() string HasLabel() bool + + // optional + Device() DeviceObject + HasDevice() bool } -// A concrete type wrapper for the [PCounterSampleBuffer] protocol. -type CounterSampleBufferWrapper struct { +// ensure impl type implements protocol interface +var _ PCounterSampleBuffer = (*CounterSampleBufferObject)(nil) + +// A concrete type for the [PCounterSampleBuffer] protocol. +type CounterSampleBufferObject struct { objc.Object } -func (c_ CounterSampleBufferWrapper) HasResolveCounterRange() bool { +func (c_ CounterSampleBufferObject) HasResolveCounterRange() bool { return c_.RespondsToSelector(objc.Sel("resolveCounterRange:")) } // Transforms samples of a GPU’s counter set from the driver’s internal format to a standard Metal data structure. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/metal/mtlcountersamplebuffer/3194377-resolvecounterrange?language=objc -func (c_ CounterSampleBufferWrapper) ResolveCounterRange(range_ foundation.Range) []byte { +func (c_ CounterSampleBufferObject) ResolveCounterRange(range_ foundation.Range) []byte { rv := objc.Call[[]byte](c_, objc.Sel("resolveCounterRange:"), range_) return rv } -func (c_ CounterSampleBufferWrapper) 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_ CounterSampleBufferWrapper) Device() DeviceWrapper { - rv := objc.Call[DeviceWrapper](c_, objc.Sel("device")) - return rv -} - -func (c_ CounterSampleBufferWrapper) HasSampleCount() bool { +func (c_ CounterSampleBufferObject) HasSampleCount() bool { return c_.RespondsToSelector(objc.Sel("sampleCount")) } // The number of samples in the buffer. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/metal/mtlcountersamplebuffer/3081728-samplecount?language=objc -func (c_ CounterSampleBufferWrapper) SampleCount() uint { +func (c_ CounterSampleBufferObject) SampleCount() uint { rv := objc.Call[uint](c_, objc.Sel("sampleCount")) return rv } -func (c_ CounterSampleBufferWrapper) HasLabel() bool { +func (c_ CounterSampleBufferObject) HasLabel() bool { return c_.RespondsToSelector(objc.Sel("label")) } // A string that identifies the counter sample buffer. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/metal/mtlcountersamplebuffer/3081727-label?language=objc -func (c_ CounterSampleBufferWrapper) Label() string { +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/counter_set.gen.go b/macos/metal/counter_set_protocol.gen.go similarity index 64% rename from macos/metal/counter_set.gen.go rename to macos/metal/counter_set_protocol.gen.go index 6723e552..a5c36d9e 100644 --- a/macos/metal/counter_set.gen.go +++ b/macos/metal/counter_set_protocol.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package metal @@ -15,35 +15,38 @@ type PCounterSet interface { HasName() bool // optional - Counters() []PCounter + Counters() []CounterObject HasCounters() bool } -// A concrete type wrapper for the [PCounterSet] protocol. -type CounterSetWrapper struct { +// ensure impl type implements protocol interface +var _ PCounterSet = (*CounterSetObject)(nil) + +// A concrete type for the [PCounterSet] protocol. +type CounterSetObject struct { objc.Object } -func (c_ CounterSetWrapper) HasName() bool { +func (c_ CounterSetObject) HasName() bool { return c_.RespondsToSelector(objc.Sel("name")) } // The name of the GPU’s counter set instance. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/metal/mtlcounterset/3081736-name?language=objc -func (c_ CounterSetWrapper) Name() string { +func (c_ CounterSetObject) Name() string { rv := objc.Call[string](c_, objc.Sel("name")) return rv } -func (c_ CounterSetWrapper) HasCounters() bool { +func (c_ CounterSetObject) HasCounters() bool { return c_.RespondsToSelector(objc.Sel("counters")) } // An array of the counter instances a GPU device supports. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/metal/mtlcounterset/3081735-counters?language=objc -func (c_ CounterSetWrapper) Counters() []CounterWrapper { - rv := objc.Call[[]CounterWrapper](c_, objc.Sel("counters")) +func (c_ CounterSetObject) Counters() []CounterObject { + rv := objc.Call[[]CounterObject](c_, objc.Sel("counters")) return rv } diff --git a/macos/metal/depth_stencil_descriptor.gen.go b/macos/metal/depth_stencil_descriptor.gen.go index 79c7eb7c..0eb47e84 100644 --- a/macos/metal/depth_stencil_descriptor.gen.go +++ b/macos/metal/depth_stencil_descriptor.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package metal @@ -18,14 +18,14 @@ type _DepthStencilDescriptorClass struct { // An interface definition for the [DepthStencilDescriptor] class. type IDepthStencilDescriptor interface { objc.IObject - BackFaceStencil() StencilDescriptor - SetBackFaceStencil(value IStencilDescriptor) - FrontFaceStencil() StencilDescriptor - SetFrontFaceStencil(value IStencilDescriptor) DepthCompareFunction() CompareFunction SetDepthCompareFunction(value CompareFunction) + BackFaceStencil() StencilDescriptor + SetBackFaceStencil(value IStencilDescriptor) Label() string SetLabel(value string) + FrontFaceStencil() StencilDescriptor + SetFrontFaceStencil(value IStencilDescriptor) IsDepthWriteEnabled() bool SetDepthWriteEnabled(value bool) } @@ -48,10 +48,6 @@ func (dc _DepthStencilDescriptorClass) Alloc() DepthStencilDescriptor { return rv } -func DepthStencilDescriptor_Alloc() DepthStencilDescriptor { - return DepthStencilDescriptorClass.Alloc() -} - func (dc _DepthStencilDescriptorClass) New() DepthStencilDescriptor { rv := objc.Call[DepthStencilDescriptor](dc, objc.Sel("new")) rv.Autorelease() @@ -67,36 +63,6 @@ func (d_ DepthStencilDescriptor) Init() DepthStencilDescriptor { return rv } -// The stencil descriptor for back-facing primitives. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/metal/mtldepthstencildescriptor/1462507-backfacestencil?language=objc -func (d_ DepthStencilDescriptor) BackFaceStencil() StencilDescriptor { - rv := objc.Call[StencilDescriptor](d_, objc.Sel("backFaceStencil")) - return rv -} - -// The stencil descriptor for back-facing primitives. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/metal/mtldepthstencildescriptor/1462507-backfacestencil?language=objc -func (d_ DepthStencilDescriptor) SetBackFaceStencil(value IStencilDescriptor) { - objc.Call[objc.Void](d_, objc.Sel("setBackFaceStencil:"), objc.Ptr(value)) -} - -// The stencil descriptor for front-facing primitives. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/metal/mtldepthstencildescriptor/1462476-frontfacestencil?language=objc -func (d_ DepthStencilDescriptor) FrontFaceStencil() StencilDescriptor { - rv := objc.Call[StencilDescriptor](d_, objc.Sel("frontFaceStencil")) - return rv -} - -// The stencil descriptor for front-facing primitives. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/metal/mtldepthstencildescriptor/1462476-frontfacestencil?language=objc -func (d_ DepthStencilDescriptor) SetFrontFaceStencil(value IStencilDescriptor) { - objc.Call[objc.Void](d_, objc.Sel("setFrontFaceStencil:"), objc.Ptr(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 @@ -112,6 +78,21 @@ 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 +func (d_ DepthStencilDescriptor) BackFaceStencil() StencilDescriptor { + rv := objc.Call[StencilDescriptor](d_, objc.Sel("backFaceStencil")) + return rv +} + +// The stencil descriptor for back-facing primitives. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/metal/mtldepthstencildescriptor/1462507-backfacestencil?language=objc +func (d_ DepthStencilDescriptor) SetBackFaceStencil(value IStencilDescriptor) { + objc.Call[objc.Void](d_, objc.Sel("setBackFaceStencil:"), objc.Ptr(value)) +} + // A string that identifies this object. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/metal/mtldepthstencildescriptor/1462483-label?language=objc @@ -127,6 +108,21 @@ 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 +func (d_ DepthStencilDescriptor) FrontFaceStencil() StencilDescriptor { + rv := objc.Call[StencilDescriptor](d_, objc.Sel("frontFaceStencil")) + return rv +} + +// The stencil descriptor for front-facing primitives. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/metal/mtldepthstencildescriptor/1462476-frontfacestencil?language=objc +func (d_ DepthStencilDescriptor) SetFrontFaceStencil(value IStencilDescriptor) { + objc.Call[objc.Void](d_, objc.Sel("setFrontFaceStencil:"), objc.Ptr(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.gen.go b/macos/metal/depth_stencil_state_protocol.gen.go similarity index 64% rename from macos/metal/depth_stencil_state.gen.go rename to macos/metal/depth_stencil_state_protocol.gen.go index c76fa8a1..4801454d 100644 --- a/macos/metal/depth_stencil_state.gen.go +++ b/macos/metal/depth_stencil_state_protocol.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package metal @@ -10,40 +10,43 @@ import ( // // [Full Topic]: https://developer.apple.com/documentation/metal/mtldepthstencilstate?language=objc type PDepthStencilState interface { - // optional - Device() PDevice - HasDevice() bool - // optional Label() string HasLabel() bool + + // optional + Device() DeviceObject + HasDevice() bool } -// A concrete type wrapper for the [PDepthStencilState] protocol. -type DepthStencilStateWrapper struct { +// ensure impl type implements protocol interface +var _ PDepthStencilState = (*DepthStencilStateObject)(nil) + +// A concrete type for the [PDepthStencilState] protocol. +type DepthStencilStateObject struct { objc.Object } -func (d_ DepthStencilStateWrapper) HasDevice() bool { - return d_.RespondsToSelector(objc.Sel("device")) +func (d_ DepthStencilStateObject) HasLabel() bool { + return d_.RespondsToSelector(objc.Sel("label")) } -// The device from which this state object was created. [Full Topic] +// A string that identifies this object. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metal/mtldepthstencilstate/1462453-device?language=objc -func (d_ DepthStencilStateWrapper) Device() DeviceWrapper { - rv := objc.Call[DeviceWrapper](d_, objc.Sel("device")) +// [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_ DepthStencilStateWrapper) HasLabel() bool { - return d_.RespondsToSelector(objc.Sel("label")) +func (d_ DepthStencilStateObject) HasDevice() bool { + return d_.RespondsToSelector(objc.Sel("device")) } -// A string that identifies this object. [Full Topic] +// The device from which this state object was created. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metal/mtldepthstencilstate/1462472-label?language=objc -func (d_ DepthStencilStateWrapper) Label() string { - rv := objc.Call[string](d_, objc.Sel("label")) +// [Full Topic]: https://developer.apple.com/documentation/metal/mtldepthstencilstate/1462453-device?language=objc +func (d_ DepthStencilStateObject) Device() DeviceObject { + rv := objc.Call[DeviceObject](d_, objc.Sel("device")) return rv } diff --git a/macos/metal/device.gen.go b/macos/metal/device_protocol.gen.go similarity index 58% rename from macos/metal/device.gen.go rename to macos/metal/device_protocol.gen.go index 8c6e5e42..007adb3a 100644 --- a/macos/metal/device.gen.go +++ b/macos/metal/device_protocol.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package metal @@ -7,6 +7,7 @@ import ( "github.com/progrium/macdriver/dispatch" "github.com/progrium/macdriver/macos/foundation" + "github.com/progrium/macdriver/macos/iosurface" "github.com/progrium/macdriver/objc" ) @@ -15,1421 +16,1571 @@ import ( // [Full Topic]: https://developer.apple.com/documentation/metal/mtldevice?language=objc type PDevice interface { // optional - SupportsFamily(gpuFamily GPUFamily) bool - HasSupportsFamily() bool + NewDefaultLibrary() LibraryObject + HasNewDefaultLibrary() bool // optional - MinimumLinearTextureAlignmentForPixelFormat(format PixelFormat) uint - HasMinimumLinearTextureAlignmentForPixelFormat() bool + NewBufferWithBytesLengthOptions(pointer unsafe.Pointer, length uint, options ResourceOptions) BufferObject + HasNewBufferWithBytesLengthOptions() bool // optional - NewDynamicLibraryError(library LibraryWrapper, error foundation.Error) PDynamicLibrary - HasNewDynamicLibraryError() bool + SupportsVertexAmplificationCount(count uint) bool + HasSupportsVertexAmplificationCount() bool // optional - SampleTimestampsGpuTimestamp(cpuTimestamp *Timestamp, gpuTimestamp *Timestamp) - HasSampleTimestampsGpuTimestamp() bool + NewLibraryWithSourceOptionsError(source string, options CompileOptions, error foundation.Error) LibraryObject + HasNewLibraryWithSourceOptionsError() bool // optional - NewTextureWithDescriptor(descriptor TextureDescriptor) PTexture - HasNewTextureWithDescriptor() bool + NewSharedEventWithHandle(sharedEventHandle SharedEventHandle) SharedEventObject + HasNewSharedEventWithHandle() bool // optional - NewBinaryArchiveWithDescriptorError(descriptor BinaryArchiveDescriptor, error foundation.Error) PBinaryArchive + NewBinaryArchiveWithDescriptorError(descriptor BinaryArchiveDescriptor, error foundation.Error) BinaryArchiveObject HasNewBinaryArchiveWithDescriptorError() bool // optional - NewAccelerationStructureWithSize(size uint) PAccelerationStructure - HasNewAccelerationStructureWithSize() bool + NewIndirectCommandBufferWithDescriptorMaxCommandCountOptions(descriptor IndirectCommandBufferDescriptor, maxCount uint, options ResourceOptions) IndirectCommandBufferObject + HasNewIndirectCommandBufferWithDescriptorMaxCommandCountOptions() bool // optional - SupportsRasterizationRateMapWithLayerCount(layerCount uint) bool - HasSupportsRasterizationRateMapWithLayerCount() bool + NewSharedTextureWithHandle(sharedHandle SharedTextureHandle) TextureObject + HasNewSharedTextureWithHandle() bool // optional - NewLibraryWithSourceOptionsError(source string, options CompileOptions, error foundation.Error) PLibrary - HasNewLibraryWithSourceOptionsError() bool + NewComputePipelineStateWithFunctionError(computeFunction FunctionObject, error foundation.Error) ComputePipelineStateObject + HasNewComputePipelineStateWithFunctionError() bool // optional - NewArgumentEncoderWithArguments(arguments []ArgumentDescriptor) PArgumentEncoder - HasNewArgumentEncoderWithArguments() bool + SparseTileSizeWithTextureTypePixelFormatSampleCount(textureType TextureType, pixelFormat PixelFormat, sampleCount uint) Size + HasSparseTileSizeWithTextureTypePixelFormatSampleCount() bool // optional - NewComputePipelineStateWithDescriptorOptionsCompletionHandler(descriptor ComputePipelineDescriptor, options PipelineOption, completionHandler NewComputePipelineStateWithReflectionCompletionHandler) - HasNewComputePipelineStateWithDescriptorOptionsCompletionHandler() bool + NewLibraryWithURLError(url foundation.URL, error foundation.Error) LibraryObject + HasNewLibraryWithURLError() bool // optional - NewCommandQueue() PCommandQueue - HasNewCommandQueue() bool + NewAccelerationStructureWithDescriptor(descriptor AccelerationStructureDescriptor) AccelerationStructureObject + HasNewAccelerationStructureWithDescriptor() bool // optional - SupportsTextureSampleCount(sampleCount uint) bool - HasSupportsTextureSampleCount() bool + ConvertSparseTileRegionsToPixelRegionsWithTileSizeNumRegions(tileRegions *Region, pixelRegions *Region, tileSize Size, numRegions uint) + HasConvertSparseTileRegionsToPixelRegionsWithTileSizeNumRegions() bool // optional - MinimumTextureBufferAlignmentForPixelFormat(format PixelFormat) uint - HasMinimumTextureBufferAlignmentForPixelFormat() bool + NewComputePipelineStateWithFunctionOptionsReflectionError(computeFunction FunctionObject, options PipelineOption, reflection *AutoreleasedComputePipelineReflection, error foundation.Error) ComputePipelineStateObject + HasNewComputePipelineStateWithFunctionOptionsReflectionError() bool // optional - NewFence() PFence - HasNewFence() bool + NewHeapWithDescriptor(descriptor HeapDescriptor) HeapObject + HasNewHeapWithDescriptor() bool // optional - GetDefaultSamplePositionsCount(positions *SamplePosition, count uint) - HasGetDefaultSamplePositionsCount() bool + NewTextureWithDescriptor(descriptor TextureDescriptor) TextureObject + HasNewTextureWithDescriptor() bool // optional - NewRasterizationRateMapWithDescriptor(descriptor RasterizationRateMapDescriptor) PRasterizationRateMap - HasNewRasterizationRateMapWithDescriptor() bool + GetDefaultSamplePositionsCount(positions *SamplePosition, count uint) + HasGetDefaultSamplePositionsCount() bool // optional - NewCounterSampleBufferWithDescriptorError(descriptor CounterSampleBufferDescriptor, error foundation.Error) PCounterSampleBuffer + NewCounterSampleBufferWithDescriptorError(descriptor CounterSampleBufferDescriptor, error foundation.Error) CounterSampleBufferObject HasNewCounterSampleBufferWithDescriptorError() bool // optional - NewCommandQueueWithMaxCommandBufferCount(maxCommandBufferCount uint) PCommandQueue - HasNewCommandQueueWithMaxCommandBufferCount() bool - - // optional - NewHeapWithDescriptor(descriptor HeapDescriptor) PHeap - HasNewHeapWithDescriptor() bool + HeapTextureSizeAndAlignWithDescriptor(desc TextureDescriptor) SizeAndAlign + HasHeapTextureSizeAndAlignWithDescriptor() bool // optional - NewSharedTextureWithDescriptor(descriptor TextureDescriptor) PTexture - HasNewSharedTextureWithDescriptor() bool + NewDynamicLibraryWithURLError(url foundation.URL, error foundation.Error) DynamicLibraryObject + HasNewDynamicLibraryWithURLError() bool // optional - ConvertSparsePixelRegionsToTileRegionsWithTileSizeAlignmentModeNumRegions(pixelRegions *Region, tileRegions *Region, tileSize Size, mode SparseTextureRegionAlignmentMode, numRegions uint) - HasConvertSparsePixelRegionsToTileRegionsWithTileSizeAlignmentModeNumRegions() bool + SupportsTextureSampleCount(sampleCount uint) bool + HasSupportsTextureSampleCount() bool // optional - HeapBufferSizeAndAlignWithLengthOptions(length uint, options ResourceOptions) SizeAndAlign - HasHeapBufferSizeAndAlignWithLengthOptions() bool + NewBufferWithBytesNoCopyLengthOptionsDeallocator(pointer unsafe.Pointer, length uint, options ResourceOptions, deallocator func(pointer unsafe.Pointer, length uint)) BufferObject + HasNewBufferWithBytesNoCopyLengthOptionsDeallocator() bool // optional - NewIndirectCommandBufferWithDescriptorMaxCommandCountOptions(descriptor IndirectCommandBufferDescriptor, maxCount uint, options ResourceOptions) PIndirectCommandBuffer - HasNewIndirectCommandBufferWithDescriptorMaxCommandCountOptions() bool + NewRenderPipelineStateWithDescriptorCompletionHandler(descriptor RenderPipelineDescriptor, completionHandler NewRenderPipelineStateCompletionHandler) + HasNewRenderPipelineStateWithDescriptorCompletionHandler() bool // optional - HeapTextureSizeAndAlignWithDescriptor(desc TextureDescriptor) SizeAndAlign - HasHeapTextureSizeAndAlignWithDescriptor() bool + NewRenderPipelineStateWithDescriptorOptionsReflectionError(descriptor RenderPipelineDescriptor, options PipelineOption, reflection *AutoreleasedRenderPipelineReflection, error foundation.Error) RenderPipelineStateObject + HasNewRenderPipelineStateWithDescriptorOptionsReflectionError() bool // optional - NewLibraryWithDataError(data dispatch.Data, error foundation.Error) PLibrary - HasNewLibraryWithDataError() bool + NewSharedTextureWithDescriptor(descriptor TextureDescriptor) TextureObject + HasNewSharedTextureWithDescriptor() bool // optional - NewDefaultLibraryWithBundleError(bundle foundation.Bundle, error foundation.Error) PLibrary + NewDefaultLibraryWithBundleError(bundle foundation.Bundle, error foundation.Error) LibraryObject HasNewDefaultLibraryWithBundleError() bool // optional - NewLibraryWithStitchedDescriptorCompletionHandler(descriptor StitchedLibraryDescriptor, completionHandler NewLibraryCompletionHandler) - HasNewLibraryWithStitchedDescriptorCompletionHandler() bool + AccelerationStructureSizesWithDescriptor(descriptor AccelerationStructureDescriptor) AccelerationStructureSizes + HasAccelerationStructureSizesWithDescriptor() bool // optional - NewAccelerationStructureWithDescriptor(descriptor AccelerationStructureDescriptor) PAccelerationStructure - HasNewAccelerationStructureWithDescriptor() bool + MinimumTextureBufferAlignmentForPixelFormat(format PixelFormat) uint + HasMinimumTextureBufferAlignmentForPixelFormat() bool // optional - NewBufferWithBytesNoCopyLengthOptionsDeallocator(pointer unsafe.Pointer, length uint, options ResourceOptions, deallocator func(pointer unsafe.Pointer, length uint)) PBuffer - HasNewBufferWithBytesNoCopyLengthOptionsDeallocator() bool + NewRenderPipelineStateWithDescriptorOptionsCompletionHandler(descriptor RenderPipelineDescriptor, options PipelineOption, completionHandler NewRenderPipelineStateWithReflectionCompletionHandler) + HasNewRenderPipelineStateWithDescriptorOptionsCompletionHandler() bool // optional - NewEvent() PEvent - HasNewEvent() bool + NewCommandQueueWithMaxCommandBufferCount(maxCommandBufferCount uint) CommandQueueObject + HasNewCommandQueueWithMaxCommandBufferCount() bool // optional - NewBufferWithLengthOptions(length uint, options ResourceOptions) PBuffer - HasNewBufferWithLengthOptions() bool + NewLibraryWithStitchedDescriptorError(descriptor StitchedLibraryDescriptor, error foundation.Error) LibraryObject + HasNewLibraryWithStitchedDescriptorError() bool // optional - NewBufferWithBytesLengthOptions(pointer unsafe.Pointer, length uint, options ResourceOptions) PBuffer - HasNewBufferWithBytesLengthOptions() bool + NewLibraryWithStitchedDescriptorCompletionHandler(descriptor StitchedLibraryDescriptor, completionHandler NewLibraryCompletionHandler) + HasNewLibraryWithStitchedDescriptorCompletionHandler() bool // optional - NewSharedEvent() PSharedEvent - HasNewSharedEvent() bool + NewCommandQueue() CommandQueueObject + HasNewCommandQueue() bool // optional - SparseTileSizeWithTextureTypePixelFormatSampleCount(textureType TextureType, pixelFormat PixelFormat, sampleCount uint) Size - HasSparseTileSizeWithTextureTypePixelFormatSampleCount() bool + NewAccelerationStructureWithSize(size uint) AccelerationStructureObject + HasNewAccelerationStructureWithSize() bool // optional - NewSamplerStateWithDescriptor(descriptor SamplerDescriptor) PSamplerState - HasNewSamplerStateWithDescriptor() bool + NewTextureWithDescriptorIosurfacePlane(descriptor TextureDescriptor, iosurface iosurface.Ref, plane uint) TextureObject + HasNewTextureWithDescriptorIosurfacePlane() bool // optional - NewDynamicLibraryWithURLError(url foundation.URL, error foundation.Error) PDynamicLibrary - HasNewDynamicLibraryWithURLError() bool + SupportsFamily(gpuFamily GPUFamily) bool + HasSupportsFamily() 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 - SupportsVertexAmplificationCount(count uint) bool - HasSupportsVertexAmplificationCount() bool + NewSharedEvent() SharedEventObject + HasNewSharedEvent() bool // optional - NewComputePipelineStateWithFunctionCompletionHandler(computeFunction FunctionWrapper, completionHandler NewComputePipelineStateCompletionHandler) - HasNewComputePipelineStateWithFunctionCompletionHandler() bool + NewComputePipelineStateWithDescriptorOptionsReflectionError(descriptor ComputePipelineDescriptor, options PipelineOption, reflection *AutoreleasedComputePipelineReflection, error foundation.Error) ComputePipelineStateObject + HasNewComputePipelineStateWithDescriptorOptionsReflectionError() bool // optional - AccelerationStructureSizesWithDescriptor(descriptor AccelerationStructureDescriptor) AccelerationStructureSizes - HasAccelerationStructureSizesWithDescriptor() bool + HeapBufferSizeAndAlignWithLengthOptions(length uint, options ResourceOptions) SizeAndAlign + HasHeapBufferSizeAndAlignWithLengthOptions() bool // optional - NewDefaultLibrary() PLibrary - HasNewDefaultLibrary() bool + NewRasterizationRateMapWithDescriptor(descriptor RasterizationRateMapDescriptor) RasterizationRateMapObject + HasNewRasterizationRateMapWithDescriptor() bool // optional - NewDepthStencilStateWithDescriptor(descriptor DepthStencilDescriptor) PDepthStencilState - HasNewDepthStencilStateWithDescriptor() bool + NewEvent() EventObject + HasNewEvent() bool // optional - ConvertSparseTileRegionsToPixelRegionsWithTileSizeNumRegions(tileRegions *Region, pixelRegions *Region, tileSize Size, numRegions uint) - HasConvertSparseTileRegionsToPixelRegionsWithTileSizeNumRegions() bool + NewFence() FenceObject + HasNewFence() bool // optional - NewRenderPipelineStateWithDescriptorCompletionHandler(descriptor RenderPipelineDescriptor, completionHandler NewRenderPipelineStateCompletionHandler) - HasNewRenderPipelineStateWithDescriptorCompletionHandler() bool + NewComputePipelineStateWithDescriptorOptionsCompletionHandler(descriptor ComputePipelineDescriptor, options PipelineOption, completionHandler NewComputePipelineStateWithReflectionCompletionHandler) + HasNewComputePipelineStateWithDescriptorOptionsCompletionHandler() bool // optional - NewSharedTextureWithHandle(sharedHandle SharedTextureHandle) PTexture - HasNewSharedTextureWithHandle() bool + SampleTimestampsGpuTimestamp(cpuTimestamp *Timestamp, gpuTimestamp *Timestamp) + HasSampleTimestampsGpuTimestamp() bool // optional - NewLibraryWithURLError(url foundation.URL, error foundation.Error) PLibrary - HasNewLibraryWithURLError() bool + SupportsRasterizationRateMapWithLayerCount(layerCount uint) bool + HasSupportsRasterizationRateMapWithLayerCount() bool // optional - NewSharedEventWithHandle(sharedEventHandle SharedEventHandle) PSharedEvent - HasNewSharedEventWithHandle() bool + NewArgumentEncoderWithArguments(arguments []ArgumentDescriptor) ArgumentEncoderObject + HasNewArgumentEncoderWithArguments() bool // optional - SupportsPrimitiveMotionBlur() bool - HasSupportsPrimitiveMotionBlur() bool + MinimumLinearTextureAlignmentForPixelFormat(format PixelFormat) uint + HasMinimumLinearTextureAlignmentForPixelFormat() bool // optional - SupportsPullModelInterpolation() bool - HasSupportsPullModelInterpolation() bool + NewDynamicLibraryError(library LibraryObject, error foundation.Error) DynamicLibraryObject + HasNewDynamicLibraryError() bool // optional - SparseTileSizeInBytes() uint - HasSparseTileSizeInBytes() bool + ConvertSparsePixelRegionsToTileRegionsWithTileSizeAlignmentModeNumRegions(pixelRegions *Region, tileRegions *Region, tileSize Size, mode SparseTextureRegionAlignmentMode, numRegions uint) + HasConvertSparsePixelRegionsToTileRegionsWithTileSizeAlignmentModeNumRegions() bool // optional - ReadWriteTextureSupport() ReadWriteTextureTier - HasReadWriteTextureSupport() bool + NewComputePipelineStateWithFunctionOptionsCompletionHandler(computeFunction FunctionObject, options PipelineOption, completionHandler NewComputePipelineStateWithReflectionCompletionHandler) + HasNewComputePipelineStateWithFunctionOptionsCompletionHandler() bool // optional - Supports32BitFloatFiltering() bool - HasSupports32BitFloatFiltering() bool + NewComputePipelineStateWithFunctionCompletionHandler(computeFunction FunctionObject, completionHandler NewComputePipelineStateCompletionHandler) + HasNewComputePipelineStateWithFunctionCompletionHandler() bool // optional - PeerCount() uint32 - HasPeerCount() bool + NewRenderPipelineStateWithTileDescriptorOptionsReflectionError(descriptor TileRenderPipelineDescriptor, options PipelineOption, reflection *AutoreleasedRenderPipelineReflection, error foundation.Error) RenderPipelineStateObject + HasNewRenderPipelineStateWithTileDescriptorOptionsReflectionError() bool // optional - AreRasterOrderGroupsSupported() bool - HasAreRasterOrderGroupsSupported() bool + NewDepthStencilStateWithDescriptor(descriptor DepthStencilDescriptor) DepthStencilStateObject + HasNewDepthStencilStateWithDescriptor() bool // optional - Name() string - HasName() bool + NewLibraryWithDataError(data dispatch.Data, error foundation.Error) LibraryObject + HasNewLibraryWithDataError() bool // optional - Location() DeviceLocation - HasLocation() bool + NewRenderPipelineStateWithDescriptorError(descriptor RenderPipelineDescriptor, error foundation.Error) RenderPipelineStateObject + HasNewRenderPipelineStateWithDescriptorError() bool // optional - IsLowPower() bool - HasIsLowPower() bool + NewBufferWithLengthOptions(length uint, options ResourceOptions) BufferObject + HasNewBufferWithLengthOptions() bool // optional - SupportsBCTextureCompression() bool - HasSupportsBCTextureCompression() bool + NewLibraryWithSourceOptionsCompletionHandler(source string, options CompileOptions, completionHandler NewLibraryCompletionHandler) + HasNewLibraryWithSourceOptionsCompletionHandler() bool // optional - SupportsRaytracing() bool - HasSupportsRaytracing() bool + Location() DeviceLocation + HasLocation() bool // optional - SupportsShaderBarycentricCoordinates() bool - HasSupportsShaderBarycentricCoordinates() bool + IsHeadless() bool + HasIsHeadless() bool + + // optional + SupportsPrimitiveMotionBlur() bool + HasSupportsPrimitiveMotionBlur() bool // optional RecommendedMaxWorkingSetSize() uint64 HasRecommendedMaxWorkingSetSize() bool // optional - MaxThreadsPerThreadgroup() Size - HasMaxThreadsPerThreadgroup() bool + IsRemovable() bool + HasIsRemovable() bool // optional - PeerIndex() uint32 - HasPeerIndex() bool + MaxTransferRate() uint64 + HasMaxTransferRate() bool // optional - SupportsFunctionPointersFromRender() bool - HasSupportsFunctionPointersFromRender() bool + ArgumentBuffersSupport() ArgumentBuffersTier + HasArgumentBuffersSupport() bool + + // optional + SupportsShaderBarycentricCoordinates() bool + HasSupportsShaderBarycentricCoordinates() bool + + // optional + ReadWriteTextureSupport() ReadWriteTextureTier + HasReadWriteTextureSupport() bool + + // optional + SupportsRenderDynamicLibraries() bool + HasSupportsRenderDynamicLibraries() bool // optional SupportsFunctionPointers() bool HasSupportsFunctionPointers() bool // optional - CounterSets() []PCounterSet - HasCounterSets() bool + LocationNumber() uint + HasLocationNumber() bool // optional - IsRemovable() bool - HasIsRemovable() bool + SparseTileSizeInBytes() uint + HasSparseTileSizeInBytes() bool + + // optional + MaxBufferLength() uint + HasMaxBufferLength() bool // optional AreProgrammableSamplePositionsSupported() bool HasAreProgrammableSamplePositionsSupported() bool // optional - IsDepth24Stencil8PixelFormatSupported() bool - HasIsDepth24Stencil8PixelFormatSupported() bool + SupportsPullModelInterpolation() bool + HasSupportsPullModelInterpolation() bool // optional - LocationNumber() uint - HasLocationNumber() bool + CurrentAllocatedSize() uint + HasCurrentAllocatedSize() bool // optional - RegistryID() uint64 - HasRegistryID() bool + CounterSets() []CounterSetObject + HasCounterSets() bool // optional - Supports32BitMSAA() bool - HasSupports32BitMSAA() bool + Supports32BitFloatFiltering() bool + HasSupports32BitFloatFiltering() bool // optional - MaxBufferLength() uint - HasMaxBufferLength() bool + SupportsFunctionPointersFromRender() bool + HasSupportsFunctionPointersFromRender() bool // optional - SupportsRenderDynamicLibraries() bool - HasSupportsRenderDynamicLibraries() bool + MaxThreadsPerThreadgroup() Size + HasMaxThreadsPerThreadgroup() bool // optional - PeerGroupID() uint64 - HasPeerGroupID() bool + PeerCount() uint32 + HasPeerCount() bool // optional - MaxArgumentBufferSamplerCount() uint - HasMaxArgumentBufferSamplerCount() bool + HasUnifiedMemory() bool + HasHasUnifiedMemory() bool // optional - IsHeadless() bool - HasIsHeadless() bool + SupportsBCTextureCompression() bool + HasSupportsBCTextureCompression() bool // optional - SupportsRaytracingFromRender() bool - HasSupportsRaytracingFromRender() bool + RegistryID() uint64 + HasRegistryID() bool // optional - SupportsQueryTextureLOD() bool - HasSupportsQueryTextureLOD() bool + SupportsRaytracing() bool + HasSupportsRaytracing() bool // optional - MaxTransferRate() uint64 - HasMaxTransferRate() bool + IsDepth24Stencil8PixelFormatSupported() bool + HasIsDepth24Stencil8PixelFormatSupported() bool // optional - MaxThreadgroupMemoryLength() uint - HasMaxThreadgroupMemoryLength() bool + IsLowPower() bool + HasIsLowPower() bool // optional - HasUnifiedMemory() bool - HasHasUnifiedMemory() bool + MaxThreadgroupMemoryLength() uint + HasMaxThreadgroupMemoryLength() bool // optional SupportsDynamicLibraries() bool HasSupportsDynamicLibraries() bool // optional - CurrentAllocatedSize() uint - HasCurrentAllocatedSize() bool + MaxArgumentBufferSamplerCount() uint + HasMaxArgumentBufferSamplerCount() bool // optional - ArgumentBuffersSupport() ArgumentBuffersTier - HasArgumentBuffersSupport() bool + 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 + + // optional + PeerGroupID() uint64 + HasPeerGroupID() bool } -// A concrete type wrapper for the [PDevice] protocol. -type DeviceWrapper struct { +// ensure impl type implements protocol interface +var _ PDevice = (*DeviceObject)(nil) + +// A concrete type for the [PDevice] protocol. +type DeviceObject struct { objc.Object } -func (d_ DeviceWrapper) HasSupportsFamily() bool { - return d_.RespondsToSelector(objc.Sel("supportsFamily:")) +func (d_ DeviceObject) HasNewDefaultLibrary() bool { + return d_.RespondsToSelector(objc.Sel("newDefaultLibrary")) } -// Returns a Boolean value that indicates whether the GPU device supports the feature set of a specific GPU family. [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/3143473-supportsfamily?language=objc -func (d_ DeviceWrapper) SupportsFamily(gpuFamily GPUFamily) bool { - rv := objc.Call[bool](d_, objc.Sel("supportsFamily:"), gpuFamily) +// [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 } -func (d_ DeviceWrapper) HasMinimumLinearTextureAlignmentForPixelFormat() bool { - return d_.RespondsToSelector(objc.Sel("minimumLinearTextureAlignmentForPixelFormat:")) +func (d_ DeviceObject) HasNewBufferWithBytesLengthOptions() bool { + return d_.RespondsToSelector(objc.Sel("newBufferWithBytes:length:options:")) } -// Returns the minimum alignment the GPU device requires to create a linear texture from a buffer. [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/2866126-minimumlineartexturealignmentfor?language=objc -func (d_ DeviceWrapper) MinimumLinearTextureAlignmentForPixelFormat(format PixelFormat) uint { - rv := objc.Call[uint](d_, objc.Sel("minimumLinearTextureAlignmentForPixelFormat:"), format) +// [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_ DeviceWrapper) HasNewDynamicLibraryError() bool { - return d_.RespondsToSelector(objc.Sel("newDynamicLibrary:error:")) +func (d_ DeviceObject) HasSupportsVertexAmplificationCount() bool { + return d_.RespondsToSelector(objc.Sel("supportsVertexAmplificationCount:")) } -// Creates a Metal dynamic library instance from a Metal library 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/3553974-newdynamiclibrary?language=objc -func (d_ DeviceWrapper) NewDynamicLibraryError(library PLibrary, error foundation.IError) DynamicLibraryWrapper { - po0 := objc.WrapAsProtocol("MTLLibrary", library) - rv := objc.Call[DynamicLibraryWrapper](d_, objc.Sel("newDynamicLibrary:error:"), po0, objc.Ptr(error)) - rv.Autorelease() +// [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_ DeviceWrapper) HasSampleTimestampsGpuTimestamp() bool { - return d_.RespondsToSelector(objc.Sel("sampleTimestamps:gpuTimestamp:")) +func (d_ DeviceObject) HasNewLibraryWithSourceOptionsError() bool { + return d_.RespondsToSelector(objc.Sel("newLibraryWithSource:options:error:")) } -// Captures and returns a CPU timestamp and a GPU timestamp from the same moment in time. [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/3194378-sampletimestamps?language=objc -func (d_ DeviceWrapper) 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/1433431-newlibrarywithsource?language=objc +func (d_ DeviceObject) NewLibraryWithSourceOptionsError(source string, options CompileOptions, error foundation.Error) LibraryObject { + rv := objc.Call[LibraryObject](d_, objc.Sel("newLibraryWithSource:options:error:"), source, objc.Ptr(options), objc.Ptr(error)) + return rv } -func (d_ DeviceWrapper) HasNewTextureWithDescriptor() bool { - return d_.RespondsToSelector(objc.Sel("newTextureWithDescriptor:")) +func (d_ DeviceObject) HasNewSharedEventWithHandle() bool { + return d_.RespondsToSelector(objc.Sel("newSharedEventWithHandle:")) } -// Creates a new texture instance. [Full Topic] +// Recreates a shared event from a handle. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metal/mtldevice/1433425-newtexturewithdescriptor?language=objc -func (d_ DeviceWrapper) NewTextureWithDescriptor(descriptor ITextureDescriptor) TextureWrapper { - rv := objc.Call[TextureWrapper](d_, objc.Sel("newTextureWithDescriptor:"), objc.Ptr(descriptor)) - rv.Autorelease() +// [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:"), objc.Ptr(sharedEventHandle)) return rv } -func (d_ DeviceWrapper) HasNewBinaryArchiveWithDescriptorError() bool { +func (d_ DeviceObject) HasNewBinaryArchiveWithDescriptorError() bool { return d_.RespondsToSelector(objc.Sel("newBinaryArchiveWithDescriptor:error:")) } // Creates a Metal binary archive instance. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/metal/mtldevice/3553973-newbinaryarchivewithdescriptor?language=objc -func (d_ DeviceWrapper) NewBinaryArchiveWithDescriptorError(descriptor IBinaryArchiveDescriptor, error foundation.IError) BinaryArchiveWrapper { - rv := objc.Call[BinaryArchiveWrapper](d_, objc.Sel("newBinaryArchiveWithDescriptor:error:"), objc.Ptr(descriptor), objc.Ptr(error)) - rv.Autorelease() +func (d_ DeviceObject) NewBinaryArchiveWithDescriptorError(descriptor BinaryArchiveDescriptor, error foundation.Error) BinaryArchiveObject { + rv := objc.Call[BinaryArchiveObject](d_, objc.Sel("newBinaryArchiveWithDescriptor:error:"), objc.Ptr(descriptor), objc.Ptr(error)) return rv } -func (d_ DeviceWrapper) HasNewAccelerationStructureWithSize() bool { - return d_.RespondsToSelector(objc.Sel("newAccelerationStructureWithSize:")) +func (d_ DeviceObject) HasNewIndirectCommandBufferWithDescriptorMaxCommandCountOptions() bool { + return d_.RespondsToSelector(objc.Sel("newIndirectCommandBufferWithDescriptor:maxCommandCount:options:")) } -// Creates a new acceleration structure with a specific size. [Full Topic] +// Creates an indirect command buffer instance. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metal/mtldevice/3553972-newaccelerationstructurewithsize?language=objc -func (d_ DeviceWrapper) NewAccelerationStructureWithSize(size uint) AccelerationStructureWrapper { - rv := objc.Call[AccelerationStructureWrapper](d_, objc.Sel("newAccelerationStructureWithSize:"), size) - rv.Autorelease() +// [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:"), objc.Ptr(descriptor), maxCount, options) return rv } -func (d_ DeviceWrapper) HasSupportsRasterizationRateMapWithLayerCount() bool { - return d_.RespondsToSelector(objc.Sel("supportsRasterizationRateMapWithLayerCount:")) +func (d_ DeviceObject) HasNewSharedTextureWithHandle() bool { + return d_.RespondsToSelector(objc.Sel("newSharedTextureWithHandle:")) } -// Returns a Boolean value that indicates whether the GPU can create a rasterization rate map with a specific number of layers. [Full Topic] +// Creates a texture that references a shared texture. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metal/mtldevice/3131682-supportsrasterizationratemapwith?language=objc -func (d_ DeviceWrapper) SupportsRasterizationRateMapWithLayerCount(layerCount uint) bool { - rv := objc.Call[bool](d_, objc.Sel("supportsRasterizationRateMapWithLayerCount:"), layerCount) +// [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:"), objc.Ptr(sharedHandle)) return rv } -func (d_ DeviceWrapper) HasNewLibraryWithSourceOptionsError() bool { - return d_.RespondsToSelector(objc.Sel("newLibraryWithSource:options:error:")) +func (d_ DeviceObject) HasNewComputePipelineStateWithFunctionError() bool { + return d_.RespondsToSelector(objc.Sel("newComputePipelineStateWithFunction:error:")) } -// Synchronously creates a Metal library instance by compiling the functions in a source string. [Full Topic] +// Synchronously creates a new compute pipeline state with a function instance. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metal/mtldevice/1433431-newlibrarywithsource?language=objc -func (d_ DeviceWrapper) NewLibraryWithSourceOptionsError(source string, options ICompileOptions, error foundation.IError) LibraryWrapper { - rv := objc.Call[LibraryWrapper](d_, objc.Sel("newLibraryWithSource:options:error:"), source, objc.Ptr(options), objc.Ptr(error)) - rv.Autorelease() +// [Full Topic]: https://developer.apple.com/documentation/metal/mtldevice/1433395-newcomputepipelinestatewithfunct?language=objc +func (d_ DeviceObject) NewComputePipelineStateWithFunctionError(computeFunction FunctionObject, error foundation.Error) ComputePipelineStateObject { + po0 := objc.WrapAsProtocol("MTLFunction", computeFunction) + rv := objc.Call[ComputePipelineStateObject](d_, objc.Sel("newComputePipelineStateWithFunction:error:"), po0, objc.Ptr(error)) return rv } -func (d_ DeviceWrapper) HasNewArgumentEncoderWithArguments() bool { - return d_.RespondsToSelector(objc.Sel("newArgumentEncoderWithArguments:")) +func (d_ DeviceObject) HasSparseTileSizeWithTextureTypePixelFormatSampleCount() bool { + return d_.RespondsToSelector(objc.Sel("sparseTileSizeWithTextureType:pixelFormat:sampleCount:")) } -// Creates a new argument encoder for an array of arguments. [Full Topic] +// Returns the dimensions of a sparse tile for a texture. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metal/mtldevice/2915744-newargumentencoderwitharguments?language=objc -func (d_ DeviceWrapper) NewArgumentEncoderWithArguments(arguments []IArgumentDescriptor) ArgumentEncoderWrapper { - rv := objc.Call[ArgumentEncoderWrapper](d_, objc.Sel("newArgumentEncoderWithArguments:"), arguments) - rv.Autorelease() +// [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_ DeviceWrapper) HasNewComputePipelineStateWithDescriptorOptionsCompletionHandler() bool { - return d_.RespondsToSelector(objc.Sel("newComputePipelineStateWithDescriptor:options:completionHandler:")) +func (d_ DeviceObject) HasNewLibraryWithURLError() bool { + return d_.RespondsToSelector(objc.Sel("newLibraryWithURL:error:")) } -// Asynchronously creates a compute pipeline state and reflection information. [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/1433403-newcomputepipelinestatewithdescr?language=objc -func (d_ DeviceWrapper) NewComputePipelineStateWithDescriptorOptionsCompletionHandler(descriptor IComputePipelineDescriptor, options PipelineOption, completionHandler NewComputePipelineStateWithReflectionCompletionHandler) { - objc.Call[objc.Void](d_, objc.Sel("newComputePipelineStateWithDescriptor:options:completionHandler:"), objc.Ptr(descriptor), options, completionHandler) +// [Full Topic]: https://developer.apple.com/documentation/metal/mtldevice/2877432-newlibrarywithurl?language=objc +func (d_ DeviceObject) NewLibraryWithURLError(url foundation.URL, error foundation.Error) LibraryObject { + rv := objc.Call[LibraryObject](d_, objc.Sel("newLibraryWithURL:error:"), objc.Ptr(url), objc.Ptr(error)) + return rv } -func (d_ DeviceWrapper) HasNewCommandQueue() bool { - return d_.RespondsToSelector(objc.Sel("newCommandQueue")) +func (d_ DeviceObject) HasNewAccelerationStructureWithDescriptor() bool { + return d_.RespondsToSelector(objc.Sel("newAccelerationStructureWithDescriptor:")) } -// Creates a queue you use to submit rendering and computation commands to a GPU. [Full Topic] +// Creates a new ray-tracing acceleration structure from a descriptor. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metal/mtldevice/1433388-newcommandqueue?language=objc -func (d_ DeviceWrapper) NewCommandQueue() CommandQueueWrapper { - rv := objc.Call[CommandQueueWrapper](d_, objc.Sel("newCommandQueue")) - rv.Autorelease() +// [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:"), objc.Ptr(descriptor)) return rv } -func (d_ DeviceWrapper) HasSupportsTextureSampleCount() bool { +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:")) +} + +// Synchronously creates a compute pipeline state and reflection with a function instance. [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 foundation.Error) ComputePipelineStateObject { + po0 := objc.WrapAsProtocol("MTLFunction", computeFunction) + rv := objc.Call[ComputePipelineStateObject](d_, objc.Sel("newComputePipelineStateWithFunction:options:reflection:error:"), po0, options, reflection, objc.Ptr(error)) + return rv +} + +func (d_ DeviceObject) HasNewHeapWithDescriptor() bool { + return d_.RespondsToSelector(objc.Sel("newHeapWithDescriptor:")) +} + +// Creates a new GPU heap instance. [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:"), objc.Ptr(descriptor)) + return rv +} + +func (d_ DeviceObject) HasNewTextureWithDescriptor() bool { + return d_.RespondsToSelector(objc.Sel("newTextureWithDescriptor:")) +} + +// Creates a new texture instance. [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:"), objc.Ptr(descriptor)) + 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:")) +} + +// Creates a counter sample buffer. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/metal/mtldevice/3081741-newcountersamplebufferwithdescri?language=objc +func (d_ DeviceObject) NewCounterSampleBufferWithDescriptorError(descriptor CounterSampleBufferDescriptor, error foundation.Error) CounterSampleBufferObject { + rv := objc.Call[CounterSampleBufferObject](d_, objc.Sel("newCounterSampleBufferWithDescriptor:error:"), objc.Ptr(descriptor), objc.Ptr(error)) + return rv +} + +func (d_ DeviceObject) HasHeapTextureSizeAndAlignWithDescriptor() bool { + return d_.RespondsToSelector(objc.Sel("heapTextureSizeAndAlignWithDescriptor:")) +} + +// 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/1649927-heaptexturesizeandalignwithdescr?language=objc +func (d_ DeviceObject) HeapTextureSizeAndAlignWithDescriptor(desc TextureDescriptor) SizeAndAlign { + rv := objc.Call[SizeAndAlign](d_, objc.Sel("heapTextureSizeAndAlignWithDescriptor:"), objc.Ptr(desc)) + return rv +} + +func (d_ DeviceObject) HasNewDynamicLibraryWithURLError() bool { + return d_.RespondsToSelector(objc.Sel("newDynamicLibraryWithURL:error:")) +} + +// 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/3564458-newdynamiclibrarywithurl?language=objc +func (d_ DeviceObject) NewDynamicLibraryWithURLError(url foundation.URL, error foundation.Error) DynamicLibraryObject { + rv := objc.Call[DynamicLibraryObject](d_, objc.Sel("newDynamicLibraryWithURL:error:"), objc.Ptr(url), objc.Ptr(error)) + return rv +} + +func (d_ DeviceObject) HasSupportsTextureSampleCount() bool { return d_.RespondsToSelector(objc.Sel("supportsTextureSampleCount:")) } -// Returns a Boolean value that indicates whether the GPU can sample a texture with a specific number of sample points. [Full Topic] +// Returns a Boolean value that indicates whether the GPU can sample a texture with a specific number of sample points. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/metal/mtldevice/1433355-supportstexturesamplecount?language=objc +func (d_ DeviceObject) SupportsTextureSampleCount(sampleCount uint) bool { + rv := objc.Call[bool](d_, objc.Sel("supportsTextureSampleCount:"), sampleCount) + 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:"), objc.Ptr(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 foundation.Error) RenderPipelineStateObject { + rv := objc.Call[RenderPipelineStateObject](d_, objc.Sel("newRenderPipelineStateWithDescriptor:options:reflection:error:"), objc.Ptr(descriptor), options, reflection, objc.Ptr(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:"), objc.Ptr(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 foundation.Error) LibraryObject { + rv := objc.Call[LibraryObject](d_, objc.Sel("newDefaultLibraryWithBundle:error:"), objc.Ptr(bundle), objc.Ptr(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/1433355-supportstexturesamplecount?language=objc -func (d_ DeviceWrapper) SupportsTextureSampleCount(sampleCount uint) bool { - rv := objc.Call[bool](d_, objc.Sel("supportsTextureSampleCount:"), sampleCount) +// [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:"), objc.Ptr(descriptor)) return rv } -func (d_ DeviceWrapper) HasMinimumTextureBufferAlignmentForPixelFormat() bool { +func (d_ DeviceObject) HasMinimumTextureBufferAlignmentForPixelFormat() bool { return d_.RespondsToSelector(objc.Sel("minimumTextureBufferAlignmentForPixelFormat:")) } // Returns the minimum alignment the GPU device requires to create a texture buffer from a buffer. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/metal/mtldevice/2966564-minimumtexturebufferalignmentfor?language=objc -func (d_ DeviceWrapper) MinimumTextureBufferAlignmentForPixelFormat(format PixelFormat) uint { +func (d_ DeviceObject) MinimumTextureBufferAlignmentForPixelFormat(format PixelFormat) uint { rv := objc.Call[uint](d_, objc.Sel("minimumTextureBufferAlignmentForPixelFormat:"), format) return rv } -func (d_ DeviceWrapper) HasNewFence() bool { - return d_.RespondsToSelector(objc.Sel("newFence")) -} - -// Creates a new memory fence instance. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/metal/mtldevice/1649923-newfence?language=objc -func (d_ DeviceWrapper) NewFence() FenceWrapper { - rv := objc.Call[FenceWrapper](d_, objc.Sel("newFence")) - rv.Autorelease() - return rv -} - -func (d_ DeviceWrapper) HasGetDefaultSamplePositionsCount() bool { - return d_.RespondsToSelector(objc.Sel("getDefaultSamplePositions:count:")) +func (d_ DeviceObject) HasNewRenderPipelineStateWithDescriptorOptionsCompletionHandler() bool { + return d_.RespondsToSelector(objc.Sel("newRenderPipelineStateWithDescriptor:options:completionHandler:")) } -// Retrieves the default sample positions for a specific sample count. [Full Topic] +// Asynchronously creates a render pipeline state and reflection information. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metal/mtldevice/2866120-getdefaultsamplepositions?language=objc -func (d_ DeviceWrapper) GetDefaultSamplePositionsCount(positions *SamplePosition, count uint) { - objc.Call[objc.Void](d_, objc.Sel("getDefaultSamplePositions:count:"), positions, count) +// [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:"), objc.Ptr(descriptor), options, completionHandler) } -func (d_ DeviceWrapper) HasNewRasterizationRateMapWithDescriptor() bool { - return d_.RespondsToSelector(objc.Sel("newRasterizationRateMapWithDescriptor:")) +func (d_ DeviceObject) HasNewCommandQueueWithMaxCommandBufferCount() bool { + return d_.RespondsToSelector(objc.Sel("newCommandQueueWithMaxCommandBufferCount:")) } -// Creates a rasterization rate map instance. [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/3131681-newrasterizationratemapwithdescr?language=objc -func (d_ DeviceWrapper) NewRasterizationRateMapWithDescriptor(descriptor IRasterizationRateMapDescriptor) RasterizationRateMapWrapper { - rv := objc.Call[RasterizationRateMapWrapper](d_, objc.Sel("newRasterizationRateMapWithDescriptor:"), objc.Ptr(descriptor)) - rv.Autorelease() +// [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_ DeviceWrapper) HasNewCounterSampleBufferWithDescriptorError() bool { - return d_.RespondsToSelector(objc.Sel("newCounterSampleBufferWithDescriptor:error:")) +func (d_ DeviceObject) HasNewLibraryWithStitchedDescriptorError() bool { + return d_.RespondsToSelector(objc.Sel("newLibraryWithStitchedDescriptor:error:")) } -// Creates a counter sample buffer. [Full Topic] +// Synchronously creates a Metal library from the function stitching graphs in a descriptor. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metal/mtldevice/3081741-newcountersamplebufferwithdescri?language=objc -func (d_ DeviceWrapper) NewCounterSampleBufferWithDescriptorError(descriptor ICounterSampleBufferDescriptor, error foundation.IError) CounterSampleBufferWrapper { - rv := objc.Call[CounterSampleBufferWrapper](d_, objc.Sel("newCounterSampleBufferWithDescriptor:error:"), objc.Ptr(descriptor), objc.Ptr(error)) - rv.Autorelease() +// [Full Topic]: https://developer.apple.com/documentation/metal/mtldevice/3857572-newlibrarywithstitcheddescriptor?language=objc +func (d_ DeviceObject) NewLibraryWithStitchedDescriptorError(descriptor StitchedLibraryDescriptor, error foundation.Error) LibraryObject { + rv := objc.Call[LibraryObject](d_, objc.Sel("newLibraryWithStitchedDescriptor:error:"), objc.Ptr(descriptor), objc.Ptr(error)) return rv } -func (d_ DeviceWrapper) HasNewCommandQueueWithMaxCommandBufferCount() bool { - return d_.RespondsToSelector(objc.Sel("newCommandQueueWithMaxCommandBufferCount:")) +func (d_ DeviceObject) HasNewLibraryWithStitchedDescriptorCompletionHandler() bool { + return d_.RespondsToSelector(objc.Sel("newLibraryWithStitchedDescriptor:completionHandler:")) } -// 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] +// Asynchronously creates a Metal library from the function stitching graphs in a descriptor. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metal/mtldevice/1433433-newcommandqueuewithmaxcommandbuf?language=objc -func (d_ DeviceWrapper) NewCommandQueueWithMaxCommandBufferCount(maxCommandBufferCount uint) CommandQueueWrapper { - rv := objc.Call[CommandQueueWrapper](d_, objc.Sel("newCommandQueueWithMaxCommandBufferCount:"), maxCommandBufferCount) - rv.Autorelease() - 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:"), objc.Ptr(descriptor), completionHandler) } -func (d_ DeviceWrapper) HasNewHeapWithDescriptor() bool { - return d_.RespondsToSelector(objc.Sel("newHeapWithDescriptor:")) +func (d_ DeviceObject) HasNewCommandQueue() bool { + return d_.RespondsToSelector(objc.Sel("newCommandQueue")) } -// Creates a new GPU heap instance. [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/1649928-newheapwithdescriptor?language=objc -func (d_ DeviceWrapper) NewHeapWithDescriptor(descriptor IHeapDescriptor) HeapWrapper { - rv := objc.Call[HeapWrapper](d_, objc.Sel("newHeapWithDescriptor:"), objc.Ptr(descriptor)) - rv.Autorelease() +// [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 } -func (d_ DeviceWrapper) HasNewSharedTextureWithDescriptor() bool { - return d_.RespondsToSelector(objc.Sel("newSharedTextureWithDescriptor:")) +func (d_ DeviceObject) HasNewAccelerationStructureWithSize() bool { + return d_.RespondsToSelector(objc.Sel("newAccelerationStructureWithSize:")) } -// Creates a texture that you can share across process boundaries. [Full Topic] +// Creates a new acceleration structure with a specific size. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metal/mtldevice/2967421-newsharedtexturewithdescriptor?language=objc -func (d_ DeviceWrapper) NewSharedTextureWithDescriptor(descriptor ITextureDescriptor) TextureWrapper { - rv := objc.Call[TextureWrapper](d_, objc.Sel("newSharedTextureWithDescriptor:"), objc.Ptr(descriptor)) - rv.Autorelease() +// [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_ DeviceWrapper) HasConvertSparsePixelRegionsToTileRegionsWithTileSizeAlignmentModeNumRegions() bool { - return d_.RespondsToSelector(objc.Sel("convertSparsePixelRegions:toTileRegions:withTileSize:alignmentMode:numRegions:")) +func (d_ DeviceObject) HasNewTextureWithDescriptorIosurfacePlane() bool { + return d_.RespondsToSelector(objc.Sel("newTextureWithDescriptor:iosurface:plane:")) } -// Converts a list of sparse pixel regions to tile regions. [Full Topic] +// Creates a texture instance that uses I/O surface to store its underlying data. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metal/mtldevice/3197982-convertsparsepixelregions?language=objc -func (d_ DeviceWrapper) 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/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:"), objc.Ptr(descriptor), iosurface, plane) + return rv } -func (d_ DeviceWrapper) HasHeapBufferSizeAndAlignWithLengthOptions() bool { - return d_.RespondsToSelector(objc.Sel("heapBufferSizeAndAlignWithLength:options:")) +func (d_ DeviceObject) HasSupportsFamily() bool { + return d_.RespondsToSelector(objc.Sel("supportsFamily:")) } -// Returns the size and alignment, in bytes, of a buffer if you create it from a heap. [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/1649922-heapbuffersizeandalignwithlength?language=objc -func (d_ DeviceWrapper) 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/3143473-supportsfamily?language=objc +func (d_ DeviceObject) SupportsFamily(gpuFamily GPUFamily) bool { + rv := objc.Call[bool](d_, objc.Sel("supportsFamily:"), gpuFamily) return rv } -func (d_ DeviceWrapper) HasNewIndirectCommandBufferWithDescriptorMaxCommandCountOptions() bool { - return d_.RespondsToSelector(objc.Sel("newIndirectCommandBufferWithDescriptor:maxCommandCount:options:")) +func (d_ DeviceObject) HasNewRenderPipelineStateWithTileDescriptorOptionsCompletionHandler() bool { + return d_.RespondsToSelector(objc.Sel("newRenderPipelineStateWithTileDescriptor:options:completionHandler:")) } -// Creates an indirect command buffer 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/2967420-newindirectcommandbufferwithdesc?language=objc -func (d_ DeviceWrapper) NewIndirectCommandBufferWithDescriptorMaxCommandCountOptions(descriptor IIndirectCommandBufferDescriptor, maxCount uint, options ResourceOptions) IndirectCommandBufferWrapper { - rv := objc.Call[IndirectCommandBufferWrapper](d_, objc.Sel("newIndirectCommandBufferWithDescriptor:maxCommandCount:options:"), objc.Ptr(descriptor), maxCount, options) - rv.Autorelease() - 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:"), objc.Ptr(descriptor), options, completionHandler) } -func (d_ DeviceWrapper) HasHeapTextureSizeAndAlignWithDescriptor() bool { - return d_.RespondsToSelector(objc.Sel("heapTextureSizeAndAlignWithDescriptor:")) +func (d_ DeviceObject) HasNewSamplerStateWithDescriptor() bool { + return d_.RespondsToSelector(objc.Sel("newSamplerStateWithDescriptor:")) } -// Returns the size and alignment, in bytes, of a texture if you create it from a heap. [Full Topic] +// Creates a sampler state instance. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metal/mtldevice/1649927-heaptexturesizeandalignwithdescr?language=objc -func (d_ DeviceWrapper) HeapTextureSizeAndAlignWithDescriptor(desc ITextureDescriptor) SizeAndAlign { - rv := objc.Call[SizeAndAlign](d_, objc.Sel("heapTextureSizeAndAlignWithDescriptor:"), objc.Ptr(desc)) +// [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:"), objc.Ptr(descriptor)) return rv } -func (d_ DeviceWrapper) HasNewLibraryWithDataError() bool { - return d_.RespondsToSelector(objc.Sel("newLibraryWithData:error:")) +func (d_ DeviceObject) HasSupportsCounterSampling() bool { + return d_.RespondsToSelector(objc.Sel("supportsCounterSampling:")) } -// Creates a Metal library instance that contains the functions in a precompiled Metal library. [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/1433391-newlibrarywithdata?language=objc -func (d_ DeviceWrapper) NewLibraryWithDataError(data dispatch.Data, error foundation.IError) LibraryWrapper { - rv := objc.Call[LibraryWrapper](d_, objc.Sel("newLibraryWithData:error:"), data, objc.Ptr(error)) - rv.Autorelease() +// [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_ DeviceWrapper) HasNewDefaultLibraryWithBundleError() bool { - return d_.RespondsToSelector(objc.Sel("newDefaultLibraryWithBundle:error:")) +func (d_ DeviceObject) HasNewSharedEvent() bool { + return d_.RespondsToSelector(objc.Sel("newSharedEvent")) } -// Creates a Metal library instance that contains the functions in a bundle’s default Metal library. [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/2177054-newdefaultlibrarywithbundle?language=objc -func (d_ DeviceWrapper) NewDefaultLibraryWithBundleError(bundle foundation.IBundle, error foundation.IError) LibraryWrapper { - rv := objc.Call[LibraryWrapper](d_, objc.Sel("newDefaultLibraryWithBundle:error:"), objc.Ptr(bundle), objc.Ptr(error)) - rv.Autorelease() +// [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_ DeviceWrapper) HasNewLibraryWithStitchedDescriptorCompletionHandler() bool { - return d_.RespondsToSelector(objc.Sel("newLibraryWithStitchedDescriptor:completionHandler:")) +func (d_ DeviceObject) HasNewComputePipelineStateWithDescriptorOptionsReflectionError() bool { + return d_.RespondsToSelector(objc.Sel("newComputePipelineStateWithDescriptor:options:reflection:error:")) } -// Asynchronously creates a Metal library from the function stitching graphs in a descriptor. [Full Topic] +// Synchronously creates a compute pipeline state and reflection information. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metal/mtldevice/3857571-newlibrarywithstitcheddescriptor?language=objc -func (d_ DeviceWrapper) NewLibraryWithStitchedDescriptorCompletionHandler(descriptor IStitchedLibraryDescriptor, completionHandler NewLibraryCompletionHandler) { - objc.Call[objc.Void](d_, objc.Sel("newLibraryWithStitchedDescriptor:completionHandler:"), objc.Ptr(descriptor), completionHandler) +// [Full Topic]: https://developer.apple.com/documentation/metal/mtldevice/1433353-newcomputepipelinestatewithdescr?language=objc +func (d_ DeviceObject) NewComputePipelineStateWithDescriptorOptionsReflectionError(descriptor ComputePipelineDescriptor, options PipelineOption, reflection *AutoreleasedComputePipelineReflection, error foundation.Error) ComputePipelineStateObject { + rv := objc.Call[ComputePipelineStateObject](d_, objc.Sel("newComputePipelineStateWithDescriptor:options:reflection:error:"), objc.Ptr(descriptor), options, reflection, objc.Ptr(error)) + return rv } -func (d_ DeviceWrapper) HasNewAccelerationStructureWithDescriptor() bool { - return d_.RespondsToSelector(objc.Sel("newAccelerationStructureWithDescriptor:")) +func (d_ DeviceObject) HasHeapBufferSizeAndAlignWithLengthOptions() bool { + return d_.RespondsToSelector(objc.Sel("heapBufferSizeAndAlignWithLength:options:")) } -// Creates a new ray-tracing acceleration structure from a descriptor. [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/3553971-newaccelerationstructurewithdesc?language=objc -func (d_ DeviceWrapper) NewAccelerationStructureWithDescriptor(descriptor IAccelerationStructureDescriptor) AccelerationStructureWrapper { - rv := objc.Call[AccelerationStructureWrapper](d_, objc.Sel("newAccelerationStructureWithDescriptor:"), objc.Ptr(descriptor)) - rv.Autorelease() +// [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_ DeviceWrapper) HasNewBufferWithBytesNoCopyLengthOptionsDeallocator() bool { - return d_.RespondsToSelector(objc.Sel("newBufferWithBytesNoCopy:length:options:deallocator:")) +func (d_ DeviceObject) HasNewRasterizationRateMapWithDescriptor() bool { + return d_.RespondsToSelector(objc.Sel("newRasterizationRateMapWithDescriptor:")) } -// Creates a buffer that wraps an existing contiguous memory allocation. [Full Topic] +// Creates a rasterization rate map instance. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metal/mtldevice/1433382-newbufferwithbytesnocopy?language=objc -func (d_ DeviceWrapper) NewBufferWithBytesNoCopyLengthOptionsDeallocator(pointer unsafe.Pointer, length uint, options ResourceOptions, deallocator func(pointer unsafe.Pointer, length uint)) BufferWrapper { - rv := objc.Call[BufferWrapper](d_, objc.Sel("newBufferWithBytesNoCopy:length:options:deallocator:"), pointer, length, options, deallocator) - rv.Autorelease() +// [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:"), objc.Ptr(descriptor)) return rv } -func (d_ DeviceWrapper) HasNewEvent() bool { +func (d_ DeviceObject) HasNewEvent() bool { return d_.RespondsToSelector(objc.Sel("newEvent")) } // Creates a new event instance that you can use to synchronize commands and resources within the same GPU device. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/metal/mtldevice/2966565-newevent?language=objc -func (d_ DeviceWrapper) NewEvent() EventWrapper { - rv := objc.Call[EventWrapper](d_, objc.Sel("newEvent")) - rv.Autorelease() +func (d_ DeviceObject) NewEvent() EventObject { + rv := objc.Call[EventObject](d_, objc.Sel("newEvent")) return rv } -func (d_ DeviceWrapper) HasNewBufferWithLengthOptions() bool { - return d_.RespondsToSelector(objc.Sel("newBufferWithLength:options:")) +func (d_ DeviceObject) HasNewFence() bool { + return d_.RespondsToSelector(objc.Sel("newFence")) } -// Creates a buffer the method clears with zero values. [Full Topic] +// Creates a new memory fence instance. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metal/mtldevice/1433375-newbufferwithlength?language=objc -func (d_ DeviceWrapper) NewBufferWithLengthOptions(length uint, options ResourceOptions) BufferWrapper { - rv := objc.Call[BufferWrapper](d_, objc.Sel("newBufferWithLength:options:"), length, options) - rv.Autorelease() +// [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_ DeviceWrapper) HasNewBufferWithBytesLengthOptions() bool { - return d_.RespondsToSelector(objc.Sel("newBufferWithBytes:length:options:")) +func (d_ DeviceObject) HasNewComputePipelineStateWithDescriptorOptionsCompletionHandler() bool { + return d_.RespondsToSelector(objc.Sel("newComputePipelineStateWithDescriptor:options:completionHandler:")) } -// Allocates a new buffer of a given length and initializes its contents by copying existing data into it. [Full Topic] +// Asynchronously creates a compute pipeline state and reflection information. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metal/mtldevice/1433429-newbufferwithbytes?language=objc -func (d_ DeviceWrapper) NewBufferWithBytesLengthOptions(pointer unsafe.Pointer, length uint, options ResourceOptions) BufferWrapper { - rv := objc.Call[BufferWrapper](d_, objc.Sel("newBufferWithBytes:length:options:"), pointer, length, options) - rv.Autorelease() - 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:"), objc.Ptr(descriptor), options, completionHandler) } -func (d_ DeviceWrapper) HasNewSharedEvent() bool { - return d_.RespondsToSelector(objc.Sel("newSharedEvent")) +func (d_ DeviceObject) HasSampleTimestampsGpuTimestamp() bool { + return d_.RespondsToSelector(objc.Sel("sampleTimestamps:gpuTimestamp:")) } -// Creates a new shared event instance that you can use to synchronize commands and resources across different GPU devices. [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/2966569-newsharedevent?language=objc -func (d_ DeviceWrapper) NewSharedEvent() SharedEventWrapper { - rv := objc.Call[SharedEventWrapper](d_, objc.Sel("newSharedEvent")) - rv.Autorelease() - 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_ DeviceWrapper) HasSparseTileSizeWithTextureTypePixelFormatSampleCount() bool { - return d_.RespondsToSelector(objc.Sel("sparseTileSizeWithTextureType:pixelFormat:sampleCount:")) +func (d_ DeviceObject) HasSupportsRasterizationRateMapWithLayerCount() bool { + return d_.RespondsToSelector(objc.Sel("supportsRasterizationRateMapWithLayerCount:")) } -// Returns the dimensions of a sparse tile for a texture. [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/3377856-sparsetilesizewithtexturetype?language=objc -func (d_ DeviceWrapper) SparseTileSizeWithTextureTypePixelFormatSampleCount(textureType TextureType, pixelFormat PixelFormat, sampleCount uint) Size { - rv := objc.Call[Size](d_, objc.Sel("sparseTileSizeWithTextureType:pixelFormat:sampleCount:"), textureType, pixelFormat, sampleCount) +// [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_ DeviceWrapper) HasNewSamplerStateWithDescriptor() bool { - return d_.RespondsToSelector(objc.Sel("newSamplerStateWithDescriptor:")) +func (d_ DeviceObject) HasNewArgumentEncoderWithArguments() bool { + return d_.RespondsToSelector(objc.Sel("newArgumentEncoderWithArguments:")) } -// Creates a sampler state instance. [Full Topic] +// Creates a new argument encoder for an array of arguments. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metal/mtldevice/1433408-newsamplerstatewithdescriptor?language=objc -func (d_ DeviceWrapper) NewSamplerStateWithDescriptor(descriptor ISamplerDescriptor) SamplerStateWrapper { - rv := objc.Call[SamplerStateWrapper](d_, objc.Sel("newSamplerStateWithDescriptor:"), objc.Ptr(descriptor)) - rv.Autorelease() +// [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_ DeviceWrapper) HasNewDynamicLibraryWithURLError() bool { - return d_.RespondsToSelector(objc.Sel("newDynamicLibraryWithURL:error:")) +func (d_ DeviceObject) HasMinimumLinearTextureAlignmentForPixelFormat() bool { + return d_.RespondsToSelector(objc.Sel("minimumLinearTextureAlignmentForPixelFormat:")) } -// Creates a Metal dynamic library instance that contains the functions in the Metal library file at a URL. [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/3564458-newdynamiclibrarywithurl?language=objc -func (d_ DeviceWrapper) NewDynamicLibraryWithURLError(url foundation.IURL, error foundation.IError) DynamicLibraryWrapper { - rv := objc.Call[DynamicLibraryWrapper](d_, objc.Sel("newDynamicLibraryWithURL:error:"), objc.Ptr(url), objc.Ptr(error)) - rv.Autorelease() +// [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_ DeviceWrapper) HasNewRenderPipelineStateWithTileDescriptorOptionsCompletionHandler() bool { - return d_.RespondsToSelector(objc.Sel("newRenderPipelineStateWithTileDescriptor:options:completionHandler:")) +func (d_ DeviceObject) HasNewDynamicLibraryError() bool { + return d_.RespondsToSelector(objc.Sel("newDynamicLibrary:error:")) } -// Asynchronously creates a tile shader’s render pipeline state and reflection information. [Full Topic] +// Creates a Metal dynamic library instance from a Metal library instance. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metal/mtldevice/2866129-newrenderpipelinestatewithtilede?language=objc -func (d_ DeviceWrapper) NewRenderPipelineStateWithTileDescriptorOptionsCompletionHandler(descriptor ITileRenderPipelineDescriptor, options PipelineOption, completionHandler NewRenderPipelineStateWithReflectionCompletionHandler) { - objc.Call[objc.Void](d_, objc.Sel("newRenderPipelineStateWithTileDescriptor:options:completionHandler:"), objc.Ptr(descriptor), options, completionHandler) +// [Full Topic]: https://developer.apple.com/documentation/metal/mtldevice/3553974-newdynamiclibrary?language=objc +func (d_ DeviceObject) NewDynamicLibraryError(library LibraryObject, error foundation.Error) DynamicLibraryObject { + po0 := objc.WrapAsProtocol("MTLLibrary", library) + rv := objc.Call[DynamicLibraryObject](d_, objc.Sel("newDynamicLibrary:error:"), po0, objc.Ptr(error)) + return rv } -func (d_ DeviceWrapper) HasSupportsCounterSampling() bool { - return d_.RespondsToSelector(objc.Sel("supportsCounterSampling:")) +func (d_ DeviceObject) HasConvertSparsePixelRegionsToTileRegionsWithTileSizeAlignmentModeNumRegions() bool { + return d_.RespondsToSelector(objc.Sel("convertSparsePixelRegions:toTileRegions:withTileSize:alignmentMode:numRegions:")) } -// Returns a Boolean value that indicates whether you can read GPU counters at the specified command boundary. [Full Topic] +// Converts a list of sparse pixel regions to tile regions. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metal/mtldevice/3564459-supportscountersampling?language=objc -func (d_ DeviceWrapper) SupportsCounterSampling(samplingPoint CounterSamplingPoint) bool { - rv := objc.Call[bool](d_, objc.Sel("supportsCounterSampling:"), samplingPoint) - 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_ DeviceWrapper) HasSupportsVertexAmplificationCount() bool { - return d_.RespondsToSelector(objc.Sel("supportsVertexAmplificationCount:")) +func (d_ DeviceObject) HasNewComputePipelineStateWithFunctionOptionsCompletionHandler() bool { + return d_.RespondsToSelector(objc.Sel("newComputePipelineStateWithFunction:options:completionHandler:")) } -// Returns a Boolean value that indicates whether the GPU supports an amplification factor. [Full Topic] +// Asynchronously creates a compute pipeline state and reflection with a function instance. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metal/mtldevice/3197984-supportsvertexamplificationcount?language=objc -func (d_ DeviceWrapper) SupportsVertexAmplificationCount(count uint) bool { - rv := objc.Call[bool](d_, objc.Sel("supportsVertexAmplificationCount:"), count) - return rv +// [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) } -func (d_ DeviceWrapper) HasNewComputePipelineStateWithFunctionCompletionHandler() bool { +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] // // [Full Topic]: https://developer.apple.com/documentation/metal/mtldevice/1433427-newcomputepipelinestatewithfunct?language=objc -func (d_ DeviceWrapper) NewComputePipelineStateWithFunctionCompletionHandler(computeFunction PFunction, completionHandler NewComputePipelineStateCompletionHandler) { +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_ DeviceWrapper) HasAccelerationStructureSizesWithDescriptor() bool { - return d_.RespondsToSelector(objc.Sel("accelerationStructureSizesWithDescriptor:")) +func (d_ DeviceObject) HasNewRenderPipelineStateWithTileDescriptorOptionsReflectionError() bool { + return d_.RespondsToSelector(objc.Sel("newRenderPipelineStateWithTileDescriptor:options:reflection:error:")) } -// Returns the buffer sizes the GPU device needs to build, refit, and store an acceleration structure. [Full Topic] +// Synchronously creates a tile shader’s render pipeline state and reflection information. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metal/mtldevice/3553970-accelerationstructuresizeswithde?language=objc -func (d_ DeviceWrapper) AccelerationStructureSizesWithDescriptor(descriptor IAccelerationStructureDescriptor) AccelerationStructureSizes { - rv := objc.Call[AccelerationStructureSizes](d_, objc.Sel("accelerationStructureSizesWithDescriptor:"), objc.Ptr(descriptor)) +// [Full Topic]: https://developer.apple.com/documentation/metal/mtldevice/2866134-newrenderpipelinestatewithtilede?language=objc +func (d_ DeviceObject) NewRenderPipelineStateWithTileDescriptorOptionsReflectionError(descriptor TileRenderPipelineDescriptor, options PipelineOption, reflection *AutoreleasedRenderPipelineReflection, error foundation.Error) RenderPipelineStateObject { + rv := objc.Call[RenderPipelineStateObject](d_, objc.Sel("newRenderPipelineStateWithTileDescriptor:options:reflection:error:"), objc.Ptr(descriptor), options, reflection, objc.Ptr(error)) return rv } -func (d_ DeviceWrapper) HasNewDefaultLibrary() bool { - return d_.RespondsToSelector(objc.Sel("newDefaultLibrary")) +func (d_ DeviceObject) HasNewDepthStencilStateWithDescriptor() bool { + return d_.RespondsToSelector(objc.Sel("newDepthStencilStateWithDescriptor:")) } -// Creates a Metal library instance that contains the functions from your app’s default Metal library. [Full Topic] +// Creates a depth-stencil state instance. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metal/mtldevice/1433380-newdefaultlibrary?language=objc -func (d_ DeviceWrapper) NewDefaultLibrary() LibraryWrapper { - rv := objc.Call[LibraryWrapper](d_, objc.Sel("newDefaultLibrary")) - rv.Autorelease() +// [Full Topic]: https://developer.apple.com/documentation/metal/mtldevice/1433412-newdepthstencilstatewithdescript?language=objc +func (d_ DeviceObject) NewDepthStencilStateWithDescriptor(descriptor DepthStencilDescriptor) DepthStencilStateObject { + rv := objc.Call[DepthStencilStateObject](d_, objc.Sel("newDepthStencilStateWithDescriptor:"), objc.Ptr(descriptor)) return rv } -func (d_ DeviceWrapper) HasNewDepthStencilStateWithDescriptor() bool { - return d_.RespondsToSelector(objc.Sel("newDepthStencilStateWithDescriptor:")) +func (d_ DeviceObject) HasNewLibraryWithDataError() bool { + return d_.RespondsToSelector(objc.Sel("newLibraryWithData:error:")) } -// Creates a depth-stencil state instance. [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/1433412-newdepthstencilstatewithdescript?language=objc -func (d_ DeviceWrapper) NewDepthStencilStateWithDescriptor(descriptor IDepthStencilDescriptor) DepthStencilStateWrapper { - rv := objc.Call[DepthStencilStateWrapper](d_, objc.Sel("newDepthStencilStateWithDescriptor:"), objc.Ptr(descriptor)) - rv.Autorelease() +// [Full Topic]: https://developer.apple.com/documentation/metal/mtldevice/1433391-newlibrarywithdata?language=objc +func (d_ DeviceObject) NewLibraryWithDataError(data dispatch.Data, error foundation.Error) LibraryObject { + rv := objc.Call[LibraryObject](d_, objc.Sel("newLibraryWithData:error:"), data, objc.Ptr(error)) return rv } -func (d_ DeviceWrapper) HasConvertSparseTileRegionsToPixelRegionsWithTileSizeNumRegions() bool { - return d_.RespondsToSelector(objc.Sel("convertSparseTileRegions:toPixelRegions:withTileSize:numRegions:")) +func (d_ DeviceObject) HasNewRenderPipelineStateWithDescriptorError() bool { + return d_.RespondsToSelector(objc.Sel("newRenderPipelineStateWithDescriptor:error:")) } -// Converts a list of sparse tile regions to pixel regions. [Full Topic] +// Synchronously creates a render pipeline state. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metal/mtldevice/3197983-convertsparsetileregions?language=objc -func (d_ DeviceWrapper) ConvertSparseTileRegionsToPixelRegionsWithTileSizeNumRegions(tileRegions *Region, pixelRegions *Region, tileSize Size, numRegions uint) { - objc.Call[objc.Void](d_, objc.Sel("convertSparseTileRegions:toPixelRegions:withTileSize:numRegions:"), tileRegions, pixelRegions, tileSize, numRegions) +// [Full Topic]: https://developer.apple.com/documentation/metal/mtldevice/1433369-newrenderpipelinestatewithdescri?language=objc +func (d_ DeviceObject) NewRenderPipelineStateWithDescriptorError(descriptor RenderPipelineDescriptor, error foundation.Error) RenderPipelineStateObject { + rv := objc.Call[RenderPipelineStateObject](d_, objc.Sel("newRenderPipelineStateWithDescriptor:error:"), objc.Ptr(descriptor), objc.Ptr(error)) + return rv } -func (d_ DeviceWrapper) HasNewRenderPipelineStateWithDescriptorCompletionHandler() bool { - return d_.RespondsToSelector(objc.Sel("newRenderPipelineStateWithDescriptor:completionHandler:")) +func (d_ DeviceObject) HasNewBufferWithLengthOptions() bool { + return d_.RespondsToSelector(objc.Sel("newBufferWithLength:options:")) } -// Asynchronously creates a render pipeline state. [Full Topic] +// Creates a buffer the method clears with zero values. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metal/mtldevice/1433363-newrenderpipelinestatewithdescri?language=objc -func (d_ DeviceWrapper) NewRenderPipelineStateWithDescriptorCompletionHandler(descriptor IRenderPipelineDescriptor, completionHandler NewRenderPipelineStateCompletionHandler) { - objc.Call[objc.Void](d_, objc.Sel("newRenderPipelineStateWithDescriptor:completionHandler:"), objc.Ptr(descriptor), completionHandler) +// [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_ DeviceWrapper) HasNewSharedTextureWithHandle() bool { - return d_.RespondsToSelector(objc.Sel("newSharedTextureWithHandle:")) +func (d_ DeviceObject) HasNewLibraryWithSourceOptionsCompletionHandler() bool { + return d_.RespondsToSelector(objc.Sel("newLibraryWithSource:options:completionHandler:")) } -// Creates a texture that references a shared texture. [Full Topic] +// 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/2967422-newsharedtexturewithhandle?language=objc -func (d_ DeviceWrapper) NewSharedTextureWithHandle(sharedHandle ISharedTextureHandle) TextureWrapper { - rv := objc.Call[TextureWrapper](d_, objc.Sel("newSharedTextureWithHandle:"), objc.Ptr(sharedHandle)) - rv.Autorelease() - return rv +// [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, objc.Ptr(options), completionHandler) } -func (d_ DeviceWrapper) HasNewLibraryWithURLError() bool { - return d_.RespondsToSelector(objc.Sel("newLibraryWithURL:error:")) +func (d_ DeviceObject) HasLocation() bool { + return d_.RespondsToSelector(objc.Sel("location")) } -// Creates a Metal library instance that contains the functions in the Metal library file at a URL. [Full Topic] +// The physical location of the GPU relative to system. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metal/mtldevice/2877432-newlibrarywithurl?language=objc -func (d_ DeviceWrapper) NewLibraryWithURLError(url foundation.IURL, error foundation.IError) LibraryWrapper { - rv := objc.Call[LibraryWrapper](d_, objc.Sel("newLibraryWithURL:error:"), objc.Ptr(url), objc.Ptr(error)) - rv.Autorelease() +// [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_ DeviceWrapper) HasNewSharedEventWithHandle() bool { - return d_.RespondsToSelector(objc.Sel("newSharedEventWithHandle:")) +func (d_ DeviceObject) HasIsHeadless() bool { + return d_.RespondsToSelector(objc.Sel("isHeadless")) } -// Recreates a shared event from a handle. [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/2981024-newsharedeventwithhandle?language=objc -func (d_ DeviceWrapper) NewSharedEventWithHandle(sharedEventHandle ISharedEventHandle) SharedEventWrapper { - rv := objc.Call[SharedEventWrapper](d_, objc.Sel("newSharedEventWithHandle:"), objc.Ptr(sharedEventHandle)) - rv.Autorelease() +// [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_ DeviceWrapper) HasSupportsPrimitiveMotionBlur() bool { +func (d_ DeviceObject) HasSupportsPrimitiveMotionBlur() bool { return d_.RespondsToSelector(objc.Sel("supportsPrimitiveMotionBlur")) } // A Boolean value that indicates whether the GPU device supports motion blur for ray tracing. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/metal/mtldevice/3850519-supportsprimitivemotionblur?language=objc -func (d_ DeviceWrapper) SupportsPrimitiveMotionBlur() bool { +func (d_ DeviceObject) SupportsPrimitiveMotionBlur() bool { rv := objc.Call[bool](d_, objc.Sel("supportsPrimitiveMotionBlur")) return rv } -func (d_ DeviceWrapper) HasSupportsPullModelInterpolation() bool { - return d_.RespondsToSelector(objc.Sel("supportsPullModelInterpolation")) -} - -// 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/3564460-supportspullmodelinterpolation?language=objc -func (d_ DeviceWrapper) SupportsPullModelInterpolation() bool { - rv := objc.Call[bool](d_, objc.Sel("supportsPullModelInterpolation")) - return rv -} - -func (d_ DeviceWrapper) HasSparseTileSizeInBytes() bool { - return d_.RespondsToSelector(objc.Sel("sparseTileSizeInBytes")) +func (d_ DeviceObject) HasRecommendedMaxWorkingSetSize() bool { + return d_.RespondsToSelector(objc.Sel("recommendedMaxWorkingSetSize")) } -// Returns the size, in bytes, of a sparse tile the GPU device creates using a default page size. [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/3377855-sparsetilesizeinbytes?language=objc -func (d_ DeviceWrapper) SparseTileSizeInBytes() uint { - rv := objc.Call[uint](d_, objc.Sel("sparseTileSizeInBytes")) +// [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_ DeviceWrapper) HasReadWriteTextureSupport() bool { - return d_.RespondsToSelector(objc.Sel("readWriteTextureSupport")) +func (d_ DeviceObject) HasIsRemovable() bool { + return d_.RespondsToSelector(objc.Sel("isRemovable")) } -// The GPU device’s texture support tier. [Full Topic] +// A Boolean value that indicates whether the GPU is removable. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metal/mtldevice/2887289-readwritetexturesupport?language=objc -func (d_ DeviceWrapper) ReadWriteTextureSupport() ReadWriteTextureTier { - rv := objc.Call[ReadWriteTextureTier](d_, objc.Sel("readWriteTextureSupport")) +// [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_ DeviceWrapper) HasSupports32BitFloatFiltering() bool { - return d_.RespondsToSelector(objc.Sel("supports32BitFloatFiltering")) +func (d_ DeviceObject) HasMaxTransferRate() bool { + return d_.RespondsToSelector(objc.Sel("maxTransferRate")) } -// A Boolean value that indicates whether the GPU can filter a texture with a 32-bit floating-point format. [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/3566545-supports32bitfloatfiltering?language=objc -func (d_ DeviceWrapper) Supports32BitFloatFiltering() bool { - rv := objc.Call[bool](d_, objc.Sel("supports32BitFloatFiltering")) +// [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_ DeviceWrapper) HasPeerCount() bool { - return d_.RespondsToSelector(objc.Sel("peerCount")) +func (d_ DeviceObject) HasArgumentBuffersSupport() bool { + return d_.RespondsToSelector(objc.Sel("argumentBuffersSupport")) } -// The total number of GPUs in the peer group, if applicable. [Full Topic] +// Returns the GPU device’s support tier for argument buffers. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metal/mtldevice/2967423-peercount?language=objc -func (d_ DeviceWrapper) PeerCount() uint32 { - rv := objc.Call[uint32](d_, objc.Sel("peerCount")) +// [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 } -func (d_ DeviceWrapper) HasAreRasterOrderGroupsSupported() bool { - return d_.RespondsToSelector(objc.Sel("areRasterOrderGroupsSupported")) +func (d_ DeviceObject) HasSupportsShaderBarycentricCoordinates() bool { + return d_.RespondsToSelector(objc.Sel("supportsShaderBarycentricCoordinates")) } -// A Boolean value that indicates whether the GPU supports raster order groups. [Full Topic] +// A Boolean value that indicates whether the GPU supports barycentric coordinates. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metal/mtldevice/2887285-rasterordergroupssupported?language=objc -func (d_ DeviceWrapper) AreRasterOrderGroupsSupported() bool { - rv := objc.Call[bool](d_, objc.Sel("areRasterOrderGroupsSupported")) +// [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_ DeviceWrapper) HasName() bool { - return d_.RespondsToSelector(objc.Sel("name")) +func (d_ DeviceObject) HasReadWriteTextureSupport() bool { + return d_.RespondsToSelector(objc.Sel("readWriteTextureSupport")) } -// The full name of the GPU device. [Full Topic] +// The GPU device’s texture support tier. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metal/mtldevice/1433359-name?language=objc -func (d_ DeviceWrapper) Name() string { - rv := objc.Call[string](d_, objc.Sel("name")) +// [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_ DeviceWrapper) HasLocation() bool { - return d_.RespondsToSelector(objc.Sel("location")) +func (d_ DeviceObject) HasSupportsRenderDynamicLibraries() bool { + return d_.RespondsToSelector(objc.Sel("supportsRenderDynamicLibraries")) } -// The physical location of the GPU relative to system. [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/3114005-location?language=objc -func (d_ DeviceWrapper) Location() DeviceLocation { - rv := objc.Call[DeviceLocation](d_, objc.Sel("location")) +// [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_ DeviceWrapper) HasIsLowPower() bool { - return d_.RespondsToSelector(objc.Sel("isLowPower")) +func (d_ DeviceObject) HasSupportsFunctionPointers() bool { + return d_.RespondsToSelector(objc.Sel("supportsFunctionPointers")) } -// A Boolean value that indicates whether the GPU lowers its performance to conserve energy. [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/1433409-lowpower?language=objc -func (d_ DeviceWrapper) IsLowPower() bool { - rv := objc.Call[bool](d_, objc.Sel("isLowPower")) +// [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_ DeviceWrapper) HasSupportsBCTextureCompression() bool { - return d_.RespondsToSelector(objc.Sel("supportsBCTextureCompression")) +func (d_ DeviceObject) HasLocationNumber() bool { + return d_.RespondsToSelector(objc.Sel("locationNumber")) } -// A Boolean value that indicates whether you can use textures that use BC compression. [Full Topic] +// A specific GPU position based on its general location. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metal/mtldevice/3566547-supportsbctexturecompression?language=objc -func (d_ DeviceWrapper) SupportsBCTextureCompression() bool { - rv := objc.Call[bool](d_, objc.Sel("supportsBCTextureCompression")) +// [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_ DeviceWrapper) HasSupportsRaytracing() bool { - return d_.RespondsToSelector(objc.Sel("supportsRaytracing")) +func (d_ DeviceObject) HasSparseTileSizeInBytes() bool { + return d_.RespondsToSelector(objc.Sel("sparseTileSizeInBytes")) } -// A Boolean value that indicates whether the GPU device supports ray tracing. [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/3580382-supportsraytracing?language=objc -func (d_ DeviceWrapper) SupportsRaytracing() bool { - rv := objc.Call[bool](d_, objc.Sel("supportsRaytracing")) +// [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_ DeviceWrapper) HasSupportsShaderBarycentricCoordinates() bool { - return d_.RespondsToSelector(objc.Sel("supportsShaderBarycentricCoordinates")) +func (d_ DeviceObject) HasMaxBufferLength() bool { + return d_.RespondsToSelector(objc.Sel("maxBufferLength")) } -// A Boolean value that indicates whether the GPU supports barycentric coordinates. [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/3325837-supportsshaderbarycentriccoordin?language=objc -func (d_ DeviceWrapper) SupportsShaderBarycentricCoordinates() bool { - rv := objc.Call[bool](d_, objc.Sel("supportsShaderBarycentricCoordinates")) +// [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_ DeviceWrapper) HasRecommendedMaxWorkingSetSize() bool { - return d_.RespondsToSelector(objc.Sel("recommendedMaxWorkingSetSize")) +func (d_ DeviceObject) HasAreProgrammableSamplePositionsSupported() bool { + return d_.RespondsToSelector(objc.Sel("areProgrammableSamplePositionsSupported")) } -// An approximation of how much memory, in bytes, this GPU device can allocate without affecting its runtime performance. [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/2369280-recommendedmaxworkingsetsize?language=objc -func (d_ DeviceWrapper) RecommendedMaxWorkingSetSize() uint64 { - rv := objc.Call[uint64](d_, objc.Sel("recommendedMaxWorkingSetSize")) +// [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_ DeviceWrapper) HasMaxThreadsPerThreadgroup() bool { - return d_.RespondsToSelector(objc.Sel("maxThreadsPerThreadgroup")) +func (d_ DeviceObject) HasSupportsPullModelInterpolation() bool { + return d_.RespondsToSelector(objc.Sel("supportsPullModelInterpolation")) } -// The maximum number of threads along each dimension of a threadgroup. [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/1433393-maxthreadsperthreadgroup?language=objc -func (d_ DeviceWrapper) MaxThreadsPerThreadgroup() Size { - rv := objc.Call[Size](d_, objc.Sel("maxThreadsPerThreadgroup")) +// [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_ DeviceWrapper) HasPeerIndex() bool { - return d_.RespondsToSelector(objc.Sel("peerIndex")) +func (d_ DeviceObject) HasCurrentAllocatedSize() bool { + return d_.RespondsToSelector(objc.Sel("currentAllocatedSize")) } -// The unique identifier for a GPU in a peer group. [Full Topic] +// 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/2967425-peerindex?language=objc -func (d_ DeviceWrapper) PeerIndex() uint32 { - rv := objc.Call[uint32](d_, objc.Sel("peerIndex")) +// [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_ DeviceWrapper) HasSupportsFunctionPointersFromRender() bool { - return d_.RespondsToSelector(objc.Sel("supportsFunctionPointersFromRender")) +func (d_ DeviceObject) HasCounterSets() bool { + return d_.RespondsToSelector(objc.Sel("counterSets")) } -// A Boolean value that indicates whether the GPU device supports pointers to render functions. [Full Topic] +// The counter sets supported by the device object. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metal/mtldevice/3750527-supportsfunctionpointersfromrend?language=objc -func (d_ DeviceWrapper) SupportsFunctionPointersFromRender() bool { - rv := objc.Call[bool](d_, objc.Sel("supportsFunctionPointersFromRender")) +// [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_ DeviceWrapper) HasSupportsFunctionPointers() bool { - return d_.RespondsToSelector(objc.Sel("supportsFunctionPointers")) +func (d_ DeviceObject) HasSupports32BitFloatFiltering() bool { + return d_.RespondsToSelector(objc.Sel("supports32BitFloatFiltering")) } -// A Boolean value that indicates whether the GPU device supports pointers to compute kernel functions. [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/3589487-supportsfunctionpointers?language=objc -func (d_ DeviceWrapper) SupportsFunctionPointers() bool { - rv := objc.Call[bool](d_, objc.Sel("supportsFunctionPointers")) +// [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_ DeviceWrapper) HasCounterSets() bool { - return d_.RespondsToSelector(objc.Sel("counterSets")) +func (d_ DeviceObject) HasSupportsFunctionPointersFromRender() bool { + return d_.RespondsToSelector(objc.Sel("supportsFunctionPointersFromRender")) } -// The counter sets supported by the device object. [Full Topic] +// A Boolean value that indicates whether the GPU device supports pointers to render functions. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metal/mtldevice/3081739-countersets?language=objc -func (d_ DeviceWrapper) CounterSets() []CounterSetWrapper { - rv := objc.Call[[]CounterSetWrapper](d_, objc.Sel("counterSets")) +// [Full Topic]: https://developer.apple.com/documentation/metal/mtldevice/3750527-supportsfunctionpointersfromrend?language=objc +func (d_ DeviceObject) SupportsFunctionPointersFromRender() bool { + rv := objc.Call[bool](d_, objc.Sel("supportsFunctionPointersFromRender")) return rv } -func (d_ DeviceWrapper) HasIsRemovable() bool { - return d_.RespondsToSelector(objc.Sel("isRemovable")) +func (d_ DeviceObject) HasMaxThreadsPerThreadgroup() bool { + return d_.RespondsToSelector(objc.Sel("maxThreadsPerThreadgroup")) } -// A Boolean value that indicates whether the GPU is removable. [Full Topic] +// The maximum number of threads along each dimension of a threadgroup. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metal/mtldevice/2889851-removable?language=objc -func (d_ DeviceWrapper) IsRemovable() bool { - rv := objc.Call[bool](d_, objc.Sel("isRemovable")) +// [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_ DeviceWrapper) HasAreProgrammableSamplePositionsSupported() bool { - return d_.RespondsToSelector(objc.Sel("areProgrammableSamplePositionsSupported")) +func (d_ DeviceObject) HasPeerCount() bool { + return d_.RespondsToSelector(objc.Sel("peerCount")) } -// A Boolean value that indicates whether the GPU supports programmable sample positions. [Full Topic] +// The total number of GPUs in the peer group, if applicable. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metal/mtldevice/2866117-programmablesamplepositionssuppo?language=objc -func (d_ DeviceWrapper) AreProgrammableSamplePositionsSupported() bool { - rv := objc.Call[bool](d_, objc.Sel("areProgrammableSamplePositionsSupported")) +// [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_ DeviceWrapper) HasIsDepth24Stencil8PixelFormatSupported() bool { - return d_.RespondsToSelector(objc.Sel("isDepth24Stencil8PixelFormatSupported")) +func (d_ DeviceObject) HasHasUnifiedMemory() bool { + return d_.RespondsToSelector(objc.Sel("hasUnifiedMemory")) } -// A Boolean value that indicates whether a device supports a packed depth-and-stencil pixel format. [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/1433371-depth24stencil8pixelformatsuppor?language=objc -func (d_ DeviceWrapper) IsDepth24Stencil8PixelFormatSupported() bool { - rv := objc.Call[bool](d_, objc.Sel("isDepth24Stencil8PixelFormatSupported")) +// [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_ DeviceWrapper) HasLocationNumber() bool { - return d_.RespondsToSelector(objc.Sel("locationNumber")) +func (d_ DeviceObject) HasSupportsBCTextureCompression() bool { + return d_.RespondsToSelector(objc.Sel("supportsBCTextureCompression")) } -// A specific GPU position based on its general location. [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/3114006-locationnumber?language=objc -func (d_ DeviceWrapper) LocationNumber() uint { - rv := objc.Call[uint](d_, objc.Sel("locationNumber")) +// [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_ DeviceWrapper) HasRegistryID() bool { +func (d_ DeviceObject) HasRegistryID() bool { return d_.RespondsToSelector(objc.Sel("registryID")) } // The GPU device’s registry identifier. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/metal/mtldevice/2915737-registryid?language=objc -func (d_ DeviceWrapper) RegistryID() uint64 { +func (d_ DeviceObject) RegistryID() uint64 { rv := objc.Call[uint64](d_, objc.Sel("registryID")) return rv } -func (d_ DeviceWrapper) HasSupports32BitMSAA() bool { - return d_.RespondsToSelector(objc.Sel("supports32BitMSAA")) -} - -// 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/3566546-supports32bitmsaa?language=objc -func (d_ DeviceWrapper) Supports32BitMSAA() bool { - rv := objc.Call[bool](d_, objc.Sel("supports32BitMSAA")) - return rv -} - -func (d_ DeviceWrapper) HasMaxBufferLength() bool { - return d_.RespondsToSelector(objc.Sel("maxBufferLength")) +func (d_ DeviceObject) HasSupportsRaytracing() bool { + return d_.RespondsToSelector(objc.Sel("supportsRaytracing")) } -// 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 the GPU device supports ray tracing. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metal/mtldevice/2966563-maxbufferlength?language=objc -func (d_ DeviceWrapper) MaxBufferLength() uint { - rv := objc.Call[uint](d_, objc.Sel("maxBufferLength")) +// [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_ DeviceWrapper) HasSupportsRenderDynamicLibraries() bool { - return d_.RespondsToSelector(objc.Sel("supportsRenderDynamicLibraries")) +func (d_ DeviceObject) HasIsDepth24Stencil8PixelFormatSupported() bool { + return d_.RespondsToSelector(objc.Sel("isDepth24Stencil8PixelFormatSupported")) } -// 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 a device supports a packed depth-and-stencil pixel format. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metal/mtldevice/3816767-supportsrenderdynamiclibraries?language=objc -func (d_ DeviceWrapper) SupportsRenderDynamicLibraries() bool { - rv := objc.Call[bool](d_, objc.Sel("supportsRenderDynamicLibraries")) +// [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_ DeviceWrapper) HasPeerGroupID() bool { - return d_.RespondsToSelector(objc.Sel("peerGroupID")) +func (d_ DeviceObject) HasIsLowPower() bool { + return d_.RespondsToSelector(objc.Sel("isLowPower")) } -// The peer group ID the GPU belongs to, if applicable. [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/2967424-peergroupid?language=objc -func (d_ DeviceWrapper) PeerGroupID() uint64 { - rv := objc.Call[uint64](d_, objc.Sel("peerGroupID")) +// [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_ DeviceWrapper) HasMaxArgumentBufferSamplerCount() bool { - return d_.RespondsToSelector(objc.Sel("maxArgumentBufferSamplerCount")) +func (d_ DeviceObject) HasMaxThreadgroupMemoryLength() bool { + return d_.RespondsToSelector(objc.Sel("maxThreadgroupMemoryLength")) } -// The maximum number of unique argument buffer samplers per app. [Full Topic] +// The maximum threadgroup memory available to a compute kernel, in bytes. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metal/mtldevice/2977322-maxargumentbuffersamplercount?language=objc -func (d_ DeviceWrapper) MaxArgumentBufferSamplerCount() uint { - rv := objc.Call[uint](d_, objc.Sel("maxArgumentBufferSamplerCount")) +// [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_ DeviceWrapper) HasIsHeadless() bool { - return d_.RespondsToSelector(objc.Sel("isHeadless")) +func (d_ DeviceObject) HasSupportsDynamicLibraries() bool { + return d_.RespondsToSelector(objc.Sel("supportsDynamicLibraries")) } -// A Boolean value that indicates whether a GPU device doesn’t have a connection to a display. [Full Topic] +// 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/1433377-headless?language=objc -func (d_ DeviceWrapper) IsHeadless() bool { - rv := objc.Call[bool](d_, objc.Sel("isHeadless")) +// [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_ DeviceWrapper) HasSupportsRaytracingFromRender() bool { - return d_.RespondsToSelector(objc.Sel("supportsRaytracingFromRender")) +func (d_ DeviceObject) HasMaxArgumentBufferSamplerCount() bool { + return d_.RespondsToSelector(objc.Sel("maxArgumentBufferSamplerCount")) } -// A Boolean value that indicates whether you can call ray-tracing functions from a vertex or fragment shader. [Full Topic] +// The maximum number of unique argument buffer samplers per app. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metal/mtldevice/3750528-supportsraytracingfromrender?language=objc -func (d_ DeviceWrapper) SupportsRaytracingFromRender() bool { - rv := objc.Call[bool](d_, objc.Sel("supportsRaytracingFromRender")) +// [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_ DeviceWrapper) HasSupportsQueryTextureLOD() bool { - return d_.RespondsToSelector(objc.Sel("supportsQueryTextureLOD")) +func (d_ DeviceObject) HasPeerIndex() bool { + return d_.RespondsToSelector(objc.Sel("peerIndex")) } -// A Boolean value that indicates whether you can query the texture level of detail from within a shader. [Full Topic] +// The unique identifier for a GPU in a peer group. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metal/mtldevice/3566548-supportsquerytexturelod?language=objc -func (d_ DeviceWrapper) SupportsQueryTextureLOD() bool { - rv := objc.Call[bool](d_, objc.Sel("supportsQueryTextureLOD")) +// [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 } -func (d_ DeviceWrapper) HasMaxTransferRate() bool { - return d_.RespondsToSelector(objc.Sel("maxTransferRate")) +func (d_ DeviceObject) HasSupports32BitMSAA() bool { + return d_.RespondsToSelector(objc.Sel("supports32BitMSAA")) } -// The highest theoretical rate, in bytes per second, the system can copy between system memory and the GPU’s dedicated memory (VRAM). [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/3114007-maxtransferrate?language=objc -func (d_ DeviceWrapper) MaxTransferRate() uint64 { - rv := objc.Call[uint64](d_, objc.Sel("maxTransferRate")) +// [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_ DeviceWrapper) HasMaxThreadgroupMemoryLength() bool { - return d_.RespondsToSelector(objc.Sel("maxThreadgroupMemoryLength")) +func (d_ DeviceObject) HasName() bool { + return d_.RespondsToSelector(objc.Sel("name")) } -// The maximum threadgroup memory available to a compute kernel, in bytes. [Full Topic] +// The full name of the GPU device. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metal/mtldevice/2877429-maxthreadgroupmemorylength?language=objc -func (d_ DeviceWrapper) MaxThreadgroupMemoryLength() uint { - rv := objc.Call[uint](d_, objc.Sel("maxThreadgroupMemoryLength")) +// [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_ DeviceWrapper) HasHasUnifiedMemory() bool { - return d_.RespondsToSelector(objc.Sel("hasUnifiedMemory")) +func (d_ DeviceObject) HasSupportsQueryTextureLOD() bool { + return d_.RespondsToSelector(objc.Sel("supportsQueryTextureLOD")) } -// A Boolean value that indicates whether the GPU shares all of its memory with the CPU. [Full Topic] +// A Boolean value that indicates whether you can query the texture level of detail from within a shader. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metal/mtldevice/3229025-hasunifiedmemory?language=objc -func (d_ DeviceWrapper) HasUnifiedMemory() bool { - rv := objc.Call[bool](d_, objc.Sel("hasUnifiedMemory")) +// [Full Topic]: https://developer.apple.com/documentation/metal/mtldevice/3566548-supportsquerytexturelod?language=objc +func (d_ DeviceObject) SupportsQueryTextureLOD() bool { + rv := objc.Call[bool](d_, objc.Sel("supportsQueryTextureLOD")) return rv } -func (d_ DeviceWrapper) HasSupportsDynamicLibraries() bool { - return d_.RespondsToSelector(objc.Sel("supportsDynamicLibraries")) +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 compute 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/3553977-supportsdynamiclibraries?language=objc -func (d_ DeviceWrapper) SupportsDynamicLibraries() bool { - rv := objc.Call[bool](d_, objc.Sel("supportsDynamicLibraries")) +// [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_ DeviceWrapper) HasCurrentAllocatedSize() bool { - return d_.RespondsToSelector(objc.Sel("currentAllocatedSize")) +func (d_ DeviceObject) HasSupportsRaytracingFromRender() bool { + return d_.RespondsToSelector(objc.Sel("supportsRaytracingFromRender")) } -// The total amount of memory, in bytes, the GPU device is using for all of its resources. [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/2915745-currentallocatedsize?language=objc -func (d_ DeviceWrapper) CurrentAllocatedSize() uint { - rv := objc.Call[uint](d_, objc.Sel("currentAllocatedSize")) +// [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 } -func (d_ DeviceWrapper) HasArgumentBuffersSupport() bool { - return d_.RespondsToSelector(objc.Sel("argumentBuffersSupport")) +func (d_ DeviceObject) HasPeerGroupID() bool { + return d_.RespondsToSelector(objc.Sel("peerGroupID")) } -// Returns the GPU device’s support tier for argument buffers. [Full Topic] +// The peer group ID the GPU belongs to, if applicable. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metal/mtldevice/2915742-argumentbufferssupport?language=objc -func (d_ DeviceWrapper) ArgumentBuffersSupport() ArgumentBuffersTier { - rv := objc.Call[ArgumentBuffersTier](d_, objc.Sel("argumentBuffersSupport")) +// [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 } diff --git a/macos/metal/doc.gen.go b/macos/metal/doc.gen.go index d360e29e..835c1a50 100644 --- a/macos/metal/doc.gen.go +++ b/macos/metal/doc.gen.go @@ -1,8 +1,8 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. // Render advanced 3D graphics and compute data in parallel with graphics processors. // -// [Full Documentation] +// [Apple Documentation] // -// [Full Documentation]: https://developer.apple.com/documentation/metal?language=objc +// [Apple Documentation]: https://developer.apple.com/documentation/metal?language=objc package metal diff --git a/macos/metal/drawable.gen.go b/macos/metal/drawable_protocol.gen.go similarity index 75% rename from macos/metal/drawable.gen.go rename to macos/metal/drawable_protocol.gen.go index 8f6172ef..374d76fd 100644 --- a/macos/metal/drawable.gen.go +++ b/macos/metal/drawable_protocol.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package metal @@ -12,16 +12,16 @@ import ( // [Full Topic]: https://developer.apple.com/documentation/metal/mtldrawable?language=objc type PDrawable interface { // optional - AddPresentedHandler(block DrawablePresentedHandler) - HasAddPresentedHandler() bool + PresentAfterMinimumDuration(duration corefoundation.TimeInterval) + HasPresentAfterMinimumDuration() bool // optional Present() HasPresent() bool // optional - PresentAfterMinimumDuration(duration corefoundation.TimeInterval) - HasPresentAfterMinimumDuration() bool + AddPresentedHandler(block DrawablePresentedHandler) + HasAddPresentedHandler() bool // optional PresentAtTime(presentationTime corefoundation.TimeInterval) @@ -36,75 +36,78 @@ type PDrawable interface { HasPresentedTime() bool } -// A concrete type wrapper for the [PDrawable] protocol. -type DrawableWrapper struct { +// ensure impl type implements protocol interface +var _ PDrawable = (*DrawableObject)(nil) + +// A concrete type for the [PDrawable] protocol. +type DrawableObject struct { objc.Object } -func (d_ DrawableWrapper) 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_ DrawableWrapper) 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_ DrawableWrapper) HasPresent() bool { +func (d_ DrawableObject) HasPresent() bool { return d_.RespondsToSelector(objc.Sel("present")) } // Presents the drawable onscreen as soon as possible. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/metal/mtldrawable/1470284-present?language=objc -func (d_ DrawableWrapper) Present() { +func (d_ DrawableObject) Present() { objc.Call[objc.Void](d_, objc.Sel("present")) } -func (d_ DrawableWrapper) 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_ DrawableWrapper) 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_ DrawableWrapper) HasPresentAtTime() bool { +func (d_ DrawableObject) HasPresentAtTime() bool { return d_.RespondsToSelector(objc.Sel("presentAtTime:")) } // Presents the drawable onscreen at a specific host time. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/metal/mtldrawable/1470282-presentattime?language=objc -func (d_ DrawableWrapper) PresentAtTime(presentationTime corefoundation.TimeInterval) { +func (d_ DrawableObject) PresentAtTime(presentationTime corefoundation.TimeInterval) { objc.Call[objc.Void](d_, objc.Sel("presentAtTime:"), presentationTime) } -func (d_ DrawableWrapper) HasDrawableID() bool { +func (d_ DrawableObject) HasDrawableID() bool { return d_.RespondsToSelector(objc.Sel("drawableID")) } // A positive integer that identifies the drawable. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/metal/mtldrawable/2806860-drawableid?language=objc -func (d_ DrawableWrapper) DrawableID() uint { +func (d_ DrawableObject) DrawableID() uint { rv := objc.Call[uint](d_, objc.Sel("drawableID")) return rv } -func (d_ DrawableWrapper) HasPresentedTime() bool { +func (d_ DrawableObject) HasPresentedTime() bool { return d_.RespondsToSelector(objc.Sel("presentedTime")) } // The host time, in seconds, when the drawable was displayed onscreen. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/metal/mtldrawable/2806855-presentedtime?language=objc -func (d_ DrawableWrapper) PresentedTime() corefoundation.TimeInterval { +func (d_ DrawableObject) PresentedTime() corefoundation.TimeInterval { rv := objc.Call[corefoundation.TimeInterval](d_, objc.Sel("presentedTime")) return rv } diff --git a/macos/metal/dynamic_library.gen.go b/macos/metal/dynamic_library_protocol.gen.go similarity index 70% rename from macos/metal/dynamic_library.gen.go rename to macos/metal/dynamic_library_protocol.gen.go index bf48375c..bfa6bb0a 100644 --- a/macos/metal/dynamic_library.gen.go +++ b/macos/metal/dynamic_library_protocol.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package metal @@ -20,7 +20,7 @@ type PDynamicLibrary interface { HasInstallName() bool // optional - Device() PDevice + Device() DeviceObject HasDevice() bool // optional @@ -32,66 +32,69 @@ type PDynamicLibrary interface { HasLabel() bool } -// A concrete type wrapper for the [PDynamicLibrary] protocol. -type DynamicLibraryWrapper struct { +// ensure impl type implements protocol interface +var _ PDynamicLibrary = (*DynamicLibraryObject)(nil) + +// A concrete type for the [PDynamicLibrary] protocol. +type DynamicLibraryObject struct { objc.Object } -func (d_ DynamicLibraryWrapper) HasSerializeToURLError() bool { +func (d_ DynamicLibraryObject) HasSerializeToURLError() bool { return d_.RespondsToSelector(objc.Sel("serializeToURL:error:")) } // Writes the contents of the dynamic library to a file. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/metal/mtldynamiclibrary/3553982-serializetourl?language=objc -func (d_ DynamicLibraryWrapper) SerializeToURLError(url foundation.IURL, error foundation.IError) bool { +func (d_ DynamicLibraryObject) SerializeToURLError(url foundation.URL, error foundation.Error) bool { rv := objc.Call[bool](d_, objc.Sel("serializeToURL:error:"), objc.Ptr(url), objc.Ptr(error)) return rv } -func (d_ DynamicLibraryWrapper) HasInstallName() bool { +func (d_ DynamicLibraryObject) HasInstallName() bool { return d_.RespondsToSelector(objc.Sel("installName")) } // A file path for this dynamic library. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/metal/mtldynamiclibrary/3553980-installname?language=objc -func (d_ DynamicLibraryWrapper) InstallName() string { +func (d_ DynamicLibraryObject) InstallName() string { rv := objc.Call[string](d_, objc.Sel("installName")) return rv } -func (d_ DynamicLibraryWrapper) HasDevice() bool { +func (d_ DynamicLibraryObject) HasDevice() bool { return d_.RespondsToSelector(objc.Sel("device")) } // The Metal device object that created the dynamic library. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/metal/mtldynamiclibrary/3553979-device?language=objc -func (d_ DynamicLibraryWrapper) Device() DeviceWrapper { - rv := objc.Call[DeviceWrapper](d_, objc.Sel("device")) +func (d_ DynamicLibraryObject) Device() DeviceObject { + rv := objc.Call[DeviceObject](d_, objc.Sel("device")) return rv } -func (d_ DynamicLibraryWrapper) HasSetLabel() bool { +func (d_ DynamicLibraryObject) HasSetLabel() bool { return d_.RespondsToSelector(objc.Sel("setLabel:")) } // A string that identifies the library. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/metal/mtldynamiclibrary/3553981-label?language=objc -func (d_ DynamicLibraryWrapper) SetLabel(value string) { +func (d_ DynamicLibraryObject) SetLabel(value string) { objc.Call[objc.Void](d_, objc.Sel("setLabel:"), value) } -func (d_ DynamicLibraryWrapper) HasLabel() bool { +func (d_ DynamicLibraryObject) HasLabel() bool { return d_.RespondsToSelector(objc.Sel("label")) } // A string that identifies the library. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/metal/mtldynamiclibrary/3553981-label?language=objc -func (d_ DynamicLibraryWrapper) Label() string { +func (d_ DynamicLibraryObject) Label() string { rv := objc.Call[string](d_, objc.Sel("label")) return rv } diff --git a/macos/metal/enumtypes.gen.go b/macos/metal/enumtypes.gen.go index 4b8624fa..be5b2cb8 100644 --- a/macos/metal/enumtypes.gen.go +++ b/macos/metal/enumtypes.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package metal @@ -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 setBlendColorRed:green:blue:alpha: 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 [metal/mtlrendercommandencoder/setblendcolorred] 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 [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] +// 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] // // [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 [metal/mtlsampleraddressmode/mtlsampleraddressmodeclamptobordercolor]. [Full Topic] +// Values that determine the border color for clamped texture values when the sampler address mode is MTLSamplerAddressModeClampToBorderColor. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/metal/mtlsamplerbordercolor?language=objc type SamplerBorderColor uint @@ -1205,6 +1205,11 @@ const ( TessellationPartitionModePow2 TessellationPartitionMode = 0 ) +// [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/metal/mtltexturecompressiontype?language=objc +type TextureCompressionType int + // A set of options to choose from when creating a texture swizzle pattern. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/metal/mtltextureswizzle?language=objc diff --git a/macos/metal/event.gen.go b/macos/metal/event_protocol.gen.go similarity index 68% rename from macos/metal/event.gen.go rename to macos/metal/event_protocol.gen.go index af3f9ad5..ad286d79 100644 --- a/macos/metal/event.gen.go +++ b/macos/metal/event_protocol.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package metal @@ -10,10 +10,6 @@ import ( // // [Full Topic]: https://developer.apple.com/documentation/metal/mtlevent?language=objc type PEvent interface { - // optional - Device() PDevice - HasDevice() bool - // optional SetLabel(value string) HasSetLabel() bool @@ -21,44 +17,51 @@ type PEvent interface { // optional Label() string HasLabel() bool -} -// A concrete type wrapper for the [PEvent] protocol. -type EventWrapper struct { - objc.Object + // optional + Device() DeviceObject + HasDevice() bool } -func (e_ EventWrapper) HasDevice() bool { - return e_.RespondsToSelector(objc.Sel("device")) -} +// ensure impl type implements protocol interface +var _ PEvent = (*EventObject)(nil) -// The device object that created the event. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/metal/mtlevent/2966571-device?language=objc -func (e_ EventWrapper) Device() DeviceWrapper { - rv := objc.Call[DeviceWrapper](e_, objc.Sel("device")) - return rv +// A concrete type for the [PEvent] protocol. +type EventObject struct { + objc.Object } -func (e_ EventWrapper) HasSetLabel() bool { +func (e_ EventObject) HasSetLabel() bool { return e_.RespondsToSelector(objc.Sel("setLabel:")) } // A string that identifies the event. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/metal/mtlevent/2966572-label?language=objc -func (e_ EventWrapper) SetLabel(value string) { +func (e_ EventObject) SetLabel(value string) { objc.Call[objc.Void](e_, objc.Sel("setLabel:"), value) } -func (e_ EventWrapper) HasLabel() bool { +func (e_ EventObject) HasLabel() bool { return e_.RespondsToSelector(objc.Sel("label")) } // A string that identifies the event. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/metal/mtlevent/2966572-label?language=objc -func (e_ EventWrapper) Label() string { +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/fence.gen.go b/macos/metal/fence_protocol.gen.go similarity index 69% rename from macos/metal/fence.gen.go rename to macos/metal/fence_protocol.gen.go index f2ef77e3..1fe3499a 100644 --- a/macos/metal/fence.gen.go +++ b/macos/metal/fence_protocol.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package metal @@ -11,7 +11,7 @@ import ( // [Full Topic]: https://developer.apple.com/documentation/metal/mtlfence?language=objc type PFence interface { // optional - Device() PDevice + Device() DeviceObject HasDevice() bool // optional @@ -23,42 +23,45 @@ type PFence interface { HasLabel() bool } -// A concrete type wrapper for the [PFence] protocol. -type FenceWrapper struct { +// ensure impl type implements protocol interface +var _ PFence = (*FenceObject)(nil) + +// A concrete type for the [PFence] protocol. +type FenceObject struct { objc.Object } -func (f_ FenceWrapper) HasDevice() bool { +func (f_ FenceObject) HasDevice() bool { return f_.RespondsToSelector(objc.Sel("device")) } // The device object that created the fence. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/metal/mtlfence/1648532-device?language=objc -func (f_ FenceWrapper) Device() DeviceWrapper { - rv := objc.Call[DeviceWrapper](f_, objc.Sel("device")) +func (f_ FenceObject) Device() DeviceObject { + rv := objc.Call[DeviceObject](f_, objc.Sel("device")) return rv } -func (f_ FenceWrapper) HasSetLabel() bool { +func (f_ FenceObject) HasSetLabel() bool { return f_.RespondsToSelector(objc.Sel("setLabel:")) } // A string that identifies the fence. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/metal/mtlfence/1648531-label?language=objc -func (f_ FenceWrapper) SetLabel(value string) { +func (f_ FenceObject) SetLabel(value string) { objc.Call[objc.Void](f_, objc.Sel("setLabel:"), value) } -func (f_ FenceWrapper) HasLabel() bool { +func (f_ FenceObject) HasLabel() bool { return f_.RespondsToSelector(objc.Sel("label")) } // A string that identifies the fence. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/metal/mtlfence/1648531-label?language=objc -func (f_ FenceWrapper) Label() string { +func (f_ FenceObject) Label() string { rv := objc.Call[string](f_, objc.Sel("label")) return rv } diff --git a/macos/metal/function_constant.gen.go b/macos/metal/function_constant.gen.go index b7169bcb..87ff459e 100644 --- a/macos/metal/function_constant.gen.go +++ b/macos/metal/function_constant.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package metal @@ -18,10 +18,10 @@ type _FunctionConstantClass struct { // An interface definition for the [FunctionConstant] class. type IFunctionConstant interface { objc.IObject - Name() string - Required() bool Type() DataType Index() uint + Name() string + Required() bool } // A constant used to specialize the behavior of a shader. [Full Topic] @@ -42,10 +42,6 @@ func (fc _FunctionConstantClass) Alloc() FunctionConstant { return rv } -func FunctionConstant_Alloc() FunctionConstant { - return FunctionConstantClass.Alloc() -} - func (fc _FunctionConstantClass) New() FunctionConstant { rv := objc.Call[FunctionConstant](fc, objc.Sel("new")) rv.Autorelease() @@ -61,22 +57,6 @@ func (f_ FunctionConstant) Init() FunctionConstant { return rv } -// The name of the function constant. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/metal/mtlfunctionconstant/1639955-name?language=objc -func (f_ FunctionConstant) Name() string { - rv := objc.Call[string](f_, objc.Sel("name")) - return rv -} - -// A Boolean value indicating whether the function constant must be provided to specialize the function. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/metal/mtlfunctionconstant/1639988-required?language=objc -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 @@ -92,3 +72,19 @@ 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 +func (f_ FunctionConstant) Name() string { + rv := objc.Call[string](f_, objc.Sel("name")) + return rv +} + +// A Boolean value indicating whether the function constant must be provided to specialize the function. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/metal/mtlfunctionconstant/1639988-required?language=objc +func (f_ FunctionConstant) Required() bool { + rv := objc.Call[bool](f_, objc.Sel("required")) + return rv +} diff --git a/macos/metal/function_constant_values.gen.go b/macos/metal/function_constant_values.gen.go index c0d3a1a4..ee6f7a18 100644 --- a/macos/metal/function_constant_values.gen.go +++ b/macos/metal/function_constant_values.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package metal @@ -19,6 +19,7 @@ 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() @@ -42,10 +43,6 @@ func (fc _FunctionConstantValuesClass) Alloc() FunctionConstantValues { return rv } -func FunctionConstantValues_Alloc() FunctionConstantValues { - return FunctionConstantValuesClass.Alloc() -} - func (fc _FunctionConstantValuesClass) New() FunctionConstantValues { rv := objc.Call[FunctionConstantValues](fc, objc.Sel("new")) rv.Autorelease() @@ -61,6 +58,13 @@ 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 1b056fb8..3562ca7a 100644 --- a/macos/metal/function_descriptor.gen.go +++ b/macos/metal/function_descriptor.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package metal @@ -18,16 +18,16 @@ type _FunctionDescriptorClass struct { // An interface definition for the [FunctionDescriptor] class. type IFunctionDescriptor interface { objc.IObject - ConstantValues() FunctionConstantValues - SetConstantValues(value IFunctionConstantValues) - Options() FunctionOptions - SetOptions(value FunctionOptions) Name() string SetName(value string) + BinaryArchives() []BinaryArchiveObject + SetBinaryArchives(value []PBinaryArchive) + Options() FunctionOptions + SetOptions(value FunctionOptions) + ConstantValues() FunctionConstantValues + SetConstantValues(value IFunctionConstantValues) SpecializedName() string SetSpecializedName(value string) - BinaryArchives() []BinaryArchiveWrapper - SetBinaryArchives(value []PBinaryArchive) } // A description of a function object to create. [Full Topic] @@ -48,10 +48,6 @@ func (fc _FunctionDescriptorClass) Alloc() FunctionDescriptor { return rv } -func FunctionDescriptor_Alloc() FunctionDescriptor { - return FunctionDescriptorClass.Alloc() -} - func (fc _FunctionDescriptorClass) New() FunctionDescriptor { rv := objc.Call[FunctionDescriptor](fc, objc.Sel("new")) rv.Autorelease() @@ -82,19 +78,34 @@ func FunctionDescriptor_FunctionDescriptor() FunctionDescriptor { return FunctionDescriptorClass.FunctionDescriptor() } -// 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:"), objc.Ptr(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) +} + +// 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) } // Flags specifying how Metal should create the new function object. [Full Topic] @@ -112,19 +123,19 @@ func (f_ FunctionDescriptor) SetOptions(value FunctionOptions) { objc.Call[objc.Void](f_, objc.Sel("setOptions:"), value) } -// The name of the function to fetch from the library. [Full Topic] +// The set of constant values assigned to the function constants. [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")) +// [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 name of the function to fetch from the library. [Full Topic] +// The set of constant values assigned to the function constants. [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) +// [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:"), objc.Ptr(value)) } // A new name for the created function object. [Full Topic] @@ -141,18 +152,3 @@ 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() []BinaryArchiveWrapper { - rv := objc.Call[[]BinaryArchiveWrapper](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.gen.go b/macos/metal/function_handle_protocol.gen.go similarity index 66% rename from macos/metal/function_handle.gen.go rename to macos/metal/function_handle_protocol.gen.go index f63042d2..c021366c 100644 --- a/macos/metal/function_handle.gen.go +++ b/macos/metal/function_handle_protocol.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package metal @@ -11,55 +11,58 @@ import ( // [Full Topic]: https://developer.apple.com/documentation/metal/mtlfunctionhandle?language=objc type PFunctionHandle interface { // optional - Name() string - HasName() bool + FunctionType() FunctionType + HasFunctionType() bool // optional - Device() PDevice + Device() DeviceObject HasDevice() bool // optional - FunctionType() FunctionType - HasFunctionType() bool + Name() string + HasName() bool } -// A concrete type wrapper for the [PFunctionHandle] protocol. -type FunctionHandleWrapper struct { +// ensure impl type implements protocol interface +var _ PFunctionHandle = (*FunctionHandleObject)(nil) + +// A concrete type for the [PFunctionHandle] protocol. +type FunctionHandleObject struct { objc.Object } -func (f_ FunctionHandleWrapper) 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_ FunctionHandleWrapper) 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 } -func (f_ FunctionHandleWrapper) HasDevice() bool { +func (f_ FunctionHandleObject) HasDevice() bool { return f_.RespondsToSelector(objc.Sel("device")) } // The device object that created the shader function. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/metal/mtlfunctionhandle/3554002-device?language=objc -func (f_ FunctionHandleWrapper) Device() DeviceWrapper { - rv := objc.Call[DeviceWrapper](f_, objc.Sel("device")) +func (f_ FunctionHandleObject) Device() DeviceObject { + rv := objc.Call[DeviceObject](f_, objc.Sel("device")) return rv } -func (f_ FunctionHandleWrapper) 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_ FunctionHandleWrapper) 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 } diff --git a/macos/metal/function_log_debug_location.gen.go b/macos/metal/function_log_debug_location_protocol.gen.go similarity index 69% rename from macos/metal/function_log_debug_location.gen.go rename to macos/metal/function_log_debug_location_protocol.gen.go index 4dc5c234..b9506a8b 100644 --- a/macos/metal/function_log_debug_location.gen.go +++ b/macos/metal/function_log_debug_location_protocol.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package metal @@ -11,72 +11,75 @@ import ( // // [Full Topic]: https://developer.apple.com/documentation/metal/mtlfunctionlogdebuglocation?language=objc type PFunctionLogDebugLocation interface { - // optional - Line() uint - HasLine() bool - // optional FunctionName() string HasFunctionName() bool // optional - Column() uint - HasColumn() bool + Line() uint + HasLine() bool // optional - URL() foundation.IURL + URL() foundation.URL HasURL() bool -} -// A concrete type wrapper for the [PFunctionLogDebugLocation] protocol. -type FunctionLogDebugLocationWrapper struct { - objc.Object + // optional + Column() uint + HasColumn() bool } -func (f_ FunctionLogDebugLocationWrapper) HasLine() bool { - return f_.RespondsToSelector(objc.Sel("line")) -} +// ensure impl type implements protocol interface +var _ PFunctionLogDebugLocation = (*FunctionLogDebugLocationObject)(nil) -// The line that the log message appears on. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/metal/mtlfunctionlogdebuglocation/3554022-line?language=objc -func (f_ FunctionLogDebugLocationWrapper) Line() uint { - rv := objc.Call[uint](f_, objc.Sel("line")) - return rv +// A concrete type for the [PFunctionLogDebugLocation] protocol. +type FunctionLogDebugLocationObject struct { + objc.Object } -func (f_ FunctionLogDebugLocationWrapper) HasFunctionName() bool { +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_ FunctionLogDebugLocationWrapper) FunctionName() string { +func (f_ FunctionLogDebugLocationObject) FunctionName() string { rv := objc.Call[string](f_, objc.Sel("functionName")) return rv } -func (f_ FunctionLogDebugLocationWrapper) HasColumn() bool { - return f_.RespondsToSelector(objc.Sel("column")) +func (f_ FunctionLogDebugLocationObject) HasLine() bool { + return f_.RespondsToSelector(objc.Sel("line")) } -// The column where the log message appears. [Full Topic] +// The line that the log message appears on. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metal/mtlfunctionlogdebuglocation/3554019-column?language=objc -func (f_ FunctionLogDebugLocationWrapper) Column() uint { - rv := objc.Call[uint](f_, objc.Sel("column")) +// [Full Topic]: https://developer.apple.com/documentation/metal/mtlfunctionlogdebuglocation/3554022-line?language=objc +func (f_ FunctionLogDebugLocationObject) Line() uint { + rv := objc.Call[uint](f_, objc.Sel("line")) return rv } -func (f_ FunctionLogDebugLocationWrapper) HasURL() bool { +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_ FunctionLogDebugLocationWrapper) URL() foundation.URL { +func (f_ FunctionLogDebugLocationObject) URL() foundation.URL { rv := objc.Call[foundation.URL](f_, objc.Sel("URL")) return rv } + +func (f_ FunctionLogDebugLocationObject) HasColumn() bool { + return f_.RespondsToSelector(objc.Sel("column")) +} + +// The column where the log message appears. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/metal/mtlfunctionlogdebuglocation/3554019-column?language=objc +func (f_ FunctionLogDebugLocationObject) Column() uint { + rv := objc.Call[uint](f_, objc.Sel("column")) + return rv +} diff --git a/macos/metal/function_log.gen.go b/macos/metal/function_log_protocol.gen.go similarity index 65% rename from macos/metal/function_log.gen.go rename to macos/metal/function_log_protocol.gen.go index fae50d20..e4796aa3 100644 --- a/macos/metal/function_log.gen.go +++ b/macos/metal/function_log_protocol.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package metal @@ -11,71 +11,74 @@ import ( // [Full Topic]: https://developer.apple.com/documentation/metal/mtlfunctionlog?language=objc type PFunctionLog interface { // optional - Function() PFunction + Function() FunctionObject HasFunction() bool // optional - DebugLocation() PFunctionLogDebugLocation - HasDebugLocation() bool + Type() FunctionLogType + HasType() bool // optional EncoderLabel() string HasEncoderLabel() bool // optional - Type() FunctionLogType - HasType() bool + DebugLocation() FunctionLogDebugLocationObject + HasDebugLocation() bool } -// A concrete type wrapper for the [PFunctionLog] protocol. -type FunctionLogWrapper struct { +// ensure impl type implements protocol interface +var _ PFunctionLog = (*FunctionLogObject)(nil) + +// A concrete type for the [PFunctionLog] protocol. +type FunctionLogObject struct { objc.Object } -func (f_ FunctionLogWrapper) HasFunction() bool { +func (f_ FunctionLogObject) HasFunction() bool { return f_.RespondsToSelector(objc.Sel("function")) } // When known, the function object corresponding to the logged message. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/metal/mtlfunctionlog/3554010-function?language=objc -func (f_ FunctionLogWrapper) Function() FunctionWrapper { - rv := objc.Call[FunctionWrapper](f_, objc.Sel("function")) +func (f_ FunctionLogObject) Function() FunctionObject { + rv := objc.Call[FunctionObject](f_, objc.Sel("function")) return rv } -func (f_ FunctionLogWrapper) 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_ FunctionLogWrapper) DebugLocation() FunctionLogDebugLocationWrapper { - rv := objc.Call[FunctionLogDebugLocationWrapper](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 } -func (f_ FunctionLogWrapper) HasEncoderLabel() bool { +func (f_ FunctionLogObject) HasEncoderLabel() bool { return f_.RespondsToSelector(objc.Sel("encoderLabel")) } // The label for the encoder that logged the message. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/metal/mtlfunctionlog/3577673-encoderlabel?language=objc -func (f_ FunctionLogWrapper) EncoderLabel() string { +func (f_ FunctionLogObject) EncoderLabel() string { rv := objc.Call[string](f_, objc.Sel("encoderLabel")) return rv } -func (f_ FunctionLogWrapper) 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_ FunctionLogWrapper) 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 } diff --git a/macos/metal/function.gen.go b/macos/metal/function_protocol.gen.go similarity index 70% rename from macos/metal/function.gen.go rename to macos/metal/function_protocol.gen.go index 48c9c2ab..adaa84ab 100644 --- a/macos/metal/function.gen.go +++ b/macos/metal/function_protocol.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package metal @@ -11,199 +11,201 @@ import ( // [Full Topic]: https://developer.apple.com/documentation/metal/mtlfunction?language=objc type PFunction interface { // optional - NewArgumentEncoderWithBufferIndex(bufferIndex uint) PArgumentEncoder + NewArgumentEncoderWithBufferIndex(bufferIndex uint) ArgumentEncoderObject HasNewArgumentEncoderWithBufferIndex() bool // optional - PatchControlPointCount() int - HasPatchControlPointCount() bool + VertexAttributes() []VertexAttribute + HasVertexAttributes() bool // optional - PatchType() PatchType - HasPatchType() bool + SetLabel(value string) + HasSetLabel() bool // optional - Options() FunctionOptions - HasOptions() bool + Label() string + HasLabel() bool // optional - Name() string - HasName() bool + FunctionType() FunctionType + HasFunctionType() bool // optional - Device() PDevice - HasDevice() bool + Name() string + HasName() bool // optional - StageInputAttributes() []IAttribute - HasStageInputAttributes() bool + FunctionConstantsDictionary() map[string]FunctionConstant + HasFunctionConstantsDictionary() bool // optional - VertexAttributes() []IVertexAttribute - HasVertexAttributes() bool + PatchControlPointCount() int + HasPatchControlPointCount() bool // optional - FunctionConstantsDictionary() map[string]IFunctionConstant - HasFunctionConstantsDictionary() bool + Device() DeviceObject + HasDevice() bool // optional - FunctionType() FunctionType - HasFunctionType() bool + PatchType() PatchType + HasPatchType() bool // optional - SetLabel(value string) - HasSetLabel() bool + Options() FunctionOptions + HasOptions() bool // optional - Label() string - HasLabel() bool + StageInputAttributes() []Attribute + HasStageInputAttributes() bool } -// A concrete type wrapper for the [PFunction] protocol. -type FunctionWrapper struct { +// ensure impl type implements protocol interface +var _ PFunction = (*FunctionObject)(nil) + +// A concrete type for the [PFunction] protocol. +type FunctionObject struct { objc.Object } -func (f_ FunctionWrapper) HasNewArgumentEncoderWithBufferIndex() bool { +func (f_ FunctionObject) HasNewArgumentEncoderWithBufferIndex() bool { return f_.RespondsToSelector(objc.Sel("newArgumentEncoderWithBufferIndex:")) } // Creates an argument encoder for an argument buffer that’s one of this function's arguments. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/metal/mtlfunction/2915781-newargumentencoderwithbufferinde?language=objc -func (f_ FunctionWrapper) NewArgumentEncoderWithBufferIndex(bufferIndex uint) ArgumentEncoderWrapper { - rv := objc.Call[ArgumentEncoderWrapper](f_, objc.Sel("newArgumentEncoderWithBufferIndex:"), bufferIndex) - rv.Autorelease() +func (f_ FunctionObject) NewArgumentEncoderWithBufferIndex(bufferIndex uint) ArgumentEncoderObject { + rv := objc.Call[ArgumentEncoderObject](f_, objc.Sel("newArgumentEncoderWithBufferIndex:"), bufferIndex) return rv } -func (f_ FunctionWrapper) HasPatchControlPointCount() bool { - return f_.RespondsToSelector(objc.Sel("patchControlPointCount")) +func (f_ FunctionObject) HasVertexAttributes() bool { + return f_.RespondsToSelector(objc.Sel("vertexAttributes")) } -// The number of patch control points in the post-tessellation vertex 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/1639890-patchcontrolpointcount?language=objc -func (f_ FunctionWrapper) PatchControlPointCount() int { - rv := objc.Call[int](f_, objc.Sel("patchControlPointCount")) +// [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_ FunctionWrapper) HasPatchType() bool { - return f_.RespondsToSelector(objc.Sel("patchType")) +func (f_ FunctionObject) HasSetLabel() bool { + return f_.RespondsToSelector(objc.Sel("setLabel:")) } -// The tessellation patch type of a post-tessellation vertex function. [Full Topic] +// A string that identifies the shader function. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metal/mtlfunction/1639909-patchtype?language=objc -func (f_ FunctionWrapper) PatchType() PatchType { - rv := objc.Call[PatchType](f_, objc.Sel("patchType")) - return rv +// [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_ FunctionWrapper) HasOptions() bool { - return f_.RespondsToSelector(objc.Sel("options")) +func (f_ FunctionObject) HasLabel() bool { + return f_.RespondsToSelector(objc.Sel("label")) } -// The options that Metal used to compile this function. [Full Topic] +// A string that identifies the shader function. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metal/mtlfunction/3566558-options?language=objc -func (f_ FunctionWrapper) Options() FunctionOptions { - rv := objc.Call[FunctionOptions](f_, objc.Sel("options")) +// [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 } -func (f_ FunctionWrapper) HasName() bool { - return f_.RespondsToSelector(objc.Sel("name")) +func (f_ FunctionObject) 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/mtlfunction/1515424-name?language=objc -func (f_ FunctionWrapper) Name() string { - rv := objc.Call[string](f_, objc.Sel("name")) +// [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_ FunctionWrapper) HasDevice() bool { - return f_.RespondsToSelector(objc.Sel("device")) +func (f_ FunctionObject) HasName() bool { + return f_.RespondsToSelector(objc.Sel("name")) } -// The device object that created the shader function. [Full Topic] +// The function’s name. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metal/mtlfunction/1515496-device?language=objc -func (f_ FunctionWrapper) Device() DeviceWrapper { - rv := objc.Call[DeviceWrapper](f_, objc.Sel("device")) +// [Full Topic]: https://developer.apple.com/documentation/metal/mtlfunction/1515424-name?language=objc +func (f_ FunctionObject) Name() string { + rv := objc.Call[string](f_, objc.Sel("name")) return rv } -func (f_ FunctionWrapper) HasStageInputAttributes() bool { - return f_.RespondsToSelector(objc.Sel("stageInputAttributes")) +func (f_ FunctionObject) HasFunctionConstantsDictionary() bool { + return f_.RespondsToSelector(objc.Sel("functionConstantsDictionary")) } -// An array that describes the input attributes to the function. [Full Topic] +// A dictionary of function constants for a specialized function. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metal/mtlfunction/2097159-stageinputattributes?language=objc -func (f_ FunctionWrapper) StageInputAttributes() []Attribute { - rv := objc.Call[[]Attribute](f_, objc.Sel("stageInputAttributes")) +// [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_ FunctionWrapper) 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_ FunctionWrapper) 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_ FunctionWrapper) 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_ FunctionWrapper) 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_ FunctionWrapper) HasFunctionType() bool { - return f_.RespondsToSelector(objc.Sel("functionType")) +func (f_ FunctionObject) HasPatchType() bool { + return f_.RespondsToSelector(objc.Sel("patchType")) } -// The shader function’s type. [Full Topic] +// The tessellation patch type of a post-tessellation vertex function. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metal/mtlfunction/1516042-functiontype?language=objc -func (f_ FunctionWrapper) FunctionType() FunctionType { - rv := objc.Call[FunctionType](f_, objc.Sel("functionType")) +// [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_ FunctionWrapper) HasSetLabel() bool { - return f_.RespondsToSelector(objc.Sel("setLabel:")) +func (f_ FunctionObject) HasOptions() bool { + return f_.RespondsToSelector(objc.Sel("options")) } -// A string that identifies the shader function. [Full Topic] +// The options that Metal used to compile this function. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metal/mtlfunction/1640034-label?language=objc -func (f_ FunctionWrapper) SetLabel(value string) { - objc.Call[objc.Void](f_, objc.Sel("setLabel:"), value) +// [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 } -func (f_ FunctionWrapper) HasLabel() bool { - return f_.RespondsToSelector(objc.Sel("label")) +func (f_ FunctionObject) HasStageInputAttributes() bool { + return f_.RespondsToSelector(objc.Sel("stageInputAttributes")) } -// A string that identifies the shader function. [Full Topic] +// An array that describes the input attributes to the function. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metal/mtlfunction/1640034-label?language=objc -func (f_ FunctionWrapper) Label() string { - rv := objc.Call[string](f_, objc.Sel("label")) +// [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 } diff --git a/macos/metal/function_stitching_attribute_always_inline.gen.go b/macos/metal/function_stitching_attribute_always_inline.gen.go index a5f31bcd..4e7b0a73 100644 --- a/macos/metal/function_stitching_attribute_always_inline.gen.go +++ b/macos/metal/function_stitching_attribute_always_inline.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package metal @@ -38,10 +38,6 @@ func (fc _FunctionStitchingAttributeAlwaysInlineClass) Alloc() FunctionStitching return rv } -func FunctionStitchingAttributeAlwaysInline_Alloc() FunctionStitchingAttributeAlwaysInline { - return FunctionStitchingAttributeAlwaysInlineClass.Alloc() -} - func (fc _FunctionStitchingAttributeAlwaysInlineClass) New() FunctionStitchingAttributeAlwaysInline { rv := objc.Call[FunctionStitchingAttributeAlwaysInline](fc, objc.Sel("new")) rv.Autorelease() diff --git a/macos/metal/function_stitching_attribute.gen.go b/macos/metal/function_stitching_attribute_protocol.gen.go similarity index 55% rename from macos/metal/function_stitching_attribute.gen.go rename to macos/metal/function_stitching_attribute_protocol.gen.go index 04ba43b4..218a2480 100644 --- a/macos/metal/function_stitching_attribute.gen.go +++ b/macos/metal/function_stitching_attribute_protocol.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package metal @@ -12,7 +12,10 @@ import ( type PFunctionStitchingAttribute interface { } -// A concrete type wrapper for the [PFunctionStitchingAttribute] protocol. -type FunctionStitchingAttributeWrapper struct { +// ensure impl type implements protocol interface +var _ PFunctionStitchingAttribute = (*FunctionStitchingAttributeObject)(nil) + +// A concrete type for the [PFunctionStitchingAttribute] protocol. +type FunctionStitchingAttributeObject struct { objc.Object } diff --git a/macos/metal/function_stitching_function_node.gen.go b/macos/metal/function_stitching_function_node.gen.go index 57dd83bb..cb9c684f 100644 --- a/macos/metal/function_stitching_function_node.gen.go +++ b/macos/metal/function_stitching_function_node.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package metal @@ -18,12 +18,12 @@ type _FunctionStitchingFunctionNodeClass struct { // An interface definition for the [FunctionStitchingFunctionNode] class. type IFunctionStitchingFunctionNode interface { objc.IObject - Arguments() []FunctionStitchingNodeWrapper - SetArguments(value []PFunctionStitchingNode) - Name() string - SetName(value string) ControlDependencies() []FunctionStitchingFunctionNode SetControlDependencies(value []IFunctionStitchingFunctionNode) + Name() string + SetName(value string) + Arguments() []FunctionStitchingNodeObject + SetArguments(value []PFunctionStitchingNode) } // A call graph node that describes a function call and its inputs. [Full Topic] @@ -58,10 +58,6 @@ func (fc _FunctionStitchingFunctionNodeClass) Alloc() FunctionStitchingFunctionN return rv } -func FunctionStitchingFunctionNode_Alloc() FunctionStitchingFunctionNode { - return FunctionStitchingFunctionNodeClass.Alloc() -} - func (fc _FunctionStitchingFunctionNodeClass) New() FunctionStitchingFunctionNode { rv := objc.Call[FunctionStitchingFunctionNode](fc, objc.Sel("new")) rv.Autorelease() @@ -77,19 +73,19 @@ func (f_ FunctionStitchingFunctionNode) Init() FunctionStitchingFunctionNode { 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) Arguments() []FunctionStitchingNodeWrapper { - rv := objc.Call[[]FunctionStitchingNodeWrapper](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) } // The name of the function to call. [Full Topic] @@ -107,17 +103,17 @@ func (f_ FunctionStitchingFunctionNode) SetName(value string) { objc.Call[objc.Void](f_, objc.Sel("setName:"), value) } -// 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) } diff --git a/macos/metal/function_stitching_graph.gen.go b/macos/metal/function_stitching_graph.gen.go index 8e544bc4..b9d23b95 100644 --- a/macos/metal/function_stitching_graph.gen.go +++ b/macos/metal/function_stitching_graph.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package metal @@ -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) - OutputNode() FunctionStitchingFunctionNode - SetOutputNode(value IFunctionStitchingFunctionNode) Nodes() []FunctionStitchingFunctionNode SetNodes(value []IFunctionStitchingFunctionNode) - Attributes() []FunctionStitchingAttributeWrapper - SetAttributes(value []PFunctionStitchingAttribute) + OutputNode() FunctionStitchingFunctionNode + SetOutputNode(value IFunctionStitchingFunctionNode) } // A description of a new stitched function. [Full Topic] @@ -60,10 +60,6 @@ func (fc _FunctionStitchingGraphClass) Alloc() FunctionStitchingGraph { return rv } -func FunctionStitchingGraph_Alloc() FunctionStitchingGraph { - return FunctionStitchingGraphClass.Alloc() -} - func (fc _FunctionStitchingGraphClass) New() FunctionStitchingGraph { rv := objc.Call[FunctionStitchingGraph](fc, objc.Sel("new")) rv.Autorelease() @@ -79,6 +75,21 @@ 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 @@ -94,21 +105,6 @@ 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:"), objc.Ptr(value)) -} - // The nodes in the function’s call graph. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/metal/mtlfunctionstitchinggraph/3750542-nodes?language=objc @@ -124,17 +120,17 @@ func (f_ FunctionStitchingGraph) SetNodes(value []IFunctionStitchingFunctionNode objc.Call[objc.Void](f_, objc.Sel("setNodes:"), value) } -// A list of attributes to configure how the Metal device object generates the new stitched function. [Full Topic] +// 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/3750539-attributes?language=objc -func (f_ FunctionStitchingGraph) Attributes() []FunctionStitchingAttributeWrapper { - rv := objc.Call[[]FunctionStitchingAttributeWrapper](f_, objc.Sel("attributes")) +// [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 } -// A list of attributes to configure how the Metal device object generates the new stitched function. [Full Topic] +// 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/3750539-attributes?language=objc -func (f_ FunctionStitchingGraph) SetAttributes(value []PFunctionStitchingAttribute) { - objc.Call[objc.Void](f_, objc.Sel("setAttributes:"), value) +// [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:"), objc.Ptr(value)) } diff --git a/macos/metal/function_stitching_input_node.gen.go b/macos/metal/function_stitching_input_node.gen.go index 2959d484..6e170b92 100644 --- a/macos/metal/function_stitching_input_node.gen.go +++ b/macos/metal/function_stitching_input_node.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package metal @@ -54,10 +54,6 @@ func (fc _FunctionStitchingInputNodeClass) Alloc() FunctionStitchingInputNode { return rv } -func FunctionStitchingInputNode_Alloc() FunctionStitchingInputNode { - return FunctionStitchingInputNodeClass.Alloc() -} - func (fc _FunctionStitchingInputNodeClass) New() FunctionStitchingInputNode { rv := objc.Call[FunctionStitchingInputNode](fc, objc.Sel("new")) rv.Autorelease() diff --git a/macos/metal/function_stitching_node.gen.go b/macos/metal/function_stitching_node_protocol.gen.go similarity index 51% rename from macos/metal/function_stitching_node.gen.go rename to macos/metal/function_stitching_node_protocol.gen.go index 6ad61981..1272219b 100644 --- a/macos/metal/function_stitching_node.gen.go +++ b/macos/metal/function_stitching_node_protocol.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package metal @@ -12,7 +12,10 @@ import ( type PFunctionStitchingNode interface { } -// A concrete type wrapper for the [PFunctionStitchingNode] protocol. -type FunctionStitchingNodeWrapper struct { +// ensure impl type implements protocol interface +var _ PFunctionStitchingNode = (*FunctionStitchingNodeObject)(nil) + +// A concrete type for the [PFunctionStitchingNode] protocol. +type FunctionStitchingNodeObject struct { objc.Object } diff --git a/macos/metal/heap_descriptor.gen.go b/macos/metal/heap_descriptor.gen.go index ff33502e..17307f93 100644 --- a/macos/metal/heap_descriptor.gen.go +++ b/macos/metal/heap_descriptor.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package metal @@ -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) } @@ -50,10 +50,6 @@ func (hc _HeapDescriptorClass) Alloc() HeapDescriptor { return rv } -func HeapDescriptor_Alloc() HeapDescriptor { - return HeapDescriptorClass.Alloc() -} - func (hc _HeapDescriptorClass) New() HeapDescriptor { rv := objc.Call[HeapDescriptor](hc, objc.Sel("new")) rv.Autorelease() @@ -69,6 +65,36 @@ 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 @@ -99,21 +125,6 @@ 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 @@ -129,21 +140,6 @@ 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.gen.go b/macos/metal/heap_protocol.gen.go similarity index 61% rename from macos/metal/heap.gen.go rename to macos/metal/heap_protocol.gen.go index 87d57d05..e1075e14 100644 --- a/macos/metal/heap.gen.go +++ b/macos/metal/heap_protocol.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package metal @@ -11,11 +11,15 @@ import ( // [Full Topic]: https://developer.apple.com/documentation/metal/mtlheap?language=objc type PHeap interface { // optional - NewTextureWithDescriptor(descriptor TextureDescriptor) PTexture - HasNewTextureWithDescriptor() bool + SetPurgeableState(state PurgeableState) PurgeableState + HasSetPurgeableState() bool + + // optional + NewBufferWithLengthOptionsOffset(length uint, options ResourceOptions, offset uint) BufferObject + HasNewBufferWithLengthOptionsOffset() bool // optional - NewBufferWithLengthOptions(length uint, options ResourceOptions) PBuffer + NewBufferWithLengthOptions(length uint, options ResourceOptions) BufferObject HasNewBufferWithLengthOptions() bool // optional @@ -23,236 +27,265 @@ type PHeap interface { HasMaxAvailableSizeWithAlignment() bool // optional - SetPurgeableState(state PurgeableState) PurgeableState - HasSetPurgeableState() bool + NewTextureWithDescriptor(descriptor TextureDescriptor) TextureObject + HasNewTextureWithDescriptor() bool // optional - Device() PDevice - HasDevice() bool + NewTextureWithDescriptorOffset(descriptor TextureDescriptor, offset uint) TextureObject + HasNewTextureWithDescriptorOffset() bool // optional - CpuCacheMode() CPUCacheMode - HasCpuCacheMode() bool + HazardTrackingMode() HazardTrackingMode + HasHazardTrackingMode() bool // optional - StorageMode() StorageMode - HasStorageMode() bool + SetLabel(value string) + HasSetLabel() bool // optional - UsedSize() uint - HasUsedSize() bool + Label() string + HasLabel() bool // optional - ResourceOptions() ResourceOptions - HasResourceOptions() bool + CurrentAllocatedSize() uint + HasCurrentAllocatedSize() bool // optional Type() HeapType HasType() bool // optional - SetLabel(value string) - HasSetLabel() bool + UsedSize() uint + HasUsedSize() bool // optional - Label() string - HasLabel() bool + CpuCacheMode() CPUCacheMode + HasCpuCacheMode() bool // optional Size() uint HasSize() bool // optional - CurrentAllocatedSize() uint - HasCurrentAllocatedSize() bool + ResourceOptions() ResourceOptions + HasResourceOptions() bool // optional - HazardTrackingMode() HazardTrackingMode - HasHazardTrackingMode() bool + StorageMode() StorageMode + HasStorageMode() bool + + // optional + Device() DeviceObject + HasDevice() bool } -// A concrete type wrapper for the [PHeap] protocol. -type HeapWrapper struct { +// ensure impl type implements protocol interface +var _ PHeap = (*HeapObject)(nil) + +// A concrete type for the [PHeap] protocol. +type HeapObject struct { objc.Object } -func (h_ HeapWrapper) 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_ HeapWrapper) NewTextureWithDescriptor(descriptor ITextureDescriptor) TextureWrapper { - rv := objc.Call[TextureWrapper](h_, objc.Sel("newTextureWithDescriptor:"), objc.Ptr(descriptor)) - rv.Autorelease() +// [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:")) +} + +// Creates a buffer at a specified offset 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) return rv } -func (h_ HeapWrapper) HasNewBufferWithLengthOptions() bool { +func (h_ HeapObject) HasNewBufferWithLengthOptions() bool { return h_.RespondsToSelector(objc.Sel("newBufferWithLength:options:")) } // Creates a buffer on the heap. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/metal/mtlheap/1649571-newbufferwithlength?language=objc -func (h_ HeapWrapper) NewBufferWithLengthOptions(length uint, options ResourceOptions) BufferWrapper { - rv := objc.Call[BufferWrapper](h_, objc.Sel("newBufferWithLength:options:"), length, options) - rv.Autorelease() +func (h_ HeapObject) NewBufferWithLengthOptions(length uint, options ResourceOptions) BufferObject { + rv := objc.Call[BufferObject](h_, objc.Sel("newBufferWithLength:options:"), length, options) return rv } -func (h_ HeapWrapper) HasMaxAvailableSizeWithAlignment() bool { +func (h_ HeapObject) HasMaxAvailableSizeWithAlignment() bool { return h_.RespondsToSelector(objc.Sel("maxAvailableSizeWithAlignment:")) } // The maximum size of a resource, in bytes, that can be currently allocated from the heap. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/metal/mtlheap/1771284-maxavailablesizewithalignment?language=objc -func (h_ HeapWrapper) MaxAvailableSizeWithAlignment(alignment uint) uint { +func (h_ HeapObject) MaxAvailableSizeWithAlignment(alignment uint) uint { rv := objc.Call[uint](h_, objc.Sel("maxAvailableSizeWithAlignment:"), alignment) return rv } -func (h_ HeapWrapper) HasSetPurgeableState() bool { - return h_.RespondsToSelector(objc.Sel("setPurgeableState:")) +func (h_ HeapObject) HasNewTextureWithDescriptor() bool { + return h_.RespondsToSelector(objc.Sel("newTextureWithDescriptor:")) } -// Sets the purgeable state of the heap. [Full Topic] +// Creates a texture on the heap. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metal/mtlheap/1771281-setpurgeablestate?language=objc -func (h_ HeapWrapper) SetPurgeableState(state PurgeableState) PurgeableState { - rv := objc.Call[PurgeableState](h_, objc.Sel("setPurgeableState:"), state) +// [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:"), objc.Ptr(descriptor)) return rv } -func (h_ HeapWrapper) HasDevice() bool { - return h_.RespondsToSelector(objc.Sel("device")) +func (h_ HeapObject) HasNewTextureWithDescriptorOffset() bool { + return h_.RespondsToSelector(objc.Sel("newTextureWithDescriptor:offset:")) } -// The device object that created the heap. [Full Topic] +// Creates a texture at a specified offset on the heap. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metal/mtlheap/1771285-device?language=objc -func (h_ HeapWrapper) Device() DeviceWrapper { - rv := objc.Call[DeviceWrapper](h_, objc.Sel("device")) +// [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:"), objc.Ptr(descriptor), offset) return rv } -func (h_ HeapWrapper) HasCpuCacheMode() bool { - return h_.RespondsToSelector(objc.Sel("cpuCacheMode")) +func (h_ HeapObject) HasHazardTrackingMode() bool { + return h_.RespondsToSelector(objc.Sel("hazardTrackingMode")) } -// The heap's CPU cache mode. [Full Topic] +// The heap's hazard tracking mode. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metal/mtlheap/1771280-cpucachemode?language=objc -func (h_ HeapWrapper) CpuCacheMode() CPUCacheMode { - rv := objc.Call[CPUCacheMode](h_, objc.Sel("cpuCacheMode")) +// [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 } -func (h_ HeapWrapper) HasStorageMode() bool { - return h_.RespondsToSelector(objc.Sel("storageMode")) +func (h_ HeapObject) HasSetLabel() bool { + return h_.RespondsToSelector(objc.Sel("setLabel:")) } -// The heap's storage mode. [Full Topic] +// A string that identifies the heap. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metal/mtlheap/1771282-storagemode?language=objc -func (h_ HeapWrapper) StorageMode() StorageMode { - rv := objc.Call[StorageMode](h_, objc.Sel("storageMode")) - 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_ HeapWrapper) HasUsedSize() bool { - return h_.RespondsToSelector(objc.Sel("usedSize")) +func (h_ HeapObject) HasLabel() bool { + return h_.RespondsToSelector(objc.Sel("label")) } -// 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_ HeapWrapper) UsedSize() uint { - rv := objc.Call[uint](h_, objc.Sel("usedSize")) +// [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 } -func (h_ HeapWrapper) HasResourceOptions() bool { - return h_.RespondsToSelector(objc.Sel("resourceOptions")) +func (h_ HeapObject) HasCurrentAllocatedSize() bool { + return h_.RespondsToSelector(objc.Sel("currentAllocatedSize")) } -// The options for resources created by the heap. [Full Topic] +// The size, in bytes, of the current heap allocation. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metal/mtlheap/3131685-resourceoptions?language=objc -func (h_ HeapWrapper) ResourceOptions() ResourceOptions { - rv := objc.Call[ResourceOptions](h_, objc.Sel("resourceOptions")) +// [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_ HeapWrapper) HasType() bool { +func (h_ HeapObject) HasType() bool { return h_.RespondsToSelector(objc.Sel("type")) } // The heap's type. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/metal/mtlheap/3043386-type?language=objc -func (h_ HeapWrapper) Type() HeapType { +func (h_ HeapObject) Type() HeapType { rv := objc.Call[HeapType](h_, objc.Sel("type")) return rv } -func (h_ HeapWrapper) HasSetLabel() bool { - return h_.RespondsToSelector(objc.Sel("setLabel:")) +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_ HeapWrapper) SetLabel(value string) { - objc.Call[objc.Void](h_, objc.Sel("setLabel:"), value) +// [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_ HeapWrapper) HasLabel() bool { - return h_.RespondsToSelector(objc.Sel("label")) +func (h_ HeapObject) HasCpuCacheMode() bool { + return h_.RespondsToSelector(objc.Sel("cpuCacheMode")) } -// A string that identifies the heap. [Full Topic] +// The heap's CPU cache mode. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metal/mtlheap/1771279-label?language=objc -func (h_ HeapWrapper) Label() string { - rv := objc.Call[string](h_, objc.Sel("label")) +// [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_ HeapWrapper) HasSize() bool { +func (h_ HeapObject) HasSize() bool { return h_.RespondsToSelector(objc.Sel("size")) } // The total size of the heap, in bytes. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/metal/mtlheap/1649569-size?language=objc -func (h_ HeapWrapper) Size() uint { +func (h_ HeapObject) Size() uint { rv := objc.Call[uint](h_, objc.Sel("size")) return rv } -func (h_ HeapWrapper) 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_ HeapWrapper) 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 } -func (h_ HeapWrapper) HasHazardTrackingMode() bool { - return h_.RespondsToSelector(objc.Sel("hazardTrackingMode")) +func (h_ HeapObject) HasStorageMode() bool { + return h_.RespondsToSelector(objc.Sel("storageMode")) } -// The heap's hazard tracking mode. [Full Topic] +// The heap's storage mode. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metal/mtlheap/3131684-hazardtrackingmode?language=objc -func (h_ HeapWrapper) HazardTrackingMode() HazardTrackingMode { - rv := objc.Call[HazardTrackingMode](h_, objc.Sel("hazardTrackingMode")) +// [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) HasDevice() bool { + return h_.RespondsToSelector(objc.Sel("device")) +} + +// The device object that created the heap. [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")) return rv } diff --git a/macos/metal/indirect_command_buffer_descriptor.gen.go b/macos/metal/indirect_command_buffer_descriptor.gen.go index 826773eb..3b17a3a7 100644 --- a/macos/metal/indirect_command_buffer_descriptor.gen.go +++ b/macos/metal/indirect_command_buffer_descriptor.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package metal @@ -18,18 +18,18 @@ type _IndirectCommandBufferDescriptorClass struct { // An interface definition for the [IndirectCommandBufferDescriptor] class. type IIndirectCommandBufferDescriptor interface { objc.IObject - InheritBuffers() bool - SetInheritBuffers(value bool) + MaxFragmentBufferBindCount() uint + SetMaxFragmentBufferBindCount(value uint) + MaxKernelBufferBindCount() uint + SetMaxKernelBufferBindCount(value uint) MaxVertexBufferBindCount() uint SetMaxVertexBufferBindCount(value uint) InheritPipelineState() bool SetInheritPipelineState(value bool) - MaxFragmentBufferBindCount() uint - SetMaxFragmentBufferBindCount(value uint) CommandTypes() IndirectCommandType SetCommandTypes(value IndirectCommandType) - MaxKernelBufferBindCount() uint - SetMaxKernelBufferBindCount(value uint) + InheritBuffers() bool + SetInheritBuffers(value bool) } // A configuration you create to customize an indirect command buffer. [Full Topic] @@ -50,10 +50,6 @@ func (ic _IndirectCommandBufferDescriptorClass) Alloc() IndirectCommandBufferDes return rv } -func IndirectCommandBufferDescriptor_Alloc() IndirectCommandBufferDescriptor { - return IndirectCommandBufferDescriptorClass.Alloc() -} - func (ic _IndirectCommandBufferDescriptorClass) New() IndirectCommandBufferDescriptor { rv := objc.Call[IndirectCommandBufferDescriptor](ic, objc.Sel("new")) rv.Autorelease() @@ -69,19 +65,34 @@ func (i_ IndirectCommandBufferDescriptor) Init() IndirectCommandBufferDescriptor 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 fragment stage. [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/2976449-maxfragmentbufferbindcount?language=objc +func (i_ IndirectCommandBufferDescriptor) MaxFragmentBufferBindCount() uint { + rv := objc.Call[uint](i_, objc.Sel("maxFragmentBufferBindCount")) 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 fragment stage. [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/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] +// +// [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 +} + +// 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/2976450-maxkernelbufferbindcount?language=objc +func (i_ IndirectCommandBufferDescriptor) SetMaxKernelBufferBindCount(value uint) { + objc.Call[objc.Void](i_, objc.Sel("setMaxKernelBufferBindCount:"), value) } // The maximum number of buffers that you can set per command for the vertex stage. [Full Topic] @@ -114,21 +125,6 @@ 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 @@ -144,17 +140,17 @@ func (i_ IndirectCommandBufferDescriptor) SetCommandTypes(value IndirectCommandT objc.Call[objc.Void](i_, objc.Sel("setCommandTypes:"), 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) } diff --git a/macos/metal/indirect_command_buffer.gen.go b/macos/metal/indirect_command_buffer_protocol.gen.go similarity index 59% rename from macos/metal/indirect_command_buffer.gen.go rename to macos/metal/indirect_command_buffer_protocol.gen.go index eb147f61..31cab1be 100644 --- a/macos/metal/indirect_command_buffer.gen.go +++ b/macos/metal/indirect_command_buffer_protocol.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package metal @@ -12,70 +12,73 @@ import ( // [Full Topic]: https://developer.apple.com/documentation/metal/mtlindirectcommandbuffer?language=objc type PIndirectCommandBuffer interface { // optional - IndirectComputeCommandAtIndex(commandIndex uint) PIndirectComputeCommand - HasIndirectComputeCommandAtIndex() bool + ResetWithRange(range_ foundation.Range) + HasResetWithRange() bool // optional - IndirectRenderCommandAtIndex(commandIndex uint) PIndirectRenderCommand - HasIndirectRenderCommandAtIndex() bool + IndirectComputeCommandAtIndex(commandIndex uint) IndirectComputeCommandObject + HasIndirectComputeCommandAtIndex() bool // optional - ResetWithRange(range_ foundation.Range) - HasResetWithRange() bool + IndirectRenderCommandAtIndex(commandIndex uint) IndirectRenderCommandObject + HasIndirectRenderCommandAtIndex() bool // optional Size() uint HasSize() bool } -// A concrete type wrapper for the [PIndirectCommandBuffer] protocol. -type IndirectCommandBufferWrapper struct { +// ensure impl type implements protocol interface +var _ PIndirectCommandBuffer = (*IndirectCommandBufferObject)(nil) + +// A concrete type for the [PIndirectCommandBuffer] protocol. +type IndirectCommandBufferObject struct { objc.Object } -func (i_ IndirectCommandBufferWrapper) HasIndirectComputeCommandAtIndex() bool { +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:")) } // Gets the compute command at the given index. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/metal/mtlindirectcommandbuffer/2967430-indirectcomputecommandatindex?language=objc -func (i_ IndirectCommandBufferWrapper) IndirectComputeCommandAtIndex(commandIndex uint) IndirectComputeCommandWrapper { - rv := objc.Call[IndirectComputeCommandWrapper](i_, objc.Sel("indirectComputeCommandAtIndex:"), commandIndex) +func (i_ IndirectCommandBufferObject) IndirectComputeCommandAtIndex(commandIndex uint) IndirectComputeCommandObject { + rv := objc.Call[IndirectComputeCommandObject](i_, objc.Sel("indirectComputeCommandAtIndex:"), commandIndex) return rv } -func (i_ IndirectCommandBufferWrapper) HasIndirectRenderCommandAtIndex() bool { +func (i_ IndirectCommandBufferObject) HasIndirectRenderCommandAtIndex() bool { return i_.RespondsToSelector(objc.Sel("indirectRenderCommandAtIndex:")) } // Gets the render command at the given index. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/metal/mtlindirectcommandbuffer/2967431-indirectrendercommandatindex?language=objc -func (i_ IndirectCommandBufferWrapper) IndirectRenderCommandAtIndex(commandIndex uint) IndirectRenderCommandWrapper { - rv := objc.Call[IndirectRenderCommandWrapper](i_, objc.Sel("indirectRenderCommandAtIndex:"), commandIndex) +func (i_ IndirectCommandBufferObject) IndirectRenderCommandAtIndex(commandIndex uint) IndirectRenderCommandObject { + rv := objc.Call[IndirectRenderCommandObject](i_, objc.Sel("indirectRenderCommandAtIndex:"), commandIndex) return rv } -func (i_ IndirectCommandBufferWrapper) 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_ IndirectCommandBufferWrapper) ResetWithRange(range_ foundation.Range) { - objc.Call[objc.Void](i_, objc.Sel("resetWithRange:"), range_) -} - -func (i_ IndirectCommandBufferWrapper) HasSize() bool { +func (i_ IndirectCommandBufferObject) HasSize() bool { return i_.RespondsToSelector(objc.Sel("size")) } // The number of commands contained in the indirect command buffer. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/metal/mtlindirectcommandbuffer/2981028-size?language=objc -func (i_ IndirectCommandBufferWrapper) Size() uint { +func (i_ IndirectCommandBufferObject) Size() uint { rv := objc.Call[uint](i_, objc.Sel("size")) return rv } diff --git a/macos/metal/indirect_compute_command.gen.go b/macos/metal/indirect_compute_command_protocol.gen.go similarity index 70% rename from macos/metal/indirect_compute_command.gen.go rename to macos/metal/indirect_compute_command_protocol.gen.go index 280a18d3..f0107895 100644 --- a/macos/metal/indirect_compute_command.gen.go +++ b/macos/metal/indirect_compute_command_protocol.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package metal @@ -11,159 +11,162 @@ import ( // [Full Topic]: https://developer.apple.com/documentation/metal/mtlindirectcomputecommand?language=objc type PIndirectComputeCommand interface { // optional - SetThreadgroupMemoryLengthAtIndex(length uint, index uint) - HasSetThreadgroupMemoryLengthAtIndex() bool + SetStageInRegion(region Region) + HasSetStageInRegion() bool // optional - SetComputePipelineState(pipelineState ComputePipelineStateWrapper) - HasSetComputePipelineState() bool + ConcurrentDispatchThreadsThreadsPerThreadgroup(threadsPerGrid Size, threadsPerThreadgroup Size) + HasConcurrentDispatchThreadsThreadsPerThreadgroup() bool // optional ConcurrentDispatchThreadgroupsThreadsPerThreadgroup(threadgroupsPerGrid Size, threadsPerThreadgroup Size) HasConcurrentDispatchThreadgroupsThreadsPerThreadgroup() bool // optional - SetKernelBufferOffsetAtIndex(buffer BufferWrapper, offset uint, index uint) - HasSetKernelBufferOffsetAtIndex() bool + Reset() + HasReset() bool // optional - SetStageInRegion(region Region) - HasSetStageInRegion() bool + SetImageblockWidthHeight(width uint, height uint) + HasSetImageblockWidthHeight() bool // optional - ConcurrentDispatchThreadsThreadsPerThreadgroup(threadsPerGrid Size, threadsPerThreadgroup Size) - HasConcurrentDispatchThreadsThreadsPerThreadgroup() bool + SetComputePipelineState(pipelineState ComputePipelineStateObject) + HasSetComputePipelineState() bool // optional - ClearBarrier() - HasClearBarrier() bool + SetThreadgroupMemoryLengthAtIndex(length uint, index uint) + HasSetThreadgroupMemoryLengthAtIndex() bool // optional - SetBarrier() - HasSetBarrier() bool + SetKernelBufferOffsetAtIndex(buffer BufferObject, offset uint, index uint) + HasSetKernelBufferOffsetAtIndex() bool // optional - SetImageblockWidthHeight(width uint, height uint) - HasSetImageblockWidthHeight() bool + ClearBarrier() + HasClearBarrier() bool // optional - Reset() - HasReset() bool + SetBarrier() + HasSetBarrier() bool } -// A concrete type wrapper for the [PIndirectComputeCommand] protocol. -type IndirectComputeCommandWrapper struct { +// ensure impl type implements protocol interface +var _ PIndirectComputeCommand = (*IndirectComputeCommandObject)(nil) + +// A concrete type for the [PIndirectComputeCommand] protocol. +type IndirectComputeCommandObject struct { objc.Object } -func (i_ IndirectComputeCommandWrapper) 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_ IndirectComputeCommandWrapper) 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_ IndirectComputeCommandWrapper) HasSetComputePipelineState() bool { - return i_.RespondsToSelector(objc.Sel("setComputePipelineState:")) +func (i_ IndirectComputeCommandObject) HasConcurrentDispatchThreadsThreadsPerThreadgroup() bool { + return i_.RespondsToSelector(objc.Sel("concurrentDispatchThreads:threadsPerThreadgroup:")) } -// Sets the command’s compute pipeline state object. [Full Topic] +// Encodes a compute command using an arbitrarily sized grid. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metal/mtlindirectcomputecommand/2966609-setcomputepipelinestate?language=objc -func (i_ IndirectComputeCommandWrapper) SetComputePipelineState(pipelineState PComputePipelineState) { - po0 := objc.WrapAsProtocol("MTLComputePipelineState", pipelineState) - objc.Call[objc.Void](i_, objc.Sel("setComputePipelineState:"), po0) +// [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_ IndirectComputeCommandWrapper) HasConcurrentDispatchThreadgroupsThreadsPerThreadgroup() bool { +func (i_ IndirectComputeCommandObject) HasConcurrentDispatchThreadgroupsThreadsPerThreadgroup() bool { return i_.RespondsToSelector(objc.Sel("concurrentDispatchThreadgroups:threadsPerThreadgroup:")) } // Encodes a compute command using a grid aligned to threadgroup boundaries. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/metal/mtlindirectcomputecommand/2966604-concurrentdispatchthreadgroups?language=objc -func (i_ IndirectComputeCommandWrapper) ConcurrentDispatchThreadgroupsThreadsPerThreadgroup(threadgroupsPerGrid Size, threadsPerThreadgroup Size) { +func (i_ IndirectComputeCommandObject) ConcurrentDispatchThreadgroupsThreadsPerThreadgroup(threadgroupsPerGrid Size, threadsPerThreadgroup Size) { objc.Call[objc.Void](i_, objc.Sel("concurrentDispatchThreadgroups:threadsPerThreadgroup:"), threadgroupsPerGrid, threadsPerThreadgroup) } -func (i_ IndirectComputeCommandWrapper) HasSetKernelBufferOffsetAtIndex() bool { - return i_.RespondsToSelector(objc.Sel("setKernelBuffer:offset:atIndex:")) +func (i_ IndirectComputeCommandObject) HasReset() bool { + return i_.RespondsToSelector(objc.Sel("reset")) } -// Sets a buffer for the compute function. [Full Topic] +// Resets the command to its default state. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metal/mtlindirectcomputecommand/2976452-setkernelbuffer?language=objc -func (i_ IndirectComputeCommandWrapper) SetKernelBufferOffsetAtIndex(buffer PBuffer, 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/2981029-reset?language=objc +func (i_ IndirectComputeCommandObject) Reset() { + objc.Call[objc.Void](i_, objc.Sel("reset")) } -func (i_ IndirectComputeCommandWrapper) HasSetStageInRegion() bool { - return i_.RespondsToSelector(objc.Sel("setStageInRegion:")) +func (i_ IndirectComputeCommandObject) HasSetImageblockWidthHeight() bool { + return i_.RespondsToSelector(objc.Sel("setImageblockWidth:height:")) } -// Sets the region of the stage-in attributes to apply to the compute kernel. [Full Topic] +// Sets the size, in pixels, of the imageblock. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metal/mtlindirectcomputecommand/2966611-setstageinregion?language=objc -func (i_ IndirectComputeCommandWrapper) SetStageInRegion(region Region) { - objc.Call[objc.Void](i_, objc.Sel("setStageInRegion:"), region) +// [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_ IndirectComputeCommandWrapper) 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_ IndirectComputeCommandWrapper) 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_ IndirectComputeCommandWrapper) HasClearBarrier() bool { - return i_.RespondsToSelector(objc.Sel("clearBarrier")) +func (i_ IndirectComputeCommandObject) HasSetThreadgroupMemoryLengthAtIndex() bool { + return i_.RespondsToSelector(objc.Sel("setThreadgroupMemoryLength:atIndex:")) } -// Removes any barrier set on the command. [Full Topic] +// Sets the size of a block of threadgroup memory. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metal/mtlindirectcomputecommand/3043397-clearbarrier?language=objc -func (i_ IndirectComputeCommandWrapper) ClearBarrier() { - objc.Call[objc.Void](i_, objc.Sel("clearBarrier")) +// [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_ IndirectComputeCommandWrapper) HasSetBarrier() bool { - return i_.RespondsToSelector(objc.Sel("setBarrier")) +func (i_ IndirectComputeCommandObject) HasSetKernelBufferOffsetAtIndex() bool { + return i_.RespondsToSelector(objc.Sel("setKernelBuffer:offset:atIndex:")) } -// Adds a barrier to ensure that commands executed prior to this command are complete before this command executes. [Full Topic] +// Sets a buffer for the compute function. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metal/mtlindirectcomputecommand/3043399-setbarrier?language=objc -func (i_ IndirectComputeCommandWrapper) SetBarrier() { - objc.Call[objc.Void](i_, objc.Sel("setBarrier")) +// [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_ IndirectComputeCommandWrapper) HasSetImageblockWidthHeight() bool { - return i_.RespondsToSelector(objc.Sel("setImageblockWidth:height:")) +func (i_ IndirectComputeCommandObject) HasClearBarrier() bool { + return i_.RespondsToSelector(objc.Sel("clearBarrier")) } -// Sets the size, in pixels, of the imageblock. [Full Topic] +// Removes any barrier set on the command. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metal/mtlindirectcomputecommand/3172768-setimageblockwidth?language=objc -func (i_ IndirectComputeCommandWrapper) SetImageblockWidthHeight(width uint, height uint) { - objc.Call[objc.Void](i_, objc.Sel("setImageblockWidth:height:"), width, height) +// [Full Topic]: https://developer.apple.com/documentation/metal/mtlindirectcomputecommand/3043397-clearbarrier?language=objc +func (i_ IndirectComputeCommandObject) ClearBarrier() { + objc.Call[objc.Void](i_, objc.Sel("clearBarrier")) } -func (i_ IndirectComputeCommandWrapper) HasReset() bool { - return i_.RespondsToSelector(objc.Sel("reset")) +func (i_ IndirectComputeCommandObject) HasSetBarrier() bool { + return i_.RespondsToSelector(objc.Sel("setBarrier")) } -// Resets the command to its default state. [Full Topic] +// Adds a barrier to ensure that commands executed prior to this command are complete before this command executes. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metal/mtlindirectcomputecommand/2981029-reset?language=objc -func (i_ IndirectComputeCommandWrapper) Reset() { - objc.Call[objc.Void](i_, objc.Sel("reset")) +// [Full Topic]: https://developer.apple.com/documentation/metal/mtlindirectcomputecommand/3043399-setbarrier?language=objc +func (i_ IndirectComputeCommandObject) SetBarrier() { + objc.Call[objc.Void](i_, objc.Sel("setBarrier")) } diff --git a/macos/metal/indirect_render_command.gen.go b/macos/metal/indirect_render_command_protocol.gen.go similarity index 63% rename from macos/metal/indirect_render_command.gen.go rename to macos/metal/indirect_render_command_protocol.gen.go index 8c2a3e01..57579572 100644 --- a/macos/metal/indirect_render_command.gen.go +++ b/macos/metal/indirect_render_command_protocol.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package metal @@ -11,15 +11,15 @@ import ( // [Full Topic]: https://developer.apple.com/documentation/metal/mtlindirectrendercommand?language=objc type PIndirectRenderCommand interface { // optional - DrawIndexedPatchesPatchStartPatchCountPatchIndexBufferPatchIndexBufferOffsetControlPointIndexBufferControlPointIndexBufferOffsetInstanceCountBaseInstanceTessellationFactorBufferTessellationFactorBufferOffsetTessellationFactorBufferInstanceStride(numberOfPatchControlPoints uint, patchStart uint, patchCount uint, patchIndexBuffer BufferWrapper, patchIndexBufferOffset uint, controlPointIndexBuffer BufferWrapper, controlPointIndexBufferOffset uint, instanceCount uint, baseInstance uint, buffer BufferWrapper, offset uint, instanceStride uint) + DrawIndexedPatchesPatchStartPatchCountPatchIndexBufferPatchIndexBufferOffsetControlPointIndexBufferControlPointIndexBufferOffsetInstanceCountBaseInstanceTessellationFactorBufferTessellationFactorBufferOffsetTessellationFactorBufferInstanceStride(numberOfPatchControlPoints uint, patchStart uint, patchCount uint, patchIndexBuffer BufferObject, patchIndexBufferOffset uint, controlPointIndexBuffer BufferObject, controlPointIndexBufferOffset uint, instanceCount uint, baseInstance uint, buffer BufferObject, offset uint, instanceStride uint) HasDrawIndexedPatchesPatchStartPatchCountPatchIndexBufferPatchIndexBufferOffsetControlPointIndexBufferControlPointIndexBufferOffsetInstanceCountBaseInstanceTessellationFactorBufferTessellationFactorBufferOffsetTessellationFactorBufferInstanceStride() bool // optional - SetVertexBufferOffsetAtIndex(buffer BufferWrapper, offset uint, index uint) - HasSetVertexBufferOffsetAtIndex() bool + Reset() + HasReset() bool // optional - DrawPatchesPatchStartPatchCountPatchIndexBufferPatchIndexBufferOffsetInstanceCountBaseInstanceTessellationFactorBufferTessellationFactorBufferOffsetTessellationFactorBufferInstanceStride(numberOfPatchControlPoints uint, patchStart uint, patchCount uint, patchIndexBuffer BufferWrapper, patchIndexBufferOffset uint, instanceCount uint, baseInstance uint, buffer BufferWrapper, offset uint, instanceStride uint) + DrawPatchesPatchStartPatchCountPatchIndexBufferPatchIndexBufferOffsetInstanceCountBaseInstanceTessellationFactorBufferTessellationFactorBufferOffsetTessellationFactorBufferInstanceStride(numberOfPatchControlPoints uint, patchStart uint, patchCount uint, patchIndexBuffer BufferObject, patchIndexBufferOffset uint, instanceCount uint, baseInstance uint, buffer BufferObject, offset uint, instanceStride uint) HasDrawPatchesPatchStartPatchCountPatchIndexBufferPatchIndexBufferOffsetInstanceCountBaseInstanceTessellationFactorBufferTessellationFactorBufferOffsetTessellationFactorBufferInstanceStride() bool // optional @@ -27,120 +27,123 @@ type PIndirectRenderCommand interface { HasDrawPrimitivesVertexStartVertexCountInstanceCountBaseInstance() bool // optional - SetFragmentBufferOffsetAtIndex(buffer BufferWrapper, 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 // optional - SetRenderPipelineState(pipelineState RenderPipelineStateWrapper) + SetRenderPipelineState(pipelineState RenderPipelineStateObject) HasSetRenderPipelineState() bool // optional - Reset() - HasReset() bool + SetVertexBufferOffsetAtIndex(buffer BufferObject, offset uint, index uint) + HasSetVertexBufferOffsetAtIndex() bool // optional - DrawIndexedPrimitivesIndexCountIndexTypeIndexBufferIndexBufferOffsetInstanceCountBaseVertexBaseInstance(primitiveType PrimitiveType, indexCount uint, indexType IndexType, indexBuffer BufferWrapper, indexBufferOffset uint, instanceCount uint, baseVertex int, baseInstance uint) - HasDrawIndexedPrimitivesIndexCountIndexTypeIndexBufferIndexBufferOffsetInstanceCountBaseVertexBaseInstance() bool + SetFragmentBufferOffsetAtIndex(buffer BufferObject, offset uint, index uint) + HasSetFragmentBufferOffsetAtIndex() bool } -// A concrete type wrapper for the [PIndirectRenderCommand] protocol. -type IndirectRenderCommandWrapper struct { +// ensure impl type implements protocol interface +var _ PIndirectRenderCommand = (*IndirectRenderCommandObject)(nil) + +// A concrete type for the [PIndirectRenderCommand] protocol. +type IndirectRenderCommandObject struct { objc.Object } -func (i_ IndirectRenderCommandWrapper) HasDrawIndexedPatchesPatchStartPatchCountPatchIndexBufferPatchIndexBufferOffsetControlPointIndexBufferControlPointIndexBufferOffsetInstanceCountBaseInstanceTessellationFactorBufferTessellationFactorBufferOffsetTessellationFactorBufferInstanceStride() bool { +func (i_ IndirectRenderCommandObject) HasDrawIndexedPatchesPatchStartPatchCountPatchIndexBufferPatchIndexBufferOffsetControlPointIndexBufferControlPointIndexBufferOffsetInstanceCountBaseInstanceTessellationFactorBufferTessellationFactorBufferOffsetTessellationFactorBufferInstanceStride() bool { return i_.RespondsToSelector(objc.Sel("drawIndexedPatches:patchStart:patchCount:patchIndexBuffer:patchIndexBufferOffset:controlPointIndexBuffer:controlPointIndexBufferOffset:instanceCount:baseInstance:tessellationFactorBuffer:tessellationFactorBufferOffset:tessellationFactorBufferInstanceStride:")) } // Encodes a command to render a number of instances of tessellated patches, using a control point index buffer. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/metal/mtlindirectrendercommand/2967433-drawindexedpatches?language=objc -func (i_ IndirectRenderCommandWrapper) DrawIndexedPatchesPatchStartPatchCountPatchIndexBufferPatchIndexBufferOffsetControlPointIndexBufferControlPointIndexBufferOffsetInstanceCountBaseInstanceTessellationFactorBufferTessellationFactorBufferOffsetTessellationFactorBufferInstanceStride(numberOfPatchControlPoints uint, patchStart uint, patchCount uint, patchIndexBuffer PBuffer, patchIndexBufferOffset uint, controlPointIndexBuffer PBuffer, controlPointIndexBufferOffset uint, instanceCount uint, baseInstance uint, buffer PBuffer, offset uint, instanceStride uint) { +func (i_ IndirectRenderCommandObject) DrawIndexedPatchesPatchStartPatchCountPatchIndexBufferPatchIndexBufferOffsetControlPointIndexBufferControlPointIndexBufferOffsetInstanceCountBaseInstanceTessellationFactorBufferTessellationFactorBufferOffsetTessellationFactorBufferInstanceStride(numberOfPatchControlPoints uint, patchStart uint, patchCount uint, patchIndexBuffer BufferObject, patchIndexBufferOffset uint, controlPointIndexBuffer BufferObject, controlPointIndexBufferOffset uint, instanceCount uint, baseInstance uint, buffer BufferObject, offset uint, instanceStride uint) { po3 := objc.WrapAsProtocol("MTLBuffer", patchIndexBuffer) po5 := objc.WrapAsProtocol("MTLBuffer", controlPointIndexBuffer) po9 := objc.WrapAsProtocol("MTLBuffer", buffer) 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_ IndirectRenderCommandWrapper) 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_ IndirectRenderCommandWrapper) SetVertexBufferOffsetAtIndex(buffer PBuffer, 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_ IndirectRenderCommandWrapper) HasDrawPatchesPatchStartPatchCountPatchIndexBufferPatchIndexBufferOffsetInstanceCountBaseInstanceTessellationFactorBufferTessellationFactorBufferOffsetTessellationFactorBufferInstanceStride() bool { +func (i_ IndirectRenderCommandObject) HasDrawPatchesPatchStartPatchCountPatchIndexBufferPatchIndexBufferOffsetInstanceCountBaseInstanceTessellationFactorBufferTessellationFactorBufferOffsetTessellationFactorBufferInstanceStride() bool { return i_.RespondsToSelector(objc.Sel("drawPatches:patchStart:patchCount:patchIndexBuffer:patchIndexBufferOffset:instanceCount:baseInstance:tessellationFactorBuffer:tessellationFactorBufferOffset:tessellationFactorBufferInstanceStride:")) } // Encodes a command to render a number of instances of tessellated patches. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/metal/mtlindirectrendercommand/2967435-drawpatches?language=objc -func (i_ IndirectRenderCommandWrapper) DrawPatchesPatchStartPatchCountPatchIndexBufferPatchIndexBufferOffsetInstanceCountBaseInstanceTessellationFactorBufferTessellationFactorBufferOffsetTessellationFactorBufferInstanceStride(numberOfPatchControlPoints uint, patchStart uint, patchCount uint, patchIndexBuffer PBuffer, patchIndexBufferOffset uint, instanceCount uint, baseInstance uint, buffer PBuffer, offset uint, instanceStride uint) { +func (i_ IndirectRenderCommandObject) DrawPatchesPatchStartPatchCountPatchIndexBufferPatchIndexBufferOffsetInstanceCountBaseInstanceTessellationFactorBufferTessellationFactorBufferOffsetTessellationFactorBufferInstanceStride(numberOfPatchControlPoints uint, patchStart uint, patchCount uint, patchIndexBuffer BufferObject, patchIndexBufferOffset uint, instanceCount uint, baseInstance uint, buffer BufferObject, offset uint, instanceStride uint) { po3 := objc.WrapAsProtocol("MTLBuffer", patchIndexBuffer) po7 := objc.WrapAsProtocol("MTLBuffer", buffer) objc.Call[objc.Void](i_, objc.Sel("drawPatches:patchStart:patchCount:patchIndexBuffer:patchIndexBufferOffset:instanceCount:baseInstance:tessellationFactorBuffer:tessellationFactorBufferOffset:tessellationFactorBufferInstanceStride:"), numberOfPatchControlPoints, patchStart, patchCount, po3, patchIndexBufferOffset, instanceCount, baseInstance, po7, offset, instanceStride) } -func (i_ IndirectRenderCommandWrapper) HasDrawPrimitivesVertexStartVertexCountInstanceCountBaseInstance() bool { +func (i_ IndirectRenderCommandObject) HasDrawPrimitivesVertexStartVertexCountInstanceCountBaseInstance() bool { return i_.RespondsToSelector(objc.Sel("drawPrimitives:vertexStart:vertexCount:instanceCount:baseInstance:")) } // Encodes a command to render a number of instances of primitives using vertex data in contiguous array elements, starting from the base instance. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/metal/mtlindirectrendercommand/2966620-drawprimitives?language=objc -func (i_ IndirectRenderCommandWrapper) DrawPrimitivesVertexStartVertexCountInstanceCountBaseInstance(primitiveType PrimitiveType, vertexStart uint, vertexCount uint, instanceCount uint, baseInstance uint) { +func (i_ IndirectRenderCommandObject) DrawPrimitivesVertexStartVertexCountInstanceCountBaseInstance(primitiveType PrimitiveType, vertexStart uint, vertexCount uint, instanceCount uint, baseInstance uint) { objc.Call[objc.Void](i_, objc.Sel("drawPrimitives:vertexStart:vertexCount:instanceCount:baseInstance:"), primitiveType, vertexStart, vertexCount, instanceCount, baseInstance) } -func (i_ IndirectRenderCommandWrapper) 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_ IndirectRenderCommandWrapper) SetFragmentBufferOffsetAtIndex(buffer PBuffer, 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) } -func (i_ IndirectRenderCommandWrapper) HasSetRenderPipelineState() bool { +func (i_ IndirectRenderCommandObject) HasSetRenderPipelineState() bool { return i_.RespondsToSelector(objc.Sel("setRenderPipelineState:")) } // Sets the render pipeline state object used by the command. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/metal/mtlindirectrendercommand/2966625-setrenderpipelinestate?language=objc -func (i_ IndirectRenderCommandWrapper) SetRenderPipelineState(pipelineState PRenderPipelineState) { +func (i_ IndirectRenderCommandObject) SetRenderPipelineState(pipelineState RenderPipelineStateObject) { po0 := objc.WrapAsProtocol("MTLRenderPipelineState", pipelineState) objc.Call[objc.Void](i_, objc.Sel("setRenderPipelineState:"), po0) } -func (i_ IndirectRenderCommandWrapper) 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_ IndirectRenderCommandWrapper) 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_ IndirectRenderCommandWrapper) 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_ IndirectRenderCommandWrapper) DrawIndexedPrimitivesIndexCountIndexTypeIndexBufferIndexBufferOffsetInstanceCountBaseVertexBaseInstance(primitiveType PrimitiveType, indexCount uint, indexType IndexType, indexBuffer PBuffer, 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) } diff --git a/macos/metal/instance_acceleration_structure_descriptor.gen.go b/macos/metal/instance_acceleration_structure_descriptor.gen.go index 9d2e6d0a..2bc0e2a9 100644 --- a/macos/metal/instance_acceleration_structure_descriptor.gen.go +++ b/macos/metal/instance_acceleration_structure_descriptor.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package metal @@ -18,26 +18,26 @@ type _InstanceAccelerationStructureDescriptorClass struct { // An interface definition for the [InstanceAccelerationStructureDescriptor] class. type IInstanceAccelerationStructureDescriptor interface { IAccelerationStructureDescriptor - InstanceDescriptorBuffer() BufferWrapper - SetInstanceDescriptorBuffer(value PBuffer) - SetInstanceDescriptorBufferObject(valueObject objc.IObject) - MotionTransformBuffer() BufferWrapper - SetMotionTransformBuffer(value PBuffer) - SetMotionTransformBufferObject(valueObject objc.IObject) - InstanceDescriptorType() AccelerationStructureInstanceDescriptorType - SetInstanceDescriptorType(value AccelerationStructureInstanceDescriptorType) + InstancedAccelerationStructures() []AccelerationStructureObject + SetInstancedAccelerationStructures(value []PAccelerationStructure) + MotionTransformCount() uint + SetMotionTransformCount(value uint) InstanceDescriptorBufferOffset() uint SetInstanceDescriptorBufferOffset(value uint) - InstancedAccelerationStructures() []AccelerationStructureWrapper - SetInstancedAccelerationStructures(value []PAccelerationStructure) + MotionTransformBuffer() BufferObject + SetMotionTransformBuffer(value PBuffer) + SetMotionTransformBufferObject(valueObject objc.IObject) + InstanceDescriptorBuffer() BufferObject + SetInstanceDescriptorBuffer(value PBuffer) + SetInstanceDescriptorBufferObject(valueObject objc.IObject) InstanceDescriptorStride() uint SetInstanceDescriptorStride(value uint) - InstanceCount() uint - SetInstanceCount(value uint) - MotionTransformCount() uint - SetMotionTransformCount(value uint) MotionTransformBufferOffset() uint SetMotionTransformBufferOffset(value uint) + InstanceCount() uint + SetInstanceCount(value uint) + InstanceDescriptorType() AccelerationStructureInstanceDescriptorType + SetInstanceDescriptorType(value AccelerationStructureInstanceDescriptorType) } // A description of an acceleration structure that derives from instances of primitive acceleration structures. [Full Topic] @@ -70,10 +70,6 @@ func (ic _InstanceAccelerationStructureDescriptorClass) Alloc() InstanceAccelera return rv } -func InstanceAccelerationStructureDescriptor_Alloc() InstanceAccelerationStructureDescriptor { - return InstanceAccelerationStructureDescriptorClass.Alloc() -} - func (ic _InstanceAccelerationStructureDescriptorClass) New() InstanceAccelerationStructureDescriptor { rv := objc.Call[InstanceAccelerationStructureDescriptor](ic, objc.Sel("new")) rv.Autorelease() @@ -89,34 +85,56 @@ func (i_ InstanceAccelerationStructureDescriptor) Init() InstanceAccelerationStr return rv } -// A buffer that contains descriptions of each instance in the acceleration structure. [Full Topic] +// The bottom-level acceleration structures that instances use in the instance acceleration structure . [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metal/mtlinstanceaccelerationstructuredescriptor/3553886-instancedescriptorbuffer?language=objc -func (i_ InstanceAccelerationStructureDescriptor) InstanceDescriptorBuffer() BufferWrapper { - rv := objc.Call[BufferWrapper](i_, objc.Sel("instanceDescriptorBuffer")) +// [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 } -// A buffer that contains descriptions of each instance in the acceleration structure. [Full Topic] +// The bottom-level acceleration structures that instances use in the instance acceleration structure . [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/3553889-instancedaccelerationstructures?language=objc +func (i_ InstanceAccelerationStructureDescriptor) SetInstancedAccelerationStructures(value []PAccelerationStructure) { + objc.Call[objc.Void](i_, objc.Sel("setInstancedAccelerationStructures:"), value) } -// A buffer that contains descriptions of each instance in the acceleration structure. [Full Topic] +// The number of motion transforms in the motion transform buffer. [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:"), objc.Ptr(valueObject)) +// [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 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] +// +// [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) } // A buffer that contains descriptions of each motion transform in the acceleration structure. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/metal/mtlinstanceaccelerationstructuredescriptor/3750499-motiontransformbuffer?language=objc -func (i_ InstanceAccelerationStructureDescriptor) MotionTransformBuffer() BufferWrapper { - rv := objc.Call[BufferWrapper](i_, objc.Sel("motionTransformBuffer")) +func (i_ InstanceAccelerationStructureDescriptor) MotionTransformBuffer() BufferObject { + rv := objc.Call[BufferObject](i_, objc.Sel("motionTransformBuffer")) return rv } @@ -135,49 +153,27 @@ func (i_ InstanceAccelerationStructureDescriptor) SetMotionTransformBufferObject objc.Call[objc.Void](i_, objc.Sel("setMotionTransformBuffer:"), objc.Ptr(valueObject)) } -// The format of the instance data in the descriptor 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")) - return rv -} - -// The format of the instance data in the descriptor 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) -} - -// 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")) +// [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 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] +// A buffer that contains descriptions of each instance in the acceleration structure. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metal/mtlinstanceaccelerationstructuredescriptor/3553889-instancedaccelerationstructures?language=objc -func (i_ InstanceAccelerationStructureDescriptor) InstancedAccelerationStructures() []AccelerationStructureWrapper { - rv := objc.Call[[]AccelerationStructureWrapper](i_, objc.Sel("instancedAccelerationStructures")) - 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 bottom-level acceleration structures that instances use in the instance acceleration structure . [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/3553889-instancedaccelerationstructures?language=objc -func (i_ InstanceAccelerationStructureDescriptor) SetInstancedAccelerationStructures(value []PAccelerationStructure) { - objc.Call[objc.Void](i_, objc.Sel("setInstancedAccelerationStructures:"), 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:"), objc.Ptr(valueObject)) } // The stride, in bytes, between instance descriptions. [Full Topic] @@ -195,6 +191,21 @@ 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 @@ -210,32 +221,17 @@ func (i_ InstanceAccelerationStructureDescriptor) SetInstanceCount(value uint) { objc.Call[objc.Void](i_, objc.Sel("setInstanceCount:"), value) } -// 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) MotionTransformCount() uint { - rv := objc.Call[uint](i_, objc.Sel("motionTransformCount")) - 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 motion transform. [Full Topic] +// The format of the instance data in the descriptor buffer. [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")) +// [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 } -// The offset, in bytes, to the descripton of the first motion transform. [Full Topic] +// The format of the instance data in the descriptor buffer. [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) +// [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) } diff --git a/macos/metal/intersection_function_descriptor.gen.go b/macos/metal/intersection_function_descriptor.gen.go index e4ce3494..d5d09088 100644 --- a/macos/metal/intersection_function_descriptor.gen.go +++ b/macos/metal/intersection_function_descriptor.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package metal @@ -38,10 +38,6 @@ func (ic _IntersectionFunctionDescriptorClass) Alloc() IntersectionFunctionDescr return rv } -func IntersectionFunctionDescriptor_Alloc() IntersectionFunctionDescriptor { - return IntersectionFunctionDescriptorClass.Alloc() -} - func (ic _IntersectionFunctionDescriptorClass) New() IntersectionFunctionDescriptor { rv := objc.Call[IntersectionFunctionDescriptor](ic, objc.Sel("new")) rv.Autorelease() diff --git a/macos/metal/intersection_function_table_descriptor.gen.go b/macos/metal/intersection_function_table_descriptor.gen.go index 0e523a9b..74c0fec1 100644 --- a/macos/metal/intersection_function_table_descriptor.gen.go +++ b/macos/metal/intersection_function_table_descriptor.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package metal @@ -40,10 +40,6 @@ func (ic _IntersectionFunctionTableDescriptorClass) Alloc() IntersectionFunction return rv } -func IntersectionFunctionTableDescriptor_Alloc() IntersectionFunctionTableDescriptor { - return IntersectionFunctionTableDescriptorClass.Alloc() -} - func (ic _IntersectionFunctionTableDescriptorClass) New() IntersectionFunctionTableDescriptor { rv := objc.Call[IntersectionFunctionTableDescriptor](ic, objc.Sel("new")) rv.Autorelease() diff --git a/macos/metal/intersection_function_table.gen.go b/macos/metal/intersection_function_table_protocol.gen.go similarity index 56% rename from macos/metal/intersection_function_table.gen.go rename to macos/metal/intersection_function_table_protocol.gen.go index 40346c19..4436a8e3 100644 --- a/macos/metal/intersection_function_table.gen.go +++ b/macos/metal/intersection_function_table_protocol.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package metal @@ -12,118 +12,136 @@ import ( // [Full Topic]: https://developer.apple.com/documentation/metal/mtlintersectionfunctiontable?language=objc type PIntersectionFunctionTable interface { // optional - SetOpaqueTriangleIntersectionFunctionWithSignatureAtIndex(signature IntersectionFunctionSignature, index uint) - HasSetOpaqueTriangleIntersectionFunctionWithSignatureAtIndex() bool + SetBufferOffsetAtIndex(buffer BufferObject, offset uint, index uint) + HasSetBufferOffsetAtIndex() bool // optional - SetBuffersOffsetsWithRange(buffers BufferWrapper, offsets *uint, range_ foundation.Range) - HasSetBuffersOffsetsWithRange() bool + SetVisibleFunctionTableAtBufferIndex(functionTable VisibleFunctionTableObject, bufferIndex uint) + HasSetVisibleFunctionTableAtBufferIndex() bool // optional - SetVisibleFunctionTableAtBufferIndex(functionTable VisibleFunctionTableWrapper, bufferIndex uint) - HasSetVisibleFunctionTableAtBufferIndex() bool + SetFunctionsWithRange(functions FunctionHandleObject, range_ foundation.Range) + HasSetFunctionsWithRange() bool // optional - SetFunctionAtIndex(function FunctionHandleWrapper, index uint) - HasSetFunctionAtIndex() bool + SetOpaqueTriangleIntersectionFunctionWithSignatureAtIndex(signature IntersectionFunctionSignature, index uint) + HasSetOpaqueTriangleIntersectionFunctionWithSignatureAtIndex() bool // optional - SetVisibleFunctionTablesWithBufferRange(functionTables VisibleFunctionTableWrapper, bufferRange foundation.Range) - HasSetVisibleFunctionTablesWithBufferRange() bool + SetOpaqueTriangleIntersectionFunctionWithSignatureWithRange(signature IntersectionFunctionSignature, range_ foundation.Range) + HasSetOpaqueTriangleIntersectionFunctionWithSignatureWithRange() bool // optional - SetFunctionsWithRange(functions FunctionHandleWrapper, range_ foundation.Range) - HasSetFunctionsWithRange() bool + SetBuffersOffsetsWithRange(buffers BufferObject, offsets *uint, range_ foundation.Range) + HasSetBuffersOffsetsWithRange() bool // optional - SetBufferOffsetAtIndex(buffer BufferWrapper, offset uint, index uint) - HasSetBufferOffsetAtIndex() bool -} + SetVisibleFunctionTablesWithBufferRange(functionTables VisibleFunctionTableObject, bufferRange foundation.Range) + HasSetVisibleFunctionTablesWithBufferRange() bool -// A concrete type wrapper for the [PIntersectionFunctionTable] protocol. -type IntersectionFunctionTableWrapper struct { - objc.Object + // optional + SetFunctionAtIndex(function FunctionHandleObject, index uint) + HasSetFunctionAtIndex() bool } -func (i_ IntersectionFunctionTableWrapper) HasSetOpaqueTriangleIntersectionFunctionWithSignatureAtIndex() bool { - return i_.RespondsToSelector(objc.Sel("setOpaqueTriangleIntersectionFunctionWithSignature:atIndex:")) -} +// ensure impl type implements protocol interface +var _ PIntersectionFunctionTable = (*IntersectionFunctionTableObject)(nil) -// Sets an entry 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/3667484-setopaquetriangleintersectionfun?language=objc -func (i_ IntersectionFunctionTableWrapper) SetOpaqueTriangleIntersectionFunctionWithSignatureAtIndex(signature IntersectionFunctionSignature, index uint) { - objc.Call[objc.Void](i_, objc.Sel("setOpaqueTriangleIntersectionFunctionWithSignature:atIndex:"), signature, index) +// A concrete type for the [PIntersectionFunctionTable] protocol. +type IntersectionFunctionTableObject struct { + objc.Object } -func (i_ IntersectionFunctionTableWrapper) HasSetBuffersOffsetsWithRange() bool { - return i_.RespondsToSelector(objc.Sel("setBuffers:offsets:withRange:")) +func (i_ IntersectionFunctionTableObject) HasSetBufferOffsetAtIndex() bool { + return i_.RespondsToSelector(objc.Sel("setBuffer:offset:atIndex:")) } -// Sets a range of buffers for the intersection functions. [Full Topic] +// Sets a buffer for the intersection functions. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metal/mtlintersectionfunctiontable/3578280-setbuffers?language=objc -func (i_ IntersectionFunctionTableWrapper) SetBuffersOffsetsWithRange(buffers PBuffer, offsets *uint, range_ foundation.Range) { - po0 := objc.WrapAsProtocol("MTLBuffer", buffers) - objc.Call[objc.Void](i_, objc.Sel("setBuffers:offsets:withRange:"), po0, offsets, range_) +// [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_ IntersectionFunctionTableWrapper) HasSetVisibleFunctionTableAtBufferIndex() bool { +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_ IntersectionFunctionTableWrapper) SetVisibleFunctionTableAtBufferIndex(functionTable PVisibleFunctionTable, bufferIndex uint) { +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_ IntersectionFunctionTableWrapper) HasSetFunctionAtIndex() bool { - return i_.RespondsToSelector(objc.Sel("setFunction:atIndex:")) +func (i_ IntersectionFunctionTableObject) HasSetFunctionsWithRange() bool { + return i_.RespondsToSelector(objc.Sel("setFunctions:withRange:")) } -// Sets an entry in the table. [Full Topic] +// Sets a range of entries in the table. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metal/mtlintersectionfunctiontable/3566554-setfunction?language=objc -func (i_ IntersectionFunctionTableWrapper) SetFunctionAtIndex(function PFunctionHandle, index uint) { - po0 := objc.WrapAsProtocol("MTLFunctionHandle", function) - objc.Call[objc.Void](i_, objc.Sel("setFunction:atIndex:"), po0, index) +// [Full Topic]: https://developer.apple.com/documentation/metal/mtlintersectionfunctiontable/3566555-setfunctions?language=objc +func (i_ IntersectionFunctionTableObject) SetFunctionsWithRange(functions FunctionHandleObject, range_ foundation.Range) { + po0 := objc.WrapAsProtocol("MTLFunctionHandle", functions) + objc.Call[objc.Void](i_, objc.Sel("setFunctions:withRange:"), po0, range_) } -func (i_ IntersectionFunctionTableWrapper) HasSetVisibleFunctionTablesWithBufferRange() bool { - return i_.RespondsToSelector(objc.Sel("setVisibleFunctionTables:withBufferRange:")) +func (i_ IntersectionFunctionTableObject) HasSetOpaqueTriangleIntersectionFunctionWithSignatureAtIndex() bool { + return i_.RespondsToSelector(objc.Sel("setOpaqueTriangleIntersectionFunctionWithSignature:atIndex:")) } -// Sets a range of visible function tables for the intersection functions. [Full Topic] +// Sets an entry 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/3674231-setvisiblefunctiontables?language=objc -func (i_ IntersectionFunctionTableWrapper) SetVisibleFunctionTablesWithBufferRange(functionTables PVisibleFunctionTable, 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/3667484-setopaquetriangleintersectionfun?language=objc +func (i_ IntersectionFunctionTableObject) SetOpaqueTriangleIntersectionFunctionWithSignatureAtIndex(signature IntersectionFunctionSignature, index uint) { + objc.Call[objc.Void](i_, objc.Sel("setOpaqueTriangleIntersectionFunctionWithSignature:atIndex:"), signature, index) } -func (i_ IntersectionFunctionTableWrapper) HasSetFunctionsWithRange() bool { - return i_.RespondsToSelector(objc.Sel("setFunctions:withRange:")) +func (i_ IntersectionFunctionTableObject) HasSetOpaqueTriangleIntersectionFunctionWithSignatureWithRange() bool { + return i_.RespondsToSelector(objc.Sel("setOpaqueTriangleIntersectionFunctionWithSignature:withRange:")) } -// Sets a range of entries in the table. [Full Topic] +// 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/3566555-setfunctions?language=objc -func (i_ IntersectionFunctionTableWrapper) SetFunctionsWithRange(functions PFunctionHandle, range_ foundation.Range) { - po0 := objc.WrapAsProtocol("MTLFunctionHandle", functions) - objc.Call[objc.Void](i_, objc.Sel("setFunctions:withRange:"), po0, range_) +// [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_ IntersectionFunctionTableWrapper) HasSetBufferOffsetAtIndex() bool { - return i_.RespondsToSelector(objc.Sel("setBuffer:offset:atIndex:")) +func (i_ IntersectionFunctionTableObject) HasSetBuffersOffsetsWithRange() bool { + return i_.RespondsToSelector(objc.Sel("setBuffers:offsets:withRange:")) } -// Sets a buffer for the intersection functions. [Full Topic] +// Sets a range of buffers for the intersection functions. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metal/mtlintersectionfunctiontable/3578279-setbuffer?language=objc -func (i_ IntersectionFunctionTableWrapper) SetBufferOffsetAtIndex(buffer PBuffer, offset uint, index uint) { - po0 := objc.WrapAsProtocol("MTLBuffer", buffer) - objc.Call[objc.Void](i_, objc.Sel("setBuffer:offset:atIndex:"), po0, offset, index) +// [Full Topic]: https://developer.apple.com/documentation/metal/mtlintersectionfunctiontable/3578280-setbuffers?language=objc +func (i_ IntersectionFunctionTableObject) SetBuffersOffsetsWithRange(buffers BufferObject, offsets *uint, range_ foundation.Range) { + po0 := objc.WrapAsProtocol("MTLBuffer", buffers) + 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:")) +} + +// 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 VisibleFunctionTableObject, bufferRange foundation.Range) { + po0 := objc.WrapAsProtocol("MTLVisibleFunctionTable", functionTables) + objc.Call[objc.Void](i_, objc.Sel("setVisibleFunctionTables:withBufferRange:"), po0, bufferRange) +} + +func (i_ IntersectionFunctionTableObject) HasSetFunctionAtIndex() bool { + return i_.RespondsToSelector(objc.Sel("setFunction:atIndex:")) +} + +// Sets an entry in the table. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/metal/mtlintersectionfunctiontable/3566554-setfunction?language=objc +func (i_ IntersectionFunctionTableObject) SetFunctionAtIndex(function FunctionHandleObject, index uint) { + po0 := objc.WrapAsProtocol("MTLFunctionHandle", function) + objc.Call[objc.Void](i_, objc.Sel("setFunction:atIndex:"), po0, index) } diff --git a/macos/metal/library.gen.go b/macos/metal/library.gen.go deleted file mode 100644 index e6e9d4ec..00000000 --- a/macos/metal/library.gen.go +++ /dev/null @@ -1,162 +0,0 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY - -package metal - -import ( - "github.com/progrium/macdriver/macos/foundation" - "github.com/progrium/macdriver/objc" -) - -// A collection of Metal shader functions. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/metal/mtllibrary?language=objc -type PLibrary interface { - // optional - NewFunctionWithDescriptorCompletionHandler(descriptor FunctionDescriptor, completionHandler func(function FunctionWrapper, error foundation.Error)) - HasNewFunctionWithDescriptorCompletionHandler() bool - - // optional - NewIntersectionFunctionWithDescriptorError(descriptor IntersectionFunctionDescriptor, error foundation.Error) PFunction - HasNewIntersectionFunctionWithDescriptorError() bool - - // optional - NewFunctionWithNameConstantValuesError(name string, constantValues FunctionConstantValues, error foundation.Error) PFunction - HasNewFunctionWithNameConstantValuesError() bool - - // optional - InstallName() string - HasInstallName() bool - - // optional - Device() PDevice - HasDevice() bool - - // optional - Type() LibraryType - HasType() bool - - // optional - SetLabel(value string) - HasSetLabel() bool - - // optional - Label() string - HasLabel() bool - - // optional - FunctionNames() []string - HasFunctionNames() bool -} - -// A concrete type wrapper for the [PLibrary] protocol. -type LibraryWrapper struct { - objc.Object -} - -func (l_ LibraryWrapper) HasNewFunctionWithDescriptorCompletionHandler() bool { - return l_.RespondsToSelector(objc.Sel("newFunctionWithDescriptor:completionHandler:")) -} - -// Asynchronously creates an object representing a shader function, using the specified descriptor. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/metal/mtllibrary/3554040-newfunctionwithdescriptor?language=objc -func (l_ LibraryWrapper) NewFunctionWithDescriptorCompletionHandler(descriptor IFunctionDescriptor, completionHandler func(function FunctionWrapper, error foundation.Error)) { - objc.Call[objc.Void](l_, objc.Sel("newFunctionWithDescriptor:completionHandler:"), objc.Ptr(descriptor), completionHandler) -} - -func (l_ LibraryWrapper) HasNewIntersectionFunctionWithDescriptorError() bool { - return l_.RespondsToSelector(objc.Sel("newIntersectionFunctionWithDescriptor:error:")) -} - -// Synchronously creates an object representing a ray-tracing intersection function, using the specified descriptor. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/metal/mtllibrary/3578135-newintersectionfunctionwithdescr?language=objc -func (l_ LibraryWrapper) NewIntersectionFunctionWithDescriptorError(descriptor IIntersectionFunctionDescriptor, error foundation.IError) FunctionWrapper { - rv := objc.Call[FunctionWrapper](l_, objc.Sel("newIntersectionFunctionWithDescriptor:error:"), objc.Ptr(descriptor), objc.Ptr(error)) - rv.Autorelease() - return rv -} - -func (l_ LibraryWrapper) HasNewFunctionWithNameConstantValuesError() bool { - return l_.RespondsToSelector(objc.Sel("newFunctionWithName:constantValues:error:")) -} - -// Synchronously creates a specialized shader function. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/metal/mtllibrary/1640020-newfunctionwithname?language=objc -func (l_ LibraryWrapper) NewFunctionWithNameConstantValuesError(name string, constantValues IFunctionConstantValues, error foundation.IError) FunctionWrapper { - rv := objc.Call[FunctionWrapper](l_, objc.Sel("newFunctionWithName:constantValues:error:"), name, objc.Ptr(constantValues), objc.Ptr(error)) - rv.Autorelease() - return rv -} - -func (l_ LibraryWrapper) HasInstallName() bool { - return l_.RespondsToSelector(objc.Sel("installName")) -} - -// The installation name for a dynamic library. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/metal/mtllibrary/3554039-installname?language=objc -func (l_ LibraryWrapper) InstallName() string { - rv := objc.Call[string](l_, objc.Sel("installName")) - return rv -} - -func (l_ LibraryWrapper) HasDevice() bool { - return l_.RespondsToSelector(objc.Sel("device")) -} - -// The Metal device object that created the library. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/metal/mtllibrary/1515661-device?language=objc -func (l_ LibraryWrapper) Device() DeviceWrapper { - rv := objc.Call[DeviceWrapper](l_, objc.Sel("device")) - return rv -} - -func (l_ LibraryWrapper) HasType() bool { - return l_.RespondsToSelector(objc.Sel("type")) -} - -// The library’s basic type. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/metal/mtllibrary/3554042-type?language=objc -func (l_ LibraryWrapper) Type() LibraryType { - rv := objc.Call[LibraryType](l_, objc.Sel("type")) - return rv -} - -func (l_ LibraryWrapper) 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_ LibraryWrapper) SetLabel(value string) { - objc.Call[objc.Void](l_, objc.Sel("setLabel:"), value) -} - -func (l_ LibraryWrapper) 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_ LibraryWrapper) Label() string { - rv := objc.Call[string](l_, objc.Sel("label")) - return rv -} - -func (l_ LibraryWrapper) 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_ LibraryWrapper) FunctionNames() []string { - rv := objc.Call[[]string](l_, objc.Sel("functionNames")) - return rv -} diff --git a/macos/metal/library_protocol.gen.go b/macos/metal/library_protocol.gen.go new file mode 100644 index 00000000..0370910f --- /dev/null +++ b/macos/metal/library_protocol.gen.go @@ -0,0 +1,225 @@ +// Code generated by DarwinKit. DO NOT EDIT. + +package metal + +import ( + "github.com/progrium/macdriver/macos/foundation" + "github.com/progrium/macdriver/objc" +) + +// A collection of Metal shader functions. [Full Topic] +// +// [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 foundation.Error) FunctionObject + HasNewIntersectionFunctionWithDescriptorError() bool + + // optional + NewFunctionWithDescriptorError(descriptor FunctionDescriptor, error foundation.Error) FunctionObject + HasNewFunctionWithDescriptorError() bool + + // optional + NewFunctionWithNameConstantValuesError(name string, constantValues FunctionConstantValues, error foundation.Error) FunctionObject + HasNewFunctionWithNameConstantValuesError() bool + + // optional + SetLabel(value string) + HasSetLabel() bool + + // optional + Label() string + HasLabel() bool + + // optional + Device() DeviceObject + HasDevice() bool + + // optional + FunctionNames() []string + HasFunctionNames() bool + + // optional + Type() LibraryType + HasType() bool + + // optional + InstallName() string + HasInstallName() bool +} + +// ensure impl type implements protocol interface +var _ PLibrary = (*LibraryObject)(nil) + +// A concrete type for the [PLibrary] protocol. +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, objc.Ptr(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:")) +} + +// Asynchronously creates an object representing a shader function, using the specified descriptor. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/metal/mtllibrary/3554040-newfunctionwithdescriptor?language=objc +func (l_ LibraryObject) NewFunctionWithDescriptorCompletionHandler(descriptor FunctionDescriptor, completionHandler func(function FunctionObject, error foundation.Error)) { + objc.Call[objc.Void](l_, objc.Sel("newFunctionWithDescriptor:completionHandler:"), objc.Ptr(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:"), objc.Ptr(descriptor), completionHandler) +} + +func (l_ LibraryObject) HasNewIntersectionFunctionWithDescriptorError() bool { + return l_.RespondsToSelector(objc.Sel("newIntersectionFunctionWithDescriptor:error:")) +} + +// Synchronously creates an object representing a ray-tracing intersection function, using the specified descriptor. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/metal/mtllibrary/3578135-newintersectionfunctionwithdescr?language=objc +func (l_ LibraryObject) NewIntersectionFunctionWithDescriptorError(descriptor IntersectionFunctionDescriptor, error foundation.Error) FunctionObject { + rv := objc.Call[FunctionObject](l_, objc.Sel("newIntersectionFunctionWithDescriptor:error:"), objc.Ptr(descriptor), objc.Ptr(error)) + 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 foundation.Error) FunctionObject { + rv := objc.Call[FunctionObject](l_, objc.Sel("newFunctionWithDescriptor:error:"), objc.Ptr(descriptor), objc.Ptr(error)) + return rv +} + +func (l_ LibraryObject) HasNewFunctionWithNameConstantValuesError() bool { + return l_.RespondsToSelector(objc.Sel("newFunctionWithName:constantValues:error:")) +} + +// Synchronously creates a specialized shader function. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/metal/mtllibrary/1640020-newfunctionwithname?language=objc +func (l_ LibraryObject) NewFunctionWithNameConstantValuesError(name string, constantValues FunctionConstantValues, error foundation.Error) FunctionObject { + rv := objc.Call[FunctionObject](l_, objc.Sel("newFunctionWithName:constantValues:error:"), name, objc.Ptr(constantValues), objc.Ptr(error)) + 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")) +} + +// 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) HasDevice() bool { + return l_.RespondsToSelector(objc.Sel("device")) +} + +// The Metal device object that created the library. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/metal/mtllibrary/1515661-device?language=objc +func (l_ LibraryObject) Device() DeviceObject { + rv := objc.Call[DeviceObject](l_, objc.Sel("device")) + 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")) +} + +// The library’s basic type. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/metal/mtllibrary/3554042-type?language=objc +func (l_ LibraryObject) Type() LibraryType { + rv := objc.Call[LibraryType](l_, objc.Sel("type")) + return rv +} + +func (l_ LibraryObject) HasInstallName() bool { + return l_.RespondsToSelector(objc.Sel("installName")) +} + +// The installation name for a dynamic 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")) + return rv +} diff --git a/macos/metal/linked_functions.gen.go b/macos/metal/linked_functions.gen.go index 4de3d904..fc189e8a 100644 --- a/macos/metal/linked_functions.gen.go +++ b/macos/metal/linked_functions.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package metal @@ -18,14 +18,14 @@ type _LinkedFunctionsClass struct { // An interface definition for the [LinkedFunctions] class. type ILinkedFunctions interface { objc.IObject - PrivateFunctions() []FunctionWrapper - SetPrivateFunctions(value []PFunction) - BinaryFunctions() []FunctionWrapper + Functions() []FunctionObject + SetFunctions(value []PFunction) + BinaryFunctions() []FunctionObject SetBinaryFunctions(value []PFunction) - Groups() map[string][]FunctionWrapper + PrivateFunctions() []FunctionObject + SetPrivateFunctions(value []PFunction) + Groups() map[string][]FunctionObject SetGroups(value map[string][]PFunction) - Functions() []FunctionWrapper - SetFunctions(value []PFunction) } // A set of related functions that Metal links to when necessary to create the function object. [Full Topic] @@ -46,10 +46,6 @@ func (lc _LinkedFunctionsClass) Alloc() LinkedFunctions { return rv } -func LinkedFunctions_Alloc() LinkedFunctions { - return LinkedFunctionsClass.Alloc() -} - func (lc _LinkedFunctionsClass) New() LinkedFunctions { rv := objc.Call[LinkedFunctions](lc, objc.Sel("new")) rv.Autorelease() @@ -80,26 +76,26 @@ func LinkedFunctions_LinkedFunctions() LinkedFunctions { return LinkedFunctionsClass.LinkedFunctions() } -// An array of function objects to link to the new function, without exporting the functions publicly. [Full Topic] +// An array of function objects to link to the new function. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metal/mtllinkedfunctions/3750551-privatefunctions?language=objc -func (l_ LinkedFunctions) PrivateFunctions() []FunctionWrapper { - rv := objc.Call[[]FunctionWrapper](l_, objc.Sel("privateFunctions")) +// [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, without exporting the functions publicly. [Full Topic] +// An array of function objects to link to the new function. [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) +// [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) } // An array of function objects already compiled to a binary representation to link. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/metal/mtllinkedfunctions/3566560-binaryfunctions?language=objc -func (l_ LinkedFunctions) BinaryFunctions() []FunctionWrapper { - rv := objc.Call[[]FunctionWrapper](l_, objc.Sel("binaryFunctions")) +func (l_ LinkedFunctions) BinaryFunctions() []FunctionObject { + rv := objc.Call[[]FunctionObject](l_, objc.Sel("binaryFunctions")) return rv } @@ -110,32 +106,32 @@ func (l_ LinkedFunctions) SetBinaryFunctions(value []PFunction) { objc.Call[objc.Void](l_, objc.Sel("setBinaryFunctions:"), value) } -// An optional list of groups specifying which functions your shader can call at each call site. [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/3554049-groups?language=objc -func (l_ LinkedFunctions) Groups() map[string][]FunctionWrapper { - rv := objc.Call[map[string][]FunctionWrapper](l_, objc.Sel("groups")) +// [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 optional list of groups specifying which functions your shader can call at each call site. [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/3554049-groups?language=objc -func (l_ LinkedFunctions) SetGroups(value map[string][]PFunction) { - objc.Call[objc.Void](l_, objc.Sel("setGroups:"), 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 to link to the new function. [Full Topic] +// 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/3554048-functions?language=objc -func (l_ LinkedFunctions) Functions() []FunctionWrapper { - rv := objc.Call[[]FunctionWrapper](l_, objc.Sel("functions")) +// [Full Topic]: https://developer.apple.com/documentation/metal/mtllinkedfunctions/3554049-groups?language=objc +func (l_ LinkedFunctions) Groups() map[string][]FunctionObject { + rv := objc.Call[map[string][]FunctionObject](l_, objc.Sel("groups")) return rv } -// An array of function objects to link to the new function. [Full Topic] +// 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/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/3554049-groups?language=objc +func (l_ LinkedFunctions) SetGroups(value map[string][]PFunction) { + objc.Call[objc.Void](l_, objc.Sel("setGroups:"), value) } diff --git a/macos/metal/log_container.gen.go b/macos/metal/log_container_protocol.gen.go similarity index 57% rename from macos/metal/log_container.gen.go rename to macos/metal/log_container_protocol.gen.go index 71310546..70525c11 100644 --- a/macos/metal/log_container.gen.go +++ b/macos/metal/log_container_protocol.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package metal @@ -12,7 +12,10 @@ import ( type PLogContainer interface { } -// A concrete type wrapper for the [PLogContainer] protocol. -type LogContainerWrapper struct { +// ensure impl type implements protocol interface +var _ PLogContainer = (*LogContainerObject)(nil) + +// A concrete type for the [PLogContainer] protocol. +type LogContainerObject struct { objc.Object } diff --git a/macos/metal/metal_structs.go b/macos/metal/metal_structs.go index 2e470eb6..28d3de2e 100644 --- a/macos/metal/metal_structs.go +++ b/macos/metal/metal_structs.go @@ -1,5 +1,7 @@ package metal +import "unsafe" + type Coordinate2D = SamplePosition // todo @@ -14,3 +16,6 @@ type SizeAndAlign struct{} type SamplePosition struct{} type ClearColor struct{} type AccelerationStructureSizes struct{} + +type AutoreleasedComputePipelineReflection unsafe.Pointer +type AutoreleasedRenderPipelineReflection unsafe.Pointer diff --git a/macos/metal/motion_keyframe_data.gen.go b/macos/metal/motion_keyframe_data.gen.go index 1ef90042..28a44727 100644 --- a/macos/metal/motion_keyframe_data.gen.go +++ b/macos/metal/motion_keyframe_data.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package metal @@ -18,11 +18,11 @@ type _MotionKeyframeDataClass struct { // An interface definition for the [MotionKeyframeData] class. type IMotionKeyframeData interface { objc.IObject - Buffer() BufferWrapper - SetBuffer(value PBuffer) - SetBufferObject(valueObject objc.IObject) Offset() uint SetOffset(value uint) + Buffer() BufferObject + SetBuffer(value PBuffer) + SetBufferObject(valueObject objc.IObject) } // Geometry data for a specific keyframe to use in a moving object. [Full Topic] @@ -55,10 +55,6 @@ func (mc _MotionKeyframeDataClass) Alloc() MotionKeyframeData { return rv } -func MotionKeyframeData_Alloc() MotionKeyframeData { - return MotionKeyframeDataClass.Alloc() -} - func (mc _MotionKeyframeDataClass) New() MotionKeyframeData { rv := objc.Call[MotionKeyframeData](mc, objc.Sel("new")) rv.Autorelease() @@ -74,11 +70,26 @@ 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 -func (m_ MotionKeyframeData) Buffer() BufferWrapper { - rv := objc.Call[BufferWrapper](m_, objc.Sel("buffer")) +func (m_ MotionKeyframeData) Buffer() BufferObject { + rv := objc.Call[BufferObject](m_, objc.Sel("buffer")) return rv } @@ -96,18 +107,3 @@ func (m_ MotionKeyframeData) SetBuffer(value PBuffer) { func (m_ MotionKeyframeData) SetBufferObject(valueObject objc.IObject) { objc.Call[objc.Void](m_, objc.Sel("setBuffer:"), objc.Ptr(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.gen.go b/macos/metal/parallel_render_command_encoder_protocol.gen.go similarity index 62% rename from macos/metal/parallel_render_command_encoder.gen.go rename to macos/metal/parallel_render_command_encoder_protocol.gen.go index ab83a10f..4b4aa600 100644 --- a/macos/metal/parallel_render_command_encoder.gen.go +++ b/macos/metal/parallel_render_command_encoder_protocol.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package metal @@ -11,113 +11,116 @@ import ( // [Full Topic]: https://developer.apple.com/documentation/metal/mtlparallelrendercommandencoder?language=objc type PParallelRenderCommandEncoder interface { // optional - SetDepthStoreAction(storeAction StoreAction) - HasSetDepthStoreAction() bool + RenderCommandEncoder() RenderCommandEncoderObject + HasRenderCommandEncoder() bool // optional SetStencilStoreAction(storeAction StoreAction) HasSetStencilStoreAction() bool // optional - SetColorStoreActionOptionsAtIndex(storeActionOptions StoreActionOptions, colorAttachmentIndex uint) - HasSetColorStoreActionOptionsAtIndex() bool + SetStencilStoreActionOptions(storeActionOptions StoreActionOptions) + HasSetStencilStoreActionOptions() bool // optional - SetColorStoreActionAtIndex(storeAction StoreAction, colorAttachmentIndex uint) - HasSetColorStoreActionAtIndex() bool + SetDepthStoreActionOptions(storeActionOptions StoreActionOptions) + HasSetDepthStoreActionOptions() bool // optional - SetStencilStoreActionOptions(storeActionOptions StoreActionOptions) - HasSetStencilStoreActionOptions() bool + SetColorStoreActionOptionsAtIndex(storeActionOptions StoreActionOptions, colorAttachmentIndex uint) + HasSetColorStoreActionOptionsAtIndex() bool // optional - RenderCommandEncoder() PRenderCommandEncoder - HasRenderCommandEncoder() bool + SetDepthStoreAction(storeAction StoreAction) + HasSetDepthStoreAction() bool // optional - SetDepthStoreActionOptions(storeActionOptions StoreActionOptions) - HasSetDepthStoreActionOptions() bool + SetColorStoreActionAtIndex(storeAction StoreAction, colorAttachmentIndex uint) + HasSetColorStoreActionAtIndex() bool } -// A concrete type wrapper for the [PParallelRenderCommandEncoder] protocol. -type ParallelRenderCommandEncoderWrapper struct { +// ensure impl type implements protocol interface +var _ PParallelRenderCommandEncoder = (*ParallelRenderCommandEncoderObject)(nil) + +// A concrete type for the [PParallelRenderCommandEncoder] protocol. +type ParallelRenderCommandEncoderObject struct { objc.Object } -func (p_ ParallelRenderCommandEncoderWrapper) 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 [metal/mtlstoreaction/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_ ParallelRenderCommandEncoderWrapper) 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_ ParallelRenderCommandEncoderWrapper) HasSetStencilStoreAction() bool { +func (p_ ParallelRenderCommandEncoderObject) HasSetStencilStoreAction() bool { return p_.RespondsToSelector(objc.Sel("setStencilStoreAction:")) } -// Specifies a known store action to replace the initial [metal/mtlstoreaction/mtlstoreactionunknown] value specified for a given stencil attachment. [Full Topic] +// Specifies a known store action to replace the initial 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_ ParallelRenderCommandEncoderWrapper) SetStencilStoreAction(storeAction StoreAction) { +func (p_ ParallelRenderCommandEncoderObject) SetStencilStoreAction(storeAction StoreAction) { objc.Call[objc.Void](p_, objc.Sel("setStencilStoreAction:"), storeAction) } -func (p_ ParallelRenderCommandEncoderWrapper) 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_ ParallelRenderCommandEncoderWrapper) 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_ ParallelRenderCommandEncoderWrapper) 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 [metal/mtlstoreaction/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_ ParallelRenderCommandEncoderWrapper) 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) } -func (p_ ParallelRenderCommandEncoderWrapper) 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_ ParallelRenderCommandEncoderWrapper) 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_ ParallelRenderCommandEncoderWrapper) 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 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_ ParallelRenderCommandEncoderWrapper) RenderCommandEncoder() RenderCommandEncoderWrapper { - rv := objc.Call[RenderCommandEncoderWrapper](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_ ParallelRenderCommandEncoderWrapper) 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 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_ ParallelRenderCommandEncoderWrapper) 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) } diff --git a/macos/metal/pipeline_buffer_descriptor.gen.go b/macos/metal/pipeline_buffer_descriptor.gen.go index 0741350b..ef292c8e 100644 --- a/macos/metal/pipeline_buffer_descriptor.gen.go +++ b/macos/metal/pipeline_buffer_descriptor.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package metal @@ -40,10 +40,6 @@ func (pc _PipelineBufferDescriptorClass) Alloc() PipelineBufferDescriptor { return rv } -func PipelineBufferDescriptor_Alloc() PipelineBufferDescriptor { - return PipelineBufferDescriptorClass.Alloc() -} - func (pc _PipelineBufferDescriptorClass) New() PipelineBufferDescriptor { rv := objc.Call[PipelineBufferDescriptor](pc, objc.Sel("new")) rv.Autorelease() diff --git a/macos/metal/pipeline_buffer_descriptor_array.gen.go b/macos/metal/pipeline_buffer_descriptor_array.gen.go index b68b6645..c829d0a8 100644 --- a/macos/metal/pipeline_buffer_descriptor_array.gen.go +++ b/macos/metal/pipeline_buffer_descriptor_array.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package metal @@ -18,8 +18,8 @@ type _PipelineBufferDescriptorArrayClass struct { // An interface definition for the [PipelineBufferDescriptorArray] class. type IPipelineBufferDescriptorArray interface { objc.IObject - ObjectAtIndexedSubscript(bufferIndex uint) PipelineBufferDescriptor SetObjectAtIndexedSubscript(buffer IPipelineBufferDescriptor, bufferIndex uint) + ObjectAtIndexedSubscript(bufferIndex uint) PipelineBufferDescriptor } // An array of pipeline buffer descriptor objects. [Full Topic] @@ -40,10 +40,6 @@ func (pc _PipelineBufferDescriptorArrayClass) Alloc() PipelineBufferDescriptorAr return rv } -func PipelineBufferDescriptorArray_Alloc() PipelineBufferDescriptorArray { - return PipelineBufferDescriptorArrayClass.Alloc() -} - func (pc _PipelineBufferDescriptorArrayClass) New() PipelineBufferDescriptorArray { rv := objc.Call[PipelineBufferDescriptorArray](pc, objc.Sel("new")) rv.Autorelease() @@ -59,6 +55,13 @@ 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:"), objc.Ptr(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 @@ -66,10 +69,3 @@ 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:"), objc.Ptr(buffer), bufferIndex) -} diff --git a/macos/metal/pointer_type.gen.go b/macos/metal/pointer_type.gen.go index 6f67377e..c21ad4ac 100644 --- a/macos/metal/pointer_type.gen.go +++ b/macos/metal/pointer_type.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package metal @@ -20,11 +20,11 @@ type IPointerType interface { IType ElementArrayType() ArrayType ElementStructType() StructType - Alignment() uint + ElementIsArgumentBuffer() bool DataSize() uint - ElementType() DataType Access() objc.Object - ElementIsArgumentBuffer() bool + Alignment() uint + ElementType() DataType } // A description of a pointer. [Full Topic] @@ -45,10 +45,6 @@ func (pc _PointerTypeClass) Alloc() PointerType { return rv } -func PointerType_Alloc() PointerType { - return PointerTypeClass.Alloc() -} - func (pc _PointerTypeClass) New() PointerType { rv := objc.Call[PointerType](pc, objc.Sel("new")) rv.Autorelease() @@ -80,11 +76,11 @@ func (p_ PointerType) ElementStructType() StructType { return rv } -// The required byte alignment in memory for 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/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/2915756-elementisargumentbuffer?language=objc +func (p_ PointerType) ElementIsArgumentBuffer() bool { + rv := objc.Call[bool](p_, objc.Sel("elementIsArgumentBuffer")) return rv } @@ -96,14 +92,6 @@ func (p_ PointerType) DataSize() uint { return rv } -// The data type of the element data. [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")) - return rv -} - // The function’s read/write access to the element data. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/metal/mtlpointertype/2877452-access?language=objc @@ -112,10 +100,18 @@ func (p_ PointerType) Access() objc.Object { 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 +} + +// The data type of the element data. [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")) return rv } diff --git a/macos/metal/primitive_acceleration_structure_descriptor.gen.go b/macos/metal/primitive_acceleration_structure_descriptor.gen.go index ed5bbbd2..998b6877 100644 --- a/macos/metal/primitive_acceleration_structure_descriptor.gen.go +++ b/macos/metal/primitive_acceleration_structure_descriptor.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package metal @@ -18,18 +18,18 @@ type _PrimitiveAccelerationStructureDescriptorClass struct { // An interface definition for the [PrimitiveAccelerationStructureDescriptor] class. type IPrimitiveAccelerationStructureDescriptor interface { IAccelerationStructureDescriptor - MotionEndTime() float64 - SetMotionEndTime(value float64) MotionStartBorderMode() MotionBorderMode SetMotionStartBorderMode(value MotionBorderMode) - MotionEndBorderMode() MotionBorderMode - SetMotionEndBorderMode(value MotionBorderMode) MotionStartTime() float64 SetMotionStartTime(value float64) GeometryDescriptors() []AccelerationStructureGeometryDescriptor SetGeometryDescriptors(value []IAccelerationStructureGeometryDescriptor) + MotionEndBorderMode() MotionBorderMode + SetMotionEndBorderMode(value MotionBorderMode) MotionKeyframeCount() uint SetMotionKeyframeCount(value uint) + MotionEndTime() float64 + SetMotionEndTime(value float64) } // A description of an acceleration structure that contains geometry primitives. [Full Topic] @@ -62,10 +62,6 @@ func (pc _PrimitiveAccelerationStructureDescriptorClass) Alloc() PrimitiveAccele return rv } -func PrimitiveAccelerationStructureDescriptor_Alloc() PrimitiveAccelerationStructureDescriptor { - return PrimitiveAccelerationStructureDescriptorClass.Alloc() -} - func (pc _PrimitiveAccelerationStructureDescriptorClass) New() PrimitiveAccelerationStructureDescriptor { rv := objc.Call[PrimitiveAccelerationStructureDescriptor](pc, objc.Sel("new")) rv.Autorelease() @@ -81,21 +77,6 @@ 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() float64 { - rv := objc.Call[float64](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 float64) { - 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 @@ -111,21 +92,6 @@ 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 @@ -156,6 +122,21 @@ 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 @@ -170,3 +151,18 @@ 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() float64 { + rv := objc.Call[float64](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 float64) { + objc.Call[objc.Void](p_, objc.Sel("setMotionEndTime:"), value) +} diff --git a/macos/metal/protocols.gen.m b/macos/metal/protocols.gen.m index a38d63ba..d045757e 100644 --- a/macos/metal/protocols.gen.m +++ b/macos/metal/protocols.gen.m @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. #import "Metal/Metal.h" diff --git a/macos/metal/rasterization_rate_layer_array.gen.go b/macos/metal/rasterization_rate_layer_array.gen.go index 66c0869b..9322204d 100644 --- a/macos/metal/rasterization_rate_layer_array.gen.go +++ b/macos/metal/rasterization_rate_layer_array.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package metal @@ -40,10 +40,6 @@ func (rc _RasterizationRateLayerArrayClass) Alloc() RasterizationRateLayerArray return rv } -func RasterizationRateLayerArray_Alloc() RasterizationRateLayerArray { - return RasterizationRateLayerArrayClass.Alloc() -} - func (rc _RasterizationRateLayerArrayClass) New() RasterizationRateLayerArray { rv := objc.Call[RasterizationRateLayerArray](rc, objc.Sel("new")) rv.Autorelease() diff --git a/macos/metal/rasterization_rate_layer_descriptor.gen.go b/macos/metal/rasterization_rate_layer_descriptor.gen.go index 70b77b8c..f858e835 100644 --- a/macos/metal/rasterization_rate_layer_descriptor.gen.go +++ b/macos/metal/rasterization_rate_layer_descriptor.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package metal @@ -18,12 +18,12 @@ type _RasterizationRateLayerDescriptorClass struct { // An interface definition for the [RasterizationRateLayerDescriptor] class. type IRasterizationRateLayerDescriptor interface { objc.IObject - HorizontalSampleStorage() *float64 VerticalSampleStorage() *float64 SampleCount() Size + Vertical() RasterizationRateSampleArray MaxSampleCount() Size Horizontal() RasterizationRateSampleArray - Vertical() RasterizationRateSampleArray + HorizontalSampleStorage() *float64 } // The minimum rasterization rates to apply to sections of a layer in the render target. [Full Topic] @@ -53,13 +53,23 @@ func NewRasterizationRateLayerDescriptorWithSampleCount(sampleCount Size) Raster return instance } -func (rc _RasterizationRateLayerDescriptorClass) Alloc() RasterizationRateLayerDescriptor { - rv := objc.Call[RasterizationRateLayerDescriptor](rc, objc.Sel("alloc")) +func (r_ RasterizationRateLayerDescriptor) InitWithSampleCountHorizontalVertical(sampleCount Size, horizontal *float64, vertical *float64) RasterizationRateLayerDescriptor { + rv := objc.Call[RasterizationRateLayerDescriptor](r_, objc.Sel("initWithSampleCount:horizontal:vertical:"), sampleCount, horizontal, vertical) return rv } -func RasterizationRateLayerDescriptor_Alloc() RasterizationRateLayerDescriptor { - return RasterizationRateLayerDescriptorClass.Alloc() +// 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 *float64, vertical *float64) 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 } func (rc _RasterizationRateLayerDescriptorClass) New() RasterizationRateLayerDescriptor { @@ -77,14 +87,6 @@ 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() *float64 { - rv := objc.Call[*float64](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 @@ -101,6 +103,14 @@ 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 @@ -117,10 +127,10 @@ func (r_ RasterizationRateLayerDescriptor) Horizontal() RasterizationRateSampleA return rv } -// The vertical rasterization rates for the layer map’s rows. [Full Topic] +// A pointer to the storage for the layer map's horizontal rasterization rates. [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")) +// [Full Topic]: https://developer.apple.com/documentation/metal/mtlrasterizationratelayerdescriptor/3088859-horizontalsamplestorage?language=objc +func (r_ RasterizationRateLayerDescriptor) HorizontalSampleStorage() *float64 { + rv := objc.Call[*float64](r_, objc.Sel("horizontalSampleStorage")) return rv } diff --git a/macos/metal/rasterization_rate_map_descriptor.gen.go b/macos/metal/rasterization_rate_map_descriptor.gen.go index e1b20611..fc5ed650 100644 --- a/macos/metal/rasterization_rate_map_descriptor.gen.go +++ b/macos/metal/rasterization_rate_map_descriptor.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package metal @@ -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] @@ -46,10 +46,6 @@ func (rc _RasterizationRateMapDescriptorClass) Alloc() RasterizationRateMapDescr return rv } -func RasterizationRateMapDescriptor_Alloc() RasterizationRateMapDescriptor { - return RasterizationRateMapDescriptorClass.Alloc() -} - func (rc _RasterizationRateMapDescriptorClass) New() RasterizationRateMapDescriptor { rv := objc.Call[RasterizationRateMapDescriptor](rc, objc.Sel("new")) rv.Autorelease() @@ -73,11 +69,34 @@ func (r_ RasterizationRateMapDescriptor) LayerAtIndex(layerIndex uint) Rasteriza return rv } -// Sets a configuration for a layer rate map. [Full Topic] +// Creates a rate map descriptor with a given size and identifier. [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:"), objc.Ptr(layer), layerIndex) +// [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, objc.Ptr(layer)) + return rv +} + +// 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 RasterizationRateMapDescriptor_RasterizationRateMapDescriptorWithScreenSizeLayer(screenSize Size, layer IRasterizationRateLayerDescriptor) RasterizationRateMapDescriptor { + return RasterizationRateMapDescriptorClass.RasterizationRateMapDescriptorWithScreenSizeLayer(screenSize, layer) } // Creates a rate map descriptor with a set of layer descriptors. [Full Topic] @@ -95,6 +114,13 @@ 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:"), objc.Ptr(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 @@ -110,6 +136,14 @@ 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 @@ -132,11 +166,3 @@ 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.gen.go b/macos/metal/rasterization_rate_map_protocol.gen.go similarity index 71% rename from macos/metal/rasterization_rate_map.gen.go rename to macos/metal/rasterization_rate_map_protocol.gen.go index 6adfdb0e..adf48ec8 100644 --- a/macos/metal/rasterization_rate_map.gen.go +++ b/macos/metal/rasterization_rate_map_protocol.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package metal @@ -10,6 +10,10 @@ 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 @@ -18,14 +22,14 @@ type PRasterizationRateMap interface { PhysicalSizeForLayer(layerIndex uint) Size HasPhysicalSizeForLayer() bool - // optional - CopyParameterDataToBufferOffset(buffer BufferWrapper, offset uint) - HasCopyParameterDataToBufferOffset() bool - // optional MapScreenToPhysicalCoordinatesForLayer(screenCoordinates Coordinate2D, layerIndex uint) Coordinate2D HasMapScreenToPhysicalCoordinatesForLayer() bool + // optional + LayerCount() uint + HasLayerCount() bool + // optional ParameterBufferSizeAndAlign() SizeAndAlign HasParameterBufferSizeAndAlign() bool @@ -34,10 +38,6 @@ type PRasterizationRateMap interface { ScreenSize() Size HasScreenSize() bool - // optional - Device() PDevice - HasDevice() bool - // optional PhysicalGranularity() Size HasPhysicalGranularity() bool @@ -47,131 +47,134 @@ type PRasterizationRateMap interface { HasLabel() bool // optional - LayerCount() uint - HasLayerCount() bool + Device() DeviceObject + HasDevice() bool } -// A concrete type wrapper for the [PRasterizationRateMap] protocol. -type RasterizationRateMapWrapper struct { +// ensure impl type implements protocol interface +var _ PRasterizationRateMap = (*RasterizationRateMapObject)(nil) + +// A concrete type for the [PRasterizationRateMap] protocol. +type RasterizationRateMapObject struct { objc.Object } -func (r_ RasterizationRateMapWrapper) HasMapPhysicalToScreenCoordinatesForLayer() bool { +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:")) } // Converts a point in physical coordinates inside a layer to its corresponding logical viewport coordinates. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/metal/mtlrasterizationratemap/3173179-mapphysicaltoscreencoordinates?language=objc -func (r_ RasterizationRateMapWrapper) MapPhysicalToScreenCoordinatesForLayer(physicalCoordinates Coordinate2D, layerIndex uint) Coordinate2D { +func (r_ RasterizationRateMapObject) MapPhysicalToScreenCoordinatesForLayer(physicalCoordinates Coordinate2D, layerIndex uint) Coordinate2D { rv := objc.Call[Coordinate2D](r_, objc.Sel("mapPhysicalToScreenCoordinates:forLayer:"), physicalCoordinates, layerIndex) return rv } -func (r_ RasterizationRateMapWrapper) HasPhysicalSizeForLayer() bool { +func (r_ RasterizationRateMapObject) HasPhysicalSizeForLayer() bool { return r_.RespondsToSelector(objc.Sel("physicalSizeForLayer:")) } // Returns the dimensions, in pixels, of the area in the render target affected by the rasterization rate map. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/metal/mtlrasterizationratemap/3088871-physicalsizeforlayer?language=objc -func (r_ RasterizationRateMapWrapper) PhysicalSizeForLayer(layerIndex uint) Size { +func (r_ RasterizationRateMapObject) PhysicalSizeForLayer(layerIndex uint) Size { rv := objc.Call[Size](r_, objc.Sel("physicalSizeForLayer:"), layerIndex) return rv } -func (r_ RasterizationRateMapWrapper) HasCopyParameterDataToBufferOffset() bool { - return r_.RespondsToSelector(objc.Sel("copyParameterDataToBuffer:offset:")) +func (r_ RasterizationRateMapObject) HasMapScreenToPhysicalCoordinatesForLayer() bool { + return r_.RespondsToSelector(objc.Sel("mapScreenToPhysicalCoordinates:forLayer:")) } -// Copies the parameter data into the provided buffer. [Full Topic] +// Converts a point in logical viewport coordinates to the corresponding physical coordinates in a render layer. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metal/mtlrasterizationratemap/3153125-copyparameterdatatobuffer?language=objc -func (r_ RasterizationRateMapWrapper) CopyParameterDataToBufferOffset(buffer PBuffer, offset uint) { - po0 := objc.WrapAsProtocol("MTLBuffer", buffer) - objc.Call[objc.Void](r_, objc.Sel("copyParameterDataToBuffer:offset:"), po0, offset) +// [Full Topic]: https://developer.apple.com/documentation/metal/mtlrasterizationratemap/3173180-mapscreentophysicalcoordinates?language=objc +func (r_ RasterizationRateMapObject) MapScreenToPhysicalCoordinatesForLayer(screenCoordinates Coordinate2D, layerIndex uint) Coordinate2D { + rv := objc.Call[Coordinate2D](r_, objc.Sel("mapScreenToPhysicalCoordinates:forLayer:"), screenCoordinates, layerIndex) + return rv } -func (r_ RasterizationRateMapWrapper) HasMapScreenToPhysicalCoordinatesForLayer() bool { - return r_.RespondsToSelector(objc.Sel("mapScreenToPhysicalCoordinates:forLayer:")) +func (r_ RasterizationRateMapObject) HasLayerCount() bool { + return r_.RespondsToSelector(objc.Sel("layerCount")) } -// Converts a point in logical viewport coordinates to the corresponding physical coordinates in a render layer. [Full Topic] +// The number of layers in the rate map. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metal/mtlrasterizationratemap/3173180-mapscreentophysicalcoordinates?language=objc -func (r_ RasterizationRateMapWrapper) MapScreenToPhysicalCoordinatesForLayer(screenCoordinates Coordinate2D, layerIndex uint) Coordinate2D { - rv := objc.Call[Coordinate2D](r_, objc.Sel("mapScreenToPhysicalCoordinates:forLayer:"), screenCoordinates, layerIndex) +// [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_ RasterizationRateMapWrapper) HasParameterBufferSizeAndAlign() bool { +func (r_ RasterizationRateMapObject) HasParameterBufferSizeAndAlign() bool { return r_.RespondsToSelector(objc.Sel("parameterBufferSizeAndAlign")) } // The size and alignment requirements to contain the coordinate transformation information in this rate map. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/metal/mtlrasterizationratemap/3088868-parameterbuffersizeandalign?language=objc -func (r_ RasterizationRateMapWrapper) ParameterBufferSizeAndAlign() SizeAndAlign { +func (r_ RasterizationRateMapObject) ParameterBufferSizeAndAlign() SizeAndAlign { rv := objc.Call[SizeAndAlign](r_, objc.Sel("parameterBufferSizeAndAlign")) return rv } -func (r_ RasterizationRateMapWrapper) HasScreenSize() bool { +func (r_ RasterizationRateMapObject) HasScreenSize() bool { return r_.RespondsToSelector(objc.Sel("screenSize")) } // The logical size, in pixels, of the viewport coordinate system. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/metal/mtlrasterizationratemap/3088873-screensize?language=objc -func (r_ RasterizationRateMapWrapper) ScreenSize() Size { +func (r_ RasterizationRateMapObject) ScreenSize() Size { rv := objc.Call[Size](r_, objc.Sel("screenSize")) return rv } -func (r_ RasterizationRateMapWrapper) 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_ RasterizationRateMapWrapper) Device() DeviceWrapper { - rv := objc.Call[DeviceWrapper](r_, objc.Sel("device")) - return rv -} - -func (r_ RasterizationRateMapWrapper) HasPhysicalGranularity() bool { +func (r_ RasterizationRateMapObject) HasPhysicalGranularity() bool { return r_.RespondsToSelector(objc.Sel("physicalGranularity")) } // The granularity, in physical pixels, at which the rasterization rate varies. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/metal/mtlrasterizationratemap/3088870-physicalgranularity?language=objc -func (r_ RasterizationRateMapWrapper) PhysicalGranularity() Size { +func (r_ RasterizationRateMapObject) PhysicalGranularity() Size { rv := objc.Call[Size](r_, objc.Sel("physicalGranularity")) return rv } -func (r_ RasterizationRateMapWrapper) HasLabel() bool { +func (r_ RasterizationRateMapObject) HasLabel() bool { return r_.RespondsToSelector(objc.Sel("label")) } // A string that identifies the rate map. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/metal/mtlrasterizationratemap/3131702-label?language=objc -func (r_ RasterizationRateMapWrapper) Label() string { +func (r_ RasterizationRateMapObject) Label() string { rv := objc.Call[string](r_, objc.Sel("label")) return rv } -func (r_ RasterizationRateMapWrapper) HasLayerCount() bool { - return r_.RespondsToSelector(objc.Sel("layerCount")) +func (r_ RasterizationRateMapObject) HasDevice() bool { + return r_.RespondsToSelector(objc.Sel("device")) } -// The number of layers in the rate map. [Full Topic] +// The device object that created the rate map. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metal/mtlrasterizationratemap/3088867-layercount?language=objc -func (r_ RasterizationRateMapWrapper) LayerCount() uint { - rv := objc.Call[uint](r_, objc.Sel("layerCount")) +// [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 } diff --git a/macos/metal/rasterization_rate_sample_array.gen.go b/macos/metal/rasterization_rate_sample_array.gen.go index c2dddb7a..af5e92da 100644 --- a/macos/metal/rasterization_rate_sample_array.gen.go +++ b/macos/metal/rasterization_rate_sample_array.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package metal @@ -19,8 +19,8 @@ type _RasterizationRateSampleArrayClass struct { // An interface definition for the [RasterizationRateSampleArray] class. type IRasterizationRateSampleArray interface { objc.IObject - ObjectAtIndexedSubscript(index uint) foundation.Number SetObjectAtIndexedSubscript(value foundation.INumber, index uint) + ObjectAtIndexedSubscript(index uint) foundation.Number } // An array object that contains rasterization rates. [Full Topic] @@ -41,10 +41,6 @@ func (rc _RasterizationRateSampleArrayClass) Alloc() RasterizationRateSampleArra return rv } -func RasterizationRateSampleArray_Alloc() RasterizationRateSampleArray { - return RasterizationRateSampleArrayClass.Alloc() -} - func (rc _RasterizationRateSampleArrayClass) New() RasterizationRateSampleArray { rv := objc.Call[RasterizationRateSampleArray](rc, objc.Sel("new")) rv.Autorelease() @@ -60,6 +56,13 @@ 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:"), objc.Ptr(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 @@ -67,10 +70,3 @@ 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:"), objc.Ptr(value), index) -} diff --git a/macos/metal/render_command_encoder.gen.go b/macos/metal/render_command_encoder_protocol.gen.go similarity index 52% rename from macos/metal/render_command_encoder.gen.go rename to macos/metal/render_command_encoder_protocol.gen.go index dff03753..bb910b9c 100644 --- a/macos/metal/render_command_encoder.gen.go +++ b/macos/metal/render_command_encoder_protocol.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package metal @@ -14,187 +14,235 @@ import ( // [Full Topic]: https://developer.apple.com/documentation/metal/mtlrendercommandencoder?language=objc type PRenderCommandEncoder interface { // optional - SetViewportsCount(viewports *Viewport, count uint) - HasSetViewportsCount() bool + SetDepthStoreAction(storeAction StoreAction) + HasSetDepthStoreAction() bool // optional - SetThreadgroupMemoryLengthOffsetAtIndex(length uint, offset uint, index uint) - HasSetThreadgroupMemoryLengthOffsetAtIndex() bool + SetVertexIntersectionFunctionTableAtBufferIndex(intersectionFunctionTable IntersectionFunctionTableObject, bufferIndex uint) + HasSetVertexIntersectionFunctionTableAtBufferIndex() bool // optional - SetFragmentVisibleFunctionTableAtBufferIndex(functionTable VisibleFunctionTableWrapper, bufferIndex uint) - HasSetFragmentVisibleFunctionTableAtBufferIndex() bool + SetVertexIntersectionFunctionTablesWithBufferRange(intersectionFunctionTables IntersectionFunctionTableObject, range_ foundation.Range) + HasSetVertexIntersectionFunctionTablesWithBufferRange() bool // optional - SetFragmentTexturesWithRange(textures TextureWrapper, range_ foundation.Range) - HasSetFragmentTexturesWithRange() bool + SetVertexTexturesWithRange(textures TextureObject, range_ foundation.Range) + HasSetVertexTexturesWithRange() bool // optional - SetViewport(viewport Viewport) - HasSetViewport() bool + DrawIndexedPrimitivesIndexTypeIndexBufferIndexBufferOffsetIndirectBufferIndirectBufferOffset(primitiveType PrimitiveType, indexType IndexType, indexBuffer BufferObject, indexBufferOffset uint, indirectBuffer BufferObject, indirectBufferOffset uint) + HasDrawIndexedPrimitivesIndexTypeIndexBufferIndexBufferOffsetIndirectBufferIndirectBufferOffset() bool // optional - DrawIndexedPatchesPatchIndexBufferPatchIndexBufferOffsetControlPointIndexBufferControlPointIndexBufferOffsetIndirectBufferIndirectBufferOffset(numberOfPatchControlPoints uint, patchIndexBuffer BufferWrapper, patchIndexBufferOffset uint, controlPointIndexBuffer BufferWrapper, controlPointIndexBufferOffset uint, indirectBuffer BufferWrapper, indirectBufferOffset uint) - HasDrawIndexedPatchesPatchIndexBufferPatchIndexBufferOffsetControlPointIndexBufferControlPointIndexBufferOffsetIndirectBufferIndirectBufferOffset() bool + DrawPrimitivesIndirectBufferIndirectBufferOffset(primitiveType PrimitiveType, indirectBuffer BufferObject, indirectBufferOffset uint) + HasDrawPrimitivesIndirectBufferIndirectBufferOffset() bool // optional - SetTileSamplerStatesLodMinClampsLodMaxClampsWithRange(samplers SamplerStateWrapper, lodMinClamps *float64, lodMaxClamps *float64, range_ foundation.Range) - HasSetTileSamplerStatesLodMinClampsLodMaxClampsWithRange() bool + SetTileTextureAtIndex(texture TextureObject, index uint) + HasSetTileTextureAtIndex() bool // optional - SetFragmentTextureAtIndex(texture TextureWrapper, index uint) - HasSetFragmentTextureAtIndex() bool + SetVertexSamplerStatesLodMinClampsLodMaxClampsWithRange(samplers SamplerStateObject, lodMinClamps *float64, lodMaxClamps *float64, range_ foundation.Range) + HasSetVertexSamplerStatesLodMinClampsLodMaxClampsWithRange() bool // optional - SetDepthStoreAction(storeAction StoreAction) - HasSetDepthStoreAction() bool + SetDepthStencilState(depthStencilState DepthStencilStateObject) + HasSetDepthStencilState() bool // optional - SetFragmentSamplerStatesWithRange(samplers SamplerStateWrapper, range_ foundation.Range) - HasSetFragmentSamplerStatesWithRange() bool + SetFragmentSamplerStateAtIndex(sampler SamplerStateObject, index uint) + HasSetFragmentSamplerStateAtIndex() bool // optional - SetVisibilityResultModeOffset(mode VisibilityResultMode, offset uint) - HasSetVisibilityResultModeOffset() bool + SetVertexSamplerStateAtIndex(sampler SamplerStateObject, index uint) + HasSetVertexSamplerStateAtIndex() bool // optional - SetTileBufferOffsetAtIndex(offset uint, index uint) - HasSetTileBufferOffsetAtIndex() bool + DispatchThreadsPerTile(threadsPerTile Size) + HasDispatchThreadsPerTile() bool // optional - SetFragmentBufferOffsetAtIndex(offset uint, index uint) - HasSetFragmentBufferOffsetAtIndex() bool + SetFragmentSamplerStatesLodMinClampsLodMaxClampsWithRange(samplers SamplerStateObject, lodMinClamps *float64, lodMaxClamps *float64, range_ foundation.Range) + HasSetFragmentSamplerStatesLodMinClampsLodMaxClampsWithRange() bool // optional - SetVertexBufferOffsetAtIndex_(buffer BufferWrapper, offset uint, index uint) - HasSetVertexBufferOffsetAtIndex_() bool + SetStencilFrontReferenceValueBackReferenceValue(frontReferenceValue uint32, backReferenceValue uint32) + HasSetStencilFrontReferenceValueBackReferenceValue() bool // optional - SetVertexIntersectionFunctionTableAtBufferIndex(intersectionFunctionTable IntersectionFunctionTableWrapper, bufferIndex uint) - HasSetVertexIntersectionFunctionTableAtBufferIndex() bool + SetVertexTextureAtIndex(texture TextureObject, index uint) + HasSetVertexTextureAtIndex() bool // optional - SetTileBufferOffsetAtIndex_(buffer BufferWrapper, offset uint, index uint) - HasSetTileBufferOffsetAtIndex_() bool + DrawPatchesPatchStartPatchCountPatchIndexBufferPatchIndexBufferOffsetInstanceCountBaseInstance(numberOfPatchControlPoints uint, patchStart uint, patchCount uint, patchIndexBuffer BufferObject, patchIndexBufferOffset uint, instanceCount uint, baseInstance uint) + HasDrawPatchesPatchStartPatchCountPatchIndexBufferPatchIndexBufferOffsetInstanceCountBaseInstance() bool // optional - SetTessellationFactorBufferOffsetInstanceStride(buffer BufferWrapper, offset uint, instanceStride uint) - HasSetTessellationFactorBufferOffsetInstanceStride() bool + SetTessellationFactorScale(scale float64) + HasSetTessellationFactorScale() bool + + // optional + SetVertexBufferOffsetAtIndex_(buffer BufferObject, offset uint, index uint) + HasSetVertexBufferOffsetAtIndex_() bool // optional - SetTileVisibleFunctionTableAtBufferIndex(functionTable VisibleFunctionTableWrapper, bufferIndex uint) + SetTileVisibleFunctionTableAtBufferIndex(functionTable VisibleFunctionTableObject, bufferIndex uint) HasSetTileVisibleFunctionTableAtBufferIndex() bool // optional - DrawPatchesPatchIndexBufferPatchIndexBufferOffsetIndirectBufferIndirectBufferOffset(numberOfPatchControlPoints uint, patchIndexBuffer BufferWrapper, patchIndexBufferOffset uint, indirectBuffer BufferWrapper, indirectBufferOffset uint) - HasDrawPatchesPatchIndexBufferPatchIndexBufferOffsetIndirectBufferIndirectBufferOffset() bool + SetVertexAccelerationStructureAtBufferIndex(accelerationStructure AccelerationStructureObject, bufferIndex uint) + HasSetVertexAccelerationStructureAtBufferIndex() bool // optional - UseResourceUsageStages(resource ResourceWrapper, usage ResourceUsage, stages RenderStages) - HasUseResourceUsageStages() bool + SetTileTexturesWithRange(textures TextureObject, range_ foundation.Range) + HasSetTileTexturesWithRange() bool // optional - DrawPrimitivesVertexStartVertexCount(primitiveType PrimitiveType, vertexStart uint, vertexCount uint) - HasDrawPrimitivesVertexStartVertexCount() bool + SetFragmentBuffersOffsetsWithRange(buffers BufferObject, offsets *uint, range_ foundation.Range) + HasSetFragmentBuffersOffsetsWithRange() bool // optional - SetVertexBuffersOffsetsWithRange(buffers BufferWrapper, offsets *uint, range_ foundation.Range) - HasSetVertexBuffersOffsetsWithRange() bool + SetTileIntersectionFunctionTableAtBufferIndex(intersectionFunctionTable IntersectionFunctionTableObject, bufferIndex uint) + HasSetTileIntersectionFunctionTableAtBufferIndex() bool + + // optional + SetTileBytesLengthAtIndex(bytes unsafe.Pointer, length uint, index uint) + HasSetTileBytesLengthAtIndex() bool + + // optional + SetStencilStoreActionOptions(storeActionOptions StoreActionOptions) + HasSetStencilStoreActionOptions() bool // optional - SetFragmentBufferOffsetAtIndex_(buffer BufferWrapper, offset uint, index uint) + SetFragmentBufferOffsetAtIndex_(buffer BufferObject, offset uint, index uint) HasSetFragmentBufferOffsetAtIndex_() bool // optional - SetDepthStencilState(depthStencilState DepthStencilStateWrapper) - HasSetDepthStencilState() bool + ExecuteCommandsInBufferWithRange(indirectCommandBuffer IndirectCommandBufferObject, executionRange foundation.Range) + HasExecuteCommandsInBufferWithRange() bool // optional - SetVertexAccelerationStructureAtBufferIndex(accelerationStructure AccelerationStructureWrapper, bufferIndex uint) - HasSetVertexAccelerationStructureAtBufferIndex() bool + SetTileBufferOffsetAtIndex_(buffer BufferObject, offset uint, index uint) + HasSetTileBufferOffsetAtIndex_() bool // optional - SetVertexBytesLengthAtIndex(bytes unsafe.Pointer, length uint, index uint) - HasSetVertexBytesLengthAtIndex() bool + UseResourceUsageStages(resource ResourceObject, usage ResourceUsage, stages RenderStages) + HasUseResourceUsageStages() bool // optional - SetVertexAmplificationCountViewMappings(count uint, viewMappings *VertexAmplificationViewMapping) - HasSetVertexAmplificationCountViewMappings() bool + SetColorStoreActionOptionsAtIndex(storeActionOptions StoreActionOptions, colorAttachmentIndex uint) + HasSetColorStoreActionOptionsAtIndex() bool // optional - SetScissorRect(rect ScissorRect) - HasSetScissorRect() bool + SetFragmentTexturesWithRange(textures TextureObject, range_ foundation.Range) + HasSetFragmentTexturesWithRange() bool // optional - SetTileTextureAtIndex(texture TextureWrapper, index uint) - HasSetTileTextureAtIndex() bool + SetTriangleFillMode(fillMode TriangleFillMode) + HasSetTriangleFillMode() bool // optional - SetVertexSamplerStateLodMinClampLodMaxClampAtIndex(sampler SamplerStateWrapper, lodMinClamp float64, lodMaxClamp float64, index uint) - HasSetVertexSamplerStateLodMinClampLodMaxClampAtIndex() bool + SetTileSamplerStatesWithRange(samplers SamplerStateObject, range_ foundation.Range) + HasSetTileSamplerStatesWithRange() bool // optional - SetStencilFrontReferenceValueBackReferenceValue(frontReferenceValue uint32, backReferenceValue uint32) - HasSetStencilFrontReferenceValueBackReferenceValue() bool + DrawIndexedPrimitivesIndexCountIndexTypeIndexBufferIndexBufferOffsetInstanceCount(primitiveType PrimitiveType, indexCount uint, indexType IndexType, indexBuffer BufferObject, indexBufferOffset uint, instanceCount uint) + HasDrawIndexedPrimitivesIndexCountIndexTypeIndexBufferIndexBufferOffsetInstanceCount() bool // optional - SetVertexVisibleFunctionTablesWithBufferRange(functionTables VisibleFunctionTableWrapper, range_ foundation.Range) - HasSetVertexVisibleFunctionTablesWithBufferRange() bool + SetFragmentBytesLengthAtIndex(bytes unsafe.Pointer, length uint, index uint) + HasSetFragmentBytesLengthAtIndex() bool // optional - SetStencilStoreAction(storeAction StoreAction) - HasSetStencilStoreAction() bool + UseResourcesCountUsageStages(resources ResourceObject, count uint, usage ResourceUsage, stages RenderStages) + HasUseResourcesCountUsageStages() bool // optional - SetCullMode(cullMode CullMode) - HasSetCullMode() bool + SetStencilReferenceValue(referenceValue uint32) + HasSetStencilReferenceValue() bool // optional - SetTriangleFillMode(fillMode TriangleFillMode) - HasSetTriangleFillMode() bool + DrawPrimitivesVertexStartVertexCount(primitiveType PrimitiveType, vertexStart uint, vertexCount uint) + HasDrawPrimitivesVertexStartVertexCount() bool // optional - SetTileTexturesWithRange(textures TextureWrapper, range_ foundation.Range) - HasSetTileTexturesWithRange() bool + SetThreadgroupMemoryLengthOffsetAtIndex(length uint, offset uint, index uint) + HasSetThreadgroupMemoryLengthOffsetAtIndex() bool // optional - MemoryBarrierWithResourcesCountAfterStagesBeforeStages(resources ResourceWrapper, count uint, after RenderStages, before RenderStages) - HasMemoryBarrierWithResourcesCountAfterStagesBeforeStages() bool + SetFragmentSamplerStatesWithRange(samplers SamplerStateObject, range_ foundation.Range) + HasSetFragmentSamplerStatesWithRange() bool // optional - SetFragmentAccelerationStructureAtBufferIndex(accelerationStructure AccelerationStructureWrapper, bufferIndex uint) - HasSetFragmentAccelerationStructureAtBufferIndex() bool + SetFragmentIntersectionFunctionTableAtBufferIndex(intersectionFunctionTable IntersectionFunctionTableObject, bufferIndex uint) + HasSetFragmentIntersectionFunctionTableAtBufferIndex() bool // optional - SetDepthBiasSlopeScaleClamp(depthBias float64, slopeScale float64, clamp float64) - HasSetDepthBiasSlopeScaleClamp() bool + SetFragmentIntersectionFunctionTablesWithBufferRange(intersectionFunctionTables IntersectionFunctionTableObject, range_ foundation.Range) + HasSetFragmentIntersectionFunctionTablesWithBufferRange() bool // optional - SampleCountersInBufferAtSampleIndexWithBarrier(sampleBuffer CounterSampleBufferWrapper, sampleIndex uint, barrier bool) - HasSampleCountersInBufferAtSampleIndexWithBarrier() bool + DrawIndexedPatchesPatchIndexBufferPatchIndexBufferOffsetControlPointIndexBufferControlPointIndexBufferOffsetIndirectBufferIndirectBufferOffset(numberOfPatchControlPoints uint, patchIndexBuffer BufferObject, patchIndexBufferOffset uint, controlPointIndexBuffer BufferObject, controlPointIndexBufferOffset uint, indirectBuffer BufferObject, indirectBufferOffset uint) + HasDrawIndexedPatchesPatchIndexBufferPatchIndexBufferOffsetControlPointIndexBufferControlPointIndexBufferOffsetIndirectBufferIndirectBufferOffset() bool // optional - SetTileIntersectionFunctionTableAtBufferIndex(intersectionFunctionTable IntersectionFunctionTableWrapper, bufferIndex uint) - HasSetTileIntersectionFunctionTableAtBufferIndex() bool + SetVertexSamplerStatesWithRange(samplers SamplerStateObject, range_ foundation.Range) + HasSetVertexSamplerStatesWithRange() bool + + // optional + SetFragmentSamplerStateLodMinClampLodMaxClampAtIndex(sampler SamplerStateObject, lodMinClamp float64, lodMaxClamp float64, index uint) + HasSetFragmentSamplerStateLodMinClampLodMaxClampAtIndex() bool + + // optional + SetTileBufferOffsetAtIndex(offset uint, index uint) + HasSetTileBufferOffsetAtIndex() bool + + // optional + SetFragmentVisibleFunctionTableAtBufferIndex(functionTable VisibleFunctionTableObject, bufferIndex uint) + HasSetFragmentVisibleFunctionTableAtBufferIndex() bool + + // optional + SetTessellationFactorBufferOffsetInstanceStride(buffer BufferObject, offset uint, instanceStride uint) + HasSetTessellationFactorBufferOffsetInstanceStride() bool + + // optional + SetVertexSamplerStateLodMinClampLodMaxClampAtIndex(sampler SamplerStateObject, lodMinClamp float64, lodMaxClamp float64, index uint) + HasSetVertexSamplerStateLodMinClampLodMaxClampAtIndex() bool + + // optional + SetFragmentVisibleFunctionTablesWithBufferRange(functionTables VisibleFunctionTableObject, range_ foundation.Range) + HasSetFragmentVisibleFunctionTablesWithBufferRange() bool + + // optional + SetStencilStoreAction(storeAction StoreAction) + HasSetStencilStoreAction() bool // optional - SetRenderPipelineState(pipelineState RenderPipelineStateWrapper) + SetViewportsCount(viewports *Viewport, count uint) + HasSetViewportsCount() bool + + // optional + SetBlendColorRedGreenBlueAlpha(red float64, green float64, blue float64, alpha float64) + HasSetBlendColorRedGreenBlueAlpha() bool + + // optional + SetRenderPipelineState(pipelineState RenderPipelineStateObject) HasSetRenderPipelineState() bool // optional - SetTileBytesLengthAtIndex(bytes unsafe.Pointer, length uint, index uint) - HasSetTileBytesLengthAtIndex() bool + DrawPrimitivesVertexStartVertexCountInstanceCountBaseInstance(primitiveType PrimitiveType, vertexStart uint, vertexCount uint, instanceCount uint, baseInstance uint) + HasDrawPrimitivesVertexStartVertexCountInstanceCountBaseInstance() bool // optional - ExecuteCommandsInBufferWithRange(indirectCommandBuffer IndirectCommandBufferWrapper, executionRange foundation.Range) - HasExecuteCommandsInBufferWithRange() bool + UpdateFenceAfterStages(fence FenceObject, stages RenderStages) + HasUpdateFenceAfterStages() bool // optional - SetFragmentBytesLengthAtIndex(bytes unsafe.Pointer, length uint, index uint) - HasSetFragmentBytesLengthAtIndex() bool + DrawPatchesPatchIndexBufferPatchIndexBufferOffsetIndirectBufferIndirectBufferOffset(numberOfPatchControlPoints uint, patchIndexBuffer BufferObject, patchIndexBufferOffset uint, indirectBuffer BufferObject, indirectBufferOffset uint) + HasDrawPatchesPatchIndexBufferPatchIndexBufferOffsetIndirectBufferIndirectBufferOffset() bool // optional - SetTileBuffersOffsetsWithRange(buffers BufferWrapper, offsets *uint, range_ foundation.Range) + SetTileBuffersOffsetsWithRange(buffers BufferObject, offsets *uint, range_ foundation.Range) HasSetTileBuffersOffsetsWithRange() bool // optional @@ -202,120 +250,144 @@ type PRenderCommandEncoder interface { HasMemoryBarrierWithScopeAfterStagesBeforeStages() bool // optional - SetFragmentIntersectionFunctionTableAtBufferIndex(intersectionFunctionTable IntersectionFunctionTableWrapper, bufferIndex uint) - HasSetFragmentIntersectionFunctionTableAtBufferIndex() bool + SetTileAccelerationStructureAtBufferIndex(accelerationStructure AccelerationStructureObject, bufferIndex uint) + HasSetTileAccelerationStructureAtBufferIndex() bool // optional - DispatchThreadsPerTile(threadsPerTile Size) - HasDispatchThreadsPerTile() bool + SetFrontFacingWinding(frontFacingWinding Winding) + HasSetFrontFacingWinding() bool // optional - SetFragmentVisibleFunctionTablesWithBufferRange(functionTables VisibleFunctionTableWrapper, range_ foundation.Range) - HasSetFragmentVisibleFunctionTablesWithBufferRange() bool + UseHeapStages(heap HeapObject, stages RenderStages) + HasUseHeapStages() bool // optional - SetVertexTexturesWithRange(textures TextureWrapper, range_ foundation.Range) - HasSetVertexTexturesWithRange() bool + SetFragmentAccelerationStructureAtBufferIndex(accelerationStructure AccelerationStructureObject, bufferIndex uint) + HasSetFragmentAccelerationStructureAtBufferIndex() bool // optional - SetFragmentSamplerStateAtIndex(sampler SamplerStateWrapper, index uint) - HasSetFragmentSamplerStateAtIndex() bool + SetTileIntersectionFunctionTablesWithBufferRange(intersectionFunctionTables IntersectionFunctionTableObject, range_ foundation.Range) + HasSetTileIntersectionFunctionTablesWithBufferRange() bool + + // optional + DrawPrimitivesVertexStartVertexCountInstanceCount(primitiveType PrimitiveType, vertexStart uint, vertexCount uint, instanceCount uint) + HasDrawPrimitivesVertexStartVertexCountInstanceCount() bool // optional - SetTileSamplerStateAtIndex(sampler SamplerStateWrapper, index uint) + SetTileSamplerStateAtIndex(sampler SamplerStateObject, index uint) HasSetTileSamplerStateAtIndex() bool // optional - SetColorStoreActionOptionsAtIndex(storeActionOptions StoreActionOptions, colorAttachmentIndex uint) - HasSetColorStoreActionOptionsAtIndex() bool + SetDepthBiasSlopeScaleClamp(depthBias float64, slopeScale float64, clamp float64) + HasSetDepthBiasSlopeScaleClamp() bool // optional - SetVertexTextureAtIndex(texture TextureWrapper, index uint) - HasSetVertexTextureAtIndex() bool + SampleCountersInBufferAtSampleIndexWithBarrier(sampleBuffer CounterSampleBufferObject, sampleIndex uint, barrier bool) + HasSampleCountersInBufferAtSampleIndexWithBarrier() bool // optional - SetTessellationFactorScale(scale float64) - HasSetTessellationFactorScale() bool + SetColorStoreActionAtIndex(storeAction StoreAction, colorAttachmentIndex uint) + HasSetColorStoreActionAtIndex() bool // optional - UseHeapStages(heap HeapWrapper, stages RenderStages) - HasUseHeapStages() bool + SetTileSamplerStateLodMinClampLodMaxClampAtIndex(sampler SamplerStateObject, lodMinClamp float64, lodMaxClamp float64, index uint) + HasSetTileSamplerStateLodMinClampLodMaxClampAtIndex() bool // optional - SetColorStoreActionAtIndex(storeAction StoreAction, colorAttachmentIndex uint) - HasSetColorStoreActionAtIndex() bool + SetScissorRectsCount(scissorRects *ScissorRect, count uint) + HasSetScissorRectsCount() bool // optional - SetStencilStoreActionOptions(storeActionOptions StoreActionOptions) - HasSetStencilStoreActionOptions() bool + WaitForFenceBeforeStages(fence FenceObject, stages RenderStages) + HasWaitForFenceBeforeStages() bool // optional - UseResourcesCountUsageStages(resources ResourceWrapper, count uint, usage ResourceUsage, stages RenderStages) - HasUseResourcesCountUsageStages() bool + UseHeapsCountStages(heaps HeapObject, count uint, stages RenderStages) + HasUseHeapsCountStages() bool // optional - SetDepthClipMode(depthClipMode DepthClipMode) - HasSetDepthClipMode() bool + SetVertexBuffersOffsetsWithRange(buffers BufferObject, offsets *uint, range_ foundation.Range) + HasSetVertexBuffersOffsetsWithRange() bool // optional - SetVertexBufferOffsetAtIndex(offset uint, index uint) - HasSetVertexBufferOffsetAtIndex() bool + SetFragmentTextureAtIndex(texture TextureObject, index uint) + HasSetFragmentTextureAtIndex() bool // optional - UseHeapsCountStages(heaps HeapWrapper, count uint, stages RenderStages) - HasUseHeapsCountStages() bool + SetVertexAmplificationCountViewMappings(count uint, viewMappings *VertexAmplificationViewMapping) + HasSetVertexAmplificationCountViewMappings() bool // optional - SetTileVisibleFunctionTablesWithBufferRange(functionTables VisibleFunctionTableWrapper, range_ foundation.Range) - HasSetTileVisibleFunctionTablesWithBufferRange() bool + SetDepthStoreActionOptions(storeActionOptions StoreActionOptions) + HasSetDepthStoreActionOptions() bool // optional - SetBlendColorRedGreenBlueAlpha(red float64, green float64, blue float64, alpha float64) - HasSetBlendColorRedGreenBlueAlpha() bool + DrawIndexedPatchesPatchStartPatchCountPatchIndexBufferPatchIndexBufferOffsetControlPointIndexBufferControlPointIndexBufferOffsetInstanceCountBaseInstance(numberOfPatchControlPoints uint, patchStart uint, patchCount uint, patchIndexBuffer BufferObject, patchIndexBufferOffset uint, controlPointIndexBuffer BufferObject, controlPointIndexBufferOffset uint, instanceCount uint, baseInstance uint) + HasDrawIndexedPatchesPatchStartPatchCountPatchIndexBufferPatchIndexBufferOffsetControlPointIndexBufferControlPointIndexBufferOffsetInstanceCountBaseInstance() bool // optional - SetVertexVisibleFunctionTableAtBufferIndex(functionTable VisibleFunctionTableWrapper, bufferIndex uint) - HasSetVertexVisibleFunctionTableAtBufferIndex() bool + SetVisibilityResultModeOffset(mode VisibilityResultMode, offset uint) + HasSetVisibilityResultModeOffset() bool // optional - UpdateFenceAfterStages(fence FenceWrapper, stages RenderStages) - HasUpdateFenceAfterStages() bool + DrawIndexedPrimitivesIndexCountIndexTypeIndexBufferIndexBufferOffsetInstanceCountBaseVertexBaseInstance(primitiveType PrimitiveType, indexCount uint, indexType IndexType, indexBuffer BufferObject, indexBufferOffset uint, instanceCount uint, baseVertex int, baseInstance uint) + HasDrawIndexedPrimitivesIndexCountIndexTypeIndexBufferIndexBufferOffsetInstanceCountBaseVertexBaseInstance() bool // optional - SetScissorRectsCount(scissorRects *ScissorRect, count uint) - HasSetScissorRectsCount() bool + SetCullMode(cullMode CullMode) + HasSetCullMode() bool // optional - SetDepthStoreActionOptions(storeActionOptions StoreActionOptions) - HasSetDepthStoreActionOptions() bool + SetViewport(viewport Viewport) + HasSetViewport() bool // optional - SetTileAccelerationStructureAtBufferIndex(accelerationStructure AccelerationStructureWrapper, bufferIndex uint) - HasSetTileAccelerationStructureAtBufferIndex() bool + SetScissorRect(rect ScissorRect) + HasSetScissorRect() bool // optional - SetFragmentBuffersOffsetsWithRange(buffers BufferWrapper, offsets *uint, range_ foundation.Range) - HasSetFragmentBuffersOffsetsWithRange() bool + ExecuteCommandsInBufferIndirectBufferIndirectBufferOffset(indirectCommandbuffer IndirectCommandBufferObject, indirectRangeBuffer BufferObject, indirectBufferOffset uint) + HasExecuteCommandsInBufferIndirectBufferIndirectBufferOffset() bool // optional - SetVertexSamplerStatesLodMinClampsLodMaxClampsWithRange(samplers SamplerStateWrapper, lodMinClamps *float64, lodMaxClamps *float64, range_ foundation.Range) - HasSetVertexSamplerStatesLodMinClampsLodMaxClampsWithRange() bool + SetVertexVisibleFunctionTableAtBufferIndex(functionTable VisibleFunctionTableObject, bufferIndex uint) + HasSetVertexVisibleFunctionTableAtBufferIndex() bool // optional - SetFrontFacingWinding(frontFacingWinding Winding) - HasSetFrontFacingWinding() bool + SetFragmentBufferOffsetAtIndex(offset uint, index uint) + HasSetFragmentBufferOffsetAtIndex() bool // optional - DrawIndexedPrimitivesIndexCountIndexTypeIndexBufferIndexBufferOffsetInstanceCount(primitiveType PrimitiveType, indexCount uint, indexType IndexType, indexBuffer BufferWrapper, indexBufferOffset uint, instanceCount uint) - HasDrawIndexedPrimitivesIndexCountIndexTypeIndexBufferIndexBufferOffsetInstanceCount() bool + SetVertexVisibleFunctionTablesWithBufferRange(functionTables VisibleFunctionTableObject, range_ foundation.Range) + HasSetVertexVisibleFunctionTablesWithBufferRange() bool // optional - SetStencilReferenceValue(referenceValue uint32) - HasSetStencilReferenceValue() bool + SetDepthClipMode(depthClipMode DepthClipMode) + HasSetDepthClipMode() bool // optional - WaitForFenceBeforeStages(fence FenceWrapper, stages RenderStages) - HasWaitForFenceBeforeStages() bool + SetTileVisibleFunctionTablesWithBufferRange(functionTables VisibleFunctionTableObject, range_ foundation.Range) + HasSetTileVisibleFunctionTablesWithBufferRange() bool + + // optional + SetTileSamplerStatesLodMinClampsLodMaxClampsWithRange(samplers SamplerStateObject, lodMinClamps *float64, lodMaxClamps *float64, range_ foundation.Range) + HasSetTileSamplerStatesLodMinClampsLodMaxClampsWithRange() bool + + // optional + MemoryBarrierWithResourcesCountAfterStagesBeforeStages(resources ResourceObject, count uint, after RenderStages, before RenderStages) + HasMemoryBarrierWithResourcesCountAfterStagesBeforeStages() bool + + // optional + SetVertexBufferOffsetAtIndex(offset uint, index uint) + HasSetVertexBufferOffsetAtIndex() bool + + // optional + DrawIndexedPrimitivesIndexCountIndexTypeIndexBufferIndexBufferOffset(primitiveType PrimitiveType, indexCount uint, indexType IndexType, indexBuffer BufferObject, indexBufferOffset uint) + HasDrawIndexedPrimitivesIndexCountIndexTypeIndexBufferIndexBufferOffset() bool + + // optional + SetVertexBytesLengthAtIndex(bytes unsafe.Pointer, length uint, index uint) + HasSetVertexBytesLengthAtIndex() bool // optional TileWidth() uint @@ -326,915 +398,1135 @@ type PRenderCommandEncoder interface { HasTileHeight() bool } -// A concrete type wrapper for the [PRenderCommandEncoder] protocol. -type RenderCommandEncoderWrapper struct { +// ensure impl type implements protocol interface +var _ PRenderCommandEncoder = (*RenderCommandEncoderObject)(nil) + +// A concrete type for the [PRenderCommandEncoder] protocol. +type RenderCommandEncoderObject struct { objc.Object } -func (r_ RenderCommandEncoderWrapper) HasSetViewportsCount() bool { - return r_.RespondsToSelector(objc.Sel("setViewports:count:")) +func (r_ RenderCommandEncoderObject) HasSetDepthStoreAction() bool { + return r_.RespondsToSelector(objc.Sel("setDepthStoreAction:")) } -// Configures the render pipeline with multiple viewports that apply transformations and clipping rectangles. [Full Topic] +// Configures the store action for the depth attachment. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metal/mtlrendercommandencoder/2869738-setviewports?language=objc -func (r_ RenderCommandEncoderWrapper) 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/1640036-setdepthstoreaction?language=objc +func (r_ RenderCommandEncoderObject) SetDepthStoreAction(storeAction StoreAction) { + objc.Call[objc.Void](r_, objc.Sel("setDepthStoreAction:"), storeAction) } -func (r_ RenderCommandEncoderWrapper) HasSetThreadgroupMemoryLengthOffsetAtIndex() bool { - return r_.RespondsToSelector(objc.Sel("setThreadgroupMemoryLength:offset:atIndex:")) +func (r_ RenderCommandEncoderObject) HasSetVertexIntersectionFunctionTableAtBufferIndex() bool { + return r_.RespondsToSelector(objc.Sel("setVertexIntersectionFunctionTable:atBufferIndex:")) } -// Configures the size of a threadgroup memory buffer for an entry in the fragment or tile shader argument table. [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/2866165-setthreadgroupmemorylength?language=objc -func (r_ RenderCommandEncoderWrapper) 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/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_ RenderCommandEncoderWrapper) HasSetFragmentVisibleFunctionTableAtBufferIndex() bool { - return r_.RespondsToSelector(objc.Sel("setFragmentVisibleFunctionTable:atBufferIndex:")) +func (r_ RenderCommandEncoderObject) HasSetVertexIntersectionFunctionTablesWithBufferRange() bool { + return r_.RespondsToSelector(objc.Sel("setVertexIntersectionFunctionTables:withBufferRange:")) } -// Assigns a visible function table to an entry in the fragment shader argument table. [Full Topic] +// Assigns multiple intersection function tables to a range of entries in the vertex shader argument table. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metal/mtlrendercommandencoder/3750556-setfragmentvisiblefunctiontable?language=objc -func (r_ RenderCommandEncoderWrapper) SetFragmentVisibleFunctionTableAtBufferIndex(functionTable PVisibleFunctionTable, 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/3750565-setvertexintersectionfunctiontab?language=objc +func (r_ RenderCommandEncoderObject) SetVertexIntersectionFunctionTablesWithBufferRange(intersectionFunctionTables IntersectionFunctionTableObject, range_ foundation.Range) { + po0 := objc.WrapAsProtocol("MTLIntersectionFunctionTable", intersectionFunctionTables) + objc.Call[objc.Void](r_, objc.Sel("setVertexIntersectionFunctionTables:withBufferRange:"), po0, range_) } -func (r_ RenderCommandEncoderWrapper) HasSetFragmentTexturesWithRange() bool { - return r_.RespondsToSelector(objc.Sel("setFragmentTextures:withRange:")) +func (r_ RenderCommandEncoderObject) HasSetVertexTexturesWithRange() bool { + return r_.RespondsToSelector(objc.Sel("setVertexTextures:withRange:")) } -// Assigns multiple textures to a range of entries in the fragment 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/1515878-setfragmenttextures?language=objc -func (r_ RenderCommandEncoderWrapper) SetFragmentTexturesWithRange(textures PTexture, range_ foundation.Range) { +// [Full Topic]: https://developer.apple.com/documentation/metal/mtlrendercommandencoder/1516109-setvertextextures?language=objc +func (r_ RenderCommandEncoderObject) SetVertexTexturesWithRange(textures TextureObject, range_ foundation.Range) { po0 := objc.WrapAsProtocol("MTLTexture", textures) - objc.Call[objc.Void](r_, objc.Sel("setFragmentTextures:withRange:"), po0, range_) + objc.Call[objc.Void](r_, objc.Sel("setVertexTextures:withRange:"), po0, range_) } -func (r_ RenderCommandEncoderWrapper) HasSetViewport() bool { - return r_.RespondsToSelector(objc.Sel("setViewport:")) +func (r_ RenderCommandEncoderObject) HasDrawIndexedPrimitivesIndexTypeIndexBufferIndexBufferOffsetIndirectBufferIndirectBufferOffset() bool { + return r_.RespondsToSelector(objc.Sel("drawIndexedPrimitives:indexType:indexBuffer:indexBufferOffset:indirectBuffer:indirectBufferOffset:")) } -// Configures the render pipeline with a viewport that applies a transformation and a clipping rectangle. [Full Topic] +// 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/1515527-setviewport?language=objc -func (r_ RenderCommandEncoderWrapper) SetViewport(viewport Viewport) { - objc.Call[objc.Void](r_, objc.Sel("setViewport:"), viewport) +// [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_ RenderCommandEncoderWrapper) HasDrawIndexedPatchesPatchIndexBufferPatchIndexBufferOffsetControlPointIndexBufferControlPointIndexBufferOffsetIndirectBufferIndirectBufferOffset() bool { - return r_.RespondsToSelector(objc.Sel("drawIndexedPatches:patchIndexBuffer:patchIndexBufferOffset:controlPointIndexBuffer:controlPointIndexBufferOffset:indirectBuffer:indirectBufferOffset:")) +func (r_ RenderCommandEncoderObject) HasDrawPrimitivesIndirectBufferIndirectBufferOffset() bool { + return r_.RespondsToSelector(objc.Sel("drawPrimitives:indirectBuffer:indirectBufferOffset:")) } -// Encodes a draw command that renders multiple instances of tessellated patches with a control point index buffer and indirect arguments. [Full Topic] +// 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/1639949-drawindexedpatches?language=objc -func (r_ RenderCommandEncoderWrapper) DrawIndexedPatchesPatchIndexBufferPatchIndexBufferOffsetControlPointIndexBufferControlPointIndexBufferOffsetIndirectBufferIndirectBufferOffset(numberOfPatchControlPoints uint, patchIndexBuffer PBuffer, patchIndexBufferOffset uint, controlPointIndexBuffer PBuffer, controlPointIndexBufferOffset uint, indirectBuffer PBuffer, 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/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_ RenderCommandEncoderWrapper) HasSetTileSamplerStatesLodMinClampsLodMaxClampsWithRange() bool { - return r_.RespondsToSelector(objc.Sel("setTileSamplerStates:lodMinClamps:lodMaxClamps:withRange:")) +func (r_ RenderCommandEncoderObject) HasSetTileTextureAtIndex() bool { + return r_.RespondsToSelector(objc.Sel("setTileTexture:atIndex:")) } -// Assigns multiple sampler states and clamp values to a range of entries in the tile 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/2866170-settilesamplerstates?language=objc -func (r_ RenderCommandEncoderWrapper) SetTileSamplerStatesLodMinClampsLodMaxClampsWithRange(samplers PSamplerState, lodMinClamps *float64, lodMaxClamps *float64, range_ foundation.Range) { +// [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 SamplerStateObject, lodMinClamps *float64, lodMaxClamps *float64, range_ foundation.Range) { po0 := objc.WrapAsProtocol("MTLSamplerState", samplers) - objc.Call[objc.Void](r_, objc.Sel("setTileSamplerStates:lodMinClamps:lodMaxClamps:withRange:"), po0, lodMinClamps, lodMaxClamps, range_) + objc.Call[objc.Void](r_, objc.Sel("setVertexSamplerStates:lodMinClamps:lodMaxClamps:withRange:"), po0, lodMinClamps, lodMaxClamps, range_) } -func (r_ RenderCommandEncoderWrapper) HasSetFragmentTextureAtIndex() bool { - return r_.RespondsToSelector(objc.Sel("setFragmentTexture:atIndex:")) +func (r_ RenderCommandEncoderObject) HasSetDepthStencilState() bool { + return r_.RespondsToSelector(objc.Sel("setDepthStencilState:")) } -// Assigns a texture to an entry in the fragment shader argument table. [Full Topic] +// Configures the combined depth and stencil state. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metal/mtlrendercommandencoder/1515390-setfragmenttexture?language=objc -func (r_ RenderCommandEncoderWrapper) SetFragmentTextureAtIndex(texture PTexture, 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/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_ RenderCommandEncoderWrapper) HasSetDepthStoreAction() bool { - return r_.RespondsToSelector(objc.Sel("setDepthStoreAction:")) +func (r_ RenderCommandEncoderObject) HasSetFragmentSamplerStateAtIndex() bool { + return r_.RespondsToSelector(objc.Sel("setFragmentSamplerState:atIndex:")) } -// Configures the store action for the depth attachment. [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/1640036-setdepthstoreaction?language=objc -func (r_ RenderCommandEncoderWrapper) SetDepthStoreAction(storeAction StoreAction) { - objc.Call[objc.Void](r_, objc.Sel("setDepthStoreAction:"), storeAction) +// [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_ RenderCommandEncoderWrapper) HasSetFragmentSamplerStatesWithRange() bool { - return r_.RespondsToSelector(objc.Sel("setFragmentSamplerStates:withRange:")) +func (r_ RenderCommandEncoderObject) HasSetVertexSamplerStateAtIndex() bool { + return r_.RespondsToSelector(objc.Sel("setVertexSamplerState:atIndex:")) } -// Assigns multiple sampler states to a range of entries in the fragment shader argument table. [Full Topic] +// Assigns a sampler state to an entry in the vertex shader argument table. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metal/mtlrendercommandencoder/1515970-setfragmentsamplerstates?language=objc -func (r_ RenderCommandEncoderWrapper) SetFragmentSamplerStatesWithRange(samplers PSamplerState, range_ foundation.Range) { +// [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) +} + +func (r_ RenderCommandEncoderObject) HasDispatchThreadsPerTile() bool { + return r_.RespondsToSelector(objc.Sel("dispatchThreadsPerTile:")) +} + +// 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/2866171-dispatchthreadspertile?language=objc +func (r_ RenderCommandEncoderObject) DispatchThreadsPerTile(threadsPerTile Size) { + objc.Call[objc.Void](r_, objc.Sel("dispatchThreadsPerTile:"), threadsPerTile) +} + +func (r_ RenderCommandEncoderObject) HasSetFragmentSamplerStatesLodMinClampsLodMaxClampsWithRange() bool { + return r_.RespondsToSelector(objc.Sel("setFragmentSamplerStates:lodMinClamps:lodMaxClamps:withRange:")) +} + +// Assigns multiple sampler states and clamp values to a range of entries in the fragment shader argument table. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/metal/mtlrendercommandencoder/1515463-setfragmentsamplerstates?language=objc +func (r_ RenderCommandEncoderObject) SetFragmentSamplerStatesLodMinClampsLodMaxClampsWithRange(samplers SamplerStateObject, lodMinClamps *float64, lodMaxClamps *float64, range_ foundation.Range) { po0 := objc.WrapAsProtocol("MTLSamplerState", samplers) - objc.Call[objc.Void](r_, objc.Sel("setFragmentSamplerStates:withRange:"), po0, range_) + objc.Call[objc.Void](r_, objc.Sel("setFragmentSamplerStates:lodMinClamps:lodMaxClamps:withRange:"), po0, lodMinClamps, lodMaxClamps, range_) } -func (r_ RenderCommandEncoderWrapper) HasSetVisibilityResultModeOffset() bool { - return r_.RespondsToSelector(objc.Sel("setVisibilityResultMode:offset:")) +func (r_ RenderCommandEncoderObject) HasSetStencilFrontReferenceValueBackReferenceValue() bool { + return r_.RespondsToSelector(objc.Sel("setStencilFrontReferenceValue:backReferenceValue:")) } -// Configures which visibility test the GPU runs and the destination for any results it generates. [Full Topic] +// Configures different comparison values for front- and back-facing primitives. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metal/mtlrendercommandencoder/1515556-setvisibilityresultmode?language=objc -func (r_ RenderCommandEncoderWrapper) 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/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_ RenderCommandEncoderWrapper) HasSetTileBufferOffsetAtIndex() bool { - return r_.RespondsToSelector(objc.Sel("setTileBufferOffset:atIndex:")) +func (r_ RenderCommandEncoderObject) HasSetVertexTextureAtIndex() bool { + return r_.RespondsToSelector(objc.Sel("setVertexTexture:atIndex:")) } -// Updates an entry in the tile shader argument table with a new location within the entry’s current buffer. [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/2866159-settilebufferoffset?language=objc -func (r_ RenderCommandEncoderWrapper) 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/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_ RenderCommandEncoderWrapper) HasSetFragmentBufferOffsetAtIndex() bool { - return r_.RespondsToSelector(objc.Sel("setFragmentBufferOffset:atIndex:")) +func (r_ RenderCommandEncoderObject) HasDrawPatchesPatchStartPatchCountPatchIndexBufferPatchIndexBufferOffsetInstanceCountBaseInstance() bool { + return r_.RespondsToSelector(objc.Sel("drawPatches:patchStart:patchCount:patchIndexBuffer:patchIndexBufferOffset:instanceCount:baseInstance:")) } -// Updates an entry in the fragment shader argument table with a new location within the entry’s current buffer. [Full Topic] +// Encodes a draw command that renders multiple instances of tessellated patches. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metal/mtlrendercommandencoder/1515917-setfragmentbufferoffset?language=objc -func (r_ RenderCommandEncoderWrapper) 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/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 float64) { + objc.Call[objc.Void](r_, objc.Sel("setTessellationFactorScale:"), scale) } -func (r_ RenderCommandEncoderWrapper) HasSetVertexBufferOffsetAtIndex_() bool { +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_ RenderCommandEncoderWrapper) SetVertexBufferOffsetAtIndex_(buffer PBuffer, offset uint, index uint) { +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_ RenderCommandEncoderWrapper) HasSetVertexIntersectionFunctionTableAtBufferIndex() bool { - return r_.RespondsToSelector(objc.Sel("setVertexIntersectionFunctionTable:atBufferIndex:")) +func (r_ RenderCommandEncoderObject) HasSetTileVisibleFunctionTableAtBufferIndex() bool { + return r_.RespondsToSelector(objc.Sel("setTileVisibleFunctionTable:atBufferIndex:")) } -// Assigns an intersection function table to an entry in the vertex shader argument table. [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/3750564-setvertexintersectionfunctiontab?language=objc -func (r_ RenderCommandEncoderWrapper) SetVertexIntersectionFunctionTableAtBufferIndex(intersectionFunctionTable PIntersectionFunctionTable, bufferIndex uint) { +// [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) +} + +func (r_ RenderCommandEncoderObject) HasSetTileTexturesWithRange() bool { + return r_.RespondsToSelector(objc.Sel("setTileTextures:withRange:")) +} + +// 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/2866172-settiletextures?language=objc +func (r_ RenderCommandEncoderObject) SetTileTexturesWithRange(textures TextureObject, range_ foundation.Range) { + po0 := objc.WrapAsProtocol("MTLTexture", textures) + objc.Call[objc.Void](r_, objc.Sel("setTileTextures:withRange:"), po0, range_) +} + +func (r_ RenderCommandEncoderObject) HasSetFragmentBuffersOffsetsWithRange() bool { + return r_.RespondsToSelector(objc.Sel("setFragmentBuffers:offsets:withRange:")) +} + +// 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/1515724-setfragmentbuffers?language=objc +func (r_ RenderCommandEncoderObject) SetFragmentBuffersOffsetsWithRange(buffers BufferObject, 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) HasSetTileIntersectionFunctionTableAtBufferIndex() bool { + return r_.RespondsToSelector(objc.Sel("setTileIntersectionFunctionTable:atBufferIndex:")) +} + +// 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/3750559-settileintersectionfunctiontable?language=objc +func (r_ RenderCommandEncoderObject) SetTileIntersectionFunctionTableAtBufferIndex(intersectionFunctionTable IntersectionFunctionTableObject, bufferIndex uint) { po0 := objc.WrapAsProtocol("MTLIntersectionFunctionTable", intersectionFunctionTable) - objc.Call[objc.Void](r_, objc.Sel("setVertexIntersectionFunctionTable:atBufferIndex:"), po0, bufferIndex) + objc.Call[objc.Void](r_, objc.Sel("setTileIntersectionFunctionTable:atBufferIndex:"), po0, bufferIndex) } -func (r_ RenderCommandEncoderWrapper) HasSetTileBufferOffsetAtIndex_() bool { - return r_.RespondsToSelector(objc.Sel("setTileBuffer:offset:atIndex:")) +func (r_ RenderCommandEncoderObject) HasSetTileBytesLengthAtIndex() bool { + return r_.RespondsToSelector(objc.Sel("setTileBytes:length:atIndex:")) } -// Assigns a buffer to an entry in the tile shader argument table. [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/2866157-settilebuffer?language=objc -func (r_ RenderCommandEncoderWrapper) SetTileBufferOffsetAtIndex_(buffer PBuffer, offset uint, index uint) { - po0 := objc.WrapAsProtocol("MTLBuffer", buffer) - objc.Call[objc.Void](r_, objc.Sel("setTileBuffer:offset:atIndex:"), po0, offset, index) +// [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_ RenderCommandEncoderWrapper) HasSetTessellationFactorBufferOffsetInstanceStride() bool { - return r_.RespondsToSelector(objc.Sel("setTessellationFactorBuffer:offset:instanceStride:")) +func (r_ RenderCommandEncoderObject) HasSetStencilStoreActionOptions() bool { + return r_.RespondsToSelector(objc.Sel("setStencilStoreActionOptions:")) } -// Configures the per-patch tessellation factors for any subsequent patch-drawing commands. [Full Topic] +// Configures the store action options for the stencil attachment. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metal/mtlrendercommandencoder/1640035-settessellationfactorbuffer?language=objc -func (r_ RenderCommandEncoderWrapper) SetTessellationFactorBufferOffsetInstanceStride(buffer PBuffer, offset uint, instanceStride uint) { +// [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) HasSetFragmentBufferOffsetAtIndex_() bool { + return r_.RespondsToSelector(objc.Sel("setFragmentBuffer:offset:atIndex:")) +} + +// Assigns a buffer to an entry in the fragment 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) { po0 := objc.WrapAsProtocol("MTLBuffer", buffer) - objc.Call[objc.Void](r_, objc.Sel("setTessellationFactorBuffer:offset:instanceStride:"), po0, offset, instanceStride) + objc.Call[objc.Void](r_, objc.Sel("setFragmentBuffer:offset:atIndex:"), po0, offset, index) } -func (r_ RenderCommandEncoderWrapper) HasSetTileVisibleFunctionTableAtBufferIndex() bool { - return r_.RespondsToSelector(objc.Sel("setTileVisibleFunctionTable:atBufferIndex:")) +func (r_ RenderCommandEncoderObject) HasExecuteCommandsInBufferWithRange() bool { + return r_.RespondsToSelector(objc.Sel("executeCommandsInBuffer:withRange:")) } -// Assigns a visible function table to an entry in the tile shader argument table. [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/3750561-settilevisiblefunctiontable?language=objc -func (r_ RenderCommandEncoderWrapper) SetTileVisibleFunctionTableAtBufferIndex(functionTable PVisibleFunctionTable, bufferIndex uint) { - po0 := objc.WrapAsProtocol("MTLVisibleFunctionTable", functionTable) - objc.Call[objc.Void](r_, objc.Sel("setTileVisibleFunctionTable:atBufferIndex:"), po0, bufferIndex) +// [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_ RenderCommandEncoderWrapper) HasDrawPatchesPatchIndexBufferPatchIndexBufferOffsetIndirectBufferIndirectBufferOffset() bool { - return r_.RespondsToSelector(objc.Sel("drawPatches:patchIndexBuffer:patchIndexBufferOffset:indirectBuffer:indirectBufferOffset:")) +func (r_ RenderCommandEncoderObject) HasSetTileBufferOffsetAtIndex_() bool { + return r_.RespondsToSelector(objc.Sel("setTileBuffer:offset:atIndex:")) } -// Encodes a draw command that renders multiple instances of tessellated patches with indirect arguments. [Full Topic] +// Assigns a buffer to an entry in the tile shader argument table. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metal/mtlrendercommandencoder/1639895-drawpatches?language=objc -func (r_ RenderCommandEncoderWrapper) DrawPatchesPatchIndexBufferPatchIndexBufferOffsetIndirectBufferIndirectBufferOffset(numberOfPatchControlPoints uint, patchIndexBuffer PBuffer, patchIndexBufferOffset uint, indirectBuffer PBuffer, 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/2866157-settilebuffer?language=objc +func (r_ RenderCommandEncoderObject) SetTileBufferOffsetAtIndex_(buffer BufferObject, offset uint, index uint) { + po0 := objc.WrapAsProtocol("MTLBuffer", buffer) + objc.Call[objc.Void](r_, objc.Sel("setTileBuffer:offset:atIndex:"), po0, offset, index) } -func (r_ RenderCommandEncoderWrapper) HasUseResourceUsageStages() bool { +func (r_ RenderCommandEncoderObject) HasUseResourceUsageStages() bool { return r_.RespondsToSelector(objc.Sel("useResource:usage:stages:")) } // 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/3043404-useresource?language=objc -func (r_ RenderCommandEncoderWrapper) UseResourceUsageStages(resource PResource, usage ResourceUsage, stages RenderStages) { +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_ RenderCommandEncoderWrapper) HasDrawPrimitivesVertexStartVertexCount() bool { +func (r_ RenderCommandEncoderObject) HasSetColorStoreActionOptionsAtIndex() bool { + return r_.RespondsToSelector(objc.Sel("setColorStoreActionOptions:atIndex:")) +} + +// Configures the store action options for a color attachment. [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) +} + +func (r_ RenderCommandEncoderObject) HasSetFragmentTexturesWithRange() bool { + return r_.RespondsToSelector(objc.Sel("setFragmentTextures:withRange:")) +} + +// 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/1515878-setfragmenttextures?language=objc +func (r_ RenderCommandEncoderObject) SetFragmentTexturesWithRange(textures TextureObject, range_ foundation.Range) { + po0 := objc.WrapAsProtocol("MTLTexture", textures) + objc.Call[objc.Void](r_, objc.Sel("setFragmentTextures:withRange:"), po0, range_) +} + +func (r_ RenderCommandEncoderObject) HasSetTriangleFillMode() bool { + return r_.RespondsToSelector(objc.Sel("setTriangleFillMode:")) +} + +// Configures how subsequent draw commands rasterize triangle and triangle strip primitives. [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) +} + +func (r_ RenderCommandEncoderObject) HasSetTileSamplerStatesWithRange() bool { + return r_.RespondsToSelector(objc.Sel("setTileSamplerStates:withRange:")) +} + +// Assigns multiple sampler states to a range of entries in the tile shader argument table. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/metal/mtlrendercommandencoder/2866161-settilesamplerstates?language=objc +func (r_ RenderCommandEncoderObject) SetTileSamplerStatesWithRange(samplers SamplerStateObject, range_ foundation.Range) { + po0 := objc.WrapAsProtocol("MTLSamplerState", samplers) + objc.Call[objc.Void](r_, objc.Sel("setTileSamplerStates:withRange:"), po0, range_) +} + +func (r_ RenderCommandEncoderObject) HasDrawIndexedPrimitivesIndexCountIndexTypeIndexBufferIndexBufferOffsetInstanceCount() bool { + return r_.RespondsToSelector(objc.Sel("drawIndexedPrimitives:indexCount:indexType:indexBuffer:indexBufferOffset:instanceCount:")) +} + +// 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/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) +} + +func (r_ RenderCommandEncoderObject) HasSetFragmentBytesLengthAtIndex() bool { + return r_.RespondsToSelector(objc.Sel("setFragmentBytes:length:atIndex:")) +} + +// 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/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) HasUseResourcesCountUsageStages() bool { + return r_.RespondsToSelector(objc.Sel("useResources:count:usage:stages:")) +} + +// 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/3043405-useresources?language=objc +func (r_ RenderCommandEncoderObject) UseResourcesCountUsageStages(resources ResourceObject, 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) HasSetStencilReferenceValue() bool { + return r_.RespondsToSelector(objc.Sel("setStencilReferenceValue:")) +} + +// Configures the same comparison value for front- and back-facing primitives. [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) +} + +func (r_ RenderCommandEncoderObject) HasDrawPrimitivesVertexStartVertexCount() bool { return r_.RespondsToSelector(objc.Sel("drawPrimitives:vertexStart:vertexCount:")) } // Encodes a draw command that renders an instance of a geometric primitive. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/metal/mtlrendercommandencoder/1516326-drawprimitives?language=objc -func (r_ RenderCommandEncoderWrapper) DrawPrimitivesVertexStartVertexCount(primitiveType PrimitiveType, vertexStart uint, vertexCount uint) { +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_ RenderCommandEncoderWrapper) HasSetVertexBuffersOffsetsWithRange() bool { - return r_.RespondsToSelector(objc.Sel("setVertexBuffers:offsets:withRange:")) +func (r_ RenderCommandEncoderObject) HasSetThreadgroupMemoryLengthOffsetAtIndex() bool { + return r_.RespondsToSelector(objc.Sel("setThreadgroupMemoryLength:offset:atIndex:")) } -// Assigns multiple buffers to a range of entries 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/1515987-setvertexbuffers?language=objc -func (r_ RenderCommandEncoderWrapper) SetVertexBuffersOffsetsWithRange(buffers PBuffer, 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/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_ RenderCommandEncoderWrapper) HasSetFragmentBufferOffsetAtIndex_() bool { - return r_.RespondsToSelector(objc.Sel("setFragmentBuffer:offset:atIndex:")) +func (r_ RenderCommandEncoderObject) HasSetFragmentSamplerStatesWithRange() bool { + return r_.RespondsToSelector(objc.Sel("setFragmentSamplerStates:withRange:")) } -// Assigns a buffer to an entry 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/1515470-setfragmentbuffer?language=objc -func (r_ RenderCommandEncoderWrapper) SetFragmentBufferOffsetAtIndex_(buffer PBuffer, offset uint, index uint) { - po0 := objc.WrapAsProtocol("MTLBuffer", buffer) - objc.Call[objc.Void](r_, objc.Sel("setFragmentBuffer:offset:atIndex:"), po0, offset, index) +// [Full Topic]: https://developer.apple.com/documentation/metal/mtlrendercommandencoder/1515970-setfragmentsamplerstates?language=objc +func (r_ RenderCommandEncoderObject) SetFragmentSamplerStatesWithRange(samplers SamplerStateObject, range_ foundation.Range) { + po0 := objc.WrapAsProtocol("MTLSamplerState", samplers) + objc.Call[objc.Void](r_, objc.Sel("setFragmentSamplerStates:withRange:"), po0, range_) } -func (r_ RenderCommandEncoderWrapper) HasSetDepthStencilState() bool { - return r_.RespondsToSelector(objc.Sel("setDepthStencilState:")) +func (r_ RenderCommandEncoderObject) HasSetFragmentIntersectionFunctionTableAtBufferIndex() bool { + return r_.RespondsToSelector(objc.Sel("setFragmentIntersectionFunctionTable:atBufferIndex:")) } -// Configures the combined depth and stencil state. [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/1516119-setdepthstencilstate?language=objc -func (r_ RenderCommandEncoderWrapper) SetDepthStencilState(depthStencilState PDepthStencilState) { - po0 := objc.WrapAsProtocol("MTLDepthStencilState", depthStencilState) - objc.Call[objc.Void](r_, objc.Sel("setDepthStencilState:"), po0) +// [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_ RenderCommandEncoderWrapper) HasSetVertexAccelerationStructureAtBufferIndex() bool { - return r_.RespondsToSelector(objc.Sel("setVertexAccelerationStructure:atBufferIndex:")) +func (r_ RenderCommandEncoderObject) HasSetFragmentIntersectionFunctionTablesWithBufferRange() bool { + return r_.RespondsToSelector(objc.Sel("setFragmentIntersectionFunctionTables:withBufferRange:")) } -// Assigns an acceleration structure to an entry in the vertex shader argument table. [Full Topic] +// Assigns multiple intersection function tables to a range of entries in the fragment shader argument table. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metal/mtlrendercommandencoder/3750563-setvertexaccelerationstructure?language=objc -func (r_ RenderCommandEncoderWrapper) SetVertexAccelerationStructureAtBufferIndex(accelerationStructure PAccelerationStructure, bufferIndex uint) { - po0 := objc.WrapAsProtocol("MTLAccelerationStructure", accelerationStructure) - objc.Call[objc.Void](r_, objc.Sel("setVertexAccelerationStructure:atBufferIndex:"), po0, bufferIndex) +// [Full Topic]: https://developer.apple.com/documentation/metal/mtlrendercommandencoder/3750555-setfragmentintersectionfunctiont?language=objc +func (r_ RenderCommandEncoderObject) SetFragmentIntersectionFunctionTablesWithBufferRange(intersectionFunctionTables IntersectionFunctionTableObject, range_ foundation.Range) { + po0 := objc.WrapAsProtocol("MTLIntersectionFunctionTable", intersectionFunctionTables) + objc.Call[objc.Void](r_, objc.Sel("setFragmentIntersectionFunctionTables:withBufferRange:"), po0, range_) } -func (r_ RenderCommandEncoderWrapper) HasSetVertexBytesLengthAtIndex() bool { - return r_.RespondsToSelector(objc.Sel("setVertexBytes:length:atIndex:")) +func (r_ RenderCommandEncoderObject) HasDrawIndexedPatchesPatchIndexBufferPatchIndexBufferOffsetControlPointIndexBufferControlPointIndexBufferOffsetIndirectBufferIndirectBufferOffset() bool { + return r_.RespondsToSelector(objc.Sel("drawIndexedPatches:patchIndexBuffer:patchIndexBufferOffset:controlPointIndexBuffer:controlPointIndexBufferOffset:indirectBuffer:indirectBufferOffset:")) } -// Creates a buffer from bytes and assigns it to an entry in the vertex shader argument table. [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/1515846-setvertexbytes?language=objc -func (r_ RenderCommandEncoderWrapper) 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/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_ RenderCommandEncoderWrapper) HasSetVertexAmplificationCountViewMappings() bool { - return r_.RespondsToSelector(objc.Sel("setVertexAmplificationCount:viewMappings:")) +func (r_ RenderCommandEncoderObject) HasSetVertexSamplerStatesWithRange() bool { + return r_.RespondsToSelector(objc.Sel("setVertexSamplerStates:withRange:")) } -// Configures the number of output vertices the render pipeline produces for each input vertex, optionally with render target and viewport offsets. [Full Topic] +// Assigns multiple sampler states to a range of entries in the vertex shader argument table. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metal/mtlrendercommandencoder/3088849-setvertexamplificationcount?language=objc -func (r_ RenderCommandEncoderWrapper) 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/1515400-setvertexsamplerstates?language=objc +func (r_ RenderCommandEncoderObject) SetVertexSamplerStatesWithRange(samplers SamplerStateObject, range_ foundation.Range) { + po0 := objc.WrapAsProtocol("MTLSamplerState", samplers) + objc.Call[objc.Void](r_, objc.Sel("setVertexSamplerStates:withRange:"), po0, range_) } -func (r_ RenderCommandEncoderWrapper) HasSetScissorRect() bool { - return r_.RespondsToSelector(objc.Sel("setScissorRect:")) +func (r_ RenderCommandEncoderObject) HasSetFragmentSamplerStateLodMinClampLodMaxClampAtIndex() bool { + return r_.RespondsToSelector(objc.Sel("setFragmentSamplerState:lodMinClamp:lodMaxClamp:atIndex:")) } -// Configures a rectangle for the fragment scissor test. [Full Topic] +// Assigns a sampler state and clamp values to an entry in the fragment shader argument table. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metal/mtlrendercommandencoder/1515583-setscissorrect?language=objc -func (r_ RenderCommandEncoderWrapper) SetScissorRect(rect ScissorRect) { - objc.Call[objc.Void](r_, objc.Sel("setScissorRect:"), rect) +// [Full Topic]: https://developer.apple.com/documentation/metal/mtlrendercommandencoder/1515485-setfragmentsamplerstate?language=objc +func (r_ RenderCommandEncoderObject) SetFragmentSamplerStateLodMinClampLodMaxClampAtIndex(sampler SamplerStateObject, lodMinClamp float64, lodMaxClamp float64, index uint) { + po0 := objc.WrapAsProtocol("MTLSamplerState", sampler) + objc.Call[objc.Void](r_, objc.Sel("setFragmentSamplerState:lodMinClamp:lodMaxClamp:atIndex:"), po0, lodMinClamp, lodMaxClamp, index) } -func (r_ RenderCommandEncoderWrapper) HasSetTileTextureAtIndex() bool { - return r_.RespondsToSelector(objc.Sel("setTileTexture:atIndex:")) +func (r_ RenderCommandEncoderObject) HasSetTileBufferOffsetAtIndex() bool { + return r_.RespondsToSelector(objc.Sel("setTileBufferOffset:atIndex:")) } -// Assigns a texture 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/2866173-settiletexture?language=objc -func (r_ RenderCommandEncoderWrapper) SetTileTextureAtIndex(texture PTexture, index uint) { - po0 := objc.WrapAsProtocol("MTLTexture", texture) - objc.Call[objc.Void](r_, objc.Sel("setTileTexture:atIndex:"), po0, 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_ RenderCommandEncoderWrapper) HasSetVertexSamplerStateLodMinClampLodMaxClampAtIndex() bool { - return r_.RespondsToSelector(objc.Sel("setVertexSamplerState:lodMinClamp:lodMaxClamp:atIndex:")) +func (r_ RenderCommandEncoderObject) HasSetFragmentVisibleFunctionTableAtBufferIndex() bool { + return r_.RespondsToSelector(objc.Sel("setFragmentVisibleFunctionTable:atBufferIndex:")) } -// Assigns a sampler state and clamp values to an entry 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/1515864-setvertexsamplerstate?language=objc -func (r_ RenderCommandEncoderWrapper) SetVertexSamplerStateLodMinClampLodMaxClampAtIndex(sampler PSamplerState, lodMinClamp float64, lodMaxClamp float64, 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/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_ RenderCommandEncoderWrapper) HasSetStencilFrontReferenceValueBackReferenceValue() bool { - return r_.RespondsToSelector(objc.Sel("setStencilFrontReferenceValue:backReferenceValue:")) +func (r_ RenderCommandEncoderObject) HasSetTessellationFactorBufferOffsetInstanceStride() bool { + return r_.RespondsToSelector(objc.Sel("setTessellationFactorBuffer:offset:instanceStride:")) } -// Configures different comparison values for front- and back-facing primitives. [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/1515522-setstencilfrontreferencevalue?language=objc -func (r_ RenderCommandEncoderWrapper) SetStencilFrontReferenceValueBackReferenceValue(frontReferenceValue uint32, backReferenceValue uint32) { - objc.Call[objc.Void](r_, objc.Sel("setStencilFrontReferenceValue:backReferenceValue:"), frontReferenceValue, backReferenceValue) +// [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_ RenderCommandEncoderWrapper) HasSetVertexVisibleFunctionTablesWithBufferRange() bool { - return r_.RespondsToSelector(objc.Sel("setVertexVisibleFunctionTables:withBufferRange:")) +func (r_ RenderCommandEncoderObject) HasSetVertexSamplerStateLodMinClampLodMaxClampAtIndex() bool { + return r_.RespondsToSelector(objc.Sel("setVertexSamplerState:lodMinClamp:lodMaxClamp:atIndex:")) } -// Assigns multiple visible function tables to a range of entries in the vertex 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/3750567-setvertexvisiblefunctiontables?language=objc -func (r_ RenderCommandEncoderWrapper) SetVertexVisibleFunctionTablesWithBufferRange(functionTables PVisibleFunctionTable, range_ foundation.Range) { +// [Full Topic]: https://developer.apple.com/documentation/metal/mtlrendercommandencoder/1515864-setvertexsamplerstate?language=objc +func (r_ RenderCommandEncoderObject) SetVertexSamplerStateLodMinClampLodMaxClampAtIndex(sampler SamplerStateObject, lodMinClamp float64, lodMaxClamp float64, 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) HasSetFragmentVisibleFunctionTablesWithBufferRange() bool { + return r_.RespondsToSelector(objc.Sel("setFragmentVisibleFunctionTables:withBufferRange:")) +} + +// 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/3750557-setfragmentvisiblefunctiontables?language=objc +func (r_ RenderCommandEncoderObject) SetFragmentVisibleFunctionTablesWithBufferRange(functionTables VisibleFunctionTableObject, range_ foundation.Range) { po0 := objc.WrapAsProtocol("MTLVisibleFunctionTable", functionTables) - objc.Call[objc.Void](r_, objc.Sel("setVertexVisibleFunctionTables:withBufferRange:"), po0, range_) + objc.Call[objc.Void](r_, objc.Sel("setFragmentVisibleFunctionTables:withBufferRange:"), po0, range_) } -func (r_ RenderCommandEncoderWrapper) HasSetStencilStoreAction() bool { +func (r_ RenderCommandEncoderObject) HasSetStencilStoreAction() bool { return r_.RespondsToSelector(objc.Sel("setStencilStoreAction:")) } // Configures the store action for the stencil attachment. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/metal/mtlrendercommandencoder/1639936-setstencilstoreaction?language=objc -func (r_ RenderCommandEncoderWrapper) SetStencilStoreAction(storeAction StoreAction) { +func (r_ RenderCommandEncoderObject) SetStencilStoreAction(storeAction StoreAction) { objc.Call[objc.Void](r_, objc.Sel("setStencilStoreAction:"), storeAction) } -func (r_ RenderCommandEncoderWrapper) HasSetCullMode() bool { - return r_.RespondsToSelector(objc.Sel("setCullMode:")) +func (r_ RenderCommandEncoderObject) HasSetViewportsCount() bool { + return r_.RespondsToSelector(objc.Sel("setViewports:count:")) } -// Configures how the render pipeline determines which primitives to remove. [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/1515975-setcullmode?language=objc -func (r_ RenderCommandEncoderWrapper) SetCullMode(cullMode CullMode) { - objc.Call[objc.Void](r_, objc.Sel("setCullMode:"), cullMode) +// [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_ RenderCommandEncoderWrapper) HasSetTriangleFillMode() bool { - return r_.RespondsToSelector(objc.Sel("setTriangleFillMode:")) +func (r_ RenderCommandEncoderObject) HasSetBlendColorRedGreenBlueAlpha() bool { + return r_.RespondsToSelector(objc.Sel("setBlendColorRed:green:blue:alpha:")) } -// Configures how subsequent draw commands rasterize triangle and triangle strip primitives. [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/1516029-settrianglefillmode?language=objc -func (r_ RenderCommandEncoderWrapper) SetTriangleFillMode(fillMode TriangleFillMode) { - objc.Call[objc.Void](r_, objc.Sel("setTriangleFillMode:"), fillMode) +// [Full Topic]: https://developer.apple.com/documentation/metal/mtlrendercommandencoder/1515592-setblendcolorred?language=objc +func (r_ RenderCommandEncoderObject) SetBlendColorRedGreenBlueAlpha(red float64, green float64, blue float64, alpha float64) { + objc.Call[objc.Void](r_, objc.Sel("setBlendColorRed:green:blue:alpha:"), red, green, blue, alpha) } -func (r_ RenderCommandEncoderWrapper) HasSetTileTexturesWithRange() bool { - return r_.RespondsToSelector(objc.Sel("setTileTextures:withRange:")) +func (r_ RenderCommandEncoderObject) HasSetRenderPipelineState() bool { + return r_.RespondsToSelector(objc.Sel("setRenderPipelineState:")) } -// Assigns multiple textures to a range of entries in the tile shader argument table. [Full Topic] +// Configures the encoder with a render or tile pipeline state instance that applies to your subsequent draw commands. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metal/mtlrendercommandencoder/2866172-settiletextures?language=objc -func (r_ RenderCommandEncoderWrapper) SetTileTexturesWithRange(textures PTexture, 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/1515811-setrenderpipelinestate?language=objc +func (r_ RenderCommandEncoderObject) SetRenderPipelineState(pipelineState RenderPipelineStateObject) { + po0 := objc.WrapAsProtocol("MTLRenderPipelineState", pipelineState) + objc.Call[objc.Void](r_, objc.Sel("setRenderPipelineState:"), po0) } -func (r_ RenderCommandEncoderWrapper) HasMemoryBarrierWithResourcesCountAfterStagesBeforeStages() bool { - return r_.RespondsToSelector(objc.Sel("memoryBarrierWithResources:count:afterStages:beforeStages:")) +func (r_ RenderCommandEncoderObject) HasDrawPrimitivesVertexStartVertexCountInstanceCountBaseInstance() bool { + return r_.RespondsToSelector(objc.Sel("drawPrimitives:vertexStart:vertexCount:instanceCount:baseInstance:")) } -// Creates a memory barrier that enforces the order of write and read operations for specific resources. [Full Topic] +// Encodes a draw command that renders multiple instances of a geometric primitive that starts with a custom instance identification number. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metal/mtlrendercommandencoder/2967441-memorybarrierwithresources?language=objc -func (r_ RenderCommandEncoderWrapper) MemoryBarrierWithResourcesCountAfterStagesBeforeStages(resources PResource, 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/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) } -func (r_ RenderCommandEncoderWrapper) HasSetFragmentAccelerationStructureAtBufferIndex() bool { - return r_.RespondsToSelector(objc.Sel("setFragmentAccelerationStructure:atBufferIndex:")) +func (r_ RenderCommandEncoderObject) HasUpdateFenceAfterStages() bool { + return r_.RespondsToSelector(objc.Sel("updateFence:afterStages:")) } -// Assigns an acceleration structure to an entry in the fragment shader argument table. [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/3750553-setfragmentaccelerationstructure?language=objc -func (r_ RenderCommandEncoderWrapper) SetFragmentAccelerationStructureAtBufferIndex(accelerationStructure PAccelerationStructure, 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/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_ RenderCommandEncoderWrapper) HasSetDepthBiasSlopeScaleClamp() bool { - return r_.RespondsToSelector(objc.Sel("setDepthBias:slopeScale:clamp:")) +func (r_ RenderCommandEncoderObject) HasDrawPatchesPatchIndexBufferPatchIndexBufferOffsetIndirectBufferIndirectBufferOffset() bool { + return r_.RespondsToSelector(objc.Sel("drawPatches:patchIndexBuffer:patchIndexBufferOffset:indirectBuffer:indirectBufferOffset:")) } -// Configures the adjustments a render pass applies to depth values from fragment functions by a scaling factor and bias. [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/1516269-setdepthbias?language=objc -func (r_ RenderCommandEncoderWrapper) SetDepthBiasSlopeScaleClamp(depthBias float64, slopeScale float64, clamp float64) { - objc.Call[objc.Void](r_, objc.Sel("setDepthBias:slopeScale:clamp:"), depthBias, slopeScale, clamp) +// [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_ RenderCommandEncoderWrapper) HasSampleCountersInBufferAtSampleIndexWithBarrier() bool { - return r_.RespondsToSelector(objc.Sel("sampleCountersInBuffer:atSampleIndex:withBarrier:")) +func (r_ RenderCommandEncoderObject) HasSetTileBuffersOffsetsWithRange() bool { + return r_.RespondsToSelector(objc.Sel("setTileBuffers:offsets:withRange:")) } -// Encodes a command that samples hardware counters during the render pass and stores the data into a counter sample buffer. [Full Topic] +// Assigns multiple buffers to a range of entries in the tile shader argument table. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metal/mtlrendercommandencoder/3194379-samplecountersinbuffer?language=objc -func (r_ RenderCommandEncoderWrapper) SampleCountersInBufferAtSampleIndexWithBarrier(sampleBuffer PCounterSampleBuffer, sampleIndex uint, barrier bool) { - po0 := objc.WrapAsProtocol("MTLCounterSampleBuffer", sampleBuffer) - objc.Call[objc.Void](r_, objc.Sel("sampleCountersInBuffer:atSampleIndex:withBarrier:"), po0, sampleIndex, barrier) +// [Full Topic]: https://developer.apple.com/documentation/metal/mtlrendercommandencoder/2866162-settilebuffers?language=objc +func (r_ RenderCommandEncoderObject) SetTileBuffersOffsetsWithRange(buffers BufferObject, offsets *uint, range_ foundation.Range) { + po0 := objc.WrapAsProtocol("MTLBuffer", buffers) + objc.Call[objc.Void](r_, objc.Sel("setTileBuffers:offsets:withRange:"), po0, offsets, range_) } -func (r_ RenderCommandEncoderWrapper) HasSetTileIntersectionFunctionTableAtBufferIndex() bool { - return r_.RespondsToSelector(objc.Sel("setTileIntersectionFunctionTable:atBufferIndex:")) +func (r_ RenderCommandEncoderObject) HasMemoryBarrierWithScopeAfterStagesBeforeStages() bool { + return r_.RespondsToSelector(objc.Sel("memoryBarrierWithScope:afterStages:beforeStages:")) } -// Assigns an intersection function table to an entry in the tile shader argument table. [Full Topic] +// Creates a memory barrier that enforces the order of write and read operations for specific resource types. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metal/mtlrendercommandencoder/3750559-settileintersectionfunctiontable?language=objc -func (r_ RenderCommandEncoderWrapper) SetTileIntersectionFunctionTableAtBufferIndex(intersectionFunctionTable PIntersectionFunctionTable, 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/2967442-memorybarrierwithscope?language=objc +func (r_ RenderCommandEncoderObject) MemoryBarrierWithScopeAfterStagesBeforeStages(scope BarrierScope, after RenderStages, before RenderStages) { + objc.Call[objc.Void](r_, objc.Sel("memoryBarrierWithScope:afterStages:beforeStages:"), scope, after, before) } -func (r_ RenderCommandEncoderWrapper) HasSetRenderPipelineState() bool { - return r_.RespondsToSelector(objc.Sel("setRenderPipelineState:")) +func (r_ RenderCommandEncoderObject) HasSetTileAccelerationStructureAtBufferIndex() bool { + return r_.RespondsToSelector(objc.Sel("setTileAccelerationStructure:atBufferIndex:")) } -// Configures the encoder with a render or tile pipeline state instance that applies to your subsequent draw commands. [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/1515811-setrenderpipelinestate?language=objc -func (r_ RenderCommandEncoderWrapper) SetRenderPipelineState(pipelineState PRenderPipelineState) { - po0 := objc.WrapAsProtocol("MTLRenderPipelineState", pipelineState) - objc.Call[objc.Void](r_, objc.Sel("setRenderPipelineState:"), po0) +// [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_ RenderCommandEncoderWrapper) HasSetTileBytesLengthAtIndex() bool { - return r_.RespondsToSelector(objc.Sel("setTileBytes:length:atIndex:")) +func (r_ RenderCommandEncoderObject) HasSetFrontFacingWinding() bool { + return r_.RespondsToSelector(objc.Sel("setFrontFacingWinding:")) } -// Creates a buffer from bytes and assigns it to an entry in the tile shader argument table. [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/2866175-settilebytes?language=objc -func (r_ RenderCommandEncoderWrapper) 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/1515499-setfrontfacingwinding?language=objc +func (r_ RenderCommandEncoderObject) SetFrontFacingWinding(frontFacingWinding Winding) { + objc.Call[objc.Void](r_, objc.Sel("setFrontFacingWinding:"), frontFacingWinding) } -func (r_ RenderCommandEncoderWrapper) HasExecuteCommandsInBufferWithRange() bool { - return r_.RespondsToSelector(objc.Sel("executeCommandsInBuffer:withRange:")) +func (r_ RenderCommandEncoderObject) HasUseHeapStages() bool { + return r_.RespondsToSelector(objc.Sel("useHeap:stages:")) } -// Encodes a command that runs a range of commands from an indirect command buffer (ICB). [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/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) HasSetFragmentAccelerationStructureAtBufferIndex() bool { + return r_.RespondsToSelector(objc.Sel("setFragmentAccelerationStructure:atBufferIndex:")) +} + +// Assigns an acceleration structure to an entry in the fragment shader argument table. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metal/mtlrendercommandencoder/2967440-executecommandsinbuffer?language=objc -func (r_ RenderCommandEncoderWrapper) ExecuteCommandsInBufferWithRange(indirectCommandBuffer PIndirectCommandBuffer, 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/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_ RenderCommandEncoderWrapper) HasSetFragmentBytesLengthAtIndex() bool { - return r_.RespondsToSelector(objc.Sel("setFragmentBytes:length:atIndex:")) +func (r_ RenderCommandEncoderObject) HasSetTileIntersectionFunctionTablesWithBufferRange() bool { + return r_.RespondsToSelector(objc.Sel("setTileIntersectionFunctionTables:withBufferRange:")) } -// Creates a buffer from bytes and assigns it to an entry in the fragment shader argument table. [Full Topic] +// Assigns multiple intersection function tables to a range of entries in the tile shader argument table. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metal/mtlrendercommandencoder/1516192-setfragmentbytes?language=objc -func (r_ RenderCommandEncoderWrapper) 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/3750560-settileintersectionfunctiontable?language=objc +func (r_ RenderCommandEncoderObject) SetTileIntersectionFunctionTablesWithBufferRange(intersectionFunctionTables IntersectionFunctionTableObject, range_ foundation.Range) { + po0 := objc.WrapAsProtocol("MTLIntersectionFunctionTable", intersectionFunctionTables) + objc.Call[objc.Void](r_, objc.Sel("setTileIntersectionFunctionTables:withBufferRange:"), po0, range_) } -func (r_ RenderCommandEncoderWrapper) HasSetTileBuffersOffsetsWithRange() bool { - return r_.RespondsToSelector(objc.Sel("setTileBuffers:offsets:withRange:")) +func (r_ RenderCommandEncoderObject) HasDrawPrimitivesVertexStartVertexCountInstanceCount() bool { + return r_.RespondsToSelector(objc.Sel("drawPrimitives:vertexStart:vertexCount:instanceCount:")) } -// Assigns multiple buffers to a range of entries in the tile shader argument table. [Full Topic] +// Encodes a draw command that renders multiple instances of a geometric primitive. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metal/mtlrendercommandencoder/2866162-settilebuffers?language=objc -func (r_ RenderCommandEncoderWrapper) SetTileBuffersOffsetsWithRange(buffers PBuffer, offsets *uint, range_ foundation.Range) { - po0 := objc.WrapAsProtocol("MTLBuffer", buffers) - objc.Call[objc.Void](r_, objc.Sel("setTileBuffers:offsets:withRange:"), po0, offsets, range_) +// [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) } -func (r_ RenderCommandEncoderWrapper) HasMemoryBarrierWithScopeAfterStagesBeforeStages() bool { - return r_.RespondsToSelector(objc.Sel("memoryBarrierWithScope:afterStages:beforeStages:")) +func (r_ RenderCommandEncoderObject) HasSetTileSamplerStateAtIndex() bool { + return r_.RespondsToSelector(objc.Sel("setTileSamplerState:atIndex:")) } -// Creates a memory barrier that enforces the order of write and read operations for specific resource types. [Full Topic] +// Assigns a sampler state to an entry in the tile shader argument table. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metal/mtlrendercommandencoder/2967442-memorybarrierwithscope?language=objc -func (r_ RenderCommandEncoderWrapper) MemoryBarrierWithScopeAfterStagesBeforeStages(scope BarrierScope, after RenderStages, before RenderStages) { - objc.Call[objc.Void](r_, objc.Sel("memoryBarrierWithScope:afterStages:beforeStages:"), scope, after, before) +// [Full Topic]: https://developer.apple.com/documentation/metal/mtlrendercommandencoder/2866169-settilesamplerstate?language=objc +func (r_ RenderCommandEncoderObject) SetTileSamplerStateAtIndex(sampler SamplerStateObject, index uint) { + po0 := objc.WrapAsProtocol("MTLSamplerState", sampler) + objc.Call[objc.Void](r_, objc.Sel("setTileSamplerState:atIndex:"), po0, index) } -func (r_ RenderCommandEncoderWrapper) HasSetFragmentIntersectionFunctionTableAtBufferIndex() bool { - return r_.RespondsToSelector(objc.Sel("setFragmentIntersectionFunctionTable:atBufferIndex:")) +func (r_ RenderCommandEncoderObject) HasSetDepthBiasSlopeScaleClamp() bool { + return r_.RespondsToSelector(objc.Sel("setDepthBias:slopeScale:clamp:")) } -// Assigns an intersection function table to an entry in the fragment shader argument table. [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/3750554-setfragmentintersectionfunctiont?language=objc -func (r_ RenderCommandEncoderWrapper) SetFragmentIntersectionFunctionTableAtBufferIndex(intersectionFunctionTable PIntersectionFunctionTable, 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/1516269-setdepthbias?language=objc +func (r_ RenderCommandEncoderObject) SetDepthBiasSlopeScaleClamp(depthBias float64, slopeScale float64, clamp float64) { + objc.Call[objc.Void](r_, objc.Sel("setDepthBias:slopeScale:clamp:"), depthBias, slopeScale, clamp) } -func (r_ RenderCommandEncoderWrapper) HasDispatchThreadsPerTile() bool { - return r_.RespondsToSelector(objc.Sel("dispatchThreadsPerTile:")) +func (r_ RenderCommandEncoderObject) HasSampleCountersInBufferAtSampleIndexWithBarrier() bool { + return r_.RespondsToSelector(objc.Sel("sampleCountersInBuffer:atSampleIndex:withBarrier:")) } -// Encodes a command that invokes GPU functions from the encoder’s current tile render pipeline state. [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/2866171-dispatchthreadspertile?language=objc -func (r_ RenderCommandEncoderWrapper) DispatchThreadsPerTile(threadsPerTile Size) { - objc.Call[objc.Void](r_, objc.Sel("dispatchThreadsPerTile:"), threadsPerTile) +// [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_ RenderCommandEncoderWrapper) HasSetFragmentVisibleFunctionTablesWithBufferRange() bool { - return r_.RespondsToSelector(objc.Sel("setFragmentVisibleFunctionTables:withBufferRange:")) +func (r_ RenderCommandEncoderObject) HasSetColorStoreActionAtIndex() bool { + return r_.RespondsToSelector(objc.Sel("setColorStoreAction:atIndex:")) } -// Assigns multiple visible function tables to a range of entries in the fragment shader argument table. [Full Topic] +// Configures the store action for a color attachment. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metal/mtlrendercommandencoder/3750557-setfragmentvisiblefunctiontables?language=objc -func (r_ RenderCommandEncoderWrapper) SetFragmentVisibleFunctionTablesWithBufferRange(functionTables PVisibleFunctionTable, 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/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_ RenderCommandEncoderWrapper) HasSetVertexTexturesWithRange() bool { - return r_.RespondsToSelector(objc.Sel("setVertexTextures:withRange:")) +func (r_ RenderCommandEncoderObject) HasSetTileSamplerStateLodMinClampLodMaxClampAtIndex() bool { + return r_.RespondsToSelector(objc.Sel("setTileSamplerState:lodMinClamp:lodMaxClamp:atIndex:")) } -// Assigns multiple textures to a range of entries in the vertex shader argument table. [Full Topic] +// 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/1516109-setvertextextures?language=objc -func (r_ RenderCommandEncoderWrapper) SetVertexTexturesWithRange(textures PTexture, range_ foundation.Range) { - po0 := objc.WrapAsProtocol("MTLTexture", textures) - objc.Call[objc.Void](r_, objc.Sel("setVertexTextures:withRange:"), po0, range_) +// [Full Topic]: https://developer.apple.com/documentation/metal/mtlrendercommandencoder/2866160-settilesamplerstate?language=objc +func (r_ RenderCommandEncoderObject) SetTileSamplerStateLodMinClampLodMaxClampAtIndex(sampler SamplerStateObject, lodMinClamp float64, lodMaxClamp float64, index uint) { + po0 := objc.WrapAsProtocol("MTLSamplerState", sampler) + objc.Call[objc.Void](r_, objc.Sel("setTileSamplerState:lodMinClamp:lodMaxClamp:atIndex:"), po0, lodMinClamp, lodMaxClamp, index) } -func (r_ RenderCommandEncoderWrapper) HasSetFragmentSamplerStateAtIndex() bool { - return r_.RespondsToSelector(objc.Sel("setFragmentSamplerState:atIndex:")) +func (r_ RenderCommandEncoderObject) HasSetScissorRectsCount() bool { + return r_.RespondsToSelector(objc.Sel("setScissorRects:count:")) } -// Assigns a sampler state to an entry in the fragment shader argument table. [Full Topic] +// Configures multiple rectangles for the fragment scissor test. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metal/mtlrendercommandencoder/1515577-setfragmentsamplerstate?language=objc -func (r_ RenderCommandEncoderWrapper) SetFragmentSamplerStateAtIndex(sampler PSamplerState, index uint) { - po0 := objc.WrapAsProtocol("MTLSamplerState", sampler) - objc.Call[objc.Void](r_, objc.Sel("setFragmentSamplerState:atIndex:"), po0, index) +// [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_ RenderCommandEncoderWrapper) HasSetTileSamplerStateAtIndex() bool { - return r_.RespondsToSelector(objc.Sel("setTileSamplerState:atIndex:")) +func (r_ RenderCommandEncoderObject) HasWaitForFenceBeforeStages() bool { + return r_.RespondsToSelector(objc.Sel("waitForFence:beforeStages:")) } -// Assigns a sampler state to an entry in the tile shader argument table. [Full Topic] +// 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/2866169-settilesamplerstate?language=objc -func (r_ RenderCommandEncoderWrapper) SetTileSamplerStateAtIndex(sampler PSamplerState, index uint) { - po0 := objc.WrapAsProtocol("MTLSamplerState", sampler) - objc.Call[objc.Void](r_, objc.Sel("setTileSamplerState:atIndex:"), po0, index) +// [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_ RenderCommandEncoderWrapper) HasSetColorStoreActionOptionsAtIndex() bool { - return r_.RespondsToSelector(objc.Sel("setColorStoreActionOptions:atIndex:")) +func (r_ RenderCommandEncoderObject) HasUseHeapsCountStages() bool { + return r_.RespondsToSelector(objc.Sel("useHeaps:count:stages:")) } -// Configures the store action options for a color attachment. [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/2919773-setcolorstoreactionoptions?language=objc -func (r_ RenderCommandEncoderWrapper) 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/3043403-useheaps?language=objc +func (r_ RenderCommandEncoderObject) UseHeapsCountStages(heaps HeapObject, count uint, stages RenderStages) { + po0 := objc.WrapAsProtocol("MTLHeap", heaps) + objc.Call[objc.Void](r_, objc.Sel("useHeaps:count:stages:"), po0, count, stages) } -func (r_ RenderCommandEncoderWrapper) HasSetVertexTextureAtIndex() bool { - return r_.RespondsToSelector(objc.Sel("setVertexTexture:atIndex:")) +func (r_ RenderCommandEncoderObject) HasSetVertexBuffersOffsetsWithRange() bool { + return r_.RespondsToSelector(objc.Sel("setVertexBuffers:offsets:withRange:")) } -// Assigns a texture to an entry in the vertex shader argument table. [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/1515842-setvertextexture?language=objc -func (r_ RenderCommandEncoderWrapper) SetVertexTextureAtIndex(texture PTexture, index uint) { - po0 := objc.WrapAsProtocol("MTLTexture", texture) - objc.Call[objc.Void](r_, objc.Sel("setVertexTexture:atIndex:"), po0, index) +// [Full Topic]: https://developer.apple.com/documentation/metal/mtlrendercommandencoder/1515987-setvertexbuffers?language=objc +func (r_ RenderCommandEncoderObject) SetVertexBuffersOffsetsWithRange(buffers BufferObject, 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_ RenderCommandEncoderWrapper) HasSetTessellationFactorScale() bool { - return r_.RespondsToSelector(objc.Sel("setTessellationFactorScale:")) +func (r_ RenderCommandEncoderObject) HasSetFragmentTextureAtIndex() bool { + return r_.RespondsToSelector(objc.Sel("setFragmentTexture:atIndex:")) } -// Configures the scale factor for per-patch tessellation factors. [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/1639992-settessellationfactorscale?language=objc -func (r_ RenderCommandEncoderWrapper) SetTessellationFactorScale(scale float64) { - objc.Call[objc.Void](r_, objc.Sel("setTessellationFactorScale:"), scale) +// [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) } -func (r_ RenderCommandEncoderWrapper) HasUseHeapStages() bool { - return r_.RespondsToSelector(objc.Sel("useHeap:stages:")) +func (r_ RenderCommandEncoderObject) HasSetVertexAmplificationCountViewMappings() bool { + return r_.RespondsToSelector(objc.Sel("setVertexAmplificationCount:viewMappings:")) } -// Ensures the shaders in the render pass’s subsequent draw commands have access to the resources you allocate from a heap. [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/3043402-useheap?language=objc -func (r_ RenderCommandEncoderWrapper) UseHeapStages(heap PHeap, 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/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_ RenderCommandEncoderWrapper) HasSetColorStoreActionAtIndex() bool { - return r_.RespondsToSelector(objc.Sel("setColorStoreAction:atIndex:")) +func (r_ RenderCommandEncoderObject) HasSetDepthStoreActionOptions() bool { + return r_.RespondsToSelector(objc.Sel("setDepthStoreActionOptions:")) } -// Configures the store action for a color attachment. [Full Topic] +// Configures the store action options for the depth attachment. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metal/mtlrendercommandencoder/1640054-setcolorstoreaction?language=objc -func (r_ RenderCommandEncoderWrapper) SetColorStoreActionAtIndex(storeAction StoreAction, colorAttachmentIndex uint) { - objc.Call[objc.Void](r_, objc.Sel("setColorStoreAction:atIndex:"), storeAction, colorAttachmentIndex) +// [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_ RenderCommandEncoderWrapper) HasSetStencilStoreActionOptions() bool { - return r_.RespondsToSelector(objc.Sel("setStencilStoreActionOptions:")) +func (r_ RenderCommandEncoderObject) HasDrawIndexedPatchesPatchStartPatchCountPatchIndexBufferPatchIndexBufferOffsetControlPointIndexBufferControlPointIndexBufferOffsetInstanceCountBaseInstance() bool { + return r_.RespondsToSelector(objc.Sel("drawIndexedPatches:patchStart:patchCount:patchIndexBuffer:patchIndexBufferOffset:controlPointIndexBuffer:controlPointIndexBufferOffset:instanceCount:baseInstance:")) } -// Configures the store action options for the stencil attachment. [Full Topic] +// Encodes a draw command that renders multiple instances of tessellated patches with a control point index buffer. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metal/mtlrendercommandencoder/2919771-setstencilstoreactionoptions?language=objc -func (r_ RenderCommandEncoderWrapper) SetStencilStoreActionOptions(storeActionOptions StoreActionOptions) { - objc.Call[objc.Void](r_, objc.Sel("setStencilStoreActionOptions:"), storeActionOptions) +// [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) } -func (r_ RenderCommandEncoderWrapper) HasUseResourcesCountUsageStages() bool { - return r_.RespondsToSelector(objc.Sel("useResources:count:usage:stages:")) +func (r_ RenderCommandEncoderObject) HasSetVisibilityResultModeOffset() bool { + return r_.RespondsToSelector(objc.Sel("setVisibilityResultMode:offset:")) } -// Ensures the shaders in the render pass’s subsequent draw commands have access to multiple resources. [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/3043405-useresources?language=objc -func (r_ RenderCommandEncoderWrapper) UseResourcesCountUsageStages(resources PResource, 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/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_ RenderCommandEncoderWrapper) HasSetDepthClipMode() bool { - return r_.RespondsToSelector(objc.Sel("setDepthClipMode:")) +func (r_ RenderCommandEncoderObject) HasDrawIndexedPrimitivesIndexCountIndexTypeIndexBufferIndexBufferOffsetInstanceCountBaseVertexBaseInstance() bool { + return r_.RespondsToSelector(objc.Sel("drawIndexedPrimitives:indexCount:indexType:indexBuffer:indexBufferOffset:instanceCount:baseVertex:baseInstance:")) } -// Configures how the render pipeline handles fragments outside the near and far planes of the view frustum. [Full Topic] +// Encodes a draw command that renders multiple instances of a geometric primitive with indexed vertices, starting with a custom vertex and instance. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metal/mtlrendercommandencoder/1516267-setdepthclipmode?language=objc -func (r_ RenderCommandEncoderWrapper) SetDepthClipMode(depthClipMode DepthClipMode) { - objc.Call[objc.Void](r_, objc.Sel("setDepthClipMode:"), depthClipMode) +// [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) } -func (r_ RenderCommandEncoderWrapper) HasSetVertexBufferOffsetAtIndex() bool { - return r_.RespondsToSelector(objc.Sel("setVertexBufferOffset:atIndex:")) +func (r_ RenderCommandEncoderObject) HasSetCullMode() bool { + return r_.RespondsToSelector(objc.Sel("setCullMode:")) } -// Updates an entry in the vertex 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/1515433-setvertexbufferoffset?language=objc -func (r_ RenderCommandEncoderWrapper) 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/1515975-setcullmode?language=objc +func (r_ RenderCommandEncoderObject) SetCullMode(cullMode CullMode) { + objc.Call[objc.Void](r_, objc.Sel("setCullMode:"), cullMode) } -func (r_ RenderCommandEncoderWrapper) HasUseHeapsCountStages() bool { - return r_.RespondsToSelector(objc.Sel("useHeaps:count:stages:")) +func (r_ RenderCommandEncoderObject) HasSetViewport() bool { + return r_.RespondsToSelector(objc.Sel("setViewport:")) } -// 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 render pipeline with a viewport that applies a transformation and a clipping rectangle. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metal/mtlrendercommandencoder/3043403-useheaps?language=objc -func (r_ RenderCommandEncoderWrapper) UseHeapsCountStages(heaps PHeap, 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/1515527-setviewport?language=objc +func (r_ RenderCommandEncoderObject) SetViewport(viewport Viewport) { + objc.Call[objc.Void](r_, objc.Sel("setViewport:"), viewport) } -func (r_ RenderCommandEncoderWrapper) HasSetTileVisibleFunctionTablesWithBufferRange() bool { - return r_.RespondsToSelector(objc.Sel("setTileVisibleFunctionTables:withBufferRange:")) +func (r_ RenderCommandEncoderObject) HasSetScissorRect() bool { + return r_.RespondsToSelector(objc.Sel("setScissorRect:")) } -// Assigns multiple visible function tables to a range of entries in the tile shader argument table. [Full Topic] +// Configures a rectangle for the fragment scissor test. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metal/mtlrendercommandencoder/3750562-settilevisiblefunctiontables?language=objc -func (r_ RenderCommandEncoderWrapper) SetTileVisibleFunctionTablesWithBufferRange(functionTables PVisibleFunctionTable, 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/1515583-setscissorrect?language=objc +func (r_ RenderCommandEncoderObject) SetScissorRect(rect ScissorRect) { + objc.Call[objc.Void](r_, objc.Sel("setScissorRect:"), rect) } -func (r_ RenderCommandEncoderWrapper) HasSetBlendColorRedGreenBlueAlpha() bool { - return r_.RespondsToSelector(objc.Sel("setBlendColorRed:green:blue:alpha:")) +func (r_ RenderCommandEncoderObject) HasExecuteCommandsInBufferIndirectBufferIndirectBufferOffset() bool { + return r_.RespondsToSelector(objc.Sel("executeCommandsInBuffer:indirectBuffer:indirectBufferOffset:")) } -// Configures each pixel component value, including alpha, for the render pipeline’s constant blend color. [Full Topic] +// Encodes a command that runs an indirect range of commands from an indirect command buffer (ICB). [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metal/mtlrendercommandencoder/1515592-setblendcolorred?language=objc -func (r_ RenderCommandEncoderWrapper) SetBlendColorRedGreenBlueAlpha(red float64, green float64, blue float64, alpha float64) { - objc.Call[objc.Void](r_, objc.Sel("setBlendColorRed:green:blue:alpha:"), red, green, blue, alpha) +// [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) } -func (r_ RenderCommandEncoderWrapper) HasSetVertexVisibleFunctionTableAtBufferIndex() bool { +func (r_ RenderCommandEncoderObject) HasSetVertexVisibleFunctionTableAtBufferIndex() bool { return r_.RespondsToSelector(objc.Sel("setVertexVisibleFunctionTable:atBufferIndex:")) } // Assigns a visible function table to an entry in the vertex shader argument table. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/metal/mtlrendercommandencoder/3750566-setvertexvisiblefunctiontable?language=objc -func (r_ RenderCommandEncoderWrapper) SetVertexVisibleFunctionTableAtBufferIndex(functionTable PVisibleFunctionTable, bufferIndex uint) { +func (r_ RenderCommandEncoderObject) SetVertexVisibleFunctionTableAtBufferIndex(functionTable VisibleFunctionTableObject, bufferIndex uint) { po0 := objc.WrapAsProtocol("MTLVisibleFunctionTable", functionTable) objc.Call[objc.Void](r_, objc.Sel("setVertexVisibleFunctionTable:atBufferIndex:"), po0, bufferIndex) } -func (r_ RenderCommandEncoderWrapper) HasUpdateFenceAfterStages() bool { - return r_.RespondsToSelector(objc.Sel("updateFence:afterStages:")) -} - -// 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/1648377-updatefence?language=objc -func (r_ RenderCommandEncoderWrapper) UpdateFenceAfterStages(fence PFence, stages RenderStages) { - po0 := objc.WrapAsProtocol("MTLFence", fence) - objc.Call[objc.Void](r_, objc.Sel("updateFence:afterStages:"), po0, stages) -} - -func (r_ RenderCommandEncoderWrapper) HasSetScissorRectsCount() bool { - return r_.RespondsToSelector(objc.Sel("setScissorRects:count:")) +func (r_ RenderCommandEncoderObject) HasSetFragmentBufferOffsetAtIndex() bool { + return r_.RespondsToSelector(objc.Sel("setFragmentBufferOffset:atIndex:")) } -// Configures multiple rectangles for the fragment scissor test. [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/2869722-setscissorrects?language=objc -func (r_ RenderCommandEncoderWrapper) SetScissorRectsCount(scissorRects *ScissorRect, count uint) { - objc.Call[objc.Void](r_, objc.Sel("setScissorRects:count:"), scissorRects, count) +// [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_ RenderCommandEncoderWrapper) HasSetDepthStoreActionOptions() bool { - return r_.RespondsToSelector(objc.Sel("setDepthStoreActionOptions:")) +func (r_ RenderCommandEncoderObject) HasSetVertexVisibleFunctionTablesWithBufferRange() bool { + return r_.RespondsToSelector(objc.Sel("setVertexVisibleFunctionTables:withBufferRange:")) } -// Configures the store action options for the depth attachment. [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/2919772-setdepthstoreactionoptions?language=objc -func (r_ RenderCommandEncoderWrapper) SetDepthStoreActionOptions(storeActionOptions StoreActionOptions) { - objc.Call[objc.Void](r_, objc.Sel("setDepthStoreActionOptions:"), storeActionOptions) +// [Full Topic]: https://developer.apple.com/documentation/metal/mtlrendercommandencoder/3750567-setvertexvisiblefunctiontables?language=objc +func (r_ RenderCommandEncoderObject) SetVertexVisibleFunctionTablesWithBufferRange(functionTables VisibleFunctionTableObject, range_ foundation.Range) { + po0 := objc.WrapAsProtocol("MTLVisibleFunctionTable", functionTables) + objc.Call[objc.Void](r_, objc.Sel("setVertexVisibleFunctionTables:withBufferRange:"), po0, range_) } -func (r_ RenderCommandEncoderWrapper) HasSetTileAccelerationStructureAtBufferIndex() bool { - return r_.RespondsToSelector(objc.Sel("setTileAccelerationStructure:atBufferIndex:")) +func (r_ RenderCommandEncoderObject) HasSetDepthClipMode() bool { + return r_.RespondsToSelector(objc.Sel("setDepthClipMode:")) } -// Assigns an acceleration structure to an entry in the tile shader argument table. [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/3750558-settileaccelerationstructure?language=objc -func (r_ RenderCommandEncoderWrapper) SetTileAccelerationStructureAtBufferIndex(accelerationStructure PAccelerationStructure, bufferIndex uint) { - po0 := objc.WrapAsProtocol("MTLAccelerationStructure", accelerationStructure) - objc.Call[objc.Void](r_, objc.Sel("setTileAccelerationStructure:atBufferIndex:"), po0, bufferIndex) +// [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_ RenderCommandEncoderWrapper) HasSetFragmentBuffersOffsetsWithRange() bool { - return r_.RespondsToSelector(objc.Sel("setFragmentBuffers:offsets:withRange:")) +func (r_ RenderCommandEncoderObject) HasSetTileVisibleFunctionTablesWithBufferRange() bool { + return r_.RespondsToSelector(objc.Sel("setTileVisibleFunctionTables:withBufferRange:")) } -// Assigns multiple buffers to a range of entries in the fragment shader argument table. [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/1515724-setfragmentbuffers?language=objc -func (r_ RenderCommandEncoderWrapper) SetFragmentBuffersOffsetsWithRange(buffers PBuffer, 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/3750562-settilevisiblefunctiontables?language=objc +func (r_ RenderCommandEncoderObject) SetTileVisibleFunctionTablesWithBufferRange(functionTables VisibleFunctionTableObject, range_ foundation.Range) { + po0 := objc.WrapAsProtocol("MTLVisibleFunctionTable", functionTables) + objc.Call[objc.Void](r_, objc.Sel("setTileVisibleFunctionTables:withBufferRange:"), po0, range_) } -func (r_ RenderCommandEncoderWrapper) HasSetVertexSamplerStatesLodMinClampsLodMaxClampsWithRange() bool { - return r_.RespondsToSelector(objc.Sel("setVertexSamplerStates: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 vertex 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/1516322-setvertexsamplerstates?language=objc -func (r_ RenderCommandEncoderWrapper) SetVertexSamplerStatesLodMinClampsLodMaxClampsWithRange(samplers PSamplerState, lodMinClamps *float64, lodMaxClamps *float64, range_ foundation.Range) { +// [Full Topic]: https://developer.apple.com/documentation/metal/mtlrendercommandencoder/2866170-settilesamplerstates?language=objc +func (r_ RenderCommandEncoderObject) SetTileSamplerStatesLodMinClampsLodMaxClampsWithRange(samplers SamplerStateObject, lodMinClamps *float64, lodMaxClamps *float64, range_ foundation.Range) { po0 := objc.WrapAsProtocol("MTLSamplerState", samplers) - objc.Call[objc.Void](r_, objc.Sel("setVertexSamplerStates:lodMinClamps:lodMaxClamps:withRange:"), po0, lodMinClamps, lodMaxClamps, range_) + objc.Call[objc.Void](r_, objc.Sel("setTileSamplerStates:lodMinClamps:lodMaxClamps:withRange:"), po0, lodMinClamps, lodMaxClamps, range_) } -func (r_ RenderCommandEncoderWrapper) HasSetFrontFacingWinding() bool { - return r_.RespondsToSelector(objc.Sel("setFrontFacingWinding:")) +func (r_ RenderCommandEncoderObject) HasMemoryBarrierWithResourcesCountAfterStagesBeforeStages() bool { + return r_.RespondsToSelector(objc.Sel("memoryBarrierWithResources:count:afterStages:beforeStages:")) } -// Configures which face of a primitive, such as a triangle, is the front. [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/1515499-setfrontfacingwinding?language=objc -func (r_ RenderCommandEncoderWrapper) SetFrontFacingWinding(frontFacingWinding Winding) { - objc.Call[objc.Void](r_, objc.Sel("setFrontFacingWinding:"), frontFacingWinding) +// [Full Topic]: https://developer.apple.com/documentation/metal/mtlrendercommandencoder/2967441-memorybarrierwithresources?language=objc +func (r_ RenderCommandEncoderObject) MemoryBarrierWithResourcesCountAfterStagesBeforeStages(resources ResourceObject, 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_ RenderCommandEncoderWrapper) HasDrawIndexedPrimitivesIndexCountIndexTypeIndexBufferIndexBufferOffsetInstanceCount() bool { - return r_.RespondsToSelector(objc.Sel("drawIndexedPrimitives:indexCount:indexType:indexBuffer:indexBufferOffset:instanceCount:")) +func (r_ RenderCommandEncoderObject) HasSetVertexBufferOffsetAtIndex() bool { + return r_.RespondsToSelector(objc.Sel("setVertexBufferOffset:atIndex:")) } -// Encodes a draw command that renders multiple instances of a geometric primitive with indexed vertices. [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/1515699-drawindexedprimitives?language=objc -func (r_ RenderCommandEncoderWrapper) DrawIndexedPrimitivesIndexCountIndexTypeIndexBufferIndexBufferOffsetInstanceCount(primitiveType PrimitiveType, indexCount uint, indexType IndexType, indexBuffer PBuffer, 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/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_ RenderCommandEncoderWrapper) HasSetStencilReferenceValue() bool { - return r_.RespondsToSelector(objc.Sel("setStencilReferenceValue:")) +func (r_ RenderCommandEncoderObject) HasDrawIndexedPrimitivesIndexCountIndexTypeIndexBufferIndexBufferOffset() bool { + return r_.RespondsToSelector(objc.Sel("drawIndexedPrimitives:indexCount:indexType:indexBuffer:indexBufferOffset:")) } -// Configures the same comparison value for front- and back-facing primitives. [Full Topic] +// Encodes a draw command that renders an instance of a geometric primitive with indexed vertices. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metal/mtlrendercommandencoder/1515697-setstencilreferencevalue?language=objc -func (r_ RenderCommandEncoderWrapper) SetStencilReferenceValue(referenceValue uint32) { - objc.Call[objc.Void](r_, objc.Sel("setStencilReferenceValue:"), referenceValue) +// [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) { + po3 := objc.WrapAsProtocol("MTLBuffer", indexBuffer) + objc.Call[objc.Void](r_, objc.Sel("drawIndexedPrimitives:indexCount:indexType:indexBuffer:indexBufferOffset:"), primitiveType, indexCount, indexType, po3, indexBufferOffset) } -func (r_ RenderCommandEncoderWrapper) HasWaitForFenceBeforeStages() bool { - return r_.RespondsToSelector(objc.Sel("waitForFence:beforeStages:")) +func (r_ RenderCommandEncoderObject) HasSetVertexBytesLengthAtIndex() bool { + return r_.RespondsToSelector(objc.Sel("setVertexBytes:length:atIndex:")) } -// 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] +// 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/1648378-waitforfence?language=objc -func (r_ RenderCommandEncoderWrapper) WaitForFenceBeforeStages(fence PFence, stages RenderStages) { - po0 := objc.WrapAsProtocol("MTLFence", fence) - objc.Call[objc.Void](r_, objc.Sel("waitForFence:beforeStages:"), po0, stages) +// [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_ RenderCommandEncoderWrapper) HasTileWidth() bool { +func (r_ RenderCommandEncoderObject) HasTileWidth() bool { return r_.RespondsToSelector(objc.Sel("tileWidth")) } // The width of the tiles, in pixels, for the render command encoder. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/metal/mtlrendercommandencoder/2866174-tilewidth?language=objc -func (r_ RenderCommandEncoderWrapper) TileWidth() uint { +func (r_ RenderCommandEncoderObject) TileWidth() uint { rv := objc.Call[uint](r_, objc.Sel("tileWidth")) return rv } -func (r_ RenderCommandEncoderWrapper) HasTileHeight() bool { +func (r_ RenderCommandEncoderObject) HasTileHeight() bool { return r_.RespondsToSelector(objc.Sel("tileHeight")) } // The height of the tiles, in pixels, for the render command encoder. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/metal/mtlrendercommandencoder/2866164-tileheight?language=objc -func (r_ RenderCommandEncoderWrapper) TileHeight() uint { +func (r_ RenderCommandEncoderObject) TileHeight() uint { rv := objc.Call[uint](r_, objc.Sel("tileHeight")) return rv } diff --git a/macos/metal/render_pass_attachment_descriptor.gen.go b/macos/metal/render_pass_attachment_descriptor.gen.go index 783b36e6..bcf72960 100644 --- a/macos/metal/render_pass_attachment_descriptor.gen.go +++ b/macos/metal/render_pass_attachment_descriptor.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package metal @@ -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) - Slice() uint - SetSlice(value uint) - ResolveSlice() uint - SetResolveSlice(value uint) - ResolveTexture() TextureWrapper + Texture() TextureObject + SetTexture(value PTexture) + SetTextureObject(valueObject objc.IObject) + ResolveTexture() TextureObject SetResolveTexture(value PTexture) SetResolveTextureObject(valueObject objc.IObject) - StoreActionOptions() StoreActionOptions - SetStoreActionOptions(value StoreActionOptions) + ResolveLevel() uint + SetResolveLevel(value uint) + Slice() uint + SetSlice(value uint) + Level() uint + SetLevel(value uint) DepthPlane() uint SetDepthPlane(value uint) - Texture() TextureWrapper - SetTexture(value PTexture) - SetTextureObject(valueObject objc.IObject) + ResolveSlice() uint + SetResolveSlice(value uint) } // A render target that serves as the output destination for pixels generated by a render pass. [Full Topic] @@ -62,10 +62,6 @@ func (rc _RenderPassAttachmentDescriptorClass) Alloc() RenderPassAttachmentDescr return rv } -func RenderPassAttachmentDescriptor_Alloc() RenderPassAttachmentDescriptor { - return RenderPassAttachmentDescriptorClass.Alloc() -} - func (rc _RenderPassAttachmentDescriptorClass) New() RenderPassAttachmentDescriptor { rv := objc.Call[RenderPassAttachmentDescriptor](rc, objc.Sel("new")) rv.Autorelease() @@ -81,6 +77,21 @@ 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 @@ -96,36 +107,6 @@ 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 @@ -156,41 +137,34 @@ func (r_ RenderPassAttachmentDescriptor) SetLoadAction(value LoadAction) { objc.Call[objc.Void](r_, objc.Sel("setLoadAction:"), value) } -// The slice of the texture used for rendering to the attachment. [Full Topic] +// The texture object associated with this 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")) +// [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 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 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")) - return rv +// [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 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) SetTextureObject(valueObject objc.IObject) { + objc.Call[objc.Void](r_, objc.Sel("setTexture:"), objc.Ptr(valueObject)) } // The destination texture used when resolving multisampled texture data into single sample values. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/metal/mtlrenderpassattachmentdescriptor/1437926-resolvetexture?language=objc -func (r_ RenderPassAttachmentDescriptor) ResolveTexture() TextureWrapper { - rv := objc.Call[TextureWrapper](r_, objc.Sel("resolveTexture")) +func (r_ RenderPassAttachmentDescriptor) ResolveTexture() TextureObject { + rv := objc.Call[TextureObject](r_, objc.Sel("resolveTexture")) return rv } @@ -209,19 +183,49 @@ func (r_ RenderPassAttachmentDescriptor) SetResolveTextureObject(valueObject obj objc.Call[objc.Void](r_, objc.Sel("setResolveTexture:"), objc.Ptr(valueObject)) } -// The options that modify the store action performed by this attachment. [Full Topic] +// The mipmap level of the texture used for the multisample resolve action. [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")) +// [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 options that modify the store action performed by this attachment. [Full Topic] +// The mipmap level of the texture used for the multisample resolve action. [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) +// [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] +// +// [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 depth plane of the texture used for rendering to the attachment. [Full Topic] @@ -239,25 +243,17 @@ func (r_ RenderPassAttachmentDescriptor) SetDepthPlane(value uint) { objc.Call[objc.Void](r_, objc.Sel("setDepthPlane:"), 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) Texture() TextureWrapper { - rv := objc.Call[TextureWrapper](r_, objc.Sel("texture")) +// [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 texture object associated with this 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) -} - -// 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:"), objc.Ptr(valueObject)) +// [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) } diff --git a/macos/metal/render_pass_color_attachment_descriptor.gen.go b/macos/metal/render_pass_color_attachment_descriptor.gen.go index 8bdf0d55..2900e7de 100644 --- a/macos/metal/render_pass_color_attachment_descriptor.gen.go +++ b/macos/metal/render_pass_color_attachment_descriptor.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package metal @@ -40,10 +40,6 @@ func (rc _RenderPassColorAttachmentDescriptorClass) Alloc() RenderPassColorAttac return rv } -func RenderPassColorAttachmentDescriptor_Alloc() RenderPassColorAttachmentDescriptor { - return RenderPassColorAttachmentDescriptorClass.Alloc() -} - func (rc _RenderPassColorAttachmentDescriptorClass) New() RenderPassColorAttachmentDescriptor { rv := objc.Call[RenderPassColorAttachmentDescriptor](rc, objc.Sel("new")) rv.Autorelease() diff --git a/macos/metal/render_pass_color_attachment_descriptor_array.gen.go b/macos/metal/render_pass_color_attachment_descriptor_array.gen.go index 2439e244..8ac77f3e 100644 --- a/macos/metal/render_pass_color_attachment_descriptor_array.gen.go +++ b/macos/metal/render_pass_color_attachment_descriptor_array.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package metal @@ -40,10 +40,6 @@ func (rc _RenderPassColorAttachmentDescriptorArrayClass) Alloc() RenderPassColor return rv } -func RenderPassColorAttachmentDescriptorArray_Alloc() RenderPassColorAttachmentDescriptorArray { - return RenderPassColorAttachmentDescriptorArrayClass.Alloc() -} - func (rc _RenderPassColorAttachmentDescriptorArrayClass) New() RenderPassColorAttachmentDescriptorArray { rv := objc.Call[RenderPassColorAttachmentDescriptorArray](rc, objc.Sel("new")) rv.Autorelease() diff --git a/macos/metal/render_pass_depth_attachment_descriptor.gen.go b/macos/metal/render_pass_depth_attachment_descriptor.gen.go index c6b07263..dc803847 100644 --- a/macos/metal/render_pass_depth_attachment_descriptor.gen.go +++ b/macos/metal/render_pass_depth_attachment_descriptor.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package metal @@ -18,10 +18,10 @@ type _RenderPassDepthAttachmentDescriptorClass struct { // An interface definition for the [RenderPassDepthAttachmentDescriptor] class. type IRenderPassDepthAttachmentDescriptor interface { IRenderPassAttachmentDescriptor - DepthResolveFilter() MultisampleDepthResolveFilter - SetDepthResolveFilter(value MultisampleDepthResolveFilter) ClearDepth() float64 SetClearDepth(value float64) + DepthResolveFilter() MultisampleDepthResolveFilter + SetDepthResolveFilter(value MultisampleDepthResolveFilter) } // A depth render target that serves as the output destination for depth pixels generated by a render pass. [Full Topic] @@ -42,10 +42,6 @@ func (rc _RenderPassDepthAttachmentDescriptorClass) Alloc() RenderPassDepthAttac return rv } -func RenderPassDepthAttachmentDescriptor_Alloc() RenderPassDepthAttachmentDescriptor { - return RenderPassDepthAttachmentDescriptorClass.Alloc() -} - func (rc _RenderPassDepthAttachmentDescriptorClass) New() RenderPassDepthAttachmentDescriptor { rv := objc.Call[RenderPassDepthAttachmentDescriptor](rc, objc.Sel("new")) rv.Autorelease() @@ -61,21 +57,6 @@ func (r_ RenderPassDepthAttachmentDescriptor) Init() RenderPassDepthAttachmentDe return rv } -// The filter used for an MSAA depth resolve operation. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/metal/mtlrenderpassdepthattachmentdescriptor/1619184-depthresolvefilter?language=objc -func (r_ RenderPassDepthAttachmentDescriptor) DepthResolveFilter() MultisampleDepthResolveFilter { - rv := objc.Call[MultisampleDepthResolveFilter](r_, objc.Sel("depthResolveFilter")) - return rv -} - -// The filter used for an MSAA depth resolve operation. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/metal/mtlrenderpassdepthattachmentdescriptor/1619184-depthresolvefilter?language=objc -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 @@ -90,3 +71,18 @@ func (r_ RenderPassDepthAttachmentDescriptor) ClearDepth() float64 { 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 +func (r_ RenderPassDepthAttachmentDescriptor) DepthResolveFilter() MultisampleDepthResolveFilter { + rv := objc.Call[MultisampleDepthResolveFilter](r_, objc.Sel("depthResolveFilter")) + return rv +} + +// The filter used for an MSAA depth resolve operation. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/metal/mtlrenderpassdepthattachmentdescriptor/1619184-depthresolvefilter?language=objc +func (r_ RenderPassDepthAttachmentDescriptor) SetDepthResolveFilter(value MultisampleDepthResolveFilter) { + objc.Call[objc.Void](r_, objc.Sel("setDepthResolveFilter:"), value) +} diff --git a/macos/metal/render_pass_descriptor.gen.go b/macos/metal/render_pass_descriptor.gen.go index 3605c5b4..f9b11656 100644 --- a/macos/metal/render_pass_descriptor.gen.go +++ b/macos/metal/render_pass_descriptor.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package metal @@ -18,36 +18,36 @@ type _RenderPassDescriptorClass struct { // An interface definition for the [RenderPassDescriptor] class. type IRenderPassDescriptor interface { objc.IObject - SetSamplePositionsCount(positions *SamplePosition, count uint) GetSamplePositionsCount(positions *SamplePosition, count uint) uint - VisibilityResultBuffer() BufferWrapper - SetVisibilityResultBuffer(value PBuffer) - SetVisibilityResultBufferObject(valueObject objc.IObject) - RasterizationRateMap() RasterizationRateMapWrapper + SetSamplePositionsCount(positions *SamplePosition, count uint) + ThreadgroupMemoryLength() uint + SetThreadgroupMemoryLength(value uint) + SampleBufferAttachments() RenderPassSampleBufferAttachmentDescriptorArray + RasterizationRateMap() RasterizationRateMapObject SetRasterizationRateMap(value PRasterizationRateMap) SetRasterizationRateMapObject(valueObject objc.IObject) - ColorAttachments() RenderPassColorAttachmentDescriptorArray + VisibilityResultBuffer() BufferObject + SetVisibilityResultBuffer(value PBuffer) + SetVisibilityResultBufferObject(valueObject objc.IObject) + RenderTargetWidth() uint + SetRenderTargetWidth(value uint) 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] @@ -68,10 +68,6 @@ func (rc _RenderPassDescriptorClass) Alloc() RenderPassDescriptor { return rv } -func RenderPassDescriptor_Alloc() RenderPassDescriptor { - return RenderPassDescriptorClass.Alloc() -} - func (rc _RenderPassDescriptorClass) New() RenderPassDescriptor { rv := objc.Call[RenderPassDescriptor](rc, objc.Sel("new")) rv.Autorelease() @@ -87,13 +83,6 @@ 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 @@ -102,6 +91,13 @@ 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 @@ -117,34 +113,34 @@ func RenderPassDescriptor_RenderPassDescriptor() RenderPassDescriptor { return RenderPassDescriptorClass.RenderPassDescriptor() } -// A buffer where the GPU writes visibility test results when fragments pass depth and stencil tests. [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/1437942-visibilityresultbuffer?language=objc -func (r_ RenderPassDescriptor) VisibilityResultBuffer() BufferWrapper { - rv := objc.Call[BufferWrapper](r_, objc.Sel("visibilityResultBuffer")) +// [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 } -// A buffer where the GPU writes visibility test results when fragments pass depth and stencil tests. [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/1437942-visibilityresultbuffer?language=objc -func (r_ RenderPassDescriptor) SetVisibilityResultBuffer(value PBuffer) { - po0 := objc.WrapAsProtocol("MTLBuffer", value) - objc.Call[objc.Void](r_, objc.Sel("setVisibilityResultBuffer:"), po0) +// [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) } -// A buffer where the GPU writes visibility test results when fragments pass depth and stencil tests. [Full Topic] +// The array of sample buffers that the render pass can access. [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:"), objc.Ptr(valueObject)) +// [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 rasterization rate map to use when executing the render pass. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/metal/mtlrenderpassdescriptor/3088853-rasterizationratemap?language=objc -func (r_ RenderPassDescriptor) RasterizationRateMap() RasterizationRateMapWrapper { - rv := objc.Call[RasterizationRateMapWrapper](r_, objc.Sel("rasterizationRateMap")) +func (r_ RenderPassDescriptor) RasterizationRateMap() RasterizationRateMapObject { + rv := objc.Call[RasterizationRateMapObject](r_, objc.Sel("rasterizationRateMap")) return rv } @@ -163,14 +159,44 @@ func (r_ RenderPassDescriptor) SetRasterizationRateMapObject(valueObject objc.IO objc.Call[objc.Void](r_, objc.Sel("setRasterizationRateMap:"), objc.Ptr(valueObject)) } -// An array of state information for attachments that store color data. [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/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/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:"), objc.Ptr(valueObject)) +} + +// 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) RenderTargetWidth() uint { + rv := objc.Call[uint](r_, objc.Sel("renderTargetWidth")) + 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 @@ -201,44 +227,51 @@ func (r_ RenderPassDescriptor) SetDepthAttachment(value IRenderPassDepthAttachme objc.Call[objc.Void](r_, objc.Sel("setDepthAttachment:"), objc.Ptr(value)) } -// The tile width, 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/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/2879279-rendertargetheight?language=objc +func (r_ RenderPassDescriptor) RenderTargetHeight() uint { + rv := objc.Call[uint](r_, objc.Sel("renderTargetHeight")) return rv } -// The tile width, 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/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/2879279-rendertargetheight?language=objc +func (r_ RenderPassDescriptor) SetRenderTargetHeight(value uint) { + objc.Call[objc.Void](r_, objc.Sel("setRenderTargetHeight:"), value) } -// The tile height, in pixels. [Full Topic] +// State information for an attachment that stores stencil data. [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/1437950-stencilattachment?language=objc +func (r_ RenderPassDescriptor) StencilAttachment() RenderPassStencilAttachmentDescriptor { + rv := objc.Call[RenderPassStencilAttachmentDescriptor](r_, objc.Sel("stencilAttachment")) return rv } -// The tile height, in pixels. [Full Topic] +// State information for an attachment that stores stencil data. [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/1437950-stencilattachment?language=objc +func (r_ RenderPassDescriptor) SetStencilAttachment(value IRenderPassStencilAttachmentDescriptor) { + objc.Call[objc.Void](r_, objc.Sel("setStencilAttachment:"), objc.Ptr(value)) } -// The array of sample buffers that the render pass can access. [Full Topic] +// 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/3564463-samplebufferattachments?language=objc -func (r_ RenderPassDescriptor) SampleBufferAttachments() RenderPassSampleBufferAttachmentDescriptorArray { - rv := objc.Call[RenderPassSampleBufferAttachmentDescriptorArray](r_, objc.Sel("sampleBufferAttachments")) +// [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) +} + // 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 @@ -254,77 +287,40 @@ func (r_ RenderPassDescriptor) SetDefaultRasterSampleCount(value uint) { objc.Call[objc.Void](r_, objc.Sel("setDefaultRasterSampleCount:"), value) } -// 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) RenderTargetWidth() uint { - rv := objc.Call[uint](r_, objc.Sel("renderTargetWidth")) - 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 per-tile size, in bytes, of the persistent threadgroup memory allocation. [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")) - return rv -} - -// The per-tile size, in bytes, of the persistent threadgroup memory allocation. [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) -} - -// 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] +// An array of state information for attachments that store color 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")) +// [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 } -// 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:"), objc.Ptr(value)) -} - -// The per-sample size, in bytes, of the largest explicit imageblock layout in the render pass. [Full Topic] +// The tile height, in pixels. [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/2866356-tileheight?language=objc +func (r_ RenderPassDescriptor) TileHeight() uint { + rv := objc.Call[uint](r_, objc.Sel("tileHeight")) return rv } -// The per-sample size, in bytes, of the largest explicit imageblock layout in the render pass. [Full Topic] +// The tile height, in pixels. [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) +// [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) } 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 fe30b887..d4f7a129 100644 --- a/macos/metal/render_pass_sample_buffer_attachment_descriptor.gen.go +++ b/macos/metal/render_pass_sample_buffer_attachment_descriptor.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package metal @@ -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() CounterSampleBufferWrapper + 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] @@ -49,10 +49,6 @@ func (rc _RenderPassSampleBufferAttachmentDescriptorClass) Alloc() RenderPassSam return rv } -func RenderPassSampleBufferAttachmentDescriptor_Alloc() RenderPassSampleBufferAttachmentDescriptor { - return RenderPassSampleBufferAttachmentDescriptorClass.Alloc() -} - func (rc _RenderPassSampleBufferAttachmentDescriptorClass) New() RenderPassSampleBufferAttachmentDescriptor { rv := objc.Call[RenderPassSampleBufferAttachmentDescriptor](rc, objc.Sel("new")) rv.Autorelease() @@ -68,21 +64,6 @@ 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 @@ -98,19 +79,27 @@ func (r_ RenderPassSampleBufferAttachmentDescriptor) SetStartOfVertexSampleIndex objc.Call[objc.Void](r_, objc.Sel("setStartOfVertexSampleIndex:"), 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")) +// [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 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) 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] +// +// [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:"), objc.Ptr(valueObject)) } // The index the Metal device object should use to store GPU counters when starting the render pass’s fragment stage. [Full Topic] @@ -128,25 +117,32 @@ func (r_ RenderPassSampleBufferAttachmentDescriptor) SetStartOfFragmentSampleInd objc.Call[objc.Void](r_, objc.Sel("setStartOfFragmentSampleIndex:"), 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 vertex stage. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metal/mtlrenderpasssamplebufferattachmentdescriptor/3081752-samplebuffer?language=objc -func (r_ RenderPassSampleBufferAttachmentDescriptor) SampleBuffer() CounterSampleBufferWrapper { - rv := objc.Call[CounterSampleBufferWrapper](r_, objc.Sel("sampleBuffer")) +// [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 } -// 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 vertex stage. [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) +// [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) } -// 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:"), objc.Ptr(valueObject)) +// [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 +} + +// 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/3081769-endoffragmentsampleindex?language=objc +func (r_ RenderPassSampleBufferAttachmentDescriptor) SetEndOfFragmentSampleIndex(value uint) { + objc.Call[objc.Void](r_, objc.Sel("setEndOfFragmentSampleIndex:"), value) } 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 178ff6dc..cecffc82 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 @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package metal @@ -18,8 +18,8 @@ type _RenderPassSampleBufferAttachmentDescriptorArrayClass struct { // An interface definition for the [RenderPassSampleBufferAttachmentDescriptorArray] class. type IRenderPassSampleBufferAttachmentDescriptorArray interface { objc.IObject - ObjectAtIndexedSubscript(attachmentIndex uint) RenderPassSampleBufferAttachmentDescriptor SetObjectAtIndexedSubscript(attachment IRenderPassSampleBufferAttachmentDescriptor, attachmentIndex uint) + ObjectAtIndexedSubscript(attachmentIndex uint) RenderPassSampleBufferAttachmentDescriptor } // An array of sample buffer attachments for a render pass. [Full Topic] @@ -40,10 +40,6 @@ func (rc _RenderPassSampleBufferAttachmentDescriptorArrayClass) Alloc() RenderPa return rv } -func RenderPassSampleBufferAttachmentDescriptorArray_Alloc() RenderPassSampleBufferAttachmentDescriptorArray { - return RenderPassSampleBufferAttachmentDescriptorArrayClass.Alloc() -} - func (rc _RenderPassSampleBufferAttachmentDescriptorArrayClass) New() RenderPassSampleBufferAttachmentDescriptorArray { rv := objc.Call[RenderPassSampleBufferAttachmentDescriptorArray](rc, objc.Sel("new")) rv.Autorelease() @@ -59,6 +55,13 @@ 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:"), objc.Ptr(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 @@ -66,10 +69,3 @@ 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:"), objc.Ptr(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 334b4e78..7946ea69 100644 --- a/macos/metal/render_pass_stencil_attachment_descriptor.gen.go +++ b/macos/metal/render_pass_stencil_attachment_descriptor.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package metal @@ -18,10 +18,10 @@ type _RenderPassStencilAttachmentDescriptorClass struct { // An interface definition for the [RenderPassStencilAttachmentDescriptor] class. type IRenderPassStencilAttachmentDescriptor interface { IRenderPassAttachmentDescriptor - StencilResolveFilter() MultisampleStencilResolveFilter - SetStencilResolveFilter(value MultisampleStencilResolveFilter) ClearStencil() uint32 SetClearStencil(value uint32) + StencilResolveFilter() MultisampleStencilResolveFilter + SetStencilResolveFilter(value MultisampleStencilResolveFilter) } // A stencil render target that serves as the output destination for stencil pixels generated by a render pass. [Full Topic] @@ -42,10 +42,6 @@ func (rc _RenderPassStencilAttachmentDescriptorClass) Alloc() RenderPassStencilA return rv } -func RenderPassStencilAttachmentDescriptor_Alloc() RenderPassStencilAttachmentDescriptor { - return RenderPassStencilAttachmentDescriptorClass.Alloc() -} - func (rc _RenderPassStencilAttachmentDescriptorClass) New() RenderPassStencilAttachmentDescriptor { rv := objc.Call[RenderPassStencilAttachmentDescriptor](rc, objc.Sel("new")) rv.Autorelease() @@ -61,21 +57,6 @@ func (r_ RenderPassStencilAttachmentDescriptor) Init() RenderPassStencilAttachme return rv } -// The filter used for stencil multisample resolve. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/metal/mtlrenderpassstencilattachmentdescriptor/2967446-stencilresolvefilter?language=objc -func (r_ RenderPassStencilAttachmentDescriptor) StencilResolveFilter() MultisampleStencilResolveFilter { - rv := objc.Call[MultisampleStencilResolveFilter](r_, objc.Sel("stencilResolveFilter")) - return rv -} - -// The filter used for stencil multisample resolve. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/metal/mtlrenderpassstencilattachmentdescriptor/2967446-stencilresolvefilter?language=objc -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 @@ -90,3 +71,18 @@ func (r_ RenderPassStencilAttachmentDescriptor) ClearStencil() uint32 { 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 +func (r_ RenderPassStencilAttachmentDescriptor) StencilResolveFilter() MultisampleStencilResolveFilter { + rv := objc.Call[MultisampleStencilResolveFilter](r_, objc.Sel("stencilResolveFilter")) + return rv +} + +// The filter used for stencil multisample resolve. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/metal/mtlrenderpassstencilattachmentdescriptor/2967446-stencilresolvefilter?language=objc +func (r_ RenderPassStencilAttachmentDescriptor) SetStencilResolveFilter(value MultisampleStencilResolveFilter) { + objc.Call[objc.Void](r_, objc.Sel("setStencilResolveFilter:"), value) +} diff --git a/macos/metal/render_pipeline_color_attachment_descriptor.gen.go b/macos/metal/render_pipeline_color_attachment_descriptor.gen.go index 8fa172ee..9e90abea 100644 --- a/macos/metal/render_pipeline_color_attachment_descriptor.gen.go +++ b/macos/metal/render_pipeline_color_attachment_descriptor.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package metal @@ -20,22 +20,22 @@ type IRenderPipelineColorAttachmentDescriptor interface { objc.IObject DestinationRGBBlendFactor() BlendFactor SetDestinationRGBBlendFactor(value BlendFactor) - 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) + 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) + WriteMask() ColorWriteMask + SetWriteMask(value ColorWriteMask) } // A color render target that specifies the color configuration and color operations for a render pipeline. [Full Topic] @@ -56,10 +56,6 @@ func (rc _RenderPipelineColorAttachmentDescriptorClass) Alloc() RenderPipelineCo return rv } -func RenderPipelineColorAttachmentDescriptor_Alloc() RenderPipelineColorAttachmentDescriptor { - return RenderPipelineColorAttachmentDescriptorClass.Alloc() -} - func (rc _RenderPipelineColorAttachmentDescriptorClass) New() RenderPipelineColorAttachmentDescriptor { rv := objc.Call[RenderPipelineColorAttachmentDescriptor](rc, objc.Sel("new")) rv.Autorelease() @@ -90,34 +86,49 @@ func (r_ RenderPipelineColorAttachmentDescriptor) SetDestinationRGBBlendFactor(v objc.Call[objc.Void](r_, objc.Sel("setDestinationRGBBlendFactor:"), 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) } -// The blend operation assigned for the RGB data. [Full Topic] +// A Boolean value that determines whether blending is enabled. [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")) +// [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 } -// The blend operation assigned for the RGB data. [Full Topic] +// A Boolean value that determines whether blending is enabled. [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) +// [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 destination blend factor (DBF) used by the alpha blend operation. [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")) + return rv +} + +// The destination blend factor (DBF) used by the alpha blend operation. [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) } // The blend operation assigned for the alpha data. [Full Topic] @@ -135,36 +146,6 @@ 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 @@ -180,32 +161,47 @@ func (r_ RenderPipelineColorAttachmentDescriptor) SetPixelFormat(value PixelForm objc.Call[objc.Void](r_, objc.Sel("setPixelFormat:"), value) } -// The source blend factor (SBF) 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/1514660-sourcealphablendfactor?language=objc -func (r_ RenderPipelineColorAttachmentDescriptor) SourceAlphaBlendFactor() BlendFactor { - rv := objc.Call[BlendFactor](r_, objc.Sel("sourceAlphaBlendFactor")) +// [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 source blend factor (SBF) 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/1514660-sourcealphablendfactor?language=objc -func (r_ RenderPipelineColorAttachmentDescriptor) SetSourceAlphaBlendFactor(value BlendFactor) { - objc.Call[objc.Void](r_, objc.Sel("setSourceAlphaBlendFactor:"), 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 destination blend factor (DBF) used by the alpha blend operation. [Full Topic] +// The source blend factor (SBF) used by the RGB blend operation. [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/1514615-sourcergbblendfactor?language=objc +func (r_ RenderPipelineColorAttachmentDescriptor) SourceRGBBlendFactor() BlendFactor { + rv := objc.Call[BlendFactor](r_, objc.Sel("sourceRGBBlendFactor")) return rv } -// The destination blend factor (DBF) used by the alpha blend operation. [Full Topic] +// The source blend factor (SBF) used by the RGB blend operation. [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/1514615-sourcergbblendfactor?language=objc +func (r_ RenderPipelineColorAttachmentDescriptor) SetSourceRGBBlendFactor(value BlendFactor) { + objc.Call[objc.Void](r_, objc.Sel("setSourceRGBBlendFactor:"), 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) } diff --git a/macos/metal/render_pipeline_color_attachment_descriptor_array.gen.go b/macos/metal/render_pipeline_color_attachment_descriptor_array.gen.go index 0b01cb03..c47f916e 100644 --- a/macos/metal/render_pipeline_color_attachment_descriptor_array.gen.go +++ b/macos/metal/render_pipeline_color_attachment_descriptor_array.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package metal @@ -40,10 +40,6 @@ func (rc _RenderPipelineColorAttachmentDescriptorArrayClass) Alloc() RenderPipel return rv } -func RenderPipelineColorAttachmentDescriptorArray_Alloc() RenderPipelineColorAttachmentDescriptorArray { - return RenderPipelineColorAttachmentDescriptorArrayClass.Alloc() -} - func (rc _RenderPipelineColorAttachmentDescriptorArrayClass) New() RenderPipelineColorAttachmentDescriptorArray { rv := objc.Call[RenderPipelineColorAttachmentDescriptorArray](rc, objc.Sel("new")) rv.Autorelease() diff --git a/macos/metal/render_pipeline_descriptor.gen.go b/macos/metal/render_pipeline_descriptor.gen.go index bc2e5256..6027431c 100644 --- a/macos/metal/render_pipeline_descriptor.gen.go +++ b/macos/metal/render_pipeline_descriptor.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package metal @@ -21,67 +21,67 @@ type IRenderPipelineDescriptor interface { Reset() VertexLinkedFunctions() LinkedFunctions SetVertexLinkedFunctions(value ILinkedFunctions) - FragmentFunction() FunctionWrapper + 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 - MaxFragmentCallStackDepth() uint - SetMaxFragmentCallStackDepth(value uint) + IsTessellationFactorScaleEnabled() bool + SetTessellationFactorScaleEnabled(value bool) + RasterSampleCount() uint + SetRasterSampleCount(value uint) + SupportAddingVertexBinaryFunctions() bool + SetSupportAddingVertexBinaryFunctions(value bool) 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) - TessellationOutputWindingOrder() Winding - SetTessellationOutputWindingOrder(value Winding) + MaxTessellationFactor() uint + SetMaxTessellationFactor(value uint) VertexBuffers() PipelineBufferDescriptorArray - SupportAddingVertexBinaryFunctions() bool - SetSupportAddingVertexBinaryFunctions(value bool) - IsAlphaToCoverageEnabled() bool - SetAlphaToCoverageEnabled(value bool) + IsRasterizationEnabled() bool + SetRasterizationEnabled(value bool) + VertexFunction() FunctionObject + SetVertexFunction(value PFunction) + SetVertexFunctionObject(valueObject objc.IObject) + TessellationPartitionMode() TessellationPartitionMode + SetTessellationPartitionMode(value TessellationPartitionMode) + VertexPreloadedLibraries() []DynamicLibraryObject + SetVertexPreloadedLibraries(value []PDynamicLibrary) MaxVertexCallStackDepth() uint SetMaxVertexCallStackDepth(value uint) VertexDescriptor() VertexDescriptor SetVertexDescriptor(value IVertexDescriptor) - FragmentPreloadedLibraries() []DynamicLibraryWrapper - 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() []DynamicLibraryWrapper - SetVertexPreloadedLibraries(value []PDynamicLibrary) - VertexFunction() FunctionWrapper - 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() []BinaryArchiveWrapper - SetBinaryArchives(value []PBinaryArchive) } // An argument of options you pass to a GPU device to get a render pipeline state. [Full Topic] @@ -102,10 +102,6 @@ func (rc _RenderPipelineDescriptorClass) Alloc() RenderPipelineDescriptor { return rv } -func RenderPipelineDescriptor_Alloc() RenderPipelineDescriptor { - return RenderPipelineDescriptorClass.Alloc() -} - func (rc _RenderPipelineDescriptorClass) New() RenderPipelineDescriptor { rv := objc.Call[RenderPipelineDescriptor](rc, objc.Sel("new")) rv.Autorelease() @@ -143,133 +139,94 @@ func (r_ RenderPipelineDescriptor) SetVertexLinkedFunctions(value ILinkedFunctio objc.Call[objc.Void](r_, objc.Sel("setVertexLinkedFunctions:"), objc.Ptr(value)) } -// 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) FragmentFunction() FunctionWrapper { - rv := objc.Call[FunctionWrapper](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) -} - -// 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) SetFragmentFunctionObject(valueObject objc.IObject) { - objc.Call[objc.Void](r_, objc.Sel("setFragmentFunction:"), objc.Ptr(valueObject)) -} - -// The format of the tessellation factors in the tessellation factor buffer. [Full Topic] +// The pixel format of the attachment that stores depth data. [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")) +// [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 format of the tessellation factors in the tessellation factor buffer. [Full Topic] +// The pixel format of the attachment that stores depth data. [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) +// [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 the pipeline rasterizes primitives. [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/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/3750574-supportaddingfragmentbinaryfunct?language=objc +func (r_ RenderPipelineDescriptor) SupportAddingFragmentBinaryFunctions() bool { + rv := objc.Call[bool](r_, objc.Sel("supportAddingFragmentBinaryFunctions")) return rv } -// A Boolean value that determines whether the pipeline rasterizes primitives. [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/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/3750574-supportaddingfragmentbinaryfunct?language=objc +func (r_ RenderPipelineDescriptor) SetSupportAddingFragmentBinaryFunctions(value bool) { + objc.Call[objc.Void](r_, objc.Sel("setSupportAddingFragmentBinaryFunctions:"), value) } -// Functions that you can specify as function arguments for the fragment shader when encoding commands that use the pipeline. [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/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/1640062-tessellationfactorstepfunction?language=objc +func (r_ RenderPipelineDescriptor) TessellationFactorStepFunction() TessellationFactorStepFunction { + rv := objc.Call[TessellationFactorStepFunction](r_, objc.Sel("tessellationFactorStepFunction")) return rv } -// 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/3750569-fragmentlinkedfunctions?language=objc -func (r_ RenderPipelineDescriptor) SetFragmentLinkedFunctions(value ILinkedFunctions) { - objc.Call[objc.Void](r_, objc.Sel("setFragmentLinkedFunctions:"), objc.Ptr(value)) -} - -// An array that contains the buffer mutability options for a render pipeline's fragment 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/2879275-fragmentbuffers?language=objc -func (r_ RenderPipelineDescriptor) FragmentBuffers() PipelineBufferDescriptorArray { - rv := objc.Call[PipelineBufferDescriptorArray](r_, objc.Sel("fragmentBuffers")) - return rv +// [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 maximum function call depth from the top-most fragment shader 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/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/1640059-tessellationcontrolpointindextyp?language=objc +func (r_ RenderPipelineDescriptor) TessellationControlPointIndexType() TessellationControlPointIndexType { + rv := objc.Call[TessellationControlPointIndexType](r_, objc.Sel("tessellationControlPointIndexType")) return rv } -// The maximum function call depth from the top-most fragment shader 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/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/1640059-tessellationcontrolpointindextyp?language=objc +func (r_ RenderPipelineDescriptor) SetTessellationControlPointIndexType(value TessellationControlPointIndexType) { + objc.Call[objc.Void](r_, objc.Sel("setTessellationControlPointIndexType:"), value) } -// The type of primitive topology the pipeline renders. [Full Topic] +// 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/1514684-inputprimitivetopology?language=objc -func (r_ RenderPipelineDescriptor) InputPrimitiveTopology() PrimitiveTopologyClass { - rv := objc.Call[PrimitiveTopologyClass](r_, objc.Sel("inputPrimitiveTopology")) +// [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 } -// 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) -} - -// An array of attachments that store color data. [Full Topic] +// 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/1514712-colorattachments?language=objc -func (r_ RenderPipelineDescriptor) ColorAttachments() RenderPipelineColorAttachmentDescriptorArray { - rv := objc.Call[RenderPipelineColorAttachmentDescriptorArray](r_, objc.Sel("colorAttachments")) - return rv +// [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) } -// A Boolean value that indicates whether to force alpha channel values for color attachments to the largest representable value. [Full Topic] +// An array of binary archives to search for precompiled versions of the shader. [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/3554050-binaryarchives?language=objc +func (r_ RenderPipelineDescriptor) BinaryArchives() []BinaryArchiveObject { + rv := objc.Call[[]BinaryArchiveObject](r_, objc.Sel("binaryArchives")) return rv } -// A Boolean value that indicates whether to force alpha channel values for color attachments to the largest representable value. [Full Topic] +// An array of binary archives to search for precompiled versions of the shader. [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/3554050-binaryarchives?language=objc +func (r_ RenderPipelineDescriptor) SetBinaryArchives(value []PBinaryArchive) { + objc.Call[objc.Void](r_, objc.Sel("setBinaryArchives:"), value) } // The winding order of triangles from the tessellator. [Full Topic] @@ -287,27 +244,19 @@ func (r_ RenderPipelineDescriptor) SetTessellationOutputWindingOrder(value Windi objc.Call[objc.Void](r_, objc.Sel("setTessellationOutputWindingOrder:"), 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 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] // -// [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")) +// [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 } -// 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] // -// [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) +// [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) } // 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] @@ -325,64 +274,65 @@ func (r_ RenderPipelineDescriptor) SetAlphaToCoverageEnabled(value bool) { objc.Call[objc.Void](r_, objc.Sel("setAlphaToCoverageEnabled:"), value) } -// The maximum function call depth from the top-most vertex shader function. [Full Topic] +// The fragment function the pipeline calls to process fragments. [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/1514600-fragmentfunction?language=objc +func (r_ RenderPipelineDescriptor) FragmentFunction() FunctionObject { + rv := objc.Call[FunctionObject](r_, objc.Sel("fragmentFunction")) return rv } -// The maximum function call depth from the top-most vertex shader function. [Full Topic] +// The fragment function the pipeline calls to process fragments. [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/1514600-fragmentfunction?language=objc +func (r_ RenderPipelineDescriptor) SetFragmentFunction(value PFunction) { + po0 := objc.WrapAsProtocol("MTLFunction", value) + objc.Call[objc.Void](r_, objc.Sel("setFragmentFunction:"), po0) } -// The organization of vertex data in an attribute’s argument table. [Full Topic] +// The fragment function the pipeline calls to process fragments. [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")) - return rv +// [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:"), objc.Ptr(valueObject)) } -// The organization of vertex data in an attribute’s argument table. [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/1514681-vertexdescriptor?language=objc -func (r_ RenderPipelineDescriptor) SetVertexDescriptor(value IVertexDescriptor) { - objc.Call[objc.Void](r_, objc.Sel("setVertexDescriptor:"), objc.Ptr(value)) +// [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 } -// [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/3801723-fragmentpreloadedlibraries?language=objc -func (r_ RenderPipelineDescriptor) FragmentPreloadedLibraries() []DynamicLibraryWrapper { - rv := objc.Call[[]DynamicLibraryWrapper](r_, objc.Sel("fragmentPreloadedLibraries")) - return rv +// [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:"), objc.Ptr(value)) } -// [Full Topic] +// The pixel format of the attachment that stores stencil data. [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/1514650-stencilattachmentpixelformat?language=objc +func (r_ RenderPipelineDescriptor) StencilAttachmentPixelFormat() PixelFormat { + rv := objc.Call[PixelFormat](r_, objc.Sel("stencilAttachmentPixelFormat")) + return rv } -// The size of the control point indices in a control point index buffer. [Full Topic] +// The pixel format of the attachment that stores stencil data. [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")) - return rv +// [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) } -// The size of the control point indices in a control point index buffer. [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/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/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 the pipeline scales the tessellation factor. [Full Topic] @@ -415,190 +365,236 @@ func (r_ RenderPipelineDescriptor) SetRasterSampleCount(value uint) { objc.Call[objc.Void](r_, objc.Sel("setRasterSampleCount:"), value) } -// The pixel format of the attachment that stores stencil data. [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/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/3750575-supportaddingvertexbinaryfunctio?language=objc +func (r_ RenderPipelineDescriptor) SupportAddingVertexBinaryFunctions() bool { + rv := objc.Call[bool](r_, objc.Sel("supportAddingVertexBinaryFunctions")) return rv } -// The pixel format of the attachment that stores stencil data. [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/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/3750575-supportaddingvertexbinaryfunctio?language=objc +func (r_ RenderPipelineDescriptor) SetSupportAddingVertexBinaryFunctions(value bool) { + objc.Call[objc.Void](r_, objc.Sel("setSupportAddingVertexBinaryFunctions:"), value) } -// The partitioning mode that the tessellator uses to derive the number and spacing of segments for subdividing a corresponding edge. [Full Topic] +// The type of primitive topology the pipeline renders. [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/1514684-inputprimitivetopology?language=objc +func (r_ RenderPipelineDescriptor) InputPrimitiveTopology() PrimitiveTopologyClass { + rv := objc.Call[PrimitiveTopologyClass](r_, objc.Sel("inputPrimitiveTopology")) 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 type of primitive topology the pipeline renders. [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/1514684-inputprimitivetopology?language=objc +func (r_ RenderPipelineDescriptor) SetInputPrimitiveTopology(value PrimitiveTopologyClass) { + objc.Call[objc.Void](r_, objc.Sel("setInputPrimitiveTopology:"), value) } -// The maximum tessellation factor that the tessellator uses when tessellating patches. [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/1640060-maxtessellationfactor?language=objc -func (r_ RenderPipelineDescriptor) MaxTessellationFactor() uint { - rv := objc.Call[uint](r_, objc.Sel("maxTessellationFactor")) +// [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 tessellation factor that the tessellator uses when tessellating patches. [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/1640060-maxtessellationfactor?language=objc -func (r_ RenderPipelineDescriptor) SetMaxTessellationFactor(value uint) { - objc.Call[objc.Void](r_, objc.Sel("setMaxTessellationFactor:"), 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] +// An array of attachments that store color data. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metal/mtlrenderpipelinedescriptor/3801724-vertexpreloadedlibraries?language=objc -func (r_ RenderPipelineDescriptor) VertexPreloadedLibraries() []DynamicLibraryWrapper { - rv := objc.Call[[]DynamicLibraryWrapper](r_, objc.Sel("vertexPreloadedLibraries")) +// [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 } -// [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) Label() string { + rv := objc.Call[string](r_, objc.Sel("label")) + return rv } -// The vertex function the pipeline calls to process vertices. [Full Topic] +// A string that identifies the render pipeline descriptor. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metal/mtlrenderpipelinedescriptor/1514679-vertexfunction?language=objc -func (r_ RenderPipelineDescriptor) VertexFunction() FunctionWrapper { - rv := objc.Call[FunctionWrapper](r_, objc.Sel("vertexFunction")) +// [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 vertex function the pipeline calls to process vertices. [Full Topic] +// The format of the tessellation factors in the tessellation factor buffer. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metal/mtlrenderpipelinedescriptor/1514679-vertexfunction?language=objc -func (r_ RenderPipelineDescriptor) SetVertexFunction(value PFunction) { - po0 := objc.WrapAsProtocol("MTLFunction", value) - objc.Call[objc.Void](r_, objc.Sel("setVertexFunction:"), po0) +// [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 vertex function the pipeline calls to process vertices. [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/1514679-vertexfunction?language=objc -func (r_ RenderPipelineDescriptor) SetVertexFunctionObject(valueObject objc.IObject) { - objc.Call[objc.Void](r_, objc.Sel("setVertexFunction:"), objc.Ptr(valueObject)) +// [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 } -// The maximum vertex amplification count you can set when encoding render commands. [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/3088854-maxvertexamplificationcount?language=objc -func (r_ RenderPipelineDescriptor) MaxVertexAmplificationCount() uint { - rv := objc.Call[uint](r_, objc.Sel("maxVertexAmplificationCount")) +// [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) +} + +// 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 } -// The maximum vertex amplification count you can set when encoding render commands. [Full Topic] +// 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/3088854-maxvertexamplificationcount?language=objc -func (r_ RenderPipelineDescriptor) SetMaxVertexAmplificationCount(value uint) { - objc.Call[objc.Void](r_, objc.Sel("setMaxVertexAmplificationCount:"), value) +// [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) } -// A string that identifies the render pipeline descriptor. [Full Topic] +// The maximum tessellation factor that the tessellator uses when tessellating patches. [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")) +// [Full Topic]: https://developer.apple.com/documentation/metal/mtlrenderpipelinedescriptor/1640060-maxtessellationfactor?language=objc +func (r_ RenderPipelineDescriptor) MaxTessellationFactor() uint { + rv := objc.Call[uint](r_, objc.Sel("maxTessellationFactor")) return rv } -// A string that identifies the render pipeline descriptor. [Full Topic] +// The maximum tessellation factor that the tessellator uses when tessellating patches. [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) +// [Full Topic]: https://developer.apple.com/documentation/metal/mtlrenderpipelinedescriptor/1640060-maxtessellationfactor?language=objc +func (r_ RenderPipelineDescriptor) SetMaxTessellationFactor(value uint) { + objc.Call[objc.Void](r_, objc.Sel("setMaxTessellationFactor:"), value) } -// The step function for determining the tessellation factors for a patch from the tessellation factor buffer. [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/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/2879280-vertexbuffers?language=objc +func (r_ RenderPipelineDescriptor) VertexBuffers() PipelineBufferDescriptorArray { + rv := objc.Call[PipelineBufferDescriptorArray](r_, objc.Sel("vertexBuffers")) 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) IsRasterizationEnabled() bool { + rv := objc.Call[bool](r_, objc.Sel("isRasterizationEnabled")) + 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] +// A Boolean value that determines whether the pipeline rasterizes primitives. [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/1514708-rasterizationenabled?language=objc +func (r_ RenderPipelineDescriptor) SetRasterizationEnabled(value bool) { + objc.Call[objc.Void](r_, objc.Sel("setRasterizationEnabled:"), value) +} + +// The vertex function the pipeline calls to process vertices. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/metal/mtlrenderpipelinedescriptor/1514679-vertexfunction?language=objc +func (r_ RenderPipelineDescriptor) VertexFunction() FunctionObject { + rv := objc.Call[FunctionObject](r_, objc.Sel("vertexFunction")) 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 vertex function the pipeline calls to process vertices. [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/1514679-vertexfunction?language=objc +func (r_ RenderPipelineDescriptor) SetVertexFunction(value PFunction) { + po0 := objc.WrapAsProtocol("MTLFunction", value) + objc.Call[objc.Void](r_, objc.Sel("setVertexFunction:"), po0) } -// The pixel format of the attachment that stores depth data. [Full Topic] +// The vertex function the pipeline calls to process vertices. [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/1514679-vertexfunction?language=objc +func (r_ RenderPipelineDescriptor) SetVertexFunctionObject(valueObject objc.IObject) { + objc.Call[objc.Void](r_, objc.Sel("setVertexFunction:"), objc.Ptr(valueObject)) +} + +// 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/1639979-tessellationpartitionmode?language=objc +func (r_ RenderPipelineDescriptor) TessellationPartitionMode() TessellationPartitionMode { + rv := objc.Call[TessellationPartitionMode](r_, objc.Sel("tessellationPartitionMode")) return rv } -// The pixel format of the attachment that stores depth data. [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/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/1639979-tessellationpartitionmode?language=objc +func (r_ RenderPipelineDescriptor) SetTessellationPartitionMode(value TessellationPartitionMode) { + objc.Call[objc.Void](r_, objc.Sel("setTessellationPartitionMode:"), value) } -// A Boolean value that determines whether you can encode commands into an indirect command buffer using the render pipeline. [Full Topic] +// [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/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 you can encode commands into an indirect command buffer using the render pipeline. [Full Topic] +// [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/3801724-vertexpreloadedlibraries?language=objc +func (r_ RenderPipelineDescriptor) SetVertexPreloadedLibraries(value []PDynamicLibrary) { + objc.Call[objc.Void](r_, objc.Sel("setVertexPreloadedLibraries:"), value) } -// An array of binary archives to search for precompiled versions of the shader. [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/3554050-binaryarchives?language=objc -func (r_ RenderPipelineDescriptor) BinaryArchives() []BinaryArchiveWrapper { - rv := objc.Call[[]BinaryArchiveWrapper](r_, objc.Sel("binaryArchives")) +// [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 } -// An array of binary archives to search for precompiled versions of the shader. [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/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/3750573-maxvertexcallstackdepth?language=objc +func (r_ RenderPipelineDescriptor) SetMaxVertexCallStackDepth(value uint) { + objc.Call[objc.Void](r_, objc.Sel("setMaxVertexCallStackDepth:"), value) +} + +// The organization of vertex data in an attribute’s argument table. [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")) + return rv +} + +// The organization of vertex data in an attribute’s argument table. [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:"), objc.Ptr(value)) } diff --git a/macos/metal/render_pipeline_functions_descriptor.gen.go b/macos/metal/render_pipeline_functions_descriptor.gen.go index b6f70ec2..6ee5b89b 100644 --- a/macos/metal/render_pipeline_functions_descriptor.gen.go +++ b/macos/metal/render_pipeline_functions_descriptor.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package metal @@ -18,11 +18,11 @@ type _RenderPipelineFunctionsDescriptorClass struct { // An interface definition for the [RenderPipelineFunctionsDescriptor] class. type IRenderPipelineFunctionsDescriptor interface { objc.IObject - TileAdditionalBinaryFunctions() []FunctionWrapper + TileAdditionalBinaryFunctions() []FunctionObject SetTileAdditionalBinaryFunctions(value []PFunction) - VertexAdditionalBinaryFunctions() []FunctionWrapper + VertexAdditionalBinaryFunctions() []FunctionObject SetVertexAdditionalBinaryFunctions(value []PFunction) - FragmentAdditionalBinaryFunctions() []FunctionWrapper + FragmentAdditionalBinaryFunctions() []FunctionObject SetFragmentAdditionalBinaryFunctions(value []PFunction) } @@ -44,10 +44,6 @@ func (rc _RenderPipelineFunctionsDescriptorClass) Alloc() RenderPipelineFunction return rv } -func RenderPipelineFunctionsDescriptor_Alloc() RenderPipelineFunctionsDescriptor { - return RenderPipelineFunctionsDescriptorClass.Alloc() -} - func (rc _RenderPipelineFunctionsDescriptorClass) New() RenderPipelineFunctionsDescriptor { rv := objc.Call[RenderPipelineFunctionsDescriptor](rc, objc.Sel("new")) rv.Autorelease() @@ -66,8 +62,8 @@ func (r_ RenderPipelineFunctionsDescriptor) Init() RenderPipelineFunctionsDescri // The tile functions to add to the render pipeline. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/metal/mtlrenderpipelinefunctionsdescriptor/3750579-tileadditionalbinaryfunctions?language=objc -func (r_ RenderPipelineFunctionsDescriptor) TileAdditionalBinaryFunctions() []FunctionWrapper { - rv := objc.Call[[]FunctionWrapper](r_, objc.Sel("tileAdditionalBinaryFunctions")) +func (r_ RenderPipelineFunctionsDescriptor) TileAdditionalBinaryFunctions() []FunctionObject { + rv := objc.Call[[]FunctionObject](r_, objc.Sel("tileAdditionalBinaryFunctions")) return rv } @@ -81,8 +77,8 @@ func (r_ RenderPipelineFunctionsDescriptor) SetTileAdditionalBinaryFunctions(val // The vertex functions to add to the render pipeline. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/metal/mtlrenderpipelinefunctionsdescriptor/3750580-vertexadditionalbinaryfunctions?language=objc -func (r_ RenderPipelineFunctionsDescriptor) VertexAdditionalBinaryFunctions() []FunctionWrapper { - rv := objc.Call[[]FunctionWrapper](r_, objc.Sel("vertexAdditionalBinaryFunctions")) +func (r_ RenderPipelineFunctionsDescriptor) VertexAdditionalBinaryFunctions() []FunctionObject { + rv := objc.Call[[]FunctionObject](r_, objc.Sel("vertexAdditionalBinaryFunctions")) return rv } @@ -96,8 +92,8 @@ func (r_ RenderPipelineFunctionsDescriptor) SetVertexAdditionalBinaryFunctions(v // The fragment functions to add to the render pipeline. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/metal/mtlrenderpipelinefunctionsdescriptor/3750578-fragmentadditionalbinaryfunction?language=objc -func (r_ RenderPipelineFunctionsDescriptor) FragmentAdditionalBinaryFunctions() []FunctionWrapper { - rv := objc.Call[[]FunctionWrapper](r_, objc.Sel("fragmentAdditionalBinaryFunctions")) +func (r_ RenderPipelineFunctionsDescriptor) FragmentAdditionalBinaryFunctions() []FunctionObject { + rv := objc.Call[[]FunctionObject](r_, objc.Sel("fragmentAdditionalBinaryFunctions")) return rv } diff --git a/macos/metal/render_pipeline_reflection.gen.go b/macos/metal/render_pipeline_reflection.gen.go index f20bad54..4a6ec86e 100644 --- a/macos/metal/render_pipeline_reflection.gen.go +++ b/macos/metal/render_pipeline_reflection.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package metal @@ -38,10 +38,6 @@ func (rc _RenderPipelineReflectionClass) Alloc() RenderPipelineReflection { return rv } -func RenderPipelineReflection_Alloc() RenderPipelineReflection { - return RenderPipelineReflectionClass.Alloc() -} - func (rc _RenderPipelineReflectionClass) New() RenderPipelineReflection { rv := objc.Call[RenderPipelineReflection](rc, objc.Sel("new")) rv.Autorelease() diff --git a/macos/metal/render_pipeline_state.gen.go b/macos/metal/render_pipeline_state_protocol.gen.go similarity index 63% rename from macos/metal/render_pipeline_state.gen.go rename to macos/metal/render_pipeline_state_protocol.gen.go index aaf6f741..cde4a125 100644 --- a/macos/metal/render_pipeline_state.gen.go +++ b/macos/metal/render_pipeline_state_protocol.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package metal @@ -12,187 +12,187 @@ import ( // [Full Topic]: https://developer.apple.com/documentation/metal/mtlrenderpipelinestate?language=objc type PRenderPipelineState interface { // optional - NewIntersectionFunctionTableWithDescriptorStage(descriptor IntersectionFunctionTableDescriptor, stage RenderStages) PIntersectionFunctionTable - HasNewIntersectionFunctionTableWithDescriptorStage() bool + ImageblockMemoryLengthForDimensions(imageblockDimensions Size) uint + HasImageblockMemoryLengthForDimensions() bool // optional - NewRenderPipelineStateWithAdditionalBinaryFunctionsError(additionalBinaryFunctions RenderPipelineFunctionsDescriptor, error foundation.Error) PRenderPipelineState - HasNewRenderPipelineStateWithAdditionalBinaryFunctionsError() bool + FunctionHandleWithFunctionStage(function FunctionObject, stage RenderStages) FunctionHandleObject + HasFunctionHandleWithFunctionStage() bool // optional - NewVisibleFunctionTableWithDescriptorStage(descriptor VisibleFunctionTableDescriptor, stage RenderStages) PVisibleFunctionTable - HasNewVisibleFunctionTableWithDescriptorStage() bool + NewIntersectionFunctionTableWithDescriptorStage(descriptor IntersectionFunctionTableDescriptor, stage RenderStages) IntersectionFunctionTableObject + HasNewIntersectionFunctionTableWithDescriptorStage() bool // optional - FunctionHandleWithFunctionStage(function FunctionWrapper, stage RenderStages) PFunctionHandle - HasFunctionHandleWithFunctionStage() bool + NewRenderPipelineStateWithAdditionalBinaryFunctionsError(additionalBinaryFunctions RenderPipelineFunctionsDescriptor, error foundation.Error) RenderPipelineStateObject + HasNewRenderPipelineStateWithAdditionalBinaryFunctionsError() bool // optional - ImageblockMemoryLengthForDimensions(imageblockDimensions Size) uint - HasImageblockMemoryLengthForDimensions() bool + NewVisibleFunctionTableWithDescriptorStage(descriptor VisibleFunctionTableDescriptor, stage RenderStages) VisibleFunctionTableObject + HasNewVisibleFunctionTableWithDescriptorStage() bool // optional - Device() PDevice - HasDevice() bool + ThreadgroupSizeMatchesTileSize() bool + HasThreadgroupSizeMatchesTileSize() bool // optional MaxTotalThreadsPerThreadgroup() uint HasMaxTotalThreadsPerThreadgroup() bool // optional - ThreadgroupSizeMatchesTileSize() bool - HasThreadgroupSizeMatchesTileSize() bool + Device() DeviceObject + HasDevice() bool // optional - Label() string - HasLabel() bool + ImageblockSampleLength() uint + HasImageblockSampleLength() bool // optional SupportIndirectCommandBuffers() bool HasSupportIndirectCommandBuffers() bool // optional - ImageblockSampleLength() uint - HasImageblockSampleLength() bool + Label() string + HasLabel() bool } -// A concrete type wrapper for the [PRenderPipelineState] protocol. -type RenderPipelineStateWrapper struct { +// ensure impl type implements protocol interface +var _ PRenderPipelineState = (*RenderPipelineStateObject)(nil) + +// A concrete type for the [PRenderPipelineState] protocol. +type RenderPipelineStateObject struct { objc.Object } -func (r_ RenderPipelineStateWrapper) HasNewIntersectionFunctionTableWithDescriptorStage() bool { - return r_.RespondsToSelector(objc.Sel("newIntersectionFunctionTableWithDescriptor:stage:")) +func (r_ RenderPipelineStateObject) HasImageblockMemoryLengthForDimensions() bool { + return r_.RespondsToSelector(objc.Sel("imageblockMemoryLengthForDimensions:")) } -// Creates a new intersection function table. [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/3750582-newintersectionfunctiontablewith?language=objc -func (r_ RenderPipelineStateWrapper) NewIntersectionFunctionTableWithDescriptorStage(descriptor IIntersectionFunctionTableDescriptor, stage RenderStages) IntersectionFunctionTableWrapper { - rv := objc.Call[IntersectionFunctionTableWrapper](r_, objc.Sel("newIntersectionFunctionTableWithDescriptor:stage:"), objc.Ptr(descriptor), stage) - rv.Autorelease() +// [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_ RenderPipelineStateWrapper) HasNewRenderPipelineStateWithAdditionalBinaryFunctionsError() bool { - return r_.RespondsToSelector(objc.Sel("newRenderPipelineStateWithAdditionalBinaryFunctions:error:")) +func (r_ RenderPipelineStateObject) HasFunctionHandleWithFunctionStage() bool { + return r_.RespondsToSelector(objc.Sel("functionHandleWithFunction:stage:")) } -// Creates a new pipeline state that’s a copy of the current pipeline state with additional shaders. [Full Topic] +// Creates a function handle for a shader. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metal/mtlrenderpipelinestate/3750583-newrenderpipelinestatewithadditi?language=objc -func (r_ RenderPipelineStateWrapper) NewRenderPipelineStateWithAdditionalBinaryFunctionsError(additionalBinaryFunctions IRenderPipelineFunctionsDescriptor, error foundation.IError) RenderPipelineStateWrapper { - rv := objc.Call[RenderPipelineStateWrapper](r_, objc.Sel("newRenderPipelineStateWithAdditionalBinaryFunctions:error:"), objc.Ptr(additionalBinaryFunctions), objc.Ptr(error)) - rv.Autorelease() +// [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_ RenderPipelineStateWrapper) HasNewVisibleFunctionTableWithDescriptorStage() bool { - return r_.RespondsToSelector(objc.Sel("newVisibleFunctionTableWithDescriptor:stage:")) +func (r_ RenderPipelineStateObject) HasNewIntersectionFunctionTableWithDescriptorStage() bool { + return r_.RespondsToSelector(objc.Sel("newIntersectionFunctionTableWithDescriptor:stage:")) } -// Creates a new visible function table. [Full Topic] +// Creates a new intersection function table. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metal/mtlrenderpipelinestate/3750584-newvisiblefunctiontablewithdescr?language=objc -func (r_ RenderPipelineStateWrapper) NewVisibleFunctionTableWithDescriptorStage(descriptor IVisibleFunctionTableDescriptor, stage RenderStages) VisibleFunctionTableWrapper { - rv := objc.Call[VisibleFunctionTableWrapper](r_, objc.Sel("newVisibleFunctionTableWithDescriptor:stage:"), objc.Ptr(descriptor), stage) - rv.Autorelease() +// [Full Topic]: https://developer.apple.com/documentation/metal/mtlrenderpipelinestate/3750582-newintersectionfunctiontablewith?language=objc +func (r_ RenderPipelineStateObject) NewIntersectionFunctionTableWithDescriptorStage(descriptor IntersectionFunctionTableDescriptor, stage RenderStages) IntersectionFunctionTableObject { + rv := objc.Call[IntersectionFunctionTableObject](r_, objc.Sel("newIntersectionFunctionTableWithDescriptor:stage:"), objc.Ptr(descriptor), stage) return rv } -func (r_ RenderPipelineStateWrapper) HasFunctionHandleWithFunctionStage() bool { - return r_.RespondsToSelector(objc.Sel("functionHandleWithFunction:stage:")) +func (r_ RenderPipelineStateObject) HasNewRenderPipelineStateWithAdditionalBinaryFunctionsError() bool { + return r_.RespondsToSelector(objc.Sel("newRenderPipelineStateWithAdditionalBinaryFunctions:error:")) } -// Creates a function handle for a shader. [Full Topic] +// Creates a new pipeline state that’s a copy of the current pipeline state with additional shaders. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metal/mtlrenderpipelinestate/3750581-functionhandlewithfunction?language=objc -func (r_ RenderPipelineStateWrapper) FunctionHandleWithFunctionStage(function PFunction, stage RenderStages) FunctionHandleWrapper { - po0 := objc.WrapAsProtocol("MTLFunction", function) - rv := objc.Call[FunctionHandleWrapper](r_, objc.Sel("functionHandleWithFunction:stage:"), po0, stage) +// [Full Topic]: https://developer.apple.com/documentation/metal/mtlrenderpipelinestate/3750583-newrenderpipelinestatewithadditi?language=objc +func (r_ RenderPipelineStateObject) NewRenderPipelineStateWithAdditionalBinaryFunctionsError(additionalBinaryFunctions RenderPipelineFunctionsDescriptor, error foundation.Error) RenderPipelineStateObject { + rv := objc.Call[RenderPipelineStateObject](r_, objc.Sel("newRenderPipelineStateWithAdditionalBinaryFunctions:error:"), objc.Ptr(additionalBinaryFunctions), objc.Ptr(error)) return rv } -func (r_ RenderPipelineStateWrapper) HasImageblockMemoryLengthForDimensions() bool { - return r_.RespondsToSelector(objc.Sel("imageblockMemoryLengthForDimensions:")) +func (r_ RenderPipelineStateObject) HasNewVisibleFunctionTableWithDescriptorStage() bool { + return r_.RespondsToSelector(objc.Sel("newVisibleFunctionTableWithDescriptor:stage:")) } -// Returns the length of an imageblock’s memory for the specified imageblock dimensions. [Full Topic] +// Creates a new visible function table. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metal/mtlrenderpipelinestate/2928216-imageblockmemorylengthfordimensi?language=objc -func (r_ RenderPipelineStateWrapper) ImageblockMemoryLengthForDimensions(imageblockDimensions Size) uint { - rv := objc.Call[uint](r_, objc.Sel("imageblockMemoryLengthForDimensions:"), imageblockDimensions) +// [Full Topic]: https://developer.apple.com/documentation/metal/mtlrenderpipelinestate/3750584-newvisiblefunctiontablewithdescr?language=objc +func (r_ RenderPipelineStateObject) NewVisibleFunctionTableWithDescriptorStage(descriptor VisibleFunctionTableDescriptor, stage RenderStages) VisibleFunctionTableObject { + rv := objc.Call[VisibleFunctionTableObject](r_, objc.Sel("newVisibleFunctionTableWithDescriptor:stage:"), objc.Ptr(descriptor), stage) return rv } -func (r_ RenderPipelineStateWrapper) HasDevice() bool { - return r_.RespondsToSelector(objc.Sel("device")) +func (r_ RenderPipelineStateObject) HasThreadgroupSizeMatchesTileSize() bool { + return r_.RespondsToSelector(objc.Sel("threadgroupSizeMatchesTileSize")) } -// The device instance that creates the pipeline state. [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/1514706-device?language=objc -func (r_ RenderPipelineStateWrapper) Device() DeviceWrapper { - rv := objc.Call[DeviceWrapper](r_, objc.Sel("device")) +// [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 } -func (r_ RenderPipelineStateWrapper) HasMaxTotalThreadsPerThreadgroup() bool { +func (r_ RenderPipelineStateObject) HasMaxTotalThreadsPerThreadgroup() bool { return r_.RespondsToSelector(objc.Sel("maxTotalThreadsPerThreadgroup")) } // 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/2866352-maxtotalthreadsperthreadgroup?language=objc -func (r_ RenderPipelineStateWrapper) MaxTotalThreadsPerThreadgroup() uint { +func (r_ RenderPipelineStateObject) MaxTotalThreadsPerThreadgroup() uint { rv := objc.Call[uint](r_, objc.Sel("maxTotalThreadsPerThreadgroup")) return rv } -func (r_ RenderPipelineStateWrapper) HasThreadgroupSizeMatchesTileSize() bool { - return r_.RespondsToSelector(objc.Sel("threadgroupSizeMatchesTileSize")) +func (r_ RenderPipelineStateObject) HasDevice() bool { + return r_.RespondsToSelector(objc.Sel("device")) } -// A Boolean value that indicates whether the pipeline state needs a threadgroup’s size to equal a tile’s size. [Full Topic] +// The device instance that creates the pipeline state. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metal/mtlrenderpipelinestate/2866353-threadgroupsizematchestilesize?language=objc -func (r_ RenderPipelineStateWrapper) ThreadgroupSizeMatchesTileSize() bool { - rv := objc.Call[bool](r_, objc.Sel("threadgroupSizeMatchesTileSize")) +// [Full Topic]: https://developer.apple.com/documentation/metal/mtlrenderpipelinestate/1514706-device?language=objc +func (r_ RenderPipelineStateObject) Device() DeviceObject { + rv := objc.Call[DeviceObject](r_, objc.Sel("device")) return rv } -func (r_ RenderPipelineStateWrapper) HasLabel() bool { - return r_.RespondsToSelector(objc.Sel("label")) +func (r_ RenderPipelineStateObject) HasImageblockSampleLength() bool { + return r_.RespondsToSelector(objc.Sel("imageblockSampleLength")) } -// A string that helps you identify the render pipeline state during debugging. [Full Topic] +// 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/1514621-label?language=objc -func (r_ RenderPipelineStateWrapper) Label() string { - rv := objc.Call[string](r_, objc.Sel("label")) +// [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 } -func (r_ RenderPipelineStateWrapper) HasSupportIndirectCommandBuffers() bool { +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_ RenderPipelineStateWrapper) SupportIndirectCommandBuffers() bool { +func (r_ RenderPipelineStateObject) SupportIndirectCommandBuffers() bool { rv := objc.Call[bool](r_, objc.Sel("supportIndirectCommandBuffers")) return rv } -func (r_ RenderPipelineStateWrapper) HasImageblockSampleLength() bool { - return r_.RespondsToSelector(objc.Sel("imageblockSampleLength")) +func (r_ RenderPipelineStateObject) HasLabel() bool { + return r_.RespondsToSelector(objc.Sel("label")) } -// The memory size, in byes, of the render pipeline’s imageblock for a single sample. [Full Topic] +// A string that helps you identify the render pipeline state during debugging. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metal/mtlrenderpipelinestate/2928215-imageblocksamplelength?language=objc -func (r_ RenderPipelineStateWrapper) ImageblockSampleLength() uint { - rv := objc.Call[uint](r_, objc.Sel("imageblockSampleLength")) +// [Full Topic]: https://developer.apple.com/documentation/metal/mtlrenderpipelinestate/1514621-label?language=objc +func (r_ RenderPipelineStateObject) Label() string { + rv := objc.Call[string](r_, objc.Sel("label")) return rv } diff --git a/macos/metal/resource.gen.go b/macos/metal/resource_protocol.gen.go similarity index 75% rename from macos/metal/resource.gen.go rename to macos/metal/resource_protocol.gen.go index ee01bc93..5f54d9cd 100644 --- a/macos/metal/resource.gen.go +++ b/macos/metal/resource_protocol.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package metal @@ -11,44 +11,48 @@ import ( // [Full Topic]: https://developer.apple.com/documentation/metal/mtlresource?language=objc type PResource interface { // optional - IsAliasable() bool - HasIsAliasable() bool + SetPurgeableState(state PurgeableState) PurgeableState + HasSetPurgeableState() bool // optional MakeAliasable() HasMakeAliasable() bool // optional - SetPurgeableState(state PurgeableState) PurgeableState - HasSetPurgeableState() bool + IsAliasable() bool + HasIsAliasable() bool // optional - Device() PDevice + Device() DeviceObject HasDevice() bool // optional - AllocatedSize() uint - HasAllocatedSize() bool + HazardTrackingMode() HazardTrackingMode + HasHazardTrackingMode() bool // optional - Heap() PHeap - HasHeap() bool + ResourceOptions() ResourceOptions + HasResourceOptions() bool // optional CpuCacheMode() CPUCacheMode HasCpuCacheMode() bool // optional - StorageMode() StorageMode - HasStorageMode() bool + HeapOffset() uint + HasHeapOffset() bool // optional - ResourceOptions() ResourceOptions - HasResourceOptions() bool + AllocatedSize() uint + HasAllocatedSize() bool // optional - HeapOffset() uint - HasHeapOffset() bool + StorageMode() StorageMode + HasStorageMode() bool + + // optional + Heap() HeapObject + HasHeap() bool // optional SetLabel(value string) @@ -57,167 +61,166 @@ type PResource interface { // optional Label() string HasLabel() bool - - // optional - HazardTrackingMode() HazardTrackingMode - HasHazardTrackingMode() bool } -// A concrete type wrapper for the [PResource] protocol. -type ResourceWrapper struct { +// ensure impl type implements protocol interface +var _ PResource = (*ResourceObject)(nil) + +// A concrete type for the [PResource] protocol. +type ResourceObject struct { objc.Object } -func (r_ ResourceWrapper) 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_ ResourceWrapper) 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 } -func (r_ ResourceWrapper) HasMakeAliasable() bool { +func (r_ ResourceObject) HasMakeAliasable() bool { return r_.RespondsToSelector(objc.Sel("makeAliasable")) } // Allows future heap resource allocations to alias against the resource’s memory. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/metal/mtlresource/1771705-makealiasable?language=objc -func (r_ ResourceWrapper) MakeAliasable() { +func (r_ ResourceObject) MakeAliasable() { objc.Call[objc.Void](r_, objc.Sel("makeAliasable")) } -func (r_ ResourceWrapper) 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_ ResourceWrapper) 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 } -func (r_ ResourceWrapper) HasDevice() bool { +func (r_ ResourceObject) HasDevice() bool { return r_.RespondsToSelector(objc.Sel("device")) } // The device object that created the resource. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/metal/mtlresource/1515442-device?language=objc -func (r_ ResourceWrapper) Device() DeviceWrapper { - rv := objc.Call[DeviceWrapper](r_, objc.Sel("device")) +func (r_ ResourceObject) Device() DeviceObject { + rv := objc.Call[DeviceObject](r_, objc.Sel("device")) return rv } -func (r_ ResourceWrapper) HasAllocatedSize() bool { - return r_.RespondsToSelector(objc.Sel("allocatedSize")) +func (r_ ResourceObject) HasHazardTrackingMode() bool { + return r_.RespondsToSelector(objc.Sel("hazardTrackingMode")) } -// The size of the resource, in bytes. [Full Topic] +// A mode that determines whether Metal tracks and synchronizes resource access. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metal/mtlresource/2915287-allocatedsize?language=objc -func (r_ ResourceWrapper) AllocatedSize() uint { - rv := objc.Call[uint](r_, objc.Sel("allocatedSize")) +// [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 } -func (r_ ResourceWrapper) 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_ ResourceWrapper) Heap() HeapWrapper { - rv := objc.Call[HeapWrapper](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_ ResourceWrapper) HasCpuCacheMode() bool { +func (r_ ResourceObject) HasCpuCacheMode() bool { return r_.RespondsToSelector(objc.Sel("cpuCacheMode")) } // The CPU cache mode that defines the CPU mapping of the resource. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/metal/mtlresource/1516127-cpucachemode?language=objc -func (r_ ResourceWrapper) CpuCacheMode() CPUCacheMode { +func (r_ ResourceObject) CpuCacheMode() CPUCacheMode { rv := objc.Call[CPUCacheMode](r_, objc.Sel("cpuCacheMode")) return rv } -func (r_ ResourceWrapper) HasStorageMode() bool { - return r_.RespondsToSelector(objc.Sel("storageMode")) +func (r_ ResourceObject) HasHeapOffset() bool { + return r_.RespondsToSelector(objc.Sel("heapOffset")) } -// The location and access permissions of the resource. [Full Topic] +// 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/1515477-storagemode?language=objc -func (r_ ResourceWrapper) StorageMode() StorageMode { - rv := objc.Call[StorageMode](r_, objc.Sel("storageMode")) +// [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_ ResourceWrapper) HasResourceOptions() bool { - return r_.RespondsToSelector(objc.Sel("resourceOptions")) +func (r_ ResourceObject) HasAllocatedSize() bool { + return r_.RespondsToSelector(objc.Sel("allocatedSize")) } -// The storage mode, CPU cache mode, and hazard tracking mode of the resource. [Full Topic] +// The size of the resource, in bytes. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metal/mtlresource/3131694-resourceoptions?language=objc -func (r_ ResourceWrapper) ResourceOptions() ResourceOptions { - rv := objc.Call[ResourceOptions](r_, objc.Sel("resourceOptions")) +// [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_ ResourceWrapper) HasHeapOffset() bool { - return r_.RespondsToSelector(objc.Sel("heapOffset")) +func (r_ ResourceObject) HasStorageMode() bool { + return r_.RespondsToSelector(objc.Sel("storageMode")) } -// 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] +// The location and access permissions of the resource. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metal/mtlresource/3043406-heapoffset?language=objc -func (r_ ResourceWrapper) HeapOffset() uint { - rv := objc.Call[uint](r_, objc.Sel("heapOffset")) +// [Full Topic]: https://developer.apple.com/documentation/metal/mtlresource/1515477-storagemode?language=objc +func (r_ ResourceObject) StorageMode() StorageMode { + rv := objc.Call[StorageMode](r_, objc.Sel("storageMode")) return rv } -func (r_ ResourceWrapper) HasSetLabel() bool { +func (r_ ResourceObject) HasHeap() bool { + return r_.RespondsToSelector(objc.Sel("heap")) +} + +// The heap on which the resource is allocated, if any. [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")) + return rv +} + +func (r_ ResourceObject) HasSetLabel() bool { return r_.RespondsToSelector(objc.Sel("setLabel:")) } // A string that identifies the resource. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/metal/mtlresource/1515814-label?language=objc -func (r_ ResourceWrapper) SetLabel(value string) { +func (r_ ResourceObject) SetLabel(value string) { objc.Call[objc.Void](r_, objc.Sel("setLabel:"), value) } -func (r_ ResourceWrapper) HasLabel() bool { +func (r_ ResourceObject) HasLabel() bool { return r_.RespondsToSelector(objc.Sel("label")) } // A string that identifies the resource. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/metal/mtlresource/1515814-label?language=objc -func (r_ ResourceWrapper) Label() string { +func (r_ ResourceObject) Label() string { rv := objc.Call[string](r_, objc.Sel("label")) return rv } - -func (r_ ResourceWrapper) 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_ ResourceWrapper) HazardTrackingMode() HazardTrackingMode { - rv := objc.Call[HazardTrackingMode](r_, objc.Sel("hazardTrackingMode")) - return rv -} diff --git a/macos/metal/resource_state_command_encoder.gen.go b/macos/metal/resource_state_command_encoder_protocol.gen.go similarity index 51% rename from macos/metal/resource_state_command_encoder.gen.go rename to macos/metal/resource_state_command_encoder_protocol.gen.go index 9285e6d2..983d0b51 100644 --- a/macos/metal/resource_state_command_encoder.gen.go +++ b/macos/metal/resource_state_command_encoder_protocol.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package metal @@ -11,72 +11,91 @@ import ( // [Full Topic]: https://developer.apple.com/documentation/metal/mtlresourcestatecommandencoder?language=objc type PResourceStateCommandEncoder interface { // optional - UpdateTextureMappingsModeRegionsMipLevelsSlicesNumRegions(texture TextureWrapper, mode SparseTextureMappingMode, regions *Region, mipLevels *uint, slices *uint, numRegions uint) + UpdateTextureMappingsModeRegionsMipLevelsSlicesNumRegions(texture TextureObject, mode SparseTextureMappingMode, regions *Region, mipLevels *uint, slices *uint, numRegions uint) HasUpdateTextureMappingsModeRegionsMipLevelsSlicesNumRegions() bool // optional - UpdateTextureMappingModeIndirectBufferIndirectBufferOffset(texture TextureWrapper, mode SparseTextureMappingMode, indirectBuffer BufferWrapper, indirectBufferOffset uint) + WaitForFence(fence FenceObject) + HasWaitForFence() bool + + // optional + UpdateTextureMappingModeIndirectBufferIndirectBufferOffset(texture TextureObject, mode SparseTextureMappingMode, indirectBuffer BufferObject, indirectBufferOffset uint) HasUpdateTextureMappingModeIndirectBufferIndirectBufferOffset() bool // optional - UpdateFence(fence FenceWrapper) + UpdateFence(fence FenceObject) HasUpdateFence() bool // optional - WaitForFence(fence FenceWrapper) - HasWaitForFence() bool + UpdateTextureMappingModeRegionMipLevelSlice(texture TextureObject, mode SparseTextureMappingMode, region Region, mipLevel uint, slice uint) + HasUpdateTextureMappingModeRegionMipLevelSlice() bool } -// A concrete type wrapper for the [PResourceStateCommandEncoder] protocol. -type ResourceStateCommandEncoderWrapper struct { +// ensure impl type implements protocol interface +var _ PResourceStateCommandEncoder = (*ResourceStateCommandEncoderObject)(nil) + +// A concrete type for the [PResourceStateCommandEncoder] protocol. +type ResourceStateCommandEncoderObject struct { objc.Object } -func (r_ ResourceStateCommandEncoderWrapper) HasUpdateTextureMappingsModeRegionsMipLevelsSlicesNumRegions() bool { +func (r_ ResourceStateCommandEncoderObject) HasUpdateTextureMappingsModeRegionsMipLevelsSlicesNumRegions() bool { return r_.RespondsToSelector(objc.Sel("updateTextureMappings:mode:regions:mipLevels:slices:numRegions:")) } // Encodes a command to update memory mappings for multiple regions inside a texture. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/metal/mtlresourcestatecommandencoder/3043995-updatetexturemappings?language=objc -func (r_ ResourceStateCommandEncoderWrapper) UpdateTextureMappingsModeRegionsMipLevelsSlicesNumRegions(texture PTexture, mode SparseTextureMappingMode, regions *Region, mipLevels *uint, slices *uint, numRegions uint) { +func (r_ ResourceStateCommandEncoderObject) UpdateTextureMappingsModeRegionsMipLevelsSlicesNumRegions(texture TextureObject, mode SparseTextureMappingMode, regions *Region, mipLevels *uint, slices *uint, numRegions uint) { po0 := objc.WrapAsProtocol("MTLTexture", texture) objc.Call[objc.Void](r_, objc.Sel("updateTextureMappings:mode:regions:mipLevels:slices:numRegions:"), po0, mode, regions, mipLevels, slices, numRegions) } -func (r_ ResourceStateCommandEncoderWrapper) HasUpdateTextureMappingModeIndirectBufferIndirectBufferOffset() bool { +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:")) } // Encodes a command to update a texture’s memory mappings, specifying the parameters indirectly. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/metal/mtlresourcestatecommandencoder/3043993-updatetexturemapping?language=objc -func (r_ ResourceStateCommandEncoderWrapper) UpdateTextureMappingModeIndirectBufferIndirectBufferOffset(texture PTexture, mode SparseTextureMappingMode, indirectBuffer PBuffer, indirectBufferOffset uint) { +func (r_ ResourceStateCommandEncoderObject) UpdateTextureMappingModeIndirectBufferIndirectBufferOffset(texture TextureObject, mode SparseTextureMappingMode, indirectBuffer BufferObject, indirectBufferOffset uint) { po0 := objc.WrapAsProtocol("MTLTexture", texture) po2 := objc.WrapAsProtocol("MTLBuffer", indirectBuffer) objc.Call[objc.Void](r_, objc.Sel("updateTextureMapping:mode:indirectBuffer:indirectBufferOffset:"), po0, mode, po2, indirectBufferOffset) } -func (r_ ResourceStateCommandEncoderWrapper) HasUpdateFence() bool { +func (r_ ResourceStateCommandEncoderObject) HasUpdateFence() bool { return r_.RespondsToSelector(objc.Sel("updateFence:")) } // Updates the given fence to capture all GPU work that the command encoder has enqueued up to this point. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/metal/mtlresourcestatecommandencoder/3114014-updatefence?language=objc -func (r_ ResourceStateCommandEncoderWrapper) UpdateFence(fence PFence) { +func (r_ ResourceStateCommandEncoderObject) UpdateFence(fence FenceObject) { po0 := objc.WrapAsProtocol("MTLFence", fence) objc.Call[objc.Void](r_, objc.Sel("updateFence:"), po0) } -func (r_ ResourceStateCommandEncoderWrapper) HasWaitForFence() bool { - return r_.RespondsToSelector(objc.Sel("waitForFence:")) +func (r_ ResourceStateCommandEncoderObject) HasUpdateTextureMappingModeRegionMipLevelSlice() bool { + return r_.RespondsToSelector(objc.Sel("updateTextureMapping:mode:region:mipLevel:slice:")) } -// Prevents the command encoder from enqueuing further GPU commands until the given fence is reached. [Full Topic] +// Encodes a command to update the texture mappings for a region in a single texture mipmap. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metal/mtlresourcestatecommandencoder/3114015-waitforfence?language=objc -func (r_ ResourceStateCommandEncoderWrapper) WaitForFence(fence PFence) { - po0 := objc.WrapAsProtocol("MTLFence", fence) - objc.Call[objc.Void](r_, objc.Sel("waitForFence:"), po0) +// [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) } diff --git a/macos/metal/resource_state_pass_descriptor.gen.go b/macos/metal/resource_state_pass_descriptor.gen.go index 49c64e52..b2720488 100644 --- a/macos/metal/resource_state_pass_descriptor.gen.go +++ b/macos/metal/resource_state_pass_descriptor.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package metal @@ -39,10 +39,6 @@ func (rc _ResourceStatePassDescriptorClass) Alloc() ResourceStatePassDescriptor return rv } -func ResourceStatePassDescriptor_Alloc() ResourceStatePassDescriptor { - return ResourceStatePassDescriptorClass.Alloc() -} - func (rc _ResourceStatePassDescriptorClass) New() ResourceStatePassDescriptor { rv := objc.Call[ResourceStatePassDescriptor](rc, objc.Sel("new")) rv.Autorelease() 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 296ef5a1..efb6f95a 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 @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package metal @@ -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() CounterSampleBufferWrapper + 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] @@ -45,10 +45,6 @@ func (rc _ResourceStatePassSampleBufferAttachmentDescriptorClass) Alloc() Resour return rv } -func ResourceStatePassSampleBufferAttachmentDescriptor_Alloc() ResourceStatePassSampleBufferAttachmentDescriptor { - return ResourceStatePassSampleBufferAttachmentDescriptorClass.Alloc() -} - func (rc _ResourceStatePassSampleBufferAttachmentDescriptorClass) New() ResourceStatePassSampleBufferAttachmentDescriptor { rv := objc.Call[ResourceStatePassSampleBufferAttachmentDescriptor](rc, objc.Sel("new")) rv.Autorelease() @@ -64,19 +60,27 @@ func (r_ ResourceStatePassSampleBufferAttachmentDescriptor) Init() ResourceState 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) 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:"), objc.Ptr(valueObject)) } // The index the Metal device object should use to store GPU counters when ending the resource state pass. [Full Topic] @@ -94,25 +98,17 @@ func (r_ ResourceStatePassSampleBufferAttachmentDescriptor) SetEndOfEncoderSampl objc.Call[objc.Void](r_, objc.Sel("setEndOfEncoderSampleIndex:"), value) } -// 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() CounterSampleBufferWrapper { - rv := objc.Call[CounterSampleBufferWrapper](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:"), objc.Ptr(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) } 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 f9076585..960c5efb 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 @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package metal @@ -18,8 +18,8 @@ type _ResourceStatePassSampleBufferAttachmentDescriptorArrayClass struct { // An interface definition for the [ResourceStatePassSampleBufferAttachmentDescriptorArray] class. type IResourceStatePassSampleBufferAttachmentDescriptorArray interface { objc.IObject - ObjectAtIndexedSubscript(attachmentIndex uint) ResourceStatePassSampleBufferAttachmentDescriptor SetObjectAtIndexedSubscript(attachment IResourceStatePassSampleBufferAttachmentDescriptor, attachmentIndex uint) + ObjectAtIndexedSubscript(attachmentIndex uint) ResourceStatePassSampleBufferAttachmentDescriptor } // An array of sample buffer attachments for a resource state pass. [Full Topic] @@ -40,10 +40,6 @@ func (rc _ResourceStatePassSampleBufferAttachmentDescriptorArrayClass) Alloc() R return rv } -func ResourceStatePassSampleBufferAttachmentDescriptorArray_Alloc() ResourceStatePassSampleBufferAttachmentDescriptorArray { - return ResourceStatePassSampleBufferAttachmentDescriptorArrayClass.Alloc() -} - func (rc _ResourceStatePassSampleBufferAttachmentDescriptorArrayClass) New() ResourceStatePassSampleBufferAttachmentDescriptorArray { rv := objc.Call[ResourceStatePassSampleBufferAttachmentDescriptorArray](rc, objc.Sel("new")) rv.Autorelease() @@ -59,6 +55,13 @@ 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:"), objc.Ptr(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 @@ -66,10 +69,3 @@ 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:"), objc.Ptr(attachment), attachmentIndex) -} diff --git a/macos/metal/sampler_descriptor.gen.go b/macos/metal/sampler_descriptor.gen.go index 2f9deb20..ba61d534 100644 --- a/macos/metal/sampler_descriptor.gen.go +++ b/macos/metal/sampler_descriptor.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package metal @@ -18,34 +18,34 @@ type _SamplerDescriptorClass struct { // An interface definition for the [SamplerDescriptor] class. type ISamplerDescriptor interface { objc.IObject - NormalizedCoordinates() bool - SetNormalizedCoordinates(value bool) - MagFilter() SamplerMinMagFilter - SetMagFilter(value SamplerMinMagFilter) - LodMinClamp() float64 - SetLodMinClamp(value float64) - MipFilter() SamplerMipFilter - SetMipFilter(value SamplerMipFilter) - MinFilter() SamplerMinMagFilter - SetMinFilter(value SamplerMinMagFilter) - TAddressMode() SamplerAddressMode - SetTAddressMode(value SamplerAddressMode) - SAddressMode() SamplerAddressMode - SetSAddressMode(value SamplerAddressMode) + Label() string + SetLabel(value string) LodMaxClamp() float64 SetLodMaxClamp(value float64) - RAddressMode() SamplerAddressMode - SetRAddressMode(value SamplerAddressMode) BorderColor() SamplerBorderColor SetBorderColor(value SamplerBorderColor) CompareFunction() CompareFunction SetCompareFunction(value CompareFunction) - Label() string - SetLabel(value string) + MagFilter() SamplerMinMagFilter + SetMagFilter(value SamplerMinMagFilter) LodAverage() bool SetLodAverage(value bool) + SAddressMode() SamplerAddressMode + SetSAddressMode(value SamplerAddressMode) + LodMinClamp() float64 + SetLodMinClamp(value float64) + 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) } @@ -68,10 +68,6 @@ func (sc _SamplerDescriptorClass) Alloc() SamplerDescriptor { return rv } -func SamplerDescriptor_Alloc() SamplerDescriptor { - return SamplerDescriptorClass.Alloc() -} - func (sc _SamplerDescriptorClass) New() SamplerDescriptor { rv := objc.Call[SamplerDescriptor](sc, objc.Sel("new")) rv.Autorelease() @@ -87,94 +83,94 @@ func (s_ SamplerDescriptor) Init() SamplerDescriptor { return rv } -// A Boolean value that indicates whether texture coordinates are normalized to the range [0.0, 1.0]. [Full Topic] +// A string that identifies the sampler. [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/1515771-label?language=objc +func (s_ SamplerDescriptor) Label() string { + rv := objc.Call[string](s_, objc.Sel("label")) return rv } -// A Boolean value that indicates whether texture coordinates are normalized to the range [0.0, 1.0]. [Full Topic] +// A string that identifies the sampler. [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/1515771-label?language=objc +func (s_ SamplerDescriptor) SetLabel(value string) { + objc.Call[objc.Void](s_, objc.Sel("setLabel:"), value) } -// The filtering operation for combining pixels within one mipmap level when the sample footprint is smaller than a pixel (magnification). [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/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/1516234-lodmaxclamp?language=objc +func (s_ SamplerDescriptor) LodMaxClamp() float64 { + rv := objc.Call[float64](s_, objc.Sel("lodMaxClamp")) 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 maximum level of detail (LOD) to use when sampling from a texture. [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/1516234-lodmaxclamp?language=objc +func (s_ SamplerDescriptor) SetLodMaxClamp(value float64) { + objc.Call[objc.Void](s_, objc.Sel("setLodMaxClamp:"), value) } -// The minimum level of detail (LOD) to use when sampling from a texture. [Full Topic] +// The border color for clamped texture values. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metal/mtlsamplerdescriptor/1515629-lodminclamp?language=objc -func (s_ SamplerDescriptor) LodMinClamp() float64 { - rv := objc.Call[float64](s_, objc.Sel("lodMinClamp")) +// [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 } -// The minimum level of detail (LOD) to use when sampling from a texture. [Full Topic] +// The border color for clamped texture values. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metal/mtlsamplerdescriptor/1515629-lodminclamp?language=objc -func (s_ SamplerDescriptor) SetLodMinClamp(value float64) { - objc.Call[objc.Void](s_, objc.Sel("setLodMinClamp:"), 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 filtering option for combining pixels between two mipmap levels. [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/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/1516001-comparefunction?language=objc +func (s_ SamplerDescriptor) CompareFunction() CompareFunction { + rv := objc.Call[CompareFunction](s_, objc.Sel("compareFunction")) return rv } -// The filtering option for combining pixels between two mipmap levels. [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/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/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] +// 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/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/1515926-magfilter?language=objc +func (s_ SamplerDescriptor) MagFilter() SamplerMinMagFilter { + rv := objc.Call[SamplerMinMagFilter](s_, objc.Sel("magFilter")) return rv } -// The filtering option for combining pixels within one mipmap level when the sample footprint is larger than a pixel (minification). [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/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/1515926-magfilter?language=objc +func (s_ SamplerDescriptor) SetMagFilter(value SamplerMinMagFilter) { + objc.Call[objc.Void](s_, objc.Sel("setMagFilter:"), value) } -// The address mode for the texture height (t) coordinate. [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/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/1615844-lodaverage?language=objc +func (s_ SamplerDescriptor) LodAverage() bool { + rv := objc.Call[bool](s_, objc.Sel("lodAverage")) return rv } -// The address mode for the texture height (t) coordinate. [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/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/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 width (s) coordinate. [Full Topic] @@ -192,19 +188,19 @@ func (s_ SamplerDescriptor) SetSAddressMode(value SamplerAddressMode) { objc.Call[objc.Void](s_, objc.Sel("setSAddressMode:"), value) } -// The maximum level of detail (LOD) to use when sampling from a texture. [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/1516234-lodmaxclamp?language=objc -func (s_ SamplerDescriptor) LodMaxClamp() float64 { - rv := objc.Call[float64](s_, objc.Sel("lodMaxClamp")) +// [Full Topic]: https://developer.apple.com/documentation/metal/mtlsamplerdescriptor/1515629-lodminclamp?language=objc +func (s_ SamplerDescriptor) LodMinClamp() float64 { + rv := objc.Call[float64](s_, objc.Sel("lodMinClamp")) return rv } -// The maximum level of detail (LOD) to use when sampling from a texture. [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/1516234-lodmaxclamp?language=objc -func (s_ SamplerDescriptor) SetLodMaxClamp(value float64) { - objc.Call[objc.Void](s_, objc.Sel("setLodMaxClamp:"), value) +// [Full Topic]: https://developer.apple.com/documentation/metal/mtlsamplerdescriptor/1515629-lodminclamp?language=objc +func (s_ SamplerDescriptor) SetLodMinClamp(value float64) { + objc.Call[objc.Void](s_, objc.Sel("setLodMinClamp:"), value) } // The address mode for the texture depth (r) coordinate. [Full Topic] @@ -222,79 +218,79 @@ func (s_ SamplerDescriptor) SetRAddressMode(value SamplerAddressMode) { objc.Call[objc.Void](s_, objc.Sel("setRAddressMode:"), value) } -// The border color for clamped texture values. [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/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/1516289-normalizedcoordinates?language=objc +func (s_ SamplerDescriptor) NormalizedCoordinates() bool { + rv := objc.Call[bool](s_, objc.Sel("normalizedCoordinates")) return rv } -// The border color for clamped texture values. [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/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/1516289-normalizedcoordinates?language=objc +func (s_ SamplerDescriptor) SetNormalizedCoordinates(value bool) { + objc.Call[objc.Void](s_, objc.Sel("setNormalizedCoordinates:"), value) } -// The sampler comparison function used when performing a sample compare operation on a depth texture. [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/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/1516164-maxanisotropy?language=objc +func (s_ SamplerDescriptor) MaxAnisotropy() uint { + rv := objc.Call[uint](s_, objc.Sel("maxAnisotropy")) return rv } -// The sampler comparison function used when performing a sample compare operation on a depth texture. [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/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/1516164-maxanisotropy?language=objc +func (s_ SamplerDescriptor) SetMaxAnisotropy(value uint) { + objc.Call[objc.Void](s_, objc.Sel("setMaxAnisotropy:"), value) } -// A string that identifies the sampler. [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/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/1515792-minfilter?language=objc +func (s_ SamplerDescriptor) MinFilter() SamplerMinMagFilter { + rv := objc.Call[SamplerMinMagFilter](s_, objc.Sel("minFilter")) return rv } -// A string that identifies the sampler. [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/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/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 filtering option for combining pixels between two mipmap levels. [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/1515553-mipfilter?language=objc +func (s_ SamplerDescriptor) MipFilter() SamplerMipFilter { + rv := objc.Call[SamplerMipFilter](s_, objc.Sel("mipFilter")) 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 filtering option for combining pixels between two mipmap levels. [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/1515553-mipfilter?language=objc +func (s_ SamplerDescriptor) SetMipFilter(value SamplerMipFilter) { + objc.Call[objc.Void](s_, objc.Sel("setMipFilter:"), value) } -// The number of samples that can be taken to improve the quality of sample footprints that are anisotropic. [Full Topic] +// The address mode for the texture height (t) coordinate. [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/1515900-taddressmode?language=objc +func (s_ SamplerDescriptor) TAddressMode() SamplerAddressMode { + rv := objc.Call[SamplerAddressMode](s_, objc.Sel("tAddressMode")) return rv } -// The number of samples that can be taken to improve the quality of sample footprints that are anisotropic. [Full Topic] +// The address mode for the texture height (t) coordinate. [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/1515900-taddressmode?language=objc +func (s_ SamplerDescriptor) SetTAddressMode(value SamplerAddressMode) { + objc.Call[objc.Void](s_, objc.Sel("setTAddressMode:"), value) } // A Boolean value that specifies whether the sampler can be encoded into an argument buffer. [Full Topic] diff --git a/macos/metal/sampler_state.gen.go b/macos/metal/sampler_state_protocol.gen.go similarity index 63% rename from macos/metal/sampler_state.gen.go rename to macos/metal/sampler_state_protocol.gen.go index f3d5b429..72b5d6b9 100644 --- a/macos/metal/sampler_state.gen.go +++ b/macos/metal/sampler_state_protocol.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package metal @@ -11,7 +11,7 @@ import ( // [Full Topic]: https://developer.apple.com/documentation/metal/mtlsamplerstate?language=objc type PSamplerState interface { // optional - Device() PDevice + Device() DeviceObject HasDevice() bool // optional @@ -19,31 +19,34 @@ type PSamplerState interface { HasLabel() bool } -// A concrete type wrapper for the [PSamplerState] protocol. -type SamplerStateWrapper struct { +// ensure impl type implements protocol interface +var _ PSamplerState = (*SamplerStateObject)(nil) + +// A concrete type for the [PSamplerState] protocol. +type SamplerStateObject struct { objc.Object } -func (s_ SamplerStateWrapper) HasDevice() bool { +func (s_ SamplerStateObject) HasDevice() bool { return s_.RespondsToSelector(objc.Sel("device")) } // The device object that created the sampler. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/metal/mtlsamplerstate/1515871-device?language=objc -func (s_ SamplerStateWrapper) Device() DeviceWrapper { - rv := objc.Call[DeviceWrapper](s_, objc.Sel("device")) +func (s_ SamplerStateObject) Device() DeviceObject { + rv := objc.Call[DeviceObject](s_, objc.Sel("device")) return rv } -func (s_ SamplerStateWrapper) HasLabel() bool { +func (s_ SamplerStateObject) HasLabel() bool { return s_.RespondsToSelector(objc.Sel("label")) } // A string that identifies the sampler. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/metal/mtlsamplerstate/1516329-label?language=objc -func (s_ SamplerStateWrapper) Label() string { +func (s_ SamplerStateObject) Label() string { rv := objc.Call[string](s_, objc.Sel("label")) return rv } diff --git a/macos/metal/shared_event_handle.gen.go b/macos/metal/shared_event_handle.gen.go index 983f6304..1f52254f 100644 --- a/macos/metal/shared_event_handle.gen.go +++ b/macos/metal/shared_event_handle.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package metal @@ -39,10 +39,6 @@ func (sc _SharedEventHandleClass) Alloc() SharedEventHandle { return rv } -func SharedEventHandle_Alloc() SharedEventHandle { - return SharedEventHandleClass.Alloc() -} - func (sc _SharedEventHandleClass) New() SharedEventHandle { rv := objc.Call[SharedEventHandle](sc, objc.Sel("new")) rv.Autorelease() diff --git a/macos/metal/shared_event_listener.gen.go b/macos/metal/shared_event_listener.gen.go index 255f2f62..a68a93fc 100644 --- a/macos/metal/shared_event_listener.gen.go +++ b/macos/metal/shared_event_listener.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package metal @@ -59,10 +59,6 @@ func (sc _SharedEventListenerClass) Alloc() SharedEventListener { return rv } -func SharedEventListener_Alloc() SharedEventListener { - return SharedEventListenerClass.Alloc() -} - func (sc _SharedEventListenerClass) New() SharedEventListener { rv := objc.Call[SharedEventListener](sc, objc.Sel("new")) rv.Autorelease() diff --git a/macos/metal/shared_event.gen.go b/macos/metal/shared_event_protocol.gen.go similarity index 71% rename from macos/metal/shared_event.gen.go rename to macos/metal/shared_event_protocol.gen.go index 2227fa0c..95f96994 100644 --- a/macos/metal/shared_event.gen.go +++ b/macos/metal/shared_event_protocol.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package metal @@ -15,7 +15,7 @@ type PSharedEvent interface { HasNotifyListenerAtValueBlock() bool // optional - NewSharedEventHandle() ISharedEventHandle + NewSharedEventHandle() SharedEventHandle HasNewSharedEventHandle() bool // optional @@ -27,54 +27,56 @@ type PSharedEvent interface { HasSignaledValue() bool } -// A concrete type wrapper for the [PSharedEvent] protocol. -type SharedEventWrapper struct { +// ensure impl type implements protocol interface +var _ PSharedEvent = (*SharedEventObject)(nil) + +// A concrete type for the [PSharedEvent] protocol. +type SharedEventObject struct { objc.Object } -func (s_ SharedEventWrapper) HasNotifyListenerAtValueBlock() bool { +func (s_ SharedEventObject) HasNotifyListenerAtValueBlock() bool { return s_.RespondsToSelector(objc.Sel("notifyListener:atValue:block:")) } // Schedules a notification handler to be called after the shareable event’s signal value equals or exceeds a given value. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/metal/mtlsharedevent/2966574-notifylistener?language=objc -func (s_ SharedEventWrapper) NotifyListenerAtValueBlock(listener ISharedEventListener, value uint64, block SharedEventNotificationBlock) { +func (s_ SharedEventObject) NotifyListenerAtValueBlock(listener SharedEventListener, value uint64, block SharedEventNotificationBlock) { objc.Call[objc.Void](s_, objc.Sel("notifyListener:atValue:block:"), objc.Ptr(listener), value, block) } -func (s_ SharedEventWrapper) HasNewSharedEventHandle() bool { +func (s_ SharedEventObject) HasNewSharedEventHandle() bool { return s_.RespondsToSelector(objc.Sel("newSharedEventHandle")) } // Creates a new shareable event handle. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/metal/mtlsharedevent/2981025-newsharedeventhandle?language=objc -func (s_ SharedEventWrapper) NewSharedEventHandle() SharedEventHandle { +func (s_ SharedEventObject) NewSharedEventHandle() SharedEventHandle { rv := objc.Call[SharedEventHandle](s_, objc.Sel("newSharedEventHandle")) - rv.Autorelease() return rv } -func (s_ SharedEventWrapper) HasSetSignaledValue() bool { +func (s_ SharedEventObject) HasSetSignaledValue() bool { return s_.RespondsToSelector(objc.Sel("setSignaledValue:")) } // The current signal value for the shareable event. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/metal/mtlsharedevent/2966575-signaledvalue?language=objc -func (s_ SharedEventWrapper) SetSignaledValue(value uint64) { +func (s_ SharedEventObject) SetSignaledValue(value uint64) { objc.Call[objc.Void](s_, objc.Sel("setSignaledValue:"), value) } -func (s_ SharedEventWrapper) HasSignaledValue() bool { +func (s_ SharedEventObject) HasSignaledValue() bool { return s_.RespondsToSelector(objc.Sel("signaledValue")) } // The current signal value for the shareable event. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/metal/mtlsharedevent/2966575-signaledvalue?language=objc -func (s_ SharedEventWrapper) SignaledValue() uint64 { +func (s_ SharedEventObject) SignaledValue() uint64 { rv := objc.Call[uint64](s_, objc.Sel("signaledValue")) return rv } diff --git a/macos/metal/shared_texture_handle.gen.go b/macos/metal/shared_texture_handle.gen.go index 6124ee28..a93a6bbc 100644 --- a/macos/metal/shared_texture_handle.gen.go +++ b/macos/metal/shared_texture_handle.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package metal @@ -18,7 +18,7 @@ type _SharedTextureHandleClass struct { // An interface definition for the [SharedTextureHandle] class. type ISharedTextureHandle interface { objc.IObject - Device() DeviceWrapper + Device() DeviceObject Label() string } @@ -40,10 +40,6 @@ func (sc _SharedTextureHandleClass) Alloc() SharedTextureHandle { return rv } -func SharedTextureHandle_Alloc() SharedTextureHandle { - return SharedTextureHandleClass.Alloc() -} - func (sc _SharedTextureHandleClass) New() SharedTextureHandle { rv := objc.Call[SharedTextureHandle](sc, objc.Sel("new")) rv.Autorelease() @@ -62,8 +58,8 @@ func (s_ SharedTextureHandle) Init() SharedTextureHandle { // The device object that created the texture. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/metal/mtlsharedtexturehandle/2967448-device?language=objc -func (s_ SharedTextureHandle) Device() DeviceWrapper { - rv := objc.Call[DeviceWrapper](s_, objc.Sel("device")) +func (s_ SharedTextureHandle) Device() DeviceObject { + rv := objc.Call[DeviceObject](s_, objc.Sel("device")) return rv } diff --git a/macos/metal/stage_input_output_descriptor.gen.go b/macos/metal/stage_input_output_descriptor.gen.go index 3d50f44a..9c6b1085 100644 --- a/macos/metal/stage_input_output_descriptor.gen.go +++ b/macos/metal/stage_input_output_descriptor.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package metal @@ -19,12 +19,12 @@ type _StageInputOutputDescriptorClass struct { type IStageInputOutputDescriptor interface { objc.IObject Reset() - IndexType() IndexType - SetIndexType(value IndexType) - IndexBufferIndex() uint - SetIndexBufferIndex(value uint) Layouts() BufferLayoutDescriptorArray Attributes() AttributeDescriptorArray + IndexBufferIndex() uint + SetIndexBufferIndex(value uint) + IndexType() IndexType + SetIndexType(value IndexType) } // An object that describes the input and output data of a function. [Full Topic] @@ -45,10 +45,6 @@ func (sc _StageInputOutputDescriptorClass) Alloc() StageInputOutputDescriptor { return rv } -func StageInputOutputDescriptor_Alloc() StageInputOutputDescriptor { - return StageInputOutputDescriptorClass.Alloc() -} - func (sc _StageInputOutputDescriptorClass) New() StageInputOutputDescriptor { rv := objc.Call[StageInputOutputDescriptor](sc, objc.Sel("new")) rv.Autorelease() @@ -86,19 +82,20 @@ func (s_ StageInputOutputDescriptor) Reset() { objc.Call[objc.Void](s_, objc.Sel("reset")) } -// 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 } // The location of the index buffer for a compute function using indexed thread addressing. [Full Topic] @@ -116,18 +113,17 @@ func (s_ StageInputOutputDescriptor) SetIndexBufferIndex(value uint) { objc.Call[objc.Void](s_, objc.Sel("setIndexBufferIndex:"), value) } -// 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) } diff --git a/macos/metal/stencil_descriptor.gen.go b/macos/metal/stencil_descriptor.gen.go index 3b054479..671d44d0 100644 --- a/macos/metal/stencil_descriptor.gen.go +++ b/macos/metal/stencil_descriptor.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package metal @@ -24,10 +24,10 @@ type IStencilDescriptor interface { SetDepthFailureOperation(value StencilOperation) WriteMask() uint32 SetWriteMask(value uint32) - ReadMask() uint32 - SetReadMask(value uint32) StencilCompareFunction() CompareFunction SetStencilCompareFunction(value CompareFunction) + ReadMask() uint32 + SetReadMask(value uint32) DepthStencilPassOperation() StencilOperation SetDepthStencilPassOperation(value StencilOperation) } @@ -50,10 +50,6 @@ func (sc _StencilDescriptorClass) Alloc() StencilDescriptor { return rv } -func StencilDescriptor_Alloc() StencilDescriptor { - return StencilDescriptorClass.Alloc() -} - func (sc _StencilDescriptorClass) New() StencilDescriptor { rv := objc.Call[StencilDescriptor](sc, objc.Sel("new")) rv.Autorelease() @@ -114,21 +110,6 @@ func (s_ StencilDescriptor) SetWriteMask(value uint32) { objc.Call[objc.Void](s_, objc.Sel("setWriteMask:"), 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 -func (s_ StencilDescriptor) ReadMask() uint32 { - rv := objc.Call[uint32](s_, objc.Sel("readMask")) - return rv -} - -// 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 -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 @@ -144,6 +125,21 @@ 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 +func (s_ StencilDescriptor) ReadMask() uint32 { + rv := objc.Call[uint32](s_, objc.Sel("readMask")) + return rv +} + +// 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 +func (s_ StencilDescriptor) SetReadMask(value uint32) { + objc.Call[objc.Void](s_, objc.Sel("setReadMask:"), 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 8ee02aa6..9a0f4714 100644 --- a/macos/metal/stitched_library_descriptor.gen.go +++ b/macos/metal/stitched_library_descriptor.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package metal @@ -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() []FunctionWrapper - SetFunctions(value []PFunction) } // A description of a new library of procedurally generated functions. [Full Topic] @@ -42,10 +42,6 @@ func (sc _StitchedLibraryDescriptorClass) Alloc() StitchedLibraryDescriptor { return rv } -func StitchedLibraryDescriptor_Alloc() StitchedLibraryDescriptor { - return StitchedLibraryDescriptorClass.Alloc() -} - func (sc _StitchedLibraryDescriptorClass) New() StitchedLibraryDescriptor { rv := objc.Call[StitchedLibraryDescriptor](sc, objc.Sel("new")) rv.Autorelease() @@ -61,6 +57,21 @@ 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 @@ -75,18 +86,3 @@ 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() []FunctionWrapper { - rv := objc.Call[[]FunctionWrapper](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 cf03240a..b1ec08a6 100644 --- a/macos/metal/struct_member.gen.go +++ b/macos/metal/struct_member.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package metal @@ -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] @@ -46,10 +46,6 @@ func (sc _StructMemberClass) Alloc() StructMember { return rv } -func StructMember_Alloc() StructMember { - return StructMemberClass.Alloc() -} - func (sc _StructMemberClass) New() StructMember { rv := objc.Call[StructMember](sc, objc.Sel("new")) rv.Autorelease() @@ -73,14 +69,6 @@ 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 @@ -97,19 +85,19 @@ func (s_ StructMember) TextureReferenceType() TextureReferenceType { return rv } -// The name of the struct member. [Full Topic] +// 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/1461944-name?language=objc -func (s_ StructMember) Name() string { - rv := objc.Call[string](s_, objc.Sel("name")) +// [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 index in the argument table that corresponds to the struct member. [Full Topic] +// The name of 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")) +// [Full Topic]: https://developer.apple.com/documentation/metal/mtlstructmember/1461944-name?language=objc +func (s_ StructMember) Name() string { + rv := objc.Call[string](s_, objc.Sel("name")) return rv } @@ -128,3 +116,11 @@ 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/struct_type.gen.go b/macos/metal/struct_type.gen.go index f2087b16..7a90f57a 100644 --- a/macos/metal/struct_type.gen.go +++ b/macos/metal/struct_type.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package metal @@ -40,10 +40,6 @@ func (sc _StructTypeClass) Alloc() StructType { return rv } -func StructType_Alloc() StructType { - return StructTypeClass.Alloc() -} - func (sc _StructTypeClass) New() StructType { rv := objc.Call[StructType](sc, objc.Sel("new")) rv.Autorelease() diff --git a/macos/metal/texture_descriptor.gen.go b/macos/metal/texture_descriptor.gen.go index ea53182c..f823730e 100644 --- a/macos/metal/texture_descriptor.gen.go +++ b/macos/metal/texture_descriptor.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package metal @@ -18,36 +18,38 @@ type _TextureDescriptorClass struct { // An interface definition for the [TextureDescriptor] class. type ITextureDescriptor interface { objc.IObject - Width() uint - SetWidth(value uint) + TextureType() TextureType + SetTextureType(value TextureType) MipmapLevelCount() uint SetMipmapLevelCount(value uint) - ArrayLength() uint - SetArrayLength(value uint) - Usage() TextureUsage - SetUsage(value TextureUsage) + ResourceOptions() ResourceOptions + SetResourceOptions(value ResourceOptions) + PixelFormat() PixelFormat + SetPixelFormat(value PixelFormat) Swizzle() TextureSwizzleChannels SetSwizzle(value TextureSwizzleChannels) - SampleCount() uint - SetSampleCount(value uint) + HazardTrackingMode() HazardTrackingMode + SetHazardTrackingMode(value HazardTrackingMode) + ArrayLength() uint + SetArrayLength(value uint) + AllowGPUOptimizedContents() bool + SetAllowGPUOptimizedContents(value bool) Height() uint SetHeight(value uint) + StorageMode() StorageMode + SetStorageMode(value StorageMode) + Width() uint + SetWidth(value uint) CpuCacheMode() CPUCacheMode SetCpuCacheMode(value CPUCacheMode) - TextureType() TextureType - SetTextureType(value TextureType) - AllowGPUOptimizedContents() bool - SetAllowGPUOptimizedContents(value bool) - PixelFormat() PixelFormat - SetPixelFormat(value PixelFormat) + Usage() TextureUsage + SetUsage(value TextureUsage) Depth() uint SetDepth(value uint) - StorageMode() StorageMode - SetStorageMode(value StorageMode) - ResourceOptions() ResourceOptions - SetResourceOptions(value ResourceOptions) - HazardTrackingMode() HazardTrackingMode - SetHazardTrackingMode(value HazardTrackingMode) + CompressionType() TextureCompressionType + SetCompressionType(value TextureCompressionType) + SampleCount() uint + SetSampleCount(value uint) } // An object that you use to configure new Metal texture objects. [Full Topic] @@ -68,10 +70,6 @@ func (tc _TextureDescriptorClass) Alloc() TextureDescriptor { return rv } -func TextureDescriptor_Alloc() TextureDescriptor { - return TextureDescriptorClass.Alloc() -} - func (tc _TextureDescriptorClass) New() TextureDescriptor { rv := objc.Call[TextureDescriptor](tc, objc.Sel("new")) rv.Autorelease() @@ -87,19 +85,19 @@ func (t_ TextureDescriptor) Init() TextureDescriptor { 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 (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) } // Creates a texture descriptor object for a 2D texture. [Full Topic] @@ -117,34 +115,34 @@ func TextureDescriptor_Texture2DDescriptorWithPixelFormatWidthHeightMipmapped(pi return TextureDescriptorClass.Texture2DDescriptorWithPixelFormatWidthHeightMipmapped(pixelFormat, width, height, mipmapped) } -// 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) } -// The width of the texture image for the base level mipmap, in pixels. [Full Topic] +// The dimension and arrangement of texture image data. [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/1516228-texturetype?language=objc +func (t_ TextureDescriptor) TextureType() TextureType { + rv := objc.Call[TextureType](t_, objc.Sel("textureType")) return rv } -// The width of the texture image for the base level mipmap, in pixels. [Full Topic] +// The dimension and arrangement of texture image data. [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/1516228-texturetype?language=objc +func (t_ TextureDescriptor) SetTextureType(value TextureType) { + objc.Call[objc.Void](t_, objc.Sel("setTextureType:"), value) } // The number of mipmap levels for this texture. [Full Topic] @@ -162,34 +160,34 @@ func (t_ TextureDescriptor) SetMipmapLevelCount(value uint) { objc.Call[objc.Void](t_, objc.Sel("setMipmapLevelCount:"), value) } -// The number of array elements for this texture. [Full Topic] +// The behavior of a new memory allocation. [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")) +// [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 array elements for this texture. [Full Topic] +// The behavior of a new memory allocation. [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) +// [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) } -// Options that determine how you can use the texture. [Full Topic] +// The size and bit layout of all pixels in the texture. [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/1515450-pixelformat?language=objc +func (t_ TextureDescriptor) PixelFormat() PixelFormat { + rv := objc.Call[PixelFormat](t_, objc.Sel("pixelFormat")) return rv } -// Options that determine how you can use the texture. [Full Topic] +// The size and bit layout of all pixels in the texture. [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/1515450-pixelformat?language=objc +func (t_ TextureDescriptor) SetPixelFormat(value PixelFormat) { + objc.Call[objc.Void](t_, objc.Sel("setPixelFormat:"), value) } // The pattern you want the GPU to apply to pixels when you read or sample pixels from the texture. [Full Topic] @@ -207,19 +205,49 @@ func (t_ TextureDescriptor) SetSwizzle(value TextureSwizzleChannels) { objc.Call[objc.Void](t_, objc.Sel("setSwizzle:"), value) } -// The number of samples in each fragment. [Full Topic] +// The texture's hazard tracking mode. [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/3131697-hazardtrackingmode?language=objc +func (t_ TextureDescriptor) HazardTrackingMode() HazardTrackingMode { + rv := objc.Call[HazardTrackingMode](t_, objc.Sel("hazardTrackingMode")) return rv } -// The number of samples in each fragment. [Full Topic] +// The texture's hazard tracking mode. [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/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] +// +// [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 height of the texture image for the base level mipmap, in pixels. [Full Topic] @@ -237,64 +265,64 @@ func (t_ TextureDescriptor) SetHeight(value uint) { objc.Call[objc.Void](t_, objc.Sel("setHeight:"), value) } -// The CPU cache mode used for the CPU mapping of the texture. [Full Topic] +// The location and access permissions of the texture. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metal/mtltexturedescriptor/1515375-cpucachemode?language=objc -func (t_ TextureDescriptor) CpuCacheMode() CPUCacheMode { - rv := objc.Call[CPUCacheMode](t_, objc.Sel("cpuCacheMode")) +// [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 CPU cache mode used for the CPU mapping of the texture. [Full Topic] +// The location and access permissions of the texture. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metal/mtltexturedescriptor/1515375-cpucachemode?language=objc -func (t_ TextureDescriptor) SetCpuCacheMode(value CPUCacheMode) { - objc.Call[objc.Void](t_, objc.Sel("setCpuCacheMode:"), 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 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) } -// A Boolean value indicating whether the GPU is allowed to adjust the texture's contents to improve GPU performance. [Full Topic] +// The CPU cache mode used for the CPU mapping of the texture. [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/1515375-cpucachemode?language=objc +func (t_ TextureDescriptor) CpuCacheMode() CPUCacheMode { + rv := objc.Call[CPUCacheMode](t_, objc.Sel("cpuCacheMode")) return rv } -// A Boolean value indicating whether the GPU is allowed to adjust the texture's contents to improve GPU performance. [Full Topic] +// The CPU cache mode used for the CPU mapping of the texture. [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/1515375-cpucachemode?language=objc +func (t_ TextureDescriptor) SetCpuCacheMode(value CPUCacheMode) { + objc.Call[objc.Void](t_, objc.Sel("setCpuCacheMode:"), 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 depth of the texture image for the base level mipmap, in pixels. [Full Topic] @@ -312,47 +340,32 @@ func (t_ TextureDescriptor) SetDepth(value uint) { objc.Call[objc.Void](t_, objc.Sel("setDepth:"), value) } -// The location and access permissions of the texture. [Full Topic] +// [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")) +// [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 location and access permissions of the texture. [Full Topic] +// [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 behavior of a new memory allocation. [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")) - return rv -} - -// The behavior of a new memory allocation. [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/3763055-compressiontype?language=objc +func (t_ TextureDescriptor) SetCompressionType(value TextureCompressionType) { + objc.Call[objc.Void](t_, objc.Sel("setCompressionType:"), value) } -// The texture's hazard tracking mode. [Full Topic] +// The number of samples in each fragment. [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")) +// [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 } -// The texture's hazard tracking mode. [Full Topic] +// The number of samples in each fragment. [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) +// [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) } diff --git a/macos/metal/texture.gen.go b/macos/metal/texture_protocol.gen.go similarity index 57% rename from macos/metal/texture.gen.go rename to macos/metal/texture_protocol.gen.go index 826d50d9..9754f6d7 100644 --- a/macos/metal/texture.gen.go +++ b/macos/metal/texture_protocol.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package metal @@ -15,40 +15,56 @@ import ( // [Full Topic]: https://developer.apple.com/documentation/metal/mtltexture?language=objc type PTexture interface { // optional - ReplaceRegionMipmapLevelWithBytesBytesPerRow(region Region, level uint, pixelBytes unsafe.Pointer, bytesPerRow uint) - HasReplaceRegionMipmapLevelWithBytesBytesPerRow() bool + GetBytesBytesPerRowBytesPerImageFromRegionMipmapLevelSlice(pixelBytes unsafe.Pointer, bytesPerRow uint, bytesPerImage uint, region Region, level uint, slice uint) + HasGetBytesBytesPerRowBytesPerImageFromRegionMipmapLevelSlice() bool // optional - NewRemoteTextureViewForDevice(device DeviceWrapper) PTexture - HasNewRemoteTextureViewForDevice() bool + GetBytesBytesPerRowFromRegionMipmapLevel(pixelBytes unsafe.Pointer, bytesPerRow uint, region Region, level uint) + HasGetBytesBytesPerRowFromRegionMipmapLevel() bool // optional - NewTextureViewWithPixelFormatTextureTypeLevelsSlicesSwizzle(pixelFormat PixelFormat, textureType TextureType, levelRange foundation.Range, sliceRange foundation.Range, swizzle TextureSwizzleChannels) PTexture - HasNewTextureViewWithPixelFormatTextureTypeLevelsSlicesSwizzle() bool + NewTextureViewWithPixelFormat(pixelFormat PixelFormat) TextureObject + HasNewTextureViewWithPixelFormat() bool // optional - GetBytesBytesPerRowBytesPerImageFromRegionMipmapLevelSlice(pixelBytes unsafe.Pointer, bytesPerRow uint, bytesPerImage uint, region Region, level uint, slice uint) - HasGetBytesBytesPerRowBytesPerImageFromRegionMipmapLevelSlice() bool + NewTextureViewWithPixelFormatTextureTypeLevelsSlices(pixelFormat PixelFormat, textureType TextureType, levelRange foundation.Range, sliceRange foundation.Range) TextureObject + HasNewTextureViewWithPixelFormatTextureTypeLevelsSlices() bool + + // optional + ReplaceRegionMipmapLevelSliceWithBytesBytesPerRowBytesPerImage(region Region, level uint, slice uint, pixelBytes unsafe.Pointer, bytesPerRow uint, bytesPerImage uint) + HasReplaceRegionMipmapLevelSliceWithBytesBytesPerRowBytesPerImage() bool // optional - NewSharedTextureHandle() ISharedTextureHandle + NewTextureViewWithPixelFormatTextureTypeLevelsSlicesSwizzle(pixelFormat PixelFormat, textureType TextureType, levelRange foundation.Range, sliceRange foundation.Range, swizzle TextureSwizzleChannels) TextureObject + HasNewTextureViewWithPixelFormatTextureTypeLevelsSlicesSwizzle() bool + + // optional + NewSharedTextureHandle() SharedTextureHandle HasNewSharedTextureHandle() bool // optional - Width() uint - HasWidth() bool + NewRemoteTextureViewForDevice(device DeviceObject) TextureObject + HasNewRemoteTextureViewForDevice() bool // optional - MipmapLevelCount() uint - HasMipmapLevelCount() bool + ReplaceRegionMipmapLevelWithBytesBytesPerRow(region Region, level uint, pixelBytes unsafe.Pointer, bytesPerRow uint) + HasReplaceRegionMipmapLevelWithBytesBytesPerRow() bool // optional - ArrayLength() uint - HasArrayLength() bool + Height() uint + HasHeight() bool // optional - RemoteStorageTexture() PTexture - HasRemoteStorageTexture() bool + AllowGPUOptimizedContents() bool + HasAllowGPUOptimizedContents() bool + + // optional + SampleCount() uint + HasSampleCount() bool + + // optional + Swizzle() TextureSwizzleChannels + HasSwizzle() bool // optional IsFramebufferOnly() bool @@ -59,445 +75,507 @@ type PTexture interface { HasUsage() bool // optional - IosurfacePlane() uint - HasIosurfacePlane() bool + Depth() uint + HasDepth() bool // optional - ParentRelativeLevel() uint - HasParentRelativeLevel() bool + Buffer() BufferObject + HasBuffer() bool // optional - IsShareable() bool - HasIsShareable() bool + ArrayLength() uint + HasArrayLength() bool // optional - Buffer() PBuffer - HasBuffer() bool + FirstMipmapInTail() uint + HasFirstMipmapInTail() bool // optional - Swizzle() TextureSwizzleChannels - HasSwizzle() bool + BufferOffset() uint + HasBufferOffset() bool // optional - FirstMipmapInTail() uint - HasFirstMipmapInTail() bool + ParentRelativeLevel() uint + HasParentRelativeLevel() bool + + // optional + RemoteStorageTexture() TextureObject + HasRemoteStorageTexture() bool // optional ParentRelativeSlice() uint HasParentRelativeSlice() bool // optional - SampleCount() uint - HasSampleCount() bool + CompressionType() TextureCompressionType + HasCompressionType() bool // optional - Height() uint - HasHeight() bool + PixelFormat() PixelFormat + HasPixelFormat() bool // optional - TextureType() TextureType - HasTextureType() bool + BufferBytesPerRow() uint + HasBufferBytesPerRow() bool // optional - BufferOffset() uint - HasBufferOffset() bool + Width() uint + HasWidth() bool // optional - IsSparse() bool - HasIsSparse() bool + IsShareable() bool + HasIsShareable() bool // optional - AllowGPUOptimizedContents() bool - HasAllowGPUOptimizedContents() bool + TailSizeInBytes() uint + HasTailSizeInBytes() bool // optional - ParentTexture() PTexture + ParentTexture() TextureObject HasParentTexture() bool // optional - PixelFormat() PixelFormat - HasPixelFormat() bool + TextureType() TextureType + HasTextureType() bool // optional - Depth() uint - HasDepth() bool + MipmapLevelCount() uint + HasMipmapLevelCount() bool // optional Iosurface() iosurface.Ref HasIosurface() bool // optional - BufferBytesPerRow() uint - HasBufferBytesPerRow() bool + IsSparse() bool + HasIsSparse() bool // optional - TailSizeInBytes() uint - HasTailSizeInBytes() bool + IosurfacePlane() uint + HasIosurfacePlane() bool } -// A concrete type wrapper for the [PTexture] protocol. -type TextureWrapper struct { +// ensure impl type implements protocol interface +var _ PTexture = (*TextureObject)(nil) + +// A concrete type for the [PTexture] protocol. +type TextureObject struct { objc.Object } -func (t_ TextureWrapper) HasReplaceRegionMipmapLevelWithBytesBytesPerRow() bool { - return t_.RespondsToSelector(objc.Sel("replaceRegion:mipmapLevel:withBytes:bytesPerRow:")) +func (t_ TextureObject) HasGetBytesBytesPerRowBytesPerImageFromRegionMipmapLevelSlice() bool { + return t_.RespondsToSelector(objc.Sel("getBytes:bytesPerRow:bytesPerImage:fromRegion:mipmapLevel:slice:")) } -// Copies a block of pixels into a section of texture slice 0. [Full Topic] +// Copies pixel data from the texture to a buffer in system memory. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metal/mtltexture/1515464-replaceregion?language=objc -func (t_ TextureWrapper) 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) +// [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_ TextureWrapper) HasNewRemoteTextureViewForDevice() bool { - return t_.RespondsToSelector(objc.Sel("newRemoteTextureViewForDevice:")) +func (t_ TextureObject) HasGetBytesBytesPerRowFromRegionMipmapLevel() bool { + return t_.RespondsToSelector(objc.Sel("getBytes:bytesPerRow:fromRegion:mipmapLevel:")) } -// Creates a remote texture view for another GPU in the same peer group. [Full Topic] +// 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/2967449-newremotetextureviewfordevice?language=objc -func (t_ TextureWrapper) NewRemoteTextureViewForDevice(device PDevice) TextureWrapper { - po0 := objc.WrapAsProtocol("MTLDevice", device) - rv := objc.Call[TextureWrapper](t_, objc.Sel("newRemoteTextureViewForDevice:"), po0) - rv.Autorelease() +// [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:")) +} + +// Creates a new view of the texture, reinterpreting its data using a different pixel format. [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 } -func (t_ TextureWrapper) HasNewTextureViewWithPixelFormatTextureTypeLevelsSlicesSwizzle() bool { - return t_.RespondsToSelector(objc.Sel("newTextureViewWithPixelFormat:textureType:levels:slices:swizzle:")) +func (t_ TextureObject) HasNewTextureViewWithPixelFormatTextureTypeLevelsSlices() bool { + return t_.RespondsToSelector(objc.Sel("newTextureViewWithPixelFormat:textureType:levels:slices:")) } -// Creates a new view of the texture, reinterpreting a subset of its data using a different type, pixel format, and swizzle pattern. [Full Topic] +// Creates a new view of the texture, reinterpreting a subset of its data using a different type and pixel format. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metal/mtltexture/3114303-newtextureviewwithpixelformat?language=objc -func (t_ TextureWrapper) NewTextureViewWithPixelFormatTextureTypeLevelsSlicesSwizzle(pixelFormat PixelFormat, textureType TextureType, levelRange foundation.Range, sliceRange foundation.Range, swizzle TextureSwizzleChannels) TextureWrapper { - rv := objc.Call[TextureWrapper](t_, objc.Sel("newTextureViewWithPixelFormat:textureType:levels:slices:swizzle:"), pixelFormat, textureType, levelRange, sliceRange, swizzle) - rv.Autorelease() +// [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) return rv } -func (t_ TextureWrapper) HasGetBytesBytesPerRowBytesPerImageFromRegionMipmapLevelSlice() bool { - return t_.RespondsToSelector(objc.Sel("getBytes:bytesPerRow:bytesPerImage:fromRegion:mipmapLevel:slice:")) +func (t_ TextureObject) HasReplaceRegionMipmapLevelSliceWithBytesBytesPerRowBytesPerImage() bool { + return t_.RespondsToSelector(objc.Sel("replaceRegion:mipmapLevel:slice:withBytes:bytesPerRow:bytesPerImage:")) } -// Copies pixel data from the texture to a buffer in system memory. [Full Topic] +// Copies pixel data into a section of a texture slice. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metal/mtltexture/1516318-getbytes?language=objc -func (t_ TextureWrapper) 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) +// [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_ TextureWrapper) HasNewSharedTextureHandle() bool { +func (t_ TextureObject) HasNewTextureViewWithPixelFormatTextureTypeLevelsSlicesSwizzle() bool { + return t_.RespondsToSelector(objc.Sel("newTextureViewWithPixelFormat:textureType:levels:slices:swizzle:")) +} + +// Creates a new view of the texture, reinterpreting a subset of its data using a different type, pixel format, and swizzle pattern. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/metal/mtltexture/3114303-newtextureviewwithpixelformat?language=objc +func (t_ TextureObject) NewTextureViewWithPixelFormatTextureTypeLevelsSlicesSwizzle(pixelFormat PixelFormat, textureType TextureType, levelRange foundation.Range, sliceRange foundation.Range, swizzle TextureSwizzleChannels) TextureObject { + rv := objc.Call[TextureObject](t_, objc.Sel("newTextureViewWithPixelFormat:textureType:levels:slices:swizzle:"), pixelFormat, textureType, levelRange, sliceRange, swizzle) + return rv +} + +func (t_ TextureObject) HasNewSharedTextureHandle() bool { return t_.RespondsToSelector(objc.Sel("newSharedTextureHandle")) } // Creates a new texture handle from a shareable texture. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/metal/mtltexture/2981032-newsharedtexturehandle?language=objc -func (t_ TextureWrapper) NewSharedTextureHandle() SharedTextureHandle { +func (t_ TextureObject) NewSharedTextureHandle() SharedTextureHandle { rv := objc.Call[SharedTextureHandle](t_, objc.Sel("newSharedTextureHandle")) - rv.Autorelease() return rv } -func (t_ TextureWrapper) HasWidth() bool { - return t_.RespondsToSelector(objc.Sel("width")) +func (t_ TextureObject) HasNewRemoteTextureViewForDevice() bool { + return t_.RespondsToSelector(objc.Sel("newRemoteTextureViewForDevice:")) } -// The width of the texture image for the base level mipmap, in pixels. [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/1515339-width?language=objc -func (t_ TextureWrapper) Width() uint { - rv := objc.Call[uint](t_, objc.Sel("width")) +// [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_ TextureWrapper) HasMipmapLevelCount() bool { - return t_.RespondsToSelector(objc.Sel("mipmapLevelCount")) +func (t_ TextureObject) HasReplaceRegionMipmapLevelWithBytesBytesPerRow() bool { + return t_.RespondsToSelector(objc.Sel("replaceRegion:mipmapLevel:withBytes:bytesPerRow:")) } -// The number of mipmap levels in the texture. [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/1515677-mipmaplevelcount?language=objc -func (t_ TextureWrapper) MipmapLevelCount() uint { - rv := objc.Call[uint](t_, objc.Sel("mipmapLevelCount")) +// [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")) +} + +// The height 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")) return rv } -func (t_ TextureWrapper) HasArrayLength() bool { - return t_.RespondsToSelector(objc.Sel("arrayLength")) +func (t_ TextureObject) HasAllowGPUOptimizedContents() bool { + return t_.RespondsToSelector(objc.Sel("allowGPUOptimizedContents")) } -// The number of slices in the texture array. [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/1515382-arraylength?language=objc -func (t_ TextureWrapper) ArrayLength() uint { - rv := objc.Call[uint](t_, objc.Sel("arrayLength")) +// [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 } -func (t_ TextureWrapper) 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_ TextureWrapper) RemoteStorageTexture() TextureWrapper { - rv := objc.Call[TextureWrapper](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_ TextureWrapper) HasIsFramebufferOnly() bool { +func (t_ TextureObject) HasSwizzle() bool { + return t_.RespondsToSelector(objc.Sel("swizzle")) +} + +// 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/3114304-swizzle?language=objc +func (t_ TextureObject) Swizzle() TextureSwizzleChannels { + rv := objc.Call[TextureSwizzleChannels](t_, objc.Sel("swizzle")) + return rv +} + +func (t_ TextureObject) HasIsFramebufferOnly() bool { return t_.RespondsToSelector(objc.Sel("isFramebufferOnly")) } // A Boolean value that indicates whether the texture can only be used as a render target. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/metal/mtltexture/1515749-framebufferonly?language=objc -func (t_ TextureWrapper) IsFramebufferOnly() bool { +func (t_ TextureObject) IsFramebufferOnly() bool { rv := objc.Call[bool](t_, objc.Sel("isFramebufferOnly")) return rv } -func (t_ TextureWrapper) HasUsage() bool { +func (t_ TextureObject) HasUsage() bool { return t_.RespondsToSelector(objc.Sel("usage")) } // Options that determine how you can use the texture. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/metal/mtltexture/1515763-usage?language=objc -func (t_ TextureWrapper) Usage() TextureUsage { +func (t_ TextureObject) Usage() TextureUsage { rv := objc.Call[TextureUsage](t_, objc.Sel("usage")) return rv } -func (t_ TextureWrapper) HasIosurfacePlane() bool { - return t_.RespondsToSelector(objc.Sel("iosurfacePlane")) +func (t_ TextureObject) HasDepth() bool { + return t_.RespondsToSelector(objc.Sel("depth")) } -// The plane of the IOSurface to reference if any. [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/1515986-iosurfaceplane?language=objc -func (t_ TextureWrapper) IosurfacePlane() uint { - rv := objc.Call[uint](t_, objc.Sel("iosurfacePlane")) +// [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 } -func (t_ TextureWrapper) HasParentRelativeLevel() bool { - return t_.RespondsToSelector(objc.Sel("parentRelativeLevel")) +func (t_ TextureObject) HasBuffer() bool { + return t_.RespondsToSelector(objc.Sel("buffer")) } -// The base level of the parent texture that the texture was created from, if any. [Full Topic] +// The source buffer used to create this texture, if any. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metal/mtltexture/1516265-parentrelativelevel?language=objc -func (t_ TextureWrapper) ParentRelativeLevel() uint { - rv := objc.Call[uint](t_, objc.Sel("parentRelativeLevel")) +// [Full Topic]: https://developer.apple.com/documentation/metal/mtltexture/1619090-buffer?language=objc +func (t_ TextureObject) Buffer() BufferObject { + rv := objc.Call[BufferObject](t_, objc.Sel("buffer")) return rv } -func (t_ TextureWrapper) HasIsShareable() bool { - return t_.RespondsToSelector(objc.Sel("isShareable")) +func (t_ TextureObject) HasArrayLength() bool { + return t_.RespondsToSelector(objc.Sel("arrayLength")) } -// A Boolean indicating whether this texture can be shared with other processes. [Full Topic] +// The number of slices in the texture array. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metal/mtltexture/2998889-shareable?language=objc -func (t_ TextureWrapper) IsShareable() bool { - rv := objc.Call[bool](t_, objc.Sel("isShareable")) +// [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_ TextureWrapper) HasBuffer() bool { - return t_.RespondsToSelector(objc.Sel("buffer")) +func (t_ TextureObject) HasFirstMipmapInTail() bool { + return t_.RespondsToSelector(objc.Sel("firstMipmapInTail")) } -// The source buffer that the texture was created from, if any. [Full Topic] +// The index of the first mipmap in the tail. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metal/mtltexture/1619090-buffer?language=objc -func (t_ TextureWrapper) Buffer() BufferWrapper { - rv := objc.Call[BufferWrapper](t_, objc.Sel("buffer")) +// [Full Topic]: https://developer.apple.com/documentation/metal/mtltexture/3043999-firstmipmapintail?language=objc +func (t_ TextureObject) FirstMipmapInTail() uint { + rv := objc.Call[uint](t_, objc.Sel("firstMipmapInTail")) return rv } -func (t_ TextureWrapper) HasSwizzle() bool { - return t_.RespondsToSelector(objc.Sel("swizzle")) +func (t_ TextureObject) HasBufferOffset() bool { + return t_.RespondsToSelector(objc.Sel("bufferOffset")) } -// The pattern that the GPU applies to pixels when you read or sample pixels from the texture. [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/3114304-swizzle?language=objc -func (t_ TextureWrapper) Swizzle() TextureSwizzleChannels { - rv := objc.Call[TextureSwizzleChannels](t_, objc.Sel("swizzle")) +// [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_ TextureWrapper) HasFirstMipmapInTail() bool { - return t_.RespondsToSelector(objc.Sel("firstMipmapInTail")) +func (t_ TextureObject) HasParentRelativeLevel() bool { + return t_.RespondsToSelector(objc.Sel("parentRelativeLevel")) } -// The index of the first mipmap in the tail. [Full Topic] +// The base level of the parent texture used to create this texture. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metal/mtltexture/3043999-firstmipmapintail?language=objc -func (t_ TextureWrapper) FirstMipmapInTail() uint { - rv := objc.Call[uint](t_, objc.Sel("firstMipmapInTail")) +// [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) HasRemoteStorageTexture() bool { + return t_.RespondsToSelector(objc.Sel("remoteStorageTexture")) +} + +// The texture on another GPU that the texture was created from, if any. [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")) return rv } -func (t_ TextureWrapper) HasParentRelativeSlice() bool { +func (t_ TextureObject) HasParentRelativeSlice() bool { return t_.RespondsToSelector(objc.Sel("parentRelativeSlice")) } -// The base slice of the parent texture that the texture was created from, if any. [Full Topic] +// The base slice of the parent texture used to create this texture. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/metal/mtltexture/1516221-parentrelativeslice?language=objc -func (t_ TextureWrapper) ParentRelativeSlice() uint { +func (t_ TextureObject) ParentRelativeSlice() uint { rv := objc.Call[uint](t_, objc.Sel("parentRelativeSlice")) return rv } -func (t_ TextureWrapper) HasSampleCount() bool { - return t_.RespondsToSelector(objc.Sel("sampleCount")) +func (t_ TextureObject) HasCompressionType() bool { + return t_.RespondsToSelector(objc.Sel("compressionType")) } -// The number of samples in each pixel. [Full Topic] +// [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metal/mtltexture/1515443-samplecount?language=objc -func (t_ TextureWrapper) SampleCount() uint { - rv := objc.Call[uint](t_, objc.Sel("sampleCount")) +// [Full Topic]: https://developer.apple.com/documentation/metal/mtltexture/3875341-compressiontype?language=objc +func (t_ TextureObject) CompressionType() TextureCompressionType { + rv := objc.Call[TextureCompressionType](t_, objc.Sel("compressionType")) return rv } -func (t_ TextureWrapper) HasHeight() bool { - return t_.RespondsToSelector(objc.Sel("height")) +func (t_ TextureObject) HasPixelFormat() bool { + return t_.RespondsToSelector(objc.Sel("pixelFormat")) } -// The height of the texture image for the base level mipmap, in pixels. [Full Topic] +// The format of pixels in the texture. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metal/mtltexture/1515938-height?language=objc -func (t_ TextureWrapper) Height() uint { - rv := objc.Call[uint](t_, objc.Sel("height")) +// [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_ TextureWrapper) HasTextureType() bool { - return t_.RespondsToSelector(objc.Sel("textureType")) +func (t_ TextureObject) HasBufferBytesPerRow() bool { + return t_.RespondsToSelector(objc.Sel("bufferBytesPerRow")) } -// The dimension and arrangement of the texture image data. [Full Topic] +// The number of bytes in each row of the texture’s source buffer. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metal/mtltexture/1515517-texturetype?language=objc -func (t_ TextureWrapper) TextureType() TextureType { - rv := objc.Call[TextureType](t_, objc.Sel("textureType")) +// [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_ TextureWrapper) HasBufferOffset() bool { - return t_.RespondsToSelector(objc.Sel("bufferOffset")) +func (t_ TextureObject) HasWidth() bool { + return t_.RespondsToSelector(objc.Sel("width")) } -// The offset in the source buffer where the texture's data comes from. [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/1619019-bufferoffset?language=objc -func (t_ TextureWrapper) BufferOffset() uint { - rv := objc.Call[uint](t_, objc.Sel("bufferOffset")) +// [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_ TextureWrapper) HasIsSparse() bool { - return t_.RespondsToSelector(objc.Sel("isSparse")) +func (t_ TextureObject) HasIsShareable() bool { + return t_.RespondsToSelector(objc.Sel("isShareable")) } -// A Boolean value that indicates whether this is a sparse texture. [Full Topic] +// A Boolean indicating whether this texture can be shared with other processes. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metal/mtltexture/3153124-issparse?language=objc -func (t_ TextureWrapper) IsSparse() bool { - rv := objc.Call[bool](t_, objc.Sel("isSparse")) +// [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 } -func (t_ TextureWrapper) HasAllowGPUOptimizedContents() bool { - return t_.RespondsToSelector(objc.Sel("allowGPUOptimizedContents")) +func (t_ TextureObject) HasTailSizeInBytes() bool { + return t_.RespondsToSelector(objc.Sel("tailSizeInBytes")) } -// A Boolean value indicating whether the GPU is allowed to adjust the contents of the texture to improve GPU performance. [Full Topic] +// The size of the sparse texture tail, in bytes. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metal/mtltexture/2966640-allowgpuoptimizedcontents?language=objc -func (t_ TextureWrapper) AllowGPUOptimizedContents() bool { - rv := objc.Call[bool](t_, objc.Sel("allowGPUOptimizedContents")) +// [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 } -func (t_ TextureWrapper) HasParentTexture() bool { +func (t_ TextureObject) HasParentTexture() bool { return t_.RespondsToSelector(objc.Sel("parentTexture")) } -// The parent texture that the texture was created from, if any. [Full Topic] +// The parent texture used to create this texture, if any. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/metal/mtltexture/1515372-parenttexture?language=objc -func (t_ TextureWrapper) ParentTexture() TextureWrapper { - rv := objc.Call[TextureWrapper](t_, objc.Sel("parentTexture")) +func (t_ TextureObject) ParentTexture() TextureObject { + rv := objc.Call[TextureObject](t_, objc.Sel("parentTexture")) return rv } -func (t_ TextureWrapper) 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_ TextureWrapper) 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_ TextureWrapper) HasDepth() bool { - return t_.RespondsToSelector(objc.Sel("depth")) +func (t_ TextureObject) HasMipmapLevelCount() bool { + return t_.RespondsToSelector(objc.Sel("mipmapLevelCount")) } -// The depth of the texture image for the base level mipmap, in pixels. [Full Topic] +// The number of mipmap levels in the texture. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metal/mtltexture/1515942-depth?language=objc -func (t_ TextureWrapper) Depth() uint { - rv := objc.Call[uint](t_, objc.Sel("depth")) +// [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_ TextureWrapper) HasIosurface() bool { +func (t_ TextureObject) HasIosurface() bool { return t_.RespondsToSelector(objc.Sel("iosurface")) } // A reference to the IOSurface the texture was created from, if any. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/metal/mtltexture/1516104-iosurface?language=objc -func (t_ TextureWrapper) Iosurface() iosurface.Ref { +func (t_ TextureObject) Iosurface() iosurface.Ref { rv := objc.Call[iosurface.Ref](t_, objc.Sel("iosurface")) return rv } -func (t_ TextureWrapper) HasBufferBytesPerRow() bool { - return t_.RespondsToSelector(objc.Sel("bufferBytesPerRow")) +func (t_ TextureObject) HasIsSparse() bool { + return t_.RespondsToSelector(objc.Sel("isSparse")) } -// The number of bytes in each row of the texture’s source buffer, if applicable. [Full Topic] +// A Boolean value that indicates whether this is a sparse texture. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metal/mtltexture/1619175-bufferbytesperrow?language=objc -func (t_ TextureWrapper) BufferBytesPerRow() uint { - rv := objc.Call[uint](t_, objc.Sel("bufferBytesPerRow")) +// [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_ TextureWrapper) HasTailSizeInBytes() bool { - return t_.RespondsToSelector(objc.Sel("tailSizeInBytes")) +func (t_ TextureObject) HasIosurfacePlane() bool { + return t_.RespondsToSelector(objc.Sel("iosurfacePlane")) } -// The size of the sparse texture tail, in bytes. [Full Topic] +// The plane of the IOSurface to reference if any. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metal/mtltexture/3044002-tailsizeinbytes?language=objc -func (t_ TextureWrapper) TailSizeInBytes() uint { - rv := objc.Call[uint](t_, objc.Sel("tailSizeInBytes")) +// [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 } diff --git a/macos/metal/texture_reference_type.gen.go b/macos/metal/texture_reference_type.gen.go index 59375da0..a3a5ca34 100644 --- a/macos/metal/texture_reference_type.gen.go +++ b/macos/metal/texture_reference_type.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package metal @@ -18,10 +18,10 @@ type _TextureReferenceTypeClass struct { // An interface definition for the [TextureReferenceType] class. type ITextureReferenceType interface { IType + TextureDataType() DataType TextureType() TextureType - Access() objc.Object IsDepthTexture() bool - TextureDataType() DataType + Access() objc.Object } // A description of a texture. [Full Topic] @@ -42,10 +42,6 @@ func (tc _TextureReferenceTypeClass) Alloc() TextureReferenceType { return rv } -func TextureReferenceType_Alloc() TextureReferenceType { - return TextureReferenceTypeClass.Alloc() -} - func (tc _TextureReferenceTypeClass) New() TextureReferenceType { rv := objc.Call[TextureReferenceType](tc, objc.Sel("new")) rv.Autorelease() @@ -61,19 +57,19 @@ func (t_ TextureReferenceType) Init() TextureReferenceType { return rv } -// The texture type of the texture. [Full Topic] +// The data type of the texture. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metal/mtltexturereferencetype/2877442-texturetype?language=objc -func (t_ TextureReferenceType) TextureType() TextureType { - rv := objc.Call[TextureType](t_, objc.Sel("textureType")) +// [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's read/write access to the argument. [Full Topic] +// The texture 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/2877442-texturetype?language=objc +func (t_ TextureReferenceType) TextureType() TextureType { + rv := objc.Call[TextureType](t_, objc.Sel("textureType")) return rv } @@ -85,10 +81,10 @@ func (t_ TextureReferenceType) IsDepthTexture() bool { return rv } -// The data type of the texture. [Full Topic] +// The texture's read/write access to the argument. [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")) +// [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 } diff --git a/macos/metal/tile_render_pipeline_color_attachment_descriptor.gen.go b/macos/metal/tile_render_pipeline_color_attachment_descriptor.gen.go index 39c02d7d..3564c6e6 100644 --- a/macos/metal/tile_render_pipeline_color_attachment_descriptor.gen.go +++ b/macos/metal/tile_render_pipeline_color_attachment_descriptor.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package metal @@ -40,10 +40,6 @@ func (tc _TileRenderPipelineColorAttachmentDescriptorClass) Alloc() TileRenderPi return rv } -func TileRenderPipelineColorAttachmentDescriptor_Alloc() TileRenderPipelineColorAttachmentDescriptor { - return TileRenderPipelineColorAttachmentDescriptorClass.Alloc() -} - func (tc _TileRenderPipelineColorAttachmentDescriptorClass) New() TileRenderPipelineColorAttachmentDescriptor { rv := objc.Call[TileRenderPipelineColorAttachmentDescriptor](tc, objc.Sel("new")) rv.Autorelease() 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 1ffb37ec..af7c4f6a 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 @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package metal @@ -18,8 +18,8 @@ type _TileRenderPipelineColorAttachmentDescriptorArrayClass struct { // An interface definition for the [TileRenderPipelineColorAttachmentDescriptorArray] class. type ITileRenderPipelineColorAttachmentDescriptorArray interface { objc.IObject - ObjectAtIndexedSubscript(attachmentIndex uint) TileRenderPipelineColorAttachmentDescriptor SetObjectAtIndexedSubscript(attachment ITileRenderPipelineColorAttachmentDescriptor, attachmentIndex uint) + ObjectAtIndexedSubscript(attachmentIndex uint) TileRenderPipelineColorAttachmentDescriptor } // An array of color attachment descriptors for the tile render pipeline. [Full Topic] @@ -40,10 +40,6 @@ func (tc _TileRenderPipelineColorAttachmentDescriptorArrayClass) Alloc() TileRen return rv } -func TileRenderPipelineColorAttachmentDescriptorArray_Alloc() TileRenderPipelineColorAttachmentDescriptorArray { - return TileRenderPipelineColorAttachmentDescriptorArrayClass.Alloc() -} - func (tc _TileRenderPipelineColorAttachmentDescriptorArrayClass) New() TileRenderPipelineColorAttachmentDescriptorArray { rv := objc.Call[TileRenderPipelineColorAttachmentDescriptorArray](tc, objc.Sel("new")) rv.Autorelease() @@ -59,6 +55,13 @@ 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:"), objc.Ptr(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 @@ -66,10 +69,3 @@ 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:"), objc.Ptr(attachment), attachmentIndex) -} diff --git a/macos/metal/tile_render_pipeline_descriptor.gen.go b/macos/metal/tile_render_pipeline_descriptor.gen.go index b3f5cdb8..c3a3d67f 100644 --- a/macos/metal/tile_render_pipeline_descriptor.gen.go +++ b/macos/metal/tile_render_pipeline_descriptor.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package metal @@ -19,29 +19,29 @@ type _TileRenderPipelineDescriptorClass struct { type ITileRenderPipelineDescriptor interface { objc.IObject Reset() - ColorAttachments() TileRenderPipelineColorAttachmentDescriptorArray - TileBuffers() PipelineBufferDescriptorArray - SupportAddingBinaryFunctions() bool - SetSupportAddingBinaryFunctions(value bool) - MaxCallStackDepth() uint - SetMaxCallStackDepth(value uint) - LinkedFunctions() LinkedFunctions - SetLinkedFunctions(value ILinkedFunctions) - TileFunction() FunctionWrapper - SetTileFunction(value PFunction) - SetTileFunctionObject(valueObject objc.IObject) MaxTotalThreadsPerThreadgroup() uint SetMaxTotalThreadsPerThreadgroup(value uint) - RasterSampleCount() uint - SetRasterSampleCount(value uint) + SupportAddingBinaryFunctions() bool + SetSupportAddingBinaryFunctions(value bool) ThreadgroupSizeMatchesTileSize() bool SetThreadgroupSizeMatchesTileSize(value bool) - PreloadedLibraries() []DynamicLibraryWrapper - SetPreloadedLibraries(value []PDynamicLibrary) + TileFunction() FunctionObject + SetTileFunction(value PFunction) + SetTileFunctionObject(valueObject objc.IObject) + LinkedFunctions() LinkedFunctions + SetLinkedFunctions(value ILinkedFunctions) + ColorAttachments() TileRenderPipelineColorAttachmentDescriptorArray Label() string SetLabel(value string) - BinaryArchives() []BinaryArchiveWrapper + BinaryArchives() []BinaryArchiveObject SetBinaryArchives(value []PBinaryArchive) + MaxCallStackDepth() uint + SetMaxCallStackDepth(value uint) + RasterSampleCount() uint + SetRasterSampleCount(value uint) + TileBuffers() PipelineBufferDescriptorArray + PreloadedLibraries() []DynamicLibraryObject + SetPreloadedLibraries(value []PDynamicLibrary) } // An object that configures new render pipeline state objects for tile shading. [Full Topic] @@ -62,10 +62,6 @@ func (tc _TileRenderPipelineDescriptorClass) Alloc() TileRenderPipelineDescripto return rv } -func TileRenderPipelineDescriptor_Alloc() TileRenderPipelineDescriptor { - return TileRenderPipelineDescriptorClass.Alloc() -} - func (tc _TileRenderPipelineDescriptorClass) New() TileRenderPipelineDescriptor { rv := objc.Call[TileRenderPipelineDescriptor](tc, objc.Sel("new")) rv.Autorelease() @@ -88,20 +84,19 @@ func (t_ TileRenderPipelineDescriptor) Reset() { objc.Call[objc.Void](t_, objc.Sel("reset")) } -// An array of attachments that store color data. [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/2866554-colorattachments?language=objc -func (t_ TileRenderPipelineDescriptor) ColorAttachments() TileRenderPipelineColorAttachmentDescriptorArray { - rv := objc.Call[TileRenderPipelineColorAttachmentDescriptorArray](t_, objc.Sel("colorAttachments")) +// [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 } -// An array that contains the buffer mutability options for a render pipeline’s tile 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/2928217-tilebuffers?language=objc -func (t_ TileRenderPipelineDescriptor) TileBuffers() PipelineBufferDescriptorArray { - rv := objc.Call[PipelineBufferDescriptorArray](t_, objc.Sel("tileBuffers")) - return rv +// [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) } // 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] @@ -119,19 +114,42 @@ func (t_ TileRenderPipelineDescriptor) SetSupportAddingBinaryFunctions(value boo objc.Call[objc.Void](t_, objc.Sel("setSupportAddingBinaryFunctions:"), value) } -// The maximum function call depth from the top-most shader 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/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/2866359-threadgroupsizematchestilesize?language=objc +func (t_ TileRenderPipelineDescriptor) ThreadgroupSizeMatchesTileSize() bool { + rv := objc.Call[bool](t_, objc.Sel("threadgroupSizeMatchesTileSize")) return rv } -// The maximum function call depth from the top-most shader 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/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/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] +// +// [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 +} + +// 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] +// +// [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:"), objc.Ptr(valueObject)) } // Functions that you can specify as function arguments for the tile shader when encoding commands that use the pipeline. [Full Topic] @@ -149,42 +167,57 @@ func (t_ TileRenderPipelineDescriptor) SetLinkedFunctions(value ILinkedFunctions objc.Call[objc.Void](t_, objc.Sel("setLinkedFunctions:"), objc.Ptr(value)) } -// The compute kernel or fragment function the pipeline calls. [Full Topic] +// An array of attachments that store color data. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metal/mtltilerenderpipelinedescriptor/2866354-tilefunction?language=objc -func (t_ TileRenderPipelineDescriptor) TileFunction() FunctionWrapper { - rv := objc.Call[FunctionWrapper](t_, objc.Sel("tileFunction")) +// [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 compute kernel or fragment function the pipeline calls. [Full Topic] +// A string that identifies the tile pipeline descriptor. [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) +// [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 } -// The compute kernel or fragment function the pipeline calls. [Full Topic] +// A string that identifies the tile pipeline descriptor. [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:"), objc.Ptr(valueObject)) +// [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) } -// The maximum number of threads in a threadgroup when dispatching a command using the pipeline. [Full Topic] +// An array of binary archives to search for precompiled versions of the shader. [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/3564464-binaryarchives?language=objc +func (t_ TileRenderPipelineDescriptor) BinaryArchives() []BinaryArchiveObject { + rv := objc.Call[[]BinaryArchiveObject](t_, objc.Sel("binaryArchives")) return rv } -// The maximum number of threads in a threadgroup when dispatching a command using the pipeline. [Full Topic] +// An array of binary archives to search for precompiled versions of the shader. [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/3564464-binaryarchives?language=objc +func (t_ TileRenderPipelineDescriptor) SetBinaryArchives(value []PBinaryArchive) { + objc.Call[objc.Void](t_, objc.Sel("setBinaryArchives:"), value) +} + +// The maximum function call depth from the top-most shader function. [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")) + return rv +} + +// The maximum function call depth from the top-most shader function. [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) } // The number of samples in each fragment. [Full Topic] @@ -202,26 +235,19 @@ func (t_ TileRenderPipelineDescriptor) SetRasterSampleCount(value uint) { objc.Call[objc.Void](t_, objc.Sel("setRasterSampleCount:"), value) } -// A Boolean value that indicates whether all threadgroups for this pipeline completely cover tiles. [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/2866359-threadgroupsizematchestilesize?language=objc -func (t_ TileRenderPipelineDescriptor) ThreadgroupSizeMatchesTileSize() bool { - rv := objc.Call[bool](t_, objc.Sel("threadgroupSizeMatchesTileSize")) +// [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 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 -func (t_ TileRenderPipelineDescriptor) PreloadedLibraries() []DynamicLibraryWrapper { - rv := objc.Call[[]DynamicLibraryWrapper](t_, objc.Sel("preloadedLibraries")) +func (t_ TileRenderPipelineDescriptor) PreloadedLibraries() []DynamicLibraryObject { + rv := objc.Call[[]DynamicLibraryObject](t_, objc.Sel("preloadedLibraries")) return rv } @@ -231,33 +257,3 @@ func (t_ TileRenderPipelineDescriptor) PreloadedLibraries() []DynamicLibraryWrap 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() []BinaryArchiveWrapper { - rv := objc.Call[[]BinaryArchiveWrapper](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/type.gen.go b/macos/metal/type.gen.go index d7e92ca8..5f4c63f9 100644 --- a/macos/metal/type.gen.go +++ b/macos/metal/type.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package metal @@ -39,10 +39,6 @@ func (tc _TypeClass) Alloc() Type { return rv } -func Type_Alloc() Type { - return TypeClass.Alloc() -} - func (tc _TypeClass) New() Type { rv := objc.Call[Type](tc, objc.Sel("new")) rv.Autorelease() diff --git a/macos/metal/vertex_attribute.gen.go b/macos/metal/vertex_attribute.gen.go index 9ff4805f..0b5b086e 100644 --- a/macos/metal/vertex_attribute.gen.go +++ b/macos/metal/vertex_attribute.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package metal @@ -18,12 +18,12 @@ type _VertexAttributeClass struct { // An interface definition for the [VertexAttribute] class. type IVertexAttribute interface { objc.IObject - Name() string - IsActive() bool - IsPatchControlPointData() bool IsPatchData() bool - AttributeType() DataType + IsPatchControlPointData() bool + IsActive() bool AttributeIndex() uint + Name() string + AttributeType() DataType } // An object that represents an attribute of a vertex function. [Full Topic] @@ -44,10 +44,6 @@ func (vc _VertexAttributeClass) Alloc() VertexAttribute { return rv } -func VertexAttribute_Alloc() VertexAttribute { - return VertexAttributeClass.Alloc() -} - func (vc _VertexAttributeClass) New() VertexAttribute { rv := objc.Call[VertexAttribute](vc, objc.Sel("new")) rv.Autorelease() @@ -63,11 +59,19 @@ func (v_ VertexAttribute) Init() VertexAttribute { 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 +} + +// A Boolean value that indicates whether this vertex attribute represents control point data. [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")) return rv } @@ -79,19 +83,19 @@ func (v_ VertexAttribute) IsActive() bool { return rv } -// A Boolean value that indicates whether this vertex attribute represents control point data. [Full Topic] +// The index of the attribute, as declared in Metal shader source code. [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/1516285-attributeindex?language=objc +func (v_ VertexAttribute) AttributeIndex() uint { + rv := objc.Call[uint](v_, objc.Sel("attributeIndex")) return rv } -// A Boolean value that indicates whether this vertex attribute represents patch data. [Full Topic] +// The name of the attribute. [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")) +// [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 } @@ -102,11 +106,3 @@ 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 044310bf..9fe9be49 100644 --- a/macos/metal/vertex_attribute_descriptor.gen.go +++ b/macos/metal/vertex_attribute_descriptor.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package metal @@ -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] @@ -44,10 +44,6 @@ func (vc _VertexAttributeDescriptorClass) Alloc() VertexAttributeDescriptor { return rv } -func VertexAttributeDescriptor_Alloc() VertexAttributeDescriptor { - return VertexAttributeDescriptorClass.Alloc() -} - func (vc _VertexAttributeDescriptorClass) New() VertexAttributeDescriptor { rv := objc.Call[VertexAttributeDescriptor](vc, objc.Sel("new")) rv.Autorelease() @@ -63,21 +59,6 @@ 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 @@ -107,3 +88,18 @@ 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_attribute_descriptor_array.gen.go b/macos/metal/vertex_attribute_descriptor_array.gen.go index bf435675..5c8ab563 100644 --- a/macos/metal/vertex_attribute_descriptor_array.gen.go +++ b/macos/metal/vertex_attribute_descriptor_array.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package metal @@ -40,10 +40,6 @@ func (vc _VertexAttributeDescriptorArrayClass) Alloc() VertexAttributeDescriptor return rv } -func VertexAttributeDescriptorArray_Alloc() VertexAttributeDescriptorArray { - return VertexAttributeDescriptorArrayClass.Alloc() -} - func (vc _VertexAttributeDescriptorArrayClass) New() VertexAttributeDescriptorArray { rv := objc.Call[VertexAttributeDescriptorArray](vc, objc.Sel("new")) rv.Autorelease() diff --git a/macos/metal/vertex_buffer_layout_descriptor.gen.go b/macos/metal/vertex_buffer_layout_descriptor.gen.go index 54850804..4347df8b 100644 --- a/macos/metal/vertex_buffer_layout_descriptor.gen.go +++ b/macos/metal/vertex_buffer_layout_descriptor.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package metal @@ -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] @@ -44,10 +44,6 @@ func (vc _VertexBufferLayoutDescriptorClass) Alloc() VertexBufferLayoutDescripto return rv } -func VertexBufferLayoutDescriptor_Alloc() VertexBufferLayoutDescriptor { - return VertexBufferLayoutDescriptorClass.Alloc() -} - func (vc _VertexBufferLayoutDescriptorClass) New() VertexBufferLayoutDescriptor { rv := objc.Call[VertexBufferLayoutDescriptor](vc, objc.Sel("new")) rv.Autorelease() @@ -63,6 +59,21 @@ 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 @@ -92,18 +103,3 @@ 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_buffer_layout_descriptor_array.gen.go b/macos/metal/vertex_buffer_layout_descriptor_array.gen.go index 4b2184f6..30423962 100644 --- a/macos/metal/vertex_buffer_layout_descriptor_array.gen.go +++ b/macos/metal/vertex_buffer_layout_descriptor_array.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package metal @@ -40,10 +40,6 @@ func (vc _VertexBufferLayoutDescriptorArrayClass) Alloc() VertexBufferLayoutDesc return rv } -func VertexBufferLayoutDescriptorArray_Alloc() VertexBufferLayoutDescriptorArray { - return VertexBufferLayoutDescriptorArrayClass.Alloc() -} - func (vc _VertexBufferLayoutDescriptorArrayClass) New() VertexBufferLayoutDescriptorArray { rv := objc.Call[VertexBufferLayoutDescriptorArray](vc, objc.Sel("new")) rv.Autorelease() diff --git a/macos/metal/vertex_descriptor.gen.go b/macos/metal/vertex_descriptor.gen.go index c9f484e4..a0d33034 100644 --- a/macos/metal/vertex_descriptor.gen.go +++ b/macos/metal/vertex_descriptor.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package metal @@ -19,8 +19,8 @@ type _VertexDescriptorClass struct { type IVertexDescriptor interface { objc.IObject Reset() - Layouts() VertexBufferLayoutDescriptorArray Attributes() VertexAttributeDescriptorArray + Layouts() VertexBufferLayoutDescriptorArray } // An object that describes how to organize and map data to a vertex function. [Full Topic] @@ -41,10 +41,6 @@ func (vc _VertexDescriptorClass) Alloc() VertexDescriptor { return rv } -func VertexDescriptor_Alloc() VertexDescriptor { - return VertexDescriptorClass.Alloc() -} - func (vc _VertexDescriptorClass) New() VertexDescriptor { rv := objc.Call[VertexDescriptor](vc, objc.Sel("new")) rv.Autorelease() @@ -82,14 +78,6 @@ func (v_ VertexDescriptor) Reset() { objc.Call[objc.Void](v_, objc.Sel("reset")) } -// 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 -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 @@ -97,3 +85,11 @@ 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 +func (v_ VertexDescriptor) Layouts() VertexBufferLayoutDescriptorArray { + rv := objc.Call[VertexBufferLayoutDescriptorArray](v_, objc.Sel("layouts")) + return rv +} diff --git a/macos/metal/visible_function_table_descriptor.gen.go b/macos/metal/visible_function_table_descriptor.gen.go index 1fb54e58..89a2d1dc 100644 --- a/macos/metal/visible_function_table_descriptor.gen.go +++ b/macos/metal/visible_function_table_descriptor.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package metal @@ -40,10 +40,6 @@ func (vc _VisibleFunctionTableDescriptorClass) Alloc() VisibleFunctionTableDescr return rv } -func VisibleFunctionTableDescriptor_Alloc() VisibleFunctionTableDescriptor { - return VisibleFunctionTableDescriptorClass.Alloc() -} - func (vc _VisibleFunctionTableDescriptorClass) New() VisibleFunctionTableDescriptor { rv := objc.Call[VisibleFunctionTableDescriptor](vc, objc.Sel("new")) rv.Autorelease() diff --git a/macos/metal/visible_function_table.gen.go b/macos/metal/visible_function_table_protocol.gen.go similarity index 63% rename from macos/metal/visible_function_table.gen.go rename to macos/metal/visible_function_table_protocol.gen.go index 92dd1939..63050d19 100644 --- a/macos/metal/visible_function_table.gen.go +++ b/macos/metal/visible_function_table_protocol.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package metal @@ -12,39 +12,42 @@ import ( // [Full Topic]: https://developer.apple.com/documentation/metal/mtlvisiblefunctiontable?language=objc type PVisibleFunctionTable interface { // optional - SetFunctionAtIndex(function FunctionHandleWrapper, index uint) - HasSetFunctionAtIndex() bool + SetFunctionsWithRange(functions FunctionHandleObject, range_ foundation.Range) + HasSetFunctionsWithRange() bool // optional - SetFunctionsWithRange(functions FunctionHandleWrapper, range_ foundation.Range) - HasSetFunctionsWithRange() bool + SetFunctionAtIndex(function FunctionHandleObject, index uint) + HasSetFunctionAtIndex() bool } -// A concrete type wrapper for the [PVisibleFunctionTable] protocol. -type VisibleFunctionTableWrapper struct { - objc.Object -} +// ensure impl type implements protocol interface +var _ PVisibleFunctionTable = (*VisibleFunctionTableObject)(nil) -func (v_ VisibleFunctionTableWrapper) HasSetFunctionAtIndex() bool { - return v_.RespondsToSelector(objc.Sel("setFunction:atIndex:")) -} - -// Sets a table entry to point to a callable function. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/metal/mtlvisiblefunctiontable/3554056-setfunction?language=objc -func (v_ VisibleFunctionTableWrapper) SetFunctionAtIndex(function PFunctionHandle, index uint) { - po0 := objc.WrapAsProtocol("MTLFunctionHandle", function) - objc.Call[objc.Void](v_, objc.Sel("setFunction:atIndex:"), po0, index) +// A concrete type for the [PVisibleFunctionTable] protocol. +type VisibleFunctionTableObject struct { + objc.Object } -func (v_ VisibleFunctionTableWrapper) HasSetFunctionsWithRange() bool { +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_ VisibleFunctionTableWrapper) SetFunctionsWithRange(functions PFunctionHandle, range_ foundation.Range) { +func (v_ VisibleFunctionTableObject) SetFunctionsWithRange(functions FunctionHandleObject, 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:")) +} + +// Sets a table entry to point to a callable function. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/metal/mtlvisiblefunctiontable/3554056-setfunction?language=objc +func (v_ VisibleFunctionTableObject) SetFunctionAtIndex(function FunctionHandleObject, index uint) { + po0 := objc.WrapAsProtocol("MTLFunctionHandle", function) + objc.Call[objc.Void](v_, objc.Sel("setFunction:atIndex:"), po0, index) +} diff --git a/macos/mps/acceleration_structure.gen.go b/macos/mps/acceleration_structure.gen.go index 0db4bcb2..c560dafc 100644 --- a/macos/mps/acceleration_structure.gen.go +++ b/macos/mps/acceleration_structure.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package mps @@ -39,10 +39,6 @@ func (ac _AccelerationStructureClass) Alloc() AccelerationStructure { return rv } -func AccelerationStructure_Alloc() AccelerationStructure { - return AccelerationStructureClass.Alloc() -} - func (ac _AccelerationStructureClass) New() AccelerationStructure { rv := objc.Call[AccelerationStructure](ac, objc.Sel("new")) rv.Autorelease() @@ -58,33 +54,32 @@ func (a_ AccelerationStructure) Init() AccelerationStructure { return rv } -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 } -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) - rv.Autorelease() +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 } diff --git a/macos/mps/acceleration_structure_group.gen.go b/macos/mps/acceleration_structure_group.gen.go index 1d63bb1a..19b0bd3c 100644 --- a/macos/mps/acceleration_structure_group.gen.go +++ b/macos/mps/acceleration_structure_group.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package mps @@ -38,10 +38,6 @@ func (ac _AccelerationStructureGroupClass) Alloc() AccelerationStructureGroup { return rv } -func AccelerationStructureGroup_Alloc() AccelerationStructureGroup { - return AccelerationStructureGroupClass.Alloc() -} - func (ac _AccelerationStructureGroupClass) New() AccelerationStructureGroup { rv := objc.Call[AccelerationStructureGroup](ac, objc.Sel("new")) rv.Autorelease() diff --git a/macos/mps/aliastypes.gen.go b/macos/mps/aliastypes.gen.go index fcc9ac9d..d1f90df0 100644 --- a/macos/mps/aliastypes.gen.go +++ b/macos/mps/aliastypes.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package mps diff --git a/macos/mps/binary_image_kernel.gen.go b/macos/mps/binary_image_kernel.gen.go index 8ed570fd..aa1864a3 100644 --- a/macos/mps/binary_image_kernel.gen.go +++ b/macos/mps/binary_image_kernel.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package mps @@ -19,20 +19,26 @@ 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 metal.PTexture, 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 metal.PTexture, secondaryTexture metal.PTexture, copyAllocator CopyAllocator) bool + EncodeToCommandBufferObjectInPlacePrimaryTextureObjectSecondaryTextureObjectFallbackCopyAllocator(commandBufferObject objc.IObject, inPlacePrimaryTextureObject objc.IObject, secondaryTextureObject objc.IObject, copyAllocator CopyAllocator) bool PrimarySourceRegionForDestinationSize(destinationSize metal.Size) Region - SecondaryEdgeMode() ImageEdgeMode - SetSecondaryEdgeMode(value ImageEdgeMode) PrimaryEdgeMode() ImageEdgeMode SetPrimaryEdgeMode(value ImageEdgeMode) + ClipRect() metal.Region + SetClipRect(value metal.Region) + SecondaryEdgeMode() ImageEdgeMode + SetSecondaryEdgeMode(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] @@ -68,10 +74,6 @@ func (bc _BinaryImageKernelClass) Alloc() BinaryImageKernel { return rv } -func BinaryImageKernel_Alloc() BinaryImageKernel { - return BinaryImageKernelClass.Alloc() -} - func (bc _BinaryImageKernelClass) New() BinaryImageKernel { rv := objc.Call[BinaryImageKernel](bc, objc.Sel("new")) rv.Autorelease() @@ -90,7 +92,6 @@ func (b_ BinaryImageKernel) Init() BinaryImageKernel { func (b_ BinaryImageKernel) CopyWithZoneDevice(zone unsafe.Pointer, device metal.PDevice) BinaryImageKernel { po1 := objc.WrapAsProtocol("MTLDevice", device) rv := objc.Call[BinaryImageKernel](b_, objc.Sel("copyWithZone:device:"), zone, po1) - rv.Autorelease() return rv } @@ -103,14 +104,6 @@ func BinaryImageKernel_CopyWithZoneDevice(zone unsafe.Pointer, device metal.PDev return instance } -// 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 -func (b_ BinaryImageKernel) SecondarySourceRegionForDestinationSize(destinationSize metal.Size) Region { - rv := objc.Call[Region](b_, objc.Sel("secondarySourceRegionForDestinationSize:"), destinationSize) - return rv -} - // [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsbinaryimagekernel/2866330-encodetocommandbuffer?language=objc @@ -126,27 +119,76 @@ func (b_ BinaryImageKernel) EncodeToCommandBufferObjectPrimaryImageSecondaryImag objc.Call[objc.Void](b_, objc.Sel("encodeToCommandBuffer:primaryImage:secondaryImage:destinationImage:"), objc.Ptr(commandBufferObject), objc.Ptr(primaryImage), objc.Ptr(secondaryImage), objc.Ptr(destinationImage)) } -// Determines the region of the primary source texture that will be read for an encode operation. [Full Topic] +// 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/1618900-primarysourceregionfordestinatio?language=objc -func (b_ BinaryImageKernel) PrimarySourceRegionForDestinationSize(destinationSize metal.Size) Region { - rv := objc.Call[Region](b_, objc.Sel("primarySourceRegionForDestinationSize:"), destinationSize) +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsbinaryimagekernel/1618838-secondarysourceregionfordestinat?language=objc +func (b_ BinaryImageKernel) SecondarySourceRegionForDestinationSize(destinationSize metal.Size) Region { + rv := objc.Call[Region](b_, objc.Sel("secondarySourceRegionForDestinationSize:"), destinationSize) return rv } -// The edge mode to use when texture reads stray off the edge of the secondary source image. [Full Topic] +// This method attempts to apply a kernel in place on a texture. [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")) +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsbinaryimagekernel/1618890-encodetocommandbuffer?language=objc +func (b_ BinaryImageKernel) EncodeToCommandBufferPrimaryTextureInPlaceSecondaryTextureFallbackCopyAllocator(commandBuffer metal.PCommandBuffer, primaryTexture metal.PTexture, inPlaceSecondaryTexture metal.PTexture, 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 } -// The edge mode to use when texture reads stray off the edge of the secondary source image. [Full Topic] +// This method attempts to apply a kernel in place on a texture. [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) +// [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:"), objc.Ptr(commandBufferObject), objc.Ptr(primaryTextureObject), objc.Ptr(inPlaceSecondaryTextureObject), copyAllocator) + return rv +} + +// Encodes a kernel into a command buffer, out-of-place. [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) { + 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) +} + +// Encodes a kernel into a command buffer, out-of-place. [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:"), objc.Ptr(commandBufferObject), objc.Ptr(primaryTextureObject), objc.Ptr(secondaryTextureObject), objc.Ptr(destinationTextureObject)) +} + +// This method attempts to apply a kernel in place on a texture. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsbinaryimagekernel/1618771-encodetocommandbuffer?language=objc +func (b_ BinaryImageKernel) EncodeToCommandBufferInPlacePrimaryTextureSecondaryTextureFallbackCopyAllocator(commandBuffer metal.PCommandBuffer, inPlacePrimaryTexture metal.PTexture, 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) + 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/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:"), objc.Ptr(commandBufferObject), objc.Ptr(inPlacePrimaryTextureObject), objc.Ptr(secondaryTextureObject), copyAllocator) + return rv +} + +// 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/1618900-primarysourceregionfordestinatio?language=objc +func (b_ BinaryImageKernel) PrimarySourceRegionForDestinationSize(destinationSize metal.Size) Region { + rv := objc.Call[Region](b_, objc.Sel("primarySourceRegionForDestinationSize:"), destinationSize) + return rv } // The edge mode to use when texture reads stray off the edge of the primary source image. [Full Topic] @@ -164,6 +206,36 @@ 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 @@ -193,18 +265,3 @@ 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_add.gen.go b/macos/mps/cnn_add.gen.go index 4d9cf7ad..8c3b0db4 100644 --- a/macos/mps/cnn_add.gen.go +++ b/macos/mps/cnn_add.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package mps @@ -54,10 +54,6 @@ func (cc _CNNAddClass) Alloc() CNNAdd { return rv } -func CNNAdd_Alloc() CNNAdd { - return CNNAddClass.Alloc() -} - func (cc _CNNAddClass) New() CNNAdd { rv := objc.Call[CNNAdd](cc, objc.Sel("new")) rv.Autorelease() @@ -76,7 +72,6 @@ func (c_ CNNAdd) Init() CNNAdd { func (c_ CNNAdd) CopyWithZoneDevice(zone unsafe.Pointer, device metal.PDevice) CNNAdd { po1 := objc.WrapAsProtocol("MTLDevice", device) rv := objc.Call[CNNAdd](c_, objc.Sel("copyWithZone:device:"), zone, po1) - rv.Autorelease() return rv } diff --git a/macos/mps/cnn_add_gradient.gen.go b/macos/mps/cnn_add_gradient.gen.go index bec1ef69..3eaee0e0 100644 --- a/macos/mps/cnn_add_gradient.gen.go +++ b/macos/mps/cnn_add_gradient.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package mps @@ -54,10 +54,6 @@ func (cc _CNNAddGradientClass) Alloc() CNNAddGradient { return rv } -func CNNAddGradient_Alloc() CNNAddGradient { - return CNNAddGradientClass.Alloc() -} - func (cc _CNNAddGradientClass) New() CNNAddGradient { rv := objc.Call[CNNAddGradient](cc, objc.Sel("new")) rv.Autorelease() @@ -91,7 +87,6 @@ func NewCNNAddGradientWithDevice(device metal.PDevice) CNNAddGradient { func (c_ CNNAddGradient) CopyWithZoneDevice(zone unsafe.Pointer, device metal.PDevice) CNNAddGradient { po1 := objc.WrapAsProtocol("MTLDevice", device) rv := objc.Call[CNNAddGradient](c_, objc.Sel("copyWithZone:device:"), zone, po1) - rv.Autorelease() return rv } diff --git a/macos/mps/cnn_arithmetic.gen.go b/macos/mps/cnn_arithmetic.gen.go index c836a567..0535e6a2 100644 --- a/macos/mps/cnn_arithmetic.gen.go +++ b/macos/mps/cnn_arithmetic.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package mps @@ -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) - SecondaryScale() float64 - SetSecondaryScale(value float64) - MaximumValue() float64 - SetMaximumValue(value float64) PrimaryScale() float64 SetPrimaryScale(value float64) + PrimaryStrideInFeatureChannels() uint + SetPrimaryStrideInFeatureChannels(value uint) + SecondaryScale() float64 + SetSecondaryScale(value float64) MinimumValue() float64 SetMinimumValue(value float64) - Bias() float64 - SetBias(value float64) + MaximumValue() float64 + SetMaximumValue(value float64) SecondaryStrideInFeatureChannels() uint SetSecondaryStrideInFeatureChannels(value uint) - PrimaryStrideInFeatureChannels() uint - SetPrimaryStrideInFeatureChannels(value uint) + Bias() float64 + SetBias(value float64) } // The base class for arithmetic operators. [Full Topic] @@ -58,10 +58,6 @@ func (cc _CNNArithmeticClass) Alloc() CNNArithmetic { return rv } -func CNNArithmetic_Alloc() CNNArithmetic { - return CNNArithmeticClass.Alloc() -} - func (cc _CNNArithmeticClass) New() CNNArithmetic { rv := objc.Call[CNNArithmetic](cc, objc.Sel("new")) rv.Autorelease() @@ -95,7 +91,6 @@ func NewCNNArithmeticWithDevice(device metal.PDevice) CNNArithmetic { func (c_ CNNArithmetic) CopyWithZoneDevice(zone unsafe.Pointer, device metal.PDevice) CNNArithmetic { po1 := objc.WrapAsProtocol("MTLDevice", device) rv := objc.Call[CNNArithmetic](c_, objc.Sel("copyWithZone:device:"), zone, po1) - rv.Autorelease() return rv } @@ -140,47 +135,47 @@ func (c_ CNNArithmetic) EncodeToCommandBufferObjectPrimaryImageSecondaryImageDes // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpscnnarithmetic/2942497-secondaryscale?language=objc -func (c_ CNNArithmetic) SecondaryScale() float64 { - rv := objc.Call[float64](c_, objc.Sel("secondaryScale")) +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpscnnarithmetic/2942509-primaryscale?language=objc +func (c_ CNNArithmetic) PrimaryScale() float64 { + rv := objc.Call[float64](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 float64) { - 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 float64) { + objc.Call[objc.Void](c_, objc.Sel("setPrimaryScale:"), value) } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpscnnarithmetic/2942498-maximumvalue?language=objc -func (c_ CNNArithmetic) MaximumValue() float64 { - rv := objc.Call[float64](c_, objc.Sel("maximumValue")) +// [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/2942498-maximumvalue?language=objc -func (c_ CNNArithmetic) SetMaximumValue(value float64) { - objc.Call[objc.Void](c_, objc.Sel("setMaximumValue:"), 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) } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpscnnarithmetic/2942509-primaryscale?language=objc -func (c_ CNNArithmetic) PrimaryScale() float64 { - rv := objc.Call[float64](c_, objc.Sel("primaryScale")) +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpscnnarithmetic/2942497-secondaryscale?language=objc +func (c_ CNNArithmetic) SecondaryScale() float64 { + rv := objc.Call[float64](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 float64) { - 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 float64) { + objc.Call[objc.Void](c_, objc.Sel("setSecondaryScale:"), value) } // [Full Topic] @@ -200,17 +195,17 @@ func (c_ CNNArithmetic) SetMinimumValue(value float64) { // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpscnnarithmetic/2942499-bias?language=objc -func (c_ CNNArithmetic) Bias() float64 { - rv := objc.Call[float64](c_, objc.Sel("bias")) +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpscnnarithmetic/2942498-maximumvalue?language=objc +func (c_ CNNArithmetic) MaximumValue() float64 { + rv := objc.Call[float64](c_, objc.Sel("maximumValue")) return rv } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpscnnarithmetic/2942499-bias?language=objc -func (c_ CNNArithmetic) SetBias(value float64) { - objc.Call[objc.Void](c_, objc.Sel("setBias:"), value) +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpscnnarithmetic/2942498-maximumvalue?language=objc +func (c_ CNNArithmetic) SetMaximumValue(value float64) { + objc.Call[objc.Void](c_, objc.Sel("setMaximumValue:"), value) } // [Full Topic] @@ -230,15 +225,15 @@ func (c_ CNNArithmetic) SetSecondaryStrideInFeatureChannels(value uint) { // [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/2942499-bias?language=objc +func (c_ CNNArithmetic) Bias() float64 { + rv := objc.Call[float64](c_, objc.Sel("bias")) 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/2942499-bias?language=objc +func (c_ CNNArithmetic) SetBias(value float64) { + objc.Call[objc.Void](c_, objc.Sel("setBias:"), value) } diff --git a/macos/mps/cnn_arithmetic_gradient.gen.go b/macos/mps/cnn_arithmetic_gradient.gen.go index f382f66e..d5cb5c87 100644 --- a/macos/mps/cnn_arithmetic_gradient.gen.go +++ b/macos/mps/cnn_arithmetic_gradient.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package mps @@ -19,19 +19,19 @@ type _CNNArithmeticGradientClass struct { // An interface definition for the [CNNArithmeticGradient] class. type ICNNArithmeticGradient interface { ICNNGradientKernel + Bias() float64 + SetBias(value float64) + SecondaryStrideInFeatureChannels() uint + SetSecondaryStrideInFeatureChannels(value uint) + MinimumValue() float64 + SetMinimumValue(value float64) + IsSecondarySourceFilter() bool SecondaryScale() float64 SetSecondaryScale(value float64) - IsSecondarySourceFilter() bool MaximumValue() float64 SetMaximumValue(value float64) PrimaryScale() float64 SetPrimaryScale(value float64) - MinimumValue() float64 - SetMinimumValue(value float64) - Bias() float64 - SetBias(value float64) - SecondaryStrideInFeatureChannels() uint - SetSecondaryStrideInFeatureChannels(value uint) } // The base class for gradient arithmetic operators. [Full Topic] @@ -52,10 +52,6 @@ func (cc _CNNArithmeticGradientClass) Alloc() CNNArithmeticGradient { return rv } -func CNNArithmeticGradient_Alloc() CNNArithmeticGradient { - return CNNArithmeticGradientClass.Alloc() -} - func (cc _CNNArithmeticGradientClass) New() CNNArithmeticGradient { rv := objc.Call[CNNArithmeticGradient](cc, objc.Sel("new")) rv.Autorelease() @@ -89,7 +85,6 @@ func NewCNNArithmeticGradientWithDevice(device metal.PDevice) CNNArithmeticGradi func (c_ CNNArithmeticGradient) CopyWithZoneDevice(zone unsafe.Pointer, device metal.PDevice) CNNArithmeticGradient { po1 := objc.WrapAsProtocol("MTLDevice", device) rv := objc.Call[CNNArithmeticGradient](c_, objc.Sel("copyWithZone:device:"), zone, po1) - rv.Autorelease() return rv } @@ -104,98 +99,98 @@ func CNNArithmeticGradient_CopyWithZoneDevice(zone unsafe.Pointer, device metal. // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpscnnarithmeticgradient/2951856-secondaryscale?language=objc -func (c_ CNNArithmeticGradient) SecondaryScale() float64 { - rv := objc.Call[float64](c_, objc.Sel("secondaryScale")) +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpscnnarithmeticgradient/2951855-bias?language=objc +func (c_ CNNArithmeticGradient) Bias() float64 { + rv := objc.Call[float64](c_, objc.Sel("bias")) return rv } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpscnnarithmeticgradient/2951856-secondaryscale?language=objc -func (c_ CNNArithmeticGradient) SetSecondaryScale(value float64) { - objc.Call[objc.Void](c_, objc.Sel("setSecondaryScale:"), value) +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpscnnarithmeticgradient/2951855-bias?language=objc +func (c_ CNNArithmeticGradient) SetBias(value float64) { + objc.Call[objc.Void](c_, objc.Sel("setBias:"), value) } // [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")) +// [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/2951854-maximumvalue?language=objc -func (c_ CNNArithmeticGradient) MaximumValue() float64 { - rv := objc.Call[float64](c_, objc.Sel("maximumValue")) - return rv +// [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] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpscnnarithmeticgradient/2951854-maximumvalue?language=objc -func (c_ CNNArithmeticGradient) SetMaximumValue(value float64) { - objc.Call[objc.Void](c_, objc.Sel("setMaximumValue:"), value) +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpscnnarithmeticgradient/2951858-minimumvalue?language=objc +func (c_ CNNArithmeticGradient) MinimumValue() float64 { + rv := objc.Call[float64](c_, objc.Sel("minimumValue")) + return rv } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpscnnarithmeticgradient/2951861-primaryscale?language=objc -func (c_ CNNArithmeticGradient) PrimaryScale() float64 { - rv := objc.Call[float64](c_, objc.Sel("primaryScale")) - return rv +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpscnnarithmeticgradient/2951858-minimumvalue?language=objc +func (c_ CNNArithmeticGradient) SetMinimumValue(value float64) { + objc.Call[objc.Void](c_, objc.Sel("setMinimumValue:"), value) } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpscnnarithmeticgradient/2951861-primaryscale?language=objc -func (c_ CNNArithmeticGradient) SetPrimaryScale(value float64) { - objc.Call[objc.Void](c_, objc.Sel("setPrimaryScale:"), value) +// [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/2951858-minimumvalue?language=objc -func (c_ CNNArithmeticGradient) MinimumValue() float64 { - rv := objc.Call[float64](c_, objc.Sel("minimumValue")) +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpscnnarithmeticgradient/2951856-secondaryscale?language=objc +func (c_ CNNArithmeticGradient) SecondaryScale() float64 { + rv := objc.Call[float64](c_, objc.Sel("secondaryScale")) return rv } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpscnnarithmeticgradient/2951858-minimumvalue?language=objc -func (c_ CNNArithmeticGradient) SetMinimumValue(value float64) { - objc.Call[objc.Void](c_, objc.Sel("setMinimumValue:"), value) +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpscnnarithmeticgradient/2951856-secondaryscale?language=objc +func (c_ CNNArithmeticGradient) SetSecondaryScale(value float64) { + objc.Call[objc.Void](c_, objc.Sel("setSecondaryScale:"), value) } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpscnnarithmeticgradient/2951855-bias?language=objc -func (c_ CNNArithmeticGradient) Bias() float64 { - rv := objc.Call[float64](c_, objc.Sel("bias")) +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpscnnarithmeticgradient/2951854-maximumvalue?language=objc +func (c_ CNNArithmeticGradient) MaximumValue() float64 { + rv := objc.Call[float64](c_, objc.Sel("maximumValue")) return rv } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpscnnarithmeticgradient/2951855-bias?language=objc -func (c_ CNNArithmeticGradient) SetBias(value float64) { - objc.Call[objc.Void](c_, objc.Sel("setBias:"), value) +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpscnnarithmeticgradient/2951854-maximumvalue?language=objc +func (c_ CNNArithmeticGradient) SetMaximumValue(value float64) { + objc.Call[objc.Void](c_, objc.Sel("setMaximumValue:"), 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/2951861-primaryscale?language=objc +func (c_ CNNArithmeticGradient) PrimaryScale() float64 { + rv := objc.Call[float64](c_, objc.Sel("primaryScale")) 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/2951861-primaryscale?language=objc +func (c_ CNNArithmeticGradient) SetPrimaryScale(value float64) { + objc.Call[objc.Void](c_, objc.Sel("setPrimaryScale:"), value) } diff --git a/macos/mps/cnn_arithmetic_gradient_state.gen.go b/macos/mps/cnn_arithmetic_gradient_state.gen.go index a948a0bc..acfccc20 100644 --- a/macos/mps/cnn_arithmetic_gradient_state.gen.go +++ b/macos/mps/cnn_arithmetic_gradient_state.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package mps @@ -39,10 +39,6 @@ func (cc _CNNArithmeticGradientStateClass) Alloc() CNNArithmeticGradientState { return rv } -func CNNArithmeticGradientState_Alloc() CNNArithmeticGradientState { - return CNNArithmeticGradientStateClass.Alloc() -} - func (cc _CNNArithmeticGradientStateClass) New() CNNArithmeticGradientState { rv := objc.Call[CNNArithmeticGradientState](cc, objc.Sel("new")) rv.Autorelease() @@ -58,16 +54,45 @@ func (c_ CNNArithmeticGradientState) Init() CNNArithmeticGradientState { return rv } -func (c_ CNNArithmeticGradientState) InitWithResources(resources []metal.PResource) CNNArithmeticGradientState { - rv := objc.Call[CNNArithmeticGradientState](c_, objc.Sel("initWithResources:"), resources) +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, objc.Ptr(resourceList)) 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/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, objc.Ptr(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) + 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) instance.Autorelease() return instance } @@ -87,30 +112,70 @@ func NewCNNArithmeticGradientStateWithDeviceBufferSize(device metal.PDevice, buf 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 } -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, objc.Ptr(resourceList)) +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/2947915-temporarystatewithcommandbuffer?language=objc -func CNNArithmeticGradientState_TemporaryStateWithCommandBufferResourceList(commandBuffer metal.PCommandBuffer, resourceList IStateResourceList) CNNArithmeticGradientState { - return CNNArithmeticGradientStateClass.TemporaryStateWithCommandBufferResourceList(commandBuffer, resourceList) +// [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, objc.Ptr(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, objc.Ptr(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 } diff --git a/macos/mps/cnn_batch_normalization.gen.go b/macos/mps/cnn_batch_normalization.gen.go index 1f763f52..5d2dd9d3 100644 --- a/macos/mps/cnn_batch_normalization.gen.go +++ b/macos/mps/cnn_batch_normalization.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package mps @@ -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) - ReloadMeanAndVarianceWithCommandBufferMeanAndVarianceState(commandBuffer metal.PCommandBuffer, meanAndVarianceState ICNNNormalizationMeanAndVarianceState) - ReloadMeanAndVarianceWithCommandBufferObjectMeanAndVarianceState(commandBufferObject objc.IObject, meanAndVarianceState ICNNNormalizationMeanAndVarianceState) EncodeToCommandBufferSourceImageBatchNormalizationStateDestinationImage(commandBuffer metal.PCommandBuffer, sourceImage IImage, batchNormalizationState ICNNBatchNormalizationState, destinationImage IImage) EncodeToCommandBufferObjectSourceImageBatchNormalizationStateDestinationImage(commandBufferObject objc.IObject, sourceImage IImage, batchNormalizationState ICNNBatchNormalizationState, destinationImage IImage) - DataSource() CNNBatchNormalizationDataSourceWrapper + ReloadMeanAndVarianceWithCommandBufferMeanAndVarianceState(commandBuffer metal.PCommandBuffer, meanAndVarianceState ICNNNormalizationMeanAndVarianceState) + ReloadMeanAndVarianceWithCommandBufferObjectMeanAndVarianceState(commandBufferObject objc.IObject, meanAndVarianceState ICNNNormalizationMeanAndVarianceState) + NumberOfFeatureChannels() uint Epsilon() float64 SetEpsilon(value float64) - NumberOfFeatureChannels() uint + DataSource() CNNBatchNormalizationDataSourceObject } // A batch normalization kernel. [Full Topic] @@ -65,13 +65,25 @@ func NewCNNBatchNormalizationWithDeviceDataSource(device metal.PDevice, dataSour return instance } -func (cc _CNNBatchNormalizationClass) Alloc() CNNBatchNormalization { - rv := objc.Call[CNNBatchNormalization](cc, objc.Sel("alloc")) +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, objc.Ptr(fusedNeuronDescriptor)) return rv } -func CNNBatchNormalization_Alloc() CNNBatchNormalization { - return CNNBatchNormalizationClass.Alloc() +// [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 } func (cc _CNNBatchNormalizationClass) New() CNNBatchNormalization { @@ -107,7 +119,6 @@ func NewCNNBatchNormalizationWithDevice(device metal.PDevice) CNNBatchNormalizat func (c_ CNNBatchNormalization) CopyWithZoneDevice(zone unsafe.Pointer, device metal.PDevice) CNNBatchNormalization { po1 := objc.WrapAsProtocol("MTLDevice", device) rv := objc.Call[CNNBatchNormalization](c_, objc.Sel("copyWithZone:device:"), zone, po1) - rv.Autorelease() return rv } @@ -120,13 +131,6 @@ 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 @@ -149,6 +153,13 @@ func (c_ CNNBatchNormalization) EncodeBatchToCommandBufferObjectSourceImagesBatc objc.Call[objc.Void](c_, objc.Sel("encodeBatchToCommandBuffer:sourceImages:batchNormalizationState:destinationImages:"), objc.Ptr(commandBufferObject), sourceImages, objc.Ptr(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 @@ -166,39 +177,39 @@ func (c_ CNNBatchNormalization) ReloadGammaAndBetaWithCommandBufferObjectGammaAn // [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, objc.Ptr(meanAndVarianceState)) + objc.Call[objc.Void](c_, objc.Sel("encodeToCommandBuffer:sourceImage:batchNormalizationState:destinationImage:"), po0, objc.Ptr(sourceImage), objc.Ptr(batchNormalizationState), objc.Ptr(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:"), objc.Ptr(commandBufferObject), objc.Ptr(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:"), objc.Ptr(commandBufferObject), objc.Ptr(sourceImage), objc.Ptr(batchNormalizationState), objc.Ptr(destinationImage)) } // [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, objc.Ptr(sourceImage), objc.Ptr(batchNormalizationState), objc.Ptr(destinationImage)) + objc.Call[objc.Void](c_, objc.Sel("reloadMeanAndVarianceWithCommandBuffer:meanAndVarianceState:"), po0, objc.Ptr(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:"), objc.Ptr(commandBufferObject), objc.Ptr(sourceImage), objc.Ptr(batchNormalizationState), objc.Ptr(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:"), objc.Ptr(commandBufferObject), objc.Ptr(meanAndVarianceState)) } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpscnnbatchnormalization/2953967-datasource?language=objc -func (c_ CNNBatchNormalization) DataSource() CNNBatchNormalizationDataSourceWrapper { - rv := objc.Call[CNNBatchNormalizationDataSourceWrapper](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 } @@ -219,8 +230,8 @@ func (c_ CNNBatchNormalization) SetEpsilon(value float64) { // [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 } diff --git a/macos/mps/cnn_batch_normalization_data_source.gen.go b/macos/mps/cnn_batch_normalization_data_source_protocol.gen.go similarity index 66% rename from macos/mps/cnn_batch_normalization_data_source.gen.go rename to macos/mps/cnn_batch_normalization_data_source_protocol.gen.go index bbf0d519..92257a82 100644 --- a/macos/mps/cnn_batch_normalization_data_source.gen.go +++ b/macos/mps/cnn_batch_normalization_data_source_protocol.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package mps @@ -15,36 +15,36 @@ import ( // [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpscnnbatchnormalizationdatasource?language=objc type PCNNBatchNormalizationDataSource interface { // optional - UpdateGammaAndBetaWithCommandBufferBatchNormalizationState(commandBuffer metal.CommandBufferWrapper, batchNormalizationState CNNBatchNormalizationState) ICNNNormalizationGammaAndBetaState - HasUpdateGammaAndBetaWithCommandBufferBatchNormalizationState() bool + EncodeWithCoder(aCoder foundation.Coder) + HasEncodeWithCoder() bool // optional - Beta() *float64 - HasBeta() bool + Gamma() *float64 + HasGamma() bool // optional - Epsilon() float64 - HasEpsilon() bool + CopyWithZoneDevice(zone unsafe.Pointer, device metal.DeviceObject) objc.Object + HasCopyWithZoneDevice() bool // optional - EncodeWithCoder(aCoder foundation.Coder) - HasEncodeWithCoder() bool + Purge() + HasPurge() bool // optional UpdateGammaAndBetaWithBatchNormalizationState(batchNormalizationState CNNBatchNormalizationState) bool HasUpdateGammaAndBetaWithBatchNormalizationState() bool // optional - InitWithCoder(aDecoder foundation.Coder) objc.IObject - HasInitWithCoder() bool + UpdateMeanAndVarianceWithCommandBufferBatchNormalizationState(commandBuffer metal.CommandBufferObject, batchNormalizationState CNNBatchNormalizationState) CNNNormalizationMeanAndVarianceState + HasUpdateMeanAndVarianceWithCommandBufferBatchNormalizationState() bool // optional - Gamma() *float64 - HasGamma() bool + Label() string + HasLabel() bool // optional - Purge() - HasPurge() bool + NumberOfFeatureChannels() uint + HasNumberOfFeatureChannels() bool // optional UpdateMeanAndVarianceWithBatchNormalizationState(batchNormalizationState CNNBatchNormalizationState) bool @@ -55,225 +55,227 @@ type PCNNBatchNormalizationDataSource interface { HasVariance() bool // optional - CopyWithZoneDevice(zone unsafe.Pointer, device metal.DeviceWrapper) objc.IObject - HasCopyWithZoneDevice() bool + UpdateGammaAndBetaWithCommandBufferBatchNormalizationState(commandBuffer metal.CommandBufferObject, batchNormalizationState CNNBatchNormalizationState) CNNNormalizationGammaAndBetaState + HasUpdateGammaAndBetaWithCommandBufferBatchNormalizationState() bool // optional Load() bool HasLoad() bool // optional - Label() string - HasLabel() bool - - // optional - UpdateMeanAndVarianceWithCommandBufferBatchNormalizationState(commandBuffer metal.CommandBufferWrapper, batchNormalizationState CNNBatchNormalizationState) ICNNNormalizationMeanAndVarianceState - HasUpdateMeanAndVarianceWithCommandBufferBatchNormalizationState() bool + Epsilon() float64 + HasEpsilon() bool // optional Mean() *float64 HasMean() bool // optional - NumberOfFeatureChannels() uint - HasNumberOfFeatureChannels() bool + InitWithCoder(aDecoder foundation.Coder) objc.Object + HasInitWithCoder() bool + + // optional + Beta() *float64 + HasBeta() bool } -// A concrete type wrapper for the [PCNNBatchNormalizationDataSource] protocol. -type CNNBatchNormalizationDataSourceWrapper struct { +// ensure impl type implements protocol interface +var _ PCNNBatchNormalizationDataSource = (*CNNBatchNormalizationDataSourceObject)(nil) + +// A concrete type for the [PCNNBatchNormalizationDataSource] protocol. +type CNNBatchNormalizationDataSourceObject struct { objc.Object } -func (c_ CNNBatchNormalizationDataSourceWrapper) HasUpdateGammaAndBetaWithCommandBufferBatchNormalizationState() bool { - return c_.RespondsToSelector(objc.Sel("updateGammaAndBetaWithCommandBuffer:batchNormalizationState:")) +func (c_ CNNBatchNormalizationDataSourceObject) HasEncodeWithCoder() bool { + return c_.RespondsToSelector(objc.Sel("encodeWithCoder:")) } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpscnnbatchnormalizationdatasource/2951891-updategammaandbetawithcommandbuf?language=objc -func (c_ CNNBatchNormalizationDataSourceWrapper) UpdateGammaAndBetaWithCommandBufferBatchNormalizationState(commandBuffer metal.PCommandBuffer, batchNormalizationState ICNNBatchNormalizationState) CNNNormalizationGammaAndBetaState { - po0 := objc.WrapAsProtocol("MTLCommandBuffer", commandBuffer) - rv := objc.Call[CNNNormalizationGammaAndBetaState](c_, objc.Sel("updateGammaAndBetaWithCommandBuffer:batchNormalizationState:"), po0, objc.Ptr(batchNormalizationState)) - return rv +// [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:"), objc.Ptr(aCoder)) } -func (c_ CNNBatchNormalizationDataSourceWrapper) HasBeta() bool { - return c_.RespondsToSelector(objc.Sel("beta")) +func (c_ CNNBatchNormalizationDataSourceObject) HasGamma() bool { + return c_.RespondsToSelector(objc.Sel("gamma")) } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpscnnbatchnormalizationdatasource/2942586-beta?language=objc -func (c_ CNNBatchNormalizationDataSourceWrapper) Beta() *float64 { - rv := objc.Call[*float64](c_, objc.Sel("beta")) +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpscnnbatchnormalizationdatasource/2942605-gamma?language=objc +func (c_ CNNBatchNormalizationDataSourceObject) Gamma() *float64 { + rv := objc.Call[*float64](c_, objc.Sel("gamma")) return rv } -func (c_ CNNBatchNormalizationDataSourceWrapper) HasEpsilon() bool { - return c_.RespondsToSelector(objc.Sel("epsilon")) +func (c_ CNNBatchNormalizationDataSourceObject) HasCopyWithZoneDevice() bool { + return c_.RespondsToSelector(objc.Sel("copyWithZone:device:")) } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpscnnbatchnormalizationdatasource/2947917-epsilon?language=objc -func (c_ CNNBatchNormalizationDataSourceWrapper) Epsilon() float64 { - rv := objc.Call[float64](c_, objc.Sel("epsilon")) +// [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 } -func (c_ CNNBatchNormalizationDataSourceWrapper) HasEncodeWithCoder() bool { - return c_.RespondsToSelector(objc.Sel("encodeWithCoder:")) +func (c_ CNNBatchNormalizationDataSourceObject) HasPurge() bool { + return c_.RespondsToSelector(objc.Sel("purge")) } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpscnnbatchnormalizationdatasource/2951882-encodewithcoder?language=objc -func (c_ CNNBatchNormalizationDataSourceWrapper) EncodeWithCoder(aCoder foundation.ICoder) { - objc.Call[objc.Void](c_, objc.Sel("encodeWithCoder:"), objc.Ptr(aCoder)) +// [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_ CNNBatchNormalizationDataSourceWrapper) HasUpdateGammaAndBetaWithBatchNormalizationState() bool { +func (c_ CNNBatchNormalizationDataSourceObject) HasUpdateGammaAndBetaWithBatchNormalizationState() bool { return c_.RespondsToSelector(objc.Sel("updateGammaAndBetaWithBatchNormalizationState:")) } // [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpscnnbatchnormalizationdatasource/2953129-updategammaandbetawithbatchnorma?language=objc -func (c_ CNNBatchNormalizationDataSourceWrapper) UpdateGammaAndBetaWithBatchNormalizationState(batchNormalizationState ICNNBatchNormalizationState) bool { +func (c_ CNNBatchNormalizationDataSourceObject) UpdateGammaAndBetaWithBatchNormalizationState(batchNormalizationState CNNBatchNormalizationState) bool { rv := objc.Call[bool](c_, objc.Sel("updateGammaAndBetaWithBatchNormalizationState:"), objc.Ptr(batchNormalizationState)) return rv } -func (c_ CNNBatchNormalizationDataSourceWrapper) HasInitWithCoder() bool { - return c_.RespondsToSelector(objc.Sel("initWithCoder:")) +func (c_ CNNBatchNormalizationDataSourceObject) HasUpdateMeanAndVarianceWithCommandBufferBatchNormalizationState() bool { + return c_.RespondsToSelector(objc.Sel("updateMeanAndVarianceWithCommandBuffer:batchNormalizationState:")) } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpscnnbatchnormalizationdatasource/2951886-initwithcoder?language=objc -func (c_ CNNBatchNormalizationDataSourceWrapper) InitWithCoder(aDecoder foundation.ICoder) objc.Object { - rv := objc.Call[objc.Object](c_, objc.Sel("initWithCoder:"), objc.Ptr(aDecoder)) +// [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, objc.Ptr(batchNormalizationState)) return rv } -func (c_ CNNBatchNormalizationDataSourceWrapper) HasGamma() bool { - return c_.RespondsToSelector(objc.Sel("gamma")) +func (c_ CNNBatchNormalizationDataSourceObject) HasLabel() bool { + return c_.RespondsToSelector(objc.Sel("label")) } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpscnnbatchnormalizationdatasource/2942605-gamma?language=objc -func (c_ CNNBatchNormalizationDataSourceWrapper) Gamma() *float64 { - rv := objc.Call[*float64](c_, objc.Sel("gamma")) +// [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_ CNNBatchNormalizationDataSourceWrapper) HasPurge() bool { - return c_.RespondsToSelector(objc.Sel("purge")) +func (c_ CNNBatchNormalizationDataSourceObject) HasNumberOfFeatureChannels() bool { + return c_.RespondsToSelector(objc.Sel("numberOfFeatureChannels")) } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpscnnbatchnormalizationdatasource/2942607-purge?language=objc -func (c_ CNNBatchNormalizationDataSourceWrapper) Purge() { - objc.Call[objc.Void](c_, objc.Sel("purge")) +// [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 } -func (c_ CNNBatchNormalizationDataSourceWrapper) HasUpdateMeanAndVarianceWithBatchNormalizationState() bool { +func (c_ CNNBatchNormalizationDataSourceObject) HasUpdateMeanAndVarianceWithBatchNormalizationState() bool { return c_.RespondsToSelector(objc.Sel("updateMeanAndVarianceWithBatchNormalizationState:")) } // [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpscnnbatchnormalizationdatasource/3002360-updatemeanandvariancewithbatchno?language=objc -func (c_ CNNBatchNormalizationDataSourceWrapper) UpdateMeanAndVarianceWithBatchNormalizationState(batchNormalizationState ICNNBatchNormalizationState) bool { +func (c_ CNNBatchNormalizationDataSourceObject) UpdateMeanAndVarianceWithBatchNormalizationState(batchNormalizationState CNNBatchNormalizationState) bool { rv := objc.Call[bool](c_, objc.Sel("updateMeanAndVarianceWithBatchNormalizationState:"), objc.Ptr(batchNormalizationState)) return rv } -func (c_ CNNBatchNormalizationDataSourceWrapper) HasVariance() bool { +func (c_ CNNBatchNormalizationDataSourceObject) HasVariance() bool { return c_.RespondsToSelector(objc.Sel("variance")) } // [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpscnnbatchnormalizationdatasource/2942592-variance?language=objc -func (c_ CNNBatchNormalizationDataSourceWrapper) Variance() *float64 { +func (c_ CNNBatchNormalizationDataSourceObject) Variance() *float64 { rv := objc.Call[*float64](c_, objc.Sel("variance")) return rv } -func (c_ CNNBatchNormalizationDataSourceWrapper) HasCopyWithZoneDevice() bool { - return c_.RespondsToSelector(objc.Sel("copyWithZone:device:")) +func (c_ CNNBatchNormalizationDataSourceObject) HasUpdateGammaAndBetaWithCommandBufferBatchNormalizationState() bool { + return c_.RespondsToSelector(objc.Sel("updateGammaAndBetaWithCommandBuffer:batchNormalizationState:")) } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpscnnbatchnormalizationdatasource/3013773-copywithzone?language=objc -func (c_ CNNBatchNormalizationDataSourceWrapper) CopyWithZoneDevice(zone unsafe.Pointer, device metal.PDevice) objc.Object { - po1 := objc.WrapAsProtocol("MTLDevice", device) - rv := objc.Call[objc.Object](c_, objc.Sel("copyWithZone:device:"), zone, po1) - rv.Autorelease() +// [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, objc.Ptr(batchNormalizationState)) return rv } -func (c_ CNNBatchNormalizationDataSourceWrapper) HasLoad() bool { +func (c_ CNNBatchNormalizationDataSourceObject) HasLoad() bool { return c_.RespondsToSelector(objc.Sel("load")) } // [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpscnnbatchnormalizationdatasource/2942579-load?language=objc -func (c_ CNNBatchNormalizationDataSourceWrapper) Load() bool { +func (c_ CNNBatchNormalizationDataSourceObject) Load() bool { rv := objc.Call[bool](c_, objc.Sel("load")) return rv } -func (c_ CNNBatchNormalizationDataSourceWrapper) HasLabel() bool { - return c_.RespondsToSelector(objc.Sel("label")) +func (c_ CNNBatchNormalizationDataSourceObject) HasEpsilon() bool { + return c_.RespondsToSelector(objc.Sel("epsilon")) } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpscnnbatchnormalizationdatasource/2953128-label?language=objc -func (c_ CNNBatchNormalizationDataSourceWrapper) Label() string { - rv := objc.Call[string](c_, objc.Sel("label")) +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpscnnbatchnormalizationdatasource/2947917-epsilon?language=objc +func (c_ CNNBatchNormalizationDataSourceObject) Epsilon() float64 { + rv := objc.Call[float64](c_, objc.Sel("epsilon")) return rv } -func (c_ CNNBatchNormalizationDataSourceWrapper) HasUpdateMeanAndVarianceWithCommandBufferBatchNormalizationState() bool { - return c_.RespondsToSelector(objc.Sel("updateMeanAndVarianceWithCommandBuffer:batchNormalizationState:")) +func (c_ CNNBatchNormalizationDataSourceObject) HasMean() bool { + return c_.RespondsToSelector(objc.Sel("mean")) } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpscnnbatchnormalizationdatasource/3002361-updatemeanandvariancewithcommand?language=objc -func (c_ CNNBatchNormalizationDataSourceWrapper) UpdateMeanAndVarianceWithCommandBufferBatchNormalizationState(commandBuffer metal.PCommandBuffer, batchNormalizationState ICNNBatchNormalizationState) CNNNormalizationMeanAndVarianceState { - po0 := objc.WrapAsProtocol("MTLCommandBuffer", commandBuffer) - rv := objc.Call[CNNNormalizationMeanAndVarianceState](c_, objc.Sel("updateMeanAndVarianceWithCommandBuffer:batchNormalizationState:"), po0, objc.Ptr(batchNormalizationState)) +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpscnnbatchnormalizationdatasource/2942589-mean?language=objc +func (c_ CNNBatchNormalizationDataSourceObject) Mean() *float64 { + rv := objc.Call[*float64](c_, objc.Sel("mean")) return rv } -func (c_ CNNBatchNormalizationDataSourceWrapper) HasMean() bool { - return c_.RespondsToSelector(objc.Sel("mean")) +func (c_ CNNBatchNormalizationDataSourceObject) HasInitWithCoder() bool { + return c_.RespondsToSelector(objc.Sel("initWithCoder:")) } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpscnnbatchnormalizationdatasource/2942589-mean?language=objc -func (c_ CNNBatchNormalizationDataSourceWrapper) Mean() *float64 { - rv := objc.Call[*float64](c_, objc.Sel("mean")) +// [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:"), objc.Ptr(aDecoder)) return rv } -func (c_ CNNBatchNormalizationDataSourceWrapper) HasNumberOfFeatureChannels() bool { - return c_.RespondsToSelector(objc.Sel("numberOfFeatureChannels")) +func (c_ CNNBatchNormalizationDataSourceObject) HasBeta() bool { + return c_.RespondsToSelector(objc.Sel("beta")) } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpscnnbatchnormalizationdatasource/2942596-numberoffeaturechannels?language=objc -func (c_ CNNBatchNormalizationDataSourceWrapper) NumberOfFeatureChannels() uint { - rv := objc.Call[uint](c_, objc.Sel("numberOfFeatureChannels")) +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpscnnbatchnormalizationdatasource/2942586-beta?language=objc +func (c_ CNNBatchNormalizationDataSourceObject) Beta() *float64 { + rv := objc.Call[*float64](c_, objc.Sel("beta")) return rv } diff --git a/macos/mps/cnn_batch_normalization_gradient.gen.go b/macos/mps/cnn_batch_normalization_gradient.gen.go index 07717e77..b28011ff 100644 --- a/macos/mps/cnn_batch_normalization_gradient.gen.go +++ b/macos/mps/cnn_batch_normalization_gradient.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package mps @@ -22,6 +22,10 @@ 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 } @@ -59,10 +63,6 @@ func (cc _CNNBatchNormalizationGradientClass) Alloc() CNNBatchNormalizationGradi return rv } -func CNNBatchNormalizationGradient_Alloc() CNNBatchNormalizationGradient { - return CNNBatchNormalizationGradientClass.Alloc() -} - func (cc _CNNBatchNormalizationGradientClass) New() CNNBatchNormalizationGradient { rv := objc.Call[CNNBatchNormalizationGradient](cc, objc.Sel("new")) rv.Autorelease() @@ -96,7 +96,6 @@ func NewCNNBatchNormalizationGradientWithDevice(device metal.PDevice) CNNBatchNo func (c_ CNNBatchNormalizationGradient) CopyWithZoneDevice(zone unsafe.Pointer, device metal.PDevice) CNNBatchNormalizationGradient { po1 := objc.WrapAsProtocol("MTLDevice", device) rv := objc.Call[CNNBatchNormalizationGradient](c_, objc.Sel("copyWithZone:device:"), zone, po1) - rv.Autorelease() return rv } @@ -126,6 +125,36 @@ 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, objc.Ptr(sourceGradient), objc.Ptr(sourceImage), objc.Ptr(batchNormalizationState), objc.Ptr(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:"), objc.Ptr(commandBufferObject), objc.Ptr(sourceGradient), objc.Ptr(sourceImage), objc.Ptr(batchNormalizationState), objc.Ptr(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, objc.Ptr(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:"), objc.Ptr(commandBufferObject), sourceGradients, sourceImages, objc.Ptr(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_gradient_node.gen.go b/macos/mps/cnn_batch_normalization_gradient_node.gen.go index 361d81c7..245b9a2c 100644 --- a/macos/mps/cnn_batch_normalization_gradient_node.gen.go +++ b/macos/mps/cnn_batch_normalization_gradient_node.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package mps @@ -64,10 +64,6 @@ func (cc _CNNBatchNormalizationGradientNodeClass) Alloc() CNNBatchNormalizationG return rv } -func CNNBatchNormalizationGradientNode_Alloc() CNNBatchNormalizationGradientNode { - return CNNBatchNormalizationGradientNodeClass.Alloc() -} - func (cc _CNNBatchNormalizationGradientNodeClass) New() CNNBatchNormalizationGradientNode { rv := objc.Call[CNNBatchNormalizationGradientNode](cc, objc.Sel("new")) rv.Autorelease() diff --git a/macos/mps/cnn_batch_normalization_node.gen.go b/macos/mps/cnn_batch_normalization_node.gen.go index 62244f64..cdaf2d4f 100644 --- a/macos/mps/cnn_batch_normalization_node.gen.go +++ b/macos/mps/cnn_batch_normalization_node.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package mps @@ -37,32 +37,32 @@ func CNNBatchNormalizationNodeFrom(ptr unsafe.Pointer) CNNBatchNormalizationNode } } -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:"), objc.Ptr(source), po1) + rv := objc.Call[CNNBatchNormalizationNode](c_, objc.Sel("initWithSource:dataSource:"), objc.Ptr(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 (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:"), objc.Ptr(source), po1) + rv := objc.Call[CNNBatchNormalizationNode](cc, objc.Sel("nodeWithSource:dataSource:"), objc.Ptr(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) Alloc() CNNBatchNormalizationNode { @@ -70,10 +70,6 @@ func (cc _CNNBatchNormalizationNodeClass) Alloc() CNNBatchNormalizationNode { return rv } -func CNNBatchNormalizationNode_Alloc() CNNBatchNormalizationNode { - return CNNBatchNormalizationNodeClass.Alloc() -} - func (cc _CNNBatchNormalizationNodeClass) New() CNNBatchNormalizationNode { rv := objc.Call[CNNBatchNormalizationNode](cc, objc.Sel("new")) rv.Autorelease() diff --git a/macos/mps/cnn_batch_normalization_state.gen.go b/macos/mps/cnn_batch_normalization_state.gen.go index fe698a10..8f64b873 100644 --- a/macos/mps/cnn_batch_normalization_state.gen.go +++ b/macos/mps/cnn_batch_normalization_state.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package mps @@ -19,13 +19,13 @@ type _CNNBatchNormalizationStateClass struct { // An interface definition for the [CNNBatchNormalizationState] class. type ICNNBatchNormalizationState interface { INNGradientState - GradientForGamma() metal.BufferWrapper - Beta() metal.BufferWrapper - Gamma() metal.BufferWrapper - GradientForBeta() metal.BufferWrapper - Variance() metal.BufferWrapper + Mean() metal.BufferObject + GradientForGamma() metal.BufferObject Reset() - Mean() metal.BufferWrapper + Beta() metal.BufferObject + GradientForBeta() metal.BufferObject + Gamma() metal.BufferObject + Variance() metal.BufferObject BatchNormalization() CNNBatchNormalization } @@ -47,10 +47,6 @@ func (cc _CNNBatchNormalizationStateClass) Alloc() CNNBatchNormalizationState { return rv } -func CNNBatchNormalizationState_Alloc() CNNBatchNormalizationState { - return CNNBatchNormalizationStateClass.Alloc() -} - func (cc _CNNBatchNormalizationStateClass) New() CNNBatchNormalizationState { rv := objc.Call[CNNBatchNormalizationState](cc, objc.Sel("new")) rv.Autorelease() @@ -66,31 +62,30 @@ func (c_ CNNBatchNormalizationState) Init() CNNBatchNormalizationState { return rv } -func (c_ CNNBatchNormalizationState) InitWithResources(resources []metal.PResource) CNNBatchNormalizationState { - rv := objc.Call[CNNBatchNormalizationState](c_, objc.Sel("initWithResources:"), resources) +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, objc.Ptr(resourceList)) 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) - instance.Autorelease() - return instance +// [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) InitWithDeviceBufferSize(device metal.PDevice, bufferSize uint) CNNBatchNormalizationState { +func (c_ CNNBatchNormalizationState) InitWithDeviceTextureDescriptor(device metal.PDevice, descriptor metal.ITextureDescriptor) CNNBatchNormalizationState { po0 := objc.WrapAsProtocol("MTLDevice", device) - rv := objc.Call[CNNBatchNormalizationState](c_, objc.Sel("initWithDevice:bufferSize:"), po0, bufferSize) + rv := objc.Call[CNNBatchNormalizationState](c_, objc.Sel("initWithDevice:textureDescriptor:"), po0, objc.Ptr(descriptor)) return rv } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsstate/2942392-initwithdevice?language=objc -func NewCNNBatchNormalizationStateWithDeviceBufferSize(device metal.PDevice, bufferSize uint) CNNBatchNormalizationState { - instance := CNNBatchNormalizationStateClass.Alloc().InitWithDeviceBufferSize(device, bufferSize) +// [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 } @@ -110,56 +105,102 @@ func NewCNNBatchNormalizationStateWithResource(resource metal.PResource) CNNBatc return instance } -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, objc.Ptr(resourceList)) +func (c_ CNNBatchNormalizationState) InitWithDeviceBufferSize(device metal.PDevice, bufferSize uint) CNNBatchNormalizationState { + po0 := objc.WrapAsProtocol("MTLDevice", device) + rv := objc.Call[CNNBatchNormalizationState](c_, objc.Sel("initWithDevice:bufferSize:"), po0, bufferSize) 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) +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsstate/2942392-initwithdevice?language=objc +func NewCNNBatchNormalizationStateWithDeviceBufferSize(device metal.PDevice, bufferSize uint) CNNBatchNormalizationState { + instance := CNNBatchNormalizationStateClass.Alloc().InitWithDeviceBufferSize(device, bufferSize) + instance.Autorelease() + return instance +} + +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/mpscnnbatchnormalizationstate/2951893-gradientforgamma?language=objc -func (c_ CNNBatchNormalizationState) GradientForGamma() metal.BufferWrapper { - rv := objc.Call[metal.BufferWrapper](c_, objc.Sel("gradientForGamma")) +// [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 +} + +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) return rv } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpscnnbatchnormalizationstate/2951888-beta?language=objc -func (c_ CNNBatchNormalizationState) Beta() metal.BufferWrapper { - rv := objc.Call[metal.BufferWrapper](c_, objc.Sel("beta")) +// [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] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpscnnbatchnormalizationstate/2951892-gamma?language=objc -func (c_ CNNBatchNormalizationState) Gamma() metal.BufferWrapper { - rv := objc.Call[metal.BufferWrapper](c_, objc.Sel("gamma")) +// [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, objc.Ptr(descriptor)) return rv } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpscnnbatchnormalizationstate/2951890-gradientforbeta?language=objc -func (c_ CNNBatchNormalizationState) GradientForBeta() metal.BufferWrapper { - rv := objc.Call[metal.BufferWrapper](c_, objc.Sel("gradientForBeta")) +// [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, objc.Ptr(resourceList)) return rv } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpscnnbatchnormalizationstate/2942603-variance?language=objc -func (c_ CNNBatchNormalizationState) Variance() metal.BufferWrapper { - rv := objc.Call[metal.BufferWrapper](c_, objc.Sel("variance")) +// [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] +// +// [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 +} + +// [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")) return rv } @@ -172,9 +213,33 @@ func (c_ CNNBatchNormalizationState) Reset() { // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpscnnbatchnormalizationstate/2942612-mean?language=objc -func (c_ CNNBatchNormalizationState) Mean() metal.BufferWrapper { - rv := objc.Call[metal.BufferWrapper](c_, objc.Sel("mean")) +// [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")) return rv } diff --git a/macos/mps/cnn_batch_normalization_statistics.gen.go b/macos/mps/cnn_batch_normalization_statistics.gen.go index 68a172a3..b79aeb6b 100644 --- a/macos/mps/cnn_batch_normalization_statistics.gen.go +++ b/macos/mps/cnn_batch_normalization_statistics.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package mps @@ -57,10 +57,6 @@ func (cc _CNNBatchNormalizationStatisticsClass) Alloc() CNNBatchNormalizationSta return rv } -func CNNBatchNormalizationStatistics_Alloc() CNNBatchNormalizationStatistics { - return CNNBatchNormalizationStatisticsClass.Alloc() -} - func (cc _CNNBatchNormalizationStatisticsClass) New() CNNBatchNormalizationStatistics { rv := objc.Call[CNNBatchNormalizationStatistics](cc, objc.Sel("new")) rv.Autorelease() @@ -79,7 +75,6 @@ func (c_ CNNBatchNormalizationStatistics) Init() CNNBatchNormalizationStatistics func (c_ CNNBatchNormalizationStatistics) CopyWithZoneDevice(zone unsafe.Pointer, device metal.PDevice) CNNBatchNormalizationStatistics { po1 := objc.WrapAsProtocol("MTLDevice", device) rv := objc.Call[CNNBatchNormalizationStatistics](c_, objc.Sel("copyWithZone:device:"), zone, po1) - rv.Autorelease() return rv } diff --git a/macos/mps/cnn_batch_normalization_statistics_gradient.gen.go b/macos/mps/cnn_batch_normalization_statistics_gradient.gen.go index bf7ab5f7..1af26a20 100644 --- a/macos/mps/cnn_batch_normalization_statistics_gradient.gen.go +++ b/macos/mps/cnn_batch_normalization_statistics_gradient.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package mps @@ -57,10 +57,6 @@ func (cc _CNNBatchNormalizationStatisticsGradientClass) Alloc() CNNBatchNormaliz return rv } -func CNNBatchNormalizationStatisticsGradient_Alloc() CNNBatchNormalizationStatisticsGradient { - return CNNBatchNormalizationStatisticsGradientClass.Alloc() -} - func (cc _CNNBatchNormalizationStatisticsGradientClass) New() CNNBatchNormalizationStatisticsGradient { rv := objc.Call[CNNBatchNormalizationStatisticsGradient](cc, objc.Sel("new")) rv.Autorelease() @@ -94,7 +90,6 @@ func NewCNNBatchNormalizationStatisticsGradientWithDevice(device metal.PDevice) func (c_ CNNBatchNormalizationStatisticsGradient) CopyWithZoneDevice(zone unsafe.Pointer, device metal.PDevice) CNNBatchNormalizationStatisticsGradient { po1 := objc.WrapAsProtocol("MTLDevice", device) rv := objc.Call[CNNBatchNormalizationStatisticsGradient](c_, objc.Sel("copyWithZone:device:"), zone, po1) - rv.Autorelease() return rv } diff --git a/macos/mps/cnn_binary_convolution.gen.go b/macos/mps/cnn_binary_convolution.gen.go index 6408c7a2..2dabe8a7 100644 --- a/macos/mps/cnn_binary_convolution.gen.go +++ b/macos/mps/cnn_binary_convolution.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package mps @@ -36,6 +36,22 @@ func CNNBinaryConvolutionFrom(ptr unsafe.Pointer) CNNBinaryConvolution { } } +func (c_ CNNBinaryConvolution) InitWithDeviceConvolutionDataOutputBiasTermsOutputScaleTermsInputBiasTermsInputScaleTermsTypeFlags(device metal.PDevice, convolutionData PCNNConvolutionDataSource, outputBiasTerms *float64, outputScaleTerms *float64, inputBiasTerms *float64, inputScaleTerms *float64, 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 *float64, outputScaleTerms *float64, inputBiasTerms *float64, inputScaleTerms *float64, 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 float64, type_ CNNBinaryConvolutionType, flags CNNBinaryConvolutionFlags) CNNBinaryConvolution { po0 := objc.WrapAsProtocol("MTLDevice", device) po1 := objc.WrapAsProtocol("MPSCNNConvolutionDataSource", convolutionData) @@ -57,10 +73,6 @@ func (cc _CNNBinaryConvolutionClass) Alloc() CNNBinaryConvolution { return rv } -func CNNBinaryConvolution_Alloc() CNNBinaryConvolution { - return CNNBinaryConvolutionClass.Alloc() -} - func (cc _CNNBinaryConvolutionClass) New() CNNBinaryConvolution { rv := objc.Call[CNNBinaryConvolution](cc, objc.Sel("new")) rv.Autorelease() @@ -94,7 +106,6 @@ func NewCNNBinaryConvolutionWithDevice(device metal.PDevice) CNNBinaryConvolutio func (c_ CNNBinaryConvolution) CopyWithZoneDevice(zone unsafe.Pointer, device metal.PDevice) CNNBinaryConvolution { po1 := objc.WrapAsProtocol("MTLDevice", device) rv := objc.Call[CNNBinaryConvolution](c_, objc.Sel("copyWithZone:device:"), zone, po1) - rv.Autorelease() return rv } diff --git a/macos/mps/cnn_binary_convolution_node.gen.go b/macos/mps/cnn_binary_convolution_node.gen.go index 4bf73554..cfb94737 100644 --- a/macos/mps/cnn_binary_convolution_node.gen.go +++ b/macos/mps/cnn_binary_convolution_node.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package mps @@ -33,6 +33,21 @@ func CNNBinaryConvolutionNodeFrom(ptr unsafe.Pointer) CNNBinaryConvolutionNode { } } +func (c_ CNNBinaryConvolutionNode) InitWithSourceWeightsScaleValueTypeFlags(sourceNode INNImageNode, weights PCNNConvolutionDataSource, scaleValue float64, type_ CNNBinaryConvolutionType, flags CNNBinaryConvolutionFlags) CNNBinaryConvolutionNode { + po1 := objc.WrapAsProtocol("MPSCNNConvolutionDataSource", weights) + rv := objc.Call[CNNBinaryConvolutionNode](c_, objc.Sel("initWithSource:weights:scaleValue:type:flags:"), objc.Ptr(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 float64, 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 float64, type_ CNNBinaryConvolutionType, flags CNNBinaryConvolutionFlags) CNNBinaryConvolutionNode { po1 := objc.WrapAsProtocol("MPSCNNConvolutionDataSource", weights) rv := objc.Call[CNNBinaryConvolutionNode](cc, objc.Sel("nodeWithSource:weights:scaleValue:type:flags:"), objc.Ptr(sourceNode), po1, scaleValue, type_, flags) @@ -46,28 +61,37 @@ func CNNBinaryConvolutionNode_NodeWithSourceWeightsScaleValueTypeFlags(sourceNod return CNNBinaryConvolutionNodeClass.NodeWithSourceWeightsScaleValueTypeFlags(sourceNode, weights, scaleValue, type_, flags) } -func (c_ CNNBinaryConvolutionNode) InitWithSourceWeightsScaleValueTypeFlags(sourceNode INNImageNode, weights PCNNConvolutionDataSource, scaleValue float64, type_ CNNBinaryConvolutionType, flags CNNBinaryConvolutionFlags) CNNBinaryConvolutionNode { +func (c_ CNNBinaryConvolutionNode) InitWithSourceWeightsOutputBiasTermsOutputScaleTermsInputBiasTermsInputScaleTermsTypeFlags(sourceNode INNImageNode, weights PCNNConvolutionDataSource, outputBiasTerms *float64, outputScaleTerms *float64, inputBiasTerms *float64, inputScaleTerms *float64, type_ CNNBinaryConvolutionType, flags CNNBinaryConvolutionFlags) CNNBinaryConvolutionNode { po1 := objc.WrapAsProtocol("MPSCNNConvolutionDataSource", weights) - rv := objc.Call[CNNBinaryConvolutionNode](c_, objc.Sel("initWithSource:weights:scaleValue:type:flags:"), objc.Ptr(sourceNode), po1, scaleValue, type_, flags) + rv := objc.Call[CNNBinaryConvolutionNode](c_, objc.Sel("initWithSource:weights:outputBiasTerms:outputScaleTerms:inputBiasTerms:inputScaleTerms:type:flags:"), objc.Ptr(sourceNode), po1, outputBiasTerms, outputScaleTerms, inputBiasTerms, inputScaleTerms, 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 float64, type_ CNNBinaryConvolutionType, flags CNNBinaryConvolutionFlags) CNNBinaryConvolutionNode { - instance := CNNBinaryConvolutionNodeClass.Alloc().InitWithSourceWeightsScaleValueTypeFlags(sourceNode, weights, scaleValue, type_, flags) +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpscnnbinaryconvolutionnode/2942631-initwithsource?language=objc +func NewCNNBinaryConvolutionNodeWithSourceWeightsOutputBiasTermsOutputScaleTermsInputBiasTermsInputScaleTermsTypeFlags(sourceNode INNImageNode, weights PCNNConvolutionDataSource, outputBiasTerms *float64, outputScaleTerms *float64, inputBiasTerms *float64, inputScaleTerms *float64, type_ CNNBinaryConvolutionType, flags CNNBinaryConvolutionFlags) CNNBinaryConvolutionNode { + instance := CNNBinaryConvolutionNodeClass.Alloc().InitWithSourceWeightsOutputBiasTermsOutputScaleTermsInputBiasTermsInputScaleTermsTypeFlags(sourceNode, weights, outputBiasTerms, outputScaleTerms, inputBiasTerms, inputScaleTerms, type_, flags) instance.Autorelease() return instance } -func (cc _CNNBinaryConvolutionNodeClass) Alloc() CNNBinaryConvolutionNode { - rv := objc.Call[CNNBinaryConvolutionNode](cc, objc.Sel("alloc")) +func (cc _CNNBinaryConvolutionNodeClass) NodeWithSourceWeightsOutputBiasTermsOutputScaleTermsInputBiasTermsInputScaleTermsTypeFlags(sourceNode INNImageNode, weights PCNNConvolutionDataSource, outputBiasTerms *float64, outputScaleTerms *float64, inputBiasTerms *float64, inputScaleTerms *float64, 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:"), objc.Ptr(sourceNode), po1, outputBiasTerms, outputScaleTerms, inputBiasTerms, inputScaleTerms, type_, flags) return rv } -func CNNBinaryConvolutionNode_Alloc() CNNBinaryConvolutionNode { - return CNNBinaryConvolutionNodeClass.Alloc() +// [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpscnnbinaryconvolutionnode/2942632-nodewithsource?language=objc +func CNNBinaryConvolutionNode_NodeWithSourceWeightsOutputBiasTermsOutputScaleTermsInputBiasTermsInputScaleTermsTypeFlags(sourceNode INNImageNode, weights PCNNConvolutionDataSource, outputBiasTerms *float64, outputScaleTerms *float64, inputBiasTerms *float64, inputScaleTerms *float64, 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 } func (cc _CNNBinaryConvolutionNodeClass) New() CNNBinaryConvolutionNode { diff --git a/macos/mps/cnn_binary_fully_connected.gen.go b/macos/mps/cnn_binary_fully_connected.gen.go index 5a23b5c6..1c6e96b5 100644 --- a/macos/mps/cnn_binary_fully_connected.gen.go +++ b/macos/mps/cnn_binary_fully_connected.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package mps @@ -50,13 +50,25 @@ func NewCNNBinaryFullyConnectedWithDeviceConvolutionDataScaleValueTypeFlags(devi return instance } -func (cc _CNNBinaryFullyConnectedClass) Alloc() CNNBinaryFullyConnected { - rv := objc.Call[CNNBinaryFullyConnected](cc, objc.Sel("alloc")) +func (c_ CNNBinaryFullyConnected) InitWithDeviceConvolutionDataOutputBiasTermsOutputScaleTermsInputBiasTermsInputScaleTermsTypeFlags(device metal.PDevice, convolutionData PCNNConvolutionDataSource, outputBiasTerms *float64, outputScaleTerms *float64, inputBiasTerms *float64, inputScaleTerms *float64, 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 } -func CNNBinaryFullyConnected_Alloc() CNNBinaryFullyConnected { - return CNNBinaryFullyConnectedClass.Alloc() +// 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 *float64, outputScaleTerms *float64, inputBiasTerms *float64, inputScaleTerms *float64, 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 } func (cc _CNNBinaryFullyConnectedClass) New() CNNBinaryFullyConnected { @@ -92,7 +104,6 @@ func NewCNNBinaryFullyConnectedWithDevice(device metal.PDevice) CNNBinaryFullyCo func (c_ CNNBinaryFullyConnected) CopyWithZoneDevice(zone unsafe.Pointer, device metal.PDevice) CNNBinaryFullyConnected { po1 := objc.WrapAsProtocol("MTLDevice", device) rv := objc.Call[CNNBinaryFullyConnected](c_, objc.Sel("copyWithZone:device:"), zone, po1) - rv.Autorelease() 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 6109f2dc..0ef3f523 100644 --- a/macos/mps/cnn_binary_fully_connected_node.gen.go +++ b/macos/mps/cnn_binary_fully_connected_node.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package mps @@ -46,6 +46,21 @@ func CNNBinaryFullyConnectedNode_NodeWithSourceWeightsScaleValueTypeFlags(source return CNNBinaryFullyConnectedNodeClass.NodeWithSourceWeightsScaleValueTypeFlags(sourceNode, weights, scaleValue, type_, flags) } +func (c_ CNNBinaryFullyConnectedNode) InitWithSourceWeightsScaleValueTypeFlags(sourceNode INNImageNode, weights PCNNConvolutionDataSource, scaleValue float64, type_ CNNBinaryConvolutionType, flags CNNBinaryConvolutionFlags) CNNBinaryFullyConnectedNode { + po1 := objc.WrapAsProtocol("MPSCNNConvolutionDataSource", weights) + rv := objc.Call[CNNBinaryFullyConnectedNode](c_, objc.Sel("initWithSource:weights:scaleValue:type:flags:"), objc.Ptr(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 float64, 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 *float64, outputScaleTerms *float64, inputBiasTerms *float64, inputScaleTerms *float64, 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:"), objc.Ptr(sourceNode), po1, outputBiasTerms, outputScaleTerms, inputBiasTerms, inputScaleTerms, type_, flags) @@ -61,13 +76,22 @@ func NewCNNBinaryFullyConnectedNodeWithSourceWeightsOutputBiasTermsOutputScaleTe return instance } -func (cc _CNNBinaryFullyConnectedNodeClass) Alloc() CNNBinaryFullyConnectedNode { - rv := objc.Call[CNNBinaryFullyConnectedNode](cc, objc.Sel("alloc")) +func (cc _CNNBinaryFullyConnectedNodeClass) NodeWithSourceWeightsOutputBiasTermsOutputScaleTermsInputBiasTermsInputScaleTermsTypeFlags(sourceNode INNImageNode, weights PCNNConvolutionDataSource, outputBiasTerms *float64, outputScaleTerms *float64, inputBiasTerms *float64, inputScaleTerms *float64, 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:"), objc.Ptr(sourceNode), po1, outputBiasTerms, outputScaleTerms, inputBiasTerms, inputScaleTerms, type_, flags) return rv } -func CNNBinaryFullyConnectedNode_Alloc() CNNBinaryFullyConnectedNode { - return CNNBinaryFullyConnectedNodeClass.Alloc() +// [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpscnnbinaryfullyconnectednode/2942635-nodewithsource?language=objc +func CNNBinaryFullyConnectedNode_NodeWithSourceWeightsOutputBiasTermsOutputScaleTermsInputBiasTermsInputScaleTermsTypeFlags(sourceNode INNImageNode, weights PCNNConvolutionDataSource, outputBiasTerms *float64, outputScaleTerms *float64, inputBiasTerms *float64, inputScaleTerms *float64, 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 } func (cc _CNNBinaryFullyConnectedNodeClass) New() CNNBinaryFullyConnectedNode { @@ -85,21 +109,6 @@ func (c_ CNNBinaryFullyConnectedNode) Init() CNNBinaryFullyConnectedNode { return rv } -func (c_ CNNBinaryFullyConnectedNode) InitWithSourceWeightsScaleValueTypeFlags(sourceNode INNImageNode, weights PCNNConvolutionDataSource, scaleValue float64, type_ CNNBinaryConvolutionType, flags CNNBinaryConvolutionFlags) CNNBinaryFullyConnectedNode { - po1 := objc.WrapAsProtocol("MPSCNNConvolutionDataSource", weights) - rv := objc.Call[CNNBinaryFullyConnectedNode](c_, objc.Sel("initWithSource:weights:scaleValue:type:flags:"), objc.Ptr(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 float64, 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:"), objc.Ptr(sourceNode), po1) diff --git a/macos/mps/cnn_binary_kernel.gen.go b/macos/mps/cnn_binary_kernel.gen.go index ac1e8dd6..c7a0c662 100644 --- a/macos/mps/cnn_binary_kernel.gen.go +++ b/macos/mps/cnn_binary_kernel.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package mps @@ -20,65 +20,73 @@ type _CNNBinaryKernelClass struct { // An interface definition for the [CNNBinaryKernel] class. type ICNNBinaryKernel interface { IKernel - 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 + IsResultStateReusedAcrossBatch() bool 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 - 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) + 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 ResultStateBatchForPrimaryImageSecondaryImageSourceStatesDestinationImage(primaryImage *foundation.Array, secondaryImage *foundation.Array, sourceStates []*foundation.Array, destinationImage *foundation.Array) *foundation.Array - EncodingStorageSizeForPrimaryImageSecondaryImageSourceStatesDestinationImage(primaryImage IImage, secondaryImage IImage, sourceStates []IState, destinationImage IImage) 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 + BatchEncodingStorageSizeForPrimaryImageSecondaryImageSourceStatesDestinationImage(primaryImage *foundation.Array, secondaryImage *foundation.Array, sourceStates []*foundation.Array, destinationImage *foundation.Array) uint EncodeToCommandBufferPrimaryImageSecondaryImageDestinationStateDestinationStateIsTemporary(commandBuffer metal.PCommandBuffer, primaryImage IImage, secondaryImage IImage, outState IState, isTemporary bool) Image EncodeToCommandBufferObjectPrimaryImageSecondaryImageDestinationStateDestinationStateIsTemporary(commandBufferObject objc.IObject, primaryImage IImage, secondaryImage IImage, outState IState, isTemporary bool) Image - IsResultStateReusedAcrossBatch() bool - SecondaryKernelHeight() uint - PrimarySourceFeatureChannelOffset() uint - SetPrimarySourceFeatureChannelOffset(value uint) - IsStateModified() bool + 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 *foundation.Array, isTemporary bool) *foundation.Array + EncodeBatchToCommandBufferObjectPrimaryImagesSecondaryImagesDestinationStatesDestinationStateIsTemporary(commandBufferObject objc.IObject, primaryImages *foundation.Array, secondaryImages *foundation.Array, outState *foundation.Array, 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) SecondaryEdgeMode() ImageEdgeMode SetSecondaryEdgeMode(value ImageEdgeMode) - PrimaryKernelHeight() uint + DestinationImageAllocator() ImageAllocatorObject + SetDestinationImageAllocator(value PImageAllocator) + SetDestinationImageAllocatorObject(valueObject objc.IObject) SecondaryStrideInPixelsY() uint SetSecondaryStrideInPixelsY(value uint) - SecondarySourceFeatureChannelOffset() uint - SetSecondarySourceFeatureChannelOffset(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) SecondaryDilationRateY() uint PrimaryDilationRateY() uint SecondaryKernelWidth() uint - PrimaryEdgeMode() ImageEdgeMode - SetPrimaryEdgeMode(value ImageEdgeMode) - PrimaryDilationRateX() uint - Padding() NNPaddingWrapper - SetPadding(value PNNPadding) - SetPaddingObject(valueObject objc.IObject) - SecondarySourceFeatureChannelMaxCount() uint - SetSecondarySourceFeatureChannelMaxCount(value uint) - SecondaryDilationRateX() uint - SecondaryStrideInPixelsX() uint - SetSecondaryStrideInPixelsX(value uint) - PrimarySourceFeatureChannelMaxCount() uint - SetPrimarySourceFeatureChannelMaxCount(value uint) + DestinationFeatureChannelOffset() uint + SetDestinationFeatureChannelOffset(value uint) PrimaryStrideInPixelsY() uint SetPrimaryStrideInPixelsY(value uint) - PrimaryOffset() Offset - SetPrimaryOffset(value Offset) - PrimaryStrideInPixelsX() uint - SetPrimaryStrideInPixelsX(value uint) - IsBackwards() bool + IsStateModified() bool + PrimarySourceFeatureChannelOffset() uint + SetPrimarySourceFeatureChannelOffset(value uint) + SecondaryKernelHeight() uint SecondaryOffset() Offset SetSecondaryOffset(value Offset) - ClipRect() metal.Region - SetClipRect(value metal.Region) - DestinationImageAllocator() ImageAllocatorWrapper - SetDestinationImageAllocator(value PImageAllocator) - SetDestinationImageAllocatorObject(valueObject objc.IObject) - PrimaryKernelWidth() uint - DestinationFeatureChannelOffset() uint - SetDestinationFeatureChannelOffset(value uint) + SecondarySourceFeatureChannelOffset() uint + SetSecondarySourceFeatureChannelOffset(value uint) + SecondarySourceFeatureChannelMaxCount() uint + SetSecondarySourceFeatureChannelMaxCount(value uint) + PrimaryKernelHeight() uint + PrimaryStrideInPixelsX() uint + SetPrimaryStrideInPixelsX(value uint) } // A convolution neural network kernel. [Full Topic] @@ -114,10 +122,6 @@ func (cc _CNNBinaryKernelClass) Alloc() CNNBinaryKernel { return rv } -func CNNBinaryKernel_Alloc() CNNBinaryKernel { - return CNNBinaryKernelClass.Alloc() -} - func (cc _CNNBinaryKernelClass) New() CNNBinaryKernel { rv := objc.Call[CNNBinaryKernel](cc, objc.Sel("new")) rv.Autorelease() @@ -136,7 +140,6 @@ func (c_ CNNBinaryKernel) Init() CNNBinaryKernel { func (c_ CNNBinaryKernel) CopyWithZoneDevice(zone unsafe.Pointer, device metal.PDevice) CNNBinaryKernel { po1 := objc.WrapAsProtocol("MTLDevice", device) rv := objc.Call[CNNBinaryKernel](c_, objc.Sel("copyWithZone:device:"), zone, po1) - rv.Autorelease() return rv } @@ -151,83 +154,85 @@ func CNNBinaryKernel_CopyWithZoneDevice(zone unsafe.Pointer, device metal.PDevic // [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/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/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, objc.Ptr(primaryImage), objc.Ptr(secondaryImage), sourceStates, objc.Ptr(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/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:"), objc.Ptr(commandBufferObject), objc.Ptr(primaryImage), objc.Ptr(secondaryImage), sourceStates, objc.Ptr(destinationImage)) +// [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/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:"), objc.Ptr(primaryImage), objc.Ptr(secondaryImage), sourceStates, objc.Ptr(destinationImage)) +// [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) 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/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:"), objc.Ptr(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 { +// [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 { po0 := objc.WrapAsProtocol("MTLCommandBuffer", commandBuffer) - rv := objc.Call[*foundation.Array](c_, objc.Sel("temporaryResultStateBatchForCommandBuffer:primaryImage:secondaryImage:sourceStates:destinationImage:"), po0, primaryImage, secondaryImage, sourceStates, destinationImage) + rv := objc.Call[*foundation.Array](c_, objc.Sel("encodeBatchToCommandBuffer:primaryImages:secondaryImages:"), po0, primaryImage, secondaryImage) 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:"), objc.Ptr(commandBufferObject), primaryImage, secondaryImage, sourceStates, destinationImage) +// [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:"), objc.Ptr(commandBufferObject), primaryImage, secondaryImage) 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/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, objc.Ptr(primaryImage), objc.Ptr(secondaryImage)) 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]: 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:"), objc.Ptr(commandBufferObject), objc.Ptr(primaryImage), objc.Ptr(secondaryImage)) + return rv } // [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:"), objc.Ptr(commandBufferObject), primaryImages, secondaryImages, destinationImages) +// [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:"), objc.Ptr(primaryImage), objc.Ptr(secondaryImage), sourceStates, objc.Ptr(destinationImage)) + return rv } // [Full Topic] @@ -240,9 +245,26 @@ func (c_ CNNBinaryKernel) ResultStateBatchForPrimaryImageSecondaryImageSourceSta // [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:"), objc.Ptr(primaryImage), objc.Ptr(secondaryImage), sourceStates, objc.Ptr(destinationImage)) +// [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, objc.Ptr(primaryImage), objc.Ptr(secondaryImage), sourceStates, objc.Ptr(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:"), objc.Ptr(commandBufferObject), objc.Ptr(primaryImage), objc.Ptr(secondaryImage), sourceStates, objc.Ptr(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) return rv } @@ -265,43 +287,113 @@ func (c_ CNNBinaryKernel) EncodeToCommandBufferObjectPrimaryImageSecondaryImageD // [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/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:"), objc.Ptr(primaryImage), objc.Ptr(secondaryImage), sourceStates, objc.Ptr(destinationImage)) return rv } // [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/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, objc.Ptr(primaryImage), objc.Ptr(secondaryImage), objc.Ptr(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:"), objc.Ptr(commandBufferObject), objc.Ptr(primaryImage), objc.Ptr(secondaryImage), objc.Ptr(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 *foundation.Array, 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/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/2947934-encodebatchtocommandbuffer?language=objc +func (c_ CNNBinaryKernel) EncodeBatchToCommandBufferObjectPrimaryImagesSecondaryImagesDestinationStatesDestinationStateIsTemporary(commandBufferObject objc.IObject, primaryImages *foundation.Array, secondaryImages *foundation.Array, outState *foundation.Array, isTemporary bool) *foundation.Array { + rv := objc.Call[*foundation.Array](c_, objc.Sel("encodeBatchToCommandBuffer:primaryImages:secondaryImages:destinationStates:destinationStateIsTemporary:"), objc.Ptr(commandBufferObject), primaryImages, secondaryImages, outState, isTemporary) 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/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/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/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:"), objc.Ptr(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")) + 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")) + 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")) 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] +// +// [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/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:"), objc.Ptr(valueObject)) +} + // [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpscnnbinarykernel/2865631-secondaryedgemode?language=objc @@ -319,12 +411,27 @@ func (c_ CNNBinaryKernel) SetSecondaryEdgeMode(value ImageEdgeMode) { // [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) DestinationImageAllocator() ImageAllocatorObject { + rv := objc.Call[ImageAllocatorObject](c_, objc.Sel("destinationImageAllocator")) 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:"), objc.Ptr(valueObject)) +} + // [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpscnnbinarykernel/2865639-secondarystrideinpixelsy?language=objc @@ -342,56 +449,55 @@ func (c_ CNNBinaryKernel) SetSecondaryStrideInPixelsY(value uint) { // [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/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/2865652-isbackwards?language=objc +func (c_ CNNBinaryKernel) IsBackwards() bool { + rv := objc.Call[bool](c_, objc.Sel("isBackwards")) 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/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/2942658-secondarykernelwidth?language=objc -func (c_ CNNBinaryKernel) SecondaryKernelWidth() uint { - rv := objc.Call[uint](c_, objc.Sel("secondaryKernelWidth")) - return rv +// [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] // -// [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/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/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/2865649-secondarystrideinpixelsx?language=objc +func (c_ CNNBinaryKernel) SetSecondaryStrideInPixelsX(value uint) { + objc.Call[objc.Void](c_, objc.Sel("setSecondaryStrideInPixelsX:"), value) } // [Full Topic] @@ -404,78 +510,56 @@ func (c_ CNNBinaryKernel) PrimaryDilationRateX() uint { // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpscnnbinarykernel/2865630-padding?language=objc -func (c_ CNNBinaryKernel) Padding() NNPaddingWrapper { - rv := objc.Call[NNPaddingWrapper](c_, objc.Sel("padding")) +// [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/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:"), objc.Ptr(valueObject)) +// [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] // -// [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/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/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")) +// [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/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/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) 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")) +// [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/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/2865643-destinationfeaturechanneloffset?language=objc +func (c_ CNNBinaryKernel) SetDestinationFeatureChannelOffset(value uint) { + objc.Call[objc.Void](c_, objc.Sel("setDestinationFeatureChannelOffset:"), value) } // [Full Topic] @@ -495,39 +579,32 @@ func (c_ CNNBinaryKernel) SetPrimaryStrideInPixelsY(value uint) { // [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/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/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")) +// [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/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/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/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/2942664-secondarykernelheight?language=objc +func (c_ CNNBinaryKernel) SecondaryKernelHeight() uint { + rv := objc.Call[uint](c_, objc.Sel("secondaryKernelHeight")) return rv } @@ -548,61 +625,53 @@ func (c_ CNNBinaryKernel) SetSecondaryOffset(value Offset) { // [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/2865651-destinationimageallocator?language=objc -func (c_ CNNBinaryKernel) DestinationImageAllocator() ImageAllocatorWrapper { - rv := objc.Call[ImageAllocatorWrapper](c_, objc.Sel("destinationImageAllocator")) +// [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/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:"), objc.Ptr(valueObject)) +// [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/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/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/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/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/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/2865658-primarystrideinpixelsx?language=objc +func (c_ CNNBinaryKernel) SetPrimaryStrideInPixelsX(value uint) { + objc.Call[objc.Void](c_, objc.Sel("setPrimaryStrideInPixelsX:"), value) } diff --git a/macos/mps/cnn_convolution.gen.go b/macos/mps/cnn_convolution.gen.go index 75226532..5f831275 100644 --- a/macos/mps/cnn_convolution.gen.go +++ b/macos/mps/cnn_convolution.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package mps @@ -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 - DataSource() CNNConvolutionDataSourceWrapper - ChannelMultiplier() uint - OutputFeatureChannels() uint - InputFeatureChannels() uint Neuron() CNNNeuron Groups() uint - SubPixelScaleFactor() uint + ChannelMultiplier() uint + OutputFeatureChannels() uint AccumulatorPrecisionOption() NNConvolutionAccumulatorPrecisionOption SetAccumulatorPrecisionOption(value NNConvolutionAccumulatorPrecisionOption) + SubPixelScaleFactor() uint + InputFeatureChannels() uint + DataSource() CNNConvolutionDataSourceObject FusedNeuronDescriptor() NNNeuronDescriptor } @@ -65,13 +65,24 @@ func NewCNNConvolutionWithDeviceWeights(device metal.PDevice, weights PCNNConvol return instance } -func (cc _CNNConvolutionClass) Alloc() CNNConvolution { - rv := objc.Call[CNNConvolution](cc, objc.Sel("alloc")) +func (c_ CNNConvolution) InitWithDeviceConvolutionDescriptorKernelWeightsBiasTermsFlags(device metal.PDevice, convolutionDescriptor ICNNConvolutionDescriptor, kernelWeights *float64, biasTerms *float64, flags CNNConvolutionFlags) CNNConvolution { + po0 := objc.WrapAsProtocol("MTLDevice", device) + rv := objc.Call[CNNConvolution](c_, objc.Sel("initWithDevice:convolutionDescriptor:kernelWeights:biasTerms:flags:"), po0, objc.Ptr(convolutionDescriptor), kernelWeights, biasTerms, flags) return rv } -func CNNConvolution_Alloc() CNNConvolution { - return CNNConvolutionClass.Alloc() +// 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 *float64, biasTerms *float64, 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 } func (cc _CNNConvolutionClass) New() CNNConvolution { @@ -107,7 +118,6 @@ func NewCNNConvolutionWithDevice(device metal.PDevice) CNNConvolution { func (c_ CNNConvolution) CopyWithZoneDevice(zone unsafe.Pointer, device metal.PDevice) CNNConvolution { po1 := objc.WrapAsProtocol("MTLDevice", device) rv := objc.Call[CNNConvolution](c_, objc.Sel("copyWithZone:device:"), zone, po1) - rv.Autorelease() return rv } @@ -159,11 +169,19 @@ func (c_ CNNConvolution) ExportWeightsAndBiasesWithCommandBufferObjectResultStat 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/2953961-datasource?language=objc -func (c_ CNNConvolution) DataSource() CNNConvolutionDataSourceWrapper { - rv := objc.Call[CNNConvolutionDataSourceWrapper](c_, objc.Sel("dataSource")) +// [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 } @@ -183,28 +201,19 @@ func (c_ CNNConvolution) OutputFeatureChannels() uint { return rv } -// The number of feature channels per pixel in the input image. [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")) - return rv -} - -// The neuron filter to be applied as part of the convolution operation. [Full Topic] +// [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")) +// [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 } -// 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")) - 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] @@ -215,19 +224,20 @@ func (c_ CNNConvolution) SubPixelScaleFactor() 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] // -// [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/2953961-datasource?language=objc +func (c_ CNNConvolution) DataSource() CNNConvolutionDataSourceObject { + rv := objc.Call[CNNConvolutionDataSourceObject](c_, objc.Sel("dataSource")) + return rv } // [Full Topic] diff --git a/macos/mps/cnn_convolution_data_source.gen.go b/macos/mps/cnn_convolution_data_source_protocol.gen.go similarity index 68% rename from macos/mps/cnn_convolution_data_source.gen.go rename to macos/mps/cnn_convolution_data_source_protocol.gen.go index 763ce869..47f01973 100644 --- a/macos/mps/cnn_convolution_data_source.gen.go +++ b/macos/mps/cnn_convolution_data_source_protocol.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package mps @@ -15,249 +15,251 @@ import ( // [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpscnnconvolutiondatasource?language=objc type PCNNConvolutionDataSource interface { // optional - RangesForUInt8Kernel() *kernel.Vector_float2 - HasRangesForUInt8Kernel() bool + BiasTerms() *float64 + HasBiasTerms() bool // optional - UpdateWithGradientStateSourceState(gradientState CNNConvolutionGradientState, sourceState CNNConvolutionWeightsAndBiasesState) bool - HasUpdateWithGradientStateSourceState() bool + WeightsQuantizationType() CNNWeightsQuantizationType + HasWeightsQuantizationType() bool // optional - WeightsLayout() CNNConvolutionWeightsLayout - HasWeightsLayout() bool + Label() string + HasLabel() bool // optional - Weights() unsafe.Pointer - HasWeights() bool + Purge() + HasPurge() bool // optional - WeightsQuantizationType() CNNWeightsQuantizationType - HasWeightsQuantizationType() bool + UpdateWithCommandBufferGradientStateSourceState(commandBuffer metal.CommandBufferObject, gradientState CNNConvolutionGradientState, sourceState CNNConvolutionWeightsAndBiasesState) CNNConvolutionWeightsAndBiasesState + HasUpdateWithCommandBufferGradientStateSourceState() bool // optional - LookupTableForUInt8Kernel() *float64 - HasLookupTableForUInt8Kernel() bool + DataType() DataType + HasDataType() bool // optional - BiasTerms() *float64 - HasBiasTerms() bool + Weights() unsafe.Pointer + HasWeights() bool // optional - Purge() - HasPurge() bool + Load() bool + HasLoad() bool // optional - DataType() DataType - HasDataType() bool + UpdateWithGradientStateSourceState(gradientState CNNConvolutionGradientState, sourceState CNNConvolutionWeightsAndBiasesState) bool + HasUpdateWithGradientStateSourceState() bool // optional - Descriptor() ICNNConvolutionDescriptor - HasDescriptor() bool + WeightsLayout() CNNConvolutionWeightsLayout + HasWeightsLayout() bool // optional - CopyWithZoneDevice(zone unsafe.Pointer, device metal.DeviceWrapper) objc.IObject - HasCopyWithZoneDevice() bool + LookupTableForUInt8Kernel() *float64 + HasLookupTableForUInt8Kernel() bool // optional - Load() bool - HasLoad() bool + Descriptor() CNNConvolutionDescriptor + HasDescriptor() bool // optional - Label() string - HasLabel() bool + CopyWithZoneDevice(zone unsafe.Pointer, device metal.DeviceObject) objc.Object + HasCopyWithZoneDevice() bool // optional - UpdateWithCommandBufferGradientStateSourceState(commandBuffer metal.CommandBufferWrapper, gradientState CNNConvolutionGradientState, sourceState CNNConvolutionWeightsAndBiasesState) ICNNConvolutionWeightsAndBiasesState - HasUpdateWithCommandBufferGradientStateSourceState() bool + RangesForUInt8Kernel() *kernel.Vector_float2 + HasRangesForUInt8Kernel() bool // optional KernelWeightsDataType() DataType HasKernelWeightsDataType() bool } -// A concrete type wrapper for the [PCNNConvolutionDataSource] protocol. -type CNNConvolutionDataSourceWrapper struct { +// ensure impl type implements protocol interface +var _ PCNNConvolutionDataSource = (*CNNConvolutionDataSourceObject)(nil) + +// A concrete type for the [PCNNConvolutionDataSource] protocol. +type CNNConvolutionDataSourceObject struct { objc.Object } -func (c_ CNNConvolutionDataSourceWrapper) HasRangesForUInt8Kernel() bool { - return c_.RespondsToSelector(objc.Sel("rangesForUInt8Kernel")) +func (c_ CNNConvolutionDataSourceObject) HasBiasTerms() bool { + return c_.RespondsToSelector(objc.Sel("biasTerms")) } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpscnnconvolutiondatasource/2867145-rangesforuint8kernel?language=objc -func (c_ CNNConvolutionDataSourceWrapper) RangesForUInt8Kernel() *kernel.Vector_float2 { - rv := objc.Call[*kernel.Vector_float2](c_, objc.Sel("rangesForUInt8Kernel")) +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpscnnconvolutiondatasource/2867023-biasterms?language=objc +func (c_ CNNConvolutionDataSourceObject) BiasTerms() *float64 { + rv := objc.Call[*float64](c_, objc.Sel("biasTerms")) return rv } -func (c_ CNNConvolutionDataSourceWrapper) HasUpdateWithGradientStateSourceState() bool { - return c_.RespondsToSelector(objc.Sel("updateWithGradientState:sourceState:")) +func (c_ CNNConvolutionDataSourceObject) HasWeightsQuantizationType() bool { + return c_.RespondsToSelector(objc.Sel("weightsQuantizationType")) } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpscnnconvolutiondatasource/2953009-updatewithgradientstate?language=objc -func (c_ CNNConvolutionDataSourceWrapper) UpdateWithGradientStateSourceState(gradientState ICNNConvolutionGradientState, sourceState ICNNConvolutionWeightsAndBiasesState) bool { - rv := objc.Call[bool](c_, objc.Sel("updateWithGradientState:sourceState:"), objc.Ptr(gradientState), objc.Ptr(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_ CNNConvolutionDataSourceWrapper) HasWeightsLayout() bool { - return c_.RespondsToSelector(objc.Sel("weightsLayout")) +func (c_ CNNConvolutionDataSourceObject) HasLabel() bool { + return c_.RespondsToSelector(objc.Sel("label")) } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpscnnconvolutiondatasource/3325840-weightslayout?language=objc -func (c_ CNNConvolutionDataSourceWrapper) WeightsLayout() CNNConvolutionWeightsLayout { - rv := objc.Call[CNNConvolutionWeightsLayout](c_, objc.Sel("weightsLayout")) +// [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_ CNNConvolutionDataSourceWrapper) HasWeights() bool { - return c_.RespondsToSelector(objc.Sel("weights")) +func (c_ CNNConvolutionDataSourceObject) HasPurge() bool { + return c_.RespondsToSelector(objc.Sel("purge")) } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpscnnconvolutiondatasource/2867187-weights?language=objc -func (c_ CNNConvolutionDataSourceWrapper) Weights() unsafe.Pointer { - rv := objc.Call[unsafe.Pointer](c_, objc.Sel("weights")) - 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_ CNNConvolutionDataSourceWrapper) HasWeightsQuantizationType() bool { - return c_.RespondsToSelector(objc.Sel("weightsQuantizationType")) +func (c_ CNNConvolutionDataSourceObject) HasUpdateWithCommandBufferGradientStateSourceState() bool { + return c_.RespondsToSelector(objc.Sel("updateWithCommandBuffer:gradientState:sourceState:")) } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpscnnconvolutiondatasource/2976466-weightsquantizationtype?language=objc -func (c_ CNNConvolutionDataSourceWrapper) WeightsQuantizationType() CNNWeightsQuantizationType { - rv := objc.Call[CNNWeightsQuantizationType](c_, objc.Sel("weightsQuantizationType")) +// [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, objc.Ptr(gradientState), objc.Ptr(sourceState)) return rv } -func (c_ CNNConvolutionDataSourceWrapper) HasLookupTableForUInt8Kernel() bool { - return c_.RespondsToSelector(objc.Sel("lookupTableForUInt8Kernel")) +func (c_ CNNConvolutionDataSourceObject) HasDataType() bool { + return c_.RespondsToSelector(objc.Sel("dataType")) } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpscnnconvolutiondatasource/2867186-lookuptableforuint8kernel?language=objc -func (c_ CNNConvolutionDataSourceWrapper) LookupTableForUInt8Kernel() *float64 { - rv := objc.Call[*float64](c_, objc.Sel("lookupTableForUInt8Kernel")) +// [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_ CNNConvolutionDataSourceWrapper) HasBiasTerms() bool { - return c_.RespondsToSelector(objc.Sel("biasTerms")) +func (c_ CNNConvolutionDataSourceObject) HasWeights() bool { + return c_.RespondsToSelector(objc.Sel("weights")) } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpscnnconvolutiondatasource/2867023-biasterms?language=objc -func (c_ CNNConvolutionDataSourceWrapper) BiasTerms() *float64 { - rv := objc.Call[*float64](c_, objc.Sel("biasTerms")) +// [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_ CNNConvolutionDataSourceWrapper) HasPurge() bool { - return c_.RespondsToSelector(objc.Sel("purge")) +func (c_ CNNConvolutionDataSourceObject) HasLoad() bool { + return c_.RespondsToSelector(objc.Sel("load")) } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpscnnconvolutiondatasource/2867134-purge?language=objc -func (c_ CNNConvolutionDataSourceWrapper) Purge() { - objc.Call[objc.Void](c_, objc.Sel("purge")) +// [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_ CNNConvolutionDataSourceWrapper) HasDataType() bool { - return c_.RespondsToSelector(objc.Sel("dataType")) +func (c_ CNNConvolutionDataSourceObject) HasUpdateWithGradientStateSourceState() bool { + return c_.RespondsToSelector(objc.Sel("updateWithGradientState:sourceState:")) } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpscnnconvolutiondatasource/2867139-datatype?language=objc -func (c_ CNNConvolutionDataSourceWrapper) DataType() DataType { - rv := objc.Call[DataType](c_, objc.Sel("dataType")) +// [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:"), objc.Ptr(gradientState), objc.Ptr(sourceState)) return rv } -func (c_ CNNConvolutionDataSourceWrapper) HasDescriptor() bool { - return c_.RespondsToSelector(objc.Sel("descriptor")) +func (c_ CNNConvolutionDataSourceObject) HasWeightsLayout() bool { + return c_.RespondsToSelector(objc.Sel("weightsLayout")) } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpscnnconvolutiondatasource/2867050-descriptor?language=objc -func (c_ CNNConvolutionDataSourceWrapper) Descriptor() CNNConvolutionDescriptor { - rv := objc.Call[CNNConvolutionDescriptor](c_, objc.Sel("descriptor")) +// [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_ CNNConvolutionDataSourceWrapper) HasCopyWithZoneDevice() bool { - return c_.RespondsToSelector(objc.Sel("copyWithZone:device:")) +func (c_ CNNConvolutionDataSourceObject) HasLookupTableForUInt8Kernel() bool { + return c_.RespondsToSelector(objc.Sel("lookupTableForUInt8Kernel")) } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpscnnconvolutiondatasource/3013778-copywithzone?language=objc -func (c_ CNNConvolutionDataSourceWrapper) CopyWithZoneDevice(zone unsafe.Pointer, device metal.PDevice) objc.Object { - po1 := objc.WrapAsProtocol("MTLDevice", device) - rv := objc.Call[objc.Object](c_, objc.Sel("copyWithZone:device:"), zone, po1) - rv.Autorelease() +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpscnnconvolutiondatasource/2867186-lookuptableforuint8kernel?language=objc +func (c_ CNNConvolutionDataSourceObject) LookupTableForUInt8Kernel() *float64 { + rv := objc.Call[*float64](c_, objc.Sel("lookupTableForUInt8Kernel")) return rv } -func (c_ CNNConvolutionDataSourceWrapper) HasLoad() bool { - return c_.RespondsToSelector(objc.Sel("load")) +func (c_ CNNConvolutionDataSourceObject) HasDescriptor() bool { + return c_.RespondsToSelector(objc.Sel("descriptor")) } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpscnnconvolutiondatasource/2867049-load?language=objc -func (c_ CNNConvolutionDataSourceWrapper) Load() bool { - rv := objc.Call[bool](c_, objc.Sel("load")) +// [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_ CNNConvolutionDataSourceWrapper) HasLabel() bool { - return c_.RespondsToSelector(objc.Sel("label")) +func (c_ CNNConvolutionDataSourceObject) HasCopyWithZoneDevice() bool { + return c_.RespondsToSelector(objc.Sel("copyWithZone:device:")) } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpscnnconvolutiondatasource/2881197-label?language=objc -func (c_ CNNConvolutionDataSourceWrapper) Label() string { - rv := objc.Call[string](c_, objc.Sel("label")) +// [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_ CNNConvolutionDataSourceWrapper) HasUpdateWithCommandBufferGradientStateSourceState() bool { - return c_.RespondsToSelector(objc.Sel("updateWithCommandBuffer:gradientState:sourceState:")) +func (c_ CNNConvolutionDataSourceObject) HasRangesForUInt8Kernel() bool { + return c_.RespondsToSelector(objc.Sel("rangesForUInt8Kernel")) } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpscnnconvolutiondatasource/2953007-updatewithcommandbuffer?language=objc -func (c_ CNNConvolutionDataSourceWrapper) UpdateWithCommandBufferGradientStateSourceState(commandBuffer metal.PCommandBuffer, gradientState ICNNConvolutionGradientState, sourceState ICNNConvolutionWeightsAndBiasesState) CNNConvolutionWeightsAndBiasesState { - po0 := objc.WrapAsProtocol("MTLCommandBuffer", commandBuffer) - rv := objc.Call[CNNConvolutionWeightsAndBiasesState](c_, objc.Sel("updateWithCommandBuffer:gradientState:sourceState:"), po0, objc.Ptr(gradientState), objc.Ptr(sourceState)) +// [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_ CNNConvolutionDataSourceWrapper) HasKernelWeightsDataType() bool { +func (c_ CNNConvolutionDataSourceObject) HasKernelWeightsDataType() bool { return c_.RespondsToSelector(objc.Sel("kernelWeightsDataType")) } // [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpscnnconvolutiondatasource/3564466-kernelweightsdatatype?language=objc -func (c_ CNNConvolutionDataSourceWrapper) KernelWeightsDataType() DataType { +func (c_ CNNConvolutionDataSourceObject) KernelWeightsDataType() DataType { rv := objc.Call[DataType](c_, objc.Sel("kernelWeightsDataType")) return rv } diff --git a/macos/mps/cnn_convolution_descriptor.gen.go b/macos/mps/cnn_convolution_descriptor.gen.go index 92a5eff6..b14d5984 100644 --- a/macos/mps/cnn_convolution_descriptor.gen.go +++ b/macos/mps/cnn_convolution_descriptor.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package mps @@ -19,30 +19,30 @@ type _CNNConvolutionDescriptorClass struct { // An interface definition for the [CNNConvolutionDescriptor] class. type ICNNConvolutionDescriptor interface { objc.IObject - EncodeWithCoder(aCoder foundation.ICoder) SetBatchNormalizationParametersForInferenceWithMeanVarianceGammaBetaEpsilon(mean *float64, variance *float64, gamma *float64, beta *float64, epsilon float64) + EncodeWithCoder(aCoder foundation.ICoder) + KernelWidth() uint + SetKernelWidth(value uint) OutputFeatureChannels() uint SetOutputFeatureChannels(value uint) - InputFeatureChannels() uint - SetInputFeatureChannels(value uint) Neuron() CNNNeuron SetNeuron(value ICNNNeuron) + InputFeatureChannels() uint + SetInputFeatureChannels(value uint) 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) - KernelWidth() uint - SetKernelWidth(value uint) - FusedNeuronDescriptor() NNNeuronDescriptor - SetFusedNeuronDescriptor(value INNNeuronDescriptor) DilationRateX() uint SetDilationRateX(value uint) + FusedNeuronDescriptor() NNNeuronDescriptor + SetFusedNeuronDescriptor(value INNNeuronDescriptor) + DilationRateY() uint + SetDilationRateY(value uint) } // A description of the attributes of a convolution kernel. [Full Topic] @@ -70,13 +70,21 @@ func CNNConvolutionDescriptor_CnnConvolutionDescriptorWithKernelWidthKernelHeigh return CNNConvolutionDescriptorClass.CnnConvolutionDescriptorWithKernelWidthKernelHeightInputFeatureChannelsOutputFeatureChannels(kernelWidth, kernelHeight, inputFeatureChannels, outputFeatureChannels) } -func (cc _CNNConvolutionDescriptorClass) Alloc() CNNConvolutionDescriptor { - rv := objc.Call[CNNConvolutionDescriptor](cc, objc.Sel("alloc")) +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, objc.Ptr(neuronFilter)) return rv } -func CNNConvolutionDescriptor_Alloc() CNNConvolutionDescriptor { - return CNNConvolutionDescriptorClass.Alloc() +// 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 } func (cc _CNNConvolutionDescriptorClass) New() CNNConvolutionDescriptor { @@ -94,6 +102,13 @@ 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 *float64, variance *float64, gamma *float64, beta *float64, epsilon float64) { + 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 @@ -101,11 +116,19 @@ func (c_ CNNConvolutionDescriptor) EncodeWithCoder(aCoder foundation.ICoder) { objc.Call[objc.Void](c_, objc.Sel("encodeWithCoder:"), objc.Ptr(aCoder)) } -// [Full Topic] +// The width of the kernel window. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpscnnconvolutiondescriptor/2867057-setbatchnormalizationparametersf?language=objc -func (c_ CNNConvolutionDescriptor) SetBatchNormalizationParametersForInferenceWithMeanVarianceGammaBetaEpsilon(mean *float64, variance *float64, gamma *float64, beta *float64, epsilon float64) { - objc.Call[objc.Void](c_, objc.Sel("setBatchNormalizationParametersForInferenceWithMean:variance:gamma:beta:epsilon:"), mean, variance, gamma, beta, epsilon) +// [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]: 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) } // The number of feature channels per pixel in the output image. [Full Topic] @@ -123,6 +146,21 @@ 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:"), objc.Ptr(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 @@ -138,19 +176,19 @@ func (c_ CNNConvolutionDescriptor) SetInputFeatureChannels(value uint) { objc.Call[objc.Void](c_, objc.Sel("setInputFeatureChannels:"), value) } -// The neuron filter to be applied as part of the convolution operation. [Full Topic] +// [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")) +// [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 } -// The neuron filter to be applied as part of the convolution operation. [Full Topic] +// [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:"), objc.Ptr(value)) +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpscnnconvolutiondescriptor/2867154-supportssecurecoding?language=objc +func CNNConvolutionDescriptor_SupportsSecureCoding() bool { + return CNNConvolutionDescriptorClass.SupportsSecureCoding() } // The output stride (downsampling factor) in the y dimension. [Full Topic] @@ -198,36 +236,6 @@ 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 @@ -243,19 +251,19 @@ func (c_ CNNConvolutionDescriptor) SetKernelHeight(value uint) { objc.Call[objc.Void](c_, objc.Sel("setKernelHeight:"), value) } -// 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) KernelWidth() uint { - rv := objc.Call[uint](c_, objc.Sel("kernelWidth")) +// [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 } -// 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/2881195-dilationratex?language=objc +func (c_ CNNConvolutionDescriptor) SetDilationRateX(value uint) { + objc.Call[objc.Void](c_, objc.Sel("setDilationRateX:"), value) } // [Full Topic] @@ -275,15 +283,15 @@ func (c_ CNNConvolutionDescriptor) SetFusedNeuronDescriptor(value INNNeuronDescr // [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/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/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/2881196-dilationratey?language=objc +func (c_ CNNConvolutionDescriptor) SetDilationRateY(value uint) { + objc.Call[objc.Void](c_, objc.Sel("setDilationRateY:"), value) } diff --git a/macos/mps/cnn_convolution_gradient.gen.go b/macos/mps/cnn_convolution_gradient.gen.go index 7cdf7c75..c73d16c8 100644 --- a/macos/mps/cnn_convolution_gradient.gen.go +++ b/macos/mps/cnn_convolution_gradient.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package mps @@ -22,13 +22,13 @@ type ICNNConvolutionGradient interface { ReloadWeightsAndBiasesFromDataSource() ReloadWeightsAndBiasesWithCommandBufferState(commandBuffer metal.PCommandBuffer, state ICNNConvolutionWeightsAndBiasesState) ReloadWeightsAndBiasesWithCommandBufferObjectState(commandBufferObject objc.IObject, state ICNNConvolutionWeightsAndBiasesState) - DataSource() CNNConvolutionDataSourceWrapper - SourceImageFeatureChannels() uint + DataSource() CNNConvolutionDataSourceObject ChannelMultiplier() uint + Groups() uint GradientOption() CNNConvolutionGradientOption SetGradientOption(value CNNConvolutionGradientOption) + SourceImageFeatureChannels() uint SourceGradientFeatureChannels() uint - Groups() uint } // A gradient convolution kernel. [Full Topic] @@ -65,10 +65,6 @@ func (cc _CNNConvolutionGradientClass) Alloc() CNNConvolutionGradient { return rv } -func CNNConvolutionGradient_Alloc() CNNConvolutionGradient { - return CNNConvolutionGradientClass.Alloc() -} - func (cc _CNNConvolutionGradientClass) New() CNNConvolutionGradient { rv := objc.Call[CNNConvolutionGradient](cc, objc.Sel("new")) rv.Autorelease() @@ -102,7 +98,6 @@ func NewCNNConvolutionGradientWithDevice(device metal.PDevice) CNNConvolutionGra func (c_ CNNConvolutionGradient) CopyWithZoneDevice(zone unsafe.Pointer, device metal.PDevice) CNNConvolutionGradient { po1 := objc.WrapAsProtocol("MTLDevice", device) rv := objc.Call[CNNConvolutionGradient](c_, objc.Sel("copyWithZone:device:"), zone, po1) - rv.Autorelease() return rv } @@ -140,24 +135,24 @@ func (c_ CNNConvolutionGradient) ReloadWeightsAndBiasesWithCommandBufferObjectSt // [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpscnnconvolutiongradient/2953959-datasource?language=objc -func (c_ CNNConvolutionGradient) DataSource() CNNConvolutionDataSourceWrapper { - rv := objc.Call[CNNConvolutionDataSourceWrapper](c_, objc.Sel("dataSource")) +func (c_ CNNConvolutionGradient) DataSource() CNNConvolutionDataSourceObject { + rv := objc.Call[CNNConvolutionDataSourceObject](c_, objc.Sel("dataSource")) return rv } // [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/2966658-channelmultiplier?language=objc +func (c_ CNNConvolutionGradient) ChannelMultiplier() uint { + rv := objc.Call[uint](c_, objc.Sel("channelMultiplier")) return rv } // [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/2942430-groups?language=objc +func (c_ CNNConvolutionGradient) Groups() uint { + rv := objc.Call[uint](c_, objc.Sel("groups")) return rv } @@ -178,16 +173,16 @@ func (c_ CNNConvolutionGradient) SetGradientOption(value CNNConvolutionGradientO // [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/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/2947880-sourcegradientfeaturechannels?language=objc +func (c_ CNNConvolutionGradient) SourceGradientFeatureChannels() uint { + rv := objc.Call[uint](c_, objc.Sel("sourceGradientFeatureChannels")) return rv } diff --git a/macos/mps/cnn_convolution_gradient_node.gen.go b/macos/mps/cnn_convolution_gradient_node.gen.go index deef517c..056768b4 100644 --- a/macos/mps/cnn_convolution_gradient_node.gen.go +++ b/macos/mps/cnn_convolution_gradient_node.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package mps @@ -33,32 +33,32 @@ func CNNConvolutionGradientNodeFrom(ptr unsafe.Pointer) CNNConvolutionGradientNo } } -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:"), objc.Ptr(sourceGradient), objc.Ptr(sourceImage), objc.Ptr(gradientState), po3) + rv := objc.Call[CNNConvolutionGradientNode](cc, objc.Sel("nodeWithSourceGradient:sourceImage:convolutionGradientState:weights:"), objc.Ptr(sourceGradient), objc.Ptr(sourceImage), objc.Ptr(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) 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:"), objc.Ptr(sourceGradient), objc.Ptr(sourceImage), objc.Ptr(gradientState), po3) + rv := objc.Call[CNNConvolutionGradientNode](c_, objc.Sel("initWithSourceGradient:sourceImage:convolutionGradientState:weights:"), objc.Ptr(sourceGradient), objc.Ptr(sourceImage), objc.Ptr(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 (cc _CNNConvolutionGradientNodeClass) Alloc() CNNConvolutionGradientNode { @@ -66,10 +66,6 @@ func (cc _CNNConvolutionGradientNodeClass) Alloc() CNNConvolutionGradientNode { return rv } -func CNNConvolutionGradientNode_Alloc() CNNConvolutionGradientNode { - return CNNConvolutionGradientNodeClass.Alloc() -} - func (cc _CNNConvolutionGradientNodeClass) New() CNNConvolutionGradientNode { rv := objc.Call[CNNConvolutionGradientNode](cc, objc.Sel("new")) rv.Autorelease() diff --git a/macos/mps/cnn_convolution_gradient_state.gen.go b/macos/mps/cnn_convolution_gradient_state.gen.go index ebe82105..62034a12 100644 --- a/macos/mps/cnn_convolution_gradient_state.gen.go +++ b/macos/mps/cnn_convolution_gradient_state.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package mps @@ -20,9 +20,9 @@ type _CNNConvolutionGradientStateClass struct { type ICNNConvolutionGradientState interface { INNGradientState GradientForWeightsLayout() CNNConvolutionWeightsLayout + GradientForBiases() metal.BufferObject + GradientForWeights() metal.BufferObject Convolution() CNNConvolution - GradientForWeights() metal.BufferWrapper - GradientForBiases() metal.BufferWrapper } // An object that exposes a gradient convolution kernel's gradient with respect to weights and biases. [Full Topic] @@ -43,10 +43,6 @@ func (cc _CNNConvolutionGradientStateClass) Alloc() CNNConvolutionGradientState return rv } -func CNNConvolutionGradientState_Alloc() CNNConvolutionGradientState { - return CNNConvolutionGradientStateClass.Alloc() -} - func (cc _CNNConvolutionGradientStateClass) New() CNNConvolutionGradientState { rv := objc.Call[CNNConvolutionGradientState](cc, objc.Sel("new")) rv.Autorelease() @@ -62,16 +58,45 @@ func (c_ CNNConvolutionGradientState) Init() CNNConvolutionGradientState { return rv } -func (c_ CNNConvolutionGradientState) InitWithResources(resources []metal.PResource) CNNConvolutionGradientState { - rv := objc.Call[CNNConvolutionGradientState](c_, objc.Sel("initWithResources:"), resources) +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, objc.Ptr(resourceList)) 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/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, objc.Ptr(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) + 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) instance.Autorelease() return instance } @@ -91,32 +116,72 @@ func NewCNNConvolutionGradientStateWithDeviceBufferSize(device metal.PDevice, bu 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 } -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, objc.Ptr(resourceList)) +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/2947915-temporarystatewithcommandbuffer?language=objc -func CNNConvolutionGradientState_TemporaryStateWithCommandBufferResourceList(commandBuffer metal.PCommandBuffer, resourceList IStateResourceList) CNNConvolutionGradientState { - return CNNConvolutionGradientStateClass.TemporaryStateWithCommandBufferResourceList(commandBuffer, resourceList) +// [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, objc.Ptr(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, objc.Ptr(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] @@ -129,24 +194,24 @@ func (c_ CNNConvolutionGradientState) GradientForWeightsLayout() CNNConvolutionW // [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 } // [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpscnnconvolutiongradientstate/2947889-gradientforweights?language=objc -func (c_ CNNConvolutionGradientState) GradientForWeights() metal.BufferWrapper { - rv := objc.Call[metal.BufferWrapper](c_, objc.Sel("gradientForWeights")) +func (c_ CNNConvolutionGradientState) GradientForWeights() metal.BufferObject { + rv := objc.Call[metal.BufferObject](c_, objc.Sel("gradientForWeights")) return rv } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpscnnconvolutiongradientstate/2947887-gradientforbiases?language=objc -func (c_ CNNConvolutionGradientState) GradientForBiases() metal.BufferWrapper { - rv := objc.Call[metal.BufferWrapper](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 } diff --git a/macos/mps/cnn_convolution_gradient_state_node.gen.go b/macos/mps/cnn_convolution_gradient_state_node.gen.go index 5f8e76b7..7ad5e0cd 100644 --- a/macos/mps/cnn_convolution_gradient_state_node.gen.go +++ b/macos/mps/cnn_convolution_gradient_state_node.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package mps @@ -38,10 +38,6 @@ func (cc _CNNConvolutionGradientStateNodeClass) Alloc() CNNConvolutionGradientSt return rv } -func CNNConvolutionGradientStateNode_Alloc() CNNConvolutionGradientStateNode { - return CNNConvolutionGradientStateNodeClass.Alloc() -} - func (cc _CNNConvolutionGradientStateNodeClass) New() CNNConvolutionGradientStateNode { rv := objc.Call[CNNConvolutionGradientStateNode](cc, objc.Sel("new")) rv.Autorelease() diff --git a/macos/mps/cnn_convolution_node.gen.go b/macos/mps/cnn_convolution_node.gen.go index d8874908..07bf3127 100644 --- a/macos/mps/cnn_convolution_node.gen.go +++ b/macos/mps/cnn_convolution_node.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package mps @@ -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) } @@ -71,10 +71,6 @@ func (cc _CNNConvolutionNodeClass) Alloc() CNNConvolutionNode { return rv } -func CNNConvolutionNode_Alloc() CNNConvolutionNode { - return CNNConvolutionNodeClass.Alloc() -} - func (cc _CNNConvolutionNodeClass) New() CNNConvolutionNode { rv := objc.Call[CNNConvolutionNode](cc, objc.Sel("new")) rv.Autorelease() @@ -90,14 +86,6 @@ 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 @@ -113,6 +101,14 @@ 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 7bfaa11d..82521d8a 100644 --- a/macos/mps/cnn_convolution_transpose.gen.go +++ b/macos/mps/cnn_convolution_transpose.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package mps @@ -20,25 +20,33 @@ 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) - ExportWeightsAndBiasesWithCommandBufferResultStateCanBeTemporary(commandBuffer metal.PCommandBuffer, resultStateCanBeTemporary bool) CNNConvolutionWeightsAndBiasesState - ExportWeightsAndBiasesWithCommandBufferObjectResultStateCanBeTemporary(commandBufferObject objc.IObject, resultStateCanBeTemporary bool) CNNConvolutionWeightsAndBiasesState + EncodeToCommandBufferSourceImageConvolutionGradientStateDestinationStateDestinationStateIsTemporary(commandBuffer metal.PCommandBuffer, sourceImage IImage, convolutionGradientState ICNNConvolutionGradientState, outState ICNNConvolutionTransposeGradientState, isTemporary bool) Image + EncodeToCommandBufferObjectSourceImageConvolutionGradientStateDestinationStateDestinationStateIsTemporary(commandBufferObject objc.IObject, sourceImage IImage, convolutionGradientState ICNNConvolutionGradientState, outState ICNNConvolutionTransposeGradientState, isTemporary bool) Image + EncodeBatchToCommandBufferSourceImagesConvolutionGradientStatesDestinationStatesDestinationStateIsTemporary(commandBuffer metal.PCommandBuffer, sourceImages *foundation.Array, convolutionGradientStates *foundation.Array, outStates *foundation.Array, isTemporary bool) *foundation.Array + EncodeBatchToCommandBufferObjectSourceImagesConvolutionGradientStatesDestinationStatesDestinationStateIsTemporary(commandBufferObject objc.IObject, sourceImages *foundation.Array, convolutionGradientStates *foundation.Array, outStates *foundation.Array, isTemporary bool) *foundation.Array EncodeToCommandBufferSourceImageConvolutionGradientState(commandBuffer metal.PCommandBuffer, sourceImage IImage, convolutionGradientState ICNNConvolutionGradientState) Image EncodeToCommandBufferObjectSourceImageConvolutionGradientState(commandBufferObject objc.IObject, sourceImage IImage, convolutionGradientState ICNNConvolutionGradientState) Image - DataSource() CNNConvolutionDataSourceWrapper + 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 OutputFeatureChannels() uint - InputFeatureChannels() uint + AccumulatorPrecisionOption() NNConvolutionAccumulatorPrecisionOption + SetAccumulatorPrecisionOption(value NNConvolutionAccumulatorPrecisionOption) + KernelOffsetY() int + SetKernelOffsetY(value int) KernelOffsetX() int SetKernelOffsetX(value int) + DataSource() CNNConvolutionDataSourceObject Groups() uint - KernelOffsetY() int - SetKernelOffsetY(value int) - AccumulatorPrecisionOption() NNConvolutionAccumulatorPrecisionOption - SetAccumulatorPrecisionOption(value NNConvolutionAccumulatorPrecisionOption) + InputFeatureChannels() uint } // A transposed convolution kernel. [Full Topic] @@ -75,10 +83,6 @@ func (cc _CNNConvolutionTransposeClass) Alloc() CNNConvolutionTranspose { return rv } -func CNNConvolutionTranspose_Alloc() CNNConvolutionTranspose { - return CNNConvolutionTransposeClass.Alloc() -} - func (cc _CNNConvolutionTransposeClass) New() CNNConvolutionTranspose { rv := objc.Call[CNNConvolutionTranspose](cc, objc.Sel("new")) rv.Autorelease() @@ -112,7 +116,6 @@ func NewCNNConvolutionTransposeWithDevice(device metal.PDevice) CNNConvolutionTr func (c_ CNNConvolutionTranspose) CopyWithZoneDevice(zone unsafe.Pointer, device metal.PDevice) CNNConvolutionTranspose { po1 := objc.WrapAsProtocol("MTLDevice", device) rv := objc.Call[CNNConvolutionTranspose](c_, objc.Sel("copyWithZone:device:"), zone, po1) - rv.Autorelease() return rv } @@ -127,41 +130,68 @@ func CNNConvolutionTranspose_CopyWithZoneDevice(zone unsafe.Pointer, device meta // [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]: 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, objc.Ptr(state)) } // [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 { +// [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:"), objc.Ptr(commandBufferObject), objc.Ptr(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 ICNNConvolutionTransposeGradientState, isTemporary bool) Image { po0 := objc.WrapAsProtocol("MTLCommandBuffer", commandBuffer) - rv := objc.Call[*foundation.Array](c_, objc.Sel("encodeBatchToCommandBuffer:sourceImages:convolutionGradientStates:"), po0, sourceImage, convolutionGradientState) + rv := objc.Call[Image](c_, objc.Sel("encodeToCommandBuffer:sourceImage:convolutionGradientState:destinationState:destinationStateIsTemporary:"), po0, objc.Ptr(sourceImage), objc.Ptr(convolutionGradientState), objc.Ptr(outState), isTemporary) 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:"), objc.Ptr(commandBufferObject), sourceImage, convolutionGradientState) +// [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 ICNNConvolutionTransposeGradientState, isTemporary bool) Image { + rv := objc.Call[Image](c_, objc.Sel("encodeToCommandBuffer:sourceImage:convolutionGradientState:destinationState:destinationStateIsTemporary:"), objc.Ptr(commandBufferObject), objc.Ptr(sourceImage), objc.Ptr(convolutionGradientState), objc.Ptr(outState), isTemporary) return rv } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpscnnconvolutiontranspose/3131774-reloadweightsandbiaseswithcomman?language=objc -func (c_ CNNConvolutionTranspose) ReloadWeightsAndBiasesWithCommandBufferState(commandBuffer metal.PCommandBuffer, state ICNNConvolutionWeightsAndBiasesState) { +// [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 *foundation.Array, isTemporary bool) *foundation.Array { po0 := objc.WrapAsProtocol("MTLCommandBuffer", commandBuffer) - objc.Call[objc.Void](c_, objc.Sel("reloadWeightsAndBiasesWithCommandBuffer:state:"), po0, objc.Ptr(state)) + rv := objc.Call[*foundation.Array](c_, objc.Sel("encodeBatchToCommandBuffer:sourceImages:convolutionGradientStates:destinationStates:destinationStateIsTemporary:"), po0, sourceImages, convolutionGradientStates, outStates, isTemporary) + return rv } // [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:"), objc.Ptr(commandBufferObject), objc.Ptr(state)) +// [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 *foundation.Array, isTemporary bool) *foundation.Array { + rv := objc.Call[*foundation.Array](c_, objc.Sel("encodeBatchToCommandBuffer:sourceImages:convolutionGradientStates:destinationStates:destinationStateIsTemporary:"), objc.Ptr(commandBufferObject), sourceImages, convolutionGradientStates, outStates, isTemporary) + 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 { + po0 := objc.WrapAsProtocol("MTLCommandBuffer", commandBuffer) + rv := objc.Call[Image](c_, objc.Sel("encodeToCommandBuffer:sourceImage:convolutionGradientState:"), po0, objc.Ptr(sourceImage), objc.Ptr(convolutionGradientState)) + return rv +} + +// [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:"), objc.Ptr(commandBufferObject), objc.Ptr(sourceImage), objc.Ptr(convolutionGradientState)) + return rv } // [Full Topic] @@ -183,68 +213,81 @@ func (c_ CNNConvolutionTranspose) ExportWeightsAndBiasesWithCommandBufferObjectR // [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/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) { po0 := objc.WrapAsProtocol("MTLCommandBuffer", commandBuffer) - rv := objc.Call[Image](c_, objc.Sel("encodeToCommandBuffer:sourceImage:convolutionGradientState:"), po0, objc.Ptr(sourceImage), objc.Ptr(convolutionGradientState)) - return rv + objc.Call[objc.Void](c_, objc.Sel("encodeToCommandBuffer:sourceImage:convolutionGradientState:destinationImage:"), po0, objc.Ptr(sourceImage), objc.Ptr(convolutionGradientState), objc.Ptr(destinationImage)) } // [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:"), objc.Ptr(commandBufferObject), objc.Ptr(sourceImage), objc.Ptr(convolutionGradientState)) - return rv +// [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:"), objc.Ptr(commandBufferObject), objc.Ptr(sourceImage), objc.Ptr(convolutionGradientState), objc.Ptr(destinationImage)) } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpscnnconvolutiontranspose/3131769-datasource?language=objc -func (c_ CNNConvolutionTranspose) DataSource() CNNConvolutionDataSourceWrapper { - rv := objc.Call[CNNConvolutionDataSourceWrapper](c_, objc.Sel("dataSource")) - return rv +// [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] // -// [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]: 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:"), objc.Ptr(commandBufferObject), sourceImage, convolutionGradientState, destinationImage) } // [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")) +// [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) return rv } // [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")) +// [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:"), objc.Ptr(commandBufferObject), sourceImage, convolutionGradientState) 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]: 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/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/2951924-accumulatorprecisionoption?language=objc +func (c_ CNNConvolutionTranspose) SetAccumulatorPrecisionOption(value NNConvolutionAccumulatorPrecisionOption) { + objc.Call[objc.Void](c_, objc.Sel("setAccumulatorPrecisionOption:"), value) +} + // [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpscnnconvolutiontranspose/2867086-kerneloffsety?language=objc @@ -262,15 +305,39 @@ func (c_ CNNConvolutionTranspose) SetKernelOffsetY(value int) { // [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")) +// [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) SetAccumulatorPrecisionOption(value NNConvolutionAccumulatorPrecisionOption) { - objc.Call[objc.Void](c_, objc.Sel("setAccumulatorPrecisionOption:"), value) +// [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")) + 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 } diff --git a/macos/mps/cnn_convolution_transpose_gradient.gen.go b/macos/mps/cnn_convolution_transpose_gradient.gen.go index 63e7dab8..fd29ae76 100644 --- a/macos/mps/cnn_convolution_transpose_gradient.gen.go +++ b/macos/mps/cnn_convolution_transpose_gradient.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package mps @@ -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) - DataSource() CNNConvolutionDataSourceWrapper + ReloadWeightsAndBiasesFromDataSource() SourceImageFeatureChannels() uint GradientOption() CNNConvolutionGradientOption SetGradientOption(value CNNConvolutionGradientOption) SourceGradientFeatureChannels() uint Groups() uint + DataSource() CNNConvolutionDataSourceObject } // [Full Topic] @@ -64,10 +64,6 @@ func (cc _CNNConvolutionTransposeGradientClass) Alloc() CNNConvolutionTransposeG return rv } -func CNNConvolutionTransposeGradient_Alloc() CNNConvolutionTransposeGradient { - return CNNConvolutionTransposeGradientClass.Alloc() -} - func (cc _CNNConvolutionTransposeGradientClass) New() CNNConvolutionTransposeGradient { rv := objc.Call[CNNConvolutionTransposeGradient](cc, objc.Sel("new")) rv.Autorelease() @@ -101,7 +97,6 @@ func NewCNNConvolutionTransposeGradientWithDevice(device metal.PDevice) CNNConvo func (c_ CNNConvolutionTransposeGradient) CopyWithZoneDevice(zone unsafe.Pointer, device metal.PDevice) CNNConvolutionTransposeGradient { po1 := objc.WrapAsProtocol("MTLDevice", device) rv := objc.Call[CNNConvolutionTransposeGradient](c_, objc.Sel("copyWithZone:device:"), zone, po1) - rv.Autorelease() return rv } @@ -114,13 +109,6 @@ 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 @@ -138,10 +126,9 @@ func (c_ CNNConvolutionTransposeGradient) ReloadWeightsAndBiasesWithCommandBuffe // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpscnnconvolutiontransposegradient/3131780-datasource?language=objc -func (c_ CNNConvolutionTransposeGradient) DataSource() CNNConvolutionDataSourceWrapper { - rv := objc.Call[CNNConvolutionDataSourceWrapper](c_, objc.Sel("dataSource")) - return rv +// [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] @@ -182,3 +169,11 @@ 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 702ba805..b40b0add 100644 --- a/macos/mps/cnn_convolution_transpose_gradient_node.gen.go +++ b/macos/mps/cnn_convolution_transpose_gradient_node.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package mps @@ -33,32 +33,32 @@ func CNNConvolutionTransposeGradientNodeFrom(ptr unsafe.Pointer) CNNConvolutionT } } -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:"), objc.Ptr(sourceGradient), objc.Ptr(sourceImage), objc.Ptr(gradientState), po3) + rv := objc.Call[CNNConvolutionTransposeGradientNode](cc, objc.Sel("nodeWithSourceGradient:sourceImage:convolutionTransposeGradientState:weights:"), objc.Ptr(sourceGradient), objc.Ptr(sourceImage), objc.Ptr(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) 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:"), objc.Ptr(sourceGradient), objc.Ptr(sourceImage), objc.Ptr(gradientState), po3) + rv := objc.Call[CNNConvolutionTransposeGradientNode](c_, objc.Sel("initWithSourceGradient:sourceImage:convolutionTransposeGradientState:weights:"), objc.Ptr(sourceGradient), objc.Ptr(sourceImage), objc.Ptr(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 (cc _CNNConvolutionTransposeGradientNodeClass) Alloc() CNNConvolutionTransposeGradientNode { @@ -66,10 +66,6 @@ func (cc _CNNConvolutionTransposeGradientNodeClass) Alloc() CNNConvolutionTransp return rv } -func CNNConvolutionTransposeGradientNode_Alloc() CNNConvolutionTransposeGradientNode { - return CNNConvolutionTransposeGradientNodeClass.Alloc() -} - func (cc _CNNConvolutionTransposeGradientNodeClass) New() CNNConvolutionTransposeGradientNode { rv := objc.Call[CNNConvolutionTransposeGradientNode](cc, objc.Sel("new")) rv.Autorelease() @@ -85,30 +81,30 @@ func (c_ CNNConvolutionTransposeGradientNode) Init() CNNConvolutionTransposeGrad return rv } -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:"), objc.Ptr(sourceGradient), objc.Ptr(sourceImage), objc.Ptr(gradientState), po3) + rv := objc.Call[CNNConvolutionTransposeGradientNode](cc, objc.Sel("nodeWithSourceGradient:sourceImage:convolutionGradientState:weights:"), objc.Ptr(sourceGradient), objc.Ptr(sourceImage), objc.Ptr(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) } -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:"), objc.Ptr(sourceGradient), objc.Ptr(sourceImage), objc.Ptr(gradientState), po3) + rv := objc.Call[CNNConvolutionTransposeGradientNode](c_, objc.Sel("initWithSourceGradient:sourceImage:convolutionGradientState:weights:"), objc.Ptr(sourceGradient), objc.Ptr(sourceImage), objc.Ptr(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 } diff --git a/macos/mps/cnn_convolution_transpose_gradient_state.gen.go b/macos/mps/cnn_convolution_transpose_gradient_state.gen.go index ccbb58c8..ed501b5e 100644 --- a/macos/mps/cnn_convolution_transpose_gradient_state.gen.go +++ b/macos/mps/cnn_convolution_transpose_gradient_state.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package mps @@ -40,10 +40,6 @@ func (cc _CNNConvolutionTransposeGradientStateClass) Alloc() CNNConvolutionTrans return rv } -func CNNConvolutionTransposeGradientState_Alloc() CNNConvolutionTransposeGradientState { - return CNNConvolutionTransposeGradientStateClass.Alloc() -} - func (cc _CNNConvolutionTransposeGradientStateClass) New() CNNConvolutionTransposeGradientState { rv := objc.Call[CNNConvolutionTransposeGradientState](cc, objc.Sel("new")) rv.Autorelease() @@ -59,16 +55,45 @@ func (c_ CNNConvolutionTransposeGradientState) Init() CNNConvolutionTransposeGra return rv } -func (c_ CNNConvolutionTransposeGradientState) InitWithResources(resources []metal.PResource) CNNConvolutionTransposeGradientState { - rv := objc.Call[CNNConvolutionTransposeGradientState](c_, objc.Sel("initWithResources:"), resources) +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, objc.Ptr(resourceList)) 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/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, objc.Ptr(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) + 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) instance.Autorelease() return instance } @@ -88,32 +113,72 @@ func NewCNNConvolutionTransposeGradientStateWithDeviceBufferSize(device metal.PD 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 } -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, objc.Ptr(resourceList)) +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/2947915-temporarystatewithcommandbuffer?language=objc -func CNNConvolutionTransposeGradientState_TemporaryStateWithCommandBufferResourceList(commandBuffer metal.PCommandBuffer, resourceList IStateResourceList) CNNConvolutionTransposeGradientState { - return CNNConvolutionTransposeGradientStateClass.TemporaryStateWithCommandBufferResourceList(commandBuffer, resourceList) +// [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, objc.Ptr(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, objc.Ptr(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] diff --git a/macos/mps/cnn_convolution_transpose_gradient_state_node.gen.go b/macos/mps/cnn_convolution_transpose_gradient_state_node.gen.go index 3a700efb..15befd5a 100644 --- a/macos/mps/cnn_convolution_transpose_gradient_state_node.gen.go +++ b/macos/mps/cnn_convolution_transpose_gradient_state_node.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package mps @@ -38,10 +38,6 @@ func (cc _CNNConvolutionTransposeGradientStateNodeClass) Alloc() CNNConvolutionT return rv } -func CNNConvolutionTransposeGradientStateNode_Alloc() CNNConvolutionTransposeGradientStateNode { - return CNNConvolutionTransposeGradientStateNodeClass.Alloc() -} - func (cc _CNNConvolutionTransposeGradientStateNodeClass) New() CNNConvolutionTransposeGradientStateNode { rv := objc.Call[CNNConvolutionTransposeGradientStateNode](cc, objc.Sel("new")) rv.Autorelease() diff --git a/macos/mps/cnn_convolution_transpose_node.gen.go b/macos/mps/cnn_convolution_transpose_node.gen.go index 610a181c..53a78ece 100644 --- a/macos/mps/cnn_convolution_transpose_node.gen.go +++ b/macos/mps/cnn_convolution_transpose_node.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package mps @@ -33,32 +33,32 @@ func CNNConvolutionTransposeNodeFrom(ptr unsafe.Pointer) CNNConvolutionTranspose } } -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:"), objc.Ptr(sourceNode), objc.Ptr(convolutionGradientState), po2) + rv := objc.Call[CNNConvolutionTransposeNode](c_, objc.Sel("initWithSource:convolutionGradientState:weights:"), objc.Ptr(sourceNode), objc.Ptr(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 (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:"), objc.Ptr(sourceNode), objc.Ptr(convolutionGradientState), po2) + rv := objc.Call[CNNConvolutionTransposeNode](cc, objc.Sel("nodeWithSource:convolutionGradientState:weights:"), objc.Ptr(sourceNode), objc.Ptr(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) Alloc() CNNConvolutionTransposeNode { @@ -66,10 +66,6 @@ func (cc _CNNConvolutionTransposeNodeClass) Alloc() CNNConvolutionTransposeNode return rv } -func CNNConvolutionTransposeNode_Alloc() CNNConvolutionTransposeNode { - return CNNConvolutionTransposeNodeClass.Alloc() -} - func (cc _CNNConvolutionTransposeNodeClass) New() CNNConvolutionTransposeNode { rv := objc.Call[CNNConvolutionTransposeNode](cc, objc.Sel("new")) rv.Autorelease() 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 21f5b424..f103f071 100644 --- a/macos/mps/cnn_convolution_weights_and_biases_state.gen.go +++ b/macos/mps/cnn_convolution_weights_and_biases_state.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package mps @@ -19,10 +19,10 @@ type _CNNConvolutionWeightsAndBiasesStateClass struct { // An interface definition for the [CNNConvolutionWeightsAndBiasesState] class. type ICNNConvolutionWeightsAndBiasesState interface { IState - WeightsOffset() uint - Weights() metal.BufferWrapper BiasesOffset() uint - Biases() metal.BufferWrapper + WeightsOffset() uint + Biases() metal.BufferObject + Weights() metal.BufferObject } // A class that stores weights and biases. [Full Topic] @@ -38,33 +38,49 @@ func CNNConvolutionWeightsAndBiasesStateFrom(ptr unsafe.Pointer) CNNConvolutionW } } -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, objc.Ptr(descriptor)) +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) 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 } -func (c_ CNNConvolutionWeightsAndBiasesState) InitWithWeightsBiases(weights metal.PBuffer, biases metal.PBuffer) CNNConvolutionWeightsAndBiasesState { +func (c_ CNNConvolutionWeightsAndBiasesState) InitWithWeightsWeightsOffsetBiasesBiasesOffsetCnnConvolutionDescriptor(weights metal.PBuffer, weightsOffset uint, biases metal.PBuffer, biasesOffset uint, descriptor ICNNConvolutionDescriptor) CNNConvolutionWeightsAndBiasesState { po0 := objc.WrapAsProtocol("MTLBuffer", weights) - po1 := objc.WrapAsProtocol("MTLBuffer", biases) - rv := objc.Call[CNNConvolutionWeightsAndBiasesState](c_, objc.Sel("initWithWeights:biases:"), po0, po1) + po2 := objc.WrapAsProtocol("MTLBuffer", biases) + rv := objc.Call[CNNConvolutionWeightsAndBiasesState](c_, objc.Sel("initWithWeights:weightsOffset:biases:biasesOffset:cnnConvolutionDescriptor:"), po0, weightsOffset, po2, biasesOffset, objc.Ptr(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/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, objc.Ptr(descriptor)) + 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) instance.Autorelease() return instance } @@ -87,10 +103,6 @@ func (cc _CNNConvolutionWeightsAndBiasesStateClass) Alloc() CNNConvolutionWeight return rv } -func CNNConvolutionWeightsAndBiasesState_Alloc() CNNConvolutionWeightsAndBiasesState { - return CNNConvolutionWeightsAndBiasesStateClass.Alloc() -} - func (cc _CNNConvolutionWeightsAndBiasesStateClass) New() CNNConvolutionWeightsAndBiasesState { rv := objc.Call[CNNConvolutionWeightsAndBiasesState](cc, objc.Sel("new")) rv.Autorelease() @@ -106,16 +118,45 @@ func (c_ CNNConvolutionWeightsAndBiasesState) Init() CNNConvolutionWeightsAndBia return rv } -func (c_ CNNConvolutionWeightsAndBiasesState) InitWithResources(resources []metal.PResource) CNNConvolutionWeightsAndBiasesState { - rv := objc.Call[CNNConvolutionWeightsAndBiasesState](c_, objc.Sel("initWithResources:"), resources) +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, objc.Ptr(resourceList)) 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/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, objc.Ptr(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) + 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) instance.Autorelease() return instance } @@ -135,50 +176,74 @@ func NewCNNConvolutionWeightsAndBiasesStateWithDeviceBufferSize(device metal.PDe 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 } -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, objc.Ptr(resourceList)) +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) 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) +// [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] // -// [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")) +// [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, objc.Ptr(descriptor)) return rv } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpscnnconvolutionweightsandbiasesstate/2953006-weights?language=objc -func (c_ CNNConvolutionWeightsAndBiasesState) Weights() metal.BufferWrapper { - rv := objc.Call[metal.BufferWrapper](c_, objc.Sel("weights")) +// [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, objc.Ptr(resourceList)) 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 @@ -187,10 +252,26 @@ 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 -func (c_ CNNConvolutionWeightsAndBiasesState) Biases() metal.BufferWrapper { - rv := objc.Call[metal.BufferWrapper](c_, objc.Sel("biases")) +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 5a28dd4e..e62a7dec 100644 --- a/macos/mps/cnn_cross_channel_normalization.gen.go +++ b/macos/mps/cnn_cross_channel_normalization.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package mps @@ -19,13 +19,13 @@ type _CNNCrossChannelNormalizationClass struct { // An interface definition for the [CNNCrossChannelNormalization] class. type ICNNCrossChannelNormalization interface { ICNNKernel - KernelSize() uint Beta() float64 SetBeta(value float64) - Delta() float64 - SetDelta(value float64) Alpha() float64 SetAlpha(value float64) + KernelSize() uint + Delta() float64 + SetDelta(value float64) } // A normalization kernel applied across feature channels. [Full Topic] @@ -61,10 +61,6 @@ func (cc _CNNCrossChannelNormalizationClass) Alloc() CNNCrossChannelNormalizatio return rv } -func CNNCrossChannelNormalization_Alloc() CNNCrossChannelNormalization { - return CNNCrossChannelNormalizationClass.Alloc() -} - func (cc _CNNCrossChannelNormalizationClass) New() CNNCrossChannelNormalization { rv := objc.Call[CNNCrossChannelNormalization](cc, objc.Sel("new")) rv.Autorelease() @@ -98,7 +94,6 @@ func NewCNNCrossChannelNormalizationWithDevice(device metal.PDevice) CNNCrossCha func (c_ CNNCrossChannelNormalization) CopyWithZoneDevice(zone unsafe.Pointer, device metal.PDevice) CNNCrossChannelNormalization { po1 := objc.WrapAsProtocol("MTLDevice", device) rv := objc.Call[CNNCrossChannelNormalization](c_, objc.Sel("copyWithZone:device:"), zone, po1) - rv.Autorelease() return rv } @@ -111,14 +106,6 @@ 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 @@ -134,21 +121,6 @@ func (c_ CNNCrossChannelNormalization) SetBeta(value float64) { 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/mpscnncrosschannelnormalization/1648881-delta?language=objc -func (c_ CNNCrossChannelNormalization) Delta() float64 { - rv := objc.Call[float64](c_, objc.Sel("delta")) - return rv -} - -// The "delta" variable of the kernel function. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpscnncrosschannelnormalization/1648881-delta?language=objc -func (c_ CNNCrossChannelNormalization) SetDelta(value float64) { - 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 @@ -163,3 +135,26 @@ func (c_ CNNCrossChannelNormalization) Alpha() float64 { func (c_ CNNCrossChannelNormalization) SetAlpha(value float64) { 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 +func (c_ CNNCrossChannelNormalization) Delta() float64 { + rv := objc.Call[float64](c_, objc.Sel("delta")) + return rv +} + +// The "delta" variable of the kernel function. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpscnncrosschannelnormalization/1648881-delta?language=objc +func (c_ CNNCrossChannelNormalization) SetDelta(value float64) { + objc.Call[objc.Void](c_, objc.Sel("setDelta:"), value) +} diff --git a/macos/mps/cnn_cross_channel_normalization_gradient.gen.go b/macos/mps/cnn_cross_channel_normalization_gradient.gen.go index e580eaf4..f730f7bc 100644 --- a/macos/mps/cnn_cross_channel_normalization_gradient.gen.go +++ b/macos/mps/cnn_cross_channel_normalization_gradient.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package mps @@ -19,13 +19,13 @@ type _CNNCrossChannelNormalizationGradientClass struct { // An interface definition for the [CNNCrossChannelNormalizationGradient] class. type ICNNCrossChannelNormalizationGradient interface { ICNNGradientKernel - KernelSize() uint + Alpha() float64 + SetAlpha(value float64) Beta() float64 SetBeta(value float64) Delta() float64 SetDelta(value float64) - Alpha() float64 - SetAlpha(value float64) + KernelSize() uint } // A gradient normalization kernel applied across feature channels. [Full Topic] @@ -61,10 +61,6 @@ func (cc _CNNCrossChannelNormalizationGradientClass) Alloc() CNNCrossChannelNorm return rv } -func CNNCrossChannelNormalizationGradient_Alloc() CNNCrossChannelNormalizationGradient { - return CNNCrossChannelNormalizationGradientClass.Alloc() -} - func (cc _CNNCrossChannelNormalizationGradientClass) New() CNNCrossChannelNormalizationGradient { rv := objc.Call[CNNCrossChannelNormalizationGradient](cc, objc.Sel("new")) rv.Autorelease() @@ -98,7 +94,6 @@ func NewCNNCrossChannelNormalizationGradientWithDevice(device metal.PDevice) CNN func (c_ CNNCrossChannelNormalizationGradient) CopyWithZoneDevice(zone unsafe.Pointer, device metal.PDevice) CNNCrossChannelNormalizationGradient { po1 := objc.WrapAsProtocol("MTLDevice", device) rv := objc.Call[CNNCrossChannelNormalizationGradient](c_, objc.Sel("copyWithZone:device:"), zone, po1) - rv.Autorelease() return rv } @@ -113,12 +108,19 @@ func CNNCrossChannelNormalizationGradient_CopyWithZoneDevice(zone unsafe.Pointer // [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() float64 { + rv := objc.Call[float64](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 float64) { + objc.Call[objc.Void](c_, objc.Sel("setAlpha:"), value) +} + // [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpscnncrosschannelnormalizationgradient/2942477-beta?language=objc @@ -151,15 +153,8 @@ func (c_ CNNCrossChannelNormalizationGradient) SetDelta(value float64) { // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpscnncrosschannelnormalizationgradient/2942464-alpha?language=objc -func (c_ CNNCrossChannelNormalizationGradient) Alpha() float64 { - rv := objc.Call[float64](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 float64) { - objc.Call[objc.Void](c_, objc.Sel("setAlpha:"), value) -} diff --git a/macos/mps/cnn_cross_channel_normalization_gradient_node.gen.go b/macos/mps/cnn_cross_channel_normalization_gradient_node.gen.go index 0439aba6..c8da72a3 100644 --- a/macos/mps/cnn_cross_channel_normalization_gradient_node.gen.go +++ b/macos/mps/cnn_cross_channel_normalization_gradient_node.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package mps @@ -65,10 +65,6 @@ func (cc _CNNCrossChannelNormalizationGradientNodeClass) Alloc() CNNCrossChannel return rv } -func CNNCrossChannelNormalizationGradientNode_Alloc() CNNCrossChannelNormalizationGradientNode { - return CNNCrossChannelNormalizationGradientNodeClass.Alloc() -} - func (cc _CNNCrossChannelNormalizationGradientNodeClass) New() CNNCrossChannelNormalizationGradientNode { rv := objc.Call[CNNCrossChannelNormalizationGradientNode](cc, objc.Sel("new")) rv.Autorelease() diff --git a/macos/mps/cnn_cross_channel_normalization_node.gen.go b/macos/mps/cnn_cross_channel_normalization_node.gen.go index e2d23ebc..ec75b2aa 100644 --- a/macos/mps/cnn_cross_channel_normalization_node.gen.go +++ b/macos/mps/cnn_cross_channel_normalization_node.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package mps @@ -61,13 +61,23 @@ func NewCNNCrossChannelNormalizationNodeWithSource(sourceNode INNImageNode) CNNC return instance } -func (cc _CNNCrossChannelNormalizationNodeClass) Alloc() CNNCrossChannelNormalizationNode { - rv := objc.Call[CNNCrossChannelNormalizationNode](cc, objc.Sel("alloc")) +func (c_ CNNCrossChannelNormalizationNode) InitWithSourceKernelSize(sourceNode INNImageNode, kernelSize uint) CNNCrossChannelNormalizationNode { + rv := objc.Call[CNNCrossChannelNormalizationNode](c_, objc.Sel("initWithSource:kernelSize:"), objc.Ptr(sourceNode), kernelSize) return rv } -func CNNCrossChannelNormalizationNode_Alloc() CNNCrossChannelNormalizationNode { - return CNNCrossChannelNormalizationNodeClass.Alloc() +// [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 } func (cc _CNNCrossChannelNormalizationNodeClass) New() CNNCrossChannelNormalizationNode { diff --git a/macos/mps/cnn_depth_wise_convolution_descriptor.gen.go b/macos/mps/cnn_depth_wise_convolution_descriptor.gen.go index 2f0391a2..bca6d775 100644 --- a/macos/mps/cnn_depth_wise_convolution_descriptor.gen.go +++ b/macos/mps/cnn_depth_wise_convolution_descriptor.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package mps @@ -39,10 +39,6 @@ func (cc _CNNDepthWiseConvolutionDescriptorClass) Alloc() CNNDepthWiseConvolutio return rv } -func CNNDepthWiseConvolutionDescriptor_Alloc() CNNDepthWiseConvolutionDescriptor { - return CNNDepthWiseConvolutionDescriptorClass.Alloc() -} - func (cc _CNNDepthWiseConvolutionDescriptorClass) New() CNNDepthWiseConvolutionDescriptor { rv := objc.Call[CNNDepthWiseConvolutionDescriptor](cc, objc.Sel("new")) rv.Autorelease() @@ -70,6 +66,18 @@ 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, objc.Ptr(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 b60d7724..f9aa1b82 100644 --- a/macos/mps/cnn_dilated_pooling_max.gen.go +++ b/macos/mps/cnn_dilated_pooling_max.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package mps @@ -54,10 +54,6 @@ func (cc _CNNDilatedPoolingMaxClass) Alloc() CNNDilatedPoolingMax { return rv } -func CNNDilatedPoolingMax_Alloc() CNNDilatedPoolingMax { - return CNNDilatedPoolingMaxClass.Alloc() -} - func (cc _CNNDilatedPoolingMaxClass) New() CNNDilatedPoolingMax { rv := objc.Call[CNNDilatedPoolingMax](cc, objc.Sel("new")) rv.Autorelease() @@ -88,6 +84,21 @@ 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) @@ -106,7 +117,6 @@ func NewCNNDilatedPoolingMaxWithDevice(device metal.PDevice) CNNDilatedPoolingMa func (c_ CNNDilatedPoolingMax) CopyWithZoneDevice(zone unsafe.Pointer, device metal.PDevice) CNNDilatedPoolingMax { po1 := objc.WrapAsProtocol("MTLDevice", device) rv := objc.Call[CNNDilatedPoolingMax](c_, objc.Sel("copyWithZone:device:"), zone, po1) - rv.Autorelease() return rv } diff --git a/macos/mps/cnn_dilated_pooling_max_gradient.gen.go b/macos/mps/cnn_dilated_pooling_max_gradient.gen.go index 19683aee..7c6fa6fd 100644 --- a/macos/mps/cnn_dilated_pooling_max_gradient.gen.go +++ b/macos/mps/cnn_dilated_pooling_max_gradient.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package mps @@ -54,10 +54,6 @@ func (cc _CNNDilatedPoolingMaxGradientClass) Alloc() CNNDilatedPoolingMaxGradien return rv } -func CNNDilatedPoolingMaxGradient_Alloc() CNNDilatedPoolingMaxGradient { - return CNNDilatedPoolingMaxGradientClass.Alloc() -} - func (cc _CNNDilatedPoolingMaxGradientClass) New() CNNDilatedPoolingMaxGradient { rv := objc.Call[CNNDilatedPoolingMaxGradient](cc, objc.Sel("new")) rv.Autorelease() @@ -88,6 +84,21 @@ 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) @@ -106,7 +117,6 @@ func NewCNNDilatedPoolingMaxGradientWithDevice(device metal.PDevice) CNNDilatedP func (c_ CNNDilatedPoolingMaxGradient) CopyWithZoneDevice(zone unsafe.Pointer, device metal.PDevice) CNNDilatedPoolingMaxGradient { po1 := objc.WrapAsProtocol("MTLDevice", device) rv := objc.Call[CNNDilatedPoolingMaxGradient](c_, objc.Sel("copyWithZone:device:"), zone, po1) - rv.Autorelease() return rv } 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 13b4e7ca..36243aaa 100644 --- a/macos/mps/cnn_dilated_pooling_max_gradient_node.gen.go +++ b/macos/mps/cnn_dilated_pooling_max_gradient_node.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package mps @@ -35,30 +35,30 @@ func CNNDilatedPoolingMaxGradientNodeFrom(ptr unsafe.Pointer) CNNDilatedPoolingM } } -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:"), objc.Ptr(sourceGradient), objc.Ptr(sourceImage), objc.Ptr(gradientState), kernelWidth, kernelHeight, strideInPixelsX, strideInPixelsY, dilationRateX, dilationRateY) +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:"), objc.Ptr(sourceGradient), objc.Ptr(sourceImage), objc.Ptr(gradientState), kernelWidth, kernelHeight, strideInPixelsX, strideInPixelsY, dilationRateX, dilationRateY) return rv } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpscnndilatedpoolingmaxgradientnode/2948026-initwithsourcegradient?language=objc -func NewCNNDilatedPoolingMaxGradientNodeWithSourceGradientSourceImageGradientStateKernelWidthKernelHeightStrideInPixelsXStrideInPixelsYDilationRateXDilationRateY(sourceGradient INNImageNode, sourceImage INNImageNode, gradientState INNGradientStateNode, kernelWidth uint, kernelHeight uint, strideInPixelsX uint, strideInPixelsY uint, dilationRateX uint, dilationRateY uint) CNNDilatedPoolingMaxGradientNode { - instance := CNNDilatedPoolingMaxGradientNodeClass.Alloc().InitWithSourceGradientSourceImageGradientStateKernelWidthKernelHeightStrideInPixelsXStrideInPixelsYDilationRateXDilationRateY(sourceGradient, sourceImage, gradientState, kernelWidth, kernelHeight, strideInPixelsX, strideInPixelsY, dilationRateX, dilationRateY) - instance.Autorelease() - return instance +// [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) 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:"), objc.Ptr(sourceGradient), objc.Ptr(sourceImage), objc.Ptr(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:"), objc.Ptr(sourceGradient), objc.Ptr(sourceImage), objc.Ptr(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) +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpscnndilatedpoolingmaxgradientnode/2948026-initwithsourcegradient?language=objc +func NewCNNDilatedPoolingMaxGradientNodeWithSourceGradientSourceImageGradientStateKernelWidthKernelHeightStrideInPixelsXStrideInPixelsYDilationRateXDilationRateY(sourceGradient INNImageNode, sourceImage INNImageNode, gradientState INNGradientStateNode, kernelWidth uint, kernelHeight uint, strideInPixelsX uint, strideInPixelsY uint, dilationRateX uint, dilationRateY uint) CNNDilatedPoolingMaxGradientNode { + instance := CNNDilatedPoolingMaxGradientNodeClass.Alloc().InitWithSourceGradientSourceImageGradientStateKernelWidthKernelHeightStrideInPixelsXStrideInPixelsYDilationRateXDilationRateY(sourceGradient, sourceImage, gradientState, kernelWidth, kernelHeight, strideInPixelsX, strideInPixelsY, dilationRateX, dilationRateY) + instance.Autorelease() + return instance } func (cc _CNNDilatedPoolingMaxGradientNodeClass) Alloc() CNNDilatedPoolingMaxGradientNode { @@ -66,10 +66,6 @@ func (cc _CNNDilatedPoolingMaxGradientNodeClass) Alloc() CNNDilatedPoolingMaxGra return rv } -func CNNDilatedPoolingMaxGradientNode_Alloc() CNNDilatedPoolingMaxGradientNode { - return CNNDilatedPoolingMaxGradientNodeClass.Alloc() -} - func (cc _CNNDilatedPoolingMaxGradientNodeClass) New() CNNDilatedPoolingMaxGradientNode { rv := objc.Call[CNNDilatedPoolingMaxGradientNode](cc, objc.Sel("new")) rv.Autorelease() diff --git a/macos/mps/cnn_dilated_pooling_max_node.gen.go b/macos/mps/cnn_dilated_pooling_max_node.gen.go index 12746030..06c7fc03 100644 --- a/macos/mps/cnn_dilated_pooling_max_node.gen.go +++ b/macos/mps/cnn_dilated_pooling_max_node.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package mps @@ -35,6 +35,46 @@ func CNNDilatedPoolingMaxNodeFrom(ptr unsafe.Pointer) CNNDilatedPoolingMaxNode { } } +func (c_ CNNDilatedPoolingMaxNode) InitWithSourceFilterSize(sourceNode INNImageNode, size uint) CNNDilatedPoolingMaxNode { + rv := objc.Call[CNNDilatedPoolingMaxNode](c_, objc.Sel("initWithSource:filterSize:"), objc.Ptr(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:"), objc.Ptr(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:"), objc.Ptr(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:"), objc.Ptr(sourceNode), size) return rv @@ -47,16 +87,16 @@ func CNNDilatedPoolingMaxNode_NodeWithSourceFilterSize(sourceNode INNImageNode, return CNNDilatedPoolingMaxNodeClass.NodeWithSourceFilterSize(sourceNode, size) } -func (c_ CNNDilatedPoolingMaxNode) InitWithSourceFilterSize(sourceNode INNImageNode, size uint) CNNDilatedPoolingMaxNode { - rv := objc.Call[CNNDilatedPoolingMaxNode](c_, objc.Sel("initWithSource:filterSize:"), objc.Ptr(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:"), objc.Ptr(sourceNode), size, stride, dilationRate) 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) +// [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) instance.Autorelease() return instance } @@ -66,10 +106,6 @@ func (cc _CNNDilatedPoolingMaxNodeClass) Alloc() CNNDilatedPoolingMaxNode { return rv } -func CNNDilatedPoolingMaxNode_Alloc() CNNDilatedPoolingMaxNode { - return CNNDilatedPoolingMaxNodeClass.Alloc() -} - func (cc _CNNDilatedPoolingMaxNodeClass) New() CNNDilatedPoolingMaxNode { rv := objc.Call[CNNDilatedPoolingMaxNode](cc, objc.Sel("new")) rv.Autorelease() diff --git a/macos/mps/cnn_divide.gen.go b/macos/mps/cnn_divide.gen.go index 57db1abe..d97802c9 100644 --- a/macos/mps/cnn_divide.gen.go +++ b/macos/mps/cnn_divide.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package mps @@ -54,10 +54,6 @@ func (cc _CNNDivideClass) Alloc() CNNDivide { return rv } -func CNNDivide_Alloc() CNNDivide { - return CNNDivideClass.Alloc() -} - func (cc _CNNDivideClass) New() CNNDivide { rv := objc.Call[CNNDivide](cc, objc.Sel("new")) rv.Autorelease() @@ -76,7 +72,6 @@ func (c_ CNNDivide) Init() CNNDivide { func (c_ CNNDivide) CopyWithZoneDevice(zone unsafe.Pointer, device metal.PDevice) CNNDivide { po1 := objc.WrapAsProtocol("MTLDevice", device) rv := objc.Call[CNNDivide](c_, objc.Sel("copyWithZone:device:"), zone, po1) - rv.Autorelease() return rv } diff --git a/macos/mps/cnn_dropout.gen.go b/macos/mps/cnn_dropout.gen.go index 422239ec..dbbd5fbf 100644 --- a/macos/mps/cnn_dropout.gen.go +++ b/macos/mps/cnn_dropout.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package mps @@ -57,10 +57,6 @@ func (cc _CNNDropoutClass) Alloc() CNNDropout { return rv } -func CNNDropout_Alloc() CNNDropout { - return CNNDropoutClass.Alloc() -} - func (cc _CNNDropoutClass) New() CNNDropout { rv := objc.Call[CNNDropout](cc, objc.Sel("new")) rv.Autorelease() @@ -94,7 +90,6 @@ func NewCNNDropoutWithDevice(device metal.PDevice) CNNDropout { func (c_ CNNDropout) CopyWithZoneDevice(zone unsafe.Pointer, device metal.PDevice) CNNDropout { po1 := objc.WrapAsProtocol("MTLDevice", device) rv := objc.Call[CNNDropout](c_, objc.Sel("copyWithZone:device:"), zone, po1) - rv.Autorelease() return rv } diff --git a/macos/mps/cnn_dropout_gradient.gen.go b/macos/mps/cnn_dropout_gradient.gen.go index ef754a43..c167206e 100644 --- a/macos/mps/cnn_dropout_gradient.gen.go +++ b/macos/mps/cnn_dropout_gradient.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package mps @@ -19,8 +19,8 @@ type _CNNDropoutGradientClass struct { // An interface definition for the [CNNDropoutGradient] class. type ICNNDropoutGradient interface { ICNNGradientKernel - KeepProbability() float64 MaskStrideInPixels() metal.Size + KeepProbability() float64 Seed() uint } @@ -57,10 +57,6 @@ func (cc _CNNDropoutGradientClass) Alloc() CNNDropoutGradient { return rv } -func CNNDropoutGradient_Alloc() CNNDropoutGradient { - return CNNDropoutGradientClass.Alloc() -} - func (cc _CNNDropoutGradientClass) New() CNNDropoutGradient { rv := objc.Call[CNNDropoutGradient](cc, objc.Sel("new")) rv.Autorelease() @@ -94,7 +90,6 @@ func NewCNNDropoutGradientWithDevice(device metal.PDevice) CNNDropoutGradient { func (c_ CNNDropoutGradient) CopyWithZoneDevice(zone unsafe.Pointer, device metal.PDevice) CNNDropoutGradient { po1 := objc.WrapAsProtocol("MTLDevice", device) rv := objc.Call[CNNDropoutGradient](c_, objc.Sel("copyWithZone:device:"), zone, po1) - rv.Autorelease() return rv } @@ -109,17 +104,17 @@ func CNNDropoutGradient_CopyWithZoneDevice(zone unsafe.Pointer, device metal.PDe // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpscnndropoutgradient/2942520-keepprobability?language=objc -func (c_ CNNDropoutGradient) KeepProbability() float64 { - rv := objc.Call[float64](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 } // [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() float64 { + rv := objc.Call[float64](c_, objc.Sel("keepProbability")) return rv } diff --git a/macos/mps/cnn_dropout_gradient_node.gen.go b/macos/mps/cnn_dropout_gradient_node.gen.go index 7b9198ff..56f5a1b1 100644 --- a/macos/mps/cnn_dropout_gradient_node.gen.go +++ b/macos/mps/cnn_dropout_gradient_node.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package mps @@ -20,8 +20,8 @@ type _CNNDropoutGradientNodeClass struct { type ICNNDropoutGradientNode interface { INNGradientFilterNode KeepProbability() float64 - MaskStrideInPixels() metal.Size Seed() uint + MaskStrideInPixels() metal.Size } // A representation of a gradient dropout filter. [Full Topic] @@ -68,10 +68,6 @@ func (cc _CNNDropoutGradientNodeClass) Alloc() CNNDropoutGradientNode { return rv } -func CNNDropoutGradientNode_Alloc() CNNDropoutGradientNode { - return CNNDropoutGradientNodeClass.Alloc() -} - func (cc _CNNDropoutGradientNodeClass) New() CNNDropoutGradientNode { rv := objc.Call[CNNDropoutGradientNode](cc, objc.Sel("new")) rv.Autorelease() @@ -97,16 +93,16 @@ func (c_ CNNDropoutGradientNode) KeepProbability() float64 { // [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 } // [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 } diff --git a/macos/mps/cnn_dropout_gradient_state.gen.go b/macos/mps/cnn_dropout_gradient_state.gen.go index 6dbc4872..94537b07 100644 --- a/macos/mps/cnn_dropout_gradient_state.gen.go +++ b/macos/mps/cnn_dropout_gradient_state.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package mps @@ -40,10 +40,6 @@ func (cc _CNNDropoutGradientStateClass) Alloc() CNNDropoutGradientState { return rv } -func CNNDropoutGradientState_Alloc() CNNDropoutGradientState { - return CNNDropoutGradientStateClass.Alloc() -} - func (cc _CNNDropoutGradientStateClass) New() CNNDropoutGradientState { rv := objc.Call[CNNDropoutGradientState](cc, objc.Sel("new")) rv.Autorelease() @@ -59,16 +55,45 @@ func (c_ CNNDropoutGradientState) Init() CNNDropoutGradientState { return rv } -func (c_ CNNDropoutGradientState) InitWithResources(resources []metal.PResource) CNNDropoutGradientState { - rv := objc.Call[CNNDropoutGradientState](c_, objc.Sel("initWithResources:"), resources) +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, objc.Ptr(resourceList)) 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/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, objc.Ptr(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) + 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) instance.Autorelease() return instance } @@ -88,32 +113,72 @@ func NewCNNDropoutGradientStateWithDeviceBufferSize(device metal.PDevice, buffer 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 } -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, objc.Ptr(resourceList)) +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/2947915-temporarystatewithcommandbuffer?language=objc -func CNNDropoutGradientState_TemporaryStateWithCommandBufferResourceList(commandBuffer metal.PCommandBuffer, resourceList IStateResourceList) CNNDropoutGradientState { - return CNNDropoutGradientStateClass.TemporaryStateWithCommandBufferResourceList(commandBuffer, resourceList) +// [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, objc.Ptr(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, objc.Ptr(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] diff --git a/macos/mps/cnn_dropout_node.gen.go b/macos/mps/cnn_dropout_node.gen.go index 098609c2..228b9675 100644 --- a/macos/mps/cnn_dropout_node.gen.go +++ b/macos/mps/cnn_dropout_node.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package mps @@ -37,16 +37,16 @@ func CNNDropoutNodeFrom(ptr unsafe.Pointer) CNNDropoutNode { } } -func (cc _CNNDropoutNodeClass) NodeWithSource(source INNImageNode) CNNDropoutNode { - rv := objc.Call[CNNDropoutNode](cc, objc.Sel("nodeWithSource:"), objc.Ptr(source)) +func (cc _CNNDropoutNodeClass) NodeWithSourceKeepProbability(source INNImageNode, keepProbability float64) CNNDropoutNode { + rv := objc.Call[CNNDropoutNode](cc, objc.Sel("nodeWithSource:keepProbability:"), objc.Ptr(source), keepProbability) 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) +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpscnndropoutnode/2947975-nodewithsource?language=objc +func CNNDropoutNode_NodeWithSourceKeepProbability(source INNImageNode, keepProbability float64) CNNDropoutNode { + return CNNDropoutNodeClass.NodeWithSourceKeepProbability(source, keepProbability) } func (c_ CNNDropoutNode) InitWithSourceKeepProbability(source INNImageNode, keepProbability float64) CNNDropoutNode { @@ -63,13 +63,61 @@ func NewCNNDropoutNodeWithSourceKeepProbability(source INNImageNode, keepProbabi return instance } -func (cc _CNNDropoutNodeClass) Alloc() CNNDropoutNode { - rv := objc.Call[CNNDropoutNode](cc, objc.Sel("alloc")) +func (c_ CNNDropoutNode) InitWithSourceKeepProbabilitySeedMaskStrideInPixels(source INNImageNode, keepProbability float64, seed uint, maskStrideInPixels metal.Size) CNNDropoutNode { + rv := objc.Call[CNNDropoutNode](c_, objc.Sel("initWithSource:keepProbability:seed:maskStrideInPixels:"), objc.Ptr(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 float64, 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:"), objc.Ptr(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 float64, seed uint, maskStrideInPixels metal.Size) CNNDropoutNode { + rv := objc.Call[CNNDropoutNode](cc, objc.Sel("nodeWithSource:keepProbability:seed:maskStrideInPixels:"), objc.Ptr(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 float64, 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:"), objc.Ptr(source)) return rv } -func CNNDropoutNode_Alloc() CNNDropoutNode { - return CNNDropoutNodeClass.Alloc() +// [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 } func (cc _CNNDropoutNodeClass) New() CNNDropoutNode { diff --git a/macos/mps/cnn_fully_connected.gen.go b/macos/mps/cnn_fully_connected.gen.go index d8728639..614c65ca 100644 --- a/macos/mps/cnn_fully_connected.gen.go +++ b/macos/mps/cnn_fully_connected.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package mps @@ -55,10 +55,6 @@ func (cc _CNNFullyConnectedClass) Alloc() CNNFullyConnected { return rv } -func CNNFullyConnected_Alloc() CNNFullyConnected { - return CNNFullyConnectedClass.Alloc() -} - func (cc _CNNFullyConnectedClass) New() CNNFullyConnected { rv := objc.Call[CNNFullyConnected](cc, objc.Sel("new")) rv.Autorelease() @@ -74,6 +70,21 @@ func (c_ CNNFullyConnected) Init() CNNFullyConnected { return rv } +func (c_ CNNFullyConnected) InitWithDeviceConvolutionDescriptorKernelWeightsBiasTermsFlags(device metal.PDevice, convolutionDescriptor ICNNConvolutionDescriptor, kernelWeights *float64, biasTerms *float64, flags CNNConvolutionFlags) CNNFullyConnected { + po0 := objc.WrapAsProtocol("MTLDevice", device) + rv := objc.Call[CNNFullyConnected](c_, objc.Sel("initWithDevice:convolutionDescriptor:kernelWeights:biasTerms:flags:"), po0, objc.Ptr(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 *float64, biasTerms *float64, 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) @@ -92,7 +103,6 @@ func NewCNNFullyConnectedWithDevice(device metal.PDevice) CNNFullyConnected { func (c_ CNNFullyConnected) CopyWithZoneDevice(zone unsafe.Pointer, device metal.PDevice) CNNFullyConnected { po1 := objc.WrapAsProtocol("MTLDevice", device) rv := objc.Call[CNNFullyConnected](c_, objc.Sel("copyWithZone:device:"), zone, po1) - rv.Autorelease() return rv } diff --git a/macos/mps/cnn_fully_connected_gradient.gen.go b/macos/mps/cnn_fully_connected_gradient.gen.go index 0104b183..7b4be650 100644 --- a/macos/mps/cnn_fully_connected_gradient.gen.go +++ b/macos/mps/cnn_fully_connected_gradient.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package mps @@ -55,10 +55,6 @@ func (cc _CNNFullyConnectedGradientClass) Alloc() CNNFullyConnectedGradient { return rv } -func CNNFullyConnectedGradient_Alloc() CNNFullyConnectedGradient { - return CNNFullyConnectedGradientClass.Alloc() -} - func (cc _CNNFullyConnectedGradientClass) New() CNNFullyConnectedGradient { rv := objc.Call[CNNFullyConnectedGradient](cc, objc.Sel("new")) rv.Autorelease() @@ -92,7 +88,6 @@ func NewCNNFullyConnectedGradientWithDevice(device metal.PDevice) CNNFullyConnec func (c_ CNNFullyConnectedGradient) CopyWithZoneDevice(zone unsafe.Pointer, device metal.PDevice) CNNFullyConnectedGradient { po1 := objc.WrapAsProtocol("MTLDevice", device) rv := objc.Call[CNNFullyConnectedGradient](c_, objc.Sel("copyWithZone:device:"), zone, po1) - rv.Autorelease() return rv } diff --git a/macos/mps/cnn_fully_connected_gradient_node.gen.go b/macos/mps/cnn_fully_connected_gradient_node.gen.go index adf871f0..33823c7a 100644 --- a/macos/mps/cnn_fully_connected_gradient_node.gen.go +++ b/macos/mps/cnn_fully_connected_gradient_node.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package mps @@ -33,32 +33,32 @@ func CNNFullyConnectedGradientNodeFrom(ptr unsafe.Pointer) CNNFullyConnectedGrad } } -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:"), objc.Ptr(sourceGradient), objc.Ptr(sourceImage), objc.Ptr(gradientState), po3) + rv := objc.Call[CNNFullyConnectedGradientNode](cc, objc.Sel("nodeWithSourceGradient:sourceImage:convolutionGradientState:weights:"), objc.Ptr(sourceGradient), objc.Ptr(sourceImage), objc.Ptr(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) 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:"), objc.Ptr(sourceGradient), objc.Ptr(sourceImage), objc.Ptr(gradientState), po3) + rv := objc.Call[CNNFullyConnectedGradientNode](c_, objc.Sel("initWithSourceGradient:sourceImage:convolutionGradientState:weights:"), objc.Ptr(sourceGradient), objc.Ptr(sourceImage), objc.Ptr(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 (cc _CNNFullyConnectedGradientNodeClass) Alloc() CNNFullyConnectedGradientNode { @@ -66,10 +66,6 @@ func (cc _CNNFullyConnectedGradientNodeClass) Alloc() CNNFullyConnectedGradientN return rv } -func CNNFullyConnectedGradientNode_Alloc() CNNFullyConnectedGradientNode { - return CNNFullyConnectedGradientNodeClass.Alloc() -} - func (cc _CNNFullyConnectedGradientNodeClass) New() CNNFullyConnectedGradientNode { rv := objc.Call[CNNFullyConnectedGradientNode](cc, objc.Sel("new")) rv.Autorelease() diff --git a/macos/mps/cnn_fully_connected_node.gen.go b/macos/mps/cnn_fully_connected_node.gen.go index d0876682..f09e0fbe 100644 --- a/macos/mps/cnn_fully_connected_node.gen.go +++ b/macos/mps/cnn_fully_connected_node.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package mps @@ -33,32 +33,32 @@ func CNNFullyConnectedNodeFrom(ptr unsafe.Pointer) CNNFullyConnectedNode { } } -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:"), objc.Ptr(sourceNode), po1) + rv := objc.Call[CNNFullyConnectedNode](c_, objc.Sel("initWithSource:weights:"), objc.Ptr(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 (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:"), objc.Ptr(sourceNode), po1) + rv := objc.Call[CNNFullyConnectedNode](cc, objc.Sel("nodeWithSource:weights:"), objc.Ptr(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) Alloc() CNNFullyConnectedNode { @@ -66,10 +66,6 @@ func (cc _CNNFullyConnectedNodeClass) Alloc() CNNFullyConnectedNode { return rv } -func CNNFullyConnectedNode_Alloc() CNNFullyConnectedNode { - return CNNFullyConnectedNodeClass.Alloc() -} - func (cc _CNNFullyConnectedNodeClass) New() CNNFullyConnectedNode { rv := objc.Call[CNNFullyConnectedNode](cc, objc.Sel("new")) rv.Autorelease() diff --git a/macos/mps/cnn_gradient_kernel.gen.go b/macos/mps/cnn_gradient_kernel.gen.go index 47e56123..da605f6c 100644 --- a/macos/mps/cnn_gradient_kernel.gen.go +++ b/macos/mps/cnn_gradient_kernel.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package mps @@ -20,10 +20,14 @@ type _CNNGradientKernelClass struct { // An interface definition for the [CNNGradientKernel] class. type ICNNGradientKernel interface { ICNNBinaryKernel - 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 + 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 KernelOffsetX() int SetKernelOffsetX(value int) KernelOffsetY() int @@ -63,10 +67,6 @@ func (cc _CNNGradientKernelClass) Alloc() CNNGradientKernel { return rv } -func CNNGradientKernel_Alloc() CNNGradientKernel { - return CNNGradientKernelClass.Alloc() -} - func (cc _CNNGradientKernelClass) New() CNNGradientKernel { rv := objc.Call[CNNGradientKernel](cc, objc.Sel("new")) rv.Autorelease() @@ -85,7 +85,6 @@ func (c_ CNNGradientKernel) Init() CNNGradientKernel { func (c_ CNNGradientKernel) CopyWithZoneDevice(zone unsafe.Pointer, device metal.PDevice) CNNGradientKernel { po1 := objc.WrapAsProtocol("MTLDevice", device) rv := objc.Call[CNNGradientKernel](c_, objc.Sel("copyWithZone:device:"), zone, po1) - rv.Autorelease() return rv } @@ -100,35 +99,65 @@ func CNNGradientKernel_CopyWithZoneDevice(zone unsafe.Pointer, device metal.PDev // [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, objc.Ptr(sourceGradient), objc.Ptr(sourceImage), objc.Ptr(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:"), objc.Ptr(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:"), objc.Ptr(commandBufferObject), objc.Ptr(sourceGradient), objc.Ptr(sourceImage), objc.Ptr(gradientState)) return rv } // [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/2942675-encodetocommandbuffer?language=objc +func (c_ CNNGradientKernel) EncodeToCommandBufferSourceGradientSourceImageGradientStateDestinationGradient(commandBuffer metal.PCommandBuffer, sourceGradient IImage, sourceImage IImage, gradientState IState, destinationGradient IImage) { po0 := objc.WrapAsProtocol("MTLCommandBuffer", commandBuffer) - rv := objc.Call[Image](c_, objc.Sel("encodeToCommandBuffer:sourceGradient:sourceImage:gradientState:"), po0, objc.Ptr(sourceGradient), objc.Ptr(sourceImage), objc.Ptr(gradientState)) + objc.Call[objc.Void](c_, objc.Sel("encodeToCommandBuffer:sourceGradient:sourceImage:gradientState:destinationGradient:"), po0, objc.Ptr(sourceGradient), objc.Ptr(sourceImage), objc.Ptr(gradientState), objc.Ptr(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:"), objc.Ptr(commandBufferObject), objc.Ptr(sourceGradient), objc.Ptr(sourceImage), objc.Ptr(gradientState), objc.Ptr(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:"), objc.Ptr(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 { + po0 := objc.WrapAsProtocol("MTLCommandBuffer", commandBuffer) + 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:"), objc.Ptr(commandBufferObject), objc.Ptr(sourceGradient), objc.Ptr(sourceImage), objc.Ptr(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:"), objc.Ptr(commandBufferObject), sourceGradients, sourceImages, gradientStates) return rv } diff --git a/macos/mps/cnn_group_normalization.gen.go b/macos/mps/cnn_group_normalization.gen.go index 267b35db..e2b8f5ac 100644 --- a/macos/mps/cnn_group_normalization.gen.go +++ b/macos/mps/cnn_group_normalization.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package mps @@ -22,9 +22,9 @@ type ICNNGroupNormalization interface { ReloadGammaAndBetaFromDataSource() ReloadGammaAndBetaWithCommandBufferGammaAndBetaState(commandBuffer metal.PCommandBuffer, gammaAndBetaState ICNNNormalizationGammaAndBetaState) ReloadGammaAndBetaWithCommandBufferObjectGammaAndBetaState(commandBufferObject objc.IObject, gammaAndBetaState ICNNNormalizationGammaAndBetaState) - DataSource() CNNGroupNormalizationDataSourceWrapper Epsilon() float64 SetEpsilon(value float64) + DataSource() CNNGroupNormalizationDataSourceObject } // [Full Topic] @@ -61,10 +61,6 @@ func (cc _CNNGroupNormalizationClass) Alloc() CNNGroupNormalization { return rv } -func CNNGroupNormalization_Alloc() CNNGroupNormalization { - return CNNGroupNormalizationClass.Alloc() -} - func (cc _CNNGroupNormalizationClass) New() CNNGroupNormalization { rv := objc.Call[CNNGroupNormalization](cc, objc.Sel("new")) rv.Autorelease() @@ -98,7 +94,6 @@ func NewCNNGroupNormalizationWithDevice(device metal.PDevice) CNNGroupNormalizat func (c_ CNNGroupNormalization) CopyWithZoneDevice(zone unsafe.Pointer, device metal.PDevice) CNNGroupNormalization { po1 := objc.WrapAsProtocol("MTLDevice", device) rv := objc.Call[CNNGroupNormalization](c_, objc.Sel("copyWithZone:device:"), zone, po1) - rv.Autorelease() return rv } @@ -133,14 +128,6 @@ func (c_ CNNGroupNormalization) ReloadGammaAndBetaWithCommandBufferObjectGammaAn objc.Call[objc.Void](c_, objc.Sel("reloadGammaAndBetaWithCommandBuffer:gammaAndBetaState:"), objc.Ptr(commandBufferObject), objc.Ptr(gammaAndBetaState)) } -// [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpscnngroupnormalization/3152534-datasource?language=objc -func (c_ CNNGroupNormalization) DataSource() CNNGroupNormalizationDataSourceWrapper { - rv := objc.Call[CNNGroupNormalizationDataSourceWrapper](c_, objc.Sel("dataSource")) - return rv -} - // [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpscnngroupnormalization/3152535-epsilon?language=objc @@ -155,3 +142,11 @@ func (c_ CNNGroupNormalization) Epsilon() float64 { func (c_ CNNGroupNormalization) SetEpsilon(value float64) { 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.gen.go b/macos/mps/cnn_group_normalization_data_source_protocol.gen.go similarity index 66% rename from macos/mps/cnn_group_normalization_data_source.gen.go rename to macos/mps/cnn_group_normalization_data_source_protocol.gen.go index 24ca5d78..487bd25d 100644 --- a/macos/mps/cnn_group_normalization_data_source.gen.go +++ b/macos/mps/cnn_group_normalization_data_source_protocol.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package mps @@ -15,7 +15,7 @@ import ( // [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpscnngroupnormalizationdatasource?language=objc type PCNNGroupNormalizationDataSource interface { // optional - UpdateGammaAndBetaWithCommandBufferGroupNormalizationStateBatch(commandBuffer metal.CommandBufferWrapper, groupNormalizationStateBatch *foundation.Array) ICNNNormalizationGammaAndBetaState + UpdateGammaAndBetaWithCommandBufferGroupNormalizationStateBatch(commandBuffer metal.CommandBufferObject, groupNormalizationStateBatch *foundation.Array) CNNNormalizationGammaAndBetaState HasUpdateGammaAndBetaWithCommandBufferGroupNormalizationStateBatch() bool // optional @@ -23,33 +23,37 @@ type PCNNGroupNormalizationDataSource interface { HasBeta() bool // optional - Epsilon() float64 - HasEpsilon() bool + CopyWithZoneDevice(zone unsafe.Pointer, device metal.DeviceObject) objc.Object + HasCopyWithZoneDevice() bool // optional - EncodeWithCoder(aCoder foundation.Coder) - HasEncodeWithCoder() bool + Gamma() *float64 + HasGamma() bool // optional UpdateGammaAndBetaWithGroupNormalizationStateBatch(groupNormalizationStateBatch *foundation.Array) bool HasUpdateGammaAndBetaWithGroupNormalizationStateBatch() bool // optional - InitWithCoder(aDecoder foundation.Coder) objc.IObject + InitWithCoder(aDecoder foundation.Coder) objc.Object HasInitWithCoder() bool // optional - Gamma() *float64 - HasGamma() bool - - // optional - CopyWithZoneDevice(zone unsafe.Pointer, device metal.DeviceWrapper) objc.IObject - HasCopyWithZoneDevice() bool + Epsilon() float64 + HasEpsilon() bool // optional Label() string HasLabel() bool + // optional + EncodeWithCoder(aCoder foundation.Coder) + HasEncodeWithCoder() bool + + // optional + NumberOfFeatureChannels() uint + HasNumberOfFeatureChannels() bool + // optional SetNumberOfGroups(value uint) HasSetNumberOfGroups() bool @@ -57,158 +61,156 @@ type PCNNGroupNormalizationDataSource interface { // optional NumberOfGroups() uint HasNumberOfGroups() bool - - // optional - NumberOfFeatureChannels() uint - HasNumberOfFeatureChannels() bool } -// A concrete type wrapper for the [PCNNGroupNormalizationDataSource] protocol. -type CNNGroupNormalizationDataSourceWrapper struct { +// ensure impl type implements protocol interface +var _ PCNNGroupNormalizationDataSource = (*CNNGroupNormalizationDataSourceObject)(nil) + +// A concrete type for the [PCNNGroupNormalizationDataSource] protocol. +type CNNGroupNormalizationDataSourceObject struct { objc.Object } -func (c_ CNNGroupNormalizationDataSourceWrapper) HasUpdateGammaAndBetaWithCommandBufferGroupNormalizationStateBatch() bool { +func (c_ CNNGroupNormalizationDataSourceObject) HasUpdateGammaAndBetaWithCommandBufferGroupNormalizationStateBatch() bool { return c_.RespondsToSelector(objc.Sel("updateGammaAndBetaWithCommandBuffer:groupNormalizationStateBatch:")) } // [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpscnngroupnormalizationdatasource/3152553-updategammaandbetawithcommandbuf?language=objc -func (c_ CNNGroupNormalizationDataSourceWrapper) UpdateGammaAndBetaWithCommandBufferGroupNormalizationStateBatch(commandBuffer metal.PCommandBuffer, groupNormalizationStateBatch *foundation.Array) CNNNormalizationGammaAndBetaState { +func (c_ CNNGroupNormalizationDataSourceObject) UpdateGammaAndBetaWithCommandBufferGroupNormalizationStateBatch(commandBuffer metal.CommandBufferObject, groupNormalizationStateBatch *foundation.Array) CNNNormalizationGammaAndBetaState { po0 := objc.WrapAsProtocol("MTLCommandBuffer", commandBuffer) rv := objc.Call[CNNNormalizationGammaAndBetaState](c_, objc.Sel("updateGammaAndBetaWithCommandBuffer:groupNormalizationStateBatch:"), po0, groupNormalizationStateBatch) return rv } -func (c_ CNNGroupNormalizationDataSourceWrapper) HasBeta() bool { +func (c_ CNNGroupNormalizationDataSourceObject) HasBeta() bool { return c_.RespondsToSelector(objc.Sel("beta")) } // [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpscnngroupnormalizationdatasource/3152543-beta?language=objc -func (c_ CNNGroupNormalizationDataSourceWrapper) Beta() *float64 { +func (c_ CNNGroupNormalizationDataSourceObject) Beta() *float64 { rv := objc.Call[*float64](c_, objc.Sel("beta")) return rv } -func (c_ CNNGroupNormalizationDataSourceWrapper) HasEpsilon() bool { - return c_.RespondsToSelector(objc.Sel("epsilon")) +func (c_ CNNGroupNormalizationDataSourceObject) HasCopyWithZoneDevice() bool { + return c_.RespondsToSelector(objc.Sel("copyWithZone:device:")) } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpscnngroupnormalizationdatasource/3152546-epsilon?language=objc -func (c_ CNNGroupNormalizationDataSourceWrapper) Epsilon() float64 { - rv := objc.Call[float64](c_, objc.Sel("epsilon")) +// [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_ CNNGroupNormalizationDataSourceWrapper) HasEncodeWithCoder() bool { - return c_.RespondsToSelector(objc.Sel("encodeWithCoder:")) +func (c_ CNNGroupNormalizationDataSourceObject) HasGamma() bool { + return c_.RespondsToSelector(objc.Sel("gamma")) } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpscnngroupnormalizationdatasource/3152545-encodewithcoder?language=objc -func (c_ CNNGroupNormalizationDataSourceWrapper) EncodeWithCoder(aCoder foundation.ICoder) { - objc.Call[objc.Void](c_, objc.Sel("encodeWithCoder:"), objc.Ptr(aCoder)) +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpscnngroupnormalizationdatasource/3152547-gamma?language=objc +func (c_ CNNGroupNormalizationDataSourceObject) Gamma() *float64 { + rv := objc.Call[*float64](c_, objc.Sel("gamma")) + return rv } -func (c_ CNNGroupNormalizationDataSourceWrapper) HasUpdateGammaAndBetaWithGroupNormalizationStateBatch() bool { +func (c_ CNNGroupNormalizationDataSourceObject) HasUpdateGammaAndBetaWithGroupNormalizationStateBatch() bool { return c_.RespondsToSelector(objc.Sel("updateGammaAndBetaWithGroupNormalizationStateBatch:")) } // [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpscnngroupnormalizationdatasource/3152554-updategammaandbetawithgroupnorma?language=objc -func (c_ CNNGroupNormalizationDataSourceWrapper) UpdateGammaAndBetaWithGroupNormalizationStateBatch(groupNormalizationStateBatch *foundation.Array) bool { +func (c_ CNNGroupNormalizationDataSourceObject) UpdateGammaAndBetaWithGroupNormalizationStateBatch(groupNormalizationStateBatch *foundation.Array) bool { rv := objc.Call[bool](c_, objc.Sel("updateGammaAndBetaWithGroupNormalizationStateBatch:"), groupNormalizationStateBatch) return rv } -func (c_ CNNGroupNormalizationDataSourceWrapper) HasInitWithCoder() bool { +func (c_ CNNGroupNormalizationDataSourceObject) HasInitWithCoder() bool { return c_.RespondsToSelector(objc.Sel("initWithCoder:")) } // [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpscnngroupnormalizationdatasource/3152548-initwithcoder?language=objc -func (c_ CNNGroupNormalizationDataSourceWrapper) InitWithCoder(aDecoder foundation.ICoder) objc.Object { +func (c_ CNNGroupNormalizationDataSourceObject) InitWithCoder(aDecoder foundation.Coder) objc.Object { rv := objc.Call[objc.Object](c_, objc.Sel("initWithCoder:"), objc.Ptr(aDecoder)) return rv } -func (c_ CNNGroupNormalizationDataSourceWrapper) HasGamma() bool { - return c_.RespondsToSelector(objc.Sel("gamma")) +func (c_ CNNGroupNormalizationDataSourceObject) HasEpsilon() bool { + return c_.RespondsToSelector(objc.Sel("epsilon")) } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpscnngroupnormalizationdatasource/3152547-gamma?language=objc -func (c_ CNNGroupNormalizationDataSourceWrapper) Gamma() *float64 { - rv := objc.Call[*float64](c_, objc.Sel("gamma")) +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpscnngroupnormalizationdatasource/3152546-epsilon?language=objc +func (c_ CNNGroupNormalizationDataSourceObject) Epsilon() float64 { + rv := objc.Call[float64](c_, objc.Sel("epsilon")) return rv } -func (c_ CNNGroupNormalizationDataSourceWrapper) HasCopyWithZoneDevice() bool { - return c_.RespondsToSelector(objc.Sel("copyWithZone:device:")) +func (c_ CNNGroupNormalizationDataSourceObject) HasLabel() bool { + return c_.RespondsToSelector(objc.Sel("label")) } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpscnngroupnormalizationdatasource/3152544-copywithzone?language=objc -func (c_ CNNGroupNormalizationDataSourceWrapper) CopyWithZoneDevice(zone unsafe.Pointer, device metal.PDevice) objc.Object { - po1 := objc.WrapAsProtocol("MTLDevice", device) - rv := objc.Call[objc.Object](c_, objc.Sel("copyWithZone:device:"), zone, po1) - rv.Autorelease() +// [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 } -func (c_ CNNGroupNormalizationDataSourceWrapper) HasLabel() bool { - return c_.RespondsToSelector(objc.Sel("label")) +func (c_ CNNGroupNormalizationDataSourceObject) HasEncodeWithCoder() bool { + return c_.RespondsToSelector(objc.Sel("encodeWithCoder:")) } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpscnngroupnormalizationdatasource/3152549-label?language=objc -func (c_ CNNGroupNormalizationDataSourceWrapper) Label() string { - rv := objc.Call[string](c_, objc.Sel("label")) - 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:"), objc.Ptr(aCoder)) } -func (c_ CNNGroupNormalizationDataSourceWrapper) HasSetNumberOfGroups() bool { - return c_.RespondsToSelector(objc.Sel("setNumberOfGroups:")) +func (c_ CNNGroupNormalizationDataSourceObject) HasNumberOfFeatureChannels() bool { + return c_.RespondsToSelector(objc.Sel("numberOfFeatureChannels")) } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpscnngroupnormalizationdatasource/3152551-numberofgroups?language=objc -func (c_ CNNGroupNormalizationDataSourceWrapper) SetNumberOfGroups(value uint) { - objc.Call[objc.Void](c_, objc.Sel("setNumberOfGroups:"), value) +// [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 } -func (c_ CNNGroupNormalizationDataSourceWrapper) HasNumberOfGroups() bool { - return c_.RespondsToSelector(objc.Sel("numberOfGroups")) +func (c_ CNNGroupNormalizationDataSourceObject) HasSetNumberOfGroups() bool { + return c_.RespondsToSelector(objc.Sel("setNumberOfGroups:")) } // [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpscnngroupnormalizationdatasource/3152551-numberofgroups?language=objc -func (c_ CNNGroupNormalizationDataSourceWrapper) NumberOfGroups() uint { - rv := objc.Call[uint](c_, objc.Sel("numberOfGroups")) - return rv +func (c_ CNNGroupNormalizationDataSourceObject) SetNumberOfGroups(value uint) { + objc.Call[objc.Void](c_, objc.Sel("setNumberOfGroups:"), value) } -func (c_ CNNGroupNormalizationDataSourceWrapper) HasNumberOfFeatureChannels() bool { - return c_.RespondsToSelector(objc.Sel("numberOfFeatureChannels")) +func (c_ CNNGroupNormalizationDataSourceObject) HasNumberOfGroups() bool { + return c_.RespondsToSelector(objc.Sel("numberOfGroups")) } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpscnngroupnormalizationdatasource/3152550-numberoffeaturechannels?language=objc -func (c_ CNNGroupNormalizationDataSourceWrapper) NumberOfFeatureChannels() uint { - rv := objc.Call[uint](c_, objc.Sel("numberOfFeatureChannels")) +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpscnngroupnormalizationdatasource/3152551-numberofgroups?language=objc +func (c_ CNNGroupNormalizationDataSourceObject) NumberOfGroups() uint { + rv := objc.Call[uint](c_, objc.Sel("numberOfGroups")) return rv } diff --git a/macos/mps/cnn_group_normalization_gradient.gen.go b/macos/mps/cnn_group_normalization_gradient.gen.go index 91b8757f..848239f6 100644 --- a/macos/mps/cnn_group_normalization_gradient.gen.go +++ b/macos/mps/cnn_group_normalization_gradient.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package mps @@ -39,10 +39,6 @@ func (cc _CNNGroupNormalizationGradientClass) Alloc() CNNGroupNormalizationGradi return rv } -func CNNGroupNormalizationGradient_Alloc() CNNGroupNormalizationGradient { - return CNNGroupNormalizationGradientClass.Alloc() -} - func (cc _CNNGroupNormalizationGradientClass) New() CNNGroupNormalizationGradient { rv := objc.Call[CNNGroupNormalizationGradient](cc, objc.Sel("new")) rv.Autorelease() @@ -76,7 +72,6 @@ func NewCNNGroupNormalizationGradientWithDevice(device metal.PDevice) CNNGroupNo func (c_ CNNGroupNormalizationGradient) CopyWithZoneDevice(zone unsafe.Pointer, device metal.PDevice) CNNGroupNormalizationGradient { po1 := objc.WrapAsProtocol("MTLDevice", device) rv := objc.Call[CNNGroupNormalizationGradient](c_, objc.Sel("copyWithZone:device:"), zone, po1) - rv.Autorelease() return rv } diff --git a/macos/mps/cnn_group_normalization_gradient_node.gen.go b/macos/mps/cnn_group_normalization_gradient_node.gen.go index ae7834df..e4eb8d73 100644 --- a/macos/mps/cnn_group_normalization_gradient_node.gen.go +++ b/macos/mps/cnn_group_normalization_gradient_node.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package mps @@ -64,10 +64,6 @@ func (cc _CNNGroupNormalizationGradientNodeClass) Alloc() CNNGroupNormalizationG return rv } -func CNNGroupNormalizationGradientNode_Alloc() CNNGroupNormalizationGradientNode { - return CNNGroupNormalizationGradientNodeClass.Alloc() -} - func (cc _CNNGroupNormalizationGradientNodeClass) New() CNNGroupNormalizationGradientNode { rv := objc.Call[CNNGroupNormalizationGradientNode](cc, objc.Sel("new")) rv.Autorelease() diff --git a/macos/mps/cnn_group_normalization_gradient_state.gen.go b/macos/mps/cnn_group_normalization_gradient_state.gen.go index 69a17167..54aef506 100644 --- a/macos/mps/cnn_group_normalization_gradient_state.gen.go +++ b/macos/mps/cnn_group_normalization_gradient_state.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package mps @@ -19,11 +19,11 @@ type _CNNGroupNormalizationGradientStateClass struct { // An interface definition for the [CNNGroupNormalizationGradientState] class. type ICNNGroupNormalizationGradientState interface { INNGradientState + GradientForGamma() metal.BufferObject + Beta() metal.BufferObject GroupNormalization() CNNGroupNormalization - GradientForGamma() metal.BufferWrapper - Beta() metal.BufferWrapper - Gamma() metal.BufferWrapper - GradientForBeta() metal.BufferWrapper + GradientForBeta() metal.BufferObject + Gamma() metal.BufferObject } // [Full Topic] @@ -44,10 +44,6 @@ func (cc _CNNGroupNormalizationGradientStateClass) Alloc() CNNGroupNormalization return rv } -func CNNGroupNormalizationGradientState_Alloc() CNNGroupNormalizationGradientState { - return CNNGroupNormalizationGradientStateClass.Alloc() -} - func (cc _CNNGroupNormalizationGradientStateClass) New() CNNGroupNormalizationGradientState { rv := objc.Call[CNNGroupNormalizationGradientState](cc, objc.Sel("new")) rv.Autorelease() @@ -63,16 +59,45 @@ func (c_ CNNGroupNormalizationGradientState) Init() CNNGroupNormalizationGradien return rv } -func (c_ CNNGroupNormalizationGradientState) InitWithResources(resources []metal.PResource) CNNGroupNormalizationGradientState { - rv := objc.Call[CNNGroupNormalizationGradientState](c_, objc.Sel("initWithResources:"), resources) +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, objc.Ptr(resourceList)) 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/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, objc.Ptr(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) + 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) instance.Autorelease() return instance } @@ -92,70 +117,110 @@ func NewCNNGroupNormalizationGradientStateWithDeviceBufferSize(device metal.PDev 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 } -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, objc.Ptr(resourceList)) +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/2947915-temporarystatewithcommandbuffer?language=objc -func CNNGroupNormalizationGradientState_TemporaryStateWithCommandBufferResourceList(commandBuffer metal.PCommandBuffer, resourceList IStateResourceList) CNNGroupNormalizationGradientState { - return CNNGroupNormalizationGradientStateClass.TemporaryStateWithCommandBufferResourceList(commandBuffer, resourceList) +// [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) + return rv } // [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/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, objc.Ptr(descriptor)) + return rv +} + +// [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, objc.Ptr(resourceList)) 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 -func (c_ CNNGroupNormalizationGradientState) GradientForGamma() metal.BufferWrapper { - rv := objc.Call[metal.BufferWrapper](c_, objc.Sel("gradientForGamma")) +func (c_ CNNGroupNormalizationGradientState) GradientForGamma() metal.BufferObject { + rv := objc.Call[metal.BufferObject](c_, objc.Sel("gradientForGamma")) return rv } // [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpscnngroupnormalizationgradientstate/3152557-beta?language=objc -func (c_ CNNGroupNormalizationGradientState) Beta() metal.BufferWrapper { - rv := objc.Call[metal.BufferWrapper](c_, objc.Sel("beta")) +func (c_ CNNGroupNormalizationGradientState) Beta() metal.BufferObject { + rv := objc.Call[metal.BufferObject](c_, objc.Sel("beta")) return rv } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpscnngroupnormalizationgradientstate/3152558-gamma?language=objc -func (c_ CNNGroupNormalizationGradientState) Gamma() metal.BufferWrapper { - rv := objc.Call[metal.BufferWrapper](c_, objc.Sel("gamma")) +// [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/mpscnngroupnormalizationgradientstate/3152559-gradientforbeta?language=objc -func (c_ CNNGroupNormalizationGradientState) GradientForBeta() metal.BufferWrapper { - rv := objc.Call[metal.BufferWrapper](c_, objc.Sel("gradientForBeta")) +func (c_ CNNGroupNormalizationGradientState) GradientForBeta() metal.BufferObject { + 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 de105e6e..53e6e67f 100644 --- a/macos/mps/cnn_group_normalization_node.gen.go +++ b/macos/mps/cnn_group_normalization_node.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package mps @@ -35,32 +35,32 @@ func CNNGroupNormalizationNodeFrom(ptr unsafe.Pointer) CNNGroupNormalizationNode } } -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:"), objc.Ptr(source), po1) + rv := objc.Call[CNNGroupNormalizationNode](c_, objc.Sel("initWithSource:dataSource:"), objc.Ptr(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 (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:"), objc.Ptr(source), po1) + rv := objc.Call[CNNGroupNormalizationNode](cc, objc.Sel("nodeWithSource:dataSource:"), objc.Ptr(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) Alloc() CNNGroupNormalizationNode { @@ -68,10 +68,6 @@ func (cc _CNNGroupNormalizationNodeClass) Alloc() CNNGroupNormalizationNode { return rv } -func CNNGroupNormalizationNode_Alloc() CNNGroupNormalizationNode { - return CNNGroupNormalizationNodeClass.Alloc() -} - func (cc _CNNGroupNormalizationNodeClass) New() CNNGroupNormalizationNode { rv := objc.Call[CNNGroupNormalizationNode](cc, objc.Sel("new")) rv.Autorelease() diff --git a/macos/mps/cnn_instance_normalization.gen.go b/macos/mps/cnn_instance_normalization.gen.go index 8155197e..bbbee900 100644 --- a/macos/mps/cnn_instance_normalization.gen.go +++ b/macos/mps/cnn_instance_normalization.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package mps @@ -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) - DataSource() CNNInstanceNormalizationDataSourceWrapper + ReloadGammaAndBetaFromDataSource() Epsilon() float64 SetEpsilon(value float64) + DataSource() CNNInstanceNormalizationDataSourceObject } // An instance normalization kernel. [Full Topic] @@ -61,10 +61,6 @@ func (cc _CNNInstanceNormalizationClass) Alloc() CNNInstanceNormalization { return rv } -func CNNInstanceNormalization_Alloc() CNNInstanceNormalization { - return CNNInstanceNormalizationClass.Alloc() -} - func (cc _CNNInstanceNormalizationClass) New() CNNInstanceNormalization { rv := objc.Call[CNNInstanceNormalization](cc, objc.Sel("new")) rv.Autorelease() @@ -98,7 +94,6 @@ func NewCNNInstanceNormalizationWithDevice(device metal.PDevice) CNNInstanceNorm func (c_ CNNInstanceNormalization) CopyWithZoneDevice(zone unsafe.Pointer, device metal.PDevice) CNNInstanceNormalization { po1 := objc.WrapAsProtocol("MTLDevice", device) rv := objc.Call[CNNInstanceNormalization](c_, objc.Sel("copyWithZone:device:"), zone, po1) - rv.Autorelease() return rv } @@ -111,13 +106,6 @@ 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 @@ -135,10 +123,9 @@ func (c_ CNNInstanceNormalization) ReloadGammaAndBetaWithCommandBufferObjectGamm // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpscnninstancenormalization/2953927-datasource?language=objc -func (c_ CNNInstanceNormalization) DataSource() CNNInstanceNormalizationDataSourceWrapper { - rv := objc.Call[CNNInstanceNormalizationDataSourceWrapper](c_, objc.Sel("dataSource")) - return rv +// [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] @@ -155,3 +142,11 @@ func (c_ CNNInstanceNormalization) Epsilon() float64 { func (c_ CNNInstanceNormalization) SetEpsilon(value float64) { 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.gen.go b/macos/mps/cnn_instance_normalization_data_source_protocol.gen.go similarity index 66% rename from macos/mps/cnn_instance_normalization_data_source.gen.go rename to macos/mps/cnn_instance_normalization_data_source_protocol.gen.go index 2d553af1..c52b3824 100644 --- a/macos/mps/cnn_instance_normalization_data_source.gen.go +++ b/macos/mps/cnn_instance_normalization_data_source_protocol.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package mps @@ -15,200 +15,202 @@ import ( // [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpscnninstancenormalizationdatasource?language=objc type PCNNInstanceNormalizationDataSource interface { // optional - UpdateGammaAndBetaWithCommandBufferInstanceNormalizationStateBatch(commandBuffer metal.CommandBufferWrapper, instanceNormalizationStateBatch *foundation.Array) ICNNNormalizationGammaAndBetaState - HasUpdateGammaAndBetaWithCommandBufferInstanceNormalizationStateBatch() bool + InitWithCoder(aDecoder foundation.Coder) objc.Object + HasInitWithCoder() bool // optional - Beta() *float64 - HasBeta() bool + UpdateGammaAndBetaWithInstanceNormalizationStateBatch(instanceNormalizationStateBatch *foundation.Array) bool + HasUpdateGammaAndBetaWithInstanceNormalizationStateBatch() bool // optional - Epsilon() float64 - HasEpsilon() bool + Gamma() *float64 + HasGamma() bool // optional EncodeWithCoder(aCoder foundation.Coder) HasEncodeWithCoder() bool // optional - UpdateGammaAndBetaWithInstanceNormalizationStateBatch(instanceNormalizationStateBatch *foundation.Array) bool - HasUpdateGammaAndBetaWithInstanceNormalizationStateBatch() bool + Epsilon() float64 + HasEpsilon() bool // optional - InitWithCoder(aDecoder foundation.Coder) objc.IObject - HasInitWithCoder() bool + Purge() + HasPurge() bool // optional - Gamma() *float64 - HasGamma() bool + Label() string + HasLabel() bool // optional - Purge() - HasPurge() bool + Beta() *float64 + HasBeta() bool // optional - CopyWithZoneDevice(zone unsafe.Pointer, device metal.DeviceWrapper) objc.IObject + CopyWithZoneDevice(zone unsafe.Pointer, device metal.DeviceObject) objc.Object HasCopyWithZoneDevice() bool // optional - Load() bool - HasLoad() bool + UpdateGammaAndBetaWithCommandBufferInstanceNormalizationStateBatch(commandBuffer metal.CommandBufferObject, instanceNormalizationStateBatch *foundation.Array) CNNNormalizationGammaAndBetaState + HasUpdateGammaAndBetaWithCommandBufferInstanceNormalizationStateBatch() bool // optional - Label() string - HasLabel() bool + Load() bool + HasLoad() bool // optional NumberOfFeatureChannels() uint HasNumberOfFeatureChannels() bool } -// A concrete type wrapper for the [PCNNInstanceNormalizationDataSource] protocol. -type CNNInstanceNormalizationDataSourceWrapper struct { +// ensure impl type implements protocol interface +var _ PCNNInstanceNormalizationDataSource = (*CNNInstanceNormalizationDataSourceObject)(nil) + +// A concrete type for the [PCNNInstanceNormalizationDataSource] protocol. +type CNNInstanceNormalizationDataSourceObject struct { objc.Object } -func (c_ CNNInstanceNormalizationDataSourceWrapper) HasUpdateGammaAndBetaWithCommandBufferInstanceNormalizationStateBatch() bool { - return c_.RespondsToSelector(objc.Sel("updateGammaAndBetaWithCommandBuffer:instanceNormalizationStateBatch:")) +func (c_ CNNInstanceNormalizationDataSourceObject) HasInitWithCoder() bool { + return c_.RespondsToSelector(objc.Sel("initWithCoder:")) } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpscnninstancenormalizationdatasource/2953926-updategammaandbetawithcommandbuf?language=objc -func (c_ CNNInstanceNormalizationDataSourceWrapper) UpdateGammaAndBetaWithCommandBufferInstanceNormalizationStateBatch(commandBuffer metal.PCommandBuffer, 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/2947957-initwithcoder?language=objc +func (c_ CNNInstanceNormalizationDataSourceObject) InitWithCoder(aDecoder foundation.Coder) objc.Object { + rv := objc.Call[objc.Object](c_, objc.Sel("initWithCoder:"), objc.Ptr(aDecoder)) return rv } -func (c_ CNNInstanceNormalizationDataSourceWrapper) HasBeta() bool { - return c_.RespondsToSelector(objc.Sel("beta")) +func (c_ CNNInstanceNormalizationDataSourceObject) HasUpdateGammaAndBetaWithInstanceNormalizationStateBatch() bool { + return c_.RespondsToSelector(objc.Sel("updateGammaAndBetaWithInstanceNormalizationStateBatch:")) } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpscnninstancenormalizationdatasource/2953922-beta?language=objc -func (c_ CNNInstanceNormalizationDataSourceWrapper) Beta() *float64 { - rv := objc.Call[*float64](c_, objc.Sel("beta")) +// [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_ CNNInstanceNormalizationDataSourceWrapper) HasEpsilon() bool { - return c_.RespondsToSelector(objc.Sel("epsilon")) +func (c_ CNNInstanceNormalizationDataSourceObject) HasGamma() bool { + return c_.RespondsToSelector(objc.Sel("gamma")) } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpscnninstancenormalizationdatasource/2953925-epsilon?language=objc -func (c_ CNNInstanceNormalizationDataSourceWrapper) Epsilon() float64 { - rv := objc.Call[float64](c_, objc.Sel("epsilon")) +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpscnninstancenormalizationdatasource/2953923-gamma?language=objc +func (c_ CNNInstanceNormalizationDataSourceObject) Gamma() *float64 { + rv := objc.Call[*float64](c_, objc.Sel("gamma")) return rv } -func (c_ CNNInstanceNormalizationDataSourceWrapper) HasEncodeWithCoder() bool { +func (c_ CNNInstanceNormalizationDataSourceObject) HasEncodeWithCoder() bool { return c_.RespondsToSelector(objc.Sel("encodeWithCoder:")) } // [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpscnninstancenormalizationdatasource/2947953-encodewithcoder?language=objc -func (c_ CNNInstanceNormalizationDataSourceWrapper) EncodeWithCoder(aCoder foundation.ICoder) { +func (c_ CNNInstanceNormalizationDataSourceObject) EncodeWithCoder(aCoder foundation.Coder) { objc.Call[objc.Void](c_, objc.Sel("encodeWithCoder:"), objc.Ptr(aCoder)) } -func (c_ CNNInstanceNormalizationDataSourceWrapper) HasUpdateGammaAndBetaWithInstanceNormalizationStateBatch() bool { - return c_.RespondsToSelector(objc.Sel("updateGammaAndBetaWithInstanceNormalizationStateBatch:")) +func (c_ CNNInstanceNormalizationDataSourceObject) HasEpsilon() bool { + return c_.RespondsToSelector(objc.Sel("epsilon")) } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpscnninstancenormalizationdatasource/2953931-updategammaandbetawithinstanceno?language=objc -func (c_ CNNInstanceNormalizationDataSourceWrapper) UpdateGammaAndBetaWithInstanceNormalizationStateBatch(instanceNormalizationStateBatch *foundation.Array) bool { - rv := objc.Call[bool](c_, objc.Sel("updateGammaAndBetaWithInstanceNormalizationStateBatch:"), instanceNormalizationStateBatch) +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpscnninstancenormalizationdatasource/2953925-epsilon?language=objc +func (c_ CNNInstanceNormalizationDataSourceObject) Epsilon() float64 { + rv := objc.Call[float64](c_, objc.Sel("epsilon")) return rv } -func (c_ CNNInstanceNormalizationDataSourceWrapper) HasInitWithCoder() bool { - return c_.RespondsToSelector(objc.Sel("initWithCoder:")) +func (c_ CNNInstanceNormalizationDataSourceObject) HasPurge() bool { + return c_.RespondsToSelector(objc.Sel("purge")) } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpscnninstancenormalizationdatasource/2947957-initwithcoder?language=objc -func (c_ CNNInstanceNormalizationDataSourceWrapper) InitWithCoder(aDecoder foundation.ICoder) objc.Object { - rv := objc.Call[objc.Object](c_, objc.Sel("initWithCoder:"), objc.Ptr(aDecoder)) - 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_ CNNInstanceNormalizationDataSourceWrapper) HasGamma() bool { - return c_.RespondsToSelector(objc.Sel("gamma")) +func (c_ CNNInstanceNormalizationDataSourceObject) HasLabel() bool { + return c_.RespondsToSelector(objc.Sel("label")) } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpscnninstancenormalizationdatasource/2953923-gamma?language=objc -func (c_ CNNInstanceNormalizationDataSourceWrapper) Gamma() *float64 { - rv := objc.Call[*float64](c_, objc.Sel("gamma")) +// [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 } -func (c_ CNNInstanceNormalizationDataSourceWrapper) HasPurge() bool { - return c_.RespondsToSelector(objc.Sel("purge")) +func (c_ CNNInstanceNormalizationDataSourceObject) HasBeta() bool { + return c_.RespondsToSelector(objc.Sel("beta")) } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpscnninstancenormalizationdatasource/3088879-purge?language=objc -func (c_ CNNInstanceNormalizationDataSourceWrapper) Purge() { - objc.Call[objc.Void](c_, objc.Sel("purge")) +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpscnninstancenormalizationdatasource/2953922-beta?language=objc +func (c_ CNNInstanceNormalizationDataSourceObject) Beta() *float64 { + rv := objc.Call[*float64](c_, objc.Sel("beta")) + return rv } -func (c_ CNNInstanceNormalizationDataSourceWrapper) HasCopyWithZoneDevice() bool { +func (c_ CNNInstanceNormalizationDataSourceObject) HasCopyWithZoneDevice() bool { return c_.RespondsToSelector(objc.Sel("copyWithZone:device:")) } // [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpscnninstancenormalizationdatasource/3013780-copywithzone?language=objc -func (c_ CNNInstanceNormalizationDataSourceWrapper) CopyWithZoneDevice(zone unsafe.Pointer, device metal.PDevice) objc.Object { +func (c_ CNNInstanceNormalizationDataSourceObject) 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) - rv.Autorelease() return rv } -func (c_ CNNInstanceNormalizationDataSourceWrapper) HasLoad() bool { - return c_.RespondsToSelector(objc.Sel("load")) +func (c_ CNNInstanceNormalizationDataSourceObject) HasUpdateGammaAndBetaWithCommandBufferInstanceNormalizationStateBatch() bool { + return c_.RespondsToSelector(objc.Sel("updateGammaAndBetaWithCommandBuffer:instanceNormalizationStateBatch:")) } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpscnninstancenormalizationdatasource/3088878-load?language=objc -func (c_ CNNInstanceNormalizationDataSourceWrapper) Load() bool { - rv := objc.Call[bool](c_, objc.Sel("load")) +// [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_ CNNInstanceNormalizationDataSourceWrapper) HasLabel() bool { - return c_.RespondsToSelector(objc.Sel("label")) +func (c_ CNNInstanceNormalizationDataSourceObject) HasLoad() bool { + return c_.RespondsToSelector(objc.Sel("load")) } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpscnninstancenormalizationdatasource/2952998-label?language=objc -func (c_ CNNInstanceNormalizationDataSourceWrapper) Label() string { - rv := objc.Call[string](c_, objc.Sel("label")) +// [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_ CNNInstanceNormalizationDataSourceWrapper) HasNumberOfFeatureChannels() bool { +func (c_ CNNInstanceNormalizationDataSourceObject) HasNumberOfFeatureChannels() bool { return c_.RespondsToSelector(objc.Sel("numberOfFeatureChannels")) } // [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpscnninstancenormalizationdatasource/2947961-numberoffeaturechannels?language=objc -func (c_ CNNInstanceNormalizationDataSourceWrapper) NumberOfFeatureChannels() uint { +func (c_ CNNInstanceNormalizationDataSourceObject) NumberOfFeatureChannels() uint { rv := objc.Call[uint](c_, objc.Sel("numberOfFeatureChannels")) return rv } diff --git a/macos/mps/cnn_instance_normalization_gradient.gen.go b/macos/mps/cnn_instance_normalization_gradient.gen.go index 6f99091d..f3b9ff2f 100644 --- a/macos/mps/cnn_instance_normalization_gradient.gen.go +++ b/macos/mps/cnn_instance_normalization_gradient.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package mps @@ -39,10 +39,6 @@ func (cc _CNNInstanceNormalizationGradientClass) Alloc() CNNInstanceNormalizatio return rv } -func CNNInstanceNormalizationGradient_Alloc() CNNInstanceNormalizationGradient { - return CNNInstanceNormalizationGradientClass.Alloc() -} - func (cc _CNNInstanceNormalizationGradientClass) New() CNNInstanceNormalizationGradient { rv := objc.Call[CNNInstanceNormalizationGradient](cc, objc.Sel("new")) rv.Autorelease() @@ -76,7 +72,6 @@ func NewCNNInstanceNormalizationGradientWithDevice(device metal.PDevice) CNNInst func (c_ CNNInstanceNormalizationGradient) CopyWithZoneDevice(zone unsafe.Pointer, device metal.PDevice) CNNInstanceNormalizationGradient { po1 := objc.WrapAsProtocol("MTLDevice", device) rv := objc.Call[CNNInstanceNormalizationGradient](c_, objc.Sel("copyWithZone:device:"), zone, po1) - rv.Autorelease() return rv } diff --git a/macos/mps/cnn_instance_normalization_gradient_node.gen.go b/macos/mps/cnn_instance_normalization_gradient_node.gen.go index 523a825e..f284ab19 100644 --- a/macos/mps/cnn_instance_normalization_gradient_node.gen.go +++ b/macos/mps/cnn_instance_normalization_gradient_node.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package mps @@ -64,10 +64,6 @@ func (cc _CNNInstanceNormalizationGradientNodeClass) Alloc() CNNInstanceNormaliz return rv } -func CNNInstanceNormalizationGradientNode_Alloc() CNNInstanceNormalizationGradientNode { - return CNNInstanceNormalizationGradientNodeClass.Alloc() -} - func (cc _CNNInstanceNormalizationGradientNodeClass) New() CNNInstanceNormalizationGradientNode { rv := objc.Call[CNNInstanceNormalizationGradientNode](cc, objc.Sel("new")) rv.Autorelease() diff --git a/macos/mps/cnn_instance_normalization_gradient_state.gen.go b/macos/mps/cnn_instance_normalization_gradient_state.gen.go index db68d43c..7bdc1d91 100644 --- a/macos/mps/cnn_instance_normalization_gradient_state.gen.go +++ b/macos/mps/cnn_instance_normalization_gradient_state.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package mps @@ -19,11 +19,11 @@ type _CNNInstanceNormalizationGradientStateClass struct { // An interface definition for the [CNNInstanceNormalizationGradientState] class. type ICNNInstanceNormalizationGradientState interface { INNGradientState + Beta() metal.BufferObject InstanceNormalization() CNNInstanceNormalization - GradientForGamma() metal.BufferWrapper - Beta() metal.BufferWrapper - Gamma() metal.BufferWrapper - GradientForBeta() metal.BufferWrapper + GradientForBeta() metal.BufferObject + Gamma() metal.BufferObject + GradientForGamma() metal.BufferObject } // An object that stores information required to execute a gradient pass for instance normalization. [Full Topic] @@ -44,10 +44,6 @@ func (cc _CNNInstanceNormalizationGradientStateClass) Alloc() CNNInstanceNormali return rv } -func CNNInstanceNormalizationGradientState_Alloc() CNNInstanceNormalizationGradientState { - return CNNInstanceNormalizationGradientStateClass.Alloc() -} - func (cc _CNNInstanceNormalizationGradientStateClass) New() CNNInstanceNormalizationGradientState { rv := objc.Call[CNNInstanceNormalizationGradientState](cc, objc.Sel("new")) rv.Autorelease() @@ -63,16 +59,45 @@ func (c_ CNNInstanceNormalizationGradientState) Init() CNNInstanceNormalizationG return rv } -func (c_ CNNInstanceNormalizationGradientState) InitWithResources(resources []metal.PResource) CNNInstanceNormalizationGradientState { - rv := objc.Call[CNNInstanceNormalizationGradientState](c_, objc.Sel("initWithResources:"), resources) +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, objc.Ptr(resourceList)) 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/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, objc.Ptr(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) + 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) instance.Autorelease() return instance } @@ -92,70 +117,110 @@ func NewCNNInstanceNormalizationGradientStateWithDeviceBufferSize(device metal.P 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 } -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, objc.Ptr(resourceList)) +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) 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) +// [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] // -// [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")) +// [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, objc.Ptr(descriptor)) return rv } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpscnninstancenormalizationgradientstate/2953928-gradientforgamma?language=objc -func (c_ CNNInstanceNormalizationGradientState) GradientForGamma() metal.BufferWrapper { - rv := objc.Call[metal.BufferWrapper](c_, objc.Sel("gradientForGamma")) +// [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, objc.Ptr(resourceList)) 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 -func (c_ CNNInstanceNormalizationGradientState) Beta() metal.BufferWrapper { - rv := objc.Call[metal.BufferWrapper](c_, objc.Sel("beta")) +func (c_ CNNInstanceNormalizationGradientState) Beta() metal.BufferObject { + rv := objc.Call[metal.BufferObject](c_, objc.Sel("beta")) return rv } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpscnninstancenormalizationgradientstate/2956161-gamma?language=objc -func (c_ CNNInstanceNormalizationGradientState) Gamma() metal.BufferWrapper { - rv := objc.Call[metal.BufferWrapper](c_, objc.Sel("gamma")) +// [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.BufferWrapper { - rv := objc.Call[metal.BufferWrapper](c_, objc.Sel("gradientForBeta")) +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 +func (c_ CNNInstanceNormalizationGradientState) Gamma() metal.BufferObject { + rv := objc.Call[metal.BufferObject](c_, objc.Sel("gamma")) + return rv +} + +// [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")) return rv } diff --git a/macos/mps/cnn_instance_normalization_node.gen.go b/macos/mps/cnn_instance_normalization_node.gen.go index ff971540..f98a1cb1 100644 --- a/macos/mps/cnn_instance_normalization_node.gen.go +++ b/macos/mps/cnn_instance_normalization_node.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package mps @@ -68,10 +68,6 @@ func (cc _CNNInstanceNormalizationNodeClass) Alloc() CNNInstanceNormalizationNod return rv } -func CNNInstanceNormalizationNode_Alloc() CNNInstanceNormalizationNode { - return CNNInstanceNormalizationNodeClass.Alloc() -} - func (cc _CNNInstanceNormalizationNodeClass) New() CNNInstanceNormalizationNode { rv := objc.Call[CNNInstanceNormalizationNode](cc, objc.Sel("new")) rv.Autorelease() diff --git a/macos/mps/cnn_kernel.gen.go b/macos/mps/cnn_kernel.gen.go index 1fb7b55b..1ac5dcc6 100644 --- a/macos/mps/cnn_kernel.gen.go +++ b/macos/mps/cnn_kernel.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package mps @@ -20,47 +20,59 @@ type _CNNKernelClass struct { // An interface definition for the [CNNKernel] class. type ICNNKernel interface { IKernel - BatchEncodingStorageSizeForSourceImageSourceStatesDestinationImage(sourceImage *foundation.Array, sourceStates []*foundation.Array, destinationImage *foundation.Array) uint + EncodeToCommandBufferSourceImageDestinationImage(commandBuffer metal.PCommandBuffer, sourceImage IImage, destinationImage IImage) + EncodeToCommandBufferObjectSourceImageDestinationImage(commandBufferObject objc.IObject, sourceImage IImage, destinationImage IImage) TemporaryResultStateForCommandBufferSourceImageSourceStatesDestinationImage(commandBuffer metal.PCommandBuffer, sourceImage IImage, sourceStates []IState, destinationImage IImage) State TemporaryResultStateForCommandBufferObjectSourceImageSourceStatesDestinationImage(commandBufferObject objc.IObject, sourceImage IImage, sourceStates []IState, destinationImage IImage) State - AppendBatchBarrier() bool + 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 IState, isTemporary bool) Image + EncodeToCommandBufferObjectSourceImageDestinationStateDestinationStateIsTemporary(commandBufferObject objc.IObject, sourceImage IImage, outState IState, isTemporary bool) Image 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 - EncodingStorageSizeForSourceImageSourceStatesDestinationImage(sourceImage IImage, sourceStates []IState, destinationImage IImage) uint + BatchEncodingStorageSizeForSourceImageSourceStatesDestinationImage(sourceImage *foundation.Array, sourceStates []*foundation.Array, destinationImage *foundation.Array) uint + ResultStateForSourceImageSourceStatesDestinationImage(sourceImage IImage, sourceStates []IState, destinationImage IImage) State + IsResultStateReusedAcrossBatch() bool EncodeBatchToCommandBufferSourceImages(commandBuffer metal.PCommandBuffer, sourceImages *foundation.Array) *foundation.Array EncodeBatchToCommandBufferObjectSourceImages(commandBufferObject objc.IObject, sourceImages *foundation.Array) *foundation.Array - ResultStateBatchForSourceImageSourceStatesDestinationImage(sourceImage *foundation.Array, sourceStates []*foundation.Array, destinationImage *foundation.Array) *foundation.Array + AppendBatchBarrier() bool + EncodingStorageSizeForSourceImageSourceStatesDestinationImage(sourceImage IImage, sourceStates []IState, destinationImage IImage) uint + EncodeBatchToCommandBufferSourceImagesDestinationStatesDestinationStateIsTemporary(commandBuffer metal.PCommandBuffer, sourceImages *foundation.Array, outStates *foundation.Array, isTemporary bool) *foundation.Array + EncodeBatchToCommandBufferObjectSourceImagesDestinationStatesDestinationStateIsTemporary(commandBufferObject objc.IObject, sourceImages *foundation.Array, outStates *foundation.Array, isTemporary bool) *foundation.Array EncodeToCommandBufferSourceImage(commandBuffer metal.PCommandBuffer, sourceImage IImage) Image EncodeToCommandBufferObjectSourceImage(commandBufferObject objc.IObject, sourceImage IImage) Image - IsResultStateReusedAcrossBatch() bool - ResultStateForSourceImageSourceStatesDestinationImage(sourceImage IImage, sourceStates []IState, destinationImage IImage) State + 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) SourceFeatureChannelMaxCount() uint SetSourceFeatureChannelMaxCount(value uint) + DilationRateY() uint + ClipRect() metal.Region + SetClipRect(value metal.Region) + DilationRateX() uint + StrideInPixelsX() uint IsStateModified() bool - Padding() NNPaddingWrapper - 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() ImageAllocatorWrapper - SetDestinationImageAllocator(value PImageAllocator) - SetDestinationImageAllocatorObject(valueObject objc.IObject) - DestinationFeatureChannelOffset() uint - SetDestinationFeatureChannelOffset(value uint) - DilationRateX() uint } // Base class for neural network layers. [Full Topic] @@ -96,10 +108,6 @@ func (cc _CNNKernelClass) Alloc() CNNKernel { return rv } -func CNNKernel_Alloc() CNNKernel { - return CNNKernelClass.Alloc() -} - func (cc _CNNKernelClass) New() CNNKernel { rv := objc.Call[CNNKernel](cc, objc.Sel("new")) rv.Autorelease() @@ -118,7 +126,6 @@ func (c_ CNNKernel) Init() CNNKernel { func (c_ CNNKernel) CopyWithZoneDevice(zone unsafe.Pointer, device metal.PDevice) CNNKernel { po1 := objc.WrapAsProtocol("MTLDevice", device) rv := objc.Call[CNNKernel](c_, objc.Sel("copyWithZone:device:"), zone, po1) - rv.Autorelease() return rv } @@ -131,12 +138,19 @@ func CNNKernel_CopyWithZoneDevice(zone unsafe.Pointer, device metal.PDevice) CNN return instance } -// [Full Topic] +// 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/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]: 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, objc.Ptr(sourceImage), objc.Ptr(destinationImage)) +} + +// 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) EncodeToCommandBufferObjectSourceImageDestinationImage(commandBufferObject objc.IObject, sourceImage IImage, destinationImage IImage) { + objc.Call[objc.Void](c_, objc.Sel("encodeToCommandBuffer:sourceImage:destinationImage:"), objc.Ptr(commandBufferObject), objc.Ptr(sourceImage), objc.Ptr(destinationImage)) } // [Full Topic] @@ -158,9 +172,63 @@ func (c_ CNNKernel) TemporaryResultStateForCommandBufferObjectSourceImageSourceS // [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")) +// [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, objc.Ptr(sourceImage), objc.Ptr(destinationState), objc.Ptr(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:"), objc.Ptr(commandBufferObject), objc.Ptr(sourceImage), objc.Ptr(destinationState), objc.Ptr(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:"), objc.Ptr(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:"), objc.Ptr(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 IState, isTemporary bool) Image { + po0 := objc.WrapAsProtocol("MTLCommandBuffer", commandBuffer) + rv := objc.Call[Image](c_, objc.Sel("encodeToCommandBuffer:sourceImage:destinationState:destinationStateIsTemporary:"), po0, objc.Ptr(sourceImage), objc.Ptr(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 IState, isTemporary bool) Image { + rv := objc.Call[Image](c_, objc.Sel("encodeToCommandBuffer:sourceImage:destinationState:destinationStateIsTemporary:"), objc.Ptr(commandBufferObject), objc.Ptr(sourceImage), objc.Ptr(outState), isTemporary) return rv } @@ -191,9 +259,25 @@ func (c_ CNNKernel) DestinationImageDescriptorForSourceImagesSourceStates(source // [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:"), objc.Ptr(sourceImage), sourceStates, objc.Ptr(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] +// +// [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:"), objc.Ptr(sourceImage), sourceStates, objc.Ptr(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")) return rv } @@ -216,9 +300,34 @@ func (c_ CNNKernel) EncodeBatchToCommandBufferObjectSourceImages(commandBufferOb // [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/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:"), objc.Ptr(sourceImage), sourceStates, objc.Ptr(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 *foundation.Array, 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 *foundation.Array, isTemporary bool) *foundation.Array { + rv := objc.Call[*foundation.Array](c_, objc.Sel("encodeBatchToCommandBuffer:sourceImages:destinationStates:destinationStateIsTemporary:"), objc.Ptr(commandBufferObject), sourceImages, outStates, isTemporary) return rv } @@ -241,216 +350,208 @@ func (c_ CNNKernel) EncodeToCommandBufferObjectSourceImage(commandBufferObject o // [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/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 } // [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:"), objc.Ptr(sourceImage), sourceStates, objc.Ptr(destinationImage)) +// [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/2951917-sourcefeaturechannelmaxcount?language=objc -func (c_ CNNKernel) SourceFeatureChannelMaxCount() uint { - rv := objc.Call[uint](c_, objc.Sel("sourceFeatureChannelMaxCount")) +// [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 } // [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/2865637-kernelwidth?language=objc +func (c_ CNNKernel) KernelWidth() uint { + rv := objc.Call[uint](c_, objc.Sel("kernelWidth")) + return rv } -// [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/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/2097550-destinationfeaturechanneloffset?language=objc +func (c_ CNNKernel) DestinationFeatureChannelOffset() uint { + rv := objc.Call[uint](c_, objc.Sel("destinationFeatureChannelOffset")) return rv } -// [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/2865657-padding?language=objc -func (c_ CNNKernel) Padding() NNPaddingWrapper { - rv := objc.Call[NNPaddingWrapper](c_, objc.Sel("padding")) - return rv +// [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/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) 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) SetPaddingObject(valueObject objc.IObject) { - objc.Call[objc.Void](c_, objc.Sel("setPadding:"), objc.Ptr(valueObject)) +// [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/2942682-sourcefeaturechanneloffset?language=objc -func (c_ CNNKernel) SourceFeatureChannelOffset() uint { - rv := objc.Call[uint](c_, objc.Sel("sourceFeatureChannelOffset")) - return rv +// [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:"), objc.Ptr(valueObject)) } // [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/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/2865644-strideinpixelsy?language=objc -func (c_ CNNKernel) StrideInPixelsY() uint { - rv := objc.Call[uint](c_, objc.Sel("strideInPixelsY")) - 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) } // [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")) +// [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 } -// 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) } -// The position of the destination image's clip rectangle origin, relative to the source image. [Full Topic] +// [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/2942669-dilationratex?language=objc +func (c_ CNNKernel) DilationRateX() uint { + rv := objc.Call[uint](c_, objc.Sel("dilationRateX")) return rv } -// The position of the destination image's clip rectangle origin, relative to the source image. [Full Topic] +// [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/2865654-strideinpixelsx?language=objc +func (c_ CNNKernel) StrideInPixelsX() uint { + rv := objc.Call[uint](c_, objc.Sel("strideInPixelsX")) + return rv } // [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/2942673-isstatemodified?language=objc +func (c_ CNNKernel) IsStateModified() bool { + rv := objc.Call[bool](c_, objc.Sel("isStateModified")) 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/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/2865648-kernelheight?language=objc -func (c_ CNNKernel) KernelHeight() uint { - rv := objc.Call[uint](c_, objc.Sel("kernelHeight")) - 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) } -// 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] // -// [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")) +// [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/2865650-destinationimageallocator?language=objc -func (c_ CNNKernel) DestinationImageAllocator() ImageAllocatorWrapper { - rv := objc.Call[ImageAllocatorWrapper](c_, objc.Sel("destinationImageAllocator")) +// [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) 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) 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) SetDestinationImageAllocatorObject(valueObject objc.IObject) { - objc.Call[objc.Void](c_, objc.Sel("setDestinationImageAllocator:"), objc.Ptr(valueObject)) +// [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:"), objc.Ptr(valueObject)) } -// The number of channels in the destination image to skip before writing output data. [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/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/1648835-offset?language=objc +func (c_ CNNKernel) Offset() Offset { + rv := objc.Call[Offset](c_, objc.Sel("offset")) return rv } -// 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/2097550-destinationfeaturechanneloffset?language=objc -func (c_ CNNKernel) SetDestinationFeatureChannelOffset(value uint) { - objc.Call[objc.Void](c_, objc.Sel("setDestinationFeatureChannelOffset:"), 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")) - 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) } diff --git a/macos/mps/cnn_local_contrast_normalization.gen.go b/macos/mps/cnn_local_contrast_normalization.gen.go index 6fcce6a3..1fd97413 100644 --- a/macos/mps/cnn_local_contrast_normalization.gen.go +++ b/macos/mps/cnn_local_contrast_normalization.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package mps @@ -19,18 +19,18 @@ type _CNNLocalContrastNormalizationClass struct { // An interface definition for the [CNNLocalContrastNormalization] class. type ICNNLocalContrastNormalization interface { ICNNKernel - Ps() float64 - SetPs(value float64) - P0() float64 - SetP0(value float64) - Beta() float64 - SetBeta(value float64) Delta() float64 SetDelta(value float64) - Pm() float64 - SetPm(value float64) Alpha() float64 SetAlpha(value float64) + Pm() float64 + SetPm(value float64) + P0() float64 + SetP0(value float64) + Ps() float64 + SetPs(value float64) + Beta() float64 + SetBeta(value float64) } // A local-contrast normalization kernel. [Full Topic] @@ -66,10 +66,6 @@ func (cc _CNNLocalContrastNormalizationClass) Alloc() CNNLocalContrastNormalizat return rv } -func CNNLocalContrastNormalization_Alloc() CNNLocalContrastNormalization { - return CNNLocalContrastNormalizationClass.Alloc() -} - func (cc _CNNLocalContrastNormalizationClass) New() CNNLocalContrastNormalization { rv := objc.Call[CNNLocalContrastNormalization](cc, objc.Sel("new")) rv.Autorelease() @@ -103,7 +99,6 @@ func NewCNNLocalContrastNormalizationWithDevice(device metal.PDevice) CNNLocalCo func (c_ CNNLocalContrastNormalization) CopyWithZoneDevice(zone unsafe.Pointer, device metal.PDevice) CNNLocalContrastNormalization { po1 := objc.WrapAsProtocol("MTLDevice", device) rv := objc.Call[CNNLocalContrastNormalization](c_, objc.Sel("copyWithZone:device:"), zone, po1) - rv.Autorelease() return rv } @@ -116,92 +111,92 @@ func CNNLocalContrastNormalization_CopyWithZoneDevice(zone unsafe.Pointer, devic return instance } -// The "ps" 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/1648942-ps?language=objc -func (c_ CNNLocalContrastNormalization) Ps() float64 { - rv := objc.Call[float64](c_, objc.Sel("ps")) +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpscnnlocalcontrastnormalization/1648812-delta?language=objc +func (c_ CNNLocalContrastNormalization) Delta() float64 { + rv := objc.Call[float64](c_, objc.Sel("delta")) return rv } -// The "ps" 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/1648942-ps?language=objc -func (c_ CNNLocalContrastNormalization) SetPs(value float64) { - objc.Call[objc.Void](c_, objc.Sel("setPs:"), value) +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpscnnlocalcontrastnormalization/1648812-delta?language=objc +func (c_ CNNLocalContrastNormalization) SetDelta(value float64) { + objc.Call[objc.Void](c_, objc.Sel("setDelta:"), value) } -// The "p0" 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/1648953-p0?language=objc -func (c_ CNNLocalContrastNormalization) P0() float64 { - rv := objc.Call[float64](c_, objc.Sel("p0")) +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpscnnlocalcontrastnormalization/1648923-alpha?language=objc +func (c_ CNNLocalContrastNormalization) Alpha() float64 { + rv := objc.Call[float64](c_, objc.Sel("alpha")) return rv } -// The "p0" 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/1648953-p0?language=objc -func (c_ CNNLocalContrastNormalization) SetP0(value float64) { - objc.Call[objc.Void](c_, objc.Sel("setP0:"), value) +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpscnnlocalcontrastnormalization/1648923-alpha?language=objc +func (c_ CNNLocalContrastNormalization) SetAlpha(value float64) { + objc.Call[objc.Void](c_, objc.Sel("setAlpha:"), value) } -// The "beta" 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/1648905-beta?language=objc -func (c_ CNNLocalContrastNormalization) Beta() float64 { - rv := objc.Call[float64](c_, objc.Sel("beta")) +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpscnnlocalcontrastnormalization/1648907-pm?language=objc +func (c_ CNNLocalContrastNormalization) Pm() float64 { + rv := objc.Call[float64](c_, objc.Sel("pm")) return rv } -// The "beta" 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/1648905-beta?language=objc -func (c_ CNNLocalContrastNormalization) SetBeta(value float64) { - objc.Call[objc.Void](c_, objc.Sel("setBeta:"), value) +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpscnnlocalcontrastnormalization/1648907-pm?language=objc +func (c_ CNNLocalContrastNormalization) SetPm(value float64) { + objc.Call[objc.Void](c_, objc.Sel("setPm:"), value) } -// The "delta" 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/1648812-delta?language=objc -func (c_ CNNLocalContrastNormalization) Delta() float64 { - rv := objc.Call[float64](c_, objc.Sel("delta")) +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpscnnlocalcontrastnormalization/1648953-p0?language=objc +func (c_ CNNLocalContrastNormalization) P0() float64 { + rv := objc.Call[float64](c_, objc.Sel("p0")) return rv } -// The "delta" 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/1648812-delta?language=objc -func (c_ CNNLocalContrastNormalization) SetDelta(value float64) { - objc.Call[objc.Void](c_, objc.Sel("setDelta:"), value) +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpscnnlocalcontrastnormalization/1648953-p0?language=objc +func (c_ CNNLocalContrastNormalization) SetP0(value float64) { + objc.Call[objc.Void](c_, objc.Sel("setP0:"), value) } -// The "pm" 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/1648907-pm?language=objc -func (c_ CNNLocalContrastNormalization) Pm() float64 { - rv := objc.Call[float64](c_, objc.Sel("pm")) +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpscnnlocalcontrastnormalization/1648942-ps?language=objc +func (c_ CNNLocalContrastNormalization) Ps() float64 { + rv := objc.Call[float64](c_, objc.Sel("ps")) return rv } -// The "pm" 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/1648907-pm?language=objc -func (c_ CNNLocalContrastNormalization) SetPm(value float64) { - objc.Call[objc.Void](c_, objc.Sel("setPm:"), value) +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpscnnlocalcontrastnormalization/1648942-ps?language=objc +func (c_ CNNLocalContrastNormalization) SetPs(value float64) { + objc.Call[objc.Void](c_, objc.Sel("setPs:"), value) } -// The "alpha" 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/1648923-alpha?language=objc -func (c_ CNNLocalContrastNormalization) Alpha() float64 { - rv := objc.Call[float64](c_, objc.Sel("alpha")) +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpscnnlocalcontrastnormalization/1648905-beta?language=objc +func (c_ CNNLocalContrastNormalization) Beta() float64 { + rv := objc.Call[float64](c_, objc.Sel("beta")) return rv } -// The "alpha" 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/1648923-alpha?language=objc -func (c_ CNNLocalContrastNormalization) SetAlpha(value float64) { - objc.Call[objc.Void](c_, objc.Sel("setAlpha:"), value) +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpscnnlocalcontrastnormalization/1648905-beta?language=objc +func (c_ CNNLocalContrastNormalization) SetBeta(value float64) { + objc.Call[objc.Void](c_, objc.Sel("setBeta:"), value) } diff --git a/macos/mps/cnn_local_contrast_normalization_gradient.gen.go b/macos/mps/cnn_local_contrast_normalization_gradient.gen.go index 69be2949..d4b6b336 100644 --- a/macos/mps/cnn_local_contrast_normalization_gradient.gen.go +++ b/macos/mps/cnn_local_contrast_normalization_gradient.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package mps @@ -19,18 +19,18 @@ type _CNNLocalContrastNormalizationGradientClass struct { // An interface definition for the [CNNLocalContrastNormalizationGradient] class. type ICNNLocalContrastNormalizationGradient interface { ICNNGradientKernel - Ps() float64 - SetPs(value float64) + Pm() float64 + SetPm(value float64) P0() float64 SetP0(value float64) + Alpha() float64 + SetAlpha(value float64) Beta() float64 SetBeta(value float64) + Ps() float64 + SetPs(value float64) Delta() float64 SetDelta(value float64) - Pm() float64 - SetPm(value float64) - Alpha() float64 - SetAlpha(value float64) } // A gradient local-contrast normalization kernel. [Full Topic] @@ -66,10 +66,6 @@ func (cc _CNNLocalContrastNormalizationGradientClass) Alloc() CNNLocalContrastNo return rv } -func CNNLocalContrastNormalizationGradient_Alloc() CNNLocalContrastNormalizationGradient { - return CNNLocalContrastNormalizationGradientClass.Alloc() -} - func (cc _CNNLocalContrastNormalizationGradientClass) New() CNNLocalContrastNormalizationGradient { rv := objc.Call[CNNLocalContrastNormalizationGradient](cc, objc.Sel("new")) rv.Autorelease() @@ -103,7 +99,6 @@ func NewCNNLocalContrastNormalizationGradientWithDevice(device metal.PDevice) CN func (c_ CNNLocalContrastNormalizationGradient) CopyWithZoneDevice(zone unsafe.Pointer, device metal.PDevice) CNNLocalContrastNormalizationGradient { po1 := objc.WrapAsProtocol("MTLDevice", device) rv := objc.Call[CNNLocalContrastNormalizationGradient](c_, objc.Sel("copyWithZone:device:"), zone, po1) - rv.Autorelease() return rv } @@ -118,17 +113,17 @@ func CNNLocalContrastNormalizationGradient_CopyWithZoneDevice(zone unsafe.Pointe // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpscnnlocalcontrastnormalizationgradient/2942466-ps?language=objc -func (c_ CNNLocalContrastNormalizationGradient) Ps() float64 { - rv := objc.Call[float64](c_, objc.Sel("ps")) +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpscnnlocalcontrastnormalizationgradient/2942485-pm?language=objc +func (c_ CNNLocalContrastNormalizationGradient) Pm() float64 { + rv := objc.Call[float64](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 float64) { - 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 float64) { + objc.Call[objc.Void](c_, objc.Sel("setPm:"), value) } // [Full Topic] @@ -148,60 +143,60 @@ func (c_ CNNLocalContrastNormalizationGradient) SetP0(value float64) { // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpscnnlocalcontrastnormalizationgradient/2942484-beta?language=objc -func (c_ CNNLocalContrastNormalizationGradient) Beta() float64 { - rv := objc.Call[float64](c_, objc.Sel("beta")) +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpscnnlocalcontrastnormalizationgradient/2942471-alpha?language=objc +func (c_ CNNLocalContrastNormalizationGradient) Alpha() float64 { + rv := objc.Call[float64](c_, objc.Sel("alpha")) return rv } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpscnnlocalcontrastnormalizationgradient/2942484-beta?language=objc -func (c_ CNNLocalContrastNormalizationGradient) SetBeta(value float64) { - objc.Call[objc.Void](c_, objc.Sel("setBeta:"), value) +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpscnnlocalcontrastnormalizationgradient/2942471-alpha?language=objc +func (c_ CNNLocalContrastNormalizationGradient) SetAlpha(value float64) { + objc.Call[objc.Void](c_, objc.Sel("setAlpha:"), value) } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpscnnlocalcontrastnormalizationgradient/2942482-delta?language=objc -func (c_ CNNLocalContrastNormalizationGradient) Delta() float64 { - rv := objc.Call[float64](c_, objc.Sel("delta")) +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpscnnlocalcontrastnormalizationgradient/2942484-beta?language=objc +func (c_ CNNLocalContrastNormalizationGradient) Beta() float64 { + rv := objc.Call[float64](c_, objc.Sel("beta")) return rv } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpscnnlocalcontrastnormalizationgradient/2942482-delta?language=objc -func (c_ CNNLocalContrastNormalizationGradient) SetDelta(value float64) { - objc.Call[objc.Void](c_, objc.Sel("setDelta:"), value) +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpscnnlocalcontrastnormalizationgradient/2942484-beta?language=objc +func (c_ CNNLocalContrastNormalizationGradient) SetBeta(value float64) { + objc.Call[objc.Void](c_, objc.Sel("setBeta:"), value) } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpscnnlocalcontrastnormalizationgradient/2942485-pm?language=objc -func (c_ CNNLocalContrastNormalizationGradient) Pm() float64 { - rv := objc.Call[float64](c_, objc.Sel("pm")) +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpscnnlocalcontrastnormalizationgradient/2942466-ps?language=objc +func (c_ CNNLocalContrastNormalizationGradient) Ps() float64 { + rv := objc.Call[float64](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 float64) { - 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 float64) { + objc.Call[objc.Void](c_, objc.Sel("setPs:"), value) } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpscnnlocalcontrastnormalizationgradient/2942471-alpha?language=objc -func (c_ CNNLocalContrastNormalizationGradient) Alpha() float64 { - rv := objc.Call[float64](c_, objc.Sel("alpha")) +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpscnnlocalcontrastnormalizationgradient/2942482-delta?language=objc +func (c_ CNNLocalContrastNormalizationGradient) Delta() float64 { + rv := objc.Call[float64](c_, objc.Sel("delta")) return rv } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpscnnlocalcontrastnormalizationgradient/2942471-alpha?language=objc -func (c_ CNNLocalContrastNormalizationGradient) SetAlpha(value float64) { - objc.Call[objc.Void](c_, objc.Sel("setAlpha:"), value) +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpscnnlocalcontrastnormalizationgradient/2942482-delta?language=objc +func (c_ CNNLocalContrastNormalizationGradient) SetDelta(value float64) { + objc.Call[objc.Void](c_, objc.Sel("setDelta:"), 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 f966e5fe..e6d14f25 100644 --- a/macos/mps/cnn_local_contrast_normalization_gradient_node.gen.go +++ b/macos/mps/cnn_local_contrast_normalization_gradient_node.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package mps @@ -18,20 +18,20 @@ type _CNNLocalContrastNormalizationGradientNodeClass struct { // An interface definition for the [CNNLocalContrastNormalizationGradientNode] class. type ICNNLocalContrastNormalizationGradientNode interface { INNGradientFilterNode - Ps() float64 - SetPs(value float64) - P0() float64 - SetP0(value float64) - Beta() float64 - SetBeta(value float64) - Delta() float64 - SetDelta(value float64) Pm() float64 SetPm(value float64) + Beta() float64 + SetBeta(value float64) + KernelWidth() uint Alpha() float64 SetAlpha(value float64) + P0() float64 + SetP0(value float64) + Delta() float64 + SetDelta(value float64) KernelHeight() uint - KernelWidth() uint + Ps() float64 + SetPs(value float64) } // A representation of a gradient local-contrast normalization kernel. [Full Topic] @@ -78,10 +78,6 @@ func (cc _CNNLocalContrastNormalizationGradientNodeClass) Alloc() CNNLocalContra return rv } -func CNNLocalContrastNormalizationGradientNode_Alloc() CNNLocalContrastNormalizationGradientNode { - return CNNLocalContrastNormalizationGradientNodeClass.Alloc() -} - func (cc _CNNLocalContrastNormalizationGradientNodeClass) New() CNNLocalContrastNormalizationGradientNode { rv := objc.Call[CNNLocalContrastNormalizationGradientNode](cc, objc.Sel("new")) rv.Autorelease() @@ -99,32 +95,17 @@ func (c_ CNNLocalContrastNormalizationGradientNode) Init() CNNLocalContrastNorma // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpscnnlocalcontrastnormalizationgradientnode/2948008-ps?language=objc -func (c_ CNNLocalContrastNormalizationGradientNode) Ps() float64 { - rv := objc.Call[float64](c_, objc.Sel("ps")) - return rv -} - -// [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpscnnlocalcontrastnormalizationgradientnode/2948008-ps?language=objc -func (c_ CNNLocalContrastNormalizationGradientNode) SetPs(value float64) { - 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() float64 { - rv := objc.Call[float64](c_, objc.Sel("p0")) +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpscnnlocalcontrastnormalizationgradientnode/2948053-pm?language=objc +func (c_ CNNLocalContrastNormalizationGradientNode) Pm() float64 { + rv := objc.Call[float64](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 float64) { - 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 float64) { + objc.Call[objc.Void](c_, objc.Sel("setPm:"), value) } // [Full Topic] @@ -144,47 +125,55 @@ func (c_ CNNLocalContrastNormalizationGradientNode) SetBeta(value float64) { // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpscnnlocalcontrastnormalizationgradientnode/2948014-delta?language=objc -func (c_ CNNLocalContrastNormalizationGradientNode) Delta() float64 { - rv := objc.Call[float64](c_, objc.Sel("delta")) +// [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/2948014-delta?language=objc -func (c_ CNNLocalContrastNormalizationGradientNode) SetDelta(value float64) { - 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) Alpha() float64 { + rv := objc.Call[float64](c_, objc.Sel("alpha")) + return rv } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpscnnlocalcontrastnormalizationgradientnode/2948053-pm?language=objc -func (c_ CNNLocalContrastNormalizationGradientNode) Pm() float64 { - rv := objc.Call[float64](c_, objc.Sel("pm")) +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpscnnlocalcontrastnormalizationgradientnode/2947973-alpha?language=objc +func (c_ CNNLocalContrastNormalizationGradientNode) SetAlpha(value float64) { + objc.Call[objc.Void](c_, objc.Sel("setAlpha:"), value) +} + +// [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpscnnlocalcontrastnormalizationgradientnode/2948017-p0?language=objc +func (c_ CNNLocalContrastNormalizationGradientNode) P0() float64 { + rv := objc.Call[float64](c_, objc.Sel("p0")) return rv } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpscnnlocalcontrastnormalizationgradientnode/2948053-pm?language=objc -func (c_ CNNLocalContrastNormalizationGradientNode) SetPm(value float64) { - objc.Call[objc.Void](c_, objc.Sel("setPm:"), value) +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpscnnlocalcontrastnormalizationgradientnode/2948017-p0?language=objc +func (c_ CNNLocalContrastNormalizationGradientNode) SetP0(value float64) { + objc.Call[objc.Void](c_, objc.Sel("setP0:"), value) } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpscnnlocalcontrastnormalizationgradientnode/2947973-alpha?language=objc -func (c_ CNNLocalContrastNormalizationGradientNode) Alpha() float64 { - rv := objc.Call[float64](c_, objc.Sel("alpha")) +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpscnnlocalcontrastnormalizationgradientnode/2948014-delta?language=objc +func (c_ CNNLocalContrastNormalizationGradientNode) Delta() float64 { + rv := objc.Call[float64](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 float64) { - 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 float64) { + objc.Call[objc.Void](c_, objc.Sel("setDelta:"), value) } // [Full Topic] @@ -197,8 +186,15 @@ func (c_ CNNLocalContrastNormalizationGradientNode) KernelHeight() uint { // [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")) +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpscnnlocalcontrastnormalizationgradientnode/2948008-ps?language=objc +func (c_ CNNLocalContrastNormalizationGradientNode) Ps() float64 { + rv := objc.Call[float64](c_, objc.Sel("ps")) return rv } + +// [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpscnnlocalcontrastnormalizationgradientnode/2948008-ps?language=objc +func (c_ CNNLocalContrastNormalizationGradientNode) SetPs(value float64) { + 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 8e8e82cf..aea9dd90 100644 --- a/macos/mps/cnn_local_contrast_normalization_node.gen.go +++ b/macos/mps/cnn_local_contrast_normalization_node.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package mps @@ -18,16 +18,16 @@ type _CNNLocalContrastNormalizationNodeClass struct { // An interface definition for the [CNNLocalContrastNormalizationNode] class. type ICNNLocalContrastNormalizationNode interface { ICNNNormalizationNode - Ps() float64 - SetPs(value float64) P0() float64 SetP0(value float64) + Ps() float64 + SetPs(value float64) + KernelWidth() uint + SetKernelWidth(value uint) Pm() float64 SetPm(value float64) KernelHeight() uint SetKernelHeight(value uint) - KernelWidth() uint - SetKernelWidth(value uint) } // A representation of a local-contrast normalization kernel. [Full Topic] @@ -55,6 +55,20 @@ 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:"), objc.Ptr(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:"), objc.Ptr(sourceNode)) return rv @@ -74,10 +88,6 @@ func (cc _CNNLocalContrastNormalizationNodeClass) Alloc() CNNLocalContrastNormal return rv } -func CNNLocalContrastNormalizationNode_Alloc() CNNLocalContrastNormalizationNode { - return CNNLocalContrastNormalizationNodeClass.Alloc() -} - func (cc _CNNLocalContrastNormalizationNodeClass) New() CNNLocalContrastNormalizationNode { rv := objc.Call[CNNLocalContrastNormalizationNode](cc, objc.Sel("new")) rv.Autorelease() @@ -105,6 +115,21 @@ 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() float64 { + rv := objc.Call[float64](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 float64) { + objc.Call[objc.Void](c_, objc.Sel("setP0:"), value) +} + // [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpscnnlocalcontrastnormalizationnode/2866500-ps?language=objc @@ -122,17 +147,17 @@ func (c_ CNNLocalContrastNormalizationNode) SetPs(value float64) { // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpscnnlocalcontrastnormalizationnode/2866510-p0?language=objc -func (c_ CNNLocalContrastNormalizationNode) P0() float64 { - rv := objc.Call[float64](c_, objc.Sel("p0")) +// [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/2866510-p0?language=objc -func (c_ CNNLocalContrastNormalizationNode) SetP0(value float64) { - objc.Call[objc.Void](c_, objc.Sel("setP0:"), value) +// [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] @@ -164,18 +189,3 @@ 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.gen.go b/macos/mps/cnn_log_soft_max.gen.go index 50ad0889..03a3f87f 100644 --- a/macos/mps/cnn_log_soft_max.gen.go +++ b/macos/mps/cnn_log_soft_max.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package mps @@ -39,10 +39,6 @@ func (cc _CNNLogSoftMaxClass) Alloc() CNNLogSoftMax { return rv } -func CNNLogSoftMax_Alloc() CNNLogSoftMax { - return CNNLogSoftMaxClass.Alloc() -} - func (cc _CNNLogSoftMaxClass) New() CNNLogSoftMax { rv := objc.Call[CNNLogSoftMax](cc, objc.Sel("new")) rv.Autorelease() @@ -76,7 +72,6 @@ func NewCNNLogSoftMaxWithDevice(device metal.PDevice) CNNLogSoftMax { func (c_ CNNLogSoftMax) CopyWithZoneDevice(zone unsafe.Pointer, device metal.PDevice) CNNLogSoftMax { po1 := objc.WrapAsProtocol("MTLDevice", device) rv := objc.Call[CNNLogSoftMax](c_, objc.Sel("copyWithZone:device:"), zone, po1) - rv.Autorelease() return rv } diff --git a/macos/mps/cnn_log_soft_max_gradient.gen.go b/macos/mps/cnn_log_soft_max_gradient.gen.go index cba90af4..cecac1b0 100644 --- a/macos/mps/cnn_log_soft_max_gradient.gen.go +++ b/macos/mps/cnn_log_soft_max_gradient.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package mps @@ -54,10 +54,6 @@ func (cc _CNNLogSoftMaxGradientClass) Alloc() CNNLogSoftMaxGradient { return rv } -func CNNLogSoftMaxGradient_Alloc() CNNLogSoftMaxGradient { - return CNNLogSoftMaxGradientClass.Alloc() -} - func (cc _CNNLogSoftMaxGradientClass) New() CNNLogSoftMaxGradient { rv := objc.Call[CNNLogSoftMaxGradient](cc, objc.Sel("new")) rv.Autorelease() @@ -76,7 +72,6 @@ func (c_ CNNLogSoftMaxGradient) Init() CNNLogSoftMaxGradient { func (c_ CNNLogSoftMaxGradient) CopyWithZoneDevice(zone unsafe.Pointer, device metal.PDevice) CNNLogSoftMaxGradient { po1 := objc.WrapAsProtocol("MTLDevice", device) rv := objc.Call[CNNLogSoftMaxGradient](c_, objc.Sel("copyWithZone:device:"), zone, po1) - rv.Autorelease() return rv } 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 b7b31269..6575f789 100644 --- a/macos/mps/cnn_log_soft_max_gradient_node.gen.go +++ b/macos/mps/cnn_log_soft_max_gradient_node.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package mps @@ -33,30 +33,30 @@ func CNNLogSoftMaxGradientNodeFrom(ptr unsafe.Pointer) CNNLogSoftMaxGradientNode } } -func (c_ CNNLogSoftMaxGradientNode) InitWithSourceGradientSourceImageGradientState(sourceGradient INNImageNode, sourceImage INNImageNode, gradientState INNGradientStateNode) CNNLogSoftMaxGradientNode { - rv := objc.Call[CNNLogSoftMaxGradientNode](c_, objc.Sel("initWithSourceGradient:sourceImage:gradientState:"), objc.Ptr(sourceGradient), objc.Ptr(sourceImage), objc.Ptr(gradientState)) +func (cc _CNNLogSoftMaxGradientNodeClass) NodeWithSourceGradientSourceImageGradientState(sourceGradient INNImageNode, sourceImage INNImageNode, gradientState INNGradientStateNode) CNNLogSoftMaxGradientNode { + rv := objc.Call[CNNLogSoftMaxGradientNode](cc, objc.Sel("nodeWithSourceGradient:sourceImage:gradientState:"), objc.Ptr(sourceGradient), objc.Ptr(sourceImage), objc.Ptr(gradientState)) return rv } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpscnnlogsoftmaxgradientnode/2947971-initwithsourcegradient?language=objc -func NewCNNLogSoftMaxGradientNodeWithSourceGradientSourceImageGradientState(sourceGradient INNImageNode, sourceImage INNImageNode, gradientState INNGradientStateNode) CNNLogSoftMaxGradientNode { - instance := CNNLogSoftMaxGradientNodeClass.Alloc().InitWithSourceGradientSourceImageGradientState(sourceGradient, sourceImage, gradientState) - instance.Autorelease() - return instance +// [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) NodeWithSourceGradientSourceImageGradientState(sourceGradient INNImageNode, sourceImage INNImageNode, gradientState INNGradientStateNode) CNNLogSoftMaxGradientNode { - rv := objc.Call[CNNLogSoftMaxGradientNode](cc, objc.Sel("nodeWithSourceGradient:sourceImage:gradientState:"), objc.Ptr(sourceGradient), objc.Ptr(sourceImage), objc.Ptr(gradientState)) +func (c_ CNNLogSoftMaxGradientNode) InitWithSourceGradientSourceImageGradientState(sourceGradient INNImageNode, sourceImage INNImageNode, gradientState INNGradientStateNode) CNNLogSoftMaxGradientNode { + rv := objc.Call[CNNLogSoftMaxGradientNode](c_, objc.Sel("initWithSourceGradient:sourceImage:gradientState:"), objc.Ptr(sourceGradient), objc.Ptr(sourceImage), objc.Ptr(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) +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpscnnlogsoftmaxgradientnode/2947971-initwithsourcegradient?language=objc +func NewCNNLogSoftMaxGradientNodeWithSourceGradientSourceImageGradientState(sourceGradient INNImageNode, sourceImage INNImageNode, gradientState INNGradientStateNode) CNNLogSoftMaxGradientNode { + instance := CNNLogSoftMaxGradientNodeClass.Alloc().InitWithSourceGradientSourceImageGradientState(sourceGradient, sourceImage, gradientState) + instance.Autorelease() + return instance } func (cc _CNNLogSoftMaxGradientNodeClass) Alloc() CNNLogSoftMaxGradientNode { @@ -64,10 +64,6 @@ func (cc _CNNLogSoftMaxGradientNodeClass) Alloc() CNNLogSoftMaxGradientNode { return rv } -func CNNLogSoftMaxGradientNode_Alloc() CNNLogSoftMaxGradientNode { - return CNNLogSoftMaxGradientNodeClass.Alloc() -} - func (cc _CNNLogSoftMaxGradientNodeClass) New() CNNLogSoftMaxGradientNode { rv := objc.Call[CNNLogSoftMaxGradientNode](cc, objc.Sel("new")) rv.Autorelease() diff --git a/macos/mps/cnn_log_soft_max_node.gen.go b/macos/mps/cnn_log_soft_max_node.gen.go index 24fb7f56..cb5b43fd 100644 --- a/macos/mps/cnn_log_soft_max_node.gen.go +++ b/macos/mps/cnn_log_soft_max_node.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package mps @@ -64,10 +64,6 @@ func (cc _CNNLogSoftMaxNodeClass) Alloc() CNNLogSoftMaxNode { return rv } -func CNNLogSoftMaxNode_Alloc() CNNLogSoftMaxNode { - return CNNLogSoftMaxNodeClass.Alloc() -} - func (cc _CNNLogSoftMaxNodeClass) New() CNNLogSoftMaxNode { rv := objc.Call[CNNLogSoftMaxNode](cc, objc.Sel("new")) rv.Autorelease() diff --git a/macos/mps/cnn_loss.gen.go b/macos/mps/cnn_loss.gen.go index 8a7c2f2e..884a2a9e 100644 --- a/macos/mps/cnn_loss.gen.go +++ b/macos/mps/cnn_loss.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package mps @@ -22,16 +22,20 @@ 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() float64 Weight() float64 + LabelSmoothing() float64 Epsilon() float64 - Delta() float64 - ReductionType() CNNReductionType ReduceAcrossBatch() bool - LossType() CNNLossType - LabelSmoothing() float64 } // A kernel that computes the loss and loss gradient between specified predictions and labels. [Full Topic] @@ -67,10 +71,6 @@ func (cc _CNNLossClass) Alloc() CNNLoss { return rv } -func CNNLoss_Alloc() CNNLoss { - return CNNLossClass.Alloc() -} - func (cc _CNNLossClass) New() CNNLoss { rv := objc.Call[CNNLoss](cc, objc.Sel("new")) rv.Autorelease() @@ -104,7 +104,6 @@ func NewCNNLossWithDevice(device metal.PDevice) CNNLoss { func (c_ CNNLoss) CopyWithZoneDevice(zone unsafe.Pointer, device metal.PDevice) CNNLoss { po1 := objc.WrapAsProtocol("MTLDevice", device) rv := objc.Call[CNNLoss](c_, objc.Sel("copyWithZone:device:"), zone, po1) - rv.Autorelease() return rv } @@ -134,6 +133,36 @@ 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, objc.Ptr(sourceImage), objc.Ptr(labels), objc.Ptr(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:"), objc.Ptr(commandBufferObject), objc.Ptr(sourceImage), objc.Ptr(labels), objc.Ptr(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:"), objc.Ptr(commandBufferObject), sourceImage, labels, destinationImage) +} + // [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpscnnloss/2951838-encodetocommandbuffer?language=objc @@ -153,25 +182,25 @@ func (c_ CNNLoss) EncodeToCommandBufferObjectSourceImageLabels(commandBufferObje // [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/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/2942387-weight?language=objc -func (c_ CNNLoss) Weight() float64 { - rv := objc.Call[float64](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/2942371-epsilon?language=objc -func (c_ CNNLoss) Epsilon() float64 { - rv := objc.Call[float64](c_, objc.Sel("epsilon")) +// [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 } @@ -185,32 +214,32 @@ func (c_ CNNLoss) Delta() float64 { // [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() float64 { + rv := objc.Call[float64](c_, objc.Sel("weight")) 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() float64 { + rv := objc.Call[float64](c_, objc.Sel("labelSmoothing")) return rv } // [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/2942371-epsilon?language=objc +func (c_ CNNLoss) Epsilon() float64 { + rv := objc.Call[float64](c_, objc.Sel("epsilon")) return rv } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpscnnloss/2942358-labelsmoothing?language=objc -func (c_ CNNLoss) LabelSmoothing() float64 { - rv := objc.Call[float64](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 } diff --git a/macos/mps/cnn_loss_data_descriptor.gen.go b/macos/mps/cnn_loss_data_descriptor.gen.go index c4f205e9..a0500db4 100644 --- a/macos/mps/cnn_loss_data_descriptor.gen.go +++ b/macos/mps/cnn_loss_data_descriptor.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package mps @@ -19,12 +19,12 @@ type _CNNLossDataDescriptorClass struct { // An interface definition for the [CNNLossDataDescriptor] class. type ICNNLossDataDescriptor interface { objc.IObject - BytesPerRow() uint - SetBytesPerRow(value uint) + Layout() DataLayout 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] @@ -45,10 +45,6 @@ func (cc _CNNLossDataDescriptorClass) Alloc() CNNLossDataDescriptor { return rv } -func CNNLossDataDescriptor_Alloc() CNNLossDataDescriptor { - return CNNLossDataDescriptorClass.Alloc() -} - func (cc _CNNLossDataDescriptorClass) New() CNNLossDataDescriptor { rv := objc.Call[CNNLossDataDescriptor](cc, objc.Sel("new")) rv.Autorelease() @@ -81,19 +77,12 @@ func CNNLossDataDescriptor_CnnLossDataDescriptorWithDataLayoutSize(data []byte, // [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/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) 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 @@ -111,16 +100,23 @@ func (c_ CNNLossDataDescriptor) SetBytesPerImage(value uint) { // [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/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/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/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) +} diff --git a/macos/mps/cnn_loss_descriptor.gen.go b/macos/mps/cnn_loss_descriptor.gen.go index 3a006e42..026ec216 100644 --- a/macos/mps/cnn_loss_descriptor.gen.go +++ b/macos/mps/cnn_loss_descriptor.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package mps @@ -20,20 +20,20 @@ type ICNNLossDescriptor interface { objc.IObject NumberOfClasses() uint SetNumberOfClasses(value uint) - Weight() float64 - SetWeight(value float64) - Epsilon() float64 - SetEpsilon(value float64) - Delta() float64 - SetDelta(value float64) + LabelSmoothing() float64 + SetLabelSmoothing(value float64) ReductionType() CNNReductionType SetReductionType(value CNNReductionType) + Delta() float64 + SetDelta(value float64) + Weight() float64 + SetWeight(value float64) ReduceAcrossBatch() bool SetReduceAcrossBatch(value bool) LossType() CNNLossType SetLossType(value CNNLossType) - LabelSmoothing() float64 - SetLabelSmoothing(value float64) + Epsilon() float64 + SetEpsilon(value float64) } // An object that specifies properties used by a loss kernel. [Full Topic] @@ -54,10 +54,6 @@ func (cc _CNNLossDescriptorClass) Alloc() CNNLossDescriptor { return rv } -func CNNLossDescriptor_Alloc() CNNLossDescriptor { - return CNNLossDescriptorClass.Alloc() -} - func (cc _CNNLossDescriptorClass) New() CNNLossDescriptor { rv := objc.Call[CNNLossDescriptor](cc, objc.Sel("new")) rv.Autorelease() @@ -105,32 +101,32 @@ func (c_ CNNLossDescriptor) SetNumberOfClasses(value uint) { // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpscnnlossdescriptor/2942367-weight?language=objc -func (c_ CNNLossDescriptor) Weight() float64 { - rv := objc.Call[float64](c_, objc.Sel("weight")) +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpscnnlossdescriptor/2942369-labelsmoothing?language=objc +func (c_ CNNLossDescriptor) LabelSmoothing() float64 { + rv := objc.Call[float64](c_, objc.Sel("labelSmoothing")) return rv } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpscnnlossdescriptor/2942367-weight?language=objc -func (c_ CNNLossDescriptor) SetWeight(value float64) { - objc.Call[objc.Void](c_, objc.Sel("setWeight:"), value) +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpscnnlossdescriptor/2942369-labelsmoothing?language=objc +func (c_ CNNLossDescriptor) SetLabelSmoothing(value float64) { + objc.Call[objc.Void](c_, objc.Sel("setLabelSmoothing:"), value) } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpscnnlossdescriptor/2942362-epsilon?language=objc -func (c_ CNNLossDescriptor) Epsilon() float64 { - rv := objc.Call[float64](c_, objc.Sel("epsilon")) +// [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/2942362-epsilon?language=objc -func (c_ CNNLossDescriptor) SetEpsilon(value float64) { - objc.Call[objc.Void](c_, objc.Sel("setEpsilon:"), 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] @@ -150,17 +146,17 @@ func (c_ CNNLossDescriptor) SetDelta(value float64) { // [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/2942367-weight?language=objc +func (c_ CNNLossDescriptor) Weight() float64 { + rv := objc.Call[float64](c_, objc.Sel("weight")) 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/2942367-weight?language=objc +func (c_ CNNLossDescriptor) SetWeight(value float64) { + objc.Call[objc.Void](c_, objc.Sel("setWeight:"), value) } // [Full Topic] @@ -195,15 +191,15 @@ func (c_ CNNLossDescriptor) SetLossType(value CNNLossType) { // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpscnnlossdescriptor/2942369-labelsmoothing?language=objc -func (c_ CNNLossDescriptor) LabelSmoothing() float64 { - rv := objc.Call[float64](c_, objc.Sel("labelSmoothing")) +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpscnnlossdescriptor/2942362-epsilon?language=objc +func (c_ CNNLossDescriptor) Epsilon() float64 { + rv := objc.Call[float64](c_, objc.Sel("epsilon")) return rv } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpscnnlossdescriptor/2942369-labelsmoothing?language=objc -func (c_ CNNLossDescriptor) SetLabelSmoothing(value float64) { - objc.Call[objc.Void](c_, objc.Sel("setLabelSmoothing:"), value) +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpscnnlossdescriptor/2942362-epsilon?language=objc +func (c_ CNNLossDescriptor) SetEpsilon(value float64) { + objc.Call[objc.Void](c_, objc.Sel("setEpsilon:"), value) } diff --git a/macos/mps/cnn_loss_labels.gen.go b/macos/mps/cnn_loss_labels.gen.go index e97df784..31547018 100644 --- a/macos/mps/cnn_loss_labels.gen.go +++ b/macos/mps/cnn_loss_labels.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package mps @@ -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,6 +37,36 @@ 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, objc.Ptr(labelsDescriptor), objc.Ptr(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, objc.Ptr(labelsImage), objc.Ptr(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, objc.Ptr(labelsDescriptor)) @@ -57,10 +87,6 @@ func (cc _CNNLossLabelsClass) Alloc() CNNLossLabels { return rv } -func CNNLossLabels_Alloc() CNNLossLabels { - return CNNLossLabelsClass.Alloc() -} - func (cc _CNNLossLabelsClass) New() CNNLossLabels { rv := objc.Call[CNNLossLabels](cc, objc.Sel("new")) rv.Autorelease() @@ -76,16 +102,45 @@ func (c_ CNNLossLabels) Init() CNNLossLabels { return rv } -func (c_ CNNLossLabels) InitWithResources(resources []metal.PResource) CNNLossLabels { - rv := objc.Call[CNNLossLabels](c_, objc.Sel("initWithResources:"), resources) +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, objc.Ptr(resourceList)) 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/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, objc.Ptr(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) + 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) instance.Autorelease() return instance } @@ -105,50 +160,74 @@ func NewCNNLossLabelsWithDeviceBufferSize(device metal.PDevice, bufferSize uint) 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 } -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, objc.Ptr(resourceList)) +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) 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) +// [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] // -// [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")) +// [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, objc.Ptr(descriptor)) 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")) +// [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, objc.Ptr(resourceList)) 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 @@ -156,3 +235,19 @@ 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_loss_node.gen.go b/macos/mps/cnn_loss_node.gen.go index 45f11414..13c562c9 100644 --- a/macos/mps/cnn_loss_node.gen.go +++ b/macos/mps/cnn_loss_node.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package mps @@ -65,10 +65,6 @@ func (cc _CNNLossNodeClass) Alloc() CNNLossNode { return rv } -func CNNLossNode_Alloc() CNNLossNode { - return CNNLossNodeClass.Alloc() -} - func (cc _CNNLossNodeClass) New() CNNLossNode { rv := objc.Call[CNNLossNode](cc, objc.Sel("new")) rv.Autorelease() diff --git a/macos/mps/cnn_multiary_kernel.gen.go b/macos/mps/cnn_multiary_kernel.gen.go index 3f05b6ad..5bf49a1b 100644 --- a/macos/mps/cnn_multiary_kernel.gen.go +++ b/macos/mps/cnn_multiary_kernel.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package mps @@ -20,50 +20,58 @@ type _CNNMultiaryKernelClass struct { // An interface definition for the [CNNMultiaryKernel] class. type ICNNMultiaryKernel interface { IKernel - 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 + SetKernelHeightAtIndex(height uint, index uint) + StrideInPixelsYatIndex(index uint) uint 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 - SetStrideInPixelsYAtIndex(stride uint, index uint) - SetKernelWidthAtIndex(width uint, index uint) - ResultStateBatchForSourceImagesSourceStatesDestinationImage(sourceImages []*foundation.Array, sourceStates []*foundation.Array, destinationImage *foundation.Array) *foundation.Array + OffsetAtIndex(index uint) Offset SetOffsetAtIndex(offset Offset, index uint) - SetSourceFeatureChannelMaxCountAtIndex(count uint, index uint) + ResultStateForSourceImagesSourceStatesDestinationImage(sourceImages []IImage, sourceStates []IState, destinationImage IImage) State + SetKernelWidthAtIndex(width uint, index uint) + EncodeBatchToCommandBufferSourceImagesDestinationStatesDestinationStateIsTemporary(commandBuffer metal.PCommandBuffer, sourceImageBatches []*foundation.Array, outState *foundation.Array, isTemporary bool) *foundation.Array + EncodeBatchToCommandBufferObjectSourceImagesDestinationStatesDestinationStateIsTemporary(commandBufferObject objc.IObject, sourceImageBatches []*foundation.Array, outState *foundation.Array, 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 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 - DilationRateYatIndex(index uint) uint - KernelWidthAtIndex(index uint) uint + KernelHeightAtIndex(index uint) uint + EdgeModeAtIndex(index uint) ImageEdgeMode EncodeToCommandBufferSourceImages(commandBuffer metal.PCommandBuffer, sourceImages []IImage) Image EncodeToCommandBufferObjectSourceImages(commandBufferObject objc.IObject, sourceImages []IImage) Image - SetKernelHeightAtIndex(height uint, index uint) + 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 IsResultStateReusedAcrossBatch() bool - SetEdgeModeAtIndex(edgeMode ImageEdgeMode, index uint) - KernelHeightAtIndex(index uint) uint - SetSourceFeatureChannelOffsetAtIndex(offset uint, index uint) - SourceFeatureChannelOffsetAtIndex(index uint) uint - IsStateModified() bool - Padding() NNPaddingWrapper - SetPadding(value PNNPadding) - SetPaddingObject(valueObject objc.IObject) - SourceCount() uint - IsBackwards() 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 IState, isTemporary bool) Image + EncodeToCommandBufferObjectSourceImagesDestinationStateDestinationStateIsTemporary(commandBufferObject objc.IObject, sourceImages []IImage, outState IState, isTemporary bool) Image + SetStrideInPixelsYAtIndex(stride uint, index uint) + KernelWidthAtIndex(index uint) uint ClipRect() metal.Region SetClipRect(value metal.Region) - DestinationImageAllocator() ImageAllocatorWrapper + SourceCount() uint + IsBackwards() bool + Padding() NNPaddingObject + SetPadding(value PNNPadding) + SetPaddingObject(valueObject objc.IObject) + DestinationImageAllocator() ImageAllocatorObject SetDestinationImageAllocator(value PImageAllocator) SetDestinationImageAllocatorObject(valueObject objc.IObject) + IsStateModified() bool DestinationFeatureChannelOffset() uint SetDestinationFeatureChannelOffset(value uint) } @@ -101,10 +109,6 @@ func (cc _CNNMultiaryKernelClass) Alloc() CNNMultiaryKernel { return rv } -func CNNMultiaryKernel_Alloc() CNNMultiaryKernel { - return CNNMultiaryKernelClass.Alloc() -} - func (cc _CNNMultiaryKernelClass) New() CNNMultiaryKernel { rv := objc.Call[CNNMultiaryKernel](cc, objc.Sel("new")) rv.Autorelease() @@ -120,6 +124,21 @@ 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) @@ -135,140 +154,127 @@ func NewCNNMultiaryKernelWithDevice(device metal.PDevice) CNNMultiaryKernel { return instance } -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) - rv.Autorelease() - return rv -} - -// Makes a copy of this kernel object for a new device. [Full Topic] +// [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 +// [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/3043418-edgemodeatindex?language=objc -func (c_ CNNMultiaryKernel) EdgeModeAtIndex(index uint) ImageEdgeMode { - rv := objc.Call[ImageEdgeMode](c_, objc.Sel("edgeModeAtIndex:"), index) +// [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/3043449-strideinpixelsxatindex?language=objc -func (c_ CNNMultiaryKernel) StrideInPixelsXatIndex(index uint) uint { - rv := objc.Call[uint](c_, objc.Sel("strideInPixelsXatIndex:"), 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/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, objc.Ptr(destinationImage)) - 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/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:"), objc.Ptr(commandBufferObject), sourceImage, sourceStates, objc.Ptr(destinationImage)) +// [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/3043435-resultstateforsourceimages?language=objc -func (c_ CNNMultiaryKernel) ResultStateForSourceImagesSourceStatesDestinationImage(sourceImages []IImage, sourceStates []IState, destinationImage IImage) State { - rv := objc.Call[State](c_, objc.Sel("resultStateForSourceImages:sourceStates:destinationImage:"), sourceImages, sourceStates, objc.Ptr(destinationImage)) +// [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:"), objc.Ptr(commandBufferObject), sourceImageBatches) 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")) +// [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/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) - return rv +// [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/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:"), objc.Ptr(commandBufferObject), sourceImage, sourceStates, destinationImage) +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpscnnmultiarykernel/3043435-resultstateforsourceimages?language=objc +func (c_ CNNMultiaryKernel) ResultStateForSourceImagesSourceStatesDestinationImage(sourceImages []IImage, sourceStates []IState, destinationImage IImage) State { + rv := objc.Call[State](c_, objc.Sel("resultStateForSourceImages:sourceStates:destinationImage:"), sourceImages, sourceStates, objc.Ptr(destinationImage)) 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) - return rv +// [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] // -// [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 { +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpscnnmultiarykernel/3043421-encodebatchtocommandbuffer?language=objc +func (c_ CNNMultiaryKernel) EncodeBatchToCommandBufferSourceImagesDestinationStatesDestinationStateIsTemporary(commandBuffer metal.PCommandBuffer, sourceImageBatches []*foundation.Array, outState *foundation.Array, isTemporary bool) *foundation.Array { po0 := objc.WrapAsProtocol("MTLCommandBuffer", commandBuffer) - rv := objc.Call[*foundation.Array](c_, objc.Sel("encodeBatchToCommandBuffer:sourceImages:"), po0, sourceImageBatches) + rv := objc.Call[*foundation.Array](c_, objc.Sel("encodeBatchToCommandBuffer:sourceImages:destinationStates:destinationStateIsTemporary:"), po0, sourceImageBatches, outState, isTemporary) 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:"), objc.Ptr(commandBufferObject), sourceImageBatches) +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpscnnmultiarykernel/3043421-encodebatchtocommandbuffer?language=objc +func (c_ CNNMultiaryKernel) EncodeBatchToCommandBufferObjectSourceImagesDestinationStatesDestinationStateIsTemporary(commandBufferObject objc.IObject, sourceImageBatches []*foundation.Array, outState *foundation.Array, isTemporary bool) *foundation.Array { + rv := objc.Call[*foundation.Array](c_, objc.Sel("encodeBatchToCommandBuffer:sourceImages:destinationStates:destinationStateIsTemporary:"), objc.Ptr(commandBufferObject), sourceImageBatches, outState, isTemporary) 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/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/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/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/3043434-resultstatebatchforsourceimages?language=objc -func (c_ CNNMultiaryKernel) ResultStateBatchForSourceImagesSourceStatesDestinationImage(sourceImages []*foundation.Array, sourceStates []*foundation.Array, destinationImage *foundation.Array) *foundation.Array { - rv := objc.Call[*foundation.Array](c_, objc.Sel("resultStateBatchForSourceImages:sourceStates:destinationImage:"), sourceImages, sourceStates, destinationImage) - 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/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/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] @@ -280,47 +286,41 @@ func (c_ CNNMultiaryKernel) SetSourceFeatureChannelMaxCountAtIndex(count uint, i // [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] -// -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpscnnmultiarykernel/3043416-dilationratexatindex?language=objc -func (c_ CNNMultiaryKernel) DilationRateXatIndex(index uint) uint { - rv := objc.Call[uint](c_, objc.Sel("dilationRateXatIndex:"), index) +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpscnnmultiarykernel/3043434-resultstatebatchforsourceimages?language=objc +func (c_ CNNMultiaryKernel) ResultStateBatchForSourceImagesSourceStatesDestinationImage(sourceImages []*foundation.Array, sourceStates []*foundation.Array, destinationImage *foundation.Array) *foundation.Array { + rv := objc.Call[*foundation.Array](c_, objc.Sel("resultStateBatchForSourceImages:sourceStates:destinationImage:"), sourceImages, sourceStates, destinationImage) 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/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] // -// [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]: 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:"), objc.Ptr(commandBufferObject), sourceImages, destinationImages) } // [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) +// [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/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/3043416-dilationratexatindex?language=objc +func (c_ CNNMultiaryKernel) DilationRateXatIndex(index uint) uint { + rv := objc.Call[uint](c_, objc.Sel("dilationRateXatIndex:"), index) + return rv } // [Full Topic] @@ -333,17 +333,17 @@ func (c_ CNNMultiaryKernel) SourceFeatureChannelMaxCountAtIndex(index uint) uint // [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/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/3043418-edgemodeatindex?language=objc +func (c_ CNNMultiaryKernel) EdgeModeAtIndex(index uint) ImageEdgeMode { + rv := objc.Call[ImageEdgeMode](c_, objc.Sel("edgeModeAtIndex:"), index) return rv } @@ -366,9 +366,27 @@ func (c_ CNNMultiaryKernel) EncodeToCommandBufferObjectSourceImages(commandBuffe // [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]: 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/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) + 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:"), objc.Ptr(commandBufferObject), sourceImage, sourceStates, destinationImage) + return rv } // [Full Topic] @@ -381,63 +399,96 @@ func (c_ CNNMultiaryKernel) IsResultStateReusedAcrossBatch() bool { // [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/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, objc.Ptr(destinationImage)) + 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) +// [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:"), objc.Ptr(commandBufferObject), sourceImage, sourceStates, objc.Ptr(destinationImage)) return rv } // [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/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, objc.Ptr(destinationImage)) } // [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/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:"), objc.Ptr(commandBufferObject), sourceImages, objc.Ptr(destinationImage)) +} + +// [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] +// +// [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/3043429-isstatemodified?language=objc -func (c_ CNNMultiaryKernel) IsStateModified() bool { - rv := objc.Call[bool](c_, objc.Sel("isStateModified")) +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpscnnmultiarykernel/3043424-encodetocommandbuffer?language=objc +func (c_ CNNMultiaryKernel) EncodeToCommandBufferSourceImagesDestinationStateDestinationStateIsTemporary(commandBuffer metal.PCommandBuffer, sourceImages []IImage, outState IState, isTemporary bool) Image { + po0 := objc.WrapAsProtocol("MTLCommandBuffer", commandBuffer) + rv := objc.Call[Image](c_, objc.Sel("encodeToCommandBuffer:sourceImages:destinationState:destinationStateIsTemporary:"), po0, sourceImages, objc.Ptr(outState), isTemporary) return rv } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpscnnmultiarykernel/3043433-padding?language=objc -func (c_ CNNMultiaryKernel) Padding() NNPaddingWrapper { - rv := objc.Call[NNPaddingWrapper](c_, objc.Sel("padding")) +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpscnnmultiarykernel/3043424-encodetocommandbuffer?language=objc +func (c_ CNNMultiaryKernel) EncodeToCommandBufferObjectSourceImagesDestinationStateDestinationStateIsTemporary(commandBufferObject objc.IObject, sourceImages []IImage, outState IState, isTemporary bool) Image { + rv := objc.Call[Image](c_, objc.Sel("encodeToCommandBuffer:sourceImages:destinationState:destinationStateIsTemporary:"), objc.Ptr(commandBufferObject), sourceImages, objc.Ptr(outState), isTemporary) 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]: 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/3043433-padding?language=objc -func (c_ CNNMultiaryKernel) SetPaddingObject(valueObject objc.IObject) { - objc.Call[objc.Void](c_, objc.Sel("setPadding:"), objc.Ptr(valueObject)) +// [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/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/3043412-cliprect?language=objc +func (c_ CNNMultiaryKernel) SetClipRect(value metal.Region) { + objc.Call[objc.Void](c_, objc.Sel("setClipRect:"), value) } // [Full Topic] @@ -458,24 +509,32 @@ func (c_ CNNMultiaryKernel) IsBackwards() bool { // [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")) +// [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) 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) 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:"), objc.Ptr(valueObject)) } // [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpscnnmultiarykernel/3043414-destinationimageallocator?language=objc -func (c_ CNNMultiaryKernel) DestinationImageAllocator() ImageAllocatorWrapper { - rv := objc.Call[ImageAllocatorWrapper](c_, objc.Sel("destinationImageAllocator")) +func (c_ CNNMultiaryKernel) DestinationImageAllocator() ImageAllocatorObject { + rv := objc.Call[ImageAllocatorObject](c_, objc.Sel("destinationImageAllocator")) return rv } @@ -494,6 +553,14 @@ func (c_ CNNMultiaryKernel) SetDestinationImageAllocatorObject(valueObject objc. objc.Call[objc.Void](c_, objc.Sel("setDestinationImageAllocator:"), objc.Ptr(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_multiply.gen.go b/macos/mps/cnn_multiply.gen.go index 4b224272..47177ebc 100644 --- a/macos/mps/cnn_multiply.gen.go +++ b/macos/mps/cnn_multiply.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package mps @@ -54,10 +54,6 @@ func (cc _CNNMultiplyClass) Alloc() CNNMultiply { return rv } -func CNNMultiply_Alloc() CNNMultiply { - return CNNMultiplyClass.Alloc() -} - func (cc _CNNMultiplyClass) New() CNNMultiply { rv := objc.Call[CNNMultiply](cc, objc.Sel("new")) rv.Autorelease() @@ -76,7 +72,6 @@ func (c_ CNNMultiply) Init() CNNMultiply { func (c_ CNNMultiply) CopyWithZoneDevice(zone unsafe.Pointer, device metal.PDevice) CNNMultiply { po1 := objc.WrapAsProtocol("MTLDevice", device) rv := objc.Call[CNNMultiply](c_, objc.Sel("copyWithZone:device:"), zone, po1) - rv.Autorelease() return rv } diff --git a/macos/mps/cnn_multiply_gradient.gen.go b/macos/mps/cnn_multiply_gradient.gen.go index 3f3ff10f..4bf70341 100644 --- a/macos/mps/cnn_multiply_gradient.gen.go +++ b/macos/mps/cnn_multiply_gradient.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package mps @@ -54,10 +54,6 @@ func (cc _CNNMultiplyGradientClass) Alloc() CNNMultiplyGradient { return rv } -func CNNMultiplyGradient_Alloc() CNNMultiplyGradient { - return CNNMultiplyGradientClass.Alloc() -} - func (cc _CNNMultiplyGradientClass) New() CNNMultiplyGradient { rv := objc.Call[CNNMultiplyGradient](cc, objc.Sel("new")) rv.Autorelease() @@ -91,7 +87,6 @@ func NewCNNMultiplyGradientWithDevice(device metal.PDevice) CNNMultiplyGradient func (c_ CNNMultiplyGradient) CopyWithZoneDevice(zone unsafe.Pointer, device metal.PDevice) CNNMultiplyGradient { po1 := objc.WrapAsProtocol("MTLDevice", device) rv := objc.Call[CNNMultiplyGradient](c_, objc.Sel("copyWithZone:device:"), zone, po1) - rv.Autorelease() return rv } diff --git a/macos/mps/cnn_neuron.gen.go b/macos/mps/cnn_neuron.gen.go index 4085d9d9..bb090616 100644 --- a/macos/mps/cnn_neuron.gen.go +++ b/macos/mps/cnn_neuron.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package mps @@ -20,10 +20,10 @@ type _CNNNeuronClass struct { type ICNNNeuron interface { ICNNKernel A() float64 + B() float64 Data() []byte - NeuronType() CNNNeuronType C() float64 - B() float64 + NeuronType() CNNNeuronType } // A filter that applies a neuron activation function. [Full Topic] @@ -59,10 +59,6 @@ func (cc _CNNNeuronClass) Alloc() CNNNeuron { return rv } -func CNNNeuron_Alloc() CNNNeuron { - return CNNNeuronClass.Alloc() -} - func (cc _CNNNeuronClass) New() CNNNeuron { rv := objc.Call[CNNNeuron](cc, objc.Sel("new")) rv.Autorelease() @@ -96,7 +92,6 @@ func NewCNNNeuronWithDevice(device metal.PDevice) CNNNeuron { func (c_ CNNNeuron) CopyWithZoneDevice(zone unsafe.Pointer, device metal.PDevice) CNNNeuron { po1 := objc.WrapAsProtocol("MTLDevice", device) rv := objc.Call[CNNNeuron](c_, objc.Sel("copyWithZone:device:"), zone, po1) - rv.Autorelease() return rv } @@ -119,17 +114,17 @@ func (c_ CNNNeuron) A() float64 { // [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/2942306-b?language=objc +func (c_ CNNNeuron) B() float64 { + rv := objc.Call[float64](c_, objc.Sel("b")) return rv } // [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/2942308-data?language=objc +func (c_ CNNNeuron) Data() []byte { + rv := objc.Call[[]byte](c_, objc.Sel("data")) return rv } @@ -143,8 +138,8 @@ func (c_ CNNNeuron) C() float64 { // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpscnnneuron/2942306-b?language=objc -func (c_ CNNNeuron) B() float64 { - rv := objc.Call[float64](c_, objc.Sel("b")) +// [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 } diff --git a/macos/mps/cnn_neuron_absolute.gen.go b/macos/mps/cnn_neuron_absolute.gen.go index 6f376ae8..b6795157 100644 --- a/macos/mps/cnn_neuron_absolute.gen.go +++ b/macos/mps/cnn_neuron_absolute.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package mps @@ -39,10 +39,6 @@ func (cc _CNNNeuronAbsoluteClass) Alloc() CNNNeuronAbsolute { return rv } -func CNNNeuronAbsolute_Alloc() CNNNeuronAbsolute { - return CNNNeuronAbsoluteClass.Alloc() -} - func (cc _CNNNeuronAbsoluteClass) New() CNNNeuronAbsolute { rv := objc.Call[CNNNeuronAbsolute](cc, objc.Sel("new")) rv.Autorelease() @@ -91,7 +87,6 @@ func NewCNNNeuronAbsoluteWithDevice(device metal.PDevice) CNNNeuronAbsolute { func (c_ CNNNeuronAbsolute) CopyWithZoneDevice(zone unsafe.Pointer, device metal.PDevice) CNNNeuronAbsolute { po1 := objc.WrapAsProtocol("MTLDevice", device) rv := objc.Call[CNNNeuronAbsolute](c_, objc.Sel("copyWithZone:device:"), zone, po1) - rv.Autorelease() return rv } diff --git a/macos/mps/cnn_neuron_absolute_node.gen.go b/macos/mps/cnn_neuron_absolute_node.gen.go index 19669bdc..a5414bc9 100644 --- a/macos/mps/cnn_neuron_absolute_node.gen.go +++ b/macos/mps/cnn_neuron_absolute_node.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package mps @@ -64,10 +64,6 @@ func (cc _CNNNeuronAbsoluteNodeClass) Alloc() CNNNeuronAbsoluteNode { return rv } -func CNNNeuronAbsoluteNode_Alloc() CNNNeuronAbsoluteNode { - return CNNNeuronAbsoluteNodeClass.Alloc() -} - func (cc _CNNNeuronAbsoluteNodeClass) New() CNNNeuronAbsoluteNode { rv := objc.Call[CNNNeuronAbsoluteNode](cc, objc.Sel("new")) rv.Autorelease() diff --git a/macos/mps/cnn_neuron_elu.gen.go b/macos/mps/cnn_neuron_elu.gen.go index 5f0b2c55..2c346621 100644 --- a/macos/mps/cnn_neuron_elu.gen.go +++ b/macos/mps/cnn_neuron_elu.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package mps @@ -39,10 +39,6 @@ func (cc _CNNNeuronELUClass) Alloc() CNNNeuronELU { return rv } -func CNNNeuronELU_Alloc() CNNNeuronELU { - return CNNNeuronELUClass.Alloc() -} - func (cc _CNNNeuronELUClass) New() CNNNeuronELU { rv := objc.Call[CNNNeuronELU](cc, objc.Sel("new")) rv.Autorelease() @@ -91,7 +87,6 @@ func NewCNNNeuronELUWithDevice(device metal.PDevice) CNNNeuronELU { func (c_ CNNNeuronELU) CopyWithZoneDevice(zone unsafe.Pointer, device metal.PDevice) CNNNeuronELU { po1 := objc.WrapAsProtocol("MTLDevice", device) rv := objc.Call[CNNNeuronELU](c_, objc.Sel("copyWithZone:device:"), zone, po1) - rv.Autorelease() return rv } diff --git a/macos/mps/cnn_neuron_elu_node.gen.go b/macos/mps/cnn_neuron_elu_node.gen.go index e3d4e40b..3bced45a 100644 --- a/macos/mps/cnn_neuron_elu_node.gen.go +++ b/macos/mps/cnn_neuron_elu_node.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package mps @@ -33,6 +33,32 @@ func CNNNeuronELUNodeFrom(ptr unsafe.Pointer) CNNNeuronELUNode { } } +func (cc _CNNNeuronELUNodeClass) NodeWithSourceA(sourceNode INNImageNode, a float64) CNNNeuronELUNode { + rv := objc.Call[CNNNeuronELUNode](cc, objc.Sel("nodeWithSource:a:"), objc.Ptr(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 float64) CNNNeuronELUNode { + return CNNNeuronELUNodeClass.NodeWithSourceA(sourceNode, a) +} + +func (c_ CNNNeuronELUNode) InitWithSourceA(sourceNode INNImageNode, a float64) CNNNeuronELUNode { + rv := objc.Call[CNNNeuronELUNode](c_, objc.Sel("initWithSource:a:"), objc.Ptr(sourceNode), a) + return rv +} + +// [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpscnnneuronelunode/2921454-initwithsource?language=objc +func NewCNNNeuronELUNodeWithSourceA(sourceNode INNImageNode, a float64) 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:"), objc.Ptr(sourceNode)) return rv @@ -64,10 +90,6 @@ func (cc _CNNNeuronELUNodeClass) Alloc() CNNNeuronELUNode { return rv } -func CNNNeuronELUNode_Alloc() CNNNeuronELUNode { - return CNNNeuronELUNodeClass.Alloc() -} - func (cc _CNNNeuronELUNodeClass) New() CNNNeuronELUNode { rv := objc.Call[CNNNeuronELUNode](cc, objc.Sel("new")) rv.Autorelease() diff --git a/macos/mps/cnn_neuron_exponential.gen.go b/macos/mps/cnn_neuron_exponential.gen.go index 4fdc51c1..3d2f7b70 100644 --- a/macos/mps/cnn_neuron_exponential.gen.go +++ b/macos/mps/cnn_neuron_exponential.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package mps @@ -39,10 +39,6 @@ func (cc _CNNNeuronExponentialClass) Alloc() CNNNeuronExponential { return rv } -func CNNNeuronExponential_Alloc() CNNNeuronExponential { - return CNNNeuronExponentialClass.Alloc() -} - func (cc _CNNNeuronExponentialClass) New() CNNNeuronExponential { rv := objc.Call[CNNNeuronExponential](cc, objc.Sel("new")) rv.Autorelease() @@ -91,7 +87,6 @@ func NewCNNNeuronExponentialWithDevice(device metal.PDevice) CNNNeuronExponentia func (c_ CNNNeuronExponential) CopyWithZoneDevice(zone unsafe.Pointer, device metal.PDevice) CNNNeuronExponential { po1 := objc.WrapAsProtocol("MTLDevice", device) rv := objc.Call[CNNNeuronExponential](c_, objc.Sel("copyWithZone:device:"), zone, po1) - rv.Autorelease() return rv } diff --git a/macos/mps/cnn_neuron_exponential_node.gen.go b/macos/mps/cnn_neuron_exponential_node.gen.go index 6ab0ae27..5c5b5cda 100644 --- a/macos/mps/cnn_neuron_exponential_node.gen.go +++ b/macos/mps/cnn_neuron_exponential_node.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package mps @@ -33,6 +33,18 @@ func CNNNeuronExponentialNodeFrom(ptr unsafe.Pointer) CNNNeuronExponentialNode { } } +func (cc _CNNNeuronExponentialNodeClass) NodeWithSourceABC(sourceNode INNImageNode, a float64, b float64, c float64) CNNNeuronExponentialNode { + rv := objc.Call[CNNNeuronExponentialNode](cc, objc.Sel("nodeWithSource:a:b:c:"), objc.Ptr(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 float64, b float64, c float64) CNNNeuronExponentialNode { + return CNNNeuronExponentialNodeClass.NodeWithSourceABC(sourceNode, a, b, c) +} + func (cc _CNNNeuronExponentialNodeClass) NodeWithSource(sourceNode INNImageNode) CNNNeuronExponentialNode { rv := objc.Call[CNNNeuronExponentialNode](cc, objc.Sel("nodeWithSource:"), objc.Ptr(sourceNode)) return rv @@ -59,13 +71,23 @@ func NewCNNNeuronExponentialNodeWithSource(sourceNode INNImageNode) CNNNeuronExp return instance } -func (cc _CNNNeuronExponentialNodeClass) Alloc() CNNNeuronExponentialNode { - rv := objc.Call[CNNNeuronExponentialNode](cc, objc.Sel("alloc")) +func (c_ CNNNeuronExponentialNode) InitWithSourceABC(sourceNode INNImageNode, a float64, b float64, c float64) CNNNeuronExponentialNode { + rv := objc.Call[CNNNeuronExponentialNode](c_, objc.Sel("initWithSource:a:b:c:"), objc.Ptr(sourceNode), a, b, c) return rv } -func CNNNeuronExponentialNode_Alloc() CNNNeuronExponentialNode { - return CNNNeuronExponentialNodeClass.Alloc() +// [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpscnnneuronexponentialnode/2951933-initwithsource?language=objc +func NewCNNNeuronExponentialNodeWithSourceABC(sourceNode INNImageNode, a float64, b float64, c float64) 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 } func (cc _CNNNeuronExponentialNodeClass) New() CNNNeuronExponentialNode { diff --git a/macos/mps/cnn_neuron_ge_lu_node.gen.go b/macos/mps/cnn_neuron_ge_lu_node.gen.go index e5e4833c..a895df9f 100644 --- a/macos/mps/cnn_neuron_ge_lu_node.gen.go +++ b/macos/mps/cnn_neuron_ge_lu_node.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package mps @@ -33,18 +33,6 @@ func CNNNeuronGeLUNodeFrom(ptr unsafe.Pointer) CNNNeuronGeLUNode { } } -func (cc _CNNNeuronGeLUNodeClass) NodeWithSource(sourceNode INNImageNode) CNNNeuronGeLUNode { - rv := objc.Call[CNNNeuronGeLUNode](cc, objc.Sel("nodeWithSource:"), objc.Ptr(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) -} - func (c_ CNNNeuronGeLUNode) InitWithSource(sourceNode INNImageNode) CNNNeuronGeLUNode { rv := objc.Call[CNNNeuronGeLUNode](c_, objc.Sel("initWithSource:"), objc.Ptr(sourceNode)) return rv @@ -59,13 +47,21 @@ func NewCNNNeuronGeLUNodeWithSource(sourceNode INNImageNode) CNNNeuronGeLUNode { return instance } -func (cc _CNNNeuronGeLUNodeClass) Alloc() CNNNeuronGeLUNode { - rv := objc.Call[CNNNeuronGeLUNode](cc, objc.Sel("alloc")) +func (cc _CNNNeuronGeLUNodeClass) NodeWithSource(sourceNode INNImageNode) CNNNeuronGeLUNode { + rv := objc.Call[CNNNeuronGeLUNode](cc, objc.Sel("nodeWithSource:"), objc.Ptr(sourceNode)) return rv } -func CNNNeuronGeLUNode_Alloc() CNNNeuronGeLUNode { - return CNNNeuronGeLUNodeClass.Alloc() +// [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) +} + +func (cc _CNNNeuronGeLUNodeClass) Alloc() CNNNeuronGeLUNode { + rv := objc.Call[CNNNeuronGeLUNode](cc, objc.Sel("alloc")) + return rv } func (cc _CNNNeuronGeLUNodeClass) New() CNNNeuronGeLUNode { diff --git a/macos/mps/cnn_neuron_gradient.gen.go b/macos/mps/cnn_neuron_gradient.gen.go index 34cb25ed..e987e463 100644 --- a/macos/mps/cnn_neuron_gradient.gen.go +++ b/macos/mps/cnn_neuron_gradient.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package mps @@ -19,11 +19,11 @@ type _CNNNeuronGradientClass struct { // An interface definition for the [CNNNeuronGradient] class. type ICNNNeuronGradient interface { ICNNGradientKernel - A() float64 - Data() []byte - NeuronType() CNNNeuronType C() float64 + Data() []byte B() float64 + NeuronType() CNNNeuronType + A() float64 } // A gradient neuron filter. [Full Topic] @@ -59,10 +59,6 @@ func (cc _CNNNeuronGradientClass) Alloc() CNNNeuronGradient { return rv } -func CNNNeuronGradient_Alloc() CNNNeuronGradient { - return CNNNeuronGradientClass.Alloc() -} - func (cc _CNNNeuronGradientClass) New() CNNNeuronGradient { rv := objc.Call[CNNNeuronGradient](cc, objc.Sel("new")) rv.Autorelease() @@ -96,7 +92,6 @@ func NewCNNNeuronGradientWithDevice(device metal.PDevice) CNNNeuronGradient { func (c_ CNNNeuronGradient) CopyWithZoneDevice(zone unsafe.Pointer, device metal.PDevice) CNNNeuronGradient { po1 := objc.WrapAsProtocol("MTLDevice", device) rv := objc.Call[CNNNeuronGradient](c_, objc.Sel("copyWithZone:device:"), zone, po1) - rv.Autorelease() return rv } @@ -111,9 +106,9 @@ func CNNNeuronGradient_CopyWithZoneDevice(zone unsafe.Pointer, device metal.PDev // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpscnnneurongradient/2942312-a?language=objc -func (c_ CNNNeuronGradient) A() float64 { - rv := objc.Call[float64](c_, objc.Sel("a")) +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpscnnneurongradient/2942310-c?language=objc +func (c_ CNNNeuronGradient) C() float64 { + rv := objc.Call[float64](c_, objc.Sel("c")) return rv } @@ -127,24 +122,24 @@ func (c_ CNNNeuronGradient) Data() []byte { // [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/2942313-b?language=objc +func (c_ CNNNeuronGradient) B() float64 { + rv := objc.Call[float64](c_, objc.Sel("b")) return rv } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpscnnneurongradient/2942310-c?language=objc -func (c_ CNNNeuronGradient) C() float64 { - rv := objc.Call[float64](c_, objc.Sel("c")) +// [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/2942313-b?language=objc -func (c_ CNNNeuronGradient) B() float64 { - rv := objc.Call[float64](c_, objc.Sel("b")) +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpscnnneurongradient/2942312-a?language=objc +func (c_ CNNNeuronGradient) A() float64 { + rv := objc.Call[float64](c_, objc.Sel("a")) return rv } diff --git a/macos/mps/cnn_neuron_gradient_node.gen.go b/macos/mps/cnn_neuron_gradient_node.gen.go index d92c59be..a65540c7 100644 --- a/macos/mps/cnn_neuron_gradient_node.gen.go +++ b/macos/mps/cnn_neuron_gradient_node.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package mps @@ -34,30 +34,30 @@ func CNNNeuronGradientNodeFrom(ptr unsafe.Pointer) CNNNeuronGradientNode { } } -func (c_ CNNNeuronGradientNode) InitWithSourceGradientSourceImageGradientStateDescriptor(sourceGradient INNImageNode, sourceImage INNImageNode, gradientState INNGradientStateNode, descriptor INNNeuronDescriptor) CNNNeuronGradientNode { - rv := objc.Call[CNNNeuronGradientNode](c_, objc.Sel("initWithSourceGradient:sourceImage:gradientState:descriptor:"), objc.Ptr(sourceGradient), objc.Ptr(sourceImage), objc.Ptr(gradientState), objc.Ptr(descriptor)) +func (cc _CNNNeuronGradientNodeClass) NodeWithSourceGradientSourceImageGradientStateDescriptor(sourceGradient INNImageNode, sourceImage INNImageNode, gradientState INNGradientStateNode, descriptor INNNeuronDescriptor) CNNNeuronGradientNode { + rv := objc.Call[CNNNeuronGradientNode](cc, objc.Sel("nodeWithSourceGradient:sourceImage:gradientState:descriptor:"), objc.Ptr(sourceGradient), objc.Ptr(sourceImage), objc.Ptr(gradientState), objc.Ptr(descriptor)) return rv } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpscnnneurongradientnode/2948031-initwithsourcegradient?language=objc -func NewCNNNeuronGradientNodeWithSourceGradientSourceImageGradientStateDescriptor(sourceGradient INNImageNode, sourceImage INNImageNode, gradientState INNGradientStateNode, descriptor INNNeuronDescriptor) CNNNeuronGradientNode { - instance := CNNNeuronGradientNodeClass.Alloc().InitWithSourceGradientSourceImageGradientStateDescriptor(sourceGradient, sourceImage, gradientState, descriptor) - instance.Autorelease() - return instance +// [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) NodeWithSourceGradientSourceImageGradientStateDescriptor(sourceGradient INNImageNode, sourceImage INNImageNode, gradientState INNGradientStateNode, descriptor INNNeuronDescriptor) CNNNeuronGradientNode { - rv := objc.Call[CNNNeuronGradientNode](cc, objc.Sel("nodeWithSourceGradient:sourceImage:gradientState:descriptor:"), objc.Ptr(sourceGradient), objc.Ptr(sourceImage), objc.Ptr(gradientState), objc.Ptr(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:"), objc.Ptr(sourceGradient), objc.Ptr(sourceImage), objc.Ptr(gradientState), objc.Ptr(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) +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpscnnneurongradientnode/2948031-initwithsourcegradient?language=objc +func NewCNNNeuronGradientNodeWithSourceGradientSourceImageGradientStateDescriptor(sourceGradient INNImageNode, sourceImage INNImageNode, gradientState INNGradientStateNode, descriptor INNNeuronDescriptor) CNNNeuronGradientNode { + instance := CNNNeuronGradientNodeClass.Alloc().InitWithSourceGradientSourceImageGradientStateDescriptor(sourceGradient, sourceImage, gradientState, descriptor) + instance.Autorelease() + return instance } func (cc _CNNNeuronGradientNodeClass) Alloc() CNNNeuronGradientNode { @@ -65,10 +65,6 @@ func (cc _CNNNeuronGradientNodeClass) Alloc() CNNNeuronGradientNode { return rv } -func CNNNeuronGradientNode_Alloc() CNNNeuronGradientNode { - return CNNNeuronGradientNodeClass.Alloc() -} - func (cc _CNNNeuronGradientNodeClass) New() CNNNeuronGradientNode { rv := objc.Call[CNNNeuronGradientNode](cc, objc.Sel("new")) rv.Autorelease() diff --git a/macos/mps/cnn_neuron_hard_sigmoid.gen.go b/macos/mps/cnn_neuron_hard_sigmoid.gen.go index da8c170a..59db2267 100644 --- a/macos/mps/cnn_neuron_hard_sigmoid.gen.go +++ b/macos/mps/cnn_neuron_hard_sigmoid.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package mps @@ -39,10 +39,6 @@ func (cc _CNNNeuronHardSigmoidClass) Alloc() CNNNeuronHardSigmoid { return rv } -func CNNNeuronHardSigmoid_Alloc() CNNNeuronHardSigmoid { - return CNNNeuronHardSigmoidClass.Alloc() -} - func (cc _CNNNeuronHardSigmoidClass) New() CNNNeuronHardSigmoid { rv := objc.Call[CNNNeuronHardSigmoid](cc, objc.Sel("new")) rv.Autorelease() @@ -91,7 +87,6 @@ func NewCNNNeuronHardSigmoidWithDevice(device metal.PDevice) CNNNeuronHardSigmoi func (c_ CNNNeuronHardSigmoid) CopyWithZoneDevice(zone unsafe.Pointer, device metal.PDevice) CNNNeuronHardSigmoid { po1 := objc.WrapAsProtocol("MTLDevice", device) rv := objc.Call[CNNNeuronHardSigmoid](c_, objc.Sel("copyWithZone:device:"), zone, po1) - rv.Autorelease() 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 4ba7766d..e3abd9e8 100644 --- a/macos/mps/cnn_neuron_hard_sigmoid_node.gen.go +++ b/macos/mps/cnn_neuron_hard_sigmoid_node.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package mps @@ -33,16 +33,30 @@ func CNNNeuronHardSigmoidNodeFrom(ptr unsafe.Pointer) CNNNeuronHardSigmoidNode { } } -func (cc _CNNNeuronHardSigmoidNodeClass) NodeWithSource(sourceNode INNImageNode) CNNNeuronHardSigmoidNode { - rv := objc.Call[CNNNeuronHardSigmoidNode](cc, objc.Sel("nodeWithSource:"), objc.Ptr(sourceNode)) +func (c_ CNNNeuronHardSigmoidNode) InitWithSourceAB(sourceNode INNImageNode, a float64, b float64) CNNNeuronHardSigmoidNode { + rv := objc.Call[CNNNeuronHardSigmoidNode](c_, objc.Sel("initWithSource:a:b:"), objc.Ptr(sourceNode), a, b) 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) +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpscnnneuronhardsigmoidnode/2875181-initwithsource?language=objc +func NewCNNNeuronHardSigmoidNodeWithSourceAB(sourceNode INNImageNode, a float64, b float64) CNNNeuronHardSigmoidNode { + instance := CNNNeuronHardSigmoidNodeClass.Alloc().InitWithSourceAB(sourceNode, a, b) + instance.Autorelease() + return instance +} + +func (cc _CNNNeuronHardSigmoidNodeClass) NodeWithSourceAB(sourceNode INNImageNode, a float64, b float64) CNNNeuronHardSigmoidNode { + rv := objc.Call[CNNNeuronHardSigmoidNode](cc, objc.Sel("nodeWithSource:a:b:"), objc.Ptr(sourceNode), a, b) + return rv +} + +// [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpscnnneuronhardsigmoidnode/2875986-nodewithsource?language=objc +func CNNNeuronHardSigmoidNode_NodeWithSourceAB(sourceNode INNImageNode, a float64, b float64) CNNNeuronHardSigmoidNode { + return CNNNeuronHardSigmoidNodeClass.NodeWithSourceAB(sourceNode, a, b) } func (c_ CNNNeuronHardSigmoidNode) InitWithSource(sourceNode INNImageNode) CNNNeuronHardSigmoidNode { @@ -59,13 +73,21 @@ func NewCNNNeuronHardSigmoidNodeWithSource(sourceNode INNImageNode) CNNNeuronHar return instance } -func (cc _CNNNeuronHardSigmoidNodeClass) Alloc() CNNNeuronHardSigmoidNode { - rv := objc.Call[CNNNeuronHardSigmoidNode](cc, objc.Sel("alloc")) +func (cc _CNNNeuronHardSigmoidNodeClass) NodeWithSource(sourceNode INNImageNode) CNNNeuronHardSigmoidNode { + rv := objc.Call[CNNNeuronHardSigmoidNode](cc, objc.Sel("nodeWithSource:"), objc.Ptr(sourceNode)) return rv } -func CNNNeuronHardSigmoidNode_Alloc() CNNNeuronHardSigmoidNode { - return CNNNeuronHardSigmoidNodeClass.Alloc() +// [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 } func (cc _CNNNeuronHardSigmoidNodeClass) New() CNNNeuronHardSigmoidNode { diff --git a/macos/mps/cnn_neuron_linear.gen.go b/macos/mps/cnn_neuron_linear.gen.go index 820e8e2d..3d83b40b 100644 --- a/macos/mps/cnn_neuron_linear.gen.go +++ b/macos/mps/cnn_neuron_linear.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package mps @@ -39,10 +39,6 @@ func (cc _CNNNeuronLinearClass) Alloc() CNNNeuronLinear { return rv } -func CNNNeuronLinear_Alloc() CNNNeuronLinear { - return CNNNeuronLinearClass.Alloc() -} - func (cc _CNNNeuronLinearClass) New() CNNNeuronLinear { rv := objc.Call[CNNNeuronLinear](cc, objc.Sel("new")) rv.Autorelease() @@ -91,7 +87,6 @@ func NewCNNNeuronLinearWithDevice(device metal.PDevice) CNNNeuronLinear { func (c_ CNNNeuronLinear) CopyWithZoneDevice(zone unsafe.Pointer, device metal.PDevice) CNNNeuronLinear { po1 := objc.WrapAsProtocol("MTLDevice", device) rv := objc.Call[CNNNeuronLinear](c_, objc.Sel("copyWithZone:device:"), zone, po1) - rv.Autorelease() return rv } diff --git a/macos/mps/cnn_neuron_linear_node.gen.go b/macos/mps/cnn_neuron_linear_node.gen.go index e105ada5..c168652a 100644 --- a/macos/mps/cnn_neuron_linear_node.gen.go +++ b/macos/mps/cnn_neuron_linear_node.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package mps @@ -33,16 +33,18 @@ func CNNNeuronLinearNodeFrom(ptr unsafe.Pointer) CNNNeuronLinearNode { } } -func (cc _CNNNeuronLinearNodeClass) NodeWithSource(sourceNode INNImageNode) CNNNeuronLinearNode { - rv := objc.Call[CNNNeuronLinearNode](cc, objc.Sel("nodeWithSource:"), objc.Ptr(sourceNode)) +func (c_ CNNNeuronLinearNode) InitWithSourceAB(sourceNode INNImageNode, a float64, b float64) CNNNeuronLinearNode { + rv := objc.Call[CNNNeuronLinearNode](c_, objc.Sel("initWithSource:a:b:"), objc.Ptr(sourceNode), a, b) 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) +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpscnnneuronlinearnode/2866495-initwithsource?language=objc +func NewCNNNeuronLinearNodeWithSourceAB(sourceNode INNImageNode, a float64, b float64) CNNNeuronLinearNode { + instance := CNNNeuronLinearNodeClass.Alloc().InitWithSourceAB(sourceNode, a, b) + instance.Autorelease() + return instance } func (c_ CNNNeuronLinearNode) InitWithSource(sourceNode INNImageNode) CNNNeuronLinearNode { @@ -59,13 +61,33 @@ func NewCNNNeuronLinearNodeWithSource(sourceNode INNImageNode) CNNNeuronLinearNo return instance } -func (cc _CNNNeuronLinearNodeClass) Alloc() CNNNeuronLinearNode { - rv := objc.Call[CNNNeuronLinearNode](cc, objc.Sel("alloc")) +func (cc _CNNNeuronLinearNodeClass) NodeWithSource(sourceNode INNImageNode) CNNNeuronLinearNode { + rv := objc.Call[CNNNeuronLinearNode](cc, objc.Sel("nodeWithSource:"), objc.Ptr(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 float64, b float64) CNNNeuronLinearNode { + rv := objc.Call[CNNNeuronLinearNode](cc, objc.Sel("nodeWithSource:a:b:"), objc.Ptr(sourceNode), a, b) return rv } -func CNNNeuronLinearNode_Alloc() CNNNeuronLinearNode { - return CNNNeuronLinearNodeClass.Alloc() +// [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpscnnneuronlinearnode/2866445-nodewithsource?language=objc +func CNNNeuronLinearNode_NodeWithSourceAB(sourceNode INNImageNode, a float64, b float64) CNNNeuronLinearNode { + return CNNNeuronLinearNodeClass.NodeWithSourceAB(sourceNode, a, b) +} + +func (cc _CNNNeuronLinearNodeClass) Alloc() CNNNeuronLinearNode { + rv := objc.Call[CNNNeuronLinearNode](cc, objc.Sel("alloc")) + return rv } func (cc _CNNNeuronLinearNodeClass) New() CNNNeuronLinearNode { diff --git a/macos/mps/cnn_neuron_logarithm.gen.go b/macos/mps/cnn_neuron_logarithm.gen.go index 8cd83cc7..f0d8967e 100644 --- a/macos/mps/cnn_neuron_logarithm.gen.go +++ b/macos/mps/cnn_neuron_logarithm.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package mps @@ -39,10 +39,6 @@ func (cc _CNNNeuronLogarithmClass) Alloc() CNNNeuronLogarithm { return rv } -func CNNNeuronLogarithm_Alloc() CNNNeuronLogarithm { - return CNNNeuronLogarithmClass.Alloc() -} - func (cc _CNNNeuronLogarithmClass) New() CNNNeuronLogarithm { rv := objc.Call[CNNNeuronLogarithm](cc, objc.Sel("new")) rv.Autorelease() @@ -91,7 +87,6 @@ func NewCNNNeuronLogarithmWithDevice(device metal.PDevice) CNNNeuronLogarithm { func (c_ CNNNeuronLogarithm) CopyWithZoneDevice(zone unsafe.Pointer, device metal.PDevice) CNNNeuronLogarithm { po1 := objc.WrapAsProtocol("MTLDevice", device) rv := objc.Call[CNNNeuronLogarithm](c_, objc.Sel("copyWithZone:device:"), zone, po1) - rv.Autorelease() return rv } diff --git a/macos/mps/cnn_neuron_logarithm_node.gen.go b/macos/mps/cnn_neuron_logarithm_node.gen.go index c447e398..97e71205 100644 --- a/macos/mps/cnn_neuron_logarithm_node.gen.go +++ b/macos/mps/cnn_neuron_logarithm_node.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package mps @@ -33,16 +33,16 @@ func CNNNeuronLogarithmNodeFrom(ptr unsafe.Pointer) CNNNeuronLogarithmNode { } } -func (cc _CNNNeuronLogarithmNodeClass) NodeWithSource(sourceNode INNImageNode) CNNNeuronLogarithmNode { - rv := objc.Call[CNNNeuronLogarithmNode](cc, objc.Sel("nodeWithSource:"), objc.Ptr(sourceNode)) +func (cc _CNNNeuronLogarithmNodeClass) NodeWithSourceABC(sourceNode INNImageNode, a float64, b float64, c float64) CNNNeuronLogarithmNode { + rv := objc.Call[CNNNeuronLogarithmNode](cc, objc.Sel("nodeWithSource:a:b:c:"), objc.Ptr(sourceNode), a, b, c) 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) +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpscnnneuronlogarithmnode/2951943-nodewithsource?language=objc +func CNNNeuronLogarithmNode_NodeWithSourceABC(sourceNode INNImageNode, a float64, b float64, c float64) CNNNeuronLogarithmNode { + return CNNNeuronLogarithmNodeClass.NodeWithSourceABC(sourceNode, a, b, c) } func (c_ CNNNeuronLogarithmNode) InitWithSource(sourceNode INNImageNode) CNNNeuronLogarithmNode { @@ -59,13 +59,35 @@ func NewCNNNeuronLogarithmNodeWithSource(sourceNode INNImageNode) CNNNeuronLogar return instance } -func (cc _CNNNeuronLogarithmNodeClass) Alloc() CNNNeuronLogarithmNode { - rv := objc.Call[CNNNeuronLogarithmNode](cc, objc.Sel("alloc")) +func (c_ CNNNeuronLogarithmNode) InitWithSourceABC(sourceNode INNImageNode, a float64, b float64, c float64) CNNNeuronLogarithmNode { + rv := objc.Call[CNNNeuronLogarithmNode](c_, objc.Sel("initWithSource:a:b:c:"), objc.Ptr(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 float64, b float64, c float64) 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:"), objc.Ptr(sourceNode)) return rv } -func CNNNeuronLogarithmNode_Alloc() CNNNeuronLogarithmNode { - return CNNNeuronLogarithmNodeClass.Alloc() +// [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 } func (cc _CNNNeuronLogarithmNodeClass) New() CNNNeuronLogarithmNode { diff --git a/macos/mps/cnn_neuron_node.gen.go b/macos/mps/cnn_neuron_node.gen.go index a62c1a03..3941e155 100644 --- a/macos/mps/cnn_neuron_node.gen.go +++ b/macos/mps/cnn_neuron_node.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package mps @@ -18,9 +18,9 @@ type _CNNNeuronNodeClass struct { // An interface definition for the [CNNNeuronNode] class. type ICNNNeuronNode interface { INNFilterNode - A() float64 C() float64 B() float64 + A() float64 } // The virtual base class for MPS CNN neuron nodes. [Full Topic] @@ -53,10 +53,6 @@ func (cc _CNNNeuronNodeClass) Alloc() CNNNeuronNode { return rv } -func CNNNeuronNode_Alloc() CNNNeuronNode { - return CNNNeuronNodeClass.Alloc() -} - func (cc _CNNNeuronNodeClass) New() CNNNeuronNode { rv := objc.Call[CNNNeuronNode](cc, objc.Sel("new")) rv.Autorelease() @@ -72,14 +68,6 @@ 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() float64 { - rv := objc.Call[float64](c_, objc.Sel("a")) - return rv -} - // [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpscnnneuronnode/2935553-c?language=objc @@ -95,3 +83,11 @@ func (c_ CNNNeuronNode) B() float64 { rv := objc.Call[float64](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() float64 { + rv := objc.Call[float64](c_, objc.Sel("a")) + return rv +} diff --git a/macos/mps/cnn_neuron_p_re_lu.gen.go b/macos/mps/cnn_neuron_p_re_lu.gen.go index 18c47327..8fffbf54 100644 --- a/macos/mps/cnn_neuron_p_re_lu.gen.go +++ b/macos/mps/cnn_neuron_p_re_lu.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package mps @@ -39,10 +39,6 @@ func (cc _CNNNeuronPReLUClass) Alloc() CNNNeuronPReLU { return rv } -func CNNNeuronPReLU_Alloc() CNNNeuronPReLU { - return CNNNeuronPReLUClass.Alloc() -} - func (cc _CNNNeuronPReLUClass) New() CNNNeuronPReLU { rv := objc.Call[CNNNeuronPReLU](cc, objc.Sel("new")) rv.Autorelease() @@ -91,7 +87,6 @@ func NewCNNNeuronPReLUWithDevice(device metal.PDevice) CNNNeuronPReLU { func (c_ CNNNeuronPReLU) CopyWithZoneDevice(zone unsafe.Pointer, device metal.PDevice) CNNNeuronPReLU { po1 := objc.WrapAsProtocol("MTLDevice", device) rv := objc.Call[CNNNeuronPReLU](c_, objc.Sel("copyWithZone:device:"), zone, po1) - rv.Autorelease() return rv } diff --git a/macos/mps/cnn_neuron_p_re_lu_node.gen.go b/macos/mps/cnn_neuron_p_re_lu_node.gen.go index 5877f9af..139271e2 100644 --- a/macos/mps/cnn_neuron_p_re_lu_node.gen.go +++ b/macos/mps/cnn_neuron_p_re_lu_node.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package mps @@ -64,10 +64,6 @@ func (cc _CNNNeuronPReLUNodeClass) Alloc() CNNNeuronPReLUNode { return rv } -func CNNNeuronPReLUNode_Alloc() CNNNeuronPReLUNode { - return CNNNeuronPReLUNodeClass.Alloc() -} - func (cc _CNNNeuronPReLUNodeClass) New() CNNNeuronPReLUNode { rv := objc.Call[CNNNeuronPReLUNode](cc, objc.Sel("new")) rv.Autorelease() diff --git a/macos/mps/cnn_neuron_power.gen.go b/macos/mps/cnn_neuron_power.gen.go index a1b0d93f..b29c4369 100644 --- a/macos/mps/cnn_neuron_power.gen.go +++ b/macos/mps/cnn_neuron_power.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package mps @@ -39,10 +39,6 @@ func (cc _CNNNeuronPowerClass) Alloc() CNNNeuronPower { return rv } -func CNNNeuronPower_Alloc() CNNNeuronPower { - return CNNNeuronPowerClass.Alloc() -} - func (cc _CNNNeuronPowerClass) New() CNNNeuronPower { rv := objc.Call[CNNNeuronPower](cc, objc.Sel("new")) rv.Autorelease() @@ -91,7 +87,6 @@ func NewCNNNeuronPowerWithDevice(device metal.PDevice) CNNNeuronPower { func (c_ CNNNeuronPower) CopyWithZoneDevice(zone unsafe.Pointer, device metal.PDevice) CNNNeuronPower { po1 := objc.WrapAsProtocol("MTLDevice", device) rv := objc.Call[CNNNeuronPower](c_, objc.Sel("copyWithZone:device:"), zone, po1) - rv.Autorelease() return rv } diff --git a/macos/mps/cnn_neuron_power_node.gen.go b/macos/mps/cnn_neuron_power_node.gen.go index 6228d059..860a731f 100644 --- a/macos/mps/cnn_neuron_power_node.gen.go +++ b/macos/mps/cnn_neuron_power_node.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package mps @@ -45,6 +45,32 @@ func CNNNeuronPowerNode_NodeWithSource(sourceNode INNImageNode) CNNNeuronPowerNo return CNNNeuronPowerNodeClass.NodeWithSource(sourceNode) } +func (cc _CNNNeuronPowerNodeClass) NodeWithSourceABC(sourceNode INNImageNode, a float64, b float64, c float64) CNNNeuronPowerNode { + rv := objc.Call[CNNNeuronPowerNode](cc, objc.Sel("nodeWithSource:a:b:c:"), objc.Ptr(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 float64, b float64, c float64) CNNNeuronPowerNode { + return CNNNeuronPowerNodeClass.NodeWithSourceABC(sourceNode, a, b, c) +} + +func (c_ CNNNeuronPowerNode) InitWithSourceABC(sourceNode INNImageNode, a float64, b float64, c float64) CNNNeuronPowerNode { + rv := objc.Call[CNNNeuronPowerNode](c_, objc.Sel("initWithSource:a:b:c:"), objc.Ptr(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 float64, b float64, c float64) 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:"), objc.Ptr(sourceNode)) return rv @@ -64,10 +90,6 @@ func (cc _CNNNeuronPowerNodeClass) Alloc() CNNNeuronPowerNode { return rv } -func CNNNeuronPowerNode_Alloc() CNNNeuronPowerNode { - return CNNNeuronPowerNodeClass.Alloc() -} - func (cc _CNNNeuronPowerNodeClass) New() CNNNeuronPowerNode { rv := objc.Call[CNNNeuronPowerNode](cc, objc.Sel("new")) rv.Autorelease() diff --git a/macos/mps/cnn_neuron_re_lu.gen.go b/macos/mps/cnn_neuron_re_lu.gen.go index 1136a7d2..197361b4 100644 --- a/macos/mps/cnn_neuron_re_lu.gen.go +++ b/macos/mps/cnn_neuron_re_lu.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package mps @@ -39,10 +39,6 @@ func (cc _CNNNeuronReLUClass) Alloc() CNNNeuronReLU { return rv } -func CNNNeuronReLU_Alloc() CNNNeuronReLU { - return CNNNeuronReLUClass.Alloc() -} - func (cc _CNNNeuronReLUClass) New() CNNNeuronReLU { rv := objc.Call[CNNNeuronReLU](cc, objc.Sel("new")) rv.Autorelease() @@ -91,7 +87,6 @@ func NewCNNNeuronReLUWithDevice(device metal.PDevice) CNNNeuronReLU { func (c_ CNNNeuronReLU) CopyWithZoneDevice(zone unsafe.Pointer, device metal.PDevice) CNNNeuronReLU { po1 := objc.WrapAsProtocol("MTLDevice", device) rv := objc.Call[CNNNeuronReLU](c_, objc.Sel("copyWithZone:device:"), zone, po1) - rv.Autorelease() 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 cd1491f1..8d190db8 100644 --- a/macos/mps/cnn_neuron_re_lu_node.gen.go +++ b/macos/mps/cnn_neuron_re_lu_node.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package mps @@ -59,13 +59,35 @@ func NewCNNNeuronReLUNodeWithSource(sourceNode INNImageNode) CNNNeuronReLUNode { return instance } -func (cc _CNNNeuronReLUNodeClass) Alloc() CNNNeuronReLUNode { - rv := objc.Call[CNNNeuronReLUNode](cc, objc.Sel("alloc")) +func (cc _CNNNeuronReLUNodeClass) NodeWithSourceA(sourceNode INNImageNode, a float64) CNNNeuronReLUNode { + rv := objc.Call[CNNNeuronReLUNode](cc, objc.Sel("nodeWithSource:a:"), objc.Ptr(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 float64) CNNNeuronReLUNode { + return CNNNeuronReLUNodeClass.NodeWithSourceA(sourceNode, a) +} + +func (c_ CNNNeuronReLUNode) InitWithSourceA(sourceNode INNImageNode, a float64) CNNNeuronReLUNode { + rv := objc.Call[CNNNeuronReLUNode](c_, objc.Sel("initWithSource:a:"), objc.Ptr(sourceNode), a) return rv } -func CNNNeuronReLUNode_Alloc() CNNNeuronReLUNode { - return CNNNeuronReLUNodeClass.Alloc() +// [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpscnnneuronrelunode/2921462-initwithsource?language=objc +func NewCNNNeuronReLUNodeWithSourceA(sourceNode INNImageNode, a float64) 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 } func (cc _CNNNeuronReLUNodeClass) New() CNNNeuronReLUNode { diff --git a/macos/mps/cnn_neuron_re_lun.gen.go b/macos/mps/cnn_neuron_re_lun.gen.go index 6a900d81..9069edad 100644 --- a/macos/mps/cnn_neuron_re_lun.gen.go +++ b/macos/mps/cnn_neuron_re_lun.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package mps @@ -39,10 +39,6 @@ func (cc _CNNNeuronReLUNClass) Alloc() CNNNeuronReLUN { return rv } -func CNNNeuronReLUN_Alloc() CNNNeuronReLUN { - return CNNNeuronReLUNClass.Alloc() -} - func (cc _CNNNeuronReLUNClass) New() CNNNeuronReLUN { rv := objc.Call[CNNNeuronReLUN](cc, objc.Sel("new")) rv.Autorelease() @@ -91,7 +87,6 @@ func NewCNNNeuronReLUNWithDevice(device metal.PDevice) CNNNeuronReLUN { func (c_ CNNNeuronReLUN) CopyWithZoneDevice(zone unsafe.Pointer, device metal.PDevice) CNNNeuronReLUN { po1 := objc.WrapAsProtocol("MTLDevice", device) rv := objc.Call[CNNNeuronReLUN](c_, objc.Sel("copyWithZone:device:"), zone, po1) - rv.Autorelease() 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 7ae9cf2e..08cf4973 100644 --- a/macos/mps/cnn_neuron_re_lun_node.gen.go +++ b/macos/mps/cnn_neuron_re_lun_node.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package mps @@ -45,6 +45,32 @@ func CNNNeuronReLUNNode_NodeWithSource(sourceNode INNImageNode) CNNNeuronReLUNNo return CNNNeuronReLUNNodeClass.NodeWithSource(sourceNode) } +func (cc _CNNNeuronReLUNNodeClass) NodeWithSourceAB(sourceNode INNImageNode, a float64, b float64) CNNNeuronReLUNNode { + rv := objc.Call[CNNNeuronReLUNNode](cc, objc.Sel("nodeWithSource:a:b:"), objc.Ptr(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 float64, b float64) CNNNeuronReLUNNode { + return CNNNeuronReLUNNodeClass.NodeWithSourceAB(sourceNode, a, b) +} + +func (c_ CNNNeuronReLUNNode) InitWithSourceAB(sourceNode INNImageNode, a float64, b float64) CNNNeuronReLUNNode { + rv := objc.Call[CNNNeuronReLUNNode](c_, objc.Sel("initWithSource:a:b:"), objc.Ptr(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 float64, b float64) 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:"), objc.Ptr(sourceNode)) return rv @@ -64,10 +90,6 @@ func (cc _CNNNeuronReLUNNodeClass) Alloc() CNNNeuronReLUNNode { return rv } -func CNNNeuronReLUNNode_Alloc() CNNNeuronReLUNNode { - return CNNNeuronReLUNNodeClass.Alloc() -} - func (cc _CNNNeuronReLUNNodeClass) New() CNNNeuronReLUNNode { rv := objc.Call[CNNNeuronReLUNNode](cc, objc.Sel("new")) rv.Autorelease() diff --git a/macos/mps/cnn_neuron_sigmoid.gen.go b/macos/mps/cnn_neuron_sigmoid.gen.go index 78698848..ba393eb6 100644 --- a/macos/mps/cnn_neuron_sigmoid.gen.go +++ b/macos/mps/cnn_neuron_sigmoid.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package mps @@ -39,10 +39,6 @@ func (cc _CNNNeuronSigmoidClass) Alloc() CNNNeuronSigmoid { return rv } -func CNNNeuronSigmoid_Alloc() CNNNeuronSigmoid { - return CNNNeuronSigmoidClass.Alloc() -} - func (cc _CNNNeuronSigmoidClass) New() CNNNeuronSigmoid { rv := objc.Call[CNNNeuronSigmoid](cc, objc.Sel("new")) rv.Autorelease() @@ -91,7 +87,6 @@ func NewCNNNeuronSigmoidWithDevice(device metal.PDevice) CNNNeuronSigmoid { func (c_ CNNNeuronSigmoid) CopyWithZoneDevice(zone unsafe.Pointer, device metal.PDevice) CNNNeuronSigmoid { po1 := objc.WrapAsProtocol("MTLDevice", device) rv := objc.Call[CNNNeuronSigmoid](c_, objc.Sel("copyWithZone:device:"), zone, po1) - rv.Autorelease() return rv } diff --git a/macos/mps/cnn_neuron_sigmoid_node.gen.go b/macos/mps/cnn_neuron_sigmoid_node.gen.go index 7eed51c4..e0184370 100644 --- a/macos/mps/cnn_neuron_sigmoid_node.gen.go +++ b/macos/mps/cnn_neuron_sigmoid_node.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package mps @@ -64,10 +64,6 @@ func (cc _CNNNeuronSigmoidNodeClass) Alloc() CNNNeuronSigmoidNode { return rv } -func CNNNeuronSigmoidNode_Alloc() CNNNeuronSigmoidNode { - return CNNNeuronSigmoidNodeClass.Alloc() -} - func (cc _CNNNeuronSigmoidNodeClass) New() CNNNeuronSigmoidNode { rv := objc.Call[CNNNeuronSigmoidNode](cc, objc.Sel("new")) rv.Autorelease() diff --git a/macos/mps/cnn_neuron_soft_plus.gen.go b/macos/mps/cnn_neuron_soft_plus.gen.go index b023762a..a1f8bd71 100644 --- a/macos/mps/cnn_neuron_soft_plus.gen.go +++ b/macos/mps/cnn_neuron_soft_plus.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package mps @@ -39,10 +39,6 @@ func (cc _CNNNeuronSoftPlusClass) Alloc() CNNNeuronSoftPlus { return rv } -func CNNNeuronSoftPlus_Alloc() CNNNeuronSoftPlus { - return CNNNeuronSoftPlusClass.Alloc() -} - func (cc _CNNNeuronSoftPlusClass) New() CNNNeuronSoftPlus { rv := objc.Call[CNNNeuronSoftPlus](cc, objc.Sel("new")) rv.Autorelease() @@ -91,7 +87,6 @@ func NewCNNNeuronSoftPlusWithDevice(device metal.PDevice) CNNNeuronSoftPlus { func (c_ CNNNeuronSoftPlus) CopyWithZoneDevice(zone unsafe.Pointer, device metal.PDevice) CNNNeuronSoftPlus { po1 := objc.WrapAsProtocol("MTLDevice", device) rv := objc.Call[CNNNeuronSoftPlus](c_, objc.Sel("copyWithZone:device:"), zone, po1) - rv.Autorelease() 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 fad066f1..68f26bfa 100644 --- a/macos/mps/cnn_neuron_soft_plus_node.gen.go +++ b/macos/mps/cnn_neuron_soft_plus_node.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package mps @@ -33,16 +33,30 @@ func CNNNeuronSoftPlusNodeFrom(ptr unsafe.Pointer) CNNNeuronSoftPlusNode { } } -func (cc _CNNNeuronSoftPlusNodeClass) NodeWithSource(sourceNode INNImageNode) CNNNeuronSoftPlusNode { - rv := objc.Call[CNNNeuronSoftPlusNode](cc, objc.Sel("nodeWithSource:"), objc.Ptr(sourceNode)) +func (c_ CNNNeuronSoftPlusNode) InitWithSourceAB(sourceNode INNImageNode, a float64, b float64) CNNNeuronSoftPlusNode { + rv := objc.Call[CNNNeuronSoftPlusNode](c_, objc.Sel("initWithSource:a:b:"), objc.Ptr(sourceNode), a, b) 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) +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpscnnneuronsoftplusnode/2866413-initwithsource?language=objc +func NewCNNNeuronSoftPlusNodeWithSourceAB(sourceNode INNImageNode, a float64, b float64) CNNNeuronSoftPlusNode { + instance := CNNNeuronSoftPlusNodeClass.Alloc().InitWithSourceAB(sourceNode, a, b) + instance.Autorelease() + return instance +} + +func (cc _CNNNeuronSoftPlusNodeClass) NodeWithSourceAB(sourceNode INNImageNode, a float64, b float64) CNNNeuronSoftPlusNode { + rv := objc.Call[CNNNeuronSoftPlusNode](cc, objc.Sel("nodeWithSource:a:b:"), objc.Ptr(sourceNode), a, b) + return rv +} + +// [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpscnnneuronsoftplusnode/2866450-nodewithsource?language=objc +func CNNNeuronSoftPlusNode_NodeWithSourceAB(sourceNode INNImageNode, a float64, b float64) CNNNeuronSoftPlusNode { + return CNNNeuronSoftPlusNodeClass.NodeWithSourceAB(sourceNode, a, b) } func (c_ CNNNeuronSoftPlusNode) InitWithSource(sourceNode INNImageNode) CNNNeuronSoftPlusNode { @@ -59,13 +73,21 @@ func NewCNNNeuronSoftPlusNodeWithSource(sourceNode INNImageNode) CNNNeuronSoftPl return instance } -func (cc _CNNNeuronSoftPlusNodeClass) Alloc() CNNNeuronSoftPlusNode { - rv := objc.Call[CNNNeuronSoftPlusNode](cc, objc.Sel("alloc")) +func (cc _CNNNeuronSoftPlusNodeClass) NodeWithSource(sourceNode INNImageNode) CNNNeuronSoftPlusNode { + rv := objc.Call[CNNNeuronSoftPlusNode](cc, objc.Sel("nodeWithSource:"), objc.Ptr(sourceNode)) return rv } -func CNNNeuronSoftPlusNode_Alloc() CNNNeuronSoftPlusNode { - return CNNNeuronSoftPlusNodeClass.Alloc() +// [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 } func (cc _CNNNeuronSoftPlusNodeClass) New() CNNNeuronSoftPlusNode { diff --git a/macos/mps/cnn_neuron_soft_sign.gen.go b/macos/mps/cnn_neuron_soft_sign.gen.go index c076e88a..791a5f3e 100644 --- a/macos/mps/cnn_neuron_soft_sign.gen.go +++ b/macos/mps/cnn_neuron_soft_sign.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package mps @@ -39,10 +39,6 @@ func (cc _CNNNeuronSoftSignClass) Alloc() CNNNeuronSoftSign { return rv } -func CNNNeuronSoftSign_Alloc() CNNNeuronSoftSign { - return CNNNeuronSoftSignClass.Alloc() -} - func (cc _CNNNeuronSoftSignClass) New() CNNNeuronSoftSign { rv := objc.Call[CNNNeuronSoftSign](cc, objc.Sel("new")) rv.Autorelease() @@ -91,7 +87,6 @@ func NewCNNNeuronSoftSignWithDevice(device metal.PDevice) CNNNeuronSoftSign { func (c_ CNNNeuronSoftSign) CopyWithZoneDevice(zone unsafe.Pointer, device metal.PDevice) CNNNeuronSoftSign { po1 := objc.WrapAsProtocol("MTLDevice", device) rv := objc.Call[CNNNeuronSoftSign](c_, objc.Sel("copyWithZone:device:"), zone, po1) - rv.Autorelease() return rv } diff --git a/macos/mps/cnn_neuron_soft_sign_node.gen.go b/macos/mps/cnn_neuron_soft_sign_node.gen.go index 86a443fb..b39a13b3 100644 --- a/macos/mps/cnn_neuron_soft_sign_node.gen.go +++ b/macos/mps/cnn_neuron_soft_sign_node.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package mps @@ -64,10 +64,6 @@ func (cc _CNNNeuronSoftSignNodeClass) Alloc() CNNNeuronSoftSignNode { return rv } -func CNNNeuronSoftSignNode_Alloc() CNNNeuronSoftSignNode { - return CNNNeuronSoftSignNodeClass.Alloc() -} - func (cc _CNNNeuronSoftSignNodeClass) New() CNNNeuronSoftSignNode { rv := objc.Call[CNNNeuronSoftSignNode](cc, objc.Sel("new")) rv.Autorelease() diff --git a/macos/mps/cnn_neuron_tan_h.gen.go b/macos/mps/cnn_neuron_tan_h.gen.go index d21f6da6..a0ce4d60 100644 --- a/macos/mps/cnn_neuron_tan_h.gen.go +++ b/macos/mps/cnn_neuron_tan_h.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package mps @@ -39,10 +39,6 @@ func (cc _CNNNeuronTanHClass) Alloc() CNNNeuronTanH { return rv } -func CNNNeuronTanH_Alloc() CNNNeuronTanH { - return CNNNeuronTanHClass.Alloc() -} - func (cc _CNNNeuronTanHClass) New() CNNNeuronTanH { rv := objc.Call[CNNNeuronTanH](cc, objc.Sel("new")) rv.Autorelease() @@ -91,7 +87,6 @@ func NewCNNNeuronTanHWithDevice(device metal.PDevice) CNNNeuronTanH { func (c_ CNNNeuronTanH) CopyWithZoneDevice(zone unsafe.Pointer, device metal.PDevice) CNNNeuronTanH { po1 := objc.WrapAsProtocol("MTLDevice", device) rv := objc.Call[CNNNeuronTanH](c_, objc.Sel("copyWithZone:device:"), zone, po1) - rv.Autorelease() 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 87bb1ca4..fd90382d 100644 --- a/macos/mps/cnn_neuron_tan_h_node.gen.go +++ b/macos/mps/cnn_neuron_tan_h_node.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package mps @@ -33,6 +33,34 @@ func CNNNeuronTanHNodeFrom(ptr unsafe.Pointer) CNNNeuronTanHNode { } } +func (c_ CNNNeuronTanHNode) InitWithSource(sourceNode INNImageNode) CNNNeuronTanHNode { + rv := objc.Call[CNNNeuronTanHNode](c_, objc.Sel("initWithSource:"), objc.Ptr(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 float64, b float64) CNNNeuronTanHNode { + rv := objc.Call[CNNNeuronTanHNode](c_, objc.Sel("initWithSource:a:b:"), objc.Ptr(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 float64, b float64) 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:"), objc.Ptr(sourceNode)) return rv @@ -45,18 +73,16 @@ func CNNNeuronTanHNode_NodeWithSource(sourceNode INNImageNode) CNNNeuronTanHNode return CNNNeuronTanHNodeClass.NodeWithSource(sourceNode) } -func (c_ CNNNeuronTanHNode) InitWithSource(sourceNode INNImageNode) CNNNeuronTanHNode { - rv := objc.Call[CNNNeuronTanHNode](c_, objc.Sel("initWithSource:"), objc.Ptr(sourceNode)) +func (cc _CNNNeuronTanHNodeClass) NodeWithSourceAB(sourceNode INNImageNode, a float64, b float64) CNNNeuronTanHNode { + rv := objc.Call[CNNNeuronTanHNode](cc, objc.Sel("nodeWithSource:a:b:"), objc.Ptr(sourceNode), a, b) 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 +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpscnnneurontanhnode/2866416-nodewithsource?language=objc +func CNNNeuronTanHNode_NodeWithSourceAB(sourceNode INNImageNode, a float64, b float64) CNNNeuronTanHNode { + return CNNNeuronTanHNodeClass.NodeWithSourceAB(sourceNode, a, b) } func (cc _CNNNeuronTanHNodeClass) Alloc() CNNNeuronTanHNode { @@ -64,10 +90,6 @@ func (cc _CNNNeuronTanHNodeClass) Alloc() CNNNeuronTanHNode { return rv } -func CNNNeuronTanHNode_Alloc() CNNNeuronTanHNode { - return CNNNeuronTanHNodeClass.Alloc() -} - func (cc _CNNNeuronTanHNodeClass) New() CNNNeuronTanHNode { rv := objc.Call[CNNNeuronTanHNode](cc, objc.Sel("new")) rv.Autorelease() 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 d7ebba10..5811795b 100644 --- a/macos/mps/cnn_normalization_gamma_and_beta_state.gen.go +++ b/macos/mps/cnn_normalization_gamma_and_beta_state.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package mps @@ -19,8 +19,8 @@ type _CNNNormalizationGammaAndBetaStateClass struct { // An interface definition for the [CNNNormalizationGammaAndBetaState] class. type ICNNNormalizationGammaAndBetaState interface { IState - Beta() metal.BufferWrapper - Gamma() metal.BufferWrapper + Beta() metal.BufferObject + Gamma() metal.BufferObject } // An object that stores gamma and beta terms used to apply a scale and bias in instance- or batch-normalization operations. [Full Topic] @@ -36,6 +36,19 @@ 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) @@ -52,28 +65,11 @@ 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 } -func CNNNormalizationGammaAndBetaState_Alloc() CNNNormalizationGammaAndBetaState { - return CNNNormalizationGammaAndBetaStateClass.Alloc() -} - func (cc _CNNNormalizationGammaAndBetaStateClass) New() CNNNormalizationGammaAndBetaState { rv := objc.Call[CNNNormalizationGammaAndBetaState](cc, objc.Sel("new")) rv.Autorelease() @@ -89,16 +85,45 @@ func (c_ CNNNormalizationGammaAndBetaState) Init() CNNNormalizationGammaAndBetaS return rv } -func (c_ CNNNormalizationGammaAndBetaState) InitWithResources(resources []metal.PResource) CNNNormalizationGammaAndBetaState { - rv := objc.Call[CNNNormalizationGammaAndBetaState](c_, objc.Sel("initWithResources:"), resources) +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, objc.Ptr(resourceList)) 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/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, objc.Ptr(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) + 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) instance.Autorelease() return instance } @@ -118,46 +143,86 @@ func NewCNNNormalizationGammaAndBetaStateWithDeviceBufferSize(device metal.PDevi 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 } -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, objc.Ptr(resourceList)) +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/2947915-temporarystatewithcommandbuffer?language=objc -func CNNNormalizationGammaAndBetaState_TemporaryStateWithCommandBufferResourceList(commandBuffer metal.PCommandBuffer, resourceList IStateResourceList) CNNNormalizationGammaAndBetaState { - return CNNNormalizationGammaAndBetaStateClass.TemporaryStateWithCommandBufferResourceList(commandBuffer, resourceList) +// [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, objc.Ptr(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, objc.Ptr(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] // // [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpscnnnormalizationgammaandbetastate/2953938-beta?language=objc -func (c_ CNNNormalizationGammaAndBetaState) Beta() metal.BufferWrapper { - rv := objc.Call[metal.BufferWrapper](c_, objc.Sel("beta")) +func (c_ CNNNormalizationGammaAndBetaState) Beta() metal.BufferObject { + rv := objc.Call[metal.BufferObject](c_, objc.Sel("beta")) return rv } // [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpscnnnormalizationgammaandbetastate/2953934-gamma?language=objc -func (c_ CNNNormalizationGammaAndBetaState) Gamma() metal.BufferWrapper { - rv := objc.Call[metal.BufferWrapper](c_, objc.Sel("gamma")) +func (c_ CNNNormalizationGammaAndBetaState) Gamma() metal.BufferObject { + rv := objc.Call[metal.BufferObject](c_, objc.Sel("gamma")) return rv } 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 0ce21a8d..75cced3d 100644 --- a/macos/mps/cnn_normalization_mean_and_variance_state.gen.go +++ b/macos/mps/cnn_normalization_mean_and_variance_state.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package mps @@ -19,8 +19,8 @@ type _CNNNormalizationMeanAndVarianceStateClass struct { // An interface definition for the [CNNNormalizationMeanAndVarianceState] class. type ICNNNormalizationMeanAndVarianceState interface { IState - Variance() metal.BufferWrapper - Mean() metal.BufferWrapper + Mean() metal.BufferObject + Variance() metal.BufferObject } // An object that stores mean and variance terms used to execute batch normalization. [Full Topic] @@ -36,6 +36,19 @@ 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) @@ -52,28 +65,11 @@ 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 } -func CNNNormalizationMeanAndVarianceState_Alloc() CNNNormalizationMeanAndVarianceState { - return CNNNormalizationMeanAndVarianceStateClass.Alloc() -} - func (cc _CNNNormalizationMeanAndVarianceStateClass) New() CNNNormalizationMeanAndVarianceState { rv := objc.Call[CNNNormalizationMeanAndVarianceState](cc, objc.Sel("new")) rv.Autorelease() @@ -89,16 +85,45 @@ func (c_ CNNNormalizationMeanAndVarianceState) Init() CNNNormalizationMeanAndVar return rv } -func (c_ CNNNormalizationMeanAndVarianceState) InitWithResources(resources []metal.PResource) CNNNormalizationMeanAndVarianceState { - rv := objc.Call[CNNNormalizationMeanAndVarianceState](c_, objc.Sel("initWithResources:"), resources) +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, objc.Ptr(resourceList)) 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/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, objc.Ptr(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) + 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) instance.Autorelease() return instance } @@ -118,46 +143,86 @@ func NewCNNNormalizationMeanAndVarianceStateWithDeviceBufferSize(device metal.PD 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 } -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, objc.Ptr(resourceList)) +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/2947915-temporarystatewithcommandbuffer?language=objc -func CNNNormalizationMeanAndVarianceState_TemporaryStateWithCommandBufferResourceList(commandBuffer metal.PCommandBuffer, resourceList IStateResourceList) CNNNormalizationMeanAndVarianceState { - return CNNNormalizationMeanAndVarianceStateClass.TemporaryStateWithCommandBufferResourceList(commandBuffer, resourceList) +// [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) + return rv } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpscnnnormalizationmeanandvariancestate/3002366-variance?language=objc -func (c_ CNNNormalizationMeanAndVarianceState) Variance() metal.BufferWrapper { - rv := objc.Call[metal.BufferWrapper](c_, objc.Sel("variance")) +// [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, objc.Ptr(descriptor)) + return rv +} + +// [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, objc.Ptr(resourceList)) 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 -func (c_ CNNNormalizationMeanAndVarianceState) Mean() metal.BufferWrapper { - rv := objc.Call[metal.BufferWrapper](c_, objc.Sel("mean")) +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 10a7c0a6..a0d136fb 100644 --- a/macos/mps/cnn_normalization_node.gen.go +++ b/macos/mps/cnn_normalization_node.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package mps @@ -20,10 +20,10 @@ type ICNNNormalizationNode interface { INNFilterNode Beta() float64 SetBeta(value float64) - Delta() float64 - SetDelta(value float64) Alpha() float64 SetAlpha(value float64) + Delta() float64 + SetDelta(value float64) } // Virtual base class for CNN normalization nodes. [Full Topic] @@ -39,18 +39,6 @@ func CNNNormalizationNodeFrom(ptr unsafe.Pointer) CNNNormalizationNode { } } -func (cc _CNNNormalizationNodeClass) NodeWithSource(sourceNode INNImageNode) CNNNormalizationNode { - rv := objc.Call[CNNNormalizationNode](cc, objc.Sel("nodeWithSource:"), objc.Ptr(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) -} - func (c_ CNNNormalizationNode) InitWithSource(sourceNode INNImageNode) CNNNormalizationNode { rv := objc.Call[CNNNormalizationNode](c_, objc.Sel("initWithSource:"), objc.Ptr(sourceNode)) return rv @@ -65,13 +53,21 @@ func NewCNNNormalizationNodeWithSource(sourceNode INNImageNode) CNNNormalization return instance } -func (cc _CNNNormalizationNodeClass) Alloc() CNNNormalizationNode { - rv := objc.Call[CNNNormalizationNode](cc, objc.Sel("alloc")) +func (cc _CNNNormalizationNodeClass) NodeWithSource(sourceNode INNImageNode) CNNNormalizationNode { + rv := objc.Call[CNNNormalizationNode](cc, objc.Sel("nodeWithSource:"), objc.Ptr(sourceNode)) return rv } -func CNNNormalizationNode_Alloc() CNNNormalizationNode { - return CNNNormalizationNodeClass.Alloc() +// [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) +} + +func (cc _CNNNormalizationNodeClass) Alloc() CNNNormalizationNode { + rv := objc.Call[CNNNormalizationNode](cc, objc.Sel("alloc")) + return rv } func (cc _CNNNormalizationNodeClass) New() CNNNormalizationNode { @@ -106,30 +102,30 @@ func (c_ CNNNormalizationNode) SetBeta(value float64) { // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpscnnnormalizationnode/2866482-delta?language=objc -func (c_ CNNNormalizationNode) Delta() float64 { - rv := objc.Call[float64](c_, objc.Sel("delta")) +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpscnnnormalizationnode/2866474-alpha?language=objc +func (c_ CNNNormalizationNode) Alpha() float64 { + rv := objc.Call[float64](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 float64) { - 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 float64) { + objc.Call[objc.Void](c_, objc.Sel("setAlpha:"), value) } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpscnnnormalizationnode/2866474-alpha?language=objc -func (c_ CNNNormalizationNode) Alpha() float64 { - rv := objc.Call[float64](c_, objc.Sel("alpha")) +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpscnnnormalizationnode/2866482-delta?language=objc +func (c_ CNNNormalizationNode) Delta() float64 { + rv := objc.Call[float64](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 float64) { - 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 float64) { + objc.Call[objc.Void](c_, objc.Sel("setDelta:"), value) } diff --git a/macos/mps/cnn_pooling.gen.go b/macos/mps/cnn_pooling.gen.go index 5575abef..b9b99573 100644 --- a/macos/mps/cnn_pooling.gen.go +++ b/macos/mps/cnn_pooling.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package mps @@ -49,13 +49,24 @@ func NewCNNPoolingWithDeviceKernelWidthKernelHeightStrideInPixelsXStrideInPixels return instance } -func (cc _CNNPoolingClass) Alloc() CNNPooling { - rv := objc.Call[CNNPooling](cc, objc.Sel("alloc")) +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 } -func CNNPooling_Alloc() CNNPooling { - return CNNPoolingClass.Alloc() +// 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 } func (cc _CNNPoolingClass) New() CNNPooling { @@ -91,7 +102,6 @@ func NewCNNPoolingWithDevice(device metal.PDevice) CNNPooling { func (c_ CNNPooling) CopyWithZoneDevice(zone unsafe.Pointer, device metal.PDevice) CNNPooling { po1 := objc.WrapAsProtocol("MTLDevice", device) rv := objc.Call[CNNPooling](c_, objc.Sel("copyWithZone:device:"), zone, po1) - rv.Autorelease() return rv } diff --git a/macos/mps/cnn_pooling_average.gen.go b/macos/mps/cnn_pooling_average.gen.go index dbe07261..40a7ce6f 100644 --- a/macos/mps/cnn_pooling_average.gen.go +++ b/macos/mps/cnn_pooling_average.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package mps @@ -19,10 +19,10 @@ type _CNNPoolingAverageClass struct { // An interface definition for the [CNNPoolingAverage] class. type ICNNPoolingAverage interface { ICNNPooling - ZeroPadSizeX() uint - SetZeroPadSizeX(value uint) ZeroPadSizeY() uint SetZeroPadSizeY(value uint) + ZeroPadSizeX() uint + SetZeroPadSizeX(value uint) } // An average pooling filter. [Full Topic] @@ -58,10 +58,6 @@ func (cc _CNNPoolingAverageClass) Alloc() CNNPoolingAverage { return rv } -func CNNPoolingAverage_Alloc() CNNPoolingAverage { - return CNNPoolingAverageClass.Alloc() -} - func (cc _CNNPoolingAverageClass) New() CNNPoolingAverage { rv := objc.Call[CNNPoolingAverage](cc, objc.Sel("new")) rv.Autorelease() @@ -77,6 +73,21 @@ 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) @@ -95,7 +106,6 @@ func NewCNNPoolingAverageWithDevice(device metal.PDevice) CNNPoolingAverage { func (c_ CNNPoolingAverage) CopyWithZoneDevice(zone unsafe.Pointer, device metal.PDevice) CNNPoolingAverage { po1 := objc.WrapAsProtocol("MTLDevice", device) rv := objc.Call[CNNPoolingAverage](c_, objc.Sel("copyWithZone:device:"), zone, po1) - rv.Autorelease() return rv } @@ -110,30 +120,30 @@ func CNNPoolingAverage_CopyWithZoneDevice(zone unsafe.Pointer, device metal.PDev // [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) } // [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) } diff --git a/macos/mps/cnn_pooling_average_gradient.gen.go b/macos/mps/cnn_pooling_average_gradient.gen.go index 8d861d41..b6658ad2 100644 --- a/macos/mps/cnn_pooling_average_gradient.gen.go +++ b/macos/mps/cnn_pooling_average_gradient.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package mps @@ -58,10 +58,6 @@ func (cc _CNNPoolingAverageGradientClass) Alloc() CNNPoolingAverageGradient { return rv } -func CNNPoolingAverageGradient_Alloc() CNNPoolingAverageGradient { - return CNNPoolingAverageGradientClass.Alloc() -} - func (cc _CNNPoolingAverageGradientClass) New() CNNPoolingAverageGradient { rv := objc.Call[CNNPoolingAverageGradient](cc, objc.Sel("new")) rv.Autorelease() @@ -110,7 +106,6 @@ func NewCNNPoolingAverageGradientWithDevice(device metal.PDevice) CNNPoolingAver func (c_ CNNPoolingAverageGradient) CopyWithZoneDevice(zone unsafe.Pointer, device metal.PDevice) CNNPoolingAverageGradient { po1 := objc.WrapAsProtocol("MTLDevice", device) rv := objc.Call[CNNPoolingAverageGradient](c_, objc.Sel("copyWithZone:device:"), zone, po1) - rv.Autorelease() return rv } diff --git a/macos/mps/cnn_pooling_average_gradient_node.gen.go b/macos/mps/cnn_pooling_average_gradient_node.gen.go index edf3e5d0..e5d0015d 100644 --- a/macos/mps/cnn_pooling_average_gradient_node.gen.go +++ b/macos/mps/cnn_pooling_average_gradient_node.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package mps @@ -38,10 +38,6 @@ func (cc _CNNPoolingAverageGradientNodeClass) Alloc() CNNPoolingAverageGradientN return rv } -func CNNPoolingAverageGradientNode_Alloc() CNNPoolingAverageGradientNode { - return CNNPoolingAverageGradientNodeClass.Alloc() -} - func (cc _CNNPoolingAverageGradientNodeClass) New() CNNPoolingAverageGradientNode { rv := objc.Call[CNNPoolingAverageGradientNode](cc, objc.Sel("new")) rv.Autorelease() diff --git a/macos/mps/cnn_pooling_average_node.gen.go b/macos/mps/cnn_pooling_average_node.gen.go index a2554c5f..ebf3adaa 100644 --- a/macos/mps/cnn_pooling_average_node.gen.go +++ b/macos/mps/cnn_pooling_average_node.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package mps @@ -38,10 +38,6 @@ func (cc _CNNPoolingAverageNodeClass) Alloc() CNNPoolingAverageNode { return rv } -func CNNPoolingAverageNode_Alloc() CNNPoolingAverageNode { - return CNNPoolingAverageNodeClass.Alloc() -} - func (cc _CNNPoolingAverageNodeClass) New() CNNPoolingAverageNode { rv := objc.Call[CNNPoolingAverageNode](cc, objc.Sel("new")) rv.Autorelease() @@ -57,6 +53,32 @@ 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:"), objc.Ptr(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:"), objc.Ptr(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:"), objc.Ptr(sourceNode), size) return rv @@ -69,16 +91,30 @@ func CNNPoolingAverageNode_NodeWithSourceFilterSize(sourceNode INNImageNode, siz return CNNPoolingAverageNodeClass.NodeWithSourceFilterSize(sourceNode, size) } -func (c_ CNNPoolingAverageNode) InitWithSourceFilterSize(sourceNode INNImageNode, size uint) CNNPoolingAverageNode { - rv := objc.Call[CNNPoolingAverageNode](c_, objc.Sel("initWithSource:filterSize:"), objc.Ptr(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:"), objc.Ptr(sourceNode), kernelWidth, kernelHeight, strideInPixelsX, strideInPixelsY) 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) +// [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:"), objc.Ptr(sourceNode), size, stride) + 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) instance.Autorelease() return instance } diff --git a/macos/mps/cnn_pooling_gradient.gen.go b/macos/mps/cnn_pooling_gradient.gen.go index 9bd444d0..a35301e5 100644 --- a/macos/mps/cnn_pooling_gradient.gen.go +++ b/macos/mps/cnn_pooling_gradient.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package mps @@ -51,13 +51,24 @@ func NewCNNPoolingGradientWithDeviceKernelWidthKernelHeight(device metal.PDevice return instance } -func (cc _CNNPoolingGradientClass) Alloc() CNNPoolingGradient { - rv := objc.Call[CNNPoolingGradient](cc, objc.Sel("alloc")) +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 } -func CNNPoolingGradient_Alloc() CNNPoolingGradient { - return CNNPoolingGradientClass.Alloc() +// [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 } func (cc _CNNPoolingGradientClass) New() CNNPoolingGradient { @@ -93,7 +104,6 @@ func NewCNNPoolingGradientWithDevice(device metal.PDevice) CNNPoolingGradient { func (c_ CNNPoolingGradient) CopyWithZoneDevice(zone unsafe.Pointer, device metal.PDevice) CNNPoolingGradient { po1 := objc.WrapAsProtocol("MTLDevice", device) rv := objc.Call[CNNPoolingGradient](c_, objc.Sel("copyWithZone:device:"), zone, po1) - rv.Autorelease() return rv } diff --git a/macos/mps/cnn_pooling_gradient_node.gen.go b/macos/mps/cnn_pooling_gradient_node.gen.go index 6037a530..0e7eb382 100644 --- a/macos/mps/cnn_pooling_gradient_node.gen.go +++ b/macos/mps/cnn_pooling_gradient_node.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package mps @@ -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 } @@ -70,10 +70,6 @@ func (cc _CNNPoolingGradientNodeClass) Alloc() CNNPoolingGradientNode { return rv } -func CNNPoolingGradientNode_Alloc() CNNPoolingGradientNode { - return CNNPoolingGradientNodeClass.Alloc() -} - func (cc _CNNPoolingGradientNodeClass) New() CNNPoolingGradientNode { rv := objc.Call[CNNPoolingGradientNode](cc, objc.Sel("new")) rv.Autorelease() @@ -89,6 +85,14 @@ 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 @@ -105,14 +109,6 @@ 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 0a371abc..7110e30f 100644 --- a/macos/mps/cnn_pooling_l2_norm.gen.go +++ b/macos/mps/cnn_pooling_l2_norm.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package mps @@ -54,10 +54,6 @@ func (cc _CNNPoolingL2NormClass) Alloc() CNNPoolingL2Norm { return rv } -func CNNPoolingL2Norm_Alloc() CNNPoolingL2Norm { - return CNNPoolingL2NormClass.Alloc() -} - func (cc _CNNPoolingL2NormClass) New() CNNPoolingL2Norm { rv := objc.Call[CNNPoolingL2Norm](cc, objc.Sel("new")) rv.Autorelease() @@ -73,6 +69,21 @@ 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) @@ -91,7 +102,6 @@ func NewCNNPoolingL2NormWithDevice(device metal.PDevice) CNNPoolingL2Norm { func (c_ CNNPoolingL2Norm) CopyWithZoneDevice(zone unsafe.Pointer, device metal.PDevice) CNNPoolingL2Norm { po1 := objc.WrapAsProtocol("MTLDevice", device) rv := objc.Call[CNNPoolingL2Norm](c_, objc.Sel("copyWithZone:device:"), zone, po1) - rv.Autorelease() return rv } diff --git a/macos/mps/cnn_pooling_l2_norm_gradient.gen.go b/macos/mps/cnn_pooling_l2_norm_gradient.gen.go index 8701d168..c2097f79 100644 --- a/macos/mps/cnn_pooling_l2_norm_gradient.gen.go +++ b/macos/mps/cnn_pooling_l2_norm_gradient.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package mps @@ -54,10 +54,6 @@ func (cc _CNNPoolingL2NormGradientClass) Alloc() CNNPoolingL2NormGradient { return rv } -func CNNPoolingL2NormGradient_Alloc() CNNPoolingL2NormGradient { - return CNNPoolingL2NormGradientClass.Alloc() -} - func (cc _CNNPoolingL2NormGradientClass) New() CNNPoolingL2NormGradient { rv := objc.Call[CNNPoolingL2NormGradient](cc, objc.Sel("new")) rv.Autorelease() @@ -106,7 +102,6 @@ func NewCNNPoolingL2NormGradientWithDevice(device metal.PDevice) CNNPoolingL2Nor func (c_ CNNPoolingL2NormGradient) CopyWithZoneDevice(zone unsafe.Pointer, device metal.PDevice) CNNPoolingL2NormGradient { po1 := objc.WrapAsProtocol("MTLDevice", device) rv := objc.Call[CNNPoolingL2NormGradient](c_, objc.Sel("copyWithZone:device:"), zone, po1) - rv.Autorelease() return rv } diff --git a/macos/mps/cnn_pooling_l2_norm_gradient_node.gen.go b/macos/mps/cnn_pooling_l2_norm_gradient_node.gen.go index ec914571..4298d63e 100644 --- a/macos/mps/cnn_pooling_l2_norm_gradient_node.gen.go +++ b/macos/mps/cnn_pooling_l2_norm_gradient_node.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package mps @@ -38,10 +38,6 @@ func (cc _CNNPoolingL2NormGradientNodeClass) Alloc() CNNPoolingL2NormGradientNod return rv } -func CNNPoolingL2NormGradientNode_Alloc() CNNPoolingL2NormGradientNode { - return CNNPoolingL2NormGradientNodeClass.Alloc() -} - func (cc _CNNPoolingL2NormGradientNodeClass) New() CNNPoolingL2NormGradientNode { rv := objc.Call[CNNPoolingL2NormGradientNode](cc, objc.Sel("new")) rv.Autorelease() diff --git a/macos/mps/cnn_pooling_l2_norm_node.gen.go b/macos/mps/cnn_pooling_l2_norm_node.gen.go index 3d776c7c..8fbe9f03 100644 --- a/macos/mps/cnn_pooling_l2_norm_node.gen.go +++ b/macos/mps/cnn_pooling_l2_norm_node.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package mps @@ -38,10 +38,6 @@ func (cc _CNNPoolingL2NormNodeClass) Alloc() CNNPoolingL2NormNode { return rv } -func CNNPoolingL2NormNode_Alloc() CNNPoolingL2NormNode { - return CNNPoolingL2NormNodeClass.Alloc() -} - func (cc _CNNPoolingL2NormNodeClass) New() CNNPoolingL2NormNode { rv := objc.Call[CNNPoolingL2NormNode](cc, objc.Sel("new")) rv.Autorelease() @@ -57,6 +53,32 @@ 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:"), objc.Ptr(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:"), objc.Ptr(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:"), objc.Ptr(sourceNode), size) return rv @@ -69,16 +91,30 @@ func CNNPoolingL2NormNode_NodeWithSourceFilterSize(sourceNode INNImageNode, size return CNNPoolingL2NormNodeClass.NodeWithSourceFilterSize(sourceNode, size) } -func (c_ CNNPoolingL2NormNode) InitWithSourceFilterSize(sourceNode INNImageNode, size uint) CNNPoolingL2NormNode { - rv := objc.Call[CNNPoolingL2NormNode](c_, objc.Sel("initWithSource:filterSize:"), objc.Ptr(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:"), objc.Ptr(sourceNode), kernelWidth, kernelHeight, strideInPixelsX, strideInPixelsY) 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) +// [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:"), objc.Ptr(sourceNode), size, stride) + 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) instance.Autorelease() return instance } diff --git a/macos/mps/cnn_pooling_max.gen.go b/macos/mps/cnn_pooling_max.gen.go index 2a76440c..b4b55eb7 100644 --- a/macos/mps/cnn_pooling_max.gen.go +++ b/macos/mps/cnn_pooling_max.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package mps @@ -54,10 +54,6 @@ func (cc _CNNPoolingMaxClass) Alloc() CNNPoolingMax { return rv } -func CNNPoolingMax_Alloc() CNNPoolingMax { - return CNNPoolingMaxClass.Alloc() -} - func (cc _CNNPoolingMaxClass) New() CNNPoolingMax { rv := objc.Call[CNNPoolingMax](cc, objc.Sel("new")) rv.Autorelease() @@ -73,6 +69,21 @@ 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) @@ -91,7 +102,6 @@ func NewCNNPoolingMaxWithDevice(device metal.PDevice) CNNPoolingMax { func (c_ CNNPoolingMax) CopyWithZoneDevice(zone unsafe.Pointer, device metal.PDevice) CNNPoolingMax { po1 := objc.WrapAsProtocol("MTLDevice", device) rv := objc.Call[CNNPoolingMax](c_, objc.Sel("copyWithZone:device:"), zone, po1) - rv.Autorelease() return rv } diff --git a/macos/mps/cnn_pooling_max_gradient.gen.go b/macos/mps/cnn_pooling_max_gradient.gen.go index b5efdc99..1eb38cff 100644 --- a/macos/mps/cnn_pooling_max_gradient.gen.go +++ b/macos/mps/cnn_pooling_max_gradient.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package mps @@ -54,10 +54,6 @@ func (cc _CNNPoolingMaxGradientClass) Alloc() CNNPoolingMaxGradient { return rv } -func CNNPoolingMaxGradient_Alloc() CNNPoolingMaxGradient { - return CNNPoolingMaxGradientClass.Alloc() -} - func (cc _CNNPoolingMaxGradientClass) New() CNNPoolingMaxGradient { rv := objc.Call[CNNPoolingMaxGradient](cc, objc.Sel("new")) rv.Autorelease() @@ -106,7 +102,6 @@ func NewCNNPoolingMaxGradientWithDevice(device metal.PDevice) CNNPoolingMaxGradi func (c_ CNNPoolingMaxGradient) CopyWithZoneDevice(zone unsafe.Pointer, device metal.PDevice) CNNPoolingMaxGradient { po1 := objc.WrapAsProtocol("MTLDevice", device) rv := objc.Call[CNNPoolingMaxGradient](c_, objc.Sel("copyWithZone:device:"), zone, po1) - rv.Autorelease() return rv } diff --git a/macos/mps/cnn_pooling_max_gradient_node.gen.go b/macos/mps/cnn_pooling_max_gradient_node.gen.go index 099c2290..8a0ad963 100644 --- a/macos/mps/cnn_pooling_max_gradient_node.gen.go +++ b/macos/mps/cnn_pooling_max_gradient_node.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package mps @@ -38,10 +38,6 @@ func (cc _CNNPoolingMaxGradientNodeClass) Alloc() CNNPoolingMaxGradientNode { return rv } -func CNNPoolingMaxGradientNode_Alloc() CNNPoolingMaxGradientNode { - return CNNPoolingMaxGradientNodeClass.Alloc() -} - func (cc _CNNPoolingMaxGradientNodeClass) New() CNNPoolingMaxGradientNode { rv := objc.Call[CNNPoolingMaxGradientNode](cc, objc.Sel("new")) rv.Autorelease() diff --git a/macos/mps/cnn_pooling_max_node.gen.go b/macos/mps/cnn_pooling_max_node.gen.go index 59d00c5a..bbeed901 100644 --- a/macos/mps/cnn_pooling_max_node.gen.go +++ b/macos/mps/cnn_pooling_max_node.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package mps @@ -38,10 +38,6 @@ func (cc _CNNPoolingMaxNodeClass) Alloc() CNNPoolingMaxNode { return rv } -func CNNPoolingMaxNode_Alloc() CNNPoolingMaxNode { - return CNNPoolingMaxNodeClass.Alloc() -} - func (cc _CNNPoolingMaxNodeClass) New() CNNPoolingMaxNode { rv := objc.Call[CNNPoolingMaxNode](cc, objc.Sel("new")) rv.Autorelease() @@ -57,6 +53,32 @@ 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:"), objc.Ptr(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:"), objc.Ptr(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:"), objc.Ptr(sourceNode), size) return rv @@ -69,16 +91,30 @@ func CNNPoolingMaxNode_NodeWithSourceFilterSize(sourceNode INNImageNode, size ui return CNNPoolingMaxNodeClass.NodeWithSourceFilterSize(sourceNode, size) } -func (c_ CNNPoolingMaxNode) InitWithSourceFilterSize(sourceNode INNImageNode, size uint) CNNPoolingMaxNode { - rv := objc.Call[CNNPoolingMaxNode](c_, objc.Sel("initWithSource:filterSize:"), objc.Ptr(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:"), objc.Ptr(sourceNode), kernelWidth, kernelHeight, strideInPixelsX, strideInPixelsY) 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) +// [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:"), objc.Ptr(sourceNode), size, stride) + 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) instance.Autorelease() return instance } diff --git a/macos/mps/cnn_pooling_node.gen.go b/macos/mps/cnn_pooling_node.gen.go index 20132f7e..125ae4de 100644 --- a/macos/mps/cnn_pooling_node.gen.go +++ b/macos/mps/cnn_pooling_node.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package mps @@ -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,6 +37,32 @@ func CNNPoolingNodeFrom(ptr unsafe.Pointer) CNNPoolingNode { } } +func (c_ CNNPoolingNode) InitWithSourceFilterSize(sourceNode INNImageNode, size uint) CNNPoolingNode { + rv := objc.Call[CNNPoolingNode](c_, objc.Sel("initWithSource:filterSize:"), objc.Ptr(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:"), objc.Ptr(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:"), objc.Ptr(sourceNode), size) return rv @@ -49,27 +75,37 @@ func CNNPoolingNode_NodeWithSourceFilterSize(sourceNode INNImageNode, size uint) return CNNPoolingNodeClass.NodeWithSourceFilterSize(sourceNode, size) } -func (c_ CNNPoolingNode) InitWithSourceFilterSize(sourceNode INNImageNode, size uint) CNNPoolingNode { - rv := objc.Call[CNNPoolingNode](c_, objc.Sel("initWithSource:filterSize:"), objc.Ptr(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:"), objc.Ptr(sourceNode), kernelWidth, kernelHeight, strideInPixelsX, strideInPixelsY) 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) +// [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 (cc _CNNPoolingNodeClass) Alloc() CNNPoolingNode { - rv := objc.Call[CNNPoolingNode](cc, objc.Sel("alloc")) +func (c_ CNNPoolingNode) InitWithSourceFilterSizeStride(sourceNode INNImageNode, size uint, stride uint) CNNPoolingNode { + rv := objc.Call[CNNPoolingNode](c_, objc.Sel("initWithSource:filterSize:stride:"), objc.Ptr(sourceNode), size, stride) return rv } -func CNNPoolingNode_Alloc() CNNPoolingNode { - return CNNPoolingNodeClass.Alloc() +// [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) + instance.Autorelease() + return instance +} + +func (cc _CNNPoolingNodeClass) Alloc() CNNPoolingNode { + rv := objc.Call[CNNPoolingNode](cc, objc.Sel("alloc")) + return rv } func (cc _CNNPoolingNodeClass) New() CNNPoolingNode { @@ -87,14 +123,6 @@ 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 @@ -111,6 +139,14 @@ 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.gen.go b/macos/mps/cnn_soft_max.gen.go index a9425530..39991426 100644 --- a/macos/mps/cnn_soft_max.gen.go +++ b/macos/mps/cnn_soft_max.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package mps @@ -39,10 +39,6 @@ func (cc _CNNSoftMaxClass) Alloc() CNNSoftMax { return rv } -func CNNSoftMax_Alloc() CNNSoftMax { - return CNNSoftMaxClass.Alloc() -} - func (cc _CNNSoftMaxClass) New() CNNSoftMax { rv := objc.Call[CNNSoftMax](cc, objc.Sel("new")) rv.Autorelease() @@ -76,7 +72,6 @@ func NewCNNSoftMaxWithDevice(device metal.PDevice) CNNSoftMax { func (c_ CNNSoftMax) CopyWithZoneDevice(zone unsafe.Pointer, device metal.PDevice) CNNSoftMax { po1 := objc.WrapAsProtocol("MTLDevice", device) rv := objc.Call[CNNSoftMax](c_, objc.Sel("copyWithZone:device:"), zone, po1) - rv.Autorelease() return rv } diff --git a/macos/mps/cnn_soft_max_gradient.gen.go b/macos/mps/cnn_soft_max_gradient.gen.go index d1f51ccb..bb738b18 100644 --- a/macos/mps/cnn_soft_max_gradient.gen.go +++ b/macos/mps/cnn_soft_max_gradient.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package mps @@ -54,10 +54,6 @@ func (cc _CNNSoftMaxGradientClass) Alloc() CNNSoftMaxGradient { return rv } -func CNNSoftMaxGradient_Alloc() CNNSoftMaxGradient { - return CNNSoftMaxGradientClass.Alloc() -} - func (cc _CNNSoftMaxGradientClass) New() CNNSoftMaxGradient { rv := objc.Call[CNNSoftMaxGradient](cc, objc.Sel("new")) rv.Autorelease() @@ -76,7 +72,6 @@ func (c_ CNNSoftMaxGradient) Init() CNNSoftMaxGradient { func (c_ CNNSoftMaxGradient) CopyWithZoneDevice(zone unsafe.Pointer, device metal.PDevice) CNNSoftMaxGradient { po1 := objc.WrapAsProtocol("MTLDevice", device) rv := objc.Call[CNNSoftMaxGradient](c_, objc.Sel("copyWithZone:device:"), zone, po1) - rv.Autorelease() return rv } diff --git a/macos/mps/cnn_soft_max_gradient_node.gen.go b/macos/mps/cnn_soft_max_gradient_node.gen.go index e4efb742..979d052f 100644 --- a/macos/mps/cnn_soft_max_gradient_node.gen.go +++ b/macos/mps/cnn_soft_max_gradient_node.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package mps @@ -33,30 +33,30 @@ func CNNSoftMaxGradientNodeFrom(ptr unsafe.Pointer) CNNSoftMaxGradientNode { } } -func (c_ CNNSoftMaxGradientNode) InitWithSourceGradientSourceImageGradientState(sourceGradient INNImageNode, sourceImage INNImageNode, gradientState INNGradientStateNode) CNNSoftMaxGradientNode { - rv := objc.Call[CNNSoftMaxGradientNode](c_, objc.Sel("initWithSourceGradient:sourceImage:gradientState:"), objc.Ptr(sourceGradient), objc.Ptr(sourceImage), objc.Ptr(gradientState)) +func (cc _CNNSoftMaxGradientNodeClass) NodeWithSourceGradientSourceImageGradientState(sourceGradient INNImageNode, sourceImage INNImageNode, gradientState INNGradientStateNode) CNNSoftMaxGradientNode { + rv := objc.Call[CNNSoftMaxGradientNode](cc, objc.Sel("nodeWithSourceGradient:sourceImage:gradientState:"), objc.Ptr(sourceGradient), objc.Ptr(sourceImage), objc.Ptr(gradientState)) return rv } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpscnnsoftmaxgradientnode/2948039-initwithsourcegradient?language=objc -func NewCNNSoftMaxGradientNodeWithSourceGradientSourceImageGradientState(sourceGradient INNImageNode, sourceImage INNImageNode, gradientState INNGradientStateNode) CNNSoftMaxGradientNode { - instance := CNNSoftMaxGradientNodeClass.Alloc().InitWithSourceGradientSourceImageGradientState(sourceGradient, sourceImage, gradientState) - instance.Autorelease() - return instance +// [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) NodeWithSourceGradientSourceImageGradientState(sourceGradient INNImageNode, sourceImage INNImageNode, gradientState INNGradientStateNode) CNNSoftMaxGradientNode { - rv := objc.Call[CNNSoftMaxGradientNode](cc, objc.Sel("nodeWithSourceGradient:sourceImage:gradientState:"), objc.Ptr(sourceGradient), objc.Ptr(sourceImage), objc.Ptr(gradientState)) +func (c_ CNNSoftMaxGradientNode) InitWithSourceGradientSourceImageGradientState(sourceGradient INNImageNode, sourceImage INNImageNode, gradientState INNGradientStateNode) CNNSoftMaxGradientNode { + rv := objc.Call[CNNSoftMaxGradientNode](c_, objc.Sel("initWithSourceGradient:sourceImage:gradientState:"), objc.Ptr(sourceGradient), objc.Ptr(sourceImage), objc.Ptr(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) +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpscnnsoftmaxgradientnode/2948039-initwithsourcegradient?language=objc +func NewCNNSoftMaxGradientNodeWithSourceGradientSourceImageGradientState(sourceGradient INNImageNode, sourceImage INNImageNode, gradientState INNGradientStateNode) CNNSoftMaxGradientNode { + instance := CNNSoftMaxGradientNodeClass.Alloc().InitWithSourceGradientSourceImageGradientState(sourceGradient, sourceImage, gradientState) + instance.Autorelease() + return instance } func (cc _CNNSoftMaxGradientNodeClass) Alloc() CNNSoftMaxGradientNode { @@ -64,10 +64,6 @@ func (cc _CNNSoftMaxGradientNodeClass) Alloc() CNNSoftMaxGradientNode { return rv } -func CNNSoftMaxGradientNode_Alloc() CNNSoftMaxGradientNode { - return CNNSoftMaxGradientNodeClass.Alloc() -} - func (cc _CNNSoftMaxGradientNodeClass) New() CNNSoftMaxGradientNode { rv := objc.Call[CNNSoftMaxGradientNode](cc, objc.Sel("new")) rv.Autorelease() diff --git a/macos/mps/cnn_soft_max_node.gen.go b/macos/mps/cnn_soft_max_node.gen.go index 72195359..133ba709 100644 --- a/macos/mps/cnn_soft_max_node.gen.go +++ b/macos/mps/cnn_soft_max_node.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package mps @@ -33,18 +33,6 @@ func CNNSoftMaxNodeFrom(ptr unsafe.Pointer) CNNSoftMaxNode { } } -func (cc _CNNSoftMaxNodeClass) NodeWithSource(sourceNode INNImageNode) CNNSoftMaxNode { - rv := objc.Call[CNNSoftMaxNode](cc, objc.Sel("nodeWithSource:"), objc.Ptr(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) -} - func (c_ CNNSoftMaxNode) InitWithSource(sourceNode INNImageNode) CNNSoftMaxNode { rv := objc.Call[CNNSoftMaxNode](c_, objc.Sel("initWithSource:"), objc.Ptr(sourceNode)) return rv @@ -59,13 +47,21 @@ func NewCNNSoftMaxNodeWithSource(sourceNode INNImageNode) CNNSoftMaxNode { return instance } -func (cc _CNNSoftMaxNodeClass) Alloc() CNNSoftMaxNode { - rv := objc.Call[CNNSoftMaxNode](cc, objc.Sel("alloc")) +func (cc _CNNSoftMaxNodeClass) NodeWithSource(sourceNode INNImageNode) CNNSoftMaxNode { + rv := objc.Call[CNNSoftMaxNode](cc, objc.Sel("nodeWithSource:"), objc.Ptr(sourceNode)) return rv } -func CNNSoftMaxNode_Alloc() CNNSoftMaxNode { - return CNNSoftMaxNodeClass.Alloc() +// [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) +} + +func (cc _CNNSoftMaxNodeClass) Alloc() CNNSoftMaxNode { + rv := objc.Call[CNNSoftMaxNode](cc, objc.Sel("alloc")) + return rv } func (cc _CNNSoftMaxNodeClass) New() CNNSoftMaxNode { diff --git a/macos/mps/cnn_spatial_normalization.gen.go b/macos/mps/cnn_spatial_normalization.gen.go index 80682554..f21d858a 100644 --- a/macos/mps/cnn_spatial_normalization.gen.go +++ b/macos/mps/cnn_spatial_normalization.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package mps @@ -19,12 +19,12 @@ type _CNNSpatialNormalizationClass struct { // An interface definition for the [CNNSpatialNormalization] class. type ICNNSpatialNormalization interface { ICNNKernel - Beta() float64 - SetBeta(value float64) Delta() float64 SetDelta(value float64) Alpha() float64 SetAlpha(value float64) + Beta() float64 + SetBeta(value float64) } // A spatial normalization kernel. [Full Topic] @@ -60,10 +60,6 @@ func (cc _CNNSpatialNormalizationClass) Alloc() CNNSpatialNormalization { return rv } -func CNNSpatialNormalization_Alloc() CNNSpatialNormalization { - return CNNSpatialNormalizationClass.Alloc() -} - func (cc _CNNSpatialNormalizationClass) New() CNNSpatialNormalization { rv := objc.Call[CNNSpatialNormalization](cc, objc.Sel("new")) rv.Autorelease() @@ -97,7 +93,6 @@ func NewCNNSpatialNormalizationWithDevice(device metal.PDevice) CNNSpatialNormal func (c_ CNNSpatialNormalization) CopyWithZoneDevice(zone unsafe.Pointer, device metal.PDevice) CNNSpatialNormalization { po1 := objc.WrapAsProtocol("MTLDevice", device) rv := objc.Call[CNNSpatialNormalization](c_, objc.Sel("copyWithZone:device:"), zone, po1) - rv.Autorelease() return rv } @@ -110,21 +105,6 @@ 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() float64 { - rv := objc.Call[float64](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 float64) { - 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 @@ -154,3 +134,18 @@ func (c_ CNNSpatialNormalization) Alpha() float64 { func (c_ CNNSpatialNormalization) SetAlpha(value float64) { 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() float64 { + rv := objc.Call[float64](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 float64) { + 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 7b0c3932..3012cb46 100644 --- a/macos/mps/cnn_spatial_normalization_gradient.gen.go +++ b/macos/mps/cnn_spatial_normalization_gradient.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package mps @@ -19,12 +19,12 @@ type _CNNSpatialNormalizationGradientClass struct { // An interface definition for the [CNNSpatialNormalizationGradient] class. type ICNNSpatialNormalizationGradient interface { ICNNGradientKernel + Alpha() float64 + SetAlpha(value float64) Beta() float64 SetBeta(value float64) Delta() float64 SetDelta(value float64) - Alpha() float64 - SetAlpha(value float64) } // A gradient spatial normalization kernel. [Full Topic] @@ -60,10 +60,6 @@ func (cc _CNNSpatialNormalizationGradientClass) Alloc() CNNSpatialNormalizationG return rv } -func CNNSpatialNormalizationGradient_Alloc() CNNSpatialNormalizationGradient { - return CNNSpatialNormalizationGradientClass.Alloc() -} - func (cc _CNNSpatialNormalizationGradientClass) New() CNNSpatialNormalizationGradient { rv := objc.Call[CNNSpatialNormalizationGradient](cc, objc.Sel("new")) rv.Autorelease() @@ -97,7 +93,6 @@ func NewCNNSpatialNormalizationGradientWithDevice(device metal.PDevice) CNNSpati func (c_ CNNSpatialNormalizationGradient) CopyWithZoneDevice(zone unsafe.Pointer, device metal.PDevice) CNNSpatialNormalizationGradient { po1 := objc.WrapAsProtocol("MTLDevice", device) rv := objc.Call[CNNSpatialNormalizationGradient](c_, objc.Sel("copyWithZone:device:"), zone, po1) - rv.Autorelease() return rv } @@ -110,6 +105,21 @@ 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() float64 { + rv := objc.Call[float64](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 float64) { + objc.Call[objc.Void](c_, objc.Sel("setAlpha:"), value) +} + // [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpscnnspatialnormalizationgradient/2942470-beta?language=objc @@ -139,18 +149,3 @@ func (c_ CNNSpatialNormalizationGradient) Delta() float64 { func (c_ CNNSpatialNormalizationGradient) SetDelta(value float64) { 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() float64 { - rv := objc.Call[float64](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 float64) { - 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 68668088..d25e7aa7 100644 --- a/macos/mps/cnn_spatial_normalization_gradient_node.gen.go +++ b/macos/mps/cnn_spatial_normalization_gradient_node.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package mps @@ -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() float64 SetBeta(value float64) - Delta() float64 - SetDelta(value float64) Alpha() float64 SetAlpha(value float64) - KernelHeight() uint - SetKernelHeight(value uint) - KernelWidth() uint - SetKernelWidth(value uint) + Delta() float64 + SetDelta(value float64) } // A representation of a gradient spatial normalization kernel. [Full Topic] @@ -74,10 +74,6 @@ func (cc _CNNSpatialNormalizationGradientNodeClass) Alloc() CNNSpatialNormalizat return rv } -func CNNSpatialNormalizationGradientNode_Alloc() CNNSpatialNormalizationGradientNode { - return CNNSpatialNormalizationGradientNodeClass.Alloc() -} - func (cc _CNNSpatialNormalizationGradientNodeClass) New() CNNSpatialNormalizationGradientNode { rv := objc.Call[CNNSpatialNormalizationGradientNode](cc, objc.Sel("new")) rv.Autorelease() @@ -95,75 +91,75 @@ func (c_ CNNSpatialNormalizationGradientNode) Init() CNNSpatialNormalizationGrad // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpscnnspatialnormalizationgradientnode/2948006-beta?language=objc -func (c_ CNNSpatialNormalizationGradientNode) Beta() float64 { - rv := objc.Call[float64](c_, objc.Sel("beta")) +// [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/2948006-beta?language=objc -func (c_ CNNSpatialNormalizationGradientNode) SetBeta(value float64) { - objc.Call[objc.Void](c_, objc.Sel("setBeta:"), 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) } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpscnnspatialnormalizationgradientnode/2947968-delta?language=objc -func (c_ CNNSpatialNormalizationGradientNode) Delta() float64 { - rv := objc.Call[float64](c_, objc.Sel("delta")) +// [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/2947968-delta?language=objc -func (c_ CNNSpatialNormalizationGradientNode) SetDelta(value float64) { - objc.Call[objc.Void](c_, objc.Sel("setDelta:"), 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/2948027-alpha?language=objc -func (c_ CNNSpatialNormalizationGradientNode) Alpha() float64 { - rv := objc.Call[float64](c_, objc.Sel("alpha")) +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpscnnspatialnormalizationgradientnode/2948006-beta?language=objc +func (c_ CNNSpatialNormalizationGradientNode) Beta() float64 { + rv := objc.Call[float64](c_, objc.Sel("beta")) return rv } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpscnnspatialnormalizationgradientnode/2948027-alpha?language=objc -func (c_ CNNSpatialNormalizationGradientNode) SetAlpha(value float64) { - objc.Call[objc.Void](c_, objc.Sel("setAlpha:"), value) +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpscnnspatialnormalizationgradientnode/2948006-beta?language=objc +func (c_ CNNSpatialNormalizationGradientNode) SetBeta(value float64) { + 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/2948027-alpha?language=objc +func (c_ CNNSpatialNormalizationGradientNode) Alpha() float64 { + rv := objc.Call[float64](c_, objc.Sel("alpha")) 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/2948027-alpha?language=objc +func (c_ CNNSpatialNormalizationGradientNode) SetAlpha(value float64) { + objc.Call[objc.Void](c_, objc.Sel("setAlpha:"), value) } // [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/2947968-delta?language=objc +func (c_ CNNSpatialNormalizationGradientNode) Delta() float64 { + rv := objc.Call[float64](c_, objc.Sel("delta")) 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/2947968-delta?language=objc +func (c_ CNNSpatialNormalizationGradientNode) SetDelta(value float64) { + objc.Call[objc.Void](c_, objc.Sel("setDelta:"), value) } diff --git a/macos/mps/cnn_spatial_normalization_node.gen.go b/macos/mps/cnn_spatial_normalization_node.gen.go index 37cfa36f..3c23ba13 100644 --- a/macos/mps/cnn_spatial_normalization_node.gen.go +++ b/macos/mps/cnn_spatial_normalization_node.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package mps @@ -37,39 +37,49 @@ func CNNSpatialNormalizationNodeFrom(ptr unsafe.Pointer) CNNSpatialNormalization } } -func (cc _CNNSpatialNormalizationNodeClass) NodeWithSourceKernelSize(sourceNode INNImageNode, kernelSize uint) CNNSpatialNormalizationNode { - rv := objc.Call[CNNSpatialNormalizationNode](cc, objc.Sel("nodeWithSource:kernelSize:"), objc.Ptr(sourceNode), kernelSize) +func (c_ CNNSpatialNormalizationNode) InitWithSource(sourceNode INNImageNode) CNNSpatialNormalizationNode { + rv := objc.Call[CNNSpatialNormalizationNode](c_, objc.Sel("initWithSource:"), objc.Ptr(sourceNode)) 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) +// [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 (c_ CNNSpatialNormalizationNode) InitWithSource(sourceNode INNImageNode) CNNSpatialNormalizationNode { - rv := objc.Call[CNNSpatialNormalizationNode](c_, objc.Sel("initWithSource:"), objc.Ptr(sourceNode)) +func (c_ CNNSpatialNormalizationNode) InitWithSourceKernelSize(sourceNode INNImageNode, kernelSize uint) CNNSpatialNormalizationNode { + rv := objc.Call[CNNSpatialNormalizationNode](c_, objc.Sel("initWithSource:kernelSize:"), objc.Ptr(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) +// [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) instance.Autorelease() return instance } -func (cc _CNNSpatialNormalizationNodeClass) Alloc() CNNSpatialNormalizationNode { - rv := objc.Call[CNNSpatialNormalizationNode](cc, objc.Sel("alloc")) +func (cc _CNNSpatialNormalizationNodeClass) NodeWithSourceKernelSize(sourceNode INNImageNode, kernelSize uint) CNNSpatialNormalizationNode { + rv := objc.Call[CNNSpatialNormalizationNode](cc, objc.Sel("nodeWithSource:kernelSize:"), objc.Ptr(sourceNode), kernelSize) return rv } -func CNNSpatialNormalizationNode_Alloc() CNNSpatialNormalizationNode { - return CNNSpatialNormalizationNodeClass.Alloc() +// [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 } func (cc _CNNSpatialNormalizationNodeClass) New() CNNSpatialNormalizationNode { diff --git a/macos/mps/cnn_sub_pixel_convolution_descriptor.gen.go b/macos/mps/cnn_sub_pixel_convolution_descriptor.gen.go index d30cddf9..ee6bd197 100644 --- a/macos/mps/cnn_sub_pixel_convolution_descriptor.gen.go +++ b/macos/mps/cnn_sub_pixel_convolution_descriptor.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package mps @@ -40,10 +40,6 @@ func (cc _CNNSubPixelConvolutionDescriptorClass) Alloc() CNNSubPixelConvolutionD return rv } -func CNNSubPixelConvolutionDescriptor_Alloc() CNNSubPixelConvolutionDescriptor { - return CNNSubPixelConvolutionDescriptorClass.Alloc() -} - func (cc _CNNSubPixelConvolutionDescriptorClass) New() CNNSubPixelConvolutionDescriptor { rv := objc.Call[CNNSubPixelConvolutionDescriptor](cc, objc.Sel("new")) rv.Autorelease() @@ -71,6 +67,18 @@ 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, objc.Ptr(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_subtract.gen.go b/macos/mps/cnn_subtract.gen.go index fb034faa..983ea892 100644 --- a/macos/mps/cnn_subtract.gen.go +++ b/macos/mps/cnn_subtract.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package mps @@ -54,10 +54,6 @@ func (cc _CNNSubtractClass) Alloc() CNNSubtract { return rv } -func CNNSubtract_Alloc() CNNSubtract { - return CNNSubtractClass.Alloc() -} - func (cc _CNNSubtractClass) New() CNNSubtract { rv := objc.Call[CNNSubtract](cc, objc.Sel("new")) rv.Autorelease() @@ -76,7 +72,6 @@ func (c_ CNNSubtract) Init() CNNSubtract { func (c_ CNNSubtract) CopyWithZoneDevice(zone unsafe.Pointer, device metal.PDevice) CNNSubtract { po1 := objc.WrapAsProtocol("MTLDevice", device) rv := objc.Call[CNNSubtract](c_, objc.Sel("copyWithZone:device:"), zone, po1) - rv.Autorelease() return rv } diff --git a/macos/mps/cnn_subtract_gradient.gen.go b/macos/mps/cnn_subtract_gradient.gen.go index ba506823..1f270d85 100644 --- a/macos/mps/cnn_subtract_gradient.gen.go +++ b/macos/mps/cnn_subtract_gradient.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package mps @@ -54,10 +54,6 @@ func (cc _CNNSubtractGradientClass) Alloc() CNNSubtractGradient { return rv } -func CNNSubtractGradient_Alloc() CNNSubtractGradient { - return CNNSubtractGradientClass.Alloc() -} - func (cc _CNNSubtractGradientClass) New() CNNSubtractGradient { rv := objc.Call[CNNSubtractGradient](cc, objc.Sel("new")) rv.Autorelease() @@ -91,7 +87,6 @@ func NewCNNSubtractGradientWithDevice(device metal.PDevice) CNNSubtractGradient func (c_ CNNSubtractGradient) CopyWithZoneDevice(zone unsafe.Pointer, device metal.PDevice) CNNSubtractGradient { po1 := objc.WrapAsProtocol("MTLDevice", device) rv := objc.Call[CNNSubtractGradient](c_, objc.Sel("copyWithZone:device:"), zone, po1) - rv.Autorelease() return rv } diff --git a/macos/mps/cnn_upsampling.gen.go b/macos/mps/cnn_upsampling.gen.go index 05869ef7..8d78efc1 100644 --- a/macos/mps/cnn_upsampling.gen.go +++ b/macos/mps/cnn_upsampling.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package mps @@ -42,10 +42,6 @@ func (cc _CNNUpsamplingClass) Alloc() CNNUpsampling { return rv } -func CNNUpsampling_Alloc() CNNUpsampling { - return CNNUpsamplingClass.Alloc() -} - func (cc _CNNUpsamplingClass) New() CNNUpsampling { rv := objc.Call[CNNUpsampling](cc, objc.Sel("new")) rv.Autorelease() @@ -79,7 +75,6 @@ func NewCNNUpsamplingWithDevice(device metal.PDevice) CNNUpsampling { func (c_ CNNUpsampling) CopyWithZoneDevice(zone unsafe.Pointer, device metal.PDevice) CNNUpsampling { po1 := objc.WrapAsProtocol("MTLDevice", device) rv := objc.Call[CNNUpsampling](c_, objc.Sel("copyWithZone:device:"), zone, po1) - rv.Autorelease() return rv } diff --git a/macos/mps/cnn_upsampling_bilinear.gen.go b/macos/mps/cnn_upsampling_bilinear.gen.go index 3884b15c..b85f040d 100644 --- a/macos/mps/cnn_upsampling_bilinear.gen.go +++ b/macos/mps/cnn_upsampling_bilinear.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package mps @@ -34,6 +34,21 @@ 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) @@ -54,10 +69,6 @@ func (cc _CNNUpsamplingBilinearClass) Alloc() CNNUpsamplingBilinear { return rv } -func CNNUpsamplingBilinear_Alloc() CNNUpsamplingBilinear { - return CNNUpsamplingBilinearClass.Alloc() -} - func (cc _CNNUpsamplingBilinearClass) New() CNNUpsamplingBilinear { rv := objc.Call[CNNUpsamplingBilinear](cc, objc.Sel("new")) rv.Autorelease() @@ -91,7 +102,6 @@ func NewCNNUpsamplingBilinearWithDevice(device metal.PDevice) CNNUpsamplingBilin func (c_ CNNUpsamplingBilinear) CopyWithZoneDevice(zone unsafe.Pointer, device metal.PDevice) CNNUpsamplingBilinear { po1 := objc.WrapAsProtocol("MTLDevice", device) rv := objc.Call[CNNUpsamplingBilinear](c_, objc.Sel("copyWithZone:device:"), zone, po1) - rv.Autorelease() return rv } diff --git a/macos/mps/cnn_upsampling_bilinear_gradient.gen.go b/macos/mps/cnn_upsampling_bilinear_gradient.gen.go index 1fe4f739..aa6583c1 100644 --- a/macos/mps/cnn_upsampling_bilinear_gradient.gen.go +++ b/macos/mps/cnn_upsampling_bilinear_gradient.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package mps @@ -54,10 +54,6 @@ func (cc _CNNUpsamplingBilinearGradientClass) Alloc() CNNUpsamplingBilinearGradi return rv } -func CNNUpsamplingBilinearGradient_Alloc() CNNUpsamplingBilinearGradient { - return CNNUpsamplingBilinearGradientClass.Alloc() -} - func (cc _CNNUpsamplingBilinearGradientClass) New() CNNUpsamplingBilinearGradient { rv := objc.Call[CNNUpsamplingBilinearGradient](cc, objc.Sel("new")) rv.Autorelease() @@ -91,7 +87,6 @@ func NewCNNUpsamplingBilinearGradientWithDevice(device metal.PDevice) CNNUpsampl func (c_ CNNUpsamplingBilinearGradient) CopyWithZoneDevice(zone unsafe.Pointer, device metal.PDevice) CNNUpsamplingBilinearGradient { po1 := objc.WrapAsProtocol("MTLDevice", device) rv := objc.Call[CNNUpsamplingBilinearGradient](c_, objc.Sel("copyWithZone:device:"), zone, po1) - rv.Autorelease() return rv } diff --git a/macos/mps/cnn_upsampling_bilinear_gradient_node.gen.go b/macos/mps/cnn_upsampling_bilinear_gradient_node.gen.go index 4bfcedcd..324333a3 100644 --- a/macos/mps/cnn_upsampling_bilinear_gradient_node.gen.go +++ b/macos/mps/cnn_upsampling_bilinear_gradient_node.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package mps @@ -18,8 +18,8 @@ type _CNNUpsamplingBilinearGradientNodeClass struct { // An interface definition for the [CNNUpsamplingBilinearGradientNode] class. type ICNNUpsamplingBilinearGradientNode interface { INNGradientFilterNode - ScaleFactorY() float64 ScaleFactorX() float64 + ScaleFactorY() float64 } // A representation of a gradient bilinear spatial upsampling filter. [Full Topic] @@ -66,10 +66,6 @@ func (cc _CNNUpsamplingBilinearGradientNodeClass) Alloc() CNNUpsamplingBilinearG return rv } -func CNNUpsamplingBilinearGradientNode_Alloc() CNNUpsamplingBilinearGradientNode { - return CNNUpsamplingBilinearGradientNodeClass.Alloc() -} - func (cc _CNNUpsamplingBilinearGradientNodeClass) New() CNNUpsamplingBilinearGradientNode { rv := objc.Call[CNNUpsamplingBilinearGradientNode](cc, objc.Sel("new")) rv.Autorelease() @@ -87,16 +83,16 @@ func (c_ CNNUpsamplingBilinearGradientNode) Init() CNNUpsamplingBilinearGradient // [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 } // [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 } diff --git a/macos/mps/cnn_upsampling_bilinear_node.gen.go b/macos/mps/cnn_upsampling_bilinear_node.gen.go index 3abcf51a..256ed3cd 100644 --- a/macos/mps/cnn_upsampling_bilinear_node.gen.go +++ b/macos/mps/cnn_upsampling_bilinear_node.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package mps @@ -19,8 +19,8 @@ type _CNNUpsamplingBilinearNodeClass struct { type ICNNUpsamplingBilinearNode interface { INNFilterNode AlignCorners() bool - ScaleFactorY() float64 ScaleFactorX() float64 + ScaleFactorY() float64 } // A representation of a bilinear spatial upsampling filter. [Full Topic] @@ -36,6 +36,18 @@ 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:"), objc.Ptr(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:"), objc.Ptr(sourceNode), integerScaleFactorX, integerScaleFactorY) return rv @@ -48,6 +60,20 @@ 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:"), objc.Ptr(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:"), objc.Ptr(sourceNode), integerScaleFactorX, integerScaleFactorY) return rv @@ -67,10 +93,6 @@ func (cc _CNNUpsamplingBilinearNodeClass) Alloc() CNNUpsamplingBilinearNode { return rv } -func CNNUpsamplingBilinearNode_Alloc() CNNUpsamplingBilinearNode { - return CNNUpsamplingBilinearNodeClass.Alloc() -} - func (cc _CNNUpsamplingBilinearNodeClass) New() CNNUpsamplingBilinearNode { rv := objc.Call[CNNUpsamplingBilinearNode](cc, objc.Sel("new")) rv.Autorelease() @@ -96,16 +118,16 @@ func (c_ CNNUpsamplingBilinearNode) AlignCorners() bool { // [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 } // [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 } diff --git a/macos/mps/cnn_upsampling_gradient.gen.go b/macos/mps/cnn_upsampling_gradient.gen.go index ff632124..596637aa 100644 --- a/macos/mps/cnn_upsampling_gradient.gen.go +++ b/macos/mps/cnn_upsampling_gradient.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package mps @@ -19,8 +19,8 @@ type _CNNUpsamplingGradientClass struct { // An interface definition for the [CNNUpsamplingGradient] class. type ICNNUpsamplingGradient interface { ICNNGradientKernel - ScaleFactorY() float64 ScaleFactorX() float64 + ScaleFactorY() float64 } // A gradient filter that upsamples an existing Metal Performance Shaders image. [Full Topic] @@ -41,10 +41,6 @@ func (cc _CNNUpsamplingGradientClass) Alloc() CNNUpsamplingGradient { return rv } -func CNNUpsamplingGradient_Alloc() CNNUpsamplingGradient { - return CNNUpsamplingGradientClass.Alloc() -} - func (cc _CNNUpsamplingGradientClass) New() CNNUpsamplingGradient { rv := objc.Call[CNNUpsamplingGradient](cc, objc.Sel("new")) rv.Autorelease() @@ -78,7 +74,6 @@ func NewCNNUpsamplingGradientWithDevice(device metal.PDevice) CNNUpsamplingGradi func (c_ CNNUpsamplingGradient) CopyWithZoneDevice(zone unsafe.Pointer, device metal.PDevice) CNNUpsamplingGradient { po1 := objc.WrapAsProtocol("MTLDevice", device) rv := objc.Call[CNNUpsamplingGradient](c_, objc.Sel("copyWithZone:device:"), zone, po1) - rv.Autorelease() return rv } @@ -93,16 +88,16 @@ func CNNUpsamplingGradient_CopyWithZoneDevice(zone unsafe.Pointer, device metal. // [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 } // [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 } diff --git a/macos/mps/cnn_upsampling_nearest.gen.go b/macos/mps/cnn_upsampling_nearest.gen.go index 61674137..f96d4e00 100644 --- a/macos/mps/cnn_upsampling_nearest.gen.go +++ b/macos/mps/cnn_upsampling_nearest.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package mps @@ -54,10 +54,6 @@ func (cc _CNNUpsamplingNearestClass) Alloc() CNNUpsamplingNearest { return rv } -func CNNUpsamplingNearest_Alloc() CNNUpsamplingNearest { - return CNNUpsamplingNearestClass.Alloc() -} - func (cc _CNNUpsamplingNearestClass) New() CNNUpsamplingNearest { rv := objc.Call[CNNUpsamplingNearest](cc, objc.Sel("new")) rv.Autorelease() @@ -91,7 +87,6 @@ func NewCNNUpsamplingNearestWithDevice(device metal.PDevice) CNNUpsamplingNeares func (c_ CNNUpsamplingNearest) CopyWithZoneDevice(zone unsafe.Pointer, device metal.PDevice) CNNUpsamplingNearest { po1 := objc.WrapAsProtocol("MTLDevice", device) rv := objc.Call[CNNUpsamplingNearest](c_, objc.Sel("copyWithZone:device:"), zone, po1) - rv.Autorelease() return rv } diff --git a/macos/mps/cnn_upsampling_nearest_gradient.gen.go b/macos/mps/cnn_upsampling_nearest_gradient.gen.go index 384efe57..8e65b6f4 100644 --- a/macos/mps/cnn_upsampling_nearest_gradient.gen.go +++ b/macos/mps/cnn_upsampling_nearest_gradient.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package mps @@ -54,10 +54,6 @@ func (cc _CNNUpsamplingNearestGradientClass) Alloc() CNNUpsamplingNearestGradien return rv } -func CNNUpsamplingNearestGradient_Alloc() CNNUpsamplingNearestGradient { - return CNNUpsamplingNearestGradientClass.Alloc() -} - func (cc _CNNUpsamplingNearestGradientClass) New() CNNUpsamplingNearestGradient { rv := objc.Call[CNNUpsamplingNearestGradient](cc, objc.Sel("new")) rv.Autorelease() @@ -91,7 +87,6 @@ func NewCNNUpsamplingNearestGradientWithDevice(device metal.PDevice) CNNUpsampli func (c_ CNNUpsamplingNearestGradient) CopyWithZoneDevice(zone unsafe.Pointer, device metal.PDevice) CNNUpsamplingNearestGradient { po1 := objc.WrapAsProtocol("MTLDevice", device) rv := objc.Call[CNNUpsamplingNearestGradient](c_, objc.Sel("copyWithZone:device:"), zone, po1) - rv.Autorelease() 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 7fd818ce..6defc411 100644 --- a/macos/mps/cnn_upsampling_nearest_gradient_node.gen.go +++ b/macos/mps/cnn_upsampling_nearest_gradient_node.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package mps @@ -18,8 +18,8 @@ type _CNNUpsamplingNearestGradientNodeClass struct { // An interface definition for the [CNNUpsamplingNearestGradientNode] class. type ICNNUpsamplingNearestGradientNode interface { INNGradientFilterNode - ScaleFactorY() float64 ScaleFactorX() float64 + ScaleFactorY() float64 } // A representation of a gradient nearest spatial upsampling filter. [Full Topic] @@ -66,10 +66,6 @@ func (cc _CNNUpsamplingNearestGradientNodeClass) Alloc() CNNUpsamplingNearestGra return rv } -func CNNUpsamplingNearestGradientNode_Alloc() CNNUpsamplingNearestGradientNode { - return CNNUpsamplingNearestGradientNodeClass.Alloc() -} - func (cc _CNNUpsamplingNearestGradientNodeClass) New() CNNUpsamplingNearestGradientNode { rv := objc.Call[CNNUpsamplingNearestGradientNode](cc, objc.Sel("new")) rv.Autorelease() @@ -87,16 +83,16 @@ func (c_ CNNUpsamplingNearestGradientNode) Init() CNNUpsamplingNearestGradientNo // [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 } // [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 } diff --git a/macos/mps/cnn_upsampling_nearest_node.gen.go b/macos/mps/cnn_upsampling_nearest_node.gen.go index 5f3e5064..155bd439 100644 --- a/macos/mps/cnn_upsampling_nearest_node.gen.go +++ b/macos/mps/cnn_upsampling_nearest_node.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package mps @@ -18,8 +18,8 @@ type _CNNUpsamplingNearestNodeClass struct { // An interface definition for the [CNNUpsamplingNearestNode] class. type ICNNUpsamplingNearestNode interface { INNFilterNode - ScaleFactorY() float64 ScaleFactorX() float64 + ScaleFactorY() float64 } // A representation of a nearest spatial upsampling filter. [Full Topic] @@ -66,10 +66,6 @@ func (cc _CNNUpsamplingNearestNodeClass) Alloc() CNNUpsamplingNearestNode { return rv } -func CNNUpsamplingNearestNode_Alloc() CNNUpsamplingNearestNode { - return CNNUpsamplingNearestNodeClass.Alloc() -} - func (cc _CNNUpsamplingNearestNodeClass) New() CNNUpsamplingNearestNode { rv := objc.Call[CNNUpsamplingNearestNode](cc, objc.Sel("new")) rv.Autorelease() @@ -87,16 +83,16 @@ func (c_ CNNUpsamplingNearestNode) Init() CNNUpsamplingNearestNode { // [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 } // [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 } diff --git a/macos/mps/cnnyolo_loss.gen.go b/macos/mps/cnnyolo_loss.gen.go index 93724ab6..c1aed9e7 100644 --- a/macos/mps/cnnyolo_loss.gen.go +++ b/macos/mps/cnnyolo_loss.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package mps @@ -22,23 +22,27 @@ 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 - LossClasses() CNNLoss - ScaleWH() float64 - MinIOUForObjectPresence() float64 - ScaleXY() float64 + NumberOfAnchorBoxes() uint + ScaleNoObject() float64 ScaleObject() float64 - MaxIOUForObjectAbsence() float64 + LossWH() CNNLoss + ScaleWH() float64 + LossClasses() CNNLoss AnchorBoxes() []byte + MaxIOUForObjectAbsence() float64 + ScaleXY() float64 ReductionType() CNNReductionType + LossXY() CNNLoss ReduceAcrossBatch() bool ScaleClass() float64 LossConfidence() CNNLoss - ScaleNoObject() float64 - LossXY() CNNLoss - LossWH() CNNLoss - NumberOfAnchorBoxes() uint + MinIOUForObjectPresence() float64 } // A kernel that computes the YOLO loss and loss gradient between specified predictions and labels. [Full Topic] @@ -74,10 +78,6 @@ func (cc _CNNYOLOLossClass) Alloc() CNNYOLOLoss { return rv } -func CNNYOLOLoss_Alloc() CNNYOLOLoss { - return CNNYOLOLossClass.Alloc() -} - func (cc _CNNYOLOLossClass) New() CNNYOLOLoss { rv := objc.Call[CNNYOLOLoss](cc, objc.Sel("new")) rv.Autorelease() @@ -111,7 +111,6 @@ func NewCNNYOLOLossWithDevice(device metal.PDevice) CNNYOLOLoss { func (c_ CNNYOLOLoss) CopyWithZoneDevice(zone unsafe.Pointer, device metal.PDevice) CNNYOLOLoss { po1 := objc.WrapAsProtocol("MTLDevice", device) rv := objc.Call[CNNYOLOLoss](c_, objc.Sel("copyWithZone:device:"), zone, po1) - rv.Autorelease() return rv } @@ -141,6 +140,36 @@ 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, objc.Ptr(sourceImage), objc.Ptr(labels), objc.Ptr(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:"), objc.Ptr(commandBufferObject), objc.Ptr(sourceImage), objc.Ptr(labels), objc.Ptr(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:"), objc.Ptr(commandBufferObject), sourceImage, labels, destinationImage) +} + // [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpscnnyololoss/2976478-encodetocommandbuffer?language=objc @@ -160,49 +189,49 @@ func (c_ CNNYOLOLoss) EncodeToCommandBufferObjectSourceImageLabels(commandBuffer // [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/2976488-numberofanchorboxes?language=objc +func (c_ CNNYOLOLoss) NumberOfAnchorBoxes() uint { + rv := objc.Call[uint](c_, objc.Sel("numberOfAnchorBoxes")) return rv } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpscnnyololoss/2976493-scalewh?language=objc -func (c_ CNNYOLOLoss) ScaleWH() float64 { - rv := objc.Call[float64](c_, objc.Sel("scaleWH")) +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpscnnyololoss/2976491-scalenoobject?language=objc +func (c_ CNNYOLOLoss) ScaleNoObject() float64 { + rv := objc.Call[float64](c_, objc.Sel("scaleNoObject")) return rv } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpscnnyololoss/2976487-miniouforobjectpresence?language=objc -func (c_ CNNYOLOLoss) MinIOUForObjectPresence() float64 { - rv := objc.Call[float64](c_, objc.Sel("minIOUForObjectPresence")) +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpscnnyololoss/2976492-scaleobject?language=objc +func (c_ CNNYOLOLoss) ScaleObject() float64 { + rv := objc.Call[float64](c_, objc.Sel("scaleObject")) return rv } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpscnnyololoss/2976494-scalexy?language=objc -func (c_ CNNYOLOLoss) ScaleXY() float64 { - rv := objc.Call[float64](c_, objc.Sel("scaleXY")) +// [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/2976492-scaleobject?language=objc -func (c_ CNNYOLOLoss) ScaleObject() float64 { - rv := objc.Call[float64](c_, objc.Sel("scaleObject")) +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpscnnyololoss/2976493-scalewh?language=objc +func (c_ CNNYOLOLoss) ScaleWH() float64 { + rv := objc.Call[float64](c_, objc.Sel("scaleWH")) return rv } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpscnnyololoss/2976486-maxiouforobjectabsence?language=objc -func (c_ CNNYOLOLoss) MaxIOUForObjectAbsence() float64 { - rv := objc.Call[float64](c_, objc.Sel("maxIOUForObjectAbsence")) +// [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 } @@ -216,64 +245,64 @@ func (c_ CNNYOLOLoss) AnchorBoxes() []byte { // [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/2976486-maxiouforobjectabsence?language=objc +func (c_ CNNYOLOLoss) MaxIOUForObjectAbsence() float64 { + rv := objc.Call[float64](c_, objc.Sel("maxIOUForObjectAbsence")) 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/2976494-scalexy?language=objc +func (c_ CNNYOLOLoss) ScaleXY() float64 { + rv := objc.Call[float64](c_, objc.Sel("scaleXY")) return rv } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpscnnyololoss/2976490-scaleclass?language=objc -func (c_ CNNYOLOLoss) ScaleClass() float64 { - rv := objc.Call[float64](c_, objc.Sel("scaleClass")) +// [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/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/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/2976491-scalenoobject?language=objc -func (c_ CNNYOLOLoss) ScaleNoObject() float64 { - rv := objc.Call[float64](c_, objc.Sel("scaleNoObject")) +// [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/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/2976490-scaleclass?language=objc +func (c_ CNNYOLOLoss) ScaleClass() float64 { + rv := objc.Call[float64](c_, objc.Sel("scaleClass")) 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/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/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/2976487-miniouforobjectpresence?language=objc +func (c_ CNNYOLOLoss) MinIOUForObjectPresence() float64 { + rv := objc.Call[float64](c_, objc.Sel("minIOUForObjectPresence")) return rv } diff --git a/macos/mps/cnnyolo_loss_descriptor.gen.go b/macos/mps/cnnyolo_loss_descriptor.gen.go index 07b3f98a..c8619144 100644 --- a/macos/mps/cnnyolo_loss_descriptor.gen.go +++ b/macos/mps/cnnyolo_loss_descriptor.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package mps @@ -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() float64 + SetScaleXY(value float64) ScaleWH() float64 SetScaleWH(value float64) + MaxIOUForObjectAbsence() float64 + SetMaxIOUForObjectAbsence(value float64) + ScaleClass() float64 + SetScaleClass(value float64) MinIOUForObjectPresence() float64 SetMinIOUForObjectPresence(value float64) - ScaleXY() float64 - SetScaleXY(value float64) ScaleObject() float64 SetScaleObject(value float64) - MaxIOUForObjectAbsence() float64 - SetMaxIOUForObjectAbsence(value float64) AnchorBoxes() []byte SetAnchorBoxes(value []byte) - Rescore() bool - SetRescore(value bool) - ReductionType() CNNReductionType - SetReductionType(value CNNReductionType) - ReduceAcrossBatch() bool - SetReduceAcrossBatch(value bool) - ConfidenceLossDescriptor() CNNLossDescriptor - SetConfidenceLossDescriptor(value ICNNLossDescriptor) + NumberOfAnchorBoxes() uint + SetNumberOfAnchorBoxes(value uint) WHLossDescriptor() CNNLossDescriptor SetWHLossDescriptor(value ICNNLossDescriptor) - ScaleClass() float64 - SetScaleClass(value float64) - XYLossDescriptor() CNNLossDescriptor - SetXYLossDescriptor(value ICNNLossDescriptor) + ReductionType() CNNReductionType + SetReductionType(value CNNReductionType) ScaleNoObject() float64 SetScaleNoObject(value float64) + ReduceAcrossBatch() bool + SetReduceAcrossBatch(value bool) + Rescore() bool + SetRescore(value bool) ClassesLossDescriptor() CNNLossDescriptor SetClassesLossDescriptor(value ICNNLossDescriptor) - NumberOfAnchorBoxes() uint - SetNumberOfAnchorBoxes(value uint) } // An object that specifies properties used by a YOLO loss kernel. [Full Topic] @@ -70,10 +70,6 @@ func (cc _CNNYOLOLossDescriptorClass) Alloc() CNNYOLOLossDescriptor { return rv } -func CNNYOLOLossDescriptor_Alloc() CNNYOLOLossDescriptor { - return CNNYOLOLossDescriptorClass.Alloc() -} - func (cc _CNNYOLOLossDescriptorClass) New() CNNYOLOLossDescriptor { rv := objc.Call[CNNYOLOLossDescriptor](cc, objc.Sel("new")) rv.Autorelease() @@ -106,32 +102,32 @@ func CNNYOLOLossDescriptor_CnnLossDescriptorWithXYLossTypeWHLossTypeConfidenceLo // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpscnnyololossdescriptor/2976510-scalewh?language=objc -func (c_ CNNYOLOLossDescriptor) ScaleWH() float64 { - rv := objc.Call[float64](c_, objc.Sel("scaleWH")) +// [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/2976510-scalewh?language=objc -func (c_ CNNYOLOLossDescriptor) SetScaleWH(value float64) { - objc.Call[objc.Void](c_, objc.Sel("setScaleWH:"), 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:"), objc.Ptr(value)) } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpscnnyololossdescriptor/2976503-miniouforobjectpresence?language=objc -func (c_ CNNYOLOLossDescriptor) MinIOUForObjectPresence() float64 { - rv := objc.Call[float64](c_, objc.Sel("minIOUForObjectPresence")) +// [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/2976503-miniouforobjectpresence?language=objc -func (c_ CNNYOLOLossDescriptor) SetMinIOUForObjectPresence(value float64) { - objc.Call[objc.Void](c_, objc.Sel("setMinIOUForObjectPresence:"), 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:"), objc.Ptr(value)) } // [Full Topic] @@ -151,17 +147,17 @@ func (c_ CNNYOLOLossDescriptor) SetScaleXY(value float64) { // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpscnnyololossdescriptor/2976509-scaleobject?language=objc -func (c_ CNNYOLOLossDescriptor) ScaleObject() float64 { - rv := objc.Call[float64](c_, objc.Sel("scaleObject")) +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpscnnyololossdescriptor/2976510-scalewh?language=objc +func (c_ CNNYOLOLossDescriptor) ScaleWH() float64 { + rv := objc.Call[float64](c_, objc.Sel("scaleWH")) return rv } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpscnnyololossdescriptor/2976509-scaleobject?language=objc -func (c_ CNNYOLOLossDescriptor) SetScaleObject(value float64) { - objc.Call[objc.Void](c_, objc.Sel("setScaleObject:"), value) +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpscnnyololossdescriptor/2976510-scalewh?language=objc +func (c_ CNNYOLOLossDescriptor) SetScaleWH(value float64) { + objc.Call[objc.Void](c_, objc.Sel("setScaleWH:"), value) } // [Full Topic] @@ -181,77 +177,77 @@ func (c_ CNNYOLOLossDescriptor) SetMaxIOUForObjectAbsence(value float64) { // [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/2976507-scaleclass?language=objc +func (c_ CNNYOLOLossDescriptor) ScaleClass() float64 { + rv := objc.Call[float64](c_, objc.Sel("scaleClass")) 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/2976507-scaleclass?language=objc +func (c_ CNNYOLOLossDescriptor) SetScaleClass(value float64) { + objc.Call[objc.Void](c_, objc.Sel("setScaleClass:"), 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/2976503-miniouforobjectpresence?language=objc +func (c_ CNNYOLOLossDescriptor) MinIOUForObjectPresence() float64 { + rv := objc.Call[float64](c_, objc.Sel("minIOUForObjectPresence")) 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/2976503-miniouforobjectpresence?language=objc +func (c_ CNNYOLOLossDescriptor) SetMinIOUForObjectPresence(value float64) { + objc.Call[objc.Void](c_, objc.Sel("setMinIOUForObjectPresence:"), value) } // [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/2976509-scaleobject?language=objc +func (c_ CNNYOLOLossDescriptor) ScaleObject() float64 { + rv := objc.Call[float64](c_, objc.Sel("scaleObject")) 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/2976509-scaleobject?language=objc +func (c_ CNNYOLOLossDescriptor) SetScaleObject(value float64) { + objc.Call[objc.Void](c_, objc.Sel("setScaleObject:"), 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/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/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/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/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/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/2976501-confidencelossdescriptor?language=objc -func (c_ CNNYOLOLossDescriptor) SetConfidenceLossDescriptor(value ICNNLossDescriptor) { - objc.Call[objc.Void](c_, objc.Sel("setConfidenceLossDescriptor:"), objc.Ptr(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) } // [Full Topic] @@ -271,75 +267,75 @@ func (c_ CNNYOLOLossDescriptor) SetWHLossDescriptor(value ICNNLossDescriptor) { // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpscnnyololossdescriptor/2976507-scaleclass?language=objc -func (c_ CNNYOLOLossDescriptor) ScaleClass() float64 { - rv := objc.Call[float64](c_, objc.Sel("scaleClass")) +// [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/2976507-scaleclass?language=objc -func (c_ CNNYOLOLossDescriptor) SetScaleClass(value float64) { - objc.Call[objc.Void](c_, objc.Sel("setScaleClass:"), 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/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/2976508-scalenoobject?language=objc +func (c_ CNNYOLOLossDescriptor) ScaleNoObject() float64 { + rv := objc.Call[float64](c_, objc.Sel("scaleNoObject")) 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:"), objc.Ptr(value)) +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpscnnyololossdescriptor/2976508-scalenoobject?language=objc +func (c_ CNNYOLOLossDescriptor) SetScaleNoObject(value float64) { + objc.Call[objc.Void](c_, objc.Sel("setScaleNoObject:"), value) } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpscnnyololossdescriptor/2976508-scalenoobject?language=objc -func (c_ CNNYOLOLossDescriptor) ScaleNoObject() float64 { - rv := objc.Call[float64](c_, objc.Sel("scaleNoObject")) +// [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/2976508-scalenoobject?language=objc -func (c_ CNNYOLOLossDescriptor) SetScaleNoObject(value float64) { - objc.Call[objc.Void](c_, objc.Sel("setScaleNoObject:"), 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/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/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/2976499-classeslossdescriptor?language=objc -func (c_ CNNYOLOLossDescriptor) SetClassesLossDescriptor(value ICNNLossDescriptor) { - objc.Call[objc.Void](c_, objc.Sel("setClassesLossDescriptor:"), objc.Ptr(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/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/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/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/2976499-classeslossdescriptor?language=objc +func (c_ CNNYOLOLossDescriptor) SetClassesLossDescriptor(value ICNNLossDescriptor) { + objc.Call[objc.Void](c_, objc.Sel("setClassesLossDescriptor:"), objc.Ptr(value)) } diff --git a/macos/mps/cnnyolo_loss_node.gen.go b/macos/mps/cnnyolo_loss_node.gen.go index 3e998912..574140ae 100644 --- a/macos/mps/cnnyolo_loss_node.gen.go +++ b/macos/mps/cnnyolo_loss_node.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package mps @@ -65,10 +65,6 @@ func (cc _CNNYOLOLossNodeClass) Alloc() CNNYOLOLossNode { return rv } -func CNNYOLOLossNode_Alloc() CNNYOLOLossNode { - return CNNYOLOLossNodeClass.Alloc() -} - func (cc _CNNYOLOLossNodeClass) New() CNNYOLOLossNode { rv := objc.Call[CNNYOLOLossNode](cc, objc.Sel("new")) rv.Autorelease() diff --git a/macos/mps/command_buffer.gen.go b/macos/mps/command_buffer.gen.go index 65856b13..3bbbbd92 100644 --- a/macos/mps/command_buffer.gen.go +++ b/macos/mps/command_buffer.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package mps @@ -19,15 +19,15 @@ type _CommandBufferClass struct { // An interface definition for the [CommandBuffer] class. type ICommandBuffer interface { objc.IObject - PrefetchHeapForWorkloadSize(size uint) CommitAndContinue() - RootCommandBuffer() metal.CommandBufferWrapper - CommandBuffer() metal.CommandBufferWrapper + PrefetchHeapForWorkloadSize(size uint) + CommandBuffer() metal.CommandBufferObject Predicate() Predicate SetPredicate(value IPredicate) - HeapProvider() HeapProviderWrapper + HeapProvider() HeapProviderObject SetHeapProvider(value PHeapProvider) SetHeapProviderObject(valueObject objc.IObject) + RootCommandBuffer() metal.CommandBufferObject } // [Full Topic] @@ -89,10 +89,6 @@ func (cc _CommandBufferClass) Alloc() CommandBuffer { return rv } -func CommandBuffer_Alloc() CommandBuffer { - return CommandBufferClass.Alloc() -} - func (cc _CommandBufferClass) New() CommandBuffer { rv := objc.Call[CommandBuffer](cc, objc.Sel("new")) rv.Autorelease() @@ -108,13 +104,6 @@ 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 @@ -124,17 +113,16 @@ func (c_ CommandBuffer) CommitAndContinue() { // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpscommandbuffer/3166772-rootcommandbuffer?language=objc -func (c_ CommandBuffer) RootCommandBuffer() metal.CommandBufferWrapper { - rv := objc.Call[metal.CommandBufferWrapper](c_, objc.Sel("rootCommandBuffer")) - return rv +// [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/3114028-commandbuffer?language=objc -func (c_ CommandBuffer) CommandBuffer() metal.CommandBufferWrapper { - rv := objc.Call[metal.CommandBufferWrapper](c_, objc.Sel("commandBuffer")) +func (c_ CommandBuffer) CommandBuffer() metal.CommandBufferObject { + rv := objc.Call[metal.CommandBufferObject](c_, objc.Sel("commandBuffer")) return rv } @@ -156,8 +144,8 @@ func (c_ CommandBuffer) SetPredicate(value IPredicate) { // [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpscommandbuffer/3229857-heapprovider?language=objc -func (c_ CommandBuffer) HeapProvider() HeapProviderWrapper { - rv := objc.Call[HeapProviderWrapper](c_, objc.Sel("heapProvider")) +func (c_ CommandBuffer) HeapProvider() HeapProviderObject { + rv := objc.Call[HeapProviderObject](c_, objc.Sel("heapProvider")) return rv } @@ -175,3 +163,11 @@ func (c_ CommandBuffer) SetHeapProvider(value PHeapProvider) { func (c_ CommandBuffer) SetHeapProviderObject(valueObject objc.IObject) { objc.Call[objc.Void](c_, objc.Sel("setHeapProvider:"), objc.Ptr(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/device_provider.gen.go b/macos/mps/device_provider_protocol.gen.go similarity index 57% rename from macos/mps/device_provider.gen.go rename to macos/mps/device_provider_protocol.gen.go index 45410b10..9220ec1c 100644 --- a/macos/mps/device_provider.gen.go +++ b/macos/mps/device_provider_protocol.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package mps @@ -12,23 +12,26 @@ import ( // [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsdeviceprovider?language=objc type PDeviceProvider interface { // optional - MpsMTLDevice() metal.PDevice + MpsMTLDevice() metal.DeviceObject HasMpsMTLDevice() bool } -// A concrete type wrapper for the [PDeviceProvider] protocol. -type DeviceProviderWrapper struct { +// ensure impl type implements protocol interface +var _ PDeviceProvider = (*DeviceProviderObject)(nil) + +// A concrete type for the [PDeviceProvider] protocol. +type DeviceProviderObject struct { objc.Object } -func (d_ DeviceProviderWrapper) HasMpsMTLDevice() bool { +func (d_ DeviceProviderObject) HasMpsMTLDevice() bool { return d_.RespondsToSelector(objc.Sel("mpsMTLDevice")) } // [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsdeviceprovider/2875211-mpsmtldevice?language=objc -func (d_ DeviceProviderWrapper) MpsMTLDevice() metal.DeviceWrapper { - rv := objc.Call[metal.DeviceWrapper](d_, objc.Sel("mpsMTLDevice")) +func (d_ DeviceProviderObject) MpsMTLDevice() metal.DeviceObject { + rv := objc.Call[metal.DeviceObject](d_, objc.Sel("mpsMTLDevice")) return rv } diff --git a/macos/mps/doc.gen.go b/macos/mps/doc.gen.go index 85018bd5..9d3fc953 100644 --- a/macos/mps/doc.gen.go +++ b/macos/mps/doc.gen.go @@ -1,8 +1,8 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. // Optimize graphics and compute performance with kernels that are fine-tuned for the unique characteristics of each Metal GPU family. // -// [Full Documentation] +// [Apple Documentation] // -// [Full Documentation]: https://developer.apple.com/documentation/metalperformanceshaders?language=objc +// [Apple Documentation]: https://developer.apple.com/documentation/metalperformanceshaders?language=objc package mps diff --git a/macos/mps/enumtypes.gen.go b/macos/mps/enumtypes.gen.go index 0dd9787f..0e9df19c 100644 --- a/macos/mps/enumtypes.gen.go +++ b/macos/mps/enumtypes.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package mps diff --git a/macos/mps/gru_descriptor.gen.go b/macos/mps/gru_descriptor.gen.go index 45fb1bfe..52b8387d 100644 --- a/macos/mps/gru_descriptor.gen.go +++ b/macos/mps/gru_descriptor.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package mps @@ -18,31 +18,31 @@ type _GRUDescriptorClass struct { // An interface definition for the [GRUDescriptor] class. type IGRUDescriptor interface { IRNNDescriptor - InputGateInputWeights() CNNConvolutionDataSourceWrapper + 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() CNNConvolutionDataSourceWrapper + RecurrentGateRecurrentWeights() CNNConvolutionDataSourceObject SetRecurrentGateRecurrentWeights(value PCNNConvolutionDataSource) SetRecurrentGateRecurrentWeightsObject(valueObject objc.IObject) - OutputGateInputGateWeights() CNNConvolutionDataSourceWrapper - SetOutputGateInputGateWeights(value PCNNConvolutionDataSource) - SetOutputGateInputGateWeightsObject(valueObject objc.IObject) - GatePnormValue() float64 - SetGatePnormValue(value float64) - OutputGateRecurrentWeights() CNNConvolutionDataSourceWrapper - SetOutputGateRecurrentWeights(value PCNNConvolutionDataSource) - SetOutputGateRecurrentWeightsObject(valueObject objc.IObject) - FlipOutputGates() bool - SetFlipOutputGates(value bool) - RecurrentGateInputWeights() CNNConvolutionDataSourceWrapper + RecurrentGateInputWeights() CNNConvolutionDataSourceObject SetRecurrentGateInputWeights(value PCNNConvolutionDataSource) SetRecurrentGateInputWeightsObject(valueObject objc.IObject) - InputGateRecurrentWeights() CNNConvolutionDataSourceWrapper + GatePnormValue() float64 + SetGatePnormValue(value float64) + InputGateRecurrentWeights() CNNConvolutionDataSourceObject SetInputGateRecurrentWeights(value PCNNConvolutionDataSource) SetInputGateRecurrentWeightsObject(valueObject objc.IObject) - OutputGateInputWeights() CNNConvolutionDataSourceWrapper - SetOutputGateInputWeights(value PCNNConvolutionDataSource) - SetOutputGateInputWeightsObject(valueObject objc.IObject) } // A description of a gated recurrent unit block or layer. [Full Topic] @@ -75,10 +75,6 @@ func (gc _GRUDescriptorClass) Alloc() GRUDescriptor { return rv } -func GRUDescriptor_Alloc() GRUDescriptor { - return GRUDescriptorClass.Alloc() -} - func (gc _GRUDescriptorClass) New() GRUDescriptor { rv := objc.Call[GRUDescriptor](gc, objc.Sel("new")) rv.Autorelease() @@ -96,55 +92,47 @@ func (g_ GRUDescriptor) Init() GRUDescriptor { // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsgrudescriptor/2865690-inputgateinputweights?language=objc -func (g_ GRUDescriptor) InputGateInputWeights() CNNConvolutionDataSourceWrapper { - rv := objc.Call[CNNConvolutionDataSourceWrapper](g_, objc.Sel("inputGateInputWeights")) +// [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/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/2865690-inputgateinputweights?language=objc -func (g_ GRUDescriptor) SetInputGateInputWeightsObject(valueObject objc.IObject) { - objc.Call[objc.Void](g_, objc.Sel("setInputGateInputWeights:"), objc.Ptr(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] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsgrudescriptor/2865695-recurrentgaterecurrentweights?language=objc -func (g_ GRUDescriptor) RecurrentGateRecurrentWeights() CNNConvolutionDataSourceWrapper { - rv := objc.Call[CNNConvolutionDataSourceWrapper](g_, objc.Sel("recurrentGateRecurrentWeights")) +// [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/2865695-recurrentgaterecurrentweights?language=objc -func (g_ GRUDescriptor) SetRecurrentGateRecurrentWeights(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("setRecurrentGateRecurrentWeights:"), po0) + objc.Call[objc.Void](g_, objc.Sel("setOutputGateRecurrentWeights:"), 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:"), objc.Ptr(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:"), objc.Ptr(valueObject)) } // [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsgrudescriptor/2878270-outputgateinputgateweights?language=objc -func (g_ GRUDescriptor) OutputGateInputGateWeights() CNNConvolutionDataSourceWrapper { - rv := objc.Call[CNNConvolutionDataSourceWrapper](g_, objc.Sel("outputGateInputGateWeights")) +func (g_ GRUDescriptor) OutputGateInputGateWeights() CNNConvolutionDataSourceObject { + rv := objc.Call[CNNConvolutionDataSourceObject](g_, objc.Sel("outputGateInputGateWeights")) return rv } @@ -165,62 +153,78 @@ func (g_ GRUDescriptor) SetOutputGateInputGateWeightsObject(valueObject objc.IOb // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsgrudescriptor/2873332-gatepnormvalue?language=objc -func (g_ GRUDescriptor) GatePnormValue() float64 { - rv := objc.Call[float64](g_, objc.Sel("gatePnormValue")) +// [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/2873332-gatepnormvalue?language=objc -func (g_ GRUDescriptor) SetGatePnormValue(value float64) { - objc.Call[objc.Void](g_, objc.Sel("setGatePnormValue:"), value) +// [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/2865699-outputgaterecurrentweights?language=objc -func (g_ GRUDescriptor) OutputGateRecurrentWeights() CNNConvolutionDataSourceWrapper { - rv := objc.Call[CNNConvolutionDataSourceWrapper](g_, objc.Sel("outputGateRecurrentWeights")) +// [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:"), objc.Ptr(valueObject)) +} + +// [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")) 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/2865690-inputgateinputweights?language=objc +func (g_ GRUDescriptor) SetInputGateInputWeights(value PCNNConvolutionDataSource) { po0 := objc.WrapAsProtocol("MPSCNNConvolutionDataSource", value) - objc.Call[objc.Void](g_, objc.Sel("setOutputGateRecurrentWeights:"), po0) + 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) SetOutputGateRecurrentWeightsObject(valueObject objc.IObject) { - objc.Call[objc.Void](g_, objc.Sel("setOutputGateRecurrentWeights:"), objc.Ptr(valueObject)) +// [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:"), objc.Ptr(valueObject)) } // [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/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/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/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:"), objc.Ptr(valueObject)) } // [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsgrudescriptor/2865719-recurrentgateinputweights?language=objc -func (g_ GRUDescriptor) RecurrentGateInputWeights() CNNConvolutionDataSourceWrapper { - rv := objc.Call[CNNConvolutionDataSourceWrapper](g_, objc.Sel("recurrentGateInputWeights")) +func (g_ GRUDescriptor) RecurrentGateInputWeights() CNNConvolutionDataSourceObject { + rv := objc.Call[CNNConvolutionDataSourceObject](g_, objc.Sel("recurrentGateInputWeights")) return rv } @@ -241,46 +245,38 @@ func (g_ GRUDescriptor) SetRecurrentGateInputWeightsObject(valueObject objc.IObj // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsgrudescriptor/2865724-inputgaterecurrentweights?language=objc -func (g_ GRUDescriptor) InputGateRecurrentWeights() CNNConvolutionDataSourceWrapper { - rv := objc.Call[CNNConvolutionDataSourceWrapper](g_, objc.Sel("inputGateRecurrentWeights")) +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsgrudescriptor/2873332-gatepnormvalue?language=objc +func (g_ GRUDescriptor) GatePnormValue() float64 { + rv := objc.Call[float64](g_, objc.Sel("gatePnormValue")) return rv } // [Full Topic] // -// [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]: https://developer.apple.com/documentation/metalperformanceshaders/mpsgrudescriptor/2873332-gatepnormvalue?language=objc +func (g_ GRUDescriptor) SetGatePnormValue(value float64) { + objc.Call[objc.Void](g_, objc.Sel("setGatePnormValue:"), value) } // [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:"), objc.Ptr(valueObject)) -} - -// [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsgrudescriptor/2865722-outputgateinputweights?language=objc -func (g_ GRUDescriptor) OutputGateInputWeights() CNNConvolutionDataSourceWrapper { - rv := objc.Call[CNNConvolutionDataSourceWrapper](g_, objc.Sel("outputGateInputWeights")) +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/2865722-outputgateinputweights?language=objc -func (g_ GRUDescriptor) SetOutputGateInputWeights(value PCNNConvolutionDataSource) { +// [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("setOutputGateInputWeights:"), po0) + objc.Call[objc.Void](g_, objc.Sel("setInputGateRecurrentWeights:"), 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:"), objc.Ptr(valueObject)) +// [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:"), objc.Ptr(valueObject)) } diff --git a/macos/mps/handle.gen.go b/macos/mps/handle_protocol.gen.go similarity index 67% rename from macos/mps/handle.gen.go rename to macos/mps/handle_protocol.gen.go index a5138ce1..781d890c 100644 --- a/macos/mps/handle.gen.go +++ b/macos/mps/handle_protocol.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package mps @@ -15,19 +15,22 @@ type PHandle interface { HasLabel() bool } -// A concrete type wrapper for the [PHandle] protocol. -type HandleWrapper struct { +// ensure impl type implements protocol interface +var _ PHandle = (*HandleObject)(nil) + +// A concrete type for the [PHandle] protocol. +type HandleObject struct { objc.Object } -func (h_ HandleWrapper) HasLabel() bool { +func (h_ HandleObject) HasLabel() bool { return h_.RespondsToSelector(objc.Sel("label")) } // [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpshandle/2866414-label?language=objc -func (h_ HandleWrapper) Label() string { +func (h_ HandleObject) Label() string { rv := objc.Call[string](h_, objc.Sel("label")) return rv } diff --git a/macos/mps/heap_provider.gen.go b/macos/mps/heap_provider_protocol.gen.go similarity index 55% rename from macos/mps/heap_provider.gen.go rename to macos/mps/heap_provider_protocol.gen.go index a69f96bf..53fe48fe 100644 --- a/macos/mps/heap_provider.gen.go +++ b/macos/mps/heap_provider_protocol.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package mps @@ -12,40 +12,42 @@ import ( // [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsheapprovider?language=objc type PHeapProvider interface { // optional - RetireHeapCacheDelay(heap metal.HeapWrapper, seconds float64) - HasRetireHeapCacheDelay() bool + NewHeapWithDescriptor(descriptor metal.HeapDescriptor) metal.HeapObject + HasNewHeapWithDescriptor() bool // optional - NewHeapWithDescriptor(descriptor metal.HeapDescriptor) metal.PHeap - HasNewHeapWithDescriptor() bool + RetireHeapCacheDelay(heap metal.HeapObject, seconds float64) + HasRetireHeapCacheDelay() bool } -// A concrete type wrapper for the [PHeapProvider] protocol. -type HeapProviderWrapper struct { +// ensure impl type implements protocol interface +var _ PHeapProvider = (*HeapProviderObject)(nil) + +// A concrete type for the [PHeapProvider] protocol. +type HeapProviderObject struct { objc.Object } -func (h_ HeapProviderWrapper) HasRetireHeapCacheDelay() bool { - return h_.RespondsToSelector(objc.Sel("retireHeap:cacheDelay:")) +func (h_ HeapProviderObject) HasNewHeapWithDescriptor() bool { + return h_.RespondsToSelector(objc.Sel("newHeapWithDescriptor:")) } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsheapprovider/3229862-retireheap?language=objc -func (h_ HeapProviderWrapper) RetireHeapCacheDelay(heap metal.PHeap, seconds float64) { - po0 := objc.WrapAsProtocol("MTLHeap", heap) - objc.Call[objc.Void](h_, objc.Sel("retireHeap:cacheDelay:"), po0, seconds) +// [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:"), objc.Ptr(descriptor)) + return rv } -func (h_ HeapProviderWrapper) HasNewHeapWithDescriptor() bool { - return h_.RespondsToSelector(objc.Sel("newHeapWithDescriptor:")) +func (h_ HeapProviderObject) HasRetireHeapCacheDelay() bool { + return h_.RespondsToSelector(objc.Sel("retireHeap:cacheDelay:")) } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsheapprovider/3229861-newheapwithdescriptor?language=objc -func (h_ HeapProviderWrapper) NewHeapWithDescriptor(descriptor metal.IHeapDescriptor) metal.HeapWrapper { - rv := objc.Call[metal.HeapWrapper](h_, objc.Sel("newHeapWithDescriptor:"), objc.Ptr(descriptor)) - rv.Autorelease() - return rv +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsheapprovider/3229862-retireheap?language=objc +func (h_ HeapProviderObject) RetireHeapCacheDelay(heap metal.HeapObject, seconds float64) { + po0 := objc.WrapAsProtocol("MTLHeap", heap) + objc.Call[objc.Void](h_, objc.Sel("retireHeap:cacheDelay:"), po0, seconds) } diff --git a/macos/mps/image.gen.go b/macos/mps/image.gen.go index a5b84720..7683cae3 100644 --- a/macos/mps/image.gen.go +++ b/macos/mps/image.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package mps @@ -20,30 +20,35 @@ type _ImageClass struct { // An interface definition for the [Image] class. type IImage interface { objc.IObject - BatchRepresentationWithSubRange(subRange foundation.Range) *foundation.Array - ResourceSize() uint + 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 - WriteBytesDataLayoutImageIndex(dataBytes unsafe.Pointer, dataLayout DataLayout, imageIndex uint) - ReadBytesDataLayoutImageIndex(dataBytes unsafe.Pointer, dataLayout DataLayout, imageIndex uint) + 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) - SubImageWithFeatureChannelRange(range_ foundation.Range) Image - SetPurgeableState(state PurgeableState) PurgeableState - Width() uint - Usage() metal.TextureUsage - Parent() Image - Device() metal.DeviceWrapper - NumberOfImages() uint + 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) + WriteBytesDataLayoutImageIndex(dataBytes unsafe.Pointer, dataLayout DataLayout, imageIndex 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) - Texture() metal.TextureWrapper - Precision() uint - PixelSize() uint + TextureType() metal.TextureType + Device() metal.DeviceObject } // A texture that may have more than four channels for use in convolutional neural networks. [Full Topic] @@ -59,20 +64,6 @@ 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:"), objc.Ptr(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) @@ -103,13 +94,23 @@ func NewImageWithDeviceImageDescriptor(device metal.PDevice, imageDescriptor IIm return instance } -func (ic _ImageClass) Alloc() Image { - rv := objc.Call[Image](ic, objc.Sel("alloc")) +func (i_ Image) InitWithParentImageSliceRangeFeatureChannels(parent IImage, sliceRange foundation.Range, featureChannels uint) Image { + rv := objc.Call[Image](i_, objc.Sel("initWithParentImage:sliceRange:featureChannels:"), objc.Ptr(parent), sliceRange, featureChannels) return rv } -func Image_Alloc() Image { - return ImageClass.Alloc() +// [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 } func (ic _ImageClass) New() Image { @@ -127,42 +128,49 @@ func (i_ Image) Init() Image { 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/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/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/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/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/2942495-batchrepresentation?language=objc -func (i_ Image) BatchRepresentation() *foundation.Array { - rv := objc.Call[*foundation.Array](i_, objc.Sel("batchRepresentation")) +// [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] // -// [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]: 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] // -// [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/2942495-batchrepresentation?language=objc +func (i_ Image) BatchRepresentation() *foundation.Array { + rv := objc.Call[*foundation.Array](i_, objc.Sel("batchRepresentation")) + return rv +} + +// [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] @@ -182,64 +190,76 @@ func (i_ Image) SynchronizeOnCommandBufferObject(commandBufferObject objc.IObjec // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsimage/2867148-defaultallocator?language=objc -func (ic _ImageClass) DefaultAllocator() ImageAllocatorWrapper { - rv := objc.Call[ImageAllocatorWrapper](ic, objc.Sel("defaultAllocator")) - return rv +// [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/2867148-defaultallocator?language=objc -func Image_DefaultAllocator() ImageAllocatorWrapper { - return ImageClass.DefaultAllocator() +// [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/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/2942494-resourcesize?language=objc +func (i_ Image) ResourceSize() uint { + rv := objc.Call[uint](i_, objc.Sel("resourceSize")) return rv } -// Set (or query) the purgeable state of the image’s underlying texture. [Full Topic] +// [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]: 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) } -// The formal width of the image, in pixels. [Full Topic] +// [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/2867148-defaultallocator?language=objc +func (ic _ImageClass) DefaultAllocator() ImageAllocatorObject { + rv := objc.Call[ImageAllocatorObject](ic, objc.Sel("defaultAllocator")) return rv } -// The intended usage of the underlying texture. [Full Topic] +// [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 +// [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/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/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] +// +// [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")) return rv } -// The device on which the image will be used. [Full Topic] +// The pixel format of the underlying texture. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsimage/1648857-device?language=objc -func (i_ Image) Device() metal.DeviceWrapper { - rv := objc.Call[metal.DeviceWrapper](i_, objc.Sel("device")) +// [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 } @@ -251,11 +271,11 @@ func (i_ Image) NumberOfImages() uint { return rv } -// The formal height of the image, in pixels. [Full Topic] +// The number of feature channels per pixel. [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/1648901-featurechannels?language=objc +func (i_ Image) FeatureChannels() uint { + rv := objc.Call[uint](i_, objc.Sel("featureChannels")) return rv } @@ -267,27 +287,51 @@ func (i_ Image) FeatureChannelFormat() ImageFeatureChannelFormat { return rv } -// The type of the underlying texture, typically [metal/mtltexturetype/mtltexturetype2d] or [metal/mtltexturetype/mtltexturetype2darray]. [Full Topic] +// 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/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/1648854-pixelsize?language=objc +func (i_ Image) PixelSize() uint { + rv := objc.Call[uint](i_, objc.Sel("pixelSize")) return rv } -// The pixel format of the underlying texture. [Full Topic] +// The intended usage of the underlying texture. [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/1648828-usage?language=objc +func (i_ Image) Usage() metal.TextureUsage { + rv := objc.Call[metal.TextureUsage](i_, objc.Sel("usage")) return rv } -// The number of feature channels per pixel. [Full Topic] +// The underlying texture. [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/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")) + return rv +} + +// [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")) + return rv +} + +// The number of bits of numeric precision available for each feature channel. [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")) return rv } @@ -306,26 +350,18 @@ func (i_ Image) SetLabel(value string) { objc.Call[objc.Void](i_, objc.Sel("setLabel:"), value) } -// The underlying texture. [Full Topic] +// The type of the underlying texture, typically MTLTextureType2D or MTLTextureType2DArray. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsimage/1648903-texture?language=objc -func (i_ Image) Texture() metal.TextureWrapper { - rv := objc.Call[metal.TextureWrapper](i_, objc.Sel("texture")) - return rv -} - -// The number of bits of numeric precision available for each feature channel. [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/1648948-texturetype?language=objc +func (i_ Image) TextureType() metal.TextureType { + rv := objc.Call[metal.TextureType](i_, objc.Sel("textureType")) 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 device on which the image will be used. [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")) +// [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 } diff --git a/macos/mps/image_add.gen.go b/macos/mps/image_add.gen.go index 46388cd7..8fa2be88 100644 --- a/macos/mps/image_add.gen.go +++ b/macos/mps/image_add.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package mps @@ -54,10 +54,6 @@ func (ic _ImageAddClass) Alloc() ImageAdd { return rv } -func ImageAdd_Alloc() ImageAdd { - return ImageAddClass.Alloc() -} - func (ic _ImageAddClass) New() ImageAdd { rv := objc.Call[ImageAdd](ic, objc.Sel("new")) rv.Autorelease() @@ -76,7 +72,6 @@ func (i_ ImageAdd) Init() ImageAdd { func (i_ ImageAdd) CopyWithZoneDevice(zone unsafe.Pointer, device metal.PDevice) ImageAdd { po1 := objc.WrapAsProtocol("MTLDevice", device) rv := objc.Call[ImageAdd](i_, objc.Sel("copyWithZone:device:"), zone, po1) - rv.Autorelease() return rv } diff --git a/macos/mps/image_allocator.gen.go b/macos/mps/image_allocator_protocol.gen.go similarity index 62% rename from macos/mps/image_allocator.gen.go rename to macos/mps/image_allocator_protocol.gen.go index c262fd71..776b2917 100644 --- a/macos/mps/image_allocator.gen.go +++ b/macos/mps/image_allocator_protocol.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package mps @@ -13,41 +13,44 @@ import ( // [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsimageallocator?language=objc type PImageAllocator interface { // optional - ImageForCommandBufferImageDescriptorKernel(cmdBuf metal.CommandBufferWrapper, descriptor ImageDescriptor, kernel Kernel) IImage - HasImageForCommandBufferImageDescriptorKernel() bool + ImageBatchForCommandBufferImageDescriptorKernelCount(cmdBuf metal.CommandBufferObject, descriptor ImageDescriptor, kernel Kernel, count uint) *foundation.Array + HasImageBatchForCommandBufferImageDescriptorKernelCount() bool // optional - ImageBatchForCommandBufferImageDescriptorKernelCount(cmdBuf metal.CommandBufferWrapper, descriptor ImageDescriptor, kernel Kernel, count uint) *foundation.Array - HasImageBatchForCommandBufferImageDescriptorKernelCount() bool + ImageForCommandBufferImageDescriptorKernel(cmdBuf metal.CommandBufferObject, descriptor ImageDescriptor, kernel Kernel) Image + HasImageForCommandBufferImageDescriptorKernel() bool } -// A concrete type wrapper for the [PImageAllocator] protocol. -type ImageAllocatorWrapper struct { +// ensure impl type implements protocol interface +var _ PImageAllocator = (*ImageAllocatorObject)(nil) + +// A concrete type for the [PImageAllocator] protocol. +type ImageAllocatorObject struct { objc.Object } -func (i_ ImageAllocatorWrapper) 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_ ImageAllocatorWrapper) ImageForCommandBufferImageDescriptorKernel(cmdBuf metal.PCommandBuffer, descriptor IImageDescriptor, kernel IKernel) 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, objc.Ptr(descriptor), objc.Ptr(kernel)) + rv := objc.Call[*foundation.Array](i_, objc.Sel("imageBatchForCommandBuffer:imageDescriptor:kernel:count:"), po0, objc.Ptr(descriptor), objc.Ptr(kernel), count) return rv } -func (i_ ImageAllocatorWrapper) 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_ ImageAllocatorWrapper) ImageBatchForCommandBufferImageDescriptorKernelCount(cmdBuf metal.PCommandBuffer, descriptor IImageDescriptor, kernel IKernel, 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, objc.Ptr(descriptor), objc.Ptr(kernel), count) + rv := objc.Call[Image](i_, objc.Sel("imageForCommandBuffer:imageDescriptor:kernel:"), po0, objc.Ptr(descriptor), objc.Ptr(kernel)) return rv } diff --git a/macos/mps/image_area_max.gen.go b/macos/mps/image_area_max.gen.go index 64f017a0..6d1fbf21 100644 --- a/macos/mps/image_area_max.gen.go +++ b/macos/mps/image_area_max.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package mps @@ -19,8 +19,8 @@ type _ImageAreaMaxClass struct { // An interface definition for the [ImageAreaMax] class. type IImageAreaMax interface { IUnaryImageKernel - KernelHeight() uint KernelWidth() uint + KernelHeight() uint } // A filter that finds the maximum pixel value in a rectangular region centered around each pixel in the source image. [Full Topic] @@ -56,10 +56,6 @@ func (ic _ImageAreaMaxClass) Alloc() ImageAreaMax { return rv } -func ImageAreaMax_Alloc() ImageAreaMax { - return ImageAreaMaxClass.Alloc() -} - func (ic _ImageAreaMaxClass) New() ImageAreaMax { rv := objc.Call[ImageAreaMax](ic, objc.Sel("new")) rv.Autorelease() @@ -93,7 +89,6 @@ func NewImageAreaMaxWithDevice(device metal.PDevice) ImageAreaMax { func (i_ ImageAreaMax) CopyWithZoneDevice(zone unsafe.Pointer, device metal.PDevice) ImageAreaMax { po1 := objc.WrapAsProtocol("MTLDevice", device) rv := objc.Call[ImageAreaMax](i_, objc.Sel("copyWithZone:device:"), zone, po1) - rv.Autorelease() return rv } @@ -106,14 +101,6 @@ func ImageAreaMax_CopyWithZoneDevice(zone unsafe.Pointer, device metal.PDevice) return instance } -// 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 -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 @@ -121,3 +108,11 @@ 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 +func (i_ ImageAreaMax) KernelHeight() uint { + rv := objc.Call[uint](i_, objc.Sel("kernelHeight")) + return rv +} diff --git a/macos/mps/image_area_min.gen.go b/macos/mps/image_area_min.gen.go index 4b5b4f0f..a5d07f54 100644 --- a/macos/mps/image_area_min.gen.go +++ b/macos/mps/image_area_min.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package mps @@ -39,10 +39,6 @@ func (ic _ImageAreaMinClass) Alloc() ImageAreaMin { return rv } -func ImageAreaMin_Alloc() ImageAreaMin { - return ImageAreaMinClass.Alloc() -} - func (ic _ImageAreaMinClass) New() ImageAreaMin { rv := objc.Call[ImageAreaMin](ic, objc.Sel("new")) rv.Autorelease() @@ -91,7 +87,6 @@ func NewImageAreaMinWithDevice(device metal.PDevice) ImageAreaMin { func (i_ ImageAreaMin) CopyWithZoneDevice(zone unsafe.Pointer, device metal.PDevice) ImageAreaMin { po1 := objc.WrapAsProtocol("MTLDevice", device) rv := objc.Call[ImageAreaMin](i_, objc.Sel("copyWithZone:device:"), zone, po1) - rv.Autorelease() return rv } diff --git a/macos/mps/image_arithmetic.gen.go b/macos/mps/image_arithmetic.gen.go index f7c0b6fc..59a06b61 100644 --- a/macos/mps/image_arithmetic.gen.go +++ b/macos/mps/image_arithmetic.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package mps @@ -21,18 +21,18 @@ type IImageArithmetic interface { IBinaryImageKernel SecondaryScale() float64 SetSecondaryScale(value float64) - PrimaryStrideInPixels() metal.Size - SetPrimaryStrideInPixels(value metal.Size) SecondaryStrideInPixels() metal.Size SetSecondaryStrideInPixels(value metal.Size) - MaximumValue() float64 - SetMaximumValue(value float64) PrimaryScale() float64 SetPrimaryScale(value float64) - MinimumValue() float64 - SetMinimumValue(value float64) + PrimaryStrideInPixels() metal.Size + SetPrimaryStrideInPixels(value metal.Size) Bias() float64 SetBias(value float64) + MaximumValue() float64 + SetMaximumValue(value float64) + MinimumValue() float64 + SetMinimumValue(value float64) } // Base class for basic arithmetic nodes [Full Topic] @@ -53,10 +53,6 @@ func (ic _ImageArithmeticClass) Alloc() ImageArithmetic { return rv } -func ImageArithmetic_Alloc() ImageArithmetic { - return ImageArithmeticClass.Alloc() -} - func (ic _ImageArithmeticClass) New() ImageArithmetic { rv := objc.Call[ImageArithmetic](ic, objc.Sel("new")) rv.Autorelease() @@ -90,7 +86,6 @@ func NewImageArithmeticWithDevice(device metal.PDevice) ImageArithmetic { func (i_ ImageArithmetic) CopyWithZoneDevice(zone unsafe.Pointer, device metal.PDevice) ImageArithmetic { po1 := objc.WrapAsProtocol("MTLDevice", device) rv := objc.Call[ImageArithmetic](i_, objc.Sel("copyWithZone:device:"), zone, po1) - rv.Autorelease() return rv } @@ -118,21 +113,6 @@ func (i_ ImageArithmetic) SetSecondaryScale(value float64) { objc.Call[objc.Void](i_, objc.Sel("setSecondaryScale:"), value) } -// [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsimagearithmetic/2889864-primarystrideinpixels?language=objc -func (i_ ImageArithmetic) PrimaryStrideInPixels() metal.Size { - rv := objc.Call[metal.Size](i_, objc.Sel("primaryStrideInPixels")) - return rv -} - -// [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsimagearithmetic/2889864-primarystrideinpixels?language=objc -func (i_ ImageArithmetic) SetPrimaryStrideInPixels(value metal.Size) { - objc.Call[objc.Void](i_, objc.Sel("setPrimaryStrideInPixels:"), value) -} - // [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsimagearithmetic/2889865-secondarystrideinpixels?language=objc @@ -148,21 +128,6 @@ 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/2942356-maximumvalue?language=objc -func (i_ ImageArithmetic) MaximumValue() float64 { - rv := objc.Call[float64](i_, objc.Sel("maximumValue")) - return rv -} - -// [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsimagearithmetic/2942356-maximumvalue?language=objc -func (i_ ImageArithmetic) SetMaximumValue(value float64) { - objc.Call[objc.Void](i_, objc.Sel("setMaximumValue:"), value) -} - // [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsimagearithmetic/2866602-primaryscale?language=objc @@ -180,17 +145,17 @@ func (i_ ImageArithmetic) SetPrimaryScale(value float64) { // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsimagearithmetic/2942357-minimumvalue?language=objc -func (i_ ImageArithmetic) MinimumValue() float64 { - rv := objc.Call[float64](i_, objc.Sel("minimumValue")) +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsimagearithmetic/2889864-primarystrideinpixels?language=objc +func (i_ ImageArithmetic) PrimaryStrideInPixels() metal.Size { + rv := objc.Call[metal.Size](i_, objc.Sel("primaryStrideInPixels")) return rv } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsimagearithmetic/2942357-minimumvalue?language=objc -func (i_ ImageArithmetic) SetMinimumValue(value float64) { - objc.Call[objc.Void](i_, objc.Sel("setMinimumValue:"), value) +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsimagearithmetic/2889864-primarystrideinpixels?language=objc +func (i_ ImageArithmetic) SetPrimaryStrideInPixels(value metal.Size) { + objc.Call[objc.Void](i_, objc.Sel("setPrimaryStrideInPixels:"), value) } // [Full Topic] @@ -207,3 +172,33 @@ func (i_ ImageArithmetic) Bias() float64 { func (i_ ImageArithmetic) SetBias(value float64) { objc.Call[objc.Void](i_, objc.Sel("setBias:"), value) } + +// [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsimagearithmetic/2942356-maximumvalue?language=objc +func (i_ ImageArithmetic) MaximumValue() float64 { + rv := objc.Call[float64](i_, objc.Sel("maximumValue")) + return rv +} + +// [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsimagearithmetic/2942356-maximumvalue?language=objc +func (i_ ImageArithmetic) SetMaximumValue(value float64) { + objc.Call[objc.Void](i_, objc.Sel("setMaximumValue:"), value) +} + +// [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsimagearithmetic/2942357-minimumvalue?language=objc +func (i_ ImageArithmetic) MinimumValue() float64 { + rv := objc.Call[float64](i_, objc.Sel("minimumValue")) + return rv +} + +// [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsimagearithmetic/2942357-minimumvalue?language=objc +func (i_ ImageArithmetic) SetMinimumValue(value float64) { + objc.Call[objc.Void](i_, objc.Sel("setMinimumValue:"), value) +} diff --git a/macos/mps/image_bilinear_scale.gen.go b/macos/mps/image_bilinear_scale.gen.go index 5b589f9b..9a77a12e 100644 --- a/macos/mps/image_bilinear_scale.gen.go +++ b/macos/mps/image_bilinear_scale.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package mps @@ -54,10 +54,6 @@ func (ic _ImageBilinearScaleClass) Alloc() ImageBilinearScale { return rv } -func ImageBilinearScale_Alloc() ImageBilinearScale { - return ImageBilinearScaleClass.Alloc() -} - func (ic _ImageBilinearScaleClass) New() ImageBilinearScale { rv := objc.Call[ImageBilinearScale](ic, objc.Sel("new")) rv.Autorelease() @@ -76,7 +72,6 @@ func (i_ ImageBilinearScale) Init() ImageBilinearScale { func (i_ ImageBilinearScale) CopyWithZoneDevice(zone unsafe.Pointer, device metal.PDevice) ImageBilinearScale { po1 := objc.WrapAsProtocol("MTLDevice", device) rv := objc.Call[ImageBilinearScale](i_, objc.Sel("copyWithZone:device:"), zone, po1) - rv.Autorelease() return rv } diff --git a/macos/mps/image_box.gen.go b/macos/mps/image_box.gen.go index 93755aaa..e6f7c3b3 100644 --- a/macos/mps/image_box.gen.go +++ b/macos/mps/image_box.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package mps @@ -19,8 +19,8 @@ type _ImageBoxClass struct { // An interface definition for the [ImageBox] class. type IImageBox interface { IUnaryImageKernel - KernelHeight() uint KernelWidth() uint + KernelHeight() uint } // A filter that convolves an image with a given kernel of odd width and height. [Full Topic] @@ -56,10 +56,6 @@ func (ic _ImageBoxClass) Alloc() ImageBox { return rv } -func ImageBox_Alloc() ImageBox { - return ImageBoxClass.Alloc() -} - func (ic _ImageBoxClass) New() ImageBox { rv := objc.Call[ImageBox](ic, objc.Sel("new")) rv.Autorelease() @@ -93,7 +89,6 @@ func NewImageBoxWithDevice(device metal.PDevice) ImageBox { func (i_ ImageBox) CopyWithZoneDevice(zone unsafe.Pointer, device metal.PDevice) ImageBox { po1 := objc.WrapAsProtocol("MTLDevice", device) rv := objc.Call[ImageBox](i_, objc.Sel("copyWithZone:device:"), zone, po1) - rv.Autorelease() return rv } @@ -106,14 +101,6 @@ func ImageBox_CopyWithZoneDevice(zone unsafe.Pointer, device metal.PDevice) Imag return instance } -// 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 -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 @@ -121,3 +108,11 @@ 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 +func (i_ ImageBox) KernelHeight() uint { + rv := objc.Call[uint](i_, objc.Sel("kernelHeight")) + return rv +} diff --git a/macos/mps/image_canny.gen.go b/macos/mps/image_canny.gen.go index 6993b04b..102e9ca4 100644 --- a/macos/mps/image_canny.gen.go +++ b/macos/mps/image_canny.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package mps @@ -19,14 +19,14 @@ type _ImageCannyClass struct { // An interface definition for the [ImageCanny] class. type IImageCanny interface { IUnaryImageKernel + Sigma() float64 LowThreshold() float64 SetLowThreshold(value float64) - ColorTransform() *float64 UseFastMode() bool SetUseFastMode(value bool) - Sigma() float64 HighThreshold() float64 SetHighThreshold(value float64) + ColorTransform() *float64 } // [Full Topic] @@ -42,6 +42,21 @@ func ImageCannyFrom(ptr unsafe.Pointer) ImageCanny { } } +func (i_ ImageCanny) InitWithDeviceLinearToGrayScaleTransformSigma(device metal.PDevice, transform *float64, sigma float64) 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 *float64, sigma float64) 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) @@ -62,10 +77,6 @@ func (ic _ImageCannyClass) Alloc() ImageCanny { return rv } -func ImageCanny_Alloc() ImageCanny { - return ImageCannyClass.Alloc() -} - func (ic _ImageCannyClass) New() ImageCanny { rv := objc.Call[ImageCanny](ic, objc.Sel("new")) rv.Autorelease() @@ -84,7 +95,6 @@ func (i_ ImageCanny) Init() ImageCanny { func (i_ ImageCanny) CopyWithZoneDevice(zone unsafe.Pointer, device metal.PDevice) ImageCanny { po1 := objc.WrapAsProtocol("MTLDevice", device) rv := objc.Call[ImageCanny](i_, objc.Sel("copyWithZone:device:"), zone, po1) - rv.Autorelease() return rv } @@ -97,6 +107,14 @@ 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() float64 { + rv := objc.Call[float64](i_, objc.Sel("sigma")) + return rv +} + // [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsimagecanny/3547974-lowthreshold?language=objc @@ -112,14 +130,6 @@ func (i_ ImageCanny) SetLowThreshold(value float64) { 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() *float64 { - rv := objc.Call[*float64](i_, objc.Sel("colorTransform")) - return rv -} - // [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsimagecanny/3547976-usefastmode?language=objc @@ -135,14 +145,6 @@ 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() float64 { - rv := objc.Call[float64](i_, objc.Sel("sigma")) - return rv -} - // [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsimagecanny/3547970-highthreshold?language=objc @@ -157,3 +159,11 @@ func (i_ ImageCanny) HighThreshold() float64 { func (i_ ImageCanny) SetHighThreshold(value float64) { 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() *float64 { + rv := objc.Call[*float64](i_, objc.Sel("colorTransform")) + return rv +} diff --git a/macos/mps/image_conversion.gen.go b/macos/mps/image_conversion.gen.go index c23a66a8..e823a63a 100644 --- a/macos/mps/image_conversion.gen.go +++ b/macos/mps/image_conversion.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package mps @@ -20,8 +20,8 @@ type _ImageConversionClass struct { // An interface definition for the [ImageConversion] class. type IImageConversion interface { IUnaryImageKernel - SourceAlpha() AlphaType DestinationAlpha() AlphaType + SourceAlpha() AlphaType } // A filter that performs a conversion of color space, alpha, or pixel format. [Full Topic] @@ -57,10 +57,6 @@ func (ic _ImageConversionClass) Alloc() ImageConversion { return rv } -func ImageConversion_Alloc() ImageConversion { - return ImageConversionClass.Alloc() -} - func (ic _ImageConversionClass) New() ImageConversion { rv := objc.Call[ImageConversion](ic, objc.Sel("new")) rv.Autorelease() @@ -94,7 +90,6 @@ func NewImageConversionWithDevice(device metal.PDevice) ImageConversion { func (i_ ImageConversion) CopyWithZoneDevice(zone unsafe.Pointer, device metal.PDevice) ImageConversion { po1 := objc.WrapAsProtocol("MTLDevice", device) rv := objc.Call[ImageConversion](i_, objc.Sel("copyWithZone:device:"), zone, po1) - rv.Autorelease() return rv } @@ -107,14 +102,6 @@ func ImageConversion_CopyWithZoneDevice(zone unsafe.Pointer, device metal.PDevic return instance } -// Premultiplication description for the source texture. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsimageconversion/1648518-sourcealpha?language=objc -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 @@ -122,3 +109,11 @@ 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 +func (i_ ImageConversion) SourceAlpha() AlphaType { + rv := objc.Call[AlphaType](i_, objc.Sel("sourceAlpha")) + return rv +} diff --git a/macos/mps/image_convolution.gen.go b/macos/mps/image_convolution.gen.go index 6d861a37..0f0aceef 100644 --- a/macos/mps/image_convolution.gen.go +++ b/macos/mps/image_convolution.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package mps @@ -19,10 +19,10 @@ type _ImageConvolutionClass struct { // An interface definition for the [ImageConvolution] class. type IImageConvolution interface { IUnaryImageKernel - KernelHeight() uint Bias() float64 SetBias(value float64) KernelWidth() uint + KernelHeight() uint } // A filter that convolves an image with a given kernel of odd width and height. [Full Topic] @@ -58,10 +58,6 @@ func (ic _ImageConvolutionClass) Alloc() ImageConvolution { return rv } -func ImageConvolution_Alloc() ImageConvolution { - return ImageConvolutionClass.Alloc() -} - func (ic _ImageConvolutionClass) New() ImageConvolution { rv := objc.Call[ImageConvolution](ic, objc.Sel("new")) rv.Autorelease() @@ -95,7 +91,6 @@ func NewImageConvolutionWithDevice(device metal.PDevice) ImageConvolution { func (i_ ImageConvolution) CopyWithZoneDevice(zone unsafe.Pointer, device metal.PDevice) ImageConvolution { po1 := objc.WrapAsProtocol("MTLDevice", device) rv := objc.Call[ImageConvolution](i_, objc.Sel("copyWithZone:device:"), zone, po1) - rv.Autorelease() return rv } @@ -108,14 +103,6 @@ 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 @@ -138,3 +125,11 @@ 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 a111cd88..cd357958 100644 --- a/macos/mps/image_copy_to_matrix.gen.go +++ b/macos/mps/image_copy_to_matrix.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package mps @@ -20,15 +20,15 @@ type _ImageCopyToMatrixClass struct { // An interface definition for the [ImageCopyToMatrix] class. type IImageCopyToMatrix interface { IKernel - 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) + EncodeBatchToCommandBufferSourceImagesDestinationMatrix(commandBuffer metal.PCommandBuffer, sourceImages *foundation.Array, destinationMatrix IMatrix) + EncodeBatchToCommandBufferObjectSourceImagesDestinationMatrix(commandBufferObject objc.IObject, sourceImages *foundation.Array, destinationMatrix IMatrix) 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] @@ -64,10 +64,6 @@ func (ic _ImageCopyToMatrixClass) Alloc() ImageCopyToMatrix { return rv } -func ImageCopyToMatrix_Alloc() ImageCopyToMatrix { - return ImageCopyToMatrixClass.Alloc() -} - func (ic _ImageCopyToMatrixClass) New() ImageCopyToMatrix { rv := objc.Call[ImageCopyToMatrix](ic, objc.Sel("new")) rv.Autorelease() @@ -83,25 +79,9 @@ 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) - rv.Autorelease() return rv } @@ -114,19 +94,19 @@ func ImageCopyToMatrix_CopyWithZoneDevice(zone unsafe.Pointer, device metal.PDev return instance } -// [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, objc.Ptr(destinationMatrix)) +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] +// Initializes a new kernel object. [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:"), objc.Ptr(commandBufferObject), sourceImages, objc.Ptr(destinationMatrix)) +// [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] @@ -146,17 +126,17 @@ func (i_ ImageCopyToMatrix) EncodeToCommandBufferObjectSourceImageDestinationMat // [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]: 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, objc.Ptr(destinationMatrix)) } // [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) +// [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:"), objc.Ptr(commandBufferObject), sourceImages, objc.Ptr(destinationMatrix)) } // [Full Topic] @@ -181,3 +161,18 @@ 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 fbdb0ef6..e65cd6fc 100644 --- a/macos/mps/image_descriptor.gen.go +++ b/macos/mps/image_descriptor.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package mps @@ -19,23 +19,23 @@ type _ImageDescriptorClass struct { // An interface definition for the [ImageDescriptor] class. type IImageDescriptor interface { objc.IObject - Width() uint - SetWidth(value uint) - Usage() metal.TextureUsage - SetUsage(value metal.TextureUsage) - NumberOfImages() uint - SetNumberOfImages(value uint) + PixelFormat() metal.PixelFormat 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,6 +51,18 @@ 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 @@ -65,7 +77,6 @@ func ImageDescriptor_ImageDescriptorWithChannelFormatWidthHeightFeatureChannels( func (i_ ImageDescriptor) CopyWithZone(zone unsafe.Pointer) ImageDescriptor { rv := objc.Call[ImageDescriptor](i_, objc.Sel("copyWithZone:"), zone) - rv.Autorelease() return rv } @@ -83,10 +94,6 @@ func (ic _ImageDescriptorClass) Alloc() ImageDescriptor { return rv } -func ImageDescriptor_Alloc() ImageDescriptor { - return ImageDescriptorClass.Alloc() -} - func (ic _ImageDescriptorClass) New() ImageDescriptor { rv := objc.Call[ImageDescriptor](ic, objc.Sel("new")) rv.Autorelease() @@ -102,51 +109,14 @@ func (i_ ImageDescriptor) Init() ImageDescriptor { 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) 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] +// The pixel format for the underlying texture. [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")) +// [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 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 @@ -162,6 +132,21 @@ 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 @@ -177,14 +162,6 @@ 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 @@ -200,21 +177,6 @@ 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 @@ -229,3 +191,48 @@ 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 f08b28a4..2012abc0 100644 --- a/macos/mps/image_dilate.gen.go +++ b/macos/mps/image_dilate.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package mps @@ -19,8 +19,8 @@ type _ImageDilateClass struct { // An interface definition for the [ImageDilate] class. type IImageDilate interface { IUnaryImageKernel - KernelHeight() uint KernelWidth() uint + KernelHeight() uint } // A filter that finds the maximum pixel value in a rectangular region by applying a dilation function. [Full Topic] @@ -56,10 +56,6 @@ func (ic _ImageDilateClass) Alloc() ImageDilate { return rv } -func ImageDilate_Alloc() ImageDilate { - return ImageDilateClass.Alloc() -} - func (ic _ImageDilateClass) New() ImageDilate { rv := objc.Call[ImageDilate](ic, objc.Sel("new")) rv.Autorelease() @@ -93,7 +89,6 @@ func NewImageDilateWithDevice(device metal.PDevice) ImageDilate { func (i_ ImageDilate) CopyWithZoneDevice(zone unsafe.Pointer, device metal.PDevice) ImageDilate { po1 := objc.WrapAsProtocol("MTLDevice", device) rv := objc.Call[ImageDilate](i_, objc.Sel("copyWithZone:device:"), zone, po1) - rv.Autorelease() return rv } @@ -106,14 +101,6 @@ func ImageDilate_CopyWithZoneDevice(zone unsafe.Pointer, device metal.PDevice) I return instance } -// 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 -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 @@ -121,3 +108,11 @@ 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 +func (i_ ImageDilate) KernelHeight() uint { + rv := objc.Call[uint](i_, objc.Sel("kernelHeight")) + return rv +} diff --git a/macos/mps/image_divide.gen.go b/macos/mps/image_divide.gen.go index 2407ebb4..6cb7fa25 100644 --- a/macos/mps/image_divide.gen.go +++ b/macos/mps/image_divide.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package mps @@ -54,10 +54,6 @@ func (ic _ImageDivideClass) Alloc() ImageDivide { return rv } -func ImageDivide_Alloc() ImageDivide { - return ImageDivideClass.Alloc() -} - func (ic _ImageDivideClass) New() ImageDivide { rv := objc.Call[ImageDivide](ic, objc.Sel("new")) rv.Autorelease() @@ -76,7 +72,6 @@ func (i_ ImageDivide) Init() ImageDivide { func (i_ ImageDivide) CopyWithZoneDevice(zone unsafe.Pointer, device metal.PDevice) ImageDivide { po1 := objc.WrapAsProtocol("MTLDevice", device) rv := objc.Call[ImageDivide](i_, objc.Sel("copyWithZone:device:"), zone, po1) - rv.Autorelease() return rv } diff --git a/macos/mps/image_ed_lines.gen.go b/macos/mps/image_ed_lines.gen.go index c3bfa3a9..afdb1516 100644 --- a/macos/mps/image_ed_lines.gen.go +++ b/macos/mps/image_ed_lines.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package mps @@ -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() float64 - SetLineErrorThreshold(value float64) - GaussianSigma() float64 - DetailRatio() int - SetDetailRatio(value int) GradientThreshold() float64 SetGradientThreshold(value float64) ClipRectSource() metal.Region SetClipRectSource(value metal.Region) + DetailRatio() int + SetDetailRatio(value int) + LineErrorThreshold() float64 + SetLineErrorThreshold(value float64) MergeLocalityThreshold() float64 SetMergeLocalityThreshold(value float64) + MinLineLength() int + SetMinLineLength(value int) + MaxLines() uint + SetMaxLines(value uint) + GaussianSigma() float64 } // [Full Topic] @@ -71,10 +71,6 @@ func (ic _ImageEDLinesClass) Alloc() ImageEDLines { return rv } -func ImageEDLines_Alloc() ImageEDLines { - return ImageEDLinesClass.Alloc() -} - func (ic _ImageEDLinesClass) New() ImageEDLines { rv := objc.Call[ImageEDLines](ic, objc.Sel("new")) rv.Autorelease() @@ -90,33 +86,32 @@ func (i_ ImageEDLines) Init() ImageEDLines { return rv } -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 } -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) - rv.Autorelease() +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 } @@ -141,32 +136,47 @@ func (i_ ImageEDLines) EncodeToCommandBufferObjectSourceTextureObjectDestination // [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/3618919-gradientthreshold?language=objc +func (i_ ImageEDLines) GradientThreshold() float64 { + rv := objc.Call[float64](i_, objc.Sel("gradientThreshold")) 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/3618919-gradientthreshold?language=objc +func (i_ ImageEDLines) SetGradientThreshold(value float64) { + objc.Call[objc.Void](i_, objc.Sel("setGradientThreshold:"), value) } // [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/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/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/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/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/3618916-detailratio?language=objc +func (i_ ImageEDLines) SetDetailRatio(value int) { + objc.Call[objc.Void](i_, objc.Sel("setDetailRatio:"), value) } // [Full Topic] @@ -186,68 +196,53 @@ func (i_ ImageEDLines) SetLineErrorThreshold(value float64) { // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsimageedlines/3618918-gaussiansigma?language=objc -func (i_ ImageEDLines) GaussianSigma() float64 { - rv := objc.Call[float64](i_, objc.Sel("gaussianSigma")) - return rv -} - -// [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/3618924-mergelocalitythreshold?language=objc +func (i_ ImageEDLines) MergeLocalityThreshold() float64 { + rv := objc.Call[float64](i_, objc.Sel("mergeLocalityThreshold")) 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/3618924-mergelocalitythreshold?language=objc +func (i_ ImageEDLines) SetMergeLocalityThreshold(value float64) { + objc.Call[objc.Void](i_, objc.Sel("setMergeLocalityThreshold:"), value) } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsimageedlines/3618919-gradientthreshold?language=objc -func (i_ ImageEDLines) GradientThreshold() float64 { - rv := objc.Call[float64](i_, objc.Sel("gradientThreshold")) +// [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/3618919-gradientthreshold?language=objc -func (i_ ImageEDLines) SetGradientThreshold(value float64) { - objc.Call[objc.Void](i_, objc.Sel("setGradientThreshold:"), 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] // -// [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/3618924-mergelocalitythreshold?language=objc -func (i_ ImageEDLines) MergeLocalityThreshold() float64 { - rv := objc.Call[float64](i_, objc.Sel("mergeLocalityThreshold")) +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsimageedlines/3618918-gaussiansigma?language=objc +func (i_ ImageEDLines) GaussianSigma() float64 { + rv := objc.Call[float64](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 float64) { - objc.Call[objc.Void](i_, objc.Sel("setMergeLocalityThreshold:"), value) -} diff --git a/macos/mps/image_erode.gen.go b/macos/mps/image_erode.gen.go index a9182b39..c9ef8c8b 100644 --- a/macos/mps/image_erode.gen.go +++ b/macos/mps/image_erode.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package mps @@ -39,10 +39,6 @@ func (ic _ImageErodeClass) Alloc() ImageErode { return rv } -func ImageErode_Alloc() ImageErode { - return ImageErodeClass.Alloc() -} - func (ic _ImageErodeClass) New() ImageErode { rv := objc.Call[ImageErode](ic, objc.Sel("new")) rv.Autorelease() @@ -91,7 +87,6 @@ func NewImageErodeWithDevice(device metal.PDevice) ImageErode { func (i_ ImageErode) CopyWithZoneDevice(zone unsafe.Pointer, device metal.PDevice) ImageErode { po1 := objc.WrapAsProtocol("MTLDevice", device) rv := objc.Call[ImageErode](i_, objc.Sel("copyWithZone:device:"), zone, po1) - rv.Autorelease() return rv } diff --git a/macos/mps/image_euclidean_distance_transform.gen.go b/macos/mps/image_euclidean_distance_transform.gen.go index 2acf6049..0e99f794 100644 --- a/macos/mps/image_euclidean_distance_transform.gen.go +++ b/macos/mps/image_euclidean_distance_transform.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package mps @@ -56,10 +56,6 @@ func (ic _ImageEuclideanDistanceTransformClass) Alloc() ImageEuclideanDistanceTr return rv } -func ImageEuclideanDistanceTransform_Alloc() ImageEuclideanDistanceTransform { - return ImageEuclideanDistanceTransformClass.Alloc() -} - func (ic _ImageEuclideanDistanceTransformClass) New() ImageEuclideanDistanceTransform { rv := objc.Call[ImageEuclideanDistanceTransform](ic, objc.Sel("new")) rv.Autorelease() @@ -78,7 +74,6 @@ func (i_ ImageEuclideanDistanceTransform) Init() ImageEuclideanDistanceTransform func (i_ ImageEuclideanDistanceTransform) CopyWithZoneDevice(zone unsafe.Pointer, device metal.PDevice) ImageEuclideanDistanceTransform { po1 := objc.WrapAsProtocol("MTLDevice", device) rv := objc.Call[ImageEuclideanDistanceTransform](i_, objc.Sel("copyWithZone:device:"), zone, po1) - rv.Autorelease() return rv } diff --git a/macos/mps/image_find_keypoints.gen.go b/macos/mps/image_find_keypoints.gen.go index 9efad336..46e4111d 100644 --- a/macos/mps/image_find_keypoints.gen.go +++ b/macos/mps/image_find_keypoints.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package mps @@ -57,10 +57,6 @@ func (ic _ImageFindKeypointsClass) Alloc() ImageFindKeypoints { return rv } -func ImageFindKeypoints_Alloc() ImageFindKeypoints { - return ImageFindKeypointsClass.Alloc() -} - func (ic _ImageFindKeypointsClass) New() ImageFindKeypoints { rv := objc.Call[ImageFindKeypoints](ic, objc.Sel("new")) rv.Autorelease() @@ -76,33 +72,32 @@ func (i_ ImageFindKeypoints) Init() ImageFindKeypoints { return rv } -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 } -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) - rv.Autorelease() +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 } diff --git a/macos/mps/image_gaussian_blur.gen.go b/macos/mps/image_gaussian_blur.gen.go index aa4d7a7d..a6589b43 100644 --- a/macos/mps/image_gaussian_blur.gen.go +++ b/macos/mps/image_gaussian_blur.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package mps @@ -55,10 +55,6 @@ func (ic _ImageGaussianBlurClass) Alloc() ImageGaussianBlur { return rv } -func ImageGaussianBlur_Alloc() ImageGaussianBlur { - return ImageGaussianBlurClass.Alloc() -} - func (ic _ImageGaussianBlurClass) New() ImageGaussianBlur { rv := objc.Call[ImageGaussianBlur](ic, objc.Sel("new")) rv.Autorelease() @@ -92,7 +88,6 @@ func NewImageGaussianBlurWithDevice(device metal.PDevice) ImageGaussianBlur { func (i_ ImageGaussianBlur) CopyWithZoneDevice(zone unsafe.Pointer, device metal.PDevice) ImageGaussianBlur { po1 := objc.WrapAsProtocol("MTLDevice", device) rv := objc.Call[ImageGaussianBlur](i_, objc.Sel("copyWithZone:device:"), zone, po1) - rv.Autorelease() return rv } diff --git a/macos/mps/image_gaussian_pyramid.gen.go b/macos/mps/image_gaussian_pyramid.gen.go index e6505a80..56bd17d1 100644 --- a/macos/mps/image_gaussian_pyramid.gen.go +++ b/macos/mps/image_gaussian_pyramid.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package mps @@ -39,10 +39,6 @@ func (ic _ImageGaussianPyramidClass) Alloc() ImageGaussianPyramid { return rv } -func ImageGaussianPyramid_Alloc() ImageGaussianPyramid { - return ImageGaussianPyramidClass.Alloc() -} - func (ic _ImageGaussianPyramidClass) New() ImageGaussianPyramid { rv := objc.Call[ImageGaussianPyramid](ic, objc.Sel("new")) rv.Autorelease() @@ -73,10 +69,39 @@ func NewImageGaussianPyramidWithDevice(device metal.PDevice) ImageGaussianPyrami return instance } +func (i_ ImageGaussianPyramid) InitWithDeviceCenterWeight(device metal.PDevice, centerWeight float64) 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 float64) ImageGaussianPyramid { + instance := ImageGaussianPyramidClass.Alloc().InitWithDeviceCenterWeight(device, centerWeight) + instance.Autorelease() + return instance +} + +func (i_ ImageGaussianPyramid) InitWithDeviceKernelWidthKernelHeightWeights(device metal.PDevice, kernelWidth uint, kernelHeight uint, kernelWeights *float64) 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 *float64) 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) - rv.Autorelease() return rv } diff --git a/macos/mps/image_guided_filter.gen.go b/macos/mps/image_guided_filter.gen.go index 08ca5f60..cf00e000 100644 --- a/macos/mps/image_guided_filter.gen.go +++ b/macos/mps/image_guided_filter.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package mps @@ -19,17 +19,21 @@ type _ImageGuidedFilterClass struct { // An interface definition for the [ImageGuidedFilter] class. type IImageGuidedFilter interface { IKernel - 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) 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() float64 + SetReconstructScale(value float64) + KernelDiameter() uint ReconstructOffset() float64 SetReconstructOffset(value float64) Epsilon() float64 SetEpsilon(value float64) - ReconstructScale() float64 - SetReconstructScale(value float64) - KernelDiameter() uint } // A filter that performs edge-aware filtering on an image. [Full Topic] @@ -65,10 +69,6 @@ func (ic _ImageGuidedFilterClass) Alloc() ImageGuidedFilter { return rv } -func ImageGuidedFilter_Alloc() ImageGuidedFilter { - return ImageGuidedFilterClass.Alloc() -} - func (ic _ImageGuidedFilterClass) New() ImageGuidedFilter { rv := objc.Call[ImageGuidedFilter](ic, objc.Sel("new")) rv.Autorelease() @@ -84,25 +84,9 @@ 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) - rv.Autorelease() return rv } @@ -115,22 +99,19 @@ func ImageGuidedFilter_CopyWithZoneDevice(zone unsafe.Pointer, device metal.PDev return instance } -// [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) +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] +// Initializes a new kernel object. [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:"), objc.Ptr(commandBufferObject), objc.Ptr(guidanceTextureObject), objc.Ptr(coefficientsTextureObject), objc.Ptr(destinationTextureObject)) +// [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] @@ -154,32 +135,59 @@ func (i_ ImageGuidedFilter) EncodeRegressionToCommandBufferObjectSourceTextureOb // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsimageguidedfilter/2953079-reconstructoffset?language=objc -func (i_ ImageGuidedFilter) ReconstructOffset() float64 { - rv := objc.Call[float64](i_, objc.Sel("reconstructOffset")) - return rv +// [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/2953079-reconstructoffset?language=objc -func (i_ ImageGuidedFilter) SetReconstructOffset(value float64) { - objc.Call[objc.Void](i_, objc.Sel("setReconstructOffset:"), value) +// [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:"), objc.Ptr(commandBufferObject), objc.Ptr(sourceTextureObject), objc.Ptr(guidanceTextureObject), objc.Ptr(weightsTextureObject), objc.Ptr(destinationCoefficientsTextureAObject), objc.Ptr(destinationCoefficientsTextureBObject)) } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsimageguidedfilter/2951908-epsilon?language=objc -func (i_ ImageGuidedFilter) Epsilon() float64 { - rv := objc.Call[float64](i_, objc.Sel("epsilon")) - return rv +// [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] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsimageguidedfilter/2951908-epsilon?language=objc -func (i_ ImageGuidedFilter) SetEpsilon(value float64) { - objc.Call[objc.Void](i_, objc.Sel("setEpsilon:"), value) +// [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:"), objc.Ptr(commandBufferObject), objc.Ptr(guidanceTextureObject), objc.Ptr(coefficientsTextureAObject), objc.Ptr(coefficientsTextureBObject), objc.Ptr(destinationTextureObject)) +} + +// [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] +// +// [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:"), objc.Ptr(commandBufferObject), objc.Ptr(guidanceTextureObject), objc.Ptr(coefficientsTextureObject), objc.Ptr(destinationTextureObject)) } // [Full Topic] @@ -204,3 +212,33 @@ 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() float64 { + rv := objc.Call[float64](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 float64) { + 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() float64 { + rv := objc.Call[float64](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 float64) { + 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 8c8374cc..961a1ce4 100644 --- a/macos/mps/image_histogram.gen.go +++ b/macos/mps/image_histogram.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package mps @@ -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) - HistogramInfo() ImageHistogramInfo - MinPixelThresholdValue() kernel.Vector_float4 - SetMinPixelThresholdValue(value kernel.Vector_float4) + HistogramSizeForSourceFormat(sourceFormat metal.PixelFormat) uint ZeroHistogram() bool SetZeroHistogram(value bool) + MinPixelThresholdValue() kernel.Vector_float4 + SetMinPixelThresholdValue(value kernel.Vector_float4) + HistogramInfo() ImageHistogramInfo ClipRectSource() metal.Region SetClipRectSource(value metal.Region) } @@ -65,10 +65,6 @@ func (ic _ImageHistogramClass) Alloc() ImageHistogram { return rv } -func ImageHistogram_Alloc() ImageHistogram { - return ImageHistogramClass.Alloc() -} - func (ic _ImageHistogramClass) New() ImageHistogram { rv := objc.Call[ImageHistogram](ic, objc.Sel("new")) rv.Autorelease() @@ -84,25 +80,9 @@ 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) - rv.Autorelease() return rv } @@ -115,14 +95,21 @@ func ImageHistogram_CopyWithZoneDevice(zone unsafe.Pointer, device metal.PDevice return instance } -// 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) +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 +} + // Encodes the filter to a command buffer using a compute command encoder. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsimagehistogram/1618853-encodetocommandbuffer?language=objc @@ -140,14 +127,29 @@ func (i_ ImageHistogram) EncodeToCommandBufferObjectSourceTextureObjectHistogram objc.Call[objc.Void](i_, objc.Sel("encodeToCommandBuffer:sourceTexture:histogram:histogramOffset:"), objc.Ptr(commandBufferObject), objc.Ptr(sourceObject), objc.Ptr(histogramObject), histogramOffset) } -// A structure describing the histogram content. [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/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/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] +// +// [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) +} + // [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsimagehistogram/2867008-minpixelthresholdvalue?language=objc @@ -163,21 +165,14 @@ func (i_ ImageHistogram) SetMinPixelThresholdValue(value kernel.Vector_float4) { objc.Call[objc.Void](i_, objc.Sel("setMinPixelThresholdValue:"), value) } -// 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) -} - // 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_histogram_equalization.gen.go b/macos/mps/image_histogram_equalization.gen.go index 92570fdf..65a00599 100644 --- a/macos/mps/image_histogram_equalization.gen.go +++ b/macos/mps/image_histogram_equalization.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package mps @@ -57,10 +57,6 @@ func (ic _ImageHistogramEqualizationClass) Alloc() ImageHistogramEqualization { return rv } -func ImageHistogramEqualization_Alloc() ImageHistogramEqualization { - return ImageHistogramEqualizationClass.Alloc() -} - func (ic _ImageHistogramEqualizationClass) New() ImageHistogramEqualization { rv := objc.Call[ImageHistogramEqualization](ic, objc.Sel("new")) rv.Autorelease() @@ -94,7 +90,6 @@ func NewImageHistogramEqualizationWithDevice(device metal.PDevice) ImageHistogra func (i_ ImageHistogramEqualization) CopyWithZoneDevice(zone unsafe.Pointer, device metal.PDevice) ImageHistogramEqualization { po1 := objc.WrapAsProtocol("MTLDevice", device) rv := objc.Call[ImageHistogramEqualization](i_, objc.Sel("copyWithZone:device:"), zone, po1) - rv.Autorelease() return rv } diff --git a/macos/mps/image_histogram_specification.gen.go b/macos/mps/image_histogram_specification.gen.go index b727f1a8..e6af3a6a 100644 --- a/macos/mps/image_histogram_specification.gen.go +++ b/macos/mps/image_histogram_specification.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package mps @@ -57,10 +57,6 @@ func (ic _ImageHistogramSpecificationClass) Alloc() ImageHistogramSpecification return rv } -func ImageHistogramSpecification_Alloc() ImageHistogramSpecification { - return ImageHistogramSpecificationClass.Alloc() -} - func (ic _ImageHistogramSpecificationClass) New() ImageHistogramSpecification { rv := objc.Call[ImageHistogramSpecification](ic, objc.Sel("new")) rv.Autorelease() @@ -94,7 +90,6 @@ func NewImageHistogramSpecificationWithDevice(device metal.PDevice) ImageHistogr func (i_ ImageHistogramSpecification) CopyWithZoneDevice(zone unsafe.Pointer, device metal.PDevice) ImageHistogramSpecification { po1 := objc.WrapAsProtocol("MTLDevice", device) rv := objc.Call[ImageHistogramSpecification](i_, objc.Sel("copyWithZone:device:"), zone, po1) - rv.Autorelease() return rv } diff --git a/macos/mps/image_integral.gen.go b/macos/mps/image_integral.gen.go index c125018e..7c6fe115 100644 --- a/macos/mps/image_integral.gen.go +++ b/macos/mps/image_integral.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package mps @@ -39,10 +39,6 @@ func (ic _ImageIntegralClass) Alloc() ImageIntegral { return rv } -func ImageIntegral_Alloc() ImageIntegral { - return ImageIntegralClass.Alloc() -} - func (ic _ImageIntegralClass) New() ImageIntegral { rv := objc.Call[ImageIntegral](ic, objc.Sel("new")) rv.Autorelease() @@ -76,7 +72,6 @@ func NewImageIntegralWithDevice(device metal.PDevice) ImageIntegral { func (i_ ImageIntegral) CopyWithZoneDevice(zone unsafe.Pointer, device metal.PDevice) ImageIntegral { po1 := objc.WrapAsProtocol("MTLDevice", device) rv := objc.Call[ImageIntegral](i_, objc.Sel("copyWithZone:device:"), zone, po1) - rv.Autorelease() return rv } diff --git a/macos/mps/image_integral_of_squares.gen.go b/macos/mps/image_integral_of_squares.gen.go index 746a0369..87498a33 100644 --- a/macos/mps/image_integral_of_squares.gen.go +++ b/macos/mps/image_integral_of_squares.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package mps @@ -39,10 +39,6 @@ func (ic _ImageIntegralOfSquaresClass) Alloc() ImageIntegralOfSquares { return rv } -func ImageIntegralOfSquares_Alloc() ImageIntegralOfSquares { - return ImageIntegralOfSquaresClass.Alloc() -} - func (ic _ImageIntegralOfSquaresClass) New() ImageIntegralOfSquares { rv := objc.Call[ImageIntegralOfSquares](ic, objc.Sel("new")) rv.Autorelease() @@ -76,7 +72,6 @@ func NewImageIntegralOfSquaresWithDevice(device metal.PDevice) ImageIntegralOfSq func (i_ ImageIntegralOfSquares) CopyWithZoneDevice(zone unsafe.Pointer, device metal.PDevice) ImageIntegralOfSquares { po1 := objc.WrapAsProtocol("MTLDevice", device) rv := objc.Call[ImageIntegralOfSquares](i_, objc.Sel("copyWithZone:device:"), zone, po1) - rv.Autorelease() return rv } diff --git a/macos/mps/image_lanczos_scale.gen.go b/macos/mps/image_lanczos_scale.gen.go index 3fb9cdc1..f8212781 100644 --- a/macos/mps/image_lanczos_scale.gen.go +++ b/macos/mps/image_lanczos_scale.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package mps @@ -54,10 +54,6 @@ func (ic _ImageLanczosScaleClass) Alloc() ImageLanczosScale { return rv } -func ImageLanczosScale_Alloc() ImageLanczosScale { - return ImageLanczosScaleClass.Alloc() -} - func (ic _ImageLanczosScaleClass) New() ImageLanczosScale { rv := objc.Call[ImageLanczosScale](ic, objc.Sel("new")) rv.Autorelease() @@ -76,7 +72,6 @@ func (i_ ImageLanczosScale) Init() ImageLanczosScale { func (i_ ImageLanczosScale) CopyWithZoneDevice(zone unsafe.Pointer, device metal.PDevice) ImageLanczosScale { po1 := objc.WrapAsProtocol("MTLDevice", device) rv := objc.Call[ImageLanczosScale](i_, objc.Sel("copyWithZone:device:"), zone, po1) - rv.Autorelease() return rv } diff --git a/macos/mps/image_laplacian.gen.go b/macos/mps/image_laplacian.gen.go index cc2e84a8..9d78b161 100644 --- a/macos/mps/image_laplacian.gen.go +++ b/macos/mps/image_laplacian.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package mps @@ -41,10 +41,6 @@ func (ic _ImageLaplacianClass) Alloc() ImageLaplacian { return rv } -func ImageLaplacian_Alloc() ImageLaplacian { - return ImageLaplacianClass.Alloc() -} - func (ic _ImageLaplacianClass) New() ImageLaplacian { rv := objc.Call[ImageLaplacian](ic, objc.Sel("new")) rv.Autorelease() @@ -78,7 +74,6 @@ func NewImageLaplacianWithDevice(device metal.PDevice) ImageLaplacian { func (i_ ImageLaplacian) CopyWithZoneDevice(zone unsafe.Pointer, device metal.PDevice) ImageLaplacian { po1 := objc.WrapAsProtocol("MTLDevice", device) rv := objc.Call[ImageLaplacian](i_, objc.Sel("copyWithZone:device:"), zone, po1) - rv.Autorelease() return rv } diff --git a/macos/mps/image_laplacian_pyramid.gen.go b/macos/mps/image_laplacian_pyramid.gen.go index 6e4fc037..57e0a18c 100644 --- a/macos/mps/image_laplacian_pyramid.gen.go +++ b/macos/mps/image_laplacian_pyramid.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package mps @@ -43,10 +43,6 @@ func (ic _ImageLaplacianPyramidClass) Alloc() ImageLaplacianPyramid { return rv } -func ImageLaplacianPyramid_Alloc() ImageLaplacianPyramid { - return ImageLaplacianPyramidClass.Alloc() -} - func (ic _ImageLaplacianPyramidClass) New() ImageLaplacianPyramid { rv := objc.Call[ImageLaplacianPyramid](ic, objc.Sel("new")) rv.Autorelease() @@ -77,10 +73,39 @@ func NewImageLaplacianPyramidWithDevice(device metal.PDevice) ImageLaplacianPyra return instance } +func (i_ ImageLaplacianPyramid) InitWithDeviceCenterWeight(device metal.PDevice, centerWeight float64) 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 float64) ImageLaplacianPyramid { + instance := ImageLaplacianPyramidClass.Alloc().InitWithDeviceCenterWeight(device, centerWeight) + instance.Autorelease() + return instance +} + +func (i_ ImageLaplacianPyramid) InitWithDeviceKernelWidthKernelHeightWeights(device metal.PDevice, kernelWidth uint, kernelHeight uint, kernelWeights *float64) 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 *float64) 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) - rv.Autorelease() return rv } diff --git a/macos/mps/image_laplacian_pyramid_add.gen.go b/macos/mps/image_laplacian_pyramid_add.gen.go index 96c7ad7c..b391c56e 100644 --- a/macos/mps/image_laplacian_pyramid_add.gen.go +++ b/macos/mps/image_laplacian_pyramid_add.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package mps @@ -39,10 +39,6 @@ func (ic _ImageLaplacianPyramidAddClass) Alloc() ImageLaplacianPyramidAdd { return rv } -func ImageLaplacianPyramidAdd_Alloc() ImageLaplacianPyramidAdd { - return ImageLaplacianPyramidAddClass.Alloc() -} - func (ic _ImageLaplacianPyramidAddClass) New() ImageLaplacianPyramidAdd { rv := objc.Call[ImageLaplacianPyramidAdd](ic, objc.Sel("new")) rv.Autorelease() @@ -73,10 +69,39 @@ func NewImageLaplacianPyramidAddWithDevice(device metal.PDevice) ImageLaplacianP return instance } +func (i_ ImageLaplacianPyramidAdd) InitWithDeviceCenterWeight(device metal.PDevice, centerWeight float64) 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 float64) ImageLaplacianPyramidAdd { + instance := ImageLaplacianPyramidAddClass.Alloc().InitWithDeviceCenterWeight(device, centerWeight) + instance.Autorelease() + return instance +} + +func (i_ ImageLaplacianPyramidAdd) InitWithDeviceKernelWidthKernelHeightWeights(device metal.PDevice, kernelWidth uint, kernelHeight uint, kernelWeights *float64) 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 *float64) 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) - rv.Autorelease() return rv } diff --git a/macos/mps/image_laplacian_pyramid_subtract.gen.go b/macos/mps/image_laplacian_pyramid_subtract.gen.go index 676cef02..4db62eca 100644 --- a/macos/mps/image_laplacian_pyramid_subtract.gen.go +++ b/macos/mps/image_laplacian_pyramid_subtract.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package mps @@ -39,10 +39,6 @@ func (ic _ImageLaplacianPyramidSubtractClass) Alloc() ImageLaplacianPyramidSubtr return rv } -func ImageLaplacianPyramidSubtract_Alloc() ImageLaplacianPyramidSubtract { - return ImageLaplacianPyramidSubtractClass.Alloc() -} - func (ic _ImageLaplacianPyramidSubtractClass) New() ImageLaplacianPyramidSubtract { rv := objc.Call[ImageLaplacianPyramidSubtract](ic, objc.Sel("new")) rv.Autorelease() @@ -73,10 +69,39 @@ func NewImageLaplacianPyramidSubtractWithDevice(device metal.PDevice) ImageLapla return instance } +func (i_ ImageLaplacianPyramidSubtract) InitWithDeviceCenterWeight(device metal.PDevice, centerWeight float64) 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 float64) ImageLaplacianPyramidSubtract { + instance := ImageLaplacianPyramidSubtractClass.Alloc().InitWithDeviceCenterWeight(device, centerWeight) + instance.Autorelease() + return instance +} + +func (i_ ImageLaplacianPyramidSubtract) InitWithDeviceKernelWidthKernelHeightWeights(device metal.PDevice, kernelWidth uint, kernelHeight uint, kernelWeights *float64) 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 *float64) 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) - rv.Autorelease() return rv } diff --git a/macos/mps/image_median.gen.go b/macos/mps/image_median.gen.go index 2293c9c7..1999517d 100644 --- a/macos/mps/image_median.gen.go +++ b/macos/mps/image_median.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package mps @@ -55,10 +55,6 @@ func (ic _ImageMedianClass) Alloc() ImageMedian { return rv } -func ImageMedian_Alloc() ImageMedian { - return ImageMedianClass.Alloc() -} - func (ic _ImageMedianClass) New() ImageMedian { rv := objc.Call[ImageMedian](ic, objc.Sel("new")) rv.Autorelease() @@ -92,7 +88,6 @@ func NewImageMedianWithDevice(device metal.PDevice) ImageMedian { func (i_ ImageMedian) CopyWithZoneDevice(zone unsafe.Pointer, device metal.PDevice) ImageMedian { po1 := objc.WrapAsProtocol("MTLDevice", device) rv := objc.Call[ImageMedian](i_, objc.Sel("copyWithZone:device:"), zone, po1) - rv.Autorelease() return rv } @@ -105,21 +100,6 @@ func ImageMedian_CopyWithZoneDevice(zone unsafe.Pointer, device metal.PDevice) I return instance } -// 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 -func (ic _ImageMedianClass) MinKernelDiameter() uint { - rv := objc.Call[uint](ic, objc.Sel("minKernelDiameter")) - return rv -} - -// 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 -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 @@ -135,6 +115,21 @@ 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 +func (ic _ImageMedianClass) MinKernelDiameter() uint { + rv := objc.Call[uint](ic, objc.Sel("minKernelDiameter")) + return rv +} + +// 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 +func ImageMedian_MinKernelDiameter() uint { + return ImageMedianClass.MinKernelDiameter() +} + // 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_multiply.gen.go b/macos/mps/image_multiply.gen.go index a40ed174..172b7d17 100644 --- a/macos/mps/image_multiply.gen.go +++ b/macos/mps/image_multiply.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package mps @@ -54,10 +54,6 @@ func (ic _ImageMultiplyClass) Alloc() ImageMultiply { return rv } -func ImageMultiply_Alloc() ImageMultiply { - return ImageMultiplyClass.Alloc() -} - func (ic _ImageMultiplyClass) New() ImageMultiply { rv := objc.Call[ImageMultiply](ic, objc.Sel("new")) rv.Autorelease() @@ -76,7 +72,6 @@ func (i_ ImageMultiply) Init() ImageMultiply { func (i_ ImageMultiply) CopyWithZoneDevice(zone unsafe.Pointer, device metal.PDevice) ImageMultiply { po1 := objc.WrapAsProtocol("MTLDevice", device) rv := objc.Call[ImageMultiply](i_, objc.Sel("copyWithZone:device:"), zone, po1) - rv.Autorelease() return rv } diff --git a/macos/mps/image_normalized_histogram.gen.go b/macos/mps/image_normalized_histogram.gen.go index 96c52eea..3b139047 100644 --- a/macos/mps/image_normalized_histogram.gen.go +++ b/macos/mps/image_normalized_histogram.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package mps @@ -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) - HistogramInfo() ImageHistogramInfo - ZeroHistogram() bool - SetZeroHistogram(value bool) + HistogramSizeForSourceFormat(sourceFormat metal.PixelFormat) uint ClipRectSource() metal.Region SetClipRectSource(value metal.Region) + ZeroHistogram() bool + SetZeroHistogram(value bool) + HistogramInfo() ImageHistogramInfo } // A filter that computes the normalized histogram of an image. [Full Topic] @@ -62,10 +62,6 @@ func (ic _ImageNormalizedHistogramClass) Alloc() ImageNormalizedHistogram { return rv } -func ImageNormalizedHistogram_Alloc() ImageNormalizedHistogram { - return ImageNormalizedHistogramClass.Alloc() -} - func (ic _ImageNormalizedHistogramClass) New() ImageNormalizedHistogram { rv := objc.Call[ImageNormalizedHistogram](ic, objc.Sel("new")) rv.Autorelease() @@ -81,25 +77,9 @@ 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) - rv.Autorelease() return rv } @@ -112,14 +92,21 @@ func ImageNormalizedHistogram_CopyWithZoneDevice(zone unsafe.Pointer, device met return instance } -// [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) +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 +} + // [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsimagenormalizedhistogram/3019322-encodetocommandbuffer?language=objc @@ -140,12 +127,27 @@ func (i_ ImageNormalizedHistogram) EncodeToCommandBufferObjectSourceTextureObjec // [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/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")) + 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 @@ -163,15 +165,8 @@ func (i_ ImageNormalizedHistogram) SetZeroHistogram(value bool) { // [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) -} diff --git a/macos/mps/image_pyramid.gen.go b/macos/mps/image_pyramid.gen.go index 404d8aee..4aa15df0 100644 --- a/macos/mps/image_pyramid.gen.go +++ b/macos/mps/image_pyramid.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package mps @@ -19,8 +19,8 @@ type _ImagePyramidClass struct { // An interface definition for the [ImagePyramid] class. type IImagePyramid interface { IUnaryImageKernel - KernelHeight() uint KernelWidth() uint + KernelHeight() uint } // A base class for creating different kinds of pyramid images. [Full Topic] @@ -51,13 +51,39 @@ func NewImagePyramidWithDevice(device metal.PDevice) ImagePyramid { return instance } -func (ic _ImagePyramidClass) Alloc() ImagePyramid { - rv := objc.Call[ImagePyramid](ic, objc.Sel("alloc")) +func (i_ ImagePyramid) InitWithDeviceCenterWeight(device metal.PDevice, centerWeight float64) 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 float64) ImagePyramid { + instance := ImagePyramidClass.Alloc().InitWithDeviceCenterWeight(device, centerWeight) + instance.Autorelease() + return instance +} + +func (i_ ImagePyramid) InitWithDeviceKernelWidthKernelHeightWeights(device metal.PDevice, kernelWidth uint, kernelHeight uint, kernelWeights *float64) ImagePyramid { + po0 := objc.WrapAsProtocol("MTLDevice", device) + rv := objc.Call[ImagePyramid](i_, objc.Sel("initWithDevice:kernelWidth:kernelHeight:weights:"), po0, kernelWidth, kernelHeight, kernelWeights) return rv } -func ImagePyramid_Alloc() ImagePyramid { - return ImagePyramidClass.Alloc() +// 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 *float64) 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 } func (ic _ImagePyramidClass) New() ImagePyramid { @@ -78,7 +104,6 @@ func (i_ ImagePyramid) Init() ImagePyramid { func (i_ ImagePyramid) CopyWithZoneDevice(zone unsafe.Pointer, device metal.PDevice) ImagePyramid { po1 := objc.WrapAsProtocol("MTLDevice", device) rv := objc.Call[ImagePyramid](i_, objc.Sel("copyWithZone:device:"), zone, po1) - rv.Autorelease() return rv } @@ -91,14 +116,6 @@ func ImagePyramid_CopyWithZoneDevice(zone unsafe.Pointer, device metal.PDevice) return instance } -// 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 -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 @@ -106,3 +123,11 @@ 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 +func (i_ ImagePyramid) KernelHeight() uint { + rv := objc.Call[uint](i_, objc.Sel("kernelHeight")) + return rv +} diff --git a/macos/mps/image_reduce_column_max.gen.go b/macos/mps/image_reduce_column_max.gen.go index f3d27086..55a7c8a4 100644 --- a/macos/mps/image_reduce_column_max.gen.go +++ b/macos/mps/image_reduce_column_max.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package mps @@ -54,10 +54,6 @@ func (ic _ImageReduceColumnMaxClass) Alloc() ImageReduceColumnMax { return rv } -func ImageReduceColumnMax_Alloc() ImageReduceColumnMax { - return ImageReduceColumnMaxClass.Alloc() -} - func (ic _ImageReduceColumnMaxClass) New() ImageReduceColumnMax { rv := objc.Call[ImageReduceColumnMax](ic, objc.Sel("new")) rv.Autorelease() @@ -76,7 +72,6 @@ func (i_ ImageReduceColumnMax) Init() ImageReduceColumnMax { func (i_ ImageReduceColumnMax) CopyWithZoneDevice(zone unsafe.Pointer, device metal.PDevice) ImageReduceColumnMax { po1 := objc.WrapAsProtocol("MTLDevice", device) rv := objc.Call[ImageReduceColumnMax](i_, objc.Sel("copyWithZone:device:"), zone, po1) - rv.Autorelease() return rv } diff --git a/macos/mps/image_reduce_column_mean.gen.go b/macos/mps/image_reduce_column_mean.gen.go index 7fdbdece..f36e8066 100644 --- a/macos/mps/image_reduce_column_mean.gen.go +++ b/macos/mps/image_reduce_column_mean.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package mps @@ -54,10 +54,6 @@ func (ic _ImageReduceColumnMeanClass) Alloc() ImageReduceColumnMean { return rv } -func ImageReduceColumnMean_Alloc() ImageReduceColumnMean { - return ImageReduceColumnMeanClass.Alloc() -} - func (ic _ImageReduceColumnMeanClass) New() ImageReduceColumnMean { rv := objc.Call[ImageReduceColumnMean](ic, objc.Sel("new")) rv.Autorelease() @@ -76,7 +72,6 @@ func (i_ ImageReduceColumnMean) Init() ImageReduceColumnMean { func (i_ ImageReduceColumnMean) CopyWithZoneDevice(zone unsafe.Pointer, device metal.PDevice) ImageReduceColumnMean { po1 := objc.WrapAsProtocol("MTLDevice", device) rv := objc.Call[ImageReduceColumnMean](i_, objc.Sel("copyWithZone:device:"), zone, po1) - rv.Autorelease() return rv } diff --git a/macos/mps/image_reduce_column_min.gen.go b/macos/mps/image_reduce_column_min.gen.go index b5a991a7..52ddf9ef 100644 --- a/macos/mps/image_reduce_column_min.gen.go +++ b/macos/mps/image_reduce_column_min.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package mps @@ -54,10 +54,6 @@ func (ic _ImageReduceColumnMinClass) Alloc() ImageReduceColumnMin { return rv } -func ImageReduceColumnMin_Alloc() ImageReduceColumnMin { - return ImageReduceColumnMinClass.Alloc() -} - func (ic _ImageReduceColumnMinClass) New() ImageReduceColumnMin { rv := objc.Call[ImageReduceColumnMin](ic, objc.Sel("new")) rv.Autorelease() @@ -76,7 +72,6 @@ func (i_ ImageReduceColumnMin) Init() ImageReduceColumnMin { func (i_ ImageReduceColumnMin) CopyWithZoneDevice(zone unsafe.Pointer, device metal.PDevice) ImageReduceColumnMin { po1 := objc.WrapAsProtocol("MTLDevice", device) rv := objc.Call[ImageReduceColumnMin](i_, objc.Sel("copyWithZone:device:"), zone, po1) - rv.Autorelease() return rv } diff --git a/macos/mps/image_reduce_column_sum.gen.go b/macos/mps/image_reduce_column_sum.gen.go index 1c73ef1a..7c164649 100644 --- a/macos/mps/image_reduce_column_sum.gen.go +++ b/macos/mps/image_reduce_column_sum.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package mps @@ -54,10 +54,6 @@ func (ic _ImageReduceColumnSumClass) Alloc() ImageReduceColumnSum { return rv } -func ImageReduceColumnSum_Alloc() ImageReduceColumnSum { - return ImageReduceColumnSumClass.Alloc() -} - func (ic _ImageReduceColumnSumClass) New() ImageReduceColumnSum { rv := objc.Call[ImageReduceColumnSum](ic, objc.Sel("new")) rv.Autorelease() @@ -76,7 +72,6 @@ func (i_ ImageReduceColumnSum) Init() ImageReduceColumnSum { func (i_ ImageReduceColumnSum) CopyWithZoneDevice(zone unsafe.Pointer, device metal.PDevice) ImageReduceColumnSum { po1 := objc.WrapAsProtocol("MTLDevice", device) rv := objc.Call[ImageReduceColumnSum](i_, objc.Sel("copyWithZone:device:"), zone, po1) - rv.Autorelease() return rv } diff --git a/macos/mps/image_reduce_row_max.gen.go b/macos/mps/image_reduce_row_max.gen.go index 582dbf1f..783fbfeb 100644 --- a/macos/mps/image_reduce_row_max.gen.go +++ b/macos/mps/image_reduce_row_max.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package mps @@ -54,10 +54,6 @@ func (ic _ImageReduceRowMaxClass) Alloc() ImageReduceRowMax { return rv } -func ImageReduceRowMax_Alloc() ImageReduceRowMax { - return ImageReduceRowMaxClass.Alloc() -} - func (ic _ImageReduceRowMaxClass) New() ImageReduceRowMax { rv := objc.Call[ImageReduceRowMax](ic, objc.Sel("new")) rv.Autorelease() @@ -76,7 +72,6 @@ func (i_ ImageReduceRowMax) Init() ImageReduceRowMax { func (i_ ImageReduceRowMax) CopyWithZoneDevice(zone unsafe.Pointer, device metal.PDevice) ImageReduceRowMax { po1 := objc.WrapAsProtocol("MTLDevice", device) rv := objc.Call[ImageReduceRowMax](i_, objc.Sel("copyWithZone:device:"), zone, po1) - rv.Autorelease() return rv } diff --git a/macos/mps/image_reduce_row_mean.gen.go b/macos/mps/image_reduce_row_mean.gen.go index 858fb564..edacd3d3 100644 --- a/macos/mps/image_reduce_row_mean.gen.go +++ b/macos/mps/image_reduce_row_mean.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package mps @@ -54,10 +54,6 @@ func (ic _ImageReduceRowMeanClass) Alloc() ImageReduceRowMean { return rv } -func ImageReduceRowMean_Alloc() ImageReduceRowMean { - return ImageReduceRowMeanClass.Alloc() -} - func (ic _ImageReduceRowMeanClass) New() ImageReduceRowMean { rv := objc.Call[ImageReduceRowMean](ic, objc.Sel("new")) rv.Autorelease() @@ -76,7 +72,6 @@ func (i_ ImageReduceRowMean) Init() ImageReduceRowMean { func (i_ ImageReduceRowMean) CopyWithZoneDevice(zone unsafe.Pointer, device metal.PDevice) ImageReduceRowMean { po1 := objc.WrapAsProtocol("MTLDevice", device) rv := objc.Call[ImageReduceRowMean](i_, objc.Sel("copyWithZone:device:"), zone, po1) - rv.Autorelease() return rv } diff --git a/macos/mps/image_reduce_row_min.gen.go b/macos/mps/image_reduce_row_min.gen.go index 7504ffbd..3652ae7d 100644 --- a/macos/mps/image_reduce_row_min.gen.go +++ b/macos/mps/image_reduce_row_min.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package mps @@ -54,10 +54,6 @@ func (ic _ImageReduceRowMinClass) Alloc() ImageReduceRowMin { return rv } -func ImageReduceRowMin_Alloc() ImageReduceRowMin { - return ImageReduceRowMinClass.Alloc() -} - func (ic _ImageReduceRowMinClass) New() ImageReduceRowMin { rv := objc.Call[ImageReduceRowMin](ic, objc.Sel("new")) rv.Autorelease() @@ -76,7 +72,6 @@ func (i_ ImageReduceRowMin) Init() ImageReduceRowMin { func (i_ ImageReduceRowMin) CopyWithZoneDevice(zone unsafe.Pointer, device metal.PDevice) ImageReduceRowMin { po1 := objc.WrapAsProtocol("MTLDevice", device) rv := objc.Call[ImageReduceRowMin](i_, objc.Sel("copyWithZone:device:"), zone, po1) - rv.Autorelease() return rv } diff --git a/macos/mps/image_reduce_row_sum.gen.go b/macos/mps/image_reduce_row_sum.gen.go index 2dd08efc..704d237d 100644 --- a/macos/mps/image_reduce_row_sum.gen.go +++ b/macos/mps/image_reduce_row_sum.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package mps @@ -54,10 +54,6 @@ func (ic _ImageReduceRowSumClass) Alloc() ImageReduceRowSum { return rv } -func ImageReduceRowSum_Alloc() ImageReduceRowSum { - return ImageReduceRowSumClass.Alloc() -} - func (ic _ImageReduceRowSumClass) New() ImageReduceRowSum { rv := objc.Call[ImageReduceRowSum](ic, objc.Sel("new")) rv.Autorelease() @@ -76,7 +72,6 @@ func (i_ ImageReduceRowSum) Init() ImageReduceRowSum { func (i_ ImageReduceRowSum) CopyWithZoneDevice(zone unsafe.Pointer, device metal.PDevice) ImageReduceRowSum { po1 := objc.WrapAsProtocol("MTLDevice", device) rv := objc.Call[ImageReduceRowSum](i_, objc.Sel("copyWithZone:device:"), zone, po1) - rv.Autorelease() return rv } diff --git a/macos/mps/image_reduce_unary.gen.go b/macos/mps/image_reduce_unary.gen.go index cf6126cc..a23c0220 100644 --- a/macos/mps/image_reduce_unary.gen.go +++ b/macos/mps/image_reduce_unary.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package mps @@ -41,10 +41,6 @@ func (ic _ImageReduceUnaryClass) Alloc() ImageReduceUnary { return rv } -func ImageReduceUnary_Alloc() ImageReduceUnary { - return ImageReduceUnaryClass.Alloc() -} - func (ic _ImageReduceUnaryClass) New() ImageReduceUnary { rv := objc.Call[ImageReduceUnary](ic, objc.Sel("new")) rv.Autorelease() @@ -78,7 +74,6 @@ func NewImageReduceUnaryWithDevice(device metal.PDevice) ImageReduceUnary { func (i_ ImageReduceUnary) CopyWithZoneDevice(zone unsafe.Pointer, device metal.PDevice) ImageReduceUnary { po1 := objc.WrapAsProtocol("MTLDevice", device) rv := objc.Call[ImageReduceUnary](i_, objc.Sel("copyWithZone:device:"), zone, po1) - rv.Autorelease() return rv } diff --git a/macos/mps/image_scale.gen.go b/macos/mps/image_scale.gen.go index 00f78bd0..15ce6653 100644 --- a/macos/mps/image_scale.gen.go +++ b/macos/mps/image_scale.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package mps @@ -56,10 +56,6 @@ func (ic _ImageScaleClass) Alloc() ImageScale { return rv } -func ImageScale_Alloc() ImageScale { - return ImageScaleClass.Alloc() -} - func (ic _ImageScaleClass) New() ImageScale { rv := objc.Call[ImageScale](ic, objc.Sel("new")) rv.Autorelease() @@ -78,7 +74,6 @@ func (i_ ImageScale) Init() ImageScale { func (i_ ImageScale) CopyWithZoneDevice(zone unsafe.Pointer, device metal.PDevice) ImageScale { po1 := objc.WrapAsProtocol("MTLDevice", device) rv := objc.Call[ImageScale](i_, objc.Sel("copyWithZone:device:"), zone, po1) - rv.Autorelease() return rv } diff --git a/macos/mps/image_size_encoding_state.gen.go b/macos/mps/image_size_encoding_state_protocol.gen.go similarity index 66% rename from macos/mps/image_size_encoding_state.gen.go rename to macos/mps/image_size_encoding_state_protocol.gen.go index 560569ea..fc5d035d 100644 --- a/macos/mps/image_size_encoding_state.gen.go +++ b/macos/mps/image_size_encoding_state_protocol.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package mps @@ -19,31 +19,34 @@ type PImageSizeEncodingState interface { HasSourceHeight() bool } -// A concrete type wrapper for the [PImageSizeEncodingState] protocol. -type ImageSizeEncodingStateWrapper struct { +// ensure impl type implements protocol interface +var _ PImageSizeEncodingState = (*ImageSizeEncodingStateObject)(nil) + +// A concrete type for the [PImageSizeEncodingState] protocol. +type ImageSizeEncodingStateObject struct { objc.Object } -func (i_ ImageSizeEncodingStateWrapper) HasSourceWidth() bool { +func (i_ ImageSizeEncodingStateObject) HasSourceWidth() bool { return i_.RespondsToSelector(objc.Sel("sourceWidth")) } // [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsimagesizeencodingstate/2873364-sourcewidth?language=objc -func (i_ ImageSizeEncodingStateWrapper) SourceWidth() uint { +func (i_ ImageSizeEncodingStateObject) SourceWidth() uint { rv := objc.Call[uint](i_, objc.Sel("sourceWidth")) return rv } -func (i_ ImageSizeEncodingStateWrapper) HasSourceHeight() bool { +func (i_ ImageSizeEncodingStateObject) HasSourceHeight() bool { return i_.RespondsToSelector(objc.Sel("sourceHeight")) } // [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsimagesizeencodingstate/2873329-sourceheight?language=objc -func (i_ ImageSizeEncodingStateWrapper) SourceHeight() uint { +func (i_ ImageSizeEncodingStateObject) SourceHeight() uint { rv := objc.Call[uint](i_, objc.Sel("sourceHeight")) return rv } diff --git a/macos/mps/image_sobel.gen.go b/macos/mps/image_sobel.gen.go index fea0746b..3f539fd3 100644 --- a/macos/mps/image_sobel.gen.go +++ b/macos/mps/image_sobel.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package mps @@ -35,6 +35,21 @@ func ImageSobelFrom(ptr unsafe.Pointer) ImageSobel { } } +func (i_ ImageSobel) InitWithDeviceLinearGrayColorTransform(device metal.PDevice, transform *float64) 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 *float64) 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) @@ -55,10 +70,6 @@ func (ic _ImageSobelClass) Alloc() ImageSobel { return rv } -func ImageSobel_Alloc() ImageSobel { - return ImageSobelClass.Alloc() -} - func (ic _ImageSobelClass) New() ImageSobel { rv := objc.Call[ImageSobel](ic, objc.Sel("new")) rv.Autorelease() @@ -77,7 +88,6 @@ func (i_ ImageSobel) Init() ImageSobel { func (i_ ImageSobel) CopyWithZoneDevice(zone unsafe.Pointer, device metal.PDevice) ImageSobel { po1 := objc.WrapAsProtocol("MTLDevice", device) rv := objc.Call[ImageSobel](i_, objc.Sel("copyWithZone:device:"), zone, po1) - rv.Autorelease() return rv } diff --git a/macos/mps/image_statistics_mean.gen.go b/macos/mps/image_statistics_mean.gen.go index 9fb0dd37..cf50aa70 100644 --- a/macos/mps/image_statistics_mean.gen.go +++ b/macos/mps/image_statistics_mean.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package mps @@ -56,10 +56,6 @@ func (ic _ImageStatisticsMeanClass) Alloc() ImageStatisticsMean { return rv } -func ImageStatisticsMean_Alloc() ImageStatisticsMean { - return ImageStatisticsMeanClass.Alloc() -} - func (ic _ImageStatisticsMeanClass) New() ImageStatisticsMean { rv := objc.Call[ImageStatisticsMean](ic, objc.Sel("new")) rv.Autorelease() @@ -78,7 +74,6 @@ func (i_ ImageStatisticsMean) Init() ImageStatisticsMean { func (i_ ImageStatisticsMean) CopyWithZoneDevice(zone unsafe.Pointer, device metal.PDevice) ImageStatisticsMean { po1 := objc.WrapAsProtocol("MTLDevice", device) rv := objc.Call[ImageStatisticsMean](i_, objc.Sel("copyWithZone:device:"), zone, po1) - rv.Autorelease() return rv } diff --git a/macos/mps/image_statistics_mean_and_variance.gen.go b/macos/mps/image_statistics_mean_and_variance.gen.go index d4a140ee..99f1c599 100644 --- a/macos/mps/image_statistics_mean_and_variance.gen.go +++ b/macos/mps/image_statistics_mean_and_variance.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package mps @@ -56,10 +56,6 @@ func (ic _ImageStatisticsMeanAndVarianceClass) Alloc() ImageStatisticsMeanAndVar return rv } -func ImageStatisticsMeanAndVariance_Alloc() ImageStatisticsMeanAndVariance { - return ImageStatisticsMeanAndVarianceClass.Alloc() -} - func (ic _ImageStatisticsMeanAndVarianceClass) New() ImageStatisticsMeanAndVariance { rv := objc.Call[ImageStatisticsMeanAndVariance](ic, objc.Sel("new")) rv.Autorelease() @@ -78,7 +74,6 @@ func (i_ ImageStatisticsMeanAndVariance) Init() ImageStatisticsMeanAndVariance { func (i_ ImageStatisticsMeanAndVariance) CopyWithZoneDevice(zone unsafe.Pointer, device metal.PDevice) ImageStatisticsMeanAndVariance { po1 := objc.WrapAsProtocol("MTLDevice", device) rv := objc.Call[ImageStatisticsMeanAndVariance](i_, objc.Sel("copyWithZone:device:"), zone, po1) - rv.Autorelease() return rv } diff --git a/macos/mps/image_statistics_min_and_max.gen.go b/macos/mps/image_statistics_min_and_max.gen.go index e4d20551..92deced0 100644 --- a/macos/mps/image_statistics_min_and_max.gen.go +++ b/macos/mps/image_statistics_min_and_max.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package mps @@ -56,10 +56,6 @@ func (ic _ImageStatisticsMinAndMaxClass) Alloc() ImageStatisticsMinAndMax { return rv } -func ImageStatisticsMinAndMax_Alloc() ImageStatisticsMinAndMax { - return ImageStatisticsMinAndMaxClass.Alloc() -} - func (ic _ImageStatisticsMinAndMaxClass) New() ImageStatisticsMinAndMax { rv := objc.Call[ImageStatisticsMinAndMax](ic, objc.Sel("new")) rv.Autorelease() @@ -78,7 +74,6 @@ func (i_ ImageStatisticsMinAndMax) Init() ImageStatisticsMinAndMax { func (i_ ImageStatisticsMinAndMax) CopyWithZoneDevice(zone unsafe.Pointer, device metal.PDevice) ImageStatisticsMinAndMax { po1 := objc.WrapAsProtocol("MTLDevice", device) rv := objc.Call[ImageStatisticsMinAndMax](i_, objc.Sel("copyWithZone:device:"), zone, po1) - rv.Autorelease() return rv } diff --git a/macos/mps/image_subtract.gen.go b/macos/mps/image_subtract.gen.go index 3392df23..12c2cd08 100644 --- a/macos/mps/image_subtract.gen.go +++ b/macos/mps/image_subtract.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package mps @@ -54,10 +54,6 @@ func (ic _ImageSubtractClass) Alloc() ImageSubtract { return rv } -func ImageSubtract_Alloc() ImageSubtract { - return ImageSubtractClass.Alloc() -} - func (ic _ImageSubtractClass) New() ImageSubtract { rv := objc.Call[ImageSubtract](ic, objc.Sel("new")) rv.Autorelease() @@ -76,7 +72,6 @@ func (i_ ImageSubtract) Init() ImageSubtract { func (i_ ImageSubtract) CopyWithZoneDevice(zone unsafe.Pointer, device metal.PDevice) ImageSubtract { po1 := objc.WrapAsProtocol("MTLDevice", device) rv := objc.Call[ImageSubtract](i_, objc.Sel("copyWithZone:device:"), zone, po1) - rv.Autorelease() return rv } diff --git a/macos/mps/image_tent.gen.go b/macos/mps/image_tent.gen.go index ec2e2f88..9ed2f343 100644 --- a/macos/mps/image_tent.gen.go +++ b/macos/mps/image_tent.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package mps @@ -39,10 +39,6 @@ func (ic _ImageTentClass) Alloc() ImageTent { return rv } -func ImageTent_Alloc() ImageTent { - return ImageTentClass.Alloc() -} - func (ic _ImageTentClass) New() ImageTent { rv := objc.Call[ImageTent](ic, objc.Sel("new")) rv.Autorelease() @@ -91,7 +87,6 @@ func NewImageTentWithDevice(device metal.PDevice) ImageTent { func (i_ ImageTent) CopyWithZoneDevice(zone unsafe.Pointer, device metal.PDevice) ImageTent { po1 := objc.WrapAsProtocol("MTLDevice", device) rv := objc.Call[ImageTent](i_, objc.Sel("copyWithZone:device:"), zone, po1) - rv.Autorelease() return rv } diff --git a/macos/mps/image_threshold_binary.gen.go b/macos/mps/image_threshold_binary.gen.go index 85a6374f..98ac3af6 100644 --- a/macos/mps/image_threshold_binary.gen.go +++ b/macos/mps/image_threshold_binary.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package mps @@ -57,10 +57,6 @@ func (ic _ImageThresholdBinaryClass) Alloc() ImageThresholdBinary { return rv } -func ImageThresholdBinary_Alloc() ImageThresholdBinary { - return ImageThresholdBinaryClass.Alloc() -} - func (ic _ImageThresholdBinaryClass) New() ImageThresholdBinary { rv := objc.Call[ImageThresholdBinary](ic, objc.Sel("new")) rv.Autorelease() @@ -94,7 +90,6 @@ func NewImageThresholdBinaryWithDevice(device metal.PDevice) ImageThresholdBinar func (i_ ImageThresholdBinary) CopyWithZoneDevice(zone unsafe.Pointer, device metal.PDevice) ImageThresholdBinary { po1 := objc.WrapAsProtocol("MTLDevice", device) rv := objc.Call[ImageThresholdBinary](i_, objc.Sel("copyWithZone:device:"), zone, po1) - rv.Autorelease() return rv } diff --git a/macos/mps/image_threshold_binary_inverse.gen.go b/macos/mps/image_threshold_binary_inverse.gen.go index 4ffcd015..fc74ca46 100644 --- a/macos/mps/image_threshold_binary_inverse.gen.go +++ b/macos/mps/image_threshold_binary_inverse.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package mps @@ -57,10 +57,6 @@ func (ic _ImageThresholdBinaryInverseClass) Alloc() ImageThresholdBinaryInverse return rv } -func ImageThresholdBinaryInverse_Alloc() ImageThresholdBinaryInverse { - return ImageThresholdBinaryInverseClass.Alloc() -} - func (ic _ImageThresholdBinaryInverseClass) New() ImageThresholdBinaryInverse { rv := objc.Call[ImageThresholdBinaryInverse](ic, objc.Sel("new")) rv.Autorelease() @@ -94,7 +90,6 @@ func NewImageThresholdBinaryInverseWithDevice(device metal.PDevice) ImageThresho func (i_ ImageThresholdBinaryInverse) CopyWithZoneDevice(zone unsafe.Pointer, device metal.PDevice) ImageThresholdBinaryInverse { po1 := objc.WrapAsProtocol("MTLDevice", device) rv := objc.Call[ImageThresholdBinaryInverse](i_, objc.Sel("copyWithZone:device:"), zone, po1) - rv.Autorelease() return rv } diff --git a/macos/mps/image_threshold_to_zero.gen.go b/macos/mps/image_threshold_to_zero.gen.go index 8f42f1e4..5504cf37 100644 --- a/macos/mps/image_threshold_to_zero.gen.go +++ b/macos/mps/image_threshold_to_zero.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package mps @@ -56,10 +56,6 @@ func (ic _ImageThresholdToZeroClass) Alloc() ImageThresholdToZero { return rv } -func ImageThresholdToZero_Alloc() ImageThresholdToZero { - return ImageThresholdToZeroClass.Alloc() -} - func (ic _ImageThresholdToZeroClass) New() ImageThresholdToZero { rv := objc.Call[ImageThresholdToZero](ic, objc.Sel("new")) rv.Autorelease() @@ -93,7 +89,6 @@ func NewImageThresholdToZeroWithDevice(device metal.PDevice) ImageThresholdToZer func (i_ ImageThresholdToZero) CopyWithZoneDevice(zone unsafe.Pointer, device metal.PDevice) ImageThresholdToZero { po1 := objc.WrapAsProtocol("MTLDevice", device) rv := objc.Call[ImageThresholdToZero](i_, objc.Sel("copyWithZone:device:"), zone, po1) - rv.Autorelease() return rv } diff --git a/macos/mps/image_threshold_to_zero_inverse.gen.go b/macos/mps/image_threshold_to_zero_inverse.gen.go index 36ab6b90..87a91916 100644 --- a/macos/mps/image_threshold_to_zero_inverse.gen.go +++ b/macos/mps/image_threshold_to_zero_inverse.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package mps @@ -56,10 +56,6 @@ func (ic _ImageThresholdToZeroInverseClass) Alloc() ImageThresholdToZeroInverse return rv } -func ImageThresholdToZeroInverse_Alloc() ImageThresholdToZeroInverse { - return ImageThresholdToZeroInverseClass.Alloc() -} - func (ic _ImageThresholdToZeroInverseClass) New() ImageThresholdToZeroInverse { rv := objc.Call[ImageThresholdToZeroInverse](ic, objc.Sel("new")) rv.Autorelease() @@ -93,7 +89,6 @@ func NewImageThresholdToZeroInverseWithDevice(device metal.PDevice) ImageThresho func (i_ ImageThresholdToZeroInverse) CopyWithZoneDevice(zone unsafe.Pointer, device metal.PDevice) ImageThresholdToZeroInverse { po1 := objc.WrapAsProtocol("MTLDevice", device) rv := objc.Call[ImageThresholdToZeroInverse](i_, objc.Sel("copyWithZone:device:"), zone, po1) - rv.Autorelease() return rv } diff --git a/macos/mps/image_threshold_truncate.gen.go b/macos/mps/image_threshold_truncate.gen.go index 96dacbca..688ca9d1 100644 --- a/macos/mps/image_threshold_truncate.gen.go +++ b/macos/mps/image_threshold_truncate.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package mps @@ -19,8 +19,8 @@ type _ImageThresholdTruncateClass struct { // An interface definition for the [ImageThresholdTruncate] class. type IImageThresholdTruncate interface { IUnaryImageKernel - Transform() *float64 ThresholdValue() float64 + Transform() *float64 } // A filter that clamps the return value to an upper specified value. [Full Topic] @@ -56,10 +56,6 @@ func (ic _ImageThresholdTruncateClass) Alloc() ImageThresholdTruncate { return rv } -func ImageThresholdTruncate_Alloc() ImageThresholdTruncate { - return ImageThresholdTruncateClass.Alloc() -} - func (ic _ImageThresholdTruncateClass) New() ImageThresholdTruncate { rv := objc.Call[ImageThresholdTruncate](ic, objc.Sel("new")) rv.Autorelease() @@ -93,7 +89,6 @@ func NewImageThresholdTruncateWithDevice(device metal.PDevice) ImageThresholdTru func (i_ ImageThresholdTruncate) CopyWithZoneDevice(zone unsafe.Pointer, device metal.PDevice) ImageThresholdTruncate { po1 := objc.WrapAsProtocol("MTLDevice", device) rv := objc.Call[ImageThresholdTruncate](i_, objc.Sel("copyWithZone:device:"), zone, po1) - rv.Autorelease() return rv } @@ -106,14 +101,6 @@ func ImageThresholdTruncate_CopyWithZoneDevice(zone unsafe.Pointer, device metal return instance } -// The color transform used to initialize the threshold filter. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsimagethresholdtruncate/1618787-transform?language=objc -func (i_ ImageThresholdTruncate) Transform() *float64 { - rv := objc.Call[*float64](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 @@ -121,3 +108,11 @@ func (i_ ImageThresholdTruncate) ThresholdValue() float64 { rv := objc.Call[float64](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 +func (i_ ImageThresholdTruncate) Transform() *float64 { + rv := objc.Call[*float64](i_, objc.Sel("transform")) + return rv +} diff --git a/macos/mps/image_transform_provider.gen.go b/macos/mps/image_transform_provider_protocol.gen.go similarity index 59% rename from macos/mps/image_transform_provider.gen.go rename to macos/mps/image_transform_provider_protocol.gen.go index e8adb7e8..7cdcb945 100644 --- a/macos/mps/image_transform_provider.gen.go +++ b/macos/mps/image_transform_provider_protocol.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package mps @@ -11,23 +11,26 @@ import ( // [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsimagetransformprovider?language=objc type PImageTransformProvider interface { // optional - TransformForSourceImageHandle(image Image, handle HandleWrapper) ScaleTransform + TransformForSourceImageHandle(image Image, handle HandleObject) ScaleTransform HasTransformForSourceImageHandle() bool } -// A concrete type wrapper for the [PImageTransformProvider] protocol. -type ImageTransformProviderWrapper struct { +// ensure impl type implements protocol interface +var _ PImageTransformProvider = (*ImageTransformProviderObject)(nil) + +// A concrete type for the [PImageTransformProvider] protocol. +type ImageTransformProviderObject struct { objc.Object } -func (i_ ImageTransformProviderWrapper) HasTransformForSourceImageHandle() bool { +func (i_ ImageTransformProviderObject) HasTransformForSourceImageHandle() bool { return i_.RespondsToSelector(objc.Sel("transformForSourceImage:handle:")) } // [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsimagetransformprovider/2915282-transformforsourceimage?language=objc -func (i_ ImageTransformProviderWrapper) TransformForSourceImageHandle(image IImage, handle PHandle) ScaleTransform { +func (i_ ImageTransformProviderObject) TransformForSourceImageHandle(image Image, handle HandleObject) ScaleTransform { po1 := objc.WrapAsProtocol("MPSHandle", handle) rv := objc.Call[ScaleTransform](i_, objc.Sel("transformForSourceImage:handle:"), objc.Ptr(image), po1) return rv diff --git a/macos/mps/image_transpose.gen.go b/macos/mps/image_transpose.gen.go index 461435d9..a7741fe2 100644 --- a/macos/mps/image_transpose.gen.go +++ b/macos/mps/image_transpose.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package mps @@ -39,10 +39,6 @@ func (ic _ImageTransposeClass) Alloc() ImageTranspose { return rv } -func ImageTranspose_Alloc() ImageTranspose { - return ImageTransposeClass.Alloc() -} - func (ic _ImageTransposeClass) New() ImageTranspose { rv := objc.Call[ImageTranspose](ic, objc.Sel("new")) rv.Autorelease() @@ -76,7 +72,6 @@ func NewImageTransposeWithDevice(device metal.PDevice) ImageTranspose { func (i_ ImageTranspose) CopyWithZoneDevice(zone unsafe.Pointer, device metal.PDevice) ImageTranspose { po1 := objc.WrapAsProtocol("MTLDevice", device) rv := objc.Call[ImageTranspose](i_, objc.Sel("copyWithZone:device:"), zone, po1) - rv.Autorelease() return rv } diff --git a/macos/mps/instance_acceleration_structure.gen.go b/macos/mps/instance_acceleration_structure.gen.go index 58665a3d..2be1cbc7 100644 --- a/macos/mps/instance_acceleration_structure.gen.go +++ b/macos/mps/instance_acceleration_structure.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package mps @@ -39,10 +39,6 @@ func (ic _InstanceAccelerationStructureClass) Alloc() InstanceAccelerationStruct return rv } -func InstanceAccelerationStructure_Alloc() InstanceAccelerationStructure { - return InstanceAccelerationStructureClass.Alloc() -} - func (ic _InstanceAccelerationStructureClass) New() InstanceAccelerationStructure { rv := objc.Call[InstanceAccelerationStructure](ic, objc.Sel("new")) rv.Autorelease() @@ -58,33 +54,32 @@ func (i_ InstanceAccelerationStructure) Init() InstanceAccelerationStructure { return rv } -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 } -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) - rv.Autorelease() +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 } diff --git a/macos/mps/kernel.gen.go b/macos/mps/kernel.gen.go index 787f7ee3..5f3b8685 100644 --- a/macos/mps/kernel.gen.go +++ b/macos/mps/kernel.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package mps @@ -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.DeviceWrapper Label() string SetLabel(value string) } @@ -39,33 +39,32 @@ func KernelFrom(ptr unsafe.Pointer) Kernel { } } -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 } -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) - rv.Autorelease() +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 } @@ -75,10 +74,6 @@ func (kc _KernelClass) Alloc() Kernel { return rv } -func Kernel_Alloc() Kernel { - return KernelClass.Alloc() -} - func (kc _KernelClass) New() Kernel { rv := objc.Call[Kernel](kc, objc.Sel("new")) rv.Autorelease() @@ -94,6 +89,14 @@ 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 @@ -109,14 +112,6 @@ 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.DeviceWrapper { - rv := objc.Call[metal.DeviceWrapper](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 5cdc415e..f45382bf 100644 --- a/macos/mps/keyed_unarchiver.gen.go +++ b/macos/mps/keyed_unarchiver.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package mps @@ -20,7 +20,7 @@ type _KeyedUnarchiverClass struct { // An interface definition for the [KeyedUnarchiver] class. type IKeyedUnarchiver interface { foundation.IKeyedUnarchiver - MpsMTLDevice() metal.DeviceWrapper + MpsMTLDevice() metal.DeviceObject } // A keyed archiver that supports Metal Performance Shaders kernel decoding. [Full Topic] @@ -56,10 +56,6 @@ func (kc _KeyedUnarchiverClass) Alloc() KeyedUnarchiver { return rv } -func KeyedUnarchiver_Alloc() KeyedUnarchiver { - return KeyedUnarchiverClass.Alloc() -} - func (kc _KeyedUnarchiverClass) New() KeyedUnarchiver { rv := objc.Call[KeyedUnarchiver](kc, objc.Sel("new")) rv.Autorelease() @@ -91,70 +87,70 @@ func NewKeyedUnarchiverForReadingFromDataError(data []byte, error foundation.IEr // [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 foundation.IError) objc.Object { +// [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 foundation.IError) objc.Object { po2 := objc.WrapAsProtocol("MTLDevice", device) - rv := objc.Call[objc.Object](kc, objc.Sel("unarchivedObjectOfClass:fromData:device:error:"), objc.Ptr(cls), data, po2, objc.Ptr(error)) + rv := objc.Call[objc.Object](kc, objc.Sel("unarchivedObjectOfClasses:fromData:device:error:"), objc.Ptr(classes), data, po2, objc.Ptr(error)) return rv } // [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 foundation.IError) objc.Object { - return KeyedUnarchiverClass.UnarchivedObjectOfClassFromDataDeviceError(cls, data, device, error) +// [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 foundation.IError) 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 (kc _KeyedUnarchiverClass) UnarchivedObjectOfClassFromDataDeviceObjectError(cls objc.IClass, data []byte, deviceObject objc.IObject, error foundation.IError) objc.Object { - rv := objc.Call[objc.Object](kc, objc.Sel("unarchivedObjectOfClass:fromData:device:error:"), objc.Ptr(cls), data, objc.Ptr(deviceObject), objc.Ptr(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 foundation.IError) objc.Object { + rv := objc.Call[objc.Object](kc, objc.Sel("unarchivedObjectOfClasses:fromData:device:error:"), objc.Ptr(classes), data, objc.Ptr(deviceObject), objc.Ptr(error)) return rv } // [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 foundation.IError) objc.Object { - return KeyedUnarchiverClass.UnarchivedObjectOfClassFromDataDeviceObjectError(cls, data, deviceObject, error) +// [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 foundation.IError) objc.Object { + return KeyedUnarchiverClass.UnarchivedObjectOfClassesFromDataDeviceObjectError(classes, data, deviceObject, error) } // [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 foundation.IError) objc.Object { - po2 := objc.WrapAsProtocol("MTLDevice", device) - rv := objc.Call[objc.Object](kc, objc.Sel("unarchivedObjectOfClasses:fromData:device:error:"), objc.Ptr(classes), data, po2, objc.Ptr(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 } // [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 foundation.IError) objc.Object { - return KeyedUnarchiverClass.UnarchivedObjectOfClassesFromDataDeviceError(classes, data, device, error) +// [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 foundation.IError) objc.Object { + po2 := objc.WrapAsProtocol("MTLDevice", device) + rv := objc.Call[objc.Object](kc, objc.Sel("unarchivedObjectOfClass:fromData:device:error:"), objc.Ptr(cls), data, po2, objc.Ptr(error)) + return rv } // [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 foundation.IError) objc.Object { - rv := objc.Call[objc.Object](kc, objc.Sel("unarchivedObjectOfClasses:fromData:device:error:"), objc.Ptr(classes), data, objc.Ptr(deviceObject), objc.Ptr(error)) - return rv +// [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 foundation.IError) 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 KeyedUnarchiver_UnarchivedObjectOfClassesFromDataDeviceObjectError(classes foundation.ISet, data []byte, deviceObject objc.IObject, error foundation.IError) objc.Object { - return KeyedUnarchiverClass.UnarchivedObjectOfClassesFromDataDeviceObjectError(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 foundation.IError) objc.Object { + rv := objc.Call[objc.Object](kc, objc.Sel("unarchivedObjectOfClass:fromData:device:error:"), objc.Ptr(cls), data, objc.Ptr(deviceObject), objc.Ptr(error)) + return rv } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpskeyedunarchiver/2951880-mpsmtldevice?language=objc -func (k_ KeyedUnarchiver) MpsMTLDevice() metal.DeviceWrapper { - rv := objc.Call[metal.DeviceWrapper](k_, objc.Sel("mpsMTLDevice")) - return rv +// [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 foundation.IError) objc.Object { + return KeyedUnarchiverClass.UnarchivedObjectOfClassFromDataDeviceObjectError(cls, data, deviceObject, error) } diff --git a/macos/mps/lstm_descriptor.gen.go b/macos/mps/lstm_descriptor.gen.go index 225edb46..c5baf9c4 100644 --- a/macos/mps/lstm_descriptor.gen.go +++ b/macos/mps/lstm_descriptor.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package mps @@ -18,52 +18,52 @@ type _LSTMDescriptorClass struct { // An interface definition for the [LSTMDescriptor] class. type ILSTMDescriptor interface { IRNNDescriptor - InputGateInputWeights() CNNConvolutionDataSourceWrapper - SetInputGateInputWeights(value PCNNConvolutionDataSource) - SetInputGateInputWeightsObject(valueObject objc.IObject) - CellToOutputNeuronParamA() float64 - SetCellToOutputNeuronParamA(value float64) - ForgetGateInputWeights() CNNConvolutionDataSourceWrapper - SetForgetGateInputWeights(value PCNNConvolutionDataSource) - SetForgetGateInputWeightsObject(valueObject objc.IObject) - MemoryWeightsAreDiagonal() bool - SetMemoryWeightsAreDiagonal(value bool) - CellGateMemoryWeights() CNNConvolutionDataSourceWrapper - SetCellGateMemoryWeights(value PCNNConvolutionDataSource) - SetCellGateMemoryWeightsObject(valueObject objc.IObject) - ForgetGateRecurrentWeights() CNNConvolutionDataSourceWrapper + CellGateRecurrentWeights() CNNConvolutionDataSourceObject + SetCellGateRecurrentWeights(value PCNNConvolutionDataSource) + SetCellGateRecurrentWeightsObject(valueObject objc.IObject) + CellToOutputNeuronParamC() float64 + SetCellToOutputNeuronParamC(value float64) + ForgetGateRecurrentWeights() CNNConvolutionDataSourceObject SetForgetGateRecurrentWeights(value PCNNConvolutionDataSource) SetForgetGateRecurrentWeightsObject(valueObject objc.IObject) - ForgetGateMemoryWeights() CNNConvolutionDataSourceWrapper - SetForgetGateMemoryWeights(value PCNNConvolutionDataSource) - SetForgetGateMemoryWeightsObject(valueObject objc.IObject) - CellToOutputNeuronType() CNNNeuronType - SetCellToOutputNeuronType(value CNNNeuronType) - CellGateInputWeights() CNNConvolutionDataSourceWrapper + InputGateRecurrentWeights() CNNConvolutionDataSourceObject + SetInputGateRecurrentWeights(value PCNNConvolutionDataSource) + SetInputGateRecurrentWeightsObject(valueObject objc.IObject) + CellToOutputNeuronParamB() float64 + SetCellToOutputNeuronParamB(value float64) + CellGateInputWeights() CNNConvolutionDataSourceObject SetCellGateInputWeights(value PCNNConvolutionDataSource) SetCellGateInputWeightsObject(valueObject objc.IObject) - OutputGateRecurrentWeights() CNNConvolutionDataSourceWrapper + CellToOutputNeuronType() CNNNeuronType + SetCellToOutputNeuronType(value CNNNeuronType) + CellToOutputNeuronParamA() float64 + SetCellToOutputNeuronParamA(value float64) + OutputGateInputWeights() CNNConvolutionDataSourceObject + SetOutputGateInputWeights(value PCNNConvolutionDataSource) + SetOutputGateInputWeightsObject(valueObject objc.IObject) + ForgetGateMemoryWeights() CNNConvolutionDataSourceObject + SetForgetGateMemoryWeights(value PCNNConvolutionDataSource) + SetForgetGateMemoryWeightsObject(valueObject objc.IObject) + OutputGateRecurrentWeights() CNNConvolutionDataSourceObject SetOutputGateRecurrentWeights(value PCNNConvolutionDataSource) SetOutputGateRecurrentWeightsObject(valueObject objc.IObject) - InputGateMemoryWeights() CNNConvolutionDataSourceWrapper + 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) - InputGateRecurrentWeights() CNNConvolutionDataSourceWrapper - SetInputGateRecurrentWeights(value PCNNConvolutionDataSource) - SetInputGateRecurrentWeightsObject(valueObject objc.IObject) - CellToOutputNeuronParamC() float64 - SetCellToOutputNeuronParamC(value float64) - CellGateRecurrentWeights() CNNConvolutionDataSourceWrapper - SetCellGateRecurrentWeights(value PCNNConvolutionDataSource) - SetCellGateRecurrentWeightsObject(valueObject objc.IObject) - OutputGateMemoryWeights() CNNConvolutionDataSourceWrapper + MemoryWeightsAreDiagonal() bool + SetMemoryWeightsAreDiagonal(value bool) + OutputGateMemoryWeights() CNNConvolutionDataSourceObject SetOutputGateMemoryWeights(value PCNNConvolutionDataSource) SetOutputGateMemoryWeightsObject(valueObject objc.IObject) - OutputGateInputWeights() CNNConvolutionDataSourceWrapper - SetOutputGateInputWeights(value PCNNConvolutionDataSource) - SetOutputGateInputWeightsObject(valueObject objc.IObject) - CellToOutputNeuronParamB() float64 - SetCellToOutputNeuronParamB(value float64) } // A description of a long short-term memory block or layer. [Full Topic] @@ -96,10 +96,6 @@ func (lc _LSTMDescriptorClass) Alloc() LSTMDescriptor { return rv } -func LSTMDescriptor_Alloc() LSTMDescriptor { - return LSTMDescriptorClass.Alloc() -} - func (lc _LSTMDescriptorClass) New() LSTMDescriptor { rv := objc.Call[LSTMDescriptor](lc, objc.Sel("new")) rv.Autorelease() @@ -117,192 +113,207 @@ func (l_ LSTMDescriptor) Init() LSTMDescriptor { // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpslstmdescriptor/2865684-inputgateinputweights?language=objc -func (l_ LSTMDescriptor) InputGateInputWeights() CNNConvolutionDataSourceWrapper { - rv := objc.Call[CNNConvolutionDataSourceWrapper](l_, objc.Sel("inputGateInputWeights")) +// [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/2865684-inputgateinputweights?language=objc -func (l_ LSTMDescriptor) SetInputGateInputWeights(value PCNNConvolutionDataSource) { +// [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:"), objc.Ptr(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:"), objc.Ptr(valueObject)) } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpslstmdescriptor/2865744-celltooutputneuronparama?language=objc -func (l_ LSTMDescriptor) CellToOutputNeuronParamA() float64 { - rv := objc.Call[float64](l_, objc.Sel("cellToOutputNeuronParamA")) +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpslstmdescriptor/2935551-celltooutputneuronparamc?language=objc +func (l_ LSTMDescriptor) CellToOutputNeuronParamC() float64 { + rv := objc.Call[float64](l_, objc.Sel("cellToOutputNeuronParamC")) return rv } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpslstmdescriptor/2865744-celltooutputneuronparama?language=objc -func (l_ LSTMDescriptor) SetCellToOutputNeuronParamA(value float64) { - objc.Call[objc.Void](l_, objc.Sel("setCellToOutputNeuronParamA:"), value) +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpslstmdescriptor/2935551-celltooutputneuronparamc?language=objc +func (l_ LSTMDescriptor) SetCellToOutputNeuronParamC(value float64) { + objc.Call[objc.Void](l_, objc.Sel("setCellToOutputNeuronParamC:"), value) } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpslstmdescriptor/2865734-forgetgateinputweights?language=objc -func (l_ LSTMDescriptor) ForgetGateInputWeights() CNNConvolutionDataSourceWrapper { - rv := objc.Call[CNNConvolutionDataSourceWrapper](l_, objc.Sel("forgetGateInputWeights")) +// [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/2865734-forgetgateinputweights?language=objc -func (l_ LSTMDescriptor) SetForgetGateInputWeights(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("setForgetGateInputWeights:"), po0) + objc.Call[objc.Void](l_, objc.Sel("setForgetGateRecurrentWeights:"), 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:"), objc.Ptr(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:"), objc.Ptr(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/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/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/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] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpslstmdescriptor/2865683-cellgatememoryweights?language=objc -func (l_ LSTMDescriptor) CellGateMemoryWeights() CNNConvolutionDataSourceWrapper { - rv := objc.Call[CNNConvolutionDataSourceWrapper](l_, objc.Sel("cellGateMemoryWeights")) - return rv +// [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:"), objc.Ptr(valueObject)) } // [Full Topic] // -// [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]: https://developer.apple.com/documentation/metalperformanceshaders/mpslstmdescriptor/2865694-celltooutputneuronparamb?language=objc +func (l_ LSTMDescriptor) CellToOutputNeuronParamB() float64 { + rv := objc.Call[float64](l_, objc.Sel("cellToOutputNeuronParamB")) + return rv } // [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:"), objc.Ptr(valueObject)) +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpslstmdescriptor/2865694-celltooutputneuronparamb?language=objc +func (l_ LSTMDescriptor) SetCellToOutputNeuronParamB(value float64) { + objc.Call[objc.Void](l_, objc.Sel("setCellToOutputNeuronParamB:"), value) } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpslstmdescriptor/2865735-forgetgaterecurrentweights?language=objc -func (l_ LSTMDescriptor) ForgetGateRecurrentWeights() CNNConvolutionDataSourceWrapper { - rv := objc.Call[CNNConvolutionDataSourceWrapper](l_, objc.Sel("forgetGateRecurrentWeights")) +// [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/2865735-forgetgaterecurrentweights?language=objc -func (l_ LSTMDescriptor) SetForgetGateRecurrentWeights(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("setForgetGateRecurrentWeights:"), po0) + objc.Call[objc.Void](l_, objc.Sel("setCellGateInputWeights:"), 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:"), objc.Ptr(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:"), objc.Ptr(valueObject)) } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpslstmdescriptor/2865689-forgetgatememoryweights?language=objc -func (l_ LSTMDescriptor) ForgetGateMemoryWeights() CNNConvolutionDataSourceWrapper { - rv := objc.Call[CNNConvolutionDataSourceWrapper](l_, objc.Sel("forgetGateMemoryWeights")) +// [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/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]: 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) SetForgetGateMemoryWeightsObject(valueObject objc.IObject) { - objc.Call[objc.Void](l_, objc.Sel("setForgetGateMemoryWeights:"), objc.Ptr(valueObject)) +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpslstmdescriptor/2865744-celltooutputneuronparama?language=objc +func (l_ LSTMDescriptor) CellToOutputNeuronParamA() float64 { + rv := objc.Call[float64](l_, objc.Sel("cellToOutputNeuronParamA")) + return rv } // [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/2865744-celltooutputneuronparama?language=objc +func (l_ LSTMDescriptor) SetCellToOutputNeuronParamA(value float64) { + objc.Call[objc.Void](l_, objc.Sel("setCellToOutputNeuronParamA:"), value) +} + +// [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")) 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]: 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/2865741-cellgateinputweights?language=objc -func (l_ LSTMDescriptor) CellGateInputWeights() CNNConvolutionDataSourceWrapper { - rv := objc.Call[CNNConvolutionDataSourceWrapper](l_, objc.Sel("cellGateInputWeights")) +// [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:"), objc.Ptr(valueObject)) +} + +// [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")) 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/2865689-forgetgatememoryweights?language=objc +func (l_ LSTMDescriptor) SetForgetGateMemoryWeights(value PCNNConvolutionDataSource) { po0 := objc.WrapAsProtocol("MPSCNNConvolutionDataSource", value) - objc.Call[objc.Void](l_, objc.Sel("setCellGateInputWeights:"), po0) + objc.Call[objc.Void](l_, objc.Sel("setForgetGateMemoryWeights:"), 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:"), objc.Ptr(valueObject)) +// [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:"), objc.Ptr(valueObject)) } // [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpslstmdescriptor/2865750-outputgaterecurrentweights?language=objc -func (l_ LSTMDescriptor) OutputGateRecurrentWeights() CNNConvolutionDataSourceWrapper { - rv := objc.Call[CNNConvolutionDataSourceWrapper](l_, objc.Sel("outputGateRecurrentWeights")) +func (l_ LSTMDescriptor) OutputGateRecurrentWeights() CNNConvolutionDataSourceObject { + rv := objc.Call[CNNConvolutionDataSourceObject](l_, objc.Sel("outputGateRecurrentWeights")) return rv } @@ -323,145 +334,130 @@ func (l_ LSTMDescriptor) SetOutputGateRecurrentWeightsObject(valueObject objc.IO // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpslstmdescriptor/2865731-inputgatememoryweights?language=objc -func (l_ LSTMDescriptor) InputGateMemoryWeights() CNNConvolutionDataSourceWrapper { - rv := objc.Call[CNNConvolutionDataSourceWrapper](l_, objc.Sel("inputGateMemoryWeights")) +// [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/2865731-inputgatememoryweights?language=objc -func (l_ LSTMDescriptor) SetInputGateMemoryWeights(value PCNNConvolutionDataSource) { +// [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("setInputGateMemoryWeights:"), po0) + objc.Call[objc.Void](l_, objc.Sel("setCellGateMemoryWeights:"), 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:"), objc.Ptr(valueObject)) +// [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:"), objc.Ptr(valueObject)) } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpslstmdescriptor/2865747-inputgaterecurrentweights?language=objc -func (l_ LSTMDescriptor) InputGateRecurrentWeights() CNNConvolutionDataSourceWrapper { - rv := objc.Call[CNNConvolutionDataSourceWrapper](l_, objc.Sel("inputGateRecurrentWeights")) +// [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/2865747-inputgaterecurrentweights?language=objc -func (l_ LSTMDescriptor) SetInputGateRecurrentWeights(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("setInputGateRecurrentWeights:"), po0) -} - -// [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:"), objc.Ptr(valueObject)) -} - -// [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpslstmdescriptor/2935551-celltooutputneuronparamc?language=objc -func (l_ LSTMDescriptor) CellToOutputNeuronParamC() float64 { - rv := objc.Call[float64](l_, objc.Sel("cellToOutputNeuronParamC")) - return rv + objc.Call[objc.Void](l_, objc.Sel("setForgetGateInputWeights:"), po0) } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpslstmdescriptor/2935551-celltooutputneuronparamc?language=objc -func (l_ LSTMDescriptor) SetCellToOutputNeuronParamC(value float64) { - objc.Call[objc.Void](l_, objc.Sel("setCellToOutputNeuronParamC:"), value) +// [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:"), objc.Ptr(valueObject)) } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpslstmdescriptor/2865679-cellgaterecurrentweights?language=objc -func (l_ LSTMDescriptor) CellGateRecurrentWeights() CNNConvolutionDataSourceWrapper { - rv := objc.Call[CNNConvolutionDataSourceWrapper](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:"), objc.Ptr(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:"), objc.Ptr(valueObject)) } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpslstmdescriptor/2865688-outputgatememoryweights?language=objc -func (l_ LSTMDescriptor) OutputGateMemoryWeights() CNNConvolutionDataSourceWrapper { - rv := objc.Call[CNNConvolutionDataSourceWrapper](l_, objc.Sel("outputGateMemoryWeights")) +// [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/2865688-outputgatememoryweights?language=objc -func (l_ LSTMDescriptor) SetOutputGateMemoryWeights(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("setOutputGateMemoryWeights:"), po0) + objc.Call[objc.Void](l_, objc.Sel("setInputGateMemoryWeights:"), po0) } // [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:"), objc.Ptr(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:"), objc.Ptr(valueObject)) } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpslstmdescriptor/2865701-outputgateinputweights?language=objc -func (l_ LSTMDescriptor) OutputGateInputWeights() CNNConvolutionDataSourceWrapper { - rv := objc.Call[CNNConvolutionDataSourceWrapper](l_, objc.Sel("outputGateInputWeights")) +// [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/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]: 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/2865701-outputgateinputweights?language=objc -func (l_ LSTMDescriptor) SetOutputGateInputWeightsObject(valueObject objc.IObject) { - objc.Call[objc.Void](l_, objc.Sel("setOutputGateInputWeights:"), objc.Ptr(valueObject)) +// [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/2865694-celltooutputneuronparamb?language=objc -func (l_ LSTMDescriptor) CellToOutputNeuronParamB() float64 { - rv := objc.Call[float64](l_, objc.Sel("cellToOutputNeuronParamB")) - return rv +// [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] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpslstmdescriptor/2865694-celltooutputneuronparamb?language=objc -func (l_ LSTMDescriptor) SetCellToOutputNeuronParamB(value float64) { - objc.Call[objc.Void](l_, objc.Sel("setCellToOutputNeuronParamB:"), value) +// [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:"), objc.Ptr(valueObject)) } diff --git a/macos/mps/matrix.gen.go b/macos/mps/matrix.gen.go index 3f4f5481..bb6bfbd2 100644 --- a/macos/mps/matrix.gen.go +++ b/macos/mps/matrix.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package mps @@ -22,14 +22,14 @@ type IMatrix interface { ResourceSize() uint SynchronizeOnCommandBuffer(commandBuffer metal.PCommandBuffer) SynchronizeOnCommandBufferObject(commandBufferObject objc.IObject) - Device() metal.DeviceWrapper + Rows() uint + Data() metal.BufferObject RowBytes() uint - Columns() uint - Data() metal.BufferWrapper - Offset() uint + Device() metal.DeviceObject DataType() DataType - Rows() uint + Columns() uint Matrices() uint + Offset() uint MatrixBytes() uint } @@ -46,32 +46,47 @@ func MatrixFrom(ptr unsafe.Pointer) Matrix { } } -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, objc.Ptr(descriptor)) +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, objc.Ptr(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 } -func (m_ Matrix) InitWithBufferOffsetDescriptor(buffer metal.PBuffer, offset uint, descriptor IMatrixDescriptor) Matrix { +func (m_ Matrix) InitWithBufferDescriptor(buffer metal.PBuffer, descriptor IMatrixDescriptor) Matrix { po0 := objc.WrapAsProtocol("MTLBuffer", buffer) - rv := objc.Call[Matrix](m_, objc.Sel("initWithBuffer:offset:descriptor:"), po0, offset, objc.Ptr(descriptor)) + rv := objc.Call[Matrix](m_, objc.Sel("initWithBuffer:descriptor:"), po0, objc.Ptr(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, objc.Ptr(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 } @@ -81,10 +96,6 @@ func (mc _MatrixClass) Alloc() Matrix { return rv } -func Matrix_Alloc() Matrix { - return MatrixClass.Alloc() -} - func (mc _MatrixClass) New() Matrix { rv := objc.Call[Matrix](mc, objc.Sel("new")) rv.Autorelease() @@ -123,43 +134,35 @@ func (m_ Matrix) SynchronizeOnCommandBufferObject(commandBufferObject objc.IObje objc.Call[objc.Void](m_, objc.Sel("synchronizeOnCommandBuffer:"), objc.Ptr(commandBufferObject)) } -// The device on which the matrix will be used. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsmatrix/2143209-device?language=objc -func (m_ Matrix) Device() metal.DeviceWrapper { - rv := objc.Call[metal.DeviceWrapper](m_, objc.Sel("device")) - return rv -} - -// The stride, in bytes, between corresponding elements of consecutive rows in the matrix. [Full Topic] +// The number of rows in the matrix. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsmatrix/2143208-rowbytes?language=objc -func (m_ Matrix) RowBytes() uint { - rv := objc.Call[uint](m_, objc.Sel("rowBytes")) +// [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 number of columns in the matrix. [Full Topic] +// The buffer that stores the matrix data. [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/2143205-data?language=objc +func (m_ Matrix) Data() metal.BufferObject { + rv := objc.Call[metal.BufferObject](m_, objc.Sel("data")) return rv } -// The buffer that stores the matrix data. [Full Topic] +// The stride, in bytes, between corresponding elements of consecutive rows in the matrix. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsmatrix/2143205-data?language=objc -func (m_ Matrix) Data() metal.BufferWrapper { - rv := objc.Call[metal.BufferWrapper](m_, objc.Sel("data")) +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsmatrix/2143208-rowbytes?language=objc +func (m_ Matrix) RowBytes() uint { + rv := objc.Call[uint](m_, objc.Sel("rowBytes")) return rv } -// [Full Topic] +// The device on which the matrix will be used. [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")) +// [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 } @@ -171,11 +174,11 @@ func (m_ Matrix) DataType() DataType { return rv } -// The number of rows in the matrix. [Full Topic] +// The number of columns 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")) +// [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 } @@ -187,6 +190,14 @@ 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 ffb63f83..b2a09812 100644 --- a/macos/mps/matrix_batch_normalization.gen.go +++ b/macos/mps/matrix_batch_normalization.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package mps @@ -19,21 +19,21 @@ type _MatrixBatchNormalizationClass struct { // An interface definition for the [MatrixBatchNormalization] class. type IMatrixBatchNormalization interface { IMatrixUnaryKernel - NeuronParameterA() float64 - NeuronType() CNNNeuronType + NeuronParameterC() float64 SetNeuronTypeParameterAParameterBParameterC(neuronType CNNNeuronType, parameterA float64, parameterB float64, parameterC float64) - NeuronParameterB() float64 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) - NeuronParameterC() float64 - ComputeStatistics() bool - SetComputeStatistics(value bool) + NeuronParameterA() float64 + NeuronParameterB() float64 + NeuronType() CNNNeuronType + SourceInputFeatureChannels() uint + SetSourceInputFeatureChannels(value uint) Epsilon() float64 SetEpsilon(value float64) + ComputeStatistics() bool + SetComputeStatistics(value bool) SourceNumberOfFeatureVectors() uint SetSourceNumberOfFeatureVectors(value uint) - SourceInputFeatureChannels() uint - SetSourceInputFeatureChannels(value uint) } // A batch normalization kernel that operates on matrices. [Full Topic] @@ -49,33 +49,32 @@ func MatrixBatchNormalizationFrom(ptr unsafe.Pointer) MatrixBatchNormalization { } } -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 } -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) - rv.Autorelease() +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 } @@ -85,10 +84,6 @@ func (mc _MatrixBatchNormalizationClass) Alloc() MatrixBatchNormalization { return rv } -func MatrixBatchNormalization_Alloc() MatrixBatchNormalization { - return MatrixBatchNormalizationClass.Alloc() -} - func (mc _MatrixBatchNormalizationClass) New() MatrixBatchNormalization { rv := objc.Call[MatrixBatchNormalization](mc, objc.Sel("new")) rv.Autorelease() @@ -106,17 +101,9 @@ func (m_ MatrixBatchNormalization) Init() MatrixBatchNormalization { // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsmatrixbatchnormalization/2980736-neuronparametera?language=objc -func (m_ MatrixBatchNormalization) NeuronParameterA() float64 { - rv := objc.Call[float64](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")) +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsmatrixbatchnormalization/2980738-neuronparameterc?language=objc +func (m_ MatrixBatchNormalization) NeuronParameterC() float64 { + rv := objc.Call[float64](m_, objc.Sel("neuronParameterC")) return rv } @@ -127,14 +114,6 @@ 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() float64 { - rv := objc.Call[float64](m_, objc.Sel("neuronParameterB")) - return rv -} - // [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsmatrixbatchnormalization/2980732-encodetocommandbuffer?language=objc @@ -152,25 +131,41 @@ func (m_ MatrixBatchNormalization) EncodeToCommandBufferObjectInputMatrixMeanVec // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsmatrixbatchnormalization/2980738-neuronparameterc?language=objc -func (m_ MatrixBatchNormalization) NeuronParameterC() float64 { - rv := objc.Call[float64](m_, objc.Sel("neuronParameterC")) +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsmatrixbatchnormalization/2980736-neuronparametera?language=objc +func (m_ MatrixBatchNormalization) NeuronParameterA() float64 { + rv := objc.Call[float64](m_, objc.Sel("neuronParameterA")) return rv } // [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/2980737-neuronparameterb?language=objc +func (m_ MatrixBatchNormalization) NeuronParameterB() float64 { + rv := objc.Call[float64](m_, objc.Sel("neuronParameterB")) 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/2980739-neurontype?language=objc +func (m_ MatrixBatchNormalization) NeuronType() CNNNeuronType { + rv := objc.Call[CNNNeuronType](m_, objc.Sel("neuronType")) + 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")) + 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] @@ -190,30 +185,30 @@ func (m_ MatrixBatchNormalization) SetEpsilon(value float64) { // [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/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/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/2980730-computestatistics?language=objc +func (m_ MatrixBatchNormalization) SetComputeStatistics(value bool) { + objc.Call[objc.Void](m_, objc.Sel("setComputeStatistics:"), value) } // [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/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/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/2980742-sourcenumberoffeaturevectors?language=objc +func (m_ MatrixBatchNormalization) SetSourceNumberOfFeatureVectors(value uint) { + objc.Call[objc.Void](m_, objc.Sel("setSourceNumberOfFeatureVectors:"), value) } diff --git a/macos/mps/matrix_batch_normalization_gradient.gen.go b/macos/mps/matrix_batch_normalization_gradient.gen.go index 0f87157e..21172ab6 100644 --- a/macos/mps/matrix_batch_normalization_gradient.gen.go +++ b/macos/mps/matrix_batch_normalization_gradient.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package mps @@ -19,17 +19,17 @@ type _MatrixBatchNormalizationGradientClass struct { // An interface definition for the [MatrixBatchNormalizationGradient] class. type IMatrixBatchNormalizationGradient interface { IMatrixBinaryKernel - NeuronParameterA() float64 - NeuronType() CNNNeuronType SetNeuronTypeParameterAParameterBParameterC(neuronType CNNNeuronType, parameterA float64, parameterB float64, parameterC float64) NeuronParameterB() float64 + NeuronParameterA() float64 + NeuronParameterC() float64 + NeuronType() CNNNeuronType 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) - NeuronParameterC() float64 - Epsilon() float64 - SetEpsilon(value float64) SourceNumberOfFeatureVectors() uint SetSourceNumberOfFeatureVectors(value uint) + Epsilon() float64 + SetEpsilon(value float64) SourceInputFeatureChannels() uint SetSourceInputFeatureChannels(value uint) } @@ -65,7 +65,6 @@ func NewMatrixBatchNormalizationGradientWithDevice(device metal.PDevice) MatrixB func (m_ MatrixBatchNormalizationGradient) CopyWithZoneDevice(zone unsafe.Pointer, device metal.PDevice) MatrixBatchNormalizationGradient { po1 := objc.WrapAsProtocol("MTLDevice", device) rv := objc.Call[MatrixBatchNormalizationGradient](m_, objc.Sel("copyWithZone:device:"), zone, po1) - rv.Autorelease() return rv } @@ -83,10 +82,6 @@ func (mc _MatrixBatchNormalizationGradientClass) Alloc() MatrixBatchNormalizatio return rv } -func MatrixBatchNormalizationGradient_Alloc() MatrixBatchNormalizationGradient { - return MatrixBatchNormalizationGradientClass.Alloc() -} - func (mc _MatrixBatchNormalizationGradientClass) New() MatrixBatchNormalizationGradient { rv := objc.Call[MatrixBatchNormalizationGradient](mc, objc.Sel("new")) rv.Autorelease() @@ -104,32 +99,40 @@ func (m_ MatrixBatchNormalizationGradient) Init() MatrixBatchNormalizationGradie // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsmatrixbatchnormalizationgradient/2980749-neuronparametera?language=objc -func (m_ MatrixBatchNormalizationGradient) NeuronParameterA() float64 { - rv := objc.Call[float64](m_, objc.Sel("neuronParameterA")) +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsmatrixbatchnormalizationgradient/2980753-setneurontype?language=objc +func (m_ MatrixBatchNormalizationGradient) SetNeuronTypeParameterAParameterBParameterC(neuronType CNNNeuronType, parameterA float64, parameterB float64, parameterC float64) { + 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() float64 { + rv := objc.Call[float64](m_, objc.Sel("neuronParameterB")) return rv } // [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/2980749-neuronparametera?language=objc +func (m_ MatrixBatchNormalizationGradient) NeuronParameterA() float64 { + rv := objc.Call[float64](m_, objc.Sel("neuronParameterA")) return rv } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsmatrixbatchnormalizationgradient/2980753-setneurontype?language=objc -func (m_ MatrixBatchNormalizationGradient) SetNeuronTypeParameterAParameterBParameterC(neuronType CNNNeuronType, parameterA float64, parameterB float64, parameterC float64) { - objc.Call[objc.Void](m_, objc.Sel("setNeuronType:parameterA:parameterB:parameterC:"), neuronType, parameterA, parameterB, parameterC) +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsmatrixbatchnormalizationgradient/2980751-neuronparameterc?language=objc +func (m_ MatrixBatchNormalizationGradient) NeuronParameterC() float64 { + rv := objc.Call[float64](m_, objc.Sel("neuronParameterC")) + return rv } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsmatrixbatchnormalizationgradient/2980750-neuronparameterb?language=objc -func (m_ MatrixBatchNormalizationGradient) NeuronParameterB() float64 { - rv := objc.Call[float64](m_, objc.Sel("neuronParameterB")) +// [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 } @@ -150,12 +153,19 @@ func (m_ MatrixBatchNormalizationGradient) EncodeToCommandBufferObjectGradientMa // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsmatrixbatchnormalizationgradient/2980751-neuronparameterc?language=objc -func (m_ MatrixBatchNormalizationGradient) NeuronParameterC() float64 { - rv := objc.Call[float64](m_, objc.Sel("neuronParameterC")) +// [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/2980746-epsilon?language=objc @@ -171,21 +181,6 @@ func (m_ MatrixBatchNormalizationGradient) SetEpsilon(value float64) { 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 2febce7d..b447a6ed 100644 --- a/macos/mps/matrix_binary_kernel.gen.go +++ b/macos/mps/matrix_binary_kernel.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package mps @@ -19,16 +19,16 @@ type _MatrixBinaryKernelClass struct { // An interface definition for the [MatrixBinaryKernel] class. type IMatrixBinaryKernel interface { IKernel - ResultMatrixOrigin() metal.Origin - SetResultMatrixOrigin(value metal.Origin) - BatchStart() uint - SetBatchStart(value uint) - BatchSize() uint - SetBatchSize(value uint) 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) } // A kernel that consumes two matrices and produces one matrix. [Full Topic] @@ -49,10 +49,6 @@ func (mc _MatrixBinaryKernelClass) Alloc() MatrixBinaryKernel { return rv } -func MatrixBinaryKernel_Alloc() MatrixBinaryKernel { - return MatrixBinaryKernelClass.Alloc() -} - func (mc _MatrixBinaryKernelClass) New() MatrixBinaryKernel { rv := objc.Call[MatrixBinaryKernel](mc, objc.Sel("new")) rv.Autorelease() @@ -68,25 +64,9 @@ 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) - rv.Autorelease() return rv } @@ -99,34 +79,34 @@ func MatrixBinaryKernel_CopyWithZoneDevice(zone unsafe.Pointer, device metal.PDe return instance } -// [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")) +func (m_ MatrixBinaryKernel) InitWithDevice(device metal.PDevice) MatrixBinaryKernel { + po0 := objc.WrapAsProtocol("MTLDevice", device) + rv := objc.Call[MatrixBinaryKernel](m_, objc.Sel("initWithDevice:"), po0) return rv } -// [Full Topic] +// Initializes a new kernel object. [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/mpskernel/1618763-initwithdevice?language=objc +func NewMatrixBinaryKernelWithDevice(device metal.PDevice) MatrixBinaryKernel { + instance := MatrixBinaryKernelClass.Alloc().InitWithDevice(device) + instance.Autorelease() + return instance } // [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")) +// [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/2867152-batchstart?language=objc -func (m_ MatrixBinaryKernel) SetBatchStart(value uint) { - objc.Call[objc.Void](m_, objc.Sel("setBatchStart:"), 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] @@ -146,17 +126,17 @@ func (m_ MatrixBinaryKernel) SetBatchSize(value uint) { // [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/2867193-resultmatrixorigin?language=objc +func (m_ MatrixBinaryKernel) ResultMatrixOrigin() metal.Origin { + rv := objc.Call[metal.Origin](m_, objc.Sel("resultMatrixOrigin")) 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/2867193-resultmatrixorigin?language=objc +func (m_ MatrixBinaryKernel) SetResultMatrixOrigin(value metal.Origin) { + objc.Call[objc.Void](m_, objc.Sel("setResultMatrixOrigin:"), value) } // [Full Topic] @@ -173,3 +153,18 @@ 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 8526266f..39074ced 100644 --- a/macos/mps/matrix_copy.gen.go +++ b/macos/mps/matrix_copy.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package mps @@ -21,10 +21,12 @@ type IMatrixCopy interface { IKernel EncodeToCommandBufferCopyDescriptor(commandBuffer metal.PCommandBuffer, copyDescriptor IMatrixCopyDescriptor) EncodeToCommandBufferObjectCopyDescriptor(commandBufferObject objc.IObject, copyDescriptor IMatrixCopyDescriptor) - SourcesAreTransposed() bool + 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 CopyRows() uint - CopyColumns() uint } // A class that can perform multiple matrix copy operations. [Full Topic] @@ -60,10 +62,6 @@ func (mc _MatrixCopyClass) Alloc() MatrixCopy { return rv } -func MatrixCopy_Alloc() MatrixCopy { - return MatrixCopyClass.Alloc() -} - func (mc _MatrixCopyClass) New() MatrixCopy { rv := objc.Call[MatrixCopy](mc, objc.Sel("new")) rv.Autorelease() @@ -79,33 +77,32 @@ func (m_ MatrixCopy) Init() MatrixCopy { return rv } -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 } -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) - rv.Autorelease() +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 } @@ -127,9 +124,24 @@ func (m_ MatrixCopy) EncodeToCommandBufferObjectCopyDescriptor(commandBufferObje // [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/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, objc.Ptr(copyDescriptor), objc.Ptr(rowPermuteIndices), rowPermuteOffset, objc.Ptr(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:"), objc.Ptr(commandBufferObject), objc.Ptr(copyDescriptor), objc.Ptr(rowPermuteIndices), rowPermuteOffset, objc.Ptr(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")) return rv } @@ -143,16 +155,16 @@ func (m_ MatrixCopy) DestinationsAreTransposed() bool { // [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/2915340-sourcesaretransposed?language=objc +func (m_ MatrixCopy) SourcesAreTransposed() bool { + rv := objc.Call[bool](m_, objc.Sel("sourcesAreTransposed")) return rv } // [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/2915342-copyrows?language=objc +func (m_ MatrixCopy) CopyRows() uint { + rv := objc.Call[uint](m_, objc.Sel("copyRows")) return rv } diff --git a/macos/mps/matrix_copy_descriptor.gen.go b/macos/mps/matrix_copy_descriptor.gen.go index b7e08171..fe89c7e0 100644 --- a/macos/mps/matrix_copy_descriptor.gen.go +++ b/macos/mps/matrix_copy_descriptor.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package mps @@ -47,31 +47,31 @@ func MatrixCopyDescriptor_DescriptorWithSourceMatrixDestinationMatrixOffsets(sou return MatrixCopyDescriptorClass.DescriptorWithSourceMatrixDestinationMatrixOffsets(sourceMatrix, destinationMatrix, offsets) } -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, objc.Ptr(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 } -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, objc.Ptr(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 } @@ -81,10 +81,6 @@ func (mc _MatrixCopyDescriptorClass) Alloc() MatrixCopyDescriptor { return rv } -func MatrixCopyDescriptor_Alloc() MatrixCopyDescriptor { - return MatrixCopyDescriptorClass.Alloc() -} - func (mc _MatrixCopyDescriptorClass) New() MatrixCopyDescriptor { rv := objc.Call[MatrixCopyDescriptor](mc, objc.Sel("new")) rv.Autorelease() diff --git a/macos/mps/matrix_copy_to_image.gen.go b/macos/mps/matrix_copy_to_image.gen.go index 4237dd41..f1fc7e0d 100644 --- a/macos/mps/matrix_copy_to_image.gen.go +++ b/macos/mps/matrix_copy_to_image.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package mps @@ -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] @@ -64,10 +64,6 @@ func (mc _MatrixCopyToImageClass) Alloc() MatrixCopyToImage { return rv } -func MatrixCopyToImage_Alloc() MatrixCopyToImage { - return MatrixCopyToImageClass.Alloc() -} - func (mc _MatrixCopyToImageClass) New() MatrixCopyToImage { rv := objc.Call[MatrixCopyToImage](mc, objc.Sel("new")) rv.Autorelease() @@ -83,33 +79,32 @@ func (m_ MatrixCopyToImage) Init() MatrixCopyToImage { return rv } -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 } -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) - rv.Autorelease() +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 } @@ -144,14 +139,6 @@ func (m_ MatrixCopyToImage) EncodeToCommandBufferObjectSourceMatrixDestinationIm objc.Call[objc.Void](m_, objc.Sel("encodeToCommandBuffer:sourceMatrix:destinationImage:"), objc.Ptr(commandBufferObject), objc.Ptr(sourceMatrix), objc.Ptr(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 @@ -181,3 +168,11 @@ 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 e22e1ed7..b7a8c3f1 100644 --- a/macos/mps/matrix_decomposition_cholesky.gen.go +++ b/macos/mps/matrix_decomposition_cholesky.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package mps @@ -56,10 +56,6 @@ func (mc _MatrixDecompositionCholeskyClass) Alloc() MatrixDecompositionCholesky return rv } -func MatrixDecompositionCholesky_Alloc() MatrixDecompositionCholesky { - return MatrixDecompositionCholeskyClass.Alloc() -} - func (mc _MatrixDecompositionCholeskyClass) New() MatrixDecompositionCholesky { rv := objc.Call[MatrixDecompositionCholesky](mc, objc.Sel("new")) rv.Autorelease() @@ -75,33 +71,32 @@ func (m_ MatrixDecompositionCholesky) Init() MatrixDecompositionCholesky { return rv } -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 } -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) - rv.Autorelease() +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 } diff --git a/macos/mps/matrix_decomposition_lu.gen.go b/macos/mps/matrix_decomposition_lu.gen.go index a7fc3476..b13c9d98 100644 --- a/macos/mps/matrix_decomposition_lu.gen.go +++ b/macos/mps/matrix_decomposition_lu.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package mps @@ -56,10 +56,6 @@ func (mc _MatrixDecompositionLUClass) Alloc() MatrixDecompositionLU { return rv } -func MatrixDecompositionLU_Alloc() MatrixDecompositionLU { - return MatrixDecompositionLUClass.Alloc() -} - func (mc _MatrixDecompositionLUClass) New() MatrixDecompositionLU { rv := objc.Call[MatrixDecompositionLU](mc, objc.Sel("new")) rv.Autorelease() @@ -75,33 +71,32 @@ func (m_ MatrixDecompositionLU) Init() MatrixDecompositionLU { return rv } -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 } -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) - rv.Autorelease() +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 } diff --git a/macos/mps/matrix_descriptor.gen.go b/macos/mps/matrix_descriptor.gen.go index 308af12b..31c0a412 100644 --- a/macos/mps/matrix_descriptor.gen.go +++ b/macos/mps/matrix_descriptor.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package mps @@ -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) 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) +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) return rv } -// Creates a matrix descriptor with the specified dimensions and data type. [Full Topic] +// [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) +// [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) } func (mc _MatrixDescriptorClass) MatrixDescriptorWithRowsColumnsMatricesRowBytesMatrixBytesDataType(rows uint, columns uint, matrices uint, rowBytes uint, matrixBytes uint, dataType DataType) MatrixDescriptor { @@ -67,13 +67,21 @@ func MatrixDescriptor_MatrixDescriptorWithRowsColumnsMatricesRowBytesMatrixBytes return MatrixDescriptorClass.MatrixDescriptorWithRowsColumnsMatricesRowBytesMatrixBytesDataType(rows, columns, matrices, rowBytes, matrixBytes, dataType) } -func (mc _MatrixDescriptorClass) Alloc() MatrixDescriptor { - rv := objc.Call[MatrixDescriptor](mc, objc.Sel("alloc")) +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 } -func MatrixDescriptor_Alloc() MatrixDescriptor { - return MatrixDescriptorClass.Alloc() +// 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 } func (mc _MatrixDescriptorClass) New() MatrixDescriptor { @@ -91,21 +99,6 @@ func (m_ MatrixDescriptor) Init() MatrixDescriptor { return rv } -// 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 -func (mc _MatrixDescriptorClass) RowBytesFromColumnsDataType(columns uint, dataType DataType) uint { - rv := objc.Call[uint](mc, objc.Sel("rowBytesFromColumns:dataType:"), columns, dataType) - return rv -} - -// 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 -func MatrixDescriptor_RowBytesFromColumnsDataType(columns uint, dataType DataType) uint { - return MatrixDescriptorClass.RowBytesFromColumnsDataType(columns, dataType) -} - // [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsmatrixdescriptor/2873394-rowbytesforcolumns?language=objc @@ -121,6 +114,21 @@ func MatrixDescriptor_RowBytesForColumnsDataType(columns uint, dataType DataType 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 +func (mc _MatrixDescriptorClass) RowBytesFromColumnsDataType(columns uint, dataType DataType) uint { + rv := objc.Call[uint](mc, objc.Sel("rowBytesFromColumns:dataType:"), columns, dataType) + return rv +} + +// 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 +func MatrixDescriptor_RowBytesFromColumnsDataType(columns uint, dataType DataType) uint { + return MatrixDescriptorClass.RowBytesFromColumnsDataType(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 @@ -136,36 +144,14 @@ func (m_ MatrixDescriptor) SetRowBytes(value uint) { objc.Call[objc.Void](m_, objc.Sel("setRowBytes:"), value) } -// 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) 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] // -// [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")) +// [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 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 @@ -181,14 +167,21 @@ func (m_ MatrixDescriptor) SetRows(value uint) { objc.Call[objc.Void](m_, objc.Sel("setRows:"), 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) +} + // [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsmatrixdescriptor/2873387-matrixbytes?language=objc @@ -196,3 +189,18 @@ 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 a42ab163..e80d0503 100644 --- a/macos/mps/matrix_find_top_k.gen.go +++ b/macos/mps/matrix_find_top_k.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package mps @@ -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) - SourceRows() uint - SetSourceRows(value uint) - SourceColumns() uint - SetSourceColumns(value uint) NumberOfTopKValues() uint SetNumberOfTopKValues(value uint) IndexOffset() uint SetIndexOffset(value uint) + SourceRows() uint + SetSourceRows(value uint) + SourceColumns() uint + SetSourceColumns(value uint) } // A kernel for computing the top-K values and their corresponding indices in a matrix. [Full Topic] @@ -62,7 +62,6 @@ func NewMatrixFindTopKWithDeviceNumberOfTopKValues(device metal.PDevice, numberO func (m_ MatrixFindTopK) CopyWithZoneDevice(zone unsafe.Pointer, device metal.PDevice) MatrixFindTopK { po1 := objc.WrapAsProtocol("MTLDevice", device) rv := objc.Call[MatrixFindTopK](m_, objc.Sel("copyWithZone:device:"), zone, po1) - rv.Autorelease() return rv } @@ -80,10 +79,6 @@ func (mc _MatrixFindTopKClass) Alloc() MatrixFindTopK { return rv } -func MatrixFindTopK_Alloc() MatrixFindTopK { - return MatrixFindTopKClass.Alloc() -} - func (mc _MatrixFindTopKClass) New() MatrixFindTopK { rv := objc.Call[MatrixFindTopK](mc, objc.Sel("new")) rv.Autorelease() @@ -131,60 +126,60 @@ func (m_ MatrixFindTopK) EncodeToCommandBufferObjectInputMatrixResultIndexMatrix // [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) } // [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) } diff --git a/macos/mps/matrix_fully_connected.gen.go b/macos/mps/matrix_fully_connected.gen.go index ceff9b35..f90f5a03 100644 --- a/macos/mps/matrix_fully_connected.gen.go +++ b/macos/mps/matrix_fully_connected.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package mps @@ -19,21 +19,21 @@ type _MatrixFullyConnectedClass struct { // An interface definition for the [MatrixFullyConnected] class. type IMatrixFullyConnected interface { IMatrixBinaryKernel - NeuronParameterA() float64 - NeuronType() CNNNeuronType SetNeuronTypeParameterAParameterBParameterC(neuronType CNNNeuronType, parameterA float64, parameterB float64, parameterC float64) + NeuronParameterC() float64 NeuronParameterB() float64 + NeuronParameterA() float64 + NeuronType() CNNNeuronType 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() float64 - 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,33 +49,32 @@ func MatrixFullyConnectedFrom(ptr unsafe.Pointer) MatrixFullyConnected { } } -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 } -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) - rv.Autorelease() +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 } @@ -85,10 +84,6 @@ func (mc _MatrixFullyConnectedClass) Alloc() MatrixFullyConnected { return rv } -func MatrixFullyConnected_Alloc() MatrixFullyConnected { - return MatrixFullyConnectedClass.Alloc() -} - func (mc _MatrixFullyConnectedClass) New() MatrixFullyConnected { rv := objc.Call[MatrixFullyConnected](mc, objc.Sel("new")) rv.Autorelease() @@ -106,27 +101,19 @@ func (m_ MatrixFullyConnected) Init() MatrixFullyConnected { // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsmatrixfullyconnected/2935602-neuronparametera?language=objc -func (m_ MatrixFullyConnected) NeuronParameterA() float64 { - rv := objc.Call[float64](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 float64, parameterB float64, parameterC float64) { + 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/2935594-neuronparameterc?language=objc +func (m_ MatrixFullyConnected) NeuronParameterC() float64 { + rv := objc.Call[float64](m_, objc.Sel("neuronParameterC")) return rv } -// [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsmatrixfullyconnected/2935593-setneurontype?language=objc -func (m_ MatrixFullyConnected) SetNeuronTypeParameterAParameterBParameterC(neuronType CNNNeuronType, parameterA float64, parameterB float64, parameterC float64) { - 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/2935591-neuronparameterb?language=objc @@ -137,40 +124,33 @@ func (m_ MatrixFullyConnected) NeuronParameterB() float64 { // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsmatrixfullyconnected/2935596-encodetocommandbuffer?language=objc -func (m_ MatrixFullyConnected) EncodeToCommandBufferInputMatrixWeightMatrixBiasVectorResultMatrix(commandBuffer metal.PCommandBuffer, inputMatrix IMatrix, weightMatrix IMatrix, biasVector IVector, resultMatrix IMatrix) { - po0 := objc.WrapAsProtocol("MTLCommandBuffer", commandBuffer) - objc.Call[objc.Void](m_, objc.Sel("encodeToCommandBuffer:inputMatrix:weightMatrix:biasVector:resultMatrix:"), po0, objc.Ptr(inputMatrix), objc.Ptr(weightMatrix), objc.Ptr(biasVector), objc.Ptr(resultMatrix)) -} - -// [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsmatrixfullyconnected/2935596-encodetocommandbuffer?language=objc -func (m_ MatrixFullyConnected) EncodeToCommandBufferObjectInputMatrixWeightMatrixBiasVectorResultMatrix(commandBufferObject objc.IObject, inputMatrix IMatrix, weightMatrix IMatrix, biasVector IVector, resultMatrix IMatrix) { - objc.Call[objc.Void](m_, objc.Sel("encodeToCommandBuffer:inputMatrix:weightMatrix:biasVector:resultMatrix:"), objc.Ptr(commandBufferObject), objc.Ptr(inputMatrix), objc.Ptr(weightMatrix), objc.Ptr(biasVector), objc.Ptr(resultMatrix)) +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsmatrixfullyconnected/2935602-neuronparametera?language=objc +func (m_ MatrixFullyConnected) NeuronParameterA() float64 { + rv := objc.Call[float64](m_, objc.Sel("neuronParameterA")) + return rv } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsmatrixfullyconnected/2935594-neuronparameterc?language=objc -func (m_ MatrixFullyConnected) NeuronParameterC() float64 { - rv := objc.Call[float64](m_, objc.Sel("neuronParameterC")) +// [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/2935592-sourceoutputfeaturechannels?language=objc -func (m_ MatrixFullyConnected) SourceOutputFeatureChannels() uint { - rv := objc.Call[uint](m_, objc.Sel("sourceOutputFeatureChannels")) - return rv +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsmatrixfullyconnected/2935596-encodetocommandbuffer?language=objc +func (m_ MatrixFullyConnected) EncodeToCommandBufferInputMatrixWeightMatrixBiasVectorResultMatrix(commandBuffer metal.PCommandBuffer, inputMatrix IMatrix, weightMatrix IMatrix, biasVector IVector, resultMatrix IMatrix) { + po0 := objc.WrapAsProtocol("MTLCommandBuffer", commandBuffer) + objc.Call[objc.Void](m_, objc.Sel("encodeToCommandBuffer:inputMatrix:weightMatrix:biasVector:resultMatrix:"), po0, objc.Ptr(inputMatrix), objc.Ptr(weightMatrix), objc.Ptr(biasVector), objc.Ptr(resultMatrix)) } // [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]: https://developer.apple.com/documentation/metalperformanceshaders/mpsmatrixfullyconnected/2935596-encodetocommandbuffer?language=objc +func (m_ MatrixFullyConnected) EncodeToCommandBufferObjectInputMatrixWeightMatrixBiasVectorResultMatrix(commandBufferObject objc.IObject, inputMatrix IMatrix, weightMatrix IMatrix, biasVector IVector, resultMatrix IMatrix) { + objc.Call[objc.Void](m_, objc.Sel("encodeToCommandBuffer:inputMatrix:weightMatrix:biasVector:resultMatrix:"), objc.Ptr(commandBufferObject), objc.Ptr(inputMatrix), objc.Ptr(weightMatrix), objc.Ptr(biasVector), objc.Ptr(resultMatrix)) } // [Full Topic] @@ -217,3 +197,18 @@ 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 248ee691..35262288 100644 --- a/macos/mps/matrix_fully_connected_gradient.gen.go +++ b/macos/mps/matrix_fully_connected_gradient.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package mps @@ -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] @@ -64,7 +64,6 @@ func NewMatrixFullyConnectedGradientWithDevice(device metal.PDevice) MatrixFully func (m_ MatrixFullyConnectedGradient) CopyWithZoneDevice(zone unsafe.Pointer, device metal.PDevice) MatrixFullyConnectedGradient { po1 := objc.WrapAsProtocol("MTLDevice", device) rv := objc.Call[MatrixFullyConnectedGradient](m_, objc.Sel("copyWithZone:device:"), zone, po1) - rv.Autorelease() return rv } @@ -82,10 +81,6 @@ func (mc _MatrixFullyConnectedGradientClass) Alloc() MatrixFullyConnectedGradien return rv } -func MatrixFullyConnectedGradient_Alloc() MatrixFullyConnectedGradient { - return MatrixFullyConnectedGradientClass.Alloc() -} - func (mc _MatrixFullyConnectedGradientClass) New() MatrixFullyConnectedGradient { rv := objc.Call[MatrixFullyConnectedGradient](mc, objc.Sel("new")) rv.Autorelease() @@ -133,60 +128,60 @@ func (m_ MatrixFullyConnectedGradient) EncodeGradientForDataToCommandBufferObjec // [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/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/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/2966669-sourceinputfeaturechannels?language=objc +func (m_ MatrixFullyConnectedGradient) SetSourceInputFeatureChannels(value uint) { + objc.Call[objc.Void](m_, objc.Sel("setSourceInputFeatureChannels:"), 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/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/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/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/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/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/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/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/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/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/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/2966663-alpha?language=objc +func (m_ MatrixFullyConnectedGradient) SetAlpha(value float64) { + objc.Call[objc.Void](m_, objc.Sel("setAlpha:"), value) } diff --git a/macos/mps/matrix_log_soft_max.gen.go b/macos/mps/matrix_log_soft_max.gen.go index 33ee084b..0e6b6483 100644 --- a/macos/mps/matrix_log_soft_max.gen.go +++ b/macos/mps/matrix_log_soft_max.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package mps @@ -39,10 +39,6 @@ func (mc _MatrixLogSoftMaxClass) Alloc() MatrixLogSoftMax { return rv } -func MatrixLogSoftMax_Alloc() MatrixLogSoftMax { - return MatrixLogSoftMaxClass.Alloc() -} - func (mc _MatrixLogSoftMaxClass) New() MatrixLogSoftMax { rv := objc.Call[MatrixLogSoftMax](mc, objc.Sel("new")) rv.Autorelease() @@ -76,7 +72,6 @@ func NewMatrixLogSoftMaxWithDevice(device metal.PDevice) MatrixLogSoftMax { func (m_ MatrixLogSoftMax) CopyWithZoneDevice(zone unsafe.Pointer, device metal.PDevice) MatrixLogSoftMax { po1 := objc.WrapAsProtocol("MTLDevice", device) rv := objc.Call[MatrixLogSoftMax](m_, objc.Sel("copyWithZone:device:"), zone, po1) - rv.Autorelease() return rv } diff --git a/macos/mps/matrix_log_soft_max_gradient.gen.go b/macos/mps/matrix_log_soft_max_gradient.gen.go index bff2d178..5fa8c5c6 100644 --- a/macos/mps/matrix_log_soft_max_gradient.gen.go +++ b/macos/mps/matrix_log_soft_max_gradient.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package mps @@ -39,10 +39,6 @@ func (mc _MatrixLogSoftMaxGradientClass) Alloc() MatrixLogSoftMaxGradient { return rv } -func MatrixLogSoftMaxGradient_Alloc() MatrixLogSoftMaxGradient { - return MatrixLogSoftMaxGradientClass.Alloc() -} - func (mc _MatrixLogSoftMaxGradientClass) New() MatrixLogSoftMaxGradient { rv := objc.Call[MatrixLogSoftMaxGradient](mc, objc.Sel("new")) rv.Autorelease() @@ -58,33 +54,32 @@ func (m_ MatrixLogSoftMaxGradient) Init() MatrixLogSoftMaxGradient { return rv } -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 } -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) - rv.Autorelease() +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 } diff --git a/macos/mps/matrix_multiplication.gen.go b/macos/mps/matrix_multiplication.gen.go index a4a76585..e9d8721c 100644 --- a/macos/mps/matrix_multiplication.gen.go +++ b/macos/mps/matrix_multiplication.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package mps @@ -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) - BatchSize() uint - SetBatchSize(value uint) LeftMatrixOrigin() metal.Origin SetLeftMatrixOrigin(value metal.Origin) + BatchSize() uint + SetBatchSize(value uint) + ResultMatrixOrigin() metal.Origin + SetResultMatrixOrigin(value metal.Origin) } // A matrix multiplication kernel. [Full Topic] @@ -46,6 +46,21 @@ 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) @@ -66,10 +81,6 @@ func (mc _MatrixMultiplicationClass) Alloc() MatrixMultiplication { return rv } -func MatrixMultiplication_Alloc() MatrixMultiplication { - return MatrixMultiplicationClass.Alloc() -} - func (mc _MatrixMultiplicationClass) New() MatrixMultiplication { rv := objc.Call[MatrixMultiplication](mc, objc.Sel("new")) rv.Autorelease() @@ -85,33 +96,32 @@ func (m_ MatrixMultiplication) Init() MatrixMultiplication { return rv } -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 } -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) - rv.Autorelease() +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 } @@ -131,21 +141,6 @@ func (m_ MatrixMultiplication) EncodeToCommandBufferObjectLeftMatrixRightMatrixR objc.Call[objc.Void](m_, objc.Sel("encodeToCommandBuffer:leftMatrix:rightMatrix:resultMatrix:"), objc.Ptr(commandBufferObject), objc.Ptr(leftMatrix), objc.Ptr(rightMatrix), objc.Ptr(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 @@ -176,6 +171,21 @@ 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 @@ -191,17 +201,17 @@ func (m_ MatrixMultiplication) SetBatchSize(value uint) { objc.Call[objc.Void](m_, objc.Sel("setBatchSize:"), value) } -// The origin of the left input matrix. [Full Topic] +// The origin of the result 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")) +// [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 left input matrix. [Full Topic] +// The origin of the result 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]: 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) } diff --git a/macos/mps/matrix_neuron.gen.go b/macos/mps/matrix_neuron.gen.go index 45afc786..aa980454 100644 --- a/macos/mps/matrix_neuron.gen.go +++ b/macos/mps/matrix_neuron.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package mps @@ -19,18 +19,18 @@ type _MatrixNeuronClass struct { // An interface definition for the [MatrixNeuron] class. type IMatrixNeuron interface { IMatrixUnaryKernel - NeuronParameterA() float64 - NeuronType() CNNNeuronType - SetNeuronTypeParameterAParameterBParameterC(neuronType CNNNeuronType, parameterA float64, parameterB float64, parameterC float64) - NeuronParameterB() float64 EncodeToCommandBufferInputMatrixBiasVectorResultMatrix(commandBuffer metal.PCommandBuffer, inputMatrix IMatrix, biasVector IVector, resultMatrix IMatrix) EncodeToCommandBufferObjectInputMatrixBiasVectorResultMatrix(commandBufferObject objc.IObject, inputMatrix IMatrix, biasVector IVector, resultMatrix IMatrix) - SetNeuronToPReLUWithParametersA(A []byte) NeuronParameterC() float64 - Alpha() float64 - SetAlpha(value float64) + SetNeuronTypeParameterAParameterBParameterC(neuronType CNNNeuronType, parameterA float64, parameterB float64, parameterC float64) + NeuronParameterA() float64 + NeuronParameterB() float64 + NeuronType() CNNNeuronType + SetNeuronToPReLUWithParametersA(A []byte) SourceNumberOfFeatureVectors() uint SetSourceNumberOfFeatureVectors(value uint) + Alpha() float64 + SetAlpha(value float64) SourceInputFeatureChannels() uint SetSourceInputFeatureChannels(value uint) } @@ -66,7 +66,6 @@ func NewMatrixNeuronWithDevice(device metal.PDevice) MatrixNeuron { func (m_ MatrixNeuron) CopyWithZoneDevice(zone unsafe.Pointer, device metal.PDevice) MatrixNeuron { po1 := objc.WrapAsProtocol("MTLDevice", device) rv := objc.Call[MatrixNeuron](m_, objc.Sel("copyWithZone:device:"), zone, po1) - rv.Autorelease() return rv } @@ -84,10 +83,6 @@ func (mc _MatrixNeuronClass) Alloc() MatrixNeuron { return rv } -func MatrixNeuron_Alloc() MatrixNeuron { - return MatrixNeuronClass.Alloc() -} - func (mc _MatrixNeuronClass) New() MatrixNeuron { rv := objc.Call[MatrixNeuron](mc, objc.Sel("new")) rv.Autorelease() @@ -105,17 +100,24 @@ func (m_ MatrixNeuron) Init() MatrixNeuron { // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsmatrixneuron/2935583-neuronparametera?language=objc -func (m_ MatrixNeuron) NeuronParameterA() float64 { - rv := objc.Call[float64](m_, objc.Sel("neuronParameterA")) - 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, objc.Ptr(inputMatrix), objc.Ptr(biasVector), objc.Ptr(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")) +// [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:"), objc.Ptr(commandBufferObject), objc.Ptr(inputMatrix), objc.Ptr(biasVector), objc.Ptr(resultMatrix)) +} + +// [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsmatrixneuron/2935598-neuronparameterc?language=objc +func (m_ MatrixNeuron) NeuronParameterC() float64 { + rv := objc.Call[float64](m_, objc.Sel("neuronParameterC")) return rv } @@ -128,25 +130,26 @@ func (m_ MatrixNeuron) SetNeuronTypeParameterAParameterBParameterC(neuronType CN // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsmatrixneuron/2935585-neuronparameterb?language=objc -func (m_ MatrixNeuron) NeuronParameterB() float64 { - rv := objc.Call[float64](m_, objc.Sel("neuronParameterB")) +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsmatrixneuron/2935583-neuronparametera?language=objc +func (m_ MatrixNeuron) NeuronParameterA() float64 { + rv := objc.Call[float64](m_, objc.Sel("neuronParameterA")) return rv } // [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, objc.Ptr(inputMatrix), objc.Ptr(biasVector), objc.Ptr(resultMatrix)) +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsmatrixneuron/2935585-neuronparameterb?language=objc +func (m_ MatrixNeuron) NeuronParameterB() float64 { + rv := objc.Call[float64](m_, objc.Sel("neuronParameterB")) + return rv } // [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:"), objc.Ptr(commandBufferObject), objc.Ptr(inputMatrix), objc.Ptr(biasVector), objc.Ptr(resultMatrix)) +// [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] @@ -158,12 +161,19 @@ func (m_ MatrixNeuron) SetNeuronToPReLUWithParametersA(A []byte) { // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsmatrixneuron/2935598-neuronparameterc?language=objc -func (m_ MatrixNeuron) NeuronParameterC() float64 { - rv := objc.Call[float64](m_, objc.Sel("neuronParameterC")) +// [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/2935605-alpha?language=objc @@ -179,21 +189,6 @@ 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 155cc573..77c8f83c 100644 --- a/macos/mps/matrix_neuron_gradient.gen.go +++ b/macos/mps/matrix_neuron_gradient.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package mps @@ -19,18 +19,18 @@ type _MatrixNeuronGradientClass struct { // An interface definition for the [MatrixNeuronGradient] class. type IMatrixNeuronGradient interface { IMatrixBinaryKernel - NeuronParameterA() float64 - NeuronType() CNNNeuronType - SetNeuronTypeParameterAParameterBParameterC(neuronType CNNNeuronType, parameterA float64, parameterB float64, parameterC float64) - NeuronParameterB() float64 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() float64 + SetNeuronTypeParameterAParameterBParameterC(neuronType CNNNeuronType, parameterA float64, parameterB float64, parameterC float64) + NeuronParameterA() float64 + NeuronType() CNNNeuronType NeuronParameterC() float64 - Alpha() float64 - SetAlpha(value float64) SourceNumberOfFeatureVectors() uint SetSourceNumberOfFeatureVectors(value uint) + Alpha() float64 + SetAlpha(value float64) SourceInputFeatureChannels() uint SetSourceInputFeatureChannels(value uint) } @@ -48,33 +48,32 @@ func MatrixNeuronGradientFrom(ptr unsafe.Pointer) MatrixNeuronGradient { } } -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 } -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) - rv.Autorelease() +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 } @@ -84,10 +83,6 @@ func (mc _MatrixNeuronGradientClass) Alloc() MatrixNeuronGradient { return rv } -func MatrixNeuronGradient_Alloc() MatrixNeuronGradient { - return MatrixNeuronGradientClass.Alloc() -} - func (mc _MatrixNeuronGradientClass) New() MatrixNeuronGradient { rv := objc.Call[MatrixNeuronGradient](mc, objc.Sel("new")) rv.Autorelease() @@ -105,25 +100,24 @@ func (m_ MatrixNeuronGradient) Init() MatrixNeuronGradient { // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsmatrixneurongradient/2966678-neuronparametera?language=objc -func (m_ MatrixNeuronGradient) NeuronParameterA() float64 { - rv := objc.Call[float64](m_, objc.Sel("neuronParameterA")) - return rv +// [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, objc.Ptr(gradientMatrix), objc.Ptr(inputMatrix), objc.Ptr(biasVector), objc.Ptr(resultGradientForDataMatrix), objc.Ptr(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/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:"), objc.Ptr(commandBufferObject), objc.Ptr(gradientMatrix), objc.Ptr(inputMatrix), objc.Ptr(biasVector), objc.Ptr(resultGradientForDataMatrix), objc.Ptr(resultGradientForBiasVector)) } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsmatrixneurongradient/2966683-setneurontype?language=objc -func (m_ MatrixNeuronGradient) SetNeuronTypeParameterAParameterBParameterC(neuronType CNNNeuronType, parameterA float64, parameterB float64, parameterC float64) { - objc.Call[objc.Void](m_, objc.Sel("setNeuronType:parameterA:parameterB:parameterC:"), neuronType, parameterA, parameterB, parameterC) +// [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] @@ -136,24 +130,25 @@ func (m_ MatrixNeuronGradient) NeuronParameterB() float64 { // [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, objc.Ptr(gradientMatrix), objc.Ptr(inputMatrix), objc.Ptr(biasVector), objc.Ptr(resultGradientForDataMatrix), objc.Ptr(resultGradientForBiasVector)) +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsmatrixneurongradient/2966683-setneurontype?language=objc +func (m_ MatrixNeuronGradient) SetNeuronTypeParameterAParameterBParameterC(neuronType CNNNeuronType, parameterA float64, parameterB float64, parameterC float64) { + 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/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:"), objc.Ptr(commandBufferObject), objc.Ptr(gradientMatrix), objc.Ptr(inputMatrix), objc.Ptr(biasVector), objc.Ptr(resultGradientForDataMatrix), objc.Ptr(resultGradientForBiasVector)) +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsmatrixneurongradient/2966678-neuronparametera?language=objc +func (m_ MatrixNeuronGradient) NeuronParameterA() float64 { + rv := objc.Call[float64](m_, objc.Sel("neuronParameterA")) + 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/2966681-neurontype?language=objc +func (m_ MatrixNeuronGradient) NeuronType() CNNNeuronType { + rv := objc.Call[CNNNeuronType](m_, objc.Sel("neuronType")) + return rv } // [Full Topic] @@ -166,32 +161,32 @@ func (m_ MatrixNeuronGradient) NeuronParameterC() float64 { // [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] // -// [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] diff --git a/macos/mps/matrix_random.gen.go b/macos/mps/matrix_random.gen.go index 1ef8c5b2..db5ccd6e 100644 --- a/macos/mps/matrix_random.gen.go +++ b/macos/mps/matrix_random.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package mps @@ -21,10 +21,12 @@ type IMatrixRandom interface { IKernel EncodeToCommandBufferDestinationMatrix(commandBuffer metal.PCommandBuffer, destinationMatrix IMatrix) EncodeToCommandBufferObjectDestinationMatrix(commandBufferObject objc.IObject, destinationMatrix IMatrix) - DistributionType() MatrixRandomDistribution - DestinationDataType() DataType + EncodeToCommandBufferDestinationVector(commandBuffer metal.PCommandBuffer, destinationVector IVector) + EncodeToCommandBufferObjectDestinationVector(commandBufferObject objc.IObject, destinationVector IVector) BatchStart() uint SetBatchStart(value uint) + DistributionType() MatrixRandomDistribution + DestinationDataType() DataType BatchSize() uint SetBatchSize(value uint) } @@ -47,10 +49,6 @@ func (mc _MatrixRandomClass) Alloc() MatrixRandom { return rv } -func MatrixRandom_Alloc() MatrixRandom { - return MatrixRandomClass.Alloc() -} - func (mc _MatrixRandomClass) New() MatrixRandom { rv := objc.Call[MatrixRandom](mc, objc.Sel("new")) rv.Autorelease() @@ -66,33 +64,32 @@ func (m_ MatrixRandom) Init() MatrixRandom { return rv } -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 } -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) - rv.Autorelease() +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 } @@ -114,18 +111,17 @@ func (m_ MatrixRandom) EncodeToCommandBufferObjectDestinationMatrix(commandBuffe // [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]: 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, objc.Ptr(destinationVector)) } // [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]: 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:"), objc.Ptr(commandBufferObject), objc.Ptr(destinationVector)) } // [Full Topic] @@ -143,6 +139,22 @@ 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 27939901..1f3183c9 100644 --- a/macos/mps/matrix_random_distribution_descriptor.gen.go +++ b/macos/mps/matrix_random_distribution_descriptor.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package mps @@ -18,16 +18,16 @@ type _MatrixRandomDistributionDescriptorClass struct { // An interface definition for the [MatrixRandomDistributionDescriptor] class. type IMatrixRandomDistributionDescriptor interface { objc.IObject + Maximum() float64 + SetMaximum(value float64) DistributionType() MatrixRandomDistribution SetDistributionType(value MatrixRandomDistribution) + Mean() float64 + SetMean(value float64) Minimum() float64 SetMinimum(value float64) StandardDeviation() float64 SetStandardDeviation(value float64) - Maximum() float64 - SetMaximum(value float64) - Mean() float64 - SetMean(value float64) } // [Full Topic] @@ -48,10 +48,6 @@ func (mc _MatrixRandomDistributionDescriptorClass) Alloc() MatrixRandomDistribut return rv } -func MatrixRandomDistributionDescriptor_Alloc() MatrixRandomDistributionDescriptor { - return MatrixRandomDistributionDescriptorClass.Alloc() -} - func (mc _MatrixRandomDistributionDescriptorClass) New() MatrixRandomDistributionDescriptor { rv := objc.Call[MatrixRandomDistributionDescriptor](mc, objc.Sel("new")) rv.Autorelease() @@ -67,6 +63,21 @@ 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 float64, standardDeviation float64) 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 float64, standardDeviation float64) MatrixRandomDistributionDescriptor { + return MatrixRandomDistributionDescriptorClass.NormalDistributionDescriptorWithMeanStandardDeviation(mean, standardDeviation) +} + // [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsmatrixrandomdistributiondescriptor/3242862-uniformdistributiondescriptorwit?language=objc @@ -84,17 +95,17 @@ func MatrixRandomDistributionDescriptor_UniformDistributionDescriptorWithMinimum // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsmatrixrandomdistributiondescriptor/3547979-normaldistributiondescriptorwith?language=objc -func (mc _MatrixRandomDistributionDescriptorClass) NormalDistributionDescriptorWithMeanStandardDeviation(mean float64, standardDeviation float64) MatrixRandomDistributionDescriptor { - rv := objc.Call[MatrixRandomDistributionDescriptor](mc, objc.Sel("normalDistributionDescriptorWithMean:standardDeviation:"), mean, standardDeviation) +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsmatrixrandomdistributiondescriptor/3547980-normaldistributiondescriptorwith?language=objc +func (mc _MatrixRandomDistributionDescriptorClass) NormalDistributionDescriptorWithMeanStandardDeviationMinimumMaximum(mean float64, standardDeviation float64, minimum float64, maximum float64) MatrixRandomDistributionDescriptor { + rv := objc.Call[MatrixRandomDistributionDescriptor](mc, objc.Sel("normalDistributionDescriptorWithMean:standardDeviation:minimum:maximum:"), mean, standardDeviation, minimum, maximum) return rv } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsmatrixrandomdistributiondescriptor/3547979-normaldistributiondescriptorwith?language=objc -func MatrixRandomDistributionDescriptor_NormalDistributionDescriptorWithMeanStandardDeviation(mean float64, standardDeviation float64) MatrixRandomDistributionDescriptor { - return MatrixRandomDistributionDescriptorClass.NormalDistributionDescriptorWithMeanStandardDeviation(mean, standardDeviation) +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsmatrixrandomdistributiondescriptor/3547980-normaldistributiondescriptorwith?language=objc +func MatrixRandomDistributionDescriptor_NormalDistributionDescriptorWithMeanStandardDeviationMinimumMaximum(mean float64, standardDeviation float64, minimum float64, maximum float64) MatrixRandomDistributionDescriptor { + return MatrixRandomDistributionDescriptorClass.NormalDistributionDescriptorWithMeanStandardDeviationMinimumMaximum(mean, standardDeviation, minimum, maximum) } // [Full Topic] @@ -114,75 +125,75 @@ func MatrixRandomDistributionDescriptor_DefaultDistributionDescriptor() MatrixRa // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsmatrixrandomdistributiondescriptor/3242857-distributiontype?language=objc -func (m_ MatrixRandomDistributionDescriptor) DistributionType() MatrixRandomDistribution { - rv := objc.Call[MatrixRandomDistribution](m_, objc.Sel("distributionType")) +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsmatrixrandomdistributiondescriptor/3242858-maximum?language=objc +func (m_ MatrixRandomDistributionDescriptor) Maximum() float64 { + rv := objc.Call[float64](m_, objc.Sel("maximum")) return rv } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsmatrixrandomdistributiondescriptor/3242857-distributiontype?language=objc -func (m_ MatrixRandomDistributionDescriptor) SetDistributionType(value MatrixRandomDistribution) { - objc.Call[objc.Void](m_, objc.Sel("setDistributionType:"), value) +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsmatrixrandomdistributiondescriptor/3242858-maximum?language=objc +func (m_ MatrixRandomDistributionDescriptor) SetMaximum(value float64) { + objc.Call[objc.Void](m_, objc.Sel("setMaximum:"), value) } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsmatrixrandomdistributiondescriptor/3242860-minimum?language=objc -func (m_ MatrixRandomDistributionDescriptor) Minimum() float64 { - rv := objc.Call[float64](m_, objc.Sel("minimum")) +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsmatrixrandomdistributiondescriptor/3242857-distributiontype?language=objc +func (m_ MatrixRandomDistributionDescriptor) DistributionType() MatrixRandomDistribution { + rv := objc.Call[MatrixRandomDistribution](m_, objc.Sel("distributionType")) return rv } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsmatrixrandomdistributiondescriptor/3242860-minimum?language=objc -func (m_ MatrixRandomDistributionDescriptor) SetMinimum(value float64) { - objc.Call[objc.Void](m_, objc.Sel("setMinimum:"), value) +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsmatrixrandomdistributiondescriptor/3242857-distributiontype?language=objc +func (m_ MatrixRandomDistributionDescriptor) SetDistributionType(value MatrixRandomDistribution) { + objc.Call[objc.Void](m_, objc.Sel("setDistributionType:"), value) } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsmatrixrandomdistributiondescriptor/3242861-standarddeviation?language=objc -func (m_ MatrixRandomDistributionDescriptor) StandardDeviation() float64 { - rv := objc.Call[float64](m_, objc.Sel("standardDeviation")) +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsmatrixrandomdistributiondescriptor/3242859-mean?language=objc +func (m_ MatrixRandomDistributionDescriptor) Mean() float64 { + rv := objc.Call[float64](m_, objc.Sel("mean")) return rv } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsmatrixrandomdistributiondescriptor/3242861-standarddeviation?language=objc -func (m_ MatrixRandomDistributionDescriptor) SetStandardDeviation(value float64) { - objc.Call[objc.Void](m_, objc.Sel("setStandardDeviation:"), value) +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsmatrixrandomdistributiondescriptor/3242859-mean?language=objc +func (m_ MatrixRandomDistributionDescriptor) SetMean(value float64) { + objc.Call[objc.Void](m_, objc.Sel("setMean:"), value) } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsmatrixrandomdistributiondescriptor/3242858-maximum?language=objc -func (m_ MatrixRandomDistributionDescriptor) Maximum() float64 { - rv := objc.Call[float64](m_, objc.Sel("maximum")) +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsmatrixrandomdistributiondescriptor/3242860-minimum?language=objc +func (m_ MatrixRandomDistributionDescriptor) Minimum() float64 { + rv := objc.Call[float64](m_, objc.Sel("minimum")) return rv } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsmatrixrandomdistributiondescriptor/3242858-maximum?language=objc -func (m_ MatrixRandomDistributionDescriptor) SetMaximum(value float64) { - objc.Call[objc.Void](m_, objc.Sel("setMaximum:"), value) +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsmatrixrandomdistributiondescriptor/3242860-minimum?language=objc +func (m_ MatrixRandomDistributionDescriptor) SetMinimum(value float64) { + objc.Call[objc.Void](m_, objc.Sel("setMinimum:"), value) } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsmatrixrandomdistributiondescriptor/3242859-mean?language=objc -func (m_ MatrixRandomDistributionDescriptor) Mean() float64 { - rv := objc.Call[float64](m_, objc.Sel("mean")) +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsmatrixrandomdistributiondescriptor/3242861-standarddeviation?language=objc +func (m_ MatrixRandomDistributionDescriptor) StandardDeviation() float64 { + rv := objc.Call[float64](m_, objc.Sel("standardDeviation")) return rv } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsmatrixrandomdistributiondescriptor/3242859-mean?language=objc -func (m_ MatrixRandomDistributionDescriptor) SetMean(value float64) { - objc.Call[objc.Void](m_, objc.Sel("setMean:"), value) +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsmatrixrandomdistributiondescriptor/3242861-standarddeviation?language=objc +func (m_ MatrixRandomDistributionDescriptor) SetStandardDeviation(value float64) { + objc.Call[objc.Void](m_, objc.Sel("setStandardDeviation:"), value) } diff --git a/macos/mps/matrix_random_mtg_p32.gen.go b/macos/mps/matrix_random_mtg_p32.gen.go index c5456c57..5bac5261 100644 --- a/macos/mps/matrix_random_mtg_p32.gen.go +++ b/macos/mps/matrix_random_mtg_p32.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package mps @@ -51,13 +51,39 @@ func NewMatrixRandomMTGP32WithDevice(device metal.PDevice) MatrixRandomMTGP32 { return instance } -func (mc _MatrixRandomMTGP32Class) Alloc() MatrixRandomMTGP32 { - rv := objc.Call[MatrixRandomMTGP32](mc, objc.Sel("alloc")) +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 } -func MatrixRandomMTGP32_Alloc() MatrixRandomMTGP32 { - return MatrixRandomMTGP32Class.Alloc() +// [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, objc.Ptr(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 } func (mc _MatrixRandomMTGP32Class) New() MatrixRandomMTGP32 { @@ -78,7 +104,6 @@ func (m_ MatrixRandomMTGP32) Init() MatrixRandomMTGP32 { func (m_ MatrixRandomMTGP32) CopyWithZoneDevice(zone unsafe.Pointer, device metal.PDevice) MatrixRandomMTGP32 { po1 := objc.WrapAsProtocol("MTLDevice", device) rv := objc.Call[MatrixRandomMTGP32](m_, objc.Sel("copyWithZone:device:"), zone, po1) - rv.Autorelease() return rv } diff --git a/macos/mps/matrix_random_philox.gen.go b/macos/mps/matrix_random_philox.gen.go index cff6e1b6..a031d00e 100644 --- a/macos/mps/matrix_random_philox.gen.go +++ b/macos/mps/matrix_random_philox.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package mps @@ -34,6 +34,36 @@ 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, objc.Ptr(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) @@ -54,10 +84,6 @@ func (mc _MatrixRandomPhiloxClass) Alloc() MatrixRandomPhilox { return rv } -func MatrixRandomPhilox_Alloc() MatrixRandomPhilox { - return MatrixRandomPhiloxClass.Alloc() -} - func (mc _MatrixRandomPhiloxClass) New() MatrixRandomPhilox { rv := objc.Call[MatrixRandomPhilox](mc, objc.Sel("new")) rv.Autorelease() @@ -76,7 +102,6 @@ func (m_ MatrixRandomPhilox) Init() MatrixRandomPhilox { func (m_ MatrixRandomPhilox) CopyWithZoneDevice(zone unsafe.Pointer, device metal.PDevice) MatrixRandomPhilox { po1 := objc.WrapAsProtocol("MTLDevice", device) rv := objc.Call[MatrixRandomPhilox](m_, objc.Sel("copyWithZone:device:"), zone, po1) - rv.Autorelease() return rv } diff --git a/macos/mps/matrix_soft_max.gen.go b/macos/mps/matrix_soft_max.gen.go index 62b816d9..d07b6ede 100644 --- a/macos/mps/matrix_soft_max.gen.go +++ b/macos/mps/matrix_soft_max.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package mps @@ -58,7 +58,6 @@ func NewMatrixSoftMaxWithDevice(device metal.PDevice) MatrixSoftMax { func (m_ MatrixSoftMax) CopyWithZoneDevice(zone unsafe.Pointer, device metal.PDevice) MatrixSoftMax { po1 := objc.WrapAsProtocol("MTLDevice", device) rv := objc.Call[MatrixSoftMax](m_, objc.Sel("copyWithZone:device:"), zone, po1) - rv.Autorelease() return rv } @@ -76,10 +75,6 @@ func (mc _MatrixSoftMaxClass) Alloc() MatrixSoftMax { return rv } -func MatrixSoftMax_Alloc() MatrixSoftMax { - return MatrixSoftMaxClass.Alloc() -} - func (mc _MatrixSoftMaxClass) New() MatrixSoftMax { rv := objc.Call[MatrixSoftMax](mc, objc.Sel("new")) rv.Autorelease() diff --git a/macos/mps/matrix_soft_max_gradient.gen.go b/macos/mps/matrix_soft_max_gradient.gen.go index 01257be8..664e974f 100644 --- a/macos/mps/matrix_soft_max_gradient.gen.go +++ b/macos/mps/matrix_soft_max_gradient.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package mps @@ -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) - SourceRows() uint - SetSourceRows(value uint) SourceColumns() uint SetSourceColumns(value uint) + SourceRows() uint + SetSourceRows(value uint) } // A gradient softmax kernel that operates on matrices. [Full Topic] @@ -40,33 +40,32 @@ func MatrixSoftMaxGradientFrom(ptr unsafe.Pointer) MatrixSoftMaxGradient { } } -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 } -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) - rv.Autorelease() +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 } @@ -76,10 +75,6 @@ func (mc _MatrixSoftMaxGradientClass) Alloc() MatrixSoftMaxGradient { return rv } -func MatrixSoftMaxGradient_Alloc() MatrixSoftMaxGradient { - return MatrixSoftMaxGradientClass.Alloc() -} - func (mc _MatrixSoftMaxGradientClass) New() MatrixSoftMaxGradient { rv := objc.Call[MatrixSoftMaxGradient](mc, objc.Sel("new")) rv.Autorelease() @@ -112,30 +107,30 @@ func (m_ MatrixSoftMaxGradient) EncodeToCommandBufferObjectGradientMatrixForward // [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) } // [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) } diff --git a/macos/mps/matrix_solve_cholesky.gen.go b/macos/mps/matrix_solve_cholesky.gen.go index 48d3c52b..d5a777e3 100644 --- a/macos/mps/matrix_solve_cholesky.gen.go +++ b/macos/mps/matrix_solve_cholesky.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package mps @@ -56,10 +56,6 @@ func (mc _MatrixSolveCholeskyClass) Alloc() MatrixSolveCholesky { return rv } -func MatrixSolveCholesky_Alloc() MatrixSolveCholesky { - return MatrixSolveCholeskyClass.Alloc() -} - func (mc _MatrixSolveCholeskyClass) New() MatrixSolveCholesky { rv := objc.Call[MatrixSolveCholesky](mc, objc.Sel("new")) rv.Autorelease() @@ -75,33 +71,32 @@ func (m_ MatrixSolveCholesky) Init() MatrixSolveCholesky { return rv } -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 } -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) - rv.Autorelease() +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 } diff --git a/macos/mps/matrix_solve_lu.gen.go b/macos/mps/matrix_solve_lu.gen.go index 73fcfe61..5341888d 100644 --- a/macos/mps/matrix_solve_lu.gen.go +++ b/macos/mps/matrix_solve_lu.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package mps @@ -56,10 +56,6 @@ func (mc _MatrixSolveLUClass) Alloc() MatrixSolveLU { return rv } -func MatrixSolveLU_Alloc() MatrixSolveLU { - return MatrixSolveLUClass.Alloc() -} - func (mc _MatrixSolveLUClass) New() MatrixSolveLU { rv := objc.Call[MatrixSolveLU](mc, objc.Sel("new")) rv.Autorelease() @@ -75,33 +71,32 @@ func (m_ MatrixSolveLU) Init() MatrixSolveLU { return rv } -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 } -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) - rv.Autorelease() +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 } diff --git a/macos/mps/matrix_solve_triangular.gen.go b/macos/mps/matrix_solve_triangular.gen.go index 70704119..e10180c1 100644 --- a/macos/mps/matrix_solve_triangular.gen.go +++ b/macos/mps/matrix_solve_triangular.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package mps @@ -56,10 +56,6 @@ func (mc _MatrixSolveTriangularClass) Alloc() MatrixSolveTriangular { return rv } -func MatrixSolveTriangular_Alloc() MatrixSolveTriangular { - return MatrixSolveTriangularClass.Alloc() -} - func (mc _MatrixSolveTriangularClass) New() MatrixSolveTriangular { rv := objc.Call[MatrixSolveTriangular](mc, objc.Sel("new")) rv.Autorelease() @@ -75,33 +71,32 @@ func (m_ MatrixSolveTriangular) Init() MatrixSolveTriangular { return rv } -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 } -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) - rv.Autorelease() +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 } diff --git a/macos/mps/matrix_sum.gen.go b/macos/mps/matrix_sum.gen.go index 4b7dd8d4..2bb7a342 100644 --- a/macos/mps/matrix_sum.gen.go +++ b/macos/mps/matrix_sum.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package mps @@ -19,19 +19,19 @@ type _MatrixSumClass struct { // An interface definition for the [MatrixSum] class. type IMatrixSum interface { IKernel - NeuronType() CNNNeuronType SetNeuronTypeParameterAParameterBParameterC(neuronType CNNNeuronType, parameterA float64, parameterB float64, parameterC float64) + NeuronType() CNNNeuronType 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() float64 + Transpose() bool + NeuronParameterB() float64 NeuronParameterA() float64 + Columns() uint ResultMatrixOrigin() metal.Origin SetResultMatrixOrigin(value metal.Origin) - Transpose() bool - Columns() uint - Count() uint Rows() uint - NeuronParameterB() float64 - NeuronParameterC() float64 + Count() uint } // A kernel for performing a pointwise summation of a matrix. [Full Topic] @@ -67,10 +67,6 @@ func (mc _MatrixSumClass) Alloc() MatrixSum { return rv } -func MatrixSum_Alloc() MatrixSum { - return MatrixSumClass.Alloc() -} - func (mc _MatrixSumClass) New() MatrixSum { rv := objc.Call[MatrixSum](mc, objc.Sel("new")) rv.Autorelease() @@ -86,6 +82,21 @@ 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) @@ -101,20 +112,11 @@ func NewMatrixSumWithDevice(device metal.PDevice) MatrixSum { return instance } -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) - rv.Autorelease() - return rv -} - -// Makes a copy of this kernel object for a new device. [Full Topic] +// [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 +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsmatrixsum/2935617-setneurontype?language=objc +func (m_ MatrixSum) SetNeuronTypeParameterAParameterBParameterC(neuronType CNNNeuronType, parameterA float64, parameterB float64, parameterC float64) { + objc.Call[objc.Void](m_, objc.Sel("setNeuronType:parameterA:parameterB:parameterC:"), neuronType, parameterA, parameterB, parameterC) } // [Full Topic] @@ -125,13 +127,6 @@ 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 float64, parameterB float64, parameterC float64) { - 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 @@ -149,32 +144,33 @@ func (m_ MatrixSum) EncodeToCommandBufferObjectSourceMatricesResultMatrixScaleVe // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsmatrixsum/2935624-neuronparametera?language=objc -func (m_ MatrixSum) NeuronParameterA() float64 { - rv := objc.Call[float64](m_, objc.Sel("neuronParameterA")) +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsmatrixsum/2935618-neuronparameterc?language=objc +func (m_ MatrixSum) NeuronParameterC() float64 { + rv := objc.Call[float64](m_, objc.Sel("neuronParameterC")) return rv } // [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/2935621-transpose?language=objc +func (m_ MatrixSum) Transpose() bool { + rv := objc.Call[bool](m_, objc.Sel("transpose")) 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/2935616-neuronparameterb?language=objc +func (m_ MatrixSum) NeuronParameterB() float64 { + rv := objc.Call[float64](m_, objc.Sel("neuronParameterB")) + 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/2935624-neuronparametera?language=objc +func (m_ MatrixSum) NeuronParameterA() float64 { + rv := objc.Call[float64](m_, objc.Sel("neuronParameterA")) return rv } @@ -188,32 +184,31 @@ func (m_ MatrixSum) Columns() uint { // [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/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/2935622-rows?language=objc -func (m_ MatrixSum) Rows() uint { - rv := objc.Call[uint](m_, objc.Sel("rows")) - 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/2935616-neuronparameterb?language=objc -func (m_ MatrixSum) NeuronParameterB() float64 { - rv := objc.Call[float64](m_, objc.Sel("neuronParameterB")) +// [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/2935618-neuronparameterc?language=objc -func (m_ MatrixSum) NeuronParameterC() float64 { - rv := objc.Call[float64](m_, objc.Sel("neuronParameterC")) +// [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 } diff --git a/macos/mps/matrix_unary_kernel.gen.go b/macos/mps/matrix_unary_kernel.gen.go index 4e3b69f3..5898f32e 100644 --- a/macos/mps/matrix_unary_kernel.gen.go +++ b/macos/mps/matrix_unary_kernel.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package mps @@ -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] @@ -47,10 +47,6 @@ func (mc _MatrixUnaryKernelClass) Alloc() MatrixUnaryKernel { return rv } -func MatrixUnaryKernel_Alloc() MatrixUnaryKernel { - return MatrixUnaryKernelClass.Alloc() -} - func (mc _MatrixUnaryKernelClass) New() MatrixUnaryKernel { rv := objc.Call[MatrixUnaryKernel](mc, objc.Sel("new")) rv.Autorelease() @@ -66,33 +62,32 @@ func (m_ MatrixUnaryKernel) Init() MatrixUnaryKernel { return rv } -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 } -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) - rv.Autorelease() +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 } @@ -112,21 +107,6 @@ 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 @@ -156,3 +136,18 @@ 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 5fcbb3be..045b753d 100644 --- a/macos/mps/matrix_vector_multiplication.gen.go +++ b/macos/mps/matrix_vector_multiplication.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package mps @@ -36,6 +36,21 @@ 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) @@ -56,10 +71,6 @@ func (mc _MatrixVectorMultiplicationClass) Alloc() MatrixVectorMultiplication { return rv } -func MatrixVectorMultiplication_Alloc() MatrixVectorMultiplication { - return MatrixVectorMultiplicationClass.Alloc() -} - func (mc _MatrixVectorMultiplicationClass) New() MatrixVectorMultiplication { rv := objc.Call[MatrixVectorMultiplication](mc, objc.Sel("new")) rv.Autorelease() @@ -75,33 +86,32 @@ func (m_ MatrixVectorMultiplication) Init() MatrixVectorMultiplication { return rv } -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 } -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) - rv.Autorelease() +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 } diff --git a/macos/mps/mps_custom.go b/macos/mps/mps_custom.go new file mode 100644 index 00000000..f3aedffc --- /dev/null +++ b/macos/mps/mps_custom.go @@ -0,0 +1,7 @@ +package mps + +import "unsafe" + +// https://developer.apple.com/documentation/metalperformanceshaders/mpscopyallocator?language=objc +// todo: should be a function signature +type CopyAllocator unsafe.Pointer diff --git a/macos/mps/mps_structs.go b/macos/mps/mps_structs.go index 9672a21a..cc2e0467 100644 --- a/macos/mps/mps_structs.go +++ b/macos/mps/mps_structs.go @@ -31,3 +31,6 @@ type ImageCoordinate struct{} // https://developer.apple.com/documentation/metalperformanceshaders/mpsndarrayoffsets?language=objc type NDArrayOffsets struct{} + +// https://developer.apple.com/documentation/metalperformanceshaders/mpsimagereadwriteparams?language=objc +type ImageReadWriteParams struct{} diff --git a/macos/mps/nd_array.gen.go b/macos/mps/nd_array.gen.go index b3de935c..dabdb57b 100644 --- a/macos/mps/nd_array.gen.go +++ b/macos/mps/nd_array.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package mps @@ -20,26 +20,30 @@ type _NDArrayClass struct { // An interface definition for the [NDArray] class. type INDArray interface { objc.IObject - ArrayViewWithCommandBufferDescriptorAliasing(cmdBuf metal.PCommandBuffer, descriptor INDArrayDescriptor, aliasing AliasingStrategy) NDArray - ArrayViewWithCommandBufferObjectDescriptorAliasing(cmdBufObject objc.IObject, descriptor INDArrayDescriptor, aliasing AliasingStrategy) NDArray - ResourceSize() uint - 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) - SynchronizeOnCommandBuffer(commandBuffer metal.PCommandBuffer) - SynchronizeOnCommandBufferObject(commandBufferObject objc.IObject) Descriptor() NDArrayDescriptor + ResourceSize() uint ImportDataWithCommandBufferFromImagesOffset(cmdBuf metal.PCommandBuffer, images *foundation.Array, offset ImageCoordinate) ImportDataWithCommandBufferObjectFromImagesOffset(cmdBufObject objc.IObject, images *foundation.Array, offset ImageCoordinate) - Parent() NDArray - Device() metal.DeviceWrapper + 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) + 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 + Parent() NDArray DataType() DataType + Device() metal.DeviceObject Label() string SetLabel(value string) - NumberOfDimensions() uint } // [Full Topic] @@ -70,13 +74,24 @@ func NewNDArrayWithDeviceScalar(device metal.PDevice, value float64) NDArray { return instance } -func (nc _NDArrayClass) Alloc() NDArray { - rv := objc.Call[NDArray](nc, objc.Sel("alloc")) +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, objc.Ptr(descriptor)) return rv } -func NDArray_Alloc() NDArray { - return NDArrayClass.Alloc() +// [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 } func (nc _NDArrayClass) New() NDArray { @@ -96,64 +111,72 @@ func (n_ NDArray) Init() NDArray { // [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, objc.Ptr(descriptor), aliasing) +// [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/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:"), objc.Ptr(cmdBufObject), objc.Ptr(descriptor), aliasing) +// [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/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/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/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/3131728-defaultallocator?language=objc +func NDArray_DefaultAllocator() NDArrayAllocatorObject { + return NDArrayClass.DefaultAllocator() } // [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/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/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) 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/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) ImportDataWithCommandBufferObjectFromImagesOffset(cmdBufObject objc.IObject, images *foundation.Array, offset ImageCoordinate) { + objc.Call[objc.Void](n_, objc.Sel("importDataWithCommandBuffer:fromImages:offset:"), objc.Ptr(cmdBufObject), images, offset) +} + +// [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) { po0 := objc.WrapAsProtocol("MTLCommandBuffer", cmdBuf) - objc.Call[objc.Void](n_, objc.Sel("exportDataWithCommandBuffer:toImages:offset:"), po0, images, offset) + po1 := objc.WrapAsProtocol("MTLBuffer", buffer) + objc.Call[objc.Void](n_, objc.Sel("exportDataWithCommandBuffer:toBuffer:destinationDataType:offset:rowStrides:"), po0, po1, destinationDataType, offset, rowStrides) } // [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:"), objc.Ptr(cmdBufObject), images, offset) +// [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:"), objc.Ptr(cmdBufObject), objc.Ptr(bufferObject), destinationDataType, offset, rowStrides) } // [Full Topic] @@ -173,56 +196,64 @@ func (n_ NDArray) SynchronizeOnCommandBufferObject(commandBufferObject objc.IObj // [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")) - return rv +// [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/3152527-importdatawithcommandbuffer?language=objc -func (n_ NDArray) ImportDataWithCommandBufferFromImagesOffset(cmdBuf metal.PCommandBuffer, images *foundation.Array, offset ImageCoordinate) { +// [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) - objc.Call[objc.Void](n_, objc.Sel("importDataWithCommandBuffer:fromImages:offset:"), po0, images, offset) + objc.Call[objc.Void](n_, objc.Sel("exportDataWithCommandBuffer:toImages: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:"), objc.Ptr(cmdBufObject), images, offset) +// [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:"), objc.Ptr(cmdBufObject), images, offset) } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsndarray/3131728-defaultallocator?language=objc -func (nc _NDArrayClass) DefaultAllocator() NDArrayAllocatorWrapper { - rv := objc.Call[NDArrayAllocatorWrapper](nc, objc.Sel("defaultAllocator")) - return rv +// [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/3131728-defaultallocator?language=objc -func NDArray_DefaultAllocator() NDArrayAllocatorWrapper { - return NDArrayClass.DefaultAllocator() +// [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, objc.Ptr(descriptor), aliasing) + 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")) +// [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:"), objc.Ptr(cmdBufObject), objc.Ptr(descriptor), aliasing) return rv } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsndarray/3114045-device?language=objc -func (n_ NDArray) Device() metal.DeviceWrapper { - rv := objc.Call[metal.DeviceWrapper](n_, objc.Sel("device")) - return rv +// [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] +// +// [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:"), objc.Ptr(cmdBufObject), objc.Ptr(bufferObject), sourceDataType, offset, rowStrides) } // [Full Topic] @@ -233,6 +264,22 @@ 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 @@ -241,6 +288,14 @@ 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 @@ -255,11 +310,3 @@ 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_allocator.gen.go b/macos/mps/nd_array_allocator_protocol.gen.go similarity index 61% rename from macos/mps/nd_array_allocator.gen.go rename to macos/mps/nd_array_allocator_protocol.gen.go index 4da75c89..c0506ccf 100644 --- a/macos/mps/nd_array_allocator.gen.go +++ b/macos/mps/nd_array_allocator_protocol.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package mps @@ -12,23 +12,26 @@ import ( // [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsndarrayallocator?language=objc type PNDArrayAllocator interface { // optional - ArrayForCommandBufferArrayDescriptorKernel(cmdBuf metal.CommandBufferWrapper, descriptor NDArrayDescriptor, kernel Kernel) INDArray + ArrayForCommandBufferArrayDescriptorKernel(cmdBuf metal.CommandBufferObject, descriptor NDArrayDescriptor, kernel Kernel) NDArray HasArrayForCommandBufferArrayDescriptorKernel() bool } -// A concrete type wrapper for the [PNDArrayAllocator] protocol. -type NDArrayAllocatorWrapper struct { +// ensure impl type implements protocol interface +var _ PNDArrayAllocator = (*NDArrayAllocatorObject)(nil) + +// A concrete type for the [PNDArrayAllocator] protocol. +type NDArrayAllocatorObject struct { objc.Object } -func (n_ NDArrayAllocatorWrapper) HasArrayForCommandBufferArrayDescriptorKernel() bool { +func (n_ NDArrayAllocatorObject) HasArrayForCommandBufferArrayDescriptorKernel() bool { return n_.RespondsToSelector(objc.Sel("arrayForCommandBuffer:arrayDescriptor:kernel:")) } // [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsndarrayallocator/3143490-arrayforcommandbuffer?language=objc -func (n_ NDArrayAllocatorWrapper) ArrayForCommandBufferArrayDescriptorKernel(cmdBuf metal.PCommandBuffer, descriptor INDArrayDescriptor, kernel IKernel) NDArray { +func (n_ NDArrayAllocatorObject) ArrayForCommandBufferArrayDescriptorKernel(cmdBuf metal.CommandBufferObject, descriptor NDArrayDescriptor, kernel Kernel) NDArray { po0 := objc.WrapAsProtocol("MTLCommandBuffer", cmdBuf) rv := objc.Call[NDArray](n_, objc.Sel("arrayForCommandBuffer:arrayDescriptor:kernel:"), po0, objc.Ptr(descriptor), objc.Ptr(kernel)) return rv diff --git a/macos/mps/nd_array_binary_kernel.gen.go b/macos/mps/nd_array_binary_kernel.gen.go index 54c62b6c..742407d0 100644 --- a/macos/mps/nd_array_binary_kernel.gen.go +++ b/macos/mps/nd_array_binary_kernel.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package mps @@ -21,6 +21,12 @@ 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 IState, outputStateIsTemporary bool) NDArray + EncodeToCommandBufferObjectPrimarySourceArraySecondarySourceArrayResultStateOutputStateIsTemporary(cmdBufObject objc.IObject, primarySourceArray INDArray, secondarySourceArray INDArray, outGradientState IState, outputStateIsTemporary bool) NDArray + EncodeToCommandBufferPrimarySourceArraySecondarySourceArray(cmdBuf metal.PCommandBuffer, primarySourceArray INDArray, secondarySourceArray INDArray) NDArray + EncodeToCommandBufferObjectPrimarySourceArraySecondarySourceArray(cmdBufObject objc.IObject, primarySourceArray INDArray, secondarySourceArray INDArray) NDArray } // [Full Topic] @@ -56,10 +62,6 @@ func (nc _NDArrayBinaryKernelClass) Alloc() NDArrayBinaryKernel { return rv } -func NDArrayBinaryKernel_Alloc() NDArrayBinaryKernel { - return NDArrayBinaryKernelClass.Alloc() -} - func (nc _NDArrayBinaryKernelClass) New() NDArrayBinaryKernel { rv := objc.Call[NDArrayBinaryKernel](nc, objc.Sel("new")) rv.Autorelease() @@ -93,7 +95,6 @@ func NewNDArrayBinaryKernelWithDeviceSourceCount(device metal.PDevice, count uin func (n_ NDArrayBinaryKernel) CopyWithZoneDevice(zone unsafe.Pointer, device metal.PDevice) NDArrayBinaryKernel { po1 := objc.WrapAsProtocol("MTLDevice", device) rv := objc.Call[NDArrayBinaryKernel](n_, objc.Sel("copyWithZone:device:"), zone, po1) - rv.Autorelease() return rv } @@ -120,3 +121,52 @@ 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:"), objc.Ptr(cmdBufObject), objc.Ptr(primarySourceArray), objc.Ptr(secondarySourceArray), objc.Ptr(outGradientState), objc.Ptr(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, objc.Ptr(primarySourceArray), objc.Ptr(secondarySourceArray), objc.Ptr(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:"), objc.Ptr(cmdBufObject), objc.Ptr(primarySourceArray), objc.Ptr(secondarySourceArray), objc.Ptr(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 IState, outputStateIsTemporary bool) NDArray { + po0 := objc.WrapAsProtocol("MTLCommandBuffer", cmdBuf) + rv := objc.Call[NDArray](n_, objc.Sel("encodeToCommandBuffer:primarySourceArray:secondarySourceArray:resultState:outputStateIsTemporary:"), po0, objc.Ptr(primarySourceArray), objc.Ptr(secondarySourceArray), objc.Ptr(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 IState, outputStateIsTemporary bool) NDArray { + rv := objc.Call[NDArray](n_, objc.Sel("encodeToCommandBuffer:primarySourceArray:secondarySourceArray:resultState:outputStateIsTemporary:"), objc.Ptr(cmdBufObject), objc.Ptr(primarySourceArray), objc.Ptr(secondarySourceArray), objc.Ptr(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, objc.Ptr(primarySourceArray), objc.Ptr(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:"), objc.Ptr(cmdBufObject), objc.Ptr(primarySourceArray), objc.Ptr(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 594c0a12..b8a0714d 100644 --- a/macos/mps/nd_array_binary_primary_gradient_kernel.gen.go +++ b/macos/mps/nd_array_binary_primary_gradient_kernel.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package mps @@ -21,6 +21,8 @@ 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] @@ -56,10 +58,6 @@ func (nc _NDArrayBinaryPrimaryGradientKernelClass) Alloc() NDArrayBinaryPrimaryG return rv } -func NDArrayBinaryPrimaryGradientKernel_Alloc() NDArrayBinaryPrimaryGradientKernel { - return NDArrayBinaryPrimaryGradientKernelClass.Alloc() -} - func (nc _NDArrayBinaryPrimaryGradientKernelClass) New() NDArrayBinaryPrimaryGradientKernel { rv := objc.Call[NDArrayBinaryPrimaryGradientKernel](nc, objc.Sel("new")) rv.Autorelease() @@ -108,7 +106,6 @@ func NewNDArrayBinaryPrimaryGradientKernelWithDeviceSourceCount(device metal.PDe func (n_ NDArrayBinaryPrimaryGradientKernel) CopyWithZoneDevice(zone unsafe.Pointer, device metal.PDevice) NDArrayBinaryPrimaryGradientKernel { po1 := objc.WrapAsProtocol("MTLDevice", device) rv := objc.Call[NDArrayBinaryPrimaryGradientKernel](n_, objc.Sel("copyWithZone:device:"), zone, po1) - rv.Autorelease() return rv } @@ -137,3 +134,18 @@ func (n_ NDArrayBinaryPrimaryGradientKernel) EncodeToCommandBufferObjectPrimaryS rv := objc.Call[NDArray](n_, objc.Sel("encodeToCommandBuffer:primarySourceArray:secondarySourceArray:sourceGradient:gradientState:"), objc.Ptr(cmdBufObject), objc.Ptr(primarySourceArray), objc.Ptr(secondarySourceArray), objc.Ptr(gradient), objc.Ptr(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, objc.Ptr(primarySourceArray), objc.Ptr(secondarySourceArray), objc.Ptr(gradient), objc.Ptr(state), objc.Ptr(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:"), objc.Ptr(cmdBufObject), objc.Ptr(primarySourceArray), objc.Ptr(secondarySourceArray), objc.Ptr(gradient), objc.Ptr(state), objc.Ptr(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 6f17e015..699bda96 100644 --- a/macos/mps/nd_array_binary_secondary_gradient_kernel.gen.go +++ b/macos/mps/nd_array_binary_secondary_gradient_kernel.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package mps @@ -19,6 +19,8 @@ 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 } @@ -56,10 +58,6 @@ func (nc _NDArrayBinarySecondaryGradientKernelClass) Alloc() NDArrayBinarySecond return rv } -func NDArrayBinarySecondaryGradientKernel_Alloc() NDArrayBinarySecondaryGradientKernel { - return NDArrayBinarySecondaryGradientKernelClass.Alloc() -} - func (nc _NDArrayBinarySecondaryGradientKernelClass) New() NDArrayBinarySecondaryGradientKernel { rv := objc.Call[NDArrayBinarySecondaryGradientKernel](nc, objc.Sel("new")) rv.Autorelease() @@ -108,7 +106,6 @@ func NewNDArrayBinarySecondaryGradientKernelWithDeviceSourceCount(device metal.P func (n_ NDArrayBinarySecondaryGradientKernel) CopyWithZoneDevice(zone unsafe.Pointer, device metal.PDevice) NDArrayBinarySecondaryGradientKernel { po1 := objc.WrapAsProtocol("MTLDevice", device) rv := objc.Call[NDArrayBinarySecondaryGradientKernel](n_, objc.Sel("copyWithZone:device:"), zone, po1) - rv.Autorelease() return rv } @@ -121,6 +118,21 @@ 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, objc.Ptr(primarySourceArray), objc.Ptr(secondarySourceArray), objc.Ptr(gradient), objc.Ptr(state), objc.Ptr(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:"), objc.Ptr(cmdBufObject), objc.Ptr(primarySourceArray), objc.Ptr(secondarySourceArray), objc.Ptr(gradient), objc.Ptr(state), objc.Ptr(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 15beab63..d2180156 100644 --- a/macos/mps/nd_array_descriptor.gen.go +++ b/macos/mps/nd_array_descriptor.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package mps @@ -20,17 +20,17 @@ type _NDArrayDescriptorClass struct { // An interface definition for the [NDArrayDescriptor] class. type INDArrayDescriptor interface { objc.IObject - 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) ReshapeWithShape(shape []foundation.INumber) - DataType() DataType - SetDataType(value DataType) + TransposeDimensionWithDimension(dimensionIndex uint, dimensionIndex2 uint) + SliceDimensionWithSubrange(dimensionIndex uint, subRange DimensionSlice) + DimensionOrder() kernel.Vector_uchar16 + ReshapeWithDimensionCountDimensionSizes(numberOfDimensions uint, dimensionSizes *uint) NumberOfDimensions() uint SetNumberOfDimensions(value uint) + DataType() DataType + SetDataType(value DataType) } // [Full Topic] @@ -46,6 +46,30 @@ 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 @@ -63,10 +87,6 @@ func (nc _NDArrayDescriptorClass) Alloc() NDArrayDescriptor { return rv } -func NDArrayDescriptor_Alloc() NDArrayDescriptor { - return NDArrayDescriptorClass.Alloc() -} - func (nc _NDArrayDescriptorClass) New() NDArrayDescriptor { rv := objc.Call[NDArrayDescriptor](nc, objc.Sel("new")) rv.Autorelease() @@ -84,9 +104,25 @@ func (n_ NDArrayDescriptor) Init() NDArrayDescriptor { // [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] +// +// [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] @@ -98,10 +134,9 @@ func (n_ NDArrayDescriptor) TransposeDimensionWithDimension(dimensionIndex uint, // [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]: 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] @@ -114,24 +149,24 @@ func (n_ NDArrayDescriptor) DimensionOrder() kernel.Vector_uchar16 { // [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]: 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/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/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/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/3114067-numberofdimensions?language=objc +func (n_ NDArrayDescriptor) SetNumberOfDimensions(value uint) { + objc.Call[objc.Void](n_, objc.Sel("setNumberOfDimensions:"), value) } // [Full Topic] @@ -148,18 +183,3 @@ 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.gen.go b/macos/mps/nd_array_gather.gen.go index 1edb868e..d8eab533 100644 --- a/macos/mps/nd_array_gather.gen.go +++ b/macos/mps/nd_array_gather.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package mps @@ -41,10 +41,6 @@ func (nc _NDArrayGatherClass) Alloc() NDArrayGather { return rv } -func NDArrayGather_Alloc() NDArrayGather { - return NDArrayGatherClass.Alloc() -} - func (nc _NDArrayGatherClass) New() NDArrayGather { rv := objc.Call[NDArrayGather](nc, objc.Sel("new")) rv.Autorelease() @@ -93,7 +89,6 @@ func NewNDArrayGatherWithDeviceSourceCount(device metal.PDevice, count uint) NDA func (n_ NDArrayGather) CopyWithZoneDevice(zone unsafe.Pointer, device metal.PDevice) NDArrayGather { po1 := objc.WrapAsProtocol("MTLDevice", device) rv := objc.Call[NDArrayGather](n_, objc.Sel("copyWithZone:device:"), zone, po1) - rv.Autorelease() return rv } diff --git a/macos/mps/nd_array_gather_gradient.gen.go b/macos/mps/nd_array_gather_gradient.gen.go index df36ef14..f7c3fa37 100644 --- a/macos/mps/nd_array_gather_gradient.gen.go +++ b/macos/mps/nd_array_gather_gradient.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package mps @@ -39,10 +39,6 @@ func (nc _NDArrayGatherGradientClass) Alloc() NDArrayGatherGradient { return rv } -func NDArrayGatherGradient_Alloc() NDArrayGatherGradient { - return NDArrayGatherGradientClass.Alloc() -} - func (nc _NDArrayGatherGradientClass) New() NDArrayGatherGradient { rv := objc.Call[NDArrayGatherGradient](nc, objc.Sel("new")) rv.Autorelease() @@ -106,7 +102,6 @@ func NewNDArrayGatherGradientWithDeviceSourceCount(device metal.PDevice, count u func (n_ NDArrayGatherGradient) CopyWithZoneDevice(zone unsafe.Pointer, device metal.PDevice) NDArrayGatherGradient { po1 := objc.WrapAsProtocol("MTLDevice", device) rv := objc.Call[NDArrayGatherGradient](n_, objc.Sel("copyWithZone:device:"), zone, po1) - rv.Autorelease() return rv } diff --git a/macos/mps/nd_array_gather_gradient_state.gen.go b/macos/mps/nd_array_gather_gradient_state.gen.go index 093bfa8d..68fa6eb4 100644 --- a/macos/mps/nd_array_gather_gradient_state.gen.go +++ b/macos/mps/nd_array_gather_gradient_state.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package mps @@ -39,10 +39,6 @@ func (nc _NDArrayGatherGradientStateClass) Alloc() NDArrayGatherGradientState { return rv } -func NDArrayGatherGradientState_Alloc() NDArrayGatherGradientState { - return NDArrayGatherGradientStateClass.Alloc() -} - func (nc _NDArrayGatherGradientStateClass) New() NDArrayGatherGradientState { rv := objc.Call[NDArrayGatherGradientState](nc, objc.Sel("new")) rv.Autorelease() @@ -58,16 +54,45 @@ func (n_ NDArrayGatherGradientState) Init() NDArrayGatherGradientState { return rv } -func (n_ NDArrayGatherGradientState) InitWithResources(resources []metal.PResource) NDArrayGatherGradientState { - rv := objc.Call[NDArrayGatherGradientState](n_, objc.Sel("initWithResources:"), resources) +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, objc.Ptr(resourceList)) 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/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, objc.Ptr(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) + 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) instance.Autorelease() return instance } @@ -87,30 +112,70 @@ func NewNDArrayGatherGradientStateWithDeviceBufferSize(device metal.PDevice, buf 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 } -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, objc.Ptr(resourceList)) +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/2947915-temporarystatewithcommandbuffer?language=objc -func NDArrayGatherGradientState_TemporaryStateWithCommandBufferResourceList(commandBuffer metal.PCommandBuffer, resourceList IStateResourceList) NDArrayGatherGradientState { - return NDArrayGatherGradientStateClass.TemporaryStateWithCommandBufferResourceList(commandBuffer, resourceList) +// [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, objc.Ptr(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, objc.Ptr(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 } diff --git a/macos/mps/nd_array_gradient_state.gen.go b/macos/mps/nd_array_gradient_state.gen.go index f2f76960..60fdac9e 100644 --- a/macos/mps/nd_array_gradient_state.gen.go +++ b/macos/mps/nd_array_gradient_state.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package mps @@ -39,10 +39,6 @@ func (nc _NDArrayGradientStateClass) Alloc() NDArrayGradientState { return rv } -func NDArrayGradientState_Alloc() NDArrayGradientState { - return NDArrayGradientStateClass.Alloc() -} - func (nc _NDArrayGradientStateClass) New() NDArrayGradientState { rv := objc.Call[NDArrayGradientState](nc, objc.Sel("new")) rv.Autorelease() @@ -58,16 +54,45 @@ func (n_ NDArrayGradientState) Init() NDArrayGradientState { return rv } -func (n_ NDArrayGradientState) InitWithResources(resources []metal.PResource) NDArrayGradientState { - rv := objc.Call[NDArrayGradientState](n_, objc.Sel("initWithResources:"), resources) +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, objc.Ptr(resourceList)) 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/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, objc.Ptr(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) + 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) instance.Autorelease() return instance } @@ -87,30 +112,70 @@ func NewNDArrayGradientStateWithDeviceBufferSize(device metal.PDevice, bufferSiz 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 } -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, objc.Ptr(resourceList)) +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/2947915-temporarystatewithcommandbuffer?language=objc -func NDArrayGradientState_TemporaryStateWithCommandBufferResourceList(commandBuffer metal.PCommandBuffer, resourceList IStateResourceList) NDArrayGradientState { - return NDArrayGradientStateClass.TemporaryStateWithCommandBufferResourceList(commandBuffer, resourceList) +// [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, objc.Ptr(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, objc.Ptr(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 } diff --git a/macos/mps/nd_array_matrix_multiplication.gen.go b/macos/mps/nd_array_matrix_multiplication.gen.go index 94d76380..50200967 100644 --- a/macos/mps/nd_array_matrix_multiplication.gen.go +++ b/macos/mps/nd_array_matrix_multiplication.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package mps @@ -19,10 +19,10 @@ type _NDArrayMatrixMultiplicationClass struct { // An interface definition for the [NDArrayMatrixMultiplication] class. type INDArrayMatrixMultiplication interface { INDArrayMultiaryKernel - Beta() float64 - SetBeta(value float64) Alpha() float64 SetAlpha(value float64) + Beta() float64 + SetBeta(value float64) } // [Full Topic] @@ -43,10 +43,6 @@ func (nc _NDArrayMatrixMultiplicationClass) Alloc() NDArrayMatrixMultiplication return rv } -func NDArrayMatrixMultiplication_Alloc() NDArrayMatrixMultiplication { - return NDArrayMatrixMultiplicationClass.Alloc() -} - func (nc _NDArrayMatrixMultiplicationClass) New() NDArrayMatrixMultiplication { rv := objc.Call[NDArrayMatrixMultiplication](nc, objc.Sel("new")) rv.Autorelease() @@ -80,7 +76,6 @@ func NewNDArrayMatrixMultiplicationWithDeviceSourceCount(device metal.PDevice, c func (n_ NDArrayMatrixMultiplication) CopyWithZoneDevice(zone unsafe.Pointer, device metal.PDevice) NDArrayMatrixMultiplication { po1 := objc.WrapAsProtocol("MTLDevice", device) rv := objc.Call[NDArrayMatrixMultiplication](n_, objc.Sel("copyWithZone:device:"), zone, po1) - rv.Autorelease() return rv } @@ -110,30 +105,30 @@ func NewNDArrayMatrixMultiplicationWithDevice(device metal.PDevice) NDArrayMatri // [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) } // [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) } diff --git a/macos/mps/nd_array_multiary_base.gen.go b/macos/mps/nd_array_multiary_base.gen.go index 590fd6ad..4ba574d3 100644 --- a/macos/mps/nd_array_multiary_base.gen.go +++ b/macos/mps/nd_array_multiary_base.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package mps @@ -23,7 +23,7 @@ type INDArrayMultiaryBase interface { EncodeWithCoder(coder foundation.ICoder) ResultStateForSourceArraysSourceStatesDestinationArray(sourceArrays []INDArray, sourceStates []IState, destinationArray INDArray) State DestinationArrayDescriptorForSourceArraysSourceState(sources []INDArray, state IState) NDArrayDescriptor - DestinationArrayAllocator() NDArrayAllocatorWrapper + DestinationArrayAllocator() NDArrayAllocatorObject SetDestinationArrayAllocator(value PNDArrayAllocator) SetDestinationArrayAllocatorObject(valueObject objc.IObject) } @@ -59,7 +59,6 @@ func NewNDArrayMultiaryBaseWithDeviceSourceCount(device metal.PDevice, count uin func (n_ NDArrayMultiaryBase) CopyWithZoneDevice(zone unsafe.Pointer, device metal.PDevice) NDArrayMultiaryBase { po1 := objc.WrapAsProtocol("MTLDevice", device) rv := objc.Call[NDArrayMultiaryBase](n_, objc.Sel("copyWithZone:device:"), zone, po1) - rv.Autorelease() return rv } @@ -77,10 +76,6 @@ func (nc _NDArrayMultiaryBaseClass) Alloc() NDArrayMultiaryBase { return rv } -func NDArrayMultiaryBase_Alloc() NDArrayMultiaryBase { - return NDArrayMultiaryBaseClass.Alloc() -} - func (nc _NDArrayMultiaryBaseClass) New() NDArrayMultiaryBase { rv := objc.Call[NDArrayMultiaryBase](nc, objc.Sel("new")) rv.Autorelease() @@ -137,8 +132,8 @@ func (n_ NDArrayMultiaryBase) DestinationArrayDescriptorForSourceArraysSourceSta // [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsndarraymultiarybase/3131735-destinationarrayallocator?language=objc -func (n_ NDArrayMultiaryBase) DestinationArrayAllocator() NDArrayAllocatorWrapper { - rv := objc.Call[NDArrayAllocatorWrapper](n_, objc.Sel("destinationArrayAllocator")) +func (n_ NDArrayMultiaryBase) DestinationArrayAllocator() NDArrayAllocatorObject { + rv := objc.Call[NDArrayAllocatorObject](n_, objc.Sel("destinationArrayAllocator")) return rv } diff --git a/macos/mps/nd_array_multiary_gradient_kernel.gen.go b/macos/mps/nd_array_multiary_gradient_kernel.gen.go index 84b0e34d..72a97040 100644 --- a/macos/mps/nd_array_multiary_gradient_kernel.gen.go +++ b/macos/mps/nd_array_multiary_gradient_kernel.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package mps @@ -21,6 +21,8 @@ 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] @@ -56,10 +58,6 @@ func (nc _NDArrayMultiaryGradientKernelClass) Alloc() NDArrayMultiaryGradientKer return rv } -func NDArrayMultiaryGradientKernel_Alloc() NDArrayMultiaryGradientKernel { - return NDArrayMultiaryGradientKernelClass.Alloc() -} - func (nc _NDArrayMultiaryGradientKernelClass) New() NDArrayMultiaryGradientKernel { rv := objc.Call[NDArrayMultiaryGradientKernel](nc, objc.Sel("new")) rv.Autorelease() @@ -93,7 +91,6 @@ func NewNDArrayMultiaryGradientKernelWithDeviceSourceCount(device metal.PDevice, func (n_ NDArrayMultiaryGradientKernel) CopyWithZoneDevice(zone unsafe.Pointer, device metal.PDevice) NDArrayMultiaryGradientKernel { po1 := objc.WrapAsProtocol("MTLDevice", device) rv := objc.Call[NDArrayMultiaryGradientKernel](n_, objc.Sel("copyWithZone:device:"), zone, po1) - rv.Autorelease() return rv } @@ -137,3 +134,18 @@ func (n_ NDArrayMultiaryGradientKernel) EncodeToCommandBufferObjectSourceArraysS rv := objc.Call[NDArray](n_, objc.Sel("encodeToCommandBuffer:sourceArrays:sourceGradient:gradientState:"), objc.Ptr(cmdBufObject), sources, objc.Ptr(gradient), objc.Ptr(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, objc.Ptr(gradient), objc.Ptr(state), objc.Ptr(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:"), objc.Ptr(cmdBufObject), sources, objc.Ptr(gradient), objc.Ptr(state), objc.Ptr(destination)) +} diff --git a/macos/mps/nd_array_multiary_kernel.gen.go b/macos/mps/nd_array_multiary_kernel.gen.go index 2a96f290..2159ab15 100644 --- a/macos/mps/nd_array_multiary_kernel.gen.go +++ b/macos/mps/nd_array_multiary_kernel.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package mps @@ -19,8 +19,14 @@ 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 IState, outputStateIsTemporary bool) NDArray + EncodeToCommandBufferObjectSourceArraysResultStateOutputStateIsTemporary(cmdBufObject objc.IObject, sourceArrays []INDArray, outGradientState IState, outputStateIsTemporary bool) NDArray } // [Full Topic] @@ -56,10 +62,6 @@ func (nc _NDArrayMultiaryKernelClass) Alloc() NDArrayMultiaryKernel { return rv } -func NDArrayMultiaryKernel_Alloc() NDArrayMultiaryKernel { - return NDArrayMultiaryKernelClass.Alloc() -} - func (nc _NDArrayMultiaryKernelClass) New() NDArrayMultiaryKernel { rv := objc.Call[NDArrayMultiaryKernel](nc, objc.Sel("new")) rv.Autorelease() @@ -78,7 +80,6 @@ func (n_ NDArrayMultiaryKernel) Init() NDArrayMultiaryKernel { func (n_ NDArrayMultiaryKernel) CopyWithZoneDevice(zone unsafe.Pointer, device metal.PDevice) NDArrayMultiaryKernel { po1 := objc.WrapAsProtocol("MTLDevice", device) rv := objc.Call[NDArrayMultiaryKernel](n_, objc.Sel("copyWithZone:device:"), zone, po1) - rv.Autorelease() return rv } @@ -106,6 +107,36 @@ 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, objc.Ptr(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:"), objc.Ptr(cmdBufObject), sourceArrays, objc.Ptr(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, objc.Ptr(outGradientState), objc.Ptr(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:"), objc.Ptr(cmdBufObject), sourceArrays, objc.Ptr(outGradientState), objc.Ptr(destination)) +} + // [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsndarraymultiarykernel/3143525-encodetocommandbuffer?language=objc @@ -122,3 +153,20 @@ func (n_ NDArrayMultiaryKernel) EncodeToCommandBufferObjectSourceArrays(cmdBufOb rv := objc.Call[NDArray](n_, objc.Sel("encodeToCommandBuffer:sourceArrays:"), objc.Ptr(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 IState, outputStateIsTemporary bool) NDArray { + po0 := objc.WrapAsProtocol("MTLCommandBuffer", cmdBuf) + rv := objc.Call[NDArray](n_, objc.Sel("encodeToCommandBuffer:sourceArrays:resultState:outputStateIsTemporary:"), po0, sourceArrays, objc.Ptr(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 IState, outputStateIsTemporary bool) NDArray { + rv := objc.Call[NDArray](n_, objc.Sel("encodeToCommandBuffer:sourceArrays:resultState:outputStateIsTemporary:"), objc.Ptr(cmdBufObject), sourceArrays, objc.Ptr(outGradientState), outputStateIsTemporary) + return rv +} diff --git a/macos/mps/nd_array_strided_slice.gen.go b/macos/mps/nd_array_strided_slice.gen.go index 79053ac5..1c3063b7 100644 --- a/macos/mps/nd_array_strided_slice.gen.go +++ b/macos/mps/nd_array_strided_slice.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package mps @@ -41,10 +41,6 @@ func (nc _NDArrayStridedSliceClass) Alloc() NDArrayStridedSlice { return rv } -func NDArrayStridedSlice_Alloc() NDArrayStridedSlice { - return NDArrayStridedSliceClass.Alloc() -} - func (nc _NDArrayStridedSliceClass) New() NDArrayStridedSlice { rv := objc.Call[NDArrayStridedSlice](nc, objc.Sel("new")) rv.Autorelease() @@ -93,7 +89,6 @@ func NewNDArrayStridedSliceWithDeviceSourceCount(device metal.PDevice, count uin func (n_ NDArrayStridedSlice) CopyWithZoneDevice(zone unsafe.Pointer, device metal.PDevice) NDArrayStridedSlice { po1 := objc.WrapAsProtocol("MTLDevice", device) rv := objc.Call[NDArrayStridedSlice](n_, objc.Sel("copyWithZone:device:"), zone, po1) - rv.Autorelease() return rv } diff --git a/macos/mps/nd_array_strided_slice_gradient.gen.go b/macos/mps/nd_array_strided_slice_gradient.gen.go index c029256d..dddfbb77 100644 --- a/macos/mps/nd_array_strided_slice_gradient.gen.go +++ b/macos/mps/nd_array_strided_slice_gradient.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package mps @@ -39,10 +39,6 @@ func (nc _NDArrayStridedSliceGradientClass) Alloc() NDArrayStridedSliceGradient return rv } -func NDArrayStridedSliceGradient_Alloc() NDArrayStridedSliceGradient { - return NDArrayStridedSliceGradientClass.Alloc() -} - func (nc _NDArrayStridedSliceGradientClass) New() NDArrayStridedSliceGradient { rv := objc.Call[NDArrayStridedSliceGradient](nc, objc.Sel("new")) rv.Autorelease() @@ -106,7 +102,6 @@ func NewNDArrayStridedSliceGradientWithDeviceSourceCount(device metal.PDevice, c func (n_ NDArrayStridedSliceGradient) CopyWithZoneDevice(zone unsafe.Pointer, device metal.PDevice) NDArrayStridedSliceGradient { po1 := objc.WrapAsProtocol("MTLDevice", device) rv := objc.Call[NDArrayStridedSliceGradient](n_, objc.Sel("copyWithZone:device:"), zone, po1) - rv.Autorelease() 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 e16a71ef..b87bd59a 100644 --- a/macos/mps/nd_array_unary_gradient_kernel.gen.go +++ b/macos/mps/nd_array_unary_gradient_kernel.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package mps @@ -21,6 +21,8 @@ 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] @@ -56,10 +58,6 @@ func (nc _NDArrayUnaryGradientKernelClass) Alloc() NDArrayUnaryGradientKernel { return rv } -func NDArrayUnaryGradientKernel_Alloc() NDArrayUnaryGradientKernel { - return NDArrayUnaryGradientKernelClass.Alloc() -} - func (nc _NDArrayUnaryGradientKernelClass) New() NDArrayUnaryGradientKernel { rv := objc.Call[NDArrayUnaryGradientKernel](nc, objc.Sel("new")) rv.Autorelease() @@ -108,7 +106,6 @@ func NewNDArrayUnaryGradientKernelWithDeviceSourceCount(device metal.PDevice, co func (n_ NDArrayUnaryGradientKernel) CopyWithZoneDevice(zone unsafe.Pointer, device metal.PDevice) NDArrayUnaryGradientKernel { po1 := objc.WrapAsProtocol("MTLDevice", device) rv := objc.Call[NDArrayUnaryGradientKernel](n_, objc.Sel("copyWithZone:device:"), zone, po1) - rv.Autorelease() return rv } @@ -137,3 +134,18 @@ func (n_ NDArrayUnaryGradientKernel) EncodeToCommandBufferObjectSourceArraySourc rv := objc.Call[NDArray](n_, objc.Sel("encodeToCommandBuffer:sourceArray:sourceGradient:gradientState:"), objc.Ptr(cmdBufObject), objc.Ptr(sourceArray), objc.Ptr(gradient), objc.Ptr(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, objc.Ptr(sourceArray), objc.Ptr(gradient), objc.Ptr(state), objc.Ptr(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:"), objc.Ptr(cmdBufObject), objc.Ptr(sourceArray), objc.Ptr(gradient), objc.Ptr(state), objc.Ptr(destination)) +} diff --git a/macos/mps/nd_array_unary_kernel.gen.go b/macos/mps/nd_array_unary_kernel.gen.go index 9904501d..c2e5ef09 100644 --- a/macos/mps/nd_array_unary_kernel.gen.go +++ b/macos/mps/nd_array_unary_kernel.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package mps @@ -19,8 +19,14 @@ 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 IState, outputStateIsTemporary bool) NDArray + EncodeToCommandBufferObjectSourceArrayResultStateOutputStateIsTemporary(cmdBufObject objc.IObject, sourceArray INDArray, outGradientState IState, outputStateIsTemporary bool) NDArray } // [Full Topic] @@ -56,10 +62,6 @@ func (nc _NDArrayUnaryKernelClass) Alloc() NDArrayUnaryKernel { return rv } -func NDArrayUnaryKernel_Alloc() NDArrayUnaryKernel { - return NDArrayUnaryKernelClass.Alloc() -} - func (nc _NDArrayUnaryKernelClass) New() NDArrayUnaryKernel { rv := objc.Call[NDArrayUnaryKernel](nc, objc.Sel("new")) rv.Autorelease() @@ -93,7 +95,6 @@ func NewNDArrayUnaryKernelWithDeviceSourceCount(device metal.PDevice, count uint func (n_ NDArrayUnaryKernel) CopyWithZoneDevice(zone unsafe.Pointer, device metal.PDevice) NDArrayUnaryKernel { po1 := objc.WrapAsProtocol("MTLDevice", device) rv := objc.Call[NDArrayUnaryKernel](n_, objc.Sel("copyWithZone:device:"), zone, po1) - rv.Autorelease() return rv } @@ -106,6 +107,38 @@ 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, objc.Ptr(sourceArray), objc.Ptr(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:"), objc.Ptr(cmdBufObject), objc.Ptr(sourceArray), objc.Ptr(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, objc.Ptr(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:"), objc.Ptr(cmdBufObject), objc.Ptr(sourceArray)) + return rv +} + // [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsndarrayunarykernel/3143538-encodetocommandbuffer?language=objc @@ -120,3 +153,20 @@ 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:"), objc.Ptr(cmdBufObject), objc.Ptr(sourceArray), objc.Ptr(outGradientState), objc.Ptr(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 IState, outputStateIsTemporary bool) NDArray { + po0 := objc.WrapAsProtocol("MTLCommandBuffer", cmdBuf) + rv := objc.Call[NDArray](n_, objc.Sel("encodeToCommandBuffer:sourceArray:resultState:outputStateIsTemporary:"), po0, objc.Ptr(sourceArray), objc.Ptr(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 IState, outputStateIsTemporary bool) NDArray { + rv := objc.Call[NDArray](n_, objc.Sel("encodeToCommandBuffer:sourceArray:resultState:outputStateIsTemporary:"), objc.Ptr(cmdBufObject), objc.Ptr(sourceArray), objc.Ptr(outGradientState), outputStateIsTemporary) + return rv +} diff --git a/macos/mps/nn_addition_gradient_node.gen.go b/macos/mps/nn_addition_gradient_node.gen.go index 597d26f9..a42821bd 100644 --- a/macos/mps/nn_addition_gradient_node.gen.go +++ b/macos/mps/nn_addition_gradient_node.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package mps @@ -38,10 +38,6 @@ func (nc _NNAdditionGradientNodeClass) Alloc() NNAdditionGradientNode { return rv } -func NNAdditionGradientNode_Alloc() NNAdditionGradientNode { - return NNAdditionGradientNodeClass.Alloc() -} - func (nc _NNAdditionGradientNodeClass) New() NNAdditionGradientNode { rv := objc.Call[NNAdditionGradientNode](nc, objc.Sel("new")) rv.Autorelease() diff --git a/macos/mps/nn_addition_node.gen.go b/macos/mps/nn_addition_node.gen.go index 1a511c7f..d5149bad 100644 --- a/macos/mps/nn_addition_node.gen.go +++ b/macos/mps/nn_addition_node.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package mps @@ -38,10 +38,6 @@ func (nc _NNAdditionNodeClass) Alloc() NNAdditionNode { return rv } -func NNAdditionNode_Alloc() NNAdditionNode { - return NNAdditionNodeClass.Alloc() -} - func (nc _NNAdditionNodeClass) New() NNAdditionNode { rv := objc.Call[NNAdditionNode](nc, objc.Sel("new")) rv.Autorelease() @@ -69,6 +65,20 @@ 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:"), objc.Ptr(left), objc.Ptr(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:"), objc.Ptr(left), objc.Ptr(right)) return rv @@ -94,17 +104,3 @@ 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:"), objc.Ptr(left), objc.Ptr(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 6676e864..16c97582 100644 --- a/macos/mps/nn_arithmetic_gradient_node.gen.go +++ b/macos/mps/nn_arithmetic_gradient_node.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package mps @@ -18,23 +18,23 @@ type _NNArithmeticGradientNodeClass struct { // An interface definition for the [NNArithmeticGradientNode] class. type INNArithmeticGradientNode interface { INNGradientFilterNode - SecondaryScale() float64 - SetSecondaryScale(value float64) - IsSecondarySourceFilter() bool + MaximumValue() float64 + SetMaximumValue(value float64) SecondaryStrideInPixelsY() uint SetSecondaryStrideInPixelsY(value uint) SecondaryStrideInPixelsX() uint SetSecondaryStrideInPixelsX(value uint) - MaximumValue() float64 - SetMaximumValue(value float64) - PrimaryScale() float64 - SetPrimaryScale(value float64) - MinimumValue() float64 - SetMinimumValue(value float64) + SecondaryScale() float64 + SetSecondaryScale(value float64) Bias() float64 SetBias(value float64) + MinimumValue() float64 + SetMinimumValue(value float64) + IsSecondarySourceFilter() bool SecondaryStrideInFeatureChannels() uint SetSecondaryStrideInFeatureChannels(value uint) + PrimaryScale() float64 + SetPrimaryScale(value float64) } // A representation of the base class for gradient arithmetic operators. [Full Topic] @@ -95,10 +95,6 @@ func (nc _NNArithmeticGradientNodeClass) Alloc() NNArithmeticGradientNode { return rv } -func NNArithmeticGradientNode_Alloc() NNArithmeticGradientNode { - return NNArithmeticGradientNodeClass.Alloc() -} - func (nc _NNArithmeticGradientNodeClass) New() NNArithmeticGradientNode { rv := objc.Call[NNArithmeticGradientNode](nc, objc.Sel("new")) rv.Autorelease() @@ -116,25 +112,17 @@ func (n_ NNArithmeticGradientNode) Init() NNArithmeticGradientNode { // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsnnarithmeticgradientnode/2952981-secondaryscale?language=objc -func (n_ NNArithmeticGradientNode) SecondaryScale() float64 { - rv := objc.Call[float64](n_, objc.Sel("secondaryScale")) +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsnnarithmeticgradientnode/2952986-maximumvalue?language=objc +func (n_ NNArithmeticGradientNode) MaximumValue() float64 { + rv := objc.Call[float64](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 float64) { - 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]: https://developer.apple.com/documentation/metalperformanceshaders/mpsnnarithmeticgradientnode/2952986-maximumvalue?language=objc +func (n_ NNArithmeticGradientNode) SetMaximumValue(value float64) { + objc.Call[objc.Void](n_, objc.Sel("setMaximumValue:"), value) } // [Full Topic] @@ -169,32 +157,32 @@ func (n_ NNArithmeticGradientNode) SetSecondaryStrideInPixelsX(value uint) { // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsnnarithmeticgradientnode/2952986-maximumvalue?language=objc -func (n_ NNArithmeticGradientNode) MaximumValue() float64 { - rv := objc.Call[float64](n_, objc.Sel("maximumValue")) +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsnnarithmeticgradientnode/2952981-secondaryscale?language=objc +func (n_ NNArithmeticGradientNode) SecondaryScale() float64 { + rv := objc.Call[float64](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 float64) { - 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 float64) { + objc.Call[objc.Void](n_, objc.Sel("setSecondaryScale:"), value) } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsnnarithmeticgradientnode/2952993-primaryscale?language=objc -func (n_ NNArithmeticGradientNode) PrimaryScale() float64 { - rv := objc.Call[float64](n_, objc.Sel("primaryScale")) +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsnnarithmeticgradientnode/2952988-bias?language=objc +func (n_ NNArithmeticGradientNode) Bias() float64 { + rv := objc.Call[float64](n_, objc.Sel("bias")) return rv } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsnnarithmeticgradientnode/2952993-primaryscale?language=objc -func (n_ NNArithmeticGradientNode) SetPrimaryScale(value float64) { - objc.Call[objc.Void](n_, objc.Sel("setPrimaryScale:"), value) +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsnnarithmeticgradientnode/2952988-bias?language=objc +func (n_ NNArithmeticGradientNode) SetBias(value float64) { + objc.Call[objc.Void](n_, objc.Sel("setBias:"), value) } // [Full Topic] @@ -214,19 +202,12 @@ func (n_ NNArithmeticGradientNode) SetMinimumValue(value float64) { // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsnnarithmeticgradientnode/2952988-bias?language=objc -func (n_ NNArithmeticGradientNode) Bias() float64 { - rv := objc.Call[float64](n_, objc.Sel("bias")) +// [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] -// -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsnnarithmeticgradientnode/2952988-bias?language=objc -func (n_ NNArithmeticGradientNode) SetBias(value float64) { - objc.Call[objc.Void](n_, objc.Sel("setBias:"), value) -} - // [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsnnarithmeticgradientnode/2952984-secondarystrideinfeaturechannels?language=objc @@ -241,3 +222,18 @@ 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() float64 { + rv := objc.Call[float64](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 float64) { + objc.Call[objc.Void](n_, objc.Sel("setPrimaryScale:"), value) +} diff --git a/macos/mps/nn_arithmetic_gradient_state_node.gen.go b/macos/mps/nn_arithmetic_gradient_state_node.gen.go index 9207b907..0bcd5f2b 100644 --- a/macos/mps/nn_arithmetic_gradient_state_node.gen.go +++ b/macos/mps/nn_arithmetic_gradient_state_node.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package mps @@ -38,10 +38,6 @@ func (nc _NNArithmeticGradientStateNodeClass) Alloc() NNArithmeticGradientStateN return rv } -func NNArithmeticGradientStateNode_Alloc() NNArithmeticGradientStateNode { - return NNArithmeticGradientStateNodeClass.Alloc() -} - func (nc _NNArithmeticGradientStateNodeClass) New() NNArithmeticGradientStateNode { rv := objc.Call[NNArithmeticGradientStateNode](nc, objc.Sel("new")) rv.Autorelease() diff --git a/macos/mps/nn_bilinear_scale_node.gen.go b/macos/mps/nn_bilinear_scale_node.gen.go index 8806796d..fb5c137a 100644 --- a/macos/mps/nn_bilinear_scale_node.gen.go +++ b/macos/mps/nn_bilinear_scale_node.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package mps @@ -39,10 +39,6 @@ func (nc _NNBilinearScaleNodeClass) Alloc() NNBilinearScaleNode { return rv } -func NNBilinearScaleNode_Alloc() NNBilinearScaleNode { - return NNBilinearScaleNodeClass.Alloc() -} - func (nc _NNBilinearScaleNodeClass) New() NNBilinearScaleNode { rv := objc.Call[NNBilinearScaleNode](nc, objc.Sel("new")) rv.Autorelease() @@ -58,6 +54,35 @@ 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:"), objc.Ptr(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:"), objc.Ptr(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:"), objc.Ptr(sourceNode), size) return rv @@ -70,16 +95,15 @@ func NNBilinearScaleNode_NodeWithSourceOutputSize(sourceNode INNImageNode, size return NNBilinearScaleNodeClass.NodeWithSourceOutputSize(sourceNode, size) } -func (n_ NNBilinearScaleNode) InitWithSourceOutputSize(sourceNode INNImageNode, size metal.Size) NNBilinearScaleNode { - rv := objc.Call[NNBilinearScaleNode](n_, objc.Sel("initWithSource:outputSize:"), objc.Ptr(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:"), objc.Ptr(sourceNode), po1, 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 +// [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) } diff --git a/macos/mps/nn_binary_arithmetic_node.gen.go b/macos/mps/nn_binary_arithmetic_node.gen.go index e0b2ad1d..fdf1a5c3 100644 --- a/macos/mps/nn_binary_arithmetic_node.gen.go +++ b/macos/mps/nn_binary_arithmetic_node.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package mps @@ -19,28 +19,28 @@ type _NNBinaryArithmeticNodeClass struct { type INNBinaryArithmeticNode interface { INNFilterNode GradientClass() objc.Class - SecondaryScale() float64 - SetSecondaryScale(value float64) + PrimaryScale() float64 + SetPrimaryScale(value float64) SecondaryStrideInPixelsY() uint SetSecondaryStrideInPixelsY(value uint) - SecondaryStrideInPixelsX() uint - SetSecondaryStrideInPixelsX(value uint) - PrimaryStrideInPixelsY() uint - SetPrimaryStrideInPixelsY(value uint) MaximumValue() float64 SetMaximumValue(value float64) - PrimaryStrideInPixelsX() uint - SetPrimaryStrideInPixelsX(value uint) - PrimaryScale() float64 - SetPrimaryScale(value float64) - MinimumValue() float64 - SetMinimumValue(value float64) - Bias() float64 - SetBias(value float64) + SecondaryScale() float64 + SetSecondaryScale(value float64) + SecondaryStrideInPixelsX() uint + SetSecondaryStrideInPixelsX(value uint) SecondaryStrideInFeatureChannels() uint SetSecondaryStrideInFeatureChannels(value uint) PrimaryStrideInFeatureChannels() uint SetPrimaryStrideInFeatureChannels(value uint) + MinimumValue() float64 + SetMinimumValue(value float64) + Bias() float64 + SetBias(value float64) + PrimaryStrideInPixelsX() uint + SetPrimaryStrideInPixelsX(value uint) + PrimaryStrideInPixelsY() uint + SetPrimaryStrideInPixelsY(value uint) } // Virtual base class for basic arithmetic nodes. [Full Topic] @@ -68,6 +68,20 @@ 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:"), objc.Ptr(left), objc.Ptr(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:"), objc.Ptr(left), objc.Ptr(right)) return rv @@ -94,29 +108,11 @@ 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:"), objc.Ptr(left), objc.Ptr(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 } -func NNBinaryArithmeticNode_Alloc() NNBinaryArithmeticNode { - return NNBinaryArithmeticNodeClass.Alloc() -} - func (nc _NNBinaryArithmeticNodeClass) New() NNBinaryArithmeticNode { rv := objc.Call[NNBinaryArithmeticNode](nc, objc.Sel("new")) rv.Autorelease() @@ -142,17 +138,17 @@ func (n_ NNBinaryArithmeticNode) GradientClass() objc.Class { // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsnnbinaryarithmeticnode/2952976-secondaryscale?language=objc -func (n_ NNBinaryArithmeticNode) SecondaryScale() float64 { - rv := objc.Call[float64](n_, objc.Sel("secondaryScale")) +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsnnbinaryarithmeticnode/2952966-primaryscale?language=objc +func (n_ NNBinaryArithmeticNode) PrimaryScale() float64 { + rv := objc.Call[float64](n_, objc.Sel("primaryScale")) return rv } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsnnbinaryarithmeticnode/2952976-secondaryscale?language=objc -func (n_ NNBinaryArithmeticNode) SetSecondaryScale(value float64) { - objc.Call[objc.Void](n_, objc.Sel("setSecondaryScale:"), value) +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsnnbinaryarithmeticnode/2952966-primaryscale?language=objc +func (n_ NNBinaryArithmeticNode) SetPrimaryScale(value float64) { + objc.Call[objc.Void](n_, objc.Sel("setPrimaryScale:"), value) } // [Full Topic] @@ -172,77 +168,77 @@ func (n_ NNBinaryArithmeticNode) SetSecondaryStrideInPixelsY(value uint) { // [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() float64 { + rv := objc.Call[float64](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 float64) { + objc.Call[objc.Void](n_, objc.Sel("setMaximumValue:"), 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/2952976-secondaryscale?language=objc +func (n_ NNBinaryArithmeticNode) SecondaryScale() float64 { + rv := objc.Call[float64](n_, objc.Sel("secondaryScale")) 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/2952976-secondaryscale?language=objc +func (n_ NNBinaryArithmeticNode) SetSecondaryScale(value float64) { + objc.Call[objc.Void](n_, objc.Sel("setSecondaryScale:"), value) } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsnnbinaryarithmeticnode/2952979-maximumvalue?language=objc -func (n_ NNBinaryArithmeticNode) MaximumValue() float64 { - rv := objc.Call[float64](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 float64) { - 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/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/2952966-primaryscale?language=objc -func (n_ NNBinaryArithmeticNode) PrimaryScale() float64 { - rv := objc.Call[float64](n_, objc.Sel("primaryScale")) +// [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/2952966-primaryscale?language=objc -func (n_ NNBinaryArithmeticNode) SetPrimaryScale(value float64) { - objc.Call[objc.Void](n_, objc.Sel("setPrimaryScale:"), 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) } // [Full Topic] @@ -277,30 +273,30 @@ func (n_ NNBinaryArithmeticNode) SetBias(value float64) { // [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/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/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/2952996-primarystrideinpixelsy?language=objc +func (n_ NNBinaryArithmeticNode) SetPrimaryStrideInPixelsY(value uint) { + objc.Call[objc.Void](n_, objc.Sel("setPrimaryStrideInPixelsY:"), value) } diff --git a/macos/mps/nn_binary_gradient_state.gen.go b/macos/mps/nn_binary_gradient_state.gen.go index 46f11bbe..24aff0fb 100644 --- a/macos/mps/nn_binary_gradient_state.gen.go +++ b/macos/mps/nn_binary_gradient_state.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package mps @@ -39,10 +39,6 @@ func (nc _NNBinaryGradientStateClass) Alloc() NNBinaryGradientState { return rv } -func NNBinaryGradientState_Alloc() NNBinaryGradientState { - return NNBinaryGradientStateClass.Alloc() -} - func (nc _NNBinaryGradientStateClass) New() NNBinaryGradientState { rv := objc.Call[NNBinaryGradientState](nc, objc.Sel("new")) rv.Autorelease() @@ -58,16 +54,45 @@ func (n_ NNBinaryGradientState) Init() NNBinaryGradientState { return rv } -func (n_ NNBinaryGradientState) InitWithResources(resources []metal.PResource) NNBinaryGradientState { - rv := objc.Call[NNBinaryGradientState](n_, objc.Sel("initWithResources:"), resources) +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, objc.Ptr(resourceList)) 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/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, objc.Ptr(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) + 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) instance.Autorelease() return instance } @@ -87,30 +112,70 @@ func NewNNBinaryGradientStateWithDeviceBufferSize(device metal.PDevice, bufferSi 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 } -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, objc.Ptr(resourceList)) +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/2947915-temporarystatewithcommandbuffer?language=objc -func NNBinaryGradientState_TemporaryStateWithCommandBufferResourceList(commandBuffer metal.PCommandBuffer, resourceList IStateResourceList) NNBinaryGradientState { - return NNBinaryGradientStateClass.TemporaryStateWithCommandBufferResourceList(commandBuffer, resourceList) +// [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, objc.Ptr(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, objc.Ptr(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 } diff --git a/macos/mps/nn_binary_gradient_state_node.gen.go b/macos/mps/nn_binary_gradient_state_node.gen.go index d7a746eb..c70b280f 100644 --- a/macos/mps/nn_binary_gradient_state_node.gen.go +++ b/macos/mps/nn_binary_gradient_state_node.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package mps @@ -38,10 +38,6 @@ func (nc _NNBinaryGradientStateNodeClass) Alloc() NNBinaryGradientStateNode { return rv } -func NNBinaryGradientStateNode_Alloc() NNBinaryGradientStateNode { - return NNBinaryGradientStateNodeClass.Alloc() -} - func (nc _NNBinaryGradientStateNodeClass) New() NNBinaryGradientStateNode { rv := objc.Call[NNBinaryGradientStateNode](nc, objc.Sel("new")) rv.Autorelease() diff --git a/macos/mps/nn_compare.gen.go b/macos/mps/nn_compare.gen.go index d06f481a..00b84b2e 100644 --- a/macos/mps/nn_compare.gen.go +++ b/macos/mps/nn_compare.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package mps @@ -19,10 +19,10 @@ type _NNCompareClass struct { // An interface definition for the [NNCompare] class. type INNCompare interface { ICNNArithmetic - ComparisonType() NNComparisonType - SetComparisonType(value NNComparisonType) Threshold() float64 SetThreshold(value float64) + ComparisonType() NNComparisonType + SetComparisonType(value NNComparisonType) } // [Full Topic] @@ -58,10 +58,6 @@ func (nc _NNCompareClass) Alloc() NNCompare { return rv } -func NNCompare_Alloc() NNCompare { - return NNCompareClass.Alloc() -} - func (nc _NNCompareClass) New() NNCompare { rv := objc.Call[NNCompare](nc, objc.Sel("new")) rv.Autorelease() @@ -80,7 +76,6 @@ func (n_ NNCompare) Init() NNCompare { func (n_ NNCompare) CopyWithZoneDevice(zone unsafe.Pointer, device metal.PDevice) NNCompare { po1 := objc.WrapAsProtocol("MTLDevice", device) rv := objc.Call[NNCompare](n_, objc.Sel("copyWithZone:device:"), zone, po1) - rv.Autorelease() return rv } @@ -95,30 +90,30 @@ func NNCompare_CopyWithZoneDevice(zone unsafe.Pointer, device metal.PDevice) NNC // [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() float64 { + rv := objc.Call[float64](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 float64) { + objc.Call[objc.Void](n_, objc.Sel("setThreshold:"), value) } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsnncompare/3037376-threshold?language=objc -func (n_ NNCompare) Threshold() float64 { - rv := objc.Call[float64](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 float64) { - 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) } diff --git a/macos/mps/nn_comparison_node.gen.go b/macos/mps/nn_comparison_node.gen.go index a8ac452b..969e36ec 100644 --- a/macos/mps/nn_comparison_node.gen.go +++ b/macos/mps/nn_comparison_node.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package mps @@ -40,10 +40,6 @@ func (nc _NNComparisonNodeClass) Alloc() NNComparisonNode { return rv } -func NNComparisonNode_Alloc() NNComparisonNode { - return NNComparisonNodeClass.Alloc() -} - func (nc _NNComparisonNodeClass) New() NNComparisonNode { rv := objc.Call[NNComparisonNode](nc, objc.Sel("new")) rv.Autorelease() @@ -71,6 +67,20 @@ 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:"), objc.Ptr(left), objc.Ptr(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:"), objc.Ptr(left), objc.Ptr(right)) return rv @@ -97,20 +107,6 @@ 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:"), objc.Ptr(left), objc.Ptr(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_gradient_node.gen.go b/macos/mps/nn_concatenation_gradient_node.gen.go index ee6a3056..7a1d40fa 100644 --- a/macos/mps/nn_concatenation_gradient_node.gen.go +++ b/macos/mps/nn_concatenation_gradient_node.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package mps @@ -64,10 +64,6 @@ func (nc _NNConcatenationGradientNodeClass) Alloc() NNConcatenationGradientNode return rv } -func NNConcatenationGradientNode_Alloc() NNConcatenationGradientNode { - return NNConcatenationGradientNodeClass.Alloc() -} - func (nc _NNConcatenationGradientNodeClass) New() NNConcatenationGradientNode { rv := objc.Call[NNConcatenationGradientNode](nc, objc.Sel("new")) rv.Autorelease() diff --git a/macos/mps/nn_concatenation_node.gen.go b/macos/mps/nn_concatenation_node.gen.go index 955d88d4..2a6f1679 100644 --- a/macos/mps/nn_concatenation_node.gen.go +++ b/macos/mps/nn_concatenation_node.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package mps @@ -33,18 +33,6 @@ func NNConcatenationNodeFrom(ptr unsafe.Pointer) NNConcatenationNode { } } -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/2866432-nodewithsources?language=objc -func NNConcatenationNode_NodeWithSources(sourceNodes []INNImageNode) NNConcatenationNode { - return NNConcatenationNodeClass.NodeWithSources(sourceNodes) -} - func (n_ NNConcatenationNode) InitWithSources(sourceNodes []INNImageNode) NNConcatenationNode { rv := objc.Call[NNConcatenationNode](n_, objc.Sel("initWithSources:"), sourceNodes) return rv @@ -59,13 +47,21 @@ func NewNNConcatenationNodeWithSources(sourceNodes []INNImageNode) NNConcatenati return instance } -func (nc _NNConcatenationNodeClass) Alloc() NNConcatenationNode { - rv := objc.Call[NNConcatenationNode](nc, objc.Sel("alloc")) +func (nc _NNConcatenationNodeClass) NodeWithSources(sourceNodes []INNImageNode) NNConcatenationNode { + rv := objc.Call[NNConcatenationNode](nc, objc.Sel("nodeWithSources:"), sourceNodes) return rv } -func NNConcatenationNode_Alloc() NNConcatenationNode { - return NNConcatenationNodeClass.Alloc() +// [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) +} + +func (nc _NNConcatenationNodeClass) Alloc() NNConcatenationNode { + rv := objc.Call[NNConcatenationNode](nc, objc.Sel("alloc")) + return rv } func (nc _NNConcatenationNodeClass) New() NNConcatenationNode { diff --git a/macos/mps/nn_crop_and_resize_bilinear.gen.go b/macos/mps/nn_crop_and_resize_bilinear.gen.go index 5615b86a..25486964 100644 --- a/macos/mps/nn_crop_and_resize_bilinear.gen.go +++ b/macos/mps/nn_crop_and_resize_bilinear.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package mps @@ -19,10 +19,10 @@ type _NNCropAndResizeBilinearClass struct { // An interface definition for the [NNCropAndResizeBilinear] class. type INNCropAndResizeBilinear interface { ICNNKernel - ResizeHeight() uint - ResizeWidth() uint Regions() *Region + ResizeHeight() uint NumberOfRegions() uint + ResizeWidth() uint } // A cropping and bilinear resizing filter. [Full Topic] @@ -58,10 +58,6 @@ func (nc _NNCropAndResizeBilinearClass) Alloc() NNCropAndResizeBilinear { return rv } -func NNCropAndResizeBilinear_Alloc() NNCropAndResizeBilinear { - return NNCropAndResizeBilinearClass.Alloc() -} - func (nc _NNCropAndResizeBilinearClass) New() NNCropAndResizeBilinear { rv := objc.Call[NNCropAndResizeBilinear](nc, objc.Sel("new")) rv.Autorelease() @@ -95,7 +91,6 @@ func NewNNCropAndResizeBilinearWithDevice(device metal.PDevice) NNCropAndResizeB func (n_ NNCropAndResizeBilinear) CopyWithZoneDevice(zone unsafe.Pointer, device metal.PDevice) NNCropAndResizeBilinear { po1 := objc.WrapAsProtocol("MTLDevice", device) rv := objc.Call[NNCropAndResizeBilinear](n_, objc.Sel("copyWithZone:device:"), zone, po1) - rv.Autorelease() return rv } @@ -110,32 +105,32 @@ func NNCropAndResizeBilinear_CopyWithZoneDevice(zone unsafe.Pointer, device meta // [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/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/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/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/3013790-numberofregions?language=objc +func (n_ NNCropAndResizeBilinear) NumberOfRegions() uint { + rv := objc.Call[uint](n_, objc.Sel("numberOfRegions")) 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/3013793-resizewidth?language=objc +func (n_ NNCropAndResizeBilinear) ResizeWidth() uint { + rv := objc.Call[uint](n_, objc.Sel("resizeWidth")) return rv } diff --git a/macos/mps/nn_default_padding.gen.go b/macos/mps/nn_default_padding.gen.go index 8c045ab3..21836502 100644 --- a/macos/mps/nn_default_padding.gen.go +++ b/macos/mps/nn_default_padding.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package mps @@ -34,16 +34,16 @@ func NNDefaultPaddingFrom(ptr unsafe.Pointer) NNDefaultPadding { } } -func (nc _NNDefaultPaddingClass) PaddingForTensorflowAveragePooling() NNDefaultPadding { - rv := objc.Call[NNDefaultPadding](nc, objc.Sel("paddingForTensorflowAveragePooling")) +func (nc _NNDefaultPaddingClass) PaddingForTensorflowAveragePoolingValidOnly() NNDefaultPadding { + rv := objc.Call[NNDefaultPadding](nc, objc.Sel("paddingForTensorflowAveragePoolingValidOnly")) return rv } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsnndefaultpadding/2867164-paddingfortensorflowaveragepooli?language=objc -func NNDefaultPadding_PaddingForTensorflowAveragePooling() NNDefaultPadding { - return NNDefaultPaddingClass.PaddingForTensorflowAveragePooling() +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsnndefaultpadding/2947962-paddingfortensorflowaveragepooli?language=objc +func NNDefaultPadding_PaddingForTensorflowAveragePoolingValidOnly() NNDefaultPadding { + return NNDefaultPaddingClass.PaddingForTensorflowAveragePoolingValidOnly() } func (nc _NNDefaultPaddingClass) PaddingWithMethod(method NNPaddingMethod) NNDefaultPadding { @@ -58,13 +58,21 @@ func NNDefaultPadding_PaddingWithMethod(method NNPaddingMethod) NNDefaultPadding return NNDefaultPaddingClass.PaddingWithMethod(method) } -func (nc _NNDefaultPaddingClass) Alloc() NNDefaultPadding { - rv := objc.Call[NNDefaultPadding](nc, objc.Sel("alloc")) +func (nc _NNDefaultPaddingClass) PaddingForTensorflowAveragePooling() NNDefaultPadding { + rv := objc.Call[NNDefaultPadding](nc, objc.Sel("paddingForTensorflowAveragePooling")) return rv } -func NNDefaultPadding_Alloc() NNDefaultPadding { - return NNDefaultPaddingClass.Alloc() +// [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 } func (nc _NNDefaultPaddingClass) New() NNDefaultPadding { diff --git a/macos/mps/nn_division_node.gen.go b/macos/mps/nn_division_node.gen.go index 42fb1aa3..479e2f90 100644 --- a/macos/mps/nn_division_node.gen.go +++ b/macos/mps/nn_division_node.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package mps @@ -38,10 +38,6 @@ func (nc _NNDivisionNodeClass) Alloc() NNDivisionNode { return rv } -func NNDivisionNode_Alloc() NNDivisionNode { - return NNDivisionNodeClass.Alloc() -} - func (nc _NNDivisionNodeClass) New() NNDivisionNode { rv := objc.Call[NNDivisionNode](nc, objc.Sel("new")) rv.Autorelease() @@ -69,6 +65,20 @@ 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:"), objc.Ptr(left), objc.Ptr(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:"), objc.Ptr(left), objc.Ptr(right)) return rv @@ -94,17 +104,3 @@ 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:"), objc.Ptr(left), objc.Ptr(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 1e8aee28..1a6331f3 100644 --- a/macos/mps/nn_filter_node.gen.go +++ b/macos/mps/nn_filter_node.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package mps @@ -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() NNPaddingWrapper + PaddingPolicy() NNPaddingObject SetPaddingPolicy(value PNNPadding) SetPaddingPolicyObject(valueObject objc.IObject) + ResultState() NNStateNode + ResultStates() []NNStateNode Label() string SetLabel(value string) } @@ -51,10 +51,6 @@ func (nc _NNFilterNodeClass) Alloc() NNFilterNode { return rv } -func NNFilterNode_Alloc() NNFilterNode { - return NNFilterNodeClass.Alloc() -} - func (nc _NNFilterNodeClass) New() NNFilterNode { rv := objc.Call[NNFilterNode](nc, objc.Sel("new")) rv.Autorelease() @@ -72,25 +68,17 @@ func (n_ NNFilterNode) Init() NNFilterNode { // [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) - return rv -} - -// [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:"), objc.Ptr(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:"), objc.Ptr(gradientImage)) +// [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 } @@ -104,17 +92,17 @@ func (n_ NNFilterNode) TrainingGraphWithSourceGradientNodeHandler(gradientImage // [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/2953944-gradientfilterswithsource?language=objc +func (n_ NNFilterNode) GradientFiltersWithSource(gradientImage INNImageNode) []NNGradientFilterNode { + rv := objc.Call[[]NNGradientFilterNode](n_, objc.Sel("gradientFiltersWithSource:"), objc.Ptr(gradientImage)) return rv } // [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")) +// [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:"), objc.Ptr(gradientImage)) return rv } @@ -126,19 +114,11 @@ 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 -func (n_ NNFilterNode) PaddingPolicy() NNPaddingWrapper { - rv := objc.Call[NNPaddingWrapper](n_, objc.Sel("paddingPolicy")) +func (n_ NNFilterNode) PaddingPolicy() NNPaddingObject { + rv := objc.Call[NNPaddingObject](n_, objc.Sel("paddingPolicy")) return rv } @@ -157,6 +137,22 @@ func (n_ NNFilterNode) SetPaddingPolicyObject(valueObject objc.IObject) { objc.Call[objc.Void](n_, objc.Sel("setPaddingPolicy:"), objc.Ptr(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 7aed7fda..47201646 100644 --- a/macos/mps/nn_forward_loss.gen.go +++ b/macos/mps/nn_forward_loss.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package mps @@ -22,18 +22,20 @@ type INNForwardLoss interface { ICNNKernel EncodeBatchToCommandBufferSourceImagesLabelsWeightsDestinationStatesDestinationStateIsTemporary(commandBuffer metal.PCommandBuffer, sourceImages *foundation.Array, labels *foundation.Array, weights *foundation.Array, outStates *foundation.Array, isTemporary bool) *foundation.Array EncodeBatchToCommandBufferObjectSourceImagesLabelsWeightsDestinationStatesDestinationStateIsTemporary(commandBufferObject objc.IObject, sourceImages *foundation.Array, labels *foundation.Array, weights *foundation.Array, outStates *foundation.Array, 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() float64 + SetLabelSmoothing(value float64) + ReduceAcrossBatch() bool Weight() float64 SetWeight(value float64) + ReductionType() CNNReductionType Epsilon() float64 SetEpsilon(value float64) Delta() float64 SetDelta(value float64) - ReductionType() CNNReductionType - ReduceAcrossBatch() bool - LossType() CNNLossType - LabelSmoothing() float64 - SetLabelSmoothing(value float64) } // [Full Topic] @@ -69,10 +71,6 @@ func (nc _NNForwardLossClass) Alloc() NNForwardLoss { return rv } -func NNForwardLoss_Alloc() NNForwardLoss { - return NNForwardLossClass.Alloc() -} - func (nc _NNForwardLossClass) New() NNForwardLoss { rv := objc.Call[NNForwardLoss](nc, objc.Sel("new")) rv.Autorelease() @@ -106,7 +104,6 @@ func NewNNForwardLossWithDevice(device metal.PDevice) NNForwardLoss { func (n_ NNForwardLoss) CopyWithZoneDevice(zone unsafe.Pointer, device metal.PDevice) NNForwardLoss { po1 := objc.WrapAsProtocol("MTLDevice", device) rv := objc.Call[NNForwardLoss](n_, objc.Sel("copyWithZone:device:"), zone, po1) - rv.Autorelease() return rv } @@ -136,6 +133,21 @@ 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:"), objc.Ptr(commandBufferObject), sourceImages, labels, weights, destinationStates, destinationImages) +} + // [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsnnforwardloss/3131805-numberofclasses?language=objc @@ -146,47 +158,48 @@ func (n_ NNForwardLoss) NumberOfClasses() uint { // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsnnforwardloss/3131807-weight?language=objc -func (n_ NNForwardLoss) Weight() float64 { - rv := objc.Call[float64](n_, objc.Sel("weight")) +// [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/3131807-weight?language=objc -func (n_ NNForwardLoss) SetWeight(value float64) { - objc.Call[objc.Void](n_, objc.Sel("setWeight:"), value) +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsnnforwardloss/3131803-labelsmoothing?language=objc +func (n_ NNForwardLoss) LabelSmoothing() float64 { + rv := objc.Call[float64](n_, objc.Sel("labelSmoothing")) + return rv } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsnnforwardloss/3131800-epsilon?language=objc -func (n_ NNForwardLoss) Epsilon() float64 { - rv := objc.Call[float64](n_, objc.Sel("epsilon")) - return rv +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsnnforwardloss/3131803-labelsmoothing?language=objc +func (n_ NNForwardLoss) SetLabelSmoothing(value float64) { + objc.Call[objc.Void](n_, objc.Sel("setLabelSmoothing:"), value) } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsnnforwardloss/3131800-epsilon?language=objc -func (n_ NNForwardLoss) SetEpsilon(value float64) { - objc.Call[objc.Void](n_, objc.Sel("setEpsilon:"), value) +// [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/3131797-delta?language=objc -func (n_ NNForwardLoss) Delta() float64 { - rv := objc.Call[float64](n_, objc.Sel("delta")) +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsnnforwardloss/3131807-weight?language=objc +func (n_ NNForwardLoss) Weight() float64 { + rv := objc.Call[float64](n_, objc.Sel("weight")) return rv } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsnnforwardloss/3131797-delta?language=objc -func (n_ NNForwardLoss) SetDelta(value float64) { - objc.Call[objc.Void](n_, objc.Sel("setDelta:"), value) +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsnnforwardloss/3131807-weight?language=objc +func (n_ NNForwardLoss) SetWeight(value float64) { + objc.Call[objc.Void](n_, objc.Sel("setWeight:"), value) } // [Full Topic] @@ -199,31 +212,30 @@ func (n_ NNForwardLoss) ReductionType() CNNReductionType { // [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")) +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsnnforwardloss/3131800-epsilon?language=objc +func (n_ NNForwardLoss) Epsilon() float64 { + rv := objc.Call[float64](n_, objc.Sel("epsilon")) return rv } // [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")) - return rv +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsnnforwardloss/3131800-epsilon?language=objc +func (n_ NNForwardLoss) SetEpsilon(value float64) { + objc.Call[objc.Void](n_, objc.Sel("setEpsilon:"), value) } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsnnforwardloss/3131803-labelsmoothing?language=objc -func (n_ NNForwardLoss) LabelSmoothing() float64 { - rv := objc.Call[float64](n_, objc.Sel("labelSmoothing")) +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsnnforwardloss/3131797-delta?language=objc +func (n_ NNForwardLoss) Delta() float64 { + rv := objc.Call[float64](n_, objc.Sel("delta")) return rv } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsnnforwardloss/3131803-labelsmoothing?language=objc -func (n_ NNForwardLoss) SetLabelSmoothing(value float64) { - objc.Call[objc.Void](n_, objc.Sel("setLabelSmoothing:"), value) +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsnnforwardloss/3131797-delta?language=objc +func (n_ NNForwardLoss) SetDelta(value float64) { + objc.Call[objc.Void](n_, objc.Sel("setDelta:"), value) } diff --git a/macos/mps/nn_forward_loss_node.gen.go b/macos/mps/nn_forward_loss_node.gen.go index df743be8..69ae9d84 100644 --- a/macos/mps/nn_forward_loss_node.gen.go +++ b/macos/mps/nn_forward_loss_node.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package mps @@ -18,17 +18,17 @@ type _NNForwardLossNodeClass struct { // An interface definition for the [NNForwardLossNode] class. type INNForwardLossNode interface { INNFilterNode - NumberOfClasses() uint - Weight() float64 - PropertyCallBack() NNLossCallbackWrapper + Delta() float64 + PropertyCallBack() NNLossCallbackObject SetPropertyCallBack(value PNNLossCallback) SetPropertyCallBackObject(valueObject objc.IObject) + NumberOfClasses() uint Epsilon() float64 - Delta() float64 ReductionType() CNNReductionType + LabelSmoothing() float64 ReduceAcrossBatch() bool + Weight() float64 LossType() CNNLossType - LabelSmoothing() float64 } // [Full Topic] @@ -44,18 +44,6 @@ 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, objc.Ptr(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:"), objc.Ptr(source), objc.Ptr(labels), objc.Ptr(descriptor)) return rv @@ -82,6 +70,32 @@ 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:"), objc.Ptr(source), objc.Ptr(labels), objc.Ptr(weights), objc.Ptr(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, objc.Ptr(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:"), objc.Ptr(source), objc.Ptr(labels), objc.Ptr(descriptor)) return rv @@ -96,13 +110,21 @@ func NewNNForwardLossNodeWithSourceLabelsLossDescriptor(source INNImageNode, lab return instance } -func (nc _NNForwardLossNodeClass) Alloc() NNForwardLossNode { - rv := objc.Call[NNForwardLossNode](nc, objc.Sel("alloc")) +func (nc _NNForwardLossNodeClass) NodeWithSourceLabelsWeightsLossDescriptor(source INNImageNode, labels INNImageNode, weights INNImageNode, descriptor ICNNLossDescriptor) NNForwardLossNode { + rv := objc.Call[NNForwardLossNode](nc, objc.Sel("nodeWithSource:labels:weights:lossDescriptor:"), objc.Ptr(source), objc.Ptr(labels), objc.Ptr(weights), objc.Ptr(descriptor)) return rv } -func NNForwardLossNode_Alloc() NNForwardLossNode { - return NNForwardLossNodeClass.Alloc() +// [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 } func (nc _NNForwardLossNodeClass) New() NNForwardLossNode { @@ -122,25 +144,17 @@ func (n_ NNForwardLossNode) Init() NNForwardLossNode { // [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/3131843-weight?language=objc -func (n_ NNForwardLossNode) Weight() float64 { - rv := objc.Call[float64](n_, objc.Sel("weight")) +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsnnforwardlossnode/3131826-delta?language=objc +func (n_ NNForwardLossNode) Delta() float64 { + rv := objc.Call[float64](n_, objc.Sel("delta")) return rv } // [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsnnforwardlossnode/3131841-propertycallback?language=objc -func (n_ NNForwardLossNode) PropertyCallBack() NNLossCallbackWrapper { - rv := objc.Call[NNLossCallbackWrapper](n_, objc.Sel("propertyCallBack")) +func (n_ NNForwardLossNode) PropertyCallBack() NNLossCallbackObject { + rv := objc.Call[NNLossCallbackObject](n_, objc.Sel("propertyCallBack")) return rv } @@ -161,17 +175,17 @@ func (n_ NNForwardLossNode) SetPropertyCallBackObject(valueObject objc.IObject) // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsnnforwardlossnode/3131827-epsilon?language=objc -func (n_ NNForwardLossNode) Epsilon() float64 { - rv := objc.Call[float64](n_, objc.Sel("epsilon")) +// [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/3131826-delta?language=objc -func (n_ NNForwardLossNode) Delta() float64 { - rv := objc.Call[float64](n_, objc.Sel("delta")) +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsnnforwardlossnode/3131827-epsilon?language=objc +func (n_ NNForwardLossNode) Epsilon() float64 { + rv := objc.Call[float64](n_, objc.Sel("epsilon")) return rv } @@ -183,6 +197,14 @@ func (n_ NNForwardLossNode) ReductionType() CNNReductionType { return rv } +// [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsnnforwardlossnode/3131835-labelsmoothing?language=objc +func (n_ NNForwardLossNode) LabelSmoothing() float64 { + rv := objc.Call[float64](n_, objc.Sel("labelSmoothing")) + return rv +} + // [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsnnforwardlossnode/3547987-reduceacrossbatch?language=objc @@ -193,16 +215,16 @@ func (n_ NNForwardLossNode) ReduceAcrossBatch() bool { // [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/3131843-weight?language=objc +func (n_ NNForwardLossNode) Weight() float64 { + rv := objc.Call[float64](n_, objc.Sel("weight")) return rv } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsnnforwardlossnode/3131835-labelsmoothing?language=objc -func (n_ NNForwardLossNode) LabelSmoothing() float64 { - rv := objc.Call[float64](n_, objc.Sel("labelSmoothing")) +// [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 } diff --git a/macos/mps/nn_gradient_filter_node.gen.go b/macos/mps/nn_gradient_filter_node.gen.go index 55257b1f..c0007a59 100644 --- a/macos/mps/nn_gradient_filter_node.gen.go +++ b/macos/mps/nn_gradient_filter_node.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package mps @@ -38,10 +38,6 @@ func (nc _NNGradientFilterNodeClass) Alloc() NNGradientFilterNode { return rv } -func NNGradientFilterNode_Alloc() NNGradientFilterNode { - return NNGradientFilterNodeClass.Alloc() -} - func (nc _NNGradientFilterNodeClass) New() NNGradientFilterNode { rv := objc.Call[NNGradientFilterNode](nc, objc.Sel("new")) rv.Autorelease() diff --git a/macos/mps/nn_gradient_state.gen.go b/macos/mps/nn_gradient_state.gen.go index 9ae0602f..4bd0843a 100644 --- a/macos/mps/nn_gradient_state.gen.go +++ b/macos/mps/nn_gradient_state.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package mps @@ -39,10 +39,6 @@ func (nc _NNGradientStateClass) Alloc() NNGradientState { return rv } -func NNGradientState_Alloc() NNGradientState { - return NNGradientStateClass.Alloc() -} - func (nc _NNGradientStateClass) New() NNGradientState { rv := objc.Call[NNGradientState](nc, objc.Sel("new")) rv.Autorelease() @@ -58,16 +54,45 @@ func (n_ NNGradientState) Init() NNGradientState { return rv } -func (n_ NNGradientState) InitWithResources(resources []metal.PResource) NNGradientState { - rv := objc.Call[NNGradientState](n_, objc.Sel("initWithResources:"), resources) +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, objc.Ptr(resourceList)) 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/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, objc.Ptr(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) + 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) instance.Autorelease() return instance } @@ -87,30 +112,70 @@ func NewNNGradientStateWithDeviceBufferSize(device metal.PDevice, bufferSize uin 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 } -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, objc.Ptr(resourceList)) +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/2947915-temporarystatewithcommandbuffer?language=objc -func NNGradientState_TemporaryStateWithCommandBufferResourceList(commandBuffer metal.PCommandBuffer, resourceList IStateResourceList) NNGradientState { - return NNGradientStateClass.TemporaryStateWithCommandBufferResourceList(commandBuffer, resourceList) +// [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, objc.Ptr(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, objc.Ptr(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 } diff --git a/macos/mps/nn_gradient_state_node.gen.go b/macos/mps/nn_gradient_state_node.gen.go index 563a4ef8..1e262e2e 100644 --- a/macos/mps/nn_gradient_state_node.gen.go +++ b/macos/mps/nn_gradient_state_node.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package mps @@ -38,10 +38,6 @@ func (nc _NNGradientStateNodeClass) Alloc() NNGradientStateNode { return rv } -func NNGradientStateNode_Alloc() NNGradientStateNode { - return NNGradientStateNodeClass.Alloc() -} - func (nc _NNGradientStateNodeClass) New() NNGradientStateNode { rv := objc.Call[NNGradientStateNode](nc, objc.Sel("new")) rv.Autorelease() diff --git a/macos/mps/nn_gram_matrix_calculation.gen.go b/macos/mps/nn_gram_matrix_calculation.gen.go index e21e86e8..64263474 100644 --- a/macos/mps/nn_gram_matrix_calculation.gen.go +++ b/macos/mps/nn_gram_matrix_calculation.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package mps @@ -51,13 +51,24 @@ func NewNNGramMatrixCalculationWithDevice(device metal.PDevice) NNGramMatrixCalc return instance } -func (nc _NNGramMatrixCalculationClass) Alloc() NNGramMatrixCalculation { - rv := objc.Call[NNGramMatrixCalculation](nc, objc.Sel("alloc")) +func (n_ NNGramMatrixCalculation) InitWithDeviceAlpha(device metal.PDevice, alpha float64) NNGramMatrixCalculation { + po0 := objc.WrapAsProtocol("MTLDevice", device) + rv := objc.Call[NNGramMatrixCalculation](n_, objc.Sel("initWithDevice:alpha:"), po0, alpha) return rv } -func NNGramMatrixCalculation_Alloc() NNGramMatrixCalculation { - return NNGramMatrixCalculationClass.Alloc() +// [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsnngrammatrixcalculation/3114080-initwithdevice?language=objc +func NewNNGramMatrixCalculationWithDeviceAlpha(device metal.PDevice, alpha float64) 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 } func (nc _NNGramMatrixCalculationClass) New() NNGramMatrixCalculation { @@ -78,7 +89,6 @@ func (n_ NNGramMatrixCalculation) Init() NNGramMatrixCalculation { func (n_ NNGramMatrixCalculation) CopyWithZoneDevice(zone unsafe.Pointer, device metal.PDevice) NNGramMatrixCalculation { po1 := objc.WrapAsProtocol("MTLDevice", device) rv := objc.Call[NNGramMatrixCalculation](n_, objc.Sel("copyWithZone:device:"), zone, po1) - rv.Autorelease() 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 0cba608b..5f3a8ec7 100644 --- a/macos/mps/nn_gram_matrix_calculation_gradient.gen.go +++ b/macos/mps/nn_gram_matrix_calculation_gradient.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package mps @@ -51,13 +51,24 @@ func NewNNGramMatrixCalculationGradientWithDevice(device metal.PDevice) NNGramMa return instance } -func (nc _NNGramMatrixCalculationGradientClass) Alloc() NNGramMatrixCalculationGradient { - rv := objc.Call[NNGramMatrixCalculationGradient](nc, objc.Sel("alloc")) +func (n_ NNGramMatrixCalculationGradient) InitWithDeviceAlpha(device metal.PDevice, alpha float64) NNGramMatrixCalculationGradient { + po0 := objc.WrapAsProtocol("MTLDevice", device) + rv := objc.Call[NNGramMatrixCalculationGradient](n_, objc.Sel("initWithDevice:alpha:"), po0, alpha) return rv } -func NNGramMatrixCalculationGradient_Alloc() NNGramMatrixCalculationGradient { - return NNGramMatrixCalculationGradientClass.Alloc() +// [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsnngrammatrixcalculationgradient/3114085-initwithdevice?language=objc +func NewNNGramMatrixCalculationGradientWithDeviceAlpha(device metal.PDevice, alpha float64) 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 } func (nc _NNGramMatrixCalculationGradientClass) New() NNGramMatrixCalculationGradient { @@ -78,7 +89,6 @@ func (n_ NNGramMatrixCalculationGradient) Init() NNGramMatrixCalculationGradient func (n_ NNGramMatrixCalculationGradient) CopyWithZoneDevice(zone unsafe.Pointer, device metal.PDevice) NNGramMatrixCalculationGradient { po1 := objc.WrapAsProtocol("MTLDevice", device) rv := objc.Call[NNGramMatrixCalculationGradient](n_, objc.Sel("copyWithZone:device:"), zone, po1) - rv.Autorelease() 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 f59a639c..17094399 100644 --- a/macos/mps/nn_gram_matrix_calculation_gradient_node.gen.go +++ b/macos/mps/nn_gram_matrix_calculation_gradient_node.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package mps @@ -34,6 +34,30 @@ func NNGramMatrixCalculationGradientNodeFrom(ptr unsafe.Pointer) NNGramMatrixCal } } +func (nc _NNGramMatrixCalculationGradientNodeClass) NodeWithSourceGradientSourceImageGradientStateAlpha(sourceGradient INNImageNode, sourceImage INNImageNode, gradientState INNGradientStateNode, alpha float64) NNGramMatrixCalculationGradientNode { + rv := objc.Call[NNGramMatrixCalculationGradientNode](nc, objc.Sel("nodeWithSourceGradient:sourceImage:gradientState:alpha:"), objc.Ptr(sourceGradient), objc.Ptr(sourceImage), objc.Ptr(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 float64) 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:"), objc.Ptr(sourceGradient), objc.Ptr(sourceImage), objc.Ptr(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:"), objc.Ptr(sourceGradient), objc.Ptr(sourceImage), objc.Ptr(gradientState)) return rv @@ -48,16 +72,18 @@ func NewNNGramMatrixCalculationGradientNodeWithSourceGradientSourceImageGradient return instance } -func (nc _NNGramMatrixCalculationGradientNodeClass) NodeWithSourceGradientSourceImageGradientState(sourceGradient INNImageNode, sourceImage INNImageNode, gradientState INNGradientStateNode) NNGramMatrixCalculationGradientNode { - rv := objc.Call[NNGramMatrixCalculationGradientNode](nc, objc.Sel("nodeWithSourceGradient:sourceImage:gradientState:"), objc.Ptr(sourceGradient), objc.Ptr(sourceImage), objc.Ptr(gradientState)) +func (n_ NNGramMatrixCalculationGradientNode) InitWithSourceGradientSourceImageGradientStateAlpha(sourceGradient INNImageNode, sourceImage INNImageNode, gradientState INNGradientStateNode, alpha float64) NNGramMatrixCalculationGradientNode { + rv := objc.Call[NNGramMatrixCalculationGradientNode](n_, objc.Sel("initWithSourceGradient:sourceImage:gradientState:alpha:"), objc.Ptr(sourceGradient), objc.Ptr(sourceImage), objc.Ptr(gradientState), alpha) 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) +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsnngrammatrixcalculationgradientnode/3114090-initwithsourcegradient?language=objc +func NewNNGramMatrixCalculationGradientNodeWithSourceGradientSourceImageGradientStateAlpha(sourceGradient INNImageNode, sourceImage INNImageNode, gradientState INNGradientStateNode, alpha float64) NNGramMatrixCalculationGradientNode { + instance := NNGramMatrixCalculationGradientNodeClass.Alloc().InitWithSourceGradientSourceImageGradientStateAlpha(sourceGradient, sourceImage, gradientState, alpha) + instance.Autorelease() + return instance } func (nc _NNGramMatrixCalculationGradientNodeClass) Alloc() NNGramMatrixCalculationGradientNode { @@ -65,10 +91,6 @@ func (nc _NNGramMatrixCalculationGradientNodeClass) Alloc() NNGramMatrixCalculat return rv } -func NNGramMatrixCalculationGradientNode_Alloc() NNGramMatrixCalculationGradientNode { - return NNGramMatrixCalculationGradientNodeClass.Alloc() -} - func (nc _NNGramMatrixCalculationGradientNodeClass) New() NNGramMatrixCalculationGradientNode { rv := objc.Call[NNGramMatrixCalculationGradientNode](nc, objc.Sel("new")) rv.Autorelease() diff --git a/macos/mps/nn_gram_matrix_calculation_node.gen.go b/macos/mps/nn_gram_matrix_calculation_node.gen.go index a5a493f4..9e472b6e 100644 --- a/macos/mps/nn_gram_matrix_calculation_node.gen.go +++ b/macos/mps/nn_gram_matrix_calculation_node.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package mps @@ -18,10 +18,10 @@ type _NNGramMatrixCalculationNodeClass struct { // An interface definition for the [NNGramMatrixCalculationNode] class. type INNGramMatrixCalculationNode interface { INNFilterNode - PropertyCallBack() NNGramMatrixCallbackWrapper + Alpha() float64 + PropertyCallBack() NNGramMatrixCallbackObject SetPropertyCallBack(value PNNGramMatrixCallback) SetPropertyCallBackObject(valueObject objc.IObject) - Alpha() float64 } // [Full Topic] @@ -63,13 +63,35 @@ func NewNNGramMatrixCalculationNodeWithSource(sourceNode INNImageNode) NNGramMat return instance } -func (nc _NNGramMatrixCalculationNodeClass) Alloc() NNGramMatrixCalculationNode { - rv := objc.Call[NNGramMatrixCalculationNode](nc, objc.Sel("alloc")) +func (n_ NNGramMatrixCalculationNode) InitWithSourceAlpha(sourceNode INNImageNode, alpha float64) NNGramMatrixCalculationNode { + rv := objc.Call[NNGramMatrixCalculationNode](n_, objc.Sel("initWithSource:alpha:"), objc.Ptr(sourceNode), alpha) + return rv +} + +// [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsnngrammatrixcalculationnode/3114096-initwithsource?language=objc +func NewNNGramMatrixCalculationNodeWithSourceAlpha(sourceNode INNImageNode, alpha float64) NNGramMatrixCalculationNode { + instance := NNGramMatrixCalculationNodeClass.Alloc().InitWithSourceAlpha(sourceNode, alpha) + instance.Autorelease() + return instance +} + +func (nc _NNGramMatrixCalculationNodeClass) NodeWithSourceAlpha(sourceNode INNImageNode, alpha float64) NNGramMatrixCalculationNode { + rv := objc.Call[NNGramMatrixCalculationNode](nc, objc.Sel("nodeWithSource:alpha:"), objc.Ptr(sourceNode), alpha) return rv } -func NNGramMatrixCalculationNode_Alloc() NNGramMatrixCalculationNode { - return NNGramMatrixCalculationNodeClass.Alloc() +// [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsnngrammatrixcalculationnode/3114098-nodewithsource?language=objc +func NNGramMatrixCalculationNode_NodeWithSourceAlpha(sourceNode INNImageNode, alpha float64) NNGramMatrixCalculationNode { + return NNGramMatrixCalculationNodeClass.NodeWithSourceAlpha(sourceNode, alpha) +} + +func (nc _NNGramMatrixCalculationNodeClass) Alloc() NNGramMatrixCalculationNode { + rv := objc.Call[NNGramMatrixCalculationNode](nc, objc.Sel("alloc")) + return rv } func (nc _NNGramMatrixCalculationNodeClass) New() NNGramMatrixCalculationNode { @@ -87,11 +109,19 @@ 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() float64 { + rv := objc.Call[float64](n_, objc.Sel("alpha")) + return rv +} + // [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsnngrammatrixcalculationnode/3131844-propertycallback?language=objc -func (n_ NNGramMatrixCalculationNode) PropertyCallBack() NNGramMatrixCallbackWrapper { - rv := objc.Call[NNGramMatrixCallbackWrapper](n_, objc.Sel("propertyCallBack")) +func (n_ NNGramMatrixCalculationNode) PropertyCallBack() NNGramMatrixCallbackObject { + rv := objc.Call[NNGramMatrixCallbackObject](n_, objc.Sel("propertyCallBack")) return rv } @@ -109,11 +139,3 @@ func (n_ NNGramMatrixCalculationNode) SetPropertyCallBack(value PNNGramMatrixCal func (n_ NNGramMatrixCalculationNode) SetPropertyCallBackObject(valueObject objc.IObject) { objc.Call[objc.Void](n_, objc.Sel("setPropertyCallBack:"), objc.Ptr(valueObject)) } - -// [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsnngrammatrixcalculationnode/3114094-alpha?language=objc -func (n_ NNGramMatrixCalculationNode) Alpha() float64 { - rv := objc.Call[float64](n_, objc.Sel("alpha")) - return rv -} diff --git a/macos/mps/nn_gram_matrix_callback.gen.go b/macos/mps/nn_gram_matrix_callback_protocol.gen.go similarity index 63% rename from macos/mps/nn_gram_matrix_callback.gen.go rename to macos/mps/nn_gram_matrix_callback_protocol.gen.go index e91fe717..39790265 100644 --- a/macos/mps/nn_gram_matrix_callback.gen.go +++ b/macos/mps/nn_gram_matrix_callback_protocol.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package mps @@ -15,19 +15,22 @@ type PNNGramMatrixCallback interface { HasAlphaForSourceImageDestinationImage() bool } -// A concrete type wrapper for the [PNNGramMatrixCallback] protocol. -type NNGramMatrixCallbackWrapper struct { +// ensure impl type implements protocol interface +var _ PNNGramMatrixCallback = (*NNGramMatrixCallbackObject)(nil) + +// A concrete type for the [PNNGramMatrixCallback] protocol. +type NNGramMatrixCallbackObject struct { objc.Object } -func (n_ NNGramMatrixCallbackWrapper) HasAlphaForSourceImageDestinationImage() bool { +func (n_ NNGramMatrixCallbackObject) HasAlphaForSourceImageDestinationImage() bool { return n_.RespondsToSelector(objc.Sel("alphaForSourceImage:destinationImage:")) } // [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsnngrammatrixcallback/3131846-alphaforsourceimage?language=objc -func (n_ NNGramMatrixCallbackWrapper) AlphaForSourceImageDestinationImage(sourceImage IImage, destinationImage IImage) float64 { +func (n_ NNGramMatrixCallbackObject) AlphaForSourceImageDestinationImage(sourceImage Image, destinationImage Image) float64 { rv := objc.Call[float64](n_, objc.Sel("alphaForSourceImage:destinationImage:"), objc.Ptr(sourceImage), objc.Ptr(destinationImage)) return rv } diff --git a/macos/mps/nn_graph.gen.go b/macos/mps/nn_graph.gen.go index 5ae9823a..5cd49b02 100644 --- a/macos/mps/nn_graph.gen.go +++ b/macos/mps/nn_graph.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package mps @@ -20,27 +20,31 @@ 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 - ReadCountForSourceImageAtIndex(index uint) uint ExecuteAsyncWithSourceImagesCompletionHandler(sourceImages []IImage, handler NNGraphCompletionHandler) Image - EncodeToCommandBufferSourceImages(commandBuffer metal.PCommandBuffer, sourceImages []IImage) Image - EncodeToCommandBufferObjectSourceImages(commandBufferObject objc.IObject, sourceImages []IImage) Image - ReloadFromDataSources() - IntermediateImageHandles() []HandleWrapper - SourceStateHandles() []HandleWrapper - ResultStateHandles() []HandleWrapper - SourceImageHandles() []HandleWrapper - ResultHandle() HandleWrapper - DestinationImageAllocator() ImageAllocatorWrapper + 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 + ResultStateHandles() []HandleObject + DestinationImageAllocator() ImageAllocatorObject SetDestinationImageAllocator(value PImageAllocator) SetDestinationImageAllocatorObject(valueObject objc.IObject) - ResultImageIsNeeded() bool - Format() ImageFeatureChannelFormat - SetFormat(value ImageFeatureChannelFormat) + SourceStateHandles() []HandleObject OutputStateIsTemporary() bool SetOutputStateIsTemporary(value bool) + IntermediateImageHandles() []HandleObject + ResultHandle() HandleObject + SourceImageHandles() []HandleObject + Format() ImageFeatureChannelFormat + SetFormat(value ImageFeatureChannelFormat) + ResultImageIsNeeded() bool } // An optimized representation of a graph of neural network image and filter nodes. [Full Topic] @@ -56,13 +60,65 @@ func NNGraphFrom(ptr unsafe.Pointer) NNGraph { } } -func (nc _NNGraphClass) Alloc() NNGraph { - rv := objc.Call[NNGraph](nc, objc.Sel("alloc")) +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, objc.Ptr(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 } -func NNGraph_Alloc() NNGraph { - return NNGraphClass.Alloc() +// [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, objc.Ptr(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 } func (nc _NNGraphClass) New() NNGraph { @@ -80,6 +136,21 @@ 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) @@ -95,20 +166,21 @@ func NewNNGraphWithDevice(device metal.PDevice) NNGraph { return instance } -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) - rv.Autorelease() +// [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) return rv } -// Makes a copy of this kernel object for a new device. [Full Topic] +// [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 +// [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:"), objc.Ptr(commandBufferObject), sourceImages) + return rv } // [Full Topic] @@ -130,17 +202,33 @@ func (n_ NNGraph) EncodeBatchToCommandBufferObjectSourceImagesSourceStates(comma // [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/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, objc.Ptr(intermediateImages), objc.Ptr(destinationStates)) 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) +// [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:"), objc.Ptr(commandBufferObject), sourceImages, sourceStates, objc.Ptr(intermediateImages), objc.Ptr(destinationStates)) + 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] +// +// [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 } @@ -154,96 +242,104 @@ func (n_ NNGraph) ExecuteAsyncWithSourceImagesCompletionHandler(sourceImages []I // [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) +// [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/2867036-encodetocommandbuffer?language=objc -func (n_ NNGraph) EncodeToCommandBufferObjectSourceImages(commandBufferObject objc.IObject, sourceImages []IImage) Image { - rv := objc.Call[Image](n_, objc.Sel("encodeToCommandBuffer:sourceImages:"), objc.Ptr(commandBufferObject), sourceImages) +// [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, objc.Ptr(intermediateImages), objc.Ptr(destinationStates)) 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/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:"), objc.Ptr(commandBufferObject), sourceImages, sourceStates, objc.Ptr(intermediateImages), objc.Ptr(destinationStates)) + return rv } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsnngraph/2867000-intermediateimagehandles?language=objc -func (n_ NNGraph) IntermediateImageHandles() []HandleWrapper { - rv := objc.Call[[]HandleWrapper](n_, objc.Sel("intermediateImageHandles")) +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsnngraph/2867149-resultstatehandles?language=objc +func (n_ NNGraph) ResultStateHandles() []HandleObject { + rv := objc.Call[[]HandleObject](n_, objc.Sel("resultStateHandles")) return rv } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsnngraph/2867056-sourcestatehandles?language=objc -func (n_ NNGraph) SourceStateHandles() []HandleWrapper { - rv := objc.Call[[]HandleWrapper](n_, objc.Sel("sourceStateHandles")) +// [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/2867149-resultstatehandles?language=objc -func (n_ NNGraph) ResultStateHandles() []HandleWrapper { - rv := objc.Call[[]HandleWrapper](n_, objc.Sel("resultStateHandles")) - 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/2867012-sourceimagehandles?language=objc -func (n_ NNGraph) SourceImageHandles() []HandleWrapper { - rv := objc.Call[[]HandleWrapper](n_, objc.Sel("sourceImageHandles")) - 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:"), objc.Ptr(valueObject)) } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsnngraph/2867123-resulthandle?language=objc -func (n_ NNGraph) ResultHandle() HandleWrapper { - rv := objc.Call[HandleWrapper](n_, objc.Sel("resultHandle")) +// [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 } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsnngraph/2866998-destinationimageallocator?language=objc -func (n_ NNGraph) DestinationImageAllocator() ImageAllocatorWrapper { - rv := objc.Call[ImageAllocatorWrapper](n_, objc.Sel("destinationImageAllocator")) +// [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/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]: 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/2866998-destinationimageallocator?language=objc -func (n_ NNGraph) SetDestinationImageAllocatorObject(valueObject objc.IObject) { - objc.Call[objc.Void](n_, objc.Sel("setDestinationImageAllocator:"), objc.Ptr(valueObject)) +// [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/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/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/2867012-sourceimagehandles?language=objc +func (n_ NNGraph) SourceImageHandles() []HandleObject { + rv := objc.Call[[]HandleObject](n_, objc.Sel("sourceImageHandles")) return rv } @@ -264,15 +360,8 @@ func (n_ NNGraph) SetFormat(value ImageFeatureChannelFormat) { // [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/2953954-resultimageisneeded?language=objc +func (n_ NNGraph) ResultImageIsNeeded() bool { + rv := objc.Call[bool](n_, objc.Sel("resultImageIsNeeded")) 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_grid_sample.gen.go b/macos/mps/nn_grid_sample.gen.go index d546d840..b6585495 100644 --- a/macos/mps/nn_grid_sample.gen.go +++ b/macos/mps/nn_grid_sample.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package mps @@ -56,10 +56,6 @@ func (nc _NNGridSampleClass) Alloc() NNGridSample { return rv } -func NNGridSample_Alloc() NNGridSample { - return NNGridSampleClass.Alloc() -} - func (nc _NNGridSampleClass) New() NNGridSample { rv := objc.Call[NNGridSample](nc, objc.Sel("new")) rv.Autorelease() @@ -78,7 +74,6 @@ func (n_ NNGridSample) Init() NNGridSample { func (n_ NNGridSample) CopyWithZoneDevice(zone unsafe.Pointer, device metal.PDevice) NNGridSample { po1 := objc.WrapAsProtocol("MTLDevice", device) rv := objc.Call[NNGridSample](n_, objc.Sel("copyWithZone:device:"), zone, po1) - rv.Autorelease() return rv } diff --git a/macos/mps/nn_image_node.gen.go b/macos/mps/nn_image_node.gen.go index ea4717ee..8e5bdaf6 100644 --- a/macos/mps/nn_image_node.gen.go +++ b/macos/mps/nn_image_node.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package mps @@ -18,20 +18,20 @@ type _NNImageNodeClass struct { // An interface definition for the [NNImageNode] class. type INNImageNode interface { objc.IObject - Handle() HandleWrapper + 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() ImageAllocatorWrapper - 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,18 +59,6 @@ func NNImageNode_ExportedNodeWithHandle(handle objc.IObject) NNImageNode { return NNImageNodeClass.ExportedNodeWithHandle(handle) } -func (nc _NNImageNodeClass) NodeWithHandle(handle objc.IObject) NNImageNode { - rv := objc.Call[NNImageNode](nc, objc.Sel("nodeWithHandle:"), objc.Ptr(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) -} - func (n_ NNImageNode) InitWithHandle(handle objc.IObject) NNImageNode { rv := objc.Call[NNImageNode](n_, objc.Sel("initWithHandle:"), objc.Ptr(handle)) return rv @@ -85,13 +73,21 @@ func NewNNImageNodeWithHandle(handle objc.IObject) NNImageNode { return instance } -func (nc _NNImageNodeClass) Alloc() NNImageNode { - rv := objc.Call[NNImageNode](nc, objc.Sel("alloc")) +func (nc _NNImageNodeClass) NodeWithHandle(handle objc.IObject) NNImageNode { + rv := objc.Call[NNImageNode](nc, objc.Sel("nodeWithHandle:"), objc.Ptr(handle)) return rv } -func NNImageNode_Alloc() NNImageNode { - return NNImageNodeClass.Alloc() +// [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) +} + +func (nc _NNImageNodeClass) Alloc() NNImageNode { + rv := objc.Call[NNImageNode](nc, objc.Sel("alloc")) + return rv } func (nc _NNImageNodeClass) New() NNImageNode { @@ -111,55 +107,63 @@ func (n_ NNImageNode) Init() NNImageNode { // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsnnimagenode/2866406-handle?language=objc -func (n_ NNImageNode) Handle() HandleWrapper { - rv := objc.Call[HandleWrapper](n_, objc.Sel("handle")) +// [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/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]: 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] // -// [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:"), objc.Ptr(valueObject)) +// [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) ExportFromGraph() bool { - rv := objc.Call[bool](n_, objc.Sel("exportFromGraph")) - return rv +// [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/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) SetImageAllocatorObject(valueObject objc.IObject) { + objc.Call[objc.Void](n_, objc.Sel("setImageAllocator:"), objc.Ptr(valueObject)) } // [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/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/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/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:"), objc.Ptr(valueObject)) } // [Full Topic] @@ -179,38 +183,30 @@ func (n_ NNImageNode) SetSynchronizeResource(value bool) { // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsnnimagenode/2866490-imageallocator?language=objc -func (n_ NNImageNode) ImageAllocator() ImageAllocatorWrapper { - rv := objc.Call[ImageAllocatorWrapper](n_, objc.Sel("imageAllocator")) +// [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) 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/2866490-imageallocator?language=objc -func (n_ NNImageNode) SetImageAllocatorObject(valueObject objc.IObject) { - objc.Call[objc.Void](n_, objc.Sel("setImageAllocator:"), objc.Ptr(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/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/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/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/3020689-stopgradient?language=objc +func (n_ NNImageNode) SetStopGradient(value bool) { + objc.Call[objc.Void](n_, objc.Sel("setStopGradient:"), value) } diff --git a/macos/mps/nn_initial_gradient.gen.go b/macos/mps/nn_initial_gradient.gen.go index 1a43ac68..6ac3dc79 100644 --- a/macos/mps/nn_initial_gradient.gen.go +++ b/macos/mps/nn_initial_gradient.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package mps @@ -54,10 +54,6 @@ func (nc _NNInitialGradientClass) Alloc() NNInitialGradient { return rv } -func NNInitialGradient_Alloc() NNInitialGradient { - return NNInitialGradientClass.Alloc() -} - func (nc _NNInitialGradientClass) New() NNInitialGradient { rv := objc.Call[NNInitialGradient](nc, objc.Sel("new")) rv.Autorelease() @@ -76,7 +72,6 @@ func (n_ NNInitialGradient) Init() NNInitialGradient { func (n_ NNInitialGradient) CopyWithZoneDevice(zone unsafe.Pointer, device metal.PDevice) NNInitialGradient { po1 := objc.WrapAsProtocol("MTLDevice", device) rv := objc.Call[NNInitialGradient](n_, objc.Sel("copyWithZone:device:"), zone, po1) - rv.Autorelease() return rv } diff --git a/macos/mps/nn_initial_gradient_node.gen.go b/macos/mps/nn_initial_gradient_node.gen.go index 782bffef..64d31d4d 100644 --- a/macos/mps/nn_initial_gradient_node.gen.go +++ b/macos/mps/nn_initial_gradient_node.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package mps @@ -33,18 +33,6 @@ func NNInitialGradientNodeFrom(ptr unsafe.Pointer) NNInitialGradientNode { } } -func (nc _NNInitialGradientNodeClass) NodeWithSource(source INNImageNode) NNInitialGradientNode { - rv := objc.Call[NNInitialGradientNode](nc, objc.Sel("nodeWithSource:"), objc.Ptr(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) -} - func (n_ NNInitialGradientNode) InitWithSource(source INNImageNode) NNInitialGradientNode { rv := objc.Call[NNInitialGradientNode](n_, objc.Sel("initWithSource:"), objc.Ptr(source)) return rv @@ -59,13 +47,21 @@ func NewNNInitialGradientNodeWithSource(source INNImageNode) NNInitialGradientNo return instance } -func (nc _NNInitialGradientNodeClass) Alloc() NNInitialGradientNode { - rv := objc.Call[NNInitialGradientNode](nc, objc.Sel("alloc")) +func (nc _NNInitialGradientNodeClass) NodeWithSource(source INNImageNode) NNInitialGradientNode { + rv := objc.Call[NNInitialGradientNode](nc, objc.Sel("nodeWithSource:"), objc.Ptr(source)) return rv } -func NNInitialGradientNode_Alloc() NNInitialGradientNode { - return NNInitialGradientNodeClass.Alloc() +// [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) +} + +func (nc _NNInitialGradientNodeClass) Alloc() NNInitialGradientNode { + rv := objc.Call[NNInitialGradientNode](nc, objc.Sel("alloc")) + return rv } func (nc _NNInitialGradientNodeClass) New() NNInitialGradientNode { diff --git a/macos/mps/nn_labels_node.gen.go b/macos/mps/nn_labels_node.gen.go index 7f5884af..bf134171 100644 --- a/macos/mps/nn_labels_node.gen.go +++ b/macos/mps/nn_labels_node.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package mps @@ -38,10 +38,6 @@ func (nc _NNLabelsNodeClass) Alloc() NNLabelsNode { return rv } -func NNLabelsNode_Alloc() NNLabelsNode { - return NNLabelsNodeClass.Alloc() -} - func (nc _NNLabelsNodeClass) New() NNLabelsNode { rv := objc.Call[NNLabelsNode](nc, objc.Sel("new")) rv.Autorelease() diff --git a/macos/mps/nn_lanczos_scale_node.gen.go b/macos/mps/nn_lanczos_scale_node.gen.go index 365b6b6e..de2b2491 100644 --- a/macos/mps/nn_lanczos_scale_node.gen.go +++ b/macos/mps/nn_lanczos_scale_node.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package mps @@ -39,10 +39,6 @@ func (nc _NNLanczosScaleNodeClass) Alloc() NNLanczosScaleNode { return rv } -func NNLanczosScaleNode_Alloc() NNLanczosScaleNode { - return NNLanczosScaleNodeClass.Alloc() -} - func (nc _NNLanczosScaleNodeClass) New() NNLanczosScaleNode { rv := objc.Call[NNLanczosScaleNode](nc, objc.Sel("new")) rv.Autorelease() @@ -58,6 +54,35 @@ 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:"), objc.Ptr(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:"), objc.Ptr(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:"), objc.Ptr(sourceNode), size) return rv @@ -70,16 +95,15 @@ func NNLanczosScaleNode_NodeWithSourceOutputSize(sourceNode INNImageNode, size m return NNLanczosScaleNodeClass.NodeWithSourceOutputSize(sourceNode, size) } -func (n_ NNLanczosScaleNode) InitWithSourceOutputSize(sourceNode INNImageNode, size metal.Size) NNLanczosScaleNode { - rv := objc.Call[NNLanczosScaleNode](n_, objc.Sel("initWithSource:outputSize:"), objc.Ptr(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:"), objc.Ptr(sourceNode), po1, 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 +// [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) } diff --git a/macos/mps/nn_local_correlation.gen.go b/macos/mps/nn_local_correlation.gen.go index ab71cb25..cb73282e 100644 --- a/macos/mps/nn_local_correlation.gen.go +++ b/macos/mps/nn_local_correlation.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package mps @@ -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,13 +57,24 @@ func NewNNLocalCorrelationWithDevice(device metal.PDevice) NNLocalCorrelation { return instance } -func (nc _NNLocalCorrelationClass) Alloc() NNLocalCorrelation { - rv := objc.Call[NNLocalCorrelation](nc, objc.Sel("alloc")) +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 } -func NNLocalCorrelation_Alloc() NNLocalCorrelation { - return NNLocalCorrelationClass.Alloc() +// [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 } func (nc _NNLocalCorrelationClass) New() NNLocalCorrelation { @@ -84,7 +95,6 @@ func (n_ NNLocalCorrelation) Init() NNLocalCorrelation { func (n_ NNLocalCorrelation) CopyWithZoneDevice(zone unsafe.Pointer, device metal.PDevice) NNLocalCorrelation { po1 := objc.WrapAsProtocol("MTLDevice", device) rv := objc.Call[NNLocalCorrelation](n_, objc.Sel("copyWithZone:device:"), zone, po1) - rv.Autorelease() return rv } @@ -99,60 +109,60 @@ func NNLocalCorrelation_CopyWithZoneDevice(zone unsafe.Pointer, device metal.PDe // [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/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/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/3131880-windowiny?language=objc +func (n_ NNLocalCorrelation) SetWindowInY(value uint) { + objc.Call[objc.Void](n_, objc.Sel("setWindowInY:"), 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/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/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/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/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/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/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/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/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/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/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/3131878-strideiny?language=objc +func (n_ NNLocalCorrelation) SetStrideInY(value uint) { + objc.Call[objc.Void](n_, objc.Sel("setStrideInY:"), value) } diff --git a/macos/mps/nn_loss_callback.gen.go b/macos/mps/nn_loss_callback_protocol.gen.go similarity index 64% rename from macos/mps/nn_loss_callback.gen.go rename to macos/mps/nn_loss_callback_protocol.gen.go index 4ff2f0be..b6aa7f9d 100644 --- a/macos/mps/nn_loss_callback.gen.go +++ b/macos/mps/nn_loss_callback_protocol.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package mps @@ -15,19 +15,22 @@ type PNNLossCallback interface { HasScalarWeightForSourceImageDestinationImage() bool } -// A concrete type wrapper for the [PNNLossCallback] protocol. -type NNLossCallbackWrapper struct { +// ensure impl type implements protocol interface +var _ PNNLossCallback = (*NNLossCallbackObject)(nil) + +// A concrete type for the [PNNLossCallback] protocol. +type NNLossCallbackObject struct { objc.Object } -func (n_ NNLossCallbackWrapper) HasScalarWeightForSourceImageDestinationImage() bool { +func (n_ NNLossCallbackObject) HasScalarWeightForSourceImageDestinationImage() bool { return n_.RespondsToSelector(objc.Sel("scalarWeightForSourceImage:destinationImage:")) } // [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsnnlosscallback/3131851-scalarweightforsourceimage?language=objc -func (n_ NNLossCallbackWrapper) ScalarWeightForSourceImageDestinationImage(sourceImage IImage, destinationImage IImage) float64 { +func (n_ NNLossCallbackObject) ScalarWeightForSourceImageDestinationImage(sourceImage Image, destinationImage Image) float64 { rv := objc.Call[float64](n_, objc.Sel("scalarWeightForSourceImage:destinationImage:"), objc.Ptr(sourceImage), objc.Ptr(destinationImage)) return rv } diff --git a/macos/mps/nn_loss_gradient.gen.go b/macos/mps/nn_loss_gradient.gen.go index d69b0e31..86d8c442 100644 --- a/macos/mps/nn_loss_gradient.gen.go +++ b/macos/mps/nn_loss_gradient.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package mps @@ -22,20 +22,22 @@ 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) - NumberOfClasses() uint + 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 Weight() float64 SetWeight(value float64) - Epsilon() float64 - SetEpsilon(value float64) - Delta() float64 - SetDelta(value float64) + NumberOfClasses() uint + ReductionType() CNNReductionType ComputeLabelGradients() bool SetComputeLabelGradients(value bool) - ReductionType() CNNReductionType - ReduceAcrossBatch() bool - LossType() CNNLossType LabelSmoothing() float64 SetLabelSmoothing(value float64) + Delta() float64 + SetDelta(value float64) + Epsilon() float64 + SetEpsilon(value float64) + ReduceAcrossBatch() bool } // [Full Topic] @@ -71,10 +73,6 @@ func (nc _NNLossGradientClass) Alloc() NNLossGradient { return rv } -func NNLossGradient_Alloc() NNLossGradient { - return NNLossGradientClass.Alloc() -} - func (nc _NNLossGradientClass) New() NNLossGradient { rv := objc.Call[NNLossGradient](nc, objc.Sel("new")) rv.Autorelease() @@ -108,7 +106,6 @@ func NewNNLossGradientWithDevice(device metal.PDevice) NNLossGradient { func (n_ NNLossGradient) CopyWithZoneDevice(zone unsafe.Pointer, device metal.PDevice) NNLossGradient { po1 := objc.WrapAsProtocol("MTLDevice", device) rv := objc.Call[NNLossGradient](n_, objc.Sel("copyWithZone:device:"), zone, po1) - rv.Autorelease() return rv } @@ -138,55 +135,58 @@ func (n_ NNLossGradient) EncodeBatchToCommandBufferObjectSourceGradientsSourceIm // [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/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) return rv } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsnnlossgradient/3131822-weight?language=objc -func (n_ NNLossGradient) Weight() float64 { - rv := objc.Call[float64](n_, objc.Sel("weight")) +// [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:"), objc.Ptr(commandBufferObject), sourceGradients, sourceImages, labels, weights, sourceStates) return rv } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsnnlossgradient/3131822-weight?language=objc -func (n_ NNLossGradient) SetWeight(value float64) { - objc.Call[objc.Void](n_, objc.Sel("setWeight:"), value) +// [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) Epsilon() float64 { - rv := objc.Call[float64](n_, objc.Sel("epsilon")) +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsnnlossgradient/3131822-weight?language=objc +func (n_ NNLossGradient) Weight() float64 { + rv := objc.Call[float64](n_, objc.Sel("weight")) return rv } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsnnlossgradient/3131815-epsilon?language=objc -func (n_ NNLossGradient) SetEpsilon(value float64) { - objc.Call[objc.Void](n_, objc.Sel("setEpsilon:"), value) +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsnnlossgradient/3131822-weight?language=objc +func (n_ NNLossGradient) SetWeight(value float64) { + objc.Call[objc.Void](n_, objc.Sel("setWeight:"), value) } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsnnlossgradient/3131812-delta?language=objc -func (n_ NNLossGradient) Delta() float64 { - rv := objc.Call[float64](n_, objc.Sel("delta")) +// [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/3131812-delta?language=objc -func (n_ NNLossGradient) SetDelta(value float64) { - objc.Call[objc.Void](n_, objc.Sel("setDelta:"), value) +// [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] @@ -206,39 +206,53 @@ func (n_ NNLossGradient) SetComputeLabelGradients(value bool) { // [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")) +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsnnlossgradient/3131818-labelsmoothing?language=objc +func (n_ NNLossGradient) LabelSmoothing() float64 { + rv := objc.Call[float64](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 float64) { + objc.Call[objc.Void](n_, objc.Sel("setLabelSmoothing:"), value) } // [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")) +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsnnlossgradient/3131812-delta?language=objc +func (n_ NNLossGradient) Delta() float64 { + rv := objc.Call[float64](n_, objc.Sel("delta")) return rv } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsnnlossgradient/3131818-labelsmoothing?language=objc -func (n_ NNLossGradient) LabelSmoothing() float64 { - rv := objc.Call[float64](n_, objc.Sel("labelSmoothing")) +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsnnlossgradient/3131812-delta?language=objc +func (n_ NNLossGradient) SetDelta(value float64) { + 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() float64 { + rv := objc.Call[float64](n_, objc.Sel("epsilon")) return rv } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsnnlossgradient/3131818-labelsmoothing?language=objc -func (n_ NNLossGradient) SetLabelSmoothing(value float64) { - objc.Call[objc.Void](n_, objc.Sel("setLabelSmoothing:"), value) +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsnnlossgradient/3131815-epsilon?language=objc +func (n_ NNLossGradient) SetEpsilon(value float64) { + objc.Call[objc.Void](n_, objc.Sel("setEpsilon:"), value) +} + +// [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 } diff --git a/macos/mps/nn_loss_gradient_node.gen.go b/macos/mps/nn_loss_gradient_node.gen.go index af32da5c..fbc2eb93 100644 --- a/macos/mps/nn_loss_gradient_node.gen.go +++ b/macos/mps/nn_loss_gradient_node.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package mps @@ -18,17 +18,17 @@ type _NNLossGradientNodeClass struct { // An interface definition for the [NNLossGradientNode] class. type INNLossGradientNode interface { INNGradientFilterNode - NumberOfClasses() uint - Weight() float64 - IsLabelsGradientFilter() bool - PropertyCallBack() NNLossCallbackWrapper + PropertyCallBack() NNLossCallbackObject SetPropertyCallBack(value PNNLossCallback) SetPropertyCallBackObject(valueObject objc.IObject) - Epsilon() float64 - Delta() float64 + LossType() CNNLossType + NumberOfClasses() uint + IsLabelsGradientFilter() bool + Weight() float64 ReductionType() CNNReductionType + Delta() float64 + Epsilon() float64 ReduceAcrossBatch() bool - LossType() CNNLossType LabelSmoothing() float64 } @@ -45,18 +45,6 @@ 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, objc.Ptr(gradientState), objc.Ptr(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:"), objc.Ptr(sourceGradient), objc.Ptr(sourceImage), objc.Ptr(labels), objc.Ptr(gradientState), objc.Ptr(descriptor), isLabelsGradientFilter) return rv @@ -83,6 +71,44 @@ 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:"), objc.Ptr(sourceGradient), objc.Ptr(sourceImage), objc.Ptr(labels), objc.Ptr(weights), objc.Ptr(gradientState), objc.Ptr(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:"), objc.Ptr(sourceGradient), objc.Ptr(sourceImage), objc.Ptr(labels), objc.Ptr(weights), objc.Ptr(gradientState), objc.Ptr(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, objc.Ptr(gradientState), objc.Ptr(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, objc.Ptr(gradientState), objc.Ptr(descriptor), isLabelsGradientFilter) return rv @@ -102,10 +128,6 @@ func (nc _NNLossGradientNodeClass) Alloc() NNLossGradientNode { return rv } -func NNLossGradientNode_Alloc() NNLossGradientNode { - return NNLossGradientNodeClass.Alloc() -} - func (nc _NNLossGradientNodeClass) New() NNLossGradientNode { rv := objc.Call[NNLossGradientNode](nc, objc.Sel("new")) rv.Autorelease() @@ -123,56 +145,64 @@ func (n_ NNLossGradientNode) Init() NNLossGradientNode { // [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/3131867-weight?language=objc -func (n_ NNLossGradientNode) Weight() float64 { - rv := objc.Call[float64](n_, objc.Sel("weight")) - 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/3131858-islabelsgradientfilter?language=objc -func (n_ NNLossGradientNode) IsLabelsGradientFilter() bool { - rv := objc.Call[bool](n_, objc.Sel("isLabelsGradientFilter")) +// [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:"), objc.Ptr(valueObject)) +} + +// [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/3131865-propertycallback?language=objc -func (n_ NNLossGradientNode) PropertyCallBack() NNLossCallbackWrapper { - rv := objc.Call[NNLossCallbackWrapper](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]: 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/3131865-propertycallback?language=objc -func (n_ NNLossGradientNode) SetPropertyCallBackObject(valueObject objc.IObject) { - objc.Call[objc.Void](n_, objc.Sel("setPropertyCallBack:"), objc.Ptr(valueObject)) +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsnnlossgradientnode/3131867-weight?language=objc +func (n_ NNLossGradientNode) Weight() float64 { + rv := objc.Call[float64](n_, objc.Sel("weight")) + return rv } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsnnlossgradientnode/3131854-epsilon?language=objc -func (n_ NNLossGradientNode) Epsilon() float64 { - rv := objc.Call[float64](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 } @@ -186,9 +216,9 @@ func (n_ NNLossGradientNode) Delta() float64 { // [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() float64 { + rv := objc.Call[float64](n_, objc.Sel("epsilon")) return rv } @@ -200,14 +230,6 @@ 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 034849a1..bd9d85b8 100644 --- a/macos/mps/nn_multiary_gradient_state.gen.go +++ b/macos/mps/nn_multiary_gradient_state.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package mps @@ -39,10 +39,6 @@ func (nc _NNMultiaryGradientStateClass) Alloc() NNMultiaryGradientState { return rv } -func NNMultiaryGradientState_Alloc() NNMultiaryGradientState { - return NNMultiaryGradientStateClass.Alloc() -} - func (nc _NNMultiaryGradientStateClass) New() NNMultiaryGradientState { rv := objc.Call[NNMultiaryGradientState](nc, objc.Sel("new")) rv.Autorelease() @@ -58,16 +54,45 @@ func (n_ NNMultiaryGradientState) Init() NNMultiaryGradientState { return rv } -func (n_ NNMultiaryGradientState) InitWithResources(resources []metal.PResource) NNMultiaryGradientState { - rv := objc.Call[NNMultiaryGradientState](n_, objc.Sel("initWithResources:"), resources) +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, objc.Ptr(resourceList)) 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/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, objc.Ptr(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) + 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) instance.Autorelease() return instance } @@ -87,30 +112,70 @@ func NewNNMultiaryGradientStateWithDeviceBufferSize(device metal.PDevice, buffer 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 } -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, objc.Ptr(resourceList)) +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/2947915-temporarystatewithcommandbuffer?language=objc -func NNMultiaryGradientState_TemporaryStateWithCommandBufferResourceList(commandBuffer metal.PCommandBuffer, resourceList IStateResourceList) NNMultiaryGradientState { - return NNMultiaryGradientStateClass.TemporaryStateWithCommandBufferResourceList(commandBuffer, resourceList) +// [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, objc.Ptr(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, objc.Ptr(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 } diff --git a/macos/mps/nn_multiary_gradient_state_node.gen.go b/macos/mps/nn_multiary_gradient_state_node.gen.go index 8fbbcb36..80740764 100644 --- a/macos/mps/nn_multiary_gradient_state_node.gen.go +++ b/macos/mps/nn_multiary_gradient_state_node.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package mps @@ -38,10 +38,6 @@ func (nc _NNMultiaryGradientStateNodeClass) Alloc() NNMultiaryGradientStateNode return rv } -func NNMultiaryGradientStateNode_Alloc() NNMultiaryGradientStateNode { - return NNMultiaryGradientStateNodeClass.Alloc() -} - func (nc _NNMultiaryGradientStateNodeClass) New() NNMultiaryGradientStateNode { rv := objc.Call[NNMultiaryGradientStateNode](nc, objc.Sel("new")) rv.Autorelease() diff --git a/macos/mps/nn_multiplication_gradient_node.gen.go b/macos/mps/nn_multiplication_gradient_node.gen.go index 94176280..4a337c4b 100644 --- a/macos/mps/nn_multiplication_gradient_node.gen.go +++ b/macos/mps/nn_multiplication_gradient_node.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package mps @@ -38,10 +38,6 @@ func (nc _NNMultiplicationGradientNodeClass) Alloc() NNMultiplicationGradientNod return rv } -func NNMultiplicationGradientNode_Alloc() NNMultiplicationGradientNode { - return NNMultiplicationGradientNodeClass.Alloc() -} - func (nc _NNMultiplicationGradientNodeClass) New() NNMultiplicationGradientNode { rv := objc.Call[NNMultiplicationGradientNode](nc, objc.Sel("new")) rv.Autorelease() diff --git a/macos/mps/nn_multiplication_node.gen.go b/macos/mps/nn_multiplication_node.gen.go index 82c4082f..84804902 100644 --- a/macos/mps/nn_multiplication_node.gen.go +++ b/macos/mps/nn_multiplication_node.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package mps @@ -38,10 +38,6 @@ func (nc _NNMultiplicationNodeClass) Alloc() NNMultiplicationNode { return rv } -func NNMultiplicationNode_Alloc() NNMultiplicationNode { - return NNMultiplicationNodeClass.Alloc() -} - func (nc _NNMultiplicationNodeClass) New() NNMultiplicationNode { rv := objc.Call[NNMultiplicationNode](nc, objc.Sel("new")) rv.Autorelease() @@ -69,6 +65,20 @@ 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:"), objc.Ptr(left), objc.Ptr(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:"), objc.Ptr(left), objc.Ptr(right)) return rv @@ -94,17 +104,3 @@ 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:"), objc.Ptr(left), objc.Ptr(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 a0b6b330..f2997be1 100644 --- a/macos/mps/nn_neuron_descriptor.gen.go +++ b/macos/mps/nn_neuron_descriptor.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package mps @@ -18,16 +18,16 @@ type _NNNeuronDescriptorClass struct { // An interface definition for the [NNNeuronDescriptor] class. type INNNeuronDescriptor interface { objc.IObject + B() float64 + SetB(value float64) A() float64 SetA(value float64) - Data() []byte - SetData(value []byte) NeuronType() CNNNeuronType SetNeuronType(value CNNNeuronType) C() float64 SetC(value float64) - B() float64 - SetB(value float64) + Data() []byte + SetData(value []byte) } // An object that specifies properties used by a neuron kernel. [Full Topic] @@ -48,10 +48,6 @@ func (nc _NNNeuronDescriptorClass) Alloc() NNNeuronDescriptor { return rv } -func NNNeuronDescriptor_Alloc() NNNeuronDescriptor { - return NNNeuronDescriptorClass.Alloc() -} - func (nc _NNNeuronDescriptorClass) New() NNNeuronDescriptor { rv := objc.Call[NNNeuronDescriptor](nc, objc.Sel("new")) rv.Autorelease() @@ -69,17 +65,17 @@ func (n_ NNNeuronDescriptor) Init() NNNeuronDescriptor { // [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) +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsnnneurondescriptor/2942301-cnnneurondescriptorwithtype?language=objc +func (nc _NNNeuronDescriptorClass) CnnNeuronDescriptorWithTypeA(neuronType CNNNeuronType, a float64) NNNeuronDescriptor { + rv := objc.Call[NNNeuronDescriptor](nc, objc.Sel("cnnNeuronDescriptorWithType:a:"), neuronType, a) 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]: https://developer.apple.com/documentation/metalperformanceshaders/mpsnnneurondescriptor/2942301-cnnneurondescriptorwithtype?language=objc +func NNNeuronDescriptor_CnnNeuronDescriptorWithTypeA(neuronType CNNNeuronType, a float64) NNNeuronDescriptor { + return NNNeuronDescriptorClass.CnnNeuronDescriptorWithTypeA(neuronType, a) } // [Full Topic] @@ -99,32 +95,77 @@ func NNNeuronDescriptor_CnnNeuronPReLUDescriptorWithDataNoCopy(data []byte, noCo // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsnnneurondescriptor/2942316-a?language=objc -func (n_ NNNeuronDescriptor) A() float64 { - rv := objc.Call[float64](n_, objc.Sel("a")) +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsnnneurondescriptor/2942295-cnnneurondescriptorwithtype?language=objc +func (nc _NNNeuronDescriptorClass) CnnNeuronDescriptorWithTypeAB(neuronType CNNNeuronType, a float64, b float64) 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/2942316-a?language=objc -func (n_ NNNeuronDescriptor) SetA(value float64) { - objc.Call[objc.Void](n_, objc.Sel("setA:"), value) +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsnnneurondescriptor/2942295-cnnneurondescriptorwithtype?language=objc +func NNNeuronDescriptor_CnnNeuronDescriptorWithTypeAB(neuronType CNNNeuronType, a float64, b float64) NNNeuronDescriptor { + return NNNeuronDescriptorClass.CnnNeuronDescriptorWithTypeAB(neuronType, a, b) } // [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/2942296-cnnneurondescriptorwithtype?language=objc +func (nc _NNNeuronDescriptorClass) CnnNeuronDescriptorWithTypeABC(neuronType CNNNeuronType, a float64, b float64, c float64) 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/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/2942296-cnnneurondescriptorwithtype?language=objc +func NNNeuronDescriptor_CnnNeuronDescriptorWithTypeABC(neuronType CNNNeuronType, a float64, b float64, c float64) 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() float64 { + rv := objc.Call[float64](n_, objc.Sel("b")) + return rv +} + +// [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsnnneurondescriptor/2942302-b?language=objc +func (n_ NNNeuronDescriptor) SetB(value float64) { + objc.Call[objc.Void](n_, objc.Sel("setB:"), value) +} + +// [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsnnneurondescriptor/2942316-a?language=objc +func (n_ NNNeuronDescriptor) A() float64 { + rv := objc.Call[float64](n_, objc.Sel("a")) + return rv +} + +// [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsnnneurondescriptor/2942316-a?language=objc +func (n_ NNNeuronDescriptor) SetA(value float64) { + objc.Call[objc.Void](n_, objc.Sel("setA:"), value) } // [Full Topic] @@ -159,15 +200,15 @@ func (n_ NNNeuronDescriptor) SetC(value float64) { // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsnnneurondescriptor/2942302-b?language=objc -func (n_ NNNeuronDescriptor) B() float64 { - rv := objc.Call[float64](n_, objc.Sel("b")) +// [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/2942302-b?language=objc -func (n_ NNNeuronDescriptor) SetB(value float64) { - objc.Call[objc.Void](n_, objc.Sel("setB:"), 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) } diff --git a/macos/mps/nn_optimizer.gen.go b/macos/mps/nn_optimizer.gen.go index b7ffb05f..400a1df2 100644 --- a/macos/mps/nn_optimizer.gen.go +++ b/macos/mps/nn_optimizer.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package mps @@ -20,14 +20,14 @@ type _NNOptimizerClass struct { type INNOptimizer interface { IKernel SetLearningRate(newLearningRate float64) - GradientRescale() float64 - ApplyGradientClipping() bool - SetApplyGradientClipping(value bool) RegularizationScale() float64 GradientClipMax() float64 - RegularizationType() NNRegularizationType LearningRate() float64 + RegularizationType() NNRegularizationType GradientClipMin() float64 + ApplyGradientClipping() bool + SetApplyGradientClipping(value bool) + GradientRescale() float64 } // The base class for optimization layers. [Full Topic] @@ -48,10 +48,6 @@ func (nc _NNOptimizerClass) Alloc() NNOptimizer { return rv } -func NNOptimizer_Alloc() NNOptimizer { - return NNOptimizerClass.Alloc() -} - func (nc _NNOptimizerClass) New() NNOptimizer { rv := objc.Call[NNOptimizer](nc, objc.Sel("new")) rv.Autorelease() @@ -67,33 +63,32 @@ func (n_ NNOptimizer) Init() NNOptimizer { return rv } -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 } -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) - rv.Autorelease() +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 } @@ -107,63 +102,63 @@ func (n_ NNOptimizer) SetLearningRate(newLearningRate float64) { // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsnnoptimizer/2966708-gradientrescale?language=objc -func (n_ NNOptimizer) GradientRescale() float64 { - rv := objc.Call[float64](n_, objc.Sel("gradientRescale")) +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsnnoptimizer/2966710-regularizationscale?language=objc +func (n_ NNOptimizer) RegularizationScale() float64 { + rv := objc.Call[float64](n_, objc.Sel("regularizationScale")) 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/2966706-gradientclipmax?language=objc +func (n_ NNOptimizer) GradientClipMax() float64 { + rv := objc.Call[float64](n_, objc.Sel("gradientClipMax")) 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() float64 { + rv := objc.Call[float64](n_, objc.Sel("learningRate")) + return rv } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsnnoptimizer/2966710-regularizationscale?language=objc -func (n_ NNOptimizer) RegularizationScale() float64 { - rv := objc.Call[float64](n_, objc.Sel("regularizationScale")) +// [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/2966706-gradientclipmax?language=objc -func (n_ NNOptimizer) GradientClipMax() float64 { - rv := objc.Call[float64](n_, objc.Sel("gradientClipMax")) +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsnnoptimizer/2966707-gradientclipmin?language=objc +func (n_ NNOptimizer) GradientClipMin() float64 { + rv := objc.Call[float64](n_, objc.Sel("gradientClipMin")) return rv } // [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/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() float64 { - rv := objc.Call[float64](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/2966707-gradientclipmin?language=objc -func (n_ NNOptimizer) GradientClipMin() float64 { - rv := objc.Call[float64](n_, objc.Sel("gradientClipMin")) +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsnnoptimizer/2966708-gradientrescale?language=objc +func (n_ NNOptimizer) GradientRescale() float64 { + rv := objc.Call[float64](n_, objc.Sel("gradientRescale")) return rv } diff --git a/macos/mps/nn_optimizer_adam.gen.go b/macos/mps/nn_optimizer_adam.gen.go index e5018d96..0e2b4f30 100644 --- a/macos/mps/nn_optimizer_adam.gen.go +++ b/macos/mps/nn_optimizer_adam.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package mps @@ -19,10 +19,28 @@ 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) - Epsilon() float64 + 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() float64 Beta1() float64 TimeStep() uint SetTimeStep(value uint) @@ -56,13 +74,24 @@ func NewNNOptimizerAdamWithDeviceLearningRate(device metal.PDevice, learningRate return instance } -func (nc _NNOptimizerAdamClass) Alloc() NNOptimizerAdam { - rv := objc.Call[NNOptimizerAdam](nc, objc.Sel("alloc")) +func (n_ NNOptimizerAdam) InitWithDeviceBeta1Beta2EpsilonTimeStepOptimizerDescriptor(device metal.PDevice, beta1 float64, beta2 float64, epsilon float64, 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, objc.Ptr(optimizerDescriptor)) return rv } -func NNOptimizerAdam_Alloc() NNOptimizerAdam { - return NNOptimizerAdamClass.Alloc() +// [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 float64, 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 } func (nc _NNOptimizerAdamClass) New() NNOptimizerAdam { @@ -80,6 +109,21 @@ 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) @@ -95,20 +139,79 @@ func NewNNOptimizerAdamWithDevice(device metal.PDevice) NNOptimizerAdam { return instance } -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) - rv.Autorelease() - return rv +// [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, objc.Ptr(inputGradientVector), objc.Ptr(inputValuesVector), objc.Ptr(inputMomentumVector), objc.Ptr(inputVelocityVector), objc.Ptr(maximumVelocityVector), objc.Ptr(resultValuesVector)) } -// Makes a copy of this kernel object for a new device. [Full Topic] +// [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 +// [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:"), objc.Ptr(commandBufferObject), objc.Ptr(inputGradientVector), objc.Ptr(inputValuesVector), objc.Ptr(inputMomentumVector), objc.Ptr(inputVelocityVector), objc.Ptr(maximumVelocityVector), objc.Ptr(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, objc.Ptr(inputGradientMatrix), objc.Ptr(inputValuesMatrix), objc.Ptr(inputMomentumMatrix), objc.Ptr(inputVelocityMatrix), objc.Ptr(maximumVelocityMatrix), objc.Ptr(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:"), objc.Ptr(commandBufferObject), objc.Ptr(inputGradientMatrix), objc.Ptr(inputValuesMatrix), objc.Ptr(inputMomentumMatrix), objc.Ptr(inputVelocityMatrix), objc.Ptr(maximumVelocityMatrix), objc.Ptr(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, objc.Ptr(batchNormalizationState), inputMomentumVectors, inputVelocityVectors, objc.Ptr(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:"), objc.Ptr(commandBufferObject), objc.Ptr(batchNormalizationState), inputMomentumVectors, inputVelocityVectors, objc.Ptr(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, objc.Ptr(convolutionGradientState), objc.Ptr(convolutionSourceState), inputMomentumVectors, inputVelocityVectors, objc.Ptr(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:"), objc.Ptr(commandBufferObject), objc.Ptr(convolutionGradientState), objc.Ptr(convolutionSourceState), inputMomentumVectors, inputVelocityVectors, objc.Ptr(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, objc.Ptr(inputGradientVector), objc.Ptr(inputValuesVector), objc.Ptr(inputMomentumVector), objc.Ptr(inputVelocityVector), objc.Ptr(resultValuesVector)) +} + +// [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:"), objc.Ptr(commandBufferObject), objc.Ptr(inputGradientVector), objc.Ptr(inputValuesVector), objc.Ptr(inputMomentumVector), objc.Ptr(inputVelocityVector), objc.Ptr(resultValuesVector)) } // [Full Topic] @@ -128,10 +231,62 @@ func (n_ NNOptimizerAdam) EncodeToCommandBufferObjectInputGradientMatrixInputVal // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsnnoptimizeradam/2966717-epsilon?language=objc -func (n_ NNOptimizerAdam) Epsilon() float64 { - rv := objc.Call[float64](n_, objc.Sel("epsilon")) - return rv +// [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, objc.Ptr(convolutionGradientState), objc.Ptr(convolutionSourceState), inputMomentumVectors, inputVelocityVectors, maximumVelocityVectors, objc.Ptr(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:"), objc.Ptr(commandBufferObject), objc.Ptr(convolutionGradientState), objc.Ptr(convolutionSourceState), inputMomentumVectors, inputVelocityVectors, maximumVelocityVectors, objc.Ptr(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, objc.Ptr(batchNormalizationState), inputMomentumVectors, inputVelocityVectors, maximumVelocityVectors, objc.Ptr(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:"), objc.Ptr(commandBufferObject), objc.Ptr(batchNormalizationState), inputMomentumVectors, inputVelocityVectors, maximumVelocityVectors, objc.Ptr(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, objc.Ptr(batchNormalizationGradientState), objc.Ptr(batchNormalizationSourceState), inputMomentumVectors, inputVelocityVectors, objc.Ptr(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:"), objc.Ptr(commandBufferObject), objc.Ptr(batchNormalizationGradientState), objc.Ptr(batchNormalizationSourceState), inputMomentumVectors, inputVelocityVectors, objc.Ptr(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, objc.Ptr(batchNormalizationGradientState), objc.Ptr(batchNormalizationSourceState), inputMomentumVectors, inputVelocityVectors, maximumVelocityVectors, objc.Ptr(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:"), objc.Ptr(commandBufferObject), objc.Ptr(batchNormalizationGradientState), objc.Ptr(batchNormalizationSourceState), inputMomentumVectors, inputVelocityVectors, maximumVelocityVectors, objc.Ptr(resultState)) } // [Full Topic] @@ -142,6 +297,14 @@ 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() float64 { + rv := objc.Call[float64](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 bcc5be90..efcee61f 100644 --- a/macos/mps/nn_optimizer_descriptor.gen.go +++ b/macos/mps/nn_optimizer_descriptor.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package mps @@ -18,20 +18,20 @@ type _NNOptimizerDescriptorClass struct { // An interface definition for the [NNOptimizerDescriptor] class. type INNOptimizerDescriptor interface { objc.IObject - GradientRescale() float64 - SetGradientRescale(value float64) ApplyGradientClipping() bool SetApplyGradientClipping(value bool) RegularizationScale() float64 SetRegularizationScale(value float64) GradientClipMax() float64 SetGradientClipMax(value float64) - RegularizationType() NNRegularizationType - SetRegularizationType(value NNRegularizationType) - LearningRate() float64 - SetLearningRate(value float64) + GradientRescale() float64 + SetGradientRescale(value float64) GradientClipMin() float64 SetGradientClipMin(value float64) + LearningRate() float64 + SetLearningRate(value float64) + RegularizationType() NNRegularizationType + SetRegularizationType(value NNRegularizationType) } // An object that specifies properties used by an optimizer kernel. [Full Topic] @@ -47,6 +47,32 @@ func NNOptimizerDescriptorFrom(ptr unsafe.Pointer) NNOptimizerDescriptor { } } +func (n_ NNOptimizerDescriptor) InitWithLearningRateGradientRescaleApplyGradientClippingGradientClipMaxGradientClipMinRegularizationTypeRegularizationScale(learningRate float64, gradientRescale float64, applyGradientClipping bool, gradientClipMax float64, gradientClipMin float64, regularizationType NNRegularizationType, regularizationScale float64) 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 float64, gradientRescale float64, applyGradientClipping bool, gradientClipMax float64, gradientClipMin float64, regularizationType NNRegularizationType, regularizationScale float64) NNOptimizerDescriptor { + instance := NNOptimizerDescriptorClass.Alloc().InitWithLearningRateGradientRescaleApplyGradientClippingGradientClipMaxGradientClipMinRegularizationTypeRegularizationScale(learningRate, gradientRescale, applyGradientClipping, gradientClipMax, gradientClipMin, regularizationType, regularizationScale) + instance.Autorelease() + return instance +} + +func (nc _NNOptimizerDescriptorClass) OptimizerDescriptorWithLearningRateGradientRescaleApplyGradientClippingGradientClipMaxGradientClipMinRegularizationTypeRegularizationScale(learningRate float64, gradientRescale float64, applyGradientClipping bool, gradientClipMax float64, gradientClipMin float64, regularizationType NNRegularizationType, regularizationScale float64) 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 float64, gradientRescale float64, applyGradientClipping bool, gradientClipMax float64, gradientClipMin float64, regularizationType NNRegularizationType, regularizationScale float64) NNOptimizerDescriptor { + return NNOptimizerDescriptorClass.OptimizerDescriptorWithLearningRateGradientRescaleApplyGradientClippingGradientClipMaxGradientClipMinRegularizationTypeRegularizationScale(learningRate, gradientRescale, applyGradientClipping, gradientClipMax, gradientClipMin, regularizationType, regularizationScale) +} + func (n_ NNOptimizerDescriptor) InitWithLearningRateGradientRescaleRegularizationTypeRegularizationScale(learningRate float64, gradientRescale float64, regularizationType NNRegularizationType, regularizationScale float64) NNOptimizerDescriptor { rv := objc.Call[NNOptimizerDescriptor](n_, objc.Sel("initWithLearningRate:gradientRescale:regularizationType:regularizationScale:"), learningRate, gradientRescale, regularizationType, regularizationScale) return rv @@ -78,10 +104,6 @@ func (nc _NNOptimizerDescriptorClass) Alloc() NNOptimizerDescriptor { return rv } -func NNOptimizerDescriptor_Alloc() NNOptimizerDescriptor { - return NNOptimizerDescriptorClass.Alloc() -} - func (nc _NNOptimizerDescriptorClass) New() NNOptimizerDescriptor { rv := objc.Call[NNOptimizerDescriptor](nc, objc.Sel("new")) rv.Autorelease() @@ -97,21 +119,6 @@ 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() float64 { - rv := objc.Call[float64](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 float64) { - objc.Call[objc.Void](n_, objc.Sel("setGradientRescale:"), value) -} - // [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsnnoptimizerdescriptor/2966722-applygradientclipping?language=objc @@ -159,17 +166,32 @@ func (n_ NNOptimizerDescriptor) SetGradientClipMax(value float64) { // [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/2966725-gradientrescale?language=objc +func (n_ NNOptimizerDescriptor) GradientRescale() float64 { + rv := objc.Call[float64](n_, objc.Sel("gradientRescale")) 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/2966725-gradientrescale?language=objc +func (n_ NNOptimizerDescriptor) SetGradientRescale(value float64) { + 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() float64 { + rv := objc.Call[float64](n_, objc.Sel("gradientClipMin")) + return rv +} + +// [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsnnoptimizerdescriptor/2966724-gradientclipmin?language=objc +func (n_ NNOptimizerDescriptor) SetGradientClipMin(value float64) { + objc.Call[objc.Void](n_, objc.Sel("setGradientClipMin:"), value) } // [Full Topic] @@ -189,15 +211,15 @@ func (n_ NNOptimizerDescriptor) SetLearningRate(value float64) { // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsnnoptimizerdescriptor/2966724-gradientclipmin?language=objc -func (n_ NNOptimizerDescriptor) GradientClipMin() float64 { - rv := objc.Call[float64](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 float64) { - 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) } diff --git a/macos/mps/nn_optimizer_rms_prop.gen.go b/macos/mps/nn_optimizer_rms_prop.gen.go index 26ed3730..2c138c16 100644 --- a/macos/mps/nn_optimizer_rms_prop.gen.go +++ b/macos/mps/nn_optimizer_rms_prop.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package mps @@ -19,6 +19,14 @@ 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 @@ -38,6 +46,21 @@ func NNOptimizerRMSPropFrom(ptr unsafe.Pointer) NNOptimizerRMSProp { } } +func (n_ NNOptimizerRMSProp) InitWithDeviceDecayEpsilonOptimizerDescriptor(device metal.PDevice, decay float64, epsilon float64, optimizerDescriptor INNOptimizerDescriptor) NNOptimizerRMSProp { + po0 := objc.WrapAsProtocol("MTLDevice", device) + rv := objc.Call[NNOptimizerRMSProp](n_, objc.Sel("initWithDevice:decay:epsilon:optimizerDescriptor:"), po0, decay, epsilon, objc.Ptr(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 float64, optimizerDescriptor INNOptimizerDescriptor) NNOptimizerRMSProp { + instance := NNOptimizerRMSPropClass.Alloc().InitWithDeviceDecayEpsilonOptimizerDescriptor(device, decay, epsilon, optimizerDescriptor) + instance.Autorelease() + return instance +} + func (n_ NNOptimizerRMSProp) InitWithDeviceLearningRate(device metal.PDevice, learningRate float64) NNOptimizerRMSProp { po0 := objc.WrapAsProtocol("MTLDevice", device) rv := objc.Call[NNOptimizerRMSProp](n_, objc.Sel("initWithDevice:learningRate:"), po0, learningRate) @@ -58,10 +81,6 @@ func (nc _NNOptimizerRMSPropClass) Alloc() NNOptimizerRMSProp { return rv } -func NNOptimizerRMSProp_Alloc() NNOptimizerRMSProp { - return NNOptimizerRMSPropClass.Alloc() -} - func (nc _NNOptimizerRMSPropClass) New() NNOptimizerRMSProp { rv := objc.Call[NNOptimizerRMSProp](nc, objc.Sel("new")) rv.Autorelease() @@ -77,6 +96,21 @@ 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) @@ -92,20 +126,64 @@ func NewNNOptimizerRMSPropWithDevice(device metal.PDevice) NNOptimizerRMSProp { return instance } -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) - rv.Autorelease() - return rv +// [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, objc.Ptr(batchNormalizationState), inputSumOfSquaresVectors, objc.Ptr(resultState)) } -// Makes a copy of this kernel object for a new device. [Full Topic] +// [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 +// [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:"), objc.Ptr(commandBufferObject), objc.Ptr(batchNormalizationState), inputSumOfSquaresVectors, objc.Ptr(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, objc.Ptr(batchNormalizationGradientState), objc.Ptr(batchNormalizationSourceState), inputSumOfSquaresVectors, objc.Ptr(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:"), objc.Ptr(commandBufferObject), objc.Ptr(batchNormalizationGradientState), objc.Ptr(batchNormalizationSourceState), inputSumOfSquaresVectors, objc.Ptr(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, objc.Ptr(convolutionGradientState), objc.Ptr(convolutionSourceState), inputSumOfSquaresVectors, objc.Ptr(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:"), objc.Ptr(commandBufferObject), objc.Ptr(convolutionGradientState), objc.Ptr(convolutionSourceState), inputSumOfSquaresVectors, objc.Ptr(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, objc.Ptr(inputGradientVector), objc.Ptr(inputValuesVector), objc.Ptr(inputSumOfSquaresVector), objc.Ptr(resultValuesVector)) +} + +// [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:"), objc.Ptr(commandBufferObject), objc.Ptr(inputGradientVector), objc.Ptr(inputValuesVector), objc.Ptr(inputSumOfSquaresVector), objc.Ptr(resultValuesVector)) } // [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 8a7fe57b..ae108a83 100644 --- a/macos/mps/nn_optimizer_stochastic_gradient_descent.gen.go +++ b/macos/mps/nn_optimizer_stochastic_gradient_descent.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package mps @@ -19,11 +19,19 @@ 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) - UseNesterovMomentum() bool + 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) MomentumScale() float64 UseNestrovMomentum() bool + UseNesterovMomentum() bool } // An optimization layer that performs a gradient descent with an optional momentum update. [Full Topic] @@ -54,13 +62,39 @@ func NewNNOptimizerStochasticGradientDescentWithDeviceLearningRate(device metal. return instance } -func (nc _NNOptimizerStochasticGradientDescentClass) Alloc() NNOptimizerStochasticGradientDescent { - rv := objc.Call[NNOptimizerStochasticGradientDescent](nc, objc.Sel("alloc")) +func (n_ NNOptimizerStochasticGradientDescent) InitWithDeviceMomentumScaleUseNestrovMomentumOptimizerDescriptor(device metal.PDevice, momentumScale float64, useNestrovMomentum bool, optimizerDescriptor INNOptimizerDescriptor) NNOptimizerStochasticGradientDescent { + po0 := objc.WrapAsProtocol("MTLDevice", device) + rv := objc.Call[NNOptimizerStochasticGradientDescent](n_, objc.Sel("initWithDevice:momentumScale:useNestrovMomentum:optimizerDescriptor:"), po0, momentumScale, useNestrovMomentum, objc.Ptr(optimizerDescriptor)) return rv } -func NNOptimizerStochasticGradientDescent_Alloc() NNOptimizerStochasticGradientDescent { - return NNOptimizerStochasticGradientDescentClass.Alloc() +// [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsnnoptimizerstochasticgradientdescent/2966742-initwithdevice?language=objc +func NewNNOptimizerStochasticGradientDescentWithDeviceMomentumScaleUseNestrovMomentumOptimizerDescriptor(device metal.PDevice, momentumScale float64, 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 float64, useNesterovMomentum bool, optimizerDescriptor INNOptimizerDescriptor) NNOptimizerStochasticGradientDescent { + po0 := objc.WrapAsProtocol("MTLDevice", device) + rv := objc.Call[NNOptimizerStochasticGradientDescent](n_, objc.Sel("initWithDevice:momentumScale:useNesterovMomentum:optimizerDescriptor:"), po0, momentumScale, useNesterovMomentum, objc.Ptr(optimizerDescriptor)) + return rv +} + +// [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsnnoptimizerstochasticgradientdescent/3675591-initwithdevice?language=objc +func NewNNOptimizerStochasticGradientDescentWithDeviceMomentumScaleUseNesterovMomentumOptimizerDescriptor(device metal.PDevice, momentumScale float64, 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 } func (nc _NNOptimizerStochasticGradientDescentClass) New() NNOptimizerStochasticGradientDescent { @@ -78,6 +112,21 @@ 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) @@ -93,20 +142,19 @@ func NewNNOptimizerStochasticGradientDescentWithDevice(device metal.PDevice) NNO return instance } -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) - rv.Autorelease() - return rv +// [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, objc.Ptr(batchNormalizationGradientState), objc.Ptr(batchNormalizationSourceState), inputMomentumVectors, objc.Ptr(resultState)) } -// Makes a copy of this kernel object for a new device. [Full Topic] +// [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 +// [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:"), objc.Ptr(commandBufferObject), objc.Ptr(batchNormalizationGradientState), objc.Ptr(batchNormalizationSourceState), inputMomentumVectors, objc.Ptr(resultState)) } // [Full Topic] @@ -126,10 +174,47 @@ func (n_ NNOptimizerStochasticGradientDescent) EncodeToCommandBufferObjectInputG // [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 +// [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, objc.Ptr(batchNormalizationState), inputMomentumVectors, objc.Ptr(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:"), objc.Ptr(commandBufferObject), objc.Ptr(batchNormalizationState), inputMomentumVectors, objc.Ptr(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, objc.Ptr(convolutionGradientState), objc.Ptr(convolutionSourceState), inputMomentumVectors, objc.Ptr(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:"), objc.Ptr(commandBufferObject), objc.Ptr(convolutionGradientState), objc.Ptr(convolutionSourceState), inputMomentumVectors, objc.Ptr(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, objc.Ptr(inputGradientVector), objc.Ptr(inputValuesVector), objc.Ptr(inputMomentumVector), objc.Ptr(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:"), objc.Ptr(commandBufferObject), objc.Ptr(inputGradientVector), objc.Ptr(inputValuesVector), objc.Ptr(inputMomentumVector), objc.Ptr(resultValuesVector)) } // [Full Topic] @@ -147,3 +232,11 @@ 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 3de1bf0a..6053d10c 100644 --- a/macos/mps/nn_pad.gen.go +++ b/macos/mps/nn_pad.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package mps @@ -19,12 +19,12 @@ type _NNPadClass struct { // An interface definition for the [NNPad] class. type INNPad interface { ICNNKernel + FillValue() float64 + SetFillValue(value float64) PaddingSizeBefore() ImageCoordinate SetPaddingSizeBefore(value ImageCoordinate) PaddingSizeAfter() ImageCoordinate SetPaddingSizeAfter(value ImageCoordinate) - FillValue() float64 - SetFillValue(value float64) } // [Full Topic] @@ -40,6 +40,21 @@ 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) @@ -55,13 +70,24 @@ func NewNNPadWithDevice(device metal.PDevice) NNPad { return instance } -func (nc _NNPadClass) Alloc() NNPad { - rv := objc.Call[NNPad](nc, objc.Sel("alloc")) +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 } -func NNPad_Alloc() NNPad { - return NNPadClass.Alloc() +// [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 } func (nc _NNPadClass) New() NNPad { @@ -82,7 +108,6 @@ func (n_ NNPad) Init() NNPad { func (n_ NNPad) CopyWithZoneDevice(zone unsafe.Pointer, device metal.PDevice) NNPad { po1 := objc.WrapAsProtocol("MTLDevice", device) rv := objc.Call[NNPad](n_, objc.Sel("copyWithZone:device:"), zone, po1) - rv.Autorelease() return rv } @@ -95,6 +120,21 @@ 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() float64 { + rv := objc.Call[float64](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 float64) { + objc.Call[objc.Void](n_, objc.Sel("setFillValue:"), value) +} + // [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsnnpad/3037433-paddingsizebefore?language=objc @@ -124,18 +164,3 @@ 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() float64 { - rv := objc.Call[float64](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 float64) { - objc.Call[objc.Void](n_, objc.Sel("setFillValue:"), value) -} diff --git a/macos/mps/nn_pad_gradient.gen.go b/macos/mps/nn_pad_gradient.gen.go index 2652cc19..fe8cccf3 100644 --- a/macos/mps/nn_pad_gradient.gen.go +++ b/macos/mps/nn_pad_gradient.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package mps @@ -54,10 +54,6 @@ func (nc _NNPadGradientClass) Alloc() NNPadGradient { return rv } -func NNPadGradient_Alloc() NNPadGradient { - return NNPadGradientClass.Alloc() -} - func (nc _NNPadGradientClass) New() NNPadGradient { rv := objc.Call[NNPadGradient](nc, objc.Sel("new")) rv.Autorelease() @@ -76,7 +72,6 @@ func (n_ NNPadGradient) Init() NNPadGradient { func (n_ NNPadGradient) CopyWithZoneDevice(zone unsafe.Pointer, device metal.PDevice) NNPadGradient { po1 := objc.WrapAsProtocol("MTLDevice", device) rv := objc.Call[NNPadGradient](n_, objc.Sel("copyWithZone:device:"), zone, po1) - rv.Autorelease() return rv } diff --git a/macos/mps/nn_pad_gradient_node.gen.go b/macos/mps/nn_pad_gradient_node.gen.go index e6ed16f4..496f3a64 100644 --- a/macos/mps/nn_pad_gradient_node.gen.go +++ b/macos/mps/nn_pad_gradient_node.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package mps @@ -33,30 +33,30 @@ func NNPadGradientNodeFrom(ptr unsafe.Pointer) NNPadGradientNode { } } -func (n_ NNPadGradientNode) InitWithSourceGradientSourceImageGradientState(sourceGradient INNImageNode, sourceImage INNImageNode, gradientState INNGradientStateNode) NNPadGradientNode { - rv := objc.Call[NNPadGradientNode](n_, objc.Sel("initWithSourceGradient:sourceImage:gradientState:"), objc.Ptr(sourceGradient), objc.Ptr(sourceImage), objc.Ptr(gradientState)) +func (nc _NNPadGradientNodeClass) NodeWithSourceGradientSourceImageGradientState(sourceGradient INNImageNode, sourceImage INNImageNode, gradientState INNGradientStateNode) NNPadGradientNode { + rv := objc.Call[NNPadGradientNode](nc, objc.Sel("nodeWithSourceGradient:sourceImage:gradientState:"), objc.Ptr(sourceGradient), objc.Ptr(sourceImage), objc.Ptr(gradientState)) return rv } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsnnpadgradientnode/3037391-initwithsourcegradient?language=objc -func NewNNPadGradientNodeWithSourceGradientSourceImageGradientState(sourceGradient INNImageNode, sourceImage INNImageNode, gradientState INNGradientStateNode) NNPadGradientNode { - instance := NNPadGradientNodeClass.Alloc().InitWithSourceGradientSourceImageGradientState(sourceGradient, sourceImage, gradientState) - instance.Autorelease() - return instance +// [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) NodeWithSourceGradientSourceImageGradientState(sourceGradient INNImageNode, sourceImage INNImageNode, gradientState INNGradientStateNode) NNPadGradientNode { - rv := objc.Call[NNPadGradientNode](nc, objc.Sel("nodeWithSourceGradient:sourceImage:gradientState:"), objc.Ptr(sourceGradient), objc.Ptr(sourceImage), objc.Ptr(gradientState)) +func (n_ NNPadGradientNode) InitWithSourceGradientSourceImageGradientState(sourceGradient INNImageNode, sourceImage INNImageNode, gradientState INNGradientStateNode) NNPadGradientNode { + rv := objc.Call[NNPadGradientNode](n_, objc.Sel("initWithSourceGradient:sourceImage:gradientState:"), objc.Ptr(sourceGradient), objc.Ptr(sourceImage), objc.Ptr(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) +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsnnpadgradientnode/3037391-initwithsourcegradient?language=objc +func NewNNPadGradientNodeWithSourceGradientSourceImageGradientState(sourceGradient INNImageNode, sourceImage INNImageNode, gradientState INNGradientStateNode) NNPadGradientNode { + instance := NNPadGradientNodeClass.Alloc().InitWithSourceGradientSourceImageGradientState(sourceGradient, sourceImage, gradientState) + instance.Autorelease() + return instance } func (nc _NNPadGradientNodeClass) Alloc() NNPadGradientNode { @@ -64,10 +64,6 @@ func (nc _NNPadGradientNodeClass) Alloc() NNPadGradientNode { return rv } -func NNPadGradientNode_Alloc() NNPadGradientNode { - return NNPadGradientNodeClass.Alloc() -} - func (nc _NNPadGradientNodeClass) New() NNPadGradientNode { rv := objc.Call[NNPadGradientNode](nc, objc.Sel("new")) rv.Autorelease() diff --git a/macos/mps/nn_pad_node.gen.go b/macos/mps/nn_pad_node.gen.go index 0e9a159d..c288377f 100644 --- a/macos/mps/nn_pad_node.gen.go +++ b/macos/mps/nn_pad_node.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package mps @@ -66,10 +66,6 @@ func (nc _NNPadNodeClass) Alloc() NNPadNode { return rv } -func NNPadNode_Alloc() NNPadNode { - return NNPadNodeClass.Alloc() -} - func (nc _NNPadNodeClass) New() NNPadNode { rv := objc.Call[NNPadNode](nc, objc.Sel("new")) rv.Autorelease() diff --git a/macos/mps/nn_padding.gen.go b/macos/mps/nn_padding_protocol.gen.go similarity index 68% rename from macos/mps/nn_padding.gen.go rename to macos/mps/nn_padding_protocol.gen.go index 5e82ed8c..8d39899c 100644 --- a/macos/mps/nn_padding.gen.go +++ b/macos/mps/nn_padding_protocol.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package mps @@ -10,72 +10,75 @@ import ( // // [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsnnpadding?language=objc type PNNPadding interface { - // optional - DestinationImageDescriptorForSourceImagesSourceStatesForKernelSuggestedDescriptor(sourceImages []Image, sourceStates []State, kernel Kernel, inDescriptor ImageDescriptor) IImageDescriptor - HasDestinationImageDescriptorForSourceImagesSourceStatesForKernelSuggestedDescriptor() bool - // optional PaddingMethod() NNPaddingMethod HasPaddingMethod() bool // optional - Inverse() objc.IObject - HasInverse() bool + DestinationImageDescriptorForSourceImagesSourceStatesForKernelSuggestedDescriptor(sourceImages []Image, sourceStates []State, kernel Kernel, inDescriptor ImageDescriptor) ImageDescriptor + HasDestinationImageDescriptorForSourceImagesSourceStatesForKernelSuggestedDescriptor() bool // optional Label() string HasLabel() bool -} -// A concrete type wrapper for the [PNNPadding] protocol. -type NNPaddingWrapper struct { - objc.Object + // optional + Inverse() objc.Object + HasInverse() bool } -func (n_ NNPaddingWrapper) HasDestinationImageDescriptorForSourceImagesSourceStatesForKernelSuggestedDescriptor() bool { - return n_.RespondsToSelector(objc.Sel("destinationImageDescriptorForSourceImages:sourceStates:forKernel:suggestedDescriptor:")) -} +// ensure impl type implements protocol interface +var _ PNNPadding = (*NNPaddingObject)(nil) -// [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsnnpadding/2867167-destinationimagedescriptorforsou?language=objc -func (n_ NNPaddingWrapper) DestinationImageDescriptorForSourceImagesSourceStatesForKernelSuggestedDescriptor(sourceImages []IImage, sourceStates []IState, kernel IKernel, inDescriptor IImageDescriptor) ImageDescriptor { - rv := objc.Call[ImageDescriptor](n_, objc.Sel("destinationImageDescriptorForSourceImages:sourceStates:forKernel:suggestedDescriptor:"), sourceImages, sourceStates, objc.Ptr(kernel), objc.Ptr(inDescriptor)) - return rv +// A concrete type for the [PNNPadding] protocol. +type NNPaddingObject struct { + objc.Object } -func (n_ NNPaddingWrapper) HasPaddingMethod() bool { +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_ NNPaddingWrapper) PaddingMethod() NNPaddingMethod { +func (n_ NNPaddingObject) PaddingMethod() NNPaddingMethod { rv := objc.Call[NNPaddingMethod](n_, objc.Sel("paddingMethod")) return rv } -func (n_ NNPaddingWrapper) HasInverse() bool { - return n_.RespondsToSelector(objc.Sel("inverse")) +func (n_ NNPaddingObject) HasDestinationImageDescriptorForSourceImagesSourceStatesForKernelSuggestedDescriptor() bool { + return n_.RespondsToSelector(objc.Sel("destinationImageDescriptorForSourceImages:sourceStates:forKernel:suggestedDescriptor:")) } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsnnpadding/2942456-inverse?language=objc -func (n_ NNPaddingWrapper) Inverse() objc.Object { - rv := objc.Call[objc.Object](n_, objc.Sel("inverse")) +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsnnpadding/2867167-destinationimagedescriptorforsou?language=objc +func (n_ NNPaddingObject) DestinationImageDescriptorForSourceImagesSourceStatesForKernelSuggestedDescriptor(sourceImages []Image, sourceStates []State, kernel Kernel, inDescriptor ImageDescriptor) ImageDescriptor { + rv := objc.Call[ImageDescriptor](n_, objc.Sel("destinationImageDescriptorForSourceImages:sourceStates:forKernel:suggestedDescriptor:"), sourceImages, sourceStates, objc.Ptr(kernel), objc.Ptr(inDescriptor)) return rv } -func (n_ NNPaddingWrapper) HasLabel() bool { +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_ NNPaddingWrapper) Label() string { +func (n_ NNPaddingObject) Label() string { rv := objc.Call[string](n_, objc.Sel("label")) return rv } + +func (n_ NNPaddingObject) HasInverse() bool { + return n_.RespondsToSelector(objc.Sel("inverse")) +} + +// [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsnnpadding/2942456-inverse?language=objc +func (n_ NNPaddingObject) Inverse() objc.Object { + rv := objc.Call[objc.Object](n_, objc.Sel("inverse")) + return rv +} diff --git a/macos/mps/nn_reduce_binary.gen.go b/macos/mps/nn_reduce_binary.gen.go index c4d286af..4dfa8c12 100644 --- a/macos/mps/nn_reduce_binary.gen.go +++ b/macos/mps/nn_reduce_binary.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package mps @@ -43,10 +43,6 @@ func (nc _NNReduceBinaryClass) Alloc() NNReduceBinary { return rv } -func NNReduceBinary_Alloc() NNReduceBinary { - return NNReduceBinaryClass.Alloc() -} - func (nc _NNReduceBinaryClass) New() NNReduceBinary { rv := objc.Call[NNReduceBinary](nc, objc.Sel("new")) rv.Autorelease() @@ -80,7 +76,6 @@ func NewNNReduceBinaryWithDevice(device metal.PDevice) NNReduceBinary { func (n_ NNReduceBinary) CopyWithZoneDevice(zone unsafe.Pointer, device metal.PDevice) NNReduceBinary { po1 := objc.WrapAsProtocol("MTLDevice", device) rv := objc.Call[NNReduceBinary](n_, objc.Sel("copyWithZone:device:"), zone, po1) - rv.Autorelease() return rv } diff --git a/macos/mps/nn_reduce_column_max.gen.go b/macos/mps/nn_reduce_column_max.gen.go index 8c96f96d..522872e7 100644 --- a/macos/mps/nn_reduce_column_max.gen.go +++ b/macos/mps/nn_reduce_column_max.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package mps @@ -54,10 +54,6 @@ func (nc _NNReduceColumnMaxClass) Alloc() NNReduceColumnMax { return rv } -func NNReduceColumnMax_Alloc() NNReduceColumnMax { - return NNReduceColumnMaxClass.Alloc() -} - func (nc _NNReduceColumnMaxClass) New() NNReduceColumnMax { rv := objc.Call[NNReduceColumnMax](nc, objc.Sel("new")) rv.Autorelease() @@ -76,7 +72,6 @@ func (n_ NNReduceColumnMax) Init() NNReduceColumnMax { func (n_ NNReduceColumnMax) CopyWithZoneDevice(zone unsafe.Pointer, device metal.PDevice) NNReduceColumnMax { po1 := objc.WrapAsProtocol("MTLDevice", device) rv := objc.Call[NNReduceColumnMax](n_, objc.Sel("copyWithZone:device:"), zone, po1) - rv.Autorelease() return rv } diff --git a/macos/mps/nn_reduce_column_mean.gen.go b/macos/mps/nn_reduce_column_mean.gen.go index eb4bce3b..b291cf86 100644 --- a/macos/mps/nn_reduce_column_mean.gen.go +++ b/macos/mps/nn_reduce_column_mean.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package mps @@ -54,10 +54,6 @@ func (nc _NNReduceColumnMeanClass) Alloc() NNReduceColumnMean { return rv } -func NNReduceColumnMean_Alloc() NNReduceColumnMean { - return NNReduceColumnMeanClass.Alloc() -} - func (nc _NNReduceColumnMeanClass) New() NNReduceColumnMean { rv := objc.Call[NNReduceColumnMean](nc, objc.Sel("new")) rv.Autorelease() @@ -76,7 +72,6 @@ func (n_ NNReduceColumnMean) Init() NNReduceColumnMean { func (n_ NNReduceColumnMean) CopyWithZoneDevice(zone unsafe.Pointer, device metal.PDevice) NNReduceColumnMean { po1 := objc.WrapAsProtocol("MTLDevice", device) rv := objc.Call[NNReduceColumnMean](n_, objc.Sel("copyWithZone:device:"), zone, po1) - rv.Autorelease() return rv } diff --git a/macos/mps/nn_reduce_column_min.gen.go b/macos/mps/nn_reduce_column_min.gen.go index 96ced084..0afbc173 100644 --- a/macos/mps/nn_reduce_column_min.gen.go +++ b/macos/mps/nn_reduce_column_min.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package mps @@ -54,10 +54,6 @@ func (nc _NNReduceColumnMinClass) Alloc() NNReduceColumnMin { return rv } -func NNReduceColumnMin_Alloc() NNReduceColumnMin { - return NNReduceColumnMinClass.Alloc() -} - func (nc _NNReduceColumnMinClass) New() NNReduceColumnMin { rv := objc.Call[NNReduceColumnMin](nc, objc.Sel("new")) rv.Autorelease() @@ -76,7 +72,6 @@ func (n_ NNReduceColumnMin) Init() NNReduceColumnMin { func (n_ NNReduceColumnMin) CopyWithZoneDevice(zone unsafe.Pointer, device metal.PDevice) NNReduceColumnMin { po1 := objc.WrapAsProtocol("MTLDevice", device) rv := objc.Call[NNReduceColumnMin](n_, objc.Sel("copyWithZone:device:"), zone, po1) - rv.Autorelease() return rv } diff --git a/macos/mps/nn_reduce_column_sum.gen.go b/macos/mps/nn_reduce_column_sum.gen.go index e97cd573..25a712ea 100644 --- a/macos/mps/nn_reduce_column_sum.gen.go +++ b/macos/mps/nn_reduce_column_sum.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package mps @@ -54,10 +54,6 @@ func (nc _NNReduceColumnSumClass) Alloc() NNReduceColumnSum { return rv } -func NNReduceColumnSum_Alloc() NNReduceColumnSum { - return NNReduceColumnSumClass.Alloc() -} - func (nc _NNReduceColumnSumClass) New() NNReduceColumnSum { rv := objc.Call[NNReduceColumnSum](nc, objc.Sel("new")) rv.Autorelease() @@ -76,7 +72,6 @@ func (n_ NNReduceColumnSum) Init() NNReduceColumnSum { func (n_ NNReduceColumnSum) CopyWithZoneDevice(zone unsafe.Pointer, device metal.PDevice) NNReduceColumnSum { po1 := objc.WrapAsProtocol("MTLDevice", device) rv := objc.Call[NNReduceColumnSum](n_, objc.Sel("copyWithZone:device:"), zone, po1) - rv.Autorelease() return rv } diff --git a/macos/mps/nn_reduce_feature_channels_and_weights_mean.gen.go b/macos/mps/nn_reduce_feature_channels_and_weights_mean.gen.go index 288b547d..893d5fb0 100644 --- a/macos/mps/nn_reduce_feature_channels_and_weights_mean.gen.go +++ b/macos/mps/nn_reduce_feature_channels_and_weights_mean.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package mps @@ -54,10 +54,6 @@ func (nc _NNReduceFeatureChannelsAndWeightsMeanClass) Alloc() NNReduceFeatureCha return rv } -func NNReduceFeatureChannelsAndWeightsMean_Alloc() NNReduceFeatureChannelsAndWeightsMean { - return NNReduceFeatureChannelsAndWeightsMeanClass.Alloc() -} - func (nc _NNReduceFeatureChannelsAndWeightsMeanClass) New() NNReduceFeatureChannelsAndWeightsMean { rv := objc.Call[NNReduceFeatureChannelsAndWeightsMean](nc, objc.Sel("new")) rv.Autorelease() @@ -76,7 +72,6 @@ func (n_ NNReduceFeatureChannelsAndWeightsMean) Init() NNReduceFeatureChannelsAn func (n_ NNReduceFeatureChannelsAndWeightsMean) CopyWithZoneDevice(zone unsafe.Pointer, device metal.PDevice) NNReduceFeatureChannelsAndWeightsMean { po1 := objc.WrapAsProtocol("MTLDevice", device) rv := objc.Call[NNReduceFeatureChannelsAndWeightsMean](n_, objc.Sel("copyWithZone:device:"), zone, po1) - rv.Autorelease() 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 b07b0ab3..707d0075 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 @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package mps @@ -50,13 +50,24 @@ func NewNNReduceFeatureChannelsAndWeightsSumWithDevice(device metal.PDevice) NNR return instance } -func (nc _NNReduceFeatureChannelsAndWeightsSumClass) Alloc() NNReduceFeatureChannelsAndWeightsSum { - rv := objc.Call[NNReduceFeatureChannelsAndWeightsSum](nc, objc.Sel("alloc")) +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 } -func NNReduceFeatureChannelsAndWeightsSum_Alloc() NNReduceFeatureChannelsAndWeightsSum { - return NNReduceFeatureChannelsAndWeightsSumClass.Alloc() +// [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 } func (nc _NNReduceFeatureChannelsAndWeightsSumClass) New() NNReduceFeatureChannelsAndWeightsSum { @@ -77,7 +88,6 @@ func (n_ NNReduceFeatureChannelsAndWeightsSum) Init() NNReduceFeatureChannelsAnd func (n_ NNReduceFeatureChannelsAndWeightsSum) CopyWithZoneDevice(zone unsafe.Pointer, device metal.PDevice) NNReduceFeatureChannelsAndWeightsSum { po1 := objc.WrapAsProtocol("MTLDevice", device) rv := objc.Call[NNReduceFeatureChannelsAndWeightsSum](n_, objc.Sel("copyWithZone:device:"), zone, po1) - rv.Autorelease() return rv } diff --git a/macos/mps/nn_reduce_feature_channels_argument_max.gen.go b/macos/mps/nn_reduce_feature_channels_argument_max.gen.go index 1672f096..ea23c6cc 100644 --- a/macos/mps/nn_reduce_feature_channels_argument_max.gen.go +++ b/macos/mps/nn_reduce_feature_channels_argument_max.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package mps @@ -54,10 +54,6 @@ func (nc _NNReduceFeatureChannelsArgumentMaxClass) Alloc() NNReduceFeatureChanne return rv } -func NNReduceFeatureChannelsArgumentMax_Alloc() NNReduceFeatureChannelsArgumentMax { - return NNReduceFeatureChannelsArgumentMaxClass.Alloc() -} - func (nc _NNReduceFeatureChannelsArgumentMaxClass) New() NNReduceFeatureChannelsArgumentMax { rv := objc.Call[NNReduceFeatureChannelsArgumentMax](nc, objc.Sel("new")) rv.Autorelease() @@ -76,7 +72,6 @@ func (n_ NNReduceFeatureChannelsArgumentMax) Init() NNReduceFeatureChannelsArgum func (n_ NNReduceFeatureChannelsArgumentMax) CopyWithZoneDevice(zone unsafe.Pointer, device metal.PDevice) NNReduceFeatureChannelsArgumentMax { po1 := objc.WrapAsProtocol("MTLDevice", device) rv := objc.Call[NNReduceFeatureChannelsArgumentMax](n_, objc.Sel("copyWithZone:device:"), zone, po1) - rv.Autorelease() return rv } diff --git a/macos/mps/nn_reduce_feature_channels_argument_min.gen.go b/macos/mps/nn_reduce_feature_channels_argument_min.gen.go index 53d23dde..ecc82b3f 100644 --- a/macos/mps/nn_reduce_feature_channels_argument_min.gen.go +++ b/macos/mps/nn_reduce_feature_channels_argument_min.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package mps @@ -54,10 +54,6 @@ func (nc _NNReduceFeatureChannelsArgumentMinClass) Alloc() NNReduceFeatureChanne return rv } -func NNReduceFeatureChannelsArgumentMin_Alloc() NNReduceFeatureChannelsArgumentMin { - return NNReduceFeatureChannelsArgumentMinClass.Alloc() -} - func (nc _NNReduceFeatureChannelsArgumentMinClass) New() NNReduceFeatureChannelsArgumentMin { rv := objc.Call[NNReduceFeatureChannelsArgumentMin](nc, objc.Sel("new")) rv.Autorelease() @@ -76,7 +72,6 @@ func (n_ NNReduceFeatureChannelsArgumentMin) Init() NNReduceFeatureChannelsArgum func (n_ NNReduceFeatureChannelsArgumentMin) CopyWithZoneDevice(zone unsafe.Pointer, device metal.PDevice) NNReduceFeatureChannelsArgumentMin { po1 := objc.WrapAsProtocol("MTLDevice", device) rv := objc.Call[NNReduceFeatureChannelsArgumentMin](n_, objc.Sel("copyWithZone:device:"), zone, po1) - rv.Autorelease() return rv } diff --git a/macos/mps/nn_reduce_feature_channels_max.gen.go b/macos/mps/nn_reduce_feature_channels_max.gen.go index 9fa36ba9..74fc3465 100644 --- a/macos/mps/nn_reduce_feature_channels_max.gen.go +++ b/macos/mps/nn_reduce_feature_channels_max.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package mps @@ -54,10 +54,6 @@ func (nc _NNReduceFeatureChannelsMaxClass) Alloc() NNReduceFeatureChannelsMax { return rv } -func NNReduceFeatureChannelsMax_Alloc() NNReduceFeatureChannelsMax { - return NNReduceFeatureChannelsMaxClass.Alloc() -} - func (nc _NNReduceFeatureChannelsMaxClass) New() NNReduceFeatureChannelsMax { rv := objc.Call[NNReduceFeatureChannelsMax](nc, objc.Sel("new")) rv.Autorelease() @@ -76,7 +72,6 @@ func (n_ NNReduceFeatureChannelsMax) Init() NNReduceFeatureChannelsMax { func (n_ NNReduceFeatureChannelsMax) CopyWithZoneDevice(zone unsafe.Pointer, device metal.PDevice) NNReduceFeatureChannelsMax { po1 := objc.WrapAsProtocol("MTLDevice", device) rv := objc.Call[NNReduceFeatureChannelsMax](n_, objc.Sel("copyWithZone:device:"), zone, po1) - rv.Autorelease() return rv } diff --git a/macos/mps/nn_reduce_feature_channels_mean.gen.go b/macos/mps/nn_reduce_feature_channels_mean.gen.go index ff40f646..c0928b40 100644 --- a/macos/mps/nn_reduce_feature_channels_mean.gen.go +++ b/macos/mps/nn_reduce_feature_channels_mean.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package mps @@ -54,10 +54,6 @@ func (nc _NNReduceFeatureChannelsMeanClass) Alloc() NNReduceFeatureChannelsMean return rv } -func NNReduceFeatureChannelsMean_Alloc() NNReduceFeatureChannelsMean { - return NNReduceFeatureChannelsMeanClass.Alloc() -} - func (nc _NNReduceFeatureChannelsMeanClass) New() NNReduceFeatureChannelsMean { rv := objc.Call[NNReduceFeatureChannelsMean](nc, objc.Sel("new")) rv.Autorelease() @@ -76,7 +72,6 @@ func (n_ NNReduceFeatureChannelsMean) Init() NNReduceFeatureChannelsMean { func (n_ NNReduceFeatureChannelsMean) CopyWithZoneDevice(zone unsafe.Pointer, device metal.PDevice) NNReduceFeatureChannelsMean { po1 := objc.WrapAsProtocol("MTLDevice", device) rv := objc.Call[NNReduceFeatureChannelsMean](n_, objc.Sel("copyWithZone:device:"), zone, po1) - rv.Autorelease() return rv } diff --git a/macos/mps/nn_reduce_feature_channels_min.gen.go b/macos/mps/nn_reduce_feature_channels_min.gen.go index 41990c37..8e561f58 100644 --- a/macos/mps/nn_reduce_feature_channels_min.gen.go +++ b/macos/mps/nn_reduce_feature_channels_min.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package mps @@ -54,10 +54,6 @@ func (nc _NNReduceFeatureChannelsMinClass) Alloc() NNReduceFeatureChannelsMin { return rv } -func NNReduceFeatureChannelsMin_Alloc() NNReduceFeatureChannelsMin { - return NNReduceFeatureChannelsMinClass.Alloc() -} - func (nc _NNReduceFeatureChannelsMinClass) New() NNReduceFeatureChannelsMin { rv := objc.Call[NNReduceFeatureChannelsMin](nc, objc.Sel("new")) rv.Autorelease() @@ -76,7 +72,6 @@ func (n_ NNReduceFeatureChannelsMin) Init() NNReduceFeatureChannelsMin { func (n_ NNReduceFeatureChannelsMin) CopyWithZoneDevice(zone unsafe.Pointer, device metal.PDevice) NNReduceFeatureChannelsMin { po1 := objc.WrapAsProtocol("MTLDevice", device) rv := objc.Call[NNReduceFeatureChannelsMin](n_, objc.Sel("copyWithZone:device:"), zone, po1) - rv.Autorelease() return rv } diff --git a/macos/mps/nn_reduce_feature_channels_sum.gen.go b/macos/mps/nn_reduce_feature_channels_sum.gen.go index 14f4447e..a219a001 100644 --- a/macos/mps/nn_reduce_feature_channels_sum.gen.go +++ b/macos/mps/nn_reduce_feature_channels_sum.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package mps @@ -56,10 +56,6 @@ func (nc _NNReduceFeatureChannelsSumClass) Alloc() NNReduceFeatureChannelsSum { return rv } -func NNReduceFeatureChannelsSum_Alloc() NNReduceFeatureChannelsSum { - return NNReduceFeatureChannelsSumClass.Alloc() -} - func (nc _NNReduceFeatureChannelsSumClass) New() NNReduceFeatureChannelsSum { rv := objc.Call[NNReduceFeatureChannelsSum](nc, objc.Sel("new")) rv.Autorelease() @@ -78,7 +74,6 @@ func (n_ NNReduceFeatureChannelsSum) Init() NNReduceFeatureChannelsSum { func (n_ NNReduceFeatureChannelsSum) CopyWithZoneDevice(zone unsafe.Pointer, device metal.PDevice) NNReduceFeatureChannelsSum { po1 := objc.WrapAsProtocol("MTLDevice", device) rv := objc.Call[NNReduceFeatureChannelsSum](n_, objc.Sel("copyWithZone:device:"), zone, po1) - rv.Autorelease() return rv } diff --git a/macos/mps/nn_reduce_row_max.gen.go b/macos/mps/nn_reduce_row_max.gen.go index db01d941..cc056475 100644 --- a/macos/mps/nn_reduce_row_max.gen.go +++ b/macos/mps/nn_reduce_row_max.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package mps @@ -54,10 +54,6 @@ func (nc _NNReduceRowMaxClass) Alloc() NNReduceRowMax { return rv } -func NNReduceRowMax_Alloc() NNReduceRowMax { - return NNReduceRowMaxClass.Alloc() -} - func (nc _NNReduceRowMaxClass) New() NNReduceRowMax { rv := objc.Call[NNReduceRowMax](nc, objc.Sel("new")) rv.Autorelease() @@ -76,7 +72,6 @@ func (n_ NNReduceRowMax) Init() NNReduceRowMax { func (n_ NNReduceRowMax) CopyWithZoneDevice(zone unsafe.Pointer, device metal.PDevice) NNReduceRowMax { po1 := objc.WrapAsProtocol("MTLDevice", device) rv := objc.Call[NNReduceRowMax](n_, objc.Sel("copyWithZone:device:"), zone, po1) - rv.Autorelease() return rv } diff --git a/macos/mps/nn_reduce_row_mean.gen.go b/macos/mps/nn_reduce_row_mean.gen.go index c7d3faf1..3a9df0f9 100644 --- a/macos/mps/nn_reduce_row_mean.gen.go +++ b/macos/mps/nn_reduce_row_mean.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package mps @@ -54,10 +54,6 @@ func (nc _NNReduceRowMeanClass) Alloc() NNReduceRowMean { return rv } -func NNReduceRowMean_Alloc() NNReduceRowMean { - return NNReduceRowMeanClass.Alloc() -} - func (nc _NNReduceRowMeanClass) New() NNReduceRowMean { rv := objc.Call[NNReduceRowMean](nc, objc.Sel("new")) rv.Autorelease() @@ -76,7 +72,6 @@ func (n_ NNReduceRowMean) Init() NNReduceRowMean { func (n_ NNReduceRowMean) CopyWithZoneDevice(zone unsafe.Pointer, device metal.PDevice) NNReduceRowMean { po1 := objc.WrapAsProtocol("MTLDevice", device) rv := objc.Call[NNReduceRowMean](n_, objc.Sel("copyWithZone:device:"), zone, po1) - rv.Autorelease() return rv } diff --git a/macos/mps/nn_reduce_row_min.gen.go b/macos/mps/nn_reduce_row_min.gen.go index fc360c16..e65135d4 100644 --- a/macos/mps/nn_reduce_row_min.gen.go +++ b/macos/mps/nn_reduce_row_min.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package mps @@ -54,10 +54,6 @@ func (nc _NNReduceRowMinClass) Alloc() NNReduceRowMin { return rv } -func NNReduceRowMin_Alloc() NNReduceRowMin { - return NNReduceRowMinClass.Alloc() -} - func (nc _NNReduceRowMinClass) New() NNReduceRowMin { rv := objc.Call[NNReduceRowMin](nc, objc.Sel("new")) rv.Autorelease() @@ -76,7 +72,6 @@ func (n_ NNReduceRowMin) Init() NNReduceRowMin { func (n_ NNReduceRowMin) CopyWithZoneDevice(zone unsafe.Pointer, device metal.PDevice) NNReduceRowMin { po1 := objc.WrapAsProtocol("MTLDevice", device) rv := objc.Call[NNReduceRowMin](n_, objc.Sel("copyWithZone:device:"), zone, po1) - rv.Autorelease() return rv } diff --git a/macos/mps/nn_reduce_row_sum.gen.go b/macos/mps/nn_reduce_row_sum.gen.go index cc008b2d..7bc2a92f 100644 --- a/macos/mps/nn_reduce_row_sum.gen.go +++ b/macos/mps/nn_reduce_row_sum.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package mps @@ -54,10 +54,6 @@ func (nc _NNReduceRowSumClass) Alloc() NNReduceRowSum { return rv } -func NNReduceRowSum_Alloc() NNReduceRowSum { - return NNReduceRowSumClass.Alloc() -} - func (nc _NNReduceRowSumClass) New() NNReduceRowSum { rv := objc.Call[NNReduceRowSum](nc, objc.Sel("new")) rv.Autorelease() @@ -76,7 +72,6 @@ func (n_ NNReduceRowSum) Init() NNReduceRowSum { func (n_ NNReduceRowSum) CopyWithZoneDevice(zone unsafe.Pointer, device metal.PDevice) NNReduceRowSum { po1 := objc.WrapAsProtocol("MTLDevice", device) rv := objc.Call[NNReduceRowSum](n_, objc.Sel("copyWithZone:device:"), zone, po1) - rv.Autorelease() return rv } diff --git a/macos/mps/nn_reduce_unary.gen.go b/macos/mps/nn_reduce_unary.gen.go index 87927e65..98b05d99 100644 --- a/macos/mps/nn_reduce_unary.gen.go +++ b/macos/mps/nn_reduce_unary.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package mps @@ -41,10 +41,6 @@ func (nc _NNReduceUnaryClass) Alloc() NNReduceUnary { return rv } -func NNReduceUnary_Alloc() NNReduceUnary { - return NNReduceUnaryClass.Alloc() -} - func (nc _NNReduceUnaryClass) New() NNReduceUnary { rv := objc.Call[NNReduceUnary](nc, objc.Sel("new")) rv.Autorelease() @@ -78,7 +74,6 @@ func NewNNReduceUnaryWithDevice(device metal.PDevice) NNReduceUnary { func (n_ NNReduceUnary) CopyWithZoneDevice(zone unsafe.Pointer, device metal.PDevice) NNReduceUnary { po1 := objc.WrapAsProtocol("MTLDevice", device) rv := objc.Call[NNReduceUnary](n_, objc.Sel("copyWithZone:device:"), zone, po1) - rv.Autorelease() return rv } diff --git a/macos/mps/nn_reduction_column_max_node.gen.go b/macos/mps/nn_reduction_column_max_node.gen.go index 185f30e6..e5fc91e0 100644 --- a/macos/mps/nn_reduction_column_max_node.gen.go +++ b/macos/mps/nn_reduction_column_max_node.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package mps @@ -38,10 +38,6 @@ func (nc _NNReductionColumnMaxNodeClass) Alloc() NNReductionColumnMaxNode { return rv } -func NNReductionColumnMaxNode_Alloc() NNReductionColumnMaxNode { - return NNReductionColumnMaxNodeClass.Alloc() -} - func (nc _NNReductionColumnMaxNodeClass) New() NNReductionColumnMaxNode { rv := objc.Call[NNReductionColumnMaxNode](nc, objc.Sel("new")) rv.Autorelease() diff --git a/macos/mps/nn_reduction_column_mean_node.gen.go b/macos/mps/nn_reduction_column_mean_node.gen.go index ac7b41bb..b4d00533 100644 --- a/macos/mps/nn_reduction_column_mean_node.gen.go +++ b/macos/mps/nn_reduction_column_mean_node.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package mps @@ -38,10 +38,6 @@ func (nc _NNReductionColumnMeanNodeClass) Alloc() NNReductionColumnMeanNode { return rv } -func NNReductionColumnMeanNode_Alloc() NNReductionColumnMeanNode { - return NNReductionColumnMeanNodeClass.Alloc() -} - func (nc _NNReductionColumnMeanNodeClass) New() NNReductionColumnMeanNode { rv := objc.Call[NNReductionColumnMeanNode](nc, objc.Sel("new")) rv.Autorelease() diff --git a/macos/mps/nn_reduction_column_min_node.gen.go b/macos/mps/nn_reduction_column_min_node.gen.go index cccf9658..3bc6c443 100644 --- a/macos/mps/nn_reduction_column_min_node.gen.go +++ b/macos/mps/nn_reduction_column_min_node.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package mps @@ -38,10 +38,6 @@ func (nc _NNReductionColumnMinNodeClass) Alloc() NNReductionColumnMinNode { return rv } -func NNReductionColumnMinNode_Alloc() NNReductionColumnMinNode { - return NNReductionColumnMinNodeClass.Alloc() -} - func (nc _NNReductionColumnMinNodeClass) New() NNReductionColumnMinNode { rv := objc.Call[NNReductionColumnMinNode](nc, objc.Sel("new")) rv.Autorelease() diff --git a/macos/mps/nn_reduction_column_sum_node.gen.go b/macos/mps/nn_reduction_column_sum_node.gen.go index 4b9fd682..e2f54a49 100644 --- a/macos/mps/nn_reduction_column_sum_node.gen.go +++ b/macos/mps/nn_reduction_column_sum_node.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package mps @@ -38,10 +38,6 @@ func (nc _NNReductionColumnSumNodeClass) Alloc() NNReductionColumnSumNode { return rv } -func NNReductionColumnSumNode_Alloc() NNReductionColumnSumNode { - return NNReductionColumnSumNodeClass.Alloc() -} - func (nc _NNReductionColumnSumNodeClass) New() NNReductionColumnSumNode { rv := objc.Call[NNReductionColumnSumNode](nc, objc.Sel("new")) rv.Autorelease() diff --git a/macos/mps/nn_reduction_feature_channels_argument_max_node.gen.go b/macos/mps/nn_reduction_feature_channels_argument_max_node.gen.go index eaef0721..b921da08 100644 --- a/macos/mps/nn_reduction_feature_channels_argument_max_node.gen.go +++ b/macos/mps/nn_reduction_feature_channels_argument_max_node.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package mps @@ -38,10 +38,6 @@ func (nc _NNReductionFeatureChannelsArgumentMaxNodeClass) Alloc() NNReductionFea return rv } -func NNReductionFeatureChannelsArgumentMaxNode_Alloc() NNReductionFeatureChannelsArgumentMaxNode { - return NNReductionFeatureChannelsArgumentMaxNodeClass.Alloc() -} - func (nc _NNReductionFeatureChannelsArgumentMaxNodeClass) New() NNReductionFeatureChannelsArgumentMaxNode { rv := objc.Call[NNReductionFeatureChannelsArgumentMaxNode](nc, objc.Sel("new")) rv.Autorelease() diff --git a/macos/mps/nn_reduction_feature_channels_argument_min_node.gen.go b/macos/mps/nn_reduction_feature_channels_argument_min_node.gen.go index df44437a..9e321c21 100644 --- a/macos/mps/nn_reduction_feature_channels_argument_min_node.gen.go +++ b/macos/mps/nn_reduction_feature_channels_argument_min_node.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package mps @@ -38,10 +38,6 @@ func (nc _NNReductionFeatureChannelsArgumentMinNodeClass) Alloc() NNReductionFea return rv } -func NNReductionFeatureChannelsArgumentMinNode_Alloc() NNReductionFeatureChannelsArgumentMinNode { - return NNReductionFeatureChannelsArgumentMinNodeClass.Alloc() -} - func (nc _NNReductionFeatureChannelsArgumentMinNodeClass) New() NNReductionFeatureChannelsArgumentMinNode { rv := objc.Call[NNReductionFeatureChannelsArgumentMinNode](nc, objc.Sel("new")) rv.Autorelease() diff --git a/macos/mps/nn_reduction_feature_channels_max_node.gen.go b/macos/mps/nn_reduction_feature_channels_max_node.gen.go index 008a5c6d..46ac5455 100644 --- a/macos/mps/nn_reduction_feature_channels_max_node.gen.go +++ b/macos/mps/nn_reduction_feature_channels_max_node.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package mps @@ -38,10 +38,6 @@ func (nc _NNReductionFeatureChannelsMaxNodeClass) Alloc() NNReductionFeatureChan return rv } -func NNReductionFeatureChannelsMaxNode_Alloc() NNReductionFeatureChannelsMaxNode { - return NNReductionFeatureChannelsMaxNodeClass.Alloc() -} - func (nc _NNReductionFeatureChannelsMaxNodeClass) New() NNReductionFeatureChannelsMaxNode { rv := objc.Call[NNReductionFeatureChannelsMaxNode](nc, objc.Sel("new")) rv.Autorelease() diff --git a/macos/mps/nn_reduction_feature_channels_mean_node.gen.go b/macos/mps/nn_reduction_feature_channels_mean_node.gen.go index c4a1debd..4aa6ca12 100644 --- a/macos/mps/nn_reduction_feature_channels_mean_node.gen.go +++ b/macos/mps/nn_reduction_feature_channels_mean_node.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package mps @@ -38,10 +38,6 @@ func (nc _NNReductionFeatureChannelsMeanNodeClass) Alloc() NNReductionFeatureCha return rv } -func NNReductionFeatureChannelsMeanNode_Alloc() NNReductionFeatureChannelsMeanNode { - return NNReductionFeatureChannelsMeanNodeClass.Alloc() -} - func (nc _NNReductionFeatureChannelsMeanNodeClass) New() NNReductionFeatureChannelsMeanNode { rv := objc.Call[NNReductionFeatureChannelsMeanNode](nc, objc.Sel("new")) rv.Autorelease() diff --git a/macos/mps/nn_reduction_feature_channels_min_node.gen.go b/macos/mps/nn_reduction_feature_channels_min_node.gen.go index f52715a6..886e0ffb 100644 --- a/macos/mps/nn_reduction_feature_channels_min_node.gen.go +++ b/macos/mps/nn_reduction_feature_channels_min_node.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package mps @@ -38,10 +38,6 @@ func (nc _NNReductionFeatureChannelsMinNodeClass) Alloc() NNReductionFeatureChan return rv } -func NNReductionFeatureChannelsMinNode_Alloc() NNReductionFeatureChannelsMinNode { - return NNReductionFeatureChannelsMinNodeClass.Alloc() -} - func (nc _NNReductionFeatureChannelsMinNodeClass) New() NNReductionFeatureChannelsMinNode { rv := objc.Call[NNReductionFeatureChannelsMinNode](nc, objc.Sel("new")) rv.Autorelease() diff --git a/macos/mps/nn_reduction_feature_channels_sum_node.gen.go b/macos/mps/nn_reduction_feature_channels_sum_node.gen.go index a2abb822..bd03d25f 100644 --- a/macos/mps/nn_reduction_feature_channels_sum_node.gen.go +++ b/macos/mps/nn_reduction_feature_channels_sum_node.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package mps @@ -40,10 +40,6 @@ func (nc _NNReductionFeatureChannelsSumNodeClass) Alloc() NNReductionFeatureChan return rv } -func NNReductionFeatureChannelsSumNode_Alloc() NNReductionFeatureChannelsSumNode { - return NNReductionFeatureChannelsSumNodeClass.Alloc() -} - func (nc _NNReductionFeatureChannelsSumNodeClass) New() NNReductionFeatureChannelsSumNode { rv := objc.Call[NNReductionFeatureChannelsSumNode](nc, objc.Sel("new")) rv.Autorelease() diff --git a/macos/mps/nn_reduction_row_max_node.gen.go b/macos/mps/nn_reduction_row_max_node.gen.go index 56324135..f503a280 100644 --- a/macos/mps/nn_reduction_row_max_node.gen.go +++ b/macos/mps/nn_reduction_row_max_node.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package mps @@ -38,10 +38,6 @@ func (nc _NNReductionRowMaxNodeClass) Alloc() NNReductionRowMaxNode { return rv } -func NNReductionRowMaxNode_Alloc() NNReductionRowMaxNode { - return NNReductionRowMaxNodeClass.Alloc() -} - func (nc _NNReductionRowMaxNodeClass) New() NNReductionRowMaxNode { rv := objc.Call[NNReductionRowMaxNode](nc, objc.Sel("new")) rv.Autorelease() diff --git a/macos/mps/nn_reduction_row_mean_node.gen.go b/macos/mps/nn_reduction_row_mean_node.gen.go index 71eb761a..1fac1e29 100644 --- a/macos/mps/nn_reduction_row_mean_node.gen.go +++ b/macos/mps/nn_reduction_row_mean_node.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package mps @@ -38,10 +38,6 @@ func (nc _NNReductionRowMeanNodeClass) Alloc() NNReductionRowMeanNode { return rv } -func NNReductionRowMeanNode_Alloc() NNReductionRowMeanNode { - return NNReductionRowMeanNodeClass.Alloc() -} - func (nc _NNReductionRowMeanNodeClass) New() NNReductionRowMeanNode { rv := objc.Call[NNReductionRowMeanNode](nc, objc.Sel("new")) rv.Autorelease() diff --git a/macos/mps/nn_reduction_row_min_node.gen.go b/macos/mps/nn_reduction_row_min_node.gen.go index bb2c0caf..dc192b52 100644 --- a/macos/mps/nn_reduction_row_min_node.gen.go +++ b/macos/mps/nn_reduction_row_min_node.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package mps @@ -38,10 +38,6 @@ func (nc _NNReductionRowMinNodeClass) Alloc() NNReductionRowMinNode { return rv } -func NNReductionRowMinNode_Alloc() NNReductionRowMinNode { - return NNReductionRowMinNodeClass.Alloc() -} - func (nc _NNReductionRowMinNodeClass) New() NNReductionRowMinNode { rv := objc.Call[NNReductionRowMinNode](nc, objc.Sel("new")) rv.Autorelease() diff --git a/macos/mps/nn_reduction_row_sum_node.gen.go b/macos/mps/nn_reduction_row_sum_node.gen.go index c1a4ed4d..4468e409 100644 --- a/macos/mps/nn_reduction_row_sum_node.gen.go +++ b/macos/mps/nn_reduction_row_sum_node.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package mps @@ -38,10 +38,6 @@ func (nc _NNReductionRowSumNodeClass) Alloc() NNReductionRowSumNode { return rv } -func NNReductionRowSumNode_Alloc() NNReductionRowSumNode { - return NNReductionRowSumNodeClass.Alloc() -} - func (nc _NNReductionRowSumNodeClass) New() NNReductionRowSumNode { rv := objc.Call[NNReductionRowSumNode](nc, objc.Sel("new")) rv.Autorelease() diff --git a/macos/mps/nn_reduction_spatial_mean_gradient_node.gen.go b/macos/mps/nn_reduction_spatial_mean_gradient_node.gen.go index 0ece9d6a..f70009e1 100644 --- a/macos/mps/nn_reduction_spatial_mean_gradient_node.gen.go +++ b/macos/mps/nn_reduction_spatial_mean_gradient_node.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package mps @@ -64,10 +64,6 @@ func (nc _NNReductionSpatialMeanGradientNodeClass) Alloc() NNReductionSpatialMea return rv } -func NNReductionSpatialMeanGradientNode_Alloc() NNReductionSpatialMeanGradientNode { - return NNReductionSpatialMeanGradientNodeClass.Alloc() -} - func (nc _NNReductionSpatialMeanGradientNodeClass) New() NNReductionSpatialMeanGradientNode { rv := objc.Call[NNReductionSpatialMeanGradientNode](nc, objc.Sel("new")) rv.Autorelease() diff --git a/macos/mps/nn_reduction_spatial_mean_node.gen.go b/macos/mps/nn_reduction_spatial_mean_node.gen.go index e605d264..1cd68061 100644 --- a/macos/mps/nn_reduction_spatial_mean_node.gen.go +++ b/macos/mps/nn_reduction_spatial_mean_node.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package mps @@ -38,10 +38,6 @@ func (nc _NNReductionSpatialMeanNodeClass) Alloc() NNReductionSpatialMeanNode { return rv } -func NNReductionSpatialMeanNode_Alloc() NNReductionSpatialMeanNode { - return NNReductionSpatialMeanNodeClass.Alloc() -} - func (nc _NNReductionSpatialMeanNodeClass) New() NNReductionSpatialMeanNode { rv := objc.Call[NNReductionSpatialMeanNode](nc, objc.Sel("new")) rv.Autorelease() diff --git a/macos/mps/nn_reshape.gen.go b/macos/mps/nn_reshape.gen.go index ef83fbed..37e1e439 100644 --- a/macos/mps/nn_reshape.gen.go +++ b/macos/mps/nn_reshape.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package mps @@ -20,10 +20,14 @@ type _NNReshapeClass struct { // An interface definition for the [NNReshape] class. type INNReshape interface { ICNNKernel - 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 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 IState, isTemporary bool, reshapedWidth uint, reshapedHeight uint, reshapedFeatureChannels uint) Image + EncodeToCommandBufferObjectSourceImageDestinationStateDestinationStateIsTemporaryReshapedWidthReshapedHeightReshapedFeatureChannels(commandBufferObject objc.IObject, sourceImage IImage, outState IState, 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 *foundation.Array, isTemporary bool, reshapedWidth uint, reshapedHeight uint, reshapedFeatureChannels uint) *foundation.Array + EncodeBatchToCommandBufferObjectSourceImagesDestinationStatesDestinationStateIsTemporaryReshapedWidthReshapedHeightReshapedFeatureChannels(commandBufferObject objc.IObject, sourceImages *foundation.Array, outStates *foundation.Array, isTemporary bool, reshapedWidth uint, reshapedHeight uint, reshapedFeatureChannels uint) *foundation.Array } // The base class for reshape operations. [Full Topic] @@ -59,10 +63,6 @@ func (nc _NNReshapeClass) Alloc() NNReshape { return rv } -func NNReshape_Alloc() NNReshape { - return NNReshapeClass.Alloc() -} - func (nc _NNReshapeClass) New() NNReshape { rv := objc.Call[NNReshape](nc, objc.Sel("new")) rv.Autorelease() @@ -81,7 +81,6 @@ func (n_ NNReshape) Init() NNReshape { func (n_ NNReshape) CopyWithZoneDevice(zone unsafe.Pointer, device metal.PDevice) NNReshape { po1 := objc.WrapAsProtocol("MTLDevice", device) rv := objc.Call[NNReshape](n_, objc.Sel("copyWithZone:device:"), zone, po1) - rv.Autorelease() return rv } @@ -94,6 +93,40 @@ 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, objc.Ptr(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:"), objc.Ptr(commandBufferObject), objc.Ptr(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 IState, 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, objc.Ptr(sourceImage), objc.Ptr(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 IState, isTemporary bool, reshapedWidth uint, reshapedHeight uint, reshapedFeatureChannels uint) Image { + rv := objc.Call[Image](n_, objc.Sel("encodeToCommandBuffer:sourceImage:destinationState:destinationStateIsTemporary:reshapedWidth:reshapedHeight:reshapedFeatureChannels:"), objc.Ptr(commandBufferObject), objc.Ptr(sourceImage), objc.Ptr(outState), isTemporary, reshapedWidth, reshapedHeight, reshapedFeatureChannels) + return rv +} + // [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsnnreshape/3547990-encodebatchtocommandbuffer?language=objc @@ -113,17 +146,17 @@ func (n_ NNReshape) EncodeBatchToCommandBufferObjectSourceImagesReshapedWidthRes // [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 { +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsnnreshape/3547989-encodebatchtocommandbuffer?language=objc +func (n_ NNReshape) EncodeBatchToCommandBufferSourceImagesDestinationStatesDestinationStateIsTemporaryReshapedWidthReshapedHeightReshapedFeatureChannels(commandBuffer metal.PCommandBuffer, sourceImages *foundation.Array, outStates *foundation.Array, isTemporary bool, reshapedWidth uint, reshapedHeight uint, reshapedFeatureChannels uint) *foundation.Array { po0 := objc.WrapAsProtocol("MTLCommandBuffer", commandBuffer) - rv := objc.Call[Image](n_, objc.Sel("encodeToCommandBuffer:sourceImage:reshapedWidth:reshapedHeight:reshapedFeatureChannels:"), po0, objc.Ptr(sourceImage), reshapedWidth, reshapedHeight, reshapedFeatureChannels) + rv := objc.Call[*foundation.Array](n_, objc.Sel("encodeBatchToCommandBuffer:sourceImages:destinationStates:destinationStateIsTemporary:reshapedWidth:reshapedHeight:reshapedFeatureChannels:"), po0, sourceImages, outStates, isTemporary, 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:"), objc.Ptr(commandBufferObject), objc.Ptr(sourceImage), reshapedWidth, reshapedHeight, reshapedFeatureChannels) +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsnnreshape/3547989-encodebatchtocommandbuffer?language=objc +func (n_ NNReshape) EncodeBatchToCommandBufferObjectSourceImagesDestinationStatesDestinationStateIsTemporaryReshapedWidthReshapedHeightReshapedFeatureChannels(commandBufferObject objc.IObject, sourceImages *foundation.Array, outStates *foundation.Array, 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:"), objc.Ptr(commandBufferObject), sourceImages, outStates, isTemporary, reshapedWidth, reshapedHeight, reshapedFeatureChannels) return rv } diff --git a/macos/mps/nn_reshape_gradient.gen.go b/macos/mps/nn_reshape_gradient.gen.go index f1283c02..9c1dd341 100644 --- a/macos/mps/nn_reshape_gradient.gen.go +++ b/macos/mps/nn_reshape_gradient.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package mps @@ -54,10 +54,6 @@ func (nc _NNReshapeGradientClass) Alloc() NNReshapeGradient { return rv } -func NNReshapeGradient_Alloc() NNReshapeGradient { - return NNReshapeGradientClass.Alloc() -} - func (nc _NNReshapeGradientClass) New() NNReshapeGradient { rv := objc.Call[NNReshapeGradient](nc, objc.Sel("new")) rv.Autorelease() @@ -76,7 +72,6 @@ func (n_ NNReshapeGradient) Init() NNReshapeGradient { func (n_ NNReshapeGradient) CopyWithZoneDevice(zone unsafe.Pointer, device metal.PDevice) NNReshapeGradient { po1 := objc.WrapAsProtocol("MTLDevice", device) rv := objc.Call[NNReshapeGradient](n_, objc.Sel("copyWithZone:device:"), zone, po1) - rv.Autorelease() return rv } diff --git a/macos/mps/nn_reshape_gradient_node.gen.go b/macos/mps/nn_reshape_gradient_node.gen.go index 11c465b9..f9cdcc9d 100644 --- a/macos/mps/nn_reshape_gradient_node.gen.go +++ b/macos/mps/nn_reshape_gradient_node.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package mps @@ -64,10 +64,6 @@ func (nc _NNReshapeGradientNodeClass) Alloc() NNReshapeGradientNode { return rv } -func NNReshapeGradientNode_Alloc() NNReshapeGradientNode { - return NNReshapeGradientNodeClass.Alloc() -} - func (nc _NNReshapeGradientNodeClass) New() NNReshapeGradientNode { rv := objc.Call[NNReshapeGradientNode](nc, objc.Sel("new")) rv.Autorelease() diff --git a/macos/mps/nn_reshape_node.gen.go b/macos/mps/nn_reshape_node.gen.go index 492e1357..57505ebf 100644 --- a/macos/mps/nn_reshape_node.gen.go +++ b/macos/mps/nn_reshape_node.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package mps @@ -64,10 +64,6 @@ func (nc _NNReshapeNodeClass) Alloc() NNReshapeNode { return rv } -func NNReshapeNode_Alloc() NNReshapeNode { - return NNReshapeNodeClass.Alloc() -} - func (nc _NNReshapeNodeClass) New() NNReshapeNode { rv := objc.Call[NNReshapeNode](nc, objc.Sel("new")) rv.Autorelease() diff --git a/macos/mps/nn_resize_bilinear.gen.go b/macos/mps/nn_resize_bilinear.gen.go index 9cf36d97..a301ac04 100644 --- a/macos/mps/nn_resize_bilinear.gen.go +++ b/macos/mps/nn_resize_bilinear.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package mps @@ -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] @@ -57,10 +57,6 @@ func (nc _NNResizeBilinearClass) Alloc() NNResizeBilinear { return rv } -func NNResizeBilinear_Alloc() NNResizeBilinear { - return NNResizeBilinearClass.Alloc() -} - func (nc _NNResizeBilinearClass) New() NNResizeBilinear { rv := objc.Call[NNResizeBilinear](nc, objc.Sel("new")) rv.Autorelease() @@ -94,7 +90,6 @@ func NewNNResizeBilinearWithDevice(device metal.PDevice) NNResizeBilinear { func (n_ NNResizeBilinear) CopyWithZoneDevice(zone unsafe.Pointer, device metal.PDevice) NNResizeBilinear { po1 := objc.WrapAsProtocol("MTLDevice", device) rv := objc.Call[NNResizeBilinear](n_, objc.Sel("copyWithZone:device:"), zone, po1) - rv.Autorelease() return rv } @@ -107,14 +102,6 @@ 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 @@ -130,3 +117,11 @@ 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 2e42eea8..0fc15204 100644 --- a/macos/mps/nn_scale_node.gen.go +++ b/macos/mps/nn_scale_node.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package mps @@ -34,6 +34,35 @@ 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:"), objc.Ptr(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:"), objc.Ptr(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:"), objc.Ptr(sourceNode), size) return rv @@ -46,18 +75,17 @@ func NNScaleNode_NodeWithSourceOutputSize(sourceNode INNImageNode, size metal.Si return NNScaleNodeClass.NodeWithSourceOutputSize(sourceNode, size) } -func (n_ NNScaleNode) InitWithSourceOutputSize(sourceNode INNImageNode, size metal.Size) NNScaleNode { - rv := objc.Call[NNScaleNode](n_, objc.Sel("initWithSource:outputSize:"), objc.Ptr(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:"), objc.Ptr(sourceNode), po1, 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 +// [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) } func (nc _NNScaleNodeClass) Alloc() NNScaleNode { @@ -65,10 +93,6 @@ func (nc _NNScaleNodeClass) Alloc() NNScaleNode { return rv } -func NNScaleNode_Alloc() NNScaleNode { - return NNScaleNodeClass.Alloc() -} - func (nc _NNScaleNodeClass) New() NNScaleNode { rv := objc.Call[NNScaleNode](nc, objc.Sel("new")) rv.Autorelease() diff --git a/macos/mps/nn_slice.gen.go b/macos/mps/nn_slice.gen.go index a2b6d39a..67a9eb69 100644 --- a/macos/mps/nn_slice.gen.go +++ b/macos/mps/nn_slice.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package mps @@ -54,10 +54,6 @@ func (nc _NNSliceClass) Alloc() NNSlice { return rv } -func NNSlice_Alloc() NNSlice { - return NNSliceClass.Alloc() -} - func (nc _NNSliceClass) New() NNSlice { rv := objc.Call[NNSlice](nc, objc.Sel("new")) rv.Autorelease() @@ -76,7 +72,6 @@ func (n_ NNSlice) Init() NNSlice { func (n_ NNSlice) CopyWithZoneDevice(zone unsafe.Pointer, device metal.PDevice) NNSlice { po1 := objc.WrapAsProtocol("MTLDevice", device) rv := objc.Call[NNSlice](n_, objc.Sel("copyWithZone:device:"), zone, po1) - rv.Autorelease() return rv } diff --git a/macos/mps/nn_state_node.gen.go b/macos/mps/nn_state_node.gen.go index f45ad66c..04bd1e9d 100644 --- a/macos/mps/nn_state_node.gen.go +++ b/macos/mps/nn_state_node.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package mps @@ -18,7 +18,7 @@ type _NNStateNodeClass struct { // An interface definition for the [NNStateNode] class. type INNStateNode interface { objc.IObject - Handle() HandleWrapper + Handle() HandleObject SetHandle(value PHandle) SetHandleObject(valueObject objc.IObject) ExportFromGraph() bool @@ -45,10 +45,6 @@ func (nc _NNStateNodeClass) Alloc() NNStateNode { return rv } -func NNStateNode_Alloc() NNStateNode { - return NNStateNodeClass.Alloc() -} - func (nc _NNStateNodeClass) New() NNStateNode { rv := objc.Call[NNStateNode](nc, objc.Sel("new")) rv.Autorelease() @@ -67,8 +63,8 @@ func (n_ NNStateNode) Init() NNStateNode { // [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsnnstatenode/2866426-handle?language=objc -func (n_ NNStateNode) Handle() HandleWrapper { - rv := objc.Call[HandleWrapper](n_, objc.Sel("handle")) +func (n_ NNStateNode) Handle() HandleObject { + rv := objc.Call[HandleObject](n_, objc.Sel("handle")) return rv } diff --git a/macos/mps/nn_subtraction_gradient_node.gen.go b/macos/mps/nn_subtraction_gradient_node.gen.go index 1e275317..63ca2a98 100644 --- a/macos/mps/nn_subtraction_gradient_node.gen.go +++ b/macos/mps/nn_subtraction_gradient_node.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package mps @@ -38,10 +38,6 @@ func (nc _NNSubtractionGradientNodeClass) Alloc() NNSubtractionGradientNode { return rv } -func NNSubtractionGradientNode_Alloc() NNSubtractionGradientNode { - return NNSubtractionGradientNodeClass.Alloc() -} - func (nc _NNSubtractionGradientNodeClass) New() NNSubtractionGradientNode { rv := objc.Call[NNSubtractionGradientNode](nc, objc.Sel("new")) rv.Autorelease() diff --git a/macos/mps/nn_subtraction_node.gen.go b/macos/mps/nn_subtraction_node.gen.go index d2710d8b..5954c002 100644 --- a/macos/mps/nn_subtraction_node.gen.go +++ b/macos/mps/nn_subtraction_node.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package mps @@ -38,10 +38,6 @@ func (nc _NNSubtractionNodeClass) Alloc() NNSubtractionNode { return rv } -func NNSubtractionNode_Alloc() NNSubtractionNode { - return NNSubtractionNodeClass.Alloc() -} - func (nc _NNSubtractionNodeClass) New() NNSubtractionNode { rv := objc.Call[NNSubtractionNode](nc, objc.Sel("new")) rv.Autorelease() @@ -69,6 +65,20 @@ 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:"), objc.Ptr(left), objc.Ptr(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:"), objc.Ptr(left), objc.Ptr(right)) return rv @@ -94,17 +104,3 @@ 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:"), objc.Ptr(left), objc.Ptr(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/nn_trainable_node.gen.go b/macos/mps/nn_trainable_node_protocol.gen.go similarity index 68% rename from macos/mps/nn_trainable_node.gen.go rename to macos/mps/nn_trainable_node_protocol.gen.go index 3be24c91..b85c46d3 100644 --- a/macos/mps/nn_trainable_node.gen.go +++ b/macos/mps/nn_trainable_node_protocol.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package mps @@ -19,30 +19,33 @@ type PNNTrainableNode interface { HasTrainingStyle() bool } -// A concrete type wrapper for the [PNNTrainableNode] protocol. -type NNTrainableNodeWrapper struct { +// ensure impl type implements protocol interface +var _ PNNTrainableNode = (*NNTrainableNodeObject)(nil) + +// A concrete type for the [PNNTrainableNode] protocol. +type NNTrainableNodeObject struct { objc.Object } -func (n_ NNTrainableNodeWrapper) HasSetTrainingStyle() bool { +func (n_ NNTrainableNodeObject) HasSetTrainingStyle() bool { return n_.RespondsToSelector(objc.Sel("setTrainingStyle:")) } // [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsnntrainablenode/2952971-trainingstyle?language=objc -func (n_ NNTrainableNodeWrapper) SetTrainingStyle(value NNTrainingStyle) { +func (n_ NNTrainableNodeObject) SetTrainingStyle(value NNTrainingStyle) { objc.Call[objc.Void](n_, objc.Sel("setTrainingStyle:"), value) } -func (n_ NNTrainableNodeWrapper) HasTrainingStyle() bool { +func (n_ NNTrainableNodeObject) HasTrainingStyle() bool { return n_.RespondsToSelector(objc.Sel("trainingStyle")) } // [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsnntrainablenode/2952971-trainingstyle?language=objc -func (n_ NNTrainableNodeWrapper) TrainingStyle() NNTrainingStyle { +func (n_ NNTrainableNodeObject) TrainingStyle() NNTrainingStyle { rv := objc.Call[NNTrainingStyle](n_, objc.Sel("trainingStyle")) return rv } diff --git a/macos/mps/nn_unary_reduction_node.gen.go b/macos/mps/nn_unary_reduction_node.gen.go index 078e885c..a933b0e6 100644 --- a/macos/mps/nn_unary_reduction_node.gen.go +++ b/macos/mps/nn_unary_reduction_node.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package mps @@ -67,10 +67,6 @@ func (nc _NNUnaryReductionNodeClass) Alloc() NNUnaryReductionNode { return rv } -func NNUnaryReductionNode_Alloc() NNUnaryReductionNode { - return NNUnaryReductionNodeClass.Alloc() -} - func (nc _NNUnaryReductionNodeClass) New() NNUnaryReductionNode { rv := objc.Call[NNUnaryReductionNode](nc, objc.Sel("new")) rv.Autorelease() diff --git a/macos/mps/polygon_acceleration_structure.gen.go b/macos/mps/polygon_acceleration_structure.gen.go index 0be73b77..9028778c 100644 --- a/macos/mps/polygon_acceleration_structure.gen.go +++ b/macos/mps/polygon_acceleration_structure.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package mps @@ -39,10 +39,6 @@ func (pc _PolygonAccelerationStructureClass) Alloc() PolygonAccelerationStructur return rv } -func PolygonAccelerationStructure_Alloc() PolygonAccelerationStructure { - return PolygonAccelerationStructureClass.Alloc() -} - func (pc _PolygonAccelerationStructureClass) New() PolygonAccelerationStructure { rv := objc.Call[PolygonAccelerationStructure](pc, objc.Sel("new")) rv.Autorelease() @@ -58,33 +54,32 @@ func (p_ PolygonAccelerationStructure) Init() PolygonAccelerationStructure { return rv } -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 } -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) - rv.Autorelease() +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 } diff --git a/macos/mps/polygon_buffer.gen.go b/macos/mps/polygon_buffer.gen.go index 5cd3a50e..931eb1fa 100644 --- a/macos/mps/polygon_buffer.gen.go +++ b/macos/mps/polygon_buffer.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package mps @@ -38,10 +38,6 @@ func (pc _PolygonBufferClass) Alloc() PolygonBuffer { return rv } -func PolygonBuffer_Alloc() PolygonBuffer { - return PolygonBufferClass.Alloc() -} - func (pc _PolygonBufferClass) New() PolygonBuffer { rv := objc.Call[PolygonBuffer](pc, objc.Sel("new")) rv.Autorelease() diff --git a/macos/mps/predicate.gen.go b/macos/mps/predicate.gen.go index 31b05281..4e61e11a 100644 --- a/macos/mps/predicate.gen.go +++ b/macos/mps/predicate.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package mps @@ -20,7 +20,7 @@ type _PredicateClass struct { type IPredicate interface { objc.IObject PredicateOffset() uint - PredicateBuffer() metal.BufferWrapper + PredicateBuffer() metal.BufferObject } // [Full Topic] @@ -51,32 +51,32 @@ func NewPredicateWithDevice(device metal.PDevice) Predicate { return instance } -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 (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) Alloc() Predicate { @@ -84,10 +84,6 @@ func (pc _PredicateClass) Alloc() Predicate { return rv } -func Predicate_Alloc() Predicate { - return PredicateClass.Alloc() -} - func (pc _PredicateClass) New() Predicate { rv := objc.Call[Predicate](pc, objc.Sel("new")) rv.Autorelease() @@ -114,7 +110,7 @@ func (p_ Predicate) PredicateOffset() uint { // [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpspredicate/3114036-predicatebuffer?language=objc -func (p_ Predicate) PredicateBuffer() metal.BufferWrapper { - rv := objc.Call[metal.BufferWrapper](p_, objc.Sel("predicateBuffer")) +func (p_ Predicate) PredicateBuffer() metal.BufferObject { + rv := objc.Call[metal.BufferObject](p_, objc.Sel("predicateBuffer")) return rv } diff --git a/macos/mps/protocols.gen.m b/macos/mps/protocols.gen.m index 25374c3e..c4f3b3dc 100644 --- a/macos/mps/protocols.gen.m +++ b/macos/mps/protocols.gen.m @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. #import "MetalPerformanceShaders/MetalPerformanceShaders.h" diff --git a/macos/mps/quadrilateral_acceleration_structure.gen.go b/macos/mps/quadrilateral_acceleration_structure.gen.go index 52eb0087..378fe886 100644 --- a/macos/mps/quadrilateral_acceleration_structure.gen.go +++ b/macos/mps/quadrilateral_acceleration_structure.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package mps @@ -39,10 +39,6 @@ func (qc _QuadrilateralAccelerationStructureClass) Alloc() QuadrilateralAccelera return rv } -func QuadrilateralAccelerationStructure_Alloc() QuadrilateralAccelerationStructure { - return QuadrilateralAccelerationStructureClass.Alloc() -} - func (qc _QuadrilateralAccelerationStructureClass) New() QuadrilateralAccelerationStructure { rv := objc.Call[QuadrilateralAccelerationStructure](qc, objc.Sel("new")) rv.Autorelease() @@ -58,33 +54,32 @@ func (q_ QuadrilateralAccelerationStructure) Init() QuadrilateralAccelerationStr return rv } -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 } -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) - rv.Autorelease() +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 } diff --git a/macos/mps/ray_intersector.gen.go b/macos/mps/ray_intersector.gen.go index 9f50d6d2..5ae2ef93 100644 --- a/macos/mps/ray_intersector.gen.go +++ b/macos/mps/ray_intersector.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package mps @@ -39,10 +39,6 @@ func (rc _RayIntersectorClass) Alloc() RayIntersector { return rv } -func RayIntersector_Alloc() RayIntersector { - return RayIntersectorClass.Alloc() -} - func (rc _RayIntersectorClass) New() RayIntersector { rv := objc.Call[RayIntersector](rc, objc.Sel("new")) rv.Autorelease() @@ -58,33 +54,32 @@ func (r_ RayIntersector) Init() RayIntersector { return rv } -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 } -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) - rv.Autorelease() +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 } diff --git a/macos/mps/rnn_descriptor.gen.go b/macos/mps/rnn_descriptor.gen.go index 9c14c312..07cf503d 100644 --- a/macos/mps/rnn_descriptor.gen.go +++ b/macos/mps/rnn_descriptor.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package mps @@ -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] @@ -48,10 +48,6 @@ func (rc _RNNDescriptorClass) Alloc() RNNDescriptor { return rv } -func RNNDescriptor_Alloc() RNNDescriptor { - return RNNDescriptorClass.Alloc() -} - func (rc _RNNDescriptorClass) New() RNNDescriptor { rv := objc.Call[RNNDescriptor](rc, objc.Sel("new")) rv.Autorelease() @@ -67,36 +63,6 @@ func (r_ RNNDescriptor) Init() RNNDescriptor { return rv } -// [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")) - 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] -// -// [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/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/2865687-uselayerinputunittransformmode?language=objc @@ -141,3 +107,33 @@ func (r_ RNNDescriptor) UseFloat32Weights() bool { func (r_ RNNDescriptor) SetUseFloat32Weights(value bool) { objc.Call[objc.Void](r_, objc.Sel("setUseFloat32Weights:"), 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")) + 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] +// +// [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/2865730-layersequencedirection?language=objc +func (r_ RNNDescriptor) SetLayerSequenceDirection(value RNNSequenceDirection) { + objc.Call[objc.Void](r_, objc.Sel("setLayerSequenceDirection:"), value) +} diff --git a/macos/mps/rnn_image_inference_layer.gen.go b/macos/mps/rnn_image_inference_layer.gen.go index 9f22ff54..e6904913 100644 --- a/macos/mps/rnn_image_inference_layer.gen.go +++ b/macos/mps/rnn_image_inference_layer.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package mps @@ -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) - RecurrentOutputIsTemporary() bool - SetRecurrentOutputIsTemporary(value bool) - OutputFeatureChannels() uint - InputFeatureChannels() uint + NumberOfLayers() uint BidirectionalCombineMode() RNNBidirectionalCombineMode SetBidirectionalCombineMode(value RNNBidirectionalCombineMode) + OutputFeatureChannels() uint + InputFeatureChannels() uint StoreAllIntermediateStates() bool SetStoreAllIntermediateStates(value bool) - NumberOfLayers() uint + RecurrentOutputIsTemporary() bool + SetRecurrentOutputIsTemporary(value bool) } // 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) InitWithDeviceRnnDescriptor(device metal.PDevice, rnnDescriptor IRNNDescriptor) RNNImageInferenceLayer { +func (r_ RNNImageInferenceLayer) InitWithDeviceRnnDescriptors(device metal.PDevice, rnnDescriptors []IRNNDescriptor) RNNImageInferenceLayer { po0 := objc.WrapAsProtocol("MTLDevice", device) - rv := objc.Call[RNNImageInferenceLayer](r_, objc.Sel("initWithDevice:rnnDescriptor:"), po0, objc.Ptr(rnnDescriptor)) + rv := objc.Call[RNNImageInferenceLayer](r_, objc.Sel("initWithDevice:rnnDescriptors:"), po0, rnnDescriptors) 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) +// [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) instance.Autorelease() return instance } @@ -66,7 +66,6 @@ func NewRNNImageInferenceLayerWithDeviceRnnDescriptor(device metal.PDevice, rnnD func (r_ RNNImageInferenceLayer) CopyWithZoneDevice(zone unsafe.Pointer, device metal.PDevice) RNNImageInferenceLayer { po1 := objc.WrapAsProtocol("MTLDevice", device) rv := objc.Call[RNNImageInferenceLayer](r_, objc.Sel("copyWithZone:device:"), zone, po1) - rv.Autorelease() return rv } @@ -79,13 +78,24 @@ func RNNImageInferenceLayer_CopyWithZoneDevice(zone unsafe.Pointer, device metal return instance } -func (rc _RNNImageInferenceLayerClass) Alloc() RNNImageInferenceLayer { - rv := objc.Call[RNNImageInferenceLayer](rc, objc.Sel("alloc")) +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, objc.Ptr(rnnDescriptor)) return rv } -func RNNImageInferenceLayer_Alloc() RNNImageInferenceLayer { - return RNNImageInferenceLayerClass.Alloc() +// [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 } func (rc _RNNImageInferenceLayerClass) New() RNNImageInferenceLayer { @@ -150,17 +160,25 @@ func (r_ RNNImageInferenceLayer) EncodeSequenceToCommandBufferObjectSourceImages // [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) +// [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] @@ -179,21 +197,6 @@ 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 @@ -211,8 +214,15 @@ func (r_ RNNImageInferenceLayer) SetStoreAllIntermediateStates(value bool) { // [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")) +// [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/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 4b8bc7aa..5d3b6d68 100644 --- a/macos/mps/rnn_matrix_inference_layer.gen.go +++ b/macos/mps/rnn_matrix_inference_layer.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package mps @@ -20,19 +20,21 @@ type _RNNMatrixInferenceLayerClass struct { // An interface definition for the [RNNMatrixInferenceLayer] class. type IRNNMatrixInferenceLayer interface { IKernel - EncodeBidirectionalSequenceToCommandBufferSourceSequenceDestinationForwardMatricesDestinationBackwardMatrices(commandBuffer metal.PCommandBuffer, sourceSequence []IMatrix, destinationForwardMatrices []IMatrix, destinationBackwardMatrices []IMatrix) - EncodeBidirectionalSequenceToCommandBufferObjectSourceSequenceDestinationForwardMatricesDestinationBackwardMatrices(commandBufferObject objc.IObject, sourceSequence []IMatrix, destinationForwardMatrices []IMatrix, destinationBackwardMatrices []IMatrix) 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) 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] @@ -48,6 +50,21 @@ 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, objc.Ptr(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) @@ -66,7 +83,6 @@ func NewRNNMatrixInferenceLayerWithDeviceRnnDescriptors(device metal.PDevice, rn func (r_ RNNMatrixInferenceLayer) CopyWithZoneDevice(zone unsafe.Pointer, device metal.PDevice) RNNMatrixInferenceLayer { po1 := objc.WrapAsProtocol("MTLDevice", device) rv := objc.Call[RNNMatrixInferenceLayer](r_, objc.Sel("copyWithZone:device:"), zone, po1) - rv.Autorelease() return rv } @@ -84,10 +100,6 @@ func (rc _RNNMatrixInferenceLayerClass) Alloc() RNNMatrixInferenceLayer { return rv } -func RNNMatrixInferenceLayer_Alloc() RNNMatrixInferenceLayer { - return RNNMatrixInferenceLayerClass.Alloc() -} - func (rc _RNNMatrixInferenceLayerClass) New() RNNMatrixInferenceLayer { rv := objc.Call[RNNMatrixInferenceLayer](rc, objc.Sel("new")) rv.Autorelease() @@ -118,6 +130,36 @@ 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, objc.Ptr(recurrentInputState), objc.Ptr(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:"), objc.Ptr(commandBufferObject), sourceMatrices, sourceOffsets, destinationMatrices, destinationOffsets, objc.Ptr(recurrentInputState), objc.Ptr(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, objc.Ptr(recurrentInputState), objc.Ptr(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:"), objc.Ptr(commandBufferObject), sourceMatrices, destinationMatrices, objc.Ptr(recurrentInputState), objc.Ptr(recurrentOutputStates)) +} + // [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsrnnmatrixinferencelayer/2865698-encodebidirectionalsequencetocom?language=objc @@ -135,17 +177,17 @@ func (r_ RNNMatrixInferenceLayer) EncodeBidirectionalSequenceToCommandBufferObje // [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, objc.Ptr(recurrentInputState), objc.Ptr(recurrentOutputStates)) +// [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/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:"), objc.Ptr(commandBufferObject), sourceMatrices, sourceOffsets, destinationMatrices, destinationOffsets, objc.Ptr(recurrentInputState), objc.Ptr(recurrentOutputStates)) +// [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] @@ -163,6 +205,14 @@ 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 @@ -179,21 +229,6 @@ 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 @@ -208,11 +243,3 @@ 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 a10aed11..4cbfa86a 100644 --- a/macos/mps/rnn_matrix_training_layer.gen.go +++ b/macos/mps/rnn_matrix_training_layer.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package mps @@ -20,26 +20,30 @@ type _RNNMatrixTrainingLayerClass struct { // An interface definition for the [RNNMatrixTrainingLayer] class. type IRNNMatrixTrainingLayer interface { IKernel - CreateTemporaryWeightGradientMatricesDataTypeCommandBuffer(matricesOut foundation.IMutableArray, dataType DataType, commandBuffer metal.PCommandBuffer) - CreateTemporaryWeightGradientMatricesDataTypeCommandBufferObject(matricesOut foundation.IMutableArray, dataType DataType, commandBufferObject objc.IObject) - 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) + 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) 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) - CreateWeightMatrices(matricesOut foundation.IMutableArray) - CreateWeightGradientMatricesDataType(matricesOut foundation.IMutableArray, dataType DataType) - RecurrentOutputIsTemporary() bool - SetRecurrentOutputIsTemporary(value bool) AccumulateWeightGradients() bool SetAccumulateWeightGradients(value bool) - OutputFeatureChannels() uint + RecurrentOutputIsTemporary() bool + SetRecurrentOutputIsTemporary(value bool) + StoreAllIntermediateStates() bool + SetStoreAllIntermediateStates(value bool) InputFeatureChannels() uint + OutputFeatureChannels() 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] @@ -73,7 +77,6 @@ func NewRNNMatrixTrainingLayerWithDeviceRnnDescriptorTrainableWeights(device met func (r_ RNNMatrixTrainingLayer) CopyWithZoneDevice(zone unsafe.Pointer, device metal.PDevice) RNNMatrixTrainingLayer { po1 := objc.WrapAsProtocol("MTLDevice", device) rv := objc.Call[RNNMatrixTrainingLayer](r_, objc.Sel("copyWithZone:device:"), zone, po1) - rv.Autorelease() return rv } @@ -91,10 +94,6 @@ func (rc _RNNMatrixTrainingLayerClass) Alloc() RNNMatrixTrainingLayer { return rv } -func RNNMatrixTrainingLayer_Alloc() RNNMatrixTrainingLayer { - return RNNMatrixTrainingLayerClass.Alloc() -} - func (rc _RNNMatrixTrainingLayerClass) New() RNNMatrixTrainingLayer { rv := objc.Call[RNNMatrixTrainingLayer](rc, objc.Sel("new")) rv.Autorelease() @@ -127,17 +126,39 @@ func NewRNNMatrixTrainingLayerWithDevice(device metal.PDevice) RNNMatrixTraining // [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:"), objc.Ptr(matricesOut), dataType, po2) +// [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:"), objc.Ptr(matricesOut)) } // [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:"), objc.Ptr(matricesOut), dataType, objc.Ptr(commandBufferObject)) +// [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, objc.Ptr(trainingStates), objc.Ptr(recurrentInputState), objc.Ptr(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:"), objc.Ptr(commandBufferObject), sourceMatrices, sourceOffsets, destinationMatrices, destinationOffsets, objc.Ptr(trainingStates), objc.Ptr(recurrentInputState), objc.Ptr(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, objc.Ptr(trainingStates), weights) +} + +// [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:"), objc.Ptr(commandBufferObject), sourceMatrices, destinationMatrices, objc.Ptr(trainingStates), weights) } // [Full Topic] @@ -157,17 +178,39 @@ func (r_ RNNMatrixTrainingLayer) EncodeCopyWeightsToCommandBufferObjectWeightsMa // [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) { +// [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:"), objc.Ptr(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:"), objc.Ptr(matricesOut), dataType, objc.Ptr(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) { po0 := objc.WrapAsProtocol("MTLCommandBuffer", commandBuffer) - objc.Call[objc.Void](r_, objc.Sel("encodeForwardSequenceToCommandBuffer:sourceMatrices:destinationMatrices:trainingStates:weights:"), po0, sourceMatrices, destinationMatrices, objc.Ptr(trainingStates), weights) + 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, objc.Ptr(recurrentInputState), objc.Ptr(recurrentOutputStates), weights) } // [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:"), objc.Ptr(commandBufferObject), sourceMatrices, destinationMatrices, objc.Ptr(trainingStates), weights) +// [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:"), objc.Ptr(commandBufferObject), forwardSources, forwardSourceOffsets, sourceGradients, sourceGradientOffsets, destinationGradients, destinationOffsets, weightGradients, trainingStates, objc.Ptr(recurrentInputState), objc.Ptr(recurrentOutputStates), 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:"), objc.Ptr(matricesOut), dataType) } // [Full Topic] @@ -187,16 +230,17 @@ func (r_ RNNMatrixTrainingLayer) EncodeGradientSequenceToCommandBufferObjectForw // [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:"), objc.Ptr(matricesOut)) +// [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/2966786-createweightgradientmatrices?language=objc -func (r_ RNNMatrixTrainingLayer) CreateWeightGradientMatricesDataType(matricesOut foundation.IMutableArray, dataType DataType) { - objc.Call[objc.Void](r_, objc.Sel("createWeightGradientMatrices:dataType:"), objc.Ptr(matricesOut), dataType) +// [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] @@ -216,32 +260,32 @@ func (r_ RNNMatrixTrainingLayer) SetRecurrentOutputIsTemporary(value bool) { // [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")) +// [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/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/2966798-storeallintermediatestates?language=objc +func (r_ RNNMatrixTrainingLayer) SetStoreAllIntermediateStates(value bool) { + objc.Call[objc.Void](r_, objc.Sel("setStoreAllIntermediateStates:"), value) } // [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 } // [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 } @@ -259,18 +303,3 @@ 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 57dce928..d2243421 100644 --- a/macos/mps/rnn_matrix_training_state.gen.go +++ b/macos/mps/rnn_matrix_training_state.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package mps @@ -39,10 +39,6 @@ func (rc _RNNMatrixTrainingStateClass) Alloc() RNNMatrixTrainingState { return rv } -func RNNMatrixTrainingState_Alloc() RNNMatrixTrainingState { - return RNNMatrixTrainingStateClass.Alloc() -} - func (rc _RNNMatrixTrainingStateClass) New() RNNMatrixTrainingState { rv := objc.Call[RNNMatrixTrainingState](rc, objc.Sel("new")) rv.Autorelease() @@ -58,16 +54,45 @@ func (r_ RNNMatrixTrainingState) Init() RNNMatrixTrainingState { return rv } -func (r_ RNNMatrixTrainingState) InitWithResources(resources []metal.PResource) RNNMatrixTrainingState { - rv := objc.Call[RNNMatrixTrainingState](r_, objc.Sel("initWithResources:"), resources) +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, objc.Ptr(resourceList)) 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/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, objc.Ptr(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) + 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) instance.Autorelease() return instance } @@ -87,30 +112,70 @@ func NewRNNMatrixTrainingStateWithDeviceBufferSize(device metal.PDevice, bufferS 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 } -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, objc.Ptr(resourceList)) +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/2947915-temporarystatewithcommandbuffer?language=objc -func RNNMatrixTrainingState_TemporaryStateWithCommandBufferResourceList(commandBuffer metal.PCommandBuffer, resourceList IStateResourceList) RNNMatrixTrainingState { - return RNNMatrixTrainingStateClass.TemporaryStateWithCommandBufferResourceList(commandBuffer, resourceList) +// [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, objc.Ptr(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, objc.Ptr(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 } diff --git a/macos/mps/rnn_recurrent_image_state.gen.go b/macos/mps/rnn_recurrent_image_state.gen.go index 996b3a58..767af08f 100644 --- a/macos/mps/rnn_recurrent_image_state.gen.go +++ b/macos/mps/rnn_recurrent_image_state.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package mps @@ -41,10 +41,6 @@ func (rc _RNNRecurrentImageStateClass) Alloc() RNNRecurrentImageState { return rv } -func RNNRecurrentImageState_Alloc() RNNRecurrentImageState { - return RNNRecurrentImageStateClass.Alloc() -} - func (rc _RNNRecurrentImageStateClass) New() RNNRecurrentImageState { rv := objc.Call[RNNRecurrentImageState](rc, objc.Sel("new")) rv.Autorelease() @@ -60,16 +56,45 @@ func (r_ RNNRecurrentImageState) Init() RNNRecurrentImageState { return rv } -func (r_ RNNRecurrentImageState) InitWithResources(resources []metal.PResource) RNNRecurrentImageState { - rv := objc.Call[RNNRecurrentImageState](r_, objc.Sel("initWithResources:"), resources) +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, objc.Ptr(resourceList)) 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/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, objc.Ptr(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) + 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) instance.Autorelease() return instance } @@ -89,32 +114,72 @@ func NewRNNRecurrentImageStateWithDeviceBufferSize(device metal.PDevice, bufferS 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 } -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, objc.Ptr(resourceList)) +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/2947915-temporarystatewithcommandbuffer?language=objc -func RNNRecurrentImageState_TemporaryStateWithCommandBufferResourceList(commandBuffer metal.PCommandBuffer, resourceList IStateResourceList) RNNRecurrentImageState { - return RNNRecurrentImageStateClass.TemporaryStateWithCommandBufferResourceList(commandBuffer, resourceList) +// [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, objc.Ptr(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, objc.Ptr(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] diff --git a/macos/mps/rnn_recurrent_matrix_state.gen.go b/macos/mps/rnn_recurrent_matrix_state.gen.go index 14d54855..a8be541a 100644 --- a/macos/mps/rnn_recurrent_matrix_state.gen.go +++ b/macos/mps/rnn_recurrent_matrix_state.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package mps @@ -41,10 +41,6 @@ func (rc _RNNRecurrentMatrixStateClass) Alloc() RNNRecurrentMatrixState { return rv } -func RNNRecurrentMatrixState_Alloc() RNNRecurrentMatrixState { - return RNNRecurrentMatrixStateClass.Alloc() -} - func (rc _RNNRecurrentMatrixStateClass) New() RNNRecurrentMatrixState { rv := objc.Call[RNNRecurrentMatrixState](rc, objc.Sel("new")) rv.Autorelease() @@ -60,16 +56,45 @@ func (r_ RNNRecurrentMatrixState) Init() RNNRecurrentMatrixState { return rv } -func (r_ RNNRecurrentMatrixState) InitWithResources(resources []metal.PResource) RNNRecurrentMatrixState { - rv := objc.Call[RNNRecurrentMatrixState](r_, objc.Sel("initWithResources:"), resources) +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, objc.Ptr(resourceList)) 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/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, objc.Ptr(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) + 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) instance.Autorelease() return instance } @@ -89,32 +114,72 @@ func NewRNNRecurrentMatrixStateWithDeviceBufferSize(device metal.PDevice, buffer 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 } -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, objc.Ptr(resourceList)) +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/2947915-temporarystatewithcommandbuffer?language=objc -func RNNRecurrentMatrixState_TemporaryStateWithCommandBufferResourceList(commandBuffer metal.PCommandBuffer, resourceList IStateResourceList) RNNRecurrentMatrixState { - return RNNRecurrentMatrixStateClass.TemporaryStateWithCommandBufferResourceList(commandBuffer, resourceList) +// [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, objc.Ptr(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, objc.Ptr(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] diff --git a/macos/mps/rnn_single_gate_descriptor.gen.go b/macos/mps/rnn_single_gate_descriptor.gen.go index 0887f139..1b66e7ce 100644 --- a/macos/mps/rnn_single_gate_descriptor.gen.go +++ b/macos/mps/rnn_single_gate_descriptor.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package mps @@ -18,10 +18,10 @@ type _RNNSingleGateDescriptorClass struct { // An interface definition for the [RNNSingleGateDescriptor] class. type IRNNSingleGateDescriptor interface { IRNNDescriptor - RecurrentWeights() CNNConvolutionDataSourceWrapper + RecurrentWeights() CNNConvolutionDataSourceObject SetRecurrentWeights(value PCNNConvolutionDataSource) SetRecurrentWeightsObject(valueObject objc.IObject) - InputWeights() CNNConvolutionDataSourceWrapper + InputWeights() CNNConvolutionDataSourceObject SetInputWeights(value PCNNConvolutionDataSource) SetInputWeightsObject(valueObject objc.IObject) } @@ -56,10 +56,6 @@ func (rc _RNNSingleGateDescriptorClass) Alloc() RNNSingleGateDescriptor { return rv } -func RNNSingleGateDescriptor_Alloc() RNNSingleGateDescriptor { - return RNNSingleGateDescriptorClass.Alloc() -} - func (rc _RNNSingleGateDescriptorClass) New() RNNSingleGateDescriptor { rv := objc.Call[RNNSingleGateDescriptor](rc, objc.Sel("new")) rv.Autorelease() @@ -78,8 +74,8 @@ func (r_ RNNSingleGateDescriptor) Init() RNNSingleGateDescriptor { // [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsrnnsinglegatedescriptor/2865686-recurrentweights?language=objc -func (r_ RNNSingleGateDescriptor) RecurrentWeights() CNNConvolutionDataSourceWrapper { - rv := objc.Call[CNNConvolutionDataSourceWrapper](r_, objc.Sel("recurrentWeights")) +func (r_ RNNSingleGateDescriptor) RecurrentWeights() CNNConvolutionDataSourceObject { + rv := objc.Call[CNNConvolutionDataSourceObject](r_, objc.Sel("recurrentWeights")) return rv } @@ -101,8 +97,8 @@ func (r_ RNNSingleGateDescriptor) SetRecurrentWeightsObject(valueObject objc.IOb // [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsrnnsinglegatedescriptor/2865723-inputweights?language=objc -func (r_ RNNSingleGateDescriptor) InputWeights() CNNConvolutionDataSourceWrapper { - rv := objc.Call[CNNConvolutionDataSourceWrapper](r_, objc.Sel("inputWeights")) +func (r_ RNNSingleGateDescriptor) InputWeights() CNNConvolutionDataSourceObject { + rv := objc.Call[CNNConvolutionDataSourceObject](r_, objc.Sel("inputWeights")) return rv } diff --git a/macos/mps/state.gen.go b/macos/mps/state.gen.go index 92778a2c..11721bee 100644 --- a/macos/mps/state.gen.go +++ b/macos/mps/state.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package mps @@ -20,19 +20,19 @@ type _StateClass struct { type IState interface { objc.IObject ResourceTypeAtIndex(index uint) StateResourceType - DestinationImageDescriptorForSourceImagesSourceStatesForKernelSuggestedDescriptor(sourceImages []IImage, sourceStates []IState, kernel IKernel, inDescriptor IImageDescriptor) ImageDescriptor - BufferSizeAtIndex(index uint) uint - ResourceSize() uint - TextureInfoAtIndex(index uint) StateTextureInfo - ResourceAtIndexAllocateMemory(index uint, allocateMemory bool) metal.ResourceWrapper 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 + ResourceSize() uint 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,16 +48,45 @@ func StateFrom(ptr unsafe.Pointer) State { } } -func (s_ State) InitWithResources(resources []metal.PResource) State { - rv := objc.Call[State](s_, objc.Sel("initWithResources:"), resources) +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, objc.Ptr(resourceList)) 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/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, objc.Ptr(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) + 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) instance.Autorelease() return instance } @@ -77,41 +106,77 @@ func NewStateWithDeviceBufferSize(device metal.PDevice, bufferSize uint) State { 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 } -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, objc.Ptr(resourceList)) +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/2947915-temporarystatewithcommandbuffer?language=objc -func State_TemporaryStateWithCommandBufferResourceList(commandBuffer metal.PCommandBuffer, resourceList IStateResourceList) State { - return StateClass.TemporaryStateWithCommandBufferResourceList(commandBuffer, resourceList) +// [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) Alloc() State { - rv := objc.Call[State](sc, objc.Sel("alloc")) +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, objc.Ptr(descriptor)) return rv } -func State_Alloc() State { - return StateClass.Alloc() +// [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, objc.Ptr(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 +} + +func (sc _StateClass) Alloc() State { + rv := objc.Call[State](sc, objc.Sel("alloc")) + return rv } func (sc _StateClass) New() State { @@ -139,57 +204,57 @@ func (s_ State) ResourceTypeAtIndex(index uint) StateResourceType { // [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, objc.Ptr(kernel), objc.Ptr(inDescriptor)) - return rv +// [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/2947913-buffersizeatindex?language=objc -func (s_ State) BufferSizeAtIndex(index uint) uint { - rv := objc.Call[uint](s_, objc.Sel("bufferSizeAtIndex:"), index) - return rv +// [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:"), objc.Ptr(commandBufferObject)) } // [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/2947899-textureinfoatindex?language=objc -func (s_ State) TextureInfoAtIndex(index uint) StateTextureInfo { - rv := objc.Call[StateTextureInfo](s_, objc.Sel("textureInfoAtIndex:"), index) +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsstate/2947913-buffersizeatindex?language=objc +func (s_ State) BufferSizeAtIndex(index uint) uint { + rv := objc.Call[uint](s_, objc.Sel("bufferSizeAtIndex:"), index) return rv } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsstate/2947916-resourceatindex?language=objc -func (s_ State) ResourceAtIndexAllocateMemory(index uint, allocateMemory bool) metal.ResourceWrapper { - rv := objc.Call[metal.ResourceWrapper](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, objc.Ptr(kernel), objc.Ptr(inDescriptor)) 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]: https://developer.apple.com/documentation/metalperformanceshaders/mpsstate/2947899-textureinfoatindex?language=objc +func (s_ State) TextureInfoAtIndex(index uint) StateTextureInfo { + rv := objc.Call[StateTextureInfo](s_, objc.Sel("textureInfoAtIndex:"), index) + return rv } // [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:"), objc.Ptr(commandBufferObject)) +// [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 } // [Full Topic] @@ -200,14 +265,6 @@ 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 @@ -237,3 +294,11 @@ 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 7fc6ff29..c87e7044 100644 --- a/macos/mps/state_resource_list.gen.go +++ b/macos/mps/state_resource_list.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package mps @@ -19,8 +19,8 @@ type _StateResourceListClass struct { // An interface definition for the [StateResourceList] class. type IStateResourceList interface { objc.IObject - AppendTexture(descriptor metal.ITextureDescriptor) AppendBuffer(size uint) + AppendTexture(descriptor metal.ITextureDescriptor) } // 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) ResourceListWithTextureDescriptors(d metal.ITextureDescriptor, args ...any) StateResourceList { - rv := objc.Call[StateResourceList](sc, objc.Sel("resourceListWithTextureDescriptors:"), append([]any{objc.Ptr(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 (s_ StateResourceList) Init() StateResourceList { @@ -65,16 +65,16 @@ func (s_ StateResourceList) Init() StateResourceList { return rv } -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{objc.Ptr(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 (sc _StateResourceListClass) Alloc() StateResourceList { @@ -82,10 +82,6 @@ func (sc _StateResourceListClass) Alloc() StateResourceList { return rv } -func StateResourceList_Alloc() StateResourceList { - return StateResourceListClass.Alloc() -} - func (sc _StateResourceListClass) New() StateResourceList { rv := objc.Call[StateResourceList](sc, objc.Sel("new")) rv.Autorelease() @@ -98,14 +94,14 @@ func NewStateResourceList() StateResourceList { // [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:"), objc.Ptr(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) } // [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:"), objc.Ptr(descriptor)) } diff --git a/macos/mps/svgf.gen.go b/macos/mps/svgf.gen.go index 81f5f8b0..02a45136 100644 --- a/macos/mps/svgf.gen.go +++ b/macos/mps/svgf.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package mps @@ -20,43 +20,49 @@ 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) - 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) 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) + 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) VarianceEstimationSigma() float64 SetVarianceEstimationSigma(value float64) - BilateralFilterSigma() float64 - SetBilateralFilterSigma(value float64) + NormalWeight() float64 + SetNormalWeight(value float64) + TemporalReprojectionBlendFactor() float64 + SetTemporalReprojectionBlendFactor(value float64) MinimumFramesForVarianceEstimation() uint SetMinimumFramesForVarianceEstimation(value uint) + VarianceEstimationRadius() uint + SetVarianceEstimationRadius(value uint) + BilateralFilterSigma() float64 + SetBilateralFilterSigma(value float64) + ReprojectionThreshold() float64 + SetReprojectionThreshold(value float64) + VariancePrefilterRadius() uint + SetVariancePrefilterRadius(value uint) BilateralFilterRadius() uint SetBilateralFilterRadius(value uint) ChannelCount2() uint SetChannelCount2(value uint) - VariancePrefilterRadius() uint - SetVariancePrefilterRadius(value uint) - TemporalReprojectionBlendFactor() float64 - SetTemporalReprojectionBlendFactor(value float64) LuminanceWeight() float64 SetLuminanceWeight(value float64) - NormalWeight() float64 - SetNormalWeight(value float64) - TemporalWeighting() TemporalWeighting - SetTemporalWeighting(value TemporalWeighting) - VarianceEstimationRadius() uint - SetVarianceEstimationRadius(value uint) - VariancePrefilterSigma() float64 - SetVariancePrefilterSigma(value float64) DepthWeight() float64 SetDepthWeight(value float64) - ReprojectionThreshold() float64 - SetReprojectionThreshold(value float64) + VariancePrefilterSigma() float64 + SetVariancePrefilterSigma(value float64) + ChannelCount() uint + SetChannelCount(value uint) } // [Full Topic] @@ -72,33 +78,32 @@ func SVGFFrom(ptr unsafe.Pointer) SVGF { } } -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 } -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) - rv.Autorelease() +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 } @@ -108,10 +113,6 @@ func (sc _SVGFClass) Alloc() SVGF { return rv } -func SVGF_Alloc() SVGF { - return SVGFClass.Alloc() -} - func (sc _SVGFClass) New() SVGF { rv := objc.Call[SVGF](sc, objc.Sel("new")) rv.Autorelease() @@ -129,20 +130,55 @@ func (s_ SVGF) Init() SVGF { // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpssvgf/3242891-encodebilateralfiltertocommandbu?language=objc -func (s_ SVGF) EncodeBilateralFilterToCommandBufferStepDistanceSourceTextureDestinationTextureDepthNormalTexture(commandBuffer metal.PCommandBuffer, stepDistance uint, sourceTexture metal.PTexture, destinationTexture metal.PTexture, depthNormalTexture metal.PTexture) { +// [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) - po2 := objc.WrapAsProtocol("MTLTexture", sourceTexture) + po1 := objc.WrapAsProtocol("MTLTexture", sourceTexture) + po2 := objc.WrapAsProtocol("MTLTexture", previousTexture) po3 := objc.WrapAsProtocol("MTLTexture", destinationTexture) - po4 := objc.WrapAsProtocol("MTLTexture", depthNormalTexture) - objc.Call[objc.Void](s_, objc.Sel("encodeBilateralFilterToCommandBuffer:stepDistance:sourceTexture:destinationTexture:depthNormalTexture:"), po0, stepDistance, po2, po3, po4) + 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/3242891-encodebilateralfiltertocommandbu?language=objc -func (s_ SVGF) EncodeBilateralFilterToCommandBufferObjectStepDistanceSourceTextureObjectDestinationTextureObjectDepthNormalTextureObject(commandBufferObject objc.IObject, stepDistance uint, sourceTextureObject objc.IObject, destinationTextureObject objc.IObject, depthNormalTextureObject objc.IObject) { - objc.Call[objc.Void](s_, objc.Sel("encodeBilateralFilterToCommandBuffer:stepDistance:sourceTexture:destinationTexture:depthNormalTexture:"), objc.Ptr(commandBufferObject), stepDistance, objc.Ptr(sourceTextureObject), objc.Ptr(destinationTextureObject), objc.Ptr(depthNormalTextureObject)) +// [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:"), objc.Ptr(commandBufferObject), objc.Ptr(sourceTextureObject), objc.Ptr(previousTextureObject), objc.Ptr(destinationTextureObject), objc.Ptr(previousLuminanceMomentsTextureObject), objc.Ptr(destinationLuminanceMomentsTextureObject), objc.Ptr(sourceTexture2Object), objc.Ptr(previousTexture2Object), objc.Ptr(destinationTexture2Object), objc.Ptr(previousLuminanceMomentsTexture2Object), objc.Ptr(destinationLuminanceMomentsTexture2Object), objc.Ptr(previousFrameCountTextureObject), objc.Ptr(destinationFrameCountTextureObject), objc.Ptr(motionVectorTextureObject), objc.Ptr(depthNormalTextureObject), objc.Ptr(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:"), objc.Ptr(commandBufferObject), objc.Ptr(sourceTextureObject), objc.Ptr(luminanceMomentsTextureObject), objc.Ptr(destinationTextureObject), objc.Ptr(sourceTexture2Object), objc.Ptr(luminanceMomentsTexture2Object), objc.Ptr(destinationTexture2Object), objc.Ptr(frameCountTextureObject), objc.Ptr(depthNormalTextureObject)) } // [Full Topic] @@ -154,22 +190,20 @@ func (s_ SVGF) EncodeWithCoder(coder foundation.ICoder) { // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpssvgf/3242893-encodevarianceestimationtocomman?language=objc -func (s_ SVGF) EncodeVarianceEstimationToCommandBufferSourceTextureLuminanceMomentsTextureDestinationTextureFrameCountTextureDepthNormalTexture(commandBuffer metal.PCommandBuffer, sourceTexture metal.PTexture, luminanceMomentsTexture metal.PTexture, destinationTexture metal.PTexture, frameCountTexture metal.PTexture, depthNormalTexture metal.PTexture) { +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpssvgf/3242891-encodebilateralfiltertocommandbu?language=objc +func (s_ SVGF) EncodeBilateralFilterToCommandBufferStepDistanceSourceTextureDestinationTextureDepthNormalTexture(commandBuffer metal.PCommandBuffer, stepDistance uint, sourceTexture metal.PTexture, destinationTexture metal.PTexture, depthNormalTexture metal.PTexture) { po0 := objc.WrapAsProtocol("MTLCommandBuffer", commandBuffer) - po1 := objc.WrapAsProtocol("MTLTexture", sourceTexture) - po2 := objc.WrapAsProtocol("MTLTexture", luminanceMomentsTexture) + po2 := objc.WrapAsProtocol("MTLTexture", sourceTexture) po3 := objc.WrapAsProtocol("MTLTexture", destinationTexture) - po4 := objc.WrapAsProtocol("MTLTexture", frameCountTexture) - po5 := objc.WrapAsProtocol("MTLTexture", depthNormalTexture) - objc.Call[objc.Void](s_, objc.Sel("encodeVarianceEstimationToCommandBuffer:sourceTexture:luminanceMomentsTexture:destinationTexture:frameCountTexture:depthNormalTexture:"), po0, po1, po2, po3, po4, po5) + po4 := objc.WrapAsProtocol("MTLTexture", depthNormalTexture) + objc.Call[objc.Void](s_, objc.Sel("encodeBilateralFilterToCommandBuffer:stepDistance:sourceTexture:destinationTexture:depthNormalTexture:"), po0, stepDistance, po2, po3, po4) } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpssvgf/3242893-encodevarianceestimationtocomman?language=objc -func (s_ SVGF) EncodeVarianceEstimationToCommandBufferObjectSourceTextureObjectLuminanceMomentsTextureObjectDestinationTextureObjectFrameCountTextureObjectDepthNormalTextureObject(commandBufferObject objc.IObject, sourceTextureObject objc.IObject, luminanceMomentsTextureObject objc.IObject, destinationTextureObject objc.IObject, frameCountTextureObject objc.IObject, depthNormalTextureObject objc.IObject) { - objc.Call[objc.Void](s_, objc.Sel("encodeVarianceEstimationToCommandBuffer:sourceTexture:luminanceMomentsTexture:destinationTexture:frameCountTexture:depthNormalTexture:"), objc.Ptr(commandBufferObject), objc.Ptr(sourceTextureObject), objc.Ptr(luminanceMomentsTextureObject), objc.Ptr(destinationTextureObject), objc.Ptr(frameCountTextureObject), objc.Ptr(depthNormalTextureObject)) +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpssvgf/3242891-encodebilateralfiltertocommandbu?language=objc +func (s_ SVGF) EncodeBilateralFilterToCommandBufferObjectStepDistanceSourceTextureObjectDestinationTextureObjectDepthNormalTextureObject(commandBufferObject objc.IObject, stepDistance uint, sourceTextureObject objc.IObject, destinationTextureObject objc.IObject, depthNormalTextureObject objc.IObject) { + objc.Call[objc.Void](s_, objc.Sel("encodeBilateralFilterToCommandBuffer:stepDistance:sourceTexture:destinationTexture:depthNormalTexture:"), objc.Ptr(commandBufferObject), stepDistance, objc.Ptr(sourceTextureObject), objc.Ptr(destinationTextureObject), objc.Ptr(depthNormalTextureObject)) } // [Full Topic] @@ -199,17 +233,57 @@ func (s_ SVGF) EncodeReprojectionToCommandBufferObjectSourceTextureObjectPreviou // [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/3242893-encodevarianceestimationtocomman?language=objc +func (s_ SVGF) EncodeVarianceEstimationToCommandBufferSourceTextureLuminanceMomentsTextureDestinationTextureFrameCountTextureDepthNormalTexture(commandBuffer metal.PCommandBuffer, sourceTexture metal.PTexture, luminanceMomentsTexture metal.PTexture, destinationTexture 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", frameCountTexture) + po5 := objc.WrapAsProtocol("MTLTexture", depthNormalTexture) + objc.Call[objc.Void](s_, objc.Sel("encodeVarianceEstimationToCommandBuffer:sourceTexture:luminanceMomentsTexture:destinationTexture:frameCountTexture:depthNormalTexture:"), po0, po1, po2, po3, po4, po5) +} + +// [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpssvgf/3242893-encodevarianceestimationtocomman?language=objc +func (s_ SVGF) EncodeVarianceEstimationToCommandBufferObjectSourceTextureObjectLuminanceMomentsTextureObjectDestinationTextureObjectFrameCountTextureObjectDepthNormalTextureObject(commandBufferObject objc.IObject, sourceTextureObject objc.IObject, luminanceMomentsTextureObject objc.IObject, destinationTextureObject objc.IObject, frameCountTextureObject objc.IObject, depthNormalTextureObject objc.IObject) { + objc.Call[objc.Void](s_, objc.Sel("encodeVarianceEstimationToCommandBuffer:sourceTexture:luminanceMomentsTexture:destinationTexture:frameCountTexture:depthNormalTexture:"), objc.Ptr(commandBufferObject), objc.Ptr(sourceTextureObject), objc.Ptr(luminanceMomentsTextureObject), objc.Ptr(destinationTextureObject), objc.Ptr(frameCountTextureObject), objc.Ptr(depthNormalTextureObject)) +} + +// [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) { + po0 := objc.WrapAsProtocol("MTLCommandBuffer", commandBuffer) + po2 := objc.WrapAsProtocol("MTLTexture", sourceTexture) + 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) +} + +// [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:"), objc.Ptr(commandBufferObject), stepDistance, objc.Ptr(sourceTextureObject), objc.Ptr(destinationTextureObject), objc.Ptr(sourceTexture2Object), objc.Ptr(destinationTexture2Object), objc.Ptr(depthNormalTextureObject)) +} + +// [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")) 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/3143572-temporalweighting?language=objc +func (s_ SVGF) SetTemporalWeighting(value TemporalWeighting) { + objc.Call[objc.Void](s_, objc.Sel("setTemporalWeighting:"), value) } // [Full Topic] @@ -229,17 +303,32 @@ func (s_ SVGF) SetVarianceEstimationSigma(value float64) { // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpssvgf/3143556-bilateralfiltersigma?language=objc -func (s_ SVGF) BilateralFilterSigma() float64 { - rv := objc.Call[float64](s_, objc.Sel("bilateralFilterSigma")) +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpssvgf/3143569-normalweight?language=objc +func (s_ SVGF) NormalWeight() float64 { + rv := objc.Call[float64](s_, objc.Sel("normalWeight")) return rv } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpssvgf/3143556-bilateralfiltersigma?language=objc -func (s_ SVGF) SetBilateralFilterSigma(value float64) { - objc.Call[objc.Void](s_, objc.Sel("setBilateralFilterSigma:"), value) +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpssvgf/3143569-normalweight?language=objc +func (s_ SVGF) SetNormalWeight(value float64) { + 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() float64 { + rv := objc.Call[float64](s_, objc.Sel("temporalReprojectionBlendFactor")) + return rv +} + +// [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpssvgf/3143571-temporalreprojectionblendfactor?language=objc +func (s_ SVGF) SetTemporalReprojectionBlendFactor(value float64) { + objc.Call[objc.Void](s_, objc.Sel("setTemporalReprojectionBlendFactor:"), value) } // [Full Topic] @@ -259,122 +348,122 @@ func (s_ SVGF) SetMinimumFramesForVarianceEstimation(value uint) { // [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/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/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/3143573-varianceestimationradius?language=objc +func (s_ SVGF) SetVarianceEstimationRadius(value uint) { + objc.Call[objc.Void](s_, objc.Sel("setVarianceEstimationRadius:"), 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/3143556-bilateralfiltersigma?language=objc +func (s_ SVGF) BilateralFilterSigma() float64 { + rv := objc.Call[float64](s_, objc.Sel("bilateralFilterSigma")) 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/3143556-bilateralfiltersigma?language=objc +func (s_ SVGF) SetBilateralFilterSigma(value float64) { + objc.Call[objc.Void](s_, objc.Sel("setBilateralFilterSigma:"), 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/3143570-reprojectionthreshold?language=objc +func (s_ SVGF) ReprojectionThreshold() float64 { + rv := objc.Call[float64](s_, objc.Sel("reprojectionThreshold")) 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/3143570-reprojectionthreshold?language=objc +func (s_ SVGF) SetReprojectionThreshold(value float64) { + objc.Call[objc.Void](s_, objc.Sel("setReprojectionThreshold:"), value) } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpssvgf/3143571-temporalreprojectionblendfactor?language=objc -func (s_ SVGF) TemporalReprojectionBlendFactor() float64 { - rv := objc.Call[float64](s_, objc.Sel("temporalReprojectionBlendFactor")) +// [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/3143571-temporalreprojectionblendfactor?language=objc -func (s_ SVGF) SetTemporalReprojectionBlendFactor(value float64) { - objc.Call[objc.Void](s_, objc.Sel("setTemporalReprojectionBlendFactor:"), 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/3143567-luminanceweight?language=objc -func (s_ SVGF) LuminanceWeight() float64 { - rv := objc.Call[float64](s_, objc.Sel("luminanceWeight")) +// [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/3143567-luminanceweight?language=objc -func (s_ SVGF) SetLuminanceWeight(value float64) { - objc.Call[objc.Void](s_, objc.Sel("setLuminanceWeight:"), 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/3143569-normalweight?language=objc -func (s_ SVGF) NormalWeight() float64 { - rv := objc.Call[float64](s_, objc.Sel("normalWeight")) +// [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/3143569-normalweight?language=objc -func (s_ SVGF) SetNormalWeight(value float64) { - objc.Call[objc.Void](s_, objc.Sel("setNormalWeight:"), 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/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/3143567-luminanceweight?language=objc +func (s_ SVGF) LuminanceWeight() float64 { + rv := objc.Call[float64](s_, objc.Sel("luminanceWeight")) 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/3143567-luminanceweight?language=objc +func (s_ SVGF) SetLuminanceWeight(value float64) { + objc.Call[objc.Void](s_, objc.Sel("setLuminanceWeight:"), value) } // [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/3143560-depthweight?language=objc +func (s_ SVGF) DepthWeight() float64 { + rv := objc.Call[float64](s_, objc.Sel("depthWeight")) 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/3143560-depthweight?language=objc +func (s_ SVGF) SetDepthWeight(value float64) { + objc.Call[objc.Void](s_, objc.Sel("setDepthWeight:"), value) } // [Full Topic] @@ -394,30 +483,15 @@ func (s_ SVGF) SetVariancePrefilterSigma(value float64) { // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpssvgf/3143560-depthweight?language=objc -func (s_ SVGF) DepthWeight() float64 { - rv := objc.Call[float64](s_, objc.Sel("depthWeight")) - return rv -} - -// [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpssvgf/3143560-depthweight?language=objc -func (s_ SVGF) SetDepthWeight(value float64) { - 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() float64 { - rv := objc.Call[float64](s_, objc.Sel("reprojectionThreshold")) +// [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/3143570-reprojectionthreshold?language=objc -func (s_ SVGF) SetReprojectionThreshold(value float64) { - objc.Call[objc.Void](s_, objc.Sel("setReprojectionThreshold:"), 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) } diff --git a/macos/mps/svgf_default_texture_allocator.gen.go b/macos/mps/svgf_default_texture_allocator.gen.go index f98f322e..6a829e57 100644 --- a/macos/mps/svgf_default_texture_allocator.gen.go +++ b/macos/mps/svgf_default_texture_allocator.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package mps @@ -19,11 +19,11 @@ 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.TextureWrapper - Reset() - Device() metal.DeviceWrapper + Device() metal.DeviceObject AllocatedTextureCount() uint } @@ -60,10 +60,6 @@ func (sc _SVGFDefaultTextureAllocatorClass) Alloc() SVGFDefaultTextureAllocator return rv } -func SVGFDefaultTextureAllocator_Alloc() SVGFDefaultTextureAllocator { - return SVGFDefaultTextureAllocatorClass.Alloc() -} - func (sc _SVGFDefaultTextureAllocatorClass) New() SVGFDefaultTextureAllocator { rv := objc.Call[SVGFDefaultTextureAllocator](sc, objc.Sel("new")) rv.Autorelease() @@ -81,39 +77,39 @@ func (s_ SVGFDefaultTextureAllocator) Init() SVGFDefaultTextureAllocator { // [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/3242898-reset?language=objc +func (s_ SVGFDefaultTextureAllocator) Reset() { + objc.Call[objc.Void](s_, objc.Sel("reset")) } // [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:"), objc.Ptr(textureObject)) +// [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/3242900-texturewithpixelformat?language=objc -func (s_ SVGFDefaultTextureAllocator) TextureWithPixelFormatWidthHeight(pixelFormat metal.PixelFormat, width uint, height uint) metal.TextureWrapper { - rv := objc.Call[metal.TextureWrapper](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) 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/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) ReturnTextureObject(textureObject objc.IObject) { + objc.Call[objc.Void](s_, objc.Sel("returnTexture:"), objc.Ptr(textureObject)) } // [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpssvgfdefaulttextureallocator/3242896-device?language=objc -func (s_ SVGFDefaultTextureAllocator) Device() metal.DeviceWrapper { - rv := objc.Call[metal.DeviceWrapper](s_, objc.Sel("device")) +func (s_ SVGFDefaultTextureAllocator) Device() metal.DeviceObject { + rv := objc.Call[metal.DeviceObject](s_, objc.Sel("device")) return rv } diff --git a/macos/mps/svgf_denoiser.gen.go b/macos/mps/svgf_denoiser.gen.go index 95a7db75..effda79c 100644 --- a/macos/mps/svgf_denoiser.gen.go +++ b/macos/mps/svgf_denoiser.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package mps @@ -19,14 +19,16 @@ 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() - EncodeToCommandBufferSourceTextureMotionVectorTextureDepthNormalTexturePreviousDepthNormalTexture(commandBuffer metal.PCommandBuffer, sourceTexture metal.PTexture, motionVectorTexture metal.PTexture, depthNormalTexture metal.PTexture, previousDepthNormalTexture metal.PTexture) metal.TextureWrapper - EncodeToCommandBufferObjectSourceTextureObjectMotionVectorTextureObjectDepthNormalTextureObjectPreviousDepthNormalTextureObject(commandBufferObject objc.IObject, sourceTextureObject objc.IObject, motionVectorTextureObject objc.IObject, depthNormalTextureObject objc.IObject, previousDepthNormalTextureObject objc.IObject) metal.TextureWrapper - TextureAllocator() SVGFTextureAllocatorWrapper + EncodeToCommandBufferSourceTextureDestinationTextureSourceTexture2DestinationTexture2MotionVectorTextureDepthNormalTexturePreviousDepthNormalTexture(commandBuffer metal.PCommandBuffer, sourceTexture metal.PTexture, destinationTexture metal.PTexture, sourceTexture2 metal.PTexture, destinationTexture2 metal.PTexture, 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) Svgf() SVGF BilateralFilterIterations() uint SetBilateralFilterIterations(value uint) + TextureAllocator() SVGFTextureAllocatorObject } // [Full Topic] @@ -77,10 +79,6 @@ func (sc _SVGFDenoiserClass) Alloc() SVGFDenoiser { return rv } -func SVGFDenoiser_Alloc() SVGFDenoiser { - return SVGFDenoiserClass.Alloc() -} - func (sc _SVGFDenoiserClass) New() SVGFDenoiser { rv := objc.Call[SVGFDenoiser](sc, objc.Sel("new")) rv.Autorelease() @@ -96,6 +94,27 @@ func (s_ SVGFDenoiser) Init() SVGFDenoiser { return rv } +// [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpssvgfdenoiser/3353093-encodetocommandbuffer?language=objc +func (s_ SVGFDenoiser) EncodeToCommandBufferSourceTextureMotionVectorTextureDepthNormalTexturePreviousDepthNormalTexture(commandBuffer metal.PCommandBuffer, sourceTexture metal.PTexture, motionVectorTexture metal.PTexture, depthNormalTexture metal.PTexture, previousDepthNormalTexture metal.PTexture) metal.TextureObject { + po0 := objc.WrapAsProtocol("MTLCommandBuffer", commandBuffer) + po1 := objc.WrapAsProtocol("MTLTexture", sourceTexture) + po2 := objc.WrapAsProtocol("MTLTexture", motionVectorTexture) + po3 := objc.WrapAsProtocol("MTLTexture", depthNormalTexture) + po4 := objc.WrapAsProtocol("MTLTexture", previousDepthNormalTexture) + rv := objc.Call[metal.TextureObject](s_, objc.Sel("encodeToCommandBuffer:sourceTexture:motionVectorTexture:depthNormalTexture:previousDepthNormalTexture:"), po0, po1, po2, po3, po4) + return rv +} + +// [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpssvgfdenoiser/3353093-encodetocommandbuffer?language=objc +func (s_ SVGFDenoiser) EncodeToCommandBufferObjectSourceTextureObjectMotionVectorTextureObjectDepthNormalTextureObjectPreviousDepthNormalTextureObject(commandBufferObject objc.IObject, sourceTextureObject objc.IObject, motionVectorTextureObject objc.IObject, depthNormalTextureObject objc.IObject, previousDepthNormalTextureObject objc.IObject) metal.TextureObject { + rv := objc.Call[metal.TextureObject](s_, objc.Sel("encodeToCommandBuffer:sourceTexture:motionVectorTexture:depthNormalTexture:previousDepthNormalTexture:"), objc.Ptr(commandBufferObject), objc.Ptr(sourceTextureObject), objc.Ptr(motionVectorTextureObject), objc.Ptr(depthNormalTextureObject), objc.Ptr(previousDepthNormalTextureObject)) + return rv +} + // [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpssvgfdenoiser/3242903-cleartemporalhistory?language=objc @@ -112,31 +131,24 @@ func (s_ SVGFDenoiser) ReleaseTemporaryTextures() { // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpssvgfdenoiser/3353093-encodetocommandbuffer?language=objc -func (s_ SVGFDenoiser) EncodeToCommandBufferSourceTextureMotionVectorTextureDepthNormalTexturePreviousDepthNormalTexture(commandBuffer metal.PCommandBuffer, sourceTexture metal.PTexture, motionVectorTexture metal.PTexture, depthNormalTexture metal.PTexture, previousDepthNormalTexture metal.PTexture) metal.TextureWrapper { +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpssvgfdenoiser/3353092-encodetocommandbuffer?language=objc +func (s_ SVGFDenoiser) EncodeToCommandBufferSourceTextureDestinationTextureSourceTexture2DestinationTexture2MotionVectorTextureDepthNormalTexturePreviousDepthNormalTexture(commandBuffer metal.PCommandBuffer, sourceTexture metal.PTexture, destinationTexture metal.PTexture, sourceTexture2 metal.PTexture, destinationTexture2 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", motionVectorTexture) - po3 := objc.WrapAsProtocol("MTLTexture", depthNormalTexture) - po4 := objc.WrapAsProtocol("MTLTexture", previousDepthNormalTexture) - rv := objc.Call[metal.TextureWrapper](s_, objc.Sel("encodeToCommandBuffer:sourceTexture:motionVectorTexture:depthNormalTexture:previousDepthNormalTexture:"), po0, po1, po2, po3, po4) - return rv + 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/3353093-encodetocommandbuffer?language=objc -func (s_ SVGFDenoiser) EncodeToCommandBufferObjectSourceTextureObjectMotionVectorTextureObjectDepthNormalTextureObjectPreviousDepthNormalTextureObject(commandBufferObject objc.IObject, sourceTextureObject objc.IObject, motionVectorTextureObject objc.IObject, depthNormalTextureObject objc.IObject, previousDepthNormalTextureObject objc.IObject) metal.TextureWrapper { - rv := objc.Call[metal.TextureWrapper](s_, objc.Sel("encodeToCommandBuffer:sourceTexture:motionVectorTexture:depthNormalTexture:previousDepthNormalTexture:"), objc.Ptr(commandBufferObject), objc.Ptr(sourceTextureObject), objc.Ptr(motionVectorTextureObject), objc.Ptr(depthNormalTextureObject), objc.Ptr(previousDepthNormalTextureObject)) - return rv -} - -// [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpssvgfdenoiser/3242915-textureallocator?language=objc -func (s_ SVGFDenoiser) TextureAllocator() SVGFTextureAllocatorWrapper { - rv := objc.Call[SVGFTextureAllocatorWrapper](s_, objc.Sel("textureAllocator")) - return rv +// [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:"), objc.Ptr(commandBufferObject), objc.Ptr(sourceTextureObject), objc.Ptr(destinationTextureObject), objc.Ptr(sourceTexture2Object), objc.Ptr(destinationTexture2Object), objc.Ptr(motionVectorTextureObject), objc.Ptr(depthNormalTextureObject), objc.Ptr(previousDepthNormalTextureObject)) } // [Full Topic] @@ -161,3 +173,11 @@ 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.gen.go b/macos/mps/svgf_texture_allocator_protocol.gen.go similarity index 55% rename from macos/mps/svgf_texture_allocator.gen.go rename to macos/mps/svgf_texture_allocator_protocol.gen.go index fcea11ce..89bd3864 100644 --- a/macos/mps/svgf_texture_allocator.gen.go +++ b/macos/mps/svgf_texture_allocator_protocol.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package mps @@ -12,39 +12,42 @@ import ( // [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpssvgftextureallocator?language=objc type PSVGFTextureAllocator interface { // optional - ReturnTexture(texture metal.TextureWrapper) - HasReturnTexture() bool + TextureWithPixelFormatWidthHeight(pixelFormat metal.PixelFormat, width uint, height uint) metal.TextureObject + HasTextureWithPixelFormatWidthHeight() bool // optional - TextureWithPixelFormatWidthHeight(pixelFormat metal.PixelFormat, width uint, height uint) metal.PTexture - HasTextureWithPixelFormatWidthHeight() bool + ReturnTexture(texture metal.TextureObject) + HasReturnTexture() bool } -// A concrete type wrapper for the [PSVGFTextureAllocator] protocol. -type SVGFTextureAllocatorWrapper struct { +// ensure impl type implements protocol interface +var _ PSVGFTextureAllocator = (*SVGFTextureAllocatorObject)(nil) + +// A concrete type for the [PSVGFTextureAllocator] protocol. +type SVGFTextureAllocatorObject struct { objc.Object } -func (s_ SVGFTextureAllocatorWrapper) HasReturnTexture() bool { - return s_.RespondsToSelector(objc.Sel("returnTexture:")) +func (s_ SVGFTextureAllocatorObject) HasTextureWithPixelFormatWidthHeight() bool { + return s_.RespondsToSelector(objc.Sel("textureWithPixelFormat:width:height:")) } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpssvgftextureallocator/3242917-returntexture?language=objc -func (s_ SVGFTextureAllocatorWrapper) 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/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_ SVGFTextureAllocatorWrapper) HasTextureWithPixelFormatWidthHeight() bool { - return s_.RespondsToSelector(objc.Sel("textureWithPixelFormat:width:height:")) +func (s_ SVGFTextureAllocatorObject) HasReturnTexture() bool { + return s_.RespondsToSelector(objc.Sel("returnTexture:")) } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpssvgftextureallocator/3242918-texturewithpixelformat?language=objc -func (s_ SVGFTextureAllocatorWrapper) TextureWithPixelFormatWidthHeight(pixelFormat metal.PixelFormat, width uint, height uint) metal.TextureWrapper { - rv := objc.Call[metal.TextureWrapper](s_, objc.Sel("textureWithPixelFormat:width:height:"), pixelFormat, width, height) - return rv +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpssvgftextureallocator/3242917-returntexture?language=objc +func (s_ SVGFTextureAllocatorObject) ReturnTexture(texture metal.TextureObject) { + po0 := objc.WrapAsProtocol("MTLTexture", texture) + objc.Call[objc.Void](s_, objc.Sel("returnTexture:"), po0) } diff --git a/macos/mps/temporal_aa.gen.go b/macos/mps/temporal_aa.gen.go index aff651f9..726c98cf 100644 --- a/macos/mps/temporal_aa.gen.go +++ b/macos/mps/temporal_aa.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package mps @@ -40,33 +40,32 @@ func TemporalAAFrom(ptr unsafe.Pointer) TemporalAA { } } -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 } -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) - rv.Autorelease() +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 } @@ -76,10 +75,6 @@ func (tc _TemporalAAClass) Alloc() TemporalAA { return rv } -func TemporalAA_Alloc() TemporalAA { - return TemporalAAClass.Alloc() -} - func (tc _TemporalAAClass) New() TemporalAA { rv := objc.Call[TemporalAA](tc, objc.Sel("new")) rv.Autorelease() diff --git a/macos/mps/temporary_image.gen.go b/macos/mps/temporary_image.gen.go index 2a0f2d77..36618cf2 100644 --- a/macos/mps/temporary_image.gen.go +++ b/macos/mps/temporary_image.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package mps @@ -50,13 +50,35 @@ func TemporaryImage_TemporaryImageWithCommandBufferTextureDescriptorFeatureChann return TemporaryImageClass.TemporaryImageWithCommandBufferTextureDescriptorFeatureChannels(commandBuffer, textureDescriptor, featureChannels) } -func (tc _TemporaryImageClass) Alloc() TemporaryImage { - rv := objc.Call[TemporaryImage](tc, objc.Sel("alloc")) +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, objc.Ptr(imageDescriptor)) return rv } -func TemporaryImage_Alloc() TemporaryImage { - return TemporaryImageClass.Alloc() +// 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, objc.Ptr(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 } func (tc _TemporaryImageClass) New() TemporaryImage { @@ -74,20 +96,6 @@ 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:"), objc.Ptr(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) @@ -118,6 +126,20 @@ 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:"), objc.Ptr(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 890a7876..a627efde 100644 --- a/macos/mps/temporary_matrix.gen.go +++ b/macos/mps/temporary_matrix.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package mps @@ -54,10 +54,6 @@ func (tc _TemporaryMatrixClass) Alloc() TemporaryMatrix { return rv } -func TemporaryMatrix_Alloc() TemporaryMatrix { - return TemporaryMatrixClass.Alloc() -} - func (tc _TemporaryMatrixClass) New() TemporaryMatrix { rv := objc.Call[TemporaryMatrix](tc, objc.Sel("new")) rv.Autorelease() @@ -73,32 +69,47 @@ func (t_ TemporaryMatrix) Init() TemporaryMatrix { return rv } -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, objc.Ptr(descriptor)) +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, objc.Ptr(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 } -func (t_ TemporaryMatrix) InitWithBufferOffsetDescriptor(buffer metal.PBuffer, offset uint, descriptor IMatrixDescriptor) TemporaryMatrix { +func (t_ TemporaryMatrix) InitWithBufferDescriptor(buffer metal.PBuffer, descriptor IMatrixDescriptor) TemporaryMatrix { po0 := objc.WrapAsProtocol("MTLBuffer", buffer) - rv := objc.Call[TemporaryMatrix](t_, objc.Sel("initWithBuffer:offset:descriptor:"), po0, offset, objc.Ptr(descriptor)) + rv := objc.Call[TemporaryMatrix](t_, objc.Sel("initWithBuffer:descriptor:"), po0, objc.Ptr(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, objc.Ptr(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 } diff --git a/macos/mps/temporary_nd_array.gen.go b/macos/mps/temporary_nd_array.gen.go index 1ea46a7f..49831a4b 100644 --- a/macos/mps/temporary_nd_array.gen.go +++ b/macos/mps/temporary_nd_array.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package mps @@ -54,10 +54,6 @@ func (tc _TemporaryNDArrayClass) Alloc() TemporaryNDArray { return rv } -func TemporaryNDArray_Alloc() TemporaryNDArray { - return TemporaryNDArrayClass.Alloc() -} - func (tc _TemporaryNDArrayClass) New() TemporaryNDArray { rv := objc.Call[TemporaryNDArray](tc, objc.Sel("new")) rv.Autorelease() @@ -88,6 +84,21 @@ 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, objc.Ptr(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 55231b6f..97ef4da7 100644 --- a/macos/mps/temporary_vector.gen.go +++ b/macos/mps/temporary_vector.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package mps @@ -54,10 +54,6 @@ func (tc _TemporaryVectorClass) Alloc() TemporaryVector { return rv } -func TemporaryVector_Alloc() TemporaryVector { - return TemporaryVectorClass.Alloc() -} - func (tc _TemporaryVectorClass) New() TemporaryVector { rv := objc.Call[TemporaryVector](tc, objc.Sel("new")) rv.Autorelease() @@ -73,6 +69,21 @@ 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, objc.Ptr(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, objc.Ptr(descriptor)) diff --git a/macos/mps/triangle_acceleration_structure.gen.go b/macos/mps/triangle_acceleration_structure.gen.go index 8a53a731..3bc1943f 100644 --- a/macos/mps/triangle_acceleration_structure.gen.go +++ b/macos/mps/triangle_acceleration_structure.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package mps @@ -39,10 +39,6 @@ func (tc _TriangleAccelerationStructureClass) Alloc() TriangleAccelerationStruct return rv } -func TriangleAccelerationStructure_Alloc() TriangleAccelerationStructure { - return TriangleAccelerationStructureClass.Alloc() -} - func (tc _TriangleAccelerationStructureClass) New() TriangleAccelerationStructure { rv := objc.Call[TriangleAccelerationStructure](tc, objc.Sel("new")) rv.Autorelease() @@ -58,33 +54,32 @@ func (t_ TriangleAccelerationStructure) Init() TriangleAccelerationStructure { return rv } -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 } -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) - rv.Autorelease() +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 } diff --git a/macos/mps/unary_image_kernel.gen.go b/macos/mps/unary_image_kernel.gen.go index 1043bfee..5cc48fae 100644 --- a/macos/mps/unary_image_kernel.gen.go +++ b/macos/mps/unary_image_kernel.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package mps @@ -19,15 +19,19 @@ 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 metal.PTexture, 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] @@ -63,10 +67,6 @@ func (uc _UnaryImageKernelClass) Alloc() UnaryImageKernel { return rv } -func UnaryImageKernel_Alloc() UnaryImageKernel { - return UnaryImageKernelClass.Alloc() -} - func (uc _UnaryImageKernelClass) New() UnaryImageKernel { rv := objc.Call[UnaryImageKernel](uc, objc.Sel("new")) rv.Autorelease() @@ -85,7 +85,6 @@ func (u_ UnaryImageKernel) Init() UnaryImageKernel { func (u_ UnaryImageKernel) CopyWithZoneDevice(zone unsafe.Pointer, device metal.PDevice) UnaryImageKernel { po1 := objc.WrapAsProtocol("MTLDevice", device) rv := objc.Call[UnaryImageKernel](u_, objc.Sel("copyWithZone:device:"), zone, po1) - rv.Autorelease() return rv } @@ -98,6 +97,23 @@ 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:"), objc.Ptr(commandBufferObject), objc.Ptr(sourceTextureObject), objc.Ptr(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 @@ -106,6 +122,24 @@ 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 metal.PTexture, 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:"), objc.Ptr(commandBufferObject), objc.Ptr(textureObject), copyAllocator) + return rv +} + // [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsunaryimagekernel/2866328-encodetocommandbuffer?language=objc @@ -121,6 +155,21 @@ func (u_ UnaryImageKernel) EncodeToCommandBufferObjectSourceImageDestinationImag objc.Call[objc.Void](u_, objc.Sel("encodeToCommandBuffer:sourceImage:destinationImage:"), objc.Ptr(commandBufferObject), objc.Ptr(sourceImage), objc.Ptr(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 @@ -150,18 +199,3 @@ 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 3a97f39e..cfe6e17a 100644 --- a/macos/mps/vector.gen.go +++ b/macos/mps/vector.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package mps @@ -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) - Device() metal.DeviceWrapper + ResourceSize() uint + DataType() DataType + Offset() uint + Data() metal.BufferObject + Length() uint VectorBytes() uint - Data() metal.BufferWrapper Vectors() uint - Length() uint - Offset() uint - DataType() DataType + Device() metal.DeviceObject } // A 1D array of data that stores the data's values. [Full Topic] @@ -44,6 +44,21 @@ 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, objc.Ptr(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, objc.Ptr(descriptor)) @@ -79,10 +94,6 @@ func (vc _VectorClass) Alloc() Vector { return rv } -func Vector_Alloc() Vector { - return VectorClass.Alloc() -} - func (vc _VectorClass) New() Vector { rv := objc.Call[Vector](vc, objc.Sel("new")) rv.Autorelease() @@ -98,14 +109,6 @@ 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 @@ -123,33 +126,33 @@ func (v_ Vector) SynchronizeOnCommandBufferObject(commandBufferObject objc.IObje // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsvector/2873338-device?language=objc -func (v_ Vector) Device() metal.DeviceWrapper { - rv := objc.Call[metal.DeviceWrapper](v_, objc.Sel("device")) +// [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/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/2873336-datatype?language=objc +func (v_ Vector) DataType() DataType { + rv := objc.Call[DataType](v_, objc.Sel("dataType")) return rv } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshaders/mpsvector/2873393-data?language=objc -func (v_ Vector) Data() metal.BufferWrapper { - rv := objc.Call[metal.BufferWrapper](v_, objc.Sel("data")) +// [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/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/2873393-data?language=objc +func (v_ Vector) Data() metal.BufferObject { + rv := objc.Call[metal.BufferObject](v_, objc.Sel("data")) return rv } @@ -163,16 +166,24 @@ func (v_ Vector) Length() uint { // [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 } // [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/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/2873338-device?language=objc +func (v_ Vector) Device() metal.DeviceObject { + rv := objc.Call[metal.DeviceObject](v_, objc.Sel("device")) return rv } diff --git a/macos/mps/vector_descriptor.gen.go b/macos/mps/vector_descriptor.gen.go index 5f87d003..3af6bb63 100644 --- a/macos/mps/vector_descriptor.gen.go +++ b/macos/mps/vector_descriptor.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package mps @@ -20,10 +20,10 @@ type IVectorDescriptor interface { objc.IObject VectorBytes() uint Vectors() uint - Length() uint - SetLength(value uint) DataType() DataType SetDataType(value DataType) + Length() uint + SetLength(value uint) } // A description of the length and data type of a vector. [Full Topic] @@ -51,13 +51,21 @@ func VectorDescriptor_VectorDescriptorWithLengthDataType(length uint, dataType D return VectorDescriptorClass.VectorDescriptorWithLengthDataType(length, dataType) } -func (vc _VectorDescriptorClass) Alloc() VectorDescriptor { - rv := objc.Call[VectorDescriptor](vc, objc.Sel("alloc")) +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 } -func VectorDescriptor_Alloc() VectorDescriptor { - return VectorDescriptorClass.Alloc() +// [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 } func (vc _VectorDescriptorClass) New() VectorDescriptor { @@ -108,30 +116,30 @@ func (v_ VectorDescriptor) Vectors() uint { // [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) } // [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) } diff --git a/macos/mpsgraph/aliastypes.gen.go b/macos/mpsgraph/aliastypes.gen.go index b71f334b..f924e33f 100644 --- a/macos/mpsgraph/aliastypes.gen.go +++ b/macos/mpsgraph/aliastypes.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package mpsgraph diff --git a/macos/mpsgraph/compilation_descriptor.gen.go b/macos/mpsgraph/compilation_descriptor.gen.go index 59e1e984..a439dcd5 100644 --- a/macos/mpsgraph/compilation_descriptor.gen.go +++ b/macos/mpsgraph/compilation_descriptor.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package mpsgraph @@ -41,10 +41,6 @@ func (cc _CompilationDescriptorClass) Alloc() CompilationDescriptor { return rv } -func CompilationDescriptor_Alloc() CompilationDescriptor { - return CompilationDescriptorClass.Alloc() -} - func (cc _CompilationDescriptorClass) New() CompilationDescriptor { rv := objc.Call[CompilationDescriptor](cc, objc.Sel("new")) rv.Autorelease() diff --git a/macos/mpsgraph/convolution2_d_op_descriptor.gen.go b/macos/mpsgraph/convolution2_d_op_descriptor.gen.go index a82c06e4..76e857b5 100644 --- a/macos/mpsgraph/convolution2_d_op_descriptor.gen.go +++ b/macos/mpsgraph/convolution2_d_op_descriptor.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package mpsgraph @@ -19,30 +19,30 @@ type _Convolution2DOpDescriptorClass struct { type IConvolution2DOpDescriptor interface { objc.IObject SetExplicitPaddingWithPaddingLeftPaddingRightPaddingTopPaddingBottom(paddingLeft uint, paddingRight uint, paddingTop uint, paddingBottom uint) - StrideInX() uint - SetStrideInX(value uint) + Groups() uint + SetGroups(value uint) + DilationRateInY() uint + SetDilationRateInY(value uint) + DataLayout() TensorNamedDataLayout + SetDataLayout(value TensorNamedDataLayout) 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) - 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) + DilationRateInX() uint + SetDilationRateInX(value uint) } // [Full Topic] @@ -70,13 +70,21 @@ func Convolution2DOpDescriptor_DescriptorWithStrideInXStrideInYDilationRateInXDi return Convolution2DOpDescriptorClass.DescriptorWithStrideInXStrideInYDilationRateInXDilationRateInYGroupsPaddingStyleDataLayoutWeightsLayout(strideInX, strideInY, dilationRateInX, dilationRateInY, groups, paddingStyle, dataLayout, weightsLayout) } -func (cc _Convolution2DOpDescriptorClass) Alloc() Convolution2DOpDescriptor { - rv := objc.Call[Convolution2DOpDescriptor](cc, objc.Sel("alloc")) +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 } -func Convolution2DOpDescriptor_Alloc() Convolution2DOpDescriptor { - return Convolution2DOpDescriptorClass.Alloc() +// [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 } func (cc _Convolution2DOpDescriptorClass) New() Convolution2DOpDescriptor { @@ -103,77 +111,77 @@ func (c_ Convolution2DOpDescriptor) SetExplicitPaddingWithPaddingLeftPaddingRigh // [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/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/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/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/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/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/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/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/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/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/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/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/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/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/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/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/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/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/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/3564604-paddingbottom?language=objc +func (c_ Convolution2DOpDescriptor) SetPaddingBottom(value uint) { + objc.Call[objc.Void](c_, objc.Sel("setPaddingBottom:"), value) } // [Full Topic] @@ -193,90 +201,90 @@ func (c_ Convolution2DOpDescriptor) SetWeightsLayout(value TensorNamedDataLayout // [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/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/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/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/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/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/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/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/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/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/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/3564611-strideiny?language=objc +func (c_ Convolution2DOpDescriptor) SetStrideInY(value uint) { + objc.Call[objc.Void](c_, objc.Sel("setStrideInY:"), value) } // [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/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/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/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/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/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/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/3564606-paddingright?language=objc +func (c_ Convolution2DOpDescriptor) SetPaddingRight(value uint) { + objc.Call[objc.Void](c_, objc.Sel("setPaddingRight:"), 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/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/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/3564601-dilationrateinx?language=objc +func (c_ Convolution2DOpDescriptor) SetDilationRateInX(value uint) { + objc.Call[objc.Void](c_, objc.Sel("setDilationRateInX:"), value) } diff --git a/macos/mpsgraph/create_sparse_op_descriptor.gen.go b/macos/mpsgraph/create_sparse_op_descriptor.gen.go index f43362cb..4f3d0be9 100644 --- a/macos/mpsgraph/create_sparse_op_descriptor.gen.go +++ b/macos/mpsgraph/create_sparse_op_descriptor.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package mpsgraph @@ -55,10 +55,6 @@ func (cc _CreateSparseOpDescriptorClass) Alloc() CreateSparseOpDescriptor { return rv } -func CreateSparseOpDescriptor_Alloc() CreateSparseOpDescriptor { - return CreateSparseOpDescriptorClass.Alloc() -} - func (cc _CreateSparseOpDescriptorClass) New() CreateSparseOpDescriptor { rv := objc.Call[CreateSparseOpDescriptor](cc, objc.Sel("new")) rv.Autorelease() diff --git a/macos/mpsgraph/depthwise_convolution2_d_op_descriptor.gen.go b/macos/mpsgraph/depthwise_convolution2_d_op_descriptor.gen.go index 17cda450..6c704ae2 100644 --- a/macos/mpsgraph/depthwise_convolution2_d_op_descriptor.gen.go +++ b/macos/mpsgraph/depthwise_convolution2_d_op_descriptor.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package mpsgraph @@ -19,28 +19,28 @@ type _DepthwiseConvolution2DOpDescriptorClass struct { type IDepthwiseConvolution2DOpDescriptor interface { objc.IObject SetExplicitPaddingWithPaddingLeftPaddingRightPaddingTopPaddingBottom(paddingLeft uint, paddingRight uint, paddingTop uint, paddingBottom uint) - StrideInX() uint - SetStrideInX(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) + 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) - DataLayout() TensorNamedDataLayout - SetDataLayout(value TensorNamedDataLayout) - DilationRateInY() uint - SetDilationRateInY(value uint) - PaddingRight() uint - SetPaddingRight(value uint) + PaddingStyle() PaddingStyle + SetPaddingStyle(value PaddingStyle) + PaddingTop() uint + SetPaddingTop(value uint) } // [Full Topic] @@ -56,28 +56,28 @@ func DepthwiseConvolution2DOpDescriptorFrom(ptr unsafe.Pointer) DepthwiseConvolu } } -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) 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) Alloc() DepthwiseConvolution2DOpDescriptor { @@ -85,10 +85,6 @@ func (dc _DepthwiseConvolution2DOpDescriptorClass) Alloc() DepthwiseConvolution2 return rv } -func DepthwiseConvolution2DOpDescriptor_Alloc() DepthwiseConvolution2DOpDescriptor { - return DepthwiseConvolution2DOpDescriptorClass.Alloc() -} - func (dc _DepthwiseConvolution2DOpDescriptorClass) New() DepthwiseConvolution2DOpDescriptor { rv := objc.Call[DepthwiseConvolution2DOpDescriptor](dc, objc.Sel("new")) rv.Autorelease() @@ -113,92 +109,92 @@ func (d_ DepthwiseConvolution2DOpDescriptor) SetExplicitPaddingWithPaddingLeftPa // [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/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/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/3667504-weightslayout?language=objc +func (d_ DepthwiseConvolution2DOpDescriptor) SetWeightsLayout(value TensorNamedDataLayout) { + objc.Call[objc.Void](d_, objc.Sel("setWeightsLayout:"), 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/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/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/3667498-paddingright?language=objc +func (d_ DepthwiseConvolution2DOpDescriptor) SetPaddingRight(value uint) { + objc.Call[objc.Void](d_, objc.Sel("setPaddingRight:"), value) } // [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/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/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/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/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/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/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/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/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/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/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/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/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/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/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/3667491-datalayout?language=objc +func (d_ DepthwiseConvolution2DOpDescriptor) SetDataLayout(value TensorNamedDataLayout) { + objc.Call[objc.Void](d_, objc.Sel("setDataLayout:"), value) } // [Full Topic] @@ -218,60 +214,60 @@ func (d_ DepthwiseConvolution2DOpDescriptor) SetPaddingLeft(value uint) { // [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/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/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/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/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/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/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/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/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/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/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/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/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/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/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/3667500-paddingtop?language=objc +func (d_ DepthwiseConvolution2DOpDescriptor) SetPaddingTop(value uint) { + objc.Call[objc.Void](d_, objc.Sel("setPaddingTop:"), value) } diff --git a/macos/mpsgraph/depthwise_convolution3_d_op_descriptor.gen.go b/macos/mpsgraph/depthwise_convolution3_d_op_descriptor.gen.go index 198fa41a..caf6a33d 100644 --- a/macos/mpsgraph/depthwise_convolution3_d_op_descriptor.gen.go +++ b/macos/mpsgraph/depthwise_convolution3_d_op_descriptor.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package mpsgraph @@ -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] @@ -73,10 +73,6 @@ func (dc _DepthwiseConvolution3DOpDescriptorClass) Alloc() DepthwiseConvolution3 return rv } -func DepthwiseConvolution3DOpDescriptor_Alloc() DepthwiseConvolution3DOpDescriptor { - return DepthwiseConvolution3DOpDescriptorClass.Alloc() -} - func (dc _DepthwiseConvolution3DOpDescriptorClass) New() DepthwiseConvolution3DOpDescriptor { rv := objc.Call[DepthwiseConvolution3DOpDescriptor](dc, objc.Sel("new")) rv.Autorelease() @@ -92,21 +88,6 @@ func (d_ DepthwiseConvolution3DOpDescriptor) Init() DepthwiseConvolution3DOpDesc return rv } -// [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")) - 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] // // [Full Topic]: https://developer.apple.com/documentation/metalperformanceshadersgraph/mpsgraphdepthwiseconvolution3dopdescriptor/3787589-channeldimensionindex?language=objc @@ -122,21 +103,6 @@ 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/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/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/3750685-dilationrates?language=objc @@ -166,3 +132,33 @@ func (d_ DepthwiseConvolution3DOpDescriptor) Strides() []foundation.Number { func (d_ DepthwiseConvolution3DOpDescriptor) SetStrides(value []foundation.INumber) { objc.Call[objc.Void](d_, objc.Sel("setStrides:"), 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")) + 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] +// +// [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/3750686-paddingstyle?language=objc +func (d_ DepthwiseConvolution3DOpDescriptor) SetPaddingStyle(value PaddingStyle) { + objc.Call[objc.Void](d_, objc.Sel("setPaddingStyle:"), value) +} diff --git a/macos/mpsgraph/device.gen.go b/macos/mpsgraph/device.gen.go index a5da1e04..ab1210e3 100644 --- a/macos/mpsgraph/device.gen.go +++ b/macos/mpsgraph/device.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package mpsgraph @@ -19,7 +19,7 @@ type _DeviceClass struct { // An interface definition for the [Device] class. type IDevice interface { objc.IObject - MetalDevice() metal.DeviceWrapper + MetalDevice() metal.DeviceObject Type() DeviceType } @@ -54,10 +54,6 @@ func (dc _DeviceClass) Alloc() Device { return rv } -func Device_Alloc() Device { - return DeviceClass.Alloc() -} - func (dc _DeviceClass) New() Device { rv := objc.Call[Device](dc, objc.Sel("new")) rv.Autorelease() @@ -76,8 +72,8 @@ func (d_ Device) Init() Device { // [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/metalperformanceshadersgraph/mpsgraphdevice/3564650-metaldevice?language=objc -func (d_ Device) MetalDevice() metal.DeviceWrapper { - rv := objc.Call[metal.DeviceWrapper](d_, objc.Sel("metalDevice")) +func (d_ Device) MetalDevice() metal.DeviceObject { + rv := objc.Call[metal.DeviceObject](d_, objc.Sel("metalDevice")) return rv } diff --git a/macos/mpsgraph/doc.gen.go b/macos/mpsgraph/doc.gen.go index 6ec5ac5b..944e0bbf 100644 --- a/macos/mpsgraph/doc.gen.go +++ b/macos/mpsgraph/doc.gen.go @@ -1,8 +1,8 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. // Build, compile, and execute customized multidimensional compute graphs for linear algebra, machine learning, computer vision, and other similar domains. // -// [Full Documentation] +// [Apple Documentation] // -// [Full Documentation]: https://developer.apple.com/documentation/metalperformanceshadersgraph?language=objc +// [Apple Documentation]: https://developer.apple.com/documentation/metalperformanceshadersgraph?language=objc package mpsgraph diff --git a/macos/mpsgraph/enumtypes.gen.go b/macos/mpsgraph/enumtypes.gen.go index 0b133d6e..8d8a6f24 100644 --- a/macos/mpsgraph/enumtypes.gen.go +++ b/macos/mpsgraph/enumtypes.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package mpsgraph diff --git a/macos/mpsgraph/executable.gen.go b/macos/mpsgraph/executable.gen.go index 3dbffaed..bc4c5f65 100644 --- a/macos/mpsgraph/executable.gen.go +++ b/macos/mpsgraph/executable.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package mpsgraph @@ -28,8 +28,8 @@ type IExecutable interface { EncodeToCommandBufferInputsArrayResultsArrayExecutionDescriptor(commandBuffer mps.ICommandBuffer, inputsArray []ITensorData, resultsArray []ITensorData, executionDescriptor IExecutableExecutionDescriptor) []TensorData Options() Options SetOptions(value Options) - FeedTensors() []Tensor TargetTensors() []Tensor + FeedTensors() []Tensor } // [Full Topic] @@ -50,10 +50,6 @@ func (ec _ExecutableClass) Alloc() Executable { return rv } -func Executable_Alloc() Executable { - return ExecutableClass.Alloc() -} - func (ec _ExecutableClass) New() Executable { rv := objc.Call[Executable](ec, objc.Sel("new")) rv.Autorelease() @@ -135,16 +131,16 @@ func (e_ Executable) SetOptions(value Options) { // [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 } // [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 } diff --git a/macos/mpsgraph/executable_execution_descriptor.gen.go b/macos/mpsgraph/executable_execution_descriptor.gen.go index d468ef65..9ba929f6 100644 --- a/macos/mpsgraph/executable_execution_descriptor.gen.go +++ b/macos/mpsgraph/executable_execution_descriptor.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package mpsgraph @@ -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] @@ -44,10 +44,6 @@ func (ec _ExecutableExecutionDescriptorClass) Alloc() ExecutableExecutionDescrip return rv } -func ExecutableExecutionDescriptor_Alloc() ExecutableExecutionDescriptor { - return ExecutableExecutionDescriptorClass.Alloc() -} - func (ec _ExecutableExecutionDescriptorClass) New() ExecutableExecutionDescriptor { rv := objc.Call[ExecutableExecutionDescriptor](ec, objc.Sel("new")) rv.Autorelease() @@ -63,21 +59,6 @@ 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 @@ -107,3 +88,18 @@ 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 5b72046d..0c09487f 100644 --- a/macos/mpsgraph/execution_descriptor.gen.go +++ b/macos/mpsgraph/execution_descriptor.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package mpsgraph @@ -18,10 +18,10 @@ type _ExecutionDescriptorClass struct { // An interface definition for the [ExecutionDescriptor] class. type IExecutionDescriptor interface { objc.IObject - ScheduledHandler() ScheduledHandler - SetScheduledHandler(value ScheduledHandler) WaitUntilCompleted() bool SetWaitUntilCompleted(value bool) + ScheduledHandler() ScheduledHandler + SetScheduledHandler(value ScheduledHandler) CompilationDescriptor() CompilationDescriptor SetCompilationDescriptor(value ICompilationDescriptor) CompletionHandler() CompletionHandler @@ -46,10 +46,6 @@ func (ec _ExecutionDescriptorClass) Alloc() ExecutionDescriptor { return rv } -func ExecutionDescriptor_Alloc() ExecutionDescriptor { - return ExecutionDescriptorClass.Alloc() -} - func (ec _ExecutionDescriptorClass) New() ExecutionDescriptor { rv := objc.Call[ExecutionDescriptor](ec, objc.Sel("new")) rv.Autorelease() @@ -67,32 +63,32 @@ func (e_ ExecutionDescriptor) Init() ExecutionDescriptor { // [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] // -// [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] diff --git a/macos/mpsgraph/graph.gen.go b/macos/mpsgraph/graph.gen.go index 5f2f59d9..c6f3951e 100644 --- a/macos/mpsgraph/graph.gen.go +++ b/macos/mpsgraph/graph.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package mpsgraph @@ -21,195 +21,268 @@ type _GraphClass struct { // An interface definition for the [Graph] class. type IGraph interface { objc.IObject - MaxPooling2DWithSourceTensorDescriptorName(source ITensor, descriptor IPooling2DOpDescriptor, name string) Tensor - AvgPooling4DWithSourceTensorDescriptorName(source ITensor, descriptor IPooling4DOpDescriptor, name string) Tensor - LessThanOrEqualToWithPrimaryTensorSecondaryTensorName(primaryTensor ITensor, secondaryTensor ITensor, name string) Tensor + 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 - 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 - RunWithMTLCommandQueueFeedsTargetOperationsResultsDictionary(commandQueue metal.PCommandQueue, feeds *foundation.Dictionary, targetOperations []IOperation, resultsDictionary *foundation.Dictionary) - RunWithMTLCommandQueueObjectFeedsTargetOperationsResultsDictionary(commandQueueObject objc.IObject, feeds *foundation.Dictionary, targetOperations []IOperation, resultsDictionary *foundation.Dictionary) + 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 + 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 - 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 + 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 + 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 float64, 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 CoordinateAlongAxisTensorWithShapeTensorName(axisTensor ITensor, shapeTensor ITensor, 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 - 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 + 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 - 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 - 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 + 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 - 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 + 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 + LeakyReLUWithTensorAlphaName(tensor ITensor, alpha float64, name string) Tensor + LSTMWithSourceTensorRecurrentWeightInitStateInitCellDescriptorName(source ITensor, recurrentWeight ITensor, initState ITensor, initCell ITensor, descriptor ILSTMDescriptor, name string) []Tensor + SquareWithTensorName(tensor ITensor, 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 + 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 SpaceToDepth2DTensorWidthAxisHeightAxisDepthAxisBlockSizeUsePixelShuffleOrderName(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 float64, 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 Convolution2DWithSourceTensorWeightsTensorDescriptorName(source ITensor, weights ITensor, descriptor IConvolution2DOpDescriptor, name string) Tensor ReLUGradientWithIncomingGradientSourceTensorName(gradient ITensor, source ITensor, name string) Tensor - Flatten2DTensorAxisTensorName(tensor ITensor, axisTensor 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 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 - 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 + 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 ReshapeTensorWithShapeTensorName(tensor ITensor, shapeTensor 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 + 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 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 float64, 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 - AbsoluteWithTensorName(tensor ITensor, name string) Tensor - ConvolutionTranspose2DWithSourceTensorWeightsTensorOutputShapeTensorDescriptorName(source ITensor, weights ITensor, outputShape ITensor, descriptor IConvolution2DOpDescriptor, 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 DivisionNoNaNWithPrimaryTensorSecondaryTensorName(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 + 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 float64, 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 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 - 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 - 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 - NegativeWithTensorName(tensor ITensor, name string) Tensor - ShapeOfTensorName(tensor ITensor, name string) Tensor + SoftMaxGradientWithIncomingGradientSourceTensorAxisName(gradient ITensor, source ITensor, axis int, 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 float64, 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 + ConvolutionTranspose2DWeightsGradientWithIncomingGradientTensorSourceTensorOutputShapeTensorForwardConvolutionDescriptorName(incomingGradientTensor ITensor, source ITensor, outputShape ITensor, forwardConvolutionDescriptor IConvolution2DOpDescriptor, 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 - 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 + IsFiniteWithTensorName(tensor ITensor, name string) Tensor + MaximumWithPrimaryTensorSecondaryTensorName(primaryTensor ITensor, secondaryTensor ITensor, name string) Tensor + L2NormPooling4DWithSourceTensorDescriptorName(source ITensor, descriptor IPooling4DOpDescriptor, 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 + 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 + 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 - 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 float64, name string) Tensor - SoftMaxWithTensorAxisName(tensor ITensor, axis int, 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 @@ -217,605 +290,1185 @@ type IGraph interface { // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshadersgraph/mpsgraph?language=objc -type Graph struct { - objc.Object +// [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:"), objc.Ptr(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:"), objc.Ptr(incomingGradient), objc.Ptr(weights), outputShape, objc.Ptr(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:"), objc.Ptr(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:"), objc.Ptr(source), objc.Ptr(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:"), objc.Ptr(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:"), objc.Ptr(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:"), objc.Ptr(gradient), objc.Ptr(source), objc.Ptr(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:"), objc.Ptr(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:"), objc.Ptr(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:"), objc.Ptr(incomingGradient), objc.Ptr(weights), outputShape, objc.Ptr(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:"), objc.Ptr(updatesTensor), objc.Ptr(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:"), objc.Ptr(gradient), objc.Ptr(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:"), objc.Ptr(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:"), objc.Ptr(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:"), objc.Ptr(primaryTensor), objc.Ptr(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:"), objc.Ptr(primaryTensor), objc.Ptr(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:"), objc.Ptr(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, objc.Ptr(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:"), objc.Ptr(commandQueueObject), feeds, targetOperations, resultsDictionary, objc.Ptr(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:"), objc.Ptr(primaryTensor), objc.Ptr(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:"), objc.Ptr(primaryTensor), objc.Ptr(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:"), objc.Ptr(axisTensor), objc.Ptr(updatesTensor), objc.Ptr(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:"), objc.Ptr(incomingGradient), objc.Ptr(weights), outputShape, objc.Ptr(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:"), objc.Ptr(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:"), objc.Ptr(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:"), objc.Ptr(primaryTensor), objc.Ptr(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:"), objc.Ptr(source), objc.Ptr(recurrentWeight), objc.Ptr(sourceGradient), objc.Ptr(zState), objc.Ptr(inputWeight), objc.Ptr(bias), objc.Ptr(initState), objc.Ptr(mask), objc.Ptr(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:"), objc.Ptr(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:"), objc.Ptr(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:"), objc.Ptr(incomingGradientTensor), objc.Ptr(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:"), objc.Ptr(tensor), objc.Ptr(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, objc.Ptr(descriptor), objc.Ptr(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:"), objc.Ptr(source), objc.Ptr(recurrentWeight), objc.Ptr(sourceGradient), objc.Ptr(zState), objc.Ptr(stateGradient), objc.Ptr(inputWeight), objc.Ptr(bias), objc.Ptr(initState), objc.Ptr(mask), objc.Ptr(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:"), objc.Ptr(gradient), objc.Ptr(weights), objc.Ptr(outputShapeTensor), objc.Ptr(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 float64, name string) Tensor { + rv := objc.Call[Tensor](g_, objc.Sel("normalizationGammaGradientWithIncomingGradientTensor:sourceTensor:meanTensor:varianceTensor:reductionAxes:epsilon:name:"), objc.Ptr(incomingGradientTensor), objc.Ptr(sourceTensor), objc.Ptr(meanTensor), objc.Ptr(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:"), objc.Ptr(device), feeds, targetTensors, targetOperations, objc.Ptr(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:"), objc.Ptr(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:"), objc.Ptr(primaryTensor), objc.Ptr(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:"), objc.Ptr(tensor), objc.Ptr(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:"), objc.Ptr(source), objc.Ptr(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:"), objc.Ptr(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:"), objc.Ptr(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:"), objc.Ptr(axisTensor), objc.Ptr(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:"), objc.Ptr(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:"), objc.Ptr(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:"), objc.Ptr(source), objc.Ptr(weights), objc.Ptr(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:"), objc.Ptr(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:"), objc.Ptr(primaryTensor), objc.Ptr(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:"), objc.Ptr(lowerBound), objc.Ptr(upperBound), objc.Ptr(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:"), objc.Ptr(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:"), objc.Ptr(shapeTensor), objc.Ptr(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:"), objc.Ptr(source), objc.Ptr(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:"), objc.Ptr(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:"), objc.Ptr(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:"), objc.Ptr(primaryTensor), objc.Ptr(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:"), objc.Ptr(learningRateTensor), objc.Ptr(valuesTensor), objc.Ptr(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:"), objc.Ptr(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:"), objc.Ptr(primaryTensor), objc.Ptr(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:"), objc.Ptr(gradient), objc.Ptr(source), objc.Ptr(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:"), objc.Ptr(primaryTensor), objc.Ptr(secondaryTensor), 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/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 } -func (gc _GraphClass) New() Graph { - rv := objc.Call[Graph](gc, objc.Sel("new")) - rv.Autorelease() +// [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:"), objc.Ptr(commandQueueObject), feeds, targetTensors, targetOperations) return rv } -func NewGraph() Graph { - return GraphClass.New() +// [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:"), objc.Ptr(tensor), axis, name) + return rv } -func (g_ Graph) Init() Graph { - rv := objc.Call[Graph](g_, objc.Sel("init")) +// [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:"), objc.Ptr(tensor), alpha, name) return rv } -func (gc _GraphClass) Alloc() Graph { - rv := objc.Call[Graph](gc, objc.Sel("alloc")) +// [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:"), objc.Ptr(source), objc.Ptr(recurrentWeight), objc.Ptr(initState), objc.Ptr(initCell), objc.Ptr(descriptor), name) return rv } -func Graph_Alloc() Graph { - return GraphClass.Alloc() +// [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:"), objc.Ptr(tensor), 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:"), objc.Ptr(source), objc.Ptr(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:"), objc.Ptr(tensor), 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:"), objc.Ptr(source), objc.Ptr(descriptor), 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:"), objc.Ptr(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:"), objc.Ptr(primaryTensor), objc.Ptr(secondaryTensor), name) +// [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:"), objc.Ptr(tensor), axis, 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:"), objc.Ptr(incomingGradient), objc.Ptr(weights), outputShape, objc.Ptr(descriptor), name) +// [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:"), objc.Ptr(indicesTensor), depth, dataType, onValue, offValue, 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:"), objc.Ptr(sparseDescriptor), inputTensorArray, shape, 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:"), objc.Ptr(tensor), name) return rv } // [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:"), objc.Ptr(source), objc.Ptr(recurrentWeight), objc.Ptr(initState), objc.Ptr(initCell), objc.Ptr(descriptor), 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:"), objc.Ptr(primaryTensor), objc.Ptr(secondaryTensor), 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:"), objc.Ptr(gradient), objc.Ptr(weights), objc.Ptr(outputShapeTensor), objc.Ptr(forwardConvolutionDescriptor), 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:"), objc.Ptr(source), objc.Ptr(weights), objc.Ptr(descriptor), 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/3901487-randomuniformtensorwithshapetens?language=objc +func (g_ Graph) RandomUniformTensorWithShapeTensorName(shapeTensor ITensor, name string) Tensor { + rv := objc.Call[Tensor](g_, objc.Sel("randomUniformTensorWithShapeTensor:name:"), objc.Ptr(shapeTensor), 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:"), objc.Ptr(commandQueueObject), feeds, targetOperations, resultsDictionary) +// [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/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:"), objc.Ptr(tensor), objc.Ptr(axesTensor), 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:"), objc.Ptr(source), objc.Ptr(weights), objc.Ptr(descriptor), 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:"), objc.Ptr(tensor), axis, 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:"), objc.Ptr(inputGradientTensor), objc.Ptr(fwdInShapeTensor), starts, ends, strides, 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:"), objc.Ptr(imagesTensor), objc.Ptr(size), mode, centerResult, alignCorners, layout, name) +// [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:"), objc.Ptr(tensor), axis, 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:"), objc.Ptr(tensor), 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:"), objc.Ptr(shapeTensor), objc.Ptr(descriptor), 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:"), objc.Ptr(primaryTensor), objc.Ptr(secondaryTensor), name) +// [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) 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:"), objc.Ptr(incomingGradientTensor), objc.Ptr(source), objc.Ptr(outputShape), objc.Ptr(forwardConvolutionDescriptor), name) +// [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:"), objc.Ptr(updatesTensor), objc.Ptr(indicesTensor), shape, batchDimensions, 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:"), objc.Ptr(axisTensor), objc.Ptr(shapeTensor), 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:"), objc.Ptr(incomingGradientTensor), objc.Ptr(sourceTensor), multiplier, 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:"), objc.Ptr(tensor), axes, name) +// [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:"), objc.Ptr(tensor), axis, 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:"), objc.Ptr(variable), objc.Ptr(tensor), 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:"), objc.Ptr(tensor), axes, 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:"), objc.Ptr(shapeTensor), 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:"), objc.Ptr(tensor), objc.Ptr(minValueTensor), objc.Ptr(maxValueTensor), 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:"), objc.Ptr(tensor), paddingMode, leftPadding, rightPadding, constantValue, 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:"), objc.Ptr(tensor), name) 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:"), objc.Ptr(learningRateTensor), objc.Ptr(variable), objc.Ptr(gradientTensor), 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:"), objc.Ptr(tensor), 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:"), objc.Ptr(predicateTensor), objc.Ptr(truePredicateTensor), objc.Ptr(falseSelectTensor), 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:"), objc.Ptr(gradient), objc.Ptr(source), objc.Ptr(descriptor), 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:"), objc.Ptr(incomingGradient), objc.Ptr(source), outputShape, objc.Ptr(descriptor), 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:"), objc.Ptr(dataTensor), objc.Ptr(updatesTensor), objc.Ptr(indicesTensor), axis, mode, name) return rv } // [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:"), objc.Ptr(tensor), alpha, 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:"), objc.Ptr(tensor), widthAxis, heightAxis, depthAxis, blockSize, usePixelShuffleOrder, 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:"), objc.Ptr(primaryTensor), objc.Ptr(secondaryTensor), 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:"), objc.Ptr(primaryTensor), objc.Ptr(secondaryTensor), 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:"), objc.Ptr(dataTensor), objc.Ptr(updatesTensor), objc.Ptr(indicesTensor), batchDimensions, mode, 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:"), objc.Ptr(variable), objc.Ptr(tensor), name) 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:"), objc.Ptr(tensor), 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:"), objc.Ptr(tensor), axes, 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:"), objc.Ptr(numberOfIterations), initialBodyArguments, body, name) +// [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, objc.Ptr(updatesTensor), objc.Ptr(indicesTensor), shape, mode, 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:"), objc.Ptr(primaryTensor), objc.Ptr(secondaryTensor), name) +// [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:"), objc.Ptr(tensor), numSplits, axis, 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:"), objc.Ptr(tensor), axis, name) +// [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:"), objc.Ptr(source), objc.Ptr(weights), outputShape, objc.Ptr(descriptor), 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:"), objc.Ptr(tensor), widthAxis, heightAxis, depthAxis, blockSize, usePixelShuffleOrder, 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:"), objc.Ptr(tensor), 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:"), objc.Ptr(gradient), objc.Ptr(source), objc.Ptr(descriptor), name) +// [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:"), objc.Ptr(tensor), objc.Ptr(rate), 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:"), objc.Ptr(tensor), 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:"), objc.Ptr(primaryTensor), objc.Ptr(secondaryTensor), 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:"), objc.Ptr(tensor), 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:"), objc.Ptr(primaryTensor), objc.Ptr(secondaryTensor), 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:"), objc.Ptr(incomingGradientTensor), objc.Ptr(sourceTensor), multiplier, name) +// [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:"), objc.Ptr(axisTensor), shape, 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:"), objc.Ptr(updatesTensor), objc.Ptr(indicesTensor), shape, axis, mode, name) +// [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:"), objc.Ptr(tensor), name) return rv } // [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:"), objc.Ptr(tensor), 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:"), objc.Ptr(source), objc.Ptr(weights), objc.Ptr(outputShape), objc.Ptr(descriptor), 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:"), objc.Ptr(tensor), 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:"), objc.Ptr(tensor), widthAxis, heightAxis, depthAxis, blockSize, usePixelShuffleOrder, 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:"), objc.Ptr(source), objc.Ptr(weights), objc.Ptr(descriptor), 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:"), objc.Ptr(gradient), objc.Ptr(source), 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:"), objc.Ptr(inputTensor), objc.Ptr(numLowerTensor), objc.Ptr(numUpperTensor), 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/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:"), objc.Ptr(incomingGradient), objc.Ptr(source), outputShape, objc.Ptr(descriptor), 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:"), objc.Ptr(commandQueueObject), feeds, targetOperations, resultsDictionary) } // [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:"), objc.Ptr(sourceTensor), objc.Ptr(labelsTensor), axis, reductionType, name) +// [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:"), objc.Ptr(gradient), objc.Ptr(source), objc.Ptr(alphaTensor), 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:"), objc.Ptr(tensor), 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:"), objc.Ptr(indicesTensor), depth, 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:"), objc.Ptr(source), objc.Ptr(weights), objc.Ptr(descriptor), 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:"), objc.Ptr(source), objc.Ptr(descriptor), 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:"), objc.Ptr(gradient), objc.Ptr(source), objc.Ptr(descriptor), 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:"), objc.Ptr(updatesTensor), objc.Ptr(indicesTensor), batchDimensions, name) return rv } // [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:"), objc.Ptr(gradient), objc.Ptr(source), objc.Ptr(outputShapeTensor), objc.Ptr(forwardConvolutionDescriptor), 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:"), objc.Ptr(tensor), paddingMode, leftPadding, rightPadding, constantValue, 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, objc.Ptr(descriptor), 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:"), objc.Ptr(tensor), axis, 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:"), objc.Ptr(tensor), 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:"), objc.Ptr(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:"), objc.Ptr(tensor), axis, 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:"), objc.Ptr(primaryTensor), objc.Ptr(secondaryTensor), 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:"), objc.Ptr(incomingGradient), objc.Ptr(weights), objc.Ptr(outputShape), objc.Ptr(forwardConvolutionDescriptor), 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:"), objc.Ptr(source), objc.Ptr(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:"), objc.Ptr(tensor), 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:"), objc.Ptr(gradient), objc.Ptr(source), objc.Ptr(descriptor), 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:"), objc.Ptr(primaryTensor), objc.Ptr(secondaryTensor), name) +// [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:"), objc.Ptr(imagesTensor), objc.Ptr(size), mode, centerResult, alignCorners, layout, 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:"), objc.Ptr(source), objc.Ptr(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:"), objc.Ptr(sparseDescriptor), inputTensorArray, shape, 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:"), objc.Ptr(predicateTensor), thenBlock, elseBlock, 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:"), objc.Ptr(primaryTensor), objc.Ptr(secondaryTensor), 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:"), objc.Ptr(primaryTensor), objc.Ptr(secondaryTensor), 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:"), objc.Ptr(tensor), objc.Ptr(shapeTensor), name) 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, objc.Ptr(dataTensor), objc.Ptr(updatesTensor), objc.Ptr(indicesTensor), mode, name) +// [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:"), objc.Ptr(inputTensor), numLower, numUpper, 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:"), objc.Ptr(tensor), name) +// [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:"), objc.Ptr(gradient), objc.Ptr(source), k, 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:"), objc.Ptr(tensor), widthAxis, heightAxis, depthAxis, blockSize, usePixelShuffleOrder, 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:"), objc.Ptr(tensor), 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:"), objc.Ptr(primaryTensor), objc.Ptr(secondaryTensor), 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:"), objc.Ptr(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:"), objc.Ptr(tensor), multiplier, 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:"), objc.Ptr(tensor), 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:"), objc.Ptr(tensor), name) +// [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:"), objc.Ptr(imagesTensor), size, mode, centerResult, alignCorners, layout, 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:"), objc.Ptr(tensor), type_, 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:"), objc.Ptr(tensor), axis, 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:"), objc.Ptr(tensor), axes, name) +// [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:"), objc.Ptr(tensor), axes, 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:"), objc.Ptr(tensor), 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:"), objc.Ptr(tensor), 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:"), objc.Ptr(updatesTensor), objc.Ptr(indicesTensor), shape, batchDimensions, mode, 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:"), objc.Ptr(primaryTensor), objc.Ptr(secondaryTensor), 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, objc.Ptr(shapeTensor), name) +// [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:"), objc.Ptr(shapeTensor), objc.Ptr(descriptor), objc.Ptr(state), 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, objc.Ptr(updatesTensor), objc.Ptr(indicesTensor), name) +// [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:"), objc.Ptr(source), objc.Ptr(recurrentWeight), objc.Ptr(inputWeight), objc.Ptr(bias), objc.Ptr(initState), objc.Ptr(initCell), objc.Ptr(mask), objc.Ptr(peephole), objc.Ptr(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:"), objc.Ptr(primaryTensor), objc.Ptr(secondaryTensor), 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:"), objc.Ptr(source), objc.Ptr(recurrentWeight), objc.Ptr(initState), objc.Ptr(descriptor), 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:"), objc.Ptr(tensor), 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:"), objc.Ptr(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:"), objc.Ptr(incomingGradient), objc.Ptr(weights), outputShape, objc.Ptr(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:"), objc.Ptr(tensor), axis, 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:"), objc.Ptr(source), objc.Ptr(recurrentWeight), objc.Ptr(sourceGradient), objc.Ptr(zState), objc.Ptr(cellOutputFwd), objc.Ptr(descriptor), name) +// [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:"), objc.Ptr(tensor), splitSizes, axis, 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:"), objc.Ptr(tensor), objc.Ptr(splitSizesTensor), axis, name) +// [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:"), objc.Ptr(tensor), rate, name) return rv } @@ -829,41 +1482,40 @@ func (g_ Graph) TopKWithGradientTensorSourceKTensorName(gradient ITensor, source // [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:"), objc.Ptr(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:"), objc.Ptr(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:"), objc.Ptr(primaryTensor), objc.Ptr(secondaryTensor), 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/3564690-readvariable?language=objc -func (g_ Graph) ReadVariableName(variable ITensor, name string) Tensor { - rv := objc.Call[Tensor](g_, objc.Sel("readVariable:name:"), objc.Ptr(variable), 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:"), objc.Ptr(numberOfIterations), initialBodyArguments, body, 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:"), objc.Ptr(gradient), objc.Ptr(source), objc.Ptr(alphaTensor), 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:"), objc.Ptr(commandBuffer), feeds, targetOperations, resultsDictionary, objc.Ptr(executionDescriptor)) } // [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:"), objc.Ptr(tensor), 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:"), objc.Ptr(tensor), name) return rv } @@ -877,160 +1529,153 @@ func (g_ Graph) NormalizationGradientWithIncomingGradientTensorSourceTensorMeanT // [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:"), objc.Ptr(source), objc.Ptr(weights), objc.Ptr(descriptor), 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:"), objc.Ptr(gradient), objc.Ptr(source), 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:"), objc.Ptr(tensor), objc.Ptr(tensor2), dimensionIndex, 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:"), objc.Ptr(tensor), objc.Ptr(axisTensor), 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/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:"), objc.Ptr(indicesTensor), depth, name) +// [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:"), objc.Ptr(tensor), axes, 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) +// [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:"), objc.Ptr(predicateTensor), thenBlock, elseBlock, 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:"), objc.Ptr(tensor), axes, name) +// [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:"), objc.Ptr(source), objc.Ptr(recurrentWeight), objc.Ptr(sourceGradient), objc.Ptr(zState), objc.Ptr(inputWeight), objc.Ptr(bias), objc.Ptr(initState), objc.Ptr(descriptor), 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:"), objc.Ptr(tensor), axis, 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:"), objc.Ptr(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:"), objc.Ptr(tensor), 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:"), objc.Ptr(source), objc.Ptr(recurrentWeight), objc.Ptr(sourceGradient), objc.Ptr(zState), objc.Ptr(initState), objc.Ptr(descriptor), 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:"), objc.Ptr(primaryTensor), objc.Ptr(secondaryTensor), 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:"), objc.Ptr(sourceTensor), objc.Ptr(labelsTensor), axis, reductionType, 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:"), objc.Ptr(tensor), 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:"), objc.Ptr(updatesTensor), objc.Ptr(indicesTensor), shape, batchDimensions, mode, 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:"), objc.Ptr(source), objc.Ptr(descriptor), 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:"), objc.Ptr(tensor), axis, 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, objc.Ptr(executionDescriptor)) +// [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:"), objc.Ptr(tensor), name) + return rv } // [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:"), objc.Ptr(commandQueueObject), feeds, targetOperations, resultsDictionary, objc.Ptr(executionDescriptor)) +// [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:"), objc.Ptr(tensor), axes, 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:"), objc.Ptr(lowerBound), objc.Ptr(upperBound), objc.Ptr(step), initialBodyArguments, body, 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:"), objc.Ptr(updatesTensor), objc.Ptr(indicesTensor), axis, batchDimensions, 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:"), objc.Ptr(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:"), objc.Ptr(incomingGradientTensor), objc.Ptr(sourceTensor), paddingMode, leftPadding, rightPadding, 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:"), objc.Ptr(gradient), objc.Ptr(source), 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:"), objc.Ptr(tensor), name) return rv } // [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:"), objc.Ptr(inputGradientTensor), objc.Ptr(fwdInShapeTensor), starts, ends, strides, name) +// [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:"), objc.Ptr(tensor), objc.Ptr(widthAxisTensor), objc.Ptr(heightAxisTensor), objc.Ptr(depthAxisTensor), blockSize, usePixelShuffleOrder, 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:"), objc.Ptr(source), objc.Ptr(descriptor), 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:"), objc.Ptr(variable), 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/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:"), objc.Ptr(indicesTensor), depth, dataType, 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:"), objc.Ptr(tensor), objc.Ptr(shapeTensor), name) +// [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, objc.Ptr(state), name) return rv } @@ -1044,592 +1689,594 @@ func (g_ Graph) MatrixMultiplicationWithPrimaryTensorSecondaryTensorName(primary // [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) +// [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:"), objc.Ptr(tensor), shape, 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:"), objc.Ptr(primaryTensor), objc.Ptr(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:"), objc.Ptr(incomingGradient), objc.Ptr(source), outputShape, objc.Ptr(descriptor), name) return rv } // [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:"), objc.Ptr(updatesTensor), objc.Ptr(indicesTensor), axis, batchDimensions, 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:"), objc.Ptr(tensor), name) return rv } // [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:"), objc.Ptr(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:"), objc.Ptr(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:"), objc.Ptr(gradient), objc.Ptr(source), objc.Ptr(descriptor), name) +// [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:"), objc.Ptr(commandBuffer), feeds, targetTensors, targetOperations, objc.Ptr(executionDescriptor)) 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:"), objc.Ptr(tensor), axis, 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:"), objc.Ptr(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/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:"), objc.Ptr(tensor), axes, 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:"), objc.Ptr(tensor), 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:"), objc.Ptr(gradientTensor), objc.Ptr(sourceTensor), objc.Ptr(labelsTensor), axis, reductionType, 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/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) 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:"), objc.Ptr(tensor), name) +// [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:"), objc.Ptr(tensor), axes, 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:"), objc.Ptr(source), objc.Ptr(weights), objc.Ptr(outputShape), objc.Ptr(descriptor), 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, objc.Ptr(descriptor), 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:"), objc.Ptr(primaryTensor), objc.Ptr(secondaryTensor), 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:"), objc.Ptr(source), objc.Ptr(recurrentWeight), objc.Ptr(sourceGradient), objc.Ptr(zState), objc.Ptr(cellOutputFwd), objc.Ptr(descriptor), 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:"), objc.Ptr(tensor), name) +// [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:"), objc.Ptr(tensor), objc.Ptr(meanTensor), axes, name) 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:"), objc.Ptr(source), objc.Ptr(descriptor), name) +// [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:"), objc.Ptr(tensor), axis, 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:"), objc.Ptr(shapeTensor), objc.Ptr(descriptor), name) +// [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:"), objc.Ptr(tensor), axis, 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/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:"), objc.Ptr(source), objc.Ptr(recurrentWeight), objc.Ptr(inputWeight), objc.Ptr(bias), objc.Ptr(initState), objc.Ptr(initCell), objc.Ptr(descriptor), 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) +// [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:"), objc.Ptr(source), objc.Ptr(descriptor), 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:"), objc.Ptr(gradient), objc.Ptr(source), objc.Ptr(descriptor), name) +// [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:"), objc.Ptr(tensor), objc.Ptr(axesTensor), 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:"), objc.Ptr(gradient), objc.Ptr(input), mode, centerResult, alignCorners, layout, 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:"), objc.Ptr(dataTensor), objc.Ptr(updatesTensor), objc.Ptr(indicesTensor), batchDimensions, mode, name) return rv } // [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) +// [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:"), objc.Ptr(primaryTensor), objc.Ptr(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:"), objc.Ptr(primaryTensor), objc.Ptr(secondaryTensor), name) +// [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:"), objc.Ptr(source), objc.Ptr(recurrentWeight), objc.Ptr(inputWeight), objc.Ptr(bias), objc.Ptr(initState), objc.Ptr(mask), objc.Ptr(descriptor), 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:"), objc.Ptr(primaryTensor), tensors, 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:"), objc.Ptr(primaryTensor), objc.Ptr(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:"), objc.Ptr(tensor), 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, objc.Ptr(shapeTensor), 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:"), objc.Ptr(tensor), name) +// [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:"), objc.Ptr(source), objc.Ptr(recurrentWeight), objc.Ptr(sourceGradient), objc.Ptr(zState), objc.Ptr(cellOutputFwd), objc.Ptr(stateGradient), objc.Ptr(cellGradient), objc.Ptr(inputWeight), objc.Ptr(bias), objc.Ptr(initState), objc.Ptr(initCell), objc.Ptr(mask), objc.Ptr(peephole), objc.Ptr(descriptor), 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:"), objc.Ptr(tensor), name) +// [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:"), objc.Ptr(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:"), objc.Ptr(primaryTensor), objc.Ptr(secondaryTensor), name) +// [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:"), objc.Ptr(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:"), objc.Ptr(tensor), 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, objc.Ptr(updatesTensor), objc.Ptr(indicesTensor), 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:"), objc.Ptr(source), objc.Ptr(weights), objc.Ptr(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:"), objc.Ptr(tensor), 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:"), objc.Ptr(source), objc.Ptr(kTensor), 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/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:"), objc.Ptr(updatesTensor), objc.Ptr(indicesTensor), batchDimensions, 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:"), objc.Ptr(incomingGradient), objc.Ptr(weights), objc.Ptr(outputShape), objc.Ptr(forwardConvolutionDescriptor), 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, objc.Ptr(executionDescriptor)) +// [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:"), objc.Ptr(tensor), 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:"), objc.Ptr(primaryTensor), objc.Ptr(secondaryTensor), 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:"), objc.Ptr(axisTensor), objc.Ptr(dataTensor), objc.Ptr(updatesTensor), objc.Ptr(indicesTensor), mode, 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:"), objc.Ptr(tensor), name) +// [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:"), objc.Ptr(inputTensor), objc.Ptr(numLowerTensor), objc.Ptr(numUpperTensor), 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:"), objc.Ptr(tensor), rate, 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, objc.Ptr(executionDescriptor)) 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:"), objc.Ptr(source), objc.Ptr(recurrentWeight), objc.Ptr(initState), objc.Ptr(descriptor), 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:"), objc.Ptr(tensor), objc.Ptr(splitSizesTensor), axis, 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:"), objc.Ptr(primaryTensor), objc.Ptr(secondaryTensor), 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:"), objc.Ptr(predicateTensor), objc.Ptr(truePredicateTensor), objc.Ptr(falseSelectTensor), 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:"), objc.Ptr(tensor), name) +// [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:"), objc.Ptr(source), objc.Ptr(recurrentWeight), objc.Ptr(inputWeight), objc.Ptr(bias), objc.Ptr(initState), objc.Ptr(descriptor), 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/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:"), objc.Ptr(indicesTensor), depth, axis, dataType, onValue, offValue, 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:"), objc.Ptr(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:"), objc.Ptr(primaryTensor), objc.Ptr(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:"), objc.Ptr(tensor), 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:"), objc.Ptr(primaryTensor), objc.Ptr(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:"), objc.Ptr(tensor), name) +// [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:"), objc.Ptr(tensor), starts, ends, strides, 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) +// [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:"), objc.Ptr(shapeTensor), objc.Ptr(state), 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:"), objc.Ptr(primaryTensor), objc.Ptr(secondaryTensor), 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:"), objc.Ptr(learningRateTensor), objc.Ptr(variable), objc.Ptr(gradientTensor), 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:"), objc.Ptr(dataTensor), objc.Ptr(updatesTensor), objc.Ptr(indicesTensor), axis, mode, 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:"), objc.Ptr(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:"), objc.Ptr(primaryTensor), objc.Ptr(secondaryTensor), 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:"), objc.Ptr(primaryTensor), objc.Ptr(secondaryTensor), name) 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:"), objc.Ptr(tensor), name) +// [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:"), objc.Ptr(incomingGradient), objc.Ptr(source), outputShape, objc.Ptr(descriptor), 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:"), objc.Ptr(primaryTensor), objc.Ptr(secondaryTensor), name) +// [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:"), objc.Ptr(incomingGradient), objc.Ptr(weights), outputShape, objc.Ptr(forwardConvolutionDescriptor), name) 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:"), objc.Ptr(tensor), axes, 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:"), objc.Ptr(tensor), axes, 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:"), objc.Ptr(tensor), 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:"), objc.Ptr(tensor), 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:"), objc.Ptr(primaryTensor), objc.Ptr(secondaryTensor), name) +// [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:"), objc.Ptr(shapeTensor), seed, 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:"), objc.Ptr(tensor), name) +// [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, objc.Ptr(descriptor), seed, 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:"), objc.Ptr(source), objc.Ptr(weights), objc.Ptr(descriptor), 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 float64, name string) Tensor { + rv := objc.Call[Tensor](g_, objc.Sel("normalizationWithTensor:meanTensor:varianceTensor:gammaTensor:betaTensor:epsilon:name:"), objc.Ptr(tensor), objc.Ptr(mean), objc.Ptr(variance), objc.Ptr(gamma), objc.Ptr(beta), epsilon, 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:"), objc.Ptr(tensor), axes, name) +// [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) 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:"), objc.Ptr(incomingGradientTensor), objc.Ptr(sourceTensor), paddingMode, leftPadding, rightPadding, 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:"), objc.Ptr(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 float64, name string) Tensor { - rv := objc.Call[Tensor](g_, objc.Sel("normalizationWithTensor:meanTensor:varianceTensor:gammaTensor:betaTensor:epsilon:name:"), objc.Ptr(tensor), objc.Ptr(mean), objc.Ptr(variance), objc.Ptr(gamma), objc.Ptr(beta), epsilon, name) +// [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) return rv } // [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:"), objc.Ptr(primaryTensor), objc.Ptr(secondaryTensor), name) +// [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:"), objc.Ptr(incomingGradient), objc.Ptr(source), outputShape, objc.Ptr(forwardConvolutionDescriptor), 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:"), objc.Ptr(source), objc.Ptr(recurrentWeight), objc.Ptr(sourceGradient), objc.Ptr(zState), objc.Ptr(initState), objc.Ptr(descriptor), 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/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:"), objc.Ptr(commandBuffer), feeds, targetOperations, resultsDictionary, objc.Ptr(executionDescriptor)) +// [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:"), objc.Ptr(tensor), objc.Ptr(axisTensor), 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:"), objc.Ptr(device), feeds, targetTensors, targetOperations, objc.Ptr(compilationDescriptor)) +// [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:"), objc.Ptr(gradient), objc.Ptr(source), objc.Ptr(outputShapeTensor), objc.Ptr(forwardConvolutionDescriptor), 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:"), objc.Ptr(learningRateTensor), objc.Ptr(valuesTensor), objc.Ptr(gradientTensor), 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, objc.Ptr(dataTensor), objc.Ptr(updatesTensor), objc.Ptr(indicesTensor), mode, 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:"), objc.Ptr(tensor), name) +// [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:"), objc.Ptr(incomingGradientTensor), objc.Ptr(source), outputShape, objc.Ptr(forwardConvolutionDescriptor), 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:"), objc.Ptr(tensor), 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:"), objc.Ptr(gradient), objc.Ptr(input), mode, centerResult, alignCorners, layout, 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:"), objc.Ptr(tensor), name) +// [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, objc.Ptr(executionDescriptor)) 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:"), objc.Ptr(tensor), name) +// [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:"), objc.Ptr(commandQueueObject), feeds, targetTensors, targetOperations, objc.Ptr(executionDescriptor)) 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:"), objc.Ptr(primaryTensor), objc.Ptr(secondaryTensor), 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:"), objc.Ptr(primaryTensor), objc.Ptr(secondaryTensor), 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:"), objc.Ptr(tensor), starts, ends, strides, 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/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:"), objc.Ptr(primaryTensor), objc.Ptr(secondaryTensor), 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:"), objc.Ptr(gradient), objc.Ptr(source), objc.Ptr(descriptor), 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:"), objc.Ptr(primaryTensor), objc.Ptr(secondaryTensor), 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:"), objc.Ptr(gradient), objc.Ptr(source), axis, 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:"), objc.Ptr(incomingGradientTensor), objc.Ptr(sourceTensor), axes, 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:"), objc.Ptr(tensor), 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:"), objc.Ptr(tensor), 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:"), objc.Ptr(incomingGradientTensor), objc.Ptr(source), objc.Ptr(outputShape), objc.Ptr(forwardConvolutionDescriptor), 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/3564586-sinwithtensor?language=objc +func (g_ Graph) SinWithTensorName(tensor ITensor, name string) Tensor { + rv := objc.Call[Tensor](g_, objc.Sel("sinWithTensor:name:"), objc.Ptr(tensor), 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:"), objc.Ptr(gradientTensor), objc.Ptr(sourceTensor), objc.Ptr(labelsTensor), axis, reductionType, 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:"), objc.Ptr(tensor), dimensionIndex, dimensionIndex2, 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:"), objc.Ptr(tensor), axis, 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:"), objc.Ptr(tensor), name) return rv } // [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:"), objc.Ptr(tensor), objc.Ptr(tensor2), dimensionIndex, 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:"), objc.Ptr(primaryTensor), objc.Ptr(secondaryTensor), name) return rv } @@ -1643,121 +2290,129 @@ func (g_ Graph) L2NormPooling4DWithSourceTensorDescriptorName(source ITensor, de // [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:"), objc.Ptr(axisTensor), objc.Ptr(updatesTensor), objc.Ptr(indicesTensor), 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/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:"), objc.Ptr(axisTensor), objc.Ptr(dataTensor), objc.Ptr(updatesTensor), objc.Ptr(indicesTensor), 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:"), objc.Ptr(tensor), 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:"), objc.Ptr(tensor), dimensionIndex, dimensionIndex2, name) +// [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:"), objc.Ptr(indicesTensor), depth, axis, dataType, 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:"), objc.Ptr(tensor), objc.Ptr(shapeTensor), 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/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:"), objc.Ptr(gradient), objc.Ptr(source), axis, name) +// [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:"), objc.Ptr(tensor), objc.Ptr(alphaTensor), 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:"), objc.Ptr(tensor), objc.Ptr(minValueTensor), objc.Ptr(maxValueTensor), name) +// [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:"), objc.Ptr(inputGradientTensor), objc.Ptr(fwdInShapeTensor), starts, ends, strides, startMask, endMask, squeezeMask, 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:"), objc.Ptr(gradient), objc.Ptr(source), objc.Ptr(descriptor), 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/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:"), objc.Ptr(tensor), axes, name) +// [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:"), objc.Ptr(source), objc.Ptr(recurrentWeight), objc.Ptr(sourceGradient), objc.Ptr(zState), objc.Ptr(cellOutputFwd), objc.Ptr(inputWeight), objc.Ptr(bias), objc.Ptr(initState), objc.Ptr(initCell), objc.Ptr(descriptor), 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:"), objc.Ptr(primaryTensor), objc.Ptr(secondaryTensor), name) +// [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:"), objc.Ptr(source), objc.Ptr(recurrentWeight), objc.Ptr(sourceGradient), objc.Ptr(zState), objc.Ptr(cellOutputFwd), objc.Ptr(inputWeight), objc.Ptr(bias), objc.Ptr(initState), objc.Ptr(initCell), objc.Ptr(mask), objc.Ptr(descriptor), 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/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:"), objc.Ptr(axisTensor), objc.Ptr(updatesTensor), objc.Ptr(indicesTensor), shape, mode, 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:"), objc.Ptr(tensor), 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:"), objc.Ptr(tensor), objc.Ptr(shapeTensor), 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/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:"), objc.Ptr(source), objc.Ptr(descriptor), 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:"), objc.Ptr(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:"), objc.Ptr(primaryTensor), objc.Ptr(secondaryTensor), 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 float64, name string) Tensor { - rv := objc.Call[Tensor](g_, objc.Sel("normalizationGammaGradientWithIncomingGradientTensor:sourceTensor:meanTensor:varianceTensor:reductionAxes:epsilon:name:"), objc.Ptr(incomingGradientTensor), objc.Ptr(sourceTensor), objc.Ptr(meanTensor), objc.Ptr(varianceTensor), axes, epsilon, name) +// [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:"), objc.Ptr(tensor), shape, 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:"), objc.Ptr(tensor), axis, name) +// [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:"), objc.Ptr(tensor), objc.Ptr(widthAxisTensor), objc.Ptr(heightAxisTensor), objc.Ptr(depthAxisTensor), blockSize, usePixelShuffleOrder, 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:"), objc.Ptr(tensor), axes, name) return rv } diff --git a/macos/mpsgraph/lstm_descriptor.gen.go b/macos/mpsgraph/lstm_descriptor.gen.go index 7414e3c3..76a546dd 100644 --- a/macos/mpsgraph/lstm_descriptor.gen.go +++ b/macos/mpsgraph/lstm_descriptor.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package mpsgraph @@ -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] @@ -70,10 +70,6 @@ func (lc _LSTMDescriptorClass) Alloc() LSTMDescriptor { return rv } -func LSTMDescriptor_Alloc() LSTMDescriptor { - return LSTMDescriptorClass.Alloc() -} - func (lc _LSTMDescriptorClass) New() LSTMDescriptor { rv := objc.Call[LSTMDescriptor](lc, objc.Sel("new")) rv.Autorelease() @@ -89,36 +85,6 @@ func (l_ LSTMDescriptor) Init() LSTMDescriptor { return rv } -// [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")) - 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] -// -// [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/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/3925444-producecell?language=objc @@ -134,36 +100,6 @@ 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/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/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/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/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/3925441-forgetgatelast?language=objc @@ -209,6 +145,36 @@ 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/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/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/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/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/3925445-reverse?language=objc @@ -238,3 +204,33 @@ func (l_ LSTMDescriptor) InputGateActivation() RNNActivation { func (l_ LSTMDescriptor) SetInputGateActivation(value RNNActivation) { objc.Call[objc.Void](l_, objc.Sel("setInputGateActivation:"), 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")) + 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] +// +// [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/3925446-training?language=objc +func (l_ LSTMDescriptor) SetTraining(value bool) { + objc.Call[objc.Void](l_, objc.Sel("setTraining:"), value) +} diff --git a/macos/mpsgraph/operation.gen.go b/macos/mpsgraph/operation.gen.go index a722d339..f280fad0 100644 --- a/macos/mpsgraph/operation.gen.go +++ b/macos/mpsgraph/operation.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package mpsgraph @@ -18,11 +18,11 @@ type _OperationClass struct { // An interface definition for the [Operation] class. type IOperation interface { objc.IObject - Name() string - ControlDependencies() []Operation - InputTensors() []Tensor - Graph() Graph OutputTensors() []Tensor + Graph() Graph + InputTensors() []Tensor + ControlDependencies() []Operation + Name() string } // [Full Topic] @@ -43,10 +43,6 @@ func (oc _OperationClass) Alloc() Operation { return rv } -func Operation_Alloc() Operation { - return OperationClass.Alloc() -} - func (oc _OperationClass) New() Operation { rv := objc.Call[Operation](oc, objc.Sel("new")) rv.Autorelease() @@ -64,17 +60,17 @@ func (o_ Operation) Init() Operation { // [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 } // [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 } @@ -88,16 +84,16 @@ func (o_ Operation) InputTensors() []Tensor { // [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 } // [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 } diff --git a/macos/mpsgraph/pooling2_d_op_descriptor.gen.go b/macos/mpsgraph/pooling2_d_op_descriptor.gen.go index 591acab2..d954d59f 100644 --- a/macos/mpsgraph/pooling2_d_op_descriptor.gen.go +++ b/macos/mpsgraph/pooling2_d_op_descriptor.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package mpsgraph @@ -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) - PaddingStyle() PaddingStyle - SetPaddingStyle(value PaddingStyle) + DilationRateInY() uint + SetDilationRateInY(value uint) PaddingBottom() uint SetPaddingBottom(value uint) + IncludeZeroPadToAverage() bool + SetIncludeZeroPadToAverage(value bool) + KernelHeight() uint + SetKernelHeight(value uint) PaddingTop() uint SetPaddingTop(value uint) - 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) + DilationRateInX() uint + SetDilationRateInX(value uint) + PaddingStyle() PaddingStyle + SetPaddingStyle(value PaddingStyle) + CeilMode() bool + SetCeilMode(value bool) + PaddingLeft() uint + SetPaddingLeft(value uint) + ReturnIndicesDataType() mps.DataType + SetReturnIndicesDataType(value mps.DataType) } // [Full Topic] @@ -67,6 +67,18 @@ 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 @@ -84,10 +96,6 @@ func (pc _Pooling2DOpDescriptorClass) Alloc() Pooling2DOpDescriptor { return rv } -func Pooling2DOpDescriptor_Alloc() Pooling2DOpDescriptor { - return Pooling2DOpDescriptorClass.Alloc() -} - func (pc _Pooling2DOpDescriptorClass) New() Pooling2DOpDescriptor { rv := objc.Call[Pooling2DOpDescriptor](pc, objc.Sel("new")) rv.Autorelease() @@ -112,122 +120,122 @@ func (p_ Pooling2DOpDescriptor) SetExplicitPaddingWithPaddingLeftPaddingRightPad // [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/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/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/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/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/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/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/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/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/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/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/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/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/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/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/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/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/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/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/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/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/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/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/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/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/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/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/3564721-paddingtop?language=objc +func (p_ Pooling2DOpDescriptor) SetPaddingTop(value uint) { + objc.Call[objc.Void](p_, objc.Sel("setPaddingTop:"), value) } // [Full Topic] @@ -262,90 +270,90 @@ func (p_ Pooling2DOpDescriptor) SetDataLayout(value TensorNamedDataLayout) { // [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) } // [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/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/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/3564713-dilationrateinx?language=objc +func (p_ Pooling2DOpDescriptor) SetDilationRateInX(value uint) { + objc.Call[objc.Void](p_, objc.Sel("setDilationRateInX:"), 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/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/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/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/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/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/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/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/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/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) } diff --git a/macos/mpsgraph/pooling4_d_op_descriptor.gen.go b/macos/mpsgraph/pooling4_d_op_descriptor.gen.go index abee42b1..0cbd41d0 100644 --- a/macos/mpsgraph/pooling4_d_op_descriptor.gen.go +++ b/macos/mpsgraph/pooling4_d_op_descriptor.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package mpsgraph @@ -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,13 +65,21 @@ func Pooling4DOpDescriptor_DescriptorWithKernelSizesPaddingStyle(kernelSizes []f return Pooling4DOpDescriptorClass.DescriptorWithKernelSizesPaddingStyle(kernelSizes, paddingStyle) } -func (pc _Pooling4DOpDescriptorClass) Alloc() Pooling4DOpDescriptor { - rv := objc.Call[Pooling4DOpDescriptor](pc, objc.Sel("alloc")) +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 } -func Pooling4DOpDescriptor_Alloc() Pooling4DOpDescriptor { - return Pooling4DOpDescriptorClass.Alloc() +// [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 } func (pc _Pooling4DOpDescriptorClass) New() Pooling4DOpDescriptor { @@ -91,62 +99,62 @@ func (p_ Pooling4DOpDescriptor) Init() Pooling4DOpDescriptor { // [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/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/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/3750705-strides?language=objc +func (p_ Pooling4DOpDescriptor) SetStrides(value []foundation.INumber) { + objc.Call[objc.Void](p_, objc.Sel("setStrides:"), 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/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/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/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/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/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/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/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/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/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/3750702-kernelsizes?language=objc +func (p_ Pooling4DOpDescriptor) SetKernelSizes(value []foundation.INumber) { + objc.Call[objc.Void](p_, objc.Sel("setKernelSizes:"), value) } // [Full Topic] @@ -166,60 +174,60 @@ func (p_ Pooling4DOpDescriptor) SetDilationRates(value []foundation.INumber) { // [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/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/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/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/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/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/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/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/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/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/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/3750704-paddingvalues?language=objc +func (p_ Pooling4DOpDescriptor) SetPaddingValues(value []foundation.INumber) { + objc.Call[objc.Void](p_, objc.Sel("setPaddingValues:"), value) } // [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/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/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/3919747-returnindicesmode?language=objc +func (p_ Pooling4DOpDescriptor) SetReturnIndicesMode(value PoolingReturnIndicesMode) { + objc.Call[objc.Void](p_, objc.Sel("setReturnIndicesMode:"), value) } diff --git a/macos/mpsgraph/protocols.gen.m b/macos/mpsgraph/protocols.gen.m index b6720e1e..a7b57ee2 100644 --- a/macos/mpsgraph/protocols.gen.m +++ b/macos/mpsgraph/protocols.gen.m @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. #import "MetalPerformanceShadersGraph/MetalPerformanceShadersGraph.h" diff --git a/macos/mpsgraph/random_op_descriptor.gen.go b/macos/mpsgraph/random_op_descriptor.gen.go index 1b262e19..2166ac2f 100644 --- a/macos/mpsgraph/random_op_descriptor.gen.go +++ b/macos/mpsgraph/random_op_descriptor.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package mpsgraph @@ -19,24 +19,24 @@ type _RandomOpDescriptorClass struct { // An interface definition for the [RandomOpDescriptor] class. type IRandomOpDescriptor interface { objc.IObject - Distribution() RandomDistribution - SetDistribution(value RandomDistribution) + DataType() mps.DataType + SetDataType(value mps.DataType) + Mean() float64 + SetMean(value float64) + SamplingMethod() RandomNormalSamplingMethod + SetSamplingMethod(value RandomNormalSamplingMethod) MinInteger() int SetMinInteger(value int) Min() float64 SetMin(value float64) - Max() float64 - SetMax(value float64) + Distribution() RandomDistribution + SetDistribution(value RandomDistribution) StandardDeviation() float64 SetStandardDeviation(value float64) - DataType() mps.DataType - SetDataType(value mps.DataType) MaxInteger() int SetMaxInteger(value int) - SamplingMethod() RandomNormalSamplingMethod - SetSamplingMethod(value RandomNormalSamplingMethod) - Mean() float64 - SetMean(value float64) + Max() float64 + SetMax(value float64) } // [Full Topic] @@ -69,10 +69,6 @@ func (rc _RandomOpDescriptorClass) Alloc() RandomOpDescriptor { return rv } -func RandomOpDescriptor_Alloc() RandomOpDescriptor { - return RandomOpDescriptorClass.Alloc() -} - func (rc _RandomOpDescriptorClass) New() RandomOpDescriptor { rv := objc.Call[RandomOpDescriptor](rc, objc.Sel("new")) rv.Autorelease() @@ -90,17 +86,47 @@ func (r_ RandomOpDescriptor) Init() RandomOpDescriptor { // [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/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/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/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() float64 { + rv := objc.Call[float64](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 float64) { + 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")) + 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] @@ -135,17 +161,17 @@ func (r_ RandomOpDescriptor) SetMin(value float64) { // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshadersgraph/mpsgraphrandomopdescriptor/3901501-max?language=objc -func (r_ RandomOpDescriptor) Max() float64 { - rv := objc.Call[float64](r_, objc.Sel("max")) +// [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/3901501-max?language=objc -func (r_ RandomOpDescriptor) SetMax(value float64) { - objc.Call[objc.Void](r_, objc.Sel("setMax:"), 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] @@ -163,21 +189,6 @@ func (r_ RandomOpDescriptor) SetStandardDeviation(value float64) { 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 @@ -195,30 +206,15 @@ func (r_ RandomOpDescriptor) SetMaxInteger(value int) { // [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")) - 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] -// -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshadersgraph/mpsgraphrandomopdescriptor/3901503-mean?language=objc -func (r_ RandomOpDescriptor) Mean() float64 { - rv := objc.Call[float64](r_, objc.Sel("mean")) +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshadersgraph/mpsgraphrandomopdescriptor/3901501-max?language=objc +func (r_ RandomOpDescriptor) Max() float64 { + rv := objc.Call[float64](r_, objc.Sel("max")) return rv } // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshadersgraph/mpsgraphrandomopdescriptor/3901503-mean?language=objc -func (r_ RandomOpDescriptor) SetMean(value float64) { - objc.Call[objc.Void](r_, objc.Sel("setMean:"), value) +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshadersgraph/mpsgraphrandomopdescriptor/3901501-max?language=objc +func (r_ RandomOpDescriptor) SetMax(value float64) { + objc.Call[objc.Void](r_, objc.Sel("setMax:"), value) } diff --git a/macos/mpsgraph/shaped_type.gen.go b/macos/mpsgraph/shaped_type.gen.go index e712eceb..acbb32d7 100644 --- a/macos/mpsgraph/shaped_type.gen.go +++ b/macos/mpsgraph/shaped_type.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package mpsgraph @@ -21,10 +21,10 @@ type _ShapedTypeClass struct { type IShapedType interface { IType IsEqualTo(object IShapedType) bool - Shape() *foundation.Array - SetShape(value *foundation.Array) DataType() mps.DataType SetDataType(value mps.DataType) + Shape() *foundation.Array + SetShape(value *foundation.Array) } // [Full Topic] @@ -59,10 +59,6 @@ func (sc _ShapedTypeClass) Alloc() ShapedType { return rv } -func ShapedType_Alloc() ShapedType { - return ShapedTypeClass.Alloc() -} - func (sc _ShapedTypeClass) New() ShapedType { rv := objc.Call[ShapedType](sc, objc.Sel("new")) rv.Autorelease() @@ -88,30 +84,30 @@ func (s_ ShapedType) IsEqualTo(object IShapedType) bool { // [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) } // [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) } diff --git a/macos/mpsgraph/single_gate_rnn_descriptor.gen.go b/macos/mpsgraph/single_gate_rnn_descriptor.gen.go index 3de32c73..5529ccd3 100644 --- a/macos/mpsgraph/single_gate_rnn_descriptor.gen.go +++ b/macos/mpsgraph/single_gate_rnn_descriptor.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package mpsgraph @@ -18,12 +18,12 @@ type _SingleGateRNNDescriptorClass struct { // An interface definition for the [SingleGateRNNDescriptor] class. type ISingleGateRNNDescriptor interface { objc.IObject - Activation() RNNActivation - SetActivation(value RNNActivation) - Training() bool - SetTraining(value bool) Bidirectional() bool SetBidirectional(value bool) + Training() bool + SetTraining(value bool) + Activation() RNNActivation + SetActivation(value RNNActivation) Reverse() bool SetReverse(value bool) } @@ -58,10 +58,6 @@ func (sc _SingleGateRNNDescriptorClass) Alloc() SingleGateRNNDescriptor { return rv } -func SingleGateRNNDescriptor_Alloc() SingleGateRNNDescriptor { - return SingleGateRNNDescriptorClass.Alloc() -} - func (sc _SingleGateRNNDescriptorClass) New() SingleGateRNNDescriptor { rv := objc.Call[SingleGateRNNDescriptor](sc, objc.Sel("new")) rv.Autorelease() @@ -79,17 +75,17 @@ func (s_ SingleGateRNNDescriptor) Init() SingleGateRNNDescriptor { // [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] @@ -109,17 +105,17 @@ func (s_ SingleGateRNNDescriptor) SetTraining(value bool) { // [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] diff --git a/macos/mpsgraph/stencil_op_descriptor.gen.go b/macos/mpsgraph/stencil_op_descriptor.gen.go index 333ebb15..4fb159f0 100644 --- a/macos/mpsgraph/stencil_op_descriptor.gen.go +++ b/macos/mpsgraph/stencil_op_descriptor.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package mpsgraph @@ -19,22 +19,22 @@ type _StencilOpDescriptorClass struct { // An interface definition for the [StencilOpDescriptor] class. type IStencilOpDescriptor interface { objc.IObject - PaddingConstant() float64 - SetPaddingConstant(value float64) - Offsets() *foundation.Array - SetOffsets(value *foundation.Array) + Strides() *foundation.Array + SetStrides(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() float64 + SetPaddingConstant(value float64) + Offsets() *foundation.Array + SetOffsets(value *foundation.Array) ReductionMode() ReductionMode SetReductionMode(value ReductionMode) - Strides() *foundation.Array - SetStrides(value *foundation.Array) + DilationRates() *foundation.Array + SetDilationRates(value *foundation.Array) } // [Full Topic] @@ -62,28 +62,28 @@ func StencilOpDescriptor_DescriptorWithOffsetsExplicitPadding(offsets *foundatio return StencilOpDescriptorClass.DescriptorWithOffsetsExplicitPadding(offsets, 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 float64) 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 float64) StencilOpDescriptor { + return StencilOpDescriptorClass.DescriptorWithReductionModeOffsetsStridesDilationRatesExplicitPaddingBoundaryModePaddingStylePaddingConstant(reductionMode, offsets, strides, dilationRates, explicitPadding, boundaryMode, paddingStyle, paddingConstant) } -func (sc _StencilOpDescriptorClass) DescriptorWithReductionModeOffsetsStridesDilationRatesExplicitPaddingBoundaryModePaddingStylePaddingConstant(reductionMode ReductionMode, offsets *foundation.Array, strides *foundation.Array, dilationRates *foundation.Array, explicitPadding *foundation.Array, boundaryMode PaddingMode, paddingStyle PaddingStyle, paddingConstant float64) 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 float64) 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) DescriptorWithPaddingStyle(paddingStyle PaddingStyle) StencilOpDescriptor { @@ -103,10 +103,6 @@ func (sc _StencilOpDescriptorClass) Alloc() StencilOpDescriptor { return rv } -func StencilOpDescriptor_Alloc() StencilOpDescriptor { - return StencilOpDescriptorClass.Alloc() -} - func (sc _StencilOpDescriptorClass) New() StencilOpDescriptor { rv := objc.Call[StencilOpDescriptor](sc, objc.Sel("new")) rv.Autorelease() @@ -124,32 +120,17 @@ func (s_ StencilOpDescriptor) Init() StencilOpDescriptor { // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshadersgraph/mpsgraphstencilopdescriptor/3787615-paddingconstant?language=objc -func (s_ StencilOpDescriptor) PaddingConstant() float64 { - rv := objc.Call[float64](s_, objc.Sel("paddingConstant")) - return rv -} - -// [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshadersgraph/mpsgraphstencilopdescriptor/3787615-paddingconstant?language=objc -func (s_ StencilOpDescriptor) SetPaddingConstant(value float64) { - objc.Call[objc.Void](s_, objc.Sel("setPaddingConstant:"), 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/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/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/3787618-strides?language=objc +func (s_ StencilOpDescriptor) SetStrides(value *foundation.Array) { + objc.Call[objc.Void](s_, objc.Sel("setStrides:"), value) } // [Full Topic] @@ -167,21 +148,6 @@ 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/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/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/3787613-explicitpadding?language=objc @@ -212,6 +178,36 @@ func (s_ StencilOpDescriptor) SetBoundaryMode(value PaddingMode) { objc.Call[objc.Void](s_, objc.Sel("setBoundaryMode:"), value) } +// [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshadersgraph/mpsgraphstencilopdescriptor/3787615-paddingconstant?language=objc +func (s_ StencilOpDescriptor) PaddingConstant() float64 { + rv := objc.Call[float64](s_, objc.Sel("paddingConstant")) + return rv +} + +// [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/metalperformanceshadersgraph/mpsgraphstencilopdescriptor/3787615-paddingconstant?language=objc +func (s_ StencilOpDescriptor) SetPaddingConstant(value float64) { + objc.Call[objc.Void](s_, objc.Sel("setPaddingConstant:"), 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")) + 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] // // [Full Topic]: https://developer.apple.com/documentation/metalperformanceshadersgraph/mpsgraphstencilopdescriptor/3787617-reductionmode?language=objc @@ -229,15 +225,15 @@ func (s_ StencilOpDescriptor) SetReductionMode(value ReductionMode) { // [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/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/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/3787612-dilationrates?language=objc +func (s_ StencilOpDescriptor) SetDilationRates(value *foundation.Array) { + objc.Call[objc.Void](s_, objc.Sel("setDilationRates:"), value) } diff --git a/macos/mpsgraph/tensor.gen.go b/macos/mpsgraph/tensor.gen.go index 4f6db15b..14ef5625 100644 --- a/macos/mpsgraph/tensor.gen.go +++ b/macos/mpsgraph/tensor.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package mpsgraph @@ -21,8 +21,8 @@ type _TensorClass struct { type ITensor interface { objc.IObject Shape() *foundation.Array - DataType() mps.DataType Operation() Operation + DataType() mps.DataType } // [Full Topic] @@ -43,10 +43,6 @@ func (tc _TensorClass) Alloc() Tensor { return rv } -func Tensor_Alloc() Tensor { - return TensorClass.Alloc() -} - func (tc _TensorClass) New() Tensor { rv := objc.Call[Tensor](tc, objc.Sel("new")) rv.Autorelease() @@ -72,16 +68,16 @@ func (t_ Tensor) Shape() *foundation.Array { // [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 } // [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 } diff --git a/macos/mpsgraph/tensor_data.gen.go b/macos/mpsgraph/tensor_data.gen.go index 30d90e63..4d614e12 100644 --- a/macos/mpsgraph/tensor_data.gen.go +++ b/macos/mpsgraph/tensor_data.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package mpsgraph @@ -40,31 +40,30 @@ func TensorDataFrom(ptr unsafe.Pointer) TensorData { } } -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) +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/3564676-initwithmtlbuffer?language=objc -func NewTensorDataWithMTLBufferShapeDataType(buffer metal.PBuffer, shape *foundation.Array, dataType mps.DataType) TensorData { - instance := TensorDataClass.Alloc().InitWithMTLBufferShapeDataType(buffer, shape, dataType) +// [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 } -func (t_ TensorData) InitWithMPSImageBatch(imageBatch *foundation.Array) TensorData { - rv := objc.Call[TensorData](t_, objc.Sel("initWithMPSImageBatch:"), imageBatch) +func (t_ TensorData) InitWithMPSVector(vector mps.IVector) TensorData { + rv := objc.Call[TensorData](t_, objc.Sel("initWithMPSVector:"), objc.Ptr(vector)) 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/3564675-initwithmpsvector?language=objc +func NewTensorDataWithMPSVector(vector mps.IVector) TensorData { + instance := TensorDataClass.Alloc().InitWithMPSVector(vector) instance.Autorelease() return instance } @@ -83,6 +82,21 @@ 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:"), objc.Ptr(device), data, shape, dataType) return rv @@ -97,6 +111,35 @@ 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:"), objc.Ptr(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:"), objc.Ptr(ndarray)) return rv @@ -111,16 +154,16 @@ func NewTensorDataWithMPSNDArray(ndarray mps.INDArray) TensorData { return instance } -func (t_ TensorData) InitWithMPSVector(vector mps.IVector) TensorData { - rv := objc.Call[TensorData](t_, objc.Sel("initWithMPSVector:"), objc.Ptr(vector)) +func (t_ TensorData) InitWithMPSVectorRank(vector mps.IVector, rank uint) TensorData { + rv := objc.Call[TensorData](t_, objc.Sel("initWithMPSVector:rank:"), objc.Ptr(vector), rank) 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/3667508-initwithmpsvector?language=objc +func NewTensorDataWithMPSVectorRank(vector mps.IVector, rank uint) TensorData { + instance := TensorDataClass.Alloc().InitWithMPSVectorRank(vector, rank) instance.Autorelease() return instance } @@ -130,10 +173,6 @@ func (tc _TensorDataClass) Alloc() TensorData { return rv } -func TensorData_Alloc() TensorData { - return TensorDataClass.Alloc() -} - func (tc _TensorDataClass) New() TensorData { rv := objc.Call[TensorData](tc, objc.Sel("new")) rv.Autorelease() diff --git a/macos/mpsgraph/type.gen.go b/macos/mpsgraph/type.gen.go index b5379534..f5df4fc5 100644 --- a/macos/mpsgraph/type.gen.go +++ b/macos/mpsgraph/type.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package mpsgraph @@ -38,10 +38,6 @@ func (tc _TypeClass) Alloc() Type { return rv } -func Type_Alloc() Type { - return TypeClass.Alloc() -} - func (tc _TypeClass) New() Type { rv := objc.Call[Type](tc, objc.Sel("new")) rv.Autorelease() diff --git a/macos/mpsgraph/variable_op.gen.go b/macos/mpsgraph/variable_op.gen.go index 49ccaaf8..c8058f50 100644 --- a/macos/mpsgraph/variable_op.gen.go +++ b/macos/mpsgraph/variable_op.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package mpsgraph @@ -20,8 +20,8 @@ type _VariableOpClass struct { // An interface definition for the [VariableOp] class. type IVariableOp interface { IOperation - Shape() *foundation.Array DataType() mps.DataType + Shape() *foundation.Array } // [Full Topic] @@ -42,10 +42,6 @@ func (vc _VariableOpClass) Alloc() VariableOp { return rv } -func VariableOp_Alloc() VariableOp { - return VariableOpClass.Alloc() -} - func (vc _VariableOpClass) New() VariableOp { rv := objc.Call[VariableOp](vc, objc.Sel("new")) rv.Autorelease() @@ -63,16 +59,16 @@ func (v_ VariableOp) Init() VariableOp { // [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 } // [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 } diff --git a/macos/quartz/aliastypes.gen.go b/macos/quartz/aliastypes.gen.go index 7b2a9209..498de92b 100644 --- a/macos/quartz/aliastypes.gen.go +++ b/macos/quartz/aliastypes.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package quartz diff --git a/macos/quartz/camera_device_view.gen.go b/macos/quartz/camera_device_view.gen.go index 235b07f1..73e32cbf 100644 --- a/macos/quartz/camera_device_view.gen.go +++ b/macos/quartz/camera_device_view.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package quartz @@ -20,46 +20,46 @@ type _CameraDeviceViewClass struct { // An interface definition for the [CameraDeviceView] class. type ICameraDeviceView interface { appkit.IView - SetShowStatusInfoAsWindowSubtitle(value bool) + SelectedIndexes() foundation.IndexSet + SetCustomDeleteControl(control appkit.ISegmentedControl) RotateRight(sender objc.IObject) objc.Object - SelectIndexesByExtendingSelection(indexes foundation.IIndexSet, extend bool) - SetCustomModeControl(control appkit.ISegmentedControl) + DownloadSelectedItems(sender objc.IObject) objc.Object + SetCustomRotateControl(control appkit.ISegmentedControl) + SetShowStatusInfoAsWindowSubtitle(value bool) DownloadAllItems(sender objc.IObject) objc.Object + SelectIndexesByExtendingSelection(indexes foundation.IIndexSet, extend bool) + SetCustomIconSizeSlider(slider appkit.ISlider) SetCustomActionControl(control appkit.ISegmentedControl) - RotateLeft(sender objc.IObject) objc.Object 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) + SetCustomModeControl(control appkit.ISegmentedControl) + RotateLeft(sender objc.IObject) objc.Object + CanDownloadSelectedItems() bool + Mode() CameraDeviceViewDisplayMode + SetMode(value CameraDeviceViewDisplayMode) DownloadSelectedControlLabel() string SetDownloadSelectedControlLabel(value string) - DisplaysDownloadsDirectoryControl() bool - SetDisplaysDownloadsDirectoryControl(value bool) - CanDownloadSelectedItems() bool + HasDisplayModeIcon() bool + SetHasDisplayModeIcon(value bool) + Delegate() CameraDeviceViewDelegateObject + SetDelegate(value PCameraDeviceViewDelegate) + SetDelegateObject(valueObject objc.IObject) + CanRotateSelectedItemsRight() bool + PostProcessApplication() foundation.URL + SetPostProcessApplication(value foundation.IURL) 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() CameraDeviceViewDelegateWrapper - 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) } @@ -82,10 +82,6 @@ func (cc _CameraDeviceViewClass) Alloc() CameraDeviceView { return rv } -func CameraDeviceView_Alloc() CameraDeviceView { - return CameraDeviceViewClass.Alloc() -} - func (cc _CameraDeviceViewClass) New() CameraDeviceView { rv := objc.Call[CameraDeviceView](cc, objc.Sel("new")) rv.Autorelease() @@ -115,11 +111,19 @@ 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/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/3852624-setcustomdeletecontrol?language=objc +func (c_ CameraDeviceView) SetCustomDeleteControl(control appkit.ISegmentedControl) { + objc.Call[objc.Void](c_, objc.Sel("setCustomDeleteControl:"), objc.Ptr(control)) } // Rotates the selected image to the right. [Full Topic] @@ -130,18 +134,26 @@ func (c_ CameraDeviceView) RotateRight(sender objc.IObject) objc.Object { return rv } -// Invoked to select the specified files, extending the selection if specified. [Full Topic] +// Deletes the selected items from the camera. [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:"), objc.Ptr(indexes), extend) +// [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] // -// [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:"), objc.Ptr(control)) +// [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:"), objc.Ptr(control)) +} + +// [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) } // Downloads all the items. [Full Topic] @@ -152,19 +164,25 @@ 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:"), objc.Ptr(indexes), extend) +} + // [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/quartz/ikcameradeviceview/3852623-setcustomactioncontrol?language=objc -func (c_ CameraDeviceView) SetCustomActionControl(control appkit.ISegmentedControl) { - objc.Call[objc.Void](c_, objc.Sel("setCustomActionControl:"), objc.Ptr(control)) +// [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:"), objc.Ptr(slider)) } -// 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) - return rv +// [Full Topic]: https://developer.apple.com/documentation/quartz/ikcameradeviceview/3852623-setcustomactioncontrol?language=objc +func (c_ CameraDeviceView) SetCustomActionControl(control appkit.ISegmentedControl) { + objc.Call[objc.Void](c_, objc.Sel("setCustomActionControl:"), objc.Ptr(control)) } // Deletes the currently selected items. [Full Topic] @@ -177,54 +195,40 @@ func (c_ CameraDeviceView) DeleteSelectedItems(sender objc.IObject) objc.Object // [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:"), objc.Ptr(control)) -} - -// [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:"), objc.Ptr(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:"), objc.Ptr(control)) +// [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:"), objc.Ptr(control)) } -// The selected indexes of the camera files. [Full Topic] +// Rotates the selected image to the left. [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")) +// [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 selected items from the camera. [Full Topic] +// Returns whether the selected items can be downloaded [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) +// [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 } -// 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) DownloadsDirectory() foundation.URL { - rv := objc.Call[foundation.URL](c_, objc.Sel("downloadsDirectory")) +// [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:"), objc.Ptr(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) } // Allows the “Download Selected” control to be renamed. [Full Topic] @@ -242,29 +246,67 @@ func (c_ CameraDeviceView) SetDownloadSelectedControlLabel(value string) { objc.Call[objc.Void](c_, objc.Sel("setDownloadSelectedControlLabel:"), value) } -// Specifies whether the downloads directory control should be displayed. [Full Topic] +// Returns whether the device view is being displayed in icon mode. [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/1504417-hasdisplaymodeicon?language=objc +func (c_ CameraDeviceView) HasDisplayModeIcon() bool { + rv := objc.Call[bool](c_, objc.Sel("hasDisplayModeIcon")) return rv } -// Specifies whether the downloads directory control should be displayed. [Full Topic] +// Returns whether the device view is being displayed in icon mode. [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/1504417-hasdisplaymodeicon?language=objc +func (c_ CameraDeviceView) SetHasDisplayModeIcon(value bool) { + objc.Call[objc.Void](c_, objc.Sel("setHasDisplayModeIcon:"), value) } -// Returns whether the selected items can be downloaded [Full Topic] +// The camera device view delegate. [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/1504315-delegate?language=objc +func (c_ CameraDeviceView) Delegate() CameraDeviceViewDelegateObject { + rv := objc.Call[CameraDeviceViewDelegateObject](c_, objc.Sel("delegate")) 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:"), objc.Ptr(valueObject)) +} + +// 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 +} + +// 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 +} + +// 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:"), objc.Ptr(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 @@ -288,34 +330,19 @@ func (c_ CameraDeviceView) SetDisplaysPostProcessApplicationControl(value bool) objc.Call[objc.Void](c_, objc.Sel("setDisplaysPostProcessApplicationControl:"), value) } -// Allows the “Download All” control to be renamed. [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")) - return rv -} - -// Allows the “Download All” control to be renamed. [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) -} - -// Specifies the icon size. [Full Topic] +// Specifies whether the downloads directory control should be displayed. [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/1505006-displaysdownloadsdirectorycontro?language=objc +func (c_ CameraDeviceView) DisplaysDownloadsDirectoryControl() bool { + rv := objc.Call[bool](c_, objc.Sel("displaysDownloadsDirectoryControl")) return rv } -// Specifies the icon size. [Full Topic] +// Specifies whether the downloads directory control should be displayed. [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/1505006-displaysdownloadsdirectorycontro?language=objc +func (c_ CameraDeviceView) SetDisplaysDownloadsDirectoryControl(value bool) { + objc.Call[objc.Void](c_, objc.Sel("setDisplaysDownloadsDirectoryControl:"), value) } // Determines how the contents are saved by the delegate. [Full Topic] @@ -333,88 +360,57 @@ func (c_ CameraDeviceView) SetTransferMode(value CameraDeviceViewTransferMode) { objc.Call[objc.Void](c_, objc.Sel("setTransferMode:"), value) } -// The camera device view delegate. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/quartz/ikcameradeviceview/1504315-delegate?language=objc -func (c_ CameraDeviceView) Delegate() CameraDeviceViewDelegateWrapper { - rv := objc.Call[CameraDeviceViewDelegateWrapper](c_, objc.Sel("delegate")) - 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:"), objc.Ptr(valueObject)) -} - -// The URL of the application used to post process the image. [Full Topic] +// Allows the “Download All” control to be renamed. [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/1504281-downloadallcontrollabel?language=objc +func (c_ CameraDeviceView) DownloadAllControlLabel() string { + rv := objc.Call[string](c_, objc.Sel("downloadAllControlLabel")) return rv } -// The URL of the application used to post process the image. [Full Topic] +// Allows the “Download All” control to be renamed. [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:"), objc.Ptr(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) } -// Returns whether the device view is being displayed in icon mode. [Full Topic] +// Specifies the icon size. [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")) +// [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 } -// Returns whether the device view is being displayed in icon mode. [Full Topic] +// Specifies the icon size. [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) +// [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) } -// Specifies the display mode of the camera device view. [Full Topic] +// Returns whether the selected items can be deleted. [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/1504949-candeleteselecteditems?language=objc +func (c_ CameraDeviceView) CanDeleteSelectedItems() bool { + rv := objc.Call[bool](c_, objc.Sel("canDeleteSelectedItems")) return rv } -// 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) SetMode(value CameraDeviceViewDisplayMode) { - objc.Call[objc.Void](c_, objc.Sel("setMode:"), value) -} - -// Returns whether the selected items can be rotated right. [Full Topic] +// Specifies the directory where files are downloaded [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")) +// [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 } -// Returns whether the selected items can be deleted. [Full Topic] +// Specifies the directory where files are downloaded [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 +// [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:"), objc.Ptr(value)) } // 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 106fe6ac..320df08d 100644 --- a/macos/quartz/camera_device_view_delegate.gen.go +++ b/macos/quartz/camera_device_view_delegate.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package quartz @@ -15,6 +15,10 @@ 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 @@ -22,8 +26,9 @@ type PCameraDeviceViewDelegate interface { // A delegate implementation builder for the [PCameraDeviceViewDelegate] protocol. type CameraDeviceViewDelegate struct { - _CameraDeviceViewDidEncounterError func(cameraDeviceView CameraDeviceView, error foundation.Error) - _CameraDeviceViewSelectionDidChange func(cameraDeviceView CameraDeviceView) + _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) } func (di *CameraDeviceViewDelegate) HasCameraDeviceViewDidEncounterError() bool { @@ -43,6 +48,23 @@ 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 } @@ -61,29 +83,43 @@ func (di *CameraDeviceViewDelegate) CameraDeviceViewSelectionDidChange(cameraDev di._CameraDeviceViewSelectionDidChange(cameraDeviceView) } -// A concrete type wrapper for the [PCameraDeviceViewDelegate] protocol. -type CameraDeviceViewDelegateWrapper struct { +// ensure impl type implements protocol interface +var _ PCameraDeviceViewDelegate = (*CameraDeviceViewDelegateObject)(nil) + +// A concrete type for the [PCameraDeviceViewDelegate] protocol. +type CameraDeviceViewDelegateObject struct { objc.Object } -func (c_ CameraDeviceViewDelegateWrapper) HasCameraDeviceViewDidEncounterError() bool { +func (c_ CameraDeviceViewDelegateObject) HasCameraDeviceViewDidEncounterError() bool { return c_.RespondsToSelector(objc.Sel("cameraDeviceView:didEncounterError:")) } // Invoked when the camera encounters an error. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/quartz/ikcameradeviceviewdelegate/1505239-cameradeviceview?language=objc -func (c_ CameraDeviceViewDelegateWrapper) CameraDeviceViewDidEncounterError(cameraDeviceView ICameraDeviceView, error foundation.IError) { +func (c_ CameraDeviceViewDelegateObject) CameraDeviceViewDidEncounterError(cameraDeviceView CameraDeviceView, error foundation.Error) { objc.Call[objc.Void](c_, objc.Sel("cameraDeviceView:didEncounterError:"), objc.Ptr(cameraDeviceView), objc.Ptr(error)) } -func (c_ CameraDeviceViewDelegateWrapper) HasCameraDeviceViewSelectionDidChange() bool { +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:"), objc.Ptr(cameraDeviceView), objc.Ptr(file), objc.Ptr(url), data, objc.Ptr(error)) +} + +func (c_ CameraDeviceViewDelegateObject) HasCameraDeviceViewSelectionDidChange() bool { return c_.RespondsToSelector(objc.Sel("cameraDeviceViewSelectionDidChange:")) } // Invoked when the selection changed. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/quartz/ikcameradeviceviewdelegate/1505308-cameradeviceviewselectiondidchan?language=objc -func (c_ CameraDeviceViewDelegateWrapper) CameraDeviceViewSelectionDidChange(cameraDeviceView ICameraDeviceView) { +func (c_ CameraDeviceViewDelegateObject) CameraDeviceViewSelectionDidChange(cameraDeviceView CameraDeviceView) { objc.Call[objc.Void](c_, objc.Sel("cameraDeviceViewSelectionDidChange:"), objc.Ptr(cameraDeviceView)) } diff --git a/macos/quartz/composition.gen.go b/macos/quartz/composition.gen.go index db5e47a1..059b7d84 100644 --- a/macos/quartz/composition.gen.go +++ b/macos/quartz/composition.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package quartz @@ -38,10 +38,6 @@ func (cc _CompositionClass) Alloc() Composition { return rv } -func Composition_Alloc() Composition { - return CompositionClass.Alloc() -} - func (cc _CompositionClass) New() Composition { rv := objc.Call[Composition](cc, objc.Sel("new")) rv.Autorelease() diff --git a/macos/quartz/composition_layer.gen.go b/macos/quartz/composition_layer.gen.go index b3aa0bae..0b9a664b 100644 --- a/macos/quartz/composition_layer.gen.go +++ b/macos/quartz/composition_layer.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package quartz @@ -39,10 +39,6 @@ func (cc _CompositionLayerClass) Alloc() CompositionLayer { return rv } -func CompositionLayer_Alloc() CompositionLayer { - return CompositionLayerClass.Alloc() -} - func (cc _CompositionLayerClass) New() CompositionLayer { rv := objc.Call[CompositionLayer](cc, objc.Sel("new")) rv.Autorelease() @@ -58,32 +54,6 @@ func (c_ CompositionLayer) Init() CompositionLayer { return rv } -func (cc _CompositionLayerClass) Layer() CompositionLayer { - rv := objc.Call[CompositionLayer](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 CompositionLayer_Layer() CompositionLayer { - return CompositionLayerClass.Layer() -} - -func (c_ CompositionLayer) InitWithLayer(layer objc.IObject) CompositionLayer { - rv := objc.Call[CompositionLayer](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 NewCompositionLayerWithLayer(layer objc.IObject) CompositionLayer { - instance := CompositionLayerClass.Alloc().InitWithLayer(layer) - instance.Autorelease() - return instance -} - func (c_ CompositionLayer) ModelLayer() CompositionLayer { rv := objc.Call[CompositionLayer](c_, objc.Sel("modelLayer")) return rv @@ -111,3 +81,29 @@ func CompositionLayer_PresentationLayer() CompositionLayer { instance.Autorelease() return instance } + +func (c_ CompositionLayer) InitWithLayer(layer objc.IObject) CompositionLayer { + rv := objc.Call[CompositionLayer](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 NewCompositionLayerWithLayer(layer objc.IObject) CompositionLayer { + instance := CompositionLayerClass.Alloc().InitWithLayer(layer) + instance.Autorelease() + return instance +} + +func (cc _CompositionLayerClass) Layer() CompositionLayer { + rv := objc.Call[CompositionLayer](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 CompositionLayer_Layer() CompositionLayer { + return CompositionLayerClass.Layer() +} diff --git a/macos/quartz/composition_parameter_view.gen.go b/macos/quartz/composition_parameter_view.gen.go index 0fc72b54..3138f6ed 100644 --- a/macos/quartz/composition_parameter_view.gen.go +++ b/macos/quartz/composition_parameter_view.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package quartz @@ -40,10 +40,6 @@ func (cc _CompositionParameterViewClass) Alloc() CompositionParameterView { return rv } -func CompositionParameterView_Alloc() CompositionParameterView { - return CompositionParameterViewClass.Alloc() -} - func (cc _CompositionParameterViewClass) New() CompositionParameterView { rv := objc.Call[CompositionParameterView](cc, objc.Sel("new")) rv.Autorelease() diff --git a/macos/quartz/composition_picker_panel.gen.go b/macos/quartz/composition_picker_panel.gen.go index 4865c8bb..c824be71 100644 --- a/macos/quartz/composition_picker_panel.gen.go +++ b/macos/quartz/composition_picker_panel.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package quartz @@ -40,10 +40,6 @@ func (cc _CompositionPickerPanelClass) Alloc() CompositionPickerPanel { return rv } -func CompositionPickerPanel_Alloc() CompositionPickerPanel { - return CompositionPickerPanelClass.Alloc() -} - func (cc _CompositionPickerPanelClass) New() CompositionPickerPanel { rv := objc.Call[CompositionPickerPanel](cc, objc.Sel("new")) rv.Autorelease() @@ -84,3 +80,17 @@ 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/composition_picker_view.gen.go b/macos/quartz/composition_picker_view.gen.go index 7a770101..9d06cbba 100644 --- a/macos/quartz/composition_picker_view.gen.go +++ b/macos/quartz/composition_picker_view.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package quartz @@ -40,10 +40,6 @@ func (cc _CompositionPickerViewClass) Alloc() CompositionPickerView { return rv } -func CompositionPickerView_Alloc() CompositionPickerView { - return CompositionPickerViewClass.Alloc() -} - func (cc _CompositionPickerViewClass) New() CompositionPickerView { rv := objc.Call[CompositionPickerView](cc, objc.Sel("new")) rv.Autorelease() diff --git a/macos/quartz/composition_renderer.gen.go b/macos/quartz/composition_renderer_protocol.gen.go similarity index 65% rename from macos/quartz/composition_renderer.gen.go rename to macos/quartz/composition_renderer_protocol.gen.go index 9d56da8a..b6fe9e85 100644 --- a/macos/quartz/composition_renderer.gen.go +++ b/macos/quartz/composition_renderer_protocol.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package quartz @@ -12,7 +12,10 @@ import ( type PCompositionRenderer interface { } -// A concrete type wrapper for the [PCompositionRenderer] protocol. -type CompositionRendererWrapper struct { +// ensure impl type implements protocol interface +var _ PCompositionRenderer = (*CompositionRendererObject)(nil) + +// A concrete type for the [PCompositionRenderer] protocol. +type CompositionRendererObject struct { objc.Object } diff --git a/macos/quartz/composition_repository.gen.go b/macos/quartz/composition_repository.gen.go index 8c3cc364..ab313a9e 100644 --- a/macos/quartz/composition_repository.gen.go +++ b/macos/quartz/composition_repository.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package quartz @@ -38,10 +38,6 @@ func (cc _CompositionRepositoryClass) Alloc() CompositionRepository { return rv } -func CompositionRepository_Alloc() CompositionRepository { - return CompositionRepositoryClass.Alloc() -} - func (cc _CompositionRepositoryClass) New() CompositionRepository { rv := objc.Call[CompositionRepository](cc, objc.Sel("new")) rv.Autorelease() diff --git a/macos/quartz/device_browser_view.gen.go b/macos/quartz/device_browser_view.gen.go index 4b567b8d..33ae9865 100644 --- a/macos/quartz/device_browser_view.gen.go +++ b/macos/quartz/device_browser_view.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package quartz @@ -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() DeviceBrowserViewDelegateWrapper + Delegate() DeviceBrowserViewDelegateObject SetDelegate(value PDeviceBrowserViewDelegate) SetDelegateObject(valueObject objc.IObject) - DisplaysNetworkScanners() bool - SetDisplaysNetworkScanners(value bool) DisplaysLocalCameras() bool SetDisplaysLocalCameras(value bool) - Mode() DeviceBrowserViewDisplayMode - SetMode(value DeviceBrowserViewDisplayMode) + DisplaysNetworkScanners() bool + SetDisplaysNetworkScanners(value bool) + DisplaysNetworkCameras() bool + SetDisplaysNetworkCameras(value bool) DisplaysLocalScanners() bool SetDisplaysLocalScanners(value bool) + Mode() DeviceBrowserViewDisplayMode + SetMode(value DeviceBrowserViewDisplayMode) } // The IKDeviceBrowserView allows you to select a camera or scanner from a list of the available devices. [Full Topic] @@ -53,10 +53,6 @@ func (dc _DeviceBrowserViewClass) Alloc() DeviceBrowserView { return rv } -func DeviceBrowserView_Alloc() DeviceBrowserView { - return DeviceBrowserViewClass.Alloc() -} - func (dc _DeviceBrowserViewClass) New() DeviceBrowserView { rv := objc.Call[DeviceBrowserView](dc, objc.Sel("new")) rv.Autorelease() @@ -86,26 +82,11 @@ 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 -func (d_ DeviceBrowserView) Delegate() DeviceBrowserViewDelegateWrapper { - rv := objc.Call[DeviceBrowserViewDelegateWrapper](d_, objc.Sel("delegate")) +func (d_ DeviceBrowserView) Delegate() DeviceBrowserViewDelegateObject { + rv := objc.Call[DeviceBrowserViewDelegateObject](d_, objc.Sel("delegate")) return rv } @@ -124,21 +105,6 @@ func (d_ DeviceBrowserView) SetDelegateObject(valueObject objc.IObject) { objc.Call[objc.Void](d_, objc.Sel("setDelegate:"), objc.Ptr(valueObject)) } -// Specifies whether network scanners are displayed by the browser. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/quartz/ikdevicebrowserview/1443078-displaysnetworkscanners?language=objc -func (d_ DeviceBrowserView) DisplaysNetworkScanners() bool { - rv := objc.Call[bool](d_, objc.Sel("displaysNetworkScanners")) - return rv -} - -// Specifies whether network scanners are displayed by the browser. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/quartz/ikdevicebrowserview/1443078-displaysnetworkscanners?language=objc -func (d_ DeviceBrowserView) SetDisplaysNetworkScanners(value bool) { - objc.Call[objc.Void](d_, objc.Sel("setDisplaysNetworkScanners:"), value) -} - // Specifies whether local cameras are displayed by the browser. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/quartz/ikdevicebrowserview/1443061-displayslocalcameras?language=objc @@ -154,19 +120,34 @@ func (d_ DeviceBrowserView) SetDisplaysLocalCameras(value bool) { objc.Call[objc.Void](d_, objc.Sel("setDisplaysLocalCameras:"), value) } -// Specifies the browser display mode. [Full Topic] +// Specifies whether network scanners are displayed by the browser. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/quartz/ikdevicebrowserview/1443080-mode?language=objc -func (d_ DeviceBrowserView) Mode() DeviceBrowserViewDisplayMode { - rv := objc.Call[DeviceBrowserViewDisplayMode](d_, objc.Sel("mode")) +// [Full Topic]: https://developer.apple.com/documentation/quartz/ikdevicebrowserview/1443078-displaysnetworkscanners?language=objc +func (d_ DeviceBrowserView) DisplaysNetworkScanners() bool { + rv := objc.Call[bool](d_, objc.Sel("displaysNetworkScanners")) return rv } -// Specifies the browser display mode. [Full Topic] +// Specifies whether network scanners are displayed by the browser. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/quartz/ikdevicebrowserview/1443080-mode?language=objc -func (d_ DeviceBrowserView) SetMode(value DeviceBrowserViewDisplayMode) { - objc.Call[objc.Void](d_, objc.Sel("setMode:"), value) +// [Full Topic]: https://developer.apple.com/documentation/quartz/ikdevicebrowserview/1443078-displaysnetworkscanners?language=objc +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] @@ -183,3 +164,18 @@ func (d_ DeviceBrowserView) DisplaysLocalScanners() bool { func (d_ DeviceBrowserView) SetDisplaysLocalScanners(value bool) { objc.Call[objc.Void](d_, objc.Sel("setDisplaysLocalScanners:"), value) } + +// Specifies the browser display mode. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/quartz/ikdevicebrowserview/1443080-mode?language=objc +func (d_ DeviceBrowserView) Mode() DeviceBrowserViewDisplayMode { + rv := objc.Call[DeviceBrowserViewDisplayMode](d_, objc.Sel("mode")) + return rv +} + +// Specifies the browser display mode. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/quartz/ikdevicebrowserview/1443080-mode?language=objc +func (d_ DeviceBrowserView) SetMode(value DeviceBrowserViewDisplayMode) { + objc.Call[objc.Void](d_, objc.Sel("setMode:"), value) +} diff --git a/macos/quartz/device_browser_view_delegate.gen.go b/macos/quartz/device_browser_view_delegate.gen.go index ddaabe42..6724d91d 100644 --- a/macos/quartz/device_browser_view_delegate.gen.go +++ b/macos/quartz/device_browser_view_delegate.gen.go @@ -1,8 +1,9 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package quartz import ( + "github.com/progrium/macdriver/macos/foundation" "github.com/progrium/macdriver/objc" ) @@ -10,13 +11,49 @@ 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) } -// A concrete type wrapper for the [PDeviceBrowserViewDelegate] protocol. -type DeviceBrowserViewDelegateWrapper struct { +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 +var _ PDeviceBrowserViewDelegate = (*DeviceBrowserViewDelegateObject)(nil) + +// A concrete type for the [PDeviceBrowserViewDelegate] protocol. +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:"), objc.Ptr(deviceBrowserView), objc.Ptr(error)) +} diff --git a/macos/quartz/doc.gen.go b/macos/quartz/doc.gen.go index b72004df..e917aac5 100644 --- a/macos/quartz/doc.gen.go +++ b/macos/quartz/doc.gen.go @@ -1,8 +1,8 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. // Allow users to browse, edit, and save images, using slideshows and Core Image filters. // -// [Full Documentation] +// [Apple Documentation] // -// [Full Documentation]: https://developer.apple.com/documentation/quartz?language=objc +// [Apple Documentation]: https://developer.apple.com/documentation/quartz?language=objc package quartz diff --git a/macos/quartz/enumtypes.gen.go b/macos/quartz/enumtypes.gen.go index 4ef26305..d752e3d4 100644 --- a/macos/quartz/enumtypes.gen.go +++ b/macos/quartz/enumtypes.gen.go @@ -1,8 +1,8 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package quartz -// These constants specify the display mode used by the camera view. These constants are used by mode. [Full Topic] +// These constants specify the display mode used by the camera view. These constants are used by [quartz/ikcameradeviceview/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 mode. [Full Topic] +// These constants specify the transfer mode used by the camera view. These constants are used by [quartz/ikcameradeviceview/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 cellState method. [Full Topic] +// The possible states for the browser cell. These values are used by the [quartz/ikimagebrowsercell/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 setDropIndex:dropOperation:. [Full Topic] +// These constants specify the locations for dropping items onto the browser view. Used by the method [quartz/ikimagebrowserview/setdropindex]. [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 mode property. [Full Topic] +// These constants specify the display mode the scanner view will use. They are used by the [quartz/ikscannerdeviceview/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 transferMode property. [Full Topic] +// These constants determine how the scanner data is returned to the delegate. They are used by the [quartz/ikscannerdeviceview/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 ccd61d68..f6b0f220 100644 --- a/macos/quartz/filter_browser_panel.gen.go +++ b/macos/quartz/filter_browser_panel.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package quartz @@ -20,12 +20,12 @@ type _FilterBrowserPanelClass struct { // An interface definition for the [FilterBrowserPanel] class. type IFilterBrowserPanel interface { appkit.IPanel - BeginWithOptionsModelessDelegateDidEndSelectorContextInfo(inOptions foundation.Dictionary, modelessDelegate objc.IObject, didEndSelector objc.Selector, contextInfo unsafe.Pointer) - FilterBrowserViewWithOptions(inOptions foundation.Dictionary) FilterBrowserView FilterName() string + BeginWithOptionsModelessDelegateDidEndSelectorContextInfo(inOptions foundation.Dictionary, modelessDelegate objc.IObject, didEndSelector objc.Selector, contextInfo unsafe.Pointer) 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] @@ -46,10 +46,6 @@ func (fc _FilterBrowserPanelClass) Alloc() FilterBrowserPanel { return rv } -func FilterBrowserPanel_Alloc() FilterBrowserPanel { - return FilterBrowserPanelClass.Alloc() -} - func (fc _FilterBrowserPanelClass) New() FilterBrowserPanel { rv := objc.Call[FilterBrowserPanel](fc, objc.Sel("new")) rv.Autorelease() @@ -91,19 +87,18 @@ func NewFilterBrowserPanelWithContentRectStyleMaskBackingDeferScreen(contentRect return instance } -// 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) +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 } -// Returns a view that contains a filter browser. [Full Topic] +// Initializes the window with the specified values. [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 +// [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 } // Creates a shared instance of the IKFilterBrowserPanel class. [Full Topic] @@ -129,6 +124,13 @@ 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 @@ -150,3 +152,11 @@ 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_browser_view.gen.go b/macos/quartz/filter_browser_view.gen.go index 67dd29c1..4efc9c0b 100644 --- a/macos/quartz/filter_browser_view.gen.go +++ b/macos/quartz/filter_browser_view.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package quartz @@ -42,10 +42,6 @@ func (fc _FilterBrowserViewClass) Alloc() FilterBrowserView { return rv } -func FilterBrowserView_Alloc() FilterBrowserView { - return FilterBrowserViewClass.Alloc() -} - func (fc _FilterBrowserViewClass) New() FilterBrowserView { rv := objc.Call[FilterBrowserView](fc, objc.Sel("new")) rv.Autorelease() diff --git a/macos/quartz/filter_custom_ui_provider.gen.go b/macos/quartz/filter_custom_ui_provider_protocol.gen.go similarity index 64% rename from macos/quartz/filter_custom_ui_provider.gen.go rename to macos/quartz/filter_custom_ui_provider_protocol.gen.go index 9e2a8963..41d45e7b 100644 --- a/macos/quartz/filter_custom_ui_provider.gen.go +++ b/macos/quartz/filter_custom_ui_provider_protocol.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package quartz @@ -12,23 +12,26 @@ import ( // [Full Topic]: https://developer.apple.com/documentation/quartz/ikfiltercustomuiprovider?language=objc type PFilterCustomUIProvider interface { // optional - ProvideViewForUIConfigurationExcludedKeys(inUIConfiguration foundation.Dictionary, inKeys []objc.Object) IFilterUIView + ProvideViewForUIConfigurationExcludedKeys(inUIConfiguration foundation.Dictionary, inKeys []objc.Object) FilterUIView HasProvideViewForUIConfigurationExcludedKeys() bool } -// A concrete type wrapper for the [PFilterCustomUIProvider] protocol. -type FilterCustomUIProviderWrapper struct { +// ensure impl type implements protocol interface +var _ PFilterCustomUIProvider = (*FilterCustomUIProviderObject)(nil) + +// A concrete type for the [PFilterCustomUIProvider] protocol. +type FilterCustomUIProviderObject struct { objc.Object } -func (f_ FilterCustomUIProviderWrapper) HasProvideViewForUIConfigurationExcludedKeys() bool { +func (f_ FilterCustomUIProviderObject) HasProvideViewForUIConfigurationExcludedKeys() bool { return f_.RespondsToSelector(objc.Sel("provideViewForUIConfiguration:excludedKeys:")) } // Provides a custom view for a filter. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/quartz/ikfiltercustomuiprovider/1427525-provideviewforuiconfiguration?language=objc -func (f_ FilterCustomUIProviderWrapper) ProvideViewForUIConfigurationExcludedKeys(inUIConfiguration foundation.Dictionary, inKeys []objc.IObject) FilterUIView { +func (f_ FilterCustomUIProviderObject) ProvideViewForUIConfigurationExcludedKeys(inUIConfiguration foundation.Dictionary, inKeys []objc.Object) FilterUIView { rv := objc.Call[FilterUIView](f_, objc.Sel("provideViewForUIConfiguration:excludedKeys:"), inUIConfiguration, inKeys) return rv } diff --git a/macos/quartz/filter_ui_view.gen.go b/macos/quartz/filter_ui_view.gen.go index 18994a2c..eab25e25 100644 --- a/macos/quartz/filter_ui_view.gen.go +++ b/macos/quartz/filter_ui_view.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package quartz @@ -21,9 +21,9 @@ type _FilterUIViewClass struct { // An interface definition for the [FilterUIView] class. type IFilterUIView interface { appkit.IView - ObjectController() appkit.ObjectController - Filter() coreimage.Filter InitWithFrameFilter(frameRect foundation.Rect, inFilter coreimage.IFilter) objc.Object + Filter() coreimage.Filter + ObjectController() appkit.ObjectController } // 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] @@ -44,10 +44,6 @@ func (fc _FilterUIViewClass) Alloc() FilterUIView { return rv } -func FilterUIView_Alloc() FilterUIView { - return FilterUIViewClass.Alloc() -} - func (fc _FilterUIViewClass) New() FilterUIView { rv := objc.Call[FilterUIView](fc, objc.Sel("new")) rv.Autorelease() @@ -77,20 +73,19 @@ func NewFilterUIViewWithFrame(frameRect foundation.Rect) FilterUIView { return instance } -// 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")) +// [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, objc.Ptr(inFilter)) 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")) - 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) } // Initializes a view that contains controls for the input parameters of a filter. [Full Topic] @@ -101,17 +96,18 @@ func (f_ FilterUIView) InitWithFrameFilter(frameRect foundation.Rect, inFilter c 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 (fc _FilterUIViewClass) ViewWithFrameFilter(frameRect foundation.Rect, inFilter coreimage.IFilter) objc.Object { - rv := objc.Call[objc.Object](fc, objc.Sel("viewWithFrame:filter:"), frameRect, objc.Ptr(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 } -// 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 FilterUIView_ViewWithFrameFilter(frameRect foundation.Rect, inFilter coreimage.IFilter) objc.Object { - return FilterUIViewClass.ViewWithFrameFilter(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 } diff --git a/macos/quartz/image_browser_cell.gen.go b/macos/quartz/image_browser_cell.gen.go index 7ffdc6d8..6f2fe1d8 100644 --- a/macos/quartz/image_browser_cell.gen.go +++ b/macos/quartz/image_browser_cell.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package quartz @@ -21,20 +21,20 @@ type _ImageBrowserCellClass struct { // An interface definition for the [ImageBrowserCell] class. type IImageBrowserCell interface { objc.IObject - ImageAlignment() appkit.ImageAlignment + ImageBrowserView() ImageBrowserView Opacity() float64 - IndexOfRepresentedItem() uint + SelectionFrame() foundation.Rect + ImageAlignment() appkit.ImageAlignment + ImageFrame() foundation.Rect + SubtitleFrame() foundation.Rect IsSelected() bool + IndexOfRepresentedItem() uint 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 - SelectionFrame() foundation.Rect + CellState() ImageBrowserCellState } // A class that is used to display a cell conforming to the [quartz/imagekit/ikimagebrowseritem_protocol] in an IKImageBrowserView. [Full Topic] @@ -55,10 +55,6 @@ func (ic _ImageBrowserCellClass) Alloc() ImageBrowserCell { return rv } -func ImageBrowserCell_Alloc() ImageBrowserCell { - return ImageBrowserCellClass.Alloc() -} - func (ic _ImageBrowserCellClass) New() ImageBrowserCell { rv := objc.Call[ImageBrowserCell](ic, objc.Sel("new")) rv.Autorelease() @@ -74,11 +70,11 @@ func (i_ ImageBrowserCell) Init() ImageBrowserCell { return rv } -// Returns the position of the cell’s image in the frame. [Full Topic] +// Returns the view the receiver uses to display the cell. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/quartz/ikimagebrowsercell/1500042-imagealignment?language=objc -func (i_ ImageBrowserCell) ImageAlignment() appkit.ImageAlignment { - rv := objc.Call[appkit.ImageAlignment](i_, objc.Sel("imageAlignment")) +// [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 } @@ -90,11 +86,35 @@ func (i_ ImageBrowserCell) Opacity() float64 { return rv } -// Returns the index of the receiver’s represented object in the datasource. [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/1500047-indexofrepresenteditem?language=objc -func (i_ ImageBrowserCell) IndexOfRepresentedItem() uint { - rv := objc.Call[uint](i_, objc.Sel("indexOfRepresentedItem")) +// [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 +func (i_ ImageBrowserCell) ImageAlignment() appkit.ImageAlignment { + rv := objc.Call[appkit.ImageAlignment](i_, objc.Sel("imageAlignment")) + 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 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 } @@ -106,19 +126,19 @@ func (i_ ImageBrowserCell) IsSelected() bool { return rv } -// Returns the receiver’s image container frame rectangle, which defines the position of the container of the thumbnail. [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/1500064-imagecontainerframe?language=objc -func (i_ ImageBrowserCell) ImageContainerFrame() foundation.Rect { - rv := objc.Call[foundation.Rect](i_, objc.Sel("imageContainerFrame")) +// [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 current cell state of the receiver. [Full Topic] +// 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/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/1500064-imagecontainerframe?language=objc +func (i_ ImageBrowserCell) ImageContainerFrame() foundation.Rect { + rv := objc.Call[foundation.Rect](i_, objc.Sel("imageContainerFrame")) return rv } @@ -130,14 +150,6 @@ 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 @@ -154,22 +166,6 @@ 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 @@ -178,10 +174,10 @@ func (i_ ImageBrowserCell) LayerForType(type_ string) quartzcore.Layer { return rv } -// Returns the receiver’s selection frame rectangle, which defines the position of the selection rectangle in its IKImageBrowserView. [Full Topic] +// Returns the current cell state of the receiver. [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")) +// [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 } diff --git a/macos/quartz/image_browser_view.gen.go b/macos/quartz/image_browser_view.gen.go index f6565725..76736b96 100644 --- a/macos/quartz/image_browser_view.gen.go +++ b/macos/quartz/image_browser_view.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package quartz @@ -40,10 +40,6 @@ func (ic _ImageBrowserViewClass) Alloc() ImageBrowserView { return rv } -func ImageBrowserView_Alloc() ImageBrowserView { - return ImageBrowserViewClass.Alloc() -} - func (ic _ImageBrowserViewClass) New() ImageBrowserView { rv := objc.Call[ImageBrowserView](ic, objc.Sel("new")) rv.Autorelease() diff --git a/macos/quartz/image_edit_panel.gen.go b/macos/quartz/image_edit_panel.gen.go index 166c3e34..4ecba8d2 100644 --- a/macos/quartz/image_edit_panel.gen.go +++ b/macos/quartz/image_edit_panel.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package quartz @@ -21,10 +21,10 @@ type _ImageEditPanelClass struct { type IImageEditPanel interface { appkit.IPanel ReloadData() - DataSource() ImageEditPanelDataSourceWrapper + 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] @@ -45,10 +45,6 @@ func (ic _ImageEditPanelClass) Alloc() ImageEditPanel { return rv } -func ImageEditPanel_Alloc() ImageEditPanel { - return ImageEditPanelClass.Alloc() -} - func (ic _ImageEditPanelClass) New() ImageEditPanel { rv := objc.Call[ImageEditPanel](ic, objc.Sel("new")) rv.Autorelease() @@ -90,6 +86,27 @@ 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 @@ -105,18 +122,19 @@ func ImageEditPanel_SharedImageEditPanel() ImageEditPanel { return ImageEditPanelClass.SharedImageEditPanel() } -// Reloads the data from the data associated with an image editing panel. [Full Topic] +// Returns the current array of user adjustments to effects. [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")) +// [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 } // Specifies the edit panel’s dataSource. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/quartz/ikimageeditpanel/1503831-datasource?language=objc -func (i_ ImageEditPanel) DataSource() ImageEditPanelDataSourceWrapper { - rv := objc.Call[ImageEditPanelDataSourceWrapper](i_, objc.Sel("dataSource")) +func (i_ ImageEditPanel) DataSource() ImageEditPanelDataSourceObject { + rv := objc.Call[ImageEditPanelDataSourceObject](i_, objc.Sel("dataSource")) return rv } @@ -134,11 +152,3 @@ func (i_ ImageEditPanel) SetDataSource(value PImageEditPanelDataSource) { func (i_ ImageEditPanel) SetDataSourceObject(valueObject objc.IObject) { objc.Call[objc.Void](i_, objc.Sel("setDataSource:"), objc.Ptr(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_edit_panel_data_source.gen.go b/macos/quartz/image_edit_panel_data_source_protocol.gen.go similarity index 69% rename from macos/quartz/image_edit_panel_data_source.gen.go rename to macos/quartz/image_edit_panel_data_source_protocol.gen.go index aa498d66..7c5ff52e 100644 --- a/macos/quartz/image_edit_panel_data_source.gen.go +++ b/macos/quartz/image_edit_panel_data_source_protocol.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package quartz @@ -21,30 +21,33 @@ type PImageEditPanelDataSource interface { HasThumbnailWithMaximumSize() bool } -// A concrete type wrapper for the [PImageEditPanelDataSource] protocol. -type ImageEditPanelDataSourceWrapper struct { +// ensure impl type implements protocol interface +var _ PImageEditPanelDataSource = (*ImageEditPanelDataSourceObject)(nil) + +// A concrete type for the [PImageEditPanelDataSource] protocol. +type ImageEditPanelDataSourceObject struct { objc.Object } -func (i_ ImageEditPanelDataSourceWrapper) HasSetImageImageProperties() bool { +func (i_ ImageEditPanelDataSourceObject) HasSetImageImageProperties() bool { return i_.RespondsToSelector(objc.Sel("setImage:imageProperties:")) } // Sets an image with the specified properties. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/quartz/ikimageeditpaneldatasource/1503517-setimage?language=objc -func (i_ ImageEditPanelDataSourceWrapper) SetImageImageProperties(image coregraphics.ImageRef, metaData foundation.Dictionary) { +func (i_ ImageEditPanelDataSourceObject) SetImageImageProperties(image coregraphics.ImageRef, metaData foundation.Dictionary) { objc.Call[objc.Void](i_, objc.Sel("setImage:imageProperties:"), image, metaData) } -func (i_ ImageEditPanelDataSourceWrapper) HasThumbnailWithMaximumSize() bool { +func (i_ ImageEditPanelDataSourceObject) HasThumbnailWithMaximumSize() bool { return i_.RespondsToSelector(objc.Sel("thumbnailWithMaximumSize:")) } // Returns a thumbnail image whose size is no larger than the specified size. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/quartz/ikimageeditpaneldatasource/1505271-thumbnailwithmaximumsize?language=objc -func (i_ ImageEditPanelDataSourceWrapper) ThumbnailWithMaximumSize(size foundation.Size) coregraphics.ImageRef { +func (i_ ImageEditPanelDataSourceObject) ThumbnailWithMaximumSize(size foundation.Size) coregraphics.ImageRef { rv := objc.Call[coregraphics.ImageRef](i_, objc.Sel("thumbnailWithMaximumSize:"), size) return rv } diff --git a/macos/quartz/image_view.gen.go b/macos/quartz/image_view.gen.go index b95ca9d4..277c7295 100644 --- a/macos/quartz/image_view.gen.go +++ b/macos/quartz/image_view.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package quartz @@ -23,57 +23,57 @@ type _ImageViewClass struct { // An interface definition for the [ImageView] class. type IImageView interface { appkit.IView - ConvertViewPointToImagePoint(viewPoint foundation.Point) foundation.Point + 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 RotateImageRight(sender objc.IObject) objc.Object - ZoomImageToActualSize(sender objc.IObject) objc.Object - ImageSize() foundation.Size - RotateImageLeft(sender objc.IObject) objc.Object + ScrollToRect(rect foundation.Rect) + Crop(sender objc.IObject) objc.Object ConvertViewRectToImageRect(viewRect foundation.Rect) foundation.Rect - ConvertImagePointToViewPoint(imagePoint foundation.Point) foundation.Point SetImageImageProperties(image coregraphics.ImageRef, metaData foundation.Dictionary) - ScrollToPoint(point foundation.Point) - Crop(sender objc.IObject) objc.Object - ZoomIn(sender objc.IObject) objc.Object - OverlayForType(layerType string) quartzcore.Layer - SetOverlayForType(layer quartzcore.ILayer, layerType string) - ConvertImageRectToViewRect(imageRect foundation.Rect) foundation.Rect + RotateImageLeft(sender objc.IObject) objc.Object ImageProperties() foundation.Dictionary - ScrollToRect(rect foundation.Rect) - FlipImageVertical(sender objc.IObject) objc.Object + OverlayForType(layerType string) quartzcore.Layer + ConvertImagePointToViewPoint(imagePoint foundation.Point) foundation.Point ZoomOut(sender objc.IObject) objc.Object - SetRotationAngleCenterPoint(rotationAngle float64, centerPoint foundation.Point) + ZoomImageToActualSize(sender objc.IObject) objc.Object FlipImageHorizontal(sender objc.IObject) objc.Object SetImageZoomFactorCenterPoint(zoomFactor float64, centerPoint foundation.Point) - Image() coregraphics.ImageRef - ZoomImageToRect(rect foundation.Rect) + ImageSize() foundation.Size + ZoomIn(sender objc.IObject) objc.Object SetImageWithURL(url foundation.IURL) - HasVerticalScroller() bool - SetHasVerticalScroller(value bool) + 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) + HasVerticalScroller() bool + SetHasVerticalScroller(value bool) + DoubleClickOpensImageEditPanel() bool + SetDoubleClickOpensImageEditPanel(value bool) CurrentToolMode() string SetCurrentToolMode(value string) - Autoresizes() bool - SetAutoresizes(value bool) Delegate() objc.Object SetDelegate(value objc.IObject) - BackgroundColor() appkit.Color - SetBackgroundColor(value appkit.IColor) ImageCorrection() coreimage.Filter SetImageCorrection(value coreimage.IFilter) - AutohidesScrollers() bool - SetAutohidesScrollers(value bool) + BackgroundColor() appkit.Color + SetBackgroundColor(value appkit.IColor) 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] @@ -94,10 +94,6 @@ func (ic _ImageViewClass) Alloc() ImageView { return rv } -func ImageView_Alloc() ImageView { - return ImageViewClass.Alloc() -} - func (ic _ImageViewClass) New() ImageView { rv := objc.Call[ImageView](ic, objc.Sel("new")) rv.Autorelease() @@ -127,11 +123,18 @@ func NewImageViewWithFrame(frameRect foundation.Rect) ImageView { return instance } -// Converts an image view coordinate to an image coordinate. [Full Topic] +// Scrolls the view to the specified point. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/quartz/ikimageview/1503743-convertviewpointtoimagepoint?language=objc -func (i_ ImageView) ConvertViewPointToImagePoint(viewPoint foundation.Point) foundation.Point { - rv := objc.Call[foundation.Point](i_, objc.Sel("convertViewPointToImagePoint:"), viewPoint) +// [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 } @@ -143,6 +146,36 @@ func (i_ ImageView) ZoomImageToFit(sender objc.IObject) objc.Object { 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 +func (i_ ImageView) ConvertViewPointToImagePoint(viewPoint foundation.Point) foundation.Point { + rv := objc.Call[foundation.Point](i_, objc.Sel("convertViewPointToImagePoint:"), viewPoint) + 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:"), objc.Ptr(layer), layerType) +} + +// Flips an image along the vertical axis. [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) + return rv +} + // Rotates the image right (clockwise). [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/quartz/ikimageview/1503427-rotateimageright?language=objc @@ -151,22 +184,36 @@ func (i_ ImageView) RotateImageRight(sender objc.IObject) objc.Object { return rv } -// Zooms the image so that it is displayed using its true size. [Full Topic] +// Scrolls the view so that it includes the provided rectangular area. [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) +// [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] +// +// [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 } -// Returns the size of the image in the image view. [Full Topic] +// Converts an image view rectangle to an image rectangle. [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/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 } +// 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 @@ -175,11 +222,19 @@ func (i_ ImageView) RotateImageLeft(sender objc.IObject) objc.Object { return rv } -// Converts an image view rectangle to an image rectangle. [Full Topic] +// Returns the metadata for the image in the 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/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] +// +// [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 } @@ -191,25 +246,42 @@ func (i_ ImageView) ConvertImagePointToViewPoint(imagePoint foundation.Point) fo return rv } -// Sets the image to display in an image view. [Full Topic] +// Zooms the image out. [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) +// [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 } -// Scrolls the view to the specified point. [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/1503677-scrolltopoint?language=objc -func (i_ ImageView) ScrollToPoint(point foundation.Point) { - objc.Call[objc.Void](i_, objc.Sel("scrollToPoint:"), point) +// [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 } -// Crops the image using the current selection. [Full Topic] +// Flips an image along the horizontal axis. [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/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 +} + +// Sets the zoom factor at the provided origin. [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) +} + +// Returns the size of the image in the image view. [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")) return rv } @@ -221,19 +293,18 @@ func (i_ ImageView) ZoomIn(sender objc.IObject) objc.Object { return rv } -// Returns the Core Animation layer associated with a layer type. [Full Topic] +// Initializes an image view with the image specified by a URL. [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) - return rv +// [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:"), objc.Ptr(url)) } -// Sets an overlay type for a Core Animation layer. [Full Topic] +// Zooms the image so that it fits in the specified rectangle. [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:"), objc.Ptr(layer), layerType) +// [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) } // Converts an image rectangle to an image view rectangle. [Full Topic] @@ -244,79 +315,94 @@ func (i_ ImageView) ConvertImageRectToViewRect(imageRect foundation.Rect) founda return rv } -// Returns the metadata for the image in the view. [Full Topic] +// Specifies the zoom factor for the image 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")) +// [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 } -// Scrolls the view so that it includes the provided rectangular area. [Full Topic] +// Specifies the zoom factor for the image view. [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) +// [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) } -// Flips an image along the vertical axis. [Full Topic] +// Specifies the automatic resizing state for 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/1503709-autoresizes?language=objc +func (i_ ImageView) Autoresizes() bool { + rv := objc.Call[bool](i_, objc.Sel("autoresizes")) return rv } -// Zooms the image out. [Full Topic] +// Specifies the automatic resizing state for the image view. [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) +// [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] +// +// [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 } -// Sets the rotation angle at the provided origin. [Full Topic] +// Specifies the automatic-hiding scroll bar state for the image view. [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) +// [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) } -// Flips an image along the horizontal axis. [Full Topic] +// Specifies the editable state for the 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) +// [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 } -// Sets the zoom factor at the provided origin. [Full Topic] +// Specifies the editable state for the image view. [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/1505302-editable?language=objc +func (i_ ImageView) SetEditable(value bool) { + objc.Call[objc.Void](i_, objc.Sel("setEditable:"), value) } -// Returns the image associated with the view, after any image corrections. [Full Topic] +// Specifies the horizontal scroll bar state for the image view. [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")) +// [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 } -// Zooms the image so that it fits in the specified rectangle. [Full Topic] +// Specifies the horizontal scroll bar state for the image view. [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/1503565-hashorizontalscroller?language=objc +func (i_ ImageView) SetHasHorizontalScroller(value bool) { + objc.Call[objc.Void](i_, objc.Sel("setHasHorizontalScroller:"), value) } -// Initializes an image view with the image specified by a URL. [Full Topic] +// Specifies the rotation angle for the image view. [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:"), objc.Ptr(url)) +// [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 vertical scroll bar state for the image view. [Full Topic] @@ -334,19 +420,19 @@ func (i_ ImageView) SetHasVerticalScroller(value bool) { objc.Call[objc.Void](i_, objc.Sel("setHasVerticalScroller:"), value) } -// Specifies the editable state for the image view. [Full Topic] +// Specifies the image-opening state of the editing pane in the image view. [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/1504092-doubleclickopensimageeditpanel?language=objc +func (i_ ImageView) DoubleClickOpensImageEditPanel() bool { + rv := objc.Call[bool](i_, objc.Sel("doubleClickOpensImageEditPanel")) return rv } -// Specifies the editable state for the image view. [Full Topic] +// Specifies the image-opening state of the editing pane in the image view. [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/1504092-doubleclickopensimageeditpanel?language=objc +func (i_ ImageView) SetDoubleClickOpensImageEditPanel(value bool) { + objc.Call[objc.Void](i_, objc.Sel("setDoubleClickOpensImageEditPanel:"), value) } // Specifies the current tool mode for the image view. [Full Topic] @@ -364,21 +450,6 @@ 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 @@ -394,21 +465,6 @@ 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:"), objc.Ptr(value)) -} - // Specifies a Core Image filter for image correction. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/quartz/ikimageview/1503698-imagecorrection?language=objc @@ -424,19 +480,19 @@ func (i_ ImageView) SetImageCorrection(value coreimage.IFilter) { objc.Call[objc.Void](i_, objc.Sel("setImageCorrection:"), objc.Ptr(value)) } -// Specifies the automatic-hiding scroll bar state for the image view. [Full Topic] +// Specifies the background color for the image view. [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/1503567-backgroundcolor?language=objc +func (i_ ImageView) BackgroundColor() appkit.Color { + rv := objc.Call[appkit.Color](i_, objc.Sel("backgroundColor")) return rv } -// Specifies the automatic-hiding scroll bar state for the image view. [Full Topic] +// Specifies the background color for the image view. [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/1503567-backgroundcolor?language=objc +func (i_ ImageView) SetBackgroundColor(value appkit.IColor) { + objc.Call[objc.Void](i_, objc.Sel("setBackgroundColor:"), objc.Ptr(value)) } // Specifies the drag-and-drop support state for the image view. [Full Topic] @@ -453,63 +509,3 @@ 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/patch_controller.gen.go b/macos/quartz/patch_controller.gen.go index 8da0f171..b495e750 100644 --- a/macos/quartz/patch_controller.gen.go +++ b/macos/quartz/patch_controller.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package quartz @@ -39,10 +39,6 @@ func (pc _PatchControllerClass) Alloc() PatchController { return rv } -func PatchController_Alloc() PatchController { - return PatchControllerClass.Alloc() -} - func (pc _PatchControllerClass) New() PatchController { rv := objc.Call[PatchController](pc, objc.Sel("new")) rv.Autorelease() diff --git a/macos/quartz/picture_taker.gen.go b/macos/quartz/picture_taker.gen.go index 8a07b566..ed589561 100644 --- a/macos/quartz/picture_taker.gen.go +++ b/macos/quartz/picture_taker.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package quartz @@ -20,15 +20,15 @@ type _PictureTakerClass struct { // An interface definition for the [PictureTaker] class. type IPictureTaker interface { appkit.IPanel - PopUpRecentsMenuForViewWithDelegateDidEndSelectorContextInfo(aView appkit.IView, delegate objc.IObject, didEndSelector objc.Selector, contextInfo unsafe.Pointer) - InputImage() appkit.Image 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) 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] @@ -49,10 +49,6 @@ func (pc _PictureTakerClass) Alloc() PictureTaker { return rv } -func PictureTaker_Alloc() PictureTaker { - return PictureTakerClass.Alloc() -} - func (pc _PictureTakerClass) New() PictureTaker { rv := objc.Call[PictureTaker](pc, objc.Sel("new")) rv.Autorelease() @@ -94,19 +90,18 @@ func NewPictureTakerWithContentRectStyleMaskBackingDeferScreen(contentRect found return instance } -// 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:"), objc.Ptr(aView), delegate, didEndSelector, contextInfo) +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 } -// Returns the input image associated with the picture taker. [Full Topic] +// Initializes the window with the specified values. [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")) - return rv +// [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 } // Returns whether video mirroring is enabled during snapshots. [Full Topic] @@ -117,28 +112,21 @@ func (p_ PictureTaker) Mirroring() bool { return rv } -// Set the image input for 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/1503724-setinputimage?language=objc -func (p_ PictureTaker) SetInputImage(image appkit.IImage) { - objc.Call[objc.Void](p_, objc.Sel("setInputImage:"), objc.Ptr(image)) +// [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) } -// Opens a modal picture taker dialog. [Full Topic] +// Returns the input image associated with the picture taker. [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")) +// [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 } -// 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 @@ -146,11 +134,11 @@ func (p_ PictureTaker) BeginPictureTakerSheetForWindowWithDelegateDidEndSelector objc.Call[objc.Void](p_, objc.Sel("beginPictureTakerSheetForWindow:withDelegate:didEndSelector:contextInfo:"), objc.Ptr(aWindow), delegate, didEndSelector, contextInfo) } -// Controls whether the receiver enables video mirroring during snapshots. [Full Topic] +// Displays the Open Recent popup menu associated with 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/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:"), objc.Ptr(aView), delegate, didEndSelector, contextInfo) } // Returns a shared IKPictureTaker instance, creating it if necessary. [Full Topic] @@ -168,6 +156,13 @@ 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:"), objc.Ptr(image)) +} + // Returns the edited image. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/quartz/ikpicturetaker/1504563-outputimage?language=objc @@ -175,3 +170,18 @@ 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.gen.go b/macos/quartz/plug_in.gen.go index 0fa1ff90..98029a44 100644 --- a/macos/quartz/plug_in.gen.go +++ b/macos/quartz/plug_in.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package quartz @@ -38,10 +38,6 @@ func (pc _PlugInClass) Alloc() PlugIn { return rv } -func PlugIn_Alloc() PlugIn { - return PlugInClass.Alloc() -} - func (pc _PlugInClass) New() PlugIn { rv := objc.Call[PlugIn](pc, objc.Sel("new")) rv.Autorelease() diff --git a/macos/quartz/plug_in_context.gen.go b/macos/quartz/plug_in_context.gen.go deleted file mode 100644 index aef46504..00000000 --- a/macos/quartz/plug_in_context.gen.go +++ /dev/null @@ -1,18 +0,0 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY - -package quartz - -import ( - "github.com/progrium/macdriver/objc" -) - -// 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 { -} - -// A concrete type wrapper for the [PPlugInContext] protocol. -type PlugInContextWrapper struct { - objc.Object -} diff --git a/macos/quartz/plug_in_context_protocol.gen.go b/macos/quartz/plug_in_context_protocol.gen.go new file mode 100644 index 00000000..a57ec99c --- /dev/null +++ b/macos/quartz/plug_in_context_protocol.gen.go @@ -0,0 +1,21 @@ +// Code generated by DarwinKit. DO NOT EDIT. + +package quartz + +import ( + "github.com/progrium/macdriver/objc" +) + +// The QCPlugInContext protocol defines methods that you use only from within the execution method ([quartz/qcplugin/execute]) of a QCPlugIn object. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/quartz/qcplugincontext?language=objc +type PPlugInContext interface { +} + +// ensure impl type implements protocol interface +var _ PPlugInContext = (*PlugInContextObject)(nil) + +// A concrete type for the [PPlugInContext] protocol. +type PlugInContextObject struct { + objc.Object +} diff --git a/macos/quartz/plug_in_input_image_source.gen.go b/macos/quartz/plug_in_input_image_source_protocol.gen.go similarity index 77% rename from macos/quartz/plug_in_input_image_source.gen.go rename to macos/quartz/plug_in_input_image_source_protocol.gen.go index 3648ef75..bcbed580 100644 --- a/macos/quartz/plug_in_input_image_source.gen.go +++ b/macos/quartz/plug_in_input_image_source_protocol.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package quartz @@ -12,7 +12,10 @@ import ( type PPlugInInputImageSource interface { } -// A concrete type wrapper for the [PPlugInInputImageSource] protocol. -type PlugInInputImageSourceWrapper struct { +// ensure impl type implements protocol interface +var _ PPlugInInputImageSource = (*PlugInInputImageSourceObject)(nil) + +// A concrete type for the [PPlugInInputImageSource] protocol. +type PlugInInputImageSourceObject struct { objc.Object } diff --git a/macos/quartz/plug_in_output_image_provider.gen.go b/macos/quartz/plug_in_output_image_provider_protocol.gen.go similarity index 70% rename from macos/quartz/plug_in_output_image_provider.gen.go rename to macos/quartz/plug_in_output_image_provider_protocol.gen.go index a3338dfd..7604db84 100644 --- a/macos/quartz/plug_in_output_image_provider.gen.go +++ b/macos/quartz/plug_in_output_image_provider_protocol.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package quartz @@ -12,7 +12,10 @@ import ( type PPlugInOutputImageProvider interface { } -// A concrete type wrapper for the [PPlugInOutputImageProvider] protocol. -type PlugInOutputImageProviderWrapper struct { +// ensure impl type implements protocol interface +var _ PPlugInOutputImageProvider = (*PlugInOutputImageProviderObject)(nil) + +// A concrete type for the [PPlugInOutputImageProvider] protocol. +type PlugInOutputImageProviderObject struct { objc.Object } diff --git a/macos/quartz/plug_in_view_controller.gen.go b/macos/quartz/plug_in_view_controller.gen.go index 13fc3325..b74849d1 100644 --- a/macos/quartz/plug_in_view_controller.gen.go +++ b/macos/quartz/plug_in_view_controller.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package quartz @@ -40,10 +40,6 @@ func (pc _PlugInViewControllerClass) Alloc() PlugInViewController { return rv } -func PlugInViewController_Alloc() PlugInViewController { - return PlugInViewControllerClass.Alloc() -} - func (pc _PlugInViewControllerClass) New() PlugInViewController { rv := objc.Call[PlugInViewController](pc, objc.Sel("new")) rv.Autorelease() diff --git a/macos/quartz/protocols.gen.m b/macos/quartz/protocols.gen.m index 88e915f6..94bcad9b 100644 --- a/macos/quartz/protocols.gen.m +++ b/macos/quartz/protocols.gen.m @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. #import "Quartz/Quartz.h" diff --git a/macos/quartz/quartz_filter.gen.go b/macos/quartz/quartz_filter.gen.go index 968f3f54..e8edc785 100644 --- a/macos/quartz/quartz_filter.gen.go +++ b/macos/quartz/quartz_filter.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package quartz @@ -20,11 +20,11 @@ type _QuartzFilterClass struct { // An interface definition for the [QuartzFilter] class. type IQuartzFilter interface { objc.IObject - ApplyToContext(aContext coregraphics.ContextRef) bool - RemoveFromContext(aContext coregraphics.ContextRef) - LocalizedName() string Properties() foundation.Dictionary Url() foundation.URL + RemoveFromContext(aContext coregraphics.ContextRef) + LocalizedName() string + ApplyToContext(aContext coregraphics.ContextRef) bool } // [Full Topic] @@ -45,10 +45,6 @@ func (qc _QuartzFilterClass) Alloc() QuartzFilter { return rv } -func QuartzFilter_Alloc() QuartzFilter { - return QuartzFilterClass.Alloc() -} - func (qc _QuartzFilterClass) New() QuartzFilter { rv := objc.Call[QuartzFilter](qc, objc.Sel("new")) rv.Autorelease() @@ -66,84 +62,84 @@ func (q_ QuartzFilter) Init() QuartzFilter { // [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/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/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/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/1433671-quartzfilterwithurl?language=objc -func (qc _QuartzFilterClass) QuartzFilterWithURL(aURL foundation.IURL) QuartzFilter { - rv := objc.Call[QuartzFilter](qc, objc.Sel("quartzFilterWithURL:"), objc.Ptr(aURL)) +// [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/1433671-quartzfilterwithurl?language=objc -func QuartzFilter_QuartzFilterWithURL(aURL foundation.IURL) QuartzFilter { - return QuartzFilterClass.QuartzFilterWithURL(aURL) +// [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/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/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/1433675-quartzfilterwithoutputintents?language=objc -func QuartzFilter_QuartzFilterWithOutputIntents(outputIntents []objc.IObject) QuartzFilter { - return QuartzFilterClass.QuartzFilterWithOutputIntents(outputIntents) +// [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] // -// [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/1433671-quartzfilterwithurl?language=objc +func (qc _QuartzFilterClass) QuartzFilterWithURL(aURL foundation.IURL) QuartzFilter { + rv := objc.Call[QuartzFilter](qc, objc.Sel("quartzFilterWithURL:"), objc.Ptr(aURL)) 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/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/1433682-localizedname?language=objc -func (q_ QuartzFilter) LocalizedName() string { - rv := objc.Call[string](q_, objc.Sel("localizedName")) - return rv +// [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/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/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/1433677-url?language=objc -func (q_ QuartzFilter) Url() foundation.URL { - rv := objc.Call[foundation.URL](q_, objc.Sel("url")) +// [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 } diff --git a/macos/quartz/quartz_filter_manager.gen.go b/macos/quartz/quartz_filter_manager.gen.go index 1199f071..c33783e6 100644 --- a/macos/quartz/quartz_filter_manager.gen.go +++ b/macos/quartz/quartz_filter_manager.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package quartz @@ -21,11 +21,11 @@ type _QuartzFilterManagerClass struct { type IQuartzFilterManager interface { objc.IObject SetDelegate(aDelegate objc.IObject) - SelectFilter(filter IQuartzFilter) bool - FilterPanel() appkit.Panel Delegate() objc.Object - FilterView() QuartzFilterView SelectedFilter() QuartzFilter + SelectFilter(filter IQuartzFilter) bool + FilterView() QuartzFilterView + FilterPanel() appkit.Panel ImportFilter(filterProperties foundation.Dictionary) QuartzFilter } @@ -47,10 +47,6 @@ func (qc _QuartzFilterManagerClass) Alloc() QuartzFilterManager { return rv } -func QuartzFilterManager_Alloc() QuartzFilterManager { - return QuartzFilterManagerClass.Alloc() -} - func (qc _QuartzFilterManagerClass) New() QuartzFilterManager { rv := objc.Call[QuartzFilterManager](qc, objc.Sel("new")) rv.Autorelease() @@ -75,18 +71,17 @@ func (q_ QuartzFilterManager) SetDelegate(aDelegate objc.IObject) { // [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:"), objc.Ptr(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/1505297-filterpanel?language=objc -func (q_ QuartzFilterManager) FilterPanel() appkit.Panel { - rv := objc.Call[appkit.Panel](q_, objc.Sel("filterPanel")) - 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] @@ -97,14 +92,6 @@ 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 @@ -122,24 +109,33 @@ func QuartzFilterManager_FilterManager() QuartzFilterManager { // [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/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/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/1503913-selectfilter?language=objc +func (q_ QuartzFilterManager) SelectFilter(filter IQuartzFilter) bool { + rv := objc.Call[bool](q_, objc.Sel("selectFilter:"), objc.Ptr(filter)) + return rv } // [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")) +// [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/1505297-filterpanel?language=objc +func (q_ QuartzFilterManager) FilterPanel() appkit.Panel { + rv := objc.Call[appkit.Panel](q_, objc.Sel("filterPanel")) return rv } diff --git a/macos/quartz/quartz_filter_view.gen.go b/macos/quartz/quartz_filter_view.gen.go index 59bda326..28278568 100644 --- a/macos/quartz/quartz_filter_view.gen.go +++ b/macos/quartz/quartz_filter_view.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package quartz @@ -41,10 +41,6 @@ func (qc _QuartzFilterViewClass) Alloc() QuartzFilterView { return rv } -func QuartzFilterView_Alloc() QuartzFilterView { - return QuartzFilterViewClass.Alloc() -} - func (qc _QuartzFilterViewClass) New() QuartzFilterView { rv := objc.Call[QuartzFilterView](qc, objc.Sel("new")) rv.Autorelease() diff --git a/macos/quartz/renderer.gen.go b/macos/quartz/renderer.gen.go index 4c3bad56..768a5825 100644 --- a/macos/quartz/renderer.gen.go +++ b/macos/quartz/renderer.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package quartz @@ -38,10 +38,6 @@ func (rc _RendererClass) Alloc() Renderer { return rv } -func Renderer_Alloc() Renderer { - return RendererClass.Alloc() -} - func (rc _RendererClass) New() Renderer { rv := objc.Call[Renderer](rc, objc.Sel("new")) rv.Autorelease() diff --git a/macos/quartz/save_options.gen.go b/macos/quartz/save_options.gen.go index 2955948c..c4504b10 100644 --- a/macos/quartz/save_options.gen.go +++ b/macos/quartz/save_options.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package quartz @@ -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) } @@ -63,10 +63,6 @@ func (sc _SaveOptionsClass) Alloc() SaveOptions { return rv } -func SaveOptions_Alloc() SaveOptions { - return SaveOptionsClass.Alloc() -} - func (sc _SaveOptionsClass) New() SaveOptions { rv := objc.Call[SaveOptions](sc, objc.Sel("new")) rv.Autorelease() @@ -96,6 +92,14 @@ func (s_ SaveOptions) AddSaveOptionsAccessoryViewToSavePanel(savePanel appkit.IS objc.Call[objc.Void](s_, objc.Sel("addSaveOptionsAccessoryViewToSavePanel:"), objc.Ptr(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 @@ -104,6 +108,14 @@ 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 @@ -119,22 +131,6 @@ 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 0e3435c1..79dae224 100644 --- a/macos/quartz/scanner_device_view.gen.go +++ b/macos/quartz/scanner_device_view.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package quartz @@ -20,29 +20,29 @@ type _ScannerDeviceViewClass struct { // An interface definition for the [ScannerDeviceView] class. type IScannerDeviceView interface { appkit.IView - DownloadsDirectory() foundation.URL - SetDownloadsDirectory(value foundation.IURL) - ScanControlLabel() string - SetScanControlLabel(value string) - HasDisplayModeSimple() bool - SetHasDisplayModeSimple(value bool) + OverviewControlLabel() string + SetOverviewControlLabel(value string) DisplaysDownloadsDirectoryControl() bool SetDisplaysDownloadsDirectoryControl(value bool) - DisplaysPostProcessApplicationControl() bool - SetDisplaysPostProcessApplicationControl(value bool) - TransferMode() ScannerDeviceViewTransferMode - SetTransferMode(value ScannerDeviceViewTransferMode) - Delegate() ScannerDeviceViewDelegateWrapper + Delegate() ScannerDeviceViewDelegateObject SetDelegate(value PScannerDeviceViewDelegate) SetDelegateObject(valueObject objc.IObject) - PostProcessApplication() foundation.URL - SetPostProcessApplication(value foundation.IURL) DocumentName() string SetDocumentName(value string) + PostProcessApplication() foundation.URL + SetPostProcessApplication(value foundation.IURL) + ScanControlLabel() string + SetScanControlLabel(value string) + TransferMode() ScannerDeviceViewTransferMode + SetTransferMode(value ScannerDeviceViewTransferMode) Mode() ScannerDeviceViewDisplayMode SetMode(value ScannerDeviceViewDisplayMode) - OverviewControlLabel() string - SetOverviewControlLabel(value string) + HasDisplayModeSimple() bool + SetHasDisplayModeSimple(value bool) + DownloadsDirectory() foundation.URL + SetDownloadsDirectory(value foundation.IURL) + DisplaysPostProcessApplicationControl() bool + SetDisplaysPostProcessApplicationControl(value bool) HasDisplayModeAdvanced() bool SetHasDisplayModeAdvanced(value bool) } @@ -65,10 +65,6 @@ func (sc _ScannerDeviceViewClass) Alloc() ScannerDeviceView { return rv } -func ScannerDeviceView_Alloc() ScannerDeviceView { - return ScannerDeviceViewClass.Alloc() -} - func (sc _ScannerDeviceViewClass) New() ScannerDeviceView { rv := objc.Call[ScannerDeviceView](sc, objc.Sel("new")) rv.Autorelease() @@ -98,49 +94,19 @@ func NewScannerDeviceViewWithFrame(frameRect foundation.Rect) ScannerDeviceView return instance } -// 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:"), objc.Ptr(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] +// Allows customization of the “Overview” label. [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")) +// [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 } -// The property that determines whether the scanner view uses the simple display mode. [Full Topic] +// Allows customization of the “Overview” label. [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) +// [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) } // Determines whether the downloads directory control is displayed. [Full Topic] @@ -158,41 +124,11 @@ 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 -func (s_ ScannerDeviceView) Delegate() ScannerDeviceViewDelegateWrapper { - rv := objc.Call[ScannerDeviceViewDelegateWrapper](s_, objc.Sel("delegate")) +func (s_ ScannerDeviceView) Delegate() ScannerDeviceViewDelegateObject { + rv := objc.Call[ScannerDeviceViewDelegateObject](s_, objc.Sel("delegate")) return rv } @@ -211,6 +147,21 @@ func (s_ ScannerDeviceView) SetDelegateObject(valueObject objc.IObject) { objc.Call[objc.Void](s_, objc.Sel("setDelegate:"), objc.Ptr(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 @@ -226,19 +177,34 @@ func (s_ ScannerDeviceView) SetPostProcessApplication(value foundation.IURL) { objc.Call[objc.Void](s_, objc.Sel("setPostProcessApplication:"), objc.Ptr(value)) } -// Returns the document name. [Full Topic] +// Allows customization of the “Scan” label. [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")) +// [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 } -// Returns the document name. [Full Topic] +// Allows customization of the “Scan” label. [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) +// [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] +// +// [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 display mode used by the device view. [Full Topic] @@ -256,19 +222,49 @@ func (s_ ScannerDeviceView) SetMode(value ScannerDeviceViewDisplayMode) { objc.Call[objc.Void](s_, objc.Sel("setMode:"), value) } -// Allows customization of the “Overview” label. [Full Topic] +// The property that determines whether the scanner view uses the simple display mode. [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/1504506-hasdisplaymodesimple?language=objc +func (s_ ScannerDeviceView) HasDisplayModeSimple() bool { + rv := objc.Call[bool](s_, objc.Sel("hasDisplayModeSimple")) return rv } -// Allows customization of the “Overview” label. [Full Topic] +// The property that determines whether the scanner view uses the simple display mode. [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/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:"), objc.Ptr(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) } // 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 d92d54c6..5d396672 100644 --- a/macos/quartz/scanner_device_view_delegate.gen.go +++ b/macos/quartz/scanner_device_view_delegate.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package quartz @@ -14,11 +14,26 @@ 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) + _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) } func (di *ScannerDeviceViewDelegate) HasScannerDeviceViewDidScanToURLError() bool { @@ -38,19 +53,106 @@ 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) +} -// A concrete type wrapper for the [PScannerDeviceViewDelegate] protocol. -type ScannerDeviceViewDelegateWrapper struct { +// ensure impl type implements protocol interface +var _ PScannerDeviceViewDelegate = (*ScannerDeviceViewDelegateObject)(nil) + +// A concrete type for the [PScannerDeviceViewDelegate] protocol. +type ScannerDeviceViewDelegateObject struct { objc.Object } -func (s_ ScannerDeviceViewDelegateWrapper) HasScannerDeviceViewDidScanToURLError() bool { +func (s_ ScannerDeviceViewDelegateObject) HasScannerDeviceViewDidScanToURLError() bool { return s_.RespondsToSelector(objc.Sel("scannerDeviceView:didScanToURL:error:")) } // [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/quartz/ikscannerdeviceviewdelegate/1504768-scannerdeviceview?language=objc -func (s_ ScannerDeviceViewDelegateWrapper) ScannerDeviceViewDidScanToURLError(scannerDeviceView IScannerDeviceView, url foundation.IURL, error foundation.IError) { +func (s_ ScannerDeviceViewDelegateObject) ScannerDeviceViewDidScanToURLError(scannerDeviceView ScannerDeviceView, url foundation.URL, error foundation.Error) { objc.Call[objc.Void](s_, objc.Sel("scannerDeviceView:didScanToURL:error:"), objc.Ptr(scannerDeviceView), objc.Ptr(url), objc.Ptr(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:"), objc.Ptr(scannerDeviceView), objc.Ptr(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:"), objc.Ptr(scannerDeviceView), objc.Ptr(url), data, objc.Ptr(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:"), objc.Ptr(scannerDeviceView), objc.Ptr(data), scanInfo, objc.Ptr(error)) +} diff --git a/macos/quartz/slideshow.gen.go b/macos/quartz/slideshow.gen.go index cd42bc32..8256cc30 100644 --- a/macos/quartz/slideshow.gen.go +++ b/macos/quartz/slideshow.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package quartz @@ -19,12 +19,12 @@ type _SlideshowClass struct { // An interface definition for the [Slideshow] class. type ISlideshow interface { objc.IObject - IndexOfCurrentSlideshowItem() uint + ReloadSlideshowItemAtIndex(index uint) + ReloadData() RunSlideshowWithDataSourceInModeOptions(dataSource PSlideshowDataSource, slideshowMode string, slideshowOptions foundation.Dictionary) RunSlideshowWithDataSourceObjectInModeOptions(dataSourceObject objc.IObject, slideshowMode string, slideshowOptions foundation.Dictionary) StopSlideshow(sender objc.IObject) - ReloadSlideshowItemAtIndex(index uint) - ReloadData() + IndexOfCurrentSlideshowItem() uint AutoPlayDelay() foundation.TimeInterval SetAutoPlayDelay(value foundation.TimeInterval) } @@ -47,10 +47,6 @@ func (sc _SlideshowClass) Alloc() Slideshow { return rv } -func Slideshow_Alloc() Slideshow { - return SlideshowClass.Alloc() -} - func (sc _SlideshowClass) New() Slideshow { rv := objc.Call[Slideshow](sc, objc.Sel("new")) rv.Autorelease() @@ -66,28 +62,35 @@ func (s_ Slideshow) Init() Slideshow { return rv } -// 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] +// Reloads the data for 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/1504298-reloaddata?language=objc +func (s_ Slideshow) ReloadData() { + objc.Call[objc.Void](s_, objc.Sel("reloadData")) } -// Returns the index of the current slideshow item. [Full Topic] +// Returns a shared instance of 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")) +// [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 } +// 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 @@ -103,13 +106,6 @@ func (s_ Slideshow) RunSlideshowWithDataSourceObjectInModeOptions(dataSourceObje objc.Call[objc.Void](s_, objc.Sel("runSlideshowWithDataSource:inMode:options:"), objc.Ptr(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 @@ -125,33 +121,33 @@ func Slideshow_CanExportToApplication(applicationBundleIdentifier string) bool { return SlideshowClass.CanExportToApplication(applicationBundleIdentifier) } -// 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) } -// Returns a shared instance of 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/1504883-sharedslideshow?language=objc -func (sc _SlideshowClass) SharedSlideshow() Slideshow { - rv := objc.Call[Slideshow](sc, objc.Sel("sharedSlideshow")) - return rv +// [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] +// Stops a slideshow. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/quartz/ikslideshow/1504883-sharedslideshow?language=objc -func Slideshow_SharedSlideshow() Slideshow { - return SlideshowClass.SharedSlideshow() +// [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) } -// Reloads the data for a slideshow. [Full Topic] +// Returns the index of the current slideshow item. [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/1503700-indexofcurrentslideshowitem?language=objc +func (s_ Slideshow) IndexOfCurrentSlideshowItem() uint { + rv := objc.Call[uint](s_, objc.Sel("indexOfCurrentSlideshowItem")) + return rv } // Controls the interval of time before a slideshow starts to play automatically. [Full Topic] diff --git a/macos/quartz/slideshow_data_source.gen.go b/macos/quartz/slideshow_data_source_protocol.gen.go similarity index 72% rename from macos/quartz/slideshow_data_source.gen.go rename to macos/quartz/slideshow_data_source_protocol.gen.go index ea59b811..99be1304 100644 --- a/macos/quartz/slideshow_data_source.gen.go +++ b/macos/quartz/slideshow_data_source_protocol.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package quartz @@ -11,116 +11,119 @@ import ( // [Full Topic]: https://developer.apple.com/documentation/quartz/ikslideshowdatasource?language=objc type PSlideshowDataSource interface { // optional - CanExportSlideshowItemAtIndexToApplication(index uint, applicationBundleIdentifier string) bool - HasCanExportSlideshowItemAtIndexToApplication() bool + NumberOfSlideshowItems() uint + HasNumberOfSlideshowItems() bool + + // optional + SlideshowWillStart() + HasSlideshowWillStart() bool // optional NameOfSlideshowItemAtIndex(index uint) string HasNameOfSlideshowItemAtIndex() bool // optional - NumberOfSlideshowItems() uint - HasNumberOfSlideshowItems() bool + CanExportSlideshowItemAtIndexToApplication(index uint, applicationBundleIdentifier string) bool + HasCanExportSlideshowItemAtIndexToApplication() bool // optional - SlideshowWillStart() - HasSlideshowWillStart() bool + SlideshowItemAtIndex(index uint) objc.Object + HasSlideshowItemAtIndex() bool // optional SlideshowDidStop() HasSlideshowDidStop() bool - // optional - SlideshowItemAtIndex(index uint) objc.IObject - HasSlideshowItemAtIndex() bool - // optional SlideshowDidChangeCurrentIndex(newIndex uint) HasSlideshowDidChangeCurrentIndex() bool } -// A concrete type wrapper for the [PSlideshowDataSource] protocol. -type SlideshowDataSourceWrapper struct { +// ensure impl type implements protocol interface +var _ PSlideshowDataSource = (*SlideshowDataSourceObject)(nil) + +// A concrete type for the [PSlideshowDataSource] protocol. +type SlideshowDataSourceObject struct { objc.Object } -func (s_ SlideshowDataSourceWrapper) 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_ SlideshowDataSourceWrapper) 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_ SlideshowDataSourceWrapper) HasNameOfSlideshowItemAtIndex() bool { +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:")) } // Returns the display name for item at the specified index. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/quartz/ikslideshowdatasource/1503638-nameofslideshowitematindex?language=objc -func (s_ SlideshowDataSourceWrapper) NameOfSlideshowItemAtIndex(index uint) string { +func (s_ SlideshowDataSourceObject) NameOfSlideshowItemAtIndex(index uint) string { rv := objc.Call[string](s_, objc.Sel("nameOfSlideshowItemAtIndex:"), index) return rv } -func (s_ SlideshowDataSourceWrapper) 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_ SlideshowDataSourceWrapper) 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_ SlideshowDataSourceWrapper) HasSlideshowWillStart() bool { - return s_.RespondsToSelector(objc.Sel("slideshowWillStart")) +func (s_ SlideshowDataSourceObject) HasSlideshowItemAtIndex() bool { + return s_.RespondsToSelector(objc.Sel("slideshowItemAtIndex:")) } -// Performs custom tasks when the slideshow is about to start. [Full Topic] +// Returns the item for a given index [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/quartz/ikslideshowdatasource/1504337-slideshowwillstart?language=objc -func (s_ SlideshowDataSourceWrapper) SlideshowWillStart() { - objc.Call[objc.Void](s_, objc.Sel("slideshowWillStart")) +// [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_ SlideshowDataSourceWrapper) HasSlideshowDidStop() bool { +func (s_ SlideshowDataSourceObject) HasSlideshowDidStop() bool { return s_.RespondsToSelector(objc.Sel("slideshowDidStop")) } // Performs custom tasks when the slideshow stops. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/quartz/ikslideshowdatasource/1504870-slideshowdidstop?language=objc -func (s_ SlideshowDataSourceWrapper) SlideshowDidStop() { +func (s_ SlideshowDataSourceObject) SlideshowDidStop() { objc.Call[objc.Void](s_, objc.Sel("slideshowDidStop")) } -func (s_ SlideshowDataSourceWrapper) 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_ SlideshowDataSourceWrapper) SlideshowItemAtIndex(index uint) objc.Object { - rv := objc.Call[objc.Object](s_, objc.Sel("slideshowItemAtIndex:"), index) - return rv -} - -func (s_ SlideshowDataSourceWrapper) HasSlideshowDidChangeCurrentIndex() bool { +func (s_ SlideshowDataSourceObject) HasSlideshowDidChangeCurrentIndex() bool { return s_.RespondsToSelector(objc.Sel("slideshowDidChangeCurrentIndex:")) } // Performs custom tasks when the slideshow changes to the item at the specified index. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/quartz/ikslideshowdatasource/1504272-slideshowdidchangecurrentindex?language=objc -func (s_ SlideshowDataSourceWrapper) SlideshowDidChangeCurrentIndex(newIndex uint) { +func (s_ SlideshowDataSourceObject) SlideshowDidChangeCurrentIndex(newIndex uint) { objc.Call[objc.Void](s_, objc.Sel("slideshowDidChangeCurrentIndex:"), newIndex) } diff --git a/macos/quartz/view.gen.go b/macos/quartz/view.gen.go index 803a0730..f5a824f8 100644 --- a/macos/quartz/view.gen.go +++ b/macos/quartz/view.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package quartz @@ -40,10 +40,6 @@ func (vc _ViewClass) Alloc() View { return rv } -func View_Alloc() View { - return ViewClass.Alloc() -} - func (vc _ViewClass) New() View { rv := objc.Call[View](vc, objc.Sel("new")) rv.Autorelease() diff --git a/macos/quartzcore/action.gen.go b/macos/quartzcore/action_protocol.gen.go similarity index 69% rename from macos/quartzcore/action.gen.go rename to macos/quartzcore/action_protocol.gen.go index 4bacd6c9..1f591ac7 100644 --- a/macos/quartzcore/action.gen.go +++ b/macos/quartzcore/action_protocol.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package quartzcore @@ -16,18 +16,21 @@ type PAction interface { HasRunActionForKeyObjectArguments() bool } -// A concrete type wrapper for the [PAction] protocol. -type ActionWrapper struct { +// ensure impl type implements protocol interface +var _ PAction = (*ActionObject)(nil) + +// A concrete type for the [PAction] protocol. +type ActionObject struct { objc.Object } -func (a_ ActionWrapper) HasRunActionForKeyObjectArguments() bool { +func (a_ ActionObject) HasRunActionForKeyObjectArguments() bool { return a_.RespondsToSelector(objc.Sel("runActionForKey:object:arguments:")) } // Called to trigger the action specified by the identifier. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/quartzcore/caaction/1410806-runactionforkey?language=objc -func (a_ ActionWrapper) RunActionForKeyObjectArguments(event string, anObject objc.IObject, dict foundation.Dictionary) { +func (a_ ActionObject) RunActionForKeyObjectArguments(event string, anObject objc.Object, dict foundation.Dictionary) { objc.Call[objc.Void](a_, objc.Sel("runActionForKey:object:arguments:"), event, anObject, dict) } diff --git a/macos/quartzcore/animation.gen.go b/macos/quartzcore/animation.gen.go index 5c55087a..40398b0e 100644 --- a/macos/quartzcore/animation.gen.go +++ b/macos/quartzcore/animation.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package quartzcore @@ -19,21 +19,21 @@ type _AnimationClass struct { type IAnimation interface { objc.IObject ShouldArchiveValueForKey(key string) bool - IsRemovedOnCompletion() bool - SetRemovedOnCompletion(value bool) - UsesSceneTimeBase() bool - SetUsesSceneTimeBase(value bool) - Delegate() AnimationDelegateWrapper - SetDelegate(value PAnimationDelegate) - SetDelegateObject(valueObject objc.IObject) - FadeInDuration() float64 - SetFadeInDuration(value float64) - FadeOutDuration() float64 - SetFadeOutDuration(value float64) TimingFunction() MediaTimingFunction SetTimingFunction(value IMediaTimingFunction) + FadeInDuration() float64 + SetFadeInDuration(value float64) + Delegate() AnimationDelegateObject + SetDelegate(value PAnimationDelegate) + SetDelegateObject(valueObject objc.IObject) PreferredFrameRateRange() FrameRateRange SetPreferredFrameRateRange(value FrameRateRange) + FadeOutDuration() float64 + SetFadeOutDuration(value float64) + IsRemovedOnCompletion() bool + SetRemovedOnCompletion(value bool) + UsesSceneTimeBase() bool + SetUsesSceneTimeBase(value bool) } // The abstract superclass for animations in Core Animation. [Full Topic] @@ -66,10 +66,6 @@ func (ac _AnimationClass) Alloc() Animation { return rv } -func Animation_Alloc() Animation { - return AnimationClass.Alloc() -} - func (ac _AnimationClass) New() Animation { rv := objc.Call[Animation](ac, objc.Sel("new")) rv.Autorelease() @@ -108,41 +104,41 @@ func (a_ Animation) ShouldArchiveValueForKey(key string) bool { 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) 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:"), objc.Ptr(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] +// 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/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/1523370-fadeinduration?language=objc +func (a_ Animation) FadeInDuration() float64 { + rv := objc.Call[float64](a_, objc.Sel("fadeInDuration")) 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] +// 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/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/1523370-fadeinduration?language=objc +func (a_ Animation) SetFadeInDuration(value float64) { + objc.Call[objc.Void](a_, objc.Sel("setFadeInDuration:"), value) } // Specifies the receiver’s delegate object. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/quartzcore/caanimation/1412490-delegate?language=objc -func (a_ Animation) Delegate() AnimationDelegateWrapper { - rv := objc.Call[AnimationDelegateWrapper](a_, objc.Sel("delegate")) +func (a_ Animation) Delegate() AnimationDelegateObject { + rv := objc.Call[AnimationDelegateObject](a_, objc.Sel("delegate")) return rv } @@ -161,19 +157,19 @@ func (a_ Animation) SetDelegateObject(valueObject objc.IObject) { objc.Call[objc.Void](a_, objc.Sel("setDelegate:"), objc.Ptr(valueObject)) } -// For animations attached to SceneKit objects, the duration for transitioning into the animation’s effect as it begins. [Full Topic] +// [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/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, the duration for transitioning into the animation’s effect as it begins. [Full Topic] +// [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/3875342-preferredframeraterange?language=objc +func (a_ Animation) SetPreferredFrameRateRange(value FrameRateRange) { + objc.Call[objc.Void](a_, objc.Sel("setPreferredFrameRateRange:"), value) } // For animations attached to SceneKit objects, the duration for transitioning out of the animation’s effect as it ends. [Full Topic] @@ -191,32 +187,32 @@ func (a_ Animation) SetFadeOutDuration(value float64) { objc.Call[objc.Void](a_, objc.Sel("setFadeOutDuration:"), value) } -// 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:"), objc.Ptr(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) } -// [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/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/1523819-usesscenetimebase?language=objc +func (a_ Animation) UsesSceneTimeBase() bool { + rv := objc.Call[bool](a_, objc.Sel("usesSceneTimeBase")) return rv } -// [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/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/1523819-usesscenetimebase?language=objc +func (a_ Animation) SetUsesSceneTimeBase(value bool) { + objc.Call[objc.Void](a_, objc.Sel("setUsesSceneTimeBase:"), value) } diff --git a/macos/quartzcore/animation_delegate.gen.go b/macos/quartzcore/animation_delegate.gen.go index 9efc59fd..9cea60de 100644 --- a/macos/quartzcore/animation_delegate.gen.go +++ b/macos/quartzcore/animation_delegate.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package quartzcore @@ -60,29 +60,32 @@ func (di *AnimationDelegate) AnimationDidStopFinished(anim Animation, flag bool) di._AnimationDidStopFinished(anim, flag) } -// A concrete type wrapper for the [PAnimationDelegate] protocol. -type AnimationDelegateWrapper struct { +// ensure impl type implements protocol interface +var _ PAnimationDelegate = (*AnimationDelegateObject)(nil) + +// A concrete type for the [PAnimationDelegate] protocol. +type AnimationDelegateObject struct { objc.Object } -func (a_ AnimationDelegateWrapper) HasAnimationDidStart() bool { +func (a_ AnimationDelegateObject) HasAnimationDidStart() bool { return a_.RespondsToSelector(objc.Sel("animationDidStart:")) } // Tells the delegate the animation has started. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/quartzcore/caanimationdelegate/2097265-animationdidstart?language=objc -func (a_ AnimationDelegateWrapper) AnimationDidStart(anim IAnimation) { +func (a_ AnimationDelegateObject) AnimationDidStart(anim Animation) { objc.Call[objc.Void](a_, objc.Sel("animationDidStart:"), objc.Ptr(anim)) } -func (a_ AnimationDelegateWrapper) HasAnimationDidStopFinished() bool { +func (a_ AnimationDelegateObject) HasAnimationDidStopFinished() bool { return a_.RespondsToSelector(objc.Sel("animationDidStop:finished:")) } // Tells the delegate the animation has ended. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/quartzcore/caanimationdelegate/2097259-animationdidstop?language=objc -func (a_ AnimationDelegateWrapper) AnimationDidStopFinished(anim IAnimation, flag bool) { +func (a_ AnimationDelegateObject) AnimationDidStopFinished(anim Animation, flag bool) { objc.Call[objc.Void](a_, objc.Sel("animationDidStop:finished:"), objc.Ptr(anim), flag) } diff --git a/macos/quartzcore/animation_group.gen.go b/macos/quartzcore/animation_group.gen.go index 5939f6cf..2d144089 100644 --- a/macos/quartzcore/animation_group.gen.go +++ b/macos/quartzcore/animation_group.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package quartzcore @@ -40,10 +40,6 @@ func (ac _AnimationGroupClass) Alloc() AnimationGroup { return rv } -func AnimationGroup_Alloc() AnimationGroup { - return AnimationGroupClass.Alloc() -} - func (ac _AnimationGroupClass) New() AnimationGroup { rv := objc.Call[AnimationGroup](ac, objc.Sel("new")) rv.Autorelease() diff --git a/macos/quartzcore/basic_animation.gen.go b/macos/quartzcore/basic_animation.gen.go index b015566e..1cf0f605 100644 --- a/macos/quartzcore/basic_animation.gen.go +++ b/macos/quartzcore/basic_animation.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package quartzcore @@ -18,12 +18,12 @@ type _BasicAnimationClass struct { // An interface definition for the [BasicAnimation] class. type IBasicAnimation interface { IPropertyAnimation - ByValue() objc.Object - SetByValue(value objc.IObject) - FromValue() objc.Object - SetFromValue(value objc.IObject) ToValue() objc.Object SetToValue(value objc.IObject) + FromValue() objc.Object + SetFromValue(value objc.IObject) + ByValue() objc.Object + SetByValue(value objc.IObject) } // An object that provides basic, single-keyframe animation capabilities for a layer property. [Full Topic] @@ -44,10 +44,6 @@ func (bc _BasicAnimationClass) Alloc() BasicAnimation { return rv } -func BasicAnimation_Alloc() BasicAnimation { - return BasicAnimationClass.Alloc() -} - func (bc _BasicAnimationClass) New() BasicAnimation { rv := objc.Call[BasicAnimation](bc, objc.Sel("new")) rv.Autorelease() @@ -87,19 +83,19 @@ func BasicAnimation_Animation() BasicAnimation { return BasicAnimationClass.Animation() } -// 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) } // Defines the value the receiver uses to start interpolation. [Full Topic] @@ -117,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 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) } diff --git a/macos/quartzcore/constraint.gen.go b/macos/quartzcore/constraint.gen.go index d05b9e36..c1e59de3 100644 --- a/macos/quartzcore/constraint.gen.go +++ b/macos/quartzcore/constraint.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package quartzcore @@ -18,11 +18,11 @@ type _ConstraintClass struct { // An interface definition for the [Constraint] class. type IConstraint interface { objc.IObject - Scale() float64 Attribute() ConstraintAttribute + Scale() float64 + SourceAttribute() ConstraintAttribute SourceName() string Offset() float64 - SourceAttribute() ConstraintAttribute } // A representation of a single layout constraint between two layers. [Full Topic] @@ -64,13 +64,33 @@ func NewConstraintWithAttributeRelativeToAttributeScaleOffset(attr ConstraintAtt return instance } -func (cc _ConstraintClass) Alloc() Constraint { - rv := objc.Call[Constraint](cc, objc.Sel("alloc")) +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 } -func Constraint_Alloc() Constraint { - return ConstraintClass.Alloc() +// 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 } func (cc _ConstraintClass) New() Constraint { @@ -88,6 +108,14 @@ 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 @@ -96,11 +124,11 @@ func (c_ Constraint) Scale() float64 { return rv } -// The attribute the constraint affects. [Full Topic] +// The constraint attribute of the layer the receiver is calculated relative to [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")) +// [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 } @@ -119,11 +147,3 @@ 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/constraint_layout_manager.gen.go b/macos/quartzcore/constraint_layout_manager.gen.go index 27da1147..c77a5c3d 100644 --- a/macos/quartzcore/constraint_layout_manager.gen.go +++ b/macos/quartzcore/constraint_layout_manager.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package quartzcore @@ -50,10 +50,6 @@ func (cc _ConstraintLayoutManagerClass) Alloc() ConstraintLayoutManager { return rv } -func ConstraintLayoutManager_Alloc() ConstraintLayoutManager { - return ConstraintLayoutManagerClass.Alloc() -} - func (cc _ConstraintLayoutManagerClass) New() ConstraintLayoutManager { rv := objc.Call[ConstraintLayoutManager](cc, objc.Sel("new")) rv.Autorelease() diff --git a/macos/quartzcore/doc.gen.go b/macos/quartzcore/doc.gen.go index c417e11b..c8fd0f5c 100644 --- a/macos/quartzcore/doc.gen.go +++ b/macos/quartzcore/doc.gen.go @@ -1,8 +1,8 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. // Render, compose, and animate visual elements. // -// [Full Documentation] +// [Apple Documentation] // -// [Full Documentation]: https://developer.apple.com/documentation/quartzcore?language=objc +// [Apple Documentation]: https://developer.apple.com/documentation/quartzcore?language=objc package quartzcore diff --git a/macos/quartzcore/edr_metadata.gen.go b/macos/quartzcore/edr_metadata.gen.go index 59b66466..68181c6e 100644 --- a/macos/quartzcore/edr_metadata.gen.go +++ b/macos/quartzcore/edr_metadata.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package quartzcore @@ -38,10 +38,6 @@ func (ec _EDRMetadataClass) Alloc() EDRMetadata { return rv } -func EDRMetadata_Alloc() EDRMetadata { - return EDRMetadataClass.Alloc() -} - func (ec _EDRMetadataClass) New() EDRMetadata { rv := objc.Call[EDRMetadata](ec, objc.Sel("new")) rv.Autorelease() @@ -57,21 +53,6 @@ func (e_ EDRMetadata) Init() EDRMetadata { return rv } -// 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 -func (ec _EDRMetadataClass) HDR10MetadataWithMinLuminanceMaxLuminanceOpticalOutputScale(minNits float64, maxNits float64, scale float64) EDRMetadata { - rv := objc.Call[EDRMetadata](ec, objc.Sel("HDR10MetadataWithMinLuminance:maxLuminance:opticalOutputScale:"), minNits, maxNits, scale) - return rv -} - -// 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 -func EDRMetadata_HDR10MetadataWithMinLuminanceMaxLuminanceOpticalOutputScale(minNits float64, maxNits float64, scale float64) EDRMetadata { - 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 @@ -87,6 +68,21 @@ func EDRMetadata_HDR10MetadataWithDisplayInfoContentInfoOpticalOutputScale(displ 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 +func (ec _EDRMetadataClass) HDR10MetadataWithMinLuminanceMaxLuminanceOpticalOutputScale(minNits float64, maxNits float64, scale float64) EDRMetadata { + rv := objc.Call[EDRMetadata](ec, objc.Sel("HDR10MetadataWithMinLuminance:maxLuminance:opticalOutputScale:"), minNits, maxNits, scale) + return rv +} + +// 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 +func EDRMetadata_HDR10MetadataWithMinLuminanceMaxLuminanceOpticalOutputScale(minNits float64, maxNits float64, scale float64) EDRMetadata { + return EDRMetadataClass.HDR10MetadataWithMinLuminanceMaxLuminanceOpticalOutputScale(minNits, maxNits, 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 c6528218..e074aad1 100644 --- a/macos/quartzcore/emitter_cell.gen.go +++ b/macos/quartzcore/emitter_cell.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package quartzcore @@ -21,76 +21,76 @@ type _EmitterCellClass struct { type IEmitterCell interface { objc.IObject ShouldArchiveValueForKey(key string) bool - XAcceleration() float64 - SetXAcceleration(value float64) - Color() coregraphics.ColorRef - SetColor(value coregraphics.ColorRef) - VelocityRange() float64 - SetVelocityRange(value float64) - Scale() float64 - SetScale(value float64) + SpinRange() float64 + SetSpinRange(value float64) GreenRange() float64 SetGreenRange(value float64) + MagnificationFilter() string + SetMagnificationFilter(value string) + XAcceleration() float64 + SetXAcceleration(value float64) AlphaRange() float64 SetAlphaRange(value float64) - BirthRate() float64 - SetBirthRate(value float64) - AlphaSpeed() float64 - SetAlphaSpeed(value float64) - GreenSpeed() float64 - SetGreenSpeed(value float64) - 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) - 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) - ZAcceleration() float64 - SetZAcceleration(value float64) - LifetimeRange() float64 - SetLifetimeRange(value float64) Contents() objc.Object SetContents(value objc.IObject) - RedRange() float64 - SetRedRange(value float64) - EmissionRange() float64 - SetEmissionRange(value float64) - MagnificationFilter() string - SetMagnificationFilter(value string) - Lifetime() float64 - SetLifetime(value float64) + BirthRate() float64 + SetBirthRate(value float64) EmitterCells() []EmitterCell SetEmitterCells(value []IEmitterCell) + ContentsScale() float64 + SetContentsScale(value float64) + BlueRange() float64 + SetBlueRange(value float64) + MinificationFilterBias() float64 + SetMinificationFilterBias(value float64) + 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() float64 SetBlueSpeed(value float64) + RedRange() float64 + SetRedRange(value float64) + ZAcceleration() float64 + SetZAcceleration(value float64) + LifetimeRange() float64 + SetLifetimeRange(value float64) + ContentsRect() coregraphics.Rect + SetContentsRect(value coregraphics.Rect) + Velocity() float64 + SetVelocity(value float64) + MinificationFilter() string + SetMinificationFilter(value string) IsEnabled() bool SetEnabled(value bool) - EmissionLongitude() float64 - SetEmissionLongitude(value float64) + EmissionLatitude() float64 + SetEmissionLatitude(value float64) + Scale() float64 + SetScale(value float64) RedSpeed() float64 SetRedSpeed(value float64) - Velocity() float64 - SetVelocity(value float64) - BlueRange() float64 - SetBlueRange(value float64) - MinificationFilterBias() float64 - SetMinificationFilterBias(value float64) + EmissionRange() float64 + SetEmissionRange(value float64) + AlphaSpeed() float64 + SetAlphaSpeed(value float64) + Lifetime() float64 + SetLifetime(value float64) + Style() foundation.Dictionary + SetStyle(value foundation.Dictionary) + GreenSpeed() float64 + SetGreenSpeed(value float64) } // The definition of a particle emitted by a CAEmitterLayer. [Full Topic] @@ -123,10 +123,6 @@ func (ec _EmitterCellClass) Alloc() EmitterCell { return rv } -func EmitterCell_Alloc() EmitterCell { - return EmitterCellClass.Alloc() -} - func (ec _EmitterCellClass) New() EmitterCell { rv := objc.Call[EmitterCell](ec, objc.Sel("new")) rv.Autorelease() @@ -165,79 +161,64 @@ func (e_ EmitterCell) ShouldArchiveValueForKey(key string) bool { return rv } -// The x component of an acceleration vector applied to cell. [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")) - return rv -} - -// The x component of an acceleration vector applied to cell. [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) -} - -// The color of each emitted object. 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/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/1522084-spinrange?language=objc +func (e_ EmitterCell) SpinRange() float64 { + rv := objc.Call[float64](e_, objc.Sel("spinRange")) return rv } -// The color of each emitted object. 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/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/1522084-spinrange?language=objc +func (e_ EmitterCell) SetSpinRange(value float64) { + objc.Call[objc.Void](e_, objc.Sel("setSpinRange:"), value) } -// The amount by which the velocity of the cell can vary. Animatable. [Full Topic] +// 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/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/1521867-greenrange?language=objc +func (e_ EmitterCell) GreenRange() float64 { + rv := objc.Call[float64](e_, objc.Sel("greenRange")) return rv } -// The amount by which the velocity of the cell can vary. Animatable. [Full Topic] +// 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/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/1521867-greenrange?language=objc +func (e_ EmitterCell) SetGreenRange(value float64) { + objc.Call[objc.Void](e_, objc.Sel("setGreenRange:"), value) } -// Specifies the scale factor applied to the cell. Animatable. [Full Topic] +// The filter used when increasing the size of the content. [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/1522228-magnificationfilter?language=objc +func (e_ EmitterCell) MagnificationFilter() string { + rv := objc.Call[string](e_, objc.Sel("magnificationFilter")) return rv } -// Specifies the scale factor applied to the cell. Animatable. [Full Topic] +// The filter used when increasing the size of the content. [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/1522228-magnificationfilter?language=objc +func (e_ EmitterCell) SetMagnificationFilter(value string) { + objc.Call[objc.Void](e_, objc.Sel("setMagnificationFilter:"), value) } -// The amount by which the green color component of the cell can vary. Animatable. [Full Topic] +// The x component of an acceleration vector applied to cell. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/quartzcore/caemittercell/1521867-greenrange?language=objc -func (e_ EmitterCell) GreenRange() float64 { - rv := objc.Call[float64](e_, objc.Sel("greenRange")) +// [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 green color component of the cell can vary. Animatable. [Full Topic] +// The x component of an acceleration vector applied to cell. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/quartzcore/caemittercell/1521867-greenrange?language=objc -func (e_ EmitterCell) SetGreenRange(value float64) { - objc.Call[objc.Void](e_, objc.Sel("setGreenRange:"), 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 alpha component of the cell can vary. Animatable. [Full Topic] @@ -255,6 +236,36 @@ func (e_ EmitterCell) SetAlphaRange(value float64) { 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 @@ -270,64 +281,79 @@ func (e_ EmitterCell) SetBirthRate(value float64) { objc.Call[objc.Void](e_, objc.Sel("setBirthRate:"), value) } -// The speed, in seconds, at which the alpha component changes over the lifetime of 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/1522120-alphaspeed?language=objc -func (e_ EmitterCell) AlphaSpeed() float64 { - rv := objc.Call[float64](e_, objc.Sel("alphaSpeed")) +// [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 } -// The speed, in seconds, at which the alpha component changes over the lifetime of 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/1522120-alphaspeed?language=objc -func (e_ EmitterCell) SetAlphaSpeed(value float64) { - objc.Call[objc.Void](e_, objc.Sel("setAlphaSpeed:"), 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 green color component changes over the lifetime of the cell. Animatable. [Full Topic] +// The scale factor of the cell contents. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/quartzcore/caemittercell/1521946-greenspeed?language=objc -func (e_ EmitterCell) GreenSpeed() float64 { - rv := objc.Call[float64](e_, objc.Sel("greenSpeed")) +// [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 speed, in seconds, at which the green color component changes over the lifetime of the cell. Animatable. [Full Topic] +// The scale factor of the cell contents. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/quartzcore/caemittercell/1521946-greenspeed?language=objc -func (e_ EmitterCell) SetGreenSpeed(value float64) { - objc.Call[objc.Void](e_, objc.Sel("setGreenSpeed:"), 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 name of the cell. [Full Topic] +// 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/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/1522158-bluerange?language=objc +func (e_ EmitterCell) BlueRange() float64 { + rv := objc.Call[float64](e_, objc.Sel("blueRange")) return rv } -// The name of the cell. [Full Topic] +// 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/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/1522158-bluerange?language=objc +func (e_ EmitterCell) SetBlueRange(value float64) { + objc.Call[objc.Void](e_, objc.Sel("setBlueRange:"), value) } -// The latitudinal orientation of the emission angle. 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/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/1521907-minificationfilterbias?language=objc +func (e_ EmitterCell) MinificationFilterBias() float64 { + rv := objc.Call[float64](e_, objc.Sel("minificationFilterBias")) return rv } -// The latitudinal orientation of the emission angle. 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/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/1521907-minificationfilterbias?language=objc +func (e_ EmitterCell) SetMinificationFilterBias(value float64) { + objc.Call[objc.Void](e_, objc.Sel("setMinificationFilterBias:"), value) +} + +// Specifies the range over which the scale value can vary. 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")) + return rv +} + +// Specifies the range over which the scale value can vary. 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) } // The y component of an acceleration vector applied to cell. [Full Topic] @@ -345,109 +371,109 @@ func (e_ EmitterCell) SetYAcceleration(value float64) { objc.Call[objc.Void](e_, objc.Sel("setYAcceleration:"), value) } -// The filter used when reducing 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/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/1522330-velocityrange?language=objc +func (e_ EmitterCell) VelocityRange() float64 { + rv := objc.Call[float64](e_, objc.Sel("velocityRange")) return rv } -// The filter used when reducing 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/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/1522330-velocityrange?language=objc +func (e_ EmitterCell) SetVelocityRange(value float64) { + objc.Call[objc.Void](e_, objc.Sel("setVelocityRange:"), value) } -// The scale factor of the cell contents. [Full Topic] +// The name of the cell. [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/1521909-name?language=objc +func (e_ EmitterCell) Name() string { + rv := objc.Call[string](e_, objc.Sel("name")) return rv } -// The scale factor of the cell contents. [Full Topic] +// The name of the cell. [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/1521909-name?language=objc +func (e_ EmitterCell) SetName(value string) { + objc.Call[objc.Void](e_, objc.Sel("setName:"), value) } -// The amount by which the spin of the cell can vary over its lifetime. 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/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/1522361-spin?language=objc +func (e_ EmitterCell) Spin() float64 { + rv := objc.Call[float64](e_, objc.Sel("spin")) return rv } -// The amount by which the spin of the cell can vary over its lifetime. 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/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/1522361-spin?language=objc +func (e_ EmitterCell) SetSpin(value float64) { + objc.Call[objc.Void](e_, objc.Sel("setSpin:"), value) } -// The speed at which the scale changes over the lifetime of the cell. Animatable. [Full Topic] +// The longitudinal orientation of the emission angle. 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")) +// [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 speed at which the scale changes over the lifetime of the cell. Animatable. [Full Topic] +// The longitudinal orientation of the emission angle. 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) +// [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) } -// A rectangle (in the unit coordinate space) that specifies the portion of contents that the receiver should draw. Animatable. [Full Topic] +// The color of each emitted object. 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/1522322-color?language=objc +func (e_ EmitterCell) Color() coregraphics.ColorRef { + rv := objc.Call[coregraphics.ColorRef](e_, objc.Sel("color")) return rv } -// A rectangle (in the unit coordinate space) that specifies the portion of contents that the receiver should draw. Animatable. [Full Topic] +// The color of each emitted object. 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/1522322-color?language=objc +func (e_ EmitterCell) SetColor(value coregraphics.ColorRef) { + objc.Call[objc.Void](e_, objc.Sel("setColor:"), 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 blue 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/1522082-bluespeed?language=objc +func (e_ EmitterCell) BlueSpeed() float64 { + rv := objc.Call[float64](e_, objc.Sel("blueSpeed")) 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 blue 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/1522082-bluespeed?language=objc +func (e_ EmitterCell) SetBlueSpeed(value float64) { + objc.Call[objc.Void](e_, objc.Sel("setBlueSpeed:"), value) } -// Specifies the range over which the scale value can vary. 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/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/1522176-redrange?language=objc +func (e_ EmitterCell) RedRange() float64 { + rv := objc.Call[float64](e_, objc.Sel("redRange")) return rv } -// Specifies the range over which the scale value can vary. 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/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/1522176-redrange?language=objc +func (e_ EmitterCell) SetRedRange(value float64) { + objc.Call[objc.Void](e_, objc.Sel("setRedRange:"), value) } // The z component of an acceleration vector applied to cell. [Full Topic] @@ -465,7 +491,7 @@ func (e_ EmitterCell) SetZAcceleration(value float64) { objc.Call[objc.Void](e_, objc.Sel("setZAcceleration:"), value) } -// The mean value by which the lifetime of the cell can vary. Animatable. [Full Topic] +// The mean value by which the [quartzcore/caemittercell/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() float64 { @@ -473,219 +499,189 @@ func (e_ EmitterCell) LifetimeRange() float64 { return rv } -// The mean value by which the lifetime of the cell can vary. Animatable. [Full Topic] +// The mean value by which the [quartzcore/caemittercell/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 float64) { objc.Call[objc.Void](e_, objc.Sel("setLifetimeRange:"), 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 amount by which the red color component of the cell can vary. Animatable. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/quartzcore/caemittercell/1522176-redrange?language=objc -func (e_ EmitterCell) RedRange() float64 { - rv := objc.Call[float64](e_, objc.Sel("redRange")) - return rv -} - -// The amount by which the red color component of the cell can vary. Animatable. [Full Topic] +// A rectangle (in the unit coordinate space) that specifies the portion of [quartzcore/caemittercell/contents] that the receiver should draw. Animatable. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/quartzcore/caemittercell/1522176-redrange?language=objc -func (e_ EmitterCell) SetRedRange(value float64) { - objc.Call[objc.Void](e_, objc.Sel("setRedRange:"), value) -} - -// The angle, in radians, defining a cone around the emission angle. 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/1522124-contentsrect?language=objc +func (e_ EmitterCell) ContentsRect() coregraphics.Rect { + rv := objc.Call[coregraphics.Rect](e_, objc.Sel("contentsRect")) return rv } -// The angle, in radians, defining a cone around the emission angle. Animatable. [Full Topic] +// A rectangle (in the unit coordinate space) that specifies the portion of [quartzcore/caemittercell/contents] that the receiver should draw. 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/1522124-contentsrect?language=objc +func (e_ EmitterCell) SetContentsRect(value coregraphics.Rect) { + objc.Call[objc.Void](e_, objc.Sel("setContentsRect:"), value) } -// The filter used when increasing the size of the content. [Full Topic] +// The initial velocity of the cell. 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/1521837-velocity?language=objc +func (e_ EmitterCell) Velocity() float64 { + rv := objc.Call[float64](e_, objc.Sel("velocity")) return rv } -// The filter used when increasing the size of the content. [Full Topic] +// The initial velocity of the cell. 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/1521837-velocity?language=objc +func (e_ EmitterCell) SetVelocity(value float64) { + objc.Call[objc.Void](e_, objc.Sel("setVelocity:"), value) } -// The lifetime of the cell, in seconds. Animatable. [Full Topic] +// The filter used when reducing the size of the content. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/quartzcore/caemittercell/1522075-lifetime?language=objc -func (e_ EmitterCell) Lifetime() float64 { - rv := objc.Call[float64](e_, objc.Sel("lifetime")) +// [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 lifetime of the cell, in seconds. Animatable. [Full Topic] +// The filter used when reducing the size of the content. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/quartzcore/caemittercell/1522075-lifetime?language=objc -func (e_ EmitterCell) SetLifetime(value float64) { - objc.Call[objc.Void](e_, objc.Sel("setLifetime:"), 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) } -// An optional array containing the sub-cells of this cell. [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/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/1521831-enabled?language=objc +func (e_ EmitterCell) IsEnabled() bool { + rv := objc.Call[bool](e_, objc.Sel("isEnabled")) return rv } -// An optional array containing the sub-cells of this cell. [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/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/1521831-enabled?language=objc +func (e_ EmitterCell) SetEnabled(value bool) { + objc.Call[objc.Void](e_, objc.Sel("setEnabled:"), value) } -// The rotational velocity, measured in radians per second, to apply to the cell. Animatable. [Full Topic] +// The latitudinal orientation of the emission angle. 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/1521857-emissionlatitude?language=objc +func (e_ EmitterCell) EmissionLatitude() float64 { + rv := objc.Call[float64](e_, objc.Sel("emissionLatitude")) return rv } -// The rotational velocity, measured in radians per second, to apply to the cell. Animatable. [Full Topic] +// The latitudinal orientation of the emission angle. 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/1521857-emissionlatitude?language=objc +func (e_ EmitterCell) SetEmissionLatitude(value float64) { + objc.Call[objc.Void](e_, objc.Sel("setEmissionLatitude:"), value) } -// The speed, in seconds, at which the blue color component changes over the lifetime of the cell. Animatable. [Full Topic] +// Specifies the scale factor applied to the cell. Animatable. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/quartzcore/caemittercell/1522082-bluespeed?language=objc -func (e_ EmitterCell) BlueSpeed() float64 { - rv := objc.Call[float64](e_, objc.Sel("blueSpeed")) +// [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 speed, in seconds, at which the blue color component changes over the lifetime of the cell. Animatable. [Full Topic] +// Specifies the scale factor applied to the cell. Animatable. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/quartzcore/caemittercell/1522082-bluespeed?language=objc -func (e_ EmitterCell) SetBlueSpeed(value float64) { - objc.Call[objc.Void](e_, objc.Sel("setBlueSpeed:"), 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) } -// A Boolean value indicating whether or not cells from this emitter are rendered. [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/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/1521859-redspeed?language=objc +func (e_ EmitterCell) RedSpeed() float64 { + rv := objc.Call[float64](e_, objc.Sel("redSpeed")) return rv } -// A Boolean value indicating whether or not cells from this emitter are rendered. [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/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/1521859-redspeed?language=objc +func (e_ EmitterCell) SetRedSpeed(value float64) { + objc.Call[objc.Void](e_, objc.Sel("setRedSpeed:"), value) } -// The longitudinal orientation of the emission angle. Animatable. [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/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/1521847-emissionrange?language=objc +func (e_ EmitterCell) EmissionRange() float64 { + rv := objc.Call[float64](e_, objc.Sel("emissionRange")) return rv } -// The longitudinal orientation of the emission angle. Animatable. [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/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/1521847-emissionrange?language=objc +func (e_ EmitterCell) SetEmissionRange(value float64) { + objc.Call[objc.Void](e_, objc.Sel("setEmissionRange:"), value) } -// The speed, in seconds, at which the red color component changes over the lifetime of the cell. Animatable. [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/1521859-redspeed?language=objc -func (e_ EmitterCell) RedSpeed() float64 { - rv := objc.Call[float64](e_, objc.Sel("redSpeed")) +// [Full Topic]: https://developer.apple.com/documentation/quartzcore/caemittercell/1522120-alphaspeed?language=objc +func (e_ EmitterCell) AlphaSpeed() float64 { + rv := objc.Call[float64](e_, objc.Sel("alphaSpeed")) return rv } -// The speed, in seconds, at which the red color component changes over the lifetime of the cell. Animatable. [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/1521859-redspeed?language=objc -func (e_ EmitterCell) SetRedSpeed(value float64) { - objc.Call[objc.Void](e_, objc.Sel("setRedSpeed:"), value) +// [Full Topic]: https://developer.apple.com/documentation/quartzcore/caemittercell/1522120-alphaspeed?language=objc +func (e_ EmitterCell) SetAlphaSpeed(value float64) { + objc.Call[objc.Void](e_, objc.Sel("setAlphaSpeed:"), value) } -// The initial velocity of the cell. Animatable. [Full Topic] +// The lifetime of the cell, in seconds. 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/1522075-lifetime?language=objc +func (e_ EmitterCell) Lifetime() float64 { + rv := objc.Call[float64](e_, objc.Sel("lifetime")) return rv } -// The initial velocity of the cell. Animatable. [Full Topic] +// The lifetime of the cell, in seconds. 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/1522075-lifetime?language=objc +func (e_ EmitterCell) SetLifetime(value float64) { + objc.Call[objc.Void](e_, objc.Sel("setLifetime:"), value) } -// The amount by which the blue color component of the cell can vary. 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/1522158-bluerange?language=objc -func (e_ EmitterCell) BlueRange() float64 { - rv := objc.Call[float64](e_, objc.Sel("blueRange")) +// [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 amount by which the blue color component of the cell can vary. 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/1522158-bluerange?language=objc -func (e_ EmitterCell) SetBlueRange(value float64) { - objc.Call[objc.Void](e_, objc.Sel("setBlueRange:"), 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 bias factor used by the minification filter to determine the levels of detail. [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/1521907-minificationfilterbias?language=objc -func (e_ EmitterCell) MinificationFilterBias() float64 { - rv := objc.Call[float64](e_, objc.Sel("minificationFilterBias")) +// [Full Topic]: https://developer.apple.com/documentation/quartzcore/caemittercell/1521946-greenspeed?language=objc +func (e_ EmitterCell) GreenSpeed() float64 { + rv := objc.Call[float64](e_, objc.Sel("greenSpeed")) return rv } -// The bias factor used by the minification filter to determine the levels of detail. [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/1521907-minificationfilterbias?language=objc -func (e_ EmitterCell) SetMinificationFilterBias(value float64) { - objc.Call[objc.Void](e_, objc.Sel("setMinificationFilterBias:"), value) +// [Full Topic]: https://developer.apple.com/documentation/quartzcore/caemittercell/1521946-greenspeed?language=objc +func (e_ EmitterCell) SetGreenSpeed(value float64) { + objc.Call[objc.Void](e_, objc.Sel("setGreenSpeed:"), value) } diff --git a/macos/quartzcore/emitter_layer.gen.go b/macos/quartzcore/emitter_layer.gen.go index bff18f3f..7b3375fa 100644 --- a/macos/quartzcore/emitter_layer.gen.go +++ b/macos/quartzcore/emitter_layer.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package quartzcore @@ -19,36 +19,36 @@ type _EmitterLayerClass struct { // An interface definition for the [EmitterLayer] class. type IEmitterLayer interface { ILayer - Scale() float64 - SetScale(value float64) - EmitterMode() EmitterLayerEmitterMode - SetEmitterMode(value EmitterLayerEmitterMode) - BirthRate() float64 - SetBirthRate(value float64) - EmitterZPosition() float64 - SetEmitterZPosition(value float64) - EmitterDepth() float64 - SetEmitterDepth(value float64) EmitterSize() coregraphics.Size SetEmitterSize(value coregraphics.Size) - EmitterPosition() coregraphics.Point - SetEmitterPosition(value coregraphics.Point) Lifetime() float64 SetLifetime(value float64) - EmitterCells() []EmitterCell - SetEmitterCells(value []IEmitterCell) - Spin() float64 - SetSpin(value float64) - Velocity() float64 - SetVelocity(value float64) - PreservesDepth() bool - SetPreservesDepth(value bool) RenderMode() EmitterLayerRenderMode SetRenderMode(value EmitterLayerRenderMode) - Seed() int - SetSeed(value int) + EmitterDepth() float64 + SetEmitterDepth(value float64) + EmitterPosition() coregraphics.Point + SetEmitterPosition(value coregraphics.Point) + Scale() float64 + SetScale(value float64) EmitterShape() EmitterLayerEmitterShape SetEmitterShape(value EmitterLayerEmitterShape) + Spin() float64 + SetSpin(value float64) + Seed() int + SetSeed(value int) + EmitterMode() EmitterLayerEmitterMode + SetEmitterMode(value EmitterLayerEmitterMode) + EmitterZPosition() float64 + SetEmitterZPosition(value float64) + PreservesDepth() bool + SetPreservesDepth(value bool) + Velocity() float64 + SetVelocity(value float64) + EmitterCells() []EmitterCell + SetEmitterCells(value []IEmitterCell) + BirthRate() float64 + SetBirthRate(value float64) } // A layer that emits, animates, and renders a particle system. [Full Topic] @@ -69,10 +69,6 @@ func (ec _EmitterLayerClass) Alloc() EmitterLayer { return rv } -func EmitterLayer_Alloc() EmitterLayer { - return EmitterLayerClass.Alloc() -} - func (ec _EmitterLayerClass) New() EmitterLayer { rv := objc.Call[EmitterLayer](ec, objc.Sel("new")) rv.Autorelease() @@ -88,32 +84,6 @@ 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 @@ -142,64 +112,75 @@ func EmitterLayer_PresentationLayer() EmitterLayer { return instance } -// Defines a multiplier applied to the cell-defined particle scale. [Full Topic] +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/caemitterlayer/1521841-scale?language=objc -func (e_ EmitterLayer) Scale() float64 { - rv := objc.Call[float64](e_, objc.Sel("scale")) +// [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")) return rv } -// Defines a multiplier applied to the cell-defined particle scale. [Full Topic] +// Creates and returns an instance of the layer object. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/quartzcore/caemitterlayer/1521841-scale?language=objc -func (e_ EmitterLayer) SetScale(value float64) { - objc.Call[objc.Void](e_, objc.Sel("setScale:"), value) +// [Full Topic]: https://developer.apple.com/documentation/quartzcore/calayer/1410793-layer?language=objc +func EmitterLayer_Layer() EmitterLayer { + return EmitterLayerClass.Layer() } -// Specifies the emitter mode. [Full Topic] +// Determines the size of the particle emitter shape. Animatable. [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")) +// [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 } -// Specifies the emitter mode. [Full Topic] +// Determines the size of the particle emitter shape. Animatable. [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) +// [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) } -// Defines a multiplier that is applied to the cell-defined birth rate. Animatable [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/1521976-birthrate?language=objc -func (e_ EmitterLayer) BirthRate() float64 { - rv := objc.Call[float64](e_, objc.Sel("birthRate")) +// [Full Topic]: https://developer.apple.com/documentation/quartzcore/caemitterlayer/1522144-lifetime?language=objc +func (e_ EmitterLayer) Lifetime() float64 { + rv := objc.Call[float64](e_, objc.Sel("lifetime")) return rv } -// Defines a multiplier that is applied to the cell-defined birth rate. Animatable [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/1521976-birthrate?language=objc -func (e_ EmitterLayer) SetBirthRate(value float64) { - objc.Call[objc.Void](e_, objc.Sel("setBirthRate:"), value) +// [Full Topic]: https://developer.apple.com/documentation/quartzcore/caemitterlayer/1522144-lifetime?language=objc +func (e_ EmitterLayer) SetLifetime(value float64) { + objc.Call[objc.Void](e_, objc.Sel("setLifetime:"), value) } -// Specifies the center of the particle emitter shape along the z-axis. Animatable. [Full Topic] +// Defines how particle cells are rendered into the layer. [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/1522104-rendermode?language=objc +func (e_ EmitterLayer) RenderMode() EmitterLayerRenderMode { + rv := objc.Call[EmitterLayerRenderMode](e_, objc.Sel("renderMode")) return rv } -// Specifies the center of the particle emitter shape along the z-axis. Animatable. [Full Topic] +// Defines how particle cells are rendered into the layer. [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/1522104-rendermode?language=objc +func (e_ EmitterLayer) SetRenderMode(value EmitterLayerRenderMode) { + objc.Call[objc.Void](e_, objc.Sel("setRenderMode:"), value) } // Determines the depth of the emitter shape. [Full Topic] @@ -217,21 +198,6 @@ 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 @@ -247,34 +213,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 lifetime range when particles are created. Animatable. [Full Topic] +// Defines a multiplier applied to the cell-defined particle scale. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/quartzcore/caemitterlayer/1522144-lifetime?language=objc -func (e_ EmitterLayer) Lifetime() float64 { - rv := objc.Call[float64](e_, objc.Sel("lifetime")) +// [Full Topic]: https://developer.apple.com/documentation/quartzcore/caemitterlayer/1521841-scale?language=objc +func (e_ EmitterLayer) Scale() float64 { + rv := objc.Call[float64](e_, objc.Sel("scale")) return rv } -// Defines a multiplier applied to the cell-defined lifetime range when particles are created. Animatable. [Full Topic] +// Defines a multiplier applied to the cell-defined particle scale. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/quartzcore/caemitterlayer/1522144-lifetime?language=objc -func (e_ EmitterLayer) SetLifetime(value float64) { - objc.Call[objc.Void](e_, objc.Sel("setLifetime:"), value) +// [Full Topic]: https://developer.apple.com/documentation/quartzcore/caemitterlayer/1521841-scale?language=objc +func (e_ EmitterLayer) SetScale(value float64) { + objc.Call[objc.Void](e_, objc.Sel("setScale:"), value) } -// The array emitter cells attached to the layer. [Full Topic] +// Specifies the emitter shape. [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/1521919-emittershape?language=objc +func (e_ EmitterLayer) EmitterShape() EmitterLayerEmitterShape { + rv := objc.Call[EmitterLayerEmitterShape](e_, objc.Sel("emitterShape")) return rv } -// The array emitter cells attached to the layer. [Full Topic] +// Specifies the emitter shape. [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/1521919-emittershape?language=objc +func (e_ EmitterLayer) SetEmitterShape(value EmitterLayerEmitterShape) { + objc.Call[objc.Void](e_, objc.Sel("setEmitterShape:"), value) } // Defines a multiplier applied to the cell-defined particle spin. Animatable. [Full Topic] @@ -292,19 +258,49 @@ func (e_ EmitterLayer) SetSpin(value float64) { objc.Call[objc.Void](e_, objc.Sel("setSpin:"), value) } -// Defines a multiplier applied to the cell-defined particle velocity. Animatable. [Full Topic] +// Specifies the seed used to initialize the random number generator. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/quartzcore/caemitterlayer/1522015-velocity?language=objc -func (e_ EmitterLayer) Velocity() float64 { - rv := objc.Call[float64](e_, objc.Sel("velocity")) +// [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 } -// Defines a multiplier applied to the cell-defined particle velocity. Animatable. [Full Topic] +// Specifies the seed used to initialize the random number generator. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/quartzcore/caemitterlayer/1522015-velocity?language=objc -func (e_ EmitterLayer) SetVelocity(value float64) { - objc.Call[objc.Void](e_, objc.Sel("setVelocity:"), 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) +} + +// 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] +// +// [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 +} + +// Specifies the center of the particle emitter shape along the z-axis. 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) } // Defines whether the layer flattens the particles into its plane. [Full Topic] @@ -322,47 +318,47 @@ func (e_ EmitterLayer) SetPreservesDepth(value bool) { objc.Call[objc.Void](e_, objc.Sel("setPreservesDepth:"), value) } -// Defines how particle cells are rendered into the layer. [Full Topic] +// Defines a multiplier applied to the cell-defined particle velocity. 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/1522015-velocity?language=objc +func (e_ EmitterLayer) Velocity() float64 { + rv := objc.Call[float64](e_, objc.Sel("velocity")) return rv } -// Defines how particle cells are rendered into the layer. [Full Topic] +// Defines a multiplier applied to the cell-defined particle velocity. 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/1522015-velocity?language=objc +func (e_ EmitterLayer) SetVelocity(value float64) { + objc.Call[objc.Void](e_, objc.Sel("setVelocity:"), value) } -// Specifies the seed used to initialize the random number generator. [Full Topic] +// The array emitter cells attached to the layer. [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")) +// [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 seed used to initialize the random number generator. [Full Topic] +// The array emitter cells attached to the layer. [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) +// [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) } -// Specifies the emitter shape. [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/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/1521976-birthrate?language=objc +func (e_ EmitterLayer) BirthRate() float64 { + rv := objc.Call[float64](e_, objc.Sel("birthRate")) return rv } -// Specifies the emitter shape. [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/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/1521976-birthrate?language=objc +func (e_ EmitterLayer) SetBirthRate(value float64) { + objc.Call[objc.Void](e_, objc.Sel("setBirthRate:"), value) } diff --git a/macos/quartzcore/enumtypes.gen.go b/macos/quartzcore/enumtypes.gen.go index 758b4852..a6b0bfe9 100644 --- a/macos/quartzcore/enumtypes.gen.go +++ b/macos/quartzcore/enumtypes.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package quartzcore @@ -25,7 +25,7 @@ const ( KAnimationRotateAutoReverse AnimationRotationMode = "autoReverse" ) -// These constants are used by the autoresizingMask property. [Full Topic] +// These constants are used by the [quartzcore/calayer/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 edgeAntialiasingMask property. [Full Topic] +// This mask is used by the [quartzcore/calayer/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 a4f0e35c..0f17bf9a 100644 --- a/macos/quartzcore/gradient_layer.gen.go +++ b/macos/quartzcore/gradient_layer.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package quartzcore @@ -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) - StartPoint() coregraphics.Point - SetStartPoint(value coregraphics.Point) Type() GradientLayerType SetType(value GradientLayerType) + StartPoint() coregraphics.Point + SetStartPoint(value coregraphics.Point) 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] @@ -50,10 +50,6 @@ func (gc _GradientLayerClass) Alloc() GradientLayer { return rv } -func GradientLayer_Alloc() GradientLayer { - return GradientLayerClass.Alloc() -} - func (gc _GradientLayerClass) New() GradientLayer { rv := objc.Call[GradientLayer](gc, objc.Sel("new")) rv.Autorelease() @@ -69,32 +65,6 @@ 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 @@ -123,19 +93,30 @@ func GradientLayer_PresentationLayer() GradientLayer { return instance } -// An optional array of NSNumber objects defining the location of each gradient stop. Animatable. [Full Topic] +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/cagradientlayer/1462410-locations?language=objc -func (g_ GradientLayer) Locations() []foundation.Number { - rv := objc.Call[[]foundation.Number](g_, objc.Sel("locations")) +// [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")) return rv } -// An optional array of NSNumber objects defining the location of each gradient stop. Animatable. [Full Topic] +// Creates and returns an instance of the layer object. [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) +// [Full Topic]: https://developer.apple.com/documentation/quartzcore/calayer/1410793-layer?language=objc +func GradientLayer_Layer() GradientLayer { + return GradientLayerClass.Layer() } // The end point of the gradient when drawn in the layer’s coordinate space. Animatable. [Full Topic] @@ -153,21 +134,6 @@ func (g_ GradientLayer) SetEndPoint(value coregraphics.Point) { objc.Call[objc.Void](g_, objc.Sel("setEndPoint:"), 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 -func (g_ GradientLayer) StartPoint() coregraphics.Point { - rv := objc.Call[coregraphics.Point](g_, objc.Sel("startPoint")) - return rv -} - -// 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 -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 @@ -183,6 +149,21 @@ 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 +func (g_ GradientLayer) StartPoint() coregraphics.Point { + rv := objc.Call[coregraphics.Point](g_, objc.Sel("startPoint")) + return rv +} + +// 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 +func (g_ GradientLayer) SetStartPoint(value coregraphics.Point) { + objc.Call[objc.Void](g_, objc.Sel("setStartPoint:"), 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 @@ -197,3 +178,18 @@ 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 bb722b17..ed051004 100644 --- a/macos/quartzcore/keyframe_animation.gen.go +++ b/macos/quartzcore/keyframe_animation.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package quartzcore @@ -19,24 +19,24 @@ type _KeyframeAnimationClass struct { // An interface definition for the [KeyframeAnimation] class. type IKeyframeAnimation interface { IPropertyAnimation - Path() unsafe.Pointer - SetPath(value unsafe.Pointer) - RotationMode() AnimationRotationMode - SetRotationMode(value AnimationRotationMode) + CalculationMode() AnimationCalculationMode + SetCalculationMode(value AnimationCalculationMode) 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) - Values() []objc.Object - SetValues(value []objc.IObject) + RotationMode() AnimationRotationMode + SetRotationMode(value AnimationRotationMode) TimingFunctions() []MediaTimingFunction SetTimingFunctions(value []IMediaTimingFunction) + Values() []objc.Object + SetValues(value []objc.IObject) + Path() unsafe.Pointer + SetPath(value unsafe.Pointer) } // An object that provides keyframe animation capabilities for a layer object. [Full Topic] @@ -57,10 +57,6 @@ func (kc _KeyframeAnimationClass) Alloc() KeyframeAnimation { return rv } -func KeyframeAnimation_Alloc() KeyframeAnimation { - return KeyframeAnimationClass.Alloc() -} - func (kc _KeyframeAnimationClass) New() KeyframeAnimation { rv := objc.Call[KeyframeAnimation](kc, objc.Sel("new")) rv.Autorelease() @@ -100,34 +96,19 @@ func KeyframeAnimation_Animation() KeyframeAnimation { return KeyframeAnimationClass.Animation() } -// The path for a point-based property to follow. [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")) - return rv -} - -// The path for a point-based property to follow. [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) -} - -// Determines whether objects animating along the path rotate to match the path tangent. [Full Topic] +// Specifies how intermediate keyframe values are calculated by the receiver. [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")) +// [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 } -// Determines whether objects animating along the path rotate to match the path tangent. [Full Topic] +// Specifies how intermediate keyframe values are calculated by the receiver. [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) +// [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 position of the curve relative to a control point. [Full Topic] @@ -175,21 +156,6 @@ 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 @@ -205,19 +171,19 @@ func (k_ KeyframeAnimation) SetContinuityValues(value []foundation.INumber) { objc.Call[objc.Void](k_, objc.Sel("setContinuityValues:"), value) } -// An array of objects that specify the keyframe values to use for the animation. [Full Topic] +// Determines whether objects animating along the path rotate to match the path tangent. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/quartzcore/cakeyframeanimation/1412498-values?language=objc -func (k_ KeyframeAnimation) Values() []objc.Object { - rv := objc.Call[[]objc.Object](k_, objc.Sel("values")) +// [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 } -// An array of objects that specify the keyframe values to use for the animation. [Full Topic] +// Determines whether objects animating along the path rotate to match the path tangent. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/quartzcore/cakeyframeanimation/1412498-values?language=objc -func (k_ KeyframeAnimation) SetValues(value []objc.IObject) { - objc.Call[objc.Void](k_, objc.Sel("setValues:"), value) +// [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] @@ -234,3 +200,33 @@ func (k_ KeyframeAnimation) TimingFunctions() []MediaTimingFunction { 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 +func (k_ KeyframeAnimation) Values() []objc.Object { + rv := objc.Call[[]objc.Object](k_, objc.Sel("values")) + return rv +} + +// 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 +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] +// +// [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 +} + +// The path for a point-based property to follow. [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) +} diff --git a/macos/quartzcore/layer.gen.go b/macos/quartzcore/layer.gen.go index f3b83e93..2e0e1fbf 100644 --- a/macos/quartzcore/layer.gen.go +++ b/macos/quartzcore/layer.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package quartzcore @@ -21,152 +21,157 @@ 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) - LayoutSublayers() - HitTest(p coregraphics.Point) Layer - NeedsLayout() bool - ResizeWithOldSuperlayerSize(size coregraphics.Size) - ScrollRectToVisible(r coregraphics.Rect) - ActionForKey(event string) ActionWrapper - ScrollPoint(p coregraphics.Point) - ContainsPoint(p coregraphics.Point) bool + SetNeedsDisplayInRect(r coregraphics.Rect) RemoveFromSuperlayer() - ConvertRectFromLayer(r coregraphics.Rect, l ILayer) coregraphics.Rect - InsertSublayerAtIndex(layer ILayer, idx int) - RemoveAllAnimations() AnimationKeys() []string - AffineTransform() coregraphics.AffineTransform + DisplayIfNeeded() 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 - ResizeSublayersWithOldSize(size coregraphics.Size) + AddSublayer(layer ILayer) + NeedsDisplay() bool + AddConstraint(c IConstraint) + AffineTransform() coregraphics.AffineTransform + InsertSublayerAtIndex(layer ILayer, idx int) ContentsAreFlipped() bool - ShouldArchiveValueForKey(key string) bool - SetAffineTransform(m coregraphics.AffineTransform) - SetNeedsLayout() - RemoveAnimationForKey(key string) - PreferredFrameSize() coregraphics.Size - SetNeedsDisplayInRect(r coregraphics.Rect) - SetNeedsDisplay() - LayoutIfNeeded() + ContainsPoint(p coregraphics.Point) bool + ReplaceSublayerWith(oldLayer ILayer, newLayer ILayer) + ScrollPoint(p coregraphics.Point) AddAnimationForKey(anim IAnimation, key string) - DisplayIfNeeded() - NeedsDisplay() bool + RemoveAllAnimations() ConvertPointToLayer(p coregraphics.Point, l ILayer) coregraphics.Point - IsGeometryFlipped() bool - SetGeometryFlipped(value bool) - Opacity() float64 - SetOpacity(value float64) - VisibleRect() coregraphics.Rect + 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 + 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) ShadowPath() unsafe.Pointer SetShadowPath(value unsafe.Pointer) - IsHidden() bool - SetHidden(value bool) - AnchorPoint() coregraphics.Point - SetAnchorPoint(value coregraphics.Point) - Name() string - SetName(value string) - ContentsGravity() LayerContentsGravity - SetContentsGravity(value LayerContentsGravity) - MinificationFilter() LayerContentsFilter - SetMinificationFilter(value LayerContentsFilter) - 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) - AnchorPointZ() float64 - SetAnchorPointZ(value float64) + MagnificationFilter() LayerContentsFilter + SetMagnificationFilter(value LayerContentsFilter) + Superlayer() Layer + Filters() []objc.Object + SetFilters(value []objc.IObject) Style() foundation.Dictionary SetStyle(value foundation.Dictionary) - Sublayers() []Layer - SetSublayers(value []ILayer) + 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) - SublayerTransform() Transform3D - SetSublayerTransform(value Transform3D) - Delegate() LayerDelegateWrapper - 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 + EdgeAntialiasingMask() EdgeAntialiasingMask + SetEdgeAntialiasingMask(value EdgeAntialiasingMask) + Opacity() float64 + SetOpacity(value float64) + MinificationFilter() LayerContentsFilter + SetMinificationFilter(value LayerContentsFilter) + BackgroundFilters() []objc.Object + SetBackgroundFilters(value []objc.IObject) + CompositingFilter() objc.Object + SetCompositingFilter(value objc.IObject) + 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) + Sublayers() []Layer + SetSublayers(value []ILayer) IsOpaque() bool SetOpaque(value bool) - LayoutManager() LayoutManagerWrapper + AllowsGroupOpacity() bool + SetAllowsGroupOpacity(value bool) + ContentsCenter() coregraphics.Rect + SetContentsCenter(value coregraphics.Rect) + LayoutManager() LayoutManagerObject SetLayoutManager(value PLayoutManager) SetLayoutManagerObject(valueObject objc.IObject) - DrawsAsynchronously() bool - SetDrawsAsynchronously(value bool) + ContentsScale() float64 + SetContentsScale(value float64) + ShouldRasterize() bool + SetShouldRasterize(value bool) + MinificationFilterBias() float64 + SetMinificationFilterBias(value float64) MaskedCorners() CornerMask SetMaskedCorners(value CornerMask) - IsDoubleSided() bool - SetDoubleSided(value bool) - Mask() Layer - SetMask(value ILayer) - MasksToBounds() bool - SetMasksToBounds(value bool) - ShadowOpacity() float64 - SetShadowOpacity(value float64) - 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) + 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) - 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() float64 - SetMinificationFilterBias(value float64) + 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) + Mask() Layer + SetMask(value ILayer) + RasterizationScale() float64 + SetRasterizationScale(value float64) + CornerCurve() LayerCornerCurve + SetCornerCurve(value LayerCornerCurve) + ShadowOpacity() float64 + SetShadowOpacity(value float64) + Delegate() LayerDelegateObject + SetDelegate(value PLayerDelegate) + SetDelegateObject(valueObject objc.IObject) + IsDoubleSided() bool + SetDoubleSided(value bool) } // An object that manages image-based content and allows you to perform animations on that content. [Full Topic] @@ -182,37 +187,6 @@ func LayerFrom(ptr unsafe.Pointer) Layer { } } -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 (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 -} - -func (l_ Layer) Init() Layer { - rv := objc.Call[Layer](l_, objc.Sel("init")) - return rv -} - func (l_ Layer) ModelLayer() Layer { rv := objc.Call[Layer](l_, objc.Sel("modelLayer")) return rv @@ -227,6 +201,11 @@ func Layer_ModelLayer() Layer { return instance } +func (l_ Layer) Init() Layer { + rv := objc.Call[Layer](l_, objc.Sel("init")) + return rv +} + func (l_ Layer) PresentationLayer() Layer { rv := objc.Call[Layer](l_, objc.Sel("presentationLayer")) return rv @@ -241,44 +220,45 @@ func Layer_PresentationLayer() Layer { return instance } -func (lc _LayerClass) Alloc() Layer { - rv := objc.Call[Layer](lc, objc.Sel("alloc")) +func (l_ Layer) InitWithLayer(layer objc.IObject) Layer { + rv := objc.Call[Layer](l_, objc.Sel("initWithLayer:"), layer) return rv } -func Layer_Alloc() Layer { - return LayerClass.Alloc() +// 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 } -func (lc _LayerClass) New() Layer { - rv := objc.Call[Layer](lc, objc.Sel("new")) - rv.Autorelease() +func (lc _LayerClass) Layer() Layer { + rv := objc.Call[Layer](lc, objc.Sel("layer")) return rv } -func NewLayer() Layer { - return LayerClass.New() +// 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() } -// 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:"), objc.Ptr(c)) +func (lc _LayerClass) Alloc() Layer { + rv := objc.Call[Layer](lc, objc.Sel("alloc")) + 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:"), objc.Ptr(layer)) +func (lc _LayerClass) New() Layer { + rv := objc.Call[Layer](lc, objc.Sel("new")) + rv.Autorelease() + return rv } -// Replaces the specified sublayer with a different layer object. [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:"), objc.Ptr(oldLayer), objc.Ptr(newLayer)) +func NewLayer() Layer { + return LayerClass.New() } // Renders the layer and its sublayers into the specified context. [Full Topic] @@ -288,78 +268,77 @@ 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] +// Marks the region within the specified rectangle as needing to be updated. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/quartzcore/calayer/1410935-layoutsublayers?language=objc -func (l_ Layer) LayoutSublayers() { - objc.Call[objc.Void](l_, objc.Sel("layoutSublayers")) +// [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) } -// Returns the farthest descendant of the receiver in the layer hierarchy (including itself) that contains the specified point. [Full Topic] +// Detaches the layer from its parent layer. [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/1410767-removefromsuperlayer?language=objc +func (l_ Layer) RemoveFromSuperlayer() { + objc.Call[objc.Void](l_, objc.Sel("removeFromSuperlayer")) } -// Returns a Boolean indicating whether the layer has been marked as needing a layout update. [Full Topic] +// 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/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/1410937-animationkeys?language=objc +func (l_ Layer) AnimationKeys() []string { + rv := objc.Call[[]string](l_, objc.Sel("animationKeys")) return rv } -// Informs the receiver that the size of its superlayer changed. [Full Topic] +// 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/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/1410813-displayifneeded?language=objc +func (l_ Layer) DisplayIfNeeded() { + objc.Call[objc.Void](l_, objc.Sel("displayIfNeeded")) } -// 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 } -// Returns the action object assigned to the specified key. [Full Topic] +// Initializes a layer with a remote client ID. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/quartzcore/calayer/1410844-actionforkey?language=objc -func (l_ Layer) ActionForKey(event string) ActionWrapper { - rv := objc.Call[ActionWrapper](l_, objc.Sel("actionForKey:"), event) - 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) } -// [Full Topic] +// Reloads the content of this 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) - return rv +// [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")) } -// [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/3152597-cornercurveexpansionfactor?language=objc -func Layer_CornerCurveExpansionFactor(curve LayerCornerCurve) float64 { - return LayerClass.CornerCurveExpansionFactor(curve) +// [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 } -// 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] +// Sets the layer’s transform to the specified affine transform. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/quartzcore/calayer/1522202-scrollpoint?language=objc -func (l_ Layer) ScrollPoint(p coregraphics.Point) { - objc.Call[objc.Void](l_, objc.Sel("scrollPoint:"), p) +// [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) } -// Returns whether the receiver contains a specified point. [Full Topic] +// Converts the point from the specified layer’s coordinate system to the receiver’s coordinate system. [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/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, objc.Ptr(l)) return rv } @@ -378,56 +357,56 @@ func Layer_NeedsDisplayForKey(key string) bool { return LayerClass.NeedsDisplayForKey(key) } -// Detaches the layer from its parent layer. [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/1410767-removefromsuperlayer?language=objc -func (l_ Layer) RemoveFromSuperlayer() { - objc.Call[objc.Void](l_, objc.Sel("removeFromSuperlayer")) +// [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 } -// Converts the rectangle from the specified layer’s coordinate system to the receiver’s coordinate system. [Full Topic] +// Tells the layer to update its layout. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/quartzcore/calayer/1410948-convertrect?language=objc -func (l_ Layer) ConvertRectFromLayer(r coregraphics.Rect, l ILayer) coregraphics.Rect { - rv := objc.Call[coregraphics.Rect](l_, objc.Sel("convertRect:fromLayer:"), r, objc.Ptr(l)) - return rv +// [Full Topic]: https://developer.apple.com/documentation/quartzcore/calayer/1410935-layoutsublayers?language=objc +func (l_ Layer) LayoutSublayers() { + objc.Call[objc.Void](l_, objc.Sel("layoutSublayers")) } -// Specifies the default value associated with the specified key. [Full Topic] +// Draws the layer’s content using the specified graphics context. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/quartzcore/calayer/1410886-defaultvalueforkey?language=objc -func (lc _LayerClass) DefaultValueForKey(key string) objc.Object { - rv := objc.Call[objc.Object](lc, objc.Sel("defaultValueForKey:"), key) - return rv +// [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) } -// Specifies the default value associated with the specified key. [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/1410886-defaultvalueforkey?language=objc -func Layer_DefaultValueForKey(key string) objc.Object { - return LayerClass.DefaultValueForKey(key) +// [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, objc.Ptr(l)) + return rv } -// Inserts the specified layer into the receiver’s list of sublayers at the specified index. [Full Topic] +// Appends the layer to the layer’s list of sublayers. [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:"), objc.Ptr(layer), idx) +// [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:"), objc.Ptr(layer)) } -// Remove all animations attached to the layer. [Full Topic] +// 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/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/1410958-needsdisplay?language=objc +func (l_ Layer) NeedsDisplay() bool { + rv := objc.Call[bool](l_, objc.Sel("needsDisplay")) + return rv } -// Returns an array of strings that identify the animations currently attached to the layer. [Full Topic] +// Adds the specified constraint 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]: 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:"), objc.Ptr(c)) } // Returns an affine version of the layer’s transform. [Full Topic] @@ -438,130 +417,124 @@ func (l_ Layer) AffineTransform() coregraphics.AffineTransform { return rv } -// 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")) -} - -// Draws the layer’s content using the specified graphics context. [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/1410757-drawincontext?language=objc -func (l_ Layer) DrawInContext(ctx coregraphics.ContextRef) { - objc.Call[objc.Void](l_, objc.Sel("drawInContext:"), ctx) +// [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:"), objc.Ptr(layer), idx) } -// Returns the animation object with the specified identifier. [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/1410808-animationforkey?language=objc -func (l_ Layer) AnimationForKey(key string) Animation { - rv := objc.Call[Animation](l_, objc.Sel("animationForKey:"), key) +// [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 } -// Converts the time interval from the specified layer’s time space to the receiver’s time space. [Full Topic] +// Returns whether the receiver contains a 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, objc.Ptr(l)) +// [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 } -// Informs the receiver’s sublayers that the receiver’s size has changed. [Full Topic] +// Replaces the specified sublayer with a different layer object. [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/1410820-replacesublayer?language=objc +func (l_ Layer) ReplaceSublayerWith(oldLayer ILayer, newLayer ILayer) { + objc.Call[objc.Void](l_, objc.Sel("replaceSublayer:with:"), objc.Ptr(oldLayer), objc.Ptr(newLayer)) } -// Initializes a layer with a remote client ID. [Full Topic] +// 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] // -// [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 +// [Full Topic]: https://developer.apple.com/documentation/quartzcore/calayer/1522202-scrollpoint?language=objc +func (l_ Layer) ScrollPoint(p coregraphics.Point) { + objc.Call[objc.Void](l_, objc.Sel("scrollPoint:"), p) } -// Initializes a layer with a remote client ID. [Full Topic] +// Add the specified animation object to the layer’s render tree. [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) +// [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:"), objc.Ptr(anim), key) } -// Returns a Boolean indicating whether the layer content is implicitly flipped when rendered. [Full Topic] +// Remove all animations attached to the layer. [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")) - return rv +// [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 a Boolean indicating whether the value of the specified key should be archived. [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/1410753-shouldarchivevalueforkey?language=objc -func (l_ Layer) ShouldArchiveValueForKey(key string) bool { - rv := objc.Call[bool](l_, objc.Sel("shouldArchiveValueForKey:"), key) +// [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, objc.Ptr(l)) return rv } -// Sets the layer’s transform to the specified affine transform. [Full Topic] +// Marks the layer’s contents as needing to be updated. [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) +// [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")) } -// Invalidates the layer’s layout and marks it as needing an update. [Full Topic] +// Returns the animation object with the specified identifier. [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/1410808-animationforkey?language=objc +func (l_ Layer) AnimationForKey(key string) Animation { + rv := objc.Call[Animation](l_, objc.Sel("animationForKey:"), key) + return rv } -// Remove the animation object with the specified key. [Full Topic] +// Converts the rectangle from the specified layer’s coordinate system to the receiver’s coordinate system. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/quartzcore/calayer/1410939-removeanimationforkey?language=objc -func (l_ Layer) RemoveAnimationForKey(key string) { - objc.Call[objc.Void](l_, objc.Sel("removeAnimationForKey:"), key) +// [Full Topic]: https://developer.apple.com/documentation/quartzcore/calayer/1410948-convertrect?language=objc +func (l_ Layer) ConvertRectFromLayer(r coregraphics.Rect, l ILayer) coregraphics.Rect { + rv := objc.Call[coregraphics.Rect](l_, objc.Sel("convertRect:fromLayer:"), r, objc.Ptr(l)) + return rv } -// Returns the preferred size of the layer in the coordinate space of its superlayer. [Full Topic] +// Specifies the default value associated with the specified key. [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")) +// [Full Topic]: https://developer.apple.com/documentation/quartzcore/calayer/1410886-defaultvalueforkey?language=objc +func (lc _LayerClass) DefaultValueForKey(key string) objc.Object { + rv := objc.Call[objc.Object](lc, objc.Sel("defaultValueForKey:"), key) return rv } -// Returns the default action for the current class. [Full Topic] +// Specifies the default value associated with the specified key. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/quartzcore/calayer/1410954-defaultactionforkey?language=objc -func (lc _LayerClass) DefaultActionForKey(event string) ActionWrapper { - rv := objc.Call[ActionWrapper](lc, objc.Sel("defaultActionForKey:"), event) - return rv +// [Full Topic]: https://developer.apple.com/documentation/quartzcore/calayer/1410886-defaultvalueforkey?language=objc +func Layer_DefaultValueForKey(key string) objc.Object { + return LayerClass.DefaultValueForKey(key) } -// Returns the default action for the current class. [Full Topic] +// Returns the action object assigned to the specified key. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/quartzcore/calayer/1410954-defaultactionforkey?language=objc -func Layer_DefaultActionForKey(event string) ActionWrapper { - return LayerClass.DefaultActionForKey(event) +// [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 } -// Marks the region within the specified rectangle as needing to be updated. [Full Topic] +// [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) +// [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 } -// Marks the layer’s contents as needing to be updated. [Full Topic] +// [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/3152597-cornercurveexpansionfactor?language=objc +func Layer_CornerCurveExpansionFactor(curve LayerCornerCurve) float64 { + return LayerClass.CornerCurveExpansionFactor(curve) } // Recalculate the receiver’s layout, if required. [Full Topic] @@ -571,312 +544,318 @@ 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:"), objc.Ptr(anim), key) -} - -// Initiates the update process for a layer if it is currently marked as needing an update. [Full Topic] +// Invalidates the layer’s layout and marks it 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")) +// [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")) } -// 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 } -// Converts the point from the receiver’s coordinate system to the specified layer’s coordinate system. [Full Topic] +// Informs the receiver that the size of its superlayer changed. [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, objc.Ptr(l)) - 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) } -// A Boolean that indicates whether the geometry of the layer and its sublayers is flipped vertically. [Full Topic] +// Inserts the specified sublayer below a different sublayer that already belongs to the receiver. [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")) - return rv +// [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:"), objc.Ptr(layer), objc.Ptr(sibling)) } -// A Boolean that indicates whether the geometry of the layer and its sublayers is flipped vertically. [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/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/1522139-scrollrecttovisible?language=objc +func (l_ Layer) ScrollRectToVisible(r coregraphics.Rect) { + objc.Call[objc.Void](l_, objc.Sel("scrollRectToVisible:"), r) } -// The opacity of the receiver. Animatable. [Full Topic] +// Converts the time interval from the receiver’s time space to the specified layer’s time space [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/quartzcore/calayer/1410933-opacity?language=objc -func (l_ Layer) Opacity() float64 { - rv := objc.Call[float64](l_, objc.Sel("opacity")) +// [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, objc.Ptr(l)) return rv } -// The opacity of the receiver. Animatable. [Full Topic] +// Inserts the specified sublayer above a different sublayer that already belongs to the receiver. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/quartzcore/calayer/1410933-opacity?language=objc -func (l_ Layer) SetOpacity(value float64) { - objc.Call[objc.Void](l_, objc.Sel("setOpacity:"), value) +// [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:"), objc.Ptr(layer), objc.Ptr(sibling)) } -// The visible region of the layer in its own coordinate space. [Full Topic] +// Returns a Boolean indicating whether the value of the specified key should be archived. [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/1410753-shouldarchivevalueforkey?language=objc +func (l_ Layer) ShouldArchiveValueForKey(key string) bool { + rv := objc.Call[bool](l_, objc.Sel("shouldArchiveValueForKey:"), key) return rv } -// The shape of the layer’s shadow. Animatable. [Full Topic] +// Remove the animation object with the specified key. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/quartzcore/calayer/1410771-shadowpath?language=objc -func (l_ Layer) ShadowPath() unsafe.Pointer { - rv := objc.Call[unsafe.Pointer](l_, objc.Sel("shadowPath")) - return rv +// [Full Topic]: https://developer.apple.com/documentation/quartzcore/calayer/1410939-removeanimationforkey?language=objc +func (l_ Layer) RemoveAnimationForKey(key string) { + objc.Call[objc.Void](l_, objc.Sel("removeAnimationForKey:"), key) } -// The shape of the layer’s shadow. Animatable. [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/1410771-shadowpath?language=objc -func (l_ Layer) SetShadowPath(value unsafe.Pointer) { - objc.Call[objc.Void](l_, objc.Sel("setShadowPath:"), value) +// [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) } -// A Boolean indicating whether the layer is displayed. Animatable. [Full Topic] +// Returns the default action for the current class. [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")) +// [Full Topic]: https://developer.apple.com/documentation/quartzcore/calayer/1410954-defaultactionforkey?language=objc +func (lc _LayerClass) DefaultActionForKey(event string) ActionObject { + rv := objc.Call[ActionObject](lc, objc.Sel("defaultActionForKey:"), event) return rv } -// A Boolean indicating whether the layer is displayed. Animatable. [Full Topic] +// Returns the default action for the current class. [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/1410954-defaultactionforkey?language=objc +func Layer_DefaultActionForKey(event string) ActionObject { + return LayerClass.DefaultActionForKey(event) } -// Defines the anchor point of the layer's bounds rectangle. Animatable. [Full Topic] +// Converts the rectangle from the receiver’s coordinate system to the specified layer’s coordinate system. [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/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, objc.Ptr(l)) return rv } -// Defines the anchor point of the layer's bounds rectangle. Animatable. [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/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/1410923-needsdisplayonboundschange?language=objc +func (l_ Layer) NeedsDisplayOnBoundsChange() bool { + rv := objc.Call[bool](l_, objc.Sel("needsDisplayOnBoundsChange")) + return rv } -// The name of the receiver. [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/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/1410923-needsdisplayonboundschange?language=objc +func (l_ Layer) SetNeedsDisplayOnBoundsChange(value bool) { + objc.Call[objc.Void](l_, objc.Sel("setNeedsDisplayOnBoundsChange:"), value) +} + +// A Boolean indicating whether sublayers are clipped to the layer’s bounds. Animatable. [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")) return rv } -// The name of the receiver. [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/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/1410896-maskstobounds?language=objc +func (l_ Layer) SetMasksToBounds(value bool) { + objc.Call[objc.Void](l_, objc.Sel("setMasksToBounds:"), value) } -// A constant that specifies how the layer's contents are positioned or scaled within its bounds. [Full Topic] +// Specifies the transform to apply to sublayers when rendering. Animatable. [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/1410888-sublayertransform?language=objc +func (l_ Layer) SublayerTransform() Transform3D { + rv := objc.Call[Transform3D](l_, objc.Sel("sublayerTransform")) return rv } -// A constant that specifies how the layer's contents are positioned or scaled within its bounds. [Full Topic] +// Specifies the transform to apply to sublayers when rendering. Animatable. [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/1410888-sublayertransform?language=objc +func (l_ Layer) SetSublayerTransform(value Transform3D) { + objc.Call[objc.Void](l_, objc.Sel("setSublayerTransform:"), value) } -// The filter used when reducing the size of the content. [Full Topic] +// The shape of the layer’s shadow. 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/1410771-shadowpath?language=objc +func (l_ Layer) ShadowPath() unsafe.Pointer { + rv := objc.Call[unsafe.Pointer](l_, objc.Sel("shadowPath")) return rv } -// The filter used when reducing the size of the content. [Full Topic] +// The shape of the layer’s shadow. Animatable. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/quartzcore/calayer/1410771-shadowpath?language=objc +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] // -// [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/1410907-magnificationfilter?language=objc +func (l_ Layer) MagnificationFilter() LayerContentsFilter { + rv := objc.Call[LayerContentsFilter](l_, objc.Sel("magnificationFilter")) + return rv } -// The scale factor applied to the layer. [Full Topic] +// The filter used when increasing the size of the content. [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")) - return rv +// [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 scale factor applied to the layer. [Full Topic] +// The superlayer of the layer. [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/1410761-superlayer?language=objc +func (l_ Layer) Superlayer() Layer { + rv := objc.Call[Layer](l_, objc.Sel("superlayer")) + return rv } -// The offset (in points) of the layer’s shadow. Animatable. [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/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/1410901-filters?language=objc +func (l_ Layer) Filters() []objc.Object { + rv := objc.Call[[]objc.Object](l_, objc.Sel("filters")) return rv } -// The offset (in points) of the layer’s shadow. Animatable. [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/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/1410901-filters?language=objc +func (l_ Layer) SetFilters(value []objc.IObject) { + objc.Call[objc.Void](l_, objc.Sel("setFilters:"), value) } -// A Boolean that indicates whether the layer is rendered as a bitmap before compositing. Animatable [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/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/1410875-style?language=objc +func (l_ Layer) Style() foundation.Dictionary { + rv := objc.Call[foundation.Dictionary](l_, objc.Sel("style")) return rv } -// A Boolean that indicates whether the layer is rendered as a bitmap before compositing. Animatable [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/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/1410875-style?language=objc +func (l_ Layer) SetStyle(value foundation.Dictionary) { + objc.Call[objc.Void](l_, objc.Sel("setStyle:"), value) } -// The layer’s position on the z axis. 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/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/1410817-anchorpoint?language=objc +func (l_ Layer) AnchorPoint() coregraphics.Point { + rv := objc.Call[coregraphics.Point](l_, objc.Sel("anchorPoint")) return rv } -// The layer’s position on the z axis. 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/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/1410817-anchorpoint?language=objc +func (l_ Layer) SetAnchorPoint(value coregraphics.Point) { + objc.Call[objc.Void](l_, objc.Sel("setAnchorPoint:"), value) } -// The scale at which to rasterize content, relative to the coordinate space of the layer. Animatable [Full Topic] +// The color of the layer’s border. 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/1410903-bordercolor?language=objc +func (l_ Layer) BorderColor() coregraphics.ColorRef { + rv := objc.Call[coregraphics.ColorRef](l_, objc.Sel("borderColor")) return rv } -// The scale at which to rasterize content, relative to the coordinate space of the layer. Animatable [Full Topic] +// The color of the layer’s border. 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/1410903-bordercolor?language=objc +func (l_ Layer) SetBorderColor(value coregraphics.ColorRef) { + objc.Call[objc.Void](l_, objc.Sel("setBorderColor:"), value) } -// A Boolean indicating whether the layer is allowed to composite itself as a group separate from its parent. [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/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/1621285-allowsedgeantialiasing?language=objc +func (l_ Layer) AllowsEdgeAntialiasing() bool { + rv := objc.Call[bool](l_, objc.Sel("allowsEdgeAntialiasing")) return rv } -// A Boolean indicating whether the layer is allowed to composite itself as a group separate from its parent. [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/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/1621285-allowsedgeantialiasing?language=objc +func (l_ Layer) SetAllowsEdgeAntialiasing(value bool) { + objc.Call[objc.Void](l_, objc.Sel("setAllowsEdgeAntialiasing:"), value) } -// The rectangle, in the unit coordinate space, that defines the portion of the layer’s contents that should be used. Animatable. [Full Topic] +// The width of the layer’s border. Animatable. [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")) +// [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 } -// The rectangle, in the unit coordinate space, that defines the portion of the layer’s contents that should be used. Animatable. [Full Topic] +// The width of the layer’s border. Animatable. [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/1410917-borderwidth?language=objc +func (l_ Layer) SetBorderWidth(value float64) { + objc.Call[objc.Void](l_, objc.Sel("setBorderWidth:"), value) } -// The anchor point for the layer’s position along the z axis. Animatable. [Full Topic] +// The constraints used to position current layer’s sublayers. [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/1521906-constraints?language=objc +func (l_ Layer) Constraints() []Constraint { + rv := objc.Call[[]Constraint](l_, objc.Sel("constraints")) return rv } -// The anchor point for the layer’s position along the z axis. Animatable. [Full Topic] +// The constraints used to position current layer’s sublayers. [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/1521906-constraints?language=objc +func (l_ Layer) SetConstraints(value []IConstraint) { + objc.Call[objc.Void](l_, objc.Sel("setConstraints:"), value) } -// An optional dictionary used to store property values that aren't explicitly defined by the layer. [Full Topic] +// The background color of the receiver. Animatable. [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/1410966-backgroundcolor?language=objc +func (l_ Layer) BackgroundColor() coregraphics.ColorRef { + rv := objc.Call[coregraphics.ColorRef](l_, objc.Sel("backgroundColor")) return rv } -// An optional dictionary used to store property values that aren't explicitly defined by the layer. [Full Topic] +// The background color of the receiver. Animatable. [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/1410966-backgroundcolor?language=objc +func (l_ Layer) SetBackgroundColor(value coregraphics.ColorRef) { + objc.Call[objc.Void](l_, objc.Sel("setBackgroundColor:"), value) } -// An array containing the layer’s sublayers. [Full Topic] +// A hint for the desired storage format of the layer contents. [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")) +// [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 } -// An array containing the layer’s sublayers. [Full Topic] +// A hint for the desired storage format of the layer contents. [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/1792104-contentsformat?language=objc +func (l_ Layer) SetContentsFormat(value LayerContentsFormat) { + objc.Call[objc.Void](l_, objc.Sel("setContentsFormat:"), value) } // The radius to use when drawing rounded corners for the layer’s background. Animatable. [Full Topic] @@ -909,43 +888,109 @@ func (l_ Layer) SetBounds(value coregraphics.Rect) { objc.Call[objc.Void](l_, objc.Sel("setBounds:"), value) } -// Specifies the transform to apply to sublayers when rendering. Animatable. [Full Topic] +// The layer’s position in its superlayer’s coordinate space. 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/1410791-position?language=objc +func (l_ Layer) Position() coregraphics.Point { + rv := objc.Call[coregraphics.Point](l_, objc.Sel("position")) return rv } -// Specifies the transform to apply to sublayers when rendering. Animatable. [Full Topic] +// The layer’s position in its superlayer’s coordinate space. 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/1410791-position?language=objc +func (l_ Layer) SetPosition(value coregraphics.Point) { + objc.Call[objc.Void](l_, objc.Sel("setPosition:"), 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 +} + +// 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) SetEdgeAntialiasingMask(value EdgeAntialiasingMask) { + objc.Call[objc.Void](l_, objc.Sel("setEdgeAntialiasingMask:"), value) +} + +// The opacity of the receiver. Animatable. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/quartzcore/calayer/1410933-opacity?language=objc +func (l_ Layer) Opacity() float64 { + rv := objc.Call[float64](l_, objc.Sel("opacity")) + return rv +} + +// The opacity of the receiver. Animatable. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/quartzcore/calayer/1410933-opacity?language=objc +func (l_ Layer) SetOpacity(value float64) { + objc.Call[objc.Void](l_, objc.Sel("setOpacity:"), value) +} + +// The filter used when reducing the size of the content. [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")) + return rv +} + +// The filter used when reducing the size of the content. [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) +} + +// 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/1410827-backgroundfilters?language=objc +func (l_ Layer) BackgroundFilters() []objc.Object { + rv := objc.Call[[]objc.Object](l_, objc.Sel("backgroundFilters")) + return rv +} + +// 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/1410827-backgroundfilters?language=objc +func (l_ Layer) SetBackgroundFilters(value []objc.IObject) { + objc.Call[objc.Void](l_, objc.Sel("setBackgroundFilters:"), value) +} + +// 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/1410748-compositingfilter?language=objc +func (l_ Layer) CompositingFilter() objc.Object { + rv := objc.Call[objc.Object](l_, objc.Sel("compositingFilter")) + return rv } -// The layer’s delegate object. [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/1410984-delegate?language=objc -func (l_ Layer) Delegate() LayerDelegateWrapper { - rv := objc.Call[LayerDelegateWrapper](l_, objc.Sel("delegate")) - return rv +// [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 layer’s delegate object. [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/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) +// [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 delegate object. [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/1410984-delegate?language=objc -func (l_ Layer) SetDelegateObject(valueObject objc.IObject) { - objc.Call[objc.Void](l_, objc.Sel("setDelegate:"), objc.Ptr(valueObject)) +// [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 blur radius (in points) used to render the layer’s shadow. Animatable. [Full Topic] @@ -963,290 +1008,282 @@ func (l_ Layer) SetShadowRadius(value float64) { objc.Call[objc.Void](l_, objc.Sel("setShadowRadius:"), value) } -// The layer’s position in its superlayer’s coordinate space. Animatable. [Full Topic] +// A dictionary containing layer actions. [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/1410789-actions?language=objc +func (l_ Layer) Actions() foundation.Dictionary { + rv := objc.Call[foundation.Dictionary](l_, objc.Sel("actions")) return rv } -// The layer’s position in its superlayer’s coordinate space. Animatable. [Full Topic] +// A dictionary containing layer actions. [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/1410789-actions?language=objc +func (l_ Layer) SetActions(value foundation.Dictionary) { + objc.Call[objc.Void](l_, objc.Sel("setActions:"), value) } -// The background color of the receiver. Animatable. [Full Topic] +// The name of the receiver. [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/1410879-name?language=objc +func (l_ Layer) Name() string { + rv := objc.Call[string](l_, objc.Sel("name")) return rv } -// The background color of the receiver. Animatable. [Full Topic] +// The name of the receiver. [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/1410879-name?language=objc +func (l_ Layer) SetName(value string) { + objc.Call[objc.Void](l_, objc.Sel("setName:"), value) } -// The superlayer of the layer. [Full Topic] +// An object that provides the contents of the layer. 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")) +// [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 value indicating whether the layer contains completely opaque content. [Full Topic] +// An object that provides the contents of the layer. Animatable. [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")) - return rv +// [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) } -// A Boolean value indicating whether the layer contains completely opaque content. [Full Topic] +// A Boolean indicating whether the layer is displayed. Animatable. [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/1410838-hidden?language=objc +func (l_ Layer) IsHidden() bool { + rv := objc.Call[bool](l_, objc.Sel("isHidden")) + return rv } -// The object responsible for laying out the layer’s sublayers. [Full Topic] +// A Boolean indicating whether the layer is displayed. Animatable. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/quartzcore/calayer/1410749-layoutmanager?language=objc -func (l_ Layer) LayoutManager() LayoutManagerWrapper { - rv := objc.Call[LayoutManagerWrapper](l_, objc.Sel("layoutManager")) - 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) } -// The object responsible for laying out the layer’s sublayers. [Full Topic] +// An array containing the layer’s sublayers. [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/1410802-sublayers?language=objc +func (l_ Layer) Sublayers() []Layer { + rv := objc.Call[[]Layer](l_, objc.Sel("sublayers")) + return rv } -// The object responsible for laying out the layer’s sublayers. [Full Topic] +// An array containing the layer’s sublayers. [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:"), objc.Ptr(valueObject)) +// [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) } -// A Boolean indicating whether drawing commands are deferred and processed asynchronously in a background thread. [Full Topic] +// A Boolean value indicating whether the layer contains completely opaque content. [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/1410763-opaque?language=objc +func (l_ Layer) IsOpaque() bool { + rv := objc.Call[bool](l_, objc.Sel("isOpaque")) return rv } -// A Boolean indicating whether drawing commands are deferred and processed asynchronously in a background thread. [Full Topic] +// A Boolean value indicating whether the layer contains completely opaque content. [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/1410763-opaque?language=objc +func (l_ Layer) SetOpaque(value bool) { + objc.Call[objc.Void](l_, objc.Sel("setOpaque:"), value) } -// [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/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/1621277-allowsgroupopacity?language=objc +func (l_ Layer) AllowsGroupOpacity() bool { + rv := objc.Call[bool](l_, objc.Sel("allowsGroupOpacity")) return rv } -// [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/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/1621277-allowsgroupopacity?language=objc +func (l_ Layer) SetAllowsGroupOpacity(value bool) { + objc.Call[objc.Void](l_, objc.Sel("setAllowsGroupOpacity:"), value) } -// A Boolean indicating whether the layer displays its content when facing away from the viewer. 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/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/1410740-contentscenter?language=objc +func (l_ Layer) ContentsCenter() coregraphics.Rect { + rv := objc.Call[coregraphics.Rect](l_, objc.Sel("contentsCenter")) return rv } -// A Boolean indicating whether the layer displays its content when facing away from the viewer. 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/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/1410740-contentscenter?language=objc +func (l_ Layer) SetContentsCenter(value coregraphics.Rect) { + objc.Call[objc.Void](l_, objc.Sel("setContentsCenter:"), value) } -// An optional layer whose alpha channel is used to mask the layer’s content. [Full Topic] +// The object responsible for laying out the layer’s sublayers. [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/1410749-layoutmanager?language=objc +func (l_ Layer) LayoutManager() LayoutManagerObject { + rv := objc.Call[LayoutManagerObject](l_, objc.Sel("layoutManager")) return rv } -// 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/1410861-mask?language=objc -func (l_ Layer) SetMask(value ILayer) { - objc.Call[objc.Void](l_, objc.Sel("setMask:"), objc.Ptr(value)) -} - -// A Boolean indicating whether sublayers are clipped to the layer’s bounds. Animatable. [Full Topic] +// The object responsible for laying out the layer’s sublayers. [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")) - 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) } -// A Boolean indicating whether sublayers are clipped to the layer’s bounds. Animatable. [Full Topic] +// The object responsible for laying out the layer’s sublayers. [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/1410749-layoutmanager?language=objc +func (l_ Layer) SetLayoutManagerObject(valueObject objc.IObject) { + objc.Call[objc.Void](l_, objc.Sel("setLayoutManager:"), objc.Ptr(valueObject)) } -// The opacity of the layer’s shadow. Animatable. [Full Topic] +// The scale factor applied to the layer. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/quartzcore/calayer/1410751-shadowopacity?language=objc -func (l_ Layer) ShadowOpacity() float64 { - rv := objc.Call[float64](l_, objc.Sel("shadowOpacity")) +// [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 } -// The opacity of the layer’s shadow. Animatable. [Full Topic] +// The scale factor applied to the layer. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/quartzcore/calayer/1410751-shadowopacity?language=objc -func (l_ Layer) SetShadowOpacity(value float64) { - objc.Call[objc.Void](l_, objc.Sel("setShadowOpacity:"), 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) } -// An object that provides the contents of the layer. Animatable. [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/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/1410905-shouldrasterize?language=objc +func (l_ Layer) ShouldRasterize() bool { + rv := objc.Call[bool](l_, objc.Sel("shouldRasterize")) return rv } -// An object that provides the contents of the layer. Animatable. [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/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/1410905-shouldrasterize?language=objc +func (l_ Layer) SetShouldRasterize(value bool) { + objc.Call[objc.Void](l_, objc.Sel("setShouldRasterize:"), value) } -// An array of Core Image filters to apply to the contents of the layer and its sublayers. 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/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/1410775-minificationfilterbias?language=objc +func (l_ Layer) MinificationFilterBias() float64 { + rv := objc.Call[float64](l_, objc.Sel("minificationFilterBias")) return rv } -// An array of Core Image filters to apply to the contents of the layer and its sublayers. 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/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/1410775-minificationfilterbias?language=objc +func (l_ Layer) SetMinificationFilterBias(value float64) { + objc.Call[objc.Void](l_, objc.Sel("setMinificationFilterBias:"), value) } // [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/2877488-maskedcorners?language=objc +func (l_ Layer) MaskedCorners() CornerMask { + rv := objc.Call[CornerMask](l_, objc.Sel("maskedCorners")) return rv } // [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/2877488-maskedcorners?language=objc +func (l_ Layer) SetMaskedCorners(value CornerMask) { + objc.Call[objc.Void](l_, objc.Sel("setMaskedCorners:"), value) } -// The layer’s frame rectangle. [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/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/1410960-geometryflipped?language=objc +func (l_ Layer) IsGeometryFlipped() bool { + rv := objc.Call[bool](l_, objc.Sel("isGeometryFlipped")) return rv } -// The layer’s frame rectangle. [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/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/1410960-geometryflipped?language=objc +func (l_ Layer) SetGeometryFlipped(value bool) { + objc.Call[objc.Void](l_, objc.Sel("setGeometryFlipped:"), value) } -// The color of the layer’s shadow. Animatable. [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/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/1410877-autoresizingmask?language=objc +func (l_ Layer) AutoresizingMask() AutoresizingMask { + rv := objc.Call[AutoresizingMask](l_, objc.Sel("autoresizingMask")) return rv } -// The color of the layer’s shadow. Animatable. [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/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/1410877-autoresizingmask?language=objc +func (l_ Layer) SetAutoresizingMask(value AutoresizingMask) { + objc.Call[objc.Void](l_, objc.Sel("setAutoresizingMask:"), value) } -// A hint for the desired storage format of the layer contents. [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/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/1410872-contentsgravity?language=objc +func (l_ Layer) ContentsGravity() LayerContentsGravity { + rv := objc.Call[LayerContentsGravity](l_, objc.Sel("contentsGravity")) return rv } -// A hint for the desired storage format of the layer contents. [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/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/1410872-contentsgravity?language=objc +func (l_ Layer) SetContentsGravity(value LayerContentsGravity) { + objc.Call[objc.Void](l_, objc.Sel("setContentsGravity:"), value) } -// The filter used when increasing the size of the content. [Full Topic] +// The layer’s position on the z axis. 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/1410884-zposition?language=objc +func (l_ Layer) ZPosition() float64 { + rv := objc.Call[float64](l_, objc.Sel("zPosition")) return rv } -// The filter used when increasing the size of the content. [Full Topic] +// The layer’s position on the z axis. Animatable. [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) +// [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 CoreImage filter used to composite the layer and the content behind it. Animatable. [Full Topic] +// The color of the layer’s shadow. 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/1410829-shadowcolor?language=objc +func (l_ Layer) ShadowColor() coregraphics.ColorRef { + rv := objc.Call[coregraphics.ColorRef](l_, objc.Sel("shadowColor")) return rv } -// A CoreImage filter used to composite the layer and the content behind it. Animatable. [Full Topic] +// The color of the layer’s shadow. 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/1410829-shadowcolor?language=objc +func (l_ Layer) SetShadowColor(value coregraphics.ColorRef) { + objc.Call[objc.Void](l_, objc.Sel("setShadowColor:"), value) } // The transform applied to the layer’s contents. Animatable. [Full Topic] @@ -1264,167 +1301,169 @@ func (l_ Layer) SetTransform(value Transform3D) { objc.Call[objc.Void](l_, objc.Sel("setTransform:"), value) } -// A Boolean indicating whether the layer is allowed to perform edge antialiasing. [Full Topic] +// The offset (in points) of the layer’s shadow. Animatable. [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/1410970-shadowoffset?language=objc +func (l_ Layer) ShadowOffset() coregraphics.Size { + rv := objc.Call[coregraphics.Size](l_, objc.Sel("shadowOffset")) return rv } -// A Boolean indicating whether the layer is allowed to perform edge antialiasing. [Full Topic] +// The offset (in points) of the layer’s shadow. Animatable. [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/1410970-shadowoffset?language=objc +func (l_ Layer) SetShadowOffset(value coregraphics.Size) { + objc.Call[objc.Void](l_, objc.Sel("setShadowOffset:"), value) } -// The color of the layer’s border. Animatable. [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/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/1410974-drawsasynchronously?language=objc +func (l_ Layer) DrawsAsynchronously() bool { + rv := objc.Call[bool](l_, objc.Sel("drawsAsynchronously")) return rv } -// The color of the layer’s border. Animatable. [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/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/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 contents must be updated when its bounds rectangle changes. [Full Topic] +// The layer’s frame rectangle. [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/1410779-frame?language=objc +func (l_ Layer) Frame() coregraphics.Rect { + rv := objc.Call[coregraphics.Rect](l_, objc.Sel("frame")) return rv } -// A Boolean indicating whether the layer contents must be updated when its bounds rectangle changes. [Full Topic] +// The layer’s frame rectangle. [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/1410779-frame?language=objc +func (l_ Layer) SetFrame(value coregraphics.Rect) { + objc.Call[objc.Void](l_, objc.Sel("setFrame:"), value) } -// The rectangle that defines how the layer contents are scaled if the layer’s contents are resized. Animatable. [Full Topic] +// The visible region of the layer in its own coordinate space. [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/1521892-visiblerect?language=objc +func (l_ Layer) VisibleRect() coregraphics.Rect { + rv := objc.Call[coregraphics.Rect](l_, objc.Sel("visibleRect")) return rv } -// 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/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] +// The anchor point for the layer’s position along the z axis. Animatable. [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/1410796-anchorpointz?language=objc +func (l_ Layer) AnchorPointZ() float64 { + rv := objc.Call[float64](l_, objc.Sel("anchorPointZ")) return rv } -// A bitmask defining how the edges of the receiver are rasterized. [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/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/1410796-anchorpointz?language=objc +func (l_ Layer) SetAnchorPointZ(value float64) { + objc.Call[objc.Void](l_, objc.Sel("setAnchorPointZ:"), value) } -// A bitmask defining how the layer is resized when the bounds of its superlayer changes. [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/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/1410861-mask?language=objc +func (l_ Layer) Mask() Layer { + rv := objc.Call[Layer](l_, objc.Sel("mask")) return rv } -// A bitmask defining how the layer is resized when the bounds of its superlayer changes. [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/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/1410861-mask?language=objc +func (l_ Layer) SetMask(value ILayer) { + objc.Call[objc.Void](l_, objc.Sel("setMask:"), objc.Ptr(value)) } -// An array of Core Image filters to apply to the content immediately behind the layer. Animatable. [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/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/1410801-rasterizationscale?language=objc +func (l_ Layer) RasterizationScale() float64 { + rv := objc.Call[float64](l_, objc.Sel("rasterizationScale")) return rv } -// An array of Core Image filters to apply to the content immediately behind the layer. Animatable. [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/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/1410801-rasterizationscale?language=objc +func (l_ Layer) SetRasterizationScale(value float64) { + objc.Call[objc.Void](l_, objc.Sel("setRasterizationScale:"), value) } -// The width of the layer’s border. Animatable. [Full Topic] +// [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/3152596-cornercurve?language=objc +func (l_ Layer) CornerCurve() LayerCornerCurve { + rv := objc.Call[LayerCornerCurve](l_, objc.Sel("cornerCurve")) return rv } -// The width of the layer’s border. Animatable. [Full Topic] +// [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/3152596-cornercurve?language=objc +func (l_ Layer) SetCornerCurve(value LayerCornerCurve) { + objc.Call[objc.Void](l_, objc.Sel("setCornerCurve:"), value) } -// The constraints used to position current layer’s sublayers. [Full Topic] +// The opacity of the layer’s shadow. 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/1410751-shadowopacity?language=objc +func (l_ Layer) ShadowOpacity() float64 { + rv := objc.Call[float64](l_, objc.Sel("shadowOpacity")) return rv } -// The constraints used to position current layer’s sublayers. [Full Topic] +// The opacity of the layer’s shadow. 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/1410751-shadowopacity?language=objc +func (l_ Layer) SetShadowOpacity(value float64) { + objc.Call[objc.Void](l_, objc.Sel("setShadowOpacity:"), value) } -// A dictionary containing layer actions. [Full Topic] +// The layer’s delegate object. [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/1410984-delegate?language=objc +func (l_ Layer) Delegate() LayerDelegateObject { + rv := objc.Call[LayerDelegateObject](l_, objc.Sel("delegate")) return rv } -// A dictionary containing layer actions. [Full Topic] +// The layer’s delegate object. [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/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 bias factor used by the minification filter to determine the levels of detail. [Full Topic] +// The layer’s delegate object. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/quartzcore/calayer/1410775-minificationfilterbias?language=objc -func (l_ Layer) MinificationFilterBias() float64 { - rv := objc.Call[float64](l_, objc.Sel("minificationFilterBias")) +// [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:"), objc.Ptr(valueObject)) +} + +// 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/1410924-doublesided?language=objc +func (l_ Layer) IsDoubleSided() bool { + rv := objc.Call[bool](l_, objc.Sel("isDoubleSided")) return rv } -// The bias factor used by the minification filter to determine the levels of detail. [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/1410775-minificationfilterbias?language=objc -func (l_ Layer) SetMinificationFilterBias(value float64) { - objc.Call[objc.Void](l_, objc.Sel("setMinificationFilterBias:"), 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) } diff --git a/macos/quartzcore/layer_delegate.gen.go b/macos/quartzcore/layer_delegate.gen.go index 6134c478..e567582a 100644 --- a/macos/quartzcore/layer_delegate.gen.go +++ b/macos/quartzcore/layer_delegate.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package quartzcore @@ -15,30 +15,30 @@ type PLayerDelegate interface { DrawLayerInContext(layer Layer, ctx coregraphics.ContextRef) HasDrawLayerInContext() bool + // optional + DisplayLayer(layer Layer) + HasDisplayLayer() bool + // optional LayoutSublayersOfLayer(layer Layer) HasLayoutSublayersOfLayer() bool // optional - ActionForLayerForKey(layer Layer, event string) PAction + ActionForLayerForKey(layer Layer, event string) ActionObject HasActionForLayerForKey() bool // 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) PAction + _ActionForLayerForKey func(layer Layer, event string) ActionObject _LayerWillDraw func(layer Layer) - _DisplayLayer func(layer Layer) } func (di *LayerDelegate) HasDrawLayerInContext() bool { @@ -58,6 +58,23 @@ 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 } @@ -79,17 +96,17 @@ func (di *LayerDelegate) HasActionForLayerForKey() bool { return di._ActionForLayerForKey != nil } -// Returns the default action of the actionForKey: method. [Full Topic] +// Returns the default action of the [quartzcore/calayer/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) PAction) { +func (di *LayerDelegate) SetActionForLayerForKey(f func(layer Layer, event string) ActionObject) { di._ActionForLayerForKey = f } -// Returns the default action of the actionForKey: method. [Full Topic] +// Returns the default action of the [quartzcore/calayer/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) PAction { +func (di *LayerDelegate) ActionForLayerForKey(layer Layer, event string) ActionObject { return di._ActionForLayerForKey(layer, event) } func (di *LayerDelegate) HasLayerWillDraw() bool { @@ -109,81 +126,67 @@ 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 -} +// ensure impl type implements protocol interface +var _ PLayerDelegate = (*LayerDelegateObject)(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) DisplayLayer(layer Layer) { - di._DisplayLayer(layer) -} - -// A concrete type wrapper for the [PLayerDelegate] protocol. -type LayerDelegateWrapper struct { +// A concrete type for the [PLayerDelegate] protocol. +type LayerDelegateObject struct { objc.Object } -func (l_ LayerDelegateWrapper) HasDrawLayerInContext() bool { +func (l_ LayerDelegateObject) HasDrawLayerInContext() bool { return l_.RespondsToSelector(objc.Sel("drawLayer:inContext:")) } // Tells the delegate to implement the display process using the layer's CGContextRef. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/quartzcore/calayerdelegate/2097262-drawlayer?language=objc -func (l_ LayerDelegateWrapper) DrawLayerInContext(layer ILayer, ctx coregraphics.ContextRef) { +func (l_ LayerDelegateObject) DrawLayerInContext(layer Layer, ctx coregraphics.ContextRef) { objc.Call[objc.Void](l_, objc.Sel("drawLayer:inContext:"), objc.Ptr(layer), ctx) } -func (l_ LayerDelegateWrapper) HasLayoutSublayersOfLayer() bool { +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:"), objc.Ptr(layer)) +} + +func (l_ LayerDelegateObject) HasLayoutSublayersOfLayer() bool { return l_.RespondsToSelector(objc.Sel("layoutSublayersOfLayer:")) } // Tells the delegate a layer's bounds have changed. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/quartzcore/calayerdelegate/2097257-layoutsublayersoflayer?language=objc -func (l_ LayerDelegateWrapper) LayoutSublayersOfLayer(layer ILayer) { +func (l_ LayerDelegateObject) LayoutSublayersOfLayer(layer Layer) { objc.Call[objc.Void](l_, objc.Sel("layoutSublayersOfLayer:"), objc.Ptr(layer)) } -func (l_ LayerDelegateWrapper) HasActionForLayerForKey() bool { +func (l_ LayerDelegateObject) HasActionForLayerForKey() bool { return l_.RespondsToSelector(objc.Sel("actionForLayer:forKey:")) } -// Returns the default action of the actionForKey: method. [Full Topic] +// Returns the default action of the [quartzcore/calayer/actionforkey] method. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/quartzcore/calayerdelegate/2097264-actionforlayer?language=objc -func (l_ LayerDelegateWrapper) ActionForLayerForKey(layer ILayer, event string) ActionWrapper { - rv := objc.Call[ActionWrapper](l_, objc.Sel("actionForLayer:forKey:"), objc.Ptr(layer), event) +func (l_ LayerDelegateObject) ActionForLayerForKey(layer Layer, event string) ActionObject { + rv := objc.Call[ActionObject](l_, objc.Sel("actionForLayer:forKey:"), objc.Ptr(layer), event) return rv } -func (l_ LayerDelegateWrapper) HasLayerWillDraw() bool { +func (l_ LayerDelegateObject) HasLayerWillDraw() bool { return l_.RespondsToSelector(objc.Sel("layerWillDraw:")) } // Notifies the delegate of an imminent draw. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/quartzcore/calayerdelegate/2097263-layerwilldraw?language=objc -func (l_ LayerDelegateWrapper) LayerWillDraw(layer ILayer) { +func (l_ LayerDelegateObject) LayerWillDraw(layer Layer) { objc.Call[objc.Void](l_, objc.Sel("layerWillDraw:"), objc.Ptr(layer)) } - -func (l_ LayerDelegateWrapper) 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_ LayerDelegateWrapper) DisplayLayer(layer ILayer) { - objc.Call[objc.Void](l_, objc.Sel("displayLayer:"), objc.Ptr(layer)) -} diff --git a/macos/quartzcore/layout_manager.gen.go b/macos/quartzcore/layout_manager_protocol.gen.go similarity index 73% rename from macos/quartzcore/layout_manager.gen.go rename to macos/quartzcore/layout_manager_protocol.gen.go index 5e5d99c5..2dcf4005 100644 --- a/macos/quartzcore/layout_manager.gen.go +++ b/macos/quartzcore/layout_manager_protocol.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package quartzcore @@ -15,50 +15,53 @@ type PLayoutManager interface { LayoutSublayersOfLayer(layer Layer) HasLayoutSublayersOfLayer() bool - // optional - InvalidateLayoutOfLayer(layer Layer) - HasInvalidateLayoutOfLayer() bool - // optional PreferredSizeOfLayer(layer Layer) coregraphics.Size HasPreferredSizeOfLayer() bool + + // optional + InvalidateLayoutOfLayer(layer Layer) + HasInvalidateLayoutOfLayer() bool } -// A concrete type wrapper for the [PLayoutManager] protocol. -type LayoutManagerWrapper struct { +// ensure impl type implements protocol interface +var _ PLayoutManager = (*LayoutManagerObject)(nil) + +// A concrete type for the [PLayoutManager] protocol. +type LayoutManagerObject struct { objc.Object } -func (l_ LayoutManagerWrapper) HasLayoutSublayersOfLayer() bool { +func (l_ LayoutManagerObject) HasLayoutSublayersOfLayer() bool { return l_.RespondsToSelector(objc.Sel("layoutSublayersOfLayer:")) } // Override to customize layout of sublayers whenever the layer needs redrawing. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/quartzcore/calayoutmanager/2097260-layoutsublayersoflayer?language=objc -func (l_ LayoutManagerWrapper) LayoutSublayersOfLayer(layer ILayer) { +func (l_ LayoutManagerObject) LayoutSublayersOfLayer(layer Layer) { objc.Call[objc.Void](l_, objc.Sel("layoutSublayersOfLayer:"), objc.Ptr(layer)) } -func (l_ LayoutManagerWrapper) 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_ LayoutManagerWrapper) InvalidateLayoutOfLayer(layer ILayer) { - objc.Call[objc.Void](l_, objc.Sel("invalidateLayoutOfLayer:"), objc.Ptr(layer)) -} - -func (l_ LayoutManagerWrapper) HasPreferredSizeOfLayer() bool { +func (l_ LayoutManagerObject) HasPreferredSizeOfLayer() bool { return l_.RespondsToSelector(objc.Sel("preferredSizeOfLayer:")) } // Override to customize layer size. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/quartzcore/calayoutmanager/2097256-preferredsizeoflayer?language=objc -func (l_ LayoutManagerWrapper) PreferredSizeOfLayer(layer ILayer) coregraphics.Size { +func (l_ LayoutManagerObject) PreferredSizeOfLayer(layer Layer) coregraphics.Size { rv := objc.Call[coregraphics.Size](l_, objc.Sel("preferredSizeOfLayer:"), objc.Ptr(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:"), objc.Ptr(layer)) +} diff --git a/macos/quartzcore/media_timing_function.gen.go b/macos/quartzcore/media_timing_function.gen.go index cd653e36..8e2a71c9 100644 --- a/macos/quartzcore/media_timing_function.gen.go +++ b/macos/quartzcore/media_timing_function.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package quartzcore @@ -34,18 +34,6 @@ 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 float64) MediaTimingFunction { rv := objc.Call[MediaTimingFunction](m_, objc.Sel("initWithControlPoints:"), c1x) return rv @@ -60,6 +48,18 @@ func NewMediaTimingFunctionWithControlPoints(c1x float64) 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 float64) MediaTimingFunction { rv := objc.Call[MediaTimingFunction](mc, objc.Sel("functionWithControlPoints:"), c1x) return rv @@ -77,10 +77,6 @@ func (mc _MediaTimingFunctionClass) Alloc() MediaTimingFunction { return rv } -func MediaTimingFunction_Alloc() MediaTimingFunction { - return MediaTimingFunctionClass.Alloc() -} - func (mc _MediaTimingFunctionClass) New() MediaTimingFunction { rv := objc.Call[MediaTimingFunction](mc, objc.Sel("new")) rv.Autorelease() diff --git a/macos/quartzcore/media_timing.gen.go b/macos/quartzcore/media_timing_protocol.gen.go similarity index 77% rename from macos/quartzcore/media_timing.gen.go rename to macos/quartzcore/media_timing_protocol.gen.go index 247bfa79..ebd699ca 100644 --- a/macos/quartzcore/media_timing.gen.go +++ b/macos/quartzcore/media_timing_protocol.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package quartzcore @@ -20,12 +20,12 @@ type PMediaTiming interface { HasTimeOffset() bool // optional - SetAutoreverses(value bool) - HasSetAutoreverses() bool + SetDuration(value corefoundation.TimeInterval) + HasSetDuration() bool // optional - Autoreverses() bool - HasAutoreverses() bool + Duration() corefoundation.TimeInterval + HasDuration() bool // optional SetRepeatDuration(value corefoundation.TimeInterval) @@ -35,22 +35,6 @@ type PMediaTiming interface { RepeatDuration() corefoundation.TimeInterval HasRepeatDuration() bool - // optional - SetFillMode(value MediaTimingFillMode) - HasSetFillMode() bool - - // optional - FillMode() MediaTimingFillMode - HasFillMode() bool - - // optional - SetSpeed(value float64) - HasSetSpeed() bool - - // optional - Speed() float64 - HasSpeed() bool - // optional SetRepeatCount(value float64) HasSetRepeatCount() bool @@ -68,199 +52,218 @@ type PMediaTiming interface { HasBeginTime() bool // optional - SetDuration(value corefoundation.TimeInterval) - HasSetDuration() bool + SetSpeed(value float64) + HasSetSpeed() bool // optional - Duration() corefoundation.TimeInterval - HasDuration() bool + Speed() float64 + HasSpeed() bool + + // optional + SetAutoreverses(value bool) + HasSetAutoreverses() bool + + // optional + Autoreverses() bool + HasAutoreverses() bool + + // optional + SetFillMode(value MediaTimingFillMode) + HasSetFillMode() bool + + // optional + FillMode() MediaTimingFillMode + HasFillMode() bool } -// A concrete type wrapper for the [PMediaTiming] protocol. -type MediaTimingWrapper struct { +// ensure impl type implements protocol interface +var _ PMediaTiming = (*MediaTimingObject)(nil) + +// A concrete type for the [PMediaTiming] protocol. +type MediaTimingObject struct { objc.Object } -func (m_ MediaTimingWrapper) HasSetTimeOffset() bool { +func (m_ MediaTimingObject) HasSetTimeOffset() bool { return m_.RespondsToSelector(objc.Sel("setTimeOffset:")) } // Specifies an additional time offset in active local time. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/quartzcore/camediatiming/1427650-timeoffset?language=objc -func (m_ MediaTimingWrapper) SetTimeOffset(value corefoundation.TimeInterval) { +func (m_ MediaTimingObject) SetTimeOffset(value corefoundation.TimeInterval) { objc.Call[objc.Void](m_, objc.Sel("setTimeOffset:"), value) } -func (m_ MediaTimingWrapper) HasTimeOffset() bool { +func (m_ MediaTimingObject) HasTimeOffset() bool { return m_.RespondsToSelector(objc.Sel("timeOffset")) } // Specifies an additional time offset in active local time. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/quartzcore/camediatiming/1427650-timeoffset?language=objc -func (m_ MediaTimingWrapper) TimeOffset() corefoundation.TimeInterval { +func (m_ MediaTimingObject) TimeOffset() corefoundation.TimeInterval { rv := objc.Call[corefoundation.TimeInterval](m_, objc.Sel("timeOffset")) return rv } -func (m_ MediaTimingWrapper) HasSetAutoreverses() bool { - return m_.RespondsToSelector(objc.Sel("setAutoreverses:")) +func (m_ MediaTimingObject) HasSetDuration() bool { + return m_.RespondsToSelector(objc.Sel("setDuration:")) } -// Determines if the receiver plays in the reverse upon completion. [Full Topic] +// Specifies the basic duration of the animation, in seconds. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/quartzcore/camediatiming/1427645-autoreverses?language=objc -func (m_ MediaTimingWrapper) SetAutoreverses(value bool) { - objc.Call[objc.Void](m_, objc.Sel("setAutoreverses:"), 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_ MediaTimingWrapper) HasAutoreverses() bool { - return m_.RespondsToSelector(objc.Sel("autoreverses")) +func (m_ MediaTimingObject) HasDuration() bool { + return m_.RespondsToSelector(objc.Sel("duration")) } -// Determines if the receiver plays in the reverse upon completion. [Full Topic] +// Specifies the basic duration of the animation, in seconds. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/quartzcore/camediatiming/1427645-autoreverses?language=objc -func (m_ MediaTimingWrapper) Autoreverses() bool { - rv := objc.Call[bool](m_, objc.Sel("autoreverses")) +// [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 } -func (m_ MediaTimingWrapper) HasSetRepeatDuration() bool { +func (m_ MediaTimingObject) HasSetRepeatDuration() bool { return m_.RespondsToSelector(objc.Sel("setRepeatDuration:")) } // Determines how many seconds the animation will repeat for. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/quartzcore/camediatiming/1427643-repeatduration?language=objc -func (m_ MediaTimingWrapper) SetRepeatDuration(value corefoundation.TimeInterval) { +func (m_ MediaTimingObject) SetRepeatDuration(value corefoundation.TimeInterval) { objc.Call[objc.Void](m_, objc.Sel("setRepeatDuration:"), value) } -func (m_ MediaTimingWrapper) HasRepeatDuration() bool { +func (m_ MediaTimingObject) HasRepeatDuration() bool { return m_.RespondsToSelector(objc.Sel("repeatDuration")) } // Determines how many seconds the animation will repeat for. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/quartzcore/camediatiming/1427643-repeatduration?language=objc -func (m_ MediaTimingWrapper) RepeatDuration() corefoundation.TimeInterval { +func (m_ MediaTimingObject) RepeatDuration() corefoundation.TimeInterval { rv := objc.Call[corefoundation.TimeInterval](m_, objc.Sel("repeatDuration")) return rv } -func (m_ MediaTimingWrapper) HasSetFillMode() bool { - return m_.RespondsToSelector(objc.Sel("setFillMode:")) +func (m_ MediaTimingObject) HasSetRepeatCount() bool { + return m_.RespondsToSelector(objc.Sel("setRepeatCount:")) } -// Determines if the receiver’s presentation is frozen or removed once its active duration has completed. [Full Topic] +// Determines the number of times the animation will repeat. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/quartzcore/camediatiming/1427656-fillmode?language=objc -func (m_ MediaTimingWrapper) SetFillMode(value MediaTimingFillMode) { - objc.Call[objc.Void](m_, objc.Sel("setFillMode:"), value) +// [Full Topic]: https://developer.apple.com/documentation/quartzcore/camediatiming/1427666-repeatcount?language=objc +func (m_ MediaTimingObject) SetRepeatCount(value float64) { + objc.Call[objc.Void](m_, objc.Sel("setRepeatCount:"), value) } -func (m_ MediaTimingWrapper) HasFillMode() bool { - return m_.RespondsToSelector(objc.Sel("fillMode")) +func (m_ MediaTimingObject) HasRepeatCount() bool { + return m_.RespondsToSelector(objc.Sel("repeatCount")) } -// Determines if the receiver’s presentation is frozen or removed once its active duration has completed. [Full Topic] +// Determines the number of times the animation will repeat. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/quartzcore/camediatiming/1427656-fillmode?language=objc -func (m_ MediaTimingWrapper) FillMode() MediaTimingFillMode { - rv := objc.Call[MediaTimingFillMode](m_, objc.Sel("fillMode")) +// [Full Topic]: https://developer.apple.com/documentation/quartzcore/camediatiming/1427666-repeatcount?language=objc +func (m_ MediaTimingObject) RepeatCount() float64 { + rv := objc.Call[float64](m_, objc.Sel("repeatCount")) return rv } -func (m_ MediaTimingWrapper) HasSetSpeed() bool { - return m_.RespondsToSelector(objc.Sel("setSpeed:")) +func (m_ MediaTimingObject) HasSetBeginTime() bool { + return m_.RespondsToSelector(objc.Sel("setBeginTime:")) } -// Specifies how time is mapped to receiver’s time space from the parent time space. [Full Topic] +// Specifies the begin time of the receiver in relation to its parent object, if applicable. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/quartzcore/camediatiming/1427647-speed?language=objc -func (m_ MediaTimingWrapper) SetSpeed(value float64) { - objc.Call[objc.Void](m_, objc.Sel("setSpeed:"), value) +// [Full Topic]: https://developer.apple.com/documentation/quartzcore/camediatiming/1427654-begintime?language=objc +func (m_ MediaTimingObject) SetBeginTime(value corefoundation.TimeInterval) { + objc.Call[objc.Void](m_, objc.Sel("setBeginTime:"), value) } -func (m_ MediaTimingWrapper) HasSpeed() bool { - return m_.RespondsToSelector(objc.Sel("speed")) +func (m_ MediaTimingObject) HasBeginTime() bool { + return m_.RespondsToSelector(objc.Sel("beginTime")) } -// Specifies how time is mapped to receiver’s time space from the parent time space. [Full Topic] +// Specifies the begin time of the receiver in relation to its parent object, if applicable. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/quartzcore/camediatiming/1427647-speed?language=objc -func (m_ MediaTimingWrapper) Speed() float64 { - rv := objc.Call[float64](m_, objc.Sel("speed")) +// [Full Topic]: https://developer.apple.com/documentation/quartzcore/camediatiming/1427654-begintime?language=objc +func (m_ MediaTimingObject) BeginTime() corefoundation.TimeInterval { + rv := objc.Call[corefoundation.TimeInterval](m_, objc.Sel("beginTime")) return rv } -func (m_ MediaTimingWrapper) HasSetRepeatCount() bool { - return m_.RespondsToSelector(objc.Sel("setRepeatCount:")) +func (m_ MediaTimingObject) HasSetSpeed() bool { + return m_.RespondsToSelector(objc.Sel("setSpeed:")) } -// Determines the number of times the animation will repeat. [Full Topic] +// 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/1427666-repeatcount?language=objc -func (m_ MediaTimingWrapper) SetRepeatCount(value float64) { - objc.Call[objc.Void](m_, objc.Sel("setRepeatCount:"), value) +// [Full Topic]: https://developer.apple.com/documentation/quartzcore/camediatiming/1427647-speed?language=objc +func (m_ MediaTimingObject) SetSpeed(value float64) { + objc.Call[objc.Void](m_, objc.Sel("setSpeed:"), value) } -func (m_ MediaTimingWrapper) HasRepeatCount() bool { - return m_.RespondsToSelector(objc.Sel("repeatCount")) +func (m_ MediaTimingObject) HasSpeed() bool { + return m_.RespondsToSelector(objc.Sel("speed")) } -// Determines the number of times the animation will repeat. [Full Topic] +// 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/1427666-repeatcount?language=objc -func (m_ MediaTimingWrapper) RepeatCount() float64 { - rv := objc.Call[float64](m_, objc.Sel("repeatCount")) +// [Full Topic]: https://developer.apple.com/documentation/quartzcore/camediatiming/1427647-speed?language=objc +func (m_ MediaTimingObject) Speed() float64 { + rv := objc.Call[float64](m_, objc.Sel("speed")) return rv } -func (m_ MediaTimingWrapper) HasSetBeginTime() bool { - return m_.RespondsToSelector(objc.Sel("setBeginTime:")) +func (m_ MediaTimingObject) HasSetAutoreverses() bool { + return m_.RespondsToSelector(objc.Sel("setAutoreverses:")) } -// Specifies the begin time of the receiver in relation to its parent object, if applicable. [Full Topic] +// Determines if the receiver plays in the reverse upon completion. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/quartzcore/camediatiming/1427654-begintime?language=objc -func (m_ MediaTimingWrapper) SetBeginTime(value corefoundation.TimeInterval) { - objc.Call[objc.Void](m_, objc.Sel("setBeginTime:"), 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_ MediaTimingWrapper) HasBeginTime() bool { - return m_.RespondsToSelector(objc.Sel("beginTime")) +func (m_ MediaTimingObject) HasAutoreverses() bool { + return m_.RespondsToSelector(objc.Sel("autoreverses")) } -// Specifies the begin time of the receiver in relation to its parent object, if applicable. [Full Topic] +// Determines if the receiver plays in the reverse upon completion. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/quartzcore/camediatiming/1427654-begintime?language=objc -func (m_ MediaTimingWrapper) BeginTime() corefoundation.TimeInterval { - rv := objc.Call[corefoundation.TimeInterval](m_, objc.Sel("beginTime")) +// [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_ MediaTimingWrapper) HasSetDuration() bool { - return m_.RespondsToSelector(objc.Sel("setDuration:")) +func (m_ MediaTimingObject) HasSetFillMode() bool { + return m_.RespondsToSelector(objc.Sel("setFillMode:")) } -// Specifies the basic duration of the animation, in seconds. [Full Topic] +// 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/1427652-duration?language=objc -func (m_ MediaTimingWrapper) SetDuration(value corefoundation.TimeInterval) { - objc.Call[objc.Void](m_, objc.Sel("setDuration:"), value) +// [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_ MediaTimingWrapper) HasDuration() bool { - return m_.RespondsToSelector(objc.Sel("duration")) +func (m_ MediaTimingObject) HasFillMode() bool { + return m_.RespondsToSelector(objc.Sel("fillMode")) } -// Specifies the basic duration of the animation, in seconds. [Full Topic] +// 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/1427652-duration?language=objc -func (m_ MediaTimingWrapper) Duration() corefoundation.TimeInterval { - rv := objc.Call[corefoundation.TimeInterval](m_, objc.Sel("duration")) +// [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 } diff --git a/macos/quartzcore/metal_drawable.gen.go b/macos/quartzcore/metal_drawable_protocol.gen.go similarity index 63% rename from macos/quartzcore/metal_drawable.gen.go rename to macos/quartzcore/metal_drawable_protocol.gen.go index 0bbc5a44..e2322b81 100644 --- a/macos/quartzcore/metal_drawable.gen.go +++ b/macos/quartzcore/metal_drawable_protocol.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package quartzcore @@ -12,39 +12,42 @@ import ( // [Full Topic]: https://developer.apple.com/documentation/quartzcore/cametaldrawable?language=objc type PMetalDrawable interface { // optional - Layer() IMetalLayer - HasLayer() bool + Texture() metal.TextureObject + HasTexture() bool // optional - Texture() metal.PTexture - HasTexture() bool + Layer() MetalLayer + HasLayer() bool } -// A concrete type wrapper for the [PMetalDrawable] protocol. -type MetalDrawableWrapper struct { +// ensure impl type implements protocol interface +var _ PMetalDrawable = (*MetalDrawableObject)(nil) + +// A concrete type for the [PMetalDrawable] protocol. +type MetalDrawableObject struct { objc.Object } -func (m_ MetalDrawableWrapper) HasLayer() bool { - return m_.RespondsToSelector(objc.Sel("layer")) +func (m_ MetalDrawableObject) HasTexture() bool { + return m_.RespondsToSelector(objc.Sel("texture")) } -// The layer that owns this drawable object. [Full Topic] +// A Metal texture object that contains the drawable’s contents. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/quartzcore/cametaldrawable/1478165-layer?language=objc -func (m_ MetalDrawableWrapper) Layer() MetalLayer { - rv := objc.Call[MetalLayer](m_, objc.Sel("layer")) +// [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_ MetalDrawableWrapper) HasTexture() bool { - return m_.RespondsToSelector(objc.Sel("texture")) +func (m_ MetalDrawableObject) HasLayer() bool { + return m_.RespondsToSelector(objc.Sel("layer")) } -// A Metal texture object that contains the drawable’s contents. [Full Topic] +// The layer that owns this drawable object. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/quartzcore/cametaldrawable/1478159-texture?language=objc -func (m_ MetalDrawableWrapper) Texture() metal.TextureWrapper { - rv := objc.Call[metal.TextureWrapper](m_, objc.Sel("texture")) +// [Full Topic]: https://developer.apple.com/documentation/quartzcore/cametaldrawable/1478165-layer?language=objc +func (m_ MetalDrawableObject) Layer() MetalLayer { + rv := objc.Call[MetalLayer](m_, objc.Sel("layer")) return rv } diff --git a/macos/quartzcore/metal_layer.gen.go b/macos/quartzcore/metal_layer.gen.go index bd5a1d9d..310a2502 100644 --- a/macos/quartzcore/metal_layer.gen.go +++ b/macos/quartzcore/metal_layer.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package quartzcore @@ -20,29 +20,29 @@ type _MetalLayerClass struct { // An interface definition for the [MetalLayer] class. type IMetalLayer interface { ILayer - NextDrawable() MetalDrawableWrapper - WantsExtendedDynamicRangeContent() bool - SetWantsExtendedDynamicRangeContent(value bool) - FramebufferOnly() bool - SetFramebufferOnly(value bool) + NextDrawable() MetalDrawableObject + AllowsNextDrawableTimeout() bool + SetAllowsNextDrawableTimeout(value bool) + PreferredDevice() metal.DeviceObject + PixelFormat() metal.PixelFormat + SetPixelFormat(value metal.PixelFormat) + DisplaySyncEnabled() bool + SetDisplaySyncEnabled(value bool) PresentsWithTransaction() bool SetPresentsWithTransaction(value bool) - Device() metal.DeviceWrapper - SetDevice(value metal.PDevice) - SetDeviceObject(valueObject objc.IObject) EDRMetadata() EDRMetadata SetEDRMetadata(value IEDRMetadata) Colorspace() coregraphics.ColorSpaceRef SetColorspace(value coregraphics.ColorSpaceRef) - PreferredDevice() metal.DeviceWrapper - AllowsNextDrawableTimeout() bool - SetAllowsNextDrawableTimeout(value bool) - DisplaySyncEnabled() bool - SetDisplaySyncEnabled(value bool) - PixelFormat() metal.PixelFormat - SetPixelFormat(value metal.PixelFormat) + WantsExtendedDynamicRangeContent() bool + SetWantsExtendedDynamicRangeContent(value bool) 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) } @@ -65,10 +65,6 @@ func (mc _MetalLayerClass) Alloc() MetalLayer { return rv } -func MetalLayer_Alloc() MetalLayer { - return MetalLayerClass.Alloc() -} - func (mc _MetalLayerClass) New() MetalLayer { rv := objc.Call[MetalLayer](mc, objc.Sel("new")) rv.Autorelease() @@ -84,16 +80,32 @@ func (m_ MetalLayer) Init() MetalLayer { return rv } -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] +// Returns the model layer object associated with the receiver, if any. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/quartzcore/calayer/1410793-layer?language=objc -func MetalLayer_Layer() MetalLayer { - return MetalLayerClass.Layer() +// [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")) + return rv +} + +// 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/1410744-presentationlayer?language=objc +func MetalLayer_PresentationLayer() MetalLayer { + instance := MetalLayerClass.Alloc().PresentationLayer() + instance.Autorelease() + return instance } func (m_ MetalLayer) InitWithLayer(layer objc.IObject) MetalLayer { @@ -110,70 +122,77 @@ func NewMetalLayerWithLayer(layer objc.IObject) MetalLayer { return instance } -func (m_ MetalLayer) ModelLayer() MetalLayer { - rv := objc.Call[MetalLayer](m_, objc.Sel("modelLayer")) +func (mc _MetalLayerClass) Layer() MetalLayer { + rv := objc.Call[MetalLayer](mc, 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 MetalLayer_ModelLayer() MetalLayer { - instance := MetalLayerClass.Alloc().ModelLayer() - 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) PresentationLayer() MetalLayer { - rv := objc.Call[MetalLayer](m_, objc.Sel("presentationLayer")) +// Waits until a Metal drawable is available, and then returns it. [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 } -// Returns a copy of the presentation layer object that represents the state of the layer as it currently appears 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/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/cametallayer/2887086-allowsnextdrawabletimeout?language=objc +func (m_ MetalLayer) AllowsNextDrawableTimeout() bool { + rv := objc.Call[bool](m_, objc.Sel("allowsNextDrawableTimeout")) + return rv } -// Waits until a Metal drawable is available, and then returns it. [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/1478172-nextdrawable?language=objc -func (m_ MetalLayer) NextDrawable() MetalDrawableWrapper { - rv := objc.Call[MetalDrawableWrapper](m_, objc.Sel("nextDrawable")) +// [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 device object that the system recommends using for this layer. [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")) return rv } -// Enables extended dynamic range values onscreen. [Full Topic] +// The pixel format of the layer’s textures. [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/1478155-pixelformat?language=objc +func (m_ MetalLayer) PixelFormat() metal.PixelFormat { + rv := objc.Call[metal.PixelFormat](m_, objc.Sel("pixelFormat")) return rv } -// Enables extended dynamic range values onscreen. [Full Topic] +// The pixel format of the layer’s textures. [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/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] +// 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/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/2887087-displaysyncenabled?language=objc +func (m_ MetalLayer) DisplaySyncEnabled() bool { + rv := objc.Call[bool](m_, objc.Sel("displaySyncEnabled")) return rv } -// A Boolean value that determines whether the layer’s textures are used only for rendering. [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/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/2887087-displaysyncenabled?language=objc +func (m_ MetalLayer) SetDisplaySyncEnabled(value bool) { + objc.Call[objc.Void](m_, objc.Sel("setDisplaySyncEnabled:"), value) } // A Boolean value that determines whether the layer presents its content using a Core Animation transaction. [Full Topic] @@ -191,29 +210,6 @@ 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.DeviceWrapper { - rv := objc.Call[metal.DeviceWrapper](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:"), objc.Ptr(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 @@ -244,72 +240,72 @@ func (m_ MetalLayer) SetColorspace(value coregraphics.ColorSpaceRef) { objc.Call[objc.Void](m_, objc.Sel("setColorspace:"), value) } -// The device object that the system recommends using for this layer. [Full Topic] +// Enables extended dynamic range values onscreen. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/quartzcore/cametallayer/3175021-preferreddevice?language=objc -func (m_ MetalLayer) PreferredDevice() metal.DeviceWrapper { - rv := objc.Call[metal.DeviceWrapper](m_, objc.Sel("preferredDevice")) +// [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 } -// A Boolean value that determines whether requests for a new buffer expire if the system can’t satisfy them. [Full Topic] +// Enables extended dynamic range values onscreen. [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")) - return rv +// [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 requests for a new buffer expire if the system can’t satisfy them. [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/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/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 synchronizes its updates to the display’s refresh rate. [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/2887087-displaysyncenabled?language=objc -func (m_ MetalLayer) DisplaySyncEnabled() bool { - rv := objc.Call[bool](m_, objc.Sel("displaySyncEnabled")) - return rv +// [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) } -// A Boolean value that determines whether the layer synchronizes its updates to the display’s refresh rate. [Full Topic] +// The Metal device responsible for the layer’s drawable resources. [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/1478163-device?language=objc +func (m_ MetalLayer) Device() metal.DeviceObject { + rv := objc.Call[metal.DeviceObject](m_, objc.Sel("device")) + return rv } -// The pixel format of the layer’s textures. [Full Topic] +// The Metal device responsible for the layer’s drawable resources. [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")) - return rv +// [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 pixel format of the layer’s textures. [Full Topic] +// The Metal device responsible for the layer’s drawable resources. [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/1478163-device?language=objc +func (m_ MetalLayer) SetDeviceObject(valueObject objc.IObject) { + objc.Call[objc.Void](m_, objc.Sel("setDevice:"), objc.Ptr(valueObject)) } -// The number of Metal drawables in the resource pool managed by Core Animation. [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/2938720-maximumdrawablecount?language=objc -func (m_ MetalLayer) MaximumDrawableCount() uint { - rv := objc.Call[uint](m_, objc.Sel("maximumDrawableCount")) +// [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 } -// The number of Metal drawables in the resource pool managed by Core Animation. [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/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/1478168-framebufferonly?language=objc +func (m_ MetalLayer) SetFramebufferOnly(value bool) { + objc.Call[objc.Void](m_, objc.Sel("setFramebufferOnly:"), 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 e4224a0e..8286a8ee 100644 --- a/macos/quartzcore/open_gl_layer.gen.go +++ b/macos/quartzcore/open_gl_layer.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package quartzcore @@ -38,10 +38,6 @@ func (oc _OpenGLLayerClass) Alloc() OpenGLLayer { return rv } -func OpenGLLayer_Alloc() OpenGLLayer { - return OpenGLLayerClass.Alloc() -} - func (oc _OpenGLLayerClass) New() OpenGLLayer { rv := objc.Call[OpenGLLayer](oc, objc.Sel("new")) rv.Autorelease() @@ -57,32 +53,6 @@ func (o_ OpenGLLayer) Init() OpenGLLayer { return rv } -func (oc _OpenGLLayerClass) Layer() OpenGLLayer { - rv := objc.Call[OpenGLLayer](oc, 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 OpenGLLayer_Layer() OpenGLLayer { - return OpenGLLayerClass.Layer() -} - -func (o_ OpenGLLayer) InitWithLayer(layer objc.IObject) OpenGLLayer { - rv := objc.Call[OpenGLLayer](o_, 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 NewOpenGLLayerWithLayer(layer objc.IObject) OpenGLLayer { - instance := OpenGLLayerClass.Alloc().InitWithLayer(layer) - instance.Autorelease() - return instance -} - func (o_ OpenGLLayer) ModelLayer() OpenGLLayer { rv := objc.Call[OpenGLLayer](o_, objc.Sel("modelLayer")) return rv @@ -110,3 +80,29 @@ func OpenGLLayer_PresentationLayer() OpenGLLayer { instance.Autorelease() return instance } + +func (o_ OpenGLLayer) InitWithLayer(layer objc.IObject) OpenGLLayer { + rv := objc.Call[OpenGLLayer](o_, 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 NewOpenGLLayerWithLayer(layer objc.IObject) OpenGLLayer { + instance := OpenGLLayerClass.Alloc().InitWithLayer(layer) + instance.Autorelease() + return instance +} + +func (oc _OpenGLLayerClass) Layer() OpenGLLayer { + rv := objc.Call[OpenGLLayer](oc, 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 OpenGLLayer_Layer() OpenGLLayer { + return OpenGLLayerClass.Layer() +} diff --git a/macos/quartzcore/property_animation.gen.go b/macos/quartzcore/property_animation.gen.go index ecc0fa65..f3b1b6f6 100644 --- a/macos/quartzcore/property_animation.gen.go +++ b/macos/quartzcore/property_animation.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package quartzcore @@ -18,14 +18,14 @@ type _PropertyAnimationClass struct { // An interface definition for the [PropertyAnimation] class. type IPropertyAnimation interface { IAnimation - KeyPath() string - SetKeyPath(value string) + ValueFunction() ValueFunction + SetValueFunction(value IValueFunction) IsCumulative() bool SetCumulative(value bool) IsAdditive() bool SetAdditive(value bool) - ValueFunction() ValueFunction - SetValueFunction(value IValueFunction) + KeyPath() string + SetKeyPath(value string) } // An abstract subclass of CAAnimation for creating animations that manipulate the value of layer properties. [Full Topic] @@ -58,10 +58,6 @@ func (pc _PropertyAnimationClass) Alloc() PropertyAnimation { return rv } -func PropertyAnimation_Alloc() PropertyAnimation { - return PropertyAnimationClass.Alloc() -} - func (pc _PropertyAnimationClass) New() PropertyAnimation { rv := objc.Call[PropertyAnimation](pc, objc.Sel("new")) rv.Autorelease() @@ -89,19 +85,19 @@ func PropertyAnimation_Animation() PropertyAnimation { return PropertyAnimationClass.Animation() } -// 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:"), objc.Ptr(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] @@ -134,17 +130,17 @@ func (p_ PropertyAnimation) SetAdditive(value bool) { objc.Call[objc.Void](p_, objc.Sel("setAdditive:"), value) } -// 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:"), objc.Ptr(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) } diff --git a/macos/quartzcore/protocols.gen.m b/macos/quartzcore/protocols.gen.m index b6dc2336..512dbcd6 100644 --- a/macos/quartzcore/protocols.gen.m +++ b/macos/quartzcore/protocols.gen.m @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. #import "QuartzCore/QuartzCore.h" diff --git a/macos/quartzcore/remote_layer_client.gen.go b/macos/quartzcore/remote_layer_client.gen.go index f4e6486c..1440f2c9 100644 --- a/macos/quartzcore/remote_layer_client.gen.go +++ b/macos/quartzcore/remote_layer_client.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package quartzcore @@ -19,9 +19,9 @@ type _RemoteLayerClientClass struct { type IRemoteLayerClient interface { objc.IObject Invalidate() + ClientId() uint32 Layer() Layer SetLayer(value ILayer) - ClientId() uint32 } // [Full Topic] @@ -42,10 +42,6 @@ func (rc _RemoteLayerClientClass) Alloc() RemoteLayerClient { return rv } -func RemoteLayerClient_Alloc() RemoteLayerClient { - return RemoteLayerClientClass.Alloc() -} - func (rc _RemoteLayerClientClass) New() RemoteLayerClient { rv := objc.Call[RemoteLayerClient](rc, objc.Sel("new")) rv.Autorelease() @@ -68,6 +64,14 @@ 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 @@ -82,11 +86,3 @@ func (r_ RemoteLayerClient) Layer() Layer { func (r_ RemoteLayerClient) SetLayer(value ILayer) { objc.Call[objc.Void](r_, objc.Sel("setLayer:"), objc.Ptr(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/remote_layer_server.gen.go b/macos/quartzcore/remote_layer_server.gen.go index 3a11ac13..182309da 100644 --- a/macos/quartzcore/remote_layer_server.gen.go +++ b/macos/quartzcore/remote_layer_server.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package quartzcore @@ -38,10 +38,6 @@ func (rc _RemoteLayerServerClass) Alloc() RemoteLayerServer { return rv } -func RemoteLayerServer_Alloc() RemoteLayerServer { - return RemoteLayerServerClass.Alloc() -} - func (rc _RemoteLayerServerClass) New() RemoteLayerServer { rv := objc.Call[RemoteLayerServer](rc, objc.Sel("new")) rv.Autorelease() diff --git a/macos/quartzcore/renderer.gen.go b/macos/quartzcore/renderer.gen.go index 96a544a6..c1648fed 100644 --- a/macos/quartzcore/renderer.gen.go +++ b/macos/quartzcore/renderer.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package quartzcore @@ -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) - 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) + Layer() Layer + SetLayer(value ILayer) } // A layer that allows an application to render a layer tree into a Core OpenGL context. [Full Topic] @@ -55,10 +55,6 @@ func (rc _RendererClass) Alloc() Renderer { return rv } -func Renderer_Alloc() Renderer { - return RendererClass.Alloc() -} - func (rc _RendererClass) New() Renderer { rv := objc.Call[Renderer](rc, objc.Sel("new")) rv.Autorelease() @@ -74,34 +70,26 @@ func (r_ Renderer) Init() Renderer { return rv } -// 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 -} - -// [Full Topic] +// Begin rendering a frame at the specified time. [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/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] +// Release any data associated with the current frame. [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:"), objc.Ptr(texObject)) +// [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")) } -// Render the update region of the current frame to the target context. [Full Topic] +// 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/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/1519594-updatebounds?language=objc +func (r_ Renderer) UpdateBounds() coregraphics.Rect { + rv := objc.Call[coregraphics.Rect](r_, objc.Sel("updateBounds")) + return rv } // Creates a layer renderer from a Metal texture. [Full Topic] @@ -120,21 +108,6 @@ 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 @@ -142,26 +115,34 @@ func (r_ Renderer) AddUpdateRect(r coregraphics.Rect) { objc.Call[objc.Void](r_, objc.Sel("addUpdateRect:"), r) } -// 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 } -// The root layer of the layer-tree the receiver should render. [Full Topic] +// Render the update region of the current frame to the target context. [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 +// [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")) } -// The root layer of the layer-tree the receiver should render. [Full Topic] +// [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:"), objc.Ptr(value)) +// [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] +// +// [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:"), objc.Ptr(texObject)) } // The bounds of the receiver. [Full Topic] @@ -178,3 +159,18 @@ 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:"), objc.Ptr(value)) +} diff --git a/macos/quartzcore/replicator_layer.gen.go b/macos/quartzcore/replicator_layer.gen.go index 3f16d2ae..4310f03f 100644 --- a/macos/quartzcore/replicator_layer.gen.go +++ b/macos/quartzcore/replicator_layer.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package quartzcore @@ -20,24 +20,24 @@ type _ReplicatorLayerClass struct { // An interface definition for the [ReplicatorLayer] class. type IReplicatorLayer interface { ILayer - InstanceBlueOffset() float64 - SetInstanceBlueOffset(value float64) InstanceRedOffset() float64 SetInstanceRedOffset(value float64) - InstanceColor() coregraphics.ColorRef - SetInstanceColor(value coregraphics.ColorRef) - InstanceTransform() Transform3D - SetInstanceTransform(value Transform3D) - InstanceAlphaOffset() float64 - SetInstanceAlphaOffset(value float64) - InstanceGreenOffset() float64 - SetInstanceGreenOffset(value float64) + InstanceBlueOffset() float64 + SetInstanceBlueOffset(value float64) InstanceDelay() corefoundation.TimeInterval SetInstanceDelay(value corefoundation.TimeInterval) InstanceCount() int SetInstanceCount(value int) + InstanceAlphaOffset() float64 + SetInstanceAlphaOffset(value float64) + InstanceColor() coregraphics.ColorRef + SetInstanceColor(value coregraphics.ColorRef) PreservesDepth() bool SetPreservesDepth(value bool) + InstanceGreenOffset() float64 + SetInstanceGreenOffset(value float64) + InstanceTransform() Transform3D + SetInstanceTransform(value Transform3D) } // A layer that creates a specified number of sublayer copies with varying geometric, temporal, and color transformations. [Full Topic] @@ -58,10 +58,6 @@ func (rc _ReplicatorLayerClass) Alloc() ReplicatorLayer { return rv } -func ReplicatorLayer_Alloc() ReplicatorLayer { - return ReplicatorLayerClass.Alloc() -} - func (rc _ReplicatorLayerClass) New() ReplicatorLayer { rv := objc.Call[ReplicatorLayer](rc, objc.Sel("new")) rv.Autorelease() @@ -77,32 +73,6 @@ 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 @@ -131,19 +101,30 @@ func ReplicatorLayer_PresentationLayer() ReplicatorLayer { return instance } -// Defines the offset added to the blue component of the color for each replicated instance. Animatable. [Full Topic] +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/careplicatorlayer/1522267-instanceblueoffset?language=objc -func (r_ ReplicatorLayer) InstanceBlueOffset() float64 { - rv := objc.Call[float64](r_, objc.Sel("instanceBlueOffset")) +// [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")) return rv } -// Defines the offset added to the blue component of the color for each replicated instance. Animatable. [Full Topic] +// Creates and returns an instance of the layer object. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/quartzcore/careplicatorlayer/1522267-instanceblueoffset?language=objc -func (r_ ReplicatorLayer) SetInstanceBlueOffset(value float64) { - objc.Call[objc.Void](r_, objc.Sel("setInstanceBlueOffset:"), value) +// [Full Topic]: https://developer.apple.com/documentation/quartzcore/calayer/1410793-layer?language=objc +func ReplicatorLayer_Layer() ReplicatorLayer { + return ReplicatorLayerClass.Layer() } // Defines the offset added to the red component of the color for each replicated instance. Animatable. [Full Topic] @@ -161,34 +142,49 @@ func (r_ ReplicatorLayer) SetInstanceRedOffset(value float64) { objc.Call[objc.Void](r_, objc.Sel("setInstanceRedOffset:"), value) } -// Defines the color used to multiply the source object. Animatable. [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/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/1522267-instanceblueoffset?language=objc +func (r_ ReplicatorLayer) InstanceBlueOffset() float64 { + rv := objc.Call[float64](r_, objc.Sel("instanceBlueOffset")) return rv } -// Defines the color used to multiply the source object. Animatable. [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/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/1522267-instanceblueoffset?language=objc +func (r_ ReplicatorLayer) SetInstanceBlueOffset(value float64) { + objc.Call[objc.Void](r_, objc.Sel("setInstanceBlueOffset:"), value) } -// The transform matrix applied to the previous instance to produce the current instance. Animatable. [Full Topic] +// Specifies the delay, in seconds, between replicated copies. Animatable. [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/1522391-instancedelay?language=objc +func (r_ ReplicatorLayer) InstanceDelay() corefoundation.TimeInterval { + rv := objc.Call[corefoundation.TimeInterval](r_, objc.Sel("instanceDelay")) return rv } -// The transform matrix applied to the previous instance to produce the current instance. Animatable. [Full Topic] +// Specifies the delay, in seconds, between replicated copies. Animatable. [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/1522391-instancedelay?language=objc +func (r_ ReplicatorLayer) SetInstanceDelay(value corefoundation.TimeInterval) { + objc.Call[objc.Void](r_, objc.Sel("setInstanceDelay:"), value) +} + +// The number of copies to create, including the source layers. [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")) + return rv +} + +// The number of copies to create, including the source layers. [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) } // Defines the offset added to the alpha component of the color for each replicated instance. Animatable. [Full Topic] @@ -206,62 +202,62 @@ func (r_ ReplicatorLayer) SetInstanceAlphaOffset(value float64) { objc.Call[objc.Void](r_, objc.Sel("setInstanceAlphaOffset:"), value) } -// Defines the offset added to the green component of the color for each replicated instance. Animatable. [Full Topic] +// Defines the color used to multiply the source object. Animatable. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/quartzcore/careplicatorlayer/1522032-instancegreenoffset?language=objc -func (r_ ReplicatorLayer) InstanceGreenOffset() float64 { - rv := objc.Call[float64](r_, objc.Sel("instanceGreenOffset")) +// [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 } -// Defines the offset added to the green component of the color for each replicated instance. Animatable. [Full Topic] +// Defines the color used to multiply the source object. Animatable. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/quartzcore/careplicatorlayer/1522032-instancegreenoffset?language=objc -func (r_ ReplicatorLayer) SetInstanceGreenOffset(value float64) { - objc.Call[objc.Void](r_, objc.Sel("setInstanceGreenOffset:"), 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) } -// Specifies the delay, in seconds, between replicated copies. Animatable. [Full Topic] +// Defines whether this layer flattens its sublayers into its plane. [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/1522095-preservesdepth?language=objc +func (r_ ReplicatorLayer) PreservesDepth() bool { + rv := objc.Call[bool](r_, objc.Sel("preservesDepth")) return rv } -// Specifies the delay, in seconds, between replicated copies. Animatable. [Full Topic] +// Defines whether this layer flattens its sublayers into its plane. [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/1522095-preservesdepth?language=objc +func (r_ ReplicatorLayer) SetPreservesDepth(value bool) { + objc.Call[objc.Void](r_, objc.Sel("setPreservesDepth:"), value) } -// The number of copies to create, including the source layers. [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/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/1522032-instancegreenoffset?language=objc +func (r_ ReplicatorLayer) InstanceGreenOffset() float64 { + rv := objc.Call[float64](r_, objc.Sel("instanceGreenOffset")) return rv } -// The number of copies to create, including the source layers. [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/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/1522032-instancegreenoffset?language=objc +func (r_ ReplicatorLayer) SetInstanceGreenOffset(value float64) { + objc.Call[objc.Void](r_, objc.Sel("setInstanceGreenOffset:"), value) } -// Defines whether this layer flattens its sublayers into its plane. [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/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/1522312-instancetransform?language=objc +func (r_ ReplicatorLayer) InstanceTransform() Transform3D { + rv := objc.Call[Transform3D](r_, objc.Sel("instanceTransform")) return rv } -// Defines whether this layer flattens its sublayers into its plane. [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/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/1522312-instancetransform?language=objc +func (r_ ReplicatorLayer) SetInstanceTransform(value Transform3D) { + objc.Call[objc.Void](r_, objc.Sel("setInstanceTransform:"), value) } diff --git a/macos/quartzcore/scroll_layer.gen.go b/macos/quartzcore/scroll_layer.gen.go index f1e59d35..5d223f66 100644 --- a/macos/quartzcore/scroll_layer.gen.go +++ b/macos/quartzcore/scroll_layer.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package quartzcore @@ -43,10 +43,6 @@ func (sc _ScrollLayerClass) Alloc() ScrollLayer { return rv } -func ScrollLayer_Alloc() ScrollLayer { - return ScrollLayerClass.Alloc() -} - func (sc _ScrollLayerClass) New() ScrollLayer { rv := objc.Call[ScrollLayer](sc, objc.Sel("new")) rv.Autorelease() @@ -62,32 +58,6 @@ func (s_ ScrollLayer) Init() ScrollLayer { return rv } -func (sc _ScrollLayerClass) Layer() ScrollLayer { - rv := objc.Call[ScrollLayer](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 ScrollLayer_Layer() ScrollLayer { - return ScrollLayerClass.Layer() -} - -func (s_ ScrollLayer) InitWithLayer(layer objc.IObject) ScrollLayer { - rv := objc.Call[ScrollLayer](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 NewScrollLayerWithLayer(layer objc.IObject) ScrollLayer { - instance := ScrollLayerClass.Alloc().InitWithLayer(layer) - instance.Autorelease() - return instance -} - func (s_ ScrollLayer) ModelLayer() ScrollLayer { rv := objc.Call[ScrollLayer](s_, objc.Sel("modelLayer")) return rv @@ -116,6 +86,32 @@ func ScrollLayer_PresentationLayer() ScrollLayer { return instance } +func (s_ ScrollLayer) InitWithLayer(layer objc.IObject) ScrollLayer { + rv := objc.Call[ScrollLayer](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 NewScrollLayerWithLayer(layer objc.IObject) ScrollLayer { + instance := ScrollLayerClass.Alloc().InitWithLayer(layer) + instance.Autorelease() + return instance +} + +func (sc _ScrollLayerClass) Layer() ScrollLayer { + rv := objc.Call[ScrollLayer](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 ScrollLayer_Layer() ScrollLayer { + return ScrollLayerClass.Layer() +} + // Changes the origin of the receiver to the specified point. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/quartzcore/cascrolllayer/1522021-scrolltopoint?language=objc diff --git a/macos/quartzcore/shape_layer.gen.go b/macos/quartzcore/shape_layer.gen.go index 7c17a7f6..bddb9a39 100644 --- a/macos/quartzcore/shape_layer.gen.go +++ b/macos/quartzcore/shape_layer.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package quartzcore @@ -20,30 +20,30 @@ type _ShapeLayerClass struct { // An interface definition for the [ShapeLayer] class. type IShapeLayer interface { ILayer - Path() unsafe.Pointer - SetPath(value unsafe.Pointer) - LineWidth() float64 - SetLineWidth(value float64) - StrokeStart() float64 - SetStrokeStart(value float64) - LineDashPhase() float64 - SetLineDashPhase(value float64) + LineCap() ShapeLayerLineCap + SetLineCap(value ShapeLayerLineCap) + LineDashPattern() []foundation.Number + SetLineDashPattern(value []foundation.INumber) + StrokeColor() coregraphics.ColorRef + SetStrokeColor(value coregraphics.ColorRef) MiterLimit() float64 SetMiterLimit(value float64) StrokeEnd() float64 SetStrokeEnd(value float64) LineJoin() ShapeLayerLineJoin SetLineJoin(value ShapeLayerLineJoin) - LineDashPattern() []foundation.Number - SetLineDashPattern(value []foundation.INumber) - StrokeColor() coregraphics.ColorRef - SetStrokeColor(value coregraphics.ColorRef) + StrokeStart() float64 + SetStrokeStart(value float64) FillColor() coregraphics.ColorRef SetFillColor(value coregraphics.ColorRef) - LineCap() ShapeLayerLineCap - SetLineCap(value ShapeLayerLineCap) + LineWidth() float64 + SetLineWidth(value float64) + LineDashPhase() float64 + SetLineDashPhase(value float64) 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] @@ -64,10 +64,6 @@ func (sc _ShapeLayerClass) Alloc() ShapeLayer { return rv } -func ShapeLayer_Alloc() ShapeLayer { - return ShapeLayerClass.Alloc() -} - func (sc _ShapeLayerClass) New() ShapeLayer { rv := objc.Call[ShapeLayer](sc, objc.Sel("new")) rv.Autorelease() @@ -83,32 +79,6 @@ 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 @@ -137,64 +107,75 @@ func ShapeLayer_PresentationLayer() ShapeLayer { return instance } -// The path defining the shape to be rendered. Animatable. [Full Topic] +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/cashapelayer/1521904-path?language=objc -func (s_ ShapeLayer) Path() unsafe.Pointer { - rv := objc.Call[unsafe.Pointer](s_, objc.Sel("path")) +// [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")) return rv } -// The path defining the shape to be rendered. Animatable. [Full Topic] +// Creates and returns an instance of the layer object. [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) +// [Full Topic]: https://developer.apple.com/documentation/quartzcore/calayer/1410793-layer?language=objc +func ShapeLayer_Layer() ShapeLayer { + return ShapeLayerClass.Layer() } -// Specifies the line width of the shape’s path. Animatable. [Full Topic] +// Specifies the line cap style for the shape’s path. [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")) +// [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 } -// Specifies the line width of the shape’s path. Animatable. [Full Topic] +// Specifies the line cap style for the shape’s path. [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) +// [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 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 dash phase applied to the shape’s path when stroked. Animatable. [Full Topic] +// The color used to stroke the shape’s path. Animatable. [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/1521897-strokecolor?language=objc +func (s_ ShapeLayer) StrokeColor() coregraphics.ColorRef { + rv := objc.Call[coregraphics.ColorRef](s_, objc.Sel("strokeColor")) return rv } -// The dash phase applied to the shape’s path when stroked. Animatable. [Full Topic] +// The color used to stroke the shape’s path. Animatable. [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/1521897-strokecolor?language=objc +func (s_ ShapeLayer) SetStrokeColor(value coregraphics.ColorRef) { + objc.Call[objc.Void](s_, objc.Sel("setStrokeColor:"), value) } // The miter limit used when stroking the shape’s path. Animatable. [Full Topic] @@ -242,34 +223,19 @@ func (s_ ShapeLayer) SetLineJoin(value ShapeLayerLineJoin) { objc.Call[objc.Void](s_, objc.Sel("setLineJoin:"), value) } -// The dash pattern applied to the shape’s path when stroked. [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")) - return rv -} - -// The dash pattern applied to the shape’s path when stroked. [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) -} - -// The color used to stroke the shape’s path. Animatable. [Full Topic] +// The relative location at which to begin stroking the 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")) +// [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 color used to stroke the shape’s path. Animatable. [Full Topic] +// The relative location at which to begin stroking the 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) +// [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 fill the shape’s path. Animatable. [Full Topic] @@ -287,19 +253,34 @@ func (s_ ShapeLayer) SetFillColor(value coregraphics.ColorRef) { objc.Call[objc.Void](s_, objc.Sel("setFillColor:"), 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 phase applied to the shape’s path when stroked. Animatable. [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")) + return rv +} + +// The dash phase applied to the shape’s path when stroked. Animatable. [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) } // The fill rule used when filling the shape’s path. [Full Topic] @@ -316,3 +297,18 @@ 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 d5ccf5db..86244cda 100644 --- a/macos/quartzcore/spring_animation.gen.go +++ b/macos/quartzcore/spring_animation.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package quartzcore @@ -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) - InitialVelocity() float64 - SetInitialVelocity(value float64) - Mass() float64 - SetMass(value float64) Damping() float64 SetDamping(value float64) - SettlingDuration() corefoundation.TimeInterval + Mass() float64 + SetMass(value float64) + InitialVelocity() float64 + SetInitialVelocity(value float64) } // An animation that applies a spring-like force to a layer's properties. [Full Topic] @@ -48,10 +48,6 @@ func (sc _SpringAnimationClass) Alloc() SpringAnimation { return rv } -func SpringAnimation_Alloc() SpringAnimation { - return SpringAnimationClass.Alloc() -} - func (sc _SpringAnimationClass) New() SpringAnimation { rv := objc.Call[SpringAnimation](sc, objc.Sel("new")) rv.Autorelease() @@ -91,6 +87,14 @@ 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 @@ -106,19 +110,19 @@ func (s_ SpringAnimation) SetStiffness(value float64) { objc.Call[objc.Void](s_, objc.Sel("setStiffness:"), 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 mass of the object attached to the end of the spring. [Full Topic] @@ -136,25 +140,17 @@ func (s_ SpringAnimation) SetMass(value float64) { objc.Call[objc.Void](s_, objc.Sel("setMass:"), 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] -// -// [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] +// The initial velocity of the object attached to the spring. [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 +// [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) } diff --git a/macos/quartzcore/text_layer.gen.go b/macos/quartzcore/text_layer.gen.go index 460706f7..98d198a0 100644 --- a/macos/quartzcore/text_layer.gen.go +++ b/macos/quartzcore/text_layer.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package quartzcore @@ -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] @@ -56,10 +56,6 @@ func (tc _TextLayerClass) Alloc() TextLayer { return rv } -func TextLayer_Alloc() TextLayer { - return TextLayerClass.Alloc() -} - func (tc _TextLayerClass) New() TextLayer { rv := objc.Call[TextLayer](tc, objc.Sel("new")) rv.Autorelease() @@ -75,32 +71,6 @@ 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 @@ -129,34 +99,30 @@ func TextLayer_PresentationLayer() TextLayer { return instance } -// 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")) +func (t_ TextLayer) InitWithLayer(layer objc.IObject) TextLayer { + rv := objc.Call[TextLayer](t_, objc.Sel("initWithLayer:"), layer) return rv } -// The font size used to render the receiver’s text. Animatable. [Full Topic] +// Override to copy or initialize custom fields of the specified layer. [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) +// [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 } -// 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")) +func (tc _TextLayerClass) Layer() TextLayer { + rv := objc.Call[TextLayer](tc, objc.Sel("layer")) return rv } -// Determines whether the text is wrapped to fit within the receiver’s bounds. [Full Topic] +// Creates and returns an instance of the layer object. [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) +// [Full Topic]: https://developer.apple.com/documentation/quartzcore/calayer/1410793-layer?language=objc +func TextLayer_Layer() TextLayer { + return TextLayerClass.Layer() } // Determines how individual lines of text are horizontally aligned within the receiver’s bounds. [Full Topic] @@ -174,21 +140,6 @@ 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 @@ -219,6 +170,21 @@ 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 @@ -234,6 +200,21 @@ 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 @@ -248,3 +229,18 @@ 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 d9c7ac09..d06e1709 100644 --- a/macos/quartzcore/tiled_layer.gen.go +++ b/macos/quartzcore/tiled_layer.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package quartzcore @@ -20,10 +20,10 @@ type _TiledLayerClass struct { // An interface definition for the [TiledLayer] class. type ITiledLayer interface { ILayer - TileSize() coregraphics.Size - SetTileSize(value coregraphics.Size) LevelsOfDetail() uint SetLevelsOfDetail(value uint) + TileSize() coregraphics.Size + SetTileSize(value coregraphics.Size) LevelsOfDetailBias() uint SetLevelsOfDetailBias(value uint) } @@ -46,10 +46,6 @@ func (tc _TiledLayerClass) Alloc() TiledLayer { return rv } -func TiledLayer_Alloc() TiledLayer { - return TiledLayerClass.Alloc() -} - func (tc _TiledLayerClass) New() TiledLayer { rv := objc.Call[TiledLayer](tc, objc.Sel("new")) rv.Autorelease() @@ -65,32 +61,6 @@ func (t_ TiledLayer) Init() TiledLayer { return rv } -func (tc _TiledLayerClass) Layer() TiledLayer { - rv := objc.Call[TiledLayer](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 TiledLayer_Layer() TiledLayer { - return TiledLayerClass.Layer() -} - -func (t_ TiledLayer) InitWithLayer(layer objc.IObject) TiledLayer { - rv := objc.Call[TiledLayer](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 NewTiledLayerWithLayer(layer objc.IObject) TiledLayer { - instance := TiledLayerClass.Alloc().InitWithLayer(layer) - instance.Autorelease() - return instance -} - func (t_ TiledLayer) ModelLayer() TiledLayer { rv := objc.Call[TiledLayer](t_, objc.Sel("modelLayer")) return rv @@ -119,6 +89,32 @@ func TiledLayer_PresentationLayer() TiledLayer { return instance } +func (t_ TiledLayer) InitWithLayer(layer objc.IObject) TiledLayer { + rv := objc.Call[TiledLayer](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 NewTiledLayerWithLayer(layer objc.IObject) TiledLayer { + instance := TiledLayerClass.Alloc().InitWithLayer(layer) + instance.Autorelease() + return instance +} + +func (tc _TiledLayerClass) Layer() TiledLayer { + rv := objc.Call[TiledLayer](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 TiledLayer_Layer() TiledLayer { + return TiledLayerClass.Layer() +} + // The time, in seconds, that newly added images take to "fade-in" to the rendered representation of the tiled layer. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/quartzcore/catiledlayer/1522145-fadeduration?language=objc @@ -134,21 +130,6 @@ func TiledLayer_FadeDuration() corefoundation.TimeInterval { return TiledLayerClass.FadeDuration() } -// 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 -func (t_ TiledLayer) TileSize() coregraphics.Size { - rv := objc.Call[coregraphics.Size](t_, objc.Sel("tileSize")) - return rv -} - -// 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 -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 @@ -164,6 +145,21 @@ 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 +func (t_ TiledLayer) TileSize() coregraphics.Size { + rv := objc.Call[coregraphics.Size](t_, objc.Sel("tileSize")) + return rv +} + +// 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 +func (t_ TiledLayer) SetTileSize(value coregraphics.Size) { + objc.Call[objc.Void](t_, objc.Sel("setTileSize:"), 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 0551db51..036222ac 100644 --- a/macos/quartzcore/transaction.gen.go +++ b/macos/quartzcore/transaction.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package quartzcore @@ -39,10 +39,6 @@ func (tc _TransactionClass) Alloc() Transaction { return rv } -func Transaction_Alloc() Transaction { - return TransactionClass.Alloc() -} - func (tc _TransactionClass) New() Transaction { rv := objc.Call[Transaction](tc, objc.Sel("new")) rv.Autorelease() @@ -58,132 +54,148 @@ func (t_ Transaction) Init() Transaction { return rv } -// Returns the timing function used for all animations within this transaction group. [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/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/1448279-setanimationtimingfunction?language=objc +func (tc _TransactionClass) SetAnimationTimingFunction(function IMediaTimingFunction) { + objc.Call[objc.Void](tc, objc.Sel("setAnimationTimingFunction:"), objc.Ptr(function)) } -// Returns the timing function used for all animations within this transaction group. [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/1448269-animationtimingfunction?language=objc -func Transaction_AnimationTimingFunction() MediaTimingFunction { - return TransactionClass.AnimationTimingFunction() +// [Full Topic]: https://developer.apple.com/documentation/quartzcore/catransaction/1448279-setanimationtimingfunction?language=objc +func Transaction_SetAnimationTimingFunction(function IMediaTimingFunction) { + TransactionClass.SetAnimationTimingFunction(function) } -// Sets the completion block object. [Full Topic] +// Commit all changes made during the current transaction. [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/1448255-commit?language=objc +func (tc _TransactionClass) Commit() { + objc.Call[objc.Void](tc, objc.Sel("commit")) } -// Sets the completion block object. [Full Topic] +// Commit all changes made during the current transaction. [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/1448255-commit?language=objc +func Transaction_Commit() { + TransactionClass.Commit() } -// Begin a new transaction for the current thread. [Full Topic] +// Relinquishes a previously acquired transaction lock. [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/1448285-unlock?language=objc +func (tc _TransactionClass) Unlock() { + objc.Call[objc.Void](tc, objc.Sel("unlock")) } -// Begin a new transaction for the current thread. [Full Topic] +// Relinquishes a previously acquired transaction lock. [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/1448285-unlock?language=objc +func Transaction_Unlock() { + TransactionClass.Unlock() } -// Attempts to acquire a recursive spin-lock lock, ensuring that returned layer values are valid until unlocked. [Full Topic] +// Flushes any extant implicit transaction. [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/1448270-flush?language=objc +func (tc _TransactionClass) Flush() { + objc.Call[objc.Void](tc, objc.Sel("flush")) } -// Attempts to acquire a recursive spin-lock lock, ensuring that returned layer values are valid until unlocked. [Full Topic] +// Flushes any extant implicit transaction. [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/1448270-flush?language=objc +func Transaction_Flush() { + TransactionClass.Flush() } -// Returns whether actions triggered as a result of property changes made within this transaction group are suppressed. [Full Topic] +// Returns the completion block object. [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/1448280-completionblock?language=objc +func (tc _TransactionClass) CompletionBlock() func() { + rv := objc.Call[func()](tc, objc.Sel("completionBlock")) return rv } -// Returns whether actions triggered as a result of property changes made within this transaction group are suppressed. [Full Topic] +// Returns the completion block object. [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/1448280-completionblock?language=objc +func Transaction_CompletionBlock() func() { + return TransactionClass.CompletionBlock() } -// Commit all changes made during the current transaction. [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/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/1448263-animationduration?language=objc +func (tc _TransactionClass) AnimationDuration() corefoundation.TimeInterval { + rv := objc.Call[corefoundation.TimeInterval](tc, objc.Sel("animationDuration")) + return rv } -// Commit all changes made during the current transaction. [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/1448255-commit?language=objc -func Transaction_Commit() { - TransactionClass.Commit() +// [Full Topic]: https://developer.apple.com/documentation/quartzcore/catransaction/1448263-animationduration?language=objc +func Transaction_AnimationDuration() corefoundation.TimeInterval { + return TransactionClass.AnimationDuration() } -// Flushes any extant implicit transaction. [Full Topic] +// Returns the arbitrary keyed-data specified by the given key. [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/1448259-valueforkey?language=objc +func (tc _TransactionClass) ValueForKey(key string) objc.Object { + rv := objc.Call[objc.Object](tc, objc.Sel("valueForKey:"), key) + return rv } -// Flushes any extant implicit transaction. [Full Topic] +// Returns the arbitrary keyed-data specified by the given key. [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/1448259-valueforkey?language=objc +func Transaction_ValueForKey(key string) objc.Object { + return TransactionClass.ValueForKey(key) } -// Sets the timing function used for all animations within this transaction group. [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/1448279-setanimationtimingfunction?language=objc -func (tc _TransactionClass) SetAnimationTimingFunction(function IMediaTimingFunction) { - objc.Call[objc.Void](tc, objc.Sel("setAnimationTimingFunction:"), objc.Ptr(function)) +// [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 } -// Sets the timing function used for all animations within this transaction group. [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/1448279-setanimationtimingfunction?language=objc -func Transaction_SetAnimationTimingFunction(function IMediaTimingFunction) { - TransactionClass.SetAnimationTimingFunction(function) +// [Full Topic]: https://developer.apple.com/documentation/quartzcore/catransaction/1448269-animationtimingfunction?language=objc +func Transaction_AnimationTimingFunction() MediaTimingFunction { + return TransactionClass.AnimationTimingFunction() } -// Sets the animation duration used by all animations within this transaction group. [Full Topic] +// Sets 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/1448281-setcompletionblock?language=objc +func (tc _TransactionClass) SetCompletionBlock(block func()) { + objc.Call[objc.Void](tc, objc.Sel("setCompletionBlock:"), block) } -// Sets the animation duration used by all animations within this transaction group. [Full Topic] +// Sets 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/1448281-setcompletionblock?language=objc +func Transaction_SetCompletionBlock(block func()) { + TransactionClass.SetCompletionBlock(block) +} + +// 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/1448267-lock?language=objc +func (tc _TransactionClass) Lock() { + objc.Call[objc.Void](tc, objc.Sel("lock")) +} + +// 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/1448267-lock?language=objc +func Transaction_Lock() { + TransactionClass.Lock() } // Sets whether actions triggered as a result of property changes made within this transaction group are suppressed. [Full Topic] @@ -200,33 +212,18 @@ func Transaction_SetDisableActions(flag bool) { TransactionClass.SetDisableActions(flag) } -// Returns the completion block object. [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 -} - -// Returns the completion block object. [Full Topic] -// -// [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] +// Sets the animation duration used by all animations within this transaction group. [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/1448283-setanimationduration?language=objc +func (tc _TransactionClass) SetAnimationDuration(dur corefoundation.TimeInterval) { + objc.Call[objc.Void](tc, objc.Sel("setAnimationDuration:"), dur) } -// Relinquishes a previously acquired transaction lock. [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/1448285-unlock?language=objc -func Transaction_Unlock() { - TransactionClass.Unlock() +// [Full Topic]: https://developer.apple.com/documentation/quartzcore/catransaction/1448283-setanimationduration?language=objc +func Transaction_SetAnimationDuration(dur corefoundation.TimeInterval) { + TransactionClass.SetAnimationDuration(dur) } // Sets the arbitrary keyed-data for the specified key. [Full Topic] @@ -243,32 +240,31 @@ func Transaction_SetValueForKey(anObject objc.IObject, key string) { TransactionClass.SetValueForKey(anObject, key) } -// 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] +// Begin a new transaction for the current thread. [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/1448282-begin?language=objc +func (tc _TransactionClass) Begin() { + objc.Call[objc.Void](tc, objc.Sel("begin")) } -// Returns the arbitrary keyed-data specified by the given key. [Full Topic] +// Begin a new transaction for the current thread. [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/1448282-begin?language=objc +func Transaction_Begin() { + TransactionClass.Begin() } diff --git a/macos/quartzcore/transform_layer.gen.go b/macos/quartzcore/transform_layer.gen.go index ea60dbd5..b28121fe 100644 --- a/macos/quartzcore/transform_layer.gen.go +++ b/macos/quartzcore/transform_layer.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package quartzcore @@ -38,10 +38,6 @@ func (tc _TransformLayerClass) Alloc() TransformLayer { return rv } -func TransformLayer_Alloc() TransformLayer { - return TransformLayerClass.Alloc() -} - func (tc _TransformLayerClass) New() TransformLayer { rv := objc.Call[TransformLayer](tc, objc.Sel("new")) rv.Autorelease() @@ -57,32 +53,6 @@ func (t_ TransformLayer) Init() TransformLayer { return rv } -func (tc _TransformLayerClass) Layer() TransformLayer { - rv := objc.Call[TransformLayer](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 TransformLayer_Layer() TransformLayer { - return TransformLayerClass.Layer() -} - -func (t_ TransformLayer) InitWithLayer(layer objc.IObject) TransformLayer { - rv := objc.Call[TransformLayer](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 NewTransformLayerWithLayer(layer objc.IObject) TransformLayer { - instance := TransformLayerClass.Alloc().InitWithLayer(layer) - instance.Autorelease() - return instance -} - func (t_ TransformLayer) ModelLayer() TransformLayer { rv := objc.Call[TransformLayer](t_, objc.Sel("modelLayer")) return rv @@ -110,3 +80,29 @@ func TransformLayer_PresentationLayer() TransformLayer { instance.Autorelease() return instance } + +func (t_ TransformLayer) InitWithLayer(layer objc.IObject) TransformLayer { + rv := objc.Call[TransformLayer](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 NewTransformLayerWithLayer(layer objc.IObject) TransformLayer { + instance := TransformLayerClass.Alloc().InitWithLayer(layer) + instance.Autorelease() + return instance +} + +func (tc _TransformLayerClass) Layer() TransformLayer { + rv := objc.Call[TransformLayer](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 TransformLayer_Layer() TransformLayer { + return TransformLayerClass.Layer() +} diff --git a/macos/quartzcore/transition.gen.go b/macos/quartzcore/transition.gen.go index bb4e7562..c290703d 100644 --- a/macos/quartzcore/transition.gen.go +++ b/macos/quartzcore/transition.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package quartzcore @@ -18,16 +18,16 @@ type _TransitionClass struct { // An interface definition for the [Transition] class. type ITransition interface { IAnimation - Filter() objc.Object - SetFilter(value objc.IObject) + StartProgress() float64 + SetStartProgress(value float64) EndProgress() float64 SetEndProgress(value float64) Subtype() TransitionSubtype SetSubtype(value TransitionSubtype) + Filter() objc.Object + SetFilter(value objc.IObject) Type() TransitionType SetType(value TransitionType) - StartProgress() float64 - SetStartProgress(value float64) } // An object that provides an animated transition between a layer's states. [Full Topic] @@ -48,10 +48,6 @@ func (tc _TransitionClass) Alloc() Transition { return rv } -func Transition_Alloc() Transition { - return TransitionClass.Alloc() -} - func (tc _TransitionClass) New() Transition { rv := objc.Call[Transition](tc, objc.Sel("new")) rv.Autorelease() @@ -79,19 +75,19 @@ func Transition_Animation() Transition { return TransitionClass.Animation() } -// An optional Core Image filter object that provides the transition. [Full Topic] +// 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/1412506-filter?language=objc -func (t_ Transition) Filter() objc.Object { - rv := objc.Call[objc.Object](t_, objc.Sel("filter")) +// [Full Topic]: https://developer.apple.com/documentation/quartzcore/catransition/1412511-startprogress?language=objc +func (t_ Transition) StartProgress() float64 { + rv := objc.Call[float64](t_, objc.Sel("startProgress")) return rv } -// An optional Core Image filter object that provides the transition. [Full Topic] +// 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/1412506-filter?language=objc -func (t_ Transition) SetFilter(value objc.IObject) { - objc.Call[objc.Void](t_, objc.Sel("setFilter:"), value) +// [Full Topic]: https://developer.apple.com/documentation/quartzcore/catransition/1412511-startprogress?language=objc +func (t_ Transition) SetStartProgress(value float64) { + objc.Call[objc.Void](t_, objc.Sel("setStartProgress:"), value) } // Indicates the end point of the receiver as a fraction of the entire transition. [Full Topic] @@ -124,6 +120,21 @@ 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 @@ -138,18 +149,3 @@ 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() float64 { - rv := objc.Call[float64](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 float64) { - objc.Call[objc.Void](t_, objc.Sel("setStartProgress:"), value) -} diff --git a/macos/quartzcore/value_function.gen.go b/macos/quartzcore/value_function.gen.go index a60c1ff4..80d96f12 100644 --- a/macos/quartzcore/value_function.gen.go +++ b/macos/quartzcore/value_function.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package quartzcore @@ -51,10 +51,6 @@ func (vc _ValueFunctionClass) Alloc() ValueFunction { return rv } -func ValueFunction_Alloc() ValueFunction { - return ValueFunctionClass.Alloc() -} - func (vc _ValueFunctionClass) New() ValueFunction { rv := objc.Call[ValueFunction](vc, objc.Sel("new")) rv.Autorelease() diff --git a/macos/sysconfig/aliastypes.gen.go b/macos/sysconfig/aliastypes.gen.go index 3fdc16b1..a3db0cf5 100644 --- a/macos/sysconfig/aliastypes.gen.go +++ b/macos/sysconfig/aliastypes.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package sysconfig diff --git a/macos/sysconfig/doc.gen.go b/macos/sysconfig/doc.gen.go index 5fade057..57c6bc4b 100644 --- a/macos/sysconfig/doc.gen.go +++ b/macos/sysconfig/doc.gen.go @@ -1,8 +1,8 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. // Allow applications to access a device’s network configuration settings. Determine the reachability of the device, such as whether Wi-Fi or cell connectivity are active. // -// [Full Documentation] +// [Apple Documentation] // -// [Full Documentation]: https://developer.apple.com/documentation/systemconfiguration?language=objc +// [Apple Documentation]: https://developer.apple.com/documentation/systemconfiguration?language=objc package sysconfig diff --git a/macos/sysconfig/enumtypes.gen.go b/macos/sysconfig/enumtypes.gen.go index 2fb312b4..a621116c 100644 --- a/macos/sysconfig/enumtypes.gen.go +++ b/macos/sysconfig/enumtypes.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package sysconfig diff --git a/macos/sysconfig/protocols.gen.m b/macos/sysconfig/protocols.gen.m index 7a26ea52..f7ec8da1 100644 --- a/macos/sysconfig/protocols.gen.m +++ b/macos/sysconfig/protocols.gen.m @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. #import "SystemConfiguration/SystemConfiguration.h" diff --git a/macos/uti/doc.gen.go b/macos/uti/doc.gen.go index 57ef987c..20e7f15b 100644 --- a/macos/uti/doc.gen.go +++ b/macos/uti/doc.gen.go @@ -1,8 +1,8 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. // Provide uniform type identifiers that describe file types for storage or transfer. // -// [Full Documentation] +// [Apple Documentation] // -// [Full Documentation]: https://developer.apple.com/documentation/uniformtypeidentifiers?language=objc +// [Apple Documentation]: https://developer.apple.com/documentation/uniformtypeidentifiers?language=objc package uti diff --git a/macos/uti/protocols.gen.m b/macos/uti/protocols.gen.m index fdc11f8f..b4179dd7 100644 --- a/macos/uti/protocols.gen.m +++ b/macos/uti/protocols.gen.m @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. #import "UniformTypeIdentifiers/UniformTypeIdentifiers.h" diff --git a/macos/uti/type.gen.go b/macos/uti/type.gen.go index 47f276b1..82d7ea0f 100644 --- a/macos/uti/type.gen.go +++ b/macos/uti/type.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package uti @@ -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 - LocalizedDescription() string - Version() foundation.Number - PreferredFilenameExtension() string - Supertypes() foundation.Set - IsDynamic() bool + IsSupertypeOfType(type_ IType) bool + Identifier() string IsPublicType() bool + Supertypes() foundation.Set + Version() foundation.Number ReferenceURL() foundation.URL + Tags() map[string][]string + PreferredFilenameExtension() string PreferredMIMEType() string + IsDynamic() bool + LocalizedDescription() 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,28 +48,28 @@ func TypeFrom(ptr unsafe.Pointer) Type { } } -func (tc _TypeClass) TypeWithMIMEType(mimeType string) Type { - rv := objc.Call[Type](tc, objc.Sel("typeWithMIMEType:"), mimeType) +func (tc _TypeClass) TypeWithIdentifier(identifier string) Type { + rv := objc.Call[Type](tc, objc.Sel("typeWithIdentifier:"), identifier) return rv } -// Creates a type based on a MIME type. [Full Topic] +// Creates a type based on an identifier. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/uniformtypeidentifiers/uttype/3548219-typewithmimetype?language=objc -func Type_TypeWithMIMEType(mimeType string) Type { - return TypeClass.TypeWithMIMEType(mimeType) +// [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) TypeWithFilenameExtension(filenameExtension string) Type { - rv := objc.Call[Type](tc, objc.Sel("typeWithFilenameExtension:"), filenameExtension) +func (tc _TypeClass) TypeWithMIMEType(mimeType string) Type { + rv := objc.Call[Type](tc, objc.Sel("typeWithMIMEType:"), mimeType) return rv } -// Creates a type that represents the specified filename extension. [Full Topic] +// Creates a type based on a MIME type. [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/3548219-typewithmimetype?language=objc +func Type_TypeWithMIMEType(mimeType string) Type { + return TypeClass.TypeWithMIMEType(mimeType) } func (tc _TypeClass) TypeWithTagTagClassConformingToType(tag string, tagClass string, supertype IType) Type { @@ -84,63 +84,60 @@ func Type_TypeWithTagTagClassConformingToType(tag string, tagClass string, super return TypeClass.TypeWithTagTagClassConformingToType(tag, tagClass, supertype) } -func (tc _TypeClass) TypeWithIdentifier(identifier string) Type { - rv := objc.Call[Type](tc, objc.Sel("typeWithIdentifier:"), identifier) +func (tc _TypeClass) TypeWithMIMETypeConformingToType(mimeType string, supertype IType) Type { + rv := objc.Call[Type](tc, objc.Sel("typeWithMIMEType:conformingToType:"), mimeType, objc.Ptr(supertype)) return rv } -// Creates a type based on an identifier. [Full Topic] +// Creates a type based on a MIME type and a supertype that it conforms to. [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) +// [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) } -func (tc _TypeClass) Alloc() Type { - rv := objc.Call[Type](tc, objc.Sel("alloc")) +func (tc _TypeClass) TypeWithFilenameExtensionConformingToType(filenameExtension string, supertype IType) Type { + rv := objc.Call[Type](tc, objc.Sel("typeWithFilenameExtension:conformingToType:"), filenameExtension, objc.Ptr(supertype)) return rv } -func Type_Alloc() Type { - return TypeClass.Alloc() +// Creates a type that represents the specified filename extension and 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) } -func (tc _TypeClass) New() Type { - rv := objc.Call[Type](tc, objc.Sel("new")) - rv.Autorelease() +func (tc _TypeClass) TypeWithFilenameExtension(filenameExtension string) Type { + rv := objc.Call[Type](tc, objc.Sel("typeWithFilenameExtension:"), filenameExtension) return rv } -func NewType() Type { - return TypeClass.New() +// Creates a type that represents the specified filename extension. [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) } -func (t_ Type) Init() Type { - rv := objc.Call[Type](t_, objc.Sel("init")) +func (tc _TypeClass) Alloc() Type { + rv := objc.Call[Type](tc, objc.Sel("alloc")) 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:"), objc.Ptr(type_)) +func (tc _TypeClass) New() Type { + rv := objc.Call[Type](tc, objc.Sel("new")) + rv.Autorelease() 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 +func NewType() Type { + return TypeClass.New() } -// 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) +func (t_ Type) Init() Type { + rv := objc.Call[Type](t_, objc.Sel("init")) + return rv } // Creates a type your app owns based on an identifier. [Full Topic] @@ -166,6 +163,51 @@ 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, objc.Ptr(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, objc.Ptr(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 @@ -174,6 +216,14 @@ 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:"), objc.Ptr(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 @@ -189,27 +239,19 @@ func Type_TypesWithTagTagClassConformingToType(tag string, tagClass string, supe return TypeClass.TypesWithTagTagClassConformingToType(tag, tagClass, supertype) } -// A localized description 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")) - return rv -} - -// The type’s version, if available. [Full Topic] +// The string that represents the type. [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/3548206-identifier?language=objc +func (t_ Type) Identifier() string { + rv := objc.Call[string](t_, objc.Sel("identifier")) return rv } -// The preferred filename extension for 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/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/3548212-publictype?language=objc +func (t_ Type) IsPublicType() bool { + rv := objc.Call[bool](t_, objc.Sel("isPublicType")) return rv } @@ -221,19 +263,11 @@ func (t_ Type) Supertypes() foundation.Set { return rv } -// A Boolean value that indicates whether the system generates 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")) - 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 } @@ -245,6 +279,22 @@ func (t_ Type) ReferenceURL() foundation.URL { return rv } +// The tag specification dictionary of the type. [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")) + return rv +} + +// The preferred filename extension 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")) + return rv +} + // The preferred MIME type for the type. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/uniformtypeidentifiers/uttype/3548211-preferredmimetype?language=objc @@ -253,26 +303,26 @@ func (t_ Type) PreferredMIMEType() string { return rv } -// A Boolean value that indicates whether the system declares 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/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/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 localized description of the type. [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/3548209-localizeddescription?language=objc +func (t_ Type) LocalizedDescription() string { + rv := objc.Call[string](t_, objc.Sel("localizedDescription")) return rv } -// The string that represents 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/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/3548204-declared?language=objc +func (t_ Type) IsDeclared() bool { + rv := objc.Call[bool](t_, objc.Sel("isDeclared")) return rv } diff --git a/macos/vision/aliastypes.gen.go b/macos/vision/aliastypes.gen.go index 75370501..15c645b7 100644 --- a/macos/vision/aliastypes.gen.go +++ b/macos/vision/aliastypes.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package vision diff --git a/macos/vision/barcode_observation.gen.go b/macos/vision/barcode_observation.gen.go index 0c0cfe07..fe3f9864 100644 --- a/macos/vision/barcode_observation.gen.go +++ b/macos/vision/barcode_observation.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package vision @@ -20,9 +20,9 @@ type _BarcodeObservationClass struct { // An interface definition for the [BarcodeObservation] class. type IBarcodeObservation interface { IRectangleObservation - PayloadStringValue() string - BarcodeDescriptor() coreimage.BarcodeDescriptor Symbology() BarcodeSymbology + BarcodeDescriptor() coreimage.BarcodeDescriptor + PayloadStringValue() string } // An object that represents barcode information that an image analysis request detects. [Full Topic] @@ -43,10 +43,6 @@ func (bc _BarcodeObservationClass) Alloc() BarcodeObservation { return rv } -func BarcodeObservation_Alloc() BarcodeObservation { - return BarcodeObservationClass.Alloc() -} - func (bc _BarcodeObservationClass) New() BarcodeObservation { rv := objc.Call[BarcodeObservation](bc, objc.Sel("new")) rv.Autorelease() @@ -86,11 +82,11 @@ func BarcodeObservation_ObservationWithRequestRevisionBoundingBox(requestRevisio return BarcodeObservationClass.ObservationWithRequestRevisionBoundingBox(requestRevision, boundingBox) } -// 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 } @@ -102,10 +98,10 @@ func (b_ BarcodeObservation) BarcodeDescriptor() coreimage.BarcodeDescriptor { return rv } -// 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 } diff --git a/macos/vision/circle.gen.go b/macos/vision/circle.gen.go index 2a7fb446..3324e1f7 100644 --- a/macos/vision/circle.gen.go +++ b/macos/vision/circle.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package vision @@ -18,9 +18,10 @@ 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 - Radius() float64 Diameter() float64 + Radius() float64 Center() Point } @@ -51,13 +52,23 @@ func NewCircleWithCenterRadius(center IPoint, radius float64) Circle { return instance } -func (cc _CircleClass) Alloc() Circle { - rv := objc.Call[Circle](cc, objc.Sel("alloc")) +func (c_ Circle) InitWithCenterDiameter(center IPoint, diameter float64) Circle { + rv := objc.Call[Circle](c_, objc.Sel("initWithCenter:diameter:"), objc.Ptr(center), diameter) return rv } -func Circle_Alloc() Circle { - return CircleClass.Alloc() +// 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 } func (cc _CircleClass) New() Circle { @@ -75,19 +86,19 @@ func (c_ Circle) Init() Circle { return rv } -// Determines if this circle, including its boundary, contains the specified point. [Full Topic] +// Determines if a ring around this circle’s circumference contains the specified point. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/vision/vncircle/3548313-containspoint?language=objc -func (c_ Circle) ContainsPoint(point IPoint) bool { - rv := objc.Call[bool](c_, objc.Sel("containsPoint:"), objc.Ptr(point)) +// [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:"), objc.Ptr(point), ringWidth) return rv } -// The circle’s radius. [Full Topic] +// Determines if this circle, including its boundary, contains the specified point. [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")) +// [Full Topic]: https://developer.apple.com/documentation/vision/vncircle/3548313-containspoint?language=objc +func (c_ Circle) ContainsPoint(point IPoint) bool { + rv := objc.Call[bool](c_, objc.Sel("containsPoint:"), objc.Ptr(point)) return rv } @@ -114,6 +125,14 @@ 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 9140d80f..4d27a2a2 100644 --- a/macos/vision/classification_observation.gen.go +++ b/macos/vision/classification_observation.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package vision @@ -20,8 +20,8 @@ type IClassificationObservation interface { IObservation HasMinimumRecallForPrecision(minimumRecall float64, precision float64) bool HasMinimumPrecisionForRecall(minimumPrecision float64, recall float64) bool - HasPrecisionRecallCurve() bool Identifier() string + HasPrecisionRecallCurve() bool } // An object that represents classification information that an image analysis request produces. [Full Topic] @@ -42,10 +42,6 @@ func (cc _ClassificationObservationClass) Alloc() ClassificationObservation { return rv } -func ClassificationObservation_Alloc() ClassificationObservation { - return ClassificationObservationClass.Alloc() -} - func (cc _ClassificationObservationClass) New() ClassificationObservation { rv := objc.Call[ClassificationObservation](cc, objc.Sel("new")) rv.Autorelease() @@ -77,14 +73,6 @@ func (c_ ClassificationObservation) HasMinimumPrecisionForRecall(minimumPrecisio 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 -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 @@ -92,3 +80,11 @@ 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 +func (c_ ClassificationObservation) HasPrecisionRecallCurve() bool { + rv := objc.Call[bool](c_, objc.Sel("hasPrecisionRecallCurve")) + return rv +} diff --git a/macos/vision/classify_image_request.gen.go b/macos/vision/classify_image_request.gen.go index e1fbdfc7..a252ef78 100644 --- a/macos/vision/classify_image_request.gen.go +++ b/macos/vision/classify_image_request.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package vision @@ -40,10 +40,6 @@ func (cc _ClassifyImageRequestClass) Alloc() ClassifyImageRequest { return rv } -func ClassifyImageRequest_Alloc() ClassifyImageRequest { - return ClassifyImageRequestClass.Alloc() -} - func (cc _ClassifyImageRequestClass) New() ClassifyImageRequest { rv := objc.Call[ClassifyImageRequest](cc, objc.Sel("new")) rv.Autorelease() diff --git a/macos/vision/contour.gen.go b/macos/vision/contour.gen.go index 5018a553..ca37670d 100644 --- a/macos/vision/contour.gen.go +++ b/macos/vision/contour.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package vision @@ -21,12 +21,12 @@ type IContour interface { objc.IObject PolygonApproximationWithEpsilonError(epsilon float64, error foundation.IError) Contour ChildContourAtIndexError(childContourIndex uint, error foundation.IError) Contour - ChildContours() []Contour NormalizedPoints() objc.Object + AspectRatio() float64 + IndexPath() foundation.IndexPath + ChildContours() []Contour PointCount() int NormalizedPath() unsafe.Pointer - IndexPath() foundation.IndexPath - AspectRatio() float64 ChildContourCount() int } @@ -48,10 +48,6 @@ func (cc _ContourClass) Alloc() Contour { return rv } -func Contour_Alloc() Contour { - return ContourClass.Alloc() -} - func (cc _ContourClass) New() Contour { rv := objc.Call[Contour](cc, objc.Sel("new")) rv.Autorelease() @@ -83,14 +79,6 @@ func (c_ Contour) ChildContourAtIndexError(childContourIndex uint, error foundat 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 -func (c_ Contour) ChildContours() []Contour { - rv := objc.Call[[]Contour](c_, objc.Sel("childContours")) - 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 @@ -99,19 +87,11 @@ func (c_ Contour) NormalizedPoints() objc.Object { return rv } -// The contour’s number of points. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/vision/vncontour/3548327-pointcount?language=objc -func (c_ Contour) PointCount() int { - rv := objc.Call[int](c_, objc.Sel("pointCount")) - return rv -} - -// The contour object as a path in normalized coordinates. [Full Topic] +// The aspect ratio of the contour. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/vision/vncontour/3548325-normalizedpath?language=objc -func (c_ Contour) NormalizedPath() unsafe.Pointer { - rv := objc.Call[unsafe.Pointer](c_, objc.Sel("normalizedPath")) +// [Full Topic]: https://developer.apple.com/documentation/vision/vncontour/3600614-aspectratio?language=objc +func (c_ Contour) AspectRatio() float64 { + rv := objc.Call[float64](c_, objc.Sel("aspectRatio")) return rv } @@ -123,11 +103,27 @@ func (c_ Contour) IndexPath() foundation.IndexPath { return rv } -// The aspect ratio of the contour. [Full Topic] +// An array of contours that this contour encloses. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/vision/vncontour/3600614-aspectratio?language=objc -func (c_ Contour) AspectRatio() float64 { - rv := objc.Call[float64](c_, objc.Sel("aspectRatio")) +// [Full Topic]: https://developer.apple.com/documentation/vision/vncontour/3548323-childcontours?language=objc +func (c_ Contour) ChildContours() []Contour { + rv := objc.Call[[]Contour](c_, objc.Sel("childContours")) + return rv +} + +// The contour’s number of points. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/vision/vncontour/3548327-pointcount?language=objc +func (c_ Contour) PointCount() int { + rv := objc.Call[int](c_, objc.Sel("pointCount")) + return rv +} + +// The contour object as a path in normalized coordinates. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/vision/vncontour/3548325-normalizedpath?language=objc +func (c_ Contour) NormalizedPath() unsafe.Pointer { + rv := objc.Call[unsafe.Pointer](c_, objc.Sel("normalizedPath")) return rv } diff --git a/macos/vision/contours_observation.gen.go b/macos/vision/contours_observation.gen.go index 5ecdce68..6da8dc06 100644 --- a/macos/vision/contours_observation.gen.go +++ b/macos/vision/contours_observation.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package vision @@ -21,10 +21,10 @@ type IContoursObservation interface { IObservation ContourAtIndexError(contourIndex int, error foundation.IError) Contour ContourAtIndexPathError(indexPath foundation.IIndexPath, error foundation.IError) Contour - ContourCount() int TopLevelContours() []Contour - NormalizedPath() unsafe.Pointer + ContourCount() int TopLevelContourCount() int + NormalizedPath() unsafe.Pointer } // An object that represents the detected contours in an image. [Full Topic] @@ -45,10 +45,6 @@ func (cc _ContoursObservationClass) Alloc() ContoursObservation { return rv } -func ContoursObservation_Alloc() ContoursObservation { - return ContoursObservationClass.Alloc() -} - func (cc _ContoursObservationClass) New() ContoursObservation { rv := objc.Call[ContoursObservation](cc, objc.Sel("new")) rv.Autorelease() @@ -80,14 +76,6 @@ func (c_ ContoursObservation) ContourAtIndexPathError(indexPath foundation.IInde return rv } -// The total number of detected contours. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/vision/vncontoursobservation/3548362-contourcount?language=objc -func (c_ ContoursObservation) ContourCount() int { - rv := objc.Call[int](c_, objc.Sel("contourCount")) - 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 @@ -96,11 +84,11 @@ func (c_ ContoursObservation) TopLevelContours() []Contour { return rv } -// The detected contours as a path object in normalized coordinates. [Full Topic] +// The total number of detected contours. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/vision/vncontoursobservation/3548363-normalizedpath?language=objc -func (c_ ContoursObservation) NormalizedPath() unsafe.Pointer { - rv := objc.Call[unsafe.Pointer](c_, objc.Sel("normalizedPath")) +// [Full Topic]: https://developer.apple.com/documentation/vision/vncontoursobservation/3548362-contourcount?language=objc +func (c_ ContoursObservation) ContourCount() int { + rv := objc.Call[int](c_, objc.Sel("contourCount")) return rv } @@ -111,3 +99,11 @@ func (c_ ContoursObservation) TopLevelContourCount() int { rv := objc.Call[int](c_, objc.Sel("topLevelContourCount")) return rv } + +// The detected contours as a path object in normalized coordinates. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/vision/vncontoursobservation/3548363-normalizedpath?language=objc +func (c_ ContoursObservation) NormalizedPath() unsafe.Pointer { + rv := objc.Call[unsafe.Pointer](c_, objc.Sel("normalizedPath")) + return rv +} diff --git a/macos/vision/core_ml_feature_value_observation.gen.go b/macos/vision/core_ml_feature_value_observation.gen.go index 77761b53..406fc87f 100644 --- a/macos/vision/core_ml_feature_value_observation.gen.go +++ b/macos/vision/core_ml_feature_value_observation.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package vision @@ -41,10 +41,6 @@ func (cc _CoreMLFeatureValueObservationClass) Alloc() CoreMLFeatureValueObservat return rv } -func CoreMLFeatureValueObservation_Alloc() CoreMLFeatureValueObservation { - return CoreMLFeatureValueObservationClass.Alloc() -} - func (cc _CoreMLFeatureValueObservationClass) New() CoreMLFeatureValueObservation { rv := objc.Call[CoreMLFeatureValueObservation](cc, objc.Sel("new")) rv.Autorelease() diff --git a/macos/vision/core_ml_model.gen.go b/macos/vision/core_ml_model.gen.go index 44547b56..37e534b8 100644 --- a/macos/vision/core_ml_model.gen.go +++ b/macos/vision/core_ml_model.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package vision @@ -20,7 +20,7 @@ type _CoreMLModelClass struct { // An interface definition for the [CoreMLModel] class. type ICoreMLModel interface { objc.IObject - FeatureProvider() coreml.FeatureProviderWrapper + FeatureProvider() coreml.FeatureProviderObject SetFeatureProvider(value coreml.PFeatureProvider) SetFeatureProviderObject(valueObject objc.IObject) InputImageFeatureName() string @@ -57,10 +57,6 @@ func (cc _CoreMLModelClass) Alloc() CoreMLModel { return rv } -func CoreMLModel_Alloc() CoreMLModel { - return CoreMLModelClass.Alloc() -} - func (cc _CoreMLModelClass) New() CoreMLModel { rv := objc.Call[CoreMLModel](cc, objc.Sel("new")) rv.Autorelease() @@ -79,8 +75,8 @@ func (c_ CoreMLModel) Init() CoreMLModel { // An optional object to support inputs outside Vision. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/vision/vncoremlmodel/3131933-featureprovider?language=objc -func (c_ CoreMLModel) FeatureProvider() coreml.FeatureProviderWrapper { - rv := objc.Call[coreml.FeatureProviderWrapper](c_, objc.Sel("featureProvider")) +func (c_ CoreMLModel) FeatureProvider() coreml.FeatureProviderObject { + rv := objc.Call[coreml.FeatureProviderObject](c_, objc.Sel("featureProvider")) return rv } diff --git a/macos/vision/core_ml_request.gen.go b/macos/vision/core_ml_request.gen.go index a4bbeb3e..36c04af3 100644 --- a/macos/vision/core_ml_request.gen.go +++ b/macos/vision/core_ml_request.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package vision @@ -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,6 +36,20 @@ func CoreMLRequestFrom(ptr unsafe.Pointer) CoreMLRequest { } } +func (c_ CoreMLRequest) InitWithModelCompletionHandler(model ICoreMLModel, completionHandler RequestCompletionHandler) CoreMLRequest { + rv := objc.Call[CoreMLRequest](c_, objc.Sel("initWithModel:completionHandler:"), objc.Ptr(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:"), objc.Ptr(model)) return rv @@ -55,10 +69,6 @@ func (cc _CoreMLRequestClass) Alloc() CoreMLRequest { return rv } -func CoreMLRequest_Alloc() CoreMLRequest { - return CoreMLRequestClass.Alloc() -} - func (cc _CoreMLRequestClass) New() CoreMLRequest { rv := objc.Call[CoreMLRequest](cc, objc.Sel("new")) rv.Autorelease() @@ -88,14 +98,6 @@ 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 @@ -110,3 +112,11 @@ 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_barcodes_request.gen.go b/macos/vision/detect_barcodes_request.gen.go index c7b8a7cf..5d7cb7e3 100644 --- a/macos/vision/detect_barcodes_request.gen.go +++ b/macos/vision/detect_barcodes_request.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package vision @@ -42,10 +42,6 @@ func (dc _DetectBarcodesRequestClass) Alloc() DetectBarcodesRequest { return rv } -func DetectBarcodesRequest_Alloc() DetectBarcodesRequest { - return DetectBarcodesRequestClass.Alloc() -} - func (dc _DetectBarcodesRequestClass) New() DetectBarcodesRequest { rv := objc.Call[DetectBarcodesRequest](dc, objc.Sel("new")) rv.Autorelease() diff --git a/macos/vision/detect_contours_request.gen.go b/macos/vision/detect_contours_request.gen.go index a829541f..bf5565a3 100644 --- a/macos/vision/detect_contours_request.gen.go +++ b/macos/vision/detect_contours_request.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package vision @@ -19,14 +19,14 @@ type _DetectContoursRequestClass struct { // An interface definition for the [DetectContoursRequest] class. type IDetectContoursRequest interface { IImageBasedRequest - ContrastPivot() foundation.Number - SetContrastPivot(value foundation.INumber) - DetectsDarkOnLight() bool - SetDetectsDarkOnLight(value bool) ContrastAdjustment() float64 SetContrastAdjustment(value float64) + DetectsDarkOnLight() bool + SetDetectsDarkOnLight(value bool) 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] @@ -47,10 +47,6 @@ func (dc _DetectContoursRequestClass) Alloc() DetectContoursRequest { return rv } -func DetectContoursRequest_Alloc() DetectContoursRequest { - return DetectContoursRequestClass.Alloc() -} - func (dc _DetectContoursRequestClass) New() DetectContoursRequest { rv := objc.Call[DetectContoursRequest](dc, objc.Sel("new")) rv.Autorelease() @@ -80,19 +76,19 @@ func NewDetectContoursRequestWithCompletionHandler(completionHandler RequestComp return instance } -// The pixel value to use as a pivot for the contrast. [Full Topic] +// The amount by which to adjust the image 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")) +// [Full Topic]: https://developer.apple.com/documentation/vision/vndetectcontoursrequest/3548236-contrastadjustment?language=objc +func (d_ DetectContoursRequest) ContrastAdjustment() float64 { + rv := objc.Call[float64](d_, objc.Sel("contrastAdjustment")) return rv } -// The pixel value to use as a pivot for the contrast. [Full Topic] +// The amount by which to adjust the image 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:"), objc.Ptr(value)) +// [Full Topic]: https://developer.apple.com/documentation/vision/vndetectcontoursrequest/3548236-contrastadjustment?language=objc +func (d_ DetectContoursRequest) SetContrastAdjustment(value float64) { + objc.Call[objc.Void](d_, objc.Sel("setContrastAdjustment:"), value) } // A Boolean value that indicates whether the request detects a dark object on a light background to aid in detection. [Full Topic] @@ -110,21 +106,6 @@ 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() float64 { - rv := objc.Call[float64](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 float64) { - 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 @@ -139,3 +120,18 @@ 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:"), objc.Ptr(value)) +} diff --git a/macos/vision/detect_document_segmentation_request.gen.go b/macos/vision/detect_document_segmentation_request.gen.go index 1663e27a..fa49094d 100644 --- a/macos/vision/detect_document_segmentation_request.gen.go +++ b/macos/vision/detect_document_segmentation_request.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package vision @@ -38,10 +38,6 @@ func (dc _DetectDocumentSegmentationRequestClass) Alloc() DetectDocumentSegmenta return rv } -func DetectDocumentSegmentationRequest_Alloc() DetectDocumentSegmentationRequest { - return DetectDocumentSegmentationRequestClass.Alloc() -} - func (dc _DetectDocumentSegmentationRequestClass) New() DetectDocumentSegmentationRequest { rv := objc.Call[DetectDocumentSegmentationRequest](dc, objc.Sel("new")) rv.Autorelease() diff --git a/macos/vision/detect_face_capture_quality_request.gen.go b/macos/vision/detect_face_capture_quality_request.gen.go index 5502631f..bcf1a03d 100644 --- a/macos/vision/detect_face_capture_quality_request.gen.go +++ b/macos/vision/detect_face_capture_quality_request.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package vision @@ -38,10 +38,6 @@ func (dc _DetectFaceCaptureQualityRequestClass) Alloc() DetectFaceCaptureQuality return rv } -func DetectFaceCaptureQualityRequest_Alloc() DetectFaceCaptureQualityRequest { - return DetectFaceCaptureQualityRequestClass.Alloc() -} - func (dc _DetectFaceCaptureQualityRequestClass) New() DetectFaceCaptureQualityRequest { rv := objc.Call[DetectFaceCaptureQualityRequest](dc, objc.Sel("new")) rv.Autorelease() diff --git a/macos/vision/detect_face_landmarks_request.gen.go b/macos/vision/detect_face_landmarks_request.gen.go index 91bea81f..3a6c98a8 100644 --- a/macos/vision/detect_face_landmarks_request.gen.go +++ b/macos/vision/detect_face_landmarks_request.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package vision @@ -40,10 +40,6 @@ func (dc _DetectFaceLandmarksRequestClass) Alloc() DetectFaceLandmarksRequest { return rv } -func DetectFaceLandmarksRequest_Alloc() DetectFaceLandmarksRequest { - return DetectFaceLandmarksRequestClass.Alloc() -} - func (dc _DetectFaceLandmarksRequestClass) New() DetectFaceLandmarksRequest { rv := objc.Call[DetectFaceLandmarksRequest](dc, objc.Sel("new")) rv.Autorelease() diff --git a/macos/vision/detect_face_rectangles_request.gen.go b/macos/vision/detect_face_rectangles_request.gen.go index 49cab175..f4b05935 100644 --- a/macos/vision/detect_face_rectangles_request.gen.go +++ b/macos/vision/detect_face_rectangles_request.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package vision @@ -38,10 +38,6 @@ func (dc _DetectFaceRectanglesRequestClass) Alloc() DetectFaceRectanglesRequest return rv } -func DetectFaceRectanglesRequest_Alloc() DetectFaceRectanglesRequest { - return DetectFaceRectanglesRequestClass.Alloc() -} - func (dc _DetectFaceRectanglesRequestClass) New() DetectFaceRectanglesRequest { rv := objc.Call[DetectFaceRectanglesRequest](dc, objc.Sel("new")) rv.Autorelease() diff --git a/macos/vision/detect_horizon_request.gen.go b/macos/vision/detect_horizon_request.gen.go index 390d5917..c356bfd1 100644 --- a/macos/vision/detect_horizon_request.gen.go +++ b/macos/vision/detect_horizon_request.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package vision @@ -38,10 +38,6 @@ func (dc _DetectHorizonRequestClass) Alloc() DetectHorizonRequest { return rv } -func DetectHorizonRequest_Alloc() DetectHorizonRequest { - return DetectHorizonRequestClass.Alloc() -} - func (dc _DetectHorizonRequestClass) New() DetectHorizonRequest { rv := objc.Call[DetectHorizonRequest](dc, objc.Sel("new")) rv.Autorelease() diff --git a/macos/vision/detect_human_body_pose_request.gen.go b/macos/vision/detect_human_body_pose_request.gen.go index 7d3979c6..b90ed2c4 100644 --- a/macos/vision/detect_human_body_pose_request.gen.go +++ b/macos/vision/detect_human_body_pose_request.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package vision @@ -38,10 +38,6 @@ func (dc _DetectHumanBodyPoseRequestClass) Alloc() DetectHumanBodyPoseRequest { return rv } -func DetectHumanBodyPoseRequest_Alloc() DetectHumanBodyPoseRequest { - return DetectHumanBodyPoseRequestClass.Alloc() -} - func (dc _DetectHumanBodyPoseRequestClass) New() DetectHumanBodyPoseRequest { rv := objc.Call[DetectHumanBodyPoseRequest](dc, objc.Sel("new")) rv.Autorelease() diff --git a/macos/vision/detect_human_hand_pose_request.gen.go b/macos/vision/detect_human_hand_pose_request.gen.go index 3ea77c52..5d8107f6 100644 --- a/macos/vision/detect_human_hand_pose_request.gen.go +++ b/macos/vision/detect_human_hand_pose_request.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package vision @@ -40,10 +40,6 @@ func (dc _DetectHumanHandPoseRequestClass) Alloc() DetectHumanHandPoseRequest { return rv } -func DetectHumanHandPoseRequest_Alloc() DetectHumanHandPoseRequest { - return DetectHumanHandPoseRequestClass.Alloc() -} - func (dc _DetectHumanHandPoseRequestClass) New() DetectHumanHandPoseRequest { rv := objc.Call[DetectHumanHandPoseRequest](dc, objc.Sel("new")) rv.Autorelease() diff --git a/macos/vision/detect_human_rectangles_request.gen.go b/macos/vision/detect_human_rectangles_request.gen.go index 69b2c1b4..cc4e1577 100644 --- a/macos/vision/detect_human_rectangles_request.gen.go +++ b/macos/vision/detect_human_rectangles_request.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package vision @@ -40,10 +40,6 @@ func (dc _DetectHumanRectanglesRequestClass) Alloc() DetectHumanRectanglesReques return rv } -func DetectHumanRectanglesRequest_Alloc() DetectHumanRectanglesRequest { - return DetectHumanRectanglesRequestClass.Alloc() -} - func (dc _DetectHumanRectanglesRequestClass) New() DetectHumanRectanglesRequest { rv := objc.Call[DetectHumanRectanglesRequest](dc, objc.Sel("new")) rv.Autorelease() diff --git a/macos/vision/detect_rectangles_request.gen.go b/macos/vision/detect_rectangles_request.gen.go index df62631d..a1631af0 100644 --- a/macos/vision/detect_rectangles_request.gen.go +++ b/macos/vision/detect_rectangles_request.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package vision @@ -18,18 +18,18 @@ type _DetectRectanglesRequestClass struct { // An interface definition for the [DetectRectanglesRequest] class. type IDetectRectanglesRequest interface { IImageBasedRequest - MinimumAspectRatio() AspectRatio - SetMinimumAspectRatio(value AspectRatio) - MinimumSize() float64 - SetMinimumSize(value float64) MinimumConfidence() Confidence SetMinimumConfidence(value Confidence) - MaximumObservations() uint - SetMaximumObservations(value uint) MaximumAspectRatio() AspectRatio SetMaximumAspectRatio(value AspectRatio) + MinimumAspectRatio() AspectRatio + SetMinimumAspectRatio(value AspectRatio) + MinimumSize() float64 + SetMinimumSize(value float64) QuadratureTolerance() Degrees SetQuadratureTolerance(value Degrees) + MaximumObservations() uint + SetMaximumObservations(value uint) } // An image analysis request that finds projected rectangular regions in an image. [Full Topic] @@ -50,10 +50,6 @@ func (dc _DetectRectanglesRequestClass) Alloc() DetectRectanglesRequest { return rv } -func DetectRectanglesRequest_Alloc() DetectRectanglesRequest { - return DetectRectanglesRequestClass.Alloc() -} - func (dc _DetectRectanglesRequestClass) New() DetectRectanglesRequest { rv := objc.Call[DetectRectanglesRequest](dc, objc.Sel("new")) rv.Autorelease() @@ -83,6 +79,36 @@ 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 @@ -113,19 +139,19 @@ func (d_ DetectRectanglesRequest) SetMinimumSize(value float64) { objc.Call[objc.Void](d_, objc.Sel("setMinimumSize:"), value) } -// A value specifying the minimum acceptable confidence level. [Full Topic] +// 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/2875375-minimumconfidence?language=objc -func (d_ DetectRectanglesRequest) MinimumConfidence() Confidence { - rv := objc.Call[Confidence](d_, objc.Sel("minimumConfidence")) +// [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 value specifying the minimum acceptable confidence level. [Full Topic] +// 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/2875375-minimumconfidence?language=objc -func (d_ DetectRectanglesRequest) SetMinimumConfidence(value Confidence) { - objc.Call[objc.Void](d_, objc.Sel("setMinimumConfidence:"), value) +// [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) } // An integer specifying the maximum number of rectangles Vision returns. [Full Topic] @@ -142,33 +168,3 @@ 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_text_rectangles_request.gen.go b/macos/vision/detect_text_rectangles_request.gen.go index e84f9cbb..6a8ed5e3 100644 --- a/macos/vision/detect_text_rectangles_request.gen.go +++ b/macos/vision/detect_text_rectangles_request.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package vision @@ -40,10 +40,6 @@ func (dc _DetectTextRectanglesRequestClass) Alloc() DetectTextRectanglesRequest return rv } -func DetectTextRectanglesRequest_Alloc() DetectTextRectanglesRequest { - return DetectTextRectanglesRequestClass.Alloc() -} - func (dc _DetectTextRectanglesRequestClass) New() DetectTextRectanglesRequest { rv := objc.Call[DetectTextRectanglesRequest](dc, objc.Sel("new")) rv.Autorelease() diff --git a/macos/vision/detect_trajectories_request.gen.go b/macos/vision/detect_trajectories_request.gen.go index afd5982e..253b3877 100644 --- a/macos/vision/detect_trajectories_request.gen.go +++ b/macos/vision/detect_trajectories_request.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package vision @@ -19,13 +19,13 @@ type _DetectTrajectoriesRequestClass struct { // An interface definition for the [DetectTrajectoriesRequest] class. type IDetectTrajectoriesRequest interface { IStatefulRequest - ObjectMaximumNormalizedRadius() float64 - SetObjectMaximumNormalizedRadius(value float64) + ObjectMinimumNormalizedRadius() float64 + SetObjectMinimumNormalizedRadius(value float64) TargetFrameTime() coremedia.Time SetTargetFrameTime(value coremedia.Time) + ObjectMaximumNormalizedRadius() float64 + SetObjectMaximumNormalizedRadius(value float64) TrajectoryLength() int - ObjectMinimumNormalizedRadius() float64 - SetObjectMinimumNormalizedRadius(value float64) } // A request that detects the trajectories of shapes moving along a parabolic path. [Full Topic] @@ -60,10 +60,6 @@ func (dc _DetectTrajectoriesRequestClass) Alloc() DetectTrajectoriesRequest { return rv } -func DetectTrajectoriesRequest_Alloc() DetectTrajectoriesRequest { - return DetectTrajectoriesRequestClass.Alloc() -} - func (dc _DetectTrajectoriesRequestClass) New() DetectTrajectoriesRequest { rv := objc.Call[DetectTrajectoriesRequest](dc, objc.Sel("new")) rv.Autorelease() @@ -107,19 +103,19 @@ func NewDetectTrajectoriesRequestWithCompletionHandler(completionHandler Request return instance } -// 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) ObjectMaximumNormalizedRadius() float64 { - rv := objc.Call[float64](d_, objc.Sel("objectMaximumNormalizedRadius")) +// [Full Topic]: https://developer.apple.com/documentation/vision/vndetecttrajectoriesrequest/3675671-objectminimumnormalizedradius?language=objc +func (d_ DetectTrajectoriesRequest) ObjectMinimumNormalizedRadius() float64 { + rv := objc.Call[float64](d_, objc.Sel("objectMinimumNormalizedRadius")) 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 float64) { - 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) SetObjectMinimumNormalizedRadius(value float64) { + objc.Call[objc.Void](d_, objc.Sel("setObjectMinimumNormalizedRadius:"), value) } // The requested target frame time for processing trajectory detection. [Full Topic] @@ -137,25 +133,25 @@ func (d_ DetectTrajectoriesRequest) SetTargetFrameTime(value coremedia.Time) { objc.Call[objc.Void](d_, objc.Sel("setTargetFrameTime:"), value) } -// The number of points to detect before calculating a trajectory. [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/3675673-trajectorylength?language=objc -func (d_ DetectTrajectoriesRequest) TrajectoryLength() int { - rv := objc.Call[int](d_, objc.Sel("trajectoryLength")) +// [Full Topic]: https://developer.apple.com/documentation/vision/vndetecttrajectoriesrequest/3675670-objectmaximumnormalizedradius?language=objc +func (d_ DetectTrajectoriesRequest) ObjectMaximumNormalizedRadius() float64 { + rv := objc.Call[float64](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) ObjectMinimumNormalizedRadius() float64 { - rv := objc.Call[float64](d_, objc.Sel("objectMinimumNormalizedRadius")) - return rv +// [Full Topic]: https://developer.apple.com/documentation/vision/vndetecttrajectoriesrequest/3675670-objectmaximumnormalizedradius?language=objc +func (d_ DetectTrajectoriesRequest) SetObjectMaximumNormalizedRadius(value float64) { + objc.Call[objc.Void](d_, objc.Sel("setObjectMaximumNormalizedRadius:"), value) } -// The minimum 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/3675671-objectminimumnormalizedradius?language=objc -func (d_ DetectTrajectoriesRequest) SetObjectMinimumNormalizedRadius(value float64) { - objc.Call[objc.Void](d_, objc.Sel("setObjectMinimumNormalizedRadius:"), value) +// [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 } diff --git a/macos/vision/detected_object_observation.gen.go b/macos/vision/detected_object_observation.gen.go index fa0ebca8..726e8142 100644 --- a/macos/vision/detected_object_observation.gen.go +++ b/macos/vision/detected_object_observation.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package vision @@ -65,10 +65,6 @@ func (dc _DetectedObjectObservationClass) Alloc() DetectedObjectObservation { return rv } -func DetectedObjectObservation_Alloc() DetectedObjectObservation { - return DetectedObjectObservationClass.Alloc() -} - func (dc _DetectedObjectObservationClass) New() DetectedObjectObservation { rv := objc.Call[DetectedObjectObservation](dc, objc.Sel("new")) rv.Autorelease() diff --git a/macos/vision/detected_point.gen.go b/macos/vision/detected_point.gen.go index 4394bede..4461ce09 100644 --- a/macos/vision/detected_point.gen.go +++ b/macos/vision/detected_point.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package vision @@ -40,10 +40,6 @@ func (dc _DetectedPointClass) Alloc() DetectedPoint { return rv } -func DetectedPoint_Alloc() DetectedPoint { - return DetectedPointClass.Alloc() -} - func (dc _DetectedPointClass) New() DetectedPoint { rv := objc.Call[DetectedPoint](dc, objc.Sel("new")) rv.Autorelease() @@ -59,30 +55,30 @@ func (d_ DetectedPoint) Init() DetectedPoint { return rv } -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 } -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 } diff --git a/macos/vision/doc.gen.go b/macos/vision/doc.gen.go index 4717a4ff..ae07d538 100644 --- a/macos/vision/doc.gen.go +++ b/macos/vision/doc.gen.go @@ -1,8 +1,8 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. // Apply computer vision algorithms to perform a variety of tasks on input images and video. // -// [Full Documentation] +// [Apple Documentation] // -// [Full Documentation]: https://developer.apple.com/documentation/vision?language=objc +// [Apple Documentation]: https://developer.apple.com/documentation/vision?language=objc package vision diff --git a/macos/vision/enumtypes.gen.go b/macos/vision/enumtypes.gen.go index 9b61d4f2..956bdda9 100644 --- a/macos/vision/enumtypes.gen.go +++ b/macos/vision/enumtypes.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package vision diff --git a/macos/vision/face_landmark_region.gen.go b/macos/vision/face_landmark_region.gen.go index 58e19f6d..f3d74cbb 100644 --- a/macos/vision/face_landmark_region.gen.go +++ b/macos/vision/face_landmark_region.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package vision @@ -39,10 +39,6 @@ func (fc _FaceLandmarkRegionClass) Alloc() FaceLandmarkRegion { return rv } -func FaceLandmarkRegion_Alloc() FaceLandmarkRegion { - return FaceLandmarkRegionClass.Alloc() -} - func (fc _FaceLandmarkRegionClass) New() FaceLandmarkRegion { rv := objc.Call[FaceLandmarkRegion](fc, objc.Sel("new")) rv.Autorelease() diff --git a/macos/vision/face_landmark_region2_d.gen.go b/macos/vision/face_landmark_region2_d.gen.go index b8e037de..bd4e06e5 100644 --- a/macos/vision/face_landmark_region2_d.gen.go +++ b/macos/vision/face_landmark_region2_d.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package vision @@ -21,8 +21,8 @@ type _FaceLandmarkRegion2DClass struct { type IFaceLandmarkRegion2D interface { IFaceLandmarkRegion PointsInImageOfSize(imageSize coregraphics.Size) *coregraphics.Point - PrecisionEstimatesPerPoint() []foundation.Number NormalizedPoints() *coregraphics.Point + PrecisionEstimatesPerPoint() []foundation.Number } // 2D geometry information for a specific facial feature. [Full Topic] @@ -43,10 +43,6 @@ func (fc _FaceLandmarkRegion2DClass) Alloc() FaceLandmarkRegion2D { return rv } -func FaceLandmarkRegion2D_Alloc() FaceLandmarkRegion2D { - return FaceLandmarkRegion2DClass.Alloc() -} - func (fc _FaceLandmarkRegion2DClass) New() FaceLandmarkRegion2D { rv := objc.Call[FaceLandmarkRegion2D](fc, objc.Sel("new")) rv.Autorelease() @@ -70,14 +66,6 @@ func (f_ FaceLandmarkRegion2D) PointsInImageOfSize(imageSize coregraphics.Size) 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 -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 @@ -85,3 +73,11 @@ 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 +func (f_ FaceLandmarkRegion2D) PrecisionEstimatesPerPoint() []foundation.Number { + rv := objc.Call[[]foundation.Number](f_, objc.Sel("precisionEstimatesPerPoint")) + return rv +} diff --git a/macos/vision/face_landmarks.gen.go b/macos/vision/face_landmarks.gen.go index 3f946dcc..79e94a65 100644 --- a/macos/vision/face_landmarks.gen.go +++ b/macos/vision/face_landmarks.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package vision @@ -39,10 +39,6 @@ func (fc _FaceLandmarksClass) Alloc() FaceLandmarks { return rv } -func FaceLandmarks_Alloc() FaceLandmarks { - return FaceLandmarksClass.Alloc() -} - func (fc _FaceLandmarksClass) New() FaceLandmarks { rv := objc.Call[FaceLandmarks](fc, objc.Sel("new")) rv.Autorelease() diff --git a/macos/vision/face_landmarks2_d.gen.go b/macos/vision/face_landmarks2_d.gen.go index ca279a99..96413af2 100644 --- a/macos/vision/face_landmarks2_d.gen.go +++ b/macos/vision/face_landmarks2_d.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package vision @@ -18,19 +18,19 @@ type _FaceLandmarks2DClass struct { // An interface definition for the [FaceLandmarks2D] class. type IFaceLandmarks2D interface { IFaceLandmarks - RightPupil() FaceLandmarkRegion2D + AllPoints() FaceLandmarkRegion2D Nose() FaceLandmarkRegion2D - InnerLips() FaceLandmarkRegion2D - LeftPupil() FaceLandmarkRegion2D - OuterLips() FaceLandmarkRegion2D - MedianLine() FaceLandmarkRegion2D - NoseCrest() FaceLandmarkRegion2D + RightEye() FaceLandmarkRegion2D RightEyebrow() FaceLandmarkRegion2D - FaceContour() FaceLandmarkRegion2D - AllPoints() FaceLandmarkRegion2D + NoseCrest() FaceLandmarkRegion2D + RightPupil() FaceLandmarkRegion2D + OuterLips() FaceLandmarkRegion2D + LeftPupil() FaceLandmarkRegion2D LeftEyebrow() FaceLandmarkRegion2D + FaceContour() FaceLandmarkRegion2D + InnerLips() FaceLandmarkRegion2D + MedianLine() FaceLandmarkRegion2D LeftEye() FaceLandmarkRegion2D - RightEye() FaceLandmarkRegion2D } // A collection of facial features that a request detects. [Full Topic] @@ -51,10 +51,6 @@ func (fc _FaceLandmarks2DClass) Alloc() FaceLandmarks2D { return rv } -func FaceLandmarks2D_Alloc() FaceLandmarks2D { - return FaceLandmarks2DClass.Alloc() -} - func (fc _FaceLandmarks2DClass) New() FaceLandmarks2D { rv := objc.Call[FaceLandmarks2D](fc, objc.Sel("new")) rv.Autorelease() @@ -70,11 +66,11 @@ func (f_ FaceLandmarks2D) Init() FaceLandmarks2D { return rv } -// The region containing the point where the right pupil is located. [Full Topic] +// The region containing all face landmark points. [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/2879430-allpoints?language=objc +func (f_ FaceLandmarks2D) AllPoints() FaceLandmarkRegion2D { + rv := objc.Call[FaceLandmarkRegion2D](f_, objc.Sel("allPoints")) return rv } @@ -86,51 +82,59 @@ func (f_ FaceLandmarks2D) Nose() FaceLandmarkRegion2D { return rv } -// The region containing points that outline the space between the lips. [Full Topic] +// The region containing points that outline the right eye. [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/2879442-righteye?language=objc +func (f_ FaceLandmarks2D) RightEye() FaceLandmarkRegion2D { + rv := objc.Call[FaceLandmarkRegion2D](f_, objc.Sel("rightEye")) return rv } -// The region containing the point where the left pupil is located. [Full Topic] +// The region containing points that trace the right eyebrow. [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/2879432-righteyebrow?language=objc +func (f_ FaceLandmarks2D) RightEyebrow() FaceLandmarkRegion2D { + rv := objc.Call[FaceLandmarkRegion2D](f_, objc.Sel("rightEyebrow")) return rv } -// The region containing points that outline the outside of the lips. [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/2879440-outerlips?language=objc -func (f_ FaceLandmarks2D) OuterLips() FaceLandmarkRegion2D { - rv := objc.Call[FaceLandmarkRegion2D](f_, objc.Sel("outerLips")) +// [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 a vertical line down the center of the face. [Full Topic] +// The region containing the point where the right pupil is located. [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/2879441-rightpupil?language=objc +func (f_ FaceLandmarks2D) RightPupil() FaceLandmarkRegion2D { + rv := objc.Call[FaceLandmarkRegion2D](f_, objc.Sel("rightPupil")) return rv } -// The region containing points that trace the center crest of the nose. [Full Topic] +// The region containing points that outline the outside of 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/2879440-outerlips?language=objc +func (f_ FaceLandmarks2D) OuterLips() FaceLandmarkRegion2D { + rv := objc.Call[FaceLandmarkRegion2D](f_, objc.Sel("outerLips")) return rv } -// The region containing points that trace the right eyebrow. [Full Topic] +// The region containing the point where the left pupil is located. [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")) +// [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 +} + +// The region containing points that trace the left eyebrow. [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")) return rv } @@ -142,19 +146,19 @@ func (f_ FaceLandmarks2D) FaceContour() FaceLandmarkRegion2D { return rv } -// The region containing all face landmark points. [Full Topic] +// The region containing points that outline the space between the lips. [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/2879434-innerlips?language=objc +func (f_ FaceLandmarks2D) InnerLips() FaceLandmarkRegion2D { + rv := objc.Call[FaceLandmarkRegion2D](f_, objc.Sel("innerLips")) return rv } -// The region containing points that trace the left eyebrow. [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/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/2879427-medianline?language=objc +func (f_ FaceLandmarks2D) MedianLine() FaceLandmarkRegion2D { + rv := objc.Call[FaceLandmarkRegion2D](f_, objc.Sel("medianLine")) return rv } @@ -165,11 +169,3 @@ 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 59df8091..1a8e8e5b 100644 --- a/macos/vision/face_observation.gen.go +++ b/macos/vision/face_observation.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package vision @@ -21,10 +21,10 @@ type _FaceObservationClass struct { type IFaceObservation interface { IDetectedObjectObservation Roll() foundation.Number - Yaw() foundation.Number - FaceCaptureQuality() foundation.Number Pitch() foundation.Number + Yaw() foundation.Number Landmarks() FaceLandmarks2D + FaceCaptureQuality() foundation.Number } // Face or facial-feature information that an image analysis request detects. [Full Topic] @@ -57,10 +57,6 @@ func (fc _FaceObservationClass) Alloc() FaceObservation { return rv } -func FaceObservation_Alloc() FaceObservation { - return FaceObservationClass.Alloc() -} - func (fc _FaceObservationClass) New() FaceObservation { rv := objc.Call[FaceObservation](fc, objc.Sel("new")) rv.Autorelease() @@ -108,22 +104,6 @@ func (f_ FaceObservation) Roll() foundation.Number { 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 -func (f_ FaceObservation) Yaw() foundation.Number { - rv := objc.Call[foundation.Number](f_, objc.Sel("yaw")) - 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 -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 @@ -132,6 +112,14 @@ func (f_ FaceObservation) Pitch() foundation.Number { 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 +func (f_ FaceObservation) Yaw() foundation.Number { + rv := objc.Call[foundation.Number](f_, objc.Sel("yaw")) + return rv +} + // The facial features of the detected face. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/vision/vnfaceobservation/2867250-landmarks?language=objc @@ -139,3 +127,11 @@ 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 +func (f_ FaceObservation) FaceCaptureQuality() foundation.Number { + rv := objc.Call[foundation.Number](f_, objc.Sel("faceCaptureQuality")) + return rv +} diff --git a/macos/vision/face_observation_accepting.gen.go b/macos/vision/face_observation_accepting_protocol.gen.go similarity index 65% rename from macos/vision/face_observation_accepting.gen.go rename to macos/vision/face_observation_accepting_protocol.gen.go index 59dfbb76..d8673017 100644 --- a/macos/vision/face_observation_accepting.gen.go +++ b/macos/vision/face_observation_accepting_protocol.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package vision @@ -15,34 +15,37 @@ type PFaceObservationAccepting interface { HasSetInputFaceObservations() bool // optional - InputFaceObservations() []IFaceObservation + InputFaceObservations() []FaceObservation HasInputFaceObservations() bool } -// A concrete type wrapper for the [PFaceObservationAccepting] protocol. -type FaceObservationAcceptingWrapper struct { +// ensure impl type implements protocol interface +var _ PFaceObservationAccepting = (*FaceObservationAcceptingObject)(nil) + +// A concrete type for the [PFaceObservationAccepting] protocol. +type FaceObservationAcceptingObject struct { objc.Object } -func (f_ FaceObservationAcceptingWrapper) HasSetInputFaceObservations() bool { +func (f_ FaceObservationAcceptingObject) HasSetInputFaceObservations() bool { return f_.RespondsToSelector(objc.Sel("setInputFaceObservations:")) } // An array of VNFaceObservation objects to process as part of the request. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/vision/vnfaceobservationaccepting/2877424-inputfaceobservations?language=objc -func (f_ FaceObservationAcceptingWrapper) SetInputFaceObservations(value []IFaceObservation) { +func (f_ FaceObservationAcceptingObject) SetInputFaceObservations(value []FaceObservation) { objc.Call[objc.Void](f_, objc.Sel("setInputFaceObservations:"), value) } -func (f_ FaceObservationAcceptingWrapper) HasInputFaceObservations() bool { +func (f_ FaceObservationAcceptingObject) HasInputFaceObservations() bool { return f_.RespondsToSelector(objc.Sel("inputFaceObservations")) } // An array of VNFaceObservation objects to process as part of the request. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/vision/vnfaceobservationaccepting/2877424-inputfaceobservations?language=objc -func (f_ FaceObservationAcceptingWrapper) InputFaceObservations() []FaceObservation { +func (f_ FaceObservationAcceptingObject) InputFaceObservations() []FaceObservation { rv := objc.Call[[]FaceObservation](f_, objc.Sel("inputFaceObservations")) return rv } diff --git a/macos/vision/feature_print_observation.gen.go b/macos/vision/feature_print_observation.gen.go index caec9ee0..849ef766 100644 --- a/macos/vision/feature_print_observation.gen.go +++ b/macos/vision/feature_print_observation.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package vision @@ -43,10 +43,6 @@ func (fc _FeaturePrintObservationClass) Alloc() FeaturePrintObservation { return rv } -func FeaturePrintObservation_Alloc() FeaturePrintObservation { - return FeaturePrintObservationClass.Alloc() -} - func (fc _FeaturePrintObservationClass) New() FeaturePrintObservation { rv := objc.Call[FeaturePrintObservation](fc, objc.Sel("new")) rv.Autorelease() diff --git a/macos/vision/generate_attention_based_saliency_image_request.gen.go b/macos/vision/generate_attention_based_saliency_image_request.gen.go index fa628af2..e7021008 100644 --- a/macos/vision/generate_attention_based_saliency_image_request.gen.go +++ b/macos/vision/generate_attention_based_saliency_image_request.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package vision @@ -38,10 +38,6 @@ func (gc _GenerateAttentionBasedSaliencyImageRequestClass) Alloc() GenerateAtten return rv } -func GenerateAttentionBasedSaliencyImageRequest_Alloc() GenerateAttentionBasedSaliencyImageRequest { - return GenerateAttentionBasedSaliencyImageRequestClass.Alloc() -} - func (gc _GenerateAttentionBasedSaliencyImageRequestClass) New() GenerateAttentionBasedSaliencyImageRequest { rv := objc.Call[GenerateAttentionBasedSaliencyImageRequest](gc, objc.Sel("new")) rv.Autorelease() diff --git a/macos/vision/generate_image_feature_print_request.gen.go b/macos/vision/generate_image_feature_print_request.gen.go index 63f6a07e..52542a76 100644 --- a/macos/vision/generate_image_feature_print_request.gen.go +++ b/macos/vision/generate_image_feature_print_request.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package vision @@ -40,10 +40,6 @@ func (gc _GenerateImageFeaturePrintRequestClass) Alloc() GenerateImageFeaturePri return rv } -func GenerateImageFeaturePrintRequest_Alloc() GenerateImageFeaturePrintRequest { - return GenerateImageFeaturePrintRequestClass.Alloc() -} - func (gc _GenerateImageFeaturePrintRequestClass) New() GenerateImageFeaturePrintRequest { rv := objc.Call[GenerateImageFeaturePrintRequest](gc, objc.Sel("new")) rv.Autorelease() diff --git a/macos/vision/generate_objectness_based_saliency_image_request.gen.go b/macos/vision/generate_objectness_based_saliency_image_request.gen.go index 70953d01..ed1ac6a3 100644 --- a/macos/vision/generate_objectness_based_saliency_image_request.gen.go +++ b/macos/vision/generate_objectness_based_saliency_image_request.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package vision @@ -38,10 +38,6 @@ func (gc _GenerateObjectnessBasedSaliencyImageRequestClass) Alloc() GenerateObje return rv } -func GenerateObjectnessBasedSaliencyImageRequest_Alloc() GenerateObjectnessBasedSaliencyImageRequest { - return GenerateObjectnessBasedSaliencyImageRequestClass.Alloc() -} - func (gc _GenerateObjectnessBasedSaliencyImageRequestClass) New() GenerateObjectnessBasedSaliencyImageRequest { rv := objc.Call[GenerateObjectnessBasedSaliencyImageRequest](gc, objc.Sel("new")) rv.Autorelease() diff --git a/macos/vision/generate_optical_flow_request.gen.go b/macos/vision/generate_optical_flow_request.gen.go index 475cf792..2399ab63 100644 --- a/macos/vision/generate_optical_flow_request.gen.go +++ b/macos/vision/generate_optical_flow_request.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package vision @@ -10,6 +10,7 @@ import ( "github.com/progrium/macdriver/macos/coremedia" "github.com/progrium/macdriver/macos/corevideo" "github.com/progrium/macdriver/macos/foundation" + "github.com/progrium/macdriver/macos/imageio" "github.com/progrium/macdriver/objc" ) @@ -47,10 +48,6 @@ func (gc _GenerateOpticalFlowRequestClass) Alloc() GenerateOpticalFlowRequest { return rv } -func GenerateOpticalFlowRequest_Alloc() GenerateOpticalFlowRequest { - return GenerateOpticalFlowRequestClass.Alloc() -} - func (gc _GenerateOpticalFlowRequestClass) New() GenerateOpticalFlowRequest { rv := objc.Call[GenerateOpticalFlowRequest](gc, objc.Sel("new")) rv.Autorelease() @@ -66,16 +63,226 @@ func (g_ GenerateOpticalFlowRequest) Init() GenerateOpticalFlowRequest { return rv } -func (g_ GenerateOpticalFlowRequest) InitWithTargetedImageURLOptions(imageURL foundation.IURL, options map[ImageOption]objc.IObject) GenerateOpticalFlowRequest { - rv := objc.Call[GenerateOpticalFlowRequest](g_, objc.Sel("initWithTargetedImageURL:options:"), objc.Ptr(imageURL), options) +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 an image at the specified URL. [Full Topic] +// Creates a new request targeting a Core Graphics image of known orientation. [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/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:"), objc.Ptr(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:"), objc.Ptr(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:"), objc.Ptr(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:"), objc.Ptr(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:"), objc.Ptr(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) + return rv +} + +// Creates a new request targeting a raw data image of known orientation. [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) instance.Autorelease() return instance } @@ -94,6 +301,34 @@ 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:"), objc.Ptr(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:"), objc.Ptr(ciImage), options) return rv @@ -108,44 +343,58 @@ func NewGenerateOpticalFlowRequestWithTargetedCIImageOptions(ciImage coreimage.I 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) +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 an image in a CVPixelBufferRef. [Full Topic] +// 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/2923445-initwithtargetedcvpixelbuffer?language=objc -func NewGenerateOpticalFlowRequestWithTargetedCVPixelBufferOptions(pixelBuffer corevideo.PixelBufferRef, options map[ImageOption]objc.IObject) GenerateOpticalFlowRequest { - instance := GenerateOpticalFlowRequestClass.Alloc().InitWithTargetedCVPixelBufferOptions(pixelBuffer, options) +// [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) InitWithTargetedCGImageOptions(cgImage coregraphics.ImageRef, options map[ImageOption]objc.IObject) GenerateOpticalFlowRequest { - rv := objc.Call[GenerateOpticalFlowRequest](g_, objc.Sel("initWithTargetedCGImage:options:"), cgImage, options) +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) return rv } -// Creates a new request targeting a Core Graphics image. [Full Topic] +// Creates a new request targeting an image in a CVPixelBufferRef of known orientation. [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) +// [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) 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) +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) return rv } -// Creates a new request targeting an image as raw data. [Full Topic] +// Creates a new request targeting an image in a CVPixelBufferRef of known orientation, executing the completion handler when done. [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) +// [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) + 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:"), objc.Ptr(imageURL), options) + return rv +} + +// Creates a new request targeting an image at the specified URL. [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) 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 61b27ae5..78e3cb2a 100644 --- a/macos/vision/generate_person_segmentation_request.gen.go +++ b/macos/vision/generate_person_segmentation_request.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package vision @@ -38,16 +38,6 @@ 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 @@ -62,6 +52,16 @@ 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 @@ -72,10 +72,6 @@ func (gc _GeneratePersonSegmentationRequestClass) Alloc() GeneratePersonSegmenta return rv } -func GeneratePersonSegmentationRequest_Alloc() GeneratePersonSegmentationRequest { - return GeneratePersonSegmentationRequestClass.Alloc() -} - func (g_ GeneratePersonSegmentationRequest) InitWithFrameAnalysisSpacingCompletionHandler(frameAnalysisSpacing coremedia.Time, completionHandler RequestCompletionHandler) GeneratePersonSegmentationRequest { rv := objc.Call[GeneratePersonSegmentationRequest](g_, objc.Sel("initWithFrameAnalysisSpacing:completionHandler:"), frameAnalysisSpacing, completionHandler) return rv diff --git a/macos/vision/geometry_utils.gen.go b/macos/vision/geometry_utils.gen.go index cffbf098..703ef011 100644 --- a/macos/vision/geometry_utils.gen.go +++ b/macos/vision/geometry_utils.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package vision @@ -39,10 +39,6 @@ func (gc _GeometryUtilsClass) Alloc() GeometryUtils { return rv } -func GeometryUtils_Alloc() GeometryUtils { - return GeometryUtilsClass.Alloc() -} - func (gc _GeometryUtilsClass) New() GeometryUtils { rv := objc.Call[GeometryUtils](gc, objc.Sel("new")) rv.Autorelease() @@ -73,6 +69,21 @@ 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 foundation.IError) Circle { + rv := objc.Call[Circle](gc, objc.Sel("boundingCircleForContour:error:"), objc.Ptr(contour), objc.Ptr(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 foundation.IError) 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 @@ -103,21 +114,6 @@ 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 foundation.IError) Circle { - rv := objc.Call[Circle](gc, objc.Sel("boundingCircleForContour:error:"), objc.Ptr(contour), objc.Ptr(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 foundation.IError) 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 33b11f06..6f465d40 100644 --- a/macos/vision/homographic_image_registration_request.gen.go +++ b/macos/vision/homographic_image_registration_request.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package vision @@ -10,6 +10,7 @@ import ( "github.com/progrium/macdriver/macos/coremedia" "github.com/progrium/macdriver/macos/corevideo" "github.com/progrium/macdriver/macos/foundation" + "github.com/progrium/macdriver/macos/imageio" "github.com/progrium/macdriver/objc" ) @@ -43,10 +44,6 @@ func (hc _HomographicImageRegistrationRequestClass) Alloc() HomographicImageRegi return rv } -func HomographicImageRegistrationRequest_Alloc() HomographicImageRegistrationRequest { - return HomographicImageRegistrationRequestClass.Alloc() -} - func (hc _HomographicImageRegistrationRequestClass) New() HomographicImageRegistrationRequest { rv := objc.Call[HomographicImageRegistrationRequest](hc, objc.Sel("new")) rv.Autorelease() @@ -62,16 +59,226 @@ func (h_ HomographicImageRegistrationRequest) Init() HomographicImageRegistratio return rv } -func (h_ HomographicImageRegistrationRequest) InitWithTargetedImageURLOptions(imageURL foundation.IURL, options map[ImageOption]objc.IObject) HomographicImageRegistrationRequest { - rv := objc.Call[HomographicImageRegistrationRequest](h_, objc.Sel("initWithTargetedImageURL:options:"), objc.Ptr(imageURL), options) +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 an image at the specified URL. [Full Topic] +// Creates a new request targeting a Core Graphics image of known orientation. [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/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:"), objc.Ptr(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:"), objc.Ptr(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:"), objc.Ptr(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:"), objc.Ptr(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:"), objc.Ptr(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) + return rv +} + +// Creates a new request targeting a raw data image of known orientation. [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) instance.Autorelease() return instance } @@ -90,6 +297,34 @@ 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:"), objc.Ptr(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:"), objc.Ptr(ciImage), options) return rv @@ -104,44 +339,58 @@ func NewHomographicImageRegistrationRequestWithTargetedCIImageOptions(ciImage co 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) +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 an image in a CVPixelBufferRef. [Full Topic] +// 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/2923445-initwithtargetedcvpixelbuffer?language=objc -func NewHomographicImageRegistrationRequestWithTargetedCVPixelBufferOptions(pixelBuffer corevideo.PixelBufferRef, options map[ImageOption]objc.IObject) HomographicImageRegistrationRequest { - instance := HomographicImageRegistrationRequestClass.Alloc().InitWithTargetedCVPixelBufferOptions(pixelBuffer, options) +// [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) InitWithTargetedCGImageOptions(cgImage coregraphics.ImageRef, options map[ImageOption]objc.IObject) HomographicImageRegistrationRequest { - rv := objc.Call[HomographicImageRegistrationRequest](h_, objc.Sel("initWithTargetedCGImage:options:"), cgImage, options) +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) return rv } -// Creates a new request targeting a Core Graphics image. [Full Topic] +// Creates a new request targeting an image in a CVPixelBufferRef of known orientation. [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) +// [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) 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) +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) return rv } -// Creates a new request targeting an image as raw data. [Full Topic] +// Creates a new request targeting an image in a CVPixelBufferRef of known orientation, executing the completion handler when done. [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) +// [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) + 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:"), objc.Ptr(imageURL), options) + return rv +} + +// Creates a new request targeting an image at the specified URL. [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) instance.Autorelease() return instance } diff --git a/macos/vision/horizon_observation.gen.go b/macos/vision/horizon_observation.gen.go index f6edd064..65529a41 100644 --- a/macos/vision/horizon_observation.gen.go +++ b/macos/vision/horizon_observation.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package vision @@ -41,10 +41,6 @@ func (hc _HorizonObservationClass) Alloc() HorizonObservation { return rv } -func HorizonObservation_Alloc() HorizonObservation { - return HorizonObservationClass.Alloc() -} - func (hc _HorizonObservationClass) New() HorizonObservation { rv := objc.Call[HorizonObservation](hc, objc.Sel("new")) rv.Autorelease() diff --git a/macos/vision/human_body_pose_observation.gen.go b/macos/vision/human_body_pose_observation.gen.go index 9d26f816..38cfe12b 100644 --- a/macos/vision/human_body_pose_observation.gen.go +++ b/macos/vision/human_body_pose_observation.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package vision @@ -19,10 +19,10 @@ type _HumanBodyPoseObservationClass struct { // An interface definition for the [HumanBodyPoseObservation] class. type IHumanBodyPoseObservation interface { IRecognizedPointsObservation - RecognizedPointsForJointsGroupNameError(jointsGroupName HumanBodyPoseObservationJointsGroupName, error foundation.IError) map[HumanBodyPoseObservationJointName]RecognizedPoint RecognizedPointForJointNameError(jointName HumanBodyPoseObservationJointName, error foundation.IError) RecognizedPoint - AvailableJointNames() []HumanBodyPoseObservationJointName + RecognizedPointsForJointsGroupNameError(jointsGroupName HumanBodyPoseObservationJointsGroupName, error foundation.IError) map[HumanBodyPoseObservationJointName]RecognizedPoint AvailableJointsGroupNames() []HumanBodyPoseObservationJointsGroupName + AvailableJointNames() []HumanBodyPoseObservationJointName } // An observation that provides the body points the analysis recognized. [Full Topic] @@ -43,10 +43,6 @@ func (hc _HumanBodyPoseObservationClass) Alloc() HumanBodyPoseObservation { return rv } -func HumanBodyPoseObservation_Alloc() HumanBodyPoseObservation { - return HumanBodyPoseObservationClass.Alloc() -} - func (hc _HumanBodyPoseObservationClass) New() HumanBodyPoseObservation { rv := objc.Call[HumanBodyPoseObservation](hc, objc.Sel("new")) rv.Autorelease() @@ -62,14 +58,6 @@ func (h_ HumanBodyPoseObservation) Init() HumanBodyPoseObservation { 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 -func (h_ HumanBodyPoseObservation) RecognizedPointsForJointsGroupNameError(jointsGroupName HumanBodyPoseObservationJointsGroupName, error foundation.IError) map[HumanBodyPoseObservationJointName]RecognizedPoint { - rv := objc.Call[map[HumanBodyPoseObservationJointName]RecognizedPoint](h_, objc.Sel("recognizedPointsForJointsGroupName:error:"), jointsGroupName, objc.Ptr(error)) - 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 @@ -78,11 +66,11 @@ func (h_ HumanBodyPoseObservation) RecognizedPointForJointNameError(jointName Hu return rv } -// The names of the available joints in the observation. [Full Topic] +// Retrieves the recognized points associated with the joint group name. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/vision/vnhumanbodyposeobservation/3675601-availablejointnames?language=objc -func (h_ HumanBodyPoseObservation) AvailableJointNames() []HumanBodyPoseObservationJointName { - rv := objc.Call[[]HumanBodyPoseObservationJointName](h_, objc.Sel("availableJointNames")) +// [Full Topic]: https://developer.apple.com/documentation/vision/vnhumanbodyposeobservation/3675604-recognizedpointsforjointsgroupna?language=objc +func (h_ HumanBodyPoseObservation) RecognizedPointsForJointsGroupNameError(jointsGroupName HumanBodyPoseObservationJointsGroupName, error foundation.IError) map[HumanBodyPoseObservationJointName]RecognizedPoint { + rv := objc.Call[map[HumanBodyPoseObservationJointName]RecognizedPoint](h_, objc.Sel("recognizedPointsForJointsGroupName:error:"), jointsGroupName, objc.Ptr(error)) return rv } @@ -93,3 +81,11 @@ func (h_ HumanBodyPoseObservation) AvailableJointsGroupNames() []HumanBodyPoseOb rv := objc.Call[[]HumanBodyPoseObservationJointsGroupName](h_, objc.Sel("availableJointsGroupNames")) return rv } + +// The names of the available joints in the observation. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/vision/vnhumanbodyposeobservation/3675601-availablejointnames?language=objc +func (h_ HumanBodyPoseObservation) AvailableJointNames() []HumanBodyPoseObservationJointName { + rv := objc.Call[[]HumanBodyPoseObservationJointName](h_, objc.Sel("availableJointNames")) + return rv +} diff --git a/macos/vision/human_hand_pose_observation.gen.go b/macos/vision/human_hand_pose_observation.gen.go index f05ed9a0..01be8327 100644 --- a/macos/vision/human_hand_pose_observation.gen.go +++ b/macos/vision/human_hand_pose_observation.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package vision @@ -21,9 +21,9 @@ type IHumanHandPoseObservation interface { IRecognizedPointsObservation RecognizedPointsForJointsGroupNameError(jointsGroupName HumanHandPoseObservationJointsGroupName, error foundation.IError) map[HumanHandPoseObservationJointName]RecognizedPoint RecognizedPointForJointNameError(jointName HumanHandPoseObservationJointName, error foundation.IError) RecognizedPoint - Chirality() Chirality AvailableJointNames() []HumanHandPoseObservationJointName AvailableJointsGroupNames() []HumanHandPoseObservationJointsGroupName + Chirality() Chirality } // An observation that provides the hand points the analysis recognized. [Full Topic] @@ -44,10 +44,6 @@ func (hc _HumanHandPoseObservationClass) Alloc() HumanHandPoseObservation { return rv } -func HumanHandPoseObservation_Alloc() HumanHandPoseObservation { - return HumanHandPoseObservationClass.Alloc() -} - func (hc _HumanHandPoseObservationClass) New() HumanHandPoseObservation { rv := objc.Call[HumanHandPoseObservation](hc, objc.Sel("new")) rv.Autorelease() @@ -79,14 +75,6 @@ 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 @@ -102,3 +90,11 @@ 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/human_observation.gen.go b/macos/vision/human_observation.gen.go index 0f897ba2..d69d9ed8 100644 --- a/macos/vision/human_observation.gen.go +++ b/macos/vision/human_observation.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package vision @@ -40,10 +40,6 @@ func (hc _HumanObservationClass) Alloc() HumanObservation { return rv } -func HumanObservation_Alloc() HumanObservation { - return HumanObservationClass.Alloc() -} - func (hc _HumanObservationClass) New() HumanObservation { rv := objc.Call[HumanObservation](hc, objc.Sel("new")) rv.Autorelease() diff --git a/macos/vision/image_alignment_observation.gen.go b/macos/vision/image_alignment_observation.gen.go index 7ba1f0b8..3c3c156b 100644 --- a/macos/vision/image_alignment_observation.gen.go +++ b/macos/vision/image_alignment_observation.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package vision @@ -38,10 +38,6 @@ func (ic _ImageAlignmentObservationClass) Alloc() ImageAlignmentObservation { return rv } -func ImageAlignmentObservation_Alloc() ImageAlignmentObservation { - return ImageAlignmentObservationClass.Alloc() -} - func (ic _ImageAlignmentObservationClass) New() ImageAlignmentObservation { rv := objc.Call[ImageAlignmentObservation](ic, objc.Sel("new")) rv.Autorelease() diff --git a/macos/vision/image_based_request.gen.go b/macos/vision/image_based_request.gen.go index a9ad6655..1607cd87 100644 --- a/macos/vision/image_based_request.gen.go +++ b/macos/vision/image_based_request.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package vision @@ -41,10 +41,6 @@ func (ic _ImageBasedRequestClass) Alloc() ImageBasedRequest { return rv } -func ImageBasedRequest_Alloc() ImageBasedRequest { - return ImageBasedRequestClass.Alloc() -} - func (ic _ImageBasedRequestClass) New() ImageBasedRequest { rv := objc.Call[ImageBasedRequest](ic, objc.Sel("new")) rv.Autorelease() diff --git a/macos/vision/image_homographic_alignment_observation.gen.go b/macos/vision/image_homographic_alignment_observation.gen.go index a3561e2e..6639040b 100644 --- a/macos/vision/image_homographic_alignment_observation.gen.go +++ b/macos/vision/image_homographic_alignment_observation.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package vision @@ -40,10 +40,6 @@ func (ic _ImageHomographicAlignmentObservationClass) Alloc() ImageHomographicAli return rv } -func ImageHomographicAlignmentObservation_Alloc() ImageHomographicAlignmentObservation { - return ImageHomographicAlignmentObservationClass.Alloc() -} - func (ic _ImageHomographicAlignmentObservationClass) New() ImageHomographicAlignmentObservation { rv := objc.Call[ImageHomographicAlignmentObservation](ic, objc.Sel("new")) rv.Autorelease() diff --git a/macos/vision/image_registration_request.gen.go b/macos/vision/image_registration_request.gen.go index b365149e..2fa8f2a3 100644 --- a/macos/vision/image_registration_request.gen.go +++ b/macos/vision/image_registration_request.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package vision @@ -10,6 +10,7 @@ import ( "github.com/progrium/macdriver/macos/coremedia" "github.com/progrium/macdriver/macos/corevideo" "github.com/progrium/macdriver/macos/foundation" + "github.com/progrium/macdriver/macos/imageio" "github.com/progrium/macdriver/objc" ) @@ -43,10 +44,6 @@ func (ic _ImageRegistrationRequestClass) Alloc() ImageRegistrationRequest { return rv } -func ImageRegistrationRequest_Alloc() ImageRegistrationRequest { - return ImageRegistrationRequestClass.Alloc() -} - func (ic _ImageRegistrationRequestClass) New() ImageRegistrationRequest { rv := objc.Call[ImageRegistrationRequest](ic, objc.Sel("new")) rv.Autorelease() @@ -62,16 +59,226 @@ func (i_ ImageRegistrationRequest) Init() ImageRegistrationRequest { return rv } -func (i_ ImageRegistrationRequest) InitWithTargetedImageURLOptions(imageURL foundation.IURL, options map[ImageOption]objc.IObject) ImageRegistrationRequest { - rv := objc.Call[ImageRegistrationRequest](i_, objc.Sel("initWithTargetedImageURL:options:"), objc.Ptr(imageURL), options) +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 an image at the specified URL. [Full Topic] +// Creates a new request targeting a Core Graphics image of known orientation. [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/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:"), objc.Ptr(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:"), objc.Ptr(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:"), objc.Ptr(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:"), objc.Ptr(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:"), objc.Ptr(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) + return rv +} + +// Creates a new request targeting a raw data image of known orientation. [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) instance.Autorelease() return instance } @@ -90,6 +297,34 @@ 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:"), objc.Ptr(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:"), objc.Ptr(ciImage), options) return rv @@ -104,44 +339,58 @@ func NewImageRegistrationRequestWithTargetedCIImageOptions(ciImage coreimage.IIm 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) +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 an image in a CVPixelBufferRef. [Full Topic] +// 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/2923445-initwithtargetedcvpixelbuffer?language=objc -func NewImageRegistrationRequestWithTargetedCVPixelBufferOptions(pixelBuffer corevideo.PixelBufferRef, options map[ImageOption]objc.IObject) ImageRegistrationRequest { - instance := ImageRegistrationRequestClass.Alloc().InitWithTargetedCVPixelBufferOptions(pixelBuffer, options) +// [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) InitWithTargetedCGImageOptions(cgImage coregraphics.ImageRef, options map[ImageOption]objc.IObject) ImageRegistrationRequest { - rv := objc.Call[ImageRegistrationRequest](i_, objc.Sel("initWithTargetedCGImage:options:"), cgImage, options) +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) return rv } -// Creates a new request targeting a Core Graphics image. [Full Topic] +// Creates a new request targeting an image in a CVPixelBufferRef of known orientation. [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) +// [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) 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) +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) return rv } -// Creates a new request targeting an image as raw data. [Full Topic] +// Creates a new request targeting an image in a CVPixelBufferRef of known orientation, executing the completion handler when done. [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) +// [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) + 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:"), objc.Ptr(imageURL), options) + return rv +} + +// Creates a new request targeting an image at the specified URL. [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) instance.Autorelease() return instance } diff --git a/macos/vision/image_request_handler.gen.go b/macos/vision/image_request_handler.gen.go index 20127367..ae821a19 100644 --- a/macos/vision/image_request_handler.gen.go +++ b/macos/vision/image_request_handler.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package vision @@ -10,6 +10,7 @@ import ( "github.com/progrium/macdriver/macos/coremedia" "github.com/progrium/macdriver/macos/corevideo" "github.com/progrium/macdriver/macos/foundation" + "github.com/progrium/macdriver/macos/imageio" "github.com/progrium/macdriver/objc" ) @@ -39,16 +40,30 @@ func ImageRequestHandlerFrom(ptr unsafe.Pointer) ImageRequestHandler { } } -func (i_ ImageRequestHandler) InitWithCIImageOptions(image coreimage.IImage, options map[ImageOption]objc.IObject) ImageRequestHandler { - rv := objc.Call[ImageRequestHandler](i_, objc.Sel("initWithCIImage:options:"), objc.Ptr(image), 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 CIImage data. [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/2866549-initwithciimage?language=objc -func NewImageRequestHandlerWithCIImageOptions(image coreimage.IImage, options map[ImageOption]objc.IObject) ImageRequestHandler { - instance := ImageRequestHandlerClass.Alloc().InitWithCIImageOptions(image, 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 +} + +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 } @@ -67,6 +82,62 @@ func NewImageRequestHandlerWithDataOptions(imageData []byte, options map[ImageOp 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:"), objc.Ptr(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:"), objc.Ptr(image), options) + return rv +} + +// Creates a handler to be used for performing requests on CIImage data. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/vision/vnimagerequesthandler/2866549-initwithciimage?language=objc +func NewImageRequestHandlerWithCIImageOptions(image coreimage.IImage, options map[ImageOption]objc.IObject) ImageRequestHandler { + instance := ImageRequestHandlerClass.Alloc().InitWithCIImageOptions(image, options) + instance.Autorelease() + 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) + return rv +} + +// Creates a handler for performing requests on a Core Video pixel buffer of a known orientation. [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) + instance.Autorelease() + return instance +} + func (i_ ImageRequestHandler) InitWithURLOptions(imageURL foundation.IURL, options map[ImageOption]objc.IObject) ImageRequestHandler { rv := objc.Call[ImageRequestHandler](i_, objc.Sel("initWithURL:options:"), objc.Ptr(imageURL), options) return rv @@ -95,16 +166,30 @@ func NewImageRequestHandlerWithCMSampleBufferOptions(sampleBuffer coremedia.Samp return instance } -func (i_ ImageRequestHandler) InitWithCGImageOptions(image coregraphics.ImageRef, options map[ImageOption]objc.IObject) ImageRequestHandler { - rv := objc.Call[ImageRequestHandler](i_, objc.Sel("initWithCGImage:options:"), image, options) +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:"), objc.Ptr(image), orientation, options) return rv } -// Creates a handler to be used for performing requests on Core Graphics images. [Full Topic] +// 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/2866541-initwithcgimage?language=objc -func NewImageRequestHandlerWithCGImageOptions(image coregraphics.ImageRef, options map[ImageOption]objc.IObject) ImageRequestHandler { - instance := ImageRequestHandlerClass.Alloc().InitWithCGImageOptions(image, options) +// [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) + return rv +} + +// Creates a handler to be used for performing requests on a Core Graphics image with known orientation. [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) instance.Autorelease() return instance } @@ -128,10 +213,6 @@ func (ic _ImageRequestHandlerClass) Alloc() ImageRequestHandler { return rv } -func ImageRequestHandler_Alloc() ImageRequestHandler { - return ImageRequestHandlerClass.Alloc() -} - func (ic _ImageRequestHandlerClass) New() ImageRequestHandler { rv := objc.Call[ImageRequestHandler](ic, objc.Sel("new")) rv.Autorelease() diff --git a/macos/vision/image_translation_alignment_observation.gen.go b/macos/vision/image_translation_alignment_observation.gen.go index ca5249f1..fb53d08f 100644 --- a/macos/vision/image_translation_alignment_observation.gen.go +++ b/macos/vision/image_translation_alignment_observation.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package vision @@ -40,10 +40,6 @@ func (ic _ImageTranslationAlignmentObservationClass) Alloc() ImageTranslationAli return rv } -func ImageTranslationAlignmentObservation_Alloc() ImageTranslationAlignmentObservation { - return ImageTranslationAlignmentObservationClass.Alloc() -} - func (ic _ImageTranslationAlignmentObservationClass) New() ImageTranslationAlignmentObservation { rv := objc.Call[ImageTranslationAlignmentObservation](ic, objc.Sel("new")) rv.Autorelease() diff --git a/macos/vision/observation.gen.go b/macos/vision/observation.gen.go index 1abefddf..e870fc6b 100644 --- a/macos/vision/observation.gen.go +++ b/macos/vision/observation.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package vision @@ -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] @@ -43,10 +43,6 @@ func (oc _ObservationClass) Alloc() Observation { return rv } -func Observation_Alloc() Observation { - return ObservationClass.Alloc() -} - func (oc _ObservationClass) New() Observation { rv := objc.Call[Observation](oc, objc.Sel("new")) rv.Autorelease() @@ -62,6 +58,14 @@ 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 @@ -77,11 +81,3 @@ 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 26e896f2..581e5218 100644 --- a/macos/vision/pixel_buffer_observation.gen.go +++ b/macos/vision/pixel_buffer_observation.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package vision @@ -19,8 +19,8 @@ type _PixelBufferObservationClass struct { // An interface definition for the [PixelBufferObservation] class. type IPixelBufferObservation interface { IObservation - FeatureName() string PixelBuffer() corevideo.PixelBufferRef + FeatureName() string } // An object that represents an image that an image analysis request produces. [Full Topic] @@ -41,10 +41,6 @@ func (pc _PixelBufferObservationClass) Alloc() PixelBufferObservation { return rv } -func PixelBufferObservation_Alloc() PixelBufferObservation { - return PixelBufferObservationClass.Alloc() -} - func (pc _PixelBufferObservationClass) New() PixelBufferObservation { rv := objc.Call[PixelBufferObservation](pc, objc.Sel("new")) rv.Autorelease() @@ -60,14 +56,6 @@ func (p_ PixelBufferObservation) Init() PixelBufferObservation { 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 -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 @@ -75,3 +63,11 @@ 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 +func (p_ PixelBufferObservation) FeatureName() string { + rv := objc.Call[string](p_, objc.Sel("featureName")) + return rv +} diff --git a/macos/vision/point.gen.go b/macos/vision/point.gen.go index 1b77de86..2db97136 100644 --- a/macos/vision/point.gen.go +++ b/macos/vision/point.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package vision @@ -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) 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 } -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 } @@ -71,10 +71,6 @@ func (pc _PointClass) Alloc() Point { return rv } -func Point_Alloc() Point { - return PointClass.Alloc() -} - func (pc _PointClass) New() Point { rv := objc.Call[Point](pc, objc.Sel("new")) rv.Autorelease() @@ -113,6 +109,14 @@ 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 @@ -128,22 +132,6 @@ func Point_ZeroPoint() Point { return PointClass.ZeroPoint() } -// The x-coordinate. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/vision/vnpoint/3548334-x?language=objc -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 @@ -151,3 +139,11 @@ 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 +func (p_ Point) X() float64 { + rv := objc.Call[float64](p_, objc.Sel("x")) + return rv +} diff --git a/macos/vision/protocols.gen.m b/macos/vision/protocols.gen.m index ec60c8c4..bc8fada2 100644 --- a/macos/vision/protocols.gen.m +++ b/macos/vision/protocols.gen.m @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. #import "Vision/Vision.h" diff --git a/macos/vision/recognize_animals_request.gen.go b/macos/vision/recognize_animals_request.gen.go index 6a416076..962c88be 100644 --- a/macos/vision/recognize_animals_request.gen.go +++ b/macos/vision/recognize_animals_request.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package vision @@ -40,10 +40,6 @@ func (rc _RecognizeAnimalsRequestClass) Alloc() RecognizeAnimalsRequest { return rv } -func RecognizeAnimalsRequest_Alloc() RecognizeAnimalsRequest { - return RecognizeAnimalsRequestClass.Alloc() -} - func (rc _RecognizeAnimalsRequestClass) New() RecognizeAnimalsRequest { rv := objc.Call[RecognizeAnimalsRequest](rc, objc.Sel("new")) rv.Autorelease() diff --git a/macos/vision/recognize_text_request.gen.go b/macos/vision/recognize_text_request.gen.go index 9a1657ce..01d51028 100644 --- a/macos/vision/recognize_text_request.gen.go +++ b/macos/vision/recognize_text_request.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package vision @@ -20,16 +20,16 @@ type _RecognizeTextRequestClass struct { type IRecognizeTextRequest interface { IImageBasedRequest SupportedRecognitionLanguagesAndReturnError(error foundation.IError) []string + RecognitionLanguages() []string + SetRecognitionLanguages(value []string) RecognitionLevel() RequestTextRecognitionLevel SetRecognitionLevel(value RequestTextRecognitionLevel) - UsesLanguageCorrection() bool - SetUsesLanguageCorrection(value bool) MinimumTextHeight() float64 SetMinimumTextHeight(value float64) - 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] @@ -50,10 +50,6 @@ func (rc _RecognizeTextRequestClass) Alloc() RecognizeTextRequest { return rv } -func RecognizeTextRequest_Alloc() RecognizeTextRequest { - return RecognizeTextRequestClass.Alloc() -} - func (rc _RecognizeTextRequestClass) New() RecognizeTextRequest { rv := objc.Call[RecognizeTextRequest](rc, objc.Sel("new")) rv.Autorelease() @@ -91,6 +87,21 @@ 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 @@ -106,21 +117,6 @@ 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 @@ -136,21 +132,6 @@ func (r_ RecognizeTextRequest) SetMinimumTextHeight(value float64) { 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 @@ -165,3 +146,18 @@ 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_object_observation.gen.go b/macos/vision/recognized_object_observation.gen.go index 190b60b3..f4a19abf 100644 --- a/macos/vision/recognized_object_observation.gen.go +++ b/macos/vision/recognized_object_observation.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package vision @@ -40,10 +40,6 @@ func (rc _RecognizedObjectObservationClass) Alloc() RecognizedObjectObservation return rv } -func RecognizedObjectObservation_Alloc() RecognizedObjectObservation { - return RecognizedObjectObservationClass.Alloc() -} - func (rc _RecognizedObjectObservationClass) New() RecognizedObjectObservation { rv := objc.Call[RecognizedObjectObservation](rc, objc.Sel("new")) rv.Autorelease() diff --git a/macos/vision/recognized_point.gen.go b/macos/vision/recognized_point.gen.go index e5deed3c..16e36331 100644 --- a/macos/vision/recognized_point.gen.go +++ b/macos/vision/recognized_point.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package vision @@ -40,10 +40,6 @@ func (rc _RecognizedPointClass) Alloc() RecognizedPoint { return rv } -func RecognizedPoint_Alloc() RecognizedPoint { - return RecognizedPointClass.Alloc() -} - func (rc _RecognizedPointClass) New() RecognizedPoint { rv := objc.Call[RecognizedPoint](rc, objc.Sel("new")) rv.Autorelease() @@ -59,30 +55,30 @@ func (r_ RecognizedPoint) Init() RecognizedPoint { return rv } -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 } -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 } diff --git a/macos/vision/recognized_points_observation.gen.go b/macos/vision/recognized_points_observation.gen.go index bc2cf6ec..a8a8e806 100644 --- a/macos/vision/recognized_points_observation.gen.go +++ b/macos/vision/recognized_points_observation.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package vision @@ -23,8 +23,8 @@ type IRecognizedPointsObservation interface { RecognizedPointsForGroupKeyError(groupKey RecognizedPointGroupKey, error foundation.IError) map[RecognizedPointKey]RecognizedPoint RecognizedPointForKeyError(pointKey RecognizedPointKey, error foundation.IError) RecognizedPoint KeypointsMultiArrayAndReturnError(error foundation.IError) coreml.MultiArray - AvailableKeys() []RecognizedPointKey AvailableGroupKeys() []RecognizedPointGroupKey + AvailableKeys() []RecognizedPointKey } // An observation that provides the points the analysis recognized. [Full Topic] @@ -45,10 +45,6 @@ func (rc _RecognizedPointsObservationClass) Alloc() RecognizedPointsObservation return rv } -func RecognizedPointsObservation_Alloc() RecognizedPointsObservation { - return RecognizedPointsObservationClass.Alloc() -} - func (rc _RecognizedPointsObservationClass) New() RecognizedPointsObservation { rv := objc.Call[RecognizedPointsObservation](rc, objc.Sel("new")) rv.Autorelease() @@ -88,14 +84,6 @@ func (r_ RecognizedPointsObservation) KeypointsMultiArrayAndReturnError(error fo return rv } -// The available point keys in the observation. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/vision/vnrecognizedpointsobservation/3656174-availablekeys?language=objc -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 @@ -103,3 +91,11 @@ func (r_ RecognizedPointsObservation) AvailableGroupKeys() []RecognizedPointGrou 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 +func (r_ RecognizedPointsObservation) AvailableKeys() []RecognizedPointKey { + rv := objc.Call[[]RecognizedPointKey](r_, objc.Sel("availableKeys")) + return rv +} diff --git a/macos/vision/recognized_text.gen.go b/macos/vision/recognized_text.gen.go index 5c06499f..3c5e0db4 100644 --- a/macos/vision/recognized_text.gen.go +++ b/macos/vision/recognized_text.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package vision @@ -42,10 +42,6 @@ func (rc _RecognizedTextClass) Alloc() RecognizedText { return rv } -func RecognizedText_Alloc() RecognizedText { - return RecognizedTextClass.Alloc() -} - func (rc _RecognizedTextClass) New() RecognizedText { rv := objc.Call[RecognizedText](rc, objc.Sel("new")) rv.Autorelease() diff --git a/macos/vision/recognized_text_observation.gen.go b/macos/vision/recognized_text_observation.gen.go index e8463ea7..ed45cc3e 100644 --- a/macos/vision/recognized_text_observation.gen.go +++ b/macos/vision/recognized_text_observation.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package vision @@ -40,10 +40,6 @@ func (rc _RecognizedTextObservationClass) Alloc() RecognizedTextObservation { return rv } -func RecognizedTextObservation_Alloc() RecognizedTextObservation { - return RecognizedTextObservationClass.Alloc() -} - func (rc _RecognizedTextObservationClass) New() RecognizedTextObservation { rv := objc.Call[RecognizedTextObservation](rc, objc.Sel("new")) rv.Autorelease() diff --git a/macos/vision/rectangle_observation.gen.go b/macos/vision/rectangle_observation.gen.go index 4a97c1b7..8bc5b704 100644 --- a/macos/vision/rectangle_observation.gen.go +++ b/macos/vision/rectangle_observation.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package vision @@ -19,8 +19,8 @@ type _RectangleObservationClass struct { // An interface definition for the [RectangleObservation] class. type IRectangleObservation interface { IDetectedObjectObservation - BottomRight() coregraphics.Point BottomLeft() coregraphics.Point + BottomRight() coregraphics.Point TopRight() coregraphics.Point TopLeft() coregraphics.Point } @@ -43,10 +43,6 @@ func (rc _RectangleObservationClass) Alloc() RectangleObservation { return rv } -func RectangleObservation_Alloc() RectangleObservation { - return RectangleObservationClass.Alloc() -} - func (rc _RectangleObservationClass) New() RectangleObservation { rv := objc.Call[RectangleObservation](rc, objc.Sel("new")) rv.Autorelease() @@ -86,14 +82,6 @@ func RectangleObservation_ObservationWithRequestRevisionBoundingBox(requestRevis return RectangleObservationClass.ObservationWithRequestRevisionBoundingBox(requestRevision, boundingBox) } -// 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 -func (r_ RectangleObservation) BottomRight() coregraphics.Point { - rv := objc.Call[coregraphics.Point](r_, objc.Sel("bottomRight")) - 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 @@ -102,6 +90,14 @@ func (r_ RectangleObservation) BottomLeft() coregraphics.Point { 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 +func (r_ RectangleObservation) BottomRight() coregraphics.Point { + rv := objc.Call[coregraphics.Point](r_, objc.Sel("bottomRight")) + 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 4995d393..5a6a420f 100644 --- a/macos/vision/request.gen.go +++ b/macos/vision/request.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package vision @@ -65,10 +65,6 @@ func (rc _RequestClass) Alloc() Request { return rv } -func Request_Alloc() Request { - return RequestClass.Alloc() -} - func (rc _RequestClass) New() Request { rv := objc.Call[Request](rc, objc.Sel("new")) rv.Autorelease() @@ -86,6 +82,29 @@ 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 @@ -101,6 +120,14 @@ 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 @@ -131,37 +158,6 @@ 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/request_progress_providing.gen.go b/macos/vision/request_progress_providing_protocol.gen.go similarity index 70% rename from macos/vision/request_progress_providing.gen.go rename to macos/vision/request_progress_providing_protocol.gen.go index 7b9c1e27..2b2e660e 100644 --- a/macos/vision/request_progress_providing.gen.go +++ b/macos/vision/request_progress_providing_protocol.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package vision @@ -23,42 +23,45 @@ type PRequestProgressProviding interface { HasIndeterminate() bool } -// A concrete type wrapper for the [PRequestProgressProviding] protocol. -type RequestProgressProvidingWrapper struct { +// ensure impl type implements protocol interface +var _ PRequestProgressProviding = (*RequestProgressProvidingObject)(nil) + +// A concrete type for the [PRequestProgressProviding] protocol. +type RequestProgressProvidingObject struct { objc.Object } -func (r_ RequestProgressProvidingWrapper) HasSetProgressHandler() bool { +func (r_ RequestProgressProvidingObject) HasSetProgressHandler() bool { return r_.RespondsToSelector(objc.Sel("setProgressHandler:")) } // A block of code executed periodically during a Vision request to report progress on long-running tasks. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/vision/vnrequestprogressproviding/3152652-progresshandler?language=objc -func (r_ RequestProgressProvidingWrapper) SetProgressHandler(value RequestProgressHandler) { +func (r_ RequestProgressProvidingObject) SetProgressHandler(value RequestProgressHandler) { objc.Call[objc.Void](r_, objc.Sel("setProgressHandler:"), value) } -func (r_ RequestProgressProvidingWrapper) HasProgressHandler() bool { +func (r_ RequestProgressProvidingObject) HasProgressHandler() bool { return r_.RespondsToSelector(objc.Sel("progressHandler")) } // A block of code executed periodically during a Vision request to report progress on long-running tasks. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/vision/vnrequestprogressproviding/3152652-progresshandler?language=objc -func (r_ RequestProgressProvidingWrapper) ProgressHandler() RequestProgressHandler { +func (r_ RequestProgressProvidingObject) ProgressHandler() RequestProgressHandler { rv := objc.Call[RequestProgressHandler](r_, objc.Sel("progressHandler")) return rv } -func (r_ RequestProgressProvidingWrapper) HasIndeterminate() bool { +func (r_ RequestProgressProvidingObject) HasIndeterminate() bool { return r_.RespondsToSelector(objc.Sel("indeterminate")) } // A Boolean set to true when a request can't determine its progress in fractions completed. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/vision/vnrequestprogressproviding/3152651-indeterminate?language=objc -func (r_ RequestProgressProvidingWrapper) Indeterminate() bool { +func (r_ RequestProgressProvidingObject) Indeterminate() bool { rv := objc.Call[bool](r_, objc.Sel("indeterminate")) return rv } diff --git a/macos/vision/request_revision_providing.gen.go b/macos/vision/request_revision_providing_protocol.gen.go similarity index 64% rename from macos/vision/request_revision_providing.gen.go rename to macos/vision/request_revision_providing_protocol.gen.go index 30b01e7b..9ca04924 100644 --- a/macos/vision/request_revision_providing.gen.go +++ b/macos/vision/request_revision_providing_protocol.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package vision @@ -15,19 +15,22 @@ type PRequestRevisionProviding interface { HasRequestRevision() bool } -// A concrete type wrapper for the [PRequestRevisionProviding] protocol. -type RequestRevisionProvidingWrapper struct { +// ensure impl type implements protocol interface +var _ PRequestRevisionProviding = (*RequestRevisionProvidingObject)(nil) + +// A concrete type for the [PRequestRevisionProviding] protocol. +type RequestRevisionProvidingObject struct { objc.Object } -func (r_ RequestRevisionProvidingWrapper) HasRequestRevision() bool { +func (r_ RequestRevisionProvidingObject) HasRequestRevision() bool { return r_.RespondsToSelector(objc.Sel("requestRevision")) } // The revision of the VNRequest subclass used to generate the implementing object. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/vision/vnrequestrevisionproviding/2967114-requestrevision?language=objc -func (r_ RequestRevisionProvidingWrapper) RequestRevision() uint { +func (r_ RequestRevisionProvidingObject) RequestRevision() uint { rv := objc.Call[uint](r_, objc.Sel("requestRevision")) return rv } diff --git a/macos/vision/saliency_image_observation.gen.go b/macos/vision/saliency_image_observation.gen.go index 8ac3bf6f..54d07ac8 100644 --- a/macos/vision/saliency_image_observation.gen.go +++ b/macos/vision/saliency_image_observation.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package vision @@ -39,10 +39,6 @@ func (sc _SaliencyImageObservationClass) Alloc() SaliencyImageObservation { return rv } -func SaliencyImageObservation_Alloc() SaliencyImageObservation { - return SaliencyImageObservationClass.Alloc() -} - func (sc _SaliencyImageObservationClass) New() SaliencyImageObservation { rv := objc.Call[SaliencyImageObservation](sc, objc.Sel("new")) rv.Autorelease() diff --git a/macos/vision/sequence_request_handler.gen.go b/macos/vision/sequence_request_handler.gen.go index 5d7aec1a..4e8850b1 100644 --- a/macos/vision/sequence_request_handler.gen.go +++ b/macos/vision/sequence_request_handler.gen.go @@ -1,12 +1,16 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package vision import ( "unsafe" + "github.com/progrium/macdriver/macos/coregraphics" + "github.com/progrium/macdriver/macos/coreimage" "github.com/progrium/macdriver/macos/coremedia" + "github.com/progrium/macdriver/macos/corevideo" "github.com/progrium/macdriver/macos/foundation" + "github.com/progrium/macdriver/macos/imageio" "github.com/progrium/macdriver/objc" ) @@ -20,6 +24,17 @@ type _SequenceRequestHandlerClass struct { // An interface definition for the [SequenceRequestHandler] class. type ISequenceRequestHandler interface { objc.IObject + PerformRequestsOnCVPixelBufferError(requests []IRequest, pixelBuffer corevideo.PixelBufferRef, error foundation.IError) bool + PerformRequestsOnImageDataError(requests []IRequest, imageData []byte, error foundation.IError) bool + PerformRequestsOnCVPixelBufferOrientationError(requests []IRequest, pixelBuffer corevideo.PixelBufferRef, orientation imageio.ImagePropertyOrientation, error foundation.IError) bool + PerformRequestsOnCGImageOrientationError(requests []IRequest, image coregraphics.ImageRef, orientation imageio.ImagePropertyOrientation, error foundation.IError) bool + PerformRequestsOnCIImageOrientationError(requests []IRequest, image coreimage.IImage, orientation imageio.ImagePropertyOrientation, error foundation.IError) bool + PerformRequestsOnCMSampleBufferOrientationError(requests []IRequest, sampleBuffer coremedia.SampleBufferRef, orientation imageio.ImagePropertyOrientation, error foundation.IError) bool + PerformRequestsOnCGImageError(requests []IRequest, image coregraphics.ImageRef, error foundation.IError) bool + PerformRequestsOnImageDataOrientationError(requests []IRequest, imageData []byte, orientation imageio.ImagePropertyOrientation, error foundation.IError) bool + PerformRequestsOnCIImageError(requests []IRequest, image coreimage.IImage, error foundation.IError) bool + PerformRequestsOnImageURLError(requests []IRequest, imageURL foundation.IURL, error foundation.IError) bool + PerformRequestsOnImageURLOrientationError(requests []IRequest, imageURL foundation.IURL, orientation imageio.ImagePropertyOrientation, error foundation.IError) bool PerformRequestsOnCMSampleBufferError(requests []IRequest, sampleBuffer coremedia.SampleBufferRef, error foundation.IError) bool } @@ -46,10 +61,6 @@ func (sc _SequenceRequestHandlerClass) Alloc() SequenceRequestHandler { return rv } -func SequenceRequestHandler_Alloc() SequenceRequestHandler { - return SequenceRequestHandlerClass.Alloc() -} - func (sc _SequenceRequestHandlerClass) New() SequenceRequestHandler { rv := objc.Call[SequenceRequestHandler](sc, objc.Sel("new")) rv.Autorelease() @@ -60,6 +71,94 @@ 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 foundation.IError) bool { + rv := objc.Call[bool](s_, objc.Sel("performRequests:onCVPixelBuffer:error:"), requests, pixelBuffer, objc.Ptr(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 foundation.IError) bool { + rv := objc.Call[bool](s_, objc.Sel("performRequests:onImageData:error:"), requests, imageData, objc.Ptr(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 foundation.IError) bool { + rv := objc.Call[bool](s_, objc.Sel("performRequests:onCVPixelBuffer:orientation:error:"), requests, pixelBuffer, orientation, objc.Ptr(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 foundation.IError) bool { + rv := objc.Call[bool](s_, objc.Sel("performRequests:onCGImage:orientation:error:"), requests, image, orientation, objc.Ptr(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 foundation.IError) bool { + rv := objc.Call[bool](s_, objc.Sel("performRequests:onCIImage:orientation:error:"), requests, objc.Ptr(image), orientation, objc.Ptr(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 foundation.IError) bool { + rv := objc.Call[bool](s_, objc.Sel("performRequests:onCMSampleBuffer:orientation:error:"), requests, sampleBuffer, orientation, objc.Ptr(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 foundation.IError) bool { + rv := objc.Call[bool](s_, objc.Sel("performRequests:onCGImage:error:"), requests, image, objc.Ptr(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 foundation.IError) bool { + rv := objc.Call[bool](s_, objc.Sel("performRequests:onImageData:orientation:error:"), requests, imageData, orientation, objc.Ptr(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 foundation.IError) bool { + rv := objc.Call[bool](s_, objc.Sel("performRequests:onCIImage:error:"), requests, objc.Ptr(image), objc.Ptr(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 foundation.IError) bool { + rv := objc.Call[bool](s_, objc.Sel("performRequests:onImageURL:error:"), requests, objc.Ptr(imageURL), objc.Ptr(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 foundation.IError) bool { + rv := objc.Call[bool](s_, objc.Sel("performRequests:onImageURL:orientation:error:"), requests, objc.Ptr(imageURL), orientation, objc.Ptr(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 d9746076..8038bbcc 100644 --- a/macos/vision/stateful_request.gen.go +++ b/macos/vision/stateful_request.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package vision @@ -19,8 +19,8 @@ type _StatefulRequestClass struct { // An interface definition for the [StatefulRequest] class. type IStatefulRequest interface { IImageBasedRequest - MinimumLatencyFrameCount() int FrameAnalysisSpacing() coremedia.Time + MinimumLatencyFrameCount() int } // An abstract request type that builds evidence of a condition over time. [Full Topic] @@ -55,10 +55,6 @@ func (sc _StatefulRequestClass) Alloc() StatefulRequest { return rv } -func StatefulRequest_Alloc() StatefulRequest { - return StatefulRequestClass.Alloc() -} - func (sc _StatefulRequestClass) New() StatefulRequest { rv := objc.Call[StatefulRequest](sc, objc.Sel("new")) rv.Autorelease() @@ -88,14 +84,6 @@ func NewStatefulRequestWithCompletionHandler(completionHandler RequestCompletion return instance } -// 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 -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 @@ -103,3 +91,11 @@ 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 +func (s_ StatefulRequest) MinimumLatencyFrameCount() int { + rv := objc.Call[int](s_, objc.Sel("minimumLatencyFrameCount")) + return rv +} diff --git a/macos/vision/targeted_image_request.gen.go b/macos/vision/targeted_image_request.gen.go index b2bed667..738a2e76 100644 --- a/macos/vision/targeted_image_request.gen.go +++ b/macos/vision/targeted_image_request.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package vision @@ -10,6 +10,7 @@ import ( "github.com/progrium/macdriver/macos/coremedia" "github.com/progrium/macdriver/macos/corevideo" "github.com/progrium/macdriver/macos/foundation" + "github.com/progrium/macdriver/macos/imageio" "github.com/progrium/macdriver/objc" ) @@ -38,16 +39,226 @@ func TargetedImageRequestFrom(ptr unsafe.Pointer) TargetedImageRequest { } } -func (t_ TargetedImageRequest) InitWithTargetedImageURLOptions(imageURL foundation.IURL, options map[ImageOption]objc.IObject) TargetedImageRequest { - rv := objc.Call[TargetedImageRequest](t_, objc.Sel("initWithTargetedImageURL:options:"), objc.Ptr(imageURL), options) +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 an image at the specified URL. [Full Topic] +// Creates a new request targeting a Core Graphics image of known orientation. [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/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:"), objc.Ptr(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:"), objc.Ptr(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:"), objc.Ptr(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:"), objc.Ptr(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:"), objc.Ptr(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) + return rv +} + +// Creates a new request targeting a raw data image of known orientation. [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) instance.Autorelease() return instance } @@ -66,6 +277,34 @@ 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:"), objc.Ptr(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:"), objc.Ptr(ciImage), options) return rv @@ -80,55 +319,65 @@ func NewTargetedImageRequestWithTargetedCIImageOptions(ciImage coreimage.IImage, 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) +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 an image in a CVPixelBufferRef. [Full Topic] +// 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/2923445-initwithtargetedcvpixelbuffer?language=objc -func NewTargetedImageRequestWithTargetedCVPixelBufferOptions(pixelBuffer corevideo.PixelBufferRef, options map[ImageOption]objc.IObject) TargetedImageRequest { - instance := TargetedImageRequestClass.Alloc().InitWithTargetedCVPixelBufferOptions(pixelBuffer, options) +// [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) InitWithTargetedCGImageOptions(cgImage coregraphics.ImageRef, options map[ImageOption]objc.IObject) TargetedImageRequest { - rv := objc.Call[TargetedImageRequest](t_, objc.Sel("initWithTargetedCGImage:options:"), cgImage, options) +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) return rv } -// Creates a new request targeting a Core Graphics image. [Full Topic] +// Creates a new request targeting an image in a CVPixelBufferRef of known orientation. [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) +// [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) 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) +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) return rv } -// Creates a new request targeting an image as raw data. [Full Topic] +// Creates a new request targeting an image in a CVPixelBufferRef of known orientation, executing the completion handler when done. [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) +// [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) instance.Autorelease() return instance } -func (tc _TargetedImageRequestClass) Alloc() TargetedImageRequest { - rv := objc.Call[TargetedImageRequest](tc, objc.Sel("alloc")) +func (t_ TargetedImageRequest) InitWithTargetedImageURLOptions(imageURL foundation.IURL, options map[ImageOption]objc.IObject) TargetedImageRequest { + rv := objc.Call[TargetedImageRequest](t_, objc.Sel("initWithTargetedImageURL:options:"), objc.Ptr(imageURL), options) return rv } -func TargetedImageRequest_Alloc() TargetedImageRequest { - return TargetedImageRequestClass.Alloc() +// Creates a new request targeting an image at the specified URL. [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) + instance.Autorelease() + return instance +} + +func (tc _TargetedImageRequestClass) Alloc() TargetedImageRequest { + rv := objc.Call[TargetedImageRequest](tc, objc.Sel("alloc")) + return rv } func (tc _TargetedImageRequestClass) New() TargetedImageRequest { diff --git a/macos/vision/text_observation.gen.go b/macos/vision/text_observation.gen.go index 3652c7ed..f82a3353 100644 --- a/macos/vision/text_observation.gen.go +++ b/macos/vision/text_observation.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package vision @@ -40,10 +40,6 @@ func (tc _TextObservationClass) Alloc() TextObservation { return rv } -func TextObservation_Alloc() TextObservation { - return TextObservationClass.Alloc() -} - func (tc _TextObservationClass) New() TextObservation { rv := objc.Call[TextObservation](tc, objc.Sel("new")) rv.Autorelease() diff --git a/macos/vision/track_object_request.gen.go b/macos/vision/track_object_request.gen.go index 49f8a29f..2eb0c514 100644 --- a/macos/vision/track_object_request.gen.go +++ b/macos/vision/track_object_request.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package vision @@ -33,6 +33,20 @@ func TrackObjectRequestFrom(ptr unsafe.Pointer) TrackObjectRequest { } } +func (t_ TrackObjectRequest) InitWithDetectedObjectObservationCompletionHandler(observation IDetectedObjectObservation, completionHandler RequestCompletionHandler) TrackObjectRequest { + rv := objc.Call[TrackObjectRequest](t_, objc.Sel("initWithDetectedObjectObservation:completionHandler:"), objc.Ptr(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:"), objc.Ptr(observation)) return rv @@ -52,10 +66,6 @@ func (tc _TrackObjectRequestClass) Alloc() TrackObjectRequest { return rv } -func TrackObjectRequest_Alloc() TrackObjectRequest { - return TrackObjectRequestClass.Alloc() -} - func (tc _TrackObjectRequestClass) New() TrackObjectRequest { rv := objc.Call[TrackObjectRequest](tc, objc.Sel("new")) rv.Autorelease() diff --git a/macos/vision/track_rectangle_request.gen.go b/macos/vision/track_rectangle_request.gen.go index 5ba1302a..3b70e90b 100644 --- a/macos/vision/track_rectangle_request.gen.go +++ b/macos/vision/track_rectangle_request.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package vision @@ -47,13 +47,23 @@ func NewTrackRectangleRequestWithRectangleObservation(observation IRectangleObse return instance } -func (tc _TrackRectangleRequestClass) Alloc() TrackRectangleRequest { - rv := objc.Call[TrackRectangleRequest](tc, objc.Sel("alloc")) +func (t_ TrackRectangleRequest) InitWithRectangleObservationCompletionHandler(observation IRectangleObservation, completionHandler RequestCompletionHandler) TrackRectangleRequest { + rv := objc.Call[TrackRectangleRequest](t_, objc.Sel("initWithRectangleObservation:completionHandler:"), objc.Ptr(observation), completionHandler) return rv } -func TrackRectangleRequest_Alloc() TrackRectangleRequest { - return TrackRectangleRequestClass.Alloc() +// 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 } func (tc _TrackRectangleRequestClass) New() TrackRectangleRequest { diff --git a/macos/vision/tracking_request.gen.go b/macos/vision/tracking_request.gen.go index c15be233..7d62affa 100644 --- a/macos/vision/tracking_request.gen.go +++ b/macos/vision/tracking_request.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package vision @@ -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] @@ -44,10 +44,6 @@ func (tc _TrackingRequestClass) Alloc() TrackingRequest { return rv } -func TrackingRequest_Alloc() TrackingRequest { - return TrackingRequestClass.Alloc() -} - func (tc _TrackingRequestClass) New() TrackingRequest { rv := objc.Call[TrackingRequest](tc, objc.Sel("new")) rv.Autorelease() @@ -77,6 +73,21 @@ 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 @@ -106,18 +117,3 @@ func (t_ TrackingRequest) InputObservation() DetectedObjectObservation { func (t_ TrackingRequest) SetInputObservation(value IDetectedObjectObservation) { objc.Call[objc.Void](t_, objc.Sel("setInputObservation:"), objc.Ptr(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 8eadab72..f339c9b8 100644 --- a/macos/vision/trajectory_observation.gen.go +++ b/macos/vision/trajectory_observation.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package vision @@ -18,10 +18,10 @@ type _TrajectoryObservationClass struct { // An interface definition for the [TrajectoryObservation] class. type ITrajectoryObservation interface { IObservation - MovingAverageRadius() float64 + EquationCoefficients() objc.Object DetectedPoints() []Point + MovingAverageRadius() float64 ProjectedPoints() []Point - EquationCoefficients() objc.Object } // An observation that describes a detected trajectory. [Full Topic] @@ -42,10 +42,6 @@ func (tc _TrajectoryObservationClass) Alloc() TrajectoryObservation { return rv } -func TrajectoryObservation_Alloc() TrajectoryObservation { - return TrajectoryObservationClass.Alloc() -} - func (tc _TrajectoryObservationClass) New() TrajectoryObservation { rv := objc.Call[TrajectoryObservation](tc, objc.Sel("new")) rv.Autorelease() @@ -61,11 +57,11 @@ func (t_ TrajectoryObservation) Init() TrajectoryObservation { return rv } -// The moving average radius of the object the request is tracking. [Full Topic] +// The coefficients of the parabolic equation. [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")) +// [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 } @@ -77,18 +73,18 @@ func (t_ TrajectoryObservation) DetectedPoints() []Point { return rv } -// The centroids of the calculated trajectory from the detected points. [Full Topic] +// The moving average radius of the object the request is tracking. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/vision/vntrajectoryobservation/3564826-projectedpoints?language=objc -func (t_ TrajectoryObservation) ProjectedPoints() []Point { - rv := objc.Call[[]Point](t_, objc.Sel("projectedPoints")) +// [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 coefficients of the parabolic equation. [Full Topic] +// The centroids of the calculated trajectory from the detected points. [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/3564826-projectedpoints?language=objc +func (t_ TrajectoryObservation) ProjectedPoints() []Point { + rv := objc.Call[[]Point](t_, objc.Sel("projectedPoints")) return rv } diff --git a/macos/vision/translational_image_registration_request.gen.go b/macos/vision/translational_image_registration_request.gen.go index 7629d55c..be38404c 100644 --- a/macos/vision/translational_image_registration_request.gen.go +++ b/macos/vision/translational_image_registration_request.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package vision @@ -10,6 +10,7 @@ import ( "github.com/progrium/macdriver/macos/coremedia" "github.com/progrium/macdriver/macos/corevideo" "github.com/progrium/macdriver/macos/foundation" + "github.com/progrium/macdriver/macos/imageio" "github.com/progrium/macdriver/objc" ) @@ -43,10 +44,6 @@ func (tc _TranslationalImageRegistrationRequestClass) Alloc() TranslationalImage return rv } -func TranslationalImageRegistrationRequest_Alloc() TranslationalImageRegistrationRequest { - return TranslationalImageRegistrationRequestClass.Alloc() -} - func (tc _TranslationalImageRegistrationRequestClass) New() TranslationalImageRegistrationRequest { rv := objc.Call[TranslationalImageRegistrationRequest](tc, objc.Sel("new")) rv.Autorelease() @@ -62,16 +59,226 @@ func (t_ TranslationalImageRegistrationRequest) Init() TranslationalImageRegistr return rv } -func (t_ TranslationalImageRegistrationRequest) InitWithTargetedImageURLOptions(imageURL foundation.IURL, options map[ImageOption]objc.IObject) TranslationalImageRegistrationRequest { - rv := objc.Call[TranslationalImageRegistrationRequest](t_, objc.Sel("initWithTargetedImageURL:options:"), objc.Ptr(imageURL), options) +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 an image at the specified URL. [Full Topic] +// Creates a new request targeting a Core Graphics image of known orientation. [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/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:"), objc.Ptr(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:"), objc.Ptr(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:"), objc.Ptr(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:"), objc.Ptr(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:"), objc.Ptr(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) + return rv +} + +// Creates a new request targeting a raw data image of known orientation. [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) instance.Autorelease() return instance } @@ -90,6 +297,34 @@ 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:"), objc.Ptr(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:"), objc.Ptr(ciImage), options) return rv @@ -104,44 +339,58 @@ func NewTranslationalImageRegistrationRequestWithTargetedCIImageOptions(ciImage 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) +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 an image in a CVPixelBufferRef. [Full Topic] +// 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/2923445-initwithtargetedcvpixelbuffer?language=objc -func NewTranslationalImageRegistrationRequestWithTargetedCVPixelBufferOptions(pixelBuffer corevideo.PixelBufferRef, options map[ImageOption]objc.IObject) TranslationalImageRegistrationRequest { - instance := TranslationalImageRegistrationRequestClass.Alloc().InitWithTargetedCVPixelBufferOptions(pixelBuffer, options) +// [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) InitWithTargetedCGImageOptions(cgImage coregraphics.ImageRef, options map[ImageOption]objc.IObject) TranslationalImageRegistrationRequest { - rv := objc.Call[TranslationalImageRegistrationRequest](t_, objc.Sel("initWithTargetedCGImage:options:"), cgImage, options) +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) return rv } -// Creates a new request targeting a Core Graphics image. [Full Topic] +// Creates a new request targeting an image in a CVPixelBufferRef of known orientation. [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) +// [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) 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) +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) return rv } -// Creates a new request targeting an image as raw data. [Full Topic] +// Creates a new request targeting an image in a CVPixelBufferRef of known orientation, executing the completion handler when done. [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) +// [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) + 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:"), objc.Ptr(imageURL), options) + return rv +} + +// Creates a new request targeting an image at the specified URL. [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) instance.Autorelease() return instance } diff --git a/macos/vision/vector.gen.go b/macos/vision/vector.gen.go index 03024c40..5e07f57f 100644 --- a/macos/vision/vector.gen.go +++ b/macos/vision/vector.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package vision @@ -18,12 +18,12 @@ type _VectorClass struct { // An interface definition for the [Vector] class. type IVector interface { objc.IObject + Length() float64 X() float64 - Y() float64 R() float64 - Length() float64 - Theta() float64 + Y() float64 SquaredLength() float64 + Theta() float64 } // An immutable, two-dimensional vector represented by its x-axis and y-axis projections. [Full Topic] @@ -86,10 +86,6 @@ func (vc _VectorClass) Alloc() Vector { return rv } -func Vector_Alloc() Vector { - return VectorClass.Alloc() -} - func (vc _VectorClass) New() Vector { rv := objc.Call[Vector](vc, objc.Sel("new")) rv.Autorelease() @@ -105,6 +101,21 @@ 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:"), objc.Ptr(v1), objc.Ptr(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 @@ -120,6 +131,21 @@ 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:"), objc.Ptr(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 @@ -150,36 +176,29 @@ func Vector_UnitVectorForVector(vector IVector) Vector { return VectorClass.UnitVectorForVector(vector) } -// Creates a new vector by adding the specified vectors. [Full Topic] +// A vector object with zero length. [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:"), objc.Ptr(v1), objc.Ptr(v2)) +// [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 } -// Creates a new vector by adding the specified vectors. [Full Topic] +// A vector object with zero length. [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) +// [Full Topic]: https://developer.apple.com/documentation/vision/vnvector/3548352-zerovector?language=objc +func Vector_ZeroVector() Vector { + return VectorClass.ZeroVector() } -// Creates a new vector by multiplying the specified vector’s x-axis and y-axis projections by the scalar value. [Full Topic] +// The length, or absolute value, of the vector. [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:"), objc.Ptr(vector), scalar) +// [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 } -// 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 @@ -188,29 +207,6 @@ func (v_ Vector) X() float64 { 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 -func (v_ Vector) Y() float64 { - rv := objc.Call[float64](v_, objc.Sel("y")) - return rv -} - -// A vector object with zero length. [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")) - 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 @@ -219,19 +215,11 @@ func (v_ Vector) R() float64 { 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 -} - -// The angle between the vector direction and the positive direction of the x-axis. [Full Topic] +// A signed projection that indicates the vector’s direction on the y-axis. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/vision/vnvector/3548345-theta?language=objc -func (v_ Vector) Theta() float64 { - rv := objc.Call[float64](v_, objc.Sel("theta")) +// [Full Topic]: https://developer.apple.com/documentation/vision/vnvector/3548351-y?language=objc +func (v_ Vector) Y() float64 { + rv := objc.Call[float64](v_, objc.Sel("y")) return rv } @@ -242,3 +230,11 @@ func (v_ Vector) SquaredLength() float64 { rv := objc.Call[float64](v_, objc.Sel("squaredLength")) return rv } + +// The angle between the vector direction and the positive direction of the x-axis. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/vision/vnvector/3548345-theta?language=objc +func (v_ Vector) Theta() float64 { + rv := objc.Call[float64](v_, objc.Sel("theta")) + return rv +} diff --git a/macos/vision/video_processor.gen.go b/macos/vision/video_processor.gen.go index 4cd841e6..cd8dec3b 100644 --- a/macos/vision/video_processor.gen.go +++ b/macos/vision/video_processor.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package vision @@ -20,9 +20,9 @@ type _VideoProcessorClass struct { // An interface definition for the [VideoProcessor] class. type IVideoProcessor interface { objc.IObject + RemoveRequestError(request IRequest, error foundation.IError) bool AddRequestProcessingOptionsError(request IRequest, processingOptions IVideoProcessorRequestProcessingOptions, error foundation.IError) bool AnalyzeTimeRangeError(timeRange coremedia.TimeRange, error foundation.IError) bool - RemoveRequestError(request IRequest, error foundation.IError) bool Cancel() } @@ -58,10 +58,6 @@ func (vc _VideoProcessorClass) Alloc() VideoProcessor { return rv } -func VideoProcessor_Alloc() VideoProcessor { - return VideoProcessorClass.Alloc() -} - func (vc _VideoProcessorClass) New() VideoProcessor { rv := objc.Call[VideoProcessor](vc, objc.Sel("new")) rv.Autorelease() @@ -77,6 +73,14 @@ 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 foundation.IError) bool { + rv := objc.Call[bool](v_, objc.Sel("removeRequest:error:"), objc.Ptr(request), objc.Ptr(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 @@ -93,14 +97,6 @@ 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 foundation.IError) bool { - rv := objc.Call[bool](v_, objc.Sel("removeRequest:error:"), objc.Ptr(request), objc.Ptr(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/vision/video_processor_cadence.gen.go b/macos/vision/video_processor_cadence.gen.go index eec7d5b4..cea3ce6f 100644 --- a/macos/vision/video_processor_cadence.gen.go +++ b/macos/vision/video_processor_cadence.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package vision @@ -38,10 +38,6 @@ func (vc _VideoProcessorCadenceClass) Alloc() VideoProcessorCadence { return rv } -func VideoProcessorCadence_Alloc() VideoProcessorCadence { - return VideoProcessorCadenceClass.Alloc() -} - func (vc _VideoProcessorCadenceClass) New() VideoProcessorCadence { rv := objc.Call[VideoProcessorCadence](vc, objc.Sel("new")) rv.Autorelease() diff --git a/macos/vision/video_processor_frame_rate_cadence.gen.go b/macos/vision/video_processor_frame_rate_cadence.gen.go index 9659382b..9facb410 100644 --- a/macos/vision/video_processor_frame_rate_cadence.gen.go +++ b/macos/vision/video_processor_frame_rate_cadence.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package vision @@ -53,10 +53,6 @@ func (vc _VideoProcessorFrameRateCadenceClass) Alloc() VideoProcessorFrameRateCa return rv } -func VideoProcessorFrameRateCadence_Alloc() VideoProcessorFrameRateCadence { - return VideoProcessorFrameRateCadenceClass.Alloc() -} - func (vc _VideoProcessorFrameRateCadenceClass) New() VideoProcessorFrameRateCadence { rv := objc.Call[VideoProcessorFrameRateCadence](vc, objc.Sel("new")) rv.Autorelease() diff --git a/macos/vision/video_processor_request_processing_options.gen.go b/macos/vision/video_processor_request_processing_options.gen.go index ed254f14..8d889909 100644 --- a/macos/vision/video_processor_request_processing_options.gen.go +++ b/macos/vision/video_processor_request_processing_options.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package vision @@ -40,10 +40,6 @@ func (vc _VideoProcessorRequestProcessingOptionsClass) Alloc() VideoProcessorReq return rv } -func VideoProcessorRequestProcessingOptions_Alloc() VideoProcessorRequestProcessingOptions { - return VideoProcessorRequestProcessingOptionsClass.Alloc() -} - func (vc _VideoProcessorRequestProcessingOptionsClass) New() VideoProcessorRequestProcessingOptions { rv := objc.Call[VideoProcessorRequestProcessingOptions](vc, objc.Sel("new")) rv.Autorelease() diff --git a/macos/vision/video_processor_time_interval_cadence.gen.go b/macos/vision/video_processor_time_interval_cadence.gen.go index 96c66fc5..e8ff315a 100644 --- a/macos/vision/video_processor_time_interval_cadence.gen.go +++ b/macos/vision/video_processor_time_interval_cadence.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package vision @@ -54,10 +54,6 @@ func (vc _VideoProcessorTimeIntervalCadenceClass) Alloc() VideoProcessorTimeInte return rv } -func VideoProcessorTimeIntervalCadence_Alloc() VideoProcessorTimeIntervalCadence { - return VideoProcessorTimeIntervalCadenceClass.Alloc() -} - func (vc _VideoProcessorTimeIntervalCadenceClass) New() VideoProcessorTimeIntervalCadence { rv := objc.Call[VideoProcessorTimeIntervalCadence](vc, objc.Sel("new")) rv.Autorelease() diff --git a/macos/webkit/aliastypes.gen.go b/macos/webkit/aliastypes.gen.go index c3099bb3..6935504c 100644 --- a/macos/webkit/aliastypes.gen.go +++ b/macos/webkit/aliastypes.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package webkit diff --git a/macos/webkit/back_forward_list.gen.go b/macos/webkit/back_forward_list.gen.go index 3c14a77b..89cab8d4 100644 --- a/macos/webkit/back_forward_list.gen.go +++ b/macos/webkit/back_forward_list.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package webkit @@ -19,11 +19,11 @@ type _BackForwardListClass struct { type IBackForwardList interface { objc.IObject ItemAtIndex(index int) BackForwardListItem - BackList() []BackForwardListItem - ForwardItem() BackForwardListItem CurrentItem() BackForwardListItem - BackItem() BackForwardListItem ForwardList() []BackForwardListItem + BackList() []BackForwardListItem + BackItem() BackForwardListItem + ForwardItem() BackForwardListItem } // An object that manages the list of previously loaded webpages, which the web view uses for forward and backward navigation. [Full Topic] @@ -44,10 +44,6 @@ func (bc _BackForwardListClass) Alloc() BackForwardList { return rv } -func BackForwardList_Alloc() BackForwardList { - return BackForwardListClass.Alloc() -} - func (bc _BackForwardListClass) New() BackForwardList { rv := objc.Call[BackForwardList](bc, objc.Sel("new")) rv.Autorelease() @@ -71,27 +67,27 @@ func (b_ BackForwardList) ItemAtIndex(index int) BackForwardListItem { 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 } -// 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 } -// 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 } @@ -103,10 +99,10 @@ func (b_ BackForwardList) BackItem() BackForwardListItem { 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 } diff --git a/macos/webkit/back_forward_list_item.gen.go b/macos/webkit/back_forward_list_item.gen.go index 25c84334..92586df3 100644 --- a/macos/webkit/back_forward_list_item.gen.go +++ b/macos/webkit/back_forward_list_item.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package webkit @@ -19,9 +19,9 @@ type _BackForwardListItemClass struct { // An interface definition for the [BackForwardListItem] class. type IBackForwardListItem interface { objc.IObject - URL() foundation.URL - Title() string InitialURL() foundation.URL + Title() string + URL() foundation.URL } // A representation of a webpage that the web view previously visited. [Full Topic] @@ -42,10 +42,6 @@ func (bc _BackForwardListItemClass) Alloc() BackForwardListItem { return rv } -func BackForwardListItem_Alloc() BackForwardListItem { - return BackForwardListItemClass.Alloc() -} - func (bc _BackForwardListItemClass) New() BackForwardListItem { rv := objc.Call[BackForwardListItem](bc, objc.Sel("new")) rv.Autorelease() @@ -61,11 +57,11 @@ func (b_ BackForwardListItem) Init() BackForwardListItem { 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 } @@ -77,10 +73,10 @@ func (b_ BackForwardListItem) Title() string { 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 } diff --git a/macos/webkit/content_rule_list.gen.go b/macos/webkit/content_rule_list.gen.go index c431e4c2..1398c182 100644 --- a/macos/webkit/content_rule_list.gen.go +++ b/macos/webkit/content_rule_list.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package webkit @@ -39,10 +39,6 @@ func (cc _ContentRuleListClass) Alloc() ContentRuleList { return rv } -func ContentRuleList_Alloc() ContentRuleList { - return ContentRuleListClass.Alloc() -} - func (cc _ContentRuleListClass) New() ContentRuleList { rv := objc.Call[ContentRuleList](cc, objc.Sel("new")) rv.Autorelease() diff --git a/macos/webkit/content_rule_list_store.gen.go b/macos/webkit/content_rule_list_store.gen.go index 60595aa3..6509cc0d 100644 --- a/macos/webkit/content_rule_list_store.gen.go +++ b/macos/webkit/content_rule_list_store.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package webkit @@ -19,10 +19,10 @@ type _ContentRuleListStoreClass struct { // An interface definition for the [ContentRuleListStore] class. type IContentRuleListStore interface { objc.IObject - 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)) + LookUpContentRuleListForIdentifierCompletionHandler(identifier string, completionHandler func(arg0 ContentRuleList, arg1 foundation.Error)) + RemoveContentRuleListForIdentifierCompletionHandler(identifier string, completionHandler func(arg0 foundation.Error)) } // An object that contains the rules for how to load and filter content in the web view. [Full Topic] @@ -67,10 +67,6 @@ func (cc _ContentRuleListStoreClass) Alloc() ContentRuleListStore { return rv } -func ContentRuleListStore_Alloc() ContentRuleListStore { - return ContentRuleListStoreClass.Alloc() -} - func (cc _ContentRuleListStoreClass) New() ContentRuleListStore { rv := objc.Call[ContentRuleListStore](cc, objc.Sel("new")) rv.Autorelease() @@ -86,13 +82,6 @@ func (c_ ContentRuleListStore) Init() ContentRuleListStore { return rv } -// 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 -func (c_ ContentRuleListStore) LookUpContentRuleListForIdentifierCompletionHandler(identifier string, completionHandler func(arg0 ContentRuleList, arg1 foundation.Error)) { - 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 @@ -100,16 +89,23 @@ func (c_ ContentRuleListStore) GetAvailableContentRuleListIdentifiers(completion 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) } + +// 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 +func (c_ ContentRuleListStore) LookUpContentRuleListForIdentifierCompletionHandler(identifier string, completionHandler func(arg0 ContentRuleList, arg1 foundation.Error)) { + objc.Call[objc.Void](c_, objc.Sel("lookUpContentRuleListForIdentifier:completionHandler:"), identifier, 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) +} diff --git a/macos/webkit/content_world.gen.go b/macos/webkit/content_world.gen.go index 6145159b..17171351 100644 --- a/macos/webkit/content_world.gen.go +++ b/macos/webkit/content_world.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package webkit @@ -39,10 +39,6 @@ func (cc _ContentWorldClass) Alloc() ContentWorld { return rv } -func ContentWorld_Alloc() ContentWorld { - return ContentWorldClass.Alloc() -} - func (cc _ContentWorldClass) New() ContentWorld { rv := objc.Call[ContentWorld](cc, objc.Sel("new")) rv.Autorelease() @@ -73,6 +69,14 @@ 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 @@ -102,11 +106,3 @@ 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/doc.gen.go b/macos/webkit/doc.gen.go index 3b7de99b..873bc64a 100644 --- a/macos/webkit/doc.gen.go +++ b/macos/webkit/doc.gen.go @@ -1,8 +1,8 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. // Integrate web content seamlessly into your app, and customize content interactions to meet your app’s needs. // -// [Full Documentation] +// [Apple Documentation] // -// [Full Documentation]: https://developer.apple.com/documentation/webkit?language=objc +// [Apple Documentation]: https://developer.apple.com/documentation/webkit?language=objc package webkit diff --git a/macos/webkit/dom_abstract_view.gen.go b/macos/webkit/dom_abstract_view.gen.go index 0f5c6618..bd0dea06 100644 --- a/macos/webkit/dom_abstract_view.gen.go +++ b/macos/webkit/dom_abstract_view.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package webkit @@ -38,10 +38,6 @@ func (dc _DOMAbstractViewClass) Alloc() DOMAbstractView { return rv } -func DOMAbstractView_Alloc() DOMAbstractView { - return DOMAbstractViewClass.Alloc() -} - func (dc _DOMAbstractViewClass) New() DOMAbstractView { rv := objc.Call[DOMAbstractView](dc, objc.Sel("new")) rv.Autorelease() diff --git a/macos/webkit/dom_attr.gen.go b/macos/webkit/dom_attr.gen.go index e3242699..f9c66393 100644 --- a/macos/webkit/dom_attr.gen.go +++ b/macos/webkit/dom_attr.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package webkit @@ -38,10 +38,6 @@ func (dc _DOMAttrClass) Alloc() DOMAttr { return rv } -func DOMAttr_Alloc() DOMAttr { - return DOMAttrClass.Alloc() -} - func (dc _DOMAttrClass) New() DOMAttr { rv := objc.Call[DOMAttr](dc, objc.Sel("new")) rv.Autorelease() diff --git a/macos/webkit/dom_blob.gen.go b/macos/webkit/dom_blob.gen.go index 53a574a2..8af55e54 100644 --- a/macos/webkit/dom_blob.gen.go +++ b/macos/webkit/dom_blob.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package webkit @@ -38,10 +38,6 @@ func (dc _DOMBlobClass) Alloc() DOMBlob { return rv } -func DOMBlob_Alloc() DOMBlob { - return DOMBlobClass.Alloc() -} - func (dc _DOMBlobClass) New() DOMBlob { rv := objc.Call[DOMBlob](dc, objc.Sel("new")) rv.Autorelease() diff --git a/macos/webkit/dom_character_data.gen.go b/macos/webkit/dom_character_data.gen.go index d6b73e00..a0b625da 100644 --- a/macos/webkit/dom_character_data.gen.go +++ b/macos/webkit/dom_character_data.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package webkit @@ -38,10 +38,6 @@ func (dc _DOMCharacterDataClass) Alloc() DOMCharacterData { return rv } -func DOMCharacterData_Alloc() DOMCharacterData { - return DOMCharacterDataClass.Alloc() -} - func (dc _DOMCharacterDataClass) New() DOMCharacterData { rv := objc.Call[DOMCharacterData](dc, objc.Sel("new")) rv.Autorelease() diff --git a/macos/webkit/dom_comment.gen.go b/macos/webkit/dom_comment.gen.go index e4844493..6ff773ba 100644 --- a/macos/webkit/dom_comment.gen.go +++ b/macos/webkit/dom_comment.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package webkit @@ -38,10 +38,6 @@ func (dc _DOMCommentClass) Alloc() DOMComment { return rv } -func DOMComment_Alloc() DOMComment { - return DOMCommentClass.Alloc() -} - func (dc _DOMCommentClass) New() DOMComment { rv := objc.Call[DOMComment](dc, objc.Sel("new")) rv.Autorelease() diff --git a/macos/webkit/dom_counter.gen.go b/macos/webkit/dom_counter.gen.go index 85ddfab7..daee6c6a 100644 --- a/macos/webkit/dom_counter.gen.go +++ b/macos/webkit/dom_counter.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package webkit @@ -38,10 +38,6 @@ func (dc _DOMCounterClass) Alloc() DOMCounter { return rv } -func DOMCounter_Alloc() DOMCounter { - return DOMCounterClass.Alloc() -} - func (dc _DOMCounterClass) New() DOMCounter { rv := objc.Call[DOMCounter](dc, objc.Sel("new")) rv.Autorelease() diff --git a/macos/webkit/dom_document.gen.go b/macos/webkit/dom_document.gen.go index 299d408e..9dd2a954 100644 --- a/macos/webkit/dom_document.gen.go +++ b/macos/webkit/dom_document.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package webkit @@ -38,10 +38,6 @@ func (dc _DOMDocumentClass) Alloc() DOMDocument { return rv } -func DOMDocument_Alloc() DOMDocument { - return DOMDocumentClass.Alloc() -} - func (dc _DOMDocumentClass) New() DOMDocument { rv := objc.Call[DOMDocument](dc, objc.Sel("new")) rv.Autorelease() diff --git a/macos/webkit/dom_document_fragment.gen.go b/macos/webkit/dom_document_fragment.gen.go index 014f9c32..c12ecfc9 100644 --- a/macos/webkit/dom_document_fragment.gen.go +++ b/macos/webkit/dom_document_fragment.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package webkit @@ -38,10 +38,6 @@ func (dc _DOMDocumentFragmentClass) Alloc() DOMDocumentFragment { return rv } -func DOMDocumentFragment_Alloc() DOMDocumentFragment { - return DOMDocumentFragmentClass.Alloc() -} - func (dc _DOMDocumentFragmentClass) New() DOMDocumentFragment { rv := objc.Call[DOMDocumentFragment](dc, objc.Sel("new")) rv.Autorelease() diff --git a/macos/webkit/dom_document_type.gen.go b/macos/webkit/dom_document_type.gen.go index 1eaa2e70..243a4806 100644 --- a/macos/webkit/dom_document_type.gen.go +++ b/macos/webkit/dom_document_type.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package webkit @@ -38,10 +38,6 @@ func (dc _DOMDocumentTypeClass) Alloc() DOMDocumentType { return rv } -func DOMDocumentType_Alloc() DOMDocumentType { - return DOMDocumentTypeClass.Alloc() -} - func (dc _DOMDocumentTypeClass) New() DOMDocumentType { rv := objc.Call[DOMDocumentType](dc, objc.Sel("new")) rv.Autorelease() diff --git a/macos/webkit/dom_element.gen.go b/macos/webkit/dom_element.gen.go index e95da5ff..b39ba7e2 100644 --- a/macos/webkit/dom_element.gen.go +++ b/macos/webkit/dom_element.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package webkit @@ -40,10 +40,6 @@ func (dc _DOMElementClass) Alloc() DOMElement { return rv } -func DOMElement_Alloc() DOMElement { - return DOMElementClass.Alloc() -} - func (dc _DOMElementClass) New() DOMElement { rv := objc.Call[DOMElement](dc, objc.Sel("new")) rv.Autorelease() diff --git a/macos/webkit/dom_entity.gen.go b/macos/webkit/dom_entity.gen.go index e9e91eaf..3d119d61 100644 --- a/macos/webkit/dom_entity.gen.go +++ b/macos/webkit/dom_entity.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package webkit @@ -38,10 +38,6 @@ func (dc _DOMEntityClass) Alloc() DOMEntity { return rv } -func DOMEntity_Alloc() DOMEntity { - return DOMEntityClass.Alloc() -} - func (dc _DOMEntityClass) New() DOMEntity { rv := objc.Call[DOMEntity](dc, objc.Sel("new")) rv.Autorelease() diff --git a/macos/webkit/dom_entity_reference.gen.go b/macos/webkit/dom_entity_reference.gen.go index 3c71348e..75ef5eb8 100644 --- a/macos/webkit/dom_entity_reference.gen.go +++ b/macos/webkit/dom_entity_reference.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package webkit @@ -38,10 +38,6 @@ func (dc _DOMEntityReferenceClass) Alloc() DOMEntityReference { return rv } -func DOMEntityReference_Alloc() DOMEntityReference { - return DOMEntityReferenceClass.Alloc() -} - func (dc _DOMEntityReferenceClass) New() DOMEntityReference { rv := objc.Call[DOMEntityReference](dc, objc.Sel("new")) rv.Autorelease() diff --git a/macos/webkit/dom_event.gen.go b/macos/webkit/dom_event.gen.go index a714ae06..17852557 100644 --- a/macos/webkit/dom_event.gen.go +++ b/macos/webkit/dom_event.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package webkit @@ -38,10 +38,6 @@ func (dc _DOMEventClass) Alloc() DOMEvent { return rv } -func DOMEvent_Alloc() DOMEvent { - return DOMEventClass.Alloc() -} - func (dc _DOMEventClass) New() DOMEvent { rv := objc.Call[DOMEvent](dc, objc.Sel("new")) rv.Autorelease() diff --git a/macos/webkit/dom_event_listener.gen.go b/macos/webkit/dom_event_listener.gen.go deleted file mode 100644 index 3fc5b348..00000000 --- a/macos/webkit/dom_event_listener.gen.go +++ /dev/null @@ -1,18 +0,0 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY - -package webkit - -import ( - "github.com/progrium/macdriver/objc" -) - -// [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/webkit/domeventlistener?language=objc -type PDOMEventListener interface { -} - -// A concrete type wrapper for the [PDOMEventListener] protocol. -type DOMEventListenerWrapper struct { - objc.Object -} diff --git a/macos/webkit/dom_event_listener_protocol.gen.go b/macos/webkit/dom_event_listener_protocol.gen.go new file mode 100644 index 00000000..8cddc8da --- /dev/null +++ b/macos/webkit/dom_event_listener_protocol.gen.go @@ -0,0 +1,21 @@ +// Code generated by DarwinKit. DO NOT EDIT. + +package webkit + +import ( + "github.com/progrium/macdriver/objc" +) + +// [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/webkit/domeventlistener?language=objc +type PDOMEventListener interface { +} + +// ensure impl type implements protocol interface +var _ PDOMEventListener = (*DOMEventListenerObject)(nil) + +// A concrete type for the [PDOMEventListener] protocol. +type DOMEventListenerObject struct { + objc.Object +} diff --git a/macos/webkit/dom_event_target.gen.go b/macos/webkit/dom_event_target.gen.go deleted file mode 100644 index 1acfc071..00000000 --- a/macos/webkit/dom_event_target.gen.go +++ /dev/null @@ -1,18 +0,0 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY - -package webkit - -import ( - "github.com/progrium/macdriver/objc" -) - -// [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/webkit/domeventtarget?language=objc -type PDOMEventTarget interface { -} - -// A concrete type wrapper for the [PDOMEventTarget] protocol. -type DOMEventTargetWrapper struct { - objc.Object -} diff --git a/macos/webkit/dom_event_target_protocol.gen.go b/macos/webkit/dom_event_target_protocol.gen.go new file mode 100644 index 00000000..05402ee6 --- /dev/null +++ b/macos/webkit/dom_event_target_protocol.gen.go @@ -0,0 +1,21 @@ +// Code generated by DarwinKit. DO NOT EDIT. + +package webkit + +import ( + "github.com/progrium/macdriver/objc" +) + +// [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/webkit/domeventtarget?language=objc +type PDOMEventTarget interface { +} + +// ensure impl type implements protocol interface +var _ PDOMEventTarget = (*DOMEventTargetObject)(nil) + +// A concrete type for the [PDOMEventTarget] protocol. +type DOMEventTargetObject struct { + objc.Object +} diff --git a/macos/webkit/dom_file.gen.go b/macos/webkit/dom_file.gen.go index 8e503947..59dbffaa 100644 --- a/macos/webkit/dom_file.gen.go +++ b/macos/webkit/dom_file.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package webkit @@ -38,10 +38,6 @@ func (dc _DOMFileClass) Alloc() DOMFile { return rv } -func DOMFile_Alloc() DOMFile { - return DOMFileClass.Alloc() -} - func (dc _DOMFileClass) New() DOMFile { rv := objc.Call[DOMFile](dc, objc.Sel("new")) rv.Autorelease() diff --git a/macos/webkit/dom_file_list.gen.go b/macos/webkit/dom_file_list.gen.go index 4b64d7d0..7ca0653d 100644 --- a/macos/webkit/dom_file_list.gen.go +++ b/macos/webkit/dom_file_list.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package webkit @@ -38,10 +38,6 @@ func (dc _DOMFileListClass) Alloc() DOMFileList { return rv } -func DOMFileList_Alloc() DOMFileList { - return DOMFileListClass.Alloc() -} - func (dc _DOMFileListClass) New() DOMFileList { rv := objc.Call[DOMFileList](dc, objc.Sel("new")) rv.Autorelease() diff --git a/macos/webkit/dom_implementation.gen.go b/macos/webkit/dom_implementation.gen.go index a0cb7be6..6c413403 100644 --- a/macos/webkit/dom_implementation.gen.go +++ b/macos/webkit/dom_implementation.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package webkit @@ -38,10 +38,6 @@ func (dc _DOMImplementationClass) Alloc() DOMImplementation { return rv } -func DOMImplementation_Alloc() DOMImplementation { - return DOMImplementationClass.Alloc() -} - func (dc _DOMImplementationClass) New() DOMImplementation { rv := objc.Call[DOMImplementation](dc, objc.Sel("new")) rv.Autorelease() diff --git a/macos/webkit/dom_keyboard_event.gen.go b/macos/webkit/dom_keyboard_event.gen.go index 8162cbb3..3854512a 100644 --- a/macos/webkit/dom_keyboard_event.gen.go +++ b/macos/webkit/dom_keyboard_event.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package webkit @@ -38,10 +38,6 @@ func (dc _DOMKeyboardEventClass) Alloc() DOMKeyboardEvent { return rv } -func DOMKeyboardEvent_Alloc() DOMKeyboardEvent { - return DOMKeyboardEventClass.Alloc() -} - func (dc _DOMKeyboardEventClass) New() DOMKeyboardEvent { rv := objc.Call[DOMKeyboardEvent](dc, objc.Sel("new")) rv.Autorelease() diff --git a/macos/webkit/dom_media_list.gen.go b/macos/webkit/dom_media_list.gen.go index 01ba2127..fe70578d 100644 --- a/macos/webkit/dom_media_list.gen.go +++ b/macos/webkit/dom_media_list.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package webkit @@ -38,10 +38,6 @@ func (dc _DOMMediaListClass) Alloc() DOMMediaList { return rv } -func DOMMediaList_Alloc() DOMMediaList { - return DOMMediaListClass.Alloc() -} - func (dc _DOMMediaListClass) New() DOMMediaList { rv := objc.Call[DOMMediaList](dc, objc.Sel("new")) rv.Autorelease() diff --git a/macos/webkit/dom_mouse_event.gen.go b/macos/webkit/dom_mouse_event.gen.go index 0f0bf85f..6392536d 100644 --- a/macos/webkit/dom_mouse_event.gen.go +++ b/macos/webkit/dom_mouse_event.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package webkit @@ -38,10 +38,6 @@ func (dc _DOMMouseEventClass) Alloc() DOMMouseEvent { return rv } -func DOMMouseEvent_Alloc() DOMMouseEvent { - return DOMMouseEventClass.Alloc() -} - func (dc _DOMMouseEventClass) New() DOMMouseEvent { rv := objc.Call[DOMMouseEvent](dc, objc.Sel("new")) rv.Autorelease() diff --git a/macos/webkit/dom_mutation_event.gen.go b/macos/webkit/dom_mutation_event.gen.go index ab6875db..99b91f68 100644 --- a/macos/webkit/dom_mutation_event.gen.go +++ b/macos/webkit/dom_mutation_event.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package webkit @@ -38,10 +38,6 @@ func (dc _DOMMutationEventClass) Alloc() DOMMutationEvent { return rv } -func DOMMutationEvent_Alloc() DOMMutationEvent { - return DOMMutationEventClass.Alloc() -} - func (dc _DOMMutationEventClass) New() DOMMutationEvent { rv := objc.Call[DOMMutationEvent](dc, objc.Sel("new")) rv.Autorelease() diff --git a/macos/webkit/dom_named_node_map.gen.go b/macos/webkit/dom_named_node_map.gen.go index 41ae38c1..b311a2ae 100644 --- a/macos/webkit/dom_named_node_map.gen.go +++ b/macos/webkit/dom_named_node_map.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package webkit @@ -38,10 +38,6 @@ func (dc _DOMNamedNodeMapClass) Alloc() DOMNamedNodeMap { return rv } -func DOMNamedNodeMap_Alloc() DOMNamedNodeMap { - return DOMNamedNodeMapClass.Alloc() -} - func (dc _DOMNamedNodeMapClass) New() DOMNamedNodeMap { rv := objc.Call[DOMNamedNodeMap](dc, objc.Sel("new")) rv.Autorelease() diff --git a/macos/webkit/dom_node.gen.go b/macos/webkit/dom_node.gen.go index 747d1c85..ef60e79d 100644 --- a/macos/webkit/dom_node.gen.go +++ b/macos/webkit/dom_node.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package webkit @@ -19,8 +19,8 @@ type _DOMNodeClass struct { // An interface definition for the [DOMNode] class. type IDOMNode interface { IDOMObject - LineBoxRects() []objc.Object BoundingBox() foundation.Rect + LineBoxRects() []objc.Object } // [Full Topic] @@ -41,10 +41,6 @@ func (dc _DOMNodeClass) Alloc() DOMNode { return rv } -func DOMNode_Alloc() DOMNode { - return DOMNodeClass.Alloc() -} - func (dc _DOMNodeClass) New() DOMNode { rv := objc.Call[DOMNode](dc, objc.Sel("new")) rv.Autorelease() @@ -60,14 +56,6 @@ func (d_ DOMNode) Init() DOMNode { 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 -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 @@ -75,3 +63,11 @@ 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 +func (d_ DOMNode) LineBoxRects() []objc.Object { + rv := objc.Call[[]objc.Object](d_, objc.Sel("lineBoxRects")) + return rv +} diff --git a/macos/webkit/dom_node_filter.gen.go b/macos/webkit/dom_node_filter.gen.go deleted file mode 100644 index 982f19aa..00000000 --- a/macos/webkit/dom_node_filter.gen.go +++ /dev/null @@ -1,18 +0,0 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY - -package webkit - -import ( - "github.com/progrium/macdriver/objc" -) - -// [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/webkit/domnodefilter?language=objc -type PDOMNodeFilter interface { -} - -// A concrete type wrapper for the [PDOMNodeFilter] protocol. -type DOMNodeFilterWrapper struct { - objc.Object -} diff --git a/macos/webkit/dom_node_filter_protocol.gen.go b/macos/webkit/dom_node_filter_protocol.gen.go new file mode 100644 index 00000000..f5e8e607 --- /dev/null +++ b/macos/webkit/dom_node_filter_protocol.gen.go @@ -0,0 +1,21 @@ +// Code generated by DarwinKit. DO NOT EDIT. + +package webkit + +import ( + "github.com/progrium/macdriver/objc" +) + +// [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/webkit/domnodefilter?language=objc +type PDOMNodeFilter interface { +} + +// ensure impl type implements protocol interface +var _ PDOMNodeFilter = (*DOMNodeFilterObject)(nil) + +// A concrete type for the [PDOMNodeFilter] protocol. +type DOMNodeFilterObject struct { + objc.Object +} diff --git a/macos/webkit/dom_node_iterator.gen.go b/macos/webkit/dom_node_iterator.gen.go index c91415fd..68c5953d 100644 --- a/macos/webkit/dom_node_iterator.gen.go +++ b/macos/webkit/dom_node_iterator.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package webkit @@ -38,10 +38,6 @@ func (dc _DOMNodeIteratorClass) Alloc() DOMNodeIterator { return rv } -func DOMNodeIterator_Alloc() DOMNodeIterator { - return DOMNodeIteratorClass.Alloc() -} - func (dc _DOMNodeIteratorClass) New() DOMNodeIterator { rv := objc.Call[DOMNodeIterator](dc, objc.Sel("new")) rv.Autorelease() diff --git a/macos/webkit/dom_node_list.gen.go b/macos/webkit/dom_node_list.gen.go index 5aa255d0..9b3a9581 100644 --- a/macos/webkit/dom_node_list.gen.go +++ b/macos/webkit/dom_node_list.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package webkit @@ -38,10 +38,6 @@ func (dc _DOMNodeListClass) Alloc() DOMNodeList { return rv } -func DOMNodeList_Alloc() DOMNodeList { - return DOMNodeListClass.Alloc() -} - func (dc _DOMNodeListClass) New() DOMNodeList { rv := objc.Call[DOMNodeList](dc, objc.Sel("new")) rv.Autorelease() diff --git a/macos/webkit/dom_object.gen.go b/macos/webkit/dom_object.gen.go index 92bf4673..cacf6aec 100644 --- a/macos/webkit/dom_object.gen.go +++ b/macos/webkit/dom_object.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package webkit @@ -39,10 +39,6 @@ func (dc _DOMObjectClass) Alloc() DOMObject { return rv } -func DOMObject_Alloc() DOMObject { - return DOMObjectClass.Alloc() -} - func (dc _DOMObjectClass) New() DOMObject { rv := objc.Call[DOMObject](dc, objc.Sel("new")) rv.Autorelease() diff --git a/macos/webkit/dom_overflow_event.gen.go b/macos/webkit/dom_overflow_event.gen.go index 39243721..25a6629e 100644 --- a/macos/webkit/dom_overflow_event.gen.go +++ b/macos/webkit/dom_overflow_event.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package webkit @@ -38,10 +38,6 @@ func (dc _DOMOverflowEventClass) Alloc() DOMOverflowEvent { return rv } -func DOMOverflowEvent_Alloc() DOMOverflowEvent { - return DOMOverflowEventClass.Alloc() -} - func (dc _DOMOverflowEventClass) New() DOMOverflowEvent { rv := objc.Call[DOMOverflowEvent](dc, objc.Sel("new")) rv.Autorelease() diff --git a/macos/webkit/dom_processing_instruction.gen.go b/macos/webkit/dom_processing_instruction.gen.go index e149b787..a74be71c 100644 --- a/macos/webkit/dom_processing_instruction.gen.go +++ b/macos/webkit/dom_processing_instruction.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package webkit @@ -38,10 +38,6 @@ func (dc _DOMProcessingInstructionClass) Alloc() DOMProcessingInstruction { return rv } -func DOMProcessingInstruction_Alloc() DOMProcessingInstruction { - return DOMProcessingInstructionClass.Alloc() -} - func (dc _DOMProcessingInstructionClass) New() DOMProcessingInstruction { rv := objc.Call[DOMProcessingInstruction](dc, objc.Sel("new")) rv.Autorelease() diff --git a/macos/webkit/dom_progress_event.gen.go b/macos/webkit/dom_progress_event.gen.go index 0957513d..066608a7 100644 --- a/macos/webkit/dom_progress_event.gen.go +++ b/macos/webkit/dom_progress_event.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package webkit @@ -38,10 +38,6 @@ func (dc _DOMProgressEventClass) Alloc() DOMProgressEvent { return rv } -func DOMProgressEvent_Alloc() DOMProgressEvent { - return DOMProgressEventClass.Alloc() -} - func (dc _DOMProgressEventClass) New() DOMProgressEvent { rv := objc.Call[DOMProgressEvent](dc, objc.Sel("new")) rv.Autorelease() diff --git a/macos/webkit/dom_range.gen.go b/macos/webkit/dom_range.gen.go index 88db4e16..e2403abe 100644 --- a/macos/webkit/dom_range.gen.go +++ b/macos/webkit/dom_range.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package webkit @@ -38,10 +38,6 @@ func (dc _DOMRangeClass) Alloc() DOMRange { return rv } -func DOMRange_Alloc() DOMRange { - return DOMRangeClass.Alloc() -} - func (dc _DOMRangeClass) New() DOMRange { rv := objc.Call[DOMRange](dc, objc.Sel("new")) rv.Autorelease() diff --git a/macos/webkit/dom_rect.gen.go b/macos/webkit/dom_rect.gen.go index 59a815ac..6d042abb 100644 --- a/macos/webkit/dom_rect.gen.go +++ b/macos/webkit/dom_rect.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package webkit @@ -38,10 +38,6 @@ func (dc _DOMRectClass) Alloc() DOMRect { return rv } -func DOMRect_Alloc() DOMRect { - return DOMRectClass.Alloc() -} - func (dc _DOMRectClass) New() DOMRect { rv := objc.Call[DOMRect](dc, objc.Sel("new")) rv.Autorelease() diff --git a/macos/webkit/dom_style_sheet.gen.go b/macos/webkit/dom_style_sheet.gen.go index 7d0d0341..5451ed48 100644 --- a/macos/webkit/dom_style_sheet.gen.go +++ b/macos/webkit/dom_style_sheet.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package webkit @@ -38,10 +38,6 @@ func (dc _DOMStyleSheetClass) Alloc() DOMStyleSheet { return rv } -func DOMStyleSheet_Alloc() DOMStyleSheet { - return DOMStyleSheetClass.Alloc() -} - func (dc _DOMStyleSheetClass) New() DOMStyleSheet { rv := objc.Call[DOMStyleSheet](dc, objc.Sel("new")) rv.Autorelease() diff --git a/macos/webkit/dom_style_sheet_list.gen.go b/macos/webkit/dom_style_sheet_list.gen.go index d07ae768..1b2a218d 100644 --- a/macos/webkit/dom_style_sheet_list.gen.go +++ b/macos/webkit/dom_style_sheet_list.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package webkit @@ -38,10 +38,6 @@ func (dc _DOMStyleSheetListClass) Alloc() DOMStyleSheetList { return rv } -func DOMStyleSheetList_Alloc() DOMStyleSheetList { - return DOMStyleSheetListClass.Alloc() -} - func (dc _DOMStyleSheetListClass) New() DOMStyleSheetList { rv := objc.Call[DOMStyleSheetList](dc, objc.Sel("new")) rv.Autorelease() diff --git a/macos/webkit/dom_text.gen.go b/macos/webkit/dom_text.gen.go index eccd681f..93859d13 100644 --- a/macos/webkit/dom_text.gen.go +++ b/macos/webkit/dom_text.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package webkit @@ -38,10 +38,6 @@ func (dc _DOMTextClass) Alloc() DOMText { return rv } -func DOMText_Alloc() DOMText { - return DOMTextClass.Alloc() -} - func (dc _DOMTextClass) New() DOMText { rv := objc.Call[DOMText](dc, objc.Sel("new")) rv.Autorelease() diff --git a/macos/webkit/dom_tree_walker.gen.go b/macos/webkit/dom_tree_walker.gen.go index bf2fa22b..8bb8f5e0 100644 --- a/macos/webkit/dom_tree_walker.gen.go +++ b/macos/webkit/dom_tree_walker.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package webkit @@ -38,10 +38,6 @@ func (dc _DOMTreeWalkerClass) Alloc() DOMTreeWalker { return rv } -func DOMTreeWalker_Alloc() DOMTreeWalker { - return DOMTreeWalkerClass.Alloc() -} - func (dc _DOMTreeWalkerClass) New() DOMTreeWalker { rv := objc.Call[DOMTreeWalker](dc, objc.Sel("new")) rv.Autorelease() diff --git a/macos/webkit/dom_wheel_event.gen.go b/macos/webkit/dom_wheel_event.gen.go index 6a914e30..21024d36 100644 --- a/macos/webkit/dom_wheel_event.gen.go +++ b/macos/webkit/dom_wheel_event.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package webkit @@ -38,10 +38,6 @@ func (dc _DOMWheelEventClass) Alloc() DOMWheelEvent { return rv } -func DOMWheelEvent_Alloc() DOMWheelEvent { - return DOMWheelEventClass.Alloc() -} - func (dc _DOMWheelEventClass) New() DOMWheelEvent { rv := objc.Call[DOMWheelEvent](dc, objc.Sel("new")) rv.Autorelease() diff --git a/macos/webkit/domcdata_section.gen.go b/macos/webkit/domcdata_section.gen.go index 57810c35..615040ad 100644 --- a/macos/webkit/domcdata_section.gen.go +++ b/macos/webkit/domcdata_section.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package webkit @@ -38,10 +38,6 @@ func (dc _DOMCDATASectionClass) Alloc() DOMCDATASection { return rv } -func DOMCDATASection_Alloc() DOMCDATASection { - return DOMCDATASectionClass.Alloc() -} - func (dc _DOMCDATASectionClass) New() DOMCDATASection { rv := objc.Call[DOMCDATASection](dc, objc.Sel("new")) rv.Autorelease() diff --git a/macos/webkit/domcss_charset_rule.gen.go b/macos/webkit/domcss_charset_rule.gen.go index a0aac35d..1cfec508 100644 --- a/macos/webkit/domcss_charset_rule.gen.go +++ b/macos/webkit/domcss_charset_rule.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package webkit @@ -38,10 +38,6 @@ func (dc _DOMCSSCharsetRuleClass) Alloc() DOMCSSCharsetRule { return rv } -func DOMCSSCharsetRule_Alloc() DOMCSSCharsetRule { - return DOMCSSCharsetRuleClass.Alloc() -} - func (dc _DOMCSSCharsetRuleClass) New() DOMCSSCharsetRule { rv := objc.Call[DOMCSSCharsetRule](dc, objc.Sel("new")) rv.Autorelease() diff --git a/macos/webkit/domcss_font_face_rule.gen.go b/macos/webkit/domcss_font_face_rule.gen.go index 100a9e67..283142e4 100644 --- a/macos/webkit/domcss_font_face_rule.gen.go +++ b/macos/webkit/domcss_font_face_rule.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package webkit @@ -38,10 +38,6 @@ func (dc _DOMCSSFontFaceRuleClass) Alloc() DOMCSSFontFaceRule { return rv } -func DOMCSSFontFaceRule_Alloc() DOMCSSFontFaceRule { - return DOMCSSFontFaceRuleClass.Alloc() -} - func (dc _DOMCSSFontFaceRuleClass) New() DOMCSSFontFaceRule { rv := objc.Call[DOMCSSFontFaceRule](dc, objc.Sel("new")) rv.Autorelease() diff --git a/macos/webkit/domcss_import_rule.gen.go b/macos/webkit/domcss_import_rule.gen.go index 39b06b42..bec31be5 100644 --- a/macos/webkit/domcss_import_rule.gen.go +++ b/macos/webkit/domcss_import_rule.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package webkit @@ -38,10 +38,6 @@ func (dc _DOMCSSImportRuleClass) Alloc() DOMCSSImportRule { return rv } -func DOMCSSImportRule_Alloc() DOMCSSImportRule { - return DOMCSSImportRuleClass.Alloc() -} - func (dc _DOMCSSImportRuleClass) New() DOMCSSImportRule { rv := objc.Call[DOMCSSImportRule](dc, objc.Sel("new")) rv.Autorelease() diff --git a/macos/webkit/domcss_media_rule.gen.go b/macos/webkit/domcss_media_rule.gen.go index 5b030cb6..851577e2 100644 --- a/macos/webkit/domcss_media_rule.gen.go +++ b/macos/webkit/domcss_media_rule.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package webkit @@ -38,10 +38,6 @@ func (dc _DOMCSSMediaRuleClass) Alloc() DOMCSSMediaRule { return rv } -func DOMCSSMediaRule_Alloc() DOMCSSMediaRule { - return DOMCSSMediaRuleClass.Alloc() -} - func (dc _DOMCSSMediaRuleClass) New() DOMCSSMediaRule { rv := objc.Call[DOMCSSMediaRule](dc, objc.Sel("new")) rv.Autorelease() diff --git a/macos/webkit/domcss_page_rule.gen.go b/macos/webkit/domcss_page_rule.gen.go index a1b3afea..5ef981ef 100644 --- a/macos/webkit/domcss_page_rule.gen.go +++ b/macos/webkit/domcss_page_rule.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package webkit @@ -38,10 +38,6 @@ func (dc _DOMCSSPageRuleClass) Alloc() DOMCSSPageRule { return rv } -func DOMCSSPageRule_Alloc() DOMCSSPageRule { - return DOMCSSPageRuleClass.Alloc() -} - func (dc _DOMCSSPageRuleClass) New() DOMCSSPageRule { rv := objc.Call[DOMCSSPageRule](dc, objc.Sel("new")) rv.Autorelease() diff --git a/macos/webkit/domcss_primitive_value.gen.go b/macos/webkit/domcss_primitive_value.gen.go index 6eec72bb..d9147329 100644 --- a/macos/webkit/domcss_primitive_value.gen.go +++ b/macos/webkit/domcss_primitive_value.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package webkit @@ -38,10 +38,6 @@ func (dc _DOMCSSPrimitiveValueClass) Alloc() DOMCSSPrimitiveValue { return rv } -func DOMCSSPrimitiveValue_Alloc() DOMCSSPrimitiveValue { - return DOMCSSPrimitiveValueClass.Alloc() -} - func (dc _DOMCSSPrimitiveValueClass) New() DOMCSSPrimitiveValue { rv := objc.Call[DOMCSSPrimitiveValue](dc, objc.Sel("new")) rv.Autorelease() diff --git a/macos/webkit/domcss_rule.gen.go b/macos/webkit/domcss_rule.gen.go index b626518a..44162e24 100644 --- a/macos/webkit/domcss_rule.gen.go +++ b/macos/webkit/domcss_rule.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package webkit @@ -38,10 +38,6 @@ func (dc _DOMCSSRuleClass) Alloc() DOMCSSRule { return rv } -func DOMCSSRule_Alloc() DOMCSSRule { - return DOMCSSRuleClass.Alloc() -} - func (dc _DOMCSSRuleClass) New() DOMCSSRule { rv := objc.Call[DOMCSSRule](dc, objc.Sel("new")) rv.Autorelease() diff --git a/macos/webkit/domcss_rule_list.gen.go b/macos/webkit/domcss_rule_list.gen.go index b2dfc4c9..b3c558c9 100644 --- a/macos/webkit/domcss_rule_list.gen.go +++ b/macos/webkit/domcss_rule_list.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package webkit @@ -38,10 +38,6 @@ func (dc _DOMCSSRuleListClass) Alloc() DOMCSSRuleList { return rv } -func DOMCSSRuleList_Alloc() DOMCSSRuleList { - return DOMCSSRuleListClass.Alloc() -} - func (dc _DOMCSSRuleListClass) New() DOMCSSRuleList { rv := objc.Call[DOMCSSRuleList](dc, objc.Sel("new")) rv.Autorelease() diff --git a/macos/webkit/domcss_style_declaration.gen.go b/macos/webkit/domcss_style_declaration.gen.go index b5c2a5aa..a7623a72 100644 --- a/macos/webkit/domcss_style_declaration.gen.go +++ b/macos/webkit/domcss_style_declaration.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package webkit @@ -18,250 +18,250 @@ type _DOMCSSStyleDeclarationClass struct { // An interface definition for the [DOMCSSStyleDeclaration] class. type IDOMCSSStyleDeclaration interface { IDOMObject - 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 + SetFontSize(fontSize string) + SetBorderTopColor(borderTopColor string) + SpeechRate() string + SetListStyleType(listStyleType string) + BorderColor() string + SetVisibility(visibility string) Marks() 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 + SetMarginRight(marginRight string) + SetDisplay(display string) + MarginTop() string + FontVariant() string + SetFontWeight(fontWeight string) + SetMarginTop(marginTop string) + FontStretch() string SetCssFloat(cssFloat string) - BorderBottomColor() string - VerticalAlign() string - MinHeight() string - SetTextShadow(textShadow string) - SetPadding(padding string) - SetBorderStyle(borderStyle string) - BorderTopColor() string - TextShadow() string - SetEmptyCells(emptyCells string) + SetMargin(margin 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) - 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) + Width() string + LetterSpacing() string + BorderLeftColor() string + SetOutlineColor(outlineColor string) + SetListStylePosition(listStylePosition string) + SetSpeechRate(speechRate string) + SetClip(clip string) SetVerticalAlign(verticalAlign string) + MarginRight() string + Font() string + SetBackgroundAttachment(backgroundAttachment string) + SetPage(page string) + TableLayout() string SetStress(stress string) - SetElevation(elevation string) - BorderBottom() string - SetSpeak(speak 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 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 - Margin() string - SetBorderRightWidth(borderRightWidth string) - SetSpeakPunctuation(speakPunctuation string) - BorderRight() string - SetBorderRightColor(borderRightColor string) - SetMinHeight(minHeight string) - SetFontVariant(fontVariant string) - PaddingLeft() string - Padding() string - BorderTop() 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 + FontStyle() string + SetRight(right string) + Clear() string + Content() string + SetPauseAfter(pauseAfter string) + OutlineStyle() string + SetPaddingBottom(paddingBottom string) CueBefore() string - SetFontSizeAdjust(fontSizeAdjust string) - SetFontWeight(fontWeight string) - Outline() string - Bottom() string - SetRichness(richness 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) + BorderTop() string + SetVolume(volume string) + SetMaxWidth(maxWidth string) + SetPosition(position string) + Right() string + BorderLeftStyle() string SetOutlineWidth(outlineWidth string) - SpeakPunctuation() string - SetUnicodeBidi(unicodeBidi string) - Widows() string - BorderRightColor() string - BackgroundAttachment() string - SetPageBreakInside(pageBreakInside string) - CounterReset() string - SetOutlineColor(outlineColor string) - BorderRightWidth() string - SetFontStyle(fontStyle string) - Font() string - BackgroundImage() string - BorderLeftColor() string - SetVisibility(visibility string) - SetPauseBefore(pauseBefore string) + SetBorderLeft(borderLeft string) + SetBackground(background string) Stress() string + SetPageBreakInside(pageBreakInside string) + TextTransform() string + SetVoiceFamily(voiceFamily string) + SetWidows(widows string) + SetZIndex(zIndex string) + SetTableLayout(tableLayout string) SetClear(clear string) - BorderLeftWidth() string - SetBackgroundAttachment(backgroundAttachment string) - PageBreakBefore() string - SetHeight(height string) - MaxHeight() string - SetMargin(margin string) + SetBorderRightColor(borderRightColor 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) OutlineWidth() string + SetPause(pause string) + SetCounterReset(counterReset string) + SetCue(cue string) + SetMarginBottom(marginBottom string) + Orphans() string SetQuotes(quotes string) - ListStyleType() string - SetPageBreakAfter(pageBreakAfter string) + CaptionSide() string OutlineColor() 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) + 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 CounterIncrement() string - SetBackgroundRepeat(backgroundRepeat string) - BorderStyle() string + PaddingLeft() string + SetBorderRight(borderRight string) + SetPitchRange(pitchRange string) + Elevation() string + BackgroundRepeat() string + BorderLeft() string + SetFontSizeAdjust(fontSizeAdjust string) + Page() string + PlayDuring() string + ListStylePosition() string SpeakNumeral() string - CaptionSide() string - SetTop(top string) - SetBackgroundColor(backgroundColor string) + BackgroundColor() string + Cue() string + Outline() string + BorderRightWidth() string + SetLetterSpacing(letterSpacing string) + SetWidth(width string) + SetPitch(pitch string) Speak() string - FontWeight() string - Right() string - SetPage(page string) + SetMarks(marks string) + SetCursor(cursor string) SetPaddingRight(paddingRight string) - Richness() string - SetMarginLeft(marginLeft string) - SetBorderTopStyle(borderTopStyle string) - SetVoiceFamily(voiceFamily 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 LineHeight() string - SetMarks(marks string) - SetColor(color string) - PaddingRight() string + SetBorderLeftWidth(borderLeftWidth string) + Top() string + Display() string + SetCounterIncrement(counterIncrement string) + Bottom() string + WordSpacing() string + SetBorderTop(borderTop string) + PaddingTop() string TextAlign() 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 + PaddingBottom() string + BorderLeftWidth() string + SetPaddingTop(paddingTop string) + TextIndent() string BorderWidth() string - SetBorderLeft(borderLeft string) - BorderRightStyle() string - BorderLeft() string - PauseAfter() string - SetListStyleType(listStyleType string) - SetTableLayout(tableLayout string) + SetBorderCollapse(borderCollapse string) + CueAfter() string + SetBorderWidth(borderWidth string) SetOutlineStyle(outlineStyle string) - SetMarginBottom(marginBottom string) - SetMaxWidth(maxWidth string) - SetMarginRight(marginRight string) - Pause() string - SetVolume(volume 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 SetCueAfter(cueAfter string) - SetMaxHeight(maxHeight string) + BorderSpacing() string + SetTextIndent(textIndent string) + SetAzimuth(azimuth string) + SetSpeak(speak string) + SetLeft(left string) MarkerOffset() string - Page() string - ZIndex() string - Pitch() string - SetListStyleImage(listStyleImage string) - OutlineStyle() string - Size() string - MarginBottom() 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 SetLineHeight(lineHeight 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 + MaxWidth() string + Richness() string + SetBorderBottomWidth(borderBottomWidth string) + SetPlayDuring(playDuring string) } // [Full Topic] @@ -282,10 +282,6 @@ func (dc _DOMCSSStyleDeclarationClass) Alloc() DOMCSSStyleDeclaration { return rv } -func DOMCSSStyleDeclaration_Alloc() DOMCSSStyleDeclaration { - return DOMCSSStyleDeclarationClass.Alloc() -} - func (dc _DOMCSSStyleDeclarationClass) New() DOMCSSStyleDeclaration { rv := objc.Call[DOMCSSStyleDeclaration](dc, objc.Sel("new")) rv.Autorelease() @@ -303,230 +299,187 @@ func (d_ DOMCSSStyleDeclaration) Init() DOMCSSStyleDeclaration { // [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] -// -// [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/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/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]: 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/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/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/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/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/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/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/1537569-whitespace?language=objc -func (d_ DOMCSSStyleDeclaration) WhiteSpace() string { - rv := objc.Call[string](d_, objc.Sel("whiteSpace")) +// [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 } // [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/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/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/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/1537039-fontsizeadjust?language=objc -func (d_ DOMCSSStyleDeclaration) FontSizeAdjust() string { - rv := objc.Call[string](d_, objc.Sel("fontSizeAdjust")) - return rv +// [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/1537957-playduring?language=objc -func (d_ DOMCSSStyleDeclaration) PlayDuring() string { - rv := objc.Call[string](d_, objc.Sel("playDuring")) - 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/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/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/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/1537762-fontvariant?language=objc +func (d_ DOMCSSStyleDeclaration) FontVariant() string { + rv := objc.Call[string](d_, objc.Sel("fontVariant")) 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/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/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/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/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/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/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/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/1537340-direction?language=objc -func (d_ DOMCSSStyleDeclaration) Direction() string { - rv := objc.Call[string](d_, objc.Sel("direction")) - return rv +// [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/1536295-marks?language=objc -func (d_ DOMCSSStyleDeclaration) Marks() string { - rv := objc.Call[string](d_, objc.Sel("marks")) - return rv +// [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/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/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/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/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/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/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/1538175-fontsize?language=objc -func (d_ DOMCSSStyleDeclaration) FontSize() string { - rv := objc.Call[string](d_, objc.Sel("fontSize")) +// [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/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/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/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/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/1538123-volume?language=objc -func (d_ DOMCSSStyleDeclaration) Volume() string { - rv := objc.Call[string](d_, objc.Sel("volume")) - 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/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/1537632-setspeechrate?language=objc +func (d_ DOMCSSStyleDeclaration) SetSpeechRate(speechRate string) { + objc.Call[objc.Void](d_, objc.Sel("setSpeechRate:"), speechRate) } // [Full Topic] @@ -538,800 +491,817 @@ func (d_ DOMCSSStyleDeclaration) SetClip(clip string) { // [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")) - return rv +// [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/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/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/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/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/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/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/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/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/1537968-minheight?language=objc -func (d_ DOMCSSStyleDeclaration) MinHeight() string { - rv := objc.Call[string](d_, objc.Sel("minHeight")) +// [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/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/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/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/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/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/1537968-minheight?language=objc +func (d_ DOMCSSStyleDeclaration) MinHeight() string { + rv := objc.Call[string](d_, objc.Sel("minHeight")) + 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")) +// [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/1537426-textshadow?language=objc -func (d_ DOMCSSStyleDeclaration) TextShadow() string { - rv := objc.Call[string](d_, objc.Sel("textShadow")) - 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/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/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/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/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/1536449-bordertopwidth?language=objc -func (d_ DOMCSSStyleDeclaration) BorderTopWidth() string { - rv := objc.Call[string](d_, objc.Sel("borderTopWidth")) +// [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/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/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/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/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/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/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/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/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/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/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/1537588-fontfamily?language=objc -func (d_ DOMCSSStyleDeclaration) FontFamily() string { - rv := objc.Call[string](d_, objc.Sel("fontFamily")) +// [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/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/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/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/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/1536488-borderspacing?language=objc -func (d_ DOMCSSStyleDeclaration) BorderSpacing() string { - rv := objc.Call[string](d_, objc.Sel("borderSpacing")) - return rv +// [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/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/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/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/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/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/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/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/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/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/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/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/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/1537698-paddingtop?language=objc -func (d_ DOMCSSStyleDeclaration) PaddingTop() string { - rv := objc.Call[string](d_, objc.Sel("paddingTop")) +// [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/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/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/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/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/1536966-clip?language=objc -func (d_ DOMCSSStyleDeclaration) Clip() string { - rv := objc.Call[string](d_, objc.Sel("clip")) +// [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/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/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/1537016-speechrate?language=objc -func (d_ DOMCSSStyleDeclaration) SpeechRate() string { - rv := objc.Call[string](d_, objc.Sel("speechRate")) - return rv +// [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/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/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/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/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/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/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/1537087-azimuth?language=objc -func (d_ DOMCSSStyleDeclaration) Azimuth() string { - rv := objc.Call[string](d_, objc.Sel("azimuth")) +// [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/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/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/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/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/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/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/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/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/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/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/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/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/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/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/1536636-bordertopstyle?language=objc -func (d_ DOMCSSStyleDeclaration) BorderTopStyle() string { - rv := objc.Call[string](d_, objc.Sel("borderTopStyle")) +// [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/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/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/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/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/1536731-clear?language=objc -func (d_ DOMCSSStyleDeclaration) Clear() string { - rv := objc.Call[string](d_, objc.Sel("clear")) +// [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/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/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/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/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/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/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/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/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/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/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/1537415-backgroundrepeat?language=objc -func (d_ DOMCSSStyleDeclaration) BackgroundRepeat() string { - rv := objc.Call[string](d_, objc.Sel("backgroundRepeat")) +// +// [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/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/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/1537622-left?language=objc -func (d_ DOMCSSStyleDeclaration) Left() string { - rv := objc.Call[string](d_, objc.Sel("left")) - 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/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/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/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/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/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/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/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/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/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/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/1537327-overflow?language=objc -func (d_ DOMCSSStyleDeclaration) Overflow() string { - rv := objc.Call[string](d_, objc.Sel("overflow")) - return rv +// [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/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/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/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/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/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/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/1536200-orphans?language=objc -func (d_ DOMCSSStyleDeclaration) Orphans() string { - rv := objc.Call[string](d_, objc.Sel("orphans")) - return rv +// [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/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/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/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/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/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/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/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/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/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/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/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/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/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/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/1536925-height?language=objc -func (d_ DOMCSSStyleDeclaration) Height() string { - rv := objc.Call[string](d_, objc.Sel("height")) - 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/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/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/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/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/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/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/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/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/1537216-borderright?language=objc -func (d_ DOMCSSStyleDeclaration) BorderRight() string { - rv := objc.Call[string](d_, objc.Sel("borderRight")) +// [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/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/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/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/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/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/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/1537561-paddingleft?language=objc -func (d_ DOMCSSStyleDeclaration) PaddingLeft() string { - rv := objc.Call[string](d_, objc.Sel("paddingLeft")) - return rv +// [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/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/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/1537619-bordertop?language=objc -func (d_ DOMCSSStyleDeclaration) BorderTop() string { - rv := objc.Call[string](d_, objc.Sel("borderTop")) - 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/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/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/1538024-letterspacing?language=objc -func (d_ DOMCSSStyleDeclaration) LetterSpacing() string { - rv := objc.Call[string](d_, objc.Sel("letterSpacing")) - return rv +// [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/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/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/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/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/1536865-borderbottomstyle?language=objc -func (d_ DOMCSSStyleDeclaration) BorderBottomStyle() string { - rv := objc.Call[string](d_, objc.Sel("borderBottomStyle")) - return rv +// [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/1537806-marginright?language=objc -func (d_ DOMCSSStyleDeclaration) MarginRight() string { - rv := objc.Call[string](d_, objc.Sel("marginRight")) +// [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/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/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/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/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/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/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/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/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/1536508-backgroundcolor?language=objc -func (d_ DOMCSSStyleDeclaration) BackgroundColor() string { - rv := objc.Call[string](d_, objc.Sel("backgroundColor")) +// [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/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/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/1537217-cuebefore?language=objc -func (d_ DOMCSSStyleDeclaration) CueBefore() string { - rv := objc.Call[string](d_, objc.Sel("cueBefore")) - 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/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/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/1536632-setfontweight?language=objc -func (d_ DOMCSSStyleDeclaration) SetFontWeight(fontWeight string) { - objc.Call[objc.Void](d_, objc.Sel("setFontWeight:"), fontWeight) +// [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/1537652-outline?language=objc -func (d_ DOMCSSStyleDeclaration) Outline() string { - rv := objc.Call[string](d_, objc.Sel("outline")) +// [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/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/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/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/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/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/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/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/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/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/1537213-setcolor?language=objc +func (d_ DOMCSSStyleDeclaration) SetColor(color string) { + objc.Call[objc.Void](d_, objc.Sel("setColor:"), color) } // [Full Topic] @@ -1344,206 +1314,221 @@ func (d_ DOMCSSStyleDeclaration) Widows() string { // [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/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/1537399-backgroundattachment?language=objc -func (d_ DOMCSSStyleDeclaration) BackgroundAttachment() string { - rv := objc.Call[string](d_, objc.Sel("backgroundAttachment")) +// [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/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/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/1537063-counterreset?language=objc -func (d_ DOMCSSStyleDeclaration) CounterReset() string { - rv := objc.Call[string](d_, objc.Sel("counterReset")) +// [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/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/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/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/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/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/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/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/1536196-font?language=objc -func (d_ DOMCSSStyleDeclaration) Font() string { - rv := objc.Call[string](d_, objc.Sel("font")) +// [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/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/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/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/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/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/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/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/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/1537394-stress?language=objc -func (d_ DOMCSSStyleDeclaration) Stress() string { - rv := objc.Call[string](d_, objc.Sel("stress")) +// [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/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/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/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/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/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/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/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/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/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/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/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/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/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/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/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/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/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/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/1537498-liststyletype?language=objc -func (d_ DOMCSSStyleDeclaration) ListStyleType() string { - rv := objc.Call[string](d_, objc.Sel("listStyleType")) +// [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/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/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/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/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/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/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/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/1537992-top?language=objc -func (d_ DOMCSSStyleDeclaration) Top() string { - rv := objc.Call[string](d_, objc.Sel("top")) - return rv +// [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] @@ -1556,285 +1541,291 @@ func (d_ DOMCSSStyleDeclaration) SpeakHeader() string { // [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/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/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/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/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/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/1537577-maxwidth?language=objc -func (d_ DOMCSSStyleDeclaration) MaxWidth() string { - rv := objc.Call[string](d_, objc.Sel("maxWidth")) - return rv +// [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/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/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/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/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/1537897-bordercollapse?language=objc -func (d_ DOMCSSStyleDeclaration) BorderCollapse() string { - rv := objc.Call[string](d_, objc.Sel("borderCollapse")) +// [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/1537452-fontstretch?language=objc -func (d_ DOMCSSStyleDeclaration) FontStretch() string { - rv := objc.Call[string](d_, objc.Sel("fontStretch")) - 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/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/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/1536557-cueafter?language=objc -func (d_ DOMCSSStyleDeclaration) CueAfter() string { - rv := objc.Call[string](d_, objc.Sel("cueAfter")) +// [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/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/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/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/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/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/1537992-top?language=objc +func (d_ DOMCSSStyleDeclaration) Top() string { + rv := objc.Call[string](d_, objc.Sel("top")) 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/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/1537384-borderstyle?language=objc -func (d_ DOMCSSStyleDeclaration) BorderStyle() string { - rv := objc.Call[string](d_, objc.Sel("borderStyle")) - return rv +// [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/1536347-speaknumeral?language=objc -func (d_ DOMCSSStyleDeclaration) SpeakNumeral() string { - rv := objc.Call[string](d_, objc.Sel("speakNumeral")) +// [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/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/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/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/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/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/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/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/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/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/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/1536909-right?language=objc -func (d_ DOMCSSStyleDeclaration) Right() string { - rv := objc.Call[string](d_, objc.Sel("right")) +// [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/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/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/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/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/1537821-richness?language=objc -func (d_ DOMCSSStyleDeclaration) Richness() string { - rv := objc.Call[string](d_, objc.Sel("richness")) +// [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/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/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/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/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/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/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/1536560-lineheight?language=objc -func (d_ DOMCSSStyleDeclaration) LineHeight() string { - rv := objc.Call[string](d_, objc.Sel("lineHeight")) - 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/1538135-setmarks?language=objc -func (d_ DOMCSSStyleDeclaration) SetMarks(marks string) { - objc.Call[objc.Void](d_, objc.Sel("setMarks:"), marks) +// [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/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/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/1536223-paddingright?language=objc -func (d_ DOMCSSStyleDeclaration) PaddingRight() string { - rv := objc.Call[string](d_, objc.Sel("paddingRight")) +// [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/1536370-textalign?language=objc -func (d_ DOMCSSStyleDeclaration) TextAlign() string { - rv := objc.Call[string](d_, objc.Sel("textAlign")) - 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/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/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/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/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/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/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/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/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/1537814-bordercolor?language=objc -func (d_ DOMCSSStyleDeclaration) BorderColor() string { - rv := objc.Call[string](d_, objc.Sel("borderColor")) +// [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")) return rv } @@ -1847,286 +1838,291 @@ func (d_ DOMCSSStyleDeclaration) SetSize(size string) { // [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/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/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/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/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/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/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/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/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/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/1538198-borderrightstyle?language=objc -func (d_ DOMCSSStyleDeclaration) BorderRightStyle() string { - rv := objc.Call[string](d_, objc.Sel("borderRightStyle")) +// [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/1536544-borderleft?language=objc -func (d_ DOMCSSStyleDeclaration) BorderLeft() string { - rv := objc.Call[string](d_, objc.Sel("borderLeft")) - 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/1536316-pauseafter?language=objc -func (d_ DOMCSSStyleDeclaration) PauseAfter() string { - rv := objc.Call[string](d_, objc.Sel("pauseAfter")) - return rv +// [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/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/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/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/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/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/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/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/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/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/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/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/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/1537631-pause?language=objc -func (d_ DOMCSSStyleDeclaration) Pause() string { - rv := objc.Call[string](d_, objc.Sel("pause")) - 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/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/1536515-verticalalign?language=objc +func (d_ DOMCSSStyleDeclaration) VerticalAlign() string { + rv := objc.Call[string](d_, objc.Sel("verticalAlign")) + 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/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/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/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/1536310-markeroffset?language=objc -func (d_ DOMCSSStyleDeclaration) MarkerOffset() string { - rv := objc.Call[string](d_, objc.Sel("markerOffset")) +// [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/1537256-page?language=objc -func (d_ DOMCSSStyleDeclaration) Page() string { - rv := objc.Call[string](d_, objc.Sel("page")) - return rv +// [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/1537553-zindex?language=objc -func (d_ DOMCSSStyleDeclaration) ZIndex() string { - rv := objc.Call[string](d_, objc.Sel("zIndex")) +// [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/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/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/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/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/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/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/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/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/1536390-marginbottom?language=objc -func (d_ DOMCSSStyleDeclaration) MarginBottom() string { - rv := objc.Call[string](d_, objc.Sel("marginBottom")) - 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/1537602-setlineheight?language=objc -func (d_ DOMCSSStyleDeclaration) SetLineHeight(lineHeight string) { - objc.Call[objc.Void](d_, objc.Sel("setLineHeight:"), lineHeight) +// [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/1537212-backgroundposition?language=objc -func (d_ DOMCSSStyleDeclaration) BackgroundPosition() string { - rv := objc.Call[string](d_, objc.Sel("backgroundPosition")) - return rv +// [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/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/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/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/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/1537899-borderleftstyle?language=objc -func (d_ DOMCSSStyleDeclaration) BorderLeftStyle() string { - rv := objc.Call[string](d_, objc.Sel("borderLeftStyle")) +// [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/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/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/1536575-setborderright?language=objc -func (d_ DOMCSSStyleDeclaration) SetBorderRight(borderRight string) { - objc.Call[objc.Void](d_, objc.Sel("setBorderRight:"), borderRight) +// [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/1537576-fontstyle?language=objc -func (d_ DOMCSSStyleDeclaration) FontStyle() string { - rv := objc.Call[string](d_, objc.Sel("fontStyle")) +// [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/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/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")) return rv } // [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/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/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/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/1537762-fontvariant?language=objc -func (d_ DOMCSSStyleDeclaration) FontVariant() string { - rv := objc.Call[string](d_, objc.Sel("fontVariant")) - return rv +// [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) } diff --git a/macos/webkit/domcss_style_rule.gen.go b/macos/webkit/domcss_style_rule.gen.go index 62d9574f..137c7c4f 100644 --- a/macos/webkit/domcss_style_rule.gen.go +++ b/macos/webkit/domcss_style_rule.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package webkit @@ -38,10 +38,6 @@ func (dc _DOMCSSStyleRuleClass) Alloc() DOMCSSStyleRule { return rv } -func DOMCSSStyleRule_Alloc() DOMCSSStyleRule { - return DOMCSSStyleRuleClass.Alloc() -} - func (dc _DOMCSSStyleRuleClass) New() DOMCSSStyleRule { rv := objc.Call[DOMCSSStyleRule](dc, objc.Sel("new")) rv.Autorelease() diff --git a/macos/webkit/domcss_style_sheet.gen.go b/macos/webkit/domcss_style_sheet.gen.go index 1fd3c2e3..54ccae0c 100644 --- a/macos/webkit/domcss_style_sheet.gen.go +++ b/macos/webkit/domcss_style_sheet.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package webkit @@ -38,10 +38,6 @@ func (dc _DOMCSSStyleSheetClass) Alloc() DOMCSSStyleSheet { return rv } -func DOMCSSStyleSheet_Alloc() DOMCSSStyleSheet { - return DOMCSSStyleSheetClass.Alloc() -} - func (dc _DOMCSSStyleSheetClass) New() DOMCSSStyleSheet { rv := objc.Call[DOMCSSStyleSheet](dc, objc.Sel("new")) rv.Autorelease() diff --git a/macos/webkit/domcss_unknown_rule.gen.go b/macos/webkit/domcss_unknown_rule.gen.go index 3c51da79..e556065b 100644 --- a/macos/webkit/domcss_unknown_rule.gen.go +++ b/macos/webkit/domcss_unknown_rule.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package webkit @@ -38,10 +38,6 @@ func (dc _DOMCSSUnknownRuleClass) Alloc() DOMCSSUnknownRule { return rv } -func DOMCSSUnknownRule_Alloc() DOMCSSUnknownRule { - return DOMCSSUnknownRuleClass.Alloc() -} - func (dc _DOMCSSUnknownRuleClass) New() DOMCSSUnknownRule { rv := objc.Call[DOMCSSUnknownRule](dc, objc.Sel("new")) rv.Autorelease() diff --git a/macos/webkit/domcss_value.gen.go b/macos/webkit/domcss_value.gen.go index d8b44373..912cc3d3 100644 --- a/macos/webkit/domcss_value.gen.go +++ b/macos/webkit/domcss_value.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package webkit @@ -38,10 +38,6 @@ func (dc _DOMCSSValueClass) Alloc() DOMCSSValue { return rv } -func DOMCSSValue_Alloc() DOMCSSValue { - return DOMCSSValueClass.Alloc() -} - func (dc _DOMCSSValueClass) New() DOMCSSValue { rv := objc.Call[DOMCSSValue](dc, objc.Sel("new")) rv.Autorelease() diff --git a/macos/webkit/domcss_value_list.gen.go b/macos/webkit/domcss_value_list.gen.go index 24f2e670..c725997f 100644 --- a/macos/webkit/domcss_value_list.gen.go +++ b/macos/webkit/domcss_value_list.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package webkit @@ -38,10 +38,6 @@ func (dc _DOMCSSValueListClass) Alloc() DOMCSSValueList { return rv } -func DOMCSSValueList_Alloc() DOMCSSValueList { - return DOMCSSValueListClass.Alloc() -} - func (dc _DOMCSSValueListClass) New() DOMCSSValueList { rv := objc.Call[DOMCSSValueList](dc, objc.Sel("new")) rv.Autorelease() diff --git a/macos/webkit/domhtml_anchor_element.gen.go b/macos/webkit/domhtml_anchor_element.gen.go index ee7c2ce3..012e3182 100644 --- a/macos/webkit/domhtml_anchor_element.gen.go +++ b/macos/webkit/domhtml_anchor_element.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package webkit @@ -38,10 +38,6 @@ func (dc _DOMHTMLAnchorElementClass) Alloc() DOMHTMLAnchorElement { return rv } -func DOMHTMLAnchorElement_Alloc() DOMHTMLAnchorElement { - return DOMHTMLAnchorElementClass.Alloc() -} - func (dc _DOMHTMLAnchorElementClass) New() DOMHTMLAnchorElement { rv := objc.Call[DOMHTMLAnchorElement](dc, objc.Sel("new")) rv.Autorelease() diff --git a/macos/webkit/domhtml_applet_element.gen.go b/macos/webkit/domhtml_applet_element.gen.go index d5ee8dc1..fe6e73c6 100644 --- a/macos/webkit/domhtml_applet_element.gen.go +++ b/macos/webkit/domhtml_applet_element.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package webkit @@ -38,10 +38,6 @@ func (dc _DOMHTMLAppletElementClass) Alloc() DOMHTMLAppletElement { return rv } -func DOMHTMLAppletElement_Alloc() DOMHTMLAppletElement { - return DOMHTMLAppletElementClass.Alloc() -} - func (dc _DOMHTMLAppletElementClass) New() DOMHTMLAppletElement { rv := objc.Call[DOMHTMLAppletElement](dc, objc.Sel("new")) rv.Autorelease() diff --git a/macos/webkit/domhtml_area_element.gen.go b/macos/webkit/domhtml_area_element.gen.go index b7cff311..11bd9d2a 100644 --- a/macos/webkit/domhtml_area_element.gen.go +++ b/macos/webkit/domhtml_area_element.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package webkit @@ -38,10 +38,6 @@ func (dc _DOMHTMLAreaElementClass) Alloc() DOMHTMLAreaElement { return rv } -func DOMHTMLAreaElement_Alloc() DOMHTMLAreaElement { - return DOMHTMLAreaElementClass.Alloc() -} - func (dc _DOMHTMLAreaElementClass) New() DOMHTMLAreaElement { rv := objc.Call[DOMHTMLAreaElement](dc, objc.Sel("new")) rv.Autorelease() diff --git a/macos/webkit/domhtml_base_element.gen.go b/macos/webkit/domhtml_base_element.gen.go index bdca3467..a386b1a3 100644 --- a/macos/webkit/domhtml_base_element.gen.go +++ b/macos/webkit/domhtml_base_element.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package webkit @@ -38,10 +38,6 @@ func (dc _DOMHTMLBaseElementClass) Alloc() DOMHTMLBaseElement { return rv } -func DOMHTMLBaseElement_Alloc() DOMHTMLBaseElement { - return DOMHTMLBaseElementClass.Alloc() -} - func (dc _DOMHTMLBaseElementClass) New() DOMHTMLBaseElement { rv := objc.Call[DOMHTMLBaseElement](dc, objc.Sel("new")) rv.Autorelease() diff --git a/macos/webkit/domhtml_base_font_element.gen.go b/macos/webkit/domhtml_base_font_element.gen.go index 586512de..e18eba28 100644 --- a/macos/webkit/domhtml_base_font_element.gen.go +++ b/macos/webkit/domhtml_base_font_element.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package webkit @@ -38,10 +38,6 @@ func (dc _DOMHTMLBaseFontElementClass) Alloc() DOMHTMLBaseFontElement { return rv } -func DOMHTMLBaseFontElement_Alloc() DOMHTMLBaseFontElement { - return DOMHTMLBaseFontElementClass.Alloc() -} - func (dc _DOMHTMLBaseFontElementClass) New() DOMHTMLBaseFontElement { rv := objc.Call[DOMHTMLBaseFontElement](dc, objc.Sel("new")) rv.Autorelease() diff --git a/macos/webkit/domhtml_body_element.gen.go b/macos/webkit/domhtml_body_element.gen.go index 363be0e1..6e5d6ae1 100644 --- a/macos/webkit/domhtml_body_element.gen.go +++ b/macos/webkit/domhtml_body_element.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package webkit @@ -38,10 +38,6 @@ func (dc _DOMHTMLBodyElementClass) Alloc() DOMHTMLBodyElement { return rv } -func DOMHTMLBodyElement_Alloc() DOMHTMLBodyElement { - return DOMHTMLBodyElementClass.Alloc() -} - func (dc _DOMHTMLBodyElementClass) New() DOMHTMLBodyElement { rv := objc.Call[DOMHTMLBodyElement](dc, objc.Sel("new")) rv.Autorelease() diff --git a/macos/webkit/domhtml_button_element.gen.go b/macos/webkit/domhtml_button_element.gen.go index bc71ccc4..969fbbd4 100644 --- a/macos/webkit/domhtml_button_element.gen.go +++ b/macos/webkit/domhtml_button_element.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package webkit @@ -38,10 +38,6 @@ func (dc _DOMHTMLButtonElementClass) Alloc() DOMHTMLButtonElement { return rv } -func DOMHTMLButtonElement_Alloc() DOMHTMLButtonElement { - return DOMHTMLButtonElementClass.Alloc() -} - func (dc _DOMHTMLButtonElementClass) New() DOMHTMLButtonElement { rv := objc.Call[DOMHTMLButtonElement](dc, objc.Sel("new")) rv.Autorelease() diff --git a/macos/webkit/domhtml_collection.gen.go b/macos/webkit/domhtml_collection.gen.go index 38215474..ed96c253 100644 --- a/macos/webkit/domhtml_collection.gen.go +++ b/macos/webkit/domhtml_collection.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package webkit @@ -38,10 +38,6 @@ func (dc _DOMHTMLCollectionClass) Alloc() DOMHTMLCollection { return rv } -func DOMHTMLCollection_Alloc() DOMHTMLCollection { - return DOMHTMLCollectionClass.Alloc() -} - func (dc _DOMHTMLCollectionClass) New() DOMHTMLCollection { rv := objc.Call[DOMHTMLCollection](dc, objc.Sel("new")) rv.Autorelease() diff --git a/macos/webkit/domhtml_directory_element.gen.go b/macos/webkit/domhtml_directory_element.gen.go index 765571c5..10536f75 100644 --- a/macos/webkit/domhtml_directory_element.gen.go +++ b/macos/webkit/domhtml_directory_element.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package webkit @@ -38,10 +38,6 @@ func (dc _DOMHTMLDirectoryElementClass) Alloc() DOMHTMLDirectoryElement { return rv } -func DOMHTMLDirectoryElement_Alloc() DOMHTMLDirectoryElement { - return DOMHTMLDirectoryElementClass.Alloc() -} - func (dc _DOMHTMLDirectoryElementClass) New() DOMHTMLDirectoryElement { rv := objc.Call[DOMHTMLDirectoryElement](dc, objc.Sel("new")) rv.Autorelease() diff --git a/macos/webkit/domhtml_div_element.gen.go b/macos/webkit/domhtml_div_element.gen.go index 9f9a25d3..a93e5153 100644 --- a/macos/webkit/domhtml_div_element.gen.go +++ b/macos/webkit/domhtml_div_element.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package webkit @@ -38,10 +38,6 @@ func (dc _DOMHTMLDivElementClass) Alloc() DOMHTMLDivElement { return rv } -func DOMHTMLDivElement_Alloc() DOMHTMLDivElement { - return DOMHTMLDivElementClass.Alloc() -} - func (dc _DOMHTMLDivElementClass) New() DOMHTMLDivElement { rv := objc.Call[DOMHTMLDivElement](dc, objc.Sel("new")) rv.Autorelease() diff --git a/macos/webkit/domhtml_document.gen.go b/macos/webkit/domhtml_document.gen.go index 01ede572..b14723d4 100644 --- a/macos/webkit/domhtml_document.gen.go +++ b/macos/webkit/domhtml_document.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package webkit @@ -41,10 +41,6 @@ func (dc _DOMHTMLDocumentClass) Alloc() DOMHTMLDocument { return rv } -func DOMHTMLDocument_Alloc() DOMHTMLDocument { - return DOMHTMLDocumentClass.Alloc() -} - func (dc _DOMHTMLDocumentClass) New() DOMHTMLDocument { rv := objc.Call[DOMHTMLDocument](dc, objc.Sel("new")) rv.Autorelease() diff --git a/macos/webkit/domhtml_element.gen.go b/macos/webkit/domhtml_element.gen.go index f421d745..9d5136a9 100644 --- a/macos/webkit/domhtml_element.gen.go +++ b/macos/webkit/domhtml_element.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package webkit @@ -38,10 +38,6 @@ func (dc _DOMHTMLElementClass) Alloc() DOMHTMLElement { return rv } -func DOMHTMLElement_Alloc() DOMHTMLElement { - return DOMHTMLElementClass.Alloc() -} - func (dc _DOMHTMLElementClass) New() DOMHTMLElement { rv := objc.Call[DOMHTMLElement](dc, objc.Sel("new")) rv.Autorelease() diff --git a/macos/webkit/domhtml_embed_element.gen.go b/macos/webkit/domhtml_embed_element.gen.go index 0c681528..0385f499 100644 --- a/macos/webkit/domhtml_embed_element.gen.go +++ b/macos/webkit/domhtml_embed_element.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package webkit @@ -38,10 +38,6 @@ func (dc _DOMHTMLEmbedElementClass) Alloc() DOMHTMLEmbedElement { return rv } -func DOMHTMLEmbedElement_Alloc() DOMHTMLEmbedElement { - return DOMHTMLEmbedElementClass.Alloc() -} - func (dc _DOMHTMLEmbedElementClass) New() DOMHTMLEmbedElement { rv := objc.Call[DOMHTMLEmbedElement](dc, objc.Sel("new")) rv.Autorelease() diff --git a/macos/webkit/domhtml_field_set_element.gen.go b/macos/webkit/domhtml_field_set_element.gen.go index 33e63fd5..85c6f189 100644 --- a/macos/webkit/domhtml_field_set_element.gen.go +++ b/macos/webkit/domhtml_field_set_element.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package webkit @@ -38,10 +38,6 @@ func (dc _DOMHTMLFieldSetElementClass) Alloc() DOMHTMLFieldSetElement { return rv } -func DOMHTMLFieldSetElement_Alloc() DOMHTMLFieldSetElement { - return DOMHTMLFieldSetElementClass.Alloc() -} - func (dc _DOMHTMLFieldSetElementClass) New() DOMHTMLFieldSetElement { rv := objc.Call[DOMHTMLFieldSetElement](dc, objc.Sel("new")) rv.Autorelease() diff --git a/macos/webkit/domhtml_font_element.gen.go b/macos/webkit/domhtml_font_element.gen.go index d73e6309..aec47f92 100644 --- a/macos/webkit/domhtml_font_element.gen.go +++ b/macos/webkit/domhtml_font_element.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package webkit @@ -38,10 +38,6 @@ func (dc _DOMHTMLFontElementClass) Alloc() DOMHTMLFontElement { return rv } -func DOMHTMLFontElement_Alloc() DOMHTMLFontElement { - return DOMHTMLFontElementClass.Alloc() -} - func (dc _DOMHTMLFontElementClass) New() DOMHTMLFontElement { rv := objc.Call[DOMHTMLFontElement](dc, objc.Sel("new")) rv.Autorelease() diff --git a/macos/webkit/domhtml_form_element.gen.go b/macos/webkit/domhtml_form_element.gen.go index 309aca71..ea6cafb2 100644 --- a/macos/webkit/domhtml_form_element.gen.go +++ b/macos/webkit/domhtml_form_element.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package webkit @@ -38,10 +38,6 @@ func (dc _DOMHTMLFormElementClass) Alloc() DOMHTMLFormElement { return rv } -func DOMHTMLFormElement_Alloc() DOMHTMLFormElement { - return DOMHTMLFormElementClass.Alloc() -} - func (dc _DOMHTMLFormElementClass) New() DOMHTMLFormElement { rv := objc.Call[DOMHTMLFormElement](dc, objc.Sel("new")) rv.Autorelease() diff --git a/macos/webkit/domhtml_frame_element.gen.go b/macos/webkit/domhtml_frame_element.gen.go index 0f9dcf7a..64769590 100644 --- a/macos/webkit/domhtml_frame_element.gen.go +++ b/macos/webkit/domhtml_frame_element.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package webkit @@ -38,10 +38,6 @@ func (dc _DOMHTMLFrameElementClass) Alloc() DOMHTMLFrameElement { return rv } -func DOMHTMLFrameElement_Alloc() DOMHTMLFrameElement { - return DOMHTMLFrameElementClass.Alloc() -} - func (dc _DOMHTMLFrameElementClass) New() DOMHTMLFrameElement { rv := objc.Call[DOMHTMLFrameElement](dc, objc.Sel("new")) rv.Autorelease() diff --git a/macos/webkit/domhtml_frame_set_element.gen.go b/macos/webkit/domhtml_frame_set_element.gen.go index f988d0ad..ddabe5db 100644 --- a/macos/webkit/domhtml_frame_set_element.gen.go +++ b/macos/webkit/domhtml_frame_set_element.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package webkit @@ -38,10 +38,6 @@ func (dc _DOMHTMLFrameSetElementClass) Alloc() DOMHTMLFrameSetElement { return rv } -func DOMHTMLFrameSetElement_Alloc() DOMHTMLFrameSetElement { - return DOMHTMLFrameSetElementClass.Alloc() -} - func (dc _DOMHTMLFrameSetElementClass) New() DOMHTMLFrameSetElement { rv := objc.Call[DOMHTMLFrameSetElement](dc, objc.Sel("new")) rv.Autorelease() diff --git a/macos/webkit/domhtml_head_element.gen.go b/macos/webkit/domhtml_head_element.gen.go index f509a9ed..994ab710 100644 --- a/macos/webkit/domhtml_head_element.gen.go +++ b/macos/webkit/domhtml_head_element.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package webkit @@ -38,10 +38,6 @@ func (dc _DOMHTMLHeadElementClass) Alloc() DOMHTMLHeadElement { return rv } -func DOMHTMLHeadElement_Alloc() DOMHTMLHeadElement { - return DOMHTMLHeadElementClass.Alloc() -} - func (dc _DOMHTMLHeadElementClass) New() DOMHTMLHeadElement { rv := objc.Call[DOMHTMLHeadElement](dc, objc.Sel("new")) rv.Autorelease() diff --git a/macos/webkit/domhtml_heading_element.gen.go b/macos/webkit/domhtml_heading_element.gen.go index 51e88c7d..238d0338 100644 --- a/macos/webkit/domhtml_heading_element.gen.go +++ b/macos/webkit/domhtml_heading_element.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package webkit @@ -38,10 +38,6 @@ func (dc _DOMHTMLHeadingElementClass) Alloc() DOMHTMLHeadingElement { return rv } -func DOMHTMLHeadingElement_Alloc() DOMHTMLHeadingElement { - return DOMHTMLHeadingElementClass.Alloc() -} - func (dc _DOMHTMLHeadingElementClass) New() DOMHTMLHeadingElement { rv := objc.Call[DOMHTMLHeadingElement](dc, objc.Sel("new")) rv.Autorelease() diff --git a/macos/webkit/domhtml_html_element.gen.go b/macos/webkit/domhtml_html_element.gen.go index 5a501e80..fca9ceb5 100644 --- a/macos/webkit/domhtml_html_element.gen.go +++ b/macos/webkit/domhtml_html_element.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package webkit @@ -38,10 +38,6 @@ func (dc _DOMHTMLHtmlElementClass) Alloc() DOMHTMLHtmlElement { return rv } -func DOMHTMLHtmlElement_Alloc() DOMHTMLHtmlElement { - return DOMHTMLHtmlElementClass.Alloc() -} - func (dc _DOMHTMLHtmlElementClass) New() DOMHTMLHtmlElement { rv := objc.Call[DOMHTMLHtmlElement](dc, objc.Sel("new")) rv.Autorelease() diff --git a/macos/webkit/domhtml_image_element.gen.go b/macos/webkit/domhtml_image_element.gen.go index 8180a2b4..aa5975d5 100644 --- a/macos/webkit/domhtml_image_element.gen.go +++ b/macos/webkit/domhtml_image_element.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package webkit @@ -38,10 +38,6 @@ func (dc _DOMHTMLImageElementClass) Alloc() DOMHTMLImageElement { return rv } -func DOMHTMLImageElement_Alloc() DOMHTMLImageElement { - return DOMHTMLImageElementClass.Alloc() -} - func (dc _DOMHTMLImageElementClass) New() DOMHTMLImageElement { rv := objc.Call[DOMHTMLImageElement](dc, objc.Sel("new")) rv.Autorelease() diff --git a/macos/webkit/domhtml_input_element.gen.go b/macos/webkit/domhtml_input_element.gen.go index ee9679ff..7d6625ff 100644 --- a/macos/webkit/domhtml_input_element.gen.go +++ b/macos/webkit/domhtml_input_element.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package webkit @@ -38,10 +38,6 @@ func (dc _DOMHTMLInputElementClass) Alloc() DOMHTMLInputElement { return rv } -func DOMHTMLInputElement_Alloc() DOMHTMLInputElement { - return DOMHTMLInputElementClass.Alloc() -} - func (dc _DOMHTMLInputElementClass) New() DOMHTMLInputElement { rv := objc.Call[DOMHTMLInputElement](dc, objc.Sel("new")) rv.Autorelease() diff --git a/macos/webkit/domhtml_label_element.gen.go b/macos/webkit/domhtml_label_element.gen.go index 9021585f..c6fe909c 100644 --- a/macos/webkit/domhtml_label_element.gen.go +++ b/macos/webkit/domhtml_label_element.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package webkit @@ -38,10 +38,6 @@ func (dc _DOMHTMLLabelElementClass) Alloc() DOMHTMLLabelElement { return rv } -func DOMHTMLLabelElement_Alloc() DOMHTMLLabelElement { - return DOMHTMLLabelElementClass.Alloc() -} - func (dc _DOMHTMLLabelElementClass) New() DOMHTMLLabelElement { rv := objc.Call[DOMHTMLLabelElement](dc, objc.Sel("new")) rv.Autorelease() diff --git a/macos/webkit/domhtml_legend_element.gen.go b/macos/webkit/domhtml_legend_element.gen.go index fa3c7070..750ca19f 100644 --- a/macos/webkit/domhtml_legend_element.gen.go +++ b/macos/webkit/domhtml_legend_element.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package webkit @@ -38,10 +38,6 @@ func (dc _DOMHTMLLegendElementClass) Alloc() DOMHTMLLegendElement { return rv } -func DOMHTMLLegendElement_Alloc() DOMHTMLLegendElement { - return DOMHTMLLegendElementClass.Alloc() -} - func (dc _DOMHTMLLegendElementClass) New() DOMHTMLLegendElement { rv := objc.Call[DOMHTMLLegendElement](dc, objc.Sel("new")) rv.Autorelease() diff --git a/macos/webkit/domhtml_link_element.gen.go b/macos/webkit/domhtml_link_element.gen.go index d3894175..43eb81d2 100644 --- a/macos/webkit/domhtml_link_element.gen.go +++ b/macos/webkit/domhtml_link_element.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package webkit @@ -38,10 +38,6 @@ func (dc _DOMHTMLLinkElementClass) Alloc() DOMHTMLLinkElement { return rv } -func DOMHTMLLinkElement_Alloc() DOMHTMLLinkElement { - return DOMHTMLLinkElementClass.Alloc() -} - func (dc _DOMHTMLLinkElementClass) New() DOMHTMLLinkElement { rv := objc.Call[DOMHTMLLinkElement](dc, objc.Sel("new")) rv.Autorelease() diff --git a/macos/webkit/domhtml_map_element.gen.go b/macos/webkit/domhtml_map_element.gen.go index 6aac98ef..75bd60f6 100644 --- a/macos/webkit/domhtml_map_element.gen.go +++ b/macos/webkit/domhtml_map_element.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package webkit @@ -38,10 +38,6 @@ func (dc _DOMHTMLMapElementClass) Alloc() DOMHTMLMapElement { return rv } -func DOMHTMLMapElement_Alloc() DOMHTMLMapElement { - return DOMHTMLMapElementClass.Alloc() -} - func (dc _DOMHTMLMapElementClass) New() DOMHTMLMapElement { rv := objc.Call[DOMHTMLMapElement](dc, objc.Sel("new")) rv.Autorelease() diff --git a/macos/webkit/domhtml_marquee_element.gen.go b/macos/webkit/domhtml_marquee_element.gen.go index 538b2327..f65f77c1 100644 --- a/macos/webkit/domhtml_marquee_element.gen.go +++ b/macos/webkit/domhtml_marquee_element.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package webkit @@ -38,10 +38,6 @@ func (dc _DOMHTMLMarqueeElementClass) Alloc() DOMHTMLMarqueeElement { return rv } -func DOMHTMLMarqueeElement_Alloc() DOMHTMLMarqueeElement { - return DOMHTMLMarqueeElementClass.Alloc() -} - func (dc _DOMHTMLMarqueeElementClass) New() DOMHTMLMarqueeElement { rv := objc.Call[DOMHTMLMarqueeElement](dc, objc.Sel("new")) rv.Autorelease() diff --git a/macos/webkit/domhtml_menu_element.gen.go b/macos/webkit/domhtml_menu_element.gen.go index 3efc6ae5..ac7b81d6 100644 --- a/macos/webkit/domhtml_menu_element.gen.go +++ b/macos/webkit/domhtml_menu_element.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package webkit @@ -38,10 +38,6 @@ func (dc _DOMHTMLMenuElementClass) Alloc() DOMHTMLMenuElement { return rv } -func DOMHTMLMenuElement_Alloc() DOMHTMLMenuElement { - return DOMHTMLMenuElementClass.Alloc() -} - func (dc _DOMHTMLMenuElementClass) New() DOMHTMLMenuElement { rv := objc.Call[DOMHTMLMenuElement](dc, objc.Sel("new")) rv.Autorelease() diff --git a/macos/webkit/domhtml_meta_element.gen.go b/macos/webkit/domhtml_meta_element.gen.go index 5d70de4c..feae29d7 100644 --- a/macos/webkit/domhtml_meta_element.gen.go +++ b/macos/webkit/domhtml_meta_element.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package webkit @@ -38,10 +38,6 @@ func (dc _DOMHTMLMetaElementClass) Alloc() DOMHTMLMetaElement { return rv } -func DOMHTMLMetaElement_Alloc() DOMHTMLMetaElement { - return DOMHTMLMetaElementClass.Alloc() -} - func (dc _DOMHTMLMetaElementClass) New() DOMHTMLMetaElement { rv := objc.Call[DOMHTMLMetaElement](dc, objc.Sel("new")) rv.Autorelease() diff --git a/macos/webkit/domhtml_mod_element.gen.go b/macos/webkit/domhtml_mod_element.gen.go index 66d0f24f..38e59310 100644 --- a/macos/webkit/domhtml_mod_element.gen.go +++ b/macos/webkit/domhtml_mod_element.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package webkit @@ -38,10 +38,6 @@ func (dc _DOMHTMLModElementClass) Alloc() DOMHTMLModElement { return rv } -func DOMHTMLModElement_Alloc() DOMHTMLModElement { - return DOMHTMLModElementClass.Alloc() -} - func (dc _DOMHTMLModElementClass) New() DOMHTMLModElement { rv := objc.Call[DOMHTMLModElement](dc, objc.Sel("new")) rv.Autorelease() diff --git a/macos/webkit/domhtml_object_element.gen.go b/macos/webkit/domhtml_object_element.gen.go index 9998a252..819c015c 100644 --- a/macos/webkit/domhtml_object_element.gen.go +++ b/macos/webkit/domhtml_object_element.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package webkit @@ -38,10 +38,6 @@ func (dc _DOMHTMLObjectElementClass) Alloc() DOMHTMLObjectElement { return rv } -func DOMHTMLObjectElement_Alloc() DOMHTMLObjectElement { - return DOMHTMLObjectElementClass.Alloc() -} - func (dc _DOMHTMLObjectElementClass) New() DOMHTMLObjectElement { rv := objc.Call[DOMHTMLObjectElement](dc, objc.Sel("new")) rv.Autorelease() diff --git a/macos/webkit/domhtml_opt_group_element.gen.go b/macos/webkit/domhtml_opt_group_element.gen.go index 7b1658d2..68ac47ed 100644 --- a/macos/webkit/domhtml_opt_group_element.gen.go +++ b/macos/webkit/domhtml_opt_group_element.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package webkit @@ -38,10 +38,6 @@ func (dc _DOMHTMLOptGroupElementClass) Alloc() DOMHTMLOptGroupElement { return rv } -func DOMHTMLOptGroupElement_Alloc() DOMHTMLOptGroupElement { - return DOMHTMLOptGroupElementClass.Alloc() -} - func (dc _DOMHTMLOptGroupElementClass) New() DOMHTMLOptGroupElement { rv := objc.Call[DOMHTMLOptGroupElement](dc, objc.Sel("new")) rv.Autorelease() diff --git a/macos/webkit/domhtml_option_element.gen.go b/macos/webkit/domhtml_option_element.gen.go index e33134f0..b46073ed 100644 --- a/macos/webkit/domhtml_option_element.gen.go +++ b/macos/webkit/domhtml_option_element.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package webkit @@ -38,10 +38,6 @@ func (dc _DOMHTMLOptionElementClass) Alloc() DOMHTMLOptionElement { return rv } -func DOMHTMLOptionElement_Alloc() DOMHTMLOptionElement { - return DOMHTMLOptionElementClass.Alloc() -} - func (dc _DOMHTMLOptionElementClass) New() DOMHTMLOptionElement { rv := objc.Call[DOMHTMLOptionElement](dc, objc.Sel("new")) rv.Autorelease() diff --git a/macos/webkit/domhtml_options_collection.gen.go b/macos/webkit/domhtml_options_collection.gen.go index 70c0a51d..a8934eba 100644 --- a/macos/webkit/domhtml_options_collection.gen.go +++ b/macos/webkit/domhtml_options_collection.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package webkit @@ -38,10 +38,6 @@ func (dc _DOMHTMLOptionsCollectionClass) Alloc() DOMHTMLOptionsCollection { return rv } -func DOMHTMLOptionsCollection_Alloc() DOMHTMLOptionsCollection { - return DOMHTMLOptionsCollectionClass.Alloc() -} - func (dc _DOMHTMLOptionsCollectionClass) New() DOMHTMLOptionsCollection { rv := objc.Call[DOMHTMLOptionsCollection](dc, objc.Sel("new")) rv.Autorelease() diff --git a/macos/webkit/domhtml_paragraph_element.gen.go b/macos/webkit/domhtml_paragraph_element.gen.go index 2ed879e5..6b277fc0 100644 --- a/macos/webkit/domhtml_paragraph_element.gen.go +++ b/macos/webkit/domhtml_paragraph_element.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package webkit @@ -38,10 +38,6 @@ func (dc _DOMHTMLParagraphElementClass) Alloc() DOMHTMLParagraphElement { return rv } -func DOMHTMLParagraphElement_Alloc() DOMHTMLParagraphElement { - return DOMHTMLParagraphElementClass.Alloc() -} - func (dc _DOMHTMLParagraphElementClass) New() DOMHTMLParagraphElement { rv := objc.Call[DOMHTMLParagraphElement](dc, objc.Sel("new")) rv.Autorelease() diff --git a/macos/webkit/domhtml_param_element.gen.go b/macos/webkit/domhtml_param_element.gen.go index e5d1f66b..8e23b694 100644 --- a/macos/webkit/domhtml_param_element.gen.go +++ b/macos/webkit/domhtml_param_element.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package webkit @@ -38,10 +38,6 @@ func (dc _DOMHTMLParamElementClass) Alloc() DOMHTMLParamElement { return rv } -func DOMHTMLParamElement_Alloc() DOMHTMLParamElement { - return DOMHTMLParamElementClass.Alloc() -} - func (dc _DOMHTMLParamElementClass) New() DOMHTMLParamElement { rv := objc.Call[DOMHTMLParamElement](dc, objc.Sel("new")) rv.Autorelease() diff --git a/macos/webkit/domhtml_pre_element.gen.go b/macos/webkit/domhtml_pre_element.gen.go index 48f4afdf..e62d2248 100644 --- a/macos/webkit/domhtml_pre_element.gen.go +++ b/macos/webkit/domhtml_pre_element.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package webkit @@ -38,10 +38,6 @@ func (dc _DOMHTMLPreElementClass) Alloc() DOMHTMLPreElement { return rv } -func DOMHTMLPreElement_Alloc() DOMHTMLPreElement { - return DOMHTMLPreElementClass.Alloc() -} - func (dc _DOMHTMLPreElementClass) New() DOMHTMLPreElement { rv := objc.Call[DOMHTMLPreElement](dc, objc.Sel("new")) rv.Autorelease() diff --git a/macos/webkit/domhtml_quote_element.gen.go b/macos/webkit/domhtml_quote_element.gen.go index 0b10c665..7a3370ee 100644 --- a/macos/webkit/domhtml_quote_element.gen.go +++ b/macos/webkit/domhtml_quote_element.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package webkit @@ -38,10 +38,6 @@ func (dc _DOMHTMLQuoteElementClass) Alloc() DOMHTMLQuoteElement { return rv } -func DOMHTMLQuoteElement_Alloc() DOMHTMLQuoteElement { - return DOMHTMLQuoteElementClass.Alloc() -} - func (dc _DOMHTMLQuoteElementClass) New() DOMHTMLQuoteElement { rv := objc.Call[DOMHTMLQuoteElement](dc, objc.Sel("new")) rv.Autorelease() diff --git a/macos/webkit/domhtml_script_element.gen.go b/macos/webkit/domhtml_script_element.gen.go index d9a05de8..5248b35e 100644 --- a/macos/webkit/domhtml_script_element.gen.go +++ b/macos/webkit/domhtml_script_element.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package webkit @@ -38,10 +38,6 @@ func (dc _DOMHTMLScriptElementClass) Alloc() DOMHTMLScriptElement { return rv } -func DOMHTMLScriptElement_Alloc() DOMHTMLScriptElement { - return DOMHTMLScriptElementClass.Alloc() -} - func (dc _DOMHTMLScriptElementClass) New() DOMHTMLScriptElement { rv := objc.Call[DOMHTMLScriptElement](dc, objc.Sel("new")) rv.Autorelease() diff --git a/macos/webkit/domhtml_select_element.gen.go b/macos/webkit/domhtml_select_element.gen.go index 9e315084..979fe16f 100644 --- a/macos/webkit/domhtml_select_element.gen.go +++ b/macos/webkit/domhtml_select_element.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package webkit @@ -38,10 +38,6 @@ func (dc _DOMHTMLSelectElementClass) Alloc() DOMHTMLSelectElement { return rv } -func DOMHTMLSelectElement_Alloc() DOMHTMLSelectElement { - return DOMHTMLSelectElementClass.Alloc() -} - func (dc _DOMHTMLSelectElementClass) New() DOMHTMLSelectElement { rv := objc.Call[DOMHTMLSelectElement](dc, objc.Sel("new")) rv.Autorelease() diff --git a/macos/webkit/domhtml_style_element.gen.go b/macos/webkit/domhtml_style_element.gen.go index 3a3130fd..7c43d11a 100644 --- a/macos/webkit/domhtml_style_element.gen.go +++ b/macos/webkit/domhtml_style_element.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package webkit @@ -38,10 +38,6 @@ func (dc _DOMHTMLStyleElementClass) Alloc() DOMHTMLStyleElement { return rv } -func DOMHTMLStyleElement_Alloc() DOMHTMLStyleElement { - return DOMHTMLStyleElementClass.Alloc() -} - func (dc _DOMHTMLStyleElementClass) New() DOMHTMLStyleElement { rv := objc.Call[DOMHTMLStyleElement](dc, objc.Sel("new")) rv.Autorelease() diff --git a/macos/webkit/domhtml_table_caption_element.gen.go b/macos/webkit/domhtml_table_caption_element.gen.go index d4bca104..c10f1f3b 100644 --- a/macos/webkit/domhtml_table_caption_element.gen.go +++ b/macos/webkit/domhtml_table_caption_element.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package webkit @@ -38,10 +38,6 @@ func (dc _DOMHTMLTableCaptionElementClass) Alloc() DOMHTMLTableCaptionElement { return rv } -func DOMHTMLTableCaptionElement_Alloc() DOMHTMLTableCaptionElement { - return DOMHTMLTableCaptionElementClass.Alloc() -} - func (dc _DOMHTMLTableCaptionElementClass) New() DOMHTMLTableCaptionElement { rv := objc.Call[DOMHTMLTableCaptionElement](dc, objc.Sel("new")) rv.Autorelease() diff --git a/macos/webkit/domhtml_table_cell_element.gen.go b/macos/webkit/domhtml_table_cell_element.gen.go index dc82b49f..4a03ffc6 100644 --- a/macos/webkit/domhtml_table_cell_element.gen.go +++ b/macos/webkit/domhtml_table_cell_element.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package webkit @@ -38,10 +38,6 @@ func (dc _DOMHTMLTableCellElementClass) Alloc() DOMHTMLTableCellElement { return rv } -func DOMHTMLTableCellElement_Alloc() DOMHTMLTableCellElement { - return DOMHTMLTableCellElementClass.Alloc() -} - func (dc _DOMHTMLTableCellElementClass) New() DOMHTMLTableCellElement { rv := objc.Call[DOMHTMLTableCellElement](dc, objc.Sel("new")) rv.Autorelease() diff --git a/macos/webkit/domhtml_table_col_element.gen.go b/macos/webkit/domhtml_table_col_element.gen.go index 472c36cc..1b435b8c 100644 --- a/macos/webkit/domhtml_table_col_element.gen.go +++ b/macos/webkit/domhtml_table_col_element.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package webkit @@ -38,10 +38,6 @@ func (dc _DOMHTMLTableColElementClass) Alloc() DOMHTMLTableColElement { return rv } -func DOMHTMLTableColElement_Alloc() DOMHTMLTableColElement { - return DOMHTMLTableColElementClass.Alloc() -} - func (dc _DOMHTMLTableColElementClass) New() DOMHTMLTableColElement { rv := objc.Call[DOMHTMLTableColElement](dc, objc.Sel("new")) rv.Autorelease() diff --git a/macos/webkit/domhtml_table_element.gen.go b/macos/webkit/domhtml_table_element.gen.go index a1d469a1..266ef816 100644 --- a/macos/webkit/domhtml_table_element.gen.go +++ b/macos/webkit/domhtml_table_element.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package webkit @@ -38,10 +38,6 @@ func (dc _DOMHTMLTableElementClass) Alloc() DOMHTMLTableElement { return rv } -func DOMHTMLTableElement_Alloc() DOMHTMLTableElement { - return DOMHTMLTableElementClass.Alloc() -} - func (dc _DOMHTMLTableElementClass) New() DOMHTMLTableElement { rv := objc.Call[DOMHTMLTableElement](dc, objc.Sel("new")) rv.Autorelease() diff --git a/macos/webkit/domhtml_table_row_element.gen.go b/macos/webkit/domhtml_table_row_element.gen.go index 7825b1cd..88f1d1f5 100644 --- a/macos/webkit/domhtml_table_row_element.gen.go +++ b/macos/webkit/domhtml_table_row_element.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package webkit @@ -38,10 +38,6 @@ func (dc _DOMHTMLTableRowElementClass) Alloc() DOMHTMLTableRowElement { return rv } -func DOMHTMLTableRowElement_Alloc() DOMHTMLTableRowElement { - return DOMHTMLTableRowElementClass.Alloc() -} - func (dc _DOMHTMLTableRowElementClass) New() DOMHTMLTableRowElement { rv := objc.Call[DOMHTMLTableRowElement](dc, objc.Sel("new")) rv.Autorelease() diff --git a/macos/webkit/domhtml_table_section_element.gen.go b/macos/webkit/domhtml_table_section_element.gen.go index b742764d..016b43ab 100644 --- a/macos/webkit/domhtml_table_section_element.gen.go +++ b/macos/webkit/domhtml_table_section_element.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package webkit @@ -38,10 +38,6 @@ func (dc _DOMHTMLTableSectionElementClass) Alloc() DOMHTMLTableSectionElement { return rv } -func DOMHTMLTableSectionElement_Alloc() DOMHTMLTableSectionElement { - return DOMHTMLTableSectionElementClass.Alloc() -} - func (dc _DOMHTMLTableSectionElementClass) New() DOMHTMLTableSectionElement { rv := objc.Call[DOMHTMLTableSectionElement](dc, objc.Sel("new")) rv.Autorelease() diff --git a/macos/webkit/domhtml_text_area_element.gen.go b/macos/webkit/domhtml_text_area_element.gen.go index c832826c..ef6ce38f 100644 --- a/macos/webkit/domhtml_text_area_element.gen.go +++ b/macos/webkit/domhtml_text_area_element.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package webkit @@ -38,10 +38,6 @@ func (dc _DOMHTMLTextAreaElementClass) Alloc() DOMHTMLTextAreaElement { return rv } -func DOMHTMLTextAreaElement_Alloc() DOMHTMLTextAreaElement { - return DOMHTMLTextAreaElementClass.Alloc() -} - func (dc _DOMHTMLTextAreaElementClass) New() DOMHTMLTextAreaElement { rv := objc.Call[DOMHTMLTextAreaElement](dc, objc.Sel("new")) rv.Autorelease() diff --git a/macos/webkit/domhtml_title_element.gen.go b/macos/webkit/domhtml_title_element.gen.go index a940000b..de737c42 100644 --- a/macos/webkit/domhtml_title_element.gen.go +++ b/macos/webkit/domhtml_title_element.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package webkit @@ -38,10 +38,6 @@ func (dc _DOMHTMLTitleElementClass) Alloc() DOMHTMLTitleElement { return rv } -func DOMHTMLTitleElement_Alloc() DOMHTMLTitleElement { - return DOMHTMLTitleElementClass.Alloc() -} - func (dc _DOMHTMLTitleElementClass) New() DOMHTMLTitleElement { rv := objc.Call[DOMHTMLTitleElement](dc, objc.Sel("new")) rv.Autorelease() diff --git a/macos/webkit/domhtmlbr_element.gen.go b/macos/webkit/domhtmlbr_element.gen.go index f1a5dc17..d51be213 100644 --- a/macos/webkit/domhtmlbr_element.gen.go +++ b/macos/webkit/domhtmlbr_element.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package webkit @@ -38,10 +38,6 @@ func (dc _DOMHTMLBRElementClass) Alloc() DOMHTMLBRElement { return rv } -func DOMHTMLBRElement_Alloc() DOMHTMLBRElement { - return DOMHTMLBRElementClass.Alloc() -} - func (dc _DOMHTMLBRElementClass) New() DOMHTMLBRElement { rv := objc.Call[DOMHTMLBRElement](dc, objc.Sel("new")) rv.Autorelease() diff --git a/macos/webkit/domhtmld_list_element.gen.go b/macos/webkit/domhtmld_list_element.gen.go index 1bbb13cc..1cb221b1 100644 --- a/macos/webkit/domhtmld_list_element.gen.go +++ b/macos/webkit/domhtmld_list_element.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package webkit @@ -38,10 +38,6 @@ func (dc _DOMHTMLDListElementClass) Alloc() DOMHTMLDListElement { return rv } -func DOMHTMLDListElement_Alloc() DOMHTMLDListElement { - return DOMHTMLDListElementClass.Alloc() -} - func (dc _DOMHTMLDListElementClass) New() DOMHTMLDListElement { rv := objc.Call[DOMHTMLDListElement](dc, objc.Sel("new")) rv.Autorelease() diff --git a/macos/webkit/domhtmlhr_element.gen.go b/macos/webkit/domhtmlhr_element.gen.go index aa360f44..9ef65a63 100644 --- a/macos/webkit/domhtmlhr_element.gen.go +++ b/macos/webkit/domhtmlhr_element.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package webkit @@ -38,10 +38,6 @@ func (dc _DOMHTMLHRElementClass) Alloc() DOMHTMLHRElement { return rv } -func DOMHTMLHRElement_Alloc() DOMHTMLHRElement { - return DOMHTMLHRElementClass.Alloc() -} - func (dc _DOMHTMLHRElementClass) New() DOMHTMLHRElement { rv := objc.Call[DOMHTMLHRElement](dc, objc.Sel("new")) rv.Autorelease() diff --git a/macos/webkit/domhtmli_frame_element.gen.go b/macos/webkit/domhtmli_frame_element.gen.go index a457ef17..29e74864 100644 --- a/macos/webkit/domhtmli_frame_element.gen.go +++ b/macos/webkit/domhtmli_frame_element.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package webkit @@ -38,10 +38,6 @@ func (dc _DOMHTMLIFrameElementClass) Alloc() DOMHTMLIFrameElement { return rv } -func DOMHTMLIFrameElement_Alloc() DOMHTMLIFrameElement { - return DOMHTMLIFrameElementClass.Alloc() -} - func (dc _DOMHTMLIFrameElementClass) New() DOMHTMLIFrameElement { rv := objc.Call[DOMHTMLIFrameElement](dc, objc.Sel("new")) rv.Autorelease() diff --git a/macos/webkit/domhtmlli_element.gen.go b/macos/webkit/domhtmlli_element.gen.go index 55099d03..47b778f6 100644 --- a/macos/webkit/domhtmlli_element.gen.go +++ b/macos/webkit/domhtmlli_element.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package webkit @@ -38,10 +38,6 @@ func (dc _DOMHTMLLIElementClass) Alloc() DOMHTMLLIElement { return rv } -func DOMHTMLLIElement_Alloc() DOMHTMLLIElement { - return DOMHTMLLIElementClass.Alloc() -} - func (dc _DOMHTMLLIElementClass) New() DOMHTMLLIElement { rv := objc.Call[DOMHTMLLIElement](dc, objc.Sel("new")) rv.Autorelease() diff --git a/macos/webkit/domhtmlo_list_element.gen.go b/macos/webkit/domhtmlo_list_element.gen.go index 38b330d3..fe555f2f 100644 --- a/macos/webkit/domhtmlo_list_element.gen.go +++ b/macos/webkit/domhtmlo_list_element.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package webkit @@ -38,10 +38,6 @@ func (dc _DOMHTMLOListElementClass) Alloc() DOMHTMLOListElement { return rv } -func DOMHTMLOListElement_Alloc() DOMHTMLOListElement { - return DOMHTMLOListElementClass.Alloc() -} - func (dc _DOMHTMLOListElementClass) New() DOMHTMLOListElement { rv := objc.Call[DOMHTMLOListElement](dc, objc.Sel("new")) rv.Autorelease() diff --git a/macos/webkit/domhtmlu_list_element.gen.go b/macos/webkit/domhtmlu_list_element.gen.go index 68470402..62bf58a0 100644 --- a/macos/webkit/domhtmlu_list_element.gen.go +++ b/macos/webkit/domhtmlu_list_element.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package webkit @@ -38,10 +38,6 @@ func (dc _DOMHTMLUListElementClass) Alloc() DOMHTMLUListElement { return rv } -func DOMHTMLUListElement_Alloc() DOMHTMLUListElement { - return DOMHTMLUListElementClass.Alloc() -} - func (dc _DOMHTMLUListElementClass) New() DOMHTMLUListElement { rv := objc.Call[DOMHTMLUListElement](dc, objc.Sel("new")) rv.Autorelease() diff --git a/macos/webkit/domrgb_color.gen.go b/macos/webkit/domrgb_color.gen.go index 382e1bbc..2c74ceb5 100644 --- a/macos/webkit/domrgb_color.gen.go +++ b/macos/webkit/domrgb_color.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package webkit @@ -38,10 +38,6 @@ func (dc _DOMRGBColorClass) Alloc() DOMRGBColor { return rv } -func DOMRGBColor_Alloc() DOMRGBColor { - return DOMRGBColorClass.Alloc() -} - func (dc _DOMRGBColorClass) New() DOMRGBColor { rv := objc.Call[DOMRGBColor](dc, objc.Sel("new")) rv.Autorelease() diff --git a/macos/webkit/domui_event.gen.go b/macos/webkit/domui_event.gen.go index 40f2c958..73879bda 100644 --- a/macos/webkit/domui_event.gen.go +++ b/macos/webkit/domui_event.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package webkit @@ -38,10 +38,6 @@ func (dc _DOMUIEventClass) Alloc() DOMUIEvent { return rv } -func DOMUIEvent_Alloc() DOMUIEvent { - return DOMUIEventClass.Alloc() -} - func (dc _DOMUIEventClass) New() DOMUIEvent { rv := objc.Call[DOMUIEvent](dc, objc.Sel("new")) rv.Autorelease() diff --git a/macos/webkit/domx_path_expression.gen.go b/macos/webkit/domx_path_expression.gen.go index ab6a396b..fe474bb9 100644 --- a/macos/webkit/domx_path_expression.gen.go +++ b/macos/webkit/domx_path_expression.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package webkit @@ -38,10 +38,6 @@ func (dc _DOMXPathExpressionClass) Alloc() DOMXPathExpression { return rv } -func DOMXPathExpression_Alloc() DOMXPathExpression { - return DOMXPathExpressionClass.Alloc() -} - func (dc _DOMXPathExpressionClass) New() DOMXPathExpression { rv := objc.Call[DOMXPathExpression](dc, objc.Sel("new")) rv.Autorelease() diff --git a/macos/webkit/domx_path_ns_resolver.gen.go b/macos/webkit/domx_path_ns_resolver.gen.go deleted file mode 100644 index 380f6d48..00000000 --- a/macos/webkit/domx_path_ns_resolver.gen.go +++ /dev/null @@ -1,18 +0,0 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY - -package webkit - -import ( - "github.com/progrium/macdriver/objc" -) - -// [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/webkit/domxpathnsresolver?language=objc -type PDOMXPathNSResolver interface { -} - -// A concrete type wrapper for the [PDOMXPathNSResolver] protocol. -type DOMXPathNSResolverWrapper struct { - objc.Object -} diff --git a/macos/webkit/domx_path_ns_resolver_protocol.gen.go b/macos/webkit/domx_path_ns_resolver_protocol.gen.go new file mode 100644 index 00000000..da9bb2b1 --- /dev/null +++ b/macos/webkit/domx_path_ns_resolver_protocol.gen.go @@ -0,0 +1,21 @@ +// Code generated by DarwinKit. DO NOT EDIT. + +package webkit + +import ( + "github.com/progrium/macdriver/objc" +) + +// [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/webkit/domxpathnsresolver?language=objc +type PDOMXPathNSResolver interface { +} + +// ensure impl type implements protocol interface +var _ PDOMXPathNSResolver = (*DOMXPathNSResolverObject)(nil) + +// A concrete type for the [PDOMXPathNSResolver] protocol. +type DOMXPathNSResolverObject struct { + objc.Object +} diff --git a/macos/webkit/domx_path_result.gen.go b/macos/webkit/domx_path_result.gen.go index cef5366d..73e5169f 100644 --- a/macos/webkit/domx_path_result.gen.go +++ b/macos/webkit/domx_path_result.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package webkit @@ -38,10 +38,6 @@ func (dc _DOMXPathResultClass) Alloc() DOMXPathResult { return rv } -func DOMXPathResult_Alloc() DOMXPathResult { - return DOMXPathResultClass.Alloc() -} - func (dc _DOMXPathResultClass) New() DOMXPathResult { rv := objc.Call[DOMXPathResult](dc, objc.Sel("new")) rv.Autorelease() diff --git a/macos/webkit/download.gen.go b/macos/webkit/download.gen.go index e0faa934..b0fdbbb2 100644 --- a/macos/webkit/download.gen.go +++ b/macos/webkit/download.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package webkit @@ -20,10 +20,10 @@ type _DownloadClass struct { type IDownload interface { objc.IObject Cancel(completionHandler func(resumeData []byte)) - Delegate() DownloadDelegateWrapper + 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] @@ -44,10 +44,6 @@ func (dc _DownloadClass) Alloc() Download { return rv } -func Download_Alloc() Download { - return DownloadClass.Alloc() -} - func (dc _DownloadClass) New() Download { rv := objc.Call[Download](dc, objc.Sel("new")) rv.Autorelease() @@ -70,11 +66,19 @@ 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 -func (d_ Download) Delegate() DownloadDelegateWrapper { - rv := objc.Call[DownloadDelegateWrapper](d_, objc.Sel("delegate")) +func (d_ Download) Delegate() DownloadDelegateObject { + rv := objc.Call[DownloadDelegateObject](d_, objc.Sel("delegate")) return rv } @@ -93,11 +97,3 @@ func (d_ Download) SetDelegate(value PDownloadDelegate) { func (d_ Download) SetDelegateObject(valueObject objc.IObject) { objc.Call[objc.Void](d_, objc.Sel("setDelegate:"), objc.Ptr(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 017a69e2..7775e422 100644 --- a/macos/webkit/download_delegate.gen.go +++ b/macos/webkit/download_delegate.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package webkit @@ -11,6 +11,10 @@ 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 @@ -18,14 +22,42 @@ 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 { - _DownloadDidFailWithErrorResumeData func(download Download, error foundation.Error, resumeData []byte) - _DownloadDidFinish func(download Download) + _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 } +// 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 } @@ -60,30 +92,100 @@ 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 +} -// A concrete type wrapper for the [PDownloadDelegate] protocol. -type DownloadDelegateWrapper struct { +// 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) + +// A concrete type for the [PDownloadDelegate] protocol. +type DownloadDelegateObject struct { objc.Object } -func (d_ DownloadDelegateWrapper) HasDownloadDidFailWithErrorResumeData() bool { +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:"), objc.Ptr(download), objc.Ptr(challenge), completionHandler) +} + +func (d_ DownloadDelegateObject) HasDownloadDidFailWithErrorResumeData() bool { return d_.RespondsToSelector(objc.Sel("download:didFailWithError:resumeData:")) } // Tells the delegate that the download failed, with error information and data you can use to restart the download. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/webkit/wkdownloaddelegate/3727345-download?language=objc -func (d_ DownloadDelegateWrapper) DownloadDidFailWithErrorResumeData(download IDownload, error foundation.IError, resumeData []byte) { +func (d_ DownloadDelegateObject) DownloadDidFailWithErrorResumeData(download Download, error foundation.Error, resumeData []byte) { objc.Call[objc.Void](d_, objc.Sel("download:didFailWithError:resumeData:"), objc.Ptr(download), objc.Ptr(error), resumeData) } -func (d_ DownloadDelegateWrapper) HasDownloadDidFinish() bool { +func (d_ DownloadDelegateObject) HasDownloadDidFinish() bool { return d_.RespondsToSelector(objc.Sel("downloadDidFinish:")) } // Tells the delegate that the download finished. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/webkit/wkdownloaddelegate/3727348-downloaddidfinish?language=objc -func (d_ DownloadDelegateWrapper) DownloadDidFinish(download IDownload) { +func (d_ DownloadDelegateObject) DownloadDidFinish(download Download) { objc.Call[objc.Void](d_, objc.Sel("downloadDidFinish:"), objc.Ptr(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:"), objc.Ptr(download), objc.Ptr(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:"), objc.Ptr(download), objc.Ptr(response), objc.Ptr(request), decisionHandler) +} diff --git a/macos/webkit/enumtypes.gen.go b/macos/webkit/enumtypes.gen.go index ba0fb1ab..d5517e12 100644 --- a/macos/webkit/enumtypes.gen.go +++ b/macos/webkit/enumtypes.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package webkit diff --git a/macos/webkit/find_configuration.gen.go b/macos/webkit/find_configuration.gen.go index 3f74c106..2bf79559 100644 --- a/macos/webkit/find_configuration.gen.go +++ b/macos/webkit/find_configuration.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package webkit @@ -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] @@ -44,10 +44,6 @@ func (fc _FindConfigurationClass) Alloc() FindConfiguration { return rv } -func FindConfiguration_Alloc() FindConfiguration { - return FindConfigurationClass.Alloc() -} - func (fc _FindConfigurationClass) New() FindConfiguration { rv := objc.Call[FindConfiguration](fc, objc.Sel("new")) rv.Autorelease() @@ -63,6 +59,21 @@ 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 @@ -92,18 +103,3 @@ 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/find_result.gen.go b/macos/webkit/find_result.gen.go index 829b3432..a166d770 100644 --- a/macos/webkit/find_result.gen.go +++ b/macos/webkit/find_result.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package webkit @@ -39,10 +39,6 @@ func (fc _FindResultClass) Alloc() FindResult { return rv } -func FindResult_Alloc() FindResult { - return FindResultClass.Alloc() -} - func (fc _FindResultClass) New() FindResult { rv := objc.Call[FindResult](fc, objc.Sel("new")) rv.Autorelease() diff --git a/macos/webkit/frame_info.gen.go b/macos/webkit/frame_info.gen.go index ac6a5419..cf418c83 100644 --- a/macos/webkit/frame_info.gen.go +++ b/macos/webkit/frame_info.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package webkit @@ -20,8 +20,8 @@ type _FrameInfoClass struct { type IFrameInfo interface { objc.IObject Request() foundation.URLRequest - IsMainFrame() bool SecurityOrigin() SecurityOrigin + IsMainFrame() bool } // An object that contains information about a frame on a webpage. [Full Topic] @@ -42,10 +42,6 @@ func (fc _FrameInfoClass) Alloc() FrameInfo { return rv } -func FrameInfo_Alloc() FrameInfo { - return FrameInfoClass.Alloc() -} - func (fc _FrameInfoClass) New() FrameInfo { rv := objc.Call[FrameInfo](fc, objc.Sel("new")) rv.Autorelease() @@ -69,14 +65,6 @@ func (f_ FrameInfo) Request() foundation.URLRequest { 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 -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 @@ -84,3 +72,11 @@ 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 +func (f_ FrameInfo) IsMainFrame() bool { + rv := objc.Call[bool](f_, objc.Sel("isMainFrame")) + return rv +} diff --git a/macos/webkit/http_cookie_store.gen.go b/macos/webkit/http_cookie_store.gen.go index 19266c64..b1cac780 100644 --- a/macos/webkit/http_cookie_store.gen.go +++ b/macos/webkit/http_cookie_store.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package webkit @@ -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) - SetCookieCompletionHandler(cookie foundation.IHTTPCookie, completionHandler func()) + GetAllCookies(completionHandler func(arg0 []foundation.HTTPCookie)) + DeleteCookieCompletionHandler(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] @@ -46,10 +46,6 @@ func (hc _HTTPCookieStoreClass) Alloc() HTTPCookieStore { return rv } -func HTTPCookieStore_Alloc() HTTPCookieStore { - return HTTPCookieStoreClass.Alloc() -} - func (hc _HTTPCookieStoreClass) New() HTTPCookieStore { rv := objc.Call[HTTPCookieStore](hc, objc.Sel("new")) rv.Autorelease() @@ -65,20 +61,6 @@ 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:"), objc.Ptr(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 @@ -94,11 +76,18 @@ func (h_ HTTPCookieStore) RemoveObserverObject(observerObject objc.IObject) { objc.Call[objc.Void](h_, objc.Sel("removeObserver:"), objc.Ptr(observerObject)) } -// Adds a cookie to the cookie store. [Full Topic] +// Fetches all stored cookies asynchronously and delivers them to the specified completion handler. [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:"), objc.Ptr(cookie), completionHandler) +// [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] +// +// [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:"), objc.Ptr(cookie), completionHandler) } // Adds an observer to the cookie store. [Full Topic] @@ -115,3 +104,10 @@ func (h_ HTTPCookieStore) AddObserver(observer PHTTPCookieStoreObserver) { func (h_ HTTPCookieStore) AddObserverObject(observerObject objc.IObject) { objc.Call[objc.Void](h_, objc.Sel("addObserver:"), objc.Ptr(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:"), objc.Ptr(cookie), completionHandler) +} diff --git a/macos/webkit/http_cookie_store_observer.gen.go b/macos/webkit/http_cookie_store_observer_protocol.gen.go similarity index 65% rename from macos/webkit/http_cookie_store_observer.gen.go rename to macos/webkit/http_cookie_store_observer_protocol.gen.go index 78a05912..060b8e65 100644 --- a/macos/webkit/http_cookie_store_observer.gen.go +++ b/macos/webkit/http_cookie_store_observer_protocol.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package webkit @@ -15,18 +15,21 @@ type PHTTPCookieStoreObserver interface { HasCookiesDidChangeInCookieStore() bool } -// A concrete type wrapper for the [PHTTPCookieStoreObserver] protocol. -type HTTPCookieStoreObserverWrapper struct { +// ensure impl type implements protocol interface +var _ PHTTPCookieStoreObserver = (*HTTPCookieStoreObserverObject)(nil) + +// A concrete type for the [PHTTPCookieStoreObserver] protocol. +type HTTPCookieStoreObserverObject struct { objc.Object } -func (h_ HTTPCookieStoreObserverWrapper) HasCookiesDidChangeInCookieStore() bool { +func (h_ HTTPCookieStoreObserverObject) HasCookiesDidChangeInCookieStore() bool { return h_.RespondsToSelector(objc.Sel("cookiesDidChangeInCookieStore:")) } // Tells the delegate that the cookies in the specified cookie store changed. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/webkit/wkhttpcookiestoreobserver/2882008-cookiesdidchangeincookiestore?language=objc -func (h_ HTTPCookieStoreObserverWrapper) CookiesDidChangeInCookieStore(cookieStore IHTTPCookieStore) { +func (h_ HTTPCookieStoreObserverObject) CookiesDidChangeInCookieStore(cookieStore HTTPCookieStore) { objc.Call[objc.Void](h_, objc.Sel("cookiesDidChangeInCookieStore:"), objc.Ptr(cookieStore)) } diff --git a/macos/webkit/navigation.gen.go b/macos/webkit/navigation.gen.go index 22cfa5ad..3fc27365 100644 --- a/macos/webkit/navigation.gen.go +++ b/macos/webkit/navigation.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package webkit @@ -39,10 +39,6 @@ func (nc _NavigationClass) Alloc() Navigation { return rv } -func Navigation_Alloc() Navigation { - return NavigationClass.Alloc() -} - func (nc _NavigationClass) New() Navigation { rv := objc.Call[Navigation](nc, objc.Sel("new")) rv.Autorelease() diff --git a/macos/webkit/navigation_action.gen.go b/macos/webkit/navigation_action.gen.go index 47663ac0..541af729 100644 --- a/macos/webkit/navigation_action.gen.go +++ b/macos/webkit/navigation_action.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package webkit @@ -20,13 +20,13 @@ type _NavigationActionClass struct { // An interface definition for the [NavigationAction] class. type INavigationAction interface { objc.IObject - Request() foundation.URLRequest - ModifierFlags() appkit.EventModifierFlags - ButtonNumber() int - SourceFrame() FrameInfo - TargetFrame() FrameInfo ShouldPerformDownload() bool + SourceFrame() FrameInfo NavigationType() NavigationType + TargetFrame() FrameInfo + ButtonNumber() int + Request() foundation.URLRequest + ModifierFlags() appkit.EventModifierFlags } // An object that contains information about an action that causes navigation to occur. [Full Topic] @@ -47,10 +47,6 @@ func (nc _NavigationActionClass) Alloc() NavigationAction { return rv } -func NavigationAction_Alloc() NavigationAction { - return NavigationActionClass.Alloc() -} - func (nc _NavigationActionClass) New() NavigationAction { rv := objc.Call[NavigationAction](nc, objc.Sel("new")) rv.Autorelease() @@ -66,27 +62,11 @@ func (n_ NavigationAction) Init() NavigationAction { return rv } -// The URL request object associated with the navigation action. [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")) - return rv -} - -// The modifier keys that were pressed at the time of the navigation request. [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")) - return rv -} - -// The number of the mouse button that caused the navigation request. [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/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/3727357-shouldperformdownload?language=objc +func (n_ NavigationAction) ShouldPerformDownload() bool { + rv := objc.Call[bool](n_, objc.Sel("shouldPerformDownload")) return rv } @@ -98,6 +78,14 @@ func (n_ NavigationAction) SourceFrame() FrameInfo { return rv } +// The type of action that triggered the navigation. [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")) + return rv +} + // The frame in which to display the new content. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/webkit/wknavigationaction/1401918-targetframe?language=objc @@ -106,18 +94,26 @@ func (n_ NavigationAction) TargetFrame() FrameInfo { return rv } -// A Boolean value that indicates whether the web content provided an attribute that indicates a download. [Full Topic] +// The number of the mouse button that caused the navigation request. [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/1401916-buttonnumber?language=objc +func (n_ NavigationAction) ButtonNumber() int { + rv := objc.Call[int](n_, objc.Sel("buttonNumber")) return rv } -// The type of action that triggered the navigation. [Full Topic] +// The URL request object associated with the navigation action. [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/1401910-request?language=objc +func (n_ NavigationAction) Request() foundation.URLRequest { + rv := objc.Call[foundation.URLRequest](n_, objc.Sel("request")) + return rv +} + +// The modifier keys that were pressed at the time of the navigation request. [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")) return rv } diff --git a/macos/webkit/navigation_delegate.gen.go b/macos/webkit/navigation_delegate.gen.go index 4f13f698..f8ea97b5 100644 --- a/macos/webkit/navigation_delegate.gen.go +++ b/macos/webkit/navigation_delegate.gen.go @@ -1,8 +1,9 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package webkit import ( + "github.com/progrium/macdriver/macos/foundation" "github.com/progrium/macdriver/objc" ) @@ -11,36 +12,181 @@ import ( // [Full Topic]: https://developer.apple.com/documentation/webkit/wknavigationdelegate?language=objc type PNavigationDelegate interface { // optional - WebViewWebContentProcessDidTerminate(webView WebView) - HasWebViewWebContentProcessDidTerminate() bool + 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 } // A delegate implementation builder for the [PNavigationDelegate] protocol. type NavigationDelegate struct { - _WebViewWebContentProcessDidTerminate func(webView WebView) - _WebViewDidFinishNavigation func(webView WebView, navigation Navigation) + _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) HasWebViewWebContentProcessDidTerminate() bool { - return di._WebViewWebContentProcessDidTerminate != nil +func (di *NavigationDelegate) HasWebViewAuthenticationChallengeShouldAllowDeprecatedTLS() bool { + return di._WebViewAuthenticationChallengeShouldAllowDeprecatedTLS != nil } -// Tells the delegate that the web view’s content process was terminated. [Full Topic] +// 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/1455639-webviewwebcontentprocessdidtermi?language=objc -func (di *NavigationDelegate) SetWebViewWebContentProcessDidTerminate(f func(webView WebView)) { - di._WebViewWebContentProcessDidTerminate = f +// [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 } -// Tells the delegate that the web view’s content process was terminated. [Full Topic] +// 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/1455639-webviewwebcontentprocessdidtermi?language=objc -func (di *NavigationDelegate) WebViewWebContentProcessDidTerminate(webView WebView) { - di._WebViewWebContentProcessDidTerminate(webView) +// [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 +} + +// 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 @@ -59,30 +205,284 @@ func (di *NavigationDelegate) SetWebViewDidFinishNavigation(f func(webView WebVi func (di *NavigationDelegate) WebViewDidFinishNavigation(webView WebView, navigation Navigation) { di._WebViewDidFinishNavigation(webView, navigation) } - -// A concrete type wrapper for the [PNavigationDelegate] protocol. -type NavigationDelegateWrapper struct { - objc.Object +func (di *NavigationDelegate) HasWebViewWebContentProcessDidTerminate() bool { + return di._WebViewWebContentProcessDidTerminate != nil } -func (n_ NavigationDelegateWrapper) HasWebViewWebContentProcessDidTerminate() bool { - return n_.RespondsToSelector(objc.Sel("webViewWebContentProcessDidTerminate:")) +// Tells the delegate that the web view’s content process was terminated. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/webkit/wknavigationdelegate/1455639-webviewwebcontentprocessdidtermi?language=objc +func (di *NavigationDelegate) SetWebViewWebContentProcessDidTerminate(f func(webView WebView)) { + di._WebViewWebContentProcessDidTerminate = f } // Tells the delegate that the web view’s content process was terminated. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/webkit/wknavigationdelegate/1455639-webviewwebcontentprocessdidtermi?language=objc -func (n_ NavigationDelegateWrapper) WebViewWebContentProcessDidTerminate(webView IWebView) { - objc.Call[objc.Void](n_, objc.Sel("webViewWebContentProcessDidTerminate:"), objc.Ptr(webView)) +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 } -func (n_ NavigationDelegateWrapper) HasWebViewDidFinishNavigation() bool { +// 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 +} + +// Tells the delegate that navigation from the main frame has started. [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 +} + +// Tells the delegate that navigation from the main frame has started. [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) +} + +// ensure impl type implements protocol interface +var _ PNavigationDelegate = (*NavigationDelegateObject)(nil) + +// A concrete type for the [PNavigationDelegate] protocol. +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:"), objc.Ptr(webView), objc.Ptr(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:"), objc.Ptr(webView), objc.Ptr(navigation), objc.Ptr(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:"), objc.Ptr(webView), objc.Ptr(navigation), objc.Ptr(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:"), objc.Ptr(webView), objc.Ptr(navigationAction), objc.Ptr(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:"), objc.Ptr(webView), objc.Ptr(navigationResponse), objc.Ptr(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:"), objc.Ptr(webView), objc.Ptr(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_ NavigationDelegateWrapper) WebViewDidFinishNavigation(webView IWebView, navigation INavigation) { +func (n_ NavigationDelegateObject) WebViewDidFinishNavigation(webView WebView, navigation Navigation) { objc.Call[objc.Void](n_, objc.Sel("webView:didFinishNavigation:"), objc.Ptr(webView), objc.Ptr(navigation)) } + +func (n_ NavigationDelegateObject) HasWebViewWebContentProcessDidTerminate() bool { + return n_.RespondsToSelector(objc.Sel("webViewWebContentProcessDidTerminate:")) +} + +// Tells the delegate that the web view’s content process was terminated. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/webkit/wknavigationdelegate/1455639-webviewwebcontentprocessdidtermi?language=objc +func (n_ NavigationDelegateObject) WebViewWebContentProcessDidTerminate(webView WebView) { + objc.Call[objc.Void](n_, objc.Sel("webViewWebContentProcessDidTerminate:"), objc.Ptr(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:"), objc.Ptr(webView), objc.Ptr(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:"), objc.Ptr(webView), objc.Ptr(navigationAction), objc.Ptr(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:"), objc.Ptr(webView), objc.Ptr(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:"), objc.Ptr(webView), objc.Ptr(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:"), objc.Ptr(webView), objc.Ptr(navigationResponse), decisionHandler) +} + +func (n_ NavigationDelegateObject) HasWebViewDidStartProvisionalNavigation() bool { + return n_.RespondsToSelector(objc.Sel("webView:didStartProvisionalNavigation:")) +} + +// Tells the delegate that navigation from the main frame has started. [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:"), objc.Ptr(webView), objc.Ptr(navigation)) +} diff --git a/macos/webkit/navigation_response.gen.go b/macos/webkit/navigation_response.gen.go index 6a418829..a87a5a4c 100644 --- a/macos/webkit/navigation_response.gen.go +++ b/macos/webkit/navigation_response.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package webkit @@ -19,8 +19,8 @@ type _NavigationResponseClass struct { // An interface definition for the [NavigationResponse] class. type INavigationResponse interface { objc.IObject - IsForMainFrame() bool Response() foundation.URLResponse + IsForMainFrame() bool CanShowMIMEType() bool } @@ -42,10 +42,6 @@ func (nc _NavigationResponseClass) Alloc() NavigationResponse { return rv } -func NavigationResponse_Alloc() NavigationResponse { - return NavigationResponseClass.Alloc() -} - func (nc _NavigationResponseClass) New() NavigationResponse { rv := objc.Call[NavigationResponse](nc, objc.Sel("new")) rv.Autorelease() @@ -61,14 +57,6 @@ func (n_ NavigationResponse) Init() NavigationResponse { 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 -func (n_ NavigationResponse) IsForMainFrame() bool { - rv := objc.Call[bool](n_, objc.Sel("isForMainFrame")) - return rv -} - // The frame’s response. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/webkit/wknavigationresponse/1459484-response?language=objc @@ -77,6 +65,14 @@ func (n_ NavigationResponse) Response() foundation.URLResponse { 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 +func (n_ NavigationResponse) IsForMainFrame() bool { + rv := objc.Call[bool](n_, objc.Sel("isForMainFrame")) + 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 41a3cc65..69de490a 100644 --- a/macos/webkit/open_panel_parameters.gen.go +++ b/macos/webkit/open_panel_parameters.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package webkit @@ -18,8 +18,8 @@ type _OpenPanelParametersClass struct { // An interface definition for the [OpenPanelParameters] class. type IOpenPanelParameters interface { objc.IObject - AllowsMultipleSelection() bool AllowsDirectories() bool + AllowsMultipleSelection() bool } // The configuration details of a file upload control in your web content. [Full Topic] @@ -40,10 +40,6 @@ func (oc _OpenPanelParametersClass) Alloc() OpenPanelParameters { return rv } -func OpenPanelParameters_Alloc() OpenPanelParameters { - return OpenPanelParametersClass.Alloc() -} - func (oc _OpenPanelParametersClass) New() OpenPanelParameters { rv := objc.Call[OpenPanelParameters](oc, objc.Sel("new")) rv.Autorelease() @@ -59,14 +55,6 @@ func (o_ OpenPanelParameters) Init() OpenPanelParameters { 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 -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 @@ -74,3 +62,11 @@ 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 +func (o_ OpenPanelParameters) AllowsMultipleSelection() bool { + rv := objc.Call[bool](o_, objc.Sel("allowsMultipleSelection")) + return rv +} diff --git a/macos/webkit/pdf_configuration.gen.go b/macos/webkit/pdf_configuration.gen.go index c24779d5..ef14f668 100644 --- a/macos/webkit/pdf_configuration.gen.go +++ b/macos/webkit/pdf_configuration.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package webkit @@ -41,10 +41,6 @@ func (pc _PDFConfigurationClass) Alloc() PDFConfiguration { return rv } -func PDFConfiguration_Alloc() PDFConfiguration { - return PDFConfigurationClass.Alloc() -} - func (pc _PDFConfigurationClass) New() PDFConfiguration { rv := objc.Call[PDFConfiguration](pc, objc.Sel("new")) rv.Autorelease() diff --git a/macos/webkit/preferences.gen.go b/macos/webkit/preferences.gen.go index cebfb96d..bed543f7 100644 --- a/macos/webkit/preferences.gen.go +++ b/macos/webkit/preferences.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package webkit @@ -18,16 +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) - IsTextInteractionEnabled() bool - SetTextInteractionEnabled(value bool) JavaScriptCanOpenWindowsAutomatically() bool SetJavaScriptCanOpenWindowsAutomatically(value bool) + IsTextInteractionEnabled() bool + SetTextInteractionEnabled(value bool) TabFocusesLinks() bool SetTabFocusesLinks(value bool) - IsFraudulentWebsiteWarningEnabled() bool - SetFraudulentWebsiteWarningEnabled(value bool) } // An object that encapsulates the standard behaviors to apply to websites. [Full Topic] @@ -48,10 +52,6 @@ func (pc _PreferencesClass) Alloc() Preferences { return rv } -func Preferences_Alloc() Preferences { - return PreferencesClass.Alloc() -} - func (pc _PreferencesClass) New() Preferences { rv := objc.Call[Preferences](pc, objc.Sel("new")) rv.Autorelease() @@ -67,6 +67,51 @@ 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 @@ -82,21 +127,6 @@ 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 @@ -112,6 +142,21 @@ 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] +// +// [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 pressing the tab key changes the focus to links and form controls. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/webkit/wkpreferences/2818595-tabfocuseslinks?language=objc @@ -126,18 +171,3 @@ 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 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/process_pool.gen.go b/macos/webkit/process_pool.gen.go index 5cd8bb72..ecce8c8b 100644 --- a/macos/webkit/process_pool.gen.go +++ b/macos/webkit/process_pool.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package webkit @@ -38,10 +38,6 @@ func (pc _ProcessPoolClass) Alloc() ProcessPool { return rv } -func ProcessPool_Alloc() ProcessPool { - return ProcessPoolClass.Alloc() -} - func (pc _ProcessPoolClass) New() ProcessPool { rv := objc.Call[ProcessPool](pc, objc.Sel("new")) rv.Autorelease() diff --git a/macos/webkit/protocols.gen.m b/macos/webkit/protocols.gen.m index 55b81015..2814aec5 100644 --- a/macos/webkit/protocols.gen.m +++ b/macos/webkit/protocols.gen.m @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. #import "WebKit/WebKit.h" diff --git a/macos/webkit/script_message.gen.go b/macos/webkit/script_message.gen.go index 7f6dd1b0..0e152177 100644 --- a/macos/webkit/script_message.gen.go +++ b/macos/webkit/script_message.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package webkit @@ -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] @@ -42,10 +42,6 @@ func (sc _ScriptMessageClass) Alloc() ScriptMessage { return rv } -func ScriptMessage_Alloc() ScriptMessage { - return ScriptMessageClass.Alloc() -} - func (sc _ScriptMessageClass) New() ScriptMessage { rv := objc.Call[ScriptMessage](sc, objc.Sel("new")) rv.Autorelease() @@ -61,22 +57,6 @@ func (s_ ScriptMessage) Init() ScriptMessage { return rv } -// The name of the message handler to which the message is sent. [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")) - return rv -} - -// The body of the message. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/webkit/wkscriptmessage/1417901-body?language=objc -func (s_ ScriptMessage) Body() objc.Object { - rv := objc.Call[objc.Object](s_, objc.Sel("body")) - return rv -} - // The frame that sent the message. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/webkit/wkscriptmessage/1417906-frameinfo?language=objc @@ -92,3 +72,19 @@ func (s_ ScriptMessage) World() ContentWorld { rv := objc.Call[ContentWorld](s_, objc.Sel("world")) return rv } + +// The body of the message. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/webkit/wkscriptmessage/1417901-body?language=objc +func (s_ ScriptMessage) Body() objc.Object { + rv := objc.Call[objc.Object](s_, objc.Sel("body")) + return rv +} + +// The name of the message handler to which the message is sent. [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")) + return rv +} diff --git a/macos/webkit/script_message_handler.gen.go b/macos/webkit/script_message_handler_protocol.gen.go similarity index 65% rename from macos/webkit/script_message_handler.gen.go rename to macos/webkit/script_message_handler_protocol.gen.go index 0f718fd4..c8e3cbcf 100644 --- a/macos/webkit/script_message_handler.gen.go +++ b/macos/webkit/script_message_handler_protocol.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package webkit @@ -15,18 +15,21 @@ type PScriptMessageHandler interface { HasUserContentControllerDidReceiveScriptMessage() bool } -// A concrete type wrapper for the [PScriptMessageHandler] protocol. -type ScriptMessageHandlerWrapper struct { +// ensure impl type implements protocol interface +var _ PScriptMessageHandler = (*ScriptMessageHandlerObject)(nil) + +// A concrete type for the [PScriptMessageHandler] protocol. +type ScriptMessageHandlerObject struct { objc.Object } -func (s_ ScriptMessageHandlerWrapper) HasUserContentControllerDidReceiveScriptMessage() bool { +func (s_ ScriptMessageHandlerObject) HasUserContentControllerDidReceiveScriptMessage() bool { return s_.RespondsToSelector(objc.Sel("userContentController:didReceiveScriptMessage:")) } // Tells the handler that a webpage sent a script message. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/webkit/wkscriptmessagehandler/1396222-usercontentcontroller?language=objc -func (s_ ScriptMessageHandlerWrapper) UserContentControllerDidReceiveScriptMessage(userContentController IUserContentController, message IScriptMessage) { +func (s_ ScriptMessageHandlerObject) UserContentControllerDidReceiveScriptMessage(userContentController UserContentController, message ScriptMessage) { objc.Call[objc.Void](s_, objc.Sel("userContentController:didReceiveScriptMessage:"), objc.Ptr(userContentController), objc.Ptr(message)) } diff --git a/macos/webkit/script_message_handler_with_reply.gen.go b/macos/webkit/script_message_handler_with_reply.gen.go deleted file mode 100644 index 9ca41c83..00000000 --- a/macos/webkit/script_message_handler_with_reply.gen.go +++ /dev/null @@ -1,3 +0,0 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY - -package webkit diff --git a/macos/webkit/script_message_handler_with_reply_protocol.gen.go b/macos/webkit/script_message_handler_with_reply_protocol.gen.go new file mode 100644 index 00000000..1fb849ec --- /dev/null +++ b/macos/webkit/script_message_handler_with_reply_protocol.gen.go @@ -0,0 +1,3 @@ +// Code generated by DarwinKit. DO NOT EDIT. + +package webkit diff --git a/macos/webkit/security_origin.gen.go b/macos/webkit/security_origin.gen.go index c7153e85..ca3d00bf 100644 --- a/macos/webkit/security_origin.gen.go +++ b/macos/webkit/security_origin.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package webkit @@ -18,8 +18,8 @@ type _SecurityOriginClass struct { // An interface definition for the [SecurityOrigin] class. type ISecurityOrigin interface { objc.IObject - Host() string Port() int + Host() string Protocol() string } @@ -41,10 +41,6 @@ func (sc _SecurityOriginClass) Alloc() SecurityOrigin { return rv } -func SecurityOrigin_Alloc() SecurityOrigin { - return SecurityOriginClass.Alloc() -} - func (sc _SecurityOriginClass) New() SecurityOrigin { rv := objc.Call[SecurityOrigin](sc, objc.Sel("new")) rv.Autorelease() @@ -60,14 +56,6 @@ func (s_ SecurityOrigin) Init() SecurityOrigin { return rv } -// The security origin’s host. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/webkit/wksecurityorigin/1536794-host?language=objc -func (s_ SecurityOrigin) Host() string { - rv := objc.Call[string](s_, objc.Sel("host")) - return rv -} - // The security origin's port. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/webkit/wksecurityorigin/1536403-port?language=objc @@ -76,6 +64,14 @@ func (s_ SecurityOrigin) Port() int { return rv } +// The security origin’s host. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/webkit/wksecurityorigin/1536794-host?language=objc +func (s_ SecurityOrigin) Host() string { + rv := objc.Call[string](s_, objc.Sel("host")) + 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 9f586c5f..96a54d08 100644 --- a/macos/webkit/snapshot_configuration.gen.go +++ b/macos/webkit/snapshot_configuration.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package webkit @@ -20,10 +20,10 @@ type _SnapshotConfigurationClass struct { // An interface definition for the [SnapshotConfiguration] class. type ISnapshotConfiguration interface { objc.IObject - AfterScreenUpdates() bool - SetAfterScreenUpdates(value bool) Rect() coregraphics.Rect SetRect(value coregraphics.Rect) + AfterScreenUpdates() bool + SetAfterScreenUpdates(value bool) SnapshotWidth() foundation.Number SetSnapshotWidth(value foundation.INumber) } @@ -46,10 +46,6 @@ func (sc _SnapshotConfigurationClass) Alloc() SnapshotConfiguration { return rv } -func SnapshotConfiguration_Alloc() SnapshotConfiguration { - return SnapshotConfigurationClass.Alloc() -} - func (sc _SnapshotConfigurationClass) New() SnapshotConfiguration { rv := objc.Call[SnapshotConfiguration](sc, objc.Sel("new")) rv.Autorelease() @@ -65,21 +61,6 @@ func (s_ SnapshotConfiguration) Init() SnapshotConfiguration { return rv } -// 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 -func (s_ SnapshotConfiguration) AfterScreenUpdates() bool { - rv := objc.Call[bool](s_, objc.Sel("afterScreenUpdates")) - return rv -} - -// 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 -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 @@ -95,6 +76,21 @@ 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 +func (s_ SnapshotConfiguration) AfterScreenUpdates() bool { + rv := objc.Call[bool](s_, objc.Sel("afterScreenUpdates")) + return rv +} + +// 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 +func (s_ SnapshotConfiguration) SetAfterScreenUpdates(value bool) { + objc.Call[objc.Void](s_, objc.Sel("setAfterScreenUpdates:"), 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 72605b32..4a0af71b 100644 --- a/macos/webkit/ui_delegate.gen.go +++ b/macos/webkit/ui_delegate.gen.go @@ -1,8 +1,9 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package webkit import ( + "github.com/progrium/macdriver/macos/foundation" "github.com/progrium/macdriver/objc" ) @@ -10,16 +11,131 @@ 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 { - _WebViewDidClose func(webView WebView) + _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 +} + +// 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 } @@ -37,19 +153,106 @@ 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) +} -// A concrete type wrapper for the [PUIDelegate] protocol. -type UIDelegateWrapper struct { +// ensure impl type implements protocol interface +var _ PUIDelegate = (*UIDelegateObject)(nil) + +// A concrete type for the [PUIDelegate] protocol. +type UIDelegateObject struct { objc.Object } -func (u_ UIDelegateWrapper) HasWebViewDidClose() bool { +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:"), objc.Ptr(webView), message, objc.Ptr(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:"), objc.Ptr(webView), objc.Ptr(configuration), objc.Ptr(navigationAction), objc.Ptr(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:"), objc.Ptr(webView), message, objc.Ptr(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:"), objc.Ptr(webView), objc.Ptr(parameters), objc.Ptr(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:"), objc.Ptr(webView), objc.Ptr(origin), objc.Ptr(frame), type_, decisionHandler) +} + +func (u_ UIDelegateObject) HasWebViewDidClose() bool { return u_.RespondsToSelector(objc.Sel("webViewDidClose:")) } // Notifies your app that the DOM window closed successfully. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/webkit/wkuidelegate/1537390-webviewdidclose?language=objc -func (u_ UIDelegateWrapper) WebViewDidClose(webView IWebView) { +func (u_ UIDelegateObject) WebViewDidClose(webView WebView) { objc.Call[objc.Void](u_, objc.Sel("webViewDidClose:"), objc.Ptr(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:"), objc.Ptr(webView), prompt, defaultText, objc.Ptr(frame), completionHandler) +} diff --git a/macos/webkit/url_scheme_handler.gen.go b/macos/webkit/url_scheme_handler.gen.go deleted file mode 100644 index 3b0b67c9..00000000 --- a/macos/webkit/url_scheme_handler.gen.go +++ /dev/null @@ -1,33 +0,0 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY - -package webkit - -import ( - "github.com/progrium/macdriver/objc" -) - -// A protocol for loading resources with URL schemes that WebKit doesn't handle. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/webkit/wkurlschemehandler?language=objc -type PURLSchemeHandler interface { - // optional - WebViewStartURLSchemeTask(webView WebView, urlSchemeTask URLSchemeTaskWrapper) - HasWebViewStartURLSchemeTask() bool -} - -// A concrete type wrapper for the [PURLSchemeHandler] protocol. -type URLSchemeHandlerWrapper struct { - objc.Object -} - -func (u_ URLSchemeHandlerWrapper) HasWebViewStartURLSchemeTask() bool { - return u_.RespondsToSelector(objc.Sel("webView:startURLSchemeTask:")) -} - -// Asks your handler to begin loading the data for the specified resource. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/webkit/wkurlschemehandler/2890834-webview?language=objc -func (u_ URLSchemeHandlerWrapper) WebViewStartURLSchemeTask(webView IWebView, urlSchemeTask PURLSchemeTask) { - po1 := objc.WrapAsProtocol("WKURLSchemeTask", urlSchemeTask) - objc.Call[objc.Void](u_, objc.Sel("webView:startURLSchemeTask:"), objc.Ptr(webView), po1) -} diff --git a/macos/webkit/url_scheme_handler_protocol.gen.go b/macos/webkit/url_scheme_handler_protocol.gen.go new file mode 100644 index 00000000..df1a7445 --- /dev/null +++ b/macos/webkit/url_scheme_handler_protocol.gen.go @@ -0,0 +1,52 @@ +// Code generated by DarwinKit. DO NOT EDIT. + +package webkit + +import ( + "github.com/progrium/macdriver/objc" +) + +// A protocol for loading resources with URL schemes that WebKit doesn't handle. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/webkit/wkurlschemehandler?language=objc +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 +var _ PURLSchemeHandler = (*URLSchemeHandlerObject)(nil) + +// A concrete type for the [PURLSchemeHandler] protocol. +type URLSchemeHandlerObject struct { + objc.Object +} + +func (u_ URLSchemeHandlerObject) HasWebViewStartURLSchemeTask() bool { + return u_.RespondsToSelector(objc.Sel("webView:startURLSchemeTask:")) +} + +// Asks your handler to begin loading the data for the specified resource. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/webkit/wkurlschemehandler/2890834-webview?language=objc +func (u_ URLSchemeHandlerObject) WebViewStartURLSchemeTask(webView WebView, urlSchemeTask URLSchemeTaskObject) { + po1 := objc.WrapAsProtocol("WKURLSchemeTask", urlSchemeTask) + objc.Call[objc.Void](u_, objc.Sel("webView:startURLSchemeTask:"), objc.Ptr(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:"), objc.Ptr(webView), po1) +} diff --git a/macos/webkit/url_scheme_task.gen.go b/macos/webkit/url_scheme_task_protocol.gen.go similarity index 72% rename from macos/webkit/url_scheme_task.gen.go rename to macos/webkit/url_scheme_task_protocol.gen.go index 98d3258d..4b1f676d 100644 --- a/macos/webkit/url_scheme_task.gen.go +++ b/macos/webkit/url_scheme_task_protocol.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package webkit @@ -12,83 +12,86 @@ import ( // [Full Topic]: https://developer.apple.com/documentation/webkit/wkurlschemetask?language=objc type PURLSchemeTask interface { // optional - DidFailWithError(error foundation.Error) - HasDidFailWithError() bool - - // optional - DidFinish() - HasDidFinish() bool + DidReceiveResponse(response foundation.URLResponse) + HasDidReceiveResponse() bool // optional DidReceiveData(data []byte) HasDidReceiveData() bool // optional - DidReceiveResponse(response foundation.URLResponse) - HasDidReceiveResponse() bool + DidFinish() + HasDidFinish() bool // optional - Request() foundation.IURLRequest + DidFailWithError(error foundation.Error) + HasDidFailWithError() bool + + // optional + Request() foundation.URLRequest HasRequest() bool } -// A concrete type wrapper for the [PURLSchemeTask] protocol. -type URLSchemeTaskWrapper struct { +// ensure impl type implements protocol interface +var _ PURLSchemeTask = (*URLSchemeTaskObject)(nil) + +// A concrete type for the [PURLSchemeTask] protocol. +type URLSchemeTaskObject struct { objc.Object } -func (u_ URLSchemeTaskWrapper) HasDidFailWithError() bool { - return u_.RespondsToSelector(objc.Sel("didFailWithError:")) +func (u_ URLSchemeTaskObject) HasDidReceiveResponse() bool { + return u_.RespondsToSelector(objc.Sel("didReceiveResponse:")) } -// Completes the task and reports the specified error back to WebKit. [Full Topic] +// Returns a URL response to WebKit with information about the requested resource. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/webkit/wkurlschemetask/2890841-didfailwitherror?language=objc -func (u_ URLSchemeTaskWrapper) DidFailWithError(error foundation.IError) { - objc.Call[objc.Void](u_, objc.Sel("didFailWithError:"), objc.Ptr(error)) +// [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:"), objc.Ptr(response)) } -func (u_ URLSchemeTaskWrapper) HasDidFinish() bool { - return u_.RespondsToSelector(objc.Sel("didFinish")) +func (u_ URLSchemeTaskObject) HasDidReceiveData() bool { + return u_.RespondsToSelector(objc.Sel("didReceiveData:")) } -// Signals the successful completion of the task. [Full Topic] +// Sends some or all of the resource data to WebKit. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/webkit/wkurlschemetask/2890837-didfinish?language=objc -func (u_ URLSchemeTaskWrapper) DidFinish() { - objc.Call[objc.Void](u_, objc.Sel("didFinish")) +// [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_ URLSchemeTaskWrapper) HasDidReceiveData() bool { - return u_.RespondsToSelector(objc.Sel("didReceiveData:")) +func (u_ URLSchemeTaskObject) HasDidFinish() bool { + return u_.RespondsToSelector(objc.Sel("didFinish")) } -// Sends some or all of the resource data to WebKit. [Full Topic] +// Signals the successful completion of the task. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/webkit/wkurlschemetask/2890836-didreceivedata?language=objc -func (u_ URLSchemeTaskWrapper) DidReceiveData(data []byte) { - objc.Call[objc.Void](u_, objc.Sel("didReceiveData:"), data) +// [Full Topic]: https://developer.apple.com/documentation/webkit/wkurlschemetask/2890837-didfinish?language=objc +func (u_ URLSchemeTaskObject) DidFinish() { + objc.Call[objc.Void](u_, objc.Sel("didFinish")) } -func (u_ URLSchemeTaskWrapper) HasDidReceiveResponse() bool { - return u_.RespondsToSelector(objc.Sel("didReceiveResponse:")) +func (u_ URLSchemeTaskObject) HasDidFailWithError() bool { + return u_.RespondsToSelector(objc.Sel("didFailWithError:")) } -// Returns a URL response to WebKit with information about the requested resource. [Full Topic] +// Completes the task and reports the specified error back to WebKit. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/webkit/wkurlschemetask/2890839-didreceiveresponse?language=objc -func (u_ URLSchemeTaskWrapper) DidReceiveResponse(response foundation.IURLResponse) { - objc.Call[objc.Void](u_, objc.Sel("didReceiveResponse:"), objc.Ptr(response)) +// [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:"), objc.Ptr(error)) } -func (u_ URLSchemeTaskWrapper) HasRequest() bool { +func (u_ URLSchemeTaskObject) HasRequest() bool { return u_.RespondsToSelector(objc.Sel("request")) } // Information about the resource to load. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/webkit/wkurlschemetask/2890840-request?language=objc -func (u_ URLSchemeTaskWrapper) Request() foundation.URLRequest { +func (u_ URLSchemeTaskObject) Request() foundation.URLRequest { rv := objc.Call[foundation.URLRequest](u_, objc.Sel("request")) return rv } diff --git a/macos/webkit/user_content_controller.gen.go b/macos/webkit/user_content_controller.gen.go index 35c815b6..bbe0cee5 100644 --- a/macos/webkit/user_content_controller.gen.go +++ b/macos/webkit/user_content_controller.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package webkit @@ -18,18 +18,21 @@ type _UserContentControllerClass struct { // An interface definition for the [UserContentController] class. type IUserContentController interface { objc.IObject - RemoveScriptMessageHandlerForNameContentWorld(name string, contentWorld IContentWorld) + RemoveAllScriptMessageHandlers() AddScriptMessageHandlerName(scriptMessageHandler PScriptMessageHandler, name string) AddScriptMessageHandlerObjectName(scriptMessageHandlerObject objc.IObject, name string) - RemoveContentRuleList(contentRuleList IContentRuleList) - RemoveAllScriptMessageHandlersFromContentWorld(contentWorld IContentWorld) - RemoveAllContentRuleLists() - RemoveAllScriptMessageHandlers() - AddContentRuleList(contentRuleList IContentRuleList) + AddScriptMessageHandlerContentWorldName(scriptMessageHandler PScriptMessageHandler, world IContentWorld, name string) + AddScriptMessageHandlerObjectContentWorldName(scriptMessageHandlerObject objc.IObject, world IContentWorld, name string) RemoveAllUserScripts() + RemoveAllContentRuleLists() 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 } @@ -51,10 +54,6 @@ func (uc _UserContentControllerClass) Alloc() UserContentController { return rv } -func UserContentController_Alloc() UserContentController { - return UserContentControllerClass.Alloc() -} - func (uc _UserContentControllerClass) New() UserContentController { rv := objc.Call[UserContentController](uc, objc.Sel("new")) rv.Autorelease() @@ -70,11 +69,11 @@ func (u_ UserContentController) Init() UserContentController { return rv } -// Uninstalls a custom message handler from the specified content world in 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/3585116-removescriptmessagehandlerfornam?language=objc -func (u_ UserContentController) RemoveScriptMessageHandlerForNameContentWorld(name string, contentWorld IContentWorld) { - objc.Call[objc.Void](u_, objc.Sel("removeScriptMessageHandlerForName:contentWorld:"), name, objc.Ptr(contentWorld)) +// [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")) } // Installs a message handler that you can call from your JavaScript code. [Full Topic] @@ -92,18 +91,26 @@ func (u_ UserContentController) AddScriptMessageHandlerObjectName(scriptMessageH objc.Call[objc.Void](u_, objc.Sel("addScriptMessageHandler:name:"), objc.Ptr(scriptMessageHandlerObject), name) } -// Removes the specified rule list from the content controller object. [Full Topic] +// 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/2902763-removecontentrulelist?language=objc -func (u_ UserContentController) RemoveContentRuleList(contentRuleList IContentRuleList) { - objc.Call[objc.Void](u_, objc.Sel("removeContentRuleList:"), objc.Ptr(contentRuleList)) +// [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, objc.Ptr(world), name) } -// Uninstalls all custom message handlers from the specified content world in your JavaScript code. [Full Topic] +// 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/3585115-removeallscriptmessagehandlersfr?language=objc -func (u_ UserContentController) RemoveAllScriptMessageHandlersFromContentWorld(contentWorld IContentWorld) { - objc.Call[objc.Void](u_, objc.Sel("removeAllScriptMessageHandlersFromContentWorld:"), objc.Ptr(contentWorld)) +// [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:"), objc.Ptr(scriptMessageHandlerObject), objc.Ptr(world), name) +} + +// Removes all user scripts from the web view. [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")) } // Removes all rules lists from the content controller. [Full Topic] @@ -113,11 +120,19 @@ func (u_ UserContentController) RemoveAllContentRuleLists() { objc.Call[objc.Void](u_, objc.Sel("removeAllContentRuleLists")) } -// Uninstalls all custom message handlers associated with the user content controller. [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/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/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, objc.Ptr(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:"), objc.Ptr(scriptMessageHandlerWithReplyObject), objc.Ptr(contentWorld), name) } // Adds the specified content rule list to the content controller object. [Full Topic] @@ -127,26 +142,18 @@ func (u_ UserContentController) AddContentRuleList(contentRuleList IContentRuleL objc.Call[objc.Void](u_, objc.Sel("addContentRuleList:"), objc.Ptr(contentRuleList)) } -// Removes all user scripts from the web view. [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")) -} - -// Installs a message handler that returns a reply to your JavaScript code. [Full Topic] +// Uninstalls the custom message handler with the specified name from 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, objc.Ptr(contentWorld), name) +// [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) } -// Installs a message handler that returns a reply to your JavaScript code. [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/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:"), objc.Ptr(scriptMessageHandlerWithReplyObject), objc.Ptr(contentWorld), name) +// [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:"), objc.Ptr(contentWorld)) } // Injects the specified script into the webpage’s content. [Full Topic] @@ -156,6 +163,20 @@ func (u_ UserContentController) AddUserScript(userScript IUserScript) { objc.Call[objc.Void](u_, objc.Sel("addUserScript:"), objc.Ptr(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, objc.Ptr(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:"), objc.Ptr(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 795cd6b1..a9c29967 100644 --- a/macos/webkit/user_script.gen.go +++ b/macos/webkit/user_script.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package webkit @@ -18,8 +18,8 @@ type _UserScriptClass struct { // An interface definition for the [UserScript] class. type IUserScript interface { objc.IObject - Source() string IsForMainFrameOnly() bool + Source() string InjectionTime() UserScriptInjectionTime } @@ -36,6 +36,20 @@ 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, objc.Ptr(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 @@ -55,10 +69,6 @@ func (uc _UserScriptClass) Alloc() UserScript { return rv } -func UserScript_Alloc() UserScript { - return UserScriptClass.Alloc() -} - func (uc _UserScriptClass) New() UserScript { rv := objc.Call[UserScript](uc, objc.Sel("new")) rv.Autorelease() @@ -74,14 +84,6 @@ func (u_ UserScript) Init() UserScript { return rv } -// The script’s source code. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/webkit/wkuserscript/1537787-source?language=objc -func (u_ UserScript) Source() string { - rv := objc.Call[string](u_, objc.Sel("source")) - 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 @@ -90,6 +92,14 @@ func (u_ UserScript) IsForMainFrameOnly() bool { return rv } +// The script’s source code. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/webkit/wkuserscript/1537787-source?language=objc +func (u_ UserScript) Source() string { + rv := objc.Call[string](u_, objc.Sel("source")) + 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_archive.gen.go b/macos/webkit/web_archive.gen.go index 8f4c6756..7f9f19bd 100644 --- a/macos/webkit/web_archive.gen.go +++ b/macos/webkit/web_archive.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package webkit @@ -38,10 +38,6 @@ func (wc _WebArchiveClass) Alloc() WebArchive { return rv } -func WebArchive_Alloc() WebArchive { - return WebArchiveClass.Alloc() -} - func (wc _WebArchiveClass) New() WebArchive { rv := objc.Call[WebArchive](wc, objc.Sel("new")) rv.Autorelease() diff --git a/macos/webkit/web_back_forward_list.gen.go b/macos/webkit/web_back_forward_list.gen.go index 477fa771..323391aa 100644 --- a/macos/webkit/web_back_forward_list.gen.go +++ b/macos/webkit/web_back_forward_list.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package webkit @@ -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 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 [webkit/webframe/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 { @@ -38,10 +38,6 @@ func (wc _WebBackForwardListClass) Alloc() WebBackForwardList { return rv } -func WebBackForwardList_Alloc() WebBackForwardList { - return WebBackForwardListClass.Alloc() -} - func (wc _WebBackForwardListClass) New() WebBackForwardList { rv := objc.Call[WebBackForwardList](wc, objc.Sel("new")) rv.Autorelease() diff --git a/macos/webkit/web_data_source.gen.go b/macos/webkit/web_data_source.gen.go index 68c4be82..a38ac55d 100644 --- a/macos/webkit/web_data_source.gen.go +++ b/macos/webkit/web_data_source.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package webkit @@ -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 registerViewClass:representationClass:forMIMEType: 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 [webkit/webview/registerviewclass] WebView class method. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/webkit/webdatasource?language=objc type WebDataSource struct { @@ -38,10 +38,6 @@ func (wc _WebDataSourceClass) Alloc() WebDataSource { return rv } -func WebDataSource_Alloc() WebDataSource { - return WebDataSourceClass.Alloc() -} - func (wc _WebDataSourceClass) New() WebDataSource { rv := objc.Call[WebDataSource](wc, objc.Sel("new")) rv.Autorelease() diff --git a/macos/webkit/web_document_representation.gen.go b/macos/webkit/web_document_representation_protocol.gen.go similarity index 58% rename from macos/webkit/web_document_representation.gen.go rename to macos/webkit/web_document_representation_protocol.gen.go index 06f49c3b..d327586e 100644 --- a/macos/webkit/web_document_representation.gen.go +++ b/macos/webkit/web_document_representation_protocol.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package webkit @@ -6,13 +6,16 @@ import ( "github.com/progrium/macdriver/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 registerViewClass:representationClass:forMIMEType: 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 [webkit/webview/registerviewclass] method. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/webkit/webdocumentrepresentation?language=objc type PWebDocumentRepresentation interface { } -// A concrete type wrapper for the [PWebDocumentRepresentation] protocol. -type WebDocumentRepresentationWrapper struct { +// ensure impl type implements protocol interface +var _ PWebDocumentRepresentation = (*WebDocumentRepresentationObject)(nil) + +// A concrete type for the [PWebDocumentRepresentation] protocol. +type WebDocumentRepresentationObject struct { objc.Object } diff --git a/macos/webkit/web_document_searching.gen.go b/macos/webkit/web_document_searching_protocol.gen.go similarity index 62% rename from macos/webkit/web_document_searching.gen.go rename to macos/webkit/web_document_searching_protocol.gen.go index 90eb4273..6900084b 100644 --- a/macos/webkit/web_document_searching.gen.go +++ b/macos/webkit/web_document_searching_protocol.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package webkit @@ -12,7 +12,10 @@ import ( type PWebDocumentSearching interface { } -// A concrete type wrapper for the [PWebDocumentSearching] protocol. -type WebDocumentSearchingWrapper struct { +// ensure impl type implements protocol interface +var _ PWebDocumentSearching = (*WebDocumentSearchingObject)(nil) + +// A concrete type for the [PWebDocumentSearching] protocol. +type WebDocumentSearchingObject struct { objc.Object } diff --git a/macos/webkit/web_document_text.gen.go b/macos/webkit/web_document_text_protocol.gen.go similarity index 67% rename from macos/webkit/web_document_text.gen.go rename to macos/webkit/web_document_text_protocol.gen.go index 9d51795a..204e8a4b 100644 --- a/macos/webkit/web_document_text.gen.go +++ b/macos/webkit/web_document_text_protocol.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package webkit @@ -12,7 +12,10 @@ import ( type PWebDocumentText interface { } -// A concrete type wrapper for the [PWebDocumentText] protocol. -type WebDocumentTextWrapper struct { +// ensure impl type implements protocol interface +var _ PWebDocumentText = (*WebDocumentTextObject)(nil) + +// A concrete type for the [PWebDocumentText] protocol. +type WebDocumentTextObject struct { objc.Object } diff --git a/macos/webkit/web_document_view.gen.go b/macos/webkit/web_document_view_protocol.gen.go similarity index 54% rename from macos/webkit/web_document_view.gen.go rename to macos/webkit/web_document_view_protocol.gen.go index bf92f836..16d3f2aa 100644 --- a/macos/webkit/web_document_view.gen.go +++ b/macos/webkit/web_document_view_protocol.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package webkit @@ -6,13 +6,16 @@ import ( "github.com/progrium/macdriver/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 registerViewClass:representationClass:forMIMEType: 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 [webkit/webview/registerviewclass] 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 { } -// A concrete type wrapper for the [PWebDocumentView] protocol. -type WebDocumentViewWrapper struct { +// ensure impl type implements protocol interface +var _ PWebDocumentView = (*WebDocumentViewObject)(nil) + +// A concrete type for the [PWebDocumentView] protocol. +type WebDocumentViewObject struct { objc.Object } diff --git a/macos/webkit/web_download.gen.go b/macos/webkit/web_download.gen.go index 11cbaae9..a6c7db14 100644 --- a/macos/webkit/web_download.gen.go +++ b/macos/webkit/web_download.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package webkit @@ -39,10 +39,6 @@ func (wc _WebDownloadClass) Alloc() WebDownload { return rv } -func WebDownload_Alloc() WebDownload { - return WebDownloadClass.Alloc() -} - func (wc _WebDownloadClass) New() WebDownload { rv := objc.Call[WebDownload](wc, objc.Sel("new")) rv.Autorelease() diff --git a/macos/webkit/web_download_delegate.gen.go b/macos/webkit/web_download_delegate.gen.go index e42f23fa..23230ed6 100644 --- a/macos/webkit/web_download_delegate.gen.go +++ b/macos/webkit/web_download_delegate.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package webkit @@ -16,7 +16,10 @@ type PWebDownloadDelegate interface { type WebDownloadDelegate struct { } -// A concrete type wrapper for the [PWebDownloadDelegate] protocol. -type WebDownloadDelegateWrapper struct { +// ensure impl type implements protocol interface +var _ PWebDownloadDelegate = (*WebDownloadDelegateObject)(nil) + +// A concrete type for the [PWebDownloadDelegate] protocol. +type WebDownloadDelegateObject struct { objc.Object } diff --git a/macos/webkit/web_editing_delegate.gen.go b/macos/webkit/web_editing_delegate.gen.go index 16342aec..2e20f724 100644 --- a/macos/webkit/web_editing_delegate.gen.go +++ b/macos/webkit/web_editing_delegate.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package webkit @@ -16,7 +16,10 @@ type PWebEditingDelegate interface { type WebEditingDelegate struct { } -// A concrete type wrapper for the [PWebEditingDelegate] protocol. -type WebEditingDelegateWrapper struct { +// ensure impl type implements protocol interface +var _ PWebEditingDelegate = (*WebEditingDelegateObject)(nil) + +// A concrete type for the [PWebEditingDelegate] protocol. +type WebEditingDelegateObject struct { objc.Object } diff --git a/macos/webkit/web_frame.gen.go b/macos/webkit/web_frame.gen.go index 7a9d58bb..671750f8 100644 --- a/macos/webkit/web_frame.gen.go +++ b/macos/webkit/web_frame.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package webkit @@ -38,10 +38,6 @@ func (wc _WebFrameClass) Alloc() WebFrame { return rv } -func WebFrame_Alloc() WebFrame { - return WebFrameClass.Alloc() -} - func (wc _WebFrameClass) New() WebFrame { rv := objc.Call[WebFrame](wc, objc.Sel("new")) rv.Autorelease() diff --git a/macos/webkit/web_frame_load_delegate.gen.go b/macos/webkit/web_frame_load_delegate.gen.go index f5a5a421..8dbbeedd 100644 --- a/macos/webkit/web_frame_load_delegate.gen.go +++ b/macos/webkit/web_frame_load_delegate.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package webkit @@ -16,7 +16,10 @@ type PWebFrameLoadDelegate interface { type WebFrameLoadDelegate struct { } -// A concrete type wrapper for the [PWebFrameLoadDelegate] protocol. -type WebFrameLoadDelegateWrapper struct { +// ensure impl type implements protocol interface +var _ PWebFrameLoadDelegate = (*WebFrameLoadDelegateObject)(nil) + +// A concrete type for the [PWebFrameLoadDelegate] protocol. +type WebFrameLoadDelegateObject struct { objc.Object } diff --git a/macos/webkit/web_frame_view.gen.go b/macos/webkit/web_frame_view.gen.go index 3a494973..ec69d7f6 100644 --- a/macos/webkit/web_frame_view.gen.go +++ b/macos/webkit/web_frame_view.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package webkit @@ -40,10 +40,6 @@ func (wc _WebFrameViewClass) Alloc() WebFrameView { return rv } -func WebFrameView_Alloc() WebFrameView { - return WebFrameViewClass.Alloc() -} - func (wc _WebFrameViewClass) New() WebFrameView { rv := objc.Call[WebFrameView](wc, objc.Sel("new")) rv.Autorelease() diff --git a/macos/webkit/web_history.gen.go b/macos/webkit/web_history.gen.go index eaf7ec2c..a81654fc 100644 --- a/macos/webkit/web_history.gen.go +++ b/macos/webkit/web_history.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package webkit @@ -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 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] +// 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] // // [Full Topic]: https://developer.apple.com/documentation/webkit/webhistory?language=objc type WebHistory struct { @@ -38,10 +38,6 @@ func (wc _WebHistoryClass) Alloc() WebHistory { return rv } -func WebHistory_Alloc() WebHistory { - return WebHistoryClass.Alloc() -} - func (wc _WebHistoryClass) New() WebHistory { rv := objc.Call[WebHistory](wc, objc.Sel("new")) rv.Autorelease() diff --git a/macos/webkit/web_history_item.gen.go b/macos/webkit/web_history_item.gen.go index 845ab994..dc207ebd 100644 --- a/macos/webkit/web_history_item.gen.go +++ b/macos/webkit/web_history_item.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package webkit @@ -38,10 +38,6 @@ func (wc _WebHistoryItemClass) Alloc() WebHistoryItem { return rv } -func WebHistoryItem_Alloc() WebHistoryItem { - return WebHistoryItemClass.Alloc() -} - func (wc _WebHistoryItemClass) New() WebHistoryItem { rv := objc.Call[WebHistoryItem](wc, objc.Sel("new")) rv.Autorelease() diff --git a/macos/webkit/web_open_panel_result_listener.gen.go b/macos/webkit/web_open_panel_result_listener_protocol.gen.go similarity index 65% rename from macos/webkit/web_open_panel_result_listener.gen.go rename to macos/webkit/web_open_panel_result_listener_protocol.gen.go index fa5382fe..fa412ad5 100644 --- a/macos/webkit/web_open_panel_result_listener.gen.go +++ b/macos/webkit/web_open_panel_result_listener_protocol.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package webkit @@ -12,7 +12,10 @@ import ( type PWebOpenPanelResultListener interface { } -// A concrete type wrapper for the [PWebOpenPanelResultListener] protocol. -type WebOpenPanelResultListenerWrapper struct { +// ensure impl type implements protocol interface +var _ PWebOpenPanelResultListener = (*WebOpenPanelResultListenerObject)(nil) + +// A concrete type for the [PWebOpenPanelResultListener] protocol. +type WebOpenPanelResultListenerObject struct { objc.Object } diff --git a/macos/webkit/web_plug_in_view_factory.gen.go b/macos/webkit/web_plug_in_view_factory.gen.go deleted file mode 100644 index e6f7560d..00000000 --- a/macos/webkit/web_plug_in_view_factory.gen.go +++ /dev/null @@ -1,18 +0,0 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY - -package webkit - -import ( - "github.com/progrium/macdriver/objc" -) - -// [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/webkit/webpluginviewfactory?language=objc -type PWebPlugInViewFactory interface { -} - -// A concrete type wrapper for the [PWebPlugInViewFactory] protocol. -type WebPlugInViewFactoryWrapper struct { - objc.Object -} diff --git a/macos/webkit/web_plug_in_view_factory_protocol.gen.go b/macos/webkit/web_plug_in_view_factory_protocol.gen.go new file mode 100644 index 00000000..80d0e900 --- /dev/null +++ b/macos/webkit/web_plug_in_view_factory_protocol.gen.go @@ -0,0 +1,21 @@ +// Code generated by DarwinKit. DO NOT EDIT. + +package webkit + +import ( + "github.com/progrium/macdriver/objc" +) + +// [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/webkit/webpluginviewfactory?language=objc +type PWebPlugInViewFactory interface { +} + +// ensure impl type implements protocol interface +var _ PWebPlugInViewFactory = (*WebPlugInViewFactoryObject)(nil) + +// A concrete type for the [PWebPlugInViewFactory] protocol. +type WebPlugInViewFactoryObject struct { + objc.Object +} diff --git a/macos/webkit/web_policy_decision_listener.gen.go b/macos/webkit/web_policy_decision_listener_protocol.gen.go similarity index 61% rename from macos/webkit/web_policy_decision_listener.gen.go rename to macos/webkit/web_policy_decision_listener_protocol.gen.go index 358f89cc..9f31319b 100644 --- a/macos/webkit/web_policy_decision_listener.gen.go +++ b/macos/webkit/web_policy_decision_listener_protocol.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package webkit @@ -12,7 +12,10 @@ import ( type PWebPolicyDecisionListener interface { } -// A concrete type wrapper for the [PWebPolicyDecisionListener] protocol. -type WebPolicyDecisionListenerWrapper struct { +// ensure impl type implements protocol interface +var _ PWebPolicyDecisionListener = (*WebPolicyDecisionListenerObject)(nil) + +// A concrete type for the [PWebPolicyDecisionListener] protocol. +type WebPolicyDecisionListenerObject struct { objc.Object } diff --git a/macos/webkit/web_policy_delegate.gen.go b/macos/webkit/web_policy_delegate.gen.go index edf50ae3..4953ec71 100644 --- a/macos/webkit/web_policy_delegate.gen.go +++ b/macos/webkit/web_policy_delegate.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package webkit @@ -16,7 +16,10 @@ type PWebPolicyDelegate interface { type WebPolicyDelegate struct { } -// A concrete type wrapper for the [PWebPolicyDelegate] protocol. -type WebPolicyDelegateWrapper struct { +// ensure impl type implements protocol interface +var _ PWebPolicyDelegate = (*WebPolicyDelegateObject)(nil) + +// A concrete type for the [PWebPolicyDelegate] protocol. +type WebPolicyDelegateObject struct { objc.Object } diff --git a/macos/webkit/web_preferences.gen.go b/macos/webkit/web_preferences.gen.go index efcd98c4..b766b3fa 100644 --- a/macos/webkit/web_preferences.gen.go +++ b/macos/webkit/web_preferences.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package webkit @@ -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 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] +// 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] // // [Full Topic]: https://developer.apple.com/documentation/webkit/webpreferences?language=objc type WebPreferences struct { @@ -38,10 +38,6 @@ func (wc _WebPreferencesClass) Alloc() WebPreferences { return rv } -func WebPreferences_Alloc() WebPreferences { - return WebPreferencesClass.Alloc() -} - func (wc _WebPreferencesClass) New() WebPreferences { rv := objc.Call[WebPreferences](wc, objc.Sel("new")) rv.Autorelease() diff --git a/macos/webkit/web_resource.gen.go b/macos/webkit/web_resource.gen.go index 60b995a2..a5c3c2bc 100644 --- a/macos/webkit/web_resource.gen.go +++ b/macos/webkit/web_resource.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package webkit @@ -21,8 +21,8 @@ type IWebResource interface { objc.IObject MIMEType() string FrameName() string - Data() []byte URL() foundation.URL + Data() []byte TextEncodingName() string } @@ -58,10 +58,6 @@ func (wc _WebResourceClass) Alloc() WebResource { return rv } -func WebResource_Alloc() WebResource { - return WebResourceClass.Alloc() -} - func (wc _WebResourceClass) New() WebResource { rv := objc.Call[WebResource](wc, objc.Sel("new")) rv.Autorelease() @@ -93,14 +89,6 @@ func (w_ WebResource) FrameName() string { return rv } -// The receiver’s data. [Full Topic] -// -// [Full Topic]: https://developer.apple.com/documentation/webkit/webresource/1392191-data?language=objc -func (w_ WebResource) Data() []byte { - rv := objc.Call[[]byte](w_, objc.Sel("data")) - return rv -} - // The receiver’s URL. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/webkit/webresource/1392195-url?language=objc @@ -109,6 +97,14 @@ func (w_ WebResource) URL() foundation.URL { return rv } +// The receiver’s data. [Full Topic] +// +// [Full Topic]: https://developer.apple.com/documentation/webkit/webresource/1392191-data?language=objc +func (w_ WebResource) Data() []byte { + rv := objc.Call[[]byte](w_, objc.Sel("data")) + 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_resource_load_delegate.gen.go b/macos/webkit/web_resource_load_delegate.gen.go index 93207b06..324f8bac 100644 --- a/macos/webkit/web_resource_load_delegate.gen.go +++ b/macos/webkit/web_resource_load_delegate.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package webkit @@ -16,7 +16,10 @@ type PWebResourceLoadDelegate interface { type WebResourceLoadDelegate struct { } -// A concrete type wrapper for the [PWebResourceLoadDelegate] protocol. -type WebResourceLoadDelegateWrapper struct { +// ensure impl type implements protocol interface +var _ PWebResourceLoadDelegate = (*WebResourceLoadDelegateObject)(nil) + +// A concrete type for the [PWebResourceLoadDelegate] protocol. +type WebResourceLoadDelegateObject struct { objc.Object } diff --git a/macos/webkit/web_script_object.gen.go b/macos/webkit/web_script_object.gen.go index 83402541..e4accd9c 100644 --- a/macos/webkit/web_script_object.gen.go +++ b/macos/webkit/web_script_object.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package webkit @@ -38,10 +38,6 @@ func (wc _WebScriptObjectClass) Alloc() WebScriptObject { return rv } -func WebScriptObject_Alloc() WebScriptObject { - return WebScriptObjectClass.Alloc() -} - func (wc _WebScriptObjectClass) New() WebScriptObject { rv := objc.Call[WebScriptObject](wc, objc.Sel("new")) rv.Autorelease() diff --git a/macos/webkit/web_ui_delegate.gen.go b/macos/webkit/web_ui_delegate.gen.go index 7e9aedbe..302d96a7 100644 --- a/macos/webkit/web_ui_delegate.gen.go +++ b/macos/webkit/web_ui_delegate.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package webkit @@ -16,7 +16,10 @@ type PWebUIDelegate interface { type WebUIDelegate struct { } -// A concrete type wrapper for the [PWebUIDelegate] protocol. -type WebUIDelegateWrapper struct { +// ensure impl type implements protocol interface +var _ PWebUIDelegate = (*WebUIDelegateObject)(nil) + +// A concrete type for the [PWebUIDelegate] protocol. +type WebUIDelegateObject struct { objc.Object } diff --git a/macos/webkit/web_undefined.gen.go b/macos/webkit/web_undefined.gen.go index e2f7bfcd..7dd13627 100644 --- a/macos/webkit/web_undefined.gen.go +++ b/macos/webkit/web_undefined.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package webkit @@ -38,10 +38,6 @@ func (wc _WebUndefinedClass) Alloc() WebUndefined { return rv } -func WebUndefined_Alloc() WebUndefined { - return WebUndefinedClass.Alloc() -} - func (wc _WebUndefinedClass) New() WebUndefined { rv := objc.Call[WebUndefined](wc, objc.Sel("new")) rv.Autorelease() diff --git a/macos/webkit/web_view.gen.go b/macos/webkit/web_view.gen.go index a5f16156..4a15d56e 100644 --- a/macos/webkit/web_view.gen.go +++ b/macos/webkit/web_view.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package webkit @@ -21,70 +21,77 @@ type _WebViewClass struct { // An interface definition for the [WebView] class. type IWebView interface { appkit.IView - 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 - 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 - 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)) + 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)) + GoToBackForwardListItem(item IBackForwardListItem) Navigation ResumeDownloadFromResumeDataCompletionHandler(resumeData []byte, completionHandler func(arg0 Download)) + 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 LoadFileURLAllowingReadAccessToURL(URL foundation.IURL, readAccessURL foundation.IURL) Navigation LoadHTMLStringBaseURL(string_ string, baseURL foundation.IURL) Navigation - SetCameraCaptureStateCompletionHandler(state MediaCaptureState, completionHandler func()) - CreatePDFWithConfigurationCompletionHandler(pdfConfiguration IPDFConfiguration, completionHandler func(pdfDocumentData []byte, error foundation.Error)) - CreateWebArchiveDataWithCompletionHandler(completionHandler func(arg0 []byte, arg1 foundation.Error)) + GoBack() Navigation + EvaluateJavaScriptCompletionHandler(javaScriptString string, completionHandler func(arg0 objc.Object, error foundation.Error)) + PauseAllMediaPlaybackWithCompletionHandler(completionHandler func()) + SetMagnificationCenteredAtPoint(magnification float64, point coregraphics.Point) 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)) - AllowsMagnification() bool - SetAllowsMagnification(value bool) - EstimatedProgress() float64 + 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()) IsLoading() bool + BackForwardList() BackForwardList + CanGoForward() bool AllowsBackForwardNavigationGestures() bool SetAllowsBackForwardNavigationGestures(value bool) - HasOnlySecureContent() bool - CanGoBack() bool + URL() foundation.URL + EstimatedProgress() float64 + MicrophoneCaptureState() MediaCaptureState + PageZoom() float64 + SetPageZoom(value float64) 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() UIDelegateWrapper - SetUIDelegate(value PUIDelegate) - SetUIDelegateObject(valueObject objc.IObject) - PageZoom() float64 - SetPageZoom(value float64) - URL() foundation.URL Configuration() WebViewConfiguration - BackForwardList() BackForwardList - MicrophoneCaptureState() MediaCaptureState - NavigationDelegate() NavigationDelegateWrapper + Title() string + HasOnlySecureContent() bool + NavigationDelegate() NavigationDelegateObject SetNavigationDelegate(value PNavigationDelegate) SetNavigationDelegateObject(valueObject objc.IObject) - Title() string - CameraCaptureState() MediaCaptureState - UnderPageBackgroundColor() appkit.Color - SetUnderPageBackgroundColor(value appkit.IColor) - AllowsLinkPreview() bool - SetAllowsLinkPreview(value bool) + Magnification() float64 + SetMagnification(value float64) InteractionState() objc.Object SetInteractionState(value objc.IObject) + AllowsLinkPreview() bool + SetAllowsLinkPreview(value bool) + CanGoBack() bool } // An object that displays interactive web content, such as for an in-app browser. [Full Topic] @@ -119,10 +126,6 @@ func (wc _WebViewClass) Alloc() WebView { return rv } -func WebView_Alloc() WebView { - return WebViewClass.Alloc() -} - func (wc _WebViewClass) New() WebView { rv := objc.Call[WebView](wc, objc.Sel("new")) rv.Autorelease() @@ -152,50 +155,41 @@ func NewWebViewWithFrame(frameRect foundation.Rect) WebView { return instance } -// 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) -} - -// 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/1414975-goback?language=objc -func (w_ WebView) GoBack(sender objc.IObject) objc.Object { - rv := objc.Call[objc.Object](w_, objc.Sel("goBack:"), sender) +// [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, objc.Ptr(baseURL)) return rv } -// Returns the print operation object to use when printing the contents of the web view. [Full Topic] +// Reloads the current webpage. [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:"), objc.Ptr(printInfo)) +// [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")) return rv } -// Stops loading all resources on the current page. [Full Topic] +// Generates PDF data from the web view’s contents asynchronously. [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) - return rv +// [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:"), objc.Ptr(pdfConfiguration), completionHandler) } -// Pauses playback of all media in the web view. [Full Topic] +// Creates a web archive of the web view’s contents asynchronously. [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) +// [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) } -// Navigates to the forward item in the back-forward list. [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/1414993-goforward?language=objc -func (w_ WebView) GoForward() Navigation { - rv := objc.Call[Navigation](w_, objc.Sel("goForward")) - 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:"), objc.Ptr(snapshotConfiguration), completionHandler) } // Navigates to an item from the back-forward list and sets it as the current item. [Full Topic] @@ -206,88 +200,119 @@ func (w_ WebView) GoToBackForwardListItem(item IBackForwardListItem) Navigation return rv } -// Requests the playback status of media in the web view. [Full Topic] +// Resumes a failed or canceled download. [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/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 HTML you provide as if the HTML were the response to the request. [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/3763095-loadsimulatedrequest?language=objc +func (w_ WebView) LoadSimulatedRequestResponseHTMLString(request foundation.IURLRequest, string_ string) Navigation { + rv := objc.Call[Navigation](w_, objc.Sel("loadSimulatedRequest:responseHTMLString:"), objc.Ptr(request), string_) return rv } -// 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/2875370-handlesurlscheme?language=objc -func WebView_HandlesURLScheme(urlScheme string) bool { - return WebViewClass.HandlesURLScheme(urlScheme) -} - // Reloads the current webpage. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/webkit/wkwebview/1414987-reload?language=objc -func (w_ WebView) Reload(sender objc.IObject) objc.Object { +func (w_ WebView) Reload_(sender objc.IObject) objc.Object { rv := objc.Call[objc.Object](w_, objc.Sel("reload:"), sender) return rv } -// Generates a platform-native image from the web view’s contents asynchronously. [Full Topic] +// Navigates to the back 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:"), objc.Ptr(snapshotConfiguration), completionHandler) +// [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 } -// Changes whether the webpage is using the microphone to capture audio. [Full Topic] +// Stops loading all resources on the current page. [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) +// [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 } -// Loads the content of the specified data object and navigates to it. [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/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, objc.Ptr(baseURL)) +// [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:"), objc.Ptr(URL), objc.Ptr(readAccessURL)) return rv } -// Closes all media the web view is presenting, including picture-in-picture video and fullscreen video. [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/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/1415004-loadhtmlstring?language=objc +func (w_ WebView) LoadHTMLStringBaseURL(string_ string, baseURL foundation.IURL) Navigation { + rv := objc.Call[Navigation](w_, objc.Sel("loadHTMLString:baseURL:"), string_, objc.Ptr(baseURL)) + return rv } -// Reloads the current webpage, and performs end-to-end revalidation of the content using cache-validating conditionals, if possible. [Full Topic] +// Navigates to the back item in the back-forward list. [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/1414952-goback?language=objc +func (w_ WebView) GoBack() Navigation { + rv := objc.Call[Navigation](w_, objc.Sel("goBack")) return rv } -// Changes whether the webpage is suspending playback of all media in the page. [Full Topic] +// Evaluates the specified JavaScript string. [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/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) } -// Loads the web content from the HTML you provide as if the HTML were the response to the request. [Full Topic] +// Pauses playback of all 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:"), objc.Ptr(request), string_) +// [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] +// +// [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_, objc.Ptr(configuration), 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")) return rv } +// Requests the playback status of media in the web view. [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) +} + +// Stops loading all resources on the current page. [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")) +} + // Loads the web content from the file the URL request object specifies and navigates to that content. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/webkit/wkwebview/3752237-loadfilerequest?language=objc @@ -296,49 +321,50 @@ func (w_ WebView) LoadFileRequestAllowingReadAccessToURL(request foundation.IURL return rv } -// Loads the web content that the specified URL request object references and navigates to that content. [Full Topic] +// 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/1414954-loadrequest?language=objc -func (w_ WebView) LoadRequest(request foundation.IURLRequest) Navigation { - rv := objc.Call[Navigation](w_, objc.Sel("loadRequest:"), objc.Ptr(request)) +// [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 } -// Starts to download the resource at the URL in the request. [Full Topic] +// Navigates to the forward item in the back-forward list. [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:"), objc.Ptr(request), completionHandler) +// [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 } -// Evaluates the specified JavaScript string. [Full Topic] +// Executes the specified string as an asynchronous JavaScript function. [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) +// [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, objc.Ptr(frame), objc.Ptr(contentWorld), completionHandler) } -// Resumes a failed or canceled download. [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/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) +// [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:"), objc.Ptr(printInfo)) + return rv } -// Loads the web content from the specified file and navigates to it. [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/1414973-loadfileurl?language=objc -func (w_ WebView) LoadFileURLAllowingReadAccessToURL(URL foundation.IURL, readAccessURL foundation.IURL) Navigation { - rv := objc.Call[Navigation](w_, objc.Sel("loadFileURL:allowingReadAccessToURL:"), objc.Ptr(URL), objc.Ptr(readAccessURL)) +// [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 } -// Loads the contents of the specified HTML string and navigates to it. [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/1415004-loadhtmlstring?language=objc -func (w_ WebView) LoadHTMLStringBaseURL(string_ string, baseURL foundation.IURL) Navigation { - rv := objc.Call[Navigation](w_, objc.Sel("loadHTMLString:baseURL:"), string_, objc.Ptr(baseURL)) - 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) } // Changes whether the webpage is using the camera to capture images or video. [Full Topic] @@ -348,55 +374,63 @@ func (w_ WebView) SetCameraCaptureStateCompletionHandler(state MediaCaptureState objc.Call[objc.Void](w_, objc.Sel("setCameraCaptureState:completionHandler:"), state, completionHandler) } -// Generates PDF data from the web view’s contents asynchronously. [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/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:"), objc.Ptr(pdfConfiguration), completionHandler) +// [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:"), objc.Ptr(request)) + return rv } -// Creates a web archive of the web view’s contents asynchronously. [Full Topic] +// 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/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/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:"), objc.Ptr(request), objc.Ptr(response), data) + return rv } -// Searches for the specified string in the web view’s content. [Full Topic] +// Navigates to the forward item in the back-forward list. [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_, objc.Ptr(configuration), 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 } -// Executes the specified string as an asynchronous JavaScript function. [Full Topic] +// Evaluates the specified JavaScript string in the specified frame and content world. [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, objc.Ptr(frame), objc.Ptr(contentWorld), completionHandler) +// [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, objc.Ptr(frame), objc.Ptr(contentWorld), completionHandler) } -// A Boolean value that indicates whether magnify gestures change the web view’s magnification. [Full Topic] +// Starts to download the resource at the URL in the request. [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 +// [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:"), objc.Ptr(request), completionHandler) } -// A Boolean value that indicates whether magnify gestures change the web view’s magnification. [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/1414983-allowsmagnification?language=objc -func (w_ WebView) SetAllowsMagnification(value bool) { - objc.Call[objc.Void](w_, objc.Sel("setAllowsMagnification:"), value) +// [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) } -// An estimate of what fraction of the current navigation has been loaded. [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/1415007-estimatedprogress?language=objc -func (w_ WebView) EstimatedProgress() float64 { - rv := objc.Call[float64](w_, objc.Sel("estimatedProgress")) - return rv +// [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) } // A Boolean value that indicates whether the view is currently loading content. [Full Topic] @@ -407,6 +441,22 @@ func (w_ WebView) IsLoading() bool { return rv } +// The web view's back-forward list. [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")) + return rv +} + +// 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 +} + // A Boolean value that indicates whether horizontal swipe gestures trigger backward and forward page navigation. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/webkit/wkwebview/1414995-allowsbackforwardnavigationgestu?language=objc @@ -422,88 +472,73 @@ func (w_ WebView) SetAllowsBackForwardNavigationGestures(value bool) { objc.Call[objc.Void](w_, objc.Sel("setAllowsBackForwardNavigationGestures:"), value) } -// A Boolean value that indicates whether the web view loaded all resources on the page through securely encrypted connections. [Full Topic] +// The URL for the current webpage. [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/1415005-url?language=objc +func (w_ WebView) URL() foundation.URL { + rv := objc.Call[foundation.URL](w_, objc.Sel("URL")) return rv } -// A Boolean value that indicates whether there is a valid back item in the back-forward list. [Full Topic] +// An estimate of what fraction of the current navigation has been loaded. [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/1415007-estimatedprogress?language=objc +func (w_ WebView) EstimatedProgress() float64 { + rv := objc.Call[float64](w_, objc.Sel("estimatedProgress")) return rv } -// The custom user agent string. [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/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/3763096-microphonecapturestate?language=objc +func (w_ WebView) MicrophoneCaptureState() MediaCaptureState { + rv := objc.Call[MediaCaptureState](w_, objc.Sel("microphoneCaptureState")) return rv } -// The custom user agent string. [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) -} - -// 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] -// -// [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 theme color that the system gets from the first valid meta tag in the webpage. [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/3794258-themecolor?language=objc -func (w_ WebView) ThemeColor() appkit.Color { - rv := objc.Call[appkit.Color](w_, objc.Sel("themeColor")) - return rv +// [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 factor by which the page content is currently scaled. [Full Topic] +// The custom user agent string. [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/1414950-customuseragent?language=objc +func (w_ WebView) CustomUserAgent() string { + rv := objc.Call[string](w_, objc.Sel("customUserAgent")) return rv } -// The factor by which the page content is currently scaled. [Full Topic] +// The custom user agent string. [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/1414950-customuseragent?language=objc +func (w_ WebView) SetCustomUserAgent(value string) { + objc.Call[objc.Void](w_, objc.Sel("setCustomUserAgent:"), value) } -// A Boolean value that indicates whether there is a valid forward item in the back-forward list. [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/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/3763093-cameracapturestate?language=objc +func (w_ WebView) CameraCaptureState() MediaCaptureState { + rv := objc.Call[MediaCaptureState](w_, objc.Sel("cameraCaptureState")) return rv } // The object you use to integrate custom user interface elements, such as contextual menus or panels, into web view interactions. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/webkit/wkwebview/1415009-uidelegate?language=objc -func (w_ WebView) UIDelegate() UIDelegateWrapper { - rv := objc.Call[UIDelegateWrapper](w_, objc.Sel("UIDelegate")) +func (w_ WebView) UIDelegate() UIDelegateObject { + rv := objc.Call[UIDelegateObject](w_, objc.Sel("UIDelegate")) return rv } @@ -523,26 +558,56 @@ func (w_ WebView) SetUIDelegateObject(valueObject objc.IObject) { objc.Call[objc.Void](w_, objc.Sel("setUIDelegate:"), objc.Ptr(valueObject)) } -// The scale factor by which the web view scales content relative to its bounds. [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/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/1414983-allowsmagnification?language=objc +func (w_ WebView) AllowsMagnification() bool { + rv := objc.Call[bool](w_, objc.Sel("allowsMagnification")) return rv } -// The scale factor by which the web view scales content relative to its bounds. [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/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/1414983-allowsmagnification?language=objc +func (w_ WebView) SetAllowsMagnification(value bool) { + objc.Call[objc.Void](w_, objc.Sel("setAllowsMagnification:"), value) } -// The URL for the current webpage. [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/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/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:"), objc.Ptr(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 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) SetMediaType(value string) { + objc.Call[objc.Void](w_, objc.Sel("setMediaType:"), value) +} + +// 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/3794258-themecolor?language=objc +func (w_ WebView) ThemeColor() appkit.Color { + rv := objc.Call[appkit.Color](w_, objc.Sel("themeColor")) return rv } @@ -554,27 +619,27 @@ func (w_ WebView) Configuration() WebViewConfiguration { return rv } -// The web view's back-forward list. [Full Topic] +// The page title. [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/1415015-title?language=objc +func (w_ WebView) Title() string { + rv := objc.Call[string](w_, objc.Sel("title")) return rv } -// An enumeration case that indicates whether the webpage is using the microphone to capture audio. [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/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/1415002-hasonlysecurecontent?language=objc +func (w_ WebView) HasOnlySecureContent() bool { + rv := objc.Call[bool](w_, objc.Sel("hasOnlySecureContent")) return rv } // The object you use to manage navigation behavior for the web view. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/webkit/wkwebview/1414971-navigationdelegate?language=objc -func (w_ WebView) NavigationDelegate() NavigationDelegateWrapper { - rv := objc.Call[NavigationDelegateWrapper](w_, objc.Sel("navigationDelegate")) +func (w_ WebView) NavigationDelegate() NavigationDelegateObject { + rv := objc.Call[NavigationDelegateObject](w_, objc.Sel("navigationDelegate")) return rv } @@ -594,35 +659,34 @@ func (w_ WebView) SetNavigationDelegateObject(valueObject objc.IObject) { objc.Call[objc.Void](w_, objc.Sel("setNavigationDelegate:"), objc.Ptr(valueObject)) } -// The page title. [Full Topic] +// The factor by which the page content is currently scaled. [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/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")) - return rv +// [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) } -// The color the web view displays behind the active page, visible when the user scrolls beyond the bounds of the page. [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/3850574-underpagebackgroundcolor?language=objc -func (w_ WebView) UnderPageBackgroundColor() appkit.Color { - rv := objc.Call[appkit.Color](w_, objc.Sel("underPageBackgroundColor")) +// [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 } -// The color the web view displays behind the active page, visible when the user scrolls beyond the bounds of the page. [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/3850574-underpagebackgroundcolor?language=objc -func (w_ WebView) SetUnderPageBackgroundColor(value appkit.IColor) { - objc.Call[objc.Void](w_, objc.Sel("setUnderPageBackgroundColor:"), objc.Ptr(value)) +// [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) } // A Boolean value that determines whether pressing a link displays a preview of the destination for the link. [Full Topic] @@ -640,17 +704,10 @@ func (w_ WebView) SetAllowsLinkPreview(value bool) { objc.Call[objc.Void](w_, objc.Sel("setAllowsLinkPreview:"), value) } -// 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] +// 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/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/1414966-cangoback?language=objc +func (w_ WebView) CanGoBack() bool { + rv := objc.Call[bool](w_, objc.Sel("canGoBack")) 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 5d4036ba..6f4709d8 100644 --- a/macos/webkit/web_view_configuration.gen.go +++ b/macos/webkit/web_view_configuration.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package webkit @@ -18,33 +18,33 @@ type _WebViewConfigurationClass struct { // An interface definition for the [WebViewConfiguration] class. type IWebViewConfiguration interface { objc.IObject - UrlSchemeHandlerForURLScheme(urlScheme string) URLSchemeHandlerWrapper SetURLSchemeHandlerForURLScheme(urlSchemeHandler PURLSchemeHandler, urlScheme string) SetURLSchemeHandlerObjectForURLScheme(urlSchemeHandlerObject objc.IObject, urlScheme string) - LimitsNavigationsToAppBoundDomains() bool - SetLimitsNavigationsToAppBoundDomains(value bool) - UpgradeKnownHostsToHTTPS() bool - SetUpgradeKnownHostsToHTTPS(value bool) + UrlSchemeHandlerForURLScheme(urlScheme string) URLSchemeHandlerObject 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] @@ -65,10 +65,6 @@ func (wc _WebViewConfigurationClass) Alloc() WebViewConfiguration { return rv } -func WebViewConfiguration_Alloc() WebViewConfiguration { - return WebViewConfigurationClass.Alloc() -} - func (wc _WebViewConfigurationClass) New() WebViewConfiguration { rv := objc.Call[WebViewConfiguration](wc, objc.Sel("new")) rv.Autorelease() @@ -84,14 +80,6 @@ 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) URLSchemeHandlerWrapper { - rv := objc.Call[URLSchemeHandlerWrapper](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 @@ -107,36 +95,14 @@ func (w_ WebViewConfiguration) SetURLSchemeHandlerObjectForURLScheme(urlSchemeHa objc.Call[objc.Void](w_, objc.Sel("setURLSchemeHandler:forURLScheme:"), objc.Ptr(urlSchemeHandlerObject), urlScheme) } -// 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) -} - -// A Boolean value that indicates whether the web view should automatically upgrade supported HTTP requests to HTTPS. [Full Topic] +// Returns the currently registered handler object for the specified URL scheme. [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")) +// [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 } -// 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 @@ -167,21 +133,6 @@ func (w_ WebViewConfiguration) SetDefaultWebpagePreferences(value IWebpagePrefer objc.Call[objc.Void](w_, objc.Sel("setDefaultWebpagePreferences:"), objc.Ptr(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:"), objc.Ptr(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 @@ -197,21 +148,6 @@ 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 @@ -227,6 +163,21 @@ 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 @@ -242,6 +193,66 @@ func (w_ WebViewConfiguration) SetProcessPool(value IProcessPool) { objc.Call[objc.Void](w_, objc.Sel("setProcessPool:"), objc.Ptr(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:"), objc.Ptr(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:"), objc.Ptr(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 @@ -271,18 +282,3 @@ 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:"), objc.Ptr(value)) -} diff --git a/macos/webkit/webkit_custom.go b/macos/webkit/webkit_custom.go index c3732529..97d238da 100644 --- a/macos/webkit/webkit_custom.go +++ b/macos/webkit/webkit_custom.go @@ -108,7 +108,7 @@ func (h *FileSystemURLSchemeHandler) HasWebViewStartURLSchemeTask() bool { } // WebViewStartURLSchemeTask implements URLSchemeHandler -func (h *FileSystemURLSchemeHandler) WebViewStartURLSchemeTask(webView WebView, urlSchemeTask URLSchemeTaskWrapper) { +func (h *FileSystemURLSchemeHandler) WebViewStartURLSchemeTask(webView WebView, urlSchemeTask URLSchemeTaskObject) { url := urlSchemeTask.Request().URL() path := url.Path() if len(path) > 0 && path[0] == '/' { @@ -132,12 +132,12 @@ func (h *FileSystemURLSchemeHandler) WebViewStartURLSchemeTask(webView WebView, url, mime, len(data), "utf-8", ) - urlSchemeTask.DidReceiveResponse(response) + urlSchemeTask.DidReceiveResponse(response.URLResponse) urlSchemeTask.DidReceiveData(data) urlSchemeTask.DidFinish() } -func (h *FileSystemURLSchemeHandler) handleError(urlSchemeTask URLSchemeTaskWrapper, err error) { +func (h *FileSystemURLSchemeHandler) handleError(urlSchemeTask URLSchemeTaskObject, err error) { url := urlSchemeTask.Request().URL() var status = 500 if errors.Is(err, fs.ErrNotExist) { @@ -149,13 +149,17 @@ func (h *FileSystemURLSchemeHandler) handleError(urlSchemeTask URLSchemeTaskWrap "Content-type": "text/plain; charset=utf-8", "Content-length": strconv.Itoa(len(data)), }) - urlSchemeTask.DidReceiveResponse(response) + urlSchemeTask.DidReceiveResponse(response.URLResponse) urlSchemeTask.DidReceiveData(data) urlSchemeTask.DidFinish() } // WebViewStopURLSchemeTask implements URLSchemeHandler -func (h *FileSystemURLSchemeHandler) WebViewStopURLSchemeTask(webView WebView, urlSchemeTask URLSchemeTaskWrapper) { +func (h *FileSystemURLSchemeHandler) WebViewStopURLSchemeTask(webView WebView, urlSchemeTask URLSchemeTaskObject) { +} + +func (h *FileSystemURLSchemeHandler) HasWebViewStopURLSchemeTask() bool { + return true } func (h *FileSystemURLSchemeHandler) getMime(path string) string { diff --git a/macos/webkit/webpage_preferences.gen.go b/macos/webkit/webpage_preferences.gen.go index aee24eed..75002ad3 100644 --- a/macos/webkit/webpage_preferences.gen.go +++ b/macos/webkit/webpage_preferences.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package webkit @@ -42,10 +42,6 @@ func (wc _WebpagePreferencesClass) Alloc() WebpagePreferences { return rv } -func WebpagePreferences_Alloc() WebpagePreferences { - return WebpagePreferencesClass.Alloc() -} - func (wc _WebpagePreferencesClass) New() WebpagePreferences { rv := objc.Call[WebpagePreferences](wc, objc.Sel("new")) rv.Autorelease() diff --git a/macos/webkit/website_data_record.gen.go b/macos/webkit/website_data_record.gen.go index 20f54482..6c68a638 100644 --- a/macos/webkit/website_data_record.gen.go +++ b/macos/webkit/website_data_record.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package webkit @@ -41,10 +41,6 @@ func (wc _WebsiteDataRecordClass) Alloc() WebsiteDataRecord { return rv } -func WebsiteDataRecord_Alloc() WebsiteDataRecord { - return WebsiteDataRecordClass.Alloc() -} - func (wc _WebsiteDataRecordClass) New() WebsiteDataRecord { rv := objc.Call[WebsiteDataRecord](wc, objc.Sel("new")) rv.Autorelease() diff --git a/macos/webkit/website_data_store.gen.go b/macos/webkit/website_data_store.gen.go index addaa680..965391d6 100644 --- a/macos/webkit/website_data_store.gen.go +++ b/macos/webkit/website_data_store.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package webkit @@ -19,8 +19,9 @@ type _WebsiteDataStoreClass struct { // An interface definition for the [WebsiteDataStore] class. type IWebsiteDataStore interface { objc.IObject - FetchDataRecordsOfTypesCompletionHandler(dataTypes foundation.ISet, completionHandler func(arg0 []WebsiteDataRecord)) 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)) IsPersistent() bool HttpCookieStore() HTTPCookieStore } @@ -43,10 +44,6 @@ func (wc _WebsiteDataStoreClass) Alloc() WebsiteDataStore { return rv } -func WebsiteDataStore_Alloc() WebsiteDataStore { - return WebsiteDataStoreClass.Alloc() -} - func (wc _WebsiteDataStoreClass) New() WebsiteDataStore { rv := objc.Call[WebsiteDataStore](wc, objc.Sel("new")) rv.Autorelease() @@ -62,6 +59,21 @@ 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 @@ -77,26 +89,25 @@ func WebsiteDataStore_DefaultDataStore() WebsiteDataStore { return WebsiteDataStoreClass.DefaultDataStore() } -// Fetches the specified types of records from the data store. [Full Topic] +// Removes website data that changed after the specified date. [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:"), objc.Ptr(dataTypes), completionHandler) +// [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:"), objc.Ptr(dataTypes), objc.Ptr(date), completionHandler) } -// Returns the set of all the available data types. [Full Topic] +// Removes the specified types of website data from one or more data records. [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 +// [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:"), objc.Ptr(dataTypes), dataRecords, completionHandler) } -// Returns the set of all the available data types. [Full Topic] +// Fetches the specified types of records from the data store. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/webkit/wkwebsitedatastore/1532929-allwebsitedatatypes?language=objc -func WebsiteDataStore_AllWebsiteDataTypes() foundation.Set { - return WebsiteDataStoreClass.AllWebsiteDataTypes() +// [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:"), objc.Ptr(dataTypes), completionHandler) } // Creates a new data store object that stores website data in memory, and doesn’t write that data to disk. [Full Topic] @@ -114,13 +125,6 @@ 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:"), objc.Ptr(dataTypes), objc.Ptr(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 3a99f824..0a253154 100644 --- a/macos/webkit/window_features.gen.go +++ b/macos/webkit/window_features.gen.go @@ -1,4 +1,4 @@ -// AUTO-GENERATED CODE, DO NOT MODIFY +// Code generated by DarwinKit. DO NOT EDIT. package webkit @@ -19,16 +19,14 @@ 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 - Width() foundation.Number + Height() foundation.Number X() foundation.Number - SetX(value foundation.INumber) Y() foundation.Number - SetY(value foundation.INumber) - StatusBarVisibility() foundation.Number - Height() foundation.Number - ToolbarsVisibility() foundation.Number - MenuBarVisibility() foundation.Number + Width() foundation.Number } // Display-related attributes that a webpage requests for its window. [Full Topic] @@ -49,10 +47,6 @@ func (wc _WindowFeaturesClass) Alloc() WindowFeatures { return rv } -func WindowFeatures_Alloc() WindowFeatures { - return WindowFeaturesClass.Alloc() -} - func (wc _WindowFeaturesClass) New() WindowFeatures { rv := objc.Call[WindowFeatures](wc, objc.Sel("new")) rv.Autorelease() @@ -68,52 +62,22 @@ func (w_ WindowFeatures) Init() WindowFeatures { 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 -func (w_ WindowFeatures) AllowsResizing() foundation.Number { - rv := objc.Call[foundation.Number](w_, objc.Sel("allowsResizing")) - return rv -} - -// The requested width 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")) - return rv -} - -// The requested x-coordinate of the containing window. [Full Topic] +// A Boolean value that indicates whether the webpage requests a visible menu bar. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/webkit/wkwindowfeatures/1537705-x?language=objc -func (w_ WindowFeatures) X() foundation.Number { - rv := objc.Call[foundation.Number](w_, objc.Sel("x")) +// [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 } -// 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:"), objc.Ptr(value)) -} - -// The requested y-coordinate of the containing window. [Full Topic] +// A Boolean value that indicates whether the webpage requested a visible toolbar. [Full Topic] // -// [Full Topic]: https://developer.apple.com/documentation/webkit/wkwindowfeatures/1537052-y?language=objc -func (w_ WindowFeatures) Y() foundation.Number { - rv := objc.Call[foundation.Number](w_, objc.Sel("y")) +// [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 } -// The requested y-coordinate of the containing window. [Full Topic] -// -// [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:"), objc.Ptr(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 @@ -122,6 +86,14 @@ func (w_ WindowFeatures) StatusBarVisibility() foundation.Number { 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 +func (w_ WindowFeatures) AllowsResizing() foundation.Number { + rv := objc.Call[foundation.Number](w_, objc.Sel("allowsResizing")) + return rv +} + // The requested height of the containing window. [Full Topic] // // [Full Topic]: https://developer.apple.com/documentation/webkit/wkwindowfeatures/1536826-height?language=objc @@ -130,18 +102,26 @@ func (w_ WindowFeatures) Height() foundation.Number { return rv } -// A Boolean value that indicates whether the webpage requested a visible toolbar. [Full Topic] +// The requested x-coordinate of the containing window. [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")) +// [Full Topic]: https://developer.apple.com/documentation/webkit/wkwindowfeatures/1537705-x?language=objc +func (w_ WindowFeatures) X() foundation.Number { + rv := objc.Call[foundation.Number](w_, objc.Sel("x")) return rv } -// A Boolean value that indicates whether the webpage requests a visible menu bar. [Full Topic] +// The requested y-coordinate of the containing window. [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")) +// [Full Topic]: https://developer.apple.com/documentation/webkit/wkwindowfeatures/1537052-y?language=objc +func (w_ WindowFeatures) Y() foundation.Number { + rv := objc.Call[foundation.Number](w_, objc.Sel("y")) + return rv +} + +// The requested width 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")) return rv }